@mtkruto/node 0.1.289 → 0.1.299

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 (114) hide show
  1. package/README.md +77 -1
  2. package/esm/client/4_client.js +1 -1
  3. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts +83 -0
  4. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.js +203 -0
  5. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts +50 -0
  6. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +274 -0
  7. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts +47 -0
  8. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +51 -0
  9. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts +66 -0
  10. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +191 -0
  11. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts +168 -0
  12. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +385 -0
  13. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts +159 -0
  14. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Parser.js +431 -0
  15. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts +181 -0
  16. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.js +1046 -0
  17. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts +42 -0
  18. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +52 -0
  19. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts +11 -0
  20. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.js +122 -0
  21. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts +1 -0
  22. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +24 -0
  23. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts +46 -0
  24. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +121 -0
  25. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts +31 -0
  26. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.js +30 -0
  27. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts +2128 -0
  28. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.js +2127 -0
  29. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts +109 -0
  30. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.js +108 -0
  31. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts +8 -0
  32. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.js +1 -0
  33. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts +90 -0
  34. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +95 -0
  35. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts +50 -0
  36. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +128 -0
  37. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts +46 -0
  38. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +110 -0
  39. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts +42 -0
  40. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +120 -0
  41. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts +6 -0
  42. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.js +6 -0
  43. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts +54 -0
  44. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +110 -0
  45. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts +40 -0
  46. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +75 -0
  47. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts +58 -0
  48. package/esm/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +101 -0
  49. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +2 -0
  50. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +5 -1
  51. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +2 -2
  52. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +5 -1
  53. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +1 -1
  54. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +8 -8
  55. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +2 -2
  56. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +19 -21
  57. package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +3 -3
  58. package/package.json +1 -1
  59. package/script/client/4_client.js +1 -1
  60. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.d.ts +83 -0
  61. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomHandler.js +207 -0
  62. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.d.ts +50 -0
  63. package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +301 -0
  64. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.d.ts +47 -0
  65. package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +55 -0
  66. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.d.ts +66 -0
  67. package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +222 -0
  68. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.d.ts +168 -0
  69. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +404 -0
  70. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.d.ts +159 -0
  71. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Parser.js +438 -0
  72. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.d.ts +181 -0
  73. package/script/deps/deno.land/x/html_parser@v0.1.3/src/Tokenizer.js +1052 -0
  74. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.d.ts +42 -0
  75. package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +88 -0
  76. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.d.ts +11 -0
  77. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode.js +128 -0
  78. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.d.ts +1 -0
  79. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +30 -0
  80. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.d.ts +46 -0
  81. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +129 -0
  82. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.d.ts +31 -0
  83. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/decode.js +32 -0
  84. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.d.ts +2128 -0
  85. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/entities.js +2129 -0
  86. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.d.ts +109 -0
  87. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/legacy.js +110 -0
  88. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.d.ts +8 -0
  89. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/maps/xml.js +3 -0
  90. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.d.ts +90 -0
  91. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +114 -0
  92. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.d.ts +50 -0
  93. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +134 -0
  94. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.d.ts +46 -0
  95. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +118 -0
  96. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.d.ts +42 -0
  97. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +129 -0
  98. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.d.ts +6 -0
  99. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/mod.js +22 -0
  100. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.d.ts +54 -0
  101. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +119 -0
  102. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.d.ts +40 -0
  103. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +86 -0
  104. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.d.ts +58 -0
  105. package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +112 -0
  106. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +2 -0
  107. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +7 -1
  108. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +2 -2
  109. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +7 -1
  110. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +1 -1
  111. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +8 -8
  112. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +2 -2
  113. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +19 -21
  114. package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +3 -3
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.prevElementSibling = exports.nextElementSibling = exports.getName = exports.hasAttrib = exports.getAttributeValue = exports.getSiblings = exports.getParent = exports.getChildren = void 0;
4
+ const Node_js_1 = require("../Node.js");
5
+ const emptyArray = [];
6
+ /**
7
+ * Get a node's children.
8
+ *
9
+ * @param elem Node to get the children of.
10
+ * @returns `elem`'s children, or an empty array.
11
+ */
12
+ function getChildren(elem) {
13
+ return elem.children ?? emptyArray;
14
+ }
15
+ exports.getChildren = getChildren;
16
+ /**
17
+ * Get a node's parent.
18
+ *
19
+ * @param elem Node to get the parent of.
20
+ * @returns `elem`'s parent node.
21
+ */
22
+ function getParent(elem) {
23
+ return elem.parent || null;
24
+ }
25
+ exports.getParent = getParent;
26
+ /**
27
+ * Gets an elements siblings, including the element itself.
28
+ *
29
+ * Attempts to get the children through the element's parent first.
30
+ * If we don't have a parent (the element is a root node),
31
+ * we walk the element's `prev` & `next` to get all remaining nodes.
32
+ *
33
+ * @param elem Element to get the siblings of.
34
+ * @returns `elem`'s siblings.
35
+ */
36
+ function getSiblings(elem) {
37
+ const parent = getParent(elem);
38
+ if (parent != null)
39
+ return getChildren(parent);
40
+ const siblings = [elem];
41
+ let { prev, next } = elem;
42
+ while (prev != null) {
43
+ siblings.unshift(prev);
44
+ ({ prev } = prev);
45
+ }
46
+ while (next != null) {
47
+ siblings.push(next);
48
+ ({ next } = next);
49
+ }
50
+ return siblings;
51
+ }
52
+ exports.getSiblings = getSiblings;
53
+ /**
54
+ * Gets an attribute from an element.
55
+ *
56
+ * @param elem Element to check.
57
+ * @param name Attribute name to retrieve.
58
+ * @returns The element's attribute value, or `undefined`.
59
+ */
60
+ function getAttributeValue(elem, name) {
61
+ return elem.attribs?.[name];
62
+ }
63
+ exports.getAttributeValue = getAttributeValue;
64
+ /**
65
+ * Checks whether an element has an attribute.
66
+ *
67
+ * @param elem Element to check.
68
+ * @param name Attribute name to look for.
69
+ * @returns Returns whether `elem` has the attribute `name`.
70
+ */
71
+ function hasAttrib(elem, name) {
72
+ return (elem.attribs != null &&
73
+ Object.prototype.hasOwnProperty.call(elem.attribs, name) &&
74
+ elem.attribs[name] != null);
75
+ }
76
+ exports.hasAttrib = hasAttrib;
77
+ /**
78
+ * Get the tag name of an element.
79
+ *
80
+ * @param elem The element to get the name for.
81
+ * @returns The tag name of `elem`.
82
+ */
83
+ function getName(elem) {
84
+ return elem.name;
85
+ }
86
+ exports.getName = getName;
87
+ /**
88
+ * Returns the next element sibling of a node.
89
+ *
90
+ * @param elem The element to get the next sibling of.
91
+ * @returns `elem`'s next sibling that is a tag.
92
+ */
93
+ function nextElementSibling(elem) {
94
+ let { next } = elem;
95
+ while (next !== null && !(0, Node_js_1.isTag)(next))
96
+ ({ next } = next);
97
+ return next;
98
+ }
99
+ exports.nextElementSibling = nextElementSibling;
100
+ /**
101
+ * Returns the previous element sibling of a node.
102
+ *
103
+ * @param elem The element to get the previous sibling of.
104
+ * @returns `elem`'s previous sibling that is a tag.
105
+ */
106
+ function prevElementSibling(elem) {
107
+ let { prev } = elem;
108
+ while (prev !== null && !(0, Node_js_1.isTag)(prev))
109
+ ({ prev } = prev);
110
+ return prev;
111
+ }
112
+ exports.prevElementSibling = prevElementSibling;
@@ -24,4 +24,6 @@ export declare class Deflate {
24
24
  constructor(options?: DeflateOptions);
25
25
  push(data: Uint8Array, mode: boolean | number): Uint8Array;
26
26
  }
27
+ export declare function deflate(input: Uint8Array, options?: DeflateOptions): Uint8Array;
28
+ export declare function deflateRaw(input: Uint8Array, options?: DeflateOptions): Uint8Array;
27
29
  export declare function gzip(input: Uint8Array, options?: DeflateOptions): Uint8Array;
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.gzip = exports.Deflate = void 0;
29
+ exports.gzip = exports.deflateRaw = exports.deflate = exports.Deflate = void 0;
30
30
  // from https://github.com/nodeca/pako
31
31
  const zlibDeflate = __importStar(require("./zlib/deflate.js"));
32
32
  const uint8_js_1 = require("../utils/uint8.js");
@@ -159,6 +159,12 @@ function deflate(input, options = {}) {
159
159
  throw deflator.msg || messages_js_1.message[deflator.err];
160
160
  return result;
161
161
  }
162
+ exports.deflate = deflate;
163
+ function deflateRaw(input, options = {}) {
164
+ options.raw = true;
165
+ return deflate(input, options);
166
+ }
167
+ exports.deflateRaw = deflateRaw;
162
168
  function gzip(input, options = {}) {
163
169
  options.gzip = true;
164
170
  return deflate(input, options);
@@ -18,6 +18,6 @@ export declare class Inflate {
18
18
  constructor(options: InflateOptions);
19
19
  push(data: Uint8Array, mode: boolean | number): Uint8Array;
20
20
  }
21
- declare function inflate(input: Uint8Array, options?: InflateOptions): Uint8Array;
21
+ export declare function inflate(input: Uint8Array, options?: InflateOptions): Uint8Array;
22
+ export declare function inflateRaw(input: Uint8Array, options?: InflateOptions): Uint8Array;
22
23
  export declare const gunzip: typeof inflate;
23
- export {};
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.gunzip = exports.Inflate = void 0;
29
+ exports.gunzip = exports.inflateRaw = exports.inflate = exports.Inflate = void 0;
30
30
  // from https://github.com/nodeca/pako
31
31
  const uint8_js_1 = require("../utils/uint8.js");
32
32
  const zlibInflate = __importStar(require("./zlib/inflate.js"));
@@ -199,4 +199,10 @@ function inflate(input, options = {}) {
199
199
  throw inflator.msg || messages_js_1.message[inflator.err];
200
200
  return result;
201
201
  }
202
+ exports.inflate = inflate;
203
+ function inflateRaw(input, options = {}) {
204
+ options.raw = true;
205
+ return inflate(input, options);
206
+ }
207
+ exports.inflateRaw = inflateRaw;
202
208
  exports.gunzip = inflate;
@@ -8,7 +8,7 @@ function makeTable() {
8
8
  for (let n = 0; n < 256; n++) {
9
9
  c = n;
10
10
  for (let k = 0; k < 8; k++) {
11
- c = (c & 1) ? (m ^ (c >>> 1)) : (c >>> 1);
11
+ c = ((c & 1) ? (m ^ (c >>> 1)) : (c >>> 1));
12
12
  }
13
13
  table[n] = c;
14
14
  }
@@ -82,7 +82,7 @@ const MAX_BITS = 15;
82
82
  /* All codes must not exceed MAX_BITS bits */
83
83
  const MIN_MATCH = 3;
84
84
  const MAX_MATCH = 258;
85
- const MIN_LOOKAHEAD = MAX_MATCH + MIN_MATCH + 1;
85
+ const MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);
86
86
  const PRESET_DICT = 0x20;
87
87
  const INIT_STATE = 42;
88
88
  const EXTRA_STATE = 69;
@@ -101,7 +101,7 @@ function err(strm, errorCode) {
101
101
  return errorCode;
102
102
  }
103
103
  function rank(f) {
104
- return (f << 1) - (f > 4 ? 9 : 0);
104
+ return ((f) << 1) - ((f) > 4 ? 9 : 0);
105
105
  }
106
106
  function zero(buf) {
107
107
  buf.fill(0, 0, buf.length);
@@ -132,7 +132,7 @@ function flush_pending(strm) {
132
132
  }
133
133
  }
134
134
  function flush_block_only(s, last) {
135
- trees._tr_flush_block(s, s.block_start >= 0 ? s.block_start : -1, s.strstart - s.block_start, last);
135
+ trees._tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last);
136
136
  s.block_start = s.strstart;
137
137
  flush_pending(s.strm);
138
138
  }
@@ -320,13 +320,13 @@ function fill_window(s) {
320
320
  p = n;
321
321
  do {
322
322
  m = s.head[--p];
323
- s.head[p] = m >= _w_size ? m - _w_size : 0;
323
+ s.head[p] = (m >= _w_size ? m - _w_size : 0);
324
324
  } while (--n);
325
325
  n = _w_size;
326
326
  p = n;
327
327
  do {
328
328
  m = s.prev[--p];
329
- s.prev[p] = m >= _w_size ? m - _w_size : 0;
329
+ s.prev[p] = (m >= _w_size ? m - _w_size : 0);
330
330
  /* If n is not on any hash chain, prev[n] is garbage but
331
331
  * its value will never be used.
332
332
  */
@@ -607,7 +607,7 @@ function deflate_fast(s, flush) {
607
607
  /***/
608
608
  }
609
609
  }
610
- s.insert = (s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1;
610
+ s.insert = ((s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1);
611
611
  if (flush === status_js_1.default.Z_FINISH) {
612
612
  /*** FLUSH_BLOCK(s, 1); ***/
613
613
  flush_block_only(s, true);
@@ -1467,7 +1467,7 @@ function deflateResetKeep(strm) {
1467
1467
  s.wrap = -s.wrap;
1468
1468
  /* was made negative by deflate(..., Z_FINISH); */
1469
1469
  }
1470
- s.status = s.wrap ? INIT_STATE : BUSY_STATE;
1470
+ s.status = (s.wrap ? INIT_STATE : BUSY_STATE);
1471
1471
  strm.adler = (s.wrap === 2)
1472
1472
  ? 0 // crc32(0, Z_NULL, 0)
1473
1473
  : 1; // adler32(0, Z_NULL, 0)
@@ -1630,7 +1630,7 @@ function deflate(strm, flush) {
1630
1630
  else {
1631
1631
  level_flags = 3;
1632
1632
  }
1633
- header |= level_flags << 6;
1633
+ header |= (level_flags << 6);
1634
1634
  if (s.strstart !== 0)
1635
1635
  header |= PRESET_DICT;
1636
1636
  header += 31 - (header % 31);
@@ -315,8 +315,8 @@ function inflate_fast(strm, start) {
315
315
  /* update state and return */
316
316
  strm.next_in = _in;
317
317
  strm.next_out = _out;
318
- strm.avail_in = _in < last ? 5 + (last - _in) : 5 - (_in - last);
319
- strm.avail_out = _out < end ? 257 + (end - _out) : 257 - (_out - end);
318
+ strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last));
319
+ strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end));
320
320
  state.hold = hold;
321
321
  state.bits = bits;
322
322
  return;
@@ -630,7 +630,7 @@ function inflate(strm, flush) {
630
630
  break;
631
631
  }
632
632
  if (state.head) {
633
- state.head.text = (hold >> 8) & 1;
633
+ state.head.text = ((hold >> 8) & 1);
634
634
  }
635
635
  if (state.flags & 0x0200) {
636
636
  //=== CRC2(state.check, hold);
@@ -684,8 +684,8 @@ function inflate(strm, flush) {
684
684
  }
685
685
  //===//
686
686
  if (state.head) {
687
- state.head.xflags = hold & 0xff;
688
- state.head.os = hold >> 8;
687
+ state.head.xflags = (hold & 0xff);
688
+ state.head.os = (hold >> 8);
689
689
  }
690
690
  if (state.flags & 0x0200) {
691
691
  //=== CRC2(state.check, hold);
@@ -841,7 +841,7 @@ function inflate(strm, flush) {
841
841
  //===//
842
842
  }
843
843
  if (state.head) {
844
- state.head.hcrc = (state.flags >> 9) & 1;
844
+ state.head.hcrc = ((state.flags >> 9) & 1);
845
845
  state.head.done = true;
846
846
  }
847
847
  strm.adler = state.check = 0;
@@ -901,7 +901,7 @@ function inflate(strm, flush) {
901
901
  bits += 8;
902
902
  }
903
903
  //===//
904
- state.last = hold & 0x01 /*BITS(1)*/;
904
+ state.last = (hold & 0x01) /*BITS(1)*/;
905
905
  //--- DROPBITS(1) ---//
906
906
  hold >>>= 1;
907
907
  bits -= 1;
@@ -1041,7 +1041,7 @@ function inflate(strm, flush) {
1041
1041
  bits += 8;
1042
1042
  }
1043
1043
  //===//
1044
- state.lens[order[state.have++]] = hold & 0x07; //BITS(3);
1044
+ state.lens[order[state.have++]] = (hold & 0x07); //BITS(3);
1045
1045
  //--- DROPBITS(3) ---//
1046
1046
  hold >>>= 3;
1047
1047
  bits -= 3;
@@ -1076,7 +1076,7 @@ function inflate(strm, flush) {
1076
1076
  here_bits = here >>> 24;
1077
1077
  here_op = (here >>> 16) & 0xff;
1078
1078
  here_val = here & 0xffff;
1079
- if (here_bits <= bits)
1079
+ if ((here_bits) <= bits)
1080
1080
  break;
1081
1081
  //--- PULLBYTE() ---//
1082
1082
  if (have === 0)
@@ -1350,7 +1350,7 @@ function inflate(strm, flush) {
1350
1350
  here_bits = here >>> 24;
1351
1351
  here_op = (here >>> 16) & 0xff;
1352
1352
  here_val = here & 0xffff;
1353
- if (here_bits <= bits)
1353
+ if ((here_bits) <= bits)
1354
1354
  break;
1355
1355
  //--- PULLBYTE() ---//
1356
1356
  if (have === 0)
@@ -1399,7 +1399,7 @@ function inflate(strm, flush) {
1399
1399
  break;
1400
1400
  }
1401
1401
  state.offset = here_val;
1402
- state.extra = here_op & 15;
1402
+ state.extra = (here_op) & 15;
1403
1403
  state.mode = DISTEXT;
1404
1404
  /* falls through */
1405
1405
  case DISTEXT:
@@ -1510,12 +1510,11 @@ function inflate(strm, flush) {
1510
1510
  strm.total_out += _out;
1511
1511
  state.total += _out;
1512
1512
  if (_out) {
1513
- strm.adler =
1514
- state.check =
1515
- /*UPDATE(state.check, put - _out, _out);*/
1516
- state.flags
1517
- ? (0, crc32_js_1.crc32)(state.check, output, _out, put - _out)
1518
- : (0, adler32_js_1.default)(state.check, output, _out, put - _out);
1513
+ strm.adler = state.check =
1514
+ /*UPDATE(state.check, put - _out, _out);*/
1515
+ (state.flags
1516
+ ? (0, crc32_js_1.crc32)(state.check, output, _out, put - _out)
1517
+ : (0, adler32_js_1.default)(state.check, output, _out, put - _out));
1519
1518
  }
1520
1519
  _out = left;
1521
1520
  // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too
@@ -1598,12 +1597,11 @@ function inflate(strm, flush) {
1598
1597
  strm.total_out += _out;
1599
1598
  state.total += _out;
1600
1599
  if (state.wrap && _out) {
1601
- strm.adler =
1602
- state
1603
- .check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
1604
- state.flags
1605
- ? (0, crc32_js_1.crc32)(state.check, output, _out, strm.next_out - _out)
1606
- : (0, adler32_js_1.default)(state.check, output, _out, strm.next_out - _out);
1600
+ strm.adler = state
1601
+ .check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
1602
+ (state.flags
1603
+ ? (0, crc32_js_1.crc32)(state.check, output, _out, strm.next_out - _out)
1604
+ : (0, adler32_js_1.default)(state.check, output, _out, strm.next_out - _out));
1607
1605
  }
1608
1606
  strm.data_type = state.bits + (state.last ? 64 : 0) +
1609
1607
  (state.mode === TYPE ? 128 : 0) +
@@ -264,7 +264,7 @@ function d_code(dist) {
264
264
  function put_short(s, w) {
265
265
  // put_byte(s, (uch)((w) & 0xff));
266
266
  // put_byte(s, (uch)((ush)(w) >> 8));
267
- s.pending_buf[s.pending++] = w & 0xff;
267
+ s.pending_buf[s.pending++] = (w) & 0xff;
268
268
  s.pending_buf[s.pending++] = (w >>> 8) & 0xff;
269
269
  }
270
270
  /* ===========================================================================
@@ -699,7 +699,7 @@ function build_tree(s, desc) {
699
699
  * two codes of non zero frequency.
700
700
  */
701
701
  while (s.heap_len < 2) {
702
- node = s.heap[++s.heap_len] = max_code < 2 ? ++max_code : 0;
702
+ node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0);
703
703
  tree[node * 2] /*.Freq*/ = 1;
704
704
  s.depth[node] = 0;
705
705
  s.opt_len--;
@@ -712,7 +712,7 @@ function build_tree(s, desc) {
712
712
  /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,
713
713
  * establish sub-heaps of increasing lengths:
714
714
  */
715
- for (n = s.heap_len >> 1 /*int /2*/; n >= 1; n--)
715
+ for (n = (s.heap_len >> 1 /*int /2*/); n >= 1; n--)
716
716
  pqdownheap(s, tree, n);
717
717
  /* Construct the Huffman tree by repeatedly combining the least two
718
718
  * frequent nodes.