@arcgis/core 5.2.0-next.12 → 5.2.0-next.14
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/arcgisGlobal.d.ts +3 -3
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/03354e9256b2f77fd4f2.js +1 -0
- package/assets/esri/core/workers/chunks/0826d36dfbfa28442b70.js +1 -0
- package/assets/esri/core/workers/chunks/{8103d06f760a2c79773d.js → 0a8ba5cb857f61de40fb.js} +15 -15
- package/assets/esri/core/workers/chunks/152f1c08197955224ad3.js +1 -0
- package/assets/esri/core/workers/chunks/1a0903b1d2d5101977c6.js +1 -0
- package/assets/esri/core/workers/chunks/{de541ad390a8d258d2e6.js → 1d5db8746a4f1ed1d18f.js} +1 -1
- package/assets/esri/core/workers/chunks/1effde6a39ef0d4af525.js +1 -0
- package/assets/esri/core/workers/chunks/{2a5176533e78a92d8e5b.js → 20c729fca2e4b4c6b28d.js} +1 -1
- package/assets/esri/core/workers/chunks/23d50c4478f40a7d62bf.js +1 -0
- package/assets/esri/core/workers/chunks/2623cd08487fdc9a94f1.js +1 -0
- package/assets/esri/core/workers/chunks/2c3fc2805f6de0963789.js +1 -0
- package/assets/esri/core/workers/chunks/2c4f10eaf02ef090ee8f.js +1 -0
- package/assets/esri/core/workers/chunks/314bc1b356d43bfa72a8.js +1 -0
- package/assets/esri/core/workers/chunks/{34544c79ce568f30a094.js → 31762eb20a9a0ed3f8b0.js} +1 -1
- package/assets/esri/core/workers/chunks/{26dca1d387183282276a.js → 318a2702632aaa4d3a63.js} +1 -1
- package/assets/esri/core/workers/chunks/3526ab3b1f87c24ae6f8.js +1 -0
- package/assets/esri/core/workers/chunks/{0b169bb1969f86232a1a.js → 35b3ff25f5fe24fe15e2.js} +1 -1
- package/assets/esri/core/workers/chunks/{81808c3aead7dfac3049.js → 38cfedce779dd75bd217.js} +1 -1
- package/assets/esri/core/workers/chunks/{5075e85e1eafd431a8c0.js → 39c994536ce6c1e5c956.js} +1 -1
- package/assets/esri/core/workers/chunks/3b74749db78bcba2bc16.js +1 -0
- package/assets/esri/core/workers/chunks/3d83ac791212b81c9d11.js +1 -0
- package/assets/esri/core/workers/chunks/3ecb906322a6a5c8c93b.js +1 -0
- package/assets/esri/core/workers/chunks/3f67162456a1f02190fa.js +1 -0
- package/assets/esri/core/workers/chunks/{ef46ef4f0ee9f2aeaa4a.js → 426b8e1e2eef2460851d.js} +1 -1
- package/assets/esri/core/workers/chunks/4376bc2934a996d8bc27.js +1 -0
- package/assets/esri/core/workers/chunks/44d0ca9d4c5f1722688c.js +1 -0
- package/assets/esri/core/workers/chunks/{c187bc997bad61b6c6e9.js → 47f21b65065558d583ca.js} +1 -1
- package/assets/esri/core/workers/chunks/{e25bcfdd8f20f8a08b19.js → 4d57c771af4137f74bfb.js} +1 -1
- package/assets/esri/core/workers/chunks/4e4419282c4bf7ee4678.js +1 -0
- package/assets/esri/core/workers/chunks/4e788fc6cb2ea936f676.js +1 -0
- package/assets/esri/core/workers/chunks/4f51963815b0d53ffbd9.js +1 -0
- package/assets/esri/core/workers/chunks/5100b5a6a506c704dfaf.js +1 -0
- package/assets/esri/core/workers/chunks/52afd43bbe23e358efb5.js +1 -0
- package/assets/esri/core/workers/chunks/5aba23584e0b230c75f5.js +1 -0
- package/assets/esri/core/workers/chunks/{d3c760109a70a71448c5.js → 67773a9f031d9f1d672f.js} +1 -1
- package/assets/esri/core/workers/chunks/6f7193b9ff5942c0d354.js +1 -0
- package/assets/esri/core/workers/chunks/70737052bab29fcaa120.js +1 -0
- package/assets/esri/core/workers/chunks/718d2d430c1a5a940b83.js +1 -0
- package/assets/esri/core/workers/chunks/71c996e1ae84d9daddf2.js +1 -0
- package/assets/esri/core/workers/chunks/753e0b21e57c12c742ee.js +1 -0
- package/assets/esri/core/workers/chunks/764c8ba14ab74b66b391.js +1 -0
- package/assets/esri/core/workers/chunks/{1996f0a930abdd97b855.js → 7a8ed08cd173963b3112.js} +1 -1
- package/assets/esri/core/workers/chunks/{4a20f7a0700fd14a129f.js → 7dcf804e1918b94fa4e1.js} +3 -10
- package/assets/esri/core/workers/chunks/{cc697c4d9cdc116373dc.js → 81726d997a2d34449bb2.js} +1 -1
- package/assets/esri/core/workers/chunks/{74e1826ad9e2c4fd3b42.js → 81883bca8a79ee2ddb00.js} +1 -1
- package/assets/esri/core/workers/chunks/{9fee0110dc7fee4c95e2.js → 854c320af09b6afc4b80.js} +2 -2
- package/assets/esri/core/workers/chunks/85505a8b8b0794656d06.js +1 -0
- package/assets/esri/core/workers/chunks/859bc873e7af911a518f.js +1 -0
- package/assets/esri/core/workers/chunks/{8407c91cce31e087b41b.js → 886ae23a1d8fa21e531f.js} +1 -1
- package/assets/esri/core/workers/chunks/{3ff7aa216cd794d951e8.js → 8e99f937fd36cf2cd05f.js} +1 -1
- package/assets/esri/core/workers/chunks/{c357c0a08b99c1e7f290.js → 9331969046f2b277d620.js} +1 -1
- package/assets/esri/core/workers/chunks/93d08d82ceab19e314f8.js +1 -0
- package/assets/esri/core/workers/chunks/97a654e8054302582a3b.js +1 -0
- package/assets/esri/core/workers/chunks/97d2bdbea39cbcf8fd0f.js +1 -0
- package/assets/esri/core/workers/chunks/a0208e35b217808777c4.js +1 -0
- package/assets/esri/core/workers/chunks/{f25bb204cf6727f6fdef.js → a0876a52a3c2ad849370.js} +1 -1
- package/assets/esri/core/workers/chunks/{7ad09ac5793e8d47b4b2.js → a4b970a841b3085500fc.js} +1 -1
- package/assets/esri/core/workers/chunks/aa5f36d7ed59c625ba78.js +1 -0
- package/assets/esri/core/workers/chunks/b045bffb4f2eb9203183.js +1 -0
- package/assets/esri/core/workers/chunks/b590402170ae289290d7.js +1 -0
- package/assets/esri/core/workers/chunks/b9935cc8e2bd4045058a.js +1 -0
- package/assets/esri/core/workers/chunks/{1a527c0740d9f4fa0791.js → bc547cf814d6703cef59.js} +1 -1
- package/assets/esri/core/workers/chunks/bcc097271f5cdf0a97a7.js +1 -0
- package/assets/esri/core/workers/chunks/bdc66ef2b6ed783047d5.js +1 -0
- package/assets/esri/core/workers/chunks/be1d2c3a61e6447fbbc7.js +1 -0
- package/assets/esri/core/workers/chunks/bf6ae205fbfbfcd1a0ee.js +1 -0
- package/assets/esri/core/workers/chunks/bfd1aef8ac795e1ce227.js +1 -0
- package/assets/esri/core/workers/chunks/c148ad0ea9258046ac1f.js +1 -0
- package/assets/esri/core/workers/chunks/{0f75c19d8e296a32e329.js → c2cd80b712f29e8cbb8d.js} +1 -1
- package/assets/esri/core/workers/chunks/cc0efa716b8414a44398.js +1 -0
- package/assets/esri/core/workers/chunks/{8f6833671c071b522923.js → cd66bd30f654fe571e57.js} +1 -1
- package/assets/esri/core/workers/chunks/cf41a66fb97c1076fb34.js +1 -0
- package/assets/esri/core/workers/chunks/cf8ce21dc649021e97f6.js +1 -0
- package/assets/esri/core/workers/chunks/d2f47f21ce0b0ab4da17.js +262 -0
- package/assets/esri/core/workers/chunks/d3be4d914fc99a1d686c.js +1 -0
- package/assets/esri/core/workers/chunks/dbd2bfcbf3e0f86f07b8.js +1 -0
- package/assets/esri/core/workers/chunks/{6675d56f49d07a97dc40.js → dd0c1cf921369e2bc48b.js} +1 -1
- package/assets/esri/core/workers/chunks/df18b0a653b328d8d052.js +1 -0
- package/assets/esri/core/workers/chunks/df54e741db40b308c2dd.js +2 -0
- package/assets/esri/core/workers/chunks/{89e09276086745aa21fa.js → e4e2f479c0c45ae1b2c3.js} +1 -1
- package/assets/esri/core/workers/chunks/e656fd5ecf9ac059a87b.js +1 -0
- package/assets/esri/core/workers/chunks/{58a7cdebc3d182c15ec6.js → e77df11aee136d64ff0f.js} +1 -1
- package/assets/esri/core/workers/chunks/{7a474ce61cf484df87b4.js → e80376832050a4b6d28a.js} +1 -1
- package/assets/esri/core/workers/chunks/{f75295cdd5e84eb97d5a.js → e8d65900eefff1152207.js} +1 -1
- package/assets/esri/core/workers/chunks/f116331c6eca937aac8e.js +1 -0
- package/assets/esri/core/workers/chunks/{3b837b512999e6ab24bc.js → f148666308071bdb185a.js} +1 -1
- package/assets/esri/core/workers/chunks/f23e995320674b32e142.js +1 -0
- package/assets/esri/core/workers/chunks/f334bf192dff5af10a70.js +1 -0
- package/assets/esri/core/workers/chunks/f76b1fc36f5606cac2c8.js +1 -0
- package/assets/esri/core/workers/chunks/{893c0d28a5bf3f9f29f1.js → f93facf47aba9b128fcc.js} +1 -1
- package/assets/esri/core/workers/chunks/fa1336b60278017d2525.js +1 -0
- package/assets/esri/core/workers/chunks/{c911f0b5bdd43b66b731.js → fa3faec65882c5b6f1a0.js} +1 -1
- package/assets/esri/core/workers/chunks/fccc34b86454c56f27ab.js +1 -0
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +5 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis.json +1 -1
- package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_en.json +1 -1
- package/chunks/{ComponentShader.glsl.js → Component.glsl.js} +11 -11
- package/chunks/GlobalIlluminationBlur.glsl.js +7 -7
- package/chunks/GlowBlur.glsl.js +5 -6
- package/chunks/LineMarker.glsl.js +27 -26
- package/chunks/MeasurementArrow.glsl.js +5 -4
- package/chunks/RibbonLine.glsl.js +1 -8
- package/chunks/Terrain.glsl.js +24 -26
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/chunks/bundle2.js +1 -1
- package/config.js +1 -1
- package/core/promiseUtils.d.ts +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/units.js +1 -1
- package/form/types.d.ts +1 -1
- package/geometry/Mesh.d.ts +220 -95
- package/geometry/operators/support/projectionZScaling.js +1 -1
- package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +35 -13
- package/geometry/support/MeshLocalVertexSpace.d.ts +32 -8
- package/geometry/support/MeshVertexAttributes.d.ts +6 -2
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/geometry/support/zscale.js +1 -1
- package/graphic/{AnnotationGraphicOrigin.d.ts → AnnotationFeatureGraphicOrigin.d.ts} +9 -9
- package/graphic/{AnnotationGraphicOrigin.js → AnnotationFeatureGraphicOrigin.js} +1 -1
- package/interfaces.d.ts +3 -3
- package/kernel.js +1 -1
- package/layers/{AnnotationLayer.d.ts → AnnotationFeatureLayer.d.ts} +24 -24
- package/layers/AnnotationFeatureLayer.js +2 -0
- package/layers/GaussianSplatLayer.d.ts +4 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/queryUtils.js +1 -1
- package/layers/graphics/sources/parquet/ParquetFileStatistics.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/graphics/sources/support/parquetIdUtils.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/support/AnnotationSublayer.d.ts +7 -7
- package/layers/support/FeatureEffect.d.ts +3 -2
- package/layers/support/arcgisLayers.js +1 -1
- package/layers/support/fetchService.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/support/layersLoader.js +1 -1
- package/layers/support/parquetUtils.js +1 -1
- package/layers/support/schemaValidator.js +1 -1
- package/layers/types.d.ts +1 -1
- package/networks/Network.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/networks/support/networkFieldUtils.js +1 -1
- package/package.json +2 -2
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/gaussianSplatLayerItem.js +2 -0
- package/portal/schemas/integratedMesh3DTilesLayerItem.js +1 -1
- package/portal/support/loadUtils.js +1 -1
- package/renderers/support/types.d.ts +1 -1
- package/renderers/visualVariables/RotationVariable.d.ts +1 -16
- package/renderers/visualVariables/RotationVariable.js +1 -1
- package/rest/knowledgeGraph/ReplicaDefinition.d.ts +0 -2
- package/rest/knowledgeGraph/ServiceDefinition.d.ts +1 -1
- package/rest/knowledgeGraph/wasmInterface/replicaToWasmEncodedFactories.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/rest/networks/support/QueryAssociationsParameters.d.ts +2 -2
- package/rest/networks/support/SynthesizeAssociationGeometriesParameters.d.ts +2 -2
- package/rest/networks/support/TraceParameters.d.ts +2 -2
- package/rest/support/AttributeBinsQuery.js +1 -1
- package/rest/support/Query.js +1 -1
- package/rest/support/TopFeaturesQuery.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/util/createMatcher.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/AnnotationFeatureLayerView2D.js +2 -0
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
- package/views/2d/layers/support/annodime/annotationSchema.js +1 -1
- package/views/2d/types.d.ts +2 -2
- package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
- package/views/3d/analysis/ShadowCast/ShadowCastTooltip.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool2.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/support/GaussianSplatSortWorker.js +1 -1
- package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
- package/views/3d/types.d.ts +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/{ComponentShader.glsl.js → Component.glsl.js} +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +7 -7
- package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +29 -20
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatTextureFetch.glsl.js +6 -8
- package/views/3d/webgl-engine/lib/Compositor.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TexelFormatInfo.js +2 -0
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFieldCreation.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferLayout.js +1 -1
- package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBuffer.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineCalloutTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/MeasurementArrowTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +10 -10
- package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/alphaCutoff.glsl.js +1 -1
- package/views/SceneView.d.ts +1 -1
- package/views/layers/{AnnotationLayerView.d.ts → AnnotationFeatureLayerView.d.ts} +6 -6
- package/views/layers/FeatureLikeLayerView.d.ts +2 -2
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/webdoc/widgets/FloorFilter.d.ts +14 -1
- package/webdoc/widgets/FloorFilter.js +1 -1
- package/webscene/support/AlphaCutoff.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +12 -4
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/ReactiveGraphic.js +1 -1
- package/widgets/BatchAttributeForm/ValueChangeTransaction.js +2 -0
- package/widgets/BatchAttributeForm/VisibleElements.d.ts +8 -1
- package/widgets/BatchAttributeForm/VisibleElements.js +1 -1
- package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
- package/widgets/BatchAttributeForm/css.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
- package/widgets/BatchAttributeForm/inputs/BatchFormInputs.d.ts +3 -0
- package/widgets/BatchAttributeForm/inputs/BatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
- package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm/interfaceUtils.js +1 -1
- package/widgets/BatchAttributeForm/stringUtils.js +2 -0
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/types.d.ts +19 -3
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Editor/AddAssociationWorkflow.js +1 -1
- package/widgets/Editor/AddAssociationWorkflowData.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.d.ts +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/MergeFeaturesWorkflow.d.ts +3 -3
- package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.d.ts +3 -3
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.d.ts +10 -0
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/07cc5743cb6a9fd68adb.js +0 -1
- package/assets/esri/core/workers/chunks/0bb159ba0226122465cf.js +0 -1
- package/assets/esri/core/workers/chunks/160e5b99f1097a473e6b.js +0 -1
- package/assets/esri/core/workers/chunks/17e68828ca6ff6912d3e.js +0 -1
- package/assets/esri/core/workers/chunks/1e340536d3c5f94920b5.js +0 -1
- package/assets/esri/core/workers/chunks/24810c36ae09bb4e83dc.js +0 -1
- package/assets/esri/core/workers/chunks/274b82cb183ddd0042f3.js +0 -1
- package/assets/esri/core/workers/chunks/297ae764445e6f73a5ea.js +0 -1
- package/assets/esri/core/workers/chunks/29aba121db7f00e0cf81.js +0 -1
- package/assets/esri/core/workers/chunks/2a3145a595d19391bb8a.js +0 -1
- package/assets/esri/core/workers/chunks/3297658ccd8d4b9ce733.js +0 -1
- package/assets/esri/core/workers/chunks/38ca59db0e8f45bd7811.js +0 -1
- package/assets/esri/core/workers/chunks/3c5534c576528c1921d2.js +0 -1
- package/assets/esri/core/workers/chunks/40b3cdf81c79bbc44527.js +0 -2
- package/assets/esri/core/workers/chunks/41f12eb7c9b7086528d5.js +0 -1
- package/assets/esri/core/workers/chunks/426156137f279d979ddd.js +0 -1
- package/assets/esri/core/workers/chunks/4714241189c13d0db897.js +0 -1
- package/assets/esri/core/workers/chunks/537c5dd4cd0a067199d1.js +0 -1
- package/assets/esri/core/workers/chunks/538537f9bc866d9caa75.js +0 -1
- package/assets/esri/core/workers/chunks/5437a1c05c1bd2175981.js +0 -1
- package/assets/esri/core/workers/chunks/58ac245ff7fb57c1004f.js +0 -1
- package/assets/esri/core/workers/chunks/5c7aff9604b4576a0e1d.js +0 -1
- package/assets/esri/core/workers/chunks/5d3ddbf94539cb4f493e.js +0 -1
- package/assets/esri/core/workers/chunks/5eb9fdb076488de9cd83.js +0 -1
- package/assets/esri/core/workers/chunks/603177137eb680afe371.js +0 -1
- package/assets/esri/core/workers/chunks/629099f05ca5c9ca1973.js +0 -1
- package/assets/esri/core/workers/chunks/62f78fa455d556008f6a.js +0 -1
- package/assets/esri/core/workers/chunks/686c51fd2144e132783e.js +0 -1
- package/assets/esri/core/workers/chunks/6f0341cfa4c68e6e60b3.js +0 -1
- package/assets/esri/core/workers/chunks/70229007d594536ba6a3.js +0 -1
- package/assets/esri/core/workers/chunks/7e89cb9ff615742e0894.js +0 -1
- package/assets/esri/core/workers/chunks/890b7a1153b7f65eba9a.js +0 -1
- package/assets/esri/core/workers/chunks/9660ae52fb3951a19e9c.js +0 -1
- package/assets/esri/core/workers/chunks/a4245bd4e67a428fd835.js +0 -1
- package/assets/esri/core/workers/chunks/ac33b10fe65f9e9e824f.js +0 -1
- package/assets/esri/core/workers/chunks/b5937ce657c1fff3864f.js +0 -1
- package/assets/esri/core/workers/chunks/b895674c0550826ecb28.js +0 -262
- package/assets/esri/core/workers/chunks/c3cf9e6e91f71c9cc5f3.js +0 -1
- package/assets/esri/core/workers/chunks/c80fc1b3048e8d58a1f8.js +0 -1
- package/assets/esri/core/workers/chunks/cc3e895cff019e811c07.js +0 -1
- package/assets/esri/core/workers/chunks/d122431f3b0b88dcb488.js +0 -1
- package/assets/esri/core/workers/chunks/d24e027bb8b2c09f25c8.js +0 -1
- package/assets/esri/core/workers/chunks/d2df8c328054dc6cb7b7.js +0 -1
- package/assets/esri/core/workers/chunks/d41caf20c26f80385265.js +0 -1
- package/assets/esri/core/workers/chunks/d468994822f9bc3d6279.js +0 -1
- package/assets/esri/core/workers/chunks/d63f532dd7d60ee8ef2c.js +0 -1
- package/assets/esri/core/workers/chunks/d64613209a9eb1eafb11.js +0 -1
- package/assets/esri/core/workers/chunks/d7be278aed1fb37ad5ec.js +0 -1
- package/assets/esri/core/workers/chunks/d8ec0afb2b91ccf32e55.js +0 -1
- package/assets/esri/core/workers/chunks/da1e8b338ab9fe9e0a8e.js +0 -1
- package/assets/esri/core/workers/chunks/dd920a6f6422fa213eba.js +0 -1
- package/assets/esri/core/workers/chunks/e279bcbe4f10e87bde6c.js +0 -1
- package/assets/esri/core/workers/chunks/e2de13810dce01b98520.js +0 -1
- package/assets/esri/core/workers/chunks/e5837e5ac6ef761f26a2.js +0 -1
- package/assets/esri/core/workers/chunks/e82488b9b3bb0c1dedb4.js +0 -1
- package/assets/esri/core/workers/chunks/f274a8e8c7ca4294e876.js +0 -1
- package/assets/esri/core/workers/chunks/f292c2c22a3822343118.js +0 -1
- package/assets/esri/core/workers/chunks/f4f642ddd4d5db7cbbb4.js +0 -1
- package/assets/esri/core/workers/chunks/f6d047358d14328f3622.js +0 -1
- package/assets/esri/core/workers/chunks/fb6605be0c5e36785543.js +0 -1
- package/assets/esri/core/workers/chunks/fd70a25ffdf2cc6c5be2.js +0 -1
- package/layers/AnnotationLayer.js +0 -2
- package/views/2d/layers/AnnotationLayerView2D.js +0 -2
- /package/assets/esri/core/workers/chunks/{9fee0110dc7fee4c95e2.js.LICENSE.txt → 854c320af09b6afc4b80.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{40b3cdf81c79bbc44527.js.LICENSE.txt → df54e741db40b308c2dd.js.LICENSE.txt} +0 -0
- /package/views/layers/{AnnotationLayerView.js → AnnotationFeatureLayerView.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3103,6956],{31464(e,t,i){i.d(t,{Cv:()=>m,Nk:()=>y,lK:()=>g});var n=i(4576),r=i(91218),s=i(21325),o=i(28735);const a=[0,0];function l(e,t){if(!t)return null;if("x"in t){const i={x:0,y:0};return[i.x,i.y]=e(t.x,t.y,a),null!=t.z&&(i.z=t.z),null!=t.m&&(i.m=t.m),i}if("xmin"in t){const i={xmin:0,ymin:0,xmax:0,ymax:0};return[i.xmin,i.ymin]=e(t.xmin,t.ymin,a),[i.xmax,i.ymax]=e(t.xmax,t.ymax,a),t.hasZ&&(i.zmin=t.zmin,i.zmax=t.zmax,i.hasZ=!0),t.hasM&&(i.mmin=t.mmin,i.mmax=t.mmax,i.hasM=!0),i}return"rings"in t?{rings:u(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:u(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:p(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function u(e,t){const i=[];for(const n of e)i.push(p(n,t));return i}function p(e,t){const i=[];for(const n of e){const e=t(n[0],n[1],[0,0]);i.push(e),n.length>2&&e.push(n[2]),n.length>3&&e.push(n[3])}return i}async function y(e,t){if(!e||!t)return;const i=Array.isArray(e)?e.map(e=>null!=e.geometry?e.geometry.spatialReference:null).filter(n.Ru):[e];await(0,r.initializeProjection)(i.map(e=>({source:e,dest:t})))}const d=l.bind(null,o.je),c=l.bind(null,o.tD);function m(e,t,i,n){if(!e)return null;if(i||(i=t,t=e.spatialReference),!(0,s.fn)(t)||!(0,s.fn)(i)||(0,s.aI)(t,i))return e;if((0,o.y7)(t,i)){const t=(0,s.K8)(i)?d(e):c(e);return t.spatialReference=i,t}return(0,r.projectMany)([e],t,i,n)[0]}const f=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,i,n){if(!e?.length||!t||!i||(0,s.aI)(t,i))return e;const r={geometries:e,inSpatialReference:t,outSpatialReference:i,options:n,resolve:Promise.withResolvers()};return this._jobs.push(r),this._timer??=setTimeout(this._process,10),r.resolve.promise}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:i,outSpatialReference:n,resolve:a,options:l}=e,u=t.filter(e=>null!=e);let p;p=(0,o.y7)(i,n)&&null==l?.extendedParams?(0,s.K8)(n)?u.map(d):u.map(c):(0,r.projectMany)(u,i,n,l);let y=0;const m=t.map(e=>null==e?null:p[y++]);a.resolve(m),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function g(e,t,i,n){return f.push(e,t,i,n)}},58727(e,t,i){i.d(t,{GC:()=>g,T2:()=>h,VY:()=>c,dO:()=>w,iJ:()=>f,v8:()=>m});var n=i(49186),r=i(66552),s=i(86211),o=i(91218),a=i(90634),l=i(60408),u=i(65864),p=i(17136),y=i(21325),d=i(31464);const c=new r.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),m=Object.freeze({});async function f(e,t,i){const n=e.bin;return n.onField&&(n.onField=n.onField.trim()),n.onExpression?.value&&(n.onExpression.value=n.onExpression.value.trim()),n.splitBy&&(n.splitBy.value&&(n.splitBy.value=n.splitBy.value.trim()),n.splitBy.outAlias&&(n.splitBy.outAlias=n.splitBy.outAlias.trim())),n.stackBy&&(n.stackBy.value&&(n.stackBy.value=n.stackBy.value.trim()),n.stackBy.outAlias&&(n.stackBy.outAlias=n.stackBy.outAlias.trim())),"normalizationField"in n.parameters&&n.parameters.normalizationField&&(n.parameters.normalizationField=n.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),g(e,t,i)}async function g(e,t,i){const{outFields:n,orderByFields:r,groupByFieldsForStatistics:s,outStatistics:o}=e;if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(o)for(let e=0;e<o.length;e++)o[e].onStatisticField&&(o[e].onStatisticField=o[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),h(e,t,i)}async function h(e,t,r){if(!e)return null;let{where:o}=e;if(e.where=o=o?.trim(),(!o||/^1 *= *1$/.test(o)||t&&t===o)&&(e.where=null),!e.geometry)return e;let f=await async function(e){const{distance:t,units:r}=e,o=e.geometry;if(null==t||"vertexAttributes"in o)return o;const a=o.spatialReference,u=r?c.fromJSON(r):(0,s.Ij)(a),p=a&&((0,y.EA)(a)||(0,y.K8)(a))?o:await(0,d.Nk)(a,y.KK).then(()=>(0,d.Cv)(o,y.KK)),m=await i.e(9159).then(i.bind(i,49159));await m.load();const f=m.execute(p,t||1,{unit:u})??void 0;if(!f||!(0,l.Bi)(f)||0===f.rings.length)throw new n.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return f}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;f=(0,a.HA)(f),f.spatialReference=t}if(f){await(0,d.Nk)(f.spatialReference,r),f=function(e,t){const i=e.spatialReference;return v(e,t)&&(0,l.ZC)(e)?{spatialReference:i,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(f,r);const t=(await(0,p.el)((0,u.rS)(f)))[0];if(null==t)throw m;const i="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,n=i&&v(f,r)?{extendedParams:{densificationStep:8*i}}:void 0,s=t.toJSON(),o=(0,d.Cv)(s,s.spatialReference,r,n);if(!o)throw m;o.spatialReference=r,e.geometry=o}return e}function v(e,t){if(!e)return!1;const i=e.spatialReference;return((0,l.ZC)(e)||(0,l.Bi)(e)||(0,l.Rg)(e))&&!(0,y.aI)(i,t)&&!(0,o.canProjectWithoutEngine)(i,t)}function w(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}},33103(e,t,i){i.r(t),i.d(t,{executeAttributeBinsQuery:()=>c});var n=i(2272),r=i(11254),s=i(84952),o=i(60408),a=i(17136),l=i(21325),u=i(10536);function p(e){const t=e.geometry,i=e.toJSON(),n=i;let r,s,a;if(null!=t&&(s=t.spatialReference,a=(0,l.YX)(s),n.geometryType=(0,o.$B)(t),n.geometry=JSON.stringify(t),n.inSR=a),i.outSR?(n.outSR=(0,l.YX)(i.outSR),r=e.outSpatialReference):t&&(n.outSR=n.inSR,r=s),n.bin&&=JSON.stringify(n.bin),n.quantizationParameters&&=JSON.stringify(n.quantizationParameters),n.outStatistics&&=JSON.stringify(n.outStatistics),n.outTimeReference&&=JSON.stringify(n.outTimeReference),i.timeExtent){const e=i.timeExtent,{start:t,end:r}=e;null==t&&null==r||(n.time=t===r?t:`${t??"null"},${r??"null"}`),delete i.timeExtent}return e.defaultSpatialReference&&(0,l.aI)(s,r)&&(n.defaultSR=n.inSR,delete n.inSR,delete n.outSR),n}var y=i(37745),d=i(14575);async function c(e,t,i){const{data:o}=await async function(e,t,i){return null!=t.timeExtent&&t.timeExtent.isEmpty?{data:{features:[]}}:await async function(e,t,i={}){const n="string"==typeof e?(0,s.An)(e):e,o=t.geometry?[t.geometry]:[],l=await(0,a.el)(o,null,{signal:i.signal}),y=l?.[0];null!=y&&((t=t.clone()).geometry=y);const d=(0,u.z)({...n.query,f:"json",...p(t)});return(0,r.A)((0,s.fj)(n.path,"queryBins"),{...i,query:{...d,...i.query}})}(e,t,i)}((0,n.Dl)(e),d.default.from(t),i);return y.A.fromJSON(o)}},37745(e,t,i){i.d(t,{A:()=>d});var n,r=i(5482),s=i(52106),o=i(4718),a=i(91429);let l=class extends s.A{static{n=this}constructor(e){super(e),this.stackedAttributes=null}cloneShallow(){return new n(Object.assign({stackedAttributes:this.stackedAttributes},super.cloneShallow()))}toJSON(){return{...super.toJSON(),stackedAttributes:(0,o.o8)(this.stackedAttributes)}}};(0,r.Cg)([(0,a.MZ)()],l.prototype,"stackedAttributes",void 0),l=n=(0,r.Cg)([(0,a.$K)("esri.AttributeBinsGraphic")],l);var u=i(69540),p=i(22671),y=i(36005);let d=class extends((0,u.OU)(p.A)){constructor(e){super(e),this.features=[]}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l)}};(0,r.Cg)([(0,a.MZ)({type:[l],json:{write:!0}})],d.prototype,"features",void 0),(0,r.Cg)([(0,y.w)("features")],d.prototype,"readFeatures",null),d=(0,r.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsFeatureSet")],d)},14575(e,t,i){i.d(t,{default:()=>b});var n=i(5482),r=i(69540),s=i(66552),o=i(25482),a=i(53966),l=i(91429),u=i(56507),p=i(16930),y=i(65864),d=i(50498),c=i(58727),m=i(5834),f=i(41266),g=i(59977),h=i(11440),v=i(60909),w=i(58174),S=i(7562),x=i(79677),C=i(56400),B=i(93223);const M=new s.J({asc:"ascending",desc:"descending"}),A={base:f.A,key:"type",typeMap:{"auto-interval":m.A,date:g.A,"fixed-boundaries":h.A,"fixed-interval":v.A}};let b=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.timeExtent=null,this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(e){this._set("outTimeZone",e),e&&!(0,C.wr)(e)&&a.A.getLogger(this).warn("#outTimeZone",`the parsed value '${e}' may not be a valid IANA time zone`)}};(0,n.Cg)([(0,l.MZ)({types:A,json:{name:"bin",write:!0}})],b.prototype,"binParameters",void 0),(0,n.Cg)([(0,B.e)(M)],b.prototype,"binOrder",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],b.prototype,"cacheHint",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],b.prototype,"datumTransformation",void 0),(0,n.Cg)([(0,l.MZ)({type:p.A,json:{name:"defaultSR",write:!0}})],b.prototype,"defaultSpatialReference",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],b.prototype,"distance",void 0),(0,n.Cg)([(0,l.MZ)({types:d.yR,json:{read:y.rS,write:!0}})],b.prototype,"geometry",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"lowerBoundaryAlias",void 0),(0,n.Cg)([(0,l.MZ)({type:p.A,json:{name:"outSR",write:!0}})],b.prototype,"outSpatialReference",void 0),(0,n.Cg)([(0,l.MZ)({type:[S.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],b.prototype,"outStatistics",void 0),(0,n.Cg)([(0,l.MZ)({value:null,json:{name:"outTimeReference",read:{reader:e=>e.ianaTimeZone},write:{writer:(e,t,i)=>{e&&(t[i]={ianaTimeZone:e})}}}})],b.prototype,"outTimeZone",null),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy:e=>({enabled:null!=e})}}})],b.prototype,"returnAggregateIds",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],b.prototype,"returnDistinctValues",void 0),(0,n.Cg)([(0,B.e)(w.x,{name:"spatialRel"})],b.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,l.MZ)({type:x.A,json:{write:!0}})],b.prototype,"timeExtent",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"upperBoundaryAlias",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:c.VY.read,write:{writer:c.VY.write,overridePolicy(e){return{enabled:null!=e&&null!=this.distance}}}}})],b.prototype,"units",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"where",void 0),b=(0,n.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsQuery")],b),b.from=(0,u.dp)(b)},5834(e,t,i){i.d(t,{A:()=>y});var n=i(5482),r=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(41366),u=i(93223);function p(e,t,i){(0,r.sM)(i,e instanceof Date?e.getTime():e,t)}let y=class extends((0,l.K)(a.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],y.prototype,"numBins",void 0),(0,n.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],y.prototype,"end",void 0),(0,n.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],y.prototype,"start",void 0),(0,n.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,n.Cg)([(0,s.$K)("esri.rest.support.AutoIntervalBinParameters")],y),y.from=(0,o.dp)(y)},41266(e,t,i){i.d(t,{A:()=>f});var n=i(5482),r=i(69540),s=i(66552),o=i(25482),a=i(91429),l=i(56507),u=i(93223);const p=new s.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let y=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"outAlias",write:!0}})],y.prototype,"alias",void 0),(0,n.Cg)([(0,a.MZ)({type:String})],y.prototype,"responseType",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"value",void 0),(0,n.Cg)([(0,u.e)(p)],y.prototype,"valueType",void 0),y=(0,n.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsGrouping")],y);const d=y;y.from=(0,l.dp)(y);const c=new s.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),m=new s.J({naturalLog:"natural-log",squareRoot:"square-root"});let f=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],f.prototype,"expression",void 0),(0,n.Cg)([(0,u.e)(c,{name:"onExpression.valueType"})],f.prototype,"expressionValueType",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],f.prototype,"field",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"firstDayOfWeek",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hideUpperBound",void 0),(0,n.Cg)([(0,a.MZ)({type:d,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],f.prototype,"splitBy",void 0),(0,n.Cg)([(0,a.MZ)({type:d,json:{write:{target:{stackBy:{type:d},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>d.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],f.prototype,"stackBy",void 0),(0,n.Cg)([(0,u.e)(m)],f.prototype,"transformation",void 0),f=(0,n.Cg)([(0,a.$K)("esri.rest.support.BinParametersBase")],f)},59977(e,t,i){i.d(t,{A:()=>g});var n=i(5482),r=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(69540),u=i(25482),p=i(57231),y=i(93223);let d=class extends((0,l.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"number",write:!0}})],d.prototype,"value",void 0),(0,n.Cg)([(0,y.e)(p.g)],d.prototype,"unit",void 0),d=(0,n.Cg)([(0,s.$K)("esri.rest.support.DateBinTimeInterval")],d);const c=d;function m(e,t,i){(0,r.sM)(i,"string"==typeof e?e:e?.getTime(),t)}function f(e,t){const i=e.parameters[t];return i?"string"==typeof i?i:new Date(i):null}d.from=(0,o.dp)(d);let g=class extends a.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,n.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.end",read:{reader:(e,t)=>f(t,"end")},write:{writer:m}}})],g.prototype,"end",void 0),(0,n.Cg)([(0,s.MZ)({type:c,json:{name:"parameters",write:!0}})],g.prototype,"interval",void 0),(0,n.Cg)([(0,s.MZ)({type:c,json:{name:"parameters.offset",write:!0}})],g.prototype,"offset",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],g.prototype,"returnFullIntervalBin",void 0),(0,n.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.start",read:{reader:(e,t)=>f(t,"start")},write:{writer:m}}})],g.prototype,"start",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],g.prototype,"snapToData",void 0),(0,n.Cg)([(0,y.e)({dateBin:"date"},{readOnly:!0})],g.prototype,"type",void 0),g=(0,n.Cg)([(0,s.$K)("esri.rest.support.DateBinParameters")],g),g.from=(0,o.dp)(g)},57231(e,t,i){i.d(t,{g:()=>n});const n=(0,i(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"})},11440(e,t,i){i.d(t,{A:()=>u});var n=i(5482),r=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(93223);let u=class extends a.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,n.Cg)([(0,s.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,i){(0,r.sM)(i,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,n.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,n.Cg)([(0,s.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,o.dp)(u)},60909(e,t,i){i.d(t,{A:()=>y});var n=i(5482),r=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(41366),u=i(93223);function p(e,t,i){(0,r.sM)(i,e instanceof Date?e.getTime():e,t)}let y=class extends((0,l.K)(a.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,n.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],y.prototype,"end",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],y.prototype,"interval",void 0),(0,n.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],y.prototype,"start",void 0),(0,n.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,n.Cg)([(0,s.$K)("esri.rest.support.FixedIntervalBinParameters")],y),y.from=(0,o.dp)(y)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1204],{22429(e,t,r){r.d(t,{v:()=>n});var a=r(7861);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,t){const r=this._serviceMetadatas.get(e);if(r)return r;const n=await(0,a.L)(e,t);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:t}=e;if(!t)return null;const{_itemDatas:r}=this;if(r.has(t))return r.get(t);const a=await e.fetchData();return r.set(t,a),a}async fetchCustomParameters(e,t){const r=await this.fetchItemData(e);return r&&"object"==typeof r&&(t?t(r):r.customParameters)||null}}},92009(e,t,r){r.d(t,{L:()=>c});var a=r(70333),n=r(11254),s=r(49186),o=r(17676),i=r(60694),l=r(20655),u=r(80812);async function c(e,t){const r=(0,i.qg)(e);if(!r)throw new s.A("invalid-url","Invalid scene service url");const c={...t,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(c.sceneLayerItem??=await async function(e){const t=(await y(e)).serviceItemId;if(!t)return null;const r=new u.default({id:t,apiKey:e.apiKey}),s=await async function(e){const t=a.id?.findServerInfo(e.sceneServerUrl);if(t?.owningSystemUrl)return t.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const t=(await(0,n.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(t)return t}catch(e){(0,o.QP)(e)}return null}(e);null!=s&&(r.portal=new l.A({url:s}));try{return await r.load({signal:e.signal})}catch(e){return(0,o.QP)(e),null}}(c),null==c.sceneLayerItem)return p(c.sceneServerUrl.replace("/SceneServer","/FeatureServer"),c);const d=await async function({sceneLayerItem:e,signal:t}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:t})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;const a=new u.default({portal:r.portal,id:r.id});return await a.load(),a}catch(e){return(0,o.QP)(e),null}}(c);if(!d?.url)throw new s.A("related-service-not-found","Could not find feature service through portal item relationship");c.featureServiceItem=d;const f=await p(d.url,c);return f.portalItem=d,f}async function y(e){if(e.rootDocument)return e.rootDocument;const t={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,n.A)(e.sceneServerUrl,t);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function p(e,t){const r=(0,i.qg)(e);if(!r)throw new s.A("invalid-feature-service-url","Invalid feature service url");const a=r.url.path,o=t.layerId;if(null==o)return{serverUrl:a};const l=y(t),u=t.featureServiceItem?await t.featureServiceItem.fetchData("json"):null,c=(u?.layers?.[0]||u?.tables?.[0])?.customParameters,p=e=>{const r={query:{f:"json",...c},responseType:"json",authMode:e,signal:t.signal};return(0,n.A)(a,r)},d=p("anonymous").catch(()=>p("no-prompt")),[f,m]=await Promise.all([d,l]),w=m?.layers,h=f.data&&f.data.layers;if(!Array.isArray(h))throw new Error("expected layers array");if(Array.isArray(w)){for(let e=0;e<Math.min(w.length,h.length);e++)if(w[e].id===o)return{serverUrl:a,layerId:h[e].id}}else if(null!=o&&o<h.length)return{serverUrl:a,layerId:h[o].id};throw new Error("could not find matching associated sublayer")}},23154(e,t,r){r.d(t,{Aq:()=>f,KU:()=>d,QM:()=>o});var a=r(77548),n=r(7861);const s=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function o(e,t){const{loadContext:r,...s}=t||{},o=r?await r.fetchServiceMetadata(e,s):await(0,n.L)(e,s),i=(0,a.G$)();p(o),u(o);const l={serviceJSON:o,preferredHost:i};if((o.currentVersion??0)<10.5)return l;const c=`${(0,a.$x)()??e}/layers`,y=r?await r.fetchServiceMetadata(c,s):await(0,n.L)(c,s);return p(y),u(y),l.layersJSON={layers:y.layers,tables:y.tables},l}function i(e){const{type:t}=e;return!!t&&s.has(t)}function l(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(i),e.tables=e.tables?.filter(l)}function c(e){e.type||="Feature Layer"}function y(e){e.type||="Table"}function p(e){e.layers?.forEach(c),e.tables?.forEach(y)}function d(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationLayer"}return"FeatureLayer"}function f(e){switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer"}return null}},88788(e,t,r){r.d(t,{m:()=>o,v:()=>s});var a=r(84952),n=r(20655);function s(e,t){return{...i(e,t),readResourcePaths:[]}}function o(e,t,r){const n=(0,a.An)(e.itemUrl);return{...i(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function i(e,t){return{origin:t,url:(0,a.An)(e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}},41204(e,t,r){r.d(t,{load:()=>f,reload:()=>m});var a=r(49186),n=r(60694),s=r(23154),o=r(22429),i=r(77548),l=r(20655),u=r(88788),c=r(66964),y=r(10407),p=r(8947),d=r(7861);async function f(e,t){const r=e.instance.portalItem;if(r?.id)return await r.load(t),w(e),e.validateItem&&e.validateItem(r),h(e,t)}async function m(e,t){const r=e.instance.portalItem;if(!r?.id)return!1;if(!r.loaded)return!1;const a=r.modified;return await r.reload(),t?.signal?.throwIfAborted(),a?.getTime()!==r.modified?.getTime()&&(w(e),e.validateItem&&e.validateItem(r),await h(e,t),!0)}function w(e){const t=e.instance.portalItem;if(!t?.type||!e.supportedTypes.includes(t.type))throw new a.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:t?.type,expectedType:e.supportedTypes.join(", ")})}async function h(e,t){const r=e.instance,n=r.portalItem;if(!n)return;let{url:l}=n;const{title:f}=n,m=(0,u.v)(n,"portal-item");if("group"===r.type)return async function(e,t,r){const n=e.portalItem;if(!e.sourceIsPortalItem)return;const{title:l,type:p}=n;if("Group Layer"===p){if(!(0,y.Y)(n,"Map"))throw new a.A("portal:invalid-layer-item-typekeyword","'Group Layer' item without 'Map' type keyword is not supported");return async function(e,t){const r=e.portalItem,n=await r.fetchData("json");if(!n)return;if(!t.populateGroupLayer)throw new a.A("portal:missing-populate-group-layer","Missing populate group layer");const s=(0,u.v)(r,"web-map");e.read(n,s),await t.populateGroupLayer(e,n,{context:s}),e.resourceReferences={portalItem:r,paths:s.readResourcePaths??[]}}(e,r)}return e.read({title:l},t),async function(e,t){let r;const{portalItem:n}=e;if(!n)return;const l=n.type,u=t.layerModuleTypeMap;if(!u)throw new a.A("portal:missing-layer-module-type-map","Layer module type map is required to construct sub layers");switch(l){case"Feature Service":case"Feature Collection":r=u.FeatureLayer;break;case"Stream Service":r=u.StreamLayer;break;case"Scene Service":r=u.SceneLayer;break;case"Video Service":r=u.VideoLayer;break;default:throw new a.A("portal:unsupported-item-type-as-group",`The item type '${l}' is not supported as a 'GroupLayer'`)}const y="Video Service"===l,p=new o.v;let[f,{data:m}]=await Promise.all([r(),y?{data:null}:L(t,p)]),w=()=>f;if(y)return async function(e,t,r){const{portalItem:a}=e;if(!a?.url)return;const n=await(0,d.L)(a.url);n&&g(e,t,null,{layers:n.layers?.map(({id:e,name:t})=>({id:e,name:t}))},r)}(e,w,u);if("Feature Service"===l){const t=(0,c.pJ)(m)?.customParameters;m=n.url?(await(0,c.bO)(m,n.url,p)).data:{},w=await async function(e,t){const{layers:r,tables:a}=e,n=[...r??[],...a??[]];if(!n.length)return;const s=new Set,o=[];for(const{layerType:e}of n){const r=e??"ArcGISFeatureLayer";if(s.has(r))continue;s.add(r);const a=t[(0,c.K8)(r)];o.push(a())}const i=await Promise.all(o),l=new Map;return Array.from(s).forEach((e,t)=>{l.set(e,i[t])}),({layerType:e})=>{const t=e??"ArcGISFeatureLayer";return l.get(t)}}(m,u)||w;const{provider:r,preferredHost:a}=await async function(e,t){const{layersJSON:r,preferredHost:a}=await(0,s.QM)(e,t);if(!r)return{provider:null,preferredHost:a};const n=[...r.layers,...r.tables];return{provider:e=>n.find(t=>t.id===e.id),preferredHost:a}}(n.url,{customParameters:t,loadContext:p});return(0,i.Gh)(n,a),await g(e,w,w,m,u,r)}return"Scene Service"===l&&n.url&&(m=await(0,c.nu)(n,m,p)),(0,c.XH)(m)>0?await g(e,w,null,m,u):await async function(e,t,r){const{portalItem:a}=e;if(!a?.url)return;const n=await(0,d.L)(a.url);n&&g(e,t,null,{layers:n.layers?.map(c._r),tables:n.tables?.map(c._r)},r)}(e,w,u)}(e,r)}(r,m,e);l&&"media"!==r.type&&r.read({url:l},m);const w=new o.v,{data:h,preferredHost:v}=await L(e,w,t);return l=n.url,"isUrlHostModified"in r&&(v?r.applyPreferredHost({preferredHost:v}):r.applyHostFromPortalItem()),h&&r.read(h,m),r.resourceReferences={portalItem:n,paths:m.readResourcePaths??[]},"subtype-group"!==r.type&&r.read({title:f},m),(0,p.L)(r,m)}async function g(e,t,r,a,n,s){let o=a.layers||[];const i=a.tables||[];if("Feature Collection"===e.portalItem?.type?(o.forEach((e,t)=>{e.id=t,"Table"===e?.layerDefinition?.type&&i.push(e)}),o=o.filter(e=>"Table"!==e?.layerDefinition?.type)):(o.reverse(),i.reverse()),o.forEach(r=>{const n=s?.(r);if(n||!s){const s=v(e,t(r),a,r,n);e.add(s)}}),i.length){const t=r?null:await n.FeatureLayer();i.forEach(n=>{const o=s?.(n);if(o||!s){const s=v(e,r?r(n):t,a,n,o);e.tables.add(s)}})}}function v(e,t,r,a,n){const s=e.portalItem,o={portalItem:s.clone(),layerId:a.id};null!=a.url&&(o.url=a.url);const i=new t(o);if("sourceJSON"in i&&(i.sourceJSON=n),"subtype-group"!==i.type&&"catalog"!==i.type&&(i.sublayerTitleMode="service-name"),"Feature Collection"===s.type){const e={origin:"portal-item",portal:s.portal||l.A.getDefault()};i.read(a,e);const t=r.showLegend;null!=t&&i.read({showLegend:t},e)}return i}async function L(e,t,r){if(!1===e.supportsData)return{data:void 0};const a=e.instance,s=a.portalItem;if(!s)return{data:void 0};let o=null;try{o="video"===a.type?null:await s.fetchData("json",r)}catch(e){}if(function(e){return"stream"!==e.type&&"layerId"in e}(a)){let e=null;const{count:r,preferredHost:l}=await async function(e,t,r){if(t?.layers&&t?.tables)return{count:(0,c.XH)(t)};const a=(0,n.qg)(e.url);if(!a)return{count:1};const s=a.url.path,o=await r.fetchServiceMetadata(s,{customParameters:(0,c.pJ)(t)?.customParameters}).catch(()=>null);return{count:(t?.layers?.length??o?.layers?.length??0)+(t?.tables?.length??o?.tables?.length??0),preferredHost:(0,i.OP)(e)?(0,i.G$)():null}}(s,o,t);if((0,i.Gh)(s,l),(o?.layers||o?.tables)&&r>0){if(null==a.layerId){const e=(0,c.l)(a.type),t=e?.length?(0,c.Ju)(o,e)[0]:(0,c.pJ)(o);t&&(a.layerId=t.id)}e=function(e,t){const{layerId:r}=t,a=e.layers?.find(e=>e.id===r)||e.tables?.find(e=>e.id===r);return a&&function(e,t){const r="layerType"in e&&e.layerType,{type:a}=t;return!("feature"===a&&r&&"ArcGISFeatureLayer"!==e.layerType||"catalog"===a&&!r||"oriented-imagery"===a&&!r||"subtype-group"===a&&!r)}(a,t)?a:null}(o,a),"OrientedImageryLayer"===e?.layerType&&"oriented-imagery"===a.type&&a.supportedSourceTypes.add("Feature Layer"),e&&null!=o.showLegend&&(e.showLegend=o.showLegend)}return r>1&&"sublayerTitleMode"in a&&"service-name"!==a.sublayerTitleMode&&(a.sublayerTitleMode="item-title-and-service-name"),{data:e,preferredHost:l}}return{data:o}}},66964(e,t,r){r.d(t,{Ju:()=>c,K8:()=>d,XH:()=>y,_r:()=>o,bO:()=>i,l:()=>p,nu:()=>f,pJ:()=>l,rc:()=>u});var a=r(92009),n=r(23154),s=r(77548);function o(e){const t={id:e.id,name:e.name},r=(0,n.Aq)(e.type);return r&&(t.layerType=r),t}async function i(e,t,r){let a;if(null==e?.layers||null==e?.tables){const n=await r.fetchServiceMetadata(t,{customParameters:l(e)?.customParameters});a=(0,s.G$)(),(e=e||{}).layers=e.layers||n?.layers?.map(o),e.tables=e.tables||n?.tables?.map(o)}return{data:e,preferredHost:a}}function l(e){if(!e)return null;const{layers:t,tables:r}=e;return t?.length?t[0]:r?.length?r[0]:null}function u(e,t){return null==t?null:[...e.layers||[],...e.tables||[]].find(e=>e.id===t)}function c(e,t){return[...e.layers||[],...e.tables||[]].filter(({layerType:e})=>e?t.includes(e):t.includes("ArcGISFeatureLayer"))}function y(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function p(e){switch(e){case"catalog":return["CatalogLayer"];case"feature":return["ArcGISFeatureLayer"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function d(e){switch(e){case"ArcGISAnnotationLayer":return"AnnotationLayer";case"ArcGISDimensionLayer":return"DimensionFeatureLayer";case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return"FeatureLayer"}async function f(e,t,r){if(!e?.url)return t??{};if(t??={},!t.layers){const a=await r.fetchServiceMetadata(e.url);t.layers=a.layers?.map(o)}const{serverUrl:n,portalItem:s}=await(0,a.L)(e.url,{sceneLayerItem:e,customParameters:l(t)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==n)return t.tables=[],t;if(!t.tables&&s){const e=await s.fetchData().catch(()=>null);if(e?.tables)t.tables=e.tables.map(o);else{const a=await r.fetchServiceMetadata(n,{customParameters:l(e)?.customParameters}).catch(()=>null);t.tables=a?.tables?.map(o)}}if(t.tables)for(const e of t.tables)e.url=`${n}/${e.id}`;return t}},8947(e,t,r){r.d(t,{L:()=>o});var a=r(60999),n=r(17676),s=r(67076);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const i=await(0,a.Ke)(o.populateFromStyle());if((0,n.Te)(r),!1===i.ok){const r=i.error;t?.messages&&t.messages.push(new s.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},7861(e,t,r){r.d(t,{L:()=>n});var a=r(11254);async function n(e,t){return(await(0,a.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3359,5740],{46130(e,t,r){r.d(t,{v:()=>n});var a=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},76553(e,t,r){function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},33359(e,t,r){r.d(t,{save:()=>E,saveAs:()=>U});var a=r(4576),n=(r(49186),r(71530)),o=r(60694),i=r(23154),s=r(77548),l=r(88788),c=r(10407);const u="Feature Service",y="feature-layer-utils",f=`${y}-save`,p=`${y}-save-as`;function d(e){return{isValid:(0,s.W_)(e)&&(!("dynamicDataSource"in e)||!e.dynamicDataSource),errorMessage:"Feature layer should be a layer or table in a map or feature service"}}function m(e,t){const r=(0,l.m)(e,"portal-item");return t?.isTable&&(r.layerContainerType="tables"),r}function h(e){const t=[],r=[];for(const{layer:a,layerJSON:n}of e)w(a)?r.push(n):t.push(n);return{layers:t,tables:r}}function w(e,t){return e.isTable}function L(e){return h([e])}async function b(e,t){return/\/\d+\/?$/.test(e.url)?L(t[0]):async function(e,t){if(e.reverse(),!t)return h(e);const a=await async function(e,t){let a=await e.fetchData("json");if(function(e){return!!(e&&Array.isArray(e.layers)&&Array.isArray(e.tables))}(a)&&!(0,c.Y)(e,c.mm.HOSTED_SERVICE))return a;a||={},function(e){e.layers||=[],e.tables||=[]}(a);const{layer:{url:n,customParameters:o,apiKey:s}}=t[0];return await async function(e,t,a){const{url:n,customParameters:o,apiKey:s}=t,{serviceJSON:l,layersJSON:c}=await(0,i.QM)(n,{customParameters:o,apiKey:s}),u=v(e.layers,l.layers,a),y=v(e.tables,l.tables,a);e.layers=u.itemResources,e.tables=y.itemResources;const f=[...u.added,...y.added],p=c?[...c.layers,...c.tables]:[];await async function(e,t,a,n){const o=await async function(e){const t=[];e.forEach(({type:e})=>{switch((0,i.KU)(e)){case"AnnotationLayer":t.push(r.e(8155).then(r.bind(r,88155)).then(e=>e.default));break;case"CatalogLayer":t.push(Promise.all([r.e(1214),r.e(893),r.e(3636),r.e(9279)]).then(r.bind(r,83508)).then(e=>e.default));break;case"DimensionFeatureLayer":t.push(r.e(1847).then(r.bind(r,41847)).then(e=>e.default));break;case"FeatureLayer":t.push(Promise.all([r.e(9953),r.e(1214),r.e(1017),r.e(3781),r.e(4342)]).then(r.bind(r,53781)).then(e=>e.default));break;case"OrientedImageryLayer":t.push(Promise.all([r.e(9953),r.e(1214),r.e(1017),r.e(3781),r.e(2293)]).then(r.bind(r,16852)).then(e=>e.default))}});const a=await Promise.all(t),n=new Map;return e.forEach(({type:e},t)=>{n.set(e,a[t])}),n}(t),s=t.map(({id:e,type:t})=>new(o.get(t))({url:a,layerId:e,sourceJSON:n.find(({id:t})=>t===e)}));await Promise.allSettled(s.map(e=>e.load())),s.forEach(t=>{const{layerId:r,loaded:a,defaultPopupTemplate:n}=t;if(!a||null==n)return;const o={id:r,popupInfo:n.toJSON()};I(t,"ArcGISFeatureLayer"===t.operationalLayerType?o:{...o,layerType:t.operationalLayerType},e)})}(e,f,n,p)}(a,{url:n??"",customParameters:o,apiKey:s},t.map(e=>e.layer.layerId)),a}(t,e);for(const t of e)I(t.layer,t.layerJSON,a);return function(e,t){const r=[],a=[];for(const{layer:e}of t){const{isTable:t,layerId:n}=e;t?a.push(n):r.push(n)}g(e.layers,r),g(e.tables,a)}(a,e),a}(t,e)}function g(e,t){if(e.length<2)return;const r=[];for(const{id:t}of e)r.push(t);(0,a.aI)(r.sort(S),t.slice().sort(S))&&e.sort((e,r)=>{const a=t.indexOf(e.id),n=t.indexOf(r.id);return a<n?-1:a>n?1:0})}function S(e,t){return e<t?-1:e>t?1:0}function v(e,t,r){const n=(0,a.iv)(e,t,(e,t)=>e.id===t.id);e=e.filter(e=>!n.removed.some(t=>t.id===e.id));const o=n.added;return o.forEach(({id:t})=>{e.push({id:t})}),{itemResources:e,added:o.filter(({id:e})=>!r.includes(e))}}function I(e,t,r){e.isTable?A(r.tables,t):A(r.layers,t)}function A(e,t){const r=e.findIndex(({id:e})=>e===t.id);-1===r?e.push(t):e[r]=t}function T(e){if(!("layerType"in e))return!!e.charts?.length;switch(e.layerType){case"OrientedImageryLayer":return!!e.charts?.length;case"SubtypeGroupLayer":return!!e.layers.some(e=>!!e.charts?.length);case"SubtypeGroupTable":return!!e.tables.some(e=>!!e.charts?.length);case"CatalogLayer":return!!e.footprintLayer?.charts?.length}}function P(e,t){let r=0,a=0,n=0,o=0;for(const e of[...t.layers,...t.tables])if(T(e)&&o++,"layerType"in e)switch(e.layerType){case"OrientedImageryLayer":r++;break;case"SubtypeGroupLayer":a++;break;case"SubtypeGroupTable":n++}(0,c.Sm)(e,c.mm.ORIENTED_IMAGERY_LAYER,r>0),(0,c.Sm)(e,c.mm.SUBTYPE_GROUP_LAYER,a>0),(0,c.Sm)(e,c.mm.SUBTYPE_GROUP_TABLE,n>0),(0,c.Sm)(e,c.mm.CHARTS,o>0)}function O(e,t,r){P(t,r)}async function N(e,t,r){const{url:a,layerId:n,title:i,fullExtent:s,isTable:l}=e,u=(0,o.qg)(a);t.url=("FeatureServer"===u?.serverType?a:`${a}/${n}`)??null,t.title||=i,t.extent=null,l||null==s||(t.extent=await(0,c.sQ)(s)),function(e,t,r){(0,c.OM)(t,c.mm.METADATA),(0,c.Sm)(t,c.mm.MULTI_LAYER,e.length>1),(0,c.Sm)(t,c.mm.SINGLE_LAYER,1===e.length),(0,c.Sm)(t,c.mm.TABLE,r.tables.length>0&&0===r.layers.length),P(t,r)}([e],t,r)}async function E(e,t){return(0,n.UN)({layer:e,itemType:u,validateLayer:d,createJSONContext:t=>m(t,e),createItemData:(e,t)=>b(t,[e]),errorNamePrefix:f,setItemProperties:O},t)}async function U(e,t,r){return(0,n.Uh)({layer:e,itemType:u,validateLayer:d,createJSONContext:t=>m(t,e),createItemData:(e,t)=>Promise.resolve(L(e)),errorNamePrefix:p,newItem:t,setItemProperties:N},r)}},71530(e,t,r){r.d(t,{UN:()=>L,Uh:()=>b});var a=r(49186),n=r(46130),o=r(20655),i=r(80812),s=r(88788),l=r(10407),c=r(26121);async function u(e){const{layer:t,errorNamePrefix:r,validateLayer:n}=e;await t.load(),function(e,t,r){const n=r(e);if(!n.isValid)throw new a.A(`${t}:invalid-parameters`,n.errorMessage,{layer:e})}(t,r,n)}function y(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function f(e){const{item:t,errorNamePrefix:r,layer:n,validateItem:o}=e;if(function(e){const{item:t,itemType:r,additionalItemType:n,errorNamePrefix:o,layer:i}=e,s=[r];if(n&&s.push(n),!s.includes(t.type)){const e=s.map(e=>`'${e}'`).join(", ");throw new a.A(`${o}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:i})}}(e),o){const e=o(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:n})}}function p(e){const{layer:t,errorNamePrefix:r}=e,{portalItem:n}=t;if(!n)throw new a.A(`${r}:portal-item-not-set`,y(t,"requires the portalItem property to be set"));if(!n.loaded)throw new a.A(`${r}:portal-item-not-loaded`,y(t,"cannot be saved to a portal item that does not exist or is inaccessible"));f({...e,item:n})}function d(e){const{newItem:t,itemType:r}=e;let a=i.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=o.A.getDefault(),f({...e,item:a}),a}function m(e){return(0,s.m)(e,"portal-item")}async function h(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,c.ci)(t,{errorName:"layer-write:unsupported"},r),a}function w(e){(0,l.LG)(e,l.mm.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}async function L(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:i,saveResources:s,supplementalUnsupportedErrors:l}=e;await u(e),p(e);const c=r.portalItem,y=o?o(c):m(c),f=await h(r,y,{...t,supplementalUnsupportedErrors:l}),d=await a({layer:r,layerJSON:f},c);return await(i?.(r,c,d)),w(c),await c.update({data:d}),(0,n.v)(y),await(s?.(c,y)),c}async function b(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:i,saveResources:s,supplementalUnsupportedErrors:l}=e;await u(e);const c=d(e),y=o?o(c):m(c),f=await h(r,y,{...t,supplementalUnsupportedErrors:l}),p=await a({layer:r,layerJSON:f},c);return await i(r,c,p),w(c),await async function(e,t,r){const a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(c,p,t),r.portalItem=c,(0,n.v)(y),await(s?.(c,y)),c}},23154(e,t,r){r.d(t,{Aq:()=>d,KU:()=>p,QM:()=>i});var a=r(77548),n=r(7861);const o=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,t){const{loadContext:r,...o}=t||{},i=r?await r.fetchServiceMetadata(e,o):await(0,n.L)(e,o),s=(0,a.G$)();f(i),c(i);const l={serviceJSON:i,preferredHost:s};if((i.currentVersion??0)<10.5)return l;const u=`${(0,a.$x)()??e}/layers`,y=r?await r.fetchServiceMetadata(u,o):await(0,n.L)(u,o);return f(y),c(y),l.layersJSON={layers:y.layers,tables:y.tables},l}function s(e){const{type:t}=e;return!!t&&o.has(t)}function l(e){return"Table"===e.type}function c(e){e.layers=e.layers?.filter(s),e.tables=e.tables?.filter(l)}function u(e){e.type||="Feature Layer"}function y(e){e.type||="Table"}function f(e){e.layers?.forEach(u),e.tables?.forEach(y)}function p(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationLayer"}return"FeatureLayer"}function d(e){switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer"}return null}},88788(e,t,r){r.d(t,{m:()=>i,v:()=>o});var a=r(84952),n=r(20655);function o(e,t){return{...s(e,t),readResourcePaths:[]}}function i(e,t,r){const n=(0,a.An)(e.itemUrl);return{...s(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function s(e,t){return{origin:t,url:(0,a.An)(e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}},7861(e,t,r){r.d(t,{L:()=>n});var a=r(11254);async function n(e,t){return(await(0,a.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},26121(e,t,r){r.d(t,{I6:()=>l,ci:()=>s,dL:()=>i});var a=r(49186),n=r(77548),o=r(59923);async function i(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function s(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new a.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>(0,o.GL)("url",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter(({name:e})=>!(o.MG.has(e)||t.includes(e)))),a&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}function l(e){return(0,n.qd)(e).some(e=>!!e.charts?.length)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8732],{35982(e,t,a){a.d(t,{B:()=>c});var i=a(4576),r=a(71511),n=a(36563),l=a(53966),s=a(97768),o=a(17676),_=a(83027);class c{constructor(e,t,a,i,r={}){this._mainMethod=t,this._transferLists=a,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,_.h)(e,{...r,schedule:i}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{r.hasInitialize&&e.invoke("initialize",{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>l.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const a=new h(e,t);return this._listeners.push(a),this._connectListener(a),(0,n.hA)(()=>{(0,i.TF)(this._listeners,a),a.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,s.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,a){return this.invokeMethod(this._mainMethod,e,t,a)}invokeMethod(e,t,a,i){if(this._thread){const r=this._transferLists[e],n=r?r(t):[];return this._thread.invoke(e,t,{transferList:n,signal:a,jobPriority:i})}return this._promise?this._promise.then(()=>((0,o.Te)(a),this.invokeMethod(e,t,a))):Promise.reject((0,o.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(d):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,o.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class h{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new r.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function d(){}},81354(e,t,a){a.d(t,{A:()=>V});var i=a(5482),r=a(4576),n=a(66552),l=a(25482),s=a(86211),o=a(67076),_=a(91429);const c=[3855,31,14,540,18,735,2,19,23,80,19,261,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,80,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,30,2,12,18,1,1,1,1,1,1,1,1,1,1,1,1,1,67,189,1,1,46,1,1,1,1,1,1,1,1,1,170,1,1,1,278,1,1,1,1,1,1,3,46,1,1,221,530,1,204,1,47,1,7,125,5,2,2,47,1,1,72,6,8,3,71,1,1,1,36,139,38,1,90,1,76,241,15,1,150,40,23,7,219,115,10,19,5,8,1,15,32,16,38,1,2,1,1,1,1,1,1,1,1,1,1,49,7,13,179,1,12,3,3,3,3,6,40,1,201,4,223,1,39,159,3,1,1,128,1,1,1,62,1,1,1,1,1,13,23,54,7,1,28,62,23,137,18,71,10,158,8843,34,1,1,85565,1,1,1,1,1,1,1,92,1,1,1,1,86,1,1,1,1,1,1,1,1,1,9901,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1],h=[287,1,2,4,15,107,3,143],d=[10,1,13,1,1,1,12,1,6,1,18,1,4,1,49,1,11,1,1,7,5,1,15,3,29,1,2,1,1,1,5,1,13,2,24,1,6,2,1,1,7,6,3,3,287],u=["Meter","Foot","Foot_US","Foot_British_1936"],m=[1,.3048,.3048006096012192,.3048007491],p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],g=["EGM2008_Geoid","Fao_1979","N2000","New_Zealand_Vertical_Datum_2009","Dunedin_Bluff_1960","Korean_Vertical_Datum_1964","Trieste","Genoa","Sri_Lanka_Vertical_Datum","Faroe_Islands_Vertical_Reference_2009","Black_Sea","Fehmarnbelt_Vertical_Reference_2010","Nivellement_General_de_Polynesie_Francaise","IGN_1966","Moorea_SAU_1981","Raiatea_SAU_2001","Maupiti_SAU_2001","Huahine_SAU_2001","Tahaa_SAU_2001","Bora_Bora_SAU_2001","International_Great_Lakes_Datum_1955","International_Great_Lakes_Datum_1985","Croatian_Vertical_Reference_System_1971","Caspian_Sea","Baltic_Sea","Rikets_Hojdsystem_2000","KOC_Well_Datum","Rikets_Hojdsystem_1900","IGN_1988_LS","IGN_1988_MG","IGN_1992_LD","IGN_1988_SB","IGN_1988_SM","European_Vertical_Reference_Frame_2007","Ordnance_Datum_Newlyn","National_Geodetic_Vertical_Datum_1929","North_American_Vertical_Datum_1988","Yellow_Sea_1956","Normaal_Amsterdams_Peil","Oostende","Australian_Height_Datum","Australian_Height_Datum_Tasmania","Canadian_Geodetic_Vertical_Datum_of_1928","Mean_Sea_Level","Piraeus_Harbour_1986","Helsinki_1960","Rikets_Hojdsystem_1970","Nivellement_General_de_la_France_Lallemand","Nivellement_General_de_la_France_IGN69","Nivellement_General_de_la_France_IGN78","Maputo","Japanese_Standard_Levelling_Datum_1969","PDO_Height_Datum_1993","Fahud_Height_Datum","Ha_Tien_1960","Hon_Dau_1992","Landesnivellement_1902","Landeshohennetz_1995","European_Vertical_Reference_Frame_2000","Malin_Head","Belfast","Dansk_Normal_Nul","AIOC_1995","Yellow_Sea_1985","Hong_Kong_Principal_Datum","Hong_Kong_Chart_Datum","Ordnance_Datum_Newlyn_Orkney_Isles","Fair_Isle","Lerwick","Foula","Sule_Skerry","North_Rona","Stornoway","St_Kilda","Flannan_Isles","St_Marys","Douglas","Fao","Bandar_Abbas","Nivellement_General_de_Nouvelle_Caledonie","Poolbeg","Nivellement_General_Guyanais_1977","IGN_1987","IGN_1988","IGN_1989","Auckland","Bluff","Dunedin","Gisborne","Lyttelton","Moturiki","Napier","Nelson","One_Tree_Point","Tararu","Taranaki","Wellington","Chatham_Island","Stewart_Island","EGM96_Geoid","Nivellement_General_du_Luxembourg","Antalya","Norway_Normal_Null_1954","Durres","Gebrauchshohen_Adria","Slovenian_Vertical_System_2000","Cascais","Constanta","Alicante","Deutsches_Haupthoehennetz_1992","Deutsches_Haupthoehennetz_1985","SNN76","Baltic_1982","Baltic_1980","Kuwait_PWD","KOC_Construction_Datum","Nivellement_General_de_la_Corse_1948","Danger_1950","Mayotte_1950","Martinique_1955","Guadeloupe_1951","Lagos_1955","EGM84_Geoid","Dansk_Vertikal_Reference_1990_ensemble","Sea_Level","Ras_Ghumays","Lowest_Astronomic_Tide","Lower_Low_Water_Large_Tide","Indian_Spring_Low_Water","Mean_Lower_Low_Water_Spring_Tides","Mean_Low_Water_Spring_Tides","Mean_Lower_Low_Water","Mean_Low_Water","Mean_High_Water","Mean_Higher_High_Water","Mean_High_Water_Spring_Tides","Higher_High_Water_Large_Tide","Highest_Astronomic_Tide","Low_Water","High_Water","Norway_Normal_Null_2000","Grand_Cayman_Vertical_Datum_1954","Little_Cayman_Vertical_Datum_1961","Cayman_Brac_Vertical_Datum_1961","Cais_da_Pontinha-Funchal","Cais_da_Vila-Porto_Santo","Cais_das_Velas","Horta","Cais_da_Madalena","Santa_Cruz_da_Graciosa","Cais_da_Figueirinha-Angra_do_Heroismo","Santa_Cruz_das_Flores","Cais_da_Vila_do_Porto","Ponta_Delgada","Tutuila_Vertical_Datum_of_1962","Guam_Vertical_Datum_of_1963","Northern_Marianas_Vertical_Datum_of_2003","Puerto_Rico_Vertical_Datum_of_2002","Virgin_Islands_Vertical_Datum_of_2009","American_Samoa_Vertical_Datum_of_2002","Guam_Vertical_Datum_of_2004","Canadian_Geodetic_Vertical_Datum_of_2013","Japanese_Standard_Levelling_Datum_1972","Japanese_Geodetic_Datum_2000_vertical","Japanese_Geodetic_Datum_2011_vertical","Singapore_Height_Datum","Famagusta_1960","Papua_New_Guinea_2008","Kumul_34","Kiunga","Deutsches_Haupthoehennetz_1912","Latvian_Height_System_2000","Ordnance_Datum_Newlyn_(Offshore)","Port_Moresby_1996","Deutsches_Haupthoehennetz_2016","New_Zealand_Vertical_Datum_2016","Port_Moresby_2008","Jamestown_1971","St_Helena_Tritan_Vertical_Datum_2011","St_Helena_Vertical_Datum_2015","Landshaedarkerfi_Islands_2004","Greenland_Vertical_Reference_2000","Greenland_Vertical_Reference_2016","Baltic_1957","Macao_Height_Datum","Helsinki_1943","Slovenian_Vertical_System_2010","Serbian_Vertical_Reference_System_2012","MOMRA_Vertical_Geodetic_Control","Wiener_Null","Taiwan_Vertical_Datum_2001","Datum_Altimetrico_de_Costa_Rica_1952","IGN_2008_LD","Canadian_Geodetic_Vertical_Datum_of_2013_CGG2013a","Sistema_de_Referencia_Vertical_Nacional_2016","European_Vertical_Reference_Frame_2000_Austria","South_Africa_Land_Levelling_Datum","Lowest_Astronomical_Tide_Netherlands","Mean_Sea_Level_Netherlands","HS2_Vertical_Reference_Frame","Kingdom_of_Saudi_Arabia_Vertical_Reference_Frame_Jeddah_2014","Nivellement_General_de_Nouvelle_Caledonie_2008","European_Vertical_Reference_Frame_2019","European_Vertical_Reference_Frame_2019_mean_tide","Mallorca","Menorca","Ibiza","Lanzarote","Fuerteventura","Gran_Canaria","Tenerife","La_Gomera","La_Palma","El_Hierro","Ceuta_2","British_Isles_height_ensemble","Australian_Vertical_Working_Surface","Indonesian_Geoid_2020","Baltic_1986","European_Vertical_Reference_Frame_2007_Poland","Estonian_Height_System_2000","Lithuanian_Height_System_2007","Bulgarian_Height_System_2005","Norwegian_Chart_Datum","Local_Tidal_Datum_at_Pago_Pago_2020","National_Vertical_Datum_1992","Catania_1965","Cagliari_1956","GNTRANS","GNTRANS2016","Mean_Sea_Level_UK_Ireland_VORF08","Chart_Datum_UK_Ireland_VORF08","Nivellement_General_de_l_Algerie_2022","Chart_Datum_Portugal","Formentera","Alboran","Melilla","Dansk_Vertikal_Reference_1990","Dansk_Vertikal_Reference_1990_(2002)","Dansk_Vertikal_Reference_1990_(2013)","Dansk_Vertikal_Reference_1990_(2023)","Denmark_Mean_Sea_Level_(2022)","Denmark_Lowest_Astronomical_Tide_(2022)","Denmark_Mean_Sea_Level_(2023)","Denmark_Lowest_Astronomical_Tide_(2023)","Denmark_Mean_Sea_Level","Denmark_Lowest_Astronomical_Tide","Greenland_Local_Mean_Sea_Level_(2022)","Canadian_Geodetic_Vertical_Datum_of_1928_(Height_Transformation_version_2_0)","Saba_Vertical_Datum","Greenland_Mean_Sea_Level_(2023)","Greenland_Lowest_Astronomic_Tide_(2023)","Baltic_Sea_Chart_Datum_2000","Sint_Eustatius_Vertical_Datum","Bonaire_Vertical_Datum","Asse_vertical_datum_2025","Derived_California_Orthometric_Heights_of_1988_epoch_2025","London_Survey_Grid_height_datum","Svalbard_vertical_datum_2024","IGN_2023_Mayotte","Svalbard_vertical_datum_2006","Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_2002","Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_1997","Indonesian_Geoid_2020_version_2","Hellenic_Vertical_Datum","WGS_1984","Red_Espanola_de_Nivelacion_de_Alta_Precision","Japanese_Geodetic_Datum_2024_vertical","GRS_1980","WGS_1984_Geoid","Mean_Sea_Level_Hawaii","Qatari_Vertical_Datum","International_1924","CGCS2000","Bessel_1841","Krasovsky_1940","Everest_Adjustment_1937","Clarke_1866","PZ_1990","Unknown_height_system_(meters)","Unknown_height_system_(US_survey_feet)","Unknown_height_system_(Intl_feet)","GSK-2011","Australian","NWL_9D","WGS_1972"],y=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,24,23,38,39,40,41,42,43,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,10,37,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,26,115,116,117,118,119,120,121,62,122,123,124,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,36,36,35,36,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,80,35,64,26,43,43,43,43,180,36,181,182,183,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,265,265,268,268,269,123,25,36,221,0,1,3,2,4,270,270,99,99,271,265,268,268,268,272,273,268,268,265,274,265,268,268,268,268,268,268,268,268,265,265,268,265,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,265,268,268,268,275,272,268,268,272,268,268,268,268,268,268,265,268,268,268,268,268,268,268,268,268,276,268,268,268,268,265,268,277,268,278,268,268,268,268,268,268,268,272,268,268,268,268,268,268,268,268,268,268,265,276,268,268,274,274,268,268,268,275,265,268,268,268,268,279,280,281,268,268,265,282,278,278,265,265,265,265,265,265,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,274,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,274,268,283,283,268,265,268,268,268,268,265,272,265,265,268,268,268,268,268,268,268,275,268,268,268,268,268,268,268,268,268,265,284,285,285,268,268,268,268,268,268,268,268,268,268,268,274,268,268,268,268,268,268,268,268,268,268,268,265,272,268,272,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268];function v(e){const t=[];let a=0;for(const i of e){for(let e=0;e<i;e++)t.push(a);a=1-a}return t}const f=function(){const e=function(e){const t=[];let a=0;for(const i of e)a+=i,t.push(a);return t}(c),t=v(h),a=v(d),i=u.map((e,t)=>({name:e,conversionFactor:m[t]})),r=new Map;for(let n=0;n<e.length;n++){const l=0===t[n]?0:1,s=0===a[n]?0:1,o=i[p[n]],_=g[y[n]];r.set(e[n],{type:l,direction:s,unit:o,datum:_})}return r}();var S,w=a(43937),C=a(36005);const D=(0,n.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),M=D.jsonValues.slice();(0,r.Xy)(M,"orthometric");const L=(0,n.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let V=S=class extends l.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,a){return D.write(e,t,a)}readHeightModel(e,t,a){return D.read(e)||(a?.messages&&a.messages.push(function(e,t){return new o.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:a})),null)}readHeightUnit(e,t,a){return L.read(e)||(a?.messages&&a.messages.push(G(e,{context:a})),null)}readHeightUnitService(e,t,a){return(0,s.LA)(e)||L.read(e)||(a?.messages&&a.messages.push(G(e,{context:a})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new S({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const a=(0,s.k1)(t);return new S({heightModel:e.heightModel,heightUnit:a??void 0,vertCRS:e.vertCRS})}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:a}=e;if(!a)return null;const i=(null!=t?f.get(t):null)??f.get(a);return i?new S({heightModel:0===i.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,s.LA)(i.unit.name),vertCRS:i.datum}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new S;return t.read(e,{origin:"web-scene"}),t}};function G(e,t){return new o.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i.Cg)([(0,_.MZ)({type:D.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:M,default:"ellipsoidal",write:{isRequired:!0}}}}})],V.prototype,"heightModel",void 0),(0,i.Cg)([(0,w.K)("web-scene","heightModel")],V.prototype,"writeHeightModel",null),(0,i.Cg)([(0,C.w)(["web-scene","service"],"heightModel")],V.prototype,"readHeightModel",null),(0,i.Cg)([(0,_.MZ)({type:L.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:L.jsonValues,write:{writer:L.write,isRequired:!0}}}}})],V.prototype,"heightUnit",void 0),(0,i.Cg)([(0,C.w)("web-scene","heightUnit")],V.prototype,"readHeightUnit",null),(0,i.Cg)([(0,C.w)("service","heightUnit")],V.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,_.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],V.prototype,"vertCRS",void 0),(0,i.Cg)([(0,C.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],V.prototype,"readVertCRS",null),V=S=(0,i.Cg)([(0,_.$K)("esri.geometry.HeightModelInfo")],V)},38732(e,t,a){a.r(t),a.d(t,{default:()=>L});var i=a(5482),r=a(11254),n=a(49186),l=a(97768),s=a(25728),o=a(17676),_=a(84952),c=a(91429),h=a(81354),d=a(4146),u=a(89186),m=a(18768),p=a(34287),g=a(8303),y=a(10873),v=a(87378),f=a(35982);class S extends f.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,a){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},a):Promise.resolve(null)}release(){--this.ref<=0&&(w.forEach((e,t)=>{e===this&&w.delete(t)}),this.destroy())}}const w=new Map;var C=a(36005);let D=class extends((0,u.f)((0,m.b)((0,p.q)((0,g.A)((0,s.M)(d.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=w.get(e);return t||(null!=e?(t=new S(t=>e.immediate.schedule(t)),w.set(e,t)):(t=new S,w.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,l.Gz)(this._lercDecoder)}readCapabilities(e,t){const a=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return a?{operations:{supportsTileMap:a.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}readVersion(e,t){let a=t.currentVersion;return a||(a=9.3),a}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(o.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,t,a,i){const l=i?.signal,s={responseType:"array-buffer",signal:l,useQueue:i?.useQueue,priority:i?.priority},o={noDataValue:i?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,t,a,i);const _=await(0,r.A)(this.getTileUrl(e,t,a),s),c=await this._lercDecoder.decode(_.data,o,l);if(!c)throw new n.A("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new v.A({values:c.pixelData,width:c.width,height:c.height,noDataValue:c.noDataValue})}getTileUrl(e,t,a){const i=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,r=(0,_.x0)({...this.parsedUrl.query,blankTile:!i&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${a}${r?"?"+r:""}`}async queryElevation(e,t){const{query:i}=await a.e(91).then(a.bind(a,90091));return(0,o.Te)(t),i(this,e,t)}async createElevationSampler(e,t){const{createSampler:i}=await a.e(91).then(a.bind(a,90091));return(0,o.Te)(t),i(this,e,t)}_fetchTileAvailability(e,t,a,i){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,a,i):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},a=await(0,r.A)(this.parsedUrl.path,t);a.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=a.data,this.read(a.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[M]}};(0,i.Cg)([(0,c.MZ)({readOnly:!0})],D.prototype,"capabilities",void 0),(0,i.Cg)([(0,C.w)("service","capabilities",["capabilities"])],D.prototype,"readCapabilities",null),(0,i.Cg)([(0,c.MZ)({json:{read:{source:"copyrightText"}}})],D.prototype,"copyright",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0,type:h.A})],D.prototype,"heightModelInfo",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],D.prototype,"path",void 0),(0,i.Cg)([(0,c.MZ)({type:["show","hide"]})],D.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],D.prototype,"minScale",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],D.prototype,"maxScale",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],D.prototype,"opacity",void 0),(0,i.Cg)([(0,c.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],D.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)()],D.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],D.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)(y.OZ)],D.prototype,"url",void 0),(0,i.Cg)([(0,c.MZ)()],D.prototype,"version",void 0),(0,i.Cg)([(0,C.w)("version",["currentVersion"])],D.prototype,"readVersion",null),D=(0,i.Cg)([(0,c.$K)("esri.layers.ElevationLayer")],D);const M=Symbol("default-fetch-tile");D.prototype.fetchTile[M]=!0;const L=D},89186(e,t,a){a.d(t,{f:()=>c});var i=a(5482),r=a(91429),n=a(16930),l=a(87045),s=a(65509),o=a(25943),_=a(36005);const c=e=>{const t=e;let a=class extends t{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,a){const i=t.capabilities?.toLowerCase().includes("tilemap");let{minLOD:r,maxLOD:n,minScale:_,maxScale:c}=t;if(null==r&&null==n&&(0!==_||0!==c)){const e=e=>Math.round(1e4*e)/1e4;_=e(_||t.tileInfo.lods[0].scale),c=e(c||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const a of t.tileInfo.lods){const t=e(a.scale);r=t>=_?a.level:r,n=t>=c?a.level:n}}if(i)return new o.d({layer:this,minLOD:r,maxLOD:n});if(t.tileInfo){const e=new l.A;return e.read(t.tileInfo,a),new s.A(e,r,n)}return null}};return(0,i.Cg)([(0,r.MZ)({json:{read:{source:"copyrightText"}}})],a.prototype,"copyright",void 0),(0,i.Cg)([(0,r.MZ)()],a.prototype,"minScale",void 0),(0,i.Cg)([(0,_.w)("service","minScale")],a.prototype,"readMinScale",null),(0,i.Cg)([(0,r.MZ)()],a.prototype,"maxScale",void 0),(0,i.Cg)([(0,_.w)("service","maxScale")],a.prototype,"readMaxScale",null),(0,i.Cg)([(0,r.MZ)({type:n.A})],a.prototype,"spatialReference",void 0),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],a.prototype,"supportsBlankTile",null),(0,i.Cg)([(0,r.MZ)({type:l.A})],a.prototype,"tileInfo",void 0),(0,i.Cg)([(0,r.MZ)()],a.prototype,"tilemapCache",void 0),(0,i.Cg)([(0,_.w)("service","tilemapCache",["capabilities","tileInfo"])],a.prototype,"readTilemapCache",null),(0,i.Cg)([(0,r.MZ)()],a.prototype,"version",void 0),a=(0,i.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISCachedService")],a),a}},18768(e,t,a){a.d(t,{b:()=>s});var i=a(5482),r=a(53966),n=a(91429),l=a(60694);const s=e=>{const t=e;let a=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Jf)(e,r.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],a.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],a.prototype,"url",null),a=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],a),a}},87378(e,t,a){a.d(t,{A:()=>s});var i,r=a(34275),n=a(56507);const l=Symbol("ElevationTileDataClass");class s{static{i=l}constructor({values:e,width:t,height:a,noDataValue:n}){this[i]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,r.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=a,this.noDataValue=n}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let a=1/0,i=-1/0,r=!0;for(const n of t)n===e?this._hasNoDataValues=!0:(a=n<a?n:a,i=n>i?n:i,r=!1);r?(this._minValue=0,this._maxValue=0):(this._minValue=a,this._maxValue=i>-3e38?i:0)}static{this.from=(0,n.qf)(s)}}},65509(e,t,a){a.d(t,{A:()=>n});var i=a(49186),r=a(17676);class n{constructor(e,t=0,a=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=a,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(a)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,a){const i=this.tileInfo?.lodAt(e);return!i||e<this.minLOD||e>this.maxLOD?"unavailable":i.cols&&i.rows?a>=i.cols[0]&&a<=i.cols[1]&&t>=i.rows[0]&&t<=i.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,a,n){await(0,r.NO)(n);const l=this.getAvailability(e,t,a);if("unavailable"===l)throw new i.A("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:a});return l}async fetchAvailabilityUpsample(e,t,a,i,n){await(0,r.NO)(n),i.level=e,i.row=t,i.col=a;const l=this.tileInfo;return l.updateTileInfo(i),this.fetchAvailability(e,t,a,n).catch(e=>{if((0,r.zf)(e))throw e;if(l.upsampleTile(i))return this.fetchAvailabilityUpsample(i.level,i.row,i.col,i,n);throw e})}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7548],{4146(e,t,n){n.d(t,{A:()=>b});var r=n(5482),i=n(11254),l=n(49186),o=n(65529),a=n(4902),s=n(92474),u=n(53966),c=n(17676),p=n(84952),d=n(91429),y=n(5443),g=n(16930),f=n(92602),h=n(79677);let m=0,b=class extends((0,o.Zt)((0,a.s)(s.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+m++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([n.e(812),n.e(7982)]).then(n.bind(n,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await Promise.all([n.e(812),n.e(5613),n.e(909)]).then(n.bind(n,45613));try{return await r(t)}catch(e){const n=t?.portalItem,r=n?.id||"unset",i=n?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new l.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new l.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r.Cg)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,r.Cg)([(0,d.MZ)({type:y.A})],b.prototype,"fullExtent",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,r.Cg)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,r.Cg)([(0,d.MZ)({type:g.A})],b.prototype,"spatialReference",void 0),(0,r.Cg)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,r.Cg)([(0,d.MZ)()],b.prototype,"url",void 0),(0,r.Cg)([(0,d.MZ)({type:h.A})],b.prototype,"visibilityTimeExtent",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,r.Cg)([(0,d.$K)("esri.layers.Layer")],b)},77548(e,t,n){n.d(t,{Gh:()=>k,tk:()=>S,BR:()=>Z,p2:()=>M,qd:()=>D,wI:()=>E,G$:()=>L,$x:()=>j,Ov:()=>w,cM:()=>d,UC:()=>y,W_:()=>v,Qz:()=>g,OP:()=>U,TU:()=>b,F2:()=>f,XX:()=>m,Qi:()=>C,jy:()=>A});var r=n(70333),i=n(11254),l=n(7762),o=(n(84952),n(36563)),a=n(36708),s=n(4146);const u=new WeakMap;function c(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof s.A)&&("catalog-dynamic-group"===t.type||c(t))},t=>u.set(e,t),a.pc),(0,o.hA)(()=>u.delete(e))]),u.get(e))}function p(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function d(e){return p(e,"knowledge-graph")&&"layers"in e}function y(e){return p(e,"knowledge-graph-sublayer")}function g(e){return p(e,"link-chart")&&"layers"in e}function f(e){return p(e,"subtype-group")&&"sublayers"in e}function h(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}n(16215);const m={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function w(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function v(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t||"annotation"===t||"dimension-feature"===t)&&"feature-layer"===e?.source?.type}function C(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function A(e){return function(e){return p(e,"catalog-footprint")}(e)||function(e){return p(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return p(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function T(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!A(e))return;const n=t?.graphic,r="featureReduction"in e?e.featureReduction:null;if(n){if(n.isAggregate){const e=n.origin;return e&&"featureReductionProvider"in e&&r?T(r)?r:null:void 0}return e}return t?.checkFeatureReduction&&r?T(r)?r:null:e}async function E(e,t){const n=r.id?.findServerInfo(e);if(null!=n?.currentVersion)return n.owningSystemUrl||null;const l=e.toLowerCase().indexOf("/rest/services");if(-1===l)return null;const o=`${e.slice(0,l)}/rest/info`,a=null!=t?t.signal:null,{data:s}=await(0,i.A)(o,{query:{f:"json"},responseType:"json",signal:a});return s?.owningSystemUrl||null}function Z(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function S(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function D(e){const t=new l.A;for(const n of e.allLayers.concat(e.allTables))c(n)||h(n)||"annotation"===n.type||"dimension-feature"===n.type||("charts"in n&&t.push(n),"subtype-group"===n.type&&t.push(...n.sublayers));return t}function j(e,t){return null}function L(e){return null}function U(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function k(e,t){if(!t||!U(e))return;const n=(e.url,null);n&&(e.url=n)}},16215(e,t,n){n.d(t,{S:()=>i,Y:()=>r});const r=Symbol("BasemapInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}},79677(e,t,n){n.d(t,{A:()=>d});var r,i=n(5482),l=n(25482),o=n(88930),a=n(91429),s=n(98623),u=n(10184),c=n(36005),p=n(43937);let d=class extends l.o{static{r=this}static get allTime(){return y}static get empty(){return g}static fromArray(e){return new r({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===r&&n===i}expandTo(e,t=s.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let n=this.start;n&&(n=(0,o.lL)(n,new u.A({value:1,unit:e}),t));let i=this.end;if(i){const n=(0,o.lL)(i,new u.A({value:1,unit:e}),t);i=i.getTime()===n.getTime()?n:(0,o.S1)(n,1,e,t)}return new r({start:n,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,l=e.end?.getTime()??1/0;let o,a;return i>=t&&i<=n?o=i:t>=i&&t<=l&&(o=t),n>=i&&n<=l?a=n:l>=t&&l<=n&&(a=l),null==o||null==a||isNaN(o)||isNaN(a)?r.empty:new r({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(e,t,n=s.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const i=new r,{start:l,end:a}=this;return null!=l&&(i.start=(0,o.S1)(l,e,t,n)),null!=a&&(i.end=(0,o.S1)(a,e,t,n)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,n=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:n})}};(0,i.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i.Cg)([(0,c.w)("end")],d.prototype,"readEnd",null),(0,i.Cg)([(0,p.K)("end")],d.prototype,"writeEnd",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,c.w)("start")],d.prototype,"readStart",null),(0,i.Cg)([(0,p.K)("start")],d.prototype,"writeStart",null),d=r=(0,i.Cg)([(0,a.$K)("esri.time.TimeExtent")],d);const y=new d,g=new d({start:void 0,end:void 0})},10184(e,t,n){n.d(t,{A:()=>c});var r=n(5482),i=n(69540),l=n(25482),o=n(88930),a=n(91429),s=n(73133),u=n(93223);let c=class extends((0,i.OU)(l.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,r.Cg)([(0,u.e)(s.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,r.Cg)([(0,a.$K)("esri.time.TimeInterval")],c)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2293,4342],{46140(e,t,r){r.d(t,{A:()=>o});var i=r(49186);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){const[r,n]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new i.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!n?.match||!s.test(n))throw new i.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(n,10);return new o(a,l,t)}}},62815(e,t,r){r.d(t,{N:()=>a,d:()=>l});var i=r(86211),o=r(73941),n=r(21325),s=r(52006);function a(e,t,r){const i=l(t,r);if(1!==i)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const r of e.curvePaths)for(const e of r){const r=(0,s.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)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){if(e.curveRings)for(const r of e.curveRings)for(const e of r){const r=(0,s.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)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"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return}}function l(e,t){return null==e||null==t||t.vcsWkid||(0,n.aI)(e,t)||(0,o.xP)(e)||(0,o.xP)(t)?1:(0,i.G9)(e)/(0,i.G9)(t)}},16852(e,t,r){r.r(t),r.d(t,{default:()=>P});var i=r(5482),o=r(49186),n=r(4718),s=r(93637),a=r(91429),l=r(16930),p=r(55156),c=r(60950),u=r(89808),d=r(99959);const y=Symbol("isOrientedImageryGraphicOrigin");var f;class h extends d.A{get[(f=y,c.ym)](){return this.layer}get[p.e](){return this.layer}get[u.Q](){return this.layer}constructor(e){super(),this[f]=!0,this.type="oriented-imagery",this.layer=e}get id(){return this.layer.id}}var g=r(53781),m=r(82935),v=r(23281),w=r(20437),C=r(43440),M=r(79677);const b=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","imageGeometryField","imageReferenceField","referenceIDField","sequenceOrderField","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),j=new Set(["elevationSource"]),Z=(e,t)=>!b.has(t)&&e;function x(e,t,r,i){const{name:o,write:n,read:s}=((e,t,r)=>{const i=`orientedImageryProperties.${e}`,o={allowNull:j.has(e),ignoreOrigin:!0};return{name:i,write:t?{...o,target:i,writer:t}:o,read:r?{ignoreOrigin:!0,source:i,reader:r}:{ignoreOrigin:!0}}})(e,t,r),a={name:o,write:n,read:s,origins:{service:{name:`orientedImageryInfo.${o}`,write:t,read:r},"web-scene":{name:o,write:Z(n,e),read:Z(s,e)},"web-map":{name:o,write:n,read:s}}};return i&&a.origins?(a.type=i,a.origins["web-map"].type=i,a.origins["web-scene"].type=i,a):a}let S=class extends g.default{constructor(e){super(e),this.attributeTableTemplate=null,this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.graphicOrigin=new h(this),this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imageGeometryField="ImageGeometry",this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageReferenceField="OIObjectID",this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.referenceIDField="OBJECTID",this.sequenceOrderField="SequenceOrder",this.subtypeField=null,this.subtypes=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.useViewTime=!0,this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.verticalSearchRange=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.virtualCacheDirectory=null,this.dataStoreID=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:r}=this;return(0,v.eR)(e,t,r)}get effectiveSequenceOrderField(){const{sequenceOrderField:e,fields:t}=this;return(0,v.o)(e,t)}get fieldConfigurations(){return super.fieldConfigurations}set fieldConfigurations(e){super.fieldConfigurations=e}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}findFirstValidLayerId(e){return e.layers?.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new o.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};var T;(0,i.Cg)([(0,a.MZ)({type:C.A,json:{write:!1,read:!1}})],S.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:x("cameraHeading")})],S.prototype,"cameraHeading",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:x("cameraHeight")})],S.prototype,"cameraHeight",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:x("cameraPitch")})],S.prototype,"cameraPitch",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:x("cameraRoll")})],S.prototype,"cameraRoll",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:x("coveragePercent")})],S.prototype,"coveragePercent",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:x("demPathPrefix")})],S.prototype,"demPathPrefix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:x("demPathSuffix")})],S.prototype,"demPathSuffix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:x("depthImagePathPrefix")})],S.prototype,"depthImagePathPrefix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:x("depthImagePathSuffix")})],S.prototype,"depthImagePathSuffix",void 0),(0,i.Cg)([(0,a.MZ)({type:Object,json:x("elevationSource")})],S.prototype,"elevationSource",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],S.prototype,"effectiveElevationSource",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],S.prototype,"effectiveSequenceOrderField",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:x("farDistance")})],S.prototype,"farDistance",void 0),(0,i.Cg)([(0,a.MZ)({type:[w.A]})],S.prototype,"fields",void 0),(0,i.Cg)([(0,a.MZ)()],S.prototype,"geometryType",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0,clonable:!1})],S.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:x("horizontalFieldOfView")})],S.prototype,"horizontalFieldOfView",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:x("horizontalMeasurementUnit")})],S.prototype,"horizontalMeasurementUnit",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{...x("imageGeometryField"),default:"ImageGeometry"}})],S.prototype,"imageGeometryField",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:x("imagePathPrefix")})],S.prototype,"imagePathPrefix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:x("imagePathSuffix")})],S.prototype,"imagePathSuffix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{...x("imageReferenceField"),default:"OIObjectID"}})],S.prototype,"imageReferenceField",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:x("imageRotation")})],S.prototype,"imageRotation",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:x("maximumDistance")})],S.prototype,"maximumDistance",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:x("nearDistance")})],S.prototype,"nearDistance",void 0),(0,i.Cg)([(0,a.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],S.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,a.MZ)({json:{...x("orientationAccuracy",(e,t,r)=>{(0,s.sM)(r,e.join(";"),t)},e=>{const t=e?.split(";")?.map(Number);return(0,v.Qv)(t)?(0,v.Yp)(t):[0,0,0,0,0,0,0,0]},String)}})],S.prototype,"orientationAccuracy",void 0),(0,i.Cg)([(0,a.MZ)({json:{...x("orientedImageryType",v.fs.write,v.fs.read,v.fs.jsonValues.slice(1))}})],S.prototype,"orientedImageryType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{...x("referenceIDField"),default:"OBJECTID"}})],S.prototype,"referenceIDField",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{...x("sequenceOrderField"),default:"SequenceOrder"}})],S.prototype,"sequenceOrderField",void 0),(0,i.Cg)([(0,a.MZ)({type:l.A})],S.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],S.prototype,"subtypeField",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],S.prototype,"subtypes",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],S.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:v.RR.apiValues,json:{...x("timeIntervalUnit",v.RR.write,v.RR.read,v.RR.jsonValues)}})],S.prototype,"timeIntervalUnit",void 0),(0,i.Cg)([(0,a.MZ)((T=(0,n.o8)(m.B),T.json?(T.json.origins=T.json.origins??{},T.json.origins["web-scene"]={write:!1,read:!1},T):T))],S.prototype,"useViewTime",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:x("verticalFieldOfView")})],S.prototype,"verticalFieldOfView",void 0),(0,i.Cg)([(0,a.MZ)({type:v.l6.apiValues,json:{...x("verticalMeasurementUnit",v.l6.write,v.l6.read,v.l6.jsonValues)}})],S.prototype,"verticalMeasurementUnit",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:x("verticalSearchRange")})],S.prototype,"verticalSearchRange",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:x("videoPathPrefix")})],S.prototype,"videoPathPrefix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:x("videoPathSuffix")})],S.prototype,"videoPathSuffix",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.orientedImageryProperties.virtualCacheDirectory",read:!0}}}})],S.prototype,"virtualCacheDirectory",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.dsid",read:!0}}}})],S.prototype,"dataStoreID",void 0),(0,i.Cg)([(0,a.MZ)({type:M.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],S.prototype,"visibilityTimeExtent",void 0),S=(0,i.Cg)([(0,a.$K)("esri.layers.OrientedImageryLayer")],S);const P=S},32756(e,t,r){r.d(t,{Rr:()=>a,fY:()=>p,ne:()=>l});var i=r(5482),o=r(93637),n=r(91429),s=r(91880);function a(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const o=new s.A;return o.read(i,r),[o]}const l={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){const n=e.find(e=>!!e.field);n&&(0,o.sM)(r,[n.toJSON()],t)}}}},p=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,n.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OrderedLayer")],r),r}},63490(e,t,r){r.d(t,{E1:()=>p,Mr:()=>l,TH:()=>a});var i=r(5482),o=r(69540),n=r(25482),s=r(91429);let a=class extends((0,o.OU)(n.o)){constructor(){super(...arguments),this.url=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.constantElevation=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,i.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l);const p=e=>null!=e&&"number"==typeof e.constantElevation},23281(e,t,r){r.d(t,{eR:()=>b,Qv:()=>D,fs:()=>x,Yp:()=>N,o:()=>O,RR:()=>j,l6:()=>Z});var i=r(66552),o=(r(86211),r(28735),r(5482)),n=r(69540),s=r(25482),a=r(91429),l=r(69622),p=r(21325);let c=class extends l.A{set horizontalWKID(e){e?(0,p.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,p.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1&&!Number.isNaN(t)&&r?.length>1&&i?.length>1&&o?.length>1}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"focalLength",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"horizontalWKID",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"verticalWKID",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"x",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"y",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"z",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"type",void 0),c=(0,o.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],c);const u=c;let d=class extends((0,n.OU)((0,s.T)(u))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:c,principalOffsetPoint:u,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,f=[e,t,r,i,o,n,s,a,l];return this.isAdvanced&&(p?.forEach(e=>f.push(e)),f.push(c),u?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),y?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"focalLength",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"heading",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pitch",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"roll",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"x",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"y",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"z",void 0),d=(0,o.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],d);const y=d;let f=class extends((0,n.OU)((0,s.T)(u))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:n}=this,s=`${n}`.split("|");return s.splice(1,1),`${e}|${t}|${r}|${i}|${o}|${s.join("|")}`}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"latitude",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"longitude",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"ellipsoidRadius",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"squaredEccentricity",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"properties",void 0),f=(0,o.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],f);const h=f;let g=class extends((0,n.OU)((0,s.T)(u))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:c,principalOffsetPoint:u,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,f=[e,t,r,i,o,n,s,a,l];return this.isAdvanced&&(p?.forEach(e=>f.push(e)),f.push(c),u?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),y?.forEach(e=>f.push(e))),f.map(e=>isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"focalLength",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"omega",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"phi",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"kappa",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"x",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"z",void 0),g=(0,o.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],g);const m=g;let v=class extends((0,n.OU)((0,s.T)(u))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:o}=this;return e?.length>1||!Number.isNaN(t)||r?.length>1||i?.length>1||o?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:c,principalOffsetPoint:u,radialDistortionCoefficients:d,tangentialDistortionCoefficients:y}=this,f=[e,t,r,i,o,n,s,a,l];return this.isAdvanced&&(p?.forEach(e=>f.push(e)),f.push(c),u?.forEach(e=>f.push(e)),u?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),y?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,o.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const w=v,C=new Map;C.set("2",{desc:"Using Omega Phi Kappa",constructor:m}),C.set("1",{desc:"Using Heading, Pitch and Roll",constructor:y}),C.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:w}),C.set("4",{desc:"Using Local Tangent Plane",constructor:h});var M=r(63490);function b(e,t,r){return e?(0,M.E1)(e)?new M.Mr(e):function(e,t,r){let{url:i}=e;return i?(i=function(e,t,r){return t&&(e=`${t}${e}`),r&&(e+=`${r}`),e}(i,t,r),new M.TH({...e,url:i})):null}(e,t,r):e}const j=new i.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),Z=new i.J({Feet:"feet",Meter:"meter"}),x=new i.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),S=new Map;S.set("1",function(e){const[t,r,i,o,n,s,a,l,p,c,u,d,y,f,h,g,m,v,w,C,M,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,heading:s,pitch:a,roll:l,...P([p,c,u,d,y,f],[g,m],[v,w,C],[M,b],h)}}),S.set("3",function(e){const[t,r,i,o,n,s,a,l,p,c,u,d,y,f,h,g,m,v,w,C,M,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,yaw:s,pitch:a,roll:l,...P([p,c,u,d,y,f],[g,m],[v,w,C],[M,b],h)}}),S.set("2",function(e){const[t,r,i,o,n,s,a,l,p,c,u,d,y,f,h,g,m,v,w,C,M,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:o,z:n,omega:s,phi:a,kappa:l,...P([p,c,u,d,y,f],[g,m],[v,w,C],[M,b],h)}}),S.set("4",function(e){const[t,r,i,o,n,...s]=e.slice(1),a=S.get(n),l=C.get(n)?.constructor;return a&&l?{latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:o,properties:new l(a([n,"",...s]))}:null});const T=e=>{const t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function P(e,t,r,i,o){const n=T(e),s=T(t),a=T(r),l=T(i);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(o):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}function D(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function N(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}const _="sequenceorder";function O(e,t){if(!e){const e=t.find(e=>e.name.toLocaleLowerCase()===_.toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}return e.split(";").map(e=>{const r=e.trim(),[i,o]=r.split(/\s+/).map(e=>e.trim()),n=t.find(e=>e.name.toLowerCase()===i.toLowerCase());return n?{fieldName:n?n.name:_,sortOrder:"desc"===o?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e)}},33143(e,t,r){r.d(t,{A:()=>u});var i=r(5482),o=r(69540),n=r(25482),s=r(91429),a=r(8631),l=r(29005),p=r(36005),c=r(43937);let u=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],u.prototype,"readDomains",null),(0,i.Cg)([(0,c.K)("domains")],u.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[l.A],json:{write:!0}})],u.prototype,"templates",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],u)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(5482),n=r(66552),s=r(25482),a=r(91429);const l=new n.J({asc:"ascending",desc:"descending"});let p=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],p)},73681(e,t,r){r.d(t,{n:()=>l});var i=r(49186),o=r(53966),n=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?n.A.parse(e.dictionary_version):null,c=new Set(e.itemsNames),u={};if(t)for(const e in t)u[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)u.hasOwnProperty(t.name)||(u[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const y=await(0,a.xR)(e.expression,null,u);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const f=!s||!s.greaterEqual(4,0);f&&o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const h=new p(r,f);return new l(f,c,y,h)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){o.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class p extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},58501(e,t,r){r.d(t,{q:()=>o});var i=r(62815);function o(e,t,r){if(!r?.features||!r.hasZ)return;const o=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(o)for(const e of r.features)o(e.geometry)}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(5482),n=r(52106),s=r(66552),a=r(25482),l=r(4718),p=r(91429),c=r(16930),u=r(60408),d=r(65864),y=r(50498),f=r(20437),h=r(36005),g=r(43937);const m=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,d.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=c.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,o]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,o],scale:[n,s]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,e=>e*n+i,e=>o-e*s,a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=c.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const n=e[t],s=r.fromJSON(n),a=n.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=i);const l=n.aggregateGeometries,p=s.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],r=l[e],o=r?.spatialReference;null==t||o||(t.spatialReference=i)}o.push(s)}return o}_quantizePoints(e,t,r){let i,o;const n=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=r(a[1]);e===i&&s===o||(n.push([e-i,s-o]),i=e,o=s)}else i=t(a[0]),o=r(a[1]),n.push([i,o])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,u.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],s=this._quantizePoints(n,t,r);s&&o.push(s)}return o.length>0?((0,u.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,u.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(s+=o[0],a+=o[1]):(s=o[0],a=o[1]),o[0]=t(s),o[1]=r(a)}}if(i&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let s,a;for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=r(a)}if(i&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[f.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,g.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:y.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:c.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,g.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},55674(e,t,r){r.d(t,{Ad:()=>y,Gj:()=>g,QY:()=>d,lL:()=>m,xR:()=>f});var i=r(66131),o=r(49186),n=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),p=r(43668),c=r(98623);const u=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of u)t.hasArcadeDependency(r)&&e.add(r);return e}function y(e,t){return h.create(e,t,null,["$feature","$view"])}function f(e,t,r){return h.create(e,t,r,["$feature","$view","$config"])}class h{static async create(e,t,r,i){const{arcade:n,Dictionary:s}=await(0,p.l)();let a;try{a=n.parseScript(e)}catch(t){throw new o.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=n.scriptUsesGeometryEngine(a);l&&await n.enableGeometrySupport(),await n.loadDependentModules(new Set,a,null,!1,l);const c={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},u=n.compileScript(a,c);let d=null;null!=r&&(d=new s(r),d.immutable=!0);const y=new s;return y.immutable=!1,y.setField("scale",0),new h(e,n,a,u,t,y,d,s)}constructor(e,t,r,i,o,n,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=o,this._viewDict=n,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new g,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:o,currentEnd:n}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,currentEnd:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class g{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(m(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return n.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function m(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5367],{15367(a,r,t){async function e(a={}){var r,t=a,e="./this.program",n="";try{n=new URL(".","").href}catch{}r=async a=>{if((a=await fetch(a,{credentials:"same-origin"})).ok)return a.arrayBuffer();throw Error(a.status+" : "+a.url)};var o,i,s,u,f,l,h,c,w,d,v,p,m,b,y,g=console.log.bind(console),$=console.error.bind(console),A=!1,C=!1;function k(){var a=Xr.buffer;f=new Int8Array(a),h=new Int16Array(a),l=new Uint8Array(a),c=new Uint16Array(a),w=new Int32Array(a),d=new Uint32Array(a),v=new Float32Array(a),p=new Float64Array(a),m=new BigInt64Array(a),b=new BigUint64Array(a)}function E(a){throw t.onAbort?.(a),$(a="Aborted("+a+")"),A=!0,a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info."),u?.(a),a}async function x(a){if(!o)try{var t=await r(a);return new Uint8Array(t)}catch{}if(a!=y||!o)throw"both async and sync fetching of the wasm failed";return new Uint8Array(o)}class O{name="ExitStatus";constructor(a){this.message=`Program terminated with exit(${a})`,this.status=a}}var T=a=>{for(;0<a.length;)a.shift()(t)},R=[],D=[],S=()=>{var a=t.preRun.shift();D.push(a)},P=!0;class j{constructor(a){this.ra=a-24}}var q={},I=a=>{for(;a.length;){var r=a.pop();a.pop()(r)}};function B(a){return this.sa(d[a>>2])}var U={},z={},M={},F=class extends Error{constructor(a){super(a),this.name="InternalError"}},N=(a,r,t)=>{function e(r){if((r=t(r)).length!==a.length)throw new F("Mismatched type converter count");for(var e=0;e<a.length;++e)H(a[e],r[e])}a.forEach(a=>M[a]=r);var n=Array(r.length),o=[],i=0;r.forEach((a,r)=>{z.hasOwnProperty(a)?n[r]=z[a]:(o.push(a),U.hasOwnProperty(a)||(U[a]=[]),U[a].push(()=>{n[r]=z[a],++i===o.length&&e(n)}))}),0===o.length&&e(n)},L=a=>{for(var r="";;){var t=l[a++];if(!t)return r;r+=String.fromCharCode(t)}},W=class extends Error{constructor(a){super(a),this.name="BindingError"}};function H(a,r,t={}){return function(a,r,t={}){var e=r.name;if(!a)throw new W(`type "${e}" must have a positive integer typeid pointer`);if(z.hasOwnProperty(a)){if(t.Mb)return;throw new W(`Cannot register type '${e}' twice`)}z[a]=r,delete M[a],U.hasOwnProperty(a)&&(r=U[a],delete U[a],r.forEach(a=>a()))}(a,r,t)}var G=(a,r,t)=>{switch(r){case 1:return t?a=>f[a]:a=>l[a];case 2:return t?a=>h[a>>1]:a=>c[a>>1];case 4:return t?a=>w[a>>2]:a=>d[a>>2];case 8:return t?a=>m[a>>3]:a=>b[a>>3];default:throw new TypeError(`invalid integer width (${r}): ${a}`)}},J=a=>{throw new W(a.ma.ta.na.name+" instance already deleted")},K=!1,_=()=>{},V=a=>globalThis.FinalizationRegistry?(K=new FinalizationRegistry(a=>{--(a=a.ma).count.value,0===a.count.value&&(a.xa?a.Ba.Ha(a.xa):a.ta.na.Ha(a.ra))}),_=a=>{K.unregister(a)},(V=a=>{var r=a.ma;return r.xa&&K.register(a,{ma:r},a),a})(a)):(V=a=>a,a);function Q(){}var Y=(a,r)=>Object.defineProperty(r,"name",{value:a}),X={},Z=(a,r,t)=>{if(void 0===a[r].ua){var e=a[r];a[r]=function(...e){if(!a[r].ua.hasOwnProperty(e.length))throw new W(`Function '${t}' called with an invalid number of arguments (${e.length}) - expects one of (${a[r].ua})!`);return a[r].ua[e.length].apply(this,e)},a[r].ua=[],a[r].ua[e.Ma]=e}},aa=(a,r,e)=>{if(t.hasOwnProperty(a)){if(void 0===e||void 0!==t[a].ua&&void 0!==t[a].ua[e])throw new W(`Cannot register public name '${a}' twice`);if(Z(t,a,a),t[a].ua.hasOwnProperty(e))throw new W(`Cannot register multiple overloads of a function with the same number of arguments (${e})!`);t[a].ua[e]=r}else t[a]=r,t[a].Ma=e};function ra(a,r,t,e,n,o,i,s){this.name=a,this.constructor=r,this.La=t,this.Ha=e,this.ya=n,this.Hb=o,this.Xa=i,this.Fb=s,this.Sb=[]}var ta=(a,r,t)=>{for(;r!==t;){if(!r.Xa)throw new W(`Expected null or instance of ${t.name}, got an instance of ${r.name}`);a=r.Xa(a),r=r.ya}return a},ea=a=>{if(null===a)return"null";var r=typeof a;return"object"===r||"array"===r||"function"===r?a.toString():""+a};function na(a,r){if(null===r){if(this.lb)throw new W(`null is not a valid ${this.name}`);return 0}if(!r.ma)throw new W(`Cannot pass "${ea(r)}" as a ${this.name}`);if(!r.ma.ra)throw new W(`Cannot pass deleted object as a pointer of type ${this.name}`);return ta(r.ma.ra,r.ma.ta.na,this.na)}function oa(a,r){if(null===r){if(this.lb)throw new W(`null is not a valid ${this.name}`);if(this.ab){var t=this.nb();return null!==a&&a.push(this.Ha,t),t}return 0}if(!r||!r.ma)throw new W(`Cannot pass "${ea(r)}" as a ${this.name}`);if(!r.ma.ra)throw new W(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.$a&&r.ma.ta.$a)throw new W(`Cannot convert argument of type ${r.ma.Ba?r.ma.Ba.name:r.ma.ta.name} to parameter type ${this.name}`);if(t=ta(r.ma.ra,r.ma.ta.na,this.na),this.ab){if(void 0===r.ma.xa)throw new W("Passing raw pointer to smart pointer is illegal");switch(this.Xb){case 0:if(r.ma.Ba!==this)throw new W(`Cannot convert argument of type ${r.ma.Ba?r.ma.Ba.name:r.ma.ta.name} to parameter type ${this.name}`);t=r.ma.xa;break;case 1:t=r.ma.xa;break;case 2:if(r.ma.Ba===this)t=r.ma.xa;else{var e=r.clone();t=this.Tb(t,Ea(()=>e.delete())),null!==a&&a.push(this.Ha,t)}break;default:throw new W("Unsupporting sharing policy")}}return t}function ia(a,r){if(null===r){if(this.lb)throw new W(`null is not a valid ${this.name}`);return 0}if(!r.ma)throw new W(`Cannot pass "${ea(r)}" as a ${this.name}`);if(!r.ma.ra)throw new W(`Cannot pass deleted object as a pointer of type ${this.name}`);if(r.ma.ta.$a)throw new W(`Cannot convert argument of type ${r.ma.ta.name} to parameter type ${this.name}`);return ta(r.ma.ra,r.ma.ta.na,this.na)}var sa=(a,r,t)=>r===t?a:void 0===t.ya||null===(a=sa(a,r,t.ya))?null:t.Fb(a),ua={},fa=(a,r)=>{if(!r.ta||!r.ra)throw new F("makeClassHandle requires ptr and ptrType");if(!!r.Ba!=!!r.xa)throw new F("Both smartPtrType and smartPtr must be specified");return r.count={value:1},V(Object.create(a,{ma:{value:r,writable:!0}}))};function la(a,r,t,e,n,o,i,s,u,f,l){this.name=a,this.na=r,this.lb=t,this.$a=e,this.ab=n,this.Rb=o,this.Xb=i,this.yb=s,this.nb=u,this.Tb=f,this.Ha=l,n||void 0!==r.ya?this.wa=oa:(this.wa=e?na:ia,this.Aa=null)}var ha=(a,r,e)=>{if(!t.hasOwnProperty(a))throw new F("Replacing nonexistent public symbol");void 0!==t[a].ua&&void 0!==e?t[a].ua[e]=r:(t[a]=r,t[a].Ma=e)},ca=[],wa=(a,r)=>{var t;if(a=L(a),(t=ca[r])||(ca[r]=t=Zr.get(r)),"function"!=typeof t)throw new W(`unknown function pointer with signature ${a}: ${r}`);return t};class da extends Error{}var va=a=>{a=Kr(a);var r=L(a);return Vr(a),r},pa=(a,r)=>{var t=[],e={};throw r.forEach(function a(r){e[r]||z[r]||(M[r]?M[r].forEach(a):(t.push(r),e[r]=!0))}),new da(`${a}: `+t.map(va).join([", "]))};function ma(a,r,t,e,n){var o=r.length;if(2>o)throw new W("argTypes array size mismatch! Must at least get return value and 'this' types!");var i=null!==r[1]&&null!==t,s=function(a){for(var r=1;r<a.length;++r)if(null!==a[r]&&void 0===a[r].Aa)return!0;return!1}(r),u=!r[0].Nb,f=o-2,l=Array(f),h=[],c=[];return Y(a,function(...a){if(c.length=0,h.length=i?2:1,h[0]=n,i){var t=r[1].wa(c,this);h[1]=t}for(var o=0;o<f;++o)l[o]=r[o+2].wa(c,a[o]),h.push(l[o]);if(a=e(...h),s)I(c);else for(o=i?1:2;o<r.length;o++){var w=1===o?t:l[o-2];null!==r[o].Aa&&r[o].Aa(w)}return u?r[0].sa(a):void 0})}var ba=(a,r)=>{for(var t=[],e=0;e<a;e++)t.push(d[r+4*e>>2]);return t},ya=a=>{const r=(a=a.trim()).indexOf("(");return-1===r?a:a.slice(0,r)},ga=(a,r,t)=>{if(!(a instanceof Object))throw new W(`${t} with invalid "this": ${a}`);if(!(a instanceof r.na.constructor))throw new W(`${t} incompatible with "this" of type ${a.constructor.name}`);if(!a.ma.ra)throw new W(`cannot call emscripten binding method ${t} on deleted object`);return ta(a.ma.ra,a.ma.ta.na,r.na)},$a=[],Aa=[0,1,,1,null,1,!0,1,!1,1],Ca=a=>{9<a&&0===--Aa[a+1]&&(Aa[a]=void 0,$a.push(a))},ka=a=>{if(!a)throw new W(`Cannot use deleted val. handle = ${a}`);return Aa[a]},Ea=a=>{switch(a){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const r=$a.pop()||Aa.length;return Aa[r]=a,Aa[r+1]=1,r}},xa={name:"emscripten::val",sa:a=>{var r=ka(a);return Ca(a),r},wa:(a,r)=>Ea(r),Ea:B,Aa:null},Oa=(a,r,t)=>{switch(r){case 1:return t?function(a){return this.sa(f[a])}:function(a){return this.sa(l[a])};case 2:return t?function(a){return this.sa(h[a>>1])}:function(a){return this.sa(c[a>>1])};case 4:return t?function(a){return this.sa(w[a>>2])}:function(a){return this.sa(d[a>>2])};default:throw new TypeError(`invalid integer width (${r}): ${a}`)}},Ta=(a,r)=>{var t=z[a];if(void 0===t)throw a=`${r} has unknown type ${va(a)}`,new W(a);return t},Ra=(a,r)=>{switch(r){case 4:return function(a){return this.sa(v[a>>2])};case 8:return function(a){return this.sa(p[a>>3])};default:throw new TypeError(`invalid float width (${r}): ${a}`)}},Da=Object.assign({optional:!0},xa),Sa=(a,r,t,e)=>{if(!(0<e))return 0;var n=t;e=t+e-1;for(var o=0;o<a.length;++o){var i=a.codePointAt(o);if(127>=i){if(t>=e)break;r[t++]=i}else if(2047>=i){if(t+1>=e)break;r[t++]=192|i>>6,r[t++]=128|63&i}else if(65535>=i){if(t+2>=e)break;r[t++]=224|i>>12,r[t++]=128|i>>6&63,r[t++]=128|63&i}else{if(t+3>=e)break;r[t++]=240|i>>18,r[t++]=128|i>>12&63,r[t++]=128|i>>6&63,r[t++]=128|63&i,o++}}return r[t]=0,t-n},Pa=a=>{for(var r=0,t=0;t<a.length;++t){var e=a.charCodeAt(t);127>=e?r++:2047>=e?r+=2:55296<=e&&57343>=e?(r+=4,++t):r+=3}return r},ja=globalThis.TextDecoder&&new TextDecoder,qa=(a,r,t,e)=>{if(t=r+t,e)return t;for(;a[r]&&!(r>=t);)++r;return r},Ia=(a,r=0,t,e)=>{if(16<(t=qa(a,r,t,e))-r&&a.buffer&&ja)return ja.decode(a.subarray(r,t));for(e="";r<t;){var n=a[r++];if(128&n){var o=63&a[r++];if(192==(224&n))e+=String.fromCharCode((31&n)<<6|o);else{var i=63&a[r++];65536>(n=224==(240&n)?(15&n)<<12|o<<6|i:(7&n)<<18|o<<12|i<<6|63&a[r++])?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else e+=String.fromCharCode(n)}return e},Ba=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,Ua=(a,r,t)=>{if(16<(r=qa(c,a>>=1,r/2,t))-a&&Ba)return Ba.decode(c.subarray(a,r));for(t="";a<r;++a)t+=String.fromCharCode(c[a]);return t},za=(a,r,t)=>{if(t??=2147483647,2>t)return 0;var e=r;t=(t-=2)<2*a.length?t/2:a.length;for(var n=0;n<t;++n)h[r>>1]=a.charCodeAt(n),r+=2;return h[r>>1]=0,r-e},Ma=a=>2*a.length,Fa=(a,r,t)=>{var e="";a>>=2;for(var n=0;!(n>=r/4);n++){var o=d[a+n];if(!o&&!t)break;e+=String.fromCodePoint(o)}return e},Na=(a,r,t)=>{if(t??=2147483647,4>t)return 0;var e=r;t=e+t-4;for(var n=0;n<a.length;++n){var o=a.codePointAt(n);if(65535<o&&n++,w[r>>2]=o,(r+=4)+4>t)break}return w[r>>2]=0,r-e},La=a=>{for(var r=0,t=0;t<a.length;++t)65535<a.codePointAt(t)&&t++,r+=4;return r},Wa=0,Ha=[],Ga={},Ja=a=>{var r=Ga[a];return void 0===r?L(a):r},Ka=(a,r,t,e,n)=>Ha[a](r,t,e,n),_a=(a,r)=>{for(var t=0,e=a.length-1;0<=e;e--){var n=a[e];"."===n?a.splice(e,1):".."===n?(a.splice(e,1),t++):t&&(a.splice(e,1),t--)}if(r)for(;t;t--)a.unshift("..");return a},Va=a=>{var r="/"===a.charAt(0),t="/"===a.slice(-1);return(a=_a(a.split("/").filter(a=>!!a),!r).join("/"))||r||(a="."),a&&t&&(a+="/"),(r?"/":"")+a},Qa=a=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);return a=r[0],r=r[1],a||r?(r&&=r.slice(0,-1),a+r):"."},Ya=a=>{(Ya=a=>crypto.getRandomValues(a))(a)},Xa=[],Za=[];function ar(a,r){Za[a]={input:[],output:[],Ra:r},xr(a,rr)}var rr={open(a){var r=Za[a.node.fb];if(!r)throw new wr(43);a.Ca=r,a.seekable=!1},close(a){a.Ca.Ra.Za(a.Ca)},Za(a){a.Ca.Ra.Za(a.Ca)},read(a,r,t,e){if(!a.Ca||!a.Ca.Ra.sb)throw new wr(60);for(var n=0,o=0;o<e;o++){try{var i=a.Ca.Ra.sb(a.Ca)}catch(a){throw new wr(29)}if(void 0===i&&0===n)throw new wr(6);if(null==i)break;n++,r[t+o]=i}return n&&(a.node.Na=Date.now()),n},write(a,r,t,e){if(!a.Ca||!a.Ca.Ra.mb)throw new wr(60);try{for(var n=0;n<e;n++)a.Ca.Ra.mb(a.Ca,r[t+n])}catch(a){throw new wr(29)}return e&&(a.node.Da=a.node.za=Date.now()),n}},tr={sb(){a:{if(!Xa.length){var a=null;if(globalThis.window?.prompt&&null!==(a=window.prompt("Input: "))&&(a+="\n"),!a){var r=null;break a}r=Array(Pa(a)+1),a=Sa(a,r,0,r.length),r.length=a,Xa=r}r=Xa.shift()}return r},mb(a,r){null===r||10===r?(g(Ia(a.output)),a.output=[]):0!=r&&a.output.push(r)},Za(a){0<a.output?.length&&(g(Ia(a.output)),a.output=[])},lc:()=>({cc:25856,ec:5,bc:191,dc:35387,ac:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),mc:()=>0,nc:()=>[24,80]},er={mb(a,r){null===r||10===r?($(Ia(a.output)),a.output=[]):0!=r&&a.output.push(r)},Za(a){0<a.output?.length&&($(Ia(a.output)),a.output=[])}},nr={Ga:null,Ja:()=>nr.createNode(null,"/",16895,0),createNode(a,r,t,e){if(24576==(61440&t)||4096==(61440&t))throw new wr(63);return nr.Ga||(nr.Ga={dir:{node:{Ka:nr.pa.Ka,Ia:nr.pa.Ia,Ua:nr.pa.Ua,cb:nr.pa.cb,zb:nr.pa.zb,Cb:nr.pa.Cb,Bb:nr.pa.Bb,ob:nr.pa.ob,gb:nr.pa.gb},stream:{Fa:nr.qa.Fa}},file:{node:{Ka:nr.pa.Ka,Ia:nr.pa.Ia},stream:{Fa:nr.qa.Fa,read:nr.qa.read,write:nr.qa.write,vb:nr.qa.vb,xb:nr.qa.xb}},link:{node:{Ka:nr.pa.Ka,Ia:nr.pa.Ia,Wa:nr.pa.Wa},stream:{}},pb:{node:{Ka:nr.pa.Ka,Ia:nr.pa.Ia},stream:Er}}),16384==(61440&(t=yr(a,r,t,e)).mode)?(t.pa=nr.Ga.dir.node,t.qa=nr.Ga.dir.stream,t.oa={}):32768==(61440&t.mode)?(t.pa=nr.Ga.file.node,t.qa=nr.Ga.file.stream,t.va=0,t.oa=null):40960==(61440&t.mode)?(t.pa=nr.Ga.link.node,t.qa=nr.Ga.link.stream):8192==(61440&t.mode)&&(t.pa=nr.Ga.pb.node,t.qa=nr.Ga.pb.stream),t.Na=t.Da=t.za=Date.now(),a&&(a.oa[r]=t,a.Na=a.Da=a.za=t.Na),t},ic:a=>a.oa?a.oa.subarray?a.oa.subarray(0,a.va):new Uint8Array(a.oa):new Uint8Array(0),pa:{Ka(a){var r={};return r.fc=8192==(61440&a.mode)?a.id:1,r.kc=a.id,r.mode=a.mode,r.oc=1,r.uid=0,r.jc=0,r.fb=a.fb,16384==(61440&a.mode)?r.size=4096:32768==(61440&a.mode)?r.size=a.va:40960==(61440&a.mode)?r.size=a.link.length:r.size=0,r.Na=new Date(a.Na),r.Da=new Date(a.Da),r.za=new Date(a.za),r.Db=4096,r.$b=Math.ceil(r.size/r.Db),r},Ia(a,r){for(var t of["mode","atime","mtime","ctime"])null!=r[t]&&(a[t]=r[t]);void 0!==r.size&&(r=r.size,a.va!=r&&(0==r?(a.oa=null,a.va=0):(t=a.oa,a.oa=new Uint8Array(r),t&&a.oa.set(t.subarray(0,Math.min(r,a.va))),a.va=r)))},Ua(){throw nr.hb||(nr.hb=new wr(44),nr.hb.stack="<generic error, no stack>"),nr.hb},cb:(a,r,t,e)=>nr.createNode(a,r,t,e),zb(a,r,t){try{var e=br(r,t)}catch(a){}if(e){if(16384==(61440&a.mode))for(var n in e.oa)throw new wr(55);if(n=mr(e.parent.id,e.name),fr[n]===e)fr[n]=e.Qa;else for(n=fr[n];n;){if(n.Qa===e){n.Qa=e.Qa;break}n=n.Qa}}delete a.parent.oa[a.name],r.oa[t]=a,a.name=t,r.za=r.Da=a.parent.za=a.parent.Da=Date.now()},Cb(a,r){delete a.oa[r],a.za=a.Da=Date.now()},Bb(a,r){var t,e=br(a,r);for(t in e.oa)throw new wr(55);delete a.oa[r],a.za=a.Da=Date.now()},ob:a=>[".","..",...Object.keys(a.oa)],gb:(a,r,t)=>((a=nr.createNode(a,r,41471,0)).link=t,a),Wa(a){if(40960!=(61440&a.mode))throw new wr(28);return a.link}},qa:{read(a,r,t,e,n){var o=a.node.oa;if(n>=a.node.va)return 0;if(8<(a=Math.min(a.node.va-n,e))&&o.subarray)r.set(o.subarray(n,n+a),t);else for(e=0;e<a;e++)r[t+e]=o[n+e];return a},write(a,r,t,e,n,o){if(r.buffer===f.buffer&&(o=!1),!e)return 0;if((a=a.node).Da=a.za=Date.now(),r.subarray&&(!a.oa||a.oa.subarray)){if(o)return a.oa=r.subarray(t,t+e),a.va=e;if(0===a.va&&0===n)return a.oa=r.slice(t,t+e),a.va=e;if(n+e<=a.va)return a.oa.set(r.subarray(t,t+e),n),e}o=n+e;var i=a.oa?a.oa.length:0;if(i>=o||(o=Math.max(o,i*(1048576>i?2:1.125)>>>0),0!=i&&(o=Math.max(o,256)),i=a.oa,a.oa=new Uint8Array(o),0<a.va&&a.oa.set(i.subarray(0,a.va),0)),a.oa.subarray&&r.subarray)a.oa.set(r.subarray(t,t+e),n);else for(o=0;o<e;o++)a.oa[n+o]=r[t+o];return a.va=Math.max(a.va,n+e),e},Fa(a,r,t){if(1===t?r+=a.position:2===t&&32768==(61440&a.node.mode)&&(r+=a.node.va),0>r)throw new wr(28);return r},vb(a,r,t,e,n){if(32768!=(61440&a.node.mode))throw new wr(43);if(a=a.node.oa,2&n||!a||a.buffer!==f.buffer){n=!0,e=65536*Math.ceil(r/65536);var o=Qr(65536,e);if(o&&l.fill(0,o,o+e),!(e=o))throw new wr(48);a&&((0<t||t+r<a.length)&&(a=a.subarray?a.subarray(t,t+r):Array.prototype.slice.call(a,t,t+r)),f.set(a,e))}else n=!1,e=a.byteOffset;return{ra:e,Zb:n}},xb:(a,r,t,e)=>(nr.qa.write(a,r,0,e,t,!1),0)}},or=null,ir={},sr=[],ur=1,fr=null,lr=!1,hr=!0,cr={},wr=class{name="ErrnoError";constructor(a){this.Ta=a}},dr=class{bb={};node=null;get flags(){return this.bb.flags}set flags(a){this.bb.flags=a}get position(){return this.bb.position}set position(a){this.bb.position=a}},vr=class{pa={};qa={};eb=null;constructor(a,r,t,e){a||=this,this.parent=a,this.Ja=a.Ja,this.id=ur++,this.name=r,this.mode=t,this.fb=e,this.Na=this.Da=this.za=Date.now()}get read(){return!(365&~this.mode)}set read(a){a?this.mode|=365:this.mode&=-366}get write(){return!(146&~this.mode)}set write(a){a?this.mode|=146:this.mode&=-147}};function pr(a,r={}){if(!a)throw new wr(44);r.jb??(r.jb=!0),"/"===a.charAt(0)||(a="//"+a);var t=0;a:for(;40>t;t++){a=a.split("/").filter(a=>!!a);for(var e=or,n="/",o=0;o<a.length;o++){var i=o===a.length-1;if(i&&r.parent)break;if("."!==a[o])if(".."===a[o]){if(n=Qa(n),e===e.parent){a=n+"/"+a.slice(o+1).join("/"),t--;continue a}e=e.parent}else{n=Va(n+"/"+a[o]);try{e=br(e,a[o])}catch(a){if(44===a?.Ta&&i&&r.Qb)return{path:n};throw a}if(!e.eb||i&&!r.jb||(e=e.eb.root),40960==(61440&e.mode)&&(!i||r.ib)){if(!e.pa.Wa)throw new wr(52);"/"===(e=e.pa.Wa(e)).charAt(0)||(e=Qa(n)+"/"+e),a=e+"/"+a.slice(o+1).join("/");continue a}}}return{path:n,node:e}}throw new wr(32)}function mr(a,r){for(var t=0,e=0;e<r.length;e++)t=(t<<5)-t+r.charCodeAt(e)|0;return(a+t>>>0)%fr.length}function br(a,r){var t=16384==(61440&a.mode)?(t=$r(a,"x"))?t:a.pa.Ua?0:2:54;if(t)throw new wr(t);for(t=fr[mr(a.id,r)];t;t=t.Qa){var e=t.name;if(t.parent.id===a.id&&e===r)return t}return a.pa.Ua(a,r)}function yr(a,r,t,e){return r=mr((a=new vr(a,r,t,e)).parent.id,a.name),a.Qa=fr[r],fr[r]=a}function gr(a){var r=["r","w","rw"][3&a];return 512&a&&(r+="w"),r}function $r(a,r){return hr?0:!r.includes("r")||292&a.mode?r.includes("w")&&!(146&a.mode)||r.includes("x")&&!(73&a.mode)?2:0:2}function Ar(a,r){if(16384!=(61440&a.mode))return 54;try{return br(a,r),20}catch(a){}return $r(a,"wx")}function Cr(a){if(!(a=sr[a]))throw new wr(8);return a}function kr(a,r){var t=void 0,e=t?null:a;if(t??=a.pa.Ia,!t)throw new wr(63);t(e,r)}var Er={open(a){a.qa=ir[a.node.fb].qa,a.qa.open?.(a)},Fa(){throw new wr(70)}};function xr(a,r){ir[a]={qa:r}}function Or(a,r){var t="/"===r;if(t&&or)throw new wr(10);if(!t&&r){var e=pr(r,{jb:!1});if(r=e.path,(e=e.node).eb)throw new wr(10);if(16384!=(61440&e.mode))throw new wr(54)}r={type:a,pc:{},wb:r,Pb:[]},(a=a.Ja(r)).Ja=r,r.root=a,t?or=a:e&&(e.eb=r,e.Ja&&e.Ja.Pb.push(r))}function Tr(a,r,t){var e=pr(a,{parent:!0}).node;if(!(a=a&&a.match(/([^\/]+|\/)\/*$/)[1]))throw new wr(28);if("."===a||".."===a)throw new wr(20);var n=Ar(e,a);if(n)throw new wr(n);if(!e.pa.cb)throw new wr(63);return e.pa.cb(e,a,r,t)}function Rr(a){return Tr(a,16895,0)}function Dr(a,r,t){void 0===t&&(t=r,r=438),Tr(a,8192|r,t)}function Sr(a,r){if(!((...a)=>{for(var r="",t=!1,e=a.length-1;-1<=e&&!t;e--){if("string"!=typeof(t=0<=e?a[e]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";r=t+"/"+r,t="/"===t.charAt(0)}return(t?"/":"")+(r=_a(r.split("/").filter(a=>!!a),!t).join("/"))||"."})(a))throw new wr(44);var t=pr(r,{parent:!0}).node;if(!t)throw new wr(44);var e=Ar(t,r=r&&r.match(/([^\/]+|\/)\/*$/)[1]);if(e)throw new wr(e);if(!t.pa.gb)throw new wr(63);t.pa.gb(t,r,a)}function Pr(a,r){if(""===a)throw new wr(44);if("string"==typeof r){var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===e)throw Error(`Unknown file open mode: ${r}`);r=e}if(e=64&r?33206:0,"object"==typeof a)var n=a;else{var o=a.endsWith("/");n=(a=pr(a,{ib:!(131072&r),Qb:!0})).node,a=a.path}var i=!1;if(64&r)if(n){if(128&r)throw new wr(20)}else{if(o)throw new wr(31);n=Tr(a,511|e,0),i=!0}if(!n)throw new wr(44);if(8192==(61440&n.mode)&&(r&=-513),65536&r&&16384!=(61440&n.mode))throw new wr(54);if(!i&&(o=n?40960==(61440&n.mode)?32:16384==(61440&n.mode)&&("r"!==gr(r)||576&r)?31:$r(n,gr(r)):44))throw new wr(o);if(512&r&&!i){if(16384==(61440&(o="string"==typeof(o=n)?pr(o,{ib:!0}).node:o).mode))throw new wr(31);if(32768!=(61440&o.mode))throw new wr(28);var s=$r(o,"w");if(s)throw new wr(s);kr(o,{size:0,timestamp:Date.now()})}r&=-131713;a:for(o=n;;){if(o===o.parent){o=o.Ja.wb;var u=u?"/"!==o[o.length-1]?`${o}/${u}`:o+u:o;break a}u=u?`${o.name}/${u}`:o.name,o=o.parent}if(u={node:n,path:u,flags:r,seekable:!0,position:0,qa:n.qa,Yb:[],error:!1},o=-1,u=Object.assign(new dr,u),-1==o)a:{for(o=0;4096>=o;o++)if(!sr[o])break a;throw new wr(33)}u.Pa=o,sr[o]=u,u.qa.open&&u.qa.open(u),i&&(e&=511,kr(n="string"==typeof n?pr(n,{ib:!0}).node:n,{mode:4095&e|-4096&n.mode,za:Date.now(),hc:void 0})),!t.logReadFiles||1&r||a in cr||(cr[a]=1)}function jr(a,r,t){if(null===a.Pa)throw new wr(8);if(!a.seekable||!a.qa.Fa)throw new wr(70);if(0!=t&&1!=t&&2!=t)throw new wr(28);a.position=a.qa.Fa(a,r,t),a.Yb=[]}function qr(a,r,t){a=Va("/dev/"+a);var e=((a,r)=>{var t=0;return a&&(t|=365),r&&(t|=146),t})(!!r,!!t);qr.ub??(qr.ub=64);var n=qr.ub++<<8;xr(n,{open(a){a.seekable=!1},close(){t?.buffer?.length&&t(10)},read(a,t,e,n){for(var o=0,i=0;i<n;i++){try{var s=r()}catch(a){throw new wr(29)}if(void 0===s&&0===o)throw new wr(6);if(null==s)break;o++,t[e+i]=s}return o&&(a.node.Na=Date.now()),o},write(a,r,e,n){for(var o=0;o<n;o++)try{t(r[e+o])}catch(a){throw new wr(29)}return n&&(a.node.Da=a.node.za=Date.now()),o}}),Dr(a,e,n)}var Ir,Br={},Ur={},zr=a=>{if(!(a instanceof O||"unwind"==a))throw a},Mr=a=>{throw i=a,P||0<Wa||(t.onExit?.(a),A=!0),new O(a)},Fr=[],Nr={},Lr=a=>{var r;return(r=/\bwasm-function\[\d+\]:(0x[0-9a-f]+)/.exec(a))?+r[1]:(r=/:(\d+):\d+(?:\)|$)/.exec(a))?2147483648|+r[1]:0},Wr=a=>{for(var r of a)(a=Lr(r))&&(Nr[a]=r)},Hr=a=>{if(!(a=Nr[a]))return 0;var r;if(r=/^\s+at .*\.wasm\.(.*) \(.*\)$/.exec(a))r=r[1];else if(r=/^\s+at (.*) \(.*\)$/.exec(a))r=r[1];else{if(!(r=/^(.+?)@/.exec(a)))return 0;r=r[1]}Vr(Hr.Ab??0),a=Hr;var t=Pa(r)+1,e=_r(t);return e&&Sa(r,l,e,t),a.Ab=e,Hr.Ab},Gr={},Jr=()=>{if(!Ir){var a,r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:e||"./this.program"};for(a in Gr)void 0===Gr[a]?delete r[a]:r[a]=Gr[a];var t=[];for(a in r)t.push(`${a}=${r[a]}`);Ir=t}return Ir};if((()=>{let a=Q.prototype;Object.assign(a,{isAliasOf:function(a){if(!(this instanceof Q&&a instanceof Q))return!1;var r=this.ma.ta.na,t=this.ma.ra;a.ma=a.ma;var e=a.ma.ta.na;for(a=a.ma.ra;r.ya;)t=r.Xa(t),r=r.ya;for(;e.ya;)a=e.Xa(a),e=e.ya;return r===e&&t===a},clone:function(){if(this.ma.ra||J(this),this.ma.Va)return this.ma.count.value+=1,this;var a=V,r=Object,t=r.create,e=Object.getPrototypeOf(this),n=this.ma;return(a=a(t.call(r,e,{ma:{value:{count:n.count,Sa:n.Sa,Va:n.Va,ra:n.ra,ta:n.ta,xa:n.xa,Ba:n.Ba}}}))).ma.count.value+=1,a.ma.Sa=!1,a},delete(){if(this.ma.ra||J(this),this.ma.Sa&&!this.ma.Va)throw new W("Object already scheduled for deletion");_(this);var a=this.ma;--a.count.value,0===a.count.value&&(a.xa?a.Ba.Ha(a.xa):a.ta.na.Ha(a.ra)),this.ma.Va||(this.ma.xa=void 0,this.ma.ra=void 0)},isDeleted:function(){return!this.ma.ra},deleteLater:function(){if(this.ma.ra||J(this),this.ma.Sa&&!this.ma.Va)throw new W("Object already scheduled for deletion");return this.ma.Sa=!0,this}});const r=Symbol.dispose;r&&(a[r]=a.delete)})(),Object.assign(la.prototype,{Ib(a){return this.yb&&(a=this.yb(a)),a},qb(a){this.Ha?.(a)},Ea:B,sa:function(a){function r(){return this.ab?fa(this.na.La,{ta:this.Rb,ra:t,Ba:this,xa:a}):fa(this.na.La,{ta:this,ra:a})}var t=this.Ib(a);if(!t)return this.qb(a),null;var e=((a,r)=>{if(void 0===r)throw new W("ptr should not be undefined");for(;a.ya;)r=a.Xa(r),a=a.ya;return ua[r]})(this.na,t);if(void 0!==e)return 0===e.ma.count.value?(e.ma.ra=t,e.ma.xa=a,e.clone()):(e=e.clone(),this.qb(a),e);if(e=this.na.Hb(t),!(e=X[e]))return r.call(this);e=this.$a?e.Eb:e.pointerType;var n=sa(t,this.na,e.na);return null===n?r.call(this):this.ab?fa(e.na.La,{ta:e,ra:n,Ba:this,xa:a}):fa(e.na.La,{ta:e,ra:n})}}),fr=Array(4096),Or(nr,"/"),Rr("/tmp"),Rr("/home"),Rr("/home/web_user"),function(){Rr("/dev"),xr(259,{read:()=>0,write:(a,r,t,e)=>e,Fa:()=>0}),Dr("/dev/null",259),ar(1280,tr),ar(1536,er),Dr("/dev/tty",1280),Dr("/dev/tty1",1536);var a=new Uint8Array(1024),r=0,t=()=>(0===r&&(Ya(a),r=a.byteLength),a[--r]);qr("random",t),qr("urandom",t),Rr("/dev/shm"),Rr("/dev/shm/tmp")}(),function(){Rr("/proc");var a=Rr("/proc/self");Rr("/proc/self/fd"),Or({Ja(){var r=yr(a,"fd",16895,73);return r.qa={Fa:nr.qa.Fa},r.pa={Ua(a,r){var t=Cr(a=+r);return(a={parent:null,Ja:{wb:"fake"},pa:{Wa:()=>t.path},id:a+1}).parent=a},ob:()=>Array.from(sr.entries()).filter(([,a])=>a).map(([a])=>a.toString())},r}},"/proc/self/fd")}(),t.noExitRuntime&&(P=t.noExitRuntime),t.print&&(g=t.print),t.printErr&&($=t.printErr),t.wasmBinary&&(o=t.wasmBinary),t.thisProgram&&(e=t.thisProgram),t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.shift()();var Kr,_r,Vr,Qr,Yr,Xr,Zr,at,rt={237692:()=>"undefined"!=typeof wasmOffsetConverter},tt={U:function(){return"undefined"!=typeof wasmOffsetConverter},n:(a,r,t)=>{var e=new j(a);throw d[e.ra+16>>2]=0,d[e.ra+4>>2]=r,d[e.ra+8>>2]=t,a},Q:()=>E(""),r:a=>{var r=q[a];delete q[a];var t=r.nb,e=r.Ha,n=r.rb,o=n.map(a=>a.Lb).concat(n.map(a=>a.Vb));N([a],o,a=>{var o={};return n.forEach((r,t)=>{var e=a[t],i=r.Jb,s=r.Kb,u=a[t+n.length],f=r.Ub,l=r.Wb;o[r.Gb]={read:a=>e.sa(i(s,a)),write:(a,r)=>{var t=[];f(l,a,u.wa(t,r)),I(t)},optional:a[t].optional}}),[{name:r.name,sa:a=>{var r,t={};for(r in o)t[r]=o[r].read(a);return e(a),t},wa:(a,r)=>{for(var n in o)if(!(n in r)&&!o[n].optional)throw new TypeError(`Missing field: "${n}"`);var i=t();for(n in o)o[n].write(i,r[n]);return null!==a&&a.push(e,i),i},Ea:B,Aa:e}]})},E:(a,r,t,e,n)=>{r=L(r);let o=a=>a;if(e=0n===e){const a=8*t;o=r=>BigInt.asUintN(a,r),n=o(n)}H(a,{name:r,sa:o,wa:(a,r)=>("number"==typeof r&&(r=BigInt(r)),r),Ea:G(r,t,!e),Aa:null})},ba:(a,r,t,e)=>{H(a,{name:r=L(r),sa:function(a){return!!a},wa:function(a,r){return r?t:e},Ea:function(a){return this.sa(l[a])},Aa:null})},e:(a,r,t,e,n,o,i,s,u,f,l,h,c)=>{l=L(l),o=wa(n,o),s&&=wa(i,s),f&&=wa(u,f),c=wa(h,c);var w=(a=>{var r=(a=a.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=r&&57>=r?`_${a}`:a})(l);aa(w,function(){pa(`Cannot construct ${l} due to unbound types`,[e])}),N([a,r,t],e?[e]:[],r=>{if(r=r[0],e)var t=r.na,n=t.La;else n=Q.prototype;r=Y(l,function(...a){if(Object.getPrototypeOf(this)!==i)throw new W(`Use 'new' to construct ${l}`);if(void 0===h.Oa)throw new W(`${l} has no accessible constructor`);var r=h.Oa[a.length];if(void 0===r)throw new W(`Tried to invoke ctor of ${l} with invalid number of parameters (${a.length}) - expected (${Object.keys(h.Oa).toString()}) parameters instead!`);return r.apply(this,a)});var i=Object.create(n,{constructor:{value:r}});r.prototype=i;var u,h=new ra(l,r,i,c,t,o,s,f);return h.ya&&((u=h.ya).Ya??(u.Ya=[]),h.ya.Ya.push(h)),t=new la(l,h,!0,!1,!1),u=new la(l+"*",h,!1,!1,!1),n=new la(l+" const*",h,!1,!0,!1),X[a]={pointerType:u,Eb:n},ha(w,r),[t,u,n]})},v:(a,r,t,e,n,o,i)=>{var s=ba(t,e);r=L(r),r=ya(r),o=wa(n,o),N([],[a],a=>{function e(){pa(`Cannot call ${n} due to unbound types`,s)}var n=`${(a=a[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var u=a.na.constructor;return void 0===u[r]?(e.Ma=t-1,u[r]=e):(Z(u,r,n),u[r].ua[t-1]=e),N([],s,e=>{if(e=ma(n,[e[0],null].concat(e.slice(1)),null,o,i),void 0===u[r].ua?(e.Ma=t-1,u[r]=e):u[r].ua[t-1]=e,a.na.Ya)for(const t of a.na.Ya)t.constructor.hasOwnProperty(r)||(t.constructor[r]=e);return[]}),[]})},g:(a,r,t,e,n,o)=>{var i=ba(r,t);n=wa(e,n),N([],[a],a=>{var t=`constructor ${(a=a[0]).name}`;if(void 0===a.na.Oa&&(a.na.Oa=[]),void 0!==a.na.Oa[r-1])throw new W(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${a.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return a.na.Oa[r-1]=()=>{pa(`Cannot construct ${a.name} due to unbound types`,i)},N([],i,e=>(e.splice(1,0,null),a.na.Oa[r-1]=ma(t,e,null,n,o),[])),[]})},b:(a,r,t,e,n,o,i,s)=>{var u=ba(t,e);r=L(r),r=ya(r),o=wa(n,o),N([],[a],a=>{function e(){pa(`Cannot call ${n} due to unbound types`,u)}var n=`${(a=a[0]).name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&a.na.Sb.push(r);var f=a.na.La,l=f[r];return void 0===l||void 0===l.ua&&l.className!==a.name&&l.Ma===t-2?(e.Ma=t-2,e.className=a.name,f[r]=e):(Z(f,r,n),f[r].ua[t-2]=e),N([],u,e=>(e=ma(n,e,a,o,i),void 0===f[r].ua?(e.Ma=t-2,f[r]=e):f[r].ua[t-2]=e,[])),[]})},c:(a,r,t,e,n,o,i,s,u,f)=>{r=L(r),n=wa(e,n),N([],[a],a=>{var e=`${(a=a[0]).name}.${r}`,l={get(){pa(`Cannot access ${e} due to unbound types`,[t,i])},enumerable:!0,configurable:!0};return l.set=u?()=>pa(`Cannot access ${e} due to unbound types`,[t,i]):()=>{throw new W(e+" is a read-only property")},Object.defineProperty(a.na.La,r,l),N([],u?[t,i]:[t],t=>{var i=t[0],l={get(){var r=ga(this,a,e+" getter");return i.sa(n(o,r))},enumerable:!0};if(u){u=wa(s,u);var h=t[1];l.set=function(r){var t=ga(this,a,e+" setter"),n=[];u(f,t,h.wa(n,r)),I(n)}}return Object.defineProperty(a.na.La,r,l),[]}),[]})},_:a=>H(a,xa),m:(a,r,t,e)=>{function n(){}r=L(r),n.values={},H(a,{name:r,constructor:n,sa:function(a){return this.constructor.values[a]},wa:(a,r)=>r.value,Ea:Oa(r,t,e),Aa:null}),aa(r,n)},d:(a,r,t)=>{var e=Ta(a,"enum");r=L(r),a=e.constructor,e=Object.create(e.constructor.prototype,{value:{value:t},constructor:{value:Y(`${e.name}_${r}`,function(){})}}),a.values[t]=e,a[r]=e},D:(a,r,t)=>{H(a,{name:r=L(r),sa:a=>a,wa:(a,r)=>r,Ea:Ra(r,t),Aa:null})},da:(a,r,t,e,n,o)=>{var i=ba(r,t);a=L(a),a=ya(a),n=wa(e,n),aa(a,function(){pa(`Cannot call ${a} due to unbound types`,i)},r-1),N([],i,t=>(ha(a,ma(a,[t[0],null].concat(t.slice(1)),null,n,o),r-1),[]))},w:(a,r,t,e,n)=>{r=L(r);let o=a=>a;if(0===e){var i=32-8*t;o=a=>a<<i>>>i,n=o(n)}H(a,{name:r,sa:o,wa:(a,r)=>r,Ea:G(r,t,0!==e),Aa:null})},p:(a,r,t)=>{function e(a){return new n(f.buffer,d[a+4>>2],d[a>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];H(a,{name:t=L(t),sa:e,Ea:e},{Mb:!0})},t:a=>{H(a,Da)},k:(a,r,t,e,n,o,i,s,u,f,l,h)=>{t=L(t),o=wa(n,o),s=wa(i,s),f=wa(u,f),h=wa(l,h),N([a],[r],a=>(a=a[0],[new la(t,a.na,!1,!1,!0,a,e,o,s,f,h)]))},aa:(a,r)=>{H(a,{name:r=L(r),sa(a){var r=(r=a+4)?Ia(l,r,d[a>>2],!0):"";return Vr(a),r},wa(a,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var t="string"==typeof r;if(!(t||ArrayBuffer.isView(r)&&1==r.BYTES_PER_ELEMENT))throw new W("Cannot pass non-string to std::string");var e=t?Pa(r):r.length,n=_r(4+e+1),o=n+4;return d[n>>2]=e,t?Sa(r,l,o,e+1):l.set(r,o),null!==a&&a.push(Vr,n),n},Ea:B,Aa(a){Vr(a)}})},A:(a,r,t)=>{if(t=L(t),2===r)var e=Ua,n=za,o=Ma;else e=Fa,n=Na,o=La;H(a,{name:t,sa:a=>{var t=e(a+4,d[a>>2]*r,!0);return Vr(a),t},wa:(a,e)=>{if("string"!=typeof e)throw new W(`Cannot pass non-string to C++ string type ${t}`);var i=o(e),s=_r(4+i+r);return d[s>>2]=i/r,n(e,s+4,i+r),null!==a&&a.push(Vr,s),s},Ea:B,Aa(a){Vr(a)}})},s:(a,r,t,e,n,o)=>{q[a]={name:L(r),nb:wa(t,e),Ha:wa(n,o),rb:[]}},l:(a,r,t,e,n,o,i,s,u,f)=>{q[a].rb.push({Gb:L(r),Lb:t,Jb:wa(e,n),Kb:o,Vb:i,Ub:wa(s,u),Wb:f})},ca:(a,r)=>{H(a,{Nb:!0,name:r=L(r),sa:()=>{},wa:()=>{}})},I:()=>{P=!1,Wa=0},i:(a,r,t)=>{var[e,...n]=((a,r)=>{for(var t=Array(a),e=0;e<a;++e)t[e]=Ta(d[r+4*e>>2],`parameter ${e}`);return t})(a,r),o=e.wa.bind(e),i=n.map(a=>a.Ea.bind(a));a--;var s=Array(a);return r=`methodCaller<(${n.map(a=>a.name)}) => ${e.name}>`,(a=>{var r=Ha.length;return Ha.push(a),r})(Y(r,(r,e,n,u)=>{for(var f=0,l=0;l<a;++l)s[l]=i[l](u+f),f+=8;switch(t){case 0:var h=ka(r).apply(null,s);break;case 2:h=Reflect.construct(ka(r),s);break;case 3:h=s[0];break;case 1:h=ka(r)[Ja(e)](...s)}return h=o(r=[],h),r.length&&(d[n>>2]=Ea(r)),h}))},a:Ca,W:a=>a?(a=Ja(a),Ea(globalThis[a])):Ea(globalThis),q:(a,r)=>(a=ka(a),r=ka(r),Ea(a[r])),f:a=>{9<a&&(Aa[a+1]+=1)},$:(a,r)=>(a=ka(a))instanceof ka(r),j:Ka,Z:Ka,u:a=>"number"==typeof(a=ka(a)),x:a=>"string"==typeof(a=ka(a)),F:()=>Ea([]),o:a=>Ea(Ja(a)),h:a=>{var r=ka(a);I(r),Ca(a)},z:a=>(a=ka(a),Ea(typeof a)),G:(a,r)=>{if(Ur[a]&&(clearTimeout(Ur[a].id),delete Ur[a]),!r)return 0;var t=setTimeout(()=>{delete Ur[a],(a=>{if(!A)try{if(a(),!(P||0<Wa))try{i=a=i,Mr(a)}catch(a){zr(a)}}catch(a){zr(a)}})(()=>Yr(a,performance.now()))},r);return Ur[a]={id:t,qc:r},0},S:(a,r,t,e)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),d[a>>2]=60*Math.max(o,n),w[r>>2]=Number(o!=n),a=(r=a=>{var r=Math.abs(a);return`UTC${0<=a?"-":"+"}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`})(o),r=r(n),n<o?(Sa(a,l,t,17),Sa(r,l,e,17)):(Sa(a,l,e,17),Sa(r,l,t,17))},P:function(a,r,t){return 0<=a&&3>=a?(m[t>>3]=BigInt(Math.round(1e6*(0===a?Date.now():performance.now()))),0):28},Y:(a,r,t)=>{Fr.length=0;for(var e;e=l[r++];){var n=105!=e;t+=(n&=112!=e)&&t%8?4:0,Fr.push(112==e?d[t>>2]:106==e?m[t>>3]:105==e?w[t>>2]:p[t>>3]),t+=n?8:4}return rt[a](...Fr)},C:(a,r)=>$(a?Ia(l,a,r):""),y:()=>performance.now(),T:Hr,H:a=>{var r=l.length;if(2147483648<(a>>>=0))return!1;for(var t=1;4>=t;t*=2){var e=r*(1+.2/t);e=Math.min(e,a+100663296);a:{e=(Math.min(2147483648,65536*Math.ceil(Math.max(a,e)/65536))-Xr.buffer.byteLength+65535)/65536|0;try{Xr.grow(e),k();var n=1;break a}catch(a){}n=void 0}if(n)return!0}return!1},X:()=>{var a=Error().stack.toString().split("\n");return"Error"==a[0]&&a.shift(),Wr(a),Nr.tb=Lr(a[3]),Nr.Ob=a,Nr.tb},V:(a,r,t)=>{if(Nr.tb==a)var e=Nr.Ob;else"Error"==(e=Error().stack.toString().split("\n"))[0]&&e.shift(),Wr(e);for(var n=3;e[n]&&Lr(e[n])!=a;)++n;for(a=0;a<t&&e[a+n];++a)w[r+4*a>>2]=Lr(e[a+n]);return a},K:(a,r)=>{var t,e=0,n=0;for(t of Jr()){var o=r+e;d[a+n>>2]=o,e+=Sa(t,l,o,1/0)+1,n+=4}return 0},L:(a,r)=>{var t=Jr();for(var e of(d[a>>2]=t.length,a=0,t))a+=Pa(e)+1;return d[r>>2]=a,0},B:a=>{i=a,Mr(a)},O:function(a){try{var r=Cr(a);if(null===r.Pa)throw new wr(8);r.kb&&(r.kb=null);try{r.qa.close&&r.qa.close(r)}catch(a){throw a}finally{sr[r.Pa]=null}return r.Pa=null,0}catch(a){if(void 0===Br||"ErrnoError"!==a.name)throw a;return a.Ta}},N:function(a,r,t,e){try{a:{var n=Cr(a);a=r;for(var o,i=r=0;i<t;i++){var s=d[a>>2],u=d[a+4>>2];a+=8;var l=n,h=s,c=u,w=o,v=f;if(0>c||0>w)throw new wr(28);if(null===l.Pa)throw new wr(8);if(1==(2097155&l.flags))throw new wr(8);if(16384==(61440&l.node.mode))throw new wr(31);if(!l.qa.read)throw new wr(28);var p=void 0!==w;if(p){if(!l.seekable)throw new wr(70)}else w=l.position;var m=l.qa.read(l,v,h,c,w);p||(l.position+=m);var b=m;if(0>b){var y=-1;break a}if(r+=b,b<u)break;void 0!==o&&(o+=b)}y=r}return d[e>>2]=y,0}catch(a){if(void 0===Br||"ErrnoError"!==a.name)throw a;return a.Ta}},J:function(a,r,t,e){r=-9007199254740992>r||9007199254740992<r?NaN:Number(r);try{if(isNaN(r))return 61;var n=Cr(a);return jr(n,r,t),m[e>>3]=BigInt(n.position),n.kb&&0===r&&0===t&&(n.kb=null),0}catch(a){if(void 0===Br||"ErrnoError"!==a.name)throw a;return a.Ta}},M:function(a,r,t,e){try{a:{var n=Cr(a);a=r;for(var o,i=r=0;i<t;i++){var s=d[a>>2],u=d[a+4>>2];a+=8;var l=n,h=s,c=u,w=o,v=f;if(0>c||0>w)throw new wr(28);if(null===l.Pa)throw new wr(8);if(!(2097155&l.flags))throw new wr(8);if(16384==(61440&l.node.mode))throw new wr(31);if(!l.qa.write)throw new wr(28);l.seekable&&1024&l.flags&&jr(l,0,2);var p=void 0!==w;if(p){if(!l.seekable)throw new wr(70)}else w=l.position;var m=l.qa.write(l,v,h,c,w,void 0);p||(l.position+=m);var b=m;if(0>b){var y=-1;break a}if(r+=b,b<u)break;void 0!==o&&(o+=b)}y=r}return d[e>>2]=y,0}catch(a){if(void 0===Br||"ErrnoError"!==a.name)throw a;return a.Ta}},R:Mr};return at=await async function(){function a(a){return a=at=a.exports,Kr=a.ga,_r=a.ha,Vr=a.ia,Qr=a.ka,Yr=a.la,Xr=a.ea,Zr=a.ja,k(),at}var r={a:tt};return t.instantiateWasm?new Promise(e=>{t.instantiateWasm(r,(r,t)=>{e(a(r))})}):(y??=t.locateFile?t.locateFile?t.locateFile("arcgis-knowledge-client-core-simd.wasm",n):n+"arcgis-knowledge-client-core-simd.wasm":new URL("arcgis-knowledge-client-core-simd.wasm","").href,a((await async function(a){var r=y;if(!o)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,a)}catch(a){$(`wasm streaming compile failed: ${a}`),$("falling back to ArrayBuffer instantiation")}return async function(a,r){try{var t=await x(a);return await WebAssembly.instantiate(t,r)}catch(a){$(`failed to asynchronously prepare wasm: ${a}`),E(a)}}(r,a)}(r)).instance))}(),function(){function a(){if(t.calledRun=!0,!A){var a,r;if(C=!0,t.noFSInit||lr||(lr=!0,a??=t.stdin,r??=t.stdout,e??=t.stderr,a?qr("stdin",a):Sr("/dev/tty","/dev/stdin"),r?qr("stdout",null,r):Sr("/dev/tty","/dev/stdout"),e?qr("stderr",null,e):Sr("/dev/tty1","/dev/stderr"),Pr("/dev/stdin",0),Pr("/dev/stdout",1),Pr("/dev/stderr",1)),at.fa(),hr=!1,s?.(t),t.onRuntimeInitialized?.(),t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;){var e=t.postRun.shift();R.push(e)}T(R)}}if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)S();T(D),t.setStatus?(t.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>t.setStatus(""),1),a()},1)):a()}(),C?t:new Promise((a,r)=>{s=a,u=r})}t.d(r,{default:()=>e})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4342],{46140(e,t,r){r.d(t,{A:()=>i});var n=r(49186);class i{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){const[r,s]=e.split("."),o=/^\s*\d+\s*$/;if(!r?.match||!o.test(r))throw new n.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!s?.match||!o.test(s))throw new n.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(s,10);return new i(a,l,t)}}},62815(e,t,r){r.d(t,{N:()=>a,d:()=>l});var n=r(86211),i=r(73941),s=r(21325),o=r(52006);function a(e,t,r){const n=l(t,r);if(1!==n)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,n);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const r of e.curvePaths)for(const e of r){const r=(0,o.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}}(e,n);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const r of e.curveRings)for(const e of r){const r=(0,o.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}}(e,n);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,n);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,n);default:return}}function l(e,t){return null==e||null==t||t.vcsWkid||(0,s.aI)(e,t)||(0,i.xP)(e)||(0,i.xP)(t)?1:(0,n.G9)(e)/(0,n.G9)(t)}},32756(e,t,r){r.d(t,{Rr:()=>a,fY:()=>c,ne:()=>l});var n=r(5482),i=r(93637),s=r(91429),o=r(91880);function a(e,t,r){if(!e)return null;const n=e.find(e=>!!e.field);if(!n)return null;const i=new o.A;return i.read(n,r),[i]}const l={type:[o.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,n){const s=e.find(e=>!!e.field);s&&(0,i.sM)(r,[s.toJSON()],t)}}}},c=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,n.Cg)([(0,s.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.OrderedLayer")],r),r}},33143(e,t,r){r.d(t,{A:()=>d});var n=r(5482),i=r(69540),s=r(25482),o=r(91429),a=r(8631),l=r(29005),c=r(36005),u=r(43937);let d=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,n.Cg)([(0,c.w)("domains")],d.prototype,"readDomains",null),(0,n.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,n.Cg)([(0,o.MZ)({type:[l.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,n.Cg)([(0,o.$K)("esri.layers.support.FeatureType")],d)},91880(e,t,r){r.d(t,{A:()=>c});var n,i=r(5482),s=r(66552),o=r(25482),a=r(91429);const l=new s.J({asc:"ascending",desc:"descending"});let c=class extends o.o{static{n=this}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.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],c.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],c.prototype,"order",void 0),c=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],c)},73681(e,t,r){r.d(t,{n:()=>l});var n=r(49186),i=r(53966),s=r(46140),o=r(95466),a=r(55674);class l{static async from(e,t,r){const o=e.dictionary_version?s.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const p=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))p.delete(e);p.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:p});const f=await(0,a.xR)(e.expression,null,d);if(!f)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const m=new c(r,h);return new l(h,u,f,m)}constructor(e,t,r,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,r,n){try{return this._reader.bind(e,r,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class c extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},58501(e,t,r){r.d(t,{q:()=>i});var n=r(62815);function i(e,t,r){if(!r?.features||!r.hasZ)return;const i=(0,n.N)(r.geometryType,t,e.outSpatialReference);if(i)for(const e of r.features)i(e.geometry)}},22671(e,t,r){r.d(t,{A:()=>w});var n,i=r(5482),s=r(52106),o=r(66552),a=r(25482),l=r(4718),c=r(91429),u=r(16930),d=r(60408),p=r(65864),f=r(50498),h=r(20437),m=r(36005),y=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,p.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=u.A.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&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e?.[r];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,s=this.features,o=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++)o?.(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,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const c=this._getHydrationFunction(e,e=>e*s+n,e=>i-e*o,a,l);for(const{geometry:e}of t)null!=e&&c&&c(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const n=u.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const s=e[t],o=r.fromJSON(s),a=s.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=n);const l=s.aggregateGeometries,c=o.aggregateGeometries;if(l&&null!=c)for(const e in c){const t=c[e],r=l[e],i=r?.spatialReference;null==t||i||(t.spatialReference=n)}i.push(o)}return i}_quantizePoints(e,t,r){let n,i;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===n&&o===i||(s.push([e-n,o-i]),n=e,i=o)}else n=t(a[0]),i=r(a[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,d.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,s=n.length;e<s;e++){const s=n[e],o=this._quantizePoints(s,t,r);o&&i.push(o)}return i.length>0?((0,d.Bi)(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,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,d.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,n=s.length;e<n;e++){const n=s[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}}if(n&&i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,n=s.length;e<n;e++){const n=s[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=r(a)}if(n&&i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,c.MZ)({type:[s.A],json:{write:!0}})],w.prototype,"features",void 0),(0,i.Cg)([(0,m.w)("features")],w.prototype,"readFeatures",null),(0,i.Cg)([(0,c.MZ)({type:[h.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,i.Cg)([(0,c.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,i.Cg)([(0,y.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i.Cg)([(0,c.MZ)({types:f.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,m.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,c.MZ)({type:u.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,c.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,i.Cg)([(0,c.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},55674(e,t,r){r.d(t,{Ad:()=>f,Gj:()=>y,QY:()=>p,lL:()=>g,xR:()=>h});var n=r(66131),i=r(49186),s=(r(44208),r(44729)),o=r(15032),a=r(65864),l=r(95466),c=r(43668),u=r(98623);const d=["geometry","scale","timeProperties"];function p(e,t){if(null!=t)for(const r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function f(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,r){return m.create(e,t,r,["$feature","$view","$config"])}class m{static async create(e,t,r,n){const{arcade:s,Dictionary:o}=await(0,c.l)();let a;try{a=s.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=s.scriptUsesGeometryEngine(a);l&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,a,null,!1,l);const u={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=s.compileScript(a,u);let p=null;null!=r&&(p=new o(r),p.immutable=!0);const f=new o;return f.immutable=!1,f.setField("scale",0),new m(e,s,a,d,t,f,p,o)}constructor(e,t,r,n,i,s,o,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=s,this._configDict=o,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=r?n.lY.epochToArcadeDate(i,r):n.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=s?null!=r?n.lY.epochToArcadeDate(s,r):n.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const n=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===u.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??u.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}}}]);
|