@arcgis/core 6.0.0-next.42 → 6.0.0-next.43
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/Basemap.js +1 -1
- package/Graphic.js +1 -1
- package/Ground.js +1 -1
- package/WebDocument2D.js +1 -1
- package/WebScene.js +1 -1
- package/analysis/ElevationProfile/ElevationProfileLineScene.d.ts +1 -0
- package/analysis/ElevationProfileAnalysis.d.ts +15 -0
- package/analysis/LineOfSightAnalysis.d.ts +6 -1
- package/analysis/ShadowCastAnalysis.d.ts +18 -22
- package/analysis/ShadowCastAnalysis.js +1 -1
- package/analysis/ViewshedAnalysis.d.ts +6 -1
- package/applications/Components/analysisUtils.d.ts +6 -0
- package/applications/Components/analysisUtils.js +1 -1
- package/arcade/ArcadeModuleResolver.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcade/functions/knowledgegraph.js +1 -1
- package/arcade/functions/maths.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{2f54e4feb554c1a7b9c4.js → 02debe67e6fef9d88bdd.js} +1 -1
- package/assets/esri/core/workers/chunks/{bd046399e05e759e0bc2.js → 035204000954973b0ebc.js} +1 -1
- package/assets/esri/core/workers/chunks/05225506fdba0c827407.js +1 -0
- package/assets/esri/core/workers/chunks/{4c73c493dabe949c2512.js → 077b755688346e0dc8d3.js} +1 -1
- package/assets/esri/core/workers/chunks/0c1d8e0c2eae21f97fc0.js +1 -0
- package/assets/esri/core/workers/chunks/105865a4d8cb4ddf8a8a.js +1 -0
- package/assets/esri/core/workers/chunks/{afe3e89737fb45189a99.js → 14ed0c34b910eba3434e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f67b37253d6d05d1e339.js → 14ef986665b4a1f6ccdc.js} +1 -1
- package/assets/esri/core/workers/chunks/158cbf4075d3eca83a6a.js +1 -0
- package/assets/esri/core/workers/chunks/{a03f15f2cbc3fed291c2.js → 15f2b27b8edc0d53e399.js} +1 -1
- package/assets/esri/core/workers/chunks/181d24ced5ef6b1f959b.js +1 -0
- package/assets/esri/core/workers/chunks/18dbee576b7b9dbe69fb.js +1 -0
- package/assets/esri/core/workers/chunks/1aebb8fe0692058bf2fb.js +1 -0
- package/assets/esri/core/workers/chunks/1cdb55d9a5ab1a5e3f08.js +1 -0
- package/assets/esri/core/workers/chunks/{cf2e5f827cea7d7319ce.js → 1e5c5029b0653047a769.js} +1 -1
- package/assets/esri/core/workers/chunks/20db6e844708d3e71437.js +1 -0
- package/assets/esri/core/workers/chunks/21a4c3d8265aca775616.js +1 -0
- package/assets/esri/core/workers/chunks/23fff0505e02fd364909.js +1 -0
- package/assets/esri/core/workers/chunks/286e3e050b29e6158e6f.js +1 -0
- package/assets/esri/core/workers/chunks/29ef9d357e30082d267a.js +1 -0
- package/assets/esri/core/workers/chunks/29feef121b0916fb90bf.js +1 -0
- package/assets/esri/core/workers/chunks/2ef91e8da260454f46d8.js +1 -0
- package/assets/esri/core/workers/chunks/32b9bedd4bb0504f0b1d.js +1 -0
- package/assets/esri/core/workers/chunks/{279089a6a3f08022c678.js → 361d620b3f91868b1490.js} +1 -1
- package/assets/esri/core/workers/chunks/37c16e20f022ca27cdae.js +1 -0
- package/assets/esri/core/workers/chunks/380aefa522dfeccb8c65.js +1 -0
- package/assets/esri/core/workers/chunks/394ae3199c78a94c6a2a.js +1 -0
- package/assets/esri/core/workers/chunks/{fdd2b35388f9fe42b623.js → 3a90b6eafa92f1a68ac5.js} +1 -1
- package/assets/esri/core/workers/chunks/{6a65fc1a2931230fe994.js → 3bb1e06861cd0563ed9f.js} +1 -1
- package/assets/esri/core/workers/chunks/3f92afa58c895bf87e62.js +1 -0
- package/assets/esri/core/workers/chunks/422784ceae0d511868a0.js +1 -0
- package/assets/esri/core/workers/chunks/44782e8318dc47cb08a0.js +1 -0
- package/assets/esri/core/workers/chunks/{5882f349f3771868e67f.js → 4521f72ab0ea872e5d7c.js} +1 -1
- package/assets/esri/core/workers/chunks/45b5a61c4e9fbd9ca0b3.js +1 -0
- package/assets/esri/core/workers/chunks/47af220003adfca2167e.js +1 -0
- package/assets/esri/core/workers/chunks/487500443a6037d3599f.js +1 -0
- package/assets/esri/core/workers/chunks/4a4fab74442c3d914505.js +1 -0
- package/assets/esri/core/workers/chunks/4a8903fb1a5d30a68df9.js +1 -0
- package/assets/esri/core/workers/chunks/4d818b231e6d1fa73cc5.js +1 -0
- package/assets/esri/core/workers/chunks/{e0cf6e1e21d0ee739009.js → 4e03aa5518d46a36661c.js} +1 -1
- package/assets/esri/core/workers/chunks/{1a614bac5db42c6263f8.js → 4fe10650ba3cd30aa9a2.js} +1 -1
- package/assets/esri/core/workers/chunks/50b8b1cce0a5f77c8372.js +1 -0
- package/assets/esri/core/workers/chunks/5470a29a69010c8361c4.js +1 -0
- package/assets/esri/core/workers/chunks/564d7f2e58fbc16853c0.js +1 -0
- package/assets/esri/core/workers/chunks/5c2e79f2ca401741bf3e.js +1 -0
- package/assets/esri/core/workers/chunks/5c9ab86bec07264dc9f2.js +1 -0
- package/assets/esri/core/workers/chunks/{04d55ed51e8b2683c4b4.js → 5d908a823b324bafda1e.js} +1 -1
- package/assets/esri/core/workers/chunks/5e6d6676a5c47c0e132a.js +1 -0
- package/assets/esri/core/workers/chunks/5fd4d3cb3c9350131a59.js +1 -0
- package/assets/esri/core/workers/chunks/60637f38159e9bf68d4e.js +1 -0
- package/assets/esri/core/workers/chunks/69b73251257088ce7099.js +1 -0
- package/assets/esri/core/workers/chunks/6cd17c3a254a0b5c2476.js +1 -0
- package/assets/esri/core/workers/chunks/{06102715e9a8f218e07c.js → 6f3732e7ba2d031ba789.js} +1 -1
- package/assets/esri/core/workers/chunks/7191ab31fa040a7c561e.js +1 -0
- package/assets/esri/core/workers/chunks/71ba848c3352ea3ff96f.js +1 -0
- package/assets/esri/core/workers/chunks/76dc8e3264a456f33e61.js +1 -0
- package/assets/esri/core/workers/chunks/77d80b6d65d761214a7c.js +1 -0
- package/assets/esri/core/workers/chunks/{e2430bc3a1edeb5c3266.js → 78a69594c82d37aecbfb.js} +1 -1
- package/assets/esri/core/workers/chunks/{787c1a8bda7d745633f2.js → 81b9894e81cce3490984.js} +1 -1
- package/assets/esri/core/workers/chunks/85cd525705eec6803dd3.js +1 -0
- package/assets/esri/core/workers/chunks/863f04cacdc843d3f208.js +1 -0
- package/assets/esri/core/workers/chunks/8766832c7253557da8fe.js +1 -0
- package/assets/esri/core/workers/chunks/87992070008812f8ae6f.js +1 -0
- package/assets/esri/core/workers/chunks/892fd2c3533ce46a9258.js +1 -0
- package/assets/esri/core/workers/chunks/89b9d716d96135d4f057.js +1 -0
- package/assets/esri/core/workers/chunks/{4b2d392ad8e381bfd6b3.js → 89e9ebc8d5c1022cb265.js} +1 -1
- package/assets/esri/core/workers/chunks/8b38798ac6d774185238.js +1 -0
- package/assets/esri/core/workers/chunks/8b53369cace136ed1329.js +1 -0
- package/assets/esri/core/workers/chunks/8ba4f5e1912edf397947.js +1 -0
- package/assets/esri/core/workers/chunks/{987424121cf30b0f3c50.js → 8d3e92a3367a3ddc02bd.js} +1 -1
- package/assets/esri/core/workers/chunks/8e7a3b1b088c160f4db7.js +1 -0
- package/assets/esri/core/workers/chunks/8f4fba4d2339c91c8b3f.js +1 -0
- package/assets/esri/core/workers/chunks/{45aaefbdffe5e15dfb24.js → 919a6aedf38e9631ee09.js} +1 -1
- package/assets/esri/core/workers/chunks/{487c46d5245cfb35c4bb.js → 921917e53bac82693ec8.js} +1 -1
- package/assets/esri/core/workers/chunks/92809b209b68abcb97ee.js +1 -0
- package/assets/esri/core/workers/chunks/{beccbfff549902733c4e.js → 9869c696e6321c8db0a9.js} +1 -1
- package/assets/esri/core/workers/chunks/98957dba728c93506e50.js +1 -0
- package/assets/esri/core/workers/chunks/99ffb839407cb3c26ad8.js +1 -0
- package/assets/esri/core/workers/chunks/9b517c8d26a86dedb921.js +1 -0
- package/assets/esri/core/workers/chunks/{cb2329d1ea72ce5cc057.js → 9c3f56f22e9baa80a387.js} +1 -1
- package/assets/esri/core/workers/chunks/{1860104c2b33f68785dd.js → 9d0976f5979c4f9154dc.js} +1 -1
- package/assets/esri/core/workers/chunks/9fe1812aad6e566aea31.js +1 -0
- package/assets/esri/core/workers/chunks/a1602995ef96beb7df29.js +1 -0
- package/assets/esri/core/workers/chunks/{dff845574c0037a1dca6.js → a332e31165b65a6fb92e.js} +1 -1
- package/assets/esri/core/workers/chunks/a553478664a688f32488.js +1 -0
- package/assets/esri/core/workers/chunks/a7937b06f4b0860c7671.js +1 -0
- package/assets/esri/core/workers/chunks/{1980fd7ae1617ef4d19d.js → a95186214f1206efd8ed.js} +1 -1
- package/assets/esri/core/workers/chunks/{853563c66ecf58d53d36.js → ab60e8fbe0f92340616a.js} +1 -1
- package/assets/esri/core/workers/chunks/acea0946049136578354.js +1 -0
- package/assets/esri/core/workers/chunks/{342a97974a78007b25e0.js → ad94f54b4c88b3a047bc.js} +1 -1
- package/assets/esri/core/workers/chunks/ae29fec228e70a93ced1.js +1 -0
- package/assets/esri/core/workers/chunks/ae6dc159be974ca0e8da.js +1 -0
- package/assets/esri/core/workers/chunks/ae70972bf88d586fd453.js +1 -0
- package/assets/esri/core/workers/chunks/b021fa4654ede1d04279.js +1 -0
- package/assets/esri/core/workers/chunks/b03f32f02858244c6cd0.js +1 -0
- package/assets/esri/core/workers/chunks/b2d922ecc2c4899dbee1.js +1 -0
- package/assets/esri/core/workers/chunks/b42e50ec6b819f669400.js +1 -0
- package/assets/esri/core/workers/chunks/b6a82775b83d20599635.js +1 -0
- package/assets/esri/core/workers/chunks/b6d365b9198b74b05338.js +1 -0
- package/assets/esri/core/workers/chunks/{48c6230b8a6d3a8a7906.js → bc21241bc9acb83d1b1c.js} +1 -1
- package/assets/esri/core/workers/chunks/bd02d927b0b4991b61c5.js +1 -0
- package/assets/esri/core/workers/chunks/bdf1c4c038d556527483.js +1 -0
- package/assets/esri/core/workers/chunks/c1273f14a5ef3d81de0d.js +1 -0
- package/assets/esri/core/workers/chunks/c752f1e732bb019f657d.js +1 -0
- package/assets/esri/core/workers/chunks/{3f74c61359b4bd6dcf00.js → c7f49493bd548d5dc1e0.js} +1 -1
- package/assets/esri/core/workers/chunks/{36bafcc29ac133a05558.js → c86d3af148b28ded5875.js} +10 -10
- package/assets/esri/core/workers/chunks/{692f0093c444fcc752b5.js → cadd60fa4370284c7ae3.js} +1 -1
- package/assets/esri/core/workers/chunks/{d5e251cddd41d643510c.js → cb62326b6526cde429c1.js} +1 -1
- package/assets/esri/core/workers/chunks/cd8304b1db83d48c57db.js +1 -0
- package/assets/esri/core/workers/chunks/cdf0c7706d3e1221f49b.js +1 -0
- package/assets/esri/core/workers/chunks/d00dd961a5b79f563123.js +1 -0
- package/assets/esri/core/workers/chunks/d893c3bb093104d3db95.js +1 -0
- package/assets/esri/core/workers/chunks/d8fb1d9da16492574a11.js +1 -0
- package/assets/esri/core/workers/chunks/{520f499d79fa71f262c7.js → dd7e4c94a88452425750.js} +1 -1
- package/assets/esri/core/workers/chunks/ddb4689624d091922471.js +1 -0
- package/assets/esri/core/workers/chunks/df32a3fe81d60f0d7462.js +1 -0
- package/assets/esri/core/workers/chunks/dfc6b33f51dc81f3a7be.js +1 -0
- package/assets/esri/core/workers/chunks/e55934eb4a17a5b24c94.js +1 -0
- package/assets/esri/core/workers/chunks/{5473409fee59db80f87d.js → e5bdfef7c2cc5354be52.js} +1 -1
- package/assets/esri/core/workers/chunks/e8cdec961e9cff1cb73b.js +1 -0
- package/assets/esri/core/workers/chunks/{446d172834f8675f1202.js → eaf720dfdf6ceca31249.js} +1 -1
- package/assets/esri/core/workers/chunks/ef274db3fa260eadf371.js +1 -0
- package/assets/esri/core/workers/chunks/efca82a4dc494f57380b.js +1 -0
- package/assets/esri/core/workers/chunks/f05990e6fb378e2e1a3b.js +1 -0
- package/assets/esri/core/workers/chunks/f0fc89cdf50a40913c02.js +1 -0
- package/assets/esri/core/workers/chunks/{8b5dcc4282772bf6b675.js → f11eaab5354cc6aa9569.js} +1 -1
- package/assets/esri/core/workers/chunks/f1c2f7c7ce4bd4096eb0.js +1 -0
- package/assets/esri/core/workers/chunks/f4e63c5f82b8c2bbfacb.js +1 -0
- package/assets/esri/core/workers/chunks/f86ff791a10c802879ec.js +1 -0
- package/assets/esri/core/workers/chunks/{7452b5ae971a9ff2e6e9.js → fdffefd7de540272a8a6.js} +1 -1
- package/assets/esri/core/workers/chunks/fe0248af95d3f37e099e.js +1 -0
- package/chunks/languageUtils.js +1 -1
- package/config.js +1 -1
- package/core/Accessor.js +1 -1
- package/core/Collection.js +1 -1
- package/core/LRUCache.js +1 -1
- package/core/MapUtils.js +1 -1
- package/core/Version.js +1 -1
- package/core/asyncUtils.js +1 -1
- package/core/fontUtils.js +1 -1
- package/core/has.js +1 -1
- package/core/sql/SqlInterval.js +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql/writeUtils.js +1 -1
- package/core/sql.js +1 -1
- package/core/urlUtils.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/polygonBoundary.js +1 -1
- package/editing/sharedTemplates/executor/builders/support/builderUtils.js +1 -1
- package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
- package/geometry/Point.js +1 -1
- package/geometry/Polygon.js +1 -1
- package/geometry/SpatialReference.js +1 -1
- package/geometry/support/webMercatorUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/FeatureLayer.js +1 -1
- package/layers/GeoJSONLayer.d.ts +5 -1
- package/layers/GeospatialPDFLayer.js +1 -1
- package/layers/KnowledgeGraphLayer.js +1 -1
- package/layers/LineOfSightLayer.d.ts +6 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/TileLayer.js +1 -1
- package/layers/VectorTileLayer.d.ts +53 -0
- package/layers/VectorTileLayer.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/ViewshedLayer.d.ts +6 -1
- package/layers/VoxelLayer.js +1 -1
- package/layers/effects/jsonUtils.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/projectionSupport.js +1 -1
- package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/geojson/geojson.js +1 -1
- package/layers/graphics/sources/parquet/FileProvider.js +1 -1
- package/layers/graphics/sources/support/QueryTask.js +1 -1
- package/layers/graphics/sources/support/uploads.js +1 -1
- package/layers/knowledgeGraph/cypherUtils.js +1 -1
- package/layers/mixins/refresh.js +1 -1
- package/layers/ogc/ogcFeatureUtils.js +1 -1
- package/layers/ogc/wfsUtils.js +1 -1
- package/layers/parquet.js +1 -1
- package/layers/raster/datasets/BaseRaster.js +1 -1
- package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/datasets/wcsCoverageParser.js +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/support/ClientSideConnection.js +1 -1
- package/layers/support/ElevationSampler.js +1 -1
- package/layers/support/MultidimensionalSubset.js +1 -1
- package/layers/support/SpriteSource.js +1 -1
- package/layers/support/TileInfo.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/infoFor3D.js +1 -1
- package/layers/support/vectorTileLayerLoader.js +1 -1
- package/layers/support/wmsUtils.js +1 -1
- package/layers/support/wmtsUtils.js +1 -1
- package/layers/video/videoUtils.js +1 -1
- package/libs/lyr3d/Lyr3DModule.js +1 -1
- package/linkChart/utils.js +1 -1
- package/networks/support/Circuit.js +1 -1
- package/networks/support/CircuitSection.js +1 -1
- package/package.json +2 -2
- package/portal/Portal.js +1 -1
- package/portal/PortalItemResource.js +1 -1
- package/portal/PortalQueryParams.js +1 -1
- package/renderers/HeatmapRenderer.js +1 -1
- package/renderers/UniqueValueRenderer.js +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
- package/rest/query/operations/queryAttachments.js +1 -1
- package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
- package/symbols/cim/types.d.ts +15 -11
- package/symbols/support/previewSymbol3D.js +1 -1
- package/tables/support/templateUtils.js +1 -1
- package/views/2d/engine/vectorTiles/SourceLayerData.js +1 -1
- package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/TileManager.js +1 -1
- package/views/2d/engine/vectorTiles/TileParser.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileSourceData.js +2 -0
- package/views/2d/engine/vectorTiles/WorkerTile.js +1 -1
- package/views/2d/engine/vectorTiles/WorkerTileHandler.js +1 -1
- package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
- package/views/2d/engine/vectorTiles/expression/expression.js +1 -1
- package/views/2d/engine/vectorTiles/style/Filter.js +1 -1
- package/views/2d/engine/vectorTiles/style/GeoJSONVectorTileSourceWorker.js +1 -1
- package/views/2d/engine/vectorTiles/style/StyleProperty.js +1 -1
- package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
- package/views/2d/engine/webgl/mesh/factories/MeshWriterGroupCoordinator.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +4 -4
- package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/support/TileStore.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/tiling/TileKey.js +1 -1
- package/views/2d/tiling/TileStrategy.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionComputation.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/images/generateTextures.js +1 -1
- package/views/3d/environment/EnvironmentView.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
- package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/MeshFastUpdateProcessor.js +1 -1
- package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/graphics/polygonUtils.js +1 -1
- package/views/3d/layers/graphics/wosrLoader.js +1 -1
- package/views/3d/layers/i3s/I3SAsyncElevationUpdater.js +1 -1
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
- package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
- package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
- package/views/3d/state/ConstraintsManager.js +1 -1
- package/views/3d/state/controllers/GroundNavigationController.js +1 -1
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/TextureCollection.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/Tile.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/core/shaderTechnique/ShaderTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/CutFill.js +1 -1
- package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
- package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
- package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/intersectWithPolygonOffset.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileChart.js +2 -2
- package/views/analysis/ElevationProfile/elevationProfileChartBoundsUtils.js +1 -1
- package/views/draw/DrawAction.js +1 -1
- package/views/draw/support/PluginContext.js +1 -1
- package/views/interactive/sketch/normalizedPoint.js +1 -1
- package/views/interactive/tooltip/fields/TooltipFieldElevation.js +1 -1
- package/views/interactive/tooltip/fields/TooltipFieldOrientation.js +1 -1
- package/views/interactive/tooltip/fields/TooltipFieldSize.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
- package/widgets/Attachments.js +1 -1
- package/widgets/Attribution/AttributionViewModel.js +1 -1
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapLayerList/BasemapLayerListViewModel.js +1 -1
- package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
- package/widgets/BatchAttributeForm/ReactiveContingentValuesManager.js +1 -1
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Bookmarks/BookmarksViewModel.js +1 -1
- package/widgets/BuildingExplorer/BuildingExplorerViewModel.js +1 -1
- package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.js +1 -1
- package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
- package/widgets/CatalogLayerList.js +1 -1
- package/widgets/Compass/CompassViewModel.js +1 -1
- package/widgets/CoordinateConversion/support/Format.js +1 -1
- package/widgets/CoordinateConversion/support/formatUtils.js +1 -1
- package/widgets/Daylight/DaylightViewModel.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileLine.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
- package/widgets/Expand/ExpandViewModel.js +1 -1
- package/widgets/Expand.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTemplates.js +1 -1
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/Fullscreen/FullscreenViewModel.js +1 -1
- package/widgets/Histogram/HistogramViewModel.js +1 -1
- package/widgets/Histogram.js +1 -1
- package/widgets/HistogramRangeSlider/HistogramRangeSliderViewModel.js +1 -1
- package/widgets/Home/HomeViewModel.js +1 -1
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/styles/card/CardView.js +1 -1
- package/widgets/Legend/styles/classic/ClassicView.js +1 -1
- package/widgets/Locate/LocateViewModel.js +1 -1
- package/widgets/Locate.js +1 -1
- package/widgets/NavigationToggle/NavigationToggleViewModel.js +1 -1
- package/widgets/NavigationToggle.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
- package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
- package/widgets/OrientedImageryViewer/support/urlUtils.js +1 -1
- package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/ShadowCast/DiscreteOptions.js +1 -1
- package/widgets/ShadowCast/DurationOptions.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/ShadowCast/ThresholdOptions.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/Slider/SliderViewModel.js +1 -1
- package/widgets/Slider.js +1 -1
- package/widgets/TableList/TableListViewModel.js +1 -1
- package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
- package/widgets/Weather/WeatherViewModel.js +1 -1
- package/widgets/Widget.js +1 -1
- package/widgets/Zoom/ZoomViewModel.js +1 -1
- package/widgets/support/AnalysisViewModelMixin.js +1 -1
- package/widgets/support/GridControls.js +1 -1
- package/widgets/support/dateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/00d43f02119167531d1b.js +0 -1
- package/assets/esri/core/workers/chunks/0696fa44a04b99738d7b.js +0 -1
- package/assets/esri/core/workers/chunks/091ec4fe83038f3558f4.js +0 -1
- package/assets/esri/core/workers/chunks/098ac10877d92fde1006.js +0 -1
- package/assets/esri/core/workers/chunks/0a29d87b6e58a3c6df8f.js +0 -1
- package/assets/esri/core/workers/chunks/0d04353843ccb7440342.js +0 -1
- package/assets/esri/core/workers/chunks/0d87cb6417672de95d53.js +0 -1
- package/assets/esri/core/workers/chunks/1132e28aaa5825b10b6e.js +0 -1
- package/assets/esri/core/workers/chunks/1380cec385426673f294.js +0 -1
- package/assets/esri/core/workers/chunks/1b24a40c0fa197014873.js +0 -1
- package/assets/esri/core/workers/chunks/1c7096eb48a3a7f27d4f.js +0 -1
- package/assets/esri/core/workers/chunks/1cc03067f8405285057c.js +0 -1
- package/assets/esri/core/workers/chunks/1f76f6dcdae9f55389cb.js +0 -1
- package/assets/esri/core/workers/chunks/21e1d423ee33f916547e.js +0 -1
- package/assets/esri/core/workers/chunks/247617c0dbae2386ab3b.js +0 -1
- package/assets/esri/core/workers/chunks/25657f70c5f04a4ed978.js +0 -1
- package/assets/esri/core/workers/chunks/2690d5fcd9d5ca92ebf6.js +0 -1
- package/assets/esri/core/workers/chunks/2853606099602f73d379.js +0 -1
- package/assets/esri/core/workers/chunks/28ed020d9995b6577be5.js +0 -1
- package/assets/esri/core/workers/chunks/2b27d3bc492e000bbe58.js +0 -1
- package/assets/esri/core/workers/chunks/2d64a13c2303e9cae613.js +0 -1
- package/assets/esri/core/workers/chunks/36e5f070009b29b7ac3d.js +0 -1
- package/assets/esri/core/workers/chunks/3b5e9e0b180dc10491ec.js +0 -1
- package/assets/esri/core/workers/chunks/46edd6c9ed6701e6b975.js +0 -1
- package/assets/esri/core/workers/chunks/4e17665dd9048c300d87.js +0 -1
- package/assets/esri/core/workers/chunks/4e4f747de424941a0bfa.js +0 -1
- package/assets/esri/core/workers/chunks/4e8e322b469657ac22e2.js +0 -1
- package/assets/esri/core/workers/chunks/5396b6e99a0546a25d19.js +0 -1
- package/assets/esri/core/workers/chunks/553a8bf5bc5c56d1bcaf.js +0 -1
- package/assets/esri/core/workers/chunks/55c0c074e4afe05f5d4d.js +0 -1
- package/assets/esri/core/workers/chunks/5bfb962ca192f90a2724.js +0 -1
- package/assets/esri/core/workers/chunks/60c8eedd06080edab3e3.js +0 -1
- package/assets/esri/core/workers/chunks/61d36730564c5ac5edab.js +0 -1
- package/assets/esri/core/workers/chunks/6588725275c75fae0d9c.js +0 -1
- package/assets/esri/core/workers/chunks/661c6324529dd17b297e.js +0 -1
- package/assets/esri/core/workers/chunks/6699fac01ccd842851ba.js +0 -1
- package/assets/esri/core/workers/chunks/672a5390182b20d632be.js +0 -1
- package/assets/esri/core/workers/chunks/67caef2ecf0dc5f2eed3.js +0 -1
- package/assets/esri/core/workers/chunks/68dd1fd2025c7125ead1.js +0 -1
- package/assets/esri/core/workers/chunks/68fd7b314377d27aaa54.js +0 -1
- package/assets/esri/core/workers/chunks/69627b2634da64dd885f.js +0 -1
- package/assets/esri/core/workers/chunks/6f2e7e663229b223b4df.js +0 -1
- package/assets/esri/core/workers/chunks/7390af96250e89194332.js +0 -1
- package/assets/esri/core/workers/chunks/7b45ac83e279fe9516a5.js +0 -1
- package/assets/esri/core/workers/chunks/7e0ed6e8f7b77e43f628.js +0 -1
- package/assets/esri/core/workers/chunks/832c887fdc5af4c08cf2.js +0 -1
- package/assets/esri/core/workers/chunks/84fb27e3425515cd0e3f.js +0 -1
- package/assets/esri/core/workers/chunks/8502274806ea52308822.js +0 -1
- package/assets/esri/core/workers/chunks/867502158997cb2d6406.js +0 -1
- package/assets/esri/core/workers/chunks/8ceb6697e8adbeffe019.js +0 -1
- package/assets/esri/core/workers/chunks/8e391b5b82429f39791e.js +0 -1
- package/assets/esri/core/workers/chunks/8e6276ddd8d094c61f08.js +0 -1
- package/assets/esri/core/workers/chunks/8fe22c2370219f25c15b.js +0 -1
- package/assets/esri/core/workers/chunks/90d797ab82d4a68ba32f.js +0 -1
- package/assets/esri/core/workers/chunks/91586bf29492735e692d.js +0 -1
- package/assets/esri/core/workers/chunks/96f87c8efd4b11b37686.js +0 -1
- package/assets/esri/core/workers/chunks/9826baa3c15ea2062669.js +0 -1
- package/assets/esri/core/workers/chunks/9c3de54513bf8619271c.js +0 -1
- package/assets/esri/core/workers/chunks/a125650edbed802e419a.js +0 -1
- package/assets/esri/core/workers/chunks/a18c3cbe505a19d29569.js +0 -1
- package/assets/esri/core/workers/chunks/a422a801e55fa125546e.js +0 -1
- package/assets/esri/core/workers/chunks/a5f17e9a025ac2b6e1bf.js +0 -1
- package/assets/esri/core/workers/chunks/a6e846361bf5dd3a11c7.js +0 -1
- package/assets/esri/core/workers/chunks/a91dc05a6a609d04ed04.js +0 -1
- package/assets/esri/core/workers/chunks/a99c50b4e1c7568210e1.js +0 -1
- package/assets/esri/core/workers/chunks/ab48faea5432e2dbd45c.js +0 -1
- package/assets/esri/core/workers/chunks/ac107079342251a984dd.js +0 -1
- package/assets/esri/core/workers/chunks/acf4737ba509cbd73cce.js +0 -1
- package/assets/esri/core/workers/chunks/b7205620ca248f4efc88.js +0 -1
- package/assets/esri/core/workers/chunks/bbddeb1c893ff8bbae5d.js +0 -1
- package/assets/esri/core/workers/chunks/bc2e2bdf1194e6e9eb5e.js +0 -1
- package/assets/esri/core/workers/chunks/c0eb27263f608dc3684b.js +0 -1
- package/assets/esri/core/workers/chunks/c3ba1a3247e14f6b7b3a.js +0 -1
- package/assets/esri/core/workers/chunks/c5d0a034ff31d5954571.js +0 -1
- package/assets/esri/core/workers/chunks/c8057b47c7c6c02a0bda.js +0 -1
- package/assets/esri/core/workers/chunks/ca21786e519c914fc9e1.js +0 -1
- package/assets/esri/core/workers/chunks/cd46d9b4a8de644e7332.js +0 -1
- package/assets/esri/core/workers/chunks/d4c8673ca65df874a7ce.js +0 -1
- package/assets/esri/core/workers/chunks/da1e6962ba0c85c37953.js +0 -1
- package/assets/esri/core/workers/chunks/dcdf837a452dc0cac582.js +0 -1
- package/assets/esri/core/workers/chunks/e0864ca82ffa3c9a0776.js +0 -1
- package/assets/esri/core/workers/chunks/e69cd62f824ce7a22fa0.js +0 -1
- package/assets/esri/core/workers/chunks/e9457a67befc61e11095.js +0 -1
- package/assets/esri/core/workers/chunks/f190a3124d6d03417d73.js +0 -1
- package/assets/esri/core/workers/chunks/f4135779bfdaf349352a.js +0 -1
- package/assets/esri/core/workers/chunks/f6bd7b52745b82ba73dc.js +0 -1
- package/assets/esri/core/workers/chunks/fbe3a3b9d6c8c0b52f65.js +0 -1
- package/assets/esri/core/workers/chunks/fc77eb7683e708774168.js +0 -1
- package/assets/esri/core/workers/chunks/fe7184993ef5713d13fb.js +0 -1
- package/assets/esri/core/workers/chunks/fecaf0bc28aeea4d15db.js +0 -1
- package/views/2d/engine/vectorTiles/style/VectorTilePbfWriter.js +0 -2
- package/views/2d/engine/vectorTiles/style/encodeVectorTileFeatures.js +0 -2
- package/views/2d/layers/features/support/FeatureSetReaderVectorTileFeatureCursor.js +0 -2
- /package/views/2d/engine/vectorTiles/{Feature.js → PbfFeature.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8291],{11006(t,e,i){function n(t,e,i,n,s){r(t,e,i||0,n||t.length-1,s||o)}function r(t,e,i,n,o){for(;n>i;){if(n-i>600){var l=n-i+1,h=e-i+1,a=Math.log(l),u=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*u*(l-u)/l)*(h-l/2<0?-1:1);r(t,e,Math.max(i,Math.floor(e-h*u/l+c)),Math.min(n,Math.floor(e+(l-h)*u/l+c)),o)}var f=t[e],d=i,m=n;for(s(t,i,e),o(t[n],f)>0&&s(t,i,n);d<m;){for(s(t,d,m),d++,m--;o(t[d],f)<0;)d++;for(;o(t[m],f)>0;)m--}0===o(t[i],f)?s(t,i,m):s(t,++m,n),m<=e&&(i=m+1),e<=m&&(n=m-1)}}function s(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function o(t,e){return t<e?-1:+(t>e)}i.d(e,{q:()=>n})},69540(t,e,i){var n=i(32198),r=i(56372),s=(i(44208),i(4718)),o=(i(53966),i(97768)),l=i(88620),h=i(64108);const a=Symbol("ClonableMixin"),u=t=>{var e;let i=t,r=class extends i{constructor(){super(...arguments),this[e]=!0}static{e=a}clone(t){let e=(0,l.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");let i=e.metadata,n=e.store,r={},h=new Map;for(let e in i){let o=i[e],l=n?.originOf(e),a=o.clonable;if(o.readOnly||!1===a||7!==l&&0!==l&&5!==l&&4!==l)continue;let u=this[e],c=null;if("function"==typeof a)c=a(u,t);else if("reference"===a)c=u;else if(c=(0,s.TU)(u,t),null!=u&&null==c)continue;0===l?h.set(e,c):r[e]=c}let a=new(0,Object.getPrototypeOf(this).constructor)(r);if(h.size){let t=(0,l.oY)(a)?.store;if(t)for(let[e,i]of h)t.set(e,i,0)}return a}};return r=(0,n.Cg)([(0,h.$)("esri.core.Clonable")],r),r},c=u(r.A);i.d(e,["OU",0,u,"Pw",0,c])},65529(t,e,i){var n=i(56372),r=i(36563);const s=t=>{let e=t;return class extends e{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(t,e){let i=this._listenersMap?.get(t);if(!i)return!1;let n=!1;for(let t of i.slice()){let i="deref"in t?t.deref():t;i?i?.call(this,e):n=!0}return n&&(i=i.filter(t=>!("deref"in t)||null!=t.deref()),this._listenersMap.set(t,i)),i.length>0}on(t,e){if(Array.isArray(t)){let i=t.map(t=>this.on(t,e));return(0,r.vE)(i)}if(t.includes(","))throw TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let i=this._listenersMap.get(t)||[];return i.push(e),this._listenersMap.set(t,i),(0,r.hA)(()=>{let i=this._listenersMap?.get(t),n=i?.indexOf(e)??-1;n>=0&&i.splice(n,1)})}once(t,e){let i=this.on(t,t=>{i.remove(),("deref"in e?e.deref():e)?.call(null,t)});return i}hasEventListener(t){let e=this._listenersMap?.get(t);return null!=e&&e.length>0}}},o=s(class{}),l=o,h=s(n.A);i.d(e,["Zt",0,s,"a$",0,o,"bk",0,l,"nJ",0,h])},67482(t,e,i){function n(t){return null!==r(t)}function r(t){return function(t){let e=s.exec(t);if(!e?.groups)return null;let i=e.groups,n=+i.year,r=i.month-1,o=+i.day,l=+(i.hours??"0"),h=+(i.minutes??"0"),a=+(i.seconds??"0");if(l>23||h>59||a>59)return null;let u,c=i.ms??"0",f=c?+c.padEnd(3,"0").slice(0,3):0;if(i.isUTC||!i.offsetSign)u=Date.UTC(n,r,o,l,h,a,f);else{let t=+i.offsetHours,e=+i.offsetMinutes;u=6e4*("+"===i.offsetSign?-1:1)*(60*t+e)+Date.UTC(n,r,o,l,h,a,f)}return Number.isNaN(u)?null:u}(t)??function(t){let e=new Date(t),i=e.getTime();return Number.isNaN(i)?null:t.toLowerCase()===e.toUTCString().toLowerCase()?i:null}(t)??function(t){if(!o.test(t))return null;let e=new Date(t);return Number.isNaN(e.getTime())?null:e.getTime()-6e4*e.getTimezoneOffset()}(t)}i.d(e,{C:()=>n,_:()=>r});const s=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(t,e,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}i.d(e,{o8:()=>r,vt:()=>n});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(t,e,i,n,r,s,o,l,h,a,u,c,f,d,m,y){return[t,e,i,n,r,s,o,l,h,a,u,c,f,d,m,y]}},Symbol.toStringTag,{value:"Module"})),i.d(e,["zK",0,s])},35522(t,e,i){i.d(e,{$A:()=>T,Bw:()=>s,C:()=>o,Cc:()=>P,DI:()=>b,Io:()=>g,Ln:()=>_,Om:()=>I,Qr:()=>c,Re:()=>a,S8:()=>w,T9:()=>y,WQ:()=>h,Z0:()=>A,_S:()=>d,aI:()=>F,ei:()=>B,fw:()=>R,gL:()=>S,hG:()=>x,hZ:()=>l,hs:()=>p,jk:()=>m,lw:()=>u,m3:()=>M,oW:()=>j,t2:()=>Z,tn:()=>f,ze:()=>v});var n=i(51850),r=i(34304);function s(t){let e=t[0],i=t[1],n=t[2];return Math.sqrt(e*e+i*i+n*n)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,i,n){return t[0]=e,t[1]=i,t[2]=n,t}function h(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t}function a(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t}function u(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t}function c(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t}function y(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t}function p(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function _(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t}function g(t,e){let i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(i*i+n*n+r*r)}function x(t,e){let i=e[0]-t[0],n=e[1]-t[1],r=e[2]-t[2];return i*i+n*n+r*r}function M(t){let e=t[0],i=t[1],n=t[2];return e*e+i*i+n*n}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function w(t,e=t){let i=e[0],n=e[1],r=e[2],s=i*i+n*n+r*r;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function T(t,e,i){let n=e[0],r=e[1],s=e[2],o=i[0],l=i[1],h=i[2];return t[0]=r*h-s*l,t[1]=s*o-n*h,t[2]=n*l-r*o,t}function P(t,e,i,n){let r=e[0],s=e[1],o=e[2];return t[0]=r+n*(i[0]-r),t[1]=s+n*(i[1]-s),t[2]=o+n*(i[2]-o),t}function A(t,e,i){let n=e[0],r=e[1],s=e[2];return t[0]=i[0]*n+i[4]*r+i[8]*s+i[12],t[1]=i[1]*n+i[5]*r+i[9]*s+i[13],t[2]=i[2]*n+i[6]*r+i[10]*s+i[14],t}function B(t,e,i){let n=e[0],r=e[1],s=e[2];return t[0]=n*i[0]+r*i[3]+s*i[6],t[1]=n*i[1]+r*i[4]+s*i[7],t[2]=n*i[2]+r*i[5]+s*i[8],t}function S(t,e,i){return R(t,e,i[0],i[1],i[2],i[3])}function R(t,e,i,n,r,s){let o=e[0],l=e[1],h=e[2],a=n*h-r*l,u=r*o-i*h,c=i*l-n*o,f=n*c-r*u,d=r*a-i*c,m=i*u-n*a,y=2*s;return t[0]=o+a*y+2*f,t[1]=l+u*y+2*d,t[2]=h+c*y+2*m,t}const C=(0,n.vt)(),G=(0,n.vt)();function Z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function F(t,e){if(t===e)return!0;let i=t[0],n=t[1],s=t[2],o=e[0],l=e[1],h=e[2],a=(0,r.FD)();return Math.abs(i-o)<=a*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-l)<=a*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(s-h)<=a*Math.max(1,Math.abs(s),Math.abs(h))}function j(t,e,i){let n=i[0]-e[0],r=i[1]-e[1],s=i[2]-e[2],o=n*n+r*r+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const O=a,q=u,N=c,Y=g,z=x,E=s,X=M;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:h,angle:function(t,e){w(C,t),w(G,e);let i=I(C,G);return i>1?0:i<-1?Math.PI:Math.acos(i)},applyTranslation:function(t,e,i){return t[0]=e[0]+i[12],t[1]=e[1]+i[13],t[2]=e[2]+i[14],t},bezier:function(t,e,i,n,r,s){let o=1-s,l=o*o,h=s*s,a=l*o,u=3*s*l,c=3*h*o,f=h*s;return t[0]=e[0]*a+i[0]*u+n[0]*c+r[0]*f,t[1]=e[1]*a+i[1]*u+n[1]*c+r[1]*f,t[2]=e[2]*a+i[2]*u+n[2]*c+r[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,i=1){return t[0]=Math.min(Math.max(t[0],e),i),t[1]=Math.min(Math.max(t[1],e),i),t[2]=Math.min(Math.max(t[2],e),i),t},copy:o,cross:T,crossAndNormalize:function(t,e,i){let n=e[0],r=e[1],s=e[2],o=i[0],l=i[1],h=i[2],a=r*h-s*l,u=s*o-n*h,c=n*l-r*o,f=Math.sqrt(a*a+u*u+c*c);return t[0]=a/f,t[1]=u/f,t[2]=c/f,t},direction:j,dist:Y,distance:g,div:N,divide:c,dot:I,equals:F,exactEquals:Z,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,i,n,r,s){let o=s*s,l=o*(2*s-3)+1,h=o*(s-2)+s,a=o*(s-1),u=o*(3-2*s);return t[0]=e[0]*l+i[0]*h+n[0]*a+r[0]*u,t[1]=e[1]*l+i[1]*h+n[1]*a+r[1]*u,t[2]=e[2]*l+i[2]*h+n[2]*a+r[2]*u,t},inverse:b,len:E,length:s,lerp:P,max:y,min:m,mul:q,multiply:u,negate:v,normalize:w,random:function(t,e=1){let i=r.Ov,n=2*i()*Math.PI,s=2*i()-1,o=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=s*e,t},rotateX:function(t,e,i,n){let r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[0],s[1]=r[1]*Math.cos(n)-r[2]*Math.sin(n),s[2]=r[1]*Math.sin(n)+r[2]*Math.cos(n),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateY:function(t,e,i,n){let r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[2]*Math.sin(n)+r[0]*Math.cos(n),s[1]=r[1],s[2]=r[2]*Math.cos(n)-r[0]*Math.sin(n),t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},rotateZ:function(t,e,i,n){let r=[],s=[];return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],s[0]=r[0]*Math.cos(n)-r[1]*Math.sin(n),s[1]=r[0]*Math.sin(n)+r[1]*Math.cos(n),s[2]=r[2],t[0]=s[0]+i[0],t[1]=s[1]+i[1],t[2]=s[2]+i[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:p,scaleAndAdd:_,scaleTo:function(t,e){return p(t,t,e/E(t))},set:l,sign:d,sqrDist:z,sqrLen:X,squaredDistance:x,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:O,subtract:a,transformMat3:B,transformMat4:A,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:S,transformQuatValues:R},Symbol.toStringTag,{value:"Module"})),i.d(e,["Il",0,E,"jb",0,O,"lo",0,z,"uE",0,X])},75503(t,e,i){i.d(e,{wq:()=>l});var n=i(4576),r=i(21818),s=(i(44208),i(15142)),o=i(11006);class l{constructor(t=9,e){this._compareMinX=f,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),v.prune(),b.prune(),w.prune(),I.prune()}all(t){h(this._data,t)}search(t,e){let i=this._data,n=this._toBBox;if(x(t,i))for(v.clear();i;){for(let r=0,s=i.children.length;r<s;r++){let s=i.children[r],o=i.leaf?n(s):s;x(t,o)&&(i.leaf?e(s):g(t,o)?h(s,e):v.push(s))}i=v.pop()}}collides(t){let e=this._data,i=this._toBBox;if(!x(t,e))return!1;for(v.clear();e;){for(let n=0,r=e.children.length;n<r;n++){let r=e.children[n],s=e.leaf?i(r):r;if(x(t,s)){if(e.leaf||g(t,s))return!0;v.push(r)}}e=v.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,i=t.length;e<i;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){let t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(t){if(!t)return this;let e,i=this._data,s=null,o=0,l=!1,h=this._toBBox(t);for(w.clear(),I.clear();i||w.length>0;){if(i||(i=w.pop(),s=w.data[w.length-1],o=I.pop()??0,l=!0),i.leaf&&(e=(0,n.qh)(i.children,(0,r.z)(t),i.children.length,i.indexHint),-1!==e))return i.children.splice(e,1),w.push(i),this._condense(w),this;l||i.leaf||!g(i,h)?s?(o++,i=s.children[o],l=!1):i=null:(w.push(i),I.push(o),o=0,s=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,i,n){let r=i-e+1,s=this._maxEntries;if(r<=s){let n=new A(t.slice(e,i+1));return a(n,this._toBBox),n}n||(n=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(n-1)));let o=new B([]);o.height=n;let l=Math.ceil(r/s),h=l*Math.ceil(Math.sqrt(s));M(t,e,i,h,this._compareMinX);for(let r=e;r<=i;r+=h){let e=Math.min(r+h-1,i);M(t,r,e,l,this._compareMinY);for(let i=r;i<=e;i+=l){let r=Math.min(i+l-1,e);o.children.push(this._build(t,i,r,n-1))}}return a(o,this._toBBox),o}_insert(t,e,i){let n=this._toBBox,r=i?t:n(t);w.clear();let s=function(t,e,i,n){for(;n.push(e),!0!==e.leaf&&n.length-1!==i;){let i,n=1/0,r=1/0;for(let s=0,o=e.children.length;s<o;s++){let o=e.children[s],l=m(o),h=p(t,o)-l;h<r?(r=h,n=l<n?l:n,i=o):h===r&&l<n&&(n=l,i=o)}e=i||e.children[0]}return e}(r,this._data,e,w);for(s.children.push(t),c(s,r);e>=0&&w.data[e].children.length>this._maxEntries;)this._split(w,e),e--;!function(t,e,i){for(let n=i;n>=0;n--)c(e.data[n],t)}(r,w,e)}_split(t,e){let i=t.data[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);let s=this._chooseSplitIndex(i,r,n);if(!s)return;let o=i.children.splice(s,i.children.length-s),l=i.leaf?new A(o):new B(o);l.height=i.height,a(i,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(i,l)}_splitRoot(t,e){this._data=new B([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,i){let n,r,s;n=r=1/0;for(let o=e;o<=i-e;o++){let e=u(t,0,o,this._toBBox),l=u(t,o,i,this._toBBox),h=_(e,l),a=m(e)+m(l);h<n?(n=h,s=o,r=a<r?a:r):h===n&&a<r&&(r=a,s=o)}return s}_chooseSplitAxis(t,e,i){let n=t.leaf?this._compareMinX:f,r=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,r)&&t.children.sort(n)}_allDistMargin(t,e,i,n){t.children.sort(n);let r=this._toBBox,s=u(t,0,e,r),o=u(t,i-e,i,r),l=y(s)+y(o);for(let n=e;n<i-e;n++){let e=t.children[n];c(s,t.leaf?r(e):e),l+=y(s)}for(let n=i-e-1;n>=e;n--){let e=t.children[n];c(o,t.leaf?r(e):e),l+=y(o)}return l}_condense(t){for(let e=t.length-1;e>=0;e--){let i=t.data[e];if(0===i.children.length)if(e>0){let r=t.data[e-1],s=r.children;s.splice((0,n.qh)(s,i,s.length,r.indexHint),1)}else this.clear();else a(i,this._toBBox)}}_initFormat(t){let e=["return a"," - b",";"];this._compareMinX=Function("a","b",e.join(t[0])),this._compareMinY=Function("a","b",e.join(t[1])),this._toBBox=Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function h(t,e){let i=t;for(b.clear();i;){if(!0===i.leaf)for(let t of i.children)e((0,r.z)(t));else b.pushArray(i.children);i=b.pop()??null}}function a(t,e){u(t,0,t.children.length,e,t)}function u(t,e,i,n,r){r||=new A([]),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=e;o<i;o++)s=t.children[o],c(r,t.leaf?n(s):s);return r}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function f(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function y(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function _(t,e){let i=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),s=Math.min(t.maxY,e.maxY);return Math.max(0,r-i)*Math.max(0,s-n)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function x(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function M(t,e,i,n,r){let s=[e,i];for(;s.length;){let e=s.pop(),i=s.pop();if(e-i<=n)continue;let l=i+Math.ceil((e-i)/n/2)*n;(0,o.q)(t,l,i,e,r),s.push(i,l,l,e)}}const v=new s.A,b=new s.A,w=new s.A,I=new s.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class A extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class B extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},69397(t,e,i){i.d(e,{Qf:()=>h,Qh:()=>o,lM:()=>s,ro:()=>a,rq:()=>u});var n=i(44208),r=i(34275);function s(t){if(!t)return 0;let e=c;for(let i in t)t.hasOwnProperty(i)&&(e+=l(t[i],!1));return e}function o(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return u(t,8);let i=f;for(let n=0;n<e;n++)i+=l(t[n]);return i}(t);let e=c;for(let i in t)t.hasOwnProperty(i)&&(e+=l(t[i]));return e}function l(t,e=!0){switch(typeof t){case"object":return e?o(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,e)=>t+a(e),0)}function a(t,e=16){return t?(0,r.iu)(t)?t.byteLength+m:Array.isArray(t)?u(t,e):0:0}function u(t,e){return f+t.length*e}const c=32,f=16,d=(0,n.A)("ios")||!(0,n.A)("chrome")&&!(0,n.A)("opr")?8:4,m=145;i.d(e,["JY",0,d])},48526(t,e,i){i.d(e,{A:()=>p});var n,r=i(32198),s=i(4576),o=i(4718),l=i(91429),h=i(5443),a=i(91075),u=i(86738),c=i(16930),f=i(90634),d=i(47610),m=i(56993),y=i(43937);let p=n=class extends a.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:i,hasZ:n,spatialReference:r}=t;switch(e??=[],e?.at(0)?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=c.A.WGS84,{...t,hasM:i,hasZ:n,points:e,spatialReference:r}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,f.ge)(this);return t?new h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:i,hasZ:r}=this;return new n({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:i,hasZ:r})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,i=t.spatialReference;return!(null!=e!=(null!=i)||null!=e&&null!=i&&!e.equals(i))&&(0,s.aI)(this.points,t.points,d.v6)}addPoint(t){return(0,m.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],i={x:e[0],y:e[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(i.z=e[2],n=3),this.hasM&&(i.m=e[n]),new u.A(i)}removePoint(t){if(!this._validateInputs(t))return null;let[e,i,n,r]=this.points.splice(t,1)[0],s=new u.A({x:e,y:i,z:n,m:r,spatialReference:this.spatialReference});return this.notifyChange("points"),s}setPoint(t,e){return this._validateInputs(t)&&((0,m.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points")),this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,r.Cg)([(0,l.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],p.prototype,"points",void 0),(0,r.Cg)([(0,y.K)("points")],p.prototype,"writePoints",null),p=n=(0,r.Cg)([(0,l.$K)("esri.geometry.Multipoint")],p),p.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,i){i.d(e,{A:()=>m});var n,r=i(32198),s=i(4718),o=i(91429),l=i(5443),h=i(91075),a=i(86738),u=i(16930),c=i(90634),f=i(56993),d=i(43937);let m=n=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:i,hasZ:n,spatialReference:r}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return r??=u.A.WGS84,{...t,hasM:i,hasZ:n,paths:e,spatialReference:r}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){let t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new l.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,i=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let n=[];for(let e=0,i=t.length;e<i;e++)n[e]=t[e].toArray();e[i]=n}else e[i]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new n;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;let i=this.paths[t][e],n=this.hasZ,r=this.hasM;return n&&!r?new a.A({x:i[0],y:i[1],z:i[2],spatialReference:this.spatialReference}):r&&!n?new a.A({x:i[0],y:i[1],m:i[2],spatialReference:this.spatialReference}):n&&r?new a.A({x:i[0],y:i[1],z:i[2],m:i[3],spatialReference:this.spatialReference}):new a.A({x:i[0],y:i[1],spatialReference:this.spatialReference})}insertPoint(t,e,i){return this._validateInputs(t,e,!0)&&((0,f.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t].splice(e,0,i),this.notifyChange("paths")),this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],i=this.spatialReference,n=e.map(t=>new a.A({x:t[0],y:t[1],z:t[2],m:t[3],spatialReference:i}));return this.notifyChange("paths"),n}removePoint(t,e){if(!this._validateInputs(t,e))return null;let[i,n,r,s]=this.paths[t].splice(e,1)[0],o=new a.A({x:i,y:n,z:r,m:s,spatialReference:this.spatialReference});return this.notifyChange("paths"),o}setPoint(t,e,i){return this._validateInputs(t,e)&&((0,f.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t][e]=i,this.notifyChange("paths")),this}_validateInputs(t,e,i=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let n=this.paths[t];if(i&&(e<0||e>n.length)||!i&&(e<0||e>=n.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,r.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,r.Cg)([(0,d.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,r.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,r.Cg)([(0,d.K)("paths")],m.prototype,"writePaths",null),m=n=(0,r.Cg)([(0,o.$K)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0},4197(t,e,i){i.d(e,{Vj:()=>o,cj:()=>s,jh:()=>r});var n=i(9093);function r(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function s(t){return[...t]}function o(t){let e=(0,n.vt)();for(let i=0;i<16;++i)e[i]=t[i];return e}},6774(t,e,i){i.d(e,{O3:()=>s,Ox:()=>o,bR:()=>n});class n{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new n(t[0],t[1])}clone(){return new n(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){let t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){let t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){let t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){let i=this.x,n=this.y;return this.x=i*t-n*e,this.y=i*e+n*t,this}rotateReverse(t,e){let i=this.x,n=this.y;return this.x=i*t+n*e,this.y=-i*e+n*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){let t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){let i=e.x-t.x,n=e.y-t.y;return Math.sqrt(i*i+n*n)}static add(t,e){return new n(t.x+e.x,t.y+e.y)}static sub(t,e){return new n(t.x-e.x,t.y-e.y)}}class r{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class s{constructor(t,e,i,n=8,r=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=n,this._pixelMargin=r,this._tileSize=512*n,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;let i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new n(t,e),this._firstPt=new n(t,e),this._dist=0}lineTo(t,e){let i,s,o,l,h,a,u,c,f=this._isIn(t,e),d=new n(t,e),m=n.distance(this._prevPt,d);if(f)this._prevIsIn?this._lineTo(t,e,!0):(i=this._prevPt,s=d,o=this._intersect(s,i),this._start=this._dist+m*(1-this._r),this._lineTo(o.x,o.y,!0),this._lineTo(s.x,s.y,!0));else if(this._prevIsIn)s=this._prevPt,i=d,o=this._intersect(s,i),this._lineTo(o.x,o.y,!0),this._lineTo(i.x,i.y,!1);else{let t=this._prevPt,e=d;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{let i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(l=(this._xmin-t.x)/(e.x-t.x),c=t.y+l*(e.y-t.y),c<this._ymin?a=!1:c>this._ymax?a=!0:i.push(new r(l,this._xmin,c))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(l=(this._xmax-t.x)/(e.x-t.x),c=t.y+l*(e.y-t.y),c<this._ymin?a=!1:c>this._ymax?a=!0:i.push(new r(l,this._xmax,c))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(l=(this._ymin-t.y)/(e.y-t.y),u=t.x+l*(e.x-t.x),u<=this._xmin?h=!1:u>=this._xmax?h=!0:i.push(new r(l,u,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(l=(this._ymax-t.y)/(e.y-t.y),u=t.x+l*(e.x-t.x),u<=this._xmin?h=!1:u>=this._xmax?h=!0:i.push(new r(l,u,this._ymax))),0===i.length)h?a?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):a?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+m*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+m*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=m,this._prevIsIn=f,this._prevPt=d}close(){if(this._line.length>2){let t=this._firstPt,e=this._prevPt;(t.x!==e.x||t.y!==e.y)&&this.lineTo(t.x,t.y);let i=this._line,n=i.length;for(;n>=4&&(i[0].x===i[1].x&&i[0].x===i[n-2].x||i[0].y===i[1].y&&i[0].y===i[n-2].y);)i.pop(),i[0].x=i[n-2].x,i[0].y=i[n-2].y,--n}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&l.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw Error("Only valid for lines");this._pushLine();let t=this._lines,e=t.length;if(0===e)return null;let i=[];for(let n=0;n<e;n++)i.push({line:t[n],start:this._starts[n]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,r,s;if(e.x>=this._xmin&&e.x<=this._xmax)r=e.y<=this._ymin?this._ymin:this._ymax,s=(r-t.y)/(e.y-t.y),i=t.x+s*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,s=(i-t.x)/(e.x-t.x),r=t.y+s*(e.y-t.y);else{r=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;let n=(i-t.x)/(e.x-t.x),o=(r-t.y)/(e.y-t.y);n<o?(s=n,r=t.y+n*(e.y-t.y)):(s=o,i=t.x+o*(e.x-t.x))}return this._r=s,new n(i,r)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3===this._type?(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new n(t,e)),this._isH=!1,this._isV=!1):i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new n(t,e)))}_lineTo(t,e,i){let r,s;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(r=this._line[this._line.length-1],r.equals(t,e)))return;this._line.push(new n(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){r=this._line[this._line.length-1];let i=r.x===t,o=r.y===e;if(i&&o)return;this._isH&&i||this._isV&&o?(r.x=t,r.y=e,s=this._line[this._line.length-2],s.x===t&&s.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(s=this._line[this._line.length-2],this._isH=s.x===t,this._isV=s.y===e)):(this._isH=s.x===t,this._isV=s.y===e)):(this._line.push(new n(t,e)),this._isH=i,this._isV=o)}else this._line.push(new n(t,e))}}class o{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];let i=this._ratio;this._line.push(new n(t*i,e*i))}lineTo(t,e){let i=this._ratio;this._line.push(new n(t*i,e*i))}close(){let t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class l{static simplify(t,e,i){if(!i)return;let n=-e,r=t+e,s=-e,o=t+e,h=[],a=[],u=i.length;for(let t=0;t<u;++t){let e=i[t];if(!e||e.length<2)continue;let l,u=e[0],c=e.length;for(let i=1;i<c;++i)l=e[i],u.x===l.x&&(u.x<=n&&(u.y>l.y?(h.push(t),h.push(i),h.push(0),h.push(-1)):(a.push(t),a.push(i),a.push(0),a.push(-1))),u.x>=r&&(u.y<l.y?(h.push(t),h.push(i),h.push(1),h.push(-1)):(a.push(t),a.push(i),a.push(1),a.push(-1)))),u.y===l.y&&(u.y<=s&&(u.x<l.x?(h.push(t),h.push(i),h.push(2),h.push(-1)):(a.push(t),a.push(i),a.push(2),a.push(-1))),u.y>=o&&(u.x>l.x?(h.push(t),h.push(i),h.push(3),h.push(-1)):(a.push(t),a.push(i),a.push(3),a.push(-1)))),u=l}if(0===h.length||0===a.length)return;l.fillParent(i,a,h),l.fillParent(i,h,a);let c=[];l.calcDeltas(c,a,h),l.calcDeltas(c,h,a),l.addDeltas(c,i)}static fillParent(t,e,i){let n=i.length,r=e.length;for(let s=0;s<r;s+=4){let r=e[s],o=e[s+1],l=e[s+2],a=t[r][o-1],u=t[r][o],c=8092,f=-1;for(let e=0;e<n;e+=4){if(i[e+2]!==l)continue;let n=i[e],r=i[e+1],s=t[n][r-1],o=t[n][r];switch(l){case 0:case 1:if(h(a.y,s.y,o.y)&&h(u.y,s.y,o.y)){let t=Math.abs(o.y-s.y);t<c&&(c=t,f=e)}break;case 2:case 3:if(h(a.x,s.x,o.x)&&h(u.x,s.x,o.x)){let t=Math.abs(o.x-s.x);t<c&&(c=t,f=e)}}}e[s+3]=f}}static calcDeltas(t,e,i){let n=e.length;for(let r=0;r<n;r+=4){let n=l.calcDelta(r,e,i,[]);t.push(e[r]),t.push(e[r+1]),t.push(e[r+2]),t.push(n)}}static calcDelta(t,e,i,n){let r=e[t+3];if(-1===r)return 0;let s=n.length;return s>1&&n[s-2]===r?0:(n.push(r),l.calcDelta(r,i,e,n)+1)}static addDeltas(t,e){let i=t.length,n=0;for(let e=0;e<i;e+=4){let i=t[e+3];i>n&&(n=i)}for(let r=0;r<i;r+=4){let i=e[t[r]],s=t[r+1],o=n-t[r+3];switch(t[r+2]){case 0:i[s-1].x-=o,i[s].x-=o,1===s&&(i[i.length-1].x-=o),s===i.length-1&&(i[0].x-=o);break;case 1:i[s-1].x+=o,i[s].x+=o,1===s&&(i[i.length-1].x+=o),s===i.length-1&&(i[0].x+=o);break;case 2:i[s-1].y-=o,i[s].y-=o,1===s&&(i[i.length-1].y-=o),s===i.length-1&&(i[0].y-=o);break;case 3:i[s-1].y+=o,i[s].y+=o,1===s&&(i[i.length-1].y+=o),s===i.length-1&&(i[0].y+=o)}}}}const h=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},70328(t,e,i){i.d(e,{BI:()=>A,C:()=>o,DC:()=>f,Ej:()=>x,Ie:()=>T,Jt:()=>P,Lu:()=>v,Ne:()=>b,RF:()=>c,TF:()=>_,VL:()=>m,aI:()=>S,fA:()=>l,gE:()=>a,gX:()=>g,hZ:()=>I,iT:()=>d,is:()=>B,pg:()=>M,uJ:()=>p,vI:()=>w,vY:()=>h,vt:()=>s,w1:()=>u,yr:()=>y}),i(35522);var n=i(5443),r=(i(19419),i(4197));function s(t=C){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e){for(let i=0;i<6;i++)t[i]=e[i];return t}function l(t,e,i,n,r,o,l=s()){return l[0]=t,l[1]=e,l[2]=i,l[3]=n,l[4]=r,l[5]=o,l}function h(t,e=s()){return function(t,e,i,n=s()){return I(n,R),function(t,e,i=0,n=e.length/3){let r=t[0],s=t[1],o=t[2],l=t[3],h=t[4],a=t[5];for(let t=0;t<n;t++)r=Math.min(r,e[i+3*t]),s=Math.min(s,e[i+3*t+1]),o=Math.min(o,e[i+3*t+2]),l=Math.max(l,e[i+3*t]),h=Math.max(h,e[i+3*t+1]),a=Math.max(a,e[i+3*t+2]);t[0]=r,t[1]=s,t[2]=o,t[3]=l,t[4]=h,t[5]=a}(n,t,e,i),n}(t,0,t.length/3,e)}function a(t,e=(0,r.jh)(24)){let[i,n,s,o,l,h]=t;return e[0]=i,e[1]=n,e[2]=s,e[3]=i,e[4]=n,e[5]=h,e[6]=i,e[7]=l,e[8]=s,e[9]=i,e[10]=l,e[11]=h,e[12]=o,e[13]=n,e[14]=s,e[15]=o,e[16]=n,e[17]=h,e[18]=o,e[19]=l,e[20]=s,e[21]=o,e[22]=l,e[23]=h,e}function u(t,e){return isFinite(t[2])||isFinite(t[5])?new n.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new n.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e,i=t){i[0]=Math.min(t[0],e[0]),i[1]=Math.min(t[1],e[1]),i[2]=Math.min(t[2],e[2]),i[3]=Math.max(t[3],e[3]),i[4]=Math.max(t[4],e[4]),i[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function d(t,[e,i,n]){!function(t,e,i,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.min(t[2],n),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],i),t[5]=Math.max(t[5],n)}(t,e,i,n)}function m(t){return t[0]>=t[3]?0:t[3]-t[0]}function y(t){return t[1]>=t[4]?0:t[4]-t[1]}function p(t){return t[2]>=t[5]?0:t[5]-t[2]}function _(t){let e=m(t),i=p(t),n=y(t);return e*e+i*i+n*n}function g(t,e=[0,0,0]){return e[0]=t[0]+m(t)/2,e[1]=t[1]+y(t)/2,e[2]=t[2]+p(t)/2,e}function x(t,e=[0,0,0]){return e[0]=m(t),e[1]=y(t),e[2]=p(t),e}function M(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function v(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function b(t,e,i=t){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i!==t&&(i[3]=t[3],i[4]=t[4],i[5]=t[5]),i}function w(t,e,i=t){return i[3]=e[0],i[4]=e[1],i[5]=e[2],i!==t&&(i[0]=t[0],i[1]=t[1],i[2]=t[2]),t}function I(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function T(t){return t?I(t,R):s(R)}function P(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function A(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=-1/0,t[3]=n,t[4]=r,t[5]=1/0,t}function B(t){return 6===t.length}function S(t,e,i){if(null==t||null==e)return t===e;if(!B(t)||!B(e))return!1;if(i){for(let n=0;n<t.length;n++)if(!i(t[n],e[n]))return!1}else for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const R=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];s(),i.d(e,["qv",0,R,"v_",0,C])},60408(t,e,i){function n(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function r(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function l(t){return void 0!==t.rings||void 0!==t.curveRings}function h(t){return"object"==typeof t&&"vertexAttributes"in t}function a(t){return t?s(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":l(t)?"esriGeometryPolygon":n(t)?"esriGeometryEnvelope":r(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function c(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}i.d(e,{$B:()=>a,Bi:()=>l,Pv:()=>u,Rg:()=>o,U9:()=>r,W0:()=>c,ZC:()=>n,fT:()=>s,uW:()=>h})},65864(t,e,i){i.d(e,{rS:()=>u,xD:()=>f});var n=i(5443),r=i(91075),s=i(48526),o=i(86738),l=i(39829),h=i(82799),a=i(60408);function u(t){return null==t?null:t instanceof r.A?t:(0,a.fT)(t)?o.A.fromJSON(t):(0,a.Rg)(t)?h.A.fromJSON(t):(0,a.Bi)(t)?l.A.fromJSON(t):(0,a.U9)(t)?s.A.fromJSON(t):(0,a.ZC)(t)?n.A.fromJSON(t):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:h.A,esriGeometryPolygon:l.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:l.A};function f(t){return t&&c[t]||null}},43334(t,e,i){i.d(e,{N3:()=>l,Om:()=>o});var n=i(69397),r=i(27647),s=i(92722);class o{constructor(t,e,i,n,r=0,s=null,o=null){this.geometry=t,this.attributes=e,this.centroid=i,this.objectId=n,this.displayId=r,this.distance=s,this.vertexCount=o}static fromJSON(t){let e=t.geometry?s.A.fromJSON(t.geometry):null,i=t.centroid?s.A.fromJSON(t.centroid):null,n=t.objectId;return new o(e,t.attributes,i,n,void 0,t.distance,t.vertexCount)}weakClone(){return new o(this.geometry,this.attributes,this.centroid,this.objectId,this.displayId,this.distance,this.vertexCount)}clone(){return new o(this.geometry?.clone(),{...this.attributes},this.centroid?.clone(),this.objectId,this.displayId,this.distance,this.vertexCount)}ensureCentroid(t){return this.centroid??=(0,r.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,n.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function l(t){return!!t.geometry?.coords?.length}},58512(t,e,i){i.d(e,{A:()=>n});class n{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){let t=new n;return t.globalIdFieldName=this.globalIdFieldName,t.geohashFieldName=this.geohashFieldName,t.geometryProperties=this.geometryProperties,t.geometryType=this.geometryType,t.spatialReference=this.spatialReference,t.hasZ=this.hasZ,t.hasM=this.hasM,t.features=this.features,t.fields=this.fields,t.transform=this.transform,t.exceededTransferLimit=this.exceededTransferLimit,t.uniqueIdField=this.uniqueIdField,t.queryGeometry=this.queryGeometry,t.queryGeometryType=this.queryGeometryType,t}}},92722(t,e,i){i.d(e,{A:()=>r});var n=i(69397);class r{constructor(t=[],e=[],i=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=i,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:i,hasM:n}){return new r(t,e,i||!1,n||!1)}static fromRect([t,e,i,n]){let s=i-t,o=n-e;return new r([5],[t,e,s,0,0,o,-s,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let t=0,e=0;for(let i of this.lengths){if(i<3)continue;let{stride:n}=this,r=this.coords[n*e],s=this.coords[n*e+1];for(let o=1;o<i;o+=1){let i=n*(e+o),l=this.coords[i],h=this.coords[i+1];t+=-.5*(l-r)*(h+s),r=l,s=h}e+=i}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);let{stride:i}=this;for(let n of this.lengths){for(let r=0;r<n;r++){let n=i*(e+r);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){let t=this.clone(),{coords:e,lengths:i}=t,n=0,{stride:r}=this;for(let t of i){for(let i=1;i<t;i++){let t=r*(n+i);e[t]+=e[t-r],e[t+1]+=e[t+1-r]}n+=t}return t}clone(t){if(this.isPoint)return new r([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let e=Array.from(this.lengths),{stride:i,size:n}=this,s=this.coords.slice(0,n*i);return t?(t.set(s),new r(e,t,this.hasZ,this.hasM)):new r(e,Array.from(s),this.hasZ,this.hasM)}justXY(){let{stride:t,size:e}=this;if(2===t)return this;let i=Array(e*t);for(let e=0,n=0;e<i.length;e+=t)i[n++]=this.coords[e],i[n++]=this.coords[e+1];return new r(this.lengths,i,!1,!1)}}},27647(t,e,i){i.d(e,{Q:()=>s});var n=i(92722);function r(t,e){return t?e?4:3:e?3:2}function s(t){if(null==t||!t?.lengths.length)return null;let{lengths:e,coords:i,stride:r,hasZ:s,hasM:h}=t,a=new n.A([],[],s,!1),u=a.coords,c=[],f=s?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0],d=0;for(let t of e){let e=o(f,i,d,t,s,h);e&&c.push(e),d+=t*r}if(c.sort((t,e)=>{let i=t[2]-e[2];return 0===i&&s&&(i=t[4]-e[4]),i}),c.length){let t=6*c[0][2];u[0]=c[0][0]/t,u[1]=c[0][1]/t,s&&(t=6*c[0][4],u[2]=0===t?0:c[0][3]/t),(u[0]<f[0]||u[0]>f[1]||u[1]<f[2]||u[1]>f[3]||s&&(u[2]<f[4]||u[2]>f[5]))&&(u.length=0)}if(!u.length){let n=t.lengths[0]?l(i,0,e[0],s,h):null;if(!n)return null;u[0]=n[0],u[1]=n[1],s&&(u[2]=n[2]??0)}return a}function o(t,e,i,n,s,o){let l=r(s,o),h=i,a=i+l,u=0,c=0,f=0,d=0,m=0;for(let i=0,r=n-1;i<r;i++,h+=l,a+=l){let i=e[h],n=e[h+1],r=e[h+2],o=e[a],l=e[a+1],y=e[a+2],p=i*l-o*n;d+=p,u+=(i+o)*p,c+=(n+l)*p,s&&(p=i*y-o*r,f+=(r+y)*p,m+=p),i<t[0]&&(t[0]=i),i>t[1]&&(t[1]=i),n<t[2]&&(t[2]=n),n>t[3]&&(t[3]=n),s&&(r<t[4]&&(t[4]=r),r>t[5]&&(t[5]=r))}if(d>0&&(d*=-1),m>0&&(m*=-1),!d)return null;let y=[u,c,.5*d];return s&&(y[3]=f,y[4]=.5*m),y}function l(t,e,i,n,s){let o=r(n,s),l=e,f=e+o,d=0,m=0,y=0,p=0;for(let e=0,r=i-1;e<r;e++,l+=o,f+=o){let e=t[l],i=t[l+1],r=t[l+2],s=t[f],o=t[f+1],_=t[f+2],g=n?a(e,i,r,s,o,_):h(e,i,s,o);if(g)if(d+=g,n){let t=c(e,i,r,s,o,_);m+=g*t[0],y+=g*t[1],p+=g*t[2]}else{let t=u(e,i,s,o);m+=g*t[0],y+=g*t[1]}}return d>0?n?[m/d,y/d,p/d]:[m/d,y/d]:i>0?n?[t[e],t[e+1],t[e+2]]:[t[e],t[e+1]]:null}function h(t,e,i,n){let r=i-t,s=n-e;return Math.sqrt(r*r+s*s)}function a(t,e,i,n,r,s){let o=n-t,l=r-e,h=s-i;return Math.sqrt(o*o+l*l+h*h)}function u(t,e,i,n){return[t+.5*(i-t),e+.5*(n-e)]}function c(t,e,i,n,r,s){return[t+.5*(n-t),e+.5*(r-e),i+.5*(s-i)]}},6518(t,e,i){i.d(e,{F:()=>l});var n=i(44208),r=i(75503),s=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class l{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new r.wq(9,(0,n.A)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let t=Array(this._idByBounds.size),e=0;this._idByBounds.forEach((i,n)=>{t[e++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(t=>this._idByBounds.has(t))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let t=(0,s.Ie)();for(let e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){let e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,i){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,i)}(this._index,t,t=>e(this._idByBounds.get(t)))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){let e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(t,e,i){i.d(e,{A:()=>d});var n=i(4576),r=i(49186),s=i(65529),o=i(53966),l=i(70328),h=i(19419),a=i(90708),u=i(6518),c=i(37730);const f=(0,l.vt)();class d{constructor(t){this.geometryInfo=t,this._boundsStore=new u.F,this._featuresById=new Map,this._usedMemory=0,this.events=new s.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach(e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;let[e,i,n,r]=this.fullBounds;return{xmin:e,ymin:i,xmax:n,ymax:r,spatialReference:t}}add(t){this._add(t),this._emitChanged()}addMany(t){for(let e of t)this._add(e);this._emitChanged()}upsertMany(t){let e=t.map(t=>this._upsert(t));return this._emitChanged(),e.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(t){let e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(let e of t){let t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(let i of t){let t=this._boundsStore.get(i.objectId);t&&e((0,l.Jt)(f,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach(e=>t(e))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,t=>{e(this._featuresById.get(t))})}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;let e=t.objectId;if(null==e)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:t}));let i,n=this._featuresById.get(e);n?(t.displayId=n.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(t),t.geometry?.coords?.length?(i=(0,a.jQ)(i??(0,h.vt)(),t.geometry),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t),this._usedMemory+=this.estimateFeatureUsedMemory?.(t)??0):(this._boundsStore.set(e,null),this._featuresById.set(e,t))}_upsert(t){let e=t?.objectId;if(null==e)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.A("featurestore:invalid-feature","feature id is missing",{feature:t})),null;let i=this._featuresById.get(e);if(!i)return this._add(t),t;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;let{geometry:n,attributes:s}=t;for(let t in s)i.attributes[t]=s[t];return n&&(i.geometry=n,this._boundsStore.set(e,(0,a.jQ)((0,h.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);let e=t.objectId;return this._boundsStore.delete(e),this._featuresById.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(t)??0,t}}},54339(t,e,i){function n(t,e){switch(e.type){case"object-id":case"unique-id-simple":return t.attributes[e.fieldName];case"unique-id-composite":{let i=[];for(let n of e.fieldNames)i.push(t.attributes[n]??null);return JSON.stringify(i)}}}function r(t,e){if("uniqueIdFields"in e&&e.uniqueIdFields?.length){if(1===e.uniqueIdFields.length)return t.attributes?.[e.uniqueIdFields[0]];let i=e.uniqueIdFields.map(e=>t.attributes?.[e]);return JSON.stringify(i)}return"objectIdField"in e&&e.objectIdField?t.attributes?.[e.objectIdField]:null}i.d(e,{W:()=>n,r:()=>r})},37730(t,e,i){var n=i(43334);const r={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e,i)=>new n.Om(e,t.attributes,null,t.objectId,t.displayId,t.distance,t.vertexCount),getGeometry:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)};i.d(e,["T",0,r])},31464(t,e,i){i.d(e,{Cv:()=>d,Nk:()=>f,lK:()=>y});var n=i(4576),r=i(99917),s=i(60408),o=i(21325),l=i(28735);const h=[0,0];function a(t,e){let i=(0,o.K8)(t)?l.je:l.tD;if((0,s.fT)(e)){let t={x:0,y:0};return[t.x,t.y]=i(e.x,e.y,h),null!=e.z&&(t.z=e.z),null!=e.m&&(t.m=e.m),t}if((0,s.ZC)(e)){let t={xmin:0,ymin:0,xmax:0,ymax:0};return[t.xmin,t.ymin]=i(e.xmin,e.ymin,h),[t.xmax,t.ymax]=i(e.xmax,e.ymax,h),e.hasZ&&(t.zmin=e.zmin,t.zmax=e.zmax,t.hasZ=!0),e.hasM&&(t.mmin=e.mmin,t.mmax=e.mmax,t.hasM=!0),t}if((0,s.Bi)(e))return{rings:u(e.rings,i),hasM:e.hasM,hasZ:e.hasZ};if((0,s.Rg)(e))return{paths:u(e.paths,i),hasM:e.hasM,hasZ:e.hasZ};if((0,s.U9)(e))return{points:c(e.points,i),hasM:e.hasM,hasZ:e.hasZ};throw Error()}function u(t,e){return Array.from(t,t=>c(t,e))}function c(t,e){let i=[];for(let n of t){let t=e(n[0],n[1],[0,0]);i.push(t),n.length>2&&t.push(n[2]),n.length>3&&t.push(n[3])}return i}async function f(t,e){if(!t||!e)return;let i=Array.isArray(t)?t.map(t=>null==t.geometry?null:t.geometry.spatialReference).filter(n.Ru):[t];await(0,r.initializeProjection)(i.map(t=>({source:t,dest:e})))}function d(t,e,i,n){if(!t)return null;if(i||(i=e,e=t.spatialReference),!(0,o.fn)(e)||!(0,o.fn)(i)||(0,o.aI)(e,i))return t;if((0,l.y7)(e,i)){let e=a(i,t);return e.spatialReference=i,e}let[s]=(0,r.projectMany)([t],e,i,n);return s}const m=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,i,n){if(!t?.length||!e||!i||(0,o.aI)(e,i))return t;let r={geometries:t,inSpatialReference:e,outSpatialReference:i,options:n,resolve:Promise.withResolvers()};return this._jobs.push(r),this._timer??=setTimeout(this._process,10),r.resolve.promise}_process(){this._timer=null;let t=this._jobs.shift();if(!t)return;let e,{geometries:i,inSpatialReference:n,outSpatialReference:s,resolve:o,options:h}=t,u=i.filter(t=>null!=t);e=(0,l.y7)(n,s)&&null==h?.extendedParams?u.map(t=>a(s,t)):(0,r.projectMany)(u,n,s,h);let c=0,f=i.map(t=>null==t?null:e[c++]);o.resolve(f),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function y(t,e,i,n){return m.push(t,e,i,n)}},90708(t,e,i){i.d(e,{Ap:()=>A,B2:()=>p,DF:()=>b,Di:()=>Z,E2:()=>G,IE:()=>y,Nl:()=>E,PR:()=>T,Rk:()=>U,Ux:()=>j,Ye:()=>S,ZF:()=>N,aQ:()=>J,jH:()=>z,jQ:()=>D,kz:()=>X,oN:()=>F,q3:()=>Y,qN:()=>w,zv:()=>O});var n=i(49186),r=i(53966),s=i(97768),o=i(70328),l=i(19419),h=i(60408),a=i(43334),u=i(58512),c=i(92722),f=i(54339);const d=()=>r.A.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryMultiPatch:3,esriGeometryEnvelope:0};function y({scale:t,translate:e},i){return Math.round((i-e[0])/t[0])}function p({scale:t,translate:e},i){return Math.round((e[1]-i)/t[1])}function _({scale:t,translate:e},i){return Math.round((i-e[0])/t[0])}function g({scale:t,translate:e},i){return Math.round((i-e[1])/t[1])}function x({scale:t,translate:e},i,n){return i*t[n]+e[n]}function M(t,e,i){return e&&(t.hasZ=!0),i&&(t.hasM=!0),t}function v(t,e,i,n){if(e&&n&&t!==i)return(e,i,n,r)=>{n[r++]=e[i++],n[r++]=e[i++],t?i++:n[r++]=0,n[r++]=e[i++]??0};let r=+!!i+2+ +!!n,s=r-((!t&&i?1:0)+(!e&&n?1:0));return(t,e,i,n)=>{for(let o=0;o<r;++o)i[n++]=o<s?t[e++]??0:0}}function b(t,e,i){if(!t)return null;let{coords:n,hasZ:r,hasM:s}=t,[o,l]=n,h=r?n[2]:0,a=s?n[+!!r+2]:0;return{x:o,y:l,z:e?h:void 0,m:i?a:void 0}}function w(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{x:n,y:r,z:s,m:o}=t,l=[n,r];return e&&l.push(s??0),i&&l.push(o??0),new c.A([],l,e,i)}function I(t,e,i){if(null==t)return null;let{coords:n,stride:r,hasZ:s,hasM:o}=t,l=v(s,o,e,i),h=[];for(let t=0;t<n.length;t+=r){let e=[];l(n,t,e,0),h.push(e)}return M({points:h},e,i)}function T(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{points:n,hasZ:r,hasM:s}=t,o=new c.A([n.length],[],e,i),{coords:l,stride:a}=o,u=0,f=v(r??!1,s??!1,e,i);for(let t of n)f(t,0,l,u),u+=a;return o}function P(t,e,i){if(!t)return null;let{coords:n,lengths:r,stride:s,hasZ:o,hasM:l}=t,h=0,a=v(o,l,e,i),u=[];for(let t of r){let e=[];for(let i=0;i<t;i++){let t=[];a(n,h,t,0),h+=s,e.push(t)}u.push(e)}return M({paths:u},e,i)}function A(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{paths:n,hasZ:r,hasM:s}=t,o=v(r??!1,s??!1,e,i),l=new c.A([],[],e,i),{lengths:a,coords:u,stride:f}=l,d=0;for(let t of n){for(let e of t)o(e,0,u,d),d+=f;a.push(t.length)}return l}function B(t,e,i){if(!t)return null;let{coords:n,lengths:r,stride:s,hasZ:o,hasM:l}=t,h=0,a=v(o,l,e,i),u=[];for(let t of r){let e=[];for(let i=0;i<t;i++){let t=[];a(n,h,t,0),h+=s,e.push(t)}u.push(e)}return M({rings:u},e,i)}function S(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){let{rings:n,hasZ:r,hasM:s}=t,o=new c.A([],[],e,i),{lengths:l,coords:a,stride:u}=o,f=0,d=v(r??!1,s??!1,e,i);for(let t of n){for(let e of t)d(e,0,a,f),f+=u;l.push(t.length)}return o}const R=[],C=[];function G(t,e,i,n,r){R[0]=t;let[s]=Z(C,R,e,i,n,r);return $(R),$(C),s}function Z(t,e,i,r,s,o){if($(t),!i){for(let i of e){let e=(0,f.W)(i,o);t.push(new a.Om(null,i.attributes,null,e,void 0,i.distance,i.vertexCount))}return t}switch(i){case"esriGeometryPoint":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o,centroid:l}=s,u=(0,h.Pv)(e),c=(0,h.W0)(e);t.push(new a.Om(e?w(e,i&&u,n&&c):null,o,l?w(l,!1,!1):null,(0,f.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);case"esriGeometryMultipoint":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o}=s,l=(0,h.Pv)(e),u=(0,h.W0)(e);t.push(new a.Om(e?T(e,i&&l,n&&u):null,o,null,(0,f.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);case"esriGeometryPolyline":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o,centroid:l}=s,u=(0,h.Pv)(e),c=(0,h.W0)(e);t.push(new a.Om(e?A(e,i&&u,n&&c):null,o,l?w(l,!1,!1):null,(0,f.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);case"esriGeometryPolygon":case"esriGeometryMultiPatch":return function(t,e,i,n,r){for(let s of e){let{geometry:e,attributes:o,centroid:l}=s,u=(0,h.Pv)(e),c=(0,h.W0)(e);t.push(new a.Om(e?S(e,i&&u,n&&c):null,o,l?w(l,!1,!1):null,(0,f.W)(s,r),s.displayId,s.distance,s.vertexCount))}return t}(t,e,r,s,o);default:d().error("convertToFeatureSet:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${i}'`)),$(t)}return t}function F(t,e,i,n){C[0]=t,q(R,C,e,i,n);let r=R[0];return $(R),$(C),r}function j(t,e=(0,h.Pv)(t),i=(0,h.W0)(t)){return null==t?null:(0,h.fT)(t)?w(t,e,i):(0,h.Bi)(t)?S(t,e,i):(0,h.Rg)(t)?A(t,e,i):(0,h.U9)(t)?T(t,e,i):void d().error("convertFromGeometry:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${t}'`))}function O(t,e,i,r){if(null==t)return null;let s="coords"in t?t:t.geometry;if(null==s)return null;switch(e){case"esriGeometryPoint":return b(s,i,r);case"esriGeometryMultipoint":return I(s,i,r);case"esriGeometryPolyline":return P(s,i,r);case"esriGeometryPolygon":return B(s,i,r);default:return d().error("convertToGeometry:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${e}'`)),null}}function q(t,e,i,r,s){if($(t),null==i)return function(t,e){for(let i of e)t.push({attributes:i.attributes});return t}(t,e);switch(i){case"esriGeometryPoint":return function(t,e,i,n){for(let{geometry:r,attributes:s}of e)t.push({attributes:s,geometry:b(r,i,n)});return t}(t,e,r,s);case"esriGeometryMultipoint":return function(t,e,i,n){for(let{geometry:r,attributes:s}of e)t.push({geometry:r&&I(r,i,n),attributes:s});return t}(t,e,r,s);case"esriGeometryPolyline":return function(t,e,i,n){for(let{geometry:r,attributes:s}of e)t.push({geometry:r&&P(r,i,n),attributes:s});return t}(t,e,r,s);case"esriGeometryPolygon":return function(t,e,i,n){for(let{geometry:r,attributes:s,centroid:o}of e){let e=B(r,i,n),l=b(o,!1,!1);t.push(o?{geometry:e,attributes:s,centroid:l}:{geometry:e,attributes:s})}return t}(t,e,r,s);default:d().error("convertToFeatureSet:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${i}'`))}return t}function N(t){let{spatialReference:e,transform:i,fields:n,hasM:r,hasZ:s,features:o,geometryType:l,exceededTransferLimit:h,queryGeometry:a,queryGeometryType:u}=t,c={features:q([],o,l,s,r),fields:n,geometryType:l,spatialReference:e,queryGeometry:O(a,u,s,r)};return i&&(c.transform=i),h&&(c.exceededTransferLimit=h),r&&(c.hasM=r),s&&(c.hasZ=s),c}function Y(t,e){let i=new u.A,{hasM:n,hasZ:r,features:s,spatialReference:o,geometryType:l,exceededTransferLimit:h,transform:a,fields:c,globalIdFieldName:f}=t;return c&&(i.fields=c),i.geometryType=l??null,i.spatialReference=o??null,s&&Z(i.features,s,l,r,n,e),h&&(i.exceededTransferLimit=h),n&&(i.hasM=n),r&&(i.hasZ=r),a&&(i.transform=a),f&&(i.globalIdFieldName=f),i}function z(t,e){let{geometryType:i,features:n}=e;if(!t)return e;for(let e=0;e<n.length;e++){let r=n[e],s=r.weakClone();s.geometry=E(r.geometry,i,t),s.centroid=E(r.centroid,"esriGeometryPoint",t),n[e]=s}return e.transform=t,e}function E(t,e,i,n,r,s=!1){if(null==t||!t?.coords.length)return null;let o=m[e],{coords:l,lengths:h,stride:a,hasZ:u,hasM:f}=t;n??=u,r??=f;let d=new c.A([],[],n,r),x=d.stride,M=v(u,f,n,r),b=0,w=[0,0,0,0].slice(x),I=s?_:y,T=s?g:p;function P(){M(l,b,w,0),b+=a,w[0]=I(i,w[0]),w[1]=T(i,w[1])}if(t.isPoint)return P(),d.coords.push(...w),d;let A=0;for(let t of h){if(t<o)continue;let e=1;P(),d.coords.push(...w);let[i,n]=w;for(let r=1;r<t;r++){P();let[t,r]=w;(i!==t||n!==r)&&(s||(w[0]-=i,w[1]-=n),d.coords.push(...w),i=t,n=r,e++)}e>=o?(d.lengths.push(e),A=d.coords.length):$(d.coords,A)}return $(d.coords,A),d.coords.length?d:null}function X(t,e,i,n=t.hasZ,r=t.hasM){if(!t.coords.length)return null;let s=m[e],{coords:o,lengths:l,stride:h,hasZ:a,hasM:u}=t,f=new c.A([],[],n,r),d=f.stride,y=v(a,u,n,r);if(t.isPoint)return y(o,0,f.coords,0),f;let p=0,_=i*i;for(let t of l){if(t<s){p+=t*h;continue}let e=f.coords.length/d,i=p,n=p+(t-1)*h;y(o,i,f.coords,f.coords.length),k(f.coords,o,h,_,y,i,n),y(o,n,f.coords,f.coords.length);let r=f.coords.length/d-e;r>=s?f.lengths.push(r):$(f.coords,e*d),p+=t*h}return f.coords.length?f:null}function L(t,e,i,n){let r=t[e],s=t[e+1],o=t[i],l=t[i+1],h=t[n],a=t[n+1],u=o,c=l,f=h-u,d=a-c;if(0!==f||0!==d){let t=((r-u)*f+(s-c)*d)/(f*f+d*d);t>1?(u=h,c=a):t>0&&(u+=f*t,c+=d*t)}return f=r-u,d=s-c,f*f+d*d}function k(t,e,i,n,r,s,o){let l,h=n,a=0;for(let t=s+i;t<o;t+=i)l=L(e,t,s,o),l>h&&(a=t,h=l);h>n&&(a-s>i&&k(t,e,i,n,r,s,a),r(e,a,t,t.length),o-a>i&&k(t,e,i,n,r,a,o))}function D(t,e){if(!e?.coords?.length)return null;let i=1/0,n=1/0,r=-1/0,s=-1/0,{coords:h,stride:a}=e;for(let t=0;t<h.length;t+=a){let e=h[t],o=h[t+1];i=Math.min(i,e),r=Math.max(r,e),n=Math.min(n,o),s=Math.max(s,o)}return(0,o.is)(t)?(0,o.BI)(t,i,n,r,s):(0,l.fA)(i,n,r,s,t),t}function J(t,e){let{coords:i,lengths:n,stride:r,hasZ:o,hasM:l}=t;if(!i.length)return void(n.length=0);(0,s.Lw)(e);let{originPosition:h,scale:a,translate:u}=e,c=H;c.originPosition=h;let f=c.scale;f[0]=a[0]??1,f[1]=-(a[1]??1),f[2]=a[2]??1,f[3]=a[3]??1;let d=c.translate;if(d[0]=u[0]??0,d[1]=u[1]??0,d[2]=u[2]??0,d[3]=u[3]??0,l&&!o&&(f[2]=f[3],d[2]=d[3]),!n.length){for(let t=0;t<r;++t)i[t]=x(c,i[t],t);return void(n.length=0)}let m=0;for(let t=0;t<n.length;t++){let e=n[t];n[t]=e;for(let t=0;t<r;++t)i[m+t]=x(c,i[m+t],t);let s=i[m],o=i[m+1];m+=r;for(let t=1;t<e;t++,m+=r){s+=i[m]*f[0],o+=i[m+1]*f[1],i[m]=s,i[m+1]=o;for(let t=2;t<r;++t)i[m+t]=x(c,i[m+t],t)}}}function W(t,e,i,n){let r=0,s=t[n*e],o=t[n*(e+1)];for(let l=1;l<i;l++){let i=s+t[n*(e+l)],h=o+t[n*(e+l)+1],a=(i-s)*(h+o);s=i,o=h,r+=a}return.5*r}function U(t,e){let{coords:i,lengths:n}=t,r=0,s=0;for(let t=0;t<n.length;t++){let o=n[t];s+=W(i,r,o,e),r+=o}return Math.abs(s)}function $(t,e=0){t.length!==e&&(t.length=e)}const H={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},85113(t,e,i){i.d(e,{BM:()=>B,S_:()=>d,bd:()=>S,sO:()=>A,xD:()=>c});var n=i(67482),r=i(49186),s=i(21325),o=i(90708),l=i(43334),h=i(92722),a=i(30524);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(t){return u[t]}function*f(t){switch(t.type){case"Feature":yield t;break;case"FeatureCollection":for(let e of t.features)e&&(yield e);break;default:yield{type:"Feature",geometry:t,properties:null}}}function d(t){for(let e of f(t))if("GeometryCollection"===e.geometry?.type)return!0;return!1}function*m(t){let e=0;for(let i of f(t)){let t="GeometryCollection"===i.geometry?.type,n=[{geometry:i.geometry,depth:0}];for(;n.length>0;){let{geometry:s,depth:o}=n.pop();if("GeometryCollection"===s?.type){if(o>=1024)throw new r.A("geojson-layer:invalid-geometry","GeometryCollection nesting exceeds 1024 levels.");for(let t=s.geometries.length-1;t>=0;t--)n.push({geometry:s.geometries[t],depth:o+1})}else yield{feature:i,geometry:s,index:e,isCollection:t}}e++}}function*y(t){if(t)switch(t.type){case"Point":yield t.coordinates;break;case"LineString":case"MultiPoint":yield*t.coordinates;break;case"MultiLineString":case"Polygon":for(let e of t.coordinates)yield*e;break;case"MultiPolygon":for(let e of t.coordinates)for(let t of e)yield*t}}function p(t,e,i,n,s){if(!n)throw new r.A("geojson-layer:geometry-collection-schema","Recreate the layer to add the parent ID field required by GeometryCollections.");let o=e;for(let e in t){let n=s.get(e);void 0===n&&(n=(0,a.rS)(e)?.toLowerCase()===i,s.set(e,n)),n&&(o??=t[e]??void 0,delete t[e])}t[n]=null==o?null:String(o)}function _(t){for(let e of t)if(e.length>2)return!0;return!1}function g(t){let e=0;for(let i=0;i<t.length;i++){let n=t[i],r=t[(i+1)%t.length];e+=n[0]*r[1]-r[0]*n[1]}return e<=0}function x(t){let e=t[0],i=t[t.length-1];(e[0]!==i[0]||e[1]!==i[1]||e[2]!==i[2])&&t.push(e)}function M(t,e){let{coordinates:i,type:n}=t,r=e.hasZ??!1;switch(n){case"Point":{let t=r||3!==i.length?r&&2===i.length?[...i,0]:[...i]:i.slice(0,2);return new h.A([],t,r,!1)}case"LineString":return(0,o.Ap)({paths:[i],hasZ:!0},r,!1);case"MultiLineString":return(0,o.Ap)({paths:i,hasZ:!0},r,!1);case"MultiPoint":return(0,o.PR)({points:i,hasZ:!0},r,!1);case"Polygon":case"MultiPolygon":{let t=new h.A([],[],r,!1);for(let e of"Polygon"===n?[i]:i){v(t,e[0],r);for(let i=1;i<e.length;i++)b(t,e[i],r)}return t}}}function v(t,e,i){x(e),function(t){return!g(t)}(e)?I(t,e,i):w(t,e,i)}function b(t,e,i){x(e),function(t){return g(t)}(e)?I(t,e,i):w(t,e,i)}function w(t,e,i){for(let n of e)T(t,n,i);t.lengths.push(e.length)}function I(t,e,i){for(let n=e.length-1;n>=0;n--)T(t,e[n],i);t.lengths.push(e.length)}function T(t,[e,i,n],r){t.coords.push(e,i),r&&t.coords.push(n||0)}function P(t){switch(typeof t){case"string":return(0,n.C)(t)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function A(t,e=4326){if(!t)throw new r.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==t.type&&"FeatureCollection"!==t.type&&"GeometryCollection"!==t.type)throw new r.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:t});let{crs:i}=t;if(!i)return;let n="string"==typeof i?i:"name"===i.type?i.properties.name:"EPSG"===i.type?i.properties.code:null,o=(0,s.oT)({wkid:e})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${e})$`,"i");if(!n||!o.test(n))throw new r.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:i})}function B(t,e={}){let i,n=[],r=new Set,s=new Set,o=!1,l=null,h=!1,{geometryType:u=null}=e;for(let{feature:e,geometry:f}of m(t)){let{properties:t,id:d}=e;if((!f||(u||=c(f.type),c(f.type)===u))&&(o||=_(y(f)),h||(h=null!=d,h&&(i=typeof d,t&&(l=Object.keys(t).filter(e=>t[e]===d)))),t&&l&&h&&null!=d&&(l.length>1?l=l.filter(e=>t[e]===d):1===l.length&&(l=t[l[0]]===d?l:[])),t))for(let e in t){if(r.has(e))continue;let i=P(t[e]);if("unknown"===i){s.add(e);continue}s.delete(e),r.add(e);let o=(0,a.rS)(e);o&&n.push({name:o,alias:e,type:i})}}let f=(0,a.rS)(1===l?.length&&l[0]||null)??void 0;if(f)for(let t of n)if(t.name===f&&(0,a.WA)(t)){t.type="esriFieldTypeOID";break}return{fields:n,geometryType:u,hasZ:o,objectIdFieldName:f,objectIdFieldType:i,unknownFields:Array.from(s)}}function S(t,e){return Array.from(function*(t,e={}){let{geometryType:i,objectIdField:n,parentIdField:r,getObjectId:s}=e,o=(0,a.rS)(n)?.toLowerCase(),h=new Map;for(let{feature:a,geometry:u,index:f,isCollection:d}of t){let{properties:t,id:m}=a;if(u&&c(u.type)!==i)continue;let y=d?{...t}:t??{},_=s?.(a,f);n&&(d?(p(y,m,o,r,h),_=void 0):(_=y[n],null!=m&&null==_&&(y[n]=_=m))),yield new l.Om(u&&M(u,e),y,null,_)}}(m(t),e))}},21599(t,e,i){i.r(e),i.d(e,{default:()=>y});var n=i(56507),r=i(17676),s=i(19419),o=i(21325),l=i(6774),h=i(90708),a=i(92722),u=i(83221),c=i(31464),f=i(85113);const d=4096,m=[{geometryType:"esriGeometryPolygon",vectorTileGeometryType:3},{geometryType:"esriGeometryPolyline",vectorTileGeometryType:2},{geometryType:"esriGeometryPoint",vectorTileGeometryType:1},{geometryType:"esriGeometryMultipoint",vectorTileGeometryType:1}];class y{constructor(){this._buffer=128,this._featureIds=new Map,this._name="",this._stores=[],this._webMercatorStores=null,this._tolerance=.375}destroy(){for(let{store:t}of this._stores)t.clear();for(let{store:t}of this._webMercatorStores??[])t.clear();this._webMercatorStores=null,this._featureIds.clear(),this._stores.length=0}async initialize({definition:t,name:e,requestOptions:i},s={}){if(null==t.data)throw Error(`GeoJSON source '${e}' must define a data property.`);if(!0===t.lineMetrics)throw Error("GeoJSON lineMetrics are not supported.");if(t.promoteId&&t.generateId)throw Error("GeoJSON promoteId and generateId cannot be used together.");let o="string"==typeof t.data?(await(0,n.A)(t.data,{...i,responseType:"json",signal:s.signal})).data:t.data;(0,r.Te)(s),(0,f.sO)(o),this.destroy(),this._buffer=t.buffer??128,this._name=e,this._tolerance=t.tolerance??.375;let l=0;for(let{geometryType:e,vectorTileGeometryType:i}of m){let n=(0,f.bd)(o,{geometryType:e,hasZ:!1,getObjectId:(e,i)=>{let n=t.promoteId?e.properties?.[t.promoteId]:!0===t.generateId?i:e.id;return"number"==typeof n||"string"==typeof n?n:null}});if(0===n.length)continue;let r=new u.A({geometryType:e,hasM:!1,hasZ:!1}),s=[];for(let t of n){if(!t.geometry)continue;let e=t.objectId;t.objectId=l++,this._featureIds.set(t.objectId,e??null),s.push(t)}s.length>0&&(r.addMany(s),this._stores.push({geometryType:e,store:r,vectorTileGeometryType:i}))}return(0,r.Te)(s),{geometryTypes:["polygon","line","point"].filter(t=>this._stores.some(({vectorTileGeometryType:e})=>e===function(t){switch(t){case"polygon":return 3;case"line":return 2;case"point":return 1}}(t)))}}requestTile(t,e={}){(0,r.Te)(e);let i=this._getTileFeatures(t);return(0,r.Te)(e),{result:{layers:[{name:this._name,extent:d,features:i}]},transferList:[]}}_getStores(t){return(0,o.K8)(t)?(this._webMercatorStores||=this._stores.map(({geometryType:t,store:e,vectorTileGeometryType:i})=>{let n=new u.A({geometryType:t,hasM:!1,hasZ:!1});return e.forEach(e=>{let i=function(t,e){return t?(0,h.Ux)((0,c.Cv)((0,h.zv)(t,e,!1,!1),o.KK,o.ch))??null:null}(e.geometry,t);if(i){let t=e.weakClone();t.geometry=i,n.add(t)}}),{geometryType:t,store:n,vectorTileGeometryType:i}}),this._webMercatorStores):this._stores}_getTileFeatures({col:t,row:e,origin:i,tileSpan:n,spatialReference:r}){let l=i.x+t*n,h=i.y-e*n,{valid:a}=(0,o.Vp)(r),u=a[1]-a[0],c=this._getStores(r),f=n/d,m=this._buffer*f,y=this._tolerance*f,_=[];for(let t of[-u,0,u]){let e=(0,s.fA)(l-m-t,h-n-m,l+n+m-t,h+m),i={scale:[f,-f,1,1],translate:[l-t,h,0,0]};for(let{geometryType:t,store:n,vectorTileGeometryType:r}of c)n.forEachInBounds(e,e=>{let n=p(e,t,r,i,y,this._buffer);n&&_.push({attributes:e.attributes,geometry:n,id:this._featureIds.get(e.objectId),type:r})})}return _}}function p(t,e,i,n,r,s){if(!t.geometry)return null;let o=r>0?(0,h.kz)(t.geometry,e,r,!1,!1):t.geometry;return function(t,e,i){if(!t)return null;let n=new l.O3(0,0,0,8,i/8);if(n.setExtent(d),n.reset(e),1===e)for(let e=0;e<t.size;e++){let i=e*t.stride;n.moveTo(t.coords[i],t.coords[i+1])}else{let i=0;for(let r of t.lengths){n.moveTo(t.coords[i],t.coords[i+1]);for(let e=1;e<r;e++){let r=i+e*t.stride;n.lineTo(t.coords[r],t.coords[r+1])}3===e&&n.close(),i+=r*t.stride}}let r=n.result();if(!r)return null;let s=1===e?[r.length]:r.map(t=>t.length),o=[];for(let t of r)for(let e of t)o.push(e.x,e.y);return new a.A(s,o)}((0,h.Nl)(o,e,n,!1,!1,!0),i,s)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9512],{9741(e,t,r){r.r(t),r.d(t,{registerFunctions:()=>D});var n=r(92602),o=r(66131),a=r(47609),i=r(66395),s=r(85935),l=r(78878),p=r(80672),u=r(19334),c=r(21276),f=r(91075),d=r(99917),y=r(16930),g=r(28735),h=r(80812),m=r(56507),w=r(78888),A=r(60408),v=r(2272),S=r(65864),C=r(32198),b=r(25482),R=r(91429),G=r(21325);let M=class extends b.o{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){let e=this.geometries.map(e=>e.toJSON()),t=this.geometries[0],r={};return r.outSR=(0,G.YX)(this.outSpatialReference),r.inSR=(0,G.YX)(t.spatialReference),r.geometries=JSON.stringify({geometryType:(0,A.$B)(t),geometries:e}),this.transformation&&(r.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(r.transformForward=this.transformForward),r}};(0,C.Cg)([(0,R.MZ)()],M.prototype,"geometries",void 0),(0,C.Cg)([(0,R.MZ)({type:y.A,json:{read:{source:"outSR"}}})],M.prototype,"outSpatialReference",void 0),(0,C.Cg)([(0,R.MZ)()],M.prototype,"transformation",void 0),(0,C.Cg)([(0,R.MZ)()],M.prototype,"transformForward",void 0),M=(0,C.Cg)([(0,R.$K)("esri.rest.support.ProjectParameters")],M);const j=(0,w.dp)(M);var P=r(25927),O=r(42538),Z=r(40662),k=r(42095),N=r(23150),$=r(54218);let x=null;function _(e,t,r,n){if(null===e)return null;if((0,$.Kg)(e)||(0,$.Et)(e))return e;if((0,l.f)(e)||(0,l.f)(e))return e.toJSDate();if((0,l.q)(e))return e.toStorageFormat();if((0,l.r)(e))return e.toStorageString();if((0,l.l)(e)){let o={};for(let a of e.keys())o[a]=_(e.field(a),t,r,n),o[a]instanceof f.A&&n.push({get:()=>o[a],set:e=>{o[a]=e}});return o}if((0,$.cy)(e)){let o=e.map(e=>_(e,t,r,n));for(let e=0;e<o.length;e++)o[e]instanceof f.A&&n.push({get:()=>o[e],set:t=>{o[e]=t}});return o}return(0,l.d)(e)?e.spatialReference.isWGS84?e.asAccessorGeometry():e.spatialReference.isWebMercator&&t?(0,g.ci)(e.asAccessorGeometry()):e.asAccessorGeometry():void 0}function K(e,t){if(!e)return null;let r=Object.create(null);for(let n in e)r[n]=I(e[n],t);return i.A.createMutable(r)}function I(e,t){return null===e?null:Array.isArray(e)?e.map(e=>I(e,t)):e instanceof P.A?i.A.createMutable({__proto__:null,graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:K(e.properties,t)}):e instanceof Z.A?i.A.createMutable({__proto__:null,graphType:"object",properties:K(e.properties,t)}):e instanceof N.A?i.A.createMutable({__proto__:null,graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:K(e.properties,t)}):e instanceof k.A?i.A.createMutable({__proto__:null,graphType:"path",path:e.path?e.path.map(e=>I(e,t)):null}):e instanceof f.A?(0,u.e)(function(e,t){if(!e)return e;if(e.spatialReference.isWGS84&&t.spatialReference.isWebMercator)return(0,g.Gh)(e);if(e.spatialReference.equals(t.spatialReference))return e;throw new s.D$("WrongSpatialReference",null)}(e,t)):"string"==typeof e||"number"==typeof e?e:e instanceof Date?o.lY.dateJSAndZoneToArcadeDate(e,(0,l.S)(t)):null}function D(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(t,n){return e.standardFunctionAsync(t,n,(e,o,i)=>{if((0,l.E)(i,2,2,n),!(i[0]instanceof a.A))throw new s.D$("PortalRequired",n);let u=(0,l.w)(i[1]);return async function(e,t){let n=new h.default({portal:e,id:t});return await n.load(),null===x&&(x=await Promise.all([r.e(9407),r.e(3910),r.e(5128),r.e(3902),r.e(3318)]).then(()=>r(53902))),await x.fetchKnowledgeGraph(n.url)}((0,p.RI)(t,i[0]),u)})},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(t,o){return e.standardFunctionAsync(t,o,async(e,a,p)=>{(0,l.E)(p,2,4,o);let u=p[0];if(!(0,l.o)(u))throw new s.D$("InvalidParameter",o);let f=p[1];if(!(0,$.Kg)(f))throw new s.D$("InvalidParameter",o);null===x&&(x=await Promise.all([r.e(9407),r.e(3910),r.e(5128),r.e(3902),r.e(3318)]).then(()=>r(53902)));let g=null,h=(0,l.N)(p[2],null);if(!(h instanceof i.A||null===h))throw new s.D$("InvalidParameter",o);if(h){let e=[];g=_(h,!0,!1,e),e=e.filter(e=>!e.get().spatialReference.isWGS84),e.length>0&&await async function(e){let t=n.A.geometryServiceUrl??"";if(!t){(0,d.isLoaded)()||await(0,d.load)();for(let t of e){let e=t.get();(0,c.f)(e),t.set((0,d.project)(e,y.A.WGS84))}return}let r=e.map(e=>e.get()),o=new M({geometries:r,outSpatialReference:y.A.WGS84}),a=await async function(e,t,r){t=j(t);let n=(0,v.Dl)(e),o={...n.query,f:"json",...t.toJSON()},a=t.outSpatialReference,i=(0,A.$B)(t.geometries[0]),s=(0,v.jV)(o,r);return(0,m.A)(n.path+"/project",s).then(({data:{geometries:e}})=>function(e,t,r){let n=(0,S.xD)(t);return e.map(e=>{let t=n.fromJSON(e);return t.spatialReference=r,t})}(e,i,a))}(t,o);for(let t=0;t<a.length;t++)e[t].set(a[t])}(e)}let w=(0,l.N)(p[3],!1),C=new O.A({openCypherQuery:f,bindParameters:g,provenanceBehavior:w?"include":"exclude"});(u?.serviceDefinition?.currentVersion??11.3)>11.2&&(C.outputSpatialReference=t.spatialReference);let b=(await x.executeQueryStreaming(u,C)).resultRowsStream.getReader(),R=[];try{for(;;){let{done:e,value:r}=await b.read();if(e)break;if(Array.isArray(r))for(let e of r)R.push(I(e,t));else{let e=
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9512],{9741(e,t,r){r.r(t),r.d(t,{registerFunctions:()=>D});var n=r(92602),o=r(66131),a=r(47609),i=r(66395),s=r(85935),l=r(78878),p=r(80672),u=r(19334),c=r(21276),f=r(91075),d=r(99917),y=r(16930),g=r(28735),h=r(80812),m=r(56507),w=r(78888),A=r(60408),v=r(2272),S=r(65864),C=r(32198),b=r(25482),R=r(91429),G=r(21325);let M=class extends b.o{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){let e=this.geometries.map(e=>e.toJSON()),t=this.geometries[0],r={};return r.outSR=(0,G.YX)(this.outSpatialReference),r.inSR=(0,G.YX)(t.spatialReference),r.geometries=JSON.stringify({geometryType:(0,A.$B)(t),geometries:e}),this.transformation&&(r.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(r.transformForward=this.transformForward),r}};(0,C.Cg)([(0,R.MZ)()],M.prototype,"geometries",void 0),(0,C.Cg)([(0,R.MZ)({type:y.A,json:{read:{source:"outSR"}}})],M.prototype,"outSpatialReference",void 0),(0,C.Cg)([(0,R.MZ)()],M.prototype,"transformation",void 0),(0,C.Cg)([(0,R.MZ)()],M.prototype,"transformForward",void 0),M=(0,C.Cg)([(0,R.$K)("esri.rest.support.ProjectParameters")],M);const j=(0,w.dp)(M);var P=r(25927),O=r(42538),Z=r(40662),k=r(42095),N=r(23150),$=r(54218);let x=null;function _(e,t,r,n){if(null===e)return null;if((0,$.Kg)(e)||(0,$.Et)(e))return e;if((0,l.f)(e)||(0,l.f)(e))return e.toJSDate();if((0,l.q)(e))return e.toStorageFormat();if((0,l.r)(e))return e.toStorageString();if((0,l.l)(e)){let o={};for(let a of e.keys())o[a]=_(e.field(a),t,r,n),o[a]instanceof f.A&&n.push({get:()=>o[a],set:e=>{o[a]=e}});return o}if((0,$.cy)(e)){let o=e.map(e=>_(e,t,r,n));for(let e=0;e<o.length;e++)o[e]instanceof f.A&&n.push({get:()=>o[e],set:t=>{o[e]=t}});return o}return(0,l.d)(e)?e.spatialReference.isWGS84?e.asAccessorGeometry():e.spatialReference.isWebMercator&&t?(0,g.ci)(e.asAccessorGeometry()):e.asAccessorGeometry():void 0}function K(e,t){if(!e)return null;let r=Object.create(null);for(let n in e)r[n]=I(e[n],t);return i.A.createMutable(r)}function I(e,t){return null===e?null:Array.isArray(e)?e.map(e=>I(e,t)):e instanceof P.A?i.A.createMutable({__proto__:null,graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:K(e.properties,t)}):e instanceof Z.A?i.A.createMutable({__proto__:null,graphType:"object",properties:K(e.properties,t)}):e instanceof N.A?i.A.createMutable({__proto__:null,graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:K(e.properties,t)}):e instanceof k.A?i.A.createMutable({__proto__:null,graphType:"path",path:e.path?e.path.map(e=>I(e,t)):null}):e instanceof f.A?(0,u.e)(function(e,t){if(!e)return e;if(e.spatialReference.isWGS84&&t.spatialReference.isWebMercator)return(0,g.Gh)(e);if(e.spatialReference.equals(t.spatialReference))return e;throw new s.D$("WrongSpatialReference",null)}(e,t)):"string"==typeof e||"number"==typeof e?e:e instanceof Date?o.lY.dateJSAndZoneToArcadeDate(e,(0,l.S)(t)):null}function D(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(t,n){return e.standardFunctionAsync(t,n,(e,o,i)=>{if((0,l.E)(i,2,2,n),!(i[0]instanceof a.A))throw new s.D$("PortalRequired",n);let u=(0,l.w)(i[1]);return async function(e,t){let n=new h.default({portal:e,id:t});return await n.load(),null===x&&(x=await Promise.all([r.e(9407),r.e(3910),r.e(5128),r.e(3902),r.e(3318)]).then(()=>r(53902))),await x.fetchKnowledgeGraph(n.url)}((0,p.RI)(t,i[0]),u)})},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(t,o){return e.standardFunctionAsync(t,o,async(e,a,p)=>{(0,l.E)(p,2,4,o);let u=p[0];if(!(0,l.o)(u))throw new s.D$("InvalidParameter",o);let f=p[1];if(!(0,$.Kg)(f))throw new s.D$("InvalidParameter",o);null===x&&(x=await Promise.all([r.e(9407),r.e(3910),r.e(5128),r.e(3902),r.e(3318)]).then(()=>r(53902)));let g=null,h=(0,l.N)(p[2],null);if(!(h instanceof i.A||null===h))throw new s.D$("InvalidParameter",o);if(h){let e=[];g=_(h,!0,!1,e),e=e.filter(e=>!e.get().spatialReference.isWGS84),e.length>0&&await async function(e){let t=n.A.geometryServiceUrl??"";if(!t){(0,d.isLoaded)()||await(0,d.load)();for(let t of e){let e=t.get();(0,c.f)(e),t.set((0,d.project)(e,y.A.WGS84))}return}let r=e.map(e=>e.get()),o=new M({geometries:r,outSpatialReference:y.A.WGS84}),a=await async function(e,t,r){t=j(t);let n=(0,v.Dl)(e),o={...n.query,f:"json",...t.toJSON()},a=t.outSpatialReference,i=(0,A.$B)(t.geometries[0]),s=(0,v.jV)(o,r);return(0,m.A)(n.path+"/project",s).then(({data:{geometries:e}})=>function(e,t,r){let n=(0,S.xD)(t);return e.map(e=>{let t=n.fromJSON(e);return t.spatialReference=r,t})}(e,i,a))}(t,o);for(let t=0;t<a.length;t++)e[t].set(a[t])}(e)}let w=(0,l.N)(p[3],!1),C=new O.A({openCypherQuery:f,bindParameters:g,provenanceBehavior:w?"include":"exclude"});(u?.serviceDefinition?.currentVersion??11.3)>11.2&&(C.outputSpatialReference=t.spatialReference);let b=(await x.executeQueryStreaming(u,C)).resultRowsStream.getReader(),R=[];try{for(;;){let{done:e,value:r}=await b.read();if(e)break;if(Array.isArray(r))for(let e of r)R.push(I(e,t));else{let e=Array.from(r,e=>I(r[e],t));R.push(e)}}}catch(e){throw e}return R})},e.signatures.push({name:"querygraph",min:2,max:4}))}},69540(e,t,r){var n=r(32198),o=r(56372),a=(r(44208),r(4718)),i=(r(53966),r(97768)),s=r(88620),l=r(64108);const p=Symbol("ClonableMixin"),u=e=>{var t;let r=e,o=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=p}clone(e){let t=(0,s.oY)(this);(0,i.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,n=t.store,o={},l=new Map;for(let t in r){let i=r[t],s=n?.originOf(t),p=i.clonable;if(i.readOnly||!1===p||7!==s&&0!==s&&5!==s&&4!==s)continue;let u=this[t],c=null;if("function"==typeof p)c=p(u,e);else if("reference"===p)c=u;else if(c=(0,a.TU)(u,e),null!=u&&null==c)continue;0===s?l.set(t,c):o[t]=c}let p=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){let e=(0,s.oY)(p)?.store;if(e)for(let[t,r]of l)e.set(t,r,0)}return p}};return o=(0,n.Cg)([(0,l.$)("esri.core.Clonable")],o),o},c=u(o.A);r.d(t,["OU",0,u,"Pw",0,c])},25927(e,t,r){r.d(t,{A:()=>s});var n=r(32198),o=r(91429),a=r(86738),i=r(54238);let s=class extends i.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],s.prototype,"layoutGeometry",void 0),s=(0,n.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.Entity")],s)},54238(e,t,r){r.d(t,{A:()=>i});var n=r(32198),o=r(91429),a=r(77901);let i=class extends a.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],i.prototype,"typeName",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],i.prototype,"id",void 0),i=(0,n.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.GraphNamedObject")],i)},77901(e,t,r){r.d(t,{A:()=>i});var n=r(32198),o=r(25482),a=r(91429);let i=class extends o.o{constructor(e){super(e),this.properties={}}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],i.prototype,"properties",void 0),i=(0,n.Cg)([(0,a.$K)("esri.rest.knowledgeGraph.GraphObject")],i)},42538(e,t,r){r.d(t,{A:()=>l});var n=r(32198),o=r(91429),a=r(16930),i=r(56372);let s=class extends i.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n.Cg)([(0,o.MZ)()],s.prototype,"openCypherQuery",void 0),s=(0,n.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.GraphQuery")],s);let l=class extends s{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,n.Cg)([(0,o.MZ)()],l.prototype,"bindParameters",void 0),(0,n.Cg)([(0,o.MZ)()],l.prototype,"bindGeometryQuantizationParameters",void 0),(0,n.Cg)([(0,o.MZ)()],l.prototype,"outputQuantizationParameters",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A})],l.prototype,"outputSpatialReference",void 0),(0,n.Cg)([(0,o.MZ)()],l.prototype,"provenanceBehavior",void 0),l=(0,n.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.GraphQueryStreaming")],l)},40662(e,t,r){r.d(t,{A:()=>l});var n=r(32198),o=r(4718),a=r(91429),i=r(77901),s=r(43937);let l=class extends i.A{constructor(e){super(e)}writeProperties(e,t,r,n){t[r]=p(e,n)}};function p(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON(t):Array.isArray(e)?e.map(e=>p(e,t)):(0,o.Qd)(e)?Object.fromEntries(Object.entries(e).map(([e,r])=>[e,p(r,t)])):e}(0,n.Cg)([(0,s.K)("properties")],l.prototype,"writeProperties",null),l=(0,n.Cg)([(0,a.$K)("esri.rest.knowledgeGraph.ObjectValue")],l)},42095(e,t,r){r.d(t,{A:()=>s});var n=r(32198),o=r(25482),a=r(91429),i=r(77901);let s=class extends o.o{constructor(e){super(e),this.path=[]}};(0,n.Cg)([(0,a.MZ)({type:[i.A],json:{write:!0}})],s.prototype,"path",void 0),s=(0,n.Cg)([(0,a.$K)("esri.rest.knowledgeGraph.Path")],s)},23150(e,t,r){r.d(t,{A:()=>s});var n=r(32198),o=r(91429),a=r(82799),i=r(54238);let s=class extends i.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"originId",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"destinationId",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],s.prototype,"layoutGeometry",void 0),s=(0,n.Cg)([(0,o.$K)("esri.rest.knowledgeGraph.Relationship")],s)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[521],{20521(e,t,i){i.r(t),i.d(t,{default:()=>Ae});var n=i(32198),r=i(40124),a=i(69540),s=i(49186),o=i(25728),l=i(17676),u=i(36708),p=i(91429),d=i(41910),m=i(60950),c=i(89808),g=i(99959);const f=Symbol("isWCSGraphicOrigin");var h;class v extends g.A{get[(h=f,m.ym)](){return this.layer}get[c.Q](){return this.layer}get[d.e7](){return this.layer}constructor(e){super(),this[h]=!0,this.type="wcs",this.layer=e}get id(){return this.layer.id}}var y=i(4146),b=i(63074),w=i(69208),x=i(34287),C=i(8303),I=i(72545),S=i(54310),D=i(25036),A=i(82935),T=i(82806),L=i(53966),M=i(5443),V=i(38458),N=i(56507),R=i(330);function P(e){return e.endsWith("?")?e.slice(0,-1):e}function $(e){return e.filter(({coverageSubType:e})=>null==e||""===e||/^rectified(grid|dataset)/i.test(e))}function E(e){let t={};for(let i=0;i<e.childNodes.length;i++){let n=e.childNodes[i];if(1!==n.nodeType)continue;let r=(0,R.vv)(n).toLowerCase();switch(r){case"title":case"abstract":t[r]=(0,R.mX)(n);break;case"identifier":t.id=(0,R.mX)(n);break;case"wgs84boundingbox":{let e=(0,R.pN)(n,"LowerCorner"),i=(0,R.pN)(n,"UpperCorner");t.lonLatEnvelope=new M.A({xmin:e[0],ymin:e[1],xmax:i[0],ymax:i[1],spatialReference:{wkid:4326}})}break;case"coveragesummary":t.coverageSummaries=t.coverageSummaries||[],t.coverageSummaries.push(E(n))}}return t}function O(e,t){if(e.coverageSummaries)for(let i=0;i<e.coverageSummaries.length;i++)e.coverageSummaries[i].abstract=e.coverageSummaries[i].abstract||e.abstract,e.coverageSummaries[i].lonLatEnvelope=e.coverageSummaries[i].lonLatEnvelope||e.lonLatEnvelope,e.coverageSummaries[i].title=e.coverageSummaries[i].title||e.title,O(e.coverageSummaries[i],t);null!=e.id&&t.push(e)}function X(e){let t=(0,R.V6)(e.querySelector("Operation[name=GetCapabilities]"),"Get")?.getAttribute("xlink:href")||"",i=(0,R.V6)(e.querySelector("Operation[name=DescribeCoverage]"),"Get")?.getAttribute("xlink:href")||"",n=(0,R.V6)(e.querySelector("Operation[name=GetCoverage]"),"Get")?.getAttribute("xlink:href")||"";return{getCapabilities:P(t),describeCoverage:P(i),getCoverage:P(n)}}function k(e,t=null){let i=null;i="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e;let n=i.documentElement.getAttribute("version");"1.0"===n?n="1.0.0":"1.1"===n&&(n="1.1.0");let r,a=n||t||"1.0.0",o=a.slice(0,3);if("2.0"===o)r=function(e){let t=(0,R.V6)(e,"ServiceIdentification"),i=(0,R.mX)(t,"Title"),n=(0,R.Dy)(t,"ServiceTypeVersion"),r=(0,R.Dy)(t,"Profile"),a=X((0,R.V6)(e,"OperationsMetadata")),s=(0,R.IC)(e,"Contents/CoverageSummary"),o=[];for(let e=0;e<s.length;e++){let t,i=s[e],n=(0,R.mX)(i,"CoverageId"),r=(0,R.V6)(i,"WGS84BoundingBox");if(r){let e=(0,R.pN)(r,"LowerCorner"),i=(0,R.pN)(r,"UpperCorner");t=new M.A({xmin:e[0],ymin:e[1],xmax:i[0],ymax:i[1],spatialReference:{wkid:4326}})}let a=(0,R.mX)(i,"CoverageSubtype")||"RectifiedGridCoverage";o.push({id:n,lonLatEnvelope:t,coverageSubType:a})}let l=(0,R.V6)(e,"ServiceMetadata");return{name:i,supportedVersions:n,supportedFormats:(0,R.Dy)(l,"formatSupported"),supportedInterpolations:(0,R.Dy)(l,"interpolationSupported").concat((0,R.Dy)(l,"InterpolationSupported")),onlineResources:a,profiles:r,coverages:o,gridCoverages:$(o),version:"2.0.1"}}(i);else if("1.1"===o)r=function(e){let t=(0,R.mX)(e,"ServiceIdentification/Title"),i=(0,R.Dy)(e,"ServiceIdentification/ServiceTypeVersion"),n=X((0,R.V6)(e,"OperationsMetadata")),r=[],a=(0,R.V6)(e,"Contents");for(let e=0;e<a.childNodes.length;e++){let t=a.childNodes[e];1===t.nodeType&&(0,R.g7)(t,"CoverageSummary")&&O(E(t),r)}let s=(0,R.Dy)(a,"SupportedFormat");return{name:t,onlineResources:n,coverages:r,gridCoverages:$(r),supportedVersions:i,supportedFormats:s,version:"1.1.0"}}(i);else{if("1.0"!==o)throw new s.A("wcsraster:parsecapabilities","the capabilities version is not supported");r=function(e){let t=(0,R.mX)(e,"Service/name"),i=(0,R.V6)(e,"Capability"),n=(0,R.V6)(i,"GetCapabilities/Get/OnlineResource")?.getAttribute("xlink:href")??"",r=(0,R.V6)(i,"DescribeCoverage/Get/OnlineResource")?.getAttribute("xlink:href")??"",a=(0,R.V6)(i,"GetCoverage/Get/OnlineResource")?.getAttribute("xlink:href")??"",s={getCapabilities:P(n),describeCoverage:P(r),getCoverage:P(a)},o=(0,R.IC)(e,"CoverageOfferingBrief"),l=[];for(let e=0;e<o.length;e++){let t=o[e],i=(0,R.mX)(t,"name"),n=(0,R.IC)(t,"pos"),r=(0,R.pN)(n[0]),a=(0,R.pN)(n[1]),s=new M.A({xmin:r[0],ymin:r[1],xmax:a[0],ymax:a[1],spatialReference:{wkid:4326}});l.push({id:i,lonLatEnvelope:s})}return{name:t,onlineResources:s,coverages:l,gridCoverages:$(l),supportedVersions:["1.0.0"],version:"1.0.0"}}(i)}return r.version=a,r}var F=i(39829),G=i(4366),W=i(87186);function _(e){e.variables.forEach(e=>e.dimensions.forEach(e=>e.values??=(0,G.Xg)(e)))}function j(e){return{requestResponseCRSs:(0,R.Dy)(e,"requestResponseCRSs").map(e=>e.split(":",2)[1]),nativeCRSs:(0,R.Dy)(e,"nativeCRSs").map(e=>e.split(":",2)[1])}}function B(e,t){let i=(0,R.Dy)(e,"1.0.0"===t?"interpolationMethod":"InterpolationMethod"),n="1.0.0"===t?e.getAttribute("default"):(0,R.mX)(e,"InterpolationMethods/Default");return null==n?i:[n].concat(i.filter(e=>e.toLowerCase()!==n.toLowerCase()))}function Z(e){return null==e?["nearest"]:e.map(e=>{let t=e.toLowerCase();return t.includes("nearest")?"nearest":t.includes("linear")?"bilinear":t.includes("cubic")?"cubic":null}).filter(e=>!!e)}function q(e){let t=(0,R.IC)(e,"pos"),i=(0,R.pN)(t[0]),n=(0,R.pN)(t[1]);return new M.A({xmin:i[0],ymin:i[1],xmax:n[0],ymax:n[1],spatialReference:{wkid:4326}})}function U(e,t){let i=(0,R.Dy)(e,t);return i?.length&&""!==i[0]&&!isNaN(Number(i[0]))?i.map(e=>Number(e)):null}function H(e){let t=(0,R.pN)(e,"MinimumValue"),i=(0,R.pN)(e,"MaximumValue");return t.length&&i.length?t.map((e,t)=>({min:e,max:i[t],avg:-1,stddev:-1})):null}function z(e){return null==e?null:e.every(t=>t===e[0])?e[0]:e}function Y(e){let t=[],i=(0,R.IC)(e,"RangeSet"),n=[];for(let e=0;e<i.length;e++){let r=(0,R.mX)(i[e],"name"),a=(0,R.mX)(i[e],"label"),s=[],o=U(i[e],"nullValues/singleValue"),l=(0,R.IC)(i[e],"AxisDescription");for(let e=0;e<l.length;e++){let t=(0,R.mX)(l[e],"name"),i=(0,R.mX)(l[e],"label"),r=(0,R.Dy)(l[e],"singleValue");if(0===r.length){let t=(0,R.mX)(l[e],"min"),i=(0,R.mX)(l[e],"max"),n=Number((0,R.mX)(l[e],"res"))||1;if(null!==t&&null!==i)for(let e=parseInt(t,10);e<=parseInt(i,10);e+=n)r.push(e.toString())}"band"===t.toLowerCase()&&(n=r),s.push({name:t,label:i,values:r})}t.push({name:r,label:a,nullValues:o,axis:s})}return{rangeSet:t,bandNames:n}}function K(e=null){if(!e)return{resolution:null,units:null};let t,i,n,r=e.toUpperCase(),a=["Years","Months","Days","Hours","Minutes","Seconds"];return r.includes("PT")?(r=r.slice(2),n=["H","M","S"].findIndex(e=>r.includes(e)),t=a[3+n],i=parseFloat(r.slice(0,-1))):(r=r.slice(1),n=["Y","M","D"].findIndex(e=>r.includes(e)),n>-1&&(t=a[n]),i=parseFloat(r.slice(0,-1))),{resolution:i,units:t}}function Q(e){let t=(0,R.IC)(e,"timeposition");if(t.length>0){let e=[];for(let i=0;i<t.length;i++)e.push(new Date((0,R.mX)(t[i])));return{begin:e[0],end:e[e.length-1],values:e}}let i=(0,R.V6)(e,"timePeriod")||(0,R.V6)(e,"TimePeriod");return i?{begin:new Date((0,R.mX)(i,"beginPosition")||(0,R.mX)(i,"BeginPosition")),end:new Date((0,R.mX)(i,"endPosition")||(0,R.mX)(i,"EndPosition")),...K((0,R.mX)(i,"timeResolution")||(0,R.mX)(i,"TimeResolution"))}:null}function J(e){let t=(0,R.V6)(e,"spatialDomain"),i=(0,R.V6)(t,"Envelope")||(0,R.V6)(t,"EnvelopeWithTimePeriod"),n=i.getAttribute("srsName").split(":"),r=n[n.length-1],a=(0,R.IC)(i,"pos"),s=(0,R.pN)(a[0]),o=(0,R.pN)(a[1]),l=parseInt(r,10),u=isNaN(l)?null:{wkid:l},p=new M.A({xmin:s[0],ymin:s[1],xmax:o[0],ymax:o[1],spatialReference:u}),d=(0,R.V6)(t,"RectifiedGrid"),m=(0,R.mX)(d,"low").split(" "),c=(0,R.mX)(d,"high").split(" "),g=parseInt(c[0],10)-parseInt(m[0],10)+1,f=parseInt(c[1],10)-parseInt(m[1],10)+1,h=(0,R.pN)(t,"origin/pos"),v=(0,R.IC)(t,"offsetVector"),y={envelope:p,columns:g,rows:f,offset:{x:parseFloat((0,R.mX)(v[0]).split(" ",1)[0]),y:parseFloat((0,R.mX)(v[1]).split(" ",2)[1])},origin:{x:h[0],y:h[1]}},b=(0,R.V6)(e,"temporalDomain")||(0,R.V6)(e,"TemporalDomain");return{spatialDomain:y,temporalDomain:b?Q(b):null}}function ee(e,t){let i,n=[],r=(0,R.IC)(e,"Field"),a=[];for(let e=0;e<r.length;e++){let s=(0,R.mX)(r[e],"Identifier"),o=(0,R.mX)(r[e],"Description"),l=(0,R.mX)(r[e],"Definition"),u=(0,R.mX)(r[e],"Abstract"),p=(0,R.mX)(r[e],"Title"),d=U(r[e],"NullValue"),m=(0,R.V6)(r[e],"AllowedValues"),c=m?H(m):null,g=B(r[e],"1.1.0"),f=[],h=(0,R.IC)(r[e],"Axis");for(let e=0;e<h.length;e++){let n=h[e].getAttribute("identifier"),r=(0,R.mX)(h[e],"UOM"),s=(0,R.mX)(h[e],"DataType"),o=(0,R.Dy)(h[e],"Key");(!t||n.toLowerCase().includes("band"))&&(a=o,i=d),f.push({identifier:n,uom:r,dataType:s,values:o,bandNoDataValues:i})}n.push({identifier:s,description:o,definition:l,abstract:u,title:p,supportedInterpolations:g,axis:f,nullValues:d,statistics:c})}return{rangeSet:n,bandNames:a,bandNoDataValues:i,statistics:n[0].statistics}}function te(e){let t,i,n,r,a=(0,R.V6)(e,"SpatialDomain"),s=(0,R.V6)(a,"GridCRS"),o=(0,R.mX)(s,"GridBaseCRS"),l=(0,R.mX)(s,"GridOrigin")?.split(" ").map(e=>parseFloat(e))??[0,0],u=(0,R.pN)(s,"GridOffsets"),p=(0,R.IC)(a,"BoundingBox");for(let e=0;e<p.length;e++){let a=p[e].getAttribute("crs")?.toLowerCase();if(null!=a)if(a.includes("imagecrs")){let n=(0,R.pN)(p[e],"LowerCorner"),r=(0,R.pN)(p[e],"UpperCorner");t=r[0]-n[0]+1,i=r[1]-n[1]+1}else if(a.indexOf("epsg")>0){let t=a.split(":");n=parseInt(t[t.length-1],10);let i=(0,R.pN)(p[e],"LowerCorner"),s=(0,R.pN)(p[e],"UpperCorner");r=new M.A({xmin:i[0],ymin:i[1],xmax:s[0],ymax:s[1],spatialReference:{wkid:n}})}}let d=t>i,m=r.xmax-r.xmin>r.ymax-r.ymin,c=!1;(0,V.m)(n)&&(d===m?c=!1:(c=!0,r=new M.A({xmin:r.ymin,ymin:r.xmin,xmax:r.ymax,ymax:r.xmax,spatialReference:{wkid:n}})));let g={columns:t,rows:i,origin:{x:l[0],y:l[1]},offset:{x:u[0],y:u[u.length-1]},gridBaseCRS:o,envelope:r,useEPSGAxis:c},f=(0,R.V6)(e,"temporalDomain")||(0,R.V6)(e,"TemporalDomain");return{spatialDomain:g,temporalDomain:f?Q(f):null}}function ie(e){let t,i=(0,R.V6)(e,"Envelope")||(0,R.V6)(e,"EnvelopeWithTimePeriod"),n=i.getAttribute("srsName"),r=n.slice(n.lastIndexOf("/")+1),a=i.getAttribute("axisLabels").split(" ").map(e=>e.trim()).filter(e=>""!==e.trim()),s=(0,R.pN)(i,"lowerCorner"),o=(0,R.pN)(i,"upperCorner"),l=!["y","lat","latitude","north","nor","n","b"].includes(a[0].toLowerCase()),u=parseInt(r,10),p=isNaN(u)?null:{wkid:u};t=l?new M.A({xmin:s[0],ymin:s[1],xmax:o[0],ymax:o[1],spatialReference:p}):new M.A({xmin:s[1],ymin:s[0],xmax:o[1],ymax:o[0],spatialReference:p});let d,m,c={mins:s,maxs:o},g=i.getAttribute("uomLabels").trim().split(" ");if((0,R.g7)(i,"EnvelopeWithTimePeriod")){d=new Date((0,R.mX)(e,"beginPosition")||(0,R.mX)(e,"BeginPosition")),m=new Date((0,R.mX)(e,"endPosition")||(0,R.mX)(e,"EndPosition"));let t=g?.findIndex(e=>"oledatetime"===e?.toLowerCase());t>-1&&(g[t]="ISO8601")}return{envelope:t,axisLabels:a,uomLabels:g.length?g:null,envelopeAllDims:c,beginPosition:d,endPosition:m,isEastFirst:l}}function ne(e,t){let i,n=[],r=(0,R.IC)(e,"DataRecord"),a=[],s=[];for(let e=0;e<r.length;e++){let o=(0,R.IC)(r[e],"field"),l=[];for(let e=0;e<o.length;e++){let n=o[e].getAttribute("name"),r=(0,R.mX)(o[e],"description")||"",u=(0,R.V6)(o[e],"uom")?.getAttribute("code")||"",p=(0,R.pN)(o[e],"interval"),d=U(o[e],"nilValue")?.[0];(!t||n.toLowerCase().includes("band"))&&(a.push(n),p?.length&&(i||=[],i.push({min:p[0],max:p[1],avg:-1,stddev:-1})),s.push(d)),l.push({name:n,description:r,uom:u,allowedValues:p,nilValue:d})}n.push(l)}return s.some(e=>null!=e)||(s=null),{rangeType:n,bandNames:a,bandStats:i,bandNoDataValues:s}}function re(e){let t=1,i="";return Math.abs(e-1/24)<1/24*.01?i="Hours":Math.abs(e-1)<.01?i="Days":e<1?(t=Math.round(24*e),i="Hours"):e>27.99&&e<31.01||Math.round(e/30)<12?i="Months":e>364.99&&e<366.01&&(i="Years"),{interval:t,intervalUnit:i}}function ae(e,t){let i=(0,R.V6)(e,"RectifiedGrid"),n=(0,R.pN)(i,"low"),r=(0,R.pN)(i,"high"),a=[];for(let e=0;e<n.length;e++)a.push(r[e]-n[e]+1);let s=(0,R.mX)(i,"axisLabels").split(" "),o=(0,R.pN)(i,"origin/pos"),l=(0,R.IC)(i,"offsetVector"),u=[];for(let e=0;e<l.length;e++){let t=(0,R.pN)(l[e]),i=t.findIndex(e=>0!==e);u[i]=t[i]}let p,d,m,c=!1;return t?.length&&s?.length&&(c=[...t].sort((e,t)=>e<t?-1:1).join(",")===[...s].sort((e,t)=>e<t?-1:1).join(",")),["y","lat","latitude","north","nor","n","b"].includes((c?s:t)[0].toLowerCase())?(p=a[1],d=a[0],m={y:Math.abs(u[0]),x:Math.abs(u[1])}):(p=a[0],d=a[1],m={x:Math.abs(u[0]),y:Math.abs(u[1])}),{columns:p,rows:d,origin:o,offset:u,resolution:m,gridSamples:a,axisLabels:s,hasSameAxisLabelsAsBoundedBy:c}}function se(e){let t=(0,R.V6)(e,"EarthObservation");if(!t)return null;let i=(0,R.V6)(t,"phenomenonTime"),n=i?Q(i):null,r=(0,R.V6)(t,"phenomenonTime"),a=r?Q(r):null,s=(0,R.mX)(t,"featureOfInterest/Footprint/multiExtentOf/MultiSurface/surfaceMembers/Polygon/exterior/LinearRing/posList"),o=null;if(s){let e=s.split(" ").map(e=>e.trim()).filter(e=>null!=e&&""!==e).map(Number);if(e.length){let t=[];for(let i=0;i<e.length/2;i+=2)t.push(e[i],e[i+1]);o=new F.A({rings:[[t]]})}}return{observation:{phenomenonTime:n,resultTime:a,footprint:o,identifier:(0,R.mX)(e,"metaDataProperty/EarthObservationMetaData/identifier"),acquisitionType:(0,R.mX)(e,"metaDataProperty/EarthObservationMetaData/acquisitionType"),status:(0,R.mX)(e,"metaDataProperty/EarthObservationMetaData/status")}}}async function oe(e,t){let{coverageIds:i,version:n,customParameters:r,signal:a}=t,o=n.slice(0,3),u={service:"WCS",request:"DescribeCoverage",version:n,["1.0"===o?"coverage":"1.1"===o?"identifiers":"coverageId"]:i.join(","),...r};try{let{data:t}=await(0,N.A)(e,{query:u,responseType:"xml",signal:a});return function(e,t){let i=null;if(i="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e,"1.0.0"===t)return(0,R.IC)(i,"CoverageOffering").map(e=>function(e){let t,i={version:"1.0"},n=[];for(let r=0;r<e.childNodes.length;r++){let a=e.childNodes[r];if(1===a.nodeType)if((0,R.g7)(a,"description"))i.description=(0,R.mX)(a);else if((0,R.g7)(a,"name"))i.name=(0,R.mX)(a);else if((0,R.g7)(a,"label"))i.label=(0,R.mX)(a);else if((0,R.g7)(a,"supportedFormats"))i.supportedFormats=(0,R.Dy)(a,"formats");else if((0,R.g7)(a,"supportedCRSs"))i.supportedCRSs=j(a);else if((0,R.g7)(a,"supportedInterpolations"))i.supportedInterpolations=B(a,"1.0.0");else if((0,R.g7)(a,"lonLatEnvelope"))i.lonLatEnvelope=q(a);else if((0,R.g7)(a,"rangeSet")){let e=Y(a);i.rangeSet=e.rangeSet,n=e.bandNames;let r=e.rangeSet[0].nullValues;r?.length&&(t=z(r))}else(0,R.g7)(a,"domainSet")&&(i.domainSet=J(a))}let r=Z(i.supportedInterpolations),{name:a,description:s,label:o,lonLatEnvelope:l,supportedFormats:u}=i,{spatialDomain:p}=i.domainSet,d={x:Math.abs(p.offset.x),y:Math.abs(p.offset.y)},m=function(e){if(!e.temporalDomain)return null;let{begin:t,end:i,values:n,units:r,resolution:a}=e.temporalDomain,s={variables:[{name:"default",description:"",dimensions:[{name:"StdTime",description:"",unit:"ISO8601",values:n?.map(e=>e.getTime()),hasRegularIntervals:!n,interval:a,intervalUnit:r,extent:[t.getTime(),i.getTime()]}]}]};return _(s),s}(i.domainSet),c=new W.A({width:p.columns,height:p.rows,pixelSize:d,pixelType:"unknown",extent:p.envelope,spatialReference:p.envelope.spatialReference,bandCount:n.length||1,noDataValue:t,multidimensionalInfo:m});return{id:a,title:i.name,description:s||o,lonLatEnvelope:l,rasterInfo:c,bandNames:n,supportedFormats:u,supportedInterpolations:r,coverageDescription:i,version:"1.0.0",useEPSGAxis:!1}}(e));let n=(0,R.IC)(i,"CoverageDescription");return"1.1.0"===t||"1.1.1"===t||"1.1.2"===t?n.map(e=>function(e,t){let i,n,r=[],a=[],s={supportedFormats:r,supportedCRSs:a,version:"1.1"},o=[];for(let t=0;t<e.childNodes.length;t++){let l=e.childNodes[t];if(1!==l.nodeType)continue;let u=(0,R.vv)(l).toLowerCase();switch(u){case"title":case"abstract":case"identifier":s[u]=(0,R.mX)(l);break;case"supportedformat":{let e=(0,R.mX)(l);r.includes(e)||r.push(e)}break;case"supportedcrs":{let e=(0,R.mX)(l);a.includes(e)||a.push(e)}break;case"range":{let e=ee(l,!!s.domain?.temporalDomain);s.range=e.rangeSet,o=e.bandNames;let{bandNoDataValues:t}=e;t?.length&&(i=z(t)),n=e.statistics}break;case"domain":s.domain=te(l)}}let l=Z(s.range[0].supportedInterpolations),{identifier:u,abstract:p,title:d,domain:m,range:c}=s,g={x:Math.abs(m.spatialDomain.offset.x),y:Math.abs(m.spatialDomain.offset.y)},f=function(e,t){if(!t.temporalDomain)return null;let i=e.filter(e=>!e.identifier.toLowerCase().includes("field_1")&&!e.axis.some(e=>e.identifier.includes("band"))),n=[];if(i.length&&i.forEach(e=>{let t=e.axis.map(e=>{let t=e.values.map(t=>"ISO8601"===e.uom?(t=t.trim()).toLowerCase().includes("z")?new Date(t).getTime():new Date(t+"Z").getTime():parseFloat(t.trim())),i=[Math.min.apply(null,t),Math.max.apply(null,t)];return{name:e.identifier.trim(),description:"",field:e.identifier.trim(),unit:e.uom?e.uom.trim():"",hasRegularIntervals:!1,values:t,extent:i}});n.push({name:e.identifier.trim(),description:e.description?.trim()??"",unit:"",dimensions:t,statistics:e.statistics})}),t.temporalDomain){let{begin:e,end:i,values:r,units:a,resolution:s}=t.temporalDomain;n.some(e=>e.dimensions.some(e=>"stdtime"===e.name.toLowerCase()))||n.forEach(t=>{t.dimensions.push({name:"StdTime",description:"",unit:"ISO8601",values:r?.map(e=>e.getTime()),hasRegularIntervals:!r,interval:s,intervalUnit:a,extent:[e.getTime(),i.getTime()]})})}if(n.length){let e={variables:n};return _(e),e}return null}(c,m);f&&(i=c[0].nullValues,1===i?.length&&(i=i[0]));let h=new W.A({width:m.spatialDomain.columns,height:m.spatialDomain.rows,pixelSize:g,pixelType:"unknown",extent:m.spatialDomain.envelope,spatialReference:m.spatialDomain.envelope.spatialReference,bandCount:o.length||1,noDataValue:i,statistics:n,multidimensionalInfo:f});return{id:u,title:s.title,description:p||d,bandNames:o,rasterInfo:h,supportedFormats:r,supportedInterpolations:l,coverageDescription:s,version:t,useEPSGAxis:m.spatialDomain.useEPSGAxis}}(e,t)):n.map(e=>function(e){let t,i,n={version:"2.0"},r=[];for(let a=0;a<e.childNodes.length;a++){let s=e.childNodes[a];if(1===s.nodeType)if((0,R.g7)(s,"coverageId"))n.coverageId=(0,R.mX)(s);else if((0,R.g7)(s,"ServiceParameters"))n.serviceParameters={supportedFormats:(0,R.Dy)(s,"nativeFormat")};else if((0,R.g7)(s,"boundedBy"))n.boundedBy=ie(s);else if((0,R.g7)(s,"rangeType")){let e=ne(s,n.boundedBy?.axisLabels.length>2||n.domainSet?.axisLabels.length>2);n.rangeType=e.rangeType,r=e.bandNames,t=e.bandStats;let{bandNoDataValues:a}=e;a?.length&&(i=z(a))}else if((0,R.g7)(s,"domainSet"))n.domainSet=ae(s,n.boundedBy?.axisLabels);else if((0,R.g7)(s,"metadata")){let e=(0,R.V6)(s,"EOMetadata");n.eoMetadata=e?se(e):null}}let{coverageId:a,boundedBy:s,domainSet:o,rangeType:l,serviceParameters:u}=n,p=function(e,t,i){if(i.axisLabels.length<=2)return null;let n=[];for(let t=0;t<e.length;t++){let i=e[t];for(let e=0;e<i.length;e++)i[e].name.toLowerCase().includes("band")||n.push(i[e])}let r=[];if(n.length){let e=[];for(let n=2;n<i.axisLabels.length;n++){let r,a,s=t.uomLabels?.[n]?.trim()??"",o=i.axisLabels[n].toLowerCase().includes("time")||"iso8601"===s.toLowerCase()||"oledatetime"===s.toLowerCase();if(o){let e=re(i.offset[n]);r=e.interval,a=e.intervalUnit}else r=i.offset[n],a=s;let l=[];o?(l.push((0,G.$E)(t.envelopeAllDims.mins[n])),l.push((0,G.$E)(t.envelopeAllDims.maxs[n]))):(l.push(t.envelopeAllDims.mins[n]),l.push(t.envelopeAllDims.maxs[n])),e.push({name:i.axisLabels[n].trim(),description:i.axisLabels[n].trim(),unit:o?"ISO8601":s,hasRegularIntervals:!0,extent:l,interval:r,intervalUnit:a})}if(n.forEach(t=>{let{allowedValues:i}=t,n=2===i?.length?[{min:i[0],max:i[1],avg:-1,stddev:-1}]:null;r.push({name:t.name.trim(),description:t.description?.trim()??"",unit:t.uom.trim(),statistics:n,dimensions:[...e]})}),r.length){let e={variables:r};return _(e),e}}return null}(l,s,o);return!t&&p&&(t=p?.variables[0].statistics),null!=p&&(i=l[0][0].nilValue),{id:a,title:a,description:a,bandNames:r,rasterInfo:new W.A({width:o.columns,height:o.rows,pixelSize:o.resolution,pixelType:"unknown",extent:s.envelope,spatialReference:s.envelope.spatialReference,bandCount:r.length||1,statistics:t,noDataValue:i,multidimensionalInfo:p}),supportedFormats:u.supportedFormats,coverageDescription:n,version:"2.0.1",useEPSGAxis:!1}}(e))}(t,n)}catch(e){throw(0,l.zf)(e)?e:new s.A("wcslayer:open","wcs coverage description is not valid or supported")}}var le=i(49859);function ue(e,t,i=0){let n="--"+t.boundary,r=[];for(let e=0;e<n.length;e++)r.push(n.charCodeAt(e));let a=[],s="\n--"+t.boundary+"--";for(let e=0;e<s.length;e++)a.push(s.charCodeAt(e));let o=[10],l=[13,10],u=[],p=r.length,d=new Uint8Array(e,i),m=d.length-p,c=0,g=0;for(let e=0;e<m;e++){for(g=0;g<p&&d[e+g]===r[g];g++);if(g!==p)continue;let i=!1;if(c){let n=pe(d.subarray(c,e),t);u.push(n),i=!!n.isValidImage}if(e+=p-1,d[e+1]===o[0]?e+=1:d[e+1]===l[0]&&d[e+2]===l[1]&&(e+=2),c=e+1,i)break}let f=a.length;for(let e=d.length-f-10;e<d.length-f;e++){for(g=0;g<f&&d[e+g]===a[g];g++);if(g===f){u.push(pe(d.subarray(c,e),t));break}}return u}function pe(e,t){let i=String.fromCharCode.apply(null,e.subarray(0,Math.min(300,e.length))).split("\n"),n=Math.min(i.length,7),r={contentDisposition:"inline"},a=0;for(let s=0;s<n;s++)if(i[s].length<4)a=a+i[s].length+1;else if("content"===i[s].slice(0,7).toLowerCase()){a=a+i[s].length+1;let e=i[s].indexOf(":");if(-1===e)continue;let t=i[s].slice(0,e).trim(),n=i[s].slice(e+1).trim();switch(t.toLowerCase()){case"content-type":r.contentType=n;break;case"content-description":r.contentDescription=n;break;case"content-transfer-encoding":r.contentTransferEncoding=n;break;case"content-id":r.contentID=n;break;case"content-disposition":r.contentDisposition=n;break;case"content-location":r.contentLocation=n}}else{if(r.contentDisposition.toLowerCase().includes("inline")&&i[s].length>=4&&r.contentType?.toLowerCase().includes("image")){let t=!0,i=e.subarray(a,e.length);if(r.contentType.toLowerCase().indexOf("tif")>0){if("base64"===r.contentTransferEncoding){let e="",t=i;for(let i=0;i<t.length;i+=65535){let n=t.subarray(i,i+65535>t.length-1?t.length-1:i+65535);e+=String.fromCharCode.apply(null,n)}let n=atob(e);i=new Uint8Array(n.length);for(let e=0;e<i.length;e++)i[e]=n.charCodeAt(e)}t=73===i[0]&&73===i[1]||77===i[0]&&77===i[1]}if(t){let t=i.buffer;"base64"!==r.contentTransferEncoding&&(t=new ArrayBuffer(e.length-a),i=new Uint8Array(t),i.set(e.subarray(a,e.length))),r.contentData=t,r.isValidImage=!0}break}if((""===t.start||r.contentID===t.start)&&r.contentType){if(r.contentType.includes("text")||r.contentType.includes("xml")){r.contentData=String.fromCharCode.apply(null,e.subarray(a,e.length));break}r.contentData=e.subarray(a,e.length)}}return r}var de=i(40951),me=i(47520),ce=i(45617);const ge=["nearest neighbor","bilinear","bicubic"],fe=["nearest","linear","cubic"],he="response is not a supported multipart/related mediaType with inline tiff, switching to compatibility mode",ve=new Set(["1.0.0","1.1.0","1.1.1","1.1.2","2.0.1"]);let ye=class extends le.A{constructor(){super(...arguments),this.datasetFormat="WCSServer",this.tileType="Raster"}get rasterId(){return`${this.url}-${this.coverageId}-${this.version}`}async fetchRawTile(e,t,i,n={}){if(this.isBlockOutside(e,t,i))return null;let{nativePixelSize:r,spatialReference:a}=this.rasterInfo,o=2**e,l=r.x*o,u=r.y*o,{blockWidth:p,blockHeight:d}=this.getBlockWidthHeight(e),{origin:m}=this.rasterInfo.storageInfo.tileInfo,c=this.getTileExtent({x:l,y:u},t,i,m,a,[p,d]),g=this.rasterInfo.extent,f=c.xmax>g.xmax,h=c.ymin<g.ymin,v=f||h,y=c,b=p,w=d;if(v&&(y=c.clone().intersection(g),null!=y&&(f&&(b=Math.floor((y.xmax-y.xmin)/l),y.xmax=y.xmin+l*b),h&&(w=Math.floor((y.ymax-y.ymin)/u),y.ymin=y.ymax-u*w))),null==y||b<=1||w<=1)return null;let x=await this._getCoverage(y,b,w,o,n);if(!x)return null;let C,{coverageDescription:I}=this.coverageInfo,{noDataValue:S,multidimensionalInfo:D}=this.rasterInfo,{multidimensionalDefinition:A}=n;if(null!=D&&null!=A&&A.length){let e=A[0].variableName;"2.0"===I.version?C=I.rangeType[0].find(t=>t.name===e)?.nilValue:"1.1"===I.version&&(C=I.range.find(t=>t.identifier===e)?.nullValues)}let T=C??S,M=await this.decodePixelBlock(x,{width:b,height:w,planes:null,pixelType:null,tiffNoDataValue:Array.isArray(T)?T[0]:T,matchAllNoData:!0},{signal:n.signal});if(null==M)return null;if(M&&(M.width!==b||M.height!==w)){let e=`The tiff coverage response has unexpected width: ${M.width}, height: ${M.height}, expecting width: ${b}, height: ${w}`;throw L.A.getLogger(this).error("wcsraster-fetch",e),new s.A("wcsraster-fetch",e)}return v?(0,me.$Q)(M,{x:0,y:0},{width:d,height:d}):M}async _open(e){let{customFetchParameters:t}=this.ioConfig,i=e?.signal,n=await async function(e,t){let{version:i,customParameters:n,signal:r}=t??{},a=i?.startsWith("1.0")?"version":"acceptVersions",o={service:"WCS",request:"GetCapabilities",[a]:i,...n};try{let{data:i}=await(0,N.A)(e,{query:o,responseType:"xml",signal:r});return!t?.version&&!function(e){let t=null;t="string"==typeof e?(new DOMParser).parseFromString(e,"text/xml"):e;let i=t.documentElement.getAttribute("version")?.slice(0,3);return null!=i&&i<"2.1"}(i)&&(o[a]="2.0.1",({data:i}=await(0,N.A)(e,{query:o,responseType:"xml",signal:r}))),k(i)}catch(e){throw(0,l.zf)(e)?e:new s.A("wcslayer:open","wcs capabilities is not valid or supported")}}(this.url,{version:t?.version??this.version,customParameters:t,signal:i});if(this.capabilities=n,!this.version){let e=n.version.slice(0,3);"2.0"===e||"1.1"===e||"1.0"===e?this.version=n.version:(e=n.supportedVersions.find(e=>"2.0.1"===e)||n.supportedVersions.find(e=>e.startsWith("2.0"))||n.supportedVersions.find(e=>e.startsWith("1.1"))||n.supportedVersions.find(e=>e.startsWith("1.0"))||"1.0.0",this.version=e)}let{version:r}=this;if(!ve.has(r))throw new s.A("wcsraster-open",`unsupported WCS version ${r}`);let{gridCoverages:a}=n;if(!a.length)throw new s.A("wcsraster-open","cannot find rectified grid coverages");this.coverageId??=a[0].id;let{coverageId:o}=this,u=a.find(e=>e.id===o);if(null==u)throw new s.A("wcsraster-open",`the coverageId ${o} does not exist in capabilities`);let p=await oe(this.url,{coverageIds:[o],version:r,customParameters:t,signal:i});if(this.coverageInfo=p[0],r.startsWith("2.0")){let{coverageInfo:e}=this;e.lonLatEnvelope=u.lonLatEnvelope,e.supportedInterpolations=Z(n.supportedInterpolations),this._patchDimensionValues201(o,i)}this.datasetName=this.coverageInfo.title;let{rasterInfo:d}=this.coverageInfo;if(this.createRemoteDatasetStorageInfo(d,512,512),this._set("rasterInfo",d),null==d.spatialReference)throw new s.A("wcsraster-open",`coverage without spatial reference is not supported: ${o}`);let{pixelType:m,bandCount:c}=await this._getPixelTypeAndBandCount(i);d.pixelType=m,1===d.bandCount&&c>1&&(d.bandCount=c),this.updateTileInfo()}async _patchDimensionValues201(e,t){let{coverageInfo:i}=this,n=i.rasterInfo.multidimensionalInfo?.variables,r=ve.has("1.1.2")?"1.1.2":ve.has("1.1.1")?"1.1.1":ve.has("1.1.0")?"1.1.0":null,{customFetchParameters:a}=this.ioConfig;if(n&&r)try{let i=this.url.includes("/ImageServer/"),s=e.length>8&&e.startsWith("Coverage")&&i?e.slice(8):e,o=(await oe(this.url,{coverageIds:[s??e],version:r,customParameters:a,signal:t}).catch(()=>{if(s)return oe(this.url,{coverageIds:[e],version:r,customParameters:a,signal:t})}))?.[0].rasterInfo.multidimensionalInfo?.variables;if(o)for(let e of n){let t=o.find(({name:t})=>t===e.name);if(t?.dimensions?.length)for(let n=e.dimensions.length-1;n>=0;n--){let r=e.dimensions[n],a=t.dimensions.find(({name:e})=>e===r.name);a?a.values&&a.extent?.join(",")===r.extent?.join(",")&&(e.dimensions[n]={...r,values:a.values}):i&&e.dimensions.splice(n,1)}}}catch{}}async _getPixelTypeAndBandCount(e){let{pixelSize:t,extent:i,multidimensionalInfo:n}=this.rasterInfo,r=i.center,a=new M.A({xmin:r.x-t.x,xmax:r.x+t.x,ymin:r.y-t.y,ymax:r.y+t.y,spatialReference:i.spatialReference}),o=[];if(null!=n){let e=n.variables[0];o=[],e.dimensions.forEach(t=>{o.push(new ce.A({variableName:e.name,dimensionName:t.name,values:t.hasRegularIntervals?t.extent?.[0]:t.values?.[0],isSlice:!0}))})}let l,{coverageDescription:u}=this.coverageInfo,p={interpolation:"nearest",multidimensionalDefinition:o,signal:e},{version:d}=u,{ioConfig:m}=this,c="2.0"===d&&null==m.allowAnyMediaType||"1.1"===d&&null==m.use2GridOffsets;try{l=await this._getCoverage(a,2,2,1,p,!0)}catch(e){if(!c)throw e;if("1.1"===d){if(!e.details?.isResolutionMismatch)throw e;m.use2GridOffsets=!0}}if(!l&&c&&("2.0"===d&&(m.allowAnyMediaType=!0),l=await this._getCoverage(a,2,2,1,p),l&&L.A.getLogger(this).warn("wcsraster:getcoverage",he)),!l)throw new s.A("wcsraster-open","unable to determine pixel type");let g=await this.decodePixelBlock(l,{width:2,height:2,planes:null,pixelType:null},{signal:p.signal});if(null==g)throw new s.A("wcsraster-open","unable to determine pixel type");return{pixelType:g.pixelType,bandCount:g.getPlaneCount()??0}}async _getCoverage(e,t,i,n,r,a=!1){let{coverageDescription:o}=this.coverageInfo,{version:l}=o,u="2.0"===l?this._getCoverage201Parameters(e,t,i,n,r,o):"1.1"===l?this._getCoverage110Parameters(e,t,i,r,o):this._getCoverage100Parameters(e,t,i,r),p="2.0"===l?await this.request(this._constructWCS201Url(u),{signal:r.signal,responseType:"array-buffer"}):await this.request(this.url,{query:u,signal:r.signal,responseType:"array-buffer"});if("1.0"===l)return p.data;if("2.0"===l&&!1!==this.ioConfig.allowAnyMediaType&&"tiff"===(0,de.g)(p.data))return a&&(this.ioConfig.allowAnyMediaType=!0,L.A.getLogger(this).warn("wcsraster:getcoverage",he)),p.data;let d=function(e){let t=function(e){let t=e.getHeader?.("Content-Type")?.split(";");if(!t||!(t[0].trim()??"").startsWith("multipart/"))return null;let i={boundary:"",start:"",type:""};for(let e=1;e<t.length;e++){let n=t[e].indexOf("=");if(n>0){let r=t[e].slice(0,n).trim(),a=t[e].slice(n+1).trim();i[r]=a.startsWith('"')?a.slice(1,-1):a}}return i}(e);return t?{isMultipart:!0,data:t.boundary?ue(e.data,t,0):null}:{isMultipart:!1,data:null}}(p);if(d.isMultipart&&d.data){let e=d.data.find(e=>e.isValidImage);return a&&"base64"===e?.contentTransferEncoding&&L.A.getLogger(this).warn("wcsraster:getcoverage","response is base64 encoded which may impact layer display performance"),e?.contentData}let m=new Uint8Array(p.data,0,Math.min(p.data.byteLength,2e3)),c=String.fromCharCode.apply(null,m).toLowerCase().includes("exception"),g=c&&String.fromCharCode.apply(null,m).includes("A non-zero RESX/RESY or WIDTH/HEIGHT is required but neither was provided");throw c?new s.A("wcsraster:getcoverage","server returns an exception",{isResolutionMismatch:g}):new s.A("wcsraster:getcoverage","response is not a supported multipart mediaType with inline tiff")}_getInterpolationIndex(e){return e&&this.coverageInfo.supportedInterpolations?.includes(e)&&"nearest"!==e?"bilinear"===e?1:"cubic"===e?2:0:0}_getCoverage100Parameters(e,t,i,n){let r,a=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`,s=e.spatialReference.wkid,o=(this.coverageInfo.supportedFormats||[]).find(e=>e.toLowerCase().includes("tiff"))||"GEOTIFF",{bandIds:l,interpolation:u}=n,p=this._getInterpolationIndex(u),d=l?l.map(e=>this.coverageInfo.bandNames[e]):null,m=ge[p],{multidimensionalDefinition:c}=n;if(null!=c&&null!=this.rasterInfo.multidimensionalInfo){let e=c.find(e=>"StdTime"===e.dimensionName)?.values;e&&e.length>0&&(Array.isArray(e[0])&&(e=e[0]),r=e.map(e=>be(e)).join(","))}return{service:"WCS",request:"GetCoverage",version:this.version,coverage:this.coverageId,format:o,crs:`EPSG:${s}`,bbox:a,width:t,height:i,time:r,interpolation:m,band:d?.join(",")}}_getCoverage110Parameters(e,t,i,n,r){let a,{multidimensionalDefinition:s,bandIds:o,interpolation:l}=n,u=e.spatialReference.wkid,p=`urn:ogc:def:crs:EPSG::${u}`,d=(this.coverageInfo.supportedFormats||[]).find(e=>e.toLowerCase().includes("tiff"))||"image/tiff",m=this._getInterpolationIndex(l),c=fe[m],g=null==l||0===this.coverageInfo.supportedInterpolations?.indexOf(l),f=r.domain.spatialDomain,h=f.origin.x<=f.envelope.xmin&&f.origin.y<=f.envelope.ymin,v=e.width/t,y=e.height/i*(h?1:-1),b=h?[e.xmin,e.ymin]:[e.xmin,e.ymax],w=f.useEPSGAxis&&(0,V.m)(u),x=w?`${b[1]},${b[0]}`:`${b[0]},${b[1]}`,C=this.ioConfig.use2GridOffsets,I=w?C?`${y},${v}`:`${y},0,0,${v}`:C?`${v},${y}`:`${v},0,0,${y}`,S=v/2,D=e.xmin+S,A=e.xmax-S,T=Math.abs(y)/2,L=e.ymin+T,M=e.ymax-T,N=w?`${L},${D},${M},${A},${p}`:`${D},${L},${A},${M},${p}`,R=r.range.find(e=>e.axis.some(e=>e.identifier.toLowerCase().includes("band"))),P=R&&c&&o?g?`${R.identifier}[${R.axis[0].identifier}[${o.join(",")}]]`:`${R.identifier}:${c}[${R.axis[0].identifier}[${o.join(",")}]]`:null;if(null!=s&&s.length)for(let e=0;e<s.length;e++){let t=s[e].values,i=s[e].dimensionName?.toLowerCase(),n=s[e].variableName?.toLowerCase(),o=r.range.find(e=>e.identifier.toLowerCase()===n);if(t.length>0)if(Array.isArray(t[0])&&(t=t[0]),"stdtime"===i)a=t.map(e=>be(e)).join(",");else if(o){let e=o.axis.find(e=>e.identifier.toLowerCase()===i);e&&(P=g?o.identifier+"["+e.identifier+"["+t.join(",")+"]]":o.identifier+":"+c+"["+e.identifier+"["+t.join(",")+"]]")}e===s.length-1&&o&&!P&&(P=g?o.identifier:o.identifier+":"+c)}return{service:"WCS",request:"GetCoverage",version:this.version,identifier:this.coverageId,format:d,crs:`EPSG:${u}`,boundingbox:N,gridCS:"urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS",gridType:"urn:ogc:def:method:WCS:1.1:2dGridIn2dCrs",gridOrigin:x,gridOffsets:I,gridBaseCRS:p,timeSequence:a,rangeSubset:P}}_getCoverage201Parameters(e,t,i,n,r,a){let{multidimensionalDefinition:s,interpolation:o}=r,l=this._getInterpolationIndex(o),u=null,{supportedInterpolations:p}=this.capabilities;if(p?.length)switch(l){case 0:u=p.find(e=>e.toLowerCase().includes("nearest"));break;case 1:u=p.find(e=>e.toLowerCase().includes("linear"));break;case 2:u=p.find(e=>e.toLowerCase().includes("cubic")||e.toLowerCase().includes("quadratic"))}let d=(this.coverageInfo.supportedFormats||[]).find(e=>e.toLowerCase().includes("tiff"))||"image/tiff",{bandNames:m}=this.coverageInfo,{boundedBy:c,domainSet:g,rangeType:f}=a,h=+!c.isEastFirst,v=1-h,{axisLabels:y}=c,b=y[h],w=y[v],x=`http://www.opengis.net/def/crs/EPSG/0/${e.spatialReference.wkid}`,C=x,I=[];I.push(`${b}(${e.xmin},${e.xmax})`),I.push(`${w}(${e.ymin},${e.ymax})`);let S=[];if(y.length>2)for(let e=2;e<y.length;e++){let t=g.origin[e];if(y[e].toLowerCase().includes("time")){let i=t.toString();c.uomLabels?.[e].toLowerCase().includes("ole")&&(S.push(y[e]),i=be(t,!0)),I.push(y[e]+",http://www.opengis.net("+i+")")}else I.push(y[e]+",http://www.opengis.net("+t+")")}let D=null;if(null!=s&&s.length){let e=[];f.forEach(t=>t.forEach(t=>e.push(t.name)));let t=[];for(let i=0;i<s.length;i++){let n=y.find(e=>e===s[i].dimensionName),r=e.find(e=>e===s[i].variableName);if(t.includes(r)||t.push(r),n){let e=s[i].values;if(e.length>0){Array.isArray(e[0])&&(e=e[0]);let t="";t=n.toLowerCase().includes("time")?e.map(e=>be(e)).join(","):e.join(",");let i=I.findIndex(e=>e.startsWith(n+",http://www.opengis.net"));-1===i&&I.push(n+",http://www.opengis.net("+t+")"),-1!==i&&!I[i].includes("("+t+")")&&I.splice(i,1,n+",http://www.opengis.net("+t+")")}}}t.length&&(D=t.join(","))}else m?.length>=2&&(D=(r.bandIds?r.bandIds.map(e=>m[e]):m).join(","));let A=I.join("&subset="),T=!a.domainSet.hasSameAxisLabelsAsBoundedBy&&!1!==this.ioConfig.allowScaleFactor,L=T?null:`${b}(${t}),${w}(${i})`,M=T?1/n:null;return{service:"WCS",request:"GetCoverage",version:this.version,coverageId:this.coverageId,rangesubset:D,interpolation:u,scaleSize:L,scaleFactor:M,subset:A,format:d,mediaType:this.ioConfig.allowAnyMediaType?null:"multipart/related",outputcrs:x,subsettingcrs:C}}_constructWCS201Url(e){let t={...this.ioConfig.customFetchParameters,...e},i=[];return Object.keys(t).forEach(e=>{let n=t[e];null!=n&&("subset"===e?"string"==typeof n&&n.split("&subset=").forEach(e=>{e&&i.push(`subset=${encodeURIComponent(e)}`)}):i.push(`${e}=${encodeURIComponent(n)}`))}),`${encodeURI(this.url)}?${i.join("&")}`}};function be(e,t=!1){return(t?new Date((0,G.$E)(e)):new Date(e)).toISOString()}(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ye.prototype,"datasetFormat",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"tileType",void 0),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ye.prototype,"version",void 0),(0,n.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ye.prototype,"coverageId",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],ye.prototype,"rasterId",null),ye=(0,n.Cg)([(0,p.$K)("esri.layers.raster.datasets.WCSRaster")],ye);var we=i(10873),xe=i(20437),Ce=i(74797),Ie=i(30291);const Se=new Set(["milliseconds","seconds","minutes","hours","days","weeks","months","years","decades","centuries"]);let De=class extends((0,b.dM)((0,D.j)((0,x.q)((0,C.A)((0,w.d)((0,T.b)((0,I.G)((0,A.e)((0,S.J)((0,o.M)((0,a.OU)(y.A)))))))))))){constructor(e){super(e),this.charts=null,this.coverageId=null,this.version=null,this.isReference=null,this.graphicOrigin=new v(this),this.legendEnabled=!0,this.noData=0,this.operationalLayerType="WCS",this.type="wcs",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null,this._debouncedSaveOperations=(0,l.sg)(async(e,t,n)=>{let{save:r,saveAs:a}=await i.e(9838).then(()=>i(59838));switch(e){case 0:return r(this,t);case 1:return a(this,n,t)}})}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WCS"]},e).catch(l.QP).then(()=>this._openRaster(t))),Promise.resolve(this)}get renderer(){return super.renderer}set renderer(e){super.renderer=e}get coverageInfo(){return this.raster.coverageInfo}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){let e=[(0,Ce.rZ)("Pixel Value")],t=(this.raster?.rasterInfo??this.serviceRasterInfo)?.multidimensionalInfo;if(t){let i=(0,Ce.AL)(t);e.push(...i)}return e}createPopupTemplate(e){return(0,Ie.tn)({fields:this.rasterFields,title:this.title},e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}async _openRaster(e){let t=new ye({url:this.url,version:this.version,coverageId:this.coverageId,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters}});if(await t.open({signal:e}),!t.rasterInfo)throw t.destroy(),new s.A("wcs-layer:load","cannot load resources on "+this.url);let{rasterInfo:i}=t;i.noDataValue??=this.noData,this._set("serviceRasterInfo",i),this._set("spatialReference",i.spatialReference),this.title??this.setAtOrigin("title",t.datasetName,"service"),this.coverageId??this.setAtOrigin("coverageId",t.coverageInfo.id,"service"),null==this.version&&t.version&&this.setAtOrigin("version",t.version,"service"),this.setAtOrigin("tileInfo",t.rasterInfo.storageInfo.tileInfo,"service");let{multidimensionalInfo:n}=i;if(null!=n){let e=n.variables[0].dimensions.find(({name:e})=>"StdTime"===e);if(e){let t=e.extent?.[0]??e.values[0];Array.isArray(t)&&(t=t[0]);let i=e.extent?.[1]??e.values[e.values.length-1];Array.isArray(i)&&(i=i[1]);let n=Se.has(e.intervalUnit?.toLowerCase())?e.intervalUnit?.toLowerCase():null;this.set("timeInfo",{startField:"StdTime",fullTimeExtent:{start:t,end:i},timeZone:null,interval:n?{value:e.interval,unit:n}:null})}}this.raster=t,this._configDefaultSettings(),this.addHandles((0,u.wB)(()=>this.customParameters,e=>this.raster.ioConfig.customFetchParameters=e))}};(0,n.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],De.prototype,"charts",void 0),(0,n.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{name:"wcsInfo.coverageId",write:{isRequired:!0,ignoreOrigin:!0}}})],De.prototype,"coverageId",void 0),(0,n.Cg)([(0,p.MZ)()],De.prototype,"coverageInfo",null),(0,n.Cg)([(0,p.MZ)({type:["1.0.0","1.1.0","1.1.1","1.1.2","2.0.1"],nonNullable:!0,json:{name:"wcsInfo.version",write:{isRequired:!0,ignoreOrigin:!0}}})],De.prototype,"version",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],De.prototype,"isReference",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!0,write:!0}})],De.prototype,"blendMode",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],De.prototype,"graphicOrigin",void 0),(0,n.Cg)([(0,p.MZ)(we.fV)],De.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:["show","hide"]})],De.prototype,"listMode",void 0),(0,n.Cg)([(0,p.MZ)()],De.prototype,"noData",void 0),(0,n.Cg)([(0,p.MZ)({type:["WCS"]})],De.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,p.MZ)()],De.prototype,"raster",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],De.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)(we.M6)],De.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:r.A,json:{name:"popupInfo",write:!0}})],De.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],De.prototype,"defaultPopupTemplate",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0,type:[xe.A]})],De.prototype,"fields",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0,type:[xe.A]})],De.prototype,"rasterFields",null),De=(0,n.Cg)([(0,p.$K)("esri.layers.WCSLayer")],De);const Ae=De},38458(e,t,i){i.d(t,{m:()=>r});const n=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function r(e){return null!=e&&n.some(([t,i])=>e>=t&&e<=i)}}}]);
|