@arcgis/core 4.33.0-next.20250326 → 4.33.0-next.20250328
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/applications/Components/viewUtils.d.ts +3 -0
- package/applications/Components/viewUtils.js +5 -0
- package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +1 -0
- package/applications/KnowledgeStudio/layerInternalAccessUtils.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/functions/date.js +1 -1
- package/arcade/functions/feature.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetgeom.js +1 -1
- package/arcade/functions/featuresetstats.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/arcade/functions/knowledgegraph.js +1 -1
- package/arcade/functions/maths.js +1 -1
- package/arcade/functions/stats.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/geometry/functions.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/08ea652b7896c1da022d.js +1 -0
- package/assets/esri/core/workers/chunks/{66cae76da0582cfa8656.js → 0943695a1dcd21c45e83.js} +1 -1
- package/assets/esri/core/workers/chunks/09ca64184bed6abafcd9.js +1 -0
- package/assets/esri/core/workers/chunks/{c6bcfa99fb222894fa0e.js → 0a0e5d699ddb7052c5c0.js} +1 -1
- package/assets/esri/core/workers/chunks/0a675f9f69b8b13b7443.js +1 -0
- package/assets/esri/core/workers/chunks/0eed612e82a279ac8d1e.js +1 -0
- package/assets/esri/core/workers/chunks/{cbe22c58b3230b12b31a.js → 13ad4ee2e064d13ca34d.js} +1 -1
- package/assets/esri/core/workers/chunks/176e7c7c2a871bcb512e.js +1 -0
- package/assets/esri/core/workers/chunks/18d0fe269531b951e309.js +1 -0
- package/assets/esri/core/workers/chunks/201db423e3c6f947b77c.js +1 -0
- package/assets/esri/core/workers/chunks/213e82a7e3fa5b253ec1.js +1 -0
- package/assets/esri/core/workers/chunks/{22618753349eb9d8b3df.js → 222446da9cb58c3c3b7e.js} +1 -1
- package/assets/esri/core/workers/chunks/277b61af8982092a4c81.js +1 -0
- package/assets/esri/core/workers/chunks/2b07bdb6c4c4a5b2f968.js +1 -0
- package/assets/esri/core/workers/chunks/2bda2cfc6e81818d7d33.js +1 -0
- package/assets/esri/core/workers/chunks/2cbab0c078d0b844934c.js +1 -0
- package/assets/esri/core/workers/chunks/{a68b48fd1a529f69705e.js → 2fcfc21ba38d9919730a.js} +1 -1
- package/assets/esri/core/workers/chunks/{193b4fecdfee927d6200.js → 37e4f588a6896f98bce3.js} +1 -1
- package/assets/esri/core/workers/chunks/392e64a573f67817db02.js +1 -0
- package/assets/esri/core/workers/chunks/3a743653b786b010a57f.js +1 -0
- package/assets/esri/core/workers/chunks/3be007f32ea1e18b8b3b.js +1 -0
- package/assets/esri/core/workers/chunks/451555af283b32a10fef.js +1 -0
- package/assets/esri/core/workers/chunks/{835fa4484c58d9b31c78.js → 460afde071df9f35182d.js} +1 -1
- package/assets/esri/core/workers/chunks/{26bedec014488e1fc5e4.js → 4816cf647eca2f4cecc2.js} +1 -1
- package/assets/esri/core/workers/chunks/{09c9e4e94f09ba9f4c22.js → 4aa0a58ded4465ea28bd.js} +1 -1
- package/assets/esri/core/workers/chunks/4d02e211967384994e5e.js +1 -0
- package/assets/esri/core/workers/chunks/4d798da25a726f179089.js +319 -0
- package/assets/esri/core/workers/chunks/51339193abddfe37745d.js +1 -0
- package/assets/esri/core/workers/chunks/{0a98dc3ea67ce97a6e7b.js → 5269793822e41dd07fe1.js} +1 -1
- package/assets/esri/core/workers/chunks/52d160cb7921ae7a4f57.js +1 -0
- package/assets/esri/core/workers/chunks/{630a9afdf0523c27ddb6.js → 555c95b149e3a82a4460.js} +1 -1
- package/assets/esri/core/workers/chunks/{eab1e3c101158675abba.js → 5660f479c005149bce8d.js} +1 -1
- package/assets/esri/core/workers/chunks/5a51c75a2932d9da001a.js +1 -0
- package/assets/esri/core/workers/chunks/{37a3533f004bf2e888da.js → 5d01f0b86566d08ba29d.js} +1 -1
- package/assets/esri/core/workers/chunks/{0576b035c1654a43ad5c.js → 5de3aee547113bfd59df.js} +1 -1
- package/assets/esri/core/workers/chunks/{45eee326f7a649c5a15b.js → 626db8488f9d931cf55c.js} +2 -2
- package/assets/esri/core/workers/chunks/{5a6f7360183693f8490d.js → 6339a24874c698594101.js} +1 -1
- package/assets/esri/core/workers/chunks/63dade3e1cc7f5b76846.js +1 -0
- package/assets/esri/core/workers/chunks/6c378e7a6ca29d530880.js +1 -0
- package/assets/esri/core/workers/chunks/71e46e866c23372b0b58.js +1 -0
- package/assets/esri/core/workers/chunks/{c591527543fd75a917d4.js → 72c7126dbd27fa48fcdb.js} +1 -1
- package/assets/esri/core/workers/chunks/{d459c790a3b89ac53d2d.js → 759c12b0715279e3c0f6.js} +1 -1
- package/assets/esri/core/workers/chunks/75a04b073231da70c18d.js +1 -0
- package/assets/esri/core/workers/chunks/75fa861b5757551f8fdc.js +1 -0
- package/assets/esri/core/workers/chunks/7655be1470ce39f0e494.js +1 -0
- package/assets/esri/core/workers/chunks/796cf1c2ca9955595836.js +1 -0
- package/assets/esri/core/workers/chunks/79c4f10da8360ee60cd2.js +1 -0
- package/assets/esri/core/workers/chunks/{49c346d2fb8538990f45.js → 7d1c39c2a80e20a0595f.js} +1 -1
- package/assets/esri/core/workers/chunks/7f36cffc6ed984b7e467.js +1 -0
- package/assets/esri/core/workers/chunks/{fa3eeb40e2d732c184d8.js → 7f8c7e3e41e51ab4d612.js} +1 -1
- package/assets/esri/core/workers/chunks/80aaf31c8eec3cff2add.js +1 -0
- package/assets/esri/core/workers/chunks/82353e59ac6d909dcf41.js +1 -0
- package/assets/esri/core/workers/chunks/84d301e1b6b0d0b48f51.js +1 -0
- package/assets/esri/core/workers/chunks/86931186095c23e47c0c.js +1 -0
- package/assets/esri/core/workers/chunks/86ee278919038260696e.js +39 -0
- package/assets/esri/core/workers/chunks/{4496ef270c700078df0c.js → 8752f807c05d1ec215e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{59e4e780dcdfed555ca5.js → 8ef5e6f1c606e5e41002.js} +1 -1
- package/assets/esri/core/workers/chunks/{55c7c51e56d72f507c22.js → 90afead317186b31b2f9.js} +1 -1
- package/assets/esri/core/workers/chunks/90c893959145827961ac.js +1 -0
- package/assets/esri/core/workers/chunks/931275cfa2c55eb0f504.js +1 -0
- package/assets/esri/core/workers/chunks/{7e0e9ca84490a0c67197.js → 98da74243df03e0cc70d.js} +1 -1
- package/assets/esri/core/workers/chunks/{354117429b3a0a0794c9.js → 999e8dbe6f4d0665b3ab.js} +1 -1
- package/assets/esri/core/workers/chunks/9c59fc2df8081e65a128.js +1 -0
- package/assets/esri/core/workers/chunks/a348ff2dd936c6bf9399.js +1 -0
- package/assets/esri/core/workers/chunks/a53e9f5092de715da025.js +1 -0
- package/assets/esri/core/workers/chunks/a9b6377f1fef5826f28d.js +1 -0
- package/assets/esri/core/workers/chunks/{8063e35dacf8f99471d8.js → aa404aaec843a4f46ab6.js} +1 -1
- package/assets/esri/core/workers/chunks/{21016d58428b15f7427c.js → aa712f850fd129ca5ed8.js} +1 -1
- package/assets/esri/core/workers/chunks/ab0113d1269675dcd520.js +1 -0
- package/assets/esri/core/workers/chunks/aff7c4477e1f0c31fffa.js +1 -0
- package/assets/esri/core/workers/chunks/{726e3f413824f02fe689.js → bd2dcc55ac3418421ee5.js} +1 -1
- package/assets/esri/core/workers/chunks/bf453744067267e84d1b.js +1 -0
- package/assets/esri/core/workers/chunks/c2f38c66fae2cdb57445.js +1 -0
- package/assets/esri/core/workers/chunks/c7aa4a8263e21f631004.js +1 -0
- package/assets/esri/core/workers/chunks/{b8a4352f83502449ff95.js → cbbbaccc0d3683e1c0fe.js} +1 -1
- package/assets/esri/core/workers/chunks/{e4290719c8afc2a4ee8c.js → cc441051a52bfbda9caf.js} +1 -1
- package/assets/esri/core/workers/chunks/{3be465c653236d6d8c1f.js → d2c7067bb6654c0e2793.js} +1 -1
- package/assets/esri/core/workers/chunks/{bc3f42401131a12fce9b.js → d2eb3802fa003c2d497e.js} +1 -1
- package/assets/esri/core/workers/chunks/d3912886ac2910290f43.js +1 -0
- package/assets/esri/core/workers/chunks/da7c14ae1a25fc7163ce.js +1 -0
- package/assets/esri/core/workers/chunks/daa54c8a317c27881763.js +1 -0
- package/assets/esri/core/workers/chunks/e08bff9f8247909776a4.js +1 -0
- package/assets/esri/core/workers/chunks/e15c612caadf7bac4ab9.js +1 -0
- package/assets/esri/core/workers/chunks/{d5d2a4e8e19898d86c6d.js → e2029267cddb8e2effab.js} +1 -1
- package/assets/esri/core/workers/chunks/e3ef0451dcdc2e966628.js +1 -0
- package/assets/esri/core/workers/chunks/e7e987558cf017c62458.js +1 -0
- package/assets/esri/core/workers/chunks/{042771b4e56355924140.js → e9993d4f2bfdc434fbcc.js} +1 -1
- package/assets/esri/core/workers/chunks/eabfab23246d4a052ea3.js +1 -0
- package/assets/esri/core/workers/chunks/ed3d1d0465f4a4d8df4a.js +1 -0
- package/assets/esri/core/workers/chunks/{4dc1e7d7ac2a4b0144c4.js → f128d3431da86e484117.js} +28 -29
- package/assets/esri/core/workers/chunks/{ed4afafbcb31491c2049.js → f452ca61842dbe8de9af.js} +1 -1
- package/assets/esri/core/workers/chunks/f54546c155fba2fd3a7e.js +1 -0
- package/assets/esri/core/workers/chunks/{4c8164955f8d844c09ee.js → f8d1c7df671733c3325c.js} +1 -1
- package/assets/esri/core/workers/chunks/{e45404a982e173459990.js → f92d521ed3df3c9f737b.js} +1 -1
- package/assets/esri/core/workers/chunks/{b2289c18c02c868a2939.js → f9bedb421d4e115a888f.js} +1 -1
- package/assets/esri/core/workers/chunks/{55f7b1de8882569861c0.js → faed301a25252c619cff.js} +1 -1
- package/assets/esri/core/workers/chunks/fb22b2e4988ecf4d6376.js +1 -0
- package/assets/esri/core/workers/chunks/fb455fd89b74b70a6a2b.js +1 -0
- package/assets/esri/core/workers/chunks/{6d77c7e9dec323fc4145.js → fb603edd374e24f366ff.js} +1 -1
- package/chunks/ComponentShader.glsl.js +25 -25
- package/chunks/HUDMaterial.glsl.js +2 -2
- package/chunks/LineMarker.glsl.js +26 -26
- package/chunks/Point2D.js +1 -1
- package/chunks/ProjectionTransformation.js +1 -1
- package/chunks/QuadraticBezier.js +1 -1
- package/chunks/RibbonLine.glsl.js +35 -33
- package/chunks/Terrain.glsl.js +33 -33
- package/chunks/aiServices.js +1 -1
- package/chunks/array.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/core/Accessor.js +1 -1
- package/core/accessorSupport/utils.js +1 -1
- package/core/workers/registry.js +1 -1
- package/geometry/operators/projectOperator.js +1 -1
- package/geometry/operators/shapePreservingProjectOperator.js +1 -1
- package/geometry/support/meshUtils/elevation.js +1 -1
- package/geometry/support/meshUtils.js +1 -1
- package/interfaces.d.ts +284 -10
- package/intl/locale.js +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/MapImageLayer.js +1 -1
- package/layers/TileLayer.js +1 -1
- package/layers/support/RasterWorker.js +1 -1
- package/layers/support/VideoElement.js +1 -1
- package/layers/support/rasterDatasets/FunctionRaster.js +1 -1
- package/layers/support/rasterFunctions/clipUtils.js +1 -1
- package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
- package/package.json +2 -2
- package/rest/networks/queryAssociations.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/WebStyleSymbol.js +1 -1
- package/symbols/support/symbolUtils.js +1 -1
- package/views/2d/LabelManager.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/2d/layers/support/util.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Slice/RotateManipulator.js +1 -1
- package/views/3d/layers/DrapedSubView3D.js +1 -1
- package/views/3d/layers/GraphicsView3D.js +1 -1
- package/views/3d/layers/ImageryLayerView3D.js +1 -1
- package/views/3d/layers/MapImageLayerView3D.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/TileLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/support/ImageHighlightHelper3D.js +5 -0
- package/views/3d/layers/support/SublayerPopupHighlightHelper3D.js +5 -0
- package/views/3d/terrain/Overlay.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/RasterTile.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +9 -10
- package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlightOverlay.js +11 -0
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRendering.glsl.js +3 -6
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/BlendLayersOutput.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileBackground.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/Program.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/Texture.js +1 -1
- package/views/3d/webgl-engine/lib/VertexAttribute.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.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/DefaultTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/PointRendererTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.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/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/FocusArea.js +1 -1
- package/views/GroundView.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/VideoView.d.ts +4 -0
- package/views/VideoView.js +1 -1
- package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
- package/views/layers/support/highlightUtils.js +5 -0
- package/views/support/GroundViewElevationSampler.js +1 -1
- package/views/support/TextureCompressionHandle.js +5 -0
- package/views/support/TextureCompressionHelper.js +1 -1
- package/views/support/TextureCompressionWorker.js +5 -0
- package/views/support/TextureCompressionWorkerHandle.js +5 -0
- package/views/support/imageReprojection.js +1 -1
- package/views/webgl/ShaderBuilder.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/TextureDescriptor.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
- package/widgets/CatalogLayerList.js +1 -1
- package/widgets/Directions.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/LayerList/ListItem.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend.js +1 -1
- package/widgets/TableList/ListItem.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/widgets/ValuePicker.js +1 -1
- package/widgets/support/uriUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0059295780fa4a090f30.js +0 -319
- package/assets/esri/core/workers/chunks/07910d16d1efae41d4bc.js +0 -1
- package/assets/esri/core/workers/chunks/0a3c1642cfabf9acd5c5.js +0 -1
- package/assets/esri/core/workers/chunks/0b7331613f91a3258352.js +0 -1
- package/assets/esri/core/workers/chunks/1a09dfb2c9fd7cd84cd4.js +0 -1
- package/assets/esri/core/workers/chunks/1dd6d68d23ba07587ae4.js +0 -1
- package/assets/esri/core/workers/chunks/2079f9d28e4199714f22.js +0 -1
- package/assets/esri/core/workers/chunks/29ba2022c2978e9bd53e.js +0 -1
- package/assets/esri/core/workers/chunks/29fe3e9a0ecab74bb729.js +0 -1
- package/assets/esri/core/workers/chunks/35f3eef81fac7924a487.js +0 -1
- package/assets/esri/core/workers/chunks/3fc18638f8799b85001d.js +0 -1
- package/assets/esri/core/workers/chunks/4539a802cba77a7a7cc7.js +0 -1
- package/assets/esri/core/workers/chunks/4d7bd2bbe9045a2fee7a.js +0 -1
- package/assets/esri/core/workers/chunks/50b6be13c270d7ac80d3.js +0 -1
- package/assets/esri/core/workers/chunks/54ace3e4802934f3f9f2.js +0 -1
- package/assets/esri/core/workers/chunks/5656cc44e3d4547668db.js +0 -1
- package/assets/esri/core/workers/chunks/597f450a57750637cb4d.js +0 -1
- package/assets/esri/core/workers/chunks/6e7577cb6378ff34e722.js +0 -1
- package/assets/esri/core/workers/chunks/6eb8d7edafeafeb10cae.js +0 -1
- package/assets/esri/core/workers/chunks/6ff981ec0c725efe5525.js +0 -1
- package/assets/esri/core/workers/chunks/71bd94cc789a55910f92.js +0 -1
- package/assets/esri/core/workers/chunks/762567124623f6d11e67.js +0 -1
- package/assets/esri/core/workers/chunks/77845cd5d824c1004bfa.js +0 -1
- package/assets/esri/core/workers/chunks/78683f1aadc1377be5fd.js +0 -1
- package/assets/esri/core/workers/chunks/7a4413a188a8f1affb2f.js +0 -1
- package/assets/esri/core/workers/chunks/7d3b2bdc75525d47389c.js +0 -1
- package/assets/esri/core/workers/chunks/81bf362ec0d23ffdc90c.js +0 -39
- package/assets/esri/core/workers/chunks/81f2f1614ea27f4c2e65.js +0 -1
- package/assets/esri/core/workers/chunks/901c957c049f53318e87.js +0 -1
- package/assets/esri/core/workers/chunks/94f41ef15f6c61562e5e.js +0 -1
- package/assets/esri/core/workers/chunks/95f23bd17ce9e07fc8ef.js +0 -1
- package/assets/esri/core/workers/chunks/96d7f47ea8fbf345101c.js +0 -1
- package/assets/esri/core/workers/chunks/9f312f7284e506a84ed7.js +0 -1
- package/assets/esri/core/workers/chunks/a59ad50d932da1e28c8f.js +0 -1
- package/assets/esri/core/workers/chunks/ac86d0b31f6368bd1fb1.js +0 -1
- package/assets/esri/core/workers/chunks/ad9b3b83aa96db7b79ea.js +0 -1
- package/assets/esri/core/workers/chunks/afe94e351b4a50d7bc53.js +0 -1
- package/assets/esri/core/workers/chunks/b02ac03503bfff1ff922.js +0 -1
- package/assets/esri/core/workers/chunks/b8416f2560710258c239.js +0 -1
- package/assets/esri/core/workers/chunks/b948fe33b4d650eea796.js +0 -1
- package/assets/esri/core/workers/chunks/ba47e43ef039fe4b8c5c.js +0 -1
- package/assets/esri/core/workers/chunks/be002f24beb832a369ce.js +0 -1
- package/assets/esri/core/workers/chunks/bf3c4c1bff8b71bc0b13.js +0 -1
- package/assets/esri/core/workers/chunks/d45ff061bf71b73e9f26.js +0 -1
- package/assets/esri/core/workers/chunks/d8ddff920725acb99200.js +0 -1
- package/assets/esri/core/workers/chunks/db4c110ab4c26c4b768c.js +0 -1
- package/assets/esri/core/workers/chunks/dfa4be2e07cc4c0938b0.js +0 -1
- package/assets/esri/core/workers/chunks/e088edb9ffbaa1ed12eb.js +0 -1
- package/assets/esri/core/workers/chunks/e0ac90b4ad8c36fb7d70.js +0 -1
- package/assets/esri/core/workers/chunks/e491daf73ab1264aa1b9.js +0 -1
- package/assets/esri/core/workers/chunks/f2a6287c8d28be24f71e.js +0 -1
- package/assets/esri/core/workers/chunks/f454e773505c0eef2f9d.js +0 -1
- package/assets/esri/core/workers/chunks/f4861d73c62096f73e48.js +0 -1
- package/assets/esri/core/workers/chunks/f70dd16f14279bb7e60d.js +0 -1
- package/assets/esri/core/workers/chunks/fa011ad649c05201e92a.js +0 -1
- package/views/3d/webgl-engine/lib/TextureCompressionWorker.js +0 -5
- package/views/3d/webgl-engine/lib/TextureCompressionWorkerHandle.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[655],{16405:(t,e,r)=>{r.d(e,{A:()=>m});var s,o=r(90237),i=r(69622),l=r(66552),a=r(4718),n=r(10107),u=(r(44208),r(53966),r(40608)),p=r(5443),d=r(16930),h=r(28735);const c=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let y=s=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new s({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map((t=>Array.isArray(t)?JSON.stringify(t):t)));let s="";if(this.extent){const t=(0,h.Cv)(this.extent,d.A.WGS84);null!=t&&(s=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let o=this.query;!this.disableExtraQuery&&t.extraQuery&&(o="("+o+")"+t.extraQuery);const i={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map((t=>c.toJSON(t.trim()))).join(","),i.sortOrder=this.sortOrder),{query:{...e,...i}}}};(0,o._)([(0,n.MZ)()],y.prototype,"categories",void 0),(0,o._)([(0,n.MZ)()],y.prototype,"disableExtraQuery",void 0),(0,o._)([(0,n.MZ)({type:p.A})],y.prototype,"extent",void 0),(0,o._)([(0,n.MZ)()],y.prototype,"filter",void 0),(0,o._)([(0,n.MZ)()],y.prototype,"num",void 0),(0,o._)([(0,n.MZ)()],y.prototype,"query",void 0),(0,o._)([(0,n.MZ)()],y.prototype,"sortField",void 0),(0,o._)([(0,n.MZ)()],y.prototype,"sortOrder",null),(0,o._)([(0,n.MZ)()],y.prototype,"start",void 0),y=s=(0,o._)([(0,u.$)("esri.portal.PortalQueryParams")],y);const m=y},20655:(t,e,r)=>{r.d(e,{A:()=>G});var s=r(90237),o=r(92602),i=r(70333),l=r(78888),a=r(49186),n=r(25482),u=r(92474),p=r(97768),d=r(74887),h=r(10107),c=r(56507),y=(r(44208),r(87811),r(36005)),m=r(40608),_=r(5443),v=r(73444);let f;var M=r(96360),g=r(16405),Z=r(69622);r(53966);let S=class extends Z.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s._)([(0,h.MZ)()],S.prototype,"nextQueryParams",void 0),(0,s._)([(0,h.MZ)()],S.prototype,"queryParams",void 0),(0,s._)([(0,h.MZ)()],S.prototype,"results",void 0),(0,s._)([(0,h.MZ)()],S.prototype,"total",void 0),S=(0,s._)([(0,m.$)("esri.portal.PortalQueryResult")],S);const P=S;var O,w=r(41318),A=r(926);let C;const b={PortalGroup:()=>Promise.resolve({default:M.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:w.A})};let D=class extends(n.A.JSONSupportMixin(u.A)){static{O=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){q.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)o.A.request.trustedServers.includes(e)||o.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,A.Jn)(this.url)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=w.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then((({default:e})=>{(0,d.Te)(t),C=e})).then((()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t))).then((t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==O.AUTH_MODE_AUTO&&this.authMode!==O.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch((()=>{}))}}(new WeakRef(this))),q.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)}));return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(6131),r.e(9953),r.e(7251),r.e(812),r.e(9186),r.e(1435)]).then(r.bind(r,68611))).default;return t?t.map((t=>new e({id:t.id,url:t.url}))):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){const s=await this._fetchBasemaps3D(t,e);r.unshift(...s)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new g.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find((t=>"Web Scene"===t.type));return r?new C({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then((t=>t.categorySchema)):(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(t){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",t).then((t=>t.classificationSchema)):null}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new g.A({num:100,sortField:"title"});if(e?.length){const s=[];for(const t of e)s.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,t).then((t=>t.results))}return(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return f&&!f.destroyed||(f=new O),f}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const s=this.restUrl+"/portals/self",o={authMode:t,query:{culture:(0,v.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),e&&(o.query.default=!0),this.request(s,o)}queryPortal(t,e,r,s){const o=(0,c.dp)(g.A,e),i=e=>this.request(this.restUrl+t,{...o.toRequestOptions(this),...s}).then((t=>{const r=o.clone();return r.start=t.nextStart,new P({nextQueryParams:r,queryParams:o,total:t.total,results:O._resultsToTypedArray(e,{portal:this},t,s)})})).then((t=>Promise.all(t.results.map((e=>"function"==typeof e.when?e.when():t))).then((()=>t),(e=>((0,d.QP)(e),t)))));return r&&b[r]?b[r]().then((({default:t})=>((0,d.Te)(s),i(t)))):i()}signIn(){if(this.hasAPIKey)return this.load().then((()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")}));if(this.authMode===O.AUTH_MODE_ANONYMOUS||this.authMode===O.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then((()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then((()=>null))):"loading"===this.loadStatus?this.load().then((()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate")))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate")))).then((t=>{t&&(this.sourceJSON=t,this.read(t))}));return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==O.AUTH_MODE_NO_PROMPT}).then((e=>t(e))):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then((t=>{const e=O._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map((e=>"function"==typeof e.when?e.when():t))).then((()=>e),(()=>e))}))}request(t,e={}){const r={f:"json",...e.query},{authMode:s=(this.authMode===O.AUTH_MODE_ANONYMOUS||this.authMode===O.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:s,body:o,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then((t=>t.data))}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new O({sourceJSON:t})}_getHelperService(t){const e=this.helperServices&&this.helperServices[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new g.A;r.query=t||(this.hasAPIKey?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,e);if(!s.total)return[];const o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";const i=await o.queryItems(r,e);return i.total?i.results.filter((t=>"Web Map"===t.type)).map((t=>new C({portalItem:t}))):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];if(this.hasAPIKey)return[];const s=new g.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,e);if(!o.total)return[];const i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(s,e);return l.total?l.results.filter((t=>"Web Scene"===t.type)).map((t=>new C({portalItem:t}))):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=C.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,s){let o;if(r){const i=null!=s?s.signal:null;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(o=o.map((r=>{const s=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof s.load&&s.load(i),s})))}else o=[];return o}};(0,s._)([(0,h.MZ)()],D.prototype,"access",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"allSSL",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"authMode",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"authorizedCrossOriginDomains",void 0),(0,s._)([(0,y.w)("authorizedCrossOriginDomains")],D.prototype,"readAuthorizedCrossOriginDomains",null),(0,s._)([(0,h.MZ)()],D.prototype,"basemapGalleryGroupQuery",void 0),(0,s._)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],D.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"bingKey",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"canListApps",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"canListData",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"canListPreProvisionedItems",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"canProvisionDirectPurchase",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"canSearchPublic",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"canShareBingPublic",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"canSharePublic",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"canSignInArcGIS",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"canSignInIDP",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"colorSetsGroupQuery",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"commentsEnabled",void 0),(0,s._)([(0,h.MZ)({type:Date})],D.prototype,"created",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"credential",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"culture",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"currentVersion",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"customBaseUrl",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"default3DBasemapQuery",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"defaultBasemap",void 0),(0,s._)([(0,y.w)("defaultBasemap")],D.prototype,"readDefaultBasemap",null),(0,s._)([(0,h.MZ)()],D.prototype,"defaultDevBasemap",void 0),(0,s._)([(0,y.w)("defaultDevBasemap")],D.prototype,"readDefaultDevBasemap",null),(0,s._)([(0,h.MZ)({type:_.A})],D.prototype,"defaultExtent",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"defaultVectorBasemap",void 0),(0,s._)([(0,y.w)("defaultVectorBasemap")],D.prototype,"readDefaultVectorBasemap",null),(0,s._)([(0,h.MZ)()],D.prototype,"description",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"eueiEnabled",void 0),(0,s._)([(0,h.MZ)({readOnly:!0})],D.prototype,"extraQuery",null),(0,s._)([(0,h.MZ)()],D.prototype,"featuredGroups",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"featuredItemsGroupQuery",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"galleryTemplatesGroupQuery",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"layoutGroupQuery",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"livingAtlasGroupQuery",void 0),(0,s._)([(0,h.MZ)({readOnly:!0})],D.prototype,"hasAPIKey",null),(0,s._)([(0,h.MZ)()],D.prototype,"hasCategorySchema",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"hasClassificationSchema",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"helpBase",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"helperServices",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"helpMap",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"homePageFeaturedContent",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"homePageFeaturedContentCount",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"httpPort",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"httpsPort",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"id",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"ipCntryCode",void 0),(0,s._)([(0,h.MZ)({readOnly:!0})],D.prototype,"isOrganization",null),(0,s._)([(0,h.MZ)()],D.prototype,"isPortal",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"isReadOnly",void 0),(0,s._)([(0,h.MZ)({readOnly:!0})],D.prototype,"itemPageUrl",null),(0,s._)([(0,h.MZ)()],D.prototype,"layerTemplatesGroupQuery",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"maxTokenExpirationMinutes",void 0),(0,s._)([(0,h.MZ)({type:Date})],D.prototype,"modified",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"name",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"portalHostname",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"portalMode",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"portalProperties",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"region",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"recycleBinEnabled",void 0),(0,s._)([(0,h.MZ)({readOnly:!0})],D.prototype,"restUrl",null),(0,s._)([(0,h.MZ)()],D.prototype,"rotatorPanels",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"showHomePageDescription",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"sourceJSON",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"staticImagesUrl",void 0),(0,s._)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],D.prototype,"stylesGroupQuery2d",void 0),(0,s._)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],D.prototype,"stylesGroupQuery3d",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"supportsHostedServices",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"symbolSetsGroupQuery",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"templatesGroupQuery",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"thumbnail",void 0),(0,s._)([(0,h.MZ)({readOnly:!0})],D.prototype,"thumbnailUrl",null),(0,s._)([(0,h.MZ)()],D.prototype,"units",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"url",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"urlKey",void 0),(0,s._)([(0,y.w)("urlKey")],D.prototype,"readUrlKey",null),(0,s._)([(0,h.MZ)()],D.prototype,"user",void 0),(0,s._)([(0,y.w)("user")],D.prototype,"readUser",null),(0,s._)([(0,h.MZ)()],D.prototype,"use3dBasemaps",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"useDefault3dBasemap",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"useStandardizedQuery",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"useVectorBasemaps",void 0),(0,s._)([(0,h.MZ)()],D.prototype,"vectorBasemapGalleryGroupQuery",void 0),D=O=(0,s._)([(0,m.$)("esri.portal.Portal")],D);const G=D,q=new FinalizationRegistry((t=>{t.remove()}))},41318:(t,e,r)=>{r.d(e,{A:()=>c});var s=r(90237),o=r(49186),i=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let n=class extends i.A{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new o.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s._)([(0,l.MZ)({type:Date})],n.prototype,"created",void 0),(0,s._)([(0,l.MZ)()],n.prototype,"id",void 0),(0,s._)([(0,l.MZ)()],n.prototype,"portal",void 0),(0,s._)([(0,l.MZ)()],n.prototype,"title",void 0),(0,s._)([(0,l.MZ)({readOnly:!0})],n.prototype,"url",null),(0,s._)([(0,l.MZ)()],n.prototype,"username",void 0),n=(0,s._)([(0,a.$)("esri.portal.PortalFolder")],n);const u=n;var p,d=r(96360);let h=p=class extends i.A{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.username}`:null}addItem(t){const e=t&&t.item,r=t?.data,s=t?.folder,o={method:"post"};e&&(o.query=e.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then((t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load())))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const s=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:s}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",s=[],i=t.map((t=>t.id));if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find((t=>e.itemId===t.id)),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new o.A("portal:delete-item-failed",e.error.message,e.error)),s.push({item:r,success:i,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then((t=>{let e;return e=t&&t.folders?t.folders.map((t=>{const e=u.fromJSON(t);return e.portal=this.portal,e})):[],e}))}fetchGroups(){return this.portal.request(this.url??"").then((t=>{let e;return e=t&&t.groups?t.groups.map((t=>{const e=d.A.fromJSON(t);return e.portal=this.portal,e})):[],e}))}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:s}=await r.e(812).then(r.bind(r,80812)),o={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:o});let l;return i?.items?(l=i.items.map((t=>{const e=s.fromJSON(t);return e.portal=this.portal,e})),await Promise.all(l.map((t=>t.load()))),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then((t=>t.tags))}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new d.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,s=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new p({sourceJSON:t});return e.read(t),e}};(0,s._)([(0,l.MZ)()],h.prototype,"access",void 0),(0,s._)([(0,l.MZ)({type:Date})],h.prototype,"created",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"culture",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"description",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"email",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"favGroupId",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"fullName",void 0),(0,s._)([(0,l.MZ)({type:Date})],h.prototype,"modified",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"orgId",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"portal",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"preferredView",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"privileges",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"region",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"role",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"roleId",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"sourceJSON",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"thumbnail",void 0),(0,s._)([(0,l.MZ)({readOnly:!0})],h.prototype,"thumbnailUrl",null),(0,s._)([(0,l.MZ)()],h.prototype,"units",void 0),(0,s._)([(0,l.MZ)({readOnly:!0})],h.prototype,"userContentUrl",null),(0,s._)([(0,l.MZ)({readOnly:!0})],h.prototype,"url",null),(0,s._)([(0,l.MZ)()],h.prototype,"username",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"userLicenseTypeId",void 0),(0,s._)([(0,l.MZ)()],h.prototype,"userType",void 0),h=p=(0,s._)([(0,a.$)("esri.portal.PortalUser")],h);const c=h},61893:(t,e,r)=>{r.d(e,{A:()=>h});var s,o,i=r(90237),l=r(69622),a=r(74887),n=r(40608);(o=s||(s={}))[o.PENDING=0]="PENDING",o[o.RESOLVED=1]="RESOLVED",o[o.REJECTED=2]="REJECTED";class u{constructor(){this._resolver=(0,a.Tw)(),this._status=s.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=s.RESOLVED,this._cleanUp()}),(()=>{this._status=s.REJECTED,this._cleanUp()})),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===s.RESOLVED}isRejected(){return this._status===s.REJECTED}isFulfilled(){return this._status!==s.PENDING}abort(){this._resolver.reject((0,a.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=(0,a.Tw)(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then((()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()}),(t=>{this.isFulfilled()||this._allPromise!==r||(0,a.zf)(t)||this._resolver.reject(t)})),t.resolve()}}const p=t=>{let e=class extends t{constructor(...t){super(...t),this._promiseProps=new u,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then((()=>this)).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}};return e=(0,i._)([(0,n.$)("esri.core.Promise")],e),e};let d=class extends(p(l.A)){};d=(0,i._)([(0,n.$)("esri.core.Promise")],d),function(t){t.EsriPromiseMixin=p}(d||(d={}));const h=d},92474:(t,e,r)=>{r.d(e,{A:()=>m});var s=r(90237),o=r(49186),i=r(97768),l=r(61893),a=r(74887),n=r(67076),u=r(10107),p=r(40608);const d="loaded",h=t=>{let e=class extends t{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise((t=>{const e=this.load.bind(this);this.load=r=>{const s=new Promise(((t,e)=>{const s=(0,a.NY)(r,e);this.destroyed&&e(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally((()=>{s&&s.remove()}))}));if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal})}return t(),s}}))),this.when((()=>{this._set("loadStatus",d),this._loadController=null}),(t=>{this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null}))}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new o.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s._)([(0,u.MZ)({readOnly:!0})],e.prototype,"loaded",null),(0,s._)([(0,u.MZ)({readOnly:!0})],e.prototype,"loadError",void 0),(0,s._)([(0,u.MZ)({clonable:!1})],e.prototype,"loadStatus",void 0),(0,s._)([(0,u.MZ)({type:[n.A],readOnly:!0})],e.prototype,"loadWarnings",null),e=(0,s._)([(0,p.$)("esri.core.Loadable")],e),e};let c=class extends(h(l.A)){};var y;c=(0,s._)([(0,p.$)("esri.core.Loadable")],c),(y=c||(c={})).LoadableMixin=h,y.isLoadable=function(t){return!(!t||!t.load)};const m=c},96360:(t,e,r)=>{r.d(e,{A:()=>h});var s,o=r(90237),i=r(49186),l=r(25482),a=r(10107),n=r(56507),u=(r(44208),r(87811),r(40608)),p=r(16405);let d=s=class extends l.A{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then((e=>{const r=e.categorySchema||[];return r.some((t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source))?this._fetchCategorySchemaSet("LivingAtlas",t):r}))}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new s({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(p.A,t);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new p.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new p.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then((t=>{const s=t.contentCategorySetsGroupQuery;if(s){const t=new p.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")})).then((r=>{if(r.total){const s=r.results[0],o=new p.A({num:1,query:`typekeywords:"${t}"`});return s.queryItems(o,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")})).then((t=>t.total?t.results[0].fetchData("json",e).then((t=>{const e=t?.categorySchema;return e?.length?e:[]})):[]))}};(0,o._)([(0,a.MZ)()],d.prototype,"access",void 0),(0,o._)([(0,a.MZ)({type:Date})],d.prototype,"created",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"description",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"id",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"isInvitationOnly",void 0),(0,o._)([(0,a.MZ)({type:Date})],d.prototype,"modified",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"owner",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"portal",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"snippet",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"sortField",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"sortOrder",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"sourceJSON",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"tags",void 0),(0,o._)([(0,a.MZ)()],d.prototype,"thumbnail",void 0),(0,o._)([(0,a.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,o._)([(0,a.MZ)()],d.prototype,"title",void 0),(0,o._)([(0,a.MZ)({readOnly:!0})],d.prototype,"url",null),d=s=(0,o._)([(0,u.$)("esri.portal.PortalGroup")],d);const h=d}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1053,3656],{3209:(e,n,t)=>{t.d(n,{A:()=>C,B:()=>V,C:()=>j,D:()=>E,E:()=>H,F:()=>I,G:()=>k,H:()=>_,I:()=>q,J:()=>B,K:()=>P,L:()=>M,M:()=>O,N:()=>F,a:()=>u,b:()=>f,c:()=>c,d:()=>l,e:()=>o,f:()=>a,g:()=>J,h:()=>s,i:()=>g,j:()=>G,k:()=>m,l:()=>b,m:()=>x,n:()=>D,o:()=>h,p:()=>R,q:()=>v,r:()=>y,s:()=>w,t:()=>d,u:()=>S,v:()=>T,w:()=>p,x:()=>A,y:()=>L,z:()=>z});var r=t(49930),i=t(7320);function o(e){return r.G.extendedSpatialReferenceInfo(e)}function c(e,n,t){return r.G.clip(i.g,e,n,t)}function u(e,n,t){return r.G.cut(i.g,e,n,t)}function f(e,n,t){return r.G.contains(i.g,e,n,t)}function l(e,n,t){return r.G.crosses(i.g,e,n,t)}function a(e,n,t,o){return r.G.distance(i.g,e,n,t,o)}function s(e,n,t){return r.G.equals(i.g,e,n,t)}function g(e,n,t){return r.G.intersects(i.g,e,n,t)}function d(e,n,t){return r.G.touches(i.g,e,n,t)}function p(e,n,t){return r.G.within(i.g,e,n,t)}function G(e,n,t){return r.G.disjoint(i.g,e,n,t)}function h(e,n,t){return r.G.overlaps(i.g,e,n,t)}function y(e,n,t,o){return r.G.relate(i.g,e,n,t,o)}function m(e,n){return r.G.isSimple(i.g,e,n)}function w(e,n){return r.G.simplify(i.g,e,n)}function b(e,n,t=!1){return r.G.convexHull(i.g,e,n,t)}function x(e,n,t){return r.G.difference(i.g,e,n,t)}function D(e,n,t){return r.G.symmetricDifference(i.g,e,n,t)}function R(e,n,t){return r.G.intersect(i.g,e,n,t)}function S(e,n,t=null){return r.G.union(i.g,e,n,t)}function v(e,n,t,o,c,u,f){return r.G.offset(i.g,e,n,t,o,c,u,f)}function T(e,n,t,o,c=!1){return r.G.buffer(i.g,e,n,t,o,c)}function A(e,n,t,o,c,u,f){return r.G.geodesicBuffer(i.g,e,n,t,o,c,u,f)}function L(e,n,t,o=!0){return r.G.nearestCoordinate(i.g,e,n,t,o)}function z(e,n,t){return r.G.nearestVertex(i.g,e,n,t)}function C(e,n,t,o,c){return r.G.nearestVertices(i.g,e,n,t,o,c)}function V(e,n,t,i){if(null==n||null==i)throw new Error("Illegal Argument Exception");const o=r.G.rotate(n,t,i);return o.spatialReference=e,o}function j(e,n,t){if(null==n||null==t)throw new Error("Illegal Argument Exception");const i=r.G.flipHorizontal(n,t);return i.spatialReference=e,i}function E(e,n,t){if(null==n||null==t)throw new Error("Illegal Argument Exception");const i=r.G.flipVertical(n,t);return i.spatialReference=e,i}function H(e,n,t,o,c){return r.G.generalize(i.g,e,n,t,o,c)}function I(e,n,t,o){return r.G.densify(i.g,e,n,t,o)}function k(e,n,t,o,c=0){return r.G.geodesicDensify(i.g,e,n,t,o,c)}function _(e,n,t){return r.G.planarArea(i.g,e,n,t)}function q(e,n,t){return r.G.planarLength(i.g,e,n,t)}function B(e,n,t,o){return r.G.geodesicArea(i.g,e,n,t,o)}function P(e,n,t,o){return r.G.geodesicLength(i.g,e,n,t,o)}function M(e,n,t){return null==n||null==t?[]:r.G.intersectLinesToPoints(i.g,e,n,t)}function O(e,n){r.G.changeDefaultSpatialReferenceTolerance(e,n)}function F(e){r.G.clearDefaultSpatialReferenceTolerance(e)}const J=Object.freeze(Object.defineProperty({__proto__:null,buffer:T,changeDefaultSpatialReferenceTolerance:O,clearDefaultSpatialReferenceTolerance:F,clip:c,contains:f,convexHull:b,crosses:l,cut:u,densify:I,difference:x,disjoint:G,distance:a,equals:s,extendedSpatialReferenceInfo:o,flipHorizontal:j,flipVertical:E,generalize:H,geodesicArea:B,geodesicBuffer:A,geodesicDensify:k,geodesicLength:P,intersect:R,intersectLinesToPoints:M,intersects:g,isSimple:m,nearestCoordinate:L,nearestVertex:z,nearestVertices:C,offset:v,overlaps:h,planarArea:_,planarLength:q,relate:y,rotate:V,simplify:w,symmetricDifference:D,touches:d,union:S,within:p},Symbol.toStringTag,{value:"Module"}))},11053:(e,n,t)=>{t.d(n,{c:()=>r,g:()=>i});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},47559:(e,n,t)=>{t.r(n),t.d(n,{buffer:()=>r.v,changeDefaultSpatialReferenceTolerance:()=>r.M,clearDefaultSpatialReferenceTolerance:()=>r.N,clip:()=>r.c,contains:()=>r.b,convexHull:()=>r.l,crosses:()=>r.d,cut:()=>r.a,densify:()=>r.F,difference:()=>r.m,disjoint:()=>r.j,distance:()=>r.f,equals:()=>r.h,extendedSpatialReferenceInfo:()=>r.e,flipHorizontal:()=>r.C,flipVertical:()=>r.D,generalize:()=>r.E,geodesicArea:()=>r.J,geodesicBuffer:()=>r.x,geodesicDensify:()=>r.G,geodesicLength:()=>r.K,intersect:()=>r.p,intersectLinesToPoints:()=>r.L,intersects:()=>r.i,isSimple:()=>r.k,nearestCoordinate:()=>r.y,nearestVertex:()=>r.z,nearestVertices:()=>r.A,offset:()=>r.q,overlaps:()=>r.o,planarArea:()=>r.H,planarLength:()=>r.I,relate:()=>r.r,rotate:()=>r.B,simplify:()=>r.s,symmetricDifference:()=>r.n,touches:()=>r.t,union:()=>r.u,within:()=>r.w}),t(49930),t(7320);var r=t(3209)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1053,2390],{11053:(e,t,r)=>{r.d(t,{c:()=>n,g:()=>i});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},22390:(e,t,r)=>{r.d(t,{isAnimatedPNG:()=>f,parseApng:()=>l});var n,i=r(11053),s=r(74887),a=r(78659),o={exports:{}};o.exports;const u=(0,i.g)((n||(n=1,h=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.isNotPNG=function(e){return e===s},t.isNotAPNG=function(e){return e===a},t.default=function(e){var t=new Uint8Array(e);if(Array.prototype.some.call(o,(function(e,r){return e!==t[r]})))return s;var r=!1;if(u(t,(function(e){return!(r="acTL"===e)})),!r)return a;var n=[],h=[],p=null,m=null,d=0,v=new i.APNG;if(u(t,(function(e,t,r,s){var a=new DataView(t.buffer);switch(e){case"IHDR":p=t.subarray(r+8,r+8+s),v.width=a.getUint32(r+8),v.height=a.getUint32(r+12);break;case"acTL":v.numPlays=a.getUint32(r+8+4);break;case"fcTL":m&&(v.frames.push(m),d++),(m=new i.Frame).width=a.getUint32(r+8+4),m.height=a.getUint32(r+8+8),m.left=a.getUint32(r+8+12),m.top=a.getUint32(r+8+16);var o=a.getUint16(r+8+20),u=a.getUint16(r+8+22);0===u&&(u=100),m.delay=1e3*o/u,m.delay<=10&&(m.delay=100),v.playTime+=m.delay,m.disposeOp=a.getUint8(r+8+24),m.blendOp=a.getUint8(r+8+25),m.dataParts=[],0===d&&2===m.disposeOp&&(m.disposeOp=1);break;case"fdAT":m&&m.dataParts.push(t.subarray(r+8+4,r+8+s));break;case"IDAT":m&&m.dataParts.push(t.subarray(r+8,r+8+s));break;case"IEND":h.push(l(t,r,12+s));break;default:n.push(l(t,r,12+s))}})),m&&v.frames.push(m),0==v.frames.length)return a;var _=new Blob(n),g=new Blob(h);return v.frames.forEach((function(e){var t=[];t.push(o),p.set(f(e.width),0),p.set(f(e.height),4),t.push(c("IHDR",p)),t.push(_),e.dataParts.forEach((function(e){return t.push(c("IDAT",e))})),t.push(g),e.imageData=new Blob(t,{type:"image/png"}),delete e.dataParts,t=null})),v};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(1)),i=r(2),s=new Error("Not a PNG"),a=new Error("Not an animated PNG"),o=new Uint8Array([137,80,78,71,13,10,26,10]);function u(e,t){var r=new DataView(e.buffer),n=8,i=void 0,s=void 0,a=void 0;do{s=r.getUint32(n),a=t(i=h(e,n+4,4),e,n,s),n+=12+s}while(!1!==a&&"IEND"!=i&&n<e.length)}function h(e,t,r){var n=Array.prototype.slice.call(e.subarray(t,t+r));return String.fromCharCode.apply(String,n)}function l(e,t,r){var n=new Uint8Array(r);return n.set(e.subarray(t,t+r)),n}var c=function(e,t){var r=e.length+t.length,i=new Uint8Array(r+8),s=new DataView(i.buffer);s.setUint32(0,t.length),i.set(function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(e),4),i.set(t,8);var a=(0,n.default)(i,4,r);return s.setUint32(r+4,a),i},f=function(e){return new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e])}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,i=t,s=t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-t);i<s;i++)n=n>>>8^r[255&(n^e[i])];return~n};for(var r=new Uint32Array(256),n=0;n<256;n++){for(var i=n,s=0;s<8;s++)i=1&i?3988292384^i>>>1:i>>>1;r[n]=i}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=t.APNG=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(3));function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.APNG=function(){function e(){s(this,e),this.width=0,this.height=0,this.numPlays=0,this.playTime=0,this.frames=[]}return n(e,[{key:"createImages",value:function(){return Promise.all(this.frames.map((function(e){return e.createImage()})))}},{key:"getPlayer",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.createImages().then((function(){return new i.default(t,e,r)}))}}]),e}(),t.Frame=function(){function e(){s(this,e),this.left=0,this.top=0,this.width=0,this.height=0,this.delay=0,this.disposeOp=0,this.blendOp=0,this.imageData=null,this.imageElement=null}return n(e,[{key:"createImage",value:function(){var e=this;return this.imageElement?Promise.resolve():new Promise((function(t,r){var n=URL.createObjectURL(e.imageData);e.imageElement=document.createElement("img"),e.imageElement.onload=function(){URL.revokeObjectURL(n),t()},e.imageElement.onerror=function(){URL.revokeObjectURL(n),e.imageElement=null,r(new Error("Image creation error"))},e.imageElement.src=n}))}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){function t(e,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.playbackRate=1,i._currentFrameNumber=0,i._ended=!1,i._paused=!0,i._numPlays=0,i._rafId=null,i._apng=e,i.context=r,i.stop(),n&&i.play(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"renderNextFrame",value:function(){this._currentFrameNumber=(this._currentFrameNumber+1)%this._apng.frames.length,this._currentFrameNumber===this._apng.frames.length-1&&(this._numPlays++,0!==this._apng.numPlays&&this._numPlays>=this._apng.numPlays&&(this._ended=!0,this._paused=!0)),this._prevFrame&&1==this._prevFrame.disposeOp?this.context.clearRect(this._prevFrame.left,this._prevFrame.top,this._prevFrame.width,this._prevFrame.height):this._prevFrame&&2==this._prevFrame.disposeOp&&this.context.putImageData(this._prevFrameData,this._prevFrame.left,this._prevFrame.top);var e=this.currentFrame;this._prevFrame=e,this._prevFrameData=null,2==e.disposeOp&&(this._prevFrameData=this.context.getImageData(e.left,e.top,e.width,e.height)),0==e.blendOp&&this.context.clearRect(e.left,e.top,e.width,e.height),this.context.drawImage(e.imageElement,e.left,e.top),this.emit("frame",this._currentFrameNumber),this._ended&&this.emit("end")}},{key:"play",value:function(){var e=this;this._rafId&&cancelAnimationFrame(this._rafId),this.emit("play"),this._ended&&this.stop(),this._paused=!1;var t=performance.now()+this.currentFrame.delay/this.playbackRate;this._rafId=requestAnimationFrame((function r(n){if(!e._ended&&!e._paused){if(n>=t){for(;n-t>=e._apng.playTime/e.playbackRate;)t+=e._apng.playTime/e.playbackRate,e._numPlays++;do{e.renderNextFrame(),t+=e.currentFrame.delay/e.playbackRate}while(!e._ended&&!e._paused&&n>t)}e._rafId=requestAnimationFrame(r)}}))}},{key:"pause",value:function(){this._paused||(this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null),this.emit("pause"),this._paused=!0)}},{key:"stop",value:function(){this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null),this.emit("stop"),this._numPlays=0,this._ended=!1,this._paused=!0,this._currentFrameNumber=-1,this.context.clearRect(0,0,this._apng.width,this._apng.height),this.renderNextFrame()}},{key:"currentFrameNumber",get:function(){return this._currentFrameNumber}},{key:"currentFrame",get:function(){return this._apng.frames[this._currentFrameNumber]}},{key:"paused",get:function(){return this._paused}},{key:"ended",get:function(){return this._ended}}]),t}(function(e){return e&&e.__esModule?e:{default:e}}(r(4)).default);t.default=i},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,a,o,u,h;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(s(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),r.apply(this,o)}else if(i(r))for(o=Array.prototype.slice.call(arguments,1),a=(h=r.slice()).length,u=0;u<a;u++)h[u].apply(this,o);return!0},r.prototype.addListener=function(e,t){var a;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},r.prototype.removeListener=function(e,t){var r,s,a,o;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(r=this._events[e]).length,s=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(o=a;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){s=o;break}if(s<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(s,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}}])},o.exports=h()),o.exports));var h;async function l(e,t){const r=u(e);if(r instanceof Error)throw r;await r.createImages(),(0,s.Te)(t);const{frames:n,width:i,height:o}=r,h=document.createElement("canvas");h.width=i,h.height=o;const l=h.getContext("2d",{willReadFrequently:!0}),c=[],f=[];let p=0;for(const e of n){const t=(0,a.l5)(e.delay||100);f.push(t),p+=t;const r=e.imageElement;0===e.blendOp?l.globalCompositeOperation="copy":l.globalCompositeOperation="source-over";const n=2===e.disposeOp?l.getImageData(e.left,e.top,e.width,e.height):void 0;l.drawImage(r,e.left,e.top);const s=l.getImageData(0,0,i,o);c.push(s),0===e.disposeOp||(1===e.disposeOp?l.clearRect(e.left,e.top,e.width,e.height):2===e.disposeOp&&l.putImageData(n,e.left,e.top))}return{frameCount:n.length,duration:p,frameDurations:f,getFrame:e=>c[e],width:i,height:o}}const c=[137,80,78,71,13,10,26,10];function f(e){if(!function(e){const t=new Uint8Array(e);return!c.some(((e,r)=>e!==t[r]))}(e))return!1;const t=new DataView(e),r=new Uint8Array(e);let n,i=8;do{const e=t.getUint32(i);if(n=String.fromCharCode.apply(String,Array.prototype.slice.call(r.subarray(i+4,i+8))),"acTL"===n)return!0;i+=12+e}while("IEND"!==n&&i<r.length);return!1}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1053,6387],{3209:(e,n,t)=>{t.d(n,{A:()=>T,B:()=>D,C:()=>A,D:()=>C,E:()=>L,F:()=>j,G:()=>I,H:()=>O,I:()=>V,J:()=>_,K:()=>k,L:()=>H,M:()=>q,N:()=>B,a:()=>c,b:()=>u,c:()=>s,d:()=>a,e:()=>o,f:()=>f,g:()=>X,h:()=>l,i:()=>g,j:()=>d,k:()=>x,l:()=>y,m:()=>w,n:()=>M,o:()=>G,p:()=>R,q:()=>b,r:()=>m,s:()=>v,t:()=>h,u:()=>P,v:()=>Z,w:()=>p,x:()=>z,y:()=>E,z:()=>S});var i=t(49930),r=t(7320);function o(e){return i.G.extendedSpatialReferenceInfo(e)}function s(e,n,t){return i.G.clip(r.g,e,n,t)}function c(e,n,t){return i.G.cut(r.g,e,n,t)}function u(e,n,t){return i.G.contains(r.g,e,n,t)}function a(e,n,t){return i.G.crosses(r.g,e,n,t)}function f(e,n,t,o){return i.G.distance(r.g,e,n,t,o)}function l(e,n,t){return i.G.equals(r.g,e,n,t)}function g(e,n,t){return i.G.intersects(r.g,e,n,t)}function h(e,n,t){return i.G.touches(r.g,e,n,t)}function p(e,n,t){return i.G.within(r.g,e,n,t)}function d(e,n,t){return i.G.disjoint(r.g,e,n,t)}function G(e,n,t){return i.G.overlaps(r.g,e,n,t)}function m(e,n,t,o){return i.G.relate(r.g,e,n,t,o)}function x(e,n){return i.G.isSimple(r.g,e,n)}function v(e,n){return i.G.simplify(r.g,e,n)}function y(e,n,t=!1){return i.G.convexHull(r.g,e,n,t)}function w(e,n,t){return i.G.difference(r.g,e,n,t)}function M(e,n,t){return i.G.symmetricDifference(r.g,e,n,t)}function R(e,n,t){return i.G.intersect(r.g,e,n,t)}function P(e,n,t=null){return i.G.union(r.g,e,n,t)}function b(e,n,t,o,s,c,u){return i.G.offset(r.g,e,n,t,o,s,c,u)}function Z(e,n,t,o,s=!1){return i.G.buffer(r.g,e,n,t,o,s)}function z(e,n,t,o,s,c,u){return i.G.geodesicBuffer(r.g,e,n,t,o,s,c,u)}function E(e,n,t,o=!0){return i.G.nearestCoordinate(r.g,e,n,t,o)}function S(e,n,t){return i.G.nearestVertex(r.g,e,n,t)}function T(e,n,t,o,s){return i.G.nearestVertices(r.g,e,n,t,o,s)}function D(e,n,t,r){if(null==n||null==r)throw new Error("Illegal Argument Exception");const o=i.G.rotate(n,t,r);return o.spatialReference=e,o}function A(e,n,t){if(null==n||null==t)throw new Error("Illegal Argument Exception");const r=i.G.flipHorizontal(n,t);return r.spatialReference=e,r}function C(e,n,t){if(null==n||null==t)throw new Error("Illegal Argument Exception");const r=i.G.flipVertical(n,t);return r.spatialReference=e,r}function L(e,n,t,o,s){return i.G.generalize(r.g,e,n,t,o,s)}function j(e,n,t,o){return i.G.densify(r.g,e,n,t,o)}function I(e,n,t,o,s=0){return i.G.geodesicDensify(r.g,e,n,t,o,s)}function O(e,n,t){return i.G.planarArea(r.g,e,n,t)}function V(e,n,t){return i.G.planarLength(r.g,e,n,t)}function _(e,n,t,o){return i.G.geodesicArea(r.g,e,n,t,o)}function k(e,n,t,o){return i.G.geodesicLength(r.g,e,n,t,o)}function H(e,n,t){return null==n||null==t?[]:i.G.intersectLinesToPoints(r.g,e,n,t)}function q(e,n){i.G.changeDefaultSpatialReferenceTolerance(e,n)}function B(e){i.G.clearDefaultSpatialReferenceTolerance(e)}const X=Object.freeze(Object.defineProperty({__proto__:null,buffer:Z,changeDefaultSpatialReferenceTolerance:q,clearDefaultSpatialReferenceTolerance:B,clip:s,contains:u,convexHull:y,crosses:a,cut:c,densify:j,difference:w,disjoint:d,distance:f,equals:l,extendedSpatialReferenceInfo:o,flipHorizontal:A,flipVertical:C,generalize:L,geodesicArea:_,geodesicBuffer:z,geodesicDensify:I,geodesicLength:k,intersect:R,intersectLinesToPoints:H,intersects:g,isSimple:x,nearestCoordinate:E,nearestVertex:S,nearestVertices:T,offset:b,overlaps:G,planarArea:O,planarLength:V,relate:m,rotate:D,simplify:v,symmetricDifference:M,touches:h,union:P,within:p},Symbol.toStringTag,{value:"Module"}))},7320:(e,n,t)=>{t.d(n,{g:()=>i});const i={convertToGEGeometry:function(e,n){return null==n?null:e.convertJSONToGeometry(n)},exportPoint:function(e,n,t){const i=new r(e.getPointX(n),e.getPointY(n),t),o=e.hasZ(n),s=e.hasM(n);return o&&(i.z=e.getPointZ(n)),s&&(i.m=e.getPointM(n)),i},exportPolygon:function(e,n,t){return new o(e.exportPaths(n),t,e.hasZ(n),e.hasM(n))},exportPolyline:function(e,n,t){return new s(e.exportPaths(n),t,e.hasZ(n),e.hasM(n))},exportMultipoint:function(e,n,t){return new c(e.exportPoints(n),t,e.hasZ(n),e.hasM(n))},exportExtent:function(e,n,t){const i=e.hasZ(n),r=e.hasM(n),o=new u(e.getXMin(n),e.getYMin(n),e.getXMax(n),e.getYMax(n),t);if(i){const t=e.getZExtent(n);o.zmin=t.vmin,o.zmax=t.vmax}if(r){const t=e.getMExtent(n);o.mmin=t.vmin,o.mmax=t.vmax}return o}};class r{constructor(e,n,t){this.x=e,this.y=n,this.spatialReference=t,this.z=void 0,this.m=void 0}}class o{constructor(e,n,t,i){this.rings=e,this.spatialReference=n,this.hasZ=void 0,this.hasM=void 0,t&&(this.hasZ=t),i&&(this.hasM=i)}}class s{constructor(e,n,t,i){this.paths=e,this.spatialReference=n,this.hasZ=void 0,this.hasM=void 0,t&&(this.hasZ=t),i&&(this.hasM=i)}}class c{constructor(e,n,t,i){this.points=e,this.spatialReference=n,this.hasZ=void 0,this.hasM=void 0,t&&(this.hasZ=t),i&&(this.hasM=i)}}class u{constructor(e,n,t,i,r){this.xmin=e,this.ymin=n,this.xmax=t,this.ymax=i,this.spatialReference=r,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},11053:(e,n,t)=>{t.d(n,{c:()=>i,g:()=>r});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},68887:(e,n,t)=>{t.r(n),t.d(n,{executeGEOperation:()=>r});var i=t(3209);function r(e){return(0,i.g[e.operation])(...e.parameters)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1878],{11878:(t,s,i)=>{i.d(s,{T:()=>h});var e=i(55537),n=i(83661);class r{constructor(t,s,i){if(t instanceof r)return this.data=t.data,this.N=t.N,this.M=t.M,t.data=null,t.N=0,void(t.M=0);this.data=t,this.N=s,this.M=i}assignCopy(t){return this===t||((0,e.g)(this.N*this.M==t.N*t.M),this.data.set(t.data),this.N=t.N,this.M=t.M),this}setZero(){return this.data?.fill(0),this}setIdentity(){for(let t=0;t<this.N;t++)for(let s=0;s<this.M;s++)this.setRowCol(t,s,t===s?1:0);return this}rows(){return this.N}cols(){return this.M}row(t){return(0,e.g)(0),{}}set(t,s){return this.data[t]=s,this}setRowCol(t,s,i){return this.data[t*this.M+s]=i,this}at(t){return this.data[t]}atRowCol(t,s){return this.data[t*this.M+s]}mulScalar(t,s){(0,e.g)(0)}mul(t,s){if((0,e.g)(this.M===t.rows()),(0,e.g)(this.N===s.rows()),(0,e.g)(t.cols()===s.cols()),s===this){const i=new Float64Array(this.N*this.M),e=new r(i,this.N,this.M);return this.mul(t,e),void s.assignCopy(e)}if(s===t){const i=new Float64Array(t.N*t.M),e=new r(i,t.N,t.M);return this.mul(t,e),void s.assignCopy(e)}const i=t.cols();for(let e=0;e<this.N;e++)for(let n=0;n<i;n++){let i=0;for(let s=0;s<this.M;s++)i+=this.atRowCol(e,s)*t.atRowCol(s,n);s.setRowCol(e,n,i)}}mulTranspose(t,s){if((0,e.g)(this.M===t.cols()),(0,e.g)(this.N===s.rows()),(0,e.g)(t.rows()===s.cols()),s===this){const i=new Float64Array(this.N*this.M),e=new r(i,this.N,this.M);return this.mulTranspose(t,e),void s.assignCopy(e)}if(s===t){const i=new Float64Array(t.N*t.M),e=new r(i,t.N,t.M);return this.mulTranspose(t,e),void s.assignCopy(e)}const i=t.rows();for(let e=0;e<this.N;e++)for(let n=0;n<i;n++){let i=0;for(let s=0;s<this.M;s++)i+=this.atRowCol(e,s)*t.atRowCol(n,s);s.setRowCol(e,n,i)}}mulLeft(t,s){(0,e.g)(0)}mulLeftTranspose(t,s){(0,e.g)(0)}mulDiag(t,s){if((0,e.g)(this.M===t.N*t.M),(0,e.g)(this.N===s.rows()),(0,e.g)(this.M===s.cols()),s===this){const i=new Float64Array(this.N*this.M),e=new r(i,this.N,this.M);return this.mulDiag(t,e),void s.assignCopy(e)}const i=this.M;for(let e=0;e<this.N;e++)for(let n=0;n<i;n++)s.setRowCol(e,n,this.atRowCol(e,n)*t.at(n))}transposeInPlace(){if(this.N===this.M){for(let t=0;t<this.N;t++)for(let s=t+1;s<this.M;s++){const i=this.atRowCol(t,s);this.setRowCol(t,s,this.atRowCol(s,t)),this.setRowCol(s,t,i)}return this}const t=new Float64Array(this.N*this.M),s=new r(t,this.N,this.M);return s.assignCopy(this),this.M=(0,n.b)(this.N,this.N=this.M),s.transpose(this),this}transpose(t){if(this!==t){r.checkDims(t,this.M,this.N);for(let s=0;s<this.N;s++)for(let i=0;i<this.M;i++)t.setRowCol(i,s,this.atRowCol(s,i))}else t.transposeInPlace()}add(t,s){}svd(t,s,i,n=!1){if(r.checkDims(t,this.N,this.M),r.checkDims(s,this.M,1),r.checkDims(i,this.M,this.M),n){if((0,e.g)(this.N===this.M),!this.symmetricEigen(s,i))return!1;for(let t=0;t<this.M;++t)s.at(t)<0&&s.set(t,0);return t.assignCopy(i),!0}let o,h,u,a,l,c,m,y=0,x=0,f=0,d=0,b=0;const v=this.M,_=this.N;t.assignCopy(this);const w=new Float64Array(v),N=new r(w,v,1),p=(t,s)=>s>=0?Math.abs(t):-Math.abs(t),M=(t,s)=>{if((t=Math.abs(t))>(s=Math.abs(s))){const i=s/t;return t*Math.sqrt(i*i+1)}if(s>0){const i=t/s;return s*Math.sqrt(i*i+1)}return 0};for(let i=0;i<v;i++){if(y=i+1,N.set(i,d*f),f=a=d=0,i<_){for(let s=i;s<_;s++)d+=Math.abs(t.atRowCol(s,i));if(d){for(let s=i;s<_;s++)t.setRowCol(s,i,t.atRowCol(s,i)/d),a+=t.atRowCol(s,i)*t.atRowCol(s,i);h=t.atRowCol(i,i),f=-p(Math.sqrt(a),h),u=h*f-a,t.setRowCol(i,i,h-f);for(let s=y;s<v;s++){a=0;for(let e=i;e<_;e++)a+=t.atRowCol(e,i)*t.atRowCol(e,s);h=a/u;for(let e=i;e<_;e++)t.setRowCol(e,s,t.atRowCol(e,s)+h*t.atRowCol(e,i))}for(let s=i;s<_;s++)t.setRowCol(s,i,t.atRowCol(s,i)*d)}}if(s.set(i,d*f),f=a=d=0,i<_&&i!==v-1){for(let s=y;s<v;s++)d+=Math.abs(t.atRowCol(i,s));if(d){for(let s=y;s<v;s++)t.setRowCol(i,s,t.atRowCol(i,s)/d),a+=t.atRowCol(i,s)*t.atRowCol(i,s);h=t.atRowCol(i,y),f=-p(Math.sqrt(a),h),u=h*f-a,t.setRowCol(i,y,h-f);for(let s=y;s<v;s++)N.set(s,t.atRowCol(i,s)/u);for(let s=y;s<_;s++){a=0;for(let e=y;e<v;e++)a+=t.atRowCol(s,e)*t.atRowCol(i,e);for(let i=y;i<v;i++)t.setRowCol(s,i,t.atRowCol(s,i)+a*N.at(i))}for(let s=y;s<v;s++)t.setRowCol(i,s,t.atRowCol(i,s)*d)}}const e=Math.abs(s.at(i))+Math.abs(N.at(i));b=e>b?e:b}for(let s=v-1;s>=0;s--){if(s<v-1){if(f){for(let e=y;e<v;e++)i.setRowCol(e,s,t.atRowCol(s,e)/t.atRowCol(s,y)/f);for(let e=y;e<v;e++){a=0;for(let n=y;n<v;n++)a+=t.atRowCol(s,n)*i.atRowCol(n,e);for(let t=y;t<v;t++)i.setRowCol(t,e,i.atRowCol(t,e)+a*i.atRowCol(t,s))}}for(let t=y;t<v;t++)i.setRowCol(s,t,0),i.setRowCol(t,s,0)}i.setRowCol(s,s,1),f=N.at(s),y=s}for(let i=(_<v?_:v)-1;i>=0;i--){y=i+1,f=s.at(i);for(let s=y;s<v;s++)t.setRowCol(i,s,0);if(f){f=1/f;for(let s=y;s<v;s++){a=0;for(let e=y;e<_;e++)a+=t.atRowCol(e,i)*t.atRowCol(e,s);h=a/t.atRowCol(i,i)*f;for(let e=i;e<_;e++)t.setRowCol(e,s,t.atRowCol(e,s)+h*t.atRowCol(e,i))}for(let s=i;s<_;s++)t.setRowCol(s,i,t.atRowCol(s,i)*f)}else for(let s=i;s<_;s++)t.setRowCol(s,i,0);t.setRowCol(i,i,t.atRowCol(i,i)+1)}for(let e=v-1;e>=0;e--)for(let n=1;;n++){let r=1;for(y=e;y>=0;y--){if(x=y-1,Math.abs(N.at(y))+b===b){r=0;break}if(Math.abs(s.at(x))+b===b)break}if(r){o=0,a=1;for(let i=y;i<=e&&(h=a*N.at(i),N.set(i,N.at(i)*o),Math.abs(h)+b!==b);i++){f=s.at(i),u=M(h,f),s.set(i,u),u=1/u,o=f*u,a=-h*u;for(let s=0;s<_;s++)c=t.atRowCol(s,x),m=t.atRowCol(s,i),t.setRowCol(s,x,c*o+m*a),t.setRowCol(s,i,m*o-c*a)}}if(m=s.at(e),y===e){if(m<0){s.set(e,-m);for(let t=0;t<v;t++)i.setRowCol(t,e,-i.atRowCol(t,e))}break}if(100===n)return!1;l=s.at(y),x=e-1,c=s.at(x),f=N.at(x),u=N.at(e),h=((c-m)*(c+m)+(f-u)*(f+u))/(2*u*c),f=M(h,1),h=((l-m)*(l+m)+u*(c/(h+p(f,h))-u))/l,o=a=1;for(let e=y;e<=x;e++){const n=e+1;f=N.at(n),c=s.at(n),u=a*f,f*=o,m=M(h,u),N.set(e,m),o=h/m,a=u/m,h=l*o+f*a,f=f*o-l*a,u=c*a,c*=o;for(let t=0;t<v;t++)l=i.atRowCol(t,e),m=i.atRowCol(t,n),i.setRowCol(t,e,l*o+m*a),i.setRowCol(t,n,m*o-l*a);m=M(h,u),s.set(e,m),m&&(m=1/m,o=h*m,a=u*m),h=o*f+a*c,l=o*c-a*f;for(let s=0;s<_;s++)c=t.atRowCol(s,e),m=t.atRowCol(s,n),t.setRowCol(s,e,c*o+m*a),t.setRowCol(s,n,m*o-c*a)}N.set(y,0),N.set(e,h),s.set(e,l)}const g=new Float64Array(this.N),C=new Float64Array(this.M),T=new r(g,this.N,1),R=new r(C,this.M,1);let E=1;do{E*=3,E++}while(E<=this.M);do{E/=3,E=Math.trunc(E);for(let e=E;e<this.M;e++){const n=s.at(e);for(let s=0;s<this.N;s++)T.set(s,t.atRowCol(s,e));for(let t=0;t<this.M;t++)R.set(t,i.atRowCol(t,e));let r=e;for(;s.at(r-E)<n;){s.set(r,s.at(r-E));for(let s=0;s<this.N;s++)t.setRowCol(s,r,t.atRowCol(s,r-E));for(let t=0;t<this.M;t++)i.setRowCol(t,r,i.atRowCol(t,r-E));if(r-=E,r<E)break}s.set(r,n);for(let s=0;s<this.N;s++)t.setRowCol(s,r,T.at(s));for(let t=0;t<this.M;t++)i.setRowCol(t,r,R.at(t))}}while(E>1);for(let s=0;s<this.M;s++){let e=0;for(let i=0;i<this.N;i++)t.atRowCol(i,s)<0&&e++;for(let t=0;t<this.M;t++)i.atRowCol(t,s)<0&&e++;if(e>Math.trunc((this.N+this.M)/2)){for(let i=0;i<this.N;i++)t.setRowCol(i,s,-t.atRowCol(i,s));for(let t=0;t<this.M;t++)i.setRowCol(t,s,-i.atRowCol(t,s))}}return!0}isSymmetric(){if(this.N!==this.M)return!1;for(let t=0;t<this.N;t++)for(let s=t+1;s<this.M;s++)if(this.atRowCol(t,s)!==this.atRowCol(s,t))return!1;return!0}isZero(){return(0,e.g)(0),!1}isIdentity(){return(0,e.g)(0),!1}equals(t,s){if(void 0!==s&&(0,e.g)(0),this.N!==t.N||this.M!==t.M)return!1;for(let s=0;s<this.N*this.M;s++)if(this.data[s]!==t.data[s])return!1;return!0}maxElement(){return(0,e.g)(0),0}minElement(){return(0,e.g)(0),0}determinant(){if((0,e.g)(this.N===this.M),1===this.N)return this.data[0];if(2===this.N)return this.data[0]*this.data[3]-this.data[1]*this.data[2];if(3===this.N){const t=this;return t.atRowCol(0,0)*(t.atRowCol(1,1)*t.atRowCol(2,2)-t.atRowCol(1,2)*t.atRowCol(2,1))-t.atRowCol(0,1)*(t.atRowCol(1,0)*t.atRowCol(2,2)-t.atRowCol(2,0)*t.atRowCol(1,2))+t.atRowCol(0,2)*(t.atRowCol(1,0)*t.atRowCol(2,1)-t.atRowCol(1,1)*t.atRowCol(2,0))}const t=new Float64Array(this.N*this.N),s=new r(t,this.N,this.N),i=new Float64Array(this.N);if(!this.luDecomposition(s,i))return 0;let n=1;for(let t=0;t<this.N;t++)n*=s.atRowCol(t,t),i[t]!==t&&(n=-n);return n}submatrix(t,s,i){(0,e.g)(0)}inverse(t){(0,e.g)(0)}pseudoInverse(t,s=!1,i=2220446049250313e-31){if(t.setZero(),1===this.N&&1===this.M)return 0!==this.atRowCol(0,0)?t.setRowCol(0,0,1/this.atRowCol(0,0)):t.setRowCol(0,0,0),!0;if(2===this.N&&2===this.M){const s=this.atRowCol(0,0)*this.atRowCol(1,1)-this.atRowCol(0,1)*this.atRowCol(1,0),i=1e-5*(Math.abs(this.atRowCol(0,0)*this.atRowCol(1,1))+Math.abs(this.atRowCol(0,1)*this.atRowCol(1,0)));if(Math.abs(s)>i)return t.setRowCol(0,0,this.atRowCol(1,1)/s),t.setRowCol(0,1,-this.atRowCol(0,1)/s),t.setRowCol(1,0,-this.atRowCol(1,0)/s),t.setRowCol(1,1,this.atRowCol(0,0)/s),!0}const e=new Float64Array(this.N*this.M),n=new r(e,this.N,this.M),o=new Float64Array(this.M),h=new r(o,this.M,1),u=new Float64Array(this.M*this.M),a=new r(u,this.M,this.M);if(!this.svd(n,h,a,s))return!1;const l=Math.max(this.N,this.M),c=i*Math.abs(h.at(0))*l;for(let t=0;t<this.M;t++)h.at(t)>c?h.set(t,1/h.at(t)):h.set(t,0);return a.mulDiag(h,t),t.mulTranspose(n,t),!0}luDecomposition(t,s){return(0,e.g)(0),!1}symmetricEigen(t,s){(0,e.g)(this.rows()===this.cols()),(0,e.g)(this.rows()===t.rows()),(0,e.g)(s.rows()===s.cols()&&s.rows()===this.rows()),(0,e.g)(this.isSymmetric());const i=new Float64Array(this.N*this.M),n=new r(i,this.N,this.M);n.assignCopy(this);const o=100/Number.EPSILON,h=this.rows(),u=new Float64Array(h),a=new Float64Array(h),l=new r(u,h,1),c=new r(a,h,1);for(let s=0;s<h;s++)l.set(s,n.atRowCol(s,s)),t.set(s,n.atRowCol(s,s)),c.set(s,0);s.setIdentity();const m=()=>{const i=l;s.transposeInPlace();let e=1;do{e*=3,e++}while(e<=h);do{e/=3,e=Math.trunc(e);for(let n=e;n<h;n++){const r=t.at(n),o=Math.abs(r);for(let t=0;t<this.M;t++)i.set(t,s.atRowCol(t,n));let h=n;for(;Math.abs(t.at(h-e))<o;){t.set(h,t.at(h-e));for(let t=0;t<this.M;t++)s.setRowCol(t,h,s.atRowCol(t,h-e));if(h-=e,h<e)break}if(h!==n){t.set(h,r);for(let t=0;t<this.M;t++)s.setRowCol(t,h,i.at(t))}}}while(e>1)};for(let i=1;;i++){let e=0;for(let t=1;t<h;t++)for(let s=0;s<t;s++)e+=Math.abs(n.atRowCol(t,s));if(0===e)return m(),!0;const r=i<4?.2*e/(h*h):0;for(let e=0;e<h;e++)for(let u=e+1;u<h;u++){let a=o*Math.abs(n.atRowCol(u,e));if(i>4&&a<=Math.abs(t.at(e))&&a<=Math.abs(t.at(u)))n.setRowCol(u,e,0);else if(Math.abs(n.atRowCol(u,e))>r){let i,r=t.at(u)-t.at(e);if(a<Math.abs(r))i=n.atRowCol(u,e)/r;else{const t=.5*r/n.atRowCol(u,e);i=1/(Math.abs(t)+Math.sqrt(1+t*t)),t<0&&(i=-i)}const o=1/Math.sqrt(1+i*i),l=i*o,m=l/(1+o);r=i*n.atRowCol(u,e),c.set(e,c.at(e)-r),c.set(u,c.at(u)+r),t.set(e,t.at(e)-r),t.set(u,t.at(u)+r),n.setRowCol(u,e,0);let y=0;for(;y<e;y++)a=n.atRowCol(e,y),r=n.atRowCol(u,y),n.setRowCol(e,y,a-l*(r+a*m)),n.setRowCol(u,y,r+l*(a-r*m));for(y++;y<u;y++)a=n.atRowCol(y,e),r=n.atRowCol(u,y),n.setRowCol(y,e,a-l*(r+a*m)),n.setRowCol(u,y,r+l*(a-r*m));for(y++;y<h;y++)a=n.atRowCol(y,e),r=n.atRowCol(y,u),n.setRowCol(y,e,a-l*(r+a*m)),n.setRowCol(y,u,r+l*(a-r*m));for(y=0;y<h;y++)a=s.atRowCol(e,y),r=s.atRowCol(u,y),s.setRowCol(e,y,a-l*(r+a*m)),s.setRowCol(u,y,r+l*(a-r*m))}}for(let s=0;s<h;s++)l.set(s,l.at(s)+c.at(s)),t.set(s,l.at(s)),c.set(s,0)}}static checkDims(t,s,i){(0,e.g)(t.rows()===s&&t.cols()===i)}}class o extends r{constructor(t){if(t.copy){const s=new Float64Array(t.copy.N*t.copy.M);return super(s,t.copy.N,t.copy.M),this.buffer=s,void this.assignCopy(t.copy)}const s=new Float64Array(t.NN*t.MM);super(s,t.NN,t.MM),this.buffer=s,t.initializerList&&(0,n.a)(this.buffer,t.initializerList,0,0,t.initializerList.length)}assignCopy(t){return this===t||super.assignCopy(t),this}}class h{constructor(t){this.m_TransformationType=1,void 0===t?this.setIdentity():t instanceof h?this.set(t):this.setScale(t)}set(t){return this.xx=t.xx,this.xy=t.xy,this.xd=t.xd,this.yx=t.yx,this.yy=t.yy,this.yd=t.yd,this}clone(){return(new h).set(this)}setZero(){this.xx=0,this.yy=0,this.xy=0,this.yx=0,this.xd=0,this.yd=0}isEqual(t){return this===t||this.xx===t.xx&&this.xy===t.xy&&this.xd===t.xd&&this.yx===t.yx&&this.yy===t.yy&&this.yd===t.yd}transformInPlace(t){const s=this.xx*t.x+this.xy*t.y+this.xd,i=this.yx*t.x+this.yy*t.y+this.yd;t.x=s,t.y=i}transform(t){const s=t.clone();return this.transformInPlace(s),s}queryTransform(t,s){const i=this.xx*t.x+this.xy*t.y+this.xd,e=this.yx*t.x+this.yy*t.y+this.yd;s.setCoords(i,e)}transformEnvInPlace(t){if(t.isEmpty())return;const s=(0,n.m)(n.P,4);t.queryCorners(s),this.transformPoints2D(s,4,s),t.setFromPoints(s,4)}queryTransformEnv(t,s){(0,e.g)(0)}transformPoints2D(t,s,i){for(let e=0;e<s;++e)this.queryTransform(t[e],i[e])}transformInterleavedPoints(t,s,i){s*=2;const e=n.P.getNAN();for(let n=0;n<s;n+=2)e.x=t[n],e.y=t[n+1],this.transformInPlace(e),i[n]=e.x,i[n+1]=e.y}multiply(t){return h.st_multiply(this,t,this),this}mulLeft(t){return(0,e.g)(0),this}static st_multiply(t,s,i){const e=t.xx*s.xx+t.yx*s.xy,n=t.xy*s.xx+t.yy*s.xy,r=t.xd*s.xx+t.yd*s.xy+s.xd,o=t.xx*s.yx+t.yx*s.yy,h=t.xy*s.yx+t.yy*s.yy,u=t.xd*s.yx+t.yd*s.yy+s.yd;i.xx=e,i.xy=n,i.xd=r,i.yx=o,i.yy=h,i.yd=u}getCoefficients(t){(0,e.g)(t.length>=6),t[0]=this.xx,t[1]=this.xy,t[2]=this.xd,t[3]=this.yx,t[4]=this.yy,t[5]=this.yd}setCoefficients(t){(0,e.g)(t.length>=6),this.xx=t[0],this.xy=t[1],this.xd=t[2],this.yx=t[3],this.yy=t[4],this.yd=t[5]}copyTo(t){(0,e.g)(0)}initializeFromRect(t,s){t.isEmpty()||s.isEmpty()||!t.width()||!t.height()?this.setZero():(this.xy=this.yx=0,this.xx=s.width()/t.width(),this.yy=s.height()/t.height(),this.xd=s.xmin-t.xmin*this.xx,this.yd=s.ymin-t.ymin*this.yy)}initializeFromRectIsotropic(t,s){if(t.isEmpty()||!t.width()||!t.height()||s.isEmpty())this.setZero();else{this.yx=0,this.xy=0,this.xx=s.width()/t.width(),this.yy=s.height()/t.height(),this.xx>this.yy?this.xx=this.yy:this.yy=this.xx;const i=s.getCenter(),e=t.getCenter();this.xd=i.x-e.x*this.xx,this.yd=i.y-e.y*this.yy}}initializeFromTwoPointsArray(t,s){if(t[0].equals(s[0])&&t[1].equals(s[1]))return void this.setIdentity();if(t[0].equals(t[1])){if(s[0].equals(s[1]))return void this.setShift(s[0].sub(t[0]));(0,e.t)("")}if(!t[0].equals(t[1])&&s[0].equals(s[1]))return this.setZero(),void this.shift(s[0]);this.setShiftCoords(-t[0].x,-t[0].y);const i=n.P.distance(t[0],t[1]),r=n.P.distance(s[0],s[1]),o=r/i;this.scale(o,o);const h=t[1].sub(t[0]);h.divThis(i);const u=s[1].sub(s[0]);u.divThis(r);const a=h.crossProduct(u),l=h.dotProduct(u);this.rotate(l,a),this.shiftCoords(s[0].x,s[0].y)}initializeFromTwoPoints(t,s,i,e){const n=[t,s],r=[i,e];this.initializeFromTwoPointsArray(n,r)}transformSizeInPlace(t){(0,e.g)(0)}transformSize(t,s){(0,e.g)(0)}transformTol(t){return(0,e.g)(0),0}transformWithoutTranslateArray(t,s,i){for(let e=0;e<s;++e)this.transformWithoutTranslate(t[e],i[e])}transformWithoutTranslateInPlace(t){const s=this.xx*t.x+this.xy*t.y,i=this.yx*t.x+this.yy*t.y;t.setCoords(s,i)}transformWithoutTranslate(t,s){const i=this.xx*t.x+this.xy*t.y,e=this.yx*t.x+this.yy*t.y;s.setCoords(i,e)}setIdentity(){this.xx=1,this.xy=0,this.xd=0,this.yx=0,this.yy=1,this.yd=0}isIdentity(){return!(1!==this.xx||1!==this.yy||this.xy||this.xd||this.yx||this.yd)}isIdentityTol(t){const s=t*t;return!((0,n.s)(this.xd)+(0,n.s)(this.yd)>s||(0,n.s)(this.xy+this.xd)+(0,n.s)(this.yy+this.yd-1)>s||(0,n.s)(this.xx+this.xd-1)+(0,n.s)(this.yx+this.yd)>s)}isReflective(){return this.xx*this.yy-this.yx*this.xy<0}isUniform(t){const s=this.xx*this.xx+this.yx*this.yx,i=this.xy*this.xy+this.yy*this.yy,e=(s+i)*t;return Math.abs(s-i)<=e&&Math.abs(this.xx*this.xy+this.yx*this.yy)<=e}isUniformNoRotation(){return 0!==this.xx&&Math.abs(this.xx)===Math.abs(this.yy)&&0===this.xy&&0===this.yx}isTranslate(){return 1===this.xx&&1===this.yy&&!this.xy&&!this.yx}isTranslateTol(t){const s=new n.P;return s.setCoords(0,1),this.transformWithoutTranslateInPlace(s),s.y-=1,!(s.sqrLength()>t*t)&&(s.setCoords(1,0),this.transformWithoutTranslateInPlace(s),s.x-=1,s.sqrLength()<=t*t)}isOrthonormal(t){const s=new h;return s.xx=this.xx*this.xx+this.xy*this.xy,s.xy=this.xx*this.yx+this.xy*this.yy,s.yx=this.yx*this.xx+this.yy*this.xy,s.yy=this.yx*this.yx+this.yy*this.yy,s.xd=0,s.yd=0,s.isIdentityTol(t)}isDegenerate(t){return Math.abs(this.xx*this.yy-this.yx*this.xy)<=2*t*(Math.abs(this.xx*this.yy)+Math.abs(this.yx*this.xy))}isZero(){return 0===this.xx&&0===this.yy&&0===this.xy&&0===this.yx&&0===this.xd&&0===this.yd}isScaleAndTranslateTol(t){return this.xy*this.xy+this.yx*this.yx<=(this.xx*this.xx+this.yy*this.yy)*t}setTranslate(t,s){return this.xx=1,this.xy=0,this.xd=t,this.yx=0,this.yy=1,this.yd=s,this}setShiftCoords(t,s){return this.xx=1,this.xy=0,this.xd=t,this.yx=0,this.yy=1,this.yd=s,this}setShift(t){return this.xx=1,this.xy=0,this.xd=t.x,this.yx=0,this.yy=1,this.yd=t.y,this}setScaleCoords(t,s){return this.xx=t,this.xy=0,this.xd=0,this.yx=0,this.yy=s,this.yd=0,this}setScale(t){return this.setScaleCoords(t,t),this}setFlipX(t,s){return this.xx=-1,this.xy=0,this.xd=t+s,this.yx=0,this.yy=1,this.yd=0,this}setFlipY(t,s){return this.xx=1,this.xy=0,this.xd=0,this.yx=0,this.yy=-1,this.yd=t+s,this}setShear(t,s){return this.xx=1,this.xy=t,this.xd=0,this.yx=s,this.yy=1,this.yd=0,this}scale(t,s){return this.xx*=t,this.xy*=t,this.xd*=t,this.yx*=s,this.yy*=s,this.yd*=s,this}setRotateAngle(t){return this.setRotate(Math.cos(t),Math.sin(t))}setRotate(t,s){return this.xx=t,this.xy=-s,this.xd=0,this.yx=s,this.yy=t,this.yd=0,this}setRotateAngleAbout(t,s){return this.setRotateAbout(Math.cos(t),Math.sin(t),s)}setRotateAbout(t,s,i){return this.setTranslate(-i.x,-i.y),this.rotate(t,s),this.translate(i.x,i.y)}setSwapCoordinates(){return this.xx=0,this.xy=1,this.xd=0,this.yx=1,this.yy=0,this.yd=0,this}setRotateCw90(){return this.xx=0,this.xy=1,this.xd=0,this.yx=-1,this.yy=0,this.yd=0,this}setRotateCcw90(){return this.xx=0,this.xy=-1,this.xd=0,this.yx=1,this.yy=0,this.yd=0,this}shiftCoords(t,s){return this.xd+=t,this.yd+=s,this}shift(t){return this.xd+=t.x,this.yd+=t.y,this}translate(t,s){return this.xd+=t,this.yd+=s,this}flipX(t,s){return this.xx=-this.xx,this.xy=-this.xy,this.xd=t+s-this.xd,this}flipY(t,s){return this.yx=-this.yx,this.yy=-this.yy,this.yd=t+s-this.yd,this}shear(t,s){const i=new h;return i.setShear(t,s),this.multiply(i)}rotateAngle(t){const s=new h;return s.setRotateAngle(t),this.multiply(s)}rotate(t,s){const i=new h;return i.setRotate(t,s),this.multiply(i)}rotateAbout(t,s,i){return this.translate(-i.x,-i.y),this.rotate(t,s),this.translate(i.x,i.y)}rotateAngleAbout(t,s){return this.rotateAbout(Math.cos(t),Math.sin(t),s)}setInvert(t){return this.set(t),this.invertThis()}invertThis(){let t=this.xx*this.yy-this.xy*this.yx;if(0===t)return this.setZero(),this;t=1/t;const s=(this.xy*this.yd-this.xd*this.yy)*t,i=(this.xd*this.yx-this.xx*this.yd)*t,e=this.yy*t,n=-this.xy*t,r=-this.yx*t,o=this.xx*t;return this.xd=s,this.yd=i,this.xx=e,this.yy=o,this.xy=n,this.yx=r,this}invertPrecise(t){return this.set(t),this.invertPreciseThis()}invertPreciseThis(){const t=n.M.constructDouble(this.xy),s=n.M.constructDouble(this.xx),i=s.mulDouble(this.yy).sub(t.mulDouble(this.yx));if(i.isZero())return this.setZero(),this;const e=i.clone();e.invertThis();const r=n.M.constructDouble(this.xd),o=t.mulDouble(this.yd).sub(r.mulDouble(this.yy)).mul(e).toDouble(),h=r.mulDouble(this.yx).sub(s.mulDouble(this.yd)).mul(e).toDouble(),u=e.mulDouble(this.yy).toDouble(),a=e.mulDouble(-this.xy).toDouble(),l=e.mulDouble(-this.yx).toDouble(),c=e.mulDouble(this.xx).toDouble();return this.xd=o,this.yd=h,this.xx=u,this.yy=c,this.xy=a,this.yx=l,this}extractScaleTransform(t,s){const i=Math.sqrt(this.xx*this.xx+this.xy*this.xy),e=Math.sqrt(this.yx*this.yx+this.yy*this.yy);s.setScaleCoords(1/i,1/e),s.multiply(this),t.setScaleCoords(i,e)}setFromTwoTriangles(t,s){let i=!0;for(let e=0;e<3;++e)i=i&&t[e].equals(s[e]);if(i)return this.setIdentity(),!0;const e=new n.P;e.setSub(t[0],t[1]);const r=new n.P;r.setSub(t[0],t[2]);const o=new n.P;o.setSub(s[0],s[1]);const h=new n.P;h.setSub(s[0],s[2]);const u=4*Number.EPSILON*(Math.abs(e.x*r.y)+Math.abs(r.x*e.y));let a=e.x*r.y-e.y*r.x;return Math.abs(a)>u?(a=1/a,this.xx=(o.x*r.y-e.y*h.x)*a,this.xy=(e.x*h.x-o.x*r.x)*a,this.yx=(o.y*r.y-e.y*h.y)*a,this.yy=(e.x*h.y-o.y*r.x)*a,this.xd=s[0].x-(this.xx*t[0].x+this.xy*t[0].y),this.yd=s[0].y-(this.yx*t[0].x+this.yy*t[0].y),!0):(this.setZero(),!1)}initializeFromControlPoints(t,s,i,r,l=null){return 0===s?(this.setIdentity(),void(l&&l.setIdentity())):1===s?(this.setShift(r[0].sub(i[0])),void(l&&l.setShift(i[0].sub(r[0])))):(s<3&&(t=1),void(4===t&&s>2?function(t,s,i,r,h){const u=n.P.average(i,s),l=n.P.average(r,s),c=new o({NN:2,MM:2});c.setZero();const m=new o({NN:2,MM:2});m.setZero();for(let t=0;t<s;++t)c.setRowCol(0,0,c.atRowCol(0,0)+(i[t].x-u.x)*(i[t].x-u.x)),c.setRowCol(0,1,c.atRowCol(0,1)+(i[t].x-u.x)*(i[t].y-u.y)),c.setRowCol(1,1,c.atRowCol(1,1)+(i[t].y-u.y)*(i[t].y-u.y)),m.setRowCol(0,0,m.atRowCol(0,0)+(r[t].x-l.x)*(i[t].x-u.x)),m.setRowCol(0,1,m.atRowCol(0,1)+(r[t].x-l.x)*(i[t].y-u.y)),m.setRowCol(1,0,m.atRowCol(1,0)+(r[t].y-l.y)*(i[t].x-u.x)),m.setRowCol(1,1,m.atRowCol(1,1)+(r[t].y-l.y)*(i[t].y-u.y));c.setRowCol(1,0,c.atRowCol(0,1));const y=new o({NN:2,MM:2});c.pseudoInverse(y,!0)||(0,e.a)("Failed to compute pseudo inverse"),m.mul(y,m),a(t,m);const x=u.clone();t.transformInPlace(x),t.xd=l.x-x.x,t.yd=l.y-x.y,h&&(m.pseudoInverse(y,!1)||(0,e.a)("Failed to compute pseudo inverse"),a(h,y),h.transformInPlace(l),h.xd=u.x-l.x,h.yd=u.y-l.y)}(this,s,i,r,l):function(t,s,i,r,l,c){(0,e.g)(1===t||0===t||2===t||3===t),s.setIdentity();const m=n.P.average(r,i),y=n.P.average(l,i);if((0,e.g)(t<u.length&&t>0),8&u[t]){const n=new o({NN:2,MM:2});n.setZero();for(let t=0;t<i;++t)n.setRowCol(0,0,n.atRowCol(0,0)+(l[t].x-y.x)*(r[t].x-m.x)),n.setRowCol(1,0,n.atRowCol(1,0)+(l[t].x-y.x)*(r[t].y-m.y)),n.setRowCol(0,1,n.atRowCol(0,1)+(l[t].y-y.y)*(r[t].x-m.x)),n.setRowCol(1,1,n.atRowCol(1,1)+(l[t].y-y.y)*(r[t].y-m.y));const c=new o({NN:2,MM:2}),x=new o({NN:2,MM:1}),f=new o({NN:2,MM:2});n.svd(c,x,f)||(0,e.a)("Failed to compute svd");const d=new o({NN:2,MM:2});c.transpose(d);const b=new o({NN:2,MM:2});f.mul(d,b),32&u[t]||b.determinant()<0&&(d.setRowCol(1,0,-d.atRowCol(1,0)),d.setRowCol(1,1,-d.atRowCol(1,1)),f.mul(d,b));const v=new h;a(v,b),s.set(v)}if(2&u[t]){let t=0,e=0;for(let n=0;n<i;++n){const i=r[n].sub(m);t+=i.sqrLength(),s.transformInPlace(i),e+=i.dotProduct(l[n].sub(y))}if(0===t)0===e?s.setIdentity():s.setZero();else{const i=e/t;s.scale(i,i)}}else(0,e.g)(!(4&u[t]));const x=m.clone();s.transformInPlace(x),s.xd=y.x-x.x,s.yd=y.y-x.y,c&&(c.set(s),c.invertThis(),c.isZero()&&(c.xd=m.x,c.yd=m.y))}(t,this,s,i,r,l)))}calculateErrors(t,s,i,r){(0,e.g)(t>0&&null!==s&&null!==i);let o=0;for(let e=0;e<t;++e){const t=this.transform(s[e]),h=n.P.sqrDistance(i[e],t);o+=h,r&&(r[e]=Math.sqrt(h))}return Math.sqrt(o/t)}}const u=[43,11,41,9,61];function a(t,s){(0,e.g)(!(2!==s.rows()&&3!==s.rows()||2!==s.cols()&&3!==s.rows())),t.xx=s.atRowCol(0,0),t.xy=s.atRowCol(0,1),t.yx=s.atRowCol(1,0),t.yy=s.atRowCol(1,1),3===s.cols()?(t.xd=s.atRowCol(0,2),t.yd=s.atRowCol(1,2)):(t.xd=0,t.yd=0)}},55537:(t,s,i)=>{function e(t,s){try{if(!t)throw new Error(s)}catch(t){throw t}}i.d(s,{A:()=>y,B:()=>k,C:()=>F,D:()=>z,G:()=>l,a:()=>T,b:()=>P,c:()=>A,d:()=>Z,e:()=>x,f:()=>b,g:()=>e,h:()=>_,i:()=>v,j:()=>p,k:()=>g,l:()=>S,m:()=>E,n:()=>D,o:()=>w,p:()=>d,q:()=>f,r:()=>M,s:()=>q,t:()=>C,u:()=>I,v:()=>N,w:()=>G,x:()=>R,y:()=>B,z:()=>L});class n extends Error{constructor(t,s){super(s),this.m_AdditionalMessage=s,this.m_ErrorType=t,this.name="GeometryError"}what(){return function(t){switch(t){case 1:return"Unknown error";case 2:return"Corrupted geometry";case 3:return"Empty geometry";case 4:return"Math singularity";case 5:return"Buffer is too small";case 6:return"Invalid shape type";case 7:return"Projection out of supported range";case 8:return"Non simple geometry";case 9:return"Cannot calculate geodesic";case 10:return"Notation conversion";case 11:return"Missing grid file";case 12:return"Invalid call";case 13:return"Internal error";case 14:return"Not implemented";case 15:return"IO error";case 16:return"Invalid 3D";case 17:return"An ambiguous geography edge with antipodal points";case 18:return"Geocentric coordinates require ellipsoidal height";case 19:return"Geography cannot be projected into a gnomonic plane or a result of an operation cannot fit into a gnomonic plane";case 20:return"Geometry is too large to be exported in to a given format";case 22:return"Operation is canceled by the user";case 21:return"The operation, such as projection or geodetic computation, cannot be performed without pe-wasm loaded";default:return"unknown error"}}(this.m_ErrorType)}additionalMessage(){return this.m_AdditionalMessage?this.m_AdditionalMessage:""}code(){return this.m_ErrorType}}class r extends n{constructor(t){super(2,t),this.name="CorruptedGeometryError"}}class o extends n{constructor(t){super(3,t),this.name="EmptyGeometryError"}}class h extends n{constructor(t){super(4,t),this.name="MathSingularityError"}}class u extends n{constructor(t){super(21,t),this.name="ProjectionEngineNotLoadedError"}}class a extends n{constructor(t){super(8,t),this.name="NonSimpleGeometryError"}}var l,c;(c=l||(l={}))[c.enumUnknown=0]="enumUnknown",c[c.enumPoint=513]="enumPoint",c[c.enumLine=5122]="enumLine",c[c.enumBezier=5123]="enumBezier",c[c.enumEllipticArc=5124]="enumEllipticArc",c[c.enumEnvelope=3077]="enumEnvelope",c[c.enumMultiPoint=8710]="enumMultiPoint",c[c.enumPolyline=25607]="enumPolyline",c[c.enumPolygon=27656]="enumPolygon",c[c.enumMultipatch=40969]="enumMultipatch",c[c.enumGeometryCollection=3594]="enumGeometryCollection",c[c.enumRationalBezier2=5134]="enumRationalBezier2",c[c.enumBezier2=5135]="enumBezier2",c[c.enumRationalBezier23d=5392]="enumRationalBezier23d",c[c.enumGreatArc3d=5393]="enumGreatArc3d";const m=[0,0,1,1,1,2,0,1,2,3,-1,-1,-1,-1,1,1];function y(t){return m[15&t]}function x(t){return!!(512&t)}function f(t){return!!(1024&t)}function d(t){return!!(2048&t)}function b(t){return!!(4096&t)}function v(t){return!!(8192&t)}function _(t){return!!(16384&t)}function w(t){return!!(32768&t)}function N(t){const s=t.getGeometryType();return v(s)?t.getPointCount():t.isEmpty()?0:s===l.enumEnvelope?4:s===l.enumPoint?1:b(s)?2:void A("missing type")}function p(t){const s=t.getGeometryType();if(_(s))return t.hasNonLinearSegments();if(s===l.enumGeometryCollection){const s=t;for(let t=0,i=s.getGeometryCount();t<i;t++)if(p(s.getGeometry(t)))return!0;return!1}return!!b(s)&&s!==l.enumLine}function M(t){throw new u(t)}function g(t){throw new r(t)}function C(t){throw new Error(t)}function T(t){throw new h(t)}function R(){C("Geometry type is not supported for 3D operations.")}function E(t){throw new n(12,t)}function I(t){throw new o(t)}function P(t){throw new n(14,t)}function D(t){throw new Error(t)}function A(t){throw new n(13,t)}function q(t){throw new Error(t)}function z(t){throw new a(t)}function S(t){t&&p(t)&&P("Operation does not support curves.")}function Z(t){t&&w(t.getGeometryType())&&P("Unsupported geometry type.")}function F(t){t===l.enumGeometryCollection&&C("Geometry_collection instances are not supported in this operation")}function k(t){F(t.getGeometryType())}function B(t){C(`bad wkid: ${t}`)}function L(t){let s="bad wkt: ";s+=t,s+="...",C(s)}function G(t,s){t||C(s)}},83661:(t,s,i)=>{i.d(s,{$:()=>N,A:()=>ys,B:()=>at,C:()=>ft,D:()=>vs,E:()=>a,F:()=>c,G:()=>v,H:()=>b,I:()=>jt,J:()=>ws,K:()=>n,L:()=>Ct,M:()=>Ds,N:()=>_s,O:()=>It,P:()=>ks,Q:()=>z,R:()=>S,S:()=>Pt,T:()=>ut,U:()=>xt,V:()=>E,W:()=>I,X:()=>dt,Y:()=>Wt,Z:()=>Z,_:()=>w,a:()=>lt,a0:()=>P,a1:()=>D,a2:()=>A,a3:()=>Vt,a4:()=>At,a5:()=>gs,a6:()=>Es,a7:()=>Ts,a8:()=>Cs,a9:()=>et,aA:()=>_t,aB:()=>Fs,aC:()=>C,aD:()=>hs,aE:()=>$t,aF:()=>Lt,aG:()=>as,aH:()=>us,aa:()=>nt,ab:()=>St,ac:()=>pt,ad:()=>_,ae:()=>qs,af:()=>As,ag:()=>B,ah:()=>Ms,ai:()=>it,aj:()=>V,ak:()=>L,al:()=>Is,am:()=>bt,an:()=>bs,ao:()=>Jt,ap:()=>ct,aq:()=>os,ar:()=>ls,as:()=>Tt,at:()=>ms,au:()=>gt,av:()=>R,aw:()=>rs,ax:()=>ps,ay:()=>Zs,az:()=>Ss,b:()=>mt,c:()=>Ns,d:()=>Et,e:()=>G,f:()=>T,g:()=>ds,h:()=>wt,i:()=>Ht,j:()=>Xt,k:()=>qt,l:()=>zt,m:()=>Mt,n:()=>Dt,o:()=>st,p:()=>Rt,q:()=>q,r:()=>Yt,s:()=>k,t:()=>O,u:()=>vt,v:()=>yt,w:()=>Nt,x:()=>F,y:()=>p,z:()=>g});var e=i(55537);class n{constructor(t){this.sum=t,this.compensation=0}assign(t){return this.compensation=t.compensation,this.sum=t.sum,this}reset(){this.sum=this.compensation=0}resetToStart(t){this.sum=t,this.compensation=0}normalize(){const t=[Number.NaN];this.sum=tt(this.sum,this.compensation,t),this.compensation=t[0]}add(t){const s=this.sum+t;let i;if(Math.abs(this.sum)>=Math.abs(t)){const e=this.sum-s+t;i=this.compensation+e}else{const e=t-s+this.sum;i=this.compensation+e}this.sum=s,this.compensation=i}sub(t){this.add(-t)}addProduct(t,s){const i=[0],e=$(t,s,i);this.add(e),this.add(i[0])}mul(t){const s=new n(0);s.addProduct(this.sum,t),s.addProduct(this.compensation,t),this.assign(s)}getResult(){return this.sum+this.compensation}pe(t){return this.add(t),this}me(t){return this.add(-t),this}}const r=[5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1],o=[-1,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3];function h(t){let s=0;return 65535n&t||(s+=16,t>>=16n),255n&t||(s+=8,t>>=8n),15n&t||(s+=4,t>>=4n),s+r[Number(BigInt.asUintN(4,t))]}function u(t){let s=0;return 4294967295n&t||(s=32,t>>=32n),s+h(BigInt.asUintN(32,t))}class a{constructor(t,s){if(this.m_EnvelopeType=1,void 0!==t){if(t instanceof a)return this.vmin=t.vmin,void(this.vmax=t.vmax);this.vmin=t,this.vmax=s,this.normalize()}else this.setEmpty()}static construct(t,s){return new a(t,s)}static constructEmpty(){return new a}setCoords(t,s){this.vmin=t,this.vmax=s,this.normalize()}setCoordsFromEnvelope(t){this.vmin=t.vmin,this.vmax=t.vmax}setEmpty(){this.vmin=Number.NaN,this.vmax=Number.NaN}getCenter(){return.5*(this.vmin+this.vmax)}equalsRange(t,s){return Vt(this.vmin,t)&&Vt(this.vmax,s)}equals(t,s){return!(!this.isEmpty()||!t.isEmpty())||(void 0!==s?Math.abs(this.vmin-t.vmin)<=s&&Math.abs(this.vmax-t.vmax)<=s:this.vmin===t.vmin&&this.vmax===t.vmax)}width(){return this.vmax-this.vmin}isEmpty(){return Number.isNaN(this.vmin)||Number.isNaN(this.vmax)}isZero(){return this.vmin===this.vmax}setInfinite(){this.vmin=Number.NEGATIVE_INFINITY,this.vmax=Number.POSITIVE_INFINITY}move(t){this.isEmpty()||(this.vmin+=t,this.vmax+=t)}contains(t){return t.vmin>=this.vmin&&t.vmax<=this.vmax}containsCoordinate(t){return t>=this.vmin&&t<=this.vmax}containsRightExclusive(t){return t>=this.vmin&&t<this.vmax}containsExclusiveCoordinate(t){return t>this.vmin&&t<this.vmax}containsExclusive(t){return t.vmin>this.vmin&&t.vmax<this.vmax}isIntersecting(t){return this.vmin<=t.vmin?this.vmax>=t.vmin:t.vmax>=this.vmin}mergeCoordinate(t){if(this.isEmpty())return this.vmin=t,void(this.vmax=t);this.mergeNeCoordinate(t)}merge(t){if(t.isEmpty())return;const s=t.vmin,i=t.vmax;this.mergeCoordinate(s),this.mergeCoordinate(i)}mergeNe(t){const s=t.vmin,i=t.vmax;this.mergeNeCoordinate(s),this.mergeNeCoordinate(i)}mergeNeCoordinate(t){t<this.vmin?this.vmin=t:t>this.vmax&&(this.vmax=t)}intersect(t){this.isEmpty()||t.isEmpty()?this.setEmpty():(this.vmin<t.vmin&&(this.vmin=t.vmin),this.vmax>t.vmax&&(this.vmax=t.vmax),this.vmin>this.vmax&&this.setEmpty())}inflate(t){this.isEmpty()||(this.vmin-=t,this.vmax+=t,this.vmax<this.vmin&&this.setEmpty())}normalize(){this.vmin<=this.vmax||(this.vmin>this.vmax?this.vmax=mt(this.vmin,this.vmin=this.vmax):this.setEmpty())}isValid(){return this.isEmpty()||this.vmin<=this.vmax}snapClip(t){return Ns(t,this.vmin,this.vmax)}calculateToleranceFromEnvelope(){return this.isEmpty()?ds():(Math.abs(this.vmin)+Math.abs(this.vmax)+1)*ds()}static unit(){return l}normalizeNoNAN(){this.vmin>this.vmax&&(this.vmax=mt(this.vmin,this.vmin=this.vmax))}setCoordsNoNAN(t,s){this.vmin=t,this.vmax=s,this.normalizeNoNAN()}clone(){return new a(this.vmin,this.vmax)}}const l=new a(0,1);class c{static getNAN(){return new c(Number.NaN)}constructor(t,s){this.m_value=t??0,this.m_eps=s??0}[Symbol.toPrimitive](t){return this}clone(){return new c(this.m_value,this.m_eps)}assign(t){return this.m_value=t.m_value,this.m_eps=t.m_eps,this}scaleError(t){this.m_eps*=t}setError(t){this.m_eps=t}set(t,s){return this.m_value=t,this.m_eps=s??0,this}setWithEps(t,s){return void 0===s&&(s=1),this.m_value=t,this.m_eps=c.ulp(t)*s,this}setE(t){return this.m_value=t.m_value,this.m_eps=t.m_eps,this}precise(){return new c(this.m_value)}value(){return this.m_value}toDouble(){return this.m_value}eps(){return this.m_eps}resetError(){return this.m_eps=0,this}absThis(){return this.m_value=Math.abs(this.m_value),this}add(t){return this.clone().addThis(t)}addE(t){return this.clone().addThisE(t)}addThisE(t){const s=this.m_value+t.m_value,i=this.m_eps+t.m_eps+c.ulp(s);return this.m_value=s,this.m_eps=i,this}addThis(t){const s=this.m_value+t,i=this.m_eps+c.ulp(s);return this.m_value=s,this.m_eps=i,this}subE(t){return this.clone().subThisE(t)}sub(t){return this.clone().subThis(t)}subThisE(t){const s=this.m_value-t.m_value,i=this.m_eps+t.m_eps+c.ulp(s);return this.m_value=s,this.m_eps=i,this}subThis(t){const s=this.m_value-t,i=this.m_eps+c.ulp(s);return this.m_value=s,this.m_eps=i,this}setAddE(t,s){return this.m_value=t.m_value+s.m_value,this.m_eps=t.m_eps+s.m_eps+c.ulp(this.m_value),this}setAdd(t,s){return this.m_value=t+s,this.m_eps=c.ulp(this.m_value),this}setAddEN(t,s){return this.m_value=t.m_value+s,this.m_eps=t.m_eps+c.ulp(this.m_value),this}setAddNE(t,s){return this.m_value=t+s.m_value,this.m_eps=s.m_eps+c.ulp(this.m_value),this}setSubE(t,s){return this.m_value=t.m_value-s.m_value,this.m_eps=t.m_eps+s.m_eps+c.ulp(this.m_value),this}setSub(t,s){return this.m_value=t-s,this.m_eps=c.ulp(this.m_value),this}setSubEN(t,s){return this.m_value=t.m_value-s,this.m_eps=t.m_eps+c.ulp(this.m_value),this}setSubNE(t,s){return this.m_value=t-s.m_value,this.m_eps=s.m_eps+c.ulp(this.m_value),this}mulThisE(t){const s=this.m_value*t.m_value;return this.m_eps=this.m_eps*Math.abs(t.m_value)+t.m_eps*Math.abs(this.m_value)+this.m_eps*t.m_eps+c.ulp(s),this.m_value=s,this}mulThis(t){const s=this.m_value*t;return this.m_eps=this.m_eps*Math.abs(t)+c.ulp(s),this.m_value=s,this}mul(t){return this.clone().mulThis(t)}mulE(t){return this.clone().mulThisE(t)}setMulE(t,s){const i=t.m_value*s.m_value;return this.m_eps=t.m_eps*Math.abs(s.m_value)+s.m_eps*Math.abs(t.m_value)+t.m_eps*s.m_eps+c.ulp(i),this.m_value=i,this}setMul(t,s){return this.m_value=t*s,this.m_eps=c.ulp(this.m_value),this}setMulEN(t,s){return this.setE(t),this.mulThis(s)}setMulNE(t,s){return this.setE(s),this.mulThis(t)}mulThisByPower2(t){return this.m_value*=t,this.m_eps*=Math.abs(t),this}static st_mulByPower2(t,s){return new c(t.m_value,t.m_eps).mulThisByPower2(s)}divE(t){return this.clone().divThisE(t)}divThisE(t){const s=Math.abs(t.m_value),i=this.m_value/t.m_value;let e=(this.m_eps+Math.abs(i)*t.m_eps)/s;if(t.m_eps>.01*s){const i=t.m_eps/s;e*=1+(1+i)*i}return this.m_value=i,this.m_eps=e+c.ulp(i),this}divThis(t){const s=Math.abs(t);return this.m_value/=t,this.m_eps=this.m_eps/s+c.ulp(this.m_value),this}setDivE(t,s){return this.setE(t),this.divThisE(s)}setDiv(t,s){return this.m_value=t/s,this.m_eps=c.ulp(this.m_value),this}setDivEN(t,s){return this.setE(t),this.divThis(s)}setDivNE(t,s){return this.set(t),this.divThisE(s)}divThisByPower2(t){return this.m_value/=t,this.m_eps/=Math.abs(t),this}invThis(){return this.setE(v.clone().divThisE(this)),this}sqrt(){return this.clone().sqrtThis()}sqrtThis(){let t,s;return this.m_value>=0?(t=Math.sqrt(this.m_value),s=this.m_value>10*this.m_eps?.5*this.m_eps/t:this.m_value>this.m_eps?t-Math.sqrt(this.m_value-this.m_eps):Math.max(t,Math.sqrt(this.m_value+this.m_eps)-t),s+=c.ulp(t)):this.m_value<-this.m_eps?(t=Number.NaN,s=Number.NaN):(t=0,s=Math.sqrt(this.m_eps)),this.m_value=t,this.m_eps=s,this}sqr(){return this.clone().sqrThis()}sqrThis(){const t=this.m_value*this.m_value;return this.m_eps=2*this.m_eps*Math.abs(this.m_value)+this.m_eps*this.m_eps+c.ulp(t),this.m_value=t,this}setSin(t){const s=Math.sin(t.m_value),i=Math.cos(t.m_value);this.m_value=s;const e=Math.abs(s),n=Math.abs(t.value());return this.m_eps=(Math.abs(i)+.5*e*t.m_eps)*t.m_eps+c.ulp(e+n),this}static ulp(t){let s=Gt(t);const i=((0x7ff0000000000000n&s)>>52n)-1075n;return i>-1023n?(s=i+0x3ffn<<52n,function(t){return kt[0]=t,Ft[0]}(s)):0===t?0:Number.MIN_VALUE}setCos(t){const s=Math.sin(t.m_value),i=Math.cos(t.m_value);this.m_value=i;const e=Math.abs(i),n=Math.abs(t.value());return this.m_eps=(Math.abs(s)+.5*e*t.m_eps)*t.m_eps+c.ulp(e+n),this}static st_cosAndSin(t,s,i){const e=Math.sin(t.m_value),n=Math.cos(t.m_value);i.m_value=e,s.m_value=n;const r=Math.abs(e),o=Math.abs(n),h=Math.abs(t.value());i.m_eps=(Math.abs(n)+.5*r*t.m_eps)*t.m_eps+c.ulp(r+h),s.m_eps=(Math.abs(e)+.5*o*t.m_eps)*t.m_eps+c.ulp(o+h)}negate(){return this.clone().negateThis()}negateThis(){return this.m_value=-this.m_value,this}setAbs(){return this.m_value=Math.abs(this.m_value),this}isInInterval(t){return a.construct(this.m_value-this.m_eps,this.m_value+this.m_eps).isIntersecting(t)}eq(t){return Math.abs(this.m_value-t.m_value)<=this.m_eps+t.m_eps}ne(t){return!this.eq(t)}gt(t){return this.m_value-t.m_value>this.m_eps+t.m_eps}lt(t){return t.m_value-this.m_value>this.m_eps+t.m_eps}ge(t){return!this.lt(t)}le(t){return!this.gt(t)}tolEQ(t,s){return Math.abs(this.m_value-t.m_value)<=s||this.eq(t)}tolNE(t,s){return!this.tolEQ(t,s)}tolGT(t,s){return this.m_value-t.m_value>s&&this.gt(t)}tolLT(t,s){return t.m_value-this.m_value>s&&this.lt(t)}tolGE(t,s){return!this.tolLT(t,s)}tolLE(t,s){return!this.tolGT(t,s)}isZero(){return Math.abs(this.m_value)<=this.m_eps}isFuzzyZero(){return this.isZero()&&0!==this.m_eps}tolIsZero(t){return Math.abs(this.m_value)<=Math.max(this.m_eps,t)}setPi(){this.setE(d)}setEuler(){this.set(2.718281828459045,f())}static size(){return 1}}function m(t,s){const i=Ot(t),e=Ot(s),n=53-u(i),r=53-u(e);return(n>=0?n:0)+(r>=0?r:0)<=52}function y(t,s){const i=t+s;return i-t===s&&i-s===t}function x(t,s){const i=t-s;return t-i===s&&s+i===t}function f(){return _s()}c.dimensions=1;const d=new c(Math.PI,.5*f()),b=new c(0,0),v=new c(1,0),_=new c(4,0);function w(t,s,i){return t.addE(s.subE(t).mulE(i))}function N(t,s,i){return s.subE(s.subE(t).mulE(v.subE(i)))}function p(t){let s;if(0===t)s=1;else if(Math.abs(t)>.01)s=function(t){return Math.atanh(t)}(t)/t;else{let i;const e=-36.841361487904734;s=0;const n=t*t;for(let t=2*Math.trunc(e/Math.log(n)+2.5)-1;t>1;t-=2)i=1/t,s=(s+i)*n;s+=1}return s}function M(t){const s=Math.PI*Math.PI/6;let i;if(1===t)i=s;else if(t>1)i=s;else if(0===t)i=t;else if(t<0){const s=1+(t=Math.abs(t)),e=Math.log(s);i=e*e/-2-M(t/s)}else if(t>.5){const e=1-t,n=Math.log(t)*Math.log(e);i=s-M(e)-n}else{i=0;const s=1+Math.trunc(-16*Math.log(10)/Math.log(t)+1.5);let e=s;for(let n=s;n>0;n--,e-=1)i*=t,i+=1/(e*e);i*=t}return i}function g(t,s){const i=s*t;if(Math.abs(s)<.1){let s=0;for(let t=60;t>=1;t--)s*=i,s+=1/t/t;return s*=t,s}return M(i)/s}function C(t,s){return t<s?Dt(t,s):Dt(s,t)}function T(t,s){const i=Math.abs(t);return s>=0?i:-i}function R(t){return Math.round(t)}function E(t,s,i,e,n){n[0]=s[0]+(i[0]-s[0])*e,n[1]=s[1]+(i[1]-s[1])*e,3===t&&(n[2]=s[2]+(i[2]-s[2])*e)}function I(t,s,i,e,n){n[0]=i[0]-(i[0]-s[0])*(1-e),n[1]=i[1]-(i[1]-s[1])*(1-e),3===t&&(n[2]=i[2]-(i[2]-s[2])*(1-e))}function P(t,s,i,e,n){e<=.5?E(t,s,i,e,n):I(t,s,i,e,n)}function D(t,s,i,e,n){n[0]=s[0].addE(i[0].subE(s[0]).mulE(e)),n[1]=s[1].addE(i[1].subE(s[1]).mulE(e))}function A(t,s,i,e,n){n[0]=i[0].subE(i[0].subE(s[0]).mulE(v.subE(e))),n[1]=i[1].subE(i[1].subE(s[1]).mulE(v.subE(e)))}function q(t,s,i){let e;return e=i<=.5?t+(s-t)*i:s-(s-t)*(1-i),e}function z(t,s,i){return t+(s-t)*i}function S(t,s,i){return s-(s-t)*(1-i)}function Z(t,s,i,e){i<=.5?(e.x=t.x+(s.x-t.x)*i,e.y=t.y+(s.y-t.y)*i):(e.x=s.x-(s.x-t.x)*(1-i),e.y=s.y-(s.y-t.y)*(1-i))}function F(t,s,i,e){i<=.5?(e.x=t.x+(s.x-t.x)*i,e.y=t.y+(s.y-t.y)*i,e.z=t.z+(s.z-t.z)*i):(e.x=s.x-(s.x-t.x)*(1-i),e.y=s.y-(s.y-t.y)*(1-i),e.z=s.z-(s.z-t.z)*(1-i))}function k(t){return t*t}function B(t){return t*t*t}function L(t){return 1/Math.sqrt(t)}function G(t){return t<0?-1:t>0?1:0}function O(t,s,i,e){const n=[0],r=[0],o=[0];return tt($(t,i,n),$(s,e,r),o)+(n[0]+r[0]+o[0])}const U=[0],Q=[0];function V(t,s,i){return function(t,s,i,e){const n=tt(t,s,J),r=tt(n,i,K);return tt(r,J[0]+K[0],e)}($(t,s,U),i,U[0],Q)}const j=[0],W=[0],Y=[0],X=[0];function $(t,s,i){const e=t*s;return H(t,j,W),H(s,Y,X),i[0]=W[0]*X[0]-(e-j[0]*Y[0]-W[0]*Y[0]-j[0]*X[0]),e}function H(t,s,i){const e=134217729*t;s[0]=e-(e-t),i[0]=t-s[0]}const J=[0],K=[0];function tt(t,s,i){const e=t+s;return Math.abs(t)>Math.abs(s)?i[0]=t-e+s:i[0]=s-e+t,e}function st(t,s){return t%s}function it(t){const s=1-t;if(0===s)return 1;let i;if(s<=.01){const t=s,e=Math.log(t);i=1+t*(.4431471805599453-.25*e+t*(.05680519270997949-.09375*e+t*(.02183137044373718-.05859375*e+t*(.011544521417308362-.042724609375*e+t*(.00714200031339596-.0336456298828125*e+t*(.004854743337164948-.027757644653320312*e+t*(.003514687963781376-.023627042770385742*e)))))))}else{if(t<.016){const s=t,i=.25,e=.046875,n=.01953125,r=.01068115234375,o=.0067291259765625,h=.004626274108886719,u=.0033752918243408203,a=.0025710230693221092;return Ts()*(1-s*(i+s*(e+s*(n+s*(r+s*(o+s*(h+s*(u+s*a))))))))}i=rt(0,s,1)-t*ot(0,s,1)/3}return Ns(i,1,Ts())}function et(t,s,i=Number.NaN){if((0,e.g)(s>=0&&s<=1),0===s)return t;let n=1,r=t;if(r<0&&(r=-r,n=-1),1===s){const t=Math.round(r/gs()),s=r-t*gs();return n*(2*t+Math.sin(s))}const o=Ts(),h=Math.floor(r/o);1&h?r=(h+1)*o-r:r-=h*o;const u=Math.sin(r),a=Number.isNaN(i)?it(s):i;let l;if(1===u)l=a+Math.sqrt(1-s)*(r-o);else{const t=r*r;if(.01424*Math.pow(t,4)<=2*_s())l=r*(1+t*s*(-1/6+t*((4-3*s)/120-(16+(45*s-60)*s)/5040*t)));else if(s<=.01){const t=Math.sin(2*r),i=Math.sin(4*r),e=Math.sin(6*r),n=Math.sin(8*r),o=Math.sin(10*r);l=r+s*((2*-r+t)/8+s*((-3*r+2*t-.25*i)/64+s*((-20*r+15*t-3*i+e/3)/1024+s*(5*(-140*r+112*t-28*i+16/3*e-.5*n)/65536+7*s*((-63*r+52.5*t-15*i+3.75*e-.625*n+.05*o)/65536+s*(-693*r+594*t-185.625*i+1.375*e-12.375*n+1.8*o-.125*Math.sin(12*r))/1048576)))))}else{const t=u*u,i=Math.cos(r),e=i*i,n=ht(u,i,s);l=u*(rt(e,n,1)-s*t*ot(e,n,1)/3)}}return 1&h?l=a*(h+1)-l:l+=a*h,n*l}function nt(t,s,i=Number.NaN){if(0===t)return 0;let e=1,n=t;t<0&&(n=-n,e=-1);const r=Number.isNaN(i)?it(s):i,o=Math.floor(n/r);1&o?n=(o+1)*r-n:n-=o*r;let h=n<=0?0:n>=r?Ts():function(t,s,i){if(0===s)return t;if(1===s)return Math.asin(t);let e=0,n=!0;if(t<.2){const i=t*t,r=t*(1+i*s*(1/6+i*((13*s-4)/120+(16-284*s+493*s*s)/5040*i))),o=Math.abs(s*(4944*s-64-31224*s*s+37369*s*s*s)/362880*Math.pow(t,9));if(o<Math.abs(r)*_s())return r;e=r,n=o>.1*r}if(n){const n=1-s,r=1-t/i,o=Math.sqrt(r*r+n*n),h=Math.atan2(n,t+_s());e=Ts()+Math.sqrt(o)*(h-Ts())}let r=0;for(let n=0;n<7;n++){r=et(e,s,i);const o=ht(Math.sin(e),Math.cos(e),s);if(e-=(r-t)/Math.sqrt(o),n>0&&Math.abs(r-t)<=4*_s()*t)break}return e}(n,s,r);return 1&o?h=Ts()*(o+1)-h:h+=Ts()*o,e*h}function rt(t,s,i){(0,e.g)((0!==t?1:0)+(0!==s?1:0)+1>1);let n=t,r=s,o=i;for(;;){const t=Math.sqrt(n*r)+Math.sqrt(r*o)+Math.sqrt(o*n);n=.25*(n+t),r=.25*(r+t),o=.25*(o+t);const s=(n+r+o)/3,i=(s-n)/s,e=(s-r)/s,h=(s-o)/s;if(Math.abs(i)<=.0024&&Math.abs(e)<=.0024&&Math.abs(h)<=.0024){const t=i*e-h*h,n=i*e*h;return(1+(1/24*t-.1-3/44*n-5*t*t/208+t*n/16)*t+(1/14+3*n/104)*n)/Math.sqrt(s)}}}function ot(t,s,i){(0,e.g)(0!==t||0!==s);let r=t,o=s,h=i;const u=new n(0);let a=1;for(;;){const t=.2*(r+o+3*h),s=(t-r)/t,i=(t-o)/t,e=(t-h)/t;if(Math.abs(s)<=.0015&&Math.abs(i)<=.0015&&Math.abs(e)<=.0015){const n=s*i,r=e*e,o=n-r,h=n-6*r,l=h+o+o,c=3/26,m=h*(9/22*.25*h-.21428571428571427-1.5*c*e*l),y=e*(1/6*l+e*(-.4090909090909091*o+e*c*n));return 3*u.getResult()+a*(1+m+y)/(t*Math.sqrt(t))}const n=Math.sqrt(r),l=Math.sqrt(o),c=Math.sqrt(h),m=n*(l+c)+l*c;u.add(a/(c*(h+m))),a*=.25,r=.25*(r+m),o=.25*(o+m),h=.25*(h+m)}}function ht(t,s,i){return t<.999?1-i*k(t):1-i+i*k(s)}function ut(t,s,i,n,r){return 0===t?0===n?s:1===n?i:r:1===t?0===n?s:1===n?i:q(s,i,n):(2===t&&(0,e.b)("angular interpolation"),void(0,e.b)(""))}function at(t,s,i,n,r,o,h,u){if(0===t)for(let t=0;t<o;++t)n[t+r]=0===h?s[t]:1===h?i[t]:u;else if(1===t)if(0===h)lt(n,s,r,0,o);else if(1===h)lt(n,i,r,0,o);else for(let t=0;t<o;++t)n[t+r]=q(s[t],i[t],h);else if(2===t)if(0===h)lt(n,s,r,0,o);else if(1===h)lt(n,i,r,0,o);else{let t=0;for(let e=0,u=r;e<o;++e,++u)n[u]=q(s[e],i[e],h),t+=n[u]*n[u];if(t>0){t=Math.sqrt(t);for(let s=r;s<r+o;++s)n[s]/=t}else{for(let t=r;t<r+o;++t)n[t]=0;n[r]=1}}else(0,e.b)("")}function lt(t,s,i,e,n){if(0===n)return;let r=0,o=i,h=e;for(;r++<n;)t[o++]=s[h++]}function ct(t,s,i){let e=0;for(let n=0;!e&&n<i;++n)e=t[n]-s[n];return e}function mt(t,s){return t}function yt(t){t.sort(((t,s)=>t<s?-1:t>s?1:0))}function xt(t,s){const i=t.slice(0,s);yt(i),lt(t,i,0,0,s)}function ft(t,s,i,e){const n=t.slice(s,s+i);n.sort(e),lt(t,n,s,0,i)}function dt(t,s){return t<s?-1:t>s?1:0}function bt(t,s,i,e){return t<i?-1:t>i?1:s<e?-1:s>e?1:0}function vt(t,s){if(t.length<2)return t.length;let i=0;for(let e=1;e<t.length;++e)s(t[e],t[i])||(i++,t[e]=mt(t[i],t[i]=t[e]));return 1+i}function _t(t,s){t[s]=t.at(-1),t.pop()}function wt(t,s=!1){return{[Symbol.dispose](){this.bForget||t()},bForget:s}}function Nt(t,s,i){t.length=s,t.fill(i)}function pt(t,s,i){t.length=i;for(let e=0;e<i;++e)t[e]=new s}function Mt(t,s){const i=new Array(s);for(let e=0;e<s;++e)i[e]=new t;return i}function gt(t,s,i){for(let e=0;e<i;++e)t[e].assign(s[e]);return i}function Ct(t,s){const i=t.slice(0,s);for(let t=0;t<s;++t)i[t]=i[t].clone();return i}function Tt(t){return Array.from({length:t},(()=>null))}function Rt(t,s){return Array.from({length:s},(()=>t()))}function Et(t,s){const i=new Array(t);return i.fill(s),i}function It(t,s){return s in t&&1===Object.getOwnPropertyNames(t).length}class Pt{constructor(...t){this.m_elts=t}get length(){return this.m_elts.length}at(t){return this.m_elts[t]}[Symbol.dispose](){for(const t of this.m_elts)t[Symbol.dispose]()}}function Dt(t,s){return{first:t,second:s}}const At=Math.PI,qt=2*Math.PI,zt=.5*Math.PI;class St{constructor(t,s){this.m_cr=t,this.m_cc=s,this.m_v=Et(t*s,0)}get(t,s){return this.m_v[t*this.m_cc+s]}set(t,s,i){this.m_v[t*this.m_cc+s]=i}inc(t,s){return++this.m_v[t*this.m_cc+s]}}const Zt=new ArrayBuffer(8),Ft=new Float64Array(Zt),kt=new BigUint64Array(Zt),Bt=0x0fffffffffffffn;function Lt(){return Number.EPSILON*fs}function Gt(t){return Ft[0]=t,kt[0]}function Ot(t){return Gt(t)&Bt}function Ut(t){return Number((9218868437227405312n&Gt(t))>>52n)}function Qt(t){if(0n===t)return-1n;if(1n===t||-1n===t)return 0n;t<0n&&(t=-t);let s=0n,i=512n,e=1n<<s+i;for(;t>=e;)s+=i,i<<=1n,e<<=i;let n=s;i>>=1n;let r=n+i;for(;i>0n;)t<1n<<r||(n=r),i>>=1n,r=n+i;return n}function Vt(t,s){return t===s||Number.isNaN(t)&&Number.isNaN(s)}function jt(t,s,i){return t===s||Math.abs(t-s)<=i||Number.isNaN(t)&&Number.isNaN(s)}function Wt(t,s){return t<s?-1:t>s?1:0}function Yt(t,s){if(t<s)return-1;if(t>s)return 1;if(t===s)return 0;{const i=Number.isNaN(t),e=Number.isNaN(s);return i<e?-1:i>e?1:0}}function Xt(){return 2147483647}function $t(){return 32767}function Ht(){return 2147483647}function Jt(){return-2147483648}const Kt=2147483647,ts=BigInt(Kt),ss=2166136261,is=16777619,es=14695981039346656037n,ns=1099511628211n;function rs(t){let s=ss;for(let i=0,e=t.length;i<e;++i)s=(s^t.charCodeAt(i))*is;return s&Kt}function os(t,s){return s+2654435769+(t<<6)+(t>>2)&Kt}function hs(t,s){return os(t,cs(s))}function us(t){return os(3735928559,t)}function as(t,s){return os(t,us(s))}function ls(t){return function(t){let s=ss,i=t;return s=(s^255&i)*is,i>>=8,s=(s^255&i)*is,i>>=8,s=(s^255&i)*is,i>>=8,s=(s^255&i)*is,s&Kt}(t)}function cs(t){return Number(function(t){let s=es,i=t;return s=(s^0xffn&i)*ns,i>>=8n,s=(s^0xffn&i)*ns,i>>=8n,s=(s^0xffn&i)*ns,i>>=8n,s=(s^0xffn&i)*ns,i>>=8n,s=(s^0xffn&i)*ns,i>>=8n,s=(s^0xffn&i)*ns,i>>=8n,s=(s^0xffn&i)*ns,s&ts}(t))}function ms(t){return cs(Gt(function(t){return Is(t)}(t)))}function ys(t){return function(t){return 1103515245*t+12345&2147483647}(t)}const xs=100,fs=100;function ds(){return Number.EPSILON*xs}function bs(){return.38196601125010515}function vs(){return 1.4142135623730951}function _s(){return Number.EPSILON}function ws(t,s,i){return t===s||t===i}function Ns(t,s,i){return t>=s?t<=i?t:i:s}function ps(t,s,i){const e=t[0];if(e>=s){if(e<=i)return!1;t[0]=i}else t[0]=s;return!0}function Ms(t,s){return t>=s?s:t<-s?-s:t}function gs(){return At}function Cs(){return qt}function Ts(){return zt}const Rs=3*Ts();function Es(){return Rs}function Is(t){return t+0}function Ps(t){return{v:t}}class Ds{constructor(){this.m_rn=Ps(0n),this.m_rd=Ps(1n),this.m_bNaN=!1,this.m_bNormalized=!1,this.m_power=0,this.m_sign=0}static constructAssign(t,s){const i=t.clone();return void 0!==s&&i.limitPrecisionThis(s),i}static constructDouble(t){return(new Ds).setDouble(t)}static constructInt64(t){return(new Ds).setInt64(t)}static constructRational(t,s){return(new Ds).setRational(t,s)}static constructInt32(t){return this.constructInt64(BigInt(Math.trunc(t)))}[Symbol.toPrimitive](t){return this}compare(t){return this.lt(t)?-1:this.gt(t)?1:0}assignCopy(t){return this.setThis(t)}abs(){return this.clone().absThis()}absThis(){return this.isNAN()||(this.m_sign*=this.m_sign),this}clone(){return(new Ds).setThis(this)}setThis(t){return this.m_bNaN=t.m_bNaN,this.m_bNormalized=t.m_bNormalized,this.m_rn.v=t.m_rn.v,this.m_rd.v=t.m_rd.v,this.m_power=t.m_power,this.m_sign=t.m_sign,this}setZero(){return this.m_rn.v=0n,this.m_rd.v=1n,this.m_bNaN=!1,this.m_power=0,this.m_bNormalized=!0,this.m_sign=0,this}setDouble(t){if(this.setZero(),0===t)return this;if(Number.isInteger(t)&&Math.abs(t)<2147483647)return this.setInt32(t);const s=Gt(t),i=(s&Ds.s_em)>>52n,n=!!(s&Ds.s_sm),r=s&Ds.s_fm;if(i===Ds.s_emax)return r?(this.m_rn.v=this.m_rd.v=0n,this.m_bNaN=!0,this):(this.m_rn.v=n?-1n:1n,this.m_rd.v=0n,this);0n===i&&(0,e.b)("denormalized numbers not yet implemented");const o=i-1023n,h=o>=0n?o:0n,u=o<0n?-o:0n;return this.m_rn.v=(1n<<52n|r)<<h,this.m_rd.v=1n<<52n+u,this.m_sign=n?-1:1,this.m_bNormalized=!1,this.normalizeThis()}setInt64(t){return 0n===t?this.setZero():(this.m_bNaN=!1,this.m_sign=t>0n?1:-1,this.m_rn.v=t>0n?t:-t,this.m_rd.v=1n,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setRational(t,s){return 0n===t?0n===s?this.setNAN():this.setZero():0n===s?t>0n?this.setPositiveInf():this.setNegativeInf():(this.m_sign=(t>0n?1:-1)*(s>0n?1:-1),this.m_rn.v=t>0n?t:-t,this.m_rd.v=s>0n?s:-s,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setInt32(t){return this.setInt64(BigInt(Math.trunc(t)))}getDouble(){return this.convertToDouble()}toDouble(){return this.convertToDouble()}value(){return this.convertToDouble()}isNAN(){return this.m_bNaN}isPositiveInf(){return!this.isNAN()&&0n===this.m_rd.v&&1===this.m_sign}isNegativeInf(){return!this.isNAN()&&0n===this.m_rd.v&&-1===this.m_sign}isFinite(){return!this.isNAN()&&0n!==this.m_rd.v}setNAN(){return this.m_bNaN=!0,this.m_rn.v=0n,this.m_rd.v=0n,this.m_power=0,this.m_bNormalized=!0,this}setPositiveInf(){return this.m_rn.v=1n,this.m_rd.v=0n,this.m_bNaN=!1,this.m_bNormalized=!0,this.m_sign=1,this.m_power=0,this}setNegativeInf(){return this.m_rn.v=1n,this.m_rd.v=0n,this.m_bNaN=!1,this.m_bNormalized=!0,this.m_sign=-1,this.m_power=0,this}subThis(t){if(t.isNAN()&&this.setNAN(),this.isPositiveInf()&&t.isPositiveInf())this.setNAN();else{if(this.isPositiveInf()&&t.isNegativeInf())return this.setPositiveInf(),this;if(this.isNegativeInf()&&t.isNegativeInf())this.setNAN();else if(this.isNegativeInf()&&t.isPositiveInf())return this.setNegativeInf(),this}return this.isNAN()?this:this.opPlusMinus(t,!1)}thisSubAbs(t){return(0,e.g)(0),this}mulThis(t){return t.isNAN()&&this.setNAN(),this.isNAN()?this:(this.m_sign*=t.m_sign,0===this.m_sign?this.setZero():(this.m_rn.v*=t.m_rn.v,this.m_rd.v*=t.m_rd.v,this.m_power+=t.m_power,this.m_bNormalized=!1,this.normalizeThis(),this))}mulDoubleThis(t){return this.mulThis(Ds.constructDouble(t))}thisMulInt64(t){return(0,e.g)(0),this}thisMulInt32(t){return(0,e.g)(0),this}divThis(t){return this.mulThis(t.clone().invertThis())}divDoubleThis(t){return this.divThis(Ds.constructDouble(t))}addDoubleThis(t){return this.addThis(Ds.constructDouble(t))}subDoubleThis(t){return this.subThis(Ds.constructDouble(t))}mul(t){return this.clone().mulThis(t)}mulBigIntThis(t){return this.mulThis(Ds.constructInt64(t))}mulDouble(t){return this.clone().mulThis(Ds.constructDouble(t))}div(t){return this.clone().divThis(t)}divDouble(t){return this.clone().divDoubleThis(t)}add(t){return this.clone().addThis(t)}fmSubThis(t,s){return this.subThis(t.clone().mulThis(s))}fmAddThis(t,s){return this.addThis(t.clone().mulThis(s))}addThis(t){if(t.isNAN()&&this.setNAN(),this.isPositiveInf()&&t.isPositiveInf())return this.setPositiveInf(),this;if(this.isPositiveInf()&&t.isNegativeInf())this.setNAN();else{if(this.isNegativeInf()&&t.isNegativeInf())return this.setNegativeInf(),this;this.isNegativeInf()&&t.isPositiveInf()&&this.setNAN()}return this.isNAN()?this:this.opPlusMinus(t,!0)}addDouble(t){return this.clone().addThis(Ds.constructDouble(t))}sub(t){return this.clone().subThis(t)}subDouble(t){return this.clone().subThis(Ds.constructDouble(t))}isZero(){return 0===this.m_sign}equals(t){return this.clone().subThis(t).isZero()}lt(t){return!this.isNAN()&&!t.isNAN()&&!(this.isPositiveInf()&&t.isPositiveInf()||this.isNegativeInf()&&t.isNegativeInf())&&!this.isPositiveInf()&&(!!t.isPositiveInf()||this.clone().sub(t).LZ())}absLessAbs(t){return this.abs().lt(t.abs())}gt(t){return this.clone().sub(t).GZ()}lte(t){return this.sub(t).LEZ()}gte(t){return this.sub(t).GEZ()}normalizeThis(){if(this.m_bNormalized)return this;if(0n===this.m_rn.v)return this.setZero();let t=0,s=0xffffffffn;for(;0n===(this.m_rn.v&s)&&s<=this.m_rn.v;)s<<=32n,t+=32;s&=this.m_rn.v,s>>=BigInt(t),t+=h(BigInt.asUintN(32,s))-1;let i=0;for(s=0xffffffffn;0n===(this.m_rd.v&s)&&s<=this.m_rd.v;)s<<=32n,i+=32;return s&=this.m_rd.v,s>>=BigInt(i),i+=h(BigInt.asUintN(32,s))-1,this.m_rn.v>>=BigInt(t),this.m_rd.v>>=BigInt(i),this.m_power+=t-i,this.m_rn.v>1n&&this.m_rd.v>1n&&(this.m_rn.v%this.m_rd.v===0n?(this.m_rn.v/=this.m_rd.v,this.m_rd.v=1n):this.m_rd.v%this.m_rn.v===0n&&(this.m_rd.v/=this.m_rn.v,this.m_rn.v=1n)),this.m_bNormalized=!0,this}negateThis(){return this.isNAN()||(this.m_sign*=-1),this}negate(){return this.clone().negateThis()}invertThis(){return this.isNAN()?this:this.isPositiveInf()||this.isNegativeInf()?(this.setZero(),this):0n===this.m_rn.v?(this.setPositiveInf(),this):(this.m_rd=mt(this.m_rn,this.m_rn=this.m_rd),this.m_power=-this.m_power,this)}limitPrecisionThis(t){if(0===t)return this;if(this.isZero())return this.setZero();if(!this.isFinite())return this;this.normalizeThis();let s=Number(Qt(this.m_rn.v));if(s>t){const i=s-t;this.m_rn.v>>=BigInt(s-t),this.m_power+=i}if(s=Number(Qt(this.m_rd.v)),s>t){const i=s-t;this.m_rd.v>>=BigInt(s-t),this.m_power-=i}return this}hiBitIndex(){return Math.max(Number(Qt(this.m_rn.v)),Number(Qt(this.m_rd.v)))}ldexp(t){return this.clone().ldexpThis(t)}ldexpThis(t){return t&&(this.m_bNormalized=!1,this.m_power+=t,this.normalizeThis()),this}LZ(){return!this.isNAN()&&-1===this.m_sign}GZ(){return!this.isNAN()&&1===this.m_sign}LEZ(){return!this.isNAN()&&this.m_sign<=0}GEZ(){return!this.isNAN()&&this.m_sign>=0}toString(){return this.toDouble().toString()}sqr(){return this.clone().sqrThis()}sqrThis(){return this.mulThis(this.clone())}static sqrt(t,s){if(t.m_sign<0n&&(0,e.n)("MP_value: sqrt(-1)"),t.isZero())return t.clone();let i=52,n=2220446049250313e-31;for(;i<s;)2*i<=s?(n*=n,i*=2):(n*=2220446049250313e-31,i+=52);i+=52;const r=Qt(t.m_rn.v),o=Qt(t.m_rd.v);let h,u=t.m_power+Number(r-o);const a=new Ds;Math.abs(u)>200?(1&Math.abs(u)&&(u+=1),h=Ds.constructAssign(t,53).ldexpThis(-u).value(),a.setThis(t).ldexpThis(-u),(0,e.g)(Number.isFinite(h))):(a.setThis(t),h=a.value(),(0,e.g)(Number.isFinite(h)),u=0),h=Math.sqrt(h);const l=Ds.constructDouble(h),c=Ds.constructDouble(n);c.mulThis(l).ldexpThis(1);const m=n*h*2,y=l.clone(),x=new Ds;let f;for(let t=0;t<10;++t){y.mulThis(l),x.setThis(a).subThis(y).absThis();let t=x.value();if(f=1,t<.9)for(;t>m;)t*=t,++f;else f=4;if(x.lte(c))break;for(let t=0;t<f;t++)y.setThis(l).divThis(a).invertThis().addThis(l).ldexpThis(-1).limitPrecisionThis(i),l.setThis(y)}return l.ldexpThis(u/2)}static cubicRoot(t,s){if(t.isZero())return t.clone();let i=52,e=2220446049250313e-31;for(;i<s;)2*i<=s?(e*=e,i*=2):(e*=2220446049250313e-31,i+=52);i+=52;const n=Math.pow(Math.abs(t.value()),1/3),r=Ds.constructDouble(n),o=r.clone();o.sqrThis().mulDoubleThis(3).mulDoubleThis(e),o.limitPrecisionThis(32),t.LZ()&&r.negateThis();for(let s=0;s<10;++s){const s=r.clone();s.sqrThis().mulThis(r);const e=s.clone();if(e.subThis(t),e.absThis().limitPrecisionThis(32),e.lte(o))break;e.setThis(t),e.ldexpThis(1),e.addThis(s);const n=s.clone();n.ldexpThis(1),n.addThis(t),e.divThis(n),r.mulThis(e),r.limitPrecisionThis(i)}return r}isInTheRangeOfDouble(){return(0,e.g)(0),!1}sign(){return this.m_sign}cosAndSin(t,s){(0,e.g)(0)}static nan(){return(0,e.g)(0),new Ds}convertToDouble(){if(this.m_bNaN)return Number.NaN;if(this.isZero())return 0;if(0n===this.m_rd.v)return 1===this.m_sign?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;const t=-1===this.m_sign,s=this.m_rn.v<<(this.m_power>=0?BigInt(this.m_power):0n);let i=this.m_rd.v<<(this.m_power<0?BigInt(-this.m_power):0n);const e=s/i;let n=Number(e);if(BigInt(n)!==e)return t?-n:n;let r=s-e*i;if(r){let t=Qt(i)-1023n;t>0n&&(i>>=t,r<<=52n,r>>=t);let s=Number(r);Number.isFinite(s)||(r>>=52n,s=Number(r),t=0n),t>0n&&(s/=Math.pow(2,52)),n+=s/Number(i)}return t?-n:n}signVal(){return 1===this.m_sign?1n:-1===this.m_sign?-1n:0n}opPlusMinus(t,s){const i=Math.min(this.m_power,t.m_power);let e,n;this.m_power>i?(e=BigInt(this.m_power-i),n=0n):(e=0n,n=BigInt(t.m_power-i));const r=this.signVal()*this.m_rn.v*t.m_rd.v<<e,o=t.signVal()*t.m_rn.v*this.m_rd.v<<n;return this.m_rn.v=s?r+o:r-o,this.m_rd.v*=t.m_rd.v,this.m_power=i,this.m_sign=1,this.m_rn.v<0n&&(this.m_sign=-1,this.m_rn.v=-this.m_rn.v),this.m_bNormalized=!1,this.normalizeThis(),this}}Ds.s_sm=0x8000000000000000n,Ds.s_em=0x7ff0000000000000n,Ds.s_fm=0x000fffffffffffffn,Ds.s_emax=0x7ffn;const As=Ds.constructInt32(1),qs=Ds.constructInt32(0);function zs(t,s){let i=Ut(t);const e=Ut(s);return i===e?(i-=53-function(t,s){return function(t){let s=0;return 0xffffffff00000000n&t&&(s=32,t>>=32n),s+function(t){let s=0;return 4294901760n&t&&(s+=16,t>>=16n),65280n&t&&(s+=8,t>>=8n),240n&t&&(s+=4,t>>=4n),s+o[Number(BigInt.asUintN(4,t))]+1}(t)}(t^s)}(Ot(t),Ot(s)),i):i>e?i:e}function Ss(t,s){for(let i=0,e=0,n=t.length;i<n;i+=2,e++)s[e].x=t[i],s[e].y=t[i+1]}function Zs(t){const s=new Float64Array(2*t.length);for(let i=0,e=t.length;i<e;++i){const e=i<<1;s[e]=t[i].x,s[e+1]=t[i].y}return s}function Fs(t){const s=Mt(ks,t.length);for(let i=0,e=t.length;i<e;++i)s[i].setCoords(t[i][0],t[i][1]);return s}class ks{static construct(t,s){return new ks(t,s)}constructor(t,s){void 0!==t?(this.x=t,this.y=s):this.x=this.y=Number.NaN}clone(){return new ks(this.x,this.y)}assign(t){this.setCoordsPoint2D(t)}setCoords(t,s){return this.x=t,this.y=s,this}setCoordsPoint2D(t){this.x=t.x,this.y=t.y}isEqualPoint2D(t,s){return void 0!==s?Math.abs(this.x-t.x)<=s&&Math.abs(this.y-t.y)<=s:this.x===t.x&&this.y===t.y}isEqual(t,s,i){return void 0!==i?Math.abs(this.x-t)<=i&&Math.abs(this.y-s)<=i:this.x===t&&this.y===s}equalsPoint2D(t,s){return this.isEqualPoint2D(t,s)}setSub(t,s){this.x=t.x-s.x,this.y=t.y-s.y}addThis(t){return this.x+=t.x,this.y+=t.y,this}setAdd(t,s){return this.x=t.x+s.x,this.y=t.y+s.y,this}absoluteOther(t){}absolute(){return(0,e.g)(0),this}setNegate(){this.x=-this.x,this.y=-this.y}setNegateOther(t){this.x=-t.x,this.y=-t.y}interpolateThis(t,s){}interpolate(t,s,i){(0,e.g)(0)}scaleAddThis(t,s){this.x=this.x*t+s.x,this.y=this.y*t+s.y}setScaleAdd(t,s,i){this.x=s.x*t+i.x,this.y=s.y*t+i.y}scaleOther(t,s){(0,e.g)(0)}scale(t){this.x*=t,this.y*=t}compare(t){return this.y<t.y?-1:this.y>t.y?1:this.x<t.x?-1:this.x>t.x?1:0}compareX(t){return this.x<t.x?-1:this.x>t.x?1:this.y<t.y?-1:this.y>t.y?1:0}normalizeOther(t){(0,e.g)(0)}normalize(){const t=this.length();return t?(this.x/=t,this.y/=t):(this.x=1,this.y=0),this}getUnitVector(){return this.clone().normalize()}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}sqrLength(){return this.x*this.x+this.y*this.y}static averageFast(t,s){return(0,e.g)(0),{}}static average(t,s){const i=new ks;if(0===s)return i.setNAN(),i;if(1===s)return i.assign(t[0]),i;const e=new n(t[0].x),r=new n(t[0].y);for(let i=1;i<s;i++)e.add(t[i].x),r.add(t[i].y),255&i||(e.normalize(),r.normalize());return i.x=e.getResult()/s,i.y=r.getResult()/s,i}static calculateLength(t,s){const i=new n(0);for(let e=1;e<s;e++)i.add(ks.distance(t[e],t[e-1]));return i.getResult()}offset(t,s){const i=ks.distance(t,s),e=ks.construct(this.x,this.y);if(0===i)return ks.distance(e,t);const n=s.clone();return n.subThis(t),e.subThis(t),e.crossProduct(n)/i}side(t,s){return t.equals(s)?this.equals(t)?0:1:ks.orientationRobust(s,t,this)}static sqrDistance(t,s){const i=t.x-s.x,e=t.y-s.y;return i*i+e*e}static sqrDistanceCoords(t,s,i,e){const n=i-t,r=e-s;return n*n+r*r}static distance(t,s){return Math.sqrt(ks.sqrDistance(t,s))}dotProduct(t){return this.x*t.x+this.y*t.y}dotProductAbs(t){return Math.abs(this.x*t.x)+Math.abs(this.y*t.y)}crossProduct(t){return this.x*t.y-this.y*t.x}crossProductAbs(t){return(0,e.g)(0),0}rotateDirect(t,s){const i=this.x*t-this.y*s,e=this.x*s+this.y*t;this.x=i,this.y=e}rotateReverse(t,s){const i=this.x*t+this.y*s,e=-this.x*s+this.y*t;this.x=i,this.y=e}leftPerpendicularThis(){const t=this.x;this.x=-this.y,this.y=t}leftPerpendicularOther(t){const s=t.x;this.x=-t.y,this.y=s}rightPerpendicularThis(){const t=this.x;this.x=this.y,this.y=-t}rightPerpendicularOther(t){const s=t.x;this.x=t.y,this.y=-s}equals(t){return this.x===t.x&&this.y===t.y}notequals(t){return this.x!==t.x||this.y!==t.y}not(){return!this.x&&!this.y}gt(t){return this.y>t.y||this.y===t.y&&this.x>t.x}gte(t){return!this.lt(t)}lt(t){return this.y<t.y||this.y===t.y&&this.x<t.x}lte(t){return!this.gt(t)}subThis(t){return this.x-=t.x,this.y-=t.y,this}divThis(t){return this.x/=t,this.y/=t,this}add(t){return new ks(this.x+t.x,this.y+t.y)}sub(t){return new ks(this.x-t.x,this.y-t.y)}negateThis(){return this.x=-this.x,this.y=-this.y,this}negate(){return new ks(-this.x,-this.y)}mul(t){return new ks(this.x*t,this.y*t)}mulThis(t){return this.x*=t,this.y*=t,this}divide(t){return new ks(this.x/t,this.y/t)}setNAN(){this.x=this.y=Number.NaN}isNAN(){return Number.isNaN(this.x)||Number.isNaN(this.y)}static getNAN(){return new ks(Number.NaN,Number.NaN)}isFinite(){return Number.isFinite(this.x)&&Number.isFinite(this.y)}isZero(){return 0===this.x&&0===this.y}norm(t){switch(t){case 0:{const t=Math.abs(this.x),s=Math.abs(this.y),i=t-s;return i>=0?t:i<=0?s:Number.NaN}case 1:return Math.abs(this.x)+Math.abs(this.y);case 2:return Math.sqrt(this.x*this.x+this.y*this.y);default:(0,e.t)("norm")}}getQuarter(){return ks.getQuarterCoords(this.x,this.y)}static getQuarterCoords(t,s){return t>0?s>=0?1:4:s>0?2:0===t?4:3}static compareVectors(t,s){const i=t.getQuarter(),e=s.getQuarter();return e===i?ks.orientationRobustImpl(ks.construct(0,0),s,t,!0):i<e?-1:1}static compareVectorsOrigin(t,s,i){const e=s.sub(t),n=i.sub(t),r=e.getQuarter(),o=n.getQuarter();return o===r?ks.orientationRobustImpl(t,i,s,!0):r<o?-1:1}static orientationRobust(t,s,i){return ks.orientationRobustImpl(t,s,i,!1)}static orientationRobustEx(t,s,i,e){if(t.equals(s)||i.equals(e))return 0;const n=s.x-t.x,r=s.y-t.y,o=e.x-i.x,h=e.y-i.y;{const t=ks.getQuarterCoords(n,r)-1,s=ks.getQuarterCoords(o,h)-1,i=ks.d[t][s];if(0!==i)return i}const u=n*h,a=r*o,l=4*_s()*(Math.abs(u)+Math.abs(a)),c=u-a;return Math.abs(c)>=l?c<0?-1:c>0?1:0:ks.orientationRobustExMp(t,s,i,e)}static orientationRobustExMp(t,s,i,e){const n=Ds.constructDouble(s.x),r=Ds.constructDouble(e.x);n.subThis(Ds.constructDouble(t.x)),r.subThis(Ds.constructDouble(i.x));const o=Ds.constructDouble(s.y),h=Ds.constructDouble(e.y);return o.subThis(Ds.constructDouble(t.y)),h.subThis(Ds.constructDouble(i.y)),n.mulThis(h),o.mulThis(r),n.subThis(o),n.LZ()?-1:n.GZ()?1:0}static orientationNonRobust(t,s,i){const e=s.sub(t).crossProduct(i.sub(t));return e<0?-1:e>0?1:0}static orientationRobustImpl(t,s,i,e){if(s.isEqualPoint2D(t)||i.isEqualPoint2D(t)||s.isEqualPoint2D(i))return 0;const n=s.x-t.x,r=s.y-t.y,o=i.x-t.x,h=i.y-t.y;if(!e){const t=ks.getQuarterCoords(n,r)-1,s=ks.getQuarterCoords(o,h)-1,i=ks.d[t][s];if(0!==i)return i}const u=(Math.abs(n)+Math.abs(r)+Math.abs(o)+Math.abs(h))*(Math.abs(s.x)+Math.abs(s.y)+Math.abs(i.x)+Math.abs(i.y))*8*f(),a=n*h-r*o;if(Math.abs(a)>u)return a<0?-1:1;if(x(s.x,t.x)&&x(i.y,t.y)&&x(s.y,t.y)&&x(i.x,t.x)&&m(n,h)&&m(r,o)){const t=n*h,s=r*o;if(x(t,s)){const i=t-s;return i<0?-1:i>0?1:0}}return ks.orientationRobustMp(t,s,i)}static orientationRobustMp(t,s,i){const e=Ds.constructDouble(s.x),n=Ds.constructDouble(i.x);{const s=Ds.constructDouble(t.x);e.subThis(s),n.subThis(s)}const r=Ds.constructDouble(i.y),o=Ds.constructDouble(s.y);{const s=Ds.constructDouble(t.y);r.subThis(s),o.subThis(s)}return e.mulThis(r),o.mulThis(n),e.subThis(o),e.LZ()?-1:e.GZ()?1:0}static inCircleRobust(t,s,i,e){const n=new c,r=new c;n.set(t.x),n.subThis(e.x),r.set(t.y),r.subThis(e.y);const o=new c,h=new c;o.set(s.x),o.subThis(e.x),h.set(s.y),h.subThis(e.y);const u=new c,a=new c;u.set(i.x),u.subThis(e.x),a.set(i.y),a.subThis(e.y);const l=n.mulE(h).subE(r.mulE(o)),m=o.mulE(a).subE(h.mulE(u)),y=n.mulE(a).subE(r.mulE(u)),x=n.mulE(n).addE(r.mulE(r)),f=o.mulE(o).addE(h.mulE(h)),d=u.mulE(u).addE(a.mulE(a)),b=x.mulE(m).subE(f.mulE(y)).addE(d.mulE(l));if(!b.isFuzzyZero()){const t=b.value();return t<0?-1:t>0?1:0}return ks.inCircleRobustMp(t,s,i,e)}static inCircleRobustMp(t,s,i,e){do{if(!x(t.x,e.x)||!x(t.y,e.y))break;if(!x(s.x,e.x)||!x(s.y,e.y))break;if(!x(i.x,e.x)||!x(i.y,e.y))break;const n=t.x-e.x,r=t.y-e.y,o=s.x-e.x,h=s.y-e.y,u=i.x-e.x,a=i.y-e.y;if(!m(n,h)||!m(r,o))break;if(!m(o,a)||!m(h,u))break;if(!m(n,a)||!m(r,u))break;if(!m(n,n)||!m(r,r))break;if(!m(o,o)||!m(h,h))break;if(!m(u,u)||!m(a,a))break;const l=n*h,c=r*o,f=o*a,d=h*u,b=n*a,v=r*u,_=n*n,w=r*r,N=o*o,p=h*h,M=u*u,g=a*a;if(!x(l,c))break;if(!x(f,d))break;if(!x(b,v))break;if(!y(_,w))break;if(!y(N,p))break;if(!y(M,g))break;const C=l-c,T=f-d,R=b-v,E=_+w,I=N+p,P=M+g;if(!m(E,T))break;if(!m(I,R))break;if(!m(P,C))break;const D=E*T,A=I*R,q=P*C;if(!x(D,A))break;const z=D-A;if(!y(z,q))break;const S=z+q;return S<0?-1:S>0?1:0}while(0);const n=Ds.constructDouble(e.x),r=Ds.constructDouble(e.y),o=Ds.constructDouble(t.x),h=Ds.constructDouble(t.y);o.subThis(n),h.subThis(r);const u=Ds.constructDouble(s.x),a=Ds.constructDouble(s.y);u.subThis(n),a.subThis(r);const l=Ds.constructDouble(i.x),c=Ds.constructDouble(i.y);l.subThis(n),c.subThis(r);const f=o.mul(a).sub(h.mul(u)),d=u.mul(c).sub(a.mul(l)),b=o.mul(c).sub(h.mul(l)),v=o.mul(o).add(h.mul(h)),_=u.mul(u).add(a.mul(a)),w=l.mul(l).add(c.mul(c)),N=v.mul(d).sub(_.mul(b)).add(w.mul(f));return N.LZ()?-1:N.GZ()?1:0}static inCircleRobustMp3Point(t,s,i){const e=Ds.constructDouble(t.x),n=Ds.constructDouble(t.y),r=Ds.constructDouble(s.x),o=Ds.constructDouble(s.y),h=Ds.constructDouble(i.x),u=Ds.constructDouble(i.y),a=h.mul(h).add(u.mul(u)).sub(h.mul(e).add(u.mul(n)).add(h.mul(r)).add(u.mul(o))).add(e.mul(r).add(n.mul(o)));return a.LZ()?-1:a.GZ()?1:0}static inCircleRobust3Point(t,s,i){const e=new c(t.x),n=new c(t.y),r=new c(s.x),o=new c(s.y),h=new c(i.x),u=new c(i.y),a=h.mulE(h).addE(u.mulE(u)).subE(h.mulE(e).addE(u.mulE(n)).addE(h.mulE(r)).addE(u.mulE(o))).addE(e.mulE(r).addE(n.mulE(o)));if(!a.isFuzzyZero()){const t=a.value();return t<0?-1:t>0?1:0}return ks.inCircleRobustMp3Point(t,s,i)}static calculateCircleCenterFromThreePoints(t,s,i){if(t.equals(i)||t.equals(s)||i.equals(s))return ks.getNAN();const e=function(t,s,i){const e=new c(s.x);e.subThis(t.x);const n=new c(s.y);n.subThis(t.y);const r=new c(i.x);r.subThis(t.x);const o=new c(i.y);o.subThis(t.y);const h=e.clone();h.mulThisE(o);let u=n.clone();if(u.mulThisE(r),h.subThisE(u),0===h.value())return ks.getNAN();h.mulThis(2);const a=e.clone();a.mulThisE(e);const l=n.clone();l.mulThisE(n);const m=a.clone();m.addThisE(l);const y=r.clone();y.mulThisE(r);const x=o.clone();x.mulThisE(o);const f=y.clone();f.addThisE(x);const d=n.clone();d.mulThisE(f),u=o.clone(),u.mulThisE(m),d.subThisE(u),d.divThisE(h);const b=e.clone();b.mulThisE(f),u=r.clone(),u.mulThisE(m),b.subThisE(u),b.divThisE(h);const v=ks.construct(t.x-d.value(),t.y+b.value()),_=t.sub(v).length(),w=s.sub(v).length(),N=i.sub(v).length(),p=1e-15*(_+Math.abs(t.x)+Math.abs(s.x)+Math.abs(i.x)+Math.abs(t.y)+Math.abs(s.y)+Math.abs(i.y));return Math.abs(_-w)<=p&&Math.abs(_-N)<=p&&d.eps()<p&&b.eps()<p?v:ks.getNAN()}(t,s,i);return e.isNAN()?function(t,s,i){const e=Ds.constructDouble(s.x);e.subDoubleThis(t.x);const n=Ds.constructDouble(s.y);n.subDoubleThis(t.y);const r=Ds.constructDouble(i.x);r.subDoubleThis(t.x);const o=Ds.constructDouble(i.y);o.subDoubleThis(t.y);const h=e.clone();h.mulThis(o);let u=n.clone();if(u.mulThis(r),h.subThis(u),h.isZero())return ks.getNAN();h.mulDoubleThis(2);const a=e.clone();a.mulThis(e);const l=n.clone();l.mulThis(n);const c=a.clone();c.addThis(l);const m=r.clone();m.mulThis(r);const y=o.clone();y.mulThis(o);const x=m.clone();x.addThis(y);const f=n.clone();f.mulThis(x),u=o.clone(),u.mulThis(c),f.subThis(u),f.divThis(h);const d=e.clone();return d.mulThis(x),u=r.clone(),u.mulThis(c),d.subThis(u),d.divThis(h),ks.construct(t.x-f.value(),t.y+d.value())}(t,s,i):e}static calculateAngle(t,s){return Math.atan2(t.crossProduct(s),t.dotProduct(s))}static isBisectorRobust(t,s,i){return(0,e.g)(0),!1}static size(){return 2}get 0(){return this.x}get 1(){return this.y}set 0(t){this.x=t}set 1(t){this.y=t}static compareZorder(t,s){const i=ks.c_compare_zorder_xx[t.x<0?1:0]|ks.c_compare_zorder_yy[t.y<0?1:0],e=ks.c_compare_zorder_xx[s.x<0?1:0]|ks.c_compare_zorder_yy[s.y<0?1:0];if(i===e){let i=0,e=0;for(let n=0;n<2;++n){const r=zs(t[n],s[n]);r>i&&(i=r,e=n)}return t[e]<s[e]}return i<e}static lerp(t,s,i){const e=new ks;return Z(t,s,i,e),e}static getClosestCoordinate(t,s,i,e=!1){const n=ks.getNAN();n.setSub(s,t);const r=n.sqrLength();if(0===r)return.5;if(s.isEqualPoint2D(i))return 1;const o=ks.getNAN();o.setSub(i,t);let h=o.dotProduct(n)/r;return e||(h<0?h=0:h>1&&(h=1)),h}static intersectLinesAtOnePoint(t,s,i,e){if(t.equals(s)||i.equals(e))return ks.getNAN();const n=s.x-t.x,r=i.x-e.x,o=s.y-t.y,h=i.y-e.y,u=n*h-r*o;if(!u)return ks.getNAN();const a=u;if(0===a)return ks.getNAN();let l=(i.x-t.x)*h-(i.y-t.y)*r;l/=a;const c=new ks;return Z(t,s,l,c),c.isFinite()?c:ks.getNAN()}toString(){return`[${this.x},${this.y}]`}}ks.dimensions=2,ks.d=[[0,1,0,-1],[-1,0,1,0],[0,-1,0,1],[1,0,-1,0]],ks.c_compare_zorder_xx=[2,0],ks.c_compare_zorder_yy=[1,0]}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1053],{11053:(e,l,n)=>{n.d(l,{c:()=>t,g:()=>o});var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1053,6187],{11053:(e,t,_)=>{_.d(t,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},46187:(e,t,_)=>{_.r(t),_.d(t,{p:()=>i});var r,o=_(11053),n={exports:{}};const p=(0,o.g)(function(){return r||(r=1,e=n,t="undefined"!=typeof document?document.currentScript?.src:void 0,"undefined"!=typeof __filename&&(t=t||__filename),_=function(e={}){var _,r,o,n,p=e,i=new Promise(((e,t)=>{_=e,r=t})),c="object"==typeof window,s="undefined"!=typeof WorkerGlobalScope,P="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&"renderer"!=process.type,a=Object.assign({},p),g="./this.program",y="";if(P){var d=require("fs"),u=require("path");y=__dirname+"/",n=e=>(e=F(e)?new URL(e):u.normalize(e),d.readFileSync(e)),o=(e,t=!0)=>(e=F(e)?new URL(e):u.normalize(e),new Promise(((_,r)=>{d.readFile(e,t?void 0:"utf8",((e,o)=>{e?r(e):_(t?o.buffer:o)}))}))),!p.thisProgram&&process.argv.length>1&&(g=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(c||s)&&(s?y=self.location.href:"undefined"!=typeof document&&document.currentScript&&(y=document.currentScript.src),t&&(y=t),y=y.startsWith("blob:")?"":y.substr(0,y.replace(/[?#].*/,"").lastIndexOf("/")+1),s&&(n=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),o=e=>F(e)?new Promise(((t,_)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):_(r.status)},r.onerror=_,r.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var b,f=console.log.bind(console),E=console.error.bind(console);Object.assign(p,a),a=null;var m,T,O,S,l,h,N,M=!1;function D(e,t){e||I(t)}function v(){var e=b.buffer;p.HEAP8=m=new Int8Array(e),p.HEAP16=O=new Int16Array(e),p.HEAPU8=T=new Uint8Array(e),p.HEAPU16=new Uint16Array(e),p.HEAP32=S=new Int32Array(e),p.HEAPU32=l=new Uint32Array(e),p.HEAPF32=h=new Float32Array(e),p.HEAPF64=N=new Float64Array(e)}var A=[],j=[],R=[],G=0,C=null;function I(e){E(e="Aborted("+e+")"),M=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw r(t),t}var L,U=e=>e.startsWith("data:application/octet-stream;base64,"),F=e=>e.startsWith("file://");function w(e,t,_){return function(e){return o(e).then((e=>new Uint8Array(e)),(()=>function(e){if(n)return n(e);throw"both async and sync fetching of the wasm failed"}(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then(_,(e=>{E(`failed to asynchronously prepare wasm: ${e}`),I(e)}))}var Y=e=>{for(;e.length>0;)e.shift()(p)},x="undefined"!=typeof TextDecoder?new TextDecoder:void 0,H=(e,t=0,_=NaN)=>{for(var r=t+_,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&x)return x.decode(e.subarray(t,o));for(var n="";t<o;){var p=e[t++];if(128&p){var i=63&e[t++];if(192!=(224&p)){var c=63&e[t++];if((p=224==(240&p)?(15&p)<<12|i<<6|c:(7&p)<<18|i<<12|c<<6|63&e[t++])<65536)n+=String.fromCharCode(p);else{var s=p-65536;n+=String.fromCharCode(55296|s>>10,56320|1023&s)}}else n+=String.fromCharCode((31&p)<<6|i)}else n+=String.fromCharCode(p)}return n},X=(e,t)=>e?H(T,e,t):"",z=(e,t,_,r)=>{if(!(r>0))return 0;for(var o=_,n=_+r-1,p=0;p<e.length;++p){var i=e.charCodeAt(p);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++p)),i<=127){if(_>=n)break;t[_++]=i}else if(i<=2047){if(_+1>=n)break;t[_++]=192|i>>6,t[_++]=128|63&i}else if(i<=65535){if(_+2>=n)break;t[_++]=224|i>>12,t[_++]=128|i>>6&63,t[_++]=128|63&i}else{if(_+3>=n)break;t[_++]=240|i>>18,t[_++]=128|i>>12&63,t[_++]=128|i>>6&63,t[_++]=128|63&i}}return t[_]=0,_-o},W=(e,t,_)=>z(e,T,t,_),Z=[0,31,60,91,121,152,182,213,244,274,305,335],q=[0,31,59,90,120,151,181,212,243,273,304,334],B=(e,t)=>Math.ceil(e/t)*t,K=e=>{var t=(e-b.buffer.byteLength+65535)/65536|0;try{return b.grow(t),v(),1}catch(e){}},V={},k=()=>{if(!k.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:g||"./this.program"};for(var t in V)void 0===V[t]?delete e[t]:e[t]=V[t];var _=[];for(var t in e)_.push(`${t}=${e[t]}`);k.strings=_}return k.strings},$=[null,[],[]],J=(e,t)=>{var _=$[e];0===t||10===t?((1===e?f:E)(H(_)),_.length=0):_.push(t)},Q={c:function(e,t,_){return 0},q:(e,t,_)=>{},h:function(e,t,_){return 0},d:function(e,t,_,r){},o:e=>{},n:(e,t)=>{},p:(e,t,_)=>{},l:()=>{I("")},s:(e,t,_)=>T.copyWithin(e,t,t+_),j:function(e,t,_){var r=((e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN)(e,t),o=new Date(1e3*r);S[_>>2]=o.getSeconds(),S[_+4>>2]=o.getMinutes(),S[_+8>>2]=o.getHours(),S[_+12>>2]=o.getDate(),S[_+16>>2]=o.getMonth(),S[_+20>>2]=o.getFullYear()-1900,S[_+24>>2]=o.getDay();var n=0|(e=>((e=>e%4==0&&(e%100!=0||e%400==0))(e.getFullYear())?Z:q)[e.getMonth()]+e.getDate()-1)(o);S[_+28>>2]=n,S[_+36>>2]=-60*o.getTimezoneOffset();var p=new Date(o.getFullYear(),0,1),i=new Date(o.getFullYear(),6,1).getTimezoneOffset(),c=p.getTimezoneOffset(),s=0|(i!=c&&o.getTimezoneOffset()==Math.min(c,i));S[_+32>>2]=s},r:(e,t,_,r)=>{var o=(new Date).getFullYear(),n=new Date(o,0,1),p=new Date(o,6,1),i=n.getTimezoneOffset(),c=p.getTimezoneOffset(),s=Math.max(i,c);l[e>>2]=60*s,S[t>>2]=Number(i!=c);var P=e=>{var t=e>=0?"-":"+",_=Math.abs(e);return`UTC${t}${String(Math.floor(_/60)).padStart(2,"0")}${String(_%60).padStart(2,"0")}`},a=P(i),g=P(c);c<i?(W(a,_,17),W(g,r,17)):(W(a,r,17),W(g,_,17))},i:()=>Date.now(),m:e=>{var t=T.length,_=2147483648;if((e>>>=0)>_)return!1;for(var r=1;r<=4;r*=2){var o=t*(1+.2/r);o=Math.min(o,e+100663296);var n=Math.min(_,B(Math.max(e,o),65536));if(K(n))return!0}return!1},e:(e,t)=>{var _=0;return k().forEach(((r,o)=>{var n=t+_;l[e+4*o>>2]=n,((e,t)=>{for(var _=0;_<e.length;++_)m[t++]=e.charCodeAt(_);m[t]=0})(r,n),_+=r.length+1})),0},f:(e,t)=>{var _=k();l[e>>2]=_.length;var r=0;return _.forEach((e=>r+=e.length+1)),l[t>>2]=r,0},a:e=>52,g:(e,t,_,r)=>52,k:function(e,t,_,r,o){return 70},b:(e,t,_,r)=>{for(var o=0,n=0;n<_;n++){var p=l[t>>2],i=l[t+4>>2];t+=8;for(var c=0;c<i;c++)J(e,T[p+c]);o+=i}return l[r>>2]=o,0}},ee=function(){var e={a:Q};return G++,L??=function(){var e="pe-wasm.wasm";return U(e)?e:function(e){return p.locateFile?p.locateFile(e,y):y+e}(e)}(),function(e,t,_,r){return"function"!=typeof WebAssembly.instantiateStreaming||U(t)||F(t)||P||"function"!=typeof fetch?w(t,_,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,_).then(r,(function(e){return E(`wasm streaming compile failed: ${e}`),E("falling back to ArrayBuffer instantiation"),w(t,_,r)}))))}(0,L,e,(function(e){!function(e){ee=e.exports,b=ee.t,v(),function(e){j.unshift(e)}(ee.u),function(){if(0==--G&&C){var e=C;C=null,e()}}()}(e.instance)})).catch(r),{}}();p._webidl_free=e=>(p._webidl_free=ee.v)(e),p._webidl_malloc=e=>(p._webidl_malloc=ee.w)(e);var te,_e=p._emscripten_bind_PeObject_getCode_0=e=>(_e=p._emscripten_bind_PeObject_getCode_0=ee.x)(e),re=p._emscripten_bind_PeObject_getName_1=(e,t)=>(re=p._emscripten_bind_PeObject_getName_1=ee.y)(e,t),oe=p._emscripten_bind_PeObject_getType_0=e=>(oe=p._emscripten_bind_PeObject_getType_0=ee.z)(e),ne=p._emscripten_bind_PeCoordsys_isEqual_1=(e,t)=>(ne=p._emscripten_bind_PeCoordsys_isEqual_1=ee.A)(e,t),pe=p._emscripten_bind_PeCoordsys_getCode_0=e=>(pe=p._emscripten_bind_PeCoordsys_getCode_0=ee.B)(e),ie=p._emscripten_bind_PeCoordsys_getName_1=(e,t)=>(ie=p._emscripten_bind_PeCoordsys_getName_1=ee.C)(e,t),ce=p._emscripten_bind_PeCoordsys_getType_0=e=>(ce=p._emscripten_bind_PeCoordsys_getType_0=ee.D)(e),se=p._emscripten_bind_PeUnit_getUnitFactor_0=e=>(se=p._emscripten_bind_PeUnit_getUnitFactor_0=ee.E)(e),Pe=p._emscripten_bind_PeUnit_getCode_0=e=>(Pe=p._emscripten_bind_PeUnit_getCode_0=ee.F)(e),ae=p._emscripten_bind_PeUnit_getName_1=(e,t)=>(ae=p._emscripten_bind_PeUnit_getName_1=ee.G)(e,t),ge=p._emscripten_bind_PeUnit_getType_0=e=>(ge=p._emscripten_bind_PeUnit_getType_0=ee.H)(e),ye=p._emscripten_bind_VoidPtr___destroy___0=e=>(ye=p._emscripten_bind_VoidPtr___destroy___0=ee.I)(e),de=p._emscripten_bind_PeAngunit_getCode_0=e=>(de=p._emscripten_bind_PeAngunit_getCode_0=ee.J)(e),ue=p._emscripten_bind_PeAngunit_getName_1=(e,t)=>(ue=p._emscripten_bind_PeAngunit_getName_1=ee.K)(e,t),be=p._emscripten_bind_PeAngunit_getType_0=e=>(be=p._emscripten_bind_PeAngunit_getType_0=ee.L)(e),fe=p._emscripten_bind_PeAngunit_getUnitFactor_0=e=>(fe=p._emscripten_bind_PeAngunit_getUnitFactor_0=ee.M)(e),Ee=p._emscripten_bind_PeDatum_getSpheroid_0=e=>(Ee=p._emscripten_bind_PeDatum_getSpheroid_0=ee.N)(e),me=p._emscripten_bind_PeDatum_getCode_0=e=>(me=p._emscripten_bind_PeDatum_getCode_0=ee.O)(e),Te=p._emscripten_bind_PeDatum_getName_1=(e,t)=>(Te=p._emscripten_bind_PeDatum_getName_1=ee.P)(e,t),Oe=p._emscripten_bind_PeDatum_getType_0=e=>(Oe=p._emscripten_bind_PeDatum_getType_0=ee.Q)(e),Se=p._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=e=>(Se=p._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=ee.R)(e),le=p._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=e=>(le=p._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=ee.S)(e),he=p._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=e=>(he=p._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=ee.T)(e),Ne=p._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=e=>(Ne=p._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=ee.U)(e),Me=p._emscripten_bind_PeDefs_get_PE_DD_MAX_0=e=>(Me=p._emscripten_bind_PeDefs_get_PE_DD_MAX_0=ee.V)(e),De=p._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=e=>(De=p._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=ee.W)(e),ve=p._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=e=>(ve=p._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=ee.X)(e),Ae=p._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=e=>(Ae=p._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=ee.Y)(e),je=p._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=e=>(je=p._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=ee.Z)(e),Re=p._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=e=>(Re=p._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=ee._)(e),Ge=p._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=e=>(Ge=p._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=ee.$)(e),Ce=p._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=e=>(Ce=p._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=ee.aa)(e),Ie=p._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=e=>(Ie=p._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=ee.ba)(e),Le=p._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=e=>(Le=p._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=ee.ca)(e),Ue=p._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=e=>(Ue=p._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=ee.da)(e),Fe=p._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=e=>(Fe=p._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=ee.ea)(e),we=p._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=e=>(we=p._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=ee.fa)(e),Ye=p._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=e=>(Ye=p._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=ee.ga)(e),xe=p._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=e=>(xe=p._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=ee.ha)(e),He=p._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=e=>(He=p._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=ee.ia)(e),Xe=p._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=e=>(Xe=p._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=ee.ja)(e),ze=p._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=e=>(ze=p._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=ee.ka)(e),We=p._emscripten_bind_PeDefs_get_PE_PARM_X0_0=e=>(We=p._emscripten_bind_PeDefs_get_PE_PARM_X0_0=ee.la)(e),Ze=p._emscripten_bind_PeDefs_get_PE_PARM_ND_0=e=>(Ze=p._emscripten_bind_PeDefs_get_PE_PARM_ND_0=ee.ma)(e),qe=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=e=>(qe=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=ee.na)(e),Be=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=e=>(Be=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=ee.oa)(e),Ke=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=e=>(Ke=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=ee.pa)(e),Ve=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=e=>(Ve=p._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=ee.qa)(e),ke=p._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=e=>(ke=p._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=ee.ra)(e),$e=p._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=e=>($e=p._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=ee.sa)(e),Je=p._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=e=>(Je=p._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=ee.ta)(e),Qe=p._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=e=>(Qe=p._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=ee.ua)(e),et=p._emscripten_bind_PeDouble_PeDouble_1=e=>(et=p._emscripten_bind_PeDouble_PeDouble_1=ee.va)(e),tt=p._emscripten_bind_PeDouble_get_val_0=e=>(tt=p._emscripten_bind_PeDouble_get_val_0=ee.wa)(e),_t=p._emscripten_bind_PeDouble_set_val_1=(e,t)=>(_t=p._emscripten_bind_PeDouble_set_val_1=ee.xa)(e,t),rt=p._emscripten_bind_PeDouble___destroy___0=e=>(rt=p._emscripten_bind_PeDouble___destroy___0=ee.ya)(e),ot=p._emscripten_bind_PeFactory_initialize_1=e=>(ot=p._emscripten_bind_PeFactory_initialize_1=ee.za)(e),nt=p._emscripten_bind_PeFactory_factoryByType_2=(e,t)=>(nt=p._emscripten_bind_PeFactory_factoryByType_2=ee.Aa)(e,t),pt=p._emscripten_bind_PeFactory_fromString_2=(e,t)=>(pt=p._emscripten_bind_PeFactory_fromString_2=ee.Ba)(e,t),it=p._emscripten_bind_PeFactory_getCode_1=e=>(it=p._emscripten_bind_PeFactory_getCode_1=ee.Ca)(e),ct=p._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(e,t,_,r,o,n)=>(ct=p._emscripten_bind_PeGCSExtent_PeGCSExtent_6=ee.Da)(e,t,_,r,o,n),st=p._emscripten_bind_PeGCSExtent_getLLon_0=e=>(st=p._emscripten_bind_PeGCSExtent_getLLon_0=ee.Ea)(e),Pt=p._emscripten_bind_PeGCSExtent_getSLat_0=e=>(Pt=p._emscripten_bind_PeGCSExtent_getSLat_0=ee.Fa)(e),at=p._emscripten_bind_PeGCSExtent_getRLon_0=e=>(at=p._emscripten_bind_PeGCSExtent_getRLon_0=ee.Ga)(e),gt=p._emscripten_bind_PeGCSExtent_getNLat_0=e=>(gt=p._emscripten_bind_PeGCSExtent_getNLat_0=ee.Ha)(e),yt=p._emscripten_bind_PeGCSExtent___destroy___0=e=>(yt=p._emscripten_bind_PeGCSExtent___destroy___0=ee.Ia)(e),dt=p._emscripten_bind_PeGeogcs_Delete_0=e=>(dt=p._emscripten_bind_PeGeogcs_Delete_0=ee.Ja)(e),ut=p._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(e,t)=>(ut=p._emscripten_bind_PeGeogcs_cloneAlterUnits_1=ee.Ka)(e,t),bt=p._emscripten_bind_PeGeogcs_getDatum_0=e=>(bt=p._emscripten_bind_PeGeogcs_getDatum_0=ee.La)(e),ft=p._emscripten_bind_PeGeogcs_getPrimem_0=e=>(ft=p._emscripten_bind_PeGeogcs_getPrimem_0=ee.Ma)(e),Et=p._emscripten_bind_PeGeogcs_getUnit_0=e=>(Et=p._emscripten_bind_PeGeogcs_getUnit_0=ee.Na)(e),mt=p._emscripten_bind_PeGeogcs_isEqual_1=(e,t)=>(mt=p._emscripten_bind_PeGeogcs_isEqual_1=ee.Oa)(e,t),Tt=p._emscripten_bind_PeGeogcs_getCode_0=e=>(Tt=p._emscripten_bind_PeGeogcs_getCode_0=ee.Pa)(e),Ot=p._emscripten_bind_PeGeogcs_getName_1=(e,t)=>(Ot=p._emscripten_bind_PeGeogcs_getName_1=ee.Qa)(e,t),St=p._emscripten_bind_PeGeogcs_getType_0=e=>(St=p._emscripten_bind_PeGeogcs_getType_0=ee.Ra)(e),lt=p._emscripten_bind_PeGeogtran_isEqual_1=(e,t)=>(lt=p._emscripten_bind_PeGeogtran_isEqual_1=ee.Sa)(e,t),ht=p._emscripten_bind_PeGeogtran_getGeogcs1_0=e=>(ht=p._emscripten_bind_PeGeogtran_getGeogcs1_0=ee.Ta)(e),Nt=p._emscripten_bind_PeGeogtran_getGeogcs2_0=e=>(Nt=p._emscripten_bind_PeGeogtran_getGeogcs2_0=ee.Ua)(e),Mt=p._emscripten_bind_PeGeogtran_getParameters_0=e=>(Mt=p._emscripten_bind_PeGeogtran_getParameters_0=ee.Va)(e),Dt=p._emscripten_bind_PeGeogtran_loadConstants_0=e=>(Dt=p._emscripten_bind_PeGeogtran_loadConstants_0=ee.Wa)(e),vt=p._emscripten_bind_PeGeogtran_getCode_0=e=>(vt=p._emscripten_bind_PeGeogtran_getCode_0=ee.Xa)(e),At=p._emscripten_bind_PeGeogtran_getName_1=(e,t)=>(At=p._emscripten_bind_PeGeogtran_getName_1=ee.Ya)(e,t),jt=p._emscripten_bind_PeGeogtran_getType_0=e=>(jt=p._emscripten_bind_PeGeogtran_getType_0=ee.Za)(e),Rt=p._emscripten_bind_PeGTlistExtended_getGTlist_6=(e,t,_,r,o,n)=>(Rt=p._emscripten_bind_PeGTlistExtended_getGTlist_6=ee._a)(e,t,_,r,o,n),Gt=p._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=e=>(Gt=p._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=ee.$a)(e),Ct=p._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=e=>(Ct=p._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=ee.ab)(e),It=p._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=e=>(It=p._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=ee.bb)(e),Lt=p._emscripten_bind_PeGTlistExtendedEntry_Delete_1=e=>(Lt=p._emscripten_bind_PeGTlistExtendedEntry_Delete_1=ee.cb)(e),Ut=p._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=e=>(Ut=p._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=ee.db)(e),Ft=p._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=e=>(Ft=p._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=ee.eb)(e),wt=p._emscripten_bind_PeHorizon_getNump_0=e=>(wt=p._emscripten_bind_PeHorizon_getNump_0=ee.fb)(e),Yt=p._emscripten_bind_PeHorizon_getKind_0=e=>(Yt=p._emscripten_bind_PeHorizon_getKind_0=ee.gb)(e),xt=p._emscripten_bind_PeHorizon_getInclusive_0=e=>(xt=p._emscripten_bind_PeHorizon_getInclusive_0=ee.hb)(e),Ht=p._emscripten_bind_PeHorizon_getSize_0=e=>(Ht=p._emscripten_bind_PeHorizon_getSize_0=ee.ib)(e),Xt=p._emscripten_bind_PeHorizon_getCoord_0=e=>(Xt=p._emscripten_bind_PeHorizon_getCoord_0=ee.jb)(e),zt=p._emscripten_bind_PeInteger_PeInteger_1=e=>(zt=p._emscripten_bind_PeInteger_PeInteger_1=ee.kb)(e),Wt=p._emscripten_bind_PeInteger_get_val_0=e=>(Wt=p._emscripten_bind_PeInteger_get_val_0=ee.lb)(e),Zt=p._emscripten_bind_PeInteger_set_val_1=(e,t)=>(Zt=p._emscripten_bind_PeInteger_set_val_1=ee.mb)(e,t),qt=p._emscripten_bind_PeInteger___destroy___0=e=>(qt=p._emscripten_bind_PeInteger___destroy___0=ee.nb)(e),Bt=p._emscripten_bind_PeLineType_geodetic_distance_10=(e,t,_,r,o,n,i,c,s,P)=>(Bt=p._emscripten_bind_PeLineType_geodetic_distance_10=ee.ob)(e,t,_,r,o,n,i,c,s,P),Kt=p._emscripten_bind_PeLineType_geodetic_coordinate_9=(e,t,_,r,o,n,i,c,s)=>(Kt=p._emscripten_bind_PeLineType_geodetic_coordinate_9=ee.pb)(e,t,_,r,o,n,i,c,s),Vt=p._emscripten_bind_PeLineType_geodesic_coordinate_8=(e,t,_,r,o,n,i,c)=>(Vt=p._emscripten_bind_PeLineType_geodesic_coordinate_8=ee.qb)(e,t,_,r,o,n,i,c),kt=p._emscripten_bind_PeLineType_great_elliptic_distance_9=(e,t,_,r,o,n,i,c,s)=>(kt=p._emscripten_bind_PeLineType_great_elliptic_distance_9=ee.rb)(e,t,_,r,o,n,i,c,s),$t=p._emscripten_bind_PeMath_phi_to_eta_2=(e,t)=>($t=p._emscripten_bind_PeMath_phi_to_eta_2=ee.sb)(e,t),Jt=p._emscripten_bind_PeMath_eta_to_phi_2=(e,t)=>(Jt=p._emscripten_bind_PeMath_eta_to_phi_2=ee.tb)(e,t),Qt=p._emscripten_bind_PeMath_phi_to_phig_2=(e,t)=>(Qt=p._emscripten_bind_PeMath_phi_to_phig_2=ee.ub)(e,t),e_=p._emscripten_bind_PeMath_q_3=(e,t,_)=>(e_=p._emscripten_bind_PeMath_q_3=ee.vb)(e,t,_),t_=p._emscripten_bind_PeMath_q90_2=(e,t)=>(t_=p._emscripten_bind_PeMath_q90_2=ee.wb)(e,t),__=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=e=>(__=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=ee.xb)(e),r_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=e=>(r_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=ee.yb)(e),o_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=e=>(o_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=ee.zb)(e),n_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=e=>(n_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=ee.Ab)(e),p_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=e=>(p_=p._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=ee.Bb)(e),i_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=e=>(i_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=ee.Cb)(e),c_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=e=>(c_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=ee.Db)(e),s_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=e=>(s_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=ee.Eb)(e),P_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=e=>(P_=p._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=ee.Fb)(e),a_=p._emscripten_bind_PeParameter_getValue_0=e=>(a_=p._emscripten_bind_PeParameter_getValue_0=ee.Gb)(e),g_=p._emscripten_bind_PeParameter_getCode_0=e=>(g_=p._emscripten_bind_PeParameter_getCode_0=ee.Hb)(e),y_=p._emscripten_bind_PeParameter_getName_1=(e,t)=>(y_=p._emscripten_bind_PeParameter_getName_1=ee.Ib)(e,t),d_=p._emscripten_bind_PeParameter_getType_0=e=>(d_=p._emscripten_bind_PeParameter_getType_0=ee.Jb)(e),u_=p._emscripten_bind_PePCSInfo_getCentralMeridian_0=e=>(u_=p._emscripten_bind_PePCSInfo_getCentralMeridian_0=ee.Kb)(e),b_=p._emscripten_bind_PePCSInfo_getDomainMinx_0=e=>(b_=p._emscripten_bind_PePCSInfo_getDomainMinx_0=ee.Lb)(e),f_=p._emscripten_bind_PePCSInfo_getDomainMiny_0=e=>(f_=p._emscripten_bind_PePCSInfo_getDomainMiny_0=ee.Mb)(e),E_=p._emscripten_bind_PePCSInfo_getDomainMaxx_0=e=>(E_=p._emscripten_bind_PePCSInfo_getDomainMaxx_0=ee.Nb)(e),m_=p._emscripten_bind_PePCSInfo_getDomainMaxy_0=e=>(m_=p._emscripten_bind_PePCSInfo_getDomainMaxy_0=ee.Ob)(e),T_=p._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=e=>(T_=p._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=ee.Pb)(e),O_=p._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=e=>(O_=p._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=ee.Qb)(e),S_=p._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=e=>(S_=p._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=ee.Rb)(e),l_=p._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=e=>(l_=p._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=ee.Sb)(e),h_=p._emscripten_bind_PePCSInfo_isDensificationNeeded_0=e=>(h_=p._emscripten_bind_PePCSInfo_isDensificationNeeded_0=ee.Tb)(e),N_=p._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=e=>(N_=p._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=ee.Ub)(e),M_=p._emscripten_bind_PePCSInfo_isPannableRectangle_0=e=>(M_=p._emscripten_bind_PePCSInfo_isPannableRectangle_0=ee.Vb)(e),D_=p._emscripten_bind_PePCSInfo_generate_2=(e,t)=>(D_=p._emscripten_bind_PePCSInfo_generate_2=ee.Wb)(e,t),v_=p._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=e=>(v_=p._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=ee.Xb)(e),A_=p._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=e=>(A_=p._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=ee.Yb)(e),j_=p._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=e=>(j_=p._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=ee.Zb)(e),R_=p._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=e=>(R_=p._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=ee._b)(e),G_=p._emscripten_bind_PePrimem_getLongitude_0=e=>(G_=p._emscripten_bind_PePrimem_getLongitude_0=ee.$b)(e),C_=p._emscripten_bind_PePrimem_getCode_0=e=>(C_=p._emscripten_bind_PePrimem_getCode_0=ee.ac)(e),I_=p._emscripten_bind_PePrimem_getName_1=(e,t)=>(I_=p._emscripten_bind_PePrimem_getName_1=ee.bc)(e,t),L_=p._emscripten_bind_PePrimem_getType_0=e=>(L_=p._emscripten_bind_PePrimem_getType_0=ee.cc)(e),U_=p._emscripten_bind_PeProjcs_Delete_0=e=>(U_=p._emscripten_bind_PeProjcs_Delete_0=ee.dc)(e),F_=p._emscripten_bind_PeProjcs_getGeogcs_0=e=>(F_=p._emscripten_bind_PeProjcs_getGeogcs_0=ee.ec)(e),w_=p._emscripten_bind_PeProjcs_getProjection_0=e=>(w_=p._emscripten_bind_PeProjcs_getProjection_0=ee.fc)(e),Y_=p._emscripten_bind_PeProjcs_getParameters_0=e=>(Y_=p._emscripten_bind_PeProjcs_getParameters_0=ee.gc)(e),x_=p._emscripten_bind_PeProjcs_getUnit_0=e=>(x_=p._emscripten_bind_PeProjcs_getUnit_0=ee.hc)(e),H_=p._emscripten_bind_PeProjcs_loadConstants_0=e=>(H_=p._emscripten_bind_PeProjcs_loadConstants_0=ee.ic)(e),X_=p._emscripten_bind_PeProjcs_horizonGcsGenerate_0=e=>(X_=p._emscripten_bind_PeProjcs_horizonGcsGenerate_0=ee.jc)(e),z_=p._emscripten_bind_PeProjcs_horizonPcsGenerate_0=e=>(z_=p._emscripten_bind_PeProjcs_horizonPcsGenerate_0=ee.kc)(e),W_=p._emscripten_bind_PeProjcs_isEqual_1=(e,t)=>(W_=p._emscripten_bind_PeProjcs_isEqual_1=ee.lc)(e,t),Z_=p._emscripten_bind_PeProjcs_getCode_0=e=>(Z_=p._emscripten_bind_PeProjcs_getCode_0=ee.mc)(e),q_=p._emscripten_bind_PeProjcs_getName_1=(e,t)=>(q_=p._emscripten_bind_PeProjcs_getName_1=ee.nc)(e,t),B_=p._emscripten_bind_PeProjcs_getType_0=e=>(B_=p._emscripten_bind_PeProjcs_getType_0=ee.oc)(e),K_=p._emscripten_bind_PeSpheroid_getAxis_0=e=>(K_=p._emscripten_bind_PeSpheroid_getAxis_0=ee.pc)(e),V_=p._emscripten_bind_PeSpheroid_getFlattening_0=e=>(V_=p._emscripten_bind_PeSpheroid_getFlattening_0=ee.qc)(e),k_=p._emscripten_bind_PeSpheroid_getCode_0=e=>(k_=p._emscripten_bind_PeSpheroid_getCode_0=ee.rc)(e),$_=p._emscripten_bind_PeSpheroid_getName_1=(e,t)=>($_=p._emscripten_bind_PeSpheroid_getName_1=ee.sc)(e,t),J_=p._emscripten_bind_PeSpheroid_getType_0=e=>(J_=p._emscripten_bind_PeSpheroid_getType_0=ee.tc)(e),Q_=p._emscripten_bind_PeVersion_version_string_0=e=>(Q_=p._emscripten_bind_PeVersion_version_string_0=ee.uc)(e);function er(){G>0||(Y(A),G>0||te||(te=!0,p.calledRun=!0,M||(Y(j),_(p),Y(R))))}function tr(){}function _r(e){return(e||tr).__cache__}function rr(e,t){var _=_r(t),r=_[e];return r||((r=Object.create((t||tr).prototype)).ptr=e,_[e]=r)}p._pe_getPeGTlistExtendedEntrySize=()=>(p._pe_getPeGTlistExtendedEntrySize=ee.vc)(),p._pe_getPeGTlistExtendedGTsSize=()=>(p._pe_getPeGTlistExtendedGTsSize=ee.wc)(),p._pe_getPeHorizonSize=()=>(p._pe_getPeHorizonSize=ee.xc)(),p._pe_geog_to_geog=(e,t,_,r,o)=>(p._pe_geog_to_geog=ee.zc)(e,t,_,r,o),p._pe_geog_to_proj=(e,t,_)=>(p._pe_geog_to_proj=ee.Ac)(e,t,_),p._pe_geog_to_dd=(e,t,_,r,o)=>(p._pe_geog_to_dd=ee.Bc)(e,t,_,r,o),p._pe_dd_to_geog=(e,t,_,r)=>(p._pe_dd_to_geog=ee.Cc)(e,t,_,r),p._pe_geog_to_ddm=(e,t,_,r,o)=>(p._pe_geog_to_ddm=ee.Dc)(e,t,_,r,o),p._pe_ddm_to_geog=(e,t,_,r)=>(p._pe_ddm_to_geog=ee.Ec)(e,t,_,r),p._pe_geog_to_dms=(e,t,_,r,o)=>(p._pe_geog_to_dms=ee.Fc)(e,t,_,r,o),p._pe_dms_to_geog=(e,t,_,r)=>(p._pe_dms_to_geog=ee.Gc)(e,t,_,r),p._pe_geog_to_mgrs_extended=(e,t,_,r,o,n,i)=>(p._pe_geog_to_mgrs_extended=ee.Hc)(e,t,_,r,o,n,i),p._pe_mgrs_to_geog_extended=(e,t,_,r,o)=>(p._pe_mgrs_to_geog_extended=ee.Ic)(e,t,_,r,o),p._pe_geog_to_usng=(e,t,_,r,o,n,i)=>(p._pe_geog_to_usng=ee.Jc)(e,t,_,r,o,n,i),p._pe_usng_to_geog=(e,t,_,r)=>(p._pe_usng_to_geog=ee.Kc)(e,t,_,r),p._pe_geog_to_utm=(e,t,_,r,o)=>(p._pe_geog_to_utm=ee.Lc)(e,t,_,r,o),p._pe_utm_to_geog=(e,t,_,r,o)=>(p._pe_utm_to_geog=ee.Mc)(e,t,_,r,o),p._pe_object_to_string_ext=(e,t,_)=>(p._pe_object_to_string_ext=ee.Nc)(e,t,_),p._pe_proj_to_geog_center=(e,t,_,r)=>(p._pe_proj_to_geog_center=ee.Oc)(e,t,_,r),p.getValue=function(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return m[e];case"i16":return O[e>>1];case"i32":return S[e>>2];case"i64":I("to do getValue(i64) use WASM_BIGINT");case"float":return h[e>>2];case"double":return N[e>>3];case"*":return l[e>>2];default:I(`invalid type for getValue: ${t}`)}},p.UTF8ToString=X,C=function e(){te||er(),te||(C=e)},er(),tr.prototype=Object.create(tr.prototype),tr.prototype.constructor=tr,tr.prototype.__class__=tr,tr.__cache__={},p.WrapperObject=tr,p.getCache=_r,p.wrapPointer=rr,p.castObject=function(e,t){return rr(e.ptr,t)},p.NULL=rr(0),p.destroy=function(e){if(!e.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";e.__destroy__(),delete _r(e.__class__)[e.ptr]},p.compare=function(e,t){return e.ptr===t.ptr},p.getPointer=function(e){return e.ptr},p.getClass=function(e){return e.__class__};var or={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(or.needed){for(var e=0;e<or.temps.length;e++)p._webidl_free(or.temps[e]);or.temps.length=0,p._webidl_free(or.buffer),or.buffer=0,or.size+=or.needed,or.needed=0}or.buffer||(or.size+=128,or.buffer=p._webidl_malloc(or.size),D(or.buffer)),or.pos=0},alloc(e,t){D(or.buffer);var _,r=t.BYTES_PER_ELEMENT,o=e.length*r;return o=B(o,8),or.pos+o>=or.size?(D(o>0),or.needed+=o,_=p._webidl_malloc(o),or.temps.push(_)):(_=or.buffer+or.pos,or.pos+=o),_},copy(e,t,_){_/=t.BYTES_PER_ELEMENT;for(var r=0;r<e.length;r++)t[_+r]=e[r]}};function nr(e){if("string"==typeof e){var t=function(e){var t=(e=>{for(var t=0,_=0;_<e.length;++_){var r=e.charCodeAt(_);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++_):t+=3}return t})(e)+1,_=new Array(t);return z(e,_,0,_.length),_}(e),_=or.alloc(t,m);return or.copy(t,m,_),_}return e}function pr(e){if("object"==typeof e){var t=or.alloc(e,m);return or.copy(e,m,t),t}return e}function ir(){throw"cannot construct a PeObject, no constructor in IDL"}function cr(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function sr(){throw"cannot construct a PeUnit, no constructor in IDL"}function Pr(){throw"cannot construct a VoidPtr, no constructor in IDL"}function ar(){throw"cannot construct a PeAngunit, no constructor in IDL"}function gr(){throw"cannot construct a PeDatum, no constructor in IDL"}function yr(){throw"cannot construct a PeDefs, no constructor in IDL"}function dr(e){e&&"object"==typeof e&&(e=e.ptr),this.ptr=et(e),_r(dr)[this.ptr]=this}function ur(){throw"cannot construct a PeFactory, no constructor in IDL"}function br(e,t,_,r,o,n){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),this.ptr=ct(e,t,_,r,o,n),_r(br)[this.ptr]=this}function fr(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function Er(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function mr(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function Tr(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function Or(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function Sr(){throw"cannot construct a PeHorizon, no constructor in IDL"}function lr(e){e&&"object"==typeof e&&(e=e.ptr),this.ptr=zt(e),_r(lr)[this.ptr]=this}function hr(){throw"cannot construct a PeLineType, no constructor in IDL"}function Nr(){throw"cannot construct a PeMath, no constructor in IDL"}function Mr(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function Dr(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function vr(){throw"cannot construct a PeParameter, no constructor in IDL"}function Ar(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function jr(){throw"cannot construct a PePrimem, no constructor in IDL"}function Rr(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Gr(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function Cr(){throw"cannot construct a PeVersion, no constructor in IDL"}return ir.prototype=Object.create(tr.prototype),ir.prototype.constructor=ir,ir.prototype.__class__=ir,ir.__cache__={},p.PeObject=ir,ir.prototype.getCode=ir.prototype.getCode=function(){var e=this.ptr;return _e(e)},ir.prototype.getName=ir.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(re(t,e))},ir.prototype.getType=ir.prototype.getType=function(){var e=this.ptr;return oe(e)},cr.prototype=Object.create(ir.prototype),cr.prototype.constructor=cr,cr.prototype.__class__=cr,cr.__cache__={},p.PeCoordsys=cr,cr.prototype.isEqual=cr.prototype.isEqual=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),!!ne(t,e)},cr.prototype.getCode=cr.prototype.getCode=function(){var e=this.ptr;return pe(e)},cr.prototype.getName=cr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(ie(t,e))},cr.prototype.getType=cr.prototype.getType=function(){var e=this.ptr;return ce(e)},sr.prototype=Object.create(ir.prototype),sr.prototype.constructor=sr,sr.prototype.__class__=sr,sr.__cache__={},p.PeUnit=sr,sr.prototype.getUnitFactor=sr.prototype.getUnitFactor=function(){var e=this.ptr;return se(e)},sr.prototype.getCode=sr.prototype.getCode=function(){var e=this.ptr;return Pe(e)},sr.prototype.getName=sr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(ae(t,e))},sr.prototype.getType=sr.prototype.getType=function(){var e=this.ptr;return ge(e)},Pr.prototype=Object.create(tr.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},p.VoidPtr=Pr,Pr.prototype.__destroy__=Pr.prototype.__destroy__=function(){var e=this.ptr;ye(e)},ar.prototype=Object.create(sr.prototype),ar.prototype.constructor=ar,ar.prototype.__class__=ar,ar.__cache__={},p.PeAngunit=ar,ar.prototype.getCode=ar.prototype.getCode=function(){var e=this.ptr;return de(e)},ar.prototype.getName=ar.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(ue(t,e))},ar.prototype.getType=ar.prototype.getType=function(){var e=this.ptr;return be(e)},ar.prototype.getUnitFactor=ar.prototype.getUnitFactor=function(){var e=this.ptr;return fe(e)},gr.prototype=Object.create(ir.prototype),gr.prototype.constructor=gr,gr.prototype.__class__=gr,gr.__cache__={},p.PeDatum=gr,gr.prototype.getSpheroid=gr.prototype.getSpheroid=function(){var e=this.ptr;return rr(Ee(e),Gr)},gr.prototype.getCode=gr.prototype.getCode=function(){var e=this.ptr;return me(e)},gr.prototype.getName=gr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(Te(t,e))},gr.prototype.getType=gr.prototype.getType=function(){var e=this.ptr;return Oe(e)},yr.prototype=Object.create(tr.prototype),yr.prototype.constructor=yr,yr.prototype.__class__=yr,yr.__cache__={},p.PeDefs=yr,yr.prototype.get_PE_BUFFER_MAX=yr.prototype.get_PE_BUFFER_MAX=function(){var e=this.ptr;return Se(e)},Object.defineProperty(yr.prototype,"PE_BUFFER_MAX",{get:yr.prototype.get_PE_BUFFER_MAX}),yr.prototype.get_PE_NAME_MAX=yr.prototype.get_PE_NAME_MAX=function(){var e=this.ptr;return le(e)},Object.defineProperty(yr.prototype,"PE_NAME_MAX",{get:yr.prototype.get_PE_NAME_MAX}),yr.prototype.get_PE_MGRS_MAX=yr.prototype.get_PE_MGRS_MAX=function(){var e=this.ptr;return he(e)},Object.defineProperty(yr.prototype,"PE_MGRS_MAX",{get:yr.prototype.get_PE_MGRS_MAX}),yr.prototype.get_PE_USNG_MAX=yr.prototype.get_PE_USNG_MAX=function(){var e=this.ptr;return Ne(e)},Object.defineProperty(yr.prototype,"PE_USNG_MAX",{get:yr.prototype.get_PE_USNG_MAX}),yr.prototype.get_PE_DD_MAX=yr.prototype.get_PE_DD_MAX=function(){var e=this.ptr;return Me(e)},Object.defineProperty(yr.prototype,"PE_DD_MAX",{get:yr.prototype.get_PE_DD_MAX}),yr.prototype.get_PE_DMS_MAX=yr.prototype.get_PE_DMS_MAX=function(){var e=this.ptr;return De(e)},Object.defineProperty(yr.prototype,"PE_DMS_MAX",{get:yr.prototype.get_PE_DMS_MAX}),yr.prototype.get_PE_DDM_MAX=yr.prototype.get_PE_DDM_MAX=function(){var e=this.ptr;return ve(e)},Object.defineProperty(yr.prototype,"PE_DDM_MAX",{get:yr.prototype.get_PE_DDM_MAX}),yr.prototype.get_PE_UTM_MAX=yr.prototype.get_PE_UTM_MAX=function(){var e=this.ptr;return Ae(e)},Object.defineProperty(yr.prototype,"PE_UTM_MAX",{get:yr.prototype.get_PE_UTM_MAX}),yr.prototype.get_PE_PARM_MAX=yr.prototype.get_PE_PARM_MAX=function(){var e=this.ptr;return je(e)},Object.defineProperty(yr.prototype,"PE_PARM_MAX",{get:yr.prototype.get_PE_PARM_MAX}),yr.prototype.get_PE_TYPE_NONE=yr.prototype.get_PE_TYPE_NONE=function(){var e=this.ptr;return Re(e)},Object.defineProperty(yr.prototype,"PE_TYPE_NONE",{get:yr.prototype.get_PE_TYPE_NONE}),yr.prototype.get_PE_TYPE_GEOGCS=yr.prototype.get_PE_TYPE_GEOGCS=function(){var e=this.ptr;return Ge(e)},Object.defineProperty(yr.prototype,"PE_TYPE_GEOGCS",{get:yr.prototype.get_PE_TYPE_GEOGCS}),yr.prototype.get_PE_TYPE_PROJCS=yr.prototype.get_PE_TYPE_PROJCS=function(){var e=this.ptr;return Ce(e)},Object.defineProperty(yr.prototype,"PE_TYPE_PROJCS",{get:yr.prototype.get_PE_TYPE_PROJCS}),yr.prototype.get_PE_TYPE_GEOGTRAN=yr.prototype.get_PE_TYPE_GEOGTRAN=function(){var e=this.ptr;return Ie(e)},Object.defineProperty(yr.prototype,"PE_TYPE_GEOGTRAN",{get:yr.prototype.get_PE_TYPE_GEOGTRAN}),yr.prototype.get_PE_TYPE_COORDSYS=yr.prototype.get_PE_TYPE_COORDSYS=function(){var e=this.ptr;return Le(e)},Object.defineProperty(yr.prototype,"PE_TYPE_COORDSYS",{get:yr.prototype.get_PE_TYPE_COORDSYS}),yr.prototype.get_PE_TYPE_UNIT=yr.prototype.get_PE_TYPE_UNIT=function(){var e=this.ptr;return Ue(e)},Object.defineProperty(yr.prototype,"PE_TYPE_UNIT",{get:yr.prototype.get_PE_TYPE_UNIT}),yr.prototype.get_PE_TYPE_LINUNIT=yr.prototype.get_PE_TYPE_LINUNIT=function(){var e=this.ptr;return Fe(e)},Object.defineProperty(yr.prototype,"PE_TYPE_LINUNIT",{get:yr.prototype.get_PE_TYPE_LINUNIT}),yr.prototype.get_PE_STR_OPTS_NONE=yr.prototype.get_PE_STR_OPTS_NONE=function(){var e=this.ptr;return we(e)},Object.defineProperty(yr.prototype,"PE_STR_OPTS_NONE",{get:yr.prototype.get_PE_STR_OPTS_NONE}),yr.prototype.get_PE_STR_AUTH_NONE=yr.prototype.get_PE_STR_AUTH_NONE=function(){var e=this.ptr;return Ye(e)},Object.defineProperty(yr.prototype,"PE_STR_AUTH_NONE",{get:yr.prototype.get_PE_STR_AUTH_NONE}),yr.prototype.get_PE_STR_AUTH_TOP=yr.prototype.get_PE_STR_AUTH_TOP=function(){var e=this.ptr;return xe(e)},Object.defineProperty(yr.prototype,"PE_STR_AUTH_TOP",{get:yr.prototype.get_PE_STR_AUTH_TOP}),yr.prototype.get_PE_STR_NAME_CANON=yr.prototype.get_PE_STR_NAME_CANON=function(){var e=this.ptr;return He(e)},Object.defineProperty(yr.prototype,"PE_STR_NAME_CANON",{get:yr.prototype.get_PE_STR_NAME_CANON}),yr.prototype.get_PE_STR_FMT_WKT=yr.prototype.get_PE_STR_FMT_WKT=function(){var e=this.ptr;return Xe(e)},Object.defineProperty(yr.prototype,"PE_STR_FMT_WKT",{get:yr.prototype.get_PE_STR_FMT_WKT}),yr.prototype.get_PE_STR_FMT_WKT2=yr.prototype.get_PE_STR_FMT_WKT2=function(){var e=this.ptr;return ze(e)},Object.defineProperty(yr.prototype,"PE_STR_FMT_WKT2",{get:yr.prototype.get_PE_STR_FMT_WKT2}),yr.prototype.get_PE_PARM_X0=yr.prototype.get_PE_PARM_X0=function(){var e=this.ptr;return We(e)},Object.defineProperty(yr.prototype,"PE_PARM_X0",{get:yr.prototype.get_PE_PARM_X0}),yr.prototype.get_PE_PARM_ND=yr.prototype.get_PE_PARM_ND=function(){var e=this.ptr;return Ze(e)},Object.defineProperty(yr.prototype,"PE_PARM_ND",{get:yr.prototype.get_PE_PARM_ND}),yr.prototype.get_PE_TRANSFORM_1_TO_2=yr.prototype.get_PE_TRANSFORM_1_TO_2=function(){var e=this.ptr;return qe(e)},Object.defineProperty(yr.prototype,"PE_TRANSFORM_1_TO_2",{get:yr.prototype.get_PE_TRANSFORM_1_TO_2}),yr.prototype.get_PE_TRANSFORM_2_TO_1=yr.prototype.get_PE_TRANSFORM_2_TO_1=function(){var e=this.ptr;return Be(e)},Object.defineProperty(yr.prototype,"PE_TRANSFORM_2_TO_1",{get:yr.prototype.get_PE_TRANSFORM_2_TO_1}),yr.prototype.get_PE_TRANSFORM_P_TO_G=yr.prototype.get_PE_TRANSFORM_P_TO_G=function(){var e=this.ptr;return Ke(e)},Object.defineProperty(yr.prototype,"PE_TRANSFORM_P_TO_G",{get:yr.prototype.get_PE_TRANSFORM_P_TO_G}),yr.prototype.get_PE_TRANSFORM_G_TO_P=yr.prototype.get_PE_TRANSFORM_G_TO_P=function(){var e=this.ptr;return Ve(e)},Object.defineProperty(yr.prototype,"PE_TRANSFORM_G_TO_P",{get:yr.prototype.get_PE_TRANSFORM_G_TO_P}),yr.prototype.get_PE_HORIZON_RECT=yr.prototype.get_PE_HORIZON_RECT=function(){var e=this.ptr;return ke(e)},Object.defineProperty(yr.prototype,"PE_HORIZON_RECT",{get:yr.prototype.get_PE_HORIZON_RECT}),yr.prototype.get_PE_HORIZON_POLY=yr.prototype.get_PE_HORIZON_POLY=function(){var e=this.ptr;return $e(e)},Object.defineProperty(yr.prototype,"PE_HORIZON_POLY",{get:yr.prototype.get_PE_HORIZON_POLY}),yr.prototype.get_PE_HORIZON_LINE=yr.prototype.get_PE_HORIZON_LINE=function(){var e=this.ptr;return Je(e)},Object.defineProperty(yr.prototype,"PE_HORIZON_LINE",{get:yr.prototype.get_PE_HORIZON_LINE}),yr.prototype.get_PE_HORIZON_DELTA=yr.prototype.get_PE_HORIZON_DELTA=function(){var e=this.ptr;return Qe(e)},Object.defineProperty(yr.prototype,"PE_HORIZON_DELTA",{get:yr.prototype.get_PE_HORIZON_DELTA}),dr.prototype=Object.create(tr.prototype),dr.prototype.constructor=dr,dr.prototype.__class__=dr,dr.__cache__={},p.PeDouble=dr,dr.prototype.get_val=dr.prototype.get_val=function(){var e=this.ptr;return tt(e)},dr.prototype.set_val=dr.prototype.set_val=function(e){var t=this.ptr;e&&"object"==typeof e&&(e=e.ptr),_t(t,e)},Object.defineProperty(dr.prototype,"val",{get:dr.prototype.get_val,set:dr.prototype.set_val}),dr.prototype.__destroy__=dr.prototype.__destroy__=function(){var e=this.ptr;rt(e)},ur.prototype=Object.create(tr.prototype),ur.prototype.constructor=ur,ur.prototype.__class__=ur,ur.__cache__={},p.PeFactory=ur,ur.prototype.initialize=ur.prototype.initialize=function(e){or.prepare(),e=e&&"object"==typeof e?e.ptr:nr(e),ot(e)},ur.prototype.factoryByType=ur.prototype.factoryByType=function(e,t){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),rr(nt(e,t),ir)},ur.prototype.fromString=ur.prototype.fromString=function(e,t){return or.prepare(),e&&"object"==typeof e&&(e=e.ptr),t=t&&"object"==typeof t?t.ptr:nr(t),rr(pt(e,t),ir)},ur.prototype.getCode=ur.prototype.getCode=function(e){return e&&"object"==typeof e&&(e=e.ptr),it(e)},br.prototype=Object.create(tr.prototype),br.prototype.constructor=br,br.prototype.__class__=br,br.__cache__={},p.PeGCSExtent=br,br.prototype.getLLon=br.prototype.getLLon=function(){var e=this.ptr;return st(e)},br.prototype.getSLat=br.prototype.getSLat=function(){var e=this.ptr;return Pt(e)},br.prototype.getRLon=br.prototype.getRLon=function(){var e=this.ptr;return at(e)},br.prototype.getNLat=br.prototype.getNLat=function(){var e=this.ptr;return gt(e)},br.prototype.__destroy__=br.prototype.__destroy__=function(){var e=this.ptr;yt(e)},fr.prototype=Object.create(cr.prototype),fr.prototype.constructor=fr,fr.prototype.__class__=fr,fr.__cache__={},p.PeGeogcs=fr,fr.prototype.Delete=fr.prototype.Delete=function(){var e=this.ptr;dt(e)},fr.prototype.cloneAlterUnits=fr.prototype.cloneAlterUnits=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),rr(ut(t,e),fr)},fr.prototype.getDatum=fr.prototype.getDatum=function(){var e=this.ptr;return rr(bt(e),gr)},fr.prototype.getPrimem=fr.prototype.getPrimem=function(){var e=this.ptr;return rr(ft(e),jr)},fr.prototype.getUnit=fr.prototype.getUnit=function(){var e=this.ptr;return rr(Et(e),ar)},fr.prototype.isEqual=fr.prototype.isEqual=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),!!mt(t,e)},fr.prototype.getCode=fr.prototype.getCode=function(){var e=this.ptr;return Tt(e)},fr.prototype.getName=fr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(Ot(t,e))},fr.prototype.getType=fr.prototype.getType=function(){var e=this.ptr;return St(e)},Er.prototype=Object.create(ir.prototype),Er.prototype.constructor=Er,Er.prototype.__class__=Er,Er.__cache__={},p.PeGeogtran=Er,Er.prototype.isEqual=Er.prototype.isEqual=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),!!lt(t,e)},Er.prototype.getGeogcs1=Er.prototype.getGeogcs1=function(){var e=this.ptr;return rr(ht(e),fr)},Er.prototype.getGeogcs2=Er.prototype.getGeogcs2=function(){var e=this.ptr;return rr(Nt(e),fr)},Er.prototype.getParameters=Er.prototype.getParameters=function(){var e=this.ptr;return Mt(e)},Er.prototype.loadConstants=Er.prototype.loadConstants=function(){var e=this.ptr;return!!Dt(e)},Er.prototype.getCode=Er.prototype.getCode=function(){var e=this.ptr;return vt(e)},Er.prototype.getName=Er.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(At(t,e))},Er.prototype.getType=Er.prototype.getType=function(){var e=this.ptr;return jt(e)},mr.prototype=Object.create(tr.prototype),mr.prototype.constructor=mr,mr.prototype.__class__=mr,mr.__cache__={},p.PeGTlistExtended=mr,mr.prototype.getGTlist=mr.prototype.getGTlist=function(e,t,_,r,o,n){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),rr(Rt(e,t,_,r,o,n),Tr)},mr.prototype.get_PE_GTLIST_OPTS_COMMON=mr.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var e=this.ptr;return Gt(e)},Object.defineProperty(mr.prototype,"PE_GTLIST_OPTS_COMMON",{get:mr.prototype.get_PE_GTLIST_OPTS_COMMON}),Tr.prototype=Object.create(tr.prototype),Tr.prototype.constructor=Tr,Tr.prototype.__class__=Tr,Tr.__cache__={},p.PeGTlistExtendedEntry=Tr,Tr.prototype.getEntries=Tr.prototype.getEntries=function(){var e=this.ptr;return rr(Ct(e),Or)},Tr.prototype.getSteps=Tr.prototype.getSteps=function(){var e=this.ptr;return It(e)},Tr.prototype.Delete=Tr.prototype.Delete=function(e){e&&"object"==typeof e&&(e=e.ptr),Lt(e)},Or.prototype=Object.create(tr.prototype),Or.prototype.constructor=Or,Or.prototype.__class__=Or,Or.__cache__={},p.PeGTlistExtendedGTs=Or,Or.prototype.getDirection=Or.prototype.getDirection=function(){var e=this.ptr;return Ut(e)},Or.prototype.getGeogtran=Or.prototype.getGeogtran=function(){var e=this.ptr;return rr(Ft(e),Er)},Sr.prototype=Object.create(tr.prototype),Sr.prototype.constructor=Sr,Sr.prototype.__class__=Sr,Sr.__cache__={},p.PeHorizon=Sr,Sr.prototype.getNump=Sr.prototype.getNump=function(){var e=this.ptr;return wt(e)},Sr.prototype.getKind=Sr.prototype.getKind=function(){var e=this.ptr;return Yt(e)},Sr.prototype.getInclusive=Sr.prototype.getInclusive=function(){var e=this.ptr;return xt(e)},Sr.prototype.getSize=Sr.prototype.getSize=function(){var e=this.ptr;return Ht(e)},Sr.prototype.getCoord=Sr.prototype.getCoord=function(){var e=this.ptr;return Xt(e)},lr.prototype=Object.create(tr.prototype),lr.prototype.constructor=lr,lr.prototype.__class__=lr,lr.__cache__={},p.PeInteger=lr,lr.prototype.get_val=lr.prototype.get_val=function(){var e=this.ptr;return Wt(e)},lr.prototype.set_val=lr.prototype.set_val=function(e){var t=this.ptr;e&&"object"==typeof e&&(e=e.ptr),Zt(t,e)},Object.defineProperty(lr.prototype,"val",{get:lr.prototype.get_val,set:lr.prototype.set_val}),lr.prototype.__destroy__=lr.prototype.__destroy__=function(){var e=this.ptr;qt(e)},hr.prototype=Object.create(tr.prototype),hr.prototype.constructor=hr,hr.prototype.__class__=hr,hr.__cache__={},p.PeLineType=hr,hr.prototype.geodetic_distance=hr.prototype.geodetic_distance=function(e,t,_,r,o,n,p,i,c,s){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),p&&"object"==typeof p&&(p=p.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),s&&"object"==typeof s&&(s=s.ptr),Bt(e,t,_,r,o,n,p,i,c,s)},hr.prototype.geodetic_coordinate=hr.prototype.geodetic_coordinate=function(e,t,_,r,o,n,p,i,c){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),p&&"object"==typeof p&&(p=p.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),Kt(e,t,_,r,o,n,p,i,c)},hr.prototype.geodesic_coordinate=hr.prototype.geodesic_coordinate=function(e,t,_,r,o,n,p,i){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),p&&"object"==typeof p&&(p=p.ptr),i&&"object"==typeof i&&(i=i.ptr),Vt(e,t,_,r,o,n,p,i)},hr.prototype.great_elliptic_distance=hr.prototype.great_elliptic_distance=function(e,t,_,r,o,n,p,i,c){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),p&&"object"==typeof p&&(p=p.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),kt(e,t,_,r,o,n,p,i,c)},Nr.prototype=Object.create(tr.prototype),Nr.prototype.constructor=Nr,Nr.prototype.__class__=Nr,Nr.__cache__={},p.PeMath=Nr,Nr.prototype.phi_to_eta=Nr.prototype.phi_to_eta=function(e,t){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),$t(e,t)},Nr.prototype.eta_to_phi=Nr.prototype.eta_to_phi=function(e,t){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),Jt(e,t)},Nr.prototype.phi_to_phig=Nr.prototype.phi_to_phig=function(e,t){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),Qt(e,t)},Nr.prototype.q=Nr.prototype.q=function(e,t,_){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),e_(e,t,_)},Nr.prototype.q90=Nr.prototype.q90=function(e,t){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),t_(e,t)},Mr.prototype=Object.create(tr.prototype),Mr.prototype.constructor=Mr,Mr.prototype.__class__=Mr,Mr.__cache__={},p.PeNotationMgrs=Mr,Mr.prototype.get_PE_MGRS_STYLE_NEW=Mr.prototype.get_PE_MGRS_STYLE_NEW=function(){var e=this.ptr;return __(e)},Object.defineProperty(Mr.prototype,"PE_MGRS_STYLE_NEW",{get:Mr.prototype.get_PE_MGRS_STYLE_NEW}),Mr.prototype.get_PE_MGRS_STYLE_OLD=Mr.prototype.get_PE_MGRS_STYLE_OLD=function(){var e=this.ptr;return r_(e)},Object.defineProperty(Mr.prototype,"PE_MGRS_STYLE_OLD",{get:Mr.prototype.get_PE_MGRS_STYLE_OLD}),Mr.prototype.get_PE_MGRS_STYLE_AUTO=Mr.prototype.get_PE_MGRS_STYLE_AUTO=function(){var e=this.ptr;return o_(e)},Object.defineProperty(Mr.prototype,"PE_MGRS_STYLE_AUTO",{get:Mr.prototype.get_PE_MGRS_STYLE_AUTO}),Mr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=Mr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var e=this.ptr;return n_(e)},Object.defineProperty(Mr.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:Mr.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),Mr.prototype.get_PE_MGRS_ADD_SPACES=Mr.prototype.get_PE_MGRS_ADD_SPACES=function(){var e=this.ptr;return p_(e)},Object.defineProperty(Mr.prototype,"PE_MGRS_ADD_SPACES",{get:Mr.prototype.get_PE_MGRS_ADD_SPACES}),Dr.prototype=Object.create(tr.prototype),Dr.prototype.constructor=Dr,Dr.prototype.__class__=Dr,Dr.__cache__={},p.PeNotationUtm=Dr,Dr.prototype.get_PE_UTM_OPTS_NONE=Dr.prototype.get_PE_UTM_OPTS_NONE=function(){var e=this.ptr;return i_(e)},Object.defineProperty(Dr.prototype,"PE_UTM_OPTS_NONE",{get:Dr.prototype.get_PE_UTM_OPTS_NONE}),Dr.prototype.get_PE_UTM_OPTS_NS=Dr.prototype.get_PE_UTM_OPTS_NS=function(){var e=this.ptr;return c_(e)},Object.defineProperty(Dr.prototype,"PE_UTM_OPTS_NS",{get:Dr.prototype.get_PE_UTM_OPTS_NS}),Dr.prototype.get_PE_UTM_OPTS_NS_STRICT=Dr.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var e=this.ptr;return s_(e)},Object.defineProperty(Dr.prototype,"PE_UTM_OPTS_NS_STRICT",{get:Dr.prototype.get_PE_UTM_OPTS_NS_STRICT}),Dr.prototype.get_PE_UTM_OPTS_ADD_SPACES=Dr.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var e=this.ptr;return P_(e)},Object.defineProperty(Dr.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:Dr.prototype.get_PE_UTM_OPTS_ADD_SPACES}),vr.prototype=Object.create(ir.prototype),vr.prototype.constructor=vr,vr.prototype.__class__=vr,vr.__cache__={},p.PeParameter=vr,vr.prototype.getValue=vr.prototype.getValue=function(){var e=this.ptr;return a_(e)},vr.prototype.getCode=vr.prototype.getCode=function(){var e=this.ptr;return g_(e)},vr.prototype.getName=vr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(y_(t,e))},vr.prototype.getType=vr.prototype.getType=function(){var e=this.ptr;return d_(e)},Ar.prototype=Object.create(tr.prototype),Ar.prototype.constructor=Ar,Ar.prototype.__class__=Ar,Ar.__cache__={},p.PePCSInfo=Ar,Ar.prototype.getCentralMeridian=Ar.prototype.getCentralMeridian=function(){var e=this.ptr;return u_(e)},Ar.prototype.getDomainMinx=Ar.prototype.getDomainMinx=function(){var e=this.ptr;return b_(e)},Ar.prototype.getDomainMiny=Ar.prototype.getDomainMiny=function(){var e=this.ptr;return f_(e)},Ar.prototype.getDomainMaxx=Ar.prototype.getDomainMaxx=function(){var e=this.ptr;return E_(e)},Ar.prototype.getDomainMaxy=Ar.prototype.getDomainMaxy=function(){var e=this.ptr;return m_(e)},Ar.prototype.getNorthPoleLocation=Ar.prototype.getNorthPoleLocation=function(){var e=this.ptr;return T_(e)},Ar.prototype.getNorthPoleGeometry=Ar.prototype.getNorthPoleGeometry=function(){var e=this.ptr;return O_(e)},Ar.prototype.getSouthPoleLocation=Ar.prototype.getSouthPoleLocation=function(){var e=this.ptr;return S_(e)},Ar.prototype.getSouthPoleGeometry=Ar.prototype.getSouthPoleGeometry=function(){var e=this.ptr;return l_(e)},Ar.prototype.isDensificationNeeded=Ar.prototype.isDensificationNeeded=function(){var e=this.ptr;return!!h_(e)},Ar.prototype.isGcsHorizonMultiOverlap=Ar.prototype.isGcsHorizonMultiOverlap=function(){var e=this.ptr;return!!N_(e)},Ar.prototype.isPannableRectangle=Ar.prototype.isPannableRectangle=function(){var e=this.ptr;return!!M_(e)},Ar.prototype.generate=Ar.prototype.generate=function(e,t){return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),rr(D_(e,t),Ar)},Ar.prototype.get_PE_PCSINFO_OPTION_NONE=Ar.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var e=this.ptr;return v_(e)},Object.defineProperty(Ar.prototype,"PE_PCSINFO_OPTION_NONE",{get:Ar.prototype.get_PE_PCSINFO_OPTION_NONE}),Ar.prototype.get_PE_PCSINFO_OPTION_DOMAIN=Ar.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var e=this.ptr;return A_(e)},Object.defineProperty(Ar.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:Ar.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),Ar.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=Ar.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var e=this.ptr;return j_(e)},Object.defineProperty(Ar.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:Ar.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),Ar.prototype.get_PE_POLE_POINT=Ar.prototype.get_PE_POLE_POINT=function(){var e=this.ptr;return R_(e)},Object.defineProperty(Ar.prototype,"PE_POLE_POINT",{get:Ar.prototype.get_PE_POLE_POINT}),jr.prototype=Object.create(ir.prototype),jr.prototype.constructor=jr,jr.prototype.__class__=jr,jr.__cache__={},p.PePrimem=jr,jr.prototype.getLongitude=jr.prototype.getLongitude=function(){var e=this.ptr;return G_(e)},jr.prototype.getCode=jr.prototype.getCode=function(){var e=this.ptr;return C_(e)},jr.prototype.getName=jr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(I_(t,e))},jr.prototype.getType=jr.prototype.getType=function(){var e=this.ptr;return L_(e)},Rr.prototype=Object.create(cr.prototype),Rr.prototype.constructor=Rr,Rr.prototype.__class__=Rr,Rr.__cache__={},p.PeProjcs=Rr,Rr.prototype.Delete=Rr.prototype.Delete=function(){var e=this.ptr;U_(e)},Rr.prototype.getGeogcs=Rr.prototype.getGeogcs=function(){var e=this.ptr;return rr(F_(e),fr)},Rr.prototype.getProjection=Rr.prototype.getProjection=function(){var e=this.ptr;return rr(w_(e),ir)},Rr.prototype.getParameters=Rr.prototype.getParameters=function(){var e=this.ptr;return Y_(e)},Rr.prototype.getUnit=Rr.prototype.getUnit=function(){var e=this.ptr;return rr(x_(e),sr)},Rr.prototype.loadConstants=Rr.prototype.loadConstants=function(){var e=this.ptr;return!!H_(e)},Rr.prototype.horizonGcsGenerate=Rr.prototype.horizonGcsGenerate=function(){var e=this.ptr;return rr(X_(e),Sr)},Rr.prototype.horizonPcsGenerate=Rr.prototype.horizonPcsGenerate=function(){var e=this.ptr;return rr(z_(e),Sr)},Rr.prototype.isEqual=Rr.prototype.isEqual=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),!!W_(t,e)},Rr.prototype.getCode=Rr.prototype.getCode=function(){var e=this.ptr;return Z_(e)},Rr.prototype.getName=Rr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X(q_(t,e))},Rr.prototype.getType=Rr.prototype.getType=function(){var e=this.ptr;return B_(e)},Gr.prototype=Object.create(ir.prototype),Gr.prototype.constructor=Gr,Gr.prototype.__class__=Gr,Gr.__cache__={},p.PeSpheroid=Gr,Gr.prototype.getAxis=Gr.prototype.getAxis=function(){var e=this.ptr;return K_(e)},Gr.prototype.getFlattening=Gr.prototype.getFlattening=function(){var e=this.ptr;return V_(e)},Gr.prototype.getCode=Gr.prototype.getCode=function(){var e=this.ptr;return k_(e)},Gr.prototype.getName=Gr.prototype.getName=function(e){var t=this.ptr;return or.prepare(),"object"==typeof e&&(e=pr(e)),X($_(t,e))},Gr.prototype.getType=Gr.prototype.getType=function(){var e=this.ptr;return J_(e)},Cr.prototype=Object.create(tr.prototype),Cr.prototype.constructor=Cr,Cr.prototype.__class__=Cr,Cr.__cache__={},p.PeVersion=Cr,Cr.prototype.version_string=Cr.prototype.version_string=function(){var e=this.ptr;return X(Q_(e))},p.ensureCache=or,p.ensureString=nr,p.ensureInt8=pr,p.ensureInt16=function(e){if("object"==typeof e){var t=or.alloc(e,O);return or.copy(e,O,t),t}return e},p.ensureInt32=function(e){if("object"==typeof e){var t=or.alloc(e,S);return or.copy(e,S,t),t}return e},p.ensureFloat32=function(e){if("object"==typeof e){var t=or.alloc(e,h);return or.copy(e,h,t),t}return e},p.ensureFloat64=function(e){if("object"==typeof e){var t=or.alloc(e,N);return or.copy(e,N,t),t}return e},i},e.exports=_),n.exports;var e,t,_}()),i=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3169,6061,6468,8125],{36633:(e,t,n)=>{n.d(t,{O:()=>l});var r=n(55537),s=n(79187),o=n(83661),i=n(12189);function a(){return u(new o.P,-1,Number.NaN)}function u(e,t,n){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:n,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function m(e,t,n=-1,a=-1){if(e.isEmpty())return 3;const u=e.getGeometryType();if((0,r.f)(u))return function(e,t,n,s){if(n>=0||s>=0)return(0,r.t)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){const n=o.P.orientationRobust(t,e.getStartXY(),e.getEndXY());return n<0?1:n>0?0:2}const i=e.getClosestCoordinate(t,!1),a=e.getTangent(i),u=e.getCoord2D(i),c=o.P.orientationRobust(t,u,u.add(a));return c<0?1:c>0?0:2}(e,t,n,a);if(u===r.G.enumPolygon)return function(e,t,n,o){(n>=0||o>=0)&&(0,r.t)("");const a=new s.J;e.queryEnvelope(a);const u=(0,i.i)(e,t,0);return 0===u?0:1===u?1:2}(e,t,n,a);if(u===r.G.enumPolyline)return function(e,t,n,s){(n<0&&s>=0||n>=0&&s<0)&&(0,r.t)("");const i=e.querySegmentIterator();if(n<0){let e=Number.MAX_VALUE,r=0;for(;i.nextPath();)for(;i.hasNextSegment();){const a=i.nextSegment(),u=a.getClosestCoordinate(t,!1),c=a.getCoord2D(u),m=o.P.sqrDistance(c,t);m<e?(r=1,n=i.getStartPointIndex(),s=i.getPathIndex(),e=m):m===e&&r++}if(0===r)return 3;if(1===r)return i.resetToVertex(n,s),m(i.nextSegment(),t)}const a=function(e,t,n,r){const s={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(s.i1=function(e,t,n){for(e.resetToVertex(t,n);e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();for(e.resetToVertex(t,n);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,n,r),-1!==s.i1){t.resetToVertex(s.i1,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r),a=o.P.sqrDistance(i,e);{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),s.bRight1=t.crossProduct(r)<0}if(s.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2){t.resetToVertex(s.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(o.P.sqrDistance(i,e)>a)s.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),s.bRight2=t.crossProduct(r)<0}}if(-1===s.i2&&(s.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2)){t.resetToVertex(s.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(o.P.sqrDistance(i,e)>a)s.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),s.bRight2=t.crossProduct(r)<0;const o=s.i1;s.i1=s.i2,s.i2=o;const a=s.bRight1;s.bRight1=s.bRight2,s.bRight2=a}}}return s}(t,i,n,s);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{i.resetToVertex(a.i1,-1);const e=i.nextSegment().getTangent(1);i.resetToVertex(a.i2,-1);const t=i.nextSegment().getTangent(0);return e.crossProduct(t)>=0?1:0}}return i.resetToVertex(n,s),m(i.nextSegment(),t)}(e,t,n,a);if(u===r.G.enumEnvelope){const n=new s.J;return e.queryEnvelope(n),n.contains(t)?n.containsExclusive(t)?1:2:0}return 3}var g=n(95213);class l{getOperatorType(){return 10500}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,n,s){if(t.isNAN()&&(0,r.t)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:return this.multiVertexGetNearestVertex(e,t);case r.G.enumPolyline:case r.G.enumPolygon:return this.multiPathGetNearestCoordinate(e,t,n,s);default:(0,r.b)("")}}getNearestVertex(e,t){if(t.isNAN()&&(0,r.t)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertex(e,t);default:(0,r.b)("")}}getNearestVertices(e,t,n,s){if(0===s&&(0,r.t)(""),t.isNAN()&&(0,r.t)("NAN xy coordinates are not allowed"),e.isEmpty())return[];switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertices(e,t,n,s);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,n,s);default:(0,r.b)("")}}multiPathGetNearestCoordinate(e,t,n,a){if(e.getGeometryType()===r.G.enumPolygon&&n){const n=new s.J;e.queryEnvelope(n);const r=(0,g.c)(null,n,!1);let o;if(o=(0,i.i)(e,t,a?0:r),0!==o){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),l=new o.P;let f=-1,h=-1,x=Number.MAX_VALUE,d=0;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment(),n=e.getClosestCoordinate(t,!1),r=e.getCoord2D(n),s=o.P.sqrDistance(r,t);s<x?(d=1,l.assign(r),f=c.getStartPointIndex(),h=c.getPathIndex(),x=s):s===x&&d++}-1===f&&(0,r.t)("");const y=u(l,f,Math.sqrt(x));if(a)if(e.getGeometryType()!==r.G.enumPolygon){let n=!1;if(d>1){const r=m(e,t,f,h);n=0!==r&&3!==r}else c.resetToVertex(f,h),n=0!==m(c.nextSegment(),t);y.m_bRightSide=n}else n||0!==(0,i.i)(e,t,0)&&(y.m_bRightSide=!0);return y}pointGetNearestVertex(e,t){const n=e.getXY();return u(n,0,o.P.distance(n,t))}multiVertexGetNearestVertex(e,t){const n=e.getAttributeStreamRef(0),r=e.getPointCount();let s=-1;const i=new o.P;let a=Number.MAX_VALUE;const c=new o.P;for(let e=0;e<r;e++){n.queryPoint2D(2*e,c);const r=o.P.sqrDistance(c,t);r<a&&(i.assign(c),s=e,a=r)}return u(i,s,Math.sqrt(a))}pointGetNearestVertices(e,t,n,r){const s=[];if(0!==r){const r=n*n,i=e.getXY(),a=o.P.sqrDistance(i,t);a<=r&&s.push(u(i,0,Math.sqrt(a)))}return s}multiVertexGetNearestVertices(e,t,n,r){const s=[];if(0!==r){const i=e.getAttributeStreamRef(0),a=e.getPointCount();s.length=r+1;const c=n*n;for(let e=0;e<a;e++){const n=i.read(2*e),r=i.read(2*e+1),a=t.x-n,m=t.y-r,g=a*a+m*m;g<=c&&s.push(u(o.P.construct(n,r),e,Math.sqrt(g)))}s.sort(((e,t)=>e.m_distance-t.m_distance))}return s.slice(0,r)}}},48032:(e,t,n)=>{n.r(t),n.d(t,{getNearestCoordinate:()=>r.g,getNearestVertex:()=>r.a,getNearestVertices:()=>r.b,supportsCurves:()=>r.s}),n(36633),n(83047),n(78125),n(79533);var r=n(59260)},59260:(e,t,n)=>{n.d(t,{a:()=>c,b:()=>m,g:()=>u,p:()=>l,s:()=>g});var r=n(36633),s=n(83047),o=n(78125),i=n(79533);const a=new r.O;function u(e,t,n={}){const{calculateLeftRightSide:r=!1,testPolygonInterior:u=!0,unit:c}=n,m=a.getNearestCoordinate((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY(),u,r);if(c&&m.m_distance){const t=(0,o.getSpatialReference)(e);m.m_distance=(0,s.PQ)(m.m_distance,t,c)}return(0,i.C)(m,e,r)}function c(e,t,n={}){const{unit:r}=n,u=a.getNearestVertex((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY());if(r&&u.m_distance){const t=(0,o.getSpatialReference)(e);u.m_distance=(0,s.PQ)(u.m_distance,t,r)}return(0,i.C)(u,e)}function m(e,t,n,r,u={}){const{unit:c}=u,m=(0,o.getSpatialReference)(e);return c&&n&&(n=(0,s.UW)(n,c,m)),a.getNearestVertices((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY(),n,r).map((t=>(c&&t.m_distance&&(t.m_distance=(0,s.PQ)(t.m_distance,m,c)),(0,i.C)(t,e))))}const g=a.supportsCurves(),l=Object.freeze(Object.defineProperty({__proto__:null,getNearestCoordinate:u,getNearestVertex:c,getNearestVertices:m,supportsCurves:g},Symbol.toStringTag,{value:"Module"}))},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class s extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>P,fromGeometry:()=>p,fromMultipoint:()=>G,fromPoint:()=>C,fromPolygon:()=>V,fromPolyline:()=>S,fromSpatialReference:()=>N,getSpatialReference:()=>y,toExtent:()=>R,toGeometry:()=>b,toMultipoint:()=>_,toPoint:()=>v,toPolygon:()=>M,toPolyline:()=>w});var r=n(83661),s=(n(79187),n(55537)),o=n(95213),i=n(35368),a=n(12189),u=n(5443),c=n(48526),m=n(86738),g=n(39829),l=n(82799),f=(n(90293),n(83299));const h="_gxVersion",x=2,d=1;function y(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function p(e){switch(e.type){case"point":return C(e);case"multipoint":return G(e);case"polyline":return S(e);case"polygon":return V(e);case"extent":return P(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function P(e){if(!e.getCacheValue(h)){const t=new o.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(x,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(d,0,e.zmin,e.zmax),e.setCacheValue(h,t)}return e.getCacheValue(h)}function G(e){if(!e.getCacheValue(h)){const t=new i.M,n=new o.P,r=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,o=r.length;e<o;e++){const o=r[e];n.setXYCoords(o[0],o[1]),a&&n.setZ(o[2]??0),s&&n.setM(o[u]??NaN),t.add(n)}e.setCacheValue(h,t)}return e.getCacheValue(h)}function C(e){if(!e.getCacheValue(h)){const t=new o.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(h,t)}return e.getCacheValue(h)}function V(e){if(!e.getCacheValue(h)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,o=(0,f.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(h,o)}return e.getCacheValue(h)}function S(e){if(!e.getCacheValue(h)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,f.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(h,o)}return e.getCacheValue(h)}function N(e){if(e.wkid)return(0,a.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,a.b)(t):null}function b(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return v(e,t);case s.G.enumEnvelope:return R(e,t);case s.G.enumMultiPoint:return _(e,t);case s.G.enumPolyline:return w(e,t);case s.G.enumPolygon:return M(e,t)}return null}function R(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(x,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(d,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(h,e),n}function _(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],a=new o.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const u=new c.A({hasM:r,hasZ:s,points:i,spatialReference:t});return u.setCacheValue(h,e),u}function v(e,t){if(e instanceof r.P)return new m.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new m.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(h,e),n}function M(e,t){if(e.isEmpty())return null;const n=g.A.fromJSON({spatialReference:t,...(0,f.toGeometry)(e,null)});return n.setCacheValue(h,e),n}function w(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({spatialReference:t,...(0,f.toGeometry)(e,null)});return n.setCacheValue(h,e),n}},79533:(e,t,n)=>{n.d(t,{C:()=>s});var r=n(78125);function s(e,t,n=!1){const s=(0,r.toPoint)(e.m_coordinate,(0,r.getSpatialReference)(t)),o=e.m_distance,i=e.isEmpty(),a=e.m_bRightSide;return{coordinate:s,distance:o,isEmpty:i,...n&&{isRightSide:a},vertexIndex:e.m_vertexIndex}}}}]);
|