drone_view 3.0.63 → 3.0.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/dist/droneView.js +1 -1
- package/package.json +1 -1
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/serviceV2/3d/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/serviceV2/3d/Assets/Images/bing_maps_credit.png +0 -0
- package/serviceV2/3d/Assets/Images/cesium_credit.png +0 -0
- package/serviceV2/3d/Assets/Images/google_earth_credit.png +0 -0
- package/serviceV2/3d/Assets/Images/ion-credit.png +0 -0
- package/serviceV2/3d/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/serviceV2/3d/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/maki/airfield.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/airport.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/america-football.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/art-gallery.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/bakery.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/bank.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/bar.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/baseball.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/basketball.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/beer.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/bicycle.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/building.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/bus.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/cafe.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/camera.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/campsite.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/car.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/cemetery.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/cesium.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/chemist.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/cinema.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/circle-stroked.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/circle.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/city.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/clothing-store.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/college.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/commercial.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/cricket.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/cross.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/dam.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/danger.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/disability.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/dog-park.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/embassy.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/entrance.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/farm.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/fast-food.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/ferry.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/fire-station.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/fuel.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/garden.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/gift.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/golf.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/grocery.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/hairdresser.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/harbor.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/heart.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/heliport.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/hospital.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/ice-cream.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/industrial.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/land-use.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/laundry.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/library.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/lighthouse.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/lodging.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/logging.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/london-underground.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/marker-stroked.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/marker.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/minefield.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/mobilephone.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/monument.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/museum.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/music.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/oil-well.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/park.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/park2.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/parking-garage.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/parking.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/pharmacy.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/pitch.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/place-of-worship.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/playground.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/police.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/polling-place.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/post.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/prison.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/rail-above.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/rail-light.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/rail-metro.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/rail-underground.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/rail.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/religious-christian.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/religious-jewish.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/religious-muslim.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/restaurant.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/roadblock.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/rocket.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/school.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/scooter.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/shop.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/skiing.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/soccer.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/square-stroked.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/square.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/star-stroked.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/star.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/suitcase.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/swimming.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/telephone.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/tennis.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/theatre.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/toilets.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/town-hall.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/town.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/triangle.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/village.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/warehouse.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/waste-basket.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/water.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/wetland.png +0 -0
- package/serviceV2/3d/Assets/Textures/maki/zoo.png +0 -0
- package/serviceV2/3d/Assets/Textures/moonSmall.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/pin.svg +1 -0
- package/serviceV2/3d/Assets/Textures/waterNormals.jpg +0 -0
- package/serviceV2/3d/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/serviceV2/3d/Assets/approximateTerrainHeights.json +1 -0
- package/serviceV2/3d/ThirdParty/Workers/package.json +1 -0
- package/serviceV2/3d/ThirdParty/Workers/zip-web-worker.js +1 -0
- package/serviceV2/3d/ThirdParty/basis_transcoder.wasm +0 -0
- package/serviceV2/3d/ThirdParty/draco_decoder.wasm +0 -0
- package/serviceV2/3d/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/serviceV2/3d/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/serviceV2/3d/ThirdParty/zip-module.wasm +0 -0
- package/serviceV2/3d/Widgets/Animation/Animation.css +127 -0
- package/serviceV2/3d/Widgets/Animation/lighter.css +70 -0
- package/serviceV2/3d/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
- package/serviceV2/3d/Widgets/BaseLayerPicker/lighter.css +22 -0
- package/serviceV2/3d/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
- package/serviceV2/3d/Widgets/CesiumInspector/CesiumInspector.css +113 -0
- package/serviceV2/3d/Widgets/CesiumWidget/CesiumWidget.css +119 -0
- package/serviceV2/3d/Widgets/CesiumWidget/lighter.css +14 -0
- package/serviceV2/3d/Widgets/FullscreenButton/FullscreenButton.css +8 -0
- package/serviceV2/3d/Widgets/Geocoder/Geocoder.css +70 -0
- package/serviceV2/3d/Widgets/Geocoder/lighter.css +17 -0
- package/serviceV2/3d/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/googleContour.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/googleLabels.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/serviceV2/3d/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/serviceV2/3d/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/serviceV2/3d/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/serviceV2/3d/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/serviceV2/3d/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/serviceV2/3d/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/serviceV2/3d/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/serviceV2/3d/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/serviceV2/3d/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/serviceV2/3d/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/serviceV2/3d/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/serviceV2/3d/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/serviceV2/3d/Widgets/Images/TimelineIcons.png +0 -0
- package/serviceV2/3d/Widgets/Images/info-loading.gif +0 -0
- package/serviceV2/3d/Widgets/InfoBox/InfoBox.css +92 -0
- package/serviceV2/3d/Widgets/InfoBox/InfoBoxDescription.css +178 -0
- package/serviceV2/3d/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
- package/serviceV2/3d/Widgets/NavigationHelpButton/lighter.css +38 -0
- package/serviceV2/3d/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
- package/serviceV2/3d/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
- package/serviceV2/3d/Widgets/SceneModePicker/SceneModePicker.css +56 -0
- package/serviceV2/3d/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
- package/serviceV2/3d/Widgets/Timeline/Timeline.css +103 -0
- package/serviceV2/3d/Widgets/Timeline/lighter.css +23 -0
- package/serviceV2/3d/Widgets/VRButton/VRButton.css +8 -0
- package/serviceV2/3d/Widgets/Viewer/Viewer.css +107 -0
- package/serviceV2/3d/Widgets/VoxelInspector/VoxelInspector.css +16 -0
- package/serviceV2/3d/Widgets/lighter.css +237 -0
- package/serviceV2/3d/Widgets/lighterShared.css +46 -0
- package/serviceV2/3d/Widgets/shared.css +103 -0
- package/serviceV2/3d/Widgets/widgets.css +1342 -0
- package/serviceV2/3d/Workers/chunk-2ZPEMRCT.js +2 -0
- package/serviceV2/3d/Workers/chunk-2ZPEMRCT.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-3BSRJTW3.js +2 -0
- package/serviceV2/3d/Workers/chunk-3BSRJTW3.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-3WSHJXU2.js +2 -0
- package/serviceV2/3d/Workers/chunk-3WSHJXU2.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-42MGKNSS.js +2 -0
- package/serviceV2/3d/Workers/chunk-42MGKNSS.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-4MJDNHOT.js +2 -0
- package/serviceV2/3d/Workers/chunk-4MJDNHOT.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-4WJUWBRK.js +2 -0
- package/serviceV2/3d/Workers/chunk-4WJUWBRK.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-5G23AKP3.js +2 -0
- package/serviceV2/3d/Workers/chunk-5G23AKP3.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-5HPISDSZ.js +2 -0
- package/serviceV2/3d/Workers/chunk-5HPISDSZ.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-APG2S62J.js +2 -0
- package/serviceV2/3d/Workers/chunk-APG2S62J.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-AZLP5742.js +2 -0
- package/serviceV2/3d/Workers/chunk-AZLP5742.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-BJAB7QAF.js +2 -0
- package/serviceV2/3d/Workers/chunk-BJAB7QAF.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-BTDQB5Q4.js +2 -0
- package/serviceV2/3d/Workers/chunk-BTDQB5Q4.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-CJRI54BI.js +2 -0
- package/serviceV2/3d/Workers/chunk-CJRI54BI.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-CUP6SILZ.js +2 -0
- package/serviceV2/3d/Workers/chunk-CUP6SILZ.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-D2NFCOGE.js +2 -0
- package/serviceV2/3d/Workers/chunk-D2NFCOGE.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-DK73HV33.js +2 -0
- package/serviceV2/3d/Workers/chunk-DK73HV33.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-EDF5FKWJ.js +2 -0
- package/serviceV2/3d/Workers/chunk-EDF5FKWJ.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-ET7KY3BS.js +2 -0
- package/serviceV2/3d/Workers/chunk-ET7KY3BS.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-FIHQI7E3.js +2 -0
- package/serviceV2/3d/Workers/chunk-FIHQI7E3.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-FVGSQINW.js +2 -0
- package/serviceV2/3d/Workers/chunk-FVGSQINW.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-FWF3VNA2.js +2 -0
- package/serviceV2/3d/Workers/chunk-FWF3VNA2.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-GTQ3WXPT.js +2 -0
- package/serviceV2/3d/Workers/chunk-GTQ3WXPT.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-HSJ6GSLC.js +2 -0
- package/serviceV2/3d/Workers/chunk-HSJ6GSLC.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-IOTBNCMN.js +2 -0
- package/serviceV2/3d/Workers/chunk-IOTBNCMN.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-IYO6TYGP.js +2 -0
- package/serviceV2/3d/Workers/chunk-IYO6TYGP.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-J7MBSSYW.js +2 -0
- package/serviceV2/3d/Workers/chunk-J7MBSSYW.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-KWAHJ72S.js +2 -0
- package/serviceV2/3d/Workers/chunk-KWAHJ72S.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-KX5PR5Q3.js +2 -0
- package/serviceV2/3d/Workers/chunk-KX5PR5Q3.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-LJBMXZ6U.js +2 -0
- package/serviceV2/3d/Workers/chunk-LJBMXZ6U.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-LPJEXZWM.js +2 -0
- package/serviceV2/3d/Workers/chunk-LPJEXZWM.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-MKDADUG3.js +2 -0
- package/serviceV2/3d/Workers/chunk-MKDADUG3.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-NOIUI5SY.js +2 -0
- package/serviceV2/3d/Workers/chunk-NOIUI5SY.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-OFCC6BNI.js +2 -0
- package/serviceV2/3d/Workers/chunk-OFCC6BNI.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-OXJ2LJUE.js +2 -0
- package/serviceV2/3d/Workers/chunk-OXJ2LJUE.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-Q4W25C4L.js +2 -0
- package/serviceV2/3d/Workers/chunk-Q4W25C4L.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-QORMFUM4.js +2 -0
- package/serviceV2/3d/Workers/chunk-QORMFUM4.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-RCHWDG3R.js +2 -0
- package/serviceV2/3d/Workers/chunk-RCHWDG3R.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-RYOF6QSA.js +2 -0
- package/serviceV2/3d/Workers/chunk-RYOF6QSA.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-SCO7TMKT.js +2 -0
- package/serviceV2/3d/Workers/chunk-SCO7TMKT.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-SNSHUVCZ.js +2 -0
- package/serviceV2/3d/Workers/chunk-SNSHUVCZ.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-SXKYZMEL.js +2 -0
- package/serviceV2/3d/Workers/chunk-SXKYZMEL.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-T6Q6HX5J.js +2 -0
- package/serviceV2/3d/Workers/chunk-T6Q6HX5J.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-T77EB7BE.js +2 -0
- package/serviceV2/3d/Workers/chunk-T77EB7BE.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-TGKHFJV6.js +2 -0
- package/serviceV2/3d/Workers/chunk-TGKHFJV6.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-U6GWZBRL.js +2 -0
- package/serviceV2/3d/Workers/chunk-U6GWZBRL.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-UTYWXSQT.js +2 -0
- package/serviceV2/3d/Workers/chunk-UTYWXSQT.js.LICENSE.txt +67 -0
- package/serviceV2/3d/Workers/chunk-VHZAK4GN.js +2 -0
- package/serviceV2/3d/Workers/chunk-VHZAK4GN.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-VTK7G5BX.js +2 -0
- package/serviceV2/3d/Workers/chunk-VTK7G5BX.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-XBWRWNYZ.js +2 -0
- package/serviceV2/3d/Workers/chunk-XBWRWNYZ.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-XQDTMI7Q.js +2 -0
- package/serviceV2/3d/Workers/chunk-XQDTMI7Q.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-XQIJGAVD.js +2 -0
- package/serviceV2/3d/Workers/chunk-XQIJGAVD.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-XRRBRTKL.js +2 -0
- package/serviceV2/3d/Workers/chunk-XRRBRTKL.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-YHWHVNY2.js +2 -0
- package/serviceV2/3d/Workers/chunk-YHWHVNY2.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/chunk-YY6GMQGO.js +2 -0
- package/serviceV2/3d/Workers/chunk-YY6GMQGO.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/combineGeometry.js +2 -0
- package/serviceV2/3d/Workers/combineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createBoxGeometry.js +2 -0
- package/serviceV2/3d/Workers/createBoxGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createBoxOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createBoxOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createCircleGeometry.js +2 -0
- package/serviceV2/3d/Workers/createCircleGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createCircleOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createCircleOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createCoplanarPolygonGeometry.js +2 -0
- package/serviceV2/3d/Workers/createCoplanarPolygonGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createCoplanarPolygonOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createCoplanarPolygonOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createCorridorGeometry.js +2 -0
- package/serviceV2/3d/Workers/createCorridorGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createCorridorOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createCorridorOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createCylinderGeometry.js +2 -0
- package/serviceV2/3d/Workers/createCylinderGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createCylinderOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createCylinderOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createEllipseGeometry.js +2 -0
- package/serviceV2/3d/Workers/createEllipseGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createEllipseOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createEllipseOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createEllipsoidGeometry.js +2 -0
- package/serviceV2/3d/Workers/createEllipsoidGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createEllipsoidOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createEllipsoidOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createFrustumGeometry.js +2 -0
- package/serviceV2/3d/Workers/createFrustumGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createFrustumOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createFrustumOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createGeometry.js +2 -0
- package/serviceV2/3d/Workers/createGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createGroundPolylineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createGroundPolylineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createPlaneGeometry.js +2 -0
- package/serviceV2/3d/Workers/createPlaneGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createPlaneOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createPlaneOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createPolygonGeometry.js +2 -0
- package/serviceV2/3d/Workers/createPolygonGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createPolygonOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createPolygonOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createPolylineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createPolylineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createPolylineVolumeGeometry.js +2 -0
- package/serviceV2/3d/Workers/createPolylineVolumeGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createPolylineVolumeOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createPolylineVolumeOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createRectangleGeometry.js +2 -0
- package/serviceV2/3d/Workers/createRectangleGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createRectangleOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createRectangleOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createSimplePolylineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createSimplePolylineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createSphereGeometry.js +2 -0
- package/serviceV2/3d/Workers/createSphereGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createSphereOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createSphereOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createTaskProcessorWorker.js +2 -0
- package/serviceV2/3d/Workers/createTaskProcessorWorker.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createVectorTileClampedPolylines.js +2 -0
- package/serviceV2/3d/Workers/createVectorTileClampedPolylines.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createVectorTileGeometries.js +2 -0
- package/serviceV2/3d/Workers/createVectorTileGeometries.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createVectorTilePoints.js +2 -0
- package/serviceV2/3d/Workers/createVectorTilePoints.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createVectorTilePolygons.js +2 -0
- package/serviceV2/3d/Workers/createVectorTilePolygons.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createVectorTilePolylines.js +2 -0
- package/serviceV2/3d/Workers/createVectorTilePolylines.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createVerticesFromCesium3DTilesTerrain.js +2 -0
- package/serviceV2/3d/Workers/createVerticesFromCesium3DTilesTerrain.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -0
- package/serviceV2/3d/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createVerticesFromHeightmap.js +2 -0
- package/serviceV2/3d/Workers/createVerticesFromHeightmap.js.LICENSE.txt +26 -0
- package/serviceV2/3d/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -0
- package/serviceV2/3d/Workers/createVerticesFromQuantizedTerrainMesh.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createWallGeometry.js +2 -0
- package/serviceV2/3d/Workers/createWallGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/createWallOutlineGeometry.js +2 -0
- package/serviceV2/3d/Workers/createWallOutlineGeometry.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/decodeDraco.js +2 -0
- package/serviceV2/3d/Workers/decodeDraco.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/decodeGoogleEarthEnterprisePacket.js +2 -0
- package/serviceV2/3d/Workers/decodeGoogleEarthEnterprisePacket.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/decodeI3S.js +2 -0
- package/serviceV2/3d/Workers/decodeI3S.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/gaussianSplatSorter.js +2 -0
- package/serviceV2/3d/Workers/gaussianSplatSorter.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/gaussianSplatTextureGenerator.js +2 -0
- package/serviceV2/3d/Workers/gaussianSplatTextureGenerator.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/transcodeKTX2.js +2 -0
- package/serviceV2/3d/Workers/transcodeKTX2.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/transferTypedArrayTest.js +2 -0
- package/serviceV2/3d/Workers/transferTypedArrayTest.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/upsampleQuantizedTerrainMesh.js +2 -0
- package/serviceV2/3d/Workers/upsampleQuantizedTerrainMesh.js.LICENSE.txt +24 -0
- package/serviceV2/3d/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +2 -0
- package/serviceV2/3d/Workers/upsampleVerticesFromCesium3DTilesTerrain.js.LICENSE.txt +24 -0
- package/webpack.config.dev.js +5 -5
- package/webpack.config.prod.js +5 -5
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createWallGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as nt}from"./chunk-VTK7G5BX.js";import"./chunk-QORMFUM4.js";import"./chunk-FWF3VNA2.js";import{a as w}from"./chunk-APG2S62J.js";import"./chunk-AZLP5742.js";import"./chunk-5HPISDSZ.js";import"./chunk-HSJ6GSLC.js";import"./chunk-SXKYZMEL.js";import{a as ot}from"./chunk-T6Q6HX5J.js";import{a as it}from"./chunk-4MJDNHOT.js";import{b as tt,c as et,d as R}from"./chunk-EDF5FKWJ.js";import{d as I}from"./chunk-XQIJGAVD.js";import"./chunk-UTYWXSQT.js";import{a as N}from"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import"./chunk-5G23AKP3.js";import{a as s,d as l,f as K}from"./chunk-KWAHJ72S.js";import{a as V}from"./chunk-MKDADUG3.js";import{a as y}from"./chunk-NOIUI5SY.js";import{e as r}from"./chunk-XRRBRTKL.js";var Q=new s,J=new s,lt=new s,st=new s,pt=new s,ut=new s,ft=new s;function E(t){let e=(t=t??K.EMPTY_OBJECT).positions,i=t.maximumHeights,n=t.minimumHeights;if(!r(e))throw new y("options.positions is required.");if(r(i)&&i.length!==e.length)throw new y("options.positions and options.maximumHeights must have the same length.");if(r(n)&&n.length!==e.length)throw new y("options.positions and options.minimumHeights must have the same length.");let o=t.vertexFormat??w.DEFAULT,a=t.granularity??V.RADIANS_PER_DEGREE,m=t.ellipsoid??l.default;this._positions=e,this._minimumHeights=n,this._maximumHeights=i,this._vertexFormat=w.clone(o),this._granularity=a,this._ellipsoid=l.clone(m),this._workerName="createWallGeometry";let p=1+e.length*s.packedLength+2;r(n)&&(p+=n.length),r(i)&&(p+=i.length),this.packedLength=p+l.packedLength+w.packedLength+1}E.pack=function(t,e,i){if(!r(t))throw new y("value is required");if(!r(e))throw new y("array is required");i=i??0;let n,o=t._positions,a=o.length;for(e[i++]=a,n=0;n<a;++n,i+=s.packedLength)s.pack(o[n],e,i);let m=t._minimumHeights;if(a=r(m)?m.length:0,e[i++]=a,r(m))for(n=0;n<a;++n)e[i++]=m[n];let p=t._maximumHeights;if(a=r(p)?p.length:0,e[i++]=a,r(p))for(n=0;n<a;++n)e[i++]=p[n];return l.pack(t._ellipsoid,e,i),i+=l.packedLength,w.pack(t._vertexFormat,e,i),e[i+=w.packedLength]=t._granularity,e};var mt=l.clone(l.UNIT_SPHERE),rt=new w,U={positions:void 0,minimumHeights:void 0,maximumHeights:void 0,ellipsoid:mt,vertexFormat:rt,granularity:void 0};E.unpack=function(t,e,i){if(!r(t))throw new y("array is required");e=e??0;let n,o,a,m=t[e++],p=new Array(m);for(n=0;n<m;++n,e+=s.packedLength)p[n]=s.unpack(t,e);if(m=t[e++],m>0)for(o=new Array(m),n=0;n<m;++n)o[n]=t[e++];if(m=t[e++],m>0)for(a=new Array(m),n=0;n<m;++n)a[n]=t[e++];let u=l.unpack(t,e,mt);e+=l.packedLength;let h=w.unpack(t,e,rt),c=t[e+=w.packedLength];return r(i)?(i._positions=p,i._minimumHeights=o,i._maximumHeights=a,i._ellipsoid=l.clone(u,i._ellipsoid),i._vertexFormat=w.clone(h,i._vertexFormat),i._granularity=c,i):(U.positions=p,U.minimumHeights=o,U.maximumHeights=a,U.granularity=c,new E(U))},E.fromConstantHeights=function(t){let e=(t=t??K.EMPTY_OBJECT).positions;if(!r(e))throw new y("options.positions is required.");let i,n,o=t.minimumHeight,s=t.maximumHeight,a=r(o),m=r(s);if(a||m){let t=e.length;i=a?new Array(t):void 0,n=m?new Array(t):void 0;for(let e=0;e<t;++e)a&&(i[e]=o),m&&(n[e]=s)}return new E({positions:e,maximumHeights:n,minimumHeights:i,ellipsoid:t.ellipsoid,vertexFormat:t.vertexFormat})},E.createGeometry=function(t){let e=t._positions,i=t._minimumHeights,n=t._maximumHeights,o=t._vertexFormat,a=t._granularity,m=t._ellipsoid,l=nt.computePositions(m,e,n,i,a,!0);if(!r(l))return;let p=l.bottomPositions,u=l.topPositions,h=l.numCorners,c=u.length,g=2*c,f=o.position?new Float64Array(g):void 0,w=o.normal?new Float32Array(g):void 0,y=o.tangent?new Float32Array(g):void 0,d=o.bitangent?new Float32Array(g):void 0,k=o.st?new Float32Array(g/3*2):void 0,A=0,_=0,v=0,x=0,E=0,H=ft,F=ut,L=pt,j=!0;c/=3;let b,T=0,P=1/(c-h-1);for(b=0;b<c;++b){let t=3*b,e=s.fromArray(u,t,Q),i=s.fromArray(p,t,J);if(o.position&&(f[A++]=i.x,f[A++]=i.y,f[A++]=i.z,f[A++]=e.x,f[A++]=e.y,f[A++]=e.z),o.st&&(k[E++]=T,k[E++]=0,k[E++]=T,k[E++]=1),o.normal||o.tangent||o.bitangent){let i=s.clone(s.ZERO,st),n=s.subtract(e,m.geodeticSurfaceNormal(e,J),J);if(b+1<c&&(i=s.fromArray(u,t+3,st)),j){let t=s.subtract(i,e,lt),r=s.subtract(n,e,Q);H=s.normalize(s.cross(r,t,H),H),j=!1}s.equalsEpsilon(e,i,V.EPSILON10)?j=!0:(T+=P,o.tangent&&(F=s.normalize(s.subtract(i,e,F),F)),o.bitangent&&(L=s.normalize(s.cross(H,F,L),L))),o.normal&&(w[_++]=H.x,w[_++]=H.y,w[_++]=H.z,w[_++]=H.x,w[_++]=H.y,w[_++]=H.z),o.tangent&&(y[x++]=F.x,y[x++]=F.y,y[x++]=F.z,y[x++]=F.x,y[x++]=F.y,y[x++]=F.z),o.bitangent&&(d[v++]=L.x,d[v++]=L.y,d[v++]=L.z,d[v++]=L.x,d[v++]=L.y,d[v++]=L.z)}}let D=new it;o.position&&(D.position=new R({componentDatatype:N.DOUBLE,componentsPerAttribute:3,values:f})),o.normal&&(D.normal=new R({componentDatatype:N.FLOAT,componentsPerAttribute:3,values:w})),o.tangent&&(D.tangent=new R({componentDatatype:N.FLOAT,componentsPerAttribute:3,values:y})),o.bitangent&&(D.bitangent=new R({componentDatatype:N.FLOAT,componentsPerAttribute:3,values:d})),o.st&&(D.st=new R({componentDatatype:N.FLOAT,componentsPerAttribute:2,values:k}));let S=g/3;g-=6*(h+1);let O=ot.createTypedArray(S,g),U=0;for(b=0;b<S-2;b+=2){let t=b,e=b+2,i=s.fromArray(f,3*t,Q),n=s.fromArray(f,3*e,J);if(s.equalsEpsilon(i,n,V.EPSILON10))continue;let r=b+1,o=b+3;O[U++]=r,O[U++]=t,O[U++]=o,O[U++]=o,O[U++]=t,O[U++]=e}return new et({attributes:D,indices:O,primitiveType:tt.TRIANGLES,boundingSphere:new I.fromVertices(f)})};var X=E;function ht(t,e){return r(e)&&(t=X.unpack(t,e)),t._ellipsoid=l.clone(t._ellipsoid),X.createGeometry(t)}var Ot=ht;export{Ot as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see createWallOutlineGeometry.js.LICENSE.txt */
|
|
2
|
+
import{a as z}from"./chunk-VTK7G5BX.js";import"./chunk-QORMFUM4.js";import"./chunk-FWF3VNA2.js";import"./chunk-AZLP5742.js";import"./chunk-5HPISDSZ.js";import"./chunk-HSJ6GSLC.js";import"./chunk-SXKYZMEL.js";import{a as W}from"./chunk-T6Q6HX5J.js";import{a as N}from"./chunk-4MJDNHOT.js";import{b as R,c as S,d as M}from"./chunk-EDF5FKWJ.js";import{d as D}from"./chunk-XQIJGAVD.js";import"./chunk-UTYWXSQT.js";import{a as q}from"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import"./chunk-5G23AKP3.js";import{a as p,d as l,f as O}from"./chunk-KWAHJ72S.js";import{a as b}from"./chunk-MKDADUG3.js";import{a as H}from"./chunk-NOIUI5SY.js";import{e as m}from"./chunk-XRRBRTKL.js";var B=new p,U=new p;function _(i){let t=(i=i??O.EMPTY_OBJECT).positions,e=i.maximumHeights,n=i.minimumHeights;if(!m(t))throw new H("options.positions is required.");if(m(e)&&e.length!==t.length)throw new H("options.positions and options.maximumHeights must have the same length.");if(m(n)&&n.length!==t.length)throw new H("options.positions and options.minimumHeights must have the same length.");let o=i.granularity??b.RADIANS_PER_DEGREE,r=i.ellipsoid??l.default;this._positions=t,this._minimumHeights=n,this._maximumHeights=e,this._granularity=o,this._ellipsoid=l.clone(r),this._workerName="createWallOutlineGeometry";let s=1+t.length*p.packedLength+2;m(n)&&(s+=n.length),m(e)&&(s+=e.length),this.packedLength=s+l.packedLength+1}_.pack=function(i,t,e){if(!m(i))throw new H("value is required");if(!m(t))throw new H("array is required");e=e??0;let n,o=i._positions,r=o.length;for(t[e++]=r,n=0;n<r;++n,e+=p.packedLength)p.pack(o[n],t,e);let s=i._minimumHeights;if(r=m(s)?s.length:0,t[e++]=r,m(s))for(n=0;n<r;++n)t[e++]=s[n];let a=i._maximumHeights;if(r=m(a)?a.length:0,t[e++]=r,m(a))for(n=0;n<r;++n)t[e++]=a[n];return l.pack(i._ellipsoid,t,e),t[e+=l.packedLength]=i._granularity,t};var G=l.clone(l.UNIT_SPHERE),L={positions:void 0,minimumHeights:void 0,maximumHeights:void 0,ellipsoid:G,granularity:void 0};_.unpack=function(i,t,e){if(!m(i))throw new H("array is required");t=t??0;let n,o,r,s=i[t++],a=new Array(s);for(n=0;n<s;++n,t+=p.packedLength)a[n]=p.unpack(i,t);if(s=i[t++],s>0)for(o=new Array(s),n=0;n<s;++n)o[n]=i[t++];if(s=i[t++],s>0)for(r=new Array(s),n=0;n<s;++n)r[n]=i[t++];let h=l.unpack(i,t,G),u=i[t+=l.packedLength];return m(e)?(e._positions=a,e._minimumHeights=o,e._maximumHeights=r,e._ellipsoid=l.clone(h,e._ellipsoid),e._granularity=u,e):(L.positions=a,L.minimumHeights=o,L.maximumHeights=r,L.granularity=u,new _(L))},_.fromConstantHeights=function(i){let t=(i=i??O.EMPTY_OBJECT).positions;if(!m(t))throw new H("options.positions is required.");let e,n,o=i.minimumHeight,r=i.maximumHeight,s=m(o),a=m(r);if(s||a){let i=t.length;e=s?new Array(i):void 0,n=a?new Array(i):void 0;for(let t=0;t<i;++t)s&&(e[t]=o),a&&(n[t]=r)}return new _({positions:t,maximumHeights:n,minimumHeights:e,ellipsoid:i.ellipsoid})},_.createGeometry=function(i){let t=i._positions,e=i._minimumHeights,n=i._maximumHeights,o=i._granularity,r=i._ellipsoid,s=z.computePositions(r,t,n,e,o,!1);if(!m(s))return;let a,l=s.bottomPositions,h=s.topPositions,u=h.length,c=2*u,g=new Float64Array(c),f=0;for(u/=3,a=0;a<u;++a){let i=3*a,t=p.fromArray(h,i,B),e=p.fromArray(l,i,U);g[f++]=e.x,g[f++]=e.y,g[f++]=e.z,g[f++]=t.x,g[f++]=t.y,g[f++]=t.z}let d=new N({position:new M({componentDatatype:q.DOUBLE,componentsPerAttribute:3,values:g})}),_=c/3;c=2*_-4+_;let H=W.createTypedArray(_,c),k=0;for(a=0;a<_-2;a+=2){let i=a,t=a+2,e=p.fromArray(g,3*i,B),n=p.fromArray(g,3*t,U);if(p.equalsEpsilon(e,n,b.EPSILON10))continue;let o=a+1,r=a+3;H[k++]=o,H[k++]=i,H[k++]=o,H[k++]=r,H[k++]=i,H[k++]=t}return H[k++]=_-2,H[k++]=_-1,new S({attributes:d,indices:H,primitiveType:R.LINES,boundingSphere:new D.fromVertices(g)})};var C=_;function J(i,t){return m(t)&&(i=C.unpack(i,t)),i._ellipsoid=l.clone(i._ellipsoid),C.createGeometry(i)}var pi=J;export{pi as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see decodeDraco.js.LICENSE.txt */
|
|
2
|
+
import{a as D}from"./chunk-DK73HV33.js";import{a as I}from"./chunk-D2NFCOGE.js";import{a as m}from"./chunk-T6Q6HX5J.js";import{a as w}from"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import{a as A}from"./chunk-5G23AKP3.js";import"./chunk-MKDADUG3.js";import"./chunk-NOIUI5SY.js";import{d as P,e as d}from"./chunk-XRRBRTKL.js";var r,b=P(D(),1);function F(t,e){let n=t.num_points(),o=t.num_faces(),a=new r.DracoInt32Array,i=3*o,s=m.createTypedArray(n,i),u=0;for(let r=0;r<o;++r)e.GetFaceFromMesh(t,r,a),s[u+0]=a.GetValue(0),s[u+1]=a.GetValue(1),s[u+2]=a.GetValue(2),u+=3;return r.destroy(a),{typedArray:s,numberOfIndices:i}}function U(t,e,n,o,a){let i,s;o.quantizationBits<=8?(s=new r.DracoUInt8Array,i=new Uint8Array(a),e.GetAttributeUInt8ForAllPoints(t,n,s)):o.quantizationBits<=16?(s=new r.DracoUInt16Array,i=new Uint16Array(a),e.GetAttributeUInt16ForAllPoints(t,n,s)):(s=new r.DracoFloat32Array,i=new Float32Array(a),e.GetAttributeFloatForAllPoints(t,n,s));for(let t=0;t<a;++t)i[t]=s.GetValue(t);return r.destroy(s),i}function k(t,e,n,o){let a,i;switch(n.data_type()){case 1:case 11:i=new r.DracoInt8Array,a=new Int8Array(o),e.GetAttributeInt8ForAllPoints(t,n,i);break;case 2:i=new r.DracoUInt8Array,a=new Uint8Array(o),e.GetAttributeUInt8ForAllPoints(t,n,i);break;case 3:i=new r.DracoInt16Array,a=new Int16Array(o),e.GetAttributeInt16ForAllPoints(t,n,i);break;case 4:i=new r.DracoUInt16Array,a=new Uint16Array(o),e.GetAttributeUInt16ForAllPoints(t,n,i);break;case 5:case 7:i=new r.DracoInt32Array,a=new Int32Array(o),e.GetAttributeInt32ForAllPoints(t,n,i);break;case 6:case 8:i=new r.DracoUInt32Array,a=new Uint32Array(o),e.GetAttributeUInt32ForAllPoints(t,n,i);break;case 9:case 10:i=new r.DracoFloat32Array,a=new Float32Array(o),e.GetAttributeFloatForAllPoints(t,n,i)}for(let t=0;t<o;++t)a[t]=i.GetValue(t);return r.destroy(i),a}function p(t,e,n){let o,a=t.num_points(),i=n.num_components(),s=new r.AttributeQuantizationTransform;if(s.InitFromAttribute(n)){let t=new Array(i);for(let r=0;r<i;++r)t[r]=s.min_value(r);o={quantizationBits:s.quantization_bits(),minValues:t,range:s.range(),octEncoded:!1}}r.destroy(s),s=new r.AttributeOctahedronTransform,s.InitFromAttribute(n)&&(o={quantizationBits:s.quantization_bits(),octEncoded:!0}),r.destroy(s);let u,l=a*i;u=d(o)?U(t,e,n,o,l):k(t,e,n,l);let c=w.fromTypedArray(u);return{array:u,data:{componentsPerAttribute:i,componentDatatype:c,byteOffset:n.byte_offset(),byteStride:w.getSizeInBytes(c)*i,normalized:n.normalized(),quantization:o}}}function O(t){let e=new r.Decoder;t.dequantizeInShader&&(e.SkipAttributeTransform(r.POSITION),e.SkipAttributeTransform(r.NORMAL));let n=new r.DecoderBuffer;if(n.Init(t.buffer,t.buffer.length),e.GetEncodedGeometryType(n)!==r.POINT_CLOUD)throw new A("Draco geometry type must be POINT_CLOUD.");let o=new r.PointCloud,a=e.DecodeBufferToPointCloud(n,o);if(!a.ok()||0===o.ptr)throw new A(`Error decoding draco point cloud: ${a.error_msg()}`);r.destroy(n);let i={},s=t.properties;for(let t in s)if(s.hasOwnProperty(t)){let n;if("POSITION"===t||"NORMAL"===t){let a=e.GetAttributeId(o,r[t]);n=e.GetAttribute(o,a)}else{let r=s[t];n=e.GetAttributeByUniqueId(o,r)}i[t]=p(o,e,n)}return r.destroy(o),r.destroy(e),i}function g(t){let e=new r.Decoder;if(t.dequantizeInShader)for(let n=0;n<t.attributesToSkipTransform.length;++n)e.SkipAttributeTransform(r[t.attributesToSkipTransform[n]]);let n=t.bufferView,o=new r.DecoderBuffer;if(o.Init(t.array,n.byteLength),e.GetEncodedGeometryType(o)!==r.TRIANGULAR_MESH)throw new A("Unsupported draco mesh geometry type.");let a=new r.Mesh,i=e.DecodeBufferToMesh(o,a);if(!i.ok()||0===a.ptr)throw new A(`Error decoding draco mesh geometry: ${i.error_msg()}`);r.destroy(o);let s={},u=t.compressedAttributes;for(let t in u)if(u.hasOwnProperty(t)){let r=u[t],n=e.GetAttributeByUniqueId(a,r);s[t]=p(a,e,n)}let l={indexArray:F(a,e),attributeData:s};return r.destroy(a),r.destroy(e),l}async function z(t,r){return d(t.bufferView)?g(t):O(t)}async function G(t,e){let n=t.webAssemblyConfig;return r=d(n)&&d(n.wasmBinaryFile)?await(0,b.default)(n):await(0,b.default)(),!0}async function S(t,r){let e=t.webAssemblyConfig;return d(e)?G(t,r):z(t,r)}var h=I(S);export{h as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see decodeGoogleEarthEnterprisePacket.js.LICENSE.txt */
|
|
2
|
+
import{a as Se}from"./chunk-D2NFCOGE.js";import{a as D}from"./chunk-5G23AKP3.js";import{b as ae}from"./chunk-NOIUI5SY.js";import{c as R,d as Ot,e as me}from"./chunk-XRRBRTKL.js";var Ie=R(((e,t)=>{"use strict";t.exports=(e,t,i,r)=>{let n=65535&e|0,a=e>>>16&65535|0,s=0;for(;0!==i;){s=i>2e3?2e3:i,i-=s;do{n=n+t[r++]|0,a=a+n|0}while(--s);n%=65521,a%=65521}return n|a<<16|0}})),De=R(((e,t)=>{"use strict";var i=new Uint32Array((()=>{let e,t=[];for(var i=0;i<256;i++){e=i;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t})());t.exports=(e,t,r,n)=>{let a=i,s=n+r;e^=-1;for(let i=n;i<s;i++)e=e>>>8^a[255&(e^t[i])];return-1^e}})),Oe=R(((e,t)=>{"use strict";t.exports=function(e,t){let i,r,n,a,s,o,l,f,d,h,c,u,w,b,m,g,k,_,p,v,y,x,R,E,A=e.state;i=e.next_in,R=e.input,r=i+(e.avail_in-5),n=e.next_out,E=e.output,a=n-(t-e.avail_out),s=n+(e.avail_out-257),o=A.dmax,l=A.wsize,f=A.whave,d=A.wnext,h=A.window,c=A.hold,u=A.bits,w=A.lencode,b=A.distcode,m=(1<<A.lenbits)-1,g=(1<<A.distbits)-1;e:do{u<15&&(c+=R[i++]<<u,u+=8,c+=R[i++]<<u,u+=8),k=w[c&m];t:for(;;){if(_=k>>>24,c>>>=_,u-=_,_=k>>>16&255,0===_)E[n++]=65535&k;else{if(!(16&_)){if(0==(64&_)){k=w[(65535&k)+(c&(1<<_)-1)];continue t}if(32&_){A.mode=16191;break e}e.msg="invalid literal/length code",A.mode=16209;break e}p=65535&k,_&=15,_&&(u<_&&(c+=R[i++]<<u,u+=8),p+=c&(1<<_)-1,c>>>=_,u-=_),u<15&&(c+=R[i++]<<u,u+=8,c+=R[i++]<<u,u+=8),k=b[c&g];i:for(;;){if(_=k>>>24,c>>>=_,u-=_,_=k>>>16&255,!(16&_)){if(0==(64&_)){k=b[(65535&k)+(c&(1<<_)-1)];continue i}e.msg="invalid distance code",A.mode=16209;break e}if(v=65535&k,_&=15,u<_&&(c+=R[i++]<<u,u+=8,u<_&&(c+=R[i++]<<u,u+=8)),v+=c&(1<<_)-1,v>o){e.msg="invalid distance too far back",A.mode=16209;break e}if(c>>>=_,u-=_,_=n-a,v>_){if(_=v-_,_>f&&A.sane){e.msg="invalid distance too far back",A.mode=16209;break e}if(y=0,x=h,0===d){if(y+=l-_,_<p){p-=_;do{E[n++]=h[y++]}while(--_);y=n-v,x=E}}else if(d<_){if(y+=l+d-_,_-=d,_<p){p-=_;do{E[n++]=h[y++]}while(--_);if(y=0,d<p){_=d,p-=_;do{E[n++]=h[y++]}while(--_);y=n-v,x=E}}}else if(y+=d-_,_<p){p-=_;do{E[n++]=h[y++]}while(--_);y=n-v,x=E}for(;p>2;)E[n++]=x[y++],E[n++]=x[y++],E[n++]=x[y++],p-=3;p&&(E[n++]=x[y++],p>1&&(E[n++]=x[y++]))}else{y=n-v;do{E[n++]=E[y++],E[n++]=E[y++],E[n++]=E[y++],p-=3}while(p>2);p&&(E[n++]=E[y++],p>1&&(E[n++]=E[y++]))}break}}break}}while(i<r&&n<s);p=u>>3,i-=p,u-=p<<3,c&=(1<<u)-1,e.next_in=i,e.next_out=n,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=n<s?s-n+257:257-(n-s),A.hold=c,A.bits=u}})),Me=R(((e,t)=>{"use strict";var i=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),r=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),n=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),a=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);t.exports=(e,t,s,o,l,f,d,h)=>{let c,u,w,b,m,g,k,_,p,v=h.bits,y=0,x=0,R=0,E=0,A=0,T=0,D=0,U=0,S=0,I=0,Z=null,O=new Uint16Array(16),N=new Uint16Array(16),C=null;for(y=0;y<=15;y++)O[y]=0;for(x=0;x<o;x++)O[t[s+x]]++;for(A=v,E=15;E>=1&&0===O[E];E--);if(A>E&&(A=E),0===E)return l[f++]=20971520,l[f++]=20971520,h.bits=1,0;for(R=1;R<E&&0===O[R];R++);for(A<R&&(A=R),U=1,y=1;y<=15;y++)if(U<<=1,U-=O[y],U<0)return-1;if(U>0&&(0===e||1!==E))return-1;for(N[1]=0,y=1;y<15;y++)N[y+1]=N[y]+O[y];for(x=0;x<o;x++)0!==t[s+x]&&(d[N[t[s+x]]++]=x);if(0===e?(Z=C=d,g=20):1===e?(Z=i,C=r,g=257):(Z=n,C=a,g=0),I=0,x=0,y=R,m=f,T=A,D=0,w=-1,S=1<<A,b=S-1,1===e&&S>852||2===e&&S>592)return 1;for(;;){k=y-D,d[x]+1<g?(_=0,p=d[x]):d[x]>=g?(_=C[d[x]-g],p=Z[d[x]-g]):(_=96,p=0),c=1<<y-D,u=1<<T,R=u;do{u-=c,l[m+(I>>D)+u]=k<<24|_<<16|p|0}while(0!==u);for(c=1<<y-1;I&c;)c>>=1;if(0!==c?(I&=c-1,I+=c):I=0,x++,0==--O[y]){if(y===E)break;y=t[s+d[x]]}if(y>A&&(I&b)!==w){for(0===D&&(D=A),m+=R,T=y-D,U=1<<T;T+D<E&&(U-=O[T+D],!(U<=0));)T++,U<<=1;if(S+=1<<T,1===e&&S>852||2===e&&S>592)return 1;w=I&b,l[w]=A<<24|T<<16|m-f|0}}return 0!==I&&(l[m+I]=y-D<<24|64<<16|0),h.bits=A,0}})),J=R(((e,t)=>{"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}})),bt=R(((e,t)=>{"use strict";var i=Ie(),r=De(),n=Oe(),a=Me(),{Z_FINISH:s,Z_BLOCK:o,Z_TREES:l,Z_OK:f,Z_STREAM_END:d,Z_NEED_DICT:h,Z_STREAM_ERROR:c,Z_DATA_ERROR:u,Z_MEM_ERROR:w,Z_BUF_ERROR:b,Z_DEFLATED:m}=J(),g=16180,k=16190,_=16191,p=16192,v=16194,y=16199,x=16200,R=16206,E=16209,A=16210,T=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function D(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var U,S,I=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.mode<g||t.mode>16211?1:0},Z=e=>{if(I(e))return c;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=g,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,f},O=e=>{if(I(e))return c;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Z(e)},N=(e,t)=>{let i;if(I(e))return c;let r=e.state;return t<0?(i=0,t=-t):(i=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?c:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=i,r.wbits=t,O(e))},C=(e,t)=>{if(!e)return c;let i=new D;e.state=i,i.strm=e,i.window=null,i.mode=g;let r=N(e,t);return r!==f&&(e.state=null),r},B=!0,M=e=>{if(B){U=new Int32Array(512),S=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,U,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,S,0,e.work,{bits:5}),B=!1}e.lencode=U,e.lenbits=9,e.distcode=S,e.distbits=5},F=(e,t,i,r)=>{let n,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(i-a.wsize,i),0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>r&&(n=r),a.window.set(t.subarray(i-r,i-r+n),a.wnext),(r-=n)?(a.window.set(t.subarray(i-r,i),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0};t.exports.inflateReset=O,t.exports.inflateReset2=N,t.exports.inflateResetKeep=Z,t.exports.inflateInit=e=>C(e,15),t.exports.inflateInit2=C,t.exports.inflate=(e,t)=>{let D,U,S,Z,O,N,C,B,L,H,P,z,V,Y,j,G,K,J,X,Q,q,W,$,ee,te=0,ie=new Uint8Array(4),re=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(I(e)||!e.output||!e.input&&0!==e.avail_in)return c;D=e.state,D.mode===_&&(D.mode=p),O=e.next_out,S=e.output,C=e.avail_out,Z=e.next_in,U=e.input,N=e.avail_in,B=D.hold,L=D.bits,H=N,P=C,W=f;e:for(;;)switch(D.mode){case g:if(0===D.wrap){D.mode=p;break}for(;L<16;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(2&D.wrap&&35615===B){0===D.wbits&&(D.wbits=15),D.check=0,ie[0]=255&B,ie[1]=B>>>8&255,D.check=r(D.check,ie,2,0),B=0,L=0,D.mode=16181;break}if(D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&B)<<8)+(B>>8))%31){e.msg="incorrect header check",D.mode=E;break}if((15&B)!==m){e.msg="unknown compression method",D.mode=E;break}if(B>>>=4,L-=4,q=8+(15&B),0===D.wbits&&(D.wbits=q),q>15||q>D.wbits){e.msg="invalid window size",D.mode=E;break}D.dmax=1<<D.wbits,D.flags=0,e.adler=D.check=1,D.mode=512&B?16189:_,B=0,L=0;break;case 16181:for(;L<16;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(D.flags=B,(255&D.flags)!==m){e.msg="unknown compression method",D.mode=E;break}if(57344&D.flags){e.msg="unknown header flags set",D.mode=E;break}D.head&&(D.head.text=B>>8&1),512&D.flags&&4&D.wrap&&(ie[0]=255&B,ie[1]=B>>>8&255,D.check=r(D.check,ie,2,0)),B=0,L=0,D.mode=16182;case 16182:for(;L<32;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}D.head&&(D.head.time=B),512&D.flags&&4&D.wrap&&(ie[0]=255&B,ie[1]=B>>>8&255,ie[2]=B>>>16&255,ie[3]=B>>>24&255,D.check=r(D.check,ie,4,0)),B=0,L=0,D.mode=16183;case 16183:for(;L<16;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}D.head&&(D.head.xflags=255&B,D.head.os=B>>8),512&D.flags&&4&D.wrap&&(ie[0]=255&B,ie[1]=B>>>8&255,D.check=r(D.check,ie,2,0)),B=0,L=0,D.mode=16184;case 16184:if(1024&D.flags){for(;L<16;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}D.length=B,D.head&&(D.head.extra_len=B),512&D.flags&&4&D.wrap&&(ie[0]=255&B,ie[1]=B>>>8&255,D.check=r(D.check,ie,2,0)),B=0,L=0}else D.head&&(D.head.extra=null);D.mode=16185;case 16185:if(1024&D.flags&&(z=D.length,z>N&&(z=N),z&&(D.head&&(q=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Uint8Array(D.head.extra_len)),D.head.extra.set(U.subarray(Z,Z+z),q)),512&D.flags&&4&D.wrap&&(D.check=r(D.check,U,z,Z)),N-=z,Z+=z,D.length-=z),D.length))break e;D.length=0,D.mode=16186;case 16186:if(2048&D.flags){if(0===N)break e;z=0;do{q=U[Z+z++],D.head&&q&&D.length<65536&&(D.head.name+=String.fromCharCode(q))}while(q&&z<N);if(512&D.flags&&4&D.wrap&&(D.check=r(D.check,U,z,Z)),N-=z,Z+=z,q)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=16187;case 16187:if(4096&D.flags){if(0===N)break e;z=0;do{q=U[Z+z++],D.head&&q&&D.length<65536&&(D.head.comment+=String.fromCharCode(q))}while(q&&z<N);if(512&D.flags&&4&D.wrap&&(D.check=r(D.check,U,z,Z)),N-=z,Z+=z,q)break e}else D.head&&(D.head.comment=null);D.mode=16188;case 16188:if(512&D.flags){for(;L<16;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(4&D.wrap&&B!==(65535&D.check)){e.msg="header crc mismatch",D.mode=E;break}B=0,L=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),e.adler=D.check=0,D.mode=_;break;case 16189:for(;L<32;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}e.adler=D.check=T(B),B=0,L=0,D.mode=k;case k:if(0===D.havedict)return e.next_out=O,e.avail_out=C,e.next_in=Z,e.avail_in=N,D.hold=B,D.bits=L,h;e.adler=D.check=1,D.mode=_;case _:if(t===o||t===l)break e;case p:if(D.last){B>>>=7&L,L-=7&L,D.mode=R;break}for(;L<3;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}switch(D.last=1&B,B>>>=1,L-=1,3&B){case 0:D.mode=16193;break;case 1:if(M(D),D.mode=y,t===l){B>>>=2,L-=2;break e}break;case 2:D.mode=16196;break;case 3:e.msg="invalid block type",D.mode=E}B>>>=2,L-=2;break;case 16193:for(B>>>=7&L,L-=7&L;L<32;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if((65535&B)!=(B>>>16^65535)){e.msg="invalid stored block lengths",D.mode=E;break}if(D.length=65535&B,B=0,L=0,D.mode=v,t===l)break e;case v:D.mode=16195;case 16195:if(z=D.length,z){if(z>N&&(z=N),z>C&&(z=C),0===z)break e;S.set(U.subarray(Z,Z+z),O),N-=z,Z+=z,C-=z,O+=z,D.length-=z;break}D.mode=_;break;case 16196:for(;L<14;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(D.nlen=257+(31&B),B>>>=5,L-=5,D.ndist=1+(31&B),B>>>=5,L-=5,D.ncode=4+(15&B),B>>>=4,L-=4,D.nlen>286||D.ndist>30){e.msg="too many length or distance symbols",D.mode=E;break}D.have=0,D.mode=16197;case 16197:for(;D.have<D.ncode;){for(;L<3;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}D.lens[re[D.have++]]=7&B,B>>>=3,L-=3}for(;D.have<19;)D.lens[re[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,$={bits:D.lenbits},W=a(0,D.lens,0,19,D.lencode,0,D.work,$),D.lenbits=$.bits,W){e.msg="invalid code lengths set",D.mode=E;break}D.have=0,D.mode=16198;case 16198:for(;D.have<D.nlen+D.ndist;){for(;te=D.lencode[B&(1<<D.lenbits)-1],j=te>>>24,G=te>>>16&255,K=65535&te,!(j<=L);){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(K<16)B>>>=j,L-=j,D.lens[D.have++]=K;else{if(16===K){for(ee=j+2;L<ee;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(B>>>=j,L-=j,0===D.have){e.msg="invalid bit length repeat",D.mode=E;break}q=D.lens[D.have-1],z=3+(3&B),B>>>=2,L-=2}else if(17===K){for(ee=j+3;L<ee;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}B>>>=j,L-=j,q=0,z=3+(7&B),B>>>=3,L-=3}else{for(ee=j+7;L<ee;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}B>>>=j,L-=j,q=0,z=11+(127&B),B>>>=7,L-=7}if(D.have+z>D.nlen+D.ndist){e.msg="invalid bit length repeat",D.mode=E;break}for(;z--;)D.lens[D.have++]=q}}if(D.mode===E)break;if(0===D.lens[256]){e.msg="invalid code -- missing end-of-block",D.mode=E;break}if(D.lenbits=9,$={bits:D.lenbits},W=a(1,D.lens,0,D.nlen,D.lencode,0,D.work,$),D.lenbits=$.bits,W){e.msg="invalid literal/lengths set",D.mode=E;break}if(D.distbits=6,D.distcode=D.distdyn,$={bits:D.distbits},W=a(2,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,$),D.distbits=$.bits,W){e.msg="invalid distances set",D.mode=E;break}if(D.mode=y,t===l)break e;case y:D.mode=x;case x:if(N>=6&&C>=258){e.next_out=O,e.avail_out=C,e.next_in=Z,e.avail_in=N,D.hold=B,D.bits=L,n(e,P),O=e.next_out,S=e.output,C=e.avail_out,Z=e.next_in,U=e.input,N=e.avail_in,B=D.hold,L=D.bits,D.mode===_&&(D.back=-1);break}for(D.back=0;te=D.lencode[B&(1<<D.lenbits)-1],j=te>>>24,G=te>>>16&255,K=65535&te,!(j<=L);){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(G&&0==(240&G)){for(J=j,X=G,Q=K;te=D.lencode[Q+((B&(1<<J+X)-1)>>J)],j=te>>>24,G=te>>>16&255,K=65535&te,!(J+j<=L);){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}B>>>=J,L-=J,D.back+=J}if(B>>>=j,L-=j,D.back+=j,D.length=K,0===G){D.mode=16205;break}if(32&G){D.back=-1,D.mode=_;break}if(64&G){e.msg="invalid literal/length code",D.mode=E;break}D.extra=15&G,D.mode=16201;case 16201:if(D.extra){for(ee=D.extra;L<ee;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}D.length+=B&(1<<D.extra)-1,B>>>=D.extra,L-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=16202;case 16202:for(;te=D.distcode[B&(1<<D.distbits)-1],j=te>>>24,G=te>>>16&255,K=65535&te,!(j<=L);){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(0==(240&G)){for(J=j,X=G,Q=K;te=D.distcode[Q+((B&(1<<J+X)-1)>>J)],j=te>>>24,G=te>>>16&255,K=65535&te,!(J+j<=L);){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}B>>>=J,L-=J,D.back+=J}if(B>>>=j,L-=j,D.back+=j,64&G){e.msg="invalid distance code",D.mode=E;break}D.offset=K,D.extra=15&G,D.mode=16203;case 16203:if(D.extra){for(ee=D.extra;L<ee;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}D.offset+=B&(1<<D.extra)-1,B>>>=D.extra,L-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){e.msg="invalid distance too far back",D.mode=E;break}D.mode=16204;case 16204:if(0===C)break e;if(z=P-C,D.offset>z){if(z=D.offset-z,z>D.whave&&D.sane){e.msg="invalid distance too far back",D.mode=E;break}z>D.wnext?(z-=D.wnext,V=D.wsize-z):V=D.wnext-z,z>D.length&&(z=D.length),Y=D.window}else Y=S,V=O-D.offset,z=D.length;z>C&&(z=C),C-=z,D.length-=z;do{S[O++]=Y[V++]}while(--z);0===D.length&&(D.mode=x);break;case 16205:if(0===C)break e;S[O++]=D.length,C--,D.mode=x;break;case R:if(D.wrap){for(;L<32;){if(0===N)break e;N--,B|=U[Z++]<<L,L+=8}if(P-=C,e.total_out+=P,D.total+=P,4&D.wrap&&P&&(e.adler=D.check=D.flags?r(D.check,S,P,O-P):i(D.check,S,P,O-P)),P=C,4&D.wrap&&(D.flags?B:T(B))!==D.check){e.msg="incorrect data check",D.mode=E;break}B=0,L=0}D.mode=16207;case 16207:if(D.wrap&&D.flags){for(;L<32;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(4&D.wrap&&B!==(4294967295&D.total)){e.msg="incorrect length check",D.mode=E;break}B=0,L=0}D.mode=16208;case 16208:W=d;break e;case E:W=u;break e;case A:return w;default:return c}return e.next_out=O,e.avail_out=C,e.next_in=Z,e.avail_in=N,D.hold=B,D.bits=L,(D.wsize||P!==e.avail_out&&D.mode<E&&(D.mode<R||t!==s))&&F(e,e.output,e.next_out,P-e.avail_out)?(D.mode=A,w):(H-=e.avail_in,P-=e.avail_out,e.total_in+=H,e.total_out+=P,D.total+=P,4&D.wrap&&P&&(e.adler=D.check=D.flags?r(D.check,S,P,e.next_out-P):i(D.check,S,P,e.next_out-P)),e.data_type=D.bits+(D.last?64:0)+(D.mode===_?128:0)+(D.mode===y||D.mode===v?256:0),(0===H&&0===P||t===s)&&W===f&&(W=b),W)},t.exports.inflateEnd=e=>{if(I(e))return c;let t=e.state;return t.window&&(t.window=null),e.state=null,f},t.exports.inflateGetHeader=(e,t)=>{if(I(e))return c;let i=e.state;return 0==(2&i.wrap)?c:(i.head=t,t.done=!1,f)},t.exports.inflateSetDictionary=(e,t)=>{let r,n,a,s=t.length;return I(e)||(r=e.state,0!==r.wrap&&r.mode!==k)?c:r.mode===k&&(n=1,n=i(n,t,s,0),n!==r.check)?u:(a=F(e,t,s,s),a?(r.mode=A,w):(r.havedict=1,f))},t.exports.inflateInfo="pako inflate (from Nodeca project)"})),_t=R(((e,t)=>{"use strict";var i=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);t.exports.assign=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(let t in r)i(r,t)&&(e[t]=r[t])}}return e},t.exports.flattenChunks=e=>{let t=0;for(let i=0,r=e.length;i<r;i++)t+=e[i].length;let i=new Uint8Array(t);for(let t=0,r=0,n=e.length;t<n;t++){let n=e[t];i.set(n,r),r+=n.length}return i}})),kt=R(((e,t)=>{"use strict";var i=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{i=!1}var r=new Uint8Array(256);for(let e=0;e<256;e++)r[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;r[254]=r[254]=1,t.exports.string2buf=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,i,r,n,a,s=e.length,o=0;for(n=0;n<s;n++)i=e.charCodeAt(n),55296==(64512&i)&&n+1<s&&(r=e.charCodeAt(n+1),56320==(64512&r)&&(i=65536+(i-55296<<10)+(r-56320),n++)),o+=i<128?1:i<2048?2:i<65536?3:4;for(t=new Uint8Array(o),a=0,n=0;a<o;n++)i=e.charCodeAt(n),55296==(64512&i)&&n+1<s&&(r=e.charCodeAt(n+1),56320==(64512&r)&&(i=65536+(i-55296<<10)+(r-56320),n++)),i<128?t[a++]=i:i<2048?(t[a++]=192|i>>>6,t[a++]=128|63&i):i<65536?(t[a++]=224|i>>>12,t[a++]=128|i>>>6&63,t[a++]=128|63&i):(t[a++]=240|i>>>18,t[a++]=128|i>>>12&63,t[a++]=128|i>>>6&63,t[a++]=128|63&i);return t},t.exports.buf2string=(e,t)=>{let n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let a,s,o=new Array(2*n);for(s=0,a=0;a<n;){let t=e[a++];if(t<128){o[s++]=t;continue}let i=r[t];if(i>4)o[s++]=65533,a+=i-1;else{for(t&=2===i?31:3===i?15:7;i>1&&a<n;)t=t<<6|63&e[a++],i--;i>1?o[s++]=65533:t<65536?o[s++]=t:(t-=65536,o[s++]=55296|t>>10&1023,o[s++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&i)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r})(o,s)},t.exports.utf8border=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let i=t-1;for(;i>=0&&128==(192&e[i]);)i--;return i<0||0===i?t:i+r[e[i]]>t?i:t}})),Et=R(((e,t)=>{"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}})),St=R(((e,t)=>{"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}})),vt=R(((e,t)=>{"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}})),Rt=R(((e,t)=>{"use strict";var i=bt(),r=_t(),n=kt(),a=Et(),s=St(),o=vt(),l=Object.prototype.toString,{Z_NO_FLUSH:f,Z_FINISH:d,Z_OK:h,Z_STREAM_END:c,Z_NEED_DICT:u,Z_STREAM_ERROR:w,Z_DATA_ERROR:b,Z_MEM_ERROR:m}=J();function g(e){this.options=r.assign({chunkSize:65536,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;let f=i.inflateInit2(this.strm,t.windowBits);if(f!==h)throw new Error(a[f]);if(this.header=new o,i.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=n.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(f=i.inflateSetDictionary(this.strm,t.dictionary),f!==h)))throw new Error(a[f])}function k(e,t){let i=new g(t);if(i.push(e),i.err)throw i.msg||a[i.err];return i.result}g.prototype.push=function(e,t){let r,a,s,o=this.strm,g=this.options.chunkSize,k=this.options.dictionary;if(this.ended)return!1;for(a=t===~~t?t:!0===t?d:f,"[object ArrayBuffer]"===l.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){for(0===o.avail_out&&(o.output=new Uint8Array(g),o.next_out=0,o.avail_out=g),r=i.inflate(o,a),r===u&&k&&(r=i.inflateSetDictionary(o,k),r===h?r=i.inflate(o,a):r===b&&(r=u));o.avail_in>0&&r===c&&o.state.wrap>0&&0!==e[o.next_in];)i.inflateReset(o),r=i.inflate(o,a);switch(r){case w:case b:case u:case m:return this.onEnd(r),this.ended=!0,!1}if(s=o.avail_out,o.next_out&&(0===o.avail_out||r===c))if("string"===this.options.to){let e=n.utf8border(o.output,o.next_out),t=o.next_out-e,i=n.buf2string(o.output,e);o.next_out=t,o.avail_out=g-t,t&&o.output.set(o.output.subarray(e,e+t),0),this.onData(i)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(r!==h||0!==s){if(r===c)return r=i.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===o.avail_in)break}}return!0},g.prototype.onData=function(e){this.chunks.push(e)},g.prototype.onEnd=function(e){e===h&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.exports.Inflate=g,t.exports.inflate=k,t.exports.inflateRaw=function(e,t){return(t=t||{}).raw=!0,k(e,t)},t.exports.ungzip=k,t.exports.constants=J()})),Nt=1953029805,Mt=2917034100;function oe(e,t){if(oe.passThroughDataForTesting)return t;ae.typeOf.object("key",e),ae.typeOf.object("data",t);let i=e.byteLength;if(0===i||i%4!=0)throw new D("The length of key must be greater than 0 and a multiple of 4.");let r=new DataView(t),n=r.getUint32(0,!0);if(n===Nt||n===Mt)return t;let a,s=new DataView(e),o=0,l=t.byteLength,f=l-l%8,d=i,h=8;for(;o<f;)for(h=(h+8)%24,a=h;o<f&&a<d;)r.setUint32(o,r.getUint32(o,!0)^s.getUint32(a,!0),!0),r.setUint32(o+4,r.getUint32(o+4,!0)^s.getUint32(a+4,!0),!0),o+=8,a+=24;if(o<l)for(a>=d&&(h=(h+8)%24,a=h);o<l;)r.setUint8(o,r.getUint8(o)^s.getUint8(a)),o++,a++}oe.passThroughDataForTesting=!1;var Te=oe;function Zt(e,t){return 0!=(e&t)}var F=Zt,Bt=[1,2,4,8],ve=15,Ct=16,Lt=64,Pt=128;function N(e,t,i,r,n,a){this._bits=e,this.cnodeVersion=t,this.imageryVersion=i,this.terrainVersion=r,this.imageryProvider=n,this.terrainProvider=a,this.ancestorHasTerrain=!1,this.terrainState=void 0}N.clone=function(e,t){return me(t)?(t._bits=e._bits,t.cnodeVersion=e.cnodeVersion,t.imageryVersion=e.imageryVersion,t.terrainVersion=e.terrainVersion,t.imageryProvider=e.imageryProvider,t.terrainProvider=e.terrainProvider):t=new N(e._bits,e.cnodeVersion,e.imageryVersion,e.terrainVersion,e.imageryProvider,e.terrainProvider),t.ancestorHasTerrain=e.ancestorHasTerrain,t.terrainState=e.terrainState,t},N.prototype.setParent=function(e){this.ancestorHasTerrain=e.ancestorHasTerrain||this.hasTerrain()},N.prototype.hasSubtree=function(){return F(this._bits,Ct)},N.prototype.hasImagery=function(){return F(this._bits,Lt)},N.prototype.hasTerrain=function(){return F(this._bits,Pt)},N.prototype.hasChildren=function(){return F(this._bits,ve)},N.prototype.hasChild=function(e){return F(this._bits,Bt[e])},N.prototype.getChildBitmask=function(){return this._bits&ve};var ye=N,Ut=Ot(Rt(),1),G=Uint16Array.BYTES_PER_ELEMENT,H=Int32Array.BYTES_PER_ELEMENT,Y=Uint32Array.BYTES_PER_ELEMENT,C={METADATA:0,TERRAIN:1,DBROOT:2};function Si(e,t){let i=C.fromString(e.type),r=e.buffer;Te(e.key,r);let n=Di(r);r=n.buffer;let a=n.length;switch(i){case C.METADATA:return vi(r,a,e.quadKey);case C.TERRAIN:return Ii(r,a,t);case C.DBROOT:return t.push(r),{buffer:r}}}C.fromString=function(e){return"Metadata"===e?C.METADATA:"Terrain"===e?C.TERRAIN:"DbRoot"===e?C.DBROOT:void 0};var Ti=32301;function vi(e,t,i){let r=new DataView(e),n=0,a=r.getUint32(n,!0);if(n+=Y,a!==Ti)throw new D("Invalid magic");let s=r.getUint32(n,!0);if(n+=Y,1!==s)throw new D("Invalid data type. Must be 1 for QuadTreePacket");let o=r.getUint32(n,!0);if(n+=Y,2!==o)throw new D("Invalid QuadTreePacket version. Only version 2 is supported.");let l=r.getInt32(n,!0);n+=H;let f=r.getInt32(n,!0);if(n+=H,32!==f)throw new D("Invalid instance size.");let d=r.getInt32(n,!0);n+=H;let h=r.getInt32(n,!0);n+=H;let c=r.getInt32(n,!0);if(n+=H,d!==l*f+n)throw new D("Invalid dataBufferOffset");if(d+h+c!==t)throw new D("Invalid packet offsets");let u=[];for(let e=0;e<l;++e){let e=r.getUint8(n);++n,++n;let t=r.getUint16(n,!0);n+=G;let i=r.getUint16(n,!0);n+=G;let a=r.getUint16(n,!0);n+=G,n+=G,n+=G,n+=H,n+=H,n+=8;let s=r.getUint8(n++),o=r.getUint8(n++);n+=G,u.push(new ye(e,t,i,a,s,o))}let w=[],b=0,m=0,g=u[b++];return""===i?++m:w[i]=g,function e(t,i,r){let n=!1;if(4===r){if(i.hasSubtree())return;n=!0}for(let a=0;a<4;++a){let s=t+a.toString();if(n)w[s]=null;else if(r<4)if(i.hasChild(a)){if(b===l)return void console.log("Incorrect number of instances");let t=u[b++];w[s]=t,e(s,t,r+1)}else w[s]=null}}(i,g,m),w}var yi=5,Ai=4;function Ii(e,t,i){let r=new DataView(e),n=function(e){for(let i=0;i<Ai;++i){let i=r.getUint32(e,!0);if(e+=Y,(e+=i)>t)throw new D("Malformed terrain packet found.")}return e},a=0,s=[];for(;s.length<yi;){let t=a;a=n(a);let r=e.slice(t,a);i.push(r),s.push(r)}return s}var Dt=1953029805,Ri=2917034100;function Di(e){let t=new DataView(e),i=0,r=t.getUint32(i,!0);if(i+=Y,r!==Dt&&r!==Ri)throw new D("Invalid magic");let n=t.getUint32(i,r===Dt);i+=Y;let a=new Uint8Array(e,i),s=Ut.default.inflate(a);if(s.length!==n)throw new D("Size of packet doesn't match header");return s}var en=Se(Si);export{en as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see decodeI3S.js.LICENSE.txt */
|
|
2
|
+
import{a as mt}from"./chunk-DK73HV33.js";import{a as P}from"./chunk-GTQ3WXPT.js";import{a as ht}from"./chunk-D2NFCOGE.js";import{a as ft}from"./chunk-XBWRWNYZ.js";import{a as g,b as ot,d as st,e as it}from"./chunk-KWAHJ72S.js";import{a as M}from"./chunk-MKDADUG3.js";import{b as lt}from"./chunk-NOIUI5SY.js";import{d as pt,e as h}from"./chunk-XRRBRTKL.js";var at=pt(mt(),1);function xt(t){return lt.defined("value",t),t<=.04045?.07739938080495357*t:Math.pow(.9478672985781991*(t+.055),2.4)}var ut,k=xt;function wt(t,e,n,r,o,a){return(n*(1-t)+r*t)*(1-e)+(o*(1-t)+a*t)*e}function H(t,e,n,r){return r[t+e*n]}function It(t,e,n){let r=n.nativeExtent,o=(t-r.west)/(r.east-r.west)*(n.width-1),a=(e-r.south)/(r.north-r.south)*(n.height-1),i=Math.floor(o),l=Math.floor(a);o-=i,a-=l;let s=i<n.width?i+1:i,u=l<n.height?l+1:l;l=n.height-1-l,u=n.height-1-u;let f=wt(o,a,H(i,l,n.width,n.buffer),H(s,l,n.width,n.buffer),H(i,u,n.width,n.buffer),H(s,u,n.width,n.buffer));return f=f*n.scale+n.offset,f}function yt(t,e,n){for(let r=0;r<n.length;r++){let o=n[r].nativeExtent,a=new g;if("WebMercator"===n[r].projectionType){let o=n[r].projection._ellipsoid._radii;a=new ft(new st(o.x,o.y,o.z)).project(new ot(t,e,0))}else a.x=t,a.y=e;if(a.x>o.west&&a.x<o.east&&a.y>o.south&&a.y<o.north)return It(a.x,a.y,n[r])}return 0}function At(t,e,n,r,o,a,i){if(i)return;let l=yt(o.longitude,o.latitude,a);for(let i=0;i<t;++i){let t=yt(o.longitude+M.toRadians(n*e[3*i]),o.latitude+M.toRadians(r*e[3*i+1]),a);e[3*i+2]+=t-l}}function Lt(t,e,n,r,o,a,i,l,s){if(0===t||!h(e)||0===e.length)return;let u=new st(Math.sqrt(i.x),Math.sqrt(i.y),Math.sqrt(i.z));for(let i=0;i<t;++i){let t=3*i,f=t+1,c=t+2,y=new ot;y.longitude=r.longitude+M.toRadians(l*e[t]),y.latitude=r.latitude+M.toRadians(s*e[f]),y.height=r.height+e[c];let p={};u.cartographicToCartesian(y,p),p.x-=o.x,p.y-=o.y,p.z-=o.z;let b={};if(it.multiplyByVector(a,p,b),e[t]=b.x,e[f]=b.y,e[c]=b.z,h(n)){let e=new g(n[t],n[f],n[c]),r={};it.multiplyByVector(a,e,r),n[t]=r.x,n[f]=r.y,n[c]=r.z}}}function Ot(t,e,n){for(let r=0;r<t;++r){let t=n[4*r]/65535,o=n[4*r+1]/65535,a=(n[4*r+2]-n[4*r])/65535,i=(n[4*r+3]-n[4*r+1])/65535;e[2*r]*=a,e[2*r]+=t,e[2*r+1]*=i,e[2*r+1]+=o}}function Tt(t,e,n,r){let o=new Uint32Array(t),a=h(e)?t=>e[t]:t=>t,i=0;if(r&&h(n)){let e=t=>n[4*a(t)+3]<255;for(let n=0;n<t;n+=3)!e(n)&&!e(n+1)&&!e(n+2)&&(o[i++]=a(n),o[i++]=a(n+1),o[i++]=a(n+2));if(i>0){let n=i;for(let r=0;r<t;r+=3)(e(r)||e(r+1)||e(r+2))&&(o[n++]=a(r),o[n++]=a(r+1),o[n++]=a(r+2))}else for(let e=0;e<t;++e)o[e]=a(e)}else{i=t;for(let e=0;e<t;++e)o[e]=a(e)}return{indexArray:o,transparentVertexOffset:i}}function Ct(t,e,n){let r=e[n];if(h(r))return r;let o=e[n]={positions:{},indices:{},edges:{}},a=t[n]??t.default;return o.hasOutline=h(a?.edges),o}function Ft(t,e,n,r){if(!h(t[n])){let o=3*n,a=e;for(let t=0;t<3;t++){let e=r[o+t];h(a[e])||(a[e]={}),a=a[e]}h(a.index)||(a.index=n),t[n]=a.index}}function Ut(t,e,n,r,o,a){let i,l;r<o?(i=r,l=o):(i=o,l=r);let s=t[i];h(s)||(s=t[i]={});let u=s[l];h(u)||(u=s[l]={normalsIndex:[],outlines:[]}),u.normalsIndex.push(a),(0===u.outlines.length||e!==r||n!==o)&&u.outlines.push(e,n)}function Vt(t,e,n,r){let o=[];for(let a=0;a<n.length;a+=3){let i=Ct(t,o,h(e)?e[n[a]]:"default");if(!i.hasOutline)continue;let l=i.indices,s=i.positions;for(let t=0;t<3;t++)Ft(l,s,n[a+t],r);let u=i.edges;for(let t=0;t<3;t++){let e=n[a+t],r=n[a+(t+1)%3];Ut(u,e,r,l[e],l[r],a)}}return o}var O=new g,X=new g,Y=new g;function bt(t,e,n,r){let o=3*n[e],a=3*n[e+1],i=3*n[e+2];g.fromArray(r,o,O),g.fromArray(r,a,X),g.fromArray(r,i,Y),g.subtract(X,O,X),g.subtract(Y,O,Y),g.cross(X,Y,O);let l=g.magnitude(O);0!==l&&g.divideByScalar(O,l,O);let s=3*e,u=3*(e+1),f=3*(e+2);g.pack(O,t,s),g.pack(O,t,u),g.pack(O,t,f)}var z=new g,ct=new g;function Et(t,e,n){g.fromArray(t,e,z),g.fromArray(t,n,ct);let r=g.dot(z,ct),o=g.magnitude(g.cross(z,ct,z));return Math.atan2(o,r)<.25}function _t(t,e,n,r,o){if(e.normalsIndex.length>1){let t=r.length===o.length;for(let a=0;a<e.normalsIndex.length;a++){let i=e.normalsIndex[a];if(h(o[3*i])||bt(o,i,n,r),0!==a)for(let r=0;r<a;r++){let a=e.normalsIndex[r];if(Et(o,t?3*n[i]:3*i,t?3*n[a]:3*a))return}}}t.push(...e.outlines)}function Rt(t,e,n,r,o){let a=Object.keys(e);for(let i=0;i<a.length;i++){let l=e[a[i]],s=Object.keys(l);for(let e=0;e<s.length;e++)_t(t,l[s[e]],n,r,o)}}function Nt(t,e,n,r){let o=[],a=Object.keys(t);for(let i=0;i<a.length;i++)Rt(o,t[a[i]].edges,e,n,r);return o}function Bt(t,e,n,r,o){if(!h(t)||0===Object.keys(t).length)return;let a=Vt(t,e,n,r);(!h(o)||3*n.length!==o.length)&&(o=[]);let i=Nt(a,n,r,o);return i.length>0?new Uint32Array(i):void 0}function Gt(t){let e=new Float32Array(t.length);for(let n=0;n<t.length;n+=4)e[n]=k(P.byteToFloat(t[n])),e[n+1]=k(P.byteToFloat(t[n+1])),e[n+2]=k(P.byteToFloat(t[n+2])),e[n+3]=P.byteToFloat(t[n+3]);return e}function St(t,e,n,r,o,a,i){let l={normals:void 0,positions:void 0,uv0s:void 0,colors:void 0,featureIndex:void 0,vertexCount:void 0};if(0===t||!h(n)||0===n.length||h(r))return l;if(h(e)){l.vertexCount=e.length,l.positions=new Float32Array(3*e.length),l.uv0s=h(o)?new Float32Array(2*e.length):void 0,l.colors=h(a)?new Uint8Array(4*e.length):void 0,l.featureIndex=h(i)?new Array(e.length):void 0;for(let t=0;t<e.length;t++){let r=e[t];l.positions[3*t]=n[3*r],l.positions[3*t+1]=n[3*r+1],l.positions[3*t+2]=n[3*r+2],h(l.uv0s)&&(l.uv0s[2*t]=o[2*r],l.uv0s[2*t+1]=o[2*r+1]),h(l.colors)&&(l.colors[4*t]=a[4*r],l.colors[4*t+1]=a[4*r+1],l.colors[4*t+2]=a[4*r+2],l.colors[4*t+3]=a[4*r+3]),h(l.featureIndex)&&(l.featureIndex[t]=i[r])}t=e.length,n=l.positions}e=new Array(t);for(let n=0;n<t;n++)e[n]=n;l.normals=new Float32Array(3*e.length);for(let t=0;t<e.length;t+=3)bt(l.normals,t,e,n);return l}function vt(t,e,n,r,o,a,i,l){if(0===t||!h(n)||0===n.length)return{buffers:[],bufferViews:[],accessors:[],meshes:[],nodes:[],nodesInScene:[]};let s=[],u=[],f=[],c=[],y=[],g=[],p={},b=[];h(e)&&(t=e.length);let{indexArray:d,transparentVertexOffset:m}=Tt(t,e,a,l.splitGeometryByColorTransparency),w=new Blob([d],{type:"application/binary"}),A=URL.createObjectURL(w),x=t,I=l.enableFeatures&&h(i)?new Float32Array(i.length):void 0,v=0;if(h(I))for(let t=0;t<i.length;++t){I[t]=i[t];let e=i[t]+1;v<e&&(v=e)}let O,L=Bt(l.symbologyData,i,d,n,r);if(h(L)){let t=new Blob([L],{type:"application/binary"});O=URL.createObjectURL(t)}let C=n.subarray(0,3*x),R=new Blob([C],{type:"application/binary"}),T=URL.createObjectURL(R),_=Number.POSITIVE_INFINITY,U=Number.NEGATIVE_INFINITY,F=Number.POSITIVE_INFINITY,V=Number.NEGATIVE_INFINITY,G=Number.POSITIVE_INFINITY,E=Number.NEGATIVE_INFINITY;for(let t=0;t<C.length/3;t++)_=Math.min(_,C[3*t+0]),U=Math.max(U,C[3*t+0]),F=Math.min(F,C[3*t+1]),V=Math.max(V,C[3*t+1]),G=Math.min(G,C[3*t+2]),E=Math.max(E,C[3*t+2]);let D,N=r?r.subarray(0,3*x):void 0;if(h(N)){let t=new Blob([N],{type:"application/binary"});D=URL.createObjectURL(t)}let M,j=o?o.subarray(0,2*x):void 0;if(h(j)){let t=new Blob([j],{type:"application/binary"});M=URL.createObjectURL(t)}let B,k=h(a)?Gt(a.subarray(0,4*x)):void 0;if(h(k)){let t=new Blob([k],{type:"application/binary"});B=URL.createObjectURL(t)}let S,P=h(I)?I.subarray(0,x):void 0;if(h(P)){let t=new Blob([P],{type:"application/binary"});S=URL.createObjectURL(t)}let X,Y=h(I)?new Float32Array(v):void 0;if(h(Y)){for(let t=0;t<Y.length;++t)Y[t]=t;let t=new Blob([Y],{type:"application/binary"});X=URL.createObjectURL(t)}let z={},H={};z.POSITION=f.length,s.push({uri:T,byteLength:C.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:C.byteLength,target:34962}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:C.length/3,type:"VEC3",max:[_,F,G],min:[U,V,E]}),h(D)&&(z.NORMAL=f.length,s.push({uri:D,byteLength:N.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:N.byteLength,target:34962}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:N.length/3,type:"VEC3"})),h(M)&&(z.TEXCOORD_0=f.length,s.push({uri:M,byteLength:j.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:j.byteLength,target:34962}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:j.length/2,type:"VEC2"})),h(B)&&(z.COLOR_0=f.length,s.push({uri:B,byteLength:k.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:k.byteLength,target:34962}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:k.length/4,type:"VEC4"})),h(S)&&(z._FEATURE_ID_0=f.length,s.push({uri:S,byteLength:P.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:P.byteLength,target:34963}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:P.length,type:"SCALAR"}),H.EXT_mesh_features={featureIds:[{attribute:0,propertyTable:0,featureCount:v}]},b.push("EXT_mesh_features")),h(X)&&(s.push({uri:X,byteLength:Y.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:Y.byteLength,target:34963}),p.EXT_structural_metadata={schema:{id:"i3s-metadata-schema-001",name:"I3S metadata schema 001",description:"The schema for I3S metadata",version:"1.0",classes:{feature:{name:"feature",description:"Feature metadata",properties:{index:{description:"The feature index",type:"SCALAR",componentType:"FLOAT32",required:!0}}}}},propertyTables:[{name:"feature-indices-mapping",class:"feature",count:v,properties:{index:{values:u.length-1}}}]},b.push("EXT_structural_metadata")),h(O)&&(s.push({uri:O,byteLength:L.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:L.byteLength,target:34963}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5125,count:L.length,type:"SCALAR"}),H.CESIUM_primitive_outline={indices:f.length-1},b.push("CESIUM_primitive_outline")),s.push({uri:A,byteLength:d.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:d.byteLength,target:34963});let W=[];return m>0&&(f.push({bufferView:u.length-1,byteOffset:0,componentType:5125,count:m,type:"SCALAR"}),W.push({attributes:z,indices:f.length-1,material:W.length,extensions:H})),m<t&&(f.push({bufferView:u.length-1,byteOffset:4*m,componentType:5125,count:t-m,type:"SCALAR"}),W.push({attributes:z,indices:f.length-1,material:W.length,extensions:H,extra:{isTransparent:!0}})),c.push({primitives:W}),g.push(0),y.push({mesh:0}),{buffers:s,bufferViews:u,accessors:f,meshes:c,nodes:y,nodesInScene:g,rootExtensions:p,extensionsUsed:b}}function Mt(t,e,n,r){let o=new Uint8Array(t,0,5);return 68===o[0]&&82===o[1]&&65===o[2]&&67===o[3]&&79===o[4]?Pt(t,n):kt(t,e,n,r)}function Pt(t){let e=ut,n=new e.DecoderBuffer,r=new Uint8Array(t);n.Init(r,r.length);let o,a,i=new e.Decoder,l=i.GetEncodedGeometryType(n),s=new e.MetadataQuerier;l===e.TRIANGULAR_MESH&&(o=new e.Mesh,a=i.DecodeBufferToMesh(n,o));let u={vertexCount:[0],featureCount:0};if(h(a)&&a.ok()&&0!==o.ptr){let t=o.num_faces(),n=o.num_attributes(),r=o.num_points();u.indices=new Uint32Array(3*t);let a=u.indices;u.vertexCount[0]=r,u.scale_x=1,u.scale_y=1;let l=new e.DracoInt32Array(3);for(let e=0;e<t;++e)i.GetFaceFromMesh(o,e,l),a[3*e]=l.GetValue(0),a[3*e+1]=l.GetValue(1),a[3*e+2]=l.GetValue(2);e.destroy(l);for(let t=0;t<n;++t){let n=i.GetAttribute(o,t),a=jt(e,i,o,n,r),l=n.attribute_type(),f="unknown";l===e.POSITION?f="positions":l===e.NORMAL?f="normals":l===e.COLOR?f="colors":l===e.TEX_COORD&&(f="uv0s");let c=i.GetAttributeMetadata(o,t);if(0!==c.ptr){let t=s.NumEntries(c);for(let e=0;e<t;++e){let t=s.GetEntryName(c,e);"i3s-scale_x"===t?u.scale_x=s.GetDoubleEntry(c,"i3s-scale_x"):"i3s-scale_y"===t?u.scale_y=s.GetDoubleEntry(c,"i3s-scale_y"):"i3s-attribute-type"===t&&(f=s.GetStringEntry(c,"i3s-attribute-type"))}}h(u[f])&&console.log("Attribute already exists",f),u[f]=a,"feature-index"===f&&u.featureCount++}e.destroy(o)}return e.destroy(s),e.destroy(i),u}function jt(t,e,n,r,o){let a,i=r.num_components()*o,l=[function(){},function(){a=new t.DracoInt8Array(i),e.GetAttributeInt8ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Int8Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt8Array(i),e.GetAttributeUInt8ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Uint8Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt16Array(i),e.GetAttributeInt16ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Int16Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt16Array(i),e.GetAttributeUInt16ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Uint16Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt32Array(i),e.GetAttributeInt32ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Int32Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt32Array(i),e.GetAttributeUInt32ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Uint32Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){},function(){},function(){a=new t.DracoFloat32Array(i),e.GetAttributeFloatForAllPoints(n,r,a)||console.error("Bad stream");let o=new Float32Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){},function(){a=new t.DracoUInt8Array(i),e.GetAttributeUInt8ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Uint8Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o}][r.data_type()]();return h(a)&&t.destroy(a),l}var W={position:function(t,e,n){let r=3*t.vertexCount;return t.positions=new Float32Array(e,n,r),n+4*r},normal:function(t,e,n){let r=3*t.vertexCount;return t.normals=new Float32Array(e,n,r),n+4*r},uv0:function(t,e,n){let r=2*t.vertexCount;return t.uv0s=new Float32Array(e,n,r),n+4*r},color:function(t,e,n){let r=4*t.vertexCount;return t.colors=new Uint8Array(e,n,r),n+r},featureId:function(t,e,n){return n+8*t.featureCount},id:function(t,e,n){return n+8*t.featureCount},faceRange:function(t,e,n){let r=2*t.featureCount;return t.faceRange=new Uint32Array(e,n,r),n+4*r},uvRegion:function(t,e,n){let r=4*t.vertexCount;return t["uv-region"]=new Uint16Array(e,n,r),n+2*r},region:function(t,e,n){let r=4*t.vertexCount;return t["uv-region"]=new Uint16Array(e,n,r),n+2*r}};function kt(t,e,n,r){let o={vertexCount:0},a=new DataView(t);try{let i=0;if(o.vertexCount=a.getUint32(i,1),i+=4,o.featureCount=a.getUint32(i,1),i+=4,h(n))for(let e=0;e<n.attributes.length;e++)h(W[n.attributes[e]])?i=W[n.attributes[e]](o,t,i):console.error("Unknown decoder for",n.attributes[e]);else{let n=e.ordering,a=e.featureAttributeOrder;h(r)&&h(r.geometryData)&&h(r.geometryData[0])&&h(r.geometryData[0].params)&&(n=Object.keys(r.geometryData[0].params.vertexAttributes),a=Object.keys(r.geometryData[0].params.featureAttributes));for(let e=0;e<n.length;e++)i=(0,W[n[e]])(o,t,i);for(let e=0;e<a.length;e++)i=(0,W[a[e]])(o,t,i)}}catch(t){console.error(t)}return o.scale_x=1,o.scale_y=1,o}function Ht(t){let e,n=Mt(t.binaryData,t.schema,t.bufferInfo,t.featureData);if(h(t.geoidDataList)&&t.geoidDataList.length>0&&At(n.vertexCount,n.positions,n.scale_x,n.scale_y,t.cartographicCenter,t.geoidDataList,!1),Lt(n.vertexCount,n.positions,n.normals,t.cartographicCenter,t.cartesianCenter,t.parentRotation,t.ellipsoidRadiiSquare,n.scale_x,n.scale_y),h(n.uv0s)&&h(n["uv-region"])&&Ot(n.vertexCount,n.uv0s,n["uv-region"]),h(n["feature-index"]))e=n["feature-index"];else if(h(n.faceRange)){e=new Array(n.vertexCount);for(let t=0;t<n.faceRange.length-1;t+=2){let r=t/2,o=n.faceRange[t],a=n.faceRange[t+1];for(let t=o;t<=a;t++)e[3*t]=r,e[3*t+1]=r,e[3*t+2]=r}}if(t.calculateNormals){let t=St(n.vertexCount,n.indices,n.positions,n.normals,n.uv0s,n.colors,e);h(t.normals)&&(n.normals=t.normals,h(t.vertexCount)&&(n.vertexCount=t.vertexCount,n.indices=t.indices,n.positions=t.positions,n.uv0s=t.uv0s,n.colors=t.colors,e=t.featureIndex))}let r=vt(n.vertexCount,n.indices,n.positions,n.normals,n.uv0s,n.colors,e,t),o={positions:n.positions,indices:n.indices,featureIndex:e,sourceURL:t.url,cartesianCenter:t.cartesianCenter,parentRotation:t.parentRotation};return r._customAttributes=o,{meshData:r}}async function Xt(t,e){let n=t.webAssemblyConfig;return ut=h(n)&&h(n.wasmBinaryFile)?await(0,at.default)(n):await(0,at.default)(),!0}function Yt(t,e){let n=t.webAssemblyConfig;return h(n)?Xt(t,e):Ht(t,e)}var re=ht(Yt);export{re as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see gaussianSplatSorter.js.LICENSE.txt */
|
|
2
|
+
import{b as t,c as f}from"./chunk-TGKHFJV6.js";import{a as s}from"./chunk-D2NFCOGE.js";import{e as o}from"./chunk-XRRBRTKL.js";async function m(s,e){let t=s.webAssemblyConfig;if(o(t)&&o(t.wasmBinary))return f({module:t.wasmBinary}),!0}function c(s,e){let i=s.webAssemblyConfig;if(o(i))return m(s,e);let{primitive:n,sortType:r}=s;return"Index"===r?t(n.positions,n.modelView,n.count):void 0}var y=s(c);export{y as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see gaussianSplatTextureGenerator.js.LICENSE.txt */
|
|
2
|
+
import{a,c}from"./chunk-TGKHFJV6.js";import{a as i}from"./chunk-D2NFCOGE.js";import{e as n}from"./chunk-XRRBRTKL.js";async function u(t,a){let s=t.webAssemblyConfig;return!(!n(s)||!n(s.wasmBinary)||(c({module:s.wasmBinary}),0))}async function l(t,s){let i=t.webAssemblyConfig;if(n(i))return u(t,s);let{attributes:o,count:r}=t,e=a(o.positions,o.scales,o.rotations,o.colors,r);return{data:e.data,width:e.width,height:e.height}}var w=i(l);export{w as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see transcodeKTX2.js.LICENSE.txt */
|
|
2
|
+
import{a as on}from"./chunk-D2NFCOGE.js";import{a as f}from"./chunk-4WJUWBRK.js";import{a as se}from"./chunk-5G23AKP3.js";import{b as sn}from"./chunk-NOIUI5SY.js";import{a as Vt,c as rr,d as sr,e as De}from"./chunk-XRRBRTKL.js";var cn=rr(((e,t)=>{var r,n=(r=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,typeof __filename<"u"&&(r=r||__filename),function(e){var t,n,_=typeof(e=e||{})<"u"?e:{};_.ready=new Promise((function(e,r){t=e,n=r}));var i,o={};for(i in _)_.hasOwnProperty(i)&&(o[i]=_[i]);var a,s,u,R,c=[];u="object"==typeof window,R="function"==typeof importScripts,a="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,s=!u&&!a&&!R;var f,T,A,l,O,p="";a?(p=R?Vt("path").dirname(p)+"/":__dirname+"/",f=function(e,t){return l||(l=Vt("fs")),O||(O=Vt("path")),e=O.normalize(e),l.readFileSync(e,t?null:"utf8")},A=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),h(t.buffer),t},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),c=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof Ft))throw e})),process.on("unhandledRejection",Q),_.inspect=function(){return"[Emscripten Module object]"}):s?(typeof read<"u"&&(f=function(e){return read(e)}),A=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(h("object"==typeof(t=read(e,"binary"))),t)},typeof scriptArgs<"u"?c=scriptArgs:typeof arguments<"u"&&(c=arguments),typeof print<"u"&&(typeof console>"u"&&(console={}),console.log=print,console.warn=console.error=typeof printErr<"u"?printErr:print)):(u||R)&&(R?p=self.location.href:typeof document<"u"&&document.currentScript&&(p=document.currentScript.src),r&&(p=r),p=0!==p.indexOf("blob:")?p.substr(0,p.lastIndexOf("/")+1):"",f=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},R&&(A=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),T=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var B,C=_.print||console.log.bind(console),G=_.printErr||console.warn.bind(console);for(i in o)o.hasOwnProperty(i)&&(_[i]=o[i]);o=null,_.arguments&&(c=_.arguments),_.thisProgram&&_.thisProgram,_.quit&&_.quit,_.wasmBinary&&(B=_.wasmBinary),_.noExitRuntime,"object"!=typeof WebAssembly&&Q("no native wasm support detected");var M,K=!1;function h(e,t){e||Q("Assertion failed: "+t)}var d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function F(e,t,r){for(var n=t+r,_=t;e[_]&&!(_>=n);)++_;if(_-t>16&&e.subarray&&d)return d.decode(e.subarray(t,_));for(var i="";t<_;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var s=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|s:(7&o)<<18|a<<12|s<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function N(e,t){return e?F(E,e,t):""}var y,v,E,P,S,V,m,U,g,L=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function I(e,t){for(var r=e,n=r>>1,_=n+t/2;!(n>=_)&&S[n];)++n;if((r=n<<1)-e>32&&L)return L.decode(E.subarray(e,r));for(var i="",o=0;!(o>=t/2);++o){var a=P[e+2*o>>1];if(0==a)break;i+=String.fromCharCode(a)}return i}function w(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,_=(r-=2)<2*e.length?r/2:e.length,i=0;i<_;++i){var o=e.charCodeAt(i);P[t>>1]=o,t+=2}return P[t>>1]=0,t-n}function D(e){return 2*e.length}function b(e,t){for(var r=0,n="";!(r>=t/4);){var _=V[e+4*r>>2];if(0==_)break;if(++r,_>=65536){var i=_-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(_)}return n}function X(e,t,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,_=n+r-4,i=0;i<e.length;++i){var o=e.charCodeAt(i);if(o>=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++i)),V[t>>2]=o,(t+=4)+4>_)break}return V[t>>2]=0,t-n}function x(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t}function H(e,t){return e%t>0&&(e+=t-e%t),e}function $(e){y=e,_.HEAP8=v=new Int8Array(e),_.HEAP16=P=new Int16Array(e),_.HEAP32=V=new Int32Array(e),_.HEAPU8=E=new Uint8Array(e),_.HEAPU16=S=new Uint16Array(e),_.HEAPU32=m=new Uint32Array(e),_.HEAPF32=U=new Float32Array(e),_.HEAPF64=g=new Float64Array(e)}_.INITIAL_MEMORY;var k,W=[],j=[],z=[],Y=[],q=0,J=null,Z=null;function Q(e){_.onAbort&&_.onAbort(e),G(e+=""),K=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}function ee(e,t){return String.prototype.startsWith?e.startsWith(t):0===e.indexOf(t)}_.preloadedImages={},_.preloadedAudios={};function te(e){return ee(e,"data:application/octet-stream;base64,")}function re(e){return ee(e,"file://")}var ne,_e="basis_transcoder.wasm";function ie(e){try{if(e==_e&&B)return new Uint8Array(B);if(A)return A(e);throw"both async and sync fetching of the wasm failed"}catch(e){Q(e)}}function oe(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?k.get(r)():k.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(_)}}te(_e)||(ne=_e,_e=_.locateFile?_.locateFile(ne,p):p+ne);var ae={};function se(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function ue(e){return this.fromWireType(m[e>>2])}var Re={},ce={},fe={},Te=48,Ae=57;function le(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=Te&&t<=Ae?"_"+e:e}function Oe(e,t){return e=le(e),new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function pe(e,t){var r=Oe(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var Be=void 0;function Ce(e){throw new Be(e)}function Ge(e,t,r){function n(t){var n=r(t);n.length!==e.length&&Ce("Mismatched type converter count");for(var _=0;_<e.length;++_)Ne(e[_],n[_])}e.forEach((function(e){fe[e]=t}));var _=new Array(t.length),i=[],o=0;t.forEach((function(e,t){ce.hasOwnProperty(e)?_[t]=ce[e]:(i.push(e),Re.hasOwnProperty(e)||(Re[e]=[]),Re[e].push((function(){_[t]=ce[e],++o===i.length&&n(_)})))})),0===i.length&&n(_)}function Me(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}var Ke=void 0;function he(e){for(var t="",r=e;E[r];)t+=Ke[E[r++]];return t}var de=void 0;function Fe(e){throw new de(e)}function Ne(e,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=t.name;if(e||Fe('type "'+n+'" must have a positive integer typeid pointer'),ce.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;Fe("Cannot register type '"+n+"' twice")}if(ce[e]=t,delete fe[e],Re.hasOwnProperty(e)){var _=Re[e];delete Re[e],_.forEach((function(e){e()}))}}function ye(e){return{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}}function ve(e){Fe(e.$$.ptrType.registeredClass.name+" instance already deleted")}var Ee=!1;function Pe(e){}function Se(e){e.count.value-=1,0===e.count.value&&function(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}(e)}function Ve(e){return typeof FinalizationGroup>"u"?(Ve=function(e){return e},e):(Ee=new FinalizationGroup((function(e){for(var t=e.next();!t.done;t=e.next()){var r=t.value;r.ptr?Se(r):console.warn("object already deleted: "+r.ptr)}})),Pe=function(e){Ee.unregister(e.$$)},(Ve=function(e){return Ee.register(e,e.$$,e.$$),e})(e))}var me=void 0,Ue=[];function ge(){for(;Ue.length;){var e=Ue.pop();e.$$.deleteScheduled=!1,e.delete()}}function Le(){}var Ie={};function we(e,t,r){if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||Fe("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}}function De(e,t,r){_.hasOwnProperty(e)?((void 0===r||void 0!==_[e].overloadTable&&void 0!==_[e].overloadTable[r])&&Fe("Cannot register public name '"+e+"' twice"),we(_,e,e),_.hasOwnProperty(r)&&Fe("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),_[e].overloadTable[r]=t):(_[e]=t,void 0!==r&&(_[e].numArguments=r))}function be(e,t,r,n,_,i,o,a){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=_,this.getActualType=i,this.upcast=o,this.downcast=a,this.pureVirtualFunctions=[]}function Xe(e,t,r){for(;t!==r;)t.upcast||Fe("Expected null or instance of "+r.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function xe(e,t){if(null===t)return this.isReference&&Fe("null is not a valid "+this.name),0;t.$$||Fe('Cannot pass "'+ut(t)+'" as a '+this.name),t.$$.ptr||Fe("Cannot pass deleted object as a pointer of type "+this.name);var r=t.$$.ptrType.registeredClass;return Xe(t.$$.ptr,r,this.registeredClass)}function He(e,t){var r;if(null===t)return this.isReference&&Fe("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||Fe('Cannot pass "'+ut(t)+'" as a '+this.name),t.$$.ptr||Fe("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&Fe("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;if(r=Xe(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&Fe("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:Fe("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var _=t.clone();r=this.rawShare(r,ot((function(){_.delete()}))),null!==e&&e.push(this.rawDestructor,r)}break;default:Fe("Unsupporting sharing policy")}return r}function $e(e,t){if(null===t)return this.isReference&&Fe("null is not a valid "+this.name),0;t.$$||Fe('Cannot pass "'+ut(t)+'" as a '+this.name),t.$$.ptr||Fe("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&Fe("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;return Xe(t.$$.ptr,r,this.registeredClass)}function ke(e,t,r){if(t===r)return e;if(void 0===r.baseClass)return null;var n=ke(e,t,r.baseClass);return null===n?null:r.downcast(n)}var We={};function je(e,t){return(!t.ptrType||!t.ptr)&&Ce("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&Ce("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Ve(Object.create(e,{$$:{value:t}}))}function ze(e,t,r,n,_,i,o,a,s,u,R){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=_,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=a,this.rawConstructor=s,this.rawShare=u,this.rawDestructor=R,_||void 0!==t.baseClass?this.toWireType=He:n?(this.toWireType=xe,this.destructorFunction=null):(this.toWireType=$e,this.destructorFunction=null)}function Ye(e,t,r){_.hasOwnProperty(e)||Ce("Replacing nonexistant public symbol"),void 0!==_[e].overloadTable&&void 0!==r?_[e].overloadTable[r]=t:(_[e]=t,_[e].argCount=r)}function qe(e,t){var r=-1!=(e=he(e)).indexOf("j")?function(e,t){var r=[];return function(){r.length=arguments.length;for(var n=0;n<arguments.length;n++)r[n]=arguments[n];return function(e,t,r){return-1!=e.indexOf("j")?function(e,t,r){var n=_["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}(e,t,r):k.get(t).apply(null,r)}(e,t,r)}}(e,t):k.get(t);return"function"!=typeof r&&Fe("unknown function pointer with signature "+e+": "+t),r}var Je=void 0;function Ze(e){var t=dt(e),r=he(t);return ht(t),r}function Qe(e,t){var r=[],n={};throw t.forEach((function e(t){if(!n[t]&&!ce[t]){if(fe[t])return void fe[t].forEach(e);r.push(t),n[t]=!0}})),new Je(e+": "+r.map(Ze).join([", "]))}function et(e,t){for(var r=[],n=0;n<e;n++)r.push(V[(t>>2)+n]);return r}function tt(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var r=Oe(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,_=e.apply(n,t);return _ instanceof Object?_:n}function rt(e,t,r,n,_){var i=t.length;i<2&&Fe("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var o=null!==t[1]&&null!==r,a=!1,s=1;s<t.length;++s)if(null!==t[s]&&void 0===t[s].destructorFunction){a=!0;break}var u="void"!==t[0].name,R="",c="";for(s=0;s<i-2;++s)R+=(0!==s?", ":"")+"arg"+s,c+=(0!==s?", ":"")+"arg"+s+"Wired";var f="return function "+le(e)+"("+R+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+e+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";a&&(f+="var destructors = [];\n");var T=a?"destructors":"null",A=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],l=[Fe,n,_,se,t[0],t[1]];for(o&&(f+="var thisWired = classParam.toWireType("+T+", this);\n"),s=0;s<i-2;++s)f+="var arg"+s+"Wired = argType"+s+".toWireType("+T+", arg"+s+"); // "+t[s+2].name+"\n",A.push("argType"+s),l.push(t[s+2]);if(o&&(c="thisWired"+(c.length>0?", ":"")+c),f+=(u?"var rv = ":"")+"invoker(fn"+(c.length>0?", ":"")+c+");\n",a)f+="runDestructors(destructors);\n";else for(s=o?1:2;s<t.length;++s){var O=1===s?"thisWired":"arg"+(s-2)+"Wired";null!==t[s].destructorFunction&&(f+=O+"_dtor("+O+"); // "+t[s].name+"\n",A.push(O+"_dtor"),l.push(t[s].destructorFunction))}return u&&(f+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),f+="}\n",A.push(f),tt(Function,A).apply(null,l)}var nt=[],_t=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function it(e){e>4&&0==--_t[e].refcount&&(_t[e]=void 0,nt.push(e))}function ot(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=nt.length?nt.pop():_t.length;return _t[t]={refcount:1,value:e},t}}function at(e,t,r){switch(t){case 0:return function(e){var t=r?v:E;return this.fromWireType(t[e])};case 1:return function(e){var t=r?P:S;return this.fromWireType(t[e>>1])};case 2:return function(e){var t=r?V:m;return this.fromWireType(t[e>>2])};default:throw new TypeError("Unknown integer type: "+e)}}function st(e,t){var r=ce[e];return void 0===r&&Fe(t+" has unknown type "+Ze(e)),r}function ut(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function Rt(e,t){switch(t){case 2:return function(e){return this.fromWireType(U[e>>2])};case 3:return function(e){return this.fromWireType(g[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function ct(e,t,r){switch(t){case 0:return r?function(e){return v[e]}:function(e){return E[e]};case 1:return r?function(e){return P[e>>1]}:function(e){return S[e>>1]};case 2:return r?function(e){return V[e>>2]}:function(e){return m[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}function ft(e){return e||Fe("Cannot use deleted val. handle = "+e),_t[e].value}var Tt={};function At(e){var t=Tt[e];return void 0===t?he(e):t}var lt=[];function Ot(){return"object"==typeof globalThis?globalThis:Function("return this")()}var pt={};function Bt(e){try{return M.grow(e-y.byteLength+65535>>>16),$(M.buffer),1}catch{}}var Ct={mappings:{},buffers:[null,[],[]],printChar:function(e,t){var r=Ct.buffers[e];0===t||10===t?((1===e?C:G)(F(r,0)),r.length=0):r.push(t)},varargs:void 0,get:function(){return Ct.varargs+=4,V[Ct.varargs-4>>2]},getStr:function(e){return N(e)},get64:function(e,t){return e}};Be=_.InternalError=pe(Error,"InternalError"),function(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);Ke=e}(),de=_.BindingError=pe(Error,"BindingError"),Le.prototype.isAliasOf=function(e){if(!(this instanceof Le&&e instanceof Le))return!1;for(var t=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=e.$$.ptrType.registeredClass,_=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)_=n.upcast(_),n=n.baseClass;return t===n&&r===_},Le.prototype.clone=function(){if(this.$$.ptr||ve(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Ve(Object.create(Object.getPrototypeOf(this),{$$:{value:ye(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},Le.prototype.delete=function(){this.$$.ptr||ve(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Fe("Object already scheduled for deletion"),Pe(this),Se(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},Le.prototype.isDeleted=function(){return!this.$$.ptr},Le.prototype.deleteLater=function(){return this.$$.ptr||ve(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Fe("Object already scheduled for deletion"),Ue.push(this),1===Ue.length&&me&&me(ge),this.$$.deleteScheduled=!0,this},ze.prototype.getPointee=function(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},ze.prototype.destructor=function(e){this.rawDestructor&&this.rawDestructor(e)},ze.prototype.argPackAdvance=8,ze.prototype.readValueFromPointer=ue,ze.prototype.deleteObject=function(e){null!==e&&e.delete()},ze.prototype.fromWireType=function(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=function(e,t){return t=function(e,t){for(void 0===t&&Fe("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}(e,t),We[t]}(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function _(){return this.isSmartPointer?je(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):je(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,o=this.registeredClass.getActualType(t),a=Ie[o];if(!a)return _.call(this);i=this.isConst?a.constPointerType:a.pointerType;var s=ke(t,this.registeredClass,i.registeredClass);return null===s?_.call(this):this.isSmartPointer?je(i.registeredClass.instancePrototype,{ptrType:i,ptr:s,smartPtrType:this,smartPtr:e}):je(i.registeredClass.instancePrototype,{ptrType:i,ptr:s})},_.getInheritedInstanceCount=function(){return Object.keys(We).length},_.getLiveInheritedInstances=function(){var e=[];for(var t in We)We.hasOwnProperty(t)&&e.push(We[t]);return e},_.flushPendingDeletes=ge,_.setDelayFunction=function(e){me=e,Ue.length&&me&&me(ge)},Je=_.UnboundTypeError=pe(Error,"UnboundTypeError"),_.count_emval_handles=function(){for(var e=0,t=5;t<_t.length;++t)void 0!==_t[t]&&++e;return e},_.get_first_emval=function(){for(var e=5;e<_t.length;++e)if(void 0!==_t[e])return _t[e];return null};var Gt,Mt={t:function(e){var t=ae[e];delete ae[e];var r=t.rawConstructor,n=t.rawDestructor,_=t.fields;Ge([e],_.map((function(e){return e.getterReturnType})).concat(_.map((function(e){return e.setterArgumentType}))),(function(e){var i={};return _.forEach((function(t,r){var n=t.fieldName,o=e[r],a=t.getter,s=t.getterContext,u=e[r+_.length],R=t.setter,c=t.setterContext;i[n]={read:function(e){return o.fromWireType(a(s,e))},write:function(e,t){var r=[];R(c,e,u.toWireType(r,t)),se(r)}}})),[{name:t.name,fromWireType:function(e){var t={};for(var r in i)t[r]=i[r].read(e);return n(e),t},toWireType:function(e,t){for(var _ in i)if(!(_ in t))throw new TypeError('Missing field: "'+_+'"');var o=r();for(_ in i)i[_].write(o,t[_]);return null!==e&&e.push(n,o),o},argPackAdvance:8,readValueFromPointer:ue,destructorFunction:n}]}))},I:function(e,t,r,n,_){var i=Me(r);Ne(e,{name:t=he(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:_},argPackAdvance:8,readValueFromPointer:function(e){var n;if(1===r)n=v;else if(2===r)n=P;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=V}return this.fromWireType(n[e>>i])},destructorFunction:null})},x:function(e,t,r,n,_,i,o,a,s,u,R,c,f){R=he(R),i=qe(_,i),a&&(a=qe(o,a)),u&&(u=qe(s,u)),f=qe(c,f);var T=le(R);De(T,(function(){Qe("Cannot construct "+R+" due to unbound types",[n])})),Ge([e,t,r],n?[n]:[],(function(t){var r,_;t=t[0],_=n?(r=t.registeredClass).instancePrototype:Le.prototype;var o=Oe(T,(function(){if(Object.getPrototypeOf(this)!==s)throw new de("Use 'new' to construct "+R);if(void 0===c.constructor_body)throw new de(R+" has no accessible constructor");var e=c.constructor_body[arguments.length];if(void 0===e)throw new de("Tried to invoke ctor of "+R+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(c.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),s=Object.create(_,{constructor:{value:o}});o.prototype=s;var c=new be(R,o,s,f,r,i,a,u),A=new ze(R,c,!0,!1,!1),l=new ze(R+"*",c,!1,!1,!1),O=new ze(R+" const*",c,!1,!0,!1);return Ie[e]={pointerType:l,constPointerType:O},Ye(T,o),[A,l,O]}))},w:function(e,t,r,n,_,i){h(t>0);var o=et(t,r);_=qe(n,_);var a=[i],s=[];Ge([],[e],(function(e){var r="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new de("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=function(){Qe("Cannot construct "+e.name+" due to unbound types",o)},Ge([],o,(function(n){return e.registeredClass.constructor_body[t-1]=function(){arguments.length!==t-1&&Fe(r+" called with "+arguments.length+" arguments, expected "+(t-1)),s.length=0,a.length=t;for(var e=1;e<t;++e)a[e]=n[e].toWireType(s,arguments[e-1]);var i=_.apply(null,a);return se(s),n[0].fromWireType(i)},[]})),[]}))},d:function(e,t,r,n,_,i,o,a){var s=et(r,n);t=he(t),i=qe(_,i),Ge([],[e],(function(e){var n=(e=e[0]).name+"."+t;function _(){Qe("Cannot call "+n+" due to unbound types",s)}a&&e.registeredClass.pureVirtualFunctions.push(t);var u=e.registeredClass.instancePrototype,R=u[t];return void 0===R||void 0===R.overloadTable&&R.className!==e.name&&R.argCount===r-2?(_.argCount=r-2,_.className=e.name,u[t]=_):(we(u,t,n),u[t].overloadTable[r-2]=_),Ge([],s,(function(_){var a=rt(n,_,e,i,o);return void 0===u[t].overloadTable?(a.argCount=r-2,u[t]=a):u[t].overloadTable[r-2]=a,[]})),[]}))},k:function(e,t,r){e=he(e),Ge([],[t],(function(t){return t=t[0],_[e]=t.fromWireType(r),[]}))},H:function(e,t){Ne(e,{name:t=he(t),fromWireType:function(e){var t=_t[e].value;return it(e),t},toWireType:function(e,t){return ot(t)},argPackAdvance:8,readValueFromPointer:ue,destructorFunction:null})},n:function(e,t,r,n){var _=Me(r);function i(){}t=he(t),i.values={},Ne(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:function(e,t){return t.value},argPackAdvance:8,readValueFromPointer:at(t,_,n),destructorFunction:null}),De(t,i)},a:function(e,t,r){var n=st(e,"enum");t=he(t);var _=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:Oe(n.name+"_"+t,(function(){}))}});_.values[r]=i,_[t]=i},A:function(e,t,r){var n=Me(r);Ne(e,{name:t=he(t),fromWireType:function(e){return e},toWireType:function(e,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+ut(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:Rt(t,n),destructorFunction:null})},i:function(e,t,r,n,_,i){var o=et(t,r);e=he(e),_=qe(n,_),De(e,(function(){Qe("Cannot call "+e+" due to unbound types",o)}),t-1),Ge([],o,(function(r){var n=[r[0],null].concat(r.slice(1));return Ye(e,rt(e,n,null,_,i),t-1),[]}))},j:function(e,t,r,n,_){t=he(t),-1===_&&(_=4294967295);var i=Me(r),o=function(e){return e};if(0===n){var a=32-8*r;o=function(e){return e<<a>>>a}}var s=-1!=t.indexOf("unsigned");Ne(e,{name:t,fromWireType:o,toWireType:function(e,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+ut(r)+'" to '+this.name);if(r<n||r>_)throw new TypeError('Passing a number "'+ut(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+n+", "+_+"]!");return s?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:ct(t,i,0!==n),destructorFunction:null})},h:function(e,t,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function _(e){var t=m,r=t[e>>=2],_=t[e+1];return new n(y,_,r)}Ne(e,{name:r=he(r),fromWireType:_,argPackAdvance:8,readValueFromPointer:_},{ignoreDuplicateRegistrations:!0})},B:function(e,t){var r="std::string"===(t=he(t));Ne(e,{name:t,fromWireType:function(e){var t,n=m[e>>2];if(r)for(var _=e+4,i=0;i<=n;++i){var o=e+4+i;if(i==n||0==E[o]){var a=N(_,o-_);void 0===t?t=a:(t+="\0",t+=a),_=o+1}}else{var s=new Array(n);for(i=0;i<n;++i)s[i]=String.fromCharCode(E[e+4+i]);t=s.join("")}return ht(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n,_="string"==typeof t;_||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||Fe("Cannot pass non-string to std::string"),n=r&&_?function(){return function(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}(t)}:function(){return t.length};var i=n(),o=Kt(4+i+1);if(m[o>>2]=i,r&&_)!function(e,t,r){!function(e,t,r,n){if(!(n>0))return 0;for(var _=r+n-1,i=0;i<e.length;++i){var o=e.charCodeAt(i);if(o>=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++i)),o<=127){if(r>=_)break;t[r++]=o}else if(o<=2047){if(r+1>=_)break;t[r++]=192|o>>6,t[r++]=128|63&o}else if(o<=65535){if(r+2>=_)break;t[r++]=224|o>>12,t[r++]=128|o>>6&63,t[r++]=128|63&o}else{if(r+3>=_)break;t[r++]=240|o>>18,t[r++]=128|o>>12&63,t[r++]=128|o>>6&63,t[r++]=128|63&o}}t[r]=0}(e,E,t,r)}(t,o+4,i+1);else if(_)for(var a=0;a<i;++a){var s=t.charCodeAt(a);s>255&&(ht(o),Fe("String has UTF-16 code units that do not fit in 8 bits")),E[o+4+a]=s}else for(a=0;a<i;++a)E[o+4+a]=t[a];return null!==e&&e.push(ht,o),o},argPackAdvance:8,readValueFromPointer:ue,destructorFunction:function(e){ht(e)}})},v:function(e,t,r){var n,_,i,o,a;r=he(r),2===t?(n=I,_=w,o=D,i=function(){return S},a=1):4===t&&(n=b,_=X,o=x,i=function(){return m},a=2),Ne(e,{name:r,fromWireType:function(e){for(var r,_=m[e>>2],o=i(),s=e+4,u=0;u<=_;++u){var R=e+4+u*t;if(u==_||0==o[R>>a]){var c=n(s,R-s);void 0===r?r=c:(r+="\0",r+=c),s=R+t}}return ht(e),r},toWireType:function(e,n){"string"!=typeof n&&Fe("Cannot pass non-string to C++ string type "+r);var i=o(n),s=Kt(4+i+t);return m[s>>2]=i>>a,_(n,s+4,i+t),null!==e&&e.push(ht,s),s},argPackAdvance:8,readValueFromPointer:ue,destructorFunction:function(e){ht(e)}})},u:function(e,t,r,n,_,i){ae[e]={name:he(t),rawConstructor:qe(r,n),rawDestructor:qe(_,i),fields:[]}},c:function(e,t,r,n,_,i,o,a,s,u){ae[e].fields.push({fieldName:he(t),getterReturnType:r,getter:qe(n,_),getterContext:i,setterArgumentType:o,setter:qe(a,s),setterContext:u})},J:function(e,t){Ne(e,{isVoid:!0,name:t=he(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})},m:function(e,t,r){e=ft(e),t=st(t,"emval::as");var n=[],_=ot(n);return V[r>>2]=_,t.toWireType(n,e)},s:function(e,t,r,n){(e=lt[e])(t=ft(t),r=At(r),null,n)},b:it,y:function(e){return 0===e?ot(Ot()):(e=At(e),ot(Ot()[e]))},p:function(e,t){for(var r=function(e,t){for(var r=new Array(e),n=0;n<e;++n)r[n]=st(V[(t>>2)+n],"parameter "+n);return r}(e,t),n=r[0],_=n.name+"_$"+r.slice(1).map((function(e){return e.name})).join("_")+"$",i=["retType"],o=[n],a="",s=0;s<e-1;++s)a+=(0!==s?", ":"")+"arg"+s,i.push("argType"+s),o.push(r[1+s]);var u="return function "+le("methodCaller_"+_)+"(handle, name, destructors, args) {\n",R=0;for(s=0;s<e-1;++s)u+=" var arg"+s+" = argType"+s+".readValueFromPointer(args"+(R?"+"+R:"")+");\n",R+=r[s+1].argPackAdvance;for(u+=" var rv = handle[name]("+a+");\n",s=0;s<e-1;++s)r[s+1].deleteObject&&(u+=" argType"+s+".deleteObject(arg"+s+");\n");return n.isVoid||(u+=" return retType.toWireType(destructors, rv);\n"),u+="};\n",i.push(u),function(e){var t=lt.length;return lt.push(e),t}(tt(Function,i).apply(null,o))},r:function(e){return e=At(e),ot(_[e])},e:function(e,t){return ot((e=ft(e))[t=ft(t)])},g:function(e){e>4&&(_t[e].refcount+=1)},q:function(e,t,r,n){e=ft(e);var i=pt[t];return i||(i=function(e){for(var t="",r=0;r<e;++r)t+=(0!==r?", ":"")+"arg"+r;var n="return function emval_allocator_"+e+"(constructor, argTypes, args) {\n";for(r=0;r<e;++r)n+="var argType"+r+" = requireRegisteredType(Module['HEAP32'][(argTypes >>> 2) + "+r+'], "parameter '+r+'");\nvar arg'+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\n";return n+="var obj = new constructor("+t+");\nreturn __emval_register(obj);\n}\n",new Function("requireRegisteredType","Module","__emval_register",n)(st,_,ot)}(t),pt[t]=i),i(e,r,n)},f:function(e){return ot(At(e))},l:function(e){se(_t[e].value),it(e)},o:function(){Q()},E:function(e,t,r){E.copyWithin(e,t,t+r)},F:function(e){var t=E.length,r=2147483648;if((e>>>=0)>r)return!1;for(var n=1;n<=4;n*=2){var _=t*(1+.2/n);if(_=Math.min(_,e+100663296),Bt(Math.min(r,H(Math.max(e,_),65536))))return!0}return!1},G:function(e){return 0},C:function(e,t,r,n,_){},z:function(e,t,r,n){for(var _=0,i=0;i<r;i++){for(var o=V[t+8*i>>2],a=V[t+(8*i+4)>>2],s=0;s<a;s++)Ct.printChar(e,E[o+s]);_+=a}return V[n>>2]=_,0},D:function(e){}},Kt=(function(){var e={a:Mt};function t(e,t){var r=e.exports;_.asm=r,$((M=_.asm.K).buffer),k=_.asm.O,function(e){j.unshift(e)}(_.asm.L),function(e){if(q--,_.monitorRunDependencies&&_.monitorRunDependencies(q),0==q&&(null!==J&&(clearInterval(J),J=null),Z)){var t=Z;Z=null,t()}}()}function r(e){t(e.instance)}function i(t){return function(){if(!B&&(u||R)){if("function"==typeof fetch&&!re(_e))return fetch(_e,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+_e+"'";return e.arrayBuffer()})).catch((function(){return ie(_e)}));if(T)return new Promise((function(e,t){T(_e,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return ie(_e)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){G("failed to asynchronously prepare wasm: "+e),Q(e)}))}if(q++,_.monitorRunDependencies&&_.monitorRunDependencies(q),_.instantiateWasm)try{return _.instantiateWasm(e,t)}catch(e){return G("Module.instantiateWasm callback failed with error: "+e),!1}(B||"function"!=typeof WebAssembly.instantiateStreaming||te(_e)||re(_e)||"function"!=typeof fetch?i(r):fetch(_e,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return G("wasm streaming compile failed: "+e),G("falling back to ArrayBuffer instantiation"),i(r)}))}))).catch(n)}(),_.___wasm_call_ctors=function(){return(_.___wasm_call_ctors=_.asm.L).apply(null,arguments)},_._malloc=function(){return(Kt=_._malloc=_.asm.M).apply(null,arguments)}),ht=_._free=function(){return(ht=_._free=_.asm.N).apply(null,arguments)},dt=_.___getTypeName=function(){return(dt=_.___getTypeName=_.asm.P).apply(null,arguments)};function Ft(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Nt(e){function r(){Gt||(Gt=!0,_.calledRun=!0,!K&&(oe(j),oe(z),t(_),_.onRuntimeInitialized&&_.onRuntimeInitialized(),function(){if(_.postRun)for("function"==typeof _.postRun&&(_.postRun=[_.postRun]);_.postRun.length;)e=_.postRun.shift(),Y.unshift(e);var e;oe(Y)}()))}e=e||c,q>0||(function(){if(_.preRun)for("function"==typeof _.preRun&&(_.preRun=[_.preRun]);_.preRun.length;)e=_.preRun.shift(),W.unshift(e);var e;oe(W)}(),q>0)||(_.setStatus?(_.setStatus("Running..."),setTimeout((function(){setTimeout((function(){_.setStatus("")}),1),r()}),1)):r())}if(_.___embind_register_native_and_builtin_types=function(){return(_.___embind_register_native_and_builtin_types=_.asm.Q).apply(null,arguments)},_.dynCall_jiji=function(){return(_.dynCall_jiji=_.asm.R).apply(null,arguments)},Z=function e(){Gt||Nt(),Gt||(Z=e)},_.run=Nt,_.preInit)for("function"==typeof _.preInit&&(_.preInit=[_.preInit]);_.preInit.length>0;)_.preInit.pop()();return Nt(),e.ready});"object"==typeof e&&"object"==typeof t?t.exports=n:"function"==typeof define&&define.amd?define([],(function(){return n})):"object"==typeof e&&(e.BASIS=n)})),K={UNSIGNED_BYTE:f.UNSIGNED_BYTE,UNSIGNED_SHORT:f.UNSIGNED_SHORT,UNSIGNED_INT:f.UNSIGNED_INT,FLOAT:f.FLOAT,HALF_FLOAT:f.HALF_FLOAT_OES,UNSIGNED_INT_24_8:f.UNSIGNED_INT_24_8,UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_SHORT_4_4_4_4,UNSIGNED_SHORT_5_5_5_1:f.UNSIGNED_SHORT_5_5_5_1,UNSIGNED_SHORT_5_6_5:f.UNSIGNED_SHORT_5_6_5,toWebGLConstant:function(e,t){switch(e){case K.UNSIGNED_BYTE:return f.UNSIGNED_BYTE;case K.UNSIGNED_SHORT:return f.UNSIGNED_SHORT;case K.UNSIGNED_INT:return f.UNSIGNED_INT;case K.FLOAT:return f.FLOAT;case K.HALF_FLOAT:return t.webgl2?f.HALF_FLOAT:f.HALF_FLOAT_OES;case K.UNSIGNED_INT_24_8:return f.UNSIGNED_INT_24_8;case K.UNSIGNED_SHORT_4_4_4_4:return f.UNSIGNED_SHORT_4_4_4_4;case K.UNSIGNED_SHORT_5_5_5_1:return f.UNSIGNED_SHORT_5_5_5_1;case K.UNSIGNED_SHORT_5_6_5:return K.UNSIGNED_SHORT_5_6_5}},isPacked:function(e){return e===K.UNSIGNED_INT_24_8||e===K.UNSIGNED_SHORT_4_4_4_4||e===K.UNSIGNED_SHORT_5_5_5_1||e===K.UNSIGNED_SHORT_5_6_5},sizeInBytes:function(e){switch(e){case K.UNSIGNED_BYTE:return 1;case K.UNSIGNED_SHORT:case K.UNSIGNED_SHORT_4_4_4_4:case K.UNSIGNED_SHORT_5_5_5_1:case K.UNSIGNED_SHORT_5_6_5:case K.HALF_FLOAT:return 2;case K.UNSIGNED_INT:case K.FLOAT:case K.UNSIGNED_INT_24_8:return 4}},validate:function(e){return e===K.UNSIGNED_BYTE||e===K.UNSIGNED_SHORT||e===K.UNSIGNED_INT||e===K.FLOAT||e===K.HALF_FLOAT||e===K.UNSIGNED_INT_24_8||e===K.UNSIGNED_SHORT_4_4_4_4||e===K.UNSIGNED_SHORT_5_5_5_1||e===K.UNSIGNED_SHORT_5_6_5},getTypedArrayConstructor:function(e){let t=K.sizeInBytes(e);return t===Uint8Array.BYTES_PER_ELEMENT?Uint8Array:t===Uint16Array.BYTES_PER_ELEMENT?Uint16Array:t===Float32Array.BYTES_PER_ELEMENT&&e===K.FLOAT?Float32Array:Uint32Array}},y=Object.freeze(K),i={DEPTH_COMPONENT:f.DEPTH_COMPONENT,DEPTH_STENCIL:f.DEPTH_STENCIL,ALPHA:f.ALPHA,RED:f.RED,RG:f.RG,RGB:f.RGB,RGBA:f.RGBA,RED_INTEGER:f.RED_INTEGER,RG_INTEGER:f.RG_INTEGER,RGB_INTEGER:f.RGB_INTEGER,RGBA_INTEGER:f.RGBA_INTEGER,LUMINANCE:f.LUMINANCE,LUMINANCE_ALPHA:f.LUMINANCE_ALPHA,RGB_DXT1:f.COMPRESSED_RGB_S3TC_DXT1_EXT,RGBA_DXT1:f.COMPRESSED_RGBA_S3TC_DXT1_EXT,RGBA_DXT3:f.COMPRESSED_RGBA_S3TC_DXT3_EXT,RGBA_DXT5:f.COMPRESSED_RGBA_S3TC_DXT5_EXT,RGB_PVRTC_4BPPV1:f.COMPRESSED_RGB_PVRTC_4BPPV1_IMG,RGB_PVRTC_2BPPV1:f.COMPRESSED_RGB_PVRTC_2BPPV1_IMG,RGBA_PVRTC_4BPPV1:f.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG,RGBA_PVRTC_2BPPV1:f.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG,RGBA_ASTC:f.COMPRESSED_RGBA_ASTC_4x4_WEBGL,RGB_ETC1:f.COMPRESSED_RGB_ETC1_WEBGL,RGB8_ETC2:f.COMPRESSED_RGB8_ETC2,RGBA8_ETC2_EAC:f.COMPRESSED_RGBA8_ETC2_EAC,RGBA_BC7:f.COMPRESSED_RGBA_BPTC_UNORM,componentsLength:function(e){switch(e){case i.RGB:case i.RGB_INTEGER:return 3;case i.RGBA:case i.RGBA_INTEGER:return 4;case i.LUMINANCE_ALPHA:case i.RG:case i.RG_INTEGER:return 2;case i.ALPHA:case i.RED:case i.RED_INTEGER:case i.LUMINANCE:default:return 1}},validate:function(e){return e===i.DEPTH_COMPONENT||e===i.DEPTH_STENCIL||e===i.ALPHA||e===i.RED||e===i.RG||e===i.RGB||e===i.RGBA||e===i.RED_INTEGER||e===i.RG_INTEGER||e===i.RGB_INTEGER||e===i.RGBA_INTEGER||e===i.LUMINANCE||e===i.LUMINANCE_ALPHA||e===i.RGB_DXT1||e===i.RGBA_DXT1||e===i.RGBA_DXT3||e===i.RGBA_DXT5||e===i.RGB_PVRTC_4BPPV1||e===i.RGB_PVRTC_2BPPV1||e===i.RGBA_PVRTC_4BPPV1||e===i.RGBA_PVRTC_2BPPV1||e===i.RGBA_ASTC||e===i.RGB_ETC1||e===i.RGB8_ETC2||e===i.RGBA8_ETC2_EAC||e===i.RGBA_BC7},isColorFormat:function(e){return e===i.RED||e===i.ALPHA||e===i.RGB||e===i.RGBA||e===i.LUMINANCE||e===i.LUMINANCE_ALPHA},isDepthFormat:function(e){return e===i.DEPTH_COMPONENT||e===i.DEPTH_STENCIL},isCompressedFormat:function(e){return e===i.RGB_DXT1||e===i.RGBA_DXT1||e===i.RGBA_DXT3||e===i.RGBA_DXT5||e===i.RGB_PVRTC_4BPPV1||e===i.RGB_PVRTC_2BPPV1||e===i.RGBA_PVRTC_4BPPV1||e===i.RGBA_PVRTC_2BPPV1||e===i.RGBA_ASTC||e===i.RGB_ETC1||e===i.RGB8_ETC2||e===i.RGBA8_ETC2_EAC||e===i.RGBA_BC7},isDXTFormat:function(e){return e===i.RGB_DXT1||e===i.RGBA_DXT1||e===i.RGBA_DXT3||e===i.RGBA_DXT5},isPVRTCFormat:function(e){return e===i.RGB_PVRTC_4BPPV1||e===i.RGB_PVRTC_2BPPV1||e===i.RGBA_PVRTC_4BPPV1||e===i.RGBA_PVRTC_2BPPV1},isASTCFormat:function(e){return e===i.RGBA_ASTC},isETC1Format:function(e){return e===i.RGB_ETC1},isETC2Format:function(e){return e===i.RGB8_ETC2||e===i.RGBA8_ETC2_EAC},isBC7Format:function(e){return e===i.RGBA_BC7},compressedTextureSizeInBytes:function(e,t,r){switch(e){case i.RGB_DXT1:case i.RGBA_DXT1:case i.RGB_ETC1:case i.RGB8_ETC2:return Math.floor((t+3)/4)*Math.floor((r+3)/4)*8;case i.RGBA_DXT3:case i.RGBA_DXT5:case i.RGBA_ASTC:case i.RGBA8_ETC2_EAC:return Math.floor((t+3)/4)*Math.floor((r+3)/4)*16;case i.RGB_PVRTC_4BPPV1:case i.RGBA_PVRTC_4BPPV1:return Math.floor((Math.max(t,8)*Math.max(r,8)*4+7)/8);case i.RGB_PVRTC_2BPPV1:case i.RGBA_PVRTC_2BPPV1:return Math.floor((Math.max(t,16)*Math.max(r,8)*2+7)/8);case i.RGBA_BC7:return Math.ceil(t/4)*Math.ceil(r/4)*16;default:return 0}},textureSizeInBytes:function(e,t,r,n){let _=i.componentsLength(e);return y.isPacked(t)&&(_=1),_*y.sizeInBytes(t)*r*n},texture3DSizeInBytes:function(e,t,r,n,_){let o=i.componentsLength(e);return y.isPacked(t)&&(o=1),o*y.sizeInBytes(t)*r*n*_},alignmentInBytes:function(e,t,r){let n=i.textureSizeInBytes(e,t,r,1)%4;return 0===n?4:2===n?2:1},createTypedArray:function(e,t,r,n){return new(y.getTypedArrayConstructor(t))(i.componentsLength(e)*r*n)},flipY:function(e,t,r,n,_){if(1===_)return e;let o=i.createTypedArray(t,r,n,_),a=i.componentsLength(t),s=n*a;for(let t=0;t<_;++t){let r=t*n*a,i=(_-t-1)*n*a;for(let t=0;t<s;++t)o[i+t]=e[r+t]}return o},toInternalFormat:function(e,t,r){if(!r.webgl2)return e;if(e===i.DEPTH_STENCIL)return f.DEPTH24_STENCIL8;if(e===i.DEPTH_COMPONENT){if(t===y.UNSIGNED_SHORT)return f.DEPTH_COMPONENT16;if(t===y.UNSIGNED_INT)return f.DEPTH_COMPONENT24}if(t===y.FLOAT)switch(e){case i.RGBA:return f.RGBA32F;case i.RGB:return f.RGB32F;case i.RG:return f.RG32F;case i.RED:return f.R32F}if(t===y.HALF_FLOAT)switch(e){case i.RGBA:return f.RGBA16F;case i.RGB:return f.RGB16F;case i.RG:return f.RG16F;case i.RED:return f.R16F}if(t===y.UNSIGNED_BYTE)switch(e){case i.RGBA:return f.RGBA8;case i.RGB:return f.RGB8;case i.RG:return f.RG8;case i.RED:return f.R8}if(t===y.INT)switch(e){case i.RGBA_INTEGER:return f.RGBA32I;case i.RGB_INTEGER:return f.RGB32I;case i.RG_INTEGER:return f.RG32I;case i.RED_INTEGER:return f.R32I}if(t===y.UNSIGNED_INT)switch(e){case i.RGBA_INTEGER:return f.RGBA32UI;case i.RGB_INTEGER:return f.RGB32UI;case i.RG_INTEGER:return f.RG32UI;case i.RED_INTEGER:return f.R32UI}return e}},v=Object.freeze(i),or={VK_FORMAT_UNDEFINED:0,VK_FORMAT_R4G4_UNORM_PACK8:1,VK_FORMAT_R4G4B4A4_UNORM_PACK16:2,VK_FORMAT_B4G4R4A4_UNORM_PACK16:3,VK_FORMAT_R5G6B5_UNORM_PACK16:4,VK_FORMAT_B5G6R5_UNORM_PACK16:5,VK_FORMAT_R5G5B5A1_UNORM_PACK16:6,VK_FORMAT_B5G5R5A1_UNORM_PACK16:7,VK_FORMAT_A1R5G5B5_UNORM_PACK16:8,VK_FORMAT_R8_UNORM:9,VK_FORMAT_R8_SNORM:10,VK_FORMAT_R8_USCALED:11,VK_FORMAT_R8_SSCALED:12,VK_FORMAT_R8_UINT:13,VK_FORMAT_R8_SINT:14,VK_FORMAT_R8_SRGB:15,VK_FORMAT_R8G8_UNORM:16,VK_FORMAT_R8G8_SNORM:17,VK_FORMAT_R8G8_USCALED:18,VK_FORMAT_R8G8_SSCALED:19,VK_FORMAT_R8G8_UINT:20,VK_FORMAT_R8G8_SINT:21,VK_FORMAT_R8G8_SRGB:22,VK_FORMAT_R8G8B8_UNORM:23,VK_FORMAT_R8G8B8_SNORM:24,VK_FORMAT_R8G8B8_USCALED:25,VK_FORMAT_R8G8B8_SSCALED:26,VK_FORMAT_R8G8B8_UINT:27,VK_FORMAT_R8G8B8_SINT:28,VK_FORMAT_R8G8B8_SRGB:29,VK_FORMAT_B8G8R8_UNORM:30,VK_FORMAT_B8G8R8_SNORM:31,VK_FORMAT_B8G8R8_USCALED:32,VK_FORMAT_B8G8R8_SSCALED:33,VK_FORMAT_B8G8R8_UINT:34,VK_FORMAT_B8G8R8_SINT:35,VK_FORMAT_B8G8R8_SRGB:36,VK_FORMAT_R8G8B8A8_UNORM:37,VK_FORMAT_R8G8B8A8_SNORM:38,VK_FORMAT_R8G8B8A8_USCALED:39,VK_FORMAT_R8G8B8A8_SSCALED:40,VK_FORMAT_R8G8B8A8_UINT:41,VK_FORMAT_R8G8B8A8_SINT:42,VK_FORMAT_R8G8B8A8_SRGB:43,VK_FORMAT_B8G8R8A8_UNORM:44,VK_FORMAT_B8G8R8A8_SNORM:45,VK_FORMAT_B8G8R8A8_USCALED:46,VK_FORMAT_B8G8R8A8_SSCALED:47,VK_FORMAT_B8G8R8A8_UINT:48,VK_FORMAT_B8G8R8A8_SINT:49,VK_FORMAT_B8G8R8A8_SRGB:50,VK_FORMAT_A8B8G8R8_UNORM_PACK32:51,VK_FORMAT_A8B8G8R8_SNORM_PACK32:52,VK_FORMAT_A8B8G8R8_USCALED_PACK32:53,VK_FORMAT_A8B8G8R8_SSCALED_PACK32:54,VK_FORMAT_A8B8G8R8_UINT_PACK32:55,VK_FORMAT_A8B8G8R8_SINT_PACK32:56,VK_FORMAT_A8B8G8R8_SRGB_PACK32:57,VK_FORMAT_A2R10G10B10_UNORM_PACK32:58,VK_FORMAT_A2R10G10B10_SNORM_PACK32:59,VK_FORMAT_A2R10G10B10_USCALED_PACK32:60,VK_FORMAT_A2R10G10B10_SSCALED_PACK32:61,VK_FORMAT_A2R10G10B10_UINT_PACK32:62,VK_FORMAT_A2R10G10B10_SINT_PACK32:63,VK_FORMAT_A2B10G10R10_UNORM_PACK32:64,VK_FORMAT_A2B10G10R10_SNORM_PACK32:65,VK_FORMAT_A2B10G10R10_USCALED_PACK32:66,VK_FORMAT_A2B10G10R10_SSCALED_PACK32:67,VK_FORMAT_A2B10G10R10_UINT_PACK32:68,VK_FORMAT_A2B10G10R10_SINT_PACK32:69,VK_FORMAT_R16_UNORM:70,VK_FORMAT_R16_SNORM:71,VK_FORMAT_R16_USCALED:72,VK_FORMAT_R16_SSCALED:73,VK_FORMAT_R16_UINT:74,VK_FORMAT_R16_SINT:75,VK_FORMAT_R16_SFLOAT:76,VK_FORMAT_R16G16_UNORM:77,VK_FORMAT_R16G16_SNORM:78,VK_FORMAT_R16G16_USCALED:79,VK_FORMAT_R16G16_SSCALED:80,VK_FORMAT_R16G16_UINT:81,VK_FORMAT_R16G16_SINT:82,VK_FORMAT_R16G16_SFLOAT:83,VK_FORMAT_R16G16B16_UNORM:84,VK_FORMAT_R16G16B16_SNORM:85,VK_FORMAT_R16G16B16_USCALED:86,VK_FORMAT_R16G16B16_SSCALED:87,VK_FORMAT_R16G16B16_UINT:88,VK_FORMAT_R16G16B16_SINT:89,VK_FORMAT_R16G16B16_SFLOAT:90,VK_FORMAT_R16G16B16A16_UNORM:91,VK_FORMAT_R16G16B16A16_SNORM:92,VK_FORMAT_R16G16B16A16_USCALED:93,VK_FORMAT_R16G16B16A16_SSCALED:94,VK_FORMAT_R16G16B16A16_UINT:95,VK_FORMAT_R16G16B16A16_SINT:96,VK_FORMAT_R16G16B16A16_SFLOAT:97,VK_FORMAT_R32_UINT:98,VK_FORMAT_R32_SINT:99,VK_FORMAT_R32_SFLOAT:100,VK_FORMAT_R32G32_UINT:101,VK_FORMAT_R32G32_SINT:102,VK_FORMAT_R32G32_SFLOAT:103,VK_FORMAT_R32G32B32_UINT:104,VK_FORMAT_R32G32B32_SINT:105,VK_FORMAT_R32G32B32_SFLOAT:106,VK_FORMAT_R32G32B32A32_UINT:107,VK_FORMAT_R32G32B32A32_SINT:108,VK_FORMAT_R32G32B32A32_SFLOAT:109,VK_FORMAT_R64_UINT:110,VK_FORMAT_R64_SINT:111,VK_FORMAT_R64_SFLOAT:112,VK_FORMAT_R64G64_UINT:113,VK_FORMAT_R64G64_SINT:114,VK_FORMAT_R64G64_SFLOAT:115,VK_FORMAT_R64G64B64_UINT:116,VK_FORMAT_R64G64B64_SINT:117,VK_FORMAT_R64G64B64_SFLOAT:118,VK_FORMAT_R64G64B64A64_UINT:119,VK_FORMAT_R64G64B64A64_SINT:120,VK_FORMAT_R64G64B64A64_SFLOAT:121,VK_FORMAT_B10G11R11_UFLOAT_PACK32:122,VK_FORMAT_E5B9G9R9_UFLOAT_PACK32:123,VK_FORMAT_D16_UNORM:124,VK_FORMAT_X8_D24_UNORM_PACK32:125,VK_FORMAT_D32_SFLOAT:126,VK_FORMAT_S8_UINT:127,VK_FORMAT_D16_UNORM_S8_UINT:128,VK_FORMAT_D24_UNORM_S8_UINT:129,VK_FORMAT_D32_SFLOAT_S8_UINT:130,VK_FORMAT_BC1_RGB_UNORM_BLOCK:131,VK_FORMAT_BC1_RGB_SRGB_BLOCK:132,VK_FORMAT_BC1_RGBA_UNORM_BLOCK:133,VK_FORMAT_BC1_RGBA_SRGB_BLOCK:134,VK_FORMAT_BC2_UNORM_BLOCK:135,VK_FORMAT_BC2_SRGB_BLOCK:136,VK_FORMAT_BC3_UNORM_BLOCK:137,VK_FORMAT_BC3_SRGB_BLOCK:138,VK_FORMAT_BC4_UNORM_BLOCK:139,VK_FORMAT_BC4_SNORM_BLOCK:140,VK_FORMAT_BC5_UNORM_BLOCK:141,VK_FORMAT_BC5_SNORM_BLOCK:142,VK_FORMAT_BC6H_UFLOAT_BLOCK:143,VK_FORMAT_BC6H_SFLOAT_BLOCK:144,VK_FORMAT_BC7_UNORM_BLOCK:145,VK_FORMAT_BC7_SRGB_BLOCK:146,VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK:147,VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK:148,VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK:149,VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK:150,VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK:151,VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK:152,VK_FORMAT_EAC_R11_UNORM_BLOCK:153,VK_FORMAT_EAC_R11_SNORM_BLOCK:154,VK_FORMAT_EAC_R11G11_UNORM_BLOCK:155,VK_FORMAT_EAC_R11G11_SNORM_BLOCK:156,VK_FORMAT_ASTC_4x4_UNORM_BLOCK:157,VK_FORMAT_ASTC_4x4_SRGB_BLOCK:158,VK_FORMAT_ASTC_5x4_UNORM_BLOCK:159,VK_FORMAT_ASTC_5x4_SRGB_BLOCK:160,VK_FORMAT_ASTC_5x5_UNORM_BLOCK:161,VK_FORMAT_ASTC_5x5_SRGB_BLOCK:162,VK_FORMAT_ASTC_6x5_UNORM_BLOCK:163,VK_FORMAT_ASTC_6x5_SRGB_BLOCK:164,VK_FORMAT_ASTC_6x6_UNORM_BLOCK:165,VK_FORMAT_ASTC_6x6_SRGB_BLOCK:166,VK_FORMAT_ASTC_8x5_UNORM_BLOCK:167,VK_FORMAT_ASTC_8x5_SRGB_BLOCK:168,VK_FORMAT_ASTC_8x6_UNORM_BLOCK:169,VK_FORMAT_ASTC_8x6_SRGB_BLOCK:170,VK_FORMAT_ASTC_8x8_UNORM_BLOCK:171,VK_FORMAT_ASTC_8x8_SRGB_BLOCK:172,VK_FORMAT_ASTC_10x5_UNORM_BLOCK:173,VK_FORMAT_ASTC_10x5_SRGB_BLOCK:174,VK_FORMAT_ASTC_10x6_UNORM_BLOCK:175,VK_FORMAT_ASTC_10x6_SRGB_BLOCK:176,VK_FORMAT_ASTC_10x8_UNORM_BLOCK:177,VK_FORMAT_ASTC_10x8_SRGB_BLOCK:178,VK_FORMAT_ASTC_10x10_UNORM_BLOCK:179,VK_FORMAT_ASTC_10x10_SRGB_BLOCK:180,VK_FORMAT_ASTC_12x10_UNORM_BLOCK:181,VK_FORMAT_ASTC_12x10_SRGB_BLOCK:182,VK_FORMAT_ASTC_12x12_UNORM_BLOCK:183,VK_FORMAT_ASTC_12x12_SRGB_BLOCK:184,VK_FORMAT_G8B8G8R8_422_UNORM:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM:1000156006,VK_FORMAT_R10X6_UNORM_PACK16:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16:1000156016,VK_FORMAT_R12X4_UNORM_PACK16:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM:1000156033,VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG:1000054e3,VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG:1000054001,VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG:1000054002,VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG:1000054003,VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG:1000054004,VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG:1000054005,VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG:1000054006,VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG:1000054007,VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT:1000066e3,VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT:1000066001,VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT:1000066002,VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT:1000066003,VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT:1000066004,VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT:1000066005,VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT:1000066006,VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT:1000066007,VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT:1000066008,VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT:1000066009,VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT:1000066010,VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT:1000066011,VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT:1000066012,VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT:1000066013,VK_FORMAT_G8B8G8R8_422_UNORM_KHR:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM_KHR:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM_KHR:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM_KHR:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM_KHR:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM_KHR:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM_KHR:1000156006,VK_FORMAT_R10X6_UNORM_PACK16_KHR:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16_KHR:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16_KHR:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16_KHR:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16_KHR:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16_KHR:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16_KHR:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16_KHR:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16_KHR:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16_KHR:1000156016,VK_FORMAT_R12X4_UNORM_PACK16_KHR:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16_KHR:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16_KHR:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16_KHR:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16_KHR:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16_KHR:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16_KHR:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16_KHR:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16_KHR:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16_KHR:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM_KHR:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM_KHR:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM_KHR:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM_KHR:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM_KHR:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM_KHR:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM_KHR:1000156033},Ie=Object.freeze(or);function ir(){return{vkFormat:0,typeSize:1,pixelWidth:0,pixelHeight:0,pixelDepth:0,layerCount:0,faceCount:1,levelCount:0,supercompressionScheme:0,levels:[],dataFormatDescriptor:[{vendorId:0,descriptorType:0,versionNumber:2,colorModel:0,colorPrimaries:1,transferFunction:2,flags:0,texelBlockDimension:[0,0,0,0],bytesPlane:[0,0,0,0,0,0,0,0],samples:[]}],keyValue:{},globalData:null}}var fe=class{constructor(e,t,r,n){this._dataView=void 0,this._littleEndian=void 0,this._offset=void 0,this._dataView=new DataView(e.buffer,e.byteOffset+t,r),this._littleEndian=n,this._offset=0}_nextUint8(){let e=this._dataView.getUint8(this._offset);return this._offset+=1,e}_nextUint16(){let e=this._dataView.getUint16(this._offset,this._littleEndian);return this._offset+=2,e}_nextUint32(){let e=this._dataView.getUint32(this._offset,this._littleEndian);return this._offset+=4,e}_nextUint64(){let e=this._dataView.getUint32(this._offset,this._littleEndian)+2**32*this._dataView.getUint32(this._offset+4,this._littleEndian);return this._offset+=8,e}_nextInt32(){let e=this._dataView.getInt32(this._offset,this._littleEndian);return this._offset+=4,e}_nextUint8Array(e){let t=new Uint8Array(this._dataView.buffer,this._dataView.byteOffset+this._offset,e);return this._offset+=e,t}_skip(e){return this._offset+=e,this}_scan(e,t=0){let r=this._offset,n=0;for(;this._dataView.getUint8(this._offset)!==t&&n<e;)n++,this._offset++;return n<e&&this._offset++,new Uint8Array(this._dataView.buffer,this._dataView.byteOffset+r,n)}},Fr=new Uint8Array([0]),H=[171,75,84,88,32,50,48,187,13,10,26,10];function Rn(e){return(new TextDecoder).decode(e)}function an(e){let t=new Uint8Array(e.buffer,e.byteOffset,H.length);if(t[0]!==H[0]||t[1]!==H[1]||t[2]!==H[2]||t[3]!==H[3]||t[4]!==H[4]||t[5]!==H[5]||t[6]!==H[6]||t[7]!==H[7]||t[8]!==H[8]||t[9]!==H[9]||t[10]!==H[10]||t[11]!==H[11])throw new Error("Missing KTX 2.0 identifier.");let r=ir(),n=17*Uint32Array.BYTES_PER_ELEMENT,_=new fe(e,H.length,n,!0);r.vkFormat=_._nextUint32(),r.typeSize=_._nextUint32(),r.pixelWidth=_._nextUint32(),r.pixelHeight=_._nextUint32(),r.pixelDepth=_._nextUint32(),r.layerCount=_._nextUint32(),r.faceCount=_._nextUint32(),r.levelCount=_._nextUint32(),r.supercompressionScheme=_._nextUint32();let i=_._nextUint32(),o=_._nextUint32(),a=_._nextUint32(),s=_._nextUint32(),u=_._nextUint64(),R=_._nextUint64(),c=3*Math.max(r.levelCount,1)*8,f=new fe(e,H.length+n,c,!0);for(let t=0,n=Math.max(r.levelCount,1);t<n;t++)r.levels.push({levelData:new Uint8Array(e.buffer,e.byteOffset+f._nextUint64(),f._nextUint64()),uncompressedByteLength:f._nextUint64()});let T=new fe(e,i,o,!0);T._skip(4);let A=T._nextUint16(),l=T._nextUint16(),O=T._nextUint16(),p=T._nextUint16(),B={vendorId:A,descriptorType:l,versionNumber:O,colorModel:T._nextUint8(),colorPrimaries:T._nextUint8(),transferFunction:T._nextUint8(),flags:T._nextUint8(),texelBlockDimension:[T._nextUint8(),T._nextUint8(),T._nextUint8(),T._nextUint8()],bytesPlane:[T._nextUint8(),T._nextUint8(),T._nextUint8(),T._nextUint8(),T._nextUint8(),T._nextUint8(),T._nextUint8(),T._nextUint8()],samples:[]},C=(p/4-6)/4;for(let e=0;e<C;e++){let t={bitOffset:T._nextUint16(),bitLength:T._nextUint8(),channelType:T._nextUint8(),samplePosition:[T._nextUint8(),T._nextUint8(),T._nextUint8(),T._nextUint8()],sampleLower:Number.NEGATIVE_INFINITY,sampleUpper:Number.POSITIVE_INFINITY};64&t.channelType?(t.sampleLower=T._nextInt32(),t.sampleUpper=T._nextInt32()):(t.sampleLower=T._nextUint32(),t.sampleUpper=T._nextUint32()),B.samples[e]=t}r.dataFormatDescriptor.length=0,r.dataFormatDescriptor.push(B);let G=new fe(e,a,s,!0);for(;G._offset<s;){let e=G._nextUint32(),t=G._scan(e),n=Rn(t);if(r.keyValue[n]=G._nextUint8Array(e-t.byteLength-1),n.match(/^ktx/i)){let e=Rn(r.keyValue[n]);r.keyValue[n]=e.substring(0,e.lastIndexOf("\0"))}let _=e%4?4-e%4:0;G._skip(_)}if(R<=0)return r;let M=new fe(e,u,R,!0),K=M._nextUint16(),h=M._nextUint16(),d=M._nextUint32(),F=M._nextUint32(),N=M._nextUint32(),y=M._nextUint32(),v=[];for(let e=0,t=Math.max(r.levelCount,1);e<t;e++)v.push({imageFlags:M._nextUint32(),rgbSliceByteOffset:M._nextUint32(),rgbSliceByteLength:M._nextUint32(),alphaSliceByteOffset:M._nextUint32(),alphaSliceByteLength:M._nextUint32()});let E=u+M._offset,P=E+d,S=P+F,V=S+N,m=new Uint8Array(e.buffer,e.byteOffset+E,d),U=new Uint8Array(e.buffer,e.byteOffset+P,F),g=new Uint8Array(e.buffer,e.byteOffset+S,N),L=new Uint8Array(e.buffer,e.byteOffset+V,y);return r.globalData={endpointCount:K,selectorCount:h,imageDescs:v,endpointsData:m,selectorsData:U,tablesData:g,extendedData:L},r}var be,An=sr(cn(),1),Tn=["positiveX","negativeX","positiveY","negativeY","positiveZ","negativeZ"],un=163,fn=166;function Rr(e,t){sn.typeOf.object("transcoderModule",be);let r,n=e.ktx2Buffer,_=e.supportedTargetFormats;try{r=an(n)}catch{throw new se("Invalid KTX2 file.")}if(0!==r.layerCount)throw new se("KTX2 texture arrays are not supported.");if(0!==r.pixelDepth)throw new se("KTX2 3D textures are unsupported.");let i=r.dataFormatDescriptor[0],o=new Array(r.levelCount);return 0!==r.vkFormat||i.colorModel!==un&&i.colorModel!==fn?(t.push(n.buffer),ar(r,o)):cr(n,r,_,be,t,o),o}function ar(e,t){let r,n=e.vkFormat===Ie.VK_FORMAT_R8G8B8_SRGB?v.RGB:v.RGBA;e.vkFormat===Ie.VK_FORMAT_R8G8B8A8_UNORM?r=y.UNSIGNED_BYTE:e.vkFormat===Ie.VK_FORMAT_R16G16B16A16_SFLOAT?r=y.HALF_FLOAT:e.vkFormat===Ie.VK_FORMAT_R32G32B32A32_SFLOAT&&(r=y.FLOAT);for(let _=0;_<e.levels.length;++_){let i={};t[_]=i;let o=e.levels[_].levelData,a=e.pixelWidth>>_,s=e.pixelHeight>>_,u=a*s*v.componentsLength(n);for(let t=0;t<e.faceCount;++t){let _,R=o.byteOffset+u*e.typeSize*t;_=De(r)&&1!==y.sizeInBytes(r)?2===y.sizeInBytes(r)?new Uint16Array(o.buffer,R,u):new Float32Array(o.buffer,R,u):new Uint8Array(o.buffer,R,u),i[Tn[t]]={internalFormat:n,datatype:r,width:a,height:s,levelBuffer:_}}}}function cr(e,t,r,n,_,i){let o=new n.KTX2File(e),a=o.getWidth(),s=o.getHeight(),u=o.getLevels(),R=o.getHasAlpha();if(!(a>0&&s>0&&u>0))throw o.close(),o.delete(),new se("Invalid KTX2 file");let c,f,T=t.dataFormatDescriptor[0],A=n.transcoder_texture_format;if(T.colorModel===un)if(r.etc)c=R?v.RGBA8_ETC2_EAC:v.RGB8_ETC2,f=R?A.cTFETC2_RGBA:A.cTFETC1_RGB;else if(r.etc1&&!R)c=v.RGB_ETC1,f=A.cTFETC1_RGB;else if(r.s3tc)c=R?v.RGBA_DXT5:v.RGB_DXT1,f=R?A.cTFBC3_RGBA:A.cTFBC1_RGB;else if(r.pvrtc)c=R?v.RGBA_PVRTC_4BPPV1:v.RGB_PVRTC_4BPPV1,f=R?A.cTFPVRTC1_4_RGBA:A.cTFPVRTC1_4_RGB;else if(r.astc)c=v.RGBA_ASTC,f=A.cTFASTC_4x4_RGBA;else{if(!r.bc7)throw new se("No transcoding format target available for ETC1S compressed ktx2.");c=v.RGBA_BC7,f=A.cTFBC7_RGBA}else if(T.colorModel===fn)if(r.astc)c=v.RGBA_ASTC,f=A.cTFASTC_4x4_RGBA;else if(r.bc7)c=v.RGBA_BC7,f=A.cTFBC7_RGBA;else if(r.s3tc)c=R?v.RGBA_DXT5:v.RGB_DXT1,f=R?A.cTFBC3_RGBA:A.cTFBC1_RGB;else if(r.etc)c=R?v.RGBA8_ETC2_EAC:v.RGB8_ETC2,f=R?A.cTFETC2_RGBA:A.cTFETC1_RGB;else if(r.etc1&&!R)c=v.RGB_ETC1,f=A.cTFETC1_RGB;else{if(!r.pvrtc)throw new se("No transcoding format target available for UASTC compressed ktx2.");c=R?v.RGBA_PVRTC_4BPPV1:v.RGB_PVRTC_4BPPV1,f=R?A.cTFPVRTC1_4_RGBA:A.cTFPVRTC1_4_RGB}if(!o.startTranscoding())throw o.close(),o.delete(),new se("startTranscoding() failed");for(let e=0;e<t.levels.length;++e){let r={};i[e]=r,a=t.pixelWidth>>e,s=t.pixelHeight>>e;let n=o.getImageTranscodedSizeInBytes(e,0,0,f.value),u=new Uint8Array(n),R=o.transcodeImage(u,e,0,0,f.value,0,-1,-1);if(!De(R))throw new se("transcodeImage() failed.");_.push(u.buffer),r[Tn[0]]={internalFormat:c,width:a,height:s,levelBuffer:u}}return o.close(),o.delete(),i}async function Ar(e,t){let r=e.webAssemblyConfig,n=An.default??self.BASIS;return(be=De(r.wasmBinaryFile)?await n(r):await n()).initializeBasis(),!0}function Tr(e,t){let r=e.webAssemblyConfig;return De(r)?Ar(e,t):Rr(e,t)}var Ur=on(Tr);export{Ur as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see upsampleQuantizedTerrainMesh.js.LICENSE.txt */
|
|
2
|
+
import{a as be,b as Ne}from"./chunk-BJAB7QAF.js";import{a as Ae}from"./chunk-D2NFCOGE.js";import{a as ue}from"./chunk-SCO7TMKT.js";import{a as ee}from"./chunk-VHZAK4GN.js";import"./chunk-ET7KY3BS.js";import"./chunk-CUP6SILZ.js";import"./chunk-HSJ6GSLC.js";import"./chunk-SXKYZMEL.js";import{a as Ve}from"./chunk-T6Q6HX5J.js";import{d as de}from"./chunk-XQIJGAVD.js";import{i as Se}from"./chunk-UTYWXSQT.js";import"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import"./chunk-5G23AKP3.js";import{a as A,b as Ie,c as Z,d as Ce}from"./chunk-KWAHJ72S.js";import{a as N}from"./chunk-MKDADUG3.js";import{a as V,b as q}from"./chunk-NOIUI5SY.js";import{e as f}from"./chunk-XRRBRTKL.js";var ne={clipTriangleAtAxisAlignedThreshold:function(e,t,i,n,s,r){if(!f(e))throw new V("threshold is required.");if(!f(t))throw new V("keepAbove is required.");if(!f(i))throw new V("u0 is required.");if(!f(n))throw new V("u1 is required.");if(!f(s))throw new V("u2 is required.");let h,u,o;f(r)?r.length=0:r=[],t?(h=i<e,u=n<e,o=s<e):(h=i>e,u=n>e,o=s>e);let p,l,d,a,m,c,g=h+u+o;return 1===g?h?(p=(e-i)/(n-i),l=(e-i)/(s-i),r.push(1),r.push(2),1!==l&&(r.push(-1),r.push(0),r.push(2),r.push(l)),1!==p&&(r.push(-1),r.push(0),r.push(1),r.push(p))):u?(d=(e-n)/(s-n),a=(e-n)/(i-n),r.push(2),r.push(0),1!==a&&(r.push(-1),r.push(1),r.push(0),r.push(a)),1!==d&&(r.push(-1),r.push(1),r.push(2),r.push(d))):o&&(m=(e-s)/(i-s),c=(e-s)/(n-s),r.push(0),r.push(1),1!==c&&(r.push(-1),r.push(2),r.push(1),r.push(c)),1!==m&&(r.push(-1),r.push(2),r.push(0),r.push(m))):2===g?h||i===e?u||n===e?!o&&s!==e&&(l=(e-i)/(s-i),d=(e-n)/(s-n),r.push(2),r.push(-1),r.push(0),r.push(2),r.push(l),r.push(-1),r.push(1),r.push(2),r.push(d)):(c=(e-s)/(n-s),p=(e-i)/(n-i),r.push(1),r.push(-1),r.push(2),r.push(1),r.push(c),r.push(-1),r.push(0),r.push(1),r.push(p)):(a=(e-n)/(i-n),m=(e-s)/(i-s),r.push(0),r.push(-1),r.push(1),r.push(0),r.push(a),r.push(-1),r.push(2),r.push(0),r.push(m)):3!==g&&(r.push(0),r.push(1),r.push(2)),r},computeBarycentricCoordinates:function(e,t,i,n,s,r,h,u,o){if(!f(e))throw new V("x is required.");if(!f(t))throw new V("y is required.");if(!f(i))throw new V("x1 is required.");if(!f(n))throw new V("y1 is required.");if(!f(s))throw new V("x2 is required.");if(!f(r))throw new V("y2 is required.");if(!f(h))throw new V("x3 is required.");if(!f(u))throw new V("y3 is required.");let p=i-h,l=h-s,d=r-u,a=n-u,m=1/(d*p+l*a),c=t-u,g=e-h,w=(d*g+l*c)*m,x=(-a*g+p*c)*m,y=1-w-x;return f(o)?(o.x=w,o.y=x,o.z=y,o):new A(w,x,y)},computeLineSegmentLineSegmentIntersection:function(e,t,i,n,s,r,h,u,o){q.typeOf.number("x00",e),q.typeOf.number("y00",t),q.typeOf.number("x01",i),q.typeOf.number("y01",n),q.typeOf.number("x10",s),q.typeOf.number("y10",r),q.typeOf.number("x11",h),q.typeOf.number("y11",u);let p=(u-r)*(i-e)-(h-s)*(n-t);if(0===p)return;let l=((h-s)*(t-r)-(u-r)*(e-s))/p,d=((i-e)*(t-r)-(n-t)*(e-s))/p;return l>=0&&l<=1&&d>=0&&d<=1?(f(o)||(o=new Z),o.x=e+l*(i-e),o.y=t+l*(n-t),o):void 0}},ie=ne,a=32767,z=a/2|0,Me=[],ze=[],Xe=[],te=new Ie,E=new A,Ke=[],We=[],Ye=[],Le=[],_e=[],Je=new A,Qe=new de,Ze=new ue,Ge=new Z,$e=new A;function je(e,t){let i=e.isEastChild,n=e.isNorthChild,s=i?z:0,r=i?a:z,h=n?z:0,u=n?a:z,o=Ke,p=We,f=Ye,l=_e;o.length=0,p.length=0,f.length=0,l.length=0;let d=Le;d.length=0;let c={},g=e.vertices,w=e.indices;w=w.subarray(0,e.indexCountWithoutSkirts);let x,y,S,V,B,I=Ne.clone(e.encoding),v=I.hasVertexNormals,b=0,q=e.vertexCountWithoutSkirts,T=e.minimumHeight,k=e.maximumHeight,C=new Array(q),j=new Array(q),K=new Array(q),O=v?new Array(2*q):void 0;for(y=0,S=0;y<q;++y,S+=2){let e=I.decodeTextureCoordinates(g,y,Ge);if(x=I.decodeHeight(g,y),V=N.clamp(e.x*a|0,0,a),B=N.clamp(e.y*a|0,0,a),K[y]=N.clamp((x-T)/(k-T)*a|0,0,a),V<20&&(V=0),B<20&&(B=0),a-V<20&&(V=a),a-B<20&&(B=a),C[y]=V,j[y]=B,v){let e=I.getOctEncodedNormal(g,y,$e);O[S]=e.x,O[S+1]=e.y}(i&&V>=z||!i&&V<=z)&&(n&&B>=z||!n&&B<=z)&&(c[y]=b,o.push(V),p.push(B),f.push(K[y]),v&&(l.push(O[S]),l.push(O[S+1])),++b)}let H=[];H.push(new m),H.push(new m),H.push(new m);let R,U,X=[];for(X.push(new m),X.push(new m),X.push(new m),y=0;y<w.length;y+=3){let e=w[y],t=w[y+1],s=w[y+2],r=C[e],h=C[t],u=C[s];H[0].initializeIndexed(C,j,K,O,e),H[1].initializeIndexed(C,j,K,O,t),H[2].initializeIndexed(C,j,K,O,s);let a=ie.clipTriangleAtAxisAlignedThreshold(z,i,r,h,u,Me);R=0,!(R>=a.length)&&(R=X[0].initializeFromClipResult(a,R,H),!(R>=a.length)&&(R=X[1].initializeFromClipResult(a,R,H),!(R>=a.length)&&(R=X[2].initializeFromClipResult(a,R,H),U=ie.clipTriangleAtAxisAlignedThreshold(z,n,X[0].getV(),X[1].getV(),X[2].getV(),ze),Oe(o,p,f,l,d,c,U,X,v),R<a.length&&(X[2].clone(X[1]),X[2].initializeFromClipResult(a,R,H),U=ie.clipTriangleAtAxisAlignedThreshold(z,n,X[0].getV(),X[1].getV(),X[2].getV(),ze),Oe(o,p,f,l,d,c,U,X,v)))))}let W=i?-a:0,Y=n?-a:0,Z=[],F=[],G=[],J=[],L=Number.MAX_VALUE,M=-L,D=Xe;D.length=0;let P=Ce.clone(e.ellipsoid),Q=Se.clone(e.childRectangle),_=Q.north,$=Q.south,ee=Q.east,ne=Q.west;for(ee<ne&&(ee+=N.TWO_PI),y=0;y<o.length;++y)V=Math.round(o[y]),V<=s?(Z.push(y),V=0):V>=r?(G.push(y),V=a):V=2*V+W,o[y]=V,B=Math.round(p[y]),B<=h?(F.push(y),B=0):B>=u?(J.push(y),B=a):B=2*B+Y,p[y]=B,x=N.lerp(T,k,f[y]/a),x<L&&(L=x),x>M&&(M=x),f[y]=x,te.longitude=N.lerp(ne,ee,V/a),te.latitude=N.lerp($,_,B/a),te.height=x,P.cartographicToCartesian(te,E),D.push(E.x),D.push(E.y),D.push(E.z);let se=de.fromVertices(D,A.ZERO,3,Qe),re=ue.fromRectangle(Q,L,M,P,Ze),he=new be(P).computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid(se.center,D,3,se.center,L,Je),oe=M-L,pe=new Uint16Array(o.length+p.length+f.length);for(y=0;y<o.length;++y)pe[y]=o[y];let fe=o.length;for(y=0;y<p.length;++y)pe[fe+y]=p[y];for(fe+=p.length,y=0;y<f.length;++y)pe[fe+y]=a*(f[y]-L)/oe;let le,ae=Ve.createTypedArray(o.length,d);if(v){let e=new Uint8Array(l);t.push(pe.buffer,ae.buffer,e.buffer),le=e.buffer}else t.push(pe.buffer,ae.buffer);return{vertices:pe.buffer,encodedNormals:le,indices:ae.buffer,minimumHeight:L,maximumHeight:M,westIndices:Z,southIndices:F,eastIndices:G,northIndices:J,boundingSphere:se,orientedBoundingBox:re,horizonOcclusionPoint:he}}function m(){this.vertexBuffer=void 0,this.index=void 0,this.first=void 0,this.second=void 0,this.ratio=void 0}m.prototype.clone=function(e){return f(e)||(e=new m),e.uBuffer=this.uBuffer,e.vBuffer=this.vBuffer,e.heightBuffer=this.heightBuffer,e.normalBuffer=this.normalBuffer,e.index=this.index,e.first=this.first,e.second=this.second,e.ratio=this.ratio,e},m.prototype.initializeIndexed=function(e,t,i,n,s){this.uBuffer=e,this.vBuffer=t,this.heightBuffer=i,this.normalBuffer=n,this.index=s,this.first=void 0,this.second=void 0,this.ratio=void 0},m.prototype.initializeFromClipResult=function(e,t,i){let n=t+1;return-1!==e[t]?i[e[t]].clone(this):(this.vertexBuffer=void 0,this.index=void 0,this.first=i[e[n]],++n,this.second=i[e[n]],++n,this.ratio=e[n],++n),n},m.prototype.getKey=function(){return this.isIndexed()?this.index:JSON.stringify({first:this.first.getKey(),second:this.second.getKey(),ratio:this.ratio})},m.prototype.isIndexed=function(){return f(this.index)},m.prototype.getH=function(){return f(this.index)?this.heightBuffer[this.index]:N.lerp(this.first.getH(),this.second.getH(),this.ratio)},m.prototype.getU=function(){return f(this.index)?this.uBuffer[this.index]:N.lerp(this.first.getU(),this.second.getU(),this.ratio)},m.prototype.getV=function(){return f(this.index)?this.vBuffer[this.index]:N.lerp(this.first.getV(),this.second.getV(),this.ratio)};var K=new Z,oe=-1,en=[new A,new A],nn=[new A,new A];function Te(e,t){++oe;let i=en[oe],n=nn[oe];return i=ee.octDecode(e.first.getNormalX(),e.first.getNormalY(),i),n=ee.octDecode(e.second.getNormalX(),e.second.getNormalY(),n),E=A.lerp(i,n,e.ratio,E),A.normalize(E,E),ee.octEncode(E,t),--oe,t}m.prototype.getNormalX=function(){return f(this.index)?this.normalBuffer[2*this.index]:(K=Te(this,K)).x},m.prototype.getNormalY=function(){return f(this.index)?this.normalBuffer[2*this.index+1]:(K=Te(this,K)).y};var S=[];function Oe(e,t,i,n,s,r,h,u,o){if(0===h.length)return;let p=0,l=0;for(;l<h.length;)l=S[p++].initializeFromClipResult(h,l,u);for(let s=0;s<p;++s){let h=S[s];if(h.isIndexed())h.newIndex=r[h.index],h.uBuffer=e,h.vBuffer=t,h.heightBuffer=i,o&&(h.normalBuffer=n);else{let s=h.getKey();if(f(r[s]))h.newIndex=r[s];else{let u=e.length;e.push(h.getU()),t.push(h.getV()),i.push(h.getH()),o&&(n.push(h.getNormalX()),n.push(h.getNormalY())),h.newIndex=u,r[s]=u}}}3===p?(s.push(S[0].newIndex),s.push(S[1].newIndex),s.push(S[2].newIndex)):4===p&&(s.push(S[0].newIndex),s.push(S[1].newIndex),s.push(S[2].newIndex),s.push(S[0].newIndex),s.push(S[2].newIndex),s.push(S[3].newIndex))}S.push(new m),S.push(new m),S.push(new m),S.push(new m);var An=Ae(je);export{An as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.135.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see upsampleVerticesFromCesium3DTilesTerrain.js.LICENSE.txt */
|
|
2
|
+
import{a as f}from"./chunk-LPJEXZWM.js";import"./chunk-YY6GMQGO.js";import"./chunk-BJAB7QAF.js";import{a as u}from"./chunk-D2NFCOGE.js";import"./chunk-XBWRWNYZ.js";import"./chunk-SCO7TMKT.js";import"./chunk-VHZAK4GN.js";import"./chunk-ET7KY3BS.js";import"./chunk-CUP6SILZ.js";import"./chunk-HSJ6GSLC.js";import"./chunk-SXKYZMEL.js";import"./chunk-T6Q6HX5J.js";import"./chunk-XQIJGAVD.js";import"./chunk-UTYWXSQT.js";import"./chunk-RCHWDG3R.js";import"./chunk-4WJUWBRK.js";import"./chunk-5G23AKP3.js";import"./chunk-KWAHJ72S.js";import"./chunk-MKDADUG3.js";import"./chunk-NOIUI5SY.js";import"./chunk-XRRBRTKL.js";function h(i,t){let n=f.upsampleMesh(i),o=n.vertices.buffer,u=n.indices.buffer,e=n.westIndicesSouthToNorth.buffer,r=n.southIndicesEastToWest.buffer,s=n.eastIndicesNorthToSouth.buffer,h=n.northIndicesWestToEast.buffer;return t.push(o,u,e,r,s,h),{verticesBuffer:o,indicesBuffer:u,vertexCountWithoutSkirts:n.vertexCountWithoutSkirts,indexCountWithoutSkirts:n.indexCountWithoutSkirts,encoding:n.encoding,westIndicesBuffer:e,southIndicesBuffer:r,eastIndicesBuffer:s,northIndicesBuffer:h,minimumHeight:n.minimumHeight,maximumHeight:n.maximumHeight,boundingSphere:n.boundingSphere3D,orientedBoundingBox:n.orientedBoundingBox,horizonOcclusionPoint:n.horizonOcclusionPoint}}var I=u(h);export{I as default};
|