@arcgis/core 6.0.0-next.57 → 6.0.0-next.58
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/WebLinkChart.d.ts +0 -12
- package/WebLinkChart.js +1 -1
- package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/applications/WebEditor/sketchUtils.js +1 -1
- package/arcade/arcadeCompiler.js +5 -5
- package/arcade/containerUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/075e6c60e741482e673f.js +1 -0
- package/assets/esri/core/workers/chunks/076c2098570ee885d117.js +1 -0
- package/assets/esri/core/workers/chunks/091ce6b3de590e1d9ff6.js +1 -0
- package/assets/esri/core/workers/chunks/099dec4103f6e7556eb0.js +1 -0
- package/assets/esri/core/workers/chunks/{77267e0807cbbc00496d.js → 0be55d9bab7c3510a7f2.js} +1 -1
- package/assets/esri/core/workers/chunks/{da69e8cd52aa77aa4c2c.js → 0fc1facd26c9ef96e081.js} +1 -1
- package/assets/esri/core/workers/chunks/{f97dc99afe3375fc8e16.js → 1179a3574c580f7ce390.js} +1 -1
- package/assets/esri/core/workers/chunks/129140104be2620c0382.js +1 -0
- package/assets/esri/core/workers/chunks/1295fcf866e7347b2d53.js +1 -0
- package/assets/esri/core/workers/chunks/16219f0c56d6f6213c24.js +1 -0
- package/assets/esri/core/workers/chunks/185b317eec95f3370970.js +1 -0
- package/assets/esri/core/workers/chunks/1bdef2e142e78341fec0.js +1 -0
- package/assets/esri/core/workers/chunks/1ce0bf4ff14af8a68a5c.js +1 -0
- package/assets/esri/core/workers/chunks/1f1515313baeecc095a2.js +1 -0
- package/assets/esri/core/workers/chunks/1f710c91a82f6fd3d0f6.js +1 -0
- package/assets/esri/core/workers/chunks/{1894c39dabc78e7a5af8.js → 1fad7a7211bb8c9b58e3.js} +1 -1
- package/assets/esri/core/workers/chunks/24374aaa6fb3e12960d1.js +1 -0
- package/assets/esri/core/workers/chunks/24aa7b81814b4e519b01.js +1 -0
- package/assets/esri/core/workers/chunks/294097140e349e073b7e.js +1 -0
- package/assets/esri/core/workers/chunks/{c8c79d21dfce5695a089.js → 2b69fdf51b6f0b2abb75.js} +1 -1
- package/assets/esri/core/workers/chunks/2ba9b3b4d49eb2740a42.js +1 -0
- package/assets/esri/core/workers/chunks/2eb3297014f063fb4bc9.js +1 -0
- package/assets/esri/core/workers/chunks/2eb3cec44ce7587980a4.js +1 -0
- package/assets/esri/core/workers/chunks/2ee3cd6b2e5274932d31.js +1 -0
- package/assets/esri/core/workers/chunks/31df02c6f5b04a143ae6.js +1 -0
- package/assets/esri/core/workers/chunks/32d5aae2e0953420216a.js +1 -0
- package/assets/esri/core/workers/chunks/3a1510650ce8de7edec8.js +1 -0
- package/assets/esri/core/workers/chunks/3b0933cea2a902a26bb7.js +1 -0
- package/assets/esri/core/workers/chunks/3d96676b94e8ecb6a4d1.js +1 -0
- package/assets/esri/core/workers/chunks/3edfd8ecf000b00a4a92.js +1 -0
- package/assets/esri/core/workers/chunks/{f053cbfe671bd14c7d5b.js → 419d8116d8e7faccfed5.js} +1 -1
- package/assets/esri/core/workers/chunks/41d57b45cc2361305af3.js +1 -0
- package/assets/esri/core/workers/chunks/42ee1f8732e644371ea9.js +1 -0
- package/assets/esri/core/workers/chunks/4309f3e72c6332e01d75.js +1 -0
- package/assets/esri/core/workers/chunks/44ca7a56fb28227fdcbf.js +1 -0
- package/assets/esri/core/workers/chunks/4537f0866e903d2e9bb9.js +1 -0
- package/assets/esri/core/workers/chunks/49f61832e0d3b24e1608.js +1 -0
- package/assets/esri/core/workers/chunks/4a45505fb9a40b503672.js +29 -0
- package/assets/esri/core/workers/chunks/4b456c1f26d70392f7d4.js +1 -0
- package/assets/esri/core/workers/chunks/{28fae7da8cc4ae7a83e4.js → 4c510b1caffeec80dc6b.js} +1 -1
- package/assets/esri/core/workers/chunks/4ce5c9b658ba79a0b668.js +1 -0
- package/assets/esri/core/workers/chunks/{41694ee8990e799da225.js → 4d8f23b2e6721fb5b289.js} +1 -1
- package/assets/esri/core/workers/chunks/4fb8708666a614df583d.js +1 -0
- package/assets/esri/core/workers/chunks/4feec96a312dcc137911.js +1 -0
- package/assets/esri/core/workers/chunks/52ad9306fd40d488376d.js +1 -0
- package/assets/esri/core/workers/chunks/5375bdf46b602b19fa86.js +1 -0
- package/assets/esri/core/workers/chunks/549a8e7313f75ea3f85b.js +1 -0
- package/assets/esri/core/workers/chunks/55f97942c58455f47975.js +1 -0
- package/assets/esri/core/workers/chunks/566d72534d694c318e30.js +1 -0
- package/assets/esri/core/workers/chunks/5ce00674305e5716d27b.js +1 -0
- package/assets/esri/core/workers/chunks/5e032d209df500fad321.js +1 -0
- package/assets/esri/core/workers/chunks/{be0133fa63c5d6545a7f.js → 5e4de4ddd3bdc74100e0.js} +33 -32
- package/assets/esri/core/workers/chunks/5ea8cdc28a81744913cd.js +1 -0
- package/assets/esri/core/workers/chunks/61565d4674cf77cbf1dd.js +1 -0
- package/assets/esri/core/workers/chunks/{d296c9561f6a6aeff973.js → 68b8dff748f1ef588653.js} +1 -1
- package/assets/esri/core/workers/chunks/690041373d03d02a3044.js +1 -0
- package/assets/esri/core/workers/chunks/{6d99e7e1aa007a6f1039.js → 69316db52d7bed746879.js} +1 -1
- package/assets/esri/core/workers/chunks/69384a9703abee1903c5.js +1 -0
- package/assets/esri/core/workers/chunks/6992a7728451c5a7b673.js +1 -0
- package/assets/esri/core/workers/chunks/69e5efe1acbdaddee90d.js +1 -0
- package/assets/esri/core/workers/chunks/6b2e09e43f449020d5ad.js +1 -0
- package/assets/esri/core/workers/chunks/6b5f8bf8b3480910666d.js +1 -0
- package/assets/esri/core/workers/chunks/70fe8b90f174ec64db2e.js +1 -0
- package/assets/esri/core/workers/chunks/720356fc6d5e18008471.js +1 -0
- package/assets/esri/core/workers/chunks/{3869ea1be105eaad4a38.js → 7328aca34c95fd0fc752.js} +1 -1
- package/assets/esri/core/workers/chunks/789567124c4a15235952.js +1 -0
- package/assets/esri/core/workers/chunks/{a24dc5350af001db417a.js → 7affab0d0692bdb76036.js} +1 -1
- package/assets/esri/core/workers/chunks/{b6e628b5d2643af4c19b.js → 7b4063f45b45ad8a7289.js} +1 -1
- package/assets/esri/core/workers/chunks/7c22d3669087f38c92b9.js +1 -0
- package/assets/esri/core/workers/chunks/7cb7bdc30f970eb9ff7f.js +1 -0
- package/assets/esri/core/workers/chunks/7d71cf65bbc1b3308856.js +1 -0
- package/assets/esri/core/workers/chunks/81cdb9705f7eee9e792f.js +1 -0
- package/assets/esri/core/workers/chunks/821003fe1be30d5d29aa.js +1 -0
- package/assets/esri/core/workers/chunks/822b9c1e172c835b9624.js +1 -0
- package/assets/esri/core/workers/chunks/{a7dfca326883384d2751.js → 823228f1fa6ba4e8bff2.js} +1 -1
- package/assets/esri/core/workers/chunks/84021d57822f374217ef.js +1 -0
- package/assets/esri/core/workers/chunks/847ec6b337cfb2e4a15b.js +1 -0
- package/assets/esri/core/workers/chunks/84f41ddd7366bfbf5b25.js +1 -0
- package/assets/esri/core/workers/chunks/{c6e7c95391a54978402b.js → 893363ee500fc1288781.js} +1 -1
- package/assets/esri/core/workers/chunks/8b0cdbbf5c81283eae13.js +1 -0
- package/assets/esri/core/workers/chunks/{7850e306d7cd12653b23.js → 90de2f93b0ba1eb337fd.js} +1 -1
- package/assets/esri/core/workers/chunks/91b0035e3eae9e452fbc.js +1 -0
- package/assets/esri/core/workers/chunks/93262d3616ac0cc4b532.js +1 -0
- package/assets/esri/core/workers/chunks/9748a0db6451336d51ef.js +1 -0
- package/assets/esri/core/workers/chunks/{69a09c6acb5ae03c67f6.js → 985ce51da8ae4984a4db.js} +1 -1
- package/assets/esri/core/workers/chunks/9bbff9230298b1bac46a.js +1 -0
- package/assets/esri/core/workers/chunks/9cae59db5b9cb37baea9.js +1 -0
- package/assets/esri/core/workers/chunks/{ed2626a895ca1d4a7216.js → 9dbb9e74754392b066a8.js} +1 -1
- package/assets/esri/core/workers/chunks/9dd3863b9d7c1a5ea20a.js +1 -0
- package/assets/esri/core/workers/chunks/9e62cfcb4e0188d51294.js +1 -0
- package/assets/esri/core/workers/chunks/a2a3edec2ee31273d609.js +1 -0
- package/assets/esri/core/workers/chunks/{d0e8d0f8b4e4cc13e837.js → a301aa62a03d3618eba9.js} +1 -1
- package/assets/esri/core/workers/chunks/a39d595fc11afedc1875.js +1 -0
- package/assets/esri/core/workers/chunks/a57b506c538e2186909d.js +1 -0
- package/assets/esri/core/workers/chunks/a722114f01e66a608cec.js +1 -0
- package/assets/esri/core/workers/chunks/{5bda285f6ecf725676b3.js → a7b4821fd3080cf2756f.js} +1 -1
- package/assets/esri/core/workers/chunks/a8d91c2654c5012400b4.js +1 -0
- package/assets/esri/core/workers/chunks/aa70d98e6bcbd06a8461.js +1 -0
- package/assets/esri/core/workers/chunks/add538f52c7bcfd154da.js +1 -0
- package/assets/esri/core/workers/chunks/ae0b0a562f0ab57e1883.js +1 -0
- package/assets/esri/core/workers/chunks/b2c3652c8ce9597dcf89.js +1 -0
- package/assets/esri/core/workers/chunks/b725d944ecd5da02fd9e.js +1 -0
- package/assets/esri/core/workers/chunks/b7fbbbeabaa5bfcdeabc.js +1 -0
- package/assets/esri/core/workers/chunks/{70ead4c231cba4084cf4.js → b856ef3a949ca06a4af5.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae2cd50c2b938b39417b.js → b8b4f68305a4f654fa75.js} +1 -1
- package/assets/esri/core/workers/chunks/{97107e64407fa6825620.js → ba324fd300b6e6a584ae.js} +1 -1
- package/assets/esri/core/workers/chunks/bc40b96080346b91e507.js +1 -0
- package/assets/esri/core/workers/chunks/c5ca8245113576b35acc.js +1 -0
- package/assets/esri/core/workers/chunks/{c7a0c4ca37ebd1d98cf1.js → c629a676b707138e7a1c.js} +1 -1
- package/assets/esri/core/workers/chunks/c8a1aa90ec6d455ff82d.js +1 -0
- package/assets/esri/core/workers/chunks/c8dd8b67100177109619.js +1 -0
- package/assets/esri/core/workers/chunks/c8eb8744f1ed9d1897dc.js +1 -0
- package/assets/esri/core/workers/chunks/ccc89208aad7206aabd9.js +1 -0
- package/assets/esri/core/workers/chunks/cebd6732fe573f79849c.js +1 -0
- package/assets/esri/core/workers/chunks/{c5ddf8b347c31fe772a3.js → d45769f8a02abe5d2917.js} +1 -1
- package/assets/esri/core/workers/chunks/d4b62e78bb27272a5f83.js +1 -0
- package/assets/esri/core/workers/chunks/d52b2a591e5e6abaa133.js +1 -0
- package/assets/esri/core/workers/chunks/{0978e12dd6a1cbc50b80.js → d572b125bed40a4d02b1.js} +1 -1
- package/assets/esri/core/workers/chunks/d65206fea850b1fc0712.js +1 -0
- package/assets/esri/core/workers/chunks/d6a42c936ead00ab7ad4.js +1 -0
- package/assets/esri/core/workers/chunks/d77887edc10d5be39ac9.js +1 -0
- package/assets/esri/core/workers/chunks/d7b9c16fe73f50a41099.js +1 -0
- package/assets/esri/core/workers/chunks/{7b6fd287e7043ad50f4e.js → d9bf0be2323e9df55834.js} +1 -1
- package/assets/esri/core/workers/chunks/dab98890d77a6b0b2741.js +1 -0
- package/assets/esri/core/workers/chunks/e2ac387e154d68fd10ca.js +1 -0
- package/assets/esri/core/workers/chunks/e39259ff441fb67cd3e4.js +1 -0
- package/assets/esri/core/workers/chunks/e3c152eeaa1c95f0f2d2.js +1 -0
- package/assets/esri/core/workers/chunks/e4ae0fad312467f218df.js +1 -0
- package/assets/esri/core/workers/chunks/e50cc686db878d0a9399.js +1 -0
- package/assets/esri/core/workers/chunks/e7cd5eeb15d3783f803d.js +1 -0
- package/assets/esri/core/workers/chunks/e8042584e422044ca1d1.js +1 -0
- package/assets/esri/core/workers/chunks/e89640667b71c1bb4ee3.js +1 -0
- package/assets/esri/core/workers/chunks/e9649aa2d0fdd28d91ac.js +1 -0
- package/assets/esri/core/workers/chunks/ee31801144602ce816d3.js +1 -0
- package/assets/esri/core/workers/chunks/eff8a1a880e0eb1a6814.js +1 -0
- package/assets/esri/core/workers/chunks/f2b7c61462f530d812c4.js +1 -0
- package/assets/esri/core/workers/chunks/f56404d401dfbce29473.js +1 -0
- package/assets/esri/core/workers/chunks/f87416f2aa791cd1bebe.js +1 -0
- package/assets/esri/core/workers/chunks/{f3744b12a5d0d8ca8621.js → fa65aafac2b99478c32a.js} +1 -1
- package/assets/esri/core/workers/chunks/fb14a0c8d2edf868838c.js +1 -0
- package/assets/esri/core/workers/chunks/fb8a24aa04bd2fa43241.js +1 -0
- package/assets/esri/core/workers/chunks/fbb27d2cef962f725180.js +1 -0
- package/assets/esri/core/workers/chunks/{3c6e7dcb79d13e8aecc5.js → fc965ace82bef4c6111b.js} +1 -1
- package/assets/esri/core/workers/chunks/{5954f02c3901b28d8e73.js → fd9382e5207b6da74b91.js} +1 -1
- package/assets/esri/core/workers/chunks/fdb370546be4ad552959.js +1 -0
- package/assets/esri/core/workers/chunks/fefac70ebe29dff54b4c.js +1 -0
- package/chunks/BlurEmission.glsl.js +4 -17
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/ColorMaterial.glsl.js +1 -1
- package/chunks/Component.glsl.js +1 -1
- package/chunks/EmissionComposite.glsl.js +2 -2
- package/chunks/Envelope.js +1 -1
- package/chunks/Envelope2D.js +1 -1
- package/chunks/Fog.glsl.js +3 -3
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/ImageMaterial.glsl.js +1 -1
- package/chunks/LineMarker.glsl.js +2 -2
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/RealisticAtmosphere.glsl.js +7 -9
- package/chunks/RealisticAtmosphereCompositing.glsl.js +6 -10
- package/chunks/RibbonLine.glsl.js +2 -2
- package/chunks/Terrain.glsl.js +27 -27
- package/chunks/UPCPointRenderer.glsl.js +100 -0
- package/chunks/UnitFactory.js +1 -1
- package/chunks/Water.glsl.js +24 -24
- package/chunks/arcade.js +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +4 -4
- package/chunks/arcgis-knowledge-client-core.js +4 -4
- package/chunks/array.js +1 -1
- package/chunks/basis_encoder.js +3 -3
- package/chunks/basis_transcoder.js +2 -2
- package/chunks/draco_mesh_decoder.js +2 -2
- package/chunks/dxt_encoder.js +3 -3
- package/chunks/i3s.js +2 -2
- package/chunks/languageUtils.js +1 -1
- package/chunks/lclayout.js +3 -3
- package/chunks/lerc-wasm.js +1 -1
- package/chunks/lyr3DWorker.js +2 -2
- package/chunks/pe.js +1 -1
- package/chunks/projector.js +1 -1
- package/chunks/qb3-wasm.js +1 -1
- package/chunks/vxlLayer.js +2 -2
- package/colorUtils.js +1 -1
- package/config.js +1 -1
- package/core/AsyncUpdate.js +1 -1
- package/core/Clonable.js +1 -1
- package/core/Identifiable.js +1 -1
- package/core/Loadable.js +1 -1
- package/core/MultiOriginJSONSupport.js +1 -1
- package/core/NumericIdentifiable.js +1 -1
- package/core/Promise.js +1 -1
- package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
- package/core/accessorSupport/metadata.js +1 -1
- package/core/accessorSupport/trackingUtils.js +1 -1
- package/core/asyncUtils.js +1 -1
- package/core/handleUtils.js +1 -1
- package/core/mapCollectionUtils.js +1 -1
- package/core/reactiveUtils.js +1 -1
- package/core/sql/SqlTimestampOffset.js +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql/WhereGrammar.js +1 -1
- package/core/sql/writeUtils.js +1 -1
- package/core/sql.js +1 -1
- package/core/urlUtils.js +1 -1
- package/core/workers/workers.js +1 -1
- package/geohash/GeohashCell.js +1 -1
- package/geohash/GeohashTree.js +1 -1
- package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +11 -56
- package/geometry/coordinateConversion/support/Conversion.d.ts +5 -17
- package/geometry/coordinateConversion/support/Format.d.ts +6 -30
- package/geometry/coordinateConversion/types.d.ts +15 -15
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/support/MeshMaterial.js +1 -1
- package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
- package/geometry/support/meshUtils/elevationSampler.js +1 -1
- package/graphic/AggregateGraphicOrigin.js +1 -1
- package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
- package/graphic/BuildingGraphicOrigin.js +1 -1
- package/graphic/CSVGraphicOrigin.js +1 -1
- package/graphic/CatalogGraphicOrigin.js +1 -1
- package/graphic/DimensionFeatureGraphicOrigin.js +1 -1
- package/graphic/FeatureGraphicOrigin.js +1 -1
- package/graphic/GeoJSONGraphicOrigin.js +1 -1
- package/graphic/GeoRSSGraphicOrigin.js +1 -1
- package/graphic/ImageryGraphicOrigin.js +1 -1
- package/graphic/ImageryTileGraphicOrigin.js +1 -1
- package/graphic/KMLGraphicOrigin.js +1 -1
- package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
- package/graphic/LinkChartGraphicOrigin.js +1 -1
- package/graphic/MapImageGraphicOrigin.js +1 -1
- package/graphic/MapNotesGraphicOrigin.js +1 -1
- package/graphic/OGCFeatureGraphicOrigin.js +1 -1
- package/graphic/OrientedImageryGraphicOrigin.js +1 -1
- package/graphic/ParquetGraphicOrigin.js +1 -1
- package/graphic/PointCloudGraphicOrigin.js +1 -1
- package/graphic/SceneGraphicOrigin.js +1 -1
- package/graphic/SketchGraphicOrigin.js +1 -1
- package/graphic/StreamGraphicOrigin.js +1 -1
- package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
- package/graphic/TileGraphicOrigin.js +1 -1
- package/graphic/TrackGraphicOrigin.js +1 -1
- package/graphic/VectorTileGraphicOrigin.js +1 -1
- package/graphic/VoxelGraphicOrigin.js +1 -1
- package/graphic/WCSGraphicOrigin.js +1 -1
- package/graphic/WFSGraphicOrigin.js +1 -1
- package/graphic/getLayerViewLayer.js +2 -0
- package/identity/IdentityManagerBase.js +1 -1
- package/kernel.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/LinkChartLayer.d.ts +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/PointCloudLayer.js +3 -3
- package/layers/VectorTileLayer.d.ts +17 -10
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/WMTSLayer.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.js +1 -1
- package/layers/mixins/APIKeyMixin.js +1 -1
- package/layers/mixins/ArcGISCachedService.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/mixins/ArcGISService.js +1 -1
- package/layers/mixins/BlendLayer.js +1 -1
- package/layers/mixins/CustomParametersMixin.js +1 -1
- package/layers/mixins/DataElementMixin.js +1 -1
- package/layers/mixins/DataSeriesLayer.js +1 -1
- package/layers/mixins/DisplayFilteredLayer.js +1 -1
- package/layers/mixins/EditBusLayer.js +1 -1
- package/layers/mixins/FeatureEffectLayer.js +1 -1
- package/layers/mixins/FeatureLayerBase.js +1 -1
- package/layers/mixins/FeatureReductionLayer.js +1 -1
- package/layers/mixins/HeightModelInfoMixin.js +1 -1
- package/layers/mixins/OperationalLayer.js +1 -1
- package/layers/mixins/OrderedLayer.js +1 -1
- package/layers/mixins/PortalLayer.js +1 -1
- package/layers/mixins/PublishableLayer.js +1 -1
- package/layers/mixins/RasterJobHandlerMixin.js +1 -1
- package/layers/mixins/RasterPresetRendererMixin.js +1 -1
- package/layers/mixins/RefreshableLayer.js +1 -1
- package/layers/mixins/ReloadableLayer.js +1 -1
- package/layers/mixins/ScaleRangeLayer.js +1 -1
- package/layers/mixins/SceneService.js +1 -1
- package/layers/mixins/SublayersOwner.js +1 -1
- package/layers/mixins/TemporalLayer.js +1 -1
- package/layers/mixins/TrackableLayer.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/datasets/pixelReader.js +1 -1
- package/layers/raster/datasets/xmlUtilities.js +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/raster/formats/Qb3.js +1 -1
- package/layers/raster/formats/TiffDecoder.js +1 -1
- package/layers/raster/formats/blosc.js +1 -1
- package/layers/raster/formats/tiffParser.js +1 -1
- package/layers/raster/formats/tiffSpatialReferenceUtils.js +2 -0
- package/layers/raster/formats/tiffTag.js +1 -1
- package/layers/raster/functions/colormaps.js +1 -1
- package/layers/support/TitleCreator.js +1 -1
- package/layers/support/WMTSSublayer.js +1 -1
- package/layers/support/geospatialPDFUtils.js +1 -1
- package/layers/support/imageUtils.js +1 -1
- package/layers/support/labelUtils.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/layers/video/VideoController.js +14 -14
- package/legend/ActiveLayerInfo.js +1 -1
- package/legend/support/sizeRampUtils.js +1 -1
- package/libs/basisu/BasisUEncoder.js +1 -1
- package/libs/basisu/BasisUTranscoder.js +1 -1
- package/libs/dracoMeshDecoder/dracoMeshDecoder.js +1 -1
- package/libs/dxtEncoder/DXTEncoder.js +1 -1
- package/libs/i3s/I3SModule.js +1 -1
- package/libs/librust-parquet/loadParquetModule.js +1 -1
- package/libs/librust-text/loadTextModule.js +1 -1
- package/libs/linkchartlayout/LinkChartLayout.js +1 -1
- package/libs/maquette-advanced-projector/projector.js +1 -1
- package/package.json +2 -2
- package/popup/FeaturesModel.d.ts +6 -0
- package/popup/FeaturesModel.js +1 -1
- package/portal/PortalUser.js +1 -1
- package/renderers/mixins/VisualVariablesMixin.js +1 -1
- package/renderers/visualVariables/VisualVariableFactory.js +1 -1
- package/rest/identify.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
- package/rest/layerSources/utils.js +1 -1
- package/rest/networks/validateNetworkTopology.js +1 -1
- package/rest/support/CameraInfoMixin.js +1 -1
- package/rest/support/NormalizationBinParametersMixin.js +1 -1
- package/rest/support/generateRendererUtils.js +1 -1
- package/smartMapping/raster/renderers/vectorField.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
- package/smartMapping/symbology/color.js +1 -1
- package/smartMapping/symbology/support/Theme.js +1 -1
- package/support/BasemapStyle.js +1 -1
- package/support/LayersMixin.js +1 -1
- package/support/TablesMixin.js +1 -1
- package/support/actions/ActionBase.d.ts +14 -2
- package/support/actions/ActionBase.js +1 -1
- package/support/actions/ActionButton.js +1 -1
- package/support/actions/ActionToggle.js +1 -1
- package/support/loadArcade.js +1 -1
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/utils.js +1 -1
- package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/bitmapUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/surface.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/BitmapTileLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/BuildingSublayerView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/LayerView3D.js +1 -1
- package/views/3d/layers/Lyr3DWorker.js +1 -1
- package/views/3d/layers/PointCloudIntersector.js +2 -0
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/layers/UPCPointRenderer.js +2 -0
- package/views/3d/layers/UPCPointRendererNode.js +2 -0
- package/views/3d/layers/UpdatablePointCloudLayerView3D.js +2 -0
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/PointCloudHighlights.js +1 -1
- package/views/3d/layers/i3s/PointCloudNodeHighlights.js +2 -0
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/i3s/PointCloudRendererNode.js +1 -1
- package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
- package/views/3d/layers/support/GraphicsProcessorLayerView3D.js +1 -1
- package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
- package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
- package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +9 -9
- package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +19 -19
- package/views/3d/webgl-engine/core/shaderLibrary/outputEmission.glsl.js +5 -0
- package/views/3d/webgl-engine/core/shaderLibrary/{util/CloudsParallaxShading.glsl.js → renderClouds.glsl.js} +5 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js +1 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +7 -7
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/blendLayers.glsl.js +9 -9
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +30 -53
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +15 -15
- package/views/3d/webgl-engine/materials/renderers/BufferCache.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +12 -14
- package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/UPCPointRenderer.glsl.js +2 -0
- package/views/3d/webgl-engine/shaders/UPCPointRendererTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/UPCPointRendererTechniqueConfiguration.js +2 -0
- package/views/BreakpointsOwner.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/View.d.ts +27 -1
- package/views/View.js +1 -1
- package/views/Viewport2DBaseMixin.js +1 -1
- package/views/Viewport2DMixin.js +1 -1
- package/views/animation/pointToPoint/Animation.js +1 -1
- package/views/interactive/Tooltip.d.ts +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/content/TooltipContent.js +1 -1
- package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
- package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
- package/views/layers/MapImageLayerView.js +1 -1
- package/views/layers/PointCloudLayerView.js +1 -1
- package/views/layers/RefreshableLayerView.js +1 -1
- package/views/layers/WMSLayerView.js +1 -1
- package/views/overlay/ViewOverlay.js +1 -1
- package/views/support/flow/utils.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/types.d.ts +15 -0
- package/views/webgl/AllocationTracer.js +1 -1
- package/views/webgl/InstanceCounter.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/ShaderBuilder.js +23 -23
- package/views/webgl/ShaderTranspiler.js +1 -1
- package/views/webgl/capabilities/DisjointTimerQuery.js +1 -1
- package/views/webgl/capabilities.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +1 -1
- package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -0
- package/widgets/CoordinateConversion/support/Format.d.ts +1 -0
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Feature/support/FeatureContentMixin.js +1 -1
- package/widgets/FeatureTable/support/EditableColumnTemplateMixin.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/DrawHandlerMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedSketchHandlerMixin.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/ToolbarGroupBase.js +1 -1
- package/widgets/smartMapping/support/utils.js +1 -1
- package/widgets/support/AnalysisViewModelMixin.js +1 -1
- package/widgets/support/AnchorElementViewModel.js +1 -1
- package/widgets/support/GoTo.js +1 -1
- package/widgets/support/InteractiveToolViewModelMixin.js +1 -1
- package/assets/esri/core/workers/chunks/0329fa3aa3403f1c243b.js +0 -1
- package/assets/esri/core/workers/chunks/04f09e1afda92cbe09f5.js +0 -1
- package/assets/esri/core/workers/chunks/0a97b1974367382cfdf5.js +0 -1
- package/assets/esri/core/workers/chunks/0b74d353f80974ff6fea.js +0 -1
- package/assets/esri/core/workers/chunks/0e100855bb3832a68e4b.js +0 -1
- package/assets/esri/core/workers/chunks/0ede8ba757fd0976d485.js +0 -1
- package/assets/esri/core/workers/chunks/0f39576806866cff777d.js +0 -1
- package/assets/esri/core/workers/chunks/0fea695721a818955abf.js +0 -1
- package/assets/esri/core/workers/chunks/10499abb7678e95d9f05.js +0 -1
- package/assets/esri/core/workers/chunks/110f78d5e78732750097.js +0 -1
- package/assets/esri/core/workers/chunks/1507297550c3cd1268e2.js +0 -1
- package/assets/esri/core/workers/chunks/21aa29039a95debd7f44.js +0 -1
- package/assets/esri/core/workers/chunks/29b74a3ff03d3c8b65dc.js +0 -1
- package/assets/esri/core/workers/chunks/2a84c9a81ec2bed3d4e5.js +0 -1
- package/assets/esri/core/workers/chunks/2ad6db80a508285a3e5d.js +0 -1
- package/assets/esri/core/workers/chunks/2b87d5b8931305b11ff6.js +0 -1
- package/assets/esri/core/workers/chunks/2f07dc632e51fddb2d48.js +0 -1
- package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +0 -1
- package/assets/esri/core/workers/chunks/3169d639ab54bf508e2c.js +0 -1
- package/assets/esri/core/workers/chunks/3354f1fa90f8ce4c8fde.js +0 -1
- package/assets/esri/core/workers/chunks/3809a8b3f31bb811d964.js +0 -1
- package/assets/esri/core/workers/chunks/38bba952c38af5a150e7.js +0 -1
- package/assets/esri/core/workers/chunks/3982409149571a827390.js +0 -1
- package/assets/esri/core/workers/chunks/3aea09191b737dc1de70.js +0 -1
- package/assets/esri/core/workers/chunks/3b11e4d2e69b7aea1d65.js +0 -1
- package/assets/esri/core/workers/chunks/3c1651e9e8d2e83d22df.js +0 -1
- package/assets/esri/core/workers/chunks/3df6631895d0a7109e00.js +0 -1
- package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +0 -1
- package/assets/esri/core/workers/chunks/3f8d66d8447036f122ae.js +0 -1
- package/assets/esri/core/workers/chunks/420c6a14107a77ddad36.js +0 -1
- package/assets/esri/core/workers/chunks/421b8244d01736d82e7a.js +0 -1
- package/assets/esri/core/workers/chunks/457bd1bd37c67b61efe8.js +0 -1
- package/assets/esri/core/workers/chunks/48b60ff59afbae865de1.js +0 -1
- package/assets/esri/core/workers/chunks/4953314fd9afd52b6eec.js +0 -1
- package/assets/esri/core/workers/chunks/4cf8bddc3e0619e34424.js +0 -1
- package/assets/esri/core/workers/chunks/4d0bb5e4a1d789cc0d75.js +0 -1
- package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +0 -1
- package/assets/esri/core/workers/chunks/5060be52a380fc4920f8.js +0 -1
- package/assets/esri/core/workers/chunks/5082cdc3e91e1c6d1070.js +0 -1
- package/assets/esri/core/workers/chunks/52ded087d19a93e29d93.js +0 -1
- package/assets/esri/core/workers/chunks/53bbb9aa6e4e4a0a8121.js +0 -1
- package/assets/esri/core/workers/chunks/54d3cb7d95d948998591.js +0 -1
- package/assets/esri/core/workers/chunks/560ebf5524ade7d1f85b.js +0 -1
- package/assets/esri/core/workers/chunks/5d75fcaded78f76efd3e.js +0 -1
- package/assets/esri/core/workers/chunks/5f7505ada0991cfbdd84.js +0 -1
- package/assets/esri/core/workers/chunks/601d668e70c5d72fe58c.js +0 -1
- package/assets/esri/core/workers/chunks/6737b2a4a70bbdafaf67.js +0 -1
- package/assets/esri/core/workers/chunks/6a339a47e765b9937dd7.js +0 -1
- package/assets/esri/core/workers/chunks/6c21964eb7c25c8b1e9a.js +0 -1
- package/assets/esri/core/workers/chunks/6fd10891506925560443.js +0 -29
- package/assets/esri/core/workers/chunks/71a05edd6f7f3197e621.js +0 -1
- package/assets/esri/core/workers/chunks/72b7e7b518c88b7569dd.js +0 -1
- package/assets/esri/core/workers/chunks/73918ca7fdf41272d941.js +0 -1
- package/assets/esri/core/workers/chunks/75274ac3ddf7c45f47d7.js +0 -1
- package/assets/esri/core/workers/chunks/7673217a688d739141e2.js +0 -1
- package/assets/esri/core/workers/chunks/76869c14dd7ffaae7eff.js +0 -1
- package/assets/esri/core/workers/chunks/7b156905d168bf973518.js +0 -1
- package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +0 -1
- package/assets/esri/core/workers/chunks/7bd5a074d9f4ba137649.js +0 -1
- package/assets/esri/core/workers/chunks/7c13d7754fc914a87817.js +0 -1
- package/assets/esri/core/workers/chunks/7dc2e714234b2cee8701.js +0 -1
- package/assets/esri/core/workers/chunks/80d1267606383ae537f2.js +0 -1
- package/assets/esri/core/workers/chunks/835e0315661003caa71f.js +0 -1
- package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +0 -1
- package/assets/esri/core/workers/chunks/86578c191d76062157ec.js +0 -1
- package/assets/esri/core/workers/chunks/87d6e99d83db9a8cda7c.js +0 -1
- package/assets/esri/core/workers/chunks/8c9934d30655dd2c48da.js +0 -1
- package/assets/esri/core/workers/chunks/9117c9b720c9ba6e7a6e.js +0 -1
- package/assets/esri/core/workers/chunks/939fb9a8c301ace07186.js +0 -1
- package/assets/esri/core/workers/chunks/94a38c9b3d086b37242f.js +0 -1
- package/assets/esri/core/workers/chunks/98e1751f888975532afc.js +0 -1
- package/assets/esri/core/workers/chunks/9d61f10f2bef15b5811d.js +0 -1
- package/assets/esri/core/workers/chunks/9dcf5be203f8b1e47d9d.js +0 -1
- package/assets/esri/core/workers/chunks/9e372af03d62fa5ad10e.js +0 -1
- package/assets/esri/core/workers/chunks/9eb00bb8dab995c2dcb3.js +0 -1
- package/assets/esri/core/workers/chunks/9ed81757937fe08363ed.js +0 -1
- package/assets/esri/core/workers/chunks/9fe07947cf4ec44014e8.js +0 -1
- package/assets/esri/core/workers/chunks/a1d265614d038eb603f7.js +0 -1
- package/assets/esri/core/workers/chunks/a3d02885d6962b49eee4.js +0 -1
- package/assets/esri/core/workers/chunks/a66d6298236d59a615db.js +0 -1
- package/assets/esri/core/workers/chunks/a710c7a0584d9e45a469.js +0 -1
- package/assets/esri/core/workers/chunks/ab784764ddf9d7f693a1.js +0 -1
- package/assets/esri/core/workers/chunks/ace210d313ce53f3ae10.js +0 -1
- package/assets/esri/core/workers/chunks/b7426e5f290573cb9689.js +0 -1
- package/assets/esri/core/workers/chunks/b88e1084097a93a89f61.js +0 -1
- package/assets/esri/core/workers/chunks/baa5aa0670b23db86b50.js +0 -1
- package/assets/esri/core/workers/chunks/c0867890a84b4c98e0ba.js +0 -1
- package/assets/esri/core/workers/chunks/c1a551c4aa77f123d091.js +0 -1
- package/assets/esri/core/workers/chunks/c58f859dec9d6675dbd6.js +0 -1
- package/assets/esri/core/workers/chunks/c7425fb5e804f0f9d4dd.js +0 -1
- package/assets/esri/core/workers/chunks/c85184baccb4004bf42b.js +0 -1
- package/assets/esri/core/workers/chunks/ccf4b5fdcdace533bcb7.js +0 -1
- package/assets/esri/core/workers/chunks/d5bb6f479c0cdfc21d8a.js +0 -1
- package/assets/esri/core/workers/chunks/d689e7c685dd9a444d19.js +0 -1
- package/assets/esri/core/workers/chunks/d8b84d21144a58b6b911.js +0 -1
- package/assets/esri/core/workers/chunks/d8ffb1502def5c85740b.js +0 -1
- package/assets/esri/core/workers/chunks/db96d1d9f6d1a4d7fd2a.js +0 -1
- package/assets/esri/core/workers/chunks/de35baceeb815e6befd5.js +0 -1
- package/assets/esri/core/workers/chunks/e0341def2d81e679a200.js +0 -1
- package/assets/esri/core/workers/chunks/e164198dbb87ee202ba1.js +0 -1
- package/assets/esri/core/workers/chunks/e4eb6fdf5115bed48856.js +0 -1
- package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +0 -1
- package/assets/esri/core/workers/chunks/e59271f8b142a7602b7a.js +0 -1
- package/assets/esri/core/workers/chunks/eef3fa804e456beac4c1.js +0 -1
- package/assets/esri/core/workers/chunks/f319b59228b64e7f9008.js +0 -1
- package/assets/esri/core/workers/chunks/f42adcea81390fb21c66.js +0 -1
- package/assets/esri/core/workers/chunks/f4fcf87da4495584223d.js +0 -1
- package/assets/esri/core/workers/chunks/f52d081bbde5c95265cf.js +0 -1
- package/assets/esri/core/workers/chunks/f7ab4bf14ec8e986ef7c.js +0 -1
- package/assets/esri/core/workers/chunks/f92c92c0fd1b5b33ca21.js +0 -1
- package/assets/esri/core/workers/chunks/f989588dfdbb69056491.js +0 -1
- package/assets/esri/core/workers/chunks/fbd5f3b81cd9f061824d.js +0 -1
- package/assets/esri/core/workers/chunks/fc5b920f9756e11c2f88.js +0 -1
- package/assets/esri/core/workers/chunks/fdcc5fe4630a4ccf58de.js +0 -1
- package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +0 -1
- package/assets/esri/core/workers/chunks/ff225735eba7f9130e19.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[8595],{82806(e,t,i){var r=i(32198),n=i(91429),l=i(56507),s=i(49186),a=i(53966),o=i(86738),u=i(16930),c=i(21325),h=i(12711),d=i(85676),f=i(94359),p=i(78888),m=i(22048),g=i(49410),y=i(34606),x=i(51508),w=i(7548),R=i(23636),b=i(4366),I=i(34930),v=i(99235),_=i(37373),S=i(51927),C=i(60694),k=i(10873),M=i(45617),T=i(33446),A=i(43577),P=i(13868),F=i(22796),z=i(69409),B=i(87045),D=i(93223),J=i(36005);i.d(t,["b",0,e=>{let t=e,H=class extends t{constructor(...e){super(...e),this._draRasterConfig=null,this._isConstructedFromFunctionRaster=!1,this.bandIds=null,this.copyright=null,this.interpolation=null,this.multidimensionalSubset=null,this.raster=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.spatialReference=null,this.symbolizer=null,this._isConstructedFromFunctionRaster=(0,w.qg)(e[0]?.raster)}destroy(){this._draRasterConfig?.rasterJobHandler?.destroy(),this._shutdownJobHandler()}get fullExtent(){return this.serviceRasterInfo?.extent}set multidimensionalDefinition(e){this._set("multidimensionalDefinition",e),this.updateRenderer()}set rasterFunction(e){"none"===e?.functionName?.toLowerCase()&&(e=void 0),this._set("rasterFunction",e),this.updateRasterFunction()}set url(e){this._set("url",(0,C.Jf)(e,a.A.getLogger(this)))}get renderer(){if("imagery-tile"!==this.type)return this.internalRenderer;let{activePresetRendererName:e,presetRenderers:t}=this;return e?(t?.find(({name:t})=>t===e))?.renderer.clone():this.internalRenderer}set renderer(e){"imagery-tile"===this.type&&(this.activePresetRendererName=null),this.internalRenderer=e}set internalRenderer(e){null==e&&null==this.rasterFunction?this._configDefaultRenderer("override"):(this._set("internalRenderer",e),this.updateRenderer())}readRenderer(e,t,i){let r=t?.layerDefinition?.drawingInfo?.renderer;return(0,f.LF)(r,i)||void 0}async computeStatisticsHistograms(e,t){await this.load(t),e=(0,l.PZ)(m.A,e).clone();let{serviceRasterInfo:i}=this;if(null==i)throw new s.A("imagery-tile-mixin:compute-statistics-histograms","serviceRasterInfo must be specified");let{geometry:r}=e;if(null==r)throw new s.A("imagery-tile-mixin:compute-statistics-histograms","geometry must be specified");let n=r,{spatialReference:a}=i;if(!r.spatialReference.equals(a)){await(0,_.Hh)();let e="extent"===r.type?(0,_._l)(r,a):(0,_.uk)(r,a);if(null==e)throw new s.A("imagery-tile-mixin:compute-statistics-histograms","geometry cannot be projected to the data source");n=e}let u=e.pixelSize??new o.A({x:i.pixelSize.x,y:i.pixelSize.y,spatialReference:a}),{extent:c,width:h,height:d}=(0,I.b7)(i,n,u),f=await this.fetchPixels(c,h,d,{...t,interpolation:"nearest"});if(null==f.pixelBlock)throw new s.A("imagery-tile-mixin:compute-statistics-histograms","failed to fetch pixels");let p=await(0,I.$Q)(f.pixelBlock,c,n),g=this._rasterJobHandler;return g?g.computeStatisticsHistograms({pixelBlock:p},t):(0,S.eH)(p)}normalizeRasterFetchOptions(e){let{multidimensionalInfo:t}=this.serviceRasterInfo??{};if(null==t)return e;let i=(0,b.XU)({rasterInfo:this.raster.rasterInfo,multidimensionalDefinition:e.multidimensionalDefinition||this.multidimensionalDefinition,timeExtent:e.timeExtent??this.timeExtent,multidimensionalSubset:this.multidimensionalSubset});return{...e,multidimensionalDefinition:i,timeExtent:void 0}}async updateRasterFunction(){return!this.loaded||"imagery-tile"!==this.type||!this.rasterFunction&&!this._cachedRasterFunctionJson||JSON.stringify(this.rasterFunction)===JSON.stringify(this._cachedRasterFunctionJson)||(this._cachedRasterFunctionJson=this.rasterFunction?.toJSON(),this._rasterFunctionUpdatePromise=this._updateRasterFunction()),this._rasterFunctionUpdatePromise}async updateRenderer(){let{loaded:e,symbolizer:t,renderer:i}=this;if(!e||!t||!i)return;let{rasterInfo:r}=this.raster,n=(0,b.ct)(r,{multidimensionalDefinition:this.multidimensionalDefinition,multidimensionalSubset:this.multidimensionalSubset})?.name,l=(0,h.m7)(r,n);return this._updateSymbolizer(t,i,n,l)}async applyRenderer(e,t,i){let r=e?.pixelBlock;if(!(null!=r&&r.pixels&&r.pixels.length>0))return null;await this.updateRenderer();let n=this.bandIds??[],{pixelBlock:l}=await this._symbolize({pixelData:e,simpleStretchParams:t,bandIds:n,symbolizer:this.symbolizer},i);return l}getRawDisplayBandIds(){let{bandIds:e,raster:t}=this;if(this.rasterFunction&&(0,w.qg)(t)){let i=t.rasterFunction.rawInputBandIds;e=e?.length&&i?.length&&1!==t.rasterInfo.bandCount?e.map(e=>i[Math.min(e,i.length-1)]):i}return e&&e.length>3&&e.every((e,t)=>e===t)?null:e}getTileUrl(e,t,i){return"RasterTileServer"===this.raster.datasetFormat?`${this.url}/tile/${e}/${t}/${i}`:""}getCompatibleTileInfo(e,t,i=!1){if(!this.loaded||null==t)return null;if(i&&e.equals(this.spatialReference))return this.tileInfo;let r=(0,c.Vp)(e);return B.A.create({size:256,spatialReference:e,origin:r?{x:r.origin[0],y:r.origin[1]}:{x:t.xmin,y:t.ymax}})}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent?.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}async fetchTile(e,t,i,r={}){if(N(this),r.requestAsImageElement){let n=this.getTileUrl(e,t,i),{data:l}=await(0,p.A)(n,{responseType:"image",query:{...this.refreshParameters,...this.raster.ioConfig.customFetchParameters},signal:r.signal});return l}let{serviceRasterInfo:n}=this;if(null!=n.multidimensionalInfo&&null==(r=this.normalizeRasterFetchOptions(r)).multidimensionalDefinition){let l=r.tileInfo||n.storageInfo.tileInfo,s=this.raster.getTileExtentFromTileInfo(e,t,i,l);if(s)return{extent:s,pixelBlock:null}}return await this._initJobHandler(),await this.updateRasterFunction(),"raster-shaded-relief"===this.renderer?.type&&(r={...r,buffer:{cols:1,rows:1}}),r={...r,refreshParameters:this.refreshParameters},this.raster.fetchTile(e,t,i,r)}async fetchImageBitmapTile(e,t,i,r={}){N(this);let n=this.getTileUrl(e,t,i),{data:l}=await(0,p.A)(n,{responseType:"blob",query:{...this.refreshParameters,...this.raster.ioConfig.customFetchParameters},signal:r?.signal});return(0,T.Cp)(l,e,t,i,r)}async fetchPixels(e,t,i,r={}){if(null!=this.serviceRasterInfo.multidimensionalInfo&&null==(r=this.normalizeRasterFetchOptions(r)).multidimensionalDefinition)return{extent:e,pixelBlock:null};await this._initJobHandler(),await this.updateRasterFunction(),t=Math.round(t),i=Math.round(i);let n=await this.raster.fetchPixels(e,t,i,r);return r.bandIds?.length&&!this.raster.rasterInfo.storageInfo.isBsqTile&&(n.pixelBlock=n.pixelBlock?.extractBands(r.bandIds)),n}async getSamples(e,t){await this.load();let i=(0,l.PZ)(y.A,e).clone();if(i.interpolation&&"nearest"!==i.interpolation)throw new s.A("imagery-tile-mixin:get-samples","only nearest interpolation is currently supported");let r=i.mosaicRule?.multidimensionalDefinition,n={...t,multidimensionalDefinition:r},a=(await this._getSampleLocations(i)).map(e=>this.identify(e,n).then(t=>(t.location=e,t))),o=(await Promise.all(a)).flatMap((e,t)=>this._convertRasterIdentifyResultToSample(e,t));return new x.A({samples:o})}async identify(e,t={}){await this.load();let i=(0,l.PZ)(o.A,e).clone().normalize(),{raster:r,serviceRasterInfo:n}=this;if(null!=n?.multidimensionalInfo&&(!n.hasMultidimensionalTranspose||!(0,b.DY)(t.multidimensionalDefinition)&&!t.transposedVariableName)&&null==(t=this.normalizeRasterFetchOptions(t)).multidimensionalDefinition)return{location:i,value:null};let a,u=this.multidimensionalSubset?.areaOfInterest;if(u&&!u.contains(i))throw new s.A("imagery-tile-mixin:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");if(this.serviceRasterInfo?.storageInfo.isBsqTile){let e=(0,w.qg)(r)?this.getRawDisplayBandIds():this.bandIds;a=e?.length?e:void 0}return r.identify(i,{...t,bandIds:a})}hasStandardTime(){let e=this.serviceRasterInfo?.multidimensionalInfo;if(null==e||"standard-time"!==this.serviceRasterInfo?.dataType)return!1;let t=this.multidimensionalDefinition,i=t?.[0]?.variableName;return e.variables.some(e=>e.name===i&&(!t?.[0].dimensionName||e.dimensions.some(e=>"StdTime"===e.name)))}getStandardTimeValue(e){return new Date((0,b.$E)(e)).toISOString()}getMultidimensionalSubsetVariables(e){let t=e??this.serviceRasterInfo?.multidimensionalInfo;return(0,b.z2)(this.multidimensionalSubset,t)}async getDynamicRangeInputRaster(){if(!this.rasterFunction||!(0,w.qg)(this.raster)||!this._cachedRasterFunctionJson)return null;let e=JSON.stringify(this._cachedRasterFunctionJson);if(this._draRasterConfig?.functionJson===e)return this._draRasterConfig;let t=this.raster.rasterFunction.queryRasterFunction(e=>"Stretch"===e.functionName&&e.functionArguments.dynamicRangeAdjustment);if(!t)return null;let i=t.toJSON(),r=this.raster.primaryRasters.rasters,n=t.functionArguments.raster,l=i.rasterFunctionArguments;if(!n||"object"!=typeof n||!("functionName"in n))return this._draRasterConfig={functionJson:e,raster:r[0],functionArguments:l,rasterJobHandler:this._draRasterConfig?.rasterJobHandler},this._draRasterConfig;let s={raster:r[0]};r.length>1&&r.forEach(e=>s[e.url]=e);let a=(0,v.vt)(n.toJSON(),s),o=new R.A({rasterFunction:a});await o.open();let u=this._draRasterConfig?.rasterJobHandler;try{u||(u=new z.A,await u.initialize()),o.rasterJobHandler=u,await o.syncJobHandler()}catch{}return this._draRasterConfig={functionJson:e,raster:o,functionArguments:l,rasterJobHandler:u},this._draRasterConfig}_configDefaultSettings(){this._configDefaultInterpolation(),this.multidimensionalDefinition||=(0,b.fy)(this.raster.rasterInfo,{multidimensionalSubset:this.multidimensionalSubset}),this.rasterFunction&&(0,w.qg)(this.raster)&&(this._cachedRasterFunctionJson=this.rasterFunction.toJSON()),this._configDefaultRenderer()}async _initJobHandler(){if(!this._rasterJobHandler)return super._initJobHandler().then(async()=>{if(!this._rasterJobHandler)return;N(this);let{raster:e}=this;e.rasterJobHandler!==this._rasterJobHandler&&(e.rasterJobHandler=this._rasterJobHandler,(0,w.qg)(e)&&e.syncJobHandler(),this.rasterFunction&&await this.updateRasterFunction().catch(()=>{}),this.renderer&&this.updateRenderer())}).catch(()=>{})}_shutdownJobHandler(){super._shutdownJobHandler(),this.raster&&(this.raster.rasterJobHandler=null)}async _getSampleLocations(e){let{geometry:t}=e;if("point"===t.type)return[t];let{spatialReference:r,type:n}=t;if("multipoint"===n)return t.points.map(e=>new o.A({x:e[0],y:e[1],spatialReference:r}));if("polyline"===n){let n=t;if(e.sampleCount||e.sampleDistance){let{densifyExecute:r}=await Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(4642)]).then(()=>i(88411)),{lengthExecute:l}=await Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(2174)]).then(()=>i(965)),s=l(t,{unit:"meters"}),a=Math.min(e.sampleCount||100,1e3),o=e.sampleDistance;o||=s/(a+ +(2===n.paths[0].length)),n=r(t,o,{unit:"meters"})}return n.paths.flatMap(e=>e.map(e=>new o.A({x:e[0],y:e[1],spatialReference:r})))}let l=Math.min(e.sampleCount||100,1e3),s="extent"===t.type,a=s?t:t.extent,u=Math.sqrt(a.width*a.height/l),c=a.height/u,h=a.width/u,{xmin:d,ymax:f}=a,p=[];for(let e=0;e<c;e++)for(let i=0;i<h;i++){let n=new o.A({x:d+(i+.5)*u,y:f-(e+.5)*u,spatialReference:r});(s||t.contains(n))&&p.push(n)}return p}_configDefaultInterpolation(){if(null==this.interpolation){N(this);let{raster:e}=this,t=(0,h.w6)(e.rasterInfo,e.tileType,this.sourceJSON?.defaultResamplingMethod);this._set("interpolation",t)}}_configDefaultRenderer(e="no"){N(this);let{rasterInfo:t}=this.raster,i=(0,b.ct)(t,{multidimensionalDefinition:this.multidimensionalDefinition,multidimensionalSubset:this.multidimensionalSubset})?.name,r=(0,h.I8)({variableName:i,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&t.bandCount>1&&(this.bandIds=r?.bandIds??(0,h.ci)(t)),!this.renderer||"override"===e){let e=(0,h.Mm)(this.raster),n=r?.renderer??(0,h.PD)(t,{bandIds:this.bandIds,variableName:i,rasterFunctionColorRamp:e}),l=t.statistics,s=l&&l.length>0?l[0]:null,a=s?.max??0,o=s?.min??0;"WCSServer"===this.raster.datasetFormat&&"raster-stretch"===n.type&&(a>1e24||o<-1e24)&&(n.dynamicRangeAdjustment=!0,n.customStatistics=null,"none"===n.stretchType&&(n.stretchType="min-max")),this.renderer=n}let n=(0,h.$P)({...this.renderer.toJSON(),variableName:i}),l=(0,h.m7)(t,i);this.symbolizer?(this.symbolizer.rendererJSON=n,this.symbolizer.rasterInfo=l):this.symbolizer=new d.A({rendererJSON:n,rasterInfo:l});let s=this.symbolizer.bind();if(s.success){if("auto"===e){let{colormap:e}=this.raster.rasterInfo,t=this.renderer;if(null!=e&&"raster-colormap"===t.type){let e=(0,h.PD)(this.raster.rasterInfo);JSON.stringify(e)!==JSON.stringify(t)&&this._configDefaultRenderer("override")}else if("raster-stretch"===t.type){let e=this.bandIds?.length,i=t.customStatistics?.length;!t.dynamicRangeAdjustment&&i&&e&&i!==e&&this._configDefaultRenderer("override")}}}else a.A.getLogger(this).warn("imagery-tile-mixin",s.error||"The given renderer is not supported by the layer."),"auto"===e&&this._configDefaultRenderer("override")}async _updateRasterFunction(){if(this._isConstructedFromFunctionRaster&&(0,w.qg)(this.raster)){let e=this.raster.rasterFunction.toJSON();return void(!this.rasterFunction&&e&&this._set("rasterFunction",F.A.fromJSON(e)))}let e,t=this.raster,i=!1;(0,w.qg)(t)?(e=t.primaryRasters.rasters,t=e[0],i=!0):e=[t];let{rasterFunction:r}=this;if(r){let i={raster:t};e.length>1&&e.forEach(e=>i[e.url]=e);let n=(0,v.vt)(r.functionDefinition?.toJSON()??r.toJSON(),i),l=new R.A({rasterFunction:n});l.rasterJobHandler=this._rasterJobHandler,await l.open(),this.raster=l}else this.raster=t,await t.open();if(this._cachedRendererJson=void 0,!i&&!r)return;let{bandIds:n}=this,{bandCount:l}=this.raster.rasterInfo,s=n?.length?n.some(e=>e>=l):l>=3;n&&(s||this.renderer&&"raster-stretch"!==this.renderer.type)&&this._set("bandIds",null),this._configDefaultRenderer("auto")}_convertRasterIdentifyResultToSample(e,t){let{rasterInfo:i}=this.raster,r=i.storageInfo.pyramidScalingFactor**(e.pyramidLevel??0),n=(i.pixelSize.x+i.pixelSize.y)/2*r;if(!e.dataSeries?.length)return[new g.A({location:e.location,pixelValue:e.value,locationId:t,resolution:n})];let l=[];return e.dataSeries.forEach(({value:i,multidimensionalDefinition:r},s)=>{let a={Variables:r[0].variableName,Dimensions:r.flatMap(({dimensionName:e})=>e).join(",")};for(let{dimensionName:e,values:t}of r){a[e]=Array.isArray(t[0])?t[0][0]:t[0];let i=t[t.length-1];a[`${e}_Max`]=Array.isArray(i)?i[i.length-1]:i}let o=new g.A({location:e.location,pixelValue:i,rasterId:s,locationId:t,resolution:n,attributes:a});l.push(o)}),l}};function N(e){if(!e.raster||!e.serviceRasterInfo)throw new s.A("imagery-tile","no raster")}return(0,r.Cg)([(0,n.MZ)({clonable:!1})],H.prototype,"_cachedRasterFunctionJson",void 0),(0,r.Cg)([(0,n.MZ)({clonable:!1})],H.prototype,"_compatibleFullExtent",void 0),(0,r.Cg)([(0,n.MZ)({clonable:!1})],H.prototype,"_draRasterConfig",void 0),(0,r.Cg)([(0,n.MZ)({clonable:!1})],H.prototype,"_isConstructedFromFunctionRaster",void 0),(0,r.Cg)([(0,n.MZ)({clonable:!1})],H.prototype,"_rasterFunctionUpdatePromise",void 0),(0,r.Cg)([(0,n.MZ)({type:[l.jz],json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"0,1,2"!==this.bandIds?.join(",")}}}}})],H.prototype,"bandIds",void 0),(0,r.Cg)([(0,n.MZ)({json:{origins:{service:{read:{source:"copyrightText"}}}}})],H.prototype,"copyright",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!1}})],H.prototype,"fullExtent",null),(0,r.Cg)([(0,n.MZ)({json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"bilinear"!==this.interpolation}}}}}),(0,D.e)(P.SZ)],H.prototype,"interpolation",void 0),(0,r.Cg)([(0,n.MZ)()],H.prototype,"ioConfig",void 0),(0,r.Cg)([(0,n.MZ)({type:[M.A],json:{write:!0}})],H.prototype,"multidimensionalDefinition",null),(0,r.Cg)([(0,n.MZ)({type:A.A,json:{write:!0}})],H.prototype,"multidimensionalSubset",void 0),(0,r.Cg)([(0,n.MZ)()],H.prototype,"raster",void 0),(0,r.Cg)([(0,n.MZ)({type:F.A})],H.prototype,"rasterFunction",null),(0,r.Cg)([(0,n.MZ)({constructOnly:!0})],H.prototype,"serviceRasterInfo",void 0),(0,r.Cg)([(0,n.MZ)()],H.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,n.MZ)({readOnly:!0,type:u.A,json:{read:!1}})],H.prototype,"spatialReference",void 0),(0,r.Cg)([(0,n.MZ)({type:B.A})],H.prototype,"tileInfo",void 0),(0,r.Cg)([(0,n.MZ)(k.OZ)],H.prototype,"url",null),(0,r.Cg)([(0,n.MZ)({types:f.uy})],H.prototype,"renderer",null),(0,r.Cg)([(0,n.MZ)({types:f.uy,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(){let e="raster-stretch"===this.renderer?.type&&"none"===this.renderer.stretchType&&!this.renderer.useGamma;return{enabled:!this.loaded||"Raster"===this.raster.tileType||!e}}},origins:{"web-scene":{types:f.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],H.prototype,"internalRenderer",null),(0,r.Cg)([(0,J.w)("internalRenderer")],H.prototype,"readRenderer",null),(0,r.Cg)([(0,n.MZ)({clonable:!1})],H.prototype,"symbolizer",void 0),H=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.TiledImagery")],H),H}])},49859(e,t,i){i.d(t,{A:()=>J});var r=i(32198),n=i(91429),l=i(56507),s=i(49186),a=i(25482),o=i(53966),u=i(17676),c=i(563),h=i(5443),d=i(86738),f=i(16930),p=i(78888),m=i(60694),g=i(10873),y=i(45617),x=i(91806),w=i(20223),R=i(87045),b=i(94778),I=i(33196),v=i(34930),_=i(47520),S=i(37373),C=i(34251),k=i(7548),M=i(4366);const T=new Map,A=new class{constructor(e=15e3,t=5e3,i=-1){this._timer=null,this._cachedBlocks=new Map,this._size=-1,this._duration=e,this._interval=Math.min(e,t),this._size=i}decreaseRefCount(e,t){let i=e+"/"+t,r=this._cachedBlocks;if(r.has(i)){let e=r.get(i);return e.refCount--,e.refCount<=0&&(r.delete(i),e.controller&&e.controller.abort()),e.refCount}return 0}getBlock(e,t){let i=e+"/"+t,r=this._cachedBlocks;if(r.has(i)){let e=r.get(i);return e.ts=Date.now(),e.refCount++,r.delete(i),r.set(i,e),e.block}return null}putBlock(e,t,i,r){let n=this._cachedBlocks,l=e+"/"+t;if(n.has(l)){let e=n.get(l);e.ts=Date.now(),e.refCount++}else n.set(l,{block:i,ts:Date.now(),refCount:1,controller:r});this._trim(),this._updateTimer()}deleteBlock(e,t){let i=this._cachedBlocks,r=e+"/"+t;i.has(r)&&i.delete(r)}updateMaxSize(e){this._size=e,this._trim()}empty(){this._cachedBlocks.clear(),this._clearTimer()}getCurrentSize(){return this._cachedBlocks.size}_updateTimer(){if(null!=this._timer)return;let e=this._cachedBlocks;this._timer=setInterval(()=>{let t=Array.from(e),i=Date.now();for(let r=0;r<t.length&&t[r][1].ts<=i-this._duration;r++)e.delete(t[r][0]);0===e.size&&this._clearTimer()},this._interval)}_trim(){let e=this._cachedBlocks;if(-1===this._size||this._size>=e.size)return;let t=Array.from(e).sort((e,t)=>e[1].refCount-t[1].refCount||e[1].ts-t[1].ts);for(let i=0;i<t.length-this._size;i++)e.delete(t[i][0])}_clearTimer(){null!=this._timer&&(clearInterval(this._timer),this._timer=null)}}(15e3,5e3,100);function P(e,t,i){let r=T.get(e);if(!r)return null==t?A.decreaseRefCount(e,i):0;if(null==t||null==r[t])return A.decreaseRefCount(e,i);let n=r[t]?.cache,l=n?.get(i);if(n&&l){if(l.refCount--,0===l.refCount){n.delete(i);for(let e=0;e<r.length;e++)r[e]?.cache.delete(i);l.controller&&l.controller.abort()}return l.refCount}return 0}function F(e,t,i){let r=T.get(e);if(!r)return null==t?A.getBlock(e,i):null;if(null==t||null==r[t]){for(let e=0;e<r.length;e++){let t=r[e]?.cache.get(i);if(t)return t.refCount++,t.block}return A.getBlock(e,i)}let n=r[t]?.cache.get(i);if(n)return n.refCount++,n.block;for(let e=0;e<r.length;e++){if(e===t||!r[e])continue;let n=r[e]?.cache,l=n?.get(i);if(n&&l)return l.refCount++,n.set(i,l),l.block}return null}function z(e,t,i,r,n=null){let l=T.get(e);if(!l)return void(t??A.putBlock(e,i,r,n));if(null==t||null==l[t])return void A.putBlock(e,i,r,n);let s={refCount:1,block:r,isResolved:!1,isRejected:!1,controller:n};r.then(()=>s.isResolved=!0).catch(()=>s.isRejected=!0),l[t]?.cache.set(i,s)}function B(e,t,i){let r=T.get(e);r?null==t||null==r[t]?A.deleteBlock(e,i):r[t]?.cache.delete(i):t??A.deleteBlock(e,i)}let D=0,J=class extends a.o{constructor(e){super(function(e){return e?.ioConfig&&(e={...e,ioConfig:{resolution:null,bandIds:null,sampling:"closest",tileInfo:R.A.create(),...e.ioConfig}}),e}(e)),this._tileFetchQueue=new c.QueueProcessor({concurrency:32,process:(e,t)=>this.fetchRawTile(e.pyramidLevel,e.row,e.col,{...e.options,signal:t})}),this.datasetName=null,this.datasetFormat=null,this.hasUniqueSourceStorageInfo=!0,this.rasterInfo=null,this.ioConfig={sampling:"closest"},this.rawBlockRegistryIds=[],this.refresh=(0,u.sg)(async e=>{await this._openPromise;let t=await this._refresh(e);return t.dataChanged&&function(e,t){let i=T.get(e);if(i){let e=t.map(e=>i[e]).filter(e=>null!=e);for(let t of e)t&&(Array.from(t.cache.values()).forEach(e=>{!e.isResolved&&!e.isRejected&&e.controller&&e.controller.abort()}),t.cache.clear())}}(this.rasterId,this.rawBlockRegistryIds),t})}get _isGlobalWrappableSource(){let{rasterInfo:e}=this,t=(0,S.FT)(e.spatialReference);return null!=t&&e.extent.width>=t/2}get _hasNoneOrGCSShiftTransform(){let{transform:e}=this.rasterInfo;return null==e||"gcs-shift"===e.type}set rasterJobHandler(e){this._set("rasterJobHandler",e),(0,k.qg)(this)&&this.primaryRasters?.rasters?.forEach(t=>t.rasterJobHandler=e)}get rasterId(){return this.url||"rasterId-"+D++}set url(e){this._set("url",(0,m.Jf)(e,o.A.getLogger(this)))}async open(e){return this._openPromise??=(0,S.Hh)().then(()=>this._open(e)),this._openPromise}async fetchTile(e,t,i,r={}){let n=r.tileInfo||this.rasterInfo.storageInfo.tileInfo,l=this.getTileExtentFromTileInfo(e,t,i,n);if(!l)throw new s.A("imagery-tile:out-of-bounds","Level for fetch tile out of range");return r={noClip:!0,...r},this.fetchPixels(l,n.size[0],n.size[1],r)}async identify(e,t={}){e=(0,l.PZ)(d.A,e).clone().normalize();let{multidimensionalDefinition:i,timeExtent:r}=t,{rasterInfo:n}=this,{hasMultidimensionalTranspose:s,multidimensionalInfo:a}=n,{transposedVariableName:o}=t,u=null!=a&&s&&(null!=r||(0,M.DY)(i));u&&!o&&(o=null!=i&&i.length>0?i[0].variableName??void 0:a.variables[0].name,t={...t,transposedVariableName:o}),t=this._getRequestOptionsWithSliceId(t);let{spatialReference:c,extent:f}=n,{datumTransformation:p}=t,m=(0,S._I)(e,c,p);if(!f.intersects(m))return{location:m,value:null};if(null!=n.transform){let e=n.transform.inverseTransform(m);if(!n.nativeExtent.intersects(e))return{location:e,value:null};m=e}let g=null!=o&&null!=a&&n.hasMultidimensionalTranspose;if((0,k.qg)(this)){let e=this.primaryRasters.rasters[0];if(g)return e.identify(m,t);let{pixelSize:r}=n,l=3*r.x/2,s=3*r.y/2,a=new h.A({xmin:m.x-l,xmax:m.x+l,ymin:m.y-s,ymax:m.y+s,spatialReference:c}),o={interpolation:"nearest",multidimensionalDefinition:i,sliceId:t.sliceId,bandIds:t.bandIds},{pixelBlock:u}=await e.fetchPixels(a,3,3,o),{pixelBlock:d}=await this.fetchPixels(a,3,3,o);if(null==u)return{location:m,value:null};let f,p=!u.mask||u.mask[4]?u.pixels.map(e=>e[4]):null;return null!=d&&(f=!d.mask||d.mask[4]?d.pixels.map(e=>e[4]):void 0),{location:m,value:p,processedValue:f,pyramidLevel:0}}let y=0;if(!g){let{srcResolution:i}=t;if(i)i.spatialReference&&(i=(0,v.T5)(new d.A(i),c)),y=(0,S.t$)(i,n,this.ioConfig.sampling).pyramidLevel;else if(y=await this.computeBestPyramidLevelForLocation(e,t),null==y)return{location:m,value:null}}let x=this.identifyPixelLocation(m,y,null,g);if(null===x)return{location:m,value:null};let{row:w,col:R,rowOffset:b,colOffset:I,blockWidth:_}=x,C=await this._fetchRawTile(y,w,R,t);if(!C?.pixels?.length)return{location:m,value:null};let T=b*_+I;return this._processIdentifyResult(C,{srcLocation:m,position:T,pyramidLevel:y,useTransposedTile:!!g,requestSomeSlices:u,identifyOptions:t})}async fetchPixels(e,t,i,r={}){e=(0,S.Ps)(e),r=this._getRequestOptionsWithSliceId(r);let{_hasNoneOrGCSShiftTransform:n}=this;if(r.requestRawData&&n)return this._fetchPixels(e,t,i,r);let l=(0,S.FT)(e.spatialReference),s=(0,S.OM)(e);if(null==l||0===s||1===s&&this._isGlobalWrappableSource&&n)return this._fetchPixels(e,t,i,r);if(s>=3)return{extent:e,pixelBlock:null};let a=[],{xmin:o,xmax:u}=e,c=Math.round(l/(u-o)*t),d=c-Math.round((l/2-o)/(u-o)*t),f=0,p=[];for(let n=0;n<=s;n++){let m=0===n?o:-l/2,g=n===s?u-l*n:l/2,y=new h.A({xmin:m,xmax:g,ymin:e.ymin,ymax:e.ymax,spatialReference:e.spatialReference}),x=0===n?c-d:n===s?t-f:c;f+=x,p.push(x);let w=r.disableWrapAround&&n>0?null:this._fetchPixels(y,x,i,r);a.push(w)}let m=(await Promise.all(a)).map(e=>e?.pixelBlock),g=null,y={width:t,height:i};return g=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:m,srcMosaicSize:y,destDimension:null,coefs:null,sampleSpacing:null,interpolation:"nearest",alignmentInfo:null,blockWidths:p},r)).pixelBlock:(0,_.z7)(m,y,{blockWidths:p}),{extent:e,srcExtent:(0,S._l)(e,this.rasterInfo.spatialReference,r.datumTransformation),pixelBlock:g}}async fetchRawPixels(e,t,i,r={}){t={x:Math.floor(t.x),y:Math.floor(t.y)};let n=await this._fetchRawTiles(e,t,i,r),{nativeExtent:l,nativePixelSize:s,storageInfo:a}=this.rasterInfo,o=2**e,u=s.x*o,c=s.y*o,d=new h.A({xmin:l.xmin+u*t.x,xmax:l.xmin+u*(t.x+i.width-1),ymin:l.ymax-c*(t.y+i.height-1),ymax:l.ymax-c*t.y,spatialReference:l.spatialReference});if(!n)return{extent:d,srcExtent:d,pixelBlock:null};let{pixelBlocks:f,mosaicSize:p}=n;if(1===f.length&&null!=f[0]&&f[0].width===i.width&&f[0].height===i.height)return{extent:d,srcExtent:d,pixelBlock:n.pixelBlocks[0]};let m,g=e>0?a.pyramidBlockWidth:a.blockWidth,y=e>0?a.pyramidBlockHeight:a.blockHeight,x={x:t.x%g,y:t.y%y};return m=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:f,srcMosaicSize:p,destDimension:i,clipOffset:x,clipSize:i,coefs:null,sampleSpacing:null,interpolation:r.interpolation,alignmentInfo:null,blockWidths:null},r)).pixelBlock:(0,_.z7)(f,p,{clipOffset:x,clipSize:i}),{extent:d,srcExtent:d,pixelBlock:m}}fetchRawTile(e,t,i,r){throw new s.A("BaseRaster:read-not-implemented","fetchRawTile() is not implemented")}computeExtent(e){return(0,S._l)(this.rasterInfo.extent,e)}decodePixelBlock(e,t,i){return this.rasterJobHandler?this.rasterJobHandler.decode({data:e,options:t},i):(0,I.D)(e,t,i)}async request(e,t,i=0){let{customFetchParameters:r}=this.ioConfig,{range:n,query:l,headers:s}=t;i=i??t.retryCount??this.ioConfig.retryCount;let a=n?{Range:`bytes=${n.from}-${n.to}`}:null;try{return await(0,p.A)(e,{...t,query:{...l,...r},headers:{...s,...a}})}catch(r){if(i>0)return i--,this.request(e,t,i);throw r}}getSliceIndex(e){let{multidimensionalInfo:t}=this.rasterInfo;return null==t||null==e||0===e.length?null:(0,M.NG)(e,t)}getTileExtentFromTileInfo(e,t,i,r){let n=r.lodAt(e);return n?this.getTileExtent({x:n.resolution,y:n.resolution},t,i,r.origin,r.spatialReference,r.size):null}updateTileInfo(){let{storageInfo:e,spatialReference:t,extent:i,pixelSize:r}=this.rasterInfo,{pyramidResolutions:n}=e;if(!e.tileInfo){let l=[],s=e.maximumPyramidLevel||0,a=(r.x+r.y)/2,o=1/.0254*96*a;for(let e=0;e<=s&&(l.unshift(new x.A({level:s-e,resolution:a,scale:o})),e!==s);e++)if(n){let t=(n[e].x+n[e].y)/2;o*=t/a,a=t}else a*=2,o*=2;let u=new d.A({x:i.xmin,y:i.ymax,spatialReference:t});e.tileInfo=new R.A({origin:u,size:[e.blockWidth,e.blockHeight],spatialReference:t,lods:l}),e.isVirtualTileInfo=!0}}createRemoteDatasetStorageInfo(e,t=512,i=512,r){let{width:n,height:l,nativeExtent:s,pixelSize:a,spatialReference:o}=e,u=new d.A({x:s.xmin,y:s.ymax,spatialReference:o});r??=Math.max(0,Math.round(Math.log(Math.max(n,l))/Math.LN2-8));let c=this.computeBlockBoundary(s,t,i,{x:s.xmin,y:s.ymax},[a],r);e.storageInfo=new w.A({blockWidth:t,blockHeight:i,pyramidBlockWidth:t,pyramidBlockHeight:i,origin:u,firstPyramidLevel:1,maximumPyramidLevel:r,blockBoundary:c})}async computeBestPyramidLevelForLocation(e,t={}){return 0}computeBlockBoundary(e,t,i,r,n,l=0,s=2){if(1===n.length&&l>0){n=[...n];let{x:e,y:t}=n[0];for(let i=0;i<l;i++)e*=s,t*=s,n.push({x:e,y:t})}let a=[],{x:o,y:u}=r;for(let r=0;r<n.length;r++){let{x:l,y:s}=n[r];a.push({minCol:Math.floor((e.xmin-o+.1*l)/t/l),maxCol:Math.floor((e.xmax-o-.1*l)/t/l),minRow:Math.floor((u-e.ymax+.1*s)/i/s),maxRow:Math.floor((u-e.ymin-.1*s)/i/s)})}return a}getPyramidPixelSize(e){let{nativePixelSize:t}=this.rasterInfo,{pyramidResolutions:i,pyramidScalingFactor:r}=this.rasterInfo.storageInfo;if(0===e)return t;if(null!=i&&i.length)return i[e-1];let n=r**e;return{x:t.x*n,y:t.y*n}}identifyPixelLocation(e,t,i,r){let{spatialReference:n,nativeExtent:l,storageInfo:s}=this.rasterInfo,{maximumPyramidLevel:a,origin:o,transposeInfo:u}=s,c=r&&null!=u?u.tileSize[0]:s.blockWidth,h=r&&null!=u?u.tileSize[1]:s.blockHeight,d=(0,S._I)(e,n,i);if(!l.intersects(d)||t<0||t>a)return null;let{x:f,y:p}=this.getPyramidPixelSize(t),m=(o.y-d.y)/p/h,g=(d.x-o.x)/f/c,y=Math.min(h-1,Math.floor((m-Math.floor(m))*h)),x=Math.min(c-1,Math.floor((g-Math.floor(g))*c));return{pyramidLevel:t,row:Math.floor(m),col:Math.floor(g),rowOffset:y,colOffset:x,blockWidth:c,srcLocation:d}}getTileExtent(e,t,i,r,n,l){let[s,a]=l,o=r.x+i*s*e.x,u=o+s*e.x,c=r.y-t*a*e.y,d=c-a*e.y;return new h.A({xmin:o,xmax:u,ymin:d,ymax:c,spatialReference:n})}getBlockWidthHeight(e){return{blockWidth:e>0?this.rasterInfo.storageInfo.pyramidBlockWidth:this.rasterInfo.storageInfo.blockWidth,blockHeight:e>0?this.rasterInfo.storageInfo.pyramidBlockHeight:this.rasterInfo.storageInfo.blockHeight}}isBlockOutside(e,t,i){let r=this.rasterInfo.storageInfo.blockBoundary[e];return!r||r.maxRow<t||r.maxCol<i||r.minRow>t||r.minCol>i}updateImageSpaceRasterInfo(e){let{pixelSize:t}=e,{width:i,height:r}=e,n=f.A.WebMercator;e.spatialReference=n,e.extent=e.nativeExtent=new h.A({xmin:-.5,ymax:.5,xmax:i-.5,ymin:.5-r,spatialReference:n}),e.isPseudoSpatialReference=!0,e.transform=null,e.pixelSize=new d.A({x:1,y:1,spatialReference:n});let{extent:l,storageInfo:s}=e;if(s){s.origin=new d.A({x:l.xmin,y:l.ymax,spatialReference:n});let{pyramidResolutions:i,tileInfo:r}=s;if(i&&i.forEach(e=>{e.x/=t.x,e.y/=t.y}),r){r.origin=s.origin;let t=(e.nativePixelSize.x+e.nativePixelSize.y)/2;r.lods.forEach((e,i)=>{e.resolution=t*2**i,e.scale=96*e.resolution/.0254})}}}async _refresh(e){return{dataChanged:!0}}async _fetchPixels(e,t,i,r={}){let n=(0,S.OM)(e);if(n>=2)return{extent:e,pixelBlock:null};let l=this._getSourceDataInfo(e,t,i,r),{pyramidLevel:s,srcResolution:a,srcWidth:o,srcHeight:u,ul:c}=l,{srcExtent:h}=l;if(0===o||0===u)return{extent:e,srcExtent:h,pixelBlock:null};let{rasterInfo:f}=this,p=f.transform,m="gcs-shift"===p?.type,g=null!=(0,S.FT)(e.spatialReference);(m||!g)&&(n=(0,S.OM)(h,m));let y=await this._fetchRawTiles(s,c,{width:o,height:u,wrapCount:n},r);if(!y)return{extent:e,srcExtent:h,pixelBlock:null};h=y.extent;let x=f.storageInfo,w=s>0?x.pyramidBlockWidth:x.blockWidth,R=s>0?x.pyramidBlockHeight:x.blockHeight,{x:b,y:I}=f.pixelSize;if(s>0){let{pyramidResolutions:e,pyramidScalingFactor:t}=x;if(null!=e&&e[s-1])({x:b,y:I}=e[s-1]);else{let e=t**s;b*=e,I*=e}}let v=f.spatialReference,k=new d.A({x:b,y:I,spatialReference:v}),M=w===o&&R===u&&c.x%w===0&&c.y%R===0,T=new d.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference}),A=!e.spatialReference.equals(v),P=v.isGeographic?1e-9:1e-4,{datumTransformation:F}=r;if(!A&&M&&1===y.pixelBlocks.length&&w===t&&R===i&&function(e,t,i){return Math.abs(e.x-t.x)<i&&Math.abs(e.y-t.y)<i}(a,T,P))return{extent:e,srcExtent:h,srcTilePixelSize:k,pixelBlock:y.pixelBlocks[0]};let z=g&&null!=(0,S.FT)(h.spatialReference)&&this._hasNoneOrGCSShiftTransform,B=r.requestProjectedLocalDirections&&this.rasterInfo.dataType.startsWith("vector");B&&!this.rasterJobHandler&&await(0,S.Hh)();let D,J=this.rasterJobHandler?await this.rasterJobHandler.getProjectionOffsetGrid({projectedExtent:e,srcBufferExtent:h,pixelSize:T.toJSON(),datumTransformation:F,rasterTransform:p,hasWrapAround:n>0||z,isAdaptive:!1!==this.ioConfig.optimizeProjectionAccuracy,includeGCSGrid:B},r):(0,S.l0)({projectedExtent:e,srcBufferExtent:h,pixelSize:T,datumTransformation:F,rasterTransform:p,hasWrapAround:n>0||z,isAdaptive:!1,includeGCSGrid:B}),H=!r.requestRawData,N={rows:J.spacing[0],cols:J.spacing[1]},O=this._hasNoneOrGCSShiftTransform?this._getRasterTileAlignmentInfo(s,h.xmin):void 0,{pixelBlocks:E,mosaicSize:Z,isPartiallyFilled:L}=y,W=null;if(this.rasterJobHandler){let e=await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:E,srcMosaicSize:Z,destDimension:H?{width:t,height:i}:null,coefs:H?J.coefficients:null,sampleSpacing:H?N:null,projectDirections:B,gcsGrid:B?J.gcsGrid:null,isUV:"vector-uv"===this.rasterInfo.dataType,interpolation:r.interpolation,alignmentInfo:O,blockWidths:null},r);({pixelBlock:D,localNorthDirections:W}=e)}else{let e=(0,_.z7)(E,Z,{alignmentInfo:O});D=H?(0,_.$i)(e,{width:t,height:i},J.coefficients,N,r.interpolation):e,B&&J.gcsGrid&&(W=(0,_.QF)({width:t,height:i},J.gcsGrid),D=(0,C.Y2)(D,this.rasterInfo.dataType,W))}return r.requestRawData||B?{extent:e,srcExtent:h,srcTilePixelSize:k,pixelBlock:D,transformGrid:J,localNorthDirections:W,isPartiallyFilled:L}:{extent:e,srcExtent:e,srcTilePixelSize:k,pixelBlock:D}}async _fetchRawTiles(e,t,i,r){let{origin:n,blockBoundary:l}=this.rasterInfo.storageInfo,{blockWidth:s,blockHeight:a}=this.getBlockWidthHeight(e),{x:o,y:u}=t,{width:c,height:d,wrapCount:f}=i,p=this._getRasterTileAlignmentInfo(e,0);r.buffer&&(o-=r.buffer.cols,u-=r.buffer.rows,c+=2*r.buffer.cols,d+=2*r.buffer.rows);let m=0,g=0,y=0;f&&null!=p&&(({worldColumnCountFromOrigin:g,originColumnOffset:y,rightPadding:m}=p),g*p.blockWidth-m>=o+c&&(m=0));let x=Math.floor(o/s),w=Math.floor(u/a),R=Math.floor((o+c+m-1)/s),b=Math.floor((u+d+m-1)/a),I=l[e];if(!I)return null;let{minRow:v,minCol:_,maxCol:S,maxRow:C}=I;if(0===f&&(b<v||R<_||w>C||x>S))return null;let k=[],M=!1,T=null==this.ioConfig.allowPartialFill?r.allowPartialFill:this.ioConfig.allowPartialFill;for(let t=w;t<=b;t++)for(let i=x;i<=R;i++){let n=i;if(!r.disableWrapAround&&f&&null!=p&&g<=i&&(n=i-g-y),t>=v&&n>=_&&C>=t&&S>=n){let i=this._fetchRawTile(e,t,n,r);T?k.push(new Promise(e=>{i.then(t=>e(t)).catch(()=>{M=!0,e(null)})})):k.push(i)}else k.push(Promise.resolve(null))}if(0===k.length)return null;let A=await Promise.all(k),P={height:(b-w+1)*a,width:(R-x+1)*s},{spatialReference:F}=this.rasterInfo,{x:z,y:B}=this.getPyramidPixelSize(e);return{extent:new h.A({xmin:n.x+x*s*z,xmax:n.x+(R+1)*s*z,ymin:n.y-(b+1)*a*B,ymax:n.y-w*a*B,spatialReference:F}),pixelBlocks:A,mosaicSize:P,isPartiallyFilled:M}}_fetchRawTile(e,t,i,r){let{storageInfo:n}=this.rasterInfo,l=null!=n.transposeInfo&&!!r.transposedVariableName;if(!l){let r=n.blockBoundary[e];if(!r)return Promise.resolve(null);let{minRow:l,minCol:s,maxCol:a,maxRow:o}=r;if(t<l||i<s||t>o||i>a)return Promise.resolve(null)}let s=l?r.transposeVariableName:r.sliceId,a=n.isBsqTile?r.bandIds:null,o=function(e,t,i){let r=[];return null!=t&&r.push(`sliceId=${t}`),null!=i&&r.push(`bandIds=${i.join(",")}`),r.length?`${e}?${r.join("&")}`:e}(this.rasterId,s,a),c=`${e}/${t}/${i}`,h=this.ioConfig.rawBlockCacheMode??"default",d="no-cache"===h,f="minimum"===h?void 0:r.registryId,p=d?null:F(o,f,c);if(null==p){let l=d?null:new AbortController,s=l?.signal??r.signal,a=r.bandIds?.slice();if(a?.length&&n.isBsqTile){let n=new Set(a),l=[],o=Array.from(n);for(let n of o)l.push(this._tileFetchQueue.push({pyramidLevel:e,row:t,col:i,options:{...r,bandIds:[n]}},{signal:s}));p=Promise.all(l).then(e=>{if(e.some(e=>null==e))return null;if(o.length!==a.length){let t=[];for(let i of a){let r=e[o.indexOf(i)];t.includes(r)&&(r=r.clone()),t.push(r)}e=t}return this.rasterJobHandler?this.rasterJobHandler.compositeBands({pixelBlocks:e},{signal:s,transferPixelsToWorker:!0}):(0,_.Wy)(e)})}else p=this._tileFetchQueue.push({pyramidLevel:e,row:t,col:i,options:r},{signal:s});d||(z(o,f,c,p,l),p.catch(()=>B(o,f,c)))}return!d&&r.signal&&(0,u.u7)(r,()=>{P(o,f,c)}),p}_computeMagDirValues(e){let{bandCount:t,dataType:i}=this.rasterInfo;if((2!==t||"vector-magdir"!==i)&&"vector-uv"!==i||2!==e?.length||!e[0]?.length)return null;let r=e[0].length;if("vector-magdir"===i){let t=e[1].map(e=>(e+360)%360);return[e[0],t]}let[n,l]=e,s=[],a=[];for(let e=0;e<r;e++){let[t,i]=(0,C.Lu)([n[e],l[e]]);s.push(t),a.push(i)}return[s,a]}_getRasterTileAlignmentInfo(e,t){return this._rasterTileAlignmentInfo??=(0,S.DO)(this.rasterInfo),null==this._rasterTileAlignmentInfo.pyramidsInfo?null:{startX:t,halfWorldWidth:this._rasterTileAlignmentInfo.halfWorldWidth,hasGCSSShiftTransform:this._rasterTileAlignmentInfo.hasGCSSShiftTransform,...this._rasterTileAlignmentInfo.pyramidsInfo[e]}}_getSourceDataInfo(e,t,i,r={}){let n={datumTransformation:r.datumTransformation,pyramidLevel:0,pyramidResolution:null,srcExtent:null,srcHeight:0,srcResolution:null,srcWidth:0,ul:{x:0,y:0}};r.srcResolution&&(n.srcResolution=r.srcResolution,this._updateSourceDataInfo(e,n));let l=this.rasterInfo.storageInfo.maximumPyramidLevel||0,{srcWidth:s,srcHeight:a,pyramidLevel:o}=n,u=s/t,c=a/i,h=o<l&&u*c>=16,f=o===l&&this._requireTooManySrcTiles(s,a,t,i);if(h||f||0===s||0===a){let s=new d.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference}),a=(0,S.Wo)(s,this.rasterInfo.spatialReference,e,n.datumTransformation),f=!a||r.srcResolution&&a.x+a.y<r.srcResolution.x+r.srcResolution.y;if(h&&r.srcResolution&&f){let e=Math.round(Math.log(Math.max(u,c))/Math.LN2)-1;if(l-o+3>=e){let t=2**e;a={x:r.srcResolution.x*t,y:r.srcResolution.y*t}}}a&&(n.srcResolution=a,this._updateSourceDataInfo(e,n))}return this._requireTooManySrcTiles(n.srcWidth,n.srcHeight,t,i)&&(n.srcWidth=0,n.srcHeight=0),n}_requireTooManySrcTiles(e,t,i,r){let{tileInfo:n}=this.rasterInfo.storageInfo,l=e/i,s=t/r;return Math.ceil(e/n.size[0])*Math.ceil(t/n.size[1])>=256*Math.max(1,(i+r)/1024)||l>8||s>8}_updateSourceDataInfo(e,t){t.srcWidth=0,t.srcHeight=0;let{rasterInfo:i}=this,r=i.spatialReference,{srcResolution:n,datumTransformation:l}=t,{pyramidLevel:s,pyramidResolution:a,excessiveReading:o}=(0,S.t$)(n,i,this.ioConfig.sampling);if(o)return;let u=t.srcExtent||(0,S._l)(e,r,l);if(null==u)return;let c=i.transform;c&&(u=c.inverseTransform(u)),t.srcExtent=u;let{origin:h}=i.storageInfo,{width:d,height:f,ul:p}=(0,k.$g)(u,h,a,s);t.pyramidLevel=s,t.pyramidResolution=a,t.srcWidth=d,t.srcHeight=f,t.ul=p}_getRequestOptionsWithSliceId(e){return null!=this.rasterInfo.multidimensionalInfo&&null==e.sliceId&&(e={...e,sliceId:this.getSliceIndex(e.multidimensionalDefinition)}),e}_processIdentifyResult(e,t){let{srcLocation:i,position:r,pyramidLevel:n,useTransposedTile:l}=t,s=e.pixels[0].length/e.width/e.height;if(e.mask&&!e.mask[r])return{location:i,value:null};let{multidimensionalInfo:a}=this.rasterInfo;if(null==a||!l){let t=e.pixels.map(e=>e[r]),l={location:i,value:t,pyramidLevel:n},s=this._computeMagDirValues(t.map(e=>[e]));return s?.length&&(l.magdirValue=s.map(e=>e[0])),l}let o=e.pixels.map(e=>e.slice(r*s,r*s+s)),u=this._computeMagDirValues(o),{requestSomeSlices:c,identifyOptions:h}=t,d=(0,M.QW)(a,h.transposedVariableName);if(c){let e=(0,M.xx)(d,h.multidimensionalDefinition,h.timeExtent);o=o.map(t=>e.map(e=>t[e])),u=u?.map(t=>e.map(e=>t[e])),d=e.map(e=>d[e])}let f,p=e.noDataValues||this.rasterInfo.noDataValue,m={pixels:o,pixelType:e.pixelType};return null!=p&&((0,b.Sp)(m,p),f=m.mask),{location:i,value:null,dataSeries:d.map((e,t)=>{let i={value:0===f?.[t]?null:o.map(e=>e[t]),multidimensionalDefinition:e.multidimensionalDefinition.map(e=>new y.A({...e,isSlice:!0}))};return u?.length&&(i.magdirValue=[u[0][t],u[1][t]]),i}),pyramidLevel:n}}};(0,r.Cg)([(0,n.MZ)()],J.prototype,"_rasterTileAlignmentInfo",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"_tileFetchQueue",void 0),(0,r.Cg)([(0,n.MZ)({readOnly:!0})],J.prototype,"_isGlobalWrappableSource",null),(0,r.Cg)([(0,n.MZ)({readOnly:!0})],J.prototype,"_hasNoneOrGCSShiftTransform",null),(0,r.Cg)([(0,n.MZ)()],J.prototype,"_openPromise",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"rasterJobHandler",null),(0,r.Cg)([(0,n.MZ)({readOnly:!0})],J.prototype,"rasterId",null),(0,r.Cg)([(0,n.MZ)(g.OZ)],J.prototype,"url",null),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],J.prototype,"datasetName",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],J.prototype,"datasetFormat",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"hasUniqueSourceStorageInfo",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"rasterInfo",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"ioConfig",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"rawBlockRegistryIds",void 0),J=(0,r.Cg)([(0,n.$K)("esri.layers.raster.datasets.BaseRaster")],J)},23636(e,t,i){i.d(t,{A:()=>p});var r=i(32198),n=i(91429),l=i(49186),s=i(5443),a=i(86738),o=i(39829),u=i(22671),c=i(34930),h=i(47520),d=i(37373),f=i(49859);let p=class extends f.A{constructor(){super(...arguments),this.datasetFormat="Function",this.tileType="Raster",this.rasterFunction=null,this._clippingGeometry=new Map}async fetchPixels(e,t,i,r={}){let{rasters:n}=this.primaryRasters,l=!1,{interpolation:s}=r,a=this.rasterFunction.flatWebGLFunctionChain?.hasFocalFunction;!r.requestRawData&&a&&(l=1===n.length&&!r.skipRasterFunction,r={...r,interpolation:"bilinear",requestRawData:l}),r.requestRawData&&n.length>1&&!this.hasUniqueSourceStorageInfo&&(l=!1,r={...r,requestRawData:!1});let o=n.map(n=>n.fetchPixels(e,t,i,r)),u=await Promise.all(o),d=u.map(e=>e.pixelBlock),f=l||r.requestRawData?u.map(e=>e.srcTilePixelSize):void 0;if(r.skipRasterFunction||d.every(e=>null==e))return u[0];let p=u.find(e=>null!=e.pixelBlock)?.extent??e,m=await this._processPixelBlock(d,p,f),{transformGrid:g}=u[0];if(!l||null==m||null==g){let e=r.noClip?null:this.getClippingGeometry(p.spatialReference);return!r.noClip&&null!=m&&e&&(m=await(0,c.$Q)(m,p,e)),{...u[0],pixelBlock:m}}let y,x={rows:g.spacing[0],cols:g.spacing[1]};y=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:[m],srcMosaicSize:{width:m.width,height:m.height},destDimension:{width:t,height:i},coefs:g.coefficients,sampleSpacing:x,projectDirections:!1,gcsGrid:null,isUV:!1,interpolation:s,alignmentInfo:void 0,blockWidths:null},r)).pixelBlock:(0,h.$i)(m,{width:t,height:i},g.coefficients,x,s);let w=r.noClip?null:this.getClippingGeometry(e.spatialReference);return!r.noClip&&null!=y&&null!=w&&(y=await(0,c.$Q)(y,e,w)),{extent:e,srcExtent:u[0].srcExtent,pixelBlock:y,srcTilePixelSize:u[0].srcTilePixelSize}}async processOnePixel(e,t){let{extent:i,pixelBlock:r}=t;if(!r)return null;let{row:n,col:l}=e,{width:a,height:o}=r;if(n<0||n>=o||l<0||l>=a)return null;let{neighborhoodSize:u}=this.rasterFunction,c=Math.max(2,u.rows),d=Math.max(2,u.cols),f=d>>>1,p=c>>>1,m={x:Math.max(0,l-f),y:Math.max(0,n-p)},g=i.width/a,y=i.height/o,x=i.xmin+g*m.x,w=x+g*d,R=i.ymax-y*m.y,b=R-y*c,I=new s.A({xmin:x,ymin:b,xmax:w,ymax:R,spatialReference:i.spatialReference}),v=(0,h.$Q)(r,m,{width:d,height:c});if(null==v)return null;let _=await this.processPixelData({extent:I,pixelBlock:v}),S=(n-m.y)*d+(l-m.x);return _&&0!==_.mask?.[S]?_.pixels.map(e=>e[S]):null}async processPixelData(e){let{extent:t,pixelBlock:i}=e;if(!i)return null;let r=new a.A({x:t.width/i.width,y:t.height/i.height,spatialReference:t.spatialReference});return await this._processPixelBlock([i],t,[r])}getClippingGeometry(e){let t=this._clippingGeometry.get("0");if(!e||!t)return t;let i=function(e){return String(e.wkid??e.wkt??e.wkt2)}(e),r=this._clippingGeometry.get(i);return r??(r=e.equals(t.spatialReference)?t:(0,d.uk)(t,e),this._clippingGeometry.set(i,r)),r}async _open(e){let{rasterFunction:t}=this;t.isRoot=!0,this.primaryRasters?.rasters?.length?t.sourceRasters=this.primaryRasters.rasters:(this.primaryRasters=t.getPrimaryRasters(),this.rasterJobHandler&&this.primaryRasters.rasters?.forEach(e=>e.rasterJobHandler=this.rasterJobHandler));let{rasters:i,rasterIds:r}=this.primaryRasters,n=i.map(t=>t.rasterInfo?void 0:t.open(e));await Promise.all(n);let s=i.map(({rasterInfo:e})=>e),a=t.bind({rasterInfos:s,rasterIds:r});if(t.rawSourceRasterInfos=s,!a.success||0===s.length)throw new l.A("raster-function:open",`cannot bind the function: ${a.error??""}`);let o="Table"===t.functionName?t:t.functionArguments?.raster;"Table"===o?.functionName&&(t.rasterInfo.attributeTable=u.A.fromJSON(o.functionArguments.attributeTableAsRecordSet)),await this.syncJobHandler();let c=s[0];this.hasUniqueSourceStorageInfo=1===s.length||s.slice(1).every(e=>function(e,t){let{storageInfo:i,pixelSize:r,spatialReference:n,extent:l}=e,{storageInfo:s,pixelSize:a,spatialReference:o,extent:u}=t;return r.x===a.x&&r.y===a.y&&n.equals(o)&&l.equals(u)&&i.blockHeight===s.blockHeight&&i.blockWidth===s.blockWidth&&i.maximumPyramidLevel===s.maximumPyramidLevel&&i.firstPyramidLevel===s.firstPyramidLevel&&i.pyramidBlockWidth===s.pyramidBlockWidth&&i.pyramidBlockHeight===s.pyramidBlockHeight&&i.pyramidScalingFactor===s.pyramidScalingFactor}(e,c)),this.set("sourceJSON",i[0].sourceJSON),this.set("rasterInfo",t.rasterInfo),await this._updateClipGeometry()}async syncJobHandler(){return this.rasterJobHandler?.updateRasterFunction(this.rasterFunction)}async _processPixelBlock(e,t,i){let{processParameters:r,primaryRasters:{rasterIds:n}}=this;return this.rasterJobHandler?await this.rasterJobHandler.process({extent:t,primaryPixelBlocks:e,primaryPixelSizes:i,primaryRasterIds:n,parameters:r}):this.rasterFunction.process({extent:t,primaryPixelBlocks:e,primaryPixelSizes:i,primaryRasterIds:n},r)}async _updateClipGeometry(){let e=this.rasterFunction.getClippingGeometries()[0],t=e?.clippingGeometry;if(t&&"inside"===e.clippingType){let{extent:e}=this.rasterInfo,{densifyExecute:r}=await Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(4642)]).then(()=>i(88411)),{differenceExecute:n}=await Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(7217)]).then(()=>i(93054)),l=r(o.A.fromExtent(e),2*(e.width+e.height)/40);l=(0,d.uk)(l,t.spatialReference),t=n(l,t)}this._clippingGeometry.clear(),t&&this._clippingGeometry.set("0",t)}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"datasetFormat",void 0),(0,r.Cg)([(0,n.MZ)()],p.prototype,"tileType",void 0),(0,r.Cg)([(0,n.MZ)()],p.prototype,"rasterFunction",void 0),(0,r.Cg)([(0,n.MZ)()],p.prototype,"processParameters",void 0),(0,r.Cg)([(0,n.MZ)()],p.prototype,"primaryRasters",void 0),p=(0,r.Cg)([(0,n.$K)("esri.layers.raster.datasets.FunctionRaster")],p)},330(e,t,i){function r(e,t){if(!e||!t)return[];let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";let n=[];if(t){let l=r(e,i);for(let e=0;e<l.length;e++)r(l[e],t).forEach(e=>n.push(e));return n}let l=e.getElementsByTagNameNS("*",i);if(!l||0===l.length)return[];for(let e=0;e<l.length;e++)n.push(l[e]||l.item(e));return n}function n(e,t){if(!e||!t)return null;let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";let l=r(e,i);return l.length>0?t?n(l[0],t):l[0]:null}function l(e,t=null){let i,r=t?n(e,t):e;return r?(i=r.textContent||r.nodeValue,i?i.trim():null):null}function s(e,t){let i,n=r(e,t),l=[];for(let e=0;e<n.length;e++)i=n[e].textContent||n[e].nodeValue,i&&(i=i.trim(),""!==i&&l.push(i));return l}function a(e,t=null){return l(e,t)?.split(" ").map(e=>Number(e))??[]}function o(e,t){return s(e,t).map(e=>Number(e))}function u(e,t){let i=l(e,t);return Number(i)}function c(e,t){let i=e?.nodeName?.toLowerCase(),r=t.toLowerCase();return i.slice(i.lastIndexOf(":")+1)===r}function h(e){return e.nodeName.slice(e.nodeName.lastIndexOf(":")+1)}i.d(t,{Dy:()=>s,IC:()=>r,Ui:()=>o,V6:()=>n,g7:()=>c,mX:()=>l,pN:()=>a,v7:()=>u,vv:()=>h})},91806(e,t,i){i.d(t,{A:()=>o});var r,n=i(32198),l=i(91429),s=i(56507),a=i(25482);let o=class extends a.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],o.prototype,"cols",void 0),(0,n.Cg)([(0,l.MZ)({type:s.jz,json:{write:!0}})],o.prototype,"level",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],o.prototype,"levelValue",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],o.prototype,"origin",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],o.prototype,"resolution",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],o.prototype,"rows",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],o.prototype,"scale",void 0),o=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.LOD")],o)},87045(e,t,i){i.d(t,{A:()=>w});var r,n=i(32198),l=i(91429),s=i(56507),a=i(66552),o=i(25482),u=i(86211),c=i(86738),h=i(16930),d=i(21325),f=i(28735),p=i(91806),m=i(72802),g=i(36005),y=i(43937);const x=new a.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",JPEGPlus:"jpgplus",pbf:"pbf"});let w=class extends o.o{static{r=this}static create(e={}){let{resolutionFactor:t=1,scales:i,size:n=256,spatialReference:l=h.A.WebMercator,numLODs:s=24}=e;if(!(0,d.fn)(l)){let e=[];if(i)for(let t=0;t<i.length;t++){let r=i[t];e.push(new p.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=s-1;i>=0;i--)e.unshift(new p.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new c.A({x:0,y:0,spatialReference:l}),size:[n,n],spatialReference:l})}let a=(0,d.Vp)(l),o=e.origin?new c.A({x:e.origin.x,y:e.origin.y,spatialReference:l}):a?new c.A({x:a.origin[0],y:a.origin[1],spatialReference:l}):new c.A({x:0,y:0,spatialReference:l}),f=1/(39.37*(0,u.GA)(l)*96),m=[];if(i)for(let e=0;e<i.length;e++){let t=i[e],r=t*f;m.push(new p.A({level:e,scale:t,resolution:r}))}else{let e=(0,d.EA)(l)?512/n*591657527.5917094:256/n*591657527.591555,i=Math.ceil(s/t);m.push(new p.A({level:0,scale:e,resolution:e*f}));for(let r=1;r<i;r++){let i=e/2**t,n=i*f;m.push(new p.A({level:r,scale:i,resolution:n})),e=i}}return new r({dpi:96,lods:m,origin:o,size:[n,n],spatialReference:l})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){let{spatialReference:e,origin:t}=this;if(e&&t){let i=(0,d.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return c.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0,r=[],n=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,n[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){let t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];let i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){let t=this.scales,i=t.length-1,r=0;for(;r<i;r++){let i=t[r],n=t[r+1];if(i<=e)return r;if(n===e)return r+1;if(i>e&&n<e)return r+Math.log(i/e)/Math.log(i/n)}return r}tileAt(e,t,i,r){let n,l,s=this.lodAt(e);if(!s)return null;if("number"==typeof t)n=t,l=i;else if((0,d.aI)(t.spatialReference,this.spatialReference))n=t.x,l=t.y,r=i;else{let e=(0,f.y)(t,this.spatialReference);if(null==e)return null;n=e.x,l=e.y,r=i}let a=s.resolution*this.size[0],o=s.resolution*this.size[1];return r??=new m.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-l)/o+.001),r.col=Math.floor((n-this.origin.x)/a+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){let t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;let r=e.level-i.level,n=i.resolution*this.size[0]/2**r,l=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*l,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+l,!0}upsampleTile(e){let t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){let i=this.lodAt(t.level);if(null==i)return null;let{resolution:r}=i,n=r*this.size[0],l=r*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*l,e[2]=e[0]+n,e[3]=e[1]+l,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;let t=(512===this.size[0]&&256===e?-1:0)+ +!!this.spatialReference.isGeographic;if(this.size[0]===e&&0===t)return this;let i=[],n=this.lods.length-t;for(let e=0;e<n;e++){let r=e+t,{scale:n,resolution:l}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new p.A({level:e,scale:n,resolution:l}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){let e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){let r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:x.read,write:x.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,n.Cg)([(0,l.MZ)({type:c.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,n.Cg)([(0,g.w)("origin")],w.prototype,"readOrigin",null),(0,n.Cg)([(0,l.MZ)({type:[p.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,n.Cg)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,n.Cg)([(0,g.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,n.Cg)([(0,y.K)("size",{cols:{type:s.jz},rows:{type:s.jz}})],w.prototype,"writeSize",null),(0,n.Cg)([(0,l.MZ)({type:h.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.TileInfo")],w)},72802(e,t,i){i.d(t,{U:()=>n});var r=i(19419);class n{constructor(e,t,i,n=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=n}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new n(e.level,e.row,e.col,e.extent)}}}}]);
|
|
1
|
+
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[8595],{82806(e,t,i){var r=i(32198),n=i(91429),l=i(56507),s=i(49186),a=i(53966),o=i(86738),u=i(16930),c=i(21325),h=i(12711),d=i(85676),f=i(94359),p=i(78888),m=i(22048),g=i(49410),y=i(34606),x=i(51508),w=i(7548),R=i(23636),b=i(4366),I=i(34930),v=i(99235),_=i(37373),S=i(51927),C=i(60694),k=i(10873),M=i(45617),T=i(33446),A=i(43577),P=i(13868),F=i(22796),z=i(69409),B=i(87045),D=i(93223),J=i(36005);i.d(t,["b",0,e=>{let t=e,H=class extends t{constructor(...e){super(...e),this._draRasterConfig=null,this._isConstructedFromFunctionRaster=!1,this.bandIds=null,this.copyright=null,this.interpolation=null,this.multidimensionalSubset=null,this.raster=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.spatialReference=null,this.symbolizer=null,this._isConstructedFromFunctionRaster=(0,w.qg)(e[0]?.raster)}destroy(){this._draRasterConfig?.rasterJobHandler?.destroy(),this._shutdownJobHandler()}get fullExtent(){return this.serviceRasterInfo?.extent}set multidimensionalDefinition(e){this._set("multidimensionalDefinition",e),this.updateRenderer()}set rasterFunction(e){"none"===e?.functionName?.toLowerCase()&&(e=void 0),this._set("rasterFunction",e),this.updateRasterFunction()}set url(e){this._set("url",(0,C.Jf)(e,a.A.getLogger(this)))}get renderer(){if("imagery-tile"!==this.type)return this.internalRenderer;let{activePresetRendererName:e,presetRenderers:t}=this;return e?(t?.find(({name:t})=>t===e))?.renderer.clone():this.internalRenderer}set renderer(e){"imagery-tile"===this.type&&(this.activePresetRendererName=null),this.internalRenderer=e}set internalRenderer(e){null==e&&null==this.rasterFunction?this._configDefaultRenderer("override"):(this._set("internalRenderer",e),this.updateRenderer())}readRenderer(e,t,i){let r=t?.layerDefinition?.drawingInfo?.renderer;return(0,f.LF)(r,i)||void 0}async computeStatisticsHistograms(e,t){await this.load(t),e=(0,l.PZ)(m.A,e).clone();let{serviceRasterInfo:i}=this;if(null==i)throw new s.A("imagery-tile-mixin:compute-statistics-histograms","serviceRasterInfo must be specified");let{geometry:r}=e;if(null==r)throw new s.A("imagery-tile-mixin:compute-statistics-histograms","geometry must be specified");let n=r,{spatialReference:a}=i;if(!r.spatialReference.equals(a)){await(0,_.Hh)();let e="extent"===r.type?(0,_._l)(r,a):(0,_.uk)(r,a);if(null==e)throw new s.A("imagery-tile-mixin:compute-statistics-histograms","geometry cannot be projected to the data source");n=e}let u=e.pixelSize??new o.A({x:i.pixelSize.x,y:i.pixelSize.y,spatialReference:a}),{extent:c,width:h,height:d}=(0,I.b7)(i,n,u),f=await this.fetchPixels(c,h,d,{...t,interpolation:"nearest"});if(null==f.pixelBlock)throw new s.A("imagery-tile-mixin:compute-statistics-histograms","failed to fetch pixels");let p=await(0,I.$Q)(f.pixelBlock,c,n),g=this._rasterJobHandler;return g?g.computeStatisticsHistograms({pixelBlock:p},t):(0,S.eH)(p)}normalizeRasterFetchOptions(e){let{multidimensionalInfo:t}=this.serviceRasterInfo??{};if(null==t)return e;let i=(0,b.XU)({rasterInfo:this.raster.rasterInfo,multidimensionalDefinition:e.multidimensionalDefinition||this.multidimensionalDefinition,timeExtent:e.timeExtent??this.timeExtent,multidimensionalSubset:this.multidimensionalSubset});return{...e,multidimensionalDefinition:i,timeExtent:void 0}}async updateRasterFunction(){return!this.loaded||"imagery-tile"!==this.type||!this.rasterFunction&&!this._cachedRasterFunctionJson||JSON.stringify(this.rasterFunction)===JSON.stringify(this._cachedRasterFunctionJson)||(this._cachedRasterFunctionJson=this.rasterFunction?.toJSON(),this._rasterFunctionUpdatePromise=this._updateRasterFunction()),this._rasterFunctionUpdatePromise}async updateRenderer(){let{loaded:e,symbolizer:t,renderer:i}=this;if(!e||!t||!i)return;let{rasterInfo:r}=this.raster,n=(0,b.ct)(r,{multidimensionalDefinition:this.multidimensionalDefinition,multidimensionalSubset:this.multidimensionalSubset})?.name,l=(0,h.m7)(r,n);return this._updateSymbolizer(t,i,n,l)}async applyRenderer(e,t,i){let r=e?.pixelBlock;if(!(null!=r&&r.pixels&&r.pixels.length>0))return null;await this.updateRenderer();let n=this.bandIds??[],{pixelBlock:l}=await this._symbolize({pixelData:e,simpleStretchParams:t,bandIds:n,symbolizer:this.symbolizer},i);return l}getRawDisplayBandIds(){let{bandIds:e,raster:t}=this;if(this.rasterFunction&&(0,w.qg)(t)){let i=t.rasterFunction.rawInputBandIds;e=e?.length&&i?.length&&1!==t.rasterInfo.bandCount?e.map(e=>i[Math.min(e,i.length-1)]):i}return e&&e.length>3&&e.every((e,t)=>e===t)?null:e}getTileUrl(e,t,i){return"RasterTileServer"===this.raster.datasetFormat?`${this.url}/tile/${e}/${t}/${i}`:""}getCompatibleTileInfo(e,t,i=!1){if(!this.loaded||null==t)return null;if(i&&e.equals(this.spatialReference))return this.tileInfo;let r=(0,c.Vp)(e);return B.A.create({size:256,spatialReference:e,origin:r?{x:r.origin[0],y:r.origin[1]}:{x:t.xmin,y:t.ymax}})}getCompatibleFullExtent(e){return this.loaded?(this._compatibleFullExtent?.spatialReference.equals(e)||(this._compatibleFullExtent=this.raster.computeExtent(e)),this._compatibleFullExtent):null}async fetchTile(e,t,i,r={}){if(N(this),r.requestAsImageElement){let n=this.getTileUrl(e,t,i),{data:l}=await(0,p.A)(n,{responseType:"image",query:{...this.refreshParameters,...this.raster.ioConfig.customFetchParameters},signal:r.signal});return l}let{serviceRasterInfo:n}=this;if(null!=n.multidimensionalInfo&&null==(r=this.normalizeRasterFetchOptions(r)).multidimensionalDefinition){let l=r.tileInfo||n.storageInfo.tileInfo,s=this.raster.getTileExtentFromTileInfo(e,t,i,l);if(s)return{extent:s,pixelBlock:null}}return await this._initJobHandler(),await this.updateRasterFunction(),"raster-shaded-relief"===this.renderer?.type&&(r={...r,buffer:{cols:1,rows:1}}),r={...r,refreshParameters:this.refreshParameters},this.raster.fetchTile(e,t,i,r)}async fetchImageBitmapTile(e,t,i,r={}){N(this);let n=this.getTileUrl(e,t,i),{data:l}=await(0,p.A)(n,{responseType:"blob",query:{...this.refreshParameters,...this.raster.ioConfig.customFetchParameters},signal:r?.signal});return(0,T.Cp)(l,e,t,i,r)}async fetchPixels(e,t,i,r={}){if(null!=this.serviceRasterInfo.multidimensionalInfo&&null==(r=this.normalizeRasterFetchOptions(r)).multidimensionalDefinition)return{extent:e,pixelBlock:null};await this._initJobHandler(),await this.updateRasterFunction(),t=Math.round(t),i=Math.round(i);let n=await this.raster.fetchPixels(e,t,i,r);return r.bandIds?.length&&!this.raster.rasterInfo.storageInfo.isBsqTile&&(n.pixelBlock=n.pixelBlock?.extractBands(r.bandIds)),n}async getSamples(e,t){await this.load();let i=(0,l.PZ)(y.A,e).clone();if(i.interpolation&&"nearest"!==i.interpolation)throw new s.A("imagery-tile-mixin:get-samples","only nearest interpolation is currently supported");let r=i.mosaicRule?.multidimensionalDefinition,n={...t,multidimensionalDefinition:r},a=(await this._getSampleLocations(i)).map(e=>this.identify(e,n).then(t=>(t.location=e,t))),o=(await Promise.all(a)).flatMap((e,t)=>this._convertRasterIdentifyResultToSample(e,t));return new x.A({samples:o})}async identify(e,t={}){await this.load();let i=(0,l.PZ)(o.A,e).clone().normalize(),{raster:r,serviceRasterInfo:n}=this;if(null!=n?.multidimensionalInfo&&(!n.hasMultidimensionalTranspose||!(0,b.DY)(t.multidimensionalDefinition)&&!t.transposedVariableName)&&null==(t=this.normalizeRasterFetchOptions(t)).multidimensionalDefinition)return{location:i,value:null};let a,u=this.multidimensionalSubset?.areaOfInterest;if(u&&!u.contains(i))throw new s.A("imagery-tile-mixin:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");if(this.serviceRasterInfo?.storageInfo.isBsqTile){let e=(0,w.qg)(r)?this.getRawDisplayBandIds():this.bandIds;a=e?.length?e:void 0}return r.identify(i,{...t,bandIds:a})}hasStandardTime(){let e=this.serviceRasterInfo?.multidimensionalInfo;if(null==e||"standard-time"!==this.serviceRasterInfo?.dataType)return!1;let t=this.multidimensionalDefinition,i=t?.[0]?.variableName;return e.variables.some(e=>e.name===i&&(!t?.[0].dimensionName||e.dimensions.some(e=>"StdTime"===e.name)))}getStandardTimeValue(e){return new Date((0,b.$E)(e)).toISOString()}getMultidimensionalSubsetVariables(e){let t=e??this.serviceRasterInfo?.multidimensionalInfo;return(0,b.z2)(this.multidimensionalSubset,t)}async getDynamicRangeInputRaster(){if(!this.rasterFunction||!(0,w.qg)(this.raster)||!this._cachedRasterFunctionJson)return null;let e=JSON.stringify(this._cachedRasterFunctionJson);if(this._draRasterConfig?.functionJson===e)return this._draRasterConfig;let t=this.raster.rasterFunction.queryRasterFunction(e=>"Stretch"===e.functionName&&e.functionArguments.dynamicRangeAdjustment);if(!t)return null;let i=t.toJSON(),r=this.raster.primaryRasters.rasters,n=t.functionArguments.raster,l=i.rasterFunctionArguments;if(!n||"object"!=typeof n||!("functionName"in n))return this._draRasterConfig={functionJson:e,raster:r[0],functionArguments:l,rasterJobHandler:this._draRasterConfig?.rasterJobHandler},this._draRasterConfig;let s={raster:r[0]};r.length>1&&r.forEach(e=>s[e.url]=e);let a=(0,v.vt)(n.toJSON(),s),o=new R.A({rasterFunction:a});await o.open();let u=this._draRasterConfig?.rasterJobHandler;try{u||(u=new z.A,await u.initialize()),o.rasterJobHandler=u,await o.syncJobHandler()}catch{}return this._draRasterConfig={functionJson:e,raster:o,functionArguments:l,rasterJobHandler:u},this._draRasterConfig}_configDefaultSettings(){this._configDefaultInterpolation(),this.multidimensionalDefinition||=(0,b.fy)(this.raster.rasterInfo,{multidimensionalSubset:this.multidimensionalSubset}),this.rasterFunction&&(0,w.qg)(this.raster)&&(this._cachedRasterFunctionJson=this.rasterFunction.toJSON()),this._configDefaultRenderer()}async _initJobHandler(){if(!this._rasterJobHandler)return super._initJobHandler().then(async()=>{if(!this._rasterJobHandler)return;N(this);let{raster:e}=this;e.rasterJobHandler!==this._rasterJobHandler&&(e.rasterJobHandler=this._rasterJobHandler,(0,w.qg)(e)&&e.syncJobHandler(),this.rasterFunction&&await this.updateRasterFunction().catch(()=>{}),this.renderer&&this.updateRenderer())}).catch(()=>{})}_shutdownJobHandler(){super._shutdownJobHandler(),this.raster&&(this.raster.rasterJobHandler=null)}async _getSampleLocations(e){let{geometry:t}=e;if("point"===t.type)return[t];let{spatialReference:r,type:n}=t;if("multipoint"===n)return t.points.map(e=>new o.A({x:e[0],y:e[1],spatialReference:r}));if("polyline"===n){let n=t;if(e.sampleCount||e.sampleDistance){let{densifyExecute:r}=await Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(4642)]).then(()=>i(88411)),{lengthExecute:l}=await Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(2174)]).then(()=>i(965)),s=l(t,{unit:"meters"}),a=Math.min(e.sampleCount||100,1e3),o=e.sampleDistance;o||=s/(a+ +(2===n.paths[0].length)),n=r(t,o,{unit:"meters"})}return n.paths.flatMap(e=>e.map(e=>new o.A({x:e[0],y:e[1],spatialReference:r})))}let l=Math.min(e.sampleCount||100,1e3),s="extent"===t.type,a=s?t:t.extent,u=Math.sqrt(a.width*a.height/l),c=a.height/u,h=a.width/u,{xmin:d,ymax:f}=a,p=[];for(let e=0;e<c;e++)for(let i=0;i<h;i++){let n=new o.A({x:d+(i+.5)*u,y:f-(e+.5)*u,spatialReference:r});(s||t.contains(n))&&p.push(n)}return p}_configDefaultInterpolation(){if(null==this.interpolation){N(this);let{raster:e}=this,t=(0,h.w6)(e.rasterInfo,e.tileType,this.sourceJSON?.defaultResamplingMethod);this._set("interpolation",t)}}_configDefaultRenderer(e="no"){N(this);let{rasterInfo:t}=this.raster,i=(0,b.ct)(t,{multidimensionalDefinition:this.multidimensionalDefinition,multidimensionalSubset:this.multidimensionalSubset})?.name,r=(0,h.I8)({variableName:i,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&t.bandCount>1&&(this.bandIds=r?.bandIds??(0,h.ci)(t)),!this.renderer||"override"===e){let e=(0,h.Mm)(this.raster),n=r?.renderer??(0,h.PD)(t,{bandIds:this.bandIds,variableName:i,rasterFunctionColorRamp:e}),l=t.statistics,s=l&&l.length>0?l[0]:null,a=s?.max??0,o=s?.min??0;"WCSServer"===this.raster.datasetFormat&&"raster-stretch"===n.type&&(a>1e24||o<-1e24)&&(n.dynamicRangeAdjustment=!0,n.customStatistics=null,"none"===n.stretchType&&(n.stretchType="min-max")),this.renderer=n}let n=(0,h.$P)({...this.renderer.toJSON(),variableName:i}),l=(0,h.m7)(t,i);this.symbolizer?(this.symbolizer.rendererJSON=n,this.symbolizer.rasterInfo=l):this.symbolizer=new d.A({rendererJSON:n,rasterInfo:l});let s=this.symbolizer.bind();if(s.success){if("auto"===e){let{colormap:e}=this.raster.rasterInfo,t=this.renderer;if(null!=e&&"raster-colormap"===t.type){let e=(0,h.PD)(this.raster.rasterInfo);JSON.stringify(e)!==JSON.stringify(t)&&this._configDefaultRenderer("override")}else if("raster-stretch"===t.type){let e=this.bandIds?.length,i=t.customStatistics?.length;!t.dynamicRangeAdjustment&&i&&e&&i!==e&&this._configDefaultRenderer("override")}}}else a.A.getLogger(this).warn("imagery-tile-mixin",s.error||"The given renderer is not supported by the layer."),"auto"===e&&this._configDefaultRenderer("override")}async _updateRasterFunction(){if(this._isConstructedFromFunctionRaster&&(0,w.qg)(this.raster)){let e=this.raster.rasterFunction.toJSON();return void(!this.rasterFunction&&e&&this._set("rasterFunction",F.A.fromJSON(e)))}let e,t=this.raster,i=!1;(0,w.qg)(t)?(e=t.primaryRasters.rasters,t=e[0],i=!0):e=[t];let{rasterFunction:r}=this;if(r){let i={raster:t};e.length>1&&e.forEach(e=>i[e.url]=e);let n=(0,v.vt)(r.functionDefinition?.toJSON()??r.toJSON(),i),l=new R.A({rasterFunction:n});l.rasterJobHandler=this._rasterJobHandler,await l.open(),this.raster=l}else this.raster=t,await t.open();if(this._cachedRendererJson=void 0,!i&&!r)return;let{bandIds:n}=this,{bandCount:l}=this.raster.rasterInfo,s=n?.length?n.some(e=>e>=l):l>=3;n&&(s||this.renderer&&"raster-stretch"!==this.renderer.type)&&this._set("bandIds",null),this._configDefaultRenderer("auto")}_convertRasterIdentifyResultToSample(e,t){let{rasterInfo:i}=this.raster,r=i.storageInfo.pyramidScalingFactor**(e.pyramidLevel??0),n=(i.pixelSize.x+i.pixelSize.y)/2*r;if(!e.dataSeries?.length)return[new g.A({location:e.location,pixelValue:e.value,locationId:t,resolution:n})];let l=[];return e.dataSeries.forEach(({value:i,multidimensionalDefinition:r},s)=>{let a={Variables:r[0].variableName,Dimensions:r.flatMap(({dimensionName:e})=>e).join(",")};for(let{dimensionName:e,values:t}of r){a[e]=Array.isArray(t[0])?t[0][0]:t[0];let i=t[t.length-1];a[`${e}_Max`]=Array.isArray(i)?i[i.length-1]:i}let o=new g.A({location:e.location,pixelValue:i,rasterId:s,locationId:t,resolution:n,attributes:a});l.push(o)}),l}};function N(e){if(!e.raster||!e.serviceRasterInfo)throw new s.A("imagery-tile","no raster")}return(0,r.Cg)([(0,n.MZ)({clonable:!1})],H.prototype,"_cachedRasterFunctionJson",void 0),(0,r.Cg)([(0,n.MZ)({clonable:!1})],H.prototype,"_compatibleFullExtent",void 0),(0,r.Cg)([(0,n.MZ)({clonable:!1})],H.prototype,"_draRasterConfig",void 0),(0,r.Cg)([(0,n.MZ)({clonable:!1})],H.prototype,"_isConstructedFromFunctionRaster",void 0),(0,r.Cg)([(0,n.MZ)({clonable:!1})],H.prototype,"_rasterFunctionUpdatePromise",void 0),(0,r.Cg)([(0,n.MZ)({type:[l.jz],json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"0,1,2"!==this.bandIds?.join(",")}}}}})],H.prototype,"bandIds",void 0),(0,r.Cg)([(0,n.MZ)({json:{origins:{service:{read:{source:"copyrightText"}}}}})],H.prototype,"copyright",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!1}})],H.prototype,"fullExtent",null),(0,r.Cg)([(0,n.MZ)({json:{write:{overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType||"bilinear"!==this.interpolation}}}}}),(0,D.e)(P.SZ)],H.prototype,"interpolation",void 0),(0,r.Cg)([(0,n.MZ)()],H.prototype,"ioConfig",void 0),(0,r.Cg)([(0,n.MZ)({type:[M.A],json:{write:!0}})],H.prototype,"multidimensionalDefinition",null),(0,r.Cg)([(0,n.MZ)({type:A.A,json:{write:!0}})],H.prototype,"multidimensionalSubset",void 0),(0,r.Cg)([(0,n.MZ)()],H.prototype,"raster",void 0),(0,r.Cg)([(0,n.MZ)({type:F.A})],H.prototype,"rasterFunction",null),(0,r.Cg)([(0,n.MZ)({constructOnly:!0})],H.prototype,"serviceRasterInfo",void 0),(0,r.Cg)([(0,n.MZ)()],H.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,n.MZ)({readOnly:!0,type:u.A,json:{read:!1}})],H.prototype,"spatialReference",void 0),(0,r.Cg)([(0,n.MZ)({type:B.A})],H.prototype,"tileInfo",void 0),(0,r.Cg)([(0,n.MZ)(k.OZ)],H.prototype,"url",null),(0,r.Cg)([(0,n.MZ)({types:f.uy})],H.prototype,"renderer",null),(0,r.Cg)([(0,n.MZ)({types:f.uy,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(){let e="raster-stretch"===this.renderer?.type&&"none"===this.renderer.stretchType&&!this.renderer.useGamma;return{enabled:!this.loaded||"Raster"===this.raster.tileType||!e}}},origins:{"web-scene":{types:f.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],H.prototype,"internalRenderer",null),(0,r.Cg)([(0,J.w)("internalRenderer")],H.prototype,"readRenderer",null),(0,r.Cg)([(0,n.MZ)({clonable:!1})],H.prototype,"symbolizer",void 0),H=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.TiledImagery")],H),H}])},49859(e,t,i){i.d(t,{A:()=>J});var r=i(32198),n=i(91429),l=i(56507),s=i(49186),a=i(25482),o=i(53966),u=i(17676),c=i(563),h=i(5443),d=i(86738),f=i(16930),p=i(78888),m=i(60694),g=i(10873),y=i(45617),x=i(91806),w=i(20223),R=i(87045),b=i(94778),I=i(33196),v=i(34930),_=i(47520),S=i(37373),C=i(34251),k=i(7548),M=i(4366);const T=new Map,A=new class{constructor(e=15e3,t=5e3,i=-1){this._timer=null,this._cachedBlocks=new Map,this._size=-1,this._duration=e,this._interval=Math.min(e,t),this._size=i}decreaseRefCount(e,t){let i=e+"/"+t,r=this._cachedBlocks;if(r.has(i)){let e=r.get(i);return e.refCount--,e.refCount<=0&&(r.delete(i),e.controller&&e.controller.abort()),e.refCount}return 0}getBlock(e,t){let i=e+"/"+t,r=this._cachedBlocks;if(r.has(i)){let e=r.get(i);return e.ts=Date.now(),e.refCount++,r.delete(i),r.set(i,e),e.block}return null}putBlock(e,t,i,r){let n=this._cachedBlocks,l=e+"/"+t;if(n.has(l)){let e=n.get(l);e.ts=Date.now(),e.refCount++}else n.set(l,{block:i,ts:Date.now(),refCount:1,controller:r});this._trim(),this._updateTimer()}deleteBlock(e,t){let i=this._cachedBlocks,r=e+"/"+t;i.has(r)&&i.delete(r)}updateMaxSize(e){this._size=e,this._trim()}empty(){this._cachedBlocks.clear(),this._clearTimer()}getCurrentSize(){return this._cachedBlocks.size}_updateTimer(){if(null!=this._timer)return;let e=this._cachedBlocks;this._timer=setInterval(()=>{let t=Array.from(e),i=Date.now();for(let r=0;r<t.length&&t[r][1].ts<=i-this._duration;r++)e.delete(t[r][0]);0===e.size&&this._clearTimer()},this._interval)}_trim(){let e=this._cachedBlocks;if(-1===this._size||this._size>=e.size)return;let t=Array.from(e).sort((e,t)=>e[1].refCount-t[1].refCount||e[1].ts-t[1].ts);for(let i=0;i<t.length-this._size;i++)e.delete(t[i][0])}_clearTimer(){null!=this._timer&&(clearInterval(this._timer),this._timer=null)}}(15e3,5e3,100);function P(e,t,i){let r=T.get(e);if(!r)return null==t?A.decreaseRefCount(e,i):0;if(null==t||null==r[t])return A.decreaseRefCount(e,i);let n=r[t]?.cache,l=n?.get(i);if(n&&l){if(l.refCount--,0===l.refCount){n.delete(i);for(let e=0;e<r.length;e++)r[e]?.cache.delete(i);l.controller&&l.controller.abort()}return l.refCount}return 0}function F(e,t,i){let r=T.get(e);if(!r)return null==t?A.getBlock(e,i):null;if(null==t||null==r[t]){for(let e=0;e<r.length;e++){let t=r[e]?.cache.get(i);if(t)return t.refCount++,t.block}return A.getBlock(e,i)}let n=r[t]?.cache.get(i);if(n)return n.refCount++,n.block;for(let e=0;e<r.length;e++){if(e===t||!r[e])continue;let n=r[e]?.cache,l=n?.get(i);if(n&&l)return l.refCount++,n.set(i,l),l.block}return null}function z(e,t,i,r,n=null){let l=T.get(e);if(!l)return void(t??A.putBlock(e,i,r,n));if(null==t||null==l[t])return void A.putBlock(e,i,r,n);let s={refCount:1,block:r,isResolved:!1,isRejected:!1,controller:n};r.then(()=>s.isResolved=!0).catch(()=>s.isRejected=!0),l[t]?.cache.set(i,s)}function B(e,t,i){let r=T.get(e);r?null==t||null==r[t]?A.deleteBlock(e,i):r[t]?.cache.delete(i):t??A.deleteBlock(e,i)}let D=0,J=class extends a.o{constructor(e){super(function(e){return e?.ioConfig&&(e={...e,ioConfig:{resolution:null,bandIds:null,sampling:"closest",tileInfo:R.A.create(),...e.ioConfig}}),e}(e)),this._tileFetchQueue=new c.QueueProcessor({concurrency:32,process:(e,t)=>this.fetchRawTile(e.pyramidLevel,e.row,e.col,{...e.options,signal:t})}),this.datasetName=null,this.datasetFormat=null,this.hasUniqueSourceStorageInfo=!0,this.rasterInfo=null,this.ioConfig={sampling:"closest"},this.rawBlockRegistryIds=[],this.refresh=(0,u.sg)(async e=>{await this._openPromise;let t=await this._refresh(e);return t.dataChanged&&function(e,t){let i=T.get(e);if(i){let e=t.map(e=>i[e]).filter(e=>null!=e);for(let t of e)t&&(Array.from(t.cache.values()).forEach(e=>{!e.isResolved&&!e.isRejected&&e.controller&&e.controller.abort()}),t.cache.clear())}}(this.rasterId,this.rawBlockRegistryIds),t})}get _isGlobalWrappableSource(){let{rasterInfo:e}=this,t=(0,S.FT)(e.spatialReference);return null!=t&&e.extent.width>=t/2}get _hasNoneOrGCSShiftTransform(){let{transform:e}=this.rasterInfo;return null==e||"gcs-shift"===e.type}set rasterJobHandler(e){this._set("rasterJobHandler",e),(0,k.qg)(this)&&this.primaryRasters?.rasters?.forEach(t=>t.rasterJobHandler=e)}get rasterId(){return this.url||"rasterId-"+D++}set url(e){this._set("url",(0,m.Jf)(e,o.A.getLogger(this)))}async open(e){return this._openPromise??=(0,S.Hh)().then(()=>this._open(e)),this._openPromise}async fetchTile(e,t,i,r={}){let n=r.tileInfo||this.rasterInfo.storageInfo.tileInfo,l=this.getTileExtentFromTileInfo(e,t,i,n);if(!l)throw new s.A("imagery-tile:out-of-bounds","Level for fetch tile out of range");return r={noClip:!0,...r},this.fetchPixels(l,n.size[0],n.size[1],r)}async identify(e,t={}){e=(0,l.PZ)(d.A,e).clone().normalize();let{multidimensionalDefinition:i,timeExtent:r}=t,{rasterInfo:n}=this,{hasMultidimensionalTranspose:s,multidimensionalInfo:a}=n,{transposedVariableName:o}=t,u=null!=a&&s&&(null!=r||(0,M.DY)(i));u&&!o&&(o=null!=i&&i.length>0?i[0].variableName??void 0:a.variables[0].name,t={...t,transposedVariableName:o}),t=this._getRequestOptionsWithSliceId(t);let{spatialReference:c,extent:f}=n,{datumTransformation:p}=t,m=(0,S._I)(e,c,p);if(!f.intersects(m))return{location:m,value:null};if(null!=n.transform){let e=n.transform.inverseTransform(m);if(!n.nativeExtent.intersects(e))return{location:e,value:null};m=e}let g=null!=o&&null!=a&&n.hasMultidimensionalTranspose;if((0,k.qg)(this)){let e=this.primaryRasters.rasters[0];if(g)return e.identify(m,t);let{pixelSize:r}=n,l=3*r.x/2,s=3*r.y/2,a=new h.A({xmin:m.x-l,xmax:m.x+l,ymin:m.y-s,ymax:m.y+s,spatialReference:c}),o={interpolation:"nearest",multidimensionalDefinition:i,sliceId:t.sliceId,bandIds:t.bandIds},{pixelBlock:u}=await e.fetchPixels(a,3,3,o),{pixelBlock:d}=await this.fetchPixels(a,3,3,o);if(null==u)return{location:m,value:null};let f,p=!u.mask||u.mask[4]?u.pixels.map(e=>e[4]):null;return null!=d&&(f=!d.mask||d.mask[4]?d.pixels.map(e=>e[4]):void 0),{location:m,value:p,processedValue:f,pyramidLevel:0}}let y=0;if(!g){let{srcResolution:i}=t;if(i)i.spatialReference&&(i=(0,v.T5)(new d.A(i),c)),y=(0,S.t$)(i,n,this.ioConfig.sampling).pyramidLevel;else if(y=await this.computeBestPyramidLevelForLocation(e,t),null==y)return{location:m,value:null}}let x=this.identifyPixelLocation(m,y,null,g);if(null===x)return{location:m,value:null};let{row:w,col:R,rowOffset:b,colOffset:I,blockWidth:_}=x,C=await this._fetchRawTile(y,w,R,t);if(!C?.pixels?.length)return{location:m,value:null};let T=b*_+I;return this._processIdentifyResult(C,{srcLocation:m,position:T,pyramidLevel:y,useTransposedTile:!!g,requestSomeSlices:u,identifyOptions:t})}async fetchPixels(e,t,i,r={}){e=(0,S.Ps)(e),r=this._getRequestOptionsWithSliceId(r);let{_hasNoneOrGCSShiftTransform:n}=this;if(r.requestRawData&&n)return this._fetchPixels(e,t,i,r);let l=(0,S.FT)(e.spatialReference),s=(0,S.OM)(e);if(null==l||0===s||1===s&&this._isGlobalWrappableSource&&n)return this._fetchPixels(e,t,i,r);if(s>=3)return{extent:e,pixelBlock:null};let a=[],{xmin:o,xmax:u}=e,c=Math.round(l/(u-o)*t),d=c-Math.round((l/2-o)/(u-o)*t),f=0,p=[];for(let n=0;n<=s;n++){let m=0===n?o:-l/2,g=n===s?u-l*n:l/2,y=new h.A({xmin:m,xmax:g,ymin:e.ymin,ymax:e.ymax,spatialReference:e.spatialReference}),x=0===n?c-d:n===s?t-f:c;f+=x,p.push(x);let w=r.disableWrapAround&&n>0?null:this._fetchPixels(y,x,i,r);a.push(w)}let m=(await Promise.all(a)).map(e=>e?.pixelBlock),g=null,y={width:t,height:i};return g=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:m,srcMosaicSize:y,destDimension:null,coefs:null,sampleSpacing:null,interpolation:"nearest",alignmentInfo:null,blockWidths:p},r)).pixelBlock:(0,_.z7)(m,y,{blockWidths:p}),{extent:e,srcExtent:(0,S._l)(e,this.rasterInfo.spatialReference,r.datumTransformation),pixelBlock:g}}async fetchRawPixels(e,t,i,r={}){t={x:Math.floor(t.x),y:Math.floor(t.y)};let n=await this._fetchRawTiles(e,t,i,r),{nativeExtent:l,nativePixelSize:s,storageInfo:a}=this.rasterInfo,o=2**e,u=s.x*o,c=s.y*o,d=new h.A({xmin:l.xmin+u*t.x,xmax:l.xmin+u*(t.x+i.width-1),ymin:l.ymax-c*(t.y+i.height-1),ymax:l.ymax-c*t.y,spatialReference:l.spatialReference});if(!n)return{extent:d,srcExtent:d,pixelBlock:null};let{pixelBlocks:f,mosaicSize:p}=n;if(1===f.length&&null!=f[0]&&f[0].width===i.width&&f[0].height===i.height)return{extent:d,srcExtent:d,pixelBlock:n.pixelBlocks[0]};let m,g=e>0?a.pyramidBlockWidth:a.blockWidth,y=e>0?a.pyramidBlockHeight:a.blockHeight,x={x:t.x%g,y:t.y%y};return m=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:f,srcMosaicSize:p,destDimension:i,clipOffset:x,clipSize:i,coefs:null,sampleSpacing:null,interpolation:r.interpolation,alignmentInfo:null,blockWidths:null},r)).pixelBlock:(0,_.z7)(f,p,{clipOffset:x,clipSize:i}),{extent:d,srcExtent:d,pixelBlock:m}}fetchRawTile(e,t,i,r){throw new s.A("BaseRaster:read-not-implemented","fetchRawTile() is not implemented")}computeExtent(e){return(0,S._l)(this.rasterInfo.extent,e)}decodePixelBlock(e,t,i){return this.rasterJobHandler?this.rasterJobHandler.decode({data:e,options:t},i):(0,I.D)(e,t,i)}async request(e,t,i=0){let{customFetchParameters:r}=this.ioConfig,{range:n,query:l,headers:s}=t;i=i??t.retryCount??this.ioConfig.retryCount;let a=n?{Range:`bytes=${n.from}-${n.to}`}:null;try{return await(0,p.A)(e,{...t,query:{...l,...r},headers:{...s,...a}})}catch(r){if(i>0)return i--,this.request(e,t,i);throw r}}getSliceIndex(e){let{multidimensionalInfo:t}=this.rasterInfo;return null==t||null==e||0===e.length?null:(0,M.NG)(e,t)}getTileExtentFromTileInfo(e,t,i,r){let n=r.lodAt(e);return n?this.getTileExtent({x:n.resolution,y:n.resolution},t,i,r.origin,r.spatialReference,r.size):null}updateTileInfo(){let{storageInfo:e,spatialReference:t,extent:i,pixelSize:r}=this.rasterInfo,{pyramidResolutions:n}=e;if(!e.tileInfo){let l=[],s=e.maximumPyramidLevel||0,a=(r.x+r.y)/2,o=1/.0254*96*a;for(let e=0;e<=s&&(l.unshift(new x.A({level:s-e,resolution:a,scale:o})),e!==s);e++)if(n){let t=(n[e].x+n[e].y)/2;o*=t/a,a=t}else a*=2,o*=2;let u=new d.A({x:i.xmin,y:i.ymax,spatialReference:t});e.tileInfo=new R.A({origin:u,size:[e.blockWidth,e.blockHeight],spatialReference:t,lods:l}),e.isVirtualTileInfo=!0}}createRemoteDatasetStorageInfo(e,t=512,i=512,r){let{width:n,height:l,nativeExtent:s,pixelSize:a,spatialReference:o}=e,u=new d.A({x:s.xmin,y:s.ymax,spatialReference:o});r??=Math.max(0,Math.round(Math.log(Math.max(n,l))/Math.LN2-8));let c=this.computeBlockBoundary(s,t,i,{x:s.xmin,y:s.ymax},[a],r);e.storageInfo=new w.A({blockWidth:t,blockHeight:i,pyramidBlockWidth:t,pyramidBlockHeight:i,origin:u,firstPyramidLevel:1,maximumPyramidLevel:r,blockBoundary:c})}async computeBestPyramidLevelForLocation(e,t={}){return 0}computeBlockBoundary(e,t,i,r,n,l=0,s=2){if(1===n.length&&l>0){n=[...n];let{x:e,y:t}=n[0];for(let i=0;i<l;i++)e*=s,t*=s,n.push({x:e,y:t})}let a=[],{x:o,y:u}=r;for(let r=0;r<n.length;r++){let{x:l,y:s}=n[r];a.push({minCol:Math.floor((e.xmin-o+.1*l)/t/l),maxCol:Math.floor((e.xmax-o-.1*l)/t/l),minRow:Math.floor((u-e.ymax+.1*s)/i/s),maxRow:Math.floor((u-e.ymin-.1*s)/i/s)})}return a}getPyramidPixelSize(e){let{nativePixelSize:t}=this.rasterInfo,{pyramidResolutions:i,pyramidScalingFactor:r}=this.rasterInfo.storageInfo;if(0===e)return t;if(null!=i&&i.length)return i[e-1];let n=r**e;return{x:t.x*n,y:t.y*n}}identifyPixelLocation(e,t,i,r){let{spatialReference:n,nativeExtent:l,storageInfo:s}=this.rasterInfo,{maximumPyramidLevel:a,origin:o,transposeInfo:u}=s,c=r&&null!=u?u.tileSize[0]:s.blockWidth,h=r&&null!=u?u.tileSize[1]:s.blockHeight,d=(0,S._I)(e,n,i);if(!l.intersects(d)||t<0||t>a)return null;let{x:f,y:p}=this.getPyramidPixelSize(t),m=(o.y-d.y)/p/h,g=(d.x-o.x)/f/c,y=Math.min(h-1,Math.floor((m-Math.floor(m))*h)),x=Math.min(c-1,Math.floor((g-Math.floor(g))*c));return{pyramidLevel:t,row:Math.floor(m),col:Math.floor(g),rowOffset:y,colOffset:x,blockWidth:c,srcLocation:d}}getTileExtent(e,t,i,r,n,l){let[s,a]=l,o=r.x+i*s*e.x,u=o+s*e.x,c=r.y-t*a*e.y,d=c-a*e.y;return new h.A({xmin:o,xmax:u,ymin:d,ymax:c,spatialReference:n})}getBlockWidthHeight(e){return{blockWidth:e>0?this.rasterInfo.storageInfo.pyramidBlockWidth:this.rasterInfo.storageInfo.blockWidth,blockHeight:e>0?this.rasterInfo.storageInfo.pyramidBlockHeight:this.rasterInfo.storageInfo.blockHeight}}isBlockOutside(e,t,i){let r=this.rasterInfo.storageInfo.blockBoundary[e];return!r||r.maxRow<t||r.maxCol<i||r.minRow>t||r.minCol>i}updateImageSpaceRasterInfo(e){let{pixelSize:t}=e,{width:i,height:r}=e,n=f.A.WebMercator;e.spatialReference=n,e.extent=e.nativeExtent=new h.A({xmin:-.5,ymax:.5,xmax:i-.5,ymin:.5-r,spatialReference:n}),e.isPseudoSpatialReference=!0,e.transform=null,e.pixelSize=new d.A({x:1,y:1,spatialReference:n});let{extent:l,storageInfo:s}=e;if(s){s.origin=new d.A({x:l.xmin,y:l.ymax,spatialReference:n});let{pyramidResolutions:i,tileInfo:r}=s;if(i&&i.forEach(e=>{e.x/=t.x,e.y/=t.y}),r){r.origin=s.origin;let t=(e.nativePixelSize.x+e.nativePixelSize.y)/2;r.lods.forEach((e,i)=>{e.resolution=t*2**i,e.scale=96*e.resolution/.0254})}}}async _refresh(e){return{dataChanged:!0}}async _fetchPixels(e,t,i,r={}){let n=(0,S.OM)(e);if(n>=2)return{extent:e,pixelBlock:null};let l=this._getSourceDataInfo(e,t,i,r),{pyramidLevel:s,srcResolution:a,srcWidth:o,srcHeight:u,ul:c}=l,{srcExtent:h}=l;if(0===o||0===u)return{extent:e,srcExtent:h,pixelBlock:null};let{rasterInfo:f}=this,p=f.transform,m="gcs-shift"===p?.type,g=null!=(0,S.FT)(e.spatialReference);(m||!g)&&(n=(0,S.OM)(h,m));let y=await this._fetchRawTiles(s,c,{width:o,height:u,wrapCount:n},r);if(!y)return{extent:e,srcExtent:h,pixelBlock:null};h=y.extent;let x=f.storageInfo,w=s>0?x.pyramidBlockWidth:x.blockWidth,R=s>0?x.pyramidBlockHeight:x.blockHeight,{x:b,y:I}=f.pixelSize;if(s>0){let{pyramidResolutions:e,pyramidScalingFactor:t}=x;if(null!=e&&e[s-1])({x:b,y:I}=e[s-1]);else{let e=t**s;b*=e,I*=e}}let v=f.spatialReference,k=new d.A({x:b,y:I,spatialReference:v}),M=w===o&&R===u&&c.x%w===0&&c.y%R===0,T=new d.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference}),A=!e.spatialReference.equals(v),P=v.isGeographic?1e-9:1e-4,{datumTransformation:F}=r;if(!A&&M&&1===y.pixelBlocks.length&&w===t&&R===i&&function(e,t,i){return Math.abs(e.x-t.x)<i&&Math.abs(e.y-t.y)<i}(a,T,P))return{extent:e,srcExtent:h,srcTilePixelSize:k,pixelBlock:y.pixelBlocks[0]};let z=g&&null!=(0,S.FT)(h.spatialReference)&&this._hasNoneOrGCSShiftTransform,B=r.requestProjectedLocalDirections&&this.rasterInfo.dataType.startsWith("vector");B&&!this.rasterJobHandler&&await(0,S.Hh)();let D,J=this.rasterJobHandler?await this.rasterJobHandler.getProjectionOffsetGrid({projectedExtent:e,srcBufferExtent:h,pixelSize:T.toJSON(),datumTransformation:F,rasterTransform:p,hasWrapAround:n>0||z,isAdaptive:!1!==this.ioConfig.optimizeProjectionAccuracy,includeGCSGrid:B},r):(0,S.l0)({projectedExtent:e,srcBufferExtent:h,pixelSize:T,datumTransformation:F,rasterTransform:p,hasWrapAround:n>0||z,isAdaptive:!1,includeGCSGrid:B}),H=!r.requestRawData,N={rows:J.spacing[0],cols:J.spacing[1]},O=this._hasNoneOrGCSShiftTransform?this._getRasterTileAlignmentInfo(s,h.xmin):void 0,{pixelBlocks:E,mosaicSize:Z,isPartiallyFilled:L}=y,W=null;if(this.rasterJobHandler){let e=await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:E,srcMosaicSize:Z,destDimension:H?{width:t,height:i}:null,coefs:H?J.coefficients:null,sampleSpacing:H?N:null,projectDirections:B,gcsGrid:B?J.gcsGrid:null,isUV:"vector-uv"===this.rasterInfo.dataType,interpolation:r.interpolation,alignmentInfo:O,blockWidths:null},r);({pixelBlock:D,localNorthDirections:W}=e)}else{let e=(0,_.z7)(E,Z,{alignmentInfo:O});D=H?(0,_.$i)(e,{width:t,height:i},J.coefficients,N,r.interpolation):e,B&&J.gcsGrid&&(W=(0,_.QF)({width:t,height:i},J.gcsGrid),D=(0,C.Y2)(D,this.rasterInfo.dataType,W))}return r.requestRawData||B?{extent:e,srcExtent:h,srcTilePixelSize:k,pixelBlock:D,transformGrid:J,localNorthDirections:W,isPartiallyFilled:L}:{extent:e,srcExtent:e,srcTilePixelSize:k,pixelBlock:D}}async _fetchRawTiles(e,t,i,r){let{origin:n,blockBoundary:l}=this.rasterInfo.storageInfo,{blockWidth:s,blockHeight:a}=this.getBlockWidthHeight(e),{x:o,y:u}=t,{width:c,height:d,wrapCount:f}=i,p=this._getRasterTileAlignmentInfo(e,0);r.buffer&&(o-=r.buffer.cols,u-=r.buffer.rows,c+=2*r.buffer.cols,d+=2*r.buffer.rows);let m=0,g=0,y=0;f&&null!=p&&(({worldColumnCountFromOrigin:g,originColumnOffset:y,rightPadding:m}=p),g*p.blockWidth-m>=o+c&&(m=0));let x=Math.floor(o/s),w=Math.floor(u/a),R=Math.floor((o+c+m-1)/s),b=Math.floor((u+d+m-1)/a),I=l[e];if(!I)return null;let{minRow:v,minCol:_,maxCol:S,maxRow:C}=I;if(0===f&&(b<v||R<_||w>C||x>S))return null;let k=[],M=!1,T=null==this.ioConfig.allowPartialFill?r.allowPartialFill:this.ioConfig.allowPartialFill;for(let t=w;t<=b;t++)for(let i=x;i<=R;i++){let n=i;if(!r.disableWrapAround&&f&&null!=p&&g<=i&&(n=i-g-y),t>=v&&n>=_&&C>=t&&S>=n){let i=this._fetchRawTile(e,t,n,r);T?k.push(new Promise(e=>{i.then(t=>e(t)).catch(()=>{M=!0,e(null)})})):k.push(i)}else k.push(Promise.resolve(null))}if(0===k.length)return null;let A=await Promise.all(k),P={height:(b-w+1)*a,width:(R-x+1)*s},{spatialReference:F}=this.rasterInfo,{x:z,y:B}=this.getPyramidPixelSize(e);return{extent:new h.A({xmin:n.x+x*s*z,xmax:n.x+(R+1)*s*z,ymin:n.y-(b+1)*a*B,ymax:n.y-w*a*B,spatialReference:F}),pixelBlocks:A,mosaicSize:P,isPartiallyFilled:M}}_fetchRawTile(e,t,i,r){let{storageInfo:n}=this.rasterInfo,l=null!=n.transposeInfo&&!!r.transposedVariableName;if(!l){let r=n.blockBoundary[e];if(!r)return Promise.resolve(null);let{minRow:l,minCol:s,maxCol:a,maxRow:o}=r;if(t<l||i<s||t>o||i>a)return Promise.resolve(null)}let s=l?r.transposeVariableName:r.sliceId,a=n.isBsqTile?r.bandIds:null,o=function(e,t,i){let r=[];return null!=t&&r.push(`sliceId=${t}`),null!=i&&r.push(`bandIds=${i.join(",")}`),r.length?`${e}?${r.join("&")}`:e}(this.rasterId,s,a),c=`${e}/${t}/${i}`,h=this.ioConfig.rawBlockCacheMode??"default",d="no-cache"===h,f="minimum"===h?void 0:r.registryId,p=d?null:F(o,f,c);if(null==p){let l=d?null:new AbortController,s=l?.signal??r.signal,a=r.bandIds?.slice();if(a?.length&&n.isBsqTile){let n=new Set(a),l=[],o=Array.from(n);for(let n of o)l.push(this._tileFetchQueue.push({pyramidLevel:e,row:t,col:i,options:{...r,bandIds:[n]}},{signal:s}));p=Promise.all(l).then(e=>{if(e.some(e=>null==e))return null;if(o.length!==a.length){let t=[];for(let i of a){let r=e[o.indexOf(i)];t.includes(r)&&(r=r.clone()),t.push(r)}e=t}return this.rasterJobHandler?this.rasterJobHandler.compositeBands({pixelBlocks:e},{signal:s,transferPixelsToWorker:!0}):(0,_.Wy)(e)})}else p=this._tileFetchQueue.push({pyramidLevel:e,row:t,col:i,options:r},{signal:s});d||(z(o,f,c,p,l),p.catch(()=>B(o,f,c)))}return!d&&r.signal&&(0,u.u7)(r,()=>{P(o,f,c)}),p}_computeMagDirValues(e){let{bandCount:t,dataType:i}=this.rasterInfo;if((2!==t||"vector-magdir"!==i)&&"vector-uv"!==i||2!==e?.length||!e[0]?.length)return null;let r=e[0].length;if("vector-magdir"===i){let t=e[1].map(e=>(e+360)%360);return[e[0],t]}let[n,l]=e,s=[],a=[];for(let e=0;e<r;e++){let[t,i]=(0,C.Lu)([n[e],l[e]]);s.push(t),a.push(i)}return[s,a]}_getRasterTileAlignmentInfo(e,t){return this._rasterTileAlignmentInfo??=(0,S.DO)(this.rasterInfo),null==this._rasterTileAlignmentInfo.pyramidsInfo?null:{startX:t,halfWorldWidth:this._rasterTileAlignmentInfo.halfWorldWidth,hasGCSSShiftTransform:this._rasterTileAlignmentInfo.hasGCSSShiftTransform,...this._rasterTileAlignmentInfo.pyramidsInfo[e]}}_getSourceDataInfo(e,t,i,r={}){let n={datumTransformation:r.datumTransformation,pyramidLevel:0,pyramidResolution:null,srcExtent:null,srcHeight:0,srcResolution:null,srcWidth:0,ul:{x:0,y:0}};r.srcResolution&&(n.srcResolution=r.srcResolution,this._updateSourceDataInfo(e,n));let l=this.rasterInfo.storageInfo.maximumPyramidLevel||0,{srcWidth:s,srcHeight:a,pyramidLevel:o}=n,u=s/t,c=a/i,h=o<l&&u*c>=16,f=o===l&&this._requireTooManySrcTiles(s,a,t,i);if(h||f||0===s||0===a){let s=new d.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/i,spatialReference:e.spatialReference}),a=(0,S.Wo)(s,this.rasterInfo.spatialReference,e,n.datumTransformation),f=!a||r.srcResolution&&a.x+a.y<r.srcResolution.x+r.srcResolution.y;if(h&&r.srcResolution&&f){let e=Math.round(Math.log(Math.max(u,c))/Math.LN2)-1;if(l-o+3>=e){let t=2**e;a={x:r.srcResolution.x*t,y:r.srcResolution.y*t}}}a&&(n.srcResolution=a,this._updateSourceDataInfo(e,n))}return this._requireTooManySrcTiles(n.srcWidth,n.srcHeight,t,i)&&(n.srcWidth=0,n.srcHeight=0),n}_requireTooManySrcTiles(e,t,i,r){let{tileInfo:n}=this.rasterInfo.storageInfo,l=e/i,s=t/r;return Math.ceil(e/n.size[0])*Math.ceil(t/n.size[1])>=256*Math.max(1,(i+r)/1024)||l>8||s>8}_updateSourceDataInfo(e,t){t.srcWidth=0,t.srcHeight=0;let{rasterInfo:i}=this,r=i.spatialReference,{srcResolution:n,datumTransformation:l}=t,{pyramidLevel:s,pyramidResolution:a,excessiveReading:o}=(0,S.t$)(n,i,this.ioConfig.sampling);if(o)return;let u=t.srcExtent||(0,S._l)(e,r,l);if(null==u)return;let c=i.transform;c&&(u=c.inverseTransform(u)),t.srcExtent=u;let{origin:h}=i.storageInfo,{width:d,height:f,ul:p}=(0,k.$g)(u,h,a,s);t.pyramidLevel=s,t.pyramidResolution=a,t.srcWidth=d,t.srcHeight=f,t.ul=p}_getRequestOptionsWithSliceId(e){return null!=this.rasterInfo.multidimensionalInfo&&null==e.sliceId&&(e={...e,sliceId:this.getSliceIndex(e.multidimensionalDefinition)}),e}_processIdentifyResult(e,t){let{srcLocation:i,position:r,pyramidLevel:n,useTransposedTile:l}=t,s=e.pixels[0].length/e.width/e.height;if(e.mask&&!e.mask[r])return{location:i,value:null};let{multidimensionalInfo:a}=this.rasterInfo;if(null==a||!l){let t=e.pixels.map(e=>e[r]),l={location:i,value:t,pyramidLevel:n},s=this._computeMagDirValues(t.map(e=>[e]));return s?.length&&(l.magdirValue=s.map(e=>e[0])),l}let o=e.pixels.map(e=>e.slice(r*s,r*s+s)),u=this._computeMagDirValues(o),{requestSomeSlices:c,identifyOptions:h}=t,d=(0,M.QW)(a,h.transposedVariableName);if(c){let e=(0,M.xx)(d,h.multidimensionalDefinition,h.timeExtent);o=o.map(t=>e.map(e=>t[e])),u=u?.map(t=>e.map(e=>t[e])),d=e.map(e=>d[e])}let f,p=e.noDataValues||this.rasterInfo.noDataValue,m={pixels:o,pixelType:e.pixelType};return null!=p&&((0,b.Sp)(m,p),f=m.mask),{location:i,value:null,dataSeries:d.map((e,t)=>{let i={value:0===f?.[t]?null:o.map(e=>e[t]),multidimensionalDefinition:e.multidimensionalDefinition.map(e=>new y.A({...e,isSlice:!0}))};return u?.length&&(i.magdirValue=[u[0][t],u[1][t]]),i}),pyramidLevel:n}}};(0,r.Cg)([(0,n.MZ)()],J.prototype,"_rasterTileAlignmentInfo",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"_tileFetchQueue",void 0),(0,r.Cg)([(0,n.MZ)({readOnly:!0})],J.prototype,"_isGlobalWrappableSource",null),(0,r.Cg)([(0,n.MZ)({readOnly:!0})],J.prototype,"_hasNoneOrGCSShiftTransform",null),(0,r.Cg)([(0,n.MZ)()],J.prototype,"_openPromise",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"rasterJobHandler",null),(0,r.Cg)([(0,n.MZ)({readOnly:!0})],J.prototype,"rasterId",null),(0,r.Cg)([(0,n.MZ)(g.OZ)],J.prototype,"url",null),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],J.prototype,"datasetName",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],J.prototype,"datasetFormat",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"hasUniqueSourceStorageInfo",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"rasterInfo",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"ioConfig",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,n.MZ)()],J.prototype,"rawBlockRegistryIds",void 0),J=(0,r.Cg)([(0,n.$K)("esri.layers.raster.datasets.BaseRaster")],J)},23636(e,t,i){i.d(t,{A:()=>p});var r=i(32198),n=i(91429),l=i(49186),s=i(5443),a=i(86738),o=i(39829),u=i(22671),c=i(34930),h=i(47520),d=i(37373),f=i(49859);let p=class extends f.A{constructor(){super(...arguments),this.datasetFormat="Function",this.tileType="Raster",this.rasterFunction=null,this._clippingGeometry=new Map}async fetchPixels(e,t,i,r={}){let{rasters:n}=this.primaryRasters,l=!1,{interpolation:s}=r,a=this.rasterFunction.flatWebGLFunctionChain?.hasFocalFunction;!r.requestRawData&&a&&(l=1===n.length&&!r.skipRasterFunction,r={...r,interpolation:"bilinear",requestRawData:l}),r.requestRawData&&n.length>1&&!this.hasUniqueSourceStorageInfo&&(l=!1,r={...r,requestRawData:!1});let o=n.map(n=>n.fetchPixels(e,t,i,r)),u=await Promise.all(o),d=u.map(e=>e.pixelBlock),f=l||r.requestRawData?u.map(e=>e.srcTilePixelSize):void 0;if(r.skipRasterFunction||d.every(e=>null==e))return u[0];let p=u.find(e=>null!=e.pixelBlock)?.extent??e,m=await this._processPixelBlock(d,p,f),{transformGrid:g}=u[0];if(!l||null==m||null==g){let e=r.noClip?null:this.getClippingGeometry(p.spatialReference);return!r.noClip&&null!=m&&e&&(m=await(0,c.$Q)(m,p,e)),{...u[0],pixelBlock:m}}let y,x={rows:g.spacing[0],cols:g.spacing[1]};y=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:[m],srcMosaicSize:{width:m.width,height:m.height},destDimension:{width:t,height:i},coefs:g.coefficients,sampleSpacing:x,projectDirections:!1,gcsGrid:null,isUV:!1,interpolation:s,alignmentInfo:void 0,blockWidths:null},r)).pixelBlock:(0,h.$i)(m,{width:t,height:i},g.coefficients,x,s);let w=r.noClip?null:this.getClippingGeometry(e.spatialReference);return!r.noClip&&null!=y&&null!=w&&(y=await(0,c.$Q)(y,e,w)),{extent:e,srcExtent:u[0].srcExtent,pixelBlock:y,srcTilePixelSize:u[0].srcTilePixelSize}}async processOnePixel(e,t){let{extent:i,pixelBlock:r}=t;if(!r)return null;let{row:n,col:l}=e,{width:a,height:o}=r;if(n<0||n>=o||l<0||l>=a)return null;let{neighborhoodSize:u}=this.rasterFunction,c=Math.max(2,u.rows),d=Math.max(2,u.cols),f=d>>>1,p=c>>>1,m={x:Math.max(0,l-f),y:Math.max(0,n-p)},g=i.width/a,y=i.height/o,x=i.xmin+g*m.x,w=x+g*d,R=i.ymax-y*m.y,b=R-y*c,I=new s.A({xmin:x,ymin:b,xmax:w,ymax:R,spatialReference:i.spatialReference}),v=(0,h.$Q)(r,m,{width:d,height:c});if(null==v)return null;let _=await this.processPixelData({extent:I,pixelBlock:v}),S=(n-m.y)*d+(l-m.x);return _&&0!==_.mask?.[S]?_.pixels.map(e=>e[S]):null}async processPixelData(e){let{extent:t,pixelBlock:i}=e;if(!i)return null;let r=new a.A({x:t.width/i.width,y:t.height/i.height,spatialReference:t.spatialReference});return await this._processPixelBlock([i],t,[r])}getClippingGeometry(e){let t=this._clippingGeometry.get("0");if(!e||!t)return t;let i=function(e){return String(e.wkid??e.wkt??e.wkt2)}(e),r=this._clippingGeometry.get(i);return r??(r=e.equals(t.spatialReference)?t:(0,d.uk)(t,e),this._clippingGeometry.set(i,r)),r}async _open(e){let{rasterFunction:t}=this;t.isRoot=!0,this.primaryRasters?.rasters?.length?t.sourceRasters=this.primaryRasters.rasters:(this.primaryRasters=t.getPrimaryRasters(),this.rasterJobHandler&&this.primaryRasters.rasters?.forEach(e=>e.rasterJobHandler=this.rasterJobHandler));let{rasters:i,rasterIds:r}=this.primaryRasters,n=i.map(t=>t.rasterInfo?void 0:t.open(e));await Promise.all(n);let s=i.map(({rasterInfo:e})=>e),a=t.bind({rasterInfos:s,rasterIds:r});if(t.rawSourceRasterInfos=s,!a.success||0===s.length)throw new l.A("raster-function:open",`cannot bind the function: ${a.error??""}`);let o="Table"===t.functionName?t:t.functionArguments?.raster;"Table"===o?.functionName&&(t.rasterInfo.attributeTable=u.A.fromJSON(o.functionArguments.attributeTableAsRecordSet)),await this.syncJobHandler();let c=s[0];this.hasUniqueSourceStorageInfo=1===s.length||s.slice(1).every(e=>function(e,t){let{storageInfo:i,pixelSize:r,spatialReference:n,extent:l}=e,{storageInfo:s,pixelSize:a,spatialReference:o,extent:u}=t;return r.x===a.x&&r.y===a.y&&n.equals(o)&&l.equals(u)&&i.blockHeight===s.blockHeight&&i.blockWidth===s.blockWidth&&i.maximumPyramidLevel===s.maximumPyramidLevel&&i.firstPyramidLevel===s.firstPyramidLevel&&i.pyramidBlockWidth===s.pyramidBlockWidth&&i.pyramidBlockHeight===s.pyramidBlockHeight&&i.pyramidScalingFactor===s.pyramidScalingFactor}(e,c)),this.set("sourceJSON",i[0].sourceJSON),this.set("rasterInfo",t.rasterInfo),await this._updateClipGeometry()}async syncJobHandler(){return this.rasterJobHandler?.updateRasterFunction(this.rasterFunction)}async _processPixelBlock(e,t,i){let{processParameters:r,primaryRasters:{rasterIds:n}}=this;return this.rasterJobHandler?await this.rasterJobHandler.process({extent:t,primaryPixelBlocks:e,primaryPixelSizes:i,primaryRasterIds:n,parameters:r}):this.rasterFunction.process({extent:t,primaryPixelBlocks:e,primaryPixelSizes:i,primaryRasterIds:n},r)}async _updateClipGeometry(){let e=this.rasterFunction.getClippingGeometries()[0],t=e?.clippingGeometry;if(t&&"inside"===e.clippingType){let{extent:e}=this.rasterInfo,{densifyExecute:r}=await Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(4642)]).then(()=>i(88411)),{differenceExecute:n}=await Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(7217)]).then(()=>i(93054)),l=r(o.A.fromExtent(e),2*(e.width+e.height)/40);l=(0,d.uk)(l,t.spatialReference),t=n(l,t)}this._clippingGeometry.clear(),t&&this._clippingGeometry.set("0",t)}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"datasetFormat",void 0),(0,r.Cg)([(0,n.MZ)()],p.prototype,"tileType",void 0),(0,r.Cg)([(0,n.MZ)()],p.prototype,"rasterFunction",void 0),(0,r.Cg)([(0,n.MZ)()],p.prototype,"processParameters",void 0),(0,r.Cg)([(0,n.MZ)()],p.prototype,"primaryRasters",void 0),p=(0,r.Cg)([(0,n.$K)("esri.layers.raster.datasets.FunctionRaster")],p)},330(e,t,i){function r(e,t){if(!e||!t)return[];let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";let n=[];if(t){let l=r(e,i);for(let e=0;e<l.length;e++)r(l[e],t).forEach(e=>n.push(e));return n}let l=e.getElementsByTagNameNS("*",i);if(!l||0===l.length)return[];for(let e=0;e<l.length;e++)n.push(l[e]||l.item(e));return n}function n(e,t){if(!e||!t)return null;let i=t;t.includes("/")?(i=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";let l=r(e,i);return l.length>0?t?n(l[0],t):l[0]:null}function l(e,t=null){let i,r=t?n(e,t):e;return r&&(i=r.textContent||r.nodeValue)?i.trim():null}function s(e,t){let i,n=r(e,t),l=[];for(let e=0;e<n.length;e++)i=n[e].textContent||n[e].nodeValue,i&&(i=i.trim(),""!==i&&l.push(i));return l}function a(e,t=null){return l(e,t)?.split(" ").map(e=>Number(e))??[]}function o(e,t){return s(e,t).map(e=>Number(e))}function u(e,t){let i=l(e,t);return Number(i)}function c(e,t){let i=e?.nodeName?.toLowerCase(),r=t.toLowerCase();return i.slice(i.lastIndexOf(":")+1)===r}function h(e){return e.nodeName.slice(e.nodeName.lastIndexOf(":")+1)}i.d(t,{Dy:()=>s,IC:()=>r,Ui:()=>o,V6:()=>n,g7:()=>c,mX:()=>l,pN:()=>a,v7:()=>u,vv:()=>h})},91806(e,t,i){i.d(t,{A:()=>o});var r,n=i(32198),l=i(91429),s=i(56507),a=i(25482);let o=class extends a.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],o.prototype,"cols",void 0),(0,n.Cg)([(0,l.MZ)({type:s.jz,json:{write:!0}})],o.prototype,"level",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],o.prototype,"levelValue",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],o.prototype,"origin",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],o.prototype,"resolution",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],o.prototype,"rows",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],o.prototype,"scale",void 0),o=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.LOD")],o)},87045(e,t,i){i.d(t,{A:()=>w});var r,n=i(32198),l=i(91429),s=i(56507),a=i(66552),o=i(25482),u=i(86211),c=i(86738),h=i(16930),d=i(21325),f=i(28735),p=i(91806),m=i(72802),g=i(36005),y=i(43937);const x=new a.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",JPEGPlus:"jpgplus",pbf:"pbf"});let w=class extends o.o{static{r=this}static create(e={}){let{resolutionFactor:t=1,scales:i,size:n=256,spatialReference:l=h.A.WebMercator,numLODs:s=24}=e;if(!(0,d.fn)(l)){let e=[];if(i)for(let t=0;t<i.length;t++){let r=i[t];e.push(new p.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=s-1;i>=0;i--)e.unshift(new p.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new c.A({x:0,y:0,spatialReference:l}),size:[n,n],spatialReference:l})}let a=(0,d.Vp)(l),o=e.origin?new c.A({x:e.origin.x,y:e.origin.y,spatialReference:l}):a?new c.A({x:a.origin[0],y:a.origin[1],spatialReference:l}):new c.A({x:0,y:0,spatialReference:l}),f=1/(39.37*(0,u.GA)(l)*96),m=[];if(i)for(let e=0;e<i.length;e++){let t=i[e],r=t*f;m.push(new p.A({level:e,scale:t,resolution:r}))}else{let e=(0,d.EA)(l)?512/n*591657527.5917094:256/n*591657527.591555,i=Math.ceil(s/t);m.push(new p.A({level:0,scale:e,resolution:e*f}));for(let r=1;r<i;r++){let i=e/2**t,n=i*f;m.push(new p.A({level:r,scale:i,resolution:n})),e=i}}return new r({dpi:96,lods:m,origin:o,size:[n,n],spatialReference:l})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){let{spatialReference:e,origin:t}=this;if(e&&t){let i=(0,d.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return c.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0,r=[],n=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,n[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){let t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];let i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){let t=this.scales,i=t.length-1,r=0;for(;r<i;r++){let i=t[r],n=t[r+1];if(i<=e)return r;if(n===e)return r+1;if(i>e&&n<e)return r+Math.log(i/e)/Math.log(i/n)}return r}tileAt(e,t,i,r){let n,l,s=this.lodAt(e);if(!s)return null;if("number"==typeof t)n=t,l=i;else if((0,d.aI)(t.spatialReference,this.spatialReference))n=t.x,l=t.y,r=i;else{let e=(0,f.y)(t,this.spatialReference);if(null==e)return null;n=e.x,l=e.y,r=i}let a=s.resolution*this.size[0],o=s.resolution*this.size[1];return r??=new m.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-l)/o+.001),r.col=Math.floor((n-this.origin.x)/a+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let i=this.lodAt(e.level);if(!i&&1===t){let t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return!1;let r=e.level-i.level,n=i.resolution*this.size[0]/2**r,l=i.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*l,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+l,!0}upsampleTile(e){let t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){let i=this.lodAt(t.level);if(null==i)return null;let{resolution:r}=i,n=r*this.size[0],l=r*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*l,e[2]=e[0]+n,e[3]=e[1]+l,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;let t=(512===this.size[0]&&256===e?-1:0)+ +!!this.spatialReference.isGeographic;if(this.size[0]===e&&0===t)return this;let i=[],n=this.lods.length-t;for(let e=0;e<n;e++){let r=e+t,{scale:n,resolution:l}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new p.A({level:e,scale:n,resolution:l}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){let e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){let r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"compressionQuality",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],w.prototype,"dpi",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:x.read,write:x.write,origins:{"web-scene":{read:!1,write:!1}}}})],w.prototype,"format",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"isWrappable",null),(0,n.Cg)([(0,l.MZ)({type:c.A,json:{write:!0}})],w.prototype,"origin",void 0),(0,n.Cg)([(0,g.w)("origin")],w.prototype,"readOrigin",null),(0,n.Cg)([(0,l.MZ)({type:[p.A],value:null,json:{write:!0}})],w.prototype,"lods",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"scales",void 0),(0,n.Cg)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],w.prototype,"size",void 0),(0,n.Cg)([(0,g.w)("size",["rows","cols"])],w.prototype,"readSize",null),(0,n.Cg)([(0,y.K)("size",{cols:{type:s.jz},rows:{type:s.jz}})],w.prototype,"writeSize",null),(0,n.Cg)([(0,l.MZ)({type:h.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),w=r=(0,n.Cg)([(0,l.$K)("esri.layers.support.TileInfo")],w)},72802(e,t,i){i.d(t,{U:()=>n});var r=i(19419);class n{constructor(e,t,i,n=(0,r.vt)()){this._level=e,this._row=t,this._col=i,this.extent=n}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new n(e.level,e.row,e.col,e.extent)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[8331],{83349(e,t,r){r.d(t,{e:()=>o});const n=new Set;let i=!1;function o(e,t,r=2){let i=t&&t.length,o=i?t[0]*r:e.length;n.size&&n.clear();let l=s(e,0,o,r,!0),u=[];if(!l||l.next===l.prev)return u;let c=0,f=0,p=0;if(i&&(l=g(e,t,l,r)),e.length>80*r){c=e[0],f=e[1];let t=c,n=f;for(let i=r;i<o;i+=r){let r=e[i],o=e[i+1];r<c&&(c=r),o<f&&(f=o),r>t&&(t=r),o>n&&(n=o)}p=Math.max(t-c,n-f),p=0===p?0:32767/p}return a(l,u,c,f,p),u}function s(e,t,r,n,i){let o=null;if(i===H(e,t,r,n)>0)for(let i=t;i<r;i+=n)o=D(i/n|0,e[i],e[i+1],o);else for(let i=r-n;i>=t;i-=n)o=D(i/n|0,e[i],e[i+1],o);return o&&O(o,o.next)&&(I(o),o=o.next),o}function l(e,t=e){let r,o=t===e,s=e;do{r=!1,s===s.next||0!==n.size&&n.has(s)||!O(s,s.next)&&0!==j(s.prev,s,s.next)?(o||s!==t)&&(s=s.next,r=!o):((o||s===t)&&(t=s.prev),i=!0,I(s),s=s.prev,r=!0)}while(r||s!==t);return t}function a(e,t,r,n,o){o&&function(e,t,r,n){let i=e,o=0;do{i.z=_(i.x,i.y,t,r,n),T[o++]=i,i=i.next}while(i!==e);!function(e){if(e<=32)for(let t=1;t<e;t++){let e=T[t],r=e.z,n=t-1;for(;n>=0&&T[n].z>r;)T[n+1]=T[n],n--;T[n+1]=e}else{R.length<e&&(R=new Uint32Array(e),Z=new Uint32Array(e),S=Array(e));for(let t=0;t<e;t++)R[t]=T[t].z;N(e,T,R,S,Z,0),N(e,S,Z,T,R,8),N(e,T,R,S,Z,16),N(e,S,Z,T,R,24)}}(o);let s=null;for(let e=0;e<o;e++){let t=T[e];t.prevZ=s,s&&(s.nextZ=t),s=t}s.nextZ=null,T.fill(null,0,o),S.fill(null,0,o)}(e,r,n,o);let s=e,a=!1;for(;e.prev!==e.next;){let h=e.prev,g=e.next;if(j(h,e,g)<0&&(o?c(e,r,n,o):u(e)))t.push(h.i,e.i,g.i),I(e),e=g,s=g;else if((e=g)===s){if(i=!1,e=l(e),i){s=e;continue}if(!a){s=e=f(e,t),a=!0;continue}p(e,t,r,n,o);break}}}function u(e){let t=e.prev,r=e,n=e.next,i=t.x,o=r.x,s=n.x,l=t.y,a=r.y,u=n.y,c=Math.min(i,o,s),f=Math.min(l,a,u),p=Math.max(i,o,s),h=Math.max(l,a,u),g=n.next;for(;g!==t;){if(g.x>=c&&g.x<=p&&g.y>=f&&g.y<=h&&(i!==g.x||l!==g.y)&&E(i,l,o,a,s,u,g.x,g.y)&&j(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function c(e,t,r,n){let i=e.prev,o=e,s=e.next,l=i.x,a=o.x,u=s.x,c=i.y,f=o.y,p=s.y,h=Math.min(l,a,u),g=Math.min(c,f,p),y=Math.max(l,a,u),m=Math.max(c,f,p),d=_(h,g,t,r,n),x=_(y,m,t,r,n),v=e.prevZ;for(;v&&v.z>=d;){if(v.x>=h&&v.x<=y&&v.y>=g&&v.y<=m&&v!==s&&(l!==v.x||c!==v.y)&&E(l,c,a,f,u,p,v.x,v.y)&&j(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let w=e.nextZ;for(;w&&w.z<=x;){if(w.x>=h&&w.x<=y&&w.y>=g&&w.y<=m&&w!==s&&(l!==w.x||c!==w.y)&&E(l,c,a,f,u,p,w.x,w.y)&&j(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function f(e,t){let r=e,n=!1;do{let i=r.prev,o=r.next.next;P(i,r,r.next,o,!1)&&z(i,o)&&z(o,i)&&(t.push(i.i,r.i,o.i),I(r),I(r.next),r=e=o,n=!0),r=r.next}while(r!==e);return n?l(r):r}function p(e,t,r,n,i){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&L(o,e)){let s=F(o,e);return o=l(o,o.next),s=l(s,s.next),a(o,t,r,n,i),void a(s,t,r,n,i)}e=e.next}o=o.next}while(o!==e)}let h=!1;function g(e,t,r,i){let o=[];for(let r=0,l=t.length;r<l;r++){let a=s(e,t[r]*i,r<l-1?t[r+1]*i:e.length,i,!1);a===a.next&&n.add(a),o.push(B(a))}o.sort(y),function(e,t){let r=Math.ceil((e+2*t)/16)+t+2;d.length<4*r&&(d=new Float64Array(4*r)),x=0}(e.length/i,t.length),A(r,r),h=!0;for(let e=0;e<o.length;e++)r=m(o[e],r);return h=!1,l(r)}function y(e,t){return e.x-t.x||e.y-t.y||(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)}function m(e,t){let r=function(e,t){let r,n=t,i=e.x,o=e.y,s=-1/0;if(O(e,n))return n;for(let t=0,l=0;t<x;t++,l+=4){if(o<d[l+1]||o>d[l+3]||d[l]>i||d[l+2]<=s)continue;let a=b(t);n=M(t);do{if(n.prev.next===n){if(O(e,n.next))return n.next;if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){let e=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=i&&e>s&&(s=e,r=n.x<n.next.x?n:n.next,e===i))return r}}n=n.next}while(n!==a)}if(!r)return null;let l=r.x,a=r.y,u=Math.min(o,a),c=Math.max(o,a),f=1/0;for(let t=0,p=0;t<x;t++,p+=4){if(d[p+2]<l||d[p]>i||d[p+3]<u||d[p+1]>c)continue;let h=b(t);n=M(t);do{if(n.prev.next===n&&i>=n.x&&n.x>=l&&i!==n.x&&E(o<a?i:s,o,l,a,o<a?s:i,o,n.x,n.y)){let t=Math.abs(o-n.y)/(i-n.x);(z(n,e)||n.y===o&&n.next.y===o&&n.next.x>i)&&(t<f||t===f&&(n.x>r.x||n.x===r.x&&C(r,n)))&&(r=n,f=t)}n=n.next}while(n!==h)}return r}(e,t);if(!r)return t;let n=F(r,e);return A(r,n.next.next),l(n,n.next),l(r,r.next)}let d=new Float64Array,x=0;const v=[],w=[];function A(e,t){let r=e;do{let e=x++;v[e]=r;let n=1/0,i=1/0,o=-1/0,s=-1/0,l=0;do{let t=r.next;r.z=e,r.x<n&&(n=r.x),r.x>o&&(o=r.x),r.y<i&&(i=r.y),r.y>s&&(s=r.y),t.x<n&&(n=t.x),t.x>o&&(o=t.x),t.y<i&&(i=t.y),t.y>s&&(s=t.y),r=t}while(++l<16&&r!==t);w[e]=r;let a=4*e;d[a]=n,d[a+1]=i,d[a+2]=o,d[a+3]=s}while(r!==t)}function b(e){let t=w[e];for(;t.prev.next!==t;)t=t.next;return w[e]=t,t}function M(e){let t=v[e];for(;t.prev.next!==t;)t=t.next;return v[e]=t,t}function C(e,t){return j(e.prev,e,t.prev)<0&&j(t.next,e,e.next)<0}const T=[];let S=[],R=new Uint32Array,Z=new Uint32Array;const U=new Uint32Array(256);function N(e,t,r,n,i,o){U.fill(0);for(let t=0;t<e;t++)U[r[t]>>>o&255]++;let s=0;for(let e=0;e<256;e++){let t=U[e];U[e]=s,s+=t}for(let s=0;s<e;s++){let e=r[s],l=U[e>>>o&255]++;n[l]=t[s],i[l]=e}}function _(e,t,r,n,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function B(e){let t=e,r=e;do{(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next}while(t!==e);return r}function E(e,t,r,n,i,o,s,l){return(i-s)*(t-l)>=(e-s)*(o-l)&&(e-s)*(n-l)>=(r-s)*(t-l)&&(r-s)*(o-l)>=(i-s)*(n-l)}function L(e,t){let r=O(e,t)&&j(e.prev,e,e.next)>0&&j(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||z(e,t)&&z(t,e)&&(0!==j(e.prev,e,t.prev)||0!==j(e,t.prev,t)))&&!function(e,t){let r=Math.min(e.x,t.x),n=Math.max(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(e.y,t.y),s=e;do{let l=s.next;if(s.x>n&&l.x>n||s.x<r&&l.x<r||s.y>o&&l.y>o||s.y<i&&l.y<i)s=l;else{if(s.i!==e.i&&l.i!==e.i&&s.i!==t.i&&l.i!==t.i&&P(s,l,e,t))return!0;s=l}}while(s!==e);return!1}(e,t)&&(r||function(e,t){let r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{let e=r.next;r.y>o!=e.y>o&&i<(e.x-r.x)*(o-r.y)/(e.y-r.y)+r.x&&(n=!n),r=e}while(r!==e);return n}(e,t))}function j(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function O(e,t){return e.x===t.x&&e.y===t.y}function P(e,t,r,n,i=!0){let o=j(e,t,r),s=j(e,t,n),l=j(r,n,e),a=j(r,n,t);return(o>0&&s<0||o<0&&s>0)&&(l>0&&a<0||l<0&&a>0)||!!i&&!!(0===o&&$(e,r,t)||0===s&&$(e,n,t)||0===l&&$(r,e,n)||0===a&&$(r,t,n))}function $(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function z(e,t){return j(e.prev,e,e.next)<0?j(e,t,e.next)>=0&&j(e,e.prev,t)>=0:j(e,t,e.prev)<0||j(e,e.next,t)<0}function F(e,t){let r=k(e.i,e.x,e.y),n=k(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function D(e,t,r,n){let i=k(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function I(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),h&&function(e,t){let r=4*e.z;t.x<d[r]&&(d[r]=t.x),t.y<d[r+1]&&(d[r+1]=t.y),t.x>d[r+2]&&(d[r+2]=t.x),t.y>d[r+3]&&(d[r+3]=t.y)}(e.prev,e.next)}function k(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function H(e,t,r,n){let i=0;for(let o=t,s=r-n;o<r;o+=n)i+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return i}let W,K,q,V,G,Y=0,J=0;function Q(e,t,r,n,i,o){return(r-e)*(o-t)-(n-t)*(i-e)}function X(e,t,r,n,i,o,s,l){let a=e-s,u=t-l,c=r-s,f=n-l,p=i-s,h=o-l,g=a*a+u*u,y=c*c+f*f,m=p*p+h*h,d=g+y+m;return a*(f*m-y*h)-u*(c*m-y*p)+g*(c*h-f*p)<=1e-13*d*d}function ee(e){return e-e%3+(e+1)%3}o.deviation=function(e,t,r,n){let i=t&&t.length,o=i?t[0]*r:e.length,s=Math.abs(H(e,0,o,r));if(i)for(let n=0,i=t.length;n<i;n++){let o=t[n]*r,l=n<i-1?t[n+1]*r:e.length;s-=Math.abs(H(e,o,l,r))}let l=0;for(let t=0;t<n.length;t+=3){let i=n[t]*r,o=n[t+1]*r,s=n[t+2]*r;l+=Math.abs((e[i]-e[s])*(e[o+1]-e[i+1])-(e[i]-e[o])*(e[s+1]-e[i+1]))}return 0===s&&0===l?0:Math.abs((l-s)/s)},o.flatten=function(e){let t=[],r=[],n=e[0][0].length,i=0,o=0;for(let s of e){for(let e of s)for(let r=0;r<n;r++)t.push(e[r]);o&&(i+=o,r.push(i)),o=s.length}return{vertices:t,holes:r,dimensions:n}},o.refine=function(e,t,r=2){let n=e,i=n.length;if(i<6)return;(function(e){(!W||W.length<e)&&(W=new Int32Array(e)),(!K||K.length<e)&&(K=new Int32Array(e)),(!G||G.length<e)&&(G=new Uint8Array(e));let t=1;for(;t<4*e;)t<<=1;(!q||q.length<t)&&(q=new Int32Array(t),V=new Uint32Array(t)),Y=t-1})(i),J++,K.fill(-1,0,i);let o=0;for(let e=0;e<i;e++){let t=n[e],r=n[ee(e)],i=t<r?t:r,s=t<r?r:t,l=(Math.imul(i,2654435761)^Math.imul(s,2246822507))&Y;for(;V[l]===J;){let t=q[l];if(-1!==t){let r=n[t],a=n[ee(t)];if(r===i&&a===s||r===s&&a===i){K[e]=t,K[t]=e,q[l]=-1,G[t]=1,W[o++]=t;break}}l=l+1&Y}V[l]!==J&&(q[l]=e,V[l]=J)}for(;o>0;){let e=W[--o];G[e]=0;let i=K[e];if(-1===i)continue;let s=e-e%3,l=i-i%3,a=s+(e+2)%3,u=s+(e+1)%3,c=l+(i+2)%3,f=l+(i+1)%3,p=n[a],h=n[e],g=n[u],y=n[c],m=t[p*r],d=t[p*r+1],x=t[h*r],v=t[h*r+1],w=t[g*r],A=t[g*r+1],b=t[y*r],M=t[y*r+1];if(!X(m,d,x,v,w,A,b,M)&&Q(m,d,x,v,b,M)>0&&Q(m,d,b,M,w,A)>0){n[e]=y,n[i]=p;let t=K[c],r=K[a];K[e]=t,-1!==t&&(K[t]=e),K[i]=r,-1!==r&&(K[r]=i),K[a]=c,K[c]=a,-1!==t&&0===G[e]&&(G[e]=1,W[o++]=e),-1!==r&&0===G[i]&&(G[i]=1,W[o++]=i),-1!==K[u]&&0===G[u]&&(G[u]=1,W[o++]=u),-1!==K[f]&&0===G[f]&&(G[f]=1,W[o++]=f)}}}},73354(e,t,r){r.d(t,{a:()=>f,b:()=>l,c:()=>i,d:()=>s,e:()=>p,f:()=>c,l:()=>u,n:()=>h,t:()=>o}),r(44208);var n=r(72727);function i(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[4],h=r[5],g=r[6],y=r[8],m=r[9],d=r[10],x=r[12],v=r[13],w=r[14],A=0,b=0;for(let r=0;r<a;r++){let r=t[A],n=t[A+1],s=t[A+2];e[b]=u*r+p*n+y*s+x,e[b+1]=c*r+h*n+m*s+v,e[b+2]=f*r+g*n+d*s+w,A+=o,b+=i}return e}function s(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function l(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[3],h=r[4],g=r[5],y=r[6],m=r[7],d=r[8],x=0,v=0;for(let r=0;r<a;r++){let r=t[x],n=t[x+1],s=t[x+2];e[v]=u*r+p*n+y*s,e[v+1]=c*r+h*n+m*s,e[v+2]=f*r+g*n+d*s,x+=o,v+=i}}function a(e,t,r,n=3,i=n){let o=Math.min(e.length/n,t.length/i),s=0,l=0;for(let a=0;a<o;a++)e[l]=r*t[s],e[l+1]=r*t[s+1],e[l+2]=r*t[s+2],s+=i,l+=n;return e}function u(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,n,i=3,o=i){let s=Math.min(e.length/i,t.length/o),l=0,a=0,u=1/2.2;for(let c=0;c<s;c++)e[a]=n*(r*t[l])**u,e[a+1]=n*(r*t[l+1])**u,e[a+2]=n*(r*t[l+2])**u,l+=o,a+=i}function f(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=0,c=0;for(let n=0;n<a;n++)e[c]=t[u]+r[0],e[c+1]=t[u+1]+r[1],e[c+2]=t[u+2]+r[2],u+=o,c+=i;return e}function p(e,t){h(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function h(e,t,r=3,n=r){let i=Math.min(e.length/r,t.length/n),o=0,s=0;for(let l=0;l<i;l++){let i=t[o],l=t[o+1],a=t[o+2],u=i*i+l*l+a*a;if(u>0){let t=1/Math.sqrt(u);e[s]=t*i,e[s+1]=t*l,e[s+2]=t*a}o+=n,s+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:h,normalizeView:p,scale:a,scaleView:function(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){let n=Math.min(e.count,t.count),i=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,l=t.typedBufferStride,a=0,u=0;for(let e=0;e<n;e++)i[u]=s[a]>>r,i[u+1]=s[a+1]>>r,i[u+2]=s[a+2]>>r,a+=l,u+=o},transformMat3:l,transformMat3View:s,transformMat4:o,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},21287(e,t,r){r.d(t,{M5:()=>f,eV:()=>c});var n=r(78888),i=r(26306),o=r(49186),s=r(17676),l=r(84952);let a=null,u=!0;function c(e,t,r,n){if(!t||!r)throw Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,r)}catch{u=!1}let i=function(e,t,r){return r||=(a||(a=document.createElement("canvas"),a.width=1,a.height=1),a),r.getContext("2d").createImageData(e,t)}(t,r,n);return i.data.set(e,0),i}async function f(e,t){let{arrayBuffer:a,mediaType:u}=await async function(e,t){let r=(0,l.r$)(e);if(r?.isBase64)return{arrayBuffer:(0,i.M)(r.data),mediaType:r.mediaType};let o=await(0,n.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){let{isAnimatedGIF:e,parseGif:n}=await r.e(820).then(()=>r(88439));if(e(a))return n(a,t)}if(c){let{isAnimatedPNG:e,parseApng:n}=await r.e(2390).then(()=>r(22390));if(e(a))return n(a,t)}return async function(e,t){let r=window.URL.createObjectURL(e);try{let{data:e}=await(0,n.A)(r,{...t,responseType:"image"});return e}catch(e){throw(0,s.zf)(e)?e:new o.A("invalid-image",`Could not fetch requested image at ${r}`)}finally{window.URL.revokeObjectURL(r)}}(new Blob([a],{type:u}),t)}},83300(e,t,r){r.d(t,{A:()=>Me});var n=r(32198),i=r(91429),o=r(69540),s=r(51850),l=r(92474),a=r(53966),u=r(61893),c=r(17676),f=r(36708),p=r(91075),h=r(86738),g=r(70328),y=r(24770),m=r(16939),d=r(95696),x=r(18251),v=r(73836),w=r(35522),A=r(65806),b=r(27615);function M(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}var C=r(22141),T=r(72258);const S=()=>a.A.getLogger("esri.geometry.support.meshUtils.centerAt");const R=(0,s.vt)(),Z=(0,s.vt)(),U=(0,s.vt)();var N=r(9093),_=r(5443),B=r(48353),E=r(9762),L=r(99917),j=r(98764),O=r(73354),P=r(4197);const $=(0,N.vt)(),z=(0,P.jh)(24);var F=r(49186),D=r(84952);function I(e){let t=(0,D.nM)(e.url);return r=>{let n=(0,D.V1)(r,t,t),i=n?n.replace(/^ *\.\//,""):null;return(i?e.files.get(i):null)??r}}function k(e){return Y.fromBlob(e,J(e.name,e.type))}const H=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,K=/\.gltf$/i,q=/\.glb$/i;function V({mimeType:e,source:t,name:r}){return H.test(e)||K.test(r)?{url:t.url,type:"gltf"}:W.test(e)||q.test(r)?{url:t.url,type:"glb"}:null}function G(e){let t=new Map,r=null,n=null;for(let i of e){let{source:e,name:o}=i;r??=V(i),"ESRI3DO_NORM.glb"===o&&(n=V(i)),t.set(o,e.url),e.files.forEach((e,r)=>t.set(r,e))}let i=n??r;if(null==i)throw new F.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new Y(i.url,()=>e.forEach(({source:e})=>e.dispose()),t,i.type)}class Y{constructor(e,t=()=>{},r=new Map,n){this.url=e,this.dispose=t,this.files=r,this.type=n}static fromBlob(e,t){let r=URL.createObjectURL(e);return new Y(r,()=>URL.revokeObjectURL(r),void 0,t)}}function J(e,t){return H.test(t)||K.test(e)?"gltf":W.test(t)||K.test(e)?"glb":void 0}var Q=r(66895),X=r(29461),ee=r(77690),te=r(29242),re=r(58083),ne=r(67026),ie=r(82534);const oe=()=>a.A.getLogger("esri.geometry.support.meshUtils.rotate");function se(e,t,r,n=s.uY){if(null!=e){(0,re.$0)(ce,(0,y.$I)(t),(0,y.yo)(t));for(let t=0;t<e.length;t+=r){for(let r=0;r<3;r++)le[r]=e[t+r]-n[r];(0,w.Z0)(le,le,ce);for(let r=0;r<3;r++)e[t+r]=le[r]+n[r]}}}const le=(0,s.vt)(),ae=(0,N.vt)(),ue=(0,y.vt)(),ce=(0,N.vt)(),fe=(0,te.vt)(),pe=(0,s.vt)(),he=(0,ie.vt)(),ge=()=>a.A.getLogger("esri.geometry.support.meshUtils.scale");function ye(e,t,r=s.uY){if(e)for(let n=0;n<e.length;n+=3){for(let t=0;t<3;t++)me[t]=e[n+t]-r[t];(0,w.hs)(me,me,t);for(let t=0;t<3;t++)e[n+t]=me[t]+r[t]}}const me=(0,s.vt)(),de=(0,s.vt)(),xe=(0,N.vt)(),ve=(0,s.vt)();var we,Ae=r(1193);const be={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:d.A,local:x.A}};let Me=we=class extends((0,o.OU)((0,l.WV)((0,u.g)(p.A)))){constructor(e){super(e),this.components=null,this.vertexSpace=new d.A,this.transform=null,this.metadata=new X.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Ae.A,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,f.wB)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(e=>e.clone())}),()=>this._clearSources(),{once:!0,sync:!0}))}).catch(()=>{})}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){let{spatialReference:e,vertexSpace:t}=this,r=this;return function(e){let{spatialReference:t,vertexSpace:r,untransformedBounds:n}=e,i=(0,g.gE)(n,z);if((0,b.Hq)(r)&&e.transform&&(0,O.t)(i,i,e.transform.localMatrix),"georeferenced"===r.type){let e=r.origin;return e&&(0,O.a)(i,i,e),(0,g.w1)((0,g.vY)(i),t)}let o=(0,j.lO)(t),s=r.origin;if(!(0,L.canProjectWithoutEngine)(o,t)){let[e,r,n]=s;return new _.A({xmin:e,ymin:r,zmin:n,xmax:e,ymax:r,zmax:n,spatialReference:t})}return(0,B.l)(t,s,$,o),(0,O.t)(i,i,$),(0,E.projectBuffer)(i,o,0,i,t,0),(0,g.w1)((0,g.vY)(i),t)}({get transform(){return r.transform},vertexSpace:t,spatialReference:e,untransformedBounds:this._untransformedBounds})}get _untransformedBounds(){let{vertexAttributes:{position:e},components:t}=this;return 0===e.length||0===t?.length?(0,g.vt)(g.v_):(0,g.vY)(e)}get origin(){let e=(0,b.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;let{center:t,zmin:r}=this._transformedExtent;return new h.A({x:t.x,y:t.y,z:r,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||=[],this.components.push(m.A.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){let t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}a.A.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,r,n){return(0,y.AU)(e,t,r,Ce),function(e,t,r){if(!e.vertexAttributes?.position||0===t[3])return;let{spatialReference:n,vertexSpace:i}=e,o=r?.origin??e.origin;(0,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=le;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(oe(),r.spatialReference,o,C.JP);(0,ne.x8)(he,(0,y.yo)(t),(0,y.$I)(t));let p=(0,re.O7)(ae,he,s.uY,s.Un,f),{localMatrix:g}=i,m=(0,re.lw)(ae,p,g);i.scale=(0,re.X_)((0,s.vt)(),m),(0,re.hs)(m,m,(0,w.DI)(le,i.scale));let d=i.rotationAxis;i.rotation=(0,y.ui)(m),0===i.rotationAngle&&(i.rotationAxis=d),i.translation=(0,re.sC)((0,s.vt)(),m)}(e,t,o):M(i,n)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=pe;if(!(0,A.g)(r,o,i)&&((0,C.CN)(oe(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(oe(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,B.l)(i,o,ce,i),(0,ee.z0)(fe,ce);let p=ue;(0,w.ei)((0,y.yo)(ue),(0,y.yo)(t),fe),p[3]=t[3],(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(oe(),n,i):(se(u,p,3,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&(se(c,p,3),!(0,C.si)(c,s,n,u,i,l))||null!=a&&null!=f&&(se(f,p,4),!(0,C.Mv)(f,s,n,u,i,a))?(0,C.CN)(oe(),i,n):e.vertexAttributesChanged():(0,C.CN)(oe(),i,n)):(0,C.CN)(oe(),n,i)}(e,t,o):function(e,t,r){let n=pe;if((0,A.g)(r,n,e.spatialReference))se(e.vertexAttributes.position,t,3,n),se(e.vertexAttributes.normal,t,3),se(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(oe(),r.spatialReference,e.spatialReference,C.JP)}}(e,t,o)}(this,Ce,n),this}offset(e,t,r){if(!this._checkIfLoaded("offset()"))return this;let{vertexSpace:n,vertexAttributes:i}=this,o=i?.position;if(!o)return this;if((0,b.Hq)(n)){let[i,o,l]=n.origin;n.origin=(0,s.fA)(i+e,o+t,l+r)}else{for(let n=0;n<o.length;n+=3)o[n]+=e,o[n+1]+=t,o[n+2]+=r;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n,spatialReference:i}=e,o=r?.origin??e.origin;(0,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=me;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(ge(),r.spatialReference,o,C.JP);let p=(0,w.hZ)(de,t,t,t),g=(0,re.O7)(xe,ie.zK,s.uY,p,f),{localMatrix:m}=i,d=(0,re.lw)(xe,g,m);i.scale=(0,re.X_)((0,s.vt)(),d),(0,re.hs)(d,d,(0,w.DI)(me,i.scale));let x=i.rotationAxis;i.rotation=(0,y.ui)(d),0===i.rotationAngle&&(i.rotationAxis=x),i.translation=(0,re.sC)((0,s.vt)(),d)}(e,t,o):M(n,i)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=ve;if(!(0,A.g)(r,o,i)&&((0,C.CN)(ge(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(ge(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(ge(),n,i):(ye(u,t,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&!(0,C.si)(c,s,n,u,i,l)||null!=a&&null!=f&&!(0,C.Mv)(f,s,n,u,i,a)?(0,C.CN)(ge(),i,n):e.vertexAttributesChanged():(0,C.CN)(ge(),i,n)):(0,C.CN)(ge(),n,i)}(e,t,o):function(e,t,r){let n=ve;if((0,A.g)(r,n,e.spatialReference))ye(e.vertexAttributes.position,t,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(ge(),r.spatialReference,e.spatialReference,C.JP)}}(e,t,o)}(this,e,t),this}centerAt(e,t){return this._checkIfLoaded("centerAt()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n}=e,i=r?.origin??e.origin;(0,b.Hq)(n)?function(e,t,r){let{vertexSpace:n}=e;if(!(0,b.Hq)(n))return;let i=Z,o=R;if(!(0,A.g)(t,o,e.spatialReference))return void(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP);if(!(0,A.g)(r,i,e.spatialReference))return void(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP);let l=(0,w.Re)(U,o,i);n.origin=(0,w.WQ)((0,s.vt)(),n.origin,l)}(e,t,i):M(n,i.spatialReference)?function(e,t,r){let n=(0,s.fA)(r.x,r.y,r.z??0),i=(0,T.UR)(e,new x.A({origin:n}));if(!i)return;let o=(0,s.fA)(t.x,t.y,t.z??0),l=(0,T.UR)({vertexAttributes:i,spatialReference:e.spatialReference,vertexSpace:new x.A({origin:o})},d.A.absolute);if(!l)return;let{position:a,normal:u,tangent:c}=l;e.vertexAttributes.position=a,e.vertexAttributes.normal=u,e.vertexAttributes.tangent=c,e.vertexAttributesChanged()}(e,t,i):function(e,t,r){let n=Z,i=R;if((0,A.g)(t,i,e.spatialReference))if((0,A.g)(r,n,e.spatialReference))(function(e,t,r){if(e)for(let n=0;n<e.length;n+=3)for(let i=0;i<3;i++)e[n+i]+=t[i]-r[i]})(e.vertexAttributes.position,i,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP)}else(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP)}(e,t,i)}(this,e,t),this}load(e){let{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,n){switch(t.source.type){case"client":case"service":return async function(e,t,n){let{source:i}=t,{loadGLTFMesh:o}=await(0,c.qr)(r.e(5841).then(()=>r(35841)),n),s=await async function(e,t){switch(e.type){case"client":return Array.isArray(e.files)?function(e){if(!e.length)throw new F.A("mesh-load-external:missing-assets","There must be at least one file to load");return G(e.map(e=>({name:e.name,mimeType:e.type,source:k(e)})))}(e.files):k(e.files);case"service":return async function(e,t){if(!e.length)throw new F.A("mesh-load-external:missing-assets","There must be at least one file to load");let r=await(0,c.nA)(e.map(async e=>{let r=await async function(e,t){let{parts:r,assetMimeType:n,assetName:i}=e;if(1===r.length)return new Y(r[0].partUrl);let o=await e.toBlob(t);return(0,c.Te)(t),Y.fromBlob(o,J(i,n))}(e);return(0,c.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:r}}));if((0,c.G4)(t))throw r.forEach(e=>e.source.dispose()),(0,c.NK)();return G(r)}(e.assets,t);default:throw new F.A("mesh-load-external:invalid-source","Invalid source type")}}(i,n);(0,c.Te)(n);let{mesh:{vertexAttributes:l,components:a},meta:{isDracoDecompressed:u}}=await o(new h.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:I(s),signal:n?.signal,expectedType:s.type,unitConversionDisabled:t.unitConversionDisabled}).finally(()=>s.dispose());if(u)throw new F.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");e.vertexAttributes=l,e.components=a}(e,t,n);case"loadable":return t.source.load(e,n);default:t.source}}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(e){return super.clone((0,Q.WO)((0,Q.QN)(e)))}cloneShallow(){return new we({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){let[{toBinaryGLTF:t}]=await Promise.all([r.e(4038).then(()=>r(84038)),this.load(e)]);return(0,c.Te)(e),await t(this,e)}get usedMemory(){return this.components?this.components.reduce((e,t)=>e+t.memoryUsage,this.vertexAttributes.usedMemory):this.vertexAttributes.usedMemory}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(a.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}};(0,n.Cg)([(0,i.MZ)({type:[m.A],json:{write:!0}})],Me.prototype,"components",void 0),(0,n.Cg)([(0,i.MZ)({nonNullable:!0,types:be,constructOnly:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexSpace??e.clone(t)})],Me.prototype,"vertexSpace",void 0),(0,n.Cg)([(0,i.MZ)({type:v.A,clonable:(e,t)=>{let r=(0,Q.o2)(t);return r&&"transform"in r?r.transform:e?.clone()??e},json:{write:!0}})],Me.prototype,"transform",void 0),(0,n.Cg)([(0,i.MZ)({constructOnly:!0,type:X.O,clonable:(e,t)=>(0,Q.o2)(t)?.metadata??e.clone()})],Me.prototype,"metadata",void 0),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"hasExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_transformedExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_untransformedBounds",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"origin",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1}})],Me.prototype,"extent",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Me.prototype,"hasZ",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Me.prototype,"hasM",void 0),(0,n.Cg)([(0,i.MZ)({type:Ae.A,nonNullable:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexAttributes??e.clone(t)})],Me.prototype,"vertexAttributes",void 0),Me=we=(0,n.Cg)([(0,i.$K)("esri.geometry.Mesh")],Me);const Ce=(0,y.vt)()},15585(e,t,r){r.d(t,{If:()=>h,QT:()=>g});var n=r(32198),i=r(2741),o=r(49186),s=r(44208),l=r(53966);r(34727);class a{constructor(e,t){this.precision=e,this.importFactory=t,this.loading=null,this.exports=null,this.compiled=null,this.evictionTimer=null}}const u=new a("f32",async()=>(await r.e(2997).then(()=>r(42997))).default);function c(e){null!==e.evictionTimer&&(clearTimeout(e.evictionTimer),e.evictionTimer=null)}function f(e){c(e);let t=e.exports;null===t||t.HEAP8.byteLength<10485760||(e.evictionTimer=setTimeout(()=>{e.evictionTimer=null,async function(e,t){try{let r=e.compiled;if(null===r)return;let n=await e.importFactory();if(e.exports!==t)return;let i=await n(p(r));e.exports===t&&(c(e),e.exports=i)}catch(t){l.A.getLogger("esri.geometry.libtess").error("libtess:recycle-failed",`Failed to recycle libtess${e.precision.toUpperCase()}`,t)}}(e,t)},1e4))}function p(e){return{locateFile:e=>(0,i.s)(`esri/core/libs/libtess/${e}`),instantiateWasm:(t,r)=>(r(new WebAssembly.Instance(e,t),e),{})}}function h(){return function(e){if(null!==e.exports)return f(e),Promise.resolve();if(null!==e.loading)return e.loading;let t=async function(e){let t=await e.importFactory(),r=e.compiled??await async function(e){let t=`libtess-${e}.wasm`,r=(0,i.s)(`esri/core/libs/libtess/${t}`),n=await fetch(r,{credentials:"same-origin"});if(!n.ok)throw Error(`${n.status} : ${n.url}`);return WebAssembly.compile(await n.arrayBuffer())}(e.precision);e.compiled??=r,e.exports=await t(p(r)),f(e)}(e);e.loading=t;let r=()=>{e.loading===t&&(e.loading=null)};return t.then(r,r),t}(u)}function g(e,t,r=2){return function(e,t){c(e);try{return t()}finally{f(e)}}(u,()=>function(e,t,r=2){let i={stack:[],error:void 0,hasError:!1};try{let l=u.exports;if(!l)throw new o.A("libtess:not-loaded","libtessF32 not loaded");let a=(0,n.mS)(i,d.from(l,e),!1),c=(0,n.mS)(i,x.from(l,t),!1),f=e.length/r*4,p=(0,n.mS)(i,new d(l,f*r),!1),h=l.triangulate(a.ptr,c.ptr,c.size,r,p.ptr,f);if((0,s.A)("esri-tessellation-debug")){let e=l.getError();0!==e&&console.warn("libtess:triangulation",function(e){switch(e){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${e}`}}(e))}return{buffer:p.slice(0,h*r),vertexCount:h}}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}(e,t,r))}function y(e){return e.HEAPF32}function m(e){return e.HEAP32}new a("f64",async()=>(await r.e(9134).then(()=>r(99134))).default),new Float32Array,new Uint32Array,new Uint32Array,new Uint32Array,new Float64Array,new Uint32Array,new Uint32Array,new Uint32Array;class d{static from(e,t){let r=new d(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(e){y(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return y(this._libtess).slice(r+e,r+t)}}Symbol.dispose;class x{static from(e,t){let r=new x(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateLengthsArray(t)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(e){m(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return function(e){let t=m(e);return new Uint32Array(t.buffer,t.byteOffset,t.length)}(this._libtess).slice(r+e,r+t)}}},97146(e,t,r){r.d(t,{Dg:()=>o,lc:()=>f,my:()=>s,tM:()=>p,uW:()=>i});var n=r(34275);function i(e){return o(e,!0)}function o(e,t){if(Array.isArray(e)){if(e.length<1024)return e}else if(e.length<1024)return Array.from(e);let r=!0,i=!0;return e.some((e,t)=>(r&&=0===e,i&&=e===t,!r&&!i)),r?function(e){if(1===e)return u;if(e<1024)return Array(e).fill(0);if(e>a.length){let t=Math.max(2*a.length,e);a=new Uint8Array(t)}return new Uint8Array(a.buffer,0,e)}(e.length):i?p(e.length):(0,n.iu)(e)&&e.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?e:function(e,t){for(let r of e){if(r>=65536)return(0,n.iu)(e)?e:new Uint32Array(e);r>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e,!t)}function s(e,t=e){return e<=1024?Array(e):t<=65536?new Uint16Array(e):new Uint32Array(e)}let l=h(131072),a=new Uint8Array(65536);const u=[0],c=(()=>{let e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function f(e){if(e===u)return!0;if(!(0,n.iu)(e))return!1;let{buffer:t}=e;return t===c.buffer||t===l.buffer||t===a.buffer}function p(e){return 1===e?u:e<1024?function(e){let t=Array(e).fill(0);for(let r=0;r<e;r++)t[r]=r;return t}(e):e<c.length?new Uint16Array(c.buffer,0,e):(e>l.length&&(l=h(Math.max(2*l.length,e))),new Uint32Array(l.buffer,0,e))}function h(e){let t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}},16939(e,t,r){r.d(t,{A:()=>h});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(25482),u=r(53966),c=r(19211),f=r(80882),p=r(31199);let h=n=class extends((0,l.OU)(a.o)){static from(e){return(0,s.PZ)(n,e)}constructor(e){super(e),this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}get faces(){return this._get("faces")??null}set faces(e){this._set("faces",(0,p.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},u.A.getLogger(this)))}castMaterial(e){return e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?(0,s.PZ)(f.A,e):(0,s.PZ)(c.A,e)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,i.Cg)([(0,o.MZ)({json:{write:p.B}})],h.prototype,"faces",null),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"material",void 0),(0,i.Cg)([(0,o.wg)("material")],h.prototype,"castMaterial",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"shading",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],h.prototype,"trustSourceNormals",void 0),h=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshComponent")],h)},95696(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(93223);let u=class extends((0,s.OU)(l.o)){static{n=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new n}};(0,i.Cg)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(25482),l=r(51850),a=r(93223);let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.type="local",this.origin=(0,l.vt)()}};(0,n.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(e,t,r){r.d(t,{A:()=>f});var n=r(32198),i=r(68197),o=r(91429),s=r(69540),l=r(25482),a=r(35063),u=r(51147),c=r(66895);let f=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.color=null,this.colorTextureTransform=null,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}get colorTexture(){return this._get("colorTexture")}set colorTexture(e){this._set("colorTexture",null==e?null:a.A.from(e))}get normalTexture(){return this._get("normalTexture")}set normalTexture(e){this._set("normalTexture",null==e?null:a.A.from(e))}clone(e){let t=(0,c.hz)(e),r=t?.materialMap?.get(this);if(r)return r;let n=super.clone((0,c.QN)(e));return t?.materialMap?.set(this,n),n}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null==this.color?0:16,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null==this.colorTextureTransform?0:20,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+=null==this.normalTextureTransform?0:20,e}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],f.prototype,"color",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"colorTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"normalTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterial")],f)},80882(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(68197),o=r(91429),s=r(19211),l=r(35063),a=r(51147);let u=class extends s.A{constructor(e){super(e),this.emissiveColor=null,this.emissiveStrength=null,this.emissiveTextureTransform=void 0,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTextureTransform=void 0,this.unlit=!1}get emissiveTexture(){return this._get("emissiveTexture")}set emissiveTexture(e){this._set("emissiveTexture",null==e?null:l.A.from(e))}get occlusionTexture(){return this._get("occlusionTexture")}set occlusionTexture(e){this._set("occlusionTexture",null==e?null:l.A.from(e))}get metallicRoughnessTexture(){return this._get("metallicRoughnessTexture")}set metallicRoughnessTexture(e){this._set("metallicRoughnessTexture",null==e?null:l.A.from(e))}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null==this.emissiveColor?0:16,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null==this.emissiveTextureTransform?0:20,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null==this.occlusionTextureTransform?0:20,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+=null==this.metallicRoughnessTextureTransform?0:20,e}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],u.prototype,"emissiveColor",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"emissiveStrength",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"emissiveTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"emissiveTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"occlusionTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"occlusionTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"metallic",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"roughness",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"metallicRoughnessTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"metallicRoughnessTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,nonNullable:!0,json:{write:!0}})],u.prototype,"unlit",void 0),u=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterialMetallicRoughness")],u)},35063(e,t,r){r.d(t,{A:()=>m});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(21287),u=r(25482),c=r(97159),f=r(66895),p=r(43937),h=r(36005);const g=new WeakMap;let y=0,m=class extends((0,l.OU)(u.o)){static{n=this}constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,r,n){e instanceof HTMLImageElement?t[r]={type:"image-element",src:(0,c.t)(e.src,n),crossOrigin:e.crossOrigin}:e instanceof HTMLCanvasElement?t[r]={type:"canvas-element",imageData:d(e.getContext("2d").getImageData(0,0,e.width,e.height))}:e instanceof HTMLVideoElement?t[r]={type:"video-element",src:(0,c.t)(e.src,n),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload}:e instanceof ImageData&&(t[r]={type:"image-data",imageData:d(e)})}readData(e){switch(e.type){case"image-element":{let t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{let t=x(e.imageData),r=document.createElement("canvas");return r.width=t.width,r.height=t.height,r.getContext("2d").putImageData(t,0,0),r}case"image-data":return x(e.imageData);case"video-element":{let t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){let{data:e,url:t}=this,r=e=>e?.toLowerCase().endsWith(".png")||e?.toLocaleLowerCase().startsWith("data:image/png;");return e instanceof HTMLCanvasElement?v(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?v(e):!!(t&&r(t)||e instanceof HTMLImageElement&&r(e.src))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){let e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null==this.url?null==this.data?t():this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(g.has(this.data)||g.set(this.data,++y),t(g.get(this.data))):t(this.url)}get memoryUsage(){let e=0;if(e+=null==this.url?0:this.url.length,null!=this.data){let t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(e){let t=(0,f.$N)(e),r=t?.textureMap?.get(this);if(r)return r;let n=super.clone(e);return t?.textureMap?.set(this,n),n}static from(e){return"string"==typeof e?new n({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new n({data:e}):(0,s.PZ)(n,e)}};function d(e){let t="";for(let r=0;r<e.data.length;r++)t+=String.fromCharCode(e.data[r]);return{data:btoa(t),width:e.width,height:e.height}}function x(e){let t=atob(e.data),r=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return(0,a.eV)(r,e.width,e.height)}function v(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,i.Cg)([(0,o.MZ)({type:String,json:{write:c.w}})],m.prototype,"url",null),(0,i.Cg)([(0,o.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],m.prototype,"data",null),(0,i.Cg)([(0,p.K)("data")],m.prototype,"writeData",null),(0,i.Cg)([(0,h.w)("data")],m.prototype,"readData",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],m.prototype,"transparent",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],m.prototype,"wrap",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"contentHash",null),m=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshTexture")],m)},51147(e,t,r){r.d(t,{A:()=>l});var n=r(32198),i=r(91429),o=r(69540),s=r(25482);let l=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshTextureTransform")],l)},1193(e,t,r){r.d(t,{A:()=>f});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(4718),u=r(53966),c=r(31199);let f=n=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.color=null,this.position=new Float64Array,this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,c.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},u.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&u.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,c.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},u.A.getLogger(this))}castUv(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},u.A.getLogger(this))}castNormal(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},u.A.getLogger(this))}castTangent(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},u.A.getLogger(this))}clonePositional(){let e={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),uv:this.uv,color:this.color};return new n(e)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"color",void 0),(0,i.Cg)([(0,o.wg)("color")],f.prototype,"castColor",null),(0,i.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:c.B}})],f.prototype,"position",void 0),(0,i.Cg)([(0,o.wg)("position")],f.prototype,"castPosition",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"uv",void 0),(0,i.Cg)([(0,o.wg)("uv")],f.prototype,"castUv",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"normal",void 0),(0,i.Cg)([(0,o.wg)("normal")],f.prototype,"castNormal",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"tangent",void 0),(0,i.Cg)([(0,o.wg)("tangent")],f.prototype,"castTangent",null),f=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(e,t,r){function n(e,t,r){if(t<=0)return 0;let n=e-r;return n<0?0:Math.floor(n/t)+1}r.d(t,{k:()=>n}),r(53966)},31199(e,t,r){function n(e,t,r,n){let{loggerTag:i,stride:o}=t;return e.length%o===0?e:(n.error(i,`Invalid array length, expected a multiple of ${o}`),new r([]))}function i(e,t,r,i,o){if(!e)return e;if(e instanceof t)return n(e,i,t,o);for(let s of r)if(e instanceof s)return n(new t(e),i,t,o);if(Array.isArray(e))return n(new t(e),i,t,o);{let n=r.map(e=>`'${e.name}'`);return o.error(`Failed to set property, expected one of ${n}, but got ${e.constructor.name}`),new t([])}}function o(e,t,r){t[r]=function(e){let t=Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r];return t}(e)}r.d(t,{B:()=>o,b:()=>i})},98331(e,t,r){r.d(t,{H5:()=>p,createWithExternalSource:()=>f});var n=r(49186),i=(r(17676),r(9762),r(4197),r(77690),r(29242)),o=(r(35522),r(51850));r(48353),r(13030),(0,i.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},r(62788);var s=r(95488);r(44208),r(83349),r(53966),r(15585),r(95108),r(97146),r(34727),r(86211),(0,r(27921).vt)(),new s.I,new WeakSet;var l=r(83300),a=(r(16939),r(95696),r(73836));r(1193),r(66895),r(72258);var u=r(29461),c=r(27615);function f(e,t,r){let n=r?.extent??null,{spatialReference:i}=e,o=r?.transform?.clone()??new a.A,s=(0,c.TE)(e,r),f={source:t,extent:n,unitConversionDisabled:r?.unitConversionDisabled},p=new u.O;return p.externalSources.push(f),new l.A({metadata:p,transform:o,vertexSpace:s,spatialReference:i})}function p(e,t){let{spatialReference:r}=e,i=t?.transform?.clone()??new a.A,o=(0,c.TE)(e,t),s=new l.A({transform:i,vertexSpace:o,spatialReference:r});return s.addResolvingPromise(Promise.reject(new n.A("mesh-incomplete","Mesh resources are not complete"))),s}(0,o.vt)(),(0,i.vt)()},63579(e,t,r){r.d(t,{Bq:()=>a,Qp:()=>l,WN:()=>m,dK:()=>d,eN:()=>h,fH:()=>y,in:()=>g,yr:()=>u});var n=r(4576),i=r(17676),o=r(20557),s=r(78888);class l{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,n.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(let t of this.parts)e+=t.partHash;return e}async toBlob(e){let{parts:t}=this;if(1===t.length)return t[0].toBlob(e);let r=await Promise.all(t.map(t=>t.toBlob(e)));return(0,i.Te)(e),new Blob(r)}}class a{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){let{data:t}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(e),t}}function u(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(p):p(e.files);case"service":return e.assets.some(p);case"loadable":return!0;default:return!1}}(e?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(e){if(e instanceof File){let{type:t,name:r}=e;return c.test(t)||f.test(r)}return c.test(e.assetMimeType)||f.test(e.assetName)}function h(e,t){if(!e)return!1;let{source:r}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(r,t)}function g(e,t){if(e===t)return!0;let{source:r}=e,{source:n}=t;if(r===n)return!0;if("service"===r.type&&"service"===n.type){if(r.assets.length!==n.assets.length)return!1;let e=(e,t)=>e.assetName<t.assetName?-1:+(e.assetName>t.assetName),t=[...r.assets].sort(e),i=[...n.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(i[e]))return!1;return!0}return!1}function y(e,t){return e instanceof File?(0,o.rq)(e,t):(0,o.z$)(e.assetMimeType,e.assetName,t)}function m(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function d(e){return!!e.original}},29461(e,t,r){r.d(t,{O:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(7762),l=r(36708),a=r(63579);let u=class extends o.Pw{constructor(e){super(e),this.externalSources=new s.A,this._explicitDisplaySource=null,this.addHandles((0,l.on)(()=>this.externalSources,"after-remove",({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)},{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,a.yr)(e))throw Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every(t=>!(0,a.in)(t,e))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter(t=>(0,a.eN)(t,e))}get _implicitDisplaySource(){return this.externalSources.find(a.yr)}};(0,n.Cg)([(0,i.MZ)()],u.prototype,"externalSources",void 0),(0,n.Cg)([(0,i.MZ)()],u.prototype,"displaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.meshUtils.Metadata")],u)},66895(e,t,r){r.d(t,{$N:()=>c,Lz:()=>o,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>i});const n=Symbol("meshContext");function i(e){return e&&"object"==typeof e&&n in e?e[n]:void 0}function o(e,t){let r=i(e);return{...e,[n]:{...r,...t}}}const s=Symbol("meshMaterialContext");function l(e){return e&&"object"==typeof e&&s in e?e[s]:void 0}function a(e){if(l(e)?.materialMap)return e;let t={materialMap:new Map};return{...e,[s]:t}}const u=Symbol("meshTextureContext");function c(e){return e&&"object"==typeof e&&u in e?e[u]:void 0}function f(e){if(c(e)?.textureMap)return e;let t={textureMap:new Map};return{...e,[u]:t}}},27615(e,t,r){r.d(t,{CK:()=>a,Hq:()=>l,MW:()=>u,TE:()=>c,yJ:()=>f});var n=r(35522),i=r(86738),o=r(95696),s=r(18251);function l(e){return null!=e.origin}function a(e){return l(e.vertexSpace)}function u(e,t){if(!l(e))return null;let[r,n,o]=e.origin;return new i.A({x:r,y:n,z:o,spatialReference:t})}function c(e,t){let{x:r,y:n,z:i,spatialReference:l}=e,a=[r,n,i??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(l))?new s.A({origin:a}):new o.A({origin:a})}function f(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,n.t2)(e.origin,t.origin))}}}]);
|
|
1
|
+
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[8331],{83349(e,t,r){r.d(t,{e:()=>o});const n=new Set;let i=!1;function o(e,t,r=2){let i=t&&t.length,o=i?t[0]*r:e.length;n.size&&n.clear();let l=s(e,0,o,r,!0),u=[];if(!l||l.next===l.prev)return u;let c=0,f=0,p=0;if(i&&(l=g(e,t,l,r)),e.length>80*r){c=e[0],f=e[1];let t=c,n=f;for(let i=r;i<o;i+=r){let r=e[i],o=e[i+1];r<c&&(c=r),o<f&&(f=o),r>t&&(t=r),o>n&&(n=o)}p=Math.max(t-c,n-f),p=0===p?0:32767/p}return a(l,u,c,f,p),u}function s(e,t,r,n,i){let o=null;if(i===H(e,t,r,n)>0)for(let i=t;i<r;i+=n)o=D(i/n|0,e[i],e[i+1],o);else for(let i=r-n;i>=t;i-=n)o=D(i/n|0,e[i],e[i+1],o);return o&&O(o,o.next)&&(I(o),o=o.next),o}function l(e,t=e){let r,o=t===e,s=e;do{r=!1,s===s.next||0!==n.size&&n.has(s)||!O(s,s.next)&&0!==j(s.prev,s,s.next)?(o||s!==t)&&(s=s.next,r=!o):((o||s===t)&&(t=s.prev),i=!0,I(s),s=s.prev,r=!0)}while(r||s!==t);return t}function a(e,t,r,n,o){o&&function(e,t,r,n){let i=e,o=0;do{i.z=_(i.x,i.y,t,r,n),T[o++]=i,i=i.next}while(i!==e);!function(e){if(e<=32)for(let t=1;t<e;t++){let e=T[t],r=e.z,n=t-1;for(;n>=0&&T[n].z>r;)T[n+1]=T[n],n--;T[n+1]=e}else{R.length<e&&(R=new Uint32Array(e),Z=new Uint32Array(e),S=Array(e));for(let t=0;t<e;t++)R[t]=T[t].z;N(e,T,R,S,Z,0),N(e,S,Z,T,R,8),N(e,T,R,S,Z,16),N(e,S,Z,T,R,24)}}(o);let s=null;for(let e=0;e<o;e++){let t=T[e];t.prevZ=s,s&&(s.nextZ=t),s=t}s.nextZ=null,T.fill(null,0,o),S.fill(null,0,o)}(e,r,n,o);let s=e,a=!1;for(;e.prev!==e.next;){let h=e.prev,g=e.next;if(j(h,e,g)<0&&(o?c(e,r,n,o):u(e)))t.push(h.i,e.i,g.i),I(e),e=g,s=g;else if((e=g)===s){if(i=!1,e=l(e),i){s=e;continue}if(!a){s=e=f(e,t),a=!0;continue}p(e,t,r,n,o);break}}}function u(e){let t=e.prev,r=e,n=e.next,i=t.x,o=r.x,s=n.x,l=t.y,a=r.y,u=n.y,c=Math.min(i,o,s),f=Math.min(l,a,u),p=Math.max(i,o,s),h=Math.max(l,a,u),g=n.next;for(;g!==t;){if(g.x>=c&&g.x<=p&&g.y>=f&&g.y<=h&&(i!==g.x||l!==g.y)&&E(i,l,o,a,s,u,g.x,g.y)&&j(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function c(e,t,r,n){let i=e.prev,o=e,s=e.next,l=i.x,a=o.x,u=s.x,c=i.y,f=o.y,p=s.y,h=Math.min(l,a,u),g=Math.min(c,f,p),y=Math.max(l,a,u),m=Math.max(c,f,p),d=_(h,g,t,r,n),x=_(y,m,t,r,n),v=e.prevZ;for(;v&&v.z>=d;){if(v.x>=h&&v.x<=y&&v.y>=g&&v.y<=m&&v!==s&&(l!==v.x||c!==v.y)&&E(l,c,a,f,u,p,v.x,v.y)&&j(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let w=e.nextZ;for(;w&&w.z<=x;){if(w.x>=h&&w.x<=y&&w.y>=g&&w.y<=m&&w!==s&&(l!==w.x||c!==w.y)&&E(l,c,a,f,u,p,w.x,w.y)&&j(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function f(e,t){let r=e,n=!1;do{let i=r.prev,o=r.next.next;P(i,r,r.next,o,!1)&&z(i,o)&&z(o,i)&&(t.push(i.i,r.i,o.i),I(r),I(r.next),r=e=o,n=!0),r=r.next}while(r!==e);return n?l(r):r}function p(e,t,r,n,i){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&L(o,e)){let s=F(o,e);return o=l(o,o.next),s=l(s,s.next),a(o,t,r,n,i),void a(s,t,r,n,i)}e=e.next}o=o.next}while(o!==e)}let h=!1;function g(e,t,r,i){let o=[];for(let r=0,l=t.length;r<l;r++){let a=s(e,t[r]*i,r<l-1?t[r+1]*i:e.length,i,!1);a===a.next&&n.add(a),o.push(B(a))}o.sort(y),function(e,t){let r=Math.ceil((e+2*t)/16)+t+2;d.length<4*r&&(d=new Float64Array(4*r)),x=0}(e.length/i,t.length),A(r,r),h=!0;for(let e=0;e<o.length;e++)r=m(o[e],r);return h=!1,l(r)}function y(e,t){return e.x-t.x||e.y-t.y||(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)}function m(e,t){let r=function(e,t){let r,n=t,i=e.x,o=e.y,s=-1/0;if(O(e,n))return n;for(let t=0,l=0;t<x;t++,l+=4){if(o<d[l+1]||o>d[l+3]||d[l]>i||d[l+2]<=s)continue;let a=b(t);n=M(t);do{if(n.prev.next===n){if(O(e,n.next))return n.next;if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){let e=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=i&&e>s&&(s=e,r=n.x<n.next.x?n:n.next,e===i))return r}}n=n.next}while(n!==a)}if(!r)return null;let l=r.x,a=r.y,u=Math.min(o,a),c=Math.max(o,a),f=1/0;for(let t=0,p=0;t<x;t++,p+=4){if(d[p+2]<l||d[p]>i||d[p+3]<u||d[p+1]>c)continue;let h=b(t);n=M(t);do{if(n.prev.next===n&&i>=n.x&&n.x>=l&&i!==n.x&&E(o<a?i:s,o,l,a,o<a?s:i,o,n.x,n.y)){let t=Math.abs(o-n.y)/(i-n.x);(z(n,e)||n.y===o&&n.next.y===o&&n.next.x>i)&&(t<f||t===f&&(n.x>r.x||n.x===r.x&&C(r,n)))&&(r=n,f=t)}n=n.next}while(n!==h)}return r}(e,t);if(!r)return t;let n=F(r,e);return A(r,n.next.next),l(n,n.next),l(r,r.next)}let d=new Float64Array,x=0;const v=[],w=[];function A(e,t){let r=e;do{let e=x++;v[e]=r;let n=1/0,i=1/0,o=-1/0,s=-1/0,l=0;do{let t=r.next;r.z=e,r.x<n&&(n=r.x),r.x>o&&(o=r.x),r.y<i&&(i=r.y),r.y>s&&(s=r.y),t.x<n&&(n=t.x),t.x>o&&(o=t.x),t.y<i&&(i=t.y),t.y>s&&(s=t.y),r=t}while(++l<16&&r!==t);w[e]=r;let a=4*e;d[a]=n,d[a+1]=i,d[a+2]=o,d[a+3]=s}while(r!==t)}function b(e){let t=w[e];for(;t.prev.next!==t;)t=t.next;return w[e]=t,t}function M(e){let t=v[e];for(;t.prev.next!==t;)t=t.next;return v[e]=t,t}function C(e,t){return j(e.prev,e,t.prev)<0&&j(t.next,e,e.next)<0}const T=[];let S=[],R=new Uint32Array,Z=new Uint32Array;const U=new Uint32Array(256);function N(e,t,r,n,i,o){U.fill(0);for(let t=0;t<e;t++)U[r[t]>>>o&255]++;let s=0;for(let e=0;e<256;e++){let t=U[e];U[e]=s,s+=t}for(let s=0;s<e;s++){let e=r[s],l=U[e>>>o&255]++;n[l]=t[s],i[l]=e}}function _(e,t,r,n,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function B(e){let t=e,r=e;do{(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next}while(t!==e);return r}function E(e,t,r,n,i,o,s,l){return(i-s)*(t-l)>=(e-s)*(o-l)&&(e-s)*(n-l)>=(r-s)*(t-l)&&(r-s)*(o-l)>=(i-s)*(n-l)}function L(e,t){let r=O(e,t)&&j(e.prev,e,e.next)>0&&j(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||z(e,t)&&z(t,e)&&(0!==j(e.prev,e,t.prev)||0!==j(e,t.prev,t)))&&!function(e,t){let r=Math.min(e.x,t.x),n=Math.max(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(e.y,t.y),s=e;do{let l=s.next;if(s.x>n&&l.x>n||s.x<r&&l.x<r||s.y>o&&l.y>o||s.y<i&&l.y<i)s=l;else{if(s.i!==e.i&&l.i!==e.i&&s.i!==t.i&&l.i!==t.i&&P(s,l,e,t))return!0;s=l}}while(s!==e);return!1}(e,t)&&(r||function(e,t){let r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{let e=r.next;r.y>o!=e.y>o&&i<(e.x-r.x)*(o-r.y)/(e.y-r.y)+r.x&&(n=!n),r=e}while(r!==e);return n}(e,t))}function j(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function O(e,t){return e.x===t.x&&e.y===t.y}function P(e,t,r,n,i=!0){let o=j(e,t,r),s=j(e,t,n),l=j(r,n,e),a=j(r,n,t);return(o>0&&s<0||o<0&&s>0)&&(l>0&&a<0||l<0&&a>0)||!!i&&!!(0===o&&$(e,r,t)||0===s&&$(e,n,t)||0===l&&$(r,e,n)||0===a&&$(r,t,n))}function $(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function z(e,t){return j(e.prev,e,e.next)<0?j(e,t,e.next)>=0&&j(e,e.prev,t)>=0:j(e,t,e.prev)<0||j(e,e.next,t)<0}function F(e,t){let r=k(e.i,e.x,e.y),n=k(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function D(e,t,r,n){let i=k(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function I(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),h&&function(e,t){let r=4*e.z;t.x<d[r]&&(d[r]=t.x),t.y<d[r+1]&&(d[r+1]=t.y),t.x>d[r+2]&&(d[r+2]=t.x),t.y>d[r+3]&&(d[r+3]=t.y)}(e.prev,e.next)}function k(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function H(e,t,r,n){let i=0;for(let o=t,s=r-n;o<r;o+=n)i+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return i}let W,K,q,V,G,Y=0,J=0;function Q(e,t,r,n,i,o){return(r-e)*(o-t)-(n-t)*(i-e)}function X(e,t,r,n,i,o,s,l){let a=e-s,u=t-l,c=r-s,f=n-l,p=i-s,h=o-l,g=a*a+u*u,y=c*c+f*f,m=p*p+h*h,d=g+y+m;return a*(f*m-y*h)-u*(c*m-y*p)+g*(c*h-f*p)<=1e-13*d*d}function ee(e){return e-e%3+(e+1)%3}o.deviation=function(e,t,r,n){let i=t&&t.length,o=i?t[0]*r:e.length,s=Math.abs(H(e,0,o,r));if(i)for(let n=0,i=t.length;n<i;n++){let o=t[n]*r,l=n<i-1?t[n+1]*r:e.length;s-=Math.abs(H(e,o,l,r))}let l=0;for(let t=0;t<n.length;t+=3){let i=n[t]*r,o=n[t+1]*r,s=n[t+2]*r;l+=Math.abs((e[i]-e[s])*(e[o+1]-e[i+1])-(e[i]-e[o])*(e[s+1]-e[i+1]))}return 0===s&&0===l?0:Math.abs((l-s)/s)},o.flatten=function(e){let t=[],r=[],n=e[0][0].length,i=0,o=0;for(let s of e){for(let e of s)for(let r=0;r<n;r++)t.push(e[r]);o&&(i+=o,r.push(i)),o=s.length}return{vertices:t,holes:r,dimensions:n}},o.refine=function(e,t,r=2){let n=e,i=n.length;if(i<6)return;(function(e){(!W||W.length<e)&&(W=new Int32Array(e)),(!K||K.length<e)&&(K=new Int32Array(e)),(!G||G.length<e)&&(G=new Uint8Array(e));let t=1;for(;t<4*e;)t<<=1;(!q||q.length<t)&&(q=new Int32Array(t),V=new Uint32Array(t)),Y=t-1})(i),J++,K.fill(-1,0,i);let o=0;for(let e=0;e<i;e++){let t=n[e],r=n[ee(e)],i=t<r?t:r,s=t<r?r:t,l=(Math.imul(i,2654435761)^Math.imul(s,2246822507))&Y;for(;V[l]===J;){let t=q[l];if(-1!==t){let r=n[t],a=n[ee(t)];if(r===i&&a===s||r===s&&a===i){K[e]=t,K[t]=e,q[l]=-1,G[t]=1,W[o++]=t;break}}l=l+1&Y}V[l]!==J&&(q[l]=e,V[l]=J)}for(;o>0;){let e=W[--o];G[e]=0;let i=K[e];if(-1===i)continue;let s=e-e%3,l=i-i%3,a=s+(e+2)%3,u=s+(e+1)%3,c=l+(i+2)%3,f=l+(i+1)%3,p=n[a],h=n[e],g=n[u],y=n[c],m=t[p*r],d=t[p*r+1],x=t[h*r],v=t[h*r+1],w=t[g*r],A=t[g*r+1],b=t[y*r],M=t[y*r+1];if(!X(m,d,x,v,w,A,b,M)&&Q(m,d,x,v,b,M)>0&&Q(m,d,b,M,w,A)>0){n[e]=y,n[i]=p;let t=K[c],r=K[a];K[e]=t,-1!==t&&(K[t]=e),K[i]=r,-1!==r&&(K[r]=i),K[a]=c,K[c]=a,-1!==t&&0===G[e]&&(G[e]=1,W[o++]=e),-1!==r&&0===G[i]&&(G[i]=1,W[o++]=i),-1!==K[u]&&0===G[u]&&(G[u]=1,W[o++]=u),-1!==K[f]&&0===G[f]&&(G[f]=1,W[o++]=f)}}}},73354(e,t,r){r.d(t,{a:()=>f,b:()=>l,c:()=>i,d:()=>s,e:()=>p,f:()=>c,l:()=>u,n:()=>h,t:()=>o}),r(44208);var n=r(72727);function i(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[4],h=r[5],g=r[6],y=r[8],m=r[9],d=r[10],x=r[12],v=r[13],w=r[14],A=0,b=0;for(let r=0;r<a;r++){let r=t[A],n=t[A+1],s=t[A+2];e[b]=u*r+p*n+y*s+x,e[b+1]=c*r+h*n+m*s+v,e[b+2]=f*r+g*n+d*s+w,A+=o,b+=i}return e}function s(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function l(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[3],h=r[4],g=r[5],y=r[6],m=r[7],d=r[8],x=0,v=0;for(let r=0;r<a;r++){let r=t[x],n=t[x+1],s=t[x+2];e[v]=u*r+p*n+y*s,e[v+1]=c*r+h*n+m*s,e[v+2]=f*r+g*n+d*s,x+=o,v+=i}}function a(e,t,r,n=3,i=n){let o=Math.min(e.length/n,t.length/i),s=0,l=0;for(let a=0;a<o;a++)e[l]=r*t[s],e[l+1]=r*t[s+1],e[l+2]=r*t[s+2],s+=i,l+=n;return e}function u(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,n,i=3,o=i){let s=Math.min(e.length/i,t.length/o),l=0,a=0,u=1/2.2;for(let c=0;c<s;c++)e[a]=n*(r*t[l])**u,e[a+1]=n*(r*t[l+1])**u,e[a+2]=n*(r*t[l+2])**u,l+=o,a+=i}function f(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=0,c=0;for(let n=0;n<a;n++)e[c]=t[u]+r[0],e[c+1]=t[u+1]+r[1],e[c+2]=t[u+2]+r[2],u+=o,c+=i;return e}function p(e,t){h(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function h(e,t,r=3,n=r){let i=Math.min(e.length/r,t.length/n),o=0,s=0;for(let l=0;l<i;l++){let i=t[o],l=t[o+1],a=t[o+2],u=i*i+l*l+a*a;if(u>0){let t=1/Math.sqrt(u);e[s]=t*i,e[s+1]=t*l,e[s+2]=t*a}o+=n,s+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:h,normalizeView:p,scale:a,scaleView:function(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){let n=Math.min(e.count,t.count),i=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,l=t.typedBufferStride,a=0,u=0;for(let e=0;e<n;e++)i[u]=s[a]>>r,i[u+1]=s[a+1]>>r,i[u+2]=s[a+2]>>r,a+=l,u+=o},transformMat3:l,transformMat3View:s,transformMat4:o,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},21287(e,t,r){r.d(t,{M5:()=>f,eV:()=>c});var n=r(78888),i=r(26306),o=r(49186),s=r(17676),l=r(84952);let a=null,u=!0;function c(e,t,r,n){if(!t||!r)throw Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,r)}catch{u=!1}let i=function(e,t,r){return r||=(a||(a=document.createElement("canvas"),a.width=1,a.height=1),a),r.getContext("2d").createImageData(e,t)}(t,r,n);return i.data.set(e,0),i}async function f(e,t){let{arrayBuffer:a,mediaType:u}=await async function(e,t){let r=(0,l.r$)(e);if(r?.isBase64)return{arrayBuffer:(0,i.M)(r.data),mediaType:r.mediaType};let o=await(0,n.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){let{isAnimatedGIF:e,parseGif:n}=await r.e(820).then(()=>r(88439));if(e(a))return n(a,t)}if(c){let{isAnimatedPNG:e,parseApng:n}=await r.e(2390).then(()=>r(22390));if(e(a))return n(a,t)}return async function(e,t){let r=window.URL.createObjectURL(e);try{let{data:e}=await(0,n.A)(r,{...t,responseType:"image"});return e}catch(e){throw(0,s.zf)(e)?e:new o.A("invalid-image",`Could not fetch requested image at ${r}`)}finally{window.URL.revokeObjectURL(r)}}(new Blob([a],{type:u}),t)}},83300(e,t,r){r.d(t,{A:()=>Me});var n=r(32198),i=r(91429),o=r(69540),s=r(51850),l=r(92474),a=r(53966),u=r(61893),c=r(17676),f=r(36708),p=r(91075),h=r(86738),g=r(70328),y=r(24770),m=r(16939),d=r(95696),x=r(18251),v=r(73836),w=r(35522),A=r(65806),b=r(27615);function M(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}var C=r(22141),T=r(72258);const S=()=>a.A.getLogger("esri.geometry.support.meshUtils.centerAt");const R=(0,s.vt)(),Z=(0,s.vt)(),U=(0,s.vt)();var N=r(9093),_=r(5443),B=r(48353),E=r(9762),L=r(99917),j=r(98764),O=r(73354),P=r(4197);const $=(0,N.vt)(),z=(0,P.jh)(24);var F=r(49186),D=r(84952);function I(e){let t=(0,D.nM)(e.url);return r=>{let n=(0,D.V1)(r,t,t),i=n?n.replace(/^ *\.\//,""):null;return(i?e.files.get(i):null)??r}}function k(e){return Y.fromBlob(e,J(e.name,e.type))}const H=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,K=/\.gltf$/i,q=/\.glb$/i;function V({mimeType:e,source:t,name:r}){return H.test(e)||K.test(r)?{url:t.url,type:"gltf"}:W.test(e)||q.test(r)?{url:t.url,type:"glb"}:null}function G(e){let t=new Map,r=null,n=null;for(let i of e){let{source:e,name:o}=i;r??=V(i),"ESRI3DO_NORM.glb"===o&&(n=V(i)),t.set(o,e.url),e.files.forEach((e,r)=>t.set(r,e))}let i=n??r;if(null==i)throw new F.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new Y(i.url,()=>e.forEach(({source:e})=>e.dispose()),t,i.type)}class Y{constructor(e,t=()=>{},r=new Map,n){this.url=e,this.dispose=t,this.files=r,this.type=n}static fromBlob(e,t){let r=URL.createObjectURL(e);return new Y(r,()=>URL.revokeObjectURL(r),void 0,t)}}function J(e,t){return H.test(t)||K.test(e)?"gltf":W.test(t)||K.test(e)?"glb":void 0}var Q=r(66895),X=r(29461),ee=r(77690),te=r(29242),re=r(58083),ne=r(67026),ie=r(82534);const oe=()=>a.A.getLogger("esri.geometry.support.meshUtils.rotate");function se(e,t,r,n=s.uY){if(null!=e){(0,re.$0)(ce,(0,y.$I)(t),(0,y.yo)(t));for(let t=0;t<e.length;t+=r){for(let r=0;r<3;r++)le[r]=e[t+r]-n[r];(0,w.Z0)(le,le,ce);for(let r=0;r<3;r++)e[t+r]=le[r]+n[r]}}}const le=(0,s.vt)(),ae=(0,N.vt)(),ue=(0,y.vt)(),ce=(0,N.vt)(),fe=(0,te.vt)(),pe=(0,s.vt)(),he=(0,ie.vt)(),ge=()=>a.A.getLogger("esri.geometry.support.meshUtils.scale");function ye(e,t,r=s.uY){if(e)for(let n=0;n<e.length;n+=3){for(let t=0;t<3;t++)me[t]=e[n+t]-r[t];(0,w.hs)(me,me,t);for(let t=0;t<3;t++)e[n+t]=me[t]+r[t]}}const me=(0,s.vt)(),de=(0,s.vt)(),xe=(0,N.vt)(),ve=(0,s.vt)();var we,Ae=r(1193);const be={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:d.A,local:x.A}};let Me=we=class extends((0,o.OU)((0,l.WV)((0,u.g)(p.A)))){constructor(e){super(e),this.components=null,this.vertexSpace=new d.A,this.transform=null,this.metadata=new X.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Ae.A,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,f.wB)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(e=>e.clone())}),()=>this._clearSources(),{once:!0,sync:!0}))}).catch(()=>{})}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){let{spatialReference:e,vertexSpace:t}=this,r=this;return function(e){let{spatialReference:t,vertexSpace:r,untransformedBounds:n}=e,i=(0,g.gE)(n,z);if((0,b.Hq)(r)&&e.transform&&(0,O.t)(i,i,e.transform.localMatrix),"georeferenced"===r.type){let e=r.origin;return e&&(0,O.a)(i,i,e),(0,g.w1)((0,g.vY)(i),t)}let o=(0,j.lO)(t),s=r.origin;if(!(0,L.canProjectWithoutEngine)(o,t)){let[e,r,n]=s;return new _.A({xmin:e,ymin:r,zmin:n,xmax:e,ymax:r,zmax:n,spatialReference:t})}return(0,B.l)(t,s,$,o),(0,O.t)(i,i,$),(0,E.projectBuffer)(i,o,0,i,t,0),(0,g.w1)((0,g.vY)(i),t)}({get transform(){return r.transform},vertexSpace:t,spatialReference:e,untransformedBounds:this._untransformedBounds})}get _untransformedBounds(){let{vertexAttributes:{position:e},components:t}=this;return 0===e.length||0===t?.length?(0,g.vt)(g.v_):(0,g.vY)(e)}get origin(){let e=(0,b.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;let{center:t,zmin:r}=this._transformedExtent;return new h.A({x:t.x,y:t.y,z:r,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||=[],this.components.push(m.A.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){let t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}a.A.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,r,n){return(0,y.AU)(e,t,r,Ce),function(e,t,r){if(!e.vertexAttributes?.position||0===t[3])return;let{spatialReference:n,vertexSpace:i}=e,o=r?.origin??e.origin;(0,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=le;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(oe(),r.spatialReference,o,C.JP);(0,ne.x8)(he,(0,y.yo)(t),(0,y.$I)(t));let p=(0,re.O7)(ae,he,s.uY,s.Un,f),{localMatrix:g}=i,m=(0,re.lw)(ae,p,g);i.scale=(0,re.X_)((0,s.vt)(),m),(0,re.hs)(m,m,(0,w.DI)(le,i.scale));let d=i.rotationAxis;i.rotation=(0,y.ui)(m),0===i.rotationAngle&&(i.rotationAxis=d),i.translation=(0,re.sC)((0,s.vt)(),m)}(e,t,o):M(i,n)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=pe;if(!(0,A.g)(r,o,i)&&((0,C.CN)(oe(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(oe(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,B.l)(i,o,ce,i),(0,ee.z0)(fe,ce);let p=ue;(0,w.ei)((0,y.yo)(ue),(0,y.yo)(t),fe),p[3]=t[3],(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(oe(),n,i):(se(u,p,3,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&(se(c,p,3),!(0,C.si)(c,s,n,u,i,l))||null!=a&&null!=f&&(se(f,p,4),!(0,C.Mv)(f,s,n,u,i,a))?(0,C.CN)(oe(),i,n):e.vertexAttributesChanged():(0,C.CN)(oe(),i,n)):(0,C.CN)(oe(),n,i)}(e,t,o):function(e,t,r){let n=pe;if((0,A.g)(r,n,e.spatialReference))se(e.vertexAttributes.position,t,3,n),se(e.vertexAttributes.normal,t,3),se(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(oe(),r.spatialReference,e.spatialReference,C.JP)}}(e,t,o)}(this,Ce,n),this}offset(e,t,r){if(!this._checkIfLoaded("offset()"))return this;let{vertexSpace:n,vertexAttributes:i}=this,o=i?.position;if(!o)return this;if((0,b.Hq)(n)){let[i,o,l]=n.origin;n.origin=(0,s.fA)(i+e,o+t,l+r)}else{for(let n=0;n<o.length;n+=3)o[n]+=e,o[n+1]+=t,o[n+2]+=r;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n,spatialReference:i}=e,o=r?.origin??e.origin;(0,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=me;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(ge(),r.spatialReference,o,C.JP);let p=(0,w.hZ)(de,t,t,t),g=(0,re.O7)(xe,ie.zK,s.uY,p,f),{localMatrix:m}=i,d=(0,re.lw)(xe,g,m);i.scale=(0,re.X_)((0,s.vt)(),d),(0,re.hs)(d,d,(0,w.DI)(me,i.scale));let x=i.rotationAxis;i.rotation=(0,y.ui)(d),0===i.rotationAngle&&(i.rotationAxis=x),i.translation=(0,re.sC)((0,s.vt)(),d)}(e,t,o):M(n,i)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=ve;if(!(0,A.g)(r,o,i)&&((0,C.CN)(ge(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(ge(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(ge(),n,i):(ye(u,t,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&!(0,C.si)(c,s,n,u,i,l)||null!=a&&null!=f&&!(0,C.Mv)(f,s,n,u,i,a)?(0,C.CN)(ge(),i,n):e.vertexAttributesChanged():(0,C.CN)(ge(),i,n)):(0,C.CN)(ge(),n,i)}(e,t,o):function(e,t,r){let n=ve;if((0,A.g)(r,n,e.spatialReference))ye(e.vertexAttributes.position,t,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(ge(),r.spatialReference,e.spatialReference,C.JP)}}(e,t,o)}(this,e,t),this}centerAt(e,t){return this._checkIfLoaded("centerAt()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n}=e,i=r?.origin??e.origin;(0,b.Hq)(n)?function(e,t,r){let{vertexSpace:n}=e;if(!(0,b.Hq)(n))return;let i=Z,o=R;if(!(0,A.g)(t,o,e.spatialReference))return void(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP);if(!(0,A.g)(r,i,e.spatialReference))return void(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP);let l=(0,w.Re)(U,o,i);n.origin=(0,w.WQ)((0,s.vt)(),n.origin,l)}(e,t,i):M(n,i.spatialReference)?function(e,t,r){let n=(0,s.fA)(r.x,r.y,r.z??0),i=(0,T.UR)(e,new x.A({origin:n}));if(!i)return;let o=(0,s.fA)(t.x,t.y,t.z??0),l=(0,T.UR)({vertexAttributes:i,spatialReference:e.spatialReference,vertexSpace:new x.A({origin:o})},d.A.absolute);if(!l)return;let{position:a,normal:u,tangent:c}=l;e.vertexAttributes.position=a,e.vertexAttributes.normal=u,e.vertexAttributes.tangent=c,e.vertexAttributesChanged()}(e,t,i):function(e,t,r){let n=Z,i=R;if((0,A.g)(t,i,e.spatialReference))if((0,A.g)(r,n,e.spatialReference))(function(e,t,r){if(e)for(let n=0;n<e.length;n+=3)for(let i=0;i<3;i++)e[n+i]+=t[i]-r[i]})(e.vertexAttributes.position,i,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP)}else(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP)}(e,t,i)}(this,e,t),this}load(e){let{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,n){switch(t.source.type){case"client":case"service":return async function(e,t,n){let{source:i}=t,{loadGLTFMesh:o}=await(0,c.qr)(r.e(5841).then(()=>r(35841)),n),s=await async function(e,t){switch(e.type){case"client":return Array.isArray(e.files)?function(e){if(!e.length)throw new F.A("mesh-load-external:missing-assets","There must be at least one file to load");return G(e.map(e=>({name:e.name,mimeType:e.type,source:k(e)})))}(e.files):k(e.files);case"service":return async function(e,t){if(!e.length)throw new F.A("mesh-load-external:missing-assets","There must be at least one file to load");let r=await(0,c.nA)(e.map(async e=>{let r=await async function(e,t){let{parts:r,assetMimeType:n,assetName:i}=e;if(1===r.length)return new Y(r[0].partUrl);let o=await e.toBlob(t);return(0,c.Te)(t),Y.fromBlob(o,J(i,n))}(e);return(0,c.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:r}}));if((0,c.G4)(t))throw r.forEach(e=>e.source.dispose()),(0,c.NK)();return G(r)}(e.assets,t);default:throw new F.A("mesh-load-external:invalid-source","Invalid source type")}}(i,n);(0,c.Te)(n);let{mesh:{vertexAttributes:l,components:a},meta:{isDracoDecompressed:u}}=await o(new h.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:I(s),signal:n?.signal,expectedType:s.type,unitConversionDisabled:t.unitConversionDisabled}).finally(()=>s.dispose());if(u)throw new F.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");e.vertexAttributes=l,e.components=a}(e,t,n);case"loadable":return t.source.load(e,n);default:t.source}}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(e){return super.clone((0,Q.WO)((0,Q.QN)(e)))}cloneShallow(){return new we({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){let[{toBinaryGLTF:t}]=await Promise.all([r.e(4038).then(()=>r(84038)),this.load(e)]);return(0,c.Te)(e),await t(this,e)}get usedMemory(){return this.components?this.components.reduce((e,t)=>e+t.memoryUsage,this.vertexAttributes.usedMemory):this.vertexAttributes.usedMemory}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(a.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}};(0,n.Cg)([(0,i.MZ)({type:[m.A],json:{write:!0}})],Me.prototype,"components",void 0),(0,n.Cg)([(0,i.MZ)({nonNullable:!0,types:be,constructOnly:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexSpace??e.clone(t)})],Me.prototype,"vertexSpace",void 0),(0,n.Cg)([(0,i.MZ)({type:v.A,clonable:(e,t)=>{let r=(0,Q.o2)(t);return r&&"transform"in r?r.transform:e?.clone()??e},json:{write:!0}})],Me.prototype,"transform",void 0),(0,n.Cg)([(0,i.MZ)({constructOnly:!0,type:X.O,clonable:(e,t)=>(0,Q.o2)(t)?.metadata??e.clone()})],Me.prototype,"metadata",void 0),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"hasExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_transformedExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_untransformedBounds",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"origin",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1}})],Me.prototype,"extent",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Me.prototype,"hasZ",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Me.prototype,"hasM",void 0),(0,n.Cg)([(0,i.MZ)({type:Ae.A,nonNullable:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexAttributes??e.clone(t)})],Me.prototype,"vertexAttributes",void 0),Me=we=(0,n.Cg)([(0,i.$K)("esri.geometry.Mesh")],Me);const Ce=(0,y.vt)()},15585(e,t,r){r.d(t,{If:()=>h,QT:()=>g});var n=r(32198),i=r(2741),o=r(49186),s=r(44208),l=r(53966);r(34727);class a{constructor(e,t){this.precision=e,this.importFactory=t,this.loading=null,this.exports=null,this.compiled=null,this.evictionTimer=null}}const u=new a("f32",async()=>(await r.e(2997).then(()=>r(42997))).default);function c(e){null!==e.evictionTimer&&(clearTimeout(e.evictionTimer),e.evictionTimer=null)}function f(e){c(e);let t=e.exports;null===t||t.HEAP8.byteLength<10485760||(e.evictionTimer=setTimeout(()=>{e.evictionTimer=null,async function(e,t){try{let r=e.compiled;if(null===r)return;let n=await e.importFactory();if(e.exports!==t)return;let i=await n(p(r));e.exports===t&&(c(e),e.exports=i)}catch(t){l.A.getLogger("esri.geometry.libtess").error("libtess:recycle-failed",`Failed to recycle libtess${e.precision.toUpperCase()}`,t)}}(e,t)},1e4))}function p(e){return{locateFile:e=>(0,i.s)(`esri/core/libs/libtess/${e}`),instantiateWasm:(t,r)=>(r(new WebAssembly.Instance(e,t),e),{})}}function h(){return function(e){if(null!==e.exports)return f(e),Promise.resolve();if(null!==e.loading)return e.loading;let t=async function(e){let t=await e.importFactory(),r=e.compiled??await async function(e){let t=`libtess-${e}.wasm`,r=(0,i.s)(`esri/core/libs/libtess/${t}`),n=await fetch(r,{credentials:"same-origin"});if(!n.ok)throw Error(`${n.status} : ${n.url}`);return WebAssembly.compile(await n.arrayBuffer())}(e.precision);e.compiled??=r,e.exports=await t(p(r)),f(e)}(e);e.loading=t;let r=()=>{e.loading===t&&(e.loading=null)};return t.then(r,r),t}(u)}function g(e,t,r=2){return function(e,t){c(e);try{return t()}finally{f(e)}}(u,()=>function(e,t,r=2){let i={stack:[],error:void 0,hasError:!1};try{let l=u.exports;if(!l)throw new o.A("libtess:not-loaded","libtessF32 not loaded");let a=(0,n.mS)(i,d.from(l,e),!1),c=(0,n.mS)(i,x.from(l,t),!1),f=e.length/r*4,p=(0,n.mS)(i,new d(l,f*r),!1),h=l.triangulate(a.ptr,c.ptr,c.size,r,p.ptr,f);if((0,s.A)("esri-tessellation-debug")){let e=l.getError();0!==e&&console.warn("libtess:triangulation",function(e){switch(e){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${e}`}}(e))}return{buffer:p.slice(0,h*r),vertexCount:h}}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}(e,t,r))}function y(e){return e.HEAPF32}function m(e){return e.HEAP32}new a("f64",async()=>(await r.e(9134).then(()=>r(99134))).default),new Float32Array,new Uint32Array,new Uint32Array,new Uint32Array,new Float64Array,new Uint32Array,new Uint32Array,new Uint32Array;class d{static from(e,t){let r=new d(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(e){y(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return y(this._libtess).slice(r+e,r+t)}}Symbol.dispose;class x{static from(e,t){let r=new x(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateLengthsArray(t)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(e){m(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return function(e){let t=m(e);return new Uint32Array(t.buffer,t.byteOffset,t.length)}(this._libtess).slice(r+e,r+t)}}},97146(e,t,r){r.d(t,{Dg:()=>o,lc:()=>f,my:()=>s,tM:()=>p,uW:()=>i});var n=r(34275);function i(e){return o(e,!0)}function o(e,t){if(Array.isArray(e)){if(e.length<1024)return e}else if(e.length<1024)return Array.from(e);let r=!0,i=!0;return e.some((e,t)=>(r&&=0===e,i&&=e===t,!r&&!i)),r?function(e){if(1===e)return u;if(e<1024)return Array(e).fill(0);if(e>a.length){let t=Math.max(2*a.length,e);a=new Uint8Array(t)}return new Uint8Array(a.buffer,0,e)}(e.length):i?p(e.length):(0,n.iu)(e)&&e.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?e:function(e,t){for(let r of e){if(r>=65536)return(0,n.iu)(e)?e:new Uint32Array(e);r>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e,!t)}function s(e,t=e){return e<=1024?Array(e):t<=65536?new Uint16Array(e):new Uint32Array(e)}let l=h(131072),a=new Uint8Array(65536);const u=[0],c=(()=>{let e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function f(e){if(e===u)return!0;if(!(0,n.iu)(e))return!1;let{buffer:t}=e;return t===c.buffer||t===l.buffer||t===a.buffer}function p(e){return 1===e?u:e<1024?function(e){let t=Array(e).fill(0);for(let r=0;r<e;r++)t[r]=r;return t}(e):e<c.length?new Uint16Array(c.buffer,0,e):(e>l.length&&(l=h(Math.max(2*l.length,e))),new Uint32Array(l.buffer,0,e))}function h(e){let t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}},16939(e,t,r){r.d(t,{A:()=>h});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(25482),u=r(53966),c=r(19211),f=r(80882),p=r(31199);let h=n=class extends((0,l.OU)(a.o)){static from(e){return(0,s.PZ)(n,e)}constructor(e){super(e),this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}get faces(){return this._get("faces")??null}set faces(e){this._set("faces",(0,p.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},u.A.getLogger(this)))}castMaterial(e){return e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?(0,s.PZ)(f.A,e):(0,s.PZ)(c.A,e)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,i.Cg)([(0,o.MZ)({json:{write:p.B}})],h.prototype,"faces",null),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"material",void 0),(0,i.Cg)([(0,o.wg)("material")],h.prototype,"castMaterial",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"shading",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],h.prototype,"trustSourceNormals",void 0),h=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshComponent")],h)},95696(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(93223);let u=class extends((0,s.OU)(l.o)){static{n=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new n}};(0,i.Cg)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(25482),l=r(51850),a=r(93223);let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.type="local",this.origin=(0,l.vt)()}};(0,n.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(e,t,r){r.d(t,{A:()=>f});var n=r(32198),i=r(68197),o=r(91429),s=r(69540),l=r(25482),a=r(35063),u=r(51147),c=r(66895);let f=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.color=null,this.colorTextureTransform=null,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}get colorTexture(){return this._get("colorTexture")}set colorTexture(e){this._set("colorTexture",null==e?null:a.A.from(e))}get normalTexture(){return this._get("normalTexture")}set normalTexture(e){this._set("normalTexture",null==e?null:a.A.from(e))}clone(e){let t=(0,c.hz)(e),r=t?.materialMap?.get(this);if(r)return r;let n=super.clone((0,c.QN)(e));return t?.materialMap?.set(this,n),n}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null==this.color?0:16,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null==this.colorTextureTransform?0:20,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+(null==this.normalTextureTransform?0:20)}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],f.prototype,"color",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"colorTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"normalTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterial")],f)},80882(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(68197),o=r(91429),s=r(19211),l=r(35063),a=r(51147);let u=class extends s.A{constructor(e){super(e),this.emissiveColor=null,this.emissiveStrength=null,this.emissiveTextureTransform=void 0,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTextureTransform=void 0,this.unlit=!1}get emissiveTexture(){return this._get("emissiveTexture")}set emissiveTexture(e){this._set("emissiveTexture",null==e?null:l.A.from(e))}get occlusionTexture(){return this._get("occlusionTexture")}set occlusionTexture(e){this._set("occlusionTexture",null==e?null:l.A.from(e))}get metallicRoughnessTexture(){return this._get("metallicRoughnessTexture")}set metallicRoughnessTexture(e){this._set("metallicRoughnessTexture",null==e?null:l.A.from(e))}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null==this.emissiveColor?0:16,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null==this.emissiveTextureTransform?0:20,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null==this.occlusionTextureTransform?0:20,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+(null==this.metallicRoughnessTextureTransform?0:20)}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],u.prototype,"emissiveColor",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"emissiveStrength",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"emissiveTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"emissiveTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"occlusionTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"occlusionTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"metallic",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"roughness",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"metallicRoughnessTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"metallicRoughnessTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,nonNullable:!0,json:{write:!0}})],u.prototype,"unlit",void 0),u=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterialMetallicRoughness")],u)},35063(e,t,r){r.d(t,{A:()=>m});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(21287),u=r(25482),c=r(97159),f=r(66895),p=r(43937),h=r(36005);const g=new WeakMap;let y=0,m=class extends((0,l.OU)(u.o)){static{n=this}constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,r,n){e instanceof HTMLImageElement?t[r]={type:"image-element",src:(0,c.t)(e.src,n),crossOrigin:e.crossOrigin}:e instanceof HTMLCanvasElement?t[r]={type:"canvas-element",imageData:d(e.getContext("2d").getImageData(0,0,e.width,e.height))}:e instanceof HTMLVideoElement?t[r]={type:"video-element",src:(0,c.t)(e.src,n),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload}:e instanceof ImageData&&(t[r]={type:"image-data",imageData:d(e)})}readData(e){switch(e.type){case"image-element":{let t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{let t=x(e.imageData),r=document.createElement("canvas");return r.width=t.width,r.height=t.height,r.getContext("2d").putImageData(t,0,0),r}case"image-data":return x(e.imageData);case"video-element":{let t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){let{data:e,url:t}=this,r=e=>e?.toLowerCase().endsWith(".png")||e?.toLocaleLowerCase().startsWith("data:image/png;");return e instanceof HTMLCanvasElement?v(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?v(e):!!(t&&r(t)||e instanceof HTMLImageElement&&r(e.src))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){let e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null==this.url?null==this.data?t():this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(g.has(this.data)||g.set(this.data,++y),t(g.get(this.data))):t(this.url)}get memoryUsage(){let e=0;if(e+=null==this.url?0:this.url.length,null!=this.data){let t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(e){let t=(0,f.$N)(e),r=t?.textureMap?.get(this);if(r)return r;let n=super.clone(e);return t?.textureMap?.set(this,n),n}static from(e){return"string"==typeof e?new n({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new n({data:e}):(0,s.PZ)(n,e)}};function d(e){let t="";for(let r=0;r<e.data.length;r++)t+=String.fromCharCode(e.data[r]);return{data:btoa(t),width:e.width,height:e.height}}function x(e){let t=atob(e.data),r=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return(0,a.eV)(r,e.width,e.height)}function v(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,i.Cg)([(0,o.MZ)({type:String,json:{write:c.w}})],m.prototype,"url",null),(0,i.Cg)([(0,o.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],m.prototype,"data",null),(0,i.Cg)([(0,p.K)("data")],m.prototype,"writeData",null),(0,i.Cg)([(0,h.w)("data")],m.prototype,"readData",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],m.prototype,"transparent",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],m.prototype,"wrap",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"contentHash",null),m=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshTexture")],m)},51147(e,t,r){r.d(t,{A:()=>l});var n=r(32198),i=r(91429),o=r(69540),s=r(25482);let l=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshTextureTransform")],l)},1193(e,t,r){r.d(t,{A:()=>f});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(4718),u=r(53966),c=r(31199);let f=n=class extends((0,s.OU)(l.o)){constructor(e){super(e),this.color=null,this.position=new Float64Array,this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,c.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},u.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&u.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,c.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},u.A.getLogger(this))}castUv(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},u.A.getLogger(this))}castNormal(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},u.A.getLogger(this))}castTangent(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},u.A.getLogger(this))}clonePositional(){let e={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),uv:this.uv,color:this.color};return new n(e)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"color",void 0),(0,i.Cg)([(0,o.wg)("color")],f.prototype,"castColor",null),(0,i.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:c.B}})],f.prototype,"position",void 0),(0,i.Cg)([(0,o.wg)("position")],f.prototype,"castPosition",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"uv",void 0),(0,i.Cg)([(0,o.wg)("uv")],f.prototype,"castUv",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"normal",void 0),(0,i.Cg)([(0,o.wg)("normal")],f.prototype,"castNormal",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"tangent",void 0),(0,i.Cg)([(0,o.wg)("tangent")],f.prototype,"castTangent",null),f=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(e,t,r){function n(e,t,r){if(t<=0)return 0;let n=e-r;return n<0?0:Math.floor(n/t)+1}r.d(t,{k:()=>n}),r(53966)},31199(e,t,r){function n(e,t,r,n){let{loggerTag:i,stride:o}=t;return e.length%o===0?e:(n.error(i,`Invalid array length, expected a multiple of ${o}`),new r([]))}function i(e,t,r,i,o){if(!e)return e;if(e instanceof t)return n(e,i,t,o);for(let s of r)if(e instanceof s)return n(new t(e),i,t,o);if(Array.isArray(e))return n(new t(e),i,t,o);{let n=r.map(e=>`'${e.name}'`);return o.error(`Failed to set property, expected one of ${n}, but got ${e.constructor.name}`),new t([])}}function o(e,t,r){t[r]=function(e){let t=Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r];return t}(e)}r.d(t,{B:()=>o,b:()=>i})},98331(e,t,r){r.d(t,{H5:()=>p,createWithExternalSource:()=>f});var n=r(49186),i=(r(17676),r(9762),r(4197),r(77690),r(29242)),o=(r(35522),r(51850));r(48353),r(13030),(0,i.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},r(62788);var s=r(95488);r(44208),r(83349),r(53966),r(15585),r(95108),r(97146),r(34727),r(86211),(0,r(27921).vt)(),new s.I,new WeakSet;var l=r(83300),a=(r(16939),r(95696),r(73836));r(1193),r(66895),r(72258);var u=r(29461),c=r(27615);function f(e,t,r){let n=r?.extent??null,{spatialReference:i}=e,o=r?.transform?.clone()??new a.A,s=(0,c.TE)(e,r),f={source:t,extent:n,unitConversionDisabled:r?.unitConversionDisabled},p=new u.O;return p.externalSources.push(f),new l.A({metadata:p,transform:o,vertexSpace:s,spatialReference:i})}function p(e,t){let{spatialReference:r}=e,i=t?.transform?.clone()??new a.A,o=(0,c.TE)(e,t),s=new l.A({transform:i,vertexSpace:o,spatialReference:r});return s.addResolvingPromise(Promise.reject(new n.A("mesh-incomplete","Mesh resources are not complete"))),s}(0,o.vt)(),(0,i.vt)()},63579(e,t,r){r.d(t,{Bq:()=>a,Qp:()=>l,WN:()=>m,dK:()=>d,eN:()=>h,fH:()=>y,in:()=>g,yr:()=>u});var n=r(4576),i=r(17676),o=r(20557),s=r(78888);class l{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,n.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(let t of this.parts)e+=t.partHash;return e}async toBlob(e){let{parts:t}=this;if(1===t.length)return t[0].toBlob(e);let r=await Promise.all(t.map(t=>t.toBlob(e)));return(0,i.Te)(e),new Blob(r)}}class a{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){let{data:t}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(e),t}}function u(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(p):p(e.files);case"service":return e.assets.some(p);case"loadable":return!0;default:return!1}}(e?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(e){if(e instanceof File){let{type:t,name:r}=e;return c.test(t)||f.test(r)}return c.test(e.assetMimeType)||f.test(e.assetName)}function h(e,t){if(!e)return!1;let{source:r}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(r,t)}function g(e,t){if(e===t)return!0;let{source:r}=e,{source:n}=t;if(r===n)return!0;if("service"===r.type&&"service"===n.type){if(r.assets.length!==n.assets.length)return!1;let e=(e,t)=>e.assetName<t.assetName?-1:+(e.assetName>t.assetName),t=[...r.assets].sort(e),i=[...n.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(i[e]))return!1;return!0}return!1}function y(e,t){return e instanceof File?(0,o.rq)(e,t):(0,o.z$)(e.assetMimeType,e.assetName,t)}function m(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function d(e){return!!e.original}},29461(e,t,r){r.d(t,{O:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(7762),l=r(36708),a=r(63579);let u=class extends o.Pw{constructor(e){super(e),this.externalSources=new s.A,this._explicitDisplaySource=null,this.addHandles((0,l.on)(()=>this.externalSources,"after-remove",({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)},{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,a.yr)(e))throw Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every(t=>!(0,a.in)(t,e))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter(t=>(0,a.eN)(t,e))}get _implicitDisplaySource(){return this.externalSources.find(a.yr)}};(0,n.Cg)([(0,i.MZ)()],u.prototype,"externalSources",void 0),(0,n.Cg)([(0,i.MZ)()],u.prototype,"displaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.meshUtils.Metadata")],u)},66895(e,t,r){r.d(t,{$N:()=>c,Lz:()=>o,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>i});const n=Symbol("meshContext");function i(e){return e&&"object"==typeof e&&n in e?e[n]:void 0}function o(e,t){let r=i(e);return{...e,[n]:{...r,...t}}}const s=Symbol("meshMaterialContext");function l(e){return e&&"object"==typeof e&&s in e?e[s]:void 0}function a(e){if(l(e)?.materialMap)return e;let t={materialMap:new Map};return{...e,[s]:t}}const u=Symbol("meshTextureContext");function c(e){return e&&"object"==typeof e&&u in e?e[u]:void 0}function f(e){if(c(e)?.textureMap)return e;let t={textureMap:new Map};return{...e,[u]:t}}},27615(e,t,r){r.d(t,{CK:()=>a,Hq:()=>l,MW:()=>u,TE:()=>c,yJ:()=>f});var n=r(35522),i=r(86738),o=r(95696),s=r(18251);function l(e){return null!=e.origin}function a(e){return l(e.vertexSpace)}function u(e,t){if(!l(e))return null;let[r,n,o]=e.origin;return new i.A({x:r,y:n,z:o,spatialReference:t})}function c(e,t){let{x:r,y:n,z:i,spatialReference:l}=e,a=[r,n,i??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(l))?new s.A({origin:a}):new o.A({origin:a})}function f(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,n.t2)(e.origin,t.origin))}}}]);
|