@arcgis/core 4.23.0-next.20220119 → 4.23.0-next.20220127
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/Graphic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02fbc76dfdc20e628c61.js +1 -0
- package/assets/esri/core/workers/chunks/0317f37b6c8705b363fd.js +1 -0
- package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +1 -0
- package/assets/esri/core/workers/chunks/{d1454155ee1b8a421cbb.js → 0d02c6ad1f4688bfa374.js} +1 -1
- package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +1 -0
- package/assets/esri/core/workers/chunks/0e17691520d890d34efb.js +1 -0
- package/assets/esri/core/workers/chunks/12c0cabb6c59e65d8546.js +1 -0
- package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +1 -0
- package/assets/esri/core/workers/chunks/{b313ab14a643273e7d09.js → 1877ab1b6a115dbba1c5.js} +1 -1
- package/assets/esri/core/workers/chunks/199670a3a564ebe3bd79.js +1 -0
- package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +1 -0
- package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +1 -0
- package/assets/esri/core/workers/chunks/1f8c6a179e39fd4c5e6f.js +1 -0
- package/assets/esri/core/workers/chunks/2076fcbae63f1bfb7143.js +1 -0
- package/assets/esri/core/workers/chunks/{b2ae5fc4f787ea568b88.js → 2460f3b6ada6ae900dec.js} +1 -1
- package/assets/esri/core/workers/chunks/{99f0d896c17dd09cd285.js → 2629adf79e7fd9f25f07.js} +1 -1
- package/assets/esri/core/workers/chunks/281b89dbf5574fc642ae.js +1 -0
- package/assets/esri/core/workers/chunks/{4d539878bfbd7c549e60.js → 2c8fe9bc988c3c5760a5.js} +1 -1
- package/assets/esri/core/workers/chunks/2e899ef5881b4ec6fa55.js +1 -0
- package/assets/esri/core/workers/chunks/322d917e8cb398816a93.js +1 -0
- package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +1 -0
- package/assets/esri/core/workers/chunks/391e96192d1ec4e55ce2.js +1 -0
- package/assets/esri/core/workers/chunks/{1b28042fdf3f4dbc8ea5.js → 392b6382e06652dd4c80.js} +1 -1
- package/assets/esri/core/workers/chunks/3aa73119b055e05bbbeb.js +1 -0
- package/assets/esri/core/workers/chunks/3f343f792fd9f44d6f25.js +1 -0
- package/assets/esri/core/workers/chunks/422537fc3df707bb62c9.js +1 -0
- package/assets/esri/core/workers/chunks/{573dc3064e84ca86844d.js → 48fa8aed6c24877b44c4.js} +1 -1
- package/assets/esri/core/workers/chunks/{44b01d42d4ec72913229.js → 4954fd86b48cc68b737c.js} +1 -1
- package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +1 -0
- package/assets/esri/core/workers/chunks/4c76146014dc15143ba3.js +1 -0
- package/assets/esri/core/workers/chunks/52ea678ba1da0e349919.js +1 -0
- package/assets/esri/core/workers/chunks/56274b37ff74ca0d68a6.js +1 -0
- package/assets/esri/core/workers/chunks/{b9c177524b3e7de1ffd1.js → 5790d171072b3c7d108f.js} +1 -1
- package/assets/esri/core/workers/chunks/57b349d1dbc0bed75b79.js +1 -0
- package/assets/esri/core/workers/chunks/5948923e07bd1662c24a.js +1 -0
- package/assets/esri/core/workers/chunks/5bcb3240b3c005e5fe72.js +1 -0
- package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +1 -0
- package/assets/esri/core/workers/chunks/5ec98f4ddac707d0fbd1.js +1 -0
- package/assets/esri/core/workers/chunks/5ee497d5d7b0e580526a.js +1 -0
- package/assets/esri/core/workers/chunks/5f1dcb6556820cd0aa31.js +1 -0
- package/assets/esri/core/workers/chunks/601e697dc7414bda128a.js +1 -0
- package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +1 -0
- package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +1 -0
- package/assets/esri/core/workers/chunks/68a59ce98177d8513337.js +1 -0
- package/assets/esri/core/workers/chunks/69fd99b7c76e9992ccf3.js +1 -0
- package/assets/esri/core/workers/chunks/{9cdaba126ac7fa5f33f0.js → 6cd5e4380d29b9a3c344.js} +1 -1
- package/assets/esri/core/workers/chunks/6e6a3c5866e8d8820457.js +1 -0
- package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +1 -0
- package/assets/esri/core/workers/chunks/{7aa543a97f055cddea99.js → 7a5f5acfbd4ca1a5c1f3.js} +1 -1
- package/assets/esri/core/workers/chunks/{64276aacaafa4c8a15bd.js → 7dcf52d3db3903c8eb9f.js} +1 -1
- package/assets/esri/core/workers/chunks/8001b0e514bfffe9d7f8.js +1 -0
- package/assets/esri/core/workers/chunks/83b8fec1650e061aaa56.js +1 -0
- package/assets/esri/core/workers/chunks/83d00afae4406ec78bc9.js +1 -0
- package/assets/esri/core/workers/chunks/842db82733635dbf25cb.js +1 -0
- package/assets/esri/core/workers/chunks/{625d2663daa8e0cf64b0.js → 85b1f36790df95b17659.js} +1 -1
- package/assets/esri/core/workers/chunks/89820b200ee44e678af5.js +1 -0
- package/assets/esri/core/workers/chunks/8fa0a14165d43ffe87a5.js +1 -0
- package/assets/esri/core/workers/chunks/929c9b7cdab7c4ca3d87.js +1 -0
- package/assets/esri/core/workers/chunks/94515fb3ef38067eeadd.js +1 -0
- package/assets/esri/core/workers/chunks/{010a71c2aa1b7681e191.js → 9d11f84e6c893b9d0019.js} +1 -1
- package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +1 -0
- package/assets/esri/core/workers/chunks/a78757b9c7e8cbea08fa.js +1 -0
- package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +1 -0
- package/assets/esri/core/workers/chunks/aa04b90b82bf70caaae4.js +1 -0
- package/assets/esri/core/workers/chunks/aeaa1667c2d9f1b3366b.js +1 -0
- package/assets/esri/core/workers/chunks/b2d2de935487257c568b.js +1 -0
- package/assets/esri/core/workers/chunks/{a8b13fb804bb775e4967.js → b62e3dccd9f662c0afeb.js} +1 -1
- package/assets/esri/core/workers/chunks/b97953694f42bfec1b3c.js +1 -0
- package/assets/esri/core/workers/chunks/b9e9cb354822c6d995a4.js +1 -0
- package/assets/esri/core/workers/chunks/{4b69129c0557852d9b3d.js → ba5eb394f098968c22d2.js} +1 -1
- package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +1 -0
- package/assets/esri/core/workers/chunks/bac9fc90e6756e211160.js +1 -0
- package/assets/esri/core/workers/chunks/bf6dda4a2af14c4b7716.js +1 -0
- package/assets/esri/core/workers/chunks/bf97a933ea3b220115e1.js +1 -0
- package/assets/esri/core/workers/chunks/bfedd6ebff817c9b31c0.js +1 -0
- package/assets/esri/core/workers/chunks/c093dff4592832ac0973.js +1 -0
- package/assets/esri/core/workers/chunks/c1135cb02ec46c491459.js +1 -0
- package/assets/esri/core/workers/chunks/c2253a9f29c1aabb2b75.js +1 -0
- package/assets/esri/core/workers/chunks/c9cbf8135e95f0f42cd9.js +1 -0
- package/assets/esri/core/workers/chunks/{d39b7983b68d6e5b404d.js → cdbc005eebec1503b99d.js} +1 -1
- package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +1 -0
- package/assets/esri/core/workers/chunks/d07440469fe7d181c4fd.js +1 -0
- package/assets/esri/core/workers/chunks/d08efbc349dd9f999497.js +1 -0
- package/assets/esri/core/workers/chunks/d72488db62fcf39447b6.js +1 -0
- package/assets/esri/core/workers/chunks/d835b2a683fcd8aeeed8.js +1 -0
- package/assets/esri/core/workers/chunks/dbf192b4ce7e608610f6.js +1 -0
- package/assets/esri/core/workers/chunks/dd13772a5e2eccc6a2bc.js +1 -0
- package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +981 -0
- package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +1 -0
- package/assets/esri/core/workers/chunks/{22b09e276c9b9f22f0f8.js → dee9929d95e9fe26929c.js} +1 -1
- package/assets/esri/core/workers/chunks/{a7b1b75643ed31489495.js → e0c8d61c7a85ce15499a.js} +1 -1
- package/assets/esri/core/workers/chunks/e12d91ef44d6f879a02a.js +1 -0
- package/assets/esri/core/workers/chunks/{0ce1dc14280d6f188468.js → e4896cf85fb2da8a9cc7.js} +1 -1
- package/assets/esri/core/workers/chunks/e657ba0cab29f05d02da.js +1 -0
- package/assets/esri/core/workers/chunks/e8741bf421f80213f1d3.js +1 -0
- package/assets/esri/core/workers/chunks/e8e775758b79c5a084c8.js +1 -0
- package/assets/esri/core/workers/chunks/e93dfdede0532a89ffa5.js +1 -0
- package/assets/esri/core/workers/chunks/e9e5196b44b6923be1a3.js +1 -0
- package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +1 -0
- package/assets/esri/core/workers/chunks/{1305ef8717da6e902a55.js → ec10151a2a95e95a0bb5.js} +1 -1
- package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +1 -0
- package/assets/esri/core/workers/chunks/f2124f4d0f2b8a91f0ea.js +1 -0
- package/assets/esri/core/workers/chunks/f9ff3eaf4eb324429fbd.js +1 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/assets/esri/themes/base/_mixins.scss +4 -1
- package/assets/esri/themes/base/icons/style.scss +11 -2
- package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +13 -10
- package/assets/esri/themes/base/widgets/_CoordinateConversion.scss +4 -2
- package/assets/esri/themes/base/widgets/_Directions.scss +5 -3
- package/assets/esri/themes/base/widgets/_Editor.scss +5 -2
- package/assets/esri/themes/base/widgets/_ElevationProfile.scss +6 -4
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +6 -0
- package/assets/esri/themes/base/widgets/_ItemList.scss +1 -1
- package/assets/esri/themes/base/widgets/_LayerList.scss +13 -9
- package/assets/esri/themes/base/widgets/_Popup.scss +4 -2
- package/assets/esri/themes/base/widgets/_Print.scss +24 -11
- package/assets/esri/themes/base/widgets/_Search.scss +4 -2
- package/assets/esri/themes/base/widgets/_TableList.scss +9 -7
- package/assets/esri/themes/base/widgets/_Weather.scss +12 -0
- package/assets/esri/themes/base/widgets/_Widget.scss +18 -9
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/dark-blue/main.css +1 -1
- package/assets/esri/themes/dark-green/main.css +1 -1
- package/assets/esri/themes/dark-purple/main.css +1 -1
- package/assets/esri/themes/dark-red/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/themes/light-blue/main.css +1 -1
- package/assets/esri/themes/light-green/main.css +1 -1
- package/assets/esri/themes/light-purple/main.css +1 -1
- package/assets/esri/themes/light-red/main.css +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
- package/chunks/CloudsComposition.glsl.js +4 -4
- package/chunks/ComponentShader.glsl.js +19 -19
- package/chunks/Precipitation.glsl.js +91 -0
- package/chunks/Terrain.glsl.js +11 -11
- package/chunks/WaterSurface.glsl.js +21 -21
- package/chunks/pe.js +1 -1
- package/chunks/vec3.js +1 -1
- package/chunks/vxlLayer.js +1 -1
- package/core/accessorSupport/ensureType.js +1 -1
- package/core/accessorSupport/get.js +1 -1
- package/core/accessorSupport/read.js +1 -1
- package/core/accessorSupport/set.js +1 -1
- package/core/accessorSupport/write.js +1 -1
- package/core/clock.js +1 -1
- package/core/has.js +1 -1
- package/core/jsonMap.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/reactiveUtils.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/form/ExpressionInfo.js +1 -1
- package/geometry/pe.js +1 -1
- package/geometry/support/axisAngleDegrees.js +1 -1
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/interfaces.d.ts +343 -106
- package/layers/RouteLayer.js +1 -1
- package/layers/VoxelLayer.js +1 -1
- package/layers/VoxelWasmPerScene.js +1 -1
- package/layers/support/RasterWorker.js +1 -1
- package/layers/support/rasterDatasets/BaseRaster.js +1 -1
- package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
- package/libs/vxl/enums.js +1 -1
- package/package.json +2 -2
- package/popup/content/AttachmentsContent.js +1 -1
- package/popup/content/support/mediaInfoTypes.js +1 -1
- package/portal/schemas/buildingSceneLayerItem.js +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/integratedMeshLayerItem.js +1 -1
- package/portal/schemas/pointCloudLayerItem.js +1 -1
- package/portal/schemas/sceneLayerItem.js +1 -1
- package/portal/schemas/webScene.js +1 -1
- package/rest/find.js +1 -1
- package/rest/geometryService/generalize.js +1 -1
- package/rest/geometryService/lengths.js +1 -1
- package/rest/geometryService/offset.js +1 -1
- package/rest/geometryService/relation.js +1 -1
- package/rest/geometryService/trimExtend.js +1 -1
- package/rest/identify.js +1 -1
- package/{tasks → rest}/operations/find.js +0 -0
- package/{tasks → rest}/operations/generalize.js +0 -0
- package/rest/operations/identify.js +5 -0
- package/{tasks → rest}/operations/lengths.js +0 -0
- package/{tasks → rest}/operations/offset.js +0 -0
- package/{tasks → rest}/operations/relation.js +0 -0
- package/{tasks → rest}/operations/trimExtend.js +0 -0
- package/{tasks → rest}/operations/urlUtils.js +0 -0
- package/rest/print.js +1 -1
- package/rest/query/operations/query.js +1 -1
- package/rest/query/operations/queryAttachments.js +1 -1
- package/rest/query/operations/queryRelatedRecords.js +1 -1
- package/rest/query/operations/queryTopFeatures.js +1 -1
- package/rest/route/utils.js +1 -1
- package/rest/support/NetworkServiceDescription.js +1 -1
- package/rest/support/RouteInfo.js +1 -1
- package/rest/support/RouteParameters.js +1 -1
- package/rest/support/RouteSettings.js +5 -0
- package/rest/support/Stop.js +1 -1
- package/rest/support/networkEnums.js +1 -1
- package/support/arcadeOnDemand.js +1 -1
- package/support/featureFlags.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/Font.js +1 -1
- package/symbols/LabelSymbol3D.js +1 -1
- package/symbols/PointSymbol3D.js +1 -1
- package/symbols/TextSymbol.js +1 -1
- package/symbols/TextSymbol3DLayer.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/CIMSymbolRasterizer.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
- package/symbols/support/Symbol3DVerticalOffset.js +1 -1
- package/symbols/support/cimSymbolUtils.js +1 -1
- package/symbols/support/previewCIMSymbol.js +1 -1
- package/symbols/support/previewSymbol2D.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/symbols/support/previewWebStyleSymbol.js +1 -1
- package/symbols/support/svgUtils.js +1 -1
- package/symbols/support/textUtils.js +5 -0
- package/symbols.js +1 -1
- package/views/2d/MapViewConstraints.js +1 -1
- package/views/2d/engine/webgl/brushes/raster/BrushRasterBitmap.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/features/sources/BaseFeatureSource.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/support/engineHelpers.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/environment/CloudsComposition.glsl.js +1 -1
- package/views/3d/environment/CloudsComposition.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/CloudsPresets.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/Precipitation.glsl.js +5 -0
- package/views/3d/environment/Precipitation.js +5 -0
- package/views/3d/environment/PrecipitationTechnique.js +5 -0
- package/views/3d/environment/RainyWeather.js +1 -1
- package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
- package/views/3d/environment/SnowyWeather.js +5 -0
- package/views/3d/environment/weather.js +1 -1
- package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
- package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DElevationAlignment.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +5 -0
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +5 -0
- package/views/3d/layers/graphics/QueryEngine.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +21 -13
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +12 -14
- package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
- package/views/3d/webgl-engine/parts/Model.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
- package/views/MapView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/View.js +1 -1
- package/views/input/recognizers/DoubleTapDrag.js +1 -1
- package/views/input/recognizers/ImmediateDoubleClick.js +1 -1
- package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
- package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
- package/views/interactive/dragEventPipeline.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/support/projectionUtils.js +5 -0
- package/views/webgl/ContextState.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/Renderbuffer.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/Util.js +1 -1
- package/views/webgl/enums.js +1 -1
- package/views/webgl/rasterUtils.js +1 -1
- package/views/webgl/testFloatBufferBlend.js +1 -1
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
- package/widgets/Attachments.js +1 -1
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
- package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
- package/widgets/Feature/FeatureExpression.js +1 -1
- package/widgets/Feature/FeatureMedia/FeatureMediaViewModel.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/FeatureForm/InputField.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/LayerList/LayerListViewModel.js +1 -1
- package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
- package/widgets/Popup/PopupViewModel.js +1 -1
- package/widgets/Popup/actionUtils.js +1 -1
- package/widgets/Slice/SliceViewModel.js +1 -1
- package/widgets/Slider/SliderViewModel.js +1 -1
- package/widgets/Slider.js +1 -1
- package/widgets/Weather/WeatherViewModel.js +1 -1
- package/widgets/Weather/css.js +1 -1
- package/widgets/Weather/enums.js +5 -0
- package/widgets/Weather.js +1 -1
- package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
- package/widgets/support/InteractiveToolViewModel.js +1 -1
- package/widgets/support/geolocationUtils.js +1 -1
- package/assets/components/assets/calcite-icon/checkSquareF16.json +0 -1
- package/assets/components/assets/calcite-icon/checkSquareF24.json +0 -1
- package/assets/components/assets/calcite-icon/checkSquareF32.json +0 -1
- package/assets/components/assets/calcite-icon/lineSolid4.json +0 -1
- package/assets/components/assets/calcite-icon/squareF16.json +0 -1
- package/assets/components/assets/calcite-icon/squareF24.json +0 -1
- package/assets/components/assets/calcite-icon/squareF32.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagon16.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagon24.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagon32.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagonF16.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagonF24.json +0 -1
- package/assets/components/assets/calcite-icon/xHexagonF32.json +0 -1
- package/assets/components/assets/calcite-icon/xOctagonF16.json +0 -1
- package/assets/components/assets/calcite-icon/xOctagonF24.json +0 -1
- package/assets/components/assets/calcite-icon/xOctagonF32.json +0 -1
- package/assets/esri/core/workers/chunks/01ef8de7f76a8c61b464.js +0 -1
- package/assets/esri/core/workers/chunks/05db312a0ca6bd3f014a.js +0 -1
- package/assets/esri/core/workers/chunks/09da224052976e290828.js +0 -1
- package/assets/esri/core/workers/chunks/0c3e3a5baf54bd5e210c.js +0 -1
- package/assets/esri/core/workers/chunks/0f254c3e91e8fee55f28.js +0 -1
- package/assets/esri/core/workers/chunks/14bef72154b3a19561a7.js +0 -1
- package/assets/esri/core/workers/chunks/18668dc45eb9e35530df.js +0 -1
- package/assets/esri/core/workers/chunks/1fd48459afb58a6cf14f.js +0 -1
- package/assets/esri/core/workers/chunks/20411bb8e04703962ce6.js +0 -1
- package/assets/esri/core/workers/chunks/208a7e24e19fc5633dd7.js +0 -1
- package/assets/esri/core/workers/chunks/21a77eed1a4ef5b0ff08.js +0 -1
- package/assets/esri/core/workers/chunks/23745a5ab47c840dc452.js +0 -1
- package/assets/esri/core/workers/chunks/2416f8bf8bbd2ec786ab.js +0 -1
- package/assets/esri/core/workers/chunks/25a3e9bc0b4c7e0d3165.js +0 -1
- package/assets/esri/core/workers/chunks/2e445a8735ea2adb641a.js +0 -1
- package/assets/esri/core/workers/chunks/32f8c4af7e70ebdcb19e.js +0 -1
- package/assets/esri/core/workers/chunks/3564e14010953def6df9.js +0 -1
- package/assets/esri/core/workers/chunks/36a3f6fb4d1d18fcb642.js +0 -1
- package/assets/esri/core/workers/chunks/390d9021169e65c10eb8.js +0 -1
- package/assets/esri/core/workers/chunks/3a9740dccda6a733313c.js +0 -1
- package/assets/esri/core/workers/chunks/3aa4194dc5497c57647f.js +0 -1
- package/assets/esri/core/workers/chunks/403c7d64f12f00330d88.js +0 -1
- package/assets/esri/core/workers/chunks/43cdff2418325e163420.js +0 -1
- package/assets/esri/core/workers/chunks/4409d77c9734de4e82a7.js +0 -1
- package/assets/esri/core/workers/chunks/47395d225229d237f0ac.js +0 -1
- package/assets/esri/core/workers/chunks/4bfbf5a34c9207fdcf44.js +0 -1
- package/assets/esri/core/workers/chunks/5d4863a92b03bebc1b54.js +0 -1
- package/assets/esri/core/workers/chunks/60371c0f750cde87656d.js +0 -1
- package/assets/esri/core/workers/chunks/615aa2d3ecafe30c80c0.js +0 -1
- package/assets/esri/core/workers/chunks/618076e6de605873e433.js +0 -1
- package/assets/esri/core/workers/chunks/631c5b514bb73782c570.js +0 -1
- package/assets/esri/core/workers/chunks/634b5ccd7a3ac67f855d.js +0 -1
- package/assets/esri/core/workers/chunks/662d13f68cf3ec92439b.js +0 -1
- package/assets/esri/core/workers/chunks/67162b3e2cc1b5dc6818.js +0 -1
- package/assets/esri/core/workers/chunks/6c1e92ff4c732dfda756.js +0 -1
- package/assets/esri/core/workers/chunks/722a10c65456844d72b9.js +0 -1
- package/assets/esri/core/workers/chunks/75d53b28afe732c459b2.js +0 -1
- package/assets/esri/core/workers/chunks/76eef4799f6c5fff7e2d.js +0 -1
- package/assets/esri/core/workers/chunks/7e596478507466953e65.js +0 -1
- package/assets/esri/core/workers/chunks/85e27fd949475f9a6bbc.js +0 -1
- package/assets/esri/core/workers/chunks/8967288145f8fbd20e7d.js +0 -1
- package/assets/esri/core/workers/chunks/8a250ec51097f16feb66.js +0 -1
- package/assets/esri/core/workers/chunks/8b6ab6202a40fe622833.js +0 -1
- package/assets/esri/core/workers/chunks/8fdd5bca3716816d359b.js +0 -1
- package/assets/esri/core/workers/chunks/96ab518eb6ba11333dee.js +0 -1
- package/assets/esri/core/workers/chunks/99a777693e4539f0b03b.js +0 -1
- package/assets/esri/core/workers/chunks/9d9dffc8884d66a258e4.js +0 -1
- package/assets/esri/core/workers/chunks/a28b53c61bddefb6616e.js +0 -1
- package/assets/esri/core/workers/chunks/a6ff3db3493543df81bc.js +0 -1
- package/assets/esri/core/workers/chunks/a8c13529367c037cdd94.js +0 -1
- package/assets/esri/core/workers/chunks/a960074644c3722be71e.js +0 -1
- package/assets/esri/core/workers/chunks/ac8dca61ade28c542ae2.js +0 -1
- package/assets/esri/core/workers/chunks/ad081d8e49e7f90c3c26.js +0 -1
- package/assets/esri/core/workers/chunks/b10fcbe1393c812fc219.js +0 -1
- package/assets/esri/core/workers/chunks/b9de831ac379cf1d2969.js +0 -1
- package/assets/esri/core/workers/chunks/ba615f118a3a8970ef25.js +0 -1
- package/assets/esri/core/workers/chunks/ba6654a885be4b7a43f0.js +0 -1
- package/assets/esri/core/workers/chunks/be2b7cce79fd41627931.js +0 -1
- package/assets/esri/core/workers/chunks/c11474b702dfb94e8e87.js +0 -1
- package/assets/esri/core/workers/chunks/c13dfdd548dcb1bdb294.js +0 -1
- package/assets/esri/core/workers/chunks/c3eca92d02958732e141.js +0 -1
- package/assets/esri/core/workers/chunks/c6bd943fe8fd13bb4806.js +0 -1
- package/assets/esri/core/workers/chunks/c6f94b92e866b881d9b9.js +0 -1
- package/assets/esri/core/workers/chunks/c8f976e53e232e8da9cc.js +0 -981
- package/assets/esri/core/workers/chunks/cb68db7169b9dfd1c3ff.js +0 -1
- package/assets/esri/core/workers/chunks/cc96608b2802fbfe7a08.js +0 -1
- package/assets/esri/core/workers/chunks/cd02fe27eb07681cb366.js +0 -1
- package/assets/esri/core/workers/chunks/cfbffa429d88e7709c3f.js +0 -1
- package/assets/esri/core/workers/chunks/d24c4fbc567486b1188f.js +0 -1
- package/assets/esri/core/workers/chunks/d52108864136c5a8a618.js +0 -1
- package/assets/esri/core/workers/chunks/da1c2873bdbc0956dca0.js +0 -1
- package/assets/esri/core/workers/chunks/dd433c160f7a0c120b82.js +0 -1
- package/assets/esri/core/workers/chunks/de03439ca2c9782bf325.js +0 -1
- package/assets/esri/core/workers/chunks/e2d68bcd2f99a65387bf.js +0 -1
- package/assets/esri/core/workers/chunks/e6df9839b551569fbc62.js +0 -1
- package/assets/esri/core/workers/chunks/ed0297fc61014e848c18.js +0 -1
- package/assets/esri/core/workers/chunks/ef8b75b92cf549e0507e.js +0 -1
- package/assets/esri/core/workers/chunks/f467c8f1fce22f6f599c.js +0 -1
- package/assets/esri/core/workers/chunks/f678293de9a6d8f5b5db.js +0 -1
- package/assets/esri/core/workers/chunks/f7fc4c993536e62f7f3e.js +0 -1
- package/assets/esri/core/workers/chunks/fd3e5d823dc7917f4b8f.js +0 -1
- package/assets/esri/core/workers/chunks/ffaf091c6023225cf5aa.js +0 -1
- package/symbols/support/constants.js +0 -5
- package/tasks/operations/identify.js +0 -5
- package/views/3d/layers/graphics/Graphics3DFeatureLikeLayerView.js +0 -5
- package/views/3d/layers/graphics/Graphics3DGraphicLikeLayerView.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[368,4889],{28263:(e,t,r)=>{r.d(t,{E:()=>s});class i{constructor(e={}){this._options=e}toQueryParams(e){if(!e)return null;const t=e.toJSON(),r={};return Object.keys(t).forEach((e=>{const i=this._options[e];if(i){const s="boolean"!=typeof i&&i.name?i.name:e,o="boolean"!=typeof i&&i.getter?i.getter(t):t[e];null!=o&&(r[s]=(e=>{if(!Array.isArray(e))return!1;const[t]=e;return"number"==typeof t||"string"==typeof t})(o)?o.join(","):"object"==typeof o?JSON.stringify(o):o)}else r[e]=t[e]}),this),r}}function s(e){return new i(e)}},93924:(e,t,r)=>{r.d(t,{et:()=>h,ef:()=>v,bI:()=>w,Wf:()=>g});var i=r(3172),s=r(20102),o=r(70586),n=r(78286),a=r(17452),l=r(11282),u=r(43697),p=r(96674),c=r(5600),d=(r(67676),r(80442),r(75215),r(52011)),m=r(49827);let y=class extends p.wq{constructor(e){super(e),this.currentVersion=null,this.defaultTravelMode=null,this.directionsLanguage=null,this.directionsSupportedLanguages=null,this.directionsTimeAttribute=null,this.hasZ=null,this.impedance=null,this.networkDataset=null,this.supportedTravelModes=null}};(0,u._)([(0,c.Cb)()],y.prototype,"currentVersion",void 0),(0,u._)([(0,c.Cb)()],y.prototype,"defaultTravelMode",void 0),(0,u._)([(0,c.Cb)()],y.prototype,"directionsLanguage",void 0),(0,u._)([(0,c.Cb)()],y.prototype,"directionsSupportedLanguages",void 0),(0,u._)([(0,c.Cb)()],y.prototype,"directionsTimeAttribute",void 0),(0,u._)([(0,c.Cb)()],y.prototype,"hasZ",void 0),(0,u._)([(0,c.Cb)()],y.prototype,"impedance",void 0),(0,u._)([(0,c.Cb)()],y.prototype,"networkDataset",void 0),(0,u._)([(0,c.Cb)({type:[m.Z]})],y.prototype,"supportedTravelModes",void 0),y=(0,u._)([(0,d.j)("esri.rest.support.NetworkServiceDescription")],y);const f=y;function h(e,t,r,i){i[r]=[t.length,t.length+e.length],e.forEach((e=>{t.push(e.geometry)}))}function v(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)e.z=void 0}console.log("The remote Network Analysis service is powered by a network dataset which is not Z-aware.\nZ-coordinates of the input geometry are ignored.")}function g(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)if((0,o.pC)(e)&&e.hasZ)return!0}return!1}async function w(e,t,r){if(!e)throw new s.Z("network-service:missing-url","Url to Network service is missing");const o=(0,l.lA)({f:"json",token:t},r),{data:u}=await(0,i.default)(e,o);u.supportedTravelModes||(u.supportedTravelModes=[]);for(let e=0;e<u.supportedTravelModes.length;e++)u.supportedTravelModes[e].id||(u.supportedTravelModes[e].id=u.supportedTravelModes[e].itemId);const p=u.currentVersion>=10.4?async function(e,t,r){try{const s=(0,l.lA)({f:"json",token:t},r),o=(0,a.Qj)(e)+"/retrieveTravelModes",{data:{supportedTravelModes:n,defaultTravelMode:u}}=await(0,i.default)(o,s);return{supportedTravelModes:n,defaultTravelMode:u}}catch(e){throw new s.Z("network-service:retrieveTravelModes","Could not get to the NAServer's retrieveTravelModes.",{error:e})}}(e,t,r):async function(e,t){var r,s;const o=(0,l.lA)({f:"json"},t),{data:u}=await(0,i.default)(e.replace(/\/rest\/.*$/i,"/info"),o);if(!u||!u.owningSystemUrl)return{supportedTravelModes:[],defaultTravelMode:null};const{owningSystemUrl:p}=u,c=(0,a.Qj)(p)+"/sharing/rest/portals/self",{data:d}=await(0,i.default)(c,o),m=(0,n.hS)("helperServices.routingUtilities.url",d);if(!m)return{supportedTravelModes:[],defaultTravelMode:null};const y=(0,l.en)(p),f=/\/solve$/i.test(y.path)?"Route":/\/solveclosestfacility$/i.test(y.path)?"ClosestFacility":"ServiceAreas",h=(0,l.lA)({f:"json",serviceName:f},t),v=(0,a.Qj)(m)+"/GetTravelModes/execute",g=await(0,i.default)(v,h),w=[];let b=null;if(null!=g&&null!=(r=g.data)&&null!=(s=r.results)&&s.length){const e=g.data.results;for(const t of e){var T;if("supportedTravelModes"===t.paramName){if(null!=(T=t.value)&&T.features)for(const{attributes:e}of t.value.features)if(e){const t=JSON.parse(e.TravelMode);w.push(t)}}else"defaultTravelMode"===t.paramName&&(b=t.value)}}return{supportedTravelModes:w,defaultTravelMode:b}}(e,r),{defaultTravelMode:c,supportedTravelModes:d}=await p;return u.defaultTravelMode=c,u.supportedTravelModes=d,f.fromJSON(u)}},95642:(e,t,r)=>{r.d(t,{Z:()=>v});var i=r(43697),s=(r(66577),r(70586)),o=r(5600),n=(r(67676),r(80442),r(75215),r(71715)),a=r(52011),l=r(1692);let u=class extends l.Z{};(0,i._)([(0,o.Cb)()],u.prototype,"events",void 0),(0,i._)([(0,o.Cb)()],u.prototype,"strings",void 0),u=(0,i._)([(0,a.j)("esri.rest.support.DirectionsFeature")],u);const p=u;var c=r(74889),d=r(6570),m=r(82971),y=r(58901),f=r(13473);let h=class extends c.default{constructor(e){super(e),this.extent=null,this.features=null,this.geometryType="polyline",this.routeId=null,this.routeName=null,this.totalDriveTime=null,this.totalLength=null,this.totalTime=null}readFeatures(e,t){var r;if(!e)return[];const i=null!=(r=t.summary.envelope.spatialReference)?r:t.spatialReference,s=i&&m.Z.fromJSON(i);return e.map((e=>{var t,r;const i=this._decompressGeometry(e.compressedGeometry),o=new y.Z({...i,spatialReference:s}),n=null!=(t=null==(r=e.events)?void 0:r.map((e=>{const{arriveTimeUTC:t,ETA:r,point:{x:i,y:o,z:n},strings:a}=e;return new p({geometry:new f.Z({x:i,y:o,z:n,hasZ:void 0!==n,spatialReference:s}),attributes:{ETA:r,arriveTimeUTC:t},strings:a})})))?t:[];return new p({attributes:e.attributes,events:n,geometry:o,strings:e.strings})}))}get mergedGeometry(){if(!this.features)return null;const e=this.features.map((({geometry:e})=>(0,s.Wg)(e))),t=this.get("extent.spatialReference");return this._mergePolylinesToSinglePath(e,t)}get strings(){return this.features.map((({strings:e})=>e))}_decompressGeometry(e){let t=0,r=0,i=0,s=0;const o=[];let n,a,l,u,p,c,d,m,y=0,f=0,h=0;if(p=e.match(/((\+|\-)[^\+\-\|]+|\|)/g),p||(p=[]),0===parseInt(p[y],32)){y=2;const e=parseInt(p[y],32);y++,c=parseInt(p[y],32),y++,1&e&&(f=p.indexOf("|")+1,d=parseInt(p[f],32),f++),2&e&&(h=p.indexOf("|",f)+1,m=parseInt(p[h],32),h++)}else c=parseInt(p[y],32),y++;for(;y<p.length&&"|"!==p[y];){n=parseInt(p[y],32)+t,y++,t=n,a=parseInt(p[y],32)+r,y++,r=a;const e=[n/c,a/c];f&&(u=parseInt(p[f],32)+i,f++,i=u,e.push(u/d)),h&&(l=parseInt(p[h],32)+s,h++,s=l,e.push(l/m)),o.push(e)}return{paths:[o],hasZ:f>0,hasM:h>0}}_mergePolylinesToSinglePath(e,t){if(0===e.length)return new y.Z({spatialReference:t});const r=[];for(const t of e)for(const e of t.paths)r.push(...e);const i=[];r.forEach(((e,t)=>{0!==t&&e[0]===r[t-1][0]&&e[1]===r[t-1][1]||i.push(e)}));const{hasM:s,hasZ:o}=e[0];return new y.Z({hasM:s,hasZ:o,paths:[i],spatialReference:t})}};(0,i._)([(0,o.Cb)({type:d.Z,json:{read:{source:"summary.envelope"}}})],h.prototype,"extent",void 0),(0,i._)([(0,o.Cb)()],h.prototype,"features",void 0),(0,i._)([(0,n.r)("features")],h.prototype,"readFeatures",null),(0,i._)([(0,o.Cb)()],h.prototype,"geometryType",void 0),(0,i._)([(0,o.Cb)({readOnly:!0})],h.prototype,"mergedGeometry",null),(0,i._)([(0,o.Cb)()],h.prototype,"routeId",void 0),(0,i._)([(0,o.Cb)()],h.prototype,"routeName",void 0),(0,i._)([(0,o.Cb)({value:null,readOnly:!0})],h.prototype,"strings",null),(0,i._)([(0,o.Cb)({json:{read:{source:"summary.totalDriveTime"}}})],h.prototype,"totalDriveTime",void 0),(0,i._)([(0,o.Cb)({json:{read:{source:"summary.totalLength"}}})],h.prototype,"totalLength",void 0),(0,i._)([(0,o.Cb)({json:{read:{source:"summary.totalTime"}}})],h.prototype,"totalTime",void 0),h=(0,i._)([(0,a.j)("esri.rest.support.DirectionsFeatureSet")],h);const v=h},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var i,s=r(43697),o=r(66577),n=r(1692),a=r(35454),l=r(96674),u=r(22974),p=r(70586),c=r(5600),d=(r(75215),r(71715)),m=r(52011),y=r(30556),f=r(82971),h=r(33955),v=r(1231);const g=new a.Xn({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=f.Z.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],o=n.Z.fromJSON(s),a=s.geometry&&s.geometry.spatialReference;(0,p.pC)(o.geometry)&&!a&&(o.geometry.spatialReference=r),i.push(o)}return i}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:s}=this;if(s)for(const e of s)if(e&&(0,p.pC)(e.geometry))return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,h.im)(e);return!r&&t.spatialReference&&(i.spatialReference=f.Z.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,p.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e&&e[r];i.geometry=t&&t.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,s]}=e,o=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=o.length;e<t;e++)n((0,p.Wg)(o[e].geometry))||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,s],scale:[o,n]}=r,a=this._getHydrationFunction(e,(e=>e*o+i),(e=>s-e*n));for(const{geometry:e}of t)(0,p.pC)(e)&&a(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,s;const o=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];if(n>0){const e=t(a[0]),n=r(a[1]);e===i&&n===s||(o.push([e-i,n-s]),i=e,s=n)}else i=t(a[0]),s=r(a[1]),o.push([i,s])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,h.oU)(e)?e.rings:e.paths,s=[];for(let e=0,o=i.length;e<o;e++){const o=i[e],n=this._quantizePoints(o,t,r);n&&s.push(n)}return s.length>0?((0,h.oU)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const i=(0,h.oU)(e)?e.rings:e.paths;let s,o;for(let e=0,n=i.length;e<n;e++){const n=i[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],o+=i[1]):(s=i[0],o=i[1]),i[0]=t(s),i[1]=r(o)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const i=e.points;let s,o;for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(s+=n[0],o+=n[1]):(s=n[0],o=n[1]),n[0]=t(s),n[1]=r(o)}}:void 0}};(0,s._)([(0,c.Cb)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,c.Cb)({type:[n.Z],json:{write:!0}})],w.prototype,"features",void 0),(0,s._)([(0,d.r)("features")],w.prototype,"readFeatures",null),(0,s._)([(0,c.Cb)({type:[v.Z],json:{write:!0}})],w.prototype,"fields",void 0),(0,s._)([(0,c.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,s._)([(0,y.c)("geometryType")],w.prototype,"writeGeometryType",null),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,s._)([(0,c.Cb)({types:o.qM,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,s._)([(0,d.r)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,s._)([(0,c.Cb)({type:f.Z,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,s._)([(0,y.c)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,s._)([(0,c.Cb)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,s._)([(0,m.j)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const b=w},79166:(e,t,r)=>{r.d(t,{Z:()=>p});var i=r(43697),s=r(35454),o=r(5600),n=(r(67676),r(80442),r(75215),r(52011)),a=r(51623);const l=new s.Xn({0:"informative",1:"process-definition",2:"process-start",3:"process-stop",50:"warning",100:"error",101:"empty",200:"abort"});let u=class extends a.Z{constructor(e){super(e),this.type=null}};(0,i._)([(0,o.Cb)({type:String,json:{read:l.read,write:l.write}})],u.prototype,"type",void 0),u=(0,i._)([(0,n.j)("esri.rest.support.NAMessage")],u);const p=u},49827:(e,t,r)=>{r.d(t,{Z:()=>d});var i,s=r(43697),o=r(96674),n=r(22974),a=r(5600),l=(r(75215),r(36030)),u=r(52011),p=r(49352);let c=i=class extends o.wq{constructor(e){super(e),this.attributeParameterValues=null,this.description=null,this.distanceAttributeName=null,this.id=null,this.impedanceAttributeName=null,this.name=null,this.restrictionAttributeNames=null,this.simplificationTolerance=null,this.simplificationToleranceUnits=null,this.timeAttributeName=null,this.type=null,this.useHierarchy=null,this.uturnAtJunctions=null}clone(){return new i((0,n.d9)({attributeParameterValues:this.attributeParameterValues,description:this.description,distanceAttributeName:this.distanceAttributeName,id:this.id,impedanceAttributeName:this.impedanceAttributeName,name:this.name,restrictionAttributeNames:this.restrictionAttributeNames,simplificationTolerance:this.simplificationTolerance,simplificationToleranceUnits:this.simplificationToleranceUnits,timeAttributeName:this.timeAttributeName,type:this.type,useHierarchy:this.useHierarchy,uturnAtJunctions:this.uturnAtJunctions}))}};(0,s._)([(0,a.Cb)({type:[Object],json:{write:!0}})],c.prototype,"attributeParameterValues",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"distanceAttributeName",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"id",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"impedanceAttributeName",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],c.prototype,"restrictionAttributeNames",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],c.prototype,"simplificationTolerance",void 0),(0,s._)([(0,l.J)(p.q$)],c.prototype,"simplificationToleranceUnits",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"timeAttributeName",void 0),(0,s._)([(0,l.J)(p.DJ)],c.prototype,"type",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"useHierarchy",void 0),(0,s._)([(0,l.J)(p.ip)],c.prototype,"uturnAtJunctions",void 0),c=i=(0,s._)([(0,u.j)("esri.rest.support.TravelMode")],c);const d=c},49352:(e,t,r)=>{r.d(t,{oi:()=>y,W7:()=>p,td:()=>v,cW:()=>h,GX:()=>o,$7:()=>n,Dd:()=>f,q$:()=>s,yP:()=>c,no:()=>a,ip:()=>l,BW:()=>m,SS:()=>d,DJ:()=>u});var i=r(35454);const s=(0,i.wY)()({esriCentimeters:"centimeters",esriDecimalDegrees:"decimal-degrees",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriPoints:"points",esriYards:"yards"}),o=(0,i.wY)()({esriNAUCentimeters:"centimeters",esriNAUDecimalDegrees:"decimal-degrees",esriNAUDecimeters:"decimeters",esriNAUFeet:"feet",esriNAUInches:"inches",esriNAUKilometers:"kilometers",esriNAUMeters:"meters",esriNAUMiles:"miles",esriNAUMillimeters:"millimeters",esriNAUNauticalMiles:"nautical-miles",esriNAUPoints:"points",esriNAUYards:"yards"}),n=(0,i.wY)()({esriDOTComplete:"complete",esriDOTCompleteNoEvents:"complete-no-events",esriDOTFeatureSets:"featuresets",esriDOTInstructionsOnly:"instructions-only",esriDOTStandard:"standard",esriDOTSummaryOnly:"summary-only"}),a=(0,i.wY)()({esriNAOutputLineNone:"none",esriNAOutputLineStraight:"straight",esriNAOutputLineTrueShape:"true-shape",esriNAOutputLineTrueShapeWithMeasure:"true-shape-with-measure"}),l=((0,i.wY)()({esriNAOutputPolygonNone:"none",esriNAOutputPolygonSimplified:"simplified",esriNAOutputPolygonDetailed:"detailed"}),(0,i.wY)()({esriNFSBAllowBacktrack:"allow-backtrack",esriNFSBAtDeadEndsOnly:"at-dead-ends-only",esriNFSBNoBacktrack:"no-backtrack",esriNFSBAtDeadEndsAndIntersections:"at-dead-ends-and-intersections"})),u=((0,i.wY)()({esriNATravelDirectionFromFacility:"from-facility",esriNATravelDirectionToFacility:"to-facility"}),(0,i.wY)()({esriNATimeOfDayNotUsed:"not-used",esriNATimeOfDayUseAsStartTime:"start",esriNATimeOfDayUseAsEndTime:"end"}),(0,i.wY)()({AUTOMOBILE:"automobile",TRUCK:"truck",WALK:"walk",OTHER:"other"})),p=(0,i.wY)()({0:"either-side-of-vehicle",1:"right-side-of-vehicle",2:"left-side-of-vehicle",3:"no-u-turn"},{useNumericKeys:!0}),c=(0,i.wY)()({0:"stop",1:"waypoint",2:"break"},{useNumericKeys:!0}),d=(0,i.wY)()({0:"ok",1:"not-located",2:"network-element-not-located",3:"element-not-traversable",4:"invalid-field-values",5:"not-reached",6:"time-window-violation",7:"not-located-on-closest"},{useNumericKeys:!0}),m=(0,i.wY)()({1:"right",2:"left"},{useNumericKeys:!0}),y=(0,i.wY)()({0:"restriction",1:"added-cost"},{useNumericKeys:!0}),f=(0,i.wY)()({0:"permit",1:"restrict"},{useNumericKeys:!0}),h=(0,i.wY)()({1:"header",50:"arrive",51:"depart",52:"straight",100:"on-ferry",101:"off-ferry",102:"central-fork",103:"roundabout",104:"u-turn",150:"door",151:"stairs",152:"elevator",153:"escalator",154:"pedestrian-ramp",200:"left-fork",201:"left-ramp",202:"clockwise-roundabout",203:"left-handed-u-turn",204:"bear-left",205:"left-turn",206:"sharp-left",207:"left-turn-and-immediate-left-turn",208:"left-turn-and-immediate-right-turn",300:"right-fork",301:"right-ramp",302:"counter-clockwise-roundabout",303:"right-handed-u-turn",304:"bear-right",305:"right-turn",306:"sharp-right",307:"right-turn-and-immediate-left-turn",308:"right-turn-and-immediate-right-turn",400:"up-elevator",401:"up-escalator",402:"up-stairs",500:"down-elevator",501:"down-escalator",502:"down-stairs",1e3:"general-event",1001:"landmark",1002:"time-zone-change",1003:"traffic-event",1004:"scaled-cost-barrier-event",1005:"boundary-crossing",1006:"restriction-violation"},{useNumericKeys:!0}),v=(0,i.wY)()({0:"unknown",1:"segment",2:"maneuver-segment",3:"restriction-violation",4:"scaled-cost-barrier",5:"heavy-traffic",6:"slow-traffic",7:"moderate-traffic"},{useNumericKeys:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3136],{28263:(e,t,r)=>{r.d(t,{E:()=>s});class i{constructor(e={}){this._options=e}toQueryParams(e){if(!e)return null;const t=e.toJSON(),r={};return Object.keys(t).forEach((e=>{const i=this._options[e];if(i){const s="boolean"!=typeof i&&i.name?i.name:e,o="boolean"!=typeof i&&i.getter?i.getter(t):t[e];null!=o&&(r[s]=(e=>{if(!Array.isArray(e))return!1;const[t]=e;return"number"==typeof t||"string"==typeof t})(o)?o.join(","):"object"==typeof o?JSON.stringify(o):o)}else r[e]=t[e]}),this),r}}function s(e){return new i(e)}},93924:(e,t,r)=>{r.d(t,{et:()=>h,ef:()=>v,bI:()=>b,Wf:()=>g});var i=r(3172),s=r(20102),o=r(70586),n=r(78286),a=r(17452),l=r(11282),u=r(43697),p=r(96674),c=r(5600),d=(r(67676),r(80442),r(75215),r(52011)),y=r(49827);let m=class extends p.wq{constructor(e){super(e),this.currentVersion=null,this.defaultTravelMode=null,this.directionsLanguage=null,this.directionsSupportedLanguages=null,this.directionsTimeAttribute=null,this.hasZ=null,this.impedance=null,this.networkDataset=null,this.supportedTravelModes=null}};(0,u._)([(0,c.Cb)()],m.prototype,"currentVersion",void 0),(0,u._)([(0,c.Cb)()],m.prototype,"defaultTravelMode",void 0),(0,u._)([(0,c.Cb)()],m.prototype,"directionsLanguage",void 0),(0,u._)([(0,c.Cb)()],m.prototype,"directionsSupportedLanguages",void 0),(0,u._)([(0,c.Cb)()],m.prototype,"directionsTimeAttribute",void 0),(0,u._)([(0,c.Cb)()],m.prototype,"hasZ",void 0),(0,u._)([(0,c.Cb)()],m.prototype,"impedance",void 0),(0,u._)([(0,c.Cb)()],m.prototype,"networkDataset",void 0),(0,u._)([(0,c.Cb)({type:[y.Z]})],m.prototype,"supportedTravelModes",void 0),m=(0,u._)([(0,d.j)("esri.rest.support.NetworkServiceDescription")],m);const f=m;function h(e,t,r,i){i[r]=[t.length,t.length+e.length],e.forEach((e=>{t.push(e.geometry)}))}function v(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)e.z=void 0}console.log("The remote Network Analysis service is powered by a network dataset which is not Z-aware.\nZ-coordinates of the input geometry are ignored.")}function g(e,t){for(let r=0;r<t.length;r++){const i=e[t[r]];if(i&&i.length)for(const e of i)if((0,o.pC)(e)&&e.hasZ)return!0}return!1}async function b(e,t,r){if(!e)throw new s.Z("network-service:missing-url","Url to Network service is missing");const o=(0,l.lA)({f:"json",token:t},r),{data:u}=await(0,i.default)(e,o);u.supportedTravelModes||(u.supportedTravelModes=[]);for(let e=0;e<u.supportedTravelModes.length;e++)u.supportedTravelModes[e].id||(u.supportedTravelModes[e].id=u.supportedTravelModes[e].itemId);const p=u.currentVersion>=10.4?async function(e,t,r){try{const s=(0,l.lA)({f:"json",token:t},r),o=(0,a.Qj)(e)+"/retrieveTravelModes",{data:{supportedTravelModes:n,defaultTravelMode:u}}=await(0,i.default)(o,s);return{supportedTravelModes:n,defaultTravelMode:u}}catch(e){throw new s.Z("network-service:retrieveTravelModes","Could not get to the NAServer's retrieveTravelModes.",{error:e})}}(e,t,r):async function(e,t){var r,s;const o=(0,l.lA)({f:"json"},t),{data:u}=await(0,i.default)(e.replace(/\/rest\/.*$/i,"/info"),o);if(!u||!u.owningSystemUrl)return{supportedTravelModes:[],defaultTravelMode:null};const{owningSystemUrl:p}=u,c=(0,a.Qj)(p)+"/sharing/rest/portals/self",{data:d}=await(0,i.default)(c,o),y=(0,n.hS)("helperServices.routingUtilities.url",d);if(!y)return{supportedTravelModes:[],defaultTravelMode:null};const m=(0,l.en)(p),f=/\/solve$/i.test(m.path)?"Route":/\/solveclosestfacility$/i.test(m.path)?"ClosestFacility":"ServiceAreas",h=(0,l.lA)({f:"json",serviceName:f},t),v=(0,a.Qj)(y)+"/GetTravelModes/execute",g=await(0,i.default)(v,h),b=[];let w=null;if(null!=g&&null!=(r=g.data)&&null!=(s=r.results)&&s.length){const e=g.data.results;for(const t of e){var N;if("supportedTravelModes"===t.paramName){if(null!=(N=t.value)&&N.features)for(const{attributes:e}of t.value.features)if(e){const t=JSON.parse(e.TravelMode);b.push(t)}}else"defaultTravelMode"===t.paramName&&(w=t.value)}}return{supportedTravelModes:b,defaultTravelMode:w}}(e,r),{defaultTravelMode:c,supportedTravelModes:d}=await p;return u.defaultTravelMode=c,u.supportedTravelModes=d,f.fromJSON(u)}},79166:(e,t,r)=>{r.d(t,{Z:()=>p});var i=r(43697),s=r(35454),o=r(5600),n=(r(67676),r(80442),r(75215),r(52011)),a=r(51623);const l=new s.Xn({0:"informative",1:"process-definition",2:"process-start",3:"process-stop",50:"warning",100:"error",101:"empty",200:"abort"});let u=class extends a.Z{constructor(e){super(e),this.type=null}};(0,i._)([(0,o.Cb)({type:String,json:{read:l.read,write:l.write}})],u.prototype,"type",void 0),u=(0,i._)([(0,n.j)("esri.rest.support.NAMessage")],u);const p=u},49827:(e,t,r)=>{r.d(t,{Z:()=>d});var i,s=r(43697),o=r(96674),n=r(22974),a=r(5600),l=(r(75215),r(36030)),u=r(52011),p=r(49352);let c=i=class extends o.wq{constructor(e){super(e),this.attributeParameterValues=null,this.description=null,this.distanceAttributeName=null,this.id=null,this.impedanceAttributeName=null,this.name=null,this.restrictionAttributeNames=null,this.simplificationTolerance=null,this.simplificationToleranceUnits=null,this.timeAttributeName=null,this.type=null,this.useHierarchy=null,this.uturnAtJunctions=null}clone(){return new i((0,n.d9)({attributeParameterValues:this.attributeParameterValues,description:this.description,distanceAttributeName:this.distanceAttributeName,id:this.id,impedanceAttributeName:this.impedanceAttributeName,name:this.name,restrictionAttributeNames:this.restrictionAttributeNames,simplificationTolerance:this.simplificationTolerance,simplificationToleranceUnits:this.simplificationToleranceUnits,timeAttributeName:this.timeAttributeName,type:this.type,useHierarchy:this.useHierarchy,uturnAtJunctions:this.uturnAtJunctions}))}};(0,s._)([(0,a.Cb)({type:[Object],json:{write:!0}})],c.prototype,"attributeParameterValues",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"distanceAttributeName",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"id",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"impedanceAttributeName",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],c.prototype,"restrictionAttributeNames",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],c.prototype,"simplificationTolerance",void 0),(0,s._)([(0,l.J)(p.q$)],c.prototype,"simplificationToleranceUnits",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"timeAttributeName",void 0),(0,s._)([(0,l.J)(p.DJ)],c.prototype,"type",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"useHierarchy",void 0),(0,s._)([(0,l.J)(p.ip)],c.prototype,"uturnAtJunctions",void 0),c=i=(0,s._)([(0,u.j)("esri.rest.support.TravelMode")],c);const d=c},49352:(e,t,r)=>{r.d(t,{oi:()=>m,W7:()=>p,td:()=>v,cW:()=>h,GX:()=>o,$7:()=>n,Dd:()=>f,q$:()=>s,yP:()=>c,no:()=>a,ip:()=>l,BW:()=>y,SS:()=>d,DJ:()=>u});var i=r(35454);const s=(0,i.wY)()({esriCentimeters:"centimeters",esriDecimalDegrees:"decimal-degrees",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriPoints:"points",esriYards:"yards"}),o=(0,i.wY)()({esriNAUCentimeters:"centimeters",esriNAUDecimalDegrees:"decimal-degrees",esriNAUDecimeters:"decimeters",esriNAUFeet:"feet",esriNAUInches:"inches",esriNAUKilometers:"kilometers",esriNAUMeters:"meters",esriNAUMiles:"miles",esriNAUMillimeters:"millimeters",esriNAUNauticalMiles:"nautical-miles",esriNAUPoints:"points",esriNAUYards:"yards"}),n=(0,i.wY)()({esriDOTComplete:"complete",esriDOTCompleteNoEvents:"complete-no-events",esriDOTFeatureSets:"featuresets",esriDOTInstructionsOnly:"instructions-only",esriDOTStandard:"standard",esriDOTSummaryOnly:"summary-only"}),a=(0,i.wY)()({esriNAOutputLineNone:"none",esriNAOutputLineStraight:"straight",esriNAOutputLineTrueShape:"true-shape",esriNAOutputLineTrueShapeWithMeasure:"true-shape-with-measure"}),l=((0,i.wY)()({esriNAOutputPolygonNone:"none",esriNAOutputPolygonSimplified:"simplified",esriNAOutputPolygonDetailed:"detailed"}),(0,i.wY)()({esriNFSBAllowBacktrack:"allow-backtrack",esriNFSBAtDeadEndsOnly:"at-dead-ends-only",esriNFSBNoBacktrack:"no-backtrack",esriNFSBAtDeadEndsAndIntersections:"at-dead-ends-and-intersections"})),u=((0,i.wY)()({esriNATravelDirectionFromFacility:"from-facility",esriNATravelDirectionToFacility:"to-facility"}),(0,i.wY)()({esriNATimeOfDayNotUsed:"not-used",esriNATimeOfDayUseAsStartTime:"start",esriNATimeOfDayUseAsEndTime:"end"}),(0,i.wY)()({AUTOMOBILE:"automobile",TRUCK:"truck",WALK:"walk",OTHER:"other"})),p=(0,i.wY)()({0:"either-side-of-vehicle",1:"right-side-of-vehicle",2:"left-side-of-vehicle",3:"no-u-turn"},{useNumericKeys:!0}),c=(0,i.wY)()({0:"stop",1:"waypoint",2:"break"},{useNumericKeys:!0}),d=(0,i.wY)()({0:"ok",1:"not-located",2:"network-element-not-located",3:"element-not-traversable",4:"invalid-field-values",5:"not-reached",6:"time-window-violation",7:"not-located-on-closest"},{useNumericKeys:!0}),y=(0,i.wY)()({1:"right",2:"left"},{useNumericKeys:!0}),m=(0,i.wY)()({0:"restriction",1:"added-cost"},{useNumericKeys:!0}),f=(0,i.wY)()({0:"permit",1:"restrict"},{useNumericKeys:!0}),h=(0,i.wY)()({1:"header",50:"arrive",51:"depart",52:"straight",100:"on-ferry",101:"off-ferry",102:"central-fork",103:"roundabout",104:"u-turn",150:"door",151:"stairs",152:"elevator",153:"escalator",154:"pedestrian-ramp",200:"left-fork",201:"left-ramp",202:"clockwise-roundabout",203:"left-handed-u-turn",204:"bear-left",205:"left-turn",206:"sharp-left",207:"left-turn-and-immediate-left-turn",208:"left-turn-and-immediate-right-turn",300:"right-fork",301:"right-ramp",302:"counter-clockwise-roundabout",303:"right-handed-u-turn",304:"bear-right",305:"right-turn",306:"sharp-right",307:"right-turn-and-immediate-left-turn",308:"right-turn-and-immediate-right-turn",400:"up-elevator",401:"up-escalator",402:"up-stairs",500:"down-elevator",501:"down-escalator",502:"down-stairs",1e3:"general-event",1001:"landmark",1002:"time-zone-change",1003:"traffic-event",1004:"scaled-cost-barrier-event",1005:"boundary-crossing",1006:"restriction-violation"},{useNumericKeys:!0}),v=(0,i.wY)()({0:"unknown",1:"segment",2:"maneuver-segment",3:"restriction-violation",4:"scaled-cost-barrier",5:"heavy-traffic",6:"slow-traffic",7:"moderate-traffic"},{useNumericKeys:!0})},89164:(e,t,r)=>{r.d(t,{Z:()=>y});var i=r(43697),s=r(22303),o=r(35454),n=r(96674),a=r(5600),l=(r(67676),r(80442),r(75215),r(71715)),u=r(52011);const p=new o.Xn({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let c=0,d=class extends n.wq{constructor(e){super(e),this.id="sym"+c++,this.type=null,this.color=new s.Z([0,0,0,1])}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,i._)([(0,a.Cb)({type:p.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:p.write}}})],d.prototype,"type",void 0),(0,i._)([(0,a.Cb)({type:s.Z,json:{write:{allowNull:!0}}})],d.prototype,"color",void 0),(0,i._)([(0,l.r)("color")],d.prototype,"readColor",null),d=(0,i._)([(0,u.j)("esri.symbols.Symbol")],d);const y=d},57039:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var i=r(43697),s=r(5600),o=(r(67676),r(80442),r(75215),r(52011)),n=r(3172),a=r(28263),l=r(38581),u=r(93924),p=r(11282),c=(r(66577),r(1692)),d=r(96674),y=r(70586),m=r(71715),f=r(82971),h=r(79166),v=r(13473),g=r(58901),b=r(17332),w=r(33955);function N(e){return e.features.map((t=>{const r=f.Z.fromJSON(e.spatialReference),i=c.Z.fromJSON(t);return(0,y.Wg)(i.geometry).spatialReference=r,i}))}function A(e){return(0,y.lV)(e.features.map((t=>((0,y.pC)(t.geometry)&&(t.geometry.spatialReference=e.spatialReference),(0,w.im)(t.geometry)))))}let S=class extends d.wq{constructor(e){super(e),this.facilities=null,this.messages=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null,this.serviceAreaPolylines=null,this.serviceAreaPolygons=null}readFacilities(e){return A(e)}readPointBarriers(e,t){return A(t.barriers)}readPolylineBarriers(e){return A(e)}readPolygonBarriers(e){return A(e)}readIncidents(e,t){return N(t.saPolylines)}readServiceAreaPolygons(e,t){return N(t.saPolygons)}};(0,i._)([(0,s.Cb)({type:[v.Z]})],S.prototype,"facilities",void 0),(0,i._)([(0,m.r)("facilities")],S.prototype,"readFacilities",null),(0,i._)([(0,s.Cb)({type:[h.Z]})],S.prototype,"messages",void 0),(0,i._)([(0,s.Cb)({type:[v.Z]})],S.prototype,"pointBarriers",void 0),(0,i._)([(0,m.r)("pointBarriers",["barriers"])],S.prototype,"readPointBarriers",null),(0,i._)([(0,s.Cb)({type:[g.Z]})],S.prototype,"polylineBarriers",void 0),(0,i._)([(0,m.r)("polylineBarriers")],S.prototype,"readPolylineBarriers",null),(0,i._)([(0,s.Cb)({type:[b.Z]})],S.prototype,"polygonBarriers",void 0),(0,i._)([(0,m.r)("polygonBarriers")],S.prototype,"readPolygonBarriers",null),(0,i._)([(0,s.Cb)({type:[c.Z]})],S.prototype,"serviceAreaPolylines",void 0),(0,i._)([(0,m.r)("serviceAreaPolylines",["saPolylines"])],S.prototype,"readIncidents",null),(0,i._)([(0,s.Cb)({type:[c.Z]})],S.prototype,"serviceAreaPolygons",void 0),(0,i._)([(0,m.r)("serviceAreaPolygons",["saPolygons"])],S.prototype,"readServiceAreaPolygons",null),S=(0,i._)([(0,o.j)("esri.rest.support.ServiceAreaSolveResult")],S);const T=S,_=(0,a.E)({accumulateAttributes:{name:"accumulateAttributeNames"},attributeParameterValues:!0,defaultBreaks:!0,facilities:!0,outSpatialReference:{name:"outSR",getter:e=>e.outSpatialReference.wkid},pointBarriers:{name:"barriers"},polylineBarriers:!0,polygonBarriers:!0,restrictionAttributes:{name:"restrictionAttributeNames"},returnPointBarriers:{name:"returnBarriers"},travelMode:!0});var C=r(59633);let M=class extends C.Z{constructor(e){super(e),this.url=null}solve(e,t){return async function(e,t,r){const i=[],s=[],o={},a={},c=(0,p.en)(e),{path:d}=c;t.facilities&&t.facilities.features&&(0,u.et)(t.facilities.features,s,"facilities.features",o),t.pointBarriers&&t.pointBarriers.features&&(0,u.et)(t.pointBarriers.features,s,"pointBarriers.features",o),t.polylineBarriers&&t.polylineBarriers.features&&(0,u.et)(t.polylineBarriers.features,s,"polylineBarriers.features",o),t.polygonBarriers&&t.polygonBarriers.features&&(0,u.et)(t.polygonBarriers.features,s,"polygonBarriers.features",o);const y=await(0,l.aX)(s);for(const e in o){const t=o[e];i.push(e),a[e]=y.slice(t[0],t[1])}if((0,u.Wf)(a,i)){let e=null;try{e=await(0,u.bI)(d,t.apiKey,r)}catch{}e&&!e.hasZ&&(0,u.ef)(a,i)}for(const e in a)a[e].forEach(((r,i)=>{t.get(e)[i].geometry=r}));const m={...r,query:{...c.query,..._.toQueryParams(t),f:"json"}},{data:f}=await(0,n.default)(`${d}/solveServiceArea`,m);return T.fromJSON(f)}(this.url,e,t)}};(0,i._)([(0,s.Cb)()],M.prototype,"url",void 0),M=(0,i._)([(0,o.j)("esri.tasks.ServiceAreaTask")],M);const k=M},59633:(e,t,r)=>{r.d(t,{Z:()=>u});var i=r(43697),s=r(15923),o=r(17452),n=r(5600),a=(r(67676),r(80442),r(75215),r(52011));let l=class extends s.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,o.mN)(e):null}_encode(e,t,r){const i={};for(const s in e){if("declaredClass"===s)continue;const o=e[s];if(null!=o&&"function"!=typeof o)if(Array.isArray(o)){i[s]=[];for(let e=0;e<o.length;e++)i[s][e]=this._encode(o[e])}else if("object"==typeof o)if(o.toJSON){const e=o.toJSON(r&&r[s]);i[s]=t?e:JSON.stringify(e)}else i[s]=t?o:JSON.stringify(o);else i[s]=o}return i}};(0,i._)([(0,n.Cb)({readOnly:!0})],l.prototype,"parsedUrl",null),(0,i._)([(0,n.Cb)()],l.prototype,"requestOptions",void 0),(0,i._)([(0,n.Cb)({type:String})],l.prototype,"url",void 0),l=(0,i._)([(0,a.j)("esri.tasks.Task")],l);const u=l}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9101,4889],{78346:(e,t,r)=>{r.d(t,{bA:()=>T});var o=r(20102),s=r(80442),i=r(95330),n=r(80903),a=r(25045),l=r(40330),d=r(92604),u=r(94362),c=r(99880),p=r(68773),h=(r(2587),r(17452));const y={};function f(e){var t;const r={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(r.async=!0),e.hasOwnProperty("isDebug")||(r.isDebug=!1),e.baseUrl||(r.baseUrl=y.baseUrl),null==(t=y.packages)||t.forEach((e=>{!function(e,t){for(const r of e)if(r.name===t.name)return;e.push(t)}(r.packages,e)})),r}var m=r(41213);class g{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class w{constructor(){this._dispatcher=new g,this._workerPostMessage({type:u.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,m.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,m.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,u.QM)(e);if(t&&t.type===u.Cs.OPEN){const{modulePath:e,jobId:r}=t;let o=await a.default.loadWorker(e);o||(o=await import(e));const s=a.default.connect(o);this._workerPostMessage({type:u.Cs.OPENED,jobId:r,data:s})}}}var b=r(70171),v=r(17202);const _=d.Z.getLogger("esri.core.workers"),{HANDSHAKE:C}=u.Cs;let j,k;const S="Failed to create Worker. Fallback to execute module in main thread";async function R(e){return new Promise((t=>{function r(s){const i=(0,u.QM)(s);i&&i.type===C&&(e.removeEventListener("message",r),e.removeEventListener("error",o),t(e))}function o(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",o),_.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new w).addEventListener("message",r),e.addEventListener("error",o)}e.addEventListener("message",r),e.addEventListener("error",o)}))}let E=0;const M=d.Z.getLogger("esri.core.workers"),{ABORT:N,INVOKE:P,OPEN:x,OPENED:O,RESPONSE:Z}=u.Cs;class I{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),M.error(e)}))}static async create(e){const t=await async function(){if(!(0,s.Z)("esri-workers"))return R(new w);if(!j&&!k)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=p.Z.default){const t={...p.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(p.Z));e.assetsPath=(0,h.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.Kd)(),e.has={"esri-csp-restrictions":(0,s.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,s.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,s.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,s.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,s.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,s.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,s.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,s.Z)("esri-atomics"),"esri-shared-array-buffer":(0,s.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,s.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,s.Z)("esri-workers-arraybuffer-transfer"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,h.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,h.hF)(e.workers.workerPath):e.workers.workerPath=(0,h.hF)((0,c.V)("esri/core/workers/RemoteClient.js"));const t=p.Z.workers.loaderConfig,r=f({baseUrl:null==t?void 0:t.baseUrl,locale:(0,b.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...null==t?void 0:t.has},map:{...null==t?void 0:t.map},paths:{...null==t?void 0:t.paths},packages:(null==t?void 0:t.packages)||[]}),o={version:l.i8,buildDate:v.r,revision:v.$};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:o})}()}'`);j=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){k=e||{}}let e;if(j)try{e=new Worker(j,{name:"esri-worker-"+E++})}catch(t){_.warn(S,k),e=new w}else _.warn(S,k),e=new w;return R(e)}();return new I(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,o=(0,u.jt)();return new Promise(((t,s)=>{const n={resolve:t,reject:s,abortHandle:(0,i.$F)(r,(()=>{this._outJobs.delete(o),this._post({type:N,jobId:o})}))};this._outJobs.set(o,n),this._post({type:x,jobId:o,modulePath:e})}))}_onMessage(e){const t=(0,u.QM)(e);if(t)switch(t.type){case O:this._onOpenedMessage(t);break;case Z:this._onResponseMessage(t);break;case N:this._onAbortMessage(t);break;case P:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,o=t.get(r);o&&(o.controller&&o.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:o,abortable:s}=e,n=s?new AbortController:null,a=this._inJobs,d=l.Nv[t];let c;try{if("function"!=typeof d)throw new TypeError(`${t} is not a function`);c=d.call(null,o,{signal:n?n.signal:null})}catch(e){return void this._post({type:Z,jobId:r,error:(0,u.AB)(e)})}(0,i.y8)(c)?(a.set(r,{controller:n,promise:c}),c.then((e=>{a.has(r)&&(a.delete(r),this._post({type:Z,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,i.D_)(e)||this._post({type:Z,jobId:r,error:(0,u.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:Z,jobId:r},c)}_onOpenedMessage(e){var t;const{jobId:r,data:o}=e,s=this._outJobs.get(r);s&&(this._outJobs.delete(r),null==(t=s.abortHandle)||t.remove(),s.resolve(o))}_onResponseMessage(e){var t;const{jobId:r,error:s,data:i}=e,n=this._outJobs.get(r);n&&(this._outJobs.delete(r),null==(t=n.abortHandle)||t.remove(),s?n.reject(o.Z.fromJSON(JSON.parse(s))):n.resolve(i))}_post(e,t,r){return(0,u.oi)(this.worker,e,t,r)}}let F=(0,s.Z)("esri-workers-debug")?1:(0,s.Z)("host-browser")?navigator.hardwareConcurrency-1:0;F||(F=(0,s.Z)("safari")&&(0,s.Z)("mac")||(0,s.Z)("trident")?7:2);let A=0;const L=[];async function B(e,t){const r=new n.Z;return await r.open(e,t),r}async function T(e,t={}){if("string"!=typeof e)throw new o.Z("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,s.Z)("host-webworker")&&!(0,s.Z)("esri-workers")&&(r="local"),"local"===r){let r=await a.default.loadWorker(e);r||(r=await import(e)),(0,i.k_)(t.signal);const o=t.client||r;return B([a.default.connect(r)],{...t,client:o})}if(await async function(){if(U)return U;H=new AbortController;const e=[];for(let t=0;t<F;t++){const r=I.create(t).then((e=>(L[t]=e,e)));e.push(r)}return U=Promise.all(e),U}(),(0,i.k_)(t.signal),"dedicated"===r){const r=A++%F;return B([await L[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,F);if(r<F){const o=new Array(r);for(let s=0;s<r;++s){const r=A++%F;o[s]=L[r].open(e,t)}return B(o,t)}}return B(L.map((r=>r.open(e,t))),t)}let H,U=null},2587:(e,t,r)=>{r(90344),r(18848),r(940),r(70171);var o=r(94443),s=r(3172),i=r(20102),n=r(70586);async function a(e){if((0,n.pC)(l.fetchBundleAsset))return l.fetchBundleAsset(e);const t=await(0,s.default)(e,{responseType:"text"});return JSON.parse(t.data)}const l={};var d,u=r(99880);(0,o.tz)((d={pattern:"esri/",location:u.V},new class{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let o;o="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=o,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){const n=t.exec(r);if(!n)throw new i.Z("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const l=n[1]?`${n[1]}/`:"",d=n[2],u=(0,o.Su)(s),c=`${l}${d}.json`,p=u?`${l}${d}_${u}.json`:c;let h;try{h=await a(e(p))}catch(t){if(p===c)throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{h=await a(e(c))}catch(e){throw new i.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return h}(this.getAssetUrl,this.matcher,e,t)}}(d)))},94443:(e,t,r)=>{r.d(t,{ME:()=>h,Su:()=>y,tz:()=>p});var o=r(20102),s=r(95330),i=r(70171);const n=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){var t;return null!=(t=a[e])&&t}const d=[],u=new Map;function c(e){for(const t of u.keys())f(e.pattern,t)&&u.delete(t)}function p(e){return d.includes(e)||(c(e),d.unshift(e)),{remove(){const t=d.indexOf(e);t>-1&&(d.splice(t,1),c(e))}}}async function h(e){const t=(0,i.Kd)();u.has(e)||u.set(e,async function(e,t){const r=[];for(const o of d)if(f(o.pattern,e))try{return await o.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new o.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new o.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=u.get(e);return await m.add(r),r}function y(e){if(!n.test(e))return null;const[,t,r]=n.exec(e),o=t+(r?"-"+r.toUpperCase():"");return l(o)?o:l(t)?t:null}function f(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,i.Ze)((()=>{u.clear()}));const m=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,s.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},940:(e,t,r)=>{r.d(t,{n:()=>d});var o=r(92604),s=r(78286),i=r(19153),n=r(90344),a=r(18848);const l=o.Z.getLogger("esri.intl");function d(e,t,r={}){const{format:o={}}=r;return(0,i.gx)(e,(e=>function(e,t,r){let o,i;const n=e.indexOf(":");if(-1===n?o=e.trim():(o=e.slice(0,n).trim(),i=e.slice(n+1).trim()),!o)return"";const a=(0,s.hS)(o,t);if(null==a)return"";const l=r[i]||r[o];return l?u(a,l):i?c(a,i):p(a)}(e,t,o)))}function u(e,t){switch(t.type){case"date":return(0,n.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),p(e)}}function c(e,t){switch(t.toLowerCase()){case"dateformat":return(0,n.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,n.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):p(e)}}function p(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,n.p6)(e):""}}},56545:(e,t,r)=>{r.d(t,{Z:()=>p});var o,s=r(43697),i=r(96674),n=r(22974),a=r(5600),l=r(75215),d=r(52011),u=r(30556);let c=o=class extends i.wq{constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new o((0,n.d9)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,s._)([(0,a.Cb)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],c.prototype,"attachmentsWhere",void 0),(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],c.prototype,"keywords",void 0),(0,s._)([(0,a.Cb)({type:[Number],json:{write:!0}})],c.prototype,"globalIds",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0),(0,s._)([(0,a.Cb)({type:[Number],json:{write:!0}})],c.prototype,"objectIds",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{default:!1,write:!0}})],c.prototype,"returnMetadata",void 0),(0,s._)([(0,a.Cb)({type:[Number],json:{write:!0}})],c.prototype,"size",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0),(0,s._)([(0,u.c)("start"),(0,u.c)("num")],c.prototype,"writeStart",null),(0,s._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0),c=o=(0,s._)([(0,d.j)("esri.rest.support.AttachmentQuery")],c),c.from=(0,l.se)(c);const p=c},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v});var o,s=r(43697),i=r(66577),n=r(1692),a=r(35454),l=r(96674),d=r(22974),u=r(70586),c=r(5600),p=(r(75215),r(71715)),h=r(52011),y=r(30556),f=r(82971),m=r(33955),g=r(1231);const w=new a.Xn({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=o=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=f.Z.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const s=e[t],i=n.Z.fromJSON(s),a=s.geometry&&s.geometry.spatialReference;(0,u.pC)(i.geometry)&&!a&&(i.geometry.spatialReference=r),o.push(i)}return o}writeGeometryType(e,t,r,o){if(e)return void w.write(e,t,r,o);const{features:s}=this;if(s)for(const e of s)if(e&&(0,u.pC)(e.geometry))return void w.write(e.geometry.type,t,r,o)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,o=(0,m.im)(e);return!r&&t.spatialReference&&(o.spatialReference=f.Z.fromJSON(t.spatialReference)),o}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,u.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new o(this.cloneProperties())}cloneProperties(){return(0,d.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const o=t.features[r];if(o.geometry){const t=e&&e[r];o.geometry=t&&t.toJSON()||o.geometry}}return t}quantize(e){const{scale:[t,r],translate:[o,s]}=e,i=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-o)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=i.length;e<t;e++)n((0,u.Wg)(i[e].geometry))||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[o,s],scale:[i,n]}=r,a=this._getHydrationFunction(e,(e=>e*i+o),(e=>s-e*n));for(const{geometry:e}of t)(0,u.pC)(e)&&a(e);return this.transform=null,this}_quantizePoints(e,t,r){let o,s;const i=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];if(n>0){const e=t(a[0]),n=r(a[1]);e===o&&n===s||(i.push([e-o,n-s]),o=e,s=n)}else o=t(a[0]),s=r(a[1]),i.push([o,s])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const o=(0,m.oU)(e)?e.rings:e.paths,s=[];for(let e=0,i=o.length;e<i;e++){const i=o[e],n=this._quantizePoints(i,t,r);n&&s.push(n)}return s.length>0?((0,m.oU)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const o=this._quantizePoints(e.points,t,r);return o.length>0?(e.points=o,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const o=(0,m.oU)(e)?e.rings:e.paths;let s,i;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,o=n.length;e<o;e++){const o=n[e];e>0?(s+=o[0],i+=o[1]):(s=o[0],i=o[1]),o[0]=t(s),o[1]=r(i)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const o=e.points;let s,i;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],i+=n[1]):(s=n[0],i=n[1]),n[0]=t(s),n[1]=r(i)}}:void 0}};(0,s._)([(0,c.Cb)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,c.Cb)({type:[n.Z],json:{write:!0}})],b.prototype,"features",void 0),(0,s._)([(0,p.r)("features")],b.prototype,"readFeatures",null),(0,s._)([(0,c.Cb)({type:[g.Z],json:{write:!0}})],b.prototype,"fields",void 0),(0,s._)([(0,c.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:w.read}}})],b.prototype,"geometryType",void 0),(0,s._)([(0,y.c)("geometryType")],b.prototype,"writeGeometryType",null),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,s._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,s._)([(0,c.Cb)({types:i.qM,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,s._)([(0,p.r)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,s._)([(0,c.Cb)({type:f.Z,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,s._)([(0,y.c)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,s._)([(0,c.Cb)({json:{write:!0}})],b.prototype,"transform",void 0),b=o=(0,s._)([(0,h.j)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0;const v=b},75935:(e,t,r)=>{r.d(t,{Z:()=>y});var o,s=r(43697),i=(r(66577),r(96674)),n=r(22974),a=r(5600),l=r(75215),d=r(52011),u=r(30556),c=r(10158),p=r(82971);let h=o=class extends i.wq{constructor(e){super(e),this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new o((0,n.d9)({dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,s._)([(0,a.Cb)({type:c.n,json:{write:!0}})],h.prototype,"dynamicDataSource",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"gdbVersion",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"geometryPrecision",void 0),(0,s._)([(0,a.Cb)({type:Date})],h.prototype,"historicMoment",void 0),(0,s._)([(0,u.c)("historicMoment")],h.prototype,"_writeHistoricMoment",null),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"maxAllowableOffset",void 0),(0,s._)([(0,a.Cb)({type:[Number],json:{write:!0}})],h.prototype,"objectIds",void 0),(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],h.prototype,"orderByFields",void 0),(0,s._)([(0,a.Cb)({type:[String],json:{write:!0}})],h.prototype,"outFields",void 0),(0,s._)([(0,a.Cb)({type:p.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],h.prototype,"outSpatialReference",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"relationshipId",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],h.prototype,"start",void 0),(0,s._)([(0,u.c)("start"),(0,u.c)("num")],h.prototype,"writeStart",null),(0,s._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],h.prototype,"num",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],h.prototype,"returnGeometry",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],h.prototype,"returnM",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],h.prototype,"returnZ",void 0),(0,s._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],h.prototype,"where",void 0),h=o=(0,s._)([(0,d.j)("esri.rest.support.RelationshipQuery")],h),h.from=(0,l.se)(h);const y=h},28141:(e,t,r)=>{r.d(t,{Z:()=>C});var o,s=r(43697),i=r(66577),n=r(92835),a=r(35454),l=r(96674),d=r(22974),u=r(5600),c=r(75215),p=r(52011),h=r(30556),y=r(33955);r(67676),r(80442);let f=o=class extends l.wq{constructor(e){super(e),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new o({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,s._)([(0,u.Cb)({type:[String],json:{write:!0}})],f.prototype,"groupByFields",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{write:!0}})],f.prototype,"topCount",void 0),(0,s._)([(0,u.Cb)({type:[String],json:{write:!0}})],f.prototype,"orderByFields",void 0),f=o=(0,s._)([(0,p.j)("esri.rest.support.TopFilter")],f);const m=f;var g,w=r(82971);const b=new a.Xn({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),v=new a.Xn({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let _=g=class extends l.wq{constructor(e){super(e),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new g((0,d.d9)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,s._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],_.prototype,"cacheHint",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],_.prototype,"distance",void 0),(0,s._)([(0,u.Cb)({types:i.qM,json:{read:y.im,write:!0}})],_.prototype,"geometry",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{write:!0}})],_.prototype,"geometryPrecision",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{write:!0}})],_.prototype,"maxAllowableOffset",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],_.prototype,"num",void 0),(0,s._)([(0,u.Cb)({json:{write:!0}})],_.prototype,"objectIds",void 0),(0,s._)([(0,u.Cb)({type:[String],json:{write:!0}})],_.prototype,"orderByFields",void 0),(0,s._)([(0,u.Cb)({type:[String],json:{write:!0}})],_.prototype,"outFields",void 0),(0,s._)([(0,u.Cb)({type:w.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],_.prototype,"outSpatialReference",void 0),(0,s._)([(0,u.Cb)({type:String,json:{write:!0}})],_.prototype,"resultType",void 0),(0,s._)([(0,u.Cb)({json:{write:!0}})],_.prototype,"returnGeometry",void 0),(0,s._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"returnM",void 0),(0,s._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"returnZ",void 0),(0,s._)([(0,u.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],_.prototype,"start",void 0),(0,s._)([(0,h.c)("start"),(0,h.c)("num")],_.prototype,"writeStart",null),(0,s._)([(0,u.Cb)({type:String,json:{read:{source:"spatialRel",reader:b.read},write:{target:"spatialRel",writer:b.write}}})],_.prototype,"spatialRelationship",void 0),(0,s._)([(0,u.Cb)({type:n.Z,json:{write:!0}})],_.prototype,"timeExtent",void 0),(0,s._)([(0,u.Cb)({type:m,json:{write:!0}})],_.prototype,"topFilter",void 0),(0,s._)([(0,u.Cb)({type:String,json:{read:v.read,write:{writer:v.write,overridePolicy(e){return{enabled:e&&this.distance>0}}}}})],_.prototype,"units",void 0),(0,s._)([(0,u.Cb)({type:String,json:{write:!0}})],_.prototype,"where",void 0),_=g=(0,s._)([(0,p.j)("esri.rest.support.TopFeaturesQuery")],_),_.from=(0,c.se)(_);const C=_}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3485],{66577:(e,t,i)=>{i.d(t,{qM:()=>u});var r=i(75215),n=i(6570),l=i(9361),o=i(65091),s=i(13473),a=i(17332),c=i(58901);i(82971),i(86973),i(33955);const u={base:l.Z,key:"type",typeMap:{extent:n.Z,multipoint:o.Z,point:s.Z,polyline:c.Z,polygon:a.Z}};(0,r.N7)(u)},33955:(e,t,i)=>{i.d(t,{im:()=>m,q9:()=>v,Ji:()=>h,YX:()=>u,aW:()=>p,wp:()=>d,oU:()=>y,l9:()=>f});var r=i(70586),n=i(6570),l=i(9361),o=i(65091),s=i(13473),a=i(17332),c=i(58901);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function p(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function f(e){return void 0!==e.paths}function y(e){return void 0!==e.rings}function m(e){return(0,r.Wi)(e)?null:e instanceof l.Z?e:d(e)?s.Z.fromJSON(e):f(e)?c.Z.fromJSON(e):y(e)?a.Z.fromJSON(e):p(e)?o.Z.fromJSON(e):u(e)?n.Z.fromJSON(e):null}function h(e){return e?d(e)?"esriGeometryPoint":f(e)?"esriGeometryPolyline":y(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":p(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:s.Z,esriGeometryPolyline:c.Z,esriGeometryPolygon:a.Z,esriGeometryEnvelope:n.Z,esriGeometryMultipoint:o.Z};function v(e){return e&&g[e]||null}},86973:(e,t,i)=>{i.d(t,{Mk:()=>n,P$:()=>l});var r=i(35454);const n=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),l=(0,r.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},39450:(e,t,i)=>{i.d(t,{Z:()=>u});var r,n=i(43697),l=i(96674),o=i(5600),s=(i(67676),i(80442),i(75215)),a=i(52011);let c=r=class extends l.wq{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"cols",void 0),(0,n._)([(0,o.Cb)({type:s.z8,json:{write:!0}})],c.prototype,"level",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"levelValue",void 0),(0,n._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"origin",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{write:!0}})],c.prototype,"resolution",void 0),(0,n._)([(0,o.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"rows",void 0),(0,n._)([(0,o.Cb)({type:Number,json:{write:!0}})],c.prototype,"scale",void 0),c=r=(0,n._)([(0,a.j)("esri.layers.support.LOD")],c);const u=c},11145:(e,t,i)=>{i.d(t,{Z:()=>T});var r,n=i(43697),l=i(35454),o=i(96674),s=i(70586),a=i(67900),c=i(5600),u=(i(67676),i(80442),i(75215)),p=i(71715),d=i(52011),f=i(30556),y=i(13473),m=i(82971),h=i(24470),g=i(8744),v=i(40488),_=i(39450);const w=new l.Xn({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let b=r=class extends o.wq{constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.minScale=0,this.maxScale=0,this.size=null,this.spatialReference=null}static create(e={}){const{resolutionFactor:t=1,scales:i,size:n=256,spatialReference:l=m.Z.WebMercator,numLODs:o=24}=e;if(!(0,g.JY)(l)){const e=[];if(i)for(let t=0;t<i.length;t++){const r=i[t];e.push({level:t,scale:r,resolution:r})}else{let t=5e-4;for(let i=o-1;i>=0;i--)e.unshift({level:i,scale:t,resolution:t}),t*=2}return new r({dpi:96,lods:e,origin:new y.Z(0,0,l),size:[n,n],spatialReference:l})}const s=(0,g.C5)(l),c=e.origin?new y.Z({x:e.origin.x,y:e.origin.y,spatialReference:l}):new y.Z(s?{x:s.origin[0],y:s.origin[1],spatialReference:l}:{x:0,y:0,spatialReference:l}),u=1/(39.37*(0,a.c9)(l)*96),p=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],r=t*u;p.push({level:e,scale:t,resolution:r})}else{let e=(0,g.sT)(l)?512/n*591657527.5917094:256/n*591657527.591555;const i=Math.ceil(o/t);p.push({level:0,scale:e,resolution:e*u});for(let r=1;r<i;r++){const i=e/2**t,n=i*u;p.push({level:r,scale:i,resolution:n}),e=i}}return new r({dpi:96,lods:p,origin:c,size:[n,n],spatialReference:l})}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,g.C5)(e);return e.isWrappable&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return y.Z.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const r=[];this._levelToLOD={},e&&(t=-1/0,i=1/0,e.forEach((e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,this._levelToLOD[e.level]=e}))),this._set("scales",r),this._set("minScale",t),this._set("maxScale",i),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];{const i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}}scaleToZoom(e){const t=this.scales,i=t.length-1;let r=0;for(;r<i;r++){const i=t[r],n=t[r+1];if(i<=e)return r;if(n===e)return r+1;if(i>e&&n<e)return r+Math.log(i/e)/Math.log(i/n)}return r}snapScale(e,t=.95){const i=this.scaleToZoom(e);return i%Math.floor(i)>=t?this.zoomToScale(Math.ceil(i)):this.zoomToScale(Math.floor(i))}tileAt(e,t,i,r){const n=this.lodAt(e);if(!n)return null;let l,o;if("number"==typeof t)l=t,o=i;else if((0,g.fS)(t.spatialReference,this.spatialReference))l=t.x,o=t.y,r=i;else{const e=(0,v.iV)(t,this.spatialReference);if((0,s.Wi)(e))return null;l=e.x,o=e.y,r=i}const a=n.resolution*this.size[0],c=n.resolution*this.size[1];return r||(r={id:null,level:0,row:0,col:0,extent:(0,h.Ue)()}),r.level=e,r.row=Math.floor((this.origin.y-o)/c+.001),r.col=Math.floor((l-this.origin.x)/a+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=r.ExtrapolateOptions.NONE){let i=this.lodAt(e.level);if(!i&&t===r.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return;const n=e.level-i.level,l=i.resolution*this.size[0]/2**n,o=i.resolution*this.size[1]/2**n;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,h.Ue)()),e.extent[0]=this.origin.x+e.col*l,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+l,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const{resolution:i}=this.lodAt(t.level),r=i*this.size[0],n=i*this.size[1];return e[0]=this.origin.x+t.col*r,e[1]=this.origin.y-(t.row+1)*n,e[2]=e[0]+r,e[3]=e[1]+n,e}lodAt(e){return this._levelToLOD&&this._levelToLOD[e]||null}clone(){return r.fromJSON(this.write({}))}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};var F,x;(0,n._)([(0,c.Cb)({type:Number,json:{write:!0}})],b.prototype,"compressionQuality",void 0),(0,n._)([(0,c.Cb)({type:Number,json:{write:!0}})],b.prototype,"dpi",void 0),(0,n._)([(0,c.Cb)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],b.prototype,"format",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],b.prototype,"isWrappable",null),(0,n._)([(0,c.Cb)({type:y.Z,json:{write:!0}})],b.prototype,"origin",void 0),(0,n._)([(0,p.r)("origin")],b.prototype,"readOrigin",null),(0,n._)([(0,c.Cb)({type:[_.Z],value:null,json:{write:!0}})],b.prototype,"lods",null),(0,n._)([(0,c.Cb)({readOnly:!0})],b.prototype,"minScale",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],b.prototype,"maxScale",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],b.prototype,"scales",void 0),(0,n._)([(0,c.Cb)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],b.prototype,"size",void 0),(0,n._)([(0,p.r)("size",["rows","cols"])],b.prototype,"readSize",null),(0,n._)([(0,f.c)("size",{cols:{type:u.z8},rows:{type:u.z8}})],b.prototype,"writeSize",null),(0,n._)([(0,c.Cb)({type:m.Z,json:{write:!0}})],b.prototype,"spatialReference",void 0),b=r=(0,n._)([(0,d.j)("esri.layers.support.TileInfo")],b),F=b||(b={}),(x=F.ExtrapolateOptions||(F.ExtrapolateOptions={}))[x.NONE=0]="NONE",x[x.POWER_OF_TWO=1]="POWER_OF_TWO";const T=b},35671:(e,t,i)=>{i.d(t,{io:()=>g,AB:()=>h,gd:()=>m,Mu:()=>w,Q0:()=>y,YN:()=>u,UF:()=>d,O5:()=>v,os:()=>b,H7:()=>I,qN:()=>L,Pz:()=>C,Qc:()=>V,vP:()=>U});var r,n,l=i(20102),o=i(78286);(n=r||(r={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",n.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var s=i(59266);const a=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],c=["field","normalizationField"];function u(e,t){if(null!=e&&null!=t)for(const i of Array.isArray(e)?e:[e])if(p(a,i,t),"visualVariables"in i&&i.visualVariables)for(const e of i.visualVariables)p(c,e,t)}function p(e,t,i){if(e)for(const r of e){const e=(0,o.hS)(r,t),n=e&&"function"!=typeof e&&i.get(e);n&&(0,o.RB)(r,n.name,t)}}function d(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const i=t.get(e.startField),r=t.get(e.endField);e.startField=i&&i.name||null,e.endField=r&&r.name||null}else{const i=t.get(e.startTimeField),r=t.get(e.endTimeField);e.startTimeField=i&&i.name||null,e.endTimeField=r&&r.name||null}}const f=new Set;function y(e,t){return e&&t?(f.clear(),m(f,e,t),Array.from(f).sort()):[]}function m(e,t,i){var r;if(i)if(null!=t&&null!=(r=t.fields)&&r.length)if(i.includes("*"))for(const{name:i}of t.fields)e.add(i);else for(const r of i)h(e,t,r);else{if(i.includes("*"))return e.clear(),void e.add("*");for(const t of i)e.add(t)}}function h(e,t,i){if("string"==typeof i)if(t){const r=t.get(i);r&&e.add(r.name)}else e.add(i)}async function g(e,t,i){var r;if(!i)return;const{arcadeUtils:n}=await(0,s.LC)(),l=n.extractFieldNames(i,null==t||null==(r=t.fields)?void 0:r.map((e=>e.name)));for(const i of l)h(e,t,i)}function v({displayField:e,fields:t}){return e||(t&&t.length?_(t,"name-or-title")||_(t,"unique-identifier")||_(t,"type-or-category")||function(e){for(const t of e){if(!t||!t.name)continue;const e=t.name.toLowerCase();if(e.indexOf("name")>-1||e.indexOf("title")>-1)return t.name}return null}(t):null)}function _(e,t){for(const i of e)if(i&&i.valueType&&i.valueType===t)return i.name;return null}async function w(e,t){const{labelingInfo:r,fieldsIndex:n}=t;r&&r.length&&await Promise.all(r.map((t=>async function(e,t,r){if(!r)return;const n=r.getLabelExpression(),o=r.where;if("arcade"===n.type)await g(e,t,n.expression);else{const i=n.expression.match(/{[^}]*}/g);i&&i.forEach((i=>{h(e,t,i.slice(1,-1))}))}await async function(e,t,r){if(r&&"1=1"!==r){const n=(await Promise.all([i.e(1534),i.e(5732)]).then(i.bind(i,41534))).WhereClause.create(r,t);if(!n.isStandardized)throw new l.Z("fieldUtils:collectFilterFields","Where clause is not standardized");m(e,t,n.fieldNames)}}(e,t,o)}(e,n,t))))}function b(e){const t=e.defaultValue;return void 0!==t&&A(e,t)?t:e.nullable?null:void 0}function F(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function x(e){return null===e||F(e)}const T="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function O(e){return null===e||T(e)}function S(e){return null!=e&&"string"==typeof e}function N(e){return null===e||S(e)}function E(){return!0}function A(e,t){let i;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":i=e.nullable?O:T;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":i=e.nullable?x:F;break;case"string":case"esriFieldTypeString":i=e.nullable?N:S;break;default:i=E}return 1===arguments.length?i:i(t)}const G=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function I(e){return null!=e&&G.has(e.type)}function L(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var R,z;function C(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function V(e,t){return e.nullable&&null===t?null:I(e)&&!function(e,t){const i="string"==typeof e?P(e):e;return!!i&&(i.isInteger?T(t)&&t>=i.min&&t<=i.max:t>=i.min&&t<=i.max)}(e.type,Number(t))?R.OUT_OF_RANGE:A(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const i="range"in e?e.range[0]:e.minValue,n="range"in e?e.range[1]:e.maxValue;if(+t<i||+t>n)return r.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return r.INVALID_CODED_VALUE}return null}(e.domain,t):null:z.INVALID_TYPE}function P(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return D;case"esriFieldTypeInteger":case"integer":return Z;case"esriFieldTypeSingle":case"single":return M;case"esriFieldTypeDouble":case"double":return $}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(R||(R={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(z||(z={}));const D={min:-32768,max:32767,isInteger:!0},Z={min:-2147483648,max:2147483647,isInteger:!0},M={min:-34e37,max:12e37,isInteger:!1},$={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function U(e,t,i){switch(e){case r.INVALID_CODED_VALUE:return`Value ${i} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case r.VALUE_OUT_OF_RANGE:return`Value ${i} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case z.INVALID_TYPE:return`Value ${i} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case R.OUT_OF_RANGE:{const{min:e,max:r}=P(t.type);return`Value ${i} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${r}`}}}},59266:(e,t,i)=>{i.d(t,{mz:()=>u,pp:()=>c,WW:()=>s,Yi:()=>a,LC:()=>o}),i(66577);var r=i(70586),n=i(82971);let l;function o(){return l||(l=(async()=>{const e=await Promise.all([i.e(9490),i.e(6690)]).then(i.bind(i,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),l}const s=(e,t,i)=>u.create(e,t,i,null,["$feature"]),a=(e,t,i)=>u.create(e,t,i,null,["$feature","$view"]),c=(e,t,i,r)=>u.create(e,t,i,r,["$feature","$view"]);class u{constructor(e,t,i,r,n,l,o,s){this.script=e,this.evaluate=n;const a=Array.isArray(o)?o:o.fields;this.fields=a,this._syntaxTree=r,this._arcade=t,this._arcadeDictionary=i,this._arcadeFeature=l,this._spatialReference=s,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,i,l,s,a){const{arcade:c,Feature:p,Dictionary:d}=await o(),f=n.Z.fromJSON(t),y=c.parseScript(e,a),m=s.reduce(((e,t)=>({...e,[t]:null})),{});let h=null;(0,r.pC)(l)&&(h=new d(l),h.immutable=!0,m.$config=null);const g=c.scriptUsesGeometryEngine(y)&&c.enableGeometrySupport(),v=c.scriptUsesFeatureSet(y)&&c.enableFeatureSetSupport(),_=c.scriptIsAsync(y)&&c.enableAsyncSupport(),w={vars:m,spatialReference:f,useAsync:!!_},b=new d;b.immutable=!1,b.setField("scale",0);const F=c.compileScript(y,w);return await Promise.all([g,v,_]),new u(e,c,d,y,(e=>("$view"in e&&e.$view&&(b.setField("scale",e.$view.scale),e.$view=b),h&&(e.$config=h),F({vars:e,spatialReference:f}))),new p,i,f)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}repurposeAdapter(e){return this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(e){return this._arcade.referencesMember(this._syntaxTree,e)}referencesFunction(e){return this._arcade.referencesFunction(this._syntaxTree,e)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4588],{99514:(e,t,i)=>{i.d(t,{Z:()=>n});var r=i(35671);function o(e){return"oid"===e.type||"esriFieldTypeOID"===e.type}function s(e){return"global-id"===e.type||"esriFieldTypeGlobalID"===e.type}class n{constructor(e){if(this.fields=e,this._fieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this.dateFields=[],this.numericFields=[],this._requiredFields=null,!e)return;const t=[];for(const n of e){const e=n&&n.name;if(e){const l=a(e);this._fieldsMap.set(e,n),this._fieldsMap.set(l,n),t.push(l),"date"===(i=n).type||"esriFieldTypeDate"===i.type?(this.dateFields.push(n),this._dateFieldsSet.add(n)):(0,r.H7)(n)&&(this._numericFieldsSet.add(n),this.numericFields.push(n)),o(n)||s(n)||(n.editable=null==n.editable||!!n.editable,n.nullable=null==n.nullable||!!n.nullable)}}var i;t.sort(),this.uid=t.join(",")}destroy(){this._fieldsMap.clear()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)o(e)||s(e)||e.nullable||void 0!==(0,r.os)(e)||this._requiredFields.push(e)}return this._requiredFields}has(e){return null!=this.get(e)}get(e){return null!=e?this._fieldsMap.get(e)||this._fieldsMap.get(a(e)):void 0}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){const t=this.get(e);if(t)return t.name}}function a(e){return e.toLowerCase().trim()}},10158:(e,t,i)=>{i.d(t,{n:()=>D});var r,o=i(43697),s=i(35454),n=i(96674),a=i(5600),l=(i(67676),i(80442),i(90578)),p=i(36030),u=i(71715),d=i(52011),c=i(75215),y=i(63213),h=i(1231),m=i(42843),b=(i(66577),i(82971)),v=i(86973);let w=r=class extends n.wq{constructor(e){super(e),this.type="query-table"}clone(){var e;const{workspaceId:t,query:i,oidFields:o,spatialReference:s,geometryType:n}=this,a={workspaceId:t,query:i,oidFields:o,spatialReference:null!=(e=null==s?void 0:s.clone())?e:void 0,geometryType:n};return new r(a)}};var _;(0,o._)([(0,p.J)({queryTable:"query-table"})],w.prototype,"type",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],w.prototype,"workspaceId",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],w.prototype,"query",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],w.prototype,"oidFields",void 0),(0,o._)([(0,a.Cb)({type:b.Z,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,o._)([(0,p.J)(v.Mk)],w.prototype,"geometryType",void 0),w=r=(0,o._)([(0,d.j)("esri.layers.support.source.QueryTableDataSource")],w);let g=_=class extends n.wq{constructor(e){super(e),this.type="raster"}clone(){const{workspaceId:e,dataSourceName:t}=this;return new _({workspaceId:e,dataSourceName:t})}};var S;(0,o._)([(0,p.J)({raster:"raster"})],g.prototype,"type",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],g.prototype,"dataSourceName",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],g.prototype,"workspaceId",void 0),g=_=(0,o._)([(0,d.j)("esri.layers.support.source.RasterDataSource")],g);let C=S=class extends n.wq{constructor(e){super(e),this.type="table"}clone(){const{workspaceId:e,gdbVersion:t,dataSourceName:i}=this;return new S({workspaceId:e,gdbVersion:t,dataSourceName:i})}};var f,j;(0,o._)([(0,p.J)({table:"table"})],C.prototype,"type",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],C.prototype,"workspaceId",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],C.prototype,"gdbVersion",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],C.prototype,"dataSourceName",void 0),C=S=(0,o._)([(0,d.j)("esri.layers.support.source.TableDataSource")],C);const T=(0,s.wY)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let R=f=class extends n.wq{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,i){return x()(e,t,i)}castLeftTableSource(e){return(0,c.N7)(M(),e)}readRightTableSource(e,t,i){return x()(e,t,i)}castRightTableSource(e){return(0,c.N7)(M(),e)}clone(){var e,t;const{leftTableKey:i,rightTableKey:r,leftTableSource:o,rightTableSource:s,joinType:n}=this,a={leftTableKey:i,rightTableKey:r,leftTableSource:null!=(e=null==o?void 0:o.clone())?e:void 0,rightTableSource:null!=(t=null==s?void 0:s.clone())?t:void 0,joinType:n};return new f(a)}};(0,o._)([(0,p.J)({joinTable:"join-table"})],R.prototype,"type",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],R.prototype,"leftTableKey",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],R.prototype,"rightTableKey",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],R.prototype,"leftTableSource",void 0),(0,o._)([(0,u.r)("leftTableSource")],R.prototype,"readLeftTableSource",null),(0,o._)([(0,l.p)("leftTableSource")],R.prototype,"castLeftTableSource",null),(0,o._)([(0,a.Cb)({json:{write:!0}})],R.prototype,"rightTableSource",void 0),(0,o._)([(0,u.r)("rightTableSource")],R.prototype,"readRightTableSource",null),(0,o._)([(0,l.p)("rightTableSource")],R.prototype,"castRightTableSource",null),(0,o._)([(0,p.J)(T)],R.prototype,"joinType",void 0),R=f=(0,o._)([(0,d.j)("esri.layers.support.source.JoinTableDataSource")],R);let F=null;function x(){return F||(F=(0,y.d)({types:M()})),F}let P=null;function M(){return P||(P={key:"type",base:null,typeMap:{"data-layer":D,"map-layer":m.R}}),P}const q={key:"type",base:null,typeMap:{"join-table":R,"query-table":w,raster:g,table:C}};let D=j=class extends n.wq{constructor(e){super(e),this.type="data-layer"}clone(){const{fields:e,dataSource:t}=this;return new j({fields:e,dataSource:t})}};(0,o._)([(0,p.J)({dataLayer:"data-layer"})],D.prototype,"type",void 0),(0,o._)([(0,a.Cb)({type:[h.Z],json:{write:!0}})],D.prototype,"fields",void 0),(0,o._)([(0,a.Cb)({types:q,json:{write:!0}})],D.prototype,"dataSource",void 0),D=j=(0,o._)([(0,d.j)("esri.layers.support.source.DataLayerSource")],D),D.from=(0,c.se)(D)},42843:(e,t,i)=>{i.d(t,{R:()=>u});var r,o=i(43697),s=i(96674),n=i(5600),a=(i(67676),i(80442),i(75215)),l=i(36030),p=i(52011);let u=r=class extends s.wq{constructor(e){super(e),this.type="map-layer"}clone(){const{mapLayerId:e,gdbVersion:t}=this;return new r({mapLayerId:e,gdbVersion:t})}};(0,o._)([(0,l.J)({mapLayer:"map-layer"})],u.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:a.z8,json:{write:!0}})],u.prototype,"mapLayerId",void 0),(0,o._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"gdbVersion",void 0),u=r=(0,o._)([(0,p.j)("esri.layers.support.source.MapLayerSource")],u)},6388:(e,t,i)=>{i.d(t,{Z:()=>y});var r,o=i(43697),s=(i(66577),i(35454)),n=i(96674),a=i(22974),l=i(5600),p=(i(75215),i(52011)),u=i(6570);const d=new s.Xn({upperLeft:"upper-left",lowerLeft:"lower-left"});let c=r=class extends n.wq{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new r((0,a.d9)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,o._)([(0,l.Cb)({type:u.Z,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"extent",void 0),(0,o._)([(0,l.Cb)({type:["view","edit"],json:{write:!0}})],c.prototype,"mode",void 0),(0,o._)([(0,l.Cb)({type:String,json:{read:d.read,write:d.write}})],c.prototype,"originPosition",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"tolerance",void 0),c=r=(0,o._)([(0,p.j)("esri.rest.support.QuantizationParameters")],c);const y=c},57444:(e,t,i)=>{i.d(t,{Z:()=>R});var r,o=i(43697),s=i(66577),n=i(92835),a=i(35454),l=i(96674),p=i(22974),u=i(70586),d=i(5600),c=i(90578),y=i(36030),h=i(52011),m=i(30556),b=i(75215),v=i(33955),w=i(10158),_=i(6388),g=i(58539),S=i(82971),C=i(13473);const f=new a.Xn({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),j=new a.Xn({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let T=r=class extends l.wq{constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.datumTransformation=null,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}static from(e){return(0,b.TJ)(r,e)}castDatumTransformation(e){return"number"==typeof e||"object"==typeof e?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){const i={};for(const t in e){const r=e[t];Array.isArray(r)?i[t]=r.map((e=>e instanceof Date?e.getTime():e)):r instanceof Date?i[t]=r.getTime():i[t]=r}t.parameterValues=i}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new r((0,p.d9)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,datumTransformation:this.datumTransformation,distance:this.distance,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:(0,u.pC)(this.historicMoment)?new Date(this.historicMoment.getTime()):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}};T.MAX_MAX_RECORD_COUNT_FACTOR=5,(0,o._)([(0,d.Cb)({json:{write:!0}})],T.prototype,"aggregateIds",void 0),(0,o._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],T.prototype,"cacheHint",void 0),(0,o._)([(0,d.Cb)({json:{write:!0}})],T.prototype,"datumTransformation",void 0),(0,o._)([(0,c.p)("datumTransformation")],T.prototype,"castDatumTransformation",null),(0,o._)([(0,d.Cb)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],T.prototype,"distance",void 0),(0,o._)([(0,d.Cb)({type:w.n,json:{write:!0}})],T.prototype,"dynamicDataSource",void 0),(0,o._)([(0,d.Cb)({type:String,json:{write:!0}})],T.prototype,"formatOf3DObjects",void 0),(0,o._)([(0,d.Cb)({type:String,json:{write:!0}})],T.prototype,"gdbVersion",void 0),(0,o._)([(0,d.Cb)({types:s.qM,json:{read:v.im,write:!0}})],T.prototype,"geometry",void 0),(0,o._)([(0,d.Cb)({type:Number,json:{write:!0}})],T.prototype,"geometryPrecision",void 0),(0,o._)([(0,d.Cb)({type:[String],json:{write:!0}})],T.prototype,"groupByFieldsForStatistics",void 0),(0,o._)([(0,d.Cb)({type:String,json:{write:!0}})],T.prototype,"having",void 0),(0,o._)([(0,d.Cb)({type:Date})],T.prototype,"historicMoment",void 0),(0,o._)([(0,m.c)("historicMoment")],T.prototype,"writeHistoricMoment",null),(0,o._)([(0,d.Cb)({type:Number,json:{write:!0}})],T.prototype,"maxAllowableOffset",void 0),(0,o._)([(0,d.Cb)({type:Number,cast:e=>e<1?1:e>r.MAX_MAX_RECORD_COUNT_FACTOR?r.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],T.prototype,"maxRecordCountFactor",void 0),(0,o._)([(0,d.Cb)({type:["xyFootprint"],json:{write:!0}})],T.prototype,"multipatchOption",void 0),(0,o._)([(0,d.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],T.prototype,"num",void 0),(0,o._)([(0,d.Cb)({json:{write:!0}})],T.prototype,"objectIds",void 0),(0,o._)([(0,d.Cb)({type:[String],json:{write:!0}})],T.prototype,"orderByFields",void 0),(0,o._)([(0,d.Cb)({type:[String],json:{write:!0}})],T.prototype,"outFields",void 0),(0,o._)([(0,d.Cb)({type:S.Z,json:{name:"outSR",write:!0}})],T.prototype,"outSpatialReference",void 0),(0,o._)([(0,d.Cb)({type:[g.Z],json:{write:{enabled:!0,overridePolicy(){return{enabled:(0,u.pC)(this.outStatistics)&&this.outStatistics.length>0}}}}})],T.prototype,"outStatistics",void 0),(0,o._)([(0,d.Cb)({json:{write:!0}})],T.prototype,"parameterValues",void 0),(0,o._)([(0,m.c)("parameterValues")],T.prototype,"writeParameterValues",null),(0,o._)([(0,d.Cb)({type:C.Z,json:{write:!0}})],T.prototype,"pixelSize",void 0),(0,o._)([(0,d.Cb)({type:_.Z,json:{write:!0}})],T.prototype,"quantizationParameters",void 0),(0,o._)([(0,d.Cb)({type:[Object],json:{write:!0}})],T.prototype,"rangeValues",void 0),(0,o._)([(0,d.Cb)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],T.prototype,"relationParameter",void 0),(0,o._)([(0,d.Cb)({type:String,json:{write:!0}})],T.prototype,"resultType",void 0),(0,o._)([(0,d.Cb)({type:Boolean,json:{default:!1,write:!0}})],T.prototype,"returnCentroid",void 0),(0,o._)([(0,d.Cb)({type:Boolean,json:{default:!1,write:!0}})],T.prototype,"returnDistinctValues",void 0),(0,o._)([(0,d.Cb)({type:Boolean,json:{default:!0,write:!0}})],T.prototype,"returnExceededLimitFeatures",void 0),(0,o._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],T.prototype,"returnGeometry",void 0),(0,o._)([(0,d.Cb)({type:Boolean,json:{default:!1,write:!0}})],T.prototype,"returnQueryGeometry",void 0),(0,o._)([(0,d.Cb)({type:Boolean,json:{default:!1,write:!0}})],T.prototype,"returnM",void 0),(0,o._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],T.prototype,"returnZ",void 0),(0,o._)([(0,d.Cb)({type:S.Z,json:{write:!0}})],T.prototype,"sourceSpatialReference",void 0),(0,o._)([(0,y.J)(f,{ignoreUnknown:!1,name:"spatialRel"})],T.prototype,"spatialRelationship",void 0),(0,o._)([(0,d.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],T.prototype,"start",void 0),(0,o._)([(0,m.c)("start"),(0,m.c)("num")],T.prototype,"writeStart",null),(0,o._)([(0,d.Cb)({type:String,json:{write:!0}})],T.prototype,"sqlFormat",void 0),(0,o._)([(0,d.Cb)({type:String,json:{write:!0}})],T.prototype,"text",void 0),(0,o._)([(0,d.Cb)({type:n.Z,json:{write:!0}})],T.prototype,"timeExtent",void 0),(0,o._)([(0,d.Cb)({type:Boolean,json:{default:!1,write:!0}})],T.prototype,"timeReferenceUnknownClient",void 0),(0,o._)([(0,y.J)(j,{ignoreUnknown:!1}),(0,d.Cb)({json:{write:{overridePolicy(e){return{enabled:e&&this.distance>0}}}}})],T.prototype,"units",void 0),(0,o._)([(0,d.Cb)({type:String,json:{write:{overridePolicy(e){return{enabled:null!=e||this.start>0}}}}})],T.prototype,"where",void 0),(0,o._)([(0,m.c)("where")],T.prototype,"writeWhere",null),T=r=(0,o._)([(0,h.j)("esri.rest.support.Query")],T);const R=T},58539:(e,t,i)=>{i.d(t,{Z:()=>y});var r,o=i(43697),s=i(35454),n=i(96674),a=i(22974),l=i(5600),p=(i(75215),i(52011)),u=i(30556);const d=new s.Xn({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let c=r=class extends n.wq{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){"percentile-continuous"!==this.statisticType&&"percentile-discrete"!==this.statisticType||(t.statisticParameters=(0,a.d9)(e))}clone(){return new r({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,a.d9)(this.statisticParameters)})}};(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],c.prototype,"maxPointCount",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],c.prototype,"maxRecordCount",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],c.prototype,"maxVertexCount",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"onStatisticField",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"outStatisticFieldName",void 0),(0,o._)([(0,l.Cb)({type:String,json:{read:{source:"statisticType",reader:d.read},write:{target:"statisticType",writer:d.write}}})],c.prototype,"statisticType",void 0),(0,o._)([(0,l.Cb)({type:Object})],c.prototype,"statisticParameters",void 0),(0,o._)([(0,u.c)("statisticParameters")],c.prototype,"writeStatisticParameters",null),c=r=(0,o._)([(0,p.j)("esri.rest.support.StatisticDefinition")],c);const y=c}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5845,5732],{1692:(e,t,r)=>{r.d(t,{Z:()=>_});var n=r(43697),i=r(66577),s=r(51773),o=r(78223),a=r(15923),l=(r(80442),r(22974)),u=r(92604),c=r(70586),d=r(31263),p=r(1153),h=r(52011);u.Z.getLogger("esri.core.Clonable");const f=e=>{let t=class extends e{clone(){const e=(0,c.s3)((0,p.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,r=e.store,n={},i=new Map;for(const e in t){const s=t[e],o=null==r?void 0:r.originOf(e);if(s.readOnly||!1===s.clonable||o!==d.s3.USER&&o!==d.s3.DEFAULTS)continue;const a=this[e];let u=null;const c=s.clonable;u="function"==typeof c?c(a):"reference"===c?a:(0,l.Vo)(a),null!=a&&null==u||(o===d.s3.DEFAULTS?i.set(e,u):n[e]=u)}const s=new(0,Object.getPrototypeOf(this).constructor)(n);if(i.size){var o;const e=null==(o=(0,p.vw)(s))?void 0:o.store;if(e)for(const[t,r]of i)e.set(t,r,d.s3.DEFAULTS)}return s}};return t=(0,n._)([(0,h.j)("esri.core.Clonable")],t),t};let m=class extends(f(a.Z)){};m=(0,n._)([(0,h.j)("esri.core.Clonable")],m);var y=r(96674),g=r(99001),b=r(5600),v=(r(67676),r(75215),r(33955));let w=class extends(f(y.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,g.D)(),configurable:!0})}normalizeCtorArgs(e,t,r,n){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:r,popupTemplate:n}}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&(0,c.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&this.attributes[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{geometry:(0,c.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,c.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}_notifyLayer(e,t,r,n){if(!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}};(0,n._)([(0,b.Cb)({value:null})],w.prototype,"attributes",null),(0,n._)([(0,b.Cb)({value:null,types:i.qM,json:{read:v.im}})],w.prototype,"geometry",null),(0,n._)([(0,b.Cb)({type:Boolean})],w.prototype,"isAggregate",void 0),(0,n._)([(0,b.Cb)({clonable:"reference"})],w.prototype,"layer",void 0),(0,n._)([(0,b.Cb)({type:s.Z})],w.prototype,"popupTemplate",void 0),(0,n._)([(0,b.Cb)({clonable:"reference"})],w.prototype,"sourceLayer",void 0),(0,n._)([(0,b.Cb)({value:null,types:o.LB})],w.prototype,"symbol",null),(0,n._)([(0,b.Cb)({type:Boolean,value:!0})],w.prototype,"visible",null),w=(0,n._)([(0,h.j)("esri.Graphic")],w),(w||(w={})).generateUID=g.D;const _=w},92835:(e,t,r)=>{r.d(t,{Z:()=>m});var n,i=r(43697),s=r(96674),o=r(70586),a=r(35463),l=r(5600),u=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),d=r(30556);let p=n=class extends s.wq{constructor(e){super(e),this.end=null,this.start=null}static get allTime(){return h}static get empty(){return f}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=(0,o.pC)(this.start)?this.start.getTime():this.start,r=(0,o.pC)(this.end)?this.end.getTime():this.end,n=(0,o.pC)(e.start)?e.start.getTime():e.start,i=(0,o.pC)(e.end)?e.end.getTime():e.end;return t===n&&r===i}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,o.Po)(this.start,(t=>(0,a.JE)(t,e))),r=(0,o.Po)(this.end,(t=>(0,a.Nm)((0,a.JE)(t,e),1,e)));return new n({start:t,end:r})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=(0,o.R2)(this.start,-1/0,(e=>e.getTime())),r=(0,o.R2)(this.end,1/0,(e=>e.getTime())),i=(0,o.R2)(e.start,-1/0,(e=>e.getTime())),s=(0,o.R2)(e.end,1/0,(e=>e.getTime()));let a,l;if(i>=t&&i<=r?a=i:t>=i&&t<=s&&(a=t),r>=i&&r<=s?l=r:s>=t&&s<=r&&(l=s),!isNaN(a)&&!isNaN(l)){const e=new n;return e.start=a===-1/0?null:new Date(a),e.end=l===1/0?null:new Date(l),e}return n.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const r=new n,{start:i,end:s}=this;return(0,o.pC)(i)&&(r.start=(0,a.Nm)(i,e,t)),(0,o.pC)(s)&&(r.end=(0,a.Nm)(s,e,t)),r}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=(0,o.pC)(this.start)&&(0,o.pC)(e.start)?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=(0,o.pC)(this.end)&&(0,o.pC)(e.end)?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i._)([(0,u.r)("end")],p.prototype,"readEnd",null),(0,i._)([(0,d.c)("end")],p.prototype,"writeEnd",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i._)([(0,u.r)("start")],p.prototype,"readStart",null),(0,i._)([(0,d.c)("start")],p.prototype,"writeStart",null),p=n=(0,i._)([(0,c.j)("esri.TimeExtent")],p);const h=new p,f=new p({start:void 0,end:void 0}),m=p},84552:(e,t,r)=>{r.d(t,{Z:()=>d});var n,i=r(43697),s=r(96674),o=r(35463),a=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),u=r(78981);let c=n=class extends s.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,o.rJ)(this.value,this.unit,"milliseconds")}clone(){return new n({value:this.value,unit:this.unit})}};(0,i._)([(0,a.Cb)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),(0,i._)([(0,a.Cb)({type:u.v.apiValues,json:{type:u.v.jsonValues,read:u.v.read,write:u.v.write},nonNullable:!0})],c.prototype,"unit",void 0),c=n=(0,i._)([(0,l.j)("esri.TimeInterval")],c);const d=c},5732:(e,t,r)=>{r.d(t,{a:()=>s,c:()=>n,g:()=>i});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},52138:(e,t,r)=>{r.d(t,{a:()=>l,d:()=>m,e:()=>p,f:()=>h,h:()=>d,i:()=>o,j:()=>c,m:()=>u,p:()=>x,s:()=>s,t:()=>a,u:()=>f,v:()=>_,w:()=>w,y:()=>y});var n=r(65617),i=r(46851);function s(e,t,r,n,i,s,o,a,l,u,c,d,p,h,f,m,y){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=s,e[5]=o,e[6]=a,e[7]=l,e[8]=u,e[9]=c,e[10]=d,e[11]=p,e[12]=h,e[13]=f,e[14]=m,e[15]=y,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function a(e,t){if(e===t){const r=t[1],n=t[2],i=t[3],s=t[6],o=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=s,e[11]=t[14],e[12]=i,e[13]=o,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){const r=t[0],n=t[1],i=t[2],s=t[3],o=t[4],a=t[5],l=t[6],u=t[7],c=t[8],d=t[9],p=t[10],h=t[11],f=t[12],m=t[13],y=t[14],g=t[15],b=r*a-n*o,v=r*l-i*o,w=r*u-s*o,_=n*l-i*a,x=n*u-s*a,S=i*u-s*l,I=c*m-d*f,E=c*y-p*f,C=c*g-h*f,O=d*y-p*m,M=d*g-h*m,T=p*g-h*y;let U=b*T-v*M+w*O+_*C-x*E+S*I;return U?(U=1/U,e[0]=(a*T-l*M+u*O)*U,e[1]=(i*M-n*T-s*O)*U,e[2]=(m*S-y*x+g*_)*U,e[3]=(p*x-d*S-h*_)*U,e[4]=(l*C-o*T-u*E)*U,e[5]=(r*T-i*C+s*E)*U,e[6]=(y*w-f*S-g*v)*U,e[7]=(c*S-p*w+h*v)*U,e[8]=(o*M-a*C+u*I)*U,e[9]=(n*C-r*M-s*I)*U,e[10]=(f*x-m*w+g*b)*U,e[11]=(d*w-c*x-h*b)*U,e[12]=(a*E-o*O-l*I)*U,e[13]=(r*O-n*E+i*I)*U,e[14]=(m*v-f*_-y*b)*U,e[15]=(c*_-d*v+p*b)*U,e):null}function u(e,t,r){const n=t[0],i=t[1],s=t[2],o=t[3],a=t[4],l=t[5],u=t[6],c=t[7],d=t[8],p=t[9],h=t[10],f=t[11],m=t[12],y=t[13],g=t[14],b=t[15];let v=r[0],w=r[1],_=r[2],x=r[3];return e[0]=v*n+w*a+_*d+x*m,e[1]=v*i+w*l+_*p+x*y,e[2]=v*s+w*u+_*h+x*g,e[3]=v*o+w*c+_*f+x*b,v=r[4],w=r[5],_=r[6],x=r[7],e[4]=v*n+w*a+_*d+x*m,e[5]=v*i+w*l+_*p+x*y,e[6]=v*s+w*u+_*h+x*g,e[7]=v*o+w*c+_*f+x*b,v=r[8],w=r[9],_=r[10],x=r[11],e[8]=v*n+w*a+_*d+x*m,e[9]=v*i+w*l+_*p+x*y,e[10]=v*s+w*u+_*h+x*g,e[11]=v*o+w*c+_*f+x*b,v=r[12],w=r[13],_=r[14],x=r[15],e[12]=v*n+w*a+_*d+x*m,e[13]=v*i+w*l+_*p+x*y,e[14]=v*s+w*u+_*h+x*g,e[15]=v*o+w*c+_*f+x*b,e}function c(e,t,r){const n=r[0],i=r[1],s=r[2];let o,a,l,u,c,d,p,h,f,m,y,g;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*s+t[12],e[13]=t[1]*n+t[5]*i+t[9]*s+t[13],e[14]=t[2]*n+t[6]*i+t[10]*s+t[14],e[15]=t[3]*n+t[7]*i+t[11]*s+t[15]):(o=t[0],a=t[1],l=t[2],u=t[3],c=t[4],d=t[5],p=t[6],h=t[7],f=t[8],m=t[9],y=t[10],g=t[11],e[0]=o,e[1]=a,e[2]=l,e[3]=u,e[4]=c,e[5]=d,e[6]=p,e[7]=h,e[8]=f,e[9]=m,e[10]=y,e[11]=g,e[12]=o*n+c*i+f*s+t[12],e[13]=a*n+d*i+m*s+t[13],e[14]=l*n+p*i+y*s+t[14],e[15]=u*n+h*i+g*s+t[15]),e}function d(e,t,r){const n=r[0],i=r[1],s=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function p(e,t,r,n){let s,o,a,l,u,c,d,p,h,f,m,y,g,b,v,w,_,x,S,I,E,C,O,M,T=n[0],U=n[1],N=n[2],F=Math.sqrt(T*T+U*U+N*N);return F<i.E?null:(F=1/F,T*=F,U*=F,N*=F,s=Math.sin(r),o=Math.cos(r),a=1-o,l=t[0],u=t[1],c=t[2],d=t[3],p=t[4],h=t[5],f=t[6],m=t[7],y=t[8],g=t[9],b=t[10],v=t[11],w=T*T*a+o,_=U*T*a+N*s,x=N*T*a-U*s,S=T*U*a-N*s,I=U*U*a+o,E=N*U*a+T*s,C=T*N*a+U*s,O=U*N*a-T*s,M=N*N*a+o,e[0]=l*w+p*_+y*x,e[1]=u*w+h*_+g*x,e[2]=c*w+f*_+b*x,e[3]=d*w+m*_+v*x,e[4]=l*S+p*I+y*E,e[5]=u*S+h*I+g*E,e[6]=c*S+f*I+b*E,e[7]=d*S+m*I+v*E,e[8]=l*C+p*O+y*M,e[9]=u*C+h*O+g*M,e[10]=c*C+f*O+b*M,e[11]=d*C+m*O+v*M,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function h(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function f(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function m(e,t,r){let n,s,o,a=r[0],l=r[1],u=r[2],c=Math.sqrt(a*a+l*l+u*u);return c<i.E?null:(c=1/c,a*=c,l*=c,u*=c,n=Math.sin(t),s=Math.cos(t),o=1-s,e[0]=a*a*o+s,e[1]=l*a*o+u*n,e[2]=u*a*o-l*n,e[3]=0,e[4]=a*l*o-u*n,e[5]=l*l*o+s,e[6]=u*l*o+a*n,e[7]=0,e[8]=a*u*o+l*n,e[9]=l*u*o-a*n,e[10]=u*u*o+s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function y(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function g(e,t,r){const n=t[0],i=t[1],s=t[2],o=t[3],a=n+n,l=i+i,u=s+s,c=n*a,d=n*l,p=n*u,h=i*l,f=i*u,m=s*u,y=o*a,g=o*l,b=o*u;return e[0]=1-(h+m),e[1]=d+b,e[2]=p-g,e[3]=0,e[4]=d-b,e[5]=1-(c+m),e[6]=f+y,e[7]=0,e[8]=p+g,e[9]=f-y,e[10]=1-(c+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const b=(0,n.c)();function v(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function _(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],o=e[3],a=e[4],l=e[5],u=e[6],c=e[7],d=e[8],p=e[9],h=e[10],f=e[11],m=e[12],y=e[13],g=e[14],b=e[15],v=t[0],w=t[1],_=t[2],x=t[3],S=t[4],I=t[5],E=t[6],C=t[7],O=t[8],M=t[9],T=t[10],U=t[11],N=t[12],F=t[13],R=t[14],P=t[15];return Math.abs(r-v)<=i.E*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(n-w)<=i.E*Math.max(1,Math.abs(n),Math.abs(w))&&Math.abs(s-_)<=i.E*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(o-x)<=i.E*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-S)<=i.E*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(l-I)<=i.E*Math.max(1,Math.abs(l),Math.abs(I))&&Math.abs(u-E)<=i.E*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(c-C)<=i.E*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(d-O)<=i.E*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(p-M)<=i.E*Math.max(1,Math.abs(p),Math.abs(M))&&Math.abs(h-T)<=i.E*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(f-U)<=i.E*Math.max(1,Math.abs(f),Math.abs(U))&&Math.abs(m-N)<=i.E*Math.max(1,Math.abs(m),Math.abs(N))&&Math.abs(y-F)<=i.E*Math.max(1,Math.abs(y),Math.abs(F))&&Math.abs(g-R)<=i.E*Math.max(1,Math.abs(g),Math.abs(R))&&Math.abs(b-P)<=i.E*Math.max(1,Math.abs(b),Math.abs(P))}function x(e){const t=i.E,r=e[0],n=e[1],s=e[2],o=e[4],a=e[5],l=e[6],u=e[8],c=e[9],d=e[10];return Math.abs(1-(r*r+o*o+u*u))<=t&&Math.abs(1-(n*n+a*a+c*c))<=t&&Math.abs(1-(s*s+l*l+d*d))<=t}const S=u,I=v;Object.freeze({__proto__:null,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},set:s,identity:o,transpose:a,invert:l,adjoint:function(e,t){const r=t[0],n=t[1],i=t[2],s=t[3],o=t[4],a=t[5],l=t[6],u=t[7],c=t[8],d=t[9],p=t[10],h=t[11],f=t[12],m=t[13],y=t[14],g=t[15];return e[0]=a*(p*g-h*y)-d*(l*g-u*y)+m*(l*h-u*p),e[1]=-(n*(p*g-h*y)-d*(i*g-s*y)+m*(i*h-s*p)),e[2]=n*(l*g-u*y)-a*(i*g-s*y)+m*(i*u-s*l),e[3]=-(n*(l*h-u*p)-a*(i*h-s*p)+d*(i*u-s*l)),e[4]=-(o*(p*g-h*y)-c*(l*g-u*y)+f*(l*h-u*p)),e[5]=r*(p*g-h*y)-c*(i*g-s*y)+f*(i*h-s*p),e[6]=-(r*(l*g-u*y)-o*(i*g-s*y)+f*(i*u-s*l)),e[7]=r*(l*h-u*p)-o*(i*h-s*p)+c*(i*u-s*l),e[8]=o*(d*g-h*m)-c*(a*g-u*m)+f*(a*h-u*d),e[9]=-(r*(d*g-h*m)-c*(n*g-s*m)+f*(n*h-s*d)),e[10]=r*(a*g-u*m)-o*(n*g-s*m)+f*(n*u-s*a),e[11]=-(r*(a*h-u*d)-o*(n*h-s*d)+c*(n*u-s*a)),e[12]=-(o*(d*y-p*m)-c*(a*y-l*m)+f*(a*p-l*d)),e[13]=r*(d*y-p*m)-c*(n*y-i*m)+f*(n*p-i*d),e[14]=-(r*(a*y-l*m)-o*(n*y-i*m)+f*(n*l-i*a)),e[15]=r*(a*p-l*d)-o*(n*p-i*d)+c*(n*l-i*a),e},determinant:function(e){const t=e[0],r=e[1],n=e[2],i=e[3],s=e[4],o=e[5],a=e[6],l=e[7],u=e[8],c=e[9],d=e[10],p=e[11],h=e[12],f=e[13],m=e[14],y=e[15];return(t*o-r*s)*(d*y-p*m)-(t*a-n*s)*(c*y-p*f)+(t*l-i*s)*(c*m-d*f)+(r*a-n*o)*(u*y-p*h)-(r*l-i*o)*(u*m-d*h)+(n*l-i*a)*(u*f-c*h)},multiply:u,translate:c,scale:d,rotate:p,rotateX:function(e,t,r){const n=Math.sin(r),i=Math.cos(r),s=t[4],o=t[5],a=t[6],l=t[7],u=t[8],c=t[9],d=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*i+u*n,e[5]=o*i+c*n,e[6]=a*i+d*n,e[7]=l*i+p*n,e[8]=u*i-s*n,e[9]=c*i-o*n,e[10]=d*i-a*n,e[11]=p*i-l*n,e},rotateY:function(e,t,r){const n=Math.sin(r),i=Math.cos(r),s=t[0],o=t[1],a=t[2],l=t[3],u=t[8],c=t[9],d=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*i-u*n,e[1]=o*i-c*n,e[2]=a*i-d*n,e[3]=l*i-p*n,e[8]=s*n+u*i,e[9]=o*n+c*i,e[10]=a*n+d*i,e[11]=l*n+p*i,e},rotateZ:function(e,t,r){const n=Math.sin(r),i=Math.cos(r),s=t[0],o=t[1],a=t[2],l=t[3],u=t[4],c=t[5],d=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*i+u*n,e[1]=o*i+c*n,e[2]=a*i+d*n,e[3]=l*i+p*n,e[4]=u*i-s*n,e[5]=c*i-o*n,e[6]=d*i-a*n,e[7]=p*i-l*n,e},fromTranslation:h,fromScaling:f,fromRotation:m,fromXRotation:y,fromYRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotationTranslation:g,fromQuat2:function(e,t){const r=b,n=-t[0],i=-t[1],s=-t[2],o=t[3],a=t[4],l=t[5],u=t[6],c=t[7],d=n*n+i*i+s*s+o*o;return d>0?(r[0]=2*(a*o+c*n+l*s-u*i)/d,r[1]=2*(l*o+c*i+u*n-a*s)/d,r[2]=2*(u*o+c*s+a*i-l*n)/d):(r[0]=2*(a*o+c*n+l*s-u*i),r[1]=2*(l*o+c*i+u*n-a*s),r[2]=2*(u*o+c*s+a*i-l*n)),g(e,t,r),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},getScaling:function(e,t){const r=t[0],n=t[1],i=t[2],s=t[4],o=t[5],a=t[6],l=t[8],u=t[9],c=t[10];return e[0]=Math.sqrt(r*r+n*n+i*i),e[1]=Math.sqrt(s*s+o*o+a*a),e[2]=Math.sqrt(l*l+u*u+c*c),e},getRotation:function(e,t){const r=t[0]+t[5]+t[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e},fromRotationTranslationScale:function(e,t,r,n){const i=t[0],s=t[1],o=t[2],a=t[3],l=i+i,u=s+s,c=o+o,d=i*l,p=i*u,h=i*c,f=s*u,m=s*c,y=o*c,g=a*l,b=a*u,v=a*c,w=n[0],_=n[1],x=n[2];return e[0]=(1-(f+y))*w,e[1]=(p+v)*w,e[2]=(h-b)*w,e[3]=0,e[4]=(p-v)*_,e[5]=(1-(d+y))*_,e[6]=(m+g)*_,e[7]=0,e[8]=(h+b)*x,e[9]=(m-g)*x,e[10]=(1-(d+f))*x,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e},fromRotationTranslationScaleOrigin:function(e,t,r,n,i){const s=t[0],o=t[1],a=t[2],l=t[3],u=s+s,c=o+o,d=a+a,p=s*u,h=s*c,f=s*d,m=o*c,y=o*d,g=a*d,b=l*u,v=l*c,w=l*d,_=n[0],x=n[1],S=n[2],I=i[0],E=i[1],C=i[2],O=(1-(m+g))*_,M=(h+w)*_,T=(f-v)*_,U=(h-w)*x,N=(1-(p+g))*x,F=(y+b)*x,R=(f+v)*S,P=(y-b)*S,A=(1-(p+m))*S;return e[0]=O,e[1]=M,e[2]=T,e[3]=0,e[4]=U,e[5]=N,e[6]=F,e[7]=0,e[8]=R,e[9]=P,e[10]=A,e[11]=0,e[12]=r[0]+I-(O*I+U*E+R*C),e[13]=r[1]+E-(M*I+N*E+P*C),e[14]=r[2]+C-(T*I+F*E+A*C),e[15]=1,e},fromQuat:function(e,t){const r=t[0],n=t[1],i=t[2],s=t[3],o=r+r,a=n+n,l=i+i,u=r*o,c=n*o,d=n*a,p=i*o,h=i*a,f=i*l,m=s*o,y=s*a,g=s*l;return e[0]=1-d-f,e[1]=c+g,e[2]=p-y,e[3]=0,e[4]=c-g,e[5]=1-u-f,e[6]=h+m,e[7]=0,e[8]=p+y,e[9]=h-m,e[10]=1-u-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,r,n,i,s,o){const a=1/(r-t),l=1/(i-n),u=1/(s-o);return e[0]=2*s*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*l,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(i+n)*l,e[10]=(o+s)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*s*2*u,e[15]=0,e},perspective:function(e,t,r,n,i){const s=1/Math.tan(t/2);let o;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(o=1/(n-i),e[10]=(i+n)*o,e[14]=2*i*n*o):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){const i=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+a),u=2/(i+s);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(o-a)*l*.5,e[9]=(i-s)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},ortho:function(e,t,r,n,i,s,o){const a=1/(t-r),l=1/(n-i),u=1/(s-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*a,e[13]=(i+n)*l,e[14]=(o+s)*u,e[15]=1,e},lookAt:function(e,t,r,n){let s,a,l,u,c,d,p,h,f,m;const y=t[0],g=t[1],b=t[2],v=n[0],w=n[1],_=n[2],x=r[0],S=r[1],I=r[2];return Math.abs(y-x)<i.E&&Math.abs(g-S)<i.E&&Math.abs(b-I)<i.E?o(e):(p=y-x,h=g-S,f=b-I,m=1/Math.sqrt(p*p+h*h+f*f),p*=m,h*=m,f*=m,s=w*f-_*h,a=_*p-v*f,l=v*h-w*p,m=Math.sqrt(s*s+a*a+l*l),m?(m=1/m,s*=m,a*=m,l*=m):(s=0,a=0,l=0),u=h*l-f*a,c=f*s-p*l,d=p*a-h*s,m=Math.sqrt(u*u+c*c+d*d),m?(m=1/m,u*=m,c*=m,d*=m):(u=0,c=0,d=0),e[0]=s,e[1]=u,e[2]=p,e[3]=0,e[4]=a,e[5]=c,e[6]=h,e[7]=0,e[8]=l,e[9]=d,e[10]=f,e[11]=0,e[12]=-(s*y+a*g+l*b),e[13]=-(u*y+c*g+d*b),e[14]=-(p*y+h*g+f*b),e[15]=1,e)},targetTo:function(e,t,r,n){const i=t[0],s=t[1],o=t[2],a=n[0],l=n[1],u=n[2];let c=i-r[0],d=s-r[1],p=o-r[2],h=c*c+d*d+p*p;h>0&&(h=1/Math.sqrt(h),c*=h,d*=h,p*=h);let f=l*p-u*d,m=u*c-a*p,y=a*d-l*c;return h=f*f+m*m+y*y,h>0&&(h=1/Math.sqrt(h),f*=h,m*=h,y*=h),e[0]=f,e[1]=m,e[2]=y,e[3]=0,e[4]=d*y-p*m,e[5]=p*f-c*y,e[6]=c*m-d*f,e[7]=0,e[8]=c,e[9]=d,e[10]=p,e[11]=0,e[12]=i,e[13]=s,e[14]=o,e[15]=1,e},str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},subtract:v,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},exactEquals:w,equals:_,isOrthoNormal:x,mul:S,sub:I})},25929:(e,t,r)=>{r.d(t,{M:()=>h,f:()=>s,i:()=>d,p:()=>m,r:()=>a,t:()=>o,w:()=>l});var n=r(70586),i=r(17452);function s(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,i.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,i.PF)(e,t.portalItem.itemUrl);c.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return p(e,t&&t.portal)}function o(e,t,r=h.YES){if(!e)return e;!(0,i.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=(0,i.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const s=p(r,t.portal);n=(0,i.PF)(p(n,t.portal),s,s),n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=function(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,i.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}(n,t&&t.portal),(0,i.YP)(n)&&(n=(0,i.Fv)(n)),null!=t&&t.resources&&null!=t&&t.portalItem&&!(0,i.YP)(n)&&!(0,i.HK)(n)&&r===h.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n)}),n}function a(e,t,r){return s(e,r)}function l(e,t,r,n){const i=o(e,n);void 0!==i&&(t[r]=i)}const u=/\/items\/([^\/]+)\/resources\//,c=/^\.\/resources\//;function d(e){const t=(0,n.pC)(e)?e.match(u):null;return(0,n.pC)(t)?t[1]:null}function p(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,n=(0,i.TI)();return(0,i.D6)(n,`${n.scheme}://${r}`)?(0,i.Ie)(e,t.portalHostname,r):(0,i.Ie)(e,r,t.portalHostname)}var h,f;(f=h||(h={}))[f.YES=0]="YES",f[f.NO=1]="NO";const m=Object.freeze({__proto__:null,fromJSON:s,toJSON:o,read:a,write:l,itemIdFromResourceUrl:d,get MarkKeep(){return h}})},57435:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(43697),i=r(80539),s=r(3920),o=r(70586),a=(r(20102),r(92604),r(26258),r(87538)),l=r(5600),u=(r(67676),r(80442),r(75215),r(52011));let c=class extends((0,s.p)(i.Z)){constructor(e){super(e),this.getCollections=null}initialize(){this.handles.add((0,a.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=(0,o.pC)(this.getCollections)?this.getCollections():null;if((0,o.Wi)(e))return void this.removeAll();let t=0;for(const r of e)(0,o.pC)(r)&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new i.Z(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction?this.itemFilterFunction:e=>!!e;for(const n of t)if(n){if(r(n)){const t=this.indexOf(n,e);t>=0?t!==e&&this.reorder(n,e):this.add(n,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(n);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,n._)([(0,l.Cb)()],c.prototype,"getCollections",void 0),(0,n._)([(0,l.Cb)()],c.prototype,"getChildrenFunction",void 0),(0,n._)([(0,l.Cb)()],c.prototype,"itemFilterFunction",void 0),c=(0,n._)([(0,u.j)("esri.core.CollectionFlattener")],c);const d=c},3920:(e,t,r)=>{r.d(t,{r:()=>c,p:()=>u});var n=r(43697),i=r(15923),s=r(61247),o=r(5600),a=r(52011),l=r(89749);const u=e=>{let t=class extends e{destroy(){var e,t;this.destroyed||(null==(e=this._get("handles"))||e.destroy(),null==(t=this._get("updatingHandles"))||t.destroy())}get handles(){return this._get("handles")||new s.Z}get updatingHandles(){return this._get("updatingHandles")||new l.t}};return(0,n._)([(0,o.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,n._)([(0,o.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,n._)([(0,a.j)("esri.core.HandleOwner")],t),t};let c=class extends(u(i.Z)){};c=(0,n._)([(0,a.j)("esri.core.HandleOwner")],c)},16453:(e,t,r)=>{r.d(t,{R:()=>v,w:()=>w});var n=r(43697),i=r(15923),s=r(70586),o=r(41103),a=r(22974),l=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,a.d9)(e),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const n=this._originStores[r];n&&n.forEach(((n,i)=>{e&&e.has(i)||t.set(i,(0,a.d9)(n),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=l.s3.USER){let n=this._originStores[r];if(n||(n=new Map,this._originStores[r]=n),n.set(e,t),!this._values.has(e)||(0,s.j0)(this._propertyOriginMap.get(e))<=r){const n=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),n!==t}return!1}delete(e,t=l.s3.USER){const r=this._originStores[t];if(!r)return;const n=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return n}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],n=r&&r.get(e),i=this._values.get(e);return this._values.set(e,n),this._propertyOriginMap.set(e,t),i!==n}originOf(e){return this._propertyOriginMap.get(e)||l.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var c=r(50549),d=r(1153),p=r(52011);const h=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,s.j0)((0,d.vw)(this)),r=t.store,n=new u;t.store=n,(0,o.M)(t,r,n)}read(e,t){(0,c.ij)(this,e,t)}getAtOrigin(e,t){const r=f(this),n=(0,l.M9)(t);if("string"==typeof e)return r.get(e,n);const i={};return e.forEach((e=>{i[e]=r.get(e,n)})),i}originOf(e){return(0,l.x3)(this.originIdOf(e))}originIdOf(e){return f(this).originOf(e)}revert(e,t){const r=f(this),n=(0,l.M9)(t),i=(0,d.vw)(this);let s;s="string"==typeof e?"*"===e?r.keys(n):[e]:e,s.forEach((e=>{i.invalidate(e),r.revert(e,n),i.commit(e)}))}};return t=(0,n._)([(0,p.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function f(e){return(0,d.vw)(e).store}let m=class extends(h(i.Z)){};m=(0,n._)([(0,p.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],m);var y=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return b(this).delete(e,(0,l.M9)(t))}write(e={},t){return(0,y.cW)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,d.vw)(this).setAtOrigin(e,t,(0,l.M9)(r))}removeOrigin(e){const t=b(this),r=(0,l.M9)(e),n=t.keys(r);for(const e of n)t.originOf(e)===r&&t.set(e,t.get(e,r),l.s3.USER)}updateOrigin(e,t){const r=b(this),n=(0,l.M9)(t),i=this.get(e);for(let t=n+1;t<l.kk;++t)r.delete(e,t);r.set(e,i,n)}toJSON(e){return this.write({},e)}};return t=(0,n._)([(0,p.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function b(e){return(0,d.vw)(e).store}const v=e=>{let t=class extends(g(h(e))){constructor(...e){super(...e)}};return t=(0,n._)([(0,p.j)("esri.core.MultiOriginJSONSupport")],t),t};let w=class extends(v(i.Z)){};w=(0,n._)([(0,p.j)("esri.core.MultiOriginJSONSupport")],w)},36030:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(35454),i=r(5600);function s(e,t={}){var r;const s=e instanceof n.Xn?e:new n.Xn(e,t),o={type:null==(r=null==t?void 0:t.ignoreUnknown)||r?s.apiValues:String,json:{type:s.jsonValues,read:(null==t||!t.readOnly)&&{reader:s.read},write:{writer:s.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(o.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(o.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(o.json.name=t.name),(0,i.Cb)(o)}},91460:(e,t,r)=>{function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function i(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=i(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{vT:()=>n,on:()=>i,IH:()=>s})},95330:(e,t,r)=>{r.d(t,{e4:()=>C,$6:()=>l,Ue:()=>u,zE:()=>c,dD:()=>_,hh:()=>U,vr:()=>N,Ds:()=>T,as:()=>x,WW:()=>S,R8:()=>w,D_:()=>v,Hc:()=>h,y8:()=>O,fu:()=>y,$F:()=>g,d1:()=>I,DB:()=>E,r9:()=>f,k_:()=>d,H9:()=>m,Yn:()=>F,gx:()=>M,Hl:()=>b});const n=(i=globalThis,{setTimeout:(e,t)=>{const r=i.setTimeout(e,t);return{remove:()=>i.clearTimeout(r)}}});var i,s=r(20102),o=r(91460),a=(r(92604),r(70586));function l(e){return Promise.all(e)}function u(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function c(e="Aborted"){return new s.Z("AbortError",e)}function d(e,t="Aborted"){if(h(e))throw c(t)}function p(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function h(e){const t=p(e);return(0,a.pC)(t)&&t.aborted}function f(e){if(v(e))throw e}function m(e){if(!v(e))throw e}function y(e,t){const r=p(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,o.IH)(r,"abort",(()=>t()));t()}}function g(e,t){const r=p(e);if(!(0,a.Wi)(r))return d(r),(0,o.IH)(r,"abort",(()=>t(c())))}function b(e,t){const r=p(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let i=y(t,(()=>n(c())));const s=()=>i=(0,a.hw)(i);e.then(s,s),e.then(r,n)}))}function v(e){return e&&"AbortError"===e.name}function w(e){return e.catch((e=>{if(!v(e))throw e}))}function _(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function x(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return x(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return u((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const i={promise:t||Promise.resolve(t)};r.push(i),i.promise.then((e=>{i.value=e})).catch((e=>{i.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function S(e){return x(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function I(e){return Promise.reject(e)}function E(e){return Promise.resolve(e)}function C(e,t,r){const n=new AbortController;return y(r,(()=>n.abort())),new Promise(((r,i)=>{let s=setTimeout((()=>{s=0,r(t)}),e);y(n,(()=>{s&&(clearTimeout(s),i(c()))}))}))}function O(e){return e&&"function"==typeof e.then}function M(e){return O(e)?e:Promise.resolve(e)}function T(e,t=-1){let r,n,i,s,o=null;const l=(...u)=>{if(r){n=u,s&&s.reject(c()),s=_();const e=(0,a.j0)(s.promise);if(o){const e=o;o=null,e.abort()}return e}if(i=s||_(),s=null,t>0){const n=new AbortController;r=M(e(...u,n.signal));const i=r;C(t).then((()=>{r===i&&(s?n.abort():o=n)}))}else r=1,r=M(e(...u));const d=()=>{const e=n;n=i=r=o=null,null!=e&&l(...e)},p=r,h=i;return p.then(d,d),p.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function U(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),i=t=>{e(t)};return i.resolve=t=>e(t),i.reject=e=>t(e),i.timeout=(e,t)=>n.setTimeout((()=>i.reject(t)),e),i.promise=r,i}function N(e,t){let r,n=new AbortController;const i=e(n.signal);let s={promise:i,finished:!1,abort:()=>{n&&(n.abort(),n=null)}};const o=()=>{s&&(s.finished=!0,s=null),(0,a.pC)(r)&&(r.remove(),r=null),n=null};return i.then(o,o),r=y(t,(()=>{(0,a.pC)(s)&&s.abort()})),s}function F(e){return Promise.resolve().then((()=>{d(e)}))}},35463:(e,t,r)=>{r.d(t,{rJ:()=>a,Nm:()=>s,JE:()=>o}),r(80442);const n={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},i={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function s(e,t,r){const n=new Date(e.getTime());if(t&&r){const e=i[r],{getter:s,setter:o,multiplier:a}=e;if("months"===r){const e=function(e,t){const r=new Date(e,t+1,1);return r.setDate(0),r.getDate()}(n.getFullYear(),n.getMonth()+t);n.getDate()>e&&n.setDate(e)}n[o](n[s]()+t*a)}return n}function o(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function a(e,t,r){return 0===e?0:e*n[t]/n[r]}},67900:(e,t,r)=>{r.d(t,{gV:()=>L,En:()=>S,Z7:()=>T,c9:()=>M,_R:()=>C,qE:()=>F,cM:()=>O,hd:()=>c,ty:()=>I,Jo:()=>j,$C:()=>E}),r(80442);var n=r(35454),i=r(70586),s=r(24678),o=r(82971),a=r(68441),l=r(8744),u=r(58116);const c=39.37,d=a.sv.radius*Math.PI/200,p=/UNIT\[([^\]]+)\]\]$/i,h=u.Z,f=/UNIT\[([^\]]+)\]/i,m=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,n.wY)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),g=e=>e*e,b=e=>e*e*e,v={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:g(.001)},"square-centimeters":{inBaseUnits:g(.01)},"square-decimeters":{inBaseUnits:g(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:g(1e3)},"square-inches":{inBaseUnits:g(.0254)},"square-feet":{inBaseUnits:g(.3048)},"square-yards":{inBaseUnits:g(.9144)},"square-miles":{inBaseUnits:g(1609.344)},"square-us-feet":{inBaseUnits:g(1200/3937)},acres:{inBaseUnits:.0015625*g(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*b(.001)},"cubic-centimeters":{inBaseUnits:1e3*b(.01)},"cubic-decimeters":{inBaseUnits:1e3*b(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*b(1e3)},"cubic-inches":{inBaseUnits:1e3*b(.0254)},"cubic-feet":{inBaseUnits:1e3*b(.3048)},"cubic-yards":{inBaseUnits:1e3*b(.9144)},"cubic-miles":{inBaseUnits:1e3*b(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},w=function(){const e={};for(const t in v)for(const r in v[t].units)e[r]=t;return e}();function _(e){const t=w[e];if(t)return t;throw new Error("unknown measure")}function x(e,t=null){return t=t||_(e),v[t].baseUnit===e}function S(e,t,r){if(t===r)return e;const n=_(t);if(n!==_(r))throw new Error("incompatible units");const i=x(t,n)?e:function(e,t,r){return e*v[r].units[t].inBaseUnits}(e,t,n);return x(r,n)?i:function(e,t,r){return e/v[r].units[t].inBaseUnits}(i,r,n)}function I(e,t,r){return S(e,t,"meters")/(r*Math.PI/180)}function E(e){return y.fromJSON(e.toLowerCase())||null}function C(e){if(e&&"object"==typeof e&&!(0,l.N$)(e))return 1;const t=M(e);return t>1e5?1:t}function O(e){return M(e)>=(e instanceof o.Z?(0,s.Iu)(e).metersPerDegree:1e5)?"meters":F(e)}function M(e,t=a.sv.metersPerDegree){return T(e,!0)||t}function T(e,t=!1){let r,n,i=null;if(null!=e&&("object"==typeof e?(r=e.wkid,n=e.wkt):"number"==typeof e?r=e:"string"==typeof e&&(n=e)),r){if((0,l.o$)(r))return a.yr.metersPerDegree;if((0,l.ME)(r))return a.Z1.metersPerDegree;i=h.values[h[r]],!i&&t&&m.has(r)&&(i=d)}else n&&(P(n)?i=U(p.exec(n),i):R(n)&&(i=U(f.exec(n),i)));return i}function U(e,t){return e&&e[1]?N(e[1]):t}function N(e){return parseFloat(e.split(",")[1])}function F(e){let t,r,n=null;if(null!=e&&("object"==typeof e?(t=e.wkid,r=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(r=e)),t)n=h.units[h[t]];else if(r){const e=P(r)?p:R(r)?f:null;if(e){const t=e.exec(r);t&&t[1]&&(n=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||-1===h.units.indexOf(r)){const t=N(e);r=null;const n=h.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=h.units[e];break}}return r}(t[1]))}}return(0,i.pC)(n)?E(n):null}function R(e){return/^GEOCCS/i.test(e)}function P(e){return/^PROJCS/i.test(e)}const A={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},D={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},L=(0,n.wY)()(A),j=(0,n.wY)()(D);(0,n.wY)()({...A,...D})},17452:(e,t,r)=>{r.d(t,{R9:()=>b,qg:()=>T,tD:()=>R,ZN:()=>pe,fl:()=>he,Ie:()=>ue,sJ:()=>z,AH:()=>J,io:()=>K,L:()=>S,TI:()=>x,vt:()=>ae,oh:()=>L,P$:()=>H,Ml:()=>fe,ed:()=>P,b7:()=>M,D6:()=>j,tm:()=>A,YP:()=>V,jc:()=>Y,HK:()=>W,$U:()=>re,oC:()=>ee,kl:()=>q,v_:()=>G,hF:()=>$,_l:()=>Q,PF:()=>k,Fv:()=>B,B7:()=>O,u0:()=>E,Yd:()=>oe,Hu:()=>de,Qj:()=>le,hO:()=>ne,mN:()=>I});var n=r(68773),i=r(20102),s=r(92604),o=r(70586);const a=s.Z.getLogger("esri.core.urlUtils"),l=n.Z.request,u="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,d=/^\s*http:/i,p=/^\s*https:/i,h=/^\s*file:/i,f=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class b{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,o.j0)(this.uri.match(y));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,o.j0)(this.authority.match(g)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v={};let w=new b(n.Z.applicationUrl);let _=function(){const e=(0,o.j0)(w.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${w.scheme}://${w.host}${null!=w.port?`:${w.port}`:""}${t}`}();const x=()=>w,S=()=>_;function I(e){const t={path:null,query:null},r=new b(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=E(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function E(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,i;t<0?(n=decodeURIComponent(e),i=""):(n=decodeURIComponent(e.slice(0,t)),i=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(i):r[n]=i}return r}function C(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function O(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const i=encodeURIComponent(r)+"=",s=t&&t[r];return s?i+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>C(e)?i+encodeURIComponent(JSON.stringify(e)):i+encodeURIComponent(e))).join("&"):C(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function M(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=re(e);const n=P(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(u),new i.Z("urlutils:proxy-not-set",u);return t&&ie()&&(r=ne(r)),I(r)}function T(e){const t=P(e);let r,n;if(t){const e=N(t.proxyUrl);r=e.path,n=e.query?E(e.query):null}if(r){const t=I(e);e=r+"?"+t.path;const i=O({...n,...t.query});i&&(e=`${e}?${i}`)}return e}const U={path:"",query:""};function N(e){const t=e.indexOf("?");return-1!==t?(U.path=e.slice(0,t),U.query=e.slice(t+1)):(U.path=e,U.query=null),U}function F(e){return(e=se(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=N(e).path),!0)).toLowerCase()}function R(e){const t={proxyUrl:e.proxyUrl,urlPrefix:F(e.urlPrefix)},r=l.proxyRules,n=t.urlPrefix;let i=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;i=e;break}0===t.indexOf(n)&&(i=e+1)}return r.splice(i,0,t),i}function P(e){const t=l.proxyRules,r=F(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function A(e,t){return e=D(e),t=D(t),se(e)===se(t)}function D(e){const t=(e=B(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function L(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=l.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function j(e,t,r=!1){const n=ce(e),i=ce(t);return!(!r&&n.scheme!==i.scheme)&&null!=n.host&&null!=i.host&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function q(e){if("string"==typeof e){if(!V(e))return!0;e=ce(e)}if(j(e,w))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const n=Z(t[r]);for(let t=0;t<n.length;t++)if(j(e,n[t]))return!0}return!1}function Z(e){return v[e]||(te(e)||ee(e)?v[e]=[new b($(e))]:v[e]=[new b(`http://${e}`),new b(`https://${e}`)]),v[e]}function $(e,t=_,r){return ee(e)?r&&r.preserveProtocolRelative?e:"http"===w.scheme&&w.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,o.j0)(G("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function k(e,t=_,r){if(!V(e))return e;const n=B(e),i=n.toLowerCase(),s=B(t).toLowerCase().replace(/\/+$/,""),o=r?B(r).toLowerCase().replace(/\/+$/,""):null;if(o&&0!==s.indexOf(o))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let l=a(i,"/",i.indexOf("//")+2),u=-1;for(;i.slice(0,l+1)===s.slice(0,l)+"/"&&(u=l+1,l!==i.length);)l=a(i,"/",l+1);if(-1===u)return e;if(o&&u<o.length)return e;e=n.slice(u);const c=s.slice(u-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function B(e){return function(e){const t=l.httpsDomains;if(!function(e){return d.test(e)||"http"===w.scheme&&ee(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),f.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===w.scheme&&n===w.authority&&!m.test(e)||(ie()&&n===w.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||ie()&&!P(e))&&(e=ne(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=N(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=$(e=e.trim()))))}function G(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(V(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return h.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(Y(e)||W(e))return null;let r=e.indexOf("://");if(-1===r&&ee(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=se(e,!0)),e}function V(e){return ee(e)||te(e)}function Y(e){return null!=e&&"blob:"===e.slice(0,5)}function W(e){return"data:"===e.slice(0,5)}function J(e){const t=z(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const X=/^data:(.*?)(;base64)?,(.*)$/;function z(e){const t=e.match(X);if(!t)return null;const[,r,n,i]=t;return{mediaType:r,isBase64:!!n,data:i}}function Q(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function K(e,t){(function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);return r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function ee(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function te(e){return c.test(e)}function re(e){return p.test(e)||"https"===w.scheme&&ee(e)}function ne(e){return ee(e)?`https:${e}`:e.replace(d,"https:")}function ie(){return"https"===w.scheme}function se(e,t=!1){return ee(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function oe(e){let t=0;if(V(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ae(e,t){if(!e)return"";const r=I(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const i=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(i,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&V(e)))return e;const n=e.indexOf("//"),i=e.indexOf("/",n+2),s=e.indexOf(":",n+2),o=Math.min(i<0?e.length:i,s<0?e.length:s);return e.slice(n+2,o).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(o)}`}function ce(e){return"string"==typeof e?new b($(e)):(e.scheme||(e.scheme=w.scheme),e)}function de(e,t){const r=I(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function pe(e,t,r){const n=I(e),i=n.query||{};return i[t]=String(r),`${n.path}?${O(i)}`}function he(e,t){const r=I(e),n=r.query||{};for(const e in t)n[e]=t[e];const i=O(n);return i?`${r.path}?${i}`:r.path}function fe(e){if((0,o.Wi)(e))return null;const t=e.match(me);return t?t[1]:null}const me=/.*?\.([^\/]*)$/},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),i=r(6570),s=r(9361),o=r(65091),a=r(13473),l=r(17332),u=r(58901);r(82971),r(86973),r(33955);const c={base:s.Z,key:"type",typeMap:{extent:i.Z,multipoint:o.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,n.N7)(c)},24678:(e,t,r)=>{r.d(t,{GG:()=>a,HQ:()=>l,VY:()=>u,wY:()=>c,Iu:()=>p,e8:()=>h,rS:()=>d});var n=r(82971),i=r(68441),s=r(8744);function o(e){return new n.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const a=o(i.sv),l=o(i.yr),u=o(i.Z1),c=new n.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${i.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function d(e){return e&&((0,s.BZ)(e)||e===l)?l:e&&((0,s.V2)(e)||e===u)?u:a}function p(e){return e&&((0,s.BZ)(e)||e===l)?i.yr:e&&((0,s.V2)(e)||e===u)?i.Z1:i.sv}function h(e){return(0,s.o$)(e)?i.yr:(0,s.ME)(e)?i.Z1:i.sv}},60437:(e,t,r)=>{r.d(t,{Gv:()=>y,Ue:()=>i,cS:()=>p,fS:()=>m,TC:()=>o,pp:()=>a,JR:()=>h,al:()=>s,t8:()=>d,Tn:()=>c,op:()=>u,dp:()=>l});var n=r(70586);function i(e=g){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,r,n,s,o,a=i()){return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a[4]=s,a[5]=o,a}function o(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function l(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function u(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function c(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function p(e){return e?d(e,y):i(y)}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function f(e){return 6===e.length}function m(e,t,r){if((0,n.Wi)(e)||(0,n.Wi)(t))return e===t;if(!f(e)||!f(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(6570),r(24470);const y=[1/0,1/0,1/0,-1/0,-1/0,-1/0],g=[0,0,0,0,0,0];i()},24470:(e,t,r)=>{r.d(t,{Gv:()=>p,SO:()=>u,r3:()=>d,Ue:()=>s,oJ:()=>a,al:()=>o,kK:()=>c,HH:()=>l}),r(80442),r(22021);var n=r(70586),i=r(6570);function s(e=h){return[e[0],e[1],e[2],e[3]]}function o(e,t,r,n,i=s()){return i[0]=e,i[1]=t,i[2]=r,i[3]=n,i}function a(e,t=s()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function l(e,t){return new i.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function u(e){return function(e){return(0,n.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function c(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function d(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}const p=[1/0,1/0,-1/0,-1/0],h=[0,0,0,0]},33955:(e,t,r)=>{r.d(t,{im:()=>m,q9:()=>b,Ji:()=>y,YX:()=>c,aW:()=>d,wp:()=>p,oU:()=>f,l9:()=>h});var n=r(70586),i=r(6570),s=r(9361),o=r(65091),a=r(13473),l=r(17332),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function d(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths}function f(e){return void 0!==e.rings}function m(e){return(0,n.Wi)(e)?null:e instanceof s.Z?e:p(e)?a.Z.fromJSON(e):h(e)?u.Z.fromJSON(e):f(e)?l.Z.fromJSON(e):d(e)?o.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function y(e){return e?p(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":d(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:o.Z};function b(e){return e&&g[e]||null}},91040:(e,t,r)=>{r.d(t,{yZ:()=>i});var n=r(67900);function i(e,t){const r=t||e.extent,i=e.width,s=(0,n.c9)(r&&r.spatialReference);return r&&i?r.width/i*s*n.hd*96:0}},86973:(e,t,r)=>{r.d(t,{Mk:()=>i,P$:()=>s});var n=r(35454);const i=(0,n.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,n.wY)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},40330:(e,t,r)=>{r.d(t,{Dp:()=>u,id:()=>a,qh:()=>l,i8:()=>s,Nv:()=>o});var n=r(80442),i=r(17452);const s="4.23",o={async request(e,t){var n;const{default:s}=await r.e(3172).then(r.bind(r,3172)),o=e.options,a=o.responseType;o.signal=null==t?void 0:t.signal,o.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,i.oh)(e.url))&&n.after?a:"array-buffer";const l=await s(e.url,o),u={data:l.data,ssl:l.ssl};switch(l.requestOptions.responseType){case"native-request-init":return delete u.data.signal,u;case"blob":u.data=await u.data.arrayBuffer();break;case"json":u.data=(new TextEncoder).encode(JSON.stringify(u.data)).buffer;break;case"text":u.data=(new TextEncoder).encode(u.data).buffer}return{result:u,transferList:[u.data]}}};let a;function l(e){a=e}function u(e){const t=a&&a.findCredential(e);return t&&t.token?(0,i.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},29600:(e,t,r)=>{r.d(t,{Z:()=>w});var n=r(43697),i=r(68773),s=(r(66577),r(3172)),o=r(20102),a=r(32448),l=r(10699),u=r(83379),c=r(92604),d=r(95330),p=r(17452),h=r(5600),f=(r(67676),r(80442),r(75215),r(52011)),m=r(6570),y=r(82971);let g=0;const b=c.Z.getLogger("esri.layers.Layer");let v=class extends(a.Z.EventedMixin((0,l.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.Z(-180,-90,180,90,y.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,n=await r.e(3529).then(r.bind(r,63529));try{return await n.fromUrl(t)}catch(e){throw b.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},n=await r.e(4579).then(r.bind(r,44579));try{return await n.fromItem(t)}catch(e){const r=t&&t.portalItem,n=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||i.Z.portalUrl;throw b.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+n+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,d.D_)(e)||c.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,p.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,n._)([(0,h.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n._)([(0,h.Cb)({type:m.Z})],v.prototype,"fullExtent",void 0),(0,n._)([(0,h.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n._)([(0,h.Cb)({type:String})],v.prototype,"id",void 0),(0,n._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n._)([(0,h.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n._)([(0,h.Cb)()],v.prototype,"parent",void 0),(0,n._)([(0,h.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n._)([(0,h.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n._)([(0,h.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n._)([(0,h.Cb)({type:y.Z})],v.prototype,"spatialReference",void 0),(0,n._)([(0,h.Cb)({type:String})],v.prototype,"title",void 0),(0,n._)([(0,h.Cb)({type:String,readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n._)([(0,h.Cb)()],v.prototype,"url",void 0),(0,n._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n._)([(0,f.j)("esri.layers.Layer")],v);const w=v},25906:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ve});var n=r(43697),i=r(68773),s=r(1692),o=r(51773),a=r(3172),l=r(80539),u=r(57435),c=r(3920),d=r(35454),p=r(22974),h=r(70586),f=r(16453),m=r(95330),y=r(17452),g=r(5600),b=r(75215),v=r(71715),w=r(52011),_=r(30556),x=r(76169),S=r(6570),I=r(82971),E=r(91040),C=r(8744),O=r(29600),M=r(71612),T=r(38009),U=r(16859),N=r(34760),F=r(72965),R=r(28294),P=r(52162),A=r(66677),D=r(21506),L=r(15923);r(67676),r(80442);const j={visible:"visibleSublayers"};let q=class extends((0,c.p)(L.Z)){constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.handles.remove("layer"),e&&this.handles.add([e.sublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("wms-sublayer-update",(e=>this.notifyChange(j[e.propertyName])))],"layer"))}get layers(){const{visibleSublayers:e}=this;return e.filter((e=>e.name)).map((e=>e.name)).join(",")}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,r=null==e?void 0:e.sublayers,n=[],i=e=>{const{minScale:r,maxScale:s,sublayers:o,visible:a}=e;a&&(0===t||(0===r||t<=r)&&(0===s||t>=s))&&(o?o.forEach(i):n.unshift(e))};return null==r||r.forEach(i),n}toJSON(){const{layer:e,layers:t}=this,{imageFormat:r,imageTransparency:n,version:i}=e;return{format:r,request:"GetMap",service:"WMS",styles:"",transparent:n?"TRUE":"FALSE",version:i,layers:t}}};(0,n._)([(0,g.Cb)()],q.prototype,"layer",null),(0,n._)([(0,g.Cb)({readOnly:!0})],q.prototype,"layers",null),(0,n._)([(0,g.Cb)({type:Number})],q.prototype,"scale",void 0),(0,n._)([(0,g.Cb)({readOnly:!0})],q.prototype,"version",null),(0,n._)([(0,g.Cb)({readOnly:!0})],q.prototype,"visibleSublayers",null),q=(0,n._)([(0,w.j)("esri.layers.support.ExportWMSImageParameters")],q);var Z,$=r(61247),k=r(90578);let B=0,G=Z=class extends f.w{constructor(e){super(e),this._sublayersHandles=new $.Z,this.dimensions=null,this.fullExtents=null,this.featureInfoFormat=null,this.featureInfoUrl=null,this.legendUrl=null,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.popupEnabled=!1,this.queryable=!1,this.spatialReferences=null}get description(){return this._get("description")}set description(e){this._set("description",e)}get fullExtent(){return this._get("fullExtent")}set fullExtent(e){this._set("fullExtent",e)}readExtent(e,t){return(e=t.extent)?S.Z.fromJSON(e):null}get id(){const e=this._get("id");return null==e?B++:e}set id(e){this._set("id",e)}readLegendUrl(e,t){return t?t.legendUrl||t.legendURL:null}set layer(e){this._set("layer",e),this.sublayers&&this.sublayers.forEach((t=>t.layer=e))}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get name(){return this._get("name")}set name(e){this._set("name",e)}set sublayers(e){const t=this._get("sublayers");t&&(t.forEach((e=>{e.layer=null})),this._sublayersHandles.removeAll(),this._sublayersHandles=null),e&&(e.forEach((e=>{e.parent=this,e.layer=this.layer})),this._sublayersHandles.add([e.on("after-add",(({item:e})=>{e.parent=this,e.layer=this.layer})),e.on("after-remove",(({item:e})=>{e.parent=null,e.layer=null}))])),this._set("sublayers",e)}castSublayers(e){return(0,b.se)(l.Z.ofType(Z),e)}get title(){return this._get("title")}set title(e){this._set("title",e)}get visible(){return this._get("visible")}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new Z;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents.map((e=>e.clone()))),this.hasOwnProperty("featureInfoFormat")&&(e.featureInfoFormat=this.featureInfoFormat),this.hasOwnProperty("featureInfoUrl")&&(e.featureInfoUrl=this.featureInfoUrl),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers&&this.sublayers.map((e=>e.clone()))),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences.map((e=>e))),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const r=this.layer;this._get(e)!==t&&(this._set(e,t),r&&r.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,n._)([(0,g.Cb)()],G.prototype,"description",null),(0,n._)([(0,g.Cb)({readOnly:!0})],G.prototype,"dimensions",void 0),(0,n._)([(0,g.Cb)({value:null})],G.prototype,"fullExtent",null),(0,n._)([(0,v.r)("fullExtent",["extent"])],G.prototype,"readExtent",null),(0,n._)([(0,g.Cb)()],G.prototype,"fullExtents",void 0),(0,n._)([(0,g.Cb)()],G.prototype,"featureInfoFormat",void 0),(0,n._)([(0,g.Cb)()],G.prototype,"featureInfoUrl",void 0),(0,n._)([(0,g.Cb)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],G.prototype,"id",null),(0,n._)([(0,g.Cb)({type:String,json:{origins:{"web-document":{read:{source:["legendUrl","legendURL"]},write:{target:"legendUrl",ignoreOrigin:!0}}},read:{source:"legendURL"},write:{ignoreOrigin:!0}}})],G.prototype,"legendUrl",void 0),(0,n._)([(0,v.r)(["web-document"],"legendUrl")],G.prototype,"readLegendUrl",null),(0,n._)([(0,g.Cb)({value:!0,type:Boolean,json:{read:{source:"showLegend"},write:{target:"showLegend"},origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],G.prototype,"legendEnabled",void 0),(0,n._)([(0,g.Cb)({value:null})],G.prototype,"layer",null),(0,n._)([(0,g.Cb)()],G.prototype,"maxScale",void 0),(0,n._)([(0,g.Cb)()],G.prototype,"minScale",void 0),(0,n._)([(0,g.Cb)({readOnly:!0})],G.prototype,"effectiveScaleRange",null),(0,n._)([(0,g.Cb)({type:String,value:null,json:{read:{source:"name"},write:{ignoreOrigin:!0}}})],G.prototype,"name",null),(0,n._)([(0,g.Cb)()],G.prototype,"parent",void 0),(0,n._)([(0,g.Cb)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],G.prototype,"popupEnabled",void 0),(0,n._)([(0,g.Cb)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],G.prototype,"queryable",void 0),(0,n._)([(0,g.Cb)()],G.prototype,"sublayers",null),(0,n._)([(0,k.p)("sublayers")],G.prototype,"castSublayers",null),(0,n._)([(0,g.Cb)({type:[Number],json:{read:{source:"spatialReferences"}}})],G.prototype,"spatialReferences",void 0),(0,n._)([(0,g.Cb)({type:String,value:null,json:{write:{ignoreOrigin:!0}}})],G.prototype,"title",null),(0,n._)([(0,g.Cb)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],G.prototype,"visible",null),G=Z=(0,n._)([(0,w.j)("esri.layers.support.WMSSublayer")],G);const H=G;var V=r(20102);const Y={84:4326,83:4269,27:4267};function W(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const r=e.documentElement;if("ServiceExceptionReport"===r.nodeName){const e=Array.prototype.slice.call(r.childNodes).map((e=>e.textContent)).join("\r\n");throw new V.Z("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const n=Q("Capability",r),i=Q("Service",r),s=Q("Request",n);if(!n||!i||!s)return null;const o=Q("Layer",n);if(!o)return null;const a="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",l=ee("Title",i,"")||ee("Name",i,""),u=ee("AccessConstraints",i,""),c=ee("Abstract",i,""),d=parseInt(ee("MaxWidth",i,"5000"),10),p=parseInt(ee("MaxHeight",i,"5000"),10),h=ne(s,"GetMap"),f=re(s,"GetMap"),m=se(o,a,t);let y,g,b,v=0;if(Array.prototype.slice.call(n.childNodes).forEach((e=>{"Layer"===e.nodeName&&(0===v?y=e:1===v?(m.name&&(m.name="",m.sublayers.push(se(y,a,t))),m.sublayers.push(se(e,a,t))):m.sublayers.push(se(e,a,t)),v++)})),!m)return null;const w=m.fullExtents;if(g=m.sublayers,g||(g=[]),0===g.length&&g.push(m),b=m.extent,!b){const e=new S.Z(g[0].extent);m.extent=e.toJSON(),b=m.extent}const _=m.spatialReferences.length>0?m.spatialReferences:J(m),x=re(s,"GetFeatureInfo");let I;if(x){const e=ne(s,"GetFeatureInfo");e.indexOf("text/html")>-1?I="text/html":e.indexOf("text/plain")>-1&&(I="text/plain")}if(!I){const e=function(t){t&&(t.queryable=!1,t.sublayers&&t.sublayers.forEach((t=>{e(t)})))};e(m)}const E=X(g),C=m.minScale||0,O=m.maxScale||0,M=m.dimensions,T=E.reduce(((e,t)=>e.concat(t.dimensions)),[]),U=M.concat(T).filter(ae);let N=null;if(U.length>0){let e=Number.POSITIVE_INFINITY,t=Number.NEGATIVE_INFINITY;U.forEach((r=>{const{extent:n}=r;!function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(n)?n.forEach((r=>{e=Math.min(e,r.min.getTime()),t=Math.max(t,r.max.getTime())})):n.forEach((r=>{e=Math.min(e,r.getTime()),t=Math.max(t,r.getTime())}))})),N={startTimeField:null,endTimeField:null,trackIdField:null,timeExtent:[e,t]}}return{copyright:u,description:c,dimensions:M,extent:b,fullExtents:w,featureInfoFormat:I,featureInfoUrl:x,mapUrl:f,maxWidth:d,maxHeight:p,maxScale:O,minScale:C,layers:E,spatialReferences:_,supportedImageFormatTypes:h,timeInfo:N,title:l,version:a}}function J(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=J(t);if(e.length>0)return e}return[]}function X(e){let t=[];return e.forEach((e=>{t.push(e),e.sublayers&&e.sublayers.length&&(t=t.concat(X(e.sublayers)),delete e.sublayers)})),t}function z(e,t,r){var n;return null!=(n=t.getAttribute(e))?n:r}function Q(e,t){for(let r=0;r<t.childNodes.length;r++){const n=t.childNodes[r];if(oe(n)&&n.nodeName===e)return n}return null}function K(e,t){const r=[];for(let n=0;n<t.childNodes.length;n++){const i=t.childNodes[n];oe(i)&&i.nodeName===e&&r.push(i)}return r}function ee(e,t,r){const n=Q(e,t);return n?n.textContent:r}function te(e,t,r){if(!e)return null;const n=parseFloat(e.getAttribute("minx")),i=parseFloat(e.getAttribute("miny")),s=parseFloat(e.getAttribute("maxx")),o=parseFloat(e.getAttribute("maxy"));let a,l,u,c;r?(a=isNaN(i)?-Number.MAX_VALUE:i,l=isNaN(n)?-Number.MAX_VALUE:n,u=isNaN(o)?Number.MAX_VALUE:o,c=isNaN(s)?Number.MAX_VALUE:s):(a=isNaN(n)?-Number.MAX_VALUE:n,l=isNaN(i)?-Number.MAX_VALUE:i,u=isNaN(s)?Number.MAX_VALUE:s,c=isNaN(o)?Number.MAX_VALUE:o);const d=new I.Z({wkid:t});return new S.Z({xmin:a,ymin:l,xmax:u,ymax:c,spatialReference:d})}function re(e,t){const r=Q(t,e);if(r){const e=Q("DCPType",r);if(e){const t=Q("HTTP",e);if(t){const e=Q("Get",t);if(e){let t=function(e,t,r,n){const i=Q("OnlineResource",r);return i?z("xlink:href",i,null):null}(0,0,e);if(t)return t.indexOf("&")===t.length-1&&(t=t.substring(0,t.length-1)),function(e,t){const r=[],n=(0,y.mN)(e);for(const e in n.query)n.query.hasOwnProperty(e)&&-1===t.indexOf(e.toLowerCase())&&r.push(e+"="+n.query[e]);return n.path+(r.length?"?"+r.join("&"):"")}(t,["service","request"])}}}}return null}function ne(e,t){const r=K("Operation",e);if(0===r.length)return K("Format",Q(t,e)).map((e=>e.textContent));const n=[];return r.forEach((e=>{e.getAttribute("name")===t&&K("Format",e).forEach((e=>{n.push(e.textContent)}))})),n}function ie(e,t,r){const n=Q(t,e);if(!n)return r;const{textContent:i}=n;if(null==i||""===i)return r;const s=Number(i);return isNaN(s)?r:s}function se(e,t,r){var n;if(!e)return null;const i={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:"1"===e.getAttribute("queryable"),spatialReferences:[],sublayers:null},s=Q("LatLonBoundingBox",e),o=Q("EX_GeographicBoundingBox",e);let a=null;s&&(a=te(s,4326)),o&&(a=new S.Z(0,0,0,0,new I.Z({wkid:4326})),a.xmin=parseFloat(ee("westBoundLongitude",o,"0")),a.ymin=parseFloat(ee("southBoundLatitude",o,"0")),a.xmax=parseFloat(ee("eastBoundLongitude",o,"0")),a.ymax=parseFloat(ee("northBoundLatitude",o,"0"))),s||o||(a=new S.Z(-180,-90,180,90,new I.Z({wkid:4326}))),i.minScale=ie(e,"MaxScaleDenominator",0),i.maxScale=ie(e,"MinScaleDenominator",0);const l=["1.0.0","1.1.0","1.1.1"].indexOf(t)>-1?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach((e=>{if("Name"===e.nodeName)i.name=e.textContent||"";else if("Title"===e.nodeName)i.title=e.textContent||"";else if("Abstract"===e.nodeName)i.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const r=e.getAttribute(l);if(r&&0===r.indexOf("EPSG:")){const n=parseInt(r.substring(5),10);0===n||isNaN(n)||a||(a="1.3.0"===t?te(e,n,(0,P.A)(n)):te(e,n))}const n=r&&r.indexOf(":");if(n&&n>-1){let s=parseInt(r.substring(n+1,r.length),10);0===s||isNaN(s)||(s=Y[s]?Y[s]:s);const o="1.3.0"===t?te(e,s,(0,P.A)(s)):te(e,s);i.fullExtents.push(o)}}else if(e.nodeName===l)e.textContent.split(" ").forEach((e=>{const t=e.includes(":")?parseInt(e.split(":")[1],10):parseInt(e,10);if(0!==t&&!isNaN(t)){const e=Y[t]?Y[t]:t;i.spatialReferences.includes(e)||i.spatialReferences.push(e)}}));else if("Style"!==e.nodeName||i.legendURL){if("Layer"===e.nodeName){const n=se(e,t,r);n&&(n.parentLayerId=i.id,i.sublayers||(i.sublayers=[]),i.sublayers.push(n))}}else{const t=Q("LegendURL",e);if(t){const e=Q("OnlineResource",t);e&&(i.legendURL=e.getAttribute("xlink:href"))}}})),i.extent=null==(n=a)?void 0:n.toJSON(),i.dimensions=K("Dimension",e).filter((e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent)).map((e=>{const t=e.getAttribute("name"),r=e.getAttribute("units"),n=e.textContent,i=e.getAttribute("unitSymbol"),s=e.getAttribute("default"),o="0"!==z("default",e,"0"),a="0"!==z("nearestValue",e,"0"),l="0"!==z("current",e,"0");return ae({name:t,units:r})?{name:"time",units:"ISO8601",extent:ce(n),default:ce(s),multipleValues:o,nearestValue:a,current:l}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:r})?{name:"elevation",units:r,extent:le(n),unitSymbol:i,default:le(s),multipleValues:o,nearestValue:a}:{name:t,units:r,extent:ue(n),unitSymbol:i,default:ue(s),multipleValues:o,nearestValue:a}})),i}function oe(e){return e.nodeType===Node.ELEMENT_NODE}function ae(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function le(e){if(!e)return null;const t=-1!==e.indexOf("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}})).filter((e=>e)):r.map((e=>parseFloat(e)))}function ue(e){if(!e)return null;const t=-1!==e.indexOf("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}})).filter((e=>e)):r}function ce(e){if(!e)return null;const t=-1!==e.indexOf("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:new Date(t[0]),max:new Date(t[1]),resolution:t.length>=3&&"0"!==t[2]?de(t[2]):void 0}})).filter((e=>e)):r.map((e=>new Date(e)))}function de(e){const t=e.match(/(?:p(\d+y|\d+(?:.|,)\d+y)?(\d+m|\d+(?:.|,)\d+m)?(\d+d|\d+(?:.|,)\d+d)?)?(?:t(\d+h|\d+(?:.|,)\d+h)?(\d+m|\d+(?:.|,)\d+m)?(\d+s|\d+(?:.|,)\d+s)?)?/i);return t?{years:pe(t[1]),months:pe(t[2]),days:pe(t[3]),hours:pe(t[4]),minutes:pe(t[5]),seconds:pe(t[6])}:null}function pe(e){if(!e)return 0;const t=e.match(/(?:\d+(?:.|,)\d+|\d+)/);if(!t)return 0;const r=t[0].replace(",",".");return Number(r)}function he(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}const fe=new Set([102100,3857,102113,900913]),me=new Set([3395,54004]),ye=new d.Xn({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});let ge=class extends((0,c.p)((0,M.h)((0,R.n)((0,N.Q)((0,F.M)((0,T.q)((0,U.I)((0,f.R)(O.Z))))))))){constructor(...e){super(...e),this.allSublayers=new u.Z({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormat=null,this.featureInfoUrl=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.url=null,this.version=null,this.watch("sublayers",((e,t)=>{if(t){for(const e of t)e.layer=null;this.handles.remove("wms-sublayer")}if(e){for(const t of e)t.parent=this,t.layer=this;this.handles.add([e.on("after-add",(({item:e})=>{e.parent=this,e.layer=this})),e.on("after-remove",(({item:e})=>{e.parent=null,e.layer=null}))],"wms-sublayer")}}),!0)}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,h.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(m.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readFullExtentFromItemOrMap(e,t){const r=t.extent;return new S.Z({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]})}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.indexOf("image/png")>-1?"image/png":r&&r[0]}readSpatialReferenceFromItemOrDocument(e,t){return new I.Z(t.spatialReferences[0])}writeSpatialReferences(e,t){const r=this.spatialReference&&this.spatialReference.wkid;e&&r?(t.spatialReferences=e.filter((e=>e!==r)),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return be(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return be(t.layers,r)}writeSublayers(e,t,r,n){t.layers=[];const i=new Map,s=e.flatten((({sublayers:e})=>e&&e.toArray())).toArray();s.forEach((e=>{"number"==typeof e.parent.id&&(i.has(e.parent.id)?i.get(e.parent.id).push(e.id):i.set(e.parent.id,[e.id]))})),s.forEach((e=>{const r={sublayer:e,...n},s=e.write({parentLayerId:"number"==typeof e.parent.id?e.parent.id:-1},r);if(i.has(e.id)&&(s.sublayerIds=i.get(e.id)),!e.sublayers&&e.name){const n=e.write({},r);delete n.id,t.layers.push(n)}})),t.visibleLayers=s.filter((e=>e.visible&&!e.sublayers)).map((e=>e.name))}createExportImageParameters(e,t,r,n){const i=n&&n.pixelRatio||1,s=(0,E.yZ)({extent:e,width:t})*i,o=new q({layer:this,scale:s}),{xmin:a,ymin:l,xmax:u,ymax:c,spatialReference:d}=e,p=function(e,t){let r=e.wkid;return(0,h.Wi)(t)?r:(!t.includes(r)&&e.latestWkid&&(r=e.latestWkid),fe.has(r)?t.find((e=>fe.has(e)))||t.find((e=>me.has(e)))||102100:r)}(d,this.spatialReferences),f="1.3.0"===this.version&&(0,P.A)(p)?`${l},${a},${c},${u}`:`${a},${l},${u},${c}`,m=o.toJSON();return{bbox:f,["1.3.0"===this.version?"crs":"srs"]:isNaN(p)?void 0:"EPSG:"+p,...m}}async fetchImage(e,t,r,n){var i,s;const o=this.mapUrl,l=this.createExportImageParameters(e,t,r,n);if(!l.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const u=null==n||null==(i=n.timeExtent)?void 0:i.start,c=null==n||null==(s=n.timeExtent)?void 0:s.end,d=(0,h.pC)(u)&&(0,h.pC)(c)?u.getTime()===c.getTime()?he(u):`${he(u)}/${he(c)}`:void 0,p={responseType:"image",query:this._mixCustomParameters({width:t,height:r,...l,time:d,...this.refreshParameters}),signal:null==n?void 0:n.signal};return(0,a.default)(o,p).then((e=>e.data))}fetchFeatureInfo(e,t,r,n,i){const a=(0,E.yZ)({extent:e,width:t}),l=function(e){return e.length?e.filter((e=>e.popupEnabled&&e.name&&e.queryable)).map((e=>e.name)).join(","):""}(new q({layer:this,scale:a}).visibleSublayers);if(!this.featureInfoUrl||!l)return null;const u="1.3.0"===this.version?{I:n,J:i}:{x:n,y:i},c={query_layers:l,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,...u},d={...this.createExportImageParameters(e,t,r),...c},p=this._mixCustomParameters(d),h=(0,y.fl)(this.featureInfoUrl,p),f=document.createElement("iframe");f.src=h,f.style.border="none",f.style.margin="0",f.style.width="100%",f.setAttribute("sandbox","");const m=new o.Z({title:this.title,content:f});return new s.Z({sourceLayer:this,popupTemplate:m})}findSublayerById(e){return this.allSublayers.find((t=>t.id===e))}findSublayerByName(e){return this.allSublayers.find((t=>t.name===e))}supportsSpatialReference(e){return(0,A.G)(this.url)||this.spatialReferences.some((t=>{const r=900913===t?I.Z.WebMercator:new I.Z({wkid:t});return(0,C.fS)(r,e)}))}async _fetchService(e){if(!this.resourceInfo){this.parsedUrl.query&&this.parsedUrl.query.service&&(this.parsedUrl.query.SERVICE=this.parsedUrl.query.service,delete this.parsedUrl.query.service),this.parsedUrl.query&&this.parsedUrl.query.request&&(this.parsedUrl.query.REQUEST=this.parsedUrl.query.request,delete this.parsedUrl.query.request);const t=await(0,a.default)(this.parsedUrl.path,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...this.parsedUrl.query,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=W(t.data)}if(this.parsedUrl){const e=new y.R9(this.parsedUrl.path);"https"!==e.scheme||e.port&&"443"!==e.port||-1!==i.Z.request.httpsDomains.indexOf(e.host)||i.Z.request.httpsDomains.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const r in t)e[r.toLowerCase()]=t[r];return e}};function be(e,t,r){const n=new Map;e.every((e=>null==e.id))&&(e=(0,p.d9)(e)).forEach(((e,t)=>e.id=t));for(const i of e){const e=new H;e.read(i,t),-1===(null==r?void 0:r.indexOf(e.name))&&(e.visible=!1),n.set(e.id,e)}const i=[];for(const t of e){const e=n.get(t.id);if(null!=t.parentLayerId&&t.parentLayerId>=0){const r=n.get(t.parentLayerId);r.sublayers||(r.sublayers=new l.Z),r.sublayers.unshift(e)}else i.unshift(e)}return i}(0,n._)([(0,g.Cb)({readOnly:!0})],ge.prototype,"allSublayers",void 0),(0,n._)([(0,g.Cb)({json:{type:Object,write:!0}})],ge.prototype,"customParameters",void 0),(0,n._)([(0,g.Cb)({json:{type:Object,write:!0}})],ge.prototype,"customLayerParameters",void 0),(0,n._)([(0,g.Cb)({type:String,json:{write:!0}})],ge.prototype,"copyright",void 0),(0,n._)([(0,g.Cb)()],ge.prototype,"description",void 0),(0,n._)([(0,g.Cb)({readOnly:!0})],ge.prototype,"dimensions",void 0),(0,n._)([(0,g.Cb)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],ge.prototype,"fullExtent",void 0),(0,n._)([(0,v.r)(["web-document","portal-item"],"fullExtent",["extent"])],ge.prototype,"readFullExtentFromItemOrMap",null),(0,n._)([(0,_.c)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],ge.prototype,"writeFullExtent",null),(0,n._)([(0,g.Cb)()],ge.prototype,"fullExtents",void 0),(0,n._)([(0,g.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"featureInfoFormat",void 0),(0,n._)([(0,g.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"featureInfoUrl",void 0),(0,n._)([(0,g.Cb)({type:String,json:{origins:{"web-document":{default:"image/png",type:ye.jsonValues,read:{reader:ye.read,source:"format"},write:{writer:ye.write,target:"format"}}}}})],ge.prototype,"imageFormat",void 0),(0,n._)([(0,v.r)("imageFormat",["supportedImageFormatTypes"])],ge.prototype,"readImageFormat",null),(0,n._)([(0,g.Cb)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],ge.prototype,"imageMaxHeight",void 0),(0,n._)([(0,g.Cb)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],ge.prototype,"imageMaxWidth",void 0),(0,n._)([(0,g.Cb)()],ge.prototype,"imageTransparency",void 0),(0,n._)([(0,g.Cb)(D.rn)],ge.prototype,"legendEnabled",void 0),(0,n._)([(0,g.Cb)({type:["show","hide","hide-children"]})],ge.prototype,"listMode",void 0),(0,n._)([(0,g.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"mapUrl",void 0),(0,n._)([(0,g.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],ge.prototype,"isReference",void 0),(0,n._)([(0,g.Cb)({type:["WMS"]})],ge.prototype,"operationalLayerType",void 0),(0,n._)([(0,g.Cb)()],ge.prototype,"resourceInfo",void 0),(0,n._)([(0,g.Cb)({type:I.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],ge.prototype,"spatialReference",void 0),(0,n._)([(0,v.r)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],ge.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,n._)([(0,g.Cb)({type:[b.z8],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],ge.prototype,"spatialReferences",void 0),(0,n._)([(0,_.c)(["web-document","portal-item"],"spatialReferences")],ge.prototype,"writeSpatialReferences",null),(0,n._)([(0,g.Cb)({type:l.Z.ofType(H),json:{write:{target:"layers",overridePolicy(e,t,r){if(function(e,t){return e.some((e=>{for(const r in e)if((0,x.df)(e,r,null,t))return!0;return!1}))}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],ge.prototype,"sublayers",void 0),(0,n._)([(0,v.r)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],ge.prototype,"readSublayersFromItemOrMap",null),(0,n._)([(0,v.r)("service","sublayers",["layers"])],ge.prototype,"readSublayers",null),(0,n._)([(0,_.c)("sublayers",{layers:{type:[H]},visibleLayers:{type:[String]}})],ge.prototype,"writeSublayers",null),(0,n._)([(0,g.Cb)({json:{read:!1},readOnly:!0,value:"wms"})],ge.prototype,"type",void 0),(0,n._)([(0,g.Cb)(D.HQ)],ge.prototype,"url",void 0),(0,n._)([(0,g.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"version",void 0),ge=(0,n._)([(0,w.j)("esri.layers.WMSLayer")],ge);const ve=ge},16859:(e,t,r)=>{r.d(t,{I:()=>w});var n=r(43697),i=r(40330),s=r(3172),o=r(66643),a=r(20102),l=r(92604),u=r(70586),c=r(95330),d=r(17452),p=r(5600),h=(r(67676),r(80442),r(75215),r(71715)),f=r(52011),m=r(30556),y=r(65587),g=r(15235),b=r(86082);const v=l.Z.getLogger("esri.layers.mixins.PortalLayer"),w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const n=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await n.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,c.D_)(e)||v.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==i.id?void 0:i.id.findCredential(this.url):null;if(!t)return!0;const r=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const n=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(n)return n;const a=i.id.findServerInfo(this.url);if(null==a||!a.owningSystemUrl)return null;const l=`${a.owningSystemUrl}/sharing/rest`,c=y.Z.getDefault();if(c&&c.loaded&&(0,d.Fv)(c.restUrl)===(0,d.Fv)(l))return c.user;const p=`${l}/community/self`,h=(0,u.pC)(e)?e.signal:null,f=await(0,o.q6)((0,s.default)(p,{authMode:"no-prompt",query:{f:"json"},signal:h}));return f.ok?b.default.fromJSON(f.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,n=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||y.Z.getDefault());return r&&n&&!(0,d.tm)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n._)([(0,p.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,n._)([(0,h.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,n._)([(0,m.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,n._)([(0,p.Cb)()],t.prototype,"resourceReferences",void 0),(0,n._)([(0,p.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,n._)([(0,f.j)("esri.layers.mixins.PortalLayer")],t),t},_={credential:null,user:null}},34760:(e,t,r)=>{r.d(t,{Q:()=>g});var n=r(43697),i=r(92604),s=r(95330),o=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(80539),u=(r(20102),r(26258),r(87538));const c=new l.Z,d=new WeakMap;function p(e){return e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function h(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:h(t,e%t):0}let f=0,m=0;function y(){const e=Date.now();for(const r of c)if(r.refreshInterval){var t;e-(null!=(t=d.get(r))?t:0)+5>=6e4*r.refreshInterval&&(d.set(r,e),r.refresh(e))}}(0,u.EH)((()=>{const e=Date.now();let t=0;for(const r of c)t=h(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?d.get(r)||d.set(r,e):d.delete(r);if(t!==m){if(m=t,clearInterval(f),0===m)return void(f=0);f=setInterval(y,m)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,s.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{!function(e){p(e)&&c.push(e)}(this)}),(()=>{}))}destroy(){var e;p(e=this)&&c.includes(e)&&c.remove(e)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,s.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{i.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,n._)([(0,o.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,n._)([(0,o.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,n._)([(0,o.Cb)()],t.prototype,"refreshParameters",null),t=(0,n._)([(0,a.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>p});var n=r(43697),i=r(92835),s=r(84552),o=r(5600),a=(r(67676),r(80442),r(75215),r(71715)),l=r(52011),u=r(30547),c=r(35671),d=r(78981);const p=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=d.v.fromJSON(r.timeOffsetUnits);return n&&i?new s.Z({value:n,unit:i}):null}set timeInfo(e){(0,c.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n._)([(0,o.Cb)({type:i.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,n._)([(0,o.Cb)({type:s.Z})],t.prototype,"timeOffset",void 0),(0,n._)([(0,a.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,n._)([(0,o.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,n._)([(0,o.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,n._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},52162:(e,t,r)=>{r.d(t,{A:()=>i});const n=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function i(e){return n.some((([t,r])=>e>=t&&e<=r))}},30547:(e,t,r)=>{r.d(t,{Z:()=>v});var n,i=r(43697),s=r(92835),o=r(84552),a=r(96674),l=r(22974),u=r(70586),c=r(5600),d=(r(75215),r(71715)),p=r(52011),h=r(30556);r(67676),r(80442);let f=n=class extends a.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new n({respectsDaylightSaving:e,timezone:t})}};(0,i._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"respectsDaylightSaving",void 0),(0,i._)([(0,d.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],f.prototype,"readRespectsDaylightSaving",null),(0,i._)([(0,c.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],f.prototype,"timezone",void 0),f=n=(0,i._)([(0,p.j)("esri.layers.support.TimeReference")],f);const m=f;var y,g=r(78981);let b=y=class extends a.wq{constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),n=new Date(t.timeExtent[1]);return new s.Z({start:r,end:n})}writeFullTimeExtent(e,t){e&&(0,u.pC)(e.start)&&(0,u.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new o.Z({value:t.timeInterval,unit:g.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new o.Z({value:t.defaultTimeInterval,unit:g.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const r=e.toJSON();t.timeInterval=r.value,t.timeIntervalUnits=r.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:r,interval:n,startField:i,timeReference:s,fullTimeExtent:o,trackIdField:a,useTime:u}=this;return new y({cumulative:e,endField:t,hasLiveData:r,interval:n,startField:i,timeReference:(0,l.d9)(s),fullTimeExtent:(0,l.d9)(o),trackIdField:a,useTime:u})}};(0,i._)([(0,c.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],b.prototype,"cumulative",void 0),(0,i._)([(0,c.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],b.prototype,"endField",void 0),(0,i._)([(0,c.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"fullTimeExtent",void 0),(0,i._)([(0,d.r)("fullTimeExtent",["timeExtent"])],b.prototype,"readFullTimeExtent",null),(0,i._)([(0,h.c)("fullTimeExtent")],b.prototype,"writeFullTimeExtent",null),(0,i._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"hasLiveData",void 0),(0,i._)([(0,c.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"interval",void 0),(0,i._)([(0,d.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],b.prototype,"readInterval",null),(0,i._)([(0,h.c)("interval")],b.prototype,"writeInterval",null),(0,i._)([(0,c.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],b.prototype,"startField",void 0),(0,i._)([(0,c.Cb)({type:m,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"timeReference",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"trackIdField",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],b.prototype,"useTime",void 0),b=y=(0,i._)([(0,p.j)("esri.layers.support.TimeInfo")],b);const v=b},66677:(e,t,r)=>{r.d(t,{ld:()=>f,B5:()=>d,M8:()=>y,G:()=>w,Qc:()=>p,DR:()=>h,Nm:()=>g,XG:()=>b,a7:()=>m,wH:()=>v});var n=r(70586),i=r(17452),s=r(25929);const o={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},a=Object.values(o),l=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),u=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function d(e){return!!l.test(e)}function p(e){const t=(0,i.mN)(e),r=t.path.match(l)||t.path.match(u);if(!r)return null;const[,n,s,a,c]=r,d=s.indexOf("/");return{title:f(-1!==d?s.slice(d+1):s),serverType:o[a.toLowerCase()],sublayer:null!=c&&""!==c?parseInt(c,10):null,url:{path:n}}}function h(e){const t=(0,i.mN)(e).path.match(c);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function f(e){return(e=e.replace(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,t){const r=[];if(e){const t=p(e);(0,n.pC)(t)&&t.title&&r.push(t.title)}if(t){const e=f(t);r.push(e)}if(2===r.length){if(-1!==r[0].toLowerCase().indexOf(r[1].toLowerCase()))return r[0];if(-1!==r[1].toLowerCase().indexOf(r[0].toLowerCase()))return r[1]}return r.join(" - ")}function y(e){if(!e)return!1;const t=-1!==(e=e.toLowerCase()).indexOf(".arcgis.com/"),r=-1!==e.indexOf("//services")||-1!==e.indexOf("//tiles")||-1!==e.indexOf("//features");return t&&r}function g(e,t){return e?(0,i.Qj)((0,i.Hu)(e,t)):e}function b(e){let{url:t}=e;if(!t)return{url:t};t=(0,i.Hu)(t,e.logger);const r=(0,i.mN)(t),s=p(r.path);let o;if((0,n.pC)(s))null!=s.sublayer&&null==e.layer.layerId&&(o=s.sublayer),t=s.url.path;else if(e.nonStandardUrlAllowed){const e=h(r.path);(0,n.pC)(e)&&(t=e.serviceUrl,o=e.sublayerId)}return{url:(0,i.Qj)(t),layerId:o}}function v(e,t,r,n,o){(0,s.w)(t,n,"url",o),n.url&&null!=e.layerId&&(n.url=(0,i.v_)(n.url,r,e.layerId.toString()))}function w(e){if(!e)return!1;const t=e.toLowerCase(),r=-1!==t.indexOf("/services/"),n=-1!==t.indexOf("/mapserver/wmsserver"),i=-1!==t.indexOf("/imageserver/wmsserver"),s=-1!==t.indexOf("/wmsserver");return r&&(n||i||s)}},35671:(e,t,r)=>{r.d(t,{io:()=>g,AB:()=>y,gd:()=>m,Mu:()=>w,Q0:()=>f,YN:()=>c,UF:()=>p,O5:()=>b,os:()=>_,H7:()=>N,qN:()=>F,Pz:()=>A,Qc:()=>D,vP:()=>k});var n,i,s=r(20102),o=r(78286);(i=n||(n={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",i.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var a=r(59266);const l=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],u=["field","normalizationField"];function c(e,t){if(null!=e&&null!=t)for(const r of Array.isArray(e)?e:[e])if(d(l,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)d(u,e,t)}function d(e,t,r){if(e)for(const n of e){const e=(0,o.hS)(n,t),i=e&&"function"!=typeof e&&r.get(e);i&&(0,o.RB)(n,i.name,t)}}function p(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const r=t.get(e.startField),n=t.get(e.endField);e.startField=r&&r.name||null,e.endField=n&&n.name||null}else{const r=t.get(e.startTimeField),n=t.get(e.endTimeField);e.startTimeField=r&&r.name||null,e.endTimeField=n&&n.name||null}}const h=new Set;function f(e,t){return e&&t?(h.clear(),m(h,e,t),Array.from(h).sort()):[]}function m(e,t,r){var n;if(r)if(null!=t&&null!=(n=t.fields)&&n.length)if(r.includes("*"))for(const{name:r}of t.fields)e.add(r);else for(const n of r)y(e,t,n);else{if(r.includes("*"))return e.clear(),void e.add("*");for(const t of r)e.add(t)}}function y(e,t,r){if("string"==typeof r)if(t){const n=t.get(r);n&&e.add(n.name)}else e.add(r)}async function g(e,t,r){var n;if(!r)return;const{arcadeUtils:i}=await(0,a.LC)(),s=i.extractFieldNames(r,null==t||null==(n=t.fields)?void 0:n.map((e=>e.name)));for(const r of s)y(e,t,r)}function b({displayField:e,fields:t}){return e||(t&&t.length?v(t,"name-or-title")||v(t,"unique-identifier")||v(t,"type-or-category")||function(e){for(const t of e){if(!t||!t.name)continue;const e=t.name.toLowerCase();if(e.indexOf("name")>-1||e.indexOf("title")>-1)return t.name}return null}(t):null)}function v(e,t){for(const r of e)if(r&&r.valueType&&r.valueType===t)return r.name;return null}async function w(e,t){const{labelingInfo:n,fieldsIndex:i}=t;n&&n.length&&await Promise.all(n.map((t=>async function(e,t,n){if(!n)return;const i=n.getLabelExpression(),o=n.where;if("arcade"===i.type)await g(e,t,i.expression);else{const r=i.expression.match(/{[^}]*}/g);r&&r.forEach((r=>{y(e,t,r.slice(1,-1))}))}await async function(e,t,n){if(n&&"1=1"!==n){const i=(await Promise.all([r.e(1534),r.e(5732)]).then(r.bind(r,41534))).WhereClause.create(n,t);if(!i.isStandardized)throw new s.Z("fieldUtils:collectFilterFields","Where clause is not standardized");m(e,t,i.fieldNames)}}(e,t,o)}(e,i,t))))}function _(e){const t=e.defaultValue;return void 0!==t&&T(e,t)?t:e.nullable?null:void 0}function x(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function S(e){return null===e||x(e)}const I="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function E(e){return null===e||I(e)}function C(e){return null!=e&&"string"==typeof e}function O(e){return null===e||C(e)}function M(){return!0}function T(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":r=e.nullable?E:I;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?S:x;break;case"string":case"esriFieldTypeString":r=e.nullable?O:C;break;default:r=M}return 1===arguments.length?r:r(t)}const U=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function N(e){return null!=e&&U.has(e.type)}function F(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var R,P;function A(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function D(e,t){return e.nullable&&null===t?null:N(e)&&!function(e,t){const r="string"==typeof e?L(e):e;return!!r&&(r.isInteger?I(t)&&t>=r.min&&t<=r.max:t>=r.min&&t<=r.max)}(e.type,Number(t))?R.OUT_OF_RANGE:T(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const r="range"in e?e.range[0]:e.minValue,i="range"in e?e.range[1]:e.maxValue;if(+t<r||+t>i)return n.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return n.INVALID_CODED_VALUE}return null}(e.domain,t):null:P.INVALID_TYPE}function L(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return j;case"esriFieldTypeInteger":case"integer":return q;case"esriFieldTypeSingle":case"single":return Z;case"esriFieldTypeDouble":case"double":return $}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(R||(R={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(P||(P={}));const j={min:-32768,max:32767,isInteger:!0},q={min:-2147483648,max:2147483647,isInteger:!0},Z={min:-34e37,max:12e37,isInteger:!1},$={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function k(e,t,r){switch(e){case n.INVALID_CODED_VALUE:return`Value ${r} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case n.VALUE_OUT_OF_RANGE:return`Value ${r} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case P.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case R.OUT_OF_RANGE:{const{min:e,max:n}=L(t.type);return`Value ${r} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${n}`}}}},78981:(e,t,r)=>{r.d(t,{v:()=>n});const n=(0,r(35454).wY)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},99282:(e,t,r)=>{r.d(t,{a:()=>s});var n=r(67900),i=r(68441);const s={inches:(0,n.En)(1,"meters","inches"),feet:(0,n.En)(1,"meters","feet"),"us-feet":(0,n.En)(1,"meters","us-feet"),yards:(0,n.En)(1,"meters","yards"),miles:(0,n.En)(1,"meters","miles"),"nautical-miles":(0,n.En)(1,"meters","nautical-miles"),millimeters:(0,n.En)(1,"meters","millimeters"),centimeters:(0,n.En)(1,"meters","centimeters"),decimeters:(0,n.En)(1,"meters","decimeters"),meters:(0,n.En)(1,"meters","meters"),kilometers:(0,n.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,n.ty)(1,"meters",i.sv.radius)}},59266:(e,t,r)=>{r.d(t,{mz:()=>c,pp:()=>u,WW:()=>a,Yi:()=>l,LC:()=>o}),r(66577);var n=r(70586),i=r(82971);let s;function o(){return s||(s=(async()=>{const e=await Promise.all([r.e(9490),r.e(6690)]).then(r.bind(r,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),s}const a=(e,t,r)=>c.create(e,t,r,null,["$feature"]),l=(e,t,r)=>c.create(e,t,r,null,["$feature","$view"]),u=(e,t,r,n)=>c.create(e,t,r,n,["$feature","$view"]);class c{constructor(e,t,r,n,i,s,o,a){this.script=e,this.evaluate=i;const l=Array.isArray(o)?o:o.fields;this.fields=l,this._syntaxTree=n,this._arcade=t,this._arcadeDictionary=r,this._arcadeFeature=s,this._spatialReference=a,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,r,s,a,l){const{arcade:u,Feature:d,Dictionary:p}=await o(),h=i.Z.fromJSON(t),f=u.parseScript(e,l),m=a.reduce(((e,t)=>({...e,[t]:null})),{});let y=null;(0,n.pC)(s)&&(y=new p(s),y.immutable=!0,m.$config=null);const g=u.scriptUsesGeometryEngine(f)&&u.enableGeometrySupport(),b=u.scriptUsesFeatureSet(f)&&u.enableFeatureSetSupport(),v=u.scriptIsAsync(f)&&u.enableAsyncSupport(),w={vars:m,spatialReference:h,useAsync:!!v},_=new p;_.immutable=!1,_.setField("scale",0);const x=u.compileScript(f,w);return await Promise.all([g,b,v]),new c(e,u,p,f,(e=>("$view"in e&&e.$view&&(_.setField("scale",e.$view.scale),e.$view=_),y&&(e.$config=y),x({vars:e,spatialReference:h}))),new d,r,h)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}repurposeAdapter(e){return this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(e){return this._arcade.referencesMember(this._syntaxTree,e)}referencesFunction(e){return this._arcade.referencesFunction(this._syntaxTree,e)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}},89164:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(43697),i=r(22303),s=r(35454),o=r(96674),a=r(5600),l=(r(67676),r(80442),r(75215),r(71715)),u=r(52011);const c=new s.Xn({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let d=0,p=class extends o.wq{constructor(e){super(e),this.id="sym"+d++,this.type=null,this.color=new i.Z([0,0,0,1])}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,n._)([(0,a.Cb)({type:c.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:c.write}}})],p.prototype,"type",void 0),(0,n._)([(0,a.Cb)({type:i.Z,json:{write:{allowNull:!0}}})],p.prototype,"color",void 0),(0,n._)([(0,l.r)("color")],p.prototype,"readColor",null),p=(0,n._)([(0,u.j)("esri.symbols.Symbol")],p);const h=p},89749:(e,t,r)=>{r.d(t,{t:()=>d});var n=r(43697),i=r(15923),s=r(61247),o=r(70586),a=r(17445),l=r(1654),u=r(5600),c=r(52011);let d=class extends i.Z{constructor(){super(...arguments),this.updating=!1,this.handleId=0,this.handles=new s.Z,this.scheduleHandleId=0,this.pendingPromises=new Set}destroy(){this.removeAll(),this.handles.destroy()}add(e,t,r={}){const n=++this.handleId;r.sync||this._installSyncUpdatingWatch(e,n);const i=(0,a.YP)(e,t,r);return this.handles.add(i,n),{remove:()=>this.handles.remove(n)}}addOnCollectionChange(e,t,{initial:r=!1}={}){const n=++this.handleId;return this.handles.add([(0,a.on)(e,"after-changes",this._createSyncUpdatingCallback(),a.Z_),(0,a.on)(e,"change",t,{onListenerAdd:r?e=>t({added:e.items,removed:[],moved:[],target:e}):void 0})],n),{remove:()=>this.handles.remove(n)}}addPromise(e){if((0,o.Wi)(e))return e;const t=++this.handleId;this.handles.add({remove:()=>{this.pendingPromises.delete(e)&&(0!==this.pendingPromises.size||this.handles.has(p)||this._set("updating",!1))}},t),this.pendingPromises.add(e),this._set("updating",!0);const r=()=>this.handles.remove(t);return e.then(r,r),e}removeAll(){this.pendingPromises.clear(),this.handles.removeAll(),this._set("updating",!1)}_installSyncUpdatingWatch(e,t){const r=this._createSyncUpdatingCallback(),n=(0,a.YP)(e,r,{sync:!0,equals:()=>!1});return this.handles.add(n,t),n}_createSyncUpdatingCallback(){return()=>{this.handles.remove(p),++this.scheduleHandleId;const e=this.scheduleHandleId;this._get("updating")||this._set("updating",!0),this.handles.add((0,l.Os)((()=>{e===this.scheduleHandleId&&(this._set("updating",this.pendingPromises.size>0),this.handles.remove(p))})),p)}}};(0,n._)([(0,u.Cb)({readOnly:!0})],d.prototype,"updating",void 0),d=(0,n._)([(0,c.j)("esri.views.support.WatchUpdatingTracking")],d);const p=-42;var h,f;(f=h||(h={}))[f.NONE=0]="NONE",f[f.SYNC=1]="SYNC",f[f.INIT=2]="INIT"}}]);
|