potato-map3d-ui2 0.0.6
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/.vscode/extensions.json +3 -0
- package/README.md +18 -0
- package/components/map3dt/index.vue.d.ts +22 -0
- package/components/map3dt/useMap.d.ts +13 -0
- package/components/zoomIn/index.vue.d.ts +14 -0
- package/components/zoomOut/index.vue.d.ts +14 -0
- package/env.d.ts +7 -0
- package/index.html +17 -0
- package/package.json +31 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/public/Cesium/Assets/Images/bing_maps_credit.png +0 -0
- package/public/Cesium/Assets/Images/cesium_credit.png +0 -0
- package/public/Cesium/Assets/Images/google_earth_credit.png +0 -0
- package/public/Cesium/Assets/Images/ion-credit.png +0 -0
- package/public/Cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/public/Cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/public/Cesium/Assets/Textures/maki/airfield.png +0 -0
- package/public/Cesium/Assets/Textures/maki/airport.png +0 -0
- package/public/Cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/public/Cesium/Assets/Textures/maki/america-football.png +0 -0
- package/public/Cesium/Assets/Textures/maki/art-gallery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bakery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bank.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bar.png +0 -0
- package/public/Cesium/Assets/Textures/maki/baseball.png +0 -0
- package/public/Cesium/Assets/Textures/maki/basketball.png +0 -0
- package/public/Cesium/Assets/Textures/maki/beer.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bicycle.png +0 -0
- package/public/Cesium/Assets/Textures/maki/building.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bus.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cafe.png +0 -0
- package/public/Cesium/Assets/Textures/maki/camera.png +0 -0
- package/public/Cesium/Assets/Textures/maki/campsite.png +0 -0
- package/public/Cesium/Assets/Textures/maki/car.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cemetery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cesium.png +0 -0
- package/public/Cesium/Assets/Textures/maki/chemist.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cinema.png +0 -0
- package/public/Cesium/Assets/Textures/maki/circle-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/circle.png +0 -0
- package/public/Cesium/Assets/Textures/maki/city.png +0 -0
- package/public/Cesium/Assets/Textures/maki/clothing-store.png +0 -0
- package/public/Cesium/Assets/Textures/maki/college.png +0 -0
- package/public/Cesium/Assets/Textures/maki/commercial.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cricket.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cross.png +0 -0
- package/public/Cesium/Assets/Textures/maki/dam.png +0 -0
- package/public/Cesium/Assets/Textures/maki/danger.png +0 -0
- package/public/Cesium/Assets/Textures/maki/disability.png +0 -0
- package/public/Cesium/Assets/Textures/maki/dog-park.png +0 -0
- package/public/Cesium/Assets/Textures/maki/embassy.png +0 -0
- package/public/Cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/public/Cesium/Assets/Textures/maki/entrance.png +0 -0
- package/public/Cesium/Assets/Textures/maki/farm.png +0 -0
- package/public/Cesium/Assets/Textures/maki/fast-food.png +0 -0
- package/public/Cesium/Assets/Textures/maki/ferry.png +0 -0
- package/public/Cesium/Assets/Textures/maki/fire-station.png +0 -0
- package/public/Cesium/Assets/Textures/maki/fuel.png +0 -0
- package/public/Cesium/Assets/Textures/maki/garden.png +0 -0
- package/public/Cesium/Assets/Textures/maki/gift.png +0 -0
- package/public/Cesium/Assets/Textures/maki/golf.png +0 -0
- package/public/Cesium/Assets/Textures/maki/grocery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/hairdresser.png +0 -0
- package/public/Cesium/Assets/Textures/maki/harbor.png +0 -0
- package/public/Cesium/Assets/Textures/maki/heart.png +0 -0
- package/public/Cesium/Assets/Textures/maki/heliport.png +0 -0
- package/public/Cesium/Assets/Textures/maki/hospital.png +0 -0
- package/public/Cesium/Assets/Textures/maki/ice-cream.png +0 -0
- package/public/Cesium/Assets/Textures/maki/industrial.png +0 -0
- package/public/Cesium/Assets/Textures/maki/land-use.png +0 -0
- package/public/Cesium/Assets/Textures/maki/laundry.png +0 -0
- package/public/Cesium/Assets/Textures/maki/library.png +0 -0
- package/public/Cesium/Assets/Textures/maki/lighthouse.png +0 -0
- package/public/Cesium/Assets/Textures/maki/lodging.png +0 -0
- package/public/Cesium/Assets/Textures/maki/logging.png +0 -0
- package/public/Cesium/Assets/Textures/maki/london-underground.png +0 -0
- package/public/Cesium/Assets/Textures/maki/marker-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/marker.png +0 -0
- package/public/Cesium/Assets/Textures/maki/minefield.png +0 -0
- package/public/Cesium/Assets/Textures/maki/mobilephone.png +0 -0
- package/public/Cesium/Assets/Textures/maki/monument.png +0 -0
- package/public/Cesium/Assets/Textures/maki/museum.png +0 -0
- package/public/Cesium/Assets/Textures/maki/music.png +0 -0
- package/public/Cesium/Assets/Textures/maki/oil-well.png +0 -0
- package/public/Cesium/Assets/Textures/maki/park.png +0 -0
- package/public/Cesium/Assets/Textures/maki/park2.png +0 -0
- package/public/Cesium/Assets/Textures/maki/parking-garage.png +0 -0
- package/public/Cesium/Assets/Textures/maki/parking.png +0 -0
- package/public/Cesium/Assets/Textures/maki/pharmacy.png +0 -0
- package/public/Cesium/Assets/Textures/maki/pitch.png +0 -0
- package/public/Cesium/Assets/Textures/maki/place-of-worship.png +0 -0
- package/public/Cesium/Assets/Textures/maki/playground.png +0 -0
- package/public/Cesium/Assets/Textures/maki/police.png +0 -0
- package/public/Cesium/Assets/Textures/maki/polling-place.png +0 -0
- package/public/Cesium/Assets/Textures/maki/post.png +0 -0
- package/public/Cesium/Assets/Textures/maki/prison.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-above.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-light.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-metro.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-underground.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail.png +0 -0
- package/public/Cesium/Assets/Textures/maki/religious-christian.png +0 -0
- package/public/Cesium/Assets/Textures/maki/religious-jewish.png +0 -0
- package/public/Cesium/Assets/Textures/maki/religious-muslim.png +0 -0
- package/public/Cesium/Assets/Textures/maki/restaurant.png +0 -0
- package/public/Cesium/Assets/Textures/maki/roadblock.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rocket.png +0 -0
- package/public/Cesium/Assets/Textures/maki/school.png +0 -0
- package/public/Cesium/Assets/Textures/maki/scooter.png +0 -0
- package/public/Cesium/Assets/Textures/maki/shop.png +0 -0
- package/public/Cesium/Assets/Textures/maki/skiing.png +0 -0
- package/public/Cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/public/Cesium/Assets/Textures/maki/soccer.png +0 -0
- package/public/Cesium/Assets/Textures/maki/square-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/square.png +0 -0
- package/public/Cesium/Assets/Textures/maki/star-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/star.png +0 -0
- package/public/Cesium/Assets/Textures/maki/suitcase.png +0 -0
- package/public/Cesium/Assets/Textures/maki/swimming.png +0 -0
- package/public/Cesium/Assets/Textures/maki/telephone.png +0 -0
- package/public/Cesium/Assets/Textures/maki/tennis.png +0 -0
- package/public/Cesium/Assets/Textures/maki/theatre.png +0 -0
- package/public/Cesium/Assets/Textures/maki/toilets.png +0 -0
- package/public/Cesium/Assets/Textures/maki/town-hall.png +0 -0
- package/public/Cesium/Assets/Textures/maki/town.png +0 -0
- package/public/Cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/triangle.png +0 -0
- package/public/Cesium/Assets/Textures/maki/village.png +0 -0
- package/public/Cesium/Assets/Textures/maki/warehouse.png +0 -0
- package/public/Cesium/Assets/Textures/maki/waste-basket.png +0 -0
- package/public/Cesium/Assets/Textures/maki/water.png +0 -0
- package/public/Cesium/Assets/Textures/maki/wetland.png +0 -0
- package/public/Cesium/Assets/Textures/maki/zoo.png +0 -0
- package/public/Cesium/Assets/Textures/moonSmall.jpg +0 -0
- package/public/Cesium/Assets/Textures/pin.svg +1 -0
- package/public/Cesium/Assets/Textures/waterNormals.jpg +0 -0
- package/public/Cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/public/Cesium/Assets/approximateTerrainHeights.json +1 -0
- package/public/Cesium/Cesium.d.ts +45342 -0
- package/public/Cesium/Cesium.js +80 -0
- package/public/Cesium/Scene/ModelExperimental/CustomShaderGuide/README.md +4 -0
- package/public/Cesium/ThirdParty/Workers/basis_transcoder.js +1 -0
- package/public/Cesium/ThirdParty/Workers/draco_decoder_nodejs.js +117 -0
- package/public/Cesium/ThirdParty/Workers/package.js +26 -0
- package/public/Cesium/ThirdParty/Workers/package.json +1 -0
- package/public/Cesium/ThirdParty/Workers/pako_deflate.min.js +1 -0
- package/public/Cesium/ThirdParty/Workers/pako_inflate.min.js +1 -0
- package/public/Cesium/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/public/Cesium/ThirdParty/basis_transcoder.wasm +0 -0
- package/public/Cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/public/Cesium/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/public/Cesium/Widgets/Animation/Animation.css +1 -0
- package/public/Cesium/Widgets/Animation/lighter.css +1 -0
- package/public/Cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css +1 -0
- package/public/Cesium/Widgets/BaseLayerPicker/lighter.css +1 -0
- package/public/Cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +1 -0
- package/public/Cesium/Widgets/CesiumInspector/CesiumInspector.css +1 -0
- package/public/Cesium/Widgets/CesiumWidget/CesiumWidget.css +1 -0
- package/public/Cesium/Widgets/CesiumWidget/lighter.css +1 -0
- package/public/Cesium/Widgets/FullscreenButton/FullscreenButton.css +1 -0
- package/public/Cesium/Widgets/Geocoder/Geocoder.css +1 -0
- package/public/Cesium/Widgets/Geocoder/lighter.css +1 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/public/Cesium/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/public/Cesium/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/public/Cesium/Widgets/Images/TimelineIcons.png +0 -0
- package/public/Cesium/Widgets/Images/info-loading.gif +0 -0
- package/public/Cesium/Widgets/InfoBox/InfoBox.css +1 -0
- package/public/Cesium/Widgets/InfoBox/InfoBoxDescription.css +1 -0
- package/public/Cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css +1 -0
- package/public/Cesium/Widgets/NavigationHelpButton/lighter.css +1 -0
- package/public/Cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +1 -0
- package/public/Cesium/Widgets/ProjectionPicker/ProjectionPicker.css +1 -0
- package/public/Cesium/Widgets/SceneModePicker/SceneModePicker.css +1 -0
- package/public/Cesium/Widgets/SelectionIndicator/SelectionIndicator.css +1 -0
- package/public/Cesium/Widgets/Timeline/Timeline.css +1 -0
- package/public/Cesium/Widgets/Timeline/lighter.css +1 -0
- package/public/Cesium/Widgets/VRButton/VRButton.css +1 -0
- package/public/Cesium/Widgets/Viewer/Viewer.css +1 -0
- package/public/Cesium/Widgets/lighter.css +1 -0
- package/public/Cesium/Widgets/lighterShared.css +1 -0
- package/public/Cesium/Widgets/shared.css +1 -0
- package/public/Cesium/Widgets/widgets.css +1 -0
- package/public/Cesium/Workers/ArcType-b570b3ee.js +25 -0
- package/public/Cesium/Workers/ArcType-de5d8777.js +25 -0
- package/public/Cesium/Workers/AttributeCompression-5744d52e.js +25 -0
- package/public/Cesium/Workers/AttributeCompression-f967afc2.js +25 -0
- package/public/Cesium/Workers/AxisAlignedBoundingBox-255e5057.js +25 -0
- package/public/Cesium/Workers/AxisAlignedBoundingBox-47db7c7f.js +25 -0
- package/public/Cesium/Workers/AxisAlignedBoundingBox-546c299b.js +25 -0
- package/public/Cesium/Workers/BoundingRectangle-5691ae9d.js +25 -0
- package/public/Cesium/Workers/BoundingRectangle-636ecf9f.js +25 -0
- package/public/Cesium/Workers/BoundingRectangle-869c584d.js +25 -0
- package/public/Cesium/Workers/BoxGeometry-17972137.js +25 -0
- package/public/Cesium/Workers/BoxGeometry-b34a2283.js +25 -0
- package/public/Cesium/Workers/BoxGeometry-f99e1294.js +25 -0
- package/public/Cesium/Workers/Color-301b72e6.js +25 -0
- package/public/Cesium/Workers/Color-62754929.js +25 -0
- package/public/Cesium/Workers/Color-ab712aae.js +25 -0
- package/public/Cesium/Workers/ComponentDatatype-6ff7d2c3.js +25 -0
- package/public/Cesium/Workers/ComponentDatatype-e7fbe225.js +25 -0
- package/public/Cesium/Workers/CoplanarPolygonGeometryLibrary-3c267f31.js +25 -0
- package/public/Cesium/Workers/CoplanarPolygonGeometryLibrary-d343a6d7.js +25 -0
- package/public/Cesium/Workers/CoplanarPolygonGeometryLibrary-eb4bd06f.js +25 -0
- package/public/Cesium/Workers/CorridorGeometryLibrary-5c5a2d97.js +25 -0
- package/public/Cesium/Workers/CorridorGeometryLibrary-b25ae85b.js +25 -0
- package/public/Cesium/Workers/CorridorGeometryLibrary-bb6ab1cc.js +25 -0
- package/public/Cesium/Workers/CylinderGeometry-004fa238.js +25 -0
- package/public/Cesium/Workers/CylinderGeometry-1c699361.js +25 -0
- package/public/Cesium/Workers/CylinderGeometry-3a1d8b87.js +25 -0
- package/public/Cesium/Workers/CylinderGeometryLibrary-24ad1484.js +25 -0
- package/public/Cesium/Workers/CylinderGeometryLibrary-24ffef71.js +25 -0
- package/public/Cesium/Workers/EllipseGeometry-5676dce7.js +25 -0
- package/public/Cesium/Workers/EllipseGeometry-8cfc99b0.js +25 -0
- package/public/Cesium/Workers/EllipseGeometry-b71ca2ae.js +25 -0
- package/public/Cesium/Workers/EllipseGeometryLibrary-6da859ee.js +25 -0
- package/public/Cesium/Workers/EllipseGeometryLibrary-7ab28f68.js +25 -0
- package/public/Cesium/Workers/EllipseGeometryLibrary-9c7a22fb.js +25 -0
- package/public/Cesium/Workers/EllipseOutlineGeometry-35eddd22.js +25 -0
- package/public/Cesium/Workers/EllipseOutlineGeometry-6376df9c.js +25 -0
- package/public/Cesium/Workers/EllipseOutlineGeometry-b0b5806f.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeodesic-84738e5f.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeodesic-ed8a0e40.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeometry-5f95b75b.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeometry-78c28ab4.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeometry-e2286aab.js +25 -0
- package/public/Cesium/Workers/EllipsoidOutlineGeometry-80bdc65f.js +25 -0
- package/public/Cesium/Workers/EllipsoidOutlineGeometry-9a1727ee.js +25 -0
- package/public/Cesium/Workers/EllipsoidOutlineGeometry-fd03887d.js +25 -0
- package/public/Cesium/Workers/EllipsoidRhumbLine-60f14314.js +25 -0
- package/public/Cesium/Workers/EllipsoidRhumbLine-c3b11f35.js +25 -0
- package/public/Cesium/Workers/EllipsoidTangentPlane-7dc686cd.js +25 -0
- package/public/Cesium/Workers/EllipsoidTangentPlane-9813dd6d.js +25 -0
- package/public/Cesium/Workers/EllipsoidTangentPlane-c5c26b0d.js +25 -0
- package/public/Cesium/Workers/EncodedCartesian3-1e797130.js +25 -0
- package/public/Cesium/Workers/EncodedCartesian3-a9a8a281.js +25 -0
- package/public/Cesium/Workers/FrustumGeometry-a6f9f16a.js +25 -0
- package/public/Cesium/Workers/FrustumGeometry-df8261e4.js +25 -0
- package/public/Cesium/Workers/FrustumGeometry-e939fe30.js +25 -0
- package/public/Cesium/Workers/GeometryAttribute-8163e7fe.js +25 -0
- package/public/Cesium/Workers/GeometryAttribute-c4e59d2f.js +25 -0
- package/public/Cesium/Workers/GeometryAttribute-f542c9a2.js +25 -0
- package/public/Cesium/Workers/GeometryAttributes-734a3446.js +25 -0
- package/public/Cesium/Workers/GeometryAttributes-cb1bf806.js +25 -0
- package/public/Cesium/Workers/GeometryInstance-4bfcfe78.js +25 -0
- package/public/Cesium/Workers/GeometryInstance-8a2d7ac1.js +25 -0
- package/public/Cesium/Workers/GeometryOffsetAttribute-59b14f45.js +25 -0
- package/public/Cesium/Workers/GeometryOffsetAttribute-ddcc2f7f.js +25 -0
- package/public/Cesium/Workers/GeometryPipeline-350055a2.js +25 -0
- package/public/Cesium/Workers/GeometryPipeline-6bdfe811.js +25 -0
- package/public/Cesium/Workers/GeometryPipeline-87dd0e0a.js +25 -0
- package/public/Cesium/Workers/IndexDatatype-65271ba3.js +25 -0
- package/public/Cesium/Workers/IndexDatatype-d42fd89c.js +25 -0
- package/public/Cesium/Workers/IntersectionTests-60b7843b.js +25 -0
- package/public/Cesium/Workers/IntersectionTests-7d7483f2.js +25 -0
- package/public/Cesium/Workers/IntersectionTests-a7d8bdc4.js +25 -0
- package/public/Cesium/Workers/Matrix2-735f0ea9.js +25 -0
- package/public/Cesium/Workers/Matrix2-73789715.js +25 -0
- package/public/Cesium/Workers/OrientedBoundingBox-4691d67b.js +25 -0
- package/public/Cesium/Workers/OrientedBoundingBox-5ee9ed67.js +25 -0
- package/public/Cesium/Workers/OrientedBoundingBox-e995cfaf.js +25 -0
- package/public/Cesium/Workers/Plane-6c77dfaf.js +25 -0
- package/public/Cesium/Workers/Plane-e916220d.js +25 -0
- package/public/Cesium/Workers/PolygonGeometryLibrary-1e3a5b27.js +25 -0
- package/public/Cesium/Workers/PolygonGeometryLibrary-9175878e.js +25 -0
- package/public/Cesium/Workers/PolygonGeometryLibrary-aaa1e2e8.js +25 -0
- package/public/Cesium/Workers/PolygonPipeline-22507996.js +25 -0
- package/public/Cesium/Workers/PolygonPipeline-5a1c3ce9.js +25 -0
- package/public/Cesium/Workers/PolygonPipeline-e5fc87bb.js +25 -0
- package/public/Cesium/Workers/PolylinePipeline-192ea676.js +25 -0
- package/public/Cesium/Workers/PolylinePipeline-608e4017.js +25 -0
- package/public/Cesium/Workers/PolylinePipeline-ab9c4512.js +25 -0
- package/public/Cesium/Workers/PolylineVolumeGeometryLibrary-02df6d4c.js +25 -0
- package/public/Cesium/Workers/PolylineVolumeGeometryLibrary-6e5cac20.js +25 -0
- package/public/Cesium/Workers/PolylineVolumeGeometryLibrary-a3701381.js +25 -0
- package/public/Cesium/Workers/PrimitivePipeline-53950dc0.js +25 -0
- package/public/Cesium/Workers/PrimitivePipeline-5711c037.js +25 -0
- package/public/Cesium/Workers/PrimitivePipeline-ee92ce1a.js +25 -0
- package/public/Cesium/Workers/RectangleGeometryLibrary-06a4e4d4.js +25 -0
- package/public/Cesium/Workers/RectangleGeometryLibrary-53def455.js +25 -0
- package/public/Cesium/Workers/RectangleGeometryLibrary-bde82d75.js +25 -0
- package/public/Cesium/Workers/RuntimeError-17a7ed3d.js +25 -0
- package/public/Cesium/Workers/RuntimeError-4f8ec8a2.js +25 -0
- package/public/Cesium/Workers/TerrainEncoding-149a9713.js +25 -0
- package/public/Cesium/Workers/TerrainEncoding-218a6b73.js +25 -0
- package/public/Cesium/Workers/TerrainEncoding-28a34fd9.js +25 -0
- package/public/Cesium/Workers/Transforms-ac54558c.js +63 -0
- package/public/Cesium/Workers/Transforms-b698c16d.js +63 -0
- package/public/Cesium/Workers/Transforms-d4da1631.js +63 -0
- package/public/Cesium/Workers/VertexFormat-4362bb4a.js +25 -0
- package/public/Cesium/Workers/VertexFormat-9886cb81.js +25 -0
- package/public/Cesium/Workers/WallGeometryLibrary-514d3e5b.js +25 -0
- package/public/Cesium/Workers/WallGeometryLibrary-c66f62cf.js +25 -0
- package/public/Cesium/Workers/WallGeometryLibrary-e26bb3f9.js +25 -0
- package/public/Cesium/Workers/WebGLConstants-6da700a2.js +25 -0
- package/public/Cesium/Workers/WebGLConstants-d878ea52.js +25 -0
- package/public/Cesium/Workers/WebMercatorProjection-04ef6bc3.js +25 -0
- package/public/Cesium/Workers/WebMercatorProjection-4d21b562.js +25 -0
- package/public/Cesium/Workers/_commonjsHelpers-3aae1032-65601a27.js +25 -0
- package/public/Cesium/Workers/_commonjsHelpers-c27c962c.js +25 -0
- package/public/Cesium/Workers/arrayRemoveDuplicates-6f91355d.js +25 -0
- package/public/Cesium/Workers/arrayRemoveDuplicates-d332a3bf.js +25 -0
- package/public/Cesium/Workers/cesiumWorkerBootstrapper.js +6 -0
- package/public/Cesium/Workers/combine-c04aaa26.js +25 -0
- package/public/Cesium/Workers/combine-d11b1f00.js +25 -0
- package/public/Cesium/Workers/combineGeometry.js +25 -0
- package/public/Cesium/Workers/createBoxGeometry.js +25 -0
- package/public/Cesium/Workers/createBoxOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCircleGeometry.js +25 -0
- package/public/Cesium/Workers/createCircleOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCoplanarPolygonGeometry.js +25 -0
- package/public/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCorridorGeometry.js +25 -0
- package/public/Cesium/Workers/createCorridorOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCylinderGeometry.js +25 -0
- package/public/Cesium/Workers/createCylinderOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipseGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipseOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipsoidGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipsoidOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createFrustumGeometry.js +25 -0
- package/public/Cesium/Workers/createFrustumOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createGeometry.js +25 -0
- package/public/Cesium/Workers/createGroundPolylineGeometry.js +25 -0
- package/public/Cesium/Workers/createPlaneGeometry.js +25 -0
- package/public/Cesium/Workers/createPlaneOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createPolygonGeometry.js +25 -0
- package/public/Cesium/Workers/createPolygonOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createPolylineGeometry.js +25 -0
- package/public/Cesium/Workers/createPolylineVolumeGeometry.js +25 -0
- package/public/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createRectangleGeometry.js +25 -0
- package/public/Cesium/Workers/createRectangleOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createSimplePolylineGeometry.js +25 -0
- package/public/Cesium/Workers/createSphereGeometry.js +25 -0
- package/public/Cesium/Workers/createSphereOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createTaskProcessorWorker.js +25 -0
- package/public/Cesium/Workers/createVectorTileClampedPolylines.js +25 -0
- package/public/Cesium/Workers/createVectorTileGeometries.js +25 -0
- package/public/Cesium/Workers/createVectorTilePoints.js +25 -0
- package/public/Cesium/Workers/createVectorTilePolygons.js +25 -0
- package/public/Cesium/Workers/createVectorTilePolylines.js +25 -0
- package/public/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +25 -0
- package/public/Cesium/Workers/createVerticesFromHeightmap.js +27 -0
- package/public/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +25 -0
- package/public/Cesium/Workers/createWallGeometry.js +25 -0
- package/public/Cesium/Workers/createWallOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/decodeDraco.js +25 -0
- package/public/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +25 -0
- package/public/Cesium/Workers/defaultValue-6ed27e8d.js +25 -0
- package/public/Cesium/Workers/defaultValue-97284df2.js +25 -0
- package/public/Cesium/Workers/package.js +26 -0
- package/public/Cesium/Workers/package.json +1 -0
- package/public/Cesium/Workers/transcodeKTX2.js +25 -0
- package/public/Cesium/Workers/transferTypedArrayTest.js +1 -0
- package/public/Cesium/Workers/upsampleQuantizedTerrainMesh.js +25 -0
- package/public/Cesium/index.cjs +9781 -0
- package/public/Cesium/index.js +9780 -0
- package/public/tudou3d/README.md +25 -0
- package/public/tudou3d/img/cursor.png +0 -0
- package/public/tudou3d/tudou3d-src.css +34 -0
- package/public/tudou3d/tudou3d-src.js +91704 -0
- package/public/tudou3d/tudou3d.css +8 -0
- package/public/tudou3d/tudou3d.js +6 -0
- package/public/vite.svg +1 -0
- package/src/App.vue +204 -0
- package/src/assets/base-map.svg +15 -0
- package/src/assets/face-map.svg +14 -0
- package/src/assets/north-map.svg +18 -0
- package/src/assets/reset-map.svg +13 -0
- package/src/assets/showcontrol-map.svg +21 -0
- package/src/assets/vue.svg +1 -0
- package/src/assets/zoomin-map.svg +13 -0
- package/src/assets/zoomout-map.svg +13 -0
- package/src/components/map3dt/index.vue +35 -0
- package/src/components/map3dt/useMap.ts +19 -0
- package/src/components/zoomIn/index.vue +37 -0
- package/src/components/zoomOut/index.vue +90 -0
- package/src/images.d.ts +7 -0
- package/src/main.ts +6 -0
- package/src/packages/main.ts +12 -0
- package/src/style.css +85 -0
- package/src/typings/shims-vue.d.ts +23 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +21 -0
- package/tsconfig.node.json +9 -0
- package/uno.config.ts +34 -0
- package/vite.config.ts +44 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
*/
|
25
|
+
define(["./defaultValue-97284df2","./Matrix2-73789715","./Transforms-d4da1631","./ComponentDatatype-e7fbe225","./RuntimeError-4f8ec8a2","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./IndexDatatype-65271ba3","./VertexFormat-9886cb81","./WallGeometryLibrary-514d3e5b","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./arrayRemoveDuplicates-6f91355d","./PolylinePipeline-ab9c4512","./EllipsoidGeodesic-ed8a0e40","./EllipsoidRhumbLine-60f14314","./IntersectionTests-a7d8bdc4","./Plane-e916220d"],(function(e,t,n,i,a,o,r,s,l,m,u,p,d,c,y,f,g,h,C){"use strict";const x=new t.Cartesian3,b=new t.Cartesian3,A=new t.Cartesian3,_=new t.Cartesian3,E=new t.Cartesian3,w=new t.Cartesian3,F=new t.Cartesian3;function v(n){const a=(n=e.defaultValue(n,e.defaultValue.EMPTY_OBJECT)).positions,o=n.maximumHeights,r=n.minimumHeights,s=e.defaultValue(n.vertexFormat,l.VertexFormat.DEFAULT),m=e.defaultValue(n.granularity,i.CesiumMath.RADIANS_PER_DEGREE),u=e.defaultValue(n.ellipsoid,t.Ellipsoid.WGS84);this._positions=a,this._minimumHeights=r,this._maximumHeights=o,this._vertexFormat=l.VertexFormat.clone(s),this._granularity=m,this._ellipsoid=t.Ellipsoid.clone(u),this._workerName="createWallGeometry";let p=1+a.length*t.Cartesian3.packedLength+2;e.defined(r)&&(p+=r.length),e.defined(o)&&(p+=o.length),this.packedLength=p+t.Ellipsoid.packedLength+l.VertexFormat.packedLength+1}v.pack=function(n,i,a){let o;a=e.defaultValue(a,0);const r=n._positions;let s=r.length;for(i[a++]=s,o=0;o<s;++o,a+=t.Cartesian3.packedLength)t.Cartesian3.pack(r[o],i,a);const m=n._minimumHeights;if(s=e.defined(m)?m.length:0,i[a++]=s,e.defined(m))for(o=0;o<s;++o)i[a++]=m[o];const u=n._maximumHeights;if(s=e.defined(u)?u.length:0,i[a++]=s,e.defined(u))for(o=0;o<s;++o)i[a++]=u[o];return t.Ellipsoid.pack(n._ellipsoid,i,a),a+=t.Ellipsoid.packedLength,l.VertexFormat.pack(n._vertexFormat,i,a),i[a+=l.VertexFormat.packedLength]=n._granularity,i};const L=t.Ellipsoid.clone(t.Ellipsoid.UNIT_SPHERE),H=new l.VertexFormat,V={positions:void 0,minimumHeights:void 0,maximumHeights:void 0,ellipsoid:L,vertexFormat:H,granularity:void 0};return v.unpack=function(n,i,a){let o;i=e.defaultValue(i,0);let r=n[i++];const s=new Array(r);for(o=0;o<r;++o,i+=t.Cartesian3.packedLength)s[o]=t.Cartesian3.unpack(n,i);let m,u;if(r=n[i++],r>0)for(m=new Array(r),o=0;o<r;++o)m[o]=n[i++];if(r=n[i++],r>0)for(u=new Array(r),o=0;o<r;++o)u[o]=n[i++];const p=t.Ellipsoid.unpack(n,i,L);i+=t.Ellipsoid.packedLength;const d=l.VertexFormat.unpack(n,i,H),c=n[i+=l.VertexFormat.packedLength];return e.defined(a)?(a._positions=s,a._minimumHeights=m,a._maximumHeights=u,a._ellipsoid=t.Ellipsoid.clone(p,a._ellipsoid),a._vertexFormat=l.VertexFormat.clone(d,a._vertexFormat),a._granularity=c,a):(V.positions=s,V.minimumHeights=m,V.maximumHeights=u,V.granularity=c,new v(V))},v.fromConstantHeights=function(t){const n=(t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT)).positions;let i,a;const o=t.minimumHeight,r=t.maximumHeight,s=e.defined(o),l=e.defined(r);if(s||l){const e=n.length;i=s?new Array(e):void 0,a=l?new Array(e):void 0;for(let t=0;t<e;++t)s&&(i[t]=o),l&&(a[t]=r)}return new v({positions:n,maximumHeights:a,minimumHeights:i,ellipsoid:t.ellipsoid,vertexFormat:t.vertexFormat})},v.createGeometry=function(a){const l=a._positions,u=a._minimumHeights,p=a._maximumHeights,d=a._vertexFormat,c=a._granularity,y=a._ellipsoid,f=m.WallGeometryLibrary.computePositions(y,l,p,u,c,!0);if(!e.defined(f))return;const g=f.bottomPositions,h=f.topPositions,C=f.numCorners;let v=h.length,L=2*v;const H=d.position?new Float64Array(L):void 0,V=d.normal?new Float32Array(L):void 0,k=d.tangent?new Float32Array(L):void 0,G=d.bitangent?new Float32Array(L):void 0,D=d.st?new Float32Array(L/3*2):void 0;let P,T=0,z=0,O=0,R=0,S=0,I=F,N=w,M=E,W=!0;v/=3;let B=0;const U=1/(v-C-1);for(P=0;P<v;++P){const e=3*P,n=t.Cartesian3.fromArray(h,e,x),a=t.Cartesian3.fromArray(g,e,b);if(d.position&&(H[T++]=a.x,H[T++]=a.y,H[T++]=a.z,H[T++]=n.x,H[T++]=n.y,H[T++]=n.z),d.st&&(D[S++]=B,D[S++]=0,D[S++]=B,D[S++]=1),d.normal||d.tangent||d.bitangent){let a=t.Cartesian3.clone(t.Cartesian3.ZERO,_);const o=t.Cartesian3.subtract(n,y.geodeticSurfaceNormal(n,b),b);if(P+1<v&&(a=t.Cartesian3.fromArray(h,e+3,_)),W){const e=t.Cartesian3.subtract(a,n,A),i=t.Cartesian3.subtract(o,n,x);I=t.Cartesian3.normalize(t.Cartesian3.cross(i,e,I),I),W=!1}t.Cartesian3.equalsEpsilon(n,a,i.CesiumMath.EPSILON10)?W=!0:(B+=U,d.tangent&&(N=t.Cartesian3.normalize(t.Cartesian3.subtract(a,n,N),N)),d.bitangent&&(M=t.Cartesian3.normalize(t.Cartesian3.cross(I,N,M),M))),d.normal&&(V[z++]=I.x,V[z++]=I.y,V[z++]=I.z,V[z++]=I.x,V[z++]=I.y,V[z++]=I.z),d.tangent&&(k[R++]=N.x,k[R++]=N.y,k[R++]=N.z,k[R++]=N.x,k[R++]=N.y,k[R++]=N.z),d.bitangent&&(G[O++]=M.x,G[O++]=M.y,G[O++]=M.z,G[O++]=M.x,G[O++]=M.y,G[O++]=M.z)}}const q=new r.GeometryAttributes;d.position&&(q.position=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:H})),d.normal&&(q.normal=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:V})),d.tangent&&(q.tangent=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:k})),d.bitangent&&(q.bitangent=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:G})),d.st&&(q.st=new o.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:D}));const J=L/3;L-=6*(C+1);const Y=s.IndexDatatype.createTypedArray(J,L);let j=0;for(P=0;P<J-2;P+=2){const e=P,n=P+2,a=t.Cartesian3.fromArray(H,3*e,x),o=t.Cartesian3.fromArray(H,3*n,b);if(t.Cartesian3.equalsEpsilon(a,o,i.CesiumMath.EPSILON10))continue;const r=P+1,s=P+3;Y[j++]=r,Y[j++]=e,Y[j++]=s,Y[j++]=s,Y[j++]=e,Y[j++]=n}return new o.Geometry({attributes:q,indices:Y,primitiveType:o.PrimitiveType.TRIANGLES,boundingSphere:new n.BoundingSphere.fromVertices(H)})},function(n,i){return e.defined(i)&&(n=v.unpack(n,i)),n._ellipsoid=t.Ellipsoid.clone(n._ellipsoid),v.createGeometry(n)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
*/
|
25
|
+
define(["./defaultValue-97284df2","./Matrix2-73789715","./Transforms-d4da1631","./ComponentDatatype-e7fbe225","./RuntimeError-4f8ec8a2","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./IndexDatatype-65271ba3","./WallGeometryLibrary-514d3e5b","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./arrayRemoveDuplicates-6f91355d","./PolylinePipeline-ab9c4512","./EllipsoidGeodesic-ed8a0e40","./EllipsoidRhumbLine-60f14314","./IntersectionTests-a7d8bdc4","./Plane-e916220d"],(function(e,i,t,n,o,a,s,r,l,m,d,u,p,c,f,h,g,y){"use strict";const _=new i.Cartesian3,E=new i.Cartesian3;function H(t){const o=(t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT)).positions,a=t.maximumHeights,s=t.minimumHeights,r=e.defaultValue(t.granularity,n.CesiumMath.RADIANS_PER_DEGREE),l=e.defaultValue(t.ellipsoid,i.Ellipsoid.WGS84);this._positions=o,this._minimumHeights=s,this._maximumHeights=a,this._granularity=r,this._ellipsoid=i.Ellipsoid.clone(l),this._workerName="createWallOutlineGeometry";let m=1+o.length*i.Cartesian3.packedLength+2;e.defined(s)&&(m+=s.length),e.defined(a)&&(m+=a.length),this.packedLength=m+i.Ellipsoid.packedLength+1}H.pack=function(t,n,o){let a;o=e.defaultValue(o,0);const s=t._positions;let r=s.length;for(n[o++]=r,a=0;a<r;++a,o+=i.Cartesian3.packedLength)i.Cartesian3.pack(s[a],n,o);const l=t._minimumHeights;if(r=e.defined(l)?l.length:0,n[o++]=r,e.defined(l))for(a=0;a<r;++a)n[o++]=l[a];const m=t._maximumHeights;if(r=e.defined(m)?m.length:0,n[o++]=r,e.defined(m))for(a=0;a<r;++a)n[o++]=m[a];return i.Ellipsoid.pack(t._ellipsoid,n,o),n[o+=i.Ellipsoid.packedLength]=t._granularity,n};const C=i.Ellipsoid.clone(i.Ellipsoid.UNIT_SPHERE),b={positions:void 0,minimumHeights:void 0,maximumHeights:void 0,ellipsoid:C,granularity:void 0};return H.unpack=function(t,n,o){let a;n=e.defaultValue(n,0);let s=t[n++];const r=new Array(s);for(a=0;a<s;++a,n+=i.Cartesian3.packedLength)r[a]=i.Cartesian3.unpack(t,n);let l,m;if(s=t[n++],s>0)for(l=new Array(s),a=0;a<s;++a)l[a]=t[n++];if(s=t[n++],s>0)for(m=new Array(s),a=0;a<s;++a)m[a]=t[n++];const d=i.Ellipsoid.unpack(t,n,C),u=t[n+=i.Ellipsoid.packedLength];return e.defined(o)?(o._positions=r,o._minimumHeights=l,o._maximumHeights=m,o._ellipsoid=i.Ellipsoid.clone(d,o._ellipsoid),o._granularity=u,o):(b.positions=r,b.minimumHeights=l,b.maximumHeights=m,b.granularity=u,new H(b))},H.fromConstantHeights=function(i){const t=(i=e.defaultValue(i,e.defaultValue.EMPTY_OBJECT)).positions;let n,o;const a=i.minimumHeight,s=i.maximumHeight,r=e.defined(a),l=e.defined(s);if(r||l){const e=t.length;n=r?new Array(e):void 0,o=l?new Array(e):void 0;for(let i=0;i<e;++i)r&&(n[i]=a),l&&(o[i]=s)}return new H({positions:t,maximumHeights:o,minimumHeights:n,ellipsoid:i.ellipsoid})},H.createGeometry=function(o){const m=o._positions,d=o._minimumHeights,u=o._maximumHeights,p=o._granularity,c=o._ellipsoid,f=l.WallGeometryLibrary.computePositions(c,m,u,d,p,!1);if(!e.defined(f))return;const h=f.bottomPositions,g=f.topPositions;let y=g.length,H=2*y;const C=new Float64Array(H);let b,A=0;for(y/=3,b=0;b<y;++b){const e=3*b,t=i.Cartesian3.fromArray(g,e,_),n=i.Cartesian3.fromArray(h,e,E);C[A++]=n.x,C[A++]=n.y,C[A++]=n.z,C[A++]=t.x,C[A++]=t.y,C[A++]=t.z}const k=new s.GeometryAttributes({position:new a.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:C})}),w=H/3;H=2*w-4+w;const x=r.IndexDatatype.createTypedArray(w,H);let G=0;for(b=0;b<w-2;b+=2){const e=b,t=b+2,o=i.Cartesian3.fromArray(C,3*e,_),a=i.Cartesian3.fromArray(C,3*t,E);if(i.Cartesian3.equalsEpsilon(o,a,n.CesiumMath.EPSILON10))continue;const s=b+1,r=b+3;x[G++]=s,x[G++]=e,x[G++]=s,x[G++]=r,x[G++]=e,x[G++]=t}return x[G++]=w-2,x[G++]=w-1,new a.Geometry({attributes:k,indices:x,primitiveType:a.PrimitiveType.LINES,boundingSphere:new t.BoundingSphere.fromVertices(C)})},function(t,n){return e.defined(n)&&(t=H.unpack(t,n)),t._ellipsoid=i.Ellipsoid.clone(t._ellipsoid),H.createGeometry(t)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
*/
|
25
|
+
define(["./ComponentDatatype-e7fbe225","./defaultValue-97284df2","./IndexDatatype-65271ba3","./RuntimeError-4f8ec8a2","./createTaskProcessorWorker","./WebGLConstants-6da700a2"],(function(t,e,r,n,o,a){"use strict";let i;function s(t,e){const n=t.num_points(),o=t.num_faces(),a=new i.DracoInt32Array,s=3*o,u=r.IndexDatatype.createTypedArray(n,s);let c=0;for(let r=0;r<o;++r)e.GetFaceFromMesh(t,r,a),u[c+0]=a.GetValue(0),u[c+1]=a.GetValue(1),u[c+2]=a.GetValue(2),c+=3;return i.destroy(a),{typedArray:u,numberOfIndices:s}}function u(r,n,o){const a=r.num_points(),s=o.num_components();let u,c=new i.AttributeQuantizationTransform;if(c.InitFromAttribute(o)){const t=new Array(s);for(let e=0;e<s;++e)t[e]=c.min_value(e);u={quantizationBits:c.quantization_bits(),minValues:t,range:c.range(),octEncoded:!1}}i.destroy(c),c=new i.AttributeOctahedronTransform,c.InitFromAttribute(o)&&(u={quantizationBits:c.quantization_bits(),octEncoded:!0}),i.destroy(c);const d=a*s;let f;f=e.defined(u)?function(t,e,r,n,o){let a,s;n.quantizationBits<=8?(s=new i.DracoUInt8Array,a=new Uint8Array(o),e.GetAttributeUInt8ForAllPoints(t,r,s)):(s=new i.DracoUInt16Array,a=new Uint16Array(o),e.GetAttributeUInt16ForAllPoints(t,r,s));for(let t=0;t<o;++t)a[t]=s.GetValue(t);return i.destroy(s),a}(r,n,o,u,d):function(t,e,r,n){let o,a;switch(r.data_type()){case 1:case 11:a=new i.DracoInt8Array,o=new Int8Array(n),e.GetAttributeInt8ForAllPoints(t,r,a);break;case 2:a=new i.DracoUInt8Array,o=new Uint8Array(n),e.GetAttributeUInt8ForAllPoints(t,r,a);break;case 3:a=new i.DracoInt16Array,o=new Int16Array(n),e.GetAttributeInt16ForAllPoints(t,r,a);break;case 4:a=new i.DracoUInt16Array,o=new Uint16Array(n),e.GetAttributeUInt16ForAllPoints(t,r,a);break;case 5:case 7:a=new i.DracoInt32Array,o=new Int32Array(n),e.GetAttributeInt32ForAllPoints(t,r,a);break;case 6:case 8:a=new i.DracoUInt32Array,o=new Uint32Array(n),e.GetAttributeUInt32ForAllPoints(t,r,a);break;case 9:case 10:a=new i.DracoFloat32Array,o=new Float32Array(n),e.GetAttributeFloatForAllPoints(t,r,a)}for(let t=0;t<n;++t)o[t]=a.GetValue(t);return i.destroy(a),o}(r,n,o,d);const y=t.ComponentDatatype.fromTypedArray(f);return{array:f,data:{componentsPerAttribute:s,componentDatatype:y,byteOffset:o.byte_offset(),byteStride:t.ComponentDatatype.getSizeInBytes(y)*s,normalized:o.normalized(),quantization:u}}}function c(t){return e.defined(t.bufferView)?function(t){const e=new i.Decoder,r=["POSITION","NORMAL","COLOR","TEX_COORD"];if(t.dequantizeInShader)for(let t=0;t<r.length;++t)e.SkipAttributeTransform(i[r[t]]);const o=t.bufferView,a=new i.DecoderBuffer;if(a.Init(t.array,o.byteLength),e.GetEncodedGeometryType(a)!==i.TRIANGULAR_MESH)throw new n.RuntimeError("Unsupported draco mesh geometry type.");const c=new i.Mesh,d=e.DecodeBufferToMesh(a,c);if(!d.ok()||0===c.ptr)throw new n.RuntimeError(`Error decoding draco mesh geometry: ${d.error_msg()}`);i.destroy(a);const f={},y=t.compressedAttributes;for(const t in y)if(y.hasOwnProperty(t)){const r=y[t],n=e.GetAttributeByUniqueId(c,r);f[t]=u(c,e,n)}const A={indexArray:s(c,e),attributeData:f};return i.destroy(c),i.destroy(e),A}(t):function(t){const e=new i.Decoder;t.dequantizeInShader&&(e.SkipAttributeTransform(i.POSITION),e.SkipAttributeTransform(i.NORMAL));const r=new i.DecoderBuffer;if(r.Init(t.buffer,t.buffer.length),e.GetEncodedGeometryType(r)!==i.POINT_CLOUD)throw new n.RuntimeError("Draco geometry type must be POINT_CLOUD.");const o=new i.PointCloud,a=e.DecodeBufferToPointCloud(r,o);if(!a.ok()||0===o.ptr)throw new n.RuntimeError(`Error decoding draco point cloud: ${a.error_msg()}`);i.destroy(r);const s={},c=t.properties;for(const t in c)if(c.hasOwnProperty(t)){let r;if("POSITION"===t||"NORMAL"===t){const n=e.GetAttributeId(o,i[t]);r=e.GetAttribute(o,n)}else{const n=c[t];r=e.GetAttributeByUniqueId(o,n)}s[t]=u(o,e,r)}return i.destroy(o),i.destroy(e),s}(t)}function d(t){i=t,self.onmessage=o(c),self.postMessage(!0)}return function(t){const r=t.data.webAssemblyConfig;if(e.defined(r))return require([r.modulePath],(function(t){e.defined(r.wasmBinaryFile)?(e.defined(t)||(t=self.DracoDecoderModule),t(r).then((function(t){d(t)}))):d(t())}))}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
*/
|
25
|
+
define(["./RuntimeError-4f8ec8a2","./defaultValue-97284df2","./_commonjsHelpers-3aae1032-65601a27","./createTaskProcessorWorker"],(function(e,t,n,i){"use strict";const r=1953029805,a=2917034100;function o(t,n){if(o.passThroughDataForTesting)return n;const i=t.byteLength;if(0===i||i%4!=0)throw new e.RuntimeError("The length of key must be greater than 0 and a multiple of 4.");const s=new DataView(n),f=s.getUint32(0,!0);if(f===r||f===a)return n;const l=new DataView(t);let d=0;const c=n.byteLength,h=c-c%8,u=i;let w,b=8;for(;d<h;)for(b=(b+8)%24,w=b;d<h&&w<u;)s.setUint32(d,s.getUint32(d,!0)^l.getUint32(w,!0),!0),s.setUint32(d+4,s.getUint32(d+4,!0)^l.getUint32(w+4,!0),!0),d+=8,w+=24;if(d<c)for(w>=u&&(b=(b+8)%24,w=b);d<c;)s.setUint8(d,s.getUint8(d)^l.getUint8(w)),d++,w++}function s(e,t){return 0!=(e&t)}o.passThroughDataForTesting=!1;const f=[1,2,4,8];function l(e,t,n,i,r,a){this._bits=e,this.cnodeVersion=t,this.imageryVersion=n,this.terrainVersion=i,this.imageryProvider=r,this.terrainProvider=a,this.ancestorHasTerrain=!1,this.terrainState=void 0}l.clone=function(e,n){return t.defined(n)?(n._bits=e._bits,n.cnodeVersion=e.cnodeVersion,n.imageryVersion=e.imageryVersion,n.terrainVersion=e.terrainVersion,n.imageryProvider=e.imageryProvider,n.terrainProvider=e.terrainProvider):n=new l(e._bits,e.cnodeVersion,e.imageryVersion,e.terrainVersion,e.imageryProvider,e.terrainProvider),n.ancestorHasTerrain=e.ancestorHasTerrain,n.terrainState=e.terrainState,n},l.prototype.setParent=function(e){this.ancestorHasTerrain=e.ancestorHasTerrain||this.hasTerrain()},l.prototype.hasSubtree=function(){return s(this._bits,16)},l.prototype.hasImagery=function(){return s(this._bits,64)},l.prototype.hasTerrain=function(){return s(this._bits,128)},l.prototype.hasChildren=function(){return s(this._bits,15)},l.prototype.hasChild=function(e){return s(this._bits,f[e])},l.prototype.getChildBitmask=function(){return 15&this._bits};var d=n.createCommonjsModule((function(e,t){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,i,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),r);else for(var a=0;a<i;a++)e[r+a]=t[n+a]},flattenChunks:function(e){var t,n,i,r,a,o;for(i=0,t=0,n=e.length;t<n;t++)i+=e[t].length;for(o=new Uint8Array(i),r=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,r),r+=a.length;return o}},a={arraySet:function(e,t,n,i,r){for(var a=0;a<i;a++)e[r+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(n)}));var c=function(e,t,n,i){for(var r=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(r=r+t[i++]|0)|0}while(--o);r%=65521,a%=65521}return r|a<<16|0};var h=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();var u=function(e,t,n,i){var r=h,a=i+n;e^=-1;for(var o=i;o<a;o++)e=e>>>8^r[255&(e^t[o])];return-1^e},w=function(e,t){var n,i,r,a,o,s,f,l,d,c,h,u,w,b,m,g,k,_,v,p,y,E,x,S,T;n=e.state,i=e.next_in,S=e.input,r=i+(e.avail_in-5),a=e.next_out,T=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),f=n.dmax,l=n.wsize,d=n.whave,c=n.wnext,h=n.window,u=n.hold,w=n.bits,b=n.lencode,m=n.distcode,g=(1<<n.lenbits)-1,k=(1<<n.distbits)-1;e:do{w<15&&(u+=S[i++]<<w,w+=8,u+=S[i++]<<w,w+=8),_=b[u&g];t:for(;;){if(u>>>=v=_>>>24,w-=v,0===(v=_>>>16&255))T[a++]=65535&_;else{if(!(16&v)){if(0==(64&v)){_=b[(65535&_)+(u&(1<<v)-1)];continue t}if(32&v){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}p=65535&_,(v&=15)&&(w<v&&(u+=S[i++]<<w,w+=8),p+=u&(1<<v)-1,u>>>=v,w-=v),w<15&&(u+=S[i++]<<w,w+=8,u+=S[i++]<<w,w+=8),_=m[u&k];n:for(;;){if(u>>>=v=_>>>24,w-=v,!(16&(v=_>>>16&255))){if(0==(64&v)){_=m[(65535&_)+(u&(1<<v)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(y=65535&_,w<(v&=15)&&(u+=S[i++]<<w,(w+=8)<v&&(u+=S[i++]<<w,w+=8)),(y+=u&(1<<v)-1)>f){e.msg="invalid distance too far back",n.mode=30;break e}if(u>>>=v,w-=v,y>(v=a-o)){if((v=y-v)>d&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(E=0,x=h,0===c){if(E+=l-v,v<p){p-=v;do{T[a++]=h[E++]}while(--v);E=a-y,x=T}}else if(c<v){if(E+=l+c-v,(v-=c)<p){p-=v;do{T[a++]=h[E++]}while(--v);if(E=0,c<p){p-=v=c;do{T[a++]=h[E++]}while(--v);E=a-y,x=T}}}else if(E+=c-v,v<p){p-=v;do{T[a++]=h[E++]}while(--v);E=a-y,x=T}for(;p>2;)T[a++]=x[E++],T[a++]=x[E++],T[a++]=x[E++],p-=3;p&&(T[a++]=x[E++],p>1&&(T[a++]=x[E++]))}else{E=a-y;do{T[a++]=T[E++],T[a++]=T[E++],T[a++]=T[E++],p-=3}while(p>2);p&&(T[a++]=T[E++],p>1&&(T[a++]=T[E++]))}break}}break}}while(i<r&&a<s);i-=p=w>>3,u&=(1<<(w-=p<<3))-1,e.next_in=i,e.next_out=a,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=u,n.bits=w},b=15,m=[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],g=[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],k=[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],_=[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],v=function(e,t,n,i,r,a,o,s){var f,l,c,h,u,w,v,p,y,E=s.bits,x=0,S=0,T=0,R=0,A=0,B=0,U=0,Z=0,I=0,D=0,O=null,N=0,C=new d.Buf16(16),F=new d.Buf16(16),L=null,H=0;for(x=0;x<=b;x++)C[x]=0;for(S=0;S<i;S++)C[t[n+S]]++;for(A=E,R=b;R>=1&&0===C[R];R--);if(A>R&&(A=R),0===R)return r[a++]=20971520,r[a++]=20971520,s.bits=1,0;for(T=1;T<R&&0===C[T];T++);for(A<T&&(A=T),Z=1,x=1;x<=b;x++)if(Z<<=1,(Z-=C[x])<0)return-1;if(Z>0&&(0===e||1!==R))return-1;for(F[1]=0,x=1;x<b;x++)F[x+1]=F[x]+C[x];for(S=0;S<i;S++)0!==t[n+S]&&(o[F[t[n+S]]++]=S);if(0===e?(O=L=o,w=19):1===e?(O=m,N-=257,L=g,H-=257,w=256):(O=k,L=_,w=-1),D=0,S=0,x=T,u=a,B=A,U=0,c=-1,h=(I=1<<A)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){v=x-U,o[S]<w?(p=0,y=o[S]):o[S]>w?(p=L[H+o[S]],y=O[N+o[S]]):(p=96,y=0),f=1<<x-U,T=l=1<<B;do{r[u+(D>>U)+(l-=f)]=v<<24|p<<16|y|0}while(0!==l);for(f=1<<x-1;D&f;)f>>=1;if(0!==f?(D&=f-1,D+=f):D=0,S++,0==--C[x]){if(x===R)break;x=t[n+o[S]]}if(x>A&&(D&h)!==c){for(0===U&&(U=A),u+=T,Z=1<<(B=x-U);B+U<R&&!((Z-=C[B+U])<=0);)B++,Z<<=1;if(I+=1<<B,1===e&&I>852||2===e&&I>592)return 1;r[c=D&h]=A<<24|B<<16|u-a|0}}return 0!==D&&(r[u+D]=x-U<<24|64<<16|0),s.bits=A,0},p=0,y=1,E=2,x=4,S=5,T=6,R=0,A=1,B=2,U=-2,Z=-3,I=-4,D=-5,O=8,N=1,C=2,F=3,L=4,H=5,z=6,P=7,M=8,V=9,K=10,j=11,Y=12,G=13,Q=14,W=15,X=16,q=17,J=18,$=19,ee=20,te=21,ne=22,ie=23,re=24,ae=25,oe=26,se=27,fe=28,le=29,de=30,ce=31,he=852,ue=592,we=15;function be(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function me(){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 d.Buf16(320),this.work=new d.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ge(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=N,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new d.Buf32(he),t.distcode=t.distdyn=new d.Buf32(ue),t.sane=1,t.back=-1,R):U}function ke(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,ge(e)):U}function _e(e,t){var n,i;return e&&e.state?(i=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?U:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,ke(e))):U}function ve(e,t){var n,i;return e?(i=new me,e.state=i,i.window=null,(n=_e(e,t))!==R&&(e.state=null),n):U}var pe,ye,Ee=!0;function xe(e){if(Ee){var t;for(pe=new d.Buf32(512),ye=new d.Buf32(32),t=0;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(v(y,e.lens,0,288,pe,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;v(E,e.lens,0,32,ye,0,e.work,{bits:5}),Ee=!1}e.lencode=pe,e.lenbits=9,e.distcode=ye,e.distbits=5}function Se(e,t,n,i){var r,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new d.Buf8(a.wsize)),i>=a.wsize?(d.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((r=a.wsize-a.wnext)>i&&(r=i),d.arraySet(a.window,t,n-i,r,a.wnext),(i-=r)?(d.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0}var Te={inflateReset:ke,inflateReset2:_e,inflateResetKeep:ge,inflateInit:function(e){return ve(e,we)},inflateInit2:ve,inflate:function(e,t){var n,i,r,a,o,s,f,l,h,b,m,g,k,_,he,ue,we,me,ge,ke,_e,ve,pe,ye,Ee=0,Te=new d.Buf8(4),Re=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return U;(n=e.state).mode===Y&&(n.mode=G),o=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,l=n.hold,h=n.bits,b=s,m=f,ve=R;e:for(;;)switch(n.mode){case N:if(0===n.wrap){n.mode=G;break}for(;h<16;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}if(2&n.wrap&&35615===l){n.check=0,Te[0]=255&l,Te[1]=l>>>8&255,n.check=u(n.check,Te,2,0),l=0,h=0,n.mode=C;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",n.mode=de;break}if((15&l)!==O){e.msg="unknown compression method",n.mode=de;break}if(h-=4,_e=8+(15&(l>>>=4)),0===n.wbits)n.wbits=_e;else if(_e>n.wbits){e.msg="invalid window size",n.mode=de;break}n.dmax=1<<_e,e.adler=n.check=1,n.mode=512&l?K:Y,l=0,h=0;break;case C:for(;h<16;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}if(n.flags=l,(255&n.flags)!==O){e.msg="unknown compression method",n.mode=de;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=de;break}n.head&&(n.head.text=l>>8&1),512&n.flags&&(Te[0]=255&l,Te[1]=l>>>8&255,n.check=u(n.check,Te,2,0)),l=0,h=0,n.mode=F;case F:for(;h<32;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}n.head&&(n.head.time=l),512&n.flags&&(Te[0]=255&l,Te[1]=l>>>8&255,Te[2]=l>>>16&255,Te[3]=l>>>24&255,n.check=u(n.check,Te,4,0)),l=0,h=0,n.mode=L;case L:for(;h<16;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}n.head&&(n.head.xflags=255&l,n.head.os=l>>8),512&n.flags&&(Te[0]=255&l,Te[1]=l>>>8&255,n.check=u(n.check,Te,2,0)),l=0,h=0,n.mode=H;case H:if(1024&n.flags){for(;h<16;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}n.length=l,n.head&&(n.head.extra_len=l),512&n.flags&&(Te[0]=255&l,Te[1]=l>>>8&255,n.check=u(n.check,Te,2,0)),l=0,h=0}else n.head&&(n.head.extra=null);n.mode=z;case z:if(1024&n.flags&&((g=n.length)>s&&(g=s),g&&(n.head&&(_e=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),d.arraySet(n.head.extra,i,a,g,_e)),512&n.flags&&(n.check=u(n.check,i,g,a)),s-=g,a+=g,n.length-=g),n.length))break e;n.length=0,n.mode=P;case P:if(2048&n.flags){if(0===s)break e;g=0;do{_e=i[a+g++],n.head&&_e&&n.length<65536&&(n.head.name+=String.fromCharCode(_e))}while(_e&&g<s);if(512&n.flags&&(n.check=u(n.check,i,g,a)),s-=g,a+=g,_e)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=M;case M:if(4096&n.flags){if(0===s)break e;g=0;do{_e=i[a+g++],n.head&&_e&&n.length<65536&&(n.head.comment+=String.fromCharCode(_e))}while(_e&&g<s);if(512&n.flags&&(n.check=u(n.check,i,g,a)),s-=g,a+=g,_e)break e}else n.head&&(n.head.comment=null);n.mode=V;case V:if(512&n.flags){for(;h<16;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}if(l!==(65535&n.check)){e.msg="header crc mismatch",n.mode=de;break}l=0,h=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Y;break;case K:for(;h<32;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}e.adler=n.check=be(l),l=0,h=0,n.mode=j;case j:if(0===n.havedict)return e.next_out=o,e.avail_out=f,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=h,B;e.adler=n.check=1,n.mode=Y;case Y:if(t===S||t===T)break e;case G:if(n.last){l>>>=7&h,h-=7&h,n.mode=se;break}for(;h<3;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}switch(n.last=1&l,h-=1,3&(l>>>=1)){case 0:n.mode=Q;break;case 1:if(xe(n),n.mode=ee,t===T){l>>>=2,h-=2;break e}break;case 2:n.mode=q;break;case 3:e.msg="invalid block type",n.mode=de}l>>>=2,h-=2;break;case Q:for(l>>>=7&h,h-=7&h;h<32;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}if((65535&l)!=(l>>>16^65535)){e.msg="invalid stored block lengths",n.mode=de;break}if(n.length=65535&l,l=0,h=0,n.mode=W,t===T)break e;case W:n.mode=X;case X:if(g=n.length){if(g>s&&(g=s),g>f&&(g=f),0===g)break e;d.arraySet(r,i,a,g,o),s-=g,a+=g,f-=g,o+=g,n.length-=g;break}n.mode=Y;break;case q:for(;h<14;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}if(n.nlen=257+(31&l),l>>>=5,h-=5,n.ndist=1+(31&l),l>>>=5,h-=5,n.ncode=4+(15&l),l>>>=4,h-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=de;break}n.have=0,n.mode=J;case J:for(;n.have<n.ncode;){for(;h<3;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}n.lens[Re[n.have++]]=7&l,l>>>=3,h-=3}for(;n.have<19;)n.lens[Re[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,pe={bits:n.lenbits},ve=v(p,n.lens,0,19,n.lencode,0,n.work,pe),n.lenbits=pe.bits,ve){e.msg="invalid code lengths set",n.mode=de;break}n.have=0,n.mode=$;case $:for(;n.have<n.nlen+n.ndist;){for(;ue=(Ee=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,we=65535&Ee,!((he=Ee>>>24)<=h);){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}if(we<16)l>>>=he,h-=he,n.lens[n.have++]=we;else{if(16===we){for(ye=he+2;h<ye;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}if(l>>>=he,h-=he,0===n.have){e.msg="invalid bit length repeat",n.mode=de;break}_e=n.lens[n.have-1],g=3+(3&l),l>>>=2,h-=2}else if(17===we){for(ye=he+3;h<ye;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}h-=he,_e=0,g=3+(7&(l>>>=he)),l>>>=3,h-=3}else{for(ye=he+7;h<ye;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}h-=he,_e=0,g=11+(127&(l>>>=he)),l>>>=7,h-=7}if(n.have+g>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=de;break}for(;g--;)n.lens[n.have++]=_e}}if(n.mode===de)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=de;break}if(n.lenbits=9,pe={bits:n.lenbits},ve=v(y,n.lens,0,n.nlen,n.lencode,0,n.work,pe),n.lenbits=pe.bits,ve){e.msg="invalid literal/lengths set",n.mode=de;break}if(n.distbits=6,n.distcode=n.distdyn,pe={bits:n.distbits},ve=v(E,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,pe),n.distbits=pe.bits,ve){e.msg="invalid distances set",n.mode=de;break}if(n.mode=ee,t===T)break e;case ee:n.mode=te;case te:if(s>=6&&f>=258){e.next_out=o,e.avail_out=f,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=h,w(e,m),o=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,l=n.hold,h=n.bits,n.mode===Y&&(n.back=-1);break}for(n.back=0;ue=(Ee=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,we=65535&Ee,!((he=Ee>>>24)<=h);){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}if(ue&&0==(240&ue)){for(me=he,ge=ue,ke=we;ue=(Ee=n.lencode[ke+((l&(1<<me+ge)-1)>>me)])>>>16&255,we=65535&Ee,!(me+(he=Ee>>>24)<=h);){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}l>>>=me,h-=me,n.back+=me}if(l>>>=he,h-=he,n.back+=he,n.length=we,0===ue){n.mode=oe;break}if(32&ue){n.back=-1,n.mode=Y;break}if(64&ue){e.msg="invalid literal/length code",n.mode=de;break}n.extra=15&ue,n.mode=ne;case ne:if(n.extra){for(ye=n.extra;h<ye;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,h-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ie;case ie:for(;ue=(Ee=n.distcode[l&(1<<n.distbits)-1])>>>16&255,we=65535&Ee,!((he=Ee>>>24)<=h);){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}if(0==(240&ue)){for(me=he,ge=ue,ke=we;ue=(Ee=n.distcode[ke+((l&(1<<me+ge)-1)>>me)])>>>16&255,we=65535&Ee,!(me+(he=Ee>>>24)<=h);){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}l>>>=me,h-=me,n.back+=me}if(l>>>=he,h-=he,n.back+=he,64&ue){e.msg="invalid distance code",n.mode=de;break}n.offset=we,n.extra=15&ue,n.mode=re;case re:if(n.extra){for(ye=n.extra;h<ye;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,h-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=de;break}n.mode=ae;case ae:if(0===f)break e;if(g=m-f,n.offset>g){if((g=n.offset-g)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=de;break}g>n.wnext?(g-=n.wnext,k=n.wsize-g):k=n.wnext-g,g>n.length&&(g=n.length),_=n.window}else _=r,k=o-n.offset,g=n.length;g>f&&(g=f),f-=g,n.length-=g;do{r[o++]=_[k++]}while(--g);0===n.length&&(n.mode=te);break;case oe:if(0===f)break e;r[o++]=n.length,f--,n.mode=te;break;case se:if(n.wrap){for(;h<32;){if(0===s)break e;s--,l|=i[a++]<<h,h+=8}if(m-=f,e.total_out+=m,n.total+=m,m&&(e.adler=n.check=n.flags?u(n.check,r,m,o-m):c(n.check,r,m,o-m)),m=f,(n.flags?l:be(l))!==n.check){e.msg="incorrect data check",n.mode=de;break}l=0,h=0}n.mode=fe;case fe:if(n.wrap&&n.flags){for(;h<32;){if(0===s)break e;s--,l+=i[a++]<<h,h+=8}if(l!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=de;break}l=0,h=0}n.mode=le;case le:ve=A;break e;case de:ve=Z;break e;case ce:return I;default:return U}return e.next_out=o,e.avail_out=f,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=h,(n.wsize||m!==e.avail_out&&n.mode<de&&(n.mode<se||t!==x))&&Se(e,e.output,e.next_out,m-e.avail_out),b-=e.avail_in,m-=e.avail_out,e.total_in+=b,e.total_out+=m,n.total+=m,n.wrap&&m&&(e.adler=n.check=n.flags?u(n.check,r,m,e.next_out-m):c(n.check,r,m,e.next_out-m)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Y?128:0)+(n.mode===ee||n.mode===W?256:0),(0===b&&0===m||t===x)&&ve===R&&(ve=D),ve},inflateEnd:function(e){if(!e||!e.state)return U;var t=e.state;return t.window&&(t.window=null),e.state=null,R},inflateGetHeader:function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?U:(n.head=t,t.done=!1,R):U},inflateSetDictionary:function(e,t){var n,i=t.length;return e&&e.state?0!==(n=e.state).wrap&&n.mode!==j?U:n.mode===j&&c(1,t,i,0)!==n.check?Z:Se(e,t,i,i)?(n.mode=ce,I):(n.havedict=1,R):U},inflateInfo:"pako inflate (from Nodeca project)"},Re=!0,Ae=!0;try{String.fromCharCode.apply(null,[0])}catch(e){Re=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){Ae=!1}for(var Be=new d.Buf8(256),Ue=0;Ue<256;Ue++)Be[Ue]=Ue>=252?6:Ue>=248?5:Ue>=240?4:Ue>=224?3:Ue>=192?2:1;Be[254]=Be[254]=1;function Ze(e,t){if(t<65534&&(e.subarray&&Ae||!e.subarray&&Re))return String.fromCharCode.apply(null,d.shrinkBuf(e,t));for(var n="",i=0;i<t;i++)n+=String.fromCharCode(e[i]);return n}var Ie={string2buf:function(e){var t,n,i,r,a,o=e.length,s=0;for(r=0;r<o;r++)55296==(64512&(n=e.charCodeAt(r)))&&r+1<o&&56320==(64512&(i=e.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(i-56320),r++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new d.Buf8(s),a=0,r=0;a<s;r++)55296==(64512&(n=e.charCodeAt(r)))&&r+1<o&&56320==(64512&(i=e.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(i-56320),r++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},buf2binstring:function(e){return Ze(e,e.length)},binstring2buf:function(e){for(var t=new d.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},buf2string:function(e,t){var n,i,r,a,o=t||e.length,s=new Array(2*o);for(i=0,n=0;n<o;)if((r=e[n++])<128)s[i++]=r;else if((a=Be[r])>4)s[i++]=65533,n+=a-1;else{for(r&=2===a?31:3===a?15:7;a>1&&n<o;)r=r<<6|63&e[n++],a--;a>1?s[i++]=65533:r<65536?s[i++]=r:(r-=65536,s[i++]=55296|r>>10&1023,s[i++]=56320|1023&r)}return Ze(s,i)},utf8border:function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+Be[e[n]]>t?n:t}},De={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_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},Oe={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"};var Ne=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};var Ce=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},Fe=Object.prototype.toString;function Le(e){if(!(this instanceof Le))return new Le(e);this.options=d.assign({chunkSize:16384,windowBits:0,to:""},e||{});var 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 Ne,this.strm.avail_out=0;var n=Te.inflateInit2(this.strm,t.windowBits);if(n!==De.Z_OK)throw new Error(Oe[n]);if(this.header=new Ce,Te.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Ie.string2buf(t.dictionary):"[object ArrayBuffer]"===Fe.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Te.inflateSetDictionary(this.strm,t.dictionary))!==De.Z_OK))throw new Error(Oe[n])}function He(e,t){var n=new Le(t);if(n.push(e,!0),n.err)throw n.msg||Oe[n.err];return n.result}Le.prototype.push=function(e,t){var n,i,r,a,o,s=this.strm,f=this.options.chunkSize,l=this.options.dictionary,c=!1;if(this.ended)return!1;i=t===~~t?t:!0===t?De.Z_FINISH:De.Z_NO_FLUSH,"string"==typeof e?s.input=Ie.binstring2buf(e):"[object ArrayBuffer]"===Fe.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new d.Buf8(f),s.next_out=0,s.avail_out=f),(n=Te.inflate(s,De.Z_NO_FLUSH))===De.Z_NEED_DICT&&l&&(n=Te.inflateSetDictionary(this.strm,l)),n===De.Z_BUF_ERROR&&!0===c&&(n=De.Z_OK,c=!1),n!==De.Z_STREAM_END&&n!==De.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==De.Z_STREAM_END&&(0!==s.avail_in||i!==De.Z_FINISH&&i!==De.Z_SYNC_FLUSH)||("string"===this.options.to?(r=Ie.utf8border(s.output,s.next_out),a=s.next_out-r,o=Ie.buf2string(s.output,r),s.next_out=a,s.avail_out=f-a,a&&d.arraySet(s.output,s.output,r,a,0),this.onData(o)):this.onData(d.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(c=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==De.Z_STREAM_END);return n===De.Z_STREAM_END&&(i=De.Z_FINISH),i===De.Z_FINISH?(n=Te.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===De.Z_OK):i!==De.Z_SYNC_FLUSH||(this.onEnd(De.Z_OK),s.avail_out=0,!0)},Le.prototype.onData=function(e){this.chunks.push(e)},Le.prototype.onEnd=function(e){e===De.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ze={Inflate:Le,inflate:He,inflateRaw:function(e,t){return(t=t||{}).raw=!0,He(e,t)},ungzip:He};const Pe=Uint16Array.BYTES_PER_ELEMENT,Me=Int32Array.BYTES_PER_ELEMENT,Ve=Uint32Array.BYTES_PER_ELEMENT,Ke={METADATA:0,TERRAIN:1,DBROOT:2};Ke.fromString=function(e){return"Metadata"===e?Ke.METADATA:"Terrain"===e?Ke.TERRAIN:"DbRoot"===e?Ke.DBROOT:void 0};const je=32301;const Ye=5,Ge=4;const Qe=1953029805,We=2917034100;return i((function(t,n){const i=Ke.fromString(t.type);let r=t.buffer;o(t.key,r);const a=function(t){const n=new DataView(t);let i=0;const r=n.getUint32(i,!0);if(i+=Ve,r!==Qe&&r!==We)throw new e.RuntimeError("Invalid magic");const a=n.getUint32(i,r===Qe);i+=Ve;const o=new Uint8Array(t,i),s=ze.inflate(o);if(s.length!==a)throw new e.RuntimeError("Size of packet doesn't match header");return s}(r);r=a.buffer;const s=a.length;switch(i){case Ke.METADATA:return function(t,n,i){const r=new DataView(t);let a=0;const o=r.getUint32(a,!0);if(a+=Ve,o!==je)throw new e.RuntimeError("Invalid magic");const s=r.getUint32(a,!0);if(a+=Ve,1!==s)throw new e.RuntimeError("Invalid data type. Must be 1 for QuadTreePacket");const f=r.getUint32(a,!0);if(a+=Ve,2!==f)throw new e.RuntimeError("Invalid QuadTreePacket version. Only version 2 is supported.");const d=r.getInt32(a,!0);a+=Me;const c=r.getInt32(a,!0);if(a+=Me,32!==c)throw new e.RuntimeError("Invalid instance size.");const h=r.getInt32(a,!0);a+=Me;const u=r.getInt32(a,!0);a+=Me;const w=r.getInt32(a,!0);if(a+=Me,h!==d*c+a)throw new e.RuntimeError("Invalid dataBufferOffset");if(h+u+w!==n)throw new e.RuntimeError("Invalid packet offsets");const b=[];for(let e=0;e<d;++e){const e=r.getUint8(a);++a,++a;const t=r.getUint16(a,!0);a+=Pe;const n=r.getUint16(a,!0);a+=Pe;const i=r.getUint16(a,!0);a+=Pe,a+=Pe,a+=Pe,a+=Me,a+=Me,a+=8;const o=r.getUint8(a++),s=r.getUint8(a++);a+=Pe,b.push(new l(e,t,n,i,o,s))}const m=[];let g=0;function k(e,t,n){let i=!1;if(4===n){if(t.hasSubtree())return;i=!0}for(let r=0;r<4;++r){const a=e+r.toString();if(i)m[a]=null;else if(n<4)if(t.hasChild(r)){if(g===d)return void console.log("Incorrect number of instances");const e=b[g++];m[a]=e,k(a,e,n+1)}else m[a]=null}}let _=0;const v=b[g++];""===i?++_:m[i]=v;return k(i,v,_),m}(r,s,t.quadKey);case Ke.TERRAIN:return function(t,n,i){const r=new DataView(t),a=function(t){for(let i=0;i<Ge;++i){const i=r.getUint32(t,!0);if(t+=Ve,(t+=i)>n)throw new e.RuntimeError("Malformed terrain packet found.")}return t};let o=0;const s=[];for(;s.length<Ye;){const e=o;o=a(o);const n=t.slice(e,o);i.push(n),s.push(n)}return s}(r,s,n);case Ke.DBROOT:return n.push(r),{buffer:r}}}))}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
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
|
+
*/
|
25
|
+
define(["exports"],(function(e){"use strict";function n(e,n){return null!=e?e:n}n.EMPTY_OBJECT=Object.freeze({}),e.defaultValue=n,e.defined=function(e){return null!=e}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
*/
|
25
|
+
define(["exports"],(function(e){"use strict";function n(e,n){return null!=e?e:n}n.EMPTY_OBJECT=Object.freeze({}),e.defaultValue=n,e.defined=function(e){return null!=e}}));
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.96
|
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
|
+
*/
|
25
|
+
|
26
|
+
module.exports={type:"commonjs"};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"type":"commonjs"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
*/
|
25
|
+
define(["./defaultValue-97284df2","./RuntimeError-4f8ec8a2","./WebGLConstants-6da700a2","./createTaskProcessorWorker"],(function(_,R,t,A){"use strict";const e={UNSIGNED_BYTE:t.WebGLConstants.UNSIGNED_BYTE,UNSIGNED_SHORT:t.WebGLConstants.UNSIGNED_SHORT,UNSIGNED_INT:t.WebGLConstants.UNSIGNED_INT,FLOAT:t.WebGLConstants.FLOAT,HALF_FLOAT:t.WebGLConstants.HALF_FLOAT_OES,UNSIGNED_INT_24_8:t.WebGLConstants.UNSIGNED_INT_24_8,UNSIGNED_SHORT_4_4_4_4:t.WebGLConstants.UNSIGNED_SHORT_4_4_4_4,UNSIGNED_SHORT_5_5_5_1:t.WebGLConstants.UNSIGNED_SHORT_5_5_5_1,UNSIGNED_SHORT_5_6_5:t.WebGLConstants.UNSIGNED_SHORT_5_6_5,toWebGLConstant:function(_,R){switch(_){case e.UNSIGNED_BYTE:return t.WebGLConstants.UNSIGNED_BYTE;case e.UNSIGNED_SHORT:return t.WebGLConstants.UNSIGNED_SHORT;case e.UNSIGNED_INT:return t.WebGLConstants.UNSIGNED_INT;case e.FLOAT:return t.WebGLConstants.FLOAT;case e.HALF_FLOAT:return R.webgl2?t.WebGLConstants.HALF_FLOAT:t.WebGLConstants.HALF_FLOAT_OES;case e.UNSIGNED_INT_24_8:return t.WebGLConstants.UNSIGNED_INT_24_8;case e.UNSIGNED_SHORT_4_4_4_4:return t.WebGLConstants.UNSIGNED_SHORT_4_4_4_4;case e.UNSIGNED_SHORT_5_5_5_1:return t.WebGLConstants.UNSIGNED_SHORT_5_5_5_1;case e.UNSIGNED_SHORT_5_6_5:return e.UNSIGNED_SHORT_5_6_5}},isPacked:function(_){return _===e.UNSIGNED_INT_24_8||_===e.UNSIGNED_SHORT_4_4_4_4||_===e.UNSIGNED_SHORT_5_5_5_1||_===e.UNSIGNED_SHORT_5_6_5},sizeInBytes:function(_){switch(_){case e.UNSIGNED_BYTE:return 1;case e.UNSIGNED_SHORT:case e.UNSIGNED_SHORT_4_4_4_4:case e.UNSIGNED_SHORT_5_5_5_1:case e.UNSIGNED_SHORT_5_6_5:case e.HALF_FLOAT:return 2;case e.UNSIGNED_INT:case e.FLOAT:case e.UNSIGNED_INT_24_8:return 4}},validate:function(_){return _===e.UNSIGNED_BYTE||_===e.UNSIGNED_SHORT||_===e.UNSIGNED_INT||_===e.FLOAT||_===e.HALF_FLOAT||_===e.UNSIGNED_INT_24_8||_===e.UNSIGNED_SHORT_4_4_4_4||_===e.UNSIGNED_SHORT_5_5_5_1||_===e.UNSIGNED_SHORT_5_6_5}};var T=Object.freeze(e);const O={DEPTH_COMPONENT:t.WebGLConstants.DEPTH_COMPONENT,DEPTH_STENCIL:t.WebGLConstants.DEPTH_STENCIL,ALPHA:t.WebGLConstants.ALPHA,RGB:t.WebGLConstants.RGB,RGBA:t.WebGLConstants.RGBA,LUMINANCE:t.WebGLConstants.LUMINANCE,LUMINANCE_ALPHA:t.WebGLConstants.LUMINANCE_ALPHA,RGB_DXT1:t.WebGLConstants.COMPRESSED_RGB_S3TC_DXT1_EXT,RGBA_DXT1:t.WebGLConstants.COMPRESSED_RGBA_S3TC_DXT1_EXT,RGBA_DXT3:t.WebGLConstants.COMPRESSED_RGBA_S3TC_DXT3_EXT,RGBA_DXT5:t.WebGLConstants.COMPRESSED_RGBA_S3TC_DXT5_EXT,RGB_PVRTC_4BPPV1:t.WebGLConstants.COMPRESSED_RGB_PVRTC_4BPPV1_IMG,RGB_PVRTC_2BPPV1:t.WebGLConstants.COMPRESSED_RGB_PVRTC_2BPPV1_IMG,RGBA_PVRTC_4BPPV1:t.WebGLConstants.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG,RGBA_PVRTC_2BPPV1:t.WebGLConstants.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG,RGBA_ASTC:t.WebGLConstants.COMPRESSED_RGBA_ASTC_4x4_WEBGL,RGB_ETC1:t.WebGLConstants.COMPRESSED_RGB_ETC1_WEBGL,RGB8_ETC2:t.WebGLConstants.COMPRESSED_RGB8_ETC2,RGBA8_ETC2_EAC:t.WebGLConstants.COMPRESSED_RGBA8_ETC2_EAC,RGBA_BC7:t.WebGLConstants.COMPRESSED_RGBA_BPTC_UNORM,componentsLength:function(_){switch(_){case O.RGB:return 3;case O.RGBA:return 4;case O.LUMINANCE_ALPHA:return 2;case O.ALPHA:case O.LUMINANCE:default:return 1}},validate:function(_){return _===O.DEPTH_COMPONENT||_===O.DEPTH_STENCIL||_===O.ALPHA||_===O.RGB||_===O.RGBA||_===O.LUMINANCE||_===O.LUMINANCE_ALPHA||_===O.RGB_DXT1||_===O.RGBA_DXT1||_===O.RGBA_DXT3||_===O.RGBA_DXT5||_===O.RGB_PVRTC_4BPPV1||_===O.RGB_PVRTC_2BPPV1||_===O.RGBA_PVRTC_4BPPV1||_===O.RGBA_PVRTC_2BPPV1||_===O.RGBA_ASTC||_===O.RGB_ETC1||_===O.RGB8_ETC2||_===O.RGBA8_ETC2_EAC||_===O.RGBA_BC7},isColorFormat:function(_){return _===O.ALPHA||_===O.RGB||_===O.RGBA||_===O.LUMINANCE||_===O.LUMINANCE_ALPHA},isDepthFormat:function(_){return _===O.DEPTH_COMPONENT||_===O.DEPTH_STENCIL},isCompressedFormat:function(_){return _===O.RGB_DXT1||_===O.RGBA_DXT1||_===O.RGBA_DXT3||_===O.RGBA_DXT5||_===O.RGB_PVRTC_4BPPV1||_===O.RGB_PVRTC_2BPPV1||_===O.RGBA_PVRTC_4BPPV1||_===O.RGBA_PVRTC_2BPPV1||_===O.RGBA_ASTC||_===O.RGB_ETC1||_===O.RGB8_ETC2||_===O.RGBA8_ETC2_EAC||_===O.RGBA_BC7},isDXTFormat:function(_){return _===O.RGB_DXT1||_===O.RGBA_DXT1||_===O.RGBA_DXT3||_===O.RGBA_DXT5},isPVRTCFormat:function(_){return _===O.RGB_PVRTC_4BPPV1||_===O.RGB_PVRTC_2BPPV1||_===O.RGBA_PVRTC_4BPPV1||_===O.RGBA_PVRTC_2BPPV1},isASTCFormat:function(_){return _===O.RGBA_ASTC},isETC1Format:function(_){return _===O.RGB_ETC1},isETC2Format:function(_){return _===O.RGB8_ETC2||_===O.RGBA8_ETC2_EAC},isBC7Format:function(_){return _===O.RGBA_BC7},compressedTextureSizeInBytes:function(_,R,t){switch(_){case O.RGB_DXT1:case O.RGBA_DXT1:case O.RGB_ETC1:case O.RGB8_ETC2:return Math.floor((R+3)/4)*Math.floor((t+3)/4)*8;case O.RGBA_DXT3:case O.RGBA_DXT5:case O.RGBA_ASTC:case O.RGBA8_ETC2_EAC:return Math.floor((R+3)/4)*Math.floor((t+3)/4)*16;case O.RGB_PVRTC_4BPPV1:case O.RGBA_PVRTC_4BPPV1:return Math.floor((Math.max(R,8)*Math.max(t,8)*4+7)/8);case O.RGB_PVRTC_2BPPV1:case O.RGBA_PVRTC_2BPPV1:return Math.floor((Math.max(R,16)*Math.max(t,8)*2+7)/8);case O.RGBA_BC7:return Math.ceil(R/4)*Math.ceil(t/4)*16;default:return 0}},textureSizeInBytes:function(_,R,t,A){let e=O.componentsLength(_);return T.isPacked(R)&&(e=1),e*T.sizeInBytes(R)*t*A},alignmentInBytes:function(_,R,t){const A=O.textureSizeInBytes(_,R,t,1)%4;return 0===A?4:2===A?2:1},createTypedArray:function(_,R,t,A){let e;const n=T.sizeInBytes(R);e=n===Uint8Array.BYTES_PER_ELEMENT?Uint8Array:n===Uint16Array.BYTES_PER_ELEMENT?Uint16Array:n===Float32Array.BYTES_PER_ELEMENT&&R===T.FLOAT?Float32Array:Uint32Array;return new e(O.componentsLength(_)*t*A)},flipY:function(_,R,t,A,e){if(1===e)return _;const T=O.createTypedArray(R,t,A,e),n=O.componentsLength(R),B=A*n;for(let R=0;R<e;++R){const t=R*A*n,O=(e-R-1)*A*n;for(let R=0;R<B;++R)T[O+R]=_[t+R]}return T},toInternalFormat:function(_,R,A){if(!A.webgl2)return _;if(_===O.DEPTH_STENCIL)return t.WebGLConstants.DEPTH24_STENCIL8;if(_===O.DEPTH_COMPONENT){if(R===T.UNSIGNED_SHORT)return t.WebGLConstants.DEPTH_COMPONENT16;if(R===T.UNSIGNED_INT)return t.WebGLConstants.DEPTH_COMPONENT24}if(R===T.FLOAT)switch(_){case O.RGBA:return t.WebGLConstants.RGBA32F;case O.RGB:return t.WebGLConstants.RGB32F;case O.RG:return t.WebGLConstants.RG32F;case O.R:return t.WebGLConstants.R32F}if(R===T.HALF_FLOAT)switch(_){case O.RGBA:return t.WebGLConstants.RGBA16F;case O.RGB:return t.WebGLConstants.RGB16F;case O.RG:return t.WebGLConstants.RG16F;case O.R:return t.WebGLConstants.R16F}return _}};var n=Object.freeze(O);var B=Object.freeze({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});const G=[171,75,84,88,32,50,48,187,13,10,26,10];var M,C,K,s,F,N,r,i,S;(S=M||(M={}))[S.NONE=0]="NONE",S[S.BASISLZ=1]="BASISLZ",S[S.ZSTD=2]="ZSTD",S[S.ZLIB=3]="ZLIB",function(_){_[_.BASICFORMAT=0]="BASICFORMAT"}(C||(C={})),function(_){_[_.UNSPECIFIED=0]="UNSPECIFIED",_[_.ETC1S=163]="ETC1S",_[_.UASTC=166]="UASTC"}(K||(K={})),function(_){_[_.UNSPECIFIED=0]="UNSPECIFIED",_[_.SRGB=1]="SRGB"}(s||(s={})),function(_){_[_.UNSPECIFIED=0]="UNSPECIFIED",_[_.LINEAR=1]="LINEAR",_[_.SRGB=2]="SRGB",_[_.ITU=3]="ITU",_[_.NTSC=4]="NTSC",_[_.SLOG=5]="SLOG",_[_.SLOG2=6]="SLOG2"}(F||(F={})),function(_){_[_.ALPHA_STRAIGHT=0]="ALPHA_STRAIGHT",_[_.ALPHA_PREMULTIPLIED=1]="ALPHA_PREMULTIPLIED"}(N||(N={})),function(_){_[_.RGB=0]="RGB",_[_.RRR=3]="RRR",_[_.GGG=4]="GGG",_[_.AAA=15]="AAA"}(r||(r={})),function(_){_[_.RGB=0]="RGB",_[_.RGBA=3]="RGBA",_[_.RRR=4]="RRR",_[_.RRRG=5]="RRRG"}(i||(i={}));class V{constructor(){this.vkFormat=0,this.typeSize=1,this.pixelWidth=0,this.pixelHeight=0,this.pixelDepth=0,this.layerCount=0,this.faceCount=1,this.supercompressionScheme=M.NONE,this.levels=[],this.dataFormatDescriptor=[{vendorId:0,descriptorType:C.BASICFORMAT,versionNumber:2,descriptorBlockSize:40,colorModel:K.UNSPECIFIED,colorPrimaries:s.SRGB,transferFunction:s.SRGB,flags:N.ALPHA_STRAIGHT,texelBlockDimension:{x:4,y:4,z:1,w:1},bytesPlane:[],samples:[]}],this.keyValue={},this.globalData=null}}class o{constructor(_,R,t,A){this._dataView=new DataView(_.buffer,_.byteOffset+R,t),this._littleEndian=A,this._offset=0}_nextUint8(){const _=this._dataView.getUint8(this._offset);return this._offset+=1,_}_nextUint16(){const _=this._dataView.getUint16(this._offset,this._littleEndian);return this._offset+=2,_}_nextUint32(){const _=this._dataView.getUint32(this._offset,this._littleEndian);return this._offset+=4,_}_nextUint64(){const _=this._dataView.getUint32(this._offset,this._littleEndian)+2**32*this._dataView.getUint32(this._offset+4,this._littleEndian);return this._offset+=8,_}_skip(_){return this._offset+=_,this}_scan(_,R=0){const t=this._offset;let A=0;for(;this._dataView.getUint8(this._offset)!==R&&A<_;)A++,this._offset++;return A<_&&this._offset++,new Uint8Array(this._dataView.buffer,this._dataView.byteOffset+t,A)}}function a(_){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(_):Buffer.from(_).toString("utf8")}const U=["positiveX","negativeX","positiveY","negativeY","positiveZ","negativeZ"],E=163,L=166;let P;function c(t,A){const e=t.ktx2Buffer,O=t.supportedTargetFormats;let M;try{M=function(_){const R=new Uint8Array(_.buffer,_.byteOffset,G.length);if(R[0]!==G[0]||R[1]!==G[1]||R[2]!==G[2]||R[3]!==G[3]||R[4]!==G[4]||R[5]!==G[5]||R[6]!==G[6]||R[7]!==G[7]||R[8]!==G[8]||R[9]!==G[9]||R[10]!==G[10]||R[11]!==G[11])throw new Error("Missing KTX 2.0 identifier.");const t=new V,A=17*Uint32Array.BYTES_PER_ELEMENT,e=new o(_,G.length,A,!0);t.vkFormat=e._nextUint32(),t.typeSize=e._nextUint32(),t.pixelWidth=e._nextUint32(),t.pixelHeight=e._nextUint32(),t.pixelDepth=e._nextUint32(),t.layerCount=e._nextUint32(),t.faceCount=e._nextUint32();const T=e._nextUint32();t.supercompressionScheme=e._nextUint32();const O=e._nextUint32(),n=e._nextUint32(),B=e._nextUint32(),M=e._nextUint32(),C=e._nextUint64(),K=e._nextUint64(),s=new o(_,G.length+A,3*T*8,!0);for(let R=0;R<T;R++)t.levels.push({levelData:new Uint8Array(_.buffer,_.byteOffset+s._nextUint64(),s._nextUint64()),uncompressedByteLength:s._nextUint64()});const F=new o(_,O,n,!0),N={vendorId:F._skip(4)._nextUint16(),descriptorType:F._nextUint16(),versionNumber:F._nextUint16(),descriptorBlockSize:F._nextUint16(),colorModel:F._nextUint8(),colorPrimaries:F._nextUint8(),transferFunction:F._nextUint8(),flags:F._nextUint8(),texelBlockDimension:{x:F._nextUint8()+1,y:F._nextUint8()+1,z:F._nextUint8()+1,w:F._nextUint8()+1},bytesPlane:[F._nextUint8(),F._nextUint8(),F._nextUint8(),F._nextUint8(),F._nextUint8(),F._nextUint8(),F._nextUint8(),F._nextUint8()],samples:[]},r=(N.descriptorBlockSize/4-6)/4;for(let _=0;_<r;_++)N.samples[_]={bitOffset:F._nextUint16(),bitLength:F._nextUint8(),channelID:F._nextUint8(),samplePosition:[F._nextUint8(),F._nextUint8(),F._nextUint8(),F._nextUint8()],sampleLower:F._nextUint32(),sampleUpper:F._nextUint32()};t.dataFormatDescriptor.length=0,t.dataFormatDescriptor.push(N);const i=new o(_,B,M,!0);for(;i._offset<M;){const _=i._nextUint32(),R=i._scan(_),A=a(R),e=i._scan(_-R.byteLength);t.keyValue[A]=A.match(/^ktx/i)?a(e):e,i._offset%4&&i._skip(4-i._offset%4)}if(K<=0)return t;const S=new o(_,C,K,!0),U=S._nextUint16(),E=S._nextUint16(),L=S._nextUint32(),P=S._nextUint32(),c=S._nextUint32(),f=S._nextUint32(),I=[];for(let _=0;_<T;_++)I.push({imageFlags:S._nextUint32(),rgbSliceByteOffset:S._nextUint32(),rgbSliceByteLength:S._nextUint32(),alphaSliceByteOffset:S._nextUint32(),alphaSliceByteLength:S._nextUint32()});const l=C+S._offset,u=l+L,X=u+P,D=X+c,x=new Uint8Array(_.buffer,_.byteOffset+l,L),h=new Uint8Array(_.buffer,_.byteOffset+u,P),H=new Uint8Array(_.buffer,_.byteOffset+X,c),d=new Uint8Array(_.buffer,_.byteOffset+D,f);return t.globalData={endpointCount:U,selectorCount:E,imageDescs:I,endpointsData:x,selectorsData:h,tablesData:H,extendedData:d},t}(e)}catch(_){throw new R.RuntimeError("Invalid KTX2 file.")}if(0!==M.layerCount)throw new R.RuntimeError("KTX2 texture arrays are not supported.");if(0!==M.pixelDepth)throw new R.RuntimeError("KTX2 3D textures are unsupported.");const C=M.dataFormatDescriptor[0],K=new Array(M.levelCount);return 0!==M.vkFormat||C.colorModel!==E&&C.colorModel!==L?(A.push(e.buffer),function(R,t){const A=R.vkFormat===B.VK_FORMAT_R8G8B8_SRGB?n.RGB:n.RGBA;let e;R.vkFormat===B.VK_FORMAT_R8G8B8A8_UNORM?e=T.UNSIGNED_BYTE:R.vkFormat===B.VK_FORMAT_R16G16B16A16_SFLOAT?e=T.HALF_FLOAT:R.vkFormat===B.VK_FORMAT_R32G32B32A32_SFLOAT&&(e=T.FLOAT);for(let O=0;O<R.levels.length;++O){const B={};t[O]=B;const G=R.levels[O].levelData,M=R.pixelWidth>>O,C=R.pixelHeight>>O,K=M*C*n.componentsLength(A);for(let t=0;t<R.faceCount;++t){const O=G.byteOffset+K*R.typeSize*t;let n;n=_.defined(e)&&1!==T.sizeInBytes(e)?2===T.sizeInBytes(e)?new Uint16Array(G.buffer,O,K):new Float32Array(G.buffer,O,K):new Uint8Array(G.buffer,O,K),B[U[t]]={internalFormat:A,datatype:e,width:M,height:C,levelBuffer:n}}}}(M,K)):function(t,A,e,T,O,B){const G=new T.KTX2File(t);let M=G.getWidth(),C=G.getHeight();const K=G.getLevels(),s=G.getHasAlpha();if(!(M>0&&C>0&&K>0))throw G.close(),G.delete(),new R.RuntimeError("Invalid KTX2 file");let F,N;const r=A.dataFormatDescriptor[0],i=T.transcoder_texture_format;if(r.colorModel===E)if(e.etc)F=s?n.RGBA8_ETC2_EAC:n.RGB8_ETC2,N=s?i.cTFETC2_RGBA:i.cTFETC1_RGB;else if(e.etc1&&!s)F=n.RGB_ETC1,N=i.cTFETC1_RGB;else if(e.s3tc)F=s?n.RGBA_DXT5:n.RGB_DXT1,N=s?i.cTFBC3_RGBA:i.cTFBC1_RGB;else if(e.pvrtc)F=s?n.RGBA_PVRTC_4BPPV1:n.RGB_PVRTC_4BPPV1,N=s?i.cTFPVRTC1_4_RGBA:i.cTFPVRTC1_4_RGB;else if(e.astc)F=n.RGBA_ASTC,N=i.cTFASTC_4x4_RGBA;else{if(!e.bc7)throw new R.RuntimeError("No transcoding format target available for ETC1S compressed ktx2.");F=n.RGBA_BC7,N=i.cTFBC7_RGBA}else if(r.colorModel===L)if(e.astc)F=n.RGBA_ASTC,N=i.cTFASTC_4x4_RGBA;else if(e.bc7)F=n.RGBA_BC7,N=i.cTFBC7_RGBA;else if(e.s3tc)F=s?n.RGBA_DXT5:n.RGB_DXT1,N=s?i.cTFBC3_RGBA:i.cTFBC1_RGB;else if(e.etc)F=s?n.RGBA8_ETC2_EAC:n.RGB8_ETC2,N=s?i.cTFETC2_RGBA:i.cTFETC1_RGB;else if(e.etc1&&!s)F=n.RGB_ETC1,N=i.cTFETC1_RGB;else{if(!e.pvrtc)throw new R.RuntimeError("No transcoding format target available for UASTC compressed ktx2.");F=s?n.RGBA_PVRTC_4BPPV1:n.RGB_PVRTC_4BPPV1,N=s?i.cTFPVRTC1_4_RGBA:i.cTFPVRTC1_4_RGB}if(!G.startTranscoding())throw G.close(),G.delete(),new R.RuntimeError("startTranscoding() failed");for(let t=0;t<A.levels.length;++t){const e={};B[t]=e,M=A.pixelWidth>>t,C=A.pixelHeight>>t;const T=G.getImageTranscodedSizeInBytes(t,0,0,N.value),n=new Uint8Array(T),K=G.transcodeImage(n,t,0,0,N.value,0,-1,-1);if(!_.defined(K))throw new R.RuntimeError("transcodeImage() failed.");O.push(n.buffer),e[U[0]]={internalFormat:F,width:M,height:C,levelBuffer:n}}G.close(),G.delete()}(e,M,O,P,A,K),K}function f(_){P=_,P.initializeBasis(),self.onmessage=A(c),self.postMessage(!0)}return function(R){const t=R.data.webAssemblyConfig;if(_.defined(t))return require([t.modulePath],(function(R){if(!_.defined(t.wasmBinaryFile))return R().then((function(_){f(_)}));_.defined(R)||(R=self.MSC_TRANSCODER),R(t).then((function(_){f(_)}))}))}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
"undefined"==typeof self&&(self={}),self.onmessage=function(e){const s=e.data.array,a=self.webkitPostMessage||self.postMessage;try{a({array:s},[s.buffer])}catch(e){a({})}};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
*/
|
25
|
+
define(["./AttributeCompression-5744d52e","./Transforms-d4da1631","./Matrix2-73789715","./defaultValue-97284df2","./TerrainEncoding-218a6b73","./IndexDatatype-65271ba3","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./OrientedBoundingBox-5ee9ed67","./createTaskProcessorWorker","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./EllipsoidTangentPlane-9813dd6d","./AxisAlignedBoundingBox-546c299b","./IntersectionTests-a7d8bdc4","./Plane-e916220d"],(function(e,t,n,i,s,r,h,o,u,d,p,l,a,f,c,g,m){"use strict";const x={clipTriangleAtAxisAlignedThreshold:function(e,t,n,s,r,h){let o,u,d;i.defined(h)?h.length=0:h=[],t?(o=n<e,u=s<e,d=r<e):(o=n>e,u=s>e,d=r>e);const p=o+u+d;let l,a,f,c,g,m;return 1===p?o?(l=(e-n)/(s-n),a=(e-n)/(r-n),h.push(1),h.push(2),1!==a&&(h.push(-1),h.push(0),h.push(2),h.push(a)),1!==l&&(h.push(-1),h.push(0),h.push(1),h.push(l))):u?(f=(e-s)/(r-s),c=(e-s)/(n-s),h.push(2),h.push(0),1!==c&&(h.push(-1),h.push(1),h.push(0),h.push(c)),1!==f&&(h.push(-1),h.push(1),h.push(2),h.push(f))):d&&(g=(e-r)/(n-r),m=(e-r)/(s-r),h.push(0),h.push(1),1!==m&&(h.push(-1),h.push(2),h.push(1),h.push(m)),1!==g&&(h.push(-1),h.push(2),h.push(0),h.push(g))):2===p?o||n===e?u||s===e?d||r===e||(a=(e-n)/(r-n),f=(e-s)/(r-s),h.push(2),h.push(-1),h.push(0),h.push(2),h.push(a),h.push(-1),h.push(1),h.push(2),h.push(f)):(m=(e-r)/(s-r),l=(e-n)/(s-n),h.push(1),h.push(-1),h.push(2),h.push(1),h.push(m),h.push(-1),h.push(0),h.push(1),h.push(l)):(c=(e-s)/(n-s),g=(e-r)/(n-r),h.push(0),h.push(-1),h.push(1),h.push(0),h.push(c),h.push(-1),h.push(2),h.push(0),h.push(g)):3!==p&&(h.push(0),h.push(1),h.push(2)),h},computeBarycentricCoordinates:function(e,t,s,r,h,o,u,d,p){const l=s-u,a=u-h,f=o-d,c=r-d,g=1/(f*l+a*c),m=t-d,x=e-u,w=(f*x+a*m)*g,C=(-c*x+l*m)*g,B=1-w-C;return i.defined(p)?(p.x=w,p.y=C,p.z=B,p):new n.Cartesian3(w,C,B)},computeLineSegmentLineSegmentIntersection:function(e,t,s,r,h,o,u,d,p){const l=(d-o)*(s-e)-(u-h)*(r-t);if(0===l)return;const a=((u-h)*(t-o)-(d-o)*(e-h))/l,f=((s-e)*(t-o)-(r-t)*(e-h))/l;return a>=0&&a<=1&&f>=0&&f<=1?(i.defined(p)||(p=new n.Cartesian2),p.x=e+a*(s-e),p.y=t+a*(r-t),p):void 0}},w=32767,C=w/2|0,B=[],y=[],I=[],A=new n.Cartographic;let b=new n.Cartesian3;const v=[],T=[],z=[],V=[],M=[],N=new n.Cartesian3,E=new t.BoundingSphere,H=new u.OrientedBoundingBox,R=new n.Cartesian2,O=new n.Cartesian3;function S(){this.vertexBuffer=void 0,this.index=void 0,this.first=void 0,this.second=void 0,this.ratio=void 0}S.prototype.clone=function(e){return i.defined(e)||(e=new S),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},S.prototype.initializeIndexed=function(e,t,n,i,s){this.uBuffer=e,this.vBuffer=t,this.heightBuffer=n,this.normalBuffer=i,this.index=s,this.first=void 0,this.second=void 0,this.ratio=void 0},S.prototype.initializeFromClipResult=function(e,t,n){let i=t+1;return-1!==e[t]?n[e[t]].clone(this):(this.vertexBuffer=void 0,this.index=void 0,this.first=n[e[i]],++i,this.second=n[e[i]],++i,this.ratio=e[i],++i),i},S.prototype.getKey=function(){return this.isIndexed()?this.index:JSON.stringify({first:this.first.getKey(),second:this.second.getKey(),ratio:this.ratio})},S.prototype.isIndexed=function(){return i.defined(this.index)},S.prototype.getH=function(){return i.defined(this.index)?this.heightBuffer[this.index]:o.CesiumMath.lerp(this.first.getH(),this.second.getH(),this.ratio)},S.prototype.getU=function(){return i.defined(this.index)?this.uBuffer[this.index]:o.CesiumMath.lerp(this.first.getU(),this.second.getU(),this.ratio)},S.prototype.getV=function(){return i.defined(this.index)?this.vBuffer[this.index]:o.CesiumMath.lerp(this.first.getV(),this.second.getV(),this.ratio)};let U=new n.Cartesian2,F=-1;const P=[new n.Cartesian3,new n.Cartesian3],D=[new n.Cartesian3,new n.Cartesian3];function W(t,i){++F;let s=P[F],r=D[F];return s=e.AttributeCompression.octDecode(t.first.getNormalX(),t.first.getNormalY(),s),r=e.AttributeCompression.octDecode(t.second.getNormalX(),t.second.getNormalY(),r),b=n.Cartesian3.lerp(s,r,t.ratio,b),n.Cartesian3.normalize(b,b),e.AttributeCompression.octEncode(b,i),--F,i}S.prototype.getNormalX=function(){return i.defined(this.index)?this.normalBuffer[2*this.index]:(U=W(this,U),U.x)},S.prototype.getNormalY=function(){return i.defined(this.index)?this.normalBuffer[2*this.index+1]:(U=W(this,U),U.y)};const X=[];function k(e,t,n,s,r,h,o,u,d){if(0===o.length)return;let p=0,l=0;for(;l<o.length;)l=X[p++].initializeFromClipResult(o,l,u);for(let r=0;r<p;++r){const o=X[r];if(o.isIndexed())o.newIndex=h[o.index],o.uBuffer=e,o.vBuffer=t,o.heightBuffer=n,d&&(o.normalBuffer=s);else{const r=o.getKey();if(i.defined(h[r]))o.newIndex=h[r];else{const i=e.length;e.push(o.getU()),t.push(o.getV()),n.push(o.getH()),d&&(s.push(o.getNormalX()),s.push(o.getNormalY())),o.newIndex=i,h[r]=i}}}3===p?(r.push(X[0].newIndex),r.push(X[1].newIndex),r.push(X[2].newIndex)):4===p&&(r.push(X[0].newIndex),r.push(X[1].newIndex),r.push(X[2].newIndex),r.push(X[0].newIndex),r.push(X[2].newIndex),r.push(X[3].newIndex))}return X.push(new S),X.push(new S),X.push(new S),X.push(new S),d((function(e,i){const h=e.isEastChild,d=e.isNorthChild,p=h?C:0,l=h?w:C,a=d?C:0,f=d?w:C,c=v,g=T,m=z,U=M;c.length=0,g.length=0,m.length=0,U.length=0;const F=V;F.length=0;const P={},D=e.vertices;let W=e.indices;W=W.subarray(0,e.indexCountWithoutSkirts);const X=s.TerrainEncoding.clone(e.encoding),K=X.hasVertexNormals;let L=0;const Y=e.vertexCountWithoutSkirts,_=e.minimumHeight,j=e.maximumHeight,G=new Array(Y),J=new Array(Y),Z=new Array(Y),q=K?new Array(2*Y):void 0;let Q,$,ee,te,ne;for($=0,ee=0;$<Y;++$,ee+=2){const e=X.decodeTextureCoordinates(D,$,R);if(Q=X.decodeHeight(D,$),te=o.CesiumMath.clamp(e.x*w|0,0,w),ne=o.CesiumMath.clamp(e.y*w|0,0,w),Z[$]=o.CesiumMath.clamp((Q-_)/(j-_)*w|0,0,w),te<20&&(te=0),ne<20&&(ne=0),w-te<20&&(te=w),w-ne<20&&(ne=w),G[$]=te,J[$]=ne,K){const e=X.getOctEncodedNormal(D,$,O);q[ee]=e.x,q[ee+1]=e.y}(h&&te>=C||!h&&te<=C)&&(d&&ne>=C||!d&&ne<=C)&&(P[$]=L,c.push(te),g.push(ne),m.push(Z[$]),K&&(U.push(q[ee]),U.push(q[ee+1])),++L)}const ie=[];ie.push(new S),ie.push(new S),ie.push(new S);const se=[];let re,he;for(se.push(new S),se.push(new S),se.push(new S),$=0;$<W.length;$+=3){const e=W[$],t=W[$+1],n=W[$+2],i=G[e],s=G[t],r=G[n];ie[0].initializeIndexed(G,J,Z,q,e),ie[1].initializeIndexed(G,J,Z,q,t),ie[2].initializeIndexed(G,J,Z,q,n);const o=x.clipTriangleAtAxisAlignedThreshold(C,h,i,s,r,B);re=0,re>=o.length||(re=se[0].initializeFromClipResult(o,re,ie),re>=o.length||(re=se[1].initializeFromClipResult(o,re,ie),re>=o.length||(re=se[2].initializeFromClipResult(o,re,ie),he=x.clipTriangleAtAxisAlignedThreshold(C,d,se[0].getV(),se[1].getV(),se[2].getV(),y),k(c,g,m,U,F,P,he,se,K),re<o.length&&(se[2].clone(se[1]),se[2].initializeFromClipResult(o,re,ie),he=x.clipTriangleAtAxisAlignedThreshold(C,d,se[0].getV(),se[1].getV(),se[2].getV(),y),k(c,g,m,U,F,P,he,se,K)))))}const oe=h?-w:0,ue=d?-w:0,de=[],pe=[],le=[],ae=[];let fe=Number.MAX_VALUE,ce=-fe;const ge=I;ge.length=0;const me=n.Ellipsoid.clone(e.ellipsoid),xe=n.Rectangle.clone(e.childRectangle),we=xe.north,Ce=xe.south;let Be=xe.east;const ye=xe.west;for(Be<ye&&(Be+=o.CesiumMath.TWO_PI),$=0;$<c.length;++$)te=Math.round(c[$]),te<=p?(de.push($),te=0):te>=l?(le.push($),te=w):te=2*te+oe,c[$]=te,ne=Math.round(g[$]),ne<=a?(pe.push($),ne=0):ne>=f?(ae.push($),ne=w):ne=2*ne+ue,g[$]=ne,Q=o.CesiumMath.lerp(_,j,m[$]/w),Q<fe&&(fe=Q),Q>ce&&(ce=Q),m[$]=Q,A.longitude=o.CesiumMath.lerp(ye,Be,te/w),A.latitude=o.CesiumMath.lerp(Ce,we,ne/w),A.height=Q,me.cartographicToCartesian(A,b),ge.push(b.x),ge.push(b.y),ge.push(b.z);const Ie=t.BoundingSphere.fromVertices(ge,n.Cartesian3.ZERO,3,E),Ae=u.OrientedBoundingBox.fromRectangle(xe,fe,ce,me,H),be=new s.EllipsoidalOccluder(me).computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid(Ie.center,ge,3,Ie.center,fe,N),ve=ce-fe,Te=new Uint16Array(c.length+g.length+m.length);for($=0;$<c.length;++$)Te[$]=c[$];let ze=c.length;for($=0;$<g.length;++$)Te[ze+$]=g[$];for(ze+=g.length,$=0;$<m.length;++$)Te[ze+$]=w*(m[$]-fe)/ve;const Ve=r.IndexDatatype.createTypedArray(c.length,F);let Me;if(K){const e=new Uint8Array(U);i.push(Te.buffer,Ve.buffer,e.buffer),Me=e.buffer}else i.push(Te.buffer,Ve.buffer);return{vertices:Te.buffer,encodedNormals:Me,indices:Ve.buffer,minimumHeight:fe,maximumHeight:ce,westIndices:de,southIndices:pe,eastIndices:le,northIndices:ae,boundingSphere:Ie,orientedBoundingBox:Ae,horizonOcclusionPoint:be}}))}));
|