create-swdg-frontend 0.1.7 → 0.2.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.
Files changed (440) hide show
  1. package/README.md +31 -13
  2. package/bin/index.js +3 -244
  3. package/lib/argv.js +43 -0
  4. package/lib/cli.js +141 -0
  5. package/lib/constants.js +24 -0
  6. package/lib/gis.js +92 -0
  7. package/lib/manifest.js +23 -0
  8. package/lib/prompts.js +55 -0
  9. package/lib/scaffold.js +118 -0
  10. package/package.json +6 -2
  11. package/scripts/sync-template.js +120 -0
  12. package/scripts/validate-template.mjs +74 -0
  13. package/stubs/tsconfig.node.json +11 -0
  14. package/stubs/types-env.d.ts +9 -0
  15. package/stubs/vite.config.ts +64 -0
  16. package/template/.env.example +6 -0
  17. package/template/.github/workflows/ci.yml +23 -0
  18. package/template/.github/workflows/release.yml +69 -0
  19. package/template/.stylelintrc.json +7 -1
  20. package/template/README.md +95 -32
  21. package/template/auto-imports.d.ts +10 -0
  22. package/template/docs/MAINTAINER.md +77 -0
  23. package/template/docs/ONBOARDING.md +284 -0
  24. package/template/docs/TESTING.md +104 -0
  25. package/template/package.json +48 -41
  26. package/template/pnpm-lock.yaml +6360 -0
  27. package/template/scripts/gen-api.cjs +20 -7
  28. package/template/scripts/release.mjs +22 -28
  29. package/template/scripts/set-release-version.mjs +46 -0
  30. package/template/scripts/test-pipeline.mjs +85 -0
  31. package/template/scripts/test-scaffold.mjs +197 -0
  32. package/template/scripts/test-template.mjs +52 -0
  33. package/template/scripts/verify.mjs +28 -0
  34. package/template/scripts/vite-plugin-cesium-dev.ts +56 -0
  35. package/template/src/api/README.md +4 -0
  36. package/template/src/components/Body/index.vue +65 -35
  37. package/template/src/components/CesiumViewer/index.vue +36 -0
  38. package/template/src/components/Header/index.vue +16 -5
  39. package/template/src/components/OnboardingDeck/index.vue +449 -0
  40. package/template/src/data/onboardingSlides.ts +208 -0
  41. package/template/src/main.ts +1 -0
  42. package/template/src/router/index.ts +20 -14
  43. package/template/src/router/routeUtils.ts +13 -0
  44. package/template/src/styles/shell.css +232 -0
  45. package/template/src/utils/axios-middleware.js +1 -1
  46. package/template/src/utils/cesium/index.ts +71 -0
  47. package/template/src/utils/composables/useFeatureGis.ts +24 -0
  48. package/template/src/views/examples/cesium/index.vue +85 -0
  49. package/template/src/views/examples/guide/index.vue +42 -0
  50. package/template/src/views/examples/test/index.vue +63 -0
  51. package/template/src/views/index.vue +2 -3
  52. package/template/tests/README.md +1 -0
  53. package/template/tests/unit/onboardingSlides.test.ts +20 -0
  54. package/template/tests/unit/router.utils.test.ts +21 -0
  55. package/template/tests/unit/scaffold.lib.test.ts +44 -0
  56. package/template/tests/unit/useFeatureGis.test.ts +14 -0
  57. package/template/tsconfig.json +17 -17
  58. package/template/tsconfig.node.json +1 -1
  59. package/template/types/env.d.ts +13 -0
  60. package/template/vite.config.ts +26 -5
  61. package/template/vitest.config.ts +13 -0
  62. package/template/.env +0 -1
  63. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +0 -1012
  64. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +0 -1012
  65. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +0 -1012
  66. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +0 -1012
  67. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +0 -1012
  68. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +0 -1012
  69. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +0 -1012
  70. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +0 -1012
  71. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +0 -1012
  72. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +0 -1012
  73. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +0 -1012
  74. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +0 -1012
  75. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +0 -1012
  76. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +0 -1012
  77. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +0 -1012
  78. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +0 -1012
  79. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +0 -1012
  80. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +0 -1012
  81. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +0 -1012
  82. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +0 -1012
  83. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +0 -438
  84. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +0 -1012
  85. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +0 -1012
  86. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +0 -1012
  87. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +0 -1012
  88. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +0 -1012
  89. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +0 -1012
  90. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +0 -1012
  91. package/template/public/Cesium1.119/Assets/Images/bing_maps_credit.png +0 -0
  92. package/template/public/Cesium1.119/Assets/Images/cesium_credit.png +0 -0
  93. package/template/public/Cesium1.119/Assets/Images/google_earth_credit.png +0 -0
  94. package/template/public/Cesium1.119/Assets/Images/ion-credit.png +0 -0
  95. package/template/public/Cesium1.119/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  96. package/template/public/Cesium1.119/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  97. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  98. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  99. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  100. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  101. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  102. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  103. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  104. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  105. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  106. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  107. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  108. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  109. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  110. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  111. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  112. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  113. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  114. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  115. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  116. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  117. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  118. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  119. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  120. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  121. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  122. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  123. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  124. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  125. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  126. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  127. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  128. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  129. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  130. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  131. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  132. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  133. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  134. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  135. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  136. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  137. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  138. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  139. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/tilemapresource.xml +0 -14
  140. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  141. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  142. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  143. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  144. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  145. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  146. package/template/public/Cesium1.119/Assets/Textures/maki/airfield.png +0 -0
  147. package/template/public/Cesium1.119/Assets/Textures/maki/airport.png +0 -0
  148. package/template/public/Cesium1.119/Assets/Textures/maki/alcohol-shop.png +0 -0
  149. package/template/public/Cesium1.119/Assets/Textures/maki/america-football.png +0 -0
  150. package/template/public/Cesium1.119/Assets/Textures/maki/art-gallery.png +0 -0
  151. package/template/public/Cesium1.119/Assets/Textures/maki/bakery.png +0 -0
  152. package/template/public/Cesium1.119/Assets/Textures/maki/bank.png +0 -0
  153. package/template/public/Cesium1.119/Assets/Textures/maki/bar.png +0 -0
  154. package/template/public/Cesium1.119/Assets/Textures/maki/baseball.png +0 -0
  155. package/template/public/Cesium1.119/Assets/Textures/maki/basketball.png +0 -0
  156. package/template/public/Cesium1.119/Assets/Textures/maki/beer.png +0 -0
  157. package/template/public/Cesium1.119/Assets/Textures/maki/bicycle.png +0 -0
  158. package/template/public/Cesium1.119/Assets/Textures/maki/building.png +0 -0
  159. package/template/public/Cesium1.119/Assets/Textures/maki/bus.png +0 -0
  160. package/template/public/Cesium1.119/Assets/Textures/maki/cafe.png +0 -0
  161. package/template/public/Cesium1.119/Assets/Textures/maki/camera.png +0 -0
  162. package/template/public/Cesium1.119/Assets/Textures/maki/campsite.png +0 -0
  163. package/template/public/Cesium1.119/Assets/Textures/maki/car.png +0 -0
  164. package/template/public/Cesium1.119/Assets/Textures/maki/cemetery.png +0 -0
  165. package/template/public/Cesium1.119/Assets/Textures/maki/cesium.png +0 -0
  166. package/template/public/Cesium1.119/Assets/Textures/maki/chemist.png +0 -0
  167. package/template/public/Cesium1.119/Assets/Textures/maki/cinema.png +0 -0
  168. package/template/public/Cesium1.119/Assets/Textures/maki/circle-stroked.png +0 -0
  169. package/template/public/Cesium1.119/Assets/Textures/maki/circle.png +0 -0
  170. package/template/public/Cesium1.119/Assets/Textures/maki/city.png +0 -0
  171. package/template/public/Cesium1.119/Assets/Textures/maki/clothing-store.png +0 -0
  172. package/template/public/Cesium1.119/Assets/Textures/maki/college.png +0 -0
  173. package/template/public/Cesium1.119/Assets/Textures/maki/commercial.png +0 -0
  174. package/template/public/Cesium1.119/Assets/Textures/maki/cricket.png +0 -0
  175. package/template/public/Cesium1.119/Assets/Textures/maki/cross.png +0 -0
  176. package/template/public/Cesium1.119/Assets/Textures/maki/dam.png +0 -0
  177. package/template/public/Cesium1.119/Assets/Textures/maki/danger.png +0 -0
  178. package/template/public/Cesium1.119/Assets/Textures/maki/disability.png +0 -0
  179. package/template/public/Cesium1.119/Assets/Textures/maki/dog-park.png +0 -0
  180. package/template/public/Cesium1.119/Assets/Textures/maki/embassy.png +0 -0
  181. package/template/public/Cesium1.119/Assets/Textures/maki/emergency-telephone.png +0 -0
  182. package/template/public/Cesium1.119/Assets/Textures/maki/entrance.png +0 -0
  183. package/template/public/Cesium1.119/Assets/Textures/maki/farm.png +0 -0
  184. package/template/public/Cesium1.119/Assets/Textures/maki/fast-food.png +0 -0
  185. package/template/public/Cesium1.119/Assets/Textures/maki/ferry.png +0 -0
  186. package/template/public/Cesium1.119/Assets/Textures/maki/fire-station.png +0 -0
  187. package/template/public/Cesium1.119/Assets/Textures/maki/fuel.png +0 -0
  188. package/template/public/Cesium1.119/Assets/Textures/maki/garden.png +0 -0
  189. package/template/public/Cesium1.119/Assets/Textures/maki/gift.png +0 -0
  190. package/template/public/Cesium1.119/Assets/Textures/maki/golf.png +0 -0
  191. package/template/public/Cesium1.119/Assets/Textures/maki/grocery.png +0 -0
  192. package/template/public/Cesium1.119/Assets/Textures/maki/hairdresser.png +0 -0
  193. package/template/public/Cesium1.119/Assets/Textures/maki/harbor.png +0 -0
  194. package/template/public/Cesium1.119/Assets/Textures/maki/heart.png +0 -0
  195. package/template/public/Cesium1.119/Assets/Textures/maki/heliport.png +0 -0
  196. package/template/public/Cesium1.119/Assets/Textures/maki/hospital.png +0 -0
  197. package/template/public/Cesium1.119/Assets/Textures/maki/ice-cream.png +0 -0
  198. package/template/public/Cesium1.119/Assets/Textures/maki/industrial.png +0 -0
  199. package/template/public/Cesium1.119/Assets/Textures/maki/land-use.png +0 -0
  200. package/template/public/Cesium1.119/Assets/Textures/maki/laundry.png +0 -0
  201. package/template/public/Cesium1.119/Assets/Textures/maki/library.png +0 -0
  202. package/template/public/Cesium1.119/Assets/Textures/maki/lighthouse.png +0 -0
  203. package/template/public/Cesium1.119/Assets/Textures/maki/lodging.png +0 -0
  204. package/template/public/Cesium1.119/Assets/Textures/maki/logging.png +0 -0
  205. package/template/public/Cesium1.119/Assets/Textures/maki/london-underground.png +0 -0
  206. package/template/public/Cesium1.119/Assets/Textures/maki/marker-stroked.png +0 -0
  207. package/template/public/Cesium1.119/Assets/Textures/maki/marker.png +0 -0
  208. package/template/public/Cesium1.119/Assets/Textures/maki/minefield.png +0 -0
  209. package/template/public/Cesium1.119/Assets/Textures/maki/mobilephone.png +0 -0
  210. package/template/public/Cesium1.119/Assets/Textures/maki/monument.png +0 -0
  211. package/template/public/Cesium1.119/Assets/Textures/maki/museum.png +0 -0
  212. package/template/public/Cesium1.119/Assets/Textures/maki/music.png +0 -0
  213. package/template/public/Cesium1.119/Assets/Textures/maki/oil-well.png +0 -0
  214. package/template/public/Cesium1.119/Assets/Textures/maki/park.png +0 -0
  215. package/template/public/Cesium1.119/Assets/Textures/maki/park2.png +0 -0
  216. package/template/public/Cesium1.119/Assets/Textures/maki/parking-garage.png +0 -0
  217. package/template/public/Cesium1.119/Assets/Textures/maki/parking.png +0 -0
  218. package/template/public/Cesium1.119/Assets/Textures/maki/pharmacy.png +0 -0
  219. package/template/public/Cesium1.119/Assets/Textures/maki/pitch.png +0 -0
  220. package/template/public/Cesium1.119/Assets/Textures/maki/place-of-worship.png +0 -0
  221. package/template/public/Cesium1.119/Assets/Textures/maki/playground.png +0 -0
  222. package/template/public/Cesium1.119/Assets/Textures/maki/police.png +0 -0
  223. package/template/public/Cesium1.119/Assets/Textures/maki/polling-place.png +0 -0
  224. package/template/public/Cesium1.119/Assets/Textures/maki/post.png +0 -0
  225. package/template/public/Cesium1.119/Assets/Textures/maki/prison.png +0 -0
  226. package/template/public/Cesium1.119/Assets/Textures/maki/rail-above.png +0 -0
  227. package/template/public/Cesium1.119/Assets/Textures/maki/rail-light.png +0 -0
  228. package/template/public/Cesium1.119/Assets/Textures/maki/rail-metro.png +0 -0
  229. package/template/public/Cesium1.119/Assets/Textures/maki/rail-underground.png +0 -0
  230. package/template/public/Cesium1.119/Assets/Textures/maki/rail.png +0 -0
  231. package/template/public/Cesium1.119/Assets/Textures/maki/religious-christian.png +0 -0
  232. package/template/public/Cesium1.119/Assets/Textures/maki/religious-jewish.png +0 -0
  233. package/template/public/Cesium1.119/Assets/Textures/maki/religious-muslim.png +0 -0
  234. package/template/public/Cesium1.119/Assets/Textures/maki/restaurant.png +0 -0
  235. package/template/public/Cesium1.119/Assets/Textures/maki/roadblock.png +0 -0
  236. package/template/public/Cesium1.119/Assets/Textures/maki/rocket.png +0 -0
  237. package/template/public/Cesium1.119/Assets/Textures/maki/school.png +0 -0
  238. package/template/public/Cesium1.119/Assets/Textures/maki/scooter.png +0 -0
  239. package/template/public/Cesium1.119/Assets/Textures/maki/shop.png +0 -0
  240. package/template/public/Cesium1.119/Assets/Textures/maki/skiing.png +0 -0
  241. package/template/public/Cesium1.119/Assets/Textures/maki/slaughterhouse.png +0 -0
  242. package/template/public/Cesium1.119/Assets/Textures/maki/soccer.png +0 -0
  243. package/template/public/Cesium1.119/Assets/Textures/maki/square-stroked.png +0 -0
  244. package/template/public/Cesium1.119/Assets/Textures/maki/square.png +0 -0
  245. package/template/public/Cesium1.119/Assets/Textures/maki/star-stroked.png +0 -0
  246. package/template/public/Cesium1.119/Assets/Textures/maki/star.png +0 -0
  247. package/template/public/Cesium1.119/Assets/Textures/maki/suitcase.png +0 -0
  248. package/template/public/Cesium1.119/Assets/Textures/maki/swimming.png +0 -0
  249. package/template/public/Cesium1.119/Assets/Textures/maki/telephone.png +0 -0
  250. package/template/public/Cesium1.119/Assets/Textures/maki/tennis.png +0 -0
  251. package/template/public/Cesium1.119/Assets/Textures/maki/theatre.png +0 -0
  252. package/template/public/Cesium1.119/Assets/Textures/maki/toilets.png +0 -0
  253. package/template/public/Cesium1.119/Assets/Textures/maki/town-hall.png +0 -0
  254. package/template/public/Cesium1.119/Assets/Textures/maki/town.png +0 -0
  255. package/template/public/Cesium1.119/Assets/Textures/maki/triangle-stroked.png +0 -0
  256. package/template/public/Cesium1.119/Assets/Textures/maki/triangle.png +0 -0
  257. package/template/public/Cesium1.119/Assets/Textures/maki/village.png +0 -0
  258. package/template/public/Cesium1.119/Assets/Textures/maki/warehouse.png +0 -0
  259. package/template/public/Cesium1.119/Assets/Textures/maki/waste-basket.png +0 -0
  260. package/template/public/Cesium1.119/Assets/Textures/maki/water.png +0 -0
  261. package/template/public/Cesium1.119/Assets/Textures/maki/wetland.png +0 -0
  262. package/template/public/Cesium1.119/Assets/Textures/maki/zoo.png +0 -0
  263. package/template/public/Cesium1.119/Assets/Textures/moonSmall.jpg +0 -0
  264. package/template/public/Cesium1.119/Assets/Textures/pin.svg +0 -1
  265. package/template/public/Cesium1.119/Assets/Textures/waterNormals.jpg +0 -0
  266. package/template/public/Cesium1.119/Assets/Textures/waterNormalsSmall.jpg +0 -0
  267. package/template/public/Cesium1.119/Assets/approximateTerrainHeights.json +0 -10924
  268. package/template/public/Cesium1.119/Cesium.js +0 -185772
  269. package/template/public/Cesium1.119/ThirdParty/Workers/package.json +0 -3
  270. package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +0 -1681
  271. package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +0 -1489
  272. package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +0 -1070
  273. package/template/public/Cesium1.119/ThirdParty/basis_transcoder.wasm +0 -0
  274. package/template/public/Cesium1.119/ThirdParty/draco_decoder.wasm +0 -0
  275. package/template/public/Cesium1.119/ThirdParty/google-earth-dbroot-parser.js +0 -11424
  276. package/template/public/Cesium1.119/Widgets/Animation/Animation.css +0 -127
  277. package/template/public/Cesium1.119/Widgets/Animation/lighter.css +0 -78
  278. package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +0 -112
  279. package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +0 -28
  280. package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +0 -104
  281. package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +0 -115
  282. package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +0 -119
  283. package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +0 -14
  284. package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +0 -8
  285. package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +0 -72
  286. package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +0 -17
  287. package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +0 -27
  288. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  289. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  290. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  291. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
  292. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
  293. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
  294. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
  295. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
  296. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
  297. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
  298. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
  299. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
  300. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
  301. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
  302. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
  303. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  304. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  305. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
  306. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
  307. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Mouse.svg +0 -84
  308. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +0 -76
  309. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +0 -76
  310. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +0 -76
  311. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +0 -120
  312. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +0 -129
  313. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +0 -76
  314. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +0 -135
  315. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +0 -74
  316. package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
  317. package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
  318. package/template/public/Cesium1.119/Widgets/Images/TimelineIcons.png +0 -0
  319. package/template/public/Cesium1.119/Widgets/Images/info-loading.gif +0 -0
  320. package/template/public/Cesium1.119/Widgets/InfoBox/InfoBox.css +0 -94
  321. package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +0 -178
  322. package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +0 -95
  323. package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +0 -38
  324. package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +0 -15
  325. package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +0 -46
  326. package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +0 -72
  327. package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +0 -22
  328. package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +0 -103
  329. package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +0 -18
  330. package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +0 -8
  331. package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +0 -107
  332. package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +0 -18
  333. package/template/public/Cesium1.119/Widgets/lighter.css +0 -246
  334. package/template/public/Cesium1.119/Widgets/lighterShared.css +0 -46
  335. package/template/public/Cesium1.119/Widgets/shared.css +0 -103
  336. package/template/public/Cesium1.119/Widgets/widgets.css +0 -1376
  337. package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +0 -611
  338. package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +0 -166
  339. package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +0 -264
  340. package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +0 -128
  341. package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +0 -8046
  342. package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +0 -341
  343. package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +0 -269
  344. package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +0 -28
  345. package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +0 -199
  346. package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +0 -1102
  347. package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +0 -485
  348. package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +0 -76
  349. package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +0 -91
  350. package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +0 -42
  351. package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +0 -2678
  352. package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +0 -516
  353. package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +0 -399
  354. package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +0 -65
  355. package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +0 -92
  356. package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +0 -672
  357. package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +0 -287
  358. package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +0 -50
  359. package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +0 -28
  360. package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +0 -124
  361. package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +0 -31
  362. package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +0 -331
  363. package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +0 -258
  364. package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +0 -162
  365. package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +0 -773
  366. package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +0 -162
  367. package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +0 -857
  368. package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +0 -183
  369. package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +0 -85
  370. package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +0 -108
  371. package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +0 -73
  372. package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +0 -2372
  373. package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +0 -73
  374. package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +0 -538
  375. package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +0 -1670
  376. package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +0 -392
  377. package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +0 -57
  378. package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +0 -72
  379. package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +0 -37
  380. package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +0 -814
  381. package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +0 -579
  382. package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +0 -376
  383. package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +0 -111
  384. package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +0 -573
  385. package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +0 -633
  386. package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +0 -271
  387. package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +0 -173
  388. package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +0 -217
  389. package/template/public/Cesium1.119/Workers/combineGeometry.js +0 -53
  390. package/template/public/Cesium1.119/Workers/createBoxGeometry.js +0 -45
  391. package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +0 -189
  392. package/template/public/Cesium1.119/Workers/createCircleGeometry.js +0 -148
  393. package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +0 -105
  394. package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +0 -293
  395. package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +0 -143
  396. package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +0 -830
  397. package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +0 -417
  398. package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +0 -47
  399. package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +0 -170
  400. package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +0 -58
  401. package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +0 -51
  402. package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +0 -46
  403. package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +0 -45
  404. package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +0 -45
  405. package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +0 -164
  406. package/template/public/Cesium1.119/Workers/createGeometry.js +0 -159
  407. package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +0 -911
  408. package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +0 -185
  409. package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +0 -93
  410. package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +0 -884
  411. package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +0 -359
  412. package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +0 -349
  413. package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +0 -262
  414. package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +0 -177
  415. package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +0 -787
  416. package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +0 -299
  417. package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +0 -294
  418. package/template/public/Cesium1.119/Workers/createSphereGeometry.js +0 -84
  419. package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +0 -83
  420. package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +0 -28
  421. package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +0 -289
  422. package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +0 -258
  423. package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +0 -79
  424. package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +0 -275
  425. package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +0 -176
  426. package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +0 -375
  427. package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +0 -1772
  428. package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -425
  429. package/template/public/Cesium1.119/Workers/createWallGeometry.js +0 -320
  430. package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +0 -229
  431. package/template/public/Cesium1.119/Workers/decodeDraco.js +0 -227
  432. package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +0 -1836
  433. package/template/public/Cesium1.119/Workers/decodeI3S.js +0 -924
  434. package/template/public/Cesium1.119/Workers/transcodeKTX2.js +0 -3180
  435. package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +0 -34
  436. package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +0 -534
  437. package/template/public/Cesium1.119/index.cjs +0 -185632
  438. package/template/public/Cesium1.119/index.js +0 -182874
  439. package/template/src/views/Test/index.vue +0 -56
  440. package/template/tests/unit/example.test.ts +0 -7
