@arcgis/core 4.34.0-next.61 → 4.34.0-next.64
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/AggregateGraphic.js +1 -1
- package/Graphic.js +1 -1
- package/TrackGraphic.js +1 -1
- package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.js +1 -1
- package/analysis/VolumeMeasurementAnalysis.js +1 -1
- package/applications/Components/actionUtils.d.ts +3 -0
- package/applications/Components/actionUtils.js +5 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{5de7c2a80bd9c81cefe2.js → 070b29cba896f46537f9.js} +1 -1
- package/assets/esri/core/workers/chunks/{8c0e11f781607239749d.js → 0a36df6fdab95785d1ce.js} +1 -1
- package/assets/esri/core/workers/chunks/0b01c87db77246632ad9.js +1 -0
- package/assets/esri/core/workers/chunks/0b24a6c06d1becbb6815.js +1 -0
- package/assets/esri/core/workers/chunks/0cdf6b51f2a63f348530.js +1 -0
- package/assets/esri/core/workers/chunks/10ec10ca361842efce92.js +1 -0
- package/assets/esri/core/workers/chunks/{bdc18ef9cdc8242f014e.js → 1143313f2f6f34deaad7.js} +1 -1
- package/assets/esri/core/workers/chunks/226833d408eb1225e168.js +1 -0
- package/assets/esri/core/workers/chunks/2394ac65d64e50399d76.js +1 -0
- package/assets/esri/core/workers/chunks/33718ea851645d9078d1.js +1 -0
- package/assets/esri/core/workers/chunks/{69fbe363bb130fdd8146.js → 3d6f07e04f77cc0a7506.js} +1 -1
- package/assets/esri/core/workers/chunks/{db7678104b18534482e3.js → 426232091caf8608e5f1.js} +1 -1
- package/assets/esri/core/workers/chunks/47febd4de836a33b51b1.js +1 -0
- package/assets/esri/core/workers/chunks/487afbf352d12c745430.js +1 -0
- package/assets/esri/core/workers/chunks/{3fd09a7c05583a57a317.js → 5d12862042b6bf9f9d54.js} +1 -1
- package/assets/esri/core/workers/chunks/5d65987f2c1b5c56a799.js +1 -0
- package/assets/esri/core/workers/chunks/5de07f7a09eb9f3ab666.js +1 -0
- package/assets/esri/core/workers/chunks/{ba0c7339fa19cc7cbde7.js → 5e1d6704ee0aa41b1d06.js} +1 -1
- package/assets/esri/core/workers/chunks/{4ac127cefa3aa5e93e78.js → 657b01a6df8dc46c5209.js} +1 -1
- package/assets/esri/core/workers/chunks/{71b222089f5e9dcee474.js → 6a1b652ccbf58ac44658.js} +1 -1
- package/assets/esri/core/workers/chunks/{4050ddb580d364d9e205.js → 6ab435423acb0ed0b1c7.js} +1 -1
- package/assets/esri/core/workers/chunks/7b7f5028a488bb9c10f4.js +1 -0
- package/assets/esri/core/workers/chunks/{d83bdc13c3cad3eee7be.js → 7c3a1958990de095d3a1.js} +1 -1
- package/assets/esri/core/workers/chunks/808cfed7022e3846d5b2.js +1 -0
- package/assets/esri/core/workers/chunks/{b68b54be3d67595a9446.js → 861a6d6fe7958df36aa1.js} +35 -34
- package/assets/esri/core/workers/chunks/8bd5a0ff7dcf1067bf53.js +1 -0
- package/assets/esri/core/workers/chunks/{f462a138912e5379b6a7.js → 904c116c6b093e0e970c.js} +1 -1
- package/assets/esri/core/workers/chunks/99b20eef2893047fac10.js +1 -0
- package/assets/esri/core/workers/chunks/a16b471c3706ee37f9b6.js +1 -0
- package/assets/esri/core/workers/chunks/{bb2ab663e3e5597f2104.js → a1bd4eecca1e3272bffb.js} +1 -1
- package/assets/esri/core/workers/chunks/{8005ae652361f506bc5f.js → a29fb90226bd08157bd1.js} +1 -1
- package/assets/esri/core/workers/chunks/a596d6ccb6103e594031.js +1 -0
- package/assets/esri/core/workers/chunks/a5e6359fadbd699b1c8e.js +1 -0
- package/assets/esri/core/workers/chunks/a7f3cdd9a249ef4572ce.js +1 -0
- package/assets/esri/core/workers/chunks/{d2bdd52d2291306a4e47.js → a80d769b0ed025f0df64.js} +1 -1
- package/assets/esri/core/workers/chunks/a987731d1b5449d8fb0c.js +1 -0
- package/assets/esri/core/workers/chunks/af83dddddbfe25194527.js +1 -0
- package/assets/esri/core/workers/chunks/{4d8d942fbd6750bb7567.js → b057e6d593c1607cae61.js} +1 -1
- package/assets/esri/core/workers/chunks/{d707538b150d79050336.js → b1f1a26e7a2ef5b783ee.js} +1 -1
- package/assets/esri/core/workers/chunks/c337c1a2dbc452780dd7.js +1 -0
- package/assets/esri/core/workers/chunks/{a35a439f053d1fe0541b.js → c601bbdafdee5074b04f.js} +1 -1
- package/assets/esri/core/workers/chunks/{d7ce68667bb355ef8e5d.js → c7a386ac90e58eb71935.js} +1 -1
- package/assets/esri/core/workers/chunks/c8694a27e2cf28b010e8.js +1 -0
- package/assets/esri/core/workers/chunks/cf69f6afeaf1229e032c.js +1 -0
- package/assets/esri/core/workers/chunks/d1e8220dcae1d01d3c35.js +1 -0
- package/assets/esri/core/workers/chunks/e12e8d69c05c182b6a69.js +1 -0
- package/assets/esri/core/workers/chunks/{220c8d6338f236298720.js → e6457ac25c0829ee039c.js} +1 -1
- package/assets/esri/core/workers/chunks/{c77a97c723b8c17df186.js → e72aee3f857aa473822c.js} +1 -1
- package/assets/esri/core/workers/chunks/{8374d87176486c1fc90e.js → eadac757f74470b89a36.js} +1 -1
- package/assets/esri/core/workers/chunks/f542bdc994a5ea3aa9d1.js +1 -0
- package/assets/esri/core/workers/chunks/{7c23be93d394f1bee941.js → f6107f844f4feed42828.js} +1 -1
- package/assets/esri/core/workers/chunks/f76774781865cb1411b0.js +1 -0
- package/assets/esri/core/workers/chunks/fd04df45cdcc6ff52554.js +1 -0
- package/assets/esri/layers/support/rasterFormats/qb3-wasm.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/chunks/BloomComposition.glsl.js +6 -5
- package/chunks/Fog.glsl.js +20 -13
- package/chunks/GaussianSplat.glsl.js +7 -0
- package/chunks/GaussianSplatComposition.glsl.js +7 -0
- package/chunks/GaussianSplatDepthComposition.glsl.js +11 -0
- package/chunks/RealisticTree.glsl.js +29 -28
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/chunks/qb3-wasm.js +5 -0
- package/chunks/vxlLayer.js +1 -1
- package/config.js +1 -1
- package/core/Collection.js +1 -1
- package/core/has.js +1 -1
- package/geometry/ellipsoidUtils.js +1 -1
- package/geometry/operators/geodeticUtilsOperator.d.ts +6 -0
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/graphic/AggregateGraphicOrigin.js +5 -0
- package/graphic/CSVGraphicOrigin.js +1 -1
- package/graphic/CatalogGraphicOrigin.js +1 -1
- package/graphic/FeatureGraphicOrigin.js +1 -1
- package/graphic/GeoJSONGraphicOrigin.js +1 -1
- package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
- package/graphic/OGCFeatureGraphicOrigin.js +1 -1
- package/graphic/OrientedImageryGraphicOrigin.js +1 -1
- package/graphic/ParquetGraphicOrigin.js +1 -1
- package/graphic/StreamGraphicOrigin.js +1 -1
- package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
- package/graphic/TrackGraphicOrigin.js +5 -0
- package/graphic/WFSGraphicOrigin.js +1 -1
- package/graphic/getPopupProvider.js +5 -0
- package/interfaces.d.ts +869 -38
- package/kernel.js +1 -1
- package/layers/GaussianSplatLayer.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/knowledgeGraph/nodeMovementUtils.js +1 -1
- package/layers/mixins/FeatureReductionLayer.js +1 -1
- package/layers/mixins/TrackableLayer.js +1 -1
- package/layers/support/GaussianSplatAtlasPageAllocator.js +5 -0
- package/layers/support/gaussianSplatUtils.js +5 -0
- package/layers/support/rasterDatasets/MRFRaster.js +1 -1
- package/layers/support/rasterFormats/Qb3.js +5 -0
- package/layers/support/rasterFormats/RasterCodec.js +1 -1
- package/layers/support/tiles3DUtils.js +5 -0
- package/layers/video/VideoController.js +1 -1
- package/package.json +2 -2
- package/rest/knowledgeGraph/GraphApplyEditsResult.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/wasmToUpdateResponseFactories.js +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/rest/lastMileDelivery/enums.js +5 -0
- package/rest/lastMileDelivery.d.ts +10 -0
- package/rest/lastMileDelivery.js +5 -0
- package/rest/route/utils.js +1 -1
- package/rest/support/JobInfo.js +1 -1
- package/rest/support/LastMileDeliveryParameters.d.ts +4 -0
- package/rest/support/LastMileDeliveryParameters.js +5 -0
- package/support/revision.js +1 -1
- package/symbols/IconSymbol3DLayer.js +1 -1
- package/symbols/TextSymbol3DLayer.js +1 -1
- package/symbols/patterns/StylePattern3D.js +1 -1
- package/symbols/patterns/styles.js +1 -1
- package/symbols/support/IconSymbol3DLayerResource.js +1 -1
- package/symbols/support/OccludedVisibility.js +5 -0
- package/symbols/support/Symbol3DAnchorPosition2D.js +1 -1
- package/symbols/support/Symbol3DIconOutline.js +1 -1
- package/unionTypes.d.ts +3 -0
- package/views/2d/analysis/AnalysisView2D.js +5 -0
- package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +4 -0
- package/views/2d/analysis/ElevationProfileAnalysisView2D.js +5 -0
- package/views/2d/analysis/analysisViewModuleImportUtils.js +5 -0
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsDiffShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsMinMaxSumShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsStdDevShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsSumOfSquaredDiffShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
- package/views/3d/analysis/AnalysisView3D.js +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/DimensionAnalysisView3D.js +1 -1
- package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileInputVisualization.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization.js +5 -0
- package/views/3d/analysis/ElevationProfile/ElevationProfileSceneLineComputation.js +1 -1
- package/views/3d/analysis/ElevationProfile/ElevationProfileVisualization.js +1 -1
- package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
- package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
- package/views/3d/analysis/SliceAnalysisView3D.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/analysisViewModuleImportUtils.js +5 -0
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Fog.glsl.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/FogTechniqueConfiguration.js +5 -0
- package/views/3d/environment/Precipitation.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/{IntegratedMesh3DTilesViewPerformanceInfo.js → Lyr3DViewPerformanceInfo.js} +1 -1
- package/views/3d/layers/Lyr3DWasm.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/support/LayerViewAnalysisViewManager.js +1 -1
- package/views/3d/support/GaussianSplatSortWorker.js +1 -1
- package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/pointsOfInterest/ContentGeometryUpdates.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/ComputeCovariance.glsl.js +40 -0
- package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatUnpacking.glsl.js +59 -0
- package/views/3d/webgl-engine/core/shaderLibrary/util/QuaternionToRotationMatrix.glsl.js +23 -0
- package/views/3d/webgl-engine/effects/blit/Blit.js +1 -1
- package/views/3d/webgl-engine/effects/bloom/BloomComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/bloom/BloomCompositionTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/bloom/BloomRenderNode.js +1 -1
- package/views/3d/webgl-engine/effects/weather/SnowCover.glsl.js +4 -4
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +5 -0
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatComposition.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechniqueConfiguration.js +5 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatDepthComposition.glsl.js +5 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatDepthCompositionTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatDepthTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatTechnique.js +5 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +5 -0
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/View2D.js +1 -1
- package/views/analysis/AnalysisView.js +5 -0
- package/views/analysis/ElevationProfile/ElevationProfileInputLineComputation.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +5 -0
- package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
- package/views/layers/FeatureLayerView.js +1 -1
- package/views/support/AnalysisViewManager.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/widgets/CoordinateConversion/support/Format.js +1 -1
- package/widgets/Locate/LocateViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/Popup/actionUtils.js +1 -1
- package/assets/esri/core/workers/chunks/08d420cd7cfa19a10fa4.js +0 -1
- package/assets/esri/core/workers/chunks/17abab49db1813d3e192.js +0 -1
- package/assets/esri/core/workers/chunks/182383fd00008606bfaa.js +0 -1
- package/assets/esri/core/workers/chunks/188feb2bcbf8e48e3163.js +0 -1
- package/assets/esri/core/workers/chunks/232c76f122b1f519e099.js +0 -1
- package/assets/esri/core/workers/chunks/3124a8516e815efec973.js +0 -1
- package/assets/esri/core/workers/chunks/3461701a15be46603c56.js +0 -1
- package/assets/esri/core/workers/chunks/36acf191a2d48560c796.js +0 -1
- package/assets/esri/core/workers/chunks/40e1fbfbf3f3979b3713.js +0 -1
- package/assets/esri/core/workers/chunks/4b1daffa97fd90a554a0.js +0 -1
- package/assets/esri/core/workers/chunks/4b68783e8d1415d0a171.js +0 -1
- package/assets/esri/core/workers/chunks/5915f5ba9064097aee79.js +0 -1
- package/assets/esri/core/workers/chunks/5e1afea05b624b315d9f.js +0 -1
- package/assets/esri/core/workers/chunks/5ed7e139c72cd2b3ddba.js +0 -1
- package/assets/esri/core/workers/chunks/63f3e46bfa820436161c.js +0 -1
- package/assets/esri/core/workers/chunks/702d2c668dedf83421ca.js +0 -1
- package/assets/esri/core/workers/chunks/7b2ec80dca0fdb0442cf.js +0 -1
- package/assets/esri/core/workers/chunks/7b9178c3826f9ef52a00.js +0 -1
- package/assets/esri/core/workers/chunks/9a20390602126995f831.js +0 -1
- package/assets/esri/core/workers/chunks/a2150baf0661e2f28011.js +0 -1
- package/assets/esri/core/workers/chunks/a532614aa65fb52dee7b.js +0 -1
- package/assets/esri/core/workers/chunks/abededd48e0ea6cfec01.js +0 -1
- package/assets/esri/core/workers/chunks/ae1cb4c65d72217ae4d4.js +0 -1
- package/assets/esri/core/workers/chunks/c1c6202f7bef24b5db26.js +0 -1
- package/assets/esri/core/workers/chunks/c75b0243e5bb84738419.js +0 -1
- package/assets/esri/core/workers/chunks/d47c3431c501d77b1779.js +0 -1
- package/assets/esri/core/workers/chunks/f6d91256c4e5f8a0d5c0.js +0 -1
- package/assets/esri/core/workers/chunks/f711aeba1a2c184ddb43.js +0 -1
- package/graphic/isPopupProviderGraphicOrigin.js +0 -5
- package/views/2d/analysisViewModuleImportUtils.js +0 -5
- package/views/3d/analysis/ElevationProfile/ElevationProfileLinesVisualization.js +0 -5
- package/views/3d/analysisViewModuleImportUtils.js +0 -5
package/chunks/vxlLayer.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{c as e,g as r}from"./_commonjsHelpers.js";var t,n={exports:{}};function o(){return t||(t=1,r=n,o="undefined"!=typeof document?document.currentScript?.src:void 0,a=async function(r={}){var t,n,a,i,s=r,u=new Promise((e,r)=>{t=e,n=r}),l="./this.program",c="";function d(e){return s.locateFile?s.locateFile(e,c):c+e}"undefined"!=typeof document&&document.currentScript&&(c=document.currentScript.src),o&&(c=o),c=c.startsWith("blob:")?"":c.slice(0,c.replace(/[?#].*/,"").lastIndexOf("/")+1),a=async e=>{var r=await fetch(e,{credentials:"same-origin"});if(r.ok)return r.arrayBuffer();throw new Error(r.status+" : "+r.url)};var f,m,p,h,v,g,w,y,E,_,b,k,x=console.log.bind(console),P=console.error.bind(console),A=!1;function S(){var e=m.buffer;p=new Int8Array(e),v=new Int16Array(e),s.HEAPU8=h=new Uint8Array(e),g=new Uint16Array(e),s.HEAP32=w=new Int32Array(e),y=new Uint32Array(e),s.HEAPF32=E=new Float32Array(e),k=new Float64Array(e),_=new BigInt64Array(e),b=new BigUint64Array(e)}function T(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)q(s.preRun.shift());V(H)}function F(){s.noFSInit||be.initialized||be.init(),Do.db(),be.ignorePermissions=!1}function D(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)X(s.postRun.shift());V(G)}var B,C=0,$=null;function L(e){C++,s.monitorRunDependencies?.(C)}function j(e){if(C--,s.monitorRunDependencies?.(C),0==C&&$){var r=$;$=null,r()}}function I(e){s.onAbort?.(e),P(e="Aborted("+e+")"),A=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw n(r),r}function N(){return d("vxlLayer.wasm")}function W(e){if(e==B&&f)return new Uint8Array(f);throw"both async and sync fetching of the wasm failed"}async function M(e){if(!f)try{var r=await a(e);return new Uint8Array(r)}catch{}return W(e)}async function O(e,r){try{var t=await M(e);return await WebAssembly.instantiate(t,r)}catch(n){P(`failed to asynchronously prepare wasm: ${n}`),I(n)}}async function R(e,r,t){if(!e&&"function"==typeof WebAssembly.instantiateStreaming)try{var n=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(o){P(`wasm streaming compile failed: ${o}`),P("falling back to ArrayBuffer instantiation")}return O(r,t)}function z(){return{a:Fo}}async function U(){function e(e,r){return Do=e.exports,m=Do.cb,S(),vr=Do.fb,j(),Do}function r(r){return e(r.instance)}L();var t=z();if(s.instantiateWasm)return new Promise((r,n)=>{s.instantiateWasm(t,(t,n)=>{r(e(t))})});B??=N();try{return r(await R(f,B,t))}catch(o){return n(o),Promise.reject(o)}}var V=e=>{for(;e.length>0;)e.shift()(s)},G=[],X=e=>G.push(e),H=[],q=e=>H.push(e),Q="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Y=(e,r=0,t=NaN)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&Q)return Q.decode(e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var u=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&e[r++])<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},J=(e,r)=>e?Y(h,e,r):"",K=(e,r,t,n)=>I(`Assertion failed: ${J(e)}, at: `+[r?J(r):"unknown filename",t,n?J(n):"unknown function"]);class Z{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){y[this.ptr+4>>2]=e}get_type(){return y[this.ptr+4>>2]}set_destructor(e){y[this.ptr+8>>2]=e}get_destructor(){return y[this.ptr+8>>2]}set_caught(e){e=e?1:0,p[this.ptr+12]=e}get_caught(){return 0!=p[this.ptr+12]}set_rethrown(e){e=e?1:0,p[this.ptr+13]=e}get_rethrown(){return 0!=p[this.ptr+13]}init(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)}set_adjusted_ptr(e){y[this.ptr+16>>2]=e}get_adjusted_ptr(){return y[this.ptr+16>>2]}}var ee=(e,r,t)=>{throw new Z(e).init(r,t),e},re=()=>{var e=w[+ke.varargs>>2];return ke.varargs+=4,e},te=re,ne={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=ne.isAbs(e),t="/"===e.slice(-1);return(e=ne.normalizeArray(e.split("/").filter(e=>!!e),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=ne.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.slice(0,-1)),t+n):"."},basename:e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],join:(...e)=>ne.normalize(e.join("/")),join2:(e,r)=>ne.normalize(e+"/"+r)},oe=()=>e=>crypto.getRandomValues(e),ae=e=>{(ae=oe())(e)},ie={resolve:(...e)=>{for(var r="",t=!1,n=e.length-1;n>=-1&&!t;n--){var o=n>=0?e[n]:be.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";r=o+"/"+r,t=ne.isAbs(o)}return(t?"/":"")+(r=ne.normalizeArray(r.split("/").filter(e=>!!e),!t).join("/"))||"."},relative:(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=ie.resolve(e).slice(1),r=ie.resolve(r).slice(1);for(var n=t(e.split("/")),o=t(r.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("/")}},se=[],ue=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},le=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o},ce=(e,r,t)=>{var n=ue(e)+1,o=new Array(n),a=le(e,o,0,o.length);return o.length=a,o},de=()=>{if(!se.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(e=window.prompt("Input: "))&&(e+="\n"),!e)return null;se=ce(e)}return se.shift()},fe={ttys:[],init(){},shutdown(){},register(e,r){fe.ttys[e]={input:[],output:[],ops:r},be.registerDevice(e,fe.stream_ops)},stream_ops:{open(e){var r=fe.ttys[e.node.rdev];if(!r)throw new be.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new be.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(u){throw new be.ErrnoError(29)}if(void 0===s&&0===a)throw new be.ErrnoError(6);if(null==s)break;a++,r[t+i]=s}return a&&(e.node.atime=Date.now()),a},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new be.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(i){throw new be.ErrnoError(29)}return n&&(e.node.mtime=e.node.ctime=Date.now()),a}},default_tty_ops:{get_char:e=>de(),put_char(e,r){null===r||10===r?(x(Y(e.output)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output?.length>0&&(x(Y(e.output)),e.output=[])},ioctl_tcgets:e=>({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:(e,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(P(Y(e.output)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output?.length>0&&(P(Y(e.output)),e.output=[])}}},me=e=>{I()},pe={ops_table:null,mount:e=>pe.createNode(null,"/",16895,0),createNode(e,r,t,n){if(be.isBlkdev(t)||be.isFIFO(t))throw new be.ErrnoError(63);pe.ops_table||={dir:{node:{getattr:pe.node_ops.getattr,setattr:pe.node_ops.setattr,lookup:pe.node_ops.lookup,mknod:pe.node_ops.mknod,rename:pe.node_ops.rename,unlink:pe.node_ops.unlink,rmdir:pe.node_ops.rmdir,readdir:pe.node_ops.readdir,symlink:pe.node_ops.symlink},stream:{llseek:pe.stream_ops.llseek}},file:{node:{getattr:pe.node_ops.getattr,setattr:pe.node_ops.setattr},stream:{llseek:pe.stream_ops.llseek,read:pe.stream_ops.read,write:pe.stream_ops.write,mmap:pe.stream_ops.mmap,msync:pe.stream_ops.msync}},link:{node:{getattr:pe.node_ops.getattr,setattr:pe.node_ops.setattr,readlink:pe.node_ops.readlink},stream:{}},chrdev:{node:{getattr:pe.node_ops.getattr,setattr:pe.node_ops.setattr},stream:be.chrdev_stream_ops}};var o=be.createNode(e,r,t,n);return be.isDir(o.mode)?(o.node_ops=pe.ops_table.dir.node,o.stream_ops=pe.ops_table.dir.stream,o.contents={}):be.isFile(o.mode)?(o.node_ops=pe.ops_table.file.node,o.stream_ops=pe.ops_table.file.stream,o.usedBytes=0,o.contents=null):be.isLink(o.mode)?(o.node_ops=pe.ops_table.link.node,o.stream_ops=pe.ops_table.link.stream):be.isChrdev(o.mode)&&(o.node_ops=pe.ops_table.chrdev.node,o.stream_ops=pe.ops_table.chrdev.stream),o.atime=o.mtime=o.ctime=Date.now(),e&&(e.contents[r]=o,e.atime=e.mtime=e.ctime=o.atime),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){var n=1048576;r=Math.max(r,t*(t<n?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var o=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(o.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=be.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,be.isDir(e.mode)?r.size=4096:be.isFile(e.mode)?r.size=e.usedBytes:be.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.atime),r.mtime=new Date(e.mtime),r.ctime=new Date(e.ctime),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){for(const t of["mode","atime","mtime","ctime"])null!=r[t]&&(e[t]=r[t]);void 0!==r.size&&pe.resizeFileStorage(e,r.size)},lookup(e,r){throw pe.doesNotExistError},mknod:(e,r,t,n)=>pe.createNode(e,r,t,n),rename(e,r,t){var n;try{n=be.lookupNode(r,t)}catch(a){}if(n){if(be.isDir(e.mode))for(var o in n.contents)throw new be.ErrnoError(55);be.hashRemoveNode(n)}delete e.parent.contents[e.name],r.contents[t]=e,e.name=t,r.ctime=r.mtime=e.parent.ctime=e.parent.mtime=Date.now()},unlink(e,r){delete e.contents[r],e.ctime=e.mtime=Date.now()},rmdir(e,r){var t=be.lookupNode(e,r);for(var n in t.contents)throw new be.ErrnoError(55);delete e.contents[r],e.ctime=e.mtime=Date.now()},readdir:e=>[".","..",...Object.keys(e.contents)],symlink(e,r,t){var n=pe.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!be.isLink(e.mode))throw new be.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)r[t+s]=a[o+s];return i},write(e,r,t,n,o,a){if(r.buffer===p.buffer&&(a=!1),!n)return 0;var i=e.node;if(i.mtime=i.ctime=Date.now(),r.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=r.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=r.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(r.subarray(t,t+n),o),n}if(pe.expandFileStorage(i,o+n),i.contents.subarray&&r.subarray)i.contents.set(r.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=r[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&be.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new be.ErrnoError(28);return n},mmap(e,r,t,n,o){if(!be.isFile(e.node.mode))throw new be.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||!s||s.buffer!==p.buffer){if(i=!0,!(a=me()))throw new be.ErrnoError(48);s&&((t>0||t+r<s.length)&&(s=s.subarray?s.subarray(t,t+r):Array.prototype.slice.call(s,t,t+r)),p.set(s,a))}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,r,t,n,o)=>(pe.stream_ops.write(e,r,0,n,t,!1),0)}},he=async e=>{var r=await a(e);return new Uint8Array(r)},ve=(e,r,t,n,o,a)=>{be.createDataFile(e,r,t,n,o,a)},ge=[],we=(e,r,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return ge.forEach(a=>{o||a.canHandle(r)&&(a.handle(e,r,t,n),o=!0)}),o},ye=(e,r,t,n,o,a,i,s,u,l)=>{var c=r?ie.resolve(ne.join2(e,r)):e;function d(t){function d(t){l?.(),s||ve(e,r,t,n,o,u),a?.(),j()}we(t,c,d,()=>{i?.(),j()})||d(t)}L(),"string"==typeof t?he(t).then(d,i):d(t)},Ee=e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===r)throw new Error(`Unknown file open mode: ${e}`);return r},_e=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},be={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,readFiles:{},ErrnoError:class{name="ErrnoError";constructor(e){this.errno=e}},FSStream:class{shared={};get object(){return this.node}set object(e){this.node=e}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(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.id=be.nextInode++,this.name=r,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(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return be.isDir(this.mode)}get isDevice(){return be.isChrdev(this.mode)}},lookupPath(e,r={}){if(!e)throw new be.ErrnoError(44);r.follow_mount??=!0,ne.isAbs(e)||(e=be.cwd()+"/"+e);e:for(var t=0;t<40;t++){for(var n=e.split("/").filter(e=>!!e),o=be.root,a="/",i=0;i<n.length;i++){var s=i===n.length-1;if(s&&r.parent)break;if("."!==n[i])if(".."!==n[i]){a=ne.join2(a,n[i]);try{o=be.lookupNode(o,n[i])}catch(l){if(44===l?.errno&&s&&r.noent_okay)return{path:a};throw l}if(!be.isMountpoint(o)||s&&!r.follow_mount||(o=o.mounted.root),be.isLink(o.mode)&&(!s||r.follow)){if(!o.node_ops.readlink)throw new be.ErrnoError(52);var u=o.node_ops.readlink(o);ne.isAbs(u)||(u=ne.dirname(a)+"/"+u),e=u+"/"+n.slice(i+1).join("/");continue e}}else{if(a=ne.dirname(a),be.isRoot(o)){e=a+"/"+n.slice(i+1).join("/");continue e}o=o.parent}}return{path:a,node:o}}throw new be.ErrnoError(32)},getPath(e){for(var r;;){if(be.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?`${t}/${r}`:t+r:t}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%be.nameTable.length},hashAddNode(e){var r=be.hashName(e.parent.id,e.name);e.name_next=be.nameTable[r],be.nameTable[r]=e},hashRemoveNode(e){var r=be.hashName(e.parent.id,e.name);if(be.nameTable[r]===e)be.nameTable[r]=e.name_next;else for(var t=be.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=be.mayLookup(e);if(t)throw new be.ErrnoError(t);for(var n=be.hashName(e.id,r),o=be.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return be.lookup(e,r)},createNode(e,r,t,n){var o=new be.FSNode(e,r,t,n);return be.hashAddNode(o),o},destroyNode(e){be.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>!(49152&~e),flagsToPermissionString(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>be.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup(e){if(!be.isDir(e.mode))return 54;var r=be.nodePermissions(e,"x");return r||(e.node_ops.lookup?0:2)},mayCreate(e,r){if(!be.isDir(e.mode))return 54;try{return be.lookupNode(e,r),20}catch(t){}return be.nodePermissions(e,"wx")},mayDelete(e,r,t){var n;try{n=be.lookupNode(e,r)}catch(a){return a.errno}var o=be.nodePermissions(e,"wx");if(o)return o;if(t){if(!be.isDir(n.mode))return 54;if(be.isRoot(n)||be.getPath(n)===be.cwd())return 10}else if(be.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?be.isLink(e.mode)?32:be.isDir(e.mode)&&("r"!==be.flagsToPermissionString(r)||576&r)?31:be.nodePermissions(e,be.flagsToPermissionString(r)):44,checkOpExists(e,r){if(!e)throw new be.ErrnoError(r);return e},MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=be.MAX_OPEN_FDS;e++)if(!be.streams[e])return e;throw new be.ErrnoError(33)},getStreamChecked(e){var r=be.getStream(e);if(!r)throw new be.ErrnoError(8);return r},getStream:e=>be.streams[e],createStream:(e,r=-1)=>(e=Object.assign(new be.FSStream,e),-1==r&&(r=be.nextfd()),e.fd=r,be.streams[r]=e,e),closeStream(e){be.streams[e]=null},dupStream(e,r=-1){var t=be.createStream(e,r);return t.stream_ops?.dup?.(t),t},doSetAttr(e,r,t){var n=e?.stream_ops.setattr,o=n?e:r;n??=r.node_ops.setattr,be.checkOpExists(n,63),n(o,t)},chrdev_stream_ops:{open(e){var r=be.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open?.(e)},llseek(){throw new be.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){be.devices[e]={stream_ops:r}},getDevice:e=>be.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push(...n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),be.syncFSRequests++,be.syncFSRequests>1&&P(`warning: ${be.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=be.getMounts(be.root.mount),n=0;function o(e){return be.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach(r=>{if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)})},mount(e,r,t){var n,o="/"===t,a=!t;if(o&&be.root)throw new be.ErrnoError(10);if(!o&&!a){var i=be.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,be.isMountpoint(n))throw new be.ErrnoError(10);if(!be.isDir(n.mode))throw new be.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},u=e.mount(s);return u.mount=s,s.root=u,o?be.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(e){var r=be.lookupPath(e,{follow_mount:!1});if(!be.isMountpoint(r.node))throw new be.ErrnoError(28);var t=r.node,n=t.mounted,o=be.getMounts(n);Object.keys(be.nameTable).forEach(e=>{for(var r=be.nameTable[e];r;){var t=r.name_next;o.includes(r.mount)&&be.destroyNode(r),r=t}}),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=be.lookupPath(e,{parent:!0}).node,o=ne.basename(e);if(!o)throw new be.ErrnoError(28);if("."===o||".."===o)throw new be.ErrnoError(20);var a=be.mayCreate(n,o);if(a)throw new be.ErrnoError(a);if(!n.node_ops.mknod)throw new be.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},statfs:e=>be.statfsNode(be.lookupPath(e,{follow:!0}).node),statfsStream:e=>be.statfsNode(e.node),statfsNode(e){var r={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:be.nextInode,ffree:be.nextInode-1,fsid:42,flags:2,namelen:255};return e.node_ops.statfs&&Object.assign(r,e.node_ops.statfs(e.mount.opts.root)),r},create:(e,r=438)=>(r&=4095,r|=32768,be.mknod(e,r,0)),mkdir:(e,r=511)=>(r&=1023,r|=16384,be.mknod(e,r,0)),mkdirTree(e,r){var t=e.split("/"),n="";for(var o of t)if(o){(n||ne.isAbs(e))&&(n+="/"),n+=o;try{be.mkdir(n,r)}catch(a){if(20!=a.errno)throw a}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,be.mknod(e,r,t)),symlink(e,r){if(!ie.resolve(e))throw new be.ErrnoError(44);var t=be.lookupPath(r,{parent:!0}).node;if(!t)throw new be.ErrnoError(44);var n=ne.basename(r),o=be.mayCreate(t,n);if(o)throw new be.ErrnoError(o);if(!t.node_ops.symlink)throw new be.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o=ne.dirname(e),a=ne.dirname(r),i=ne.basename(e),s=ne.basename(r);if(t=be.lookupPath(e,{parent:!0}).node,n=be.lookupPath(r,{parent:!0}).node,!t||!n)throw new be.ErrnoError(44);if(t.mount!==n.mount)throw new be.ErrnoError(75);var u,l=be.lookupNode(t,i),c=ie.relative(e,a);if("."!==c.charAt(0))throw new be.ErrnoError(28);if("."!==(c=ie.relative(r,o)).charAt(0))throw new be.ErrnoError(55);try{u=be.lookupNode(n,s)}catch(m){}if(l!==u){var d=be.isDir(l.mode),f=be.mayDelete(t,i,d);if(f)throw new be.ErrnoError(f);if(f=u?be.mayDelete(n,s,d):be.mayCreate(n,s))throw new be.ErrnoError(f);if(!t.node_ops.rename)throw new be.ErrnoError(63);if(be.isMountpoint(l)||u&&be.isMountpoint(u))throw new be.ErrnoError(10);if(n!==t&&(f=be.nodePermissions(t,"w")))throw new be.ErrnoError(f);be.hashRemoveNode(l);try{t.node_ops.rename(l,n,s),l.parent=n}catch(m){throw m}finally{be.hashAddNode(l)}}},rmdir(e){var r=be.lookupPath(e,{parent:!0}).node,t=ne.basename(e),n=be.lookupNode(r,t),o=be.mayDelete(r,t,!0);if(o)throw new be.ErrnoError(o);if(!r.node_ops.rmdir)throw new be.ErrnoError(63);if(be.isMountpoint(n))throw new be.ErrnoError(10);r.node_ops.rmdir(r,t),be.destroyNode(n)},readdir(e){var r=be.lookupPath(e,{follow:!0}).node;return be.checkOpExists(r.node_ops.readdir,54)(r)},unlink(e){var r=be.lookupPath(e,{parent:!0}).node;if(!r)throw new be.ErrnoError(44);var t=ne.basename(e),n=be.lookupNode(r,t),o=be.mayDelete(r,t,!1);if(o)throw new be.ErrnoError(o);if(!r.node_ops.unlink)throw new be.ErrnoError(63);if(be.isMountpoint(n))throw new be.ErrnoError(10);r.node_ops.unlink(r,t),be.destroyNode(n)},readlink(e){var r=be.lookupPath(e).node;if(!r)throw new be.ErrnoError(44);if(!r.node_ops.readlink)throw new be.ErrnoError(28);return r.node_ops.readlink(r)},stat(e,r){var t=be.lookupPath(e,{follow:!r}).node;return be.checkOpExists(t.node_ops.getattr,63)(t)},fstat(e){var r=be.getStreamChecked(e),t=r.node,n=r.stream_ops.getattr,o=n?r:t;return n??=t.node_ops.getattr,be.checkOpExists(n,63),n(o)},lstat:e=>be.stat(e,!0),doChmod(e,r,t,n){be.doSetAttr(e,r,{mode:4095&t|-4096&r.mode,ctime:Date.now(),dontFollow:n})},chmod(e,r,t){var n;n="string"==typeof e?be.lookupPath(e,{follow:!t}).node:e,be.doChmod(null,n,r,t)},lchmod(e,r){be.chmod(e,r,!0)},fchmod(e,r){var t=be.getStreamChecked(e);be.doChmod(t,t.node,r,!1)},doChown(e,r,t){be.doSetAttr(e,r,{timestamp:Date.now(),dontFollow:t})},chown(e,r,t,n){var o;o="string"==typeof e?be.lookupPath(e,{follow:!n}).node:e,be.doChown(null,o,n)},lchown(e,r,t){be.chown(e,r,t,!0)},fchown(e,r,t){var n=be.getStreamChecked(e);be.doChown(n,n.node,!1)},doTruncate(e,r,t){if(be.isDir(r.mode))throw new be.ErrnoError(31);if(!be.isFile(r.mode))throw new be.ErrnoError(28);var n=be.nodePermissions(r,"w");if(n)throw new be.ErrnoError(n);be.doSetAttr(e,r,{size:t,timestamp:Date.now()})},truncate(e,r){if(r<0)throw new be.ErrnoError(28);var t;t="string"==typeof e?be.lookupPath(e,{follow:!0}).node:e,be.doTruncate(null,t,r)},ftruncate(e,r){var t=be.getStreamChecked(e);if(r<0||!(2097155&t.flags))throw new be.ErrnoError(28);be.doTruncate(t,t.node,r)},utime(e,r,t){var n=be.lookupPath(e,{follow:!0}).node;be.checkOpExists(n.node_ops.setattr,63)(n,{atime:r,mtime:t})},open(e,r,t=438){if(""===e)throw new be.ErrnoError(44);var n,o;if(t=64&(r="string"==typeof r?Ee(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{o=e.endsWith("/");var a=be.lookupPath(e,{follow:!(131072&r),noent_okay:!0});n=a.node,e=a.path}var i=!1;if(64&r)if(n){if(128&r)throw new be.ErrnoError(20)}else{if(o)throw new be.ErrnoError(31);n=be.mknod(e,511|t,0),i=!0}if(!n)throw new be.ErrnoError(44);if(be.isChrdev(n.mode)&&(r&=-513),65536&r&&!be.isDir(n.mode))throw new be.ErrnoError(54);if(!i){var u=be.mayOpen(n,r);if(u)throw new be.ErrnoError(u)}512&r&&!i&&be.truncate(n,0),r&=-131713;var l=be.createStream({node:n,path:be.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return l.stream_ops.open&&l.stream_ops.open(l),i&&be.chmod(n,511&t),!s.logReadFiles||1&r||e in be.readFiles||(be.readFiles[e]=1),l},close(e){if(be.isClosed(e))throw new be.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(r){throw r}finally{be.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(be.isClosed(e))throw new be.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new be.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new be.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,o){if(n<0||o<0)throw new be.ErrnoError(28);if(be.isClosed(e))throw new be.ErrnoError(8);if(1==(2097155&e.flags))throw new be.ErrnoError(8);if(be.isDir(e.node.mode))throw new be.ErrnoError(31);if(!e.stream_ops.read)throw new be.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new be.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,r,t,n,o);return a||(e.position+=i),i},write(e,r,t,n,o,a){if(n<0||o<0)throw new be.ErrnoError(28);if(be.isClosed(e))throw new be.ErrnoError(8);if(!(2097155&e.flags))throw new be.ErrnoError(8);if(be.isDir(e.node.mode))throw new be.ErrnoError(31);if(!e.stream_ops.write)throw new be.ErrnoError(28);e.seekable&&1024&e.flags&&be.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new be.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,a);return i||(e.position+=s),s},mmap(e,r,t,n,o){if(2&n&&!(2&o)&&2!=(2097155&e.flags))throw new be.ErrnoError(2);if(1==(2097155&e.flags))throw new be.ErrnoError(2);if(!e.stream_ops.mmap)throw new be.ErrnoError(43);if(!r)throw new be.ErrnoError(28);return e.stream_ops.mmap(e,r,t,n,o)},msync:(e,r,t,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,o):0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new be.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e,r={}){if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error(`Invalid encoding type "${r.encoding}"`);var t,n=be.open(e,r.flags),o=be.stat(e).size,a=new Uint8Array(o);return be.read(n,a,0,o,0),"utf8"===r.encoding?t=Y(a):"binary"===r.encoding&&(t=a),be.close(n),t},writeFile(e,r,t={}){t.flags=t.flags||577;var n=be.open(e,t.flags,t.mode);if("string"==typeof r){var o=new Uint8Array(ue(r)+1),a=le(r,o,0,o.length);be.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");be.write(n,r,0,r.byteLength,void 0,t.canOwn)}be.close(n)},cwd:()=>be.currentPath,chdir(e){var r=be.lookupPath(e,{follow:!0});if(null===r.node)throw new be.ErrnoError(44);if(!be.isDir(r.node.mode))throw new be.ErrnoError(54);var t=be.nodePermissions(r.node,"x");if(t)throw new be.ErrnoError(t);be.currentPath=r.path},createDefaultDirectories(){be.mkdir("/tmp"),be.mkdir("/home"),be.mkdir("/home/web_user")},createDefaultDevices(){be.mkdir("/dev"),be.registerDevice(be.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n,llseek:()=>0}),be.mkdev("/dev/null",be.makedev(1,3)),fe.register(be.makedev(5,0),fe.default_tty_ops),fe.register(be.makedev(6,0),fe.default_tty1_ops),be.mkdev("/dev/tty",be.makedev(5,0)),be.mkdev("/dev/tty1",be.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(ae(e),r=e.byteLength),e[--r]);be.createDevice("/dev","random",t),be.createDevice("/dev","urandom",t),be.mkdir("/dev/shm"),be.mkdir("/dev/shm/tmp")},createSpecialDirectories(){be.mkdir("/proc");var e=be.mkdir("/proc/self");be.mkdir("/proc/self/fd"),be.mount({mount(){var r=be.createNode(e,"fd",16895,73);return r.stream_ops={llseek:pe.stream_ops.llseek},r.node_ops={lookup(e,r){var t=+r,n=be.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path},id:t+1};return o.parent=o,o},readdir:()=>Array.from(be.streams.entries()).filter(([e,r])=>r).map(([e,r])=>e.toString())},r}},{},"/proc/self/fd")},createStandardStreams(e,r,t){e?be.createDevice("/dev","stdin",e):be.symlink("/dev/tty","/dev/stdin"),r?be.createDevice("/dev","stdout",null,r):be.symlink("/dev/tty","/dev/stdout"),t?be.createDevice("/dev","stderr",null,t):be.symlink("/dev/tty1","/dev/stderr"),be.open("/dev/stdin",0),be.open("/dev/stdout",1),be.open("/dev/stderr",1)},staticInit(){be.nameTable=new Array(4096),be.mount(pe,{},"/"),be.createDefaultDirectories(),be.createDefaultDevices(),be.createSpecialDirectories(),be.filesystems={MEMFS:pe}},init(e,r,t){be.initialized=!0,e??=s.stdin,r??=s.stdout,t??=s.stderr,be.createStandardStreams(e,r,t)},quit(){for(var e of(be.initialized=!1,be.streams))e&&be.close(e)},findObject(e,r){var t=be.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{e=(n=be.lookupPath(e,{follow:!r})).path}catch(o){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=be.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=ne.basename(e),n=be.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(o){t.error=o.errno}return t},createPath(e,r,t,n){e="string"==typeof e?e:be.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=ne.join2(e,a);try{be.mkdir(i)}catch(s){if(20!=s.errno)throw s}e=i}}return i},createFile(e,r,t,n,o){var a=ne.join2("string"==typeof e?e:be.getPath(e),r),i=_e(n,o);return be.create(a,i)},createDataFile(e,r,t,n,o,a){var i=r;e&&(e="string"==typeof e?e:be.getPath(e),i=r?ne.join2(e,r):e);var s=_e(n,o),u=be.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),c=0,d=t.length;c<d;++c)l[c]=t.charCodeAt(c);t=l}be.chmod(u,146|s);var f=be.open(u,577);be.write(f,t,0,t.length,0,a),be.close(f),be.chmod(u,s)}},createDevice(e,r,t,n){var o=ne.join2("string"==typeof e?e:be.getPath(e),r),a=_e(!!t,!!n);be.createDevice.major??=64;var i=be.makedev(be.createDevice.major++,0);return be.registerDevice(i,{open(e){e.seekable=!1},close(e){n?.buffer?.length&&n(10)},read(e,r,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(l){throw new be.ErrnoError(29)}if(void 0===u&&0===i)throw new be.ErrnoError(6);if(null==u)break;i++,r[n+s]=u}return i&&(e.node.atime=Date.now()),i},write(e,r,t,o,a){for(var i=0;i<o;i++)try{n(r[t+i])}catch(s){throw new be.ErrnoError(29)}return o&&(e.node.mtime=e.node.ctime=Date.now()),i}}),be.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.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{e.contents=i(e.url),e.usedBytes=e.contents.length}catch(r){throw new be.ErrnoError(29)}},createLazyFile(e,r,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=be.createFile(e,r,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(e,r,t,n,o){var a=e.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++)r[t+s]=a[o+s];else for(s=0;s<i;s++)r[t+s]=a.get(o+s);return i}return Object.keys(i.stream_ops).forEach(e=>{var r=i.stream_ops[e];s[e]=(...e)=>(be.forceLoadFile(i),r(...e))}),s.read=(e,r,t,n,o)=>(be.forceLoadFile(i),u(e,r,t,n,o)),s.mmap=(e,r,t,n,o)=>{be.forceLoadFile(i);var a=me();if(!a)throw new be.ErrnoError(48);return u(e,p,a,r,t),{ptr:a,allocated:!0}},i.stream_ops=s,i}},ke={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(ne.isAbs(r))return r;var n;if(n=-100===e?be.cwd():ke.getStreamFromFD(e).path,0==r.length){if(!t)throw new be.ErrnoError(44);return n}return n+"/"+r},writeStat(e,r){w[e>>2]=r.dev,w[e+4>>2]=r.mode,y[e+8>>2]=r.nlink,w[e+12>>2]=r.uid,w[e+16>>2]=r.gid,w[e+20>>2]=r.rdev,_[e+24>>3]=BigInt(r.size),w[e+32>>2]=4096,w[e+36>>2]=r.blocks;var t=r.atime.getTime(),n=r.mtime.getTime(),o=r.ctime.getTime();return _[e+40>>3]=BigInt(Math.floor(t/1e3)),y[e+48>>2]=t%1e3*1e3*1e3,_[e+56>>3]=BigInt(Math.floor(n/1e3)),y[e+64>>2]=n%1e3*1e3*1e3,_[e+72>>3]=BigInt(Math.floor(o/1e3)),y[e+80>>2]=o%1e3*1e3*1e3,_[e+88>>3]=BigInt(r.ino),0},writeStatFs(e,r){w[e+4>>2]=r.bsize,w[e+40>>2]=r.bsize,w[e+8>>2]=r.blocks,w[e+12>>2]=r.bfree,w[e+16>>2]=r.bavail,w[e+20>>2]=r.files,w[e+24>>2]=r.ffree,w[e+28>>2]=r.fsid,w[e+44>>2]=r.flags,w[e+36>>2]=r.namelen},doMsync(e,r,t,n,o){if(!be.isFile(r.node.mode))throw new be.ErrnoError(43);if(2&n)return 0;var a=h.slice(e,e+t);be.msync(r,a,o,t,n)},getStreamFromFD:e=>be.getStreamChecked(e),varargs:void 0,getStr:e=>J(e)};function xe(e,r,t){ke.varargs=t;try{var n=ke.getStreamFromFD(e);switch(r){case 0:if((o=re())<0)return-28;for(;be.streams[o];)o++;return be.dupStream(n,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var o=re();return n.flags|=o,0;case 12:return o=te(),v[o+0>>1]=2,0}return-28}catch(a){if(void 0===be||"ErrnoError"!==a.name)throw a;return-a.errno}}function Pe(e,r,t){ke.varargs=t;try{var n=ke.getStreamFromFD(e);switch(r){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=te();w[a>>2]=o.c_iflag||0,w[a+4>>2]=o.c_oflag||0,w[a+8>>2]=o.c_cflag||0,w[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)p[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=te();var s=w[a>>2],u=w[a+4>>2],l=w[a+8>>2],c=w[a+12>>2],d=[];for(i=0;i<32;i++)d.push(p[a+i+17]);return n.tty.ops.ioctl_tcsets(n.tty,r,{c_iflag:s,c_oflag:u,c_cflag:l,c_lflag:c,c_cc:d})}return 0;case 21519:return n.tty?(a=te(),w[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=te(),be.ioctl(n,r,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var f=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=te(),v[a>>1]=f[0],v[a+2>>1]=f[1]}return 0;default:return-28}}catch(m){if(void 0===be||"ErrnoError"!==m.name)throw m;return-m.errno}}function Ae(e,r,t,n){ke.varargs=n;try{r=ke.getStr(r),r=ke.calculateAt(e,r);var o=n?re():0;return be.open(r,t,o).fd}catch(a){if(void 0===be||"ErrnoError"!==a.name)throw a;return-a.errno}}var Se=()=>I(""),Te={},Fe=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function De(e){return this.fromWireType(y[e>>2])}var Be,Ce={},$e={},Le={},je=s.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Ie=e=>{throw new je(e)},Ne=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&Ie("Mismatched type converter count");for(var o=0;o<e.length;++o)Ge(e[o],n[o])}e.forEach(e=>Le[e]=r);var o=new Array(r.length),a=[],i=0;r.forEach((e,r)=>{$e.hasOwnProperty(e)?o[r]=$e[e]:(a.push(e),Ce.hasOwnProperty(e)||(Ce[e]=[]),Ce[e].push(()=>{o[r]=$e[e],++i===a.length&&n(o)}))}),0===a.length&&n(o)},We=e=>{var r=Te[e];delete Te[e];var t=r.rawConstructor,n=r.rawDestructor,o=r.fields,a=o.map(e=>e.getterReturnType).concat(o.map(e=>e.setterArgumentType));Ne([e],a,e=>{var a={};return o.forEach((r,t)=>{var n=r.fieldName,i=e[t],s=e[t].optional,u=r.getter,l=r.getterContext,c=e[t+o.length],d=r.setter,f=r.setterContext;a[n]={read:e=>i.fromWireType(u(l,e)),write:(e,r)=>{var t=[];d(f,e,c.toWireType(t,r)),Fe(t)},optional:s}}),[{name:r.name,fromWireType:e=>{var r={};for(var t in a)r[t]=a[t].read(e);return n(e),r},toWireType:(e,r)=>{for(var o in a)if(!(o in r)&&!a[o].optional)throw new TypeError(`Missing field: "${o}"`);var i=t();for(o in a)a[o].write(i,r[o]);return null!==e&&e.push(n,i),i},argPackAdvance:qe,readValueFromPointer:De,destructorFunction:n}]})},Me=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},Oe=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);Be=e},Re=e=>{for(var r="",t=e;h[t];)r+=Be[h[t++]];return r},ze=s.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Ue=e=>{throw new ze(e)};function Ve(e,r,t={}){var n=r.name;if(e||Ue(`type "${n}" must have a positive integer typeid pointer`),$e.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;Ue(`Cannot register type '${n}' twice`)}if($e[e]=r,delete Le[e],Ce.hasOwnProperty(e)){var o=Ce[e];delete Ce[e],o.forEach(e=>e())}}function Ge(e,r,t={}){return Ve(e,r,t)}var Xe=(e,r,t)=>{switch(r){case 1:return t?e=>p[e]:e=>h[e];case 2:return t?e=>v[e>>1]:e=>g[e>>1];case 4:return t?e=>w[e>>2]:e=>y[e>>2];case 8:return t?e=>_[e>>3]:e=>b[e>>3];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},He=(e,r,t,n,o)=>{var a=-1!=(r=Re(r)).indexOf("u");Ge(e,{name:r,fromWireType:e=>e,toWireType:function(e,r){if("bigint"!=typeof r&&"number"!=typeof r)throw new TypeError(`Cannot convert "${Me(r)}" to ${this.name}`);return"number"==typeof r&&(r=BigInt(r)),r},argPackAdvance:qe,readValueFromPointer:Xe(r,t,!a),destructorFunction:null})},qe=8,Qe=(e,r,t,n)=>{Ge(e,{name:r=Re(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:qe,readValueFromPointer:function(e){return this.fromWireType(h[e])},destructorFunction:null})},Ye=[],Je=[],Ke=e=>{e>9&&0===--Je[e+1]&&(Je[e]=void 0,Ye.push(e))},Ze=()=>Je.length/2-5-Ye.length,er=()=>{Je.push(0,1,void 0,1,null,1,!0,1,!1,1),s.count_emval_handles=Ze},rr={toValue:e=>(e||Ue(`Cannot use deleted val. handle = ${e}`),Je[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=Ye.pop()||Je.length;return Je[r]=e,Je[r+1]=1,r}}}},tr={name:"emscripten::val",fromWireType:e=>{var r=rr.toValue(e);return Ke(e),r},toWireType:(e,r)=>rr.toHandle(r),argPackAdvance:qe,readValueFromPointer:De,destructorFunction:null},nr=e=>Ge(e,tr),or=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(...n){return e[r].overloadTable.hasOwnProperty(n.length)||Ue(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[n.length].apply(this,n)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},ar=(e,r,t)=>{s.hasOwnProperty(e)?((void 0===t||void 0!==s[e].overloadTable&&void 0!==s[e].overloadTable[t])&&Ue(`Cannot register public name '${e}' twice`),or(s,e,e),s[e].overloadTable.hasOwnProperty(t)&&Ue(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),s[e].overloadTable[t]=r):(s[e]=r,s[e].argCount=t)},ir=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(p[e])}:function(e){return this.fromWireType(h[e])};case 2:return t?function(e){return this.fromWireType(v[e>>1])}:function(e){return this.fromWireType(g[e>>1])};case 4:return t?function(e){return this.fromWireType(w[e>>2])}:function(e){return this.fromWireType(y[e>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},sr=(e,r,t,n)=>{function o(){}r=Re(r),o.values={},Ge(e,{name:r,constructor:o,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,argPackAdvance:qe,readValueFromPointer:ir(r,t,n),destructorFunction:null}),ar(r,o)},ur=(e,r)=>Object.defineProperty(r,"name",{value:e}),lr=e=>{var r=Bo(e),t=Re(r);return Co(r),t},cr=(e,r)=>{var t=$e[e];return void 0===t&&Ue(`${r} has unknown type ${lr(e)}`),t},dr=(e,r,t)=>{var n=cr(e,"enum");r=Re(r);var o=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ur(`${n.name}_${r}`,function(){})}});o.values[t]=a,o[r]=a},fr=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(E[e>>2])};case 8:return function(e){return this.fromWireType(k[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},mr=(e,r,t)=>{Ge(e,{name:r=Re(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:qe,readValueFromPointer:fr(r,t),destructorFunction:null})};function pr(e){for(var r=1;r<e.length;++r)if(null!==e[r]&&void 0===e[r].destructorFunction)return!0;return!1}function hr(e,r,t,n,o,a){var i=r.length;i<2&&Ue("argTypes array size mismatch! Must at least get return value and 'this' types!"),r[1];var s=pr(r),u="void"!==r[0].name,l=i-2,c=new Array(l),d=[],f=[];return ur(e,function(...e){var t;f.length=0,d.length=1,d[0]=o;for(var a=0;a<l;++a)c[a]=r[a+2].toWireType(f,e[a]),d.push(c[a]);function i(e){if(s)Fe(f);else for(var n=2;n<r.length;n++){var o=1===n?t:c[n-2];null!==r[n].destructorFunction&&r[n].destructorFunction(o)}if(u)return r[0].fromWireType(e)}return i(n(...d))})}var vr,gr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(y[r+4*n>>2]);return t},wr=(e,r,t)=>{s.hasOwnProperty(e)||Ie("Replacing nonexistent public symbol"),void 0!==s[e].overloadTable&&void 0!==t?s[e].overloadTable[t]=r:(s[e]=r,s[e].argCount=t)},yr=[],Er=e=>{var r=yr[e];return r||(yr[e]=r=vr.get(e)),r},_r=(e,r,t=!1)=>{function n(){return Er(r)}e=Re(e);var o=n();return"function"!=typeof o&&Ue(`unknown function pointer with signature ${e}: ${r}`),o};class br extends Error{}var kr,xr=(e,r)=>{var t=[],n={};function o(e){n[e]||$e[e]||(Le[e]?Le[e].forEach(o):(t.push(e),n[e]=!0))}throw r.forEach(o),new br(`${e}: `+t.map(lr).join([", "]))},Pr=e=>{const r=(e=e.trim()).indexOf("(");return-1===r?e:e.slice(0,r)},Ar=(e,r,t,n,o,a,i,s)=>{var u=gr(r,t);e=Re(e),e=Pr(e),o=_r(n,o,i),ar(e,function(){xr(`Cannot call ${e} due to unbound types`,u)},r-1),Ne([],u,t=>{var n=[t[0],null].concat(t.slice(1));return wr(e,hr(e,n,null,o,a),r-1),[]})},Sr=(e,r,t,n,o)=>{r=Re(r);var a=e=>e;if(0===n){var i=32-8*t;a=e=>e<<i>>>i}var s=r.includes("unsigned"),u=(e,r)=>{};Ge(e,{name:r,fromWireType:a,toWireType:s?function(e,r){return u(r,this.name),r>>>0}:function(e,r){return u(r,this.name),r},argPackAdvance:qe,readValueFromPointer:Xe(r,t,0!==n),destructorFunction:null})},Tr=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];function o(e){var r=y[e>>2],t=y[e+4>>2];return new n(p.buffer,t,r)}Ge(e,{name:t=Re(t),fromWireType:o,argPackAdvance:qe,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},Fr=(e,r,t)=>le(e,h,r,t),Dr=(e,r)=>{Ge(e,{name:r=Re(r),fromWireType(e){for(var r,t=y[e>>2],n=e+4,o=n,a=0;a<=t;++a){var i=n+a;if(a==t||0==h[i]){var s=J(o,i-o);void 0===r?r=s:(r+=String.fromCharCode(0),r+=s),o=i+1}}return Co(e),r},toWireType(e,r){var t;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var n="string"==typeof r;n||ArrayBuffer.isView(r)&&1==r.BYTES_PER_ELEMENT||Ue("Cannot pass non-string to std::string"),t=n?ue(r):r.length;var o=$o(4+t+1),a=o+4;return y[o>>2]=t,n?Fr(r,a,t+1):h.set(r,a),null!==e&&e.push(Co,o),o},argPackAdvance:qe,readValueFromPointer:De,destructorFunction(e){Co(e)}})},Br="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Cr=(e,r)=>{for(var t=e,n=t>>1,o=n+r/2;!(n>=o)&&g[n];)++n;if((t=n<<1)-e>32&&Br)return Br.decode(h.subarray(e,t));for(var a="",i=0;!(i>=r/2);++i){var s=v[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},$r=(e,r,t)=>{if(t??=2147483647,t<2)return 0;for(var n=r,o=(t-=2)<2*e.length?t/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);v[r>>1]=i,r+=2}return v[r>>1]=0,r-n},Lr=e=>2*e.length,jr=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var o=w[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},Ir=(e,r,t)=>{if(t??=2147483647,t<4)return 0;for(var n=r,o=n+t-4,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a)),w[r>>2]=i,(r+=4)+4>o)break}return w[r>>2]=0,r-n},Nr=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},Wr=(e,r,t)=>{var n,o,a,i;t=Re(t),2===r?(n=Cr,o=$r,i=Lr,a=e=>g[e>>1]):4===r&&(n=jr,o=Ir,i=Nr,a=e=>y[e>>2]),Ge(e,{name:t,fromWireType:e=>{for(var t,o=y[e>>2],i=e+4,s=0;s<=o;++s){var u=e+4+s*r;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+r}}return Co(e),t},toWireType:(e,n)=>{"string"!=typeof n&&Ue(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),s=$o(4+a+r);return y[s>>2]=a/r,o(n,s+4,a+r),null!==e&&e.push(Co,s),s},argPackAdvance:qe,readValueFromPointer:De,destructorFunction(e){Co(e)}})},Mr=(e,r,t,n,o,a)=>{Te[e]={name:Re(r),rawConstructor:_r(t,n),rawDestructor:_r(o,a),fields:[]}},Or=(e,r,t,n,o,a,i,s,u,l)=>{Te[e].fields.push({fieldName:Re(r),getterReturnType:t,getter:_r(n,o),getterContext:a,setterArgumentType:i,setter:_r(s,u),setterContext:l})},Rr=(e,r)=>{Ge(e,{isVoid:!0,name:r=Re(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},zr=e=>{do{var r=y[e>>2],t=y[(e+=4)>>2],n=y[(e+=4)>>2];e+=4;var o=J(r);be.createPath("/",ne.dirname(o),!0,!0),be.createDataFile(o,null,p.subarray(n,n+t),!0,!0,!0)}while(y[e>>2])},Ur=(e,r,t)=>{var n=[],o=e.toWireType(n,t);return n.length&&(y[r>>2]=rr.toHandle(n)),o},Vr=(e,r,t)=>(e=rr.toValue(e),r=cr(r,"emval::as"),Ur(r,t,e)),Gr={},Xr=e=>{var r=Gr[e];return void 0===r?Re(e):r},Hr=[],qr=(e,r,t,n,o)=>(e=Hr[e])(r=rr.toValue(r),r[t=Xr(t)],n,o),Qr=()=>{if("object"==typeof globalThis)return globalThis;function r(e){e.$$$embind_global$$$=e;var r="object"==typeof $$$embind_global$$$&&e.$$$embind_global$$$==e;return r||delete e.$$$embind_global$$$,r}if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof e&&r(e)?$$$embind_global$$$=e:"object"==typeof self&&r(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")},Yr=e=>0===e?rr.toHandle(Qr()):(e=Xr(e),rr.toHandle(Qr()[e])),Jr=e=>{var r=Hr.length;return Hr.push(e),r},Kr=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=cr(y[r+4*n>>2],`parameter ${n}`);return t},Zr=Reflect.construct,et=(e,r,t)=>{var n=Kr(e,r),o=n.shift();e--;var a=new Array(e),i=(r,i,s,u)=>{for(var l=0,c=0;c<e;++c)a[c]=n[c].readValueFromPointer(u+l),l+=n[c].argPackAdvance;var d=1===t?Zr(i,a):i.apply(r,a);return Ur(o,s,d)},s=`methodCaller<(${n.map(e=>e.name).join(", ")}) => ${o.name}>`;return Jr(ur(s,i))},rt=(e,r)=>(e=rr.toValue(e),r=rr.toValue(r),rr.toHandle(e[r])),tt=e=>{e>9&&(Je[e+1]+=1)},nt=(e,r)=>(e=rr.toValue(e))instanceof(r=rr.toValue(r)),ot=e=>"number"==typeof(e=rr.toValue(e)),at=e=>{e=rr.toValue(e);for(var r=new Array(e.length),t=0;t<e.length;t++)r[t]=e[t];return rr.toHandle(r)},it=e=>rr.toHandle(Xr(e)),st=()=>rr.toHandle({}),ut=e=>{var r=rr.toValue(e);Fe(r),Ke(e)},lt=(e,r,t)=>{e=rr.toValue(e),r=rr.toValue(r),t=rr.toValue(t),e[r]=t},ct=(e,r)=>{var t=(e=cr(e,"_emval_take_value")).readValueFromPointer(r);return rr.toHandle(t)},dt=(e,r,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);y[e>>2]=60*l,w[r>>2]=Number(s!=u);var c=e=>{var r=e>=0?"-":"+",t=Math.abs(e);return`UTC${r}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},d=c(s),f=c(u);u<s?(Fr(d,t,17),Fr(f,n,17)):(Fr(d,n,17),Fr(f,t,17))},ft=()=>2147483648,mt=(e,r)=>Math.ceil(e/r)*r,pt=e=>{var r=(e-m.buffer.byteLength+65535)/65536|0;try{return m.grow(r),S(),1}catch(t){}},ht=e=>{var r=h.length;e>>>=0;var t=ft();if(e>t)return!1;for(var n=1;n<=4;n*=2){var o=r*(1+.2/n);o=Math.min(o,e+100663296);var a=Math.min(t,mt(Math.max(e,o),65536));if(pt(a))return!0}return!1},vt=e=>!!(e.dibvbi=e.getExtension("WEBGL_draw_instanced_base_vertex_base_instance")),gt=e=>!!(e.mdibvbi=e.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance")),wt=e=>!!(e.extPolygonOffsetClamp=e.getExtension("EXT_polygon_offset_clamp")),yt=e=>!!(e.extClipControl=e.getExtension("EXT_clip_control")),Et=e=>!!(e.webglPolygonMode=e.getExtension("WEBGL_polygon_mode")),_t=e=>!!(e.multiDrawWebgl=e.getExtension("WEBGL_multi_draw")),bt=e=>{var r=["EXT_color_buffer_float","EXT_conservative_depth","EXT_disjoint_timer_query_webgl2","EXT_texture_norm16","NV_shader_noperspective_interpolation","WEBGL_clip_cull_distance","EXT_clip_control","EXT_color_buffer_half_float","EXT_depth_clamp","EXT_float_blend","EXT_polygon_offset_clamp","EXT_texture_compression_bptc","EXT_texture_compression_rgtc","EXT_texture_filter_anisotropic","KHR_parallel_shader_compile","OES_texture_float_linear","WEBGL_blend_func_extended","WEBGL_compressed_texture_astc","WEBGL_compressed_texture_etc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_debug_renderer_info","WEBGL_debug_shaders","WEBGL_lose_context","WEBGL_multi_draw","WEBGL_polygon_mode"];return(e.getSupportedExtensions()||[]).filter(e=>r.includes(e))},kt={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],shaders:[],vaos:[],contexts:[],offscreenCanvases:{},queries:[],samplers:[],transformFeedbacks:[],syncs:[],stringCache:{},stringiCache:{},unpackAlignment:4,unpackRowLength:0,recordError:e=>{kt.lastError||(kt.lastError=e)},getNewId:e=>{for(var r=kt.counter++,t=e.length;t<r;t++)e[t]=null;return r},genObject:(e,r,t,n)=>{for(var o=0;o<e;o++){var a=kr[t](),i=a&&kt.getNewId(n);a?(a.name=i,n[i]=a):kt.recordError(1282),w[r+4*o>>2]=i}},getSource:(e,r,t,n)=>{for(var o="",a=0;a<r;++a){var i=n?y[n+4*a>>2]:void 0;o+=J(y[t+4*a>>2],i)}return o},createContext:(e,r)=>{if(s.preinitializedWebGLContext){var t=s.preinitializedWebGLContext;r.majorVersion=Number(t.getParameter(t.VERSION).match(/^WebGL (\d+).\d+/)[1])}else{if(!e.getContextSafariWebGL2Fixed){function n(r,t){var n=e.getContextSafariWebGL2Fixed(r,t);return"webgl"==r==n instanceof WebGLRenderingContext?n:null}e.getContextSafariWebGL2Fixed=e.getContext,e.getContext=n}t=e.getContext("webgl2",r)}return t?kt.registerContext(t,r):0},registerContext:(e,r)=>{var t=kt.getNewId(kt.contexts),n={handle:t,attributes:r,version:r.majorVersion,GLctx:e};return e.canvas&&(e.canvas.GLctxObject=n),kt.contexts[t]=n,(void 0===r.enableExtensionsByDefault||r.enableExtensionsByDefault)&&kt.initExtensions(n),t},makeContextCurrent:e=>(kt.currentContext=kt.contexts[e],s.ctx=kr=kt.currentContext?.GLctx,!(e&&!kr)),getContext:e=>kt.contexts[e],deleteContext:e=>{kt.currentContext===kt.contexts[e]&&(kt.currentContext=null),"object"==typeof JSEvents&&JSEvents.removeAllHandlersOnTarget(kt.contexts[e].GLctx.canvas),kt.contexts[e]?.GLctx.canvas&&(kt.contexts[e].GLctx.canvas.GLctxObject=void 0),kt.contexts[e]=null},initExtensions:e=>{if(e||=kt.currentContext,!e.initExtensionsDone){e.initExtensionsDone=!0;var r=e.GLctx;_t(r),wt(r),yt(r),Et(r),vt(r),gt(r),e.version>=2&&(r.disjointTimerQueryExt=r.getExtension("EXT_disjoint_timer_query_webgl2")),(e.version<2||!r.disjointTimerQueryExt)&&(r.disjointTimerQueryExt=r.getExtension("EXT_disjoint_timer_query")),bt(r).forEach(e=>{e.includes("lose_context")||e.includes("debug")||r.getExtension(e)})}}},xt=["default","low-power","high-performance"],Pt=e=>e>2?J(e):e,At=[0,document,window],St=e=>(e=Pt(e),At[e]||document.querySelector(e)),Tt=(e,r)=>{var t=r>>2,n=w[t+2],o={alpha:!!p[r+0],depth:!!p[r+1],stencil:!!p[r+2],antialias:!!p[r+3],premultipliedAlpha:!!p[r+4],preserveDrawingBuffer:!!p[r+5],powerPreference:xt[n],failIfMajorPerformanceCaveat:!!p[r+12],majorVersion:w[t+4],minorVersion:w[t+5],enableExtensionsByDefault:p[r+24],explicitSwapControl:p[r+25],proxyContextToMainThread:w[t+7],renderViaOffscreenBackBuffer:p[r+32]},a=St(e);return a?o.explicitSwapControl?0:kt.createContext(a,o):0},Ft=e=>kt.makeContextCurrent(e)?0:-5,Dt={},Bt=()=>l||"./this.program",Ct=()=>{if(!Ct.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Bt()};for(var r in Dt)void 0===Dt[r]?delete e[r]:e[r]=Dt[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);Ct.strings=t}return Ct.strings},$t=(e,r)=>{var t=0,n=0;for(var o of Ct()){var a=r+t;y[e+n>>2]=a,t+=Fr(o,a,1/0)+1,n+=4}return 0},Lt=(e,r)=>{var t=Ct();y[e>>2]=t.length;var n=0;for(var o of t)n+=ue(o)+1;return y[r>>2]=n,0};function jt(e){try{var r=ke.getStreamFromFD(e);return be.close(r),0}catch(t){if(void 0===be||"ErrnoError"!==t.name)throw t;return t.errno}}var It=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=y[r>>2],s=y[r+4>>2];r+=8;var u=be.read(e,p,i,s,n);if(u<0)return-1;if(o+=u,u<s)break}return o};function Nt(e,r,t,n){try{var o=ke.getStreamFromFD(e),a=It(o,r,t);return y[n>>2]=a,0}catch(i){if(void 0===be||"ErrnoError"!==i.name)throw i;return i.errno}}var Wt=9007199254740992,Mt=-9007199254740992,Ot=e=>e<Mt||e>Wt?NaN:Number(e);function Rt(e,r,t,n){r=Ot(r);try{if(isNaN(r))return 61;var o=ke.getStreamFromFD(e);return be.llseek(o,r,t),_[n>>3]=BigInt(o.position),o.getdents&&0===r&&0===t&&(o.getdents=null),0}catch(a){if(void 0===be||"ErrnoError"!==a.name)throw a;return a.errno}}var zt=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=y[r>>2],s=y[r+4>>2];r+=8;var u=be.write(e,p,i,s,n);if(u<0)return-1;if(o+=u,u<s)break}return o};function Ut(e,r,t,n){try{var o=ke.getStreamFromFD(e),a=zt(o,r,t);return y[n>>2]=a,0}catch(i){if(void 0===be||"ErrnoError"!==i.name)throw i;return i.errno}}var Vt,Gt=e=>kr.activeTexture(e),Xt=(e,r)=>{kr.attachShader(kt.programs[e],kt.shaders[r])},Ht=(e,r,t)=>{kr.bindAttribLocation(kt.programs[e],r,J(t))},qt=(e,r)=>{35051==e?kr.currentPixelPackBufferBinding=r:35052==e&&(kr.currentPixelUnpackBufferBinding=r),kr.bindBuffer(e,kt.buffers[r])},Qt=(e,r,t)=>{kr.bindBufferBase(e,r,kt.buffers[t])},Yt=(e,r,t,n,o)=>{kr.bindBufferRange(e,r,kt.buffers[t],n,o)},Jt=(e,r)=>{kr.bindFramebuffer(e,kt.framebuffers[r])},Kt=(e,r)=>{kr.bindTexture(e,kt.textures[r])},Zt=e=>{kr.bindVertexArray(kt.vaos[e])},en=(e,r,t,n)=>{t&&r?kr.bufferData(e,h,n,t,r):kr.bufferData(e,r,n)},rn=(e,r,t,n)=>{t&&kr.bufferSubData(e,r,h,n,t)},tn=e=>kr.clear(e),nn=(e,r,t,n)=>kr.clearBufferfi(e,r,t,n),on=(e,r,t)=>{kr.clearBufferfv(e,r,E,t>>2)},an=(e,r,t)=>{kr.clearBufferiv(e,r,w,t>>2)},sn=(e,r,t)=>{kr.clearBufferuiv(e,r,y,t>>2)},un=(e,r,t,n)=>kr.clearColor(e,r,t,n),ln=e=>kr.clearDepth(e),cn=e=>kr.clearStencil(e),dn=(e,r,t,n)=>{kr.colorMask(!!e,!!r,!!t,!!n)},fn=e=>{kr.compileShader(kt.shaders[e])},mn=()=>{var e=kt.getNewId(kt.programs),r=kr.createProgram();return r.name=e,r.maxUniformLength=r.maxAttributeLength=r.maxUniformBlockNameLength=0,r.uniformIdCounter=1,kt.programs[e]=r,e},pn=e=>{var r=kt.getNewId(kt.shaders);return kt.shaders[r]=kr.createShader(e),r},hn=(e,r)=>{for(var t=0;t<e;t++){var n=w[r+4*t>>2],o=kt.buffers[n];o&&(kr.deleteBuffer(o),o.name=0,kt.buffers[n]=null,n==kr.currentPixelPackBufferBinding&&(kr.currentPixelPackBufferBinding=0),n==kr.currentPixelUnpackBufferBinding&&(kr.currentPixelUnpackBufferBinding=0))}},vn=(e,r)=>{for(var t=0;t<e;++t){var n=w[r+4*t>>2],o=kt.framebuffers[n];o&&(kr.deleteFramebuffer(o),o.name=0,kt.framebuffers[n]=null)}},gn=e=>{if(e){var r=kt.programs[e];r?(kr.deleteProgram(r),r.name=0,kt.programs[e]=null):kt.recordError(1281)}},wn=(e,r)=>{for(var t=0;t<e;t++){var n=w[r+4*t>>2],o=kt.queries[n];o&&(kr.deleteQuery(o),kt.queries[n]=null)}},yn=e=>{if(e){var r=kt.shaders[e];r?(kr.deleteShader(r),kt.shaders[e]=null):kt.recordError(1281)}},En=(e,r)=>{for(var t=0;t<e;t++){var n=w[r+4*t>>2],o=kt.textures[n];o&&(kr.deleteTexture(o),o.name=0,kt.textures[n]=null)}},_n=(e,r)=>{for(var t=0;t<e;t++){var n=w[r+4*t>>2];kr.deleteVertexArray(kt.vaos[n]),kt.vaos[n]=null}},bn=(e,r,t)=>{kr.drawArrays(e,r,t)},kn=[],xn=(e,r)=>{for(var t=kn[e],n=0;n<e;n++)t[n]=w[r+4*n>>2];kr.drawBuffers(t)},Pn=(e,r,t,n)=>{kr.drawElements(e,r,t,n)},An=(e,r,t,n,o)=>{kr.drawElementsInstanced(e,r,t,n,o)},Sn=e=>{kr.enableVertexAttribArray(e)},Tn=(e,r,t,n,o)=>{kr.framebufferTexture2D(e,r,t,kt.textures[n],o)},Fn=(e,r)=>{kt.genObject(e,r,"createBuffer",kt.buffers)},Dn=(e,r)=>{kt.genObject(e,r,"createFramebuffer",kt.framebuffers)},Bn=(e,r)=>{kt.genObject(e,r,"createQuery",kt.queries)},Cn=(e,r)=>{kt.genObject(e,r,"createTexture",kt.textures)},$n=(e,r)=>{kt.genObject(e,r,"createVertexArray",kt.vaos)},Ln=e=>kr.generateMipmap(e),jn=(e,r)=>{y[e>>2]=r;var t=y[e>>2];y[e+4>>2]=(r-t)/4294967296},In=()=>{var e=bt(kr);return e=e.concat(e.map(e=>"GL_"+e))},Nn=(e,r,t)=>{if(r){var n=void 0;switch(e){case 36346:n=1;break;case 36344:return;case 34814:case 36345:n=0;break;case 34466:var o=kr.getParameter(34467);n=o?o.length:0;break;case 33309:if(kt.currentContext.version<2)return void kt.recordError(1282);n=In().length;break;case 33307:case 33308:if(kt.currentContext.version<2)return void kt.recordError(1280);n=33307==e?3:0}if(void 0===n){var a=kr.getParameter(e);switch(typeof a){case"number":n=a;break;case"boolean":n=a?1:0;break;case"string":return void kt.recordError(1280);case"object":if(null===a)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:n=0;break;default:return void kt.recordError(1280)}else{if(a instanceof Float32Array||a instanceof Uint32Array||a instanceof Int32Array||a instanceof Array){for(var i=0;i<a.length;++i)switch(t){case 0:w[r+4*i>>2]=a[i];break;case 2:E[r+4*i>>2]=a[i];break;case 4:p[r+i]=a[i]?1:0}return}try{n=0|a.name}catch(s){return kt.recordError(1280),void P(`GL_INVALID_ENUM in glGet${t}v: Unknown object returned from WebGL getParameter(${e})! (error: ${s})`)}}break;default:return kt.recordError(1280),void P(`GL_INVALID_ENUM in glGet${t}v: Native code calling glGet${t}v(${e}) and it returns ${a} of type ${typeof a}!`)}}switch(t){case 1:jn(r,n);break;case 0:w[r>>2]=n;break;case 2:E[r>>2]=n;break;case 4:p[r]=n?1:0}}else kt.recordError(1281)},Wn=(e,r)=>Nn(e,r,0),Mn=(e,r,t)=>{if(t){var n,o=kt.queries[e];n=kt.currentContext.version<2?kr.disjointTimerQueryExt.getQueryObjectEXT(o,r):kr.getQueryParameter(o,r),jn(t,"boolean"==typeof n?n?1:0:n)}else kt.recordError(1281)},On=(e,r,t)=>{if(t){var n,o=kt.queries[e],a=kr.disjointTimerQueryExt.getQueryObjectEXT(o,r);n="boolean"==typeof a?a?1:0:a,w[t>>2]=n}else kt.recordError(1281)},Rn=(e,r)=>kr.getUniformBlockIndex(kt.programs[e],J(r)),zn=e=>parseInt(e),Un=e=>"]"==e.slice(-1)&&e.lastIndexOf("["),Vn=e=>{var r,t,n=e.uniformLocsById,o=e.uniformSizeAndIdsByName;if(!n){e.uniformLocsById=n={},e.uniformArrayNamesById={};var a=kr.getProgramParameter(e,35718);for(r=0;r<a;++r){var i=kr.getActiveUniform(e,r),s=i.name,u=i.size,l=Un(s),c=l>0?s.slice(0,l):s,d=e.uniformIdCounter;for(e.uniformIdCounter+=u,o[c]=[u,d],t=0;t<u;++t)n[d]=t,e.uniformArrayNamesById[d++]=c}}},Gn=(e,r)=>{if(r=J(r),e=kt.programs[e]){Vn(e);var t=e.uniformLocsById,n=0,o=r,a=Un(r);a>0&&(n=zn(r.slice(a+1))>>>0,o=r.slice(0,a));var i=e.uniformSizeAndIdsByName[o];if(i&&n<i[0]&&(t[n+=i[1]]=t[n]||kr.getUniformLocation(e,r)))return n}else kt.recordError(1281);return-1},Xn=e=>{e=kt.programs[e],kr.linkProgram(e),e.uniformLocsById=0,e.uniformSizeAndIdsByName={}},Hn=(e,r)=>{3317==e?kt.unpackAlignment=r:3314==e&&(kt.unpackRowLength=r),kr.pixelStorei(e,r)},qn=(e,r)=>{kr.disjointTimerQueryExt.queryCounterEXT(kt.queries[e],r)},Qn=e=>kr.readBuffer(e),Yn=e=>0==(e-=5120)?p:1==e?h:2==e?v:4==e?w:6==e?E:5==e||28922==e||28520==e||30779==e||30782==e?y:g,Jn=(e,r)=>e>>>31-Math.clz32(r.BYTES_PER_ELEMENT),Kn=(e,r,t,n,o,a,i)=>{if(kr.currentPixelPackBufferBinding)kr.readPixels(e,r,t,n,o,a,i);else{var s=Yn(a),u=Jn(i,s);kr.readPixels(e,r,t,n,o,a,s,u)}},Zn=(e,r,t,n)=>{var o=kt.getSource(e,r,t,n);kr.shaderSource(kt.shaders[e],o)},eo=(e,r,t,n,o,a,i,s,u,l)=>{if(kr.currentPixelUnpackBufferBinding)kr.texImage3D(e,r,t,n,o,a,i,s,u,l);else if(l){var c=Yn(u);kr.texImage3D(e,r,t,n,o,a,i,s,u,c,Jn(l,c))}else kr.texImage3D(e,r,t,n,o,a,i,s,u,null)},ro=(e,r,t)=>kr.texParameteri(e,r,t),to=(e,r,t,n,o)=>kr.texStorage2D(e,r,t,n,o),no=(e,r,t)=>{function n(e,r){return e+r-1&-r}return r*n((kt.unpackRowLength||e)*t,kt.unpackAlignment)},oo=e=>({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[e-6402]||1),ao=(e,r,t,n,o,a)=>{var i=Yn(e),s=oo(r)*i.BYTES_PER_ELEMENT,u=no(t,n,s);return i.subarray(Jn(o,i),Jn(o+u,i))},io=(e,r,t,n,o,a,i,s,u)=>{if(kr.currentPixelUnpackBufferBinding)kr.texSubImage2D(e,r,t,n,o,a,i,s,u);else if(u){var l=Yn(s);kr.texSubImage2D(e,r,t,n,o,a,i,s,l,Jn(u,l))}else{var c=u?ao(s,i,o,a,u):null;kr.texSubImage2D(e,r,t,n,o,a,i,s,c)}},so=(e,r,t,n,o,a,i,s,u,l,c)=>{if(kr.currentPixelUnpackBufferBinding)kr.texSubImage3D(e,r,t,n,o,a,i,s,u,l,c);else if(c){var d=Yn(l);kr.texSubImage3D(e,r,t,n,o,a,i,s,u,l,d,Jn(c,d))}else kr.texSubImage3D(e,r,t,n,o,a,i,s,u,l,null)},uo=e=>{var r=kr.currentProgram;if(r){var t=r.uniformLocsById[e];return"number"==typeof t&&(r.uniformLocsById[e]=t=kr.getUniformLocation(r,r.uniformArrayNamesById[e]+(t>0?`[${t}]`:""))),t}kt.recordError(1282)},lo=(e,r)=>{kr.uniform1i(uo(e),r)},co=(e,r,t)=>{e=kt.programs[e],kr.uniformBlockBinding(e,r,t)},fo=e=>{e=kt.programs[e],kr.useProgram(e),kr.currentProgram=e},mo=(e,r,t,n,o)=>{kr.vertexAttribIPointer(e,r,t,n,o)},po=(e,r,t,n,o,a)=>{kr.vertexAttribPointer(e,r,t,!!n,o,a)},ho=(e,r)=>{e<128?r.push(e):r.push(e%128|128,e>>7)},vo=e=>{for(var r={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==e[0]?[]:[r[e[0]]]},n=1;n<e.length;++n)t.parameters.push(r[e[n]]);return t},go=(e,r)=>{var t=e.slice(0,1),n=e.slice(1),o={i:127,p:127,j:126,f:125,d:124,e:111};for(var a of(r.push(96),ho(n.length,r),n))r.push(o[a]);"v"==t?r.push(0):r.push(1,o[t])},wo=(e,r)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(vo(r),e);var t=[1];go(r,t);var n=[0,97,115,109,1,0,0,0,1];ho(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:e}}).exports.f},yo=(e,r)=>{if(Vt)for(var t=e;t<e+r;t++){var n=Er(t);n&&Vt.set(n,t)}},Eo=e=>(Vt||(Vt=new WeakMap,yo(0,vr.length)),Vt.get(e)||0),_o=[],bo=()=>{if(_o.length)return _o.pop();try{vr.grow(1)}catch(P){if(!(P instanceof RangeError))throw P;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return vr.length-1},ko=(e,r)=>{vr.set(e,r),yr[e]=vr.get(e)},xo=(e,r)=>{var t=Eo(e);if(t)return t;var n=bo();try{ko(n,e)}catch(P){if(!(P instanceof TypeError))throw P;var o=wo(e,r);ko(n,o)}return Vt.set(e,n),n},Po=be.createPath,Ao=e=>be.unlink(e),So=be.createLazyFile,To=be.createDevice;be.createPreloadedFile=ye,be.staticInit(),s.FS_createPath=be.createPath,s.FS_createDataFile=be.createDataFile,s.FS_createPreloadedFile=be.createPreloadedFile,s.FS_unlink=be.unlink,s.FS_createLazyFile=be.createLazyFile,s.FS_createDevice=be.createDevice,pe.doesNotExistError=new be.ErrnoError(44),pe.doesNotExistError.stack="<generic error, no stack>",Oe(),er();for(let e=0;e<32;++e)kn.push(new Array(e));s.noExitRuntime&&s.noExitRuntime,s.preloadPlugins&&(ge=s.preloadPlugins),s.print&&(x=s.print),s.printErr&&(P=s.printErr),s.wasmBinary&&(f=s.wasmBinary),s.arguments&&s.arguments,s.thisProgram&&(l=s.thisProgram),s.addRunDependency=L,s.removeRunDependency=j,s.addFunction=xo,s.stringToUTF8=Fr,s.lengthBytesUTF8=ue,s.FS_createPreloadedFile=ye,s.FS_unlink=Ao,s.FS_createPath=Po,s.FS_createDevice=To,s.FS_createDataFile=ve,s.FS_createLazyFile=So;var Fo={ba:K,o:ee,$:xe,Ya:Pe,_a:Ae,Za:Se,ia:We,K:He,ga:Qe,ea:nr,L:sr,k:dr,J:mr,e:Ar,i:Sr,f:Tr,fa:Dr,A:Wr,ja:Mr,q:Or,ha:Rr,da:zr,E:Vr,B:qr,a:Ke,r:Yr,C:et,h:rt,D:tt,t:nt,ka:ot,ma:at,b:it,g:st,n:ut,c:lt,d:ct,ca:dt,$a:ht,pa:Tt,na:Ft,Ua:$t,Va:Lt,aa:jt,Wa:Nt,Xa:Rt,I:Ut,Na:Gt,v:Xt,Ea:Ht,Qa:qt,Oa:Qt,Pa:Yt,y:Jt,j:Kt,z:Zt,ab:en,U:rn,W:tn,Ia:nn,G:on,Ha:an,V:sn,La:un,Ka:ln,Ja:cn,la:dn,Q:fn,Fa:mn,S:pn,_:hn,X:vn,Ga:gn,u:wn,p:yn,H:En,P:_n,Ra:bn,Ma:xn,Sa:Pn,Ta:An,sa:Sn,x:Tn,bb:Fn,Y:Dn,O:Bn,za:Cn,ta:$n,ua:Ln,s:Wn,M:Mn,oa:On,Da:Rn,Ba:Gn,T:Xn,l:Hn,N:qn,F:Qn,w:Kn,R:Zn,xa:eo,m:ro,ya:to,va:io,wa:so,Aa:lo,Ca:co,Z:fo,qa:mo,ra:po},Do=await U();Do.db;var Bo=Do.eb,Co=s._free=Do.gb,$o=s._malloc=Do.hb;function Lo(){function e(){s.calledRun=!0,A||(F(),t(s),s.onRuntimeInitialized?.(),D())}C>0?$=Lo:(T(),C>0?$=Lo:s.setStatus?(s.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>s.setStatus(""),1),e()},1)):e())}function jo(){if(s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.shift()()}return s.___emscripten_embedded_file_data=142432,jo(),Lo(),u},r.exports=a,r.exports.default=a),n.exports;var r,o,a}const a=r(o()),i=Object.freeze(Object.defineProperty({__proto__:null,default:a},Symbol.toStringTag,{value:"Module"}));export{i as v};
|
|
5
|
+
import{g as e}from"./_commonjsHelpers.js";var r,t={exports:{}};function n(){return r||(r=1,e=t,n="undefined"!=typeof document?document.currentScript?.src:void 0,o=async function(e={}){var r,t,o=e,a="./this.program",i="";function s(e){return o.locateFile?o.locateFile(e,i):i+e}try{i=new URL(".",n).href}catch{}r=async e=>{var r=await fetch(e,{credentials:"same-origin"});if(r.ok)return r.arrayBuffer();throw new Error(r.status+" : "+r.url)};var u,l,c,d,f,m,p,h,v,g,w,y,E,_,b=console.log.bind(console),k=console.error.bind(console),x=!1,P=!1;function A(){var e=d.buffer;f=new Int8Array(e),p=new Int16Array(e),o.HEAPU8=m=new Uint8Array(e),h=new Uint16Array(e),o.HEAP32=v=new Int32Array(e),g=new Uint32Array(e),o.HEAPF32=w=new Float32Array(e),y=new Float64Array(e),E=new BigInt64Array(e),_=new BigUint64Array(e)}function T(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)X(o.preRun.shift());U(H)}function S(){P=!0,o.noFSInit||_e.initialized||_e.init(),To.db(),_e.ignorePermissions=!1}function F(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)G(o.postRun.shift());U(V)}var D,B=0,C=null;function L(e){B++,o.monitorRunDependencies?.(B)}function N(e){if(B--,o.monitorRunDependencies?.(B),0==B&&C){var r=C;C=null,r()}}function I(e){o.onAbort?.(e),k(e="Aborted("+e+")"),x=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw c?.(r),r}function W(){return s("vxlLayer.wasm")}function j(e){if(e==D&&u)return new Uint8Array(u);throw"both async and sync fetching of the wasm failed"}async function M(e){if(!u)try{var t=await r(e);return new Uint8Array(t)}catch{}return j(e)}async function R(e,r){try{var t=await M(e);return await WebAssembly.instantiate(t,r)}catch(n){k(`failed to asynchronously prepare wasm: ${n}`),I(n)}}async function O(e,r,t){if(!e&&"function"==typeof WebAssembly.instantiateStreaming)try{var n=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(o){k(`wasm streaming compile failed: ${o}`),k("falling back to ArrayBuffer instantiation")}return R(r,t)}function $(){return{a:Ao}}async function z(){function e(e,r){return To=e.exports,d=To.cb,A(),cr=To.fb,Po(To),N(),To}function r(r){return e(r.instance)}L();var t=$();return o.instantiateWasm?new Promise((r,n)=>{o.instantiateWasm(t,(t,n)=>{r(e(t))})}):(D??=W(),r(await O(u,D,t)))}var U=e=>{for(;e.length>0;)e.shift()(o)},V=[],G=e=>V.push(e),H=[],X=e=>H.push(e),q="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Q=(e,r=0,t=NaN)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&q)return q.decode(e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var u=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&e[r++])<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=(e,r)=>e?Q(m,e,r):"",J=(e,r,t,n)=>I(`Assertion failed: ${Y(e)}, at: `+[r?Y(r):"unknown filename",t,n?Y(n):"unknown function"]);class K{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){g[this.ptr+4>>2]=e}get_type(){return g[this.ptr+4>>2]}set_destructor(e){g[this.ptr+8>>2]=e}get_destructor(){return g[this.ptr+8>>2]}set_caught(e){e=e?1:0,f[this.ptr+12]=e}get_caught(){return 0!=f[this.ptr+12]}set_rethrown(e){e=e?1:0,f[this.ptr+13]=e}get_rethrown(){return 0!=f[this.ptr+13]}init(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)}set_adjusted_ptr(e){g[this.ptr+16>>2]=e}get_adjusted_ptr(){return g[this.ptr+16>>2]}}var Z=(e,r,t)=>{throw new K(e).init(r,t),e},ee=()=>{var e=v[+be.varargs>>2];return be.varargs+=4,e},re=ee,te={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=te.isAbs(e),t="/"===e.slice(-1);return(e=te.normalizeArray(e.split("/").filter(e=>!!e),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=te.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.slice(0,-1)),t+n):"."},basename:e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],join:(...e)=>te.normalize(e.join("/")),join2:(e,r)=>te.normalize(e+"/"+r)},ne=()=>e=>crypto.getRandomValues(e),oe=e=>{(oe=ne())(e)},ae={resolve:(...e)=>{for(var r="",t=!1,n=e.length-1;n>=-1&&!t;n--){var o=n>=0?e[n]:_e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";r=o+"/"+r,t=te.isAbs(o)}return(t?"/":"")+(r=te.normalizeArray(r.split("/").filter(e=>!!e),!t).join("/"))||"."},relative:(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=ae.resolve(e).slice(1),r=ae.resolve(r).slice(1);for(var n=t(e.split("/")),o=t(r.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("/")}},ie=[],se=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},ue=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<e.length;++i){var s=e.codePointAt(i);if(s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s,i++}}return r[t]=0,t-o},le=(e,r,t)=>{var n=se(e)+1,o=new Array(n),a=ue(e,o,0,o.length);return o.length=a,o},ce=()=>{if(!ie.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(e=window.prompt("Input: "))&&(e+="\n"),!e)return null;ie=le(e)}return ie.shift()},de={ttys:[],init(){},shutdown(){},register(e,r){de.ttys[e]={input:[],output:[],ops:r},_e.registerDevice(e,de.stream_ops)},stream_ops:{open(e){var r=de.ttys[e.node.rdev];if(!r)throw new _e.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new _e.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(u){throw new _e.ErrnoError(29)}if(void 0===s&&0===a)throw new _e.ErrnoError(6);if(null==s)break;a++,r[t+i]=s}return a&&(e.node.atime=Date.now()),a},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new _e.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(i){throw new _e.ErrnoError(29)}return n&&(e.node.mtime=e.node.ctime=Date.now()),a}},default_tty_ops:{get_char:e=>ce(),put_char(e,r){null===r||10===r?(b(Q(e.output)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output?.length>0&&(b(Q(e.output)),e.output=[])},ioctl_tcgets:e=>({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:(e,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(k(Q(e.output)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output?.length>0&&(k(Q(e.output)),e.output=[])}}},fe=e=>{I()},me={ops_table:null,mount:e=>me.createNode(null,"/",16895,0),createNode(e,r,t,n){if(_e.isBlkdev(t)||_e.isFIFO(t))throw new _e.ErrnoError(63);me.ops_table||={dir:{node:{getattr:me.node_ops.getattr,setattr:me.node_ops.setattr,lookup:me.node_ops.lookup,mknod:me.node_ops.mknod,rename:me.node_ops.rename,unlink:me.node_ops.unlink,rmdir:me.node_ops.rmdir,readdir:me.node_ops.readdir,symlink:me.node_ops.symlink},stream:{llseek:me.stream_ops.llseek}},file:{node:{getattr:me.node_ops.getattr,setattr:me.node_ops.setattr},stream:{llseek:me.stream_ops.llseek,read:me.stream_ops.read,write:me.stream_ops.write,mmap:me.stream_ops.mmap,msync:me.stream_ops.msync}},link:{node:{getattr:me.node_ops.getattr,setattr:me.node_ops.setattr,readlink:me.node_ops.readlink},stream:{}},chrdev:{node:{getattr:me.node_ops.getattr,setattr:me.node_ops.setattr},stream:_e.chrdev_stream_ops}};var o=_e.createNode(e,r,t,n);return _e.isDir(o.mode)?(o.node_ops=me.ops_table.dir.node,o.stream_ops=me.ops_table.dir.stream,o.contents={}):_e.isFile(o.mode)?(o.node_ops=me.ops_table.file.node,o.stream_ops=me.ops_table.file.stream,o.usedBytes=0,o.contents=null):_e.isLink(o.mode)?(o.node_ops=me.ops_table.link.node,o.stream_ops=me.ops_table.link.stream):_e.isChrdev(o.mode)&&(o.node_ops=me.ops_table.chrdev.node,o.stream_ops=me.ops_table.chrdev.stream),o.atime=o.mtime=o.ctime=Date.now(),e&&(e.contents[r]=o,e.atime=e.mtime=e.ctime=o.atime),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){var n=1048576;r=Math.max(r,t*(t<n?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var o=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(o.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=_e.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,_e.isDir(e.mode)?r.size=4096:_e.isFile(e.mode)?r.size=e.usedBytes:_e.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.atime),r.mtime=new Date(e.mtime),r.ctime=new Date(e.ctime),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){for(const t of["mode","atime","mtime","ctime"])null!=r[t]&&(e[t]=r[t]);void 0!==r.size&&me.resizeFileStorage(e,r.size)},lookup(e,r){throw me.doesNotExistError},mknod:(e,r,t,n)=>me.createNode(e,r,t,n),rename(e,r,t){var n;try{n=_e.lookupNode(r,t)}catch(a){}if(n){if(_e.isDir(e.mode))for(var o in n.contents)throw new _e.ErrnoError(55);_e.hashRemoveNode(n)}delete e.parent.contents[e.name],r.contents[t]=e,e.name=t,r.ctime=r.mtime=e.parent.ctime=e.parent.mtime=Date.now()},unlink(e,r){delete e.contents[r],e.ctime=e.mtime=Date.now()},rmdir(e,r){var t=_e.lookupNode(e,r);for(var n in t.contents)throw new _e.ErrnoError(55);delete e.contents[r],e.ctime=e.mtime=Date.now()},readdir:e=>[".","..",...Object.keys(e.contents)],symlink(e,r,t){var n=me.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!_e.isLink(e.mode))throw new _e.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)r[t+s]=a[o+s];return i},write(e,r,t,n,o,a){if(r.buffer===f.buffer&&(a=!1),!n)return 0;var i=e.node;if(i.mtime=i.ctime=Date.now(),r.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=r.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=r.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(r.subarray(t,t+n),o),n}if(me.expandFileStorage(i,o+n),i.contents.subarray&&r.subarray)i.contents.set(r.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=r[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&_e.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new _e.ErrnoError(28);return n},mmap(e,r,t,n,o){if(!_e.isFile(e.node.mode))throw new _e.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||!s||s.buffer!==f.buffer){if(i=!0,!(a=fe()))throw new _e.ErrnoError(48);s&&((t>0||t+r<s.length)&&(s=s.subarray?s.subarray(t,t+r):Array.prototype.slice.call(s,t,t+r)),f.set(s,a))}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,r,t,n,o)=>(me.stream_ops.write(e,r,0,n,t,!1),0)}},pe=async e=>{var t=await r(e);return new Uint8Array(t)},he=(...e)=>_e.createDataFile(...e),ve=[],ge=(e,r,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return ve.forEach(a=>{o||a.canHandle(r)&&(a.handle(e,r,t,n),o=!0)}),o},we=(e,r,t,n,o,a,i,s,u,l)=>{var c=r?ae.resolve(te.join2(e,r)):e;function d(t){function d(t){l?.(),s||he(e,r,t,n,o,u),a?.(),N()}ge(t,c,d,()=>{i?.(),N()})||d(t)}L(),"string"==typeof t?pe(t).then(d,i):d(t)},ye=e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===r)throw new Error(`Unknown file open mode: ${e}`);return r},Ee=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},_e={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,readFiles:{},ErrnoError:class{name="ErrnoError";constructor(e){this.errno=e}},FSStream:class{shared={};get object(){return this.node}set object(e){this.node=e}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(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.id=_e.nextInode++,this.name=r,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(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return _e.isDir(this.mode)}get isDevice(){return _e.isChrdev(this.mode)}},lookupPath(e,r={}){if(!e)throw new _e.ErrnoError(44);r.follow_mount??=!0,te.isAbs(e)||(e=_e.cwd()+"/"+e);e:for(var t=0;t<40;t++){for(var n=e.split("/").filter(e=>!!e),o=_e.root,a="/",i=0;i<n.length;i++){var s=i===n.length-1;if(s&&r.parent)break;if("."!==n[i])if(".."!==n[i]){a=te.join2(a,n[i]);try{o=_e.lookupNode(o,n[i])}catch(l){if(44===l?.errno&&s&&r.noent_okay)return{path:a};throw l}if(!_e.isMountpoint(o)||s&&!r.follow_mount||(o=o.mounted.root),_e.isLink(o.mode)&&(!s||r.follow)){if(!o.node_ops.readlink)throw new _e.ErrnoError(52);var u=o.node_ops.readlink(o);te.isAbs(u)||(u=te.dirname(a)+"/"+u),e=u+"/"+n.slice(i+1).join("/");continue e}}else{if(a=te.dirname(a),_e.isRoot(o)){e=a+"/"+n.slice(i+1).join("/");continue e}o=o.parent}}return{path:a,node:o}}throw new _e.ErrnoError(32)},getPath(e){for(var r;;){if(_e.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?`${t}/${r}`:t+r:t}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%_e.nameTable.length},hashAddNode(e){var r=_e.hashName(e.parent.id,e.name);e.name_next=_e.nameTable[r],_e.nameTable[r]=e},hashRemoveNode(e){var r=_e.hashName(e.parent.id,e.name);if(_e.nameTable[r]===e)_e.nameTable[r]=e.name_next;else for(var t=_e.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=_e.mayLookup(e);if(t)throw new _e.ErrnoError(t);for(var n=_e.hashName(e.id,r),o=_e.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return _e.lookup(e,r)},createNode(e,r,t,n){var o=new _e.FSNode(e,r,t,n);return _e.hashAddNode(o),o},destroyNode(e){_e.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>!(49152&~e),flagsToPermissionString(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>_e.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup(e){if(!_e.isDir(e.mode))return 54;var r=_e.nodePermissions(e,"x");return r||(e.node_ops.lookup?0:2)},mayCreate(e,r){if(!_e.isDir(e.mode))return 54;try{return _e.lookupNode(e,r),20}catch(t){}return _e.nodePermissions(e,"wx")},mayDelete(e,r,t){var n;try{n=_e.lookupNode(e,r)}catch(a){return a.errno}var o=_e.nodePermissions(e,"wx");if(o)return o;if(t){if(!_e.isDir(n.mode))return 54;if(_e.isRoot(n)||_e.getPath(n)===_e.cwd())return 10}else if(_e.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?_e.isLink(e.mode)?32:_e.isDir(e.mode)&&("r"!==_e.flagsToPermissionString(r)||576&r)?31:_e.nodePermissions(e,_e.flagsToPermissionString(r)):44,checkOpExists(e,r){if(!e)throw new _e.ErrnoError(r);return e},MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=_e.MAX_OPEN_FDS;e++)if(!_e.streams[e])return e;throw new _e.ErrnoError(33)},getStreamChecked(e){var r=_e.getStream(e);if(!r)throw new _e.ErrnoError(8);return r},getStream:e=>_e.streams[e],createStream:(e,r=-1)=>(e=Object.assign(new _e.FSStream,e),-1==r&&(r=_e.nextfd()),e.fd=r,_e.streams[r]=e,e),closeStream(e){_e.streams[e]=null},dupStream(e,r=-1){var t=_e.createStream(e,r);return t.stream_ops?.dup?.(t),t},doSetAttr(e,r,t){var n=e?.stream_ops.setattr,o=n?e:r;n??=r.node_ops.setattr,_e.checkOpExists(n,63),n(o,t)},chrdev_stream_ops:{open(e){var r=_e.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open?.(e)},llseek(){throw new _e.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){_e.devices[e]={stream_ops:r}},getDevice:e=>_e.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push(...n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),_e.syncFSRequests++,_e.syncFSRequests>1&&k(`warning: ${_e.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=_e.getMounts(_e.root.mount),n=0;function o(e){return _e.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach(r=>{if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)})},mount(e,r,t){var n,o="/"===t,a=!t;if(o&&_e.root)throw new _e.ErrnoError(10);if(!o&&!a){var i=_e.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,_e.isMountpoint(n))throw new _e.ErrnoError(10);if(!_e.isDir(n.mode))throw new _e.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},u=e.mount(s);return u.mount=s,s.root=u,o?_e.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(e){var r=_e.lookupPath(e,{follow_mount:!1});if(!_e.isMountpoint(r.node))throw new _e.ErrnoError(28);var t=r.node,n=t.mounted,o=_e.getMounts(n);Object.keys(_e.nameTable).forEach(e=>{for(var r=_e.nameTable[e];r;){var t=r.name_next;o.includes(r.mount)&&_e.destroyNode(r),r=t}}),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=_e.lookupPath(e,{parent:!0}).node,o=te.basename(e);if(!o)throw new _e.ErrnoError(28);if("."===o||".."===o)throw new _e.ErrnoError(20);var a=_e.mayCreate(n,o);if(a)throw new _e.ErrnoError(a);if(!n.node_ops.mknod)throw new _e.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},statfs:e=>_e.statfsNode(_e.lookupPath(e,{follow:!0}).node),statfsStream:e=>_e.statfsNode(e.node),statfsNode(e){var r={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:_e.nextInode,ffree:_e.nextInode-1,fsid:42,flags:2,namelen:255};return e.node_ops.statfs&&Object.assign(r,e.node_ops.statfs(e.mount.opts.root)),r},create:(e,r=438)=>(r&=4095,r|=32768,_e.mknod(e,r,0)),mkdir:(e,r=511)=>(r&=1023,r|=16384,_e.mknod(e,r,0)),mkdirTree(e,r){var t=e.split("/"),n="";for(var o of t)if(o){(n||te.isAbs(e))&&(n+="/"),n+=o;try{_e.mkdir(n,r)}catch(a){if(20!=a.errno)throw a}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,_e.mknod(e,r,t)),symlink(e,r){if(!ae.resolve(e))throw new _e.ErrnoError(44);var t=_e.lookupPath(r,{parent:!0}).node;if(!t)throw new _e.ErrnoError(44);var n=te.basename(r),o=_e.mayCreate(t,n);if(o)throw new _e.ErrnoError(o);if(!t.node_ops.symlink)throw new _e.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o=te.dirname(e),a=te.dirname(r),i=te.basename(e),s=te.basename(r);if(t=_e.lookupPath(e,{parent:!0}).node,n=_e.lookupPath(r,{parent:!0}).node,!t||!n)throw new _e.ErrnoError(44);if(t.mount!==n.mount)throw new _e.ErrnoError(75);var u,l=_e.lookupNode(t,i),c=ae.relative(e,a);if("."!==c.charAt(0))throw new _e.ErrnoError(28);if("."!==(c=ae.relative(r,o)).charAt(0))throw new _e.ErrnoError(55);try{u=_e.lookupNode(n,s)}catch(m){}if(l!==u){var d=_e.isDir(l.mode),f=_e.mayDelete(t,i,d);if(f)throw new _e.ErrnoError(f);if(f=u?_e.mayDelete(n,s,d):_e.mayCreate(n,s))throw new _e.ErrnoError(f);if(!t.node_ops.rename)throw new _e.ErrnoError(63);if(_e.isMountpoint(l)||u&&_e.isMountpoint(u))throw new _e.ErrnoError(10);if(n!==t&&(f=_e.nodePermissions(t,"w")))throw new _e.ErrnoError(f);_e.hashRemoveNode(l);try{t.node_ops.rename(l,n,s),l.parent=n}catch(m){throw m}finally{_e.hashAddNode(l)}}},rmdir(e){var r=_e.lookupPath(e,{parent:!0}).node,t=te.basename(e),n=_e.lookupNode(r,t),o=_e.mayDelete(r,t,!0);if(o)throw new _e.ErrnoError(o);if(!r.node_ops.rmdir)throw new _e.ErrnoError(63);if(_e.isMountpoint(n))throw new _e.ErrnoError(10);r.node_ops.rmdir(r,t),_e.destroyNode(n)},readdir(e){var r=_e.lookupPath(e,{follow:!0}).node;return _e.checkOpExists(r.node_ops.readdir,54)(r)},unlink(e){var r=_e.lookupPath(e,{parent:!0}).node;if(!r)throw new _e.ErrnoError(44);var t=te.basename(e),n=_e.lookupNode(r,t),o=_e.mayDelete(r,t,!1);if(o)throw new _e.ErrnoError(o);if(!r.node_ops.unlink)throw new _e.ErrnoError(63);if(_e.isMountpoint(n))throw new _e.ErrnoError(10);r.node_ops.unlink(r,t),_e.destroyNode(n)},readlink(e){var r=_e.lookupPath(e).node;if(!r)throw new _e.ErrnoError(44);if(!r.node_ops.readlink)throw new _e.ErrnoError(28);return r.node_ops.readlink(r)},stat(e,r){var t=_e.lookupPath(e,{follow:!r}).node;return _e.checkOpExists(t.node_ops.getattr,63)(t)},fstat(e){var r=_e.getStreamChecked(e),t=r.node,n=r.stream_ops.getattr,o=n?r:t;return n??=t.node_ops.getattr,_e.checkOpExists(n,63),n(o)},lstat:e=>_e.stat(e,!0),doChmod(e,r,t,n){_e.doSetAttr(e,r,{mode:4095&t|-4096&r.mode,ctime:Date.now(),dontFollow:n})},chmod(e,r,t){var n;n="string"==typeof e?_e.lookupPath(e,{follow:!t}).node:e,_e.doChmod(null,n,r,t)},lchmod(e,r){_e.chmod(e,r,!0)},fchmod(e,r){var t=_e.getStreamChecked(e);_e.doChmod(t,t.node,r,!1)},doChown(e,r,t){_e.doSetAttr(e,r,{timestamp:Date.now(),dontFollow:t})},chown(e,r,t,n){var o;o="string"==typeof e?_e.lookupPath(e,{follow:!n}).node:e,_e.doChown(null,o,n)},lchown(e,r,t){_e.chown(e,r,t,!0)},fchown(e,r,t){var n=_e.getStreamChecked(e);_e.doChown(n,n.node,!1)},doTruncate(e,r,t){if(_e.isDir(r.mode))throw new _e.ErrnoError(31);if(!_e.isFile(r.mode))throw new _e.ErrnoError(28);var n=_e.nodePermissions(r,"w");if(n)throw new _e.ErrnoError(n);_e.doSetAttr(e,r,{size:t,timestamp:Date.now()})},truncate(e,r){if(r<0)throw new _e.ErrnoError(28);var t;t="string"==typeof e?_e.lookupPath(e,{follow:!0}).node:e,_e.doTruncate(null,t,r)},ftruncate(e,r){var t=_e.getStreamChecked(e);if(r<0||!(2097155&t.flags))throw new _e.ErrnoError(28);_e.doTruncate(t,t.node,r)},utime(e,r,t){var n=_e.lookupPath(e,{follow:!0}).node;_e.checkOpExists(n.node_ops.setattr,63)(n,{atime:r,mtime:t})},open(e,r,t=438){if(""===e)throw new _e.ErrnoError(44);var n,a;if(t=64&(r="string"==typeof r?ye(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{a=e.endsWith("/");var i=_e.lookupPath(e,{follow:!(131072&r),noent_okay:!0});n=i.node,e=i.path}var s=!1;if(64&r)if(n){if(128&r)throw new _e.ErrnoError(20)}else{if(a)throw new _e.ErrnoError(31);n=_e.mknod(e,511|t,0),s=!0}if(!n)throw new _e.ErrnoError(44);if(_e.isChrdev(n.mode)&&(r&=-513),65536&r&&!_e.isDir(n.mode))throw new _e.ErrnoError(54);if(!s){var u=_e.mayOpen(n,r);if(u)throw new _e.ErrnoError(u)}512&r&&!s&&_e.truncate(n,0),r&=-131713;var l=_e.createStream({node:n,path:_e.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return l.stream_ops.open&&l.stream_ops.open(l),s&&_e.chmod(n,511&t),!o.logReadFiles||1&r||e in _e.readFiles||(_e.readFiles[e]=1),l},close(e){if(_e.isClosed(e))throw new _e.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(r){throw r}finally{_e.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(_e.isClosed(e))throw new _e.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new _e.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new _e.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,o){if(n<0||o<0)throw new _e.ErrnoError(28);if(_e.isClosed(e))throw new _e.ErrnoError(8);if(1==(2097155&e.flags))throw new _e.ErrnoError(8);if(_e.isDir(e.node.mode))throw new _e.ErrnoError(31);if(!e.stream_ops.read)throw new _e.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new _e.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,r,t,n,o);return a||(e.position+=i),i},write(e,r,t,n,o,a){if(n<0||o<0)throw new _e.ErrnoError(28);if(_e.isClosed(e))throw new _e.ErrnoError(8);if(!(2097155&e.flags))throw new _e.ErrnoError(8);if(_e.isDir(e.node.mode))throw new _e.ErrnoError(31);if(!e.stream_ops.write)throw new _e.ErrnoError(28);e.seekable&&1024&e.flags&&_e.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new _e.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,a);return i||(e.position+=s),s},mmap(e,r,t,n,o){if(2&n&&!(2&o)&&2!=(2097155&e.flags))throw new _e.ErrnoError(2);if(1==(2097155&e.flags))throw new _e.ErrnoError(2);if(!e.stream_ops.mmap)throw new _e.ErrnoError(43);if(!r)throw new _e.ErrnoError(28);return e.stream_ops.mmap(e,r,t,n,o)},msync:(e,r,t,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,o):0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new _e.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e,r={}){if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error(`Invalid encoding type "${r.encoding}"`);var t=_e.open(e,r.flags),n=_e.stat(e).size,o=new Uint8Array(n);return _e.read(t,o,0,n,0),"utf8"===r.encoding&&(o=Q(o)),_e.close(t),o},writeFile(e,r,t={}){t.flags=t.flags||577;var n=_e.open(e,t.flags,t.mode);if("string"==typeof r&&(r=new Uint8Array(le(r))),!ArrayBuffer.isView(r))throw new Error("Unsupported data type");_e.write(n,r,0,r.byteLength,void 0,t.canOwn),_e.close(n)},cwd:()=>_e.currentPath,chdir(e){var r=_e.lookupPath(e,{follow:!0});if(null===r.node)throw new _e.ErrnoError(44);if(!_e.isDir(r.node.mode))throw new _e.ErrnoError(54);var t=_e.nodePermissions(r.node,"x");if(t)throw new _e.ErrnoError(t);_e.currentPath=r.path},createDefaultDirectories(){_e.mkdir("/tmp"),_e.mkdir("/home"),_e.mkdir("/home/web_user")},createDefaultDevices(){_e.mkdir("/dev"),_e.registerDevice(_e.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n,llseek:()=>0}),_e.mkdev("/dev/null",_e.makedev(1,3)),de.register(_e.makedev(5,0),de.default_tty_ops),de.register(_e.makedev(6,0),de.default_tty1_ops),_e.mkdev("/dev/tty",_e.makedev(5,0)),_e.mkdev("/dev/tty1",_e.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(oe(e),r=e.byteLength),e[--r]);_e.createDevice("/dev","random",t),_e.createDevice("/dev","urandom",t),_e.mkdir("/dev/shm"),_e.mkdir("/dev/shm/tmp")},createSpecialDirectories(){_e.mkdir("/proc");var e=_e.mkdir("/proc/self");_e.mkdir("/proc/self/fd"),_e.mount({mount(){var r=_e.createNode(e,"fd",16895,73);return r.stream_ops={llseek:me.stream_ops.llseek},r.node_ops={lookup(e,r){var t=+r,n=_e.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path},id:t+1};return o.parent=o,o},readdir:()=>Array.from(_e.streams.entries()).filter(([e,r])=>r).map(([e,r])=>e.toString())},r}},{},"/proc/self/fd")},createStandardStreams(e,r,t){e?_e.createDevice("/dev","stdin",e):_e.symlink("/dev/tty","/dev/stdin"),r?_e.createDevice("/dev","stdout",null,r):_e.symlink("/dev/tty","/dev/stdout"),t?_e.createDevice("/dev","stderr",null,t):_e.symlink("/dev/tty1","/dev/stderr"),_e.open("/dev/stdin",0),_e.open("/dev/stdout",1),_e.open("/dev/stderr",1)},staticInit(){_e.nameTable=new Array(4096),_e.mount(me,{},"/"),_e.createDefaultDirectories(),_e.createDefaultDevices(),_e.createSpecialDirectories(),_e.filesystems={MEMFS:me}},init(e,r,t){_e.initialized=!0,e??=o.stdin,r??=o.stdout,t??=o.stderr,_e.createStandardStreams(e,r,t)},quit(){for(var e of(_e.initialized=!1,_e.streams))e&&_e.close(e)},findObject(e,r){var t=_e.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{e=(n=_e.lookupPath(e,{follow:!r})).path}catch(o){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=_e.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=te.basename(e),n=_e.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(o){t.error=o.errno}return t},createPath(e,r,t,n){e="string"==typeof e?e:_e.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=te.join2(e,a);try{_e.mkdir(i)}catch(s){if(20!=s.errno)throw s}e=i}}return i},createFile(e,r,t,n,o){var a=te.join2("string"==typeof e?e:_e.getPath(e),r),i=Ee(n,o);return _e.create(a,i)},createDataFile(e,r,t,n,o,a){var i=r;e&&(e="string"==typeof e?e:_e.getPath(e),i=r?te.join2(e,r):e);var s=Ee(n,o),u=_e.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),c=0,d=t.length;c<d;++c)l[c]=t.charCodeAt(c);t=l}_e.chmod(u,146|s);var f=_e.open(u,577);_e.write(f,t,0,t.length,0,a),_e.close(f),_e.chmod(u,s)}},createDevice(e,r,t,n){var o=te.join2("string"==typeof e?e:_e.getPath(e),r),a=Ee(!!t,!!n);_e.createDevice.major??=64;var i=_e.makedev(_e.createDevice.major++,0);return _e.registerDevice(i,{open(e){e.seekable=!1},close(e){n?.buffer?.length&&n(10)},read(e,r,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(l){throw new _e.ErrnoError(29)}if(void 0===u&&0===i)throw new _e.ErrnoError(6);if(null==u)break;i++,r[n+s]=u}return i&&(e.node.atime=Date.now()),i},write(e,r,t,o,a){for(var i=0;i<o;i++)try{n(r[t+i])}catch(s){throw new _e.ErrnoError(29)}return o&&(e.node.mtime=e.node.ctime=Date.now()),i}}),_e.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.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{e.contents=t(e.url),e.usedBytes=e.contents.length}catch(r){throw new _e.ErrnoError(29)}},createLazyFile(e,r,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=_e.createFile(e,r,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(e,r,t,n,o){var a=e.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++)r[t+s]=a[o+s];else for(s=0;s<i;s++)r[t+s]=a.get(o+s);return i}return Object.keys(i.stream_ops).forEach(e=>{var r=i.stream_ops[e];s[e]=(...e)=>(_e.forceLoadFile(i),r(...e))}),s.read=(e,r,t,n,o)=>(_e.forceLoadFile(i),u(e,r,t,n,o)),s.mmap=(e,r,t,n,o)=>{_e.forceLoadFile(i);var a=fe();if(!a)throw new _e.ErrnoError(48);return u(e,f,a,r,t),{ptr:a,allocated:!0}},i.stream_ops=s,i}},be={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(te.isAbs(r))return r;var n;if(n=-100===e?_e.cwd():be.getStreamFromFD(e).path,0==r.length){if(!t)throw new _e.ErrnoError(44);return n}return n+"/"+r},writeStat(e,r){v[e>>2]=r.dev,v[e+4>>2]=r.mode,g[e+8>>2]=r.nlink,v[e+12>>2]=r.uid,v[e+16>>2]=r.gid,v[e+20>>2]=r.rdev,E[e+24>>3]=BigInt(r.size),v[e+32>>2]=4096,v[e+36>>2]=r.blocks;var t=r.atime.getTime(),n=r.mtime.getTime(),o=r.ctime.getTime();return E[e+40>>3]=BigInt(Math.floor(t/1e3)),g[e+48>>2]=t%1e3*1e3*1e3,E[e+56>>3]=BigInt(Math.floor(n/1e3)),g[e+64>>2]=n%1e3*1e3*1e3,E[e+72>>3]=BigInt(Math.floor(o/1e3)),g[e+80>>2]=o%1e3*1e3*1e3,E[e+88>>3]=BigInt(r.ino),0},writeStatFs(e,r){v[e+4>>2]=r.bsize,v[e+40>>2]=r.bsize,v[e+8>>2]=r.blocks,v[e+12>>2]=r.bfree,v[e+16>>2]=r.bavail,v[e+20>>2]=r.files,v[e+24>>2]=r.ffree,v[e+28>>2]=r.fsid,v[e+44>>2]=r.flags,v[e+36>>2]=r.namelen},doMsync(e,r,t,n,o){if(!_e.isFile(r.node.mode))throw new _e.ErrnoError(43);if(2&n)return 0;var a=m.slice(e,e+t);_e.msync(r,a,o,t,n)},getStreamFromFD:e=>_e.getStreamChecked(e),varargs:void 0,getStr:e=>Y(e)};function ke(e,r,t){be.varargs=t;try{var n=be.getStreamFromFD(e);switch(r){case 0:if((o=ee())<0)return-28;for(;_e.streams[o];)o++;return _e.dupStream(n,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var o=ee();return n.flags|=o,0;case 12:return o=re(),p[o+0>>1]=2,0}return-28}catch(a){if(void 0===_e||"ErrnoError"!==a.name)throw a;return-a.errno}}function xe(e,r,t){be.varargs=t;try{var n=be.getStreamFromFD(e);switch(r){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=re();v[a>>2]=o.c_iflag||0,v[a+4>>2]=o.c_oflag||0,v[a+8>>2]=o.c_cflag||0,v[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)f[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=re();var s=v[a>>2],u=v[a+4>>2],l=v[a+8>>2],c=v[a+12>>2],d=[];for(i=0;i<32;i++)d.push(f[a+i+17]);return n.tty.ops.ioctl_tcsets(n.tty,r,{c_iflag:s,c_oflag:u,c_cflag:l,c_lflag:c,c_cc:d})}return 0;case 21519:return n.tty?(a=re(),v[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=re(),_e.ioctl(n,r,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var m=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=re(),p[a>>1]=m[0],p[a+2>>1]=m[1]}return 0;default:return-28}}catch(h){if(void 0===_e||"ErrnoError"!==h.name)throw h;return-h.errno}}function Pe(e,r,t,n){be.varargs=n;try{r=be.getStr(r),r=be.calculateAt(e,r);var o=n?ee():0;return _e.open(r,t,o).fd}catch(a){if(void 0===_e||"ErrnoError"!==a.name)throw a;return-a.errno}}var Ae=()=>I(""),Te={},Se=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function Fe(e){return this.fromWireType(g[e>>2])}var De={},Be={},Ce={},Le=class extends Error{constructor(e){super(e),this.name="InternalError"}},Ne=e=>{throw new Le(e)},Ie=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&Ne("Mismatched type converter count");for(var o=0;o<e.length;++o)$e(e[o],n[o])}e.forEach(e=>Ce[e]=r);var o=new Array(r.length),a=[],i=0;r.forEach((e,r)=>{Be.hasOwnProperty(e)?o[r]=Be[e]:(a.push(e),De.hasOwnProperty(e)||(De[e]=[]),De[e].push(()=>{o[r]=Be[e],++i===a.length&&n(o)}))}),0===a.length&&n(o)},We=e=>{var r=Te[e];delete Te[e];var t=r.rawConstructor,n=r.rawDestructor,o=r.fields,a=o.map(e=>e.getterReturnType).concat(o.map(e=>e.setterArgumentType));Ie([e],a,e=>{var a={};return o.forEach((r,t)=>{var n=r.fieldName,i=e[t],s=e[t].optional,u=r.getter,l=r.getterContext,c=e[t+o.length],d=r.setter,f=r.setterContext;a[n]={read:e=>i.fromWireType(u(l,e)),write:(e,r)=>{var t=[];d(f,e,c.toWireType(t,r)),Se(t)},optional:s}}),[{name:r.name,fromWireType:e=>{var r={};for(var t in a)r[t]=a[t].read(e);return n(e),r},toWireType:(e,r)=>{for(var o in a)if(!(o in r)&&!a[o].optional)throw new TypeError(`Missing field: "${o}"`);var i=t();for(o in a)a[o].write(i,r[o]);return null!==e&&e.push(n,i),i},argPackAdvance:Ve,readValueFromPointer:Fe,destructorFunction:n}]})},je=e=>{for(var r="";;){var t=m[e++];if(!t)return r;r+=String.fromCharCode(t)}},Me=class extends Error{constructor(e){super(e),this.name="BindingError"}},Re=e=>{throw new Me(e)};function Oe(e,r,t={}){var n=r.name;if(e||Re(`type "${n}" must have a positive integer typeid pointer`),Be.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;Re(`Cannot register type '${n}' twice`)}if(Be[e]=r,delete Ce[e],De.hasOwnProperty(e)){var o=De[e];delete De[e],o.forEach(e=>e())}}function $e(e,r,t={}){return Oe(e,r,t)}var ze=(e,r,t)=>{switch(r){case 1:return t?e=>f[e]:e=>m[e];case 2:return t?e=>p[e>>1]:e=>h[e>>1];case 4:return t?e=>v[e>>2]:e=>g[e>>2];case 8:return t?e=>E[e>>3]:e=>_[e>>3];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Ue=(e,r,t,n,o)=>{r=je(r);const a=0n===n;let i=e=>e;if(a){const e=8*t;i=r=>BigInt.asUintN(e,r),o=i(o)}$e(e,{name:r,fromWireType:i,toWireType:(e,r)=>("number"==typeof r&&(r=BigInt(r)),r),argPackAdvance:Ve,readValueFromPointer:ze(r,t,!a),destructorFunction:null})},Ve=8,Ge=(e,r,t,n)=>{$e(e,{name:r=je(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:Ve,readValueFromPointer:function(e){return this.fromWireType(m[e])},destructorFunction:null})},He=[],Xe=[0,1,,1,null,1,!0,1,!1,1],qe=e=>{e>9&&0===--Xe[e+1]&&(Xe[e]=void 0,He.push(e))},Qe={toValue:e=>(e||Re(`Cannot use deleted val. handle = ${e}`),Xe[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=He.pop()||Xe.length;return Xe[r]=e,Xe[r+1]=1,r}}}},Ye={name:"emscripten::val",fromWireType:e=>{var r=Qe.toValue(e);return qe(e),r},toWireType:(e,r)=>Qe.toHandle(r),argPackAdvance:Ve,readValueFromPointer:Fe,destructorFunction:null},Je=e=>$e(e,Ye),Ke=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(...n){return e[r].overloadTable.hasOwnProperty(n.length)||Re(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[n.length].apply(this,n)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},Ze=(e,r,t)=>{o.hasOwnProperty(e)?((void 0===t||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[t])&&Re(`Cannot register public name '${e}' twice`),Ke(o,e,e),o[e].overloadTable.hasOwnProperty(t)&&Re(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),o[e].overloadTable[t]=r):(o[e]=r,o[e].argCount=t)},er=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(f[e])}:function(e){return this.fromWireType(m[e])};case 2:return t?function(e){return this.fromWireType(p[e>>1])}:function(e){return this.fromWireType(h[e>>1])};case 4:return t?function(e){return this.fromWireType(v[e>>2])}:function(e){return this.fromWireType(g[e>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},rr=(e,r,t,n)=>{function o(){}r=je(r),o.values={},$e(e,{name:r,constructor:o,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,argPackAdvance:Ve,readValueFromPointer:er(r,t,n),destructorFunction:null}),Ze(r,o)},tr=(e,r)=>Object.defineProperty(r,"name",{value:e}),nr=e=>{var r=Mt(e),t=je(r);return Rt(r),t},or=(e,r)=>{var t=Be[e];return void 0===t&&Re(`${r} has unknown type ${nr(e)}`),t},ar=(e,r,t)=>{var n=or(e,"enum");r=je(r);var o=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:tr(`${n.name}_${r}`,function(){})}});o.values[t]=a,o[r]=a},ir=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(w[e>>2])};case 8:return function(e){return this.fromWireType(y[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},sr=(e,r,t)=>{$e(e,{name:r=je(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:Ve,readValueFromPointer:ir(r,t),destructorFunction:null})};function ur(e){for(var r=1;r<e.length;++r)if(null!==e[r]&&void 0===e[r].destructorFunction)return!0;return!1}function lr(e,r,t,n,o,a){var i=r.length;i<2&&Re("argTypes array size mismatch! Must at least get return value and 'this' types!"),r[1];var s=ur(r),u="void"!==r[0].name,l=i-2,c=new Array(l),d=[],f=[];return tr(e,function(...e){var t;f.length=0,d.length=1,d[0]=o;for(var a=0;a<l;++a)c[a]=r[a+2].toWireType(f,e[a]),d.push(c[a]);function i(e){if(s)Se(f);else for(var n=2;n<r.length;n++){var o=1===n?t:c[n-2];null!==r[n].destructorFunction&&r[n].destructorFunction(o)}if(u)return r[0].fromWireType(e)}return i(n(...d))})}var cr,dr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(g[r+4*n>>2]);return t},fr=(e,r,t)=>{o.hasOwnProperty(e)||Ne("Replacing nonexistent public symbol"),void 0!==o[e].overloadTable&&void 0!==t?o[e].overloadTable[t]=r:(o[e]=r,o[e].argCount=t)},mr=[],pr=e=>{var r=mr[e];return r||(mr[e]=r=cr.get(e)),r},hr=(e,r,t=!1)=>{function n(){return pr(r)}e=je(e);var o=n();return"function"!=typeof o&&Re(`unknown function pointer with signature ${e}: ${r}`),o};class vr extends Error{}var gr,wr=(e,r)=>{var t=[],n={};function o(e){n[e]||Be[e]||(Ce[e]?Ce[e].forEach(o):(t.push(e),n[e]=!0))}throw r.forEach(o),new vr(`${e}: `+t.map(nr).join([", "]))},yr=e=>{const r=(e=e.trim()).indexOf("(");return-1===r?e:e.slice(0,r)},Er=(e,r,t,n,o,a,i,s)=>{var u=dr(r,t);e=je(e),e=yr(e),o=hr(n,o,i),Ze(e,function(){wr(`Cannot call ${e} due to unbound types`,u)},r-1),Ie([],u,t=>{var n=[t[0],null].concat(t.slice(1));return fr(e,lr(e,n,null,o,a),r-1),[]})},_r=(e,r,t,n,o)=>{r=je(r);let a=e=>e;if(0===n){var i=32-8*t;a=e=>e<<i>>>i,o=a(o)}$e(e,{name:r,fromWireType:a,toWireType:(e,r)=>r,argPackAdvance:Ve,readValueFromPointer:ze(r,t,0!==n),destructorFunction:null})},br=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][r];function o(e){var r=g[e>>2],t=g[e+4>>2];return new n(f.buffer,t,r)}$e(e,{name:t=je(t),fromWireType:o,argPackAdvance:Ve,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},kr=(e,r,t)=>ue(e,m,r,t),xr=(e,r)=>{$e(e,{name:r=je(r),fromWireType(e){for(var r,t=g[e>>2],n=e+4,o=n,a=0;a<=t;++a){var i=n+a;if(a==t||0==m[i]){var s=Y(o,i-o);void 0===r?r=s:(r+=String.fromCharCode(0),r+=s),o=i+1}}return Rt(e),r},toWireType(e,r){var t;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var n="string"==typeof r;n||ArrayBuffer.isView(r)&&1==r.BYTES_PER_ELEMENT||Re("Cannot pass non-string to std::string"),t=n?se(r):r.length;var o=Ot(4+t+1),a=o+4;return g[o>>2]=t,n?kr(r,a,t+1):m.set(r,a),null!==e&&e.push(Rt,o),o},argPackAdvance:Ve,readValueFromPointer:Fe,destructorFunction(e){Rt(e)}})},Pr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Ar=(e,r)=>{for(var t=e>>1,n=t+r/2,o=t;!(o>=n)&&h[o];)++o;if(o-t>16&&Pr)return Pr.decode(h.subarray(t,o));for(var a="",i=t;!(i>=n);++i){var s=h[i];if(0==s)break;a+=String.fromCharCode(s)}return a},Tr=(e,r,t)=>{if(t??=2147483647,t<2)return 0;for(var n=r,o=(t-=2)<2*e.length?t/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);p[r>>1]=i,r+=2}return p[r>>1]=0,r-n},Sr=e=>2*e.length,Fr=(e,r)=>{for(var t="",n=0;!(n>=r/4);n++){var o=v[e+4*n>>2];if(!o)break;t+=String.fromCodePoint(o)}return t},Dr=(e,r,t)=>{if(t??=2147483647,t<4)return 0;for(var n=r,o=n+t-4,a=0;a<e.length;++a){var i=e.codePointAt(a);if(i>65535&&a++,v[r>>2]=i,(r+=4)+4>o)break}return v[r>>2]=0,r-n},Br=e=>{for(var r=0,t=0;t<e.length;++t)e.codePointAt(t)>65535&&t++,r+=4;return r},Cr=(e,r,t)=>{var n,o,a,i;t=je(t),2===r?(n=Ar,o=Tr,i=Sr,a=e=>h[e>>1]):4===r&&(n=Fr,o=Dr,i=Br,a=e=>g[e>>2]),$e(e,{name:t,fromWireType:e=>{for(var t,o=g[e>>2],i=e+4,s=0;s<=o;++s){var u=e+4+s*r;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+r}}return Rt(e),t},toWireType:(e,n)=>{"string"!=typeof n&&Re(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),s=Ot(4+a+r);return g[s>>2]=a/r,o(n,s+4,a+r),null!==e&&e.push(Rt,s),s},argPackAdvance:Ve,readValueFromPointer:Fe,destructorFunction(e){Rt(e)}})},Lr=(e,r,t,n,o,a)=>{Te[e]={name:je(r),rawConstructor:hr(t,n),rawDestructor:hr(o,a),fields:[]}},Nr=(e,r,t,n,o,a,i,s,u,l)=>{Te[e].fields.push({fieldName:je(r),getterReturnType:t,getter:hr(n,o),getterContext:a,setterArgumentType:i,setter:hr(s,u),setterContext:l})},Ir=(e,r)=>{$e(e,{isVoid:!0,name:r=je(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},Wr=e=>{do{var r=g[e>>2],t=g[(e+=4)>>2],n=g[(e+=4)>>2];e+=4;var o=Y(r);_e.createPath("/",te.dirname(o),!0,!0),_e.createDataFile(o,null,f.subarray(n,n+t),!0,!0,!0)}while(g[e>>2])},jr=(e,r,t)=>{var n=[],o=e.toWireType(n,t);return n.length&&(g[r>>2]=Qe.toHandle(n)),o},Mr=(e,r,t)=>(e=Qe.toValue(e),r=or(r,"emval::as"),jr(r,t,e)),Rr={},Or=e=>{var r=Rr[e];return void 0===r?je(e):r},$r=[],zr=(e,r,t,n,o)=>(e=$r[e])(r=Qe.toValue(r),r[t=Or(t)],n,o),Ur=()=>globalThis,Vr=e=>0===e?Qe.toHandle(Ur()):(e=Or(e),Qe.toHandle(Ur()[e])),Gr=e=>{var r=$r.length;return $r.push(e),r},Hr=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=or(g[r+4*n>>2],`parameter ${n}`);return t},Xr=(e,r,t)=>{var n=Hr(e,r),o=n.shift();e--;var a=new Array(e),i=(r,i,s,u)=>{for(var l=0,c=0;c<e;++c)a[c]=n[c].readValueFromPointer(u+l),l+=n[c].argPackAdvance;var d=1===t?Reflect.construct(i,a):i.apply(r,a);return jr(o,s,d)},s=`methodCaller<(${n.map(e=>e.name).join(", ")}) => ${o.name}>`;return Gr(tr(s,i))},qr=(e,r)=>(e=Qe.toValue(e),r=Qe.toValue(r),Qe.toHandle(e[r])),Qr=e=>{e>9&&(Xe[e+1]+=1)},Yr=(e,r)=>(e=Qe.toValue(e))instanceof(r=Qe.toValue(r)),Jr=e=>"number"==typeof(e=Qe.toValue(e)),Kr=e=>{e=Qe.toValue(e);for(var r=new Array(e.length),t=0;t<e.length;t++)r[t]=e[t];return Qe.toHandle(r)},Zr=e=>Qe.toHandle(Or(e)),et=()=>Qe.toHandle({}),rt=e=>{var r=Qe.toValue(e);Se(r),qe(e)},tt=(e,r,t)=>{e=Qe.toValue(e),r=Qe.toValue(r),t=Qe.toValue(t),e[r]=t},nt=(e,r)=>{var t=(e=or(e,"_emval_take_value")).readValueFromPointer(r);return Qe.toHandle(t)},ot=(e,r,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);g[e>>2]=60*l,v[r>>2]=Number(s!=u);var c=e=>{var r=e>=0?"-":"+",t=Math.abs(e);return`UTC${r}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},d=c(s),f=c(u);u<s?(kr(d,t,17),kr(f,n,17)):(kr(d,n,17),kr(f,t,17))},at=()=>2147483648,it=(e,r)=>Math.ceil(e/r)*r,st=e=>{var r=(e-d.buffer.byteLength+65535)/65536|0;try{return d.grow(r),A(),1}catch(t){}},ut=e=>{var r=m.length;e>>>=0;var t=at();if(e>t)return!1;for(var n=1;n<=4;n*=2){var o=r*(1+.2/n);o=Math.min(o,e+100663296);var a=Math.min(t,it(Math.max(e,o),65536));if(st(a))return!0}return!1},lt=e=>!!(e.dibvbi=e.getExtension("WEBGL_draw_instanced_base_vertex_base_instance")),ct=e=>!!(e.mdibvbi=e.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance")),dt=e=>!!(e.extPolygonOffsetClamp=e.getExtension("EXT_polygon_offset_clamp")),ft=e=>!!(e.extClipControl=e.getExtension("EXT_clip_control")),mt=e=>!!(e.webglPolygonMode=e.getExtension("WEBGL_polygon_mode")),pt=e=>!!(e.multiDrawWebgl=e.getExtension("WEBGL_multi_draw")),ht=e=>{var r=["EXT_color_buffer_float","EXT_conservative_depth","EXT_disjoint_timer_query_webgl2","EXT_texture_norm16","NV_shader_noperspective_interpolation","WEBGL_clip_cull_distance","EXT_clip_control","EXT_color_buffer_half_float","EXT_depth_clamp","EXT_float_blend","EXT_polygon_offset_clamp","EXT_texture_compression_bptc","EXT_texture_compression_rgtc","EXT_texture_filter_anisotropic","KHR_parallel_shader_compile","OES_texture_float_linear","WEBGL_blend_func_extended","WEBGL_compressed_texture_astc","WEBGL_compressed_texture_etc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_debug_renderer_info","WEBGL_debug_shaders","WEBGL_lose_context","WEBGL_multi_draw","WEBGL_polygon_mode"];return(e.getSupportedExtensions()||[]).filter(e=>r.includes(e))},vt={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],shaders:[],vaos:[],contexts:[],offscreenCanvases:{},queries:[],samplers:[],transformFeedbacks:[],syncs:[],stringCache:{},stringiCache:{},unpackAlignment:4,unpackRowLength:0,recordError:e=>{vt.lastError||(vt.lastError=e)},getNewId:e=>{for(var r=vt.counter++,t=e.length;t<r;t++)e[t]=null;return r},genObject:(e,r,t,n)=>{for(var o=0;o<e;o++){var a=gr[t](),i=a&&vt.getNewId(n);a?(a.name=i,n[i]=a):vt.recordError(1282),v[r+4*o>>2]=i}},getSource:(e,r,t,n)=>{for(var o="",a=0;a<r;++a){var i=n?g[n+4*a>>2]:void 0;o+=Y(g[t+4*a>>2],i)}return o},createContext:(e,r)=>{if(o.preinitializedWebGLContext){var t=o.preinitializedWebGLContext;r.majorVersion=Number(t.getParameter(t.VERSION).match(/^WebGL (\d+).\d+/)[1])}else{if(!e.getContextSafariWebGL2Fixed){function n(r,t){var n=e.getContextSafariWebGL2Fixed(r,t);return"webgl"==r==n instanceof WebGLRenderingContext?n:null}e.getContextSafariWebGL2Fixed=e.getContext,e.getContext=n}t=e.getContext("webgl2",r)}return t?vt.registerContext(t,r):0},registerContext:(e,r)=>{var t=vt.getNewId(vt.contexts),n={handle:t,attributes:r,version:r.majorVersion,GLctx:e};return e.canvas&&(e.canvas.GLctxObject=n),vt.contexts[t]=n,(void 0===r.enableExtensionsByDefault||r.enableExtensionsByDefault)&&vt.initExtensions(n),t},makeContextCurrent:e=>(vt.currentContext=vt.contexts[e],o.ctx=gr=vt.currentContext?.GLctx,!(e&&!gr)),getContext:e=>vt.contexts[e],deleteContext:e=>{vt.currentContext===vt.contexts[e]&&(vt.currentContext=null),"object"==typeof JSEvents&&JSEvents.removeAllHandlersOnTarget(vt.contexts[e].GLctx.canvas),vt.contexts[e]?.GLctx.canvas&&(vt.contexts[e].GLctx.canvas.GLctxObject=void 0),vt.contexts[e]=null},initExtensions:e=>{if(e||=vt.currentContext,!e.initExtensionsDone){e.initExtensionsDone=!0;var r=e.GLctx;pt(r),dt(r),ft(r),mt(r),lt(r),ct(r),e.version>=2&&(r.disjointTimerQueryExt=r.getExtension("EXT_disjoint_timer_query_webgl2")),(e.version<2||!r.disjointTimerQueryExt)&&(r.disjointTimerQueryExt=r.getExtension("EXT_disjoint_timer_query")),ht(r).forEach(e=>{e.includes("lose_context")||e.includes("debug")||r.getExtension(e)})}}},gt=["default","low-power","high-performance"],wt=e=>e>2?Y(e):e,yt=[0,document,window],Et=e=>(e=wt(e),yt[e]||document.querySelector(e)),_t=(e,r)=>{var t=r>>2,n=v[t+2],o={alpha:!!f[r+0],depth:!!f[r+1],stencil:!!f[r+2],antialias:!!f[r+3],premultipliedAlpha:!!f[r+4],preserveDrawingBuffer:!!f[r+5],powerPreference:gt[n],failIfMajorPerformanceCaveat:!!f[r+12],majorVersion:v[t+4],minorVersion:v[t+5],enableExtensionsByDefault:f[r+24],explicitSwapControl:f[r+25],proxyContextToMainThread:v[t+7],renderViaOffscreenBackBuffer:f[r+32]},a=Et(e);return a?o.explicitSwapControl?0:vt.createContext(a,o):0},bt=e=>vt.makeContextCurrent(e)?0:-5,kt={},xt=()=>a||"./this.program",Pt=()=>{if(!Pt.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:xt()};for(var r in kt)void 0===kt[r]?delete e[r]:e[r]=kt[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);Pt.strings=t}return Pt.strings},At=(e,r)=>{var t=0,n=0;for(var o of Pt()){var a=r+t;g[e+n>>2]=a,t+=kr(o,a,1/0)+1,n+=4}return 0},Tt=(e,r)=>{var t=Pt();g[e>>2]=t.length;var n=0;for(var o of t)n+=se(o)+1;return g[r>>2]=n,0};function St(e){try{var r=be.getStreamFromFD(e);return _e.close(r),0}catch(t){if(void 0===_e||"ErrnoError"!==t.name)throw t;return t.errno}}var Ft=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=g[r>>2],s=g[r+4>>2];r+=8;var u=_e.read(e,f,i,s,n);if(u<0)return-1;if(o+=u,u<s)break}return o};function Dt(e,r,t,n){try{var o=be.getStreamFromFD(e),a=Ft(o,r,t);return g[n>>2]=a,0}catch(i){if(void 0===_e||"ErrnoError"!==i.name)throw i;return i.errno}}var Bt=9007199254740992,Ct=-9007199254740992,Lt=e=>e<Ct||e>Bt?NaN:Number(e);function Nt(e,r,t,n){r=Lt(r);try{if(isNaN(r))return 61;var o=be.getStreamFromFD(e);return _e.llseek(o,r,t),E[n>>3]=BigInt(o.position),o.getdents&&0===r&&0===t&&(o.getdents=null),0}catch(a){if(void 0===_e||"ErrnoError"!==a.name)throw a;return a.errno}}var It=(e,r,t,n)=>{for(var o=0,a=0;a<t;a++){var i=g[r>>2],s=g[r+4>>2];r+=8;var u=_e.write(e,f,i,s,n);if(u<0)return-1;if(o+=u,u<s)break}return o};function Wt(e,r,t,n){try{var o=be.getStreamFromFD(e),a=It(o,r,t);return g[n>>2]=a,0}catch(i){if(void 0===_e||"ErrnoError"!==i.name)throw i;return i.errno}}var jt,Mt,Rt,Ot,$t=e=>gr.activeTexture(e),zt=(e,r)=>{gr.attachShader(vt.programs[e],vt.shaders[r])},Ut=(e,r,t)=>{gr.bindAttribLocation(vt.programs[e],r,Y(t))},Vt=(e,r)=>{35051==e?gr.currentPixelPackBufferBinding=r:35052==e&&(gr.currentPixelUnpackBufferBinding=r),gr.bindBuffer(e,vt.buffers[r])},Gt=(e,r,t)=>{gr.bindBufferBase(e,r,vt.buffers[t])},Ht=(e,r,t,n,o)=>{gr.bindBufferRange(e,r,vt.buffers[t],n,o)},Xt=(e,r)=>{gr.bindFramebuffer(e,vt.framebuffers[r])},qt=(e,r)=>{gr.bindTexture(e,vt.textures[r])},Qt=e=>{gr.bindVertexArray(vt.vaos[e])},Yt=(e,r,t,n)=>{t&&r?gr.bufferData(e,m,n,t,r):gr.bufferData(e,r,n)},Jt=(e,r,t,n)=>{t&&gr.bufferSubData(e,r,m,n,t)},Kt=e=>gr.clear(e),Zt=(e,r,t,n)=>gr.clearBufferfi(e,r,t,n),en=(e,r,t)=>{gr.clearBufferfv(e,r,w,t>>2)},rn=(e,r,t)=>{gr.clearBufferiv(e,r,v,t>>2)},tn=(e,r,t)=>{gr.clearBufferuiv(e,r,g,t>>2)},nn=(e,r,t,n)=>gr.clearColor(e,r,t,n),on=e=>gr.clearDepth(e),an=e=>gr.clearStencil(e),sn=(e,r,t,n)=>{gr.colorMask(!!e,!!r,!!t,!!n)},un=e=>{gr.compileShader(vt.shaders[e])},ln=()=>{var e=vt.getNewId(vt.programs),r=gr.createProgram();return r.name=e,r.maxUniformLength=r.maxAttributeLength=r.maxUniformBlockNameLength=0,r.uniformIdCounter=1,vt.programs[e]=r,e},cn=e=>{var r=vt.getNewId(vt.shaders);return vt.shaders[r]=gr.createShader(e),r},dn=(e,r)=>{for(var t=0;t<e;t++){var n=v[r+4*t>>2],o=vt.buffers[n];o&&(gr.deleteBuffer(o),o.name=0,vt.buffers[n]=null,n==gr.currentPixelPackBufferBinding&&(gr.currentPixelPackBufferBinding=0),n==gr.currentPixelUnpackBufferBinding&&(gr.currentPixelUnpackBufferBinding=0))}},fn=(e,r)=>{for(var t=0;t<e;++t){var n=v[r+4*t>>2],o=vt.framebuffers[n];o&&(gr.deleteFramebuffer(o),o.name=0,vt.framebuffers[n]=null)}},mn=e=>{if(e){var r=vt.programs[e];r?(gr.deleteProgram(r),r.name=0,vt.programs[e]=null):vt.recordError(1281)}},pn=(e,r)=>{for(var t=0;t<e;t++){var n=v[r+4*t>>2],o=vt.queries[n];o&&(gr.deleteQuery(o),vt.queries[n]=null)}},hn=e=>{if(e){var r=vt.shaders[e];r?(gr.deleteShader(r),vt.shaders[e]=null):vt.recordError(1281)}},vn=(e,r)=>{for(var t=0;t<e;t++){var n=v[r+4*t>>2],o=vt.textures[n];o&&(gr.deleteTexture(o),o.name=0,vt.textures[n]=null)}},gn=(e,r)=>{for(var t=0;t<e;t++){var n=v[r+4*t>>2];gr.deleteVertexArray(vt.vaos[n]),vt.vaos[n]=null}},wn=(e,r,t)=>{gr.drawArrays(e,r,t)},yn=[],En=(e,r)=>{for(var t=yn[e],n=0;n<e;n++)t[n]=v[r+4*n>>2];gr.drawBuffers(t)},_n=(e,r,t,n)=>{gr.drawElements(e,r,t,n)},bn=(e,r,t,n,o)=>{gr.drawElementsInstanced(e,r,t,n,o)},kn=e=>{gr.enableVertexAttribArray(e)},xn=(e,r,t,n,o)=>{gr.framebufferTexture2D(e,r,t,vt.textures[n],o)},Pn=(e,r)=>{vt.genObject(e,r,"createBuffer",vt.buffers)},An=(e,r)=>{vt.genObject(e,r,"createFramebuffer",vt.framebuffers)},Tn=(e,r)=>{vt.genObject(e,r,"createQuery",vt.queries)},Sn=(e,r)=>{vt.genObject(e,r,"createTexture",vt.textures)},Fn=(e,r)=>{vt.genObject(e,r,"createVertexArray",vt.vaos)},Dn=e=>gr.generateMipmap(e),Bn=(e,r)=>{g[e>>2]=r;var t=g[e>>2];g[e+4>>2]=(r-t)/4294967296},Cn=()=>{var e=ht(gr);return e=e.concat(e.map(e=>"GL_"+e))},Ln=(e,r,t)=>{if(r){var n=void 0;switch(e){case 36346:n=1;break;case 36344:return;case 34814:case 36345:n=0;break;case 34466:var o=gr.getParameter(34467);n=o?o.length:0;break;case 33309:if(vt.currentContext.version<2)return void vt.recordError(1282);n=Cn().length;break;case 33307:case 33308:if(vt.currentContext.version<2)return void vt.recordError(1280);n=33307==e?3:0}if(void 0===n){var a=gr.getParameter(e);switch(typeof a){case"number":n=a;break;case"boolean":n=a?1:0;break;case"string":return void vt.recordError(1280);case"object":if(null===a)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:n=0;break;default:return void vt.recordError(1280)}else{if(a instanceof Float32Array||a instanceof Uint32Array||a instanceof Int32Array||a instanceof Array){for(var i=0;i<a.length;++i)switch(t){case 0:v[r+4*i>>2]=a[i];break;case 2:w[r+4*i>>2]=a[i];break;case 4:f[r+i]=a[i]?1:0}return}try{n=0|a.name}catch(s){return vt.recordError(1280),void k(`GL_INVALID_ENUM in glGet${t}v: Unknown object returned from WebGL getParameter(${e})! (error: ${s})`)}}break;default:return vt.recordError(1280),void k(`GL_INVALID_ENUM in glGet${t}v: Native code calling glGet${t}v(${e}) and it returns ${a} of type ${typeof a}!`)}}switch(t){case 1:Bn(r,n);break;case 0:v[r>>2]=n;break;case 2:w[r>>2]=n;break;case 4:f[r]=n?1:0}}else vt.recordError(1281)},Nn=(e,r)=>Ln(e,r,0),In=(e,r,t)=>{if(t){var n,o=vt.queries[e];n=vt.currentContext.version<2?gr.disjointTimerQueryExt.getQueryObjectEXT(o,r):gr.getQueryParameter(o,r),Bn(t,"boolean"==typeof n?n?1:0:n)}else vt.recordError(1281)},Wn=(e,r,t)=>{if(t){var n,o=vt.queries[e],a=gr.disjointTimerQueryExt.getQueryObjectEXT(o,r);n="boolean"==typeof a?a?1:0:a,v[t>>2]=n}else vt.recordError(1281)},jn=(e,r)=>gr.getUniformBlockIndex(vt.programs[e],Y(r)),Mn=e=>parseInt(e),Rn=e=>"]"==e.slice(-1)&&e.lastIndexOf("["),On=e=>{var r,t,n=e.uniformLocsById,o=e.uniformSizeAndIdsByName;if(!n){e.uniformLocsById=n={},e.uniformArrayNamesById={};var a=gr.getProgramParameter(e,35718);for(r=0;r<a;++r){var i=gr.getActiveUniform(e,r),s=i.name,u=i.size,l=Rn(s),c=l>0?s.slice(0,l):s,d=e.uniformIdCounter;for(e.uniformIdCounter+=u,o[c]=[u,d],t=0;t<u;++t)n[d]=t,e.uniformArrayNamesById[d++]=c}}},$n=(e,r)=>{if(r=Y(r),e=vt.programs[e]){On(e);var t=e.uniformLocsById,n=0,o=r,a=Rn(r);a>0&&(n=Mn(r.slice(a+1))>>>0,o=r.slice(0,a));var i=e.uniformSizeAndIdsByName[o];if(i&&n<i[0]&&(t[n+=i[1]]=t[n]||gr.getUniformLocation(e,r)))return n}else vt.recordError(1281);return-1},zn=e=>{e=vt.programs[e],gr.linkProgram(e),e.uniformLocsById=0,e.uniformSizeAndIdsByName={}},Un=(e,r)=>{3317==e?vt.unpackAlignment=r:3314==e&&(vt.unpackRowLength=r),gr.pixelStorei(e,r)},Vn=(e,r)=>{gr.disjointTimerQueryExt.queryCounterEXT(vt.queries[e],r)},Gn=e=>gr.readBuffer(e),Hn=e=>0==(e-=5120)?f:1==e?m:2==e?p:4==e?v:6==e?w:5==e||28922==e||28520==e||30779==e||30782==e?g:h,Xn=(e,r)=>e>>>31-Math.clz32(r.BYTES_PER_ELEMENT),qn=(e,r,t,n,o,a,i)=>{if(gr.currentPixelPackBufferBinding)gr.readPixels(e,r,t,n,o,a,i);else{var s=Hn(a),u=Xn(i,s);gr.readPixels(e,r,t,n,o,a,s,u)}},Qn=(e,r,t,n)=>{var o=vt.getSource(e,r,t,n);gr.shaderSource(vt.shaders[e],o)},Yn=(e,r,t,n,o,a,i,s,u,l)=>{if(gr.currentPixelUnpackBufferBinding)gr.texImage3D(e,r,t,n,o,a,i,s,u,l);else if(l){var c=Hn(u);gr.texImage3D(e,r,t,n,o,a,i,s,u,c,Xn(l,c))}else gr.texImage3D(e,r,t,n,o,a,i,s,u,null)},Jn=(e,r,t)=>gr.texParameteri(e,r,t),Kn=(e,r,t,n,o)=>gr.texStorage2D(e,r,t,n,o),Zn=(e,r,t)=>{function n(e,r){return e+r-1&-r}return r*n((vt.unpackRowLength||e)*t,vt.unpackAlignment)},eo=e=>({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[e-6402]||1),ro=(e,r,t,n,o,a)=>{var i=Hn(e),s=eo(r)*i.BYTES_PER_ELEMENT,u=Zn(t,n,s);return i.subarray(Xn(o,i),Xn(o+u,i))},to=(e,r,t,n,o,a,i,s,u)=>{if(gr.currentPixelUnpackBufferBinding)gr.texSubImage2D(e,r,t,n,o,a,i,s,u);else if(u){var l=Hn(s);gr.texSubImage2D(e,r,t,n,o,a,i,s,l,Xn(u,l))}else{var c=u?ro(s,i,o,a,u):null;gr.texSubImage2D(e,r,t,n,o,a,i,s,c)}},no=(e,r,t,n,o,a,i,s,u,l,c)=>{if(gr.currentPixelUnpackBufferBinding)gr.texSubImage3D(e,r,t,n,o,a,i,s,u,l,c);else if(c){var d=Hn(l);gr.texSubImage3D(e,r,t,n,o,a,i,s,u,l,d,Xn(c,d))}else gr.texSubImage3D(e,r,t,n,o,a,i,s,u,l,null)},oo=e=>{var r=gr.currentProgram;if(r){var t=r.uniformLocsById[e];return"number"==typeof t&&(r.uniformLocsById[e]=t=gr.getUniformLocation(r,r.uniformArrayNamesById[e]+(t>0?`[${t}]`:""))),t}vt.recordError(1282)},ao=(e,r)=>{gr.uniform1i(oo(e),r)},io=(e,r,t)=>{e=vt.programs[e],gr.uniformBlockBinding(e,r,t)},so=e=>{e=vt.programs[e],gr.useProgram(e),gr.currentProgram=e},uo=(e,r,t,n,o)=>{gr.vertexAttribIPointer(e,r,t,n,o)},lo=(e,r,t,n,o,a)=>{gr.vertexAttribPointer(e,r,t,!!n,o,a)},co=(e,r)=>{e<128?r.push(e):r.push(e%128|128,e>>7)},fo=e=>{for(var r={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==e[0]?[]:[r[e[0]]]},n=1;n<e.length;++n)t.parameters.push(r[e[n]]);return t},mo=(e,r)=>{var t=e.slice(0,1),n=e.slice(1),o={i:127,p:127,j:126,f:125,d:124,e:111};for(var a of(r.push(96),co(n.length,r),n))r.push(o[a]);"v"==t?r.push(0):r.push(1,o[t])},po=(e,r)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(fo(r),e);var t=[1];mo(r,t);var n=[0,97,115,109,1,0,0,0,1];co(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:e}}).exports.f},ho=(e,r)=>{if(jt)for(var t=e;t<e+r;t++){var n=pr(t);n&&jt.set(n,t)}},vo=e=>(jt||(jt=new WeakMap,ho(0,cr.length)),jt.get(e)||0),go=[],wo=()=>{if(go.length)return go.pop();try{cr.grow(1)}catch(k){if(!(k instanceof RangeError))throw k;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return cr.length-1},yo=(e,r)=>{cr.set(e,r),mr[e]=cr.get(e)},Eo=(e,r)=>{var t=vo(e);if(t)return t;var n=wo();try{yo(n,e)}catch(k){if(!(k instanceof TypeError))throw k;var o=po(e,r);yo(n,o)}return jt.set(e,n),n},_o=(...e)=>_e.createPath(...e),bo=(...e)=>_e.unlink(...e),ko=(...e)=>_e.createLazyFile(...e),xo=(...e)=>_e.createDevice(...e);_e.createPreloadedFile=we,_e.staticInit(),me.doesNotExistError=new _e.ErrnoError(44),me.doesNotExistError.stack="<generic error, no stack>";for(let n=0;n<32;++n)yn.push(new Array(n));function Po(e){Mt=e.eb,o._free=Rt=e.gb,o._malloc=Ot=e.hb}o.noExitRuntime&&o.noExitRuntime,o.preloadPlugins&&(ve=o.preloadPlugins),o.print&&(b=o.print),o.printErr&&(k=o.printErr),o.wasmBinary&&(u=o.wasmBinary),o.arguments&&o.arguments,o.thisProgram&&(a=o.thisProgram),o.addRunDependency=L,o.removeRunDependency=N,o.addFunction=Eo,o.stringToUTF8=kr,o.lengthBytesUTF8=se,o.specialHTMLTargets=yt,o.FS_createPreloadedFile=we,o.FS_unlink=bo,o.FS_createPath=_o,o.FS_createDevice=xo,o.FS_createDataFile=he,o.FS_createLazyFile=ko;var Ao={ba:J,o:Z,$:ke,Ya:xe,_a:Pe,Za:Ae,ia:We,K:Ue,ga:Ge,ea:Je,L:rr,k:ar,J:sr,e:Er,i:_r,f:br,fa:xr,A:Cr,ja:Lr,q:Nr,ha:Ir,da:Wr,E:Mr,B:zr,a:qe,r:Vr,C:Xr,h:qr,D:Qr,t:Yr,ka:Jr,ma:Kr,b:Zr,g:et,n:rt,c:tt,d:nt,ca:ot,$a:ut,pa:_t,na:bt,Ua:At,Va:Tt,aa:St,Wa:Dt,Xa:Nt,I:Wt,Na:$t,v:zt,Ea:Ut,Qa:Vt,Oa:Gt,Pa:Ht,y:Xt,j:qt,z:Qt,ab:Yt,U:Jt,W:Kt,Ia:Zt,G:en,Ha:rn,V:tn,La:nn,Ka:on,Ja:an,la:sn,Q:un,Fa:ln,S:cn,_:dn,X:fn,Ga:mn,u:pn,p:hn,H:vn,P:gn,Ra:wn,Ma:En,Sa:_n,Ta:bn,sa:kn,x:xn,bb:Pn,Y:An,O:Tn,za:Sn,ta:Fn,ua:Dn,s:Nn,M:In,oa:Wn,Da:jn,Ba:$n,T:zn,l:Un,N:Vn,F:Gn,w:qn,R:Qn,xa:Yn,m:Jn,ya:Kn,va:to,wa:no,Aa:ao,Ca:io,Z:so,qa:uo,ra:lo},To=await z();function So(){function e(){o.calledRun=!0,x||(S(),l?.(o),o.onRuntimeInitialized?.(),F())}B>0?C=So:(T(),B>0?C=So:o.setStatus?(o.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>o.setStatus(""),1),e()},1)):e())}function Fo(){if(o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.shift()()}return Fo(),So(),P?o:new Promise((e,r)=>{l=e,c=r})},e.exports=o,e.exports.default=o),t.exports;var e,n,o}const o=e(n()),a=Object.freeze(Object.defineProperty({__proto__:null,default:o},Symbol.toStringTag,{value:"Module"}));export{a as v};
|
package/config.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.34.0-next.
|
|
5
|
+
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.34.0-next.64";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
|
package/core/Collection.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{__decorate as e}from"tslib";import t from"./ArrayPool.js";import{EventedAccessor as s}from"./Evented.js";import{makeHandle as i}from"./handleUtils.js";import{clone as r}from"./lang.js";import n from"./ObjectPool.js";import{schedule as h}from"./scheduling.js";import{ensureType as o,ensureOneOfType as l}from"./accessorSupport/ensureType.js";import{trackAccess as a}from"./accessorSupport/tracking.js";import{property as c}from"./accessorSupport/decorators/property.js";import{shared as f}from"./accessorSupport/decorators/shared.js";import{subclass as u}from"./accessorSupport/decorators/subclass.js";import{SimpleObservable as _}from"./accessorSupport/tracking/SimpleObservable.js";import{isSerializable as m}from"./support/jsonUtils.js";var g;class d{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class p{constructor(e,t,s,i,r){this.target=e,this.added=t,this.removed=s,this.start=i,this.deleteCount=r}}const b=new n(()=>new d,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function v(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function y(e){return e?e instanceof B?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function C(e){if(e?.length)return e[0]}function A(e,t,s,i){const r=Math.min(e.length-s,t.length-i);let n=0;for(;n<r&&e[s+n]===t[i+n];)n++;return n}function x(e,t,s,i){t&&t.forEach((t,r,n)=>{e.push(t),x(e,s.call(i,t,r,n),s,i)})}const E=new Set,j=new Set,w=new Set,S=new Map;let L=0,B=class extends s{static{g=this}static{this.ofType=t=>{if(!t)return g;if(S.has(t))return S.get(t);let s=null;if("function"==typeof t)s=t.prototype.declaredClass;else if(t.base)s=t.base.prototype.declaredClass;else for(const e in t.typeMap){const i=t.typeMap[e].prototype.declaredClass;s?s+=` | ${i}`:s=i}let i=class extends g{};return e([f({Type:t,ensureType:"function"==typeof t?o(t):l(t)})],i.prototype,"itemType",void 0),i=e([u(`esri.core.Collection<${s}>`)],i),S.set(t,i),i}}static isCollection(e){return null!=e&&e instanceof g}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new _,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:L++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof g?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return a(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,y(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return i();if("change"===e){const e=this._chgListeners,s={removed:!1,callback:t};return e.push(s),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),i(()=>{s.removed=!0,e.splice(e.indexOf(s),1)})}return super.on(e,t)}once(e,t){const s="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{s()?.call(null,e),i.remove()});return i}add(e,t){if(a(this._observable),this._emitBeforeChanges(1))return this;const s=this.getNextIndex(t??null);return this._splice(s,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if(a(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const s=this.getNextIndex(t);return this._splice(s,0,y(e)),this._emitAfterChanges(1),this}at(e){if(a(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(a(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return a(this._observable),this._createNewInstance({items:this._items.map(r)})}concat(...e){a(this._observable);const t=e.map(y);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(a(this._observable),!this.length||this._emitBeforeChanges(2))return;const s=this._splice(0,this.length),i=s.length;for(let r=0;r<i;r++)e.call(t,s[r],r,s);this._emitAfterChanges(2)}destroyAll(){this.drain(v)}destroyMany(e){const t=this.removeMany(e);return t.forEach(v),t}every(e,t){return a(this._observable),this._items.every(e,t)}filter(e,t){a(this._observable);const s=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:s})}find(e,t){return a(this._observable),this._items.find(e,t)}findIndex(e,t){return a(this._observable),this._items.findIndex(e,t)}flatten(e,t){a(this._observable);const s=[];return x(s,this,e,t),new g(s)}forEach(e,t){return a(this._observable),this._items.forEach(e,t)}getItemAt(e){return a(this._observable),this._items[e]}getNextIndex(e){a(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return a(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return a(this._observable),this._items.indexOf(e,t)}join(e=","){return a(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return a(this._observable),this._items.lastIndexOf(e,t)}map(e,t){a(this._observable);const s=this._items.map(e,t);return new g({items:s})}reorder(e,t=this.length-1){a(this._observable);const s=this.indexOf(e);if(-1!==s){if(t<0?t=0:t>=this.length&&(t=this.length-1),s!==t){if(this._emitBeforeChanges(4))return e;this._splice(s,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if(a(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=C(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return a(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){a(this._observable);const s=this._items;return 2===arguments.length?s.reduce(e,t):s.reduce(e)}reduceRight(e,t){a(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(e,t):s.reduceRight(e)}remove(e){return a(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(a(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=C(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if(a(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof g?e.toArray():e,s=this._items,i=[],r=t.length;for(let n=0;n<r;n++){const e=t[n],r=s.indexOf(e);if(r>-1){const e=1+A(t,s,n+1,r+1),h=this._splice(r,e);h&&h.length>0&&i.push.apply(i,h),n+=e-1}}return this._emitAfterChanges(2),i}reverse(){if(a(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if(a(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=C(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return a(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return a(this._observable),this._items.some(e,t)}sort(e){if(a(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let s=0;s<t;s++){if(e(this.items[s],this.items[s+1])>0)return!0}return!1}splice(e,t,...s){a(this._observable),1===arguments.length&&(t=this.length),t??=0;const i=(t?2:0)|(s.length?1:0);if(this._emitBeforeChanges(i))return[];const r=this._splice(e,t,s)||[];return this._emitAfterChanges(i),r}toArray(){return a(this._observable),this._items.slice()}toJSON(e){a(this._observable);return this.toArray().map(t=>m(t)?t.toJSON(e):t)}toLocaleString(){return a(this._observable),this._items.toLocaleString()}toString(){return a(this._observable),this._items.toString()}unshift(...e){return a(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,s){const i=this._items,r=this.itemType;let n,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=h(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(o=i.splice(e,t),this.hasEventListener("before-remove")){const t=b.acquire();t.target=this,t.cancellable=!0;for(let s=0,r=o.length;s<r;s++)n=o[s],t.reset(n),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(s,1),i.splice(e,0,n),e+=1,s-=1,r-=1);b.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=b.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let s=0;s<t;s++)e.reset(o[s]),this.emit("after-remove",e);b.release(e)}}if(s?.length){if(r){const e=[];for(const t of s){const s=r.ensureType(t);null==s&&null!=t||e.push(s)}s=e}const t=this.hasEventListener("before-add"),n=this.hasEventListener("after-add"),h=e===this.length;if(t||n){const r=b.acquire();r.target=this,r.cancellable=!0;const o=b.acquire();o.target=this,o.cancellable=!1;for(const l of s)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(h?i.push(l):i.splice(e++,0,l),this._set("length",i.length),n&&(o.reset(l),this.emit("after-add",o)))):(h?i.push(l):i.splice(e++,0,l),this._set("length",i.length),o.reset(l),this.emit("after-add",o));b.release(o),b.release(r)}else{if(h)for(const e of s)i.push(e);else i.splice(e,0,...s);this._set("length",i.length)}}if((s?.length||o?.length)&&this._notifyChangeEvent(s,o),this.hasEventListener("after-splice")){const i=new p(this,s,o,e,t);this.emit("after-splice",i)}return o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const s=b.acquire();s.target=this,s.cancellable=!0,s.type=e,this.emit("before-changes",s),t=s.defaultPrevented,b.release(s)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=b.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),b.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const s of e){const e=s.changes;E.clear(),j.clear(),w.clear();for(const{added:t,removed:s}of e){if(t)if(0===w.size&&0===j.size)for(const e of t)E.add(e);else for(const e of t)j.has(e)?(w.add(e),j.delete(e)):w.has(e)||E.add(e);if(s)if(0===w.size&&0===E.size)for(const e of s)j.add(e);else for(const e of s)E.has(e)?E.delete(e):(w.delete(e),j.add(e))}const i=t.acquire();E.forEach(e=>{i.push(e)});const r=t.acquire();j.forEach(e=>{r.push(e)});const n=this._items,h=s.items,o=t.acquire();if(w.forEach(e=>{h.indexOf(e)!==n.indexOf(e)&&o.push(e)}),s.listeners&&(i.length||r.length||o.length)){const e={target:this,added:i,removed:r,moved:o},t=s.listeners.length;for(let i=0;i<t;i++){const t=s.listeners[i];t.removed||t.callback.call(this,e)}}t.release(i),t.release(r),t.release(o)}E.clear(),j.clear(),w.clear()}};e([c()],B.prototype,"_updating",void 0),e([c()],B.prototype,"length",void 0),e([c()],B.prototype,"items",null),e([c({readOnly:!0})],B.prototype,"updating",null),B=g=e([u("esri.core.Collection")],B);const O=B;export{O as default};
|
|
5
|
+
import{__decorate as e}from"tslib";import t from"./ArrayPool.js";import{EventedAccessor as s}from"./Evented.js";import{makeHandle as i}from"./handleUtils.js";import{clone as r}from"./lang.js";import n from"./ObjectPool.js";import{schedule as h}from"./scheduling.js";import{ensureType as o,ensureOneOfType as l}from"./accessorSupport/ensureType.js";import{trackAccess as a}from"./accessorSupport/tracking.js";import{property as c}from"./accessorSupport/decorators/property.js";import{shared as f}from"./accessorSupport/decorators/shared.js";import{subclass as u}from"./accessorSupport/decorators/subclass.js";import{SimpleObservable as _}from"./accessorSupport/tracking/SimpleObservable.js";import{isSerializable as m}from"./support/jsonUtils.js";var g;class d{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class p{constructor(e,t,s,i,r){this.target=e,this.added=t,this.removed=s,this.start=i,this.deleteCount=r}}const b=new n(()=>new d,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function v(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function y(e){return e?e instanceof B?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function C(e){if(e?.length)return e[0]}function A(e,t,s,i){const r=Math.min(e.length-s,t.length-i);let n=0;for(;n<r&&e[s+n]===t[i+n];)n++;return n}function x(e,t,s,i){t&&t.forEach((t,r,n)=>{e.push(t),x(e,s.call(i,t,r,n),s,i)})}const E=new Set,j=new Set,w=new Set,S=new Map;let L=0,B=g=class extends s{static ofType(t){if(!t)return g;if(S.has(t))return S.get(t);let s=null;if("function"==typeof t)s=t.prototype.declaredClass;else if(t.base)s=t.base.prototype.declaredClass;else for(const e in t.typeMap){const i=t.typeMap[e].prototype.declaredClass;s?s+=` | ${i}`:s=i}let i=class extends g{};return e([f({Type:t,ensureType:"function"==typeof t?o(t):l(t)})],i.prototype,"itemType",void 0),i=e([u(`esri.core.Collection<${s}>`)],i),S.set(t,i),i}static isCollection(e){return null!=e&&e instanceof g}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new _,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:L++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof g?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return a(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,y(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return i();if("change"===e){const e=this._chgListeners,s={removed:!1,callback:t};return e.push(s),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),i(()=>{s.removed=!0,e.splice(e.indexOf(s),1)})}return super.on(e,t)}once(e,t){const s="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{s()?.call(null,e),i.remove()});return i}add(e,t){if(a(this._observable),this._emitBeforeChanges(1))return this;const s=this.getNextIndex(t??null);return this._splice(s,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if(a(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const s=this.getNextIndex(t);return this._splice(s,0,y(e)),this._emitAfterChanges(1),this}at(e){if(a(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(a(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return a(this._observable),this._createNewInstance({items:this._items.map(r)})}concat(...e){a(this._observable);const t=e.map(y);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(a(this._observable),!this.length||this._emitBeforeChanges(2))return;const s=this._splice(0,this.length),i=s.length;for(let r=0;r<i;r++)e.call(t,s[r],r,s);this._emitAfterChanges(2)}destroyAll(){this.drain(v)}destroyMany(e){const t=this.removeMany(e);return t.forEach(v),t}every(e,t){return a(this._observable),this._items.every(e,t)}filter(e,t){a(this._observable);const s=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:s})}find(e,t){return a(this._observable),this._items.find(e,t)}findIndex(e,t){return a(this._observable),this._items.findIndex(e,t)}flatten(e,t){a(this._observable);const s=[];return x(s,this,e,t),new g(s)}forEach(e,t){return a(this._observable),this._items.forEach(e,t)}getItemAt(e){return a(this._observable),this._items[e]}getNextIndex(e){a(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return a(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return a(this._observable),this._items.indexOf(e,t)}join(e=","){return a(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return a(this._observable),this._items.lastIndexOf(e,t)}map(e,t){a(this._observable);const s=this._items.map(e,t);return new g({items:s})}reorder(e,t=this.length-1){a(this._observable);const s=this.indexOf(e);if(-1!==s){if(t<0?t=0:t>=this.length&&(t=this.length-1),s!==t){if(this._emitBeforeChanges(4))return e;this._splice(s,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if(a(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=C(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return a(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){a(this._observable);const s=this._items;return 2===arguments.length?s.reduce(e,t):s.reduce(e)}reduceRight(e,t){a(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(e,t):s.reduceRight(e)}remove(e){return a(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(a(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=C(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if(a(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof g?e.toArray():e,s=this._items,i=[],r=t.length;for(let n=0;n<r;n++){const e=t[n],r=s.indexOf(e);if(r>-1){const e=1+A(t,s,n+1,r+1),h=this._splice(r,e);h&&h.length>0&&i.push.apply(i,h),n+=e-1}}return this._emitAfterChanges(2),i}reverse(){if(a(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if(a(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=C(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return a(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return a(this._observable),this._items.some(e,t)}sort(e){if(a(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let s=0;s<t;s++){if(e(this.items[s],this.items[s+1])>0)return!0}return!1}splice(e,t,...s){a(this._observable),1===arguments.length&&(t=this.length),t??=0;const i=(t?2:0)|(s.length?1:0);if(this._emitBeforeChanges(i))return[];const r=this._splice(e,t,s)||[];return this._emitAfterChanges(i),r}toArray(){return a(this._observable),this._items.slice()}toJSON(e){a(this._observable);return this.toArray().map(t=>m(t)?t.toJSON(e):t)}toLocaleString(){return a(this._observable),this._items.toLocaleString()}toString(){return a(this._observable),this._items.toString()}unshift(...e){return a(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,s){const i=this._items,r=this.itemType;let n,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=h(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(o=i.splice(e,t),this.hasEventListener("before-remove")){const t=b.acquire();t.target=this,t.cancellable=!0;for(let s=0,r=o.length;s<r;s++)n=o[s],t.reset(n),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(s,1),i.splice(e,0,n),e+=1,s-=1,r-=1);b.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=b.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let s=0;s<t;s++)e.reset(o[s]),this.emit("after-remove",e);b.release(e)}}if(s?.length){if(r){const e=[];for(const t of s){const s=r.ensureType(t);null==s&&null!=t||e.push(s)}s=e}const t=this.hasEventListener("before-add"),n=this.hasEventListener("after-add"),h=e===this.length;if(t||n){const r=b.acquire();r.target=this,r.cancellable=!0;const o=b.acquire();o.target=this,o.cancellable=!1;for(const l of s)t?(r.reset(l),this.emit("before-add",r),r.defaultPrevented||(h?i.push(l):i.splice(e++,0,l),this._set("length",i.length),n&&(o.reset(l),this.emit("after-add",o)))):(h?i.push(l):i.splice(e++,0,l),this._set("length",i.length),o.reset(l),this.emit("after-add",o));b.release(o),b.release(r)}else{if(h)for(const e of s)i.push(e);else i.splice(e,0,...s);this._set("length",i.length)}}if((s?.length||o?.length)&&this._notifyChangeEvent(s,o),this.hasEventListener("after-splice")){const i=new p(this,s,o,e,t);this.emit("after-splice",i)}return o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const s=b.acquire();s.target=this,s.cancellable=!0,s.type=e,this.emit("before-changes",s),t=s.defaultPrevented,b.release(s)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=b.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),b.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const s of e){const e=s.changes;E.clear(),j.clear(),w.clear();for(const{added:t,removed:s}of e){if(t)if(0===w.size&&0===j.size)for(const e of t)E.add(e);else for(const e of t)j.has(e)?(w.add(e),j.delete(e)):w.has(e)||E.add(e);if(s)if(0===w.size&&0===E.size)for(const e of s)j.add(e);else for(const e of s)E.has(e)?E.delete(e):(w.delete(e),j.add(e))}const i=t.acquire();E.forEach(e=>{i.push(e)});const r=t.acquire();j.forEach(e=>{r.push(e)});const n=this._items,h=s.items,o=t.acquire();if(w.forEach(e=>{h.indexOf(e)!==n.indexOf(e)&&o.push(e)}),s.listeners&&(i.length||r.length||o.length)){const e={target:this,added:i,removed:r,moved:o},t=s.listeners.length;for(let i=0;i<t;i++){const t=s.listeners[i];t.removed||t.callback.call(this,e)}}t.release(i),t.release(r),t.release(o)}E.clear(),j.clear(),w.clear()}};e([c()],B.prototype,"_updating",void 0),e([c()],B.prototype,"length",void 0),e([c()],B.prototype,"items",null),e([c({readOnly:!0})],B.prototype,"updating",null),B=g=e([u("esri.core.Collection")],B);const O=B;export{O as default};
|
package/core/has.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
let e;const a=globalThis;function has(d){return"function"==typeof e[d]?e[d]=e[d](a):e[d]}e=a.dojoConfig?.has||a.esriConfig?.has?{...a.dojoConfig?.has,...a.esriConfig?.has}:{},has.add=(a,d,r,o)=>{(o||void 0===e[a])&&(e[a]=d),r&&has(a)},has.cache=e,has.add("big-integer-warning-enabled",!0),has.add("esri-deprecation-warnings",!0),has.add("esri-tests-disable-screenshots",!1),has.add("esri-tests-use-full-window",!1),has.add("esri-tests-post-to-influx",!0),has.add("esri-cim-animations-enable-status","enabled"),has.add("esri-cim-animations-spotlight",!1),has.add("esri-cim-animations-freeze-time",!1),(()=>{has.add("host-webworker",void 0!==a.WorkerGlobalScope&&self instanceof a.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(has.add("host-browser",e),has.add("host-node",!("object"!=typeof a.process||!a.process.versions?.node||!a.process.versions.v8)),has.add("dom",e),has("host-browser")){const e=navigator,a=e.userAgent,d=e.appVersion,r=parseFloat(d);if(has.add("wp",parseFloat(a.split("Windows Phone")[1])||void 0),has.add("msapp",parseFloat(a.split("MSAppHost/")[1])||void 0),has.add("khtml",d.includes("Konqueror")?r:void 0),has.add("edge",parseFloat(a.split("Edge/")[1])||void 0),has.add("opr",parseFloat(a.split("OPR/")[1])||void 0),has.add("webkit",!has("wp")&&!has("edge")&&parseFloat(a.split("WebKit/")[1])||void 0),has.add("chrome",!has("edge")&&!has("opr")&&parseFloat(a.split("Chrome/")[1])||void 0),has.add("android",!has("wp")&&parseFloat(a.split("Android ")[1])||void 0),has.add("safari",!d.includes("Safari")||has("wp")||has("chrome")||has("android")||has("edge")||has("opr")?void 0:parseFloat(d.split("Version/")[1])),has.add("mac",d.includes("Macintosh")),!has("wp")&&/(iPhone|iPod|iPad)/.test(a)){const e=RegExp.$1.replace(/P/,"p"),d=/OS ([\d_]+)/.test(a)?RegExp.$1:"1",r=parseFloat(d.replace(/_/,".").replaceAll("_",""));has.add(e,r),has.add("ios",r)}has("webkit")||(!a.includes("Gecko")||has("wp")||has("khtml")||has("edge")||has.add("mozilla",r),has("mozilla")&&has.add("ff",parseFloat(a.split("Firefox/")[1]||a.split("Minefield/")[1])||void 0))}})(),(()=>{if(a.navigator){const e=navigator.userAgent,a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),d=/iPhone/i.test(e);a&&has.add("esri-mobile",a),d&&has.add("esri-iPhone",d),has.add("esri-geolocation",!!navigator.geolocation)}has.add("esri-wasm","WebAssembly"in a),has.add("esri-performance-mode-frames-between-render",20),has.add("esri-force-performance-mode",!1),has.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in a,d=!1===a.crossOriginIsolated;return e&&!d}),has.add("wasm-simd",()=>{const e=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(e))}),has.add("esri-atomics","Atomics"in a),has.add("esri-workers","Worker"in a),has.add("web-feat:cache","caches"in a),has.add("esri-workers-arraybuffer-transfer",!has("safari")||Number(has("safari"))>=12),has.add("workers-pool-size",8),has.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),has.add("featurelayer-simplify-payload-size-factors",[1,1,4]),has.add("featurelayer-fast-triangulation-enabled",!0),has.add("featurelayer-animation-enabled",!0),has.add("featurelayer-snapshot-enabled",!0),has.add("featurelayer-snapshot-initial-tolerance",0),has.add("featurelayer-snapshot-point-min-threshold",8e4),has.add("featurelayer-snapshot-point-max-threshold",4e5),has.add("featurelayer-snapshot-multipoint-min-threshold",2e4),has.add("featurelayer-snapshot-multipoint-max-threshold",1e5),has.add("featurelayer-snapshot-polygon-min-threshold",
|
|
5
|
+
let e;const a=globalThis;function has(d){return"function"==typeof e[d]?e[d]=e[d](a):e[d]}e=a.dojoConfig?.has||a.esriConfig?.has?{...a.dojoConfig?.has,...a.esriConfig?.has}:{},has.add=(a,d,r,o)=>{(o||void 0===e[a])&&(e[a]=d),r&&has(a)},has.cache=e,has.add("big-integer-warning-enabled",!0),has.add("esri-deprecation-warnings",!0),has.add("esri-tests-disable-screenshots",!1),has.add("esri-tests-use-full-window",!1),has.add("esri-tests-post-to-influx",!0),has.add("esri-cim-animations-enable-status","enabled"),has.add("esri-cim-animations-spotlight",!1),has.add("esri-cim-animations-freeze-time",!1),(()=>{has.add("host-webworker",void 0!==a.WorkerGlobalScope&&self instanceof a.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(has.add("host-browser",e),has.add("host-node",!("object"!=typeof a.process||!a.process.versions?.node||!a.process.versions.v8)),has.add("dom",e),has("host-browser")){const e=navigator,a=e.userAgent,d=e.appVersion,r=parseFloat(d);if(has.add("wp",parseFloat(a.split("Windows Phone")[1])||void 0),has.add("msapp",parseFloat(a.split("MSAppHost/")[1])||void 0),has.add("khtml",d.includes("Konqueror")?r:void 0),has.add("edge",parseFloat(a.split("Edge/")[1])||void 0),has.add("opr",parseFloat(a.split("OPR/")[1])||void 0),has.add("webkit",!has("wp")&&!has("edge")&&parseFloat(a.split("WebKit/")[1])||void 0),has.add("chrome",!has("edge")&&!has("opr")&&parseFloat(a.split("Chrome/")[1])||void 0),has.add("android",!has("wp")&&parseFloat(a.split("Android ")[1])||void 0),has.add("safari",!d.includes("Safari")||has("wp")||has("chrome")||has("android")||has("edge")||has("opr")?void 0:parseFloat(d.split("Version/")[1])),has.add("mac",d.includes("Macintosh")),!has("wp")&&/(iPhone|iPod|iPad)/.test(a)){const e=RegExp.$1.replace(/P/,"p"),d=/OS ([\d_]+)/.test(a)?RegExp.$1:"1",r=parseFloat(d.replace(/_/,".").replaceAll("_",""));has.add(e,r),has.add("ios",r)}has("webkit")||(!a.includes("Gecko")||has("wp")||has("khtml")||has("edge")||has.add("mozilla",r),has("mozilla")&&has.add("ff",parseFloat(a.split("Firefox/")[1]||a.split("Minefield/")[1])||void 0))}})(),(()=>{if(a.navigator){const e=navigator.userAgent,a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),d=/iPhone/i.test(e);a&&has.add("esri-mobile",a),d&&has.add("esri-iPhone",d),has.add("esri-geolocation",!!navigator.geolocation)}has.add("esri-wasm","WebAssembly"in a),has.add("esri-performance-mode-frames-between-render",20),has.add("esri-force-performance-mode",!1),has.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in a,d=!1===a.crossOriginIsolated;return e&&!d}),has.add("wasm-simd",()=>{const e=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(e))}),has.add("esri-atomics","Atomics"in a),has.add("esri-workers","Worker"in a),has.add("web-feat:cache","caches"in a),has.add("esri-workers-arraybuffer-transfer",!has("safari")||Number(has("safari"))>=12),has.add("workers-pool-size",8),has.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),has.add("featurelayer-simplify-payload-size-factors",[1,1,4]),has.add("featurelayer-fast-triangulation-enabled",!0),has.add("featurelayer-animation-enabled",!0),has.add("featurelayer-snapshot-enabled",!0),has.add("featurelayer-snapshot-initial-tolerance",0),has.add("featurelayer-snapshot-point-min-threshold",8e4),has.add("featurelayer-snapshot-point-max-threshold",4e5),has.add("featurelayer-snapshot-multipoint-min-threshold",2e4),has.add("featurelayer-snapshot-multipoint-max-threshold",1e5),has.add("featurelayer-snapshot-polygon-min-threshold",2e3),has.add("featurelayer-snapshot-polygon-max-threshold",2e3),has.add("featurelayer-snapshot-polyline-min-threshold",2e3),has.add("featurelayer-snapshot-polyline-max-threshold",2e3),has.add("featurelayer-snapshot-max-vertex-count",25e4),has.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),has.add("featurelayer-snapshot-concurrency",4),has.add("featurelayer-snapshot-coverage",.1),has.add("featurelayer-query-max-depth",4),has.add("featurelayer-query-pausing-enabled",!1),has.add("featurelayer-query-tile-concurrency",4),has.add("featurelayer-query-tile-max-features",6e5),has.add("featurelayer-advanced-symbols",!1),has.add("featurelayer-pbf",!0),has.add("featurelayer-pbf-statistics",!1),has.add("feature-layers-workers",!0),has.add("feature-polyline-generalization-factor",1),has.add("mapview-transitions-duration",200),has.add("mapview-essential-goto-duration",200),has.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),has.add("mapserver-pbf-version-support",10.81),has.add("mapservice-popup-identify-max-tolerance",20),has.add("request-queue-concurrency-hosted",16),has.add("request-queue-concurrency-non-hosted",4),has.add("curve-densification-coarse-segments",128),has.add("curve-densification-max-segments",2e3),has.add("curve-densification-min-segments",3),has.add("curve-densification-pixel-deviation",.5),has.add("view-readyState-waiting-delay",1e3),has.add("gradient-depth-bias",.01),has.add("gradient-depth-epsilon",1e-8),has.add("enable-feature:esri-compress-textures",!0),has("host-webworker")||has("host-browser")&&(has.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),has.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})();export{has as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{
|
|
5
|
+
import{mars as n,moon as e,earth as r}from"./support/Ellipsoid.js";import{equals as t,isValid as i,isWKIDFromMars as c,isWKIDFromMoon as o}from"./support/spatialReferenceUtils.js";function S(n){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${n.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const T=S(r),G=S(n),p=S(e),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${r.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},I=G.wkt.toUpperCase(),E=p.wkt.toUpperCase();function s(t){if(null!=t&&i(t)){const r=t.wkid,i=t.wkt2??t.wkt;if(c(r))return n;const S=i?.toUpperCase();if(i&&S===I)return n;if(o(r)||S&&S===E)return e}return r}function R(t){return c(t)?n:o(t)?e:r}function A(n){return t(n,T)}function O(n){return A(n)||t(n,G)||t(n,p)}export{T as SphericalECEFSpatialReferenceLike,G as SphericalPCPFMarsLike,p as SphericalPCPFMoonLike,u as WGS84ECEFSpatialReferenceLike,s as getReferenceEllipsoid,R as getReferenceEllipsoidFromWKID,A as isSphericalECEF,O as isSphericalPCPF};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "../../interfaces";
|
|
2
|
+
|
|
3
|
+
export const calculateDistanceAndAzimuth: __esri.geodeticUtilsOperator["calculateDistanceAndAzimuth"];
|
|
4
|
+
export const isLoaded: __esri.geodeticUtilsOperator["isLoaded"];
|
|
5
|
+
export const load: __esri.geodeticUtilsOperator["load"];
|
|
6
|
+
export const pointFromDistance: __esri.geodeticUtilsOperator["pointFromDistance"];
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import"../../core/has.js";import e from"../../core/Error.js";import t from"../HeightModelInfo.js";import{parse as n}from"../../layers/support/arcgisLayerUrl.js";function i(n,i){if(!n)return null;if(!o(n))return new e("webscene:unsupported-height-model-info","The vertical coordinate system of the scene is not supported",{heightModelInfo:n});const a=n.heightUnit,r=t.deriveUnitFromSR(n,i).heightUnit;return a!==r?new e("webscene:incompatible-height-unit",`The vertical units of the scene (${a}) must match the horizontal units of the scene (${r})`,{verticalUnit:a,horizontalUnit:r}):null}function a(n,i,a){const o=c(n),l=i,h=r(o,l,a);if(o){const i=t.deriveUnitFromSR(o,n.spatialReference).heightUnit;if(!a&&i!==o.heightUnit){const t=new e("layerview:unmatched-height-unit",`The vertical units of the layer must match the horizontal units (${i})`,{horizontalUnit:i});return new e("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:o,error:t})}}if(!s(n)||4===h)return new e("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:o});switch(h){case 1:{const t=o?.heightUnit||"unknown",n=l?.heightUnit||"unknown",i=new e("layerview:incompatible-height-unit",`The vertical units of the layer (${t}) must match the vertical units of the scene (${n})`,{layerUnit:t,sceneUnit:n});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:o,sceneHeightModelInfo:l,error:i})}case 2:{const t=o?.heightModel||"unknown",n=l?.heightModel||"unknown",i=new e("layerview:incompatible-height-model",`The height model of the layer (${t}) must match the height model of the scene (${n})`,{layerHeightModel:t,sceneHeightModel:n});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:o,sceneHeightModelInfo:l,error:i})}case 3:{const t=o?.vertCRS||"unknown",n=l?.vertCRS||"unknown",i=new e("layerview:incompatible-vertical-datum",`The vertical datum of the layer (${t}) must match the vertical datum of the scene (${n})`,{layerDatum:t,sceneDatum:n});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:o,sceneHeightModelInfo:l,error:i})}}return null}function r(e,t,n){if(!o(e)||!o(t))return 4;if(null==e||null==t)return 0;if(!n&&e.heightUnit!==t.heightUnit)return 1;if(e.heightModel!==t.heightModel)return 2;switch(e.heightModel){case"gravity-related-height":return 0;case"ellipsoidal":return e.vertCRS===t.vertCRS?0:3;default:return 4}}function o(e){return null==e||null!=e.heightModel&&null!=e.heightUnit}function s(e){return"heightModelInfo"in e&&null!=e.heightModelInfo||null!=e.spatialReference||!u(e)}function c(e){if("integrated-mesh-3dtiles"===e.type)return null;const i=e.url?n(e.url):void 0,a=e.spatialReference?.vcsWkid;return!(null==a&&null!=i&&"ImageServer"===i.serverType)&&l(e)&&e.heightModelInfo?e.heightModelInfo:u(e)?t.deriveUnitFromSR(f,e.spatialReference):null}function l(e){return"heightModelInfo"in e}function h(e){if("unknown"===e.type||!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"subtype-group":case"ogc-feature":case"oriented-imagery":case"wfs":case"knowledge-graph-sublayer":return!0;default:return!1}}function u(e){return h(e)?!!(e.capabilities&&e.capabilities.data&&e.capabilities.data.supportsZ):d(e)}function g(e){return null!=e.layers||d(e)||h(e)||l(e)}function d(e){switch(e.type){case"building-scene":case"elevation":case"integrated-mesh":case"integrated-mesh-3dtiles":case"point-cloud":case"scene":case"voxel":return!0;case"base-dynamic":case"base-elevation":case"base-tile":case"bing-maps":case"catalog":case"catalog-footprint":case"catalog-dynamic-group":case"csv":case"dimension":case"gaussian-splat":case"geojson":case"feature":case"subtype-group":case"geo-rss":case"graphics":case"group":case"imagery":case"imagery-tile":case"kml":case"knowledge-graph":case"link-chart":case"knowledge-graph-sublayer":case"line-of-sight":case"map-image":case"map-notes":case"media":case"ogc-feature":case"open-street-map":case"oriented-imagery":case"parquet":case"route":case"stream":case"tile":case"unknown":case"unsupported":case"vector-tile":case"video":case"viewshed":case"wcs":case"web-tile":case"wfs":case"wms":case"wmts":case null:return!1}return!1}const f=new t({heightModel:"gravity-related-height"});export{c as deriveHeightModelInfoFromLayer,a as rejectLayerError,g as supportsHeightModelInfo,i as validateWebSceneError};
|
|
5
|
+
import"../../core/has.js";import e from"../../core/Error.js";import t from"../HeightModelInfo.js";import{parse as n}from"../../layers/support/arcgisLayerUrl.js";function i(n,i){if(!n)return null;if(!o(n))return new e("webscene:unsupported-height-model-info","The vertical coordinate system of the scene is not supported",{heightModelInfo:n});const a=n.heightUnit,r=t.deriveUnitFromSR(n,i).heightUnit;return a!==r?new e("webscene:incompatible-height-unit",`The vertical units of the scene (${a}) must match the horizontal units of the scene (${r})`,{verticalUnit:a,horizontalUnit:r}):null}function a(n,i,a){const o=c(n),l=i,h=r(o,l,a);if(o){const i=t.deriveUnitFromSR(o,n.spatialReference).heightUnit;if(!a&&i!==o.heightUnit){const t=new e("layerview:unmatched-height-unit",`The vertical units of the layer must match the horizontal units (${i})`,{horizontalUnit:i});return new e("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:o,error:t})}}if(!s(n)||4===h)return new e("layerview:unsupported-height-model-info","The vertical coordinate system of the layer is not supported",{heightModelInfo:o});switch(h){case 1:{const t=o?.heightUnit||"unknown",n=l?.heightUnit||"unknown",i=new e("layerview:incompatible-height-unit",`The vertical units of the layer (${t}) must match the vertical units of the scene (${n})`,{layerUnit:t,sceneUnit:n});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:o,sceneHeightModelInfo:l,error:i})}case 2:{const t=o?.heightModel||"unknown",n=l?.heightModel||"unknown",i=new e("layerview:incompatible-height-model",`The height model of the layer (${t}) must match the height model of the scene (${n})`,{layerHeightModel:t,sceneHeightModel:n});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:o,sceneHeightModelInfo:l,error:i})}case 3:{const t=o?.vertCRS||"unknown",n=l?.vertCRS||"unknown",i=new e("layerview:incompatible-vertical-datum",`The vertical datum of the layer (${t}) must match the vertical datum of the scene (${n})`,{layerDatum:t,sceneDatum:n});return new e("layerview:incompatible-height-model-info","The vertical coordinate system of the layer is incompatible with the scene",{layerHeightModelInfo:o,sceneHeightModelInfo:l,error:i})}}return null}function r(e,t,n){if(!o(e)||!o(t))return 4;if(null==e||null==t)return 0;if(!n&&e.heightUnit!==t.heightUnit)return 1;if(e.heightModel!==t.heightModel)return 2;switch(e.heightModel){case"gravity-related-height":return 0;case"ellipsoidal":return e.vertCRS===t.vertCRS?0:3;default:return 4}}function o(e){return null==e||null!=e.heightModel&&null!=e.heightUnit}function s(e){return"heightModelInfo"in e&&null!=e.heightModelInfo||null!=e.spatialReference||!u(e)}function c(e){if("integrated-mesh-3dtiles"===e.type||"gaussian-splat"===e.type)return null;const i=e.url?n(e.url):void 0,a=e.spatialReference?.vcsWkid;return!(null==a&&null!=i&&"ImageServer"===i.serverType)&&l(e)&&e.heightModelInfo?e.heightModelInfo:u(e)?t.deriveUnitFromSR(f,e.spatialReference):null}function l(e){return"heightModelInfo"in e}function h(e){if("unknown"===e.type||!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"subtype-group":case"ogc-feature":case"oriented-imagery":case"wfs":case"knowledge-graph-sublayer":return!0;default:return!1}}function u(e){return h(e)?!!(e.capabilities&&e.capabilities.data&&e.capabilities.data.supportsZ):d(e)}function g(e){return null!=e.layers||d(e)||h(e)||l(e)}function d(e){switch(e.type){case"building-scene":case"elevation":case"integrated-mesh":case"integrated-mesh-3dtiles":case"point-cloud":case"scene":case"voxel":return!0;case"base-dynamic":case"base-elevation":case"base-tile":case"bing-maps":case"catalog":case"catalog-footprint":case"catalog-dynamic-group":case"csv":case"dimension":case"gaussian-splat":case"geojson":case"feature":case"subtype-group":case"geo-rss":case"graphics":case"group":case"imagery":case"imagery-tile":case"kml":case"knowledge-graph":case"link-chart":case"knowledge-graph-sublayer":case"line-of-sight":case"map-image":case"map-notes":case"media":case"ogc-feature":case"open-street-map":case"oriented-imagery":case"parquet":case"route":case"stream":case"tile":case"unknown":case"unsupported":case"vector-tile":case"video":case"viewshed":case"wcs":case"web-tile":case"wfs":case"wms":case"wmts":case null:return!1}return!1}const f=new t({heightModel:"gravity-related-height"});export{c as deriveHeightModelInfoFromLayer,a as rejectLayerError,g as supportsHeightModelInfo,i as validateWebSceneError};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{popupProviderSymbol as e}from"./getPopupProvider.js";import t from"./GraphicOrigin.js";class r extends t{constructor(e){super(),this.type="aggregate",this.featureReductionProvider=e}get[e](){const e=this.featureReductionProvider.featureReduction;return e&&"popupTemplate"in e?e:null}}export{r as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import r
|
|
5
|
+
import{popupProviderSymbol as r}from"./getPopupProvider.js";import t from"./GraphicOrigin.js";import{isCSVGraphicOriginSymbol as i}from"./isCSVGraphicOrigin.js";var s;class e extends t{constructor(r){super(),this[s]=!0,this.type="csv",this.layer=r}get[(s=i,r)](){return this.layer}}export{e as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import r
|
|
5
|
+
import{popupProviderSymbol as r}from"./getPopupProvider.js";import t from"./GraphicOrigin.js";import{isCatalogGraphicOriginSymbol as i}from"./isCatalogGraphicOrigin.js";var s;class o extends t{constructor(r){super(),this[s]=!0,this.type="catalog",this.layer=r}get[(s=i,r)](){return this.layer}}export{o as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import r
|
|
5
|
+
import{popupProviderSymbol as r}from"./getPopupProvider.js";import t from"./GraphicOrigin.js";import{isFeatureGraphicOriginSymbol as e}from"./isFeatureGraphicOrigin.js";var i;class s extends t{constructor(r){super(),this[i]=!0,this.type="feature",this.layer=r}get[(i=e,r)](){return this.layer}}export{s as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import r
|
|
5
|
+
import{popupProviderSymbol as r}from"./getPopupProvider.js";import t from"./GraphicOrigin.js";import{isGeoJSONGraphicOriginSymbol as i}from"./isGeoJSONGraphicOrigin.js";var s;class e extends t{constructor(r){super(),this[s]=!0,this.type="geojson",this.layer=r}get[(s=i,r)](){return this.layer}}export{e as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import r
|
|
5
|
+
import{popupProviderSymbol as r}from"./getPopupProvider.js";import e from"./GraphicOrigin.js";import{isKnowledgeGraphGraphicOriginSymbol as s}from"./isKnowledgeGraphGraphicOrigin.js";var t;class i extends e{constructor(r,e){super(),this[t]=!0,this.type="knowledge-graph",this.layer=r,this.sublayer=e}get[(t=s,r)](){return this.sublayer}}export{i as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import r
|
|
5
|
+
import{popupProviderSymbol as r}from"./getPopupProvider.js";import t from"./GraphicOrigin.js";import{isOGCFeatureGraphicOriginSymbol as e}from"./isOGCFeatureGraphicOrigin.js";var i;class s extends t{constructor(r){super(),this[i]=!0,this.type="ogc-feature",this.layer=r}get[(i=e,r)](){return this.layer}}export{s as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import r
|
|
5
|
+
import{popupProviderSymbol as r}from"./getPopupProvider.js";import e from"./GraphicOrigin.js";import{isOrientedImageryGraphicOriginSymbol as i}from"./isOrientedImageryGraphicOrigin.js";var t;class s extends e{constructor(r){super(),this[t]=!0,this.type="oriented-imagery",this.layer=r}get[(t=i,r)](){return this.layer}}export{s as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import r
|
|
5
|
+
import{popupProviderSymbol as r}from"./getPopupProvider.js";import t from"./GraphicOrigin.js";import{isParquetGraphicOriginSymbol as i}from"./isParquetGraphicOrigin.js";var e;class s extends t{constructor(r){super(),this[e]=!0,this.type="parquet",this.layer=r}get[(e=i,r)](){return this.layer}}export{s as default};
|