terriajs-cesium 4.0.0 → 6.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 (167) hide show
  1. package/Build/ThirdParty/Workers/pako_deflate.min.js +605 -0
  2. package/Build/ThirdParty/Workers/pako_inflate.min.js +800 -0
  3. package/Build/ThirdParty/Workers/z-worker-pako.js +502 -0
  4. package/Build/Workers/{chunk-RA2JWYUB.js → chunk-3PW6ZBN4.js} +8 -304
  5. package/Build/Workers/{chunk-HVQSRFVN.js → chunk-434ZTTFX.js} +2 -2
  6. package/Build/Workers/{chunk-FE2XG3SS.js → chunk-4KP73B43.js} +3 -3
  7. package/Build/Workers/{chunk-EY4JVF6H.js → chunk-52VSIKEA.js} +16 -16
  8. package/Build/Workers/{chunk-4V32WGF7.js → chunk-5GDBZTHX.js} +18 -18
  9. package/Build/Workers/{chunk-UN7AK64D.js → chunk-5HLGKKG3.js} +2 -2
  10. package/Build/Workers/{chunk-J6ZFKFCM.js → chunk-5IRLXUTA.js} +7 -7
  11. package/Build/Workers/{chunk-7K4DISZO.js → chunk-5SK36PU4.js} +8 -8
  12. package/Build/Workers/{chunk-KAFF2QX3.js → chunk-ARPTYYKS.js} +5 -5
  13. package/Build/Workers/chunk-ATB2I7OS.js +55 -0
  14. package/Build/Workers/{chunk-MDLPTSPH.js → chunk-AXFRNOVC.js} +12 -12
  15. package/Build/Workers/{chunk-QKSISJIK.js → chunk-BP467WX3.js} +6 -6
  16. package/Build/Workers/{chunk-PZTS3RQA.js → chunk-BUZDZBUH.js} +13 -15
  17. package/Build/Workers/{chunk-WZAKF4QV.js → chunk-CDGHUKQ4.js} +13 -13
  18. package/Build/Workers/{chunk-AXJR4OAC.js → chunk-CSIZ3BGT.js} +15 -17
  19. package/Build/Workers/{chunk-BT6YIL2N.js → chunk-CWJQGBWT.js} +1 -1
  20. package/Build/Workers/{chunk-RY3PFYY4.js → chunk-DMCSY5BU.js} +5 -5
  21. package/Build/Workers/{chunk-DKNQSST5.js → chunk-DR5XZ6K5.js} +13 -13
  22. package/Build/Workers/{chunk-R6OTHS5P.js → chunk-FWGNCYP6.js} +7 -7
  23. package/Build/Workers/{chunk-JMCWW53T.js → chunk-GF5TNNKP.js} +6 -6
  24. package/Build/Workers/{chunk-ZMVVWJMI.js → chunk-GVL5I7TC.js} +229 -19
  25. package/Build/Workers/{chunk-VU2E3OQB.js → chunk-H5DUXHCV.js} +11 -11
  26. package/Build/Workers/{chunk-YWIA3P3I.js → chunk-HFKSAB5K.js} +14 -16
  27. package/Build/Workers/{chunk-XUKYNONG.js → chunk-HOT2SNXP.js} +23 -28
  28. package/Build/Workers/{chunk-3LHTOJX4.js → chunk-HPH5HSFE.js} +4 -4
  29. package/Build/Workers/{chunk-SE4PA2PE.js → chunk-HPP4JLNH.js} +8 -8
  30. package/Build/Workers/{chunk-IZNRZOYF.js → chunk-HUPNRBWW.js} +6 -6
  31. package/Build/Workers/{chunk-I5DA6V7G.js → chunk-JGG36SQV.js} +4 -4
  32. package/Build/Workers/{chunk-PRZ2UO63.js → chunk-LGJUI2CE.js} +325 -5
  33. package/Build/Workers/{chunk-P5JVZRDQ.js → chunk-LGL4P5KL.js} +6 -6
  34. package/Build/Workers/{chunk-MOSYEA7I.js → chunk-LX6XV4DK.js} +5 -5
  35. package/Build/Workers/{chunk-A6EA6KIE.js → chunk-MN34FIF5.js} +1 -1
  36. package/Build/Workers/{chunk-U5LKG6LX.js → chunk-MW3CJYLX.js} +2 -2
  37. package/Build/Workers/{chunk-NMG3WKSG.js → chunk-NE4JNU6H.js} +31 -21
  38. package/Build/Workers/{chunk-2C65EKYA.js → chunk-O43GWBSF.js} +1 -1
  39. package/Build/Workers/{chunk-N5MMDSD2.js → chunk-PIXK6KHB.js} +2 -2
  40. package/Build/Workers/{chunk-OX5UWWSG.js → chunk-PZ2WJWUG.js} +6 -6
  41. package/Build/Workers/{chunk-K2QBBJ4L.js → chunk-QRBRVGZC.js} +4 -4
  42. package/Build/Workers/{chunk-L3JCMKQJ.js → chunk-QTZQZY2C.js} +11 -35
  43. package/Build/Workers/{chunk-I6F6NGTW.js → chunk-R3HUGXBH.js} +9 -9
  44. package/Build/Workers/{chunk-EL33LD34.js → chunk-R4OZKBXH.js} +14 -10
  45. package/Build/Workers/{chunk-FYQAFAEG.js → chunk-RH4N2ONY.js} +7 -7
  46. package/Build/Workers/{chunk-FVDTKX3F.js → chunk-RIDPF7PO.js} +2 -2
  47. package/Build/Workers/{chunk-YYQZ7MJK.js → chunk-SNN7WOC2.js} +13 -13
  48. package/Build/Workers/{chunk-ZAU5EP5C.js → chunk-SQVTYRZY.js} +5 -7
  49. package/Build/Workers/{chunk-527JG4D7.js → chunk-SV7DDPAC.js} +1 -1
  50. package/Build/Workers/{chunk-ZGIA7FJM.js → chunk-TIXXVKUY.js} +11 -11
  51. package/Build/Workers/{chunk-J3DJI4PR.js → chunk-TMPVBFJQ.js} +11 -11
  52. package/Build/Workers/{chunk-ACDQH6GK.js → chunk-XUTVA4K5.js} +11 -11
  53. package/Build/Workers/{chunk-LOTTBLQP.js → chunk-Y4OJ4B23.js} +5 -5
  54. package/Build/Workers/{chunk-QVJ6IRKV.js → chunk-YBKFS53K.js} +1 -1
  55. package/Build/Workers/{chunk-2OKP3D6L.js → chunk-Z2SIPUKB.js} +6 -6
  56. package/Build/Workers/{chunk-3WASABU7.js → chunk-Z4JUBRHP.js} +6 -6
  57. package/Build/Workers/{chunk-2NLMZNJI.js → chunk-ZQRZBHYI.js} +4 -4
  58. package/Build/Workers/combineGeometry.js +23 -23
  59. package/Build/Workers/createBoxGeometry.js +17 -17
  60. package/Build/Workers/createBoxOutlineGeometry.js +15 -15
  61. package/Build/Workers/createCircleGeometry.js +25 -25
  62. package/Build/Workers/createCircleOutlineGeometry.js +18 -18
  63. package/Build/Workers/createCoplanarPolygonGeometry.js +33 -34
  64. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +30 -30
  65. package/Build/Workers/createCorridorGeometry.js +29 -28
  66. package/Build/Workers/createCorridorOutlineGeometry.js +28 -27
  67. package/Build/Workers/createCylinderGeometry.js +19 -19
  68. package/Build/Workers/createCylinderOutlineGeometry.js +18 -19
  69. package/Build/Workers/createEllipseGeometry.js +25 -25
  70. package/Build/Workers/createEllipseOutlineGeometry.js +18 -18
  71. package/Build/Workers/createEllipsoidGeometry.js +18 -18
  72. package/Build/Workers/createEllipsoidOutlineGeometry.js +17 -17
  73. package/Build/Workers/createFrustumGeometry.js +17 -17
  74. package/Build/Workers/createFrustumOutlineGeometry.js +17 -17
  75. package/Build/Workers/createGeometry.js +23 -23
  76. package/Build/Workers/createGroundPolylineGeometry.js +22 -22
  77. package/Build/Workers/createPlaneGeometry.js +15 -15
  78. package/Build/Workers/createPlaneOutlineGeometry.js +14 -14
  79. package/Build/Workers/createPolygonGeometry.js +474 -63
  80. package/Build/Workers/createPolygonOutlineGeometry.js +29 -29
  81. package/Build/Workers/createPolylineGeometry.js +24 -24
  82. package/Build/Workers/createPolylineVolumeGeometry.js +34 -33
  83. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +28 -28
  84. package/Build/Workers/createRectangleGeometry.js +27 -27
  85. package/Build/Workers/createRectangleOutlineGeometry.js +21 -23
  86. package/Build/Workers/createSimplePolylineGeometry.js +22 -22
  87. package/Build/Workers/createSphereGeometry.js +18 -18
  88. package/Build/Workers/createSphereOutlineGeometry.js +17 -17
  89. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  90. package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
  91. package/Build/Workers/createVectorTileGeometries.js +23 -23
  92. package/Build/Workers/createVectorTilePoints.js +12 -12
  93. package/Build/Workers/createVectorTilePolygons.js +21 -21
  94. package/Build/Workers/createVectorTilePolylines.js +14 -14
  95. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
  96. package/Build/Workers/createVerticesFromHeightmap.js +24 -24
  97. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -19
  98. package/Build/Workers/createWallGeometry.js +23 -23
  99. package/Build/Workers/createWallOutlineGeometry.js +22 -22
  100. package/Build/Workers/decodeDraco.js +11 -11
  101. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +29 -29
  102. package/Build/Workers/decodeI3S.js +9 -9
  103. package/Build/Workers/transcodeKTX2.js +10 -11
  104. package/Build/Workers/transferTypedArrayTest.js +1 -1
  105. package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
  106. package/README.md +1 -1
  107. package/Source/Core/CesiumTerrainProvider.js +11 -4
  108. package/Source/Core/Credit.js +7 -1
  109. package/Source/Core/Ellipsoid.js +45 -0
  110. package/Source/Core/EllipsoidRhumbLine.js +10 -4
  111. package/Source/Core/GoogleMaps.js +8 -24
  112. package/Source/Core/Ion.js +1 -2
  113. package/Source/Core/PolygonGeometry.js +344 -30
  114. package/Source/Core/PolygonGeometryLibrary.js +302 -1
  115. package/Source/Core/Quaternion.js +6 -2
  116. package/Source/Core/RectangleOutlineGeometry.js +2 -4
  117. package/Source/Core/RequestScheduler.js +3 -9
  118. package/Source/Core/Stereographic.js +247 -0
  119. package/Source/Core/TaskProcessor.js +53 -40
  120. package/Source/Core/TerrainEncoding.js +2 -2
  121. package/Source/Core/VerticalExaggeration.js +69 -0
  122. package/Source/Core/sampleTerrain.js +43 -10
  123. package/Source/Core/sampleTerrainMostDetailed.js +27 -3
  124. package/Source/DataSources/EntityCluster.js +1 -1
  125. package/Source/Renderer/AutomaticUniforms.js +53 -0
  126. package/Source/Renderer/UniformState.js +127 -19
  127. package/Source/Scene/ArcGisMapService.js +1 -2
  128. package/Source/Scene/Billboard.js +7 -0
  129. package/Source/Scene/BingMapsImageryProvider.js +27 -6
  130. package/Source/Scene/Cesium3DTile.js +122 -10
  131. package/Source/Scene/Cesium3DTileset.js +39 -82
  132. package/Source/Scene/CreditDisplay.js +2 -2
  133. package/Source/Scene/FrameState.js +4 -4
  134. package/Source/Scene/Globe.js +66 -19
  135. package/Source/Scene/GlobeSurfaceTile.js +4 -4
  136. package/Source/Scene/GlobeSurfaceTileProvider.js +21 -21
  137. package/Source/Scene/GroundPrimitive.js +5 -5
  138. package/Source/Scene/ImageryLayer.js +3 -3
  139. package/Source/Scene/IonImageryProvider.js +1 -1
  140. package/Source/Scene/LabelCollection.js +5 -2
  141. package/Source/Scene/MapboxImageryProvider.js +2 -2
  142. package/Source/Scene/Megatexture.js +1 -1
  143. package/Source/Scene/Model/Model.js +27 -22
  144. package/Source/Scene/Model/ModelRuntimePrimitive.js +6 -0
  145. package/Source/Scene/Model/VerticalExaggerationPipelineStage.js +60 -0
  146. package/Source/Scene/PrimitiveCollection.js +39 -0
  147. package/Source/Scene/Scene.js +31 -3
  148. package/Source/Scene/ScreenSpaceCameraController.js +12 -19
  149. package/Source/Scene/TerrainFillMesh.js +2 -2
  150. package/Source/Scene/TileOrientedBoundingBox.js +1 -1
  151. package/Source/Scene/VoxelPrimitive.js +73 -2
  152. package/Source/Scene/createGooglePhotorealistic3DTileset.js +38 -9
  153. package/Source/Shaders/GlobeVS.glsl +3 -3
  154. package/Source/Shaders/GlobeVS.js +3 -3
  155. package/Source/Shaders/Model/ModelVS.glsl +4 -0
  156. package/Source/Shaders/Model/ModelVS.js +4 -0
  157. package/Source/Shaders/Model/VerticalExaggerationStageVS.glsl +39 -0
  158. package/Source/Shaders/Model/VerticalExaggerationStageVS.js +41 -0
  159. package/Source/ThirdParty/Workers/pako_deflate.min.js +2 -0
  160. package/Source/ThirdParty/Workers/pako_inflate.min.js +2 -0
  161. package/Source/ThirdParty/Workers/z-worker-pako.js +1 -0
  162. package/Source/ThirdParty/draco_decoder.wasm +0 -0
  163. package/Source/Widget/CesiumWidget.js +2 -1
  164. package/index.d.ts +107 -50
  165. package/index.js +107 -104
  166. package/package.json +2 -5
  167. package/Source/Core/TerrainExaggeration.js +0 -49
