create-swdg-frontend 0.1.0
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/README.md +39 -0
- package/bin/index.js +248 -0
- package/package.json +29 -0
- package/template/.husky/commit-msg +42 -0
- package/template/.husky/pre-commit +2 -0
- package/template/.husky/prepare-commit-msg +1 -0
- package/template/.lintstagedrc +5 -0
- package/template/.prettierignore +26 -0
- package/template/.prettierrc.cjs +10 -0
- package/template/.stylelintignore +1 -0
- package/template/.stylelintrc.json +6 -0
- package/template/README.md +36 -0
- package/template/commitlint.config.cjs +64 -0
- package/template/eslint.config.js +96 -0
- package/template/index.html +17 -0
- package/template/interface/user.ts +5 -0
- package/template/package.json +84 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +438 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1012 -0
- package/template/public/Cesium1.119/Assets/Images/bing_maps_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/cesium_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/google_earth_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/ion-credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/airfield.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/airport.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/america-football.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/art-gallery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bakery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bank.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bar.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/baseball.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/basketball.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/beer.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bicycle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/building.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bus.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cafe.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/camera.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/campsite.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/car.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cemetery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cesium.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/chemist.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cinema.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/circle-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/circle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/city.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/clothing-store.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/college.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/commercial.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cricket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cross.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/dam.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/danger.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/disability.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/dog-park.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/embassy.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/entrance.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/farm.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fast-food.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/ferry.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fire-station.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fuel.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/garden.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/gift.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/golf.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/grocery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/hairdresser.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/harbor.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/heart.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/heliport.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/hospital.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/ice-cream.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/industrial.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/land-use.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/laundry.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/library.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/lighthouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/lodging.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/logging.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/london-underground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/marker-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/marker.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/minefield.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/mobilephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/monument.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/museum.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/music.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/oil-well.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/park.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/park2.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/parking-garage.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/parking.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/pharmacy.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/pitch.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/place-of-worship.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/playground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/police.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/polling-place.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/post.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/prison.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-above.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-light.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-metro.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-underground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-christian.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-jewish.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-muslim.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/restaurant.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/roadblock.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rocket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/school.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/scooter.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/shop.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/skiing.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/soccer.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/square-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/square.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/star-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/star.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/suitcase.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/swimming.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/telephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/tennis.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/theatre.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/toilets.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/town-hall.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/town.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/triangle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/village.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/warehouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/waste-basket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/water.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/wetland.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/zoo.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/moonSmall.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/pin.svg +1 -0
- package/template/public/Cesium1.119/Assets/Textures/waterNormals.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/template/public/Cesium1.119/Assets/approximateTerrainHeights.json +10924 -0
- package/template/public/Cesium1.119/Cesium.js +185772 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/package.json +3 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +1681 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +1489 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +1070 -0
- package/template/public/Cesium1.119/ThirdParty/basis_transcoder.wasm +0 -0
- package/template/public/Cesium1.119/ThirdParty/draco_decoder.wasm +0 -0
- package/template/public/Cesium1.119/ThirdParty/google-earth-dbroot-parser.js +11424 -0
- package/template/public/Cesium1.119/Widgets/Animation/Animation.css +127 -0
- package/template/public/Cesium1.119/Widgets/Animation/lighter.css +78 -0
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +112 -0
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +28 -0
- package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +104 -0
- package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +115 -0
- package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +119 -0
- package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +14 -0
- package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +8 -0
- package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +72 -0
- package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +17 -0
- package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/TimelineIcons.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/info-loading.gif +0 -0
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBox.css +94 -0
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +178 -0
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +95 -0
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +38 -0
- package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
- package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +46 -0
- package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +72 -0
- package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +22 -0
- package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +103 -0
- package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +18 -0
- package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +8 -0
- package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +107 -0
- package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +18 -0
- package/template/public/Cesium1.119/Widgets/lighter.css +246 -0
- package/template/public/Cesium1.119/Widgets/lighterShared.css +46 -0
- package/template/public/Cesium1.119/Widgets/shared.css +103 -0
- package/template/public/Cesium1.119/Widgets/widgets.css +1376 -0
- package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +611 -0
- package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +166 -0
- package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +264 -0
- package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +128 -0
- package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +8046 -0
- package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +341 -0
- package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +269 -0
- package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +28 -0
- package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +199 -0
- package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +1102 -0
- package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +485 -0
- package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +76 -0
- package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +91 -0
- package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +42 -0
- package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +2678 -0
- package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +516 -0
- package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +399 -0
- package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +65 -0
- package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +92 -0
- package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +672 -0
- package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +287 -0
- package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +50 -0
- package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +28 -0
- package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +124 -0
- package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +31 -0
- package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +331 -0
- package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +258 -0
- package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +162 -0
- package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +773 -0
- package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +162 -0
- package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +857 -0
- package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +183 -0
- package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +85 -0
- package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +108 -0
- package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +73 -0
- package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +2372 -0
- package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +73 -0
- package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +538 -0
- package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +1670 -0
- package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +392 -0
- package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +57 -0
- package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +72 -0
- package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +37 -0
- package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +814 -0
- package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +579 -0
- package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +376 -0
- package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +111 -0
- package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +573 -0
- package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +633 -0
- package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +271 -0
- package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +173 -0
- package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +217 -0
- package/template/public/Cesium1.119/Workers/combineGeometry.js +53 -0
- package/template/public/Cesium1.119/Workers/createBoxGeometry.js +45 -0
- package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +189 -0
- package/template/public/Cesium1.119/Workers/createCircleGeometry.js +148 -0
- package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +105 -0
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +293 -0
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +143 -0
- package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +830 -0
- package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +417 -0
- package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +47 -0
- package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +170 -0
- package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +58 -0
- package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +51 -0
- package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +46 -0
- package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +45 -0
- package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +45 -0
- package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +164 -0
- package/template/public/Cesium1.119/Workers/createGeometry.js +159 -0
- package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +911 -0
- package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +185 -0
- package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +93 -0
- package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +884 -0
- package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +359 -0
- package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +349 -0
- package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +262 -0
- package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +177 -0
- package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +787 -0
- package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +299 -0
- package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +294 -0
- package/template/public/Cesium1.119/Workers/createSphereGeometry.js +84 -0
- package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +83 -0
- package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +28 -0
- package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +289 -0
- package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +258 -0
- package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +79 -0
- package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +275 -0
- package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +176 -0
- package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +375 -0
- package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +1772 -0
- package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +425 -0
- package/template/public/Cesium1.119/Workers/createWallGeometry.js +320 -0
- package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +229 -0
- package/template/public/Cesium1.119/Workers/decodeDraco.js +227 -0
- package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +1836 -0
- package/template/public/Cesium1.119/Workers/decodeI3S.js +924 -0
- package/template/public/Cesium1.119/Workers/transcodeKTX2.js +3180 -0
- package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +34 -0
- package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +534 -0
- package/template/public/Cesium1.119/index.cjs +185632 -0
- package/template/public/Cesium1.119/index.js +182874 -0
- package/template/public/vite.svg +1 -0
- package/template/scripts/gen-api.cjs +178 -0
- package/template/src/App.vue +6 -0
- package/template/src/api/README.md +3 -0
- package/template/src/assets/favicon.svg +49 -0
- package/template/src/components/Body/index.vue +16 -0
- package/template/src/components/Header/index.vue +8 -0
- package/template/src/directive/focus.ts +9 -0
- package/template/src/layout/BasicLayout.vue +28 -0
- package/template/src/main.ts +33 -0
- package/template/src/router/index.ts +24 -0
- package/template/src/stores/README.md +3 -0
- package/template/src/stores/useCounter.ts +12 -0
- package/template/src/styles/alerts.less +85 -0
- package/template/src/styles/global.css +326 -0
- package/template/src/utils/alert.ts +58 -0
- package/template/src/utils/components.ts +21 -0
- package/template/src/utils/composables/useAlert.ts +14 -0
- package/template/src/views/Test/index.vue +23 -0
- package/template/src/views/index.vue +9 -0
- package/template/src/vite-env.d.ts +1 -0
- package/template/swdg/bin/index.js +23 -0
- package/template/swdg/package.json +27 -0
- package/template/tests/README.md +6 -0
- package/template/tests/e2e/README.md +3 -0
- package/template/tests/setup.ts +1 -0
- package/template/tests/unit/example.test.ts +7 -0
- package/template/tests/utils/helpers.ts +1 -0
- package/template/tsconfig.json +51 -0
- package/template/tsconfig.node.json +11 -0
- package/template/types/README.md +3 -0
- package/template/types/global.d.ts +9 -0
- package/template/vite.config.ts +75 -0
- package/template/vitest.config.ts +9 -0
|
@@ -0,0 +1,1836 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.119
|
|
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
|
+
import { a as Se } from "./chunk-PXCJYT2S.js";
|
|
27
|
+
import { a as D } from "./chunk-II4VNKYR.js";
|
|
28
|
+
import { b as ae } from "./chunk-UH2WFNTA.js";
|
|
29
|
+
import { c as R, d as Ot, e as me } from "./chunk-PEYJTJPE.js";
|
|
30
|
+
var Ie = R((Li, Ae) => {
|
|
31
|
+
"use strict";
|
|
32
|
+
var zt = (t, i, e, r) => {
|
|
33
|
+
let s = (t & 65535) | 0,
|
|
34
|
+
n = ((t >>> 16) & 65535) | 0,
|
|
35
|
+
c = 0;
|
|
36
|
+
for (; e !== 0; ) {
|
|
37
|
+
((c = e > 2e3 ? 2e3 : e), (e -= c));
|
|
38
|
+
do ((s = (s + i[r++]) | 0), (n = (n + s) | 0));
|
|
39
|
+
while (--c);
|
|
40
|
+
((s %= 65521), (n %= 65521));
|
|
41
|
+
}
|
|
42
|
+
return s | (n << 16) | 0;
|
|
43
|
+
};
|
|
44
|
+
Ae.exports = zt;
|
|
45
|
+
});
|
|
46
|
+
var De = R((Pi, Re) => {
|
|
47
|
+
"use strict";
|
|
48
|
+
var Ht = () => {
|
|
49
|
+
let t,
|
|
50
|
+
i = [];
|
|
51
|
+
for (var e = 0; e < 256; e++) {
|
|
52
|
+
t = e;
|
|
53
|
+
for (var r = 0; r < 8; r++)
|
|
54
|
+
t = t & 1 ? 3988292384 ^ (t >>> 1) : t >>> 1;
|
|
55
|
+
i[e] = t;
|
|
56
|
+
}
|
|
57
|
+
return i;
|
|
58
|
+
},
|
|
59
|
+
Ft = new Uint32Array(Ht()),
|
|
60
|
+
Vt = (t, i, e, r) => {
|
|
61
|
+
let s = Ft,
|
|
62
|
+
n = r + e;
|
|
63
|
+
t ^= -1;
|
|
64
|
+
for (let c = r; c < n; c++) t = (t >>> 8) ^ s[(t ^ i[c]) & 255];
|
|
65
|
+
return t ^ -1;
|
|
66
|
+
};
|
|
67
|
+
Re.exports = Vt;
|
|
68
|
+
});
|
|
69
|
+
var Oe = R((zi, Ue) => {
|
|
70
|
+
"use strict";
|
|
71
|
+
Ue.exports = function (i, e) {
|
|
72
|
+
let r,
|
|
73
|
+
s,
|
|
74
|
+
n,
|
|
75
|
+
c,
|
|
76
|
+
f,
|
|
77
|
+
_,
|
|
78
|
+
a,
|
|
79
|
+
o,
|
|
80
|
+
v,
|
|
81
|
+
w,
|
|
82
|
+
l,
|
|
83
|
+
u,
|
|
84
|
+
I,
|
|
85
|
+
p,
|
|
86
|
+
x,
|
|
87
|
+
T,
|
|
88
|
+
g,
|
|
89
|
+
d,
|
|
90
|
+
E,
|
|
91
|
+
A,
|
|
92
|
+
h,
|
|
93
|
+
S,
|
|
94
|
+
k,
|
|
95
|
+
b,
|
|
96
|
+
m = i.state;
|
|
97
|
+
((r = i.next_in),
|
|
98
|
+
(k = i.input),
|
|
99
|
+
(s = r + (i.avail_in - 5)),
|
|
100
|
+
(n = i.next_out),
|
|
101
|
+
(b = i.output),
|
|
102
|
+
(c = n - (e - i.avail_out)),
|
|
103
|
+
(f = n + (i.avail_out - 257)),
|
|
104
|
+
(_ = m.dmax),
|
|
105
|
+
(a = m.wsize),
|
|
106
|
+
(o = m.whave),
|
|
107
|
+
(v = m.wnext),
|
|
108
|
+
(w = m.window),
|
|
109
|
+
(l = m.hold),
|
|
110
|
+
(u = m.bits),
|
|
111
|
+
(I = m.lencode),
|
|
112
|
+
(p = m.distcode),
|
|
113
|
+
(x = (1 << m.lenbits) - 1),
|
|
114
|
+
(T = (1 << m.distbits) - 1));
|
|
115
|
+
e: do {
|
|
116
|
+
(u < 15 && ((l += k[r++] << u), (u += 8), (l += k[r++] << u), (u += 8)),
|
|
117
|
+
(g = I[l & x]));
|
|
118
|
+
t: for (;;) {
|
|
119
|
+
if (
|
|
120
|
+
((d = g >>> 24),
|
|
121
|
+
(l >>>= d),
|
|
122
|
+
(u -= d),
|
|
123
|
+
(d = (g >>> 16) & 255),
|
|
124
|
+
d === 0)
|
|
125
|
+
)
|
|
126
|
+
b[n++] = g & 65535;
|
|
127
|
+
else if (d & 16) {
|
|
128
|
+
((E = g & 65535),
|
|
129
|
+
(d &= 15),
|
|
130
|
+
d &&
|
|
131
|
+
(u < d && ((l += k[r++] << u), (u += 8)),
|
|
132
|
+
(E += l & ((1 << d) - 1)),
|
|
133
|
+
(l >>>= d),
|
|
134
|
+
(u -= d)),
|
|
135
|
+
u < 15 &&
|
|
136
|
+
((l += k[r++] << u), (u += 8), (l += k[r++] << u), (u += 8)),
|
|
137
|
+
(g = p[l & T]));
|
|
138
|
+
i: for (;;) {
|
|
139
|
+
if (
|
|
140
|
+
((d = g >>> 24),
|
|
141
|
+
(l >>>= d),
|
|
142
|
+
(u -= d),
|
|
143
|
+
(d = (g >>> 16) & 255),
|
|
144
|
+
d & 16)
|
|
145
|
+
) {
|
|
146
|
+
if (
|
|
147
|
+
((A = g & 65535),
|
|
148
|
+
(d &= 15),
|
|
149
|
+
u < d &&
|
|
150
|
+
((l += k[r++] << u),
|
|
151
|
+
(u += 8),
|
|
152
|
+
u < d && ((l += k[r++] << u), (u += 8))),
|
|
153
|
+
(A += l & ((1 << d) - 1)),
|
|
154
|
+
A > _)
|
|
155
|
+
) {
|
|
156
|
+
((i.msg = "invalid distance too far back"), (m.mode = 16209));
|
|
157
|
+
break e;
|
|
158
|
+
}
|
|
159
|
+
if (((l >>>= d), (u -= d), (d = n - c), A > d)) {
|
|
160
|
+
if (((d = A - d), d > o && m.sane)) {
|
|
161
|
+
((i.msg = "invalid distance too far back"), (m.mode = 16209));
|
|
162
|
+
break e;
|
|
163
|
+
}
|
|
164
|
+
if (((h = 0), (S = w), v === 0)) {
|
|
165
|
+
if (((h += a - d), d < E)) {
|
|
166
|
+
E -= d;
|
|
167
|
+
do b[n++] = w[h++];
|
|
168
|
+
while (--d);
|
|
169
|
+
((h = n - A), (S = b));
|
|
170
|
+
}
|
|
171
|
+
} else if (v < d) {
|
|
172
|
+
if (((h += a + v - d), (d -= v), d < E)) {
|
|
173
|
+
E -= d;
|
|
174
|
+
do b[n++] = w[h++];
|
|
175
|
+
while (--d);
|
|
176
|
+
if (((h = 0), v < E)) {
|
|
177
|
+
((d = v), (E -= d));
|
|
178
|
+
do b[n++] = w[h++];
|
|
179
|
+
while (--d);
|
|
180
|
+
((h = n - A), (S = b));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
} else if (((h += v - d), d < E)) {
|
|
184
|
+
E -= d;
|
|
185
|
+
do b[n++] = w[h++];
|
|
186
|
+
while (--d);
|
|
187
|
+
((h = n - A), (S = b));
|
|
188
|
+
}
|
|
189
|
+
for (; E > 2; )
|
|
190
|
+
((b[n++] = S[h++]),
|
|
191
|
+
(b[n++] = S[h++]),
|
|
192
|
+
(b[n++] = S[h++]),
|
|
193
|
+
(E -= 3));
|
|
194
|
+
E && ((b[n++] = S[h++]), E > 1 && (b[n++] = S[h++]));
|
|
195
|
+
} else {
|
|
196
|
+
h = n - A;
|
|
197
|
+
do
|
|
198
|
+
((b[n++] = b[h++]),
|
|
199
|
+
(b[n++] = b[h++]),
|
|
200
|
+
(b[n++] = b[h++]),
|
|
201
|
+
(E -= 3));
|
|
202
|
+
while (E > 2);
|
|
203
|
+
E && ((b[n++] = b[h++]), E > 1 && (b[n++] = b[h++]));
|
|
204
|
+
}
|
|
205
|
+
} else if (d & 64) {
|
|
206
|
+
((i.msg = "invalid distance code"), (m.mode = 16209));
|
|
207
|
+
break e;
|
|
208
|
+
} else {
|
|
209
|
+
g = p[(g & 65535) + (l & ((1 << d) - 1))];
|
|
210
|
+
continue i;
|
|
211
|
+
}
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
} else if (d & 64)
|
|
215
|
+
if (d & 32) {
|
|
216
|
+
m.mode = 16191;
|
|
217
|
+
break e;
|
|
218
|
+
} else {
|
|
219
|
+
((i.msg = "invalid literal/length code"), (m.mode = 16209));
|
|
220
|
+
break e;
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
g = I[(g & 65535) + (l & ((1 << d) - 1))];
|
|
224
|
+
continue t;
|
|
225
|
+
}
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
} while (r < s && n < f);
|
|
229
|
+
((E = u >> 3),
|
|
230
|
+
(r -= E),
|
|
231
|
+
(u -= E << 3),
|
|
232
|
+
(l &= (1 << u) - 1),
|
|
233
|
+
(i.next_in = r),
|
|
234
|
+
(i.next_out = n),
|
|
235
|
+
(i.avail_in = r < s ? 5 + (s - r) : 5 - (r - s)),
|
|
236
|
+
(i.avail_out = n < f ? 257 + (f - n) : 257 - (n - f)),
|
|
237
|
+
(m.hold = l),
|
|
238
|
+
(m.bits = u));
|
|
239
|
+
};
|
|
240
|
+
});
|
|
241
|
+
var Me = R((Hi, Ne) => {
|
|
242
|
+
"use strict";
|
|
243
|
+
var Gt = new Uint16Array([
|
|
244
|
+
3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59,
|
|
245
|
+
67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0,
|
|
246
|
+
]),
|
|
247
|
+
Yt = new Uint8Array([
|
|
248
|
+
16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19,
|
|
249
|
+
19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78,
|
|
250
|
+
]),
|
|
251
|
+
Xt = new Uint16Array([
|
|
252
|
+
1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513,
|
|
253
|
+
769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0,
|
|
254
|
+
]),
|
|
255
|
+
qt = new Uint8Array([
|
|
256
|
+
16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23,
|
|
257
|
+
24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64,
|
|
258
|
+
]),
|
|
259
|
+
Kt = (t, i, e, r, s, n, c, f) => {
|
|
260
|
+
let _ = f.bits,
|
|
261
|
+
a = 0,
|
|
262
|
+
o = 0,
|
|
263
|
+
v = 0,
|
|
264
|
+
w = 0,
|
|
265
|
+
l = 0,
|
|
266
|
+
u = 0,
|
|
267
|
+
I = 0,
|
|
268
|
+
p = 0,
|
|
269
|
+
x = 0,
|
|
270
|
+
T = 0,
|
|
271
|
+
g,
|
|
272
|
+
d,
|
|
273
|
+
E,
|
|
274
|
+
A,
|
|
275
|
+
h,
|
|
276
|
+
S = null,
|
|
277
|
+
k,
|
|
278
|
+
b = new Uint16Array(16),
|
|
279
|
+
m = new Uint16Array(16),
|
|
280
|
+
L = null,
|
|
281
|
+
Ee,
|
|
282
|
+
W,
|
|
283
|
+
Q;
|
|
284
|
+
for (a = 0; a <= 15; a++) b[a] = 0;
|
|
285
|
+
for (o = 0; o < r; o++) b[i[e + o]]++;
|
|
286
|
+
for (l = _, w = 15; w >= 1 && b[w] === 0; w--);
|
|
287
|
+
if ((l > w && (l = w), w === 0))
|
|
288
|
+
return (
|
|
289
|
+
(s[n++] = (1 << 24) | (64 << 16) | 0),
|
|
290
|
+
(s[n++] = (1 << 24) | (64 << 16) | 0),
|
|
291
|
+
(f.bits = 1),
|
|
292
|
+
0
|
|
293
|
+
);
|
|
294
|
+
for (v = 1; v < w && b[v] === 0; v++);
|
|
295
|
+
for (l < v && (l = v), p = 1, a = 1; a <= 15; a++)
|
|
296
|
+
if (((p <<= 1), (p -= b[a]), p < 0)) return -1;
|
|
297
|
+
if (p > 0 && (t === 0 || w !== 1)) return -1;
|
|
298
|
+
for (m[1] = 0, a = 1; a < 15; a++) m[a + 1] = m[a] + b[a];
|
|
299
|
+
for (o = 0; o < r; o++) i[e + o] !== 0 && (c[m[i[e + o]]++] = o);
|
|
300
|
+
if (
|
|
301
|
+
(t === 0
|
|
302
|
+
? ((S = L = c), (k = 20))
|
|
303
|
+
: t === 1
|
|
304
|
+
? ((S = Gt), (L = Yt), (k = 257))
|
|
305
|
+
: ((S = Xt), (L = qt), (k = 0)),
|
|
306
|
+
(T = 0),
|
|
307
|
+
(o = 0),
|
|
308
|
+
(a = v),
|
|
309
|
+
(h = n),
|
|
310
|
+
(u = l),
|
|
311
|
+
(I = 0),
|
|
312
|
+
(E = -1),
|
|
313
|
+
(x = 1 << l),
|
|
314
|
+
(A = x - 1),
|
|
315
|
+
(t === 1 && x > 852) || (t === 2 && x > 592))
|
|
316
|
+
)
|
|
317
|
+
return 1;
|
|
318
|
+
for (;;) {
|
|
319
|
+
((Ee = a - I),
|
|
320
|
+
c[o] + 1 < k
|
|
321
|
+
? ((W = 0), (Q = c[o]))
|
|
322
|
+
: c[o] >= k
|
|
323
|
+
? ((W = L[c[o] - k]), (Q = S[c[o] - k]))
|
|
324
|
+
: ((W = 96), (Q = 0)),
|
|
325
|
+
(g = 1 << (a - I)),
|
|
326
|
+
(d = 1 << u),
|
|
327
|
+
(v = d));
|
|
328
|
+
do ((d -= g), (s[h + (T >> I) + d] = (Ee << 24) | (W << 16) | Q | 0));
|
|
329
|
+
while (d !== 0);
|
|
330
|
+
for (g = 1 << (a - 1); T & g; ) g >>= 1;
|
|
331
|
+
if ((g !== 0 ? ((T &= g - 1), (T += g)) : (T = 0), o++, --b[a] === 0)) {
|
|
332
|
+
if (a === w) break;
|
|
333
|
+
a = i[e + c[o]];
|
|
334
|
+
}
|
|
335
|
+
if (a > l && (T & A) !== E) {
|
|
336
|
+
for (
|
|
337
|
+
I === 0 && (I = l), h += v, u = a - I, p = 1 << u;
|
|
338
|
+
u + I < w && ((p -= b[u + I]), !(p <= 0));
|
|
339
|
+
)
|
|
340
|
+
(u++, (p <<= 1));
|
|
341
|
+
if (((x += 1 << u), (t === 1 && x > 852) || (t === 2 && x > 592)))
|
|
342
|
+
return 1;
|
|
343
|
+
((E = T & A), (s[E] = (l << 24) | (u << 16) | (h - n) | 0));
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
return (
|
|
347
|
+
T !== 0 && (s[h + T] = ((a - I) << 24) | (64 << 16) | 0),
|
|
348
|
+
(f.bits = l),
|
|
349
|
+
0
|
|
350
|
+
);
|
|
351
|
+
};
|
|
352
|
+
Ne.exports = Kt;
|
|
353
|
+
});
|
|
354
|
+
var J = R((Fi, Ze) => {
|
|
355
|
+
"use strict";
|
|
356
|
+
Ze.exports = {
|
|
357
|
+
Z_NO_FLUSH: 0,
|
|
358
|
+
Z_PARTIAL_FLUSH: 1,
|
|
359
|
+
Z_SYNC_FLUSH: 2,
|
|
360
|
+
Z_FULL_FLUSH: 3,
|
|
361
|
+
Z_FINISH: 4,
|
|
362
|
+
Z_BLOCK: 5,
|
|
363
|
+
Z_TREES: 6,
|
|
364
|
+
Z_OK: 0,
|
|
365
|
+
Z_STREAM_END: 1,
|
|
366
|
+
Z_NEED_DICT: 2,
|
|
367
|
+
Z_ERRNO: -1,
|
|
368
|
+
Z_STREAM_ERROR: -2,
|
|
369
|
+
Z_DATA_ERROR: -3,
|
|
370
|
+
Z_MEM_ERROR: -4,
|
|
371
|
+
Z_BUF_ERROR: -5,
|
|
372
|
+
Z_NO_COMPRESSION: 0,
|
|
373
|
+
Z_BEST_SPEED: 1,
|
|
374
|
+
Z_BEST_COMPRESSION: 9,
|
|
375
|
+
Z_DEFAULT_COMPRESSION: -1,
|
|
376
|
+
Z_FILTERED: 1,
|
|
377
|
+
Z_HUFFMAN_ONLY: 2,
|
|
378
|
+
Z_RLE: 3,
|
|
379
|
+
Z_FIXED: 4,
|
|
380
|
+
Z_DEFAULT_STRATEGY: 0,
|
|
381
|
+
Z_BINARY: 0,
|
|
382
|
+
Z_TEXT: 1,
|
|
383
|
+
Z_UNKNOWN: 2,
|
|
384
|
+
Z_DEFLATED: 8,
|
|
385
|
+
};
|
|
386
|
+
});
|
|
387
|
+
var bt = R((Vi, O) => {
|
|
388
|
+
"use strict";
|
|
389
|
+
var he = Ie(),
|
|
390
|
+
M = De(),
|
|
391
|
+
jt = Oe(),
|
|
392
|
+
X = Me(),
|
|
393
|
+
Wt = 0,
|
|
394
|
+
st = 1,
|
|
395
|
+
ft = 2,
|
|
396
|
+
{
|
|
397
|
+
Z_FINISH: Be,
|
|
398
|
+
Z_BLOCK: Qt,
|
|
399
|
+
Z_TREES: $,
|
|
400
|
+
Z_OK: P,
|
|
401
|
+
Z_STREAM_END: Jt,
|
|
402
|
+
Z_NEED_DICT: $t,
|
|
403
|
+
Z_STREAM_ERROR: U,
|
|
404
|
+
Z_DATA_ERROR: lt,
|
|
405
|
+
Z_MEM_ERROR: ue,
|
|
406
|
+
Z_BUF_ERROR: ei,
|
|
407
|
+
Z_DEFLATED: Ce,
|
|
408
|
+
} = J(),
|
|
409
|
+
ne = 16180,
|
|
410
|
+
Le = 16181,
|
|
411
|
+
Pe = 16182,
|
|
412
|
+
ze = 16183,
|
|
413
|
+
He = 16184,
|
|
414
|
+
Fe = 16185,
|
|
415
|
+
Ve = 16186,
|
|
416
|
+
Ge = 16187,
|
|
417
|
+
Ye = 16188,
|
|
418
|
+
Xe = 16189,
|
|
419
|
+
ie = 16190,
|
|
420
|
+
Z = 16191,
|
|
421
|
+
se = 16192,
|
|
422
|
+
qe = 16193,
|
|
423
|
+
fe = 16194,
|
|
424
|
+
Ke = 16195,
|
|
425
|
+
je = 16196,
|
|
426
|
+
We = 16197,
|
|
427
|
+
Qe = 16198,
|
|
428
|
+
ee = 16199,
|
|
429
|
+
te = 16200,
|
|
430
|
+
Je = 16201,
|
|
431
|
+
$e = 16202,
|
|
432
|
+
et = 16203,
|
|
433
|
+
tt = 16204,
|
|
434
|
+
it = 16205,
|
|
435
|
+
le = 16206,
|
|
436
|
+
nt = 16207,
|
|
437
|
+
rt = 16208,
|
|
438
|
+
y = 16209,
|
|
439
|
+
we = 16210,
|
|
440
|
+
ct = 16211,
|
|
441
|
+
ti = 852,
|
|
442
|
+
ii = 592,
|
|
443
|
+
ni = 15,
|
|
444
|
+
ri = ni,
|
|
445
|
+
at = (t) =>
|
|
446
|
+
((t >>> 24) & 255) +
|
|
447
|
+
((t >>> 8) & 65280) +
|
|
448
|
+
((t & 65280) << 8) +
|
|
449
|
+
((t & 255) << 24);
|
|
450
|
+
function ai() {
|
|
451
|
+
((this.strm = null),
|
|
452
|
+
(this.mode = 0),
|
|
453
|
+
(this.last = !1),
|
|
454
|
+
(this.wrap = 0),
|
|
455
|
+
(this.havedict = !1),
|
|
456
|
+
(this.flags = 0),
|
|
457
|
+
(this.dmax = 0),
|
|
458
|
+
(this.check = 0),
|
|
459
|
+
(this.total = 0),
|
|
460
|
+
(this.head = null),
|
|
461
|
+
(this.wbits = 0),
|
|
462
|
+
(this.wsize = 0),
|
|
463
|
+
(this.whave = 0),
|
|
464
|
+
(this.wnext = 0),
|
|
465
|
+
(this.window = null),
|
|
466
|
+
(this.hold = 0),
|
|
467
|
+
(this.bits = 0),
|
|
468
|
+
(this.length = 0),
|
|
469
|
+
(this.offset = 0),
|
|
470
|
+
(this.extra = 0),
|
|
471
|
+
(this.lencode = null),
|
|
472
|
+
(this.distcode = null),
|
|
473
|
+
(this.lenbits = 0),
|
|
474
|
+
(this.distbits = 0),
|
|
475
|
+
(this.ncode = 0),
|
|
476
|
+
(this.nlen = 0),
|
|
477
|
+
(this.ndist = 0),
|
|
478
|
+
(this.have = 0),
|
|
479
|
+
(this.next = null),
|
|
480
|
+
(this.lens = new Uint16Array(320)),
|
|
481
|
+
(this.work = new Uint16Array(288)),
|
|
482
|
+
(this.lendyn = null),
|
|
483
|
+
(this.distdyn = null),
|
|
484
|
+
(this.sane = 0),
|
|
485
|
+
(this.back = 0),
|
|
486
|
+
(this.was = 0));
|
|
487
|
+
}
|
|
488
|
+
var z = (t) => {
|
|
489
|
+
if (!t) return 1;
|
|
490
|
+
let i = t.state;
|
|
491
|
+
return !i || i.strm !== t || i.mode < ne || i.mode > ct ? 1 : 0;
|
|
492
|
+
},
|
|
493
|
+
dt = (t) => {
|
|
494
|
+
if (z(t)) return U;
|
|
495
|
+
let i = t.state;
|
|
496
|
+
return (
|
|
497
|
+
(t.total_in = t.total_out = i.total = 0),
|
|
498
|
+
(t.msg = ""),
|
|
499
|
+
i.wrap && (t.adler = i.wrap & 1),
|
|
500
|
+
(i.mode = ne),
|
|
501
|
+
(i.last = 0),
|
|
502
|
+
(i.havedict = 0),
|
|
503
|
+
(i.flags = -1),
|
|
504
|
+
(i.dmax = 32768),
|
|
505
|
+
(i.head = null),
|
|
506
|
+
(i.hold = 0),
|
|
507
|
+
(i.bits = 0),
|
|
508
|
+
(i.lencode = i.lendyn = new Int32Array(ti)),
|
|
509
|
+
(i.distcode = i.distdyn = new Int32Array(ii)),
|
|
510
|
+
(i.sane = 1),
|
|
511
|
+
(i.back = -1),
|
|
512
|
+
P
|
|
513
|
+
);
|
|
514
|
+
},
|
|
515
|
+
ht = (t) => {
|
|
516
|
+
if (z(t)) return U;
|
|
517
|
+
let i = t.state;
|
|
518
|
+
return ((i.wsize = 0), (i.whave = 0), (i.wnext = 0), dt(t));
|
|
519
|
+
},
|
|
520
|
+
ut = (t, i) => {
|
|
521
|
+
let e;
|
|
522
|
+
if (z(t)) return U;
|
|
523
|
+
let r = t.state;
|
|
524
|
+
return (
|
|
525
|
+
i < 0 ? ((e = 0), (i = -i)) : ((e = (i >> 4) + 5), i < 48 && (i &= 15)),
|
|
526
|
+
i && (i < 8 || i > 15)
|
|
527
|
+
? U
|
|
528
|
+
: (r.window !== null && r.wbits !== i && (r.window = null),
|
|
529
|
+
(r.wrap = e),
|
|
530
|
+
(r.wbits = i),
|
|
531
|
+
ht(t))
|
|
532
|
+
);
|
|
533
|
+
},
|
|
534
|
+
wt = (t, i) => {
|
|
535
|
+
if (!t) return U;
|
|
536
|
+
let e = new ai();
|
|
537
|
+
((t.state = e), (e.strm = t), (e.window = null), (e.mode = ne));
|
|
538
|
+
let r = ut(t, i);
|
|
539
|
+
return (r !== P && (t.state = null), r);
|
|
540
|
+
},
|
|
541
|
+
oi = (t) => wt(t, ri),
|
|
542
|
+
ot = !0,
|
|
543
|
+
ce,
|
|
544
|
+
de,
|
|
545
|
+
si = (t) => {
|
|
546
|
+
if (ot) {
|
|
547
|
+
((ce = new Int32Array(512)), (de = new Int32Array(32)));
|
|
548
|
+
let i = 0;
|
|
549
|
+
for (; i < 144; ) t.lens[i++] = 8;
|
|
550
|
+
for (; i < 256; ) t.lens[i++] = 9;
|
|
551
|
+
for (; i < 280; ) t.lens[i++] = 7;
|
|
552
|
+
for (; i < 288; ) t.lens[i++] = 8;
|
|
553
|
+
for (X(st, t.lens, 0, 288, ce, 0, t.work, { bits: 9 }), i = 0; i < 32; )
|
|
554
|
+
t.lens[i++] = 5;
|
|
555
|
+
(X(ft, t.lens, 0, 32, de, 0, t.work, { bits: 5 }), (ot = !1));
|
|
556
|
+
}
|
|
557
|
+
((t.lencode = ce), (t.lenbits = 9), (t.distcode = de), (t.distbits = 5));
|
|
558
|
+
},
|
|
559
|
+
xt = (t, i, e, r) => {
|
|
560
|
+
let s,
|
|
561
|
+
n = t.state;
|
|
562
|
+
return (
|
|
563
|
+
n.window === null &&
|
|
564
|
+
((n.wsize = 1 << n.wbits),
|
|
565
|
+
(n.wnext = 0),
|
|
566
|
+
(n.whave = 0),
|
|
567
|
+
(n.window = new Uint8Array(n.wsize))),
|
|
568
|
+
r >= n.wsize
|
|
569
|
+
? (n.window.set(i.subarray(e - n.wsize, e), 0),
|
|
570
|
+
(n.wnext = 0),
|
|
571
|
+
(n.whave = n.wsize))
|
|
572
|
+
: ((s = n.wsize - n.wnext),
|
|
573
|
+
s > r && (s = r),
|
|
574
|
+
n.window.set(i.subarray(e - r, e - r + s), n.wnext),
|
|
575
|
+
(r -= s),
|
|
576
|
+
r
|
|
577
|
+
? (n.window.set(i.subarray(e - r, e), 0),
|
|
578
|
+
(n.wnext = r),
|
|
579
|
+
(n.whave = n.wsize))
|
|
580
|
+
: ((n.wnext += s),
|
|
581
|
+
n.wnext === n.wsize && (n.wnext = 0),
|
|
582
|
+
n.whave < n.wsize && (n.whave += s))),
|
|
583
|
+
0
|
|
584
|
+
);
|
|
585
|
+
},
|
|
586
|
+
fi = (t, i) => {
|
|
587
|
+
let e,
|
|
588
|
+
r,
|
|
589
|
+
s,
|
|
590
|
+
n,
|
|
591
|
+
c,
|
|
592
|
+
f,
|
|
593
|
+
_,
|
|
594
|
+
a,
|
|
595
|
+
o,
|
|
596
|
+
v,
|
|
597
|
+
w,
|
|
598
|
+
l,
|
|
599
|
+
u,
|
|
600
|
+
I,
|
|
601
|
+
p = 0,
|
|
602
|
+
x,
|
|
603
|
+
T,
|
|
604
|
+
g,
|
|
605
|
+
d,
|
|
606
|
+
E,
|
|
607
|
+
A,
|
|
608
|
+
h,
|
|
609
|
+
S,
|
|
610
|
+
k = new Uint8Array(4),
|
|
611
|
+
b,
|
|
612
|
+
m,
|
|
613
|
+
L = new Uint8Array([
|
|
614
|
+
16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15,
|
|
615
|
+
]);
|
|
616
|
+
if (z(t) || !t.output || (!t.input && t.avail_in !== 0)) return U;
|
|
617
|
+
((e = t.state),
|
|
618
|
+
e.mode === Z && (e.mode = se),
|
|
619
|
+
(c = t.next_out),
|
|
620
|
+
(s = t.output),
|
|
621
|
+
(_ = t.avail_out),
|
|
622
|
+
(n = t.next_in),
|
|
623
|
+
(r = t.input),
|
|
624
|
+
(f = t.avail_in),
|
|
625
|
+
(a = e.hold),
|
|
626
|
+
(o = e.bits),
|
|
627
|
+
(v = f),
|
|
628
|
+
(w = _),
|
|
629
|
+
(S = P));
|
|
630
|
+
e: for (;;)
|
|
631
|
+
switch (e.mode) {
|
|
632
|
+
case ne:
|
|
633
|
+
if (e.wrap === 0) {
|
|
634
|
+
e.mode = se;
|
|
635
|
+
break;
|
|
636
|
+
}
|
|
637
|
+
for (; o < 16; ) {
|
|
638
|
+
if (f === 0) break e;
|
|
639
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
640
|
+
}
|
|
641
|
+
if (e.wrap & 2 && a === 35615) {
|
|
642
|
+
(e.wbits === 0 && (e.wbits = 15),
|
|
643
|
+
(e.check = 0),
|
|
644
|
+
(k[0] = a & 255),
|
|
645
|
+
(k[1] = (a >>> 8) & 255),
|
|
646
|
+
(e.check = M(e.check, k, 2, 0)),
|
|
647
|
+
(a = 0),
|
|
648
|
+
(o = 0),
|
|
649
|
+
(e.mode = Le));
|
|
650
|
+
break;
|
|
651
|
+
}
|
|
652
|
+
if (
|
|
653
|
+
(e.head && (e.head.done = !1),
|
|
654
|
+
!(e.wrap & 1) || (((a & 255) << 8) + (a >> 8)) % 31)
|
|
655
|
+
) {
|
|
656
|
+
((t.msg = "incorrect header check"), (e.mode = y));
|
|
657
|
+
break;
|
|
658
|
+
}
|
|
659
|
+
if ((a & 15) !== Ce) {
|
|
660
|
+
((t.msg = "unknown compression method"), (e.mode = y));
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
if (
|
|
664
|
+
((a >>>= 4),
|
|
665
|
+
(o -= 4),
|
|
666
|
+
(h = (a & 15) + 8),
|
|
667
|
+
e.wbits === 0 && (e.wbits = h),
|
|
668
|
+
h > 15 || h > e.wbits)
|
|
669
|
+
) {
|
|
670
|
+
((t.msg = "invalid window size"), (e.mode = y));
|
|
671
|
+
break;
|
|
672
|
+
}
|
|
673
|
+
((e.dmax = 1 << e.wbits),
|
|
674
|
+
(e.flags = 0),
|
|
675
|
+
(t.adler = e.check = 1),
|
|
676
|
+
(e.mode = a & 512 ? Xe : Z),
|
|
677
|
+
(a = 0),
|
|
678
|
+
(o = 0));
|
|
679
|
+
break;
|
|
680
|
+
case Le:
|
|
681
|
+
for (; o < 16; ) {
|
|
682
|
+
if (f === 0) break e;
|
|
683
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
684
|
+
}
|
|
685
|
+
if (((e.flags = a), (e.flags & 255) !== Ce)) {
|
|
686
|
+
((t.msg = "unknown compression method"), (e.mode = y));
|
|
687
|
+
break;
|
|
688
|
+
}
|
|
689
|
+
if (e.flags & 57344) {
|
|
690
|
+
((t.msg = "unknown header flags set"), (e.mode = y));
|
|
691
|
+
break;
|
|
692
|
+
}
|
|
693
|
+
(e.head && (e.head.text = (a >> 8) & 1),
|
|
694
|
+
e.flags & 512 &&
|
|
695
|
+
e.wrap & 4 &&
|
|
696
|
+
((k[0] = a & 255),
|
|
697
|
+
(k[1] = (a >>> 8) & 255),
|
|
698
|
+
(e.check = M(e.check, k, 2, 0))),
|
|
699
|
+
(a = 0),
|
|
700
|
+
(o = 0),
|
|
701
|
+
(e.mode = Pe));
|
|
702
|
+
case Pe:
|
|
703
|
+
for (; o < 32; ) {
|
|
704
|
+
if (f === 0) break e;
|
|
705
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
706
|
+
}
|
|
707
|
+
(e.head && (e.head.time = a),
|
|
708
|
+
e.flags & 512 &&
|
|
709
|
+
e.wrap & 4 &&
|
|
710
|
+
((k[0] = a & 255),
|
|
711
|
+
(k[1] = (a >>> 8) & 255),
|
|
712
|
+
(k[2] = (a >>> 16) & 255),
|
|
713
|
+
(k[3] = (a >>> 24) & 255),
|
|
714
|
+
(e.check = M(e.check, k, 4, 0))),
|
|
715
|
+
(a = 0),
|
|
716
|
+
(o = 0),
|
|
717
|
+
(e.mode = ze));
|
|
718
|
+
case ze:
|
|
719
|
+
for (; o < 16; ) {
|
|
720
|
+
if (f === 0) break e;
|
|
721
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
722
|
+
}
|
|
723
|
+
(e.head && ((e.head.xflags = a & 255), (e.head.os = a >> 8)),
|
|
724
|
+
e.flags & 512 &&
|
|
725
|
+
e.wrap & 4 &&
|
|
726
|
+
((k[0] = a & 255),
|
|
727
|
+
(k[1] = (a >>> 8) & 255),
|
|
728
|
+
(e.check = M(e.check, k, 2, 0))),
|
|
729
|
+
(a = 0),
|
|
730
|
+
(o = 0),
|
|
731
|
+
(e.mode = He));
|
|
732
|
+
case He:
|
|
733
|
+
if (e.flags & 1024) {
|
|
734
|
+
for (; o < 16; ) {
|
|
735
|
+
if (f === 0) break e;
|
|
736
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
737
|
+
}
|
|
738
|
+
((e.length = a),
|
|
739
|
+
e.head && (e.head.extra_len = a),
|
|
740
|
+
e.flags & 512 &&
|
|
741
|
+
e.wrap & 4 &&
|
|
742
|
+
((k[0] = a & 255),
|
|
743
|
+
(k[1] = (a >>> 8) & 255),
|
|
744
|
+
(e.check = M(e.check, k, 2, 0))),
|
|
745
|
+
(a = 0),
|
|
746
|
+
(o = 0));
|
|
747
|
+
} else e.head && (e.head.extra = null);
|
|
748
|
+
e.mode = Fe;
|
|
749
|
+
case Fe:
|
|
750
|
+
if (
|
|
751
|
+
e.flags & 1024 &&
|
|
752
|
+
((l = e.length),
|
|
753
|
+
l > f && (l = f),
|
|
754
|
+
l &&
|
|
755
|
+
(e.head &&
|
|
756
|
+
((h = e.head.extra_len - e.length),
|
|
757
|
+
e.head.extra ||
|
|
758
|
+
(e.head.extra = new Uint8Array(e.head.extra_len)),
|
|
759
|
+
e.head.extra.set(r.subarray(n, n + l), h)),
|
|
760
|
+
e.flags & 512 && e.wrap & 4 && (e.check = M(e.check, r, l, n)),
|
|
761
|
+
(f -= l),
|
|
762
|
+
(n += l),
|
|
763
|
+
(e.length -= l)),
|
|
764
|
+
e.length)
|
|
765
|
+
)
|
|
766
|
+
break e;
|
|
767
|
+
((e.length = 0), (e.mode = Ve));
|
|
768
|
+
case Ve:
|
|
769
|
+
if (e.flags & 2048) {
|
|
770
|
+
if (f === 0) break e;
|
|
771
|
+
l = 0;
|
|
772
|
+
do
|
|
773
|
+
((h = r[n + l++]),
|
|
774
|
+
e.head &&
|
|
775
|
+
h &&
|
|
776
|
+
e.length < 65536 &&
|
|
777
|
+
(e.head.name += String.fromCharCode(h)));
|
|
778
|
+
while (h && l < f);
|
|
779
|
+
if (
|
|
780
|
+
(e.flags & 512 && e.wrap & 4 && (e.check = M(e.check, r, l, n)),
|
|
781
|
+
(f -= l),
|
|
782
|
+
(n += l),
|
|
783
|
+
h)
|
|
784
|
+
)
|
|
785
|
+
break e;
|
|
786
|
+
} else e.head && (e.head.name = null);
|
|
787
|
+
((e.length = 0), (e.mode = Ge));
|
|
788
|
+
case Ge:
|
|
789
|
+
if (e.flags & 4096) {
|
|
790
|
+
if (f === 0) break e;
|
|
791
|
+
l = 0;
|
|
792
|
+
do
|
|
793
|
+
((h = r[n + l++]),
|
|
794
|
+
e.head &&
|
|
795
|
+
h &&
|
|
796
|
+
e.length < 65536 &&
|
|
797
|
+
(e.head.comment += String.fromCharCode(h)));
|
|
798
|
+
while (h && l < f);
|
|
799
|
+
if (
|
|
800
|
+
(e.flags & 512 && e.wrap & 4 && (e.check = M(e.check, r, l, n)),
|
|
801
|
+
(f -= l),
|
|
802
|
+
(n += l),
|
|
803
|
+
h)
|
|
804
|
+
)
|
|
805
|
+
break e;
|
|
806
|
+
} else e.head && (e.head.comment = null);
|
|
807
|
+
e.mode = Ye;
|
|
808
|
+
case Ye:
|
|
809
|
+
if (e.flags & 512) {
|
|
810
|
+
for (; o < 16; ) {
|
|
811
|
+
if (f === 0) break e;
|
|
812
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
813
|
+
}
|
|
814
|
+
if (e.wrap & 4 && a !== (e.check & 65535)) {
|
|
815
|
+
((t.msg = "header crc mismatch"), (e.mode = y));
|
|
816
|
+
break;
|
|
817
|
+
}
|
|
818
|
+
((a = 0), (o = 0));
|
|
819
|
+
}
|
|
820
|
+
(e.head && ((e.head.hcrc = (e.flags >> 9) & 1), (e.head.done = !0)),
|
|
821
|
+
(t.adler = e.check = 0),
|
|
822
|
+
(e.mode = Z));
|
|
823
|
+
break;
|
|
824
|
+
case Xe:
|
|
825
|
+
for (; o < 32; ) {
|
|
826
|
+
if (f === 0) break e;
|
|
827
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
828
|
+
}
|
|
829
|
+
((t.adler = e.check = at(a)), (a = 0), (o = 0), (e.mode = ie));
|
|
830
|
+
case ie:
|
|
831
|
+
if (e.havedict === 0)
|
|
832
|
+
return (
|
|
833
|
+
(t.next_out = c),
|
|
834
|
+
(t.avail_out = _),
|
|
835
|
+
(t.next_in = n),
|
|
836
|
+
(t.avail_in = f),
|
|
837
|
+
(e.hold = a),
|
|
838
|
+
(e.bits = o),
|
|
839
|
+
$t
|
|
840
|
+
);
|
|
841
|
+
((t.adler = e.check = 1), (e.mode = Z));
|
|
842
|
+
case Z:
|
|
843
|
+
if (i === Qt || i === $) break e;
|
|
844
|
+
case se:
|
|
845
|
+
if (e.last) {
|
|
846
|
+
((a >>>= o & 7), (o -= o & 7), (e.mode = le));
|
|
847
|
+
break;
|
|
848
|
+
}
|
|
849
|
+
for (; o < 3; ) {
|
|
850
|
+
if (f === 0) break e;
|
|
851
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
852
|
+
}
|
|
853
|
+
switch (((e.last = a & 1), (a >>>= 1), (o -= 1), a & 3)) {
|
|
854
|
+
case 0:
|
|
855
|
+
e.mode = qe;
|
|
856
|
+
break;
|
|
857
|
+
case 1:
|
|
858
|
+
if ((si(e), (e.mode = ee), i === $)) {
|
|
859
|
+
((a >>>= 2), (o -= 2));
|
|
860
|
+
break e;
|
|
861
|
+
}
|
|
862
|
+
break;
|
|
863
|
+
case 2:
|
|
864
|
+
e.mode = je;
|
|
865
|
+
break;
|
|
866
|
+
case 3:
|
|
867
|
+
((t.msg = "invalid block type"), (e.mode = y));
|
|
868
|
+
}
|
|
869
|
+
((a >>>= 2), (o -= 2));
|
|
870
|
+
break;
|
|
871
|
+
case qe:
|
|
872
|
+
for (a >>>= o & 7, o -= o & 7; o < 32; ) {
|
|
873
|
+
if (f === 0) break e;
|
|
874
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
875
|
+
}
|
|
876
|
+
if ((a & 65535) !== ((a >>> 16) ^ 65535)) {
|
|
877
|
+
((t.msg = "invalid stored block lengths"), (e.mode = y));
|
|
878
|
+
break;
|
|
879
|
+
}
|
|
880
|
+
if (
|
|
881
|
+
((e.length = a & 65535), (a = 0), (o = 0), (e.mode = fe), i === $)
|
|
882
|
+
)
|
|
883
|
+
break e;
|
|
884
|
+
case fe:
|
|
885
|
+
e.mode = Ke;
|
|
886
|
+
case Ke:
|
|
887
|
+
if (((l = e.length), l)) {
|
|
888
|
+
if ((l > f && (l = f), l > _ && (l = _), l === 0)) break e;
|
|
889
|
+
(s.set(r.subarray(n, n + l), c),
|
|
890
|
+
(f -= l),
|
|
891
|
+
(n += l),
|
|
892
|
+
(_ -= l),
|
|
893
|
+
(c += l),
|
|
894
|
+
(e.length -= l));
|
|
895
|
+
break;
|
|
896
|
+
}
|
|
897
|
+
e.mode = Z;
|
|
898
|
+
break;
|
|
899
|
+
case je:
|
|
900
|
+
for (; o < 14; ) {
|
|
901
|
+
if (f === 0) break e;
|
|
902
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
903
|
+
}
|
|
904
|
+
if (
|
|
905
|
+
((e.nlen = (a & 31) + 257),
|
|
906
|
+
(a >>>= 5),
|
|
907
|
+
(o -= 5),
|
|
908
|
+
(e.ndist = (a & 31) + 1),
|
|
909
|
+
(a >>>= 5),
|
|
910
|
+
(o -= 5),
|
|
911
|
+
(e.ncode = (a & 15) + 4),
|
|
912
|
+
(a >>>= 4),
|
|
913
|
+
(o -= 4),
|
|
914
|
+
e.nlen > 286 || e.ndist > 30)
|
|
915
|
+
) {
|
|
916
|
+
((t.msg = "too many length or distance symbols"), (e.mode = y));
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
919
|
+
((e.have = 0), (e.mode = We));
|
|
920
|
+
case We:
|
|
921
|
+
for (; e.have < e.ncode; ) {
|
|
922
|
+
for (; o < 3; ) {
|
|
923
|
+
if (f === 0) break e;
|
|
924
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
925
|
+
}
|
|
926
|
+
((e.lens[L[e.have++]] = a & 7), (a >>>= 3), (o -= 3));
|
|
927
|
+
}
|
|
928
|
+
for (; e.have < 19; ) e.lens[L[e.have++]] = 0;
|
|
929
|
+
if (
|
|
930
|
+
((e.lencode = e.lendyn),
|
|
931
|
+
(e.lenbits = 7),
|
|
932
|
+
(b = { bits: e.lenbits }),
|
|
933
|
+
(S = X(Wt, e.lens, 0, 19, e.lencode, 0, e.work, b)),
|
|
934
|
+
(e.lenbits = b.bits),
|
|
935
|
+
S)
|
|
936
|
+
) {
|
|
937
|
+
((t.msg = "invalid code lengths set"), (e.mode = y));
|
|
938
|
+
break;
|
|
939
|
+
}
|
|
940
|
+
((e.have = 0), (e.mode = Qe));
|
|
941
|
+
case Qe:
|
|
942
|
+
for (; e.have < e.nlen + e.ndist; ) {
|
|
943
|
+
for (
|
|
944
|
+
;
|
|
945
|
+
(p = e.lencode[a & ((1 << e.lenbits) - 1)]),
|
|
946
|
+
(x = p >>> 24),
|
|
947
|
+
(T = (p >>> 16) & 255),
|
|
948
|
+
(g = p & 65535),
|
|
949
|
+
!(x <= o);
|
|
950
|
+
) {
|
|
951
|
+
if (f === 0) break e;
|
|
952
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
953
|
+
}
|
|
954
|
+
if (g < 16) ((a >>>= x), (o -= x), (e.lens[e.have++] = g));
|
|
955
|
+
else {
|
|
956
|
+
if (g === 16) {
|
|
957
|
+
for (m = x + 2; o < m; ) {
|
|
958
|
+
if (f === 0) break e;
|
|
959
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
960
|
+
}
|
|
961
|
+
if (((a >>>= x), (o -= x), e.have === 0)) {
|
|
962
|
+
((t.msg = "invalid bit length repeat"), (e.mode = y));
|
|
963
|
+
break;
|
|
964
|
+
}
|
|
965
|
+
((h = e.lens[e.have - 1]),
|
|
966
|
+
(l = 3 + (a & 3)),
|
|
967
|
+
(a >>>= 2),
|
|
968
|
+
(o -= 2));
|
|
969
|
+
} else if (g === 17) {
|
|
970
|
+
for (m = x + 3; o < m; ) {
|
|
971
|
+
if (f === 0) break e;
|
|
972
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
973
|
+
}
|
|
974
|
+
((a >>>= x),
|
|
975
|
+
(o -= x),
|
|
976
|
+
(h = 0),
|
|
977
|
+
(l = 3 + (a & 7)),
|
|
978
|
+
(a >>>= 3),
|
|
979
|
+
(o -= 3));
|
|
980
|
+
} else {
|
|
981
|
+
for (m = x + 7; o < m; ) {
|
|
982
|
+
if (f === 0) break e;
|
|
983
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
984
|
+
}
|
|
985
|
+
((a >>>= x),
|
|
986
|
+
(o -= x),
|
|
987
|
+
(h = 0),
|
|
988
|
+
(l = 11 + (a & 127)),
|
|
989
|
+
(a >>>= 7),
|
|
990
|
+
(o -= 7));
|
|
991
|
+
}
|
|
992
|
+
if (e.have + l > e.nlen + e.ndist) {
|
|
993
|
+
((t.msg = "invalid bit length repeat"), (e.mode = y));
|
|
994
|
+
break;
|
|
995
|
+
}
|
|
996
|
+
for (; l--; ) e.lens[e.have++] = h;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
if (e.mode === y) break;
|
|
1000
|
+
if (e.lens[256] === 0) {
|
|
1001
|
+
((t.msg = "invalid code -- missing end-of-block"), (e.mode = y));
|
|
1002
|
+
break;
|
|
1003
|
+
}
|
|
1004
|
+
if (
|
|
1005
|
+
((e.lenbits = 9),
|
|
1006
|
+
(b = { bits: e.lenbits }),
|
|
1007
|
+
(S = X(st, e.lens, 0, e.nlen, e.lencode, 0, e.work, b)),
|
|
1008
|
+
(e.lenbits = b.bits),
|
|
1009
|
+
S)
|
|
1010
|
+
) {
|
|
1011
|
+
((t.msg = "invalid literal/lengths set"), (e.mode = y));
|
|
1012
|
+
break;
|
|
1013
|
+
}
|
|
1014
|
+
if (
|
|
1015
|
+
((e.distbits = 6),
|
|
1016
|
+
(e.distcode = e.distdyn),
|
|
1017
|
+
(b = { bits: e.distbits }),
|
|
1018
|
+
(S = X(ft, e.lens, e.nlen, e.ndist, e.distcode, 0, e.work, b)),
|
|
1019
|
+
(e.distbits = b.bits),
|
|
1020
|
+
S)
|
|
1021
|
+
) {
|
|
1022
|
+
((t.msg = "invalid distances set"), (e.mode = y));
|
|
1023
|
+
break;
|
|
1024
|
+
}
|
|
1025
|
+
if (((e.mode = ee), i === $)) break e;
|
|
1026
|
+
case ee:
|
|
1027
|
+
e.mode = te;
|
|
1028
|
+
case te:
|
|
1029
|
+
if (f >= 6 && _ >= 258) {
|
|
1030
|
+
((t.next_out = c),
|
|
1031
|
+
(t.avail_out = _),
|
|
1032
|
+
(t.next_in = n),
|
|
1033
|
+
(t.avail_in = f),
|
|
1034
|
+
(e.hold = a),
|
|
1035
|
+
(e.bits = o),
|
|
1036
|
+
jt(t, w),
|
|
1037
|
+
(c = t.next_out),
|
|
1038
|
+
(s = t.output),
|
|
1039
|
+
(_ = t.avail_out),
|
|
1040
|
+
(n = t.next_in),
|
|
1041
|
+
(r = t.input),
|
|
1042
|
+
(f = t.avail_in),
|
|
1043
|
+
(a = e.hold),
|
|
1044
|
+
(o = e.bits),
|
|
1045
|
+
e.mode === Z && (e.back = -1));
|
|
1046
|
+
break;
|
|
1047
|
+
}
|
|
1048
|
+
for (
|
|
1049
|
+
e.back = 0;
|
|
1050
|
+
(p = e.lencode[a & ((1 << e.lenbits) - 1)]),
|
|
1051
|
+
(x = p >>> 24),
|
|
1052
|
+
(T = (p >>> 16) & 255),
|
|
1053
|
+
(g = p & 65535),
|
|
1054
|
+
!(x <= o);
|
|
1055
|
+
) {
|
|
1056
|
+
if (f === 0) break e;
|
|
1057
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
1058
|
+
}
|
|
1059
|
+
if (T && !(T & 240)) {
|
|
1060
|
+
for (
|
|
1061
|
+
d = x, E = T, A = g;
|
|
1062
|
+
(p = e.lencode[A + ((a & ((1 << (d + E)) - 1)) >> d)]),
|
|
1063
|
+
(x = p >>> 24),
|
|
1064
|
+
(T = (p >>> 16) & 255),
|
|
1065
|
+
(g = p & 65535),
|
|
1066
|
+
!(d + x <= o);
|
|
1067
|
+
) {
|
|
1068
|
+
if (f === 0) break e;
|
|
1069
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
1070
|
+
}
|
|
1071
|
+
((a >>>= d), (o -= d), (e.back += d));
|
|
1072
|
+
}
|
|
1073
|
+
if (
|
|
1074
|
+
((a >>>= x), (o -= x), (e.back += x), (e.length = g), T === 0)
|
|
1075
|
+
) {
|
|
1076
|
+
e.mode = it;
|
|
1077
|
+
break;
|
|
1078
|
+
}
|
|
1079
|
+
if (T & 32) {
|
|
1080
|
+
((e.back = -1), (e.mode = Z));
|
|
1081
|
+
break;
|
|
1082
|
+
}
|
|
1083
|
+
if (T & 64) {
|
|
1084
|
+
((t.msg = "invalid literal/length code"), (e.mode = y));
|
|
1085
|
+
break;
|
|
1086
|
+
}
|
|
1087
|
+
((e.extra = T & 15), (e.mode = Je));
|
|
1088
|
+
case Je:
|
|
1089
|
+
if (e.extra) {
|
|
1090
|
+
for (m = e.extra; o < m; ) {
|
|
1091
|
+
if (f === 0) break e;
|
|
1092
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
1093
|
+
}
|
|
1094
|
+
((e.length += a & ((1 << e.extra) - 1)),
|
|
1095
|
+
(a >>>= e.extra),
|
|
1096
|
+
(o -= e.extra),
|
|
1097
|
+
(e.back += e.extra));
|
|
1098
|
+
}
|
|
1099
|
+
((e.was = e.length), (e.mode = $e));
|
|
1100
|
+
case $e:
|
|
1101
|
+
for (
|
|
1102
|
+
;
|
|
1103
|
+
(p = e.distcode[a & ((1 << e.distbits) - 1)]),
|
|
1104
|
+
(x = p >>> 24),
|
|
1105
|
+
(T = (p >>> 16) & 255),
|
|
1106
|
+
(g = p & 65535),
|
|
1107
|
+
!(x <= o);
|
|
1108
|
+
) {
|
|
1109
|
+
if (f === 0) break e;
|
|
1110
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
1111
|
+
}
|
|
1112
|
+
if (!(T & 240)) {
|
|
1113
|
+
for (
|
|
1114
|
+
d = x, E = T, A = g;
|
|
1115
|
+
(p = e.distcode[A + ((a & ((1 << (d + E)) - 1)) >> d)]),
|
|
1116
|
+
(x = p >>> 24),
|
|
1117
|
+
(T = (p >>> 16) & 255),
|
|
1118
|
+
(g = p & 65535),
|
|
1119
|
+
!(d + x <= o);
|
|
1120
|
+
) {
|
|
1121
|
+
if (f === 0) break e;
|
|
1122
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
1123
|
+
}
|
|
1124
|
+
((a >>>= d), (o -= d), (e.back += d));
|
|
1125
|
+
}
|
|
1126
|
+
if (((a >>>= x), (o -= x), (e.back += x), T & 64)) {
|
|
1127
|
+
((t.msg = "invalid distance code"), (e.mode = y));
|
|
1128
|
+
break;
|
|
1129
|
+
}
|
|
1130
|
+
((e.offset = g), (e.extra = T & 15), (e.mode = et));
|
|
1131
|
+
case et:
|
|
1132
|
+
if (e.extra) {
|
|
1133
|
+
for (m = e.extra; o < m; ) {
|
|
1134
|
+
if (f === 0) break e;
|
|
1135
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
1136
|
+
}
|
|
1137
|
+
((e.offset += a & ((1 << e.extra) - 1)),
|
|
1138
|
+
(a >>>= e.extra),
|
|
1139
|
+
(o -= e.extra),
|
|
1140
|
+
(e.back += e.extra));
|
|
1141
|
+
}
|
|
1142
|
+
if (e.offset > e.dmax) {
|
|
1143
|
+
((t.msg = "invalid distance too far back"), (e.mode = y));
|
|
1144
|
+
break;
|
|
1145
|
+
}
|
|
1146
|
+
e.mode = tt;
|
|
1147
|
+
case tt:
|
|
1148
|
+
if (_ === 0) break e;
|
|
1149
|
+
if (((l = w - _), e.offset > l)) {
|
|
1150
|
+
if (((l = e.offset - l), l > e.whave && e.sane)) {
|
|
1151
|
+
((t.msg = "invalid distance too far back"), (e.mode = y));
|
|
1152
|
+
break;
|
|
1153
|
+
}
|
|
1154
|
+
(l > e.wnext
|
|
1155
|
+
? ((l -= e.wnext), (u = e.wsize - l))
|
|
1156
|
+
: (u = e.wnext - l),
|
|
1157
|
+
l > e.length && (l = e.length),
|
|
1158
|
+
(I = e.window));
|
|
1159
|
+
} else ((I = s), (u = c - e.offset), (l = e.length));
|
|
1160
|
+
(l > _ && (l = _), (_ -= l), (e.length -= l));
|
|
1161
|
+
do s[c++] = I[u++];
|
|
1162
|
+
while (--l);
|
|
1163
|
+
e.length === 0 && (e.mode = te);
|
|
1164
|
+
break;
|
|
1165
|
+
case it:
|
|
1166
|
+
if (_ === 0) break e;
|
|
1167
|
+
((s[c++] = e.length), _--, (e.mode = te));
|
|
1168
|
+
break;
|
|
1169
|
+
case le:
|
|
1170
|
+
if (e.wrap) {
|
|
1171
|
+
for (; o < 32; ) {
|
|
1172
|
+
if (f === 0) break e;
|
|
1173
|
+
(f--, (a |= r[n++] << o), (o += 8));
|
|
1174
|
+
}
|
|
1175
|
+
if (
|
|
1176
|
+
((w -= _),
|
|
1177
|
+
(t.total_out += w),
|
|
1178
|
+
(e.total += w),
|
|
1179
|
+
e.wrap & 4 &&
|
|
1180
|
+
w &&
|
|
1181
|
+
(t.adler = e.check =
|
|
1182
|
+
e.flags
|
|
1183
|
+
? M(e.check, s, w, c - w)
|
|
1184
|
+
: he(e.check, s, w, c - w)),
|
|
1185
|
+
(w = _),
|
|
1186
|
+
e.wrap & 4 && (e.flags ? a : at(a)) !== e.check)
|
|
1187
|
+
) {
|
|
1188
|
+
((t.msg = "incorrect data check"), (e.mode = y));
|
|
1189
|
+
break;
|
|
1190
|
+
}
|
|
1191
|
+
((a = 0), (o = 0));
|
|
1192
|
+
}
|
|
1193
|
+
e.mode = nt;
|
|
1194
|
+
case nt:
|
|
1195
|
+
if (e.wrap && e.flags) {
|
|
1196
|
+
for (; o < 32; ) {
|
|
1197
|
+
if (f === 0) break e;
|
|
1198
|
+
(f--, (a += r[n++] << o), (o += 8));
|
|
1199
|
+
}
|
|
1200
|
+
if (e.wrap & 4 && a !== (e.total & 4294967295)) {
|
|
1201
|
+
((t.msg = "incorrect length check"), (e.mode = y));
|
|
1202
|
+
break;
|
|
1203
|
+
}
|
|
1204
|
+
((a = 0), (o = 0));
|
|
1205
|
+
}
|
|
1206
|
+
e.mode = rt;
|
|
1207
|
+
case rt:
|
|
1208
|
+
S = Jt;
|
|
1209
|
+
break e;
|
|
1210
|
+
case y:
|
|
1211
|
+
S = lt;
|
|
1212
|
+
break e;
|
|
1213
|
+
case we:
|
|
1214
|
+
return ue;
|
|
1215
|
+
case ct:
|
|
1216
|
+
default:
|
|
1217
|
+
return U;
|
|
1218
|
+
}
|
|
1219
|
+
return (
|
|
1220
|
+
(t.next_out = c),
|
|
1221
|
+
(t.avail_out = _),
|
|
1222
|
+
(t.next_in = n),
|
|
1223
|
+
(t.avail_in = f),
|
|
1224
|
+
(e.hold = a),
|
|
1225
|
+
(e.bits = o),
|
|
1226
|
+
(e.wsize ||
|
|
1227
|
+
(w !== t.avail_out && e.mode < y && (e.mode < le || i !== Be))) &&
|
|
1228
|
+
xt(t, t.output, t.next_out, w - t.avail_out)
|
|
1229
|
+
? ((e.mode = we), ue)
|
|
1230
|
+
: ((v -= t.avail_in),
|
|
1231
|
+
(w -= t.avail_out),
|
|
1232
|
+
(t.total_in += v),
|
|
1233
|
+
(t.total_out += w),
|
|
1234
|
+
(e.total += w),
|
|
1235
|
+
e.wrap & 4 &&
|
|
1236
|
+
w &&
|
|
1237
|
+
(t.adler = e.check =
|
|
1238
|
+
e.flags
|
|
1239
|
+
? M(e.check, s, w, t.next_out - w)
|
|
1240
|
+
: he(e.check, s, w, t.next_out - w)),
|
|
1241
|
+
(t.data_type =
|
|
1242
|
+
e.bits +
|
|
1243
|
+
(e.last ? 64 : 0) +
|
|
1244
|
+
(e.mode === Z ? 128 : 0) +
|
|
1245
|
+
(e.mode === ee || e.mode === fe ? 256 : 0)),
|
|
1246
|
+
((v === 0 && w === 0) || i === Be) && S === P && (S = ei),
|
|
1247
|
+
S)
|
|
1248
|
+
);
|
|
1249
|
+
},
|
|
1250
|
+
li = (t) => {
|
|
1251
|
+
if (z(t)) return U;
|
|
1252
|
+
let i = t.state;
|
|
1253
|
+
return (i.window && (i.window = null), (t.state = null), P);
|
|
1254
|
+
},
|
|
1255
|
+
ci = (t, i) => {
|
|
1256
|
+
if (z(t)) return U;
|
|
1257
|
+
let e = t.state;
|
|
1258
|
+
return e.wrap & 2 ? ((e.head = i), (i.done = !1), P) : U;
|
|
1259
|
+
},
|
|
1260
|
+
di = (t, i) => {
|
|
1261
|
+
let e = i.length,
|
|
1262
|
+
r,
|
|
1263
|
+
s,
|
|
1264
|
+
n;
|
|
1265
|
+
return z(t) || ((r = t.state), r.wrap !== 0 && r.mode !== ie)
|
|
1266
|
+
? U
|
|
1267
|
+
: r.mode === ie && ((s = 1), (s = he(s, i, e, 0)), s !== r.check)
|
|
1268
|
+
? lt
|
|
1269
|
+
: ((n = xt(t, i, e, e)),
|
|
1270
|
+
n ? ((r.mode = we), ue) : ((r.havedict = 1), P));
|
|
1271
|
+
};
|
|
1272
|
+
O.exports.inflateReset = ht;
|
|
1273
|
+
O.exports.inflateReset2 = ut;
|
|
1274
|
+
O.exports.inflateResetKeep = dt;
|
|
1275
|
+
O.exports.inflateInit = oi;
|
|
1276
|
+
O.exports.inflateInit2 = wt;
|
|
1277
|
+
O.exports.inflate = fi;
|
|
1278
|
+
O.exports.inflateEnd = li;
|
|
1279
|
+
O.exports.inflateGetHeader = ci;
|
|
1280
|
+
O.exports.inflateSetDictionary = di;
|
|
1281
|
+
O.exports.inflateInfo = "pako inflate (from Nodeca project)";
|
|
1282
|
+
});
|
|
1283
|
+
var _t = R((Gi, xe) => {
|
|
1284
|
+
"use strict";
|
|
1285
|
+
var hi = (t, i) => Object.prototype.hasOwnProperty.call(t, i);
|
|
1286
|
+
xe.exports.assign = function (t) {
|
|
1287
|
+
let i = Array.prototype.slice.call(arguments, 1);
|
|
1288
|
+
for (; i.length; ) {
|
|
1289
|
+
let e = i.shift();
|
|
1290
|
+
if (e) {
|
|
1291
|
+
if (typeof e != "object") throw new TypeError(e + "must be non-object");
|
|
1292
|
+
for (let r in e) hi(e, r) && (t[r] = e[r]);
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
return t;
|
|
1296
|
+
};
|
|
1297
|
+
xe.exports.flattenChunks = (t) => {
|
|
1298
|
+
let i = 0;
|
|
1299
|
+
for (let r = 0, s = t.length; r < s; r++) i += t[r].length;
|
|
1300
|
+
let e = new Uint8Array(i);
|
|
1301
|
+
for (let r = 0, s = 0, n = t.length; r < n; r++) {
|
|
1302
|
+
let c = t[r];
|
|
1303
|
+
(e.set(c, s), (s += c.length));
|
|
1304
|
+
}
|
|
1305
|
+
return e;
|
|
1306
|
+
};
|
|
1307
|
+
});
|
|
1308
|
+
var kt = R((Yi, re) => {
|
|
1309
|
+
"use strict";
|
|
1310
|
+
var gt = !0;
|
|
1311
|
+
try {
|
|
1312
|
+
String.fromCharCode.apply(null, new Uint8Array(1));
|
|
1313
|
+
} catch {
|
|
1314
|
+
gt = !1;
|
|
1315
|
+
}
|
|
1316
|
+
var q = new Uint8Array(256);
|
|
1317
|
+
for (let t = 0; t < 256; t++)
|
|
1318
|
+
q[t] =
|
|
1319
|
+
t >= 252
|
|
1320
|
+
? 6
|
|
1321
|
+
: t >= 248
|
|
1322
|
+
? 5
|
|
1323
|
+
: t >= 240
|
|
1324
|
+
? 4
|
|
1325
|
+
: t >= 224
|
|
1326
|
+
? 3
|
|
1327
|
+
: t >= 192
|
|
1328
|
+
? 2
|
|
1329
|
+
: 1;
|
|
1330
|
+
q[254] = q[254] = 1;
|
|
1331
|
+
re.exports.string2buf = (t) => {
|
|
1332
|
+
if (typeof TextEncoder == "function" && TextEncoder.prototype.encode)
|
|
1333
|
+
return new TextEncoder().encode(t);
|
|
1334
|
+
let i,
|
|
1335
|
+
e,
|
|
1336
|
+
r,
|
|
1337
|
+
s,
|
|
1338
|
+
n,
|
|
1339
|
+
c = t.length,
|
|
1340
|
+
f = 0;
|
|
1341
|
+
for (s = 0; s < c; s++)
|
|
1342
|
+
((e = t.charCodeAt(s)),
|
|
1343
|
+
(e & 64512) === 55296 &&
|
|
1344
|
+
s + 1 < c &&
|
|
1345
|
+
((r = t.charCodeAt(s + 1)),
|
|
1346
|
+
(r & 64512) === 56320 &&
|
|
1347
|
+
((e = 65536 + ((e - 55296) << 10) + (r - 56320)), s++)),
|
|
1348
|
+
(f += e < 128 ? 1 : e < 2048 ? 2 : e < 65536 ? 3 : 4));
|
|
1349
|
+
for (i = new Uint8Array(f), n = 0, s = 0; n < f; s++)
|
|
1350
|
+
((e = t.charCodeAt(s)),
|
|
1351
|
+
(e & 64512) === 55296 &&
|
|
1352
|
+
s + 1 < c &&
|
|
1353
|
+
((r = t.charCodeAt(s + 1)),
|
|
1354
|
+
(r & 64512) === 56320 &&
|
|
1355
|
+
((e = 65536 + ((e - 55296) << 10) + (r - 56320)), s++)),
|
|
1356
|
+
e < 128
|
|
1357
|
+
? (i[n++] = e)
|
|
1358
|
+
: e < 2048
|
|
1359
|
+
? ((i[n++] = 192 | (e >>> 6)), (i[n++] = 128 | (e & 63)))
|
|
1360
|
+
: e < 65536
|
|
1361
|
+
? ((i[n++] = 224 | (e >>> 12)),
|
|
1362
|
+
(i[n++] = 128 | ((e >>> 6) & 63)),
|
|
1363
|
+
(i[n++] = 128 | (e & 63)))
|
|
1364
|
+
: ((i[n++] = 240 | (e >>> 18)),
|
|
1365
|
+
(i[n++] = 128 | ((e >>> 12) & 63)),
|
|
1366
|
+
(i[n++] = 128 | ((e >>> 6) & 63)),
|
|
1367
|
+
(i[n++] = 128 | (e & 63))));
|
|
1368
|
+
return i;
|
|
1369
|
+
};
|
|
1370
|
+
var ui = (t, i) => {
|
|
1371
|
+
if (i < 65534 && t.subarray && gt)
|
|
1372
|
+
return String.fromCharCode.apply(
|
|
1373
|
+
null,
|
|
1374
|
+
t.length === i ? t : t.subarray(0, i),
|
|
1375
|
+
);
|
|
1376
|
+
let e = "";
|
|
1377
|
+
for (let r = 0; r < i; r++) e += String.fromCharCode(t[r]);
|
|
1378
|
+
return e;
|
|
1379
|
+
};
|
|
1380
|
+
re.exports.buf2string = (t, i) => {
|
|
1381
|
+
let e = i || t.length;
|
|
1382
|
+
if (typeof TextDecoder == "function" && TextDecoder.prototype.decode)
|
|
1383
|
+
return new TextDecoder().decode(t.subarray(0, i));
|
|
1384
|
+
let r,
|
|
1385
|
+
s,
|
|
1386
|
+
n = new Array(e * 2);
|
|
1387
|
+
for (s = 0, r = 0; r < e; ) {
|
|
1388
|
+
let c = t[r++];
|
|
1389
|
+
if (c < 128) {
|
|
1390
|
+
n[s++] = c;
|
|
1391
|
+
continue;
|
|
1392
|
+
}
|
|
1393
|
+
let f = q[c];
|
|
1394
|
+
if (f > 4) {
|
|
1395
|
+
((n[s++] = 65533), (r += f - 1));
|
|
1396
|
+
continue;
|
|
1397
|
+
}
|
|
1398
|
+
for (c &= f === 2 ? 31 : f === 3 ? 15 : 7; f > 1 && r < e; )
|
|
1399
|
+
((c = (c << 6) | (t[r++] & 63)), f--);
|
|
1400
|
+
if (f > 1) {
|
|
1401
|
+
n[s++] = 65533;
|
|
1402
|
+
continue;
|
|
1403
|
+
}
|
|
1404
|
+
c < 65536
|
|
1405
|
+
? (n[s++] = c)
|
|
1406
|
+
: ((c -= 65536),
|
|
1407
|
+
(n[s++] = 55296 | ((c >> 10) & 1023)),
|
|
1408
|
+
(n[s++] = 56320 | (c & 1023)));
|
|
1409
|
+
}
|
|
1410
|
+
return ui(n, s);
|
|
1411
|
+
};
|
|
1412
|
+
re.exports.utf8border = (t, i) => {
|
|
1413
|
+
((i = i || t.length), i > t.length && (i = t.length));
|
|
1414
|
+
let e = i - 1;
|
|
1415
|
+
for (; e >= 0 && (t[e] & 192) === 128; ) e--;
|
|
1416
|
+
return e < 0 || e === 0 ? i : e + q[t[e]] > i ? e : i;
|
|
1417
|
+
};
|
|
1418
|
+
});
|
|
1419
|
+
var Et = R((Xi, pt) => {
|
|
1420
|
+
"use strict";
|
|
1421
|
+
pt.exports = {
|
|
1422
|
+
2: "need dictionary",
|
|
1423
|
+
1: "stream end",
|
|
1424
|
+
0: "",
|
|
1425
|
+
"-1": "file error",
|
|
1426
|
+
"-2": "stream error",
|
|
1427
|
+
"-3": "data error",
|
|
1428
|
+
"-4": "insufficient memory",
|
|
1429
|
+
"-5": "buffer error",
|
|
1430
|
+
"-6": "incompatible version",
|
|
1431
|
+
};
|
|
1432
|
+
});
|
|
1433
|
+
var St = R((qi, mt) => {
|
|
1434
|
+
"use strict";
|
|
1435
|
+
function wi() {
|
|
1436
|
+
((this.input = null),
|
|
1437
|
+
(this.next_in = 0),
|
|
1438
|
+
(this.avail_in = 0),
|
|
1439
|
+
(this.total_in = 0),
|
|
1440
|
+
(this.output = null),
|
|
1441
|
+
(this.next_out = 0),
|
|
1442
|
+
(this.avail_out = 0),
|
|
1443
|
+
(this.total_out = 0),
|
|
1444
|
+
(this.msg = ""),
|
|
1445
|
+
(this.state = null),
|
|
1446
|
+
(this.data_type = 2),
|
|
1447
|
+
(this.adler = 0));
|
|
1448
|
+
}
|
|
1449
|
+
mt.exports = wi;
|
|
1450
|
+
});
|
|
1451
|
+
var vt = R((Ki, Tt) => {
|
|
1452
|
+
"use strict";
|
|
1453
|
+
function xi() {
|
|
1454
|
+
((this.text = 0),
|
|
1455
|
+
(this.time = 0),
|
|
1456
|
+
(this.xflags = 0),
|
|
1457
|
+
(this.os = 0),
|
|
1458
|
+
(this.extra = null),
|
|
1459
|
+
(this.extra_len = 0),
|
|
1460
|
+
(this.name = ""),
|
|
1461
|
+
(this.comment = ""),
|
|
1462
|
+
(this.hcrc = 0),
|
|
1463
|
+
(this.done = !1));
|
|
1464
|
+
}
|
|
1465
|
+
Tt.exports = xi;
|
|
1466
|
+
});
|
|
1467
|
+
var Rt = R((ji, V) => {
|
|
1468
|
+
"use strict";
|
|
1469
|
+
var B = bt(),
|
|
1470
|
+
At = _t(),
|
|
1471
|
+
ge = kt(),
|
|
1472
|
+
ke = Et(),
|
|
1473
|
+
bi = St(),
|
|
1474
|
+
_i = vt(),
|
|
1475
|
+
It = Object.prototype.toString,
|
|
1476
|
+
{
|
|
1477
|
+
Z_NO_FLUSH: gi,
|
|
1478
|
+
Z_FINISH: ki,
|
|
1479
|
+
Z_OK: K,
|
|
1480
|
+
Z_STREAM_END: be,
|
|
1481
|
+
Z_NEED_DICT: _e,
|
|
1482
|
+
Z_STREAM_ERROR: pi,
|
|
1483
|
+
Z_DATA_ERROR: yt,
|
|
1484
|
+
Z_MEM_ERROR: Ei,
|
|
1485
|
+
} = J();
|
|
1486
|
+
function j(t) {
|
|
1487
|
+
this.options = At.assign(
|
|
1488
|
+
{ chunkSize: 1024 * 64, windowBits: 15, to: "" },
|
|
1489
|
+
t || {},
|
|
1490
|
+
);
|
|
1491
|
+
let i = this.options;
|
|
1492
|
+
(i.raw &&
|
|
1493
|
+
i.windowBits >= 0 &&
|
|
1494
|
+
i.windowBits < 16 &&
|
|
1495
|
+
((i.windowBits = -i.windowBits),
|
|
1496
|
+
i.windowBits === 0 && (i.windowBits = -15)),
|
|
1497
|
+
i.windowBits >= 0 &&
|
|
1498
|
+
i.windowBits < 16 &&
|
|
1499
|
+
!(t && t.windowBits) &&
|
|
1500
|
+
(i.windowBits += 32),
|
|
1501
|
+
i.windowBits > 15 &&
|
|
1502
|
+
i.windowBits < 48 &&
|
|
1503
|
+
(i.windowBits & 15 || (i.windowBits |= 15)),
|
|
1504
|
+
(this.err = 0),
|
|
1505
|
+
(this.msg = ""),
|
|
1506
|
+
(this.ended = !1),
|
|
1507
|
+
(this.chunks = []),
|
|
1508
|
+
(this.strm = new bi()),
|
|
1509
|
+
(this.strm.avail_out = 0));
|
|
1510
|
+
let e = B.inflateInit2(this.strm, i.windowBits);
|
|
1511
|
+
if (e !== K) throw new Error(ke[e]);
|
|
1512
|
+
if (
|
|
1513
|
+
((this.header = new _i()),
|
|
1514
|
+
B.inflateGetHeader(this.strm, this.header),
|
|
1515
|
+
i.dictionary &&
|
|
1516
|
+
(typeof i.dictionary == "string"
|
|
1517
|
+
? (i.dictionary = ge.string2buf(i.dictionary))
|
|
1518
|
+
: It.call(i.dictionary) === "[object ArrayBuffer]" &&
|
|
1519
|
+
(i.dictionary = new Uint8Array(i.dictionary)),
|
|
1520
|
+
i.raw &&
|
|
1521
|
+
((e = B.inflateSetDictionary(this.strm, i.dictionary)), e !== K)))
|
|
1522
|
+
)
|
|
1523
|
+
throw new Error(ke[e]);
|
|
1524
|
+
}
|
|
1525
|
+
j.prototype.push = function (t, i) {
|
|
1526
|
+
let e = this.strm,
|
|
1527
|
+
r = this.options.chunkSize,
|
|
1528
|
+
s = this.options.dictionary,
|
|
1529
|
+
n,
|
|
1530
|
+
c,
|
|
1531
|
+
f;
|
|
1532
|
+
if (this.ended) return !1;
|
|
1533
|
+
for (
|
|
1534
|
+
i === ~~i ? (c = i) : (c = i === !0 ? ki : gi),
|
|
1535
|
+
It.call(t) === "[object ArrayBuffer]"
|
|
1536
|
+
? (e.input = new Uint8Array(t))
|
|
1537
|
+
: (e.input = t),
|
|
1538
|
+
e.next_in = 0,
|
|
1539
|
+
e.avail_in = e.input.length;
|
|
1540
|
+
;
|
|
1541
|
+
) {
|
|
1542
|
+
for (
|
|
1543
|
+
e.avail_out === 0 &&
|
|
1544
|
+
((e.output = new Uint8Array(r)), (e.next_out = 0), (e.avail_out = r)),
|
|
1545
|
+
n = B.inflate(e, c),
|
|
1546
|
+
n === _e &&
|
|
1547
|
+
s &&
|
|
1548
|
+
((n = B.inflateSetDictionary(e, s)),
|
|
1549
|
+
n === K ? (n = B.inflate(e, c)) : n === yt && (n = _e));
|
|
1550
|
+
e.avail_in > 0 && n === be && e.state.wrap > 0 && t[e.next_in] !== 0;
|
|
1551
|
+
)
|
|
1552
|
+
(B.inflateReset(e), (n = B.inflate(e, c)));
|
|
1553
|
+
switch (n) {
|
|
1554
|
+
case pi:
|
|
1555
|
+
case yt:
|
|
1556
|
+
case _e:
|
|
1557
|
+
case Ei:
|
|
1558
|
+
return (this.onEnd(n), (this.ended = !0), !1);
|
|
1559
|
+
}
|
|
1560
|
+
if (((f = e.avail_out), e.next_out && (e.avail_out === 0 || n === be)))
|
|
1561
|
+
if (this.options.to === "string") {
|
|
1562
|
+
let _ = ge.utf8border(e.output, e.next_out),
|
|
1563
|
+
a = e.next_out - _,
|
|
1564
|
+
o = ge.buf2string(e.output, _);
|
|
1565
|
+
((e.next_out = a),
|
|
1566
|
+
(e.avail_out = r - a),
|
|
1567
|
+
a && e.output.set(e.output.subarray(_, _ + a), 0),
|
|
1568
|
+
this.onData(o));
|
|
1569
|
+
} else
|
|
1570
|
+
this.onData(
|
|
1571
|
+
e.output.length === e.next_out
|
|
1572
|
+
? e.output
|
|
1573
|
+
: e.output.subarray(0, e.next_out),
|
|
1574
|
+
);
|
|
1575
|
+
if (!(n === K && f === 0)) {
|
|
1576
|
+
if (n === be)
|
|
1577
|
+
return (
|
|
1578
|
+
(n = B.inflateEnd(this.strm)),
|
|
1579
|
+
this.onEnd(n),
|
|
1580
|
+
(this.ended = !0),
|
|
1581
|
+
!0
|
|
1582
|
+
);
|
|
1583
|
+
if (e.avail_in === 0) break;
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
return !0;
|
|
1587
|
+
};
|
|
1588
|
+
j.prototype.onData = function (t) {
|
|
1589
|
+
this.chunks.push(t);
|
|
1590
|
+
};
|
|
1591
|
+
j.prototype.onEnd = function (t) {
|
|
1592
|
+
(t === K &&
|
|
1593
|
+
(this.options.to === "string"
|
|
1594
|
+
? (this.result = this.chunks.join(""))
|
|
1595
|
+
: (this.result = At.flattenChunks(this.chunks))),
|
|
1596
|
+
(this.chunks = []),
|
|
1597
|
+
(this.err = t),
|
|
1598
|
+
(this.msg = this.strm.msg));
|
|
1599
|
+
};
|
|
1600
|
+
function pe(t, i) {
|
|
1601
|
+
let e = new j(i);
|
|
1602
|
+
if ((e.push(t), e.err)) throw e.msg || ke[e.err];
|
|
1603
|
+
return e.result;
|
|
1604
|
+
}
|
|
1605
|
+
function mi(t, i) {
|
|
1606
|
+
return ((i = i || {}), (i.raw = !0), pe(t, i));
|
|
1607
|
+
}
|
|
1608
|
+
V.exports.Inflate = j;
|
|
1609
|
+
V.exports.inflate = pe;
|
|
1610
|
+
V.exports.inflateRaw = mi;
|
|
1611
|
+
V.exports.ungzip = pe;
|
|
1612
|
+
V.exports.constants = J();
|
|
1613
|
+
});
|
|
1614
|
+
var Nt = 1953029805,
|
|
1615
|
+
Mt = 2917034100;
|
|
1616
|
+
function oe(t, i) {
|
|
1617
|
+
if (oe.passThroughDataForTesting) return i;
|
|
1618
|
+
(ae.typeOf.object("key", t), ae.typeOf.object("data", i));
|
|
1619
|
+
let e = t.byteLength;
|
|
1620
|
+
if (e === 0 || e % 4 !== 0)
|
|
1621
|
+
throw new D(
|
|
1622
|
+
"The length of key must be greater than 0 and a multiple of 4.",
|
|
1623
|
+
);
|
|
1624
|
+
let r = new DataView(i),
|
|
1625
|
+
s = r.getUint32(0, !0);
|
|
1626
|
+
if (s === Nt || s === Mt) return i;
|
|
1627
|
+
let n = new DataView(t),
|
|
1628
|
+
c = 0,
|
|
1629
|
+
f = i.byteLength,
|
|
1630
|
+
_ = f - (f % 8),
|
|
1631
|
+
a = e,
|
|
1632
|
+
o,
|
|
1633
|
+
v = 8;
|
|
1634
|
+
for (; c < _; )
|
|
1635
|
+
for (v = (v + 8) % 24, o = v; c < _ && o < a; )
|
|
1636
|
+
(r.setUint32(c, r.getUint32(c, !0) ^ n.getUint32(o, !0), !0),
|
|
1637
|
+
r.setUint32(c + 4, r.getUint32(c + 4, !0) ^ n.getUint32(o + 4, !0), !0),
|
|
1638
|
+
(c += 8),
|
|
1639
|
+
(o += 24));
|
|
1640
|
+
if (c < f)
|
|
1641
|
+
for (o >= a && ((v = (v + 8) % 24), (o = v)); c < f; )
|
|
1642
|
+
(r.setUint8(c, r.getUint8(c) ^ n.getUint8(o)), c++, o++);
|
|
1643
|
+
}
|
|
1644
|
+
oe.passThroughDataForTesting = !1;
|
|
1645
|
+
var Te = oe;
|
|
1646
|
+
function Zt(t, i) {
|
|
1647
|
+
return (t & i) !== 0;
|
|
1648
|
+
}
|
|
1649
|
+
var F = Zt;
|
|
1650
|
+
var Bt = [1, 2, 4, 8],
|
|
1651
|
+
ve = 15,
|
|
1652
|
+
Ct = 16,
|
|
1653
|
+
Lt = 64,
|
|
1654
|
+
Pt = 128;
|
|
1655
|
+
function N(t, i, e, r, s, n) {
|
|
1656
|
+
((this._bits = t),
|
|
1657
|
+
(this.cnodeVersion = i),
|
|
1658
|
+
(this.imageryVersion = e),
|
|
1659
|
+
(this.terrainVersion = r),
|
|
1660
|
+
(this.imageryProvider = s),
|
|
1661
|
+
(this.terrainProvider = n),
|
|
1662
|
+
(this.ancestorHasTerrain = !1),
|
|
1663
|
+
(this.terrainState = void 0));
|
|
1664
|
+
}
|
|
1665
|
+
N.clone = function (t, i) {
|
|
1666
|
+
return (
|
|
1667
|
+
me(i)
|
|
1668
|
+
? ((i._bits = t._bits),
|
|
1669
|
+
(i.cnodeVersion = t.cnodeVersion),
|
|
1670
|
+
(i.imageryVersion = t.imageryVersion),
|
|
1671
|
+
(i.terrainVersion = t.terrainVersion),
|
|
1672
|
+
(i.imageryProvider = t.imageryProvider),
|
|
1673
|
+
(i.terrainProvider = t.terrainProvider))
|
|
1674
|
+
: (i = new N(
|
|
1675
|
+
t._bits,
|
|
1676
|
+
t.cnodeVersion,
|
|
1677
|
+
t.imageryVersion,
|
|
1678
|
+
t.terrainVersion,
|
|
1679
|
+
t.imageryProvider,
|
|
1680
|
+
t.terrainProvider,
|
|
1681
|
+
)),
|
|
1682
|
+
(i.ancestorHasTerrain = t.ancestorHasTerrain),
|
|
1683
|
+
(i.terrainState = t.terrainState),
|
|
1684
|
+
i
|
|
1685
|
+
);
|
|
1686
|
+
};
|
|
1687
|
+
N.prototype.setParent = function (t) {
|
|
1688
|
+
this.ancestorHasTerrain = t.ancestorHasTerrain || this.hasTerrain();
|
|
1689
|
+
};
|
|
1690
|
+
N.prototype.hasSubtree = function () {
|
|
1691
|
+
return F(this._bits, Ct);
|
|
1692
|
+
};
|
|
1693
|
+
N.prototype.hasImagery = function () {
|
|
1694
|
+
return F(this._bits, Lt);
|
|
1695
|
+
};
|
|
1696
|
+
N.prototype.hasTerrain = function () {
|
|
1697
|
+
return F(this._bits, Pt);
|
|
1698
|
+
};
|
|
1699
|
+
N.prototype.hasChildren = function () {
|
|
1700
|
+
return F(this._bits, ve);
|
|
1701
|
+
};
|
|
1702
|
+
N.prototype.hasChild = function (t) {
|
|
1703
|
+
return F(this._bits, Bt[t]);
|
|
1704
|
+
};
|
|
1705
|
+
N.prototype.getChildBitmask = function () {
|
|
1706
|
+
return this._bits & ve;
|
|
1707
|
+
};
|
|
1708
|
+
var ye = N;
|
|
1709
|
+
var Ut = Ot(Rt(), 1);
|
|
1710
|
+
var G = Uint16Array.BYTES_PER_ELEMENT,
|
|
1711
|
+
H = Int32Array.BYTES_PER_ELEMENT,
|
|
1712
|
+
Y = Uint32Array.BYTES_PER_ELEMENT,
|
|
1713
|
+
C = { METADATA: 0, TERRAIN: 1, DBROOT: 2 };
|
|
1714
|
+
C.fromString = function (t) {
|
|
1715
|
+
if (t === "Metadata") return C.METADATA;
|
|
1716
|
+
if (t === "Terrain") return C.TERRAIN;
|
|
1717
|
+
if (t === "DbRoot") return C.DBROOT;
|
|
1718
|
+
};
|
|
1719
|
+
function Si(t, i) {
|
|
1720
|
+
let e = C.fromString(t.type),
|
|
1721
|
+
r = t.buffer;
|
|
1722
|
+
Te(t.key, r);
|
|
1723
|
+
let s = Di(r);
|
|
1724
|
+
r = s.buffer;
|
|
1725
|
+
let n = s.length;
|
|
1726
|
+
switch (e) {
|
|
1727
|
+
case C.METADATA:
|
|
1728
|
+
return vi(r, n, t.quadKey);
|
|
1729
|
+
case C.TERRAIN:
|
|
1730
|
+
return Ii(r, n, i);
|
|
1731
|
+
case C.DBROOT:
|
|
1732
|
+
return (i.push(r), { buffer: r });
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
var Ti = 32301;
|
|
1736
|
+
function vi(t, i, e) {
|
|
1737
|
+
let r = new DataView(t),
|
|
1738
|
+
s = 0,
|
|
1739
|
+
n = r.getUint32(s, !0);
|
|
1740
|
+
if (((s += Y), n !== Ti)) throw new D("Invalid magic");
|
|
1741
|
+
let c = r.getUint32(s, !0);
|
|
1742
|
+
if (((s += Y), c !== 1))
|
|
1743
|
+
throw new D("Invalid data type. Must be 1 for QuadTreePacket");
|
|
1744
|
+
let f = r.getUint32(s, !0);
|
|
1745
|
+
if (((s += Y), f !== 2))
|
|
1746
|
+
throw new D("Invalid QuadTreePacket version. Only version 2 is supported.");
|
|
1747
|
+
let _ = r.getInt32(s, !0);
|
|
1748
|
+
s += H;
|
|
1749
|
+
let a = r.getInt32(s, !0);
|
|
1750
|
+
if (((s += H), a !== 32)) throw new D("Invalid instance size.");
|
|
1751
|
+
let o = r.getInt32(s, !0);
|
|
1752
|
+
s += H;
|
|
1753
|
+
let v = r.getInt32(s, !0);
|
|
1754
|
+
s += H;
|
|
1755
|
+
let w = r.getInt32(s, !0);
|
|
1756
|
+
if (((s += H), o !== _ * a + s)) throw new D("Invalid dataBufferOffset");
|
|
1757
|
+
if (o + v + w !== i) throw new D("Invalid packet offsets");
|
|
1758
|
+
let l = [];
|
|
1759
|
+
for (let g = 0; g < _; ++g) {
|
|
1760
|
+
let d = r.getUint8(s);
|
|
1761
|
+
(++s, ++s);
|
|
1762
|
+
let E = r.getUint16(s, !0);
|
|
1763
|
+
s += G;
|
|
1764
|
+
let A = r.getUint16(s, !0);
|
|
1765
|
+
s += G;
|
|
1766
|
+
let h = r.getUint16(s, !0);
|
|
1767
|
+
((s += G), (s += G), (s += G), (s += H), (s += H), (s += 8));
|
|
1768
|
+
let S = r.getUint8(s++),
|
|
1769
|
+
k = r.getUint8(s++);
|
|
1770
|
+
((s += G), l.push(new ye(d, E, A, h, S, k)));
|
|
1771
|
+
}
|
|
1772
|
+
let u = [],
|
|
1773
|
+
I = 0;
|
|
1774
|
+
function p(g, d, E) {
|
|
1775
|
+
let A = !1;
|
|
1776
|
+
if (E === 4) {
|
|
1777
|
+
if (d.hasSubtree()) return;
|
|
1778
|
+
A = !0;
|
|
1779
|
+
}
|
|
1780
|
+
for (let h = 0; h < 4; ++h) {
|
|
1781
|
+
let S = g + h.toString();
|
|
1782
|
+
if (A) u[S] = null;
|
|
1783
|
+
else if (E < 4)
|
|
1784
|
+
if (!d.hasChild(h)) u[S] = null;
|
|
1785
|
+
else {
|
|
1786
|
+
if (I === _) {
|
|
1787
|
+
console.log("Incorrect number of instances");
|
|
1788
|
+
return;
|
|
1789
|
+
}
|
|
1790
|
+
let k = l[I++];
|
|
1791
|
+
((u[S] = k), p(S, k, E + 1));
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
let x = 0,
|
|
1796
|
+
T = l[I++];
|
|
1797
|
+
return (e === "" ? ++x : (u[e] = T), p(e, T, x), u);
|
|
1798
|
+
}
|
|
1799
|
+
var yi = 5,
|
|
1800
|
+
Ai = 4;
|
|
1801
|
+
function Ii(t, i, e) {
|
|
1802
|
+
let r = new DataView(t),
|
|
1803
|
+
s = function (f) {
|
|
1804
|
+
for (let _ = 0; _ < Ai; ++_) {
|
|
1805
|
+
let a = r.getUint32(f, !0);
|
|
1806
|
+
if (((f += Y), (f += a), f > i))
|
|
1807
|
+
throw new D("Malformed terrain packet found.");
|
|
1808
|
+
}
|
|
1809
|
+
return f;
|
|
1810
|
+
},
|
|
1811
|
+
n = 0,
|
|
1812
|
+
c = [];
|
|
1813
|
+
for (; c.length < yi; ) {
|
|
1814
|
+
let f = n;
|
|
1815
|
+
n = s(n);
|
|
1816
|
+
let _ = t.slice(f, n);
|
|
1817
|
+
(e.push(_), c.push(_));
|
|
1818
|
+
}
|
|
1819
|
+
return c;
|
|
1820
|
+
}
|
|
1821
|
+
var Dt = 1953029805,
|
|
1822
|
+
Ri = 2917034100;
|
|
1823
|
+
function Di(t) {
|
|
1824
|
+
let i = new DataView(t),
|
|
1825
|
+
e = 0,
|
|
1826
|
+
r = i.getUint32(e, !0);
|
|
1827
|
+
if (((e += Y), r !== Dt && r !== Ri)) throw new D("Invalid magic");
|
|
1828
|
+
let s = i.getUint32(e, r === Dt);
|
|
1829
|
+
e += Y;
|
|
1830
|
+
let n = new Uint8Array(t, e),
|
|
1831
|
+
c = Ut.default.inflate(n);
|
|
1832
|
+
if (c.length !== s) throw new D("Size of packet doesn't match header");
|
|
1833
|
+
return c;
|
|
1834
|
+
}
|
|
1835
|
+
var en = Se(Si);
|
|
1836
|
+
export { en as default };
|