@arcgis/core 5.1.0-next.80 → 5.1.0-next.82
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.
- package/analysis/ShadowCast/DiscreteOptions.d.ts +12 -0
- package/analysis/ShadowCast/TotalDurationOptions.d.ts +12 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/040884cec4b84dd1bb17.js +1 -0
- package/assets/esri/core/workers/chunks/05c5f68e117fc58ae801.js +1 -0
- package/assets/esri/core/workers/chunks/074f5e6aaeafca13bf72.js +1 -0
- package/assets/esri/core/workers/chunks/{7bd1d624f4f4a11a31e8.js → 086d7cdfa92a649c9f7b.js} +1 -1
- package/assets/esri/core/workers/chunks/{0eed2b1b06355ab89013.js → 0c074c46d106ca4d3bad.js} +1 -1
- package/assets/esri/core/workers/chunks/{d7324a00ed576e7a37b1.js → 1768f1a7e3caa6074d91.js} +1 -1
- package/assets/esri/core/workers/chunks/{85d3475667c503ec4fc6.js → 186bfde8c552e3b42302.js} +1 -1
- package/assets/esri/core/workers/chunks/1a35121a0c2595a41fdb.js +1 -0
- package/assets/esri/core/workers/chunks/1ab66600579fa4232d7b.js +1 -0
- package/assets/esri/core/workers/chunks/{d5fd99ee40bba9b48a54.js → 1e2c0c6d724f7639d4c1.js} +27 -27
- package/assets/esri/core/workers/chunks/1e3fe89970c57a883fe5.js +1 -0
- package/assets/esri/core/workers/chunks/{824051af00e7a1f05ed0.js → 230e0e43f8e771950397.js} +1 -1
- package/assets/esri/core/workers/chunks/26f804c92077c11c626d.js +1 -0
- package/assets/esri/core/workers/chunks/28a45bd26eb5c9b3ec7c.js +1 -0
- package/assets/esri/core/workers/chunks/38f1a86b8dd9ee684ee5.js +596 -0
- package/assets/esri/core/workers/chunks/{c1d4110aa494a1dba3c4.js → 455d08294e0f5c5509ff.js} +1 -1
- package/assets/esri/core/workers/chunks/{71fe127734f33d020a44.js → 475394218caaa4cd3e86.js} +1 -1
- package/assets/esri/core/workers/chunks/475409026288f0981ce2.js +1 -0
- package/assets/esri/core/workers/chunks/4e206957b28253ddc1a3.js +1 -0
- package/assets/esri/core/workers/chunks/{87d2021e91d025a2a142.js → 5c7ba4b8a9ec2e2e02b5.js} +1 -1
- package/assets/esri/core/workers/chunks/5cc38ac051d3d0557920.js +1 -0
- package/assets/esri/core/workers/chunks/{992cd87ba0ab6346f692.js → 64e268ebac0b62076f81.js} +1 -1
- package/assets/esri/core/workers/chunks/{003fd7745966fe03510c.js → 65ac73de5bb133c6bf89.js} +1 -1
- package/assets/esri/core/workers/chunks/6675d56f49d07a97dc40.js +1 -0
- package/assets/esri/core/workers/chunks/{1f82a0f134ea912fc686.js → 66fe1634c6e8f72fc653.js} +1 -1
- package/assets/esri/core/workers/chunks/{96b13b6042cdf5833d39.js → 67abbe81c16de26f61d8.js} +1 -1
- package/assets/esri/core/workers/chunks/{484d6c1b0fe1633515b7.js → 72f8f4cfa0842d325fb0.js} +1 -1
- package/assets/esri/core/workers/chunks/{283d39dfb1625b5a74db.js → 747e258f57f0543c836e.js} +1 -1
- package/assets/esri/core/workers/chunks/{dd4f431511edd975a53b.js → 7acf82763aeba44049d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{5d8e944b192aad4cf986.js → 7b505112c7e6d9b7a239.js} +1 -1
- package/assets/esri/core/workers/chunks/7b8466f892a38a53c600.js +1 -0
- package/assets/esri/core/workers/chunks/{6a0352d20596ca3f4b64.js → 88eb1e4320c4ada01711.js} +1 -1
- package/assets/esri/core/workers/chunks/{77dd719516138afb1a2a.js → 8af9a78cf316581ea482.js} +1 -1
- package/assets/esri/core/workers/chunks/97719271a3e4c9f2b2c9.js +1 -0
- package/assets/esri/core/workers/chunks/988e91cc6cf88c34c2de.js +1 -0
- package/assets/esri/core/workers/chunks/9c402657f63a4d5668d0.js +1 -0
- package/assets/esri/core/workers/chunks/9cac70164d8528c283af.js +1 -0
- package/assets/esri/core/workers/chunks/9ea23cd4b2664c08b670.js +1 -0
- package/assets/esri/core/workers/chunks/9f51a69b8f1937a8794a.js +1 -0
- package/assets/esri/core/workers/chunks/a28124bba6b43efd74cc.js +1 -0
- package/assets/esri/core/workers/chunks/ac5999c88c27b49cd760.js +1 -0
- package/assets/esri/core/workers/chunks/af762422a65c551dcd54.js +1 -0
- package/assets/esri/core/workers/chunks/{056fd7847caaff2c9514.js → af8bc56cf1404afc3028.js} +1 -1
- package/assets/esri/core/workers/chunks/b811d62284be95f4beb6.js +1 -0
- package/assets/esri/core/workers/chunks/b9e163f4a898e50cc854.js +1 -0
- package/assets/esri/core/workers/chunks/{444f0f51b3ee0b9845a5.js → bb2f6b0fcdfb8b158e26.js} +1 -1
- package/assets/esri/core/workers/chunks/{3b9100c59a8050f4834e.js → bbc27d9285162696d089.js} +1 -1
- package/assets/esri/core/workers/chunks/{5da2051f548c2942e01a.js → bc8a74da48b08309875f.js} +1 -1
- package/assets/esri/core/workers/chunks/bd8cb64b6e08839398f3.js +1 -0
- package/assets/esri/core/workers/chunks/{026d3fa331caec1ea3d2.js → bf4dd8e50704e4040966.js} +1 -1
- package/assets/esri/core/workers/chunks/c19e3f6027b6526de359.js +1 -0
- package/assets/esri/core/workers/chunks/c8ef80a7c46d7d2c5172.js +1 -0
- package/assets/esri/core/workers/chunks/cbf1a03f54bd8d2a2b47.js +1 -0
- package/assets/esri/core/workers/chunks/ce4dfc3a470230ddc9e4.js +1 -0
- package/assets/esri/core/workers/chunks/{8ea4584e07ccc85caabd.js → d11de13537b623739e14.js} +1 -1
- package/assets/esri/core/workers/chunks/d897412b99b9fba44bb4.js +1 -0
- package/assets/esri/core/workers/chunks/d9c3f14eee4db7a7137b.js +1 -0
- package/assets/esri/core/workers/chunks/{035dbb0217f83108fa89.js → db86a1119e4e58ecfbda.js} +1 -1
- package/assets/esri/core/workers/chunks/dcb7a3ff59677b1cf0f1.js +1 -0
- package/assets/esri/core/workers/chunks/{5fe97253f80c797fad7f.js → df8a3d3cac454d42e14d.js} +1 -1
- package/assets/esri/core/workers/chunks/dfe1139124fda0d6c059.js +1 -0
- package/assets/esri/core/workers/chunks/{8b8f391f27774aec6db9.js → e0b27bceb397482bd0e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{fb9e3e7cd532ac4353f1.js → e89dc473f46a5584d2ef.js} +32 -32
- package/assets/esri/core/workers/chunks/{01ee18782a50279f907e.js → f4220b6eab0865318033.js} +1 -1
- package/assets/esri/core/workers/chunks/{42336e0d1ef88737b078.js → f468c6ea2818a1f97e19.js} +1 -1
- package/assets/esri/core/workers/chunks/{3f242f8d092f601c3abf.js → f77d23ee60c876b01e4b.js} +1 -1
- package/assets/esri/core/workers/chunks/fce2306a1b31c6680f90.js +1 -0
- package/assets/esri/core/workers/chunks/fcf51697c361e0075cc2.js +1 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +15 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_en.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
- package/chunks/ShadowCastVisualize.glsl.js +33 -15
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/config.js +1 -1
- package/core/workers/registry.js +1 -1
- package/form/elements/inputs/MultipleChoiceInput.d.ts +6 -6
- package/form/elements/inputs/MultipleChoiceInput.js +1 -1
- package/form/elements/inputs.js +1 -1
- package/geometry/SpatialReference.js +1 -1
- package/geometry/support/coordsUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/BaseDynamicLayer.js +1 -1
- package/layers/BaseTileLayer.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/FeatureLayer.d.ts +2 -2
- package/layers/FeatureLayer.js +1 -1
- package/layers/MapImageLayer.js +1 -1
- package/layers/TileLayer.js +1 -1
- package/layers/WMSLayer.js +1 -1
- package/layers/WMTSLayer.js +1 -1
- package/layers/WebTileLayer.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/sources/MemorySource.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/FeatureLayerBase.js +1 -1
- package/layers/mixins/TiledImagery.js +1 -1
- package/layers/support/imageBitmapUtils.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/package.json +1 -1
- package/request/process.js +1 -1
- package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +37 -0
- package/rest/knowledgeGraph/CreateReplicaResponse.js +2 -0
- package/rest/knowledgeGraph/ReplicaDefinition.d.ts +91 -0
- package/rest/knowledgeGraph/ReplicaDefinition.js +2 -0
- package/rest/knowledgeGraph/ReplicasInformationResponse.d.ts +24 -0
- package/rest/knowledgeGraph/ReplicasInformationResponse.js +2 -0
- package/rest/knowledgeGraph/UnregisterReplicaResponse.d.ts +44 -0
- package/rest/knowledgeGraph/UnregisterReplicaResponse.js +2 -0
- package/rest/knowledgeGraph/wasmInterface/replicaToWasmEncodedFactories.js +2 -0
- package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +2 -0
- package/rest/knowledgeGraphService.d.ts +50 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/vectorTiles/RenderBucket.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/input/MapViewInputManager.js +1 -1
- package/views/2d/layers/BaseDynamicLayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/WMSLayerView2D.js +1 -1
- package/views/2d/layers/WMTSLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/layers/ElevationLayerView3D.js +1 -1
- package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerWorker.js +2 -0
- package/views/3d/layers/IntegratedMesh3DTilesLayerWorkerHandle.js +2 -0
- package/views/3d/layers/TileLayerView3D.js +1 -1
- package/views/3d/layers/WMTSLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/tessellationUtils.js +1 -1
- package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +2 -0
- package/views/3d/layers/support/makeScheduleFunction.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/TerrainData.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialInitParameters.js +2 -0
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBuffer.js +1 -1
- package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
- package/views/3d/webgl-engine/effects/precipitation/Precipitation.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/StencilUtils.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/materials/VisualVariablePassParameters.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/colorRampParameters.js +2 -0
- package/views/VideoView.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileGenerationUtils.js +1 -1
- package/views/draw/support/createUtils.js +1 -1
- package/views/input/BrowserEventSource.js +1 -1
- package/views/input/InputManager.js +1 -1
- package/views/input/handlers/LatestPen.js +2 -0
- package/views/input/handlers/LatestPointer.js +1 -1
- package/views/input/types.d.ts +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/editGeometry/EditGeometry.js +1 -1
- package/views/support/TextureCompressionWorker.js +1 -1
- package/views/support/TextureCompressionWorkerHandle.js +1 -1
- package/views/support/unnormalizationUtils.js +2 -0
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/renderState.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
- package/widgets/ElevationProfile/support/profileUtils.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/css.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/05c3146d87d917606193.js +0 -1
- package/assets/esri/core/workers/chunks/0b77c124b743067e4155.js +0 -1
- package/assets/esri/core/workers/chunks/11241781baaed346af52.js +0 -1
- package/assets/esri/core/workers/chunks/1d9560eb8b21b9e76616.js +0 -1
- package/assets/esri/core/workers/chunks/2c87c3112a43db8624f6.js +0 -1
- package/assets/esri/core/workers/chunks/2da62687ff678b690839.js +0 -1
- package/assets/esri/core/workers/chunks/3a58708217a9c11836ab.js +0 -1
- package/assets/esri/core/workers/chunks/3bbf684ee2484eb44c9f.js +0 -1
- package/assets/esri/core/workers/chunks/49fb9c47070641bce9a9.js +0 -1
- package/assets/esri/core/workers/chunks/4eed175277eb0df3c821.js +0 -1
- package/assets/esri/core/workers/chunks/4f9d027055f3a616173c.js +0 -1
- package/assets/esri/core/workers/chunks/5417308eba30e668b1ee.js +0 -1
- package/assets/esri/core/workers/chunks/62b3e933f548ce354b99.js +0 -1
- package/assets/esri/core/workers/chunks/63381d81adce0a0d2089.js +0 -1
- package/assets/esri/core/workers/chunks/6dbddf5ab1867ac2ac80.js +0 -1
- package/assets/esri/core/workers/chunks/6e70e922331704b92a08.js +0 -1
- package/assets/esri/core/workers/chunks/7c7c11c0fde8b63e330b.js +0 -1
- package/assets/esri/core/workers/chunks/7f55eef696e9ed717bfc.js +0 -1
- package/assets/esri/core/workers/chunks/89dbea6f436d45a3b185.js +0 -1
- package/assets/esri/core/workers/chunks/8f6f5dad52747d252aac.js +0 -596
- package/assets/esri/core/workers/chunks/99c189e1de2b1f14799b.js +0 -1
- package/assets/esri/core/workers/chunks/9aa6b32cb65fbaa93218.js +0 -1
- package/assets/esri/core/workers/chunks/9d216e30d04ea21fc8a2.js +0 -1
- package/assets/esri/core/workers/chunks/9d434360dfce1e49b7b9.js +0 -1
- package/assets/esri/core/workers/chunks/a5d8d6f3c0c8de474efd.js +0 -1
- package/assets/esri/core/workers/chunks/a809b811121099a87a98.js +0 -1
- package/assets/esri/core/workers/chunks/c02ba921c0a32d2021e3.js +0 -1
- package/assets/esri/core/workers/chunks/c3c19b62d948d53118a8.js +0 -1
- package/assets/esri/core/workers/chunks/c46a4adea39636a96d03.js +0 -1
- package/assets/esri/core/workers/chunks/c5507480344176fad241.js +0 -1
- package/assets/esri/core/workers/chunks/c6030271bd6d39b6e1db.js +0 -1
- package/assets/esri/core/workers/chunks/d1a7d13e1d48abcd7bf1.js +0 -1
- package/assets/esri/core/workers/chunks/dcbc4072c18278c2b67d.js +0 -1
- package/assets/esri/core/workers/chunks/e610d24539a675fb054b.js +0 -1
- package/assets/esri/core/workers/chunks/ecb7ede6a8e6c05e4c6c.js +0 -1
- package/assets/esri/core/workers/chunks/f227b34cce6843df0fb6.js +0 -1
- package/assets/esri/core/workers/chunks/fb5a2205f05afc396119.js +0 -1
- package/request/ImageWithType.js +0 -2
- package/views/3d/layers/support/fetchTile.js +0 -2
- package/views/interactive/editGeometry/unnormalizationHelper.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8846],{73354(t,e,r){r.d(e,{a:()=>y,b:()=>f,c:()=>u,d:()=>i,e:()=>p,f:()=>a,l:()=>l,n:()=>h,t:()=>o});var n=r(40876),s=(r(44208),r(72727));function i(t,e,r){o(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function o(t,e,r,n=3,i=n){const o=(0,s.k)(t.length,n,3),u=(0,s.k)(e.length,i,3),f=Math.min(o,u),c=r[0],l=r[1],a=r[2],y=r[4],p=r[5],h=r[6],d=r[8],B=r[9],m=r[10],g=r[12],T=r[13],E=r[14];let S=0,A=0;for(let r=0;r<f;r++){const r=e[S],s=e[S+1],o=e[S+2];t[A]=c*r+y*s+d*o+g,t[A+1]=l*r+p*s+B*o+T,t[A+2]=a*r+h*s+m*o+E,S+=i,A+=n}return t}function u(t,e,r){f(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function f(t,e,r,n=3,i=n){const o=(0,s.k)(t.length,n,3),u=(0,s.k)(e.length,i,3),f=Math.min(o,u),c=r[0],l=r[1],a=r[2],y=r[3],p=r[4],h=r[5],d=r[6],B=r[7],m=r[8];let g=0,T=0;for(let r=0;r<f;r++){const r=e[g],s=e[g+1],o=e[g+2];t[T]=c*r+y*s+d*o,t[T+1]=l*r+p*s+B*o,t[T+2]=a*r+h*s+m*o,g+=i,T+=n}}function c(t,e,r,n=3,s=n){const i=Math.min(t.length/n,e.length/s);let o=0,u=0;for(let f=0;f<i;f++)t[u]=r*e[o],t[u+1]=r*e[o+1],t[u+2]=r*e[o+2],o+=s,u+=n;return t}function l(t,e,r,n){a(t.typedBuffer,e.typedBuffer,r,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,r,s,i=3,o=i){const u=Math.min(t.length/i,e.length/o);let f=0,c=0;const l=1/n.Tf;for(let n=0;n<u;n++)t[c]=s*(r*e[f])**l,t[c+1]=s*(r*e[f+1])**l,t[c+2]=s*(r*e[f+2])**l,f+=o,c+=i}function y(t,e,r,n=3,i=n){const o=(0,s.k)(t.length,n,3),u=(0,s.k)(e.length,i,3),f=Math.min(o,u);let c=0,l=0;for(let s=0;s<f;s++)t[l]=e[c]+r[0],t[l+1]=e[c+1]+r[1],t[l+2]=e[c+2]+r[2],c+=i,l+=n;return t}function p(t,e){h(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function h(t,e,r=3,n=r){const s=Math.min(t.length/r,e.length/n);let i=0,o=0;for(let u=0;u<s;u++){const s=e[i],u=e[i+1],f=e[i+2],c=s*s+u*u+f*f;if(c>0){const e=1/Math.sqrt(c);t[o]=e*s,t[o+1]=e*u,t[o+2]=e*f}i+=n,o+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:a,linearToSRGBView:l,normalize:h,normalizeView:p,scale:c,scaleView:function(t,e,r){c(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,r){const n=Math.min(t.count,e.count),s=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,u=e.typedBufferStride;let f=0,c=0;for(let t=0;t<n;t++)s[c]=o[f]>>r,s[c+1]=o[f+1]>>r,s[c+2]=o[f+2]>>r,f+=u,c+=i},transformMat3:f,transformMat3View:u,transformMat4:o,transformMat4View:i,translate:y},Symbol.toStringTag,{value:"Module"}))},50867(t,e,r){r.d(e,{a:()=>i,b:()=>l,l:()=>c,n:()=>u,t:()=>o});var n=r(40876),s=(r(44208),r(72727));function i(t,e,r){o(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function o(t,e,r,n=4,i=n){const o=(0,s.k)(t.length,n,4),u=(0,s.k)(e.length,i,4),f=Math.min(o,u),c=r[0],l=r[1],a=r[2],y=r[3],p=r[4],h=r[5],d=r[6],B=r[7],m=r[8];let g=0,T=0;for(let r=0;r<f;r++){const r=e[g],s=e[g+1],o=e[g+2],u=e[g+3];t[T]=c*r+y*s+d*o,t[T+1]=l*r+p*s+B*o,t[T+2]=a*r+h*s+m*o,t[T+3]=u,g+=i,T+=n}}function u(t,e){const r=Math.min(t.count,e.count),n=t.typedBuffer,s=t.typedBufferStride,i=e.typedBuffer,o=e.typedBufferStride;for(let t=0;t<r;t++){const e=t*s,r=t*o,u=i[r],f=i[r+1],c=i[r+2],l=u*u+f*f+c*c;if(l>0){const t=1/Math.sqrt(l);n[e]=t*u,n[e+1]=t*f,n[e+2]=t*c}}}function f(t,e,r,n=4){const s=Math.min(t.length/n,e.count),i=e.typedBuffer,o=e.typedBufferStride;let u=0,f=0;for(let e=0;e<s;e++)t[f]=r*i[u],t[f+1]=r*i[u+1],t[f+2]=r*i[u+2],t[f+3]=r*i[u+3],u+=o,f+=n}function c(t,e,r,n){l(t.typedBuffer,e,r,n,t.typedBufferStride)}function l(t,e,r,s,i=4){const o=Math.min(t.length/i,e.count),u=e.typedBuffer,f=e.typedBufferStride;let c=0,l=0;const a=1/n.Tf;for(let e=0;e<o;e++)t[l]=s*(r*u[c])**a,t[l+1]=s*(r*u[c+1])**a,t[l+2]=s*(r*u[c+2])**a,t[l+3]=s*r*u[c+3],c+=f,l+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:l,linearToSRGBView:c,normalize:u,scale:f,scaleView:function(t,e,r){f(t.typedBuffer,e,r,t.typedBufferStride)},transformMat3:o,transformMat3View:i,transformMat4:function(t,e,r,n=4,i=n){const o=(0,s.k)(t.length,n,4),u=(0,s.k)(e.length,i,4),f=Math.min(o,u),c=r[0],l=r[1],a=r[2],y=r[3],p=r[4],h=r[5],d=r[6],B=r[7],m=r[8],g=r[9],T=r[10],E=r[11],S=r[12],A=r[13],M=r[14],v=r[15];let x=0,b=0;for(let r=0;r<f;r++){const r=e[x],s=e[x+1],o=e[x+2],u=e[x+3];t[b]=c*r+p*s+m*o+S*u,t[b+1]=l*r+h*s+g*o+A*u,t[b+2]=a*r+d*s+T*o+M*u,t[b+3]=y*r+B*s+E*o+v*u,x+=i,b+=n}},transformMat4View:function(t,e,r){const n=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,u=e.typedBufferStride,f=(0,s.k)(n.length,i,4),c=(0,s.k)(o.length,u,4),l=Math.min(f,c),a=r[0],y=r[1],p=r[2],h=r[3],d=r[4],B=r[5],m=r[6],g=r[7],T=r[8],E=r[9],S=r[10],A=r[11],M=r[12],v=r[13],x=r[14],b=r[15];for(let t=0;t<l;t++){const e=t*i,r=t*u,s=o[r],f=o[r+1],c=o[r+2],l=o[r+3];n[e]=a*s+d*f+T*c+M*l,n[e+1]=y*s+B*f+E*c+v*l,n[e+2]=p*s+m*f+S*c+x*l,n[e+3]=h*s+g*f+A*c+b*l}}},Symbol.toStringTag,{value:"Module"}))},48163(t,e,r){function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function o(){return i(1,1)}function u(){return i(1,0)}function f(){return i(0,1)}r.d(e,{Un:()=>c,fA:()=>i,o8:()=>s,vt:()=>n});const c=o(),l=u(),a=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:l,UNIT_Y:a,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,ones:o,unitX:u,unitY:f,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353(t,e,r){r.d(e,{l:()=>c});var n=r(34727),s=r(58083),i=r(51850);function o(t,e,r){const n=Math.sin(t),s=Math.cos(t),i=Math.sin(e),o=Math.cos(e),u=r;return u[0]=-n,u[4]=-i*s,u[8]=o*s,u[12]=0,u[1]=s,u[5]=-i*n,u[9]=o*n,u[13]=0,u[2]=0,u[6]=o,u[10]=i,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=r(49208),f=r(21325);function c(t,e,r,n){const i=(0,u.Tp)(t,n);if(null==i)return!1;const c=i.source.spatialReferenceId,h=i.dest.spatialReferenceId;if(c===h&&!l(h)&&(0!==c||(0,f.aI)(t,n)))return(0,s.kN)(r,e),!0;if(l(h)){const t=u.w5[c][10],n=u.w5[10][h];return null!=t&&null!=n&&(t(e,0,y,0),n(y,0,p,0),o(a*y[0],a*y[1],r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}const d=l(c);if((3===h||11===h||2===h||5===h)&&(2===c||d||3===c||5===c)){const t=u.w5[c][10],n=u.w5[10][h];return null!=t&&null!=n&&(t(e,0,y,0),n(y,0,p,0),d?function(t,e,r){o(t,e,r),(0,s.mg)(r,r)}(a*y[0],a*y[1],r):(0,s.D_)(r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}return!1}function l(t){return 1===t||6===t||8===t||4===t}const a=(0,n.kU)(1),y=(0,i.vt)(),p=(0,i.vt)()},65806(t,e,r){r.d(e,{g:()=>o});var n=r(51850),s=r(91218),i=r(9762);function o(t,e,r,n){if((0,s.canProjectWithoutEngine)(t.spatialReference,r))return u[0]=t.x,u[1]=t.y,u[2]=t.z??0,(0,i.projectBuffer)(u,t.spatialReference,0,e,r,0);const o=(0,s.tryProject)(t,r,n);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const u=(0,n.vt)()},1193(t,e,r){r.r(e),r.d(e,{default:()=>a});var n,s=r(5482),i=r(69540),o=r(25482),u=r(4718),f=r(53966),c=r(91429),l=r(31199);let a=n=class extends((0,i.OU)(o.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,l.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},f.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&f.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,l.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},f.A.getLogger(this))}castUv(t){return(0,l.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},f.A.getLogger(this))}castNormal(t){return(0,l.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},f.A.getLogger(this))}castTangent(t){return(0,l.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},f.A.getLogger(this))}clonePositional(){const t={position:(0,u.o8)(this.position),normal:(0,u.o8)(this.normal),tangent:(0,u.o8)(this.tangent),uv:this.uv,color:this.color};return new n(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,s.Cg)([(0,c.MZ)({json:{write:l.B}})],a.prototype,"color",void 0),(0,s.Cg)([(0,c.wg)("color")],a.prototype,"castColor",null),(0,s.Cg)([(0,c.MZ)({nonNullable:!0,json:{write:l.B}})],a.prototype,"position",void 0),(0,s.Cg)([(0,c.wg)("position")],a.prototype,"castPosition",null),(0,s.Cg)([(0,c.MZ)({json:{write:l.B}})],a.prototype,"uv",void 0),(0,s.Cg)([(0,c.wg)("uv")],a.prototype,"castUv",null),(0,s.Cg)([(0,c.MZ)({json:{write:l.B}})],a.prototype,"normal",void 0),(0,s.Cg)([(0,c.wg)("normal")],a.prototype,"castNormal",null),(0,s.Cg)([(0,c.MZ)({json:{write:l.B}})],a.prototype,"tangent",void 0),(0,s.Cg)([(0,c.wg)("tangent")],a.prototype,"castTangent",null),a=n=(0,s.Cg)([(0,c.$K)("esri.geometry.support.MeshVertexAttributes")],a)},13030(t,e,r){r.d(e,{Y$:()=>m,XW:()=>B,qB:()=>C,Qt:()=>G,My:()=>J,bf:()=>$,jZ:()=>v,j0:()=>x,Sx:()=>b,E$:()=>w,h:()=>Y,P:()=>k,SL:()=>R,dy:()=>rt,gH:()=>T,ZD:()=>g,si:()=>_,mJ:()=>D,UL:()=>Q,D6:()=>Z,Yi:()=>U,An:()=>O,LC:()=>N,xs:()=>S,EC:()=>E,Xm:()=>L,Vp:()=>H,zD:()=>tt,m8:()=>q,nS:()=>j,H$:()=>z,eI:()=>P,td:()=>nt,Eq:()=>M,jz:()=>A,Aj:()=>F,E7:()=>W,Y4:()=>et,TX:()=>K,Uz:()=>X,ml:()=>I,XP:()=>V});var n=r(34727),s=r(78955),i=r(91829),o=r(20498);class u{static{this.ElementCount=9}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}class f{static{this.ElementCount=16}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){this.copyFromTypedBuffer(t,e.typedBuffer,r*e.typedBufferStride)}copyFromTypedBuffer(t,e,r){const n=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)n[s++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=1}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}var l=r(37585);class a{static{this.ElementCount=2}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,l.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var y=r(35522);class p{static{this.ElementCount=3}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,y.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=4}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,s.hZ)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}var d=r(620);class B extends c{constructor(t,e=0,r,n){(0,d.vA)(o.SX),super((0,o.pX)(),t,e,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class m extends c{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class g extends a{constructor(t,e=0,r,n){(0,d.vA)(o.SX),super((0,o.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(g,t,e)}static{this.ElementType="f16"}}class T extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(T,t,e)}static{this.ElementType="f32"}}class E extends p{constructor(t,e=0,r,n){(0,d.vA)(o.SX),super((0,o.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f16"}}class S extends p{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static fromTypedArray(t,e){return new S(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class A extends h{constructor(t,e=0,r,n){(0,d.vA)(o.SX),super((0,o.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f16"}}class M extends h{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(M,t,e)}static{this.ElementType="f32"}}class v extends u{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f32"}}class x extends u{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="f64"}}class b extends f{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f32"}}class w extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="f64"}}class C extends c{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="f64"}}class _ extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f64"}}class L extends p{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(L,t,e)}static fromTypedArray(t,e){return new L(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class F extends h{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="f64"}}class R extends c{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="u8"}}class N extends a{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="u8"}}class P extends p{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(P,t,e)}static fromTypedArray(t,e){return new P(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class V extends h{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="u8"}}class Y extends c{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u16"}}class U extends a{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(U,t,e)}static{this.ElementType="u16"}}class j extends p{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="u16"}}class X extends h{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="u16"}}class k extends c{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="u32"}}class O extends a{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="u32"}}class z extends p{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="u32"}}class I extends h{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(I,t,e)}static{this.ElementType="u32"}}class $ extends c{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i8"}}class Z extends a{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i8"}}class q extends p{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="i8"}}class K extends h{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i8"}}class G extends c{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="i16"}}class D extends a{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="i16"}}class H extends p{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i16"}}class W extends h{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i16"}}class J extends c{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i32"}}class Q extends a{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i32"}}class tt extends p{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(tt,t,e)}static{this.ElementType="i32"}}class et extends h{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(et,t,e)}static{this.ElementType="i32"}}class rt extends R{constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return this.typedBuffer[t*this.typedBufferStride]/255}set(t,e){this.typedBuffer[t*this.typedBufferStride]=Math.round(255*(0,n.qE)(e,0,1))}slice(t,e){return this.sliceBuffer(rt,t,e)}}class nt extends V{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,s.hs)(e,super.getVec(t,e),1/255)}setVec(t,e){(0,s.jk)(st,(0,s.T9)(st,e,i.uY),i.Un),(0,s.hs)(st,st,255),(0,s.LI)(st,st),super.setVec(t,st)}get(t,e){return super.get(t,e)/255}set(t,e,r){super.set(t,e,Math.round(255*(0,n.qE)(r,0,1)))}setValues(t,e,r,n,i){(0,s.hZ)(st,e,r,n,i),this.setVec(t,st)}slice(t,e){return this.sliceBuffer(nt,t,e)}}const st=(0,i.vt)()},72727(t,e,r){function n(t,e,r){if(e<=0)return 0;const n=t-r;return n<0?0:Math.floor(n/e)+1}r.d(e,{k:()=>n}),r(53966)},20498(t,e,r){r.d(e,{Bg:()=>s,SX:()=>o,pX:()=>i});let n=globalThis.Float16Array;function s(...t){return new(n??Float32Array)(...t)}function i(){return n}let o=!!n},31199(t,e,r){function n(t,e,r,n){const{loggerTag:s,stride:i}=e;return t.length%i!==0?(n.error(s,`Invalid array length, expected a multiple of ${i}`),new r([])):t}function s(t,e,r,s,i){if(!t)return t;if(t instanceof e)return n(t,s,e,i);for(const o of r)if(t instanceof o)return n(new e(t),s,e,i);if(Array.isArray(t))return n(new e(t),s,e,i);{const n=r.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${n}, but got ${t.constructor.name}`),new e([])}}function i(t,e,r){e[r]=function(t){const e=new Array(t.length);for(let r=0;r<t.length;r++)e[r]=t[r];return e}(t)}r.d(e,{B:()=>i,b:()=>s})},28846(t,e,r){r.d(e,{convertMeshVertexSpace:()=>c});var n=r(49186),s=r(4718),i=r(17676),o=r(1193),u=r(66895),f=r(72258);async function c(t,e,r){await Promise.resolve(),(0,i.Te)(r);const c=(0,f.UR)(t,e,{useEllipsoid:r?.useEllipsoid});if(!c)throw new n.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,u.Lz)(void 0,{vertexAttributes:new o.default({...c,uv:(0,s.o8)(t.vertexAttributes.uv),color:(0,s.o8)(t.vertexAttributes.color)}),vertexSpace:e,transform:null}))}},66895(t,e,r){r.d(e,{$N:()=>l,Lz:()=>i,QN:()=>a,WO:()=>f,hz:()=>u,o2:()=>s});const n=Symbol("meshContext");function s(t){return t&&"object"==typeof t&&n in t?t[n]:void 0}function i(t,e){const r=s(t);return{...t,[n]:{...r,...e}}}const o=Symbol("meshMaterialContext");function u(t){return t&&"object"==typeof t&&o in t?t[o]:void 0}function f(t){const e=u(t);if(e?.materialMap)return t;const r={materialMap:new Map};return{...t,[o]:r}}const c=Symbol("meshTextureContext");function l(t){return t&&"object"==typeof t&&c in t?t[c]:void 0}function a(t){const e=l(t);if(e?.textureMap)return t;const r={textureMap:new Map};return{...t,[c]:r}}},22141(t,e,r){r.d(e,{$5:()=>M,CN:()=>T,JP:()=>g,KM:()=>x,Mv:()=>w,X4:()=>E,gr:()=>A,qs:()=>v,si:()=>S,xA:()=>b});var n=r(34727),s=r(77690),i=r(29242),o=r(58083),u=r(9093),f=r(35522),c=r(51850),l=r(73941),a=r(48353),y=r(9762),p=(r(79258),r(21325)),h=r(28735),d=r(13030),B=r(73354),m=r(50867);const g="Projection may be possible after calling projection.load().";function T(t,e,r,n){t.error(`Failed to project from (wkid:${e.wkid}) to (wkid:${r.wkid}).${n?" ":""}${n}`)}function E(t,e,r,n,s,i){return _(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(e),r,d.Xm.fromTypedArray(n),s,d.xs.fromTypedArray(i))?i:null}function S(t,e,r,n,s,i){return _(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(e),r,d.Xm.fromTypedArray(n),s,d.xs.fromTypedArray(i))?i:null}function A(t,e,r,n){return(0,y.projectBuffer)(t,e,0,r,n,0)?r:null}function M(t,e,r,n){return(0,y.projectBuffer)(t,e,0,r,n,0)?r:null}function v(t,e,r){return(0,s.Ge)(N,r),(0,B.b)(e,t,N),(0,n.or)(N)&&(0,B.n)(e,e),e}function x(t,e,r){return(0,s.z0)(N,r),(0,m.t)(e,t,N),(0,n.or)(N)&&(0,B.n)(e,e,4),e}function b(t,e,r,n,s,i){if(!_(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(e),r,d.Xm.fromTypedArray(n),s,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function w(t,e,r,n,s,i){if(!_(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(e),r,d.Xm.fromTypedArray(n),s,d.xs.fromTypedArray(i,16)))return null;for(let e=3;e<t.length;e+=4)i[e]=t[e];return i}function C(t,e,r,n,i){switch((0,a.l)(n,r,R,n),1===t&&(0,o.B8)(R,R),e){case 0:return(0,s.Ge)(i,R);case 1:return(0,s.z0)(i,R)}}function _(t,e,r,n,s,i,o,u){if(!e)return;const c=n.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,l.q8)(t)||(0,l.KQ)(t)}(s))for(let n=0;n<c;n++)i.getVec(n,L),e.getVec(n,F),(0,f.ei)(F,F,C(t,r,L,o,N)),u.setVec(n,F);else for(let s=0;s<c;s++){i.getVec(s,L),e.getVec(s,F);const c=(0,h.jg)(n.get(s,1));let l=Math.cos(c);1===r!=(0===t)&&(l=1/l),C(t,r,L,o,N),0===t?(N[0]*=l,N[1]*=l,N[2]*=l,N[3]*=l,N[4]*=l,N[5]*=l):(N[0]*=l,N[3]*=l,N[6]*=l,N[1]*=l,N[4]*=l,N[7]*=l),(0,f.ei)(F,F,N),(0,f.S8)(F,F),u.setVec(s,F)}return u}const L=(0,c.vt)(),F=(0,c.vt)(),R=(0,u.vt)(),N=(0,i.vt)()},72258(t,e,r){r.d(e,{UR:()=>S,p5:()=>E,xK:()=>w});var n=r(53966),s=r(34727),i=r(86211),o=r(77690),u=r(29242),f=r(58083),c=r(9093),l=r(35522),a=r(51850),y=r(73941),p=r(98764),h=r(48353),d=r(65806),B=r(27615),m=r(73354),g=r(22141);const T=()=>n.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function E(t,e,{vertexSpace:r,spatialReference:n}){if("georeferenced"===r.type){const s=t;if(!(0,d.g)(e,s,n))return!1;const{origin:i}=r;return(0,l.Re)(t,s,i),!0}const s=(0,p.lO)(n),i=t;if(!(0,d.g)(e,i,s))return!1;const{origin:o}=r,u=R;if(!(0,h.l)(n,o,u,s))return!1;const c=(0,f.B8)(R,u);return null!=c&&((0,l.Z0)(t,i,c),!0)}function S(t,e,r){const{vertexSpace:n,transform:s,vertexAttributes:i}=t,u=(0,B.Hq)(n)?s:null,a=x(t.spatialReference,r,3);if((0,B.yJ)(n,e)&&(!u||(0,f.t2)(u.localMatrix,c.zK))&&b(a)){const{position:t,normal:e,tangent:n}=i,s=r?.allowBufferReuse;return{position:s?t:t.slice(),normal:s?e:e?.slice(),tangent:s?n:n?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:r},{origin:n},s,i){const o=A(e,i);if(!(0,h.l)(e,n,C,o))return(0,g.CN)(T(),e,o),null;if(r&&(0,f.lw)(C,C,r.localMatrix),!(0,h.l)(e,s,_,o))return(0,g.CN)(T(),o,e),null;(0,f.B8)(_,_);const u=(0,f.lw)(C,_,C);return v(u,e,i,3),M(t,u)}(t,t.vertexSpace,e.origin,r):function({spatialReference:t,vertexAttributes:e,transform:r},{origin:n},s,i){const o=A(t,i);if(!(0,h.l)(t,n,C,o))return(0,g.CN)(T(),t,o),null;r&&(0,f.lw)(C,C,r.localMatrix),v(C,t,i,1);const u=new Float64Array(e.position.length),c=function(t,e,r,n,s){(0,m.t)(n,t,e);const i=new Float64Array(t.length);return(0,g.$5)(n,s,i,r)?i:((0,g.CN)(T(),s,r),null)}(e.position,C,t,u,o);if(!c)return null;const a=function(t,e,r,n,s,i){if(null==s)return null;const o=new Float32Array(s.length);return(0,g.qs)(s,o,i),(0,g.si)(o,t,e,r,n,o)?o:((0,g.CN)(T(),n,e),null)}(c,t,u,o,e.normal,C);if(e.normal&&!a)return null;const y=function(t,e,r,n,s,i){if(null==s)return null;const o=new Float32Array(s.length);return(0,g.KM)(s,o,i),(0,g.Mv)(o,t,e,r,n,o)?o:((0,g.CN)(T(),n,e),null)}(c,t,u,o,e.tangent,C);if(e.tangent&&!y)return null;if(s){const t=(0,l.ze)(F,s);(0,m.a)(c,c,t)}return{position:c,normal:a,tangent:y}}(t,t.vertexSpace,e.origin,r);case"georeferenced":return"local"===e.type?function({vertexAttributes:t,spatialReference:e,transform:r},{origin:n},s,i){const u=A(e,i);if(!(0,h.l)(e,s,C,u))return(0,g.CN)(T(),e,u),null;const c=1/x(e,i,2);(0,f.hs)(C,C,[c,c,c]);const l=(0,f.B8)(_,C),{position:a,normal:y,tangent:p}=function(t,e,r){if(!e)return t;if(!r){const{position:r,normal:n,tangent:s}=t;return{position:(0,m.a)(new Float64Array(r.length),r,e),tangent:s,normal:n}}const n=M(t,r.localMatrix);return(0,m.a)(n.position,n.position,e),n}(t,n,r),d=new Float64Array(a.length),B=function(t,e,r,n,s){const i=(0,g.gr)(t,e,n,s);if(!i)return(0,g.CN)(T(),e,s),null;const o=new Float64Array(i.length);return(0,m.t)(o,i,r),o}(a,e,l,d,u);if(!B)return null;const E=(0,o.Ge)(L,l),S=function(t,e,r,n,s,i,o){if(null==t)return null;const u=o??new Float32Array(t.length);return(0,g.X4)(t,e,r,n,s,u)?((0,m.b)(u,u,i),u):((0,g.CN)(T(),r,s),null)}(y,a,e,d,u,E,y!==t.normal?y:void 0);if(!S&&y)return null;const v=function(t,e,r,n,s,i,o){if(null==t)return null;const u=o??new Float32Array(t.length);return(0,g.xA)(t,e,r,n,s,u)?((0,m.b)(u,u,i,4),u):((0,g.CN)(T(),r,s),null)}(p,a,e,d,u,E,p!==t.tangent?p:void 0);return!v&&p?null:{position:B,normal:S,tangent:v}}(t,t.vertexSpace,e.origin,r):function({vertexAttributes:t,transform:e,spatialReference:r},{origin:n},s,i){const o=x(r,i,3),u=n||!b(o)?(0,f.C)(C,e?.localMatrix??c.zK):null;u&&v(u,r,i,3);const{position:a,normal:y,tangent:p}=u?M(t,u):t,h=i?.allowBufferReuse,d=h?a:new Float64Array(a.length);let B=a;if(n&&(B=(0,m.a)(d,B,n)),s){const t=(0,l.ze)(F,s);B=(0,m.a)(d,B,t)}return{position:B!==t.position||h?B:B.slice(),normal:y!==t.normal||h?y:y?.slice(),tangent:p!==t.tangent||h?p:p?.slice()}}(t,t.vertexSpace,e.origin,r)}}function A(t,e){return e?.useEllipsoid&&(0,y.B3)(t)?p.Y0:(0,p.lO)(t)}function M(t,e){const r=new Float64Array(t.position.length);(0,m.t)(r,t.position,e);const n=t.normal?new Float32Array(t.normal.length):null,s=t.tangent?new Float32Array(t.tangent.length):null;return n&&t.normal&&(0,g.qs)(t.normal,n,e),s&&t.tangent&&(0,g.KM)(t.tangent,s,e),{position:r,normal:n,tangent:s}}function v(t,e,r,n){const s=x(e,r,n);b(s)||(0,f.hs)(t,t,[s,s,s])}function x(t,e,r){const n=!!(1&r),s=!!(2&r),i=e?.sourceUnit,o=e?.targetUnit;if(!i&&!o)return 1;let u=w(i,t);n||!i||b(u)||(T().warn("source unit conversion not supported"),u=1);let f=1/w(o,t);return s||!o||b(f)||(T().warn("target unit conversion not supported"),f=1),u*f}function b(t){return(0,s.Io)(t,1)}function w(t,e){if(null==t)return 1;const r=(0,i.KX)(e);return 1/(0,i.oU)(r,"meters",t)}const C=(0,c.vt)(),_=(0,c.vt)(),L=(0,u.vt)(),F=(0,a.vt)(),R=(0,c.vt)()},620(t,e,r){r.d(e,{L:()=>f,MX:()=>o,O_:()=>u,kL:()=>c,vA:()=>i,zH:()=>l});var n=r(48163);r(78955),(0,r(91829).vt)();class s{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function i(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new s(`${e} at ${t}`)}}function o(t,e){t||(e=e||"",console.warn("Verify failed: "+e+"\n"+new Error("verify").stack))}function u(t,e,r,n){let s,i=(r[0]-t[0])/e[0],o=(n[0]-t[0])/e[0];i>o&&(s=i,i=o,o=s);let u=(r[1]-t[1])/e[1],f=(n[1]-t[1])/e[1];if(u>f&&(s=u,u=f,f=s),i>f||u>o)return!1;u>i&&(i=u),f<o&&(o=f);let c=(r[2]-t[2])/e[2],l=(n[2]-t[2])/e[2];return c>l&&(s=c,c=l,l=s),!(i>l||c>o||(l<o&&(o=l),o<0))}function f(t,e,r,s,i,o=(0,n.vt)()){const u=(s[i]-r[i])*(e[0]-t[0])-(s[0]-r[0])*(e[i]-t[i]),f=(s[0]-r[0])*(t[i]-r[i])-(s[i]-r[i])*(t[0]-r[0]);if(0===u)return!1;const c=f/u;return o[0]=t[0]+c*(e[0]-t[0]),o[1]=t[i]+c*(e[i]-t[i]),!0}function c(t,e){return Math.log(t)/Math.log(e)}function l(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]&&0===t[8]&&0===t[9]&&1===t[10]&&0===t[11]&&1===t[15]}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3090],{66344(e,t,i){i.d(t,{q:()=>a});const r=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,s,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),s>this._maxSize)return void this._notifyRemove(t,i,s,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return r||console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,i,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new n(i,s,l)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t){t=e.id+t;const i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let r=i.entry.usedMemory;for(;r>this._maxSize;){const e=this._notifyRemove(t,i.entry,r,1);if(!(null!=e&&e>0))return void this._db.delete(t);r=e}i.size=r,this._size+=r,e.size+=r,this._checkSize()}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach((e,r)=>{const s=e.lifetime;i[s]=(i[s]||0)+e.size,this._clients.forEach(i=>{const{id:s,name:n}=i;if(r.startsWith(s)){const i=t[n]||0;t[n]=i+e.size}})});const r={};this._clients.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[i]||0;t[i]=s,r[i]=Math.round(100*e.hitRate)+"%"}else r[i]="0%"});const s=Object.keys(t);s.sort((e,i)=>t[i]-t[e]),s.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+r[i]);for(let t=i.length-1;t>=0;--t){const r=i[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,r){const s=this._clients.get(e.split(o)[0])?.removeFunc,n=s?.(t,r,i);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const r=t?.id;let s=!0;for(;s;){s=!1;for(const[n,a]of this._db)if(0===a.lifetime&&(!r||n.startsWith(r))){const r=t??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,a,r),i.size<=.9*e)return;s||=this._db.has(n)}}for(const[s,n]of this._db)if(!r||s.startsWith(r)){const r=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,n,r),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const r=this._notifyRemove(e,t.entry,t.size,1);null!=r&&r>0&&(this._size+=r,i&&(i.size+=r),t.lives=t.lifetime,t.size=r,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new s(0);class n{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new s(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,i){i.d(t,{DZ:()=>f,Ke:()=>p,Tj:()=>c,UT:()=>g,aD:()=>m,jJ:()=>u});var r=i(5482),s=i(69622),n=i(97768),o=i(17676),a=i(10107),l=i(64108);function u(e,t,i){return(0,o.Lx)(e.map((e,r)=>t.apply(i,[e,r])))}async function c(e,t,i){return(await(0,o.Lx)(e.map((e,r)=>t.apply(i,[e,r])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function f(e){try{return h(await e)}catch(e){return(0,o.QP)(e),d(e)}}function g(e,t){return new y(e,t)}let y=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,r.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,r.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,r.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,r.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,r.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class m{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,r.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}}},83027(e,t,i){i.d(t,{h:()=>r});const r=i(29953).ho},35982(e,t,i){i.d(t,{B:()=>c});var r=i(4576),s=i(71511),n=i(36563),o=i(53966),a=i(97768),l=i(17676),u=i(83027);class c{constructor(e,t,i,r,s={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,u.h)(e,{...s,schedule:r}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{s.hasInitialize&&e.invoke("initialize",{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const i=new h(e,t);return this._listeners.push(i),this._connectListener(i),(0,n.hA)(()=>{(0,r.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,r){if(this._thread){const s=this._transferLists[e],n=s?s(t):[];return this._thread.invoke(e,t,{transferList:n,signal:i,jobPriority:r})}return this._promise?this._promise.then(()=>((0,l.Te)(i),this.invokeMethod(e,t,i))):Promise.reject((0,l.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(d):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class h{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new s.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function d(){}},54239(e,t,i){i.d(t,{A:()=>y});var r,s=i(5482),n=i(4576),o=i(66552),a=i(25482),l=i(86211),u=i(67076),c=i(91429),h=i(43937),d=i(36005);const p=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=p.jsonValues.slice();(0,n.Xy)(f,"orthometric");const g=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=r=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return p.write(e,t,i)}readHeightModel(e,t,i){return p.read(e)||(i?.messages&&i.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,l.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,l.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function m(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s.Cg)([(0,c.MZ)({type:p.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,s.Cg)([(0,h.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,s.Cg)([(0,d.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,s.Cg)([(0,c.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,s.Cg)([(0,d.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,s.Cg)([(0,d.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,s.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,s.Cg)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=r=(0,s.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],y)},159(e,t,i){i.d(t,{A:()=>u});var r,s=i(5482),n=i(69540),o=i(25482),a=i(91429),l=i(99157);let u=r=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let t=this.steps.length-1;t>=0;t--){const i=this.steps[t];e.steps.push(i.getInverse())}return e}};(0,s.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,i){i.d(t,{A:()=>l});var r,s=i(5482),n=i(69540),o=i(25482),a=i(91429);let l=r=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,s.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,i)=>{t[i]=!e}}})],l.prototype,"isInverse",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,i){i.r(t),i.d(t,{projectBuffer:()=>s});var r=i(49208);function s(e,t,i,s,n,o,a=Math.floor(e.length/3)){const l=(0,r.jd)(t,n);if(null==l)return!1;if(l===r.pO){if(e===s&&i===o)return!0;const t=i+3*a;for(let r=i,n=o;r<t;r++,n++)s[n]=e[r]??0;return!0}const u=i+3*a;for(let t=i,r=o;t<u;t+=3,r+=3)l(e,t,s,r);return!0}},49208(e,t,i){i.d(t,{Tp:()=>h,jd:()=>c,pO:()=>p,w5:()=>u});var r=i(34727),s=i(86211),n=i(73941),o=i(79258),a=i(34403),l=i(21325);const u={2:{5:p,7:null,9:null,10:p,1:M,6:null,8:null,0:null,3:g,11:y,2:p,4:I},5:{5:p,7:null,9:null,10:p,1:M,6:null,8:null,0:null,3:g,11:y,2:p,4:I},7:{5:null,7:p,9:null,10:p,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:f,7:null,9:null,10:f,1:function(e,t,i,r){const s=e[t]/E,n=x-2*Math.atan(Math.exp(-e[t+1]/E)),o=E+(e[t+2]??0),a=Math.cos(n)*o;i[r]=Math.cos(s)*a,i[r+1]=Math.sin(s)*a,i[r+2]=Math.sin(n)*o},6:null,8:null,0:null,3:p,11:function(e,t,i,r){f(e,t,i,r),y(i,r,i,r)},2:f,4:function(e,t,i,r){f(e,t,i,r),I(i,r,i,r)}},4:{5:z,7:null,9:null,10:z,1:function(e,t,i,r){z(e,t,i,r),M(i,r,i,r)},6:null,8:null,0:null,3:function(e,t,i,r){z(e,t,i,r),g(i,r,i,r)},11:function(e,t,i,r){z(e,t,i,r),y(i,r,i,r)},2:z,4:p},1:{5:R,7:null,9:null,10:R,1:p,6:null,8:null,0:null,3:function(e,t,i,r){R(e,t,i,r),g(i,r,i,r)},11:function(e,t,i,r){R(e,t,i,r),y(i,r,i,r)},2:R,4:function(e,t,i,r){R(e,t,i,r),I(i,r,i,r)}},6:{5:null,7:C,9:null,10:C,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:b,10:b,1:null,6:null,8:p,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:M,6:w,8:v,0:null,3:g,11:y,2:p,4:I},11:{5:m,7:null,9:null,10:m,1:function(e,t,i,r){m(e,t,i,r),M(i,r,i,r)},6:null,8:null,0:null,3:function(e,t,i,r){m(e,t,i,r),g(i,r,i,r)},11:p,2:m,4:function(e,t,i,r){m(e,t,i,r),I(i,r,i,r)}}};function c(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(A.source.spatialReference===e&&A.dest.spatialReference===t)return A;const i=d(e,A.source),r=d(t,A.dest);return 0===i&&0===r?(0,l.aI)(e,t)?A.projector=p:A.projector=null:A.projector=u[i][r],A}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.GA)(e,1)),(0,n.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===n.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===n.FY.wkt?t.spatialReferenceId=6:e.wkt===n.LJ.wkt?t.spatialReferenceId=8:(0,n.q8)(e)?t.spatialReferenceId=7:(0,n.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function p(e,t,i,r){e!==i&&(i[r++]=e[t++],i[r++]=e[t++],i[r]=e[t]??0)}function f(e,t,i,r){i[r]=k*(e[t]/E),i[r+1]=k*(x-2*Math.atan(Math.exp(-e[t+1]/E))),i[r+2]=e[t+2]??0}function g(e,t,i,s){!function(e,t,i,s,n){const o=.4999999*Math.PI,a=(0,r.qE)(P*e[t+1],-o,o),l=Math.sin(a);i[s++]=P*e[t]*n.radius,i[s++]=n.halfSemiMajorAxis*Math.log((1+l)/(1-l)),i[s]=e[t+2]??0}(e,t,i,s,o.$O)}function y(e,t,i,r){i[r]=e[t]*T,i[r+1]=e[t+1]*T,i[r+2]=e[t+2]??0}function m(e,t,i,r){i[r]=e[t]*L,i[r+1]=e[t+1]*L,i[r+2]=e[t+2]??0}function _(e,t,i,r,s){const n=s+(e[t+2]??0),o=P*e[t],a=P*e[t+1],l=Math.cos(a)*n;i[r]=Math.cos(o)*l,i[r+1]=Math.sin(o)*l,i[r+2]=Math.sin(a)*n}function v(e,t,i,r){_(e,t,i,r,o.Sw.radius)}function w(e,t,i,r){_(e,t,i,r,o.sH.radius)}function M(e,t,i,r){_(e,t,i,r,o.$O.radius)}function S(e,t,i,s,n){const o=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(o*o+a*a+l*l),c=(0,r.YN)(l/(0===u?1:u)),h=Math.atan2(a,o);i[s++]=k*h,i[s++]=k*c,i[s]=u-n}function b(e,t,i,r){S(e,t,i,r,o.Sw.radius)}function C(e,t,i,r){S(e,t,i,r,o.sH.radius)}function R(e,t,i,r){S(e,t,i,r,o.$O.radius)}function I(e,t,i,r){!function(e,t,i,r,s){const n=P*e[t],o=P*e[t+1],a=e[t+2]??0,l=Math.sin(o),u=Math.cos(o),c=s.radius/Math.sqrt(1-s.eccentricitySquared*l*l);i[r++]=(c+a)*u*Math.cos(n),i[r++]=(c+a)*u*Math.sin(n),i[r++]=(c*(1-s.eccentricitySquared)+a)*l}(e,t,i,r,o.$O)}function z(e,t,i,r){const s=a.TP,n=e[t],l=e[t+1],u=e[t+2]??0;let c,h,d,p,f,g,y,m,_,v,w,M,S,b,C,R,I,z,A,P,x;c=Math.abs(u),h=n*n+l*l,d=Math.sqrt(h),p=h+u*u,f=Math.sqrt(p),P=Math.atan2(l,n),g=u*u/p,y=h/p,b=s.a2/f,C=s.a3-s.a4/f,y>.3?(m=c/f*(1+y*(s.a1+b+g*C)/f),A=Math.asin(m),v=m*m,_=Math.sqrt(1-v)):(_=d/f*(1-g*(s.a5-b-y*C)/f),A=Math.acos(_),v=1-_*_,m=Math.sqrt(v)),w=1-o.$O.eccentricitySquared*v,M=o.$O.radius/Math.sqrt(w),S=s.a6*M,b=d-M*_,C=c-S*m,I=_*b+m*C,R=_*C-m*b,z=R/(S/w+I),A+=z,x=I+R*z/2,u<0&&(A=-A),i[r++]=k*P,i[r++]=k*A,i[r]=x}const A={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},P=(0,r.kU)(1),k=(0,r.KJ)(1),x=.5*Math.PI,E=o.$O.radius,T=E*Math.PI/180,L=180/(E*Math.PI)},91218(e,t,i){i.r(t),i.d(t,{canProjectWithoutEngine:()=>B,initializeProjection:()=>F,isEqualBaseGCS:()=>K,isLoaded:()=>E,isLoadedOrLoad:()=>T,isLoadedOrLoadFor:()=>L,load:()=>U,project:()=>j,projectAsync:()=>N,projectExtent:()=>se,projectMany:()=>H,projectMultipoint:()=>Q,projectOrLoad:()=>D,projectOrLoadMany:()=>V,projectPoint:()=>Y,projectPolygon:()=>ie,projectPolyline:()=>ee,projectWithoutEngine:()=>W,requiresLoad:()=>O,test:()=>G,tryProject:()=>Z,unload:()=>q});var r=i(49186),s=i(17676),n=i(62788),o=i(95488),a=i(51850),l=i(21276),u=i(73941),c=i(5443),h=i(91075),d=i(48526),p=i(86738),f=i(39829),g=i(82799),y=i(16930),m=i(98764),_=i(159),v=i(9762),w=i(49208);function M(e,t,i,r,s,n){return S[0]=e,S[1]=t,S[2]=i,(0,v.projectBuffer)(S,r,0,s,n,0)}const S=(0,a.vt)();var b=i(60408),C=i(21325),R=i(52006);let I=null,z=null,A=null,P=null,k={};const x=new o.I;function E(){return!!(z?.isLoaded()&&A?.isLoaded()&&P?.isLoaded())}function T(){return!!E()||((0,n.gc)(x),U(),!1)}function L(e,t){return!e||!t||B(e,t)||T()}function O(e,t){return!B(e,t)&&!E()}async function U(e){null==I&&(I=Promise.all([i.e(3276).then(i.bind(i,83276)).then(e=>(z=e,z.load())),i.e(8377).then(i.bind(i,8377)).then(e=>(A=e,A.load())),i.e(2158).then(i.bind(i,12158)).then(e=>(P=e,P.load()))])),await I,(0,s.Te)(e),x.notify()}function j(e,t,i){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),H(e,e[0].spatialReference,t,i)):((0,l.f)(e),H([e],e.spatialReference,t,i)[0])}function H(e,t,i,r){if(null==t||null==i)return e;if(B(t,i,r))return e.map(e=>W(e,t,i));if(null==r?.geographicTransformation&&(0,u.jA)(t))return H(e.map(e=>W(e,t,y.A.WGS84)),y.A.WGS84,i,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(i))return H(e,t,y.A.WGS84).map(e=>W(e,y.A.WGS84,i));if(!E())throw new $;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:P.getTransformation(t,i,r.areaOfInterestExtent)||new _.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,i);let s=k[e];s||(s=P.getTransformation(t,i)||new _.A,k[e]=s),r={geographicTransformation:s,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof h.A?z.executeMany(e,i,r):A.executeMany(e,i,r)}function Z(e,t,i){try{return j(e,t,i)}catch(e){return null}}function D(e,t){const i=V([e],t);return null!=i.pending?{pending:i.pending,geometry:null}:null!=i.geometries?{pending:null,geometry:i.geometries[0]}:{pending:null,geometry:null}}function V(e,t,i){if(!E())for(const i of e)if(null!=i&&!(0,C.aI)(i.spatialReference,t)&&(0,C.fn)(i.spatialReference)&&(0,C.fn)(t)&&!B(i.spatialReference,t))return(0,n.gc)(x),{pending:U(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?j(e,t,i):null)}}class $ extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function q(){I=null,z=null,A=null,P=null,k={}}const G={get loadPromise(){return I}};async function N(e,t,i){if((0,s.Te)(i),!e)return e;const r=V(Array.isArray(e)?e:[e],t,i);if(r.pending)return await r.pending,(0,s.Te)(i),N(e,t,i);const n=r.geometries??[];return Array.isArray(e)?n:n[0]}function B(e,t,i){return!(i?.areaOfInterestExtent||i?.extendedParams||i?.geographicTransformation)&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,w.jd)(e,t))}function K(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const i=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),r=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return i&&r}async function F(e,t,i,r){if(E())return(0,s.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:i,options:s}of e)if(t&&i&&!B(t,i,s))return U(r)}else if(e&&t&&!B(e,t,i))return U(r);return(0,s.NO)(r)}function W(e,t,i){return e?(0,b.fT)(e)?J(e,t,new p.A,i,0):(0,b.ZC)(e)?ne(e,t,new c.A,i,0):(0,b.Bi)(e)?re(e,t,new f.A,i,0):(0,b.Rg)(e)?te(e,t,new g.A,i,0):(0,b.U9)(e)?X(e,t,new d.A,i,0):null:null}function Y(e,t,i=t.spatialReference,r=0){return null!=i&&null!=e.spatialReference&&null!=J(e,e.spatialReference,t,i,r)}function J(e,t,i,r,s){ue[0]=e.x,ue[1]=e.y;const n=e.z;return ue[2]=void 0!==n?n:s,(0,v.projectBuffer)(ue,t,0,ue,r,0)?(i.x=ue[0],i.y=ue[1],i.spatialReference=r,void 0!==n||(0,u.xP)(r)?(i.z=ue[2],i.hasZ=!0):(i.z=void 0,i.hasZ=!1),void 0===e.m?(i.m=void 0,i.hasM=!1):(i.m=e.m,i.hasM=!0),i):null}function Q(e,t,i=t.spatialReference,r=0){return null!=e.spatialReference&&null!=i&&null!=X(e,e.spatialReference,t,i,r)}function X(e,t,i,r,s){const{points:n,hasZ:o,hasM:a}=e,l=[],u=n.length,c=[];for(const e of n)c.push(e[0],e[1],o?e[2]:s);if(!(0,v.projectBuffer)(c,t,0,c,r,0,u))return null;const h=le(o,r);for(let e=0;e<u;++e){const t=3*e,i=c[t],r=c[t+1];h&&a?l.push([i,r,c[t+2],n[e][3]]):h?l.push([i,r,c[t+2]]):a?l.push([i,r,n[e][2]]):l.push([i,r])}return i.points=l,i.spatialReference=r,i.hasZ=o,i.hasM=a,i}function ee(e,t,i=t.spatialReference,r=0){return null!=e.spatialReference&&null!=i&&null!=te(e,e.spatialReference,t,i,r)}function te(e,t,i,r,s){const{curvePaths:n,paths:o,hasZ:a,hasM:l}=e;if(!(n?ae(n,a??!1,l??!1,t,i.curvePaths=[],r,s):oe(o,a??!1,l??!1,t,i.paths,r,s)))return null;const u=le(a,r);return i.spatialReference=r,i.hasZ=u,i.hasM=l,i}function ie(e,t,i=t.spatialReference,r=0){return null!=e.spatialReference&&null!=i&&null!=re(e,e.spatialReference,t,i,r)}function re(e,t,i,r,s){const{curveRings:n,rings:o,hasZ:a,hasM:l}=e;return(n?ae(n,a??!1,l??!1,t,i.curveRings=[],r,s):oe(o,a??!1,l??!1,t,i.rings,r,s))?(i.spatialReference=r,i.hasZ=le(a,r),i.hasM=l,i):null}function se(e,t,i=t.spatialReference,r=0){return null!=e.spatialReference&&null!=i&&null!=ne(e,e.spatialReference,t,i,r)}function ne(e,t,i,r,s){const{xmin:n,ymin:o,xmax:a,ymax:l,hasZ:u,hasM:c}=e;if(!M(n,o,u?e.zmin:s,t,ue,r))return null;const h=le(u,r);return i.xmin=ue[0],i.ymin=ue[1],h&&(i.zmin=ue[2]),M(a,l,u?e.zmax:s,t,ue,r)?(i.xmax=ue[0],i.ymax=ue[1],h&&(i.zmax=ue[2]),c&&(i.mmin=e.mmin,i.mmax=e.mmax),i.spatialReference=r,i):null}function oe(e,t,i,r,s,n,o=0){const a=new Array;for(const i of e)for(const e of i)a.push(e[0],e[1],t?e[2]:o);if(!(0,v.projectBuffer)(a,r,0,a,n,0))return!1;let l=0;s.length=0;const u=t?3:2,c=le(t,n);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(l,l+=3);c||t.pop(),i&&t.push(r[u]),e.push(t)}s.push(e)}return!0}function ae(e,t,i,r,s,n,o=0){const a=new Array;for(const i of e)for(const e of i){if((0,R.FG)(e))return!1;if((0,R.aO)(e)){const[i,r]=e.c;a.push(i[0],i[1],t?i[2]:o,r[0],r[1],o);continue}if((0,R.n1)(e)){const[i,r,s]=e.b;a.push(i[0],i[1],t?i[2]:o,r[0],r[1],o,s[0],s[1],o);continue}const i=e;a.push(i[0],i[1],t?i[2]:o)}if(!(0,v.projectBuffer)(a,r,0,a,n,0))return!1;let l=0;s.length=0;const u=t?3:2,c=le(t,n);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(l,l+=3);if(c||t.pop(),i&&t.push((0,R.yP)(r)[u]),(0,R.FG)(r))return!1;if((0,R.aO)(r)){const i=a[l++],r=a[l++];++l,e.push({c:[t,[i,r]]});continue}if((0,R.n1)(r)){const i=a[l++],r=a[l++];++l;const s=a[l++],n=a[l++];++l,e.push({b:[t,[i,r],[s,n]]});continue}e.push(t)}s.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,C.aI)(t,m.Y0)}const ue=(0,a.vt)()},98764(e,t,i){i.d(t,{GD:()=>o,Y0:()=>u,lO:()=>c});var r=i(73941),s=i(16930),n=i(21325);const o=new s.A(r.fv),a=new s.A(r.FY),l=new s.A(r.LJ),u=new s.A(r.Ro);function c(e){const t=h.get(e);if(t)return t;let i=o;if(e)if(e===a)i=a;else if(e===l)i=l;else{const t=e.wkid,r=e.latestWkid;if(null!=t||null!=r)(0,n.tl)(t)||(0,n.tl)(r)?i=a:((0,n.ZL)(t)||(0,n.ZL)(r))&&(i=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?i=a:e===p&&(i=l)}}}return h.set(e,i),i}const h=new Map,d=a.wkt.toUpperCase(),p=l.wkt.toUpperCase()},34403(e,t,i){i.d(t,{TP:()=>o});var r=i(79258);Math.PI;const s=r.$O.radius,n=r.$O.eccentricitySquared,o={a1:s*n,a2:s*n*s*n,a3:s*n*n/2,a4:s*n*s*n*2.5,a5:s*n+s*n*n/2,a6:1-n};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},38732(e,t,i){i.r(t),i.d(t,{default:()=>R});var r=i(5482),s=i(11254),n=i(49186),o=i(97768),a=i(25728),l=i(17676),u=i(84952),c=i(91429),h=i(54239),d=i(4146),p=i(89186),f=i(18768),g=i(34287),y=i(8303),m=i(10873),_=i(87378),v=i(35982);class w extends v.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(M.forEach((e,t)=>{e===this&&M.delete(t)}),this.destroy())}}const M=new Map;var S=i(36005);let b=class extends((0,p.f)((0,f.b)((0,g.q)((0,y.A)((0,a.M)(d.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=M.get(e);return t||(null!=e?(t=new w(t=>e.immediate.schedule(t)),M.set(e,t)):(t=new w,M.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,o.Gz)(this._lercDecoder)}readCapabilities(e,t){const i=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}readVersion(e,t){let i=t.currentVersion;return i||(i=9.3),i}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(l.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,t,i,r){const o=r?.signal,a={responseType:"array-buffer",signal:o,useQueue:r?.useQueue,priority:r?.priority},l={noDataValue:r?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,t,i,r);const u=await(0,s.A)(this.getTileUrl(e,t,i),a),c=await this._lercDecoder.decode(u.data,l,o);if(!c)throw new n.A("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new _.A({values:c.pixelData,width:c.width,height:c.height,noDataValue:c.noDataValue})}getTileUrl(e,t,i){const r=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,s=(0,u.x0)({...this.parsedUrl.query,blankTile:!r&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${s?"?"+s:""}`}async queryElevation(e,t){const{query:r}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),r(this,e,t)}async createElevationSampler(e,t){const{createSampler:r}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),r(this,e,t)}_fetchTileAvailability(e,t,i,r){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,r):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,s.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[C]}};(0,r.Cg)([(0,c.MZ)({readOnly:!0})],b.prototype,"capabilities",void 0),(0,r.Cg)([(0,S.w)("service","capabilities",["capabilities"])],b.prototype,"readCapabilities",null),(0,r.Cg)([(0,c.MZ)({json:{read:{source:"copyrightText"}}})],b.prototype,"copyright",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0,type:h.A})],b.prototype,"heightModelInfo",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],b.prototype,"path",void 0),(0,r.Cg)([(0,c.MZ)({type:["show","hide"]})],b.prototype,"listMode",void 0),(0,r.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],b.prototype,"minScale",void 0),(0,r.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],b.prototype,"maxScale",void 0),(0,r.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],b.prototype,"opacity",void 0),(0,r.Cg)([(0,c.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],b.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,c.MZ)()],b.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,c.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],b.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)(m.OZ)],b.prototype,"url",void 0),(0,r.Cg)([(0,c.MZ)()],b.prototype,"version",void 0),(0,r.Cg)([(0,S.w)("version",["currentVersion"])],b.prototype,"readVersion",null),b=(0,r.Cg)([(0,c.$K)("esri.layers.ElevationLayer")],b);const C=Symbol("default-fetch-tile");b.prototype.fetchTile[C]=!0;const R=b},18768(e,t,i){i.d(t,{b:()=>a});var r=i(5482),s=i(53966),n=i(91429),o=i(60694);const a=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,s.A.getLogger(this)))}};return(0,r.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}},8303(e,t,i){i.d(t,{A:()=>M});var r=i(5482),s=i(92602),n=i(70333),o=i(11254),a=i(60999),l=i(49186),u=i(53966),c=i(97768),h=i(17676),d=i(84952),p=i(91429),f=i(77548),g=i(20655),y=i(80812),m=i(41318),_=i(10407),v=i(36005),w=i(43937);const M=e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new y.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,h.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,h.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!n.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,r);let o,a;if(s)o=i.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!o||!(0,d.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(s?await i.reload():(i=new y.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,h.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,_.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=g.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(r))return s.user;const l=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?m.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return i&&r&&!(0,d.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,p.MZ)({type:y.default})],M.prototype,"portalItem",null),(0,r.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,r.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,r.Cg)([(0,p.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,r.Cg)([(0,p.$K)("esri.layers.mixins.PortalLayer")],M),M},S={credential:null,user:null}},87378(e,t,i){i.d(t,{A:()=>a});var r,s=i(34275),n=i(56507);const o=Symbol("ElevationTileDataClass");class a{static{r=o}constructor({values:e,width:t,height:i,noDataValue:n}){this[r]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,s.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=i,this.noDataValue=n}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let i=1/0,r=-1/0,s=!0;for(const n of t)n===e?this._hasNoDataValues=!0:(i=n<i?n:i,r=n>r?n:r,s=!1);s?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=r>-3e38?r:0)}static{this.from=(0,n.qf)(a)}}},10407(e,t,i){i.d(t,{It:()=>p,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>h});var r=i(91218),s=i(16930),n=i(28735);function o(e,t){if(!a(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function c(e,t,i){i?o(e,t):u(e,t)}async function h(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const i=s.A.WGS84;return await(0,r.initializeProjection)(t,i),(0,r.project)(e,i)}(i)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function p(e){const{portal:t,isOrgItem:i,itemControl:r}=e,s=t.user?.privileges;let n=!s||s.includes("features:user:edit"),o=!!i&&!!s?.includes("features:user:fullEdit");const a="update"===r||"admin"===r;return a?o=n=!0:o&&(n=!0),{features:{edit:n,fullEdit:o},content:{updateItem:a}}}},78553(e,t,i){i.d(t,{D:()=>n,p:()=>s});var r=i(56507);function s(e){const t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7609],{54239(e,t,i){i.d(t,{A:()=>f});var r,o=i(5482),s=i(4576),n=i(66552),d=i(25482),l=i(86211),a=i(67076),p=i(91429),u=i(43937),c=i(36005);const h=(0,n.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=h.jsonValues.slice();(0,s.Xy)(g,"orthometric");const y=(0,n.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=r=class extends d.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return y.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,l.LA)(e)||y.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,l.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function m(e,t){return new a.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o.Cg)([(0,p.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],f.prototype,"heightModel",void 0),(0,o.Cg)([(0,u.K)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,o.Cg)([(0,c.w)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,o.Cg)([(0,p.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y.jsonValues,write:{writer:y.write,isRequired:!0}}}}})],f.prototype,"heightUnit",void 0),(0,o.Cg)([(0,c.w)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,o.Cg)([(0,c.w)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,o.Cg)([(0,p.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,o.Cg)([(0,c.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=r=(0,o.Cg)([(0,p.$K)("esri.geometry.HeightModelInfo")],f)},47685(e,t,i){i.d(t,{Mk:()=>h,Zk:()=>u,w6:()=>f});var r=i(5482),o=i(65529),s=i(4718),n=i(91429),d=i(20816);const l=new o.bk;function a(e){return l.on("apply-edits",new WeakRef(e))}function p(e){return l.on("update-moment",new WeakRef(e))}function u(e,t,i=null,r=!1){const o=Promise.withResolvers();return r=null==t||r,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const c=Symbol();function h(e){return null!=e&&"object"==typeof e&&c in e}function g(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function y(e,t,i){const r=new URL(e).host,o=d.Z3.get(r),s=e=>!e||e===o;return s(t)&&s(i)||t===i}const f=e=>{var t;const i=e;let o=class extends i{static{t=c}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:o,result:n}=e,d=t===this.url,l=null!=i&&null!=this.layerId&&i===this.layerId,a=g(this),p=g(this)&&y(t,r,this.gdbVersion);if(!d||a&&!p||!l&&!o)return;const u=n.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.o8)(e)),e;const i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){const{adds:t,updates:r,deletes:o}=i.editedFeatures,n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:o?o.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return this.emit("edits",n),n}const o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,o.historicMoment)&&this.emit("edits",o),o}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));this.emit("apply-edits",{result:u})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,s=g(this),n=g(this)&&y(t,i,this.gdbVersion),d=g(this)&&!y(t,this.gdbVersion,null);o&&s&&n&&d&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(a(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(p(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,d.w5)(e,t)}};return(0,r.Cg)([(0,n.MZ)()],o.prototype,"lastEditsEventDate",void 0),o=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.EditBusLayer")],o),o}},10086(e,t,i){i.d(t,{j:()=>A});var r=i(5482),o=i(7762),s=i(4718),n=i(84952),d=i(91429),l=i(89317),a=i(35666),p=i(5443),u=i(54239),c=i(16930),h=i(10873),g=i(28032),y=i(69540),f=i(25482);let m=class extends((0,y.OU)(f.o)){constructor(e){super(e)}};(0,r.Cg)([(0,d.MZ)({constructOnly:!0,json:{write:!0}})],m.prototype,"name",void 0),(0,r.Cg)([(0,d.MZ)({constructOnly:!0,json:{write:!0}})],m.prototype,"fields",void 0),(0,r.Cg)([(0,d.MZ)({constructOnly:!0,json:{write:!0}})],m.prototype,"isAscending",void 0),(0,r.Cg)([(0,d.MZ)({constructOnly:!0,json:{write:!0}})],m.prototype,"indexType",void 0),(0,r.Cg)([(0,d.MZ)({constructOnly:!0,json:{write:!0}})],m.prototype,"isUnique",void 0),(0,r.Cg)([(0,d.MZ)({constructOnly:!0,json:{write:!0}})],m.prototype,"description",void 0),m=(0,r.Cg)([(0,d.$K)("esri.layers.support.FeatureIndex")],m);var v=i(15426),M=i(86211);let C=class extends((0,y.OU)(f.o)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r.Cg)([(0,d.MZ)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],C.prototype,"shapeAreaField",void 0),(0,r.Cg)([(0,d.MZ)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],C.prototype,"shapeLengthField",void 0),(0,r.Cg)([(0,d.MZ)({type:String,json:{read:e=>M.dk.read(e)||M.Sk.read(e)}})],C.prototype,"units",void 0),C=(0,r.Cg)([(0,d.$K)("esri.layers.support.GeometryFieldsInfo")],C);var I=i(37352),F=i(77548),b=i(73179),w=i(45067),S=i(6666),Z=i(8631),j=i(36005),U=i(43937);let O=class extends((0,y.OU)(f.o)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,Z.r)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r.Cg)([(0,d.MZ)({type:Number,json:{write:!0}})],O.prototype,"code",void 0),(0,r.Cg)([(0,d.MZ)({type:Object,json:{write:!0}})],O.prototype,"defaultValues",void 0),(0,r.Cg)([(0,d.MZ)({json:{write:!0}})],O.prototype,"domains",void 0),(0,r.Cg)([(0,j.w)("domains")],O.prototype,"readDomains",null),(0,r.Cg)([(0,U.K)("domains")],O.prototype,"writeDomains",null),(0,r.Cg)([(0,d.MZ)({type:String,json:{write:!0}})],O.prototype,"name",void 0),O=(0,r.Cg)([(0,d.$K)("esri.layers.support.Subtype")],O);var E=i(10407),x=i(56400);const A=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.cacheMaxAge=0,this.capabilities=null,this.copyright=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.fieldsIndex=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(o.A.ofType(m)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=c.A.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.uniqueIdFields=null,this.url=null,this.version=void 0,this._isUrlHostModified=!1,this._isUrlHostModificationEnabled=!1}getFieldDomain(e,t){throw new Error("Not implemented")}getField(e){return this.fieldsIndex.get(e)}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}if((0,v.rQ)(this.serviceDefinitionExpression)||(0,v.rQ)(this.definitionExpression))return"load";if(this.userHasUpdateItemPrivileges){if((0,v.tG)(this))return"load";if(this.hasUpdateItemRestrictions)return e.operations.supportsQuery?"editing":"load"}if(this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions)return"editing";const t=this.editFieldsInfo;return(t?.creatorField||t?.editorField)&&e?.operations.supportsEditing?"editing":null}readCapabilitiesFromService(e,t){return(0,S.S$)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,s.o8)(e),{operations:i,editing:r}=t;return(0,v.Pt)(this)?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}get effectiveEditingEnabled(){return!1}readGlobalIdFieldFromService(e,t){return(0,v.jD)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||(0,v.Pt)(this))return!1;const{operations:t,editing:i}=e;return t.supportsEditing&&!(t.supportsAdd&&t.supportsDelete&&t.supportsUpdate&&i.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const e=this.capabilities;if(!e)return!1;const{operations:t,editing:i}=e;return(0,v.Pt)(this)?!t.supportsQuery:!(t.supportsAdd&&t.supportsDelete&&t.supportsEditing&&t.supportsQuery&&t.supportsUpdate&&i.supportsDeleteByOthers&&i.supportsGeometryUpdate&&i.supportsUpdateByOthers)}readIsTableFromService(e,t){return"Table"===t.type}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readMinScale(e,t){return t.effectiveMinScale||e||0}readObjectIdFieldFromService(e,t){return(0,v.Zm)(t)}get parsedUrl(){return(0,b.h)(this)}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}readUniqueIdFields(e,t){return t.uniqueIdInfo?.OIDFieldContainsHashValue?t.uniqueIdInfo.fields:null}readVersion(e,t){return(0,v.$4)(t)}get isUrlHostModified(){const{loaded:e,url:t,_isUrlHostModified:i}=this;if(i)return!0;if(!e||!t)return!1;if(this.originIdOf("url")<7)return!1;const r=this.sourceJSON?.preferredHost;if(!r)return!1;if(!(0,n.FX)(t,`https://${r}`,!0))return!1;for(let e=6;e>=3;e--){const i=this.getAtOrigin("url",(0,a.OL)(e));if(i)return!(0,n.FX)(t,i,!0)}return!1}applyPreferredHost(e){const{url:t,portalItem:i}=this;if(!t||!(0,F.OP)(i))return;const r=(0,F.$x)();r&&this._isUrlHostModificationEnabled&&(this._set("url",r),this._isUrlHostModified=!0,i&&(0,F.Gh)(i,(0,F.G$)()))}applyHostFromPortalItem(){const{url:e,portalItem:t}=this;if(!e||7===this.originIdOf("url")||!t?.url||!(0,F.OP)(t)||!(0,E.Y)(t,E.mm.HOSTED_SERVICE)||(0,n.FX)(e,t.url,!0)||!this._isUrlHostModificationEnabled)return;const i=(0,n.Ln)(t.url);this._set("url",(0,n.hf)(e,i)),this._isUrlHostModified=!0}};return(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"authenticationTriggerEvent",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{read:e=>e/60}})],i.prototype,"cacheMaxAge",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","isDataBranchVersioned","isDataVersioned","maxRecordCount","maxRecordCountFactor","maxUniqueIDCount","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","standardMaxRecordCountNoGeometry","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],i.prototype,"capabilities",void 0),(0,r.Cg)([(0,j.w)("service","capabilities")],i.prototype,"readCapabilitiesFromService",null),(0,r.Cg)([(0,d.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,d.MZ)((0,x.P6)("dateFieldsTimeReference"))],i.prototype,"dateFieldsTimeZone",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],i.prototype,"datesInUnknownTimezone",void 0),(0,r.Cg)([(0,d.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],i.prototype,"definitionExpression",void 0),(0,r.Cg)([(0,d.MZ)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],i.prototype,"displayField",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,type:g.A})],i.prototype,"editFieldsInfo",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"editingInfo",void 0),(0,r.Cg)([(0,j.w)("editingInfo")],i.prototype,"readEditingInfo",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"effectiveCapabilities",null),(0,r.Cg)([(0,d.MZ)()],i.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,d.MZ)((()=>{const e=(0,s.o8)(h.Yj),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],i.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,d.MZ)()],i.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,d.MZ)({type:I.A,json:{name:"layerDefinition.floorInfo",write:{layerContainerTypes:l.K}}})],i.prototype,"floorInfo",void 0),(0,r.Cg)([(0,d.MZ)({type:p.A,json:{origins:{service:{read:{source:"extent"}}}}})],i.prototype,"fullExtent",void 0),(0,r.Cg)([(0,d.MZ)()],i.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,type:C,json:{read:{source:"geometryProperties"}}})],i.prototype,"geometryFieldsInfo",void 0),(0,r.Cg)([(0,d.MZ)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:v.iX.read}}}})],i.prototype,"geometryType",void 0),(0,r.Cg)([(0,d.MZ)({type:String})],i.prototype,"globalIdField",void 0),(0,r.Cg)([(0,j.w)("service","globalIdField",["globalIdField","fields"])],i.prototype,"readGlobalIdFieldFromService",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"hasFullEditingRestrictions",null),(0,r.Cg)([(0,d.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],i.prototype,"hasM",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"hasUpdateItemRestrictions",null),(0,r.Cg)([(0,d.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],i.prototype,"hasZ",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,type:u.A})],i.prototype,"heightModelInfo",void 0),(0,r.Cg)([(0,d.MZ)({type:Date})],i.prototype,"historicMoment",void 0),(0,r.Cg)([(0,d.MZ)({type:o.A.ofType(m),readOnly:!0})],i.prototype,"indexes",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"isTable",void 0),(0,r.Cg)([(0,j.w)("service","isTable",["type"])],i.prototype,"readIsTableFromService",null),(0,r.Cg)([(0,d.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],i.prototype,"layerId",void 0),(0,r.Cg)([(0,d.MZ)(h.hG)],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,j.w)("service","maxScale",["maxScale","effectiveMaxScale"])],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,d.MZ)(h.hn)],i.prototype,"minScale",void 0),(0,r.Cg)([(0,j.w)("service","minScale",["minScale","effectiveMinScale"])],i.prototype,"readMinScale",null),(0,r.Cg)([(0,d.MZ)({type:String})],i.prototype,"objectIdField",void 0),(0,r.Cg)([(0,j.w)("service","objectIdField",["objectIdField","fields"])],i.prototype,"readObjectIdFieldFromService",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"parsedUrl",null),(0,r.Cg)([(0,d.MZ)((0,x.P6)("preferredTimeReference"))],i.prototype,"preferredTimeZone",void 0),(0,r.Cg)([(0,d.MZ)({type:[w.A],readOnly:!0})],i.prototype,"relationships",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],i.prototype,"returnM",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],i.prototype,"returnZ",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{write:!1}})],i.prototype,"serverGens",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"serviceDefinitionExpression",void 0),(0,r.Cg)([(0,j.w)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],i.prototype,"readServiceDefinitionExpression",null),(0,r.Cg)([(0,d.MZ)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],i.prototype,"serviceItemId",void 0),(0,r.Cg)([(0,d.MZ)()],i.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,d.MZ)({type:c.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,d.MZ)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],i.prototype,"subtypeField",void 0),(0,r.Cg)([(0,d.MZ)({type:[O],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],i.prototype,"subtypes",void 0),(0,r.Cg)([(0,d.MZ)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],i.prototype,"trackIdField",void 0),(0,r.Cg)([(0,d.MZ)({type:[String],readOnly:!0})],i.prototype,"uniqueIdFields",void 0),(0,r.Cg)([(0,j.w)("service","uniqueIdFields",["uniqueIdInfo.OIDFieldContainsHashValue","uniqueIdInfo.fields"])],i.prototype,"readUniqueIdFields",null),(0,r.Cg)([(0,d.MZ)((0,b.b)({nonStandardUrlAllowed:!0}))],i.prototype,"url",void 0),(0,r.Cg)([(0,d.MZ)({json:{origins:{service:{read:!0}},read:!1}})],i.prototype,"version",void 0),(0,r.Cg)([(0,j.w)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],i.prototype,"readVersion",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"isUrlHostModified",null),i=(0,r.Cg)([(0,d.$K)("esri.layers.mixins.FeatureLayerBase")],i),i}},73179(e,t,i){i.d(t,{b:()=>l,h:()=>a});var r=i(4718),o=i(53966),s=i(84952),n=i(60694),d=i(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:i}=e??{},s=(0,r.o8)(d.OZ),l=s.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,r,o){(0,n.LS)(this,e,i,t,o)}),{...s,set:function(e){if(null==e)return void this._set("url",e);const i=(0,n.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:o.A.getLogger(this)});this._set("url",i.url),null!=i.layerId&&this._set("layerId",i.layerId)}}}function a(e,t){const{separator:i}=t??{},r=(0,s.An)(e.url);return null!=r&&(null!=e.dynamicDataSource?r.path=(0,s.fj)(r.path,"dynamicLayer"):null!=e.layerId&&(r.path=(0,s.fj)(r.path,i??"",e.layerId.toString()))),r}},91908(e,t,i){i.d(t,{D:()=>s});var r=i(60694);const o=[];function s(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.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}]),o.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}]),o.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}]),o.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}]),o.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}])},20816(e,t,i){i.d(t,{TA:()=>o,We:()=>d,Z3:()=>s,ZJ:()=>l,w5:()=>a});var r=i(11254);const o=(0,i(13069).vD)(),s=new Map,n=new Map;async function d(e,t,i){if(!e||!i)return!1;if(!t)return!0;const o=new URL(e).host;let n=s.get(o);if(!n){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");n=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return n===t}async function l(e,t,r=!1){if(!e||!t)return!0;const s=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),d=n.get(s)?.entries();if(d)for(const[e,n]of d)if(n.name===t){const t=!n.stack?.hasForwardEdits();if(!t&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),d=await t(s,e,new r({sessionId:o,moment:n.moment}));return d.success&&n.stack?.clearForwardEdits(),d.success}return t}return!0}function a(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=n.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7609],{54239(e,t,i){i.d(t,{A:()=>f});var r,o=i(5482),s=i(4576),n=i(66552),d=i(25482),l=i(86211),a=i(67076),p=i(91429),u=i(43937),c=i(36005);const h=(0,n.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=h.jsonValues.slice();(0,s.Xy)(g,"orthometric");const y=(0,n.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=r=class extends d.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return y.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,l.LA)(e)||y.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,l.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function m(e,t){return new a.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o.Cg)([(0,p.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],f.prototype,"heightModel",void 0),(0,o.Cg)([(0,u.K)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,o.Cg)([(0,c.w)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,o.Cg)([(0,p.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y.jsonValues,write:{writer:y.write,isRequired:!0}}}}})],f.prototype,"heightUnit",void 0),(0,o.Cg)([(0,c.w)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,o.Cg)([(0,c.w)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,o.Cg)([(0,p.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,o.Cg)([(0,c.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=r=(0,o.Cg)([(0,p.$K)("esri.geometry.HeightModelInfo")],f)},47685(e,t,i){i.d(t,{Mk:()=>h,Zk:()=>u,w6:()=>f});var r=i(5482),o=i(65529),s=i(4718),n=i(91429),d=i(20816);const l=new o.bk;function a(e){return l.on("apply-edits",new WeakRef(e))}function p(e){return l.on("update-moment",new WeakRef(e))}function u(e,t,i=null,r=!1){const o=Promise.withResolvers();return r=null==t||r,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const c=Symbol();function h(e){return null!=e&&"object"==typeof e&&c in e}function g(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function y(e,t,i){const r=new URL(e).host,o=d.Z3.get(r),s=e=>!e||e===o;return s(t)&&s(i)||t===i}const f=e=>{var t;const i=e;let o=class extends i{static{t=c}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:o,result:n}=e,d=t===this.url,l=null!=i&&null!=this.layerId&&i===this.layerId,a=g(this),p=g(this)&&y(t,r,this.gdbVersion);if(!d||a&&!p||!l&&!o)return;const u=n.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.o8)(e)),e;const i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){const{adds:t,updates:r,deletes:o}=i.editedFeatures,n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:o?o.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return this.emit("edits",n),n}const o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,o.historicMoment)&&this.emit("edits",o),o}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));this.emit("apply-edits",{result:u})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,s=g(this),n=g(this)&&y(t,i,this.gdbVersion),d=g(this)&&!y(t,this.gdbVersion,null);o&&s&&n&&d&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(a(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(p(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,d.w5)(e,t)}};return(0,r.Cg)([(0,n.MZ)()],o.prototype,"lastEditsEventDate",void 0),o=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.EditBusLayer")],o),o}},10086(e,t,i){i.d(t,{j:()=>A});var r=i(5482),o=i(7762),s=i(4718),n=i(84952),d=i(91429),l=i(89317),a=i(35666),p=i(5443),u=i(54239),c=i(16930),h=i(10873),g=i(28032),y=i(69540),f=i(25482);let m=class extends((0,y.OU)(f.o)){constructor(e){super(e)}};(0,r.Cg)([(0,d.MZ)({constructOnly:!0,json:{write:!0}})],m.prototype,"name",void 0),(0,r.Cg)([(0,d.MZ)({constructOnly:!0,json:{write:!0}})],m.prototype,"fields",void 0),(0,r.Cg)([(0,d.MZ)({constructOnly:!0,json:{write:!0}})],m.prototype,"isAscending",void 0),(0,r.Cg)([(0,d.MZ)({constructOnly:!0,json:{write:!0}})],m.prototype,"indexType",void 0),(0,r.Cg)([(0,d.MZ)({constructOnly:!0,json:{write:!0}})],m.prototype,"isUnique",void 0),(0,r.Cg)([(0,d.MZ)({constructOnly:!0,json:{write:!0}})],m.prototype,"description",void 0),m=(0,r.Cg)([(0,d.$K)("esri.layers.support.FeatureIndex")],m);var v=i(15426),M=i(86211);let C=class extends((0,y.OU)(f.o)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r.Cg)([(0,d.MZ)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],C.prototype,"shapeAreaField",void 0),(0,r.Cg)([(0,d.MZ)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],C.prototype,"shapeLengthField",void 0),(0,r.Cg)([(0,d.MZ)({type:String,json:{read:e=>M.dk.read(e)||M.Sk.read(e)}})],C.prototype,"units",void 0),C=(0,r.Cg)([(0,d.$K)("esri.layers.support.GeometryFieldsInfo")],C);var I=i(37352),F=i(77548),b=i(73179),w=i(45067),S=i(6666),Z=i(8631),j=i(36005),U=i(43937);let O=class extends((0,y.OU)(f.o)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,Z.r)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r.Cg)([(0,d.MZ)({type:Number,json:{write:!0}})],O.prototype,"code",void 0),(0,r.Cg)([(0,d.MZ)({type:Object,json:{write:!0}})],O.prototype,"defaultValues",void 0),(0,r.Cg)([(0,d.MZ)({json:{write:!0}})],O.prototype,"domains",void 0),(0,r.Cg)([(0,j.w)("domains")],O.prototype,"readDomains",null),(0,r.Cg)([(0,U.K)("domains")],O.prototype,"writeDomains",null),(0,r.Cg)([(0,d.MZ)({type:String,json:{write:!0}})],O.prototype,"name",void 0),O=(0,r.Cg)([(0,d.$K)("esri.layers.support.Subtype")],O);var E=i(10407),x=i(56400);const A=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.cacheMaxAge=0,this.capabilities=null,this.copyright=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.fieldsIndex=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(o.A.ofType(m)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=c.A.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.uniqueIdFields=null,this.url=null,this.version=void 0,this._isUrlHostModified=!1,this._isUrlHostModificationEnabled=!1}getFieldDomain(e,t){throw new Error("Not implemented")}getField(e){return this.fieldsIndex.get(e)}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}if((0,v.rQ)(this.serviceDefinitionExpression)||(0,v.rQ)(this.definitionExpression))return"load";if(this.userHasUpdateItemPrivileges){if((0,v.tG)(this))return"load";if(this.hasUpdateItemRestrictions)return e.operations.supportsQuery?"editing":"load"}if(this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions)return"editing";const t=this.editFieldsInfo;return(t?.creatorField||t?.editorField)&&e?.operations.supportsEditing?"editing":null}readCapabilitiesFromService(e,t){return(0,S.S$)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,s.o8)(e),{operations:i,editing:r}=t;return(0,v.Pt)(this)?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}get effectiveEditingEnabled(){return!1}readGlobalIdFieldFromService(e,t){return(0,v.jD)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||(0,v.Pt)(this))return!1;const{operations:t,editing:i}=e;return t.supportsEditing&&!(t.supportsAdd&&t.supportsDelete&&t.supportsUpdate&&i.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const e=this.capabilities;if(!e)return!1;const{operations:t,editing:i}=e;return(0,v.Pt)(this)?!t.supportsQuery:!(t.supportsAdd&&t.supportsDelete&&t.supportsEditing&&t.supportsQuery&&t.supportsUpdate&&i.supportsDeleteByOthers&&i.supportsGeometryUpdate&&i.supportsUpdateByOthers)}readIsTableFromService(e,t){return"Table"===t.type}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readMinScale(e,t){return t.effectiveMinScale||e||0}readObjectIdFieldFromService(e,t){return(0,v.Zm)(t)}get parsedUrl(){return(0,b.h)(this)}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}readUniqueIdFields(e,t){return t.uniqueIdInfo?.OIDFieldContainsHashValue?t.uniqueIdInfo.fields:null}readVersion(e,t){return(0,v.$4)(t)}get isUrlHostModified(){const{loaded:e,url:t,_isUrlHostModified:i}=this;if(i)return!0;if(!e||!t)return!1;if(this.originIdOf("url")<7)return!1;const r=this.sourceJSON?.preferredHost;if(!r)return!1;if(!(0,n.FX)(t,`https://${r}`,!0))return!1;for(let e=6;e>=3;e--){const i=this.getAtOrigin("url",(0,a.OL)(e));if(i)return!(0,n.FX)(t,i,!0)}return!1}applyPreferredHost(e){const{url:t,portalItem:i}=this;if(!t||!(0,F.OP)(i))return;const r=(0,F.$x)();r&&this._isUrlHostModificationEnabled&&(this._set("url",r),this._isUrlHostModified=!0,i&&(0,F.Gh)(i,(0,F.G$)()))}applyHostFromPortalItem(){const{url:e,portalItem:t}=this;if(!e||7===this.originIdOf("url")||!t?.url||!(0,F.OP)(t)||!(0,E.Y)(t,E.mm.HOSTED_SERVICE)||(0,n.FX)(e,t.url,!0)||!this._isUrlHostModificationEnabled)return;const i=(0,n.Ln)(t.url);this._set("url",(0,n.hf)(e,i)),this._isUrlHostModified=!0}};return(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"authenticationTriggerEvent",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{read:e=>e/60}})],i.prototype,"cacheMaxAge",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","isDataBranchVersioned","isDataVersioned","maxRecordCount","maxRecordCountFactor","maxUniqueIDCount","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","standardMaxRecordCountNoGeometry","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],i.prototype,"capabilities",void 0),(0,r.Cg)([(0,j.w)("service","capabilities")],i.prototype,"readCapabilitiesFromService",null),(0,r.Cg)([(0,d.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,d.MZ)((0,x.P6)("dateFieldsTimeReference"))],i.prototype,"dateFieldsTimeZone",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],i.prototype,"datesInUnknownTimezone",void 0),(0,r.Cg)([(0,d.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],i.prototype,"definitionExpression",void 0),(0,r.Cg)([(0,d.MZ)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],i.prototype,"displayField",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,type:g.A})],i.prototype,"editFieldsInfo",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"editingInfo",void 0),(0,r.Cg)([(0,j.w)("editingInfo")],i.prototype,"readEditingInfo",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"effectiveCapabilities",null),(0,r.Cg)([(0,d.MZ)()],i.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,d.MZ)((()=>{const e=(0,s.o8)(h.Yj),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],i.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,d.MZ)()],i.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,d.MZ)({type:I.A,json:{name:"layerDefinition.floorInfo",write:{layerContainerTypes:l.K}}})],i.prototype,"floorInfo",void 0),(0,r.Cg)([(0,d.MZ)({type:p.A,json:{origins:{service:{read:{source:"extent"}}}}})],i.prototype,"fullExtent",void 0),(0,r.Cg)([(0,d.MZ)()],i.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,type:C,json:{read:{source:"geometryProperties"}}})],i.prototype,"geometryFieldsInfo",void 0),(0,r.Cg)([(0,d.MZ)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:v.iX.read}}}})],i.prototype,"geometryType",void 0),(0,r.Cg)([(0,d.MZ)({type:String})],i.prototype,"globalIdField",void 0),(0,r.Cg)([(0,j.w)("service","globalIdField",["globalIdField","fields"])],i.prototype,"readGlobalIdFieldFromService",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"hasFullEditingRestrictions",null),(0,r.Cg)([(0,d.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],i.prototype,"hasM",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"hasUpdateItemRestrictions",null),(0,r.Cg)([(0,d.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],i.prototype,"hasZ",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,type:u.A})],i.prototype,"heightModelInfo",void 0),(0,r.Cg)([(0,d.MZ)({type:Date})],i.prototype,"historicMoment",void 0),(0,r.Cg)([(0,d.MZ)({type:o.A.ofType(m),readOnly:!0})],i.prototype,"indexes",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"isTable",void 0),(0,r.Cg)([(0,j.w)("service","isTable",["type"])],i.prototype,"readIsTableFromService",null),(0,r.Cg)([(0,d.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],i.prototype,"layerId",void 0),(0,r.Cg)([(0,d.MZ)(h.hG)],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,j.w)("service","maxScale",["maxScale","effectiveMaxScale"])],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,d.MZ)(h.hn)],i.prototype,"minScale",void 0),(0,r.Cg)([(0,j.w)("service","minScale",["minScale","effectiveMinScale"])],i.prototype,"readMinScale",null),(0,r.Cg)([(0,d.MZ)({type:String})],i.prototype,"objectIdField",void 0),(0,r.Cg)([(0,j.w)("service","objectIdField",["objectIdField","fields"])],i.prototype,"readObjectIdFieldFromService",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"parsedUrl",null),(0,r.Cg)([(0,d.MZ)((0,x.P6)("preferredTimeReference"))],i.prototype,"preferredTimeZone",void 0),(0,r.Cg)([(0,d.MZ)({type:[w.A],readOnly:!0})],i.prototype,"relationships",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],i.prototype,"returnM",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],i.prototype,"returnZ",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{write:!1}})],i.prototype,"serverGens",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"serviceDefinitionExpression",void 0),(0,r.Cg)([(0,j.w)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],i.prototype,"readServiceDefinitionExpression",null),(0,r.Cg)([(0,d.MZ)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],i.prototype,"serviceItemId",void 0),(0,r.Cg)([(0,d.MZ)()],i.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,d.MZ)({type:c.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,d.MZ)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],i.prototype,"subtypeField",void 0),(0,r.Cg)([(0,d.MZ)({type:[O],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],i.prototype,"subtypes",void 0),(0,r.Cg)([(0,d.MZ)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],i.prototype,"trackIdField",void 0),(0,r.Cg)([(0,d.MZ)({type:[String]})],i.prototype,"uniqueIdFields",void 0),(0,r.Cg)([(0,j.w)("service","uniqueIdFields",["uniqueIdInfo.OIDFieldContainsHashValue","uniqueIdInfo.fields"])],i.prototype,"readUniqueIdFields",null),(0,r.Cg)([(0,d.MZ)((0,b.b)({nonStandardUrlAllowed:!0}))],i.prototype,"url",void 0),(0,r.Cg)([(0,d.MZ)({json:{origins:{service:{read:!0}},read:!1}})],i.prototype,"version",void 0),(0,r.Cg)([(0,j.w)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],i.prototype,"readVersion",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],i.prototype,"isUrlHostModified",null),i=(0,r.Cg)([(0,d.$K)("esri.layers.mixins.FeatureLayerBase")],i),i}},73179(e,t,i){i.d(t,{b:()=>l,h:()=>a});var r=i(4718),o=i(53966),s=i(84952),n=i(60694),d=i(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:i}=e??{},s=(0,r.o8)(d.OZ),l=s.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,r,o){(0,n.LS)(this,e,i,t,o)}),{...s,set:function(e){if(null==e)return void this._set("url",e);const i=(0,n.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:o.A.getLogger(this)});this._set("url",i.url),null!=i.layerId&&this._set("layerId",i.layerId)}}}function a(e,t){const{separator:i}=t??{},r=(0,s.An)(e.url);return null!=r&&(null!=e.dynamicDataSource?r.path=(0,s.fj)(r.path,"dynamicLayer"):null!=e.layerId&&(r.path=(0,s.fj)(r.path,i??"",e.layerId.toString()))),r}},91908(e,t,i){i.d(t,{D:()=>s});var r=i(60694);const o=[];function s(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.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}]),o.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}]),o.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}]),o.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}]),o.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}])},20816(e,t,i){i.d(t,{TA:()=>o,We:()=>d,Z3:()=>s,ZJ:()=>l,w5:()=>a});var r=i(11254);const o=(0,i(13069).vD)(),s=new Map,n=new Map;async function d(e,t,i){if(!e||!i)return!1;if(!t)return!0;const o=new URL(e).host;let n=s.get(o);if(!n){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");n=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return n===t}async function l(e,t,r=!1){if(!e||!t)return!0;const s=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),d=n.get(s)?.entries();if(d)for(const[e,n]of d)if(n.name===t){const t=!n.stack?.hasForwardEdits();if(!t&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),d=await t(s,e,new r({sessionId:o,moment:n.moment}));return d.success&&n.stack?.clearForwardEdits(),d.success}return t}return!0}function a(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=n.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4066],{29242(t,n,e){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,a,i,u,s){return[t,n,e,r,o,a,i,u,s]}e.d(n,{fA:()=>o,vt:()=>r,zK:()=>a});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"}))},82534(t,n,e){function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>o,vt:()=>r,zK:()=>a});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function a(t,n){return[t,n]}function i(){return a(1,1)}function u(){return a(1,0)}function s(){return a(0,1)}e.d(n,{Un:()=>c,fA:()=>a,o8:()=>o,vt:()=>r});const c=i(),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:a,ones:i,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 a(t,n,e){return[t,n,e]}function i(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 a(1,1,1)}function f(){return a(1,0,0)}function l(){return a(0,1,0)}function h(){return a(0,0,1)}e.d(n,{CN:()=>i,Cb:()=>p,Cw:()=>d,JP:()=>b,S:()=>c,Ul:()=>s,Un:()=>m,ci:()=>u,fA:()=>a,o8:()=>o,uY:()=>M,vt:()=>r});const M=[0,0,0],m=c(),d=f(),b=l(),p=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:d,UNIT_Y:b,UNIT_Z:p,ZEROS:M,clone:o,create:r,freeze:i,fromArray:u,fromValues:a,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 a(t,n,e,r){return[t,n,e,r]}function i(){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:()=>a,Un:()=>h,fA:()=>o,uY:()=>l,vt:()=>r});const l=[0,0,0,0],h=i(),M=u(),m=s(),d=c(),b=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:b,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:a,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:i,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:()=>a,ct:()=>c});let r=1e-6;function o(){return r}const a=Math.random,i=Math.PI/180,u=180/Math.PI;function s(t){return t*i}function c(t){return t*u}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,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"}))},77690(t,n,e){e.d(n,{B8:()=>u,Ge:()=>M,I0:()=>h,KC:()=>s,a4:()=>c,hZ:()=>a,hs:()=>l,lw:()=>f,mg:()=>i,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,e,r,o,a,i,u,s,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=i,t[6]=u,t[7]=s,t[8]=c,t}function i(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function u(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],u=n[5],s=n[6],c=n[7],f=n[8],l=f*i-u*c,h=-f*a+u*s,M=c*a-i*s;let m=e*l+r*h+o*M;return m?(m=1/m,t[0]=l*m,t[1]=(-f*r+o*c)*m,t[2]=(u*r-o*i)*m,t[3]=h*m,t[4]=(f*e-o*s)*m,t[5]=(-u*e+o*a)*m,t[6]=M*m,t[7]=(-c*e+r*s)*m,t[8]=(i*e-r*a)*m,t):null}function s(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],u=n[5],s=n[6],c=n[7],f=n[8];return t[0]=i*f-u*c,t[1]=o*c-r*f,t[2]=r*u-o*i,t[3]=u*s-a*f,t[4]=e*f-o*s,t[5]=o*a-e*u,t[6]=a*c-i*s,t[7]=r*s-e*c,t[8]=e*i-r*a,t}function c(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],i=t[5],u=t[6],s=t[7],c=t[8];return n*(c*a-i*s)+e*(-c*o+i*u)+r*(s*o-a*u)}function f(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],u=n[4],s=n[5],c=n[6],f=n[7],l=n[8],h=e[0],M=e[1],m=e[2],d=e[3],b=e[4],p=e[5],v=e[6],y=e[7],x=e[8];return t[0]=h*r+M*i+m*c,t[1]=h*o+M*u+m*f,t[2]=h*a+M*s+m*l,t[3]=d*r+b*i+p*c,t[4]=d*o+b*u+p*f,t[5]=d*a+b*s+p*l,t[6]=v*r+y*i+x*c,t[7]=v*o+y*u+x*f,t[8]=v*a+y*s+x*l,t}function l(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function h(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=e+e,u=r+r,s=o+o,c=e*i,f=r*i,l=r*u,h=o*i,M=o*u,m=o*s,d=a*i,b=a*u,p=a*s;return t[0]=1-l-m,t[3]=f-p,t[6]=h+b,t[1]=f+p,t[4]=1-c-m,t[7]=M-d,t[2]=h-b,t[5]=M+d,t[8]=1-c-l,t}function M(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],u=n[5],s=n[6],c=n[7],f=n[8],l=n[9],h=n[10],M=n[11],m=n[12],d=n[13],b=n[14],p=n[15],v=e*u-r*i,y=e*s-o*i,x=e*c-a*i,g=r*s-o*u,E=r*c-a*u,w=o*c-a*s,A=f*d-l*m,S=f*b-h*m,N=f*p-M*m,O=l*b-h*d,_=l*p-M*d,q=h*p-M*b;let C=v*q-y*_+x*O+g*N-E*S+w*A;return C?(C=1/C,t[0]=(u*q-s*_+c*O)*C,t[1]=(s*N-i*q-c*S)*C,t[2]=(i*_-u*N+c*A)*C,t[3]=(o*_-r*q-a*O)*C,t[4]=(e*q-o*N+a*S)*C,t[5]=(r*N-e*_-a*A)*C,t[6]=(d*w-b*E+p*g)*C,t[7]=(b*x-m*w-p*y)*C,t[8]=(m*E-d*x+p*v)*C,t):null}function m(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const d=f,b=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:s,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const e=t[0],o=t[1],a=t[2],i=t[3],u=t[4],s=t[5],c=t[6],f=t[7],l=t[8],h=n[0],M=n[1],m=n[2],d=n[3],b=n[4],p=n[5],v=n[6],y=n[7],x=n[8],g=(0,r.FD)();return Math.abs(e-h)<=g*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-M)<=g*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-m)<=g*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(i-d)<=g*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(u-b)<=g*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(s-p)<=g*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(c-v)<=g*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(f-y)<=g*Math.max(1,Math.abs(f),Math.abs(y))&&Math.abs(l-x)<=g*Math.max(1,Math.abs(l),Math.abs(x))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:u,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],a=t[2],i=t[3],u=t[4],s=t[5],c=t[6],f=t[7],l=t[8];return Math.abs(1-(e*e+i*i+c*c))<=n&&Math.abs(1-(o*o+u*u+f*f))<=n&&Math.abs(1-(a*a+s*s+l*l))<=n},mul:d,multiply:f,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],i=n[5],u=n[6],s=n[8],c=n[9],f=n[10],l=f*i-u*c,h=-f*a+u*s,M=c*a-i*s,m=e*l+r*h+o*M;if(!m)return null;const d=1/m;return t[0]=l*d,t[1]=(-f*r+o*c)*d,t[2]=(u*r-o*i)*d,t[3]=h*d,t[4]=(f*e-o*s)*d,t[5]=(-u*e+o*a)*d,t[6]=M*d,t[7]=(-c*e+r*s)*d,t[8]=(i*e-r*a)*d,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],u=n[4],s=n[5],c=n[6],f=n[7],l=n[8],h=Math.sin(e),M=Math.cos(e);return t[0]=M*r+h*i,t[1]=M*o+h*u,t[2]=M*a+h*s,t[3]=M*i-h*r,t[4]=M*u-h*o,t[5]=M*s-h*a,t[6]=c,t[7]=f,t[8]=l,t},scale:l,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:b,subtract:m,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],u=n[4],s=n[5],c=n[6],f=n[7],l=n[8],h=e[0],M=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=i,t[4]=u,t[5]=s,t[6]=h*r+M*i+c,t[7]=h*o+M*u+f,t[8]=h*a+M*s+l,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},37585(t,n,e){e.d(n,{C:()=>o,Cc:()=>v,Io:()=>l,Om:()=>p,Re:()=>u,S8:()=>b,WQ:()=>i,aI:()=>E,e$:()=>x,hG:()=>h,hZ:()=>a,hs:()=>f,jb:()=>A,l0:()=>y,t2:()=>g,ze:()=>d});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t}function a(t,n,e){return t[0]=n,t[1]=e,t}function i(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 b(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 p(t,n){return t[0]*n[0]+t[1]*n[1]}function v(t,n,e,r){const o=n[0],a=n[1];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t}function y(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 x(t,n,e,r){const o=n[0]-e[0],a=n[1]-e[1],i=Math.sin(r),u=Math.cos(r);return t[0]=o*u-a*i+e[0],t[1]=o*i+a*u+e[1],t}function g(t,n){return t[0]===n[0]&&t[1]===n[1]}function E(t,n){const e=t[0],o=t[1],a=n[0],i=n[1],u=(0,r.FD)();return Math.abs(e-a)<=u*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(o-i)<=u*Math.max(1,Math.abs(o),Math.abs(i))}const w=M,A=u,S=s,N=c,O=l,_=h,q=m;Object.freeze(Object.defineProperty({__proto__:null,add:i,angle:function(t,n){const e=t[0],r=t[1],o=n[0],a=n[1];let i=e*e+r*r;i>0&&(i=1/Math.sqrt(i));let u=o*o+a*a;u>0&&(u=1/Math.sqrt(u));const s=(e*o+r*a)*i*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:O,distance:l,div:N,divide:c,dot:p,equals:E,exactEquals:g,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:w,length:M,lerp:v,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:b,projectAndScale:function(t,n,e,r,o){let a=n[0]-e[0],i=n[1]-e[1];const u=(r[0]*a+r[1]*i)*(o-1);return a=r[0]*u,i=r[1]*u,t[0]=n[0]+a,t[1]=n[1]+i,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:x,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:a,sqrDist:_,sqrLen:q,squaredDistance:h,squaredLength:m,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:A,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:y,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:()=>a,C:()=>i,Cc:()=>N,DI:()=>E,Il:()=>L,Io:()=>v,Ln:()=>p,Om:()=>A,Qr:()=>l,Re:()=>c,S8:()=>w,T9:()=>d,WQ:()=>s,Z0:()=>O,_S:()=>M,aI:()=>U,ei:()=>_,fw:()=>C,g7:()=>I,gL:()=>q,hG:()=>y,hZ:()=>u,hs:()=>b,jb:()=>F,jk:()=>m,lo:()=>P,lw:()=>f,m3:()=>x,oW:()=>D,t2:()=>z,tn:()=>h,uE:()=>Y,xg:()=>j,ze:()=>g});var r=e(51850),o=e(34304);function a(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function i(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 b(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function p(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 v(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 y(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 x(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function g(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function E(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function w(t,n){const e=n[0],r=n[1],o=n[2];let a=e*e+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function A(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],a=n[2],i=e[0],u=e[1],s=e[2];return t[0]=o*s-a*u,t[1]=a*i-r*s,t[2]=r*u-o*i,t}function N(t,n,e,r){const o=n[0],a=n[1],i=n[2];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t[2]=i+r*(e[2]-i),t}function O(t,n,e){const r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*a+e[12],t[1]=e[1]*r+e[5]*o+e[9]*a+e[13],t[2]=e[2]*r+e[6]*o+e[10]*a+e[14],t}function _(t,n,e){const r=n[0],o=n[1],a=n[2];return t[0]=r*e[0]+o*e[3]+a*e[6],t[1]=r*e[1]+o*e[4]+a*e[7],t[2]=r*e[2]+o*e[5]+a*e[8],t}function q(t,n,e){return C(t,n,e[0],e[1],e[2],e[3])}function C(t,n,e,r,o,a){const i=n[0],u=n[1],s=n[2],c=r*s-o*u,f=o*i-e*s,l=e*u-r*i,h=r*l-o*f,M=o*c-e*l,m=e*f-r*c,d=2*a;return t[0]=i+c*d+2*h,t[1]=u+f*d+2*M,t[2]=s+l*d+2*m,t}function I(t,n){w(T,t),w(V,n);const e=A(T,V);return e>1?0:e<-1?Math.PI:Math.acos(e)}const T=(0,r.vt)(),V=(0,r.vt)();function z(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function U(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],i=n[0],u=n[1],s=n[2],c=(0,o.FD)();return Math.abs(e-i)<=c*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(a-s)<=c*Math.max(1,Math.abs(a),Math.abs(s))}function D(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],a=e[2]-n[2];let i=r*r+o*o+a*a;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=o*i,t[2]=a*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const F=c,R=f,B=l,j=v,P=y,L=a,Y=x;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:s,angle:I,bezier:function(t,n,e,r,o,a){const i=1-a,u=i*i,s=a*a,c=u*i,f=3*a*u,l=3*s*i,h=s*a;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:i,cross:S,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=e[0],u=e[1],s=e[2],c=o*s-a*u,f=a*i-r*s,l=r*u-o*i,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:D,dist:j,distance:v,div:B,divide:l,dot:A,equals:U,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,a){const i=a*a,u=i*(2*a-3)+1,s=i*(a-2)+a,c=i*(a-1),f=i*(3-2*a);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:E,len:L,length:a,lerp:N,max:d,min:m,mul:R,multiply:f,negate:g,normalize:w,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,a=2*e()-1,i=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=a*n,t},rotateX:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[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:b,scaleAndAdd:p,set:u,sign:M,sqrDist:P,sqrLen:Y,squaredDistance:y,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:F,subtract:c,transformMat3:_,transformMat4:O,transformQuat:q,transformQuatValues:C},Symbol.toStringTag,{value:"Module"}))},78955(t,n,e){e.d(n,{Bw:()=>b,C:()=>o,Cc:()=>x,LI:()=>h,Om:()=>y,S8:()=>v,T9:()=>l,WQ:()=>i,Z0:()=>g,aI:()=>w,hG:()=>d,hZ:()=>a,hs:()=>M,jk:()=>f,m3:()=>p,t2:()=>E});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 a(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function i(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}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],a=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+a*a)}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return e*e+r*r+o*o+a*a}function b(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 p(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function v(t,n){const e=n[0],r=n[1],o=n[2],a=n[3];let i=e*e+r*r+o*o+a*a;return i>0&&(i=1/Math.sqrt(i),t[0]=e*i,t[1]=r*i,t[2]=o*i,t[3]=a*i),t}function y(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function x(t,n,e,r){const o=n[0],a=n[1],i=n[2],u=n[3];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t[2]=i+r*(e[2]-i),t[3]=u+r*(e[3]-u),t}function g(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*a+e[12]*i,t[1]=e[1]*r+e[5]*o+e[9]*a+e[13]*i,t[2]=e[2]*r+e[6]*o+e[10]*a+e[14]*i,t[3]=e[3]*r+e[7]*o+e[11]*a+e[15]*i,t}function E(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function w(t,n){const e=t[0],o=t[1],a=t[2],i=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(a-c)<=l*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(i-f)<=l*Math.max(1,Math.abs(i),Math.abs(f))}const A=u,S=s,N=c,O=m,_=d,q=b,C=p;Object.freeze(Object.defineProperty({__proto__:null,add:i,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:O,distance:m,div:N,divide:c,dot:y,equals:w,exactEquals:E,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:q,length:b,lerp:x,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:v,random:function(t,n=1){const e=r.Ov;let o,a,i,u,s,c;do{o=2*e()-1,a=2*e()-1,s=o*o+a*a}while(s>=1);do{i=2*e()-1,u=2*e()-1,c=i*i+u*u}while(c>=1);const f=Math.sqrt((1-s)/c);return t[0]=n*o,t[1]=n*a,t[2]=n*i*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:a,sqrDist:_,sqrLen:C,squaredDistance:d,squaredLength:p,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:A,subtract:u,transformMat4:g,transformQuat:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=e[0],u=e[1],s=e[2],c=e[3],f=c*r+u*a-s*o,l=c*o+s*r-i*a,h=c*a+i*o-u*r,M=-i*r-u*o-s*a;return t[0]=f*c+M*-i+l*-s-h*-u,t[1]=l*c+M*-u+h*-i-f*-s,t[2]=h*c+M*-s+f*-u-l*-i,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,n,e){e.d(n,{$8:()=>A,Cc:()=>u,Hx:()=>b,Io:()=>E,KJ:()=>f,OS:()=>O,Sp:()=>M,XM:()=>l,YN:()=>h,ZH:()=>d,b6:()=>w,cU:()=>o,gg:()=>m,hs:()=>s,kU:()=>c,mP:()=>i,or:()=>N,pF:()=>q,pq:()=>_,qE:()=>a});const r=new Float32Array(1);function o(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function a(t,n,e){return Math.min(Math.max(t,n),e)}function i(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(a(t,-1,1))}function h(t){return Math.asin(a(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 b(t,n,e=1e-6){return M(t,n,e)||t>n}const p=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function v(t){return p.setFloat64(0,t),p.getBigInt64(0)}const y=1000000n,x=g(1);function g(t){const n=v(t=Math.abs(t)),e=function(t){return p.setBigInt64(0,t),p.getFloat64(0)}(n<=y?y:n-y);return Math.abs(t-e)}function E(t,n,e=x){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;if(null!=e&&g(Math.min(Math.abs(t),Math.abs(n)))<e)return Math.abs(t-n)<=e;const r=v(t),o=v(n);return r<0==o<0&&!((r<o?o-r:r-o)>y)}function w(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),a=Math.abs(n);if(0===t||0===n||o<1e-12&&a<1e-12){if(r>.01*e)return!1}else if(r/(o+a)>e)return!1;return!0}function A(t){return S(Math.max(-_,Math.min(t,_)))}function S(t){return r[0]=t,r[0]}function N(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 O(t,n){return(t%n+n)%n}const _=S(34028234663852886e22);function q(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))}},77214(t,n,e){e.r(n),e.d(n,{destroyContext:()=>E,initialize:()=>y,processVertices:()=>g});var r=e(82534),o=e(51850),a=e(13030),i=e(77690),u=e(29242),s=e(35522),c=e(89606);class f{constructor(t=1/0,n=-1/0){this.minElevation=t,this.maxElevation=n}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(t){return this.minElevation<=t.minElevation&&this.maxElevation>=t.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(t){const n=Math.min(this.minElevation,t.minElevation),e=Math.max(this.maxElevation,t.maxElevation),r=n!==this.minElevation||e!==this.maxElevation;return this.minElevation=n,this.maxElevation=e,r}expandElevationRangeValues(t,n){const e=Math.min(this.minElevation,t),r=Math.max(this.maxElevation,n),o=e!==this.minElevation||r!==this.maxElevation;return this.minElevation=e,this.maxElevation=r,o}setElevationRange(t){this.minElevation=t.minElevation,this.maxElevation=t.maxElevation}setElevationRangeValues(t,n){this.minElevation=t,this.maxElevation=n}equals(t){return this.minElevation===t.minElevation&&this.maxElevation===t.maxElevation}}var l=e(1843),h=e(65786);h.Y;class M extends h.Y{constructor(t,n,e){super(),this.hasVertexColors=t,this.hasNormals=n,this.textureCoordinateType=e}}function m(t){const n=(0,l.BP)().vec3f("position");return t.hasNormals&&n.vec2i16("normalCompressed",{glNormalized:!0}),1===t.textureCoordinateType?n.vec2f("uv0"):2===t.textureCoordinateType&&(n.vec2f("uv0"),n.vec4u16("uvRegion",{glNormalized:!0})),t.hasVertexColors&&n.vec4u8("color",{glNormalized:!0}),n.freeze()}function d(t,n,e,r,a,i,u){const s=new Array,l=(0,o.fA)(0,0,0),h=new f,d={origin:n,ellipsoidRadius:e,isGlobal:r,ecefRotation:a};for(const n of t){const{componentIndex:t,positionView:e,indicesView:r,texCoord0Data:o,colorView:a,normalsData:f}=n,p=e.count,v=o?1:0,y=new M(null!=a,null!=f||u,v),x=u&&null==f?(0,c.GN)(r.typedBuffer,e.typedBuffer,e.typedBufferStride):null,g=x?.outputVertexCount??p,E=m(y),w=E.createBuffer(g),A=x?E.fields.get("normalCompressed"):null;if(null!=x&&null==A)throw new Error("computeNormals requires a reserved NORMALCOMPRESSED attribute in layout");let S;if(b(d,{texCoord0Data:o,colorView:a,packedNormalsSource:x?x.packedNormals:f??null},w,{positionView:e,tileObb:i,obbHalfSizeAccumulator:l,elevationRange:h}),null!=x){const t=E.stride/4,n=A.offset/4,e=p,r=new Uint32Array(w.buffer);(0,c.yf)(r,t,n,r,t,e,g,x.appendedVertexToOriginal,x.packedNormals),S=x.indices}else S=r.typedBuffer;s.push({componentIndex:t,positionView:e,indicesView:r,layout:E,textureCoordinateType:v,interleavedVertexData:w.buffer,indices:S})}return{vertexProcessingOutputs:s,obbHalfSizeAccumulator:l,elevationRange:h}}function b(t,n,e,r){const{origin:o,ellipsoidRadius:c,isGlobal:f,ecefRotation:l}=t,{texCoord0Data:h,colorView:M,packedNormalsSource:m}=n,{positionView:d,tileObb:b,obbHalfSizeAccumulator:y,elevationRange:x}=r,g=e.getField("position",a.xs),E=g.typedBuffer,w=g.typedBufferStride,A=null!=h?e.getField("uv0",a.gH):null,S=A?.typedBuffer,N=A?.typedBufferStride??0,O=M?.typedBuffer,_=M?.elementCount??0,q=null!=M?e.getField("color",a.XP):null,C=q?.typedBuffer,I=q?.typedBufferStride??0,T=null!=m?e.getField("normalCompressed",a.mJ):null,V=null!=T?new Uint32Array(T.typedBuffer.buffer,T.typedBuffer.byteOffset,T.typedBuffer.length/2):null,z=null!=T?T.typedBufferStride/2:0,U=(0,i.I0)(v,b.quaternionConjugate),D=(0,s.ei)(p,b.center,U),F=U[0],R=U[1],B=U[2],j=U[3],P=U[4],L=U[5],Y=U[6],k=U[7],Z=U[8],G=D[0],X=D[1],H=D[2],Q=l[0],W=l[1],K=l[2],J=l[3],$=l[4],tt=l[5],nt=l[6],et=l[7],rt=l[8],ot=l!==u.zK,at=o[0],it=o[1],ut=o[2],st=d.count,ct=d.typedBufferStride,ft=d.typedBuffer,lt=null!=S&&null!=h,ht=null!=C&&null!=O&&(3===_||4===_),Mt=4===_,mt=null!=V&&null!=m;let dt=y[0],bt=y[1],pt=y[2];for(let t=0;t<st;++t){const n=t*ct,e=ft[n],r=ft[n+1],o=ft[n+2],a=e+at,i=r+it,u=o+ut,s=f?Math.sqrt(a*a+i*i+u*u)-c:u;x.expandElevationRangeValues(s,s);const l=Math.abs(a*F+i*j+u*Y-G),M=Math.abs(a*R+i*P+u*k-X),d=Math.abs(a*B+i*L+u*Z-H);dt=Math.max(dt,l),bt=Math.max(bt,M),pt=Math.max(pt,d);const b=t*w;if(ot){const t=e*Q+r*J+o*nt,a=e*W+r*$+o*et,i=e*K+r*tt+o*rt;ft[n]=t,ft[n+1]=a,ft[n+2]=i,E[b]=t,E[b+1]=a,E[b+2]=i}else E[b]=e,E[b+1]=r,E[b+2]=o;if(lt){const n=2*t,e=t*N;S[e]=h[n],S[e+1]=h[n+1]}if(ht){const n=t*I;if(Mt){const e=4*t;C[n]=O[e],C[n+1]=O[e+1],C[n+2]=O[e+2],C[n+3]=O[e+3]}else{const e=3*t;C[n]=O[e],C[n+1]=O[e+1],C[n+2]=O[e+2],C[n+3]=255}}mt&&(V[t*z]=m[t])}y[0]=dt,y[1]=bt,y[2]=pt}const p=(0,o.vt)(),v=(0,u.vt)();function y(){}function x(t){const{colorData:n,colorElementCount:e}=t;if(null==n||0===e)return;const r=n.byteOffset,o=r+n.byteLength;return 3===e?n instanceof Float32Array?new a.xs(n.buffer,r,void 0,o):n instanceof Uint8Array?new a.eI(n.buffer,r,void 0,o):new a.nS(n.buffer,r,void 0,o):n instanceof Float32Array?new a.Eq(n.buffer,r,void 0,o):n instanceof Uint8Array?new a.XP(n.buffer,r,void 0,o):new a.Uz(n.buffer,r,void 0,o)}async function g(t){const n={center:(0,o.o8)(t.tileObbCenter),quaternionConjugate:(0,r.o8)(t.tileObbQuaternionConjugate)},{vertexProcessingOutputs:e,obbHalfSizeAccumulator:i,elevationRange:u}=d(t.inputs.map((t,n)=>{const{indicesData:e}=t,r=t.positionData.byteOffset,o=r+t.positionData.byteLength,i=t.positionStride*Float32Array.BYTES_PER_ELEMENT,u=e.byteOffset,s=u+e.byteLength;return{componentIndex:n,positionView:new a.xs(t.positionData.buffer,r,i,o),indicesView:e instanceof Uint16Array?new a.h(e.buffer,u,void 0,s):new a.P(e.buffer,u,void 0,s),texCoord0Data:t.texCoord0Data??void 0,colorView:x(t),normalsData:t.normalsData??void 0}}),t.origin,t.ellipsoidRadius,t.isGlobal,t.ecefRotation,n,t.imVertexNormals),s=(f=e,l=t.isGlobal,f.map(t=>({positionData:l?t.positionView.typedBuffer:null,interleavedVertexData:t.interleavedVertexData,renderIndices:t.indices===t.indicesView.typedBuffer?null:t.indices}))),c=function(t){const n=[];for(const e of t)null!=e.positionData&&n.push(e.positionData.buffer),n.push(e.interleavedVertexData),null!=e.renderIndices&&n.push(e.renderIndices.buffer);return n}(s);var f,l;return{result:{outputs:s,obbHalfSizeAccumulator:(0,o.o8)(i),minElevation:u.minElevation,maxElevation:u.maxElevation},transferList:c}}function E(t){}},89606(t,n,e){e.d(n,{GN:()=>l,MU:()=>f,yf:()=>M});var r=e(35522),o=e(51850),a=e(10614),i=e(63907),u=e(74038);class s{constructor(t,n){this.data=t,this.indices=n}}class c{constructor(t,n,e,r,o){this.indices=t,this.packedNormals=n,this.appendedVertexToOriginal=e,this.outputVertexCount=r,this.appendedVertexCount=o}}function f(t,n,e,c,f){return!c||e.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,n,e,i){const u=new s(t.slice().buffer,n);if(!i)return u;const c=e[0].stride,f=u.data.byteLength/c;for(const t of e)if("normalCompressed"===t.name){const{offset:n}=t,e=new Int16Array(u.data),s=(0,o.vt)();for(let t=0;t<f;++t)(0,a.Tz)(s,e,t,c/2,n/2),(0,r.ei)(s,s,i),(0,a.aT)(e,t,s[0],s[1],s[2],c/2,n/2)}else if("normal"===t.name){const{offset:n}=t,e=new Float32Array(u.data),a=(0,o.vt)();for(let t=0;t<f;++t){const o=(t*c+n)/4;a[0]=e[o],a[1]=e[o+1],a[2]=e[o+2],(0,r.ei)(a,a,i),e[o]=a[0],e[o+1]=a[1],e[o+2]=a[2]}}return u}(t,n,e,f):function(t,n,e,r){const o=e[0].stride,a=o/4,s=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),c=t.byteLength/o,f=o+4;e.forEach(t=>t.stride=f),e.push(new u._("normalCompressed",2,i.pe.SHORT,o,f,!0));const M=l(n,s,a,r);return h(s,c,o,f,M)}(t,n,e,f)}function l(t,n,e,r){const o=t.length/3,a=n.length/e,{faceNormals:i,faceAreas:u,faceEdges:s,edgeFaces:c,vertexFaces:f,vertexFaceCountAndOffset:l}=function(t,n,e,r,o,a){const i=new Float32Array(3*o),u=new Float32Array(o),s=new Uint32Array(3*o),c=new Int32Array(3*o*2),f=3*o,l=new Uint32Array(f),h=new Uint32Array(2*e);for(let t=0;t<o;++t){const n=3*t;for(let t=0;t<3;++t)++h[2*r[n+t]]}{let t=0;for(let n=0;n<e;++n){const e=2*n;h[e+1]=t,t+=h[e]}for(let t=0;t<o;++t){const n=3*t;for(let e=0;e<3;++e)l[h[2*r[n+e]+1]++]=t}for(let t=0;t<e;++t)h[2*t+1]-=h[2*t]}let M=0;const m=new Uint32Array(2*f*2),d=new Uint32Array(2*e);for(let t=0;t<e;++t){const n=2*t,e=4*h[n+1];d[n]=e,d[n+1]=e}function b(t,n,e){const r=Math.min(t,n),o=Math.max(t,n),a=t<n?0:1,i=2*r,u=d[i],s=d[i+1];let f=-1;for(let t=u;t<s;t+=2)if(m[t]===o){f=m[t+1];break}return-1===f&&(f=M++,m[s]=o,m[s+1]=f,d[i+1]=s+2,c[2*f+(1-a)]=-1),c[2*f+a]=e,f}for(let e=0;e<r.length;e+=3){const o=r[e],c=o*n,f=t[c],l=t[c+1],h=t[c+2],M=r[e+1],m=M*n,d=t[m],p=t[m+1],v=t[m+2],y=r[e+2],x=y*n,g=f-d,E=l-p,w=h-v,A=f-t[x],S=l-t[x+1],N=h-t[x+2],O=E*N-w*S,_=w*A-g*N,q=g*S-E*A,C=Math.sqrt(O*O+_*_+q*q)||1,I=e/3;u[I]=.5*C;const T=1/C;if(a){const t=a[0]*O+a[3]*_+a[6]*q,n=a[1]*O+a[4]*_+a[7]*q,e=a[2]*O+a[5]*_+a[8]*q;i[3*I]=t*T,i[3*I+1]=n*T,i[3*I+2]=e*T}else i[3*I]=O*T,i[3*I+1]=_*T,i[3*I+2]=q*T;const V=b(o,M,I),z=b(M,y,I),U=b(y,o,I);s[3*I]=V,s[3*I+1]=z,s[3*I+2]=U}return{faceNormals:i,faceAreas:u,faceEdges:s,vertexFaces:l,vertexFaceCountAndOffset:h,edgeFaces:c}}(n,e,a,t,o,r);return function(t,n,e,r,o,a){const i=new Uint8Array(n),u=new Uint32Array(n),s=new Uint32Array(3*n);let c=0;const f=new Uint32Array(n);let l=0;for(let n=0;n<t.length;n+=3){const t=n/3;if(1===i[t])continue;i[t]=1;const h=e[3*t],M=e[3*t+1],m=e[3*t+2];for(l=0,f[l++]=t,s[0]=o[3*t],s[1]=o[3*t+1],s[2]=o[3*t+2],c=3,u[t]=t+1;c>0;){const n=s[--c];for(let r=0;r<2;++r){const b=a[2*n+r];if(-1===b||u[b]===t+1)continue;u[b]=t+1;const p=e[3*b],v=e[3*b+1],y=e[3*b+2];if(Math.abs(1-(h*p+M*v+m*y))<d){f[l++]=b,i[b]=1;for(let t=0;t<3;++t){const e=o[3*b+t];e!==n&&(s[c++]=e)}}}}if(l>1){let t=0,n=0,o=0,a=0;for(let i=0;i<l;++i){const u=f[i],s=r[u];t+=s,n+=e[3*u]*s,o+=e[3*u+1]*s,a+=e[3*u+2]*s}const i=Math.sqrt(n*n+o*o+a*a)||1;n/=i,o/=i,a/=i;for(let i=0;i<l;++i){const u=f[i];e[3*u]=n,e[3*u+1]=o,e[3*u+2]=a,r[u]=t}}}}(t,o,i,u,s,c),m(o,a,t,i,u,f,l)}function h(t,n,e,r,o){const a=e/4,i=r/4,u=o.outputVertexCount,c=new Float32Array(u*i),f=new Uint32Array(c.buffer),l=a,h=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,n,e,r,o,a,i){for(let u=0;u<a;++u){const a=u*o,s=u*n;for(let n=0;n<o;++n)t[s+n]=r[a+n];t[s+e]=i[u]}}(f,i,l,h,a,n,o.packedNormals),M(f,i,l,h,a,n,u,o.appendedVertexToOriginal,o.packedNormals),new s(c.buffer,o.indices)}function M(t,n,e,r,o,a,i,u,s){for(let c=a;c<i;++c){const i=u[c-a]*o,f=c*n;for(let n=0;n<o;++n)t[f+n]=r[i+n];t[f+e]=s[c]}}function m(t,n,e,r,o,a,i){const u=3*t,s=new(u<256?Uint8Array:u<65536?Uint16Array:Uint32Array)(e);let f=n;const l=new(n<256?Uint8Array:n<65536?Uint16Array:Uint32Array)(u-n),h=new ArrayBuffer(4*u),M=new Int16Array(h),m=new Uint32Array(h);let d=0,p=0;const v=new Uint32Array(t);let y=0;const x=1-b;for(let t=0;t<n;++t){d=i[2*t+1],p=d+i[2*t];let e=t;for(;d<p;){{const t=a[--p],n=3*t,i=r[n],u=r[n+1],s=r[n+2];y=0,v[y++]=t;let c=d;for(;c<p;){const t=a[c],n=3*t;if(i*r[n]+u*r[n+1]+s*r[n+2]>x){v[y++]=t;const n=--p;if(c<n){a[c]=a[n];continue}}++c}let f=0,l=0,h=0;if(1===y)f=i,l=u,h=s;else{for(let t=0;t<y;++t){const n=v[t],e=o[n],a=3*n;f+=r[a]*e,l+=r[a+1]*e,h+=r[a+2]*e}const t=Math.sqrt(f*f+l*l+h*h)||1;f/=t,l/=t,h/=t}{const t=1/(Math.abs(f)+Math.abs(l)+Math.abs(h)),n=f*t,r=l*t;let o=n,a=r;h<=0&&(o=(n>=0?1:-1)*(1-Math.abs(r)),a=(r>=0?1:-1)*(1-Math.abs(n)));const i=2*e,u=Math.round(32767*o),s=Math.round(32767*a);M[i]=u<-32767?-32767:u>32767?32767:u,M[i+1]=s<-32767?-32767:s>32767?32767:s}}if(e!==t)for(let n=0;n<y;++n){const r=3*v[n];s[r]===t&&(s[r]=e),s[r+1]===t&&(s[r+1]=e),s[r+2]===t&&(s[r+2]=e)}if(d>=p)break;e=f++,l[e-n]=t}}return new c(s,m,l,f,f-n)}const d=.04,b=.8},10614(t,n,e){e.d(n,{Tz:()=>i,aT:()=>a});var r=e(34727),o=e(35522);function a(t,n,e,r,o,a=2,i=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*a+i;t[M]=u(l),t[M+1]=u(h)}function i(t,n,e,r=2,a=0){const i=e*r+a,u=s(n[i]),c=s(n[i+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)},65786(t,n,e){e.d(n,{Y:()=>r});const r=class{};new r}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5404],{95404(e,r,t){t.d(r,{computeObjectLayerResourceSize:()=>c}),t(11254);var i=t(49186),n=t(66344),o=t(51850),s=t(70328),l=t(8887);let u=new n.q(50);async function c(e,r=null){if(!e.isPrimitive){const r=e.resource?.href;if(!r)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const n=u.get(r);if(null!=n)return n;const{fetch:l}=await Promise.all([t.e(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5404],{95404(e,r,t){t.d(r,{computeObjectLayerResourceSize:()=>c}),t(11254);var i=t(49186),n=t(66344),o=t(51850),s=t(70328),l=t(8887);let u=new n.q(50);async function c(e,r=null){if(!e.isPrimitive){const r=e.resource?.href;if(!r)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const n=u.get(r);if(null!=n)return n;const{fetch:l}=await Promise.all([t.e(1843),t.e(7005),t.e(5408),t.e(5647)]).then(t.bind(t,5644)),c=await l(r,{disableTextures:!0,spherical:!0}),a=(0,s.Ej)(c.referenceBoundingBox,(0,o.vt)());return u.put(r,a),a}if(!e.resource?.primitive)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const n=(0,s.vt)((0,l.Fq)(e.resource.primitive));if(null!=r)for(let e=0;e<n.length;e++)n[e]*=r;return(0,s.Ej)(n,(0,o.vt)())}}}]);
|