@@ -0,0 +1,605 @@
1
+ /*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
2
+ !function(t, e) {
3
+ "object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd ? define(["exports"], e) : e((t = "undefined" != typeof globalThis ? globalThis : t || self).pako = {});
4
+ }(this, function(t) {
5
+ "use strict";
6
+ function e(t2) {
7
+ let e2 = t2.length;
8
+ for (; --e2 >= 0; )
9
+ t2[e2] = 0;
10
+ }
11
+ const a = 256, s = 286, n = 30, r = 15, i = new Uint8Array([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, 5, 5, 5, 0]), _ = new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]), l = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]), h = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), o = new Array(576);
12
+ e(o);
13
+ const d = new Array(60);
14
+ e(d);
15
+ const u = new Array(512);
16
+ e(u);
17
+ const f = new Array(256);
18
+ e(f);
19
+ const c = new Array(29);
20
+ e(c);
21
+ const p = new Array(n);
22
+ function g(t2, e2, a2, s2, n2) {
23
+ this.static_tree = t2, this.extra_bits = e2, this.extra_base = a2, this.elems = s2, this.max_length = n2, this.has_stree = t2 && t2.length;
24
+ }
25
+ let w, m, b;
26
+ function y(t2, e2) {
27
+ this.dyn_tree = t2, this.max_code = 0, this.stat_desc = e2;
28
+ }
29
+ e(p);
30
+ const v = (t2) => t2 < 256 ? u[t2] : u[256 + (t2 >>> 7)], z = (t2, e2) => {
31
+ t2.pending_buf[t2.pending++] = 255 & e2, t2.pending_buf[t2.pending++] = e2 >>> 8 & 255;
32
+ }, k = (t2, e2, a2) => {
33
+ t2.bi_valid > 16 - a2 ? (t2.bi_buf |= e2 << t2.bi_valid & 65535, z(t2, t2.bi_buf), t2.bi_buf = e2 >> 16 - t2.bi_valid, t2.bi_valid += a2 - 16) : (t2.bi_buf |= e2 << t2.bi_valid & 65535, t2.bi_valid += a2);
34
+ }, x = (t2, e2, a2) => {
35
+ k(t2, a2[2 * e2], a2[2 * e2 + 1]);
36
+ }, A = (t2, e2) => {
37
+ let a2 = 0;
38
+ do {
39
+ a2 |= 1 & t2, t2 >>>= 1, a2 <<= 1;
40
+ } while (--e2 > 0);
41
+ return a2 >>> 1;
42
+ }, E = (t2, e2, a2) => {
43
+ const s2 = new Array(16);
44
+ let n2, i2, _2 = 0;
45
+ for (n2 = 1; n2 <= r; n2++)
46
+ _2 = _2 + a2[n2 - 1] << 1, s2[n2] = _2;
47
+ for (i2 = 0; i2 <= e2; i2++) {
48
+ let e3 = t2[2 * i2 + 1];
49
+ 0 !== e3 && (t2[2 * i2] = A(s2[e3]++, e3));
50
+ }
51
+ }, Z = (t2) => {
52
+ let e2;
53
+ for (e2 = 0; e2 < s; e2++)
54
+ t2.dyn_ltree[2 * e2] = 0;
55
+ for (e2 = 0; e2 < n; e2++)
56
+ t2.dyn_dtree[2 * e2] = 0;
57
+ for (e2 = 0; e2 < 19; e2++)
58
+ t2.bl_tree[2 * e2] = 0;
59
+ t2.dyn_ltree[512] = 1, t2.opt_len = t2.static_len = 0, t2.sym_next = t2.matches = 0;
60
+ }, U = (t2) => {
61
+ t2.bi_valid > 8 ? z(t2, t2.bi_buf) : t2.bi_valid > 0 && (t2.pending_buf[t2.pending++] = t2.bi_buf), t2.bi_buf = 0, t2.bi_valid = 0;
62
+ }, R = (t2, e2, a2, s2) => {
63
+ const n2 = 2 * e2, r2 = 2 * a2;
64
+ return t2[n2] < t2[r2] || t2[n2] === t2[r2] && s2[e2] <= s2[a2];
65
+ }, S = (t2, e2, a2) => {
66
+ const s2 = t2.heap[a2];
67
+ let n2 = a2 << 1;
68
+ for (; n2 <= t2.heap_len && (n2 < t2.heap_len && R(e2, t2.heap[n2 + 1], t2.heap[n2], t2.depth) && n2++, !R(e2, s2, t2.heap[n2], t2.depth)); )
69
+ t2.heap[a2] = t2.heap[n2], a2 = n2, n2 <<= 1;
70
+ t2.heap[a2] = s2;
71
+ }, T = (t2, e2, s2) => {
72
+ let n2, r2, l2, h2, o2 = 0;
73
+ if (0 !== t2.sym_next)
74
+ do {
75
+ n2 = 255 & t2.pending_buf[t2.sym_buf + o2++], n2 += (255 & t2.pending_buf[t2.sym_buf + o2++]) << 8, r2 = t2.pending_buf[t2.sym_buf + o2++], 0 === n2 ? x(t2, r2, e2) : (l2 = f[r2], x(t2, l2 + a + 1, e2), h2 = i[l2], 0 !== h2 && (r2 -= c[l2], k(t2, r2, h2)), n2--, l2 = v(n2), x(t2, l2, s2), h2 = _[l2], 0 !== h2 && (n2 -= p[l2], k(t2, n2, h2)));
76
+ } while (o2 < t2.sym_next);
77
+ x(t2, 256, e2);
78
+ }, L = (t2, e2) => {
79
+ const a2 = e2.dyn_tree, s2 = e2.stat_desc.static_tree, n2 = e2.stat_desc.has_stree, i2 = e2.stat_desc.elems;
80
+ let _2, l2, h2, o2 = -1;
81
+ for (t2.heap_len = 0, t2.heap_max = 573, _2 = 0; _2 < i2; _2++)
82
+ 0 !== a2[2 * _2] ? (t2.heap[++t2.heap_len] = o2 = _2, t2.depth[_2] = 0) : a2[2 * _2 + 1] = 0;
83
+ for (; t2.heap_len < 2; )
84
+ h2 = t2.heap[++t2.heap_len] = o2 < 2 ? ++o2 : 0, a2[2 * h2] = 1, t2.depth[h2] = 0, t2.opt_len--, n2 && (t2.static_len -= s2[2 * h2 + 1]);
85
+ for (e2.max_code = o2, _2 = t2.heap_len >> 1; _2 >= 1; _2--)
86
+ S(t2, a2, _2);
87
+ h2 = i2;
88
+ do {
89
+ _2 = t2.heap[1], t2.heap[1] = t2.heap[t2.heap_len--], S(t2, a2, 1), l2 = t2.heap[1], t2.heap[--t2.heap_max] = _2, t2.heap[--t2.heap_max] = l2, a2[2 * h2] = a2[2 * _2] + a2[2 * l2], t2.depth[h2] = (t2.depth[_2] >= t2.depth[l2] ? t2.depth[_2] : t2.depth[l2]) + 1, a2[2 * _2 + 1] = a2[2 * l2 + 1] = h2, t2.heap[1] = h2++, S(t2, a2, 1);
90
+ } while (t2.heap_len >= 2);
91
+ t2.heap[--t2.heap_max] = t2.heap[1], ((t3, e3) => {
92
+ const a3 = e3.dyn_tree, s3 = e3.max_code, n3 = e3.stat_desc.static_tree, i3 = e3.stat_desc.has_stree, _3 = e3.stat_desc.extra_bits, l3 = e3.stat_desc.extra_base, h3 = e3.stat_desc.max_length;
93
+ let o3, d2, u2, f2, c2, p2, g2 = 0;
94
+ for (f2 = 0; f2 <= r; f2++)
95
+ t3.bl_count[f2] = 0;
96
+ for (a3[2 * t3.heap[t3.heap_max] + 1] = 0, o3 = t3.heap_max + 1; o3 < 573; o3++)
97
+ d2 = t3.heap[o3], f2 = a3[2 * a3[2 * d2 + 1] + 1] + 1, f2 > h3 && (f2 = h3, g2++), a3[2 * d2 + 1] = f2, d2 > s3 || (t3.bl_count[f2]++, c2 = 0, d2 >= l3 && (c2 = _3[d2 - l3]), p2 = a3[2 * d2], t3.opt_len += p2 * (f2 + c2), i3 && (t3.static_len += p2 * (n3[2 * d2 + 1] + c2)));
98
+ if (0 !== g2) {
99
+ do {
100
+ for (f2 = h3 - 1; 0 === t3.bl_count[f2]; )
101
+ f2--;
102
+ t3.bl_count[f2]--, t3.bl_count[f2 + 1] += 2, t3.bl_count[h3]--, g2 -= 2;
103
+ } while (g2 > 0);
104
+ for (f2 = h3; 0 !== f2; f2--)
105
+ for (d2 = t3.bl_count[f2]; 0 !== d2; )
106
+ u2 = t3.heap[--o3], u2 > s3 || (a3[2 * u2 + 1] !== f2 && (t3.opt_len += (f2 - a3[2 * u2 + 1]) * a3[2 * u2], a3[2 * u2 + 1] = f2), d2--);
107
+ }
108
+ })(t2, e2), E(a2, o2, t2.bl_count);
109
+ }, F = (t2, e2, a2) => {
110
+ let s2, n2, r2 = -1, i2 = e2[1], _2 = 0, l2 = 7, h2 = 4;
111
+ for (0 === i2 && (l2 = 138, h2 = 3), e2[2 * (a2 + 1) + 1] = 65535, s2 = 0; s2 <= a2; s2++)
112
+ n2 = i2, i2 = e2[2 * (s2 + 1) + 1], ++_2 < l2 && n2 === i2 || (_2 < h2 ? t2.bl_tree[2 * n2] += _2 : 0 !== n2 ? (n2 !== r2 && t2.bl_tree[2 * n2]++, t2.bl_tree[32]++) : _2 <= 10 ? t2.bl_tree[34]++ : t2.bl_tree[36]++, _2 = 0, r2 = n2, 0 === i2 ? (l2 = 138, h2 = 3) : n2 === i2 ? (l2 = 6, h2 = 3) : (l2 = 7, h2 = 4));
113
+ }, O = (t2, e2, a2) => {
114
+ let s2, n2, r2 = -1, i2 = e2[1], _2 = 0, l2 = 7, h2 = 4;
115
+ for (0 === i2 && (l2 = 138, h2 = 3), s2 = 0; s2 <= a2; s2++)
116
+ if (n2 = i2, i2 = e2[2 * (s2 + 1) + 1], !(++_2 < l2 && n2 === i2)) {
117
+ if (_2 < h2)
118
+ do {
119
+ x(t2, n2, t2.bl_tree);
120
+ } while (0 != --_2);
121
+ else
122
+ 0 !== n2 ? (n2 !== r2 && (x(t2, n2, t2.bl_tree), _2--), x(t2, 16, t2.bl_tree), k(t2, _2 - 3, 2)) : _2 <= 10 ? (x(t2, 17, t2.bl_tree), k(t2, _2 - 3, 3)) : (x(t2, 18, t2.bl_tree), k(t2, _2 - 11, 7));
123
+ _2 = 0, r2 = n2, 0 === i2 ? (l2 = 138, h2 = 3) : n2 === i2 ? (l2 = 6, h2 = 3) : (l2 = 7, h2 = 4);
124
+ }
125
+ };
126
+ let D = false;
127
+ const N = (t2, e2, a2, s2) => {
128
+ k(t2, 0 + (s2 ? 1 : 0), 3), U(t2), z(t2, a2), z(t2, ~a2), a2 && t2.pending_buf.set(t2.window.subarray(e2, e2 + a2), t2.pending), t2.pending += a2;
129
+ };
130
+ var I = (t2, e2, s2, n2) => {
131
+ let r2, i2, _2 = 0;
132
+ t2.level > 0 ? (2 === t2.strm.data_type && (t2.strm.data_type = ((t3) => {
133
+ let e3, s3 = 4093624447;
134
+ for (e3 = 0; e3 <= 31; e3++, s3 >>>= 1)
135
+ if (1 & s3 && 0 !== t3.dyn_ltree[2 * e3])
136
+ return 0;
137
+ if (0 !== t3.dyn_ltree[18] || 0 !== t3.dyn_ltree[20] || 0 !== t3.dyn_ltree[26])
138
+ return 1;
139
+ for (e3 = 32; e3 < a; e3++)
140
+ if (0 !== t3.dyn_ltree[2 * e3])
141
+ return 1;
142
+ return 0;
143
+ })(t2)), L(t2, t2.l_desc), L(t2, t2.d_desc), _2 = ((t3) => {
144
+ let e3;
145
+ for (F(t3, t3.dyn_ltree, t3.l_desc.max_code), F(t3, t3.dyn_dtree, t3.d_desc.max_code), L(t3, t3.bl_desc), e3 = 18; e3 >= 3 && 0 === t3.bl_tree[2 * h[e3] + 1]; e3--)
146
+ ;
147
+ return t3.opt_len += 3 * (e3 + 1) + 5 + 5 + 4, e3;
148
+ })(t2), r2 = t2.opt_len + 3 + 7 >>> 3, i2 = t2.static_len + 3 + 7 >>> 3, i2 <= r2 && (r2 = i2)) : r2 = i2 = s2 + 5, s2 + 4 <= r2 && -1 !== e2 ? N(t2, e2, s2, n2) : 4 === t2.strategy || i2 === r2 ? (k(t2, 2 + (n2 ? 1 : 0), 3), T(t2, o, d)) : (k(t2, 4 + (n2 ? 1 : 0), 3), ((t3, e3, a2, s3) => {
149
+ let n3;
150
+ for (k(t3, e3 - 257, 5), k(t3, a2 - 1, 5), k(t3, s3 - 4, 4), n3 = 0; n3 < s3; n3++)
151
+ k(t3, t3.bl_tree[2 * h[n3] + 1], 3);
152
+ O(t3, t3.dyn_ltree, e3 - 1), O(t3, t3.dyn_dtree, a2 - 1);
153
+ })(t2, t2.l_desc.max_code + 1, t2.d_desc.max_code + 1, _2 + 1), T(t2, t2.dyn_ltree, t2.dyn_dtree)), Z(t2), n2 && U(t2);
154
+ }, C = { _tr_init: (t2) => {
155
+ D || ((() => {
156
+ let t3, e2, a2, h2, y2;
157
+ const v2 = new Array(16);
158
+ for (a2 = 0, h2 = 0; h2 < 28; h2++)
159
+ for (c[h2] = a2, t3 = 0; t3 < 1 << i[h2]; t3++)
160
+ f[a2++] = h2;
161
+ for (f[a2 - 1] = h2, y2 = 0, h2 = 0; h2 < 16; h2++)
162
+ for (p[h2] = y2, t3 = 0; t3 < 1 << _[h2]; t3++)
163
+ u[y2++] = h2;
164
+ for (y2 >>= 7; h2 < n; h2++)
165
+ for (p[h2] = y2 << 7, t3 = 0; t3 < 1 << _[h2] - 7; t3++)
166
+ u[256 + y2++] = h2;
167
+ for (e2 = 0; e2 <= r; e2++)
168
+ v2[e2] = 0;
169
+ for (t3 = 0; t3 <= 143; )
170
+ o[2 * t3 + 1] = 8, t3++, v2[8]++;
171
+ for (; t3 <= 255; )
172
+ o[2 * t3 + 1] = 9, t3++, v2[9]++;
173
+ for (; t3 <= 279; )
174
+ o[2 * t3 + 1] = 7, t3++, v2[7]++;
175
+ for (; t3 <= 287; )
176
+ o[2 * t3 + 1] = 8, t3++, v2[8]++;
177
+ for (E(o, 287, v2), t3 = 0; t3 < n; t3++)
178
+ d[2 * t3 + 1] = 5, d[2 * t3] = A(t3, 5);
179
+ w = new g(o, i, 257, s, r), m = new g(d, _, 0, n, r), b = new g(new Array(0), l, 0, 19, 7);
180
+ })(), D = true), t2.l_desc = new y(t2.dyn_ltree, w), t2.d_desc = new y(t2.dyn_dtree, m), t2.bl_desc = new y(t2.bl_tree, b), t2.bi_buf = 0, t2.bi_valid = 0, Z(t2);
181
+ }, _tr_stored_block: N, _tr_flush_block: I, _tr_tally: (t2, e2, s2) => (t2.pending_buf[t2.sym_buf + t2.sym_next++] = e2, t2.pending_buf[t2.sym_buf + t2.sym_next++] = e2 >> 8, t2.pending_buf[t2.sym_buf + t2.sym_next++] = s2, 0 === e2 ? t2.dyn_ltree[2 * s2]++ : (t2.matches++, e2--, t2.dyn_ltree[2 * (f[s2] + a + 1)]++, t2.dyn_dtree[2 * v(e2)]++), t2.sym_next === t2.sym_end), _tr_align: (t2) => {
182
+ k(t2, 2, 3), x(t2, 256, o), ((t3) => {
183
+ 16 === t3.bi_valid ? (z(t3, t3.bi_buf), t3.bi_buf = 0, t3.bi_valid = 0) : t3.bi_valid >= 8 && (t3.pending_buf[t3.pending++] = 255 & t3.bi_buf, t3.bi_buf >>= 8, t3.bi_valid -= 8);
184
+ })(t2);
185
+ } };
186
+ var B = (t2, e2, a2, s2) => {
187
+ let n2 = 65535 & t2 | 0, r2 = t2 >>> 16 & 65535 | 0, i2 = 0;
188
+ for (; 0 !== a2; ) {
189
+ i2 = a2 > 2e3 ? 2e3 : a2, a2 -= i2;
190
+ do {
191
+ n2 = n2 + e2[s2++] | 0, r2 = r2 + n2 | 0;
192
+ } while (--i2);
193
+ n2 %= 65521, r2 %= 65521;
194
+ }
195
+ return n2 | r2 << 16 | 0;
196
+ };
197
+ const H = new Uint32Array((() => {
198
+ let t2, e2 = [];
199
+ for (var a2 = 0; a2 < 256; a2++) {
200
+ t2 = a2;
201
+ for (var s2 = 0; s2 < 8; s2++)
202
+ t2 = 1 & t2 ? 3988292384 ^ t2 >>> 1 : t2 >>> 1;
203
+ e2[a2] = t2;
204
+ }
205
+ return e2;
206
+ })());
207
+ var M = (t2, e2, a2, s2) => {
208
+ const n2 = H, r2 = s2 + a2;
209
+ t2 ^= -1;
210
+ for (let a3 = s2; a3 < r2; a3++)
211
+ t2 = t2 >>> 8 ^ n2[255 & (t2 ^ e2[a3])];
212
+ return -1 ^ t2;
213
+ }, P = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" }, j = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
214
+ const { _tr_init: K, _tr_stored_block: Y, _tr_flush_block: G, _tr_tally: X, _tr_align: W } = C, { Z_NO_FLUSH: q, Z_PARTIAL_FLUSH: J, Z_FULL_FLUSH: Q, Z_FINISH: V, Z_BLOCK: $, Z_OK: tt, Z_STREAM_END: et, Z_STREAM_ERROR: at, Z_DATA_ERROR: st, Z_BUF_ERROR: nt, Z_DEFAULT_COMPRESSION: rt, Z_FILTERED: it, Z_HUFFMAN_ONLY: _t, Z_RLE: lt, Z_FIXED: ht, Z_DEFAULT_STRATEGY: ot, Z_UNKNOWN: dt, Z_DEFLATED: ut } = j, ft = 258, ct = 262, pt = 42, gt = 113, wt = 666, mt = (t2, e2) => (t2.msg = P[e2], e2), bt = (t2) => 2 * t2 - (t2 > 4 ? 9 : 0), yt = (t2) => {
215
+ let e2 = t2.length;
216
+ for (; --e2 >= 0; )
217
+ t2[e2] = 0;
218
+ }, vt = (t2) => {
219
+ let e2, a2, s2, n2 = t2.w_size;
220
+ e2 = t2.hash_size, s2 = e2;
221
+ do {
222
+ a2 = t2.head[--s2], t2.head[s2] = a2 >= n2 ? a2 - n2 : 0;
223
+ } while (--e2);
224
+ e2 = n2, s2 = e2;
225
+ do {
226
+ a2 = t2.prev[--s2], t2.prev[s2] = a2 >= n2 ? a2 - n2 : 0;
227
+ } while (--e2);
228
+ };
229
+ let zt = (t2, e2, a2) => (e2 << t2.hash_shift ^ a2) & t2.hash_mask;
230
+ const kt = (t2) => {
231
+ const e2 = t2.state;
232
+ let a2 = e2.pending;
233
+ a2 > t2.avail_out && (a2 = t2.avail_out), 0 !== a2 && (t2.output.set(e2.pending_buf.subarray(e2.pending_out, e2.pending_out + a2), t2.next_out), t2.next_out += a2, e2.pending_out += a2, t2.total_out += a2, t2.avail_out -= a2, e2.pending -= a2, 0 === e2.pending && (e2.pending_out = 0));
234
+ }, xt = (t2, e2) => {
235
+ G(t2, t2.block_start >= 0 ? t2.block_start : -1, t2.strstart - t2.block_start, e2), t2.block_start = t2.strstart, kt(t2.strm);
236
+ }, At = (t2, e2) => {
237
+ t2.pending_buf[t2.pending++] = e2;
238
+ }, Et = (t2, e2) => {
239
+ t2.pending_buf[t2.pending++] = e2 >>> 8 & 255, t2.pending_buf[t2.pending++] = 255 & e2;
240
+ }, Zt = (t2, e2, a2, s2) => {
241
+ let n2 = t2.avail_in;
242
+ return n2 > s2 && (n2 = s2), 0 === n2 ? 0 : (t2.avail_in -= n2, e2.set(t2.input.subarray(t2.next_in, t2.next_in + n2), a2), 1 === t2.state.wrap ? t2.adler = B(t2.adler, e2, n2, a2) : 2 === t2.state.wrap && (t2.adler = M(t2.adler, e2, n2, a2)), t2.next_in += n2, t2.total_in += n2, n2);
243
+ }, Ut = (t2, e2) => {
244
+ let a2, s2, n2 = t2.max_chain_length, r2 = t2.strstart, i2 = t2.prev_length, _2 = t2.nice_match;
245
+ const l2 = t2.strstart > t2.w_size - ct ? t2.strstart - (t2.w_size - ct) : 0, h2 = t2.window, o2 = t2.w_mask, d2 = t2.prev, u2 = t2.strstart + ft;
246
+ let f2 = h2[r2 + i2 - 1], c2 = h2[r2 + i2];
247
+ t2.prev_length >= t2.good_match && (n2 >>= 2), _2 > t2.lookahead && (_2 = t2.lookahead);
248
+ do {
249
+ if (a2 = e2, h2[a2 + i2] === c2 && h2[a2 + i2 - 1] === f2 && h2[a2] === h2[r2] && h2[++a2] === h2[r2 + 1]) {
250
+ r2 += 2, a2++;
251
+ do {
252
+ } while (h2[++r2] === h2[++a2] && h2[++r2] === h2[++a2] && h2[++r2] === h2[++a2] && h2[++r2] === h2[++a2] && h2[++r2] === h2[++a2] && h2[++r2] === h2[++a2] && h2[++r2] === h2[++a2] && h2[++r2] === h2[++a2] && r2 < u2);
253
+ if (s2 = ft - (u2 - r2), r2 = u2 - ft, s2 > i2) {
254
+ if (t2.match_start = e2, i2 = s2, s2 >= _2)
255
+ break;
256
+ f2 = h2[r2 + i2 - 1], c2 = h2[r2 + i2];
257
+ }
258
+ }
259
+ } while ((e2 = d2[e2 & o2]) > l2 && 0 != --n2);
260
+ return i2 <= t2.lookahead ? i2 : t2.lookahead;
261
+ }, Rt = (t2) => {
262
+ const e2 = t2.w_size;
263
+ let a2, s2, n2;
264
+ do {
265
+ if (s2 = t2.window_size - t2.lookahead - t2.strstart, t2.strstart >= e2 + (e2 - ct) && (t2.window.set(t2.window.subarray(e2, e2 + e2 - s2), 0), t2.match_start -= e2, t2.strstart -= e2, t2.block_start -= e2, t2.insert > t2.strstart && (t2.insert = t2.strstart), vt(t2), s2 += e2), 0 === t2.strm.avail_in)
266
+ break;
267
+ if (a2 = Zt(t2.strm, t2.window, t2.strstart + t2.lookahead, s2), t2.lookahead += a2, t2.lookahead + t2.insert >= 3)
268
+ for (n2 = t2.strstart - t2.insert, t2.ins_h = t2.window[n2], t2.ins_h = zt(t2, t2.ins_h, t2.window[n2 + 1]); t2.insert && (t2.ins_h = zt(t2, t2.ins_h, t2.window[n2 + 3 - 1]), t2.prev[n2 & t2.w_mask] = t2.head[t2.ins_h], t2.head[t2.ins_h] = n2, n2++, t2.insert--, !(t2.lookahead + t2.insert < 3)); )
269
+ ;
270
+ } while (t2.lookahead < ct && 0 !== t2.strm.avail_in);
271
+ }, St = (t2, e2) => {
272
+ let a2, s2, n2, r2 = t2.pending_buf_size - 5 > t2.w_size ? t2.w_size : t2.pending_buf_size - 5, i2 = 0, _2 = t2.strm.avail_in;
273
+ do {
274
+ if (a2 = 65535, n2 = t2.bi_valid + 42 >> 3, t2.strm.avail_out < n2)
275
+ break;
276
+ if (n2 = t2.strm.avail_out - n2, s2 = t2.strstart - t2.block_start, a2 > s2 + t2.strm.avail_in && (a2 = s2 + t2.strm.avail_in), a2 > n2 && (a2 = n2), a2 < r2 && (0 === a2 && e2 !== V || e2 === q || a2 !== s2 + t2.strm.avail_in))
277
+ break;
278
+ i2 = e2 === V && a2 === s2 + t2.strm.avail_in ? 1 : 0, Y(t2, 0, 0, i2), t2.pending_buf[t2.pending - 4] = a2, t2.pending_buf[t2.pending - 3] = a2 >> 8, t2.pending_buf[t2.pending - 2] = ~a2, t2.pending_buf[t2.pending - 1] = ~a2 >> 8, kt(t2.strm), s2 && (s2 > a2 && (s2 = a2), t2.strm.output.set(t2.window.subarray(t2.block_start, t2.block_start + s2), t2.strm.next_out), t2.strm.next_out += s2, t2.strm.avail_out -= s2, t2.strm.total_out += s2, t2.block_start += s2, a2 -= s2), a2 && (Zt(t2.strm, t2.strm.output, t2.strm.next_out, a2), t2.strm.next_out += a2, t2.strm.avail_out -= a2, t2.strm.total_out += a2);
279
+ } while (0 === i2);
280
+ return _2 -= t2.strm.avail_in, _2 && (_2 >= t2.w_size ? (t2.matches = 2, t2.window.set(t2.strm.input.subarray(t2.strm.next_in - t2.w_size, t2.strm.next_in), 0), t2.strstart = t2.w_size, t2.insert = t2.strstart) : (t2.window_size - t2.strstart <= _2 && (t2.strstart -= t2.w_size, t2.window.set(t2.window.subarray(t2.w_size, t2.w_size + t2.strstart), 0), t2.matches < 2 && t2.matches++, t2.insert > t2.strstart && (t2.insert = t2.strstart)), t2.window.set(t2.strm.input.subarray(t2.strm.next_in - _2, t2.strm.next_in), t2.strstart), t2.strstart += _2, t2.insert += _2 > t2.w_size - t2.insert ? t2.w_size - t2.insert : _2), t2.block_start = t2.strstart), t2.high_water < t2.strstart && (t2.high_water = t2.strstart), i2 ? 4 : e2 !== q && e2 !== V && 0 === t2.strm.avail_in && t2.strstart === t2.block_start ? 2 : (n2 = t2.window_size - t2.strstart, t2.strm.avail_in > n2 && t2.block_start >= t2.w_size && (t2.block_start -= t2.w_size, t2.strstart -= t2.w_size, t2.window.set(t2.window.subarray(t2.w_size, t2.w_size + t2.strstart), 0), t2.matches < 2 && t2.matches++, n2 += t2.w_size, t2.insert > t2.strstart && (t2.insert = t2.strstart)), n2 > t2.strm.avail_in && (n2 = t2.strm.avail_in), n2 && (Zt(t2.strm, t2.window, t2.strstart, n2), t2.strstart += n2, t2.insert += n2 > t2.w_size - t2.insert ? t2.w_size - t2.insert : n2), t2.high_water < t2.strstart && (t2.high_water = t2.strstart), n2 = t2.bi_valid + 42 >> 3, n2 = t2.pending_buf_size - n2 > 65535 ? 65535 : t2.pending_buf_size - n2, r2 = n2 > t2.w_size ? t2.w_size : n2, s2 = t2.strstart - t2.block_start, (s2 >= r2 || (s2 || e2 === V) && e2 !== q && 0 === t2.strm.avail_in && s2 <= n2) && (a2 = s2 > n2 ? n2 : s2, i2 = e2 === V && 0 === t2.strm.avail_in && a2 === s2 ? 1 : 0, Y(t2, t2.block_start, a2, i2), t2.block_start += a2, kt(t2.strm)), i2 ? 3 : 1);
281
+ }, Tt = (t2, e2) => {
282
+ let a2, s2;
283
+ for (; ; ) {
284
+ if (t2.lookahead < ct) {
285
+ if (Rt(t2), t2.lookahead < ct && e2 === q)
286
+ return 1;
287
+ if (0 === t2.lookahead)
288
+ break;
289
+ }
290
+ if (a2 = 0, t2.lookahead >= 3 && (t2.ins_h = zt(t2, t2.ins_h, t2.window[t2.strstart + 3 - 1]), a2 = t2.prev[t2.strstart & t2.w_mask] = t2.head[t2.ins_h], t2.head[t2.ins_h] = t2.strstart), 0 !== a2 && t2.strstart - a2 <= t2.w_size - ct && (t2.match_length = Ut(t2, a2)), t2.match_length >= 3)
291
+ if (s2 = X(t2, t2.strstart - t2.match_start, t2.match_length - 3), t2.lookahead -= t2.match_length, t2.match_length <= t2.max_lazy_match && t2.lookahead >= 3) {
292
+ t2.match_length--;
293
+ do {
294
+ t2.strstart++, t2.ins_h = zt(t2, t2.ins_h, t2.window[t2.strstart + 3 - 1]), a2 = t2.prev[t2.strstart & t2.w_mask] = t2.head[t2.ins_h], t2.head[t2.ins_h] = t2.strstart;
295
+ } while (0 != --t2.match_length);
296
+ t2.strstart++;
297
+ } else
298
+ t2.strstart += t2.match_length, t2.match_length = 0, t2.ins_h = t2.window[t2.strstart], t2.ins_h = zt(t2, t2.ins_h, t2.window[t2.strstart + 1]);
299
+ else
300
+ s2 = X(t2, 0, t2.window[t2.strstart]), t2.lookahead--, t2.strstart++;
301
+ if (s2 && (xt(t2, false), 0 === t2.strm.avail_out))
302
+ return 1;
303
+ }
304
+ return t2.insert = t2.strstart < 2 ? t2.strstart : 2, e2 === V ? (xt(t2, true), 0 === t2.strm.avail_out ? 3 : 4) : t2.sym_next && (xt(t2, false), 0 === t2.strm.avail_out) ? 1 : 2;
305
+ }, Lt = (t2, e2) => {
306
+ let a2, s2, n2;
307
+ for (; ; ) {
308
+ if (t2.lookahead < ct) {
309
+ if (Rt(t2), t2.lookahead < ct && e2 === q)
310
+ return 1;
311
+ if (0 === t2.lookahead)
312
+ break;
313
+ }
314
+ if (a2 = 0, t2.lookahead >= 3 && (t2.ins_h = zt(t2, t2.ins_h, t2.window[t2.strstart + 3 - 1]), a2 = t2.prev[t2.strstart & t2.w_mask] = t2.head[t2.ins_h], t2.head[t2.ins_h] = t2.strstart), t2.prev_length = t2.match_length, t2.prev_match = t2.match_start, t2.match_length = 2, 0 !== a2 && t2.prev_length < t2.max_lazy_match && t2.strstart - a2 <= t2.w_size - ct && (t2.match_length = Ut(t2, a2), t2.match_length <= 5 && (t2.strategy === it || 3 === t2.match_length && t2.strstart - t2.match_start > 4096) && (t2.match_length = 2)), t2.prev_length >= 3 && t2.match_length <= t2.prev_length) {
315
+ n2 = t2.strstart + t2.lookahead - 3, s2 = X(t2, t2.strstart - 1 - t2.prev_match, t2.prev_length - 3), t2.lookahead -= t2.prev_length - 1, t2.prev_length -= 2;
316
+ do {
317
+ ++t2.strstart <= n2 && (t2.ins_h = zt(t2, t2.ins_h, t2.window[t2.strstart + 3 - 1]), a2 = t2.prev[t2.strstart & t2.w_mask] = t2.head[t2.ins_h], t2.head[t2.ins_h] = t2.strstart);
318
+ } while (0 != --t2.prev_length);
319
+ if (t2.match_available = 0, t2.match_length = 2, t2.strstart++, s2 && (xt(t2, false), 0 === t2.strm.avail_out))
320
+ return 1;
321
+ } else if (t2.match_available) {
322
+ if (s2 = X(t2, 0, t2.window[t2.strstart - 1]), s2 && xt(t2, false), t2.strstart++, t2.lookahead--, 0 === t2.strm.avail_out)
323
+ return 1;
324
+ } else
325
+ t2.match_available = 1, t2.strstart++, t2.lookahead--;
326
+ }
327
+ return t2.match_available && (s2 = X(t2, 0, t2.window[t2.strstart - 1]), t2.match_available = 0), t2.insert = t2.strstart < 2 ? t2.strstart : 2, e2 === V ? (xt(t2, true), 0 === t2.strm.avail_out ? 3 : 4) : t2.sym_next && (xt(t2, false), 0 === t2.strm.avail_out) ? 1 : 2;
328
+ };
329
+ function Ft(t2, e2, a2, s2, n2) {
330
+ this.good_length = t2, this.max_lazy = e2, this.nice_length = a2, this.max_chain = s2, this.func = n2;
331
+ }
332
+ const Ot = [new Ft(0, 0, 0, 0, St), new Ft(4, 4, 8, 4, Tt), new Ft(4, 5, 16, 8, Tt), new Ft(4, 6, 32, 32, Tt), new Ft(4, 4, 16, 16, Lt), new Ft(8, 16, 32, 32, Lt), new Ft(8, 16, 128, 128, Lt), new Ft(8, 32, 128, 256, Lt), new Ft(32, 128, 258, 1024, Lt), new Ft(32, 258, 258, 4096, Lt)];
333
+ function Dt() {
334
+ this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = ut, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(1146), this.dyn_dtree = new Uint16Array(122), this.bl_tree = new Uint16Array(78), yt(this.dyn_ltree), yt(this.dyn_dtree), yt(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(16), this.heap = new Uint16Array(573), yt(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(573), yt(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
335
+ }
336
+ const Nt = (t2) => {
337
+ if (!t2)
338
+ return 1;
339
+ const e2 = t2.state;
340
+ return !e2 || e2.strm !== t2 || e2.status !== pt && 57 !== e2.status && 69 !== e2.status && 73 !== e2.status && 91 !== e2.status && 103 !== e2.status && e2.status !== gt && e2.status !== wt ? 1 : 0;
341
+ }, It = (t2) => {
342
+ if (Nt(t2))
343
+ return mt(t2, at);
344
+ t2.total_in = t2.total_out = 0, t2.data_type = dt;
345
+ const e2 = t2.state;
346
+ return e2.pending = 0, e2.pending_out = 0, e2.wrap < 0 && (e2.wrap = -e2.wrap), e2.status = 2 === e2.wrap ? 57 : e2.wrap ? pt : gt, t2.adler = 2 === e2.wrap ? 0 : 1, e2.last_flush = -2, K(e2), tt;
347
+ }, Ct = (t2) => {
348
+ const e2 = It(t2);
349
+ var a2;
350
+ return e2 === tt && ((a2 = t2.state).window_size = 2 * a2.w_size, yt(a2.head), a2.max_lazy_match = Ot[a2.level].max_lazy, a2.good_match = Ot[a2.level].good_length, a2.nice_match = Ot[a2.level].nice_length, a2.max_chain_length = Ot[a2.level].max_chain, a2.strstart = 0, a2.block_start = 0, a2.lookahead = 0, a2.insert = 0, a2.match_length = a2.prev_length = 2, a2.match_available = 0, a2.ins_h = 0), e2;
351
+ }, Bt = (t2, e2, a2, s2, n2, r2) => {
352
+ if (!t2)
353
+ return at;
354
+ let i2 = 1;
355
+ if (e2 === rt && (e2 = 6), s2 < 0 ? (i2 = 0, s2 = -s2) : s2 > 15 && (i2 = 2, s2 -= 16), n2 < 1 || n2 > 9 || a2 !== ut || s2 < 8 || s2 > 15 || e2 < 0 || e2 > 9 || r2 < 0 || r2 > ht || 8 === s2 && 1 !== i2)
356
+ return mt(t2, at);
357
+ 8 === s2 && (s2 = 9);
358
+ const _2 = new Dt();
359
+ return t2.state = _2, _2.strm = t2, _2.status = pt, _2.wrap = i2, _2.gzhead = null, _2.w_bits = s2, _2.w_size = 1 << _2.w_bits, _2.w_mask = _2.w_size - 1, _2.hash_bits = n2 + 7, _2.hash_size = 1 << _2.hash_bits, _2.hash_mask = _2.hash_size - 1, _2.hash_shift = ~~((_2.hash_bits + 3 - 1) / 3), _2.window = new Uint8Array(2 * _2.w_size), _2.head = new Uint16Array(_2.hash_size), _2.prev = new Uint16Array(_2.w_size), _2.lit_bufsize = 1 << n2 + 6, _2.pending_buf_size = 4 * _2.lit_bufsize, _2.pending_buf = new Uint8Array(_2.pending_buf_size), _2.sym_buf = _2.lit_bufsize, _2.sym_end = 3 * (_2.lit_bufsize - 1), _2.level = e2, _2.strategy = r2, _2.method = a2, Ct(t2);
360
+ };
361
+ var Ht = { deflateInit: (t2, e2) => Bt(t2, e2, ut, 15, 8, ot), deflateInit2: Bt, deflateReset: Ct, deflateResetKeep: It, deflateSetHeader: (t2, e2) => Nt(t2) || 2 !== t2.state.wrap ? at : (t2.state.gzhead = e2, tt), deflate: (t2, e2) => {
362
+ if (Nt(t2) || e2 > $ || e2 < 0)
363
+ return t2 ? mt(t2, at) : at;
364
+ const a2 = t2.state;
365
+ if (!t2.output || 0 !== t2.avail_in && !t2.input || a2.status === wt && e2 !== V)
366
+ return mt(t2, 0 === t2.avail_out ? nt : at);
367
+ const s2 = a2.last_flush;
368
+ if (a2.last_flush = e2, 0 !== a2.pending) {
369
+ if (kt(t2), 0 === t2.avail_out)
370
+ return a2.last_flush = -1, tt;
371
+ } else if (0 === t2.avail_in && bt(e2) <= bt(s2) && e2 !== V)
372
+ return mt(t2, nt);
373
+ if (a2.status === wt && 0 !== t2.avail_in)
374
+ return mt(t2, nt);
375
+ if (a2.status === pt && 0 === a2.wrap && (a2.status = gt), a2.status === pt) {
376
+ let e3 = ut + (a2.w_bits - 8 << 4) << 8, s3 = -1;
377
+ if (s3 = a2.strategy >= _t || a2.level < 2 ? 0 : a2.level < 6 ? 1 : 6 === a2.level ? 2 : 3, e3 |= s3 << 6, 0 !== a2.strstart && (e3 |= 32), e3 += 31 - e3 % 31, Et(a2, e3), 0 !== a2.strstart && (Et(a2, t2.adler >>> 16), Et(a2, 65535 & t2.adler)), t2.adler = 1, a2.status = gt, kt(t2), 0 !== a2.pending)
378
+ return a2.last_flush = -1, tt;
379
+ }
380
+ if (57 === a2.status) {
381
+ if (t2.adler = 0, At(a2, 31), At(a2, 139), At(a2, 8), a2.gzhead)
382
+ At(a2, (a2.gzhead.text ? 1 : 0) + (a2.gzhead.hcrc ? 2 : 0) + (a2.gzhead.extra ? 4 : 0) + (a2.gzhead.name ? 8 : 0) + (a2.gzhead.comment ? 16 : 0)), At(a2, 255 & a2.gzhead.time), At(a2, a2.gzhead.time >> 8 & 255), At(a2, a2.gzhead.time >> 16 & 255), At(a2, a2.gzhead.time >> 24 & 255), At(a2, 9 === a2.level ? 2 : a2.strategy >= _t || a2.level < 2 ? 4 : 0), At(a2, 255 & a2.gzhead.os), a2.gzhead.extra && a2.gzhead.extra.length && (At(a2, 255 & a2.gzhead.extra.length), At(a2, a2.gzhead.extra.length >> 8 & 255)), a2.gzhead.hcrc && (t2.adler = M(t2.adler, a2.pending_buf, a2.pending, 0)), a2.gzindex = 0, a2.status = 69;
383
+ else if (At(a2, 0), At(a2, 0), At(a2, 0), At(a2, 0), At(a2, 0), At(a2, 9 === a2.level ? 2 : a2.strategy >= _t || a2.level < 2 ? 4 : 0), At(a2, 3), a2.status = gt, kt(t2), 0 !== a2.pending)
384
+ return a2.last_flush = -1, tt;
385
+ }
386
+ if (69 === a2.status) {
387
+ if (a2.gzhead.extra) {
388
+ let e3 = a2.pending, s3 = (65535 & a2.gzhead.extra.length) - a2.gzindex;
389
+ for (; a2.pending + s3 > a2.pending_buf_size; ) {
390
+ let n3 = a2.pending_buf_size - a2.pending;
391
+ if (a2.pending_buf.set(a2.gzhead.extra.subarray(a2.gzindex, a2.gzindex + n3), a2.pending), a2.pending = a2.pending_buf_size, a2.gzhead.hcrc && a2.pending > e3 && (t2.adler = M(t2.adler, a2.pending_buf, a2.pending - e3, e3)), a2.gzindex += n3, kt(t2), 0 !== a2.pending)
392
+ return a2.last_flush = -1, tt;
393
+ e3 = 0, s3 -= n3;
394
+ }
395
+ let n2 = new Uint8Array(a2.gzhead.extra);
396
+ a2.pending_buf.set(n2.subarray(a2.gzindex, a2.gzindex + s3), a2.pending), a2.pending += s3, a2.gzhead.hcrc && a2.pending > e3 && (t2.adler = M(t2.adler, a2.pending_buf, a2.pending - e3, e3)), a2.gzindex = 0;
397
+ }
398
+ a2.status = 73;
399
+ }
400
+ if (73 === a2.status) {
401
+ if (a2.gzhead.name) {
402
+ let e3, s3 = a2.pending;
403
+ do {
404
+ if (a2.pending === a2.pending_buf_size) {
405
+ if (a2.gzhead.hcrc && a2.pending > s3 && (t2.adler = M(t2.adler, a2.pending_buf, a2.pending - s3, s3)), kt(t2), 0 !== a2.pending)
406
+ return a2.last_flush = -1, tt;
407
+ s3 = 0;
408
+ }
409
+ e3 = a2.gzindex < a2.gzhead.name.length ? 255 & a2.gzhead.name.charCodeAt(a2.gzindex++) : 0, At(a2, e3);
410
+ } while (0 !== e3);
411
+ a2.gzhead.hcrc && a2.pending > s3 && (t2.adler = M(t2.adler, a2.pending_buf, a2.pending - s3, s3)), a2.gzindex = 0;
412
+ }
413
+ a2.status = 91;
414
+ }
415
+ if (91 === a2.status) {
416
+ if (a2.gzhead.comment) {
417
+ let e3, s3 = a2.pending;
418
+ do {
419
+ if (a2.pending === a2.pending_buf_size) {
420
+ if (a2.gzhead.hcrc && a2.pending > s3 && (t2.adler = M(t2.adler, a2.pending_buf, a2.pending - s3, s3)), kt(t2), 0 !== a2.pending)
421
+ return a2.last_flush = -1, tt;
422
+ s3 = 0;
423
+ }
424
+ e3 = a2.gzindex < a2.gzhead.comment.length ? 255 & a2.gzhead.comment.charCodeAt(a2.gzindex++) : 0, At(a2, e3);
425
+ } while (0 !== e3);
426
+ a2.gzhead.hcrc && a2.pending > s3 && (t2.adler = M(t2.adler, a2.pending_buf, a2.pending - s3, s3));
427
+ }
428
+ a2.status = 103;
429
+ }
430
+ if (103 === a2.status) {
431
+ if (a2.gzhead.hcrc) {
432
+ if (a2.pending + 2 > a2.pending_buf_size && (kt(t2), 0 !== a2.pending))
433
+ return a2.last_flush = -1, tt;
434
+ At(a2, 255 & t2.adler), At(a2, t2.adler >> 8 & 255), t2.adler = 0;
435
+ }
436
+ if (a2.status = gt, kt(t2), 0 !== a2.pending)
437
+ return a2.last_flush = -1, tt;
438
+ }
439
+ if (0 !== t2.avail_in || 0 !== a2.lookahead || e2 !== q && a2.status !== wt) {
440
+ let s3 = 0 === a2.level ? St(a2, e2) : a2.strategy === _t ? ((t3, e3) => {
441
+ let a3;
442
+ for (; ; ) {
443
+ if (0 === t3.lookahead && (Rt(t3), 0 === t3.lookahead)) {
444
+ if (e3 === q)
445
+ return 1;
446
+ break;
447
+ }
448
+ if (t3.match_length = 0, a3 = X(t3, 0, t3.window[t3.strstart]), t3.lookahead--, t3.strstart++, a3 && (xt(t3, false), 0 === t3.strm.avail_out))
449
+ return 1;
450
+ }
451
+ return t3.insert = 0, e3 === V ? (xt(t3, true), 0 === t3.strm.avail_out ? 3 : 4) : t3.sym_next && (xt(t3, false), 0 === t3.strm.avail_out) ? 1 : 2;
452
+ })(a2, e2) : a2.strategy === lt ? ((t3, e3) => {
453
+ let a3, s4, n2, r2;
454
+ const i2 = t3.window;
455
+ for (; ; ) {
456
+ if (t3.lookahead <= ft) {
457
+ if (Rt(t3), t3.lookahead <= ft && e3 === q)
458
+ return 1;
459
+ if (0 === t3.lookahead)
460
+ break;
461
+ }
462
+ if (t3.match_length = 0, t3.lookahead >= 3 && t3.strstart > 0 && (n2 = t3.strstart - 1, s4 = i2[n2], s4 === i2[++n2] && s4 === i2[++n2] && s4 === i2[++n2])) {
463
+ r2 = t3.strstart + ft;
464
+ do {
465
+ } while (s4 === i2[++n2] && s4 === i2[++n2] && s4 === i2[++n2] && s4 === i2[++n2] && s4 === i2[++n2] && s4 === i2[++n2] && s4 === i2[++n2] && s4 === i2[++n2] && n2 < r2);
466
+ t3.match_length = ft - (r2 - n2), t3.match_length > t3.lookahead && (t3.match_length = t3.lookahead);
467
+ }
468
+ if (t3.match_length >= 3 ? (a3 = X(t3, 1, t3.match_length - 3), t3.lookahead -= t3.match_length, t3.strstart += t3.match_length, t3.match_length = 0) : (a3 = X(t3, 0, t3.window[t3.strstart]), t3.lookahead--, t3.strstart++), a3 && (xt(t3, false), 0 === t3.strm.avail_out))
469
+ return 1;
470
+ }
471
+ return t3.insert = 0, e3 === V ? (xt(t3, true), 0 === t3.strm.avail_out ? 3 : 4) : t3.sym_next && (xt(t3, false), 0 === t3.strm.avail_out) ? 1 : 2;
472
+ })(a2, e2) : Ot[a2.level].func(a2, e2);
473
+ if (3 !== s3 && 4 !== s3 || (a2.status = wt), 1 === s3 || 3 === s3)
474
+ return 0 === t2.avail_out && (a2.last_flush = -1), tt;
475
+ if (2 === s3 && (e2 === J ? W(a2) : e2 !== $ && (Y(a2, 0, 0, false), e2 === Q && (yt(a2.head), 0 === a2.lookahead && (a2.strstart = 0, a2.block_start = 0, a2.insert = 0))), kt(t2), 0 === t2.avail_out))
476
+ return a2.last_flush = -1, tt;
477
+ }
478
+ return e2 !== V ? tt : a2.wrap <= 0 ? et : (2 === a2.wrap ? (At(a2, 255 & t2.adler), At(a2, t2.adler >> 8 & 255), At(a2, t2.adler >> 16 & 255), At(a2, t2.adler >> 24 & 255), At(a2, 255 & t2.total_in), At(a2, t2.total_in >> 8 & 255), At(a2, t2.total_in >> 16 & 255), At(a2, t2.total_in >> 24 & 255)) : (Et(a2, t2.adler >>> 16), Et(a2, 65535 & t2.adler)), kt(t2), a2.wrap > 0 && (a2.wrap = -a2.wrap), 0 !== a2.pending ? tt : et);
479
+ }, deflateEnd: (t2) => {
480
+ if (Nt(t2))
481
+ return at;
482
+ const e2 = t2.state.status;
483
+ return t2.state = null, e2 === gt ? mt(t2, st) : tt;
484
+ }, deflateSetDictionary: (t2, e2) => {
485
+ let a2 = e2.length;
486
+ if (Nt(t2))
487
+ return at;
488
+ const s2 = t2.state, n2 = s2.wrap;
489
+ if (2 === n2 || 1 === n2 && s2.status !== pt || s2.lookahead)
490
+ return at;
491
+ if (1 === n2 && (t2.adler = B(t2.adler, e2, a2, 0)), s2.wrap = 0, a2 >= s2.w_size) {
492
+ 0 === n2 && (yt(s2.head), s2.strstart = 0, s2.block_start = 0, s2.insert = 0);
493
+ let t3 = new Uint8Array(s2.w_size);
494
+ t3.set(e2.subarray(a2 - s2.w_size, a2), 0), e2 = t3, a2 = s2.w_size;
495
+ }
496
+ const r2 = t2.avail_in, i2 = t2.next_in, _2 = t2.input;
497
+ for (t2.avail_in = a2, t2.next_in = 0, t2.input = e2, Rt(s2); s2.lookahead >= 3; ) {
498
+ let t3 = s2.strstart, e3 = s2.lookahead - 2;
499
+ do {
500
+ s2.ins_h = zt(s2, s2.ins_h, s2.window[t3 + 3 - 1]), s2.prev[t3 & s2.w_mask] = s2.head[s2.ins_h], s2.head[s2.ins_h] = t3, t3++;
501
+ } while (--e3);
502
+ s2.strstart = t3, s2.lookahead = 2, Rt(s2);
503
+ }
504
+ return s2.strstart += s2.lookahead, s2.block_start = s2.strstart, s2.insert = s2.lookahead, s2.lookahead = 0, s2.match_length = s2.prev_length = 2, s2.match_available = 0, t2.next_in = i2, t2.input = _2, t2.avail_in = r2, s2.wrap = n2, tt;
505
+ }, deflateInfo: "pako deflate (from Nodeca project)" };
506
+ const Mt = (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2);
507
+ var Pt = function(t2) {
508
+ const e2 = Array.prototype.slice.call(arguments, 1);
509
+ for (; e2.length; ) {
510
+ const a2 = e2.shift();
511
+ if (a2) {
512
+ if ("object" != typeof a2)
513
+ throw new TypeError(a2 + "must be non-object");
514
+ for (const e3 in a2)
515
+ Mt(a2, e3) && (t2[e3] = a2[e3]);
516
+ }
517
+ }
518
+ return t2;
519
+ }, jt = (t2) => {
520
+ let e2 = 0;
521
+ for (let a3 = 0, s2 = t2.length; a3 < s2; a3++)
522
+ e2 += t2[a3].length;
523
+ const a2 = new Uint8Array(e2);
524
+ for (let e3 = 0, s2 = 0, n2 = t2.length; e3 < n2; e3++) {
525
+ let n3 = t2[e3];
526
+ a2.set(n3, s2), s2 += n3.length;
527
+ }
528
+ return a2;
529
+ };
530
+ let Kt = true;
531
+ try {
532
+ String.fromCharCode.apply(null, new Uint8Array(1));
533
+ } catch (t2) {
534
+ Kt = false;
535
+ }
536
+ const Yt = new Uint8Array(256);
537
+ for (let t2 = 0; t2 < 256; t2++)
538
+ Yt[t2] = t2 >= 252 ? 6 : t2 >= 248 ? 5 : t2 >= 240 ? 4 : t2 >= 224 ? 3 : t2 >= 192 ? 2 : 1;
539
+ Yt[254] = Yt[254] = 1;
540
+ var Gt = (t2) => {
541
+ if ("function" == typeof TextEncoder && TextEncoder.prototype.encode)
542
+ return new TextEncoder().encode(t2);
543
+ let e2, a2, s2, n2, r2, i2 = t2.length, _2 = 0;
544
+ for (n2 = 0; n2 < i2; n2++)
545
+ a2 = t2.charCodeAt(n2), 55296 == (64512 & a2) && n2 + 1 < i2 && (s2 = t2.charCodeAt(n2 + 1), 56320 == (64512 & s2) && (a2 = 65536 + (a2 - 55296 << 10) + (s2 - 56320), n2++)), _2 += a2 < 128 ? 1 : a2 < 2048 ? 2 : a2 < 65536 ? 3 : 4;
546
+ for (e2 = new Uint8Array(_2), r2 = 0, n2 = 0; r2 < _2; n2++)
547
+ a2 = t2.charCodeAt(n2), 55296 == (64512 & a2) && n2 + 1 < i2 && (s2 = t2.charCodeAt(n2 + 1), 56320 == (64512 & s2) && (a2 = 65536 + (a2 - 55296 << 10) + (s2 - 56320), n2++)), a2 < 128 ? e2[r2++] = a2 : a2 < 2048 ? (e2[r2++] = 192 | a2 >>> 6, e2[r2++] = 128 | 63 & a2) : a2 < 65536 ? (e2[r2++] = 224 | a2 >>> 12, e2[r2++] = 128 | a2 >>> 6 & 63, e2[r2++] = 128 | 63 & a2) : (e2[r2++] = 240 | a2 >>> 18, e2[r2++] = 128 | a2 >>> 12 & 63, e2[r2++] = 128 | a2 >>> 6 & 63, e2[r2++] = 128 | 63 & a2);
548
+ return e2;
549
+ };
550
+ var Xt = function() {
551
+ this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
552
+ };
553
+ const Wt = Object.prototype.toString, { Z_NO_FLUSH: qt, Z_SYNC_FLUSH: Jt, Z_FULL_FLUSH: Qt, Z_FINISH: Vt, Z_OK: $t, Z_STREAM_END: te, Z_DEFAULT_COMPRESSION: ee, Z_DEFAULT_STRATEGY: ae, Z_DEFLATED: se } = j;
554
+ function ne(t2) {
555
+ this.options = Pt({ level: ee, method: se, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: ae }, t2 || {});
556
+ let e2 = this.options;
557
+ e2.raw && e2.windowBits > 0 ? e2.windowBits = -e2.windowBits : e2.gzip && e2.windowBits > 0 && e2.windowBits < 16 && (e2.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new Xt(), this.strm.avail_out = 0;
558
+ let a2 = Ht.deflateInit2(this.strm, e2.level, e2.method, e2.windowBits, e2.memLevel, e2.strategy);
559
+ if (a2 !== $t)
560
+ throw new Error(P[a2]);
561
+ if (e2.header && Ht.deflateSetHeader(this.strm, e2.header), e2.dictionary) {
562
+ let t3;
563
+ if (t3 = "string" == typeof e2.dictionary ? Gt(e2.dictionary) : "[object ArrayBuffer]" === Wt.call(e2.dictionary) ? new Uint8Array(e2.dictionary) : e2.dictionary, a2 = Ht.deflateSetDictionary(this.strm, t3), a2 !== $t)
564
+ throw new Error(P[a2]);
565
+ this._dict_set = true;
566
+ }
567
+ }
568
+ function re(t2, e2) {
569
+ const a2 = new ne(e2);
570
+ if (a2.push(t2, true), a2.err)
571
+ throw a2.msg || P[a2.err];
572
+ return a2.result;
573
+ }
574
+ ne.prototype.push = function(t2, e2) {
575
+ const a2 = this.strm, s2 = this.options.chunkSize;
576
+ let n2, r2;
577
+ if (this.ended)
578
+ return false;
579
+ for (r2 = e2 === ~~e2 ? e2 : true === e2 ? Vt : qt, "string" == typeof t2 ? a2.input = Gt(t2) : "[object ArrayBuffer]" === Wt.call(t2) ? a2.input = new Uint8Array(t2) : a2.input = t2, a2.next_in = 0, a2.avail_in = a2.input.length; ; )
580
+ if (0 === a2.avail_out && (a2.output = new Uint8Array(s2), a2.next_out = 0, a2.avail_out = s2), (r2 === Jt || r2 === Qt) && a2.avail_out <= 6)
581
+ this.onData(a2.output.subarray(0, a2.next_out)), a2.avail_out = 0;
582
+ else {
583
+ if (n2 = Ht.deflate(a2, r2), n2 === te)
584
+ return a2.next_out > 0 && this.onData(a2.output.subarray(0, a2.next_out)), n2 = Ht.deflateEnd(this.strm), this.onEnd(n2), this.ended = true, n2 === $t;
585
+ if (0 !== a2.avail_out) {
586
+ if (r2 > 0 && a2.next_out > 0)
587
+ this.onData(a2.output.subarray(0, a2.next_out)), a2.avail_out = 0;
588
+ else if (0 === a2.avail_in)
589
+ break;
590
+ } else
591
+ this.onData(a2.output);
592
+ }
593
+ return true;
594
+ }, ne.prototype.onData = function(t2) {
595
+ this.chunks.push(t2);
596
+ }, ne.prototype.onEnd = function(t2) {
597
+ t2 === $t && (this.result = jt(this.chunks)), this.chunks = [], this.err = t2, this.msg = this.strm.msg;
598
+ };
599
+ var ie = ne, _e = re, le = function(t2, e2) {
600
+ return (e2 = e2 || {}).raw = true, re(t2, e2);
601
+ }, he = function(t2, e2) {
602
+ return (e2 = e2 || {}).gzip = true, re(t2, e2);
603
+ }, oe = j, de = { Deflate: ie, deflate: _e, deflateRaw: le, gzip: he, constants: oe };
604
+ t.Deflate = ie, t.constants = oe, t.default = de, t.deflate = _e, t.deflateRaw = le, t.gzip = he, Object.defineProperty(t, "__esModule", { value: true });
605
+ });