@arcgis/core 5.1.0-next.104 → 5.1.0-next.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analysis/AreaMeasurementAnalysis.d.ts +5 -5
- package/analysis/DimensionAnalysis.d.ts +3 -3
- package/analysis/DimensionSimpleStyle.d.ts +2 -2
- package/analysis/DirectLineMeasurementAnalysis.d.ts +4 -4
- package/analysis/DistanceMeasurementAnalysis.d.ts +4 -4
- package/analysis/ElevationProfileAnalysis.d.ts +3 -3
- package/analysis/LengthDimension.d.ts +2 -2
- package/analysis/LineOfSightAnalysis.d.ts +4 -4
- package/analysis/ShadowCast/DiscreteOptions.d.ts +7 -3
- package/analysis/ShadowCast/MinDurationOptions.d.ts +5 -1
- package/analysis/ShadowCast/TotalDurationOptions.d.ts +7 -3
- package/analysis/ShadowCast/types.d.ts +1 -1
- package/analysis/ShadowCastAnalysis.d.ts +90 -66
- package/analysis/SliceAnalysis.d.ts +4 -4
- package/analysis/SlicePlane.d.ts +3 -3
- package/analysis/Viewshed.d.ts +2 -2
- package/analysis/ViewshedAnalysis.d.ts +3 -3
- package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +1 -1
- package/analysis/VolumeMeasurementAnalysis.d.ts +3 -3
- package/applications/Components/imageryUtils.d.ts +24 -0
- package/applications/Components/layerUtils.d.ts +21 -0
- package/applications/Components/layerUtils.js +2 -0
- package/applications/Components/templateUtils.d.ts +11 -1
- package/applications/Components/templateUtils.js +1 -1
- package/arcgisGlobal.d.ts +1 -0
- package/assets/components/assets/icon/buttons16.json +1 -0
- package/assets/components/assets/icon/buttons24.json +1 -0
- package/assets/components/assets/icon/buttons32.json +1 -0
- package/assets/components/assets/icon/entityTypes16.json +1 -0
- package/assets/components/assets/icon/entityTypes24.json +1 -0
- package/assets/components/assets/icon/entityTypes32.json +1 -0
- package/assets/esri/core/t9n/Units.json +1 -1
- package/assets/esri/core/t9n/Units_ar.json +1 -1
- package/assets/esri/core/t9n/Units_bg.json +1 -1
- package/assets/esri/core/t9n/Units_bs.json +1 -1
- package/assets/esri/core/t9n/Units_ca.json +1 -1
- package/assets/esri/core/t9n/Units_cs.json +1 -1
- package/assets/esri/core/t9n/Units_da.json +1 -1
- package/assets/esri/core/t9n/Units_de.json +1 -1
- package/assets/esri/core/t9n/Units_el.json +1 -1
- package/assets/esri/core/t9n/Units_en.json +1 -1
- package/assets/esri/core/t9n/Units_es.json +1 -1
- package/assets/esri/core/t9n/Units_et.json +1 -1
- package/assets/esri/core/t9n/Units_fi.json +1 -1
- package/assets/esri/core/t9n/Units_fr.json +1 -1
- package/assets/esri/core/t9n/Units_he.json +1 -1
- package/assets/esri/core/t9n/Units_hr.json +1 -1
- package/assets/esri/core/t9n/Units_hu.json +1 -1
- package/assets/esri/core/t9n/Units_id.json +1 -1
- package/assets/esri/core/t9n/Units_it.json +1 -1
- package/assets/esri/core/t9n/Units_ja.json +1 -1
- package/assets/esri/core/t9n/Units_ko.json +1 -1
- package/assets/esri/core/t9n/Units_lt.json +1 -1
- package/assets/esri/core/t9n/Units_lv.json +1 -1
- package/assets/esri/core/t9n/Units_nl.json +1 -1
- package/assets/esri/core/t9n/Units_no.json +1 -1
- package/assets/esri/core/t9n/Units_pl.json +1 -1
- package/assets/esri/core/t9n/Units_pt-BR.json +1 -1
- package/assets/esri/core/t9n/Units_pt-PT.json +1 -1
- package/assets/esri/core/t9n/Units_ro.json +1 -1
- package/assets/esri/core/t9n/Units_ru.json +1 -1
- package/assets/esri/core/t9n/Units_sk.json +1 -1
- package/assets/esri/core/t9n/Units_sl.json +1 -1
- package/assets/esri/core/t9n/Units_sr.json +1 -1
- package/assets/esri/core/t9n/Units_sv.json +1 -1
- package/assets/esri/core/t9n/Units_th.json +1 -1
- package/assets/esri/core/t9n/Units_tr.json +1 -1
- package/assets/esri/core/t9n/Units_uk.json +1 -1
- package/assets/esri/core/t9n/Units_vi.json +1 -1
- package/assets/esri/core/t9n/Units_zh-CN.json +1 -1
- package/assets/esri/core/t9n/Units_zh-HK.json +1 -1
- package/assets/esri/core/t9n/Units_zh-TW.json +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/01c70c27aa3a955e2928.js +262 -0
- package/assets/esri/core/workers/chunks/{7d571845292b1b7769c2.js → 065dd2fdc834146423c7.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5bd0a4f82df5e942b70.js → 093f27e4e4781870b431.js} +1 -1
- package/assets/esri/core/workers/chunks/{2a5f6a8d282f2c391591.js → 15920af0c4f46773b06e.js} +1 -1
- package/assets/esri/core/workers/chunks/179c9fe4ac83b42e5976.js +1 -0
- package/assets/esri/core/workers/chunks/1d1929f98d941179be29.js +2 -0
- package/assets/esri/core/workers/chunks/{24247ee93f43fff5e596.js.LICENSE.txt → 1d1929f98d941179be29.js.LICENSE.txt} +1 -3
- package/assets/esri/core/workers/chunks/1ebb613bbe09fcf274d8.js +1 -0
- package/assets/esri/core/workers/chunks/24b43fb12fc3009fdc30.js +1 -0
- package/assets/esri/core/workers/chunks/2b9661700743d1f9717e.js +1 -0
- package/assets/esri/core/workers/chunks/2f0a3b22fc46d832e240.js +1 -0
- package/assets/esri/core/workers/chunks/340f2c996f62f7f5ceae.js +1 -0
- package/assets/esri/core/workers/chunks/466c250537415f12eb59.js +1 -0
- package/assets/esri/core/workers/chunks/549d348ca181d06aefb7.js +2 -0
- package/assets/esri/core/workers/chunks/{0cb8bc6dbbbe3b212712.js → 558606a1af22e4a0d536.js} +1 -1
- package/assets/esri/core/workers/chunks/{7485d59d60d61737d662.js → 55b765c72d13b3b911f9.js} +1 -1
- package/assets/esri/core/workers/chunks/5cdf87e7a59ace38df87.js +1 -0
- package/assets/esri/core/workers/chunks/622bdd1b9d5d292ec12b.js +1 -0
- package/assets/esri/core/workers/chunks/{bff0c4094c14cb97b18f.js → 63ea4191d441efd2f146.js} +1 -1
- package/assets/esri/core/workers/chunks/69c9eb93553b006b640d.js +2 -0
- package/assets/esri/core/workers/chunks/6d20d741b8ae1a45b422.js +1 -0
- package/assets/esri/core/workers/chunks/{b63cbf6c2c9ec1b02b9a.js → 6e21675bbd7a44070771.js} +1 -1
- package/assets/esri/core/workers/chunks/702a3ef9e1b3442cbee7.js +1 -0
- package/assets/esri/core/workers/chunks/762e23466308f22d7076.js +1 -0
- package/assets/esri/core/workers/chunks/{52219561c144e5cb4442.js → 770611659b38066a6228.js} +1 -1
- package/assets/esri/core/workers/chunks/{c476f4979048e558baa7.js → 7ce60331f94ee0a5d674.js} +57 -75
- package/assets/esri/core/workers/chunks/7e02e5c6979090fe3ea7.js +1 -0
- package/assets/esri/core/workers/chunks/825db2ea15308ee6e5dc.js +1 -0
- package/assets/esri/core/workers/chunks/{bf2c202dec5ab7bc770b.js → 829a0583b8a228c65379.js} +1 -1
- package/assets/esri/core/workers/chunks/8330302096d4312a4393.js +1 -0
- package/assets/esri/core/workers/chunks/885eac78a76184efa1e5.js +1 -0
- package/assets/esri/core/workers/chunks/{79dc7045d9a2d43ba8df.js → 890b7a1153b7f65eba9a.js} +1 -1
- package/assets/esri/core/workers/chunks/8a1751187a20b6578875.js +1 -0
- package/assets/esri/core/workers/chunks/{d610f517fb3c6cb24365.js → 8ade869fa9bae446266a.js} +1 -1
- package/assets/esri/core/workers/chunks/{44636ef119c6a576470b.js → 94eab215bab3e4e0e5b5.js} +1 -1
- package/assets/esri/core/workers/chunks/95dee5853c6e89f15ea9.js +1 -0
- package/assets/esri/core/workers/chunks/a5b9ae4c93f9af7589f2.js +1 -0
- package/assets/esri/core/workers/chunks/{95798e3de3419fdda6ac.js → a8ae00e06f98e04aee8e.js} +1 -1
- package/assets/esri/core/workers/chunks/aaad0d3e82ed917d3886.js +1 -0
- package/assets/esri/core/workers/chunks/b3e8ab68fc38306f13c6.js +1 -0
- package/assets/esri/core/workers/chunks/b7a81fd4994eabba1869.js +640 -0
- package/assets/esri/core/workers/chunks/{9542ef3f6c2bc7c14d85.js → b9850fe7dcdaed0c327c.js} +1 -1
- package/assets/esri/core/workers/chunks/{f7e386ece75afb6e4be5.js → bc249bb667f0564ad093.js} +1 -1
- package/assets/esri/core/workers/chunks/bd59cb5abc67e46f1b2c.js +2 -0
- package/assets/esri/core/workers/chunks/{f3a9100518b044e79501.js → be817be7c81fb630122f.js} +1 -1
- package/assets/esri/core/workers/chunks/{3c9482764c9e4f8bcbb0.js → c187bc997bad61b6c6e9.js} +1 -1
- package/assets/esri/core/workers/chunks/c4872cf3b71d00f450e1.js +1 -0
- package/assets/esri/core/workers/chunks/c5ab346a226df1894302.js +1 -0
- package/assets/esri/core/workers/chunks/{ce0c7070eeb723a718e7.js → d859c046a3ea42530bff.js} +1 -1
- package/assets/esri/core/workers/chunks/da29cf0e64065631a470.js +1 -0
- package/assets/esri/core/workers/chunks/{bb04aff0b4947408592c.js → dcba6c766eee8b90381a.js} +1 -1
- package/assets/esri/core/workers/chunks/ddebc1dc10a2d207389f.js +1 -0
- package/assets/esri/core/workers/chunks/e393fd61deb2e7f22ee6.js +1 -0
- package/assets/esri/core/workers/chunks/ea2bf7c543cc536400b7.js +30 -0
- package/assets/esri/core/workers/chunks/ece30bfd5c49b8d99752.js +1 -0
- package/assets/esri/core/workers/chunks/ecf4d07917efc97eb991.js +1 -0
- package/assets/esri/core/workers/chunks/ee56290e600cbeb25a00.js +1 -0
- package/assets/esri/core/workers/chunks/f52c6efc5a2abf5ac845.js +1 -0
- package/assets/esri/core/workers/chunks/{5cffc7b49966201eccdb.js → f75295cdd5e84eb97d5a.js} +1 -1
- package/assets/esri/core/workers/chunks/f7fe17a22390a24d6df8.js +2 -0
- package/assets/esri/core/workers/chunks/f9324420f2c6ac240f63.js +1 -0
- package/assets/esri/core/workers/chunks/{855bf811cd79b97c169a.js → fae2c8f053927559fff0.js} +1 -1
- package/assets/esri/core/workers/chunks/{64e268ebac0b62076f81.js → fbb23db01f3cf629d32e.js} +1 -1
- package/assets/esri/core/workers/chunks/fc1fe1f58a65a1694c09.js +1 -0
- package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +84 -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/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_en.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_cs.json +1 -1
- package/chunks/ChapmanAtmosphere.glsl.js +14 -19
- package/chunks/ComponentShader.glsl.js +11 -15
- package/chunks/Compositing.glsl.js +4 -4
- package/chunks/GaussianSplatShadow.glsl.js +7 -7
- package/chunks/GlobalIllumination.glsl.js +27 -50
- package/chunks/GlobalIlluminationBlur.glsl.js +16 -11
- package/chunks/Terrain.glsl.js +1 -1
- package/config.js +1 -1
- package/core/ReactiveSet.js +1 -1
- package/core/generatorUtils.js +2 -0
- package/core/libs/gl-matrix-2/factories/vec2f64.js +1 -1
- package/core/libs/gl-matrix-2/math/vec2.js +1 -1
- package/core/mathUtils.js +1 -1
- package/core/typedArrayUtil.js +1 -1
- package/geometry/HeightModelInfo.js +1 -1
- package/geometry/geometryEngine.d.ts +2 -2
- package/geometry/support/buffer/BufferView.js +1 -1
- package/geometry/support/vcsData.js +1 -1
- package/geometry/support/vcsLookup.js +1 -1
- package/kernel.js +1 -1
- package/layers/DimensionLayer.d.ts +5 -5
- package/layers/FeatureLayer.d.ts +2 -2
- package/layers/GaussianSplatLayer.d.ts +3 -3
- package/layers/LineOfSightLayer.d.ts +5 -5
- package/layers/ParquetLayer.d.ts +6 -4
- package/layers/SubtypeGroupLayer.d.ts +2 -2
- package/layers/VideoLayer.js +1 -1
- package/layers/ViewshedLayer.d.ts +3 -3
- package/layers/graphics/sources/ParquetSource.js +1 -1
- package/layers/graphics/sources/parquet/FileProvider.js +2 -0
- package/layers/graphics/sources/parquet/PortalParquetFileProvider.js +2 -0
- package/layers/graphics/sources/parquet/PortalParquetLayerFileProvider.js +2 -0
- package/layers/graphics/sources/parquet/UrlsFileProvider.js +2 -0
- package/layers/graphics/sources/parquet/createFileProvider.js +2 -0
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -2
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
- package/layers/knowledgeGraph/layerUtils.js +1 -1
- package/layers/orientedImagery/core/utils.js +1 -1
- package/layers/raster/datasets/ImageAuxRaster.js +1 -1
- package/layers/raster/datasets/pixelReader.js +1 -1
- package/layers/raster/formats/JpgPlus.js +1 -1
- package/layers/raster/formats/RasterCodec.js +1 -1
- package/layers/raster/functions/clipUtils.js +1 -1
- package/layers/support/AggregateField.d.ts +2 -1
- package/layers/support/LayerContingentValuesCache.js +1 -1
- package/layers/support/SubtypeSublayer.d.ts +4 -4
- package/layers/support/parquetUtils.d.ts +18 -7
- package/layers/support/parquetUtils.js +1 -1
- package/layers/support/rasterFunctionUtils.d.ts +2 -2
- package/layers/video/VideoController.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/linkChart/ChronologicalLayoutSettings.d.ts +1 -1
- package/networks/CircuitManager.d.ts +3 -3
- package/networks/UnitIdentifierManager.d.ts +1 -1
- package/networks/UnitIdentifierManager.js +1 -1
- package/networks/UtilityNetwork.d.ts +2 -2
- package/networks/UtilityNetwork.js +1 -1
- package/networks/support/Circuit.d.ts +1 -1
- package/networks/support/CircuitLocation.d.ts +1 -1
- package/networks/support/CircuitSection.d.ts +1 -1
- package/networks/support/Subcircuit.d.ts +1 -1
- package/networks/support/TraceJobInfo.js +1 -1
- package/networks/support/jsonTypes.d.ts +10 -3
- package/package.json +3 -3
- package/popup/FieldInfo.d.ts +4 -2
- package/popup/support/FieldInfoFormat.d.ts +3 -2
- package/rest/featureService/FeatureService.d.ts +1 -1
- package/rest/knowledgeGraph/FieldIndex.d.ts +1 -1
- package/rest/knowledgeGraph/GraphObjectType.d.ts +2 -2
- package/rest/knowledgeGraph/GraphSearch.d.ts +1 -1
- package/rest/knowledgeGraph/GraphSearchStreaming.d.ts +1 -1
- package/rest/networks/circuits/support/ExportCircuitsParameters.d.ts +19 -1
- package/rest/networks/circuits/support/ExportCircuitsResult.js +1 -1
- package/rest/networks/circuits/support/VerifyCircuitsParameters.d.ts +18 -10
- package/rest/networks/circuits/support/VerifyCircuitsParameters.js +1 -1
- package/rest/networks/support/TraceParameters.js +1 -1
- package/rest/networks/support/TraceResult.js +1 -1
- package/rest/networks/trace.js +1 -1
- package/rest/networks/unitIdentifiers/support/QueryUnitIdentifiersParameters.js +1 -1
- package/rest/support/AreasAndLengthsParameters.d.ts +1 -1
- package/rest/support/GeneralizeParameters.d.ts +1 -1
- package/rest/support/Query.d.ts +1 -1
- package/rest/support/RelationParameters.d.ts +1 -1
- package/rest/support/types.d.ts +1 -1
- package/support/revision.js +1 -1
- package/symbols/CIMSymbol.d.ts +1 -1
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +1 -0
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.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/ParquetSnapshotSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ParquetSourceChunk.js +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.d.ts +1 -0
- package/views/3d/analysis/DimensionAnalysisView3D.d.ts +7 -6
- package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.d.ts +2 -0
- package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +2 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.d.ts +14 -6
- package/views/3d/analysis/SliceAnalysisView3D.d.ts +4 -3
- package/views/3d/analysis/Viewshed/ViewshedDrawToolRenderer.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedInteractionVisuals.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedPlacementOperation.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedPlacementPointPlugin.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedPlacementRootPlugin.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedSnappingController.js +2 -0
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool2.js +1 -1
- package/views/3d/analysis/Viewshed/analysisViewRegister.js +1 -1
- package/views/3d/analysis/Viewshed/placementUtils.js +2 -0
- package/views/3d/analysis/Viewshed/toolLifecycleUtils.js +2 -0
- package/views/3d/analysis/Viewshed/viewshedSubToolUtils.js +1 -1
- package/views/3d/analysis/Viewshed/viewshedToolUtils.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +4 -3
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/graphics/polygonUtils.js +1 -1
- package/views/3d/layers/support/UVWorkspace.js +2 -0
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/layers/support/uvUtils.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
- package/views/3d/support/meshProcessing.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +8 -8
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +13 -9
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +63 -49
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphereTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationBlur.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/lib/AttributeArray.js +1 -1
- package/views/3d/webgl-engine/lib/Compositor.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/PathCapBuilder.js +1 -1
- package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFieldCreation.js +1 -1
- package/views/3d/webgl-engine/materials/PathLayouts.js +2 -0
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/VaoRenderer.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CompositingTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CompositingTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +2 -3
- package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ditherNoise.glsl.js +1 -1
- package/views/PopupView.d.ts +77 -1
- package/views/PopupView.js +1 -1
- package/views/layers/DimensionLayerView.d.ts +2 -1
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/views/layers/LineOfSightLayerView.d.ts +2 -1
- package/views/layers/ViewshedLayerView.d.ts +2 -1
- package/webscene/Slide.js +1 -1
- package/widgets/Attachments/types.d.ts +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +38 -5
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/ReactiveContingentValuesManager.js +2 -0
- package/widgets/BatchAttributeForm/ReactiveGraphic.js +1 -1
- package/widgets/BatchAttributeForm/attachmentUtils.js +1 -1
- package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
- package/widgets/BatchAttributeForm/css.js +1 -1
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +11 -0
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +77 -0
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/UtilityNetworkAssociationsElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm/interfaceUtils.js +2 -0
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/types.d.ts +30 -2
- package/widgets/BatchAttributeForm.d.ts +52 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/Editor.d.ts +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/LayerList/LayerListItem.js +1 -1
- package/widgets/OrientedImageryViewer/components/VideoEnhancementTools.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/TableList/TableListViewModel.js +1 -1
- package/widgets/TimeSlider.d.ts +3 -3
- package/widgets/Track/TrackViewModel.d.ts +1 -0
- package/widgets/Track/TrackViewModel.js +1 -1
- package/widgets/Track.js +1 -1
- package/widgets/VideoPlayer/VideoPlayerViewModel.d.ts +10 -0
- package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
- package/widgets/support/ContingentValuesManager.js +1 -1
- package/widgets/support/GeolocationPositioning.d.ts +1 -0
- package/widgets/support/GeolocationPositioning.js +1 -1
- package/widgets/support/forms/formUtils.js +1 -1
- package/assets/esri/core/workers/chunks/037b36d415ae27e987f9.js +0 -1
- package/assets/esri/core/workers/chunks/11b0d3a825fe50dd1e84.js +0 -1
- package/assets/esri/core/workers/chunks/1a3426276dc82a8a80f2.js +0 -1
- package/assets/esri/core/workers/chunks/1c83e61fd9a4f8fc8372.js +0 -1
- package/assets/esri/core/workers/chunks/1cb0c4fc315bbc2bd00b.js +0 -1
- package/assets/esri/core/workers/chunks/24247ee93f43fff5e596.js +0 -2
- package/assets/esri/core/workers/chunks/276cb6a1cdd26d0e1444.js +0 -1
- package/assets/esri/core/workers/chunks/29b00d07d3e1d095c590.js +0 -2
- package/assets/esri/core/workers/chunks/2f903bd3a2611e7f0946.js +0 -30
- package/assets/esri/core/workers/chunks/2fda38219d778f0447b5.js +0 -1
- package/assets/esri/core/workers/chunks/35fdd62277fd06468a29.js +0 -2
- package/assets/esri/core/workers/chunks/38d7430d2370b69334d7.js +0 -1
- package/assets/esri/core/workers/chunks/39d6032d79720935910d.js +0 -1
- package/assets/esri/core/workers/chunks/40caf5e09e4382d81104.js +0 -640
- package/assets/esri/core/workers/chunks/4213aa844900fcf95287.js +0 -1
- package/assets/esri/core/workers/chunks/594e1f633527749d92d7.js +0 -1
- package/assets/esri/core/workers/chunks/5dafd35801dca4229aed.js +0 -1
- package/assets/esri/core/workers/chunks/642be1619c0e76355cb6.js +0 -1
- package/assets/esri/core/workers/chunks/6d66dc77af8d112c33c6.js +0 -1
- package/assets/esri/core/workers/chunks/7b3642195d6d3ea9b830.js +0 -1
- package/assets/esri/core/workers/chunks/7e57029ec958f6423d5d.js +0 -2
- package/assets/esri/core/workers/chunks/8042e001545e2782499c.js +0 -1
- package/assets/esri/core/workers/chunks/881234f25c7814de8753.js +0 -1
- package/assets/esri/core/workers/chunks/8a7682071941c35f05c1.js +0 -1
- package/assets/esri/core/workers/chunks/8e986167d4a393ee41ea.js +0 -1
- package/assets/esri/core/workers/chunks/8fdd57e2a0af647f1e3e.js +0 -1
- package/assets/esri/core/workers/chunks/90ea570f6b6ce8ca693b.js +0 -1
- package/assets/esri/core/workers/chunks/9373daa677dc767d7cf0.js +0 -1
- package/assets/esri/core/workers/chunks/95df6d2ebacc43ac5fa3.js +0 -1
- package/assets/esri/core/workers/chunks/a02ebdcb802d128c8eee.js +0 -1
- package/assets/esri/core/workers/chunks/adf72d87f0114aeade0e.js +0 -1
- package/assets/esri/core/workers/chunks/b1a21a4d7d73ad7d0e47.js +0 -1
- package/assets/esri/core/workers/chunks/b75e090a7e935ff870a3.js +0 -1
- package/assets/esri/core/workers/chunks/bacf0c9d5d3e084dea61.js +0 -1
- package/assets/esri/core/workers/chunks/c0e4fd6fa1d765275248.js +0 -2
- package/assets/esri/core/workers/chunks/cc8d55d1830d7542c3f5.js +0 -262
- package/assets/esri/core/workers/chunks/cf3c0bee919bb509cd4f.js +0 -1
- package/assets/esri/core/workers/chunks/cfaa6e205bfc0c94a1b1.js +0 -1
- package/assets/esri/core/workers/chunks/dcb7a3ff59677b1cf0f1.js +0 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphereTechniqueConfiguration.js +0 -2
- /package/assets/esri/core/workers/chunks/{7e57029ec958f6423d5d.js.LICENSE.txt → 549d348ca181d06aefb7.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{29b00d07d3e1d095c590.js.LICENSE.txt → 69c9eb93553b006b640d.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{35fdd62277fd06468a29.js.LICENSE.txt → bd59cb5abc67e46f1b2c.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{c0e4fd6fa1d765275248.js.LICENSE.txt → f7fe17a22390a24d6df8.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9863],{85334(t,e,r){r.d(e,{$:()=>y,IB:()=>s,Iy:()=>x,N2:()=>w,RH:()=>b,ZD:()=>C});var n=r(68197),o=r(4576),i=r(4718);function s(t){return"r"in t&&"g"in t&&"b"in t}function a(t){return"h"in t&&"s"in t&&"v"in t}function l(t){return"l"in t&&"a"in t&&"b"in t}function c(t){return"l"in t&&"c"in t&&"h"in t}r(34727),r(78955),r(91829);const u=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],h=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(t,e){const r=[];let n,o;if(t[0].length!==e.length)throw new Error("dimensions do not match");const i=t.length,s=t[0].length;let a=0;for(n=0;n<i;n++){for(a=0,o=0;o<s;o++)a+=t[n][o]*e[o];r.push(a)}return r}function p(t){const e=[t.r/255,t.g/255,t.b/255].map(t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4),r=f(u,e);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function d(t){const e=f(h,[t.x/100,t.y/100,t.z/100]).map(t=>{const e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))});return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function m(t){const e=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function g(t){const e=t.l,r=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function y(t){return s(t)?t:c(t)?function(t){return d(g(function(t){const e=t.l,r=t.c,n=t.h;return{l:e,a:r*Math.cos(n),b:r*Math.sin(n)}}(t)))}(t):l(t)?function(t){return d(g(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?d(t):a(t)?function(t){const e=(t.h+360)%360/60,r=t.s/100,n=t.v/100*255,o=n*r,i=o*(1-Math.abs(e%2-1));let s;switch(Math.floor(e)){case 0:s={r:o,g:i,b:0};break;case 1:s={r:i,g:o,b:0};break;case 2:s={r:0,g:o,b:i};break;case 3:s={r:0,g:i,b:o};break;case 4:s={r:i,g:0,b:o};break;case 5:case 6:s={r:o,g:0,b:i};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+n-o),s.g=Math.round(s.g+n-o),s.b=Math.round(s.b+n-o),s}(t):t}function w(t){return a(t)?t:function(t){const e=t.r,r=t.g,n=t.b,o=Math.max(e,r,n),i=o-Math.min(e,r,n);let s=o,a=0===i?0:o===e?(r-n)/i%6:o===r?(n-e)/i+2:(e-r)/i+4,l=0===i?0:i/s;return a<0&&(a+=6),a*=60,l*=100,s*=100/255,{h:a,s:l,v:s}}(y(t))}function C(t){return l(t)?t:function(t){return m(p(t))}(y(t))}function b(t){return c(t)?t:function(t){return function(t){const e=t.l,r=t.a,n=t.b,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i=i>0?i:i+2*Math.PI,{l:e,c:o,h:i}}(m(p(t)))}(y(t))}function x(t,e,r={}){if(0===t.length||e<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new n.A(t):t)).length||1===e){const r=[],n=t[0];for(let t=0;t<e;t++)r.push(n.clone());return r}if(r.shuffle&&(t=(0,o.k4)((0,i.o8)(t),r.seed)),t.length>=e){const r=[],n=(t.length-1)/(e-1);for(let o=0;o<e;o++){const e=Math.round(o*n);r.push(t[e].clone())}return r}return function(t,e,r={}){const n=[],i=t.length-1,s=Math.ceil((e-t.length)/i);t:for(let o=0;o<i;o++){const i=t[o],a=t[o+1];for(let o=1;o<=s;o++){const l=o/(s+1);if(n.push(v(i,a,l,r)),n.length+t.length===e)break t}}return[...t.map(t=>t.clone()),...(0,o.k4)(n,r.seed??1)]}(t,e,r)}const A=(t,e)=>{const r=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+r))};function v(t,e,r,i={}){const s=t.r,a=t.g,l=t.b,c=e.r,u=e.g,h=e.b,f=Math.round(s+(c-s)*r),p=Math.round(a+(u-a)*r),d=Math.round(l+(h-l)*r);if(!i.offset)return new n.A([f,p,d]);const m=(0,o.Mo)(i.seed);return new n.A([A(f,m),A(p,m),A(d,m)])}},9334(t,e,r){function n(t,e){let r=0,n="",o=0,i=0;const s=t.length;for(;r<s;)i=t[r++],o=i>>4,o<8?o=1:15===o?(o=4,i=(7&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++]):14===o?(o=3,i=(15&i)<<12|(63&t[r++])<<6|63&t[r++]):(o=2,i=(31&i)<<6|63&t[r++]),(0!==i||e)&&(n+=String.fromCharCode(i));return n}r.d(e,{w:()=>n})},5154(t,e,r){r.d(e,{D:()=>at,g:()=>st});var n=r(49186),o=r(97768),i=r(17676),s=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function(t){var e=this.buffer,r=e?e.byteLength:0;if(t<r)return e;for(var n=512;n<t;)n<<=1;for(var o=new Uint8Array(n),i=0;i<r;++i)o[i]=e[i];return this.buffer=o},getByte:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(t){var e=this.pos;if(t){this.ensureBuffer(e+t);for(var r=e+t;!this.eof&&this.bufferLength<r;)this.readBlock();var n=this.bufferLength;r>n&&(r=n)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}return this.pos=r,this.buffer.subarray(e,r)},lookChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(t,e,r){for(var n=t+e;this.bufferLength<=n&&!this.eof;)this.readBlock();return new Stream(this.buffer,t,e,r)},skip:function(t){t||(t=1),this.pos+=t},reset:function(){this.pos=0}},t}(),a=function(){if(!self||!self.Uint32Array)return null;var t=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),r=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),n=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],o=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function i(t){throw new Error(t)}function a(t){var e=0,r=t[e++],n=t[e++];-1!=r&&-1!=n||i("Invalid header in flate stream"),8!=(15&r)&&i("Unknown compression method in flate stream"),((r<<8)+n)%31!=0&&i("Bad FCHECK in flate stream"),32&n&&i("FDICT bit set in flate stream"),this.bytes=t,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,s.call(this)}return a.prototype=Object.create(s.prototype),a.prototype.getBits=function(t){for(var e,r=this.codeSize,n=this.codeBuf,o=this.bytes,s=this.bytesPos;r<t;)void 0===(e=o[s++])&&i("Bad encoding in flate stream"),n|=e<<r,r+=8;return e=n&(1<<t)-1,this.codeBuf=n>>t,this.codeSize=r-=t,this.bytesPos=s,e},a.prototype.getCode=function(t){for(var e=t[0],r=t[1],n=this.codeSize,o=this.codeBuf,s=this.bytes,a=this.bytesPos;n<r;){var l;void 0===(l=s[a++])&&i("Bad encoding in flate stream"),o|=l<<n,n+=8}var c=e[o&(1<<r)-1],u=c>>16,h=65535&c;return(0==n||n<u||0==u)&&i("Bad encoding in flate stream"),this.codeBuf=o>>u,this.codeSize=n-u,this.bytesPos=a,h},a.prototype.generateHuffmanTable=function(t){for(var e=t.length,r=0,n=0;n<e;++n)t[n]>r&&(r=t[n]);for(var o=1<<r,i=new Uint32Array(o),s=1,a=0,l=2;s<=r;++s,a<<=1,l<<=1)for(var c=0;c<e;++c)if(t[c]==s){var u=0,h=a;for(n=0;n<s;++n)u=u<<1|1&h,h>>=1;for(n=u;n<o;n+=l)i[n]=s<<16|c;++a}return[i,r]},a.prototype.readBlock=function(){function s(t,e,r,n,o){for(var i=t.getBits(r)+n;i-- >0;)e[d++]=o}var a=this.getBits(3);if(1&a&&(this.eof=!0),0!=(a>>=1)){var l,c;if(1==a)l=n,c=o;else if(2==a){for(var u=this.getBits(5)+257,h=this.getBits(5)+1,f=this.getBits(4)+4,p=Array(t.length),d=0;d<f;)p[t[d++]]=this.getBits(3);for(var m=this.generateHuffmanTable(p),g=0,y=(d=0,u+h),w=new Array(y);d<y;){var C=this.getCode(m);16==C?s(this,w,2,3,g):17==C?s(this,w,3,3,g=0):18==C?s(this,w,7,11,g=0):w[d++]=g=C}l=this.generateHuffmanTable(w.slice(0,u)),c=this.generateHuffmanTable(w.slice(u,y))}else i("Unknown block type in flate stream");for(var b=(L=this.buffer)?L.length:0,x=this.bufferLength;;){var A=this.getCode(l);if(A<256)x+1>=b&&(b=(L=this.ensureBuffer(x+1)).length),L[x++]=A;else{if(256==A)return void(this.bufferLength=x);var v=(A=e[A-=257])>>16;v>0&&(v=this.getBits(v)),g=(65535&A)+v,A=this.getCode(c),(v=(A=r[A])>>16)>0&&(v=this.getBits(v));var k=(65535&A)+v;x+g>=b&&(b=(L=this.ensureBuffer(x+g)).length);for(var M=0;M<g;++M,++x)L[x]=L[x-k]}}}else{var T,S=this.bytes,I=this.bytesPos;void 0===(T=S[I++])&&i("Bad block header in flate stream");var P=T;void 0===(T=S[I++])&&i("Bad block header in flate stream"),P|=T<<8,void 0===(T=S[I++])&&i("Bad block header in flate stream");var E=T;void 0===(T=S[I++])&&i("Bad block header in flate stream"),(E|=T<<8)!=(65535&~P)&&i("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var R=this.bufferLength,L=this.ensureBuffer(R+P),U=R+P;this.bufferLength=U;for(var O=R;O<U;++O){if(void 0===(T=S[I++])){this.eof=!0;break}L[O]=T}this.bytesPos=I}},a}();async function l(t,e,r){if(!t||t.byteLength<10)throw new n.A("imagecanvasdecoder: decode","required a valid encoded data as input.");const{width:o,height:s,format:l}=e,{applyJpegMask:h}=e;if(h&&(!o||!s))throw new n.A("imagecanvasdecoder: decode","image width and height are needed to apply jpeg mask directly to canvas");let p=null;"jpg"===l&&h&&o&&s&&(p=function(t,e){try{const r=new Uint8Array(t);let n=Math.ceil(r.length/2);const o=r.length-2;for(;n<o&&(255!==r[n]||217!==r[n+1]);n++);n+=2;let i=null;if(n<r.length-1){const t=new a(r.subarray(n)).getBytes();i=new Uint8Array(e.width*e.height);let o=0;for(let e=0;e<t.length;e++)for(let r=7;r>=0;r--)i[o++]=t[e]>>r&1}return i}catch{return null}}(t,{width:o,height:s}));try{const n=new Blob([new Uint8Array(t)],{type:f(l)}),o=await createImageBitmap(n);if((0,i.G4)(r))throw(0,i.NK)();const{tileIndex:s,tileSize:a}=e;return null!=s&&null!=a?u(o,s,a):c(o,p)}catch(t){if((0,i.zf)(t))throw t;throw new n.A("imagecanvasdecoder: decode","cannot load image")}}function c(t,e){const{width:r,height:o}=t,i=new OffscreenCanvas(r,o),s=i.getContext("2d");if(!s)throw new n.A("imagecanvasdecoder: decode","cannot create canvas context");s.drawImage(t,0,0,r,o);const a=h(s.getImageData(0,0,r,o),r,o,e);return i.width=0,i.height=0,a}function u(t,e,r){const[o,i,s]=e,[a,l]=r,c=Math.ceil(t.width/2**o),u=Math.ceil(t.height/2**o),f=Math.ceil(u/l),p=Math.ceil(c/a);if(i>=f||s>=p)return null;const d=new OffscreenCanvas(c,u),m=d.getContext("2d");if(!m)throw new n.A("imagecanvasdecoder: decode","cannot create canvas context");m.drawImage(t,0,0,c,u);const g=s*a,y=i*l,w=Math.min(a,c-g),C=Math.min(l,u-y),b=h(m.getImageData(g,y,w,C),a,l);return d.width=0,d.height=0,b}function h(t,e,r,n){const o=e*r,i=new Uint8Array(o),s=new Uint8Array(o),a=new Uint8Array(o),l=null==n;n||(n=new Uint8Array(o));const c={width:e,height:r,pixels:[i,s,a],mask:n,pixelType:"u8"},{width:u,height:h,data:f}=t;if(u===e&&h===r){for(let t=0,e=0;t<o;t++,e+=4)i[t]=f[e],s[t]=f[e+1],a[t]=f[e+2],l&&(n[t]=f[e+3]);return c}for(let t=0;t<h;t++){const r=t*u*4;for(let o=0;o<u;o++){const c=t*e+o;i[c]=f[r+4*o],s[c]=f[r+4*o+1],a[c]=f[r+4*o+2],l&&(n[c]=f[r+4*o+3])}}return c}function f(t){return`image/${"jpg"===t?"jpeg":t}`}var p=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=new Error,t.prototype.name="JpegError",t.constructor=t,t}(),d=function(){if(!self||!self.Uint8ClampedArray)return null;var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,r=799,n=3406,o=2276,i=1567,s=3784,a=5793,l=2896;function c(){this.decodeTransform=null,this.colorTransform=-1}function u(t,e){for(var r,n,o=0,i=[],s=16;s>0&&!t[s-1];)s--;i.push({children:[],index:0});var a,l=i[0];for(r=0;r<s;r++){for(n=0;n<t[r];n++){for((l=i.pop()).children[l.index]=e[o];l.index>0;)l=i.pop();for(l.index++,i.push(l);i.length<=r;)i.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a;o++}r+1<s&&(i.push(a={children:[],index:0}),l.children[l.index]=a.children,l=a)}return i[0].children}function h(t,e,r){return 64*((t.blocksPerLine+1)*e+r)}function f(e,r,n,o,i,s,a,l,c){var u=n.mcusPerLine,f=n.progressive,d=r,m=0,y=0;function w(){if(y>0)return y--,m>>y&1;if(255===(m=e[r++])){var t=e[r++];if(t)throw new p("unexpected marker "+(m<<8|t).toString(16))}return y=7,m>>>7}function C(t){for(var e=t;;){if("number"==typeof(e=e[w()]))return e;if("object"!=typeof e)throw new p("invalid huffman sequence")}}function b(t){for(var e=0;t>0;)e=e<<1|w(),t--;return e}function x(t){if(1===t)return 1===w()?1:-1;var e=b(t);return e>=1<<t-1?e:e+(-1<<t)+1}var A,v=0,k=0;function M(t,e,r,n,o){var i=r%u;e(t,h(t,(r/u|0)*t.v+n,i*t.h+o))}function T(t,e,r){e(t,h(t,r/t.blocksPerLine|0,r%t.blocksPerLine))}var S,I,P,E,R,L,U=o.length;L=f?0===s?0===l?function(t,e){var r=C(t.huffmanTableDC),n=0===r?0:x(r)<<c;t.blockData[e]=t.pred+=n}:function(t,e){t.blockData[e]|=w()<<c}:0===l?function(e,r){if(v>0)v--;else for(var n=s,o=a;n<=o;){var i=C(e.huffmanTableAC),l=15&i,u=i>>4;if(0!==l){var h=t[n+=u];e.blockData[r+h]=x(l)*(1<<c),n++}else{if(u<15){v=b(u)+(1<<u)-1;break}n+=16}}}:function(e,r){for(var n,o,i=s,l=a,u=0;i<=l;){var h=t[i];switch(k){case 0:if(u=(o=C(e.huffmanTableAC))>>4,0==(n=15&o))u<15?(v=b(u)+(1<<u),k=4):(u=16,k=1);else{if(1!==n)throw new p("invalid ACn encoding");A=x(n),k=u?2:3}continue;case 1:case 2:e.blockData[r+h]?e.blockData[r+h]+=w()<<c:0===--u&&(k=2===k?3:0);break;case 3:e.blockData[r+h]?e.blockData[r+h]+=w()<<c:(e.blockData[r+h]=A<<c,k=0);break;case 4:e.blockData[r+h]&&(e.blockData[r+h]+=w()<<c)}i++}4===k&&0===--v&&(k=0)}:function(e,r){var n=C(e.huffmanTableDC),o=0===n?0:x(n);e.blockData[r]=e.pred+=o;for(var i=1;i<64;){var s=C(e.huffmanTableAC),a=15&s,l=s>>4;if(0!==a){var c=t[i+=l];e.blockData[r+c]=x(a),i++}else{if(l<15)break;i+=16}}};var O,D,B,G,N=0;for(D=1===U?o[0].blocksPerLine*o[0].blocksPerColumn:u*n.mcusPerColumn;N<D;){var F=i?Math.min(D-N,i):D;for(I=0;I<U;I++)o[I].pred=0;if(v=0,1===U)for(S=o[0],R=0;R<F;R++)T(S,L,N),N++;else for(R=0;R<F;R++){for(I=0;I<U;I++)for(B=(S=o[I]).h,G=S.v,P=0;P<G;P++)for(E=0;E<B;E++)M(S,L,N,P,E);N++}y=0,(O=g(e,r))&&O.invalid&&(console.log("decodeScan - unexpected MCU data, next marker is: "+O.invalid),r=O.offset);var V=O&&O.marker;if(!V||V<=65280)throw new p("marker was not found");if(!(V>=65488&&V<=65495))break;r+=2}return(O=g(e,r))&&O.invalid&&(console.log("decodeScan - unexpected Scan data, next marker is: "+O.invalid),r=O.offset),r-d}function d(t,c,u){var h,f,d,m,g,y,w,C,b,x,A,v,k,M,T,S,I,P=t.quantizationTable,E=t.blockData;if(!P)throw new p("missing required Quantization Table.");for(var R=0;R<64;R+=8)b=E[c+R],x=E[c+R+1],A=E[c+R+2],v=E[c+R+3],k=E[c+R+4],M=E[c+R+5],T=E[c+R+6],S=E[c+R+7],b*=P[R],0!==(x|A|v|k|M|T|S)?(x*=P[R+1],A*=P[R+2],v*=P[R+3],k*=P[R+4],M*=P[R+5],T*=P[R+6],S*=P[R+7],f=(h=(h=a*b+128>>8)+(f=a*k+128>>8)+1>>1)-f,I=(d=A)*s+(m=T)*i+128>>8,d=d*i-m*s+128>>8,w=(g=(g=l*(x-S)+128>>8)+(w=M<<4)+1>>1)-w,y=(C=(C=l*(x+S)+128>>8)+(y=v<<4)+1>>1)-y,m=(h=h+(m=I)+1>>1)-m,d=(f=f+d+1>>1)-d,I=g*o+C*n+2048>>12,g=g*n-C*o+2048>>12,C=I,I=y*r+w*e+2048>>12,y=y*e-w*r+2048>>12,w=I,u[R]=h+C,u[R+7]=h-C,u[R+1]=f+w,u[R+6]=f-w,u[R+2]=d+y,u[R+5]=d-y,u[R+3]=m+g,u[R+4]=m-g):(I=a*b+512>>10,u[R]=I,u[R+1]=I,u[R+2]=I,u[R+3]=I,u[R+4]=I,u[R+5]=I,u[R+6]=I,u[R+7]=I);for(var L=0;L<8;++L)b=u[L],0!==((x=u[L+8])|(A=u[L+16])|(v=u[L+24])|(k=u[L+32])|(M=u[L+40])|(T=u[L+48])|(S=u[L+56]))?(f=(h=4112+((h=a*b+2048>>12)+(f=a*k+2048>>12)+1>>1))-f,I=(d=A)*s+(m=T)*i+2048>>12,d=d*i-m*s+2048>>12,m=I,w=(g=(g=l*(x-S)+2048>>12)+(w=M)+1>>1)-w,y=(C=(C=l*(x+S)+2048>>12)+(y=v)+1>>1)-y,I=g*o+C*n+2048>>12,g=g*n-C*o+2048>>12,C=I,I=y*r+w*e+2048>>12,y=y*e-w*r+2048>>12,b=(b=(h=h+m+1>>1)+C)<16?0:b>=4080?255:b>>4,x=(x=(f=f+d+1>>1)+(w=I))<16?0:x>=4080?255:x>>4,A=(A=(d=f-d)+y)<16?0:A>=4080?255:A>>4,v=(v=(m=h-m)+g)<16?0:v>=4080?255:v>>4,k=(k=m-g)<16?0:k>=4080?255:k>>4,M=(M=d-y)<16?0:M>=4080?255:M>>4,T=(T=f-w)<16?0:T>=4080?255:T>>4,S=(S=h-C)<16?0:S>=4080?255:S>>4,E[c+L]=b,E[c+L+8]=x,E[c+L+16]=A,E[c+L+24]=v,E[c+L+32]=k,E[c+L+40]=M,E[c+L+48]=T,E[c+L+56]=S):(I=(I=a*b+8192>>14)<-2040?0:I>=2024?255:I+2056>>4,E[c+L]=I,E[c+L+8]=I,E[c+L+16]=I,E[c+L+24]=I,E[c+L+32]=I,E[c+L+40]=I,E[c+L+48]=I,E[c+L+56]=I)}function m(t,e){for(var r=e.blocksPerLine,n=e.blocksPerColumn,o=new Int16Array(64),i=0;i<n;i++)for(var s=0;s<r;s++)d(e,h(e,i,s),o);return e.blockData}function g(t,e,r){function n(e){return t[e]<<8|t[e+1]}var o=t.length-1,i=r<e?r:e;if(e>=o)return null;var s=n(e);if(s>=65472&&s<=65534)return{invalid:null,marker:s,offset:e};for(var a=n(i);!(a>=65472&&a<=65534);){if(++i>=o)return null;a=n(i)}return{invalid:s.toString(16),marker:a,offset:i}}return c.prototype={parse:function(e){function r(){var t=e[a]<<8|e[a+1];return a+=2,t}function n(){var t=r(),n=a+t-2,o=g(e,n,a);o&&o.invalid&&(console.log("readDataBlock - incorrect length, next marker is: "+o.invalid),n=o.offset);var i=e.subarray(a,n);return a+=i.length,i}function o(t){for(var e=Math.ceil(t.samplesPerLine/8/t.maxH),r=Math.ceil(t.scanLines/8/t.maxV),n=0;n<t.components.length;n++){N=t.components[n];var o=Math.ceil(Math.ceil(t.samplesPerLine/8)*N.h/t.maxH),i=Math.ceil(Math.ceil(t.scanLines/8)*N.v/t.maxV),s=e*N.h,a=r*N.v*64*(s+1);N.blockData=new Int16Array(a),N.blocksPerLine=o,N.blocksPerColumn=i}t.mcusPerLine=e,t.mcusPerColumn=r}var i,s,a=0,l=null,c=null,h=[],d=[],y=[],w=r();if(65496!==w)throw new p("SOI not found");for(w=r();65497!==w;){var C,b,x;switch(w){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var A=n();65504===w&&74===A[0]&&70===A[1]&&73===A[2]&&70===A[3]&&0===A[4]&&(l={version:{major:A[5],minor:A[6]},densityUnits:A[7],xDensity:A[8]<<8|A[9],yDensity:A[10]<<8|A[11],thumbWidth:A[12],thumbHeight:A[13],thumbData:A.subarray(14,14+3*A[12]*A[13])}),65518===w&&65===A[0]&&100===A[1]&&111===A[2]&&98===A[3]&&101===A[4]&&(c={version:A[5]<<8|A[6],flags0:A[7]<<8|A[8],flags1:A[9]<<8|A[10],transformCode:A[11]});break;case 65499:for(var v=r()+a-2;a<v;){var k=e[a++],M=new Uint16Array(64);if(k>>4){if(k>>4!=1)throw new p("DQT - invalid table spec");for(b=0;b<64;b++)M[t[b]]=r()}else for(b=0;b<64;b++)M[t[b]]=e[a++];h[15&k]=M}break;case 65472:case 65473:case 65474:if(i)throw new p("Only single frame JPEGs supported");r(),(i={}).extended=65473===w,i.progressive=65474===w,i.precision=e[a++],i.scanLines=r(),i.samplesPerLine=r(),i.components=[],i.componentIds={};var T,S=e[a++],I=0,P=0;for(C=0;C<S;C++){T=e[a];var E=e[a+1]>>4,R=15&e[a+1];I<E&&(I=E),P<R&&(P=R);var L=e[a+2];x=i.components.push({h:E,v:R,quantizationId:L,quantizationTable:null}),i.componentIds[T]=x-1,a+=3}i.maxH=I,i.maxV=P,o(i);break;case 65476:var U=r();for(C=2;C<U;){var O=e[a++],D=new Uint8Array(16),B=0;for(b=0;b<16;b++,a++)B+=D[b]=e[a];var G=new Uint8Array(B);for(b=0;b<B;b++,a++)G[b]=e[a];C+=17+B,(O>>4?d:y)[15&O]=u(D,G)}break;case 65501:r(),s=r();break;case 65498:r();var N,F=e[a++],V=[];for(C=0;C<F;C++){var z=i.componentIds[e[a++]];N=i.components[z];var _=e[a++];N.huffmanTableDC=y[_>>4],N.huffmanTableAC=d[15&_],V.push(N)}var j=e[a++],Z=e[a++],W=e[a++],H=f(e,a,i,V,s,j,Z,W>>4,15&W);a+=H;break;case 65535:255!==e[a]&&a--;break;default:if(255===e[a-3]&&e[a-2]>=192&&e[a-2]<=254){a-=3;break}throw new p("unknown marker "+w.toString(16))}w=r()}for(this.width=i.samplesPerLine,this.height=i.scanLines,this.jfif=l,this.eof=a,this.adobe=c,this.components=[],C=0;C<i.components.length;C++){var q=h[(N=i.components[C]).quantizationId];q&&(N.quantizationTable=q),this.components.push({output:m(0,N),scaleX:N.h/i.maxH,scaleY:N.v/i.maxV,blocksPerLine:N.blocksPerLine,blocksPerColumn:N.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(t,e){var r,n,o,i,s,a,l,c,u,h,f,p=this.width/t,d=this.height/e,m=0,g=this.components.length,y=t*e*g,w=new Uint8ClampedArray(y),C=new Uint32Array(t),b=4294967288;for(l=0;l<g;l++){for(n=(r=this.components[l]).scaleX*p,o=r.scaleY*d,m=l,f=r.output,i=r.blocksPerLine+1<<3,s=0;s<t;s++)c=0|s*n,C[s]=(c&b)<<3|7&c;for(a=0;a<e;a++)for(h=i*((c=0|a*o)&b)|(7&c)<<3,s=0;s<t;s++)w[m]=f[h+C[s]],m+=g}var x=this.decodeTransform;if(x)for(l=0;l<y;)for(c=0,u=0;c<g;c++,l++,u+=2)w[l]=(w[l]*x[u]>>8)+x[u+1];return w},_isColorConversionNeeded:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this.colorTransform:1===this.colorTransform},_convertYccToRgb:function(t){for(var e,r,n,o=0,i=t.length;o<i;o+=3)e=t[o],r=t[o+1],n=t[o+2],t[o]=e-179.456+1.402*n,t[o+1]=e+135.459-.344*r-.714*n,t[o+2]=e-226.816+1.772*r;return t},_convertYcckToRgb:function(t){for(var e,r,n,o,i=0,s=0,a=t.length;s<a;s+=4)e=t[s],r=t[s+1],n=t[s+2],o=t[s+3],t[i++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*e+.00048449797120281*o-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*e-.00477271405408747*o+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*o+.48357088451265)+o*(-.000336197177618394*o+.484791561490776),t[i++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*e+.000426105652938837*o-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*e+.000770482631801132*o-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*o+.25802910206845)+o*(-.000318913117588328*o-.213742400323665),t[i++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*e-.00288260236853442*o+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*e+.000560833691242812*o-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*o+.116935020465145)+o*(-.000343531996510555*o+.24165260232407);return t},_convertYcckToCmyk:function(t){for(var e,r,n,o=0,i=t.length;o<i;o+=4)e=t[o],r=t[o+1],n=t[o+2],t[o]=434.456-e-1.402*n,t[o+1]=119.541-e+.344*r+.714*n,t[o+2]=481.816-e-1.772*r;return t},_convertCmykToRgb:function(t){for(var e,r,n,o,i=0,s=1/255,a=0,l=t.length;a<l;a+=4)e=t[a]*s,r=t[a+1]*s,n=t[a+2]*s,o=t[a+3]*s,t[i++]=255+e*(-4.387332384609988*e+54.48615194189176*r+18.82290502165302*n+212.25662451639585*o-285.2331026137004)+r*(1.7149763477362134*r-5.6096736904047315*n-17.873870861415444*o-5.497006427196366)+n*(-2.5217340131683033*n-21.248923337353073*o+17.5119270841813)-o*(21.86122147463605*o+189.48180835922747),t[i++]=255+e*(8.841041422036149*e+60.118027045597366*r+6.871425592049007*n+31.159100130055922*o-79.2970844816548)+r*(-15.310361306967817*r+17.575251261109482*n+131.35250912493976*o-190.9453302588951)+n*(4.444339102852739*n+9.8632861493405*o-24.86741582555878)-o*(20.737325471181034*o+187.80453709719578),t[i++]=255+e*(.8842522430003296*e+8.078677503112928*r+30.89978309703729*n-.23883238689178934*o-14.183576799673286)+r*(10.49593273432072*r+63.02378494754052*n+50.606957656360734*o-112.23884253719248)+n*(.03296041114873217*n+115.60384449646641*o-193.58209356861505)-o*(22.33816807309886*o+180.12613974708367);return t},getData:function(t,e,r){if(this.numComponents>4)throw new p("Unsupported color mode");var n=this._getLinearizedBlockData(t,e);if(1===this.numComponents&&r){for(var o=n.length,i=new Uint8ClampedArray(3*o),s=0,a=0;a<o;a++){var l=n[a];i[s++]=l,i[s++]=l,i[s++]=l}return i}if(3===this.numComponents&&this._isColorConversionNeeded())return this._convertYccToRgb(n);if(4===this.numComponents){if(this._isColorConversionNeeded())return r?this._convertYcckToRgb(n):this._convertYcckToCmyk(n);if(r)return this._convertCmykToRgb(n)}return n}},c}();class m{static decode(t,e=!1){const r=new Uint8Array(t),n=new d;n.parse(r);const{width:o,height:i,numComponents:s,eof:l}=n,c=n.getData(o,i,!0),u=o*i;let h,f=null;if(e&&l<r.length-1)try{const t=new a(r.subarray(l)).getBytes();f=new Uint8Array(u);let e=0;for(let r=0;r<t.length;r++)for(let n=7;n>=0;n--)f[e++]=t[r]>>n&1}catch{}if(1===s&&c.length===o*i){const t=new Uint8Array(c.buffer);h=[t,t,t]}else{h=[];for(let t=0;t<3;t++)h.push(new Uint8Array(u));let t=0;for(let e=0;e<u;e++)for(let r=0;r<3;r++)h[r][e]=c[t++]}return{width:o,height:i,pixels:h,mask:f}}}var g=r(2741);const y=[{pixelType:"S8",size:1,ctor:Int8Array,range:[-128,127]},{pixelType:"U8",size:1,ctor:Uint8Array,range:[0,255]},{pixelType:"S16",size:2,ctor:Int16Array,range:[-32768,32767]},{pixelType:"U16",size:2,ctor:Uint16Array,range:[0,65536]},{pixelType:"S32",size:4,ctor:Int32Array,range:[-2147483648,2147483647]},{pixelType:"U32",size:4,ctor:Uint32Array,range:[0,4294967296]},{pixelType:"F32",size:4,ctor:Float32Array,range:[-34028234663852886e22,34028234663852886e22]},{pixelType:"F64",size:8,ctor:Float64Array,range:[-17976931348623157e292,17976931348623157e292]}];let w=null;function C(){return w||(w=r.e(382).then(r.bind(r,30382)).then(({default:t})=>t({locateFile:t=>(0,g.s)(`esri/layers/raster/formats/${t}`)})).then(t=>{!function(t){const{_malloc:e,_free:r,memory:n,_lerc_getBlobInfo:o,_lerc_getDataRanges:i,_lerc_decode_4D:s}=t;let a;const l=t=>{const r=t.map(t=>function(t){return 16+(t>>3<<3)}(t)),o=r.reduce((t,e)=>t+e),i=e(o);a=new Uint8Array(n.buffer);let s=r[0];r[0]=i;for(let t=1;t<r.length;t++){const e=r[t];r[t]=r[t-1]+s,s=e}return r};b.getBlobInfo=t=>{const e=new Uint8Array(48),s=new Uint8Array(24),[c,u,h]=l([t.length,e.length,s.length]);a.set(t,c),a.set(e,u),a.set(s,h);let f=o(c,t.length,u,h,12,3);if(f)throw r(c),new Error(`lerc-getBlobInfo: error code is ${f}`);a=new Uint8Array(n.buffer),x(a,u,e),x(a,h,s);const p=new Uint32Array(e.buffer),d=new Float64Array(s.buffer),[m,g,,y,w,C,b,A,v,k,M]=p,T=0===b,S={version:m,depthCount:k,width:y,height:w,validPixelCount:b,bandCount:C,blobSize:A,maskCount:v,dataType:g,minValue:d[0],maxValue:d[1],maxZerror:d[2],statistics:[],bandCountWithNoData:M};if(M&&k>1)return r(c),S;if(1===k&&1===C){r(c);const t=T?0:d[0],e=T?0:d[1];return S.statistics.push({minValue:t,maxValue:e}),S}const I=k*C*8,P=new Uint8Array(I),E=new Uint8Array(I);let R=c,L=0,U=0,O=!1;if(a.byteLength<c+2*I?(r(c),O=!0,[R,L,U]=l([t.length,I,I]),a.set(t,R)):[L,U]=l([I,I]),a.set(P,L),a.set(E,U),f=i(R,t.length,k,C,L,U),f)throw r(R),O||r(L),new Error(`lerc-getDataRanges: error code is ${f}`);a=new Uint8Array(n.buffer),x(a,L,P),x(a,U,E);const D=new Float64Array(P.buffer),B=new Float64Array(E.buffer),G=S.statistics;for(let t=0;t<C;t++)if(k>1){const e=D.slice(t*k,(t+1)*k),r=B.slice(t*k,(t+1)*k),n=T?0:Math.min.apply(null,e),o=T?0:Math.max.apply(null,r);G.push({minValue:n,maxValue:o,depthStats:{minValues:e,maxValues:r}})}else G.push({minValue:T?0:D[t],maxValue:T?0:B[t]});return r(R),O||r(L),S},b.decode=(t,e)=>{const{maskCount:o,depthCount:i,bandCount:c,width:u,height:h,dataType:f,bandCountWithNoData:p,validPixelCount:d}=e,m=y[f],g=u*h,w=new Uint8Array(g*c),C=g*i*c*m.size,b=new Uint8Array(C),A=new Uint8Array(c),v=new Uint8Array(8*c);if(0===d)return{data:b,maskData:w,noDataValues:null};const[k,M,T,S,I]=l([t.length,w.length,b.length,A.length,v.length]);a.set(t,k),a.set(w,M),a.set(b,T),a.set(A,S),a.set(v,I);const P=s(k,t.length,o,M,i,u,h,c,f,T,S,I);if(P)throw r(k),new Error(`lerc-decode: error code is ${P}`);a=new Uint8Array(n.buffer),x(a,T,b),x(a,M,w);let E=null;if(p){x(a,S,A),x(a,I,v),E=[];const t=new Float64Array(v.buffer);for(let e=0;e<A.length;e++)E.push(A[e]?t[e]:null)}return r(k),{data:b,maskData:w,noDataValues:E}}}(t)}),w)}const b={getBlobInfo:null,decode:null};function x(t,e,r){r.set(t.slice(e,e+r.length))}function A(t,e,r,n,o){if(r<2)return t;const i=new n(e*r);for(let n=0,o=0;n<e;n++)for(let s=0,a=n;s<r;s++,a+=e)i[a]=t[o++];return i}function v(t,e={}){const r=e.inputOffset??0,n=t instanceof Uint8Array?t.subarray(r):new Uint8Array(t,r),o=b.getBlobInfo(n),{data:i,maskData:s,noDataValues:a}=b.decode(n,o),{width:l,height:c,bandCount:u,depthCount:h,dataType:f,maskCount:p,statistics:d}=o,m=y[f],g=new m.ctor(i.buffer),w=[],C=[],x=l*c,v=x*h,k=y.find(t=>t.pixelType===e.outputPixelType)??m,M=k.pixelType!==m.pixelType;for(let t=0;t<u;t++){const r=t*v,n=r+v,o=g.subarray(r,n),i=M?new k.ctor(o):o;if(e.returnInterleaved)w.push(i);else{const t=A(i,x,h,k.ctor);w.push(t)}C.push(s.subarray(r,n))}const T=0===p?null:1===p?C[0]:new Uint8Array(x);if(p>1){T.set(C[0]);for(let t=1;t<C.length;t++){const e=C[t];for(let t=0;t<x;t++)T[t]=T[t]&e[t]}}const{noDataValue:S}=e,I=null!=S&&k.range[0]<=S&&k.range[1]>=S,{validPixelCount:P}=o;if(p>0&&I)for(let t=0;t<u;t++){const e=w[t];if(0===P)e.fill(S);else{const r=C[t]||T;for(let t=0;t<x;t++)0===r[t]&&(e[t]=S)}}const E=p===u&&u>1?C:null;return{width:l,height:c,bandCount:u,pixelType:k.pixelType,depthCount:h,statistics:d,pixels:w,mask:T,validPixelCount:P,bandMasks:E,noDataValues:a}}function k(){const t=[];for(let e=0;e<=257;e++)t[e]=[e];return t}function M(t,e){for(let r=0;r<e.length;r++)t.push(e[r])}const T=new Set;function S(t,e,r,n=!0){const o=function(t,e,r,n=!0){if(e%4!=0||r%4!=0){const o=new ArrayBuffer(4*Math.ceil(r/4)),i=new Uint8Array(o),s=new Uint8Array(t,e,r);if(n)for(let t=0;t<i.length;t+=4)i[t]=s[t+3],i[t+1]=s[t+2],i[t+2]=s[t+1],i[t+3]=s[t];else i.set(s);return new Uint32Array(i.buffer)}if(n){const n=new Uint8Array(t,e,r),o=new Uint8Array(n.length);for(let t=0;t<o.length;t+=4)o[t]=n[t+3],o[t+1]=n[t+2],o[t+2]=n[t+1],o[t+3]=n[t];return new Uint32Array(o.buffer)}return new Uint32Array(t,e,r/4)}(t,e,r,n);let i=9,s=k(),a=32,l=s.length,c=[],u=1,h=o[0],f=0;const p=o.length,d=8*(4*p-r),m=[];for(;null!=h;){if(a>=i)a-=i,f=h>>>32-i,h<<=i;else{f=h>>>32-a,h=o[u++];const t=i-a;a=32-t,f=(f<<t)+(h>>>a),h<<=t}if(257===f)break;if(256===f){i=9,s=k(),l=s.length,c=[];continue}const t=s[f];if(null==t){if(f>s.length)throw new Error("data integrity issue: code does not exist on code page");c.push(c[0]),s[l++]=c.slice(),M(m,c)}else M(m,t),c.push(t[0]),c.length>1&&(s[l++]=c.slice()),c=t.slice();if(T.has(l)&&i++,0===a&&(h=o[u++],a=32),u>p||u===p&&a<=d)break}return new Uint8Array(m)}T.add(511),T.add(1023),T.add(2047),T.add(4095),T.add(8191);var I=r(94778);const P=new Set(["uint8","int8","uint16","int16","uint32","int32","int64","uint64"]),E=new Map([["uint8",{byteCount:1,pixelType:"u8",ctor:Uint8Array}],["int8",{byteCount:1,pixelType:"s8",ctor:Int8Array}],["uint16",{byteCount:2,pixelType:"u16",ctor:Uint16Array}],["int16",{byteCount:2,pixelType:"s16",ctor:Int16Array}],["uint32",{byteCount:4,pixelType:"u32",ctor:Uint32Array}],["int32",{byteCount:4,pixelType:"s32",ctor:Int32Array}],["uint64",{byteCount:8,pixelType:"f64",ctor:BigUint64Array}],["int64",{byteCount:8,pixelType:"f64",ctor:BigInt64Array}]]);let R;const L={getBlobInfo:null,decode:null};function U(t){if(!E.has(t))throw new Error("Unsupported data type: "+t);return E.get(t)}const O=(t,e)=>{const r=e.width*e.height,n=e.pixelType;return Math.floor(t.byteLength/(r*D(n)))},D=t=>{let e=1;switch(t){case Uint8Array:case Int8Array:e=1;break;case Uint16Array:case Int16Array:e=2;break;case Uint32Array:case Int32Array:case Float32Array:e=4;break;case Float64Array:e=8}return e};class B{static decode(t,e){const r=e.pixelType,n=[],o=e.width*e.height,i=O(t,e),{bandIds:s,format:a}=e,l=s?.length||O(t,e),c=t.byteLength-t.byteLength%(o*D(r)),u=new r(t,0,o*i);if("bip"===a)for(let t=0;t<l;t++){const e=new r(o),a=s?s[t]:t;for(let t=0;t<o;t++)e[t]=u[t*i+a];n.push(e)}else if("bsq"===a)for(let t=0;t<l;t++){const e=s?s[t]:t;n.push(u.subarray(e*o,(e+1)*o))}let h=null;return c<t.byteLength-1&&(h=((t,e)=>{if(8*t.byteLength<e)return null;const r=new Uint8Array(t,0,Math.ceil(e/8)),n=new Uint8Array(e);let o=0,i=0;for(let t=0;t<r.length-1;t++){i=r[t];for(let t=7;t>=0;t--)n[o++]=i>>t&1}let s=7;for(;o<e-1;)i=r[r.length-1],n[o++]=i>>s&1,s--;return n})(t.slice(c),o)),{pixels:n,mask:h}}}r(44208);var G=r(44094),N=r(10713);function F(t,e){let r="unknown";return 3===t?r=64===e?"f64":"f32":1===t?1===e?r="u1":2===e?r="u2":4===e?r="u4":e<=8?r="u8":e<=16?r="u16":e<=32&&(r="u32"):2===t&&(e<=8?r="s8":e<=16?r="s16":e<=32&&(r="s32")),r}function V(t){let e=null;switch(t?t.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":e=Uint8Array;break;case"u16":e=Uint16Array;break;case"u32":e=Uint32Array;break;case"s8":e=Int8Array;break;case"s16":e=Int16Array;break;case"s32":e=Int32Array;break;case"f64":e=Float64Array;break;default:e=Float32Array}return e}function z(t,e){if(e%8==0)return t;const r=e>16?32:e>8?16:8;r>8&&(t=Z(t,32===r?4:2));const n=32===r?Uint32Array:16===r?Uint16Array:Uint8Array,o=new n(t),i=Math.floor(8*t.byteLength/e+1e-6),s=new n(i),a=(1<<e)-1;let l=0,c=0,u=0;for(let t=0;t<i;t++)if(0===c&&(u=o[l++],c=r),c>=e)s[t]=u>>>c-e&a,c-=e;else{const n=e-c;let i=(u&a)<<n&a;u=o[l++],c=r-n,i+=u>>>c,s[t]=i}return s.buffer}function _(t,e,r){const n=new d;n.parse(t),n.colorTransform=6===r?-1:0;const o=n.getData(n.width,n.height,1!==e&&4!==e);return new Uint8Array(o.buffer)}function j(t){const e=new a(t).getBytes(),r=new ArrayBuffer(e.length),n=new Uint8Array(r);return n.set(e),n}function Z(t,e){const r=new Uint8Array(t),n=new Uint8Array(r.length);if(2===e)for(let t=0;t<r.length;t+=2)n[t]=r[t+1],n[t+1]=r[t];else if(4===e)for(let t=0;t<r.length;t+=4)n[t]=r[t+3],n[t+1]=r[t+2],n[t+2]=r[t+1],n[t+3]=r[t];else for(let t=0;t<r.length;t+=8)n[t]=r[t+7],n[t+1]=r[t+6],n[t+2]=r[t+5],n[t+3]=r[t+4],n[t+4]=r[t+3],n[t+5]=r[t+2],n[t+6]=r[t+1],n[t+7]=r[t];return n.buffer}async function W(t,e,r,o,i){const s=N.Z===e,a=(0,G.LZ)(r,"BITSPERSAMPLE"),l=(0,G.LZ)(r,"SAMPLESPERPIXEL")??1,c=(0,G.LZ)(r,"PHOTOMETRICINTERPRETATION"),u=(0,G.LZ)(r,"SAMPLEFORMAT")??1,h=F(u,a),f=(0,G.ni)(r);if(34887===f)return await async function(t,e){return await C(),v(t,{inputOffset:e}).pixels[0]}(t,o);const p=V(h);let d,m,g;switch(f){case 1:d=t.slice(o,o+i),m=new Uint8Array(d);break;case 8:case 32946:m=j(new Uint8Array(t,o,i)),d=m.buffer;break;case 6:m=_(new Uint8Array(t,o,i),l,c),d=m.buffer;break;case 7:{const e=r.get("JPEGTABLES").values,n=e.length-2,s=new Uint8Array(n+i-2);for(let t=0;t<n;t++)s[t]=e[t];const a=new Uint8Array(t,o+2,i-2);for(let t=0;t<a.length;t++)s[n+t]=a[t];m=_(s,l,c),d=m.buffer}break;case 5:m=S(t,o,i,e),d=m.buffer;break;default:throw new n.A("tiff-reader:decode-data","unsupported compression "+f)}if(d=z(d,a),s||a<=8)g=new p(d);else{const t=a>32?8:a>16?4:2;g=new p(Z(m.buffer,t))}const y=(0,G.LZ)(r,"PREDICTOR")??1,w=(0,G.LZ)(r,"TILEWIDTH"),b=(0,G.LZ)(r,"TILELENGTH");if(y>1&&(5===f||8===f||32946===f)&&w&&b){const t=(0,G.XO)(r),e=new p(g.length);e.set(g),g=function(t,e,r,n,o){const i=n?4:1,s=r*i*o;n&&(t=new Uint8Array(t.buffer));for(let r=0;r<e;r++){const e=r*s;for(let r=o;r<s;r++)t[e+r]+=t[e+r-o]}if(!n)return t;const a=new Uint8Array(t.length),l=r*o;for(let r=0;r<e;r++){const e=r*s;for(let r=0;r<l;r++)for(let n=0;n<i;n++)a[e+r*i+n]=t[e+r+(i-n-1)*l]}return new Float32Array(a.buffer)}(e,b,w,3===u&&3===y,t?1:l)}return g}var H=r(14140),q=r(4151),K=function(t){var e,r,n;function o(t){var e,r,n,o,i,s,a,l,c,u,h,f,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},i=null;;){switch(e=this.readUInt32(),l=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join(""),l){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":i&&this.animation.frames.push(i),this.pos+=4,i={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),n=this.readUInt16()||100,i.delay=1e3*o/n,i.disposeOp=this.data[this.pos++],i.blendOp=this.data[this.pos++],i.data=[];break;case"IDAT":case"fdAT":for("fdAT"===l&&(this.pos+=4,e-=4),t=(null!=i?i.data:void 0)||this.imgData,h=0;0<=e?h<e:h>e;0<=e?++h:--h)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(this.transparency.indexed=this.read(e),(c=255-this.transparency.indexed.length)>0)for(f=0;0<=c?f<c:f>c;0<=c?++f:--f)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(u=this.read(e)).indexOf(0),a=String.fromCharCode.apply(String,u.slice(0,s)),this.text[a]=String.fromCharCode.apply(String,u.slice(s+1));break;case"IEND":return i&&this.animation.frames.push(i),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,r=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*r,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}return o.load=function(t,e,r){var n;return"function"==typeof e&&(r=e),(n=new XMLHttpRequest).open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){var t;return t=new o(new Uint8Array(n.response||n.mozResponseArrayBuffer)),"function"==typeof(null!=e?e.getContext:void 0)&&t.render(e),"function"==typeof r?r(t):void 0},n.send(null)},o.prototype.read=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)r.push(this.data[this.pos++]);return r},o.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},o.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},o.prototype.decodePixels=function(t){var e,r,n,o,i,s,l,c,u,h,f,p,d,m,g,y,w,C,b,x,A,v,k;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);for(t=(t=new a(t)).getBytes(),y=(p=this.pixelBitlength/8)*this.width,d=new Uint8Array(y*this.height),s=t.length,g=0,m=0,r=0;m<s;){switch(t[m++]){case 0:for(o=b=0;b<y;o=b+=1)d[r++]=t[m++];break;case 1:for(o=x=0;x<y;o=x+=1)e=t[m++],i=o<p?0:d[r-p],d[r++]=(e+i)%256;break;case 2:for(o=A=0;A<y;o=A+=1)e=t[m++],n=(o-o%p)/p,w=g&&d[(g-1)*y+n*p+o%p],d[r++]=(w+e)%256;break;case 3:for(o=v=0;v<y;o=v+=1)e=t[m++],n=(o-o%p)/p,i=o<p?0:d[r-p],w=g&&d[(g-1)*y+n*p+o%p],d[r++]=(e+Math.floor((i+w)/2))%256;break;case 4:for(o=k=0;k<y;o=k+=1)e=t[m++],n=(o-o%p)/p,i=o<p?0:d[r-p],0===g?w=C=0:(w=d[(g-1)*y+n*p+o%p],C=n&&d[(g-1)*y+(n-1)*p+o%p]),l=i+w-C,c=Math.abs(l-i),h=Math.abs(l-w),f=Math.abs(l-C),u=c<=h&&c<=f?i:h<=f?w:C,d[r++]=(e+u)%256;break;default:throw new Error("Invalid filter algorithm: "+t[m-1])}g++}return d},o.prototype.decodePalette=function(){var t,e,r,n,o,i,s,a,l;for(r=this.palette,i=this.transparency.indexed||[],o=new Uint8Array((i.length||0)+r.length),n=0,r.length,t=0,e=s=0,a=r.length;s<a;e=s+=3)o[n++]=r[e],o[n++]=r[e+1],o[n++]=r[e+2],o[n++]=null!=(l=i[t++])?l:255;return o},o.prototype.copyToImageData=function(t,e){var r,n,o,i,s,a,l,c,u,h,f;if(n=this.colors,u=null,r=this.hasAlphaChannel,this.palette.length&&(u=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),n=4,r=!0),c=(o=t.data||t).length,s=u||e,i=a=0,1===n)for(;i<c;)l=u?4*e[i/4]:a,h=s[l++],o[i++]=h,o[i++]=h,o[i++]=h,o[i++]=r?s[l++]:this.transparency.grayscale&&this.transparency.grayscale===h?0:255,a=l;else for(;i<c;)l=u?4*e[i/4]:a,o[i++]=s[l++],o[i++]=s[l++],o[i++]=s[l++],o[i++]=r?s[l++]:this.transparency.rgb&&this.transparency.rgb[1]===s[l-3]&&this.transparency.rgb[3]===s[l-2]&&this.transparency.rgb[5]===s[l-1]?0:255,a=l},o.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t},r=t.document&&t.document.createElement("canvas"),n=r&&r.getContext("2d"),e=function(t){var e;return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(e=new Image).src=r.toDataURL(),e},o.prototype.decodeFrames=function(t){var r,n,o,i,s,a,l,c;if(this.animation){for(c=[],n=s=0,a=(l=this.animation.frames).length;s<a;n=++s)r=l[n],o=t.createImageData(r.width,r.height),i=this.decodePixels(new Uint8Array(r.data)),this.copyToImageData(o,i),r.imageData=o,c.push(r.image=e(o));return c}},o.prototype.renderFrame=function(t,e){var r,n,o;return r=(n=this.animation.frames)[e],o=n[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=o?o.disposeOp:void 0)?t.clearRect(o.xOffset,o.yOffset,o.width,o.height):2===(null!=o?o.disposeOp:void 0)&&t.putImageData(o.imageData,o.xOffset,o.yOffset),0===r.blendOp&&t.clearRect(r.xOffset,r.yOffset,r.width,r.height),t.drawImage(r.image,r.xOffset,r.yOffset)},o.prototype.animate=function(t){var e,r,n,o,i,s,a=this;return r=0,s=this.animation,o=s.numFrames,n=s.frames,i=s.numPlays,(e=function(){var s,l;if(s=r++%o,l=n[s],a.renderFrame(t,s),o>1&&r/o<i)return a.animation._timeout=setTimeout(e,l.delay)})()},o.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},o.prototype.render=function(t){var e,r;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(r=e.createImageData(this.width,this.height),this.copyToImageData(r,this.decodePixels()),e.putImageData(r,0,0))},o}(self);const J=new Set(["jpg","png","bmp","gif"]);async function Y(t,e){if(!N.Z)throw new n.A("rasterCoded:decode","lerc decoder is not supported on big endian platform");await C();const{offset:r}=e,{width:o,height:i,pixelType:s,statistics:a,depthCount:l,noDataValues:c,bandMasks:u,pixels:h,mask:f,validPixelCount:p}=v(t,{inputOffset:r,returnInterleaved:e.returnInterleaved}),d=new H.A({width:o,height:i,pixelType:s.toLowerCase(),pixels:h,mask:f,validPixelCount:p,statistics:a.map(({minValue:t,maxValue:e})=>new q.A(t,e)),bandMasks:u,depthCount:l,noDataValues:c});return a?.length||e.skipStatistics||d.updateStatistics(),d}async function X(t,e){await(R??=r.e(6154).then(r.bind(r,56154)).then(({default:t})=>t({locateFile:t=>(0,g.s)(`esri/layers/raster/formats/${t}`)})).then(t=>{!function(t){const{_GetInfo:e,_decode:r,_malloc:n,_free:o,writeArrayToMemory:i,UTF8ToString:s}=t;L.getBlobInfo=t=>{t.length>1e3&&(t=t.slice(0,1e3));const r=n(t.length);i(t,r);const a=e(r,t.length);if(o(r),!a)return null;const l=s(a);o(a);try{const t=JSON.parse(l);return{width:t.xsize,height:t.ysize,bandCount:t.nbands,dataType:t.dtype,mode:t.mode,bandMap:t.bandmap}}catch{return null}},L.decode=(e,n)=>{const{dataType:o,width:i,height:s,bandCount:a}=n;if(!P.has(o))throw new Error("Unsupported data type: "+o);const{_malloc:l,_free:c}=t,u=l(e.length);t.writeArrayToMemory(e,u);const{ctor:h,byteCount:f}=U(o),p=i*s*a*f,d=l(p),m=l(1024);if(0===r(u,e.length,d,m))throw c(u),c(d),c(m),new Error("Decoding failed: "+t.UTF8ToString(m));const g=new h(t.HEAPU8.slice(d,d+p).buffer);if(c(u),c(d),c(m),g instanceof BigInt64Array||g instanceof BigUint64Array){const t=new Float64Array(g.length);for(let e=0;e<g.length;e++)t[e]=Number(g[e]);return t}return g}}(t)}),R);const o=function(t){const e=new Uint8Array(t),r=L.getBlobInfo(e);if(!r)return null;const n=L.decode(e,r);if(!n)return null;const{width:o,height:i,bandCount:s,dataType:a}=r,{ctor:l,pixelType:c}=U(a),u=l===BigInt64Array||l===BigUint64Array?Float64Array:l,h=Array.from({length:s},()=>new u(o*i));for(let t=0,e=0;t<o*i;t++)for(let r=0;r<s;r++)h[r][t]=n[e++];return{width:o,height:i,pixelType:c,pixels:h}}(t);if(!o)throw new n.A("rasterCodec:decode","failed to decode the input data.");const{width:i,height:s,pixels:a,pixelType:l}=o,c=new H.A({width:i,height:s,pixelType:l,pixels:a});return e.skipStatistics||c.updateStatistics(),c}async function $(t,e){const r=await async function(t,e={}){const r=e.pyramidLevel||0,o=e.headerInfo||(0,G.RW)(t),{ifds:i,noData:s}=o;if(0===i.length)throw new n.A("tiff-reader:decode","no valid image file directory");const a=(0,G._J)(o);if(a)throw new n.A("tiff-reader:decode",a);let l=null;const c=-1===r?i[i.length-1]:i[r],u=s??e.noDataValue;return l=o.tileWidth?await async function(t,e,r){const n=(0,G.wc)(r,"TILEOFFSETS"),o=(0,G.wc)(r,"TILEBYTECOUNTS");if(null==n||null==o)return null;const{width:i,height:s,pixelType:a,tileWidth:l,tileHeight:c}=(0,G.uc)([r]),u=(0,G.XO)(r,e),h=(0,G.LZ)(r,"SAMPLESPERPIXEL")||e.planes,f=i*s,p=(0,G.LZ)(r,"BITSPERSAMPLE"),d=34887===(0,G.ni)(r),m=V(a),g=[];for(let t=0;t<h;t++)g.push(new m(f));const y=Math.ceil(i/l),w=new Uint8Array(f).fill(255);let C=null,b=!1;if(p%8==0)if(d&&u&&h>1){const a=Math.round(n.length/h);for(let u=0;u<a;u++){const a=Math.floor(u/y)*c,f=u%y*l,p=a*i+f;for(let d=0;d<h;d++){const m=u*h+d;0===o[m]?(C=null,b=!0):C=await W(t,e.littleEndian,r,n[m],o[m]);const y=Math.min(l,i-f),x=Math.min(c,s-a),A=g[d];for(let t=0;t<x;t++){let e=p+t*i,r=t*l;for(let t=0;t<y;t++,e++,r++)C?A[e]=C[r]:w[e]=0}}}}else for(let a=0;a<n.length;a++){const f=Math.floor(a/y)*c,p=a%y*l,m=f*i+p;0===o[a]?(C=null,b=!0):C=await W(t,e.littleEndian,r,n[a],o[a]);const x=Math.min(l,i-p),A=Math.min(c,s-f);for(let t=0;t<h;t++){const e=g[t];if(u||d)for(let r=0;r<A;r++){let n=m+r*i,o=l*c*t+r*l;for(let t=0;t<x;t++,n++,o++)C?e[n]=C[o]:w[n]=0}else for(let r=0;r<A;r++){let n=m+r*i,o=r*l*h+t;for(let t=0;t<x;t++,n++,o+=h)C?e[n]=C[o]:w[n]=0}}}return{width:i,height:s,pixelType:a,pixels:g,mask:b?w:void 0}}(t,o,c):function(t,e,r){const n=N.Z===e.littleEndian,o=(0,G.wc)(r,"STRIPOFFSETS"),i=(0,G.wc)(r,"STRIPBYTECOUNTS");if(null==o||null==i)return null;const{width:s,height:a,pixelType:l}=(0,G.uc)([r]),c=(0,G.LZ)(r,"SAMPLESPERPIXEL")||e.planes,u=(0,G.LZ)(r,"PHOTOMETRICINTERPRETATION"),h=s*a,f=(0,G.LZ)(r,"BITSPERSAMPLE"),p=V(l),d=new p(h*c),m=(0,G.LZ)(r,"ROWSPERSTRIP"),g=(0,G.ni)(r);let y,w,C,b;if(f%8==0)for(let r=0;r<o.length;r++){const a=r*(m*s)*c;if("u8"===l||"s8"===l||n)8===g||32946===g?(C=new Uint8Array(t,o[r],i[r]),C=j(C),w=C.buffer):6===g?(C=new Uint8Array(t,o[r],i[r]),C=_(C,c,u),w=C.buffer):5===g?(C=S(t,o[r],i[r],e.littleEndian),w=C.buffer):w=t.slice(o[r],o[r]+i[r]),w=z(w,f),y=new p(w);else{switch(6===g||8===g||32946===g?(C=new Uint8Array(t,o[r],i[r]),b=j(C),w=b.buffer):(w=new ArrayBuffer(i[r]),C=new Uint8Array(t,o[r],i[r]),b=new Uint8Array(w)),l){case"u16":case"s16":for(let t=0;t<C.length;t+=2)b[t]=C[t+1],b[t+1]=C[t];break;case"u32":case"s32":case"f32":for(let t=0;t<C.length;t+=4)b[t]=C[t+3],b[t+1]=C[t+2],b[t+2]=C[t+1],b[t+3]=C[t]}w=z(w,f),y=new p(w)}d.set(y,a)}const x=[];if(1===c)x.push(d);else for(let t=0;t<c;t++){const e=new p(h);for(let r=0;r<h;r++)e[r]=d[r*c+t];x.push(e)}return{width:s,height:a,pixelType:l,pixels:x}}(t,o,c),l?(null!=u&&(0,I.Sp)(l,u,{matchAllNoData:null==s&&e?.matchAllNoData}),l):l}(t,{...e,noDataValue:e.tiffNoDataValue,matchAllNoData:e.matchAllNoData});(0,o.Lw)(r);const i=new H.A({width:r.width,height:r.height,pixels:r.pixels,pixelType:r.pixelType.toLowerCase(),mask:r.mask,bandMasks:r.bandMasks,statistics:null});return e.skipStatistics||i.updateStatistics(),i}function Q(t,e){const r=e.pixelType||"u8",n=H.A.getPixelArrayConstructor(r),o="u8"===r?t:new n(t.buffer),i=[],s=e.planes||1;if(1===s)i.push(o);else for(let r=0;r<s;r++){const a=(e.width||1)*(e.height||t.length),l=new n(a);for(let t=0;t<a;t++)l[t]=o[t*s+r];i.push(l)}const a=new H.A({width:e.width||1,height:e.height||t.length,pixels:i,pixelType:r,statistics:null});return e.skipStatistics||a.updateStatistics(),a}function tt(t,e){return Q(new a(new Uint8Array(t)).getBytes(),e)}function et(t,e){return Q(S(t,e.offset,e.eof,!e.isInputBigEndian),e)}function rt(t,e){const r=m.decode(t,e.applyJpegMask),n=new H.A({width:r.width,height:r.height,pixels:r.pixels,pixelType:"u8",mask:r.mask,statistics:null});return e.skipStatistics||n.updateStatistics(),n}function nt(t,e){const r=new Uint8Array(t),n=new K(r),{width:o,height:i}=e,s=o*i,a=n.decode(),l=new Uint8Array(s);for(let t=0;t<s;t++)l[t]=a[4*t+3];const c=new H.A({width:o,height:i,pixels:[],pixelType:"u8",mask:l,statistics:[]});for(let t=0;t<3;t++){const e=new Uint8Array(s);for(let r=0;r<s;r++)e[r]=a[4*r+t];c.addData({pixels:e})}return e.skipStatistics||c.updateStatistics(),c}async function ot(t,e,r,n){const o={...r,format:e},i=await l(t,o,n),s=new H.A(i);return r.skipStatistics||s.updateStatistics(),s}function it(t){if(null==t)throw new n.A("rasterCodec:decode","parameter encodeddata is required.");const e=new Uint8Array(t,0,10);let r="";return 255===e[0]&&216===e[1]?r="jpg":137===e[0]&&80===e[1]&&78===e[2]&&71===e[3]?r="png":67===e[0]&&110===e[1]&&116===e[2]&&90===e[3]&&73===e[4]&&109===e[5]&&97===e[6]&&103===e[7]&&101===e[8]&&32===e[9]?r="lerc":76===e[0]&&101===e[1]&&114===e[2]&&99===e[3]&&50===e[4]&&32===e[5]?r="lerc2":73===e[0]&&73===e[1]&&42===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&42===e[3]||73===e[0]&&73===e[1]&&43===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&43===e[3]?r="tiff":71===e[0]&&73===e[1]&&70===e[2]?r="gif":66===e[0]&&77===e[1]?r="bmp":81===e[0]&&66===e[1]&&51===e[2]?r="qb3":String.fromCharCode.apply(null,e).toLowerCase().includes("error")&&(r="error"),r}function st(t){let e=it(t);return"lerc2"===e?e="lerc":"error"===e&&(e=""),e}async function at(t,e={},r){if(null==t)throw new n.A("rasterCodec:decode","missing encodeddata parameter.");let o=e.format?.toLowerCase();if(!("bsq"!==o&&"bip"!==o||null!=e.width&&null!=e.height))throw new n.A("rasterCodec:decode","requires width and height in options parameter.");if("tiff"===o&&e.customOptions)return async function(t,e){const r=await async function(t,e){const{headerInfo:r,ifd:n,offsets:o,sizes:i}=e,s=[];for(let e=0;e<o.length;e++){i[e];const a=await W(t,r.littleEndian,n,o[e],i[e]||t.byteLength);s.push(a)}const a=(0,G.XO)(n,r),l=(0,G.LZ)(n,"BITSPERSAMPLE"),c=F((0,G.LZ)(n,"SAMPLEFORMAT")??1,l),u=(0,G.LZ)(n,"SAMPLESPERPIXEL")||r.planes,h=V(c),f=(0,G.LZ)(n,"TILEWIDTH"),p=(0,G.LZ)(n,"TILELENGTH"),d=34887===(0,G.ni)(n),m=f*p;let g;const y=[];let w=s[0];for(let t=0;t<u;t++){if(g=new h(m),s.length===u)w=s[t],w.length===m&&(g=w);else if(w.length)if(a||d)g=w.length===m?w:w.slice(m*t,m*(t+1));else for(let e=0;e<m;e++)g[e]=w[e*u+t];y.push(g)}const C=r.noData?r.noData[0]:e.noDataValue,b=r.metadata?r.metadata.statistics:null,x=b?b.map(t=>t.min):null,A=b?b.map(t=>t.max):null,v={pixelType:c,width:f,height:p,pixels:y,noDataValue:C};return null!=C?(0,I.Sp)(v,C,{matchAllNoData:e?.matchAllNoData}):x&&A&&e.applyMinMaxConstraint&&(v.mask=function(t,e,r){if(!(t&&t.length>0&&e&&r))return null;let n,o,i;const s=t[0].length,a=t.length,l=new Uint8Array(s);for(let c=0;c<a;c++)if(n=t[c],o=e[c],i=r[c],0===c)for(let t=0;t<s;t++)l[t]=n[t]<o||n[t]>i?0:1;else for(let t=0;t<s;t++)l[t]&&(l[t]=n[t]<o||n[t]>i?0:1);return l}(y,x,A)),v}(t,e.customOptions),n=new H.A({width:r.width,height:r.height,pixels:r.pixels,pixelType:r.pixelType.toLowerCase(),mask:r.mask,statistics:null});return e.skipStatistics||n.updateStatistics(),n}(t,e);if((!o||"bsq"!==o&&"bip"!==o&&"deflate"!==o&&"lzw"!==o)&&(o=it(t)),"no-canvas"!==e.canvasUsage&&J.has(o))try{return await ot(t,o,e,r)}catch(t){if((0,i.zf)(t))throw t;if("canvas-only"===e.canvasUsage)throw new n.A("rasterCodec:decode",`failed to decode the input data with canvas for format ${o}`)}const s=function(t){let e=null;switch(t){case"lerc":case"lerc2":e=Y;break;case"jpg":e=rt;break;case"png":e=nt;break;case"bsq":case"bip":e=(e,r)=>function(t,e,r){const{pixelTypeCtor:n}=function(t){let e=null,r=null;switch(t?t.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":r=255,e=Uint8Array;break;case"u16":r=r||65535,e=Uint16Array;break;case"u32":r=r||2**32-1,e=Uint32Array;break;case"s8":r=r||-128,e=Int8Array;break;case"s16":r=r||-32768,e=Int16Array;break;case"s32":r=r||0-2**31,e=Int32Array;break;default:e=Float32Array}return{pixelTypeCtor:e,noDataValue:r}}(e.pixelType),o=(0,B.decode)(t,{width:e.width,height:e.height,pixelType:n,format:r}),i=new H.A({width:e.width,height:e.height,pixels:o.pixels,pixelType:e.pixelType,mask:o.mask,statistics:null});return e.skipStatistics||i.updateStatistics(),i}(e,r,t);break;case"tiff":e=$;break;case"deflate":e=tt;break;case"lzw":e=et;break;case"qb3":e=X;break;case"error":e=()=>{throw new n.A("rasterCodec:decode","input data contains error")};break;default:e=()=>{throw new n.A("rasterCodec:decode","unsupported raster format")}}return e}(o);let a;e.isPoint&&(null!=(e={...e}).width&&e.width++,null!=e.height&&e.height++);const{offsets:l}=e;if(l&&l.length>1){const r=l.map((r,n)=>s(t.slice(r,l[n+1]),e)),n=await Promise.all(r);a=n[0],a.pixels=n.map(t=>t.pixels[0]);const o=n.map(t=>t.mask);n.some(t=>null!=t)&&(o.forEach((t,e)=>{null==t&&(o[e]=new Uint8Array(a.width*a.height).fill(255))}),a.bandMasks=o,a.mask=H.A.combineBandMasks(o)),a.updateStatistics()}else a=await s(t,{...e,offset:l?.[0]??e.offset});return"jpg"!==o&&null!=e.noDataValue&&1===a.depthCount&&(0,I.Sp)(a,e.noDataValue,{customFloatTolerance:e.tolerance}),e.isPoint&&function(t,e=1){if(!t)return;const{pixels:r,width:n,height:o,mask:i}=t;if(!r||0===r.length)return;const s=n-1,a=o-1,l=[];let c=null;const u=H.A.getPixelArrayConstructor(t.pixelType);if(0===e){for(const t of r){const e=new u(s*a);for(let r=0;r<a;r++){const o=r*n;for(let n=0;n<s;n++)e[r*s+n]=t[o+n]}l.push(e)}if(null!=i){c=new Uint8Array(s*a);for(let t=0;t<a;t++){const e=t*n;for(let r=0;r<s;r++)c[t*s+r]=i[e+r]}}}else{for(const t of r){const e=new u(s*a);for(let r=0;r<a;r++){const o=r*n;for(let i=0;i<s;i++)e[r*s+i]=(t[o+i]+t[o+i+1]+t[o+n+i]+t[o+n+i+1])/4}l.push(e)}if(i){c=new Uint8Array(s*a);for(let t=0;t<a;t++){const e=t*n;for(let r=0;r<s;r++)c[t*s+r]=Math.min.apply(null,[i[e+r],i[e+r+1],i[e+n+r],i[e+n+r+1]])}}}t.width=s,t.height=a,t.mask=c,t.pixels=l}(a),a}},94778(t,e,r){r.d(e,{$p:()=>l,Sp:()=>c,X1:()=>i,hP:()=>o,yM:()=>a,zw:()=>s});const n={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34028234663852886e22,34028234663852886e22],f64:[-Number.MAX_VALUE,Number.MAX_VALUE],unknown:void 0,c64:void 0,c128:void 0};function o(t){return n[t]??[-34028234663852886e22,34028234663852886e22]}function i(t,e){return null==t||null==e?"s32":t<0?t>=-128&&e<128?"s8":t>=-32768&&e<32768?"s16":"s32":e<256?"u8":e<65536?"u16":"u32"}function s(t){return(t?.startsWith("s")||t?.startsWith("u"))??!1}function a(t,e,r,n){let[i,a]=o(r);const l=s(r);return l&&(i-=1e-5,a+=1e-5),l?r.startsWith("u")?function(t,e,r,n){const[o,i]=n;for(let n=0;n<e.length;n++)if(e[n]){const s=t[n];s<o||s>i?e[n]=0:r[n]=s+.5|0}}(t,e,n,[i,a]):function(t,e,r,n){const[o,i]=n;for(let n=0;n<e.length;n++)if(e[n]){const s=t[n];s<o||s>i?e[n]=0:r[n]=s+(s>0?.5:-.5)|0}}(t,e,n,[i,a]):function(t,e,r,n){const[o,i]=n;for(let n=0;n<e.length;n++)if(e[n]){const s=t[n];s<o||s>i?e[n]=0:r[n]=s}}(t,e,n,[i,a])}function l(t,e){for(let r=0;r<e.length;r++)e[r]&&isNaN(t[r])&&(e[r]=0,t[r]=0)}function c(t,e,r){if(t.depthCount&&t.depthCount>1)return;const{pixels:n,statistics:i,pixelType:s}=t,a=n[0].length,l=t.bandMasks??[],c=t.mask??new Uint8Array(a).fill(255),u="f32"===s||"f64"===s,h=o(s);let f=!1;for(let t=0;t<n.length;t++){const o="number"==typeof e?e:e[t];if(null==o)continue;const a=i?.[t]?.minValue??h[0],p=i?.[t]?.maxValue??h[1];if(a>o+Number.EPSILON||p<o-Number.EPSILON)continue;const d=l[t]||c.slice(),m=n[t],g=r?.customFloatTolerance;if(u&&0!==g){let t=g;t||(t=Math.abs(o)>=9999999e31?2e-7*Math.abs(o):"f32"===s?2**-23:Number.EPSILON);for(let e=0;e<m.length;e++)d[e]&&Math.abs(m[e]-o)<t&&(m[e]=0,d[e]=0,c[e]=0,f=!0)}else for(let t=0;t<m.length;t++)d[t]&&m[t]===o&&(m[t]=0,d[t]=0,c[t]=0,f=!0);l[t]=d}if(f){const e=t.bandMasks||t.pixels.length>1?l:null;r?.matchAllNoData?t.mask=e&&e.length>1?function(t){if(t.length<2)return t[0];const e=t[0].length,r=new Uint8Array(e).fill(0);for(let n=0;n<t.length;n++){const o=t[n];for(let t=0;t<e;t++)o[t]&&(r[t]=255)}return r}(e):c:(t.bandMasks=e,t.mask=c)}f&&"updateStatistics"in t&&t.updateStatistics()}},44094(t,e,r){r.d(e,{Cr:()=>w,JM:()=>I,LZ:()=>p,RW:()=>E,XO:()=>A,_J:()=>x,ni:()=>v,r9:()=>S,uT:()=>P,uc:()=>M,wc:()=>h,zS:()=>T});var n=r(49186),o=r(9334),i=r(94213);const s=[0,1,1,2,4,8,1,1,2,4,8,4,8,-1,-1,-1,8,8,8],a=4294967296,l=new Map([[1,(t,e)=>t.getUint8(e)],[2,(t,e)=>t.getUint8(e)],[3,(t,e,r)=>t.getUint16(e,r)],[4,(t,e,r)=>t.getUint32(e,r)],[5,(t,e,r)=>t.getUint32(e,r)/t.getUint32(e+4,r)],[6,(t,e)=>t.getInt8(e)],[7,(t,e)=>t.getUint8(e)],[8,(t,e,r)=>t.getInt16(e,r)],[9,(t,e,r)=>t.getInt32(e,r)],[10,(t,e,r)=>t.getInt32(e,r)/t.getInt32(e+4,r)],[11,(t,e,r)=>t.getFloat32(e,r)],[12,(t,e,r)=>t.getFloat64(e,r)],[13,(t,e,r)=>t.getUint32(e,r)],[16,(t,e,r)=>c(t,e,r)],[17,(t,e,r)=>function(t,e,r){let n=r?t.getInt32(e,r):t.getUint32(e,r),o=r?t.getUint32(e+4,r):t.getInt32(e+4,r);const i=(r?n:o)>=0?1:-1;return r?n*=i:o*=i,i*(r?o*a+n:n*a+o)}(t,e,r)],[18,(t,e,r)=>c(t,e,r)]]);function c(t,e,r){const n=t.getUint32(e,r),o=t.getUint32(e+4,r);return r?o*a+n:n*a+o}function u(t,e){return{x:e[0]*t.x+e[1]*t.y+e[2],y:e[3]*t.x+e[4]*t.y+e[5]}}function h(t,e){return t.get(e)?.values}function f(t,e){return t.get(e)?.values?.[0]}function p(t,e){return t.get(e)?.values?.[0]}function d(t,e,r,n){return n?c(t,e,r):t.getUint32(e,r)}function m(t,e,r,n=0,o=i.NB,s=4){const a=8===s,l=a?c(new DataView(t,r,8),0,e):new DataView(t,r,2).getUint16(0,e),u=4+2*s,h=a?8:2,f=h+l*u;if(r+f>t.byteLength)return{success:!1,ifd:null,nextIFD:null,requiredBufferSize:f};const p=8===s?8:4,m=r+f+p<=t.byteLength?d(new DataView(t,r+f,p),0,e,8===s):null,g=r+h,y=new Map;for(let r=0;r<l;r++){const a=new DataView(t,g+u*r,u),l=a.getUint16(0,e),c=a.getUint16(2,e),h=(0,i.kq)(l,o),f=[];let p=0,m=0;2===s?(p=a.getUint16(4,e),m=a.getUint16(6,e)):4===s?(p=a.getUint32(4,e),m=a.getUint32(8,e)):8===s&&(p=d(a,4,e,!0),m=d(a,12,e,!0),f.push(a.getUint32(12,e)),f.push(a.getUint32(16,e)));const C={id:l,type:c,valueCount:p,valueOffset:m,valueOffsets:f,values:null};w(t,e,C,n,!1,s),y.set(h,C)}return{success:!0,ifd:y,nextIFD:m,requiredBufferSize:f}}function g(t,e,r,n){const{type:o,valueCount:i}=e,a=s[o];if(null==a||a<=0)return[];const c=i*a,u=c/a,h=new DataView(t,r,c),f=[],p=l.get(o);if(!p)return[];for(let t=0,e=0;t<u;t++,e+=a)f.push(p(h,e,n));return f}function y(t,e,r=4){const{type:n,valueCount:o,valueOffsets:i}=t,l=8*s[n],c=o*s[n]*8;let{valueOffset:u}=t;const h=8===r?64:32;if(!e)if(h<=32)u>>>=32-c;else{const t=i?.length?i[0]:u>>>0,e=i?.length?i[1]:Math.round((u-t)/a);c<=32?(u=t>>>32-c,i[0]=u):(u=t*2**(32-c)+(e>>>32-c),i[0]=t,i[1]=e>>>32-c)}if(1===o&&l===h)return[u];const f=[];if(64===h){const t=i?.length?i[0]:u>>>0,e=i?.length?i[1]:Math.round((u-t)/a);let r=t,n=32;for(let t=1;t<=o;t++){const o=32-l*t%32;if(n<l){const t=r<<o>>>32-n,i=e<<32-n>>>32-n;r=e,f.push(t+i*2**(l-n)),n-=32-(l-n)}else f.push(r<<o>>>32-l),n-=l;0===n&&(n=32,r=e)}return f}for(let t=1;t<=o;t++){const e=32-l*t;f.push(u<<e>>>32-l)}return f}function w(t,e,r,n=0,i=!1,a=4){if(r.values)return!0;const{type:l,valueCount:c}=r;let u=r.valueOffset;const h=c*s[l],f=c*s[l]*8,p=8===a?64:32;if(f>p&&h>(i?t.byteLength:t?t.byteLength-u+n:0))return r.offlineOffsetSize=[u,h],r.values=null,!1;let d=[];if(f<=p?d=y(r,e,a):(u-=n,i&&(u=0),d=g(t,r,u,e)),2===l){const t=d.length?(0,o.w)(d instanceof Uint8Array?d:new Uint8Array(d)):"";r.values=[t]}else r.values=d;return!0}function C(t){const e=p(t,"PHOTOMETRICINTERPRETATION"),r=h(t,"COLORMAP");if(null!=e&&e<=3&&r?.length&&r.length%3==0){const t=[],e=r.length/3;for(let n=0;n<e;n++)t.push([n,r[n]>>>8,r[n+e]>>>8,r[n+2*e]>>>8]);return t}}function b(t){const e=h(t,"GEOTIEPOINTS"),r=h(t,"GEOPIXELSCALE"),n=h(t,"GEOTRANSMATRIX"),o=t.get("GEOKEYDIRECTORY")?.data,i=!!o&&2===p(o,"GTRasterTypeGeoKey"),{spatialReference:s,isPseudoGeographic:a}=function(t){const e=f(t,"GEOASCIIPARAMS");let r=null;if(e){const t=e.split("|").find(t=>t.includes("ESRI PE String = ")),n=t?t.replace("ESRI PE String = ",""):"";r=n.startsWith("COMPD_CS")||n.startsWith("PROJCS")||n.startsWith("GEOGCS")?{wkid:null,wkt:n}:null}let n=!1;const o=t.get("GEOKEYDIRECTORY")?.data;if(o){const t=p(o,"GTModelTypeGeoKey");if(2===t){const t=p(o,"GeographicTypeGeoKey");t>=1024&&t<=32766&&(r={wkid:t}),r||32767!==t||(n=!0,r={wkid:4326})}else if(1===t){const t=p(o,"ProjectedCSTypeGeoKey");t>=1024&&t<=32766&&(r={wkid:t})}}return{spatialReference:r,isPseudoGeographic:n}}(t);let l,c;r&&e&&e.length>=6?(l=[r[0],0,e[3]-e[0]*r[0],0,-Math.abs(r[1]),e[4]-e[1]*r[1]],i&&(l[2]-=.5*l[0]+.5*l[1],l[5]-=.5*l[3]+.5*l[4])):16===n?.length&&(l=i?[n[0],n[1],n[3]-.5*n[0],n[4],n[5],n[7]-.5*n[5]]:[n[0],n[1],n[3],n[4],n[5],n[7]]);const d=p(t,"IMAGEWIDTH"),m=p(t,"IMAGELENGTH");if(l){const t=[{x:0,y:m},{x:0,y:0},{x:d,y:m},{x:d,y:0}];let e,r=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,i=Number.NEGATIVE_INFINITY;for(let s=0;s<t.length;s++)e=u(t[s],l),r=e.x>r?r:e.x,o=e.x<o?o:e.x,n=e.y>n?n:e.y,i=e.y<i?i:e.y;c={xmin:r,xmax:o,ymin:n,ymax:i,spatialReference:s}}else c={xmin:-.5,ymin:.5-m,xmax:d-.5,ymax:.5,spatialReference:s};return a&&(c.xmax-c.xmin>400||Math.max(Math.abs(c.xmin),Math.abs(c.xmax))>361)&&(c.spatialReference=null),{extent:c,isPseudoGeographic:a,affine:r?void 0:l}}function x(t){const{width:e,height:r,tileHeight:n,tileWidth:o}=t,i=t.planes,s=o?o*n:e*r,a=p(t.ifds[0],"BITSPERSAMPLE");let l="";return s*i>2**30/(a>8?a/8:1)&&(l=o?"tiled tiff exceeding 1 gigabits per tile is not supported":"scanline tiff exceeding 1 gigabits is not supported"),l}function A(t,e){const r=p(t,"PLANARCONFIGURATION");return null!=r?2===r:!!e&&e.isBSQ}function v(t){return p(t,"COMPRESSION")??1}function k(t){const e=v(t);let r,n=!1;switch(e){case 1:r="NONE",n=!0;break;case 2:case 3:case 4:case 32771:r="CCITT";break;case 5:r="LZW",n=!0;break;case 6:case 7:r="JPEG",n=!0;break;case 32773:r="PACKBITS";break;case 8:case 32946:r="DEFLATE",n=!0;break;case 34712:r="JPEG2000";break;case 34887:r="LERC",n=!0;break;default:r=String(e)}return{compression:r,supported:n}}function M(t){const e=t[0],r=p(e,"TILEWIDTH"),n=p(e,"TILELENGTH"),o=p(e,"IMAGEWIDTH"),i=p(e,"IMAGELENGTH"),s=p(e,"BITSPERSAMPLE"),a=p(e,"SAMPLESPERPIXEL"),l=p(e,"SAMPLEFORMAT")??1,c=function(t,e){let r="unknown";return 3===t?r=64===e?"f64":"f32":1===t?1===e?r="u1":2===e?r="u2":4===e?r="u4":e<=8?r="u8":e<=16?r="u16":e<=32&&(r="u32"):2===t&&(e<=8?r="s8":e<=16?r="s16":e<=32&&(r="s32")),r}(l,s),u=A(e),h=function(t){return t.get("GDAL_NODATA")?.values}(e);let d=null;h?.length&&(d=h.map(t=>parseFloat(t)),d.some(t=>isNaN(t))&&(d=null));let m=!0,g="";const{compression:y,supported:w}=k(e);w||(m=!1,g+="unsupported tag compression "+y),l>3&&(m=!1,g+="unsupported tag sampleFormat "+l),s>32&&64!==s&&(m=!1,g+="unsupported tag bitsPerSample "+s);const{extent:v,isPseudoGeographic:M,affine:I}=b(e),P=T(t);let E,R,L,U,O;if(P.length>0){L=Math.round(Math.log(o/p(P[0],"IMAGEWIDTH"))/Math.LN2);const t=P[P.length-1];U=P.length,E=p(t,"TILEWIDTH"),R=p(t,"TILELENGTH")}E=null!=U&&U>0?E||r:null,R=null!=U&&U>0?R||n:null,r&&(O=[{maxCol:Math.ceil(o/r)-1,maxRow:Math.ceil(i/n)-1,minRow:0,minCol:0}],P.forEach(t=>{O.push({maxCol:Math.ceil(p(t,"IMAGEWIDTH")/p(t,"TILEWIDTH"))-1,maxRow:Math.ceil(p(t,"IMAGELENGTH")/p(t,"TILELENGTH"))-1,minRow:0,minCol:0})}));const D=function(t){if(!t)return null;const e=t.match(/<Item(.*?)Item>/gi);if(!e||0===e.length)return null;const r=new Map;for(let t=0;t<e.length;t++){const n=e[t];let o=n.indexOf("sample=");const i=o>-1?n.slice(o+8,n.indexOf('"',o+8)):null;o=n.indexOf("name=");const s=o>-1?n.slice(o+6,n.indexOf('"',o+6)):n.slice(6,n.indexOf(">"));if(s){const t=n.slice(n.indexOf(">")+1,n.indexOf("</Item>")).trim();null!=i?r.has(s)?r.get(s)[i]=t:r.set(s,[t]):r.set(s,t)}}const n=r.get("STATISTICS_MINIMUM"),o=r.get("STATISTICS_MAXIMUM"),i=r.get("STATISTICS_MEAN"),s=r.get("STATISTICS_STDDEV");let a=null;if(n&&o){a=[];for(let t=0;t<n.length;t++)a.push({min:parseFloat(n[t]),max:parseFloat(o[t]),avg:i&&parseFloat(i[t]),stddev:s&&parseFloat(s[t])})}const l=r.get("BandName"),c=r.get("WavelengthMin"),u=r.get("WavelengthMax");let h=null;if(l){h=[];for(let t=0;t<l.length;t++)h.push({BandName:l[t],WavelengthMin:c&&parseFloat(c[t]),WavelengthMax:u&&parseFloat(u[t])})}return{statistics:a,bandProperties:h,dataType:r.get("DataType"),rawMetadata:r}}(f(t[0],"GDAL_METADATA"));g+=" "+x({width:o,height:i,tileWidth:r,tileHeight:n,planes:a,ifds:t});const B=S(t).length===P.length+1,G=P?.length?P.map(t=>({x:o/p(t,"IMAGEWIDTH"),y:i/p(t,"IMAGELENGTH")})):void 0,N=C(e);return{width:o,height:i,tileWidth:r,tileHeight:n,planes:a,isBSQ:u,pixelType:c,compression:y,noData:d,hasMaskBand:B,isSupported:m,pyramidResolutions:G,message:g,extent:v,isPseudoGeographic:M,affine:I,firstPyramidLevel:L,maximumPyramidLevel:U,pyramidBlockWidth:E,pyramidBlockHeight:R,tileBoundary:O,metadata:D,colormap:N}}function T(t){return t.filter(t=>1===p(t,"NEWSUBFILETYPE"))}function S(t){return t.filter(t=>{const e=!(4&~(p(t,"NEWSUBFILETYPE")??0)),r=4===p(t,"PHOTOMETRICINTERPRETATION");return e&&r})}function I(t,e,r,n=0,s=i.NB,a=4){const l=m(t,e,r,n,s,a);let c;const u=l.ifd;if(u){if(i.RR.forEach((r,o)=>{u.has(o)&&(c=u.get(o),c.data=m(t,e,c.valueOffset-n,n,r).ifd)}),u.has("GEOKEYDIRECTORY")){c=u.get("GEOKEYDIRECTORY");const r=c.values;if(r&&r.length>4){const o=r[0]+"."+r[1]+"."+r[2];c.data=m(t,e,c.valueOffset+6-n,n,i.YC,2).ifd,c.data&&c.data.set("GEOTIFFVersion",{id:0,type:2,valueCount:1,valueOffset:null,values:[o]})}}if(u.has("XMP")){c=u.get("XMP");const t=c.values;"number"==typeof t[0]&&7===c.type&&(c.values=[(0,o.w)(new Uint8Array(t))])}}return l}function P(t){const e=new DataView(t,0,16),r=e.getUint16(0,!1);let o=null;if(18761===r)o=!0;else{if(19789!==r)throw new n.A("tiff-reader:parse-signature","unexpected endianness byte");o=!1}const i=e.getUint16(2,o);if(42!==i&&43!==i)throw new n.A("tiff-reader:parse-signature","unexpected tiff identifier");let s=4;const a=43===i;if(a){const t=e.getUint16(s,o);if(s+=2,8!==t||0!==e.getUint16(s,o))throw new n.A("tiff-reader:parse-signature","unsupported bigtiff version");s+=2}return{littleEndian:o,isBigTiff:a,firstIFDPos:d(e,s,o,a)}}function E(t){const{littleEndian:e,isBigTiff:r,firstIFDPos:n}=P(t);let o=n;const s=[];do{const n=I(t,e,o,0,i.NB,r?8:4);if(!n.success)break;s.push(n.ifd),o=n.nextIFD}while(o>0);return{...M(s),littleEndian:e,isBigTiff:r,ifds:s,pyramidIFDs:T(s),maskIFDs:S(s)}}},94213(t,e,r){r.d(e,{NB:()=>n,RR:()=>a,YC:()=>i,kq:()=>s});const n=(()=>{const t=[];return t[254]="NEWSUBFILETYPE",t[255]="SUBFILETYPE",t[256]="IMAGEWIDTH",t[257]="IMAGELENGTH",t[258]="BITSPERSAMPLE",t[259]="COMPRESSION",t[262]="PHOTOMETRICINTERPRETATION",t[263]="THRESHHOLDING",t[264]="CELLWIDTH",t[265]="CELLLENGTH",t[266]="FILLORDER",t[269]="DOCUMENTNAME",t[270]="IMAGEDESCRIPTION",t[271]="MAKE",t[272]="MODEL",t[273]="STRIPOFFSETS",t[274]="ORIENTATION",t[277]="SAMPLESPERPIXEL",t[278]="ROWSPERSTRIP",t[279]="STRIPBYTECOUNTS",t[280]="MINSAMPLEVALUE",t[281]="MAXSAMPLEVALUE",t[282]="XRESOLUTION",t[283]="YRESOLUTION",t[284]="PLANARCONFIGURATION",t[285]="PAGENAME",t[286]="XPOSITION",t[287]="YPOSITION",t[288]="FREEOFFSETS",t[289]="FREEBYTECOUNTS",t[290]="GRAYRESPONSEUNIT",t[291]="GRAYRESPONSECURVE",t[292]="T4OPTIONS",t[293]="T6OPTIONS",t[296]="RESOLUTIONUNIT",t[297]="PAGENUMBER",t[300]="COLORRESPONSEUNIT",t[301]="TRANSFERFUNCTION",t[305]="SOFTWARE",t[306]="DATETIME",t[315]="ARTIST",t[316]="HOSTCOMPUTER",t[317]="PREDICTOR",t[318]="WHITEPOINT",t[319]="PRIMARYCHROMATICITIES",t[320]="COLORMAP",t[321]="HALFTONEHINTS",t[322]="TILEWIDTH",t[323]="TILELENGTH",t[324]="TILEOFFSETS",t[325]="TILEBYTECOUNTS",t[326]="BADFAXLINES",t[327]="CLEANFAXDATA",t[328]="CONSECUTIVEBADFAXLINES",t[330]="SUBIFD",t[332]="INKSET",t[333]="INKNAMES",t[334]="NUMBEROFINKS",t[336]="DOTRANGE",t[337]="TARGETPRINTER",t[338]="EXTRASAMPLES",t[339]="SAMPLEFORMAT",t[340]="SMINSAMPLEVALUE",t[341]="SMAXSAMPLEVALUE",t[342]="TRANSFERRANGE",t[347]="JPEGTABLES",t[512]="JPEGPROC",t[513]="JPEGIFOFFSET",t[514]="JPEGIFBYTECOUNT",t[515]="JPEGRESTARTINTERVAL",t[517]="JPEGLOSSLESSPREDICTORS",t[518]="JPEGPOINTTRANSFORM",t[519]="JPEGQTABLES",t[520]="JPEGDCTABLES",t[521]="JPEGACTABLES",t[529]="YCBCRCOEFFICIENTS",t[530]="YCBCRSUBSAMPLING",t[531]="YCBCRPOSITIONING",t[532]="REFERENCEBLACKWHITE",t[700]="XMP",t[33550]="GEOPIXELSCALE",t[33922]="GEOTIEPOINTS",t[33432]="COPYRIGHT",t[42112]="GDAL_METADATA",t[42113]="GDAL_NODATA",t[50844]="RPCCOEFFICIENT",t[34264]="GEOTRANSMATRIX",t[34735]="GEOKEYDIRECTORY",t[34736]="GEODOUBLEPARAMS",t[34737]="GEOASCIIPARAMS",t[34665]="EXIFIFD",t[34853]="GPSIFD",t[40965]="INTEROPERABILITYIFD",t})(),o=(()=>{const t=n.slice();return t[36864]="ExifVersion",t[40960]="FlashpixVersion",t[40961]="ColorSpace",t[42240]="Gamma",t[37121]="ComponentsConfiguration",t[37122]="CompressedBitsPerPixel",t[40962]="PixelXDimension",t[40963]="PixelYDimension",t[37500]="MakerNote",t[37510]="UserComment",t[40964]="RelatedSoundFile",t[36867]="DateTimeOriginal",t[36868]="DateTimeDigitized",t[36880]="OffsetTime",t[36881]="OffsetTimeOriginal",t[36882]="OffsetTimeDigitized",t[37520]="SubSecTime",t[37521]="SubSecTimeOriginal",t[37522]="SubSecTimeDigitized",t[37888]="Temperature",t[37889]="Humidity",t[37890]="Pressure",t[37891]="WaterDepth",t[37892]="Acceleration",t[37893]="CameraElevationAngle",t[42016]="ImageUniqueID",t[42032]="CameraOwnerName",t[42033]="BodySerialNumber",t[42034]="LensSpecification",t[42035]="LensMake",t[42036]="LensModel",t[42037]="LensSerialNumber",t[33434]="ExposureTime",t[33437]="FNumber",t[34850]="ExposureProgram",t[34852]="SpectralSensitivity",t[34855]="PhotographicSensitivity",t[34856]="OECF",t[34864]="SensitivityType",t[34865]="StandardOutputSensitivity",t[34866]="RecommendedExposureIndex",t[34867]="ISOSpeed",t[34868]="ISOSpeedLatitudeyyy",t[34869]="ISOSpeedLatitudezzz",t[37377]="ShutterSpeedValue",t[37378]="ApertureValue",t[37379]="BrightnessValue",t[37380]="ExposureBiasValue",t[37381]="MaxApertureValue",t[37382]="SubjectDistance",t[37383]="MeteringMode",t[37384]="LightSource",t[37385]="Flash",t[37386]="FocalLength",t[37396]="SubjectArea",t[41483]="FlashEnergy",t[41484]="SpatialFrequencyResponse",t[41486]="FocalPlaneXResolution",t[41487]="FocalPlaneYResolution",t[41488]="FocalPlaneResolutionUnit",t[41492]="SubjectLocation",t[41493]="ExposureIndex",t[41495]="SensingMethod",t[41728]="FileSource",t[41729]="SceneType",t[41730]="CFAPattern",t[41985]="CustomRendered",t[41986]="ExposureMode",t[41987]="WhiteBalance",t[41988]="DigitalZoomRatio",t[41989]="FocalLengthIn35mmFilm",t[41990]="SceneCaptureType",t[41991]="GainControl",t[41992]="Contrast",t[41993]="Saturation",t[41994]="Sharpness",t[41995]="DeviceSettingDescription",t[41996]="SubjectDistanceRange",t})(),i=(()=>{const t=[];return t[1024]="GTModelTypeGeoKey",t[1025]="GTRasterTypeGeoKey",t[1026]="GTCitationGeoKey",t[2048]="GeographicTypeGeoKey",t[2049]="GeogCitationGeoKey",t[2050]="GeogGeodeticDatumGeoKey",t[2051]="GeogPrimeMeridianGeoKey",t[2052]="GeogLinearUnitsGeoKey",t[2053]="GeogLinearUnitSizeGeoKey",t[2054]="GeogAngularUnitsGeoKey",t[2055]="GeogAngularUnitSizeGeoKey",t[2056]="GeogEllipsoidGeoKey",t[2057]="GeogSemiMajorAxisGeoKey",t[2058]="GeogSemiMinorAxisGeoKey",t[2059]="GeogInvFlatteningGeoKey",t[2061]="GeogPrimeMeridianLongGeoKey",t[2060]="GeogAzimuthUnitsGeoKey",t[3072]="ProjectedCSTypeGeoKey",t[3073]="PCSCitationGeoKey",t[3074]="ProjectionGeoKey",t[3075]="ProjCoordTransGeoKey",t[3076]="ProjLinearUnitsGeoKey",t[3077]="ProjLinearUnitSizeGeoKey",t[3078]="ProjStdParallel1GeoKey",t[3079]="ProjStdParallel2GeoKey",t[3080]="ProjNatOriginLongGeoKey",t[3081]="ProjNatOriginLatGeoKey",t[3082]="ProjFalseEastingGeoKey",t[3083]="ProjFalseNorthingGeoKey",t[3084]="ProjFalseOriginLongGeoKey",t[3085]="ProjFalseOriginLatGeoKey",t[3086]="ProjFalseOriginEastingGeoKey",t[3087]="ProjFalseOriginNorthingGeoKey",t[3088]="ProjCenterLongGeoKey",t[3090]="ProjCenterEastingGeoKey",t[3091]="ProjCenterNorthingGeoKey",t[3092]="ProjScaleAtNatOriginGeoKey",t[3093]="ProjScaleAtCenterGeoKey",t[3094]="ProjAzimuthAngleGeoKey",t[3095]="ProjStraightVertPoleLongGeoKey",t[4096]="VerticalCSTypeGeoKey",t[4097]="VerticalCitationGeoKey",t[4098]="VerticalDatumGeoKey",t[4099]="VerticalUnitsGeoKey",t})(),s=(t,e)=>{let r=(e||n)[t];return void 0===r&&(r="unknown"+String(t)),r},a=new Map([["EXIFIFD",o],["GPSIFD",["GPSVersionID","GPSLatitudeRef","GPSLatitude","GPSLongitudeRef","GPSLongitude","GPSAltitudeRef","GPSAltitude","GPSTimeStamp","GPSSatellites","GPSStatus","GPSMeasureMode","GPSDOP","GPSSpeedRef","GPSSpeed","GPSTrackRef","GPSTrack","GPSImgDirectionRef","GPSImgDirection","GPSMapDatum","GPSDestLatitudeRef","GPSDestLatitude","GPSDestLongitudeRef","GPSDestLongitude","GPSDestBearingRef","GPSDestBearing","GPSDestDistanceRef","GPSDestDistance","GPSProcessingMethod","GPSAreaInformation","GPSDateStamp","GPSDifferential","GPSHPositioningError"]]])},10713(t,e,r){r.d(e,{Z:()=>n});const n=(()=>{const t=new ArrayBuffer(4),e=new Uint8Array(t);return new Uint32Array(t)[0]=1,1===e[0]})()},47520(t,e,r){r.d(e,{$Q:()=>L,$i:()=>N,AB:()=>l,Ew:()=>C,Hx:()=>y,J$:()=>D,L:()=>F,QF:()=>G,UK:()=>p,Wt:()=>M,Wy:()=>c,XU:()=>k,YD:()=>A,_F:()=>g,bL:()=>w,dK:()=>v,eH:()=>f,et:()=>s,lD:()=>O,qL:()=>h,z$:()=>I,z7:()=>S,zg:()=>u});var n=r(34727),o=r(94778),i=r(14140);const s=9,a="PixelID";function l(t){return null!=t&&t.pixels?.length>0}function c(t){if(!t?.length||t.some(t=>!l(t)))return null;if(1===t.length)return t[0]?.clone()??null;const e=t,{width:r,height:n,pixelType:o}=e[0];if(e.some(t=>t.width!==r||t.height!==n))return null;const s=e.map(({mask:t})=>t).filter(t=>null!=t);let a=null;s.length&&(a=new Uint8Array(r*n),a.set(s[0]),s.length>1&&A(s.slice(1),a));const c=[];e.forEach(({pixels:t})=>c.push(...t));const u=null!=a&&c.length===e.length?e.map(({width:t,height:e,mask:r})=>r??new Uint8Array(t*e).fill(255)):null,h=e.map(({statistics:t})=>t).filter(t=>t?.length),f=[];return h.forEach(t=>f.push(...t)),new i.A({pixelType:o,width:r,height:n,mask:a,bandMasks:u,pixels:c,statistics:f.length?f:null})}function u(t){if(!t)return;const e=t.colormap;if(!e||0===e.length)return;const r=e.sort((t,e)=>t[0]-e[0]),n=r[0][0]<0?r[0][0]:0,o=Math.max(256,r[r.length-1][0]-n+1),i=new Uint8Array(4*o),s=[],a=5===r[0].length;if(o>65536)return r.forEach(t=>{s[t[0]-n]=a?t.slice(1):t.slice(1).concat([255])}),{indexed2DColormap:s,offset:n,alphaSpecified:a};if(t.fillUnspecified){let t=r[0];for(let e=t[0]-n,s=0;e<o;e++)i[4*e]=t[1],i[4*e+1]=t[2],i[4*e+2]=t[3],i[4*e+3]=a?t[4]:255,e===t[0]-n&&(t=s===r.length-1?t:r[++s])}else for(let t=0;t<r.length;t++){const e=r[t],o=4*(e[0]-n);i[o]=e[1],i[o+1]=e[2],i[o+2]=e[3],i[o+3]=a?e[4]:255}return{indexedColormap:i,offset:n,alphaSpecified:a}}function h(t,e){if(!l(t))return t;if(!e||!e.indexedColormap&&!e.indexed2DColormap)return t;const r=t.clone(),n=r.pixels;let o=r.mask;const i=r.width*r.height;if(1!==n.length)return t;const{indexedColormap:s,indexed2DColormap:a,offset:c,alphaSpecified:u}=e,h=n[0],f=new Uint8Array(h.length),p=new Uint8Array(h.length),d=new Uint8Array(h.length);let m,g=0;if(s){const t=s.length-1;if(null!=o)for(let e=0;e<i;e++)o[e]&&(g=4*(h[e]-c),g<c||g>t?o[e]=0:(f[e]=s[g],p[e]=s[g+1],d[e]=s[g+2],o[e]=s[g+3]));else{o=new Uint8Array(i);for(let e=0;e<i;e++)g=4*(h[e]-c),g<c||g>t?o[e]=0:(f[e]=s[g],p[e]=s[g+1],d[e]=s[g+2],o[e]=s[g+3]);r.mask=o}}else if(a)if(null!=o)for(let t=0;t<i;t++)o[t]&&(m=a[h[t]],f[t]=m[0],p[t]=m[1],d[t]=m[2],o[t]=m[3]);else{o=new Uint8Array(i);for(let t=0;t<i;t++)m=a[h[t]],f[t]=m[0],p[t]=m[1],d[t]=m[2],o[t]=m[3];r.mask=o}return r.pixels=[f,p,d],r.statistics=null,r.pixelType="u8",r.maskIsAlpha=u,r}function f(t,e){if(!l(t))return null;const{pixels:r,mask:n}=t,o=r.length;let s=e.lut;const{offset:a}=e;s&&1===s[0].length&&(s=r.map(()=>s));const c=[],u=e.outputPixelType||"u8";for(let t=0;t<o;t++){const e=p(r[t],n,s[t],a||0,u);c.push(e)}const h=new i.A({width:t.width,height:t.height,pixels:c,mask:n,pixelType:u});return h.updateStatistics(),h}function p(t,e,r,n,o){const s=t.length,a=i.A.createEmptyBand(o,s);if(e)for(let o=0;o<s;o++)e[o]&&(a[o]=r[t[o]-n]);else for(let e=0;e<s;e++)a[e]=r[t[e]-n];return a}function d(t,e,r,n){const{width:o,height:i,pixels:s,mask:a}=t,l=o*i,{bandId:c,ranges:u}=r,h=s[c];if(!h)return;const f=1===u.length,[p,d]=u[0];for(let t=0;t<l;t++)if(!a||a[t]){const r=h[t];if(f)r>=p&&r<=d&&(e[t]=n);else for(let o=0;o<u.length;o++){const[i,s]=u[o];if(r>=i&&r<=s){e[t]=n;break}}}}function m(t,e,r,n){const{width:o,height:i,xyMask:s,xBandId:a,yBandId:l,xBandRange:c,yBandRange:u}=r,{pixels:h,mask:f}=t,p=h[a],d=h[l],[m,g]=c,[y,w]=u,C=(g-m)/o,b=(w-y)/i;for(let t=0;t<p.length;t++)if(!f||f[t]){let r=p[t],a=d[t];if(r<m||r>g||a<y||a>w)continue;s?(r=(r-m)*C,r=r>o-1?o-1:r<0?0:255&r,a=(w-a)*b,a=a>i-1?i-1:a<0?0:255&a,s[a*o+r]&&(e[t]=n)):e[t]=n}}function g(t){const{pixelBlock:e,renderedPixelBlock:r,highlightOptions:n}=t;if(!l(e))return;const{width:o,height:i}=e,s=o*i,a=new Uint8Array(s);for(let t=1;t<=n.length;t++){const r=n[t-1];"bandId"in r?d(e,a,r,t):m(e,a,r,t)}const{pixels:c}=r;1===c.length&&(c[1]=c[0].slice(),c[2]=c[0].slice());const u=n.map(t=>t.color),[h,f,p]=c;if(r.mask){const t=r.mask;for(let e=0;e<s;e++)if(t[e]){t[e]=255;const r=a[e];if(r){const n=u[r-1];h[e]=n[0],f[e]=n[1],p[e]=n[2],t[e]=n[3]}}}else{const t=new Uint8Array(s).fill(255);for(let e=0;e<s;e++){const r=a[e];if(r){const n=u[r-1];h[e]=n[0],f[e]=n[1],p[e]=n[2],t[e]=n[3]}}r.mask=t}r.maskIsAlpha=!0}function y(t,e){if(!l(t))return null;const r=t.clone(),{pixels:n}=r,o=r.width*r.height,i=e.length,s=Math.floor(i/2),a=e[Math.floor(s)],c=n[0],u=new Uint8Array(o),h=new Uint8Array(o),f=new Uint8Array(o);let p=r.mask;const d=4===e[0].mappedColor.length;p||(p=new Uint8Array(o),p.fill(d?255:1),r.mask=p);for(let t=0;t<o;t++)if(p[t]){const r=c[t];let n=!1,o=s,l=a,d=0,m=i-1;for(;m-d>1;){if(r===l.value){n=!0;break}r>l.value?d=o:m=o,o=Math.floor((d+m)/2),l=e[Math.floor(o)]}n||(r===e[d].value?(l=e[d],n=!0):r===e[m].value?(l=e[m],n=!0):r<e[d].value?n=!1:r>e[d].value&&(r<e[m].value?(l=e[d],n=!0):m===i-1?n=!1:(l=e[m],n=!0))),n?(u[t]=l.mappedColor[0],h[t]=l.mappedColor[1],f[t]=l.mappedColor[2],p[t]=l.mappedColor[3]):u[t]=h[t]=f[t]=p[t]=0}return r.pixels=[u,h,f],r.mask=p,r.pixelType="u8",r.maskIsAlpha=d,r}function w(t,e,r=!1){const o=1e-5,i=new Float32Array(3*s),a=e.length;for(let l=0;l<s;l++)i[3*l]=t[2*l]??n.pq-1,i[3*l+1]=t[2*l+1]??n.pq,i[3*l+2]=e[l]??0,l<a&&(l>0&&(i[3*l]-=o),t[2*l+1]!==t[2*l]&&(l<a-1||!r)&&(i[3*l+1]-=o));return i}function C(t,e){if(!l(t))return null;const{width:r,height:n}=t,{inputRanges:s,outputValues:a,outputPixelType:c,noDataRanges:u,allowUnmatched:h,replacementValue:f,isLastInputRangeInclusive:p}=e,d=t.pixels[0],m=i.A.createEmptyBand(c,d.length),g=t.mask,y=new Uint8Array(r*n);g?y.set(g):y.fill(255);const w=t.pixelType.startsWith("f")?1e-6:0,C=s.map(t=>t-w);C[0]=s[0],C[C.length-1]=s[s.length-1]+(p?1e-6:0);const b=s.length/2,[x,A]=(0,o.hP)(c);for(let t=0;t<n;t++)for(let e=0;e<r;e++){const n=t*r+e;if(y[n]){const t=d[n];let e=!1;for(let r=b-1;r>=0;r--)if(t===s[2*r]||t>C[2*r]&&t<C[2*r+1]){m[n]=a[r],e=!0;break}e||(h?m[n]=t>A?A:t<x?x:f??t:y[n]=0)}}const v=u?.length;if(v)for(let t=0;t<n;t++)for(let e=0;e<r;e++){const n=t*r+e;if(!g||g[n]){const t=d[n];for(let e=0;e<v;e+=2)if(t>=u[e]&&t<=u[e+1]){m[n]=0,y[n]=0;break}}}return new i.A({width:r,height:n,pixelType:c,pixels:[m],mask:y})}function b(t,e,r,n){const o=null!=r&&r.length>=2?new Set(r):null,i=1===r?.length?r[0]:null,s=!!e?.length;for(let r=0;r<t.length;r++)if(n[r]){const a=t[r];if(s){let t=!1;for(let r=0;r<e.length;r+=2)if(a>=e[r]&&a<=e[r+1]){t=!0;break}t||(n[r]=0)}n[r]&&(a===i||o?.has(a))&&(n[r]=0)}}function x(t,e){const r=t[0].length;e??=new Uint8Array(r).fill(255);for(let n=0;n<r;n++)if(e[n]){let r=!1;for(let e=0;e<t.length;e++)if(t[e][n]){r=!0;break}r||(e[n]=0)}return e}function A(t,e){const r=t[0].length;e??=new Uint8Array(r).fill(255);for(let n=0;n<r;n++)if(e[n]){let r=!1;for(let e=0;e<t.length;e++)if(0===t[e][n]){r=!0;break}r&&(e[n]=0)}return e}function v(t,e){if(!l(t))return null;const{width:r,height:n,pixels:o}=t,s=r*n,a=new Uint8Array(s);t.mask?a.set(t.mask):a.fill(255);const c=o.length,{includedRanges:u,noDataValues:h,outputPixelType:f,matchAll:d,lookups:m}=e;if(m){const t=[];for(let e=0;e<c;e++){const r=m[e],n=p(o[e],a,r.lut,r.offset||0,"u8");t.push(n)}1===t.length?a.set(t[0]):d?x(t,a):A(t,a)}else if(d){const t=[];for(let e=0;e<c;e++){const r=new Uint8Array(s);r.set(a),b(o[e],u?.slice(2*e,2*e+2),h?.[e],r),t.push(r)}1===t.length?a.set(t[0]):x(t,a)}else for(let t=0;t<c;t++)b(o[t],u?.slice(2*t,2*t+2),h?.[t],a);return new i.A({width:r,height:n,pixelType:f,pixels:o,mask:a})}function k(t){const{srcPixelType:e,inputRanges:r,outputValues:n,allowUnmatched:s,noDataRanges:a,isLastInputRangeInclusive:l,outputPixelType:c}=t;if("u8"!==e&&"s8"!==e&&"u16"!==e&&"s16"!==e)return null;const u=e.includes("16")?65536:256,h=e.includes("s")?-u/2:0,f=i.A.createEmptyBand(c,u),p=new Uint8Array(u);s&&p.fill(255);const[d,m]=(0,o.hP)(c);if(r?.length&&n?.length){const t=1e-6,e=r.map(e=>e-t);e[0]=r[0],l&&(e[e.length-1]=r[r.length-1]);for(let t=0;t<e.length;t++){const o=n[t]>m?m:n[t]<d?d:n[t],i=Math.ceil(e[2*t]-h),s=r[2*t+1]===r[2*t]?i:Math.floor(e[2*t+1]-h);for(let t=i;t<=s;t++)f[t]=o,p[t]=255}}if(a?.length)for(let t=0;t<a.length;t++){const e=Math.ceil(a[2*t]-h),r=Math.floor(a[2*t+1]-h);for(let t=e;t<=r;t++)p[t]=0}return{lut:f,offset:h,mask:p}}function M(t,e,r){if("u8"!==t&&"s8"!==t&&"u16"!==t&&"s16"!==t)return null;const n=t.includes("16")?65536:256,o=t.includes("s")?-n/2:0,i=new Uint8Array(n);if(e)for(let t=0;t<e.length;t++){const r=Math.ceil(e[2*t]-o),n=Math.floor(e[2*t+1]-o);for(let t=r;t<=n;t++)i[t]=255}else i.fill(255);if(r)for(let t=0;t<r.length;t++)i[r[t]-o]=0;return{lut:i,offset:o}}function T(t,e,r,n,o,i){const{width:s,height:a}=r.block,{x:l,y:c}=r.offset,{width:u,height:h}=r.mosaic,f=function(t,e,r,n,o,i,s,a){return{xmin:o<=r*t?0:o<r*t+t?o-r*t:t,ymin:i<=n*e?0:i<n*e+e?i-n*e:e,xmax:o+s<=r*t?0:o+s<r*t+t?o+s-r*t:t,ymax:i+a<=n*e?0:i+a<n*e+e?i+a-n*e:e}}(s,a,n,o,l,c,u,h);let p=0,d=0;if(i){const t=i.hasGCSSShiftTransform?360:i.halfWorldWidth??0,e=s*i.resolutionX,r=i.startX+n*e;r<t&&r+e>t?d=i.rightPadding:r>=t&&(p=i.leftMargin-i.rightPadding,d=0)}if(f.xmax-=d,"number"!=typeof e)for(let r=f.ymin;r<f.ymax;r++){const i=(o*a+r-c)*u+(n*s-l)+p,h=r*s;for(let r=f.xmin;r<f.xmax;r++)t[i+r]=e[h+r]}else for(let r=f.ymin;r<f.ymax;r++){const i=(o*a+r-c)*u+(n*s-l)+p;for(let r=f.xmin;r<f.xmax;r++)t[i+r]=e}}function S(t,e,r={}){const{clipOffset:n,clipSize:o,alignmentInfo:s,blockWidths:a}=r;if(a)return function(t,e,r){const n=t.find(t=>null!=t);if(null==n)return null;const o=t.some(t=>null==t||!!t.mask),{width:s,height:a}=e,c=o?new Uint8Array(s*a):null,{blockWidths:u}=r,h=[],f=n.getPlaneCount(),p=i.A.getPixelArrayConstructor(n.pixelType);if(o)for(let e=0,r=0;e<t.length;r+=u[e],e++){const n=t[e];if(!l(n))continue;const o=n.mask;for(let t=0;t<a;t++)for(let i=0;i<u[e];i++)c[t*s+i+r]=null==o?255:o[t*n.width+i]}const d=t.some(t=>t?.bandMasks&&t.bandMasks.length>1),m=d?[]:void 0,g=s*a;for(let e=0;e<f;e++){const r=new p(g),n=d?new Uint8Array(g):void 0;for(let o=0,i=0;o<t.length;i+=u[o],o++){const c=t[o];if(!l(c))continue;const h=c.pixels[e];if(null!=h){for(let t=0;t<a;t++)for(let e=0;e<u[o];e++)r[t*s+e+i]=h[t*c.width+e];if(n){const t=c.bandMasks?.[e]??c.mask;for(let e=0;e<a;e++)for(let r=0;r<u[o];r++)n[e*s+r+i]=t?t[e*c.width+r]:255}}}h.push(r),m&&n&&m.push(n)}const y=new i.A({width:s,height:a,mask:c,bandMasks:m,pixels:h,pixelType:n.pixelType});return y.updateStatistics(),y}(t,e,{blockWidths:a});const c=t.find(t=>l(t));if(null==c)return null;const u=o?o.width:e.width,h=o?o.height:e.height,f=c.width,p=c.height,d=e.width/f,m=e.height/p,g={offset:n||{x:0,y:0},mosaic:o||e,block:{width:f,height:p}},y=c.pixelType,w=i.A.getPixelArrayConstructor(y),C=c.pixels.length,b=[];let x,A;for(let e=0;e<C;e++){A=new w(u*h);for(let r=0;r<m;r++)for(let n=0;n<d;n++){const o=t[r*d+n];l(o)&&(x=o.pixels[e],T(A,x,g,n,r,s))}b.push(A)}const v=t.some(t=>null==t||null!=t.mask&&t.mask.length>0),k=t.some(t=>t?.bandMasks&&t.bandMasks.length>1),M=v?new Uint8Array(u*h):void 0,S=k?[]:void 0;if(M){for(let e=0;e<m;e++)for(let r=0;r<d;r++){const n=t[e*d+r],o=null!=n?n.mask:null;T(M,null!=o?o:n?255:0,g,r,e,s)}if(S)for(let e=0;e<C;e++){const r=new Uint8Array(u*h);for(let n=0;n<m;n++)for(let o=0;o<d;o++){const i=t[n*d+o],a=i?.bandMasks?.[e]??i?.mask;T(r,null!=a?a:i?255:0,g,o,n,s)}S.push(r)}}const I=new i.A({width:u,height:h,pixels:b,pixelType:y,bandMasks:S,mask:M});return I.updateStatistics(),I}function I(t,e,r){if(!l(t))return null;const{width:n,height:o}=t,i=e.x,s=e.y,a=r.width+i,c=r.height+s;if(i<0||s<0||a>n||c>o)return t;if(0===i&&0===s&&a===n&&c===o)return t;t.mask||(t.mask=new Uint8Array(n*o));const u=t.mask;for(let t=0;t<o;t++){const e=t*n;for(let r=0;r<n;r++)u[e+r]=t<s||t>=c||r<i||r>=a?0:1}return t.updateStatistics(),t}function P(t){if(0===t.size)return 0;let e=0,r=-1,n=0;const o=t.keys();let i=o.next();for(;!i.done;)n=t.get(i.value),n>e&&(r=i.value,e=n),i=o.next();return r}function E(t,e,r){if(0===r)return;const n=t.get(e);1===n?t.delete(e):t.set(e,n-1)}function R(t,e,r){0!==r&&t.set(e,t.has(e)?t.get(e)+1:1)}function L(t,e,r){let{x:n,y:o}=e;const{width:s,height:a}=r;if(0===n&&0===o&&a===t.height&&s===t.width)return t;const{width:c,height:u}=t,h=Math.max(0,o),f=Math.max(0,n),p=Math.min(n+s,c),d=Math.min(o+a,u);if(p<0||d<0||!l(t))return null;n=Math.max(0,-n),o=Math.max(0,-o);const{pixels:m}=t,g=s*a,y=m.length,w=[];for(let e=0;e<y;e++){const r=m[e],a=i.A.createEmptyBand(t.pixelType,g);for(let t=h;t<d;t++){const e=t*c;let i=(t+o-h)*s+n;for(let t=f;t<p;t++)a[i++]=r[e+t]}w.push(a)}const C=new Uint8Array(g),b=t.mask;for(let t=h;t<d;t++){const e=t*c;let r=(t+o-h)*s+n;for(let t=f;t<p;t++)C[r++]=b?b[e+t]:1}const x=new i.A({width:r.width,height:r.height,pixelType:t.pixelType,pixels:w,mask:C});return x.updateStatistics(),x}function U(t,e=!0){if(!l(t))return null;const{pixels:r,width:n,height:o,mask:s,pixelType:a}=t,c=[],u=Math.round(n/2),h=Math.round(o/2),f=o-1,p=n-1;for(let t=0;t<r.length;t++){const s=r[t],l=i.A.createEmptyBand(a,u*h);let d=0;for(let t=0;t<o;t+=2)for(let r=0;r<n;r+=2){const o=s[t*n+r];if(e){const e=r===p?o:s[t*n+r+1],i=t===f?o:s[t*n+r+n],a=r===p?i:t===f?e:s[t*n+r+n+1];l[d++]=(o+e+i+a)/4}else l[d++]=o}c.push(l)}let d=null;if(null!=s){d=new Uint8Array(u*h);let t=0;for(let r=0;r<o;r+=2)for(let o=0;o<n;o+=2){const i=s[r*n+o];if(e){const e=o===p?i:s[r*n+o+1],a=r===f?i:s[r*n+o+n],l=o===p?a:r===f?e:s[r*n+o+n+1];d[t++]=i*e*a*l?1:0}else d[t++]=i}}return new i.A({width:u,height:h,pixelType:a,pixels:c,mask:d})}function O(t,e,r=0,n=!0){if(!l(t))return null;const{width:o,height:i}=e;let{width:s,height:a}=t;const c=new Map,u={x:0,y:0},h=1+r;let f=t;for(let t=0;t<h;t++){const r=Math.ceil(s/o),l=Math.ceil(a/i);for(let n=0;n<l;n++){u.y=n*i;for(let i=0;i<r;i++){u.x=i*o;const r=L(f,u,e);c.set(`${t}/${n}/${i}`,r)}}t<h-1&&(f=U(f,n)),s=Math.round(s/2),a=Math.round(a/2)}return c}function D(t){const{pixelBlock:e,tileSize:r,level:n,row:o,col:i,useBilinear:s}=t;if(!l(e))return null;const{width:a,height:c}=r,u=2**n,h=u*a,f=u*c;let p=L(e,{y:o*f,x:i*h},{width:h,height:f});if(!p)return null;for(let t=n;t>0;t--)p=U(p,s);return p}function B(t,e,r,n,o=0){const{width:i,height:s}=t,{width:a,height:l}=e,c=n.cols,u=n.rows,h=Math.ceil(a/c-.1/c),f=Math.ceil(l/u-.1/u);let p,d,m,g,y,w,C;const b=h*c,x=b*f*u,A=new Float32Array(x),v=new Float32Array(x),k=new Uint32Array(x),M=new Uint32Array(x);let T,S,I=0;for(let t=0;t<f;t++)for(let e=0;e<h;e++){p=12*(t*h+e),d=r[p],m=r[p+1],g=r[p+2],y=r[p+3],w=r[p+4],C=r[p+5];for(let r=0;r<u;r++){I=(t*u+r)*b+e*c,S=(r+.5)/u;for(let t=0;t<r;t++)T=(t+.5)/c,A[I+t]=(d*T+m*S+g)*i+o,v[I+t]=(y*T+w*S+C)*s+o,k[I+t]=Math.floor(A[I+t]),M[I+t]=Math.floor(v[I+t])}p+=6,d=r[p],m=r[p+1],g=r[p+2],y=r[p+3],w=r[p+4],C=r[p+5];for(let r=0;r<u;r++){I=(t*u+r)*b+e*c,S=(r+.5)/u;for(let t=r;t<c;t++)T=(t+.5)/c,A[I+t]=(d*T+m*S+g)*i+o,v[I+t]=(y*T+w*S+C)*s+o,k[I+t]=Math.floor(A[I+t]),M[I+t]=Math.floor(v[I+t])}}return{offsets_x:A,offsets_y:v,offsets_xi:k,offsets_yi:M,gridWidth:b}}function G(t,e){const{coefficients:r,spacing:n}=e,{offsets_x:o,offsets_y:i,gridWidth:s}=B(t,t,r,{rows:n[0],cols:n[1]}),{width:a,height:l}=t,c=new Float32Array(a*l),u=180/Math.PI;for(let t=0;t<l;t++)for(let e=0;e<a;e++){const r=t*s+e,n=0===t?r:r-s,h=t===l-1?r:r+s,f=o[n]-o[h],p=i[h]-i[n];if(isNaN(f)||isNaN(p))c[t*a+e]=90;else{let r=Math.atan2(p,f)*u;r=(360+r)%360,c[t*a+e]=r}}return c}function N(t,e,r,n,o="nearest"){if(!l(t))return null;"majority"===o&&(t=function(t){if(!l(t))return null;const e=t.clone(),{width:r,height:n,pixels:o}=t,i=o[0],s=e.pixels[0],a=t.mask;for(let t=2;t<n-1;t++){const e=new Map;for(let n=t-2;n<t+2;n++)for(let t=0;t<4;t++){const o=n*r+t;R(e,i[o],a?a[o]:1)}s[t*r]=P(e),s[t*r+1]=s[t*r+2]=s[t*r];let n=3;for(;n<r-1;n++){let o=(t-2)*r+n+1;R(e,i[o],a?a[o]:1),o=(t-1)*r+n+1,R(e,i[o],a?a[o]:1),o=t*r+n+1,R(e,i[o],a?a[o]:1),o=(t+1)*r+n+1,R(e,i[o],a?a[o]:1),o=(t-2)*r+n-3,E(e,i[o],a?a[o]:1),o=(t-1)*r+n-3,E(e,i[o],a?a[o]:1),o=t*r+n-3,E(e,i[o],a?a[o]:1),o=(t+1)*r+n-3,E(e,i[o],a?a[o]:1),s[t*r+n]=P(e)}s[t*r+n+1]=s[t*r+n]}for(let t=0;t<r;t++)s[t]=s[r+t]=s[2*r+t],s[(n-1)*r+t]=s[(n-2)*r+t];return e.updateStatistics(),e}(t));const{pixels:s,mask:a,bandMasks:c,pixelType:u}=t,h=t.width,f=t.height,p=i.A.getPixelArrayConstructor(u),d=s.length,{width:m,height:g}=e;let y=!1;for(let t=0;t<r.length;t+=3)-1===r[t]&&-1===r[t+1]&&-1===r[t+2]&&(y=!0);const{offsets_x:w,offsets_y:C,offsets_xi:b,offsets_yi:x,gridWidth:A}=B({width:h,height:f},e,r,n,"majority"===o?.5:0);let v;const k=(t,e,r,n)=>{const o=t instanceof Float32Array||t instanceof Float64Array?0:.5;for(let i=0;i<g;i++){v=i*A;for(let s=0;s<m;s++){if(w[v]<0||C[v]<0)t[i*m+s]=0;else if(n)t[i*m+s]=e[b[v]+x[v]*h];else{const n=Math.floor(w[v]),a=Math.floor(C[v]),l=Math.ceil(w[v]),c=Math.ceil(C[v]),u=w[v]-n,f=C[v]-a;if(!r||r[n+a*h]&&r[l+a*h]&&r[n+c*h]&&r[l+c*h]){const r=(1-u)*e[n+a*h]+u*e[l+a*h],p=(1-u)*e[n+c*h]+u*e[l+c*h];t[i*m+s]=(1-f)*r+f*p+o}else t[i*m+s]=e[b[v]+x[v]*h]}v++}}},M=[];let T;const S=c?.length===d,I=[];for(let t=0;t<d;t++){if(S){const e=new Uint8Array(m*g);k(e,c[t],c[t],!0),I.push(e)}T=new p(m*g),k(T,s[t],S?c[t]:a,"nearest"===o||"majority"===o),M.push(T)}const L=new i.A({width:m,height:g,pixelType:u,pixels:M,bandMasks:S?I:void 0});if(null!=a)L.mask=new Uint8Array(m*g),k(L.mask,a,a,!0);else if(y){L.mask=new Uint8Array(m*g);for(let t=0;t<m*g;t++)L.mask[t]=w[t]<0||C[t]<0?0:1}return L.updateStatistics(),L}function F(t){const{pixelBlock:e,extent:r,fieldNames:n,skipFactor:o,skipSpatialReference:i=!1,pixelIdOffset:s=0}=t,l=[],{width:c,height:u,pixels:h,mask:f}=e,p=t.imageRowSize??c,d=r.width/c,m=r.height/u,g=h.length,y=Math.floor(o/2),{xmin:w,ymax:C}=r,b=i?void 0:r.spatialReference.toJSON();for(let t=y;t<u;t+=o)for(let e=y;e<c;e+=o){const r=t*c+e;if(!f||f[r]){const o={x:w+(e+.5)*d,y:C-(t+.5)*m,spatialReference:b},i={[a]:s+t*p+e};for(let t=0;t<g;t++)i[n[t+1]]=h[t][r];l.push({geometry:o,attributes:i})}}return l}},51927(t,e,r){r.d(e,{DP:()=>C,Nh:()=>b,Pg:()=>w,RP:()=>u,WF:()=>c,_N:()=>x,eH:()=>g,f4:()=>y,fP:()=>f,zj:()=>h,zt:()=>l});var n=r(97768),o=r(94778),i=r(14140),s=r(70274);const a=[.299,.587,.114];function l(t){if(null==t)return!1;const{max:e,min:r,size:n}=t;return(e-r)/n===1&&r>=-.5&&.5===Math.abs(r%1)&&e<=255.5}function c(t,e=256){e=Math.min(e,256);const{size:r,counts:n}=t,o=new Float64Array(r);o[0]=n[0]/e;for(let t=1;t<r;t++)o[t]=o[t-1]+n[t]/e;const i=new Uint8Array(e),s=e/o[o.length-1];if(r<=e){const n=l(t)?Math.max(0,Math.round(t.min+.5)):0;for(let t=n;t<e;t++)i[t]=t>=r+n?255:Math.min(255,Math.trunc(o[t-n]*s))}else{const t=o.map(t=>Math.min(255,Math.trunc(t*s)));for(let n=0;n<e;n++)i[n]=t[Math.round(r/e)];i[e-1]=255}return i}function u(t){const{minCutOff:e,maxCutOff:r,gamma:n,pixelType:o,rounding:i}=t;if(!["u8","u16","s8","s16"].includes(o))return null;const s=e.length,a="s8"===o?-127:"s16"===o?-32767:0,l=["u16","s16"].includes(o)?65536:256,c=[],u=[],{minOutput:f=0,maxOutput:p=255}=t,d=p-f;for(let t=0;t<s;t++)u[t]=r[t]-e[t],c[t]=0===u[t]?0:d/u[t];const m=[];if(n&&n.length>=s){const t=b(s,n);for(let o=0;o<s;o++){const s=[];for(let c=0;c<l;c++){if(0===u[o]){s[c]=f;continue}const l=c+a,h=(l-e[o])/u[o];let m=1;if(n[o]>1&&(m-=(1/d)**(h*t[o])),l<r[o]&&l>e[o]){const t=m*d*h**(1/n[o])+f;s[c]="floor"===i?Math.floor(t):"round"===i?Math.round(t):t}else l>=r[o]?s[c]=p:s[c]=f}m[o]=s}}else for(let t=0;t<s;t++){const n=[];for(let o=0;o<l;o++){const s=o+a;if(s<=e[t])n[o]=f;else if(s>=r[t])n[o]=p;else{const r=(s-e[t])*c[t]+f;n[o]="floor"===i?Math.floor(r):"round"===i?Math.round(r):r}}m[t]=n}if(null!=t.contrastOffset){const e=h(t.contrastOffset,t.brightnessOffset);for(let t=0;t<s;t++){const r=m[t];for(let t=0;t<l;t++)r[t]=e[r[t]]}}return{lut:m,offset:a}}function h(t,e){const r=Math.min(Math.max(t,-100),100),n=Math.min(Math.max(e??0,-100),100),o=new Uint8Array(256);for(let t=0;t<256;t++){let e=0;r>0&&r<100?e=(200*t-25500+510*n)/(2*(100-r))+128:r<=0&&r>-100?e=(200*t-25500+510*n)*(100+r)/2e4+128:100===r?(e=200*t-25500+256*(100-r)+510*n,e=e>0?255:0):-100===r&&(e=128),o[t]=e>255?255:e<0?0:e}return o}function f(t,e,r){const n=[];for(let o=0;o<e.length;o++){let i=0,s=0,l=0;"min"in e[o]?({min:i,max:s,avg:l}=e[o]):[i,s,l]=e[o];let c=l??0;"u8"!==t&&(c=255*(c-i)/(s-i)),r&&(c*=a[o]),n.push(p(c))}return n}function p(t){if(t<=0||t>=255)return 1;const e=t+(150===t?0:t<150?45*Math.cos(.01047*t):17*Math.sin(.021*t)),r=Math.log(t/255),n=Math.log(e/255);if(0===n)return 1;const o=r/n;return isNaN(o)?1:Math.min(9.9,Math.max(.01,o))}function d(t,e,r){let{min:n,max:o,count:i,avg:s,mode:a,median:l}=function(t,e,r=!1,n=!1){let o=1/0,i=-1/0,s=0,a=0,l=0,c=0;const u=t.length,h=new Map;for(let r=0;r<u;r++){const n=t[r];if(!e||e[r]){const t=(h.get(n)??0)+1;h.set(n,t),t>c&&(c=t,l=n),o=n<o?n:o,i=n>i?n:i,s+=n,a++}}const f=a>0?s/a:0;let p=o===i?o:void 0,d=o===i?o:void 0,m=o===i?o:void 0;if(r&&a>0&&a<2**24){let r=t.slice();if(e){let n=0;for(let o=0;o<u;o++){const i=t[o];e[o]&&(r[n++]=i)}}r=r.slice(0,a),r.sort((t,e)=>t-e);const o=a>>>1;p=a%2?r[Math.floor(o)]:(r[o-1]+r[o])/2,n&&(d=r[Math.floor(.25*a)],m=r[Math.floor(.75*a)])}return{min:o,max:i,count:a,avg:f,mode:l,median:p,quartile1:d,quartile3:m}}(t,e,!0);if(0===i)return{statistics:{min:0,max:0,avg:0,stddev:0,count:i,mode:0,median:0},histogram:null};const c={min:n,max:o,avg:s,mode:a,count:i,median:l},u=function(t,e,r,n=!1,o=!1){let i=0,s=0,a=0,l=0;for(let o=0;o<t.length;o++)if(!e||e[o]){const e=t[o]-r,c=e*e;if(i+=c,!n){const t=c*e;s+=t,a+=t*e}l++}if(l<2)return null;i/=l-1;const c=Math.sqrt(i);return n?{stddev:c}:(a/=l,{stddev:c,skewness:o?s*(l/((l-1)*(l-2)))/i**1.5:s/l/i**1.5,kurtosis:a/(i*i)})}(t,e,s,!r.includeSkewnessKurtosis);u&&(c.stddev=u.stddev,r.includeSkewnessKurtosis&&(c.skewness=u.skewness,c.kurtosis=u.kurtosis));const h=r?.histogramSize??256,f=!!r?.pixelType&&["u8","s8","u4","u2","u1"].includes(r.pixelType),p=!r?.skipHistograms;if(null==l){const r=m({band:t,mask:e,min:n,max:o,size:1e4,use8BitHistogram:f});if(l=function(t,e,r,n=50){const{counts:o,min:i,max:s,size:a}=r,l=o.reduce((t,e)=>t+e)*(n/=100);let c=0,u=0;for(;u<o.length&&(c+=o[u],!(c>=l+1));u++);const h=(s-i)/a,f=i+h*u,p=i+h*(u+1);if(1===h&&.5===Math.abs(i%1))return f+.5;const d=t.slice(0,o[u]).fill(0);for(let r=0,n=0;r<t.length;r++)if(!e||e[r]){const e=t[r];e>=f&&e<p&&(d[n++]=e)}d.sort((t,e)=>t-e);const m=c-Math.floor(l)-1;return d[Math.max(0,d.length-1-m)]}(t,e,r,50),p&&f&&256===h)return{statistics:c,histogram:r}}return p?{statistics:c,histogram:m({band:t,mask:e,min:n,max:o,size:h,use8BitHistogram:f&&256===h})}:{statistics:c,histogram:null}}function m(t){const{band:e,mask:r,min:n,max:o,use8BitHistogram:i}=t;if(i){const t=o-n+1,i=new Uint32Array(t);for(let t=0;t<e.length;t++)r&&!r[t]||i[e[t]-n]++;return{min:n-.5,max:o+.5,size:t,counts:i}}const s=t.size??256,a=new Uint32Array(s),l=(o-n)/s;if(0===l){const t=r?r.reduce((t,e)=>t+(e?1:0),0):e.length;return{min:n,max:o,size:1,counts:new Uint32Array(1).fill(t)}}const c=new Uint32Array(s+1),u=1/l;for(let t=0;t<e.length;t++)r&&!r[t]||c[Math.floor((e[t]-n)*u)]++;for(let t=0;t<s-1;t++)a[t]=c[t];return a[s-1]=c[s-1]+c[s],{min:n,max:o,size:s,counts:a}}function g(t,e){const{pixels:r,mask:n,pixelType:o,bandMasks:i}=t,s=r.map((t,r)=>d(t,i?.[r]??n,{pixelType:o,...e}));return{statistics:s.map(({statistics:t})=>t),histograms:s.map(({histogram:t})=>t)}}function y(t){if(!t?.pixels?.length)return null;const{pixels:e,mask:r,bandMasks:n,pixelType:o}=t,i=t.width*t.height,s=e.length,a=[],l=[],c=256;let u,h;for(let f=0;f<s;f++){let s=new Uint32Array(c);const p=e[f],d=n?.[f]??r;if("u8"===o){if(u=255,h=0,d){for(let t=0;t<i;t++)if(d[t]){const e=p[t];u=e<u?e:u,h=e>h?e:h,s[e]++}}else for(let t=0;t<i;t++){const e=p[t];u=e<u?e:u,h=e>h?e:h,s[e]++}s=s.slice(u,h+1)}else{let e=!1;t.statistics||(t.updateStatistics(),e=!0);const r=t.statistics;u=r[f].minValue,h=r[f].maxValue;const n=(h-u)/c;if(0===n){!r||t.validPixelCount||e||t.updateStatistics();const n=(t.validPixelCount||t.width*t.height)/c;for(let t=0;t<c;t++)s[t]=Math.round(n*(t+1))-Math.round(n*t)}else{const t=new Uint32Array(257);for(let e=0;e<i;e++)d&&!d[e]||t[Math.floor((p[e]-u)/n)]++;for(let e=0;e<255;e++)s[e]=t[e];s[255]=t[255]+t[c]}}const m="u8"===o?u-.5:u,g="u8"===o?h+.5:h;a.push({min:m,max:g,size:s.length,counts:s});let y=0,w=0,C=0;for(let t=0;t<s.length;t++)y+=s[t],w+=t*s[t];const b=w/y;for(let t=0;t<s.length;t++)C+=s[t]*(t-b)**2;const x=Math.sqrt(C/(y-1)),A=(g-m)/s.length,v=(b+("u8"===o?0:.5))*A+u,k=x*A;l.push({min:u,max:h,avg:v,stddev:k})}return{statistics:l,histograms:a}}function w(t){const e=[];for(let r=0;r<t.length;r++){const{min:n,max:o,size:i,counts:s}=t[r];let a=0,l=0;for(let t=0;t<i;t++)a+=s[t],l+=t*s[t];const c=l/a;let u=0;for(let t=0;t<i;t++)u+=s[t]*(t-c)**2;const h=(o-n)/i,f=(c+.5)*h+n,p=Math.sqrt(u/(a-1))*h;e.push({min:n,max:o,avg:f,stddev:p})}return e}function C(t,e){const{pixelBlock:r,bandIds:i,returnHistogramLut:a,rasterInfo:l}=e;let u=null,h=null,f=t.stretchType;if("number"==typeof f&&(f=s.x[f]),t.dra)if("minMax"===f&&r?.statistics)u=r.statistics.map(t=>[t.minValue,t.maxValue,0,0]);else{const t=y(r);u=null!=t?t.statistics:null,h=null!=t?t.histograms:null}else u=t.statistics?.length?t.statistics:l.statistics,h="histograms"in t?t.histograms:void 0,h||(h=l.histograms);"percentClip"!==f&&"histogramEqualization"!==f||h?.length||(f="minMax");const p=u?.length||h?.length||l.bandCount,d=[],m=[];u&&!Array.isArray(u[0])&&(u=u.map(t=>[t.min,t.max,t.avg,t.stddev]));const[g,w]=(0,o.hP)(l.pixelType);if(!u?.length){u=[];for(let t=0;t<p;t++)u.push([g,w,1,1]);"standardDeviation"===f&&(f="minMax")}switch(f){case"none":for(let t=0;t<p;t++)d[t]=g,m[t]=w;break;case"minMax":for(let t=0;t<p;t++){const e=u[t];d[t]=e[0],m[t]=e[1]}break;case"standardDeviation":{const{numberOfStandardDeviations:e=2}=t;for(let t=0;t<p;t++){const r=u[t];d[t]=r[2]-e*r[3],m[t]=r[2]+e*r[3],d[t]<r[0]&&(d[t]=r[0]),m[t]>r[1]&&(m[t]=r[1])}}break;case"histogramEqualization":(0,n.Lw)(h);for(let t=0;t<p;t++)d[t]=h[t].min,m[t]=h[t].max;break;case"percentClip":(0,n.Lw)(h);for(let e=0;e<h.length;e++){const r=h[e],n=new Uint32Array(r.size),o=[...r.counts];o.length>=20&&(o[0]=o[1]=o[2]=o[o.length-1]=o[o.length-2]=0);let i=0;const s=(r.max-r.min)/r.size,a=-.5===r.min&&1===s?.5:0;for(let t=0;t<r.size;t++)i+=o[t],n[t]=i;let l=(t.minPercent||0)*i/100;d[e]=r.min+a;for(let t=0;t<r.size;t++)if(n[t]>l){d[e]=r.min+s*(t+a);break}l=(1-(t.maxPercent||0)/100)*i,m[e]=r.max+a;for(let t=r.size-2;t>=0;t--)if(n[t]<l){m[e]=r.min+s*(t+2-a);break}if(m[e]<d[e]){const t=d[e];d[e]=m[e],m[e]=t}}break;default:for(let t=0;t<p;t++){const e=u[t];d[t]=e[0],m[t]=e[1]}}let C,b,x;return"histogramEqualization"===f?((0,n.Lw)(h),b=h[0].size||256,C=0,a&&(x=h.map(t=>c(t)))):(b=t.max||255,C=t.min||0),function(t,e){if(null==e||0===e.length)return t;const r=Math.max.apply(null,e),{minCutOff:n,maxCutOff:o,minOutput:i,maxOutput:s,histogramLut:a}=t;return n.length===e.length||n.length<=r?t:{minCutOff:e.map(t=>n[t]),maxCutOff:e.map(t=>o[t]),histogramLut:a?e.map(t=>a[t]):null,minOutput:i,maxOutput:s}}({minCutOff:d,maxCutOff:m,maxOutput:b,minOutput:C,histogramLut:x},i)}function b(t,e){const r=new Float32Array(t);for(let n=0;n<t;n++)e[n]>1?e[n]>2?r[n]=6.5+(e[n]-2)**2.5:r[n]=6.5+100*(2-e[n])**4:r[n]=1;return r}function x(t,e){if(!t?.pixels?.length)return t;const{mask:r,bandMasks:n,width:o,height:s,pixels:a}=t,{minCutOff:l,maxCutOff:c,minOutput:u,maxOutput:h,gamma:f}=e,p=o*s,d=e.outputPixelType||"u8",m=t.pixels.map(()=>i.A.createEmptyBand(d,p)),g=m.length,y=h-u,w=[],C=[];for(let t=0;t<g;t++)C[t]=c[t]-l[t],w[t]=0===C[t]?0:y/C[t];const x=d.startsWith("u")||d.startsWith("s"),A=f&&f.length>=g,v=!!e.isRenderer;if(A){const t=b(g,f);for(let e=0;e<g;e++){const o=n?.[e]??r;for(let r=0;r<p;r++)if(null==o||o[r]){if(0===C[e]){m[e][r]=u;continue}const n=a[e][r],o=(n-l[e])/C[e];let i=1;if(f[e]>1&&(i-=(1/y)**(o*t[e])),n<c[e]&&n>l[e]){const t=i*y*o**(1/f[e])+u;m[e][r]=v?Math.floor(t):x?Math.round(t):t}else n>=c[e]?m[e][r]=h:m[e][r]=u}}}else for(let t=0;t<g;t++){const e=n?.[t]??r;for(let r=0;r<p;r++)if(null==e||e[r]){const e=a[t][r];if(e<c[t]&&e>l[t]){const n=(e-l[t])*w[t]+u;m[t][r]=v?Math.floor(n):x?Math.round(n):n}else e>=c[t]?m[t][r]=h:m[t][r]=u}}const k=new i.A({width:o,height:s,mask:r,bandMasks:n,pixels:m,pixelType:d});return k.updateStatistics(),k}},51181(t,e,r){r.d(e,{E0:()=>d,PP:()=>m,SC:()=>h,di:()=>p,fw:()=>u,ng:()=>a,rk:()=>s,yy:()=>f});var n=r(47520),o=r(14140),i=r(4151);const s=1/111e3;function a(t){let{altitude:e,azimuth:r}=t;const{hillshadeType:n,pixelSizePower:o=1,pixelSizeFactor:i=1,scalingType:a,isGCS:l,resolution:c}=t,u="multi-directional"===n?2*t.zFactor:t.zFactor,{x:h,y:f}=c;let p=u/(8*h),d=u/(8*f);if(l&&u>.001&&(p/=s,d/=s),"adjusted"===a)if(l){const t=h*s,e=f*s;p=(u+t**o*i)/(8*t),d=(u+e**o*i)/(8*e)}else p=(u+h**o*i)/(8*h),d=(u+f**o*i)/(8*f);let m=(90-e)*Math.PI/180,g=Math.cos(m),y=(360-r+90)*Math.PI/180,w=Math.sin(m)*Math.cos(y),C=Math.sin(m)*Math.sin(y);const b=[315,270,225,360,180,0],x=[60,60,60,60,60,90],A=new Float32Array([3,5,3,2,1,4]),v=A.reduce((t,e)=>t+e),k=A.map(t=>t/v),M="multi-directional"===n?b.length:1,T=new Float32Array(6),S=new Float32Array(6),I=new Float32Array(6);if("multi-directional"===n)for(let t=0;t<M;t++)e=x[t],r=b[t],m=(90-e)*Math.PI/180,g=Math.cos(m),y=(360-r+90)*Math.PI/180,w=Math.sin(m)*Math.cos(y),C=Math.sin(m)*Math.sin(y),T[t]=g,S[t]=w,I[t]=C;else T.fill(g),S.fill(w),I.fill(C);return{resolution:c,factor:[p,d],sinZcosA:w,sinZsinA:C,cosZ:g,sinZcosAs:[...S],sinZsinAs:[...I],cosZs:[...T],weights:[...k],hillshadeType:["traditional","multi-directional"].indexOf(n)}}function l(t,e){const{width:r,height:n}=t,o=r*n,i=new Uint8Array(o),s=null!=t.mask;let a;if(s){a=new Uint8Array(t.mask);for(let t=0;t<a.length;t++)a[t]&&(i[t]=1,a[t]=1)}const l=t.pixels[0],c=new Float32Array(o),u=new Float32Array(o);let h,f=0;if(e){const{resolution:t}=e,r=t?(t.x+t.y)/2:1;f=200*e.zFactor/(r*r),h=new Float32Array(o)}const p=e?.curvatureType;let d,m,g,y,w,C,b,x;for(let t=1;t<n-1;t++){const e=t*r;for(let t=1;t<r-1;t++){const n=e+t;if(0!==a?.[n]){if(a){if(a[n-r-1]+a[n-r]+a[n-r+1]+a[n-1]+a[n+1]+a[n+r-1]+a[n+r]+a[n+r+1]<7){i[n]=0;continue}d=a[n-r-1]?l[n-r-1]:l[n],m=a[n-r]?l[n-r]:l[n],g=a[n-r+1]?l[n-r+1]:l[n],y=a[n-1]?l[n-1]:l[n],w=a[n+1]?l[n+1]:l[n],C=a[n+r-1]?l[n+r-1]:l[n],b=a[n+r]?l[n+r]:l[n],x=a[n+r+1]?l[n+r+1]:l[n]}else d=l[n-r-1],m=l[n-r],g=l[n-r+1],y=l[n-1],w=l[n+1],C=l[n+r-1],b=l[n+r],x=l[n+r+1];if(c[n]=g+w+w+x-(d+y+y+C),u[n]=C+b+b+x-(d+m+m+g),null!=h){const t=l[n],e=.5*(y+w)-t,r=.5*(m+b)-t;if("standard"===p)h[n]=-f*(e+r);else{const t=(-d+g+C-x)/4,o=(-y+w)/2,i=(m-b)/2,s=o*o,a=i*i,l=s+a;l&&(h[n]="profile"===p?f*(e*s+r*a+t*o*i)/l:-f*(e*a+r*s-t*o*i)/l)}}}}}return{outMask:s?i:null,dzxs:c,dzys:u,curvatures:h}}function c(t,e,r){for(let n=0;n<r;n++)t[n*e]=t[n*e+1],t[(n+1)*e-1]=t[(n+1)*e-2];for(let n=1;n<e-1;n++)t[n]=t[n+e],t[n+(r-1)*e]=t[n+(r-2)*e]}function u(t,e){if(!(0,n.AB)(t))return t;const{factor:r,sinZcosA:s,sinZsinA:u,cosZ:h,sinZcosAs:f,sinZsinAs:p,cosZs:d,weights:m}=a(e),[g,y]=r,w="traditional"===e.hillshadeType,{width:C,height:b}=t,x=new Uint8Array(C*b),{dzxs:A,dzys:v,outMask:k}=l(t);for(let t=1;t<b-1;t++){const e=t*C;for(let t=1;t<C-1;t++){const r=e+t;if(!k||k[r]){const t=A[r]*g,e=v[r]*y,n=Math.sqrt(1+t*t+e*e);let o=0;if(w){let r=255*(h+u*e-s*t)/n;r<0&&(r=0),o=r}else{const r=p.length;for(let i=0;i<r;i++){let r=255*(d[i]+p[i]*e-f[i]*t)/n;r<0&&(r=0),o+=r*m[i]}}x[r]=255&o}}}return c(x,C,b),new o.A({width:C,height:b,pixels:[x],mask:k,pixelType:"u8",validPixelCount:t.validPixelCount,statistics:[new i.A(0,255)]})}function h(t,e,r,o){if(!(0,n.AB)(t)||!(0,n.AB)(e))return;const{min:i,max:s}=o,a=t.pixels[0],{pixels:l,mask:c}=e,u=l[0],h=255.00001/(s-i),f=new Uint8ClampedArray(u.length),p=new Uint8ClampedArray(u.length),d=new Uint8ClampedArray(u.length),m=r.length-1;for(let t=0;t<u.length;t++){if(0===c?.[t])continue;const e=Math.floor((u[t]-i)*h),[n,o]=r[e<0?0:e>m?m:e],s=a[t],l=s*o,g=l*(1-Math.abs(n%2-1)),y=s-l;switch(Math.floor(n)){case 0:f[t]=l+y,p[t]=g+y,d[t]=y;break;case 1:f[t]=g+y,p[t]=l+y,d[t]=y;break;case 2:f[t]=y,p[t]=l+y,d[t]=g+y;break;case 3:f[t]=y,p[t]=g+y,d[t]=l+y;break;case 4:f[t]=g+y,p[t]=y,d[t]=l+y;break;case 5:case 6:f[t]=l+y,p[t]=y,d[t]=g+y}}t.pixels=[f,p,d],t.updateStatistics()}function f(t,e){if(!(0,n.AB)(t))return t;const r=e.zFactor,i=e.pixelSizePower??1,a=e.pixelSizeFactor??1,u=e.slopeType,h=e.isGCS,{x:f,y:p}=e.resolution;let d=r/(8*f),m=r/(8*p);h&&Math.abs(r-1)<1e-4&&(d/=s,m/=s),"adjusted"===u&&(d=(r+f**i*a)/(8*f),m=(r+p**i*a)/(8*p));const{dzxs:g,dzys:y,outMask:w}=l(t),{width:C,height:b}=t,x=new Float32Array(C*b);for(let t=1;t<b-1;t++){const e=t*C;for(let t=1;t<C-1;t++){const r=e+t;if(!w||w[r]){const n=g[r]*d,o=y[r]*m,i=Math.sqrt(n*n+o*o);x[e+t]="percent-rise"===u?100*i:57.2957795*Math.atan(i)}}}c(x,C,b);const A=new o.A({width:C,height:b,pixels:[x],mask:w,pixelType:"f32",validPixelCount:t.validPixelCount});return A.updateStatistics(),A}function p(t,e={}){if(!(0,n.AB)(t))return t;const{resolution:r}=e,s=r?1/r.x:1,a=r?1/r.y:1,{dzxs:u,dzys:h,outMask:f}=l(t),{width:p,height:d}=t,m=new Float32Array(p*d);for(let t=1;t<d-1;t++){const e=t*p;for(let t=1;t<p-1;t++){const r=e+t;if(!f||f[r]){const n=u[r]*s,o=h[r]*a;let i=-1;0===n&&0===o||(i=90-57.29578*Math.atan2(o,-n),i<0&&(i+=360),360===i?i=0:i>360&&(i%=360)),m[e+t]=i}}}return c(m,p,d),new o.A({width:p,height:d,pixels:[m],mask:f,pixelType:"f32",validPixelCount:t.validPixelCount,statistics:[new i.A(-1,360)]})}function d(t,e){if(!(0,n.AB)(t))return t;const{curvatures:r,outMask:i}=l(t,e),{width:s,height:a}=t;c(r,s,a);const u=new o.A({width:s,height:a,pixels:[r],mask:i,pixelType:"f32",validPixelCount:t.validPixelCount});return u.updateStatistics(),u}function m(t,e,r){const{hillshadeType:n,altitude:o,azimuth:i,zFactor:s,pixelSizeFactor:a,pixelSizePower:l,slopeType:c}=t;return{hillshadeType:n,altitude:o,azimuth:i,zFactor:s,pixelSizePower:l,pixelSizeFactor:a,scalingType:"scaled"===c?"adjusted":"none",resolution:e,isGCS:r}}},34251(t,e,r){r.d(e,{FI:()=>d,KL:()=>c,Lu:()=>h,MD:()=>l,Rn:()=>m,Wu:()=>y,Y2:()=>p});var n=r(66552),o=r(47520),i=r(14140);const s=new Map;s.set("meter-per-second",1),s.set("kilometer-per-hour",.277778),s.set("knots",.514444),s.set("feet-per-second",.3048),s.set("mile-per-hour",.44704);const a=180/Math.PI,l=new n.J({esriMetersPerSecond:"meter-per-second",esriKilometersPerHour:"kilometer-per-hour",esriKnots:"knots",esriFeetPerSecond:"feet-per-second",esriMilesPerHour:"mile-per-hour"});function c(t,e){return s.get(t)/s.get(e)||1}function u(t){return(450-t)%360}function h(t,e="geographic"){const[r,n]=t,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r)*a;return i=(360+i)%360,"geographic"===e&&(i=u(i)),[o,i]}function f(t,e="geographic"){let r=t[1];"geographic"===e&&(r=u(r)),r%=360;const n=t[0];return[n*Math.cos(r/a),n*Math.sin(r/a)]}function p(t,e,r,n="geographic"){if(!(0,o.AB)(t)||null==r)return t;const i="vector-magdir"===e?t.clone():d(t,e),s=i.pixels[1];for(let t=0;t<s.length;t++)s[t]="geographic"===n?(s[t]+r[t]+270)%360:(s[t]+360-r[t])%360;return"vector-magdir"===e?i:d(i,"vector-magdir")}function d(t,e,r="geographic",n=1){if(!(0,o.AB)(t))return t;const{pixels:s,width:a,height:l}=t,c=a*l,u=s[0],p=s[1],d=t.pixelType.startsWith("f")?t.pixelType:"f32",m=i.A.createEmptyBand(d,c),g=i.A.createEmptyBand(d,c);let y=0;for(let t=0;t<l;t++)for(let t=0;t<a;t++)"vector-uv"===e?([m[y],g[y]]=h([u[y],p[y]],r),m[y]*=n):([m[y],g[y]]=f([u[y],p[y]],r),m[y]*=n,g[y]*=n),y++;const w=new i.A({pixelType:d,width:t.width,height:t.height,mask:t.mask,validPixelCount:t.validPixelCount,maskIsAlpha:t.maskIsAlpha,pixels:[m,g]});return w.updateStatistics(),w}function m(t,e,r=1){if(1===r||!(0,o.AB)(t))return t;const n=t.clone(),{pixels:i,width:s,height:a}=n,l=i[0],c=i[1];let u=0;for(let t=0;t<a;t++)for(let t=0;t<s;t++)"vector-uv"===e?(l[u]*=r,c[u]*=r):l[u]*=r,u++;return n.updateStatistics(),n}function g(t,e,r,n=1){const o=Math.sqrt(t*t+e*e)/n,i=(2*Math.PI+Math.atan2(e,t))%(2*Math.PI);return[o,(2*Math.PI+i-r)%(2*Math.PI)]}function y(t,e,r,n=[0,0],o=.5){const{width:s,height:a,mask:l}=t,[c,u]=t.pixels,[p,d]=n,m=Math.round((s-p)/r),g=Math.round((a-d)/r),y=m*g,w=new Float32Array(y),C=new Float32Array(y),b=new Uint8Array(y),x="vector-uv"===e;for(let t=0;t<g;t++)for(let e=0;e<m;e++){let n=0;const i=t*m+e,g=Math.max(0,t*r+d),y=Math.max(0,e*r+p),A=Math.min(a,g+r),v=Math.min(s,y+r);for(let t=g;t<A;t++)for(let e=y;e<v;e++){const r=t*s+e;if(!l||l[r]){n++;const t=x?[c[r],u[r]]:[c[r],(360+u[r])%360],[e,o]=x?t:f(t);w[i]+=e,C[i]+=o}}if(n>=(A-g)*(v-y)*(1-o)){b[i]=1;const[t,e]=h([w[i]/n,C[i]/n]);w[i]=t,C[i]=e}else b[i]=0,w[i]=0,C[i]=0}const A=new i.A({width:m,height:g,pixels:[w,C],mask:b});return A.updateStatistics(),A}!function(t=0,e=0,r=Math.PI,n=!0){n&&(r=(2*Math.PI-r)%(2*Math.PI));const o=n?-1:1,i=13*o,s=-7*o,a=-2*o,l=-16*o,c=21.75,[u,h]=g(0,e+i,r,c),[f,p]=g(t-5.5,e+s,r,c),[d,m]=g(t+5.5,e+s,r,c),[y,w]=g(t-1.5,e+a,r,c),[C,b]=g(t+1.5,e+a,r,c),[x,A]=g(t-1.5,e+l,r,c),[v,k]=g(t+1.5,e+l,r,c)}(0,0,0)},14140(t,e,r){r.d(e,{A:()=>f});var n,o=r(5482),i=r(49186),s=r(25482),a=r(4718),l=r(53966),c=r(91429),u=r(94778),h=r(4151);let f=class extends s.o{static{n=this}static createEmptyBand(t,e){return new(n.getPixelArrayConstructor(t))(e)}static combineBandMasks(t){if(t.length<2)return t[0];const e=t[0].length,r=new Uint8Array(e).fill(255);for(let n=0;n<t.length;n++){const o=t[n];for(let t=0;t<e;t++)o[t]||(r[t]=0)}return r}static getPixelArrayConstructor(t){let e;switch(t){case"u1":case"u2":case"u4":case"u8":e=Uint8Array;break;case"u16":e=Uint16Array;break;case"u32":e=Uint32Array;break;case"s8":e=Int8Array;break;case"s16":e=Int16Array;break;case"s32":e=Int32Array;break;case"f32":case"c64":case"c128":case"unknown":e=Float32Array;break;case"f64":e=Float64Array}return e}constructor(t){super(t),this.width=null,this.height=null,this.pixelType="f32",this.validPixelCount=null,this.mask=null,this.maskIsAlpha=!1,this.premultiplyAlpha=!1,this.statistics=null,this.depthCount=1}castPixelType(t){if(!t)return"f32";let e=t.toLowerCase();return["u1","u2","u4"].includes(e)?e="u8":["unknown","u8","s8","u16","s16","u32","s32","f32","f64"].includes(e)||(e="f32"),e}getPlaneCount(){return this.pixels?.length}addData(t){if(!t.pixels||t.pixels.length!==this.width*this.height)throw new i.A("pixelblock:invalid-or-missing-pixels","add data requires valid pixels array that has same length defined by pixel block width * height");this.pixels||(this.pixels=[]),this.statistics||(this.statistics=[]),this.pixels.push(t.pixels),this.statistics.push(t.statistics??new h.A)}getAsRGBA(){const t=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case"s8":case"s16":case"u16":case"s32":case"u32":case"f32":case"f64":this._fillFromNon8Bit(t);break;default:this._fillFrom8Bit(t)}return new Uint8ClampedArray(t)}getAsRGBAFloat(){const t=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(t),t}updateStatistics(){if(!this.pixels)return;this.statistics=this.pixels.map(t=>function(t,e){let r=1/0,n=-1/0;const o=t.length;let i,s=0;if(null!=e)for(i=0;i<o;i++)e[i]&&(s=t[i],r=s<r?s:r,n=s>n?s:n);else for(i=0;i<o;i++)s=t[i],r=s<r?s:r,n=s>n?s:n;return new h.A(r,n)}(t,this.mask));const t=this.mask;let e=0;if(null!=t)for(let r=0;r<t.length;r++)t[r]&&e++;else e=this.width*this.height;this.validPixelCount=e}clamp(t){if(!t||"f64"===t||"f32"===t||!this.pixels)return;const[e,r]=(0,u.hP)(t),o=this.pixels,i=this.width*this.height,s=o.length;let a,l,c;const h=[];for(let u=0;u<s;u++){c=n.createEmptyBand(t,i),a=o[u];for(let t=0;t<i;t++)l=a[t],c[t]=l>r?r:l<e?e:l;h.push(c)}this.pixels=h,this.pixelType=t}extractBands(t){const{pixels:e,statistics:r}=this;if(null==t||0===t.length||!e||0===e.length)return this;const o=e.length,i=t.some(t=>t>=e.length),s=o===t.length&&!t.some((t,e)=>t!==e);if(i||s)return this;const a=this.bandMasks?.length===o?t.map(t=>this.bandMasks[t]):void 0;let{mask:l,validPixelCount:c}=this;const{width:u,height:h}=this;return a?.length&&(l=n.combineBandMasks(a),c=l.filter(t=>!!t).length),new n({pixelType:this.pixelType,width:u,height:h,mask:l,bandMasks:a,validPixelCount:c,maskIsAlpha:this.maskIsAlpha,pixels:t.map(t=>e[t]),statistics:r&&t.map(t=>r[t])})}clone(){const t=new n({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount,premultiplyAlpha:this.premultiplyAlpha,depthCount:this.depthCount});let e;null!=this.mask&&(t.mask=new Uint8Array(this.mask)),this.noDataValues&&(t.noDataValues=[...this.noDataValues]),this.bandMasks&&(t.bandMasks=this.bandMasks.map(t=>new Uint8Array(t)));const r=n.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){t.pixels=[];const n=!!this.pixels[0].slice;for(e=0;e<this.pixels.length;e++)t.pixels[e]=n?this.pixels[e].slice():new r(this.pixels[e])}if(this.statistics)for(t.statistics=[],e=0;e<this.statistics.length;e++)t.statistics[e]=(0,a.o8)(this.statistics[e]);return t}getTransferableObject(){const{pixels:t,bandMasks:e,mask:r}=this;this.pixels=[],this.bandMasks=void 0,this.mask=void 0;const n=this.toJSON();this.pixels=t,this.bandMasks=e,this.mask=r,n.pixels=t?[...t]:t,n.bandMasks=e?[...e]:e,n.mask=r;const o=[];return[...t??[],r,...e??[]].filter(t=>null!=t&&ArrayBuffer.isView(t)).forEach(t=>{t&&!o.includes(t.buffer)&&o.push(t.buffer)}),{pixelBlock:n,transferList:o}}_fillFrom8Bit(t){const{mask:e,maskIsAlpha:r,premultiplyAlpha:n,pixels:o}=this;if(!t||!o?.length)return void l.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");let i,s,a,c;i=s=a=o[0],o.length>=3?(s=o[1],a=o[2]):2===o.length&&(s=o[1]);const u=new Uint32Array(t),h=this.width*this.height;if(i.length===h)if(null!=e&&e.length===h)if(r)for(c=0;c<h;c++){const t=e[c];if(t){const e=t/255;u[c]=n?t<<24|a[c]*e<<16|s[c]*e<<8|i[c]*e:t<<24|a[c]<<16|s[c]<<8|i[c]}}else for(c=0;c<h;c++)e[c]&&(u[c]=255<<24|a[c]<<16|s[c]<<8|i[c]);else for(c=0;c<h;c++)u[c]=255<<24|a[c]<<16|s[c]<<8|i[c];else l.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.")}_fillFromNon8Bit(t){const{pixels:e,mask:r,statistics:n}=this;if(!t||!e?.length)return void l.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");const o=this.pixelType;let i=1,s=0,a=1;if(n&&n.length>0){for(const t of n)if(null!=t.minValue&&(s=Math.min(s,t.minValue)),null!=t.maxValue&&null!=t.minValue){const e=t.maxValue-t.minValue;a=Math.max(a,e)}i=255/a}else{let t=255;"s8"===o?(s=-128,t=127):"u16"===o?t=65535:"s16"===o?(s=-32768,t=32767):"u32"===o?t=4294967295:"s32"===o?(s=-2147483648,t=2147483647):"f32"===o?(s=-34e38,t=34e38):"f64"===o&&(s=-Number.MAX_VALUE,t=Number.MAX_VALUE),i=255/(t-s)}const c=new Uint32Array(t),u=this.width*this.height;let h,f,p,d,m;if(h=f=p=e[0],h.length!==u)return l.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(e.length>=2)if(f=e[1],e.length>=3&&(p=e[2]),null!=r&&r.length===u)for(d=0;d<u;d++)r[d]&&(c[d]=255<<24|(p[d]-s)*i<<16|(f[d]-s)*i<<8|(h[d]-s)*i);else for(d=0;d<u;d++)c[d]=255<<24|(p[d]-s)*i<<16|(f[d]-s)*i<<8|(h[d]-s)*i;else if(null!=r&&r.length===u)for(d=0;d<u;d++)m=(h[d]-s)*i,r[d]&&(c[d]=255<<24|m<<16|m<<8|m);else for(d=0;d<u;d++)m=(h[d]-s)*i,c[d]=255<<24|m<<16|m<<8|m}_fillFrom32Bit(t){const{pixels:e,mask:r}=this;if(!t||!e?.length)return l.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The input pixel block is empty.");let n,o,i,s;n=o=i=e[0],e.length>=3?(o=e[1],i=e[2]):2===e.length&&(o=e[1]);const a=this.width*this.height;if(n.length!==a)return l.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let c=0;if(null!=r&&r.length===a)for(s=0;s<a;s++)t[c++]=n[s],t[c++]=o[s],t[c++]=i[s],t[c++]=1&r[s];else for(s=0;s<a;s++)t[c++]=n[s],t[c++]=o[s],t[c++]=i[s],t[c++]=1}};(0,o.Cg)([(0,c.MZ)({json:{write:!0}})],f.prototype,"width",void 0),(0,o.Cg)([(0,c.MZ)({json:{write:!0}})],f.prototype,"height",void 0),(0,o.Cg)([(0,c.MZ)({json:{write:!0}})],f.prototype,"pixelType",void 0),(0,o.Cg)([(0,c.wg)("pixelType")],f.prototype,"castPixelType",null),(0,o.Cg)([(0,c.MZ)({json:{write:!0}})],f.prototype,"validPixelCount",void 0),(0,o.Cg)([(0,c.MZ)({json:{write:!0}})],f.prototype,"mask",void 0),(0,o.Cg)([(0,c.MZ)({json:{write:!0}})],f.prototype,"maskIsAlpha",void 0),(0,o.Cg)([(0,c.MZ)({json:{write:!0}})],f.prototype,"pixels",void 0),(0,o.Cg)([(0,c.MZ)()],f.prototype,"premultiplyAlpha",void 0),(0,o.Cg)([(0,c.MZ)({json:{write:!0}})],f.prototype,"statistics",void 0),(0,o.Cg)([(0,c.MZ)({json:{write:!0}})],f.prototype,"depthCount",void 0),(0,o.Cg)([(0,c.MZ)({json:{write:!0}})],f.prototype,"noDataValues",void 0),(0,o.Cg)([(0,c.MZ)({json:{write:!0}})],f.prototype,"bandMasks",void 0),f=n=(0,o.Cg)([(0,c.$K)("esri.layers.support.PixelBlock")],f)},87186(t,e,r){r.d(e,{A:()=>b});var n,o=r(5482),i=r(25482),s=r(4718),a=r(91429),l=r(5443),c=r(16930);function u(t){return t=Number(t),isNaN(t)?void 0:t}let h=class extends i.o{static{n=this}constructor(t){super(t),this.name=null,this.minWavelength=void 0,this.maxWavelength=void 0,this.radianceBias=void 0,this.radianceGain=void 0,this.reflectanceBias=void 0,this.reflectanceGain=void 0,this.solarIrradiance=void 0}clone(){return new n({name:this.name,minWavelength:this.minWavelength,maxWavelength:this.maxWavelength,radianceBias:this.radianceBias,radianceGain:this.radianceGain,reflectanceBias:this.reflectanceBias,reflectanceGain:this.reflectanceGain,solarIrradiance:this.solarIrradiance})}};(0,o.Cg)([(0,a.MZ)({json:{name:"BandName",write:!0}})],h.prototype,"name",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:{source:["WavelengthMin","Wavelength"],reader:(t,e)=>u(e.WavelengthMin??e.Wavelength)},write:{target:"WavelengthMin"}}})],h.prototype,"minWavelength",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"WavelengthMax",read:{reader:u},write:!0}})],h.prototype,"maxWavelength",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"RadianceBias",read:{reader:u},write:!0}})],h.prototype,"radianceBias",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"RadianceGain",read:{reader:u},write:!0}})],h.prototype,"radianceGain",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"ReflectanceBias",read:{reader:u},write:!0}})],h.prototype,"reflectanceBias",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"ReflectanceGain",read:{reader:u},write:!0}})],h.prototype,"reflectanceGain",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"SolarIrradiance",read:{reader:u},write:!0}})],h.prototype,"solarIrradiance",void 0),h=n=(0,o.Cg)([(0,a.$K)("esri.layers.support.RasterBandInfo")],h);var f,p=r(13868),d=r(36005),m=r(43937);function g(t){return t=Number(t),isNaN(t)?void 0:t}let y=class extends i.o{static{f=this}constructor(t){super(t),this.acquisitionDate=void 0,this.cloudCover=void 0,this.productName=void 0,this.sensorName=null,this.sensorAzimuth=void 0,this.sensorElevation=void 0,this.sunAzimuth=void 0,this.sunElevation=void 0}readAcquisitionDate(t){return new Date(t)}writeAcquisitionDate(t,e){e.AcquisitionDate=t.getTime()}clone(){return new f({acquisitionDate:this.acquisitionDate,cloudCover:this.cloudCover,productName:this.productName,sensorName:this.sensorName,sensorAzimuth:this.sensorAzimuth,sensorElevation:this.sensorElevation,sunAzimuth:this.sunAzimuth,sunElevation:this.sunElevation})}};(0,o.Cg)([(0,a.MZ)({type:Date,json:{name:"AcquisitionDate",write:!0}})],y.prototype,"acquisitionDate",void 0),(0,o.Cg)([(0,d.w)("acquisitionDate")],y.prototype,"readAcquisitionDate",null),(0,o.Cg)([(0,m.K)("acquisitionDate")],y.prototype,"writeAcquisitionDate",null),(0,o.Cg)([(0,a.MZ)({json:{name:"CloudCover",read:{reader:g},write:!0}})],y.prototype,"cloudCover",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"ProductName",write:!0}})],y.prototype,"productName",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"SensorName",write:!0}})],y.prototype,"sensorName",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"SensorAzimuth",read:{reader:g},write:!0}})],y.prototype,"sensorAzimuth",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"SensorElevation",read:{reader:g},write:!0}})],y.prototype,"sensorElevation",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"SunAzimuth",read:{reader:g},write:!0}})],y.prototype,"sunAzimuth",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"SunElevation",read:{reader:g},write:!0}})],y.prototype,"sunElevation",void 0),y=f=(0,o.Cg)([(0,a.$K)("esri.layers.support.RasterSensorInfo")],y);var w,C=r(20223);let b=class extends i.o{static{w=this}constructor(t){super(t),this.attributeTable=null,this.bandCount=null,this.colormap=null,this.extent=null,this.format=void 0,this.height=null,this.width=null,this.histograms=null,this.keyProperties={},this.multidimensionalInfo=null,this.noDataValue=null,this.pixelSize=null,this.pixelType=null,this.isPseudoSpatialReference=!1,this.spatialReference=null,this.statistics=null,this.storageInfo=null,this.transform=null}get bandInfos(){const t=this.keyProperties.BandProperties,{bandCount:e}=this;if(!t?.length||t.length<e){const t=[];for(let r=1;r<=e;r++)t.push(new h({name:"band_"+r}));return t}const r=t.map(t=>h.fromJSON(t));for(let t=0;t<r.length;t++)r[t].name=r[t].name||"band_"+(t+1);return r}get dataType(){const t=this.keyProperties?.DataType?.toLowerCase()??"generic";return"stdtime"===t?"standard-time":t}get nativeExtent(){return this._get("nativeExtent")||this.extent}set nativeExtent(t){t&&this._set("nativeExtent",t)}get nativePixelSize(){if(null==this.transform||!this.transform.affectsPixelSize)return this.pixelSize;const t=this.nativeExtent;return{x:t.width/this.width,y:t.height/this.height}}get hasMultidimensionalTranspose(){return!!this.storageInfo?.transposeInfo}get sensorInfo(){if(this.keyProperties?.SensorName)return y.fromJSON(this.keyProperties)}clone(){return new w({attributeTable:(0,s.o8)(this.attributeTable),bandCount:this.bandCount,colormap:(0,s.o8)(this.colormap),extent:(0,s.o8)(this.extent),format:this.format,height:this.height,width:this.width,histograms:(0,s.o8)(this.histograms),keyProperties:(0,s.o8)(this.keyProperties),multidimensionalInfo:(0,s.o8)(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:(0,s.o8)(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:(0,s.o8)(this.spatialReference),statistics:(0,s.o8)(this.statistics),storageInfo:(0,s.o8)(this.storageInfo),transform:(0,s.o8)(this.transform)})}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"attributeTable",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"bandCount",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],b.prototype,"bandInfos",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"colormap",void 0),(0,o.Cg)([(0,a.MZ)({type:String,readOnly:!0})],b.prototype,"dataType",null),(0,o.Cg)([(0,a.MZ)({type:l.A,json:{write:!0}})],b.prototype,"extent",void 0),(0,o.Cg)([(0,a.MZ)({type:l.A,json:{write:!0}})],b.prototype,"nativeExtent",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"nativePixelSize",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"format",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"height",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"width",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"hasMultidimensionalTranspose",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"histograms",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"keyProperties",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"multidimensionalInfo",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"noDataValue",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"pixelSize",void 0),(0,o.Cg)([(0,a.MZ)({type:p.e8.apiValues,json:{write:!0}})],b.prototype,"pixelType",void 0),(0,o.Cg)([(0,a.MZ)()],b.prototype,"isPseudoSpatialReference",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],b.prototype,"sensorInfo",null),(0,o.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"statistics",void 0),(0,o.Cg)([(0,a.MZ)({type:C.A,json:{write:!0}})],b.prototype,"storageInfo",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=w=(0,o.Cg)([(0,a.$K)("esri.layers.support.RasterInfo")],b)},20223(t,e,r){r.d(e,{A:()=>c});var n,o=r(5482),i=r(25482),s=r(4718),a=r(91429),l=r(86738);let c=class extends i.o{constructor(){super(...arguments),this.blockWidth=void 0,this.blockHeight=void 0,this.compression=null,this.origin=null,this.firstPyramidLevel=null,this.maximumPyramidLevel=null,this.pyramidScalingFactor=2,this.pyramidBlockWidth=null,this.pyramidBlockHeight=null,this.isBsqTile=!1,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}static{n=this}clone(){return new n({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:(0,s.o8)(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:(0,s.o8)(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isBsqTile:this.isBsqTile,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:(0,s.o8)(this.tileInfo),transposeInfo:(0,s.o8)(this.transposeInfo),blockBoundary:(0,s.o8)(this.blockBoundary)})}};(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"blockWidth",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"blockHeight",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"compression",void 0),(0,o.Cg)([(0,a.MZ)({type:l.A,json:{write:!0}})],c.prototype,"origin",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"firstPyramidLevel",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"maximumPyramidLevel",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"pyramidResolutions",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"pyramidScalingFactor",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"pyramidBlockWidth",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"pyramidBlockHeight",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"isBsqTile",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"isVirtualTileInfo",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"tileInfo",void 0),(0,o.Cg)([(0,a.MZ)()],c.prototype,"transposeInfo",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"blockBoundary",void 0),c=n=(0,o.Cg)([(0,a.$K)("esri.layers.support.RasterStorageInfo")],c)},4151(t,e,r){r.d(e,{A:()=>n});class n{constructor(t=null,e=null,r=null){this.minValue=t,this.maxValue=e,this.noDataValue=r}}},13868(t,e,r){r.d(e,{SZ:()=>o,e8:()=>s,hm:()=>i});var n=r(66552);const o=(0,n.O)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),i=(0,n.O)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),s=(0,n.O)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"})},85676(t,e,r){r.d(e,{A:()=>d});var n=r(5482),o=r(25482),i=r(53966),s=r(91429),a=r(94778),l=r(47520),c=r(51927),u=r(51181),h=r(87186),f=r(67369),p=r(88178);let d=class extends o.o{constructor(t){super(t),this.lookup={rendererJSON:{}},this.canRenderInWebGL=!1}bind(){const{rendererJSON:t}=this;if(!t)return{success:!1};let e;switch(this.lookup={rendererJSON:{}},t.type){case"uniqueValue":e=this._updateUVRenderer(t);break;case"rasterColormap":e=this._updateColormapRenderer(t);break;case"rasterStretch":e=this._updateStretchRenderer(t);break;case"classBreaks":e=this._updateClassBreaksRenderer(t);break;case"rasterShadedRelief":e=this._updateShadedReliefRenderer(t);break;case"vectorField":e=this._updateVectorFieldRenderer();break;case"flowRenderer":e=this._updateFlowRenderer()}return e}symbolize(t){let e=t?.pixelBlock;if(!m(e))return e;if(t.simpleStretchParams&&"rasterStretch"===this.rendererJSON.type)return this.simpleStretch(e,t.simpleStretchParams);try{let r;switch(e.pixels.length>3&&(e=e.extractBands(t.bandIds??[0,1,2])),this.rendererJSON.type){case"uniqueValue":case"rasterColormap":r=this._symbolizeColormap(e);break;case"classBreaks":r=this._symbolizeClassBreaks(e);break;case"rasterStretch":r=this._symbolizeStretch(e,t.bandIds);break;case"rasterShadedRelief":{const n=t.extent,o=n.spatialReference.isGeographic,i={x:(n.xmax-n.xmin)/e.width,y:(n.ymax-n.ymin)/e.height};r=this._symbolizeShadedRelief(e,{isGCS:o,resolution:i});break}}return r}catch(t){return i.A.getLogger(this).error("symbolize",t.message),e}}simpleStretch(t,e){if(!m(t))return t;try{return t.pixels.length>3&&(t=t.extractBands([0,1,2])),(0,c._N)(t,{...e,isRenderer:!0})}catch(e){return i.A.getLogger(this).error("symbolize",e.message),t}}generateWebGLParameters(t){const{rendererJSON:e}=this;switch(e.type){case"uniqueValue":case"rasterColormap":case"classBreaks":return this._generateColormapWebGLParams("classBreaks"===e.type);case"rasterStretch":return this._generateStretchWebGLParams(t.pixelBlock,e,t.bandIds);case"rasterShadedRelief":return this._generateShadedReliefWebGLParams(e,t.isGCS,t.resolution??void 0);case"vectorField":return this._generateVectorFieldWebGLParams(e);default:return null}}_isLUTChanged(t){const e=this.lookup.rendererJSON;if(!e)return!0;const{rendererJSON:r}=this;if("colorRamp"in r&&r.colorRamp){const n=r.colorRamp;if(t)return JSON.stringify(n)!==JSON.stringify(e.colorRamp)}return JSON.stringify(r)!==JSON.stringify(e)}_symbolizeColormap(t){return this._isLUTChanged()&&!this.bind().success?t:(0,l.qL)(t,this.lookup.colormapLut)}_symbolizeClassBreaks(t){const{canUseIndexedLUT:e}=this._analyzeClassBreaks(this.rendererJSON);return this._isLUTChanged()&&!this.bind().success?t:e?(0,l.qL)(t,this.lookup.colormapLut):(0,l.Hx)(t,this.lookup.remapLut??[])}_symbolizeStretch(t,e){if(!t)return null;const{rasterInfo:r,lookup:n}=this,{pixelType:o,bandCount:i}=r,s=this.rendererJSON,a=["u8","u16","s8","s16"].includes(o);let u;const{dra:h}=s,{gamma:f}=n;if(h&&(e=null),"histogramEqualization"===s.stretchType){const o=h?null:n.histogramLut,i=(0,c.DP)(s,{rasterInfo:r,pixelBlock:t,bandIds:e,returnHistogramLut:!o}),a="u8"===r.pixelType&&!h&&(0,c.zt)(r.histograms?.[0])?t:(0,c._N)(t,{...i,gamma:f,isRenderer:!0});u=(0,l.eH)(a,{lut:h?i.histogramLut:e?.length?e.map(t=>o[t]):o,offset:0})}else if(a){let a;if(h){const n=(0,c.DP)(s,{rasterInfo:r,pixelBlock:t,bandIds:e});a=(0,c.RP)({pixelType:o,...n,gamma:f,rounding:"floor"})}else{if(this._isLUTChanged()&&!this.bind().success)return t;a=n.stretchLut}if(!a)return t;i>1&&null!=e&&e.length===t?.pixels.length&&a.lut.length===i&&(a={lut:e.map(t=>a.lut[t]),offset:a.offset}),u=(0,l.eH)(t,a)}else{const n=(0,c.DP)(s,{rasterInfo:r,pixelBlock:t,bandIds:e});u=(0,c._N)(t,{...n,gamma:f,isRenderer:!0})}if(s.colorRamp){if(this._isLUTChanged(!0)&&!this.bind().success)return t;u=(0,l.qL)(u,n.colormapLut)}return u}_symbolizeShadedRelief(t,e){const r=this.rendererJSON,n={...r,...e},o=(0,u.fw)(t,n);if(!r.colorRamp)return o;if(this._isLUTChanged(!0)&&!this.bind().success)return o;const{hsvMap:i}=this.lookup;if(!i)return o;const s=this.rasterInfo.statistics?.[0]??{min:0,max:8e3};return(0,u.SC)(o,t,i,s),o}_isVectorFieldData(){const{bandCount:t,dataType:e}=this.rasterInfo;return 2===t&&("vector-magdir"===e||"vector-uv"===e)}_updateVectorFieldRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; VectorFieldRenderer only supports "vector-magdir" and "vector-uv".`}}_updateFlowRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; FlowRenderer only supports "vector-magdir" and "vector-uv".`}}_updateUVRenderer(t){const{bandCount:e,attributeTable:r,pixelType:n}=this.rasterInfo,o=t.field1;if(!o)return{success:!1,error:"Unsupported renderer; missing UniqueValueRenderer.field."};const i=t.defaultSymbol,s=1===e&&["u8","s8"].includes(n);if(!(0,p.hu)(this.rasterInfo,o)&&!s)return{success:!1,error:"Unsupported data; UniqueValueRenderer is only supported on single band data with a valid raster attribute table."};const a=[];if(null!=r){const e=r.fields.find(t=>"value"===t.name.toLowerCase());if(!e)return{success:!1,error:"Unsupported data; the data's raster attribute table does not have a value field."};r.features.forEach(r=>{const n=t.uniqueValueInfos?.find(t=>String(t.value)===String(r.attributes[o])),s=n?.symbol?.color;s?a.push([r.attributes[e.name]].concat(s)):i&&a.push([r.attributes[e.name]].concat(i.color))})}else{if("value"!==o.toLowerCase())return{success:!1,error:'Unsupported renderer; UniqueValueRenderer.field must be "Value" when raster attribute table is not available.'};t.uniqueValueInfos?.forEach(t=>{const e=t?.symbol?.color;e?a.push([parseInt(""+t.value,10)].concat(e)):i&&a.push([parseInt(""+t.value,10)].concat(i?.color))})}if(0===a.length)return{success:!1,error:"Invalid UniqueValueRenderer. Cannot find matching records in the raster attribute table."};const c=(0,l.zg)({colormap:a});return this.lookup={rendererJSON:t,colormapLut:c},this.canRenderInWebGL=(0,p.WN)(c?.indexedColormap),{success:!0}}_updateColormapRenderer(t){if(!(0,p.FA)(this.rasterInfo))return{success:!1,error:"Unsupported data; the data source does not have a colormap."};const e=t.colormapInfos.map(t=>[t.value].concat(t.color)).sort((t,e)=>t[0]-e[0]);if(!e||0===e.length)return{success:!1,error:"Unsupported renderer; ColormapRenderer must have meaningful colormapInfos."};const r=(0,l.zg)({colormap:e});return this.lookup={rendererJSON:t,colormapLut:r},this.canRenderInWebGL=(0,p.WN)(r?.indexedColormap),{success:!0}}_updateShadedReliefRenderer(t){if(!(0,p.iL)(this.rasterInfo))return{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; ShadedReliefRenderer only supports "elevation", or single band float/s16 data.`};if(t.colorRamp){const e=(0,f.R8)(t.colorRamp,{interpolateAlpha:!0}),r=(0,l.zg)({colormap:e}),n=(0,f.S2)(r.indexedColormap);this.lookup={rendererJSON:t,colormapLut:r,hsvMap:n}}else this.lookup={rendererJSON:t};return this.canRenderInWebGL=!0,{success:!0}}_analyzeClassBreaks(t){const{attributeTable:e,pixelType:r}=this.rasterInfo,n=e?.fields.find(t=>"value"===t.name.toLowerCase()),o=e?.fields.find(e=>e.name.toLowerCase()===t.field.toLowerCase()),i=null!=n&&null!==o;return{canUseIndexedLUT:["u8","u16","s8","s16"].includes(r)||i,tableValueField:n,tableBreakField:o}}_updateClassBreaksRenderer(t){const{attributeTable:e}=this.rasterInfo,{canUseIndexedLUT:r,tableValueField:n,tableBreakField:o}=this._analyzeClassBreaks(t),i=t.classBreakInfos;if(!i?.length)return{success:!1,error:"Unsupported renderer; missing or invalid ClassBreaksRenderer.classBreakInfos."};const s=i.sort((t,e)=>t.classMaxValue-e.classMaxValue),c=s[s.length-1];let u=t.minValue;if(!r){const e=[];for(let t=0;t<s.length;t++)e.push({value:s[t].classMinValue??u,mappedColor:s[t].symbol.color}),u=s[t].classMaxValue;return e.push({value:c.classMaxValue,mappedColor:c.symbol.color}),this.lookup={rendererJSON:t,remapLut:e},this.canRenderInWebGL=!1,{success:!0}}const h=[];if(null!=e&&null!=n&&null!==o&&n!==o){const r=n.name,i=o.name,a=s[s.length-1],{classMaxValue:l}=a;u=t.minValue;for(const t of e.features){const e=t.attributes[r],n=t.attributes[i],o=n===l?a:n<u?null:s.find(({classMaxValue:t})=>t>n);o&&h.push([e].concat(o.symbol.color))}}else{const[e,r]=(0,a.hP)(this.rasterInfo.pixelType);u=Math.max(e,Math.floor(t.minValue));for(let t=0;t<s.length;t++){const e=s[t],n=Math.min(r,Math.ceil(e.classMaxValue));for(let t=u;t<n;t++)h.push([t].concat(e.symbol.color));u=n}c.classMaxValue!==u&&u!==r||h.push([u].concat(c.symbol.color))}const f=(0,l.zg)({colormap:h,fillUnspecified:!1});return this.lookup={rendererJSON:t,colormapLut:f},this.canRenderInWebGL=(0,p.WN)(f?.indexedColormap),{success:!0}}_updateStretchRenderer(t){let{stretchType:e,dra:r}=t;if(!("none"===e||t.statistics?.length||function(t){return null!=t&&t.length>0&&null!=t[0].min&&null!=t[0].max}(this.rasterInfo.statistics)||r))return{success:!1,error:"Unsupported renderer; StretchRenderer.customStatistics is required when dynamic range adjustment is not used."};const n=t.histograms||this.rasterInfo.histograms;!function(t){return"percentClip"===t||"histogramEqualization"===t}(t.stretchType)||n?.length||r||(e="minMax");const{computeGamma:o,useGamma:i,colorRamp:s}=t;let{gamma:a}=t;if(i&&o&&!a?.length){const e=t.statistics?.length?t.statistics:this.rasterInfo.statistics;a=(0,c.fP)(this.rasterInfo.pixelType,e)}const u=this.rasterInfo.pixelType,h=!r&&["u8","u16","s8","s16"].includes(u);if("histogramEqualization"===e){const e=n.map(t=>(0,c.WF)(t));this.lookup={rendererJSON:t,histogramLut:e}}else if(h){const e=(0,c.DP)(t,{rasterInfo:this.rasterInfo}),r=(0,c.RP)({pixelType:u,...e,gamma:i?a:null,rounding:"floor"});this.lookup={rendererJSON:t,stretchLut:r}}else this.lookup={rendererJSON:t};if(s&&!function(t){return"algorithmic"===t.type&&["0,0,0,255","0,0,0"].includes(t.fromColor.join(","))&&["255,255,255,255","255,255,255"].includes(t.toColor.join(","))}(s)){const e=(0,f.R8)(s,{interpolateAlpha:!0});this.lookup.colormapLut=(0,l.zg)({colormap:e}),this.lookup.rendererJSON=t}return this.lookup.gamma=i&&a?.length?a:null,this.canRenderInWebGL="histogramEqualization"!==e,{success:!0}}_generateColormapWebGLParams(t){const{indexedColormap:e,offset:r}=this.lookup.colormapLut||{};return{colormap:e,colormapOffset:r,isClassBreaks:t,type:"lut"}}_generateStretchWebGLParams(t,e,r){const{colormapLut:n}=this.lookup,o=e.colorRamp?n?.indexedColormap:null,i=e.colorRamp?n?.offset:null;"histogramEqualization"===e.stretchType&&(e={...e,stretchType:"minMax"});const{gamma:s}=this.lookup,a=!(!e.useGamma||!s?.some(t=>1!==t));let l=0;null!=t&&(l=t.getPlaneCount(),2===l&&((t=t.clone()).statistics=[t.statistics[0]],t.pixels=[t.pixels[0]]));const{bandCount:u}=this.rasterInfo,h=Math.min(3,r?.length||l||u,u),f=o||a?1:255,p=new Float32Array(h);if(a&&s)for(let t=0;t<h;t++)s[t]>1?s[t]>2?p[t]=6.5+(s[t]-2)**2.5:p[t]=6.5+100*(2-s[t])**4:p[t]=1;const d=a&&s?[s[0],s[1]??s[0],s[2]??s[0]]:[1,1,1],m=a?[p[0],p[1]??p[0],p[2]??p[0]]:[1,1,1];if(e.dra&&null==t&&("minMax"===e.stretchType||"standardDeviation"===e.stretchType))return{bandCount:h,minOutput:(e.min??0)/f,maxOutput:(e.max??255)/f,minCutOff:[0,0,0],maxCutOff:[1,1,1],factor:[1,1,1],useGamma:a,gamma:d,gammaCorrection:m,colormap:o,colormapOffset:i,stretchType:e.stretchType,dynamicRangeAdjustment:e.dra,numberOfStandardDeviations:e.numberOfStandardDeviations??2,type:"stretch"};const{minCutOff:g,maxCutOff:y,minOutput:w,maxOutput:C}=(0,c.DP)(e,{rasterInfo:this.rasterInfo,pixelBlock:t,bandIds:r});1===g.length&&(g[2]=g[1]=g[0]),1===y.length&&(y[2]=y[1]=y[0]);const b=y.map((t,e)=>y[e]===g[e]?0:(C-w)/(y[e]-g[e])/f);return{bandCount:h,minOutput:w/f,maxOutput:C/f,minCutOff:g,maxCutOff:y,factor:b,useGamma:a,gamma:d,gammaCorrection:m,colormap:o,colormapOffset:i,stretchType:e.stretchType,type:"stretch"}}_generateShadedReliefWebGLParams(t,e=!1,r={x:0,y:0}){const{colormapLut:n}=this.lookup,o=t.colorRamp?n?.indexedColormap:null,i=t.colorRamp?n?.offset:null,s={...t,isGCS:e,resolution:r},a=(0,u.ng)(s),l=this.rasterInfo.statistics?.[0];return{...a,minValue:l?.min??0,maxValue:l?.max??8e3,hillshadeType:"traditional"===t.hillshadeType?0:1,type:"hillshade",colormap:o,colormapOffset:i}}_generateVectorFieldWebGLParams(t){const{style:e,inputUnit:r,outputUnit:n,visualVariables:o,symbolTileSize:i,flowRepresentation:s}=t,a=this.rasterInfo.statistics?.[0].min??0,l=this.rasterInfo.statistics?.[0].max??50,c=o?.find(t=>"sizeInfo"===t.type)??{maxDataValue:l,maxSize:.8*i,minDataValue:a,minSize:.2*i},u=c.minDataValue??a,h=c.maxDataValue??l,f=null!=c.maxSize&&null!=c.minSize?[c.minSize/i,c.maxSize/i]:[.2,.8];if("wind_speed"===e){const t=(f[0]+f[1])/2;f[0]=f[1]=t}const p=null!=u&&null!=h?[u,h]:null;let d=null;if("classified_arrow"===e)if(null!=u&&null!=h&&null!=c){d=[];const t=(c.maxDataValue-c.minDataValue)/5;for(let e=0;e<6;e++)d.push(c.minDataValue+t*e)}else d=[0,1e-6,3.5,7,10.5,14];const m="flow_to"===s==("ocean_current_kn"===e||"ocean_current_m"===e)?0:Math.PI,g=o?.find(t=>"rotationInfo"===t.type);return{breakValues:d,dataRange:p,inputUnit:r,outputUnit:n,symbolTileSize:i,symbolPercentRange:f,style:e||"single_arrow",rotation:m,rotationType:this.rasterInfo.storageInfo?.tileInfo&&"vector-uv"===this.rasterInfo.dataType?"geographic":g?.rotationType||t.rotationType,type:"vectorField"}}};function m(t){return(0,l.AB)(t)&&0!==t.validPixelCount}(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"rendererJSON",void 0),(0,n.Cg)([(0,s.MZ)({type:h.A,json:{write:!0}})],d.prototype,"rasterInfo",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"lookup",void 0),(0,n.Cg)([(0,s.MZ)()],d.prototype,"canRenderInWebGL",void 0),d=(0,n.Cg)([(0,s.$K)("esri.renderers.support.RasterSymbolizer")],d)},67369(t,e,r){r.d(e,{L7:()=>s,M5:()=>p,R8:()=>y,S2:()=>w,hf:()=>x,hs:()=>f,iv:()=>g,kH:()=>l,vL:()=>A,vj:()=>a});var n=r(85334),o=r(66552),i=r(12195);const s=["random","ndvi","ndvi2","ndvi3","elevation","gray","hillshade"],a=[{id:"aspect",type:"multipart",colorRamps:[{fromColor:[190,190,190],toColor:[255,45,8]},{fromColor:[255,45,8],toColor:[255,181,61]},{fromColor:[255,181,61],toColor:[255,254,52]},{fromColor:[255,254,52],toColor:[0,251,50]},{fromColor:[0,251,50],toColor:[255,254,52]},{fromColor:[0,253,255],toColor:[0,181,255]},{fromColor:[0,181,255],toColor:[26,35,253]},{fromColor:[26,35,253],toColor:[255,57,251]},{fromColor:[255,57,251],toColor:[255,45,8]}]},{id:"black-to-white",fromColor:[0,0,0],toColor:[255,255,255]},{id:"blue-bright",fromColor:[204,204,255],toColor:[0,0,224]},{id:"blue-light-to-dark",fromColor:[211,229,232],toColor:[46,100,140]},{id:"blue-green-bright",fromColor:[203,245,234],toColor:[48,207,146]},{id:"blue-green-light-to-dark",fromColor:[216,242,237],toColor:[21,79,74]},{id:"brown-light-to-dark",fromColor:[240,236,170],toColor:[102,72,48]},{id:"brown-to-blue-green-diverging-right",type:"multipart",colorRamps:[{fromColor:[156,85,31],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[33,130,145]}]},{id:"brown-to-blue-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[110,70,45],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[48,100,102]}]},{id:"coefficient-bias",fromColor:[214,214,255],toColor:[0,57,148]},{id:"cold-to-hot-diverging",type:"multipart",colorRamps:[{fromColor:[69,117,181],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[214,47,39]}]},{id:"condition-number",type:"multipart",colorRamps:[{fromColor:[0,97,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,34,0]}]},{id:"cyan-to-purple",type:"multipart",colorRamps:[{fromColor:[0,245,245],toColor:[0,0,245]},{fromColor:[0,0,245],toColor:[245,0,245]}]},{id:"cyan-light-to-blue-dark",type:"multipart",colorRamps:[{fromColor:[182,237,240],toColor:[31,131,224]},{fromColor:[31,131,224],toColor:[9,9,145]}]},{id:"distance",fromColor:[255,200,0],toColor:[0,0,255]},{id:"elevation1",type:"multipart",colorRamps:[{fromColor:[175,240,233],toColor:[255,255,179]},{fromColor:[255,255,179],toColor:[0,128,64]},{fromColor:[0,128,64],toColor:[252,186,3]},{fromColor:[252,186,3],toColor:[128,0,0]},{fromColor:[120,0,0],toColor:[105,48,13]},{fromColor:[105,48,13],toColor:[171,171,171]},{fromColor:[171,171,171],toColor:[255,252,255]}]},{id:"elevation2",type:"multipart",colorRamps:[{fromColor:[118,219,211],toColor:[255,255,199]},{fromColor:[255,255,199],toColor:[255,255,128]},{fromColor:[255,255,128],toColor:[217,194,121]},{fromColor:[217,194,121],toColor:[135,96,38]},{fromColor:[135,96,38],toColor:[150,150,181]},{fromColor:[150,150,181],toColor:[181,150,181]},{fromColor:[181,150,181],toColor:[255,252,255]}]},{id:"errors",fromColor:[255,235,214],toColor:[196,10,10]},{id:"gray-light-to-dark",fromColor:[219,219,219],toColor:[69,69,69]},{id:"green-bright",fromColor:[204,255,204],toColor:[14,204,14]},{id:"green-light-to-dark",fromColor:[220,245,233],toColor:[34,102,51]},{id:"green-to-blue",type:"multipart",colorRamps:[{fromColor:[32,204,16],toColor:[0,242,242]},{fromColor:[0,242,242],toColor:[2,33,227]}]},{id:"orange-bright",fromColor:[255,235,204],toColor:[240,118,5]},{id:"orange-light-to-dark",fromColor:[250,233,212],toColor:[171,65,36]},{id:"partial-spectrum",type:"multipart",colorRamps:[{fromColor:[242,241,162],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]},{fromColor:[252,3,69],toColor:[176,7,237]},{fromColor:[176,7,237],toColor:[2,29,173]}]},{id:"partial-spectrum-1-diverging",type:"multipart",colorRamps:[{fromColor:[135,38,38],toColor:[240,149,12]},{fromColor:[240,149,12],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[74,80,181]},{fromColor:[74,80,181],toColor:[39,32,122]}]},{id:"partial-spectrum-2-diverging",type:"multipart",colorRamps:[{fromColor:[115,77,42],toColor:[201,137,52]},{fromColor:[201,137,52],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[91,63,176]},{fromColor:[91,63,176],toColor:[81,13,97]}]},{id:"pink-to-yellow-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[158,30,113],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[99,110,45]}]},{id:"pink-to-yellow-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,47,73],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[22,59,15]}]},{id:"precipitation",type:"multipart",colorRamps:[{fromColor:[194,82,60],toColor:[237,161,19]},{fromColor:[237,161,19],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,219,0]},{fromColor:[0,219,0],toColor:[32,153,143]},{fromColor:[32,153,143],toColor:[11,44,122]}]},{id:"prediction",type:"multipart",colorRamps:[{fromColor:[40,146,199],toColor:[250,250,100]},{fromColor:[250,250,100],toColor:[232,16,20]}]},{id:"purple-bright",fromColor:[255,204,255],toColor:[199,0,199]},{id:"purple-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[77,32,150],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[20,122,11]}]},{id:"purple-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[67,14,89],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[24,79,15]}]},{id:"purple-blue-bright",fromColor:[223,184,230],toColor:[112,12,242]},{id:"purple-blue-light-to-dark",fromColor:[229,213,242],toColor:[93,44,112]},{id:"purple-red-bright",fromColor:[255,204,225],toColor:[199,0,99]},{id:"purple-red-light-to-dark",fromColor:[250,215,246],toColor:[143,17,57]},{id:"red-bright",fromColor:[255,204,204],toColor:[219,0,0]},{id:"red-light-to-dark",fromColor:[255,224,224],toColor:[143,10,10]},{id:"red-to-blue-diverging-bright",type:"multipart",colorRamps:[{fromColor:[196,69,57],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[48,95,207]}]},{id:"red-to-blue-diverging-dark",type:"multipart",colorRamps:[{fromColor:[107,13,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[13,53,97]}]},{id:"red-to-green",type:"multipart",colorRamps:[{fromColor:[245,0,0],toColor:[245,245,0]},{fromColor:[245,245,0],toColor:[0,245,0]}]},{id:"red-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[186,20,20],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[54,145,33]}]},{id:"red-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,21,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[16,69,16]}]},{id:"slope",type:"multipart",colorRamps:[{fromColor:[56,168,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]},{id:"spectrum-full-bright",type:"multipart",colorRamps:[{fromColor:[255,0,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,0,255]}]},{id:"spectrum-full-dark",type:"multipart",colorRamps:[{fromColor:[153,0,0],toColor:[153,153,0]},{fromColor:[153,153,0],toColor:[0,153,153]},{fromColor:[0,153,153],toColor:[0,0,153]}]},{id:"spectrum-full-light",type:"multipart",colorRamps:[{fromColor:[255,153,153],toColor:[255,255,153]},{fromColor:[255,255,153],toColor:[153,255,255]},{fromColor:[153,255,255],toColor:[153,153,255]}]},{id:"surface",type:"multipart",colorRamps:[{fromColor:[112,153,89],toColor:[242,238,162]},{fromColor:[242,238,162],toColor:[242,206,133]},{fromColor:[242,206,133],toColor:[194,140,124]},{fromColor:[194,140,124],toColor:[255,242,255]}]},{id:"temperature",type:"multipart",colorRamps:[{fromColor:[255,252,255],toColor:[255,0,255]},{fromColor:[255,0,255],toColor:[0,0,255]},{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,255,0]},{fromColor:[0,255,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,128,0]},{fromColor:[255,128,0],toColor:[128,0,0]}]},{id:"white-to-black",fromColor:[255,255,255],toColor:[0,0,0]},{id:"yellow-to-dark-red",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[242,167,46]},{fromColor:[242,167,46],toColor:[107,0,0]}]},{id:"yellow-to-green-to-dark-blue",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[56,224,9]},{fromColor:[56,224,9],toColor:[26,147,171]},{fromColor:[26,147,171],toColor:[12,16,120]}]},{id:"yellow-to-red",fromColor:[245,245,0],toColor:[255,0,0]},{id:"yellow-green-bright",fromColor:[236,252,204],toColor:[157,204,16]},{id:"yellow-green-light-to-dark",fromColor:[215,240,175],toColor:[96,107,45]}],l=new o.J({Aspect:"aspect","Black to White":"black-to-white","Blue Bright":"blue-bright","Blue Light to Dark":"blue-light-to-dark","Blue-Green Bright":"blue-green-bright","Blue-Green Light to Dark":"blue-green-light-to-dark","Brown Light to Dark":"brown-light-to-dark","Brown to Blue Green Diverging, Bright":"brown-to-blue-green-diverging-right","Brown to Blue Green Diverging, Dark":"brown-to-blue-green-diverging-dark","Coefficient Bias":"coefficient-bias","Cold to Hot Diverging":"cold-to-hot-diverging","Condition Number":"condition-number","Cyan to Purple":"cyan-to-purple","Cyan-Light to Blue-Dark":"cyan-light-to-blue-dark",Distance:"distance","Elevation #1":"elevation1","Elevation #2":"elevation2",Errors:"errors","Gray Light to Dark":"gray-light-to-dark","Green Bright":"green-bright","Green Light to Dark":"green-light-to-dark","Green to Blue":"green-to-blue","Orange Bright":"orange-bright","Orange Light to Dark":"orange-light-to-dark","Partial Spectrum":"partial-spectrum","Partial Spectrum 1 Diverging":"partial-spectrum-1-diverging","Partial Spectrum 2 Diverging":"partial-spectrum-2-diverging","Pink to YellowGreen Diverging, Bright":"pink-to-yellow-green-diverging-bright","Pink to YellowGreen Diverging, Dark":"pink-to-yellow-green-diverging-dark",Precipitation:"precipitation",Prediction:"prediction","Purple Bright":"purple-bright","Purple to Green Diverging, Bright":"purple-to-green-diverging-bright","Purple to Green Diverging, Dark":"purple-to-green-diverging-dark","Purple-Blue Bright":"purple-blue-bright","Purple-Blue Light to Dark":"purple-blue-light-to-dark","Purple-Red Bright":"purple-red-bright","Purple-Red Light to Dark":"purple-red-light-to-dark","Red Bright":"red-bright","Red Light to Dark":"red-light-to-dark","Red to Blue Diverging, Bright":"red-to-blue-diverging-bright","Red to Blue Diverging, Dark":"red-to-blue-diverging-dark","Red to Green":"red-to-green","Red to Green Diverging, Bright":"red-to-green-diverging-bright","Red to Green Diverging, Dark":"red-to-green-diverging-dark",Slope:"slope","Spectrum-Full Bright":"spectrum-full-bright","Spectrum-Full Dark":"spectrum-full-dark","Spectrum-Full Light":"spectrum-full-light",Surface:"surface",Temperature:"temperature","White to Black":"white-to-black","Yellow to Dark Red":"yellow-to-dark-red","Yellow to Green to Dark Blue":"yellow-to-green-to-dark-blue","Yellow to Red":"yellow-to-red","Yellow-Green Bright":"yellow-green-bright","Yellow-Green Light to Dark":"yellow-green-light-to-dark"});function c(t,e){if(!t||!e||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]>e[r]+2||t[r]<e[r]-2)return!1;return!0}function u(t){const e=t.clone();return e.fromColor=t.toColor,e.toColor=t.fromColor,e}function h(t,e){const r=e??a;if("algorithmic"===t.type){const e=t.fromColor.toRgb(),n=t.toColor.toRgb();return r.find(t=>c(e,t.fromColor)&&c(n,t.toColor))?.id}if(t.weights?.length)return;const n=t.colorRamps?.map(t=>({fromColor:t.fromColor.toRgb(),toColor:t.toColor.toRgb()}));return r.find(t=>{const e=t.colorRamps;return!(!n||n.length!==e?.length)&&e.every((t,e)=>c(n[e].fromColor,t.fromColor)&&c(n[e].toColor,t.toColor))})?.id}function f(t,e=!1){const r="string"==typeof t?t:function(t,e,r=!1){if(!t)return;let n=!1,o=h(t,e);return null!=o||r||(n=!0,o=h(t=function(t){if("multipart"===t.type){const e=t.clone();return e.colorRamps?.length?(e.colorRamps=e.colorRamps.reverse().map(t=>u(t)),e):e}return u(t)}(t),e)),o?{id:o,inverted:n}:void 0}(t,void 0,e)?.id;return r?l.toJSON(r):null}function p(t,e="esriCIELabAlgorithm"){const r=a.find(({id:e})=>e===t);return r?r.colorRamps?{type:"multipart",colorRamps:r.colorRamps.map(t=>({type:"algorithmic",algorithm:e,fromColor:[...t.fromColor],toColor:[...t.toColor]}))}:{type:"algorithmic",algorithm:e,fromColor:[...r.fromColor],toColor:[...r.toColor]}:null}function d(t){t??={};const e=t.numColors||256,r=t.distanceOffset||0,n=null!=t.isCustomInterval?t.isCustomInterval:null!==t.distanceInterval&&t.distanceInterval!==1/(e-1),o=t.distanceInterval||1/(e-1);return{...t,numColors:e,distanceOffset:r,interpolateAlpha:!!t.interpolateAlpha,distanceInterval:o,isCustomInterval:n,weights:t.weights}}function m(t,e){const{fromColor:r,toColor:o}=t,i=3===r.length?[...r,255]:[...r],s=3===o.length?[...o,255]:[...o],a=t.algorithm||"esriCIELabAlgorithm",l=d(e),{numColors:c,distanceOffset:u,isCustomInterval:h,interpolateAlpha:f}=l;if(1===c&&0===u)return[i];if(2===c&&0===u&&!h)return[i,s];const p={r:i[0],g:i[1],b:i[2]},m={r:s[0],g:s[1],b:s[2]},g="esriCIELabAlgorithm"===a?function(t,e,r){const{numColors:n,distanceOffset:o,distanceInterval:i,isCustomInterval:s}=r;let{l:a,a:l,b:c}=t;const u=(e.l-a)*i,h=(e.a-l)*i,f=(e.b-c)*i,p=[];if(o){const t=o/i;a+=t*u,l+=t*h,c+=t*f}for(let t=0;t<n-1;t++)p.push({l:a,a:l,b:c}),a+=u,l+=h,c+=f;return p.push(s?{l:a,a:l,b:c}:e),p}((0,n.ZD)(p),(0,n.ZD)(m),l):"esriHSVAlgorithm"===a?function(t,e,r){const{numColors:n,distanceOffset:o,distanceInterval:i,isCustomInterval:s}=r,a=0===t.s,l=0===e.s;let c=t.h,u=e.h;a&&!l?c=u:l&&!a&&(e={...e,h:c},u=c);let h=Math.abs(u-c),f=0;const p=360;h<180?f=(u-c)*i:(h=p-h,f=c>u?h*i:-h*i);const d=(e.s-t.s)*i,m=(e.v-t.v)*i;let{s:g,v:y}=t,w=c;if(o){const t=o/i;w=(w+t*f+p)%p,g+=t*d,y+=t*m}const C=[];for(let t=0;t<n-1;t++)C.push({h:w,s:g,v:y}),w=(w+f+p)%p,g+=d,y+=m;return C.push(s?{h:w,s:g,v:y}:e),C}((0,n.N2)(p),(0,n.N2)(m),l):function(t,e,r){const{numColors:n,distanceOffset:o,distanceInterval:i,isCustomInterval:s}=r,a=t.h,l=e.h,c=2*Math.PI;let u=0;if(a<=l){const t=l-a,e=l-a-c;u=Math.abs(e)<Math.abs(t)?e:t}else{const t=l+c-a,e=l-a;u=Math.abs(e)<Math.abs(t)?e:t}const h=u*i,f=(e.l-t.l)*i,p=(e.c-t.c)*i;let{l:d,c:m,h:g}=t;if(o){const t=o/i;d+=t*f,m+=t*p,g=(g+t*h+c)%c}const y=[];for(let t=0;t<n-1;t++)y.push({l:d,c:m,h:g}),d+=f,m+=p,g=(g+h+c)%c;return y.push(s?{l:d,c:m,h:g}:e),y}((0,n.RH)(p),(0,n.RH)(m),l),y=[],w=i[3]??255,C=((s[3]??255)-w)/(c-1);for(let t=0;t<c;t++){const{r:e,g:r,b:o}=(0,n.$)(g[t]),i=f?Math.round(w+C*t):255;y.push([e,r,o,i])}return y}function g(t,e){const r=(0,i.W)(t)?t.toJSON():t;return"multipart"===r.type?function(t,e){const{numColors:r,interpolateAlpha:n}=d(e),o=function(t,e){const{colorRamps:r}=t;if(e??=r.map(({start:t,stop:e})=>null==t||null==e?-1:e-t),e.length!==r.length||e.some(t=>t<0))return Array.from({length:r.length},()=>1/r.length);const n=e.reduce((t,e)=>t+e);return e.map(t=>t/n)}(t,e?.weights),{colorRamps:i}=t,s=[],a=1/(r-1);let l=0,c=!1;for(let t=0;t<i.length;t++){const e=s.length,u=c?0:e*a-l;l+=o[t];let h=t===i.length-1?r-1-e:(o[t]-u)/a;if(c=Math.ceil(h)===h,h=Math.ceil(h),0===h)continue;const f=m(i[t],{numColors:h,interpolateAlpha:n,distanceOffset:u/o[t],distanceInterval:a/o[t]});s.push(...f)}const u=[...i[i.length-1].toColor];return 3===u.length&&u.push(255),s.push(u),s}(r,e):m(r,e)}function y(t,e){const r=g(t,e),n=e?.interpolateAlpha;return r.forEach((t,e)=>{t.unshift(e),n||t.pop()}),r}function w(t){const e=[];for(let r=0;r<t.length;r+=4){const o=(0,n.N2)({r:t[r],g:t[r+1],b:t[r+2]});e.push([o.h/60,o.s/100,255*o.v/100])}return e}function C(t){const e=(0,n.N2)(t);return{type:"HsvColor",Hue:e.h,Saturation:e.s,Value:e.v,AlphaValue:255}}function b(t){const e=t.toJSON();return{Algorithm:e?.Algorithm||"esriHSVAlgorithm",type:"AlgorithmicColorRamp",FromColor:C(t.fromColor),ToColor:C(t.toColor)}}function x(t){const e=f(t);if(!e)return null;if("algorithmic"===t.type)return{...b(t),Name:e};if(t.colorRamps){const r=t.colorRamps.map(b);return{type:"MultiPartColorRamp",NumColorRamps:r.length,ArrayOfColorRamp:r,Name:e}}return null}function A(t){const e=[...t].reverse().map(t=>{const e=t.toString(16);return e.length<2?"0"+e:e});return 4294967295&Number.parseInt(e.join(""),16)}},88178(t,e,r){function n(t,e){const{attributeTable:r,bandCount:n}=t;return!((null!=r||(o=t,!["u8","s8"].includes(o.pixelType)||null==o.statistics?.[0]?.min||null==o.statistics[0]?.max||1!==o.bandCount))&&(null==r||n>1||e&&null==r.fields.find(t=>t.name.toLowerCase()===e.toLowerCase())));var o}function o(t){const{bandCount:e,dataType:r,pixelType:n}=t;return"elevation"===r||"generic"===r&&1===e&&("s16"===n||"s32"===n||"f32"===n||"f64"===n)}function i(t,e=!1){const{bandCount:r,colormap:n,pixelType:o}=t;return 1===r&&(!!n?.length||!e&&"u8"===o)}function s(t,e=!1){const{attributeTable:r,bandCount:n}=t;return 1===n&&(!e||null!=r||null!=t.histograms)}function a(t){const{dataType:e}=t;return"vector-uv"===e||"vector-magdir"===e}function l(t){const{dataType:e}=t;return"vector-uv"===e||"vector-magdir"===e}function c(t){return!!t?.length&&t.length<=16384}r.d(e,{FA:()=>i,QJ:()=>l,WN:()=>c,hu:()=>n,iL:()=>o,rd:()=>a,xX:()=>s})},70274(t,e,r){r.d(e,{u:()=>n,x:()=>o});const n=new(r(66552).J)({none:"none",standardDeviation:"standard-deviation",histogramEqualization:"histogram-equalization",minMax:"min-max",percentClip:"percent-clip",sigmoid:"sigmoid"}),o={0:"none",3:"standardDeviation",4:"histogramEqualization",5:"minMax",6:"percentClip",9:"sigmoid"}},491(t,e,r){r.d(e,{CW:()=>f});var n=r(44208),o=r(53966),i=r(17676);function s(t){const e=new Float32Array(a(t));return a(t,e),e}function a(t,e){let r=0;e&&(e[r]=t.length),r++;for(const n of t){e&&(e[r]=n.stage),r++,e&&(e[r]=n.vertices.length),r++;for(const t of n.vertices)e&&(e[r]=t.x,e[r+1]=t.y,e[r+2]=t.time,e[r+3]=t.speed),r+=4}return r}const l=[1,2],c=[1,2,3,4];var u=r(97441);const h=()=>o.A.getLogger("esri.views.2d.engine.flow.dataUtils");async function f(t,e,r,o,s){const a=performance.now();(0,u.dF)(r);const l=function(t,e){const{perturb:r}=e;if(r){const{rotation:e}=r;null!=e&&(t=function(t,e){const r=Math.cos(e),n=Math.sin(e);return(e,o)=>{const[i,s]=t(e,o);return[r*i+n*s,-n*i+r*s]}}(t,e));const{scale:n}=r;null!=n&&(t=function(t,e){return(r,n)=>{const[o,i]=t(r,n);return[o*e,i*e]}}(t,n))}return t}((0,u.DE)(e,r),e),c=performance.now(),f=(0,u.S1)(e,l,r.width,r.height,o),m=performance.now(),g=function(t){const e=t.reduce((t,e)=>t+e.vertices.length,0),r=new Float32Array(4*e),n=new Array(t.length);let o=0,i=0;for(const{vertices:e}of t){const t=o;for(const t of e)r[4*o]=t.x,r[4*o+1]=t.y,r[4*o+2]=t.time,r[4*o+3]=t.speed,o++;n[i++]={startVertex:t,numberOfVertices:e.length,firstTime:e[0].time,lastTime:e[e.length-1].time}}return{lineVertices:r,lineDescriptors:n}}(f),y=performance.now(),w="Streamlines"===t?p(g,10,f):d(g,f),C=performance.now();return(0,n.A)("esri-2d-profiler")&&(h().info("I.1","_createFlowFieldFromData (ms)",Math.round(c-a)),h().info("I.2","_getStreamlines (ms)",Math.round(m-c)),h().info("I.3","createAnimatedLinesData (ms)",Math.round(y-m)),h().info("I.4","create{Streamlines|Particles}Mesh (ms)",Math.round(C-y)),h().info("I.5","createFlowMesh (ms)",Math.round(C-a)),h().info("I.6","Mesh size (bytes)",w.vertexData.buffer.byteLength+w.indexData.buffer.byteLength)),await Promise.resolve(),(0,i.Te)(s),w}function p(t,e,r){const{lineVertices:n,lineDescriptors:o}=t;let i=0,a=0;for(const t of o)i+=2*t.numberOfVertices,a+=6*(t.numberOfVertices-1);const l=new Float32Array(9*i),c=new Uint32Array(a);let u=0,h=0;function f(){c[h++]=u-2,c[h++]=u,c[h++]=u-1,c[h++]=u,c[h++]=u+1,c[h++]=u-1}function p(t,e,r,n,o,i,s,a){const c=9*u;let h=0;l[c+h++]=t,l[c+h++]=e,l[c+h++]=1,l[c+h++]=r,l[c+h++]=i,l[c+h++]=s,l[c+h++]=n/2,l[c+h++]=o/2,l[c+h++]=a,u++,l[c+h++]=t,l[c+h++]=e,l[c+h++]=-1,l[c+h++]=r,l[c+h++]=i,l[c+h++]=s,l[c+h++]=-n/2,l[c+h++]=-o/2,l[c+h++]=a,u++}for(const t of o){const{firstTime:r,lastTime:o}=t;let i=null,s=null,a=null,l=null,c=null,u=null;for(let h=0;h<t.numberOfVertices;h++){const d=n[4*(t.startVertex+h)],m=n[4*(t.startVertex+h)+1],g=n[4*(t.startVertex+h)+2],y=n[4*(t.startVertex+h)+3];let w=null,C=null,b=null,x=null;if(h>0){w=d-i,C=m-s;const t=Math.sqrt(w*w+C*C);if(w/=t,C/=t,h>1){let t=w+c,r=C+u;const n=Math.sqrt(t*t+r*r);t/=n,r/=n;const o=Math.min(1/(t*w+r*C),e);t*=o,r*=o,b=-r,x=t}else b=-C,x=w;null!==b&&null!==x&&(p(i,s,a,b,x,r,o,y),f())}i=d,s=m,a=g,c=w,u=C,l=y}p(i,s,a,-u,c,r,o,l)}const d=s(r);return{vertexData:l,indexData:c,pathData:d}}function d(t,e){const{lineVertices:r,lineDescriptors:n}=t;let o=0,i=0;for(const t of n){const e=t.numberOfVertices-1;o+=4*e*2,i+=6*e*2}const a=new Float32Array(16*o),u=new Uint32Array(i);let h,f,p,d,m,g,y,w,C,b,x,A,v,k,M=0,T=0;function S(t,e){let r=C+x,n=b+A;const o=Math.sqrt(r*r+n*n);r/=o,n/=o;const i=C*r+b*n;r/=i,n/=i;let s=x+v,S=A+k;const I=Math.sqrt(s*s+S*S);s/=I,S/=I;const P=x*s+A*S;s/=P,S/=P,function(t,e,r,n,o,i,s,u,h,f,p,d,m,g){const y=16*M;let w=0;for(const C of l)for(const l of c)a[y+w++]=t,a[y+w++]=e,a[y+w++]=r,a[y+w++]=n,a[y+w++]=s,a[y+w++]=u,a[y+w++]=h,a[y+w++]=f,a[y+w++]=C,a[y+w++]=l,a[y+w++]=m,a[y+w++]=g,a[y+w++]=o/2,a[y+w++]=i/2,a[y+w++]=p/2,a[y+w++]=d/2,M++}(h,f,p,d,-n,r,m,g,y,w,-S,s,t,e),u[T++]=M-8,u[T++]=M-7,u[T++]=M-6,u[T++]=M-7,u[T++]=M-5,u[T++]=M-6,u[T++]=M-4,u[T++]=M-3,u[T++]=M-2,u[T++]=M-3,u[T++]=M-1,u[T++]=M-2}function I(t,e,r,n,o,i){if(C=x,b=A,x=v,A=k,null==C&&null==b&&(C=x,b=A),null!=m&&null!=g){v=t-m,k=e-g;const r=Math.sqrt(v*v+k*k);v/=r,k/=r}null!=C&&null!=b&&S(o,i),h=m,f=g,p=y,d=w,m=t,g=e,y=r,w=n}function P(t,e){C=x,b=A,x=v,A=k,null==C&&null==b&&(C=x,b=A),null!=C&&null!=b&&S(t,e)}for(const t of n){h=null,f=null,p=null,d=null,m=null,g=null,y=null,w=null,C=null,b=null,x=null,A=null,v=null,k=null;const{firstTime:e,lastTime:n}=t;for(let o=0;o<t.numberOfVertices;o++)I(r[4*(t.startVertex+o)],r[4*(t.startVertex+o)+1],r[4*(t.startVertex+o)+2],r[4*(t.startVertex+o)+3],e,n);P(e,n)}const E=s(e);return{vertexData:a,indexData:u,pathData:E}}},97441(t,e,r){r.d(e,{DE:()=>l,S1:()=>s,dF:()=>a}),r(44208),r(53966);var n=r(34727),o=r(87811),i=r(78659);function s(t,e,r,n,i){if(t.density<=0)return[];const{positions:s}=i,a=[],l=new o.A,h=1/Math.max(t.lineCollisionWidth,1),f=Math.round(r*h),p=Math.round(n*h),d=new Int32Array(f*p);for(let t=0;t<d.length;t++)d[t]=-1;const m={raster:d,width:f,height:p,resolutionFactor:h},g={},y=t.lineSpacing/Math.sqrt(t.density),w=Math.floor(n/y),C=Math.floor(r/y);for(let t=0;t<w;t++){const e=t*y;for(let r=0;r<C;r++){const n=r*y;g[`${r}-${t}`]={x:n,y:e,positions:[]}}}for(const{x:t,y:e}of s){const r=g[`${Math.floor(t/y)}-${Math.floor(e/y)}`];r&&r.positions.push([t,e])}const b=[];for(const t in g){const e=g[t];if(0===e.positions.length)b.push({x:e.x+y/2,y:e.y+y/2,sort:.66+.33*l.getFloat(),stage:0});else{const[t]=e.positions.splice(0,1);b.push({x:t[0],y:t[1],sort:.33*l.getFloat(),stage:1});for(const[t,r]of e.positions)b.push({x:t,y:r,sort:.33+.33*l.getFloat(),stage:2})}}b.sort((t,e)=>t.sort-e.sort);for(const{x:o,y:i,stage:s}of b){if(a.length>=t.maxNumberOfStreamlines)break;const h=t.onlyForwardTracing?c(1,t,e,o,i,[r,n],a.length,m):u(t,e,o,i,[r,n],a.length,l,m);h.length<2||a.push({stage:s,vertices:h})}return a}function a(t){for(let e=0;e<t.mask.length;e++)0===t.mask[e]&&(t.data[2*e]=0,t.data[2*e+1]=0)}function l(t,e){const r=function(t,e,r,n){if(0===n)return t;const o=Math.round(3*n),i=new Array(2*o+1);let s=0;for(let t=-o;t<=o;t++){const e=Math.exp(-t*t/(n*n));i[t+o]=e,s+=e}for(let t=-o;t<=o;t++)i[t+o]/=s;const a=new Float32Array(t.length);for(let n=0;n<r;n++)for(let r=0;r<e;r++){let s=0,l=0;for(let a=-o;a<=o;a++){if(r+a<0||r+a>=e)continue;const c=i[a+o];s+=c*t[2*(n*e+(r+a))],l+=c*t[2*(n*e+(r+a))+1]}a[2*(n*e+r)]=s,a[2*(n*e+r)+1]=l}const l=new Float32Array(t.length);for(let t=0;t<e;t++)for(let n=0;n<r;n++){let s=0,c=0;for(let l=-o;l<=o;l++){if(n+l<0||n+l>=r)continue;const u=i[l+o];s+=u*a[2*((n+l)*e+t)],c+=u*a[2*((n+l)*e+t)+1]}l[2*(n*e+t)]=s,l[2*(n*e+t)+1]=c}return l}(e.data,e.width,e.height,t.smoothing);return t.interpolate?(t,n)=>{const o=Math.floor(t),i=Math.floor(n);if(o<0||o>=e.width)return[0,0];if(i<0||i>=e.height)return[0,0];const s=t-o,a=n-i,l=o,c=i,u=o<e.width-1?o+1:o,h=i<e.height-1?i+1:i,f=r[2*(c*e.width+l)],p=r[2*(c*e.width+u)],d=r[2*(h*e.width+l)],m=r[2*(h*e.width+u)],g=r[2*(c*e.width+l)+1],y=r[2*(c*e.width+u)+1];return[(f*(1-a)+d*a)*(1-s)+(p*(1-a)+m*a)*s,(g*(1-a)+r[2*(h*e.width+l)+1]*a)*(1-s)+(y*(1-a)+r[2*(h*e.width+u)+1]*a)*s]}:(t,n)=>{const o=Math.round(t),i=Math.round(n);return o<0||o>=e.width||i<0||i>=e.height?[0,0]:[r[2*(i*e.width+o)],r[2*(i*e.width+o)+1]]}}function c(t,e,r,o,s,a,l,c){const u=[],{raster:h,width:f,height:p,resolutionFactor:d}=c;let m=o,g=s,y=(0,i.Kp)(0),[w,C]=r(m,g);w*=e.velocityScale,C*=e.velocityScale;const b=Math.sqrt(w*w+C*C);let x,A;u.push({x:m,y:g,time:y,speed:b});for(let o=0;o<e.verticesPerLine;o++){let[o,s]=r(m,g);o*=e.velocityScale,s*=e.velocityScale;const c=Math.sqrt(o*o+s*s);if(c<e.minSpeedThreshold)return u;const w=t*o/c,C=t*s/c;m+=w*e.segmentLength,g+=C*e.segmentLength,e.wrapAround&&(m=(0,n.OS)(m,a[0]));const b=t*e.segmentLength/c;if(y=(0,i.Kp)(y+b),Math.acos(w*x+C*A)>e.maxTurnAngle)return u;if(e.collisions){let t=Math.round(m*d);const r=Math.round(g*d);if(e.wrapAround&&(t=(0,n.OS)(t,f)),t<0||t>f-1||r<0||r>p-1)return u;const o=h[r*f+t];if(-1!==o&&o!==l)return u;h[r*f+t]=l}u.push({x:m,y:g,time:y,speed:c}),x=w,A=C}return u}function u(t,e,r,n,o,i,s,a){const l=Math.round((.2+.6*s.getFloat())*t.verticesPerLine),u=t.verticesPerLine-l,h=c(-1,{...t,verticesPerLine:u},e,r,n,o,i,a),f=c(1,{...t,verticesPerLine:l},e,r,n,o,i,a),p=h.reverse();return p.splice(-1,1),p.concat(f)}r(5443),r(21325)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9749],{40191(e,t,i){i.d(t,{Dk:()=>c,aK:()=>d,yr:()=>f,jH:()=>g,oW:()=>p});var n=i(64083),a=i(40496);var r=i(41276),s=i(88286),l=i(46465),o=i(15236);const c=e=>u(void 0,e),d=e=>t=>u(t,e);class h extends n.C{constructor(e,t){super(e);const i=this.exports;try{(0,a.a)(this.component);const e=t(this.component,this),n=this.exports!==i;if((0,a.i)(e)){n||this.setProvisionalExports(e);const t=e.then(e=>{this.exports=e,super.catchUpLifecycle()}).catch(e=>{this.P.reject(e)});this.onLoad(async()=>await t)}else n&&void 0===e||(this.exports=e),queueMicrotask(()=>super.catchUpLifecycle())}catch(e){this.P.reject(e)}}catchUpLifecycle(){}}const u=(v=h,(...e)=>{const t=(0,a.d)(),i=new v(...e),r=i.exports;(0,a.b)(t.at(-1));const s=i.component.manager;s.W(i,r),i.watchExports(s.W.bind(s,i)),(0,a.j)(i);const l=[i.component,...t].reverse();return(0,n.t)(l,e=>void 0===e?void 0:((e,{host:t,key:i,isReactive:n},r)=>{const s=t,l=s[i]!==e.exports,o=s[i]!==r,c=r!==e.exports;if(l&&!o&&c&&(s[i]=e.exports),t===e.component){if(n){const t=e.component.manager;o&&t.W(e,s[i]),e.onUpdate(n=>{if(n.has(i)){const n=s[i];n!==e.exports&&t.W(e,n)}})}e.O=n?void 0:i}const d=e.component.constructor.elementProperties.get(i)?.readOnly;e.watchExports(()=>{s[i]!==e.exports&&(d?(0,a.e)(()=>{s[i]=e.exports}):s[i]=e.exports)})})(i,e,r),r)});var v;const p=(e,t)=>new m(e,t);class m extends n.C{#e;#t;#i;constructor(e,t){super(),r.S$||(this.#t=e,this.#i=t,this.#e=new MutationObserver(i=>{i.forEach(i=>{e.includes(i.attributeName)&&t.call(this.component,this.component.el.getAttribute(i.attributeName),i.oldValue,i.attributeName)})}))}hostConnected(){this.#t.forEach(e=>{this.component.el.hasAttribute(e)&&this.#i.call(this.component,this.component.el.getAttribute(e),null,e)}),this.#e.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this.#t})}hostDisconnected(){this.#e.disconnect()}}const g=()=>c((e,t)=>{t.exports="ltr",t.onLifecycle(()=>{const i=()=>{const i=(0,s.Zj)(e.el,"dir","ltr");t.exports="rtl"===i?"rtl":"ltr"};return i(),(0,s.Yt)(e.el,["dir"],i)})}),f=e=>(t={})=>c((i,n)=>{const a=(0,l.Ft)(i.el),r={_lang:a.lang,_t9nLocale:a.t9nLocale,_loading:!0},s=i;n.onLifecycle(()=>(0,l.hd)(i.el,()=>e("./assets"),({t9nLocale:e,t9nStrings:t,lang:a})=>{const r={...t,_lang:a,_t9nLocale:e,_loading:!1};n.exports=r;const l=t.componentLabel;"string"==typeof l&&"label"in i&&null==i.label&&(i.label??=l),o(s.messageOverrides)},t.name));const o=e=>{const t=n.exports,i=t._original??t,a=b(i,e);e&&(a._original=i),n.exports=a};return"messageOverrides"in s&&n.onUpdate(e=>{e.has("messageOverrides")&&o(s.messageOverrides)}),t.blocking?(n.setProvisionalExports(r,!1),n.ready):r}),b=(e,t)=>{if(!t)return e;const i={...e};return Object.entries(t).forEach(([t,n])=>{void 0!==e[t]&&(i[t]="object"==typeof n?b(e[t],n):n??e[t])}),i};a.a,o.b,o.s},46465(e,t,i){i.d(t,{Ft:()=>h,hd:()=>v,q:()=>l});var n=i(88286),a=i(17516);const r="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),s=new Set(r),l="en",o={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},c={},d=async(e,t)=>{const i=`${t}${e}.json`;try{const e=await fetch(i);if(e.ok)return await e.json()}catch(e){return(0,a.Rm)("error","intl",`An unknown error occurred while fetching localization strings at ${i}`,{detail:{error:e}}),{}}return e===l?{}:await d(l,t)},h=e=>{const t=(0,n.Zj)(e,"lang",globalThis.navigator?.language||l);return{lang:t,t9nLocale:u(t)}},u=e=>{const[t,i]=e.split("-"),n=t.toLowerCase();let a=n;return i&&(a=`${n}-${i.toUpperCase()}`),a=o[a]??a,s.has(a)?a:i?u(n):l},v=(e,t,i,r)=>{let s;const l=()=>p(e,t(),r).then(e=>{s?.lang===e.lang&&s.t9nLocale===e.t9nLocale&&s.t9nStrings===e.t9nStrings||i(e),s=e}).catch(e=>{(0,a.Rm)("error","intl","Error updating component locale state",{detail:{error:e}})});return queueMicrotask(l),(0,n.Yt)(e,["lang"],l)},p=async(e,t,i=e.localName.split("-").slice(1).join("-"))=>{const{lang:n,t9nLocale:a}=h(e),r=`${t}/${i}/t9n`,s=null===i?{}:await(async(e,t,i="")=>{const n=`${t}/${i}`,a=`${n}${e}.json`;return c[a]??(c[a]=d(e,n)),await c[a]})(a,r,"messages.");return{lang:n,t9nLocale:a,t9nStrings:s}}},64196(e,t,i){function n(e){return Boolean(e).toString()}i.d(t,{t:()=>n})},74862(e,t,i){function n(e){return"l"===e?"m":"s"}async function a(e){await e.componentOnReady(),await e.updateComplete}i.d(t,{c:()=>a,g:()=>n}),i(41276)},59100(e,t,i){i.d(t,{g:()=>n});const n=()=>[2,1,1,1,3].map(e=>{let t="";for(let i=0;i<e;i++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return t}).join("-")},88970(e,t,i){i.d(t,{c:()=>a,u:()=>r});var n=i(41276);function a(e,t,i){if(n.S$)return;const a=function(e){class t extends window.MutationObserver{constructor(e){super(e),this.observedEntry=[],this.callback=e}observe(e,t){return this.observedEntry.push({target:e,options:t}),super.observe(e,t)}unobserve(e){const t=this.observedEntry.filter(t=>t.target!==e);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),t.forEach(e=>this.observe(e.target,e.options))}}return"intersection"===e?window.IntersectionObserver:"mutation"===e?t:window.ResizeObserver}(e);return new a(t,i)}function r(e,t,i,n){e&&(t&&e.unobserve(t),i&&(e instanceof MutationObserver?e.observe(i,n):e.observe(i)))}},52054(e,t,i){i.d(t,{u:()=>a});var n=i(40191);const a=e=>(0,n.aK)(t=>{function i(i){const{form:n}=t.elementInternals;i.defaultPrevented||t.disabled||e?.disabled?.()||!n||"button"===t.type||("submit"!==t.type?n.reset():n.requestSubmit())}t.listen("luminaFormAssociatedCallback",({detail:[e]})=>{e?t.el.addEventListener("click",i):t.el.removeEventListener("click",i)})})},27604(e,t,i){i.d(t,{u:()=>l});var n=i(40191),a=i(19470),r=i(41276);const s=({children:e,disabled:t})=>r.qy`<div class=${(0,a.CP)("interaction-container")} .inert=${t}>${e}</div>`,l=(0,n.aK)((e,t)=>(t.onUpdated(()=>function(e){if(e.disabled)return e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),void function(e){var t;e.el.click=o,(t=e.el).addEventListener("pointerdown",c,u),d.forEach(e=>t.addEventListener(e,h,u))}(e);(function(e){var t;delete e.el.click,(t=e.el).removeEventListener("pointerdown",c,u),d.forEach(e=>t.removeEventListener(e,h,u))})(e),e.el.removeAttribute("aria-disabled")}(e)),s));function o(){const{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function c(e){e.target.disabled&&e.preventDefault()}const d=["mousedown","mouseup","click"];function h(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}const u={capture:!0}},26378(e,t,i){i.d(t,{u:()=>s});var n=i(40191),a=i(74862),r=i(29805);const s=()=>(0,n.aK)((e,t)=>{let i;function n(){i?.abort()}return t.onLoad(()=>{e.listen("focus",()=>{i=new AbortController,e.el.addEventListener("focusout",n,{signal:i.signal})})}),t.onDisconnected(()=>{e.el.removeEventListener("focusout",n)}),async(t,s)=>{if(e.disabled)return;const l=function(e){if(e)return function(e){return"target"in e&&("includeContainer"in e||"strategy"in e)}(e)?e:{target:e}}(t());if(!l)return;const{target:o,includeContainer:c,strategy:d}=l,h=(0,r.e)(e.el),u=h.activeElement;return await(0,a.c)(e),u!==h.activeElement||i&&!i?.signal.aborted?void 0:(e.el.removeEventListener("focus",n),(0,r.i)(o,c,d,e.el,s))}})},87667(e,t,i){i.d(t,{u:()=>r});var n=i(40191),a=i(86193);const r=(0,n.yr)(a.g)},33983(e,t,i){var n=i(86193),a=i(41276),r=i(19470),s=i(40191),l=i(64196),o=i(88970);const c={trace:0,debug:1,info:2,warn:4,error:8,off:10};const d=e=>function(e,...t){(function(e){return c[e]>=c[(0,n.a)().logLevel]})(e)&&console[e]("%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...t)}("error",e),h="flip-rtl",u="svg",v={},p={},m={s:16,m:24,l:32};function g({icon:e,scale:t}){const i=m[t],n=function(e){const t=!isNaN(Number(e.charAt(0))),i=e.split("-");if(i.length>0){const t=/[a-z]/i;e=i.map((e,i)=>e.replace(t,function(e,t){return 0===i&&0===t?e:e.toUpperCase()})).join("")}return t?`i${e}`:e}(e),a="F"===n.charAt(n.length-1);return`${a?n.substring(0,n.length-1):n}${i}${a?"F":""}`}function f(e){return v[e]}const b=a.AH`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`;class z extends r.WF{constructor(){super(...arguments),this.direction=(0,s.jH)(),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}static{this.properties={pathData:[16,{},{state:!0}],visible:[16,{},{state:!0}],flipRtl:[7,{},{reflect:!0,type:Boolean}],icon:[3,{type:String},{reflect:!0}],preload:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],textLabel:1}}static{this.styles=b}connectedCallback(){if(super.connectedCallback(),this.preload)return this.visible=!0,void this.loadIconPathData();this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(e){(e.has("icon")&&(this.hasUpdated||null!==this.icon)||e.has("scale")&&(this.hasUpdated||"m"!==this.scale))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){const{icon:e,scale:t,visible:i}=this;if(a.S$||!e||!i)return;const r={icon:e,scale:t},s=f(g(r))||await async function(e){const t=g(e),i=f(t);if(i)return i;p[t]||(p[t]=fetch((0,n.g)(`./assets/icon/${t}.json`)).then(e=>e.json()).catch(()=>(d(`${e.icon} (${e.scale}) icon failed to load`),"")));const a=await p[t];return v[t]=a,a}(r);e===this.icon&&(this.pathData=s)}waitUntilVisible(e){this.intersectionObserver=(0,o.c)("intersection",t=>{t.forEach(t=>{t.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,e())})},{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):e()}render(){const{flipRtl:e,pathData:t,scale:i,textLabel:n}=this,s=this.direction,o=m[i],c=!!n,d=[].concat(t||"");return this.el.ariaHidden=(0,l.t)(!c),this.el.ariaLabel=c?n:null,this.el.role=c?"img":null,a.qy`<svg aria-hidden=true class=${(0,r.CP)({[h]:"rtl"===s&&e,[u]:!0})} fill=currentColor height=100% viewBox=${`0 0 ${o} ${o}`} width=100% xmlns=http://www.w3.org/2000/svg>${d.map(e=>"string"==typeof e?a.JW`<path d=${e??a.s6} />`:a.JW`<path d=${e.d??a.s6} opacity=${("opacity"in e?e.opacity:1)??a.s6} />`)}</svg>`}}(0,n.c)("calcite-icon",z)},67979(e,t,i){var n=i(86193),a=i(41276),r=i(19470),s=i(59100),l=i(87667);const o="ring--progress",c="ring",d="ring--track",h=a.AH`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-md);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-xl);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`;class u extends r.WF{constructor(){super(...arguments),this.messages=(0,l.u)({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{},{reflect:!0,type:Boolean}],inline:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=h}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||0!==this.value)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||"indeterminate"!==this.type)||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&100===this.value}formatValue(){return"determinate-value"!==this.type?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){"determinate-value"===this.type&&this.formatter?.resolvedOptions().locale!==this.messages._lang&&(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){const{el:e,inline:t,label:i,text:n,type:l,value:o}=this,c=e.id||(0,s.g)(),d="indeterminate"!==l,h=Math.floor(o);return this.el.ariaLabel=i,this.el.ariaValueMax=d?"100":void 0,this.el.ariaValueMin=d?"0":void 0,this.el.ariaValueNow=d?h.toString():void 0,(0,r.Bq)(this.el,"id",c),this.el.role="progressbar",a.qy`<div class=${(0,r.CP)("rings")}>${this.renderRing("track")}${this.renderRing("progress")}${!t&&d&&a.qy`<div class=${(0,r.CP)("percentage")}>${this.formatValue()}</div>`||""}</div>${!t&&n&&a.qy`<div class=${(0,r.CP)("text")}>${n}</div>`||""}`}renderRing(e){const{inline:t,scale:i,value:n}=this,s=t?this.getInlineSize(i):this.getSize(i),l=.45*s;let h;if("progress"===e){const e=2*l*Math.PI,t=(this.type.startsWith("determinate")?n:24)/100*e;h={"stroke-dasharray":`${t} ${e-t}`}}return a.qy`<svg aria-hidden=true class=${(0,r.CP)({[c]:!0,[d]:"track"===e,[o]:"progress"===e})} style=${(0,r.zl)(h)} viewBox=${`0 0 ${s} ${s}`}>${a.JW`<circle cx=${s/2} cy=${s/2} r=${l??a.s6} />`}</svg>`}}(0,n.c)("calcite-loader",u)}}]);
|