@arcgis/core 5.0.0-next.7 → 5.0.0-next.9
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/applications/KnowledgeStudio/resourceSerializationUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{8f56f298e7c1a283f407.js → 0030d68d9edf42b4af57.js} +1 -1
- package/assets/esri/core/workers/chunks/01d460398f3ba6767a37.js +1 -0
- package/assets/esri/core/workers/chunks/02e7359162cf974b41b6.js +1 -0
- package/assets/esri/core/workers/chunks/{17d5f8dba6ebb1184506.js → 042cd64e1f4eb326c30f.js} +1 -1
- package/assets/esri/core/workers/chunks/{66db5f77e09d25e33951.js → 063905fbf9a0c6586949.js} +1 -1
- package/assets/esri/core/workers/chunks/{9486032af3e934d85582.js → 0a5d74414dd02a2fb8e1.js} +1 -1
- package/assets/esri/core/workers/chunks/{3815ffa13e7b439bca6e.js → 0d5212f59e9b62c16164.js} +1 -1
- package/assets/esri/core/workers/chunks/0f735b0dec173142f3b6.js +2 -0
- package/assets/esri/core/workers/chunks/{a8f998b8ec8c56150479.js.LICENSE.txt → 0f735b0dec173142f3b6.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{73487b9d85e726e9c012.js → 1257c37bf04d39c27b62.js} +1 -1
- package/assets/esri/core/workers/chunks/{398f356b11fd33bd3831.js → 136a7d781dad05a7463b.js} +1 -1
- package/assets/esri/core/workers/chunks/{1e4e7aedf4b779241a02.js → 15c7c10ff9ac63f0e792.js} +1 -1
- package/assets/esri/core/workers/chunks/17784cf16fa91504b9ea.js +1 -0
- package/assets/esri/core/workers/chunks/{a395373e3173e6458a56.js → 1ab37e13947d0e2e4181.js} +1 -1
- package/assets/esri/core/workers/chunks/{f03635ddf56e2ef90e4c.js → 1d06fcae4c2f02fb1c95.js} +1 -1
- package/assets/esri/core/workers/chunks/1dfca37f95f2b968aa54.js +1 -0
- package/assets/esri/core/workers/chunks/{5bd36dbf46c25bd961c8.js → 21293b0c6405a10ec7b6.js} +1 -1
- package/assets/esri/core/workers/chunks/{285762ff92d5388b6024.js → 2166238a7ad63a2d43c7.js} +1 -1
- package/assets/esri/core/workers/chunks/{620a94b54be3ed78350d.js → 22ca80f491e070b2a5e7.js} +1 -1
- package/assets/esri/core/workers/chunks/{88074189fa10c335370b.js → 24cd7b84cd0f3de4bff2.js} +1 -1
- package/assets/esri/core/workers/chunks/{ccc0da0e01f023c8aa1f.js → 28d1f2cf6aae547615c3.js} +1 -1
- package/assets/esri/core/workers/chunks/292daac70bb828e4923f.js +1 -0
- package/assets/esri/core/workers/chunks/{7e43c105f1cfc44b7bd0.js → 2fa01bd3f3608616fd7f.js} +1 -1
- package/assets/esri/core/workers/chunks/30e220f4f843681a4cdd.js +1 -0
- package/assets/esri/core/workers/chunks/{5d3661d1fe46dd29aae9.js → 311b564e44ae637c960d.js} +1 -1
- package/assets/esri/core/workers/chunks/{f4d0ae6be1b3984228d0.js → 31b6406960261da21dd4.js} +1 -1
- package/assets/esri/core/workers/chunks/31c7ce65e16f7858400f.js +1 -0
- package/assets/esri/core/workers/chunks/31dbe07047dc61303d7d.js +1 -0
- package/assets/esri/core/workers/chunks/{8a314b3790313e6dc5db.js → 333b62dad3811cff0f14.js} +1 -1
- package/assets/esri/core/workers/chunks/{c8733cd621105afab2ac.js → 35c9b24e4430bd6c2b6b.js} +1 -1
- package/assets/esri/core/workers/chunks/{e31192ae920e3e19b6aa.js → 37c1f155da14de91565a.js} +1 -1
- package/assets/esri/core/workers/chunks/{c55c096669677321a227.js → 38cd3648932bf2534b0f.js} +1 -1
- package/assets/esri/core/workers/chunks/3a457e718a901a45902e.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{f5e47eea8720ba84665b.js → 3c07aa2015ab1dff5f7b.js} +1 -1
- package/assets/esri/core/workers/chunks/{e9311386f58f3cb95c22.js → 42a1e71d09e8583a7327.js} +1 -1
- package/assets/esri/core/workers/chunks/443dfe7029ec208f670c.js +1 -0
- package/assets/esri/core/workers/chunks/{b75930d60449eceb0f1c.js → 4baf6f6e7ddedb25f806.js} +1 -1
- package/assets/esri/core/workers/chunks/{bb5484b5eeacc9ad2ceb.js → 4d0cbf9584446f411a37.js} +1 -1
- package/assets/esri/core/workers/chunks/{17103e6542aae53c7301.js → 4e3e27673d0671fc2b58.js} +1 -1
- package/assets/esri/core/workers/chunks/4fb5f1c671892001a4fd.js +1 -0
- package/assets/esri/core/workers/chunks/{5fc7b61f467f1d60a284.js → 51ab2acac4ecc1ca9c34.js} +1 -1
- package/assets/esri/core/workers/chunks/{fc4417d1260b717a9385.js → 52282f767bd0e99ddca0.js} +1 -1
- package/assets/esri/core/workers/chunks/{dedc4583b5f32a278124.js → 5350d50b47b6a4e0e169.js} +1 -1
- package/assets/esri/core/workers/chunks/{fc06014fb484fc8c697e.js → 53654edd766d9b4ef750.js} +1 -1
- package/assets/esri/core/workers/chunks/{90f8b4bda28af43ea019.js → 538f509d7fc8337d37ac.js} +1 -1
- package/assets/esri/core/workers/chunks/{ed8a85efbd90241512bb.js → 588533c3abe876f20f62.js} +1 -1
- package/assets/esri/core/workers/chunks/58e59ead33368ce38c8f.js +1 -0
- package/assets/esri/core/workers/chunks/5db37547963857295273.js +1 -0
- package/assets/esri/core/workers/chunks/{72846fb9c87c6642daf0.js → 5e2ce34def5e053913b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{8c056eac35d05d9524b7.js → 5f29422a051311ef9b3c.js} +1 -1
- package/assets/esri/core/workers/chunks/{ac26e3e77df4302f47a2.js → 604777417722d4effe06.js} +1 -1
- package/assets/esri/core/workers/chunks/{ff35a077ac6776469805.js → 61d970ed75c2c358b1e9.js} +1 -1
- package/assets/esri/core/workers/chunks/{7a6a96edc892d7060b7d.js → 629127877042ad784ad2.js} +1 -1
- package/assets/esri/core/workers/chunks/{90b2b43b8b54c9a1ec35.js → 664ae441617afe4b17ec.js} +1 -1
- package/assets/esri/core/workers/chunks/67f03d042455cd0f7009.js +1 -0
- package/assets/esri/core/workers/chunks/{4c5a7249a311070d8f43.js → 6af18d7a0d314d7c1756.js} +1 -1
- package/assets/esri/core/workers/chunks/{f35aaa04cca676c2d3f8.js → 6b59f94040c7d2f6728a.js} +1 -1
- package/assets/esri/core/workers/chunks/6d9f2b113d6bde936a04.js +1 -0
- package/assets/esri/core/workers/chunks/{5132ca68e8c7af111a47.js → 6e22b02a9715c10578d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{f0e0a63962784acb4ba1.js → 6f0aec7428021e440ac9.js} +1 -1
- package/assets/esri/core/workers/chunks/{deb2854bb7d082a26f52.js → 7005d956c990a04ee8b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{a3991ae8caa713d4ddcd.js → 731f7b552dde0fb325cd.js} +1 -1
- package/assets/esri/core/workers/chunks/7565b382f6b3d2cb46a3.js +2 -0
- package/assets/esri/core/workers/chunks/{b96eb0ea506379182d62.js.LICENSE.txt → 7565b382f6b3d2cb46a3.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{464d42bebb365287808d.js → 773f2c6c9d38db76dfed.js} +1 -1
- package/assets/esri/core/workers/chunks/{3f3d492f1093b7832aab.js → 7803495f8862d9025bcd.js} +1 -1
- package/assets/esri/core/workers/chunks/7d641f2f5edd95b9bc18.js +1 -0
- package/assets/esri/core/workers/chunks/7e4c14d4502e3f06d94b.js +1 -0
- package/assets/esri/core/workers/chunks/812f2ccc01f44e3cfd41.js +1 -0
- package/assets/esri/core/workers/chunks/826fa0dfb63df77bfd95.js +1 -0
- package/assets/esri/core/workers/chunks/{7544316a75dbd981aea6.js → 86cb097deec50b0da3f3.js} +1 -1
- package/assets/esri/core/workers/chunks/87921f3fa9001f5801ed.js +1 -0
- package/assets/esri/core/workers/chunks/{95c594a87b732f5c4979.js → 89b748e064ca90b4f76a.js} +1 -1
- package/assets/esri/core/workers/chunks/8a40ed2ee4b032822c30.js +1 -0
- package/assets/esri/core/workers/chunks/{09de8be660174a229efb.js → 8cbb28476151a37ae958.js} +1 -1
- package/assets/esri/core/workers/chunks/{fe77ae6cf232a7a3298e.js → 8d9d3797c6d62fdfff9d.js} +1 -1
- package/assets/esri/core/workers/chunks/{62a49cfd9a2508950e9f.js → 8fedfd33c37172dba6bf.js} +1 -1
- package/assets/esri/core/workers/chunks/91aa1157da32f650983b.js +1 -0
- package/assets/esri/core/workers/chunks/{e7638b9ab6674bc8a18f.js → 91dfd29e2dba200eab09.js} +1 -1
- package/assets/esri/core/workers/chunks/{794748fd1edc29a621cd.js → 9698f36c143953a975d4.js} +1 -1
- package/assets/esri/core/workers/chunks/98584902c9db6faa3e4d.js +1 -0
- package/assets/esri/core/workers/chunks/9e5e05d6430712b0b1bc.js +1 -0
- package/assets/esri/core/workers/chunks/{e5a06ce0ef6a9a90e100.js → 9f21436016ff7a899e79.js} +1 -1
- package/assets/esri/core/workers/chunks/{67d9cfe02613cb73ee37.js → 9ff8ee6ed6b98c03ae7e.js} +2 -2
- package/assets/esri/core/workers/chunks/{67d9cfe02613cb73ee37.js.LICENSE.txt → 9ff8ee6ed6b98c03ae7e.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/a6ee40dfc471d6612f3c.js +1 -0
- package/assets/esri/core/workers/chunks/aa78b69219d9a0ef1c54.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{a4db5c9a90107e097df8.js → af47272aaaef0ea57e71.js} +1 -1
- package/assets/esri/core/workers/chunks/b05208d56a724a8f1661.js +1 -0
- package/assets/esri/core/workers/chunks/{79968c183135281d2a6f.js → b3613a38178cad2ebc82.js} +1 -1
- package/assets/esri/core/workers/chunks/{22d6b8102e75bdef204c.js → b7eb486354994dc70855.js} +1 -1
- package/assets/esri/core/workers/chunks/bc19a232076d98825eef.js +1 -0
- package/assets/esri/core/workers/chunks/c29486c4eeb3e72effff.js +1 -0
- package/assets/esri/core/workers/chunks/{2b94623cabc6ae0f86ce.js → c37f7756d48ff9af2656.js} +1 -1
- package/assets/esri/core/workers/chunks/{1c52999a6392370844a6.js → c4090a60d149a5962179.js} +1 -1
- package/assets/esri/core/workers/chunks/c715fd32f814a0f14f40.js +1 -0
- package/assets/esri/core/workers/chunks/{73c1d43070b4fe1e5c1e.js → c8e686efe344a33a0258.js} +1 -1
- package/assets/esri/core/workers/chunks/{6bb5158de43c4b59107f.js → c9b16fd41cd59d452522.js} +1 -1
- package/assets/esri/core/workers/chunks/ce16489cf7eb0d78c741.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/cf971e7b1b98d9c502d3.js +1 -0
- package/assets/esri/core/workers/chunks/{279366e6b743f9680603.js → cfff044859e6e6dcc75d.js} +1 -1
- package/assets/esri/core/workers/chunks/d07f911d40bf05fc0306.js +1 -0
- package/assets/esri/core/workers/chunks/{8833c3d168951be4bf20.js → d0d79dd3e88eecf5c314.js} +1 -1
- package/assets/esri/core/workers/chunks/d1ca7c3a32ce00ed8b81.js +1 -0
- package/assets/esri/core/workers/chunks/{76ae1702fecc7ad7017c.js → d1e97cce5047f1791e22.js} +1 -1
- package/assets/esri/core/workers/chunks/{17acde0245ecd956306c.js → d233cc33497a663450f9.js} +1 -1
- package/assets/esri/core/workers/chunks/{b017bac40dc8328013e3.js → d391bfbaf0e790cd10d6.js} +2 -2
- package/assets/esri/core/workers/chunks/{b017bac40dc8328013e3.js.LICENSE.txt → d391bfbaf0e790cd10d6.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/d6e0528eacee7ea4c1ce.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{36fe6b8228e622407ec2.js → d8793eead02491136841.js} +1 -1
- package/assets/esri/core/workers/chunks/{4d599008e1ea42321b37.js → da24ad57747714ac5eda.js} +1 -1
- package/assets/esri/core/workers/chunks/db678a6e352275e507a9.js +1 -0
- package/assets/esri/core/workers/chunks/{facb3886714222772ab2.js → ddfd01bb9ba8577c3ffc.js} +1 -1
- package/assets/esri/core/workers/chunks/de2ebd9cc3d9e68d435b.js +1 -0
- package/assets/esri/core/workers/chunks/{50d9f69d5255af4b29bb.js → df5afa06c6deb6b40109.js} +1 -1
- package/assets/esri/core/workers/chunks/e25c4b4a03270d48f408.js +1 -0
- package/assets/esri/core/workers/chunks/e3294318daf1192b8319.js +1 -0
- package/assets/esri/core/workers/chunks/e599125e746c27de106e.js +1 -0
- package/assets/esri/core/workers/chunks/{da573ecc68e6aa8f6da9.js → e767f83f9e2de6650f80.js} +1 -1
- package/assets/esri/core/workers/chunks/e9d4cae2144974489d6e.js +1 -0
- package/assets/esri/core/workers/chunks/{91df8638b8b904e6d8c5.js → ead8d0cbcebd12dbfad7.js} +1 -1
- package/assets/esri/core/workers/chunks/{f9324e88c359c03f35aa.js → eb9c166db0db6fa60e95.js} +1 -1
- package/assets/esri/core/workers/chunks/ebcc94234d9d4be1941f.js +316 -0
- package/assets/esri/core/workers/chunks/ee5f0fd5384caa11c986.js +1 -0
- package/assets/esri/core/workers/chunks/{bc241c7735e4efba734a.js → f34e3fa0c5b28531e289.js} +1 -1
- package/assets/esri/core/workers/chunks/f64037a88ab03662dc2a.js +1 -0
- package/assets/esri/core/workers/chunks/f651c05604eab83aef5f.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{d97fadbc69e055d183a0.js → f77f4bd6a577b92cf66f.js} +1 -1
- package/assets/esri/core/workers/chunks/f80f5dbf96c343ac4df6.js +1 -0
- package/assets/esri/core/workers/chunks/{16d66770ef841564ee3f.js → f89c90f98c85667b0ebc.js} +1 -1
- package/assets/esri/core/workers/chunks/{4c4227b0ea21a5e429ab.js → fb192de7e4fa152342bb.js} +1 -1
- package/assets/esri/core/workers/chunks/fbd8d2f61f8a15bcf3db.js +1 -0
- package/assets/esri/core/workers/chunks/fccd931f95d81ecc57b2.js +1 -0
- package/assets/esri/core/workers/chunks/{2f78861afe0e9037dd8d.js → fe49321dca22dc60d105.js} +1 -1
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/themes/base/widgets/_NavigationToggle.scss +1 -1
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -4
- package/assets/esri/themes/base/widgets/_Widget.scss +1 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/config.js +1 -1
- package/core/QueueProcessor.js +1 -1
- package/core/SetUtils.js +1 -1
- package/core/has.js +1 -1
- package/form/FormTemplate.js +1 -1
- package/form/elements/Element.js +1 -1
- package/form/elements/FieldElement.js +1 -1
- package/form/elements/GroupElement.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/identity/Credential.js +1 -1
- package/identity/IdentityManager.js +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +92 -50
- package/kernel.js +1 -1
- package/layers/FeatureLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
- package/layers/knowledgeGraph/layerUtils.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
- package/layers/support/RasterJobHandler.js +1 -1
- package/layers/support/RasterWorker.js +1 -1
- package/layers/support/fieldConfigUtils.js +1 -1
- package/layers/support/rasterDatasets/pixelReader.js +1 -1
- package/layers/support/rasterFunctions/pixelTransformUtils.js +5 -0
- package/layers/support/rasterFunctions/pixelUtils.js +1 -1
- package/layers/support/source/DataLayerSource.js +1 -1
- package/package.json +4 -4
- package/popup/FieldInfo.js +1 -1
- package/processRequest.js +5 -0
- package/request.js +1 -1
- package/requestConfig.js +5 -0
- package/requestQueue.js +5 -0
- package/rest/query/executeForCount.js +1 -1
- package/rest/query/executeForExtent.js +1 -1
- package/rest/query/executeForIds.js +1 -1
- package/rest/query/executeQueryJSON.js +1 -1
- package/rest/query/executeQueryPBF.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/rest/support/BaseImageMeasureResultValue.js +5 -0
- package/rest/support/ImageAreaResult.js +1 -1
- package/rest/support/ImageDistanceResult.js +1 -1
- package/rest/support/ImageHeightResult.js +1 -1
- package/rest/support/ImageMeasureResultAngleValue.js +5 -0
- package/rest/support/ImageMeasureResultAreaValue.js +5 -0
- package/rest/support/ImageMeasureResultLengthValue.js +5 -0
- package/rest/support/ImageWithType.js +5 -0
- package/rest/support/imageMeasureUtils.js +1 -1
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/support/histogramUtils.js +1 -1
- package/smartMapping/support/adapters/support/utils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/utils.js +1 -1
- package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
- package/views/2d/layers/features/schema/SourceSchema.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/strategies/AFeatureLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/ALoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
- package/views/{3d/support/ImageWithType.js → 2d/layers/features/sources/strategies/constants.js} +1 -1
- package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/volumeMeasurementErrors.js +1 -1
- package/views/3d/glTF/DefaultLoadingContext.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
- package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
- package/views/3d/layers/ElevationLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/graphics/FeatureGraphics3DGraphicsPipeline.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
- package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
- package/views/3d/layers/graphics/pipeline/fetching/Tile3DFetcher.js +1 -1
- package/views/3d/layers/graphics/wosrLoader.js +1 -1
- package/views/3d/layers/i3s/I3SDataRequester.js +5 -0
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/3d/layers/i3s/I3SNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/support/FeatureTile.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/MediaLayerInteractionOptions.js +1 -1
- package/views/3d/layers/support/MediaLayerInteractionReshapeOptions.js +5 -0
- package/views/3d/layers/support/SampledGeometryMaxDistanceRatio.js +5 -0
- package/views/3d/layers/support/featureTileQuery3D.js +1 -1
- package/views/3d/layers/support/fetchTile.js +1 -1
- package/views/3d/support/ResourceController.js +1 -1
- package/views/3d/support/SharedSymbolResources.js +1 -1
- package/views/3d/support/StreamTextureCollection.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lighting/SceneLighting.js +1 -1
- package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +6 -0
- package/views/SceneView.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
- package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
- package/views/draw/MultipointDrawAction.js +1 -1
- package/views/draw/PointDrawAction.js +1 -1
- package/views/draw/PolygonDrawAction.js +1 -1
- package/views/draw/PolylineDrawAction.js +1 -1
- package/views/draw/SegmentDrawAction.js +1 -1
- package/views/draw/input/CursorUpdateEvents.js +5 -0
- package/views/draw/input/DrawCompleteEvent.js +5 -0
- package/views/draw/input/VertexAddEvent.js +5 -0
- package/views/draw/input/VertexRemoveEvent.js +5 -0
- package/views/draw/input/VertexUpdateEvent.js +5 -0
- package/views/interactive/editGeometry/CheckpointingEditGeometryOperations.js +5 -0
- package/views/interactive/editGeometry/EditGeometry.js +1 -1
- package/views/interactive/editGeometry/operations/ReplayableAppendVertex.js +5 -0
- package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTilesSimple.js +1 -1
- package/views/support/PromiseQueue.js +1 -1
- package/views/support/Scheduler.js +1 -1
- package/webscene/spec-certification/api.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/CoordinateConversion.js +1 -1
- package/widgets/Editor/AddAssociationWorkflow.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflowData.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/support/errors.js +5 -0
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
- package/widgets/OrientedImageryViewer/services/DepthImageService.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/PanoramicZoomManager.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicMeshManager.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicTileNode.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicTilePyramid.js +1 -1
- package/widgets/PanoramicViewer/support/getVisibleTiles.js +5 -0
- package/widgets/Sketch/CreateToolVisibilityMap.js +5 -0
- package/widgets/Sketch/SelectionToolVisibilityMap.js +5 -0
- package/widgets/Sketch/VisibleElements.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/assets/esri/core/workers/chunks/020c8913d8e35d63080b.js +0 -1
- package/assets/esri/core/workers/chunks/02e69f0c63d97661da60.js +0 -1
- package/assets/esri/core/workers/chunks/05eee334d58a0b9f6316.js +0 -1
- package/assets/esri/core/workers/chunks/06ba43843e9c4988049b.js +0 -1
- package/assets/esri/core/workers/chunks/087973e7c4fea5fcfa5e.js +0 -1
- package/assets/esri/core/workers/chunks/326a76a4e80269d4029d.js +0 -1
- package/assets/esri/core/workers/chunks/377a66034e7c1bad5599.js +0 -1
- package/assets/esri/core/workers/chunks/4442817beb7a76c95770.js +0 -1
- package/assets/esri/core/workers/chunks/459a67928bde4a62b6a4.js +0 -1
- package/assets/esri/core/workers/chunks/4eebd74ebc20579dade8.js +0 -1
- package/assets/esri/core/workers/chunks/53bd8996e8812f1ad7b2.js +0 -1
- package/assets/esri/core/workers/chunks/557960763695abee4a83.js +0 -1
- package/assets/esri/core/workers/chunks/6201356f7f91e5c06425.js +0 -1
- package/assets/esri/core/workers/chunks/6c3b99209d542efa64d4.js +0 -1
- package/assets/esri/core/workers/chunks/6f4bd0ee85e7e5a74340.js +0 -1
- package/assets/esri/core/workers/chunks/7413e582bc2b16af6a0f.js +0 -1
- package/assets/esri/core/workers/chunks/7461124454bfb4fb6474.js +0 -1
- package/assets/esri/core/workers/chunks/75bf27271a31e26e1b21.js +0 -1
- package/assets/esri/core/workers/chunks/7aaaebbabee27690283c.js +0 -1
- package/assets/esri/core/workers/chunks/7c4a63aeead2505d6f02.js +0 -1
- package/assets/esri/core/workers/chunks/811d4c46c75cf6a63e78.js +0 -1
- package/assets/esri/core/workers/chunks/8ffd4710d168c2fcfd96.js +0 -1
- package/assets/esri/core/workers/chunks/90250e9239c173aace88.js +0 -1
- package/assets/esri/core/workers/chunks/9786f91455350eaae493.js +0 -1
- package/assets/esri/core/workers/chunks/99859dce1925b406ccd0.js +0 -1
- package/assets/esri/core/workers/chunks/9c5cbf8810f37b1a4718.js +0 -1
- package/assets/esri/core/workers/chunks/9e8dceef4c961f56940d.js +0 -1
- package/assets/esri/core/workers/chunks/9fac5a12e878cd745354.js +0 -1
- package/assets/esri/core/workers/chunks/a06bac9b8f9e18874de8.js +0 -316
- package/assets/esri/core/workers/chunks/a712cdff78fc826acd8c.js +0 -1
- package/assets/esri/core/workers/chunks/a8f998b8ec8c56150479.js +0 -2
- package/assets/esri/core/workers/chunks/aa54b6f2aba6952af149.js +0 -1
- package/assets/esri/core/workers/chunks/b96eb0ea506379182d62.js +0 -2
- package/assets/esri/core/workers/chunks/c476643002387f60ea42.js +0 -1
- package/assets/esri/core/workers/chunks/c4e4da69969499a89a2c.js +0 -1
- package/assets/esri/core/workers/chunks/cd1930f08e1fc8b30b14.js +0 -1
- package/assets/esri/core/workers/chunks/d1fe816b6990918c13c7.js +0 -1
- package/assets/esri/core/workers/chunks/d305a21666b1ed5bf33d.js +0 -1
- package/assets/esri/core/workers/chunks/d40f57f9fc47f9a9f97c.js +0 -1
- package/assets/esri/core/workers/chunks/e0bbfbe1ed39c82f1bd4.js +0 -1
- package/assets/esri/core/workers/chunks/e82f5437bd66779c6740.js +0 -1
- package/assets/esri/core/workers/chunks/f6c8beb60f6d29945a2e.js +0 -1
- package/assets/esri/core/workers/chunks/f746e3f7ebff2bbdf333.js +0 -1
- package/assets/esri/core/workers/chunks/fd2efd1d1cf9d95a87e6.js +0 -1
- package/views/3d/layers/i3s/I3SStreamDataController.js +0 -5
- package/views/3d/support/StreamDataLoader.js +0 -5
- package/views/3d/support/StreamDataRequester.js +0 -5
- package/views/3d/support/downloadSlots.js +0 -5
- package/views/draw/input/DrawEvents.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6699,7136],{4197:(e,t,i)=>{i.d(t,{Vj:()=>u,cj:()=>l,jh:()=>o,l5:()=>a,xm:()=>s});var r=i(34275),n=i(9093);function o(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function s(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function a(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function l(e){return[...e]}function u(e){const t=(0,n.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},6797:(e,t,i)=>{i.d(t,{Ui:()=>d});var r=i(69622),n=i(7762),o=i(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof r.A}function l(e){return e instanceof n.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const r=l(e),n=l(t);if(0===r.length&&0===n.length)return;if(!r.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=n.filter(e=>!r.includes(e)),d=r.filter(e=>!n.includes(e)),m=r.filter(i=>n.includes(i)&&u(e,i)!==u(t,i)).concat(o,d).sort(),g=c(e);if(g&&s.has(g)&&m.length)return{type:"complete",oldValue:e,newValue:t};let y;const h=a(e)&&a(t);for(const r of m){const n=u(e,r),o=u(t,r);let s;if((h||"function"!=typeof n&&"function"!=typeof o)&&n!==o&&(null!=n||null!=o)){if(i&&i[r]&&"function"==typeof i[r])s=i[r]?.(n,o);else if(n instanceof Date&&o instanceof Date){if(n.getTime()===o.getTime())continue;s={type:"complete",oldValue:n,newValue:o}}else s="object"==typeof n&&"object"==typeof o&&c(n)===c(o)?p(n,o):{type:"complete",oldValue:n,newValue:o};null!=s&&(null!=y?y.diff[r]=s:y={type:"partial",diff:{[r]:s}})}}return y}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},8303:(e,t,i)=>{i.d(t,{A:()=>b});var r=i(31635),n=i(92602),o=i(70333),s=i(43773),a=i(60999),l=i(49186),u=i(53966),c=i(97768),p=i(74887),d=i(84952),m=i(10107),g=(i(44208),i(87811),i(36005)),y=i(64108),h=i(43937),f=i(77548),M=i(20655),w=i(80812),I=i(41318),A=i(10407);const b=e=>{const t=e;let b=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new w.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!o.id?.findCredential(this.url),n=e===i.id;if(n&&i.portal.user)return this._getUserPrivileges(i,r);let s,a;if(n)s=i.portal.url;else try{s=await(0,f.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!s||!(0,d.b8)(s,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(n?await i.reload():(i=new w.default({id:e,portal:{url:s}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,A.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const i=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=o.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,n=M.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(r))return n.user;const l=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?I.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||M.A.getDefault());return i&&r&&!(0,d.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,m.MZ)({type:w.default})],b.prototype,"portalItem",null),(0,r.Cg)([(0,g.w)("web-document","portalItem",["itemId"])],b.prototype,"readPortalItem",null),(0,r.Cg)([(0,h.K)("web-document","portalItem",{itemId:{type:String}})],b.prototype,"writePortalItem",null),(0,r.Cg)([(0,m.MZ)({clonable:!1})],b.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasUpdateItemPrivileges",void 0),b=(0,r.Cg)([(0,y.$)("esri.layers.mixins.PortalLayer")],b),b},C={credential:null,user:null}},9093:(e,t,i)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>n,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:n,create:r,fromValues:function(e,t,i,r,n,o,s,a,l,u,c,p,d,m,g,y){return[e,t,i,r,n,o,s,a,l,u,c,p,d,m,g,y]}},Symbol.toStringTag,{value:"Module"}))},10184:(e,t,i)=>{i.d(t,{A:()=>p});var r=i(31635),n=i(69540),o=i(25482),s=i(88930),a=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),u=i(64108),c=i(73133);let p=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,r.Cg)([(0,l.e)(c.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,r.Cg)([(0,u.$)("esri.time.TimeInterval")],p)},10407:(e,t,i)=>{i.d(t,{It:()=>m,LG:()=>s,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>p});var r=i(91218),n=i(16930),o=i(28735);function s(e,t){if(!a(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function c(e,t,i){i?s(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const i=n.A.WGS84;return await(0,r.initializeProjection)(t,i),(0,r.project)(e,i)}(i)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function m(e){const{portal:t,isOrgItem:i,itemControl:r}=e,n=t.user?.privileges;let o=!n||n.includes("features:user:edit"),s=!!i&&!!n?.includes("features:user:fullEdit");const a="update"===r||"admin"===r;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}},12711:(e,t,i)=>{i.d(t,{$P:()=>B,I8:()=>A,Mm:()=>v,PD:()=>b,ci:()=>x,fp:()=>C,m7:()=>D,w6:()=>S});var r=i(68197),n=(i(83047),i(20437)),o=i(76353),s=(i(86162),i(67730),i(80498)),a=(i(46981),i(36280)),l=i(93618),u=i(18031),c=i(30943),p=(i(88542),i(67369)),d=i(88178),m=i(94833),g=(i(2024),i(48940)),y=(i(72500),i(9760),i(84892),i(1626)),h=i(94985);const f=.25,M=y.A.fromJSON({type:"multipart",colorRamps:[{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]}),w=y.A.fromJSON(p.vj[0]),I=new Set(["scientific","standard-time","vector-uv","vector-magdir","vector-u","vector-v","vector-magnitude","vector-direction"]);function A(e){return e.presetRenderers?.find(({method:t,value:i})=>"raster-function-template"===t?i===e.rasterFunctionName:"variable"===t&&i===e.variableName)}function b(e,t){const{attributeTable:i,colormap:n}=e;if((0,d.rd)(e)){const t=function(e){if(!(0,d.rd)(e))return null;let t;if(null!=e.statistics&&e.statistics.length&&("vector-magdir"===e.dataType||"vector-uv"===e.dataType)){const{minMagnitude:i,maxMagnitude:r}=function(e,t){let i,r;if("vector-magdir"===e)i=t[0].min,r=t[0].max;else{const e=t[0].min,n=t[0].max,o=t[1].min,s=t[1].max;i=0,r=Math.max(Math.abs(e),Math.abs(o),Math.abs(n),Math.abs(s))}return{minMagnitude:i,maxMagnitude:r}}(e.dataType,e.statistics);t=[new g.A({field:"Magnitude",minSize:10,maxSize:40,minDataValue:i,maxDataValue:r})]}const i=null!=e.multidimensionalInfo?k.get(e.multidimensionalInfo.variables[0].unit):void 0,r=new u.A({visualVariables:t,inputUnit:i,rotationType:"geographic"});return r.visualVariables=[...r.sizeVariables,...r.rotationVariables],r}(e);if(null!=t)return t}if(t?.rasterFunctionColorRamp){const i=T(e,t);return i.colorRamp=t.rasterFunctionColorRamp,i}if(null!=n){const t=function(e){if(!(0,d.FA)(e))return null;let t;const{attributeTable:i,colormap:r}=e;if(null!=i){const e=Z(i,"value"),r=L(i,null,!0);"string"===r.type&&(t={},i.features.forEach(i=>{const n=i.attributes;t[n[e.name]]=r?n[r.name]:n[e.name]}))}return s.A.createFromColormap(r,t)}(e);if(null!=t)return t}if(null!=i){const t=function(e,t){if(!(0,d.hu)(e,t))return null;const{attributeTable:i,statistics:n}=e,o=L(i,t),s=Z(i,"red"),a=Z(i,"green"),u=Z(i,"blue"),g=new c.A,y=[],f=new Set,M=!!(s&&a&&u);if(null!=i)i.features.forEach(e=>{const t=e.attributes[o.name];if(!f.has(e.attributes[o.name])&&null!=t){f.add(t);const n=M&&("single"===s.type||"double"===s.type)&&("single"===a.type||"double"===a.type)&&("single"===u.type||"double"===u.type)&&!i.features.some(e=>e.attributes[s.name]>1||e.attributes[a.name]>1||e.attributes[u.name]>1),l=n?255:1;y.push(new m.A({value:e.attributes[o.name],label:e.attributes[o.name]+"",symbol:new h.A({style:"solid",outline:null,color:new r.A(M?[e.attributes[s.name]*l,e.attributes[a.name]*l,e.attributes[u.name]*l,1]:[0,0,0,0])})}))}});else if(n?.[0])for(let e=n[0].min;e<=n[0].max;e++)y.push(new m.A({value:e,label:e.toString(),symbol:new h.A({style:"solid",outline:null,color:new r.A([0,0,0,0])})}));if(y.sort((e,t)=>e.value&&"string"==typeof e.value.valueOf()?0:e.value>t.value?1:-1),!M){const e=(0,p.R8)(w,{numColors:y.length});y.forEach((t,i)=>t.symbol.color=new r.A(e[i].slice(1,4))),g.colorRamp=w}return new l.A({field:o.name,uniqueValueInfos:y,authoringInfo:g})}(e);if(null!=t)return t}return T(e,t)}function C(e,t=!1){const i=["raster-stretch"];return(0,d.FA)(e,t)&&i.push("raster-colormap"),(0,d.hu)(e)&&i.push("unique-value"),(0,d.xX)(e,t)&&i.push("class-breaks"),(0,d.iL)(e)&&i.push("raster-shaded-relief"),(0,d.rd)(e)&&i.push("vector-field"),(0,d.QJ)(e)&&i.push("flow"),i}function v(e){return(0,o.qg)(e)&&"Colormap"===e.rasterFunction.functionName?e.rasterFunction.colorRamp:void 0}function S(e,t,i){const r=i?.toLowerCase().replace("bicubic","cubic"),n=["nearest","bilinear","cubic","majority"].find(e=>e===r);return"Map"===t?n??"bilinear":"standard-time"===e.dataType?n??"nearest":"thematic"===e.dataType||e.attributeTable||e.colormap?"nearest"===n||"majority"===n?n:"nearest":n??"bilinear"}function T(e,t){e=D(e,t?.variableName);const{bandCount:i}=e;let{bandIds:r,stretchType:n}=t||{};r?.some(e=>e>=i)&&(r=null);let o=e.statistics,s=e.histograms;i>1?(r=r?.length?r:x(e),o=null==o?null:r?.map(e=>o[e]),s=null==s?null:r?.map(e=>s[e])):r=[0],null==n&&(n=function(e){let t="percent-clip";const{pixelType:i,dataType:r,histograms:n,statistics:o,multidimensionalInfo:s}=e,a=I.has(r)||"generic"===r&&null!=s;return"u8"!==i||"processed"!==r&&null!=n&&null!=o?"u8"===i||"elevation"===r||a?t="min-max":null!=n?t="percent-clip":null!=o&&(t="min-max"):t="none",t}(e)),t?.includeStatisticsInStretch&&("percent-clip"===n||"histogram-equalization"===n)&&e.statistics?.length&&(n="min-max");let l=!1;switch(n){case"none":l=!1;break;case"percent-clip":l=!s?.length;break;default:l=!o?.length}const{dataType:u}=e,c=1===r?.length&&I.has(u)?M:null,p=new a.A({stretchType:n,dynamicRangeAdjustment:l,colorRamp:c,outputMin:0,outputMax:255,gamma:1===r?.length?[1]:[1,1,1],useGamma:!1});return"percent-clip"===n?p.maxPercent=p.minPercent=f:"standard-deviation"===n&&(p.numberOfStandardDeviations=2),l||null==e.multidimensionalInfo&&!t?.includeStatisticsInStretch||("percent-clip"===n?p.histograms=s:"min-max"!==n&&"standard-deviation"!==n||(p.customStatistics=o?.map(e=>({...e})))),p}function D(e,t){const{multidimensionalInfo:i}=e;if(!t||!i)return e;const r=i.variables.find(e=>e.name===t);if(!r)return e;if(e=e.clone(),r){const{statistics:t,histograms:i}=r;t?.length&&(e.statistics=t.map(e=>({min:e.min,max:e.max,avg:e.avg,stddev:e.stddev}))),i?.length&&(e.histograms=i)}return e}function x(e){const t=e.bandCount;if(1===t)return null;if(2===t)return[0];const{bandInfos:i}=e;let r;if(i.length===t){const{red:e,green:t,blue:n,nir:o}=function(e){const t={};for(let i=0;i<e.length;i++){const r=e[i].name.toLowerCase();"red"===r?t.red=i:"green"===r?t.green=i:"blue"===r?t.blue=i:"nearinfrared"!==r&&"nearinfrared_1"!==r&&"nir"!==r||(t.nir=i)}if(null==t.blue||null==t.green||null==t.red||null==t.nir){const i=N(e);if(t.blue??=j(i,480),t.green??=j(i,550),t.red??=j(i,660),null==t.nir){const r=N(e,800);t.nir=j(r,810)??j(i,810)}}return t}(i);null!=e&&null!=t&&null!=n?r=[e,t,n]:null!=o&&null!=e&&null!=t&&(r=[o,e,t])}return!r&&t>=3&&(r=[0,1,2]),r}function j(e,t,i=60){let r,n=i;for(const i of e){const e=Math.abs(i.wavelength-t);e<=n&&(n=e,r=i.index)}return r}function N(e,t){return e.map(({name:e,minWavelength:i,maxWavelength:r},n)=>/thermal/i.test(e)||/pan/i.test(e)||null!=t&&null!=r&&r<t?null:{wavelength:null!=i&&null!=r?(i+r)/2:i??r??0,index:n}).filter(e=>null!=e)}function L(e,t,i){let r;return null!=e?(r=t?e.fields.find(e=>t.toLowerCase()===e.name.toLowerCase()):function(e){let t;for(let i=0;i<e.length;i++){const r=e[i].name.toLowerCase();if("string"===e[i].type){if(r.startsWith("class")){t=e[i];break}null==t&&(r.endsWith("name")||r.endsWith("type"))&&(t=e[i])}}return t}(e.fields),r||(i||(r=e.fields.find(e=>"string"===e.type)),r||(r=Z(e,"value")))):r=new n.A({name:"value"}),r}function Z(e,t){return null==e?null:e.fields.find(e=>e.name.toLowerCase()===t)}const k=new Map([["m/s","meter-per-second"],["km/h","kilometer-per-hour"],["knots","knots"],["ft/s","feet-per-second"],["mph","mile-per-hour"]]);function R(e){return{color:e.symbolLayers[0].material?.color,type:"esriSFS",style:"esriSFSSolid"}}function B(e){if("uniqueValue"===e.type){const t=e.uniqueValueInfos,i=t?.[0].symbol;return i?.symbolLayers?.length&&(e.uniqueValueInfos=t?.map(e=>({value:e.value,label:e.label,symbol:e.symbol?R(e.symbol):null}))),e}if("classBreaks"===e.type){const t=e.classBreakInfos,i=t[0].symbol;return i?.symbolLayers?.length&&(e.classBreakInfos=t.map(e=>({classMinValue:e.classMinValue,classMaxValue:e.classMaxValue,label:e.label,symbol:e.symbol?R(e.symbol):null}))),e}return e}},17136:(e,t,i)=>{i.d(t,{Y_:()=>D,O7:()=>S,el:()=>v});var r=i(92602),n=i(69052),o=i(49186),s=i(53966),a=i(39829),l=i(82799),u=i(16930),c=i(80754),p=i(21325),d=i(28735),m=i(43773),g=i(65864),y=i(2272),h=i(84952),f=i(92300);const M=()=>s.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function I(e){return"polyline"===e[0].type}function A(e,t,i){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw M().error(e),new o.A("internal:geometry",e)}const i=(0,c.r8)(e),r=[];for(const e of i){const i=[];r.push(i),i.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const n=e[r][0],o=e[r][1],s=e[r+1][0],a=e[r+1][1],l=Math.sqrt((s-n)*(s-n)+(a-o)*(a-o)),u=(a-o)/l,c=(s-n)/l,p=l/t;if(p>1){for(let e=1;e<=p-1;e++){const r=e*t,s=c*r+n,a=u*r+o;i.push([s,a])}const e=(l+Math.floor(p-1)*t)/2,r=c*e+n,s=u*e+o;i.push([r,s])}i.push([s,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:r,spatialReference:e.spatialReference}):new l.A({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.ci)(t,!0)}return i&&(e=(0,c.kS)(e,i)),e}function b(e,t,i){if(Array.isArray(e)){const r=e[0];if(r>t){const i=(0,c.kd)(r,t);e[0]=r+i*(-2*t)}else if(r<i){const t=(0,c.kd)(r,i);e[0]=r+t*(-2*i)}}else{const r=e.x;if(r>t){const i=(0,c.kd)(r,t);e=e.clone().offset(i*(-2*t),0)}else if(r<i){const t=(0,c.kd)(r,i);e=e.clone().offset(t*(-2*i),0)}}return e}function C(e,t){let i=-1;for(let r=0;r<t.cutIndexes.length;r++){const n=t.cutIndexes[r],o=t.geometries[r],s=(0,c.r8)(o);for(let e=0;e<s.length;e++){const t=s[e];t.some(i=>{if(i[0]<180)return!0;{let i=0;for(let e=0;e<t.length;e++){const r=t[e][0];i=r>i?r:i}i=Number(i.toFixed(9));const r=-360*(0,c.kd)(i,180);for(let i=0;i<t.length;i++){const t=o.getPoint(e,i);o.setPoint(e,i,t.clone().offset(r,0))}return!0}})}if(n===i){if(w(e))for(const t of(0,c.r8)(o))e[n]=e[n].addRing(t);else if(I(e))for(const t of(0,c.r8)(o))e[n]=e[n].addPath(t)}else i=n,e[n]=o}return e}async function v(e,t,i){if(!Array.isArray(e))return v([e],t);t&&"string"!=typeof t&&M().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??r.A.geometryServiceUrl;let o,s,u,w,I,S,T,D,x=0;const j=[],N=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,s=(0,p.Vp)(o),u=o.isWebMercator,S=u?102100:4326,w=c.j7[S].maxX,I=c.j7[S].minX,T=c.j7[S].plus180Line,D=c.j7[S].minus180Line),s)if("mesh"===t.type)N.push(t);else if("point"===t.type)N.push(b(t.clone(),w,I));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>b(e,w,I)),N.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,s);N.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,i=(0,c.kd)(e.xmin,I)*(2*w);let r=0===i?t.clone():(0,c.kS)(t.clone(),i);e.offset(i,0);let{xmin:n,xmax:o}=e;n=Number(n.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(T)&&o!==w?(x=o>x?o:x,r=A(r,u),j.push(r),N.push("cut")):e.intersects(D)&&n!==I?(x=o*(2*w)>x?o*(2*w):x,r=A(r,u,360),j.push(r),N.push("cut")):N.push(r)}else N.push(t.clone());else N.push(t);else N.push(t);let L=(0,c.kd)(x,w),Z=-90;const k=L,R=new l.A;for(;L>0;){const e=360*L-180;R.addPath([[e,Z],[e,-1*Z]]),Z*=-1,L--}if(j.length>0&&k>0){const t=C(j,await async function(e,t,i,r){const n=(0,y.Dl)(e),o=t[0].spatialReference,s={...r,responseType:"json",query:{...n.query,f:"json",sr:(0,p.YX)(o),target:JSON.stringify({geometryType:(0,g.$B)(t[0]),geometries:t}),cutter:JSON.stringify(i)}},a=await(0,m.A)(n.path+"/cut",s),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,g.rS)(e);return t.spatialReference=o,t})}}(n,j,R,i)),r=[],o=[];for(let i=0;i<N.length;i++){const n=N[i];if("cut"!==n)o.push(n);else{const n=t.shift(),s=e[i];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&n.rings.length>=s.rings.length?(r.push(n),o.push("simplify")):o.push(u?(0,d.Gh)(n):n)}}if(!r.length)return o;const s=await async function(e,t,i){const r="string"==typeof e?(0,h.An)(e):e,n=t[0].spatialReference,o=(0,g.$B)(t[0]),s={...i,query:{...r.query,f:"json",sr:(0,p.YX)(n),geometries:JSON.stringify((0,f.X)(t))}},{data:a}=await(0,m.A)(r.path+"/simplify",s);return(0,f.V)(a.geometries,o,n)}(n,r,i),a=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?a.push(t):a.push(u?(0,d.Gh)(s.shift()):s.shift())}return a}const B=[];for(let e=0;e<N.length;e++){const t=N[e];if("cut"!==t)B.push(t);else{const e=j.shift();B.push(!0===u?(0,d.Gh)(e):e)}}return B}function S(e,t,i){const r=(0,p.Vp)(i);if(null==r)return e;const[n,o]=r.valid,s=2*o;let a=0,l=0;t>o?a=Math.ceil(Math.abs(t-o)/s):t<n&&(a=-Math.ceil(Math.abs(t-n)/s)),e>o?l=Math.ceil(Math.abs(e-o)/s):e<n&&(l=-Math.ceil(Math.abs(e-n)/s));let u=e+(a-l)*s;const c=u-t;return c>o?u-=s:c<n&&(u+=s),u}function T(e){const t=(0,p.Vp)(e);if(null==t)return null;const[i,r]=t.valid;return new n.hr(i,r)}const D=T(u.A.WGS84);T(u.A.WebMercator)},18031:(e,t,i)=>{i.d(t,{A:()=>N});var r,n=i(31635),o=i(68197),s=i(52106),a=i(66552),l=i(25482),u=i(4718),c=i(10107),p=(i(44208),i(53966),i(93223)),d=i(36005),m=i(64108),g=i(86738),y=i(17136),h=i(14636),f=i(86162),M=i(63988),w=i(88542),I=i(23461),A=i(48940),b=i(29266),C=i(58592),v=i(31593),S=i(53930),T=i(37531);const D=new Set(["esriMetersPerSecond","esriKilometersPerHour","esriKnots","esriFeetPerSecond","esriMilesPerHour"]),x=new a.J({beaufort_ft:"beaufort-ft",beaufort_km:"beaufort-km",beaufort_kn:"beaufort-kn",beaufort_m:"beaufort-m",beaufort_mi:"beaufort-mi",classified_arrow:"classified-arrow",ocean_current_kn:"ocean-current-kn",ocean_current_m:"ocean-current-m",simple_scalar:"simple-scalar",single_arrow:"single-arrow",wind_speed:"wind-barb"}),j=new a.J({flow_from:"flow-from",flow_to:"flow-to"});let N=r=class extends((0,M.h)(l.o)){constructor(e){super(e),this.attributeField="Magnitude",this.flowRepresentation="flow-from",this.rotationType="arithmetic",this.style="single-arrow",this.symbolTileSize=50,this.type="vector-field"}readInputUnit(e,t){return D.has(e)?h.MD.fromJSON(e):null}readOutputUnit(e,t){return D.has(e)?h.MD.fromJSON(e):null}get styleRenderer(){const e=this.style,t=this.attributeField,i=this._createStyleRenderer(e);return i.field=t,i}set visualVariables(e){super.visualVariables=e}get sizeVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"size"===t.type&&e.push(t);if(0===e.length){const t=new A.A({field:"Magnitude",minSize:.2*this.symbolTileSize,maxSize:.8*this.symbolTileSize});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}get rotationVariables(){const e=[];if(this.visualVariables)for(const t of this.visualVariables)"rotation"===t.type&&e.push(t);if(0===e.length){const t=new I.A({field:"Direction",rotationType:this.rotationType});this.visualVariables?this.visualVariables.push(t):this._set("visualVariables",[t]),e.push(t)}return e}clone(){return new r({attributeField:this.attributeField,flowRepresentation:this.flowRepresentation,rotationType:this.rotationType,symbolTileSize:this.symbolTileSize,style:this.style,visualVariables:(0,u.o8)(this.visualVariables),inputUnit:this.inputUnit,outputUnit:this.outputUnit})}async getGraphicsFromPixelData(e,t=!1,i=[]){const r=new Array,n=(0,h.KL)(this.inputUnit,this.outputUnit),o=this.rotationVariables[0]?.rotationType||this.rotationType,a=t?(0,h.FI)(e.pixelBlock,"vector-uv",o,n):(0,h.Rn)(e.pixelBlock,"vector-magdir",n);if(null==a)return r;const l=e.extent,u=null!=a.mask&&a.mask.length>0;let c=0;const p=(l.xmax-l.xmin)/a.width,d=(l.ymax-l.ymin)/a.height;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++,c++){let n=new g.A({x:l.xmin+t*p+p/2,y:l.ymax-e*d-d/2,spatialReference:l.spatialReference});n=(await(0,y.el)(n))[0];const o=i.some(e=>e.intersects(n));if((!u||a.mask[c])&&!o){const e={Magnitude:a.pixels[0][c],Direction:a.pixels[1][c]},t=new s.A({geometry:new g.A({x:n.x,y:n.y,spatialReference:l.spatialReference}),attributes:e});t.symbol=this._getVisualVariablesAppliedSymbol(t),r.push(t)}}return r}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getClassBreakInfos(){return this.styleRenderer?.classBreakInfos}getDefaultSymbol(){return this.styleRenderer?.defaultSymbol}_getDefaultSymbol(e){return new S.A({path:"M14,32 14,18 9,23 16,3 22,23 17,18 17,32 z",outline:new v.A({width:0}),size:20,color:e||new o.A([0,92,230])})}_getVisualVariablesAppliedSymbol(e){if(!e)return;const t=this.styleRenderer?.getSymbol(e)?.clone(),i=this.sizeVariables,r=this.rotationVariables;if(i&&i.length&&this.sizeVariables.forEach(i=>(0,T.UQ)(t,(0,b.Yz)([i],e))),r&&r.length){const i="flow-to"===this.flowRepresentation==("ocean-current-kn"===this.style||"ocean-current-m"===this.style)?0:180;e.attributes.Direction=e.attributes.Direction+i,this.rotationVariables.forEach(i=>(0,T.GG)(t,(0,b.UT)(i,e),i.axis))}return t}_createStyleRenderer(e){let t={defaultSymbol:this._getDefaultSymbol(),classBreakInfos:[]};switch(e){case"single-arrow":t=this._createSingleArrowRenderer();break;case"beaufort-kn":t=this._createBeaufortKnotsRenderer();break;case"beaufort-m":t=this._createBeaufortMeterRenderer();break;case"beaufort-ft":t=this._createBeaufortFeetRenderer();break;case"beaufort-mi":t=this._createBeaufortMilesRenderer();break;case"beaufort-km":t=this._createBeaufortKilometersRenderer();break;case"ocean-current-m":t=this._createCurrentMeterRenderer();break;case"ocean-current-kn":t=this._createCurrentKnotsRenderer();break;case"simple-scalar":t=this._createSimpleScalarRenderer();break;case"wind-barb":t=this._createWindBarbsRenderer();break;case"classified-arrow":t=this._createClassifiedArrowRenderer()}return new f.A(t)}_createSingleArrowRenderer(){return{defaultSymbol:this._getDefaultSymbol()}}_createBeaufortKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new o.A([214,47,39])),classBreakInfos:this._getClassBreaks([0,1,3,6,10,16,21,27,33,40,47,55,63],[[40,146,199],[89,162,186],[129,179,171],[160,194,155],[191,212,138],[218,230,119],[250,250,100],[252,213,83],[252,179,102],[250,141,52],[247,110,42],[240,71,29]])}}_createBeaufortMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new o.A([214,47,39])),classBreakInfos:this._getClassBreaks([0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7],[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortFeetRenderer(){const e=this._getDefaultSymbol(new o.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map(e=>3.28084*e),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortMilesRenderer(){const e=this._getDefaultSymbol(new o.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map(e=>2.23694*e),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createBeaufortKilometersRenderer(){const e=this._getDefaultSymbol(new o.A([214,47,39]));let t=[0,.2,1.8,3.3,5.4,8.5,11,14.1,17.2,20.8,24.4,28.6,32.7];return t=t.map(e=>3.6*e),{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[69,117,181],[101,137,184],[132,158,186],[162,180,189],[192,204,190],[222,227,191],[255,255,191],[255,220,161],[250,185,132],[245,152,105],[237,117,81],[232,21,21]])}}_createCurrentMeterRenderer(){return{defaultSymbol:this._getDefaultSymbol(new o.A([177,177,177])),classBreakInfos:this._getClassBreaks([0,.5,1,1.5,2],[[78,26,153],[179,27,26],[202,128,26],[177,177,177]])}}_createCurrentKnotsRenderer(){return{defaultSymbol:this._getDefaultSymbol(new o.A([177,177,177])),classBreakInfos:this._getClassBreaks([0,.25,.5,1,1.5,2,2.5,3,3.5,4],[[0,0,0],[0,37,100],[78,26,153],[151,0,100],[179,27,26],[177,78,26],[202,128,26],[177,179,52],[177,177,177]])}}_createClassifiedArrowRenderer(){const e=this._getDefaultSymbol(new o.A([56,168,0]));let t=[0,1e-6,3.5,7,10.5,14];if(this.sizeVariables?.length){const e=this.sizeVariables[0].minDataValue,i=this.sizeVariables[0].maxDataValue;if(e&&i){const r=(i-e)/5;t=Array.from(Array(6).keys()).map(t=>e+r*t)}}return{defaultSymbol:e,classBreakInfos:this._getClassBreaks(t,[[56,168,0],[139,309,0],[255,255,0],[255,128,0],[255,0,0]])}}_createSimpleScalarRenderer(){return{defaultSymbol:C.A.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAQAAABLVLlLAAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAC3ElEQVRIx9XXvW4cVRQH8N982btpsIREJECyiCXsxX4DKh6AliqGKCBBE2SlwlHgAbBD/AKmyEYUeQ1KahPZSZQvBCkQLTHZ7KGY8Xodz4w3a1NwbzVzz/znfJ//zbStVC5q3icKak9GAs2QIdDx3PtW/S011NW3p+M5Eomh11ipTIKe6+4LQzHaQ+G+63pIZNJJQXMpljwTwj1brpgx5w1zZlyx5Z4QnllEIm2xeeSUHBf0hV0bejo1Uh09G3aFvgXk7cCJFBc9EdaRVuHJJaOdKyTV2TVhYLMduNR0Q9gxL5GaaTDw8GzejrDRBpxWoGsySRW0dttKuattwNkIlFw2YXgzOdYq4Ox49PlM+JrKd5OusjTWhBuVxUfMX/KXXZ3WEmkuqa67wspR4BTbwtKr/5u4fFgStse/T7EifFPnnYl9zPq4vmUOPrRndgoHjDti1gOPqlyXoifcRNGQzUd31lDyfHmob1Gp35vSr+P6vilcQ5Egtyd8YF/ySg9NhPM+9M/IOaHwp5+PSZayXTvCogEUwlatC3J8LLwYtcWB8EuDXQVuCkV5/B4eNHb7wGBs87LBDS+xjdVSn09wq1G8dFM+9tSUhIGneLvUdniKxKpTYljCpu3j7rVWlHj/P23v4NPGUEyeCQnexe9lJjzEQqMjJs+EzNAX6B98dBZVRmroJx95x/A/6gln18EyfCUsl+qdXb/tjvfbw+mwforpUOBz4XLVoBwAn3aWnfeH246NyBXhrq7TTN5lNSP9RkU+puUJm3W2Tsdq0nZWM07srk7MwQrZSRysjjGWBLRJNsNbfj2JMR4AbxpU1XLAb9Mxfpsq5EjMuuiR8L0JiHOOBX3hiUvOmavN0nMueSzcceFk0BK4pMqLo7vDD1Z0qrtDx7Itt4Xwm9UqbMmk8S0Dtuzb2pvOU99Z1nLTOfleNmvfZfP2pYZmPfajwosKdDBNpacNpVGGsWX9CyDI8Xq/Sj6QAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE0LTExLTEwVDAzOjE3OjU4LTA1OjAwF+tHyQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0xMS0xMFQwMzoxNzo1OC0wNTowMGa2/3UAAAAASUVORK5CYII=",height:20,width:20,type:"esriPMS",angle:0})}}_createWindBarbsRenderer(){const e=Array.from(Array(31).keys()).map(e=>5*e),t=[{range:"0-5",path:"M20 20 M5 20 A15 15 0 1 0 35 20 A15 15 0 1 0 5 20 M20 20 M10 20 A10 10 0 1 0 30 20 A10 10 0 1 0 10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTIwIDIwIE01IDIwIEExNSAxNSAwIDEgMCAzNSAyMCBBMTUgMTUgMCAxIDAgNSAyMCBNMjAgMjAgTTEwIDIwIEExMCAxMCAwIDEgMCAzMCAyMCBBMTAgMTAgMCAxIDAgMTAgMjAiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"5-10",path:"M25 0 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"10-15",path:"M25 0 L25 40 L10 45 L25 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNyA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"15-20",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L17.5 37.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjEyIDAgMTUgNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxNy41IDM3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"20-25",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"25-30",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjkgMCAyNiA0NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMjUgMCBMMjUgNDAgTDEwIDQ1IEwyNSA0MCBNMjUgMzUgTDEwIDQwIEwyNSAzNSBNMjUgMzAgTDE3LjUgMzIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"30-35",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"35-40",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"40-45",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"45-50",path:"M25 0 L25 40 L10 45 L25 40 M25 35 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0NiI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0NSBMMjUgNDAgTTI1IDM1IEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"50-55",path:"M25 0 L25 40 L10 40 L25 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"55-60",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L17.5 32.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMHB4IiBoZWlnaHQ9IjIwcHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxNy41IDMyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"60-65",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"65-70",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxNy41IDI3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"70-75",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"75-80",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxNy41IDIyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"80-85",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"85-90",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxNy41IDE3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"90-95",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"95-100",path:"M25 0 L25 40 L10 40 L25 35 M25 30 L10 35 L25 30 M25 25 L10 30 L25 25 M25 20 L10 25 L25 20 M25 15 L10 20 L25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTTI1IDMwIEwxMCAzNSBMMjUgMzAgTTI1IDI1IEwxMCAzMCBMMjUgMjUgTTI1IDIwIEwxMCAyNSBMMjUgMjAgTTI1IDE1IEwxMCAyMCBMMjUgMTUgTTI1IDEwIEwxNy41IDEyLjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="},{range:"100-105",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMnB4IiBoZWlnaHQ9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"105-110",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L17.5 27.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDE3LjUgMjcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"110-115",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"115-120",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L17.5 22.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDE3LjUgMjIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"120-125",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"125-130",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L17.5 17.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDE3LjUgMTcuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"130-135",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"135-140",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDE3LjUgMTIuNSIgc3R5bGU9InN0cm9rZTpyZ2IoMCwwLDApO3N0cm9rZS13aWR0aDoxLjUiLz4KIDwvc3ZnPg=="},{range:"140-145",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IiBzdHlsZT0ic3Ryb2tlOnJnYigwLDAsMCk7c3Ryb2tlLXdpZHRoOjEuNSIvPgogPC9zdmc+"},{range:"145-150",path:"M25 0 L25 40 L10 40 L25 35 L10 35 L25 30 M25 25 L10 30 M25 25 M25 20 L10 25 M25 20 M25 15 L10 20 M25 15 M25 10 L17.5 12.5",imageData:"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMzJweCIgd2lkdGg9IjMycHgiIHZpZXdCb3g9IjkgMCAyNiA0MSI+CiAgPHBhdGggZD0iTTI1IDAgTDI1IDQwIEwxMCA0MCBMMjUgMzUgTDEwIDM1IEwyNSAzMCBNMjUgMjUgTDEwIDMwIE0yNSAyNSBNMjUgMjAgTDEwIDI1IE0yNSAyMCBNMjUgMTUgTDEwIDIwIE0yNSAxNSBNMjUgMTAgTDEwIDE1IE0yNSAxMCBNMjUgNSBMMTcuNSA3LjUiIHN0eWxlPSJzdHJva2U6cmdiKDAsMCwwKTtzdHJva2Utd2lkdGg6MS41Ii8+CiA8L3N2Zz4="}],i=C.A.fromJSON({imageData:"iVBORw0KGgoAAAANSUhEUgAAACgAAAApCAQAAADtq6NDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAEY0lEQVRIx5XXWWxWRRQH8N+d+31tUdGAVjGglYJABFEBY91jfDAg7piYaFTccA++uMQEFRcSXlATtxiXqMQt4G4iisYl0ai4sIQYtVFZ1KIFKdTS0l4f7vRCS5fPebozc+bM/2z/Mzcx0AgSiUxXnKfIdMn875FIhX53U2n/B/s+kKM4UINTjTBZImixxnrv+9a2iL6zEoUBXcoudrWj/OtHm3wt02lfU9Qao9OnHvIhgmww84MEl1qnxfNmGrqHxAizLdPpC6chGcAxKGGcL+30gOERf1BSpUqVslQSV8d5ReZFe8VQ9avufJn31cWwlJV7iafKStGOE/1qvfH9qUxxu8ydUdmuSKbGO8YUdT2inKLG69pM70tliktl5qIkCAJGmusDG7Vqsc0WjZa4UBlBiA5YZIcjYzB7qDtH5kaUJFLs7RGZTZ42W4PRRmtwvbdt1+wGiaS4drEtDttdZYIDNVuAclR3vA3+dI3qHqmVSy7U6Tv1MScCPvPR7nIpFlsdCy3FdTLPGhK92e2CUITjMJ9ocwKxnsZqc3O3JwMma3d6UVLnyVxB4aXemZqvPqLdpJhW3KVVbY4yYImPo6M5Urv50fj+0z/FG9YaEiENs8UtMfXUaTeTePNHlhXfA1UU+2lyD1Il3Gtt9+adfpNG7dNlpg2U/T3KYLZ2dUWFdTgp3/rQ4sK973qnInV5TIf40x3dhvrJPBiqyWUo4wAtLqhQYS71qK+QKOFRywmGK/kpikzV6WMKhh58vGWs4TIJNjiEYLIuP8Tt4/zmLyqk+AyrJSbF+Qq1DgqRUPMxyl+9q3IQhX/rMCJ6tEunriDs1oSyQZKlr9AkhT2ZIARbJfaJS1vtVbHB+Rgi0RK/y1q1BWsEEyLoz40xtGKcARPVWB1BTPO7f4LNtpkUl1aoMbViLyZo0GRjPD3BxnxjqXeLYlvhqYrzMMG3HoyJXa3JjfnGlbYYFlP7Jh3qKsKY4hQ7TY0nG+xwRL61n63mxHtqNHosigyMLmClNwvuecFnOZB88nNBDzNkzhxEZaKMBVoKapggMzvHHXBEpNSSFAvtcFRsVn0bW8LlMmcXs+c0Kne3gRR32+zg4uXwjC6zit6Wt4a8LXVfcp/MtQXHn2ynGbuCmb8GvvFeJLEE82ReU9/n6+dkq2x3buG9Wn94smcgAw631RPR7BTH+kbmHReZoEpOdEe7zWqZl40s0JWs9Hmv7hjBHqPDwsjGKVJnWWqjbdZp1KhJi0aPmxYZsIRhlttgeF+Jlke41QcOQKoqilSb6HJzSvNG3G/UoWnxwsmt+sVaYwd63dRbqdnMyCPVeyRPvpYgdavM22oGKoMUVRbJfOWMwidJ8Zzb1UvmWK/VVUXzHaTjjrVYh1897HT7xxYEVUaa5SWb/WO+YUWa9SrwvigzM8YlzlYv2GSdVCYxxlBtVnnFq5olwp5/BEk/OLsf5LUmG2+inRJdVvjZ97ZH9/zP34ug1O91pf4p+D+JYBpvrKxfbwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0xMS0xMFQwMzoxMjowOS0wNTowMB9ViV0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTBUMDM6MTI6MDktMDU6MDBuCDHhAAAAAElFTkSuQmCC",height:20,width:20,type:"esriPMS",angle:0}),r=e.map((r,n)=>{let o;if(n!==e.length-1)if(0===n)o={minValue:r,maxValue:e[n+1],symbol:i};else{const i=C.A.fromJSON({type:"esriPMS",imageData:t[n].imageData,contentType:"image/svg+xml",height:32,width:32,angle:0});o={minValue:r,maxValue:e[n+1],symbol:i}}return new w.A(o)});return{defaultSymbol:i,classBreakInfos:r}}_getClassBreaks(e,t){return t.map((t,i)=>new w.A({minValue:e[i],maxValue:e[i+1],symbol:this._getDefaultSymbol(new o.A(t))}))}};(0,n.Cg)([(0,c.MZ)({type:["Magnitude"],json:{write:!0}})],N.prototype,"attributeField",void 0),(0,n.Cg)([(0,c.MZ)({type:j.apiValues,json:{type:j.jsonValues,read:{reader:j.read},write:{writer:j.write}}})],N.prototype,"flowRepresentation",void 0),(0,n.Cg)([(0,c.MZ)({type:["geographic","arithmetic"],json:{write:!0}})],N.prototype,"rotationType",void 0),(0,n.Cg)([(0,c.MZ)({type:x.apiValues,json:{type:x.jsonValues,read:{reader:x.read},write:{writer:x.write}}})],N.prototype,"style",void 0),(0,n.Cg)([(0,c.MZ)({json:{write:!0}})],N.prototype,"symbolTileSize",void 0),(0,n.Cg)([(0,c.MZ)({type:h.MD.apiValues,json:{type:h.MD.jsonValues,write:{writer:h.MD.write}}})],N.prototype,"inputUnit",void 0),(0,n.Cg)([(0,d.w)("inputUnit")],N.prototype,"readInputUnit",null),(0,n.Cg)([(0,c.MZ)({type:h.MD.apiValues,json:{type:h.MD.jsonValues,read:{reader:h.MD.read},write:{writer:h.MD.write}}})],N.prototype,"outputUnit",void 0),(0,n.Cg)([(0,d.w)("outputUnit")],N.prototype,"readOutputUnit",null),(0,n.Cg)([(0,p.e)({vectorField:"vector-field"})],N.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)({type:f.A})],N.prototype,"styleRenderer",null),(0,n.Cg)([(0,c.MZ)({type:A.A})],N.prototype,"sizeVariables",null),(0,n.Cg)([(0,c.MZ)({type:I.A})],N.prototype,"rotationVariables",null),N=r=(0,n.Cg)([(0,m.$)("esri.renderers.VectorFieldRenderer")],N)},22048:(e,t,i)=>{i.d(t,{A:()=>h});var r,n=i(31635),o=i(25482),s=i(4718),a=i(10107),l=(i(44208),i(53966),i(64108)),u=i(43937),c=i(86738),p=i(65864),d=i(50498),m=i(85675),g=i(22796),y=i(79677);let h=r=class extends o.o{constructor(e){super(e),this.geometry=null,this.mosaicRule=null,this.rasterFunction=null,this.pixelSize=null,this.raster=void 0,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,p.$B)(e),t[i]=e.toJSON())}clone(){return new r((0,s.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};(0,n.Cg)([(0,a.MZ)({types:d.yR,json:{read:p.rS}})],h.prototype,"geometry",void 0),(0,n.Cg)([(0,u.K)("geometry")],h.prototype,"writeGeometry",null),(0,n.Cg)([(0,a.MZ)({type:m.A,json:{write:!0}})],h.prototype,"mosaicRule",void 0),(0,n.Cg)([(0,a.MZ)({type:g.A,json:{write:!0,name:"renderingRule"}})],h.prototype,"rasterFunction",void 0),(0,n.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],h.prototype,"pixelSize",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"raster",void 0),(0,n.Cg)([(0,a.MZ)({type:y.A,json:{read:{source:"time"},write:{target:"time"}}})],h.prototype,"timeExtent",void 0),h=r=(0,n.Cg)([(0,l.$)("esri.rest.support.ImageHistogramParameters")],h)},22671:(e,t,i)=>{i.d(t,{A:()=>M});var r,n=i(31635),o=i(52106),s=i(66552),a=i(25482),l=i(4718),u=i(10107),c=(i(44208),i(53966),i(36005)),p=i(64108),d=i(43937),m=i(16930),g=i(65864),y=i(50498),h=i(20437);const f=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=r=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,i,r){if(e)return void f.write(e,t,i,r);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void f.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,r=(0,g.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=m.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const r=t.features[i];if(r.geometry){const t=e?.[i];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,i],translate:[r,n]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((n-e)/i));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[r,n],scale:[o,s]}=i;let a=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;a=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const u=this._getHydrationFunction(e,e=>e*o+r,e=>n-e*s,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const r=m.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const o=e[t],s=i.fromJSON(o),a=o.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=r);const l=o.aggregateGeometries,u=s.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],i=l[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}n.push(s)}return n}_quantizePoints(e,t,i){let r,n;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=i(a[1]);e===r&&s===n||(o.push([e-r,s-n]),r=e,n=s)}else r=t(a[0]),n=i(a[1]),o.push([r,n])}return o.length>0?o:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,g.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,o=r.length;e<o;e++){const o=r[e],s=this._quantizePoints(o,t,i);s&&n.push(s)}return n.length>0?((0,g.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,n){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,g.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,r=o.length;e<r;e++){const r=o[e];for(let e=0,n=r.length;e<n;e++){const n=r[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=i(a)}}if(r&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2]),i[3]=n(i[3])}}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,r=o.length;e<r;e++){const r=o[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=i(a)}if(r&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2]),t[3]=n(t[3])}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],M.prototype,"features",void 0),(0,n.Cg)([(0,c.w)("features")],M.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[h.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],M.prototype,"geometryType",void 0),(0,n.Cg)([(0,d.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,c.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:m.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,n.Cg)([(0,d.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=r=(0,n.Cg)([(0,p.$)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},22796:(e,t,i)=>{i.d(t,{A:()=>L});var r=i(31635),n=i(25482),o=i(4718),s=i(10107),a=(i(44208),i(53966),i(93223)),l=i(36005),u=i(64108),c=i(43937),p=i(66552),d=i(56507),m=(i(87811),i(13868));let g=class extends n.o{constructor(){super(...arguments),this.pixelType="unknown"}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],g.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],g.prototype,"description",void 0),(0,r.Cg)([(0,s.MZ)({type:d.jz,json:{type:d.jz,write:!0,name:"_object_id"}})],g.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{type:m.e8.jsonValues,read:m.e8.read,write:{writer:m.e8.write,isRequired:!0}}})],g.prototype,"pixelType",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],g.prototype,"type",void 0),g=(0,r.Cg)([(0,u.$)("esri.layers.support.RasterFunctionInfo")],g);const y=g;let h=class extends n.o{constructor(){super(...arguments),this.isDataset=!1,this.isPublic=!1,this.type="RasterFunctionVariable"}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{type:d.jz,write:!0,name:"_object_id"}})],h.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"isDataset",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"isPublic",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],h.prototype,"value",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"type",void 0),h=(0,r.Cg)([(0,u.$)("esri.layers.support.RasterFunctionVariable")],h);const f={key:"type",base:null,typeMap:{RasterFunctionVariable:h}};let M=class extends n.o{};(0,r.Cg)([(0,s.MZ)({types:f,json:{types:f,name:"MatchVariable"}})],M.prototype,"matchVariable",void 0),(0,r.Cg)([(0,s.MZ)({types:f,json:{types:f,name:"UnionDimension"}})],M.prototype,"unionDimension",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{type:d.jz,write:!0,name:"_object_id"}})],M.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],M.prototype,"type",void 0),M=(0,r.Cg)([(0,u.$)("esri.layers.support.RasterFunctionProperties")],M);const w=M,I=new p.J({0:"mosaic",1:"item",2:"item-group"},{useNumericKeys:!0});let A=class extends n.o{constructor(){super(...arguments),this.description="",this.functionType="mosaic",this.type="RasterFunctionTemplate"}};var b;(0,r.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],A.prototype,"aliases",void 0),(0,r.Cg)([(0,s.MZ)({type:Object,json:{write:{isRequired:!0}}})],A.prototype,"arguments",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],A.prototype,"description",void 0),(0,r.Cg)([(0,s.MZ)({type:y,json:{write:{isRequired:!0},name:"function"}})],A.prototype,"functionInfo",void 0),(0,r.Cg)([(0,s.MZ)({type:I.apiValues,json:{type:[0,1,2],read:I.read,write:{writer:I.write,isRequired:!0}}})],A.prototype,"functionType",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"group",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"help",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{type:d.jz,write:!0,name:"_object_id"}})],A.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],A.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0,name:"definition"}})],A.prototype,"queryDefinition",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"tag",void 0),(0,r.Cg)([(0,s.MZ)({type:w,json:{write:!0}})],A.prototype,"properties",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"thumbnail",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"thumbnailEx",void 0),(0,r.Cg)([(0,s.MZ)({json:{type:["RasterFunctionTemplate"],write:!0}})],A.prototype,"type",void 0),A=(0,r.Cg)([(0,u.$)("esri.layers.support.RasterFunctionTemplate")],A);const C=new Set(["raster","raster2","dem","fillraster"]),v=new Set(["rasters"]),S=e=>e?.rasterFunction?L.fromJSON(e):e,T=e=>e&&e instanceof L?e.toJSON():e,D=e=>e?.functionName&&!e.declaredClass,x=e=>D(e)?new L(e):e,j=e=>e?A.fromJSON({type:"RasterFunctionTemplate",...e}):void 0,N={types:{key:"type",base:null,typeMap:{RasterFunctionTemplate:A}},json:{write:!0,name:"rasterFunctionDefinition",read:j}};let L=b=class extends n.o{constructor(e){super(e),this.functionName=null,this.outputPixelType="unknown",this.variableName=null,this.functionDefinition=null}set functionArguments(e){if(e){const t=Object.keys(e);if(t.some(t=>C.has(t.toLowerCase())&&D(e[t]))||t.some(t=>v.has(t.toLowerCase())&&Array.isArray(e[t])&&e[t].some(e=>D(e)))){e=(0,o.o8)(e);for(const i of t)C.has(i.toLowerCase())?e[i]=x(e[i]):v.has(i.toLowerCase())&&Array.isArray(e[i])&&(e[i]=e[i].map(e=>x(e)))}}this._set("functionArguments",e)}readFunctionArguments(e){return(e=>{if(null==e)return null;e=(0,o.o8)(e);const t={};for(const i of Object.keys(e))C.has(i.toLowerCase())?t[i]=S(e[i]):v.has(i.toLowerCase())&&Array.isArray(e[i])?t[i]=e[i].map(S):t[i]=e[i];return t})(e)}writeFunctionArguments(e,t,i){const r={};for(const t of Object.keys(e))C.has(t.toLowerCase())?r[t]=T(e[t]):v.has(t.toLowerCase())&&Array.isArray(e[t])?r[t]=e[t].map(T):r[t]=T(e[t]);t[i]=r}readFunctionName(e,t){const i=t.rasterFunctionInfos;return t.name||(i?.length&&"None"!==i[0].name?i[0].name:t.rasterFunction||t.rasterFunctionDefinition?.name)}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(e){this.functionDefinition=j(e)}get hasClipFunction(){return this.rasterFunctionDefinition?JSON.stringify(this.rasterFunctionDefinition).includes('"type":"ClipFunction"'):JSON.stringify(this).includes('"rasterFunction":"Clip"')}clone(){return new b({functionName:this.functionName,functionArguments:(0,o.o8)(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:(0,o.o8)(this.rasterFunctionDefinition)})}};(0,r.Cg)([(0,s.MZ)({json:{type:Object,name:"rasterFunctionArguments"}})],L.prototype,"functionArguments",null),(0,r.Cg)([(0,l.w)("functionArguments")],L.prototype,"readFunctionArguments",null),(0,r.Cg)([(0,c.K)("functionArguments")],L.prototype,"writeFunctionArguments",null),(0,r.Cg)([(0,s.MZ)({json:{type:String,write:{target:"rasterFunction"}}})],L.prototype,"functionName",void 0),(0,r.Cg)([(0,l.w)("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],L.prototype,"readFunctionName",null),(0,r.Cg)([(0,a.e)({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1,default:"unknown"})],L.prototype,"outputPixelType",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{read:!0,write:!0}})],L.prototype,"variableName",void 0),(0,r.Cg)([(0,s.MZ)()],L.prototype,"rasterFunctionDefinition",null),(0,r.Cg)([(0,s.MZ)(N)],L.prototype,"functionDefinition",void 0),(0,r.Cg)([(0,s.MZ)()],L.prototype,"hasClipFunction",null),L=b=(0,r.Cg)([(0,u.$)("esri.layers.support.RasterFunction")],L)},30291:(e,t,i)=>{i.d(t,{tn:()=>u});var r=i(37838),n=i(30524),o=i(41227),s=i(89893),a=i(66159),l=i(68780);function u({displayField:e,editFieldsInfo:t,fields:i,objectIdField:l,title:u},m){if(!i)return null;const y=function(e,t){const i=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:i}){const r=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===r&&(e=e.slice()),!0!==i&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||g,sortDisabled:t?.sortDisabled}).map(t=>new o.A({fieldName:t.name,isEditable:(0,n.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:i})}))}({editFieldsInfo:t,fields:i,objectIdField:l},m);if(!y.length)return null;const h=function(e){const t=(0,n.mB)(e),{titleBase:i}=e;return t?`${i}: {${t.trim()}}`:i??""}({titleBase:u,fields:i,displayField:e}),f=[new a.A,new s.A];return new r.A({title:h,content:f,fieldInfos:y})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:m(e)?-1:m(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.A({digitSeparator:!0,places:0});case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,n.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function m(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const g=["geometry","blob","raster","guid","xml"]},34606:(e,t,i)=>{i.d(t,{A:()=>f});var r,n=i(31635),o=i(25482),s=i(4718),a=i(10107),l=(i(44208),i(53966),i(64108)),u=i(43937),c=i(48526),p=i(86738),d=i(65864),m=i(50498),g=i(85675),y=i(13868),h=i(79677);let f=r=class extends o.o{constructor(){super(...arguments),this.geometry=null,this.interpolation="nearest",this.mosaicRule=null,this.outFields=null,this.pixelSize=null,this.raster=void 0,this.returnFirstValueOnly=!0,this.sampleDistance=null,this.sampleCount=null,this.sliceId=null,this.timeExtent=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,d.$B)(e),t[i]=e.toJSON())}set locations(e){if(e?.length){const t=new c.A({spatialReference:e[0].spatialReference,points:e.map(({x:e,y:t})=>[e,t])});this._set("locations",e),this.geometry=t}}clone(){return new r((0,s.o8)({geometry:this.geometry,locations:this.locations,interpolation:this.interpolation,mosaicRule:this.mosaicRule,outFields:this.outFields,raster:this.raster,returnFirstValueOnly:this.returnFirstValueOnly,sampleDistance:this.sampleDistance,sampleCount:this.sampleCount,sliceId:this.sliceId,pixelSize:this.pixelSize,timeExtent:this.timeExtent}))}};(0,n.Cg)([(0,a.MZ)({types:m.yR,json:{read:d.rS}})],f.prototype,"geometry",void 0),(0,n.Cg)([(0,u.K)("geometry")],f.prototype,"writeGeometry",null),(0,n.Cg)([(0,a.MZ)({type:[p.A]})],f.prototype,"locations",null),(0,n.Cg)([(0,a.MZ)({type:String,json:{type:y.SZ.jsonValues,read:y.SZ.read,write:y.SZ.write}})],f.prototype,"interpolation",void 0),(0,n.Cg)([(0,a.MZ)({type:g.A,json:{write:!0}})],f.prototype,"mosaicRule",void 0),(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],f.prototype,"outFields",void 0),(0,n.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],f.prototype,"pixelSize",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"raster",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"returnFirstValueOnly",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"sampleDistance",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"sampleCount",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"sliceId",void 0),(0,n.Cg)([(0,a.MZ)({type:h.A,json:{read:{source:"time"},write:{target:"time"}}})],f.prototype,"timeExtent",void 0),f=r=(0,n.Cg)([(0,l.$)("esri.rest.support.ImageSampleParameters")],f)},36280:(e,t,i)=>{i.d(t,{A:()=>g});var r,n=i(31635),o=i(25482),s=i(4718),a=i(10107),l=(i(44208),i(53966),i(93223)),u=i(36005),c=i(64108),p=i(43937),d=i(70274),m=i(95349);let g=r=class extends o.o{constructor(e){super(e),this.colorRamp=null,this.computeGamma=!1,this.dynamicRangeAdjustment=!1,this.gamma=[],this.maxPercent=null,this.minPercent=null,this.numberOfStandardDeviations=null,this.outputMax=null,this.outputMin=null,this.sigmoidStrengthLevel=null,this.histograms=null,this.customStatistics=null,this.useGamma=!1,this.stretchType="none",this.type="raster-stretch"}readColorRamp(e){if(e)return(0,m.r)(e)}readCustomStatistics(e){return e?.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]}))}writeCustomStatistics(e,t,i){e?.length&&(t[i]=e.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]))}readStretchType(e,t){let i=t.stretchType;return"number"==typeof i&&(i=d.x[i]),d.u.read(i)}clone(){return new r({stretchType:this.stretchType,outputMin:this.outputMin,outputMax:this.outputMax,useGamma:this.useGamma,computeGamma:this.computeGamma,customStatistics:(0,s.o8)(this.customStatistics),gamma:(0,s.o8)(this.gamma),sigmoidStrengthLevel:this.sigmoidStrengthLevel,numberOfStandardDeviations:this.numberOfStandardDeviations,minPercent:this.minPercent,maxPercent:this.maxPercent,colorRamp:(0,s.o8)(this.colorRamp),histograms:(0,s.o8)(this.histograms),dynamicRangeAdjustment:this.dynamicRangeAdjustment})}};(0,n.Cg)([(0,a.MZ)({types:m.g,json:{write:!0}})],g.prototype,"colorRamp",void 0),(0,n.Cg)([(0,u.w)("colorRamp")],g.prototype,"readColorRamp",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"computeGamma",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:{target:"dra"},read:{source:"dra"}}})],g.prototype,"dynamicRangeAdjustment",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"gamma",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"maxPercent",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"minPercent",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"numberOfStandardDeviations",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"max"},write:{target:"max"}}})],g.prototype,"outputMax",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"min"},write:{target:"min"}}})],g.prototype,"outputMin",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"sigmoidStrengthLevel",void 0),(0,n.Cg)([(0,a.MZ)()],g.prototype,"histograms",void 0),(0,n.Cg)([(0,a.MZ)({json:{type:[[Number]],name:"statistics",write:!0}})],g.prototype,"customStatistics",void 0),(0,n.Cg)([(0,u.w)("customStatistics")],g.prototype,"readCustomStatistics",null),(0,n.Cg)([(0,p.K)("customStatistics")],g.prototype,"writeCustomStatistics",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"useGamma",void 0),(0,n.Cg)([(0,a.MZ)({type:d.u.apiValues,json:{type:d.u.jsonValues,write:d.u.write}})],g.prototype,"stretchType",void 0),(0,n.Cg)([(0,u.w)("stretchType",["stretchType"])],g.prototype,"readStretchType",null),(0,n.Cg)([(0,l.e)({rasterStretch:"raster-stretch"})],g.prototype,"type",void 0),g=r=(0,n.Cg)([(0,c.$)("esri.renderers.RasterStretchRenderer")],g)},37531:(e,t,i)=>{i.d(t,{dt:()=>d,GG:()=>f,UQ:()=>h,Sx:()=>c});var r=i(68197),n=i(60999),o=(i(44208),i(51850)),s=(i(76369),i(62046)),a=(i(2741),i(43773),i(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new a.q(1e3),new r.A([128,128,128]);var l=i(28975),u=i(33910);function c(e,t){if(!e)return null;let i=null;return(0,u.wk)(e)?i=function(e){const t=e.symbolLayers;if(!t)return null;let i=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(i="water"===e.type?e.color:e.material?e.material.color:null)}),i?new r.A(i):null}(e):(0,u.$y)(e)&&(i="cim"===e.type?(0,s.Nk)(e):e.color?new r.A(e.color):null),i?p(i,t):null}function p(e,t){if(null==t||null==e)return e;const i=e.toRgba();return i[3]=i[3]*t,new r.A(i)}function d(e,t,i){e&&(t||null!=i)&&(t&&(t=new r.A(t)),(0,u.wk)(e)?function(e,t,i){const n=e.symbolLayers;if(!n)return;const o=(e,n=!1)=>{let o=t??e??null;return null!=i?.override&&(!o&&n&&(o=new r.A([255,255,255])),o&&(o.a=i.override)),p(o,i?.add)};n.forEach(e=>{if("water"===e.type)return void(e.color=p(e.color,i?.add));const t=null!=e.material?e.material.color:null,r=o(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new l.N({color:r}):e.material.color=r,"outline"in e&&e.outline?.color&&null!=i?.add&&(e.outline.color=p(e.outline.color,i.add)),"marker"in e&&null!=e.marker&&(e.marker.color=o(e.marker.color))})}(e,t,i):(0,u.$y)(e)&&function(e,t,i){t=t??e.color,null!=i?.override&&t&&(t.a=i.override),t&&(e.color=p(t,i?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=p(e.outline.color,i?.add))}(e,t,i))}function m(e){for(const t of e)if("number"==typeof t)return t;return null}function g(e,t,i){for(let r=0;r<3;r++){const n=e[r];switch(n){case"symbol-value":{const e=i[r];return null!=e?e/t[r]:1}case"proportional":break;default:if(n&&t[r])return n/t[r]}}return null}function y(e,t,i,r){switch(e){case"proportional":return i*r;case"symbol-value":return null!=t?t:i;default:return e}}async function h(e,t){if(e&&t)return(0,u.wk)(e)?async function(e,t){const r=e.symbolLayers;r&&await(0,n.jJ)(r,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){const i=t[2];"number"==typeof i&&(e.size=i)}(e,t);break;case"icon":case"line":case"text":!function(e,t){const i=m(t);null!=i&&(e.size=i)}(e,t);break;case"path":!function(e,t){const i=g(t,o.Un,[e.width,void 0,e.height]);null!=i&&(e.width=y(t[0],e.width,1,i),e.height=y(t[2],e.height,1,i))}(e,t);break;case"object":await async function(e,t){const{resourceSize:r,symbolSize:n}=await async function(e){const{computeObjectLayerResourceSize:t}=await i.e(5404).then(i.bind(i,95404)),r=await t(e,10),{width:n,height:o,depth:s}=e,a=[n,s,o];let l=1;for(let e=0;e<3;e++){const t=a[e];if(null!=t){l=t/r[e];break}}for(let e=0;e<3;e++)null==a[e]&&(a[e]=r[e]*l);return{resourceSize:r,symbolSize:a}}(e),o=g(t,r,n);null!=o&&(e.width=y(t[0],n[0],r[0],o),e.depth=y(t[1],n[1],r[1],o),e.height=y(t[2],n[2],r[2],o))}(e,t)}}(e,t))}(e,t):void((0,u.$y)(e)&&function(e,t){const i=m(t);if(null!=i)switch(e.type){case"simple-marker":e.size=i;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=i,e.height=i*t):(e.width=i*t,e.height=i);break}case"simple-line":e.width=i;break;case"text":e.font.size=i}}(e,t))}function f(e,t,i){if(e&&null!=t)if((0,u.wk)(e)){const r=e.symbolLayers;r&&r.forEach(e=>{if("object"===e.type)switch(i){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if((0,u.$y)(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":(0,s.KU)(e,t,!0)}}},43577:(e,t,i)=>{i.d(t,{A:()=>g});var r,n=i(31635),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(64108)),l=i(5443),u=i(91075),c=i(39829),p=i(65864),d=i(45617);const m={base:u.A,key:"type",typeMap:{extent:l.A,polygon:c.A}};let g=r=class extends o.o{constructor(e){super(e),this.areaOfInterest=null,this.subsetDefinitions=null}get dimensions(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Map;e.forEach(e=>{if(!e.dimensionName)return;let i,r;if(Array.isArray(e.values[0])){const t=e.values;i=t[0][0],r=t[e.values.length-1][1]}else{const t=e.values;i=t[0],r=t[e.values.length-1]}if(t.has(e.dimensionName)){const n=t.get(e.dimensionName);n[0]=Math.min(i,n[0]),n[1]=Math.max(r,n[1])}else t.set(e.dimensionName,[i,r])});const i=[];for(const e of t)i.push({name:e[0],extent:e[1]});return i}get variables(){const{subsetDefinitions:e}=this;if(null==e||0===e.length)return[];const t=new Set;return e.forEach(e=>{e.variableName&&t.add(e.variableName)}),[...t]}clone(){const e=this.subsetDefinitions?.map(e=>e.clone()),t=this.areaOfInterest?this.areaOfInterest.clone():this.areaOfInterest;return new r({areaOfInterest:t,subsetDefinitions:e})}};(0,n.Cg)([(0,s.MZ)({types:m,json:{read:p.rS,write:!0}})],g.prototype,"areaOfInterest",void 0),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],g.prototype,"dimensions",null),(0,n.Cg)([(0,s.MZ)({readOnly:!0})],g.prototype,"variables",null),(0,n.Cg)([(0,s.MZ)({type:[d.A],json:{write:!0}})],g.prototype,"subsetDefinitions",void 0),g=r=(0,n.Cg)([(0,a.$)("esri.layers.support.MultidimensionalSubset")],g)},45617:(e,t,i)=>{i.d(t,{A:()=>c});var r,n=i(31635),o=i(25482),s=i(4718),a=i(10107),l=i(56507),u=i(64108);let c=r=class extends o.o{constructor(e){super(e),this.variableName=null,this.dimensionName=null,this.values=[],this.isSlice=!1}clone(){return new r({variableName:this.variableName,dimensionName:this.dimensionName,values:(0,s.o8)(this.values),isSlice:this.isSlice})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"variableName",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"dimensionName",void 0),(0,n.Cg)([(0,a.MZ)({type:l.gK.array(l.gK.oneOf([l.gK.native(Number),l.gK.array(l.gK.native(Number))])),json:{write:!0}})],c.prototype,"values",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"isSlice",void 0),c=r=(0,n.Cg)([(0,u.$)("esri.layers.support.DimensionalDefinition")],c)},46981:(e,t,i)=>{i.d(t,{A:()=>d});var r,n=i(31635),o=i(25482),s=i(4718),a=i(10107),l=(i(44208),i(53966),i(93223)),u=i(36005),c=i(64108),p=i(95349);let d=r=class extends o.o{constructor(e){super(e),this.altitude=45,this.azimuth=315,this.colorRamp=null,this.hillshadeType="traditional",this.pixelSizePower=.664,this.pixelSizeFactor=.024,this.scalingType="none",this.type="raster-shaded-relief",this.zFactor=1}readColorRamp(e){return(0,p.r)(e)}clone(){return new r({hillshadeType:this.hillshadeType,altitude:this.altitude,azimuth:this.azimuth,zFactor:this.zFactor,scalingType:this.scalingType,pixelSizeFactor:this.pixelSizeFactor,pixelSizePower:this.pixelSizePower,colorRamp:(0,s.o8)(this.colorRamp)})}};(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],d.prototype,"altitude",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],d.prototype,"azimuth",void 0),(0,n.Cg)([(0,a.MZ)({types:p.g,json:{write:!0}})],d.prototype,"colorRamp",void 0),(0,n.Cg)([(0,u.w)("colorRamp")],d.prototype,"readColorRamp",null),(0,n.Cg)([(0,a.MZ)({type:["traditional","multi-directional"],json:{write:{isRequired:!0}}})],d.prototype,"hillshadeType",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pixelSizePower",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pixelSizeFactor",void 0),(0,n.Cg)([(0,a.MZ)({type:["none","adjusted"],json:{write:{isRequired:!0}}})],d.prototype,"scalingType",void 0),(0,n.Cg)([(0,l.e)({rasterShadedRelief:"raster-shaded-relief"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],d.prototype,"zFactor",void 0),d=r=(0,n.Cg)([(0,c.$)("esri.renderers.RasterShadedReliefRenderer")],d)},49410:(e,t,i)=>{i.d(t,{A:()=>l});var r=i(31635),n=i(25482),o=i(10107),s=(i(44208),i(53966),i(87811),i(64108)),a=i(86738);let l=class extends n.o{constructor(){super(...arguments),this.attributes=null,this.location=null,this.locationId=null,this.rasterId=null,this.resolution=null,this.pixelValue=null}};(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],l.prototype,"attributes",void 0),(0,r.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],l.prototype,"location",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],l.prototype,"locationId",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],l.prototype,"rasterId",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],l.prototype,"resolution",void 0),(0,r.Cg)([(0,o.MZ)({json:{write:!0}})],l.prototype,"pixelValue",void 0),l=(0,r.Cg)([(0,s.$)("esri.rest.support.ImageSample")],l)},51508:(e,t,i)=>{i.d(t,{A:()=>l});var r=i(31635),n=i(25482),o=i(10107),s=(i(44208),i(53966),i(87811),i(64108)),a=i(49410);let l=class extends n.o{constructor(){super(...arguments),this.samples=[]}};(0,r.Cg)([(0,o.MZ)({type:[a.A],json:{write:!0}})],l.prototype,"samples",void 0),l=(0,r.Cg)([(0,s.$)("esri.rest.support.ImageSampleResult")],l)},52106:(e,t,i)=>{i.d(t,{A:()=>b});var r,n=i(31635),o=i(37838),s=i(69540),a=i(51447),l=i(25482),u=i(53966),c=i(36708),p=i(24326),d=i(10107),m=(i(44208),i(87811),i(64108)),g=i(12195),y=i(65864),h=i(50498),f=i(55156),M=i(60950),w=i(54339),I=i(33910);function A(e){if(null==e)return null;const t={};for(const i in e){const r=e[i];r&&(t[i]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let b=class extends((0,s.OU)(l.o)){static{r=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new r({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,M.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,f.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:A(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(n.action=r),"attributes"===e&&(n.attributeName=r),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,n.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const r=(0,y.rS)(e[i]);r&&(t[i]=r)}return 0!==Object.keys(t).length?t:null}}})],b.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,d.MZ)({value:null})],b.prototype,"attributes",null),(0,n.Cg)([(0,d.MZ)({value:null,types:h.yR,json:{read:y.rS}})],b.prototype,"geometry",null),(0,n.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"isAggregate",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],b.prototype,"layer",void 0),(0,n.Cg)([(0,d.MZ)({clonable:"reference"})],b.prototype,"origin",void 0),(0,n.Cg)([(0,d.MZ)({type:o.A,value:null})],b.prototype,"popupTemplate",null),(0,n.Cg)([(0,d.MZ)({clonable:"reference"})],b.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,d.MZ)({value:null,types:I.Es})],b.prototype,"symbol",null),(0,n.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],b.prototype,"_version",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,value:!0})],b.prototype,"visible",null),b=r=(0,n.Cg)([(0,m.$)("esri.Graphic")],b)},54339:(e,t,i)=>{function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>n})},55156:(e,t,i)=>{i.d(t,{I:()=>n,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&r in t?e[r]:void 0;var t}},62046:(e,t,i)=>{i.d(t,{Fe:()=>c,KU:()=>g,Nk:()=>o});var r=i(68197),n=i(93397);function o(e){const t=[];return s((0,n.lW)(e),t),t.length?new r.A((0,n.e6)(t[0])):null}function s(e,t){if(!e)return;let i;i="CIMTextSymbol"===e.type?e.symbol:e;const r="CIMPolygonSymbol"===e.type;if(i?.symbolLayers)for(const e of i.symbolLayers)if(!(e.colorLocked||r&&((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&a(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{s(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":a(t,e.color);break;case"CIMGradientFill":l(t,e);break;case"CIMHatchFill":s(e.lineSymbol,t)}}function a(e,t){for(const i of e)if(i.join(".")===t.join("."))return;e.push(t)}function l(e,t){const i=t.colorRamp?.type;switch(i){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&u(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":u(e,t.colorRamp)}}function u(e,t){t&&(t.fromColor&&a(e,t.fromColor),t.toColor&&a(e,t.toColor))}function c(e,t,i){t instanceof r.A||(t=new r.A(t));const o=(0,n.lW)(e);o&&p(o,t,i)}function p(e,t,i){if(!e)return;let r;r="CIMTextSymbol"===e.type?e.symbol:e;const o="CIMPolygonSymbol"===r?.type;if(r?.symbolLayers)for(const e of r.symbolLayers){if(e.colorLocked)continue;if(o)if(i){const{layersToColor:t}=i;if(((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))&&"fill"===t||(0,n.jn)(e)&&"outline"===t)continue}else if((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))continue;const r=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=r;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{p(e.symbol,t,i)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=r;break;case"CIMGradientFill":d(e,t);break;case"CIMHatchFill":p(e.lineSymbol,t,i)}}}function d(e,t){const i=e.colorRamp?.type;switch(i){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&m(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":m(e.colorRamp,t)}}function m(e,t){if(e&&(e.fromColor&&(e.fromColor=t.toArray()),e.toColor)){const i=t.clone();i.a=0,e.toColor=i.toArray()}}function g(e,t,i=!1){const r=(0,n.lW)(e);if(i&&(t=360-t),"CIMTextSymbol"!==r?.type){if("CIMPointSymbol"===r?.type&&r.symbolLayers){const e=t-(r.angle||0);for(const t of r.symbolLayers)if((0,n.MM)(t)){let i=t.rotation||0;t.rotateClockwise?i-=e:i+=e,t.rotation=i}r.angle=t}}else r.angle=t}},63660:(e,t,i)=>{i.d(t,{G:()=>g});var r=i(31635),n=i(10107),o=(i(44208),i(53966),i(87811),i(64108)),s=i(49186),a=i(29953),l=i(14140);class u{constructor(){this._workerThread=null,this._destroyed=!1}async initialize(){const e=await(0,a.ho)("RasterWorker");this._destroyed?e.close():this._workerThread=e}destroy(){this._destroyed=!0,this._workerThread&&(this._workerThread.close(),this._workerThread=null)}async convertVectorFieldData(e,t){c(this._workerThread);const i=e.pixelBlock.getTransferableObject().pixelBlock,r=await this._workerThread.invoke("convertVectorFieldData",{pixelBlock:i,type:e.dataType},t);return r?new l.A(r):null}async convertPixelBlockToFeatures(e,t){c(this._workerThread);const i=await this._workerThread.invoke("convertPixelBlockToFeatures",{pixelBlock:e.pixelBlock.toJSON(),extent:e.extent.toJSON(),fieldNames:e.fieldNames,skipFactor:e.skipFactor,pixelIdOffset:e.pixelIdOffset,imageRowSize:e.imageRowSize},t),r=e.extent.spatialReference?.toJSON();return i.forEach(e=>e.geometry.spatialReference=r),i}computeStatisticsHistograms(e,t){c(this._workerThread);const{transferList:i,pixelBlock:r}=e.pixelBlock.getTransferableObject();return t?.transferPixelsToWorker&&(t={...t,transferList:i}),this._workerThread.invoke("computeStatisticsHistograms",{...e,pixelBlock:r},t)}async transformPixels(e,t){c(this._workerThread);const{transferList:i,pixelBlock:r}=e.pixelBlock.getTransferableObject();t?.transferPixelsToWorker&&(t={...t,transferList:i});const n=await this._workerThread.invoke("transformPixels",{...e,pixelBlock:r},t);return l.A.fromJSON(n)}async compositeBands(e,t){c(this._workerThread);const i=e.pixelBlocks.map(e=>e?.getTransferableObject()),r={pixelBlocks:i.map(e=>e?.pixelBlock)};if(t?.transferPixelsToWorker){const e=i.flatMap(e=>e?.transferList).filter(e=>null!=e);t={...t,transferList:e}}const n=await this._workerThread.invoke("compositeBands",r,t);return n?l.A.fromJSON(n):null}async decode(e,t){c(this._workerThread);const i=await this._workerThread.invoke("decode",e,{...t,transferList:[e.data]});return i?new l.A(i):null}async symbolize(e,t){c(this._workerThread);const i=e.pixelBlock?.getTransferableObject().pixelBlock,r={extent:e.extent?.toJSON(),pixelBlock:i,simpleStretchParams:e.simpleStretchParams,bandIds:e.bandIds},n=await this._workerThread.invoke("symbolize",r,t);return n?new l.A(n):null}async highlightPixels(e,t){c(this._workerThread);const i={pixelBlock:e.pixelBlock?.toJSON(),renderedPixelBlock:e.renderedPixelBlock?.toJSON(),highlightOptions:e.highlightOptions},r=await this._workerThread.invoke("highlightPixels",i,t);e.renderedPixelBlock.pixels=r.pixels,e.renderedPixelBlock.mask=r.mask,e.renderedPixelBlock.maskIsAlpha=r.maskIsAlpha}async updateSymbolizer(e,t){c(this._workerThread);const i=e?.rendererJSON?.histograms;await Promise.all(this._workerThread.broadcast("updateSymbolizer",{symbolizerJSON:e.toJSON(),histograms:i},t))}async updateRasterFunction(e,t){c(this._workerThread),await Promise.all(this._workerThread.broadcast("updateRasterFunction",{rasterFunctionJSON:e.toJSON()},t))}async process(e,t){c(this._workerThread);const i=await this._workerThread.invoke("process",{extent:e.extent?.toJSON(),primaryPixelSizes:e.primaryPixelSizes?.map(e=>null!=e?e.toJSON():null),primaryPixelBlocks:e.primaryPixelBlocks.map(e=>e?.getTransferableObject().pixelBlock),primaryRasterIds:e.primaryRasterIds},t);return i?new l.A(i):null}async stretch(e,t){if(c(this._workerThread),!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.getTransferableObject().pixelBlock,stretchParams:e.stretchParams},r=await this._workerThread.invoke("stretch",i,t);return r?new l.A(r):null}async split(e,t){if(c(this._workerThread),!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.getTransferableObject().pixelBlock,tileSize:e.tileSize,maximumPyramidLevel:e.maximumPyramidLevel,useBilinear:e.useBilinear},r=await this._workerThread.invoke("split",i,t);return r&&r.forEach((e,t)=>{r.set(t,e?l.A.fromJSON(e):null)}),r}async clipTile(e,t){if(c(this._workerThread),!e?.pixelBlock)return null;const i=e.pixelBlock.getTransferableObject().pixelBlock,r={...e,pixelBlock:i},n=await this._workerThread.invoke("clipTile",r,t);return n?l.A.fromJSON(n):null}async estimateStatisticsHistograms(e,t){if(c(this._workerThread),!e?.pixelBlock)return null;const i={srcPixelBlock:e.pixelBlock.getTransferableObject().pixelBlock};return await this._workerThread.invoke("estimateStatisticsHistograms",i,t)}async mosaicAndTransform(e,t){if(c(this._workerThread),!e?.srcPixelBlocks?.length)return{pixelBlock:null};const i=e.srcPixelBlocks.map(e=>e?.getTransferableObject()),r={...e,srcPixelBlocks:i.map(e=>e?.pixelBlock)};if(t?.transferPixelsToWorker){const e=i.flatMap(e=>e?.transferList).filter(e=>null!=e);t={...t,transferList:e}}const n=await this._workerThread.invoke("mosaicAndTransform",r,t);return{pixelBlock:n.pixelBlock?new l.A(n.pixelBlock):null,localNorthDirections:n.localNorthDirections}}async createFlowMesh(e,t){c(this._workerThread);const i={buffer:e.flowData.data.buffer,maskBuffer:e.flowData.mask.buffer,width:e.flowData.width,height:e.flowData.height},{meshType:r,simulationSettings:n}=e,o=await this._workerThread.invoke("createFlowMesh",{meshType:r,flowData:i,simulationSettings:n},{...t,transferList:[i.buffer,i.maskBuffer]});return{vertexData:new Float32Array(o.vertexBuffer),indexData:new Uint32Array(o.indexBuffer)}}getProjectionOffsetGrid(e,t){c(this._workerThread);const i=null!=e.datumTransformation?e.datumTransformation.steps.map(e=>({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse})):null,r=null!=e.rasterTransform?e.rasterTransform.toJSON():null,n={projectedExtent:e.projectedExtent.toJSON(),srcBufferExtent:e.srcBufferExtent.toJSON(),pixelSize:e.pixelSize,hasWrapAround:e.hasWrapAround,spacing:e.spacing,datumTransformationSteps:i,rasterTransform:r,isAdaptive:e.isAdaptive,includeGCSGrid:e.includeGCSGrid};return this._workerThread.invoke("getProjectionOffsetGrid",n,t)}}function c(e){if(null==e)throw new s.A("raster-jobhandler:no-connection","no available worker connection")}var p=i(14636),d=i(12711),m=i(4095);const g=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._rasterJobHandlerConfig={instance:null,refCount:0,connectionPromise:null}}get _rasterJobHandler(){return this._rasterJobHandlerConfig.instance}increaseRasterJobHandlerUsage(){this._rasterJobHandlerConfig.refCount++}decreaseRasterJobHandlerUsage(){this._rasterJobHandlerConfig.refCount--,this._rasterJobHandlerConfig.refCount<=0&&this._shutdownJobHandler()}async convertVectorFieldData(e,t,i){if(null==e)return null;const r=this._rasterJobHandler;return r?r.convertVectorFieldData({pixelBlock:e,dataType:t},i):(0,p.FI)(e,t)}async createFlowMesh(e,t){const i=this._rasterJobHandler;return i?i.createFlowMesh(e,t):(0,m.CW)(e.meshType,e.simulationSettings,e.flowData,null!=t.signal?t.signal:(new AbortController).signal)}_initJobHandler(){const{_rasterJobHandlerConfig:e}=this;if(e.connectionPromise)return e.connectionPromise;const t=new u;return e.connectionPromise=t.initialize().then(()=>{e.instance=t,this.notifyChange("_rasterJobHandler")},()=>{}),e.connectionPromise}_shutdownJobHandler(){const{_rasterJobHandlerConfig:e}=this;e.instance?.destroy(),e.instance=null,e.connectionPromise=null,e.refCount=0,this.notifyChange("_rasterJobHandler"),this._cachedRendererJson=void 0}async _updateSymbolizer(e,t,i,r){const n=this._rasterJobHandlerConfig.instance;if(!n)return;const o=(0,d.$P)({...t.toJSON(),variableName:i});JSON.stringify(this._cachedRendererJson)!==JSON.stringify(o)&&(r&&(e.rasterInfo=r),e.rendererJSON=o,e.bind(),await n.updateSymbolizer(e),this._cachedRendererJson=t.toJSON())}async _symbolize(e,t){const{pixelData:i,bandIds:r,simpleStretchParams:n}=e,o=this._rasterJobHandler;if(o){const e=await o.symbolize({...i,simpleStretchParams:n,bandIds:r},t);return{extent:i.extent,pixelBlock:e}}const s=e.symbolizer.symbolize({...i,simpleStretchParams:n,bandIds:r});return{extent:i.extent,pixelBlock:s}}};return(0,r.Cg)([(0,n.MZ)({clonable:!1})],i.prototype,"_rasterJobHandler",null),(0,r.Cg)([(0,n.MZ)({clonable:!1})],i.prototype,"_cachedRendererJson",void 0),(0,r.Cg)([(0,n.MZ)({clonable:!1})],i.prototype,"_rasterJobHandlerConfig",void 0),i=(0,r.Cg)([(0,o.$)("esri.layers.mixins.RasterJobHandlerMixin")],i),i}},67730:(e,t,i)=>{i.d(t,{A:()=>f});var r,n=i(31635),o=i(68197),s=i(66552),a=i(25482),l=i(90629),u=i(10107),c=i(56507),p=(i(44208),i(87811),i(93223)),d=i(64108),m=i(63988),g=i(30943),y=i(20061);const h=new s.J({flow_from:"flow-from",flow_to:"flow-to"});let f=r=class extends((0,m.h)(a.o)){constructor(e){super(e),this.density=.8,this.color=new o.A([255,255,255,1]),this.maxPathLength=200,this.trailWidth=1.5,this.flowSpeed=10,this.trailLength=100,this.smoothing=0,this.flowRepresentation="flow-from",this.type="flow",this.authoringInfo=null,this.legendOptions=null,this.trailCap="butt",this.background="none"}set visualVariables(e){super.visualVariables=e}clone(){const{density:e,maxPathLength:t,trailWidth:i,flowSpeed:n,trailLength:o,smoothing:s,flowRepresentation:a,trailCap:l,background:u}=this,c=this.color.clone(),p=(this.visualVariables||[]).map(e=>e.clone()),d=this.authoringInfo?.clone(),m=this.legendOptions?.clone();return new r({density:e,color:c,maxPathLength:t,trailWidth:i,flowSpeed:n,trailLength:o,trailCap:l,background:u,smoothing:s,flowRepresentation:a,visualVariables:p,authoringInfo:d,legendOptions:m})}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}};(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],f.prototype,"density",void 0),(0,n.Cg)([(0,u.MZ)({type:o.A,json:{type:[c.jz],write:{allowNull:!0}}})],f.prototype,"color",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!0}})],f.prototype,"maxPathLength",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!0}})],f.prototype,"trailWidth",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],f.prototype,"flowSpeed",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],f.prototype,"trailLength",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!1}})],f.prototype,"smoothing",void 0),(0,n.Cg)([(0,u.MZ)({type:h.apiValues,json:{type:h.jsonValues,read:{reader:h.read},write:{writer:h.write}}})],f.prototype,"flowRepresentation",void 0),(0,n.Cg)([(0,p.e)({flowRenderer:"flow"}),(0,u.MZ)({json:{write:{isRequired:!0}}})],f.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:g.A,json:{write:!0}})],f.prototype,"authoringInfo",void 0),(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:!0}})],f.prototype,"legendOptions",void 0),(0,n.Cg)([(0,u.MZ)({type:["butt","round"],json:{write:!0}})],f.prototype,"trailCap",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],f.prototype,"background",void 0),f=r=(0,n.Cg)([(0,d.$)("esri.renderers.FlowRenderer")],f)},69052:(e,t,i)=>{i.d(t,{hr:()=>n,ie:()=>l,uC:()=>a});var r=i(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return o(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+s(this.range,e-t,i)}minimalMonotonic(e,t,i){return o(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function o(e,t,i,r,n=0,o=!1){return(r-=n)<t?r+=s(e,t-r):r>i&&(r-=s(e,r-i)),o&&r===i&&(r=t),r+n}function s(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const a=new n(0,2*Math.PI),l=(new n(-Math.PI,Math.PI),new n(0,360))},69208:(e,t,i)=>{i.d(t,{d:()=>s});var r=i(31635),n=i(10107),o=(i(44208),i(53966),i(87811),i(64108));const s=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,r.Cg)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,r.Cg)([(0,o.$)("esri.layers.mixins.CustomParametersMixin")],i),i}},70328:(e,t,i)=>{i.d(t,{BI:()=>w,DC:()=>p,Ej:()=>m,Ie:()=>f,Jt:()=>M,Ne:()=>g,RF:()=>c,aI:()=>A,fA:()=>s,gE:()=>l,hZ:()=>h,iT:()=>d,is:()=>I,qv:()=>b,vI:()=>y,vY:()=>a,v_:()=>C,vt:()=>o,w1:()=>u});var r=i(5443),n=(i(19419),i(4197));function o(e=C){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,i,r,n,s,a=o()){return a[0]=e,a[1]=t,a[2]=i,a[3]=r,a[4]=n,a[5]=s,a}function a(e,t=o()){return function(e,t,i,r=o()){return h(r,b),function(e,t,i=0,r=t.length/3){let n=e[0],o=e[1],s=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<r;e++)n=Math.min(n,t[i+3*e]),o=Math.min(o,t[i+3*e+1]),s=Math.min(s,t[i+3*e+2]),a=Math.max(a,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=n,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=u}(r,e,t,i),r}(e,0,e.length/3,t)}function l(e,t=(0,n.jh)(24)){const[i,r,o,s,a,l]=e;return t[0]=i,t[1]=r,t[2]=o,t[3]=i,t[4]=r,t[5]=l,t[6]=i,t[7]=a,t[8]=o,t[9]=i,t[10]=a,t[11]=l,t[12]=s,t[13]=r,t[14]=o,t[15]=s,t[16]=r,t[17]=l,t[18]=s,t[19]=a,t[20]=o,t[21]=s,t[22]=a,t[23]=l,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new r.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function m(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function g(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function y(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function f(e){return e?h(e,b):o(b)}function M(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function w(e,t,i,r,n){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function I(e){return 6===e.length}function A(e,t,i){if(null==e||null==t)return e===t;if(!I(e)||!I(t))return!1;if(i){for(let r=0;r<e.length;r++)if(!i(e[r],t[r]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const b=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];o()},73133:(e,t,i)=>{i.d(t,{j:()=>r});const r=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},74797:(e,t,i)=>{i.d(t,{AL:()=>M,DV:()=>y,ER:()=>n,F_:()=>a,Nd:()=>m,Oo:()=>o,dy:()=>d,eS:()=>b,h4:()=>C,jC:()=>f,nq:()=>g,rZ:()=>p,y6:()=>h});var r=i(20437);const n="Raster.",o="Raster.Dim.",s=".Max",a={servicePixelValue:"Raster.ServicePixelValue",rawServicePixelValue:"Raster.ServicePixelValue.Raw",itemPixelValue:"Raster.ItemPixelValue",magnitude:"Raster.Magnitude",direction:"Raster.Direction",variable:"Raster.Variable"},l=new Map([["quarters","Quarter"],["months","Month"],["weeks","Week of the year"],["days","Day of the year"]]);function u(e,t){return new r.A({name:e,alias:t,domain:null,editable:!1,length:50,type:"string"})}function c(e,t){return new r.A({name:e,alias:t,domain:null,editable:!1,type:"double"})}function p(e){return u(a.servicePixelValue,e??"Service Pixel Value")}function d(e){return u(a.rawServicePixelValue,e??"Raw Service Pixel Value")}function m(){return u(a.itemPixelValue,"Item Pixel Value")}function g(e){return u(`${a.servicePixelValue}.${e}`,e)}function y(e){return c(`${a.magnitude}`,"Magnitude"+(e?` (${e})`:""))}function h(){return c(`${a.direction}`,"Direction (°)")}function f(e){return e.fields.filter(e=>"oid"!==e.type&&"value"!==e.name.toLowerCase()).map(e=>{const t=e.clone();return t.name=`${n}${e.name}`,t})}function M(e){const t=new Set,i=new Set,n=new Map;return e.variables.forEach(({dimensions:e})=>{e.forEach(e=>{if(e.recurring)n.set(e.name,e.unit);else{const r="ISO8601"===e.unit?.trim()||"stdtime"===e.name?.trim()?.toLowerCase()?t:i;r.add(e.name),e.hasRanges&&r.add(`${e.name}${s}`)}})}),[u(a.variable,"Variable"),...[...t].map(e=>function(e,t){return new r.A({name:e,alias:t,domain:null,editable:!1,type:"date"})}(`${o}${e}`,I(e))),...[...i].map(e=>c(`${o}${e}`,I(e))),...[...n].map(([e,t])=>c(`${o}${e}`,w(e,t)))]}function w(e,t){return t=t?.toLowerCase(),t&&l.has(t)?l.get(t):I(e)}function I(e){const t=e.endsWith(s),i=t?e.slice(0,-4):e,r="StdTime"===i?"Standard Time":"StdZ"===i?"Standard Z":i;return t?`${r} Max`:r}function A(e,t){return t?new Date(e):e}function b(e,t,i){i?.length&&(t[a.variable]=i[0].variableName,i.forEach(({dimensionName:i,values:r})=>{if(i&&r?.length){const n=`${o}${i}`,a=e.find(({name:e})=>e===n);if(!a)return;const l="date"===a.type,u=r[0];if(Array.isArray(u)){if(t[`${o}${i}`]=A(u[0],l),null!=u[1]){const r=`${o}${i}${s}`;if(e.some(({name:e})=>e===r)){const e=A(u[1],l);t[r]=e}}}else t[`${o}${i}`]=A(u,l)}}))}function C(e,t){if(t.pixelType.startsWith("f")&&e.forEach(({format:e,fieldName:t})=>{e&&t&&/^raster\.(item|service)pixelvalue/i.test(t)&&(e.places=2)}),t.multidimensionalInfo){const i=t.multidimensionalInfo.variables.flatMap(({dimensions:e})=>e);e.forEach(({format:e,fieldName:t})=>{if(e&&t?.startsWith(o)){const r=t.slice(o.length),n=`${r}${s}`,a=i.find(({name:e})=>e===r||e===n);a?.values?.every(e=>Number.isInteger(e))&&(e.places=0)}})}}},76353:(e,t,i)=>{function r(e){return"Function"===e?.datasetFormat}function n(e){return r(e)?e.primaryRasters.rasters:[e]}function o(e,t,i,r){const{x:n,y:o}=t,{x:s,y:a}=i,{xmin:l,xmax:u,ymin:c,ymax:p}=e,{width:d,height:m}=e,g=d/s,y=m/a,h=Math.min(g,y),f=h<=1?0:Math.min(.1,h/100),M=Math.floor((l-n)/s+f),w=Math.floor((o-p)/a+f),I=Math.floor((u-n)/s-f),A=Math.floor((o-c)/a-f);return{ul:{x:M,y:w},width:r>0&&g<.1?0:I-M+1,height:r>0&&y<.1?0:A-w+1}}i.d(t,{$g:()=>o,pb:()=>n,qg:()=>r})},77301:(e,t,i)=>{i.d(t,{$E:()=>S,DY:()=>w,NG:()=>v,QW:()=>l,Rp:()=>y,XU:()=>h,Xg:()=>C,ct:()=>f,fy:()=>M,xx:()=>u,z2:()=>I});var r=i(4576),n=i(86738),o=i(12359),s=i(45617);function a(e,t,i){const r=t.shift();if(0===i.length){const e=[];i.push({sliceId:-1,multidimensionalDefinition:e})}const n=i.length;for(let t=0;t<n;t++){const t=i.shift().multidimensionalDefinition;r.values?.forEach(n=>{i.push({sliceId:-1,multidimensionalDefinition:[...t,{variableName:e,dimensionName:r.name,values:[n]}]})})}t.length&&a(e,t,i)}function l(e,t){const i=[];let r=0;return(t?e.variables.filter(e=>e.name.toLowerCase()===t.toLowerCase()):[...e.variables].sort((e,t)=>e.name>t.name?1:-1)).forEach(e=>{const t=[],n=[...e.dimensions].sort((e,t)=>e.name>t.name?-1:1);a(e.name,n,t),t.forEach(e=>{i.push({...e,sliceId:r++})})}),i}function u(e,t,i){let r=e;if(t&&(t=[...t].sort((e,t)=>e.dimensionName<t.dimensionName?-1:1)).forEach(({dimensionName:e,values:t,isSlice:i})=>{t.length&&(r=r.filter(r=>{const n=r.multidimensionalDefinition.find(t=>t.dimensionName===e);if(null==n)return!1;const o=n.values[0];return"number"==typeof o?"number"==typeof t[0]?t.includes(o):t.some(e=>e[0]<=o&&e[1]>=o):"number"==typeof t[0]?t.some(e=>o[0]<=e&&o[1]>=e):i?t.some(e=>e[0]===o[0]&&e[0]===o[1]):t.some(e=>e[0]>=o[0]&&e[0]<=o[1]||e[1]>=o[0]&&e[1]<=o[1]||e[0]<o[0]&&e[1]>o[1])}))}),r.length&&null!=i?.start&&null!=i.end){const e=i.start.getTime(),t=i.end.getTime(),n=r[0].multidimensionalDefinition.findIndex(e=>"StdTime"===e.dimensionName);n>-1&&(r=r.filter(i=>{const r=i.multidimensionalDefinition[n].values[0];return e<=r&&t>=r}))}return r.map(e=>e.sliceId)}function c(e,t){return Array.isArray(e)?t[0]===t[1]?e[0]===t[0]||e[1]===t[0]:e[0]>=t[0]&&e[0]<=t[1]&&e[1]>=t[0]&&e[1]<=t[1]:e>=t[0]&&e<=t[1]}function p(e,t){return e[0]<=t[0]&&e[1]>=t[0]||e[0]<=t[1]&&e[1]>=t[1]||e[0]>=t[0]&&e[1]<=t[1]}function d(e){return 1===e.length?[e[0],e[0]]:[e[0],e[e.length-1]]}function m(e,t,i){if(!t?.subsetDefinitions?.length)return e;let r;if(i){const{variables:n}=t;if(n.length&&!n.includes(i))return null;const o=t.subsetDefinitions.find(t=>t.dimensionName===e.name&&t.variableName===i);if(!o?.values?.length)return e;r=d(o.values)}else{const i=t.dimensions.find(({name:t})=>t===e.name);r=i?.extent}const n=r;if(!n?.length)return e;const o=e.values.filter(e=>c(e,n));return{...e,extent:[...n],values:o}}function g(e,t,i){if(!t?.subsetDefinitions?.length)return!1;const{variables:r}=t;if(r.length&&e.some(({variableName:e})=>e&&!r.includes(e)))return!0;for(let r=0;r<e.length;r++){const n=e[r],o=t.subsetDefinitions.find(e=>(""===n.variableName||e.variableName===n.variableName)&&e.dimensionName===n.dimensionName);if(o?.values.length){const e=d(o.values);if(n.isSlice||2!==n.values.length||Array.isArray(n.values[0])||n.values[0]===n.values[1]||!i){if(n.values.some(t=>!c(t,e)))return!0}else if(!p(n.values,e))return!0}}return!1}function y(e,t){if(null==e)return{isOutside:!1};const{geometry:i,timeExtent:r,multidimensionalDefinition:a}=t;let l=null;if(null!=r&&(l=function(e,t){const i=e.dimensions.find(({name:e})=>"StdTime"===e);if(null==i||null==t.start&&null==t.end)return t;t=t.clone();const{start:r,end:n}=t.toJSON(),o=r===n?[r]:null!=r&&null!=n?[r,n]:[r??n];return 2===o.length&&i?.extent.length&&(o[0]=Math.max(o[0],i.extent[0]),o[1]=Math.min(o[1],i.extent[1]??i.extent[0]),o[1]<o[0])||g([new s.A({variableName:"",dimensionName:"StdTime",isSlice:1===o.length,values:o})],e,!0)?null:(t.start=new Date(o[0]),t.end=new Date(o[1]??o[0]),t)}(e,r),null==l))return{isOutside:!0};const{areaOfInterest:u}=e;if(u&&i){const e=function(e){switch(e.type){case"point":return e;case"extent":return e.center;case"polygon":{const t=(0,o.Ve)(e);return t?n.A.fromJSON(t):null}}return null}(i);if(e&&!u.contains(e))return{isOutside:!0}}return null!=a&&a.length&&g(a,e,!0)?{isOutside:!0}:{isOutside:!1,intersection:{geometry:i,timeExtent:l,multidimensionalDefinition:a}}}function h(e){const{rasterInfo:t,multidimensionalSubset:i}=e,{multidimensionalInfo:r}=t;if(null==r)return null;let n=e.multidimensionalDefinition?.length?e.multidimensionalDefinition:M(t,{multidimensionalSubset:i});if(!n?.length)return null;if(n.some(e=>!e.dimensionName)){const{variableName:e}=n[0],r=M(t,{multidimensionalSubset:i,variableName:e});r?.forEach(e=>{const t=n?.find(({dimensionName:t})=>t===e.dimensionName);t?.values?.length&&(e.values=t.values,e.isSlice=t.isSlice)}),n=r}const{timeExtent:o}=e;if(null!=n&&null!=o&&(null!=o.start||null!=o.end)){n=n.map(e=>e.clone());const e=r.variables.find(({name:e})=>e===n[0].variableName)?.dimensions?.find(({name:e})=>"StdTime"===e),t=n.find(({dimensionName:e})=>"StdTime"===e);if(!e||!t)return null;const{start:i,end:s}=o,a=null==i?null:i.getTime(),l=null==s?null:s.getTime(),u=a??l,c=l??a;if(null!=e.values){const i=e.values.filter(e=>{if(Array.isArray(e)){if(u===c)return e[0]<=u&&e[1]>=u;const t=e[0]<=u&&e[1]>u||e[0]<c&&e[1]>=c,i=e[0]>=u&&e[1]<=c||e[0]<u&&e[1]>c;return t||i}return u===c?e===u:e>=u&&e<=c});if(i.length){const e=i.sort((e,t)=>{const i=Array.isArray(e)?e[0]:e,r=Array.isArray(e)?e[1]:e,n=Array.isArray(t)?t[0]:t,o=Array.isArray(t)?t[1]:t;return u===c?i-n:Math.abs(r-c)-Math.abs(o-c)})[0];t.values=[e]}else n=null}else if(e.hasRegularIntervals&&e.extent){const[i,r]=e.extent;u>r||c<i?n=null:t.values=u===c?[u]:[Math.max(i,u),Math.min(r,c)]}}return null!=n&&g(n,i)?null:n}function f(e,t={}){const{multidimensionalInfo:i,keyProperties:r}=e;if(null==i)return null;const{variableName:n,multidimensionalSubset:o,multidimensionalDefinition:s}=t,a=null!=s?s[0]?.variableName:null,l=n||a||r?.DefaultVariable;let{variables:u}=i;return o?.variables?.length&&(u=u.filter(({name:e})=>o.variables.includes(e))),l?u.find(({name:e})=>e===l)??u[0]:u[0]}function M(e,t={}){const i=f(e,t);if(!i)return null;const r=[],{dimensions:n,name:o}=i;if(0===n.length)return[new s.A({variableName:o,dimensionName:"",values:[],isSlice:!0})];for(let e=0;e<n.length;e++){const i=m(n[e],t.multidimensionalSubset,o);if(!i)return null;const{values:a,extent:l}=i;let u=a?.[0]??l?.[0];"stdz"===i.name.toLowerCase()&&!i.hasRanges&&l&&Math.abs(l[1])<=Math.abs(l[0])&&(u=a?.length?a[a.length-1]:l[1]),r.push(new s.A({variableName:o,dimensionName:i.name,values:[u],isSlice:!t.useRangeForRangedDimensionInfo||!!i.hasRanges}))}return r}function w(e){return!!e?.length&&e.some(e=>{if(null==e.values)return!0;const t=e.values.length;return 0===t||t>1||!e.isSlice&&Array.isArray(e.values[0])})}function I(e,t){if(null==t||null==e)return null;let i=t.variables.map(e=>({...e}));return e?.variables?.length&&(i=i.filter(({name:t})=>e.variables.includes(t)),i.forEach(t=>{t.dimensions=t.dimensions.map(i=>m(i,e,t.name)).filter(r.Ru)})),i}function A(e,t){const{values:i}=t;if(i?.length){const t=Array.isArray(i[0]),r=Array.isArray(e);return t!==r?-1:t&&r?i.findIndex(t=>t[0]===e[0]&&t[1]===e[1]):i.indexOf(e)}const{extent:r}=t;if(Array.isArray(e)||!r||e<r[0]||e>r[1])return-1;const n=t.interval||1;if("ISO8601"!==t.unit)return Math.round((e-r[0])/n);const o=r[0];let s=-1;switch(t.intervalUnit?.toLowerCase()||"days"){case"seconds":s=Math.round((e-o)/1e3/n);break;case"minutes":s=Math.round((e-o)/6e4/n);break;case"hours":s=Math.round((e-o)/36e5/n);break;case"days":s=Math.round((e-o)/864e5/n);break;case"months":{const t=new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear(),i=new Date(o).getUTCMonth(),r=new Date(e).getUTCMonth();s=0===t?r-i:r+11-i+12*(t-1)}break;case"years":s=Math.round((new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear())/n);break;case"decades":s=Math.round((new Date(e).getUTCFullYear()-new Date(o).getUTCFullYear())/10/n)}return s}function b(e){let t=e.values?.length;if(t)return t;const{extent:i,unit:r}=e,n=e.interval||1,o=i?i[1]-i[0]:0;if("ISO8601"!==r)return Math.round(o/n);switch(e.intervalUnit?.toLowerCase()??"seconds"){case"seconds":t=Math.round(o/1e3/n);break;case"minutes":t=Math.round(o/6e4/n);break;case"hours":t=Math.round(o/36e5/n);break;case"days":t=Math.round(o/864e5/n);break;case"months":if(i){const e=new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear(),r=new Date(i[0]).getUTCMonth(),n=new Date(i[1]).getUTCMonth();t=0===e?n-r+1:n+11-r+12*(e-1)+1}else t=0;break;case"years":t=i?Math.round((new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear())/n):0;break;case"decades":t=i?Math.round((new Date(i[1]).getUTCFullYear()-new Date(i[0]).getUTCFullYear())/10/n):0;break;default:t=0}return t}function C(e){if(2!==e.extent?.length||!e.interval)return[];const{extent:[t,i],interval:r}=e;if("ISO8601"===e.unit){const n=e.intervalUnit?.toLowerCase()??"days";return["decades","years","months","days","hours","minutes","seconds"].includes(n)?function(e,t,i,r){const n=[];let o=e;const s=new Date(e);for(;o<=t;)switch(n.push(o),r){case"decades":s.setUTCFullYear(s.getUTCFullYear()+10*i),o=s.getTime();break;case"years":s.setUTCFullYear(s.getUTCFullYear()+i),o=s.getTime();break;case"months":s.setUTCMonth(s.getUTCMonth()+i),o=s.getTime();break;case"days":o+=864e5*i;break;case"hours":o+=36e5*i;break;case"minutes":o+=6e4*i;break;case"seconds":o+=1e3*i}return 1===n.length?n[1]=t:n[n.length-1]=t,n}(t,i,r,n):[]}const n=Math.round((i-t)/r);return Array.from({length:n},(e,o)=>o===n-1?i:t+o*r)}function v(e,t){let i=0;const r=e[0].variableName,n=[...t.variables].sort((e,t)=>e.name>t.name?1:-1);for(let t=0;t<n.length;t++){const o=n[t],s=[...o.dimensions].sort((e,t)=>e.name>t.name?-1:1);if(o.name!==r){i+=s.map(e=>b(e)).reduce((e,t)=>e*t);continue}const a=s.map(e=>b(e)),l=s.length;for(let t=0;t<l;t++){const r=e.find(e=>e.dimensionName===s[t].name);if(null==r)return null;const n=A(r.values[0],s[t]);if(-1===n)return null;a.shift(),i+=t===l-1?n:n*a.reduce((e,t)=>e*t)}break}return i}function S(e){return Math.round(24*(e-25569)*3600*1e3)}},80498:(e,t,i)=>{i.d(t,{A:()=>m});var r=i(31635),n=i(25482),o=i(10107),s=(i(44208),i(53966),i(87811),i(93223)),a=i(64108),l=i(68197),u=i(56507);let c=class extends n.o{constructor(e){super(e),this.value=null,this.label=null,this.color=null}};(0,r.Cg)([(0,o.MZ)({type:Number,json:{write:{isRequired:!0}}})],c.prototype,"value",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r.Cg)([(0,o.MZ)({type:l.A,json:{type:[u.jz],write:{isRequired:!0}}})],c.prototype,"color",void 0),c=(0,r.Cg)([(0,a.$)("esri.renderers.support.ColormapInfo")],c);var p,d=i(67369);let m=p=class extends n.o{constructor(e){super(e),this.colormapInfos=null,this.type="raster-colormap"}static createFromColormap(e,t){if(!e)return null;const i=5===e[0].length,r=[...e].sort((e,t)=>e[0]-t[0]).map(e=>c.fromJSON({value:e[0],color:i?e.slice(1,5):e.slice(1,4).concat([255]),label:t?t[e[0]]??"":e[0]}));return new p({colormapInfos:r})}static createFromColorramp(e){const t=(0,d.R8)(e);return p.createFromColormap(t)}clone(){return new p({colormapInfos:this.colormapInfos.map(e=>e.toJSON())})}extractColormap(){return this.colormapInfos.map(({value:e,color:t})=>[e,t.r,t.g,t.b,t.a>1?t.a:255*t.a&255]).sort((e,t)=>e[0]-t[0])}};(0,r.Cg)([(0,o.MZ)({type:[c],json:{write:{isRequired:!0}}})],m.prototype,"colormapInfos",void 0),(0,r.Cg)([(0,s.e)({rasterColormap:"raster-colormap"}),(0,o.MZ)({json:{write:{isRequired:!0}}})],m.prototype,"type",void 0),m=p=(0,r.Cg)([(0,a.$)("esri.renderers.RasterColormapRenderer")],m)},80754:(e,t,i)=>{i.d(t,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>u});var r=i(82799),n=i(16930),o=i(65864);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const i=u(e);for(const e of i)for(const i of e)i[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},82935:(e,t,i)=>{i.d(t,{B:()=>m,e:()=>g});var r=i(31635),n=i(10107),o=(i(44208),i(53966),i(87811),i(36005)),s=i(64108),a=i(89317),l=i(30524),u=i(96184),c=i(73133),p=i(79677),d=i(10184);const m={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:a.K}}},g=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,n=c.j.fromJSON(i.timeOffsetUnits);return r&&n?new d.A({value:r,unit:n}):null}set timeInfo(e){(0,l.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,n.MZ)({type:p.A,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,r.Cg)([(0,n.MZ)({type:d.A})],i.prototype,"timeOffset",void 0),(0,r.Cg)([(0,o.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,r.Cg)([(0,n.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,r.Cg)([(0,n.MZ)(m)],i.prototype,"useViewTime",void 0),i=(0,r.Cg)([(0,s.$)("esri.layers.mixins.TemporalLayer")],i),i}},85675:(e,t,i)=>{i.d(t,{A:()=>w});var r,n=i(31635),o=i(66552),s=i(25482),a=i(4718),l=i(10107),u=i(79901),c=i(36005),p=i(64108),d=i(43937),m=i(56507),g=i(86738),y=i(45617),h=i(22796);const f=(0,o.O)()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),M=(0,o.O)()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});let w=r=class extends s.o{constructor(e){super(e),this.ascending=!0,this.itemRasterFunction=null,this.lockRasterIds=null,this.method="none",this.multidimensionalDefinition=null,this.objectIds=null,this.operation="first",this.sortField=null,this.sortValue=null,this.viewpoint=null,this.where=null}readAscending(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending}readMethod(e,t){return function(e){let t;switch(e?e.toLowerCase().replace("esrimosaic",""):""){case"byattribute":case"attribute":t="esriMosaicAttribute";break;case"lockraster":t="esriMosaicLockRaster";break;case"center":t="esriMosaicCenter";break;case"northwest":t="esriMosaicNorthwest";break;case"nadir":t="esriMosaicNadir";break;case"viewpoint":t="esriMosaicViewpoint";break;case"seamline":t="esriMosaicSeamline";break;default:t="esriMosaicNone"}return M.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)}writeMultidimensionalDefinition(e,t,i){null!=e&&(e=e.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t)).length&&(t[i]=e.map(e=>e.toJSON()))}readOperation(e,t){const i=t.mosaicOperation,r=t.mosaicOperator?.toLowerCase(),n=i||(r?f.toJSON(r):null);return f.fromJSON(n)||"first"}castSortValue(e){return null==e||"string"==typeof e||"number"==typeof e?e:`${e}`}clone(){return new r({ascending:this.ascending,itemRasterFunction:(0,a.o8)(this.itemRasterFunction),lockRasterIds:(0,a.o8)(this.lockRasterIds),method:this.method,multidimensionalDefinition:(0,a.o8)(this.multidimensionalDefinition),objectIds:(0,a.o8)(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:(0,a.o8)(this.viewpoint),where:this.where})}};(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],w.prototype,"ascending",void 0),(0,n.Cg)([(0,c.w)("ascending",["ascending","sortAscending"])],w.prototype,"readAscending",null),(0,n.Cg)([(0,l.MZ)({type:h.A,json:{name:"itemRenderingRule",write:!0}})],w.prototype,"itemRasterFunction",void 0),(0,n.Cg)([(0,l.MZ)({type:[m.jz],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],w.prototype,"lockRasterIds",void 0),(0,n.Cg)([(0,l.MZ)({type:M.apiValues,json:{type:M.jsonValues,write:{target:"mosaicMethod",writer:M.write,isRequired:!0}}})],w.prototype,"method",void 0),(0,n.Cg)([(0,c.w)("method",["mosaicMethod","defaultMosaicMethod"])],w.prototype,"readMethod",null),(0,n.Cg)([(0,l.MZ)({type:[y.A],json:{write:!0}})],w.prototype,"multidimensionalDefinition",void 0),(0,n.Cg)([(0,d.K)("multidimensionalDefinition")],w.prototype,"writeMultidimensionalDefinition",null),(0,n.Cg)([(0,l.MZ)({type:[m.jz],json:{name:"fids",write:!0}})],w.prototype,"objectIds",void 0),(0,n.Cg)([(0,l.MZ)({type:f.apiValues,json:{type:f.jsonValues,read:{reader:f.read},write:{target:"mosaicOperation",writer:f.write}}})],w.prototype,"operation",void 0),(0,n.Cg)([(0,c.w)("operation",["mosaicOperation","mosaicOperator"])],w.prototype,"readOperation",null),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],w.prototype,"sortField",void 0),(0,n.Cg)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],w.prototype,"sortValue",void 0),(0,n.Cg)([(0,u.w)("sortValue")],w.prototype,"castSortValue",null),(0,n.Cg)([(0,l.MZ)({type:g.A,json:{write:!0}})],w.prototype,"viewpoint",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],w.prototype,"where",void 0),w=r=(0,n.Cg)([(0,p.$)("esri.layers.support.MosaicRule")],w)},89808:(e,t,i)=>{i.d(t,{Q:()=>r});const r=Symbol("getSliceableSymbol")},92300:(e,t,i)=>{i.d(t,{V:()=>o,X:()=>n});var r=i(65864);function n(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function o(e,t,i){const n=(0,r.xD)(t);return e.map(e=>{const t=n.fromJSON(e);return t.spatialReference=i,t})}},94359:(e,t,i)=>{i.d(t,{Gj:()=>d,LF:()=>g,uy:()=>p});var r=i(67076),n=i(86162),o=i(67730),s=i(80498),a=i(46981),l=i(36280),u=i(93618),c=i(18031);const p={key:"type",base:null,typeMap:{"class-breaks":n.A,flow:o.A,"raster-colormap":s.A,"raster-shaded-relief":a.A,"raster-stretch":l.A,"unique-value":u.A,"vector-field":c.A}},d={...p,typeMap:{...p.typeMap}};delete d.typeMap["vector-field"];const m={classBreaks:n.A,flowRenderer:o.A,rasterColormap:s.A,rasterShadedRelief:a.A,rasterStretch:l.A,uniqueValue:u.A,vectorField:c.A};function g(e,t){if(!e)return null;if("classBreaks"===e.type&&e.classificationMethod){const t=e.authoringInfo||{classificationMethod:""};t.classificationMethod=e.classificationMethod,e.authoringInfo=t}"vectorField"===e.type&&e.visualVariables&&!Array.isArray(e.visualVariables)&&(e.visualVariables=[e.visualVariables]);const i=(n=e)&&m[n.type]||null;var n;if(i){const r=new i;return r.read(e,t),r}return t?.messages&&e&&t.messages.push(new r.A("renderer:unsupported","Renderers of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:t})),null}},96184:(e,t,i)=>{i.d(t,{A:()=>g});var r=i(31635),n=i(69540),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),l=i(64108),u=i(43937),c=i(79677),p=i(10184),d=i(56400);function m(e,t){return p.A.fromJSON({value:e,unit:t})}let g=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?c.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],g.prototype,"cumulative",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],g.prototype,"endField",void 0),(0,r.Cg)([(0,s.MZ)({type:c.A,json:{write:{enabled:!0,allowNull:!0}}})],g.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,a.w)("fullTimeExtent",["timeExtent"])],g.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,u.K)("fullTimeExtent")],g.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,s.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],g.prototype,"interval",void 0),(0,r.Cg)([(0,a.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],g.prototype,"readInterval",null),(0,r.Cg)([(0,u.K)("interval")],g.prototype,"writeInterval",null),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],g.prototype,"startField",void 0),(0,r.Cg)([(0,s.MZ)((0,d.P6)("timeReference",!0))],g.prototype,"timeZone",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],g.prototype,"trackIdField",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],g.prototype,"useTime",void 0),(0,r.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],g.prototype,"stops",void 0),g=(0,r.Cg)([(0,l.$)("esri.layers.support.TimeInfo")],g)},99959:(e,t,i)=>{i.d(t,{A:()=>o});var r=i(31635),n=(i(53966),i(44208),i(87811),i(49186),i(64108));let o=class{};o=(0,r.Cg)([(0,n.$)("esri.graphic.GraphicOrigin")],o)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1277,7561],{21277:(t,e,r)=>{r.r(e),r.d(e,{executeForTopIds:()=>n});var i=r(2272),o=r(24645),s=r(57561);async function n(t,e,r){const n=(0,i.Dl)(t);return(await(0,o.KW)(n,s.default.from(e),{...r})).data.objectIds}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1277,7561],{21277:(t,e,r)=>{r.r(e),r.d(e,{executeForTopIds:()=>n});var i=r(2272),o=r(24645),s=r(57561);async function n(t,e,r){const n=(0,i.Dl)(t);return(await(0,o.KW)(n,s.default.from(e),{...r})).data.objectIds}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(43773),o=r(84952),s=r(65864),n=r(17136),l=r(21325),u=r(10536),p=r(58501);const a="Layer does not support extent calculation.";function d(t,e){const r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?i.outFields.includes("*")?o.outFields="*":o.outFields=i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){const t=i.timeExtent,{start:e,end:r}=t;null==e&&null==r||(o.time=e===r?e:`${e??"null"},${r??"null"}`),delete i.timeExtent}return o}async function y(t,e,r,i){const o=await g(t,e,"json",i);return(0,p.q)(e,r,o.data),o}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:g(t,e,"json",r,{returnIdsOnly:!0})}async function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:g(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(a);if(e.hasOwnProperty("count"))throw new Error(a);return t})}function m(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):g(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}function g(t,e,r,s={},l={}){const p="string"==typeof t?(0,o.An)(t):t,a=e.geometry?[e.geometry]:[];return s.responseType="json",(0,n.el)(a,null,s).then(t=>{const n=t?.[0];null!=n&&((e=e.clone()).geometry=n);const a=(0,u.z)({...p.query,f:r,...l,...d(e,l)});return(0,i.A)((0,o.fj)(p.path,"queryTopFeatures"),{...s,query:{...a,...s.query}})})}},57561:(t,e,r)=>{r.r(e),r.d(e,{default:()=>f});var i,o=r(31635),s=r(66552),n=r(25482),l=r(4718),u=r(10107),p=r(56507),a=r(64108),d=r(43937),y=r(16930),c=r(65864),h=r(50498),m=r(77696);r(44208),r(53966),r(87811);let g=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],g.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],g.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],g.prototype,"orderByFields",void 0),g=i=(0,o.Cg)([(0,a.$)("esri.rest.support.TopFilter")],g);const w=g;var F,v=r(79677);const j=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),S=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let f=class extends((0,m.y)(n.o)){static{F=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new F((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],f.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:h.yR,json:{read:c.rS,write:!0}})],f.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],f.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],f.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],f.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],f.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],f.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:y.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],f.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],f.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],f.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],f.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],f.prototype,"start",void 0),(0,o.Cg)([(0,d.K)("start"),(0,d.K)("num")],f.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:j.read},write:{target:"spatialRel",writer:j.write}}})],f.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:v.A,json:{write:!0}})],f.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:w,json:{write:!0}})],f.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:S.read,write:{writer:S.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance}}}}})],f.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=F=(0,o.Cg)([(0,a.$)("esri.rest.support.TopFeaturesQuery")],f),f.from=(0,p.dp)(f)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[547,3169,5549,8125],{40547:(t,e,s)=>{s.d(e,{convert:()=>C,convertFromSpatialReferenceUnit:()=>x,convertToSpatialReferenceUnit:()=>b,meters:()=>i.L2,squareMeters:()=>i.A7,toAreaUnit:()=>_,toLengthUnit:()=>P});var n=s(59534),r=s(85935),i=s(71409);const a=[];function o(t){return 0===t.length?'""':t.startsWith('"')||t.startsWith(".")||t[0]>="0"&&t[0]<="9"?t:'"'+t.trim()+'"'}function c(t){let e="",s="",n=!1;for(let r=0;r<t.length;r++){const i=t[r];n?'"'===i?'"'===t[r+1]?(e+=`\\${i}`,r+=1):n=!1:e+=i:/\s/.test(i)||(","===i?(s+=""!==e?o(e)+",":",",e=""):")"===i||"]"===i?(s+=""!==e?o(e)+"]}":"]}",e=""):"("===i||"["===i?(s+='{ "entity": "'+e.toUpperCase().trim()+'", "values":[',e=""):'"'===i?(n=!0,e=""):e+=i)}return JSON.parse(s)}function u(t){try{for(let e=0;e<a.length;e++)if(a[e].spatialReferenceWkt===t)return a[e].unit;const e=l(c(t));if(null===e)return null;let s=null;for(const t of e.values)if("object"==typeof t&&("UNIT"===t.entity||"ANGLEUNIT"===t.entity||"LENGTHUNIT"===t.entity)){s=t;break}if(null===s)return null;const n=function(t,e,s){if(null!=s)try{if("EPSG"===s.values[0])return{type:t,wkid:Number.parseInt(s.values[1],10),factor:e}}catch(t){}return{type:t,factor:e}}("GEOGCS"===e.entity||"GEOGCRS"===e.entity?"angular":"linear",s.values[1],s.values[2]);return a.push({spatialReferenceWkt:t,unit:n}),a.length>10&&a.shift(),n}catch(t){return null}}function l(t){if(null===t)return null;switch(t.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return t}const e=[];for(const s of t.values)if("object"==typeof s&&void 0!==s.entity)switch(s.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return s;default:e.push(s)}for(const t of e){const e=l(t);if(null!=e)return e}return null}s(44208);var m=s(83047),h=s(22530);const f=-1;function d(t,e){let s;switch(t){case"linear":s=i.s9;break;case"angular":s=i.zD;break;case"area":s=i.y6;break;default:return null}return s.get(e)}function y(t){const e=t.wkid;if(null!=e){const t=h.A.units[h.A[e]];if(null!=t)switch(t){case"Meter":return d("linear",9001);case"Foot":return d("linear",9002);case"Foot_US":return d("linear",9003);case"Foot_Clarke":return d("linear",9005);case"Yard_Clarke":return d("linear",9037);case"Link_Clarke":return d("linear",9039);case"Yard_Sears":return d("linear",9040);case"Foot_Sears":return d("linear",9041);case"Chain_Sears":return d("linear",9042);case"Chain_Benoit_1895_B":return d("linear",9062);case"Yard_Indian":return d("linear",9084);case"Yard_Indian_1937":return d("linear",9085);case"Foot_Gold_Coast":return d("linear",9094);case"Chain":return d("linear",9097);case"Chain_Sears_1922_Truncated":return d("linear",9301);case"50_Kilometers":return d("linear",109030);case"150_Kilometers":return d("linear",109031);default:throw new Error(`Unknown unit name: ${t}`)}return m.yD.has(e)?d("angular",9105):d("angular",9102)}const s=t.wkt2||t.wkt;if(null!=s){const t=u(s);if(null!=t){if(null!=t.wkid){const e=d(t.type,t.wkid);if(null!=e)return e}return{type:t.type,wkid:f,factor:t.factor}}}return null}function p(t){if("linear"!==t.type)return null;if(t.wkid===f)return{type:"area",wkid:f,factor:t.factor**2};const e=i.SQ.get(t.wkid);return null==e?null:d("area",e)}function _(t){if(null!=t){if("number"==typeof t)return i.y6.get(t)??i.s9.get(t)??i.zD.get(t);if("string"!=typeof t)throw new r.D$(null,"InvalidParameter",null);switch((0,n.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return i.y6.get(109404);case"miles":case"mile":case"squaremile":case"squaremiles":return i.y6.get(109439);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.y6.get(109414);case"acres":case"acre":case"ac":return i.y6.get(109402);case"hectares":case"hectare":case"ha":return i.y6.get(109401);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return i.y6.get(109442);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.y6.get(109405);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.y6.get(109409);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.y6.get(109452);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.y6.get(109451);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.y6.get(109450);case"inch":case"inches":case"squareinch":case"squareinches":return i.y6.get(109453);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.y6.get(109406);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.y6.get(109413)}}}function P(t){if(null!=t){if("number"==typeof t)return i.s9.get(t)??i.zD.get(t)??i.y6.get(t);if("string"!=typeof t)throw new r.D$(null,"InvalidParameter",null);switch((0,n.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":case"hectares":case"hectare":case"ha":return i.s9.get(9001);case"miles":case"mile":case"squaremile":case"squaremiles":return i.s9.get(9093);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.s9.get(9036);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":case"acres":case"acre":case"ac":return i.s9.get(9096);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.s9.get(9002);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.s9.get(9030);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.s9.get(109007);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.s9.get(109006);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.s9.get(109005);case"inch":case"inches":case"squareinch":case"squareinches":return i.s9.get(109008);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.s9.get(9003);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.s9.get(9035)}}}function g(t,e,s){if(t.type!==e.type)throw new Error(`Incompatible unit types. src=${t.type} dest=${e.type}`);return s*(t.factor/e.factor)}function x(t,e,s){if(null==t||null==e)return s;const n=y(t);if(null==n)throw new Error("Unknown spatial reference unit.");const r="area"===e.type&&"linear"===n.type?p(n):n;if(null==r)throw new Error(`Unknown spatial reference ${e.type} unit.`);return g(r,e,s)}function b(t,e,s){if(null==t||null==e)return s;const n=y(e);if(null==n)throw new Error("Unknown spatial reference unit.");const r="area"===t.type&&"linear"===n.type?p(n):n;if(null==r)throw new Error(`Unknown spatial reference ${t.type} unit.`);return g(t,r,s)}function C(t,e,s){return null==t||null==e?s:g(t,e,s)}},59534:(t,e,s)=>{s.d(e,{B:()=>r,b:()=>i});var n=s(85935);function r(t){return t.toLowerCase().replaceAll(/[\s-]+/g,"")}class i{constructor(t,e){const s=new Map;for(const e of t){const t=r(e);if(s.has(t))throw new Error(`${e} already added as ${s.get(t)}`);s.set(t,e)}if(null!=e)for(const[t,n]of e){const e=r(t);if(s.has(e))throw new Error(`${t} already associated with ${s.get(e)}`);s.set(e,n)}this._enumMap=s}lookup(t){return this._enumMap.get(r(t))}get(t){const e=this.lookup(t);if(null==e)throw new n.D$(null,"InvalidParameter",null);return e}}},66070:(t,e,s)=>{s.d(e,{g7:()=>p,zo:()=>_});var n=s(76061),r=s(95213),i=s(55537),a=s(88885),o=s(83661);const c=1.4142135623730951,u=.017453292519943295,l=256,m=1024;class h{static construct(t,e,s){const n=new h;return n.x=t.x,n.y=t.y,n.m_next=-1,n.m_prev=-1,n.z=e,n.m=s,n.type=0,n}clone(){const t=new h;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new o.P(this.x,this.y)}}class f{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===i.G.enumLine)return this.offsetLine();if(t===i.G.enumEnvelope)return this.offsetEnvelope();if((0,i.f)(t)){const t=new a.P;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===i.G.enumPolyline){const t=new a.P;return this.offsetMultiPath(t),t}if(t===i.G.enumPolygon){const t=new a.a;return this.offsetMultiPath(t),t}(0,i.t)("")}offsetLine(){const t=this.m_inputGeometry,e=t.getStartXY(),s=t.getEndXY(),n=new o.P;n.setSub(s,e),n.normalize(),n.leftPerpendicularThis(),n.scale(this.m_distance),e.addThis(n),s.addThis(n);const r=t.clone();return r.setStartXY(e),r.setEndXY(s),r}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const e=new a.a;return e.addEnvelope(t,!1),this.m_inputGeometry=e,this.constructOffset()}const e=t.clone();return e.inflateCoords(this.m_distance,this.m_distance),e}progress(){}static buildPoint(t,e,s,n){n.x=t.x+e*Math.cos(s),n.y=t.y+e*Math.sin(s),n.type=t.type,n.z=t.z,n.m=t.m,n.m_next=-1,n.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,e){if(0===this.m_offsetPtCount)return void this.addPoint(t);const s=this.m_srcPtCount,n=this.m_srcPts[0===e?s-1:e-1],r=this.m_srcPts[e],i=f.dotSign(n,r,this.m_offsetPts[this.m_offsetPtCount-1],t);if(i>0)this.addPoint(t);else if(i<0)if(f.dotSign(n,r,r,this.m_offsetPts[this.m_offsetPtCount-1])>0){const r=new h;let i;i=0===e?s-2:1===e?s-1:e-2;const a=this.m_srcPts[i],c=Math.atan2(n.y-a.y,n.x-a.x);if(f.buildPoint(n,this.m_distance,c-o.o,r),this.m_offsetPts[this.m_offsetPtCount-1]=r.clone(),1===this.m_joins||2===this.m_joins){r.x=.5*(r.x+n.x),r.y=.5*(r.y+n.y),this.addPoint(r),f.buildPoint(n,this.m_distance,this.m_a1+o.o,r);const t=r.clone();t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),t.type|=l,this.addPoint(t),this.addPoint(r)}else f.buildPoint(n,this.m_distance,this.m_a1+o.o,r),r.type|=l,this.addPoint(r);this.addPointEx(t,e)}else{const t=new h;if(f.buildPoint(r,this.m_distance,this.m_a1+o.o,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+r.x),t.y=.5*(t.y+r.y),this.addPoint(t),f.buildPoint(r,this.m_distance,this.m_a2-o.o,t);const e=t.clone();e.x=.5*(e.x+r.x),e.y=.5*(e.y+r.y),e.type|=l,this.addPoint(e),this.addPoint(t)}else f.buildPoint(r,this.m_distance,this.m_a2-o.o,t),t.type|=l,this.addPoint(t)}}buildOffset(){const t=new h,e=this.m_srcPtCount;this.m_offsetPtCount=0;const s=.5*this.m_tolerance;let n=0,r=0;for(let i=0;i<e;i++){const a=this.m_srcPts[i],h=0===i?this.m_srcPts[e-1]:this.m_srcPts[i-1],d=i===e-1?this.m_srcPts[0]:this.m_srcPts[i+1];let y,p,_=0;{const t=h.x-a.x,e=h.y-a.y,s=d.x-a.x,c=d.y-a.y;y=Math.atan2(e,t),p=Math.atan2(c,s),this.m_a1=y,this.m_a2=p,0===i&&(n=y,r=p),_=o.P.orientationRobust(a.asPoint2D(),h.asPoint2D(),d.asPoint2D())}const P=p;if(p<y&&(p+=o.p),!(Math.abs(Math.abs(y-p)-Math.PI)<1e-8))if(_*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){f.buildPoint(a,this.m_distance,y+o.o,t),this.addPoint(t);const e=.001;t.x=a.x+(t.x-a.x)*e,t.y=a.y+(t.y-a.y)*e,this.addPoint(t),f.buildPoint(a,this.m_distance,p-o.o,t);const s=t.clone();s.x=a.x+(s.x-a.x)*e,s.y=a.y+(s.y-a.y)*e,s.type|=l,this.addPoint(s),this.addPoint(t)}else{const e=.5*(p-y),s=0===e?this.m_distance:this.m_distance/Math.abs(Math.sin(e));f.buildPoint(a,s,.5*(y+p),t),this.addPointEx(t,i)}else{if(512&a.type){const e=1-s/Math.abs(this.m_distance);let n=1,r=this.m_distance<0?-Math.PI:Math.PI;if(e>-1&&e<1){let t=2*Math.acos(e);t<u&&(t=u),n=Math.trunc(Math.PI/t+1.5),n>1&&(r/=n)}n<=1&&(n=2,r/=2);let c=y+o.o;f.buildPoint(a,this.m_distance,c,t),0===i&&(t.type|=m),this.addPointEx(t,i);const l=this.m_distance/Math.cos(r/2);for(c+=r/2,f.buildPoint(a,l,c,t),t.type|=m,this.addPoint(t);--n>0;)c+=r,f.buildPoint(a,l,c,t),t.type|=m,this.addPoint(t);f.buildPoint(a,this.m_distance,p-o.o,t),t.type|=m,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const e=1-s/Math.abs(this.m_distance);let n=1,r=p-o.o-(y+o.o);if(e>-1&&e<1){let t=2*Math.acos(e);t<u&&(t=u),n=Math.trunc(Math.abs(r)/t+1.5),n>1&&(r/=n)}const c=this.m_distance/Math.cos(.5*r);let l=y+o.o+.5*r;for(f.buildPoint(a,c,l,t),this.addPointEx(t,i);--n>0;)l+=r,f.buildPoint(a,c,l,t),this.addPoint(t);continue}if(2===this.m_joins){const e=h.x-a.x,s=h.y-a.y,n=d.x-a.x,r=d.y-a.y;let u=(e*n+s*r)/Math.sqrt(e*e+s*s)/Math.sqrt(n*n+r*r);if(u=Math.max(u,-1),u>1-1e-8){f.buildPoint(a,c*this.m_distance,p-.25*Math.PI,t),this.addPointEx(t,i),f.buildPoint(a,c*this.m_distance,p+.25*Math.PI,t),this.addPoint(t);continue}const l=Math.abs(this.m_distance/Math.sin(.5*Math.acos(u))),m=Math.abs(this.m_miterLimit*this.m_distance);if(l>m){const e=.5*(p-y),s=this.m_distance/Math.abs(Math.sin(e));f.buildPoint(a,s,.5*(y+p),t);const n=o.P.construct(t.x,t.y),r=o.P.construct(a.x,a.y),c=new o.P;c.setSub(n,r);const u=new o.P;u.setScaleAdd(m/c.length(),c,r);const h=Math.sqrt(l*l-this.m_distance*this.m_distance),d=(l-m)*Math.abs(this.m_distance)/h;this.m_distance>0?c.rightPerpendicularThis():c.leftPerpendicularThis(),c.scale(d/c.length());const _=new o.P;_.setAdd(u,c);const P=new o.P;P.setSub(u,c),t.x=_.x,t.y=_.y,this.addPointEx(t,i),t.x=P.x,t.y=P.y,this.addPoint(t);continue}const _=.5*(p-y),P=this.m_distance/Math.abs(Math.sin(_));f.buildPoint(a,P,.5*(y+p),t),this.addPointEx(t,i);continue}{let e;if(p=P,this.m_distance>0?(p>y&&(p-=o.p),e=y-p<o.o):(p<y&&(p+=o.p),e=p-y<o.o),e){const e=this.m_distance*c;let s;s=e<0?y+.25*Math.PI:y+3*Math.PI*.25,f.buildPoint(a,e,s,t),this.addPointEx(t,i),s=e<0?p-.25*Math.PI:p-3*Math.PI*.25,f.buildPoint(a,e,s,t),this.addPoint(t)}else{const e=.5*(p-y),s=this.m_distance/Math.abs(Math.sin(e));p<y&&(p+=o.p),f.buildPoint(a,s,(y+p)/2,t),this.addPointEx(t,i)}}}else f.buildPoint(a,this.m_distance,y+o.o,t),this.addPointEx(t,i),f.buildPoint(a,this.m_distance,p-o.o,t),this.addPoint(t)}}return this.m_a1=n,this.m_a2=r,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let t=!1;for(let t=0;t<this.m_offsetPtCount;t++){const e=this.m_offsetPts[t];e.m_next=t+1,e.m_prev=t-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let e=0;for(let s=0;s<this.m_offsetPtCount;s++)if(this.m_offsetPts[e].type&l){const s=this.deleteClosedSeg(e);if(-1===s){t=!0;break}e=s}else e=this.m_offsetPts[e].m_next;return!t&&(this.compressOffsetArray(e),!0)}deleteClosedSeg(t){const e=this.m_offsetPtCount-1;let s,n,r=t;for(let i=1;i<=e-2;i++){r=this.m_offsetPts[r].m_next,s=r,n=t;for(let t=1;t<=i;t++){if(n=this.m_offsetPts[n].m_prev,0===(this.m_offsetPts[n].type&l)&&0===(this.m_offsetPts[s].type&l)){const t=this.handleClosedIntersection(n,s);if(-1!==t)return t}s=this.m_offsetPts[s].m_prev}}return-1}handleClosedIntersection(t,e){const s=this.m_offsetPts[this.m_offsetPts[t].m_prev],n=this.m_offsetPts[t],r=this.m_offsetPts[this.m_offsetPts[e].m_prev],i=this.m_offsetPts[e];if(!this.sectGraphicRect(s,n,r,i))return-1;const a={pt:new h,bAtExistingPt:!1};if(((n.x-s.x)*(i.y-r.y)-(n.y-s.y)*(i.x-r.x))*this.m_distance<0&&this.findIntersection(s,n,r,i,a)&&!a.bAtExistingPt){const o=1e-8,c=Math.sqrt((n.x-s.x)*(n.x-s.x)+(n.y-s.y)*(n.y-s.y)),u=(n.x-s.x)/c,l=(n.y-s.y)/c,m=Math.sqrt((i.x-r.x)*(i.x-r.x)+(i.y-r.y)*(i.y-r.y)),h=(i.x-r.x)/m,f=(i.y-r.y)/m;let d=!1;const y=a.pt.clone();y.x+=(u+h)*o,y.y+=(l+f)*o;let p=r,_=a.pt,P=this.m_offsetPts[t].m_prev;for(;_.y>y.y!=p.y>y.y&&y.x<(p.x-_.x)*(y.y-_.y)/(p.y-_.y)+_.x&&(d=!d),p=_,P=this.m_offsetPts[P].m_next,P!==e;)_=this.m_offsetPts[P];if(d)return-1;const g=this.m_offsetPts[t].m_prev;return a.pt.type=n.type,a.pt.m_next=e,a.pt.m_prev=g,this.m_offsetPts[t]=a.pt,this.m_offsetPts[e].m_prev=t,e}return-1}sectGraphicRect(t,e,s,n){return Math.max(t.x,e.x)>=Math.min(s.x,n.x)&&Math.max(s.x,n.x)>=Math.min(t.x,e.x)&&Math.max(t.y,e.y)>=Math.min(s.y,n.y)&&Math.max(s.y,n.y)>=Math.min(t.y,e.y)}findIntersection(t,e,s,n,r){let i,a,o,c;return r.bAtExistingPt=!1,i=(e.y-t.y)*(n.x-s.x)-(e.x-t.x)*(n.y-s.y),a=(s.y-t.y)*(e.x-t.x)-(s.x-t.x)*(e.y-t.y),o=0===i?2:a/i,o>=0&&o<=1&&(c=o,i=(n.y-s.y)*(e.x-t.x)-(n.x-s.x)*(e.y-t.y),a=(t.y-s.y)*(n.x-s.x)-(t.x-s.x)*(n.y-s.y),o=0===i?2:a/i,o>=0&&o<=1)&&(r.pt.x=t.x+o*(e.x-t.x),r.pt.y=t.y+o*(e.y-t.y),this.m_bUseZ&&(r.pt.z=s.z+c*(n.z-s.z)),this.m_bUseM&&(r.pt.m=s.m+c*(n.m-s.m)),0!==c&&1!==c||0!==o&&1!==o||(r.bAtExistingPt=!0),!((0===c||1===c)&&o>0&&o<1||(0===o||1===o)&&c>0&&c<1))}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let e=0,s=t;do{const t=this.m_offsetPts[s].clone();this.m_offsetPts[e]=t,s=t.m_next,e++}while(s!==t);this.m_offsetPts[e]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=e+1}addPart(t,e){if(!(e<2))for(let s=0;s<e;s++){const e=this.m_offsetPts[t+s];if(s?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(e.x,e.y,e.z):this.m_resultPath.lineToCoords(e.x,e.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(e.x,e.y,e.z):this.m_resultPath.startPathCoords(e.x,e.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,e.m)}}}offsetMultiPath(t){const e=(0,a.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),s=e.querySegmentIterator();s.resetToFirstPath();let n=-1;for(;s.nextPath();)n++,this.offsetPath(e,n,t)}offsetPath(t,e,s){let n=t.getPathStart(e),r=t.getPathEnd(e);if(this.m_resultPath=s,t.isClosedPath(e)){const e=t.getXY(n);for(;r>n&&t.getXY(r-1).equals(e);)r--;if(r-n>=2){this.m_srcPtCount=r-n,this.m_srcPts.length=this.m_srcPtCount;for(let e=n;e<r;e++)this.progress(),this.m_srcPts[e-n]=h.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const e=t.getXY(n);for(;n<r-1&&t.getXY(n+1).equals(e);)n++;const s=t.getXY(r-1);for(;n<r-1&&t.getXY(r-2).equals(s);)r--;if(r-n>=2){this.m_srcPtCount=2*(r-n)-2,this.m_srcPts.length=this.m_srcPtCount;let s=h.construct(e,this.m_bUseZ?t.getAttributeAsDbl(1,n,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n,0):0);s.type|=1536,this.m_srcPts[0]=s;let i=1,a=this.m_srcPtCount-1;for(let e=n+1;e<r-1;e++,i++,a--)this.progress(),s=h.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0),this.m_srcPts[i]=s.clone(),s.type|=m,this.m_srcPts[a]=s.clone();if(s=h.construct(t.getXY(r-1),this.m_bUseZ?t.getAttributeAsDbl(1,r-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,r-1,0):0),s.type|=512,this.m_srcPts[i]=s.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,e=-1,s=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&m);s||(t=0);for(let n=1;n<this.m_offsetPtCount;n++){this.progress();const r=0!==(this.m_offsetPts[n].type&m);r?s||(e=n-1,e-t+1>1&&this.addPart(t,e-t+1)):s&&(t=n-1),s=r}s||(e=this.m_offsetPtCount-1,e-t+1>1&&this.addPart(t,e-t+1))}else{const t=0,e=this.m_offsetPtCount-1;e-t>=1&&this.addPart(t,e-t+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,e,s,n){const r=e.x-t.x,i=e.y-t.y,a=n.x-s.x,c=n.y-s.y,u=(0,o.t)(r,i,a,c);return(0,o.e)(u)}}class d extends n.G{constructor(t,e,s,n,r,i,a){super(),this.m_progressTracker=a,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=e,this.m_distance=s,this.m_joins=n,this.m_miterLimit=r,this.m_flattenError=i}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let e;return(0,i.c)(t),e=this.m_flattenError<=0?(0,r.b)(this.m_spatialReference,t,!0).total():this.m_flattenError,function(t,e,s,n,r,a){if(null===t&&(0,i.a)(""),t.getDimension()<1&&(0,i.a)(""),r>0||(0,i.a)(""),(0,i.c)(t),0===e||t.isEmpty())return t;const o=new f(a);return o.m_bUseZ=t.hasAttribute(1),o.m_bUseM=t.hasAttribute(2),o.m_inputGeometry=t,o.m_distance=e,o.m_tolerance=r,o.m_joins=s,o.m_miterLimit=n>1?n:1,o.m_progressCounter=0,o.constructOffset()}(t,this.m_distance,this.m_joins,this.m_miterLimit,e,this.m_progressTracker)}}const y=new class{getOperatorType(){return 10108}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e,s,n,r,i,a){return new d(t,e,s,n,r,i,a)}execute(t,e,s,n,r,i,a){return new d(null,e,s,n,r,i,a).offset(t)}};function p(t,e,s,n,r,i){return y.execute(t,e,s,n,r,i,null)}function _(t,e,s,r,i,a){const o=y.executeMany(new n.S(t),e,s,r,i,a,null);return Array.from(o)}},71409:(t,e,s)=>{s.d(e,{A7:()=>h,L2:()=>u,SQ:()=>n,s9:()=>c,y6:()=>m,zD:()=>a});const n=new Map([[1025,109452],[1033,109451],[9001,109404],[9002,109405],[9003,109406],[9005,109407],[9014,109408],[9030,109409],[9031,109410],[9033,109411],[9034,109412],[9035,109413],[9036,109414],[9037,109415],[9038,109416],[9039,109417],[9040,109418],[9041,109419],[9042,109420],[9043,109421],[9050,109422],[9051,109423],[9052,109424],[9053,109425],[9060,109426],[9061,109427],[9062,109428],[9063,109429],[9070,109430],[9080,109431],[9081,109432],[9082,109433],[9083,109434],[9084,109435],[9085,109436],[9086,109437],[9087,109438],[9093,109439],[9094,109440],[9095,109441],[9096,109442],[9097,109444],[9098,109445],[9099,109446],[9300,109447],[9301,109448],[9302,109449],[109001,109442],[109002,109443],[109003,109444],[109004,109445],[109005,109450],[109006,109451],[109007,109452],[109008,109453],[109009,109454],[109010,109455],[109011,109456],[109012,109457],[109013,109458],[109014,109459],[109015,109462],[109016,109464],[109017,109465],[109018,109466],[109030,109460],[109031,109461]]);function r(t){return(e,s)=>[e,{type:t,wkid:e,factor:s}]}const i=r("angular"),a=new Map([i(1031,4.84813681109536e-9),i(9101,1),i(9102,.017453292519943295),i(9103,.0002908882086657216),i(9104,484813681109536e-20),i(9105,.015707963267948967),i(9106,.015707963267948967),i(9109,1e-6),i(9112,.00015707963267948965),i(9113,15707963267948967e-22),i(9114,.0009817477042468104)]),o=r("linear"),c=new Map([o(1025,.001),o(1033,.01),o(9001,1),o(9002,.3048),o(9003,.30480060960121924),o(9005,.3047972654),o(9014,1.8288),o(9030,1852),o(9031,1.0000135965),o(9033,20.11684023368047),o(9034,.2011684023368047),o(9035,1609.3472186944375),o(9036,1e3),o(9037,.9143917962),o(9038,20.1166195164),o(9039,.201166195164),o(9040,.9143984146160287),o(9041,.3047994715386762),o(9042,20.116765121552632),o(9043,.2011676512155263),o(9050,.9143992),o(9051,.3047997333333333),o(9052,20.1167824),o(9053,.201167824),o(9060,.9143992042898124),o(9061,.30479973476327077),o(9062,20.116782494375872),o(9063,.2011678249437587),o(9070,.30480083333333335),o(9080,.30479951024814694),o(9081,.30479841),o(9082,.3047996),o(9083,.3047995),o(9084,.9143985307444408),o(9085,.91439523),o(9086,.9143988),o(9087,.9143985),o(9093,1609.344),o(9094,.3047997101815088),o(9095,.3048007491),o(9096,.9144),o(9097,20.1168),o(9098,.201168),o(9099,.914398),o(9300,.30479933333333337),o(9301,20.116756),o(9302,.20116756),o(109001,.9144),o(109002,.9144018288036576),o(109003,20.1168),o(109004,.201168),o(109005,.1),o(109006,.01),o(109007,.001),o(109008,.0254),o(109009,.025400050800101603),o(109010,5.0292),o(109011,5.029210058420118),o(109012,1853.248),o(109013,1853.184),o(109014,1.7018),o(109015,.8466683600033867),o(109016,.00035277777777777776),o(109017,1e-6),o(109018,1e-9),o(109030,5e4),o(109031,15e4)]),u=c.get(9001),l=r("area"),m=new Map([l(109401,1e4),l(109402,4046.8564224),l(109403,4046.872609874252),l(109404,1),l(109405,.09290304),l(109406,.09290341161327487),l(109407,.09290137299531805),l(109408,3.34450944),l(109409,3429904),l(109410,1.000027193184865),l(109411,404.6872609874253),l(109412,.04046872609874252),l(109413,2589998.470319522),l(109414,1e6),l(109415,.8361123569578626),l(109416,404.6783807676053),l(109417,.04046783807676053),l(109418,.8361244606523066),l(109419,.09290271785025629),l(109420,404.6842389557165),l(109421,.04046842389557164),l(109422,.83612589696064),l(109423,.0929028774400711),l(109424,404.6849341289498),l(109425,.04046849341289498),l(109426,.836125904805842),l(109427,.09290287831176021),l(109428,404.6849379260275),l(109429,.04046849379260275),l(109430,.09290354800069446),l(109431,.09290274144751023),l(109432,.09290207073852812),l(109433,.09290279616016),l(109434,.09290273520025),l(109435,.836124673027592),l(109436,.8361186366467529),l(109437,.8361251654414399),l(109438,.83612461680225),l(109439,2589988.110336),l(109440,.09290286332673177),l(109441,.09290349665192114),l(109442,.83612736),l(109443,.8361307045194736),l(109444,404.68564224),l(109445,.040468564224),l(109446,.836123702404),l(109447,.09290263360044447),l(109448,404.683871963536),l(109449,.0404683871963536),l(109450,.01),l(109451,1e-4),l(109452,1e-6),l(109453,64516e-8),l(109454,.0006451625806477421),l(109455,25.29285264),l(109456,25.29295381171408),l(109457,3434528.149504),l(109458,3434290.937856),l(109459,2.89612324),l(109460,25e8),l(109461,225e8),l(109462,.7168473118308245),l(109463,100),l(109464,1.244521604938271e-7),l(109465,1e-12),l(109466,1e-18)]),h=m.get(109404)},76061:(t,e,s)=>{s.d(e,{G:()=>n,S:()=>r});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class r extends n{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(t,e,s)=>{s.r(e),s.d(e,{fromExtent:()=>g,fromGeometry:()=>P,fromMultipoint:()=>x,fromPoint:()=>b,fromPolygon:()=>C,fromPolyline:()=>M,fromSpatialReference:()=>w,getSpatialReference:()=>_,toExtent:()=>v,toGeometry:()=>E,toMultipoint:()=>G,toPoint:()=>k,toPolygon:()=>S,toPolyline:()=>q});var n=s(83661),r=(s(79187),s(55537)),i=s(95213),a=s(88885),o=s(39117),c=s(5443),u=s(48526),l=s(86738),m=s(39829),h=s(82799),f=(s(90293),s(83299));const d="_gxVersion",y=2,p=1;function _(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function P(t){switch(t.type){case"point":return b(t);case"multipoint":return x(t);case"polyline":return M(t);case"polygon":return C(t);case"extent":return g(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function g(t){if(!t.getCacheValue(d)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(y,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(p,0,t.zmin,t.zmax),t.setCacheValue(d,e)}return t.getCacheValue(d)}function x(t){if(!t.getCacheValue(d)){const e=new a.M,s=new i.P,n=t.points,r=t.hasM,o=t.hasZ,c=o?3:2;for(let t=0,i=n.length;t<i;t++){const i=n[t];s.setXYCoords(i[0],i[1]),o&&s.setZ(i[2]??0),r&&s.setM(i[c]??NaN),e.add(s)}t.setCacheValue(d,e)}return t.getCacheValue(d)}function b(t){if(!t.getCacheValue(d)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(d,e)}return t.getCacheValue(d)}function C(t){if(!t.getCacheValue(d)){const{curveRings:e,hasM:s,hasZ:n,rings:r}=t,i=(0,f.fromGeometryToGXGeometry)({curveRings:e,hasM:s,hasZ:n,rings:r});t.setCacheValue(d,i)}return t.getCacheValue(d)}function M(t){if(!t.getCacheValue(d)){const{curvePaths:e,hasM:s,hasZ:n,paths:r}=t,i=(0,f.fromGeometryToGXGeometry)({curvePaths:e,hasM:s,hasZ:n,paths:r});t.setCacheValue(d,i)}return t.getCacheValue(d)}function w(t){if(t.wkid)return(0,o.c)(t.wkid);const e=t.wkt2||t.wkt;return e?(0,o.b)(e):null}function E(t,e){if(t)switch(t.getGeometryType()){case r.G.enumPoint:return k(t,e);case r.G.enumEnvelope:return v(t,e);case r.G.enumMultiPoint:return G(t,e);case r.G.enumPolyline:return q(t,e);case r.G.enumPolygon:return S(t,e)}return null}function v(t,e){if(t.isEmpty())return null;const s=new c.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),n=t.getDescription();if(n.hasM()){const e=t.queryInterval(y,0);s.mmin=e.vmin,s.mmax=e.vmax}if(n.hasZ()){const e=t.queryInterval(p,0);s.zmin=e.vmin,s.zmax=e.vmax}return s.setCacheValue(d,t),s}function G(t,e){if(t.isEmpty())return null;const s=t.getDescription(),n=s.hasM(),r=s.hasZ(),a=[],o=new i.P;for(let e=0,s=t.getPointCount();e<s;e++){t.getPointByVal(e,o);const s=[o.getX(),o.getY()];r&&s.push(o.getZ()),n&&s.push(o.getM()),a.push(s)}const c=new u.A({hasM:n,hasZ:r,points:a,spatialReference:e});return c.setCacheValue(d,t),c}function k(t,e){if(t instanceof n.P)return new l.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const s=new l.A({x:t.getX(),y:t.getY(),spatialReference:e}),r=t.getDescription();return r.hasM()&&(s.m=t.getM()),r.hasZ()&&(s.z=t.getZ()),s.setCacheValue(d,t),s}function S(t,e){if(t.isEmpty())return null;const s=m.A.fromJSON({spatialReference:e,...(0,f.toGeometry)(t,null)});return s.setCacheValue(d,t),s}function q(t,e){if(t.isEmpty())return null;const s=h.A.fromJSON({spatialReference:e,...(0,f.toGeometry)(t,null)});return s.setCacheValue(d,t),s}},85549:(t,e,s)=>{s.d(e,{executeOffsetJson:()=>u,r:()=>c});var n=s(40547),r=s(66070),i=s(78125),a=s(83299);const o={round:0,bevel:1,miter:2,square:3};function c(t,e,s,r,a,o){e=(0,n.convertToSpatialReferenceUnit)((0,n.toLengthUnit)(s),t.spatialReference,e);const c=(0,i.fromGeometry)(t),u=(0,i.getSpatialReference)(t),m=l(c,(0,i.fromSpatialReference)(u),e,r,a,o);return(0,i.toGeometry)(m,u)}function u(t,e,s,r,i,o){e=(0,n.convertToSpatialReferenceUnit)((0,n.toLengthUnit)(s),t.spatialReference,e);const c=(0,a.fromGeometry)(t),u=c.getGeometry(),m=c.getSpatialReference(),h=l(u,m,e,r,i,o);return(0,a.toGeometry)(h,m)}function l(t,e,s,n,i,a){const c=(0,r.g7)(t,e,s,o[n],i,a);if(!c.isEmpty())return c;{const c=t.clone();c.reverseAllPaths();const u=(0,r.g7)(c,e,-s,o[n],i,a);if(!u.isEmpty())return u.reverseAllPaths(),u}const u=Math.abs(s)/10,l=u/10;let m=a;if("round"===n&&(m+=l),"bevel"===n||"square"===n){const c=(0,r.g7)(t,e,s,o[n="miter"],i,a);if(!c.isEmpty())return c}if("miter"===n){const c=(0,r.g7)(t,e,s,o[n="round"],i,a);if(!c.isEmpty())return c}if("round"===n)for(;m<=u;m+=l){const a=(0,r.g7)(t,e,s,o[n],i,m);if(!a.isEmpty())return a}return null}},85935:(t,e,s)=>{s.d(e,{D$:()=>o,Nh:()=>m,O$:()=>l,mT:()=>u,ps:()=>f});var n=s(799);const r={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};class i extends Error{constructor(...t){super(...t)}}class a extends i{constructor(t,e){super(c(e)+t.message,{cause:t}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,a),e?.loc&&(this.loc=e.loc)}}class o extends Error{constructor(t,e,s,i){super("Execution error - "+c(s)+(0,n.HC)(r[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,o),s?.loc&&(this.loc=s.loc)}}function c(t){return t&&t.loc?`Line : ${t.loc.start?.line}, ${t.loc.start?.column}: `:""}class u extends Error{constructor(t,e,s,i){super("Compilation error - "+c(s)+(0,n.HC)(r[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),s?.loc&&(this.loc=s.loc)}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,l)}}function m(t,e,s){return"esri.arcade.arcadeexecutionerror"===s.declaredRootClass||"esri.arcade.arcadecompilationerror"===s.declaredRootClass?null===s.loc&&e?.loc?new a(s,{cause:s}):s:("esri.arcade.featureset.support.featureseterror"===s.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===s.declaredRootClass||s.declaredRootClass,e?.loc?new a(s,{cause:s}):s)}const h={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class f extends Error{constructor(t,e){super((0,n.HC)(h[t],e)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,f)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[980,7561],{10980:(t,e,r)=>{r.r(e),r.d(e,{executeForTopCount:()=>n});var i=r(2272),o=r(24645),s=r(57561);async function n(t,e,r){const n=(0,i.Dl)(t);return(await(0,o.xs)(n,s.default.from(e),{...r})).data.count}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[980,7561],{10980:(t,e,r)=>{r.r(e),r.d(e,{executeForTopCount:()=>n});var i=r(2272),o=r(24645),s=r(57561);async function n(t,e,r){const n=(0,i.Dl)(t);return(await(0,o.xs)(n,s.default.from(e),{...r})).data.count}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(43773),o=r(84952),s=r(65864),n=r(17136),l=r(21325),u=r(10536),p=r(58501);const a="Layer does not support extent calculation.";function d(t,e){const r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?i.outFields.includes("*")?o.outFields="*":o.outFields=i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){const t=i.timeExtent,{start:e,end:r}=t;null==e&&null==r||(o.time=e===r?e:`${e??"null"},${r??"null"}`),delete i.timeExtent}return o}async function y(t,e,r,i){const o=await g(t,e,"json",i);return(0,p.q)(e,r,o.data),o}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:g(t,e,"json",r,{returnIdsOnly:!0})}async function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:g(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(a);if(e.hasOwnProperty("count"))throw new Error(a);return t})}function m(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):g(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}function g(t,e,r,s={},l={}){const p="string"==typeof t?(0,o.An)(t):t,a=e.geometry?[e.geometry]:[];return s.responseType="json",(0,n.el)(a,null,s).then(t=>{const n=t?.[0];null!=n&&((e=e.clone()).geometry=n);const a=(0,u.z)({...p.query,f:r,...l,...d(e,l)});return(0,i.A)((0,o.fj)(p.path,"queryTopFeatures"),{...s,query:{...a,...s.query}})})}},57561:(t,e,r)=>{r.r(e),r.d(e,{default:()=>C});var i,o=r(31635),s=r(66552),n=r(25482),l=r(4718),u=r(10107),p=r(56507),a=r(64108),d=r(43937),y=r(16930),c=r(65864),h=r(50498),m=r(77696);r(44208),r(53966),r(87811);let g=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],g.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],g.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],g.prototype,"orderByFields",void 0),g=i=(0,o.Cg)([(0,a.$)("esri.rest.support.TopFilter")],g);const w=g;var F,v=r(79677);const j=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),S=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let C=class extends((0,m.y)(n.o)){static{F=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new F((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],C.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],C.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:h.yR,json:{read:c.rS,write:!0}})],C.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],C.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],C.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],C.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],C.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],C.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],C.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:y.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],C.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],C.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],C.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],C.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],C.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],C.prototype,"start",void 0),(0,o.Cg)([(0,d.K)("start"),(0,d.K)("num")],C.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:j.read},write:{target:"spatialRel",writer:j.write}}})],C.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:v.A,json:{write:!0}})],C.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:w,json:{write:!0}})],C.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:S.read,write:{writer:S.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance}}}}})],C.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],C.prototype,"where",void 0),C=F=(0,o.Cg)([(0,a.$)("esri.rest.support.TopFeaturesQuery")],C),C.from=(0,p.dp)(C)}}]);
|