@@ -1,1681 +0,0 @@
1
- /*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */ (function (
2
- v,
3
- z,
4
- ) {
5
- typeof exports == "object" && typeof module < "u"
6
- ? z(exports)
7
- : typeof define == "function" && define.amd
8
- ? define(["exports"], z)
9
- : z(((v = typeof globalThis < "u" ? globalThis : v || self).pako = {}));
10
- })(this, function (v) {
11
- "use strict";
12
- function z(e) {
13
- let s = e.length;
14
- for (; --s >= 0; ) e[s] = 0;
15
- }
16
- const oe = 256,
17
- Ae = 286,
18
- H = 30,
19
- M = 15,
20
- de = new Uint8Array([
21
- 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5,
22
- 5, 5, 5, 0,
23
- ]),
24
- ae = new Uint8Array([
25
- 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10,
26
- 11, 11, 12, 12, 13, 13,
27
- ]),
28
- ra = new Uint8Array([
29
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7,
30
- ]),
31
- Ee = new Uint8Array([
32
- 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15,
33
- ]),
34
- Z = new Array(576);
35
- z(Z);
36
- const P = new Array(60);
37
- z(P);
38
- const j = new Array(512);
39
- z(j);
40
- const K = new Array(256);
41
- z(K);
42
- const ue = new Array(29);
43
- z(ue);
44
- const se = new Array(H);
45
- function fe(e, s, a, r, n) {
46
- ((this.static_tree = e),
47
- (this.extra_bits = s),
48
- (this.extra_base = a),
49
- (this.elems = r),
50
- (this.max_length = n),
51
- (this.has_stree = e && e.length));
52
- }
53
- let Ze, Ue, Re;
54
- function ce(e, s) {
55
- ((this.dyn_tree = e), (this.max_code = 0), (this.stat_desc = s));
56
- }
57
- z(se);
58
- const Se = (e) => (e < 256 ? j[e] : j[256 + (e >>> 7)]),
59
- Y = (e, s) => {
60
- ((e.pending_buf[e.pending++] = 255 & s),
61
- (e.pending_buf[e.pending++] = (s >>> 8) & 255));
62
- },
63
- p = (e, s, a) => {
64
- e.bi_valid > 16 - a
65
- ? ((e.bi_buf |= (s << e.bi_valid) & 65535),
66
- Y(e, e.bi_buf),
67
- (e.bi_buf = s >> (16 - e.bi_valid)),
68
- (e.bi_valid += a - 16))
69
- : ((e.bi_buf |= (s << e.bi_valid) & 65535), (e.bi_valid += a));
70
- },
71
- k = (e, s, a) => {
72
- p(e, a[2 * s], a[2 * s + 1]);
73
- },
74
- Te = (e, s) => {
75
- let a = 0;
76
- do ((a |= 1 & e), (e >>>= 1), (a <<= 1));
77
- while (--s > 0);
78
- return a >>> 1;
79
- },
80
- Le = (e, s, a) => {
81
- const r = new Array(16);
82
- let n,
83
- i,
84
- _ = 0;
85
- for (n = 1; n <= M; n++) ((_ = (_ + a[n - 1]) << 1), (r[n] = _));
86
- for (i = 0; i <= s; i++) {
87
- let t = e[2 * i + 1];
88
- t !== 0 && (e[2 * i] = Te(r[t]++, t));
89
- }
90
- },
91
- Fe = (e) => {
92
- let s;
93
- for (s = 0; s < Ae; s++) e.dyn_ltree[2 * s] = 0;
94
- for (s = 0; s < H; s++) e.dyn_dtree[2 * s] = 0;
95
- for (s = 0; s < 19; s++) e.bl_tree[2 * s] = 0;
96
- ((e.dyn_ltree[512] = 1),
97
- (e.opt_len = e.static_len = 0),
98
- (e.sym_next = e.matches = 0));
99
- },
100
- Oe = (e) => {
101
- (e.bi_valid > 8
102
- ? Y(e, e.bi_buf)
103
- : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf),
104
- (e.bi_buf = 0),
105
- (e.bi_valid = 0));
106
- },
107
- De = (e, s, a, r) => {
108
- const n = 2 * s,
109
- i = 2 * a;
110
- return e[n] < e[i] || (e[n] === e[i] && r[s] <= r[a]);
111
- },
112
- pe = (e, s, a) => {
113
- const r = e.heap[a];
114
- let n = a << 1;
115
- for (
116
- ;
117
- n <= e.heap_len &&
118
- (n < e.heap_len && De(s, e.heap[n + 1], e.heap[n], e.depth) && n++,
119
- !De(s, r, e.heap[n], e.depth));
120
- )
121
- ((e.heap[a] = e.heap[n]), (a = n), (n <<= 1));
122
- e.heap[a] = r;
123
- },
124
- Ne = (e, s, a) => {
125
- let r,
126
- n,
127
- i,
128
- _,
129
- t = 0;
130
- if (e.sym_next !== 0)
131
- do
132
- ((r = 255 & e.pending_buf[e.sym_buf + t++]),
133
- (r += (255 & e.pending_buf[e.sym_buf + t++]) << 8),
134
- (n = e.pending_buf[e.sym_buf + t++]),
135
- r === 0
136
- ? k(e, n, s)
137
- : ((i = K[n]),
138
- k(e, i + oe + 1, s),
139
- (_ = de[i]),
140
- _ !== 0 && ((n -= ue[i]), p(e, n, _)),
141
- r--,
142
- (i = Se(r)),
143
- k(e, i, a),
144
- (_ = ae[i]),
145
- _ !== 0 && ((r -= se[i]), p(e, r, _))));
146
- while (t < e.sym_next);
147
- k(e, 256, s);
148
- },
149
- ge = (e, s) => {
150
- const a = s.dyn_tree,
151
- r = s.stat_desc.static_tree,
152
- n = s.stat_desc.has_stree,
153
- i = s.stat_desc.elems;
154
- let _,
155
- t,
156
- h,
157
- l = -1;
158
- for (e.heap_len = 0, e.heap_max = 573, _ = 0; _ < i; _++)
159
- a[2 * _] !== 0
160
- ? ((e.heap[++e.heap_len] = l = _), (e.depth[_] = 0))
161
- : (a[2 * _ + 1] = 0);
162
- for (; e.heap_len < 2; )
163
- ((h = e.heap[++e.heap_len] = l < 2 ? ++l : 0),
164
- (a[2 * h] = 1),
165
- (e.depth[h] = 0),
166
- e.opt_len--,
167
- n && (e.static_len -= r[2 * h + 1]));
168
- for (s.max_code = l, _ = e.heap_len >> 1; _ >= 1; _--) pe(e, a, _);
169
- h = i;
170
- do
171
- ((_ = e.heap[1]),
172
- (e.heap[1] = e.heap[e.heap_len--]),
173
- pe(e, a, 1),
174
- (t = e.heap[1]),
175
- (e.heap[--e.heap_max] = _),
176
- (e.heap[--e.heap_max] = t),
177
- (a[2 * h] = a[2 * _] + a[2 * t]),
178
- (e.depth[h] =
179
- (e.depth[_] >= e.depth[t] ? e.depth[_] : e.depth[t]) + 1),
180
- (a[2 * _ + 1] = a[2 * t + 1] = h),
181
- (e.heap[1] = h++),
182
- pe(e, a, 1));
183
- while (e.heap_len >= 2);
184
- ((e.heap[--e.heap_max] = e.heap[1]),
185
- ((u, d) => {
186
- const m = d.dyn_tree,
187
- V = d.max_code,
188
- _e = d.stat_desc.static_tree,
189
- Na = d.stat_desc.has_stree,
190
- Ia = d.stat_desc.extra_bits,
191
- na = d.stat_desc.extra_base,
192
- $ = d.stat_desc.max_length;
193
- let ee,
194
- y,
195
- B,
196
- f,
197
- le,
198
- xe,
199
- he = 0;
200
- for (f = 0; f <= M; f++) u.bl_count[f] = 0;
201
- for (
202
- m[2 * u.heap[u.heap_max] + 1] = 0, ee = u.heap_max + 1;
203
- ee < 573;
204
- ee++
205
- )
206
- ((y = u.heap[ee]),
207
- (f = m[2 * m[2 * y + 1] + 1] + 1),
208
- f > $ && ((f = $), he++),
209
- (m[2 * y + 1] = f),
210
- y > V ||
211
- (u.bl_count[f]++,
212
- (le = 0),
213
- y >= na && (le = Ia[y - na]),
214
- (xe = m[2 * y]),
215
- (u.opt_len += xe * (f + le)),
216
- Na && (u.static_len += xe * (_e[2 * y + 1] + le))));
217
- if (he !== 0) {
218
- do {
219
- for (f = $ - 1; u.bl_count[f] === 0; ) f--;
220
- (u.bl_count[f]--,
221
- (u.bl_count[f + 1] += 2),
222
- u.bl_count[$]--,
223
- (he -= 2));
224
- } while (he > 0);
225
- for (f = $; f !== 0; f--)
226
- for (y = u.bl_count[f]; y !== 0; )
227
- ((B = u.heap[--ee]),
228
- B > V ||
229
- (m[2 * B + 1] !== f &&
230
- ((u.opt_len += (f - m[2 * B + 1]) * m[2 * B]),
231
- (m[2 * B + 1] = f)),
232
- y--));
233
- }
234
- })(e, s),
235
- Le(a, l, e.bl_count));
236
- },
237
- Ie = (e, s, a) => {
238
- let r,
239
- n,
240
- i = -1,
241
- _ = s[1],
242
- t = 0,
243
- h = 7,
244
- l = 4;
245
- for (
246
- _ === 0 && ((h = 138), (l = 3)), s[2 * (a + 1) + 1] = 65535, r = 0;
247
- r <= a;
248
- r++
249
- )
250
- ((n = _),
251
- (_ = s[2 * (r + 1) + 1]),
252
- (++t < h && n === _) ||
253
- (t < l
254
- ? (e.bl_tree[2 * n] += t)
255
- : n !== 0
256
- ? (n !== i && e.bl_tree[2 * n]++, e.bl_tree[32]++)
257
- : t <= 10
258
- ? e.bl_tree[34]++
259
- : e.bl_tree[36]++,
260
- (t = 0),
261
- (i = n),
262
- _ === 0
263
- ? ((h = 138), (l = 3))
264
- : n === _
265
- ? ((h = 6), (l = 3))
266
- : ((h = 7), (l = 4))));
267
- },
268
- Ce = (e, s, a) => {
269
- let r,
270
- n,
271
- i = -1,
272
- _ = s[1],
273
- t = 0,
274
- h = 7,
275
- l = 4;
276
- for (_ === 0 && ((h = 138), (l = 3)), r = 0; r <= a; r++)
277
- if (((n = _), (_ = s[2 * (r + 1) + 1]), !(++t < h && n === _))) {
278
- if (t < l)
279
- do k(e, n, e.bl_tree);
280
- while (--t != 0);
281
- else
282
- n !== 0
283
- ? (n !== i && (k(e, n, e.bl_tree), t--),
284
- k(e, 16, e.bl_tree),
285
- p(e, t - 3, 2))
286
- : t <= 10
287
- ? (k(e, 17, e.bl_tree), p(e, t - 3, 3))
288
- : (k(e, 18, e.bl_tree), p(e, t - 11, 7));
289
- ((t = 0),
290
- (i = n),
291
- _ === 0
292
- ? ((h = 138), (l = 3))
293
- : n === _
294
- ? ((h = 6), (l = 3))
295
- : ((h = 7), (l = 4)));
296
- }
297
- };
298
- let Be = !1;
299
- const He = (e, s, a, r) => {
300
- (p(e, 0 + (r ? 1 : 0), 3),
301
- Oe(e),
302
- Y(e, a),
303
- Y(e, ~a),
304
- a && e.pending_buf.set(e.window.subarray(s, s + a), e.pending),
305
- (e.pending += a));
306
- };
307
- var ia = (e, s, a, r) => {
308
- let n,
309
- i,
310
- _ = 0;
311
- (e.level > 0
312
- ? (e.strm.data_type === 2 &&
313
- (e.strm.data_type = ((t) => {
314
- let h,
315
- l = 4093624447;
316
- for (h = 0; h <= 31; h++, l >>>= 1)
317
- if (1 & l && t.dyn_ltree[2 * h] !== 0) return 0;
318
- if (
319
- t.dyn_ltree[18] !== 0 ||
320
- t.dyn_ltree[20] !== 0 ||
321
- t.dyn_ltree[26] !== 0
322
- )
323
- return 1;
324
- for (h = 32; h < oe; h++) if (t.dyn_ltree[2 * h] !== 0) return 1;
325
- return 0;
326
- })(e)),
327
- ge(e, e.l_desc),
328
- ge(e, e.d_desc),
329
- (_ = ((t) => {
330
- let h;
331
- for (
332
- Ie(t, t.dyn_ltree, t.l_desc.max_code),
333
- Ie(t, t.dyn_dtree, t.d_desc.max_code),
334
- ge(t, t.bl_desc),
335
- h = 18;
336
- h >= 3 && t.bl_tree[2 * Ee[h] + 1] === 0;
337
- h--
338
- );
339
- return ((t.opt_len += 3 * (h + 1) + 5 + 5 + 4), h);
340
- })(e)),
341
- (n = (e.opt_len + 3 + 7) >>> 3),
342
- (i = (e.static_len + 3 + 7) >>> 3),
343
- i <= n && (n = i))
344
- : (n = i = a + 5),
345
- a + 4 <= n && s !== -1
346
- ? He(e, s, a, r)
347
- : e.strategy === 4 || i === n
348
- ? (p(e, 2 + (r ? 1 : 0), 3), Ne(e, Z, P))
349
- : (p(e, 4 + (r ? 1 : 0), 3),
350
- ((t, h, l, u) => {
351
- let d;
352
- for (
353
- p(t, h - 257, 5), p(t, l - 1, 5), p(t, u - 4, 4), d = 0;
354
- d < u;
355
- d++
356
- )
357
- p(t, t.bl_tree[2 * Ee[d] + 1], 3);
358
- (Ce(t, t.dyn_ltree, h - 1), Ce(t, t.dyn_dtree, l - 1));
359
- })(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, _ + 1),
360
- Ne(e, e.dyn_ltree, e.dyn_dtree)),
361
- Fe(e),
362
- r && Oe(e));
363
- },
364
- ta = {
365
- _tr_init: (e) => {
366
- (Be ||
367
- ((() => {
368
- let s, a, r, n, i;
369
- const _ = new Array(16);
370
- for (r = 0, n = 0; n < 28; n++)
371
- for (ue[n] = r, s = 0; s < 1 << de[n]; s++) K[r++] = n;
372
- for (K[r - 1] = n, i = 0, n = 0; n < 16; n++)
373
- for (se[n] = i, s = 0; s < 1 << ae[n]; s++) j[i++] = n;
374
- for (i >>= 7; n < H; n++)
375
- for (se[n] = i << 7, s = 0; s < 1 << (ae[n] - 7); s++)
376
- j[256 + i++] = n;
377
- for (a = 0; a <= M; a++) _[a] = 0;
378
- for (s = 0; s <= 143; ) ((Z[2 * s + 1] = 8), s++, _[8]++);
379
- for (; s <= 255; ) ((Z[2 * s + 1] = 9), s++, _[9]++);
380
- for (; s <= 279; ) ((Z[2 * s + 1] = 7), s++, _[7]++);
381
- for (; s <= 287; ) ((Z[2 * s + 1] = 8), s++, _[8]++);
382
- for (Le(Z, 287, _), s = 0; s < H; s++)
383
- ((P[2 * s + 1] = 5), (P[2 * s] = Te(s, 5)));
384
- ((Ze = new fe(Z, de, 257, Ae, M)),
385
- (Ue = new fe(P, ae, 0, H, M)),
386
- (Re = new fe(new Array(0), ra, 0, 19, 7)));
387
- })(),
388
- (Be = !0)),
389
- (e.l_desc = new ce(e.dyn_ltree, Ze)),
390
- (e.d_desc = new ce(e.dyn_dtree, Ue)),
391
- (e.bl_desc = new ce(e.bl_tree, Re)),
392
- (e.bi_buf = 0),
393
- (e.bi_valid = 0),
394
- Fe(e));
395
- },
396
- _tr_stored_block: He,
397
- _tr_flush_block: ia,
398
- _tr_tally: (e, s, a) => (
399
- (e.pending_buf[e.sym_buf + e.sym_next++] = s),
400
- (e.pending_buf[e.sym_buf + e.sym_next++] = s >> 8),
401
- (e.pending_buf[e.sym_buf + e.sym_next++] = a),
402
- s === 0
403
- ? e.dyn_ltree[2 * a]++
404
- : (e.matches++,
405
- s--,
406
- e.dyn_ltree[2 * (K[a] + oe + 1)]++,
407
- e.dyn_dtree[2 * Se(s)]++),
408
- e.sym_next === e.sym_end
409
- ),
410
- _tr_align: (e) => {
411
- (p(e, 2, 3),
412
- k(e, 256, Z),
413
- ((s) => {
414
- s.bi_valid === 16
415
- ? (Y(s, s.bi_buf), (s.bi_buf = 0), (s.bi_valid = 0))
416
- : s.bi_valid >= 8 &&
417
- ((s.pending_buf[s.pending++] = 255 & s.bi_buf),
418
- (s.bi_buf >>= 8),
419
- (s.bi_valid -= 8));
420
- })(e));
421
- },
422
- },
423
- Me = (e, s, a, r) => {
424
- let n = (65535 & e) | 0,
425
- i = ((e >>> 16) & 65535) | 0,
426
- _ = 0;
427
- for (; a !== 0; ) {
428
- ((_ = a > 2e3 ? 2e3 : a), (a -= _));
429
- do ((n = (n + s[r++]) | 0), (i = (i + n) | 0));
430
- while (--_);
431
- ((n %= 65521), (i %= 65521));
432
- }
433
- return n | (i << 16) | 0;
434
- };
435
- const _a = new Uint32Array(
436
- (() => {
437
- let e,
438
- s = [];
439
- for (var a = 0; a < 256; a++) {
440
- e = a;
441
- for (var r = 0; r < 8; r++)
442
- e = 1 & e ? 3988292384 ^ (e >>> 1) : e >>> 1;
443
- s[a] = e;
444
- }
445
- return s;
446
- })(),
447
- );
448
- var U = (e, s, a, r) => {
449
- const n = _a,
450
- i = r + a;
451
- e ^= -1;
452
- for (let _ = r; _ < i; _++) e = (e >>> 8) ^ n[255 & (e ^ s[_])];
453
- return -1 ^ e;
454
- },
455
- ne = {
456
- 2: "need dictionary",
457
- 1: "stream end",
458
- 0: "",
459
- "-1": "file error",
460
- "-2": "stream error",
461
- "-3": "data error",
462
- "-4": "insufficient memory",
463
- "-5": "buffer error",
464
- "-6": "incompatible version",
465
- },
466
- we = {
467
- Z_NO_FLUSH: 0,
468
- Z_PARTIAL_FLUSH: 1,
469
- Z_SYNC_FLUSH: 2,
470
- Z_FULL_FLUSH: 3,
471
- Z_FINISH: 4,
472
- Z_BLOCK: 5,
473
- Z_TREES: 6,
474
- Z_OK: 0,
475
- Z_STREAM_END: 1,
476
- Z_NEED_DICT: 2,
477
- Z_ERRNO: -1,
478
- Z_STREAM_ERROR: -2,
479
- Z_DATA_ERROR: -3,
480
- Z_MEM_ERROR: -4,
481
- Z_BUF_ERROR: -5,
482
- Z_NO_COMPRESSION: 0,
483
- Z_BEST_SPEED: 1,
484
- Z_BEST_COMPRESSION: 9,
485
- Z_DEFAULT_COMPRESSION: -1,
486
- Z_FILTERED: 1,
487
- Z_HUFFMAN_ONLY: 2,
488
- Z_RLE: 3,
489
- Z_FIXED: 4,
490
- Z_DEFAULT_STRATEGY: 0,
491
- Z_BINARY: 0,
492
- Z_TEXT: 1,
493
- Z_UNKNOWN: 2,
494
- Z_DEFLATED: 8,
495
- };
496
- const {
497
- _tr_init: la,
498
- _tr_stored_block: me,
499
- _tr_flush_block: ha,
500
- _tr_tally: R,
501
- _tr_align: oa,
502
- } = ta,
503
- {
504
- Z_NO_FLUSH: S,
505
- Z_PARTIAL_FLUSH: da,
506
- Z_FULL_FLUSH: ua,
507
- Z_FINISH: b,
508
- Z_BLOCK: Pe,
509
- Z_OK: c,
510
- Z_STREAM_END: je,
511
- Z_STREAM_ERROR: x,
512
- Z_DATA_ERROR: fa,
513
- Z_BUF_ERROR: be,
514
- Z_DEFAULT_COMPRESSION: ca,
515
- Z_FILTERED: pa,
516
- Z_HUFFMAN_ONLY: re,
517
- Z_RLE: ga,
518
- Z_FIXED: wa,
519
- Z_DEFAULT_STRATEGY: ma,
520
- Z_UNKNOWN: ba,
521
- Z_DEFLATED: ie,
522
- } = we,
523
- F = 258,
524
- A = 262,
525
- N = 42,
526
- O = 113,
527
- G = 666,
528
- D = (e, s) => ((e.msg = ne[s]), s),
529
- Ke = (e) => 2 * e - (e > 4 ? 9 : 0),
530
- T = (e) => {
531
- let s = e.length;
532
- for (; --s >= 0; ) e[s] = 0;
533
- },
534
- ya = (e) => {
535
- let s,
536
- a,
537
- r,
538
- n = e.w_size;
539
- ((s = e.hash_size), (r = s));
540
- do ((a = e.head[--r]), (e.head[r] = a >= n ? a - n : 0));
541
- while (--s);
542
- ((s = n), (r = s));
543
- do ((a = e.prev[--r]), (e.prev[r] = a >= n ? a - n : 0));
544
- while (--s);
545
- };
546
- let L = (e, s, a) => ((s << e.hash_shift) ^ a) & e.hash_mask;
547
- const g = (e) => {
548
- const s = e.state;
549
- let a = s.pending;
550
- (a > e.avail_out && (a = e.avail_out),
551
- a !== 0 &&
552
- (e.output.set(
553
- s.pending_buf.subarray(s.pending_out, s.pending_out + a),
554
- e.next_out,
555
- ),
556
- (e.next_out += a),
557
- (s.pending_out += a),
558
- (e.total_out += a),
559
- (e.avail_out -= a),
560
- (s.pending -= a),
561
- s.pending === 0 && (s.pending_out = 0)));
562
- },
563
- w = (e, s) => {
564
- (ha(
565
- e,
566
- e.block_start >= 0 ? e.block_start : -1,
567
- e.strstart - e.block_start,
568
- s,
569
- ),
570
- (e.block_start = e.strstart),
571
- g(e.strm));
572
- },
573
- o = (e, s) => {
574
- e.pending_buf[e.pending++] = s;
575
- },
576
- X = (e, s) => {
577
- ((e.pending_buf[e.pending++] = (s >>> 8) & 255),
578
- (e.pending_buf[e.pending++] = 255 & s));
579
- },
580
- ye = (e, s, a, r) => {
581
- let n = e.avail_in;
582
- return (
583
- n > r && (n = r),
584
- n === 0
585
- ? 0
586
- : ((e.avail_in -= n),
587
- s.set(e.input.subarray(e.next_in, e.next_in + n), a),
588
- e.state.wrap === 1
589
- ? (e.adler = Me(e.adler, s, n, a))
590
- : e.state.wrap === 2 && (e.adler = U(e.adler, s, n, a)),
591
- (e.next_in += n),
592
- (e.total_in += n),
593
- n)
594
- );
595
- },
596
- Ye = (e, s) => {
597
- let a,
598
- r,
599
- n = e.max_chain_length,
600
- i = e.strstart,
601
- _ = e.prev_length,
602
- t = e.nice_match;
603
- const h = e.strstart > e.w_size - A ? e.strstart - (e.w_size - A) : 0,
604
- l = e.window,
605
- u = e.w_mask,
606
- d = e.prev,
607
- m = e.strstart + F;
608
- let V = l[i + _ - 1],
609
- _e = l[i + _];
610
- (e.prev_length >= e.good_match && (n >>= 2),
611
- t > e.lookahead && (t = e.lookahead));
612
- do
613
- if (
614
- ((a = s),
615
- l[a + _] === _e &&
616
- l[a + _ - 1] === V &&
617
- l[a] === l[i] &&
618
- l[++a] === l[i + 1])
619
- ) {
620
- ((i += 2), a++);
621
- do;
622
- while (
623
- l[++i] === l[++a] &&
624
- l[++i] === l[++a] &&
625
- l[++i] === l[++a] &&
626
- l[++i] === l[++a] &&
627
- l[++i] === l[++a] &&
628
- l[++i] === l[++a] &&
629
- l[++i] === l[++a] &&
630
- l[++i] === l[++a] &&
631
- i < m
632
- );
633
- if (((r = F - (m - i)), (i = m - F), r > _)) {
634
- if (((e.match_start = s), (_ = r), r >= t)) break;
635
- ((V = l[i + _ - 1]), (_e = l[i + _]));
636
- }
637
- }
638
- while ((s = d[s & u]) > h && --n != 0);
639
- return _ <= e.lookahead ? _ : e.lookahead;
640
- },
641
- I = (e) => {
642
- const s = e.w_size;
643
- let a, r, n;
644
- do {
645
- if (
646
- ((r = e.window_size - e.lookahead - e.strstart),
647
- e.strstart >= s + (s - A) &&
648
- (e.window.set(e.window.subarray(s, s + s - r), 0),
649
- (e.match_start -= s),
650
- (e.strstart -= s),
651
- (e.block_start -= s),
652
- e.insert > e.strstart && (e.insert = e.strstart),
653
- ya(e),
654
- (r += s)),
655
- e.strm.avail_in === 0)
656
- )
657
- break;
658
- if (
659
- ((a = ye(e.strm, e.window, e.strstart + e.lookahead, r)),
660
- (e.lookahead += a),
661
- e.lookahead + e.insert >= 3)
662
- )
663
- for (
664
- n = e.strstart - e.insert,
665
- e.ins_h = e.window[n],
666
- e.ins_h = L(e, e.ins_h, e.window[n + 1]);
667
- e.insert &&
668
- ((e.ins_h = L(e, e.ins_h, e.window[n + 3 - 1])),
669
- (e.prev[n & e.w_mask] = e.head[e.ins_h]),
670
- (e.head[e.ins_h] = n),
671
- n++,
672
- e.insert--,
673
- !(e.lookahead + e.insert < 3));
674
- );
675
- } while (e.lookahead < A && e.strm.avail_in !== 0);
676
- },
677
- Ge = (e, s) => {
678
- let a,
679
- r,
680
- n,
681
- i =
682
- e.pending_buf_size - 5 > e.w_size ? e.w_size : e.pending_buf_size - 5,
683
- _ = 0,
684
- t = e.strm.avail_in;
685
- do {
686
- if (
687
- ((a = 65535),
688
- (n = (e.bi_valid + 42) >> 3),
689
- e.strm.avail_out < n ||
690
- ((n = e.strm.avail_out - n),
691
- (r = e.strstart - e.block_start),
692
- a > r + e.strm.avail_in && (a = r + e.strm.avail_in),
693
- a > n && (a = n),
694
- a < i &&
695
- ((a === 0 && s !== b) || s === S || a !== r + e.strm.avail_in)))
696
- )
697
- break;
698
- ((_ = s === b && a === r + e.strm.avail_in ? 1 : 0),
699
- me(e, 0, 0, _),
700
- (e.pending_buf[e.pending - 4] = a),
701
- (e.pending_buf[e.pending - 3] = a >> 8),
702
- (e.pending_buf[e.pending - 2] = ~a),
703
- (e.pending_buf[e.pending - 1] = ~a >> 8),
704
- g(e.strm),
705
- r &&
706
- (r > a && (r = a),
707
- e.strm.output.set(
708
- e.window.subarray(e.block_start, e.block_start + r),
709
- e.strm.next_out,
710
- ),
711
- (e.strm.next_out += r),
712
- (e.strm.avail_out -= r),
713
- (e.strm.total_out += r),
714
- (e.block_start += r),
715
- (a -= r)),
716
- a &&
717
- (ye(e.strm, e.strm.output, e.strm.next_out, a),
718
- (e.strm.next_out += a),
719
- (e.strm.avail_out -= a),
720
- (e.strm.total_out += a)));
721
- } while (_ === 0);
722
- return (
723
- (t -= e.strm.avail_in),
724
- t &&
725
- (t >= e.w_size
726
- ? ((e.matches = 2),
727
- e.window.set(
728
- e.strm.input.subarray(
729
- e.strm.next_in - e.w_size,
730
- e.strm.next_in,
731
- ),
732
- 0,
733
- ),
734
- (e.strstart = e.w_size),
735
- (e.insert = e.strstart))
736
- : (e.window_size - e.strstart <= t &&
737
- ((e.strstart -= e.w_size),
738
- e.window.set(
739
- e.window.subarray(e.w_size, e.w_size + e.strstart),
740
- 0,
741
- ),
742
- e.matches < 2 && e.matches++,
743
- e.insert > e.strstart && (e.insert = e.strstart)),
744
- e.window.set(
745
- e.strm.input.subarray(e.strm.next_in - t, e.strm.next_in),
746
- e.strstart,
747
- ),
748
- (e.strstart += t),
749
- (e.insert += t > e.w_size - e.insert ? e.w_size - e.insert : t)),
750
- (e.block_start = e.strstart)),
751
- e.high_water < e.strstart && (e.high_water = e.strstart),
752
- _
753
- ? 4
754
- : s !== S &&
755
- s !== b &&
756
- e.strm.avail_in === 0 &&
757
- e.strstart === e.block_start
758
- ? 2
759
- : ((n = e.window_size - e.strstart),
760
- e.strm.avail_in > n &&
761
- e.block_start >= e.w_size &&
762
- ((e.block_start -= e.w_size),
763
- (e.strstart -= e.w_size),
764
- e.window.set(
765
- e.window.subarray(e.w_size, e.w_size + e.strstart),
766
- 0,
767
- ),
768
- e.matches < 2 && e.matches++,
769
- (n += e.w_size),
770
- e.insert > e.strstart && (e.insert = e.strstart)),
771
- n > e.strm.avail_in && (n = e.strm.avail_in),
772
- n &&
773
- (ye(e.strm, e.window, e.strstart, n),
774
- (e.strstart += n),
775
- (e.insert +=
776
- n > e.w_size - e.insert ? e.w_size - e.insert : n)),
777
- e.high_water < e.strstart && (e.high_water = e.strstart),
778
- (n = (e.bi_valid + 42) >> 3),
779
- (n =
780
- e.pending_buf_size - n > 65535
781
- ? 65535
782
- : e.pending_buf_size - n),
783
- (i = n > e.w_size ? e.w_size : n),
784
- (r = e.strstart - e.block_start),
785
- (r >= i ||
786
- ((r || s === b) &&
787
- s !== S &&
788
- e.strm.avail_in === 0 &&
789
- r <= n)) &&
790
- ((a = r > n ? n : r),
791
- (_ = s === b && e.strm.avail_in === 0 && a === r ? 1 : 0),
792
- me(e, e.block_start, a, _),
793
- (e.block_start += a),
794
- g(e.strm)),
795
- _ ? 3 : 1)
796
- );
797
- },
798
- ve = (e, s) => {
799
- let a, r;
800
- for (;;) {
801
- if (e.lookahead < A) {
802
- if ((I(e), e.lookahead < A && s === S)) return 1;
803
- if (e.lookahead === 0) break;
804
- }
805
- if (
806
- ((a = 0),
807
- e.lookahead >= 3 &&
808
- ((e.ins_h = L(e, e.ins_h, e.window[e.strstart + 3 - 1])),
809
- (a = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h]),
810
- (e.head[e.ins_h] = e.strstart)),
811
- a !== 0 &&
812
- e.strstart - a <= e.w_size - A &&
813
- (e.match_length = Ye(e, a)),
814
- e.match_length >= 3)
815
- )
816
- if (
817
- ((r = R(e, e.strstart - e.match_start, e.match_length - 3)),
818
- (e.lookahead -= e.match_length),
819
- e.match_length <= e.max_lazy_match && e.lookahead >= 3)
820
- ) {
821
- e.match_length--;
822
- do
823
- (e.strstart++,
824
- (e.ins_h = L(e, e.ins_h, e.window[e.strstart + 3 - 1])),
825
- (a = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h]),
826
- (e.head[e.ins_h] = e.strstart));
827
- while (--e.match_length != 0);
828
- e.strstart++;
829
- } else
830
- ((e.strstart += e.match_length),
831
- (e.match_length = 0),
832
- (e.ins_h = e.window[e.strstart]),
833
- (e.ins_h = L(e, e.ins_h, e.window[e.strstart + 1])));
834
- else ((r = R(e, 0, e.window[e.strstart])), e.lookahead--, e.strstart++);
835
- if (r && (w(e, !1), e.strm.avail_out === 0)) return 1;
836
- }
837
- return (
838
- (e.insert = e.strstart < 2 ? e.strstart : 2),
839
- s === b
840
- ? (w(e, !0), e.strm.avail_out === 0 ? 3 : 4)
841
- : e.sym_next && (w(e, !1), e.strm.avail_out === 0)
842
- ? 1
843
- : 2
844
- );
845
- },
846
- C = (e, s) => {
847
- let a, r, n;
848
- for (;;) {
849
- if (e.lookahead < A) {
850
- if ((I(e), e.lookahead < A && s === S)) return 1;
851
- if (e.lookahead === 0) break;
852
- }
853
- if (
854
- ((a = 0),
855
- e.lookahead >= 3 &&
856
- ((e.ins_h = L(e, e.ins_h, e.window[e.strstart + 3 - 1])),
857
- (a = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h]),
858
- (e.head[e.ins_h] = e.strstart)),
859
- (e.prev_length = e.match_length),
860
- (e.prev_match = e.match_start),
861
- (e.match_length = 2),
862
- a !== 0 &&
863
- e.prev_length < e.max_lazy_match &&
864
- e.strstart - a <= e.w_size - A &&
865
- ((e.match_length = Ye(e, a)),
866
- e.match_length <= 5 &&
867
- (e.strategy === pa ||
868
- (e.match_length === 3 && e.strstart - e.match_start > 4096)) &&
869
- (e.match_length = 2)),
870
- e.prev_length >= 3 && e.match_length <= e.prev_length)
871
- ) {
872
- ((n = e.strstart + e.lookahead - 3),
873
- (r = R(e, e.strstart - 1 - e.prev_match, e.prev_length - 3)),
874
- (e.lookahead -= e.prev_length - 1),
875
- (e.prev_length -= 2));
876
- do
877
- ++e.strstart <= n &&
878
- ((e.ins_h = L(e, e.ins_h, e.window[e.strstart + 3 - 1])),
879
- (a = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h]),
880
- (e.head[e.ins_h] = e.strstart));
881
- while (--e.prev_length != 0);
882
- if (
883
- ((e.match_available = 0),
884
- (e.match_length = 2),
885
- e.strstart++,
886
- r && (w(e, !1), e.strm.avail_out === 0))
887
- )
888
- return 1;
889
- } else if (e.match_available) {
890
- if (
891
- ((r = R(e, 0, e.window[e.strstart - 1])),
892
- r && w(e, !1),
893
- e.strstart++,
894
- e.lookahead--,
895
- e.strm.avail_out === 0)
896
- )
897
- return 1;
898
- } else ((e.match_available = 1), e.strstart++, e.lookahead--);
899
- }
900
- return (
901
- e.match_available &&
902
- ((r = R(e, 0, e.window[e.strstart - 1])), (e.match_available = 0)),
903
- (e.insert = e.strstart < 2 ? e.strstart : 2),
904
- s === b
905
- ? (w(e, !0), e.strm.avail_out === 0 ? 3 : 4)
906
- : e.sym_next && (w(e, !1), e.strm.avail_out === 0)
907
- ? 1
908
- : 2
909
- );
910
- };
911
- function E(e, s, a, r, n) {
912
- ((this.good_length = e),
913
- (this.max_lazy = s),
914
- (this.nice_length = a),
915
- (this.max_chain = r),
916
- (this.func = n));
917
- }
918
- const W = [
919
- new E(0, 0, 0, 0, Ge),
920
- new E(4, 4, 8, 4, ve),
921
- new E(4, 5, 16, 8, ve),
922
- new E(4, 6, 32, 32, ve),
923
- new E(4, 4, 16, 16, C),
924
- new E(8, 16, 32, 32, C),
925
- new E(8, 16, 128, 128, C),
926
- new E(8, 32, 128, 256, C),
927
- new E(32, 128, 258, 1024, C),
928
- new E(32, 258, 258, 4096, C),
929
- ];
930
- function va() {
931
- ((this.strm = null),
932
- (this.status = 0),
933
- (this.pending_buf = null),
934
- (this.pending_buf_size = 0),
935
- (this.pending_out = 0),
936
- (this.pending = 0),
937
- (this.wrap = 0),
938
- (this.gzhead = null),
939
- (this.gzindex = 0),
940
- (this.method = ie),
941
- (this.last_flush = -1),
942
- (this.w_size = 0),
943
- (this.w_bits = 0),
944
- (this.w_mask = 0),
945
- (this.window = null),
946
- (this.window_size = 0),
947
- (this.prev = null),
948
- (this.head = null),
949
- (this.ins_h = 0),
950
- (this.hash_size = 0),
951
- (this.hash_bits = 0),
952
- (this.hash_mask = 0),
953
- (this.hash_shift = 0),
954
- (this.block_start = 0),
955
- (this.match_length = 0),
956
- (this.prev_match = 0),
957
- (this.match_available = 0),
958
- (this.strstart = 0),
959
- (this.match_start = 0),
960
- (this.lookahead = 0),
961
- (this.prev_length = 0),
962
- (this.max_chain_length = 0),
963
- (this.max_lazy_match = 0),
964
- (this.level = 0),
965
- (this.strategy = 0),
966
- (this.good_match = 0),
967
- (this.nice_match = 0),
968
- (this.dyn_ltree = new Uint16Array(1146)),
969
- (this.dyn_dtree = new Uint16Array(122)),
970
- (this.bl_tree = new Uint16Array(78)),
971
- T(this.dyn_ltree),
972
- T(this.dyn_dtree),
973
- T(this.bl_tree),
974
- (this.l_desc = null),
975
- (this.d_desc = null),
976
- (this.bl_desc = null),
977
- (this.bl_count = new Uint16Array(16)),
978
- (this.heap = new Uint16Array(573)),
979
- T(this.heap),
980
- (this.heap_len = 0),
981
- (this.heap_max = 0),
982
- (this.depth = new Uint16Array(573)),
983
- T(this.depth),
984
- (this.sym_buf = 0),
985
- (this.lit_bufsize = 0),
986
- (this.sym_next = 0),
987
- (this.sym_end = 0),
988
- (this.opt_len = 0),
989
- (this.static_len = 0),
990
- (this.matches = 0),
991
- (this.insert = 0),
992
- (this.bi_buf = 0),
993
- (this.bi_valid = 0));
994
- }
995
- const q = (e) => {
996
- if (!e) return 1;
997
- const s = e.state;
998
- return !s ||
999
- s.strm !== e ||
1000
- (s.status !== N &&
1001
- s.status !== 57 &&
1002
- s.status !== 69 &&
1003
- s.status !== 73 &&
1004
- s.status !== 91 &&
1005
- s.status !== 103 &&
1006
- s.status !== O &&
1007
- s.status !== G)
1008
- ? 1
1009
- : 0;
1010
- },
1011
- Xe = (e) => {
1012
- if (q(e)) return D(e, x);
1013
- ((e.total_in = e.total_out = 0), (e.data_type = ba));
1014
- const s = e.state;
1015
- return (
1016
- (s.pending = 0),
1017
- (s.pending_out = 0),
1018
- s.wrap < 0 && (s.wrap = -s.wrap),
1019
- (s.status = s.wrap === 2 ? 57 : s.wrap ? N : O),
1020
- (e.adler = s.wrap === 2 ? 0 : 1),
1021
- (s.last_flush = -2),
1022
- la(s),
1023
- c
1024
- );
1025
- },
1026
- We = (e) => {
1027
- const s = Xe(e);
1028
- var a;
1029
- return (
1030
- s === c &&
1031
- (((a = e.state).window_size = 2 * a.w_size),
1032
- T(a.head),
1033
- (a.max_lazy_match = W[a.level].max_lazy),
1034
- (a.good_match = W[a.level].good_length),
1035
- (a.nice_match = W[a.level].nice_length),
1036
- (a.max_chain_length = W[a.level].max_chain),
1037
- (a.strstart = 0),
1038
- (a.block_start = 0),
1039
- (a.lookahead = 0),
1040
- (a.insert = 0),
1041
- (a.match_length = a.prev_length = 2),
1042
- (a.match_available = 0),
1043
- (a.ins_h = 0)),
1044
- s
1045
- );
1046
- },
1047
- qe = (e, s, a, r, n, i) => {
1048
- if (!e) return x;
1049
- let _ = 1;
1050
- if (
1051
- (s === ca && (s = 6),
1052
- r < 0 ? ((_ = 0), (r = -r)) : r > 15 && ((_ = 2), (r -= 16)),
1053
- n < 1 ||
1054
- n > 9 ||
1055
- a !== ie ||
1056
- r < 8 ||
1057
- r > 15 ||
1058
- s < 0 ||
1059
- s > 9 ||
1060
- i < 0 ||
1061
- i > wa ||
1062
- (r === 8 && _ !== 1))
1063
- )
1064
- return D(e, x);
1065
- r === 8 && (r = 9);
1066
- const t = new va();
1067
- return (
1068
- (e.state = t),
1069
- (t.strm = e),
1070
- (t.status = N),
1071
- (t.wrap = _),
1072
- (t.gzhead = null),
1073
- (t.w_bits = r),
1074
- (t.w_size = 1 << t.w_bits),
1075
- (t.w_mask = t.w_size - 1),
1076
- (t.hash_bits = n + 7),
1077
- (t.hash_size = 1 << t.hash_bits),
1078
- (t.hash_mask = t.hash_size - 1),
1079
- (t.hash_shift = ~~((t.hash_bits + 3 - 1) / 3)),
1080
- (t.window = new Uint8Array(2 * t.w_size)),
1081
- (t.head = new Uint16Array(t.hash_size)),
1082
- (t.prev = new Uint16Array(t.w_size)),
1083
- (t.lit_bufsize = 1 << (n + 6)),
1084
- (t.pending_buf_size = 4 * t.lit_bufsize),
1085
- (t.pending_buf = new Uint8Array(t.pending_buf_size)),
1086
- (t.sym_buf = t.lit_bufsize),
1087
- (t.sym_end = 3 * (t.lit_bufsize - 1)),
1088
- (t.level = s),
1089
- (t.strategy = i),
1090
- (t.method = a),
1091
- We(e)
1092
- );
1093
- };
1094
- var J = {
1095
- deflateInit: (e, s) => qe(e, s, ie, 15, 8, ma),
1096
- deflateInit2: qe,
1097
- deflateReset: We,
1098
- deflateResetKeep: Xe,
1099
- deflateSetHeader: (e, s) =>
1100
- q(e) || e.state.wrap !== 2 ? x : ((e.state.gzhead = s), c),
1101
- deflate: (e, s) => {
1102
- if (q(e) || s > Pe || s < 0) return e ? D(e, x) : x;
1103
- const a = e.state;
1104
- if (
1105
- !e.output ||
1106
- (e.avail_in !== 0 && !e.input) ||
1107
- (a.status === G && s !== b)
1108
- )
1109
- return D(e, e.avail_out === 0 ? be : x);
1110
- const r = a.last_flush;
1111
- if (((a.last_flush = s), a.pending !== 0)) {
1112
- if ((g(e), e.avail_out === 0)) return ((a.last_flush = -1), c);
1113
- } else if (e.avail_in === 0 && Ke(s) <= Ke(r) && s !== b) return D(e, be);
1114
- if (a.status === G && e.avail_in !== 0) return D(e, be);
1115
- if ((a.status === N && a.wrap === 0 && (a.status = O), a.status === N)) {
1116
- let n = (ie + ((a.w_bits - 8) << 4)) << 8,
1117
- i = -1;
1118
- if (
1119
- ((i =
1120
- a.strategy >= re || a.level < 2
1121
- ? 0
1122
- : a.level < 6
1123
- ? 1
1124
- : a.level === 6
1125
- ? 2
1126
- : 3),
1127
- (n |= i << 6),
1128
- a.strstart !== 0 && (n |= 32),
1129
- (n += 31 - (n % 31)),
1130
- X(a, n),
1131
- a.strstart !== 0 && (X(a, e.adler >>> 16), X(a, 65535 & e.adler)),
1132
- (e.adler = 1),
1133
- (a.status = O),
1134
- g(e),
1135
- a.pending !== 0)
1136
- )
1137
- return ((a.last_flush = -1), c);
1138
- }
1139
- if (a.status === 57) {
1140
- if (((e.adler = 0), o(a, 31), o(a, 139), o(a, 8), a.gzhead))
1141
- (o(
1142
- a,
1143
- (a.gzhead.text ? 1 : 0) +
1144
- (a.gzhead.hcrc ? 2 : 0) +
1145
- (a.gzhead.extra ? 4 : 0) +
1146
- (a.gzhead.name ? 8 : 0) +
1147
- (a.gzhead.comment ? 16 : 0),
1148
- ),
1149
- o(a, 255 & a.gzhead.time),
1150
- o(a, (a.gzhead.time >> 8) & 255),
1151
- o(a, (a.gzhead.time >> 16) & 255),
1152
- o(a, (a.gzhead.time >> 24) & 255),
1153
- o(a, a.level === 9 ? 2 : a.strategy >= re || a.level < 2 ? 4 : 0),
1154
- o(a, 255 & a.gzhead.os),
1155
- a.gzhead.extra &&
1156
- a.gzhead.extra.length &&
1157
- (o(a, 255 & a.gzhead.extra.length),
1158
- o(a, (a.gzhead.extra.length >> 8) & 255)),
1159
- a.gzhead.hcrc &&
1160
- (e.adler = U(e.adler, a.pending_buf, a.pending, 0)),
1161
- (a.gzindex = 0),
1162
- (a.status = 69));
1163
- else if (
1164
- (o(a, 0),
1165
- o(a, 0),
1166
- o(a, 0),
1167
- o(a, 0),
1168
- o(a, 0),
1169
- o(a, a.level === 9 ? 2 : a.strategy >= re || a.level < 2 ? 4 : 0),
1170
- o(a, 3),
1171
- (a.status = O),
1172
- g(e),
1173
- a.pending !== 0)
1174
- )
1175
- return ((a.last_flush = -1), c);
1176
- }
1177
- if (a.status === 69) {
1178
- if (a.gzhead.extra) {
1179
- let n = a.pending,
1180
- i = (65535 & a.gzhead.extra.length) - a.gzindex;
1181
- for (; a.pending + i > a.pending_buf_size; ) {
1182
- let t = a.pending_buf_size - a.pending;
1183
- if (
1184
- (a.pending_buf.set(
1185
- a.gzhead.extra.subarray(a.gzindex, a.gzindex + t),
1186
- a.pending,
1187
- ),
1188
- (a.pending = a.pending_buf_size),
1189
- a.gzhead.hcrc &&
1190
- a.pending > n &&
1191
- (e.adler = U(e.adler, a.pending_buf, a.pending - n, n)),
1192
- (a.gzindex += t),
1193
- g(e),
1194
- a.pending !== 0)
1195
- )
1196
- return ((a.last_flush = -1), c);
1197
- ((n = 0), (i -= t));
1198
- }
1199
- let _ = new Uint8Array(a.gzhead.extra);
1200
- (a.pending_buf.set(_.subarray(a.gzindex, a.gzindex + i), a.pending),
1201
- (a.pending += i),
1202
- a.gzhead.hcrc &&
1203
- a.pending > n &&
1204
- (e.adler = U(e.adler, a.pending_buf, a.pending - n, n)),
1205
- (a.gzindex = 0));
1206
- }
1207
- a.status = 73;
1208
- }
1209
- if (a.status === 73) {
1210
- if (a.gzhead.name) {
1211
- let n,
1212
- i = a.pending;
1213
- do {
1214
- if (a.pending === a.pending_buf_size) {
1215
- if (
1216
- (a.gzhead.hcrc &&
1217
- a.pending > i &&
1218
- (e.adler = U(e.adler, a.pending_buf, a.pending - i, i)),
1219
- g(e),
1220
- a.pending !== 0)
1221
- )
1222
- return ((a.last_flush = -1), c);
1223
- i = 0;
1224
- }
1225
- ((n =
1226
- a.gzindex < a.gzhead.name.length
1227
- ? 255 & a.gzhead.name.charCodeAt(a.gzindex++)
1228
- : 0),
1229
- o(a, n));
1230
- } while (n !== 0);
1231
- (a.gzhead.hcrc &&
1232
- a.pending > i &&
1233
- (e.adler = U(e.adler, a.pending_buf, a.pending - i, i)),
1234
- (a.gzindex = 0));
1235
- }
1236
- a.status = 91;
1237
- }
1238
- if (a.status === 91) {
1239
- if (a.gzhead.comment) {
1240
- let n,
1241
- i = a.pending;
1242
- do {
1243
- if (a.pending === a.pending_buf_size) {
1244
- if (
1245
- (a.gzhead.hcrc &&
1246
- a.pending > i &&
1247
- (e.adler = U(e.adler, a.pending_buf, a.pending - i, i)),
1248
- g(e),
1249
- a.pending !== 0)
1250
- )
1251
- return ((a.last_flush = -1), c);
1252
- i = 0;
1253
- }
1254
- ((n =
1255
- a.gzindex < a.gzhead.comment.length
1256
- ? 255 & a.gzhead.comment.charCodeAt(a.gzindex++)
1257
- : 0),
1258
- o(a, n));
1259
- } while (n !== 0);
1260
- a.gzhead.hcrc &&
1261
- a.pending > i &&
1262
- (e.adler = U(e.adler, a.pending_buf, a.pending - i, i));
1263
- }
1264
- a.status = 103;
1265
- }
1266
- if (a.status === 103) {
1267
- if (a.gzhead.hcrc) {
1268
- if (a.pending + 2 > a.pending_buf_size && (g(e), a.pending !== 0))
1269
- return ((a.last_flush = -1), c);
1270
- (o(a, 255 & e.adler), o(a, (e.adler >> 8) & 255), (e.adler = 0));
1271
- }
1272
- if (((a.status = O), g(e), a.pending !== 0))
1273
- return ((a.last_flush = -1), c);
1274
- }
1275
- if (
1276
- e.avail_in !== 0 ||
1277
- a.lookahead !== 0 ||
1278
- (s !== S && a.status !== G)
1279
- ) {
1280
- let n =
1281
- a.level === 0
1282
- ? Ge(a, s)
1283
- : a.strategy === re
1284
- ? ((i, _) => {
1285
- let t;
1286
- for (;;) {
1287
- if (i.lookahead === 0 && (I(i), i.lookahead === 0)) {
1288
- if (_ === S) return 1;
1289
- break;
1290
- }
1291
- if (
1292
- ((i.match_length = 0),
1293
- (t = R(i, 0, i.window[i.strstart])),
1294
- i.lookahead--,
1295
- i.strstart++,
1296
- t && (w(i, !1), i.strm.avail_out === 0))
1297
- )
1298
- return 1;
1299
- }
1300
- return (
1301
- (i.insert = 0),
1302
- _ === b
1303
- ? (w(i, !0), i.strm.avail_out === 0 ? 3 : 4)
1304
- : i.sym_next && (w(i, !1), i.strm.avail_out === 0)
1305
- ? 1
1306
- : 2
1307
- );
1308
- })(a, s)
1309
- : a.strategy === ga
1310
- ? ((i, _) => {
1311
- let t, h, l, u;
1312
- const d = i.window;
1313
- for (;;) {
1314
- if (i.lookahead <= F) {
1315
- if ((I(i), i.lookahead <= F && _ === S)) return 1;
1316
- if (i.lookahead === 0) break;
1317
- }
1318
- if (
1319
- ((i.match_length = 0),
1320
- i.lookahead >= 3 &&
1321
- i.strstart > 0 &&
1322
- ((l = i.strstart - 1),
1323
- (h = d[l]),
1324
- h === d[++l] && h === d[++l] && h === d[++l]))
1325
- ) {
1326
- u = i.strstart + F;
1327
- do;
1328
- while (
1329
- h === d[++l] &&
1330
- h === d[++l] &&
1331
- h === d[++l] &&
1332
- h === d[++l] &&
1333
- h === d[++l] &&
1334
- h === d[++l] &&
1335
- h === d[++l] &&
1336
- h === d[++l] &&
1337
- l < u
1338
- );
1339
- ((i.match_length = F - (u - l)),
1340
- i.match_length > i.lookahead &&
1341
- (i.match_length = i.lookahead));
1342
- }
1343
- if (
1344
- (i.match_length >= 3
1345
- ? ((t = R(i, 1, i.match_length - 3)),
1346
- (i.lookahead -= i.match_length),
1347
- (i.strstart += i.match_length),
1348
- (i.match_length = 0))
1349
- : ((t = R(i, 0, i.window[i.strstart])),
1350
- i.lookahead--,
1351
- i.strstart++),
1352
- t && (w(i, !1), i.strm.avail_out === 0))
1353
- )
1354
- return 1;
1355
- }
1356
- return (
1357
- (i.insert = 0),
1358
- _ === b
1359
- ? (w(i, !0), i.strm.avail_out === 0 ? 3 : 4)
1360
- : i.sym_next && (w(i, !1), i.strm.avail_out === 0)
1361
- ? 1
1362
- : 2
1363
- );
1364
- })(a, s)
1365
- : W[a.level].func(a, s);
1366
- if (((n !== 3 && n !== 4) || (a.status = G), n === 1 || n === 3))
1367
- return (e.avail_out === 0 && (a.last_flush = -1), c);
1368
- if (
1369
- n === 2 &&
1370
- (s === da
1371
- ? oa(a)
1372
- : s !== Pe &&
1373
- (me(a, 0, 0, !1),
1374
- s === ua &&
1375
- (T(a.head),
1376
- a.lookahead === 0 &&
1377
- ((a.strstart = 0), (a.block_start = 0), (a.insert = 0)))),
1378
- g(e),
1379
- e.avail_out === 0)
1380
- )
1381
- return ((a.last_flush = -1), c);
1382
- }
1383
- return s !== b
1384
- ? c
1385
- : a.wrap <= 0
1386
- ? je
1387
- : (a.wrap === 2
1388
- ? (o(a, 255 & e.adler),
1389
- o(a, (e.adler >> 8) & 255),
1390
- o(a, (e.adler >> 16) & 255),
1391
- o(a, (e.adler >> 24) & 255),
1392
- o(a, 255 & e.total_in),
1393
- o(a, (e.total_in >> 8) & 255),
1394
- o(a, (e.total_in >> 16) & 255),
1395
- o(a, (e.total_in >> 24) & 255))
1396
- : (X(a, e.adler >>> 16), X(a, 65535 & e.adler)),
1397
- g(e),
1398
- a.wrap > 0 && (a.wrap = -a.wrap),
1399
- a.pending !== 0 ? c : je);
1400
- },
1401
- deflateEnd: (e) => {
1402
- if (q(e)) return x;
1403
- const s = e.state.status;
1404
- return ((e.state = null), s === O ? D(e, fa) : c);
1405
- },
1406
- deflateSetDictionary: (e, s) => {
1407
- let a = s.length;
1408
- if (q(e)) return x;
1409
- const r = e.state,
1410
- n = r.wrap;
1411
- if (n === 2 || (n === 1 && r.status !== N) || r.lookahead) return x;
1412
- if (
1413
- (n === 1 && (e.adler = Me(e.adler, s, a, 0)),
1414
- (r.wrap = 0),
1415
- a >= r.w_size)
1416
- ) {
1417
- n === 0 &&
1418
- (T(r.head), (r.strstart = 0), (r.block_start = 0), (r.insert = 0));
1419
- let h = new Uint8Array(r.w_size);
1420
- (h.set(s.subarray(a - r.w_size, a), 0), (s = h), (a = r.w_size));
1421
- }
1422
- const i = e.avail_in,
1423
- _ = e.next_in,
1424
- t = e.input;
1425
- for (
1426
- e.avail_in = a, e.next_in = 0, e.input = s, I(r);
1427
- r.lookahead >= 3;
1428
- ) {
1429
- let h = r.strstart,
1430
- l = r.lookahead - 2;
1431
- do
1432
- ((r.ins_h = L(r, r.ins_h, r.window[h + 3 - 1])),
1433
- (r.prev[h & r.w_mask] = r.head[r.ins_h]),
1434
- (r.head[r.ins_h] = h),
1435
- h++);
1436
- while (--l);
1437
- ((r.strstart = h), (r.lookahead = 2), I(r));
1438
- }
1439
- return (
1440
- (r.strstart += r.lookahead),
1441
- (r.block_start = r.strstart),
1442
- (r.insert = r.lookahead),
1443
- (r.lookahead = 0),
1444
- (r.match_length = r.prev_length = 2),
1445
- (r.match_available = 0),
1446
- (e.next_in = _),
1447
- (e.input = t),
1448
- (e.avail_in = i),
1449
- (r.wrap = n),
1450
- c
1451
- );
1452
- },
1453
- deflateInfo: "pako deflate (from Nodeca project)",
1454
- };
1455
- const za = (e, s) => Object.prototype.hasOwnProperty.call(e, s);
1456
- var ka = function (e) {
1457
- const s = Array.prototype.slice.call(arguments, 1);
1458
- for (; s.length; ) {
1459
- const a = s.shift();
1460
- if (a) {
1461
- if (typeof a != "object")
1462
- throw new TypeError(a + "must be non-object");
1463
- for (const r in a) za(a, r) && (e[r] = a[r]);
1464
- }
1465
- }
1466
- return e;
1467
- },
1468
- xa = (e) => {
1469
- let s = 0;
1470
- for (let r = 0, n = e.length; r < n; r++) s += e[r].length;
1471
- const a = new Uint8Array(s);
1472
- for (let r = 0, n = 0, i = e.length; r < i; r++) {
1473
- let _ = e[r];
1474
- (a.set(_, n), (n += _.length));
1475
- }
1476
- return a;
1477
- };
1478
- let Aa = !0;
1479
- try {
1480
- String.fromCharCode.apply(null, new Uint8Array(1));
1481
- } catch {
1482
- Aa = !1;
1483
- }
1484
- const ze = new Uint8Array(256);
1485
- for (let e = 0; e < 256; e++)
1486
- ze[e] =
1487
- e >= 252
1488
- ? 6
1489
- : e >= 248
1490
- ? 5
1491
- : e >= 240
1492
- ? 4
1493
- : e >= 224
1494
- ? 3
1495
- : e >= 192
1496
- ? 2
1497
- : 1;
1498
- ze[254] = ze[254] = 1;
1499
- var Je = (e) => {
1500
- if (typeof TextEncoder == "function" && TextEncoder.prototype.encode)
1501
- return new TextEncoder().encode(e);
1502
- let s,
1503
- a,
1504
- r,
1505
- n,
1506
- i,
1507
- _ = e.length,
1508
- t = 0;
1509
- for (n = 0; n < _; n++)
1510
- ((a = e.charCodeAt(n)),
1511
- (64512 & a) == 55296 &&
1512
- n + 1 < _ &&
1513
- ((r = e.charCodeAt(n + 1)),
1514
- (64512 & r) == 56320 &&
1515
- ((a = 65536 + ((a - 55296) << 10) + (r - 56320)), n++)),
1516
- (t += a < 128 ? 1 : a < 2048 ? 2 : a < 65536 ? 3 : 4));
1517
- for (s = new Uint8Array(t), i = 0, n = 0; i < t; n++)
1518
- ((a = e.charCodeAt(n)),
1519
- (64512 & a) == 55296 &&
1520
- n + 1 < _ &&
1521
- ((r = e.charCodeAt(n + 1)),
1522
- (64512 & r) == 56320 &&
1523
- ((a = 65536 + ((a - 55296) << 10) + (r - 56320)), n++)),
1524
- a < 128
1525
- ? (s[i++] = a)
1526
- : a < 2048
1527
- ? ((s[i++] = 192 | (a >>> 6)), (s[i++] = 128 | (63 & a)))
1528
- : a < 65536
1529
- ? ((s[i++] = 224 | (a >>> 12)),
1530
- (s[i++] = 128 | ((a >>> 6) & 63)),
1531
- (s[i++] = 128 | (63 & a)))
1532
- : ((s[i++] = 240 | (a >>> 18)),
1533
- (s[i++] = 128 | ((a >>> 12) & 63)),
1534
- (s[i++] = 128 | ((a >>> 6) & 63)),
1535
- (s[i++] = 128 | (63 & a))));
1536
- return s;
1537
- },
1538
- Ea = function () {
1539
- ((this.input = null),
1540
- (this.next_in = 0),
1541
- (this.avail_in = 0),
1542
- (this.total_in = 0),
1543
- (this.output = null),
1544
- (this.next_out = 0),
1545
- (this.avail_out = 0),
1546
- (this.total_out = 0),
1547
- (this.msg = ""),
1548
- (this.state = null),
1549
- (this.data_type = 2),
1550
- (this.adler = 0));
1551
- };
1552
- const Qe = Object.prototype.toString,
1553
- {
1554
- Z_NO_FLUSH: Za,
1555
- Z_SYNC_FLUSH: Ua,
1556
- Z_FULL_FLUSH: Ra,
1557
- Z_FINISH: Sa,
1558
- Z_OK: te,
1559
- Z_STREAM_END: Ta,
1560
- Z_DEFAULT_COMPRESSION: La,
1561
- Z_DEFAULT_STRATEGY: Fa,
1562
- Z_DEFLATED: Oa,
1563
- } = we;
1564
- function Q(e) {
1565
- this.options = ka(
1566
- {
1567
- level: La,
1568
- method: Oa,
1569
- chunkSize: 16384,
1570
- windowBits: 15,
1571
- memLevel: 8,
1572
- strategy: Fa,
1573
- },
1574
- e || {},
1575
- );
1576
- let s = this.options;
1577
- (s.raw && s.windowBits > 0
1578
- ? (s.windowBits = -s.windowBits)
1579
- : s.gzip && s.windowBits > 0 && s.windowBits < 16 && (s.windowBits += 16),
1580
- (this.err = 0),
1581
- (this.msg = ""),
1582
- (this.ended = !1),
1583
- (this.chunks = []),
1584
- (this.strm = new Ea()),
1585
- (this.strm.avail_out = 0));
1586
- let a = J.deflateInit2(
1587
- this.strm,
1588
- s.level,
1589
- s.method,
1590
- s.windowBits,
1591
- s.memLevel,
1592
- s.strategy,
1593
- );
1594
- if (a !== te) throw new Error(ne[a]);
1595
- if ((s.header && J.deflateSetHeader(this.strm, s.header), s.dictionary)) {
1596
- let r;
1597
- if (
1598
- ((r =
1599
- typeof s.dictionary == "string"
1600
- ? Je(s.dictionary)
1601
- : Qe.call(s.dictionary) === "[object ArrayBuffer]"
1602
- ? new Uint8Array(s.dictionary)
1603
- : s.dictionary),
1604
- (a = J.deflateSetDictionary(this.strm, r)),
1605
- a !== te)
1606
- )
1607
- throw new Error(ne[a]);
1608
- this._dict_set = !0;
1609
- }
1610
- }
1611
- function ke(e, s) {
1612
- const a = new Q(s);
1613
- if ((a.push(e, !0), a.err)) throw a.msg || ne[a.err];
1614
- return a.result;
1615
- }
1616
- ((Q.prototype.push = function (e, s) {
1617
- const a = this.strm,
1618
- r = this.options.chunkSize;
1619
- let n, i;
1620
- if (this.ended) return !1;
1621
- for (
1622
- i = s === ~~s ? s : s === !0 ? Sa : Za,
1623
- typeof e == "string"
1624
- ? (a.input = Je(e))
1625
- : Qe.call(e) === "[object ArrayBuffer]"
1626
- ? (a.input = new Uint8Array(e))
1627
- : (a.input = e),
1628
- a.next_in = 0,
1629
- a.avail_in = a.input.length;
1630
- ;
1631
- )
1632
- if (
1633
- (a.avail_out === 0 &&
1634
- ((a.output = new Uint8Array(r)), (a.next_out = 0), (a.avail_out = r)),
1635
- (i === Ua || i === Ra) && a.avail_out <= 6)
1636
- )
1637
- (this.onData(a.output.subarray(0, a.next_out)), (a.avail_out = 0));
1638
- else {
1639
- if (((n = J.deflate(a, i)), n === Ta))
1640
- return (
1641
- a.next_out > 0 && this.onData(a.output.subarray(0, a.next_out)),
1642
- (n = J.deflateEnd(this.strm)),
1643
- this.onEnd(n),
1644
- (this.ended = !0),
1645
- n === te
1646
- );
1647
- if (a.avail_out !== 0) {
1648
- if (i > 0 && a.next_out > 0)
1649
- (this.onData(a.output.subarray(0, a.next_out)), (a.avail_out = 0));
1650
- else if (a.avail_in === 0) break;
1651
- } else this.onData(a.output);
1652
- }
1653
- return !0;
1654
- }),
1655
- (Q.prototype.onData = function (e) {
1656
- this.chunks.push(e);
1657
- }),
1658
- (Q.prototype.onEnd = function (e) {
1659
- (e === te && (this.result = xa(this.chunks)),
1660
- (this.chunks = []),
1661
- (this.err = e),
1662
- (this.msg = this.strm.msg));
1663
- }));
1664
- var Ve = Q,
1665
- $e = ke,
1666
- ea = function (e, s) {
1667
- return (((s = s || {}).raw = !0), ke(e, s));
1668
- },
1669
- aa = function (e, s) {
1670
- return (((s = s || {}).gzip = !0), ke(e, s));
1671
- },
1672
- sa = we,
1673
- Da = { Deflate: Ve, deflate: $e, deflateRaw: ea, gzip: aa, constants: sa };
1674
- ((v.Deflate = Ve),
1675
- (v.constants = sa),
1676
- (v.default = Da),
1677
- (v.deflate = $e),
1678
- (v.deflateRaw = ea),
1679
- (v.gzip = aa),
1680
- Object.defineProperty(v, "__esModule", { value: !0 }));
1681
- });