@arcgis/core 4.26.0-next.20230111 → 4.26.0-next.20230113
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/arcade/ArcadeDate.js +5 -0
- package/arcade/Dictionary.js +1 -1
- package/arcade/Feature.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/arcadeTimeUtils.js +5 -0
- package/arcade/executionError.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcade/functions/date.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/arcade/functions/maths.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/arcade/treeAnalysis.js +1 -1
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{c9477250a5d5ebdef00c.js → 01cd5a9cd4cb1f13691c.js} +1 -1
- package/assets/esri/core/workers/chunks/028f9a133104e78e60d2.js +1 -0
- package/assets/esri/core/workers/chunks/033e6ae5da6afebd993c.js +1 -0
- package/assets/esri/core/workers/chunks/05ab092987251d4a1242.js +1 -0
- package/assets/esri/core/workers/chunks/1186a56dacaf269d5271.js +1 -0
- package/assets/esri/core/workers/chunks/264e1c00936bcafb9a36.js +1 -0
- package/assets/esri/core/workers/chunks/2680392cef77d98ad097.js +1 -0
- package/assets/esri/core/workers/chunks/27ba1889fe9f1812389a.js +1165 -0
- package/assets/esri/core/workers/chunks/2dfb17fa5b6a5d239942.js +1 -0
- package/assets/esri/core/workers/chunks/2e3962506c353b562a88.js +1 -0
- package/assets/esri/core/workers/chunks/30ae4c22f6b8aab9f841.js +1 -0
- package/assets/esri/core/workers/chunks/329e512f210cb3e904f1.js +1 -0
- package/assets/esri/core/workers/chunks/3878efe67f43962b46f8.js +1 -0
- package/assets/esri/core/workers/chunks/3b6748f414437cc6cfde.js +1 -0
- package/assets/esri/core/workers/chunks/41d25407888326c91566.js +1 -0
- package/assets/esri/core/workers/chunks/493e2b00133682748e62.js +1 -0
- package/assets/esri/core/workers/chunks/4b2edcb8ef7fae4f7d28.js +1 -0
- package/assets/esri/core/workers/chunks/{c11d857dca43de2229fc.js → 4c085cee22ff64ce6d1f.js} +1 -1
- package/assets/esri/core/workers/chunks/4d8c53e961275b6a4ee1.js +1 -0
- package/assets/esri/core/workers/chunks/5049771eeffe208a9cb8.js +1 -0
- package/assets/esri/core/workers/chunks/{58d219ffd9dcc45bb0d1.js → 5191f80f2413ee92c875.js} +1 -1
- package/assets/esri/core/workers/chunks/5dfed65b615b33588488.js +1 -0
- package/assets/esri/core/workers/chunks/5e9869849d999aac5756.js +1 -0
- package/assets/esri/core/workers/chunks/6216cd8134703fd9d9b4.js +1 -0
- package/assets/esri/core/workers/chunks/62c8e43741f2d6141f00.js +1 -0
- package/assets/esri/core/workers/chunks/64f137358100a1c818f0.js +1 -0
- package/assets/esri/core/workers/chunks/6f5f81855985db7c1936.js +1 -0
- package/assets/esri/core/workers/chunks/6fba07833345b2d8d373.js +1 -0
- package/assets/esri/core/workers/chunks/{80c7726743baf9f54079.js → 7747ee359d357f6e5858.js} +1 -1
- package/assets/esri/core/workers/chunks/78fd609f334a29ef39dc.js +1 -0
- package/assets/esri/core/workers/chunks/798cd875d64182741364.js +1 -0
- package/assets/esri/core/workers/chunks/{9d247a46e0cfdad26273.js → 8176286f8dd055c8ae05.js} +1 -1
- package/assets/esri/core/workers/chunks/8530ac02c840c89cc1df.js +1 -0
- package/assets/esri/core/workers/chunks/8a69a9b5a04e7321740d.js +1 -0
- package/assets/esri/core/workers/chunks/8bd26c71e78698c16778.js +1 -0
- package/assets/esri/core/workers/chunks/8c12b82612f050492fef.js +1 -0
- package/assets/esri/core/workers/chunks/90653ef5e718bafd6960.js +1 -0
- package/assets/esri/core/workers/chunks/{418922fd99e733df023f.js → 9070aa0a94a9204ded1c.js} +1 -1
- package/assets/esri/core/workers/chunks/{2ac0d2164a1b49e6f057.js → 94633a9bb5fa4f4ba4de.js} +1 -1
- package/assets/esri/core/workers/chunks/969bb94d5bdc9da114e2.js +1 -0
- package/assets/esri/core/workers/chunks/9785dba81a6af339e35a.js +1 -0
- package/assets/esri/core/workers/chunks/99e16173584702577b80.js +1 -0
- package/assets/esri/core/workers/chunks/9aee6f171d4fbac941d9.js +1 -0
- package/assets/esri/core/workers/chunks/a194f90ffe13b3d448b0.js +1 -0
- package/assets/esri/core/workers/chunks/a53d194e3eede703a6df.js +1 -0
- package/assets/esri/core/workers/chunks/a605bf8bc29099ae1b1a.js +1 -0
- package/assets/esri/core/workers/chunks/ba7239089a04098e3619.js +1 -0
- package/assets/esri/core/workers/chunks/bd2fe663a2b090b134e9.js +1 -0
- package/assets/esri/core/workers/chunks/c16003307aad2f84ac51.js +1 -0
- package/assets/esri/core/workers/chunks/c6eb6a97ecc6ed9ce713.js +1 -0
- package/assets/esri/core/workers/chunks/c81d898f4aef6ecacdb5.js +1 -0
- package/assets/esri/core/workers/chunks/cb83480d7074f6185e21.js +1 -0
- package/assets/esri/core/workers/chunks/cd0fa942d57a278b0a44.js +1 -0
- package/assets/esri/core/workers/chunks/d55332e4d7b8184fd718.js +1 -0
- package/assets/esri/core/workers/chunks/d6842acbfa7a39f3ca30.js +1 -0
- package/assets/esri/core/workers/chunks/d798bd544433e932f772.js +1 -0
- package/assets/esri/core/workers/chunks/e18851e915cb69f53032.js +1 -0
- package/assets/esri/core/workers/chunks/{54899827baea77776fc7.js → ea1054116ec842a4f813.js} +1 -1
- package/assets/esri/core/workers/chunks/ed1312c2627c0d7e654d.js +1 -0
- package/assets/esri/core/workers/chunks/f2750a7b44e8bc8b1e4c.js +1 -0
- package/assets/esri/themes/base/widgets/_Editor.scss +1 -11
- package/assets/esri/themes/base/widgets/_ItemList.scss +0 -13
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ar.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_bg.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_bs.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ca.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_cs.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_da.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_de.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_el.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_es.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_et.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_fi.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_fr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_he.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_hr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_hu.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_id.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_it.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ja.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ko.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_lt.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_lv.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_nb.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_nl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pt-BR.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pt-PT.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ro.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ru.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sk.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sv.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_th.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_tr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_uk.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_vi.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-CN.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-HK.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-TW.json +1 -1
- package/chunks/ComponentShader.glsl.js +1 -1
- package/chunks/Path.glsl.js +1 -1
- package/chunks/Terrain.glsl.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/geometry/support/MeshTexture.js +1 -1
- package/geometry/support/aaBoundingBox.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/interfaces.d.ts +1400 -1314
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/data/FeatureStore.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/timeSupport.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/graphics/sources/WFSSourceWorker.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/support/layerOriginUtils.js +1 -1
- package/layers/support/rasterFormats/JpgPlus.js +1 -1
- package/layers/support/rasterFormats/TiffDecoder.js +1 -1
- package/layers/support/rasterFunctions/ConvolutionFunction.js +1 -1
- package/layers/support/rasterFunctions/ConvolutionFunctionArguments.js +1 -1
- package/layers/support/rasterFunctions/ExtractBandFunction.js +1 -1
- package/layers/support/rasterFunctions/ExtractBandFunctionArguments.js +1 -1
- package/layers/support/rasterFunctions/NDVIFunction.js +1 -1
- package/layers/support/rasterFunctions/NDVIFunctionArguments.js +1 -1
- package/layers/support/rasterFunctions/SlopeFunctionArguments.js +1 -1
- package/layers/support/rasterFunctions/StatisticsHistogramFunction.js +5 -0
- package/layers/support/rasterFunctions/{StatisticsHistogramsFunctionArguments.js → StatisticsHistogramFunctionArguments.js} +1 -1
- package/layers/support/rasterFunctions/rasterFunctionHelper.js +1 -1
- package/package.json +1 -1
- package/rest/imageService.js +1 -1
- package/rest/support/BaseImageMeasureResult.d.ts +4 -0
- package/rest/support/ImageAreaParameters.d.ts +4 -0
- package/rest/support/{ImageMeasureAreaAndPerimeterParameters.js → ImageAreaParameters.js} +1 -1
- package/rest/support/ImageAreaResult.d.ts +4 -0
- package/rest/support/{ImageMeasureAreaAndPerimeterResult.js → ImageAreaResult.js} +1 -1
- package/rest/support/ImageDistanceParameters.d.ts +4 -0
- package/rest/support/{ImageMeasureDistanceAndAngleParameters.js → ImageDistanceParameters.js} +1 -1
- package/rest/support/ImageDistanceResult.d.ts +4 -0
- package/rest/support/ImageDistanceResult.js +5 -0
- package/rest/support/ImageHeightParameters.d.ts +4 -0
- package/rest/support/{ImageMeasureHeightParameters.js → ImageHeightParameters.js} +1 -1
- package/rest/support/ImageHeightResult.d.ts +4 -0
- package/rest/support/{ImageMeasureHeightResult.js → ImageHeightResult.js} +1 -1
- package/rest/support/ImagePointParameters.d.ts +4 -0
- package/rest/support/{ImageMeasurePointParameters.js → ImagePointParameters.js} +1 -1
- package/rest/support/ImagePointResult.d.ts +4 -0
- package/rest/support/{ImageMeasurePointResult.js → ImagePointResult.js} +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/time/timeReferenceUtils.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureStore2D.js +1 -1
- package/views/2d/layers/features/Pipeline.js +1 -1
- package/views/2d/layers/features/support/BinStore.js +1 -1
- package/views/2d/layers/features/support/ClusterStore.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/glTF/internal/Resource.js +1 -1
- package/views/3d/glTF/internal/resourceUtils.js +5 -0
- package/views/3d/layers/VectorTileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SQueryFeatureStore.js +1 -1
- package/views/3d/state/ViewState.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/terrain/Overlay.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/output/OutputDepth.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/AnimationTimeStep.js +5 -0
- package/views/3d/webgl-engine/lib/AnimationTimer.js +1 -1
- package/views/3d/webgl-engine/lib/GLMaterial.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +5 -0
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/Texture.js +1 -1
- package/views/3d/webgl-engine/lib/basicInterfaces.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/draw/support/layerUtils.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/FeatureTemplates/ItemList.js +1 -1
- package/widgets/FeatureTemplates/TemplateItem.js +1 -1
- package/widgets/FeatureTemplates/TemplateItemGroup.js +1 -1
- package/widgets/FeatureTemplates.js +1 -1
- package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
- package/widgets/support/decorators/accessibleHandler.js +1 -1
- package/assets/esri/core/workers/chunks/038dc3f9ef06ef3c960c.js +0 -1
- package/assets/esri/core/workers/chunks/078a0b134210167b629d.js +0 -1
- package/assets/esri/core/workers/chunks/080a4be417be4943f6a0.js +0 -1
- package/assets/esri/core/workers/chunks/0877bab7c03a1de2e713.js +0 -1
- package/assets/esri/core/workers/chunks/0c9200ab19fd2f56f87f.js +0 -1
- package/assets/esri/core/workers/chunks/1cbffa96ea6683e5f3ec.js +0 -1
- package/assets/esri/core/workers/chunks/1f742c3b11c76814fa4d.js +0 -1
- package/assets/esri/core/workers/chunks/2eb2d49c549e53934b8b.js +0 -1
- package/assets/esri/core/workers/chunks/332494b96a47b378f4e0.js +0 -1
- package/assets/esri/core/workers/chunks/3326536d183a858a2a4d.js +0 -1
- package/assets/esri/core/workers/chunks/3f4fc8379fc11bc293cc.js +0 -1
- package/assets/esri/core/workers/chunks/43fecd621cd043f64828.js +0 -1165
- package/assets/esri/core/workers/chunks/47b0b660f5412097fe26.js +0 -1
- package/assets/esri/core/workers/chunks/4c0d7a074083aa9614bb.js +0 -1
- package/assets/esri/core/workers/chunks/594d7e871b648d5c9662.js +0 -1
- package/assets/esri/core/workers/chunks/680b90ac98e8d1ac0e33.js +0 -1
- package/assets/esri/core/workers/chunks/6b589f47cb4731df1639.js +0 -1
- package/assets/esri/core/workers/chunks/72557c4b1582aa18ad4d.js +0 -1
- package/assets/esri/core/workers/chunks/72b490ad371e0c2264f6.js +0 -1
- package/assets/esri/core/workers/chunks/75ce17cf13aab0440572.js +0 -1
- package/assets/esri/core/workers/chunks/75f4e884a1a0aedc0afd.js +0 -1
- package/assets/esri/core/workers/chunks/7b9ab3fb378172831c14.js +0 -1
- package/assets/esri/core/workers/chunks/7bef95b168303bdc4bf1.js +0 -1
- package/assets/esri/core/workers/chunks/803492088780e18de801.js +0 -1
- package/assets/esri/core/workers/chunks/89003e387684af5ebeac.js +0 -1
- package/assets/esri/core/workers/chunks/8f93026764a0cce0901b.js +0 -1
- package/assets/esri/core/workers/chunks/98350b6b95da62ef5f12.js +0 -1
- package/assets/esri/core/workers/chunks/a9cae0d386aa9c00f744.js +0 -1
- package/assets/esri/core/workers/chunks/ad65c24558098f21bbf3.js +0 -1
- package/assets/esri/core/workers/chunks/aef90ee3f0979a7acb38.js +0 -1
- package/assets/esri/core/workers/chunks/b68c7754b0220b194ecf.js +0 -1
- package/assets/esri/core/workers/chunks/c012317f045a74fdd79d.js +0 -1
- package/assets/esri/core/workers/chunks/cb42675e5b1c41634c63.js +0 -1
- package/assets/esri/core/workers/chunks/cb901033dd15b3b72025.js +0 -1
- package/assets/esri/core/workers/chunks/d398b6b8a6b0a95247de.js +0 -1
- package/assets/esri/core/workers/chunks/d447ebc944a9867f5a99.js +0 -1
- package/assets/esri/core/workers/chunks/daaabed988b6ea866350.js +0 -1
- package/assets/esri/core/workers/chunks/e048641971aef9dd4da9.js +0 -1
- package/assets/esri/core/workers/chunks/e3fd383aee378cbb0dae.js +0 -1
- package/assets/esri/core/workers/chunks/e967ffca641947212992.js +0 -1
- package/assets/esri/core/workers/chunks/e9c81eee503c1b112bad.js +0 -1
- package/assets/esri/core/workers/chunks/ea6cf948fe2de0242308.js +0 -1
- package/assets/esri/core/workers/chunks/ed5e71b45dfefcbb2da4.js +0 -1
- package/assets/esri/core/workers/chunks/ee50d5d0afe9bdccc84d.js +0 -1
- package/assets/esri/core/workers/chunks/ee91401507833875facc.js +0 -1
- package/assets/esri/core/workers/chunks/f7d40dd78ef116f5793b.js +0 -1
- package/assets/esri/core/workers/chunks/f8ab6e354834b9c0e857.js +0 -1
- package/assets/esri/core/workers/chunks/faea681c279486b7a5e7.js +0 -1
- package/layers/support/rasterFunctions/StatisticsHistogramsFunction.js +0 -5
- package/rest/support/ImageMeasureDistanceAndAngleResult.js +0 -5
- package/views/3d/support/animationUtils.js +0 -5
- package/views/3d/webgl-engine/lib/RenderStateFeature.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1070],{69285:(e,t,r)=>{r.d(t,{k:()=>i});var o=r(70586),n=r(67900),s=r(8744);function i(e,t,r){if((0,o.Wi)(t)||(0,o.Wi)(r)||r.vcsWkid||(0,s.fS)(t,r))return null;const i=(0,n._R)(t)/(0,n._R)(r);if(1===i)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return null}}},24316:(e,t,r)=>{r.r(t),r.d(t,{createConnection:()=>F});var o=r(43697),n=(r(66577),r(3172)),s=r(20102),i=r(92604),c=r(70586),a=r(95330),l=r(17452),u=(r(75215),r(67676),r(80442),r(52011)),d=r(5600),h=r(69285),f=r(32448);let g=class extends f.Z.EventedAccessor{get connectionError(){return this.errorString?new s.Z("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}};(0,o._)([(0,d.Cb)({readOnly:!0})],g.prototype,"connectionError",null),g=(0,o._)([(0,u.j)("esri.layers.support.StreamConnection")],g);const y=g;var p,_;(_=p||(p={}))[_.CONNECTING=0]="CONNECTING",_[_.OPEN=1]="OPEN",_[_.CLOSING=2]="CLOSING",_[_.CLOSED=3]="CLOSED";let w=class extends y{constructor(e){super(),this.errorString=null;const{geometryType:t,spatialReference:r,sourceSpatialReference:o}=e;this._config=e,this._featureZScaler=(0,h.k)(t,o,r),this._open()}async _open(){await this._tryCreateWebSocket(),this.destroyed||await this._handshake()}destroy(){(0,c.pC)(this._websocket)&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if((0,c.Wi)(this._websocket))return"disconnected";switch(this._websocket.readyState){case p.CONNECTING:case p.OPEN:return"connected";case p.CLOSING:case p.CLOSED:return"disconnected"}}async _tryCreateWebSocket(e=this._config.source.path,t=1e3,r=0){try{if(this.destroyed)return;const t=(0,l.fl)(e,this._config.customParameters??{});this._websocket=await this._createWebSocket(t),this.notifyChange("connectionStatus")}catch(o){const n=t/1e3;return this._config.maxReconnectionAttempts&&r>=this._config.maxReconnectionAttempts?(i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void this.destroy()):(i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection",`Failed to connect. Attempting to reconnect in ${n}s`,o)),await(0,a.e4)(t),this._tryCreateWebSocket(e,Math.min(1.5*t,1e3*this._config.maxReconnectionInterval),r+1))}}_createWebSocket(e){return new Promise(((t,r)=>{const o=new WebSocket(e);o.onopen=()=>{if(o.onopen=null,this.destroyed)return o.onclose=null,void o.close();o.onclose=e=>this._onClose(e),o.onerror=e=>this._onError(e),o.onmessage=e=>this._onMessage(e),t(o)},o.onclose=e=>{o.onopen=o.onclose=null,r(e)}}))}async _handshake(e=1e4){const t=this._websocket;if((0,c.Wi)(t))return;const r=(0,a.hh)(),o=t.onmessage,{filter:n,outFields:l,spatialReference:u}=this._config;return r.timeout(e),t.onmessage=e=>{let c=null;try{c=JSON.parse(e.data)}catch(e){}c&&"object"==typeof c||(i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection","Protocol violation. Handshake failed - malformed message",e.data)),r.reject(),this.destroy()),c.spatialReference?.wkid!==u?.wkid&&(i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${u.wkid}`,e.data)),r.reject(),this.destroy()),"json"!==c.format&&(i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection","Protocol violation. Handshake failed - format is not set",e.data)),r.reject(),this.destroy()),n&&c.filter!==n&&i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection","Tried to set filter, but server doesn't support it")),l&&c.outFields!==l&&i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection","Tried to set outFields, but server doesn't support it")),t.onmessage=o,r.resolve()},t.send(JSON.stringify({filter:n,outFields:l,format:"json",spatialReference:{wkid:u.wkid}})),r.promise}_onMessage(e){try{const t=JSON.parse(e.data);if("featureResult"!==t.type)throw new s.Z("websocket-connection","Protocol violation - Expected to find message of type 'featureResult'",t);for(const e of t.features)(0,c.pC)(this._featureZScaler)&&this._featureZScaler(e.geometry),this.onFeature(e)}catch(e){return i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection","Failed to parse message",e)),void this.destroy()}}_onError(e){const t="Encountered an error over WebSocket connection";this._set("errorString",t),i.Z.getLogger(this.declaredClass).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&i.Z.getLogger(this.declaredClass).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,o._)([(0,d.Cb)()],w.prototype,"connectionStatus",null),(0,o._)([(0,d.Cb)()],w.prototype,"errorString",void 0),w=(0,o._)([(0,u.j)("esri.layers.graphics.sources.connections.WebSocketConnection")],w);var m=r(34599),b=r(14165),C=r(33955),k=r(82971);const S={maxQueryDepth:5,maxRecordCountFactor:3};let v=class extends w{constructor(e){super({...S,...e}),this._buddyServicesQuery=null,this._relatedFeatures=null}async _open(){const e=await this._fetchServiceDefinition(this._config.source);e.timeInfo.trackIdField||i.Z.getLogger(this.declaredClass).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");const t=this._fetchWebSocketUrl(e.streamUrls,this._config.spatialReference);this._buddyServicesQuery||(this._buddyServicesQuery=this._queryBuddyServices()),await this._buddyServicesQuery,await this._tryCreateWebSocket(t);const{filter:r,outFields:o}=this._config;this.destroyed||this._setFilter(r,o)}_onMessage(e){let t;try{t=this._enrich(JSON.parse(e.data)),(0,c.pC)(this._featureZScaler)&&this._featureZScaler(t.geometry)}catch(e){return void i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Failed to parse message",e))}this.onFeature(t)}async _fetchServiceDefinition(e){const t={f:"json",...this._config.customParameters},r=(0,n.default)(e.path,{query:t,responseType:"json"}),o=(await r).data;return this._serviceDefinition=o,o}_fetchWebSocketUrl(e,t){const r=e[0],{urls:o,token:n}=r,s=this._inferWebSocketBaseUrl(o);return(0,l.fl)(`${s}/subscribe`,{outSR:""+t.wkid,token:n})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(const t of e)if(t.includes("wss"))return t;return i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Unable to infer WebSocket url",e)),null}async _setFilter(e,t){const r=this._websocket;if((0,c.Wi)(r)||(0,c.Wi)(e)&&(0,c.Wi)(t))return;const o=JSON.stringify({filter:this._serializeFilter(e,t)});let n=!1;const l=(0,a.hh)();return r.onmessage=e=>{const t=JSON.parse(e.data);t.filter&&(t.error&&(i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Failed to set service filter",t.error)),this._set("errorString",`Could not set service filter - ${t.error}`),l.reject(t.error)),r.onmessage=this._onMessage.bind(this),n=!0,l.resolve())},r.send(o),setTimeout((()=>{n||(this.destroyed||this._websocket!==r||i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Server timed out when setting filter")),l.reject())}),1e4),l.promise}_serializeFilter(e,t){const r={};if((0,c.Wi)(e)&&(0,c.Wi)(t))return r;if((0,c.pC)(e)&&e.geometry)try{const t=(0,C.im)(e.geometry);if("extent"!==t.type)throw new s.Z(`Expected extent but found type ${t.type}`);r.geometry=JSON.stringify(t.shiftCentralMeridian())}catch(e){i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Encountered an error when setting connection geometryDefinition",e))}return(0,c.pC)(e)&&e.where&&"1 = 1"!==e.where&&(r.where=e.where),(0,c.pC)(t)&&(r.outFields=t.join(",")),r}_enrich(e){if(!this._relatedFeatures)return e;const t=this._serviceDefinition.relatedFeatures.joinField,r=e.attributes[t],o=this._relatedFeatures.get(r);if(!o)return i.Z.getLogger(this.declaredClass).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;const{attributes:n,geometry:c}=o;for(const t in n)e.attributes[t]=n[t];return c&&(e.geometry=c),e.geometry||e.centroid||i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Found malformed feature - no geometry found",e)),e}async _queryBuddyServices(){try{const{relatedFeatures:e,keepLatestArchive:t}=this._serviceDefinition,r=this._queryRelatedFeatures(e),o=this._queryArchive(t);await r;const n=await o;if(!n)return;for(const e of n.features)this.onFeature(this._enrich(e))}catch(e){i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Encountered an error when querying buddy services",{error:e}))}}async _queryRelatedFeatures(e){if(!e)return;const t=await this._queryBuddy(e.featuresUrl);this._addRelatedFeatures(t)}async _queryArchive(e){if(e)return this._queryBuddy(e.featuresUrl)}async _queryBuddy(e){const t=new((await Promise.all([r.e(7126),r.e(2710),r.e(1612),r.e(4729),r.e(9790),r.e(8244),r.e(1423),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(5235),r.e(5587),r.e(2422)]).then(r.bind(r,19238))).default)({url:e}),{capabilities:o}=await t.load(),n=o.query.supportsMaxRecordCountFactor,s=o.query.supportsPagination,i=o.query.supportsCentroid,a=this._config.maxRecordCountFactor,l=t.capabilities.query.maxRecordCount,u=n?l*a:l,d=new b.Z;if(d.outFields=(0,c.Pt)(this._config.outFields,["*"]),d.where=(0,c.Pt)((0,c.U2)(this._config.filter,"where"),"1=1"),d.returnGeometry=!0,d.returnExceededLimitFeatures=!0,d.outSpatialReference=k.Z.fromJSON(this._config.spatialReference),i&&(d.returnCentroid=!0),n&&(d.maxRecordCountFactor=a),s)return d.num=u,t.destroy(),this._queryPages(e,d);const h=await(0,m.JT)(e,d,this._config.sourceSpatialReference);return t.destroy(),h.data}async _queryPages(e,t,r=[],o=0){t.start=(0,c.pC)(t.num)?o*t.num:null;const{data:n}=await(0,m.JT)(e,t,this._config.sourceSpatialReference);return n.exceededTransferLimit&&o<(this._config.maxQueryDepth??0)?(n.features.forEach((e=>r.push(e))),this._queryPages(e,t,r,o+1)):(r.forEach((e=>n.features.push(e))),n)}_addRelatedFeatures(e){const t=new Map,r=e.features,o=this._serviceDefinition.relatedFeatures.joinField;for(const e of r){const r=e.attributes[o];t.set(r,e)}this._relatedFeatures=t}};v=(0,o._)([(0,u.j)("esri.layers.graphics.sources.connections.GeoEventConnection")],v);const Z=v;function F(e,t,r,o,n,s,i,c){const a=0===e.path.indexOf("wss://")||0===e.path.indexOf("ws://"),l={source:e,sourceSpatialReference:t,spatialReference:r,geometryType:o,filter:n,maxReconnectionAttempts:s,maxReconnectionInterval:i,customParameters:c};return a?new w(l):new Z(l)}},28694:(e,t,r)=>{r.d(t,{p:()=>s});var o=r(70586),n=r(69285);function s(e,t,r){if(!r||!r.features||!r.hasZ)return;const s=(0,n.k)(r.geometryType,t,e.outSpatialReference);if(!(0,o.Wi)(s))for(const e of r.features)s(e.geometry)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1070],{69285:(e,t,r)=>{r.d(t,{k:()=>i});var o=r(70586),n=r(67900),s=r(8744);function i(e,t,r){if((0,o.Wi)(t)||(0,o.Wi)(r)||r.vcsWkid||(0,s.fS)(t,r))return null;const i=(0,n._R)(t)/(0,n._R)(r);if(1===i)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return null}}},24316:(e,t,r)=>{r.r(t),r.d(t,{createConnection:()=>F});var o=r(43697),n=(r(66577),r(3172)),s=r(20102),i=r(92604),c=r(70586),a=r(95330),l=r(17452),u=(r(75215),r(67676),r(80442),r(52011)),d=r(5600),h=r(69285),f=r(32448);let g=class extends f.Z.EventedAccessor{get connectionError(){return this.errorString?new s.Z("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}};(0,o._)([(0,d.Cb)({readOnly:!0})],g.prototype,"connectionError",null),g=(0,o._)([(0,u.j)("esri.layers.support.StreamConnection")],g);const y=g;var p,_;(_=p||(p={}))[_.CONNECTING=0]="CONNECTING",_[_.OPEN=1]="OPEN",_[_.CLOSING=2]="CLOSING",_[_.CLOSED=3]="CLOSED";let w=class extends y{constructor(e){super(),this.errorString=null;const{geometryType:t,spatialReference:r,sourceSpatialReference:o}=e;this._config=e,this._featureZScaler=(0,h.k)(t,o,r),this._open()}async _open(){await this._tryCreateWebSocket(),this.destroyed||await this._handshake()}destroy(){(0,c.pC)(this._websocket)&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if((0,c.Wi)(this._websocket))return"disconnected";switch(this._websocket.readyState){case p.CONNECTING:case p.OPEN:return"connected";case p.CLOSING:case p.CLOSED:return"disconnected"}}async _tryCreateWebSocket(e=this._config.source.path,t=1e3,r=0){try{if(this.destroyed)return;const t=(0,l.fl)(e,this._config.customParameters??{});this._websocket=await this._createWebSocket(t),this.notifyChange("connectionStatus")}catch(o){const n=t/1e3;return this._config.maxReconnectionAttempts&&r>=this._config.maxReconnectionAttempts?(i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void this.destroy()):(i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection",`Failed to connect. Attempting to reconnect in ${n}s`,o)),await(0,a.e4)(t),this._tryCreateWebSocket(e,Math.min(1.5*t,1e3*this._config.maxReconnectionInterval),r+1))}}_createWebSocket(e){return new Promise(((t,r)=>{const o=new WebSocket(e);o.onopen=()=>{if(o.onopen=null,this.destroyed)return o.onclose=null,void o.close();o.onclose=e=>this._onClose(e),o.onerror=e=>this._onError(e),o.onmessage=e=>this._onMessage(e),t(o)},o.onclose=e=>{o.onopen=o.onclose=null,r(e)}}))}async _handshake(e=1e4){const t=this._websocket;if((0,c.Wi)(t))return;const r=(0,a.hh)(),o=t.onmessage,{filter:n,outFields:l,spatialReference:u}=this._config;return r.timeout(e),t.onmessage=e=>{let c=null;try{c=JSON.parse(e.data)}catch(e){}c&&"object"==typeof c||(i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection","Protocol violation. Handshake failed - malformed message",e.data)),r.reject(),this.destroy()),c.spatialReference?.wkid!==u?.wkid&&(i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${u.wkid}`,e.data)),r.reject(),this.destroy()),"json"!==c.format&&(i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection","Protocol violation. Handshake failed - format is not set",e.data)),r.reject(),this.destroy()),n&&c.filter!==n&&i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection","Tried to set filter, but server doesn't support it")),l&&c.outFields!==l&&i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection","Tried to set outFields, but server doesn't support it")),t.onmessage=o,r.resolve()},t.send(JSON.stringify({filter:n,outFields:l,format:"json",spatialReference:{wkid:u.wkid}})),r.promise}_onMessage(e){try{const t=JSON.parse(e.data);if("featureResult"!==t.type)throw new s.Z("websocket-connection","Protocol violation - Expected to find message of type 'featureResult'",t);for(const e of t.features)(0,c.pC)(this._featureZScaler)&&this._featureZScaler(e.geometry),this.onFeature(e)}catch(e){return i.Z.getLogger(this.declaredClass).error(new s.Z("websocket-connection","Failed to parse message",e)),void this.destroy()}}_onError(e){const t="Encountered an error over WebSocket connection";this._set("errorString",t),i.Z.getLogger(this.declaredClass).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&i.Z.getLogger(this.declaredClass).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,o._)([(0,d.Cb)()],w.prototype,"connectionStatus",null),(0,o._)([(0,d.Cb)()],w.prototype,"errorString",void 0),w=(0,o._)([(0,u.j)("esri.layers.graphics.sources.connections.WebSocketConnection")],w);var m=r(34599),b=r(14165),C=r(33955),k=r(82971);const S={maxQueryDepth:5,maxRecordCountFactor:3};let v=class extends w{constructor(e){super({...S,...e}),this._buddyServicesQuery=null,this._relatedFeatures=null}async _open(){const e=await this._fetchServiceDefinition(this._config.source);e.timeInfo.trackIdField||i.Z.getLogger(this.declaredClass).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");const t=this._fetchWebSocketUrl(e.streamUrls,this._config.spatialReference);this._buddyServicesQuery||(this._buddyServicesQuery=this._queryBuddyServices()),await this._buddyServicesQuery,await this._tryCreateWebSocket(t);const{filter:r,outFields:o}=this._config;this.destroyed||this._setFilter(r,o)}_onMessage(e){let t;try{t=this._enrich(JSON.parse(e.data)),(0,c.pC)(this._featureZScaler)&&this._featureZScaler(t.geometry)}catch(e){return void i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Failed to parse message",e))}this.onFeature(t)}async _fetchServiceDefinition(e){const t={f:"json",...this._config.customParameters},r=(0,n.default)(e.path,{query:t,responseType:"json"}),o=(await r).data;return this._serviceDefinition=o,o}_fetchWebSocketUrl(e,t){const r=e[0],{urls:o,token:n}=r,s=this._inferWebSocketBaseUrl(o);return(0,l.fl)(`${s}/subscribe`,{outSR:""+t.wkid,token:n})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(const t of e)if(t.includes("wss"))return t;return i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Unable to infer WebSocket url",e)),null}async _setFilter(e,t){const r=this._websocket;if((0,c.Wi)(r)||(0,c.Wi)(e)&&(0,c.Wi)(t))return;const o=JSON.stringify({filter:this._serializeFilter(e,t)});let n=!1;const l=(0,a.hh)();return r.onmessage=e=>{const t=JSON.parse(e.data);t.filter&&(t.error&&(i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Failed to set service filter",t.error)),this._set("errorString",`Could not set service filter - ${t.error}`),l.reject(t.error)),r.onmessage=this._onMessage.bind(this),n=!0,l.resolve())},r.send(o),setTimeout((()=>{n||(this.destroyed||this._websocket!==r||i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Server timed out when setting filter")),l.reject())}),1e4),l.promise}_serializeFilter(e,t){const r={};if((0,c.Wi)(e)&&(0,c.Wi)(t))return r;if((0,c.pC)(e)&&e.geometry)try{const t=(0,C.im)(e.geometry);if("extent"!==t.type)throw new s.Z(`Expected extent but found type ${t.type}`);r.geometry=JSON.stringify(t.shiftCentralMeridian())}catch(e){i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Encountered an error when setting connection geometryDefinition",e))}return(0,c.pC)(e)&&e.where&&"1 = 1"!==e.where&&(r.where=e.where),(0,c.pC)(t)&&(r.outFields=t.join(",")),r}_enrich(e){if(!this._relatedFeatures)return e;const t=this._serviceDefinition.relatedFeatures.joinField,r=e.attributes[t],o=this._relatedFeatures.get(r);if(!o)return i.Z.getLogger(this.declaredClass).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;const{attributes:n,geometry:c}=o;for(const t in n)e.attributes[t]=n[t];return c&&(e.geometry=c),e.geometry||e.centroid||i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Found malformed feature - no geometry found",e)),e}async _queryBuddyServices(){try{const{relatedFeatures:e,keepLatestArchive:t}=this._serviceDefinition,r=this._queryRelatedFeatures(e),o=this._queryArchive(t);await r;const n=await o;if(!n)return;for(const e of n.features)this.onFeature(this._enrich(e))}catch(e){i.Z.getLogger(this.declaredClass).error(new s.Z("geoevent-connection","Encountered an error when querying buddy services",{error:e}))}}async _queryRelatedFeatures(e){if(!e)return;const t=await this._queryBuddy(e.featuresUrl);this._addRelatedFeatures(t)}async _queryArchive(e){if(e)return this._queryBuddy(e.featuresUrl)}async _queryBuddy(e){const t=new((await Promise.all([r.e(2710),r.e(1612),r.e(4729),r.e(9790),r.e(8244),r.e(1423),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(5235),r.e(5587),r.e(2422)]).then(r.bind(r,19238))).default)({url:e}),{capabilities:o}=await t.load(),n=o.query.supportsMaxRecordCountFactor,s=o.query.supportsPagination,i=o.query.supportsCentroid,a=this._config.maxRecordCountFactor,l=t.capabilities.query.maxRecordCount,u=n?l*a:l,d=new b.Z;if(d.outFields=(0,c.Pt)(this._config.outFields,["*"]),d.where=(0,c.Pt)((0,c.U2)(this._config.filter,"where"),"1=1"),d.returnGeometry=!0,d.returnExceededLimitFeatures=!0,d.outSpatialReference=k.Z.fromJSON(this._config.spatialReference),i&&(d.returnCentroid=!0),n&&(d.maxRecordCountFactor=a),s)return d.num=u,t.destroy(),this._queryPages(e,d);const h=await(0,m.JT)(e,d,this._config.sourceSpatialReference);return t.destroy(),h.data}async _queryPages(e,t,r=[],o=0){t.start=(0,c.pC)(t.num)?o*t.num:null;const{data:n}=await(0,m.JT)(e,t,this._config.sourceSpatialReference);return n.exceededTransferLimit&&o<(this._config.maxQueryDepth??0)?(n.features.forEach((e=>r.push(e))),this._queryPages(e,t,r,o+1)):(r.forEach((e=>n.features.push(e))),n)}_addRelatedFeatures(e){const t=new Map,r=e.features,o=this._serviceDefinition.relatedFeatures.joinField;for(const e of r){const r=e.attributes[o];t.set(r,e)}this._relatedFeatures=t}};v=(0,o._)([(0,u.j)("esri.layers.graphics.sources.connections.GeoEventConnection")],v);const Z=v;function F(e,t,r,o,n,s,i,c){const a=0===e.path.indexOf("wss://")||0===e.path.indexOf("ws://"),l={source:e,sourceSpatialReference:t,spatialReference:r,geometryType:o,filter:n,maxReconnectionAttempts:s,maxReconnectionInterval:i,customParameters:c};return a?new w(l):new Z(l)}},28694:(e,t,r)=>{r.d(t,{p:()=>s});var o=r(70586),n=r(69285);function s(e,t,r){if(!r||!r.features||!r.hasZ)return;const s=(0,n.k)(r.geometryType,t,e.outSpatialReference);if(!(0,o.Wi)(s))for(const e of r.features)s(e.geometry)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[565],{90565:(n,e,t)=>{t.r(e),t.d(e,{registerFunctions:()=>d});var a=t(33586),r=t(27535),o=t(61363),i=t(90658);function c(n,e){return n&&n.domain?"coded-value"===n.domain.type||"codedValue"===n.domain.type?a.Z.convertObjectToArcadeDictionary({type:"codedValue",name:n.domain.name,dataType:i.yE[n.field.type],codedValues:n.domain.codedValues.map((n=>({name:n.name,code:n.code})))},(0,o.C)(e)):a.Z.convertObjectToArcadeDictionary({type:"range",name:n.domain.name,dataType:i.yE[n.field.type],min:n.domain.min,max:n.domain.max},(0,o.C)(e)):null}function d(n){"async"===n.mode&&(n.functions.domain=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.y)(i,2,3,e,t),(0,o.w)(i[0]))return c((0,o.P)(i[0],(0,o.j)(i[1]),void 0===i[2]?void 0:(0,o.g)(i[2])),e);if((0,o.T)(i[0]))return await i[0]._ensureLoaded(),c((0,o.Y)((0,o.j)(i[1]),i[0],null,void 0===i[2]?void 0:(0,o.g)(i[2])),e);throw new r.aV(e,r.rH.InvalidParameter,t)}))},n.functions.subtypes=function(e,t){return n.standardFunctionAsync(e,t,(async(n,i,c)=>{if((0,o.y)(c,1,1,e,t),(0,o.w)(c[0])){const n=(0,o.O)(c[0]);return n?a.Z.convertObjectToArcadeDictionary(n,(0,o.C)(e)):null}if((0,o.T)(c[0])){await c[0]._ensureLoaded();const n=c[0].subtypes();return n?a.Z.convertObjectToArcadeDictionary(n,(0,o.C)(e)):null}throw new r.aV(e,r.rH.InvalidParameter,t)}))},n.functions.domainname=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.y)(i,2,4,e,t),(0,o.w)(i[0]))return(0,o.Q)(i[0],(0,o.j)(i[1]),i[2],void 0===i[3]?void 0:(0,o.g)(i[3]));if((0,o.T)(i[0])){await i[0]._ensureLoaded();const n=(0,o.Y)((0,o.j)(i[1]),i[0],null,void 0===i[3]?void 0:(0,o.g)(i[3]));return(0,o.Z)(n,i[2])}throw new r.aV(e,r.rH.InvalidParameter,t)}))},n.signatures.push({name:"domainname",min:2,max:4}),n.functions.domaincode=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.y)(i,2,4,e,t),(0,o.w)(i[0]))return(0,o.S)(i[0],(0,o.j)(i[1]),i[2],void 0===i[3]?void 0:(0,o.g)(i[3]));if((0,o.T)(i[0])){await i[0]._ensureLoaded();const n=(0,o.Y)((0,o.j)(i[1]),i[0],null,void 0===i[3]?void 0:(0,o.g)(i[3]));return(0,o._)(n,i[2])}throw new r.aV(e,r.rH.InvalidParameter,t)}))},n.signatures.push({name:"domaincode",min:2,max:4})),n.functions.text=function(e,t){return n.standardFunctionAsync(e,t,((n,a,r)=>{if((0,o.y)(r,1,2,e,t),!(0,o.T)(r[0]))return(0,o.t)(r[0],r[1]);{const e=(0,o.A)(r[1],"");if(""===e)return r[0].castToText();if("schema"===e.toLowerCase())return r[0].convertToText("schema",n.abortSignal);if("featureset"===e.toLowerCase())return r[0].convertToText("featureset",n.abortSignal)}}))},n.functions.gdbversion=function(e,t){return n.standardFunctionAsync(e,t,(async(n,a,i)=>{if((0,o.y)(i,1,1,e,t),(0,o.w)(i[0]))return i[0].gdbVersion();if((0,o.T)(i[0]))return(await i[0].load()).gdbVersion;throw new r.aV(e,r.rH.InvalidParameter,t)}))},n.functions.schema=function(e,t){return n.standardFunctionAsync(e,t,(async(n,i,c)=>{if((0,o.y)(c,1,1,e,t),(0,o.T)(c[0]))return await c[0].load(),a.Z.convertObjectToArcadeDictionary(c[0].schema(),(0,o.C)(e));if((0,o.w)(c[0])){const n=(0,o.N)(c[0]);return n?a.Z.convertObjectToArcadeDictionary(n,(0,o.C)(e)):null}throw new r.aV(e,r.rH.InvalidParameter,t)}))}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6395,216],{3920:(e,t,a)=>{a.d(t,{p:()=>l,r:()=>p});var r=a(43697),i=a(15923),n=a(61247),s=a(5600),o=a(52011),d=a(72762);const l=e=>{let t=class extends e{destroy(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())}get handles(){return this._get("handles")||new n.Z}get updatingHandles(){return this._get("updatingHandles")||new d.t}};return(0,r._)([(0,s.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,r._)([(0,s.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,r._)([(0,o.j)("esri.core.HandleOwner")],t),t};let p=class extends(l(i.Z)){};p=(0,r._)([(0,o.j)("esri.core.HandleOwner")],p)},42033:(e,t,a)=>{a.d(t,{E:()=>i,_:()=>n});var r=a(70586);async function i(e,t){const{WhereClause:r}=await a.e(1534).then(a.bind(a,41534));return r.create(e,t)}function n(e,t){return(0,r.pC)(e)?(0,r.pC)(t)?`(${e}) AND (${t})`:e:t}},72762:(e,t,a)=>{a.d(t,{t:()=>u});var r=a(43697),i=a(15923),n=a(61247),s=a(70586),o=a(17445),d=a(1654),l=a(5600),p=a(52011);let u=class extends i.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new n.Z,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(e,t,a={}){return this._installWatch(e,t,a,o.YP)}addWhen(e,t,a={}){return this._installWatch(e,t,a,o.gx)}addOnCollectionChange(e,t,{initial:a=!1,final:r=!1}={}){const i=++this._handleId;return this._handles.add([(0,o.on)(e,"after-changes",this._createSyncUpdatingCallback(),o.Z_),(0,o.on)(e,"change",t,{onListenerAdd:a?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:r?e=>t({added:[],removed:e.toArray()}):void 0})],i),{remove:()=>this._handles.remove(i)}}addPromise(e){if((0,s.Wi)(e))return e;const t=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this._handles.has(c)||this._set("updating",!1))}},t),this._pendingPromises.add(e),this._set("updating",!0);const a=()=>this._handles.remove(t);return e.then(a,a),e}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(e,t,a={},r){const i=++this._handleId;a.sync||this._installSyncUpdatingWatch(e,i);const n=r(e,t,a);return this._handles.add(n,i),{remove:()=>this._handles.remove(i)}}_installSyncUpdatingWatch(e,t){const a=this._createSyncUpdatingCallback(),r=(0,o.YP)(e,a,{sync:!0,equals:()=>!1});return this._handles.add(r,t),r}_createSyncUpdatingCallback(){return()=>{this._handles.remove(c),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add((0,d.Os)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove(c))})),c)}}};(0,r._)([(0,l.Cb)({readOnly:!0})],u.prototype,"updating",void 0),u=(0,r._)([(0,p.j)("esri.core.support.WatchUpdatingTracking")],u);const c=-42},69285:(e,t,a)=>{a.d(t,{k:()=>s});var r=a(70586),i=a(67900),n=a(8744);function s(e,t,a){if((0,r.Wi)(t)||(0,r.Wi)(a)||a.vcsWkid||(0,n.fS)(t,a))return null;const s=(0,i._R)(t)/(0,i._R)(a);if(1===s)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,s);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const a of e.paths)for(const e of a)e.length>2&&(e[2]*=t)}(e,s);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const a of e.rings)for(const e of a)e.length>2&&(e[2]*=t)}(e,s);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const a of e.points)a.length>2&&(a[2]*=t)}(e,s);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,s);default:return null}}},54295:(e,t,a)=>{a.d(t,{V:()=>s});var r=a(43697),i=a(5600),n=(a(75215),a(67676),a(52011));const s=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,r._)([(0,i.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,r._)([(0,n.j)("esri.layers.mixins.APIKeyMixin")],t),t}},17287:(e,t,a)=>{a.d(t,{Y:()=>l});var r=a(43697),i=a(92604),n=a(70586),s=a(5600),o=(a(75215),a(67676),a(52011)),d=a(66677);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,d.Qc)(this.url);if((0,n.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,d.Nm)(e,i.Z.getLogger(this.declaredClass)))}};return(0,r._)([(0,s.Cb)()],t.prototype,"title",null),(0,r._)([(0,s.Cb)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,o.j)("esri.layers.mixins.ArcGISService")],t),t}},70082:(e,t,a)=>{a.d(t,{Z:()=>u});var r=a(43697),i=a(2368),n=a(35454),s=a(96674),o=a(5600),d=(a(75215),a(67676),a(52011));const l=new n.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,i.J)(s.wq)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,r._)([(0,o.Cb)({json:{write:!0}})],p.prototype,"name",void 0),(0,r._)([(0,o.Cb)({json:{write:!0}})],p.prototype,"description",void 0),(0,r._)([(0,o.Cb)({json:{read:l.read,write:l.write}})],p.prototype,"drawingTool",void 0),(0,r._)([(0,o.Cb)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,r._)([(0,o.Cb)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,r._)([(0,d.j)("esri.layers.support.FeatureTemplate")],p);const u=p},16451:(e,t,a)=>{a.d(t,{Z:()=>m});var r=a(43697),i=a(2368),n=a(96674),s=a(5600),o=(a(75215),a(67676),a(71715)),d=a(52011),l=a(30556),p=a(72729),u=a(70082);let c=class extends((0,i.J)(n.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const a of Object.keys(e))t[a]=(0,p.im)(e[a]);return t}writeDomains(e,t){const a={};for(const t of Object.keys(e))e[t]&&(a[t]=e[t]?.toJSON());t.domains=a}};(0,r._)([(0,s.Cb)({json:{write:!0}})],c.prototype,"id",void 0),(0,r._)([(0,s.Cb)({json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,s.Cb)({json:{write:!0}})],c.prototype,"domains",void 0),(0,r._)([(0,o.r)("domains")],c.prototype,"readDomains",null),(0,r._)([(0,l.c)("domains")],c.prototype,"writeDomains",null),(0,r._)([(0,s.Cb)({type:[u.Z],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,r._)([(0,d.j)("esri.layers.support.FeatureType")],c);const m=c},56765:(e,t,a)=>{a.d(t,{Z:()=>p});var r,i=a(43697),n=a(46791),s=a(96674),o=a(5600),d=(a(75215),a(67676),a(52011));let l=r=class extends s.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.Z}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],l.prototype,"floorField",void 0),(0,i._)([(0,o.Cb)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,i._)([(0,o.Cb)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=r=(0,i._)([(0,d.j)("esri.layers.support.LayerFloorInfo")],l);const p=l},72064:(e,t,a)=>{a.d(t,{h:()=>u});var r=a(80442),i=a(70586),n=a(66677);const s={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function o(e,t,a){return!!(e&&e.hasOwnProperty(t)?e[t]:a)}function d(e,t,a){return e&&e.hasOwnProperty(t)?e[t]:a}function l(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function p(e,t){const a=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!a?.includes(t.toLowerCase())}function u(e,t){return{analytics:c(e),attachment:m(e),data:h(e),metadata:y(e),operations:S(e.capabilities,e,t),query:T(e,t),queryRelated:f(e),queryTopFeatures:g(e),editing:A(e)}}function c(e){return{supportsCacheHint:p(e.advancedQueryCapabilities,"queryAnalytics")}}function m(e){const t=e.attachmentProperties,a={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:p(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:o(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=s[e.name];t&&(a[t]=!!e.isEnabled)})),a}function h(e){return{isVersioned:o(e,"isDataVersioned",!1),supportsAttachment:o(e,"hasAttachments",!1),supportsM:o(e,"hasM",!1),supportsZ:o(e,"hasZ",!1)}}function y(e){return{supportsAdvancedFieldProperties:o(e,"supportsFieldDescriptionProperty",!1)}}function S(e,t,a){const r=e?e.toLowerCase().split(",").map((e=>e.trim())):[],s=a?(0,n.Qc)(a):null,d=r.includes((0,i.pC)(s)&&"MapServer"===s.serverType?"data":"query"),l=r.includes("editing")&&!t.datesInUnknownTimezone;let p=l&&r.includes("create"),u=l&&r.includes("delete"),c=l&&r.includes("update");const m=r.includes("changetracking"),h=t.advancedQueryCapabilities;return l&&!(p||u||c)&&(p=u=c=!0),{supportsCalculate:o(t,"supportsCalculate",!1),supportsTruncate:o(t,"supportsTruncate",!1),supportsValidateSql:o(t,"supportsValidateSql",!1),supportsAdd:p,supportsDelete:u,supportsEditing:l,supportsChangeTracking:m,supportsQuery:d,supportsQueryAnalytics:o(h,"supportsQueryAnalytic",!1),supportsQueryAttachments:o(h,"supportsQueryAttachments",!1),supportsQueryTopFeatures:o(h,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:o(t,"supportsAttachmentsResizing",!1),supportsSync:r.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:o(t,"supportsExceedsLimitStatistics",!1)}}function T(e,t){const a=e.advancedQueryCapabilities,i=e.ownershipBasedAccessControlForFeatures,s=e.archivingInfo,u=e.currentVersion,c=t?.includes("MapServer"),m=!c||u>=(0,r.Z)("mapserver-pbf-version-support"),h=(0,n.M8)(t),y=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{supportsStatistics:o(a,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:o(a,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:o(a,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:l(a),supportsCentroid:o(a,"supportsReturningGeometryCentroid",!1),supportsDistance:o(a,"supportsQueryWithDistance",!1),supportsDistinct:o(a,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:o(a,"supportsReturningQueryExtent",!1),supportsGeometryProperties:o(a,"supportsReturningGeometryProperties",!1),supportsHavingClause:o(a,"supportsHavingClause",!1),supportsOrderBy:o(a,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:o(a,"supportsPagination",!1),supportsQuantization:o(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:o(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:o(e,"supportsReturningQueryGeometry",!1),supportsResultType:o(a,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:o(a,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:o(a,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:o(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:o(a,"supportsTopFeaturesQuery",!1),supportsQueryByOthers:o(i,"allowOthersToQuery",!0),supportsHistoricMoment:o(s,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:m&&y.has("pbf"),supportsDisjointSpatialRelationship:o(a,"supportsDisjointSpatialRel",!1),supportsCacheHint:o(a,"supportsQueryWithCacheHint",!1)||p(a,"query"),supportsDefaultSpatialReference:o(a,"supportsDefaultSR",!1),supportsCompactGeometry:h,supportsFullTextSearch:o(a,"supportsFullTextSearch",!1),maxRecordCountFactor:d(e,"maxRecordCountFactor",void 0),maxRecordCount:d(e,"maxRecordCount",void 0),standardMaxRecordCount:d(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:d(e,"tileMaxRecordCount",void 0)}}function f(e){const t=e.advancedQueryCapabilities,a=o(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:o(t,"supportsQueryRelatedPagination",!1),supportsCount:a,supportsOrderBy:a,supportsCacheHint:p(t,"queryRelated")}}function g(e){return{supportsCacheHint:p(e.advancedQueryCapabilities,"queryTopFilter")}}function A(e){const t=e.ownershipBasedAccessControlForFeatures;return{supportsGeometryUpdate:o(e,"allowGeometryUpdates",!0),supportsGlobalId:o(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:o(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:o(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:o(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:o(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:o(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:o(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:o(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:o(t,"allowOthersToUpdate",!0)}}},51706:(e,t,a)=>{var r,i;function n(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?r.Expression:e.field&&"string"==typeof e.field?r.Field:r.Unknown}function d(e,t){const a=t||o(e),n=e.valueUnit||"unknown";return a===r.Unknown?i.Constant:e.stops?i.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?i.ClampedLinear:"unknown"===n?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?i.Proportional:i.Additive:i.Identity:i.RealWorldSize}a.d(t,{PS:()=>o,QW:()=>d,RY:()=>r,hL:()=>i,iY:()=>n,qh:()=>s}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(r||(r={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(i||(i={}))},28694:(e,t,a)=>{a.d(t,{p:()=>n});var r=a(70586),i=a(69285);function n(e,t,a){if(!a||!a.features||!a.hasZ)return;const n=(0,i.k)(a.geometryType,t,e.outSpatialReference);if(!(0,r.Wi)(n))for(const e of a.features)n(e.geometry)}},56545:(e,t,a)=>{a.d(t,{Z:()=>c});var r,i=a(43697),n=a(96674),s=a(22974),o=a(5600),d=a(75215),l=a(52011),p=a(30556);let u=r=class extends n.wq{constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,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 r((0,s.d9)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,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,i._)([(0,o.Cb)({type:[String],json:{write:!0}})],u.prototype,"attachmentTypes",void 0),(0,i._)([(0,o.Cb)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],u.prototype,"attachmentsWhere",void 0),(0,i._)([(0,o.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"cacheHint",void 0),(0,i._)([(0,o.Cb)({type:[String],json:{write:!0}})],u.prototype,"keywords",void 0),(0,i._)([(0,o.Cb)({type:[Number],json:{write:!0}})],u.prototype,"globalIds",void 0),(0,i._)([(0,o.Cb)({json:{write:!0}})],u.prototype,"name",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],u.prototype,"num",void 0),(0,i._)([(0,o.Cb)({type:[Number],json:{write:!0}})],u.prototype,"objectIds",void 0),(0,i._)([(0,o.Cb)({type:Boolean,json:{default:!1,write:!0}})],u.prototype,"returnMetadata",void 0),(0,i._)([(0,o.Cb)({type:[Number],json:{write:!0}})],u.prototype,"size",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],u.prototype,"start",void 0),(0,i._)([(0,p.c)("start"),(0,p.c)("num")],u.prototype,"writeStart",null),(0,i._)([(0,o.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],u.prototype,"where",void 0),u=r=(0,i._)([(0,l.j)("esri.rest.support.AttachmentQuery")],u),u.from=(0,d.se)(u);const c=u},74889:(e,t,a)=>{a.d(t,{Z:()=>A});var r,i=a(43697),n=a(66577),s=a(38171),o=a(35454),d=a(96674),l=a(22974),p=a(70586),u=a(5600),c=(a(75215),a(71715)),m=a(52011),h=a(30556),y=a(82971),S=a(33955),T=a(1231);const f=new o.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let g=r=class extends d.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 a=y.Z.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const i=e[t],n=s.Z.fromJSON(i),o=i.geometry&&i.geometry.spatialReference;(0,p.pC)(n.geometry)&&!o&&(n.geometry.spatialReference=a);const d=i.aggregateGeometries,l=n.aggregateGeometries;if(d&&(0,p.pC)(l))for(const e in l){const t=l[e],r=d[e]?.spatialReference;(0,p.pC)(t)&&!r&&(t.spatialReference=a)}r.push(n)}return r}writeGeometryType(e,t,a,r){if(e)return void f.write(e,t,a,r);const{features:i}=this;if(i)for(const e of i)if(e&&(0,p.pC)(e.geometry))return void f.write(e.geometry.type,t,a,r)}readQueryGeometry(e,t){if(!e)return null;const a=!!e.spatialReference,r=(0,S.im)(e);return r&&!a&&t.spatialReference&&(r.spatialReference=y.Z.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:a}=this;if(a)for(const e of a)if(e&&(0,p.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,l.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 a=0;a<t.features.length;a++){const r=t.features[a];if(r.geometry){const t=e&&e[a];r.geometry=t&&t.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,a],translate:[r,i]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-r)/t)),(e=>Math.round((i-e)/a)));for(let e=0,t=n.length;e<t;e++)s?.((0,p.Wg)(n[e].geometry))||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:a}=this;if(!a)return this;const{translate:[r,i],scale:[n,s]}=a,o=this._getHydrationFunction(e,(e=>e*n+r),(e=>i-e*s));for(const{geometry:e}of t)(0,p.pC)(e)&&o&&o(e);return this.transform=null,this}_quantizePoints(e,t,a){let r,i;const n=[];for(let s=0,o=e.length;s<o;s++){const o=e[s];if(s>0){const e=t(o[0]),s=a(o[1]);e===r&&s===i||(n.push([e-r,s-i]),r=e,i=s)}else r=t(o[0]),i=a(o[1]),n.push([r,i])}return n.length>0?n:null}_getQuantizationFunction(e,t,a){return"point"===e?e=>(e.x=t(e.x),e.y=a(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,S.oU)(e)?e.rings:e.paths,i=[];for(let e=0,n=r.length;e<n;e++){const n=r[e],s=this._quantizePoints(n,t,a);s&&i.push(s)}return i.length>0?((0,S.oU)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,a);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,a){return"point"===e?e=>{e.x=t(e.x),e.y=a(e.y)}:"polyline"===e||"polygon"===e?e=>{const r=(0,S.oU)(e)?e.rings:e.paths;let i,n;for(let e=0,s=r.length;e<s;e++){const s=r[e];for(let e=0,r=s.length;e<r;e++){const r=s[e];e>0?(i+=r[0],n+=r[1]):(i=r[0],n=r[1]),r[0]=t(i),r[1]=a(n)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=a(e.ymin),e.xmax=t(e.xmax),e.ymax=a(e.ymax)}:"multipoint"===e?e=>{const r=e.points;let i,n;for(let e=0,s=r.length;e<s;e++){const s=r[e];e>0?(i+=s[0],n+=s[1]):(i=s[0],n=s[1]),s[0]=t(i),s[1]=a(n)}}:null}};(0,i._)([(0,u.Cb)({type:String,json:{write:!0}})],g.prototype,"displayFieldName",void 0),(0,i._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],g.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,u.Cb)({type:[s.Z],json:{write:!0}})],g.prototype,"features",void 0),(0,i._)([(0,c.r)("features")],g.prototype,"readFeatures",null),(0,i._)([(0,u.Cb)({type:[T.Z],json:{write:!0}})],g.prototype,"fields",void 0),(0,i._)([(0,u.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],g.prototype,"geometryType",void 0),(0,i._)([(0,h.c)("geometryType")],g.prototype,"writeGeometryType",null),(0,i._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],g.prototype,"hasM",void 0),(0,i._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],g.prototype,"hasZ",void 0),(0,i._)([(0,u.Cb)({types:n.qM,json:{write:!0}})],g.prototype,"queryGeometry",void 0),(0,i._)([(0,c.r)("queryGeometry")],g.prototype,"readQueryGeometry",null),(0,i._)([(0,u.Cb)({type:y.Z,json:{write:!0}})],g.prototype,"spatialReference",void 0),(0,i._)([(0,h.c)("spatialReference")],g.prototype,"writeSpatialReference",null),(0,i._)([(0,u.Cb)({json:{write:!0}})],g.prototype,"transform",void 0),g=r=(0,i._)([(0,m.j)("esri.rest.support.FeatureSet")],g),g.prototype.toJSON.isDefaultToJSON=!0;const A=g},58333:(e,t,a)=>{a.d(t,{ET:()=>n,I4:()=>i,eG:()=>d,lF:()=>s,lj:()=>p,qP:()=>o,wW:()=>l});const r=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},o={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},d={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},l={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},80216:(e,t,a)=>{a.d(t,{Z:()=>m});var r=a(43697),i=a(2368),n=a(96674),s=a(70586),o=a(5600),d=(a(75215),a(67676),a(71715)),l=a(52011),p=a(30556),u=a(42799);let c=class extends((0,i.J)(n.wq)){constructor(e){super(e),this.legacy=null,this.timeZone="system"}readLegacy(e,t){const{timeZone:a,respectsDaylightSaving:r}=t;return{timeZone:a,respectsDaylightSaving:r}}readTimeZone(e,t){return"timeZoneIANA"in t?t.timeZoneIANA:(0,u.G)(t)}writeTimeZone(e,t){t.timeZoneIANA=e}equals(e){return!((0,s.Wi)(e)||(0,s.Wi)(this.timeZone)||(0,s.Wi)(e.timeZone))&&this.timeZone===e.timeZone}};(0,r._)([(0,o.Cb)()],c.prototype,"legacy",void 0),(0,r._)([(0,d.r)("legacy",["timeZone"])],c.prototype,"readLegacy",null),(0,r._)([(0,o.Cb)({type:String,nonNullable:!0})],c.prototype,"timeZone",void 0),(0,r._)([(0,d.r)("timeZone",["timeZone","timeZoneIANA","respectsDaylightSaving"])],c.prototype,"readTimeZone",null),(0,r._)([(0,p.c)("timeZone")],c.prototype,"writeTimeZone",null),c=(0,r._)([(0,l.j)("esri.time.TimeReference")],c);const m=c},42799:(e,t,a)=>{a.d(t,{G:()=>n});const r=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Chihuahua"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var i=a(17126);function n(e,t="system"){if(!e||!r.has(e.timeZone))return t;const a=r.get(e.timeZone);return e.timeZone.startsWith("UTC")||e.respectsDaylightSaving?a:function(e){const t=i.ou.local().setZone(e),a=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===a?"Etc/UTC":`Etc/GMT${i.Qf.instance(-a).formatOffset(0,"narrow")}`}(a)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8732],{60437:(t,e,n)=>{n.d(e,{Gv:()=>M,HH:()=>u,JR:()=>g,TC:()=>c,Tn:()=>f,Ue:()=>s,al:()=>i,bZ:()=>y,cS:()=>m,dp:()=>a,fS:()=>I,is:()=>p,op:()=>h,pp:()=>l,t8:()=>d});var r=n(70586),o=n(6570);function s(t=x){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function i(t,e,n,r,o,i,u=s()){return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=o,u[5]=i,u}function u(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new o.Z(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function a(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function h(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function f(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function m(t){return t?d(t,M):s(M)}function g(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function y(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=o,t[5]=Number.POSITIVE_INFINITY,t}function p(t){return 6===t.length}function I(t,e,n){if((0,r.Wi)(t)||(0,r.Wi)(e))return t===e;if(!p(t)||!p(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}n(24470);const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];s()},24470:(t,e,n)=>{n.d(e,{Gv:()=>I,HH:()=>l,SO:()=>h,Ue:()=>s,al:()=>u,cS:()=>g,fS:()=>p,jE:()=>f,jn:()=>a,kK:()=>d,oJ:()=>c,r3:()=>m}),n(80442),n(22021);var r=n(70586),o=n(6570);function s(t=M){return[t[0],t[1],t[2],t[3]]}function i(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function u(t,e,n,r,o=s()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function c(t,e=s()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function l(t,e){return new o.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:e})}function a(t,e,n){if((0,r.Wi)(e))i(n,t);else if("length"in e)y(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):2!==e.length&&3!==e.length||(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}}function h(t){return function(t){return(0,r.Wi)(t)||t[0]>=t[2]?0:t[2]-t[0]}(t)*function(t){return t[1]>=t[3]?0:t[3]-t[1]}(t)}function f(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function d(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function m(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function g(t){return t?i(t,I):s(I)}function y(t){return null!=t&&4===t.length}function p(t,e){return y(t)&&y(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:t===e}const I=[1/0,1/0,-1/0,-1/0],M=[0,0,0,0]},70272:(t,e,n)=>{n.d(e,{S6:()=>s,nd:()=>i,u_:()=>o});var r=n(70586);class o{constructor(t=null,e={},n,r){this.geometry=t,this.attributes=e,this.centroid=n,this.objectId=r,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const t=new o(this.geometry,this.attributes,this.centroid,this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function s(t){return!((0,r.Wi)(t.geometry)||!t.geometry.coords||!t.geometry.coords.length)}class i extends o{}},44876:(t,e,n)=>{n.d(e,{Z:()=>r});class r{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const t=new r;return t.objectIdFieldName=this.objectIdFieldName,t.globalIdFieldName=this.globalIdFieldName,t.geohashFieldName=this.geohashFieldName,t.geometryProperties=this.geometryProperties,t.geometryType=this.geometryType,t.spatialReference=this.spatialReference,t.hasZ=this.hasZ,t.hasM=this.hasM,t.features=this.features,t.fields=this.fields,t.transform=this.transform,t.exceededTransferLimit=this.exceededTransferLimit,t.uniqueIdField=this.uniqueIdField,t.queryGeometry=this.queryGeometry,t.queryGeometryType=this.queryGeometryType,t}}},5428:(t,e,n)=>{n.d(e,{Z:()=>r});class r{constructor(t=[],e=[],n=!1){this.lengths=t??[],this.coords=e??[],this.hasIndeterminateRingOrder=n}static fromRect(t){const[e,n,o,s]=t,i=o-e,u=s-n;return new r([5],[e,n,i,0,0,u,-i,0,0,-u])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((t,e)=>t+e))}forEachVertex(t){let e=0;this.lengths.length||t(this.coords[0],this.coords[1]);for(let n=0;n<this.lengths.length;n++){const r=this.lengths[n];for(let n=0;n<r;n++)t(this.coords[2*(n+e)],this.coords[2*(n+e)+1]);e+=r}}clone(t){return t?(t.set(this.coords),new r(this.lengths.slice(),t,this.hasIndeterminateRingOrder)):new r(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},98732:(t,e,n)=>{n.d(e,{$:()=>nt,$g:()=>rt,EI:()=>V,GH:()=>$,IN:()=>b,Iv:()=>_,J6:()=>q,Jd:()=>x,Nh:()=>Q,RZ:()=>K,Uy:()=>z,XA:()=>O,Yn:()=>U,cn:()=>J,dd:()=>j,di:()=>A,eG:()=>Y,fQ:()=>w,hY:()=>ot,h_:()=>X,lM:()=>B,lz:()=>it,oB:()=>ut,zj:()=>D});var r=n(20102),o=n(92604),s=n(70586),i=n(60437),u=n(24470),c=n(33955),l=n(70272),a=n(44876),h=n(5428);function f(t,e){return t?e?4:3:e?3:2}const d=o.Z.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},g=(t,e,n,r,o,s)=>{t[n]=o,t[n+1]=s},y=(t,e,n,r,o,s)=>{t[n]=o,t[n+1]=s,t[n+2]=e[r+2]},p=(t,e,n,r,o,s)=>{t[n]=o,t[n+1]=s,t[n+2]=e[r+3]},I=(t,e,n,r,o,s)=>{t[n]=o,t[n+1]=s,t[n+2]=e[r+2],t[n+3]=e[r+3]};function M(t,e,n,r){if(t){if(n)return e&&r?I:y;if(e&&r)return p}else if(e&&r)return y;return g}function x({scale:t,translate:e},n){return Math.round((n-e[0])/t[0])}function b({scale:t,translate:e},n){return Math.round((e[1]-n)/t[1])}function N({scale:t,translate:e},n,r){return n*t[r]+e[r]}function w(t,e,n){return t?e?n?v(t):G(t):n?P(t):Z(t):null}function Z(t){const e=t.coords;return{x:e[0],y:e[1]}}function T(t,e){return t.coords[0]=e.x,t.coords[1]=e.y,t}function G(t){const e=t.coords;return{x:e[0],y:e[1],z:e[2]}}function F(t,e){return t.coords[0]=e.x,t.coords[1]=e.y,t.coords[2]=e.z,t}function P(t){const e=t.coords;return{x:e[0],y:e[1],m:e[2]}}function C(t,e){return t.coords[0]=e.x,t.coords[1]=e.y,t.coords[2]=e.m,t}function v(t){const e=t.coords;return{x:e[0],y:e[1],z:e[2],m:e[3]}}function R(t,e){return t.coords[0]=e.x,t.coords[1]=e.y,t.coords[2]=e.z,t.coords[3]=e.m,t}function k(t,e){return t&&e?R:t?F:e?C:T}function j(t,e,n=k(null!=e.z,null!=e.m)){return n(t,e)}function _(t,e,n){if((0,s.Wi)(t))return null;const r=f(e,n),o=[];for(let e=0;e<t.coords.length;e+=r){const n=[];for(let o=0;o<r;o++)n.push(t.coords[e+o]);o.push(n)}return e?n?{points:o,hasZ:e,hasM:n}:{points:o,hasZ:e}:n?{points:o,hasM:n}:{points:o}}function E(t,e,n=f(e.hasZ,e.hasM)){t.lengths[0]=e.points.length;const r=t.coords;let o=0;for(const t of e.points)for(let e=0;e<n;e++)r[o++]=t[e];return t}function q(t,e,n){if(!t)return null;const r=f(e,n),{coords:o,lengths:s}=t,i=[];let u=0;for(const t of s){const e=[];for(let n=0;n<t;n++){const t=[];for(let e=0;e<r;e++)t.push(o[u++]);e.push(t)}i.push(e)}return e?n?{paths:i,hasZ:e,hasM:n}:{paths:i,hasZ:e}:n?{paths:i,hasM:n}:{paths:i}}function W(t,e,n=f(e.hasZ,e.hasM)){const{lengths:r,coords:o}=t;let s=0;for(const t of e.paths){for(const e of t)for(let t=0;t<n;t++)o[s++]=e[t];r.push(t.length)}return t}function Y(t,e,n){if(!t)return null;const r=f(e,n),{coords:o,lengths:s}=t,i=[];let u=0;for(const t of s){const e=[];for(let n=0;n<t;n++){const t=[];for(let e=0;e<r;e++)t.push(o[u++]);e.push(t)}i.push(e)}return e?n?{rings:i,hasZ:e,hasM:n}:{rings:i,hasZ:e}:n?{rings:i,hasM:n}:{rings:i}}function z(t,e,n=e.hasZ,r=e.hasM){return function(t,e,n,r){const o=f(n,r),{lengths:s,coords:i}=t;let u=0;ct(t);for(const t of e){for(const e of t)for(let t=0;t<o;t++)i[u++]=e[t];s.push(t.length)}}(t,e.rings,n,r),t}const S=[],L=[];function O(t,e,n,r,o){S[0]=t;const[s]=U(L,S,e,n,r,o);return lt(S),lt(L),s}function U(t,e,n,o,i,u){if(lt(t),!n){for(const n of e){const e=u?n.attributes[u]:void 0;t.push(new l.u_(null,n.attributes,null,e))}return t}switch(n){case"esriGeometryPoint":return function(t,e,n,r,o){const i=k(n,r);for(const{geometry:n,attributes:r}of e){const e=(0,s.pC)(n)?i(new h.Z,n):null;t.push(new l.u_(e,r,null,o?r[o]:void 0))}return t}(t,e,o,i,u);case"esriGeometryMultipoint":return function(t,e,n,r,o){const i=f(n,r);for(const{geometry:n,attributes:r}of e){const e=(0,s.pC)(n)?E(new h.Z,n,i):null;t.push(new l.u_(e,r,null,o?r[o]:void 0))}return t}(t,e,o,i,u);case"esriGeometryPolyline":return function(t,e,n,r,o){const i=f(n,r);for(const{geometry:n,attributes:r}of e){const e=(0,s.pC)(n)?W(new h.Z,n,i):null;t.push(new l.u_(e,r,null,o?r[o]:void 0))}return t}(t,e,o,i,u);case"esriGeometryPolygon":return function(t,e,n,r,o){for(const{geometry:i,centroid:u,attributes:c}of e){const e=(0,s.pC)(i)?z(new h.Z,i,n,r):null,a=o?c[o]:void 0;(0,s.pC)(u)?t.push(new l.u_(e,c,T(new h.Z,u),a)):t.push(new l.u_(e,c,null,a))}return t}(t,e,o,i,u);default:d.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${n}'`)),lt(t)}return t}function V(t,e,n,r){L[0]=t,H(S,L,e,n,r);const o=S[0];return lt(S),lt(L),o}function $(t,e,n){if((0,s.Wi)(t))return null;const o=new h.Z;return"hasZ"in t&&null==e&&(e=t.hasZ),"hasM"in t&&null==n&&(n=t.hasM),(0,c.wp)(t)?k(null!=e?e:null!=t.z,null!=n?n:null!=t.m)(o,t):(0,c.oU)(t)?z(o,t,e,n):(0,c.l9)(t)?W(o,t,f(e,n)):(0,c.aW)(t)?E(o,t,f(e,n)):void d.error("convertFromGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${t}'`))}function A(t,e,n,o){const i=t&&("coords"in t?t:t.geometry);if((0,s.Wi)(i))return null;switch(e){case"esriGeometryPoint":{let t=Z;return n&&o?t=v:n?t=G:o&&(t=P),t(i)}case"esriGeometryMultipoint":return _(i,n,o);case"esriGeometryPolyline":return q(i,n,o);case"esriGeometryPolygon":return Y(i,n,o);default:return d.error("convertToGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${e}'`)),null}}function H(t,e,n,o,i){if(lt(t),(0,s.Wi)(n))return function(t,e){for(const n of e)t.push({attributes:n.attributes});return t}(t,e);switch(n){case"esriGeometryPoint":return function(t,e,n,r){let o=Z;n&&r?o=v:n?o=G:r&&(o=P);for(const n of e){const{geometry:e,attributes:r}=n,i=(0,s.pC)(e)?o(e):null;t.push({attributes:r,geometry:i})}return t}(t,e,o,i);case"esriGeometryMultipoint":return function(t,e,n,r){for(const{geometry:o,attributes:i}of e)t.push({attributes:i,geometry:(0,s.pC)(o)?_(o,n,r):null});return t}(t,e,o,i);case"esriGeometryPolyline":return function(t,e,n,r){for(const{geometry:o,attributes:i}of e)t.push({attributes:i,geometry:(0,s.pC)(o)?q(o,n,r):null});return t}(t,e,o,i);case"esriGeometryPolygon":return function(t,e,n,r){for(const{geometry:o,attributes:i,centroid:u}of e){const e=(0,s.pC)(o)?Y(o,n,r):null;if((0,s.pC)(u)){const n=Z(u);t.push({attributes:i,centroid:n,geometry:e})}else t.push({attributes:i,geometry:e})}return t}(t,e,o,i);default:d.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${n}'`))}return t}function J(t){const{objectIdFieldName:e,spatialReference:n,transform:r,fields:o,hasM:s,hasZ:i,features:u,geometryType:c,exceededTransferLimit:l,uniqueIdField:a,queryGeometry:h,queryGeometryType:f}=t,d={features:H([],u,c,i,s),fields:o,geometryType:c,objectIdFieldName:e,spatialReference:n,uniqueIdField:a,queryGeometry:A(h,f,!1,!1)};return r&&(d.transform=r),l&&(d.exceededTransferLimit=l),s&&(d.hasM=s),i&&(d.hasZ=i),d}function X(t,e){const n=new a.Z,{hasM:o,hasZ:s,features:i,objectIdFieldName:u,spatialReference:c,geometryType:l,exceededTransferLimit:h,transform:f,fields:m}=t;return m&&(n.fields=m),n.geometryType=l??null,n.objectIdFieldName=u??e??null,n.spatialReference=c??null,n.objectIdFieldName?(i&&U(n.features,i,l,s,o,n.objectIdFieldName),h&&(n.exceededTransferLimit=h),o&&(n.hasM=o),s&&(n.hasZ=s),f&&(n.transform=f),n):(d.error(new r.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),n)}function B(t){const{transform:e,features:n,hasM:r,hasZ:o}=t;if(!e)return t;for(const t of n)(0,s.pC)(t.geometry)&&rt(t.geometry,t.geometry,r,o,e),(0,s.pC)(t.centroid)&&rt(t.centroid,t.centroid,r,o,e);return t.transform=null,t}function K(t,e){const{geometryType:n,features:r,hasM:o,hasZ:s}=e;if(!t)return e;for(let e=0;e<r.length;e++){const i=r[e],u=i.weakClone();u.geometry=new h.Z,Q(u.geometry,i.geometry,o,s,n,t),i.centroid&&(u.centroid=new h.Z,Q(u.centroid,i.centroid,o,s,"esriGeometryPoint",t)),r[e]=u}return e.transform=t,e}function Q(t,e,n,r,o,i,u=n,c=r){if(ct(t),(0,s.Wi)(e)||!e.coords.length)return null;const l=m[o],{coords:a,lengths:h}=e,d=f(n,r),g=f(n&&u,r&&c),y=M(n,r,u,c);if(!h.length)return y(t.coords,a,0,0,x(i,a[0]),b(i,a[1])),ct(t,d,0),t;let p,I,N,w,Z=0,T=0,G=T;for(const e of h){if(e<l)continue;let n=0;T=G,N=p=x(i,a[Z]),w=I=b(i,a[Z+1]),y(t.coords,a,T,Z,N,w),n++,Z+=d,T+=g;for(let r=1;r<e;r++,Z+=d)N=x(i,a[Z]),w=b(i,a[Z+1]),N===p&&w===I||(y(t.coords,a,T,Z,N-p,w-I),T+=g,n++,p=N,I=w);n>=l&&(t.lengths.push(n),G=T)}return lt(t.coords,G),t.coords.length?t:null}function D(t,e,n,r,o,s,i=n,u=r){if(ct(t),!e||!e.coords.length)return null;const c=m[o],{coords:l,lengths:a}=e,h=f(n,r),d=f(n&&i,r&&u),g=M(n,r,i,u);if(!a.length)return g(t.coords,l,0,0,l[0],l[1]),ct(t,h,0),t;let y=0;const p=s*s;for(const e of a){if(e<c){y+=e*h;continue}const n=t.coords.length/d,r=y,o=y+(e-1)*h;g(t.coords,l,t.coords.length,r,l[r],l[r+1]),et(t.coords,l,h,p,g,r,o),g(t.coords,l,t.coords.length,o,l[o],l[o+1]);const s=t.coords.length/d-n;s>=c?t.lengths.push(s):lt(t.coords,n*d),y+=e*h}return t.coords.length?t:null}function tt(t,e,n,r){const o=t[e],s=t[e+1],i=t[n],u=t[n+1],c=t[r],l=t[r+1];let a=i,h=u,f=c-a,d=l-h;if(0!==f||0!==d){const t=((o-a)*f+(s-h)*d)/(f*f+d*d);t>1?(a=c,h=l):t>0&&(a+=f*t,h+=d*t)}return f=o-a,d=s-h,f*f+d*d}function et(t,e,n,r,o,s,i){let u,c=r,l=0;for(let t=s+n;t<i;t+=n)u=tt(e,t,s,i),u>c&&(l=t,c=u);c>r&&(l-s>n&&et(t,e,n,r,o,s,l),o(t,e,t.length,l,e[l],e[l+1]),i-l>n&&et(t,e,n,r,o,l,i))}function nt(t,e,n,r){if((0,s.Wi)(e)||!e.coords||!e.coords.length)return null;const o=f(n,r);let c=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,h=Number.NEGATIVE_INFINITY;if(e&&e.coords){const t=e.coords;for(let e=0;e<t.length;e+=o){const n=t[e],r=t[e+1];c=Math.min(c,n),a=Math.max(a,n),l=Math.min(l,r),h=Math.max(h,r)}}return(0,i.is)(t)?(0,i.bZ)(t,c,l,a,h):(0,u.al)(c,l,a,h,t),t}function rt(t,e,n,r,o){const{coords:i,lengths:u}=e,c=f(n,r);if(!i.length)return t!==e&&ct(t),t;(0,s.O3)(o);const{originPosition:l,scale:a,translate:h}=o,d=at;d.originPosition=l;const m=d.scale;m[0]=a[0]??1,m[1]=-(a[1]??1),m[2]=a[2]??1,m[3]=a[3]??1;const g=d.translate;if(g[0]=h[0]??0,g[1]=h[1]??0,g[2]=h[2]??0,g[3]=h[3]??0,!u.length){for(let e=0;e<c;++e)t.coords[e]=N(d,i[e],e);return t!==e&&ct(t,c,0),t}let y=0;for(let e=0;e<u.length;e++){const n=u[e];t.lengths[e]=n;for(let e=0;e<c;++e)t.coords[y+e]=N(d,i[y+e],e);let r=t.coords[y],o=t.coords[y+1];y+=c;for(let e=1;e<n;e++,y+=c){r+=i[y]*m[0],o+=i[y+1]*m[1],t.coords[y]=r,t.coords[y+1]=o;for(let e=2;e<c;++e)t.coords[y+e]=N(d,i[y+e],e)}}return t!==e&&ct(t,i.length,u.length),t}function ot(t,e,n,r,o,s){if(ct(t),t.lengths.push(...e.lengths),n===o&&r===s)for(let n=0;n<e.coords.length;n++)t.coords.push(e.coords[n]);else{const i=f(n,r),u=M(n,r,o,s),c=e.coords;for(let e=0;e<c.length;e+=i)u(t.coords,c,t.coords.length,e,c[e],c[e+1])}return t}function st(t,e,n,r){let o=0,s=t[r*e],i=t[r*(e+1)];for(let u=1;u<n;u++){const n=s+t[r*(e+u)],c=i+t[r*(e+u)+1],l=(n-s)*(c+i);s=n,i=c,o+=l}return.5*o}function it(t,e){const{coords:n,lengths:r}=t;let o=0,s=0;for(let t=0;t<r.length;t++){const i=r[t];s+=st(n,o,i,e),o+=i}return Math.abs(s)}function ut(t,e){if((0,s.Wi)(t))return null;const n=t.clone(),r=t.coords,o=t.lengths;let i=0;for(let t=0;t<o.length;t++){const s=o[t];let u=r[e*i],c=r[e*i+1];for(let t=1;t<s;t++){const o=u+r[e*(i+t)],s=c+r[e*(i+t)+1];n.coords[e*(i+t)]=o,n.coords[e*(i+t)+1]=s,u=o,c=s}i+=s}return n}function ct(t,e=0,n=0){lt(t.lengths,n),lt(t.coords,e)}function lt(t,e=0){t.length!==e&&(t.length=e)}const at={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6748,9880],{66748:(e,t,n)=>{n.r(t),n.d(t,{registerFunctions:()=>b});var r=n(40330),o=n(77286),s=n(61363),a=n(71201),i=n(6570),l=n(9361),c=n(8667),u=n(65091),f=n(94139),h=n(38913),d=n(58901),m=n(33955),g=n(27535),y=n(67900);function w(e){return 0===r.i8.indexOf("4.")?h.Z.fromExtent(e):new h.Z({spatialReference:e.spatialReference,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}function p(e,t,n){if((0,s.y)(e,2,2,t,n),e[0]instanceof l.Z&&e[1]instanceof l.Z);else if(e[0]instanceof l.Z&&null===e[1]);else if(e[1]instanceof l.Z&&null===e[0]);else if(null!==e[0]||null!==e[1])throw new g.aV(t,g.rH.InvalidParameter,n)}async function v(e,t){if("polygon"!==e.type&&"polyline"!==e.type&&"extent"!==e.type)return 0;let n=1;(e.spatialReference.vcsWkid||e.spatialReference.latestVcsWkid)&&(n=(0,a._R)(e.spatialReference)/(0,y.c9)(e.spatialReference));let r=0;if("polyline"===e.type)for(const t of e.paths)for(let e=1;e<t.length;e++)r+=(0,a.AW)(t[e],t[e-1],n);else if("polygon"===e.type)for(const t of e.rings){for(let e=1;e<t.length;e++)r+=(0,a.AW)(t[e],t[e-1],n);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,a.AW)(t[0],t[t.length-1],n))}else"extent"===e.type&&(r+=2*(0,a.AW)([e.xmin,e.ymin,0],[e.xmax,e.ymin,0],n),r+=2*(0,a.AW)([e.xmin,e.ymin,0],[e.xmin,e.ymax,0],n),r*=2,r+=4*Math.abs((0,s.A)(e.zmax,0)*n-(0,s.A)(e.zmin,0)*n));const o=new d.Z({hasZ:!1,hasM:!1,spatialReference:e.spatialReference,paths:[[0,0],[0,r]]});return(0,c.sz)(o,t)}function b(e){"async"===e.mode&&(e.functions.disjoint=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>(p(o=(0,s.G)(o),t,n),null===o[0]||null===o[1]||(0,c.ED)(o[0],o[1]))))},e.functions.intersects=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>(p(o=(0,s.G)(o),t,n),null!==o[0]&&null!==o[1]&&(0,c.kK)(o[0],o[1]))))},e.functions.touches=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>(p(o=(0,s.G)(o),t,n),null!==o[0]&&null!==o[1]&&(0,c.W4)(o[0],o[1]))))},e.functions.crosses=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>(p(o=(0,s.G)(o),t,n),null!==o[0]&&null!==o[1]&&(0,c.jU)(o[0],o[1]))))},e.functions.within=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>(p(o=(0,s.G)(o),t,n),null!==o[0]&&null!==o[1]&&(0,c.uh)(o[0],o[1]))))},e.functions.contains=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>(p(o=(0,s.G)(o),t,n),null!==o[0]&&null!==o[1]&&(0,c.r3)(o[0],o[1]))))},e.functions.overlaps=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>(p(o=(0,s.G)(o),t,n),null!==o[0]&&null!==o[1]&&(0,c.Nm)(o[0],o[1]))))},e.functions.equals=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>((0,s.y)(o,2,2,t,n),o[0]===o[1]||(o[0]instanceof l.Z&&o[1]instanceof l.Z?(0,c.fS)(o[0],o[1]):!(!(0,s.k)(o[0])||!(0,s.k)(o[1]))&&o[0].equals(o[1])))))},e.functions.relate=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>{if(o=(0,s.G)(o),(0,s.y)(o,3,3,t,n),o[0]instanceof l.Z&&o[1]instanceof l.Z)return(0,c.LV)(o[0],o[1],(0,s.j)(o[2]));if(o[0]instanceof l.Z&&null===o[1])return!1;if(o[1]instanceof l.Z&&null===o[0])return!1;if(null===o[0]&&null===o[1])return!1;throw new g.aV(t,g.rH.InvalidParameter,n)}))},e.functions.intersection=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>(p(o=(0,s.G)(o),t,n),null===o[0]||null===o[1]?null:(0,c.wf)(o[0],o[1]))))},e.functions.union=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>{const i=[];if(0===(a=(0,s.G)(a)).length)throw new g.aV(t,g.rH.WrongNumberOfParameters,n);if(1===a.length)if((0,s.m)(a[0])){const e=(0,s.G)(a[0]);for(let r=0;r<e.length;r++)if(null!==e[r]){if(!(e[r]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);i.push(e[r])}}else{if(!(0,s.x)(a[0])){if(a[0]instanceof l.Z)return(0,s.q)((0,o.r1)(a[0]),t.spatialReference);if(null===a[0])return null;throw new g.aV(t,g.rH.InvalidParameter,n)}{const e=(0,s.G)(a[0].toArray());for(let r=0;r<e.length;r++)if(null!==e[r]){if(!(e[r]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);i.push(e[r])}}}else for(let e=0;e<a.length;e++)if(null!==a[e]){if(!(a[e]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);i.push(a[e])}return 0===i.length?null:(0,c.G0)(i)}))},e.functions.difference=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>(p(a=(0,s.G)(a),t,n),null!==a[0]&&null===a[1]?(0,o.r1)(a[0]):null===a[0]?null:(0,c.e5)(a[0],a[1]))))},e.functions.symmetricdifference=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>(p(a=(0,s.G)(a),t,n),null===a[0]&&null===a[1]?null:null===a[0]?(0,o.r1)(a[1]):null===a[1]?(0,o.r1)(a[0]):(0,c.Sp)(a[0],a[1]))))},e.functions.clip=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>{if(o=(0,s.G)(o),(0,s.y)(o,2,2,t,n),!(o[1]instanceof i.Z)&&null!==o[1])throw new g.aV(t,g.rH.InvalidParameter,n);if(null===o[0])return null;if(!(o[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);return null===o[1]?null:(0,c.oq)(o[0],o[1])}))},e.functions.cut=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>{if(a=(0,s.G)(a),(0,s.y)(a,2,2,t,n),!(a[1]instanceof d.Z)&&null!==a[1])throw new g.aV(t,g.rH.InvalidParameter,n);if(null===a[0])return[];if(!(a[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);return null===a[1]?[(0,o.r1)(a[0])]:(0,c.z7)(a[0],a[1])}))},e.functions.area=function(t,n){return e.standardFunctionAsync(t,n,(async(e,r,a)=>{if((0,s.y)(a,1,2,t,n),null===(a=(0,s.G)(a))[0])return 0;if((0,s.T)(a[0])){const e=await a[0].sumArea((0,o.EI)((0,s.A)(a[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new g.aV(t,g.rH.Cancelled,n);return e}if((0,s.m)(a[0])||(0,s.x)(a[0])){const e=(0,s.J)(a[0],t.spatialReference);return null===e?0:(0,c.CJ)(e,(0,o.EI)((0,s.A)(a[1],-1)))}if(!(a[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);return(0,c.CJ)(a[0],(0,o.EI)((0,s.A)(a[1],-1)))}))},e.functions.areageodetic=function(t,n){return e.standardFunctionAsync(t,n,(async(e,r,a)=>{if((0,s.y)(a,1,2,t,n),null===(a=(0,s.G)(a))[0])return 0;if((0,s.T)(a[0])){const e=await a[0].sumArea((0,o.EI)((0,s.A)(a[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new g.aV(t,g.rH.Cancelled,n);return e}if((0,s.m)(a[0])||(0,s.x)(a[0])){const e=(0,s.J)(a[0],t.spatialReference);return null===e?0:(0,c.Y4)(e,(0,o.EI)((0,s.A)(a[1],-1)))}if(!(a[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);return(0,c.Y4)(a[0],(0,o.EI)((0,s.A)(a[1],-1)))}))},e.functions.length=function(t,n){return e.standardFunctionAsync(t,n,(async(e,r,a)=>{if((0,s.y)(a,1,2,t,n),null===(a=(0,s.G)(a))[0])return 0;if((0,s.T)(a[0])){const e=await a[0].sumLength((0,o.Lz)((0,s.A)(a[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new g.aV(t,g.rH.Cancelled,n);return e}if((0,s.m)(a[0])||(0,s.x)(a[0])){const e=(0,s.H)(a[0],t.spatialReference);return null===e?0:(0,c.sz)(e,(0,o.Lz)((0,s.A)(a[1],-1)))}if(!(a[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);return(0,c.sz)(a[0],(0,o.Lz)((0,s.A)(a[1],-1)))}))},e.functions.length3d=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>{if((0,s.y)(a,1,2,t,n),null===(a=(0,s.G)(a))[0])return 0;if((0,s.m)(a[0])||(0,s.x)(a[0])){const e=(0,s.H)(a[0],t.spatialReference);return null===e?0:!0===e.hasZ?v(e,(0,o.Lz)((0,s.A)(a[1],-1))):(0,c.sz)(e,(0,o.Lz)((0,s.A)(a[1],-1)))}if(!(a[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);return!0===a[0].hasZ?v(a[0],(0,o.Lz)((0,s.A)(a[1],-1))):(0,c.sz)(a[0],(0,o.Lz)((0,s.A)(a[1],-1)))}))},e.functions.lengthgeodetic=function(t,n){return e.standardFunctionAsync(t,n,(async(e,r,a)=>{if((0,s.y)(a,1,2,t,n),null===(a=(0,s.G)(a))[0])return 0;if((0,s.T)(a[0])){const e=await a[0].sumLength((0,o.Lz)((0,s.A)(a[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new g.aV(t,g.rH.Cancelled,n);return e}if((0,s.m)(a[0])||(0,s.x)(a[0])){const e=(0,s.H)(a[0],t.spatialReference);return null===e?0:(0,c.kQ)(e,(0,o.Lz)((0,s.A)(a[1],-1)))}if(!(a[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);return(0,c.kQ)(a[0],(0,o.Lz)((0,s.A)(a[1],-1)))}))},e.functions.distance=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>{a=(0,s.G)(a),(0,s.y)(a,2,3,t,n);let i=a[0];((0,s.m)(a[0])||(0,s.x)(a[0]))&&(i=(0,s.K)(a[0],t.spatialReference));let u=a[1];if(((0,s.m)(a[1])||(0,s.x)(a[1]))&&(u=(0,s.K)(a[1],t.spatialReference)),!(i instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);if(!(u instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);return(0,c.TE)(i,u,(0,o.Lz)((0,s.A)(a[2],-1)))}))},e.functions.distancegeodetic=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>{a=(0,s.G)(a),(0,s.y)(a,2,3,t,n);const i=a[0],l=a[1];if(!(i instanceof f.Z))throw new g.aV(t,g.rH.InvalidParameter,n);if(!(l instanceof f.Z))throw new g.aV(t,g.rH.InvalidParameter,n);const u=new d.Z({paths:[],spatialReference:i.spatialReference});return u.addPath([i,l]),(0,c.kQ)(u,(0,o.Lz)((0,s.A)(a[2],-1)))}))},e.functions.densify=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>{if(a=(0,s.G)(a),(0,s.y)(a,2,3,t,n),null===a[0])return null;if(!(a[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);const u=(0,s.g)(a[1]);if(isNaN(u))throw new g.aV(t,g.rH.InvalidParameter,n);if(u<=0)throw new g.aV(t,g.rH.InvalidParameter,n);return a[0]instanceof h.Z||a[0]instanceof d.Z?(0,c.Cz)(a[0],u,(0,o.Lz)((0,s.A)(a[2],-1))):a[0]instanceof i.Z?(0,c.Cz)(w(a[0]),u,(0,o.Lz)((0,s.A)(a[2],-1))):a[0]}))},e.functions.densifygeodetic=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>{if(a=(0,s.G)(a),(0,s.y)(a,2,3,t,n),null===a[0])return null;if(!(a[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);const u=(0,s.g)(a[1]);if(isNaN(u))throw new g.aV(t,g.rH.InvalidParameter,n);if(u<=0)throw new g.aV(t,g.rH.InvalidParameter,n);return a[0]instanceof h.Z||a[0]instanceof d.Z?(0,c.j2)(a[0],u,(0,o.Lz)((0,s.A)(a[2],-1))):a[0]instanceof i.Z?(0,c.j2)(w(a[0]),u,(0,o.Lz)((0,s.A)(a[2],-1))):a[0]}))},e.functions.generalize=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>{if(a=(0,s.G)(a),(0,s.y)(a,2,4,t,n),null===a[0])return null;if(!(a[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);const i=(0,s.g)(a[1]);if(isNaN(i))throw new g.aV(t,g.rH.InvalidParameter,n);return(0,c.D$)(a[0],i,(0,s.h)((0,s.A)(a[2],!0)),(0,o.Lz)((0,s.A)(a[3],-1)))}))},e.functions.buffer=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>{if(a=(0,s.G)(a),(0,s.y)(a,2,3,t,n),null===a[0])return null;if(!(a[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);const i=(0,s.g)(a[1]);if(isNaN(i))throw new g.aV(t,g.rH.InvalidParameter,n);return 0===i?(0,o.r1)(a[0]):(0,c.f3)(a[0],i,(0,o.Lz)((0,s.A)(a[2],-1)))}))},e.functions.buffergeodetic=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>{if(a=(0,s.G)(a),(0,s.y)(a,2,3,t,n),null===a[0])return null;if(!(a[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);const i=(0,s.g)(a[1]);if(isNaN(i))throw new g.aV(t,g.rH.InvalidParameter,n);return 0===i?(0,o.r1)(a[0]):(0,c.rd)(a[0],i,(0,o.Lz)((0,s.A)(a[2],-1)))}))},e.functions.offset=function(t,n){return e.standardFunctionAsync(t,n,((e,r,a)=>{if(a=(0,s.G)(a),(0,s.y)(a,2,6,t,n),null===a[0])return null;if(!(a[0]instanceof h.Z||a[0]instanceof d.Z))throw new g.aV(t,g.rH.InvalidParameter,n);const i=(0,s.g)(a[1]);if(isNaN(i))throw new g.aV(t,g.rH.InvalidParameter,n);const l=(0,s.g)((0,s.A)(a[4],10));if(isNaN(l))throw new g.aV(t,g.rH.InvalidParameter,n);const u=(0,s.g)((0,s.A)(a[5],0));if(isNaN(u))throw new g.aV(t,g.rH.InvalidParameter,n);return(0,c.cv)(a[0],i,(0,o.Lz)((0,s.A)(a[2],-1)),(0,s.j)((0,s.A)(a[3],"round")).toLowerCase(),l,u)}))},e.functions.rotate=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>{o=(0,s.G)(o),(0,s.y)(o,2,3,t,n);let a=o[0];if(null===a)return null;if(!(a instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);a instanceof i.Z&&(a=h.Z.fromExtent(a));const u=(0,s.g)(o[1]);if(isNaN(u))throw new g.aV(t,g.rH.InvalidParameter,n);const d=(0,s.A)(o[2],null);if(null===d)return(0,c.U1)(a,u);if(d instanceof f.Z)return(0,c.U1)(a,u,d);throw new g.aV(t,g.rH.InvalidParameter,n)}))},e.functions.centroid=function(t,n){return e.standardFunctionAsync(t,n,((e,r,c)=>{if(c=(0,s.G)(c),(0,s.y)(c,1,1,t,n),null===c[0])return null;let m=c[0];if(((0,s.m)(c[0])||(0,s.x)(c[0]))&&(m=(0,s.K)(c[0],t.spatialReference)),null===m)return null;if(!(m instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);return m instanceof f.Z?(0,s.q)((0,o.r1)(c[0]),t.spatialReference):m instanceof h.Z?m.centroid:m instanceof d.Z?(0,a.s9)(m):m instanceof u.Z?(0,a.Ay)(m):m instanceof i.Z?m.center:null}))},e.functions.multiparttosinglepart=function(t,n){return e.standardFunctionAsync(t,n,(async(e,r,a)=>{a=(0,s.G)(a),(0,s.y)(a,1,1,t,n);const y=[];if(null===a[0])return null;if(!(a[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);if(a[0]instanceof f.Z)return[(0,s.q)((0,o.r1)(a[0]),t.spatialReference)];if(a[0]instanceof i.Z)return[(0,s.q)((0,o.r1)(a[0]),t.spatialReference)];const w=await(0,c.og)(a[0]);if(w instanceof h.Z){const e=[],t=[];for(let n=0;n<w.rings.length;n++)if(w.isClockwise(w.rings[n])){const t=(0,m.im)({rings:[w.rings[n]],hasZ:!0===w.hasZ,hazM:!0===w.hasM,spatialReference:w.spatialReference.toJSON()});e.push(t)}else t.push({ring:w.rings[n],pt:w.getPoint(n,0)});for(let n=0;n<t.length;n++)for(let r=0;r<e.length;r++)if(e[r].contains(t[n].pt)){e[r].addRing(t[n].ring);break}return e}if(w instanceof d.Z){const e=[];for(let t=0;t<w.paths.length;t++){const n=(0,m.im)({paths:[w.paths[t]],hasZ:!0===w.hasZ,hazM:!0===w.hasM,spatialReference:w.spatialReference.toJSON()});e.push(n)}return e}if(a[0]instanceof u.Z){const e=(0,s.q)((0,o.r1)(a[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)y.push(e.getPoint(t));return y}return null}))},e.functions.issimple=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>{if(o=(0,s.G)(o),(0,s.y)(o,1,1,t,n),null===o[0])return!0;if(!(o[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);return(0,c.Gg)(o[0])}))},e.functions.simplify=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>{if(o=(0,s.G)(o),(0,s.y)(o,1,1,t,n),null===o[0])return null;if(!(o[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);return(0,c.og)(o[0])}))},e.functions.convexhull=function(t,n){return e.standardFunctionAsync(t,n,((e,r,o)=>{if(o=(0,s.G)(o),(0,s.y)(o,1,1,t,n),null===o[0])return null;if(!(o[0]instanceof l.Z))throw new g.aV(t,g.rH.InvalidParameter,n);return(0,c.JI)(o[0])}))})}},99880:(e,t,n)=>{n.d(t,{V:()=>l});var r=n(68773),o=(n(3172),n(20102)),s=n(92604),a=n(17452);const i=s.Z.getLogger("esri.assets");function l(e){if(!r.Z.assetsPath)throw i.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,a.v_)(r.Z.assetsPath,e)}},64830:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(70586);class o{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._items=new Set}get length(){return this._items.size}clear(){this._items.clear()}last(){if(0===this._items.size)return;let e;for(e of this._items);return e}peek(){if(0!==this._items.size)return this._peeker(this._items)}push(e){this.contains(e)||this._items.add(e)}contains(e){return this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete((0,r.j0)(e)),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete((0,r.j0)(e)),e}remove(e){this._items.delete(e)}filter(e){return this._items.forEach((t=>{e(t)||this._items.delete(t)})),this}}},80903:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(50758),o=n(92604),s=n(95330),a=n(64830),i=n(25045);class l{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new a.Z}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((n,r)=>{let o=!0;const a=e=>{(0,s.k_)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let o=0;o<e.length;++o){const l=e[o];(0,s.y8)(l)?this._clientPromises[o]=l.then((e=>(this._clients[o]=new i.default(e,t,(()=>this._ongoingJobsQueue.pop()??null)),a(n),this._clients[o])),(()=>(a(r),null))):(this._clients[o]=new i.default(l,t,(()=>this._ongoingJobsQueue.pop()??null)),this._clientPromises[o]=Promise.resolve(this._clients[o]),a(n))}}))}broadcast(e,t,n){const r=new Array(this._clientPromises.length);for(let o=0;o<this._clientPromises.length;++o){const s=this._clientPromises[o];r[o]=s.then((r=>r?.invoke(e,t,n)))}return r}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.deferred.reject((0,s.zE)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0}invoke(e,t,n){let r;Array.isArray(n)?(o.Z.getLogger("esri.core.workers.Connection").warn("invoke()","The transferList parameter is deprecated, use the options object instead"),r={transferList:n}):r=n;const a=(0,s.dD)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,deferred:a});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return a.promise}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,r.AL)(this._clients.map((n=>n.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let n=t.length;for(let r=0;r<this._clientPromises.length;++r)this._clientPromises[r].then((o=>{o&&(t[r]=o.openPort()),0==--n&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},78346:(e,t,n)=>{n.d(t,{bA:()=>O});var r=n(20102),o=n(80442),s=n(95330),a=n(80903),i=n(25045),l=n(40330),c=n(92604),u=n(70586),f=n(94362),h=n(99880),d=n(68773),m=(n(2587),n(17452));const g={};function y(e){const t={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")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=g.baseUrl),g.packages?.forEach((e=>{!function(e,t){for(const n of e)if(n.name===t.name)return;e.push(t)}(t.packages??[],e)})),t}var w=n(41213);class p{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...n)=>e[t](...n)}))}}class v{constructor(){this._dispatcher=new p,this._workerPostMessage({type:f.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,w.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,n){this._dispatcher.addEventListener(e,t,n)}removeEventListener(e,t,n){this._dispatcher.removeEventListener(e,t,n)}_workerPostMessage(e){(0,w.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,f.QM)(e);if(t&&t.type===f.Cs.OPEN){const{modulePath:e,jobId:n}=t;let r=await i.default.loadWorker(e);r||(r=await import(e));const o=i.default.connect(r);this._workerPostMessage({type:f.Cs.OPENED,jobId:n,data:o})}}}var b=n(70171),k=n(17202);const A=c.Z.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:_}=f.Cs;let P,Z;const I="Failed to create Worker. Fallback to execute module in main thread";async function L(e){return new Promise((t=>{function n(o){const s=(0,f.QM)(o);s&&s.type===_&&(e.removeEventListener("message",n),e.removeEventListener("error",r),t(e))}function r(t){t.preventDefault(),e.removeEventListener("message",n),e.removeEventListener("error",r),A.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new v).addEventListener("message",n),e.addEventListener("error",r)}e.addEventListener("message",n),e.addEventListener("error",r)}))}let E=0;const{ABORT:H,INVOKE:S,OPEN:N,OPENED:R,RESPONSE:M}=f.Cs;class V{static async create(e){const t=await async function(){if(!(0,o.Z)("esri-workers")||((0,o.Z)("mozilla"),0))return L(new v);if(!P&&!Z)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,version:r}=configuration.kernelInfo,{revision:t,version:n}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS API for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\\nModules version: ${r}\\nAssets version: ${n}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.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((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const i=outgoing.get(r);outgoing.delete(r),o.error?i.reject(JSON.parse(o.error)):i.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});'.split('"{CONFIGURATION}"').join(`'${function(){let e;if(null!=d.Z.default){const t={...d.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(d.Z));e.assetsPath=(0,m.hF)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,m.hF)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.Kd)(),e.has={"esri-csp-restrictions":(0,o.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.Z)("esri-2d-update-debug"),"featurelayer-pbf":(0,o.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,o.Z)("esri-atomics"),"esri-shared-array-buffer":(0,o.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.Z)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,o.Z)("feature-polyline-generalization-factor"),"host-webworker":1,"polylabel-placement-enabled":(0,o.Z)("polylabel-placement-enabled")},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,m.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,m.hF)(e.workers.workerPath):e.workers.workerPath=(0,m.hF)((0,h.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=d.Z.workers.loaderConfig,n=y({baseUrl:t?.baseUrl,locale:(0,b.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),r={version:l.i8,buildDate:k.r,revision:k.$};return JSON.stringify({esriConfig:e,loaderConfig:n,kernelInfo:r})}()}'`);P=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){Z=e||{}}let e;if(P)try{e=new Worker(P,{name:"esri-worker-"+E++})}catch(t){A.warn(I,Z),e=new v}else A.warn(I,Z),e=new v;return L(e)}();return new V(t,e)}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(),c.Z.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:n}=t,r=(0,f.jt)();return new Promise(((t,o)=>{const a={resolve:t,reject:o,abortHandle:(0,s.$F)(n,(()=>{this._outJobs.delete(r),this._post({type:H,jobId:r})}))};this._outJobs.set(r,a),this._post({type:N,jobId:r,modulePath:e})}))}_onMessage(e){const t=(0,f.QM)(e);if(t)switch(t.type){case R:this._onOpenedMessage(t);break;case M:this._onResponseMessage(t);break;case H:this._onAbortMessage(t);break;case S:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);r&&(r.controller&&r.controller.abort(),t.delete(n))}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,a=o?new AbortController:null,i=this._inJobs,c=l.Nv[t];let u;try{if("function"!=typeof c)throw new TypeError(`${t} is not a function`);u=c.call(null,r,{signal:a?a.signal:null})}catch(e){return void this._post({type:M,jobId:n,error:(0,f.AB)(e)})}(0,s.y8)(u)?(i.set(n,{controller:a,promise:u}),u.then((e=>{i.has(n)&&(i.delete(n),this._post({type:M,jobId:n},e))}),(e=>{i.has(n)&&(i.delete(n),e||(e={message:"Error encountered at method"+t}),(0,s.D_)(e)||this._post({type:M,jobId:n,error:(0,f.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:M,jobId:n},u)}_onOpenedMessage(e){const{jobId:t,data:n}=e,r=this._outJobs.get(t);r&&(this._outJobs.delete(t),(0,u.hw)(r.abortHandle),r.resolve(n))}_onResponseMessage(e){const{jobId:t,error:n,data:o}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,u.hw)(s.abortHandle),n?s.reject(r.Z.fromJSON(JSON.parse(n))):s.resolve(o))}_post(e,t,n){return(0,f.oi)(this.worker,e,t,n)}}let C=(0,o.Z)("esri-workers-debug")?1:(0,o.Z)("esri-mobile")?Math.min(navigator.hardwareConcurrency-1,3):(0,o.Z)("host-browser")?navigator.hardwareConcurrency-1:0;C||(C=(0,o.Z)("safari")&&(0,o.Z)("mac")?7:2);let F=0;const x=[];async function z(e,t){const n=new a.Z;return await n.open(e,t),n}async function O(e,t={}){if("string"!=typeof e)throw new r.Z("workers:undefined-module","modulePath is missing");let n=t.strategy||"distributed";if((0,o.Z)("host-webworker")&&!(0,o.Z)("esri-workers")&&(n="local"),"local"===n){let n=await i.default.loadWorker(e);n||(n=await import(e)),(0,s.k_)(t.signal);const r=t.client||n;return z([i.default.connect(n)],{...t,client:r})}if(await async function(){if(j)return j;D=new AbortController;const e=[];for(let t=0;t<C;t++){const n=V.create(t).then((e=>(x[t]=e,e)));e.push(n)}return j=Promise.all(e),j}(),(0,s.k_)(t.signal),"dedicated"===n){const n=F++%C;return z([await x[n].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const n=Math.min(t.maxNumWorkers,C);if(n<C){const r=new Array(n);for(let o=0;o<n;++o){const n=F++%C;r[o]=x[n].open(e,t)}return z(r,t)}}return z(x.map((n=>n.open(e,t))),t)}let D,j=null},8667:(e,t,n)=>{n.d(t,{CJ:()=>F,Cz:()=>V,D$:()=>M,ED:()=>v,G0:()=>E,Gg:()=>A,JI:()=>P,LV:()=>k,Nm:()=>b,Sp:()=>I,TE:()=>m,U1:()=>R,W4:()=>w,Y4:()=>z,cv:()=>H,e5:()=>Z,f3:()=>S,fS:()=>g,j2:()=>C,jU:()=>d,kK:()=>y,kQ:()=>O,og:()=>_,oq:()=>u,r3:()=>h,rd:()=>N,sz:()=>x,uh:()=>p,wf:()=>L,z7:()=>f}),n(66577);var r=n(78346),o=(n(94139),n(33955));function s(e){return Array.isArray(e)?e[0]?.spatialReference:e?.spatialReference}function a(e){return e?Array.isArray(e)?e.map(a):e.toJSON?e.toJSON():e:e}function i(e){return Array.isArray(e)?e.map((e=>(0,o.im)(e))):(0,o.im)(e)}let l;async function c(e,t){return(await async function(){return l||(l=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:e,parameters:a(t)})}async function u(e,t){return i(await c("clip",[s(e),e,t]))}async function f(e,t){return i(await c("cut",[s(e),e,t]))}function h(e,t){return c("contains",[s(e),e,t])}function d(e,t){return c("crosses",[s(e),e,t])}function m(e,t,n){return c("distance",[s(e),e,t,n])}function g(e,t){return c("equals",[s(e),e,t])}function y(e,t){return c("intersects",[s(e),e,t])}function w(e,t){return c("touches",[s(e),e,t])}function p(e,t){return c("within",[s(e),e,t])}function v(e,t){return c("disjoint",[s(e),e,t])}function b(e,t){return c("overlaps",[s(e),e,t])}function k(e,t,n){return c("relate",[s(e),e,t,n])}function A(e){return c("isSimple",[s(e),e])}async function _(e){return i(await c("simplify",[s(e),e]))}async function P(e,t=!1){return i(await c("convexHull",[s(e),e,t]))}async function Z(e,t){return i(await c("difference",[s(e),e,t]))}async function I(e,t){return i(await c("symmetricDifference",[s(e),e,t]))}async function L(e,t){return i(await c("intersect",[s(e),e,t]))}async function E(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return i(await c("union",[s(n),n]))}async function H(e,t,n,r,o,a){return i(await c("offset",[s(e),e,t,n,r,o,a]))}async function S(e,t,n,r=!1){const o=[s(e),e,t,n,r];return i(await c("buffer",o))}async function N(e,t,n,r,o,a){const l=[s(e),e,t,n,r,o,a];return i(await c("geodesicBuffer",l))}async function R(e,t,n){if(null==e)throw new D;const r=e.spatialReference;if(null==(n=n??function(e){return"xmin"in e?e.center:"x"in e?e:e.extent?.center}(e)))throw new D;const o=e.constructor.fromJSON(await c("rotate",[r,e,t,n]));return o.spatialReference=r,o}async function M(e,t,n,r){return i(await c("generalize",[s(e),e,t,n,r]))}async function V(e,t,n){return i(await c("densify",[s(e),e,t,n]))}async function C(e,t,n,r=0){return i(await c("geodesicDensify",[s(e),e,t,n,r]))}function F(e,t){return c("planarArea",[s(e),e,t])}function x(e,t){return c("planarLength",[s(e),e,t])}function z(e,t,n){return c("geodesicArea",[s(e),e,t,n])}function O(e,t,n){return c("geodesicLength",[s(e),e,t,n])}class D extends Error{constructor(){super("Illegal Argument Exception")}}},2587:(e,t,n)=>{n(90344),n(18848),n(940),n(70171);var r=n(94443),o=n(3172),s=n(20102),a=n(70586);async function i(e){if((0,a.pC)(l.fetchBundleAsset))return l.fetchBundleAsset(e);const t=await(0,o.default)(e,{responseType:"text"});return JSON.parse(t.data)}const l={};var c,u=n(99880);(0,r.tz)((c={pattern:"esri/",location:u.V},new class{constructor({base:e="",pattern:t,location:n=new URL(window.location.href)}){let r;r="string"==typeof n?e=>new URL(e,new URL(n,window.location.href)).href:n instanceof URL?e=>new URL(e,n).href:n,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,n,o){const a=t.exec(n);if(!a)throw new s.Z("esri-intl:invalid-bundle",`Bundle id "${n}" is not compatible with the pattern "${t}"`);const l=a[1]?`${a[1]}/`:"",c=a[2],u=(0,r.Su)(o),f=`${l}${c}.json`,h=u?`${l}${c}_${u}.json`:f;let d;try{d=await i(e(h))}catch(t){if(h===f)throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:t});try{d=await i(e(f))}catch(e){throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:e})}}return d}(this.getAssetUrl,this.matcher,e,t)}}(c)))},90344:(e,t,n)=>{n.d(t,{Ze:()=>y,p6:()=>w});var r=n(35454),o=n(70171);const s={year:"numeric",month:"numeric",day:"numeric"},a={year:"numeric",month:"long",day:"numeric"},i={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},u={...c,second:"numeric"},f={"short-date":s,"short-date-short-time":{...s,...c},"short-date-short-time-24":{...s,...c,hour12:!1},"short-date-long-time":{...s,...u},"short-date-long-time-24":{...s,...u,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...c},"short-date-le-short-time-24":{...s,...c,hour12:!1},"short-date-le-long-time":{...s,...u},"short-date-le-long-time-24":{...s,...u,hour12:!1},"long-month-day-year":a,"long-month-day-year-short-time":{...a,...c},"long-month-day-year-short-time-24":{...a,...c,hour12:!1},"long-month-day-year-long-time":{...a,...u},"long-month-day-year-long-time-24":{...a,...u,hour12:!1},"day-short-month-year":i,"day-short-month-year-short-time":{...i,...c},"day-short-month-year-short-time-24":{...i,...c,hour12:!1},"day-short-month-year-long-time":{...i,...u},"day-short-month-year-long-time-24":{...i,...u,hour12:!1},"long-date":l,"long-date-short-time":{...l,...c},"long-date-short-time-24":{...l,...c,hour12:!1},"long-date-long-time":{...l,...u},"long-date-long-time-24":{...l,...u,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":u},h=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),d=(h.apiValues,h.toJSON.bind(h),h.fromJSON.bind(h),{ar:"ar-u-nu-latn-ca-gregory"});let m=new WeakMap,g=f["short-date-short-time"];function y(e){return e?f[e]:null}function w(e,t){return function(e){const t=e||g;let n=m.get(t);if(!n){const e=(0,o.Kd)(),r=d[(0,o.Kd)()]||e;n=new Intl.DateTimeFormat(r,t),m.set(t,n)}return n}(t).format(e)}(0,o.Ze)((()=>{m=new WeakMap,g=f["short-date-short-time"]}))},94443:(e,t,n)=>{n.d(t,{ME:()=>d,Su:()=>m,tz:()=>h});var r=n(20102),o=n(95330),s=n(70171);const a=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,i={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){return i[e]??!1}const c=[],u=new Map;function f(e){for(const t of u.keys())g(e.pattern,t)&&u.delete(t)}function h(e){return c.includes(e)||(f(e),c.unshift(e)),{remove(){const t=c.indexOf(e);t>-1&&(c.splice(t,1),f(e))}}}async function d(e){const t=(0,s.Kd)();u.has(e)||u.set(e,async function(e,t){const n=[];for(const r of c)if(g(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=u.get(e);return n&&await y.add(n),n}function m(e){if(!a.test(e))return null;const t=a.exec(e);if(null===t)return null;const[,n,r]=t,o=n+(r?"-"+r.toUpperCase():"");return l(o)?o:l(n)?n:null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,s.Ze)((()=>{u.clear()}));const y=new class{constructor(){this._numLoading=0,this._dfd=null}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,o.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,n)=>{n.d(t,{sh:()=>l,uf:()=>c});var r=n(70586),o=n(70171);const s={ar:"ar-u-nu-latn"};let a=new WeakMap,i={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function c(e,t){return-0===e&&(e=0),function(e){const t=e||i;if(!a.has(t)){const n=(0,o.Kd)(),r=s[(0,o.Kd)()]||n;a.set(t,new Intl.NumberFormat(r,e))}return(0,r.j0)(a.get(t))}(t).format(e)}(0,o.Ze)((()=>{a=new WeakMap,i={}}))},940:(e,t,n)=>{n.d(t,{n:()=>c});var r=n(92604),o=n(78286),s=n(19153),a=n(90344),i=n(18848);const l=r.Z.getLogger("esri.intl.substitute");function c(e,t,n={}){const{format:r={}}=n;return(0,s.gx)(e,(e=>function(e,t,n){let r,s;const a=e.indexOf(":");if(-1===a?r=e.trim():(r=e.slice(0,a).trim(),s=e.slice(a+1).trim()),!r)return"";const i=(0,o.hS)(r,t);if(null==i)return"";const l=(s?n?.[s]:null)??n?.[r];return l?u(i,l):s?f(i,s):h(i)}(e,t,r)))}function u(e,t){switch(t.type){case"date":return(0,a.p6)(e,t.intlOptions);case"number":return(0,i.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),h(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,a.p6)(e);case"numberformat":return(0,i.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,a.p6)(e):/^numberformat/i.test(t)?(0,i.uf)(e):h(e)}}function h(e){switch(typeof e){case"string":return e;case"number":return(0,i.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,a.p6)(e):""}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6367],{48853:(e,t,r)=>{r.d(t,{Qn:()=>c,iG:()=>u});var n,o=r(27535),i=r(17126);class s{}s.instance=new i.vF("Etc/UTC"),(n||(n={})).TimeZoneNotRecognised="TimeZoneNotRecognised";const a={[n.TimeZoneNotRecognised]:"Timezone identifier has not been recognised."};class l extends Error{constructor(e,t){super((0,o.Hy)(a[e],t)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,l)}}class u{constructor(e){this._date=e}static fromParts(e=0,t=1,r=1,n=0,o=0,s=0,a=0,l){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(o)||isNaN(s)||isNaN(a))return null;let d=0;const p=i.ou.local(e,t).daysInMonth;r<1&&(d=r-1,r=1),r>p&&(d=r-p,r=p);let m=0;t>12?(m=t-12,t=12):t<1&&(m=t-1,t=1);let y=0;o>59?(y=o-59,o=59):o<0&&(y=o,o=0);let h=0;s>59?(h=s-59,s=59):s<0&&(h=s,s=0);let g=0;a>999?(g=a-999,a=999):a<0&&(g=a,a=0);let f=i.ou.fromObject({day:r,year:e,month:t,hour:n,minute:o,second:s,millisecond:a},{zone:c(l)});return 0!==m&&(f=f.plus({months:m})),0!==d&&(f=f.plus({days:d})),0!==y&&(f=f.plus({minutes:y})),0!==h&&(f=f.plus({seconds:h})),0!==g&&(f=f.plus({milliseconds:g})),new u(f)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,t){const r=c(t);return e.isUnknownTimeZone||r===s.instance?u.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,r):new u(e._date.setZone(t))}static dateJSToArcadeDate(e){return new u(i.ou.fromJSDate(e))}static dateJSAndZoneToArcadeDate(e,t="system"){return new u(i.ou.fromJSDate(e,{zone:t}))}static unknownEpochToArcadeDate(e){return new u(i.ou.fromMillis(e,{zone:s.instance}))}static unknownDateJSToArcadeDate(e){return u.arcadeDateAndZoneToArcadeDate(u.dateJSToArcadeDate(e),s.instance)}static epochToArcadeDate(e){return new u(i.ou.fromMillis(e))}static dateTimeToArcadeDate(e){return new u(e)}changeTimeZone(e){const t=c(e);return u.dateTimeToArcadeDate(this._date.setZone(t))}static dateTimeAndZoneToArcadeDate(e,t){const r=c(t);return e.zone===s.instance||r===s.instance?u.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,r):new u(e.setZone(r))}static nowToArcadeDate(e){return new u(i.ou.fromJSDate(new Date,{zone:e}))}static nowUTCToArcadeDate(){return new u(i.ou.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===u.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===s.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const e=this.zone;return"fixed"===e.type?0===e.fixed?"utc":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new u(this._date.plus(e))}diff(e,t="milliseconds"){return this._date.diff(e._date,t)[t]}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toFormat(e,t){return this._date.toFormat(e,t)}toJSDate(){return this._date.toJSDate()}toSQLString(){return"timestamp '"+this._date.toFormat("yyyy-LL-dd HH:mm:ss")+"'"}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new u(this._date.toUTC())}toLocal(){return new u(this._date.toLocal())}}function c(e){if(e instanceof i.ld)return e;if("system"===e.toLowerCase())return"system";if("utc"===e.toLowerCase())return"utc";if("unknown"===e.toLowerCase())return s.instance;if(/^[\+\-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){const t=i.Qf.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(t)return t}const t=i.vF.create(e);if(!t.isValid)throw new l(n.TimeZoneNotRecognised);return t}},27535:(e,t,r)=>{var n;r.d(t,{Hy:()=>d,OF:()=>u,TD:()=>m,Tu:()=>h,VO:()=>p,aV:()=>a,kq:()=>c,rH:()=>n}),function(e){e.AsyncNotEnabled="AsyncNotEnabled",e.ModulesNotSupported="ModulesNotSupported",e.CircularModules="CircularModules",e.NeverReach="NeverReach",e.UnsupportedHashType="UnsupportedHashType",e.InvalidParameter="InvalidParameter",e.UnexpectedToken="UnexpectedToken",e.Unrecognised="Unrecognised",e.UnrecognisedType="UnrecognisedType",e.MaximumCallDepth="MaximumCallDepth",e.BooleanConditionRequired="BooleanConditionRequired",e.TypeNotAllowedInFeature="TypeNotAllowedInFeature",e.KeyMustBeString="KeyMustBeString",e.WrongNumberOfParameters="WrongNumberOfParameters",e.CallNonFunction="CallNonFunction",e.NoFunctionInTemplateLiteral="NoFunctionInTemplateLiteral",e.NoFunctionInDictionary="NoFunctionInDictionary",e.NoFunctionInArray="NoFunctionInArray",e.AssignModuleFunction="AssignModuleFunction",e.LogicExpressionOrAnd="LogicExpressionOrAnd",e.LogicalExpressionOnlyBoolean="LogicalExpressionOnlyBoolean",e.FuncionNotFound="FunctionNotFound",e.InvalidMemberAccessKey="InvalidMemberAccessKey",e.UnsupportedUnaryOperator="UnsupportUnaryOperator",e.InvalidIdentifier="InvalidIdentifier",e.MemberOfNull="MemberOfNull",e.UnsupportedOperator="UnsupportedOperator",e.Cancelled="Cancelled",e.ModuleAccessorMustBeString="ModuleAccessorMustBeString",e.ModuleExportNotFound="ModuleExportNotFound",e.Immutable="Immutable",e.OutOfBounds="OutOfBounds",e.IllegalResult="IllegalResult",e.FieldNotFound="FieldNotFound",e.PortalRequired="PortalRequired",e.LogicError="LogicError",e.ArrayAccessorMustBeNumber="ArrayAccessMustBeNumber",e.KeyAccessorMustBeString="KeyAccessorMustBeString",e.WrongSpatialReference="WrongSpatialReference"}(n||(n={}));const o={[n.TypeNotAllowedInFeature]:"Feature attributes only support dates, numbers, strings, guids.",[n.LogicError]:"Logic error - {reason}",[n.NeverReach]:"Encountered unreachable logic",[n.AsyncNotEnabled]:"Async Arcade must be enabled for this script",[n.ModuleAccessorMustBeString]:"Module accessor must be a string",[n.ModuleExportNotFound]:"Module has no export with provided identifier",[n.ModulesNotSupported]:"Current profile does not support modules",[n.ArrayAccessorMustBeNumber]:"Array accessor must be a number",[n.FuncionNotFound]:"Function not found",[n.FieldNotFound]:"Key not found - {key}",[n.CircularModules]:"Circular module dependencies are not allowed",[n.Cancelled]:"Execution cancelled",[n.UnsupportedHashType]:"Type not supported in hash function",[n.IllegalResult]:"Value is not a supported return type",[n.PortalRequired]:"Portal is required",[n.InvalidParameter]:"Invalid parameter",[n.WrongNumberOfParameters]:"Call with wrong number of parameters",[n.Unrecognised]:"Unrecognised code structure",[n.UnrecognisedType]:"Unrecognised type",[n.WrongSpatialReference]:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",[n.BooleanConditionRequired]:"Conditions must use booleans",[n.NoFunctionInDictionary]:"Dictionaries cannot contain functions.",[n.NoFunctionInArray]:"Arrays cannot contain functions.",[n.NoFunctionInTemplateLiteral]:"Template Literals do not expect functions by value.",[n.KeyAccessorMustBeString]:"Accessor must be a string",[n.KeyMustBeString]:"Object keys must be a string",[n.Immutable]:"Object is immutable",[n.InvalidParameter]:"Invalid parameter",[n.UnexpectedToken]:"Unexpected token",[n.MemberOfNull]:"Cannot access property of null object",[n.MaximumCallDepth]:"Exceeded maximum function depth",[n.OutOfBounds]:"Out of bounds",[n.InvalidIdentifier]:"Identifier not recognised",[n.FuncionNotFound]:"Function not found",[n.CallNonFunction]:"Expression is not a function",[n.InvalidMemberAccessKey]:"Cannot access value using a key of this type",[n.AssignModuleFunction]:"Cannot assign function to module variable",[n.UnsupportedUnaryOperator]:"Unsupported unary operator",[n.UnsupportedOperator]:"Unsupported operator",[n.LogicalExpressionOnlyBoolean]:"Logical expressions must be boolean",[n.LogicExpressionOrAnd]:"Logical expression can only be combined with || or &&"};class i extends Error{constructor(...e){super(...e)}}class s extends i{constructor(e,t){super(l(t)+e.message,{cause:e}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,s),t&&t.loc&&(this.loc=t.loc)}}class a extends Error{constructor(e,t,r,n){super("Execution error - "+l(r)+d(o[t],n)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,a),r&&r.loc&&(this.loc=r.loc)}}function l(e){return e&&e.loc?`Line : ${e.loc.start?.line}, ${e.loc.start?.column}: `:""}class u extends Error{constructor(e,t,r,n){super("Compilation error - "+l(r)+d(o[t],n)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),r&&r.loc&&(this.loc=r.loc)}}class c extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,c)}}function d(e,t){try{if(!t)return e;for(const r in t){let n=t[r];n||(n=""),e=e.replace("{"+r+"}",t[r])}}catch(e){}return e}function p(e,t,r){return"esri.arcade.arcadeexecutionerror"===r.declaredRootClass||"esri.arcade.arcadecompilationerror"===r.declaredRootClass?null===r.loc&&t&&t.loc?new s(r,{cause:r}):r:("esri.arcade.featureset.support.featureseterror"===r.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===r.declaredRootClass||r.declaredRootClass,t&&t.loc?new s(r,{cause:r}):r)}var m;!function(e){e.UnrecognisedUri="UnrecognisedUri",e.UnsupportedUriProtocol="UnsupportedUriProtocol"}(m||(m={}));const y={[m.UnrecognisedUri]:"Unrecognised uri - {uri}",[m.UnsupportedUriProtocol]:"Unrecognised uri protocol"};class h extends Error{constructor(e,t){super(d(y[e],t)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,h)}}},1231:(e,t,r)=>{r.d(t,{Z:()=>g});var n,o=r(43697),i=r(35454),s=r(96674),a=r(5600),l=r(75215),u=(r(67676),r(36030)),c=r(71715),d=r(52011),p=r(72729),m=r(86719);const y=new i.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let h=n=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,o._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,o._)([(0,a.Cb)()],h.prototype,"description",void 0),(0,o._)([(0,c.r)("description")],h.prototype,"readDescription",null),(0,o._)([(0,a.Cb)({types:p.V5,json:{read:{reader:p.im},write:!0}})],h.prototype,"domain",void 0),(0,o._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,o._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],h.prototype,"length",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,o._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,o._)([(0,u.J)(m.v)],h.prototype,"type",void 0),(0,o._)([(0,a.Cb)()],h.prototype,"valueType",void 0),(0,o._)([(0,c.r)("valueType",["description"])],h.prototype,"readValueType",null),(0,o._)([(0,a.Cb)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=n=(0,o._)([(0,d.j)("esri.layers.support.Field")],h);const g=h},72729:(e,t,r)=>{r.d(t,{im:()=>C,V5:()=>v}),r(80442);var n,o=r(43697),i=r(22974),s=r(5600),a=(r(75215),r(36030)),l=r(52011),u=r(96674);r(67676);let c=n=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,o._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=n=(0,o._)([(0,l.j)("esri.layers.support.CodedValue")],c);const d=new(r(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,o._)([(0,a.J)(d)],p.prototype,"type",void 0),p=(0,o._)([(0,l.j)("esri.layers.support.Domain")],p);const m=p;var y;let h=y=class extends m{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,i.d9)(this.codedValues),name:this.name})}};(0,o._)([(0,s.Cb)({type:[c],json:{write:!0}})],h.prototype,"codedValues",void 0),(0,o._)([(0,a.J)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=y=(0,o._)([(0,l.j)("esri.layers.support.CodedValueDomain")],h);const g=h;var f;r(92604),r(20102);let b=f=class extends m{constructor(e){super(e),this.type="inherited"}clone(){return new f}};(0,o._)([(0,a.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=f=(0,o._)([(0,l.j)("esri.layers.support.InheritedDomain")],b);const T=b;var N;let w=N=class extends m{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new N({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],w.prototype,"maxValue",void 0),(0,o._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],w.prototype,"minValue",void 0),(0,o._)([(0,a.J)({range:"range"})],w.prototype,"type",void 0),w=N=(0,o._)([(0,l.j)("esri.layers.support.RangeDomain")],w);const S=w,v={key:"type",base:m,typeMap:{range:w,"coded-value":g,inherited:T}};function C(e){if(!e||!e.type)return null;switch(e.type){case"range":return S.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return T.fromJSON(e)}return null}},86719:(e,t,r)=>{r.d(t,{v:()=>n});const n=new(r(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8907,216],{3920:(e,t,r)=>{r.d(t,{p:()=>d,r:()=>u});var n=r(43697),i=r(15923),s=r(61247),a=r(5600),o=r(52011),l=r(72762);const d=e=>{let t=class extends e{destroy(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())}get handles(){return this._get("handles")||new s.Z}get updatingHandles(){return this._get("updatingHandles")||new l.t}};return(0,n._)([(0,a.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,n._)([(0,a.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,n._)([(0,o.j)("esri.core.HandleOwner")],t),t};let u=class extends(d(i.Z)){};u=(0,n._)([(0,o.j)("esri.core.HandleOwner")],u)},64830:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(70586);class i{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._items=new Set}get length(){return this._items.size}clear(){this._items.clear()}last(){if(0===this._items.size)return;let e;for(e of this._items);return e}peek(){if(0!==this._items.size)return this._peeker(this._items)}push(e){this.contains(e)||this._items.add(e)}contains(e){return this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete((0,n.j0)(e)),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete((0,n.j0)(e)),e}remove(e){this._items.delete(e)}filter(e){return this._items.forEach((t=>{e(t)||this._items.delete(t)})),this}}},72762:(e,t,r)=>{r.d(t,{t:()=>c});var n=r(43697),i=r(15923),s=r(61247),a=r(70586),o=r(17445),l=r(1654),d=r(5600),u=r(52011);let c=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={}){return this._installWatch(e,t,r,o.YP)}addWhen(e,t,r={}){return this._installWatch(e,t,r,o.gx)}addOnCollectionChange(e,t,{initial:r=!1,final:n=!1}={}){const i=++this._handleId;return this._handles.add([(0,o.on)(e,"after-changes",this._createSyncUpdatingCallback(),o.Z_),(0,o.on)(e,"change",t,{onListenerAdd:r?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:n?e=>t({added:[],removed:e.toArray()}):void 0})],i),{remove:()=>this._handles.remove(i)}}addPromise(e){if((0,a.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)}_installWatch(e,t,r={},n){const i=++this._handleId;r.sync||this._installSyncUpdatingWatch(e,i);const s=n(e,t,r);return this._handles.add(s,i),{remove:()=>this._handles.remove(i)}}_installSyncUpdatingWatch(e,t){const r=this._createSyncUpdatingCallback(),n=(0,o.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,d.Cb)({readOnly:!0})],c.prototype,"updating",void 0),c=(0,n._)([(0,u.j)("esri.core.support.WatchUpdatingTracking")],c);const p=-42},80903:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(50758),i=r(92604),s=r(95330),a=r(64830),o=r(25045);class l{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new a.Z}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((r,n)=>{let i=!0;const a=e=>{(0,s.k_)(t.signal),i&&(i=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let i=0;i<e.length;++i){const l=e[i];(0,s.y8)(l)?this._clientPromises[i]=l.then((e=>(this._clients[i]=new o.default(e,t,(()=>this._ongoingJobsQueue.pop()??null)),a(r),this._clients[i])),(()=>(a(n),null))):(this._clients[i]=new o.default(l,t,(()=>this._ongoingJobsQueue.pop()??null)),this._clientPromises[i]=Promise.resolve(this._clients[i]),a(r))}}))}broadcast(e,t,r){const n=new Array(this._clientPromises.length);for(let i=0;i<this._clientPromises.length;++i){const s=this._clientPromises[i];n[i]=s.then((n=>n?.invoke(e,t,r)))}return n}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.deferred.reject((0,s.zE)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0}invoke(e,t,r){let n;Array.isArray(r)?(i.Z.getLogger("esri.core.workers.Connection").warn("invoke()","The transferList parameter is deprecated, use the options object instead"),n={transferList:r}):n=r;const a=(0,s.dD)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:n,deferred:a});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return a.promise}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,n.AL)(this._clients.map((r=>r.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let r=t.length;for(let n=0;n<this._clientPromises.length;++n)this._clientPromises[n].then((i=>{i&&(t[n]=i.openPort()),0==--r&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},78346:(e,t,r)=>{r.d(t,{bA:()=>G});var n=r(20102),i=r(80442),s=r(95330),a=r(80903),o=r(25045),l=r(40330),d=r(92604),u=r(70586),c=r(94362),p=r(99880),m=r(68773),y=(r(2587),r(17452));const f={};function h(e){const t={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")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=f.baseUrl),f.packages?.forEach((e=>{!function(e,t){for(const r of e)if(r.name===t.name)return;e.push(t)}(t.packages??[],e)})),t}var g=r(41213);class w{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class S{constructor(){this._dispatcher=new w,this._workerPostMessage({type:c.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,g.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,g.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,c.QM)(e);if(t&&t.type===c.Cs.OPEN){const{modulePath:e,jobId:r}=t;let n=await o.default.loadWorker(e);n||(n=await import(e));const i=o.default.connect(n);this._workerPostMessage({type:c.Cs.OPENED,jobId:r,data:i})}}}var b=r(70171),T=r(17202);const v=d.Z.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:_}=c.Cs;let C,A;const k="Failed to create Worker. Fallback to execute module in main thread";async function P(e){return new Promise((t=>{function r(i){const s=(0,c.QM)(i);s&&s.type===_&&(e.removeEventListener("message",r),e.removeEventListener("error",n),t(e))}function n(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",n),v.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new S).addEventListener("message",r),e.addEventListener("error",n)}e.addEventListener("message",r),e.addEventListener("error",n)}))}let E=0;const{ABORT:F,INVOKE:x,OPEN:M,OPENED:R,RESPONSE:O}=c.Cs;class Z{static async create(e){const t=await async function(){if(!(0,i.Z)("esri-workers")||((0,i.Z)("mozilla"),0))return P(new S);if(!C&&!A)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,version:r}=configuration.kernelInfo,{revision:t,version:n}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS API for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\\nModules version: ${r}\\nAssets version: ${n}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.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((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const i=outgoing.get(r);outgoing.delete(r),o.error?i.reject(JSON.parse(o.error)):i.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});'.split('"{CONFIGURATION}"').join(`'${function(){let e;if(null!=m.Z.default){const t={...m.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(m.Z));e.assetsPath=(0,y.hF)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,y.hF)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.Kd)(),e.has={"esri-csp-restrictions":(0,i.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,i.Z)("esri-2d-update-debug"),"featurelayer-pbf":(0,i.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,i.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,i.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,i.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,i.Z)("esri-atomics"),"esri-shared-array-buffer":(0,i.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,i.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,i.Z)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,i.Z)("feature-polyline-generalization-factor"),"host-webworker":1,"polylabel-placement-enabled":(0,i.Z)("polylabel-placement-enabled")},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,y.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,y.hF)(e.workers.workerPath):e.workers.workerPath=(0,y.hF)((0,p.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=m.Z.workers.loaderConfig,r=h({baseUrl:t?.baseUrl,locale:(0,b.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),n={version:l.i8,buildDate:T.r,revision:T.$};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:n})}()}'`);C=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){A=e||{}}let e;if(C)try{e=new Worker(C,{name:"esri-worker-"+E++})}catch(t){v.warn(k,A),e=new S}else v.warn(k,A),e=new S;return P(e)}();return new Z(t,e)}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(),d.Z.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,n=(0,c.jt)();return new Promise(((t,i)=>{const a={resolve:t,reject:i,abortHandle:(0,s.$F)(r,(()=>{this._outJobs.delete(n),this._post({type:F,jobId:n})}))};this._outJobs.set(n,a),this._post({type:M,jobId:n,modulePath:e})}))}_onMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case R:this._onOpenedMessage(t);break;case O:this._onResponseMessage(t);break;case F:this._onAbortMessage(t);break;case x:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);n&&(n.controller&&n.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:i}=e,a=i?new AbortController:null,o=this._inJobs,d=l.Nv[t];let u;try{if("function"!=typeof d)throw new TypeError(`${t} is not a function`);u=d.call(null,n,{signal:a?a.signal:null})}catch(e){return void this._post({type:O,jobId:r,error:(0,c.AB)(e)})}(0,s.y8)(u)?(o.set(r,{controller:a,promise:u}),u.then((e=>{o.has(r)&&(o.delete(r),this._post({type:O,jobId:r},e))}),(e=>{o.has(r)&&(o.delete(r),e||(e={message:"Error encountered at method"+t}),(0,s.D_)(e)||this._post({type:O,jobId:r,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:O,jobId:r},u)}_onOpenedMessage(e){const{jobId:t,data:r}=e,n=this._outJobs.get(t);n&&(this._outJobs.delete(t),(0,u.hw)(n.abortHandle),n.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:i}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,u.hw)(s.abortHandle),r?s.reject(n.Z.fromJSON(JSON.parse(r))):s.resolve(i))}_post(e,t,r){return(0,c.oi)(this.worker,e,t,r)}}let N=(0,i.Z)("esri-workers-debug")?1:(0,i.Z)("esri-mobile")?Math.min(navigator.hardwareConcurrency-1,3):(0,i.Z)("host-browser")?navigator.hardwareConcurrency-1:0;N||(N=(0,i.Z)("safari")&&(0,i.Z)("mac")?7:2);let I=0;const U=[];async function j(e,t){const r=new a.Z;return await r.open(e,t),r}async function G(e,t={}){if("string"!=typeof e)throw new n.Z("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,i.Z)("host-webworker")&&!(0,i.Z)("esri-workers")&&(r="local"),"local"===r){let r=await o.default.loadWorker(e);r||(r=await import(e)),(0,s.k_)(t.signal);const n=t.client||r;return j([o.default.connect(r)],{...t,client:n})}if(await async function(){if(D)return D;L=new AbortController;const e=[];for(let t=0;t<N;t++){const r=Z.create(t).then((e=>(U[t]=e,e)));e.push(r)}return D=Promise.all(e),D}(),(0,s.k_)(t.signal),"dedicated"===r){const r=I++%N;return j([await U[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,N);if(r<N){const n=new Array(r);for(let i=0;i<r;++i){const r=I++%N;n[i]=U[r].open(e,t)}return j(n,t)}}return j(U.map((r=>r.open(e,t))),t)}let L,D=null},69285:(e,t,r)=>{r.d(t,{k:()=>a});var n=r(70586),i=r(67900),s=r(8744);function a(e,t,r){if((0,n.Wi)(t)||(0,n.Wi)(r)||r.vcsWkid||(0,s.fS)(t,r))return null;const a=(0,i._R)(t)/(0,i._R)(r);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,a);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,a);default:return null}}},2587:(e,t,r)=>{r(90344),r(18848),r(940),r(70171);var n=r(94443),i=r(3172),s=r(20102),a=r(70586);async function o(e){if((0,a.pC)(d.fetchBundleAsset))return d.fetchBundleAsset(e);const t=await(0,i.default)(e,{responseType:"text"});return JSON.parse(t.data)}class l{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let n;n="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=n,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,i){const a=t.exec(r);if(!a)throw new s.Z("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const l=a[1]?`${a[1]}/`:"",d=a[2],u=(0,n.Su)(i),c=`${l}${d}.json`,p=u?`${l}${d}_${u}.json`:c;let m;try{m=await o(e(p))}catch(t){if(p===c)throw new s.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{m=await o(e(c))}catch(e){throw new s.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return m}(this.getAssetUrl,this.matcher,e,t)}}const d={};var u,c=r(99880);(0,n.tz)((u={pattern:"esri/",location:c.V},new l(u)))},940:(e,t,r)=>{r.d(t,{n:()=>d});var n=r(92604),i=r(78286),s=r(19153),a=r(90344),o=r(18848);const l=n.Z.getLogger("esri.intl.substitute");function d(e,t,r={}){const{format:n={}}=r;return(0,s.gx)(e,(e=>function(e,t,r){let n,s;const a=e.indexOf(":");if(-1===a?n=e.trim():(n=e.slice(0,a).trim(),s=e.slice(a+1).trim()),!n)return"";const o=(0,i.hS)(n,t);if(null==o)return"";const l=(s?r?.[s]:null)??r?.[n];return l?u(o,l):s?c(o,s):p(o)}(e,t,n)))}function u(e,t){switch(t.type){case"date":return(0,a.p6)(e,t.intlOptions);case"number":return(0,o.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,a.p6)(e);case"numberformat":return(0,o.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,a.p6)(e):/^numberformat/i.test(t)?(0,o.uf)(e):p(e)}}function p(e){switch(typeof e){case"string":return e;case"number":return(0,o.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,a.p6)(e):""}}},12653:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Q});var n=r(43697),i=(r(66577),r(51773)),s=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382),r(81571),r(91423),r(32400)),a=r(70586),o=r(16453),l=r(78286),d=r(17452),u=r(5600),c=r(75215),p=(r(67676),r(52011)),m=r(30556),y=r(86973),f=r(87085),h=r(20102),g=r(3920),w=r(80442),S=r(83379),b=r(95330),T=r(78346),v=r(25278),_=r(51432),C=r(74889),A=r(6570);let k=class extends((0,g.p)(S.Z)){constructor(){super(...arguments),this._connection=null,this.capabilities=(0,v.MS)(!1,!1),this.type="wfs",this.refresh=(0,b.Ds)((async e=>{await this.load();const{extent:t}=await this._connection.invoke("refresh",e);return t&&(this.sourceJSON.extent=t),{dataChanged:!0,updates:{extent:this.sourceJSON.extent}}}))}load(e){const t=(0,a.pC)(e)?e.signal:null;return this.addResolvingPromise(this._startWorker({signal:t})),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return C.Z.fromJSON(r)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._connection.invoke("queryFeatures",e?e.toJSON():null,t)}async queryFeatureCount(e,t={}){return await this.load(t),this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)}async queryObjectIds(e,t={}){return await this.load(t),this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)}async queryExtent(e,t={}){await this.load(t);const r=await this._connection.invoke("queryExtent",e?e.toJSON():null,t);return{count:r.count,extent:A.Z.fromJSON(r.extent)}}async querySnapping(e,t={}){return await this.load(t),this._connection.invoke("querySnapping",e,t)}async _createLoadOptions(e){const{url:t,customParameters:r,name:n,namespaceUri:i,spatialReference:s,fields:o,geometryType:l,swapXY:d}=this.layer;if(!t)throw new h.Z("wfs-layer:missing-url","WFSLayer must be created with a url");this.wfsCapabilities||(this.wfsCapabilities=await(0,_.FU)(t,{customParameters:r,...e}));const u=["fields","geometryType","name","namespaceUri","spatialReference","swapXY"].some((e=>null==this.layer[e])),c=u?await(0,_.be)(this.wfsCapabilities,n,i,{spatialReference:s,customParameters:r,signal:e?.signal}):{...(0,_.eB)(o??[]),geometryType:l,name:n,namespaceUri:i,spatialReference:s,swapXY:d},p=(0,a.Wg)((0,_.ft)(this.wfsCapabilities.readFeatureTypes(),c.name,c.namespaceUri)),m=y.Mk.toJSON(c.geometryType);return{customParameters:r,featureType:p,fields:c.fields?.map((e=>e.toJSON()))??[],geometryField:c.geometryField,geometryType:m,getFeatureUrl:this.wfsCapabilities.operations.GetFeature.url,getFeatureOutputFormat:this.wfsCapabilities.operations.GetFeature.outputFormat,objectIdField:c.objectIdField,spatialReference:c.spatialReference.toJSON(),swapXY:!!c.swapXY}}async _startWorker(e){const[t,r]=await(0,b.as)([this._createLoadOptions(e),(0,T.bA)("WFSSourceWorker",{...e,strategy:(0,w.Z)("feature-layers-workers")?"dedicated":"local"})]),n=t.error||r.error||null,i=r.value||null;if(n)throw i&&i.close(),n;const s=t.value;this._connection=r.value;const a=(await this._connection.invoke("load",s,e)).extent;this.sourceJSON={extent:a,fields:s.fields,geometryType:s.geometryType,objectIdField:s.objectIdField,geometryField:s.geometryField,drawingInfo:(0,v.bU)(s.geometryType),name:s.featureType.title,wfsInfo:{name:s.featureType.name,featureUrl:s.getFeatureUrl,maxFeatures:3e3,swapXY:s.swapXY,supportedSpatialReferences:s.featureType.supportedSpatialReferences,version:"2.0.0",wfsNamespace:s.featureType.namespaceUri}}}};(0,n._)([(0,u.Cb)()],k.prototype,"capabilities",void 0),(0,n._)([(0,u.Cb)({constructOnly:!0})],k.prototype,"layer",void 0),(0,n._)([(0,u.Cb)()],k.prototype,"sourceJSON",void 0),(0,n._)([(0,u.Cb)()],k.prototype,"type",void 0),(0,n._)([(0,u.Cb)()],k.prototype,"wfsCapabilities",void 0),k=(0,n._)([(0,p.j)("esri.layers.graphics.sources.WFSSource")],k);var P,E=r(71612),F=r(17017),x=r(69637),M=r(6404),R=r(38009),O=r(68825),Z=r(16859),N=r(34760),I=r(72965),U=r(28294),j=r(21506),G=r(1231),L=r(53518),D=r(35671),W=r(54306),q=r(30707),H=r(14165),J=r(32163),z=r(82971);const B=(0,L.v)();let $=P=class extends((0,O.c)((0,F.N)((0,M.M)((0,x.b)((0,E.h)((0,U.n)((0,N.Q)((0,I.M)((0,R.q)((0,Z.I)((0,o.R)(f.Z)))))))))))){static fromWFSLayerInfo(e){const{customParameters:t,fields:r,geometryField:n,geometryType:i,name:s,namespaceUri:a,objectIdField:o,spatialReference:l,swapXY:d,url:u,wfsCapabilities:c}=e;return new P({customParameters:t,fields:r,geometryField:n,geometryType:i,name:s,namespaceUri:a,objectIdField:o,spatialReference:l,swapXY:d,url:u,wfsCapabilities:c})}constructor(e){super(e),this.copyright=null,this.customParameters=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.featureUrl=void 0,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="WFS",this.maxFeatures=3e3,this.mode=0,this.name=null,this.namespaceUri=null,this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new k({layer:this}),this.spatialReference=z.Z.WGS84,this.spatialReferences=[4326],this.swapXY=void 0,this.title="WFS",this.type="wfs",this.url=null,this.version=void 0}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WFS"]},e).then((()=>this.source.load(e))).then((()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),this.revert(["objectIdField","fields","timeInfo","spatialReference","name","namespaceUri"],"service"),(0,D.YN)(this.renderer,this.fieldsIndex),(0,D.UF)(this.timeInfo,this.fieldsIndex)}))),Promise.resolve(this)}get capabilities(){return this.source?.capabilities}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,r){const n=e.filter((e=>e.name!==_.M8));this.geometryField&&n.unshift(new G.Z({name:this.geometryField,alias:this.geometryField,type:"geometry"})),(0,l.RB)(r,n.map((e=>e.toJSON())),t)}get parsedUrl(){return(0,d.mN)(this.url)}set renderer(e){(0,D.YN)(e,this.fieldsIndex),this._set("renderer",e)}get wfsCapabilities(){return this.source?.wfsCapabilities}set wfsCapabilities(e){this.source&&(this.source.wfsCapabilities=e)}createPopupTemplate(e){return(0,J.eZ)(this,e)}createQuery(){const e=new H.Z;e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:t,timeExtent:r}=this;return e.timeExtent=null!=t&&null!=r?r.offset(-t.value,t.unit):r||null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex?.get(e)}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(H.Z.from(e)||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this.load().then((()=>this.source.queryObjectIds(H.Z.from(e)||this.createQuery(),t)))}queryFeatureCount(e,t){return this.load().then((()=>this.source.queryFeatureCount(H.Z.from(e)||this.createQuery(),t)))}queryExtent(e,t){return this.load().then((()=>this.source.queryExtent(H.Z.from(e)||this.createQuery(),t)))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return(0,a.pC)(t)&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,n._)([(0,u.Cb)({readOnly:!0})],$.prototype,"capabilities",null),(0,n._)([(0,u.Cb)({type:String})],$.prototype,"copyright",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],$.prototype,"createQueryVersion",null),(0,n._)([(0,u.Cb)({json:{name:"wfsInfo.customParameters",write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0),ignoreOrigin:!0})}}})],$.prototype,"customParameters",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],$.prototype,"defaultPopupTemplate",null),(0,n._)([(0,u.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],$.prototype,"definitionExpression",void 0),(0,n._)([(0,u.Cb)({type:String})],$.prototype,"displayField",void 0),(0,n._)([(0,u.Cb)(j.PV)],$.prototype,"elevationInfo",void 0),(0,n._)([(0,u.Cb)({type:String,readOnly:!0,json:{name:"wfsInfo.featureUrl",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"featureUrl",void 0),(0,n._)([(0,u.Cb)({type:[G.Z],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],$.prototype,"fields",void 0),(0,n._)([(0,m.c)("fields")],$.prototype,"writeFields",null),(0,n._)([(0,u.Cb)(B.fieldsIndex)],$.prototype,"fieldsIndex",void 0),(0,n._)([(0,u.Cb)({type:A.Z,json:{name:"extent"}})],$.prototype,"fullExtent",void 0),(0,n._)([(0,u.Cb)()],$.prototype,"geometryField",void 0),(0,n._)([(0,u.Cb)({type:String,json:{read:{source:"layerDefinition.geometryType",reader:y.Mk.read},write:{target:"layerDefinition.geometryType",writer:y.Mk.write,ignoreOrigin:!0},origins:{service:{read:y.Mk.read}}}})],$.prototype,"geometryType",void 0),(0,n._)([(0,u.Cb)({type:String})],$.prototype,"id",void 0),(0,n._)([(0,u.Cb)(j.iR)],$.prototype,"labelsVisible",void 0),(0,n._)([(0,u.Cb)({type:[W.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:q.r},write:!0}})],$.prototype,"labelingInfo",void 0),(0,n._)([(0,u.Cb)(j.rn)],$.prototype,"legendEnabled",void 0),(0,n._)([(0,u.Cb)({type:["show","hide"]})],$.prototype,"listMode",void 0),(0,n._)([(0,u.Cb)({type:String})],$.prototype,"objectIdField",void 0),(0,n._)([(0,u.Cb)({type:["WFS"]})],$.prototype,"operationalLayerType",void 0),(0,n._)([(0,u.Cb)({type:c.z8,json:{name:"wfsInfo.maxFeatures",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"maxFeatures",void 0),(0,n._)([(0,u.Cb)({type:[0],readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],$.prototype,"mode",void 0),(0,n._)([(0,u.Cb)({type:String,json:{name:"wfsInfo.name",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"name",void 0),(0,n._)([(0,u.Cb)({type:String,json:{name:"wfsInfo.wfsNamespace",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"namespaceUri",void 0),(0,n._)([(0,u.Cb)(j.bT)],$.prototype,"opacity",void 0),(0,n._)([(0,u.Cb)(B.outFields)],$.prototype,"outFields",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],$.prototype,"parsedUrl",null),(0,n._)([(0,u.Cb)(j.C_)],$.prototype,"popupEnabled",void 0),(0,n._)([(0,u.Cb)({type:i.Z,json:{name:"popupInfo",write:!0}})],$.prototype,"popupTemplate",void 0),(0,n._)([(0,u.Cb)({types:s.A,json:{origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:s.o,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:{ignoreOrigin:!0}}})],$.prototype,"renderer",null),(0,n._)([(0,u.Cb)(j.YI)],$.prototype,"screenSizePerspectiveEnabled",void 0),(0,n._)([(0,u.Cb)({readOnly:!0})],$.prototype,"source",void 0),(0,n._)([(0,u.Cb)({type:z.Z,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"extent.spatialReference"}}}})],$.prototype,"spatialReference",void 0),(0,n._)([(0,u.Cb)({readOnly:!0,type:[c.z8],json:{name:"wfsInfo.supportedSpatialReferences",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"spatialReferences",void 0),(0,n._)([(0,u.Cb)({type:Boolean,value:!1,json:{name:"wfsInfo.swapXY",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"swapXY",void 0),(0,n._)([(0,u.Cb)({json:{write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"name"}}}})],$.prototype,"title",void 0),(0,n._)([(0,u.Cb)({json:{read:!1},readOnly:!0})],$.prototype,"type",void 0),(0,n._)([(0,u.Cb)(j.HQ)],$.prototype,"url",void 0),(0,n._)([(0,u.Cb)({type:String,readOnly:!0,json:{name:"wfsInfo.version",write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"version",void 0),(0,n._)([(0,u.Cb)()],$.prototype,"wfsCapabilities",null),$=P=(0,n._)([(0,p.j)("esri.layers.WFSLayer")],$);const Q=$},61159:(e,t,r)=>{r.d(t,{g:()=>n});const n={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},92722:(e,t,r)=>{r.d(t,{O3:()=>T,lG:()=>_,my:()=>v,q9:()=>l});var n=r(20102),i=r(70272),s=r(5428),a=r(35671);const o={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function l(e){return o[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*u(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function c(e){for(const t of e)if(t.length>2)return!0;return!1}function p(e){let t=0;for(let r=0;r<e.length;r++){const n=e[r],i=e[(r+1)%e.length];t+=n[0]*i[1]-i[0]*n[1]}return t<=0}function m(e){const t=e[0],r=e[e.length-1];return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]||e.push(t),e}function y(e,t,r){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,r){return g(e,t.coordinates,r),e}(e,t,r);case"MultiLineString":return function(e,t,r){for(const n of t.coordinates)g(e,n,r);return e}(e,t,r);case"MultiPolygon":return function(e,t,r){for(const n of t.coordinates){f(e,n[0],r);for(let t=1;t<n.length;t++)h(e,n[t],r)}return e}(e,t,r);case"Point":return function(e,t,r){return S(e,t.coordinates,r),e}(e,t,r);case"Polygon":return function(e,t,r){const n=t.coordinates;f(e,n[0],r);for(let t=1;t<n.length;t++)h(e,n[t],r);return e}(e,t,r)}}function f(e,t,r){const n=m(t);!function(e){return!p(e)}(n)?g(e,n,r):w(e,n,r)}function h(e,t,r){const n=m(t);!function(e){return p(e)}(n)?g(e,n,r):w(e,n,r)}function g(e,t,r){for(const n of t)S(e,n,r);e.lengths.push(t.length)}function w(e,t,r){for(let n=t.length-1;n>=0;n--)S(e,t[n],r);e.lengths.push(t.length)}function S(e,t,r){const[n,i,s]=t;e.coords.push(n,i),r.hasZ&&e.coords.push(s||0)}function b(e){switch(typeof e){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function T(e){if(!e)throw new n.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new n.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:t}=e;if(!t)return;const r="string"==typeof t?t:"name"===t.type?t.properties.name:"EPSG"===t.type?t.properties.code:null,i=new RegExp(".*(CRS84H?|4326)$","i");if(!r||!i.test(r))throw new n.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:t})}function v(e,t={}){const r=[],n=new Set,i=new Set;let s,o=!1,p=null,m=!1,{geometryType:y=null}=t,f=!1;for(const t of d(e)){const{geometry:e,properties:d,id:h}=t;if((!e||(y||(y=l(e.type)),l(e.type)===y))&&(o||(o=c(u(e))),m||(m=null!=h,m&&(s=typeof h,d&&(p=Object.keys(d).filter((e=>d[e]===h))))),d&&p&&m&&null!=h&&(p.length>1?p=p.filter((e=>d[e]===h)):1===p.length&&(p=d[p[0]]===h?p:[])),!f&&d)){let e=!0;for(const t in d){if(n.has(t))continue;const s=d[t];if(null==s){e=!1,i.add(t);continue}const o=b(s);if("unknown"===o){i.add(t);continue}i.delete(t),n.add(t);const l=(0,a.q6)(t);l&&r.push({name:l,alias:t,type:o})}f=e}}const h=(0,a.q6)(1===p?.length&&p[0]||null)??void 0;if(h)for(const e of r)if(e.name===h&&(0,a.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:y,hasZ:o,objectIdFieldName:h,objectIdFieldType:s,unknownFields:Array.from(i)}}function _(e,t){return Array.from(function*(e,t={}){const{geometryType:r,objectIdField:n}=t;for(const a of e){const{geometry:e,properties:o,id:d}=a;if(e&&l(e.type)!==r)continue;const u=o||{};let c;n&&(c=u[n],null==d||c||(u[n]=c=d));const p=new i.u_(e?y(new s.Z,e,t):null,u,null,c??void 0);yield p}}(d(e),t))}},25278:(e,t,r)=>{r.d(t,{Dm:()=>u,Hq:()=>c,MS:()=>p,bU:()=>o});var n=r(80442),i=r(22974),s=r(61159),a=r(58333);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?a.I4:"esriGeometryPolyline"===e?a.ET:a.lF}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let d=1;function u(e,t){if((0,n.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const n=new Function(`\n return class AttributesClass$${d++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new n}catch(r){return()=>({[t]:null,...e})}}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.d9)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:s.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},68825:(e,t,r)=>{r.d(t,{c:()=>f});var n,i=r(43697),s=r(78286),a=r(5600),o=(r(75215),r(67676),r(52011)),l=r(35454),d=r(96674);const u=new l.X({asc:"ascending",desc:"descending"});let c=n=class extends d.wq{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0),(0,i._)([(0,a.Cb)({type:u.apiValues,json:{read:u.read,write:u.write}})],c.prototype,"order",void 0),c=n=(0,i._)([(0,o.j)("esri.layers.support.OrderByInfo")],c);const p=c;function m(e,t,r){if(!e)return null;const n=e.find((e=>!!e.field));if(!n)return null;const i=new p;return i.read(n,r),[i]}function y(e,t,r,n){const i=e.find((e=>!!e.field));i&&(0,s.RB)(r,[i.toJSON()],t)}const f=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,i._)([(0,a.Cb)({type:[p],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:m},write:{target:"layerDefinition.orderBy",writer:y}}})],t.prototype,"orderBy",void 0),t=(0,i._)([(0,o.j)("esri.layers.mixins.OrderedLayer")],t),t}},51432:(e,t,r)=>{r.d(t,{M8:()=>T,ft:()=>P,FU:()=>C,Bm:()=>O,be:()=>E,eB:()=>F}),r(66577);var n=r(3172),i=r(20102),s=r(66374),a=r(70586),o=r(95330),l=r(17452),d=r(44547),u=r(8744),c=r(86973),p=r(92722);function m(e){return function(e){const t=y.exec(e);if(!t?.groups)return null;const r=t.groups,n=+r.year,i=+r.month-1,s=+r.day,a=+(r.hours??"0"),o=+(r.minutes??"0"),l=+(r.seconds??"0");if(a>23)return null;if(o>59)return null;if(l>59)return null;const d=r.ms??"0",u=d?+d.padEnd(3,"0").substring(0,3):0;let c;if(r.isUTC)c=Date.UTC(n,i,s,a,o,l,u);else if(r.offsetSign){const e=+r.offsetHours,t=+r.offsetMinutes;c=6e4*("+"===r.offsetSign?-1:1)*(60*e+t)+Date.UTC(n,i,s,a,o,l,u)}else c=new Date(n,i,s,a,o,l,u).getTime();return Number.isNaN(c)?null:c}(e)??function(e){const t=new Date(e).getTime();return Number.isNaN(t)?null:t}(e)}const y=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/;var f=r(88724),h=r(1231),g=r(82971),w=r(6570);const S="xlink:href",b="2.0.0",T="__esri_wfs_id__",v="wfs-layer:feature-type-not-found",_="wfs-layer:unknown-geometry-type";async function C(e,t){const r=function(e){const t=N(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==b)throw new i.Z("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${t}. Supported version: ${b}`)})(t),U(t);const r=t.firstElementChild,n=(0,s.Fs)(function(e){return(0,f.H)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",supportedSpatialReferences:[]},r=new Set([4326]),n=e=>{const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);Number.isNaN(t)||r.add(t)};return(0,f.h)(e,{Name:e=>{const{name:r,prefix:n}=I(e.textContent);t.typeName=`${n}:${r}`,t.name=r,t.namespacePrefix=n,t.namespaceUri=e.lookupNamespaceURI(n)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=function(e){let t,r,n,i;for(const s of e.children)switch(s.localName){case"LowerCorner":[t,r]=s.textContent.split(" ").map((e=>Number.parseFloat(e)));break;case"UpperCorner":[n,i]=s.textContent.split(" ").map((e=>Number.parseFloat(e)))}return{xmin:t,ymin:r,xmax:n,ymax:i,spatialReference:u.Zn}}(e)},DefaultSRS:n,DefaultCRS:n,OtherSRS:n,OtherCRS:n}),t.title||(t.title=t.name),t.supportedSpatialReferences.push(...r),t}}})}(r));return{operations:k(r),get featureTypes(){return Array.from(n())},readFeatureTypes:n}}((await(0,n.default)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:b,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,l.$U)(e)&&((0,l.D6)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,l.hO)(t.operations.DescribeFeatureType.url)),(0,l.D6)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,l.hO)(t.operations.GetFeature.url)))}(e,r),r}const A=new Set(["json","application/json","geojson","application/json; subtype=geojson"]);function k(e){let t=!1;const r={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}};if((0,f.h)(e,{OperationsMetadata:{Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{r.GetCapabilities.url=e.getAttribute(S)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{r.DescribeFeatureType.url=e.getAttribute(S)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{r.GetFeature.url=e.getAttribute(S)}}},Parameter:e=>{if("outputFormat"===e.getAttribute("name"))return{AllowedValues:{Value:e=>{const t=e.textContent;t&&A.has(t.toLowerCase())&&(r.GetFeature.outputFormat=t)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{r.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),!t)throw new i.Z("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if((0,a.Wi)(r.GetFeature.outputFormat))throw new i.Z("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return r}function P(e,t,r){return(0,s.sE)(e,(e=>r?e.name===t&&e.namespaceUri===r:e.typeName===t||e.name===t))}async function E(e,t,r,n={}){const{featureType:s,extent:l}=await async function(e,t,r,n={}){const{spatialReference:s=g.Z.WGS84}=n,o=e.readFeatureTypes(),l=t?P(o,t,r):o.next().value;if((0,a.Wi)(l))throw t?new i.Z(v,`The type '${t}' could not be found in the service`):new i.Z("wfs-layer:empty-service","The service is empty");let c=new w.Z({...l.extent,spatialReference:s});if(!(0,u.fS)(s,u.Zn))try{await(0,d.iQ)(u.Zn,s,void 0,n),c=(0,d.iV)(c,u.Zn)}catch{throw new i.Z("wfs-layer:unsupported-spatial-reference","Projection not supported")}return{extent:c,spatialReference:s,featureType:l}}(e,t,r,n),{fields:c,geometryType:p,swapXY:m,objectIdField:y,geometryField:f}=await async function(e,t,r={}){const[n,s]=await(0,o.as)([M(e.operations.DescribeFeatureType.url,t,r),x(e,t,r)]);if(n.error||s.error)throw new i.Z("wfs-layer:getWFSLayerTypeInfo-error",`An error occurred while getting info about the feature type '${t}'`,{error:n.error||s.error});const{fields:l,errors:d}=n.value??{},u=n.value?.geometryType||s.value?.geometryType,c=s.value?.swapXY??!1;if((0,a.Wi)(u))throw new i.Z(_,`The geometry type could not be determined for type '${t}`,{typeName:t,geometryType:u,fields:l,errors:d});return{...F(l??[]),geometryType:u,swapXY:c}}(e,s.typeName,n);return{url:e.operations.GetCapabilities.url,name:s.name,namespaceUri:s.namespaceUri,fields:c,geometryField:f,geometryType:p,objectIdField:y,spatialReference:n.spatialReference??g.Z.WGS84,extent:l,swapXY:m,wfsCapabilities:e,customParameters:n.customParameters}}function F(e){const t=e.find((e=>"geometry"===e.type));let r=e.find((e=>"oid"===e.type));return e=e.filter((e=>"geometry"!==e.type)),r||(r=new h.Z({name:T,type:"oid",alias:T}),e.unshift(r)),{geometryField:t?.name??null,objectIdField:r.name,fields:e}}async function x(e,t,r={}){let i,s=!1;const[a,o]=await Promise.all([O(e.operations.GetFeature.url,t,e.operations.GetFeature.outputFormat,{...r,count:1}),(0,n.default)(e.operations.GetFeature.url,{responseType:"text",query:Z(t,void 0,{...r,count:1}),signal:r?.signal})]),l="FeatureCollection"===a.type&&a.features[0]?.geometry;if(l){let e;switch(i=c.Mk.fromJSON((0,p.q9)(l.type)),l.type){case"Point":e=l.coordinates;break;case"LineString":case"MultiPoint":e=l.coordinates[0];break;case"MultiLineString":case"Polygon":e=l.coordinates[0][0];break;case"MultiPolygon":e=l.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(o.data);if(t){const r=e[0].toFixed(3),n=e[1].toFixed(3),i=parseFloat(t[1]).toFixed(3);r===parseFloat(t[2]).toFixed(3)&&n===i&&(s=!0)}}return{geometryType:i,swapXY:s}}async function M(e,t,r){return function(e,t){const{name:r}=I(e),n=N(t);U(n);const o=(0,s.sE)((0,f.H)(n.firstElementChild,{element:e=>({name:e.getAttribute("name"),typeName:I(e.getAttribute("type")).name})}),(({name:e})=>e===r));if((0,a.pC)(o)){const e=(0,s.sE)((0,f.H)(n.firstElementChild,{complexType:e=>e}),(e=>e.getAttribute("name")===o.typeName));if((0,a.pC)(e))return function(e){const t=[],r=[];let n;const s=(0,f.H)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const a of s){const s=a.getAttribute("name");if(!s)continue;let o,l;if(a.hasAttribute("type")?o=I(a.getAttribute("type")).name:(0,f.h)(a,{simpleType:{restriction:e=>(o=I(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!o)continue;const d="true"===a.getAttribute("nillable");let u=!1;switch(o.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":r.push(new h.Z({name:s,alias:s,type:"integer",nullable:d}));break;case"float":case"double":case"decimal":r.push(new h.Z({name:s,alias:s,type:"double",nullable:d}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":r.push(new h.Z({name:s,alias:s,type:"string",nullable:d,length:l??255}));break;case"datetime":case"date":r.push(new h.Z({name:s,alias:s,type:"date",nullable:d,length:l??36}));break;case"pointpropertytype":n="point",u=!0;break;case"multipointpropertytype":n="multipoint",u=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":n="polyline",u=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":n="polygon",u=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":u=!0,t.push(new i.Z(_,`geometry type '${o}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new i.Z("wfs-layer:unknown-field-type",`Unknown field type '${o}'`,{type:(new XMLSerializer).serializeToString(e)}))}u&&r.push(new h.Z({name:s,alias:s,type:"geometry",nullable:d}))}for(const e of r)if("integer"===e.type&&!e.nullable&&R.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:n,fields:r,errors:t}}(e)}throw new i.Z(v,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(n)})}(t,(await(0,n.default)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:b,TYPENAME:t,...r?.customParameters},signal:r?.signal})).data)}const R=new Set(["objectid","fid"]);async function O(e,t,r,s){let{data:a}=await(0,n.default)(e,{responseType:"text",query:Z(t,r,s),signal:s?.signal});a=a.replace(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{if(s?.dateFields?.length){const e=new Set(s.dateFields);return JSON.parse(a,((t,r)=>e.has(t)?m(r):r))}return JSON.parse(a)}catch(e){throw new i.Z("wfs-layer:malformed-json","Error while parsing the response",{response:a,error:e})}}function Z(e,t,r){return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:b,TYPENAMES:e,OUTPUTFORMAT:t,SRSNAME:"EPSG:4326",STARTINDEX:r?.startIndex,COUNT:r?.count,...r?.customParameters}}function N(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function I(e){const[t,r]=e.split(":");return{prefix:r?t:"",name:r??t}}function U(e){let t="",r="";if((0,f.h)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{r=e.textContent}})}),t)throw new i.Z(`wfs-layer:${t}`,r)}},88724:(e,t,r)=>{function n(e,t){if(e&&t)for(const r of e.children)if(r.localName in t){const e=t[r.localName];if("function"==typeof e){const t=e(r);t&&n(r,t)}else n(r,e)}}function*i(e,t){for(const r of e.children)if(r.localName in t){const e=t[r.localName];"function"==typeof e?yield e(r):yield*i(r,e)}}r.d(t,{H:()=>i,h:()=>n})},51706:(e,t,r)=>{var n,i;function s(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function a(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?n.Expression:e.field&&"string"==typeof e.field?n.Field:n.Unknown}function l(e,t){const r=t||o(e),s=e.valueUnit||"unknown";return r===n.Unknown?i.Constant:e.stops?i.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?i.ClampedLinear:"unknown"===s?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?i.Proportional:i.Additive:i.Identity:i.RealWorldSize}r.d(t,{PS:()=>o,QW:()=>l,RY:()=>n,hL:()=>i,iY:()=>s,qh:()=>a}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(n||(n={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(i||(i={}))},74889:(e,t,r)=>{r.d(t,{Z:()=>b});var n,i=r(43697),s=r(66577),a=r(38171),o=r(35454),l=r(96674),d=r(22974),u=r(70586),c=r(5600),p=(r(75215),r(71715)),m=r(52011),y=r(30556),f=r(82971),h=r(33955),g=r(1231);const w=new o.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let S=n=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),n=[];for(let t=0;t<e.length;t++){const i=e[t],s=a.Z.fromJSON(i),o=i.geometry&&i.geometry.spatialReference;(0,u.pC)(s.geometry)&&!o&&(s.geometry.spatialReference=r);const l=i.aggregateGeometries,d=s.aggregateGeometries;if(l&&(0,u.pC)(d))for(const e in d){const t=d[e],n=l[e]?.spatialReference;(0,u.pC)(t)&&!n&&(t.spatialReference=r)}n.push(s)}return n}writeGeometryType(e,t,r,n){if(e)return void w.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(e&&(0,u.pC)(e.geometry))return void w.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,h.im)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=f.Z.fromJSON(t.spatialReference)),n}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 n(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 n=t.features[r];if(n.geometry){const t=e&&e[r];n.geometry=t&&t.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,s=this.features,a=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((i-e)/r)));for(let e=0,t=s.length;e<t;e++)a?.((0,u.Wg)(s[e].geometry))||(s.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:[n,i],scale:[s,a]}=r,o=this._getHydrationFunction(e,(e=>e*s+n),(e=>i-e*a));for(const{geometry:e}of t)(0,u.pC)(e)&&o&&o(e);return this.transform=null,this}_quantizePoints(e,t,r){let n,i;const s=[];for(let a=0,o=e.length;a<o;a++){const o=e[a];if(a>0){const e=t(o[0]),a=r(o[1]);e===n&&a===i||(s.push([e-n,a-i]),n=e,i=a)}else n=t(o[0]),i=r(o[1]),s.push([n,i])}return s.length>0?s: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 n=(0,h.oU)(e)?e.rings:e.paths,i=[];for(let e=0,s=n.length;e<s;e++){const s=n[e],a=this._quantizePoints(s,t,r);a&&i.push(a)}return i.length>0?((0,h.oU)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,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 n=(0,h.oU)(e)?e.rings:e.paths;let i,s;for(let e=0,a=n.length;e<a;e++){const a=n[e];for(let e=0,n=a.length;e<n;e++){const n=a[e];e>0?(i+=n[0],s+=n[1]):(i=n[0],s=n[1]),n[0]=t(i),n[1]=r(s)}}}:"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 n=e.points;let i,s;for(let e=0,a=n.length;e<a;e++){const a=n[e];e>0?(i+=a[0],s+=a[1]):(i=a[0],s=a[1]),a[0]=t(i),a[1]=r(s)}}:null}};(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],S.prototype,"displayFieldName",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],S.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,c.Cb)({type:[a.Z],json:{write:!0}})],S.prototype,"features",void 0),(0,i._)([(0,p.r)("features")],S.prototype,"readFeatures",null),(0,i._)([(0,c.Cb)({type:[g.Z],json:{write:!0}})],S.prototype,"fields",void 0),(0,i._)([(0,c.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:w.read}}})],S.prototype,"geometryType",void 0),(0,i._)([(0,y.c)("geometryType")],S.prototype,"writeGeometryType",null),(0,i._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],S.prototype,"hasM",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],S.prototype,"hasZ",void 0),(0,i._)([(0,c.Cb)({types:s.qM,json:{write:!0}})],S.prototype,"queryGeometry",void 0),(0,i._)([(0,p.r)("queryGeometry")],S.prototype,"readQueryGeometry",null),(0,i._)([(0,c.Cb)({type:f.Z,json:{write:!0}})],S.prototype,"spatialReference",void 0),(0,i._)([(0,y.c)("spatialReference")],S.prototype,"writeSpatialReference",null),(0,i._)([(0,c.Cb)({json:{write:!0}})],S.prototype,"transform",void 0),S=n=(0,i._)([(0,m.j)("esri.rest.support.FeatureSet")],S),S.prototype.toJSON.isDefaultToJSON=!0;const b=S},58333:(e,t,r)=>{r.d(t,{ET:()=>s,I4:()=>i,eG:()=>l,lF:()=>a,lj:()=>u,qP:()=>o,wW:()=>d});const n=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n},a={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},o={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},d={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},u={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},80216:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(43697),i=r(2368),s=r(96674),a=r(70586),o=r(5600),l=(r(75215),r(67676),r(71715)),d=r(52011),u=r(30556),c=r(42799);let p=class extends((0,i.J)(s.wq)){constructor(e){super(e),this.legacy=null,this.timeZone="system"}readLegacy(e,t){const{timeZone:r,respectsDaylightSaving:n}=t;return{timeZone:r,respectsDaylightSaving:n}}readTimeZone(e,t){return"timeZoneIANA"in t?t.timeZoneIANA:(0,c.G)(t)}writeTimeZone(e,t){t.timeZoneIANA=e}equals(e){return!((0,a.Wi)(e)||(0,a.Wi)(this.timeZone)||(0,a.Wi)(e.timeZone))&&this.timeZone===e.timeZone}};(0,n._)([(0,o.Cb)()],p.prototype,"legacy",void 0),(0,n._)([(0,l.r)("legacy",["timeZone"])],p.prototype,"readLegacy",null),(0,n._)([(0,o.Cb)({type:String,nonNullable:!0})],p.prototype,"timeZone",void 0),(0,n._)([(0,l.r)("timeZone",["timeZone","timeZoneIANA","respectsDaylightSaving"])],p.prototype,"readTimeZone",null),(0,n._)([(0,u.c)("timeZone")],p.prototype,"writeTimeZone",null),p=(0,n._)([(0,d.j)("esri.time.TimeReference")],p);const m=p},42799:(e,t,r)=>{r.d(t,{G:()=>s});const n=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Chihuahua"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var i=r(17126);function s(e,t="system"){if(!e||!n.has(e.timeZone))return t;const r=n.get(e.timeZone);return e.timeZone.startsWith("UTC")||e.respectsDaylightSaving?r:function(e){const t=i.ou.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===r?"Etc/UTC":`Etc/GMT${i.Qf.instance(-r).formatOffset(0,"narrow")}`}(r)}}}]);
|