@arcgis/core 5.0.0-next.45 → 5.0.0-next.47
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/063045ac5553e91c0c4c.js +1 -0
- package/assets/esri/core/workers/chunks/{20ad34f9d45c64392022.js → 08c1ea29678da27136f3.js} +1 -1
- package/assets/esri/core/workers/chunks/{5dc2f2e28c30386efadf.js → 10094eb2b94e98dd4a8a.js} +1 -1
- package/assets/esri/core/workers/chunks/108675a17e432a02cf66.js +1 -0
- package/assets/esri/core/workers/chunks/169be08394c5e7703628.js +1 -0
- package/assets/esri/core/workers/chunks/19270a2de33f2662005b.js +1 -0
- package/assets/esri/core/workers/chunks/1a6f3531ef3d671e0289.js +1 -0
- package/assets/esri/core/workers/chunks/{b809d499ff050976d9ed.js → 1c58064ea80e6a4a4a3b.js} +1 -1
- package/assets/esri/core/workers/chunks/1c816aff8613d1e4bf38.js +1 -0
- package/assets/esri/core/workers/chunks/{ee67c8a7c1f8b482cd99.js → 1ced78750c61600b2d4e.js} +1 -1
- package/assets/esri/core/workers/chunks/{c5d6b416baf24e74b9ba.js → 1dfa949cc4f4c18ed4cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{98175b454e807b1a3c5f.js → 1e152a34e368bd810a0f.js} +1 -1
- package/assets/esri/core/workers/chunks/1e17ad6cdffa5016a3db.js +1 -0
- package/assets/esri/core/workers/chunks/1e2d42e9984ed3437ba2.js +1 -0
- package/assets/esri/core/workers/chunks/2008b22f76071a2dde4e.js +1 -0
- package/assets/esri/core/workers/chunks/2107c93d1fe87f3b8dfa.js +1 -0
- package/assets/esri/core/workers/chunks/2209550b6510e25da375.js +1 -0
- package/assets/esri/core/workers/chunks/229e1ed4282005aa0b83.js +1 -0
- package/assets/esri/core/workers/chunks/22b8eaa6afab0e5ffc47.js +1 -0
- package/assets/esri/core/workers/chunks/{1c0fb4795a52204882a8.js → 2550d2ba935cfdf30236.js} +1 -1
- package/assets/esri/core/workers/chunks/{49e6219dd08cb6c27023.js → 273ac1066095d63d6a6f.js} +1 -1
- package/assets/esri/core/workers/chunks/2e2867bc66c94aba7dc7.js +1 -0
- package/assets/esri/core/workers/chunks/{cda5c95fd49b8901f7d4.js → 3298e96d3f2e49e338d2.js} +1 -1
- package/assets/esri/core/workers/chunks/34613b288cf174983f8b.js +1 -0
- package/assets/esri/core/workers/chunks/{e5baa30944061418cb13.js → 35f086a2ae0585348ae6.js} +1 -1
- package/assets/esri/core/workers/chunks/{f441fc74451330384fb0.js → 37ea150dec5e491f691e.js} +1 -1
- package/assets/esri/core/workers/chunks/3c94db7ecdcd38eeb1b1.js +1 -0
- package/assets/esri/core/workers/chunks/3f7749f06ae54a4437d9.js +1 -0
- package/assets/esri/core/workers/chunks/404229f10aef5ac23c87.js +1 -0
- package/assets/esri/core/workers/chunks/40a722933af28823953b.js +1 -0
- package/assets/esri/core/workers/chunks/{7aa730e5ac7b268e3c98.js → 424daef7b5dec1b99aba.js} +1 -1
- package/assets/esri/core/workers/chunks/456684b1c1417ed0e611.js +1 -0
- package/assets/esri/core/workers/chunks/{d14e75b160aa432233c6.js → 461093ce28ceadd7853d.js} +1 -1
- package/assets/esri/core/workers/chunks/46b63a65484b102e9ccb.js +1 -0
- package/assets/esri/core/workers/chunks/4a48b8ec5f3f2fd139b5.js +1 -0
- package/assets/esri/core/workers/chunks/4b084f985bc4100e7aec.js +1 -0
- package/assets/esri/core/workers/chunks/4b1de1fcd13677b615a8.js +1 -0
- package/assets/esri/core/workers/chunks/{31186e83fe009aa0fd36.js → 4d933de84afb2e3b7d18.js} +1 -1
- package/assets/esri/core/workers/chunks/{83aa39fbb1fad3b9d143.js → 4ff771942531fb2755c4.js} +1 -1
- package/assets/esri/core/workers/chunks/{e0017c6739d2532793e6.js → 513a4ef960e27500f986.js} +1 -1
- package/assets/esri/core/workers/chunks/56b693baa376bb990925.js +1 -0
- package/assets/esri/core/workers/chunks/{1d4ea8db272655c0608c.js → 57fd5e1260269002d18a.js} +1 -1
- package/assets/esri/core/workers/chunks/5fe40bb0e9ab333f6854.js +1 -0
- package/assets/esri/core/workers/chunks/{9f6c63a580b28ab715bd.js → 5ffeb8fb58d59bad68c3.js} +1 -1
- package/assets/esri/core/workers/chunks/{b56c07c0b43cb1999070.js → 60362c5651ef41fa7e5f.js} +1 -1
- package/assets/esri/core/workers/chunks/{e8a9971c8354569cb81d.js → 609919428305d8c8c243.js} +1 -1
- package/assets/esri/core/workers/chunks/{ab88577987cf2fe1cb32.js → 61373d2fa7e7638d3395.js} +1 -1
- package/assets/esri/core/workers/chunks/6202922b1c2637e9aaa5.js +1 -0
- package/assets/esri/core/workers/chunks/633368ae6fbb46373328.js +1 -0
- package/assets/esri/core/workers/chunks/657602e6a84e8b4576fb.js +1 -0
- package/assets/esri/core/workers/chunks/6d3ae7969ea86a2e0b13.js +1 -0
- package/assets/esri/core/workers/chunks/6d702cb26cef46a76963.js +1 -0
- package/assets/esri/core/workers/chunks/{35272810c2ed04eb403d.js → 6f3943bebe2d5f4994f7.js} +1 -1
- package/assets/esri/core/workers/chunks/708aba69a1870ea41a61.js +1 -0
- package/assets/esri/core/workers/chunks/{7ba13b52fce1060fbb2a.js → 7147fc7502b385b302b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{9ba8a2e1c0fb4e1efc7c.js → 7364fb5e99933533890d.js} +1 -1
- package/assets/esri/core/workers/chunks/74b1028e95f7cfff387b.js +1 -0
- package/assets/esri/core/workers/chunks/75d8244b725a2aee2003.js +1 -0
- package/assets/esri/core/workers/chunks/78fccea3445fb2f9120a.js +1 -0
- package/assets/esri/core/workers/chunks/7ba31425caa404f86424.js +1 -0
- package/assets/esri/core/workers/chunks/{a4f492aa5444e6381063.js → 7d631ebf8f79225cf0f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{040f3d8e1099c4843390.js → 81a60dfa600b690098f9.js} +1 -1
- package/assets/esri/core/workers/chunks/833fd2bc42c5cb459084.js +1 -0
- package/assets/esri/core/workers/chunks/{75643711d9585ee26a15.js → 83c8e5a92d8d6193cb32.js} +1 -1
- package/assets/esri/core/workers/chunks/{e537e1d37f3fcb14fce2.js → 870022661376442411e4.js} +1 -1
- package/assets/esri/core/workers/chunks/898ab7db220e81e921c6.js +1 -0
- package/assets/esri/core/workers/chunks/{31b074ae2162a3508d2a.js → 8b578ffc3a83089aa782.js} +1 -1
- package/assets/esri/core/workers/chunks/{48c8ef4170e803a564d6.js → 8b75861196d1ce5cba63.js} +1 -1
- package/assets/esri/core/workers/chunks/8be61e13530fd0dc2fd1.js +1 -0
- package/assets/esri/core/workers/chunks/90b8ccee883738917a6d.js +1 -0
- package/assets/esri/core/workers/chunks/90bc9c299ae0e8b8b5e5.js +1 -0
- package/assets/esri/core/workers/chunks/91d9ade78854f40a962d.js +1 -0
- package/assets/esri/core/workers/chunks/9319d57494482668ab19.js +1 -0
- package/assets/esri/core/workers/chunks/{74881340e040bfd0580f.js → 934bc1028b287f8df4aa.js} +1 -1
- package/assets/esri/core/workers/chunks/96055de47831e59a28bf.js +1 -0
- package/assets/esri/core/workers/chunks/963ba863e0f87abfca25.js +1 -0
- package/assets/esri/core/workers/chunks/9aa8d60483ad905fe13b.js +1 -0
- package/assets/esri/core/workers/chunks/9fed9946241bb2a5cfa4.js +1 -0
- package/assets/esri/core/workers/chunks/a2662e98857f0abf8e82.js +1 -0
- package/assets/esri/core/workers/chunks/a5a9b0a35849b9f2e86d.js +1 -0
- package/assets/esri/core/workers/chunks/a60006c9ccf6817fc0d2.js +1 -0
- package/assets/esri/core/workers/chunks/a627b7eb94b7fca33210.js +1 -0
- package/assets/esri/core/workers/chunks/a651dc3b8f1fc1ab34cc.js +1 -0
- package/assets/esri/core/workers/chunks/{bf5f9da0837ed09729c6.js → aab93e885b6c7c6aa76e.js} +1 -1
- package/assets/esri/core/workers/chunks/adfe28c1c1619cdd3ca1.js +1019 -0
- package/assets/esri/core/workers/chunks/b88dc7d8ae105747e6a4.js +1 -0
- package/assets/esri/core/workers/chunks/b90c786dd474ea1a409c.js +1 -0
- package/assets/esri/core/workers/chunks/b92e9e5df8154a128982.js +1 -0
- package/assets/esri/core/workers/chunks/{9a855a10798348a21bab.js → bff814d34b38ec80c44d.js} +1 -1
- package/assets/esri/core/workers/chunks/c36d699a75b6e8fb93eb.js +1 -0
- package/assets/esri/core/workers/chunks/c50fdf723f2d4316862e.js +1 -0
- package/assets/esri/core/workers/chunks/{9461cc37ab3397265270.js → c5e8ff4721b15ac3c6eb.js} +1 -1
- package/assets/esri/core/workers/chunks/{4cda42b94e9cb58dd372.js → ca61077e0a598654f33f.js} +1 -1
- package/assets/esri/core/workers/chunks/{61a9ffd4cf07d8bb7a9b.js → ca81be5bdb88ef557bf3.js} +1 -1
- package/assets/esri/core/workers/chunks/{ca1c65eb7f5900c60170.js → cd8fec3500e6503ae020.js} +1 -1
- package/assets/esri/core/workers/chunks/ce90e8489143228262e7.js +1 -0
- package/assets/esri/core/workers/chunks/d0320ca67abca4f8b0d2.js +1 -0
- package/assets/esri/core/workers/chunks/{4b6a44c6265c8959abd8.js → d3db7244fac7398cc700.js} +1 -1
- package/assets/esri/core/workers/chunks/{19820cddba13a3585c0b.js → d561624ddb9388732b25.js} +1 -1
- package/assets/esri/core/workers/chunks/d65ca3b8fccae8c3c3fa.js +1 -0
- package/assets/esri/core/workers/chunks/{630eba99f48ea79a9560.js → d705410c369bd03b1875.js} +1 -1
- package/assets/esri/core/workers/chunks/{9c7682b300b877f60095.js → d76513a6260d9ec4ea25.js} +1 -1
- package/assets/esri/core/workers/chunks/d82e17522ed946c2d809.js +1 -0
- package/assets/esri/core/workers/chunks/d8dc130ea559be1f68c6.js +1 -0
- package/assets/esri/core/workers/chunks/dae715b2b0094641e42f.js +1 -0
- package/assets/esri/core/workers/chunks/{768ae52b4e5c3e571ef5.js → dc29cb16704e2e4d0a46.js} +1 -1
- package/assets/esri/core/workers/chunks/e8c2e2fbe9cef4c8a8c6.js +1 -0
- package/assets/esri/core/workers/chunks/ecb4c223c0278971cdc9.js +1 -0
- package/assets/esri/core/workers/chunks/{3f33708eb39c7169a226.js → f2ba50eb29f93df885d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{6e5d41f51572e3e7cf92.js → f7163048146ddaedfc36.js} +1 -1
- package/assets/esri/core/workers/chunks/f92a78ce5510e0d0d0f7.js +1 -0
- package/assets/esri/core/workers/chunks/fa92a7c11befbad8739f.js +1 -0
- package/assets/esri/core/workers/chunks/fdaa10a588db394e2f65.js +1 -0
- package/chunks/Laserlines.glsl.js +1 -1
- package/chunks/boundedPlane.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/vec32.js +1 -1
- package/config.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/geometry/FlatGeometry.js +1 -1
- package/geometry/operators/support/apiConverter.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/support/curves/circleUtils.js +1 -1
- package/geometry/support/lineSegment.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/sphere.js +1 -1
- package/interfaces.d.ts +179 -71
- package/kernel.js +1 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/sources/ParquetSource.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/orientedImagery/transformations/worldToImage.js +1 -1
- package/layers/support/{ParquetEncodingBase.js → ParquetGeometryEncodingBase.js} +1 -1
- package/layers/support/ParquetGeometryEncodingLocation.d.ts +4 -0
- package/layers/support/ParquetGeometryEncodingLocation.js +5 -0
- package/layers/support/ParquetGeometryEncodingWkb.d.ts +4 -0
- package/layers/support/ParquetGeometryEncodingWkb.js +5 -0
- package/layers/support/parquetEncodingUtils.js +1 -1
- package/layers/support/parquetUtils.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/layers/voxel/VoxelVolume.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/package.json +2 -2
- package/support/revision.js +1 -1
- package/symbols/cim/effects/EffectSuppress.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/interactive/SegmentLabels2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/animation/pointToPoint/Camera.js +1 -1
- package/views/3d/camera/constraintUtils/distance.js +1 -1
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/CloudsParameters.js +1 -1
- package/views/3d/environment/EnvironmentManager.js +1 -1
- package/views/3d/environment/MarsAtmosphere.js +1 -1
- package/views/3d/glTF/internal/Resource.js +1 -1
- package/views/3d/glTF/loader.js +1 -1
- package/views/3d/interactive/SegmentLabels3D.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
- package/views/3d/interactive/editingTools/media/MediaElementManipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/edgeOffsetUtils.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/state/Frustum.js +1 -1
- package/views/3d/state/controllers/FovController.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/intersectionUtils.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillDepth.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
- package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
- package/views/3d/webgl-engine/lib/triangleIntersectionUtils.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.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/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/pbrUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/interactive/GraphicManipulator.js +1 -1
- package/views/interactive/coordinateHelper.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
- package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
- package/views/interactive/tooltip/tooltipCommonUtils.js +1 -1
- package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
- package/views/support/euclideanAreaMeasurementUtils.js +1 -1
- package/views/support/euclideanLengthMeasurementUtils.js +1 -1
- package/views/support/geometry3dUtils.js +1 -1
- package/views/support/selectionUtils.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/css.js +1 -1
- package/widgets/BatchAttributeForm/inputs/SingleFeatureInput.d.ts +4 -0
- package/widgets/BatchAttributeForm/inputs/SingleFeatureInput.js +5 -0
- package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +4 -0
- package/widgets/BatchAttributeForm/inputs/TextElementInput.js +5 -0
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm/templates/GroupElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/TextElementTemplate.js +5 -0
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/templateUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/FeatureForm/TextElementInput.d.ts +2 -2
- package/widgets/FeatureForm/TextElementInput.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer/PanoramicZoomManager.js +1 -1
- package/widgets/PanoramicViewer/support/PanoramicMedia.js +5 -0
- package/widgets/PanoramicViewer/support/PanoramicMediaCollection.js +5 -0
- package/widgets/PanoramicViewer/support/PanoramicMediaError.js +5 -0
- package/widgets/PanoramicViewer/utils.js +1 -1
- package/widgets/PanoramicViewer.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
- package/widgets/support/Selector2D/selectorUtils.js +1 -1
- package/assets/esri/core/workers/chunks/024104997daea0d74b38.js +0 -1
- package/assets/esri/core/workers/chunks/04a0685ee53ef74883aa.js +0 -1
- package/assets/esri/core/workers/chunks/08ef90e3fcfd4eda4301.js +0 -1
- package/assets/esri/core/workers/chunks/1e0e7cef7ef947894bbe.js +0 -1019
- package/assets/esri/core/workers/chunks/20988e116f3723228f36.js +0 -1
- package/assets/esri/core/workers/chunks/2613e482450b57f2d4f5.js +0 -1
- package/assets/esri/core/workers/chunks/274f2b5e6dbc58505142.js +0 -1
- package/assets/esri/core/workers/chunks/27dfbe3d903b95d4c67a.js +0 -1
- package/assets/esri/core/workers/chunks/28a5a7c6b3d6902146f6.js +0 -1
- package/assets/esri/core/workers/chunks/2c4218306747f5d15575.js +0 -1
- package/assets/esri/core/workers/chunks/2d3ae187f8aa3495d4ae.js +0 -1
- package/assets/esri/core/workers/chunks/2db7a7607657f1d669f7.js +0 -1
- package/assets/esri/core/workers/chunks/2f8cf7d9ff1f4de19a4c.js +0 -1
- package/assets/esri/core/workers/chunks/338570424337be05cef5.js +0 -1
- package/assets/esri/core/workers/chunks/36130910ba141f34531b.js +0 -1
- package/assets/esri/core/workers/chunks/3767617c0dfc7d801441.js +0 -1
- package/assets/esri/core/workers/chunks/44b6b7418cbf7f778bef.js +0 -1
- package/assets/esri/core/workers/chunks/4675ed3ca3e0104d00bf.js +0 -1
- package/assets/esri/core/workers/chunks/4df7cc3477bc46fc39af.js +0 -1
- package/assets/esri/core/workers/chunks/538ddb267aa328814865.js +0 -1
- package/assets/esri/core/workers/chunks/555a0ea44ba77819d493.js +0 -1
- package/assets/esri/core/workers/chunks/55818fe7a7aa1e5c8bbd.js +0 -1
- package/assets/esri/core/workers/chunks/59889855d23baec1adf9.js +0 -1
- package/assets/esri/core/workers/chunks/5f781ef46ce7c4048c2f.js +0 -1
- package/assets/esri/core/workers/chunks/60f2de8dd8876bfd715a.js +0 -1
- package/assets/esri/core/workers/chunks/679088064420a906aa7f.js +0 -1
- package/assets/esri/core/workers/chunks/706423d801fa9cbf2e90.js +0 -1
- package/assets/esri/core/workers/chunks/71dd80231ea656a6380c.js +0 -1
- package/assets/esri/core/workers/chunks/725819839434c59102f3.js +0 -1
- package/assets/esri/core/workers/chunks/72cebf18da5ec5eeb666.js +0 -1
- package/assets/esri/core/workers/chunks/768d9b6eaba7bfa18dde.js +0 -1
- package/assets/esri/core/workers/chunks/77b45957cfe42523c1c8.js +0 -1
- package/assets/esri/core/workers/chunks/852de585a72d902344a6.js +0 -1
- package/assets/esri/core/workers/chunks/871dd5e1f016a04b8d98.js +0 -1
- package/assets/esri/core/workers/chunks/892c417f5130b003889d.js +0 -1
- package/assets/esri/core/workers/chunks/8d4cc5f1d07b4aa3aea0.js +0 -1
- package/assets/esri/core/workers/chunks/907083c427d7fb4354e9.js +0 -1
- package/assets/esri/core/workers/chunks/93c5f097bb7b380bb175.js +0 -1
- package/assets/esri/core/workers/chunks/9f0172b83f25ef5f8d40.js +0 -1
- package/assets/esri/core/workers/chunks/a00bba1c7cbf8cd7892c.js +0 -1
- package/assets/esri/core/workers/chunks/a34a14fd989dbbd3c2d0.js +0 -1
- package/assets/esri/core/workers/chunks/ae793d814cf32db9fbde.js +0 -1
- package/assets/esri/core/workers/chunks/b21cf62652ca772108c8.js +0 -1
- package/assets/esri/core/workers/chunks/c5c02ace54fe4ab9214b.js +0 -1
- package/assets/esri/core/workers/chunks/c82a974c8448407885e6.js +0 -1
- package/assets/esri/core/workers/chunks/d0014b4a8c013f59b113.js +0 -1
- package/assets/esri/core/workers/chunks/d08ee45c501102deea20.js +0 -1
- package/assets/esri/core/workers/chunks/d239a4ef60e348cfb05a.js +0 -1
- package/assets/esri/core/workers/chunks/da2ba40bc017bff0fe49.js +0 -1
- package/assets/esri/core/workers/chunks/dc3a4ad62bc041a4f899.js +0 -1
- package/assets/esri/core/workers/chunks/e093e745708f722bc1b9.js +0 -1
- package/assets/esri/core/workers/chunks/e501d68a1464805c4b4e.js +0 -1
- package/assets/esri/core/workers/chunks/e6784251bbb8b71ead93.js +0 -1
- package/assets/esri/core/workers/chunks/f3c232fc56a29d51196a.js +0 -1
- package/layers/support/ParquetEncodingLocation.d.ts +0 -4
- package/layers/support/ParquetEncodingLocation.js +0 -5
- package/layers/support/ParquetEncodingWkb.d.ts +0 -4
- package/layers/support/ParquetEncodingWkb.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,2503,6815],{4197:(t,e,n)=>{n.d(e,{Vj:()=>c,cj:()=>h,jh:()=>s,l5:()=>u,xm:()=>o});var r=n(34275),i=n(9093);function s(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function h(t){return[...t]}function c(t){const e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},9093:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,e,n,r,i,s,o,u,h,c,a,f,l,m,d,g){return[t,e,n,r,i,s,o,u,h,c,a,f,l,m,d,g]}},Symbol.toStringTag,{value:"Module"}))},46810:(t,e,n)=>{n.d(e,{O:()=>i});var r=n(39117);class i extends r.I{getOperatorType(){return 5}execute(t,e,n,i){return(0,r.J)(t,e,n,8,i)}}},69397:(t,e,n)=>{n.d(e,{$B:()=>i,Qf:()=>c,Qh:()=>u,RS:()=>s,ez:()=>l,lM:()=>o,qK:()=>f});var r=n(34275);function i(t){return 32+t.length}const s=16;function o(t){if(!t)return 0;let e=f;for(const n in t)t.hasOwnProperty(n)&&(e+=h(t[n],!1));return e}function u(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return a(t,8);let n=l;for(let r=0;r<e;r++)n+=h(t[r]);return n}(t);let e=f;for(const n in t)t.hasOwnProperty(n)&&(e+=h(t[n]));return e}function h(t,e=!0){switch(typeof t){case"object":return e?u(t):f;case"string":return i(t);case"number":return s;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+m:Array.isArray(e)?a(e,s):0:0),0)}function a(t,e){return l+t.length*e}const f=32,l=16,m=145},70328:(t,e,n)=>{n.d(e,{BI:()=>I,DC:()=>f,Ej:()=>m,Ie:()=>x,Jt:()=>M,Ne:()=>d,RF:()=>a,aI:()=>b,fA:()=>o,gE:()=>h,hZ:()=>y,iT:()=>l,is:()=>A,qv:()=>w,vI:()=>g,vY:()=>u,v_:()=>G,vt:()=>s,w1:()=>c});var r=n(5443),i=(n(19419),n(4197));function s(t=G){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,i,o,u=s()){return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=i,u[5]=o,u}function u(t,e=s()){return function(t,e,n,r=s()){return y(r,w),function(t,e,n=0,r=e.length/3){let i=t[0],s=t[1],o=t[2],u=t[3],h=t[4],c=t[5];for(let t=0;t<r;t++)i=Math.min(i,e[n+3*t]),s=Math.min(s,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),u=Math.max(u,e[n+3*t]),h=Math.max(h,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=i,t[1]=s,t[2]=o,t[3]=u,t[4]=h,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function h(t,e=(0,i.jh)(24)){const[n,r,s,o,u,h]=t;return e[0]=n,e[1]=r,e[2]=s,e[3]=n,e[4]=r,e[5]=h,e[6]=n,e[7]=u,e[8]=s,e[9]=n,e[10]=u,e[11]=h,e[12]=o,e[13]=r,e[14]=s,e[15]=o,e[16]=r,e[17]=h,e[18]=o,e[19]=u,e[20]=s,e[21]=o,e[22]=u,e[23]=h,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function a(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function m(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function d(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function g(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function x(t){return t?y(t,w):s(w)}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function I(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function A(t){return 6===t.length}function b(t,e,n){if(null==t||null==e)return t===e;if(!A(t)||!A(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],G=[0,0,0,0,0,0];s()},76061:(t,e,n)=>{n.d(e,{G:()=>r,S:()=>i});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class i extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},83547:(t,e,n)=>{n.r(e),n.d(e,{execute:()=>o});var r=n(46810),i=n(34772);const s=new r.O;function o(t,e){const n=(0,i.fromGeometry)(t);return s.execute(n.getGeometry(),(0,i.fromGeometryToGXGeometry)(e),n.getSpatialReference(),null)}},92722:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(69397);class i{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new i(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const s=n-t,o=r-e;return new i([5],[t,e,s,0,0,o,-s,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let i=this.coords[r*e],s=this.coords[r*e+1];for(let o=1;o<n;o+=1){const n=r*(e+o),u=this.coords[n],h=this.coords[n+1];t+=-.5*(u-i)*(h+s),i=u,s=h}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let i=0;i<r;i++){const r=n*(e+i);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:i}=this;for(const t of n){for(let n=1;n<t;n++){const t=i*(r+n);e[t]+=e[t-i],e[t+1]+=e[t+1-i]}r+=t}return t}clone(t){if(this.isPoint)return new i([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,s=this.coords.slice(0,r*n);return t?(t.set(s),new i(e,t)):new i(e,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new i(this.lengths,n,!1,!1)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6160],{15227:(e,t,n)=>{n.d(t,{fz:()=>l,g7:()=>m,yv:()=>f});var r=n(76061),i=n(55537),s=n(39117),u=n(79187),a=n(1352);class c extends r.G{constructor(e,t,n,r,i,s,c){super(),this.m_currentUnionEnvelope2D=new u.Envelope2D,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=c,this.m_bufferer=new a.B(c),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distances=n,this.m_maxDeviation=r,this.m_maxVerticesInFullCircle=i}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,i.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(e,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(e,t){return this.m_bufferer.buffer(e,t,this.m_spatialReference,0,0,4,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const o=new class{getOperatorType(){return 10004}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r,i){return this.executeManyEx(e,t,n,Number.NaN,96,r,i)}execute(e,t,n,s){Number.isFinite(n)||(0,i.a)("Invalid distance for buffer operation");const u=new r.S([e]),a=[n],c=this.executeMany(u,t,a,!1,s).next();return c||(0,i.d)("null buffer output"),c}executeManyEx(e,t,n,r,u,a,o){if(void 0!==n.find(e=>!Number.isFinite(e))&&(0,i.a)("Invalid distance for buffer operation"),a){const i=new c(e,t,n,r,u,!1,o);return(new s.L).executeMany(i,t,o,2)}return new c(e,t,n,r,u,!1,o)}};function m(e,t,n){return o.execute(e,t,n,null)}function f(e,t,n,i,s,u){const a=o.executeManyEx(new r.S(e),t,n,i,s,u,null);return Array.from(a)}function l(){return o.supportsCurves()}},46160:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>a,executeMany:()=>c});var r=n(4576),i=n(86211),s=n(15227),u=n(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6160],{15227:(e,t,n)=>{n.d(t,{fz:()=>l,g7:()=>m,yv:()=>f});var r=n(76061),i=n(55537),s=n(39117),u=n(79187),a=n(1352);class c extends r.G{constructor(e,t,n,r,i,s,c){super(),this.m_currentUnionEnvelope2D=new u.Envelope2D,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=c,this.m_bufferer=new a.B(c),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distances=n,this.m_maxDeviation=r,this.m_maxVerticesInFullCircle=i}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,i.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(e,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(e,t){return this.m_bufferer.buffer(e,t,this.m_spatialReference,0,0,4,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const o=new class{getOperatorType(){return 10004}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r,i){return this.executeManyEx(e,t,n,Number.NaN,96,r,i)}execute(e,t,n,s){Number.isFinite(n)||(0,i.a)("Invalid distance for buffer operation");const u=new r.S([e]),a=[n],c=this.executeMany(u,t,a,!1,s).next();return c||(0,i.d)("null buffer output"),c}executeManyEx(e,t,n,r,u,a,o){if(void 0!==n.find(e=>!Number.isFinite(e))&&(0,i.a)("Invalid distance for buffer operation"),a){const i=new c(e,t,n,r,u,!1,o);return(new s.L).executeMany(i,t,o,2)}return new c(e,t,n,r,u,!1,o)}};function m(e,t,n){return o.execute(e,t,n,null)}function f(e,t,n,i,s,u){const a=o.executeManyEx(new r.S(e),t,n,i,s,u,null);return Array.from(a)}function l(){return o.supportsCurves()}},46160:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>a,executeMany:()=>c});var r=n(4576),i=n(86211),s=n(15227),u=n(34772);function a(e,t,n={}){const{unit:r}=n,a=(0,u.getSpatialReference)(e);r&&a&&(t=(0,i.UW)(t,r,a));const c=(0,u.fromGeometry)(e),o=c.getSpatialReference();return(0,u.toGeometry)((0,s.g7)(c.getGeometry(),o,t),o)}function c(e,t,n={}){let{maxDeviation:a=NaN,maxVerticesInFullCircle:c=96,union:o=!1,unit:m}=n;const f=(0,u.getSpatialReference)(e);m&&f&&(t=t.map(e=>(0,i.UW)(e,m,f)),a&&(a=(0,i.UW)(a,m,f)));const[l,h]=(0,u.fromGeometries)(e);return(0,s.yv)(l,h,t,a,c,o).map(e=>(0,u.toGeometry)(e,h)).filter(r.Ru)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,3169,4161,7373,8125,8584],{4197:(t,e,n)=>{n.d(e,{Vj:()=>c,cj:()=>a,jh:()=>i,l5:()=>u,xm:()=>o});var r=n(34275),s=n(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t){return[...t]}function c(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},5874:(t,e,n)=>{n.d(e,{isSimple:()=>i}),n(76061);const r=new(n(98783).O);var s=n(78125);function i(t,e){return function(t,e,n,s){return r.isSimple(t,e,n,s,null)}((0,s.fromGeometry)(t),(0,s.fromSpatialReference)((0,s.getSpatialReference)(t)),null!=e,e??null)}r.supportsCurves()},9093:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(t,e,n,r,s,i,o,u,a,c,h,l,m,f,y,g){return[t,e,n,r,s,i,o,u,a,c,h,l,m,f,y,g]}},Symbol.toStringTag,{value:"Module"}))},69397:(t,e,n)=>{n.d(e,{$B:()=>s,Qf:()=>c,Qh:()=>u,RS:()=>i,ez:()=>m,lM:()=>o,qK:()=>l});var r=n(34275);function s(t){return 32+t.length}const i=16;function o(t){if(!t)return 0;let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function u(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let n=m;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?u(t):l;case"string":return s(t);case"number":return i;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,i):0:0),0)}function h(t,e){return m+t.length*e}const l=32,m=16,f=145},70328:(t,e,n)=>{n.d(e,{BI:()=>d,DC:()=>l,Ej:()=>f,Ie:()=>x,Jt:()=>M,Ne:()=>y,RF:()=>h,aI:()=>C,fA:()=>o,gE:()=>a,hZ:()=>p,iT:()=>m,is:()=>G,qv:()=>w,vI:()=>g,vY:()=>u,v_:()=>I,vt:()=>i,w1:()=>c});var r=n(5443),s=(n(19419),n(4197));function i(t=I){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,s,o,u=i()){return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=s,u[5]=o,u}function u(t,e=i()){return function(t,e,n,r=i()){return p(r,w),function(t,e,n=0,r=e.length/3){let s=t[0],i=t[1],o=t[2],u=t[3],a=t[4],c=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),u=Math.max(u,e[n+3*t]),a=Math.max(a,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=u,t[4]=a,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function a(t,e=(0,s.jh)(24)){const[n,r,i,o,u,a]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=a,e[6]=n,e[7]=u,e[8]=i,e[9]=n,e[10]=u,e[11]=a,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=a,e[18]=o,e[19]=u,e[20]=i,e[21]=o,e[22]=u,e[23]=a,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function m(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function f(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function y(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function g(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function x(t){return t?p(t,w):i(w)}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function d(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function G(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!G(t)||!G(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];i()},76061:(t,e,n)=>{n.d(e,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class s extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(t,e,n)=>{n.r(e),n.d(e,{fromExtent:()=>M,fromGeometry:()=>x,fromMultipoint:()=>d,fromPoint:()=>G,fromPolygon:()=>C,fromPolyline:()=>w,fromPolylineUsingImportOperator:()=>I,fromSpatialReference:()=>v,getSpatialReference:()=>p,toExtent:()=>P,toGeometry:()=>V,toMultipoint:()=>_,toPoint:()=>A,toPolygon:()=>R,toPolyline:()=>Z});var r=n(83661),s=(n(79187),n(55537)),i=n(95213),o=n(88885),u=n(5443),a=n(48526),c=n(86738),h=n(39829),l=n(82799),m=(n(90293),n(34772));const f="_gxVersion",y=2,g=1;function p(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function x(t){switch(t.type){case"point":return G(t);case"multipoint":return d(t);case"polyline":return w(t);case"polygon":return C(t);case"extent":return M(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function M(t){if(!t.getCacheValue(f)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(y,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(g,0,t.zmin,t.zmax),t.setCacheValue(f,e)}return t.getCacheValue(f)}function d(t){if(!t.getCacheValue(f)){const e=new o.M,n=new i.P,r=t.points,s=t.hasM,u=t.hasZ,a=u?3:2;for(let t=0,i=r.length;t<i;t++){const i=r[t];n.setXYCoords(i[0],i[1]),u&&n.setZ(i[2]??0),s&&n.setM(i[a]??NaN),e.add(n)}t.setCacheValue(f,e)}return t.getCacheValue(f)}function G(t){if(!t.getCacheValue(f)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(f,e)}return t.getCacheValue(f)}function C(t){if(!t.getCacheValue(f)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,i=(0,m.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(f,i)}return t.getCacheValue(f)}function w(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,m.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,i)}return t.getCacheValue(f)}function I(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,i)}return t.getCacheValue(f)}function v(t){return(0,m.fromSpatialReference)(t)}function V(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return A(t,e);case s.G.enumEnvelope:return P(t,e);case s.G.enumMultiPoint:return _(t,e);case s.G.enumPolyline:return Z(t,e);case s.G.enumPolygon:return R(t,e)}return null}function P(t,e){if(t.isEmpty())return null;const n=new u.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(y,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(g,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(f,t),n}function _(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],u=new i.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,u);const n=[u.getX(),u.getY()];s&&n.push(u.getZ()),r&&n.push(u.getM()),o.push(n)}const c=new a.A({hasM:r,hasZ:s,points:o,spatialReference:e});return c.setCacheValue(f,t),c}function A(t,e){if(t instanceof r.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(f,t),n}function R(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}function Z(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}},92722:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const i=n-t,o=r-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],i=this.coords[r*e+1];for(let o=1;o<n;o+=1){const n=r*(e+o),u=this.coords[n],a=this.coords[n+1];t+=-.5*(u-s)*(a+i),s=u,i=a}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return t?(t.set(i),new s(e,t)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}},98783:(t,e,n)=>{n.d(e,{O:()=>o});var r=n(76061),s=n(55537),i=n(39117);class o{getOperatorType(){return 10104}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}isSimple(t,e,n,r,s){return 5===(0,i.M)(t,e,n,r,s)}executeMany(t,e,n,r){return new u(t,e,n,r)}execute(t,e,n,i){const o=new r.S([t]),u=this.executeMany(o,e,n,i).next();return u||(0,s.d)("null output"),u}}class u extends r.G{constructor(t,e,n,r){super(),t||(0,s.a)(""),this.m_progressTracker=r,this.m_bForceSimplify=n,this.m_index=-1,this.m_inputGeometryCursor=t,this.m_spatialReference=e}next(){const t=this.m_inputGeometryCursor.next();return t?((0,s.c)(t),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(t)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(t){return t||(0,s.a)(""),(0,i.N)(t,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1312],{38954:(t,e,n)=>{n.d(e,{A:()=>h,B:()=>c,C:()=>M,D:()=>P,E:()=>_,F:()=>q,G:()=>O,H:()=>Z,a:()=>U,b:()=>o,c:()=>y,d:()=>s,e:()=>u,f:()=>w,g:()=>S,h:()=>a,i:()=>l,j:()=>g,l:()=>R,m:()=>L,n:()=>v,o:()=>b,p:()=>E,q:()=>x,r:()=>I,s:()=>A,t:()=>T,u:()=>d,v:()=>G,w:()=>j,x:()=>p,y:()=>m,z:()=>f});var i=n(51850),r=n(34304);function o(t){const e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function M(t,e){const n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}function A(t,e){const n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function _(t){const e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e){const n=e[0],i=e[1],r=e[2];let o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function w(t,e,n){const i=e[0],r=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=r*l-o*a,t[1]=o*s-i*l,t[2]=i*a-r*s,t}function R(t,e,n,i){const r=e[0],o=e[1],s=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=s+i*(n[2]-s),t}function E(t,e,n){const i=e[0],r=e[1],o=e[2];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12],t[1]=n[1]*i+n[5]*r+n[9]*o+n[13],t[2]=n[2]*i+n[6]*r+n[10]*o+n[14],t}function T(t,e,n){const i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}function I(t,e,n){const i=n[0],r=n[1],o=n[2],s=n[3],a=e[0],l=e[1],u=e[2],h=r*u-o*l,c=o*a-i*u,d=i*l-r*a,f=r*d-o*c,m=o*h-i*d,p=i*c-r*h,g=2*s;return t[0]=a+h*g+2*f,t[1]=l+c*g+2*m,t[2]=u+d*g+2*p,t}const k=(0,i.vt)(),C=(0,i.vt)();function L(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e){if(t===e)return!0;const n=t[0],i=t[1],o=t[2],s=e[0],a=e[1],l=e[2],u=(0,r.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function P(t,e,n){const i=n[0]-e[0],r=n[1]-e[1],o=n[2]-e[2];let s=i*i+r*r+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=i*s,t[1]=r*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const U=u,D=h,N=c,O=M,G=A,Z=o,j=_;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(t,e){v(k,t),v(C,e);const n=S(k,C);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,i,r,o){const s=1-o,a=s*s,l=o*o,u=a*s,h=3*o*a,c=3*l*s,d=l*o;return t[0]=e[0]*u+n[0]*h+i[0]*c+r[0]*d,t[1]=e[1]*u+n[1]*h+i[1]*c+r[1]*d,t[2]=e[2]*u+n[2]*h+i[2]*c+r[2]*d,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:w,crossAndNormalize:function(t,e,n){const i=e[0],r=e[1],o=e[2],s=n[0],a=n[1],l=n[2],u=r*l-o*a,h=o*s-i*l,c=i*a-r*s,d=Math.sqrt(u*u+h*h+c*c);return t[0]=u/d,t[1]=h/d,t[2]=c/d,t},direction:P,dist:O,distance:M,div:N,divide:c,dot:S,equals:q,exactEquals:L,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,i,r,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),h=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+i[0]*u+r[0]*h,t[1]=e[1]*a+n[1]*l+i[1]*u+r[1]*h,t[2]=e[2]*a+n[2]*l+i[2]*u+r[2]*h,t},inverse:b,len:Z,length:o,lerp:R,max:p,min:m,mul:D,multiply:h,negate:x,normalize:v,random:function(t,e=1){const n=r.Ov,i=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(i)*s,t[1]=Math.sin(i)*s,t[2]=o*e,t},rotateX:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:y,set:a,sign:f,sqrDist:G,sqrLen:j,squaredDistance:A,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:U,subtract:u,transformMat3:T,transformMat4:E,transformQuat:I},Symbol.toStringTag,{value:"Module"}))},61528:(t,e,n)=>{n.r(e),n.d(e,{default:()=>C});var i=n(31635),r=n(11254),o=n(49186),s=n(44208),a=n(53966),l=n(25728),u=n(74887),h=n(36708),c=n(91429),d=n(87024),f=n(5443),m=n(16930),p=n(4146),g=n(52136),y=n(18768),M=n(69208),A=n(16131),_=n(8303),x=n(25036),b=n(10873),v=n(58325),S=n(88546),w=n(20655),R=n(56776),E=n(97159),T=n(16215),I=n(36005);let k=class extends((0,y.b)((0,A.q)((0,_.A)((0,x.j)((0,l.P)((0,M.d)((0,g.p)(p.A)))))))){readModifications(t,e,n){this._modificationsSource={url:(0,E.f)(t,n),context:n}}initialize(){this.addHandles((0,h.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,h.OH))}constructor(t){super(t),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new m.A({wkid:4326,vcsWkid:115700}),this.fullExtent=new f.A(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null}set elevationInfo(t){null!=t&&"absolute-height"!==t.mode||this._set("elevationInfo",t),this._validateElevationInfo(t)}async load(t){return this.addResolvingPromise(this._doLoad(t)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(t){const e=[t];for(;e?.length>0;){const t=e.pop();if(!t)return;for(const[n,i]of Object.entries(t)){if("uri"===n)try{const t=new URL("https://tmp"+i).searchParams.get("session");if(t)return t}catch(t){}"object"==typeof i&&null!==i&&e.push(i)}}return null}async requestRootAndSession(t){const e=(t,e)=>new o.A("3dtiles-init:"+t,e);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((n,i)=>{this.url||i(e("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null,new Promise((t,n)=>{if(this.replacesTerrain&&!this._key){const i=this.portalItem?.portal||this.parent?.portalItem?.portal||w.A.getDefault();i.signIn().then(()=>{i.g3dTilesEnabled?(0,r.A)(i.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(e=>{this._key=e.data.keyString,t()},()=>n(e("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):n(e("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+i.url))},()=>n(e("sign-in-failed","Error signing in to Portal")))}else t()}).then(()=>{(0,r.A)(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:t}).then(t=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(t.data))}catch(t){return void i(e("root-parse-failed","Error parsing root tile, details: "+t))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=t.data,this.fullExtent=(0,S.uB)(this._rootTilesetJSON),n(),this._rootRequestPromise=null):i(e("root-is-null","Root tile is null."))},t=>{(0,u.QP)(t),i(e("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,a.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",t)})},t=>i(t))})),this._rootRequestPromise}async _doLoad(t){const e=null!=t?t.signal:null;if(this.isUsedAsGroundLayer&&!(0,s.A)("enable-feature:basemap-groundlayers"))throw new o.A("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:t=>{if(t.typeKeywords?.includes("IntegratedMesh"))return!0;throw new o.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},t)}catch(t){(0,u.QP)(t)}if(null!=this._modificationsSource){const e=await v.A.fromUrl(this._modificationsSource.url,this.spatialReference,t);this.setAtOrigin("modifications",e,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(e)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}get hasAttributionData(){return!1}_validateElevationInfo(t){const e="Integrated mesh 3d tiles layers";(0,R.XF)(a.A.getLogger(this),(0,R.B)(e,"absolute-height",t)),(0,R.XF)(a.A.getLogger(this),(0,R.tW)(e,t))}get replacesTerrain(){return!!(0,s.A)("enable-feature:basemap-groundlayers")&&this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return(0,T.S)(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};(0,i.Cg)([(0,c.MZ)({type:["IntegratedMesh3DTilesLayer"]})],k.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)({type:v.A,clonable:t=>t.clone()}),(0,d.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],k.prototype,"modifications",void 0),(0,i.Cg)([(0,I.w)(["web-scene","portal-item"],"modifications")],k.prototype,"readModifications",null),(0,i.Cg)([(0,c.MZ)({type:m.A})],k.prototype,"spatialReference",void 0),(0,i.Cg)([(0,c.MZ)({type:f.A})],k.prototype,"fullExtent",void 0),(0,i.Cg)([(0,c.MZ)(b.Yj)],k.prototype,"elevationInfo",null),(0,i.Cg)([(0,c.MZ)({type:["show","hide"]})],k.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)(b.OZ)],k.prototype,"url",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],k.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],k.prototype,"path",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"minScale",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"maxScale",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],k.prototype,"hasAttributionData",null),(0,i.Cg)([(0,c.MZ)()],k.prototype,"replacesTerrain",null),(0,i.Cg)([(0,c.MZ)()],k.prototype,"isUsedAsGroundLayer",null),(0,i.Cg)([(0,c.MZ)()],k.prototype,"hasGoogleUrl",null),k=(0,i.Cg)([(0,c.$K)("esri.layers.IntegratedMesh3DTilesLayer")],k);const C=k},76553:(t,e,n)=>{function i(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>i})},88546:(t,e,n)=>{n.d(e,{_8:()=>m,uB:()=>p});var i=n(34727),r=n(38954),o=n(51850),s=n(73941),a=n(5443),l=n(54239),u=n(16930),h=n(9762);function c(t,e){if(!Array.isArray(t)||t.length<e)return!1;for(const e of t)if("number"!=typeof e)return!1;return!0}const d=7645211,f={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function m(t){return!(!(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)||!t.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function p(t,e=!1){let n=new u.A({wkid:4326,vcsWkid:115700}),l=t.root?.boundingVolume,m=!1,p=t?.root?.transform;if(e&&(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)&&(t.root?.extensions?.ESRI_crs?.boundingVolume?.box||t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))n=new u.A(t.extensions?.ESRI_crs),l=t.root?.extensions?.ESRI_crs?.boundingVolume,p=t.root?.transform,m=!0;else if(!l)return new a.A(-180,-90,180,90,n);if(l.box){const t=l?.box;if(t[3]>d&&t[7]>d&&t[11]>d)return new a.A({...f,spatialReference:n})}const g=(0,o.vt)();if(!m&&l.region&&c(l.region,6)){const t=l.region,e=(0,i.KJ)(t[0]),r=(0,i.KJ)(t[1]),o=t[4],s=(0,i.KJ)(t[2]),u=(0,i.KJ)(t[3]),h=t[5];return new a.A({xmin:e,ymin:r,zmin:o,xmax:s,ymax:u,zmax:h,spatialReference:n})}if(l.sphere&&c(l.sphere,4)){const t=l.sphere,e=(0,o.fA)(t[0],t[1],t[2]),i=t[3]/Math.sqrt(3),d=(0,o.vt)();(0,r.e)(d,e,(0,o.fA)(i,i,i));const f=(0,o.vt)();if((0,r.i)(f,e,(0,o.fA)(i,i,i)),p&&c(p,16)){const t=p;(0,r.p)(g,d,t),(0,r.d)(d,g),(0,r.p)(g,f,t),(0,r.d)(f,g)}m||((0,h.projectBuffer)(d,s.Ro,0,d,u.A.WGS84,0),(0,h.projectBuffer)(f,s.Ro,0,f,u.A.WGS84,0));const y=(0,o.vt)(),M=(0,o.vt)();return(0,r.y)(y,d,f),(0,r.x)(M,d,f),new a.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:M[0],ymax:M[1],zmax:M[2],spatialReference:n})}if(l.box&&c(l.box,12)){const t=l.box,e=(0,o.fA)(t[0],t[1],t[2]),i=(0,o.fA)(t[3],t[4],t[5]),d=(0,o.fA)(t[6],t[7],t[8]),f=(0,o.fA)(t[9],t[10],t[11]),g=[];for(let t=0;t<8;++t)g.push((0,o.vt)());if((0,r.i)(g[0],e,i),(0,r.i)(g[0],g[0],d),(0,r.i)(g[0],g[0],f),(0,r.a)(g[1],e,i),(0,r.i)(g[1],g[1],d),(0,r.i)(g[1],g[1],f),(0,r.i)(g[2],e,i),(0,r.a)(g[2],g[2],d),(0,r.i)(g[2],g[2],f),(0,r.a)(g[3],e,i),(0,r.a)(g[3],g[3],d),(0,r.i)(g[3],g[3],f),(0,r.i)(g[4],e,i),(0,r.i)(g[4],g[4],d),(0,r.a)(g[4],g[4],f),(0,r.a)(g[5],e,i),(0,r.i)(g[5],g[5],d),(0,r.a)(g[5],g[5],f),(0,r.i)(g[6],e,i),(0,r.a)(g[6],g[6],d),(0,r.a)(g[6],g[6],f),(0,r.a)(g[7],e,i),(0,r.a)(g[7],g[7],d),(0,r.a)(g[7],g[7],f),p&&c(p,16)){const t=p;for(let e=0;e<8;++e)(0,r.p)(g[e],g[e],t)}const y=(0,o.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),M=(0,o.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)m||(0,h.projectBuffer)(g[t],s.Ro,0,g[t],u.A.WGS84,0),(0,r.y)(M,M,g[t]),(0,r.x)(y,y,g[t]);return new a.A({xmin:M[0],ymin:M[1],zmin:M[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:n})}return new a.A(-180,-90,180,90,n)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height) "})]])}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1312],{38954:(t,e,n)=>{n.d(e,{A:()=>f,B:()=>h,C:()=>c,D:()=>M,E:()=>P,F:()=>_,G:()=>q,H:()=>O,a:()=>U,b:()=>o,c:()=>y,d:()=>s,e:()=>u,f:()=>w,g:()=>S,h:()=>a,i:()=>l,j:()=>g,l:()=>R,m:()=>L,n:()=>v,o:()=>x,p:()=>E,q:()=>b,r:()=>I,s:()=>A,t:()=>T,u:()=>Z,v:()=>d,w:()=>G,x:()=>z,y:()=>p,z:()=>m});var i=n(51850),r=n(34304);function o(t){const e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function M(t,e){const n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}function A(t,e){const n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function _(t){const e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function b(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e){const n=e[0],i=e[1],r=e[2];let o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function w(t,e,n){const i=e[0],r=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=r*l-o*a,t[1]=o*s-i*l,t[2]=i*a-r*s,t}function R(t,e,n,i){const r=e[0],o=e[1],s=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=s+i*(n[2]-s),t}function E(t,e,n){const i=e[0],r=e[1],o=e[2];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12],t[1]=n[1]*i+n[5]*r+n[9]*o+n[13],t[2]=n[2]*i+n[6]*r+n[10]*o+n[14],t}function T(t,e,n){const i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}function I(t,e,n){const i=n[0],r=n[1],o=n[2],s=n[3],a=e[0],l=e[1],u=e[2],h=r*u-o*l,c=o*a-i*u,d=i*l-r*a,f=r*d-o*c,m=o*h-i*d,p=i*c-r*h,g=2*s;return t[0]=a+h*g+2*f,t[1]=l+c*g+2*m,t[2]=u+d*g+2*p,t}const k=(0,i.vt)(),C=(0,i.vt)();function L(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e){if(t===e)return!0;const n=t[0],i=t[1],o=t[2],s=e[0],a=e[1],l=e[2],u=(0,r.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function P(t,e,n){const i=n[0]-e[0],r=n[1]-e[1],o=n[2]-e[2];let s=i*i+r*r+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=i*s,t[1]=r*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const U=u,D=h,N=c,O=M,G=A,Z=o,z=_;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(t,e){v(k,t),v(C,e);const n=S(k,C);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,i,r,o){const s=1-o,a=s*s,l=o*o,u=a*s,h=3*o*a,c=3*l*s,d=l*o;return t[0]=e[0]*u+n[0]*h+i[0]*c+r[0]*d,t[1]=e[1]*u+n[1]*h+i[1]*c+r[1]*d,t[2]=e[2]*u+n[2]*h+i[2]*c+r[2]*d,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:w,crossAndNormalize:function(t,e,n){const i=e[0],r=e[1],o=e[2],s=n[0],a=n[1],l=n[2],u=r*l-o*a,h=o*s-i*l,c=i*a-r*s,d=Math.sqrt(u*u+h*h+c*c);return t[0]=u/d,t[1]=h/d,t[2]=c/d,t},direction:P,dist:O,distance:M,div:N,divide:c,dot:S,equals:q,exactEquals:L,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,i,r,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),h=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+i[0]*u+r[0]*h,t[1]=e[1]*a+n[1]*l+i[1]*u+r[1]*h,t[2]=e[2]*a+n[2]*l+i[2]*u+r[2]*h,t},inverse:x,len:Z,length:o,lerp:R,max:p,min:m,mul:D,multiply:h,negate:b,normalize:v,random:function(t,e=1){const n=r.Ov,i=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(i)*s,t[1]=Math.sin(i)*s,t[2]=o*e,t},rotateX:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:y,set:a,sign:f,sqrDist:G,sqrLen:z,squaredDistance:A,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:U,subtract:u,transformMat3:T,transformMat4:E,transformQuat:I},Symbol.toStringTag,{value:"Module"}))},61528:(t,e,n)=>{n.r(e),n.d(e,{default:()=>C});var i=n(31635),r=n(11254),o=n(49186),s=n(44208),a=n(53966),l=n(25728),u=n(74887),h=n(36708),c=n(91429),d=n(87024),f=n(5443),m=n(16930),p=n(4146),g=n(52136),y=n(18768),M=n(69208),A=n(16131),_=n(8303),b=n(25036),x=n(10873),v=n(58325),S=n(88546),w=n(20655),R=n(56776),E=n(97159),T=n(16215),I=n(36005);let k=class extends((0,y.b)((0,A.q)((0,_.A)((0,b.j)((0,l.P)((0,M.d)((0,g.p)(p.A)))))))){readModifications(t,e,n){this._modificationsSource={url:(0,E.f)(t,n),context:n}}initialize(){this.addHandles((0,h.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,h.OH))}constructor(t){super(t),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new m.A({wkid:4326,vcsWkid:115700}),this.fullExtent=new f.A(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null}set elevationInfo(t){null!=t&&"absolute-height"!==t.mode||this._set("elevationInfo",t),this._validateElevationInfo(t)}async load(t){return this.addResolvingPromise(this._doLoad(t)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(t){const e=[t];for(;e?.length>0;){const t=e.pop();if(!t)return;for(const[n,i]of Object.entries(t)){if("uri"===n)try{const t=new URL("https://tmp"+i).searchParams.get("session");if(t)return t}catch(t){}"object"==typeof i&&null!==i&&e.push(i)}}return null}async requestRootAndSession(t){const e=(t,e)=>new o.A("3dtiles-init:"+t,e);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((n,i)=>{this.url||i(e("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null,new Promise((t,n)=>{if(this.replacesTerrain&&!this._key){const i=this.portalItem?.portal||this.parent?.portalItem?.portal||w.A.getDefault();i.signIn().then(()=>{i.g3dTilesEnabled?(0,r.A)(i.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(e=>{this._key=e.data.keyString,t()},()=>n(e("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):n(e("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+i.url))},()=>n(e("sign-in-failed","Error signing in to Portal")))}else t()}).then(()=>{(0,r.A)(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:t}).then(t=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(t.data))}catch(t){return void i(e("root-parse-failed","Error parsing root tile, details: "+t))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=t.data,this.fullExtent=(0,S.uB)(this._rootTilesetJSON),n(),this._rootRequestPromise=null):i(e("root-is-null","Root tile is null."))},t=>{(0,u.QP)(t),i(e("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,a.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",t)})},t=>i(t))})),this._rootRequestPromise}async _doLoad(t){const e=null!=t?t.signal:null;if(this.isUsedAsGroundLayer&&!(0,s.A)("enable-feature:basemap-groundlayers"))throw new o.A("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:t=>{if(t.typeKeywords?.includes("IntegratedMesh"))return!0;throw new o.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},t)}catch(t){(0,u.QP)(t)}if(null!=this._modificationsSource){const e=await v.A.fromUrl(this._modificationsSource.url,this.spatialReference,t);this.setAtOrigin("modifications",e,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(e)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}get hasAttributionData(){return!1}_validateElevationInfo(t){const e="Integrated mesh 3d tiles layers";(0,R.XF)(a.A.getLogger(this),(0,R.B)(e,"absolute-height",t)),(0,R.XF)(a.A.getLogger(this),(0,R.tW)(e,t))}get replacesTerrain(){return!!(0,s.A)("enable-feature:basemap-groundlayers")&&this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return(0,T.S)(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};(0,i.Cg)([(0,c.MZ)({type:["IntegratedMesh3DTilesLayer"]})],k.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)({type:v.A,clonable:t=>t.clone()}),(0,d.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],k.prototype,"modifications",void 0),(0,i.Cg)([(0,I.w)(["web-scene","portal-item"],"modifications")],k.prototype,"readModifications",null),(0,i.Cg)([(0,c.MZ)({type:m.A})],k.prototype,"spatialReference",void 0),(0,i.Cg)([(0,c.MZ)({type:f.A})],k.prototype,"fullExtent",void 0),(0,i.Cg)([(0,c.MZ)(x.Yj)],k.prototype,"elevationInfo",null),(0,i.Cg)([(0,c.MZ)({type:["show","hide"]})],k.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)(x.OZ)],k.prototype,"url",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],k.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],k.prototype,"path",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"minScale",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"maxScale",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],k.prototype,"hasAttributionData",null),(0,i.Cg)([(0,c.MZ)()],k.prototype,"replacesTerrain",null),(0,i.Cg)([(0,c.MZ)()],k.prototype,"isUsedAsGroundLayer",null),(0,i.Cg)([(0,c.MZ)()],k.prototype,"hasGoogleUrl",null),k=(0,i.Cg)([(0,c.$K)("esri.layers.IntegratedMesh3DTilesLayer")],k);const C=k},76553:(t,e,n)=>{function i(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>i})},88546:(t,e,n)=>{n.d(e,{_8:()=>m,uB:()=>p});var i=n(34727),r=n(38954),o=n(51850),s=n(73941),a=n(5443),l=n(54239),u=n(16930),h=n(9762);function c(t,e){if(!Array.isArray(t)||t.length<e)return!1;for(const e of t)if("number"!=typeof e)return!1;return!0}const d=7645211,f={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function m(t){return!(!(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)||!t.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function p(t,e=!1){let n=new u.A({wkid:4326,vcsWkid:115700}),l=t.root?.boundingVolume,m=!1,p=t?.root?.transform;if(e&&(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)&&(t.root?.extensions?.ESRI_crs?.boundingVolume?.box||t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))n=new u.A(t.extensions?.ESRI_crs),l=t.root?.extensions?.ESRI_crs?.boundingVolume,p=t.root?.transform,m=!0;else if(!l)return new a.A(-180,-90,180,90,n);if(l.box){const t=l?.box;if(t[3]>d&&t[7]>d&&t[11]>d)return new a.A({...f,spatialReference:n})}const g=(0,o.vt)();if(!m&&l.region&&c(l.region,6)){const t=l.region,e=(0,i.KJ)(t[0]),r=(0,i.KJ)(t[1]),o=t[4],s=(0,i.KJ)(t[2]),u=(0,i.KJ)(t[3]),h=t[5];return new a.A({xmin:e,ymin:r,zmin:o,xmax:s,ymax:u,zmax:h,spatialReference:n})}if(l.sphere&&c(l.sphere,4)){const t=l.sphere,e=(0,o.fA)(t[0],t[1],t[2]),i=t[3]/Math.sqrt(3),d=(0,o.vt)();(0,r.e)(d,e,(0,o.fA)(i,i,i));const f=(0,o.vt)();if((0,r.i)(f,e,(0,o.fA)(i,i,i)),p&&c(p,16)){const t=p;(0,r.p)(g,d,t),(0,r.d)(d,g),(0,r.p)(g,f,t),(0,r.d)(f,g)}m||((0,h.projectBuffer)(d,s.Ro,0,d,u.A.WGS84,0),(0,h.projectBuffer)(f,s.Ro,0,f,u.A.WGS84,0));const y=(0,o.vt)(),M=(0,o.vt)();return(0,r.z)(y,d,f),(0,r.y)(M,d,f),new a.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:M[0],ymax:M[1],zmax:M[2],spatialReference:n})}if(l.box&&c(l.box,12)){const t=l.box,e=(0,o.fA)(t[0],t[1],t[2]),i=(0,o.fA)(t[3],t[4],t[5]),d=(0,o.fA)(t[6],t[7],t[8]),f=(0,o.fA)(t[9],t[10],t[11]),g=[];for(let t=0;t<8;++t)g.push((0,o.vt)());if((0,r.i)(g[0],e,i),(0,r.i)(g[0],g[0],d),(0,r.i)(g[0],g[0],f),(0,r.a)(g[1],e,i),(0,r.i)(g[1],g[1],d),(0,r.i)(g[1],g[1],f),(0,r.i)(g[2],e,i),(0,r.a)(g[2],g[2],d),(0,r.i)(g[2],g[2],f),(0,r.a)(g[3],e,i),(0,r.a)(g[3],g[3],d),(0,r.i)(g[3],g[3],f),(0,r.i)(g[4],e,i),(0,r.i)(g[4],g[4],d),(0,r.a)(g[4],g[4],f),(0,r.a)(g[5],e,i),(0,r.i)(g[5],g[5],d),(0,r.a)(g[5],g[5],f),(0,r.i)(g[6],e,i),(0,r.a)(g[6],g[6],d),(0,r.a)(g[6],g[6],f),(0,r.a)(g[7],e,i),(0,r.a)(g[7],g[7],d),(0,r.a)(g[7],g[7],f),p&&c(p,16)){const t=p;for(let e=0;e<8;++e)(0,r.p)(g[e],g[e],t)}const y=(0,o.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),M=(0,o.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)m||(0,h.projectBuffer)(g[t],s.Ro,0,g[t],u.A.WGS84,0),(0,r.z)(M,M,g[t]),(0,r.y)(y,y,g[t]);return new a.A({xmin:M[0],ymin:M[1],zmin:M[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:n})}return new a.A(-180,-90,180,90,n)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height) "})]])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2343],{2343:(r,e,t)=>{t.d(e,{l:()=>s});var n,o=t(11053),a={exports:{}};const i=(0,o.g)(function(){return n||(n=1,r=a,e="undefined"!=typeof document?document.currentScript?.src:void 0,t=async function(r={}){var t,n=r,o="./this.program",a="";try{a=new URL(".",e).href}catch{}t=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var i,s,u,l,d,c,f,m,h,p,v,w,y,g,E=console.log.bind(console),k=console.error.bind(console),_=!1,b=!1;function F(){var r=l.buffer;d=new Int8Array(r),f=new Int16Array(r),n.HEAPU8=c=new Uint8Array(r),m=new Uint16Array(r),h=new Int32Array(r),n.HEAPU32=p=new Uint32Array(r),v=new Float32Array(r),n.HEAPF64=w=new Float64Array(r),y=new BigInt64Array(r),g=new BigUint64Array(r)}var A,P=0,S=null;function D(r){P++,n.monitorRunDependencies?.(P)}function T(r){if(P--,n.monitorRunDependencies?.(P),0==P&&S){var e=S;S=null,e()}}function C(r){n.onAbort?.(r),k(r="Aborted("+r+")"),_=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw u?.(e),e}async function x(r){if(!i)try{var e=await t(r);return new Uint8Array(e)}catch{}return function(r){if(r==A&&i)return new Uint8Array(i);throw"both async and sync fetching of the wasm failed"}(r)}class M{name="ExitStatus";constructor(r){this.message=`Program terminated with exit(${r})`,this.status=r}}var N=r=>{for(;r.length>0;)r.shift()(n)},R=[],B=r=>R.push(r),O=[],j=r=>O.push(r),W=!0,z=r=>Hr(r),$=()=>qr();class I{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){p[this.ptr+4>>2]=r}get_type(){return p[this.ptr+4>>2]}set_destructor(r){p[this.ptr+8>>2]=r}get_destructor(){return p[this.ptr+8>>2]}set_caught(r){r=r?1:0,d[this.ptr+12]=r}get_caught(){return 0!=d[this.ptr+12]}set_rethrown(r){r=r?1:0,d[this.ptr+13]=r}get_rethrown(){return 0!=d[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){p[this.ptr+16>>2]=r}get_adjusted_ptr(){return p[this.ptr+16>>2]}}var U=()=>{var r=h[+lr.varargs>>2];return lr.varargs+=4,r},L=U,V={isAbs:r=>"/"===r.charAt(0),splitPath:r=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(r).slice(1),normalizeArray:(r,e)=>{for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:r=>{var e=V.isAbs(r),t="/"===r.slice(-1);return(r=V.normalizeArray(r.split("/").filter(r=>!!r),!e).join("/"))||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:r=>{var e=V.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.slice(0,-1)),t+n):"."},basename:r=>r&&r.match(/([^\/]+|\/)\/*$/)[1],join:(...r)=>V.normalize(r.join("/")),join2:(r,e)=>V.normalize(r+"/"+e)},H=r=>{(H=r=>crypto.getRandomValues(r))(r)},q={resolve:(...r)=>{for(var e="",t=!1,n=r.length-1;n>=-1&&!t;n--){var o=n>=0?r[n]:sr.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";e=o+"/"+e,t=V.isAbs(o)}return(t?"/":"")+(e=V.normalizeArray(e.split("/").filter(r=>!!r),!t).join("/"))||"."},relative:(r,e)=>{function t(r){for(var e=0;e<r.length&&""===r[e];e++);for(var t=r.length-1;t>=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=q.resolve(r).slice(1),e=q.resolve(e).slice(1);for(var n=t(r.split("/")),o=t(e.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},X="undefined"!=typeof TextDecoder?new TextDecoder:void 0,G=(r,e=0,t=NaN)=>{for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.buffer&&X)return X.decode(r.subarray(e,o));for(var a="";e<o;){var i=r[e++];if(128&i){var s=63&r[e++];if(192!=(224&i)){var u=63&r[e++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&r[e++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},Y=[],K=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},J=(r,e,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<r.length;++i){var s=r.codePointAt(i);if(s<=127){if(t>=a)break;e[t++]=s}else if(s<=2047){if(t+1>=a)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=a)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s,i++}}return e[t]=0,t-o},Q=(r,e,t)=>{var n=K(r)+1,o=new Array(n),a=J(r,o,0,o.length);return o.length=a,o},Z={ttys:[],init(){},shutdown(){},register(r,e){Z.ttys[r]={input:[],output:[],ops:e},sr.registerDevice(r,Z.stream_ops)},stream_ops:{open(r){var e=Z.ttys[r.node.rdev];if(!e)throw new sr.ErrnoError(43);r.tty=e,r.seekable=!1},close(r){r.tty.ops.fsync(r.tty)},fsync(r){r.tty.ops.fsync(r.tty)},read(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new sr.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new sr.ErrnoError(29)}if(void 0===s&&0===a)throw new sr.ErrnoError(6);if(null==s)break;a++,e[t+i]=s}return a&&(r.node.atime=Date.now()),a},write(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new sr.ErrnoError(60);try{for(var a=0;a<n;a++)r.tty.ops.put_char(r.tty,e[t+a])}catch(r){throw new sr.ErrnoError(29)}return n&&(r.node.mtime=r.node.ctime=Date.now()),a}},default_tty_ops:{get_char:r=>(()=>{if(!Y.length){var r=null;if("undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(r=window.prompt("Input: "))&&(r+="\n"),!r)return null;Y=Q(r)}return Y.shift()})(),put_char(r,e){null===e||10===e?(E(G(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output?.length>0&&(E(G(r.output)),r.output=[])},ioctl_tcgets:r=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(r,e,t)=>0,ioctl_tiocgwinsz:r=>[24,80]},default_tty1_ops:{put_char(r,e){null===e||10===e?(k(G(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output?.length>0&&(k(G(r.output)),r.output=[])}}},rr=r=>{C()},er={ops_table:null,mount:r=>er.createNode(null,"/",16895,0),createNode(r,e,t,n){if(sr.isBlkdev(t)||sr.isFIFO(t))throw new sr.ErrnoError(63);er.ops_table||={dir:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr,lookup:er.node_ops.lookup,mknod:er.node_ops.mknod,rename:er.node_ops.rename,unlink:er.node_ops.unlink,rmdir:er.node_ops.rmdir,readdir:er.node_ops.readdir,symlink:er.node_ops.symlink},stream:{llseek:er.stream_ops.llseek}},file:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr},stream:{llseek:er.stream_ops.llseek,read:er.stream_ops.read,write:er.stream_ops.write,mmap:er.stream_ops.mmap,msync:er.stream_ops.msync}},link:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr,readlink:er.node_ops.readlink},stream:{}},chrdev:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr},stream:sr.chrdev_stream_ops}};var o=sr.createNode(r,e,t,n);return sr.isDir(o.mode)?(o.node_ops=er.ops_table.dir.node,o.stream_ops=er.ops_table.dir.stream,o.contents={}):sr.isFile(o.mode)?(o.node_ops=er.ops_table.file.node,o.stream_ops=er.ops_table.file.stream,o.usedBytes=0,o.contents=null):sr.isLink(o.mode)?(o.node_ops=er.ops_table.link.node,o.stream_ops=er.ops_table.link.stream):sr.isChrdev(o.mode)&&(o.node_ops=er.ops_table.chrdev.node,o.stream_ops=er.ops_table.chrdev.stream),o.atime=o.mtime=o.ctime=Date.now(),r&&(r.contents[e]=o,r.atime=r.mtime=r.ctime=o.atime),o},getFileDataAsTypedArray:r=>r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0),expandFileStorage(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr(r){var e={};return e.dev=sr.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,sr.isDir(r.mode)?e.size=4096:sr.isFile(r.mode)?e.size=r.usedBytes:sr.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.atime),e.mtime=new Date(r.mtime),e.ctime=new Date(r.ctime),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr(r,e){for(const t of["mode","atime","mtime","ctime"])null!=e[t]&&(r[t]=e[t]);void 0!==e.size&&er.resizeFileStorage(r,e.size)},lookup(r,e){throw er.doesNotExistError},mknod:(r,e,t,n)=>er.createNode(r,e,t,n),rename(r,e,t){var n;try{n=sr.lookupNode(e,t)}catch(r){}if(n){if(sr.isDir(r.mode))for(var o in n.contents)throw new sr.ErrnoError(55);sr.hashRemoveNode(n)}delete r.parent.contents[r.name],e.contents[t]=r,r.name=t,e.ctime=e.mtime=r.parent.ctime=r.parent.mtime=Date.now()},unlink(r,e){delete r.contents[e],r.ctime=r.mtime=Date.now()},rmdir(r,e){var t=sr.lookupNode(r,e);for(var n in t.contents)throw new sr.ErrnoError(55);delete r.contents[e],r.ctime=r.mtime=Date.now()},readdir:r=>[".","..",...Object.keys(r.contents)],symlink(r,e,t){var n=er.createNode(r,e,41471,0);return n.link=t,n},readlink(r){if(!sr.isLink(r.mode))throw new sr.ErrnoError(28);return r.link}},stream_ops:{read(r,e,t,n,o){var a=r.node.contents;if(o>=r.node.usedBytes)return 0;var i=Math.min(r.node.usedBytes-o,n);if(i>8&&a.subarray)e.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)e[t+s]=a[o+s];return i},write(r,e,t,n,o,a){if(e.buffer===d.buffer&&(a=!1),!n)return 0;var i=r.node;if(i.mtime=i.ctime=Date.now(),e.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=e.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=e.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(e.subarray(t,t+n),o),n}if(er.expandFileStorage(i,o+n),i.contents.subarray&&e.subarray)i.contents.set(e.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=e[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&sr.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new sr.ErrnoError(28);return n},mmap(r,e,t,n,o){if(!sr.isFile(r.node.mode))throw new sr.ErrnoError(43);var a,i,s=r.node.contents;if(2&o||!s||s.buffer!==d.buffer){if(i=!0,!(a=rr()))throw new sr.ErrnoError(48);s&&((t>0||t+e<s.length)&&(s=s.subarray?s.subarray(t,t+e):Array.prototype.slice.call(s,t,t+e)),d.set(s,a))}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(r,e,t,n,o)=>(er.stream_ops.write(r,e,0,n,t,!1),0)}},tr=async r=>{var e=await t(r);return new Uint8Array(e)},nr=(...r)=>sr.createDataFile(...r),or=[],ar=(r,e,t,n,o,a,i,s,u,l)=>{var d=e?q.resolve(V.join2(r,e)):r;function c(t){function c(t){l?.(),s||nr(r,e,t,n,o,u),a?.(),T()}((r,e,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return or.forEach(a=>{o||a.canHandle(e)&&(a.handle(r,e,t,n),o=!0)}),o})(t,d,c,()=>{i?.(),T()})||c(t)}D(),"string"==typeof t?tr(t).then(c,i):c(t)},ir=(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},sr={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,readFiles:{},ErrnoError:class{name="ErrnoError";constructor(r){this.errno=r}},FSStream:class{shared={};get object(){return this.node}set object(r){this.node=r}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return!!(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(r){this.shared.flags=r}get position(){return this.shared.position}set position(r){this.shared.position=r}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.id=sr.nextInode++,this.name=e,this.mode=t,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(r){r?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(r){r?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return sr.isDir(this.mode)}get isDevice(){return sr.isChrdev(this.mode)}},lookupPath(r,e={}){if(!r)throw new sr.ErrnoError(44);e.follow_mount??=!0,V.isAbs(r)||(r=sr.cwd()+"/"+r);r:for(var t=0;t<40;t++){for(var n=r.split("/").filter(r=>!!r),o=sr.root,a="/",i=0;i<n.length;i++){var s=i===n.length-1;if(s&&e.parent)break;if("."!==n[i])if(".."!==n[i]){a=V.join2(a,n[i]);try{o=sr.lookupNode(o,n[i])}catch(r){if(44===r?.errno&&s&&e.noent_okay)return{path:a};throw r}if(!sr.isMountpoint(o)||s&&!e.follow_mount||(o=o.mounted.root),sr.isLink(o.mode)&&(!s||e.follow)){if(!o.node_ops.readlink)throw new sr.ErrnoError(52);var u=o.node_ops.readlink(o);V.isAbs(u)||(u=V.dirname(a)+"/"+u),r=u+"/"+n.slice(i+1).join("/");continue r}}else{if(a=V.dirname(a),sr.isRoot(o)){r=a+"/"+n.slice(i+1).join("/");continue r}o=o.parent}}return{path:a,node:o}}throw new sr.ErrnoError(32)},getPath(r){for(var e;;){if(sr.isRoot(r)){var t=r.mount.mountpoint;return e?"/"!==t[t.length-1]?`${t}/${e}`:t+e:t}e=e?`${r.name}/${e}`:r.name,r=r.parent}},hashName(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%sr.nameTable.length},hashAddNode(r){var e=sr.hashName(r.parent.id,r.name);r.name_next=sr.nameTable[e],sr.nameTable[e]=r},hashRemoveNode(r){var e=sr.hashName(r.parent.id,r.name);if(sr.nameTable[e]===r)sr.nameTable[e]=r.name_next;else for(var t=sr.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode(r,e){var t=sr.mayLookup(r);if(t)throw new sr.ErrnoError(t);for(var n=sr.hashName(r.id,e),o=sr.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===r.id&&a===e)return o}return sr.lookup(r,e)},createNode(r,e,t,n){var o=new sr.FSNode(r,e,t,n);return sr.hashAddNode(o),o},destroyNode(r){sr.hashRemoveNode(r)},isRoot:r=>r===r.parent,isMountpoint:r=>!!r.mounted,isFile:r=>32768==(61440&r),isDir:r=>16384==(61440&r),isLink:r=>40960==(61440&r),isChrdev:r=>8192==(61440&r),isBlkdev:r=>24576==(61440&r),isFIFO:r=>4096==(61440&r),isSocket:r=>!(49152&~r),flagsToPermissionString(r){var e=["r","w","rw"][3&r];return 512&r&&(e+="w"),e},nodePermissions:(r,e)=>sr.ignorePermissions||(!e.includes("r")||292&r.mode)&&(!e.includes("w")||146&r.mode)&&(!e.includes("x")||73&r.mode)?0:2,mayLookup:r=>sr.isDir(r.mode)?sr.nodePermissions(r,"x")||(r.node_ops.lookup?0:2):54,mayCreate(r,e){if(!sr.isDir(r.mode))return 54;try{return sr.lookupNode(r,e),20}catch(r){}return sr.nodePermissions(r,"wx")},mayDelete(r,e,t){var n;try{n=sr.lookupNode(r,e)}catch(r){return r.errno}var o=sr.nodePermissions(r,"wx");if(o)return o;if(t){if(!sr.isDir(n.mode))return 54;if(sr.isRoot(n)||sr.getPath(n)===sr.cwd())return 10}else if(sr.isDir(n.mode))return 31;return 0},mayOpen:(r,e)=>r?sr.isLink(r.mode)?32:sr.isDir(r.mode)&&("r"!==sr.flagsToPermissionString(e)||576&e)?31:sr.nodePermissions(r,sr.flagsToPermissionString(e)):44,checkOpExists(r,e){if(!r)throw new sr.ErrnoError(e);return r},MAX_OPEN_FDS:4096,nextfd(){for(var r=0;r<=sr.MAX_OPEN_FDS;r++)if(!sr.streams[r])return r;throw new sr.ErrnoError(33)},getStreamChecked(r){var e=sr.getStream(r);if(!e)throw new sr.ErrnoError(8);return e},getStream:r=>sr.streams[r],createStream:(r,e=-1)=>(r=Object.assign(new sr.FSStream,r),-1==e&&(e=sr.nextfd()),r.fd=e,sr.streams[e]=r,r),closeStream(r){sr.streams[r]=null},dupStream(r,e=-1){var t=sr.createStream(r,e);return t.stream_ops?.dup?.(t),t},doSetAttr(r,e,t){var n=r?.stream_ops.setattr,o=n?r:e;n??=e.node_ops.setattr,sr.checkOpExists(n,63),n(o,t)},chrdev_stream_ops:{open(r){var e=sr.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open?.(r)},llseek(){throw new sr.ErrnoError(70)}},major:r=>r>>8,minor:r=>255&r,makedev:(r,e)=>r<<8|e,registerDevice(r,e){sr.devices[r]={stream_ops:e}},getDevice:r=>sr.devices[r],getMounts(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push(...n.mounts)}return e},syncfs(r,e){"function"==typeof r&&(e=r,r=!1),sr.syncFSRequests++,sr.syncFSRequests>1&&k(`warning: ${sr.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=sr.getMounts(sr.root.mount),n=0;function o(r){return sr.syncFSRequests--,e(r)}function a(r){if(r)return a.errored?void 0:(a.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach(e=>{if(!e.type.syncfs)return a(null);e.type.syncfs(e,r,a)})},mount(r,e,t){var n,o="/"===t,a=!t;if(o&&sr.root)throw new sr.ErrnoError(10);if(!o&&!a){var i=sr.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,sr.isMountpoint(n))throw new sr.ErrnoError(10);if(!sr.isDir(n.mode))throw new sr.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?sr.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(r){var e=sr.lookupPath(r,{follow_mount:!1});if(!sr.isMountpoint(e.node))throw new sr.ErrnoError(28);var t=e.node,n=t.mounted,o=sr.getMounts(n);Object.keys(sr.nameTable).forEach(r=>{for(var e=sr.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&sr.destroyNode(e),e=t}}),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(r,e)=>r.node_ops.lookup(r,e),mknod(r,e,t){var n=sr.lookupPath(r,{parent:!0}).node,o=V.basename(r);if(!o)throw new sr.ErrnoError(28);if("."===o||".."===o)throw new sr.ErrnoError(20);var a=sr.mayCreate(n,o);if(a)throw new sr.ErrnoError(a);if(!n.node_ops.mknod)throw new sr.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},statfs:r=>sr.statfsNode(sr.lookupPath(r,{follow:!0}).node),statfsStream:r=>sr.statfsNode(r.node),statfsNode(r){var e={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:sr.nextInode,ffree:sr.nextInode-1,fsid:42,flags:2,namelen:255};return r.node_ops.statfs&&Object.assign(e,r.node_ops.statfs(r.mount.opts.root)),e},create:(r,e=438)=>(e&=4095,e|=32768,sr.mknod(r,e,0)),mkdir:(r,e=511)=>(e&=1023,e|=16384,sr.mknod(r,e,0)),mkdirTree(r,e){var t=r.split("/"),n="";for(var o of t)if(o){(n||V.isAbs(r))&&(n+="/"),n+=o;try{sr.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:(r,e,t)=>(void 0===t&&(t=e,e=438),e|=8192,sr.mknod(r,e,t)),symlink(r,e){if(!q.resolve(r))throw new sr.ErrnoError(44);var t=sr.lookupPath(e,{parent:!0}).node;if(!t)throw new sr.ErrnoError(44);var n=V.basename(e),o=sr.mayCreate(t,n);if(o)throw new sr.ErrnoError(o);if(!t.node_ops.symlink)throw new sr.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename(r,e){var t,n,o=V.dirname(r),a=V.dirname(e),i=V.basename(r),s=V.basename(e);if(t=sr.lookupPath(r,{parent:!0}).node,n=sr.lookupPath(e,{parent:!0}).node,!t||!n)throw new sr.ErrnoError(44);if(t.mount!==n.mount)throw new sr.ErrnoError(75);var u,l=sr.lookupNode(t,i),d=q.relative(r,a);if("."!==d.charAt(0))throw new sr.ErrnoError(28);if("."!==(d=q.relative(e,o)).charAt(0))throw new sr.ErrnoError(55);try{u=sr.lookupNode(n,s)}catch(r){}if(l!==u){var c=sr.isDir(l.mode),f=sr.mayDelete(t,i,c);if(f)throw new sr.ErrnoError(f);if(f=u?sr.mayDelete(n,s,c):sr.mayCreate(n,s))throw new sr.ErrnoError(f);if(!t.node_ops.rename)throw new sr.ErrnoError(63);if(sr.isMountpoint(l)||u&&sr.isMountpoint(u))throw new sr.ErrnoError(10);if(n!==t&&(f=sr.nodePermissions(t,"w")))throw new sr.ErrnoError(f);sr.hashRemoveNode(l);try{t.node_ops.rename(l,n,s),l.parent=n}catch(r){throw r}finally{sr.hashAddNode(l)}}},rmdir(r){var e=sr.lookupPath(r,{parent:!0}).node,t=V.basename(r),n=sr.lookupNode(e,t),o=sr.mayDelete(e,t,!0);if(o)throw new sr.ErrnoError(o);if(!e.node_ops.rmdir)throw new sr.ErrnoError(63);if(sr.isMountpoint(n))throw new sr.ErrnoError(10);e.node_ops.rmdir(e,t),sr.destroyNode(n)},readdir(r){var e=sr.lookupPath(r,{follow:!0}).node;return sr.checkOpExists(e.node_ops.readdir,54)(e)},unlink(r){var e=sr.lookupPath(r,{parent:!0}).node;if(!e)throw new sr.ErrnoError(44);var t=V.basename(r),n=sr.lookupNode(e,t),o=sr.mayDelete(e,t,!1);if(o)throw new sr.ErrnoError(o);if(!e.node_ops.unlink)throw new sr.ErrnoError(63);if(sr.isMountpoint(n))throw new sr.ErrnoError(10);e.node_ops.unlink(e,t),sr.destroyNode(n)},readlink(r){var e=sr.lookupPath(r).node;if(!e)throw new sr.ErrnoError(44);if(!e.node_ops.readlink)throw new sr.ErrnoError(28);return e.node_ops.readlink(e)},stat(r,e){var t=sr.lookupPath(r,{follow:!e}).node;return sr.checkOpExists(t.node_ops.getattr,63)(t)},fstat(r){var e=sr.getStreamChecked(r),t=e.node,n=e.stream_ops.getattr,o=n?e:t;return n??=t.node_ops.getattr,sr.checkOpExists(n,63),n(o)},lstat:r=>sr.stat(r,!0),doChmod(r,e,t,n){sr.doSetAttr(r,e,{mode:4095&t|-4096&e.mode,ctime:Date.now(),dontFollow:n})},chmod(r,e,t){var n;n="string"==typeof r?sr.lookupPath(r,{follow:!t}).node:r,sr.doChmod(null,n,e,t)},lchmod(r,e){sr.chmod(r,e,!0)},fchmod(r,e){var t=sr.getStreamChecked(r);sr.doChmod(t,t.node,e,!1)},doChown(r,e,t){sr.doSetAttr(r,e,{timestamp:Date.now(),dontFollow:t})},chown(r,e,t,n){var o;o="string"==typeof r?sr.lookupPath(r,{follow:!n}).node:r,sr.doChown(null,o,n)},lchown(r,e,t){sr.chown(r,e,t,!0)},fchown(r,e,t){var n=sr.getStreamChecked(r);sr.doChown(n,n.node,!1)},doTruncate(r,e,t){if(sr.isDir(e.mode))throw new sr.ErrnoError(31);if(!sr.isFile(e.mode))throw new sr.ErrnoError(28);var n=sr.nodePermissions(e,"w");if(n)throw new sr.ErrnoError(n);sr.doSetAttr(r,e,{size:t,timestamp:Date.now()})},truncate(r,e){if(e<0)throw new sr.ErrnoError(28);var t;t="string"==typeof r?sr.lookupPath(r,{follow:!0}).node:r,sr.doTruncate(null,t,e)},ftruncate(r,e){var t=sr.getStreamChecked(r);if(e<0||!(2097155&t.flags))throw new sr.ErrnoError(28);sr.doTruncate(t,t.node,e)},utime(r,e,t){var n=sr.lookupPath(r,{follow:!0}).node;sr.checkOpExists(n.node_ops.setattr,63)(n,{atime:e,mtime:t})},open(r,e,t=438){if(""===r)throw new sr.ErrnoError(44);var o,a;if(t=64&(e="string"==typeof e?(r=>{var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===e)throw new Error(`Unknown file open mode: ${r}`);return e})(e):e)?4095&t|32768:0,"object"==typeof r)o=r;else{a=r.endsWith("/");var i=sr.lookupPath(r,{follow:!(131072&e),noent_okay:!0});o=i.node,r=i.path}var s=!1;if(64&e)if(o){if(128&e)throw new sr.ErrnoError(20)}else{if(a)throw new sr.ErrnoError(31);o=sr.mknod(r,511|t,0),s=!0}if(!o)throw new sr.ErrnoError(44);if(sr.isChrdev(o.mode)&&(e&=-513),65536&e&&!sr.isDir(o.mode))throw new sr.ErrnoError(54);if(!s){var u=sr.mayOpen(o,e);if(u)throw new sr.ErrnoError(u)}512&e&&!s&&sr.truncate(o,0),e&=-131713;var l=sr.createStream({node:o,path:sr.getPath(o),flags:e,seekable:!0,position:0,stream_ops:o.stream_ops,ungotten:[],error:!1});return l.stream_ops.open&&l.stream_ops.open(l),s&&sr.chmod(o,511&t),!n.logReadFiles||1&e||r in sr.readFiles||(sr.readFiles[r]=1),l},close(r){if(sr.isClosed(r))throw new sr.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{sr.closeStream(r.fd)}r.fd=null},isClosed:r=>null===r.fd,llseek(r,e,t){if(sr.isClosed(r))throw new sr.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new sr.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new sr.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read(r,e,t,n,o){if(n<0||o<0)throw new sr.ErrnoError(28);if(sr.isClosed(r))throw new sr.ErrnoError(8);if(1==(2097155&r.flags))throw new sr.ErrnoError(8);if(sr.isDir(r.node.mode))throw new sr.ErrnoError(31);if(!r.stream_ops.read)throw new sr.ErrnoError(28);var a=void 0!==o;if(a){if(!r.seekable)throw new sr.ErrnoError(70)}else o=r.position;var i=r.stream_ops.read(r,e,t,n,o);return a||(r.position+=i),i},write(r,e,t,n,o,a){if(n<0||o<0)throw new sr.ErrnoError(28);if(sr.isClosed(r))throw new sr.ErrnoError(8);if(!(2097155&r.flags))throw new sr.ErrnoError(8);if(sr.isDir(r.node.mode))throw new sr.ErrnoError(31);if(!r.stream_ops.write)throw new sr.ErrnoError(28);r.seekable&&1024&r.flags&&sr.llseek(r,0,2);var i=void 0!==o;if(i){if(!r.seekable)throw new sr.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,a);return i||(r.position+=s),s},mmap(r,e,t,n,o){if(2&n&&!(2&o)&&2!=(2097155&r.flags))throw new sr.ErrnoError(2);if(1==(2097155&r.flags))throw new sr.ErrnoError(2);if(!r.stream_ops.mmap)throw new sr.ErrnoError(43);if(!e)throw new sr.ErrnoError(28);return r.stream_ops.mmap(r,e,t,n,o)},msync:(r,e,t,n,o)=>r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0,ioctl(r,e,t){if(!r.stream_ops.ioctl)throw new sr.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile(r,e={}){if(e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error(`Invalid encoding type "${e.encoding}"`);var t=sr.open(r,e.flags),n=sr.stat(r).size,o=new Uint8Array(n);return sr.read(t,o,0,n,0),"utf8"===e.encoding&&(o=G(o)),sr.close(t),o},writeFile(r,e,t={}){t.flags=t.flags||577;var n=sr.open(r,t.flags,t.mode);if("string"==typeof e&&(e=new Uint8Array(Q(e))),!ArrayBuffer.isView(e))throw new Error("Unsupported data type");sr.write(n,e,0,e.byteLength,void 0,t.canOwn),sr.close(n)},cwd:()=>sr.currentPath,chdir(r){var e=sr.lookupPath(r,{follow:!0});if(null===e.node)throw new sr.ErrnoError(44);if(!sr.isDir(e.node.mode))throw new sr.ErrnoError(54);var t=sr.nodePermissions(e.node,"x");if(t)throw new sr.ErrnoError(t);sr.currentPath=e.path},createDefaultDirectories(){sr.mkdir("/tmp"),sr.mkdir("/home"),sr.mkdir("/home/web_user")},createDefaultDevices(){sr.mkdir("/dev"),sr.registerDevice(sr.makedev(1,3),{read:()=>0,write:(r,e,t,n,o)=>n,llseek:()=>0}),sr.mkdev("/dev/null",sr.makedev(1,3)),Z.register(sr.makedev(5,0),Z.default_tty_ops),Z.register(sr.makedev(6,0),Z.default_tty1_ops),sr.mkdev("/dev/tty",sr.makedev(5,0)),sr.mkdev("/dev/tty1",sr.makedev(6,0));var r=new Uint8Array(1024),e=0,t=()=>(0===e&&(H(r),e=r.byteLength),r[--e]);sr.createDevice("/dev","random",t),sr.createDevice("/dev","urandom",t),sr.mkdir("/dev/shm"),sr.mkdir("/dev/shm/tmp")},createSpecialDirectories(){sr.mkdir("/proc");var r=sr.mkdir("/proc/self");sr.mkdir("/proc/self/fd"),sr.mount({mount(){var e=sr.createNode(r,"fd",16895,73);return e.stream_ops={llseek:er.stream_ops.llseek},e.node_ops={lookup(r,e){var t=+e,n=sr.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path},id:t+1};return o.parent=o,o},readdir:()=>Array.from(sr.streams.entries()).filter(([r,e])=>e).map(([r,e])=>r.toString())},e}},{},"/proc/self/fd")},createStandardStreams(r,e,t){r?sr.createDevice("/dev","stdin",r):sr.symlink("/dev/tty","/dev/stdin"),e?sr.createDevice("/dev","stdout",null,e):sr.symlink("/dev/tty","/dev/stdout"),t?sr.createDevice("/dev","stderr",null,t):sr.symlink("/dev/tty1","/dev/stderr"),sr.open("/dev/stdin",0),sr.open("/dev/stdout",1),sr.open("/dev/stderr",1)},staticInit(){sr.nameTable=new Array(4096),sr.mount(er,{},"/"),sr.createDefaultDirectories(),sr.createDefaultDevices(),sr.createSpecialDirectories(),sr.filesystems={MEMFS:er}},init(r,e,t){sr.initialized=!0,r??=n.stdin,e??=n.stdout,t??=n.stderr,sr.createStandardStreams(r,e,t)},quit(){for(var r of(sr.initialized=!1,sr.streams))r&&sr.close(r)},findObject(r,e){var t=sr.analyzePath(r,e);return t.exists?t.object:null},analyzePath(r,e){try{r=(n=sr.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=sr.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=V.basename(r),n=sr.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(r){t.error=r.errno}return t},createPath(r,e,t,n){r="string"==typeof r?r:sr.getPath(r);for(var o=e.split("/").reverse();o.length;){var a=o.pop();if(a){var i=V.join2(r,a);try{sr.mkdir(i)}catch(r){if(20!=r.errno)throw r}r=i}}return i},createFile(r,e,t,n,o){var a=V.join2("string"==typeof r?r:sr.getPath(r),e),i=ir(n,o);return sr.create(a,i)},createDataFile(r,e,t,n,o,a){var i=e;r&&(r="string"==typeof r?r:sr.getPath(r),i=e?V.join2(r,e):r);var s=ir(n,o),u=sr.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),d=0,c=t.length;d<c;++d)l[d]=t.charCodeAt(d);t=l}sr.chmod(u,146|s);var f=sr.open(u,577);sr.write(f,t,0,t.length,0,a),sr.close(f),sr.chmod(u,s)}},createDevice(r,e,t,n){var o=V.join2("string"==typeof r?r:sr.getPath(r),e),a=ir(!!t,!!n);sr.createDevice.major??=64;var i=sr.makedev(sr.createDevice.major++,0);return sr.registerDevice(i,{open(r){r.seekable=!1},close(r){n?.buffer?.length&&n(10)},read(r,e,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new sr.ErrnoError(29)}if(void 0===u&&0===i)throw new sr.ErrnoError(6);if(null==u)break;i++,e[n+s]=u}return i&&(r.node.atime=Date.now()),i},write(r,e,t,o,a){for(var i=0;i<o;i++)try{n(e[t+i])}catch(r){throw new sr.ErrnoError(29)}return o&&(r.node.mtime=r.node.ctime=Date.now()),i}}),sr.mkdev(o,a,i)},forceLoadFile(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");try{r.contents=(void 0)(r.url),r.usedBytes=r.contents.length}catch(r){throw new sr.ErrnoError(29)}},createLazyFile(r,e,t,n,o){if("undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a={isDevice:!1,url:t},i=sr.createFile(r,e,a,n,o);a.contents?i.contents=a.contents:a.url&&(i.contents=null,i.url=a.url),Object.defineProperties(i,{usedBytes:{get:function(){return this.contents.length}}});var s={};function u(r,e,t,n,o){var a=r.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)e[t+s]=a[o+s];else for(s=0;s<i;s++)e[t+s]=a.get(o+s);return i}return Object.keys(i.stream_ops).forEach(r=>{var e=i.stream_ops[r];s[r]=(...r)=>(sr.forceLoadFile(i),e(...r))}),s.read=(r,e,t,n,o)=>(sr.forceLoadFile(i),u(r,e,t,n,o)),s.mmap=(r,e,t,n,o)=>{sr.forceLoadFile(i);var a=rr();if(!a)throw new sr.ErrnoError(48);return u(r,d,a,e,t),{ptr:a,allocated:!0}},i.stream_ops=s,i}},ur=(r,e)=>r?G(c,r,e):"",lr={DEFAULT_POLLMASK:5,calculateAt(r,e,t){if(V.isAbs(e))return e;var n;if(n=-100===r?sr.cwd():lr.getStreamFromFD(r).path,0==e.length){if(!t)throw new sr.ErrnoError(44);return n}return n+"/"+e},writeStat(r,e){h[r>>2]=e.dev,h[r+4>>2]=e.mode,p[r+8>>2]=e.nlink,h[r+12>>2]=e.uid,h[r+16>>2]=e.gid,h[r+20>>2]=e.rdev,y[r+24>>3]=BigInt(e.size),h[r+32>>2]=4096,h[r+36>>2]=e.blocks;var t=e.atime.getTime(),n=e.mtime.getTime(),o=e.ctime.getTime();return y[r+40>>3]=BigInt(Math.floor(t/1e3)),p[r+48>>2]=t%1e3*1e3*1e3,y[r+56>>3]=BigInt(Math.floor(n/1e3)),p[r+64>>2]=n%1e3*1e3*1e3,y[r+72>>3]=BigInt(Math.floor(o/1e3)),p[r+80>>2]=o%1e3*1e3*1e3,y[r+88>>3]=BigInt(e.ino),0},writeStatFs(r,e){h[r+4>>2]=e.bsize,h[r+40>>2]=e.bsize,h[r+8>>2]=e.blocks,h[r+12>>2]=e.bfree,h[r+16>>2]=e.bavail,h[r+20>>2]=e.files,h[r+24>>2]=e.ffree,h[r+28>>2]=e.fsid,h[r+44>>2]=e.flags,h[r+36>>2]=e.namelen},doMsync(r,e,t,n,o){if(!sr.isFile(e.node.mode))throw new sr.ErrnoError(43);if(2&n)return 0;var a=c.slice(r,r+t);sr.msync(e,a,o,t,n)},getStreamFromFD:r=>sr.getStreamChecked(r),varargs:void 0,getStr:r=>ur(r)},dr={},cr=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function fr(r){return this.fromWireType(p[r>>2])}var mr={},hr={},pr={},vr=class extends Error{constructor(r){super(r),this.name="InternalError"}},wr=r=>{throw new vr(r)},yr=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&wr("Mismatched type converter count");for(var o=0;o<r.length;++o)_r(r[o],n[o])}r.forEach(r=>pr[r]=e);var o=new Array(e.length),a=[],i=0;e.forEach((r,e)=>{hr.hasOwnProperty(r)?o[e]=hr[r]:(a.push(r),mr.hasOwnProperty(r)||(mr[r]=[]),mr[r].push(()=>{o[e]=hr[r],++i===a.length&&n(o)}))}),0===a.length&&n(o)},gr=r=>{for(var e="";;){var t=c[r++];if(!t)return e;e+=String.fromCharCode(t)}},Er=class extends Error{constructor(r){super(r),this.name="BindingError"}},kr=r=>{throw new Er(r)};function _r(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||kr(`type "${n}" must have a positive integer typeid pointer`),hr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;kr(`Cannot register type '${n}' twice`)}if(hr[r]=e,delete pr[r],mr.hasOwnProperty(r)){var o=mr[r];delete mr[r],o.forEach(r=>r())}}(r,e,t)}var br,Fr=(r,e,t)=>{switch(e){case 1:return t?r=>d[r]:r=>c[r];case 2:return t?r=>f[r>>1]:r=>m[r>>1];case 4:return t?r=>h[r>>2]:r=>p[r>>2];case 8:return t?r=>y[r>>3]:r=>g[r>>3];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Ar=[],Pr=[0,1,,1,null,1,!0,1,!1,1],Sr=r=>{r>9&&0===--Pr[r+1]&&(Pr[r]=void 0,Ar.push(r))},Dr=r=>(r||kr(`Cannot use deleted val. handle = ${r}`),Pr[r]),Tr=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Ar.pop()||Pr.length;return Pr[e]=r,Pr[e+1]=1,e}}},Cr={name:"emscripten::val",fromWireType:r=>{var e=Dr(r);return Sr(r),e},toWireType:(r,e)=>Tr(e),argPackAdvance:8,readValueFromPointer:fr,destructorFunction:null},xr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(v[r>>2])};case 8:return function(r){return this.fromWireType(w[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Mr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Nr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||kr(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Rr=(r,e,t)=>{n.hasOwnProperty(r)?((void 0===t||void 0!==n[r].overloadTable&&void 0!==n[r].overloadTable[t])&&kr(`Cannot register public name '${r}' twice`),Nr(n,r,r),n[r].overloadTable.hasOwnProperty(t)&&kr(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),n[r].overloadTable[t]=e):(n[r]=e,n[r].argCount=t)},Br=(r,e,t)=>{n.hasOwnProperty(r)||wr("Replacing nonexistent public symbol"),void 0!==n[r].overloadTable&&void 0!==t?n[r].overloadTable[t]=e:(n[r]=e,n[r].argCount=t)},Or=[],jr=r=>{var e=Or[r];return e||(Or[r]=e=br.get(r)),e},Wr=(r,e,t=!1)=>{r=gr(r);var n=jr(e);return"function"!=typeof n&&kr(`unknown function pointer with signature ${r}: ${e}`),n};class zr extends Error{}var $r,Ir,Ur,Lr,Vr,Hr,qr,Xr=r=>{var e=Ir(r),t=gr(e);return Lr(e),t},Gr=(r,e,t)=>J(r,c,e,t),Yr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Kr=(r,e)=>{for(var t=r>>1,n=t+e/2,o=t;!(o>=n)&&m[o];)++o;if(o-t>16&&Yr)return Yr.decode(m.subarray(t,o));for(var a="",i=t;!(i>=n);++i){var s=m[i];if(0==s)break;a+=String.fromCharCode(s)}return a},Jr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,o=(t-=2)<2*r.length?t/2:r.length,a=0;a<o;++a){var i=r.charCodeAt(a);f[e>>1]=i,e+=2}return f[e>>1]=0,e-n},Qr=r=>2*r.length,Zr=(r,e)=>{for(var t="",n=0;!(n>=e/4);n++){var o=h[r+4*n>>2];if(!o)break;t+=String.fromCodePoint(o)}return t},re=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,o=n+t-4,a=0;a<r.length;++a){var i=r.codePointAt(a);if(i>65535&&a++,h[e>>2]=i,(e+=4)+4>o)break}return h[e>>2]=0,e-n},ee=r=>{for(var e=0,t=0;t<r.length;++t)r.codePointAt(t)>65535&&t++,e+=4;return e},te=(r,e)=>{var t=hr[r];return void 0===t&&kr(`${e} has unknown type ${Xr(r)}`),t},ne=(r,e,t)=>{var n=[],o=r.toWireType(n,t);return n.length&&(p[e>>2]=Tr(n)),o},oe={},ae=r=>{var e=oe[r];return void 0===e?gr(r):e},ie=[],se=()=>globalThis,ue=(r,e)=>Math.ceil(r/e)*e,le=r=>{var e=(r-l.buffer.byteLength+65535)/65536|0;try{return l.grow(e),F(),1}catch(r){}},de={},ce=()=>{if(!ce.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:o||"./this.program"};for(var e in de)void 0===de[e]?delete r[e]:r[e]=de[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);ce.strings=t}return ce.strings},fe=(r,e)=>{r<128?e.push(r):e.push(r%128|128,r>>7)},me=[],he=(r,e)=>{br.set(r,e),Or[r]=br.get(r)};sr.createPreloadedFile=ar,sr.staticInit(),er.doesNotExistError=new sr.ErrnoError(44),er.doesNotExistError.stack="<generic error, no stack>",n.noExitRuntime&&(W=n.noExitRuntime),n.preloadPlugins&&(or=n.preloadPlugins),n.print&&(E=n.print),n.printErr&&(k=n.printErr),n.wasmBinary&&(i=n.wasmBinary),n.arguments&&n.arguments,n.thisProgram&&(o=n.thisProgram),n.addRunDependency=D,n.removeRunDependency=T,n.addFunction=(r,e)=>{var t=(r=>($r||($r=new WeakMap,((r,e)=>{if($r)for(var t=0;t<0+e;t++){var n=jr(t);n&&$r.set(n,t)}})(0,br.length)),$r.get(r)||0))(r);if(t)return t;var n=(()=>{if(me.length)return me.pop();try{br.grow(1)}catch(r){if(!(r instanceof RangeError))throw r;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return br.length-1})();try{he(n,r)}catch(t){if(!(t instanceof TypeError))throw t;var o=((r,e)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function((r=>{for(var e={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==r[0]?[]:[e[r[0]]]},n=1;n<r.length;++n)t.parameters.push(e[r[n]]);return t})(e),r);var t=[1];((r,e)=>{var t=r.slice(0,1),n=r.slice(1),o={i:127,p:127,j:126,f:125,d:124,e:111};for(var a of(e.push(96),fe(n.length,e),n))e.push(o[a]);"v"==t?e.push(0):e.push(1,o[t])})(e,t);var n=[0,97,115,109,1,0,0,0,1];fe(t.length,n),n.push(...t),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var o=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(o,{e:{f:r}}).exports.f})(r,e);he(n,o)}return $r.set(r,n),n},n.UTF8ToString=ur,n.FS_createPreloadedFile=ar,n.FS_unlink=(...r)=>sr.unlink(...r),n.FS_createPath=(...r)=>sr.createPath(...r),n.FS_createDevice=(...r)=>sr.createDevice(...r),n.FS_createDataFile=nr,n.FS_createLazyFile=(...r)=>sr.createLazyFile(...r);var pe={j:(r,e,t)=>{throw new I(r).init(e,t),r},w:function(r,e,t){lr.varargs=t;try{var n=lr.getStreamFromFD(r);switch(e){case 0:if((o=U())<0)return-28;for(;sr.streams[o];)o++;return sr.dupStream(n,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var o=U();return n.flags|=o,0;case 12:return o=L(),f[o+0>>1]=2,0}return-28}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},N:function(r,e,t){lr.varargs=t;try{var n=lr.getStreamFromFD(r);switch(e){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),a=L();h[a>>2]=o.c_iflag||0,h[a+4>>2]=o.c_oflag||0,h[a+8>>2]=o.c_cflag||0,h[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)d[a+i+17]=o.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=L();var s=h[a>>2],u=h[a+4>>2],l=h[a+8>>2],c=h[a+12>>2],m=[];for(i=0;i<32;i++)m.push(d[a+i+17]);return n.tty.ops.ioctl_tcsets(n.tty,e,{c_iflag:s,c_oflag:u,c_cflag:l,c_lflag:c,c_cc:m})}return 0;case 21519:return n.tty?(a=L(),h[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=L(),sr.ioctl(n,e,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var p=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=L(),f[a>>1]=p[0],f[a+2>>1]=p[1]}return 0;default:return-28}}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},O:function(r,e,t,n){lr.varargs=n;try{e=lr.getStr(e),e=lr.calculateAt(r,e);var o=n?U():0;return sr.open(e,t,o).fd}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},P:()=>C(""),z:r=>{var e=dr[r];delete dr[r];var t=e.rawConstructor,n=e.rawDestructor,o=e.fields,a=o.map(r=>r.getterReturnType).concat(o.map(r=>r.setterArgumentType));yr([r],a,r=>{var a={};return o.forEach((e,t)=>{var n=e.fieldName,i=r[t],s=r[t].optional,u=e.getter,l=e.getterContext,d=r[t+o.length],c=e.setter,f=e.setterContext;a[n]={read:r=>i.fromWireType(u(l,r)),write:(r,e)=>{var t=[];c(f,r,d.toWireType(t,e)),cr(t)},optional:s}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in a)e[t]=a[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var o in a)if(!(o in e)&&!a[o].optional)throw new TypeError(`Missing field: "${o}"`);var i=t();for(o in a)a[o].write(i,e[o]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:fr,destructorFunction:n}]})},y:(r,e,t,n,o)=>{e=gr(e);const a=0n===n;let i=r=>r;if(a){const r=8*t;i=e=>BigInt.asUintN(r,e),o=i(o)}_r(r,{name:e,fromWireType:i,toWireType:(r,e)=>("number"==typeof e&&(e=BigInt(e)),e),argPackAdvance:8,readValueFromPointer:Fr(e,t,!a),destructorFunction:null})},U:(r,e,t,n)=>{_r(r,{name:e=gr(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(c[r])},destructorFunction:null})},S:r=>_r(r,Cr),x:(r,e,t)=>{_r(r,{name:e=gr(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:xr(e,t),destructorFunction:null})},n:(r,e,t,n,o,a,i,s)=>{var u=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(p[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1===e?r:r.slice(0,e)})(r=gr(r)),o=Wr(n,o,i),Rr(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||hr[e]||(pr[e]?pr[e].forEach(r):(t.push(e),n[e]=!0))}),new zr(`${r}: `+t.map(Xr).join([", "]))})(`Cannot call ${r} due to unbound types`,u)},e-1),yr([],u,t=>{var n=[t[0],null].concat(t.slice(1));return Br(r,function(r,e,t,n,o){var a=e.length;a<2&&kr("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var i=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),s="void"!==e[0].name,u=a-2,l=new Array(u),d=[],c=[];return Mr(r,function(...r){c.length=0,d.length=1,d[0]=o;for(var t=0;t<u;++t)l[t]=e[t+2].toWireType(c,r[t]),d.push(l[t]);return function(r){if(i)cr(c);else for(var t=2;t<e.length;t++){var n=1===t?void 0:l[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(s)return e[0].fromWireType(r)}(n(...d))})}(r,n,0,o,a),e-1),[]})},d:(r,e,t,n,o)=>{e=gr(e);let a=r=>r;if(0===n){var i=32-8*t;a=r=>r<<i>>>i,o=a(o)}_r(r,{name:e,fromWireType:a,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:Fr(e,t,0!==n),destructorFunction:null})},b:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][e];function o(r){var e=p[r>>2],t=p[r+4>>2];return new n(d.buffer,t,e)}_r(r,{name:t=gr(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},T:(r,e)=>{_r(r,{name:e=gr(e),fromWireType(r){for(var e,t=p[r>>2],n=r+4,o=n,a=0;a<=t;++a){var i=n+a;if(a==t||0==c[i]){var s=ur(o,i-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=i+1}}return Lr(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||kr("Cannot pass non-string to std::string"),t=n?K(e):e.length;var o=Ur(4+t+1),a=o+4;return p[o>>2]=t,n?Gr(e,a,t+1):c.set(e,a),null!==r&&r.push(Lr,o),o},argPackAdvance:8,readValueFromPointer:fr,destructorFunction(r){Lr(r)}})},r:(r,e,t)=>{var n,o,a,i;t=gr(t),2===e?(n=Kr,o=Jr,i=Qr,a=r=>m[r>>1]):4===e&&(n=Zr,o=re,i=ee,a=r=>p[r>>2]),_r(r,{name:t,fromWireType:r=>{for(var t,o=p[r>>2],i=r+4,s=0;s<=o;++s){var u=r+4+s*e;if(s==o||0==a(u)){var l=n(i,u-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=u+e}}return Lr(r),t},toWireType:(r,n)=>{"string"!=typeof n&&kr(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),s=Ur(4+a+e);return p[s>>2]=a/e,o(n,s+4,a+e),null!==r&&r.push(Lr,s),s},argPackAdvance:8,readValueFromPointer:fr,destructorFunction(r){Lr(r)}})},A:(r,e,t,n,o,a)=>{dr[r]={name:gr(e),rawConstructor:Wr(t,n),rawDestructor:Wr(o,a),fields:[]}},c:(r,e,t,n,o,a,i,s,u,l)=>{dr[r].fields.push({fieldName:gr(e),getterReturnType:t,getter:Wr(n,o),getterContext:a,setterArgumentType:i,setter:Wr(s,u),setterContext:l})},V:(r,e)=>{_r(r,{isVoid:!0,name:e=gr(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},R:r=>{do{var e=p[r>>2],t=p[(r+=4)>>2],n=p[(r+=4)>>2];r+=4;var o=ur(e);sr.createPath("/",V.dirname(o),!0,!0),sr.createDataFile(o,null,d.subarray(n,n+t),!0,!0,!0)}while(p[r>>2])},G:()=>{throw 1/0},X:(r,e,t)=>(r=Dr(r),e=te(e,"emval::as"),ne(e,t,r)),B:(r,e,t,n,o)=>(r=ie[r])(e=Dr(e),e[t=ae(t)],n,o),a:Sr,Y:r=>0===r?Tr(se()):(r=ae(r),Tr(se()[r])),C:(r,e,t)=>{var n=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=te(p[e+4*n>>2],`parameter ${n}`);return t})(r,e),o=n.shift();r--;var a=new Array(r),i=`methodCaller<(${n.map(r=>r.name).join(", ")}) => ${o.name}>`;return(r=>{var e=ie.length;return ie.push(r),e})(Mr(i,(e,i,s,u)=>{for(var l=0,d=0;d<r;++d)a[d]=n[d].readValueFromPointer(u+l),l+=n[d].argPackAdvance;var c=1===t?Reflect.construct(i,a):i.apply(e,a);return ne(o,s,c)}))},m:(r,e)=>(r=Dr(r),e=Dr(e),Tr(r[e])),h:r=>{r>9&&(Pr[r+1]+=1)},D:()=>Tr([]),i:r=>Tr(ae(r)),s:r=>{var e=Dr(r);cr(e),Sr(r)},W:(r,e,t)=>{r=Dr(r),e=Dr(e),t=Dr(t),r[e]=t},l:(r,e)=>{var t=(r=te(r,"_emval_take_value")).readValueFromPointer(e);return Tr(t)},I:(r,e,t,n)=>{var o=(new Date).getFullYear(),a=new Date(o,0,1),i=new Date(o,6,1),s=a.getTimezoneOffset(),u=i.getTimezoneOffset(),l=Math.max(s,u);p[r>>2]=60*l,h[e>>2]=Number(s!=u);var d=r=>{var e=r>=0?"-":"+",t=Math.abs(r);return`UTC${e}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},c=d(s),f=d(u);u<s?(Gr(c,t,17),Gr(f,n,17)):(Gr(c,n,17),Gr(f,t,17))},H:r=>{var e=c.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var o=e*(1+.2/n);o=Math.min(o,r+100663296);var a=Math.min(t,ue(Math.max(r,o),65536));if(le(a))return!0}return!1},K:(r,e)=>{var t=0,n=0;for(var o of ce()){var a=e+t;p[r+n>>2]=a,t+=Gr(o,a,1/0)+1,n+=4}return 0},L:(r,e)=>{var t=ce();p[r>>2]=t.length;var n=0;for(var o of t)n+=K(o)+1;return p[e>>2]=n,0},Q:(r,e)=>{(r=>{W||(n.onExit?.(r),_=!0),((r,e)=>{throw e})(0,new M(r))})(r)},u:function(r){try{var e=lr.getStreamFromFD(r);return sr.close(e),0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},M:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=p[e>>2],i=p[e+4>>2];e+=8;var s=sr.read(r,d,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(lr.getStreamFromFD(r),e,t);return p[n>>2]=o,0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},J:function(r,e,t,n){e=(r=>r<-9007199254740992||r>9007199254740992?NaN:Number(r))(e);try{if(isNaN(e))return 61;var o=lr.getStreamFromFD(r);return sr.llseek(o,e,t),y[n>>3]=BigInt(o.position),o.getdents&&0===e&&0===t&&(o.getdents=null),0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},v:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=p[e>>2],i=p[e+4>>2];e+=8;var s=sr.write(r,d,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(lr.getStreamFromFD(r),e,t);return p[n>>2]=o,0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},o:function(r,e){var t=$();try{return jr(r)(e)}catch(r){if(z(t),r!==r+0)throw r;Vr(1,0)}},k:function(r,e,t){var n=$();try{return jr(r)(e,t)}catch(r){if(z(n),r!==r+0)throw r;Vr(1,0)}},p:function(r,e,t,n){var o=$();try{return jr(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}},t:function(r,e,t,n,o){var a=$();try{return jr(r)(e,t,n,o)}catch(r){if(z(a),r!==r+0)throw r;Vr(1,0)}},F:function(r,e,t,n,o,a,i,s,u,l){var d=$();try{return jr(r)(e,t,n,o,a,i,s,u,l)}catch(r){if(z(d),r!==r+0)throw r;Vr(1,0)}},q:function(r){var e=$();try{jr(r)()}catch(r){if(z(e),r!==r+0)throw r;Vr(1,0)}},e:function(r,e){var t=$();try{jr(r)(e)}catch(r){if(z(t),r!==r+0)throw r;Vr(1,0)}},E:function(r,e,t,n){var o=$();try{jr(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}},f:function(r,e,t){var n=$();try{jr(r)(e,t)}catch(r){if(z(n),r!==r+0)throw r;Vr(1,0)}},g:function(r,e,t,n){var o=$();try{jr(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}}},ve=await async function(){function r(r,e){return ve=r.exports,l=ve.Z,F(),br=ve.aa,function(r){Ir=r.$,n._malloc=Ur=r.ba,n._free=Lr=r.ca,Vr=r.da,Hr=r.ea,qr=r.fa}(ve),T(),ve}D();var e={a:pe};return n.instantiateWasm?new Promise((t,o)=>{n.instantiateWasm(e,(e,n)=>{t(r(e))})}):(A??=function(r){return n.locateFile?n.locateFile(r,a):a+r}("lyr3DWorker.wasm"),function(e){return r(e.instance)}(await async function(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){k(`wasm streaming compile failed: ${r}`),k("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await x(r);return await WebAssembly.instantiate(t,e)}catch(r){k(`failed to asynchronously prepare wasm: ${r}`),C(r)}}(e,t)}(i,A,e)))}();return function(){if(n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.shift()()}(),function r(){function e(){n.calledRun=!0,_||(b=!0,n.noFSInit||sr.initialized||sr.init(),ve._(),sr.ignorePermissions=!1,s?.(n),n.onRuntimeInitialized?.(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)B(n.postRun.shift());N(R)}())}P>0?S=r:(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)j(n.preRun.shift());N(O)}(),P>0?S=r:n.setStatus?(n.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>n.setStatus(""),1),e()},1)):e())}(),b?n:new Promise((r,e)=>{s=r,u=e})},r.exports=t,r.exports.default=t),a.exports;var r,e,t}()),s=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))},11053:(r,e,t)=>{t.d(e,{c:()=>n,g:()=>o});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2343],{2343:(r,e,t)=>{t.d(e,{l:()=>s});var n,o=t(11053),a={exports:{}};const i=(0,o.g)(function(){return n||(n=1,r=a,e="undefined"!=typeof document?document.currentScript?.src:void 0,t=async function(r={}){var t,n=r,o="./this.program",a="";try{a=new URL(".",e).href}catch{}t=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var i,s,u,l,d,c,f,m,h,p,v,w,y,g,E=console.log.bind(console),k=console.error.bind(console),_=!1,b=!1;function F(){var r=l.buffer;d=new Int8Array(r),f=new Int16Array(r),n.HEAPU8=c=new Uint8Array(r),m=new Uint16Array(r),h=new Int32Array(r),n.HEAPU32=p=new Uint32Array(r),v=new Float32Array(r),n.HEAPF64=w=new Float64Array(r),y=new BigInt64Array(r),g=new BigUint64Array(r)}var A,P=0,S=null;function D(r){P++,n.monitorRunDependencies?.(P)}function T(r){if(P--,n.monitorRunDependencies?.(P),0==P&&S){var e=S;S=null,e()}}function C(r){n.onAbort?.(r),k(r="Aborted("+r+")"),_=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw u?.(e),e}async function x(r){if(!i)try{var e=await t(r);return new Uint8Array(e)}catch{}return function(r){if(r==A&&i)return new Uint8Array(i);throw"both async and sync fetching of the wasm failed"}(r)}class M{name="ExitStatus";constructor(r){this.message=`Program terminated with exit(${r})`,this.status=r}}var N=r=>{for(;r.length>0;)r.shift()(n)},R=[],B=r=>R.push(r),O=[],j=r=>O.push(r),W=!0,z=r=>Hr(r),$=()=>qr();class I{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){p[this.ptr+4>>2]=r}get_type(){return p[this.ptr+4>>2]}set_destructor(r){p[this.ptr+8>>2]=r}get_destructor(){return p[this.ptr+8>>2]}set_caught(r){r=r?1:0,d[this.ptr+12]=r}get_caught(){return 0!=d[this.ptr+12]}set_rethrown(r){r=r?1:0,d[this.ptr+13]=r}get_rethrown(){return 0!=d[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){p[this.ptr+16>>2]=r}get_adjusted_ptr(){return p[this.ptr+16>>2]}}var U=()=>{var r=h[+lr.varargs>>2];return lr.varargs+=4,r},L=U,V={isAbs:r=>"/"===r.charAt(0),splitPath:r=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(r).slice(1),normalizeArray:(r,e)=>{for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:r=>{var e=V.isAbs(r),t="/"===r.slice(-1);return(r=V.normalizeArray(r.split("/").filter(r=>!!r),!e).join("/"))||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:r=>{var e=V.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.slice(0,-1)),t+n):"."},basename:r=>r&&r.match(/([^\/]+|\/)\/*$/)[1],join:(...r)=>V.normalize(r.join("/")),join2:(r,e)=>V.normalize(r+"/"+e)},H=r=>{(H=r=>crypto.getRandomValues(r))(r)},q={resolve:(...r)=>{for(var e="",t=!1,n=r.length-1;n>=-1&&!t;n--){var o=n>=0?r[n]:sr.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";e=o+"/"+e,t=V.isAbs(o)}return(t?"/":"")+(e=V.normalizeArray(e.split("/").filter(r=>!!r),!t).join("/"))||"."},relative:(r,e)=>{function t(r){for(var e=0;e<r.length&&""===r[e];e++);for(var t=r.length-1;t>=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=q.resolve(r).slice(1),e=q.resolve(e).slice(1);for(var n=t(r.split("/")),o=t(e.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},X="undefined"!=typeof TextDecoder?new TextDecoder:void 0,G=(r,e=0,t=NaN)=>{for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.buffer&&X)return X.decode(r.subarray(e,o));for(var a="";e<o;){var i=r[e++];if(128&i){var s=63&r[e++];if(192!=(224&i)){var u=63&r[e++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&r[e++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},Y=[],K=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},J=(r,e,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<r.length;++i){var s=r.codePointAt(i);if(s<=127){if(t>=a)break;e[t++]=s}else if(s<=2047){if(t+1>=a)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=a)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s,i++}}return e[t]=0,t-o},Q=(r,e,t)=>{var n=K(r)+1,o=new Array(n),a=J(r,o,0,o.length);return o.length=a,o},Z={ttys:[],init(){},shutdown(){},register(r,e){Z.ttys[r]={input:[],output:[],ops:e},sr.registerDevice(r,Z.stream_ops)},stream_ops:{open(r){var e=Z.ttys[r.node.rdev];if(!e)throw new sr.ErrnoError(43);r.tty=e,r.seekable=!1},close(r){r.tty.ops.fsync(r.tty)},fsync(r){r.tty.ops.fsync(r.tty)},read(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new sr.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new sr.ErrnoError(29)}if(void 0===s&&0===a)throw new sr.ErrnoError(6);if(null==s)break;a++,e[t+i]=s}return a&&(r.node.atime=Date.now()),a},write(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new sr.ErrnoError(60);try{for(var a=0;a<n;a++)r.tty.ops.put_char(r.tty,e[t+a])}catch(r){throw new sr.ErrnoError(29)}return n&&(r.node.mtime=r.node.ctime=Date.now()),a}},default_tty_ops:{get_char:r=>(()=>{if(!Y.length){var r=null;if("undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(r=window.prompt("Input: "))&&(r+="\n"),!r)return null;Y=Q(r)}return Y.shift()})(),put_char(r,e){null===e||10===e?(E(G(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output?.length>0&&(E(G(r.output)),r.output=[])},ioctl_tcgets:r=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(r,e,t)=>0,ioctl_tiocgwinsz:r=>[24,80]},default_tty1_ops:{put_char(r,e){null===e||10===e?(k(G(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output?.length>0&&(k(G(r.output)),r.output=[])}}},rr=r=>{C()},er={ops_table:null,mount:r=>er.createNode(null,"/",16895,0),createNode(r,e,t,n){if(sr.isBlkdev(t)||sr.isFIFO(t))throw new sr.ErrnoError(63);er.ops_table||={dir:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr,lookup:er.node_ops.lookup,mknod:er.node_ops.mknod,rename:er.node_ops.rename,unlink:er.node_ops.unlink,rmdir:er.node_ops.rmdir,readdir:er.node_ops.readdir,symlink:er.node_ops.symlink},stream:{llseek:er.stream_ops.llseek}},file:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr},stream:{llseek:er.stream_ops.llseek,read:er.stream_ops.read,write:er.stream_ops.write,mmap:er.stream_ops.mmap,msync:er.stream_ops.msync}},link:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr,readlink:er.node_ops.readlink},stream:{}},chrdev:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr},stream:sr.chrdev_stream_ops}};var o=sr.createNode(r,e,t,n);return sr.isDir(o.mode)?(o.node_ops=er.ops_table.dir.node,o.stream_ops=er.ops_table.dir.stream,o.contents={}):sr.isFile(o.mode)?(o.node_ops=er.ops_table.file.node,o.stream_ops=er.ops_table.file.stream,o.usedBytes=0,o.contents=null):sr.isLink(o.mode)?(o.node_ops=er.ops_table.link.node,o.stream_ops=er.ops_table.link.stream):sr.isChrdev(o.mode)&&(o.node_ops=er.ops_table.chrdev.node,o.stream_ops=er.ops_table.chrdev.stream),o.atime=o.mtime=o.ctime=Date.now(),r&&(r.contents[e]=o,r.atime=r.mtime=r.ctime=o.atime),o},getFileDataAsTypedArray:r=>r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0),expandFileStorage(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr(r){var e={};return e.dev=sr.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,sr.isDir(r.mode)?e.size=4096:sr.isFile(r.mode)?e.size=r.usedBytes:sr.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.atime),e.mtime=new Date(r.mtime),e.ctime=new Date(r.ctime),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr(r,e){for(const t of["mode","atime","mtime","ctime"])null!=e[t]&&(r[t]=e[t]);void 0!==e.size&&er.resizeFileStorage(r,e.size)},lookup(r,e){throw er.doesNotExistError},mknod:(r,e,t,n)=>er.createNode(r,e,t,n),rename(r,e,t){var n;try{n=sr.lookupNode(e,t)}catch(r){}if(n){if(sr.isDir(r.mode))for(var o in n.contents)throw new sr.ErrnoError(55);sr.hashRemoveNode(n)}delete r.parent.contents[r.name],e.contents[t]=r,r.name=t,e.ctime=e.mtime=r.parent.ctime=r.parent.mtime=Date.now()},unlink(r,e){delete r.contents[e],r.ctime=r.mtime=Date.now()},rmdir(r,e){var t=sr.lookupNode(r,e);for(var n in t.contents)throw new sr.ErrnoError(55);delete r.contents[e],r.ctime=r.mtime=Date.now()},readdir:r=>[".","..",...Object.keys(r.contents)],symlink(r,e,t){var n=er.createNode(r,e,41471,0);return n.link=t,n},readlink(r){if(!sr.isLink(r.mode))throw new sr.ErrnoError(28);return r.link}},stream_ops:{read(r,e,t,n,o){var a=r.node.contents;if(o>=r.node.usedBytes)return 0;var i=Math.min(r.node.usedBytes-o,n);if(i>8&&a.subarray)e.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)e[t+s]=a[o+s];return i},write(r,e,t,n,o,a){if(e.buffer===d.buffer&&(a=!1),!n)return 0;var i=r.node;if(i.mtime=i.ctime=Date.now(),e.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=e.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=e.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(e.subarray(t,t+n),o),n}if(er.expandFileStorage(i,o+n),i.contents.subarray&&e.subarray)i.contents.set(e.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=e[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&sr.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new sr.ErrnoError(28);return n},mmap(r,e,t,n,o){if(!sr.isFile(r.node.mode))throw new sr.ErrnoError(43);var a,i,s=r.node.contents;if(2&o||!s||s.buffer!==d.buffer){if(i=!0,!(a=rr()))throw new sr.ErrnoError(48);s&&((t>0||t+e<s.length)&&(s=s.subarray?s.subarray(t,t+e):Array.prototype.slice.call(s,t,t+e)),d.set(s,a))}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(r,e,t,n,o)=>(er.stream_ops.write(r,e,0,n,t,!1),0)}},tr=async r=>{var e=await t(r);return new Uint8Array(e)},nr=(...r)=>sr.createDataFile(...r),or=[],ar=(r,e,t,n,o,a,i,s,u,l)=>{var d=e?q.resolve(V.join2(r,e)):r;function c(t){function c(t){l?.(),s||nr(r,e,t,n,o,u),a?.(),T()}((r,e,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return or.forEach(a=>{o||a.canHandle(e)&&(a.handle(r,e,t,n),o=!0)}),o})(t,d,c,()=>{i?.(),T()})||c(t)}D(),"string"==typeof t?tr(t).then(c,i):c(t)},ir=(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},sr={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,readFiles:{},ErrnoError:class{name="ErrnoError";constructor(r){this.errno=r}},FSStream:class{shared={};get object(){return this.node}set object(r){this.node=r}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return!!(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(r){this.shared.flags=r}get position(){return this.shared.position}set position(r){this.shared.position=r}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.id=sr.nextInode++,this.name=e,this.mode=t,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(r){r?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(r){r?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return sr.isDir(this.mode)}get isDevice(){return sr.isChrdev(this.mode)}},lookupPath(r,e={}){if(!r)throw new sr.ErrnoError(44);e.follow_mount??=!0,V.isAbs(r)||(r=sr.cwd()+"/"+r);r:for(var t=0;t<40;t++){for(var n=r.split("/").filter(r=>!!r),o=sr.root,a="/",i=0;i<n.length;i++){var s=i===n.length-1;if(s&&e.parent)break;if("."!==n[i])if(".."!==n[i]){a=V.join2(a,n[i]);try{o=sr.lookupNode(o,n[i])}catch(r){if(44===r?.errno&&s&&e.noent_okay)return{path:a};throw r}if(!sr.isMountpoint(o)||s&&!e.follow_mount||(o=o.mounted.root),sr.isLink(o.mode)&&(!s||e.follow)){if(!o.node_ops.readlink)throw new sr.ErrnoError(52);var u=o.node_ops.readlink(o);V.isAbs(u)||(u=V.dirname(a)+"/"+u),r=u+"/"+n.slice(i+1).join("/");continue r}}else{if(a=V.dirname(a),sr.isRoot(o)){r=a+"/"+n.slice(i+1).join("/");continue r}o=o.parent}}return{path:a,node:o}}throw new sr.ErrnoError(32)},getPath(r){for(var e;;){if(sr.isRoot(r)){var t=r.mount.mountpoint;return e?"/"!==t[t.length-1]?`${t}/${e}`:t+e:t}e=e?`${r.name}/${e}`:r.name,r=r.parent}},hashName(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%sr.nameTable.length},hashAddNode(r){var e=sr.hashName(r.parent.id,r.name);r.name_next=sr.nameTable[e],sr.nameTable[e]=r},hashRemoveNode(r){var e=sr.hashName(r.parent.id,r.name);if(sr.nameTable[e]===r)sr.nameTable[e]=r.name_next;else for(var t=sr.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode(r,e){var t=sr.mayLookup(r);if(t)throw new sr.ErrnoError(t);for(var n=sr.hashName(r.id,e),o=sr.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===r.id&&a===e)return o}return sr.lookup(r,e)},createNode(r,e,t,n){var o=new sr.FSNode(r,e,t,n);return sr.hashAddNode(o),o},destroyNode(r){sr.hashRemoveNode(r)},isRoot:r=>r===r.parent,isMountpoint:r=>!!r.mounted,isFile:r=>32768==(61440&r),isDir:r=>16384==(61440&r),isLink:r=>40960==(61440&r),isChrdev:r=>8192==(61440&r),isBlkdev:r=>24576==(61440&r),isFIFO:r=>4096==(61440&r),isSocket:r=>!(49152&~r),flagsToPermissionString(r){var e=["r","w","rw"][3&r];return 512&r&&(e+="w"),e},nodePermissions:(r,e)=>sr.ignorePermissions||(!e.includes("r")||292&r.mode)&&(!e.includes("w")||146&r.mode)&&(!e.includes("x")||73&r.mode)?0:2,mayLookup:r=>sr.isDir(r.mode)?sr.nodePermissions(r,"x")||(r.node_ops.lookup?0:2):54,mayCreate(r,e){if(!sr.isDir(r.mode))return 54;try{return sr.lookupNode(r,e),20}catch(r){}return sr.nodePermissions(r,"wx")},mayDelete(r,e,t){var n;try{n=sr.lookupNode(r,e)}catch(r){return r.errno}var o=sr.nodePermissions(r,"wx");if(o)return o;if(t){if(!sr.isDir(n.mode))return 54;if(sr.isRoot(n)||sr.getPath(n)===sr.cwd())return 10}else if(sr.isDir(n.mode))return 31;return 0},mayOpen:(r,e)=>r?sr.isLink(r.mode)?32:sr.isDir(r.mode)&&("r"!==sr.flagsToPermissionString(e)||576&e)?31:sr.nodePermissions(r,sr.flagsToPermissionString(e)):44,checkOpExists(r,e){if(!r)throw new sr.ErrnoError(e);return r},MAX_OPEN_FDS:4096,nextfd(){for(var r=0;r<=sr.MAX_OPEN_FDS;r++)if(!sr.streams[r])return r;throw new sr.ErrnoError(33)},getStreamChecked(r){var e=sr.getStream(r);if(!e)throw new sr.ErrnoError(8);return e},getStream:r=>sr.streams[r],createStream:(r,e=-1)=>(r=Object.assign(new sr.FSStream,r),-1==e&&(e=sr.nextfd()),r.fd=e,sr.streams[e]=r,r),closeStream(r){sr.streams[r]=null},dupStream(r,e=-1){var t=sr.createStream(r,e);return t.stream_ops?.dup?.(t),t},doSetAttr(r,e,t){var n=r?.stream_ops.setattr,o=n?r:e;n??=e.node_ops.setattr,sr.checkOpExists(n,63),n(o,t)},chrdev_stream_ops:{open(r){var e=sr.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open?.(r)},llseek(){throw new sr.ErrnoError(70)}},major:r=>r>>8,minor:r=>255&r,makedev:(r,e)=>r<<8|e,registerDevice(r,e){sr.devices[r]={stream_ops:e}},getDevice:r=>sr.devices[r],getMounts(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push(...n.mounts)}return e},syncfs(r,e){"function"==typeof r&&(e=r,r=!1),sr.syncFSRequests++,sr.syncFSRequests>1&&k(`warning: ${sr.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=sr.getMounts(sr.root.mount),n=0;function o(r){return sr.syncFSRequests--,e(r)}function a(r){if(r)return a.errored?void 0:(a.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach(e=>{if(!e.type.syncfs)return a(null);e.type.syncfs(e,r,a)})},mount(r,e,t){var n,o="/"===t,a=!t;if(o&&sr.root)throw new sr.ErrnoError(10);if(!o&&!a){var i=sr.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,sr.isMountpoint(n))throw new sr.ErrnoError(10);if(!sr.isDir(n.mode))throw new sr.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?sr.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(r){var e=sr.lookupPath(r,{follow_mount:!1});if(!sr.isMountpoint(e.node))throw new sr.ErrnoError(28);var t=e.node,n=t.mounted,o=sr.getMounts(n);Object.keys(sr.nameTable).forEach(r=>{for(var e=sr.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&sr.destroyNode(e),e=t}}),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(r,e)=>r.node_ops.lookup(r,e),mknod(r,e,t){var n=sr.lookupPath(r,{parent:!0}).node,o=V.basename(r);if(!o)throw new sr.ErrnoError(28);if("."===o||".."===o)throw new sr.ErrnoError(20);var a=sr.mayCreate(n,o);if(a)throw new sr.ErrnoError(a);if(!n.node_ops.mknod)throw new sr.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},statfs:r=>sr.statfsNode(sr.lookupPath(r,{follow:!0}).node),statfsStream:r=>sr.statfsNode(r.node),statfsNode(r){var e={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:sr.nextInode,ffree:sr.nextInode-1,fsid:42,flags:2,namelen:255};return r.node_ops.statfs&&Object.assign(e,r.node_ops.statfs(r.mount.opts.root)),e},create:(r,e=438)=>(e&=4095,e|=32768,sr.mknod(r,e,0)),mkdir:(r,e=511)=>(e&=1023,e|=16384,sr.mknod(r,e,0)),mkdirTree(r,e){var t=r.split("/"),n="";for(var o of t)if(o){(n||V.isAbs(r))&&(n+="/"),n+=o;try{sr.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:(r,e,t)=>(void 0===t&&(t=e,e=438),e|=8192,sr.mknod(r,e,t)),symlink(r,e){if(!q.resolve(r))throw new sr.ErrnoError(44);var t=sr.lookupPath(e,{parent:!0}).node;if(!t)throw new sr.ErrnoError(44);var n=V.basename(e),o=sr.mayCreate(t,n);if(o)throw new sr.ErrnoError(o);if(!t.node_ops.symlink)throw new sr.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename(r,e){var t,n,o=V.dirname(r),a=V.dirname(e),i=V.basename(r),s=V.basename(e);if(t=sr.lookupPath(r,{parent:!0}).node,n=sr.lookupPath(e,{parent:!0}).node,!t||!n)throw new sr.ErrnoError(44);if(t.mount!==n.mount)throw new sr.ErrnoError(75);var u,l=sr.lookupNode(t,i),d=q.relative(r,a);if("."!==d.charAt(0))throw new sr.ErrnoError(28);if("."!==(d=q.relative(e,o)).charAt(0))throw new sr.ErrnoError(55);try{u=sr.lookupNode(n,s)}catch(r){}if(l!==u){var c=sr.isDir(l.mode),f=sr.mayDelete(t,i,c);if(f)throw new sr.ErrnoError(f);if(f=u?sr.mayDelete(n,s,c):sr.mayCreate(n,s))throw new sr.ErrnoError(f);if(!t.node_ops.rename)throw new sr.ErrnoError(63);if(sr.isMountpoint(l)||u&&sr.isMountpoint(u))throw new sr.ErrnoError(10);if(n!==t&&(f=sr.nodePermissions(t,"w")))throw new sr.ErrnoError(f);sr.hashRemoveNode(l);try{t.node_ops.rename(l,n,s),l.parent=n}catch(r){throw r}finally{sr.hashAddNode(l)}}},rmdir(r){var e=sr.lookupPath(r,{parent:!0}).node,t=V.basename(r),n=sr.lookupNode(e,t),o=sr.mayDelete(e,t,!0);if(o)throw new sr.ErrnoError(o);if(!e.node_ops.rmdir)throw new sr.ErrnoError(63);if(sr.isMountpoint(n))throw new sr.ErrnoError(10);e.node_ops.rmdir(e,t),sr.destroyNode(n)},readdir(r){var e=sr.lookupPath(r,{follow:!0}).node;return sr.checkOpExists(e.node_ops.readdir,54)(e)},unlink(r){var e=sr.lookupPath(r,{parent:!0}).node;if(!e)throw new sr.ErrnoError(44);var t=V.basename(r),n=sr.lookupNode(e,t),o=sr.mayDelete(e,t,!1);if(o)throw new sr.ErrnoError(o);if(!e.node_ops.unlink)throw new sr.ErrnoError(63);if(sr.isMountpoint(n))throw new sr.ErrnoError(10);e.node_ops.unlink(e,t),sr.destroyNode(n)},readlink(r){var e=sr.lookupPath(r).node;if(!e)throw new sr.ErrnoError(44);if(!e.node_ops.readlink)throw new sr.ErrnoError(28);return e.node_ops.readlink(e)},stat(r,e){var t=sr.lookupPath(r,{follow:!e}).node;return sr.checkOpExists(t.node_ops.getattr,63)(t)},fstat(r){var e=sr.getStreamChecked(r),t=e.node,n=e.stream_ops.getattr,o=n?e:t;return n??=t.node_ops.getattr,sr.checkOpExists(n,63),n(o)},lstat:r=>sr.stat(r,!0),doChmod(r,e,t,n){sr.doSetAttr(r,e,{mode:4095&t|-4096&e.mode,ctime:Date.now(),dontFollow:n})},chmod(r,e,t){var n;n="string"==typeof r?sr.lookupPath(r,{follow:!t}).node:r,sr.doChmod(null,n,e,t)},lchmod(r,e){sr.chmod(r,e,!0)},fchmod(r,e){var t=sr.getStreamChecked(r);sr.doChmod(t,t.node,e,!1)},doChown(r,e,t){sr.doSetAttr(r,e,{timestamp:Date.now(),dontFollow:t})},chown(r,e,t,n){var o;o="string"==typeof r?sr.lookupPath(r,{follow:!n}).node:r,sr.doChown(null,o,n)},lchown(r,e,t){sr.chown(r,e,t,!0)},fchown(r,e,t){var n=sr.getStreamChecked(r);sr.doChown(n,n.node,!1)},doTruncate(r,e,t){if(sr.isDir(e.mode))throw new sr.ErrnoError(31);if(!sr.isFile(e.mode))throw new sr.ErrnoError(28);var n=sr.nodePermissions(e,"w");if(n)throw new sr.ErrnoError(n);sr.doSetAttr(r,e,{size:t,timestamp:Date.now()})},truncate(r,e){if(e<0)throw new sr.ErrnoError(28);var t;t="string"==typeof r?sr.lookupPath(r,{follow:!0}).node:r,sr.doTruncate(null,t,e)},ftruncate(r,e){var t=sr.getStreamChecked(r);if(e<0||!(2097155&t.flags))throw new sr.ErrnoError(28);sr.doTruncate(t,t.node,e)},utime(r,e,t){var n=sr.lookupPath(r,{follow:!0}).node;sr.checkOpExists(n.node_ops.setattr,63)(n,{atime:e,mtime:t})},open(r,e,t=438){if(""===r)throw new sr.ErrnoError(44);var o,a;if(t=64&(e="string"==typeof e?(r=>{var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===e)throw new Error(`Unknown file open mode: ${r}`);return e})(e):e)?4095&t|32768:0,"object"==typeof r)o=r;else{a=r.endsWith("/");var i=sr.lookupPath(r,{follow:!(131072&e),noent_okay:!0});o=i.node,r=i.path}var s=!1;if(64&e)if(o){if(128&e)throw new sr.ErrnoError(20)}else{if(a)throw new sr.ErrnoError(31);o=sr.mknod(r,511|t,0),s=!0}if(!o)throw new sr.ErrnoError(44);if(sr.isChrdev(o.mode)&&(e&=-513),65536&e&&!sr.isDir(o.mode))throw new sr.ErrnoError(54);if(!s){var u=sr.mayOpen(o,e);if(u)throw new sr.ErrnoError(u)}512&e&&!s&&sr.truncate(o,0),e&=-131713;var l=sr.createStream({node:o,path:sr.getPath(o),flags:e,seekable:!0,position:0,stream_ops:o.stream_ops,ungotten:[],error:!1});return l.stream_ops.open&&l.stream_ops.open(l),s&&sr.chmod(o,511&t),!n.logReadFiles||1&e||r in sr.readFiles||(sr.readFiles[r]=1),l},close(r){if(sr.isClosed(r))throw new sr.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{sr.closeStream(r.fd)}r.fd=null},isClosed:r=>null===r.fd,llseek(r,e,t){if(sr.isClosed(r))throw new sr.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new sr.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new sr.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read(r,e,t,n,o){if(n<0||o<0)throw new sr.ErrnoError(28);if(sr.isClosed(r))throw new sr.ErrnoError(8);if(1==(2097155&r.flags))throw new sr.ErrnoError(8);if(sr.isDir(r.node.mode))throw new sr.ErrnoError(31);if(!r.stream_ops.read)throw new sr.ErrnoError(28);var a=void 0!==o;if(a){if(!r.seekable)throw new sr.ErrnoError(70)}else o=r.position;var i=r.stream_ops.read(r,e,t,n,o);return a||(r.position+=i),i},write(r,e,t,n,o,a){if(n<0||o<0)throw new sr.ErrnoError(28);if(sr.isClosed(r))throw new sr.ErrnoError(8);if(!(2097155&r.flags))throw new sr.ErrnoError(8);if(sr.isDir(r.node.mode))throw new sr.ErrnoError(31);if(!r.stream_ops.write)throw new sr.ErrnoError(28);r.seekable&&1024&r.flags&&sr.llseek(r,0,2);var i=void 0!==o;if(i){if(!r.seekable)throw new sr.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,a);return i||(r.position+=s),s},mmap(r,e,t,n,o){if(2&n&&!(2&o)&&2!=(2097155&r.flags))throw new sr.ErrnoError(2);if(1==(2097155&r.flags))throw new sr.ErrnoError(2);if(!r.stream_ops.mmap)throw new sr.ErrnoError(43);if(!e)throw new sr.ErrnoError(28);return r.stream_ops.mmap(r,e,t,n,o)},msync:(r,e,t,n,o)=>r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0,ioctl(r,e,t){if(!r.stream_ops.ioctl)throw new sr.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile(r,e={}){if(e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error(`Invalid encoding type "${e.encoding}"`);var t=sr.open(r,e.flags),n=sr.stat(r).size,o=new Uint8Array(n);return sr.read(t,o,0,n,0),"utf8"===e.encoding&&(o=G(o)),sr.close(t),o},writeFile(r,e,t={}){t.flags=t.flags||577;var n=sr.open(r,t.flags,t.mode);if("string"==typeof e&&(e=new Uint8Array(Q(e))),!ArrayBuffer.isView(e))throw new Error("Unsupported data type");sr.write(n,e,0,e.byteLength,void 0,t.canOwn),sr.close(n)},cwd:()=>sr.currentPath,chdir(r){var e=sr.lookupPath(r,{follow:!0});if(null===e.node)throw new sr.ErrnoError(44);if(!sr.isDir(e.node.mode))throw new sr.ErrnoError(54);var t=sr.nodePermissions(e.node,"x");if(t)throw new sr.ErrnoError(t);sr.currentPath=e.path},createDefaultDirectories(){sr.mkdir("/tmp"),sr.mkdir("/home"),sr.mkdir("/home/web_user")},createDefaultDevices(){sr.mkdir("/dev"),sr.registerDevice(sr.makedev(1,3),{read:()=>0,write:(r,e,t,n,o)=>n,llseek:()=>0}),sr.mkdev("/dev/null",sr.makedev(1,3)),Z.register(sr.makedev(5,0),Z.default_tty_ops),Z.register(sr.makedev(6,0),Z.default_tty1_ops),sr.mkdev("/dev/tty",sr.makedev(5,0)),sr.mkdev("/dev/tty1",sr.makedev(6,0));var r=new Uint8Array(1024),e=0,t=()=>(0===e&&(H(r),e=r.byteLength),r[--e]);sr.createDevice("/dev","random",t),sr.createDevice("/dev","urandom",t),sr.mkdir("/dev/shm"),sr.mkdir("/dev/shm/tmp")},createSpecialDirectories(){sr.mkdir("/proc");var r=sr.mkdir("/proc/self");sr.mkdir("/proc/self/fd"),sr.mount({mount(){var e=sr.createNode(r,"fd",16895,73);return e.stream_ops={llseek:er.stream_ops.llseek},e.node_ops={lookup(r,e){var t=+e,n=sr.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path},id:t+1};return o.parent=o,o},readdir:()=>Array.from(sr.streams.entries()).filter(([r,e])=>e).map(([r,e])=>r.toString())},e}},{},"/proc/self/fd")},createStandardStreams(r,e,t){r?sr.createDevice("/dev","stdin",r):sr.symlink("/dev/tty","/dev/stdin"),e?sr.createDevice("/dev","stdout",null,e):sr.symlink("/dev/tty","/dev/stdout"),t?sr.createDevice("/dev","stderr",null,t):sr.symlink("/dev/tty1","/dev/stderr"),sr.open("/dev/stdin",0),sr.open("/dev/stdout",1),sr.open("/dev/stderr",1)},staticInit(){sr.nameTable=new Array(4096),sr.mount(er,{},"/"),sr.createDefaultDirectories(),sr.createDefaultDevices(),sr.createSpecialDirectories(),sr.filesystems={MEMFS:er}},init(r,e,t){sr.initialized=!0,r??=n.stdin,e??=n.stdout,t??=n.stderr,sr.createStandardStreams(r,e,t)},quit(){for(var r of(sr.initialized=!1,sr.streams))r&&sr.close(r)},findObject(r,e){var t=sr.analyzePath(r,e);return t.exists?t.object:null},analyzePath(r,e){try{r=(n=sr.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=sr.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=V.basename(r),n=sr.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(r){t.error=r.errno}return t},createPath(r,e,t,n){r="string"==typeof r?r:sr.getPath(r);for(var o=e.split("/").reverse();o.length;){var a=o.pop();if(a){var i=V.join2(r,a);try{sr.mkdir(i)}catch(r){if(20!=r.errno)throw r}r=i}}return i},createFile(r,e,t,n,o){var a=V.join2("string"==typeof r?r:sr.getPath(r),e),i=ir(n,o);return sr.create(a,i)},createDataFile(r,e,t,n,o,a){var i=e;r&&(r="string"==typeof r?r:sr.getPath(r),i=e?V.join2(r,e):r);var s=ir(n,o),u=sr.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),d=0,c=t.length;d<c;++d)l[d]=t.charCodeAt(d);t=l}sr.chmod(u,146|s);var f=sr.open(u,577);sr.write(f,t,0,t.length,0,a),sr.close(f),sr.chmod(u,s)}},createDevice(r,e,t,n){var o=V.join2("string"==typeof r?r:sr.getPath(r),e),a=ir(!!t,!!n);sr.createDevice.major??=64;var i=sr.makedev(sr.createDevice.major++,0);return sr.registerDevice(i,{open(r){r.seekable=!1},close(r){n?.buffer?.length&&n(10)},read(r,e,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new sr.ErrnoError(29)}if(void 0===u&&0===i)throw new sr.ErrnoError(6);if(null==u)break;i++,e[n+s]=u}return i&&(r.node.atime=Date.now()),i},write(r,e,t,o,a){for(var i=0;i<o;i++)try{n(e[t+i])}catch(r){throw new sr.ErrnoError(29)}return o&&(r.node.mtime=r.node.ctime=Date.now()),i}}),sr.mkdev(o,a,i)},forceLoadFile(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");try{r.contents=(void 0)(r.url),r.usedBytes=r.contents.length}catch(r){throw new sr.ErrnoError(29)}},createLazyFile(r,e,t,n,o){if("undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a={isDevice:!1,url:t},i=sr.createFile(r,e,a,n,o);a.contents?i.contents=a.contents:a.url&&(i.contents=null,i.url=a.url),Object.defineProperties(i,{usedBytes:{get:function(){return this.contents.length}}});var s={};function u(r,e,t,n,o){var a=r.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)e[t+s]=a[o+s];else for(s=0;s<i;s++)e[t+s]=a.get(o+s);return i}return Object.keys(i.stream_ops).forEach(r=>{var e=i.stream_ops[r];s[r]=(...r)=>(sr.forceLoadFile(i),e(...r))}),s.read=(r,e,t,n,o)=>(sr.forceLoadFile(i),u(r,e,t,n,o)),s.mmap=(r,e,t,n,o)=>{sr.forceLoadFile(i);var a=rr();if(!a)throw new sr.ErrnoError(48);return u(r,d,a,e,t),{ptr:a,allocated:!0}},i.stream_ops=s,i}},ur=(r,e)=>r?G(c,r,e):"",lr={DEFAULT_POLLMASK:5,calculateAt(r,e,t){if(V.isAbs(e))return e;var n;if(n=-100===r?sr.cwd():lr.getStreamFromFD(r).path,0==e.length){if(!t)throw new sr.ErrnoError(44);return n}return n+"/"+e},writeStat(r,e){h[r>>2]=e.dev,h[r+4>>2]=e.mode,p[r+8>>2]=e.nlink,h[r+12>>2]=e.uid,h[r+16>>2]=e.gid,h[r+20>>2]=e.rdev,y[r+24>>3]=BigInt(e.size),h[r+32>>2]=4096,h[r+36>>2]=e.blocks;var t=e.atime.getTime(),n=e.mtime.getTime(),o=e.ctime.getTime();return y[r+40>>3]=BigInt(Math.floor(t/1e3)),p[r+48>>2]=t%1e3*1e3*1e3,y[r+56>>3]=BigInt(Math.floor(n/1e3)),p[r+64>>2]=n%1e3*1e3*1e3,y[r+72>>3]=BigInt(Math.floor(o/1e3)),p[r+80>>2]=o%1e3*1e3*1e3,y[r+88>>3]=BigInt(e.ino),0},writeStatFs(r,e){h[r+4>>2]=e.bsize,h[r+40>>2]=e.bsize,h[r+8>>2]=e.blocks,h[r+12>>2]=e.bfree,h[r+16>>2]=e.bavail,h[r+20>>2]=e.files,h[r+24>>2]=e.ffree,h[r+28>>2]=e.fsid,h[r+44>>2]=e.flags,h[r+36>>2]=e.namelen},doMsync(r,e,t,n,o){if(!sr.isFile(e.node.mode))throw new sr.ErrnoError(43);if(2&n)return 0;var a=c.slice(r,r+t);sr.msync(e,a,o,t,n)},getStreamFromFD:r=>sr.getStreamChecked(r),varargs:void 0,getStr:r=>ur(r)},dr={},cr=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function fr(r){return this.fromWireType(p[r>>2])}var mr={},hr={},pr={},vr=class extends Error{constructor(r){super(r),this.name="InternalError"}},wr=r=>{throw new vr(r)},yr=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&wr("Mismatched type converter count");for(var o=0;o<r.length;++o)_r(r[o],n[o])}r.forEach(r=>pr[r]=e);var o=new Array(e.length),a=[],i=0;e.forEach((r,e)=>{hr.hasOwnProperty(r)?o[e]=hr[r]:(a.push(r),mr.hasOwnProperty(r)||(mr[r]=[]),mr[r].push(()=>{o[e]=hr[r],++i===a.length&&n(o)}))}),0===a.length&&n(o)},gr=r=>{for(var e="";;){var t=c[r++];if(!t)return e;e+=String.fromCharCode(t)}},Er=class extends Error{constructor(r){super(r),this.name="BindingError"}},kr=r=>{throw new Er(r)};function _r(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||kr(`type "${n}" must have a positive integer typeid pointer`),hr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;kr(`Cannot register type '${n}' twice`)}if(hr[r]=e,delete pr[r],mr.hasOwnProperty(r)){var o=mr[r];delete mr[r],o.forEach(r=>r())}}(r,e,t)}var br,Fr=(r,e,t)=>{switch(e){case 1:return t?r=>d[r]:r=>c[r];case 2:return t?r=>f[r>>1]:r=>m[r>>1];case 4:return t?r=>h[r>>2]:r=>p[r>>2];case 8:return t?r=>y[r>>3]:r=>g[r>>3];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Ar=[],Pr=[0,1,,1,null,1,!0,1,!1,1],Sr=r=>{r>9&&0===--Pr[r+1]&&(Pr[r]=void 0,Ar.push(r))},Dr=r=>(r||kr(`Cannot use deleted val. handle = ${r}`),Pr[r]),Tr=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Ar.pop()||Pr.length;return Pr[e]=r,Pr[e+1]=1,e}}},Cr={name:"emscripten::val",fromWireType:r=>{var e=Dr(r);return Sr(r),e},toWireType:(r,e)=>Tr(e),argPackAdvance:8,readValueFromPointer:fr,destructorFunction:null},xr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(v[r>>2])};case 8:return function(r){return this.fromWireType(w[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Mr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Nr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||kr(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Rr=(r,e,t)=>{n.hasOwnProperty(r)?((void 0===t||void 0!==n[r].overloadTable&&void 0!==n[r].overloadTable[t])&&kr(`Cannot register public name '${r}' twice`),Nr(n,r,r),n[r].overloadTable.hasOwnProperty(t)&&kr(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),n[r].overloadTable[t]=e):(n[r]=e,n[r].argCount=t)},Br=(r,e,t)=>{n.hasOwnProperty(r)||wr("Replacing nonexistent public symbol"),void 0!==n[r].overloadTable&&void 0!==t?n[r].overloadTable[t]=e:(n[r]=e,n[r].argCount=t)},Or=[],jr=r=>{var e=Or[r];return e||(Or[r]=e=br.get(r)),e},Wr=(r,e,t=!1)=>{r=gr(r);var n=jr(e);return"function"!=typeof n&&kr(`unknown function pointer with signature ${r}: ${e}`),n};class zr extends Error{}var $r,Ir,Ur,Lr,Vr,Hr,qr,Xr=r=>{var e=Ir(r),t=gr(e);return Lr(e),t},Gr=(r,e,t)=>J(r,c,e,t),Yr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Kr=(r,e)=>{for(var t=r>>1,n=t+e/2,o=t;!(o>=n)&&m[o];)++o;if(o-t>16&&Yr)return Yr.decode(m.subarray(t,o));for(var a="",i=t;!(i>=n);++i){var s=m[i];if(0==s)break;a+=String.fromCharCode(s)}return a},Jr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,o=(t-=2)<2*r.length?t/2:r.length,a=0;a<o;++a){var i=r.charCodeAt(a);f[e>>1]=i,e+=2}return f[e>>1]=0,e-n},Qr=r=>2*r.length,Zr=(r,e)=>{for(var t="",n=0;!(n>=e/4);n++){var o=h[r+4*n>>2];if(!o)break;t+=String.fromCodePoint(o)}return t},re=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,o=n+t-4,a=0;a<r.length;++a){var i=r.codePointAt(a);if(i>65535&&a++,h[e>>2]=i,(e+=4)+4>o)break}return h[e>>2]=0,e-n},ee=r=>{for(var e=0,t=0;t<r.length;++t)r.codePointAt(t)>65535&&t++,e+=4;return e},te=(r,e)=>{var t=hr[r];return void 0===t&&kr(`${e} has unknown type ${Xr(r)}`),t},ne=(r,e,t)=>{var n=[],o=r.toWireType(n,t);return n.length&&(p[e>>2]=Tr(n)),o},oe={},ae=r=>{var e=oe[r];return void 0===e?gr(r):e},ie=[],se=()=>globalThis,ue=(r,e)=>Math.ceil(r/e)*e,le=r=>{var e=(r-l.buffer.byteLength+65535)/65536|0;try{return l.grow(e),F(),1}catch(r){}},de={},ce=()=>{if(!ce.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:o||"./this.program"};for(var e in de)void 0===de[e]?delete r[e]:r[e]=de[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);ce.strings=t}return ce.strings},fe=(r,e)=>{r<128?e.push(r):e.push(r%128|128,r>>7)},me=[],he=(r,e)=>{br.set(r,e),Or[r]=br.get(r)};sr.createPreloadedFile=ar,sr.staticInit(),er.doesNotExistError=new sr.ErrnoError(44),er.doesNotExistError.stack="<generic error, no stack>",n.noExitRuntime&&(W=n.noExitRuntime),n.preloadPlugins&&(or=n.preloadPlugins),n.print&&(E=n.print),n.printErr&&(k=n.printErr),n.wasmBinary&&(i=n.wasmBinary),n.arguments&&n.arguments,n.thisProgram&&(o=n.thisProgram),n.addRunDependency=D,n.removeRunDependency=T,n.addFunction=(r,e)=>{var t=(r=>($r||($r=new WeakMap,((r,e)=>{if($r)for(var t=0;t<0+e;t++){var n=jr(t);n&&$r.set(n,t)}})(0,br.length)),$r.get(r)||0))(r);if(t)return t;var n=(()=>{if(me.length)return me.pop();try{br.grow(1)}catch(r){if(!(r instanceof RangeError))throw r;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return br.length-1})();try{he(n,r)}catch(t){if(!(t instanceof TypeError))throw t;var o=((r,e)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function((r=>{for(var e={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==r[0]?[]:[e[r[0]]]},n=1;n<r.length;++n)t.parameters.push(e[r[n]]);return t})(e),r);var t=[1];((r,e)=>{var t=r.slice(0,1),n=r.slice(1),o={i:127,p:127,j:126,f:125,d:124,e:111};for(var a of(e.push(96),fe(n.length,e),n))e.push(o[a]);"v"==t?e.push(0):e.push(1,o[t])})(e,t);var n=[0,97,115,109,1,0,0,0,1];fe(t.length,n),n.push(...t),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var o=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(o,{e:{f:r}}).exports.f})(r,e);he(n,o)}return $r.set(r,n),n},n.UTF8ToString=ur,n.FS_createPreloadedFile=ar,n.FS_unlink=(...r)=>sr.unlink(...r),n.FS_createPath=(...r)=>sr.createPath(...r),n.FS_createDevice=(...r)=>sr.createDevice(...r),n.FS_createDataFile=nr,n.FS_createLazyFile=(...r)=>sr.createLazyFile(...r);var pe={j:(r,e,t)=>{throw new I(r).init(e,t),r},w:function(r,e,t){lr.varargs=t;try{var n=lr.getStreamFromFD(r);switch(e){case 0:if((o=U())<0)return-28;for(;sr.streams[o];)o++;return sr.dupStream(n,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var o=U();return n.flags|=o,0;case 12:return o=L(),f[o+0>>1]=2,0}return-28}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},N:function(r,e,t){lr.varargs=t;try{var n=lr.getStreamFromFD(r);switch(e){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),a=L();h[a>>2]=o.c_iflag||0,h[a+4>>2]=o.c_oflag||0,h[a+8>>2]=o.c_cflag||0,h[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)d[a+i+17]=o.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=L();var s=h[a>>2],u=h[a+4>>2],l=h[a+8>>2],c=h[a+12>>2],m=[];for(i=0;i<32;i++)m.push(d[a+i+17]);return n.tty.ops.ioctl_tcsets(n.tty,e,{c_iflag:s,c_oflag:u,c_cflag:l,c_lflag:c,c_cc:m})}return 0;case 21519:return n.tty?(a=L(),h[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=L(),sr.ioctl(n,e,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var p=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=L(),f[a>>1]=p[0],f[a+2>>1]=p[1]}return 0;default:return-28}}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},O:function(r,e,t,n){lr.varargs=n;try{e=lr.getStr(e),e=lr.calculateAt(r,e);var o=n?U():0;return sr.open(e,t,o).fd}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},P:()=>C(""),z:r=>{var e=dr[r];delete dr[r];var t=e.rawConstructor,n=e.rawDestructor,o=e.fields,a=o.map(r=>r.getterReturnType).concat(o.map(r=>r.setterArgumentType));yr([r],a,r=>{var a={};return o.forEach((e,t)=>{var n=e.fieldName,i=r[t],s=r[t].optional,u=e.getter,l=e.getterContext,d=r[t+o.length],c=e.setter,f=e.setterContext;a[n]={read:r=>i.fromWireType(u(l,r)),write:(r,e)=>{var t=[];c(f,r,d.toWireType(t,e)),cr(t)},optional:s}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in a)e[t]=a[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var o in a)if(!(o in e)&&!a[o].optional)throw new TypeError(`Missing field: "${o}"`);var i=t();for(o in a)a[o].write(i,e[o]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:fr,destructorFunction:n}]})},y:(r,e,t,n,o)=>{e=gr(e);const a=0n===n;let i=r=>r;if(a){const r=8*t;i=e=>BigInt.asUintN(r,e),o=i(o)}_r(r,{name:e,fromWireType:i,toWireType:(r,e)=>("number"==typeof e&&(e=BigInt(e)),e),argPackAdvance:8,readValueFromPointer:Fr(e,t,!a),destructorFunction:null})},U:(r,e,t,n)=>{_r(r,{name:e=gr(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(c[r])},destructorFunction:null})},S:r=>_r(r,Cr),x:(r,e,t)=>{_r(r,{name:e=gr(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:xr(e,t),destructorFunction:null})},n:(r,e,t,n,o,a,i,s)=>{var u=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(p[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1===e?r:r.slice(0,e)})(r=gr(r)),o=Wr(n,o,i),Rr(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||hr[e]||(pr[e]?pr[e].forEach(r):(t.push(e),n[e]=!0))}),new zr(`${r}: `+t.map(Xr).join([", "]))})(`Cannot call ${r} due to unbound types`,u)},e-1),yr([],u,t=>{var n=[t[0],null].concat(t.slice(1));return Br(r,function(r,e,t,n,o){var a=e.length;a<2&&kr("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var i=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),s="void"!==e[0].name,u=a-2,l=new Array(u),d=[],c=[];return Mr(r,function(...r){c.length=0,d.length=1,d[0]=o;for(var t=0;t<u;++t)l[t]=e[t+2].toWireType(c,r[t]),d.push(l[t]);return function(r){if(i)cr(c);else for(var t=2;t<e.length;t++){var n=1===t?void 0:l[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(s)return e[0].fromWireType(r)}(n(...d))})}(r,n,0,o,a),e-1),[]})},d:(r,e,t,n,o)=>{e=gr(e);let a=r=>r;if(0===n){var i=32-8*t;a=r=>r<<i>>>i,o=a(o)}_r(r,{name:e,fromWireType:a,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:Fr(e,t,0!==n),destructorFunction:null})},b:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][e];function o(r){var e=p[r>>2],t=p[r+4>>2];return new n(d.buffer,t,e)}_r(r,{name:t=gr(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},T:(r,e)=>{_r(r,{name:e=gr(e),fromWireType(r){for(var e,t=p[r>>2],n=r+4,o=n,a=0;a<=t;++a){var i=n+a;if(a==t||0==c[i]){var s=ur(o,i-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=i+1}}return Lr(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||kr("Cannot pass non-string to std::string"),t=n?K(e):e.length;var o=Ur(4+t+1),a=o+4;return p[o>>2]=t,n?Gr(e,a,t+1):c.set(e,a),null!==r&&r.push(Lr,o),o},argPackAdvance:8,readValueFromPointer:fr,destructorFunction(r){Lr(r)}})},r:(r,e,t)=>{var n,o,a,i;t=gr(t),2===e?(n=Kr,o=Jr,i=Qr,a=r=>m[r>>1]):4===e&&(n=Zr,o=re,i=ee,a=r=>p[r>>2]),_r(r,{name:t,fromWireType:r=>{for(var t,o=p[r>>2],i=r+4,s=0;s<=o;++s){var u=r+4+s*e;if(s==o||0==a(u)){var l=n(i,u-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=u+e}}return Lr(r),t},toWireType:(r,n)=>{"string"!=typeof n&&kr(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),s=Ur(4+a+e);return p[s>>2]=a/e,o(n,s+4,a+e),null!==r&&r.push(Lr,s),s},argPackAdvance:8,readValueFromPointer:fr,destructorFunction(r){Lr(r)}})},A:(r,e,t,n,o,a)=>{dr[r]={name:gr(e),rawConstructor:Wr(t,n),rawDestructor:Wr(o,a),fields:[]}},c:(r,e,t,n,o,a,i,s,u,l)=>{dr[r].fields.push({fieldName:gr(e),getterReturnType:t,getter:Wr(n,o),getterContext:a,setterArgumentType:i,setter:Wr(s,u),setterContext:l})},V:(r,e)=>{_r(r,{isVoid:!0,name:e=gr(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},R:r=>{do{var e=p[r>>2],t=p[(r+=4)>>2],n=p[(r+=4)>>2];r+=4;var o=ur(e);sr.createPath("/",V.dirname(o),!0,!0),sr.createDataFile(o,null,d.subarray(n,n+t),!0,!0,!0)}while(p[r>>2])},G:()=>{throw 1/0},X:(r,e,t)=>(r=Dr(r),e=te(e,"emval::as"),ne(e,t,r)),B:(r,e,t,n,o)=>(r=ie[r])(e=Dr(e),e[t=ae(t)],n,o),a:Sr,Y:r=>0===r?Tr(se()):(r=ae(r),Tr(se()[r])),C:(r,e,t)=>{var n=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=te(p[e+4*n>>2],`parameter ${n}`);return t})(r,e),o=n.shift();r--;var a=new Array(r),i=`methodCaller<(${n.map(r=>r.name).join(", ")}) => ${o.name}>`;return(r=>{var e=ie.length;return ie.push(r),e})(Mr(i,(e,i,s,u)=>{for(var l=0,d=0;d<r;++d)a[d]=n[d].readValueFromPointer(u+l),l+=n[d].argPackAdvance;var c=1===t?Reflect.construct(i,a):i.apply(e,a);return ne(o,s,c)}))},m:(r,e)=>(r=Dr(r),e=Dr(e),Tr(r[e])),h:r=>{r>9&&(Pr[r+1]+=1)},D:()=>Tr([]),i:r=>Tr(ae(r)),s:r=>{var e=Dr(r);cr(e),Sr(r)},W:(r,e,t)=>{r=Dr(r),e=Dr(e),t=Dr(t),r[e]=t},l:(r,e)=>{var t=(r=te(r,"_emval_take_value")).readValueFromPointer(e);return Tr(t)},I:(r,e,t,n)=>{var o=(new Date).getFullYear(),a=new Date(o,0,1),i=new Date(o,6,1),s=a.getTimezoneOffset(),u=i.getTimezoneOffset(),l=Math.max(s,u);p[r>>2]=60*l,h[e>>2]=Number(s!=u);var d=r=>{var e=r>=0?"-":"+",t=Math.abs(r);return`UTC${e}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},c=d(s),f=d(u);u<s?(Gr(c,t,17),Gr(f,n,17)):(Gr(c,n,17),Gr(f,t,17))},H:r=>{var e=c.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var o=e*(1+.2/n);o=Math.min(o,r+100663296);var a=Math.min(t,ue(Math.max(r,o),65536));if(le(a))return!0}return!1},K:(r,e)=>{var t=0,n=0;for(var o of ce()){var a=e+t;p[r+n>>2]=a,t+=Gr(o,a,1/0)+1,n+=4}return 0},L:(r,e)=>{var t=ce();p[r>>2]=t.length;var n=0;for(var o of t)n+=K(o)+1;return p[e>>2]=n,0},Q:(r,e)=>{(r=>{W||(n.onExit?.(r),_=!0),((r,e)=>{throw e})(0,new M(r))})(r)},u:function(r){try{var e=lr.getStreamFromFD(r);return sr.close(e),0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},M:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=p[e>>2],i=p[e+4>>2];e+=8;var s=sr.read(r,d,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(lr.getStreamFromFD(r),e,t);return p[n>>2]=o,0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},J:function(r,e,t,n){e=(r=>r<-9007199254740992||r>9007199254740992?NaN:Number(r))(e);try{if(isNaN(e))return 61;var o=lr.getStreamFromFD(r);return sr.llseek(o,e,t),y[n>>3]=BigInt(o.position),o.getdents&&0===e&&0===t&&(o.getdents=null),0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},v:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=p[e>>2],i=p[e+4>>2];e+=8;var s=sr.write(r,d,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(lr.getStreamFromFD(r),e,t);return p[n>>2]=o,0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},o:function(r,e){var t=$();try{return jr(r)(e)}catch(r){if(z(t),r!==r+0)throw r;Vr(1,0)}},k:function(r,e,t){var n=$();try{return jr(r)(e,t)}catch(r){if(z(n),r!==r+0)throw r;Vr(1,0)}},p:function(r,e,t,n){var o=$();try{return jr(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}},t:function(r,e,t,n,o){var a=$();try{return jr(r)(e,t,n,o)}catch(r){if(z(a),r!==r+0)throw r;Vr(1,0)}},F:function(r,e,t,n,o,a,i,s,u,l){var d=$();try{return jr(r)(e,t,n,o,a,i,s,u,l)}catch(r){if(z(d),r!==r+0)throw r;Vr(1,0)}},q:function(r){var e=$();try{jr(r)()}catch(r){if(z(e),r!==r+0)throw r;Vr(1,0)}},e:function(r,e){var t=$();try{jr(r)(e)}catch(r){if(z(t),r!==r+0)throw r;Vr(1,0)}},E:function(r,e,t,n){var o=$();try{jr(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}},f:function(r,e,t){var n=$();try{jr(r)(e,t)}catch(r){if(z(n),r!==r+0)throw r;Vr(1,0)}},g:function(r,e,t,n){var o=$();try{jr(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}}},ve=await async function(){function r(r,e){return ve=r.exports,l=ve.Z,F(),br=ve.aa,function(r){Ir=r.$,n._malloc=Ur=r.ba,n._free=Lr=r.ca,Vr=r.da,Hr=r.ea,qr=r.fa}(ve),T(),ve}D();var e={a:pe};return n.instantiateWasm?new Promise((t,o)=>{n.instantiateWasm(e,(e,n)=>{t(r(e))})}):(A??=function(r){return n.locateFile?n.locateFile(r,a):a+r}("lyr3DWorker.wasm"),function(e){return r(e.instance)}(await async function(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){k(`wasm streaming compile failed: ${r}`),k("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await x(r);return await WebAssembly.instantiate(t,e)}catch(r){k(`failed to asynchronously prepare wasm: ${r}`),C(r)}}(e,t)}(i,A,e)))}();return function(){if(n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.shift()()}(),function r(){function e(){n.calledRun=!0,_||(b=!0,n.noFSInit||sr.initialized||sr.init(),ve._(),sr.ignorePermissions=!1,s?.(n),n.onRuntimeInitialized?.(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)B(n.postRun.shift());N(R)}())}P>0?S=r:(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)j(n.preRun.shift());N(O)}(),P>0?S=r:n.setStatus?(n.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>n.setStatus(""),1),e()},1)):e())}(),b?n:new Promise((r,e)=>{s=r,u=e})},r.exports=t,r.exports.default=t),a.exports;var r,e,t}()),s=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))},11053:(r,e,t)=>{t.d(e,{c:()=>n,g:()=>o});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self?self:{};function o(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5666],{55666:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>u,executeMany:()=>i,isConvex:()=>s});var r=n(91577),o=n(34772);function u(e){const t=(0,o.fromGeometry)(e);return(0,o.toGeometry)((0,r.g7)(t.getGeometry()),t.getSpatialReference())}function i(e,t={}){const{merge:n=!1}=t,[u,i]=(0,o.fromGeometries)(e);return(0,r.zo)(u,n).map(e=>(0,o.toGeometry)(e,i))}function s(e){return(0,r.qT)((0,o.fromGeometryToGXGeometry)(e))}},91577:(e,t,n)=>{n.d(t,{fz:()=>p,g7:()=>f,qT:()=>G,zo:()=>l});var r=n(76061),o=n(55537),u=n(95213),i=n(88885),s=n(79187);class m extends r.G{constructor(e,t,n){super(),t||(0,o.a)(""),this.m_progressTracker=n,this.m_index=-1,this.m_bMerge=e,this.m_bDone=!1,this.m_inputGeometryCursor=t}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const e=c(this.m_inputGeometryCursor);return this.m_bDone=!0,e}return null}if(!this.m_bDone){const e=this.m_inputGeometryCursor.next();if(null!==e)return(0,o.o)(e),(0,o.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),g(e);this.m_bDone=!0}return null}}function c(e,t){const n=new i.C;let r;for(;r=e.next();)(0,o.o)(r),(0,o.c)(r),n.addGeometry(r);return n.getBoundingGeometry()}function g(e,t){if((0,o.c)(e),e.isEmpty())return e.createInstance();const n=e.getGeometryType();if((0,o.f)(n)){const t=e;if(t.isDegenerate(0)){const e=new u.P;return t.queryStart(e),e}if(t.getGeometryType()===o.G.enumLine){const n=new u.P,r=new i.P({vd:e.getDescription()});return t.queryStart(n),r.startPathPoint(n),t.queryEnd(n),r.lineToPoint(n),r}{const n=new i.P({vd:e.getDescription()});return n.addSegment(t,!0),g(n)}}if(n===o.G.enumEnvelope){const t=e,n=new s.Envelope2D;if(t.queryEnvelope(n),n.xmin===n.xmax&&n.ymin===n.ymax){const e=new u.P;return t.queryCornerByVal(0,e),e}if(n.xmin===n.xmax||n.ymin===n.ymax){const n=new u.P,r=new i.P({vd:e.getDescription()});return t.queryCornerByVal(0,n),r.startPathPoint(n),t.queryCornerByVal(1,n),r.lineToPoint(n),r}{const n=new i.a({vd:e.getDescription()});return n.addEnvelope(t,!1),n}}if(n===o.G.enumGeometryCollection)return c((0,i.g)(e,-1));if(a(e)){if(n===o.G.enumMultiPoint){const t=e,n=new u.P;return t.getPointByVal(0,n),n}return e}return(0,o.g)((0,o.i)(n)),(0,i.f)(e)}function a(e,t){if((0,o.c)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===o.G.enumPoint)return!0;if(n===o.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,o.f)(n)){const t=e;if(t.isDegenerate(0))return!1;if(n===o.G.enumLine)return!0;const r=new i.P;return r.addSegment(t,!0),a(r)}if(n===o.G.enumMultiPoint)return 1===e.getPointCount();if(n===o.G.enumPolyline){const t=e;return!t.hasNonLinearSegments()&&1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===o.G.enumGeometryCollection){const t=e;return 1===t.getGeometryCount()&&a(t.getGeometry(0))}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,i.i)(r,0)}const y=new class{getOperatorType(){return 10102}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new m(t,e,n)}execute(e,t){return g(e)}isConvex(e,t){if((0,o.c)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===o.G.enumPoint)return!0;if(n===o.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,o.f)(n)){const t=e;return!t.getStartXY().equals(t.getEndXY())}if(n===o.G.enumMultiPoint)return 1===e.getPointCount();if(n===o.G.enumPolyline){const t=e;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===o.G.enumGeometryCollection){const n=e;return 1===n.getGeometryCount()&&this.isConvex(n.getGeometry(0),t)}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,i.i)(r,0)}constructOrientedMinimumBoundingBox(e,t,n,r,o){(0,i.e)(e,t,n,r,o)}};function f(e){return y.execute(e,null)}function l(e,t){const n=y.executeMany(new r.S(e),t,null);return Array.from(n)}function G(e){return y.isConvex(e,null)}function p(){return y.supportsCurves()}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{27921:(t,n,e)=>{e.d(n,{$Q:()=>z,C:()=>u,Cr:()=>d,LV:()=>c,O_:()=>l,Qj:()=>h,T7:()=>x,Tj:()=>A,Ui:()=>q,_I:()=>I,fA:()=>f,gv:()=>w,lU:()=>M,mN:()=>y,mP:()=>P,mR:()=>p,vE:()=>C,vt:()=>o});var r=e(34727),a=e(38954),s=e(51850),i=(e(87317),e(44280),e(32114));function o(t=N){return[t[0],t[1],t[2],t[3]]}function c(t=N[0],n=N[1],e=N[2],r=N[3]){return f(t,n,e,r,i.Km.get())}function u(t,n){return f(n[0],n[1],n[2],n[3],t)}function h(t){return t}function f(t,n,e,r,a=o()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a}function l(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],a=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*a,e[1]=n[1]*a,e[2]=n[2]*a,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function d(t,n,e,r=o()){const a=e[0]-n[0],s=e[1]-n[1],i=e[2]-n[2],c=t[0]-n[0],u=t[1]-n[1],h=t[2]-n[2],f=s*h-i*u,l=i*c-a*h,d=a*u-s*c,M=f*f+l*l+d*d,m=Math.abs(M-1)>1e-5&&M>1e-12?1/Math.sqrt(M):1;return r[0]=f*m,r[1]=l*m,r[2]=d*m,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function M(t,n,e,r=0,s=Math.floor(e*(1/3)),i=Math.floor(e*(2/3))){if(e<3)return!1;n(v,r);let o=s,c=!1;for(;o<e-1&&!c;)n(_,o),o++,c=!(0,a.m)(v,_);if(!c)return!1;for(o=Math.max(o,i),c=!1;o<e&&!c;)n(g,o),o++,(0,a.e)(b,v,_),(0,a.n)(b,b),(0,a.e)(j,_,g),(0,a.n)(j,j),c=!(0,a.m)(v,g)&&!(0,a.m)(_,g)&&Math.abs((0,a.g)(b,j))<m;return c?(d(v,_,g,t),!0):(0!==r||1!==s||2!==i)&&M(t,n,e,0,1,2)}e(32728);const m=.99619469809,v=(0,s.vt)(),_=(0,s.vt)(),g=(0,s.vt)(),b=(0,s.vt)(),j=(0,s.vt)();function P(t,n,e){return n!==t&&u(t,n),t[3]=-(0,a.g)(t,e),t}function p(t,n,e,r){return(0,a.f)(g,n,t),l(e,g,r)}function q(t,n,e){return null!=n&&S(C(t,n.origin,n.direction,V,e))}function x(t,n,e){return S(C(t,n.origin,n.vector,0,e))}function w(t,n,e){return S(C(t,n.origin,n.vector,1,e))}function A(t,n){return y(t,n)>=0}function z(t,n){const e=(0,a.g)(t,n.ray.direction),r=-y(t,n.ray.origin);if(r<0&&e>=0)return!1;if(e>-1e-6&&e<1e-6)return r>0;if((r<0||e<0)&&!(r<0&&e<0))return!0;const s=r/e;return e>0?s<n.c1&&(n.c1=s):s>n.c0&&(n.c0=s),n.c0<=n.c1}function I(t,n,e){const r=(0,a.j)(i.rq.get(),t,-t[3]),s=function(t,n,e){const r=(0,a.j)(i.rq.get(),t,(0,a.g)(t,n));return(0,a.e)(e,n,r),e}(t,(0,a.e)(i.rq.get(),n,r),i.rq.get());return(0,a.i)(e,s,r),e}function y(t,n){return(0,a.g)(t,n)+t[3]}function S(t){return 0===t||1===t}function C(t,n,e,s,i){const o=(0,a.g)(t,e),c=y(t,n);if(0===o)return c>=0?2:3;let u=-c/o;return 1&s&&(u=(0,r.qE)(u,0,1)),!(4&s)&&u<0||!(8&s)&&u>1?c>=0?2:3:((0,a.i)(i,n,(0,a.j)(i,e,u)),c>=0?0:1)}const N=[0,0,1,0],V=8},32114:(t,n,e)=>{e.d(n,{Rc:()=>d,J8:()=>M,rq:()=>f,Km:()=>l}),e(44208);var r=e(26390),a=e(29242),s=e(9093),i=e(82534),o=e(48163),c=e(51850),u=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(o.vt)}static createVec3f64(){return new h(c.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(a.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(i.vt)}get test(){}}h.createVec2f64();const f=h.createVec3f64(),l=h.createVec4f64(),d=(h.createMat3f64(),h.createMat4f64()),M=h.createQuatf64()},32728:(t,n,e)=>{e.d(n,{nu:()=>i,wp:()=>s}),e(34727);var r=e(38954),a=e(51850);function s(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),a=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),s=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,r.h)(t,e,a,s),t}function i(t,n,e,s=(0,a.vt)()){const i=(0,r.b)(t),u=(0,r.b)(n),h=(0,r.g)(t,n)/(i*u);if(h<.9999999999999999){const a=Math.acos(h),f=((1-e)*i+e*u)/Math.sin(a),l=f/i*Math.sin((1-e)*a),d=f/u*Math.sin(e*a);return(0,r.j)(o,t,l),(0,r.j)(c,n,d),(0,r.i)(s,o,c)}return(0,r.l)(s,t,n,e)}(0,a.vt)(),(0,a.vt)(),(0,a.vt)();const o=(0,a.vt)(),c=(0,a.vt)()},38954:(t,n,e)=>{e.d(n,{A:()=>d,B:()=>h,C:()=>f,D:()=>g,E:()=>O,F:()=>j,G:()=>V,H:()=>E,a:()=>T,b:()=>s,c:()=>_,d:()=>i,e:()=>u,f:()=>w,g:()=>x,h:()=>o,i:()=>c,j:()=>v,l:()=>A,m:()=>N,n:()=>q,o:()=>p,p:()=>z,q:()=>P,r:()=>y,s:()=>b,t:()=>I,u:()=>k,v:()=>l,w:()=>X,x:()=>D,y:()=>m,z:()=>M});var r=e(51850),a=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function l(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function M(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function v(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function _(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(e*e+r*r+a*a)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function j(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function P(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function p(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function q(t,n){const e=n[0],r=n[1],a=n[2];let s=e*e+r*r+a*a;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function x(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function w(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2];return t[0]=a*c-s*o,t[1]=s*i-r*c,t[2]=r*o-a*i,t}function A(t,n,e,r){const a=n[0],s=n[1],i=n[2];return t[0]=a+r*(e[0]-a),t[1]=s+r*(e[1]-s),t[2]=i+r*(e[2]-i),t}function z(t,n,e){const r=n[0],a=n[1],s=n[2];return t[0]=e[0]*r+e[4]*a+e[8]*s+e[12],t[1]=e[1]*r+e[5]*a+e[9]*s+e[13],t[2]=e[2]*r+e[6]*a+e[10]*s+e[14],t}function I(t,n,e){const r=n[0],a=n[1],s=n[2];return t[0]=r*e[0]+a*e[3]+s*e[6],t[1]=r*e[1]+a*e[4]+s*e[7],t[2]=r*e[2]+a*e[5]+s*e[8],t}function y(t,n,e){const r=e[0],a=e[1],s=e[2],i=e[3],o=n[0],c=n[1],u=n[2],h=a*u-s*c,f=s*o-r*u,l=r*c-a*o,d=a*l-s*f,M=s*h-r*l,m=r*f-a*h,v=2*i;return t[0]=o+h*v+2*d,t[1]=c+f*v+2*M,t[2]=u+l*v+2*m,t}const S=(0,r.vt)(),C=(0,r.vt)();function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function V(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],i=n[0],o=n[1],c=n[2],u=(0,a.FD)();return Math.abs(e-i)<=u*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-c)<=u*Math.max(1,Math.abs(s),Math.abs(c))}function O(t,n,e){const r=e[0]-n[0],a=e[1]-n[1],s=e[2]-n[2];let i=r*r+a*a+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=a*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=u,F=h,Q=f,E=g,X=b,k=s,D=j;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:c,angle:function(t,n){q(S,t),q(C,n);const e=x(S,C);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,a,s){const i=1-s,o=i*i,c=s*s,u=o*i,h=3*s*o,f=3*c*i,l=c*s;return t[0]=n[0]*u+e[0]*h+r[0]*f+a[0]*l,t[1]=n[1]*u+e[1]*h+r[1]*f+a[1]*l,t[2]=n[2]*u+e[2]*h+r[2]*f+a[2]*l,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:i,cross:w,crossAndNormalize:function(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2],u=a*c-s*o,h=s*i-r*c,f=r*o-a*i,l=Math.sqrt(u*u+h*h+f*f);return t[0]=u/l,t[1]=h/l,t[2]=f/l,t},direction:O,dist:E,distance:g,div:Q,divide:f,dot:x,equals:V,exactEquals:N,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,a,s){const i=s*s,o=i*(2*s-3)+1,c=i*(s-2)+s,u=i*(s-1),h=i*(3-2*s);return t[0]=n[0]*o+e[0]*c+r[0]*u+a[0]*h,t[1]=n[1]*o+e[1]*c+r[1]*u+a[1]*h,t[2]=n[2]*o+e[2]*c+r[2]*u+a[2]*h,t},inverse:p,len:k,length:s,lerp:A,max:m,min:M,mul:F,multiply:h,negate:P,normalize:q,random:function(t,n=1){const e=a.Ov,r=2*e()*Math.PI,s=2*e()-1,i=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=s*n,t},rotateX:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[0],s[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),s[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),s[1]=a[1],s[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const a=[],s=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],s[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),s[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),s[2]=a[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:v,scaleAndAdd:_,set:o,sign:d,sqrDist:X,sqrLen:D,squaredDistance:b,squaredLength:j,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:u,transformMat3:I,transformMat4:z,transformQuat:y},Symbol.toStringTag,{value:"Module"}))},44280:(t,n,e)=>{e.d(n,{EJ:()=>c,g7:()=>o,gr:()=>i});var r=e(34727),a=e(38954),s=e(51850);function i(t,n){return(0,a.g)(t,n)/(0,a.b)(t)}function o(t,n){const e=(0,a.g)(t,n)/((0,a.b)(t)*(0,a.b)(n));return-(0,r.XM)(e)}function c(t,n,e){(0,a.n)(u,t),(0,a.n)(h,n);const s=(0,a.g)(u,h),i=(0,r.XM)(s),o=(0,a.f)(u,u,h);return(0,a.g)(o,e)<0?2*Math.PI-i:i}const u=(0,s.vt)(),h=(0,s.vt)()},46610:(t,n,e)=>{e.d(n,{K:()=>r,n:()=>a});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class a extends r{constructor(t,n,e,r=!1,a=e){super(t,e,a),this.indices=n,this.exclusive=r}}},48163:(t,n,e)=>{function r(){return[0,0]}function a(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function i(){return s(1,1)}function o(){return s(1,0)}function c(){return s(0,1)}e.d(n,{Un:()=>u,fA:()=>s,o8:()=>a,vt:()=>r});const u=i(),h=o(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:h,UNIT_Y:f,ZEROS:[0,0],clone:a,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:s,ones:i,unitX:o,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>u});var r=e(34727),a=e(58083),s=e(51850);function i(t,n,e){const r=Math.sin(t),a=Math.cos(t),s=Math.sin(n),i=Math.cos(n),o=e;return o[0]=-r,o[4]=-s*a,o[8]=i*a,o[12]=0,o[1]=a,o[5]=-s*r,o[9]=i*r,o[13]=0,o[2]=0,o[6]=i,o[10]=s,o[14]=0,o[3]=0,o[7]=0,o[11]=0,o[15]=1,o}var o=e(37539),c=e(21325);function u(t,n,e,r){const s=(0,o.Tp)(t,r);if(null==s)return!1;const u=s.source.spatialReferenceId,M=s.dest.spatialReferenceId;if(u===M&&!h(M)&&(0!==u||(0,c.aI)(t,r)))return(0,a.kN)(e,n),!0;if(h(M)){const t=o.w5[u][10],r=o.w5[10][M];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,d,0),i(f*l[0],f*l[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const m=h(u);if((3===M||11===M||2===M||5===M)&&(2===u||m||3===u||5===u)){const t=o.w5[u][10],r=o.w5[10][M];return null!=t&&null!=r&&(t(n,0,l,0),r(l,0,d,0),m?function(t,n,e){i(t,n,e),(0,a.mg)(e,e)}(f*l[0],f*l[1],e):(0,a.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function h(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),l=(0,s.vt)(),d=(0,s.vt)()},57005:(t,n,e)=>{e.d(n,{ab:()=>bt,gm:()=>yt});var r=e(77690),a=e(29242),s=e(9093),i=e(67026),o=e(82534),c=e(38954),u=e(51850),h=e(87317),f=e(91829),l=e(73941),d=e(98764),M=e(48353),m=e(9762),v=e(37539),_=e(27921),g=e(21325),b=e(32114),j=e(48163),P=e(46610);const p=1e-6,q=(0,u.vt)(),x=(0,u.vt)();function w(t,n,e,r,a,s,i,o,c,u){return function(t,n,e){let r=_t(t.maxVert[0],t.minVert[0]),a=0;for(let n=1;n<7;++n){const e=_t(t.maxVert[n],t.minVert[n]);e>r&&(r=e,a=n)}dt(n,t.minVert[a]),dt(e,t.maxVert[a])}(t,r,a),_t(r,a)<p?1:(ft(i,r,a),mt(i,i),function(t,n,e,r){const{data:a,size:s}=t;let i=Number.NEGATIVE_INFINITY,o=0;for(let t=0;t<a.length;t+=s){T[0]=a[t]-n[0],T[1]=a[t+1]-n[1],T[2]=a[t+2]-n[2];const r=e[0]*T[0]+e[1]*T[1]+e[2]*T[2],s=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],c=T[0]*T[0]+T[1]*T[1]+T[2]*T[2]-r*r/s;c>i&&(i=c,o=t)}return dt(r,a,o),i}(n,r,i,s)<p?2:(ft(o,a,s),mt(o,o),ft(c,s,r),mt(c,c),Mt(e,o,i),mt(e,e),Y(n,e,i,o,c,u),0))}const A=(0,u.vt)(),z=(0,u.vt)(),I=(0,u.vt)(),y=(0,u.vt)(),S=(0,u.vt)(),C=(0,u.vt)(),N=(0,u.vt)(),V=(0,u.vt)();function O(t,n,e,r,a,s,i,o,c){(function(t,n,e,r,a){!function(t,n,e,r,a){const{data:s,size:i}=t;dt(r,s),dt(a,r),e[0]=gt(Z,n),e[1]=e[0];for(let t=i;t<s.length;t+=i){const i=s[t]*n[0]+s[t+1]*n[1]+s[t+2]*n[2];i<e[0]&&(e[0]=i,dt(r,s,t)),i>e[1]&&(e[1]=i,dt(a,s,t))}}(t,n,F,a,r);const s=gt(e,n);F[1]-p<=s&&(r[0]=void 0),F[0]+p>=s&&(a[0]=void 0)})(t,n,e,A,z),void 0!==A[0]&&(ft(I,A,e),mt(I,I),ft(y,A,r),mt(y,y),ft(S,A,a),mt(S,S),Mt(C,y,s),mt(C,C),Mt(N,S,i),mt(N,N),Mt(V,I,o),mt(V,V),Y(t,C,s,y,I,c),Y(t,N,i,S,y,c),Y(t,V,o,I,S,c)),void 0!==z[0]&&(ft(I,z,e),mt(I,I),ft(y,z,r),mt(y,y),ft(S,z,a),mt(S,S),Mt(C,y,s),mt(C,C),Mt(N,S,i),mt(N,N),Mt(V,I,o),mt(V,V),Y(t,C,s,y,I,c),Y(t,N,i,S,y,c),Y(t,V,o,I,S,c))}const T=[0,0,0],F=(0,j.vt)(),Q=(0,u.vt)(),E=(0,u.vt)(),X=(0,u.vt)(),k=(0,u.vt)(),D=(0,u.vt)(),R=(0,u.vt)();function Y(t,n,e,r,a,s){if(vt(n)<p)return;Mt(Q,e,n),Mt(E,r,n),Mt(X,a,n),B(t,n,F),D[1]=F[0],k[1]=F[1],R[1]=k[1]-D[1];const i=[e,r,a],o=[Q,E,X];for(let e=0;e<3;++e){B(t,i[e],F),D[0]=F[0],k[0]=F[1],B(t,o[e],F),D[2]=F[0],k[2]=F[1],R[0]=k[0]-D[0],R[2]=k[2]-D[2];const r=ut(R);r<s.quality&&(dt(s.b0,i[e]),dt(s.b1,n),dt(s.b2,o[e]),s.quality=r)}}const Z=(0,u.vt)();function B(t,n,e){const{data:r,size:a}=t;e[0]=Number.POSITIVE_INFINITY,e[1]=Number.NEGATIVE_INFINITY;for(let t=0;t<r.length;t+=a){const a=r[t]*n[0]+r[t+1]*n[1]+r[t+2]*n[2];e[0]=Math.min(e[0],a),e[1]=Math.max(e[1],a)}}function U(t,n,e){e.center=t,e.halfSize=(0,c.j)(n,n,.5),e.quaternion=o.zK}const H=(0,u.vt)(),K=(0,u.vt)(),L=(0,u.vt)(),G=(0,u.vt)(),W=(0,u.vt)(),J=(0,u.vt)();function $(t,n,e){dt(H,n),Math.abs(n[0])>Math.abs(n[1])&&Math.abs(n[0])>Math.abs(n[2])?H[0]=0:Math.abs(n[1])>Math.abs(n[2])?H[1]=0:H[2]=0,vt(H)<p&&(H[0]=H[1]=H[2]=1),Mt(K,n,H),mt(K,K),Mt(L,n,K),mt(L,L),tt(t,n,K,L,G,W),ft(J,W,G),it(n,K,L,G,W,J,e)}function tt(t,n,e,r,a,s){B(t,n,F),a[0]=F[0],s[0]=F[1],B(t,e,F),a[1]=F[0],s[1]=F[1],B(t,r,F),a[2]=F[0],s[2]=F[1]}const nt=(0,u.vt)(),et=(0,u.vt)(),rt=(0,u.vt)(),at=(0,a.fA)(1,0,0,0,1,0,0,0,1),st=(0,o.vt)();function it(t,n,e,r,a,s,i){at[0]=t[0],at[1]=t[1],at[2]=t[2],at[3]=n[0],at[4]=n[1],at[5]=n[2],at[6]=e[0],at[7]=e[1],at[8]=e[2],i.quaternion=function(t,n){const e=n[0]+n[4]+n[8];if(e>0){let r=Math.sqrt(e+1);t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r}else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const r=(e+1)%3,a=(e+2)%3;let s=Math.sqrt(n[3*e+e]-n[3*r+r]-n[3*a+a]+1);t[e]=.5*s,s=.5/s,t[3]=(n[3*r+a]-n[3*a+r])*s,t[r]=(n[3*r+e]+n[3*e+r])*s,t[a]=(n[3*a+e]+n[3*e+a])*s}return t}(st,at),ht(nt,r,a),lt(nt,nt,.5),lt(et,t,nt[0]),lt(rt,n,nt[1]),ht(et,et,rt),lt(rt,e,nt[2]),i.center=(0,c.i)(et,et,rt),i.halfSize=(0,c.j)(nt,s,.5)}class ot{constructor(t){this.minVert=new Array(7),this.maxVert=new Array(7),this.buffer=new ArrayBuffer(448);let n=0;this.minProj=new Float64Array(this.buffer,n,7),n+=56,this.maxProj=new Float64Array(this.buffer,n,7),n+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,n,3),n+=24;for(let t=0;t<7;++t)this.minProj[t]=Number.POSITIVE_INFINITY,this.maxProj[t]=Number.NEGATIVE_INFINITY;const e=new Array(7),r=new Array(7),{data:a,size:s}=t;for(let t=0;t<a.length;t+=s){let n=a[t];n<this.minProj[0]&&(this.minProj[0]=n,e[0]=t),n>this.maxProj[0]&&(this.maxProj[0]=n,r[0]=t),n=a[t+1],n<this.minProj[1]&&(this.minProj[1]=n,e[1]=t),n>this.maxProj[1]&&(this.maxProj[1]=n,r[1]=t),n=a[t+2],n<this.minProj[2]&&(this.minProj[2]=n,e[2]=t),n>this.maxProj[2]&&(this.maxProj[2]=n,r[2]=t),n=a[t]+a[t+1]+a[t+2],n<this.minProj[3]&&(this.minProj[3]=n,e[3]=t),n>this.maxProj[3]&&(this.maxProj[3]=n,r[3]=t),n=a[t]+a[t+1]-a[t+2],n<this.minProj[4]&&(this.minProj[4]=n,e[4]=t),n>this.maxProj[4]&&(this.maxProj[4]=n,r[4]=t),n=a[t]-a[t+1]+a[t+2],n<this.minProj[5]&&(this.minProj[5]=n,e[5]=t),n>this.maxProj[5]&&(this.maxProj[5]=n,r[5]=t),n=a[t]-a[t+1]-a[t+2],n<this.minProj[6]&&(this.minProj[6]=n,e[6]=t),n>this.maxProj[6]&&(this.maxProj[6]=n,r[6]=t)}for(let t=0;t<7;++t){let n=e[t];dt(this.minVert[t],a,n),n=r[t],dt(this.maxVert[t],a,n)}}}class ct{constructor(){this.b0=(0,u.fA)(1,0,0),this.b1=(0,u.fA)(0,1,0),this.b2=(0,u.fA)(0,0,1),this.quality=0}}function ut(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ht(t,n,e){t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2]}function ft(t,n,e){t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2]}function lt(t,n,e){t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e}function dt(t,n,e=0){t[0]=n[e],t[1]=n[e+1],t[2]=n[e+2]}function Mt(t,n,e){const r=n[0],a=n[1],s=n[2],i=e[0],o=e[1],c=e[2];t[0]=a*c-s*o,t[1]=s*i-r*c,t[2]=r*o-a*i}function mt(t,n){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];if(e>0){const r=1/Math.sqrt(e);t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r}}function vt(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function _t(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function gt(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}class bt{constructor(t=u.uY,n=Zt,e=o.zK){this._data=[t[0],t[1],t[2],n[0],n[1],n[2],e[0],e[1],e[2],e[3]]}clone(){return bt.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){const n=new bt;return n._copyFromData(t),n}static fromJSON(t){return new bt(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let n=0;n<10;++n)this._data[n]=t[n]}get center(){return(0,c.h)(b.rq.get(),this._data[0],this._data[1],this._data[2])}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}set center(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenter(t,n,e){this._data[0]=t,this._data[1]=n,this._data[2]=e}get halfSize(){return(0,c.h)(b.rq.get(),this._data[3],this._data[4],this._data[5])}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}set halfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}get quaternion(){return(0,i.hZ)(b.J8.get(),this._data[6],this._data[7],this._data[8],this._data[9])}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}set quaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){const n=this._data,e=(0,i.hZ)(jt,n[6],n[7],n[8],n[9]);for(let r=0;r<8;++r){const a=t[r];a[0]=(1&r?-1:1)*n[3],a[1]=(2&r?-1:1)*n[4],a[2]=(4&r?-1:1)*n[5],(0,c.r)(a,a,e),a[0]+=n[0],a[1]+=n[1],a[2]+=n[2]}return t}getAxes(t){const n=this._data,e=(0,i.hZ)(jt,n[6],n[7],n[8],n[9]);return(0,c.r)(t[0],[1,0,0],e),(0,c.r)(t[1],[0,1,0],e),(0,c.r)(t[2],[0,0,1],e),t}intersectsFrustum(t){const n=this.center,e=t.planes;for(const t of e){const e=(0,_.Qj)(t),r=this.projectedRadius(e);if((0,c.g)(e,n)+t[3]-r>0)return!1}const r=this.getAxes(kt),a=t.points,s=this.halfSize;for(let t=0;t<3;++t){const e=r[t],i=-(0,c.g)(e,n),o=s[t];let u=!0,h=!0;for(const t of a){const n=(0,c.g)(t,e)+i;u&&=n>o,h&&=n<-o}if(u||h)return!1}if(this.getCorners(Xt).some(n=>t.intersectsPoint(n)))return!0;const i=Ut;for(let t=0;t<3;++t){const e=r[t];i[t]=(0,c.g)(e,n)}if(t.points.some(t=>(t=>{for(let n=0;n<3;++n){const e=r[n],a=s[n],o=(0,c.g)(e,t)-i[n];if(o>a||o<-a)return!1}return!0})(t)))return!0;const o=t.lines,u=Bt;for(let t=0;t<8;++t){const e=o[t].direction;for(const t of r){(0,c.f)(u,e,t);const r=(0,c.u)(u);if(!(r>0))continue;(0,c.j)(u,u,1/r);const s=this.projectedRadius(u),i=(0,c.g)(n,u),o=i-s,h=i+s;let f=!1,l=!1,d=!0;for(const t of a){const n=(0,c.g)(u,t);if(n>h){if(l){d=!1;break}f=!0}else{if(!(n<o)){d=!1;break}if(f){d=!1;break}l=!0}}if(d)return!1}}return!0}doesIntersectFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}get radius(){const t=this._data[3],n=this._data[4],e=this._data[5];return Math.sqrt(t*t+n*n+e*e)}intersectsPoint(t){const n=this.getAxes(kt),e=this.halfSize,{center:r}=this;for(let a=0;a<3;++a){const s=n[a],i=e[a],o=(0,c.g)(s,t)-(0,c.g)(s,r);if(o>i||o<-i)return!1}return!0}intersectSphere(t){const{center:n}=t,e=this._data;qt[0]=e[0]-n[0],qt[1]=e[1]-n[1],qt[2]=e[2]-n[2];const r=this.getQuaternion(Pt);return(0,i.Xr)(jt,r),(0,c.r)(qt,qt,jt),(0,c.v)(qt,qt),xt[0]=Math.min(qt[0],e[3]),xt[1]=Math.min(qt[1],e[4]),xt[2]=Math.min(qt[2],e[5]),(0,c.w)(xt,qt)<t.radius*t.radius}intersectSphereWithMBS(t,n=this.radius){const e=this._data,{center:r}=t;qt[0]=e[0]-r[0],qt[1]=e[1]-r[1],qt[2]=e[2]-r[2];const a=t.radius,s=a+n;return!((0,c.x)(qt)>s*s)&&(jt[0]=-e[6],jt[1]=-e[7],jt[2]=-e[8],jt[3]=e[9],(0,c.r)(qt,qt,jt),(0,c.v)(qt,qt),xt[0]=Math.min(qt[0],e[3]),xt[1]=Math.min(qt[1],e[4]),xt[2]=Math.min(qt[2],e[5]),(0,c.w)(xt,qt)<a*a)}intersectPlane(t){const n=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],e=this.projectedRadius((0,_.Qj)(t));return n>e?1:n<-e?-1:0}intersectRay(t,n,e=0){const r=this._data,a=jt;a[0]=-r[6],a[1]=-r[7],a[2]=-r[8],a[3]=r[9],qt[0]=t[0]-r[0],qt[1]=t[1]-r[1],qt[2]=t[2]-r[2];const s=(0,c.r)(qt,qt,jt),i=(0,c.r)(xt,n,jt);let o=-1/0,u=1/0;const h=this.getHalfSize(Ft);for(let t=0;t<3;t++){const n=s[t],r=i[t],a=h[t]+e;if(Math.abs(r)>1e-6){const t=(a-n)/r,e=(-a-n)/r;o=Math.max(o,Math.min(t,e)),u=Math.min(u,Math.max(t,e))}else if(n>a||n<-a)return!1}return o<=u}projectedArea(t,n,e,a){const s=this.getQuaternion(Pt);(0,i.Xr)(jt,s),qt[0]=t[0]-this._data[0],qt[1]=t[1]-this._data[1],qt[2]=t[2]-this._data[2],(0,c.r)(qt,qt,jt);const o=this.getHalfSize(Ft),u=qt[0]<-o[0]?-1:qt[0]>o[0]?1:0,f=qt[1]<-o[1]?-1:qt[1]>o[1]?1:0,l=qt[2]<-o[2]?-1:qt[2]>o[2]?1:0,d=Math.abs(u)+Math.abs(f)+Math.abs(l);if(0===d)return 1/0;const M=1===d?4:6,m=6*(u+3*f+9*l+13);(0,r.I0)(Qt,s),(0,r.hs)(Qt,Qt,o);const v=this.getCenter(Ot);for(let t=0;t<M;t++){const e=It[m+t];(0,c.h)(qt,((1&e)<<1)-1,(2&e)-1,((4&e)>>1)-1),(0,c.t)(qt,qt,Qt),(0,c.i)(wt,v,qt),wt[3]=1,(0,h.t)(wt,wt,n);const r=1/Math.max(1e-6,wt[3]);zt[2*t]=wt[0]*r,zt[2*t+1]=wt[1]*r}const _=2*M-2;let g=zt[0]*(zt[3]-zt[_+1])+zt[_]*(zt[1]-zt[_-1]);for(let t=2;t<_;t+=2)g+=zt[t]*(zt[t+3]-zt[t-1]);return Math.abs(g)*e*a*.125}projectedRadius(t){const n=this.getQuaternion(Pt);return(0,i.Xr)(jt,n),(0,c.r)(qt,t,jt),Math.abs(qt[0]*this._data[3])+Math.abs(qt[1]*this._data[4])+Math.abs(qt[2]*this._data[5])}minimumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]-this.projectedRadius((0,_.Qj)(t))}maximumDistancePlane(t){return t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3]+this.projectedRadius((0,_.Qj)(t))}toAaBoundingBox(t){const n=this.getQuaternion(Pt),e=(0,r.I0)(Qt,n),a=this._data[3]*Math.abs(e[0])+this._data[4]*Math.abs(e[3])+this._data[5]*Math.abs(e[6]),s=this._data[3]*Math.abs(e[1])+this._data[4]*Math.abs(e[4])+this._data[5]*Math.abs(e[7]),i=this._data[3]*Math.abs(e[2])+this._data[4]*Math.abs(e[5])+this._data[5]*Math.abs(e[8]);t[0]=this._data[0]-a,t[1]=this._data[1]-s,t[2]=this._data[2]-i,t[3]=this._data[0]+a,t[4]=this._data[1]+s,t[5]=this._data[2]+i}transform(t,n,e,r=0,a=(0,d.lO)(e),s=(0,d.lO)(n),o=(0,v.jd)(n,s)){if(e===a)n.isGeographic?function(t,n,e,r,a=(0,d.lO)(e)){const s=(0,l.tO)(e),o=1+Math.max(0,r)/(s.radius+t.centerZ);t.getCenter(Vt),Vt[2]+=r,(0,m.projectBuffer)(Vt,e,0,Vt,a,0),n.center=Vt;const u=t.getQuaternion(Pt);n.quaternion=u,(0,i.Xr)(jt,u),(0,c.h)(Dt,0,0,1),(0,c.r)(Dt,Dt,jt);const h=t.getHalfSize(Ft);(0,c.h)(Dt,h[0]*Math.abs(Dt[0]),h[1]*Math.abs(Dt[1]),h[2]*Math.abs(Dt[2])),(0,c.j)(Dt,Dt,s.inverseFlattening),(0,c.i)(Dt,h,Dt),n.halfSize=(0,c.j)(Dt,Dt,o)}(this,t,n,r,s):function(t,n,e,r,a=(0,d.lO)(e),s=(0,v.jd)(e,a)){t.getCorners(Xt),t.getCenter(Vt),Vt[2]+=r,(0,M.l)(e,Vt,Et,a),n.setCenter(Et[12],Et[13],Et[14]);const o=2*Math.sqrt(1+Et[0]+Et[5]+Et[10]);jt[0]=(Et[6]-Et[9])/o,jt[1]=(Et[8]-Et[2])/o,jt[2]=(Et[1]-Et[4])/o,jt[3]=.25*o;const u=t.getQuaternion(Pt);n.quaternion=(0,i.lw)(jt,jt,u),(0,i.Xr)(jt,jt),(0,c.h)(Rt,0,0,0);const h=n.getCenter(Tt);for(const t of Xt)t[2]+=r,s(t,0,t,0),(0,c.a)(Dt,t,h),(0,c.r)(Dt,Dt,jt),(0,c.v)(Dt,Dt),(0,c.y)(Rt,Rt,Dt);n.halfSize=Rt}(this,t,n,r,s,o);else if(n.isWGS84&&(e.isWebMercator||(0,g.r1)(e)))!function(t,n,e,r,a){n.getCenter(Ot),Ot[2]+=a;const s=(0,d.lO)(e);(0,m.projectBuffer)(Ot,t,0,Ot,s,0),St(s,n,Ot,e,r)}(n,this,e,t,r);else if(n.isWebMercator&&(0,g.r1)(e))!function(t,n,e,r,a){n.getCenter(Ot),Ot[2]+=a,St(t,n,Ot,e,r)}(n,this,e,t,r);else{const a=this.getCenter(Ot);a[2]+=r,(0,m.projectBuffer)(a,n,0,a,e,0),t.center=a,this!==t&&(t.quaternion=this.getQuaternion(Pt),t.halfSize=this.getHalfSize(Ft))}}}const jt=(0,o.vt)(),Pt=(0,o.vt)(),pt=(0,o.vt)(),qt=(0,u.vt)(),xt=(0,u.vt)(),wt=(0,f.vt)();function At(t,n=new bt){return function(t,n){const{data:e,size:r}=t,a=e.length/r;if(a<=0)return;const s=new ot(t);ht(q,s.minProj,s.maxProj),lt(q,q,.5),ft(x,s.maxProj,s.minProj);const i=ut(x),o=new ct;o.quality=i,a<14&&(t=new P.K(new Float64Array(s.buffer,112,42),3));const c=(0,u.vt)(),h=(0,u.vt)(),f=(0,u.vt)(),l=(0,u.vt)(),d=(0,u.vt)(),M=(0,u.vt)(),m=(0,u.vt)();switch(w(s,t,m,c,h,f,l,d,M,o)){case 1:return void U(q,x,n);case 2:return void $(t,l,n)}O(t,m,c,h,f,l,d,M,o),tt(t,o.b0,o.b1,o.b2,G,W);const v=(0,u.vt)();ft(v,W,G),o.quality=ut(v),o.quality<i?it(o.b0,o.b1,o.b2,G,W,v,n):U(q,x,n)}(t,n),n}const zt=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],It=(()=>{const t=new Int8Array(162);let n=0;const e=e=>{for(let r=0;r<e.length;r++)t[n+r]=e[r];n+=6};return e([6,2,3,1,5,4]),e([0,2,3,1,5,4]),e([0,2,3,7,5,4]),e([0,1,3,2,6,4]),e([0,1,3,2,0,0]),e([0,1,5,7,3,2]),e([0,1,3,7,6,4]),e([0,1,3,7,6,2]),e([0,1,5,7,6,2]),e([0,1,5,4,6,2]),e([0,1,5,4,0,0]),e([0,1,3,7,5,4]),e([0,2,6,4,0,0]),e([0,0,0,0,0,0]),e([1,3,7,5,0,0]),e([2,3,7,6,4,0]),e([2,3,7,6,0,0]),e([2,3,1,5,7,6]),e([0,1,5,7,6,2]),e([0,1,5,7,6,4]),e([0,1,3,7,6,4]),e([4,5,7,6,2,0]),e([4,5,7,6,0,0]),e([4,5,1,3,7,6]),e([0,2,3,7,5,4]),e([6,2,3,7,5,4]),e([6,2,3,1,5,4]),t})();function yt(t,n,e,r,a){const s=t.getQuaternion(Pt);a.quaternion=s,(0,i.Xr)(jt,s);const o=t.getCenter(Ot),h=t.getHalfSize(Ft);if(1===r){(0,c.r)(Dt,o,jt),(0,c.v)(Rt,Dt),(0,c.z)(Yt,Rt,h),(0,c.a)(Yt,Rt,Yt);const r=(0,c.b)(Yt);(0,c.i)(Yt,Rt,h);const s=(0,c.b)(Yt);if(r<e)a.center=o,(0,c.h)(Dt,e,e,e),a.halfSize=(0,c.i)(Dt,h,Dt);else{const i=s>0?1+n/s:1,o=r>0?1+e/r:1,u=(o+i)/2,f=(o-i)/2;(0,c.j)(Yt,Rt,f),a.halfSize=(0,c.c)(Yt,Yt,h,u),(0,c.j)(Yt,Rt,u),(0,c.c)(Yt,Yt,h,f),(0,c.A)(Dt,Dt),(0,c.B)(Dt,Yt,Dt);const l=t.getQuaternion(pt);a.center=(0,c.r)(Dt,Dt,l)}}else{a.center=(0,c.c)(Dt,o,u.Cb,(e+n)/2);const t=(0,c.r)(Dt,u.Cb,jt);(0,c.v)(t,t),a.halfSize=(0,c.c)(Rt,h,t,(e-n)/2)}return a}function St(t,n,e,a,s){const i=n.getQuaternion(Pt),o=(0,r.I0)(Qt,i),c=n.getHalfSize(Ft);for(let t=0;t<8;++t){for(let n=0;n<3;++n)Vt[n]=c[n]*(t&1<<n?-1:1);for(let n=0;n<3;++n){let r=e[n];for(let t=0;t<3;++t)r+=Vt[t]*o[3*t+n];Ct[3*t+n]=r}}(0,m.projectBuffer)(Ct,t,0,Ct,a,0,8),At(Nt,s)}const Ct=new Array(24),Nt=new P.K(Ct,3),Vt=(0,u.vt)(),Ot=(0,u.vt)(),Tt=(0,u.vt)(),Ft=(0,u.vt)(),Qt=(0,a.vt)(),Et=(0,s.vt)(),Xt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],kt=[(0,u.vt)(),(0,u.vt)(),(0,u.vt)()],Dt=(0,u.vt)(),Rt=(0,u.vt)(),Yt=(0,u.vt)(),Zt=(0,u.CN)(-1,-1,-1),Bt=(0,u.vt)(),Ut=[0,0,0]},67026:(t,n,e)=>{e.d(n,{A6:()=>m,Xd:()=>h,Xr:()=>d,hZ:()=>_,lw:()=>f,t2:()=>I,x8:()=>u});var r=e(29242),a=e(82534),s=e(51850),i=e(34304),o=e(38954),c=e(87317);function u(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function h(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,i.FD)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],a=n[1],s=n[2],i=n[3],o=e[0],c=e[1],u=e[2],h=e[3];return t[0]=r*h+i*o+a*u-s*c,t[1]=a*h+i*c+s*o-r*u,t[2]=s*h+i*u+r*c-a*o,t[3]=i*h-r*o-a*c-s*u,t}function l(t,n,e,r){const a=n[0],s=n[1],o=n[2],c=n[3];let u,h,f,l,d,M=e[0],m=e[1],v=e[2],_=e[3];return h=a*M+s*m+o*v+c*_,h<0&&(h=-h,M=-M,m=-m,v=-v,_=-_),1-h>(0,i.FD)()?(u=Math.acos(h),f=Math.sin(u),l=Math.sin((1-r)*u)/f,d=Math.sin(r*u)/f):(l=1-r,d=r),t[0]=l*a+d*M,t[1]=l*s+d*m,t[2]=l*o+d*v,t[3]=l*c+d*_,t}function d(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function M(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const a=(e+1)%3,s=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*a+a]-n[3*s+s]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*a+s]-n[3*s+a])*r,t[a]=(n[3*a+e]+n[3*e+a])*r,t[s]=(n[3*s+e]+n[3*e+s])*r}return t}function m(t,n,e,r){const a=.5*Math.PI/180;n*=a,e*=a,r*=a;const s=Math.sin(n),i=Math.cos(n),o=Math.sin(e),c=Math.cos(e),u=Math.sin(r),h=Math.cos(r);return t[0]=s*c*h-i*o*u,t[1]=i*o*h+s*c*u,t[2]=i*c*u-s*o*h,t[3]=i*c*h+s*o*u,t}const v=c.f,_=c.c,g=c.i,b=f,j=c.s,P=c.h,p=c.l,q=c.j,x=q,w=c.d,A=w,z=c.n,I=c.a,y=c.e,S=(0,s.vt)(),C=(0,s.fA)(1,0,0),N=(0,s.fA)(0,1,0),V=(0,a.vt)(),O=(0,a.vt)(),T=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(t,n){const e=n[0],r=n[1],a=n[2];return t[0]=e,t[1]=r,t[2]=a,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-a*a)),t},conjugate:d,copy:v,dot:P,equals:y,exactEquals:I,fromEuler:m,fromMat3:M,getAxisAngle:h,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],a=n[2],s=n[3],i=e*e+r*r+a*a+s*s,o=i?1/i:0;return t[0]=-e*o,t[1]=-r*o,t[2]=-a*o,t[3]=s*o,t},len:x,length:q,lerp:p,mul:b,multiply:f,normalize:z,random:function(t){const n=i.Ov,e=n(),r=n(),a=n(),s=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=s*Math.sin(2*Math.PI*r),t[1]=s*Math.cos(2*Math.PI*r),t[2]=o*Math.sin(2*Math.PI*a),t[3]=o*Math.cos(2*Math.PI*a),t},rotateX:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+i*o,t[1]=a*c+s*o,t[2]=s*c-a*o,t[3]=i*c-r*o,t},rotateY:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c-s*o,t[1]=a*c+i*o,t[2]=s*c+r*o,t[3]=i*c-a*o,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],a=n[1],s=n[2],i=n[3],o=Math.sin(e),c=Math.cos(e);return t[0]=r*c+a*o,t[1]=a*c-r*o,t[2]=s*c+i*o,t[3]=i*c-s*o,t},rotationTo:function(t,n,e){const r=(0,o.g)(n,e);return r<-.999999?((0,o.f)(S,C,n),(0,o.u)(S)<1e-6&&(0,o.f)(S,N,n),(0,o.n)(S,S),u(t,S,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,o.f)(S,n,e),t[0]=S[0],t[1]=S[1],t[2]=S[2],t[3]=1+r,z(t,t))},scale:j,set:_,setAxes:function(t,n,e,r){const a=T;return a[0]=e[0],a[3]=e[1],a[6]=e[2],a[1]=r[0],a[4]=r[1],a[7]=r[2],a[2]=-n[0],a[5]=-n[1],a[8]=-n[2],z(t,M(t,a))},setAxisAngle:u,slerp:l,sqlerp:function(t,n,e,r,a,s){return l(V,n,a,s),l(O,e,r,s),l(t,V,O,2*s*(1-s)),t},sqrLen:A,squaredLength:w,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},82534:(t,n,e)=>{function r(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>a,vt:()=>r,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:a,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,e)=>{e.d(n,{Y0:()=>u,lO:()=>h});var r=e(73941),a=e(16930),s=e(21325);const i=new a.A(r.fv),o=new a.A(r.FY),c=new a.A(r.LJ),u=new a.A(r.Ro);function h(t){const n=f.get(t);if(n)return n;let e=i;if(t)if(t===o)e=o;else if(t===c)e=c;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,s.tl)(n)||(0,s.tl)(r)?e=o:((0,s.ZL)(n)||(0,s.ZL)(r))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===l?e=o:t===d&&(e=c)}}}return f.set(t,e),e}const f=new Map,l=o.wkt.toUpperCase(),d=c.wkt.toUpperCase()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,2163],{4197:(t,n,e)=>{e.d(n,{Vj:()=>h,cj:()=>c,jh:()=>s,l5:()=>u,xm:()=>o});var r=e(34275),i=e(9093);function s(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function c(t){return[...t]}function h(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},9093:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r,i,s,o,u,c,h,a,f,l,m,d,g){return[t,n,e,r,i,s,o,u,c,h,a,f,l,m,d,g]}},Symbol.toStringTag,{value:"Module"}))},28298:(t,n,e)=>{e.d(n,{fz:()=>c,g7:()=>o,zo:()=>u});var r=e(76061),i=(e(55537),e(83661),e(88885),e(79187),e(39117));e(95213);const s=new i.L;function o(t,n,e){return s.execute(t,n,e,null)}function u(t,n){return s.executeMany(new r.S(t),n,null).next()}function c(){return s.supportsCurves()}},56339:(t,n,e)=>{e.d(n,{executeMany:()=>s});var r=e(28298),i=e(34772);function s(t){const[n,e]=(0,i.fromGeometries)(t);return(0,i.toGeometry)((0,r.zo)(n,e),e)}},69397:(t,n,e)=>{e.d(n,{$B:()=>i,Qf:()=>h,Qh:()=>u,RS:()=>s,ez:()=>l,lM:()=>o,qK:()=>f});var r=e(34275);function i(t){return 32+t.length}const s=16;function o(t){if(!t)return 0;let n=f;for(const e in t)t.hasOwnProperty(e)&&(n+=c(t[e],!1));return n}function u(t){if(!t)return 0;if("number"==typeof t[0])return h(t);if(Array.isArray(t))return function(t){const n=t.length;if(0===n||"number"==typeof t[0])return a(t,8);let e=l;for(let r=0;r<n;r++)e+=c(t[r]);return e}(t);let n=f;for(const e in t)t.hasOwnProperty(e)&&(n+=c(t[e]));return n}function c(t,n=!0){switch(typeof t){case"object":return n?u(t):f;case"string":return i(t);case"number":return s;case"boolean":return 4;default:return 8}}function h(...t){return t.reduce((t,n)=>t+(n?(0,r.iu)(n)?n.byteLength+m:Array.isArray(n)?a(n,s):0:0),0)}function a(t,n){return l+t.length*n}const f=32,l=16,m=145},70328:(t,n,e)=>{e.d(n,{BI:()=>I,DC:()=>f,Ej:()=>m,Ie:()=>M,Jt:()=>x,Ne:()=>d,RF:()=>a,aI:()=>A,fA:()=>o,gE:()=>c,hZ:()=>y,iT:()=>l,is:()=>w,qv:()=>b,vI:()=>g,vY:()=>u,v_:()=>_,vt:()=>s,w1:()=>h});var r=e(5443),i=(e(19419),e(4197));function s(t=_){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,n,e,r,i,o,u=s()){return u[0]=t,u[1]=n,u[2]=e,u[3]=r,u[4]=i,u[5]=o,u}function u(t,n=s()){return function(t,n,e,r=s()){return y(r,b),function(t,n,e=0,r=n.length/3){let i=t[0],s=t[1],o=t[2],u=t[3],c=t[4],h=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),s=Math.min(s,n[e+3*t+1]),o=Math.min(o,n[e+3*t+2]),u=Math.max(u,n[e+3*t]),c=Math.max(c,n[e+3*t+1]),h=Math.max(h,n[e+3*t+2]);t[0]=i,t[1]=s,t[2]=o,t[3]=u,t[4]=c,t[5]=h}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,i.jh)(24)){const[e,r,s,o,u,c]=t;return n[0]=e,n[1]=r,n[2]=s,n[3]=e,n[4]=r,n[5]=c,n[6]=e,n[7]=u,n[8]=s,n[9]=e,n[10]=u,n[11]=c,n[12]=o,n[13]=r,n[14]=s,n[15]=o,n[16]=r,n[17]=c,n[18]=o,n[19]=u,n[20]=s,n[21]=o,n[22]=u,n[23]=c,n}function h(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function a(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[3]),t[4]=Math.max(t[4],n[4]),t[5]=Math.max(t[5],n[5])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[0]),t[4]=Math.max(t[4],n[1]),t[5]=Math.max(t[5],n[2])}function m(t,n=[0,0,0]){return n[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),n[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),n[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),n}function d(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function g(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function y(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function M(t){return t?y(t,b):s(b)}function x(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function I(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function w(t){return 6===t.length}function A(t,n,e){if(null==t||null==n)return t===n;if(!w(t)||!w(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const b=[1/0,1/0,1/0,-1/0,-1/0,-1/0],_=[0,0,0,0,0,0];s()},76061:(t,n,e)=>{e.d(n,{G:()=>r,S:()=>i});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class i extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},92722:(t,n,e)=>{e.d(n,{A:()=>i});var r=e(69397);class i{constructor(t=[],n=[],e=!1,r=!1){this.lengths=t??[],this.coords=n??[],this.hasZ=e,this.hasM=r}static fromJSON({lengths:t,coords:n,hasZ:e,hasM:r}){return new i(t,n,e||!1,r||!1)}static fromRect([t,n,e,r]){const s=e-t,o=r-n;return new i([5],[t,n,s,0,0,o,-s,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,n)=>t+n,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,n=0;for(const e of this.lengths){if(e<3)continue;const{stride:r}=this;let i=this.coords[r*n],s=this.coords[r*n+1];for(let o=1;o<e;o+=1){const e=r*(n+o),u=this.coords[e],c=this.coords[e+1];t+=-.5*(u-i)*(c+s),i=u,s=c}n+=e}return t}forEachVertex(t){let n=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:e}=this;for(const r of this.lengths){for(let i=0;i<r;i++){const r=e*(n+i);t(this.coords[r],this.coords[r+1])}n+=r}}deltaDecode(){const t=this.clone(),{coords:n,lengths:e}=t;let r=0;const{stride:i}=this;for(const t of e){for(let e=1;e<t;e++){const t=i*(r+e);n[t]+=n[t-i],n[t+1]+=n[t+1-i]}r+=t}return t}clone(t){if(this.isPoint)return new i([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const n=Array.from(this.lengths),{stride:e,size:r}=this,s=this.coords.slice(0,r*e);return t?(t.set(s),new i(n,t)):new i(n,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:t,size:n}=this;if(2===t)return this;const e=new Array(n*t);for(let n=0,r=0;n<e.length;n+=t)e[r++]=this.coords[n],e[r++]=this.coords[n+1];return new i(this.lengths,e,!1,!1)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,3169,4161,4423,7373,8125],{4197:(t,e,n)=>{n.d(e,{Vj:()=>c,cj:()=>u,jh:()=>i,l5:()=>a,xm:()=>o});var r=n(34275),s=n(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function u(t){return[...t]}function c(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},9093:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(t,e,n,r,s,i,o,a,u,c,h,l,m,f,g,p){return[t,e,n,r,s,i,o,a,u,c,h,l,m,f,g,p]}},Symbol.toStringTag,{value:"Module"}))},60591:(t,e,n)=>{n.d(e,{execute:()=>r.e}),n(4576),n(86211),n(70787),n(78125);var r=n(92523)},64523:(t,e,n)=>{n.d(e,{O:()=>h});var r=n(31635),s=n(76061),i=n(55537),o=n(88885),a=n(95213),u=n(83661),c=n(5247);class h{getOperatorType(){return 10204}supportsCurves(){return!0}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}executeMany(t,e,n,r){return new l(t,e,n,r)}execute(t,e,n,r){return t||(0,i.a)("null param is not allowed."),new l(null,e,n,r).generalize(t)}}class l extends s.G{constructor(t,e,n,r){super(),this.m_pline=null,this.m_point=new a.P,this.m_stack=[],this.m_resultstack=[],this.m_callCount=0,this.m_progressTracker=r,this.m_geoms=t,this.m_maxDeviation=e,this.m_bRemoveDegenerateParts=n}tock(){return!0}getRank(){return 1}next(){const t=this.m_geoms.next();return null===t?null:((0,i.c)(t),this.generalize(t))}getGeometryID(){return this.m_geoms.getGeometryID()}generalize(t){const e=t.getGeometryType();if((0,i.e)(e))return t;if(e===i.G.enumEnvelope){const e=new o.a({vd:t.getDescription()});return e.addEnvelope(t,!1),this.generalize(e)}if((0,i.f)(e)){const e=new o.P({vd:t.getDescription()});return e.addSegment(t,!0),this.generalize(e)}if((0,i.h)(e)||(0,i.t)(""),t.isEmpty()||this.m_maxDeviation<=0)return t;const n=(new c.O).execute(t,0,.05*this.m_maxDeviation,0,this.m_progressTracker);t.hasNonLinearSegments()&&(this.m_maxDeviation*=.95);const s=n,a=t.createInstance();a.getGeometryType()===i.G.enumPolygon&&a.setFillRule(t.getFillRule()),this.m_xy=s.getAttributeStreamRef(0);{const t={stack:[],error:void 0,hasError:!1};try{const e=new o.L;this.m_pline=e,(0,r.mS)(t,(0,u.h)(()=>{this.m_pline=null},!1),!1);for(let t=0,e=s.getPathCount();t<e;t++)this.generalizePath(s.getImpl(),t,a.getImpl())}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}return this.m_resultstack.length=0,this.m_stack.length=0,a}generalizePath(t,e,n){if(t.getPathSize(e)<2)return;this.m_resultstack.length=0,this.m_stack.length=0;const r=t.getPathStart(e),s=t.getPathEnd(e)-1,i=t.isClosedPath(e),o=t.isClosedPathInXYPlane(e);let a=0,c=-1;this.m_stack.push(i?r:s),this.m_stack.push(r);let h=!1,l=!1;for(!this.m_bRemoveDegenerateParts&&o&&(h=!0,l=!0);this.m_stack.length>1;){const e=this.m_stack.at(-1);this.m_stack.pop();const n=this.m_stack.at(-1);let r=t.getXY(e);this.m_pline.setStartXY(r),r=t.getXY(n),this.m_pline.setEndXY(r);const i=[Number.NaN];let o=this.findGreatestDistance(e,n,s,i);o>=0&&(h?h=!1:(l&&i[0]>a&&(a=i[0],c=o),i[0]<=this.m_maxDeviation&&(o=-1))),o>=0?(this.m_stack.push(o),this.m_stack.push(e)):this.m_resultstack.push(e)}i||this.m_resultstack.push(this.m_stack[0]);const m=this.m_resultstack.length;if(m===t.getPathSize(e)&&m===this.m_stack.length)n.addPath(t,e,!0);else if(this.m_resultstack.length>0){if(this.m_bRemoveDegenerateParts&&this.m_resultstack.length<=2){if(i||1===this.m_resultstack.length)return;if(u.P.distance(t.getXY(this.m_resultstack[0]),t.getXY(this.m_resultstack[1]))<=this.m_maxDeviation)return}if(l&&c>=0&&a<=this.m_maxDeviation){const t=this.m_resultstack.at(-1)>c;this.m_resultstack.push(c),t&&(this.m_resultstack[this.m_resultstack.length-2]=(0,u.c)(this.m_resultstack[this.m_resultstack.length-1],this.m_resultstack[this.m_resultstack.length-1]=this.m_resultstack[this.m_resultstack.length-2]))}for(let e=0,r=this.m_resultstack.length;e<r;e++)t.getPointByVal(this.m_resultstack[e],this.m_point),0===e?n.startPathPoint(this.m_point):n.lineToPoint(this.m_point);if(i){for(let t=this.m_resultstack.length;t<3;t++)n.lineToPoint(this.m_point);n.closePathWithLine()}}}findGreatestDistance(t,e,n,r){let s=e-1;e<=t&&(s=n);let i=-1,o=0;const a=new u.P;for(let e=t+1;e<=s;e++){this.m_xy.queryPoint2D(2*e,a);const t=a.x,n=a.y,r=this.m_pline.getClosestCoordinate(a,!1);a.assign(this.m_pline.getCoord2D(r)),a.x-=t,a.y-=n;const s=a.length();s>o&&(i=e,o=s),this.m_callCount++}return r[0]=o,i}}},69397:(t,e,n)=>{n.d(e,{$B:()=>s,Qf:()=>c,Qh:()=>a,RS:()=>i,ez:()=>m,lM:()=>o,qK:()=>l});var r=n(34275);function s(t){return 32+t.length}const i=16;function o(t){if(!t)return 0;let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=u(t[n],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let n=m;for(let r=0;r<e;r++)n+=u(t[r]);return n}(t);let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=u(t[n]));return e}function u(t,e=!0){switch(typeof t){case"object":return e?a(t):l;case"string":return s(t);case"number":return i;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,i):0:0),0)}function h(t,e){return m+t.length*e}const l=32,m=16,f=145},70328:(t,e,n)=>{n.d(e,{BI:()=>x,DC:()=>l,Ej:()=>f,Ie:()=>_,Jt:()=>d,Ne:()=>g,RF:()=>h,aI:()=>P,fA:()=>o,gE:()=>u,hZ:()=>y,iT:()=>m,is:()=>M,qv:()=>v,vI:()=>p,vY:()=>a,v_:()=>k,vt:()=>i,w1:()=>c});var r=n(5443),s=(n(19419),n(4197));function i(t=k){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,s,o,a=i()){return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=s,a[5]=o,a}function a(t,e=i()){return function(t,e,n,r=i()){return y(r,v),function(t,e,n=0,r=e.length/3){let s=t[0],i=t[1],o=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),a=Math.max(a,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function u(t,e=(0,s.jh)(24)){const[n,r,i,o,a,u]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=a,e[8]=i,e[9]=n,e[10]=a,e[11]=u,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=u,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=u,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function m(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function f(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function g(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function p(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function y(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function _(t){return t?y(t,v):i(v)}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function x(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function M(t){return 6===t.length}function P(t,e,n){if(null==t||null==e)return t===e;if(!M(t)||!M(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],k=[0,0,0,0,0,0];i()},70787:(t,e,n)=>{n.d(e,{fz:()=>a,g7:()=>i,zo:()=>o});var r=n(76061);const s=new(n(64523).O);function i(t,e,n){return s.execute(t,e,n,null)}function o(t,e,n){const i=s.executeMany(new r.S(t),e,n,null);return Array.from(i)}function a(){return s.supportsCurves()}},76061:(t,e,n)=>{n.d(e,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class s extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(t,e,n)=>{n.r(e),n.d(e,{fromExtent:()=>d,fromGeometry:()=>_,fromMultipoint:()=>x,fromPoint:()=>M,fromPolygon:()=>P,fromPolyline:()=>v,fromPolylineUsingImportOperator:()=>k,fromSpatialReference:()=>G,getSpatialReference:()=>y,toExtent:()=>w,toGeometry:()=>C,toMultipoint:()=>I,toPoint:()=>V,toPolygon:()=>R,toPolyline:()=>A});var r=n(83661),s=(n(79187),n(55537)),i=n(95213),o=n(88885),a=n(5443),u=n(48526),c=n(86738),h=n(39829),l=n(82799),m=(n(90293),n(34772));const f="_gxVersion",g=2,p=1;function y(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function _(t){switch(t.type){case"point":return M(t);case"multipoint":return x(t);case"polyline":return v(t);case"polygon":return P(t);case"extent":return d(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function d(t){if(!t.getCacheValue(f)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(g,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(p,0,t.zmin,t.zmax),t.setCacheValue(f,e)}return t.getCacheValue(f)}function x(t){if(!t.getCacheValue(f)){const e=new o.M,n=new i.P,r=t.points,s=t.hasM,a=t.hasZ,u=a?3:2;for(let t=0,i=r.length;t<i;t++){const i=r[t];n.setXYCoords(i[0],i[1]),a&&n.setZ(i[2]??0),s&&n.setM(i[u]??NaN),e.add(n)}t.setCacheValue(f,e)}return t.getCacheValue(f)}function M(t){if(!t.getCacheValue(f)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(f,e)}return t.getCacheValue(f)}function P(t){if(!t.getCacheValue(f)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,i=(0,m.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(f,i)}return t.getCacheValue(f)}function v(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,m.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,i)}return t.getCacheValue(f)}function k(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,i)}return t.getCacheValue(f)}function G(t){return(0,m.fromSpatialReference)(t)}function C(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return V(t,e);case s.G.enumEnvelope:return w(t,e);case s.G.enumMultiPoint:return I(t,e);case s.G.enumPolyline:return A(t,e);case s.G.enumPolygon:return R(t,e)}return null}function w(t,e){if(t.isEmpty())return null;const n=new a.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(g,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(p,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(f,t),n}function I(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],a=new i.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const c=new u.A({hasM:r,hasZ:s,points:o,spatialReference:e});return c.setCacheValue(f,t),c}function V(t,e){if(t instanceof r.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(f,t),n}function R(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}function A(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}},92523:(t,e,n)=>{n.d(e,{e:()=>a,g:()=>c});var r=n(4576),s=n(86211),i=n(70787),o=n(78125);function a(t,e,n={}){const{removeDegenerateParts:r=!1,unit:a}=n,u=(0,o.getSpatialReference)(t);return a&&(e=(0,s.UW)(e,a,u)),(0,o.toGeometry)((0,i.g7)((0,o.fromGeometry)(t),e,r),u)}const u=(0,i.fz)(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:a,executeMany:function(t,e,n={}){const{removeDegenerateParts:a=!1,unit:u}=n,c=t.map(o.fromGeometry),h=(0,o.getSpatialReference)(t);return u&&(e=(0,s.UW)(e,u,h)),(0,i.zo)(c,e,a).map(t=>(0,o.toGeometry)(t,h)).filter(r.Ru)},supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},92722:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const i=n-t,o=r-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],i=this.coords[r*e+1];for(let o=1;o<n;o+=1){const n=r*(e+o),a=this.coords[n],u=this.coords[n+1];t+=-.5*(a-s)*(u+i),s=a,i=u}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return t?(t.set(i),new s(e,t)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
|