@courtifyai/docx-render 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -25,52 +25,52 @@ https://github.com/nodeca/pako/blob/main/LICENSE
25
25
  x.exports = t();
26
26
  })(function() {
27
27
  return function t(r, n, a) {
28
- function o(m, u) {
28
+ function o(m, f) {
29
29
  if (!n[m]) {
30
30
  if (!r[m]) {
31
- var y = typeof Tt == "function" && Tt;
32
- if (!u && y) return y(m, !0);
31
+ var g = typeof Tt == "function" && Tt;
32
+ if (!f && g) return g(m, !0);
33
33
  if (s) return s(m, !0);
34
34
  var p = new Error("Cannot find module '" + m + "'");
35
35
  throw p.code = "MODULE_NOT_FOUND", p;
36
36
  }
37
- var h = n[m] = { exports: {} };
38
- r[m][0].call(h.exports, function(b) {
39
- var d = r[m][1][b];
40
- return o(d || b);
41
- }, h, h.exports, t, r, n, a);
37
+ var c = n[m] = { exports: {} };
38
+ r[m][0].call(c.exports, function(y) {
39
+ var d = r[m][1][y];
40
+ return o(d || y);
41
+ }, c, c.exports, t, r, n, a);
42
42
  }
43
43
  return n[m].exports;
44
44
  }
45
- for (var s = typeof Tt == "function" && Tt, c = 0; c < a.length; c++) o(a[c]);
45
+ for (var s = typeof Tt == "function" && Tt, h = 0; h < a.length; h++) o(a[h]);
46
46
  return o;
47
47
  }({ 1: [function(t, r, n) {
48
48
  var a = t("./utils"), o = t("./support"), s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
49
- n.encode = function(c) {
50
- for (var m, u, y, p, h, b, d, _ = [], f = 0, v = c.length, E = v, A = a.getTypeOf(c) !== "string"; f < c.length; ) E = v - f, y = A ? (m = c[f++], u = f < v ? c[f++] : 0, f < v ? c[f++] : 0) : (m = c.charCodeAt(f++), u = f < v ? c.charCodeAt(f++) : 0, f < v ? c.charCodeAt(f++) : 0), p = m >> 2, h = (3 & m) << 4 | u >> 4, b = 1 < E ? (15 & u) << 2 | y >> 6 : 64, d = 2 < E ? 63 & y : 64, _.push(s.charAt(p) + s.charAt(h) + s.charAt(b) + s.charAt(d));
49
+ n.encode = function(h) {
50
+ for (var m, f, g, p, c, y, d, _ = [], u = 0, v = h.length, E = v, A = a.getTypeOf(h) !== "string"; u < h.length; ) E = v - u, g = A ? (m = h[u++], f = u < v ? h[u++] : 0, u < v ? h[u++] : 0) : (m = h.charCodeAt(u++), f = u < v ? h.charCodeAt(u++) : 0, u < v ? h.charCodeAt(u++) : 0), p = m >> 2, c = (3 & m) << 4 | f >> 4, y = 1 < E ? (15 & f) << 2 | g >> 6 : 64, d = 2 < E ? 63 & g : 64, _.push(s.charAt(p) + s.charAt(c) + s.charAt(y) + s.charAt(d));
51
51
  return _.join("");
52
- }, n.decode = function(c) {
53
- var m, u, y, p, h, b, d = 0, _ = 0, f = "data:";
54
- if (c.substr(0, f.length) === f) throw new Error("Invalid base64 input, it looks like a data url.");
55
- var v, E = 3 * (c = c.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
56
- if (c.charAt(c.length - 1) === s.charAt(64) && E--, c.charAt(c.length - 2) === s.charAt(64) && E--, E % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
57
- for (v = o.uint8array ? new Uint8Array(0 | E) : new Array(0 | E); d < c.length; ) m = s.indexOf(c.charAt(d++)) << 2 | (p = s.indexOf(c.charAt(d++))) >> 4, u = (15 & p) << 4 | (h = s.indexOf(c.charAt(d++))) >> 2, y = (3 & h) << 6 | (b = s.indexOf(c.charAt(d++))), v[_++] = m, h !== 64 && (v[_++] = u), b !== 64 && (v[_++] = y);
52
+ }, n.decode = function(h) {
53
+ var m, f, g, p, c, y, d = 0, _ = 0, u = "data:";
54
+ if (h.substr(0, u.length) === u) throw new Error("Invalid base64 input, it looks like a data url.");
55
+ var v, E = 3 * (h = h.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
56
+ if (h.charAt(h.length - 1) === s.charAt(64) && E--, h.charAt(h.length - 2) === s.charAt(64) && E--, E % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
57
+ for (v = o.uint8array ? new Uint8Array(0 | E) : new Array(0 | E); d < h.length; ) m = s.indexOf(h.charAt(d++)) << 2 | (p = s.indexOf(h.charAt(d++))) >> 4, f = (15 & p) << 4 | (c = s.indexOf(h.charAt(d++))) >> 2, g = (3 & c) << 6 | (y = s.indexOf(h.charAt(d++))), v[_++] = m, c !== 64 && (v[_++] = f), y !== 64 && (v[_++] = g);
58
58
  return v;
59
59
  };
60
60
  }, { "./support": 30, "./utils": 32 }], 2: [function(t, r, n) {
61
- var a = t("./external"), o = t("./stream/DataWorker"), s = t("./stream/Crc32Probe"), c = t("./stream/DataLengthProbe");
62
- function m(u, y, p, h, b) {
63
- this.compressedSize = u, this.uncompressedSize = y, this.crc32 = p, this.compression = h, this.compressedContent = b;
61
+ var a = t("./external"), o = t("./stream/DataWorker"), s = t("./stream/Crc32Probe"), h = t("./stream/DataLengthProbe");
62
+ function m(f, g, p, c, y) {
63
+ this.compressedSize = f, this.uncompressedSize = g, this.crc32 = p, this.compression = c, this.compressedContent = y;
64
64
  }
65
65
  m.prototype = { getContentWorker: function() {
66
- var u = new o(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")), y = this;
67
- return u.on("end", function() {
68
- if (this.streamInfo.data_length !== y.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
69
- }), u;
66
+ var f = new o(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")), g = this;
67
+ return f.on("end", function() {
68
+ if (this.streamInfo.data_length !== g.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
69
+ }), f;
70
70
  }, getCompressedWorker: function() {
71
71
  return new o(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
72
- } }, m.createWorkerFrom = function(u, y, p) {
73
- return u.pipe(new s()).pipe(new c("uncompressedSize")).pipe(y.compressWorker(p)).pipe(new c("compressedSize")).withStreamInfo("compression", y);
72
+ } }, m.createWorkerFrom = function(f, g, p) {
73
+ return f.pipe(new s()).pipe(new h("uncompressedSize")).pipe(g.compressWorker(p)).pipe(new h("compressedSize")).withStreamInfo("compression", g);
74
74
  }, r.exports = m;
75
75
  }, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(t, r, n) {
76
76
  var a = t("./stream/GenericWorker");
@@ -81,25 +81,25 @@ https://github.com/nodeca/pako/blob/main/LICENSE
81
81
  } }, n.DEFLATE = t("./flate");
82
82
  }, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(t, r, n) {
83
83
  var a = t("./utils"), o = function() {
84
- for (var s, c = [], m = 0; m < 256; m++) {
84
+ for (var s, h = [], m = 0; m < 256; m++) {
85
85
  s = m;
86
- for (var u = 0; u < 8; u++) s = 1 & s ? 3988292384 ^ s >>> 1 : s >>> 1;
87
- c[m] = s;
86
+ for (var f = 0; f < 8; f++) s = 1 & s ? 3988292384 ^ s >>> 1 : s >>> 1;
87
+ h[m] = s;
88
88
  }
89
- return c;
89
+ return h;
90
90
  }();
91
- r.exports = function(s, c) {
92
- return s !== void 0 && s.length ? a.getTypeOf(s) !== "string" ? function(m, u, y, p) {
93
- var h = o, b = p + y;
91
+ r.exports = function(s, h) {
92
+ return s !== void 0 && s.length ? a.getTypeOf(s) !== "string" ? function(m, f, g, p) {
93
+ var c = o, y = p + g;
94
94
  m ^= -1;
95
- for (var d = p; d < b; d++) m = m >>> 8 ^ h[255 & (m ^ u[d])];
95
+ for (var d = p; d < y; d++) m = m >>> 8 ^ c[255 & (m ^ f[d])];
96
96
  return -1 ^ m;
97
- }(0 | c, s, s.length, 0) : function(m, u, y, p) {
98
- var h = o, b = p + y;
97
+ }(0 | h, s, s.length, 0) : function(m, f, g, p) {
98
+ var c = o, y = p + g;
99
99
  m ^= -1;
100
- for (var d = p; d < b; d++) m = m >>> 8 ^ h[255 & (m ^ u.charCodeAt(d))];
100
+ for (var d = p; d < y; d++) m = m >>> 8 ^ c[255 & (m ^ f.charCodeAt(d))];
101
101
  return -1 ^ m;
102
- }(0 | c, s, s.length, 0) : 0;
102
+ }(0 | h, s, s.length, 0) : 0;
103
103
  };
104
104
  }, { "./utils": 32 }], 5: [function(t, r, n) {
105
105
  n.base64 = !1, n.binary = !1, n.dir = !1, n.createFolders = !0, n.date = null, n.compression = null, n.compressionOptions = null, n.comment = null, n.unixPermissions = null, n.dosPermissions = null;
@@ -107,122 +107,122 @@ https://github.com/nodeca/pako/blob/main/LICENSE
107
107
  var a = null;
108
108
  a = typeof Promise < "u" ? Promise : t("lie"), r.exports = { Promise: a };
109
109
  }, { lie: 37 }], 7: [function(t, r, n) {
110
- var a = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = t("pako"), s = t("./utils"), c = t("./stream/GenericWorker"), m = a ? "uint8array" : "array";
111
- function u(y, p) {
112
- c.call(this, "FlateWorker/" + y), this._pako = null, this._pakoAction = y, this._pakoOptions = p, this.meta = {};
110
+ var a = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = t("pako"), s = t("./utils"), h = t("./stream/GenericWorker"), m = a ? "uint8array" : "array";
111
+ function f(g, p) {
112
+ h.call(this, "FlateWorker/" + g), this._pako = null, this._pakoAction = g, this._pakoOptions = p, this.meta = {};
113
113
  }
114
- n.magic = "\b\0", s.inherits(u, c), u.prototype.processChunk = function(y) {
115
- this.meta = y.meta, this._pako === null && this._createPako(), this._pako.push(s.transformTo(m, y.data), !1);
116
- }, u.prototype.flush = function() {
117
- c.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
118
- }, u.prototype.cleanUp = function() {
119
- c.prototype.cleanUp.call(this), this._pako = null;
120
- }, u.prototype._createPako = function() {
114
+ n.magic = "\b\0", s.inherits(f, h), f.prototype.processChunk = function(g) {
115
+ this.meta = g.meta, this._pako === null && this._createPako(), this._pako.push(s.transformTo(m, g.data), !1);
116
+ }, f.prototype.flush = function() {
117
+ h.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
118
+ }, f.prototype.cleanUp = function() {
119
+ h.prototype.cleanUp.call(this), this._pako = null;
120
+ }, f.prototype._createPako = function() {
121
121
  this._pako = new o[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
122
- var y = this;
122
+ var g = this;
123
123
  this._pako.onData = function(p) {
124
- y.push({ data: p, meta: y.meta });
124
+ g.push({ data: p, meta: g.meta });
125
125
  };
126
- }, n.compressWorker = function(y) {
127
- return new u("Deflate", y);
126
+ }, n.compressWorker = function(g) {
127
+ return new f("Deflate", g);
128
128
  }, n.uncompressWorker = function() {
129
- return new u("Inflate", {});
129
+ return new f("Inflate", {});
130
130
  };
131
131
  }, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(t, r, n) {
132
- function a(h, b) {
132
+ function a(c, y) {
133
133
  var d, _ = "";
134
- for (d = 0; d < b; d++) _ += String.fromCharCode(255 & h), h >>>= 8;
134
+ for (d = 0; d < y; d++) _ += String.fromCharCode(255 & c), c >>>= 8;
135
135
  return _;
136
136
  }
137
- function o(h, b, d, _, f, v) {
138
- var E, A, T = h.file, L = h.compression, B = v !== m.utf8encode, j = s.transformTo("string", v(T.name)), z = s.transformTo("string", m.utf8encode(T.name)), Z = T.comment, Q = s.transformTo("string", v(Z)), k = s.transformTo("string", m.utf8encode(Z)), N = z.length !== T.name.length, l = k.length !== Z.length, D = "", et = "", U = "", rt = T.dir, W = T.date, tt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
139
- b && !d || (tt.crc32 = h.crc32, tt.compressedSize = h.compressedSize, tt.uncompressedSize = h.uncompressedSize);
137
+ function o(c, y, d, _, u, v) {
138
+ var E, A, T = c.file, L = c.compression, B = v !== m.utf8encode, j = s.transformTo("string", v(T.name)), z = s.transformTo("string", m.utf8encode(T.name)), Z = T.comment, Q = s.transformTo("string", v(Z)), k = s.transformTo("string", m.utf8encode(Z)), N = z.length !== T.name.length, l = k.length !== Z.length, D = "", et = "", U = "", rt = T.dir, W = T.date, tt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
139
+ y && !d || (tt.crc32 = c.crc32, tt.compressedSize = c.compressedSize, tt.uncompressedSize = c.uncompressedSize);
140
140
  var F = 0;
141
- b && (F |= 8), B || !N && !l || (F |= 2048);
141
+ y && (F |= 8), B || !N && !l || (F |= 2048);
142
142
  var I = 0, J = 0;
143
- rt && (I |= 16), f === "UNIX" ? (J = 798, I |= function(V, lt) {
143
+ rt && (I |= 16), u === "UNIX" ? (J = 798, I |= function(V, lt) {
144
144
  var ut = V;
145
145
  return V || (ut = lt ? 16893 : 33204), (65535 & ut) << 16;
146
146
  }(T.unixPermissions, rt)) : (J = 20, I |= function(V) {
147
147
  return 63 & (V || 0);
148
- }(T.dosPermissions)), E = W.getUTCHours(), E <<= 6, E |= W.getUTCMinutes(), E <<= 5, E |= W.getUTCSeconds() / 2, A = W.getUTCFullYear() - 1980, A <<= 4, A |= W.getUTCMonth() + 1, A <<= 5, A |= W.getUTCDate(), N && (et = a(1, 1) + a(u(j), 4) + z, D += "up" + a(et.length, 2) + et), l && (U = a(1, 1) + a(u(Q), 4) + k, D += "uc" + a(U.length, 2) + U);
148
+ }(T.dosPermissions)), E = W.getUTCHours(), E <<= 6, E |= W.getUTCMinutes(), E <<= 5, E |= W.getUTCSeconds() / 2, A = W.getUTCFullYear() - 1980, A <<= 4, A |= W.getUTCMonth() + 1, A <<= 5, A |= W.getUTCDate(), N && (et = a(1, 1) + a(f(j), 4) + z, D += "up" + a(et.length, 2) + et), l && (U = a(1, 1) + a(f(Q), 4) + k, D += "uc" + a(U.length, 2) + U);
149
149
  var Y = "";
150
150
  return Y += `
151
- \0`, Y += a(F, 2), Y += L.magic, Y += a(E, 2), Y += a(A, 2), Y += a(tt.crc32, 4), Y += a(tt.compressedSize, 4), Y += a(tt.uncompressedSize, 4), Y += a(j.length, 2), Y += a(D.length, 2), { fileRecord: y.LOCAL_FILE_HEADER + Y + j + D, dirRecord: y.CENTRAL_FILE_HEADER + a(J, 2) + Y + a(Q.length, 2) + "\0\0\0\0" + a(I, 4) + a(_, 4) + j + D + Q };
151
+ \0`, Y += a(F, 2), Y += L.magic, Y += a(E, 2), Y += a(A, 2), Y += a(tt.crc32, 4), Y += a(tt.compressedSize, 4), Y += a(tt.uncompressedSize, 4), Y += a(j.length, 2), Y += a(D.length, 2), { fileRecord: g.LOCAL_FILE_HEADER + Y + j + D, dirRecord: g.CENTRAL_FILE_HEADER + a(J, 2) + Y + a(Q.length, 2) + "\0\0\0\0" + a(I, 4) + a(_, 4) + j + D + Q };
152
152
  }
153
- var s = t("../utils"), c = t("../stream/GenericWorker"), m = t("../utf8"), u = t("../crc32"), y = t("../signature");
154
- function p(h, b, d, _) {
155
- c.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = b, this.zipPlatform = d, this.encodeFileName = _, this.streamFiles = h, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
153
+ var s = t("../utils"), h = t("../stream/GenericWorker"), m = t("../utf8"), f = t("../crc32"), g = t("../signature");
154
+ function p(c, y, d, _) {
155
+ h.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = y, this.zipPlatform = d, this.encodeFileName = _, this.streamFiles = c, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
156
156
  }
157
- s.inherits(p, c), p.prototype.push = function(h) {
158
- var b = h.meta.percent || 0, d = this.entriesCount, _ = this._sources.length;
159
- this.accumulate ? this.contentBuffer.push(h) : (this.bytesWritten += h.data.length, c.prototype.push.call(this, { data: h.data, meta: { currentFile: this.currentFile, percent: d ? (b + 100 * (d - _ - 1)) / d : 100 } }));
160
- }, p.prototype.openedSource = function(h) {
161
- this.currentSourceOffset = this.bytesWritten, this.currentFile = h.file.name;
162
- var b = this.streamFiles && !h.file.dir;
163
- if (b) {
164
- var d = o(h, b, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
157
+ s.inherits(p, h), p.prototype.push = function(c) {
158
+ var y = c.meta.percent || 0, d = this.entriesCount, _ = this._sources.length;
159
+ this.accumulate ? this.contentBuffer.push(c) : (this.bytesWritten += c.data.length, h.prototype.push.call(this, { data: c.data, meta: { currentFile: this.currentFile, percent: d ? (y + 100 * (d - _ - 1)) / d : 100 } }));
160
+ }, p.prototype.openedSource = function(c) {
161
+ this.currentSourceOffset = this.bytesWritten, this.currentFile = c.file.name;
162
+ var y = this.streamFiles && !c.file.dir;
163
+ if (y) {
164
+ var d = o(c, y, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
165
165
  this.push({ data: d.fileRecord, meta: { percent: 0 } });
166
166
  } else this.accumulate = !0;
167
- }, p.prototype.closedSource = function(h) {
167
+ }, p.prototype.closedSource = function(c) {
168
168
  this.accumulate = !1;
169
- var b = this.streamFiles && !h.file.dir, d = o(h, b, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
170
- if (this.dirRecords.push(d.dirRecord), b) this.push({ data: function(_) {
171
- return y.DATA_DESCRIPTOR + a(_.crc32, 4) + a(_.compressedSize, 4) + a(_.uncompressedSize, 4);
172
- }(h), meta: { percent: 100 } });
169
+ var y = this.streamFiles && !c.file.dir, d = o(c, y, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
170
+ if (this.dirRecords.push(d.dirRecord), y) this.push({ data: function(_) {
171
+ return g.DATA_DESCRIPTOR + a(_.crc32, 4) + a(_.compressedSize, 4) + a(_.uncompressedSize, 4);
172
+ }(c), meta: { percent: 100 } });
173
173
  else for (this.push({ data: d.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
174
174
  this.currentFile = null;
175
175
  }, p.prototype.flush = function() {
176
- for (var h = this.bytesWritten, b = 0; b < this.dirRecords.length; b++) this.push({ data: this.dirRecords[b], meta: { percent: 100 } });
177
- var d = this.bytesWritten - h, _ = function(f, v, E, A, T) {
176
+ for (var c = this.bytesWritten, y = 0; y < this.dirRecords.length; y++) this.push({ data: this.dirRecords[y], meta: { percent: 100 } });
177
+ var d = this.bytesWritten - c, _ = function(u, v, E, A, T) {
178
178
  var L = s.transformTo("string", T(A));
179
- return y.CENTRAL_DIRECTORY_END + "\0\0\0\0" + a(f, 2) + a(f, 2) + a(v, 4) + a(E, 4) + a(L.length, 2) + L;
180
- }(this.dirRecords.length, d, h, this.zipComment, this.encodeFileName);
179
+ return g.CENTRAL_DIRECTORY_END + "\0\0\0\0" + a(u, 2) + a(u, 2) + a(v, 4) + a(E, 4) + a(L.length, 2) + L;
180
+ }(this.dirRecords.length, d, c, this.zipComment, this.encodeFileName);
181
181
  this.push({ data: _, meta: { percent: 100 } });
182
182
  }, p.prototype.prepareNextSource = function() {
183
183
  this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
184
- }, p.prototype.registerPrevious = function(h) {
185
- this._sources.push(h);
186
- var b = this;
187
- return h.on("data", function(d) {
188
- b.processChunk(d);
189
- }), h.on("end", function() {
190
- b.closedSource(b.previous.streamInfo), b._sources.length ? b.prepareNextSource() : b.end();
191
- }), h.on("error", function(d) {
192
- b.error(d);
184
+ }, p.prototype.registerPrevious = function(c) {
185
+ this._sources.push(c);
186
+ var y = this;
187
+ return c.on("data", function(d) {
188
+ y.processChunk(d);
189
+ }), c.on("end", function() {
190
+ y.closedSource(y.previous.streamInfo), y._sources.length ? y.prepareNextSource() : y.end();
191
+ }), c.on("error", function(d) {
192
+ y.error(d);
193
193
  }), this;
194
194
  }, p.prototype.resume = function() {
195
- return !!c.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
196
- }, p.prototype.error = function(h) {
197
- var b = this._sources;
198
- if (!c.prototype.error.call(this, h)) return !1;
199
- for (var d = 0; d < b.length; d++) try {
200
- b[d].error(h);
195
+ return !!h.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
196
+ }, p.prototype.error = function(c) {
197
+ var y = this._sources;
198
+ if (!h.prototype.error.call(this, c)) return !1;
199
+ for (var d = 0; d < y.length; d++) try {
200
+ y[d].error(c);
201
201
  } catch {
202
202
  }
203
203
  return !0;
204
204
  }, p.prototype.lock = function() {
205
- c.prototype.lock.call(this);
206
- for (var h = this._sources, b = 0; b < h.length; b++) h[b].lock();
205
+ h.prototype.lock.call(this);
206
+ for (var c = this._sources, y = 0; y < c.length; y++) c[y].lock();
207
207
  }, r.exports = p;
208
208
  }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(t, r, n) {
209
209
  var a = t("../compressions"), o = t("./ZipFileWorker");
210
- n.generateWorker = function(s, c, m) {
211
- var u = new o(c.streamFiles, m, c.platform, c.encodeFileName), y = 0;
210
+ n.generateWorker = function(s, h, m) {
211
+ var f = new o(h.streamFiles, m, h.platform, h.encodeFileName), g = 0;
212
212
  try {
213
- s.forEach(function(p, h) {
214
- y++;
215
- var b = function(v, E) {
213
+ s.forEach(function(p, c) {
214
+ g++;
215
+ var y = function(v, E) {
216
216
  var A = v || E, T = a[A];
217
217
  if (!T) throw new Error(A + " is not a valid compression method !");
218
218
  return T;
219
- }(h.options.compression, c.compression), d = h.options.compressionOptions || c.compressionOptions || {}, _ = h.dir, f = h.date;
220
- h._compressWorker(b, d).withStreamInfo("file", { name: p, dir: _, date: f, comment: h.comment || "", unixPermissions: h.unixPermissions, dosPermissions: h.dosPermissions }).pipe(u);
221
- }), u.entriesCount = y;
219
+ }(c.options.compression, h.compression), d = c.options.compressionOptions || h.compressionOptions || {}, _ = c.dir, u = c.date;
220
+ c._compressWorker(y, d).withStreamInfo("file", { name: p, dir: _, date: u, comment: c.comment || "", unixPermissions: c.unixPermissions, dosPermissions: c.dosPermissions }).pipe(f);
221
+ }), f.entriesCount = g;
222
222
  } catch (p) {
223
- u.error(p);
223
+ f.error(p);
224
224
  }
225
- return u;
225
+ return f;
226
226
  };
227
227
  }, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(t, r, n) {
228
228
  function a() {
@@ -238,45 +238,45 @@ https://github.com/nodeca/pako/blob/main/LICENSE
238
238
  return new a().loadAsync(o, s);
239
239
  }, a.external = t("./external"), r.exports = a;
240
240
  }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(t, r, n) {
241
- var a = t("./utils"), o = t("./external"), s = t("./utf8"), c = t("./zipEntries"), m = t("./stream/Crc32Probe"), u = t("./nodejsUtils");
242
- function y(p) {
243
- return new o.Promise(function(h, b) {
241
+ var a = t("./utils"), o = t("./external"), s = t("./utf8"), h = t("./zipEntries"), m = t("./stream/Crc32Probe"), f = t("./nodejsUtils");
242
+ function g(p) {
243
+ return new o.Promise(function(c, y) {
244
244
  var d = p.decompressed.getContentWorker().pipe(new m());
245
245
  d.on("error", function(_) {
246
- b(_);
246
+ y(_);
247
247
  }).on("end", function() {
248
- d.streamInfo.crc32 !== p.decompressed.crc32 ? b(new Error("Corrupted zip : CRC32 mismatch")) : h();
248
+ d.streamInfo.crc32 !== p.decompressed.crc32 ? y(new Error("Corrupted zip : CRC32 mismatch")) : c();
249
249
  }).resume();
250
250
  });
251
251
  }
252
- r.exports = function(p, h) {
253
- var b = this;
254
- return h = a.extend(h || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: s.utf8decode }), u.isNode && u.isStream(p) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : a.prepareContent("the loaded zip file", p, !0, h.optimizedBinaryString, h.base64).then(function(d) {
255
- var _ = new c(h);
252
+ r.exports = function(p, c) {
253
+ var y = this;
254
+ return c = a.extend(c || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: s.utf8decode }), f.isNode && f.isStream(p) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : a.prepareContent("the loaded zip file", p, !0, c.optimizedBinaryString, c.base64).then(function(d) {
255
+ var _ = new h(c);
256
256
  return _.load(d), _;
257
257
  }).then(function(d) {
258
- var _ = [o.Promise.resolve(d)], f = d.files;
259
- if (h.checkCRC32) for (var v = 0; v < f.length; v++) _.push(y(f[v]));
258
+ var _ = [o.Promise.resolve(d)], u = d.files;
259
+ if (c.checkCRC32) for (var v = 0; v < u.length; v++) _.push(g(u[v]));
260
260
  return o.Promise.all(_);
261
261
  }).then(function(d) {
262
- for (var _ = d.shift(), f = _.files, v = 0; v < f.length; v++) {
263
- var E = f[v], A = E.fileNameStr, T = a.resolve(E.fileNameStr);
264
- b.file(T, E.decompressed, { binary: !0, optimizedBinaryString: !0, date: E.date, dir: E.dir, comment: E.fileCommentStr.length ? E.fileCommentStr : null, unixPermissions: E.unixPermissions, dosPermissions: E.dosPermissions, createFolders: h.createFolders }), E.dir || (b.file(T).unsafeOriginalName = A);
262
+ for (var _ = d.shift(), u = _.files, v = 0; v < u.length; v++) {
263
+ var E = u[v], A = E.fileNameStr, T = a.resolve(E.fileNameStr);
264
+ y.file(T, E.decompressed, { binary: !0, optimizedBinaryString: !0, date: E.date, dir: E.dir, comment: E.fileCommentStr.length ? E.fileCommentStr : null, unixPermissions: E.unixPermissions, dosPermissions: E.dosPermissions, createFolders: c.createFolders }), E.dir || (y.file(T).unsafeOriginalName = A);
265
265
  }
266
- return _.zipComment.length && (b.comment = _.zipComment), b;
266
+ return _.zipComment.length && (y.comment = _.zipComment), y;
267
267
  });
268
268
  };
269
269
  }, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(t, r, n) {
270
270
  var a = t("../utils"), o = t("../stream/GenericWorker");
271
- function s(c, m) {
272
- o.call(this, "Nodejs stream input adapter for " + c), this._upstreamEnded = !1, this._bindStream(m);
271
+ function s(h, m) {
272
+ o.call(this, "Nodejs stream input adapter for " + h), this._upstreamEnded = !1, this._bindStream(m);
273
273
  }
274
- a.inherits(s, o), s.prototype._bindStream = function(c) {
274
+ a.inherits(s, o), s.prototype._bindStream = function(h) {
275
275
  var m = this;
276
- (this._stream = c).pause(), c.on("data", function(u) {
277
- m.push({ data: u, meta: { percent: 0 } });
278
- }).on("error", function(u) {
279
- m.isPaused ? this.generatedError = u : m.error(u);
276
+ (this._stream = h).pause(), h.on("data", function(f) {
277
+ m.push({ data: f, meta: { percent: 0 } });
278
+ }).on("error", function(f) {
279
+ m.isPaused ? this.generatedError = f : m.error(f);
280
280
  }).on("end", function() {
281
281
  m.isPaused ? m._upstreamEnded = !0 : m.end();
282
282
  });
@@ -287,15 +287,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
287
287
  }, r.exports = s;
288
288
  }, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(t, r, n) {
289
289
  var a = t("readable-stream").Readable;
290
- function o(s, c, m) {
291
- a.call(this, c), this._helper = s;
292
- var u = this;
293
- s.on("data", function(y, p) {
294
- u.push(y) || u._helper.pause(), m && m(p);
295
- }).on("error", function(y) {
296
- u.emit("error", y);
290
+ function o(s, h, m) {
291
+ a.call(this, h), this._helper = s;
292
+ var f = this;
293
+ s.on("data", function(g, p) {
294
+ f.push(g) || f._helper.pause(), m && m(p);
295
+ }).on("error", function(g) {
296
+ f.emit("error", g);
297
297
  }).on("end", function() {
298
- u.push(null);
298
+ f.push(null);
299
299
  });
300
300
  }
301
301
  t("../utils").inherits(o, a), o.prototype._read = function() {
@@ -317,23 +317,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
317
317
  } };
318
318
  }, {}], 15: [function(t, r, n) {
319
319
  function a(T, L, B) {
320
- var j, z = s.getTypeOf(L), Z = s.extend(B || {}, u);
321
- Z.date = Z.date || /* @__PURE__ */ new Date(), Z.compression !== null && (Z.compression = Z.compression.toUpperCase()), typeof Z.unixPermissions == "string" && (Z.unixPermissions = parseInt(Z.unixPermissions, 8)), Z.unixPermissions && 16384 & Z.unixPermissions && (Z.dir = !0), Z.dosPermissions && 16 & Z.dosPermissions && (Z.dir = !0), Z.dir && (T = f(T)), Z.createFolders && (j = _(T)) && v.call(this, j, !0);
320
+ var j, z = s.getTypeOf(L), Z = s.extend(B || {}, f);
321
+ Z.date = Z.date || /* @__PURE__ */ new Date(), Z.compression !== null && (Z.compression = Z.compression.toUpperCase()), typeof Z.unixPermissions == "string" && (Z.unixPermissions = parseInt(Z.unixPermissions, 8)), Z.unixPermissions && 16384 & Z.unixPermissions && (Z.dir = !0), Z.dosPermissions && 16 & Z.dosPermissions && (Z.dir = !0), Z.dir && (T = u(T)), Z.createFolders && (j = _(T)) && v.call(this, j, !0);
322
322
  var Q = z === "string" && Z.binary === !1 && Z.base64 === !1;
323
- B && B.binary !== void 0 || (Z.binary = !Q), (L instanceof y && L.uncompressedSize === 0 || Z.dir || !L || L.length === 0) && (Z.base64 = !1, Z.binary = !0, L = "", Z.compression = "STORE", z = "string");
323
+ B && B.binary !== void 0 || (Z.binary = !Q), (L instanceof g && L.uncompressedSize === 0 || Z.dir || !L || L.length === 0) && (Z.base64 = !1, Z.binary = !0, L = "", Z.compression = "STORE", z = "string");
324
324
  var k = null;
325
- k = L instanceof y || L instanceof c ? L : b.isNode && b.isStream(L) ? new d(T, L) : s.prepareContent(T, L, Z.binary, Z.optimizedBinaryString, Z.base64);
325
+ k = L instanceof g || L instanceof h ? L : y.isNode && y.isStream(L) ? new d(T, L) : s.prepareContent(T, L, Z.binary, Z.optimizedBinaryString, Z.base64);
326
326
  var N = new p(T, k, Z);
327
327
  this.files[T] = N;
328
328
  }
329
- var o = t("./utf8"), s = t("./utils"), c = t("./stream/GenericWorker"), m = t("./stream/StreamHelper"), u = t("./defaults"), y = t("./compressedObject"), p = t("./zipObject"), h = t("./generate"), b = t("./nodejsUtils"), d = t("./nodejs/NodejsStreamInputAdapter"), _ = function(T) {
329
+ var o = t("./utf8"), s = t("./utils"), h = t("./stream/GenericWorker"), m = t("./stream/StreamHelper"), f = t("./defaults"), g = t("./compressedObject"), p = t("./zipObject"), c = t("./generate"), y = t("./nodejsUtils"), d = t("./nodejs/NodejsStreamInputAdapter"), _ = function(T) {
330
330
  T.slice(-1) === "/" && (T = T.substring(0, T.length - 1));
331
331
  var L = T.lastIndexOf("/");
332
332
  return 0 < L ? T.substring(0, L) : "";
333
- }, f = function(T) {
333
+ }, u = function(T) {
334
334
  return T.slice(-1) !== "/" && (T += "/"), T;
335
335
  }, v = function(T, L) {
336
- return L = L !== void 0 ? L : u.createFolders, T = f(T), this.files[T] || a.call(this, T, null, { dir: !0, createFolders: L }), this.files[T];
336
+ return L = L !== void 0 ? L : f.createFolders, T = u(T), this.files[T] || a.call(this, T, null, { dir: !0, createFolders: L }), this.files[T];
337
337
  };
338
338
  function E(T) {
339
339
  return Object.prototype.toString.call(T) === "[object RegExp]";
@@ -381,9 +381,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
381
381
  if ((B = s.extend(T || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: o.utf8encode })).type = B.type.toLowerCase(), B.compression = B.compression.toUpperCase(), B.type === "binarystring" && (B.type = "string"), !B.type) throw new Error("No output type specified.");
382
382
  s.checkSupport(B.type), B.platform !== "darwin" && B.platform !== "freebsd" && B.platform !== "linux" && B.platform !== "sunos" || (B.platform = "UNIX"), B.platform === "win32" && (B.platform = "DOS");
383
383
  var j = B.comment || this.comment || "";
384
- L = h.generateWorker(this, B, j);
384
+ L = c.generateWorker(this, B, j);
385
385
  } catch (z) {
386
- (L = new c("error")).error(z);
386
+ (L = new h("error")).error(z);
387
387
  }
388
388
  return new m(L, B.type || "string", B.mimeType);
389
389
  }, generateAsync: function(T, L) {
@@ -398,20 +398,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
398
398
  var a = t("./DataReader");
399
399
  function o(s) {
400
400
  a.call(this, s);
401
- for (var c = 0; c < this.data.length; c++) s[c] = 255 & s[c];
401
+ for (var h = 0; h < this.data.length; h++) s[h] = 255 & s[h];
402
402
  }
403
403
  t("../utils").inherits(o, a), o.prototype.byteAt = function(s) {
404
404
  return this.data[this.zero + s];
405
405
  }, o.prototype.lastIndexOfSignature = function(s) {
406
- for (var c = s.charCodeAt(0), m = s.charCodeAt(1), u = s.charCodeAt(2), y = s.charCodeAt(3), p = this.length - 4; 0 <= p; --p) if (this.data[p] === c && this.data[p + 1] === m && this.data[p + 2] === u && this.data[p + 3] === y) return p - this.zero;
406
+ for (var h = s.charCodeAt(0), m = s.charCodeAt(1), f = s.charCodeAt(2), g = s.charCodeAt(3), p = this.length - 4; 0 <= p; --p) if (this.data[p] === h && this.data[p + 1] === m && this.data[p + 2] === f && this.data[p + 3] === g) return p - this.zero;
407
407
  return -1;
408
408
  }, o.prototype.readAndCheckSignature = function(s) {
409
- var c = s.charCodeAt(0), m = s.charCodeAt(1), u = s.charCodeAt(2), y = s.charCodeAt(3), p = this.readData(4);
410
- return c === p[0] && m === p[1] && u === p[2] && y === p[3];
409
+ var h = s.charCodeAt(0), m = s.charCodeAt(1), f = s.charCodeAt(2), g = s.charCodeAt(3), p = this.readData(4);
410
+ return h === p[0] && m === p[1] && f === p[2] && g === p[3];
411
411
  }, o.prototype.readData = function(s) {
412
412
  if (this.checkOffset(s), s === 0) return [];
413
- var c = this.data.slice(this.zero + this.index, this.zero + this.index + s);
414
- return this.index += s, c;
413
+ var h = this.data.slice(this.zero + this.index, this.zero + this.index + s);
414
+ return this.index += s, h;
415
415
  }, r.exports = o;
416
416
  }, { "../utils": 32, "./DataReader": 18 }], 18: [function(t, r, n) {
417
417
  var a = t("../utils");
@@ -428,8 +428,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
428
428
  this.setIndex(this.index + s);
429
429
  }, byteAt: function() {
430
430
  }, readInt: function(s) {
431
- var c, m = 0;
432
- for (this.checkOffset(s), c = this.index + s - 1; c >= this.index; c--) m = (m << 8) + this.byteAt(c);
431
+ var h, m = 0;
432
+ for (this.checkOffset(s), h = this.index + s - 1; h >= this.index; h--) m = (m << 8) + this.byteAt(h);
433
433
  return this.index += s, m;
434
434
  }, readString: function(s) {
435
435
  return a.transformTo("string", this.readData(s));
@@ -447,8 +447,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
447
447
  }
448
448
  t("../utils").inherits(o, a), o.prototype.readData = function(s) {
449
449
  this.checkOffset(s);
450
- var c = this.data.slice(this.zero + this.index, this.zero + this.index + s);
451
- return this.index += s, c;
450
+ var h = this.data.slice(this.zero + this.index, this.zero + this.index + s);
451
+ return this.index += s, h;
452
452
  }, r.exports = o;
453
453
  }, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(t, r, n) {
454
454
  var a = t("./DataReader");
@@ -463,8 +463,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
463
463
  return s === this.readData(4);
464
464
  }, o.prototype.readData = function(s) {
465
465
  this.checkOffset(s);
466
- var c = this.data.slice(this.zero + this.index, this.zero + this.index + s);
467
- return this.index += s, c;
466
+ var h = this.data.slice(this.zero + this.index, this.zero + this.index + s);
467
+ return this.index += s, h;
468
468
  }, r.exports = o;
469
469
  }, { "../utils": 32, "./DataReader": 18 }], 21: [function(t, r, n) {
470
470
  var a = t("./ArrayReader");
@@ -473,54 +473,54 @@ https://github.com/nodeca/pako/blob/main/LICENSE
473
473
  }
474
474
  t("../utils").inherits(o, a), o.prototype.readData = function(s) {
475
475
  if (this.checkOffset(s), s === 0) return new Uint8Array(0);
476
- var c = this.data.subarray(this.zero + this.index, this.zero + this.index + s);
477
- return this.index += s, c;
476
+ var h = this.data.subarray(this.zero + this.index, this.zero + this.index + s);
477
+ return this.index += s, h;
478
478
  }, r.exports = o;
479
479
  }, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(t, r, n) {
480
- var a = t("../utils"), o = t("../support"), s = t("./ArrayReader"), c = t("./StringReader"), m = t("./NodeBufferReader"), u = t("./Uint8ArrayReader");
481
- r.exports = function(y) {
482
- var p = a.getTypeOf(y);
483
- return a.checkSupport(p), p !== "string" || o.uint8array ? p === "nodebuffer" ? new m(y) : o.uint8array ? new u(a.transformTo("uint8array", y)) : new s(a.transformTo("array", y)) : new c(y);
480
+ var a = t("../utils"), o = t("../support"), s = t("./ArrayReader"), h = t("./StringReader"), m = t("./NodeBufferReader"), f = t("./Uint8ArrayReader");
481
+ r.exports = function(g) {
482
+ var p = a.getTypeOf(g);
483
+ return a.checkSupport(p), p !== "string" || o.uint8array ? p === "nodebuffer" ? new m(g) : o.uint8array ? new f(a.transformTo("uint8array", g)) : new s(a.transformTo("array", g)) : new h(g);
484
484
  };
485
485
  }, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(t, r, n) {
486
486
  n.LOCAL_FILE_HEADER = "PK", n.CENTRAL_FILE_HEADER = "PK", n.CENTRAL_DIRECTORY_END = "PK", n.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", n.ZIP64_CENTRAL_DIRECTORY_END = "PK", n.DATA_DESCRIPTOR = "PK\x07\b";
487
487
  }, {}], 24: [function(t, r, n) {
488
488
  var a = t("./GenericWorker"), o = t("../utils");
489
- function s(c) {
490
- a.call(this, "ConvertWorker to " + c), this.destType = c;
489
+ function s(h) {
490
+ a.call(this, "ConvertWorker to " + h), this.destType = h;
491
491
  }
492
- o.inherits(s, a), s.prototype.processChunk = function(c) {
493
- this.push({ data: o.transformTo(this.destType, c.data), meta: c.meta });
492
+ o.inherits(s, a), s.prototype.processChunk = function(h) {
493
+ this.push({ data: o.transformTo(this.destType, h.data), meta: h.meta });
494
494
  }, r.exports = s;
495
495
  }, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(t, r, n) {
496
496
  var a = t("./GenericWorker"), o = t("../crc32");
497
497
  function s() {
498
498
  a.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
499
499
  }
500
- t("../utils").inherits(s, a), s.prototype.processChunk = function(c) {
501
- this.streamInfo.crc32 = o(c.data, this.streamInfo.crc32 || 0), this.push(c);
500
+ t("../utils").inherits(s, a), s.prototype.processChunk = function(h) {
501
+ this.streamInfo.crc32 = o(h.data, this.streamInfo.crc32 || 0), this.push(h);
502
502
  }, r.exports = s;
503
503
  }, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(t, r, n) {
504
504
  var a = t("../utils"), o = t("./GenericWorker");
505
- function s(c) {
506
- o.call(this, "DataLengthProbe for " + c), this.propName = c, this.withStreamInfo(c, 0);
505
+ function s(h) {
506
+ o.call(this, "DataLengthProbe for " + h), this.propName = h, this.withStreamInfo(h, 0);
507
507
  }
508
- a.inherits(s, o), s.prototype.processChunk = function(c) {
509
- if (c) {
508
+ a.inherits(s, o), s.prototype.processChunk = function(h) {
509
+ if (h) {
510
510
  var m = this.streamInfo[this.propName] || 0;
511
- this.streamInfo[this.propName] = m + c.data.length;
511
+ this.streamInfo[this.propName] = m + h.data.length;
512
512
  }
513
- o.prototype.processChunk.call(this, c);
513
+ o.prototype.processChunk.call(this, h);
514
514
  }, r.exports = s;
515
515
  }, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(t, r, n) {
516
516
  var a = t("../utils"), o = t("./GenericWorker");
517
- function s(c) {
517
+ function s(h) {
518
518
  o.call(this, "DataWorker");
519
519
  var m = this;
520
- this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, c.then(function(u) {
521
- m.dataIsReady = !0, m.data = u, m.max = u && u.length || 0, m.type = a.getTypeOf(u), m.isPaused || m._tickAndRepeat();
522
- }, function(u) {
523
- m.error(u);
520
+ this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, h.then(function(f) {
521
+ m.dataIsReady = !0, m.data = f, m.max = f && f.length || 0, m.type = a.getTypeOf(f), m.isPaused || m._tickAndRepeat();
522
+ }, function(f) {
523
+ m.error(f);
524
524
  });
525
525
  }
526
526
  a.inherits(s, o), s.prototype.cleanUp = function() {
@@ -531,20 +531,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
531
531
  this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (a.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
532
532
  }, s.prototype._tick = function() {
533
533
  if (this.isPaused || this.isFinished) return !1;
534
- var c = null, m = Math.min(this.max, this.index + 16384);
534
+ var h = null, m = Math.min(this.max, this.index + 16384);
535
535
  if (this.index >= this.max) return this.end();
536
536
  switch (this.type) {
537
537
  case "string":
538
- c = this.data.substring(this.index, m);
538
+ h = this.data.substring(this.index, m);
539
539
  break;
540
540
  case "uint8array":
541
- c = this.data.subarray(this.index, m);
541
+ h = this.data.subarray(this.index, m);
542
542
  break;
543
543
  case "array":
544
544
  case "nodebuffer":
545
- c = this.data.slice(this.index, m);
545
+ h = this.data.slice(this.index, m);
546
546
  }
547
- return this.index = m, this.push({ data: c, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
547
+ return this.index = m, this.push({ data: h, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
548
548
  }, r.exports = s;
549
549
  }, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(t, r, n) {
550
550
  function a(o) {
@@ -568,19 +568,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
568
568
  }, cleanUp: function() {
569
569
  this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
570
570
  }, emit: function(o, s) {
571
- if (this._listeners[o]) for (var c = 0; c < this._listeners[o].length; c++) this._listeners[o][c].call(this, s);
571
+ if (this._listeners[o]) for (var h = 0; h < this._listeners[o].length; h++) this._listeners[o][h].call(this, s);
572
572
  }, pipe: function(o) {
573
573
  return o.registerPrevious(this);
574
574
  }, registerPrevious: function(o) {
575
575
  if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
576
576
  this.streamInfo = o.streamInfo, this.mergeStreamInfo(), this.previous = o;
577
577
  var s = this;
578
- return o.on("data", function(c) {
579
- s.processChunk(c);
578
+ return o.on("data", function(h) {
579
+ s.processChunk(h);
580
580
  }), o.on("end", function() {
581
581
  s.end();
582
- }), o.on("error", function(c) {
583
- s.error(c);
582
+ }), o.on("error", function(h) {
583
+ s.error(h);
584
584
  }), this;
585
585
  }, pause: function() {
586
586
  return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
@@ -603,18 +603,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
603
603
  return this.previous ? this.previous + " -> " + o : o;
604
604
  } }, r.exports = a;
605
605
  }, {}], 29: [function(t, r, n) {
606
- var a = t("../utils"), o = t("./ConvertWorker"), s = t("./GenericWorker"), c = t("../base64"), m = t("../support"), u = t("../external"), y = null;
606
+ var a = t("../utils"), o = t("./ConvertWorker"), s = t("./GenericWorker"), h = t("../base64"), m = t("../support"), f = t("../external"), g = null;
607
607
  if (m.nodestream) try {
608
- y = t("../nodejs/NodejsStreamOutputAdapter");
608
+ g = t("../nodejs/NodejsStreamOutputAdapter");
609
609
  } catch {
610
610
  }
611
- function p(b, d) {
612
- return new u.Promise(function(_, f) {
613
- var v = [], E = b._internalType, A = b._outputType, T = b._mimeType;
614
- b.on("data", function(L, B) {
611
+ function p(y, d) {
612
+ return new f.Promise(function(_, u) {
613
+ var v = [], E = y._internalType, A = y._outputType, T = y._mimeType;
614
+ y.on("data", function(L, B) {
615
615
  v.push(L), d && d(B);
616
616
  }).on("error", function(L) {
617
- v = [], f(L);
617
+ v = [], u(L);
618
618
  }).on("end", function() {
619
619
  try {
620
620
  var L = function(B, j, z) {
@@ -622,7 +622,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
622
622
  case "blob":
623
623
  return a.newBlob(a.transformTo("arraybuffer", j), z);
624
624
  case "base64":
625
- return c.encode(j);
625
+ return h.encode(j);
626
626
  default:
627
627
  return a.transformTo(B, j);
628
628
  }
@@ -645,45 +645,45 @@ https://github.com/nodeca/pako/blob/main/LICENSE
645
645
  }(E, v), T);
646
646
  _(L);
647
647
  } catch (B) {
648
- f(B);
648
+ u(B);
649
649
  }
650
650
  v = [];
651
651
  }).resume();
652
652
  });
653
653
  }
654
- function h(b, d, _) {
655
- var f = d;
654
+ function c(y, d, _) {
655
+ var u = d;
656
656
  switch (d) {
657
657
  case "blob":
658
658
  case "arraybuffer":
659
- f = "uint8array";
659
+ u = "uint8array";
660
660
  break;
661
661
  case "base64":
662
- f = "string";
662
+ u = "string";
663
663
  }
664
664
  try {
665
- this._internalType = f, this._outputType = d, this._mimeType = _, a.checkSupport(f), this._worker = b.pipe(new o(f)), b.lock();
665
+ this._internalType = u, this._outputType = d, this._mimeType = _, a.checkSupport(u), this._worker = y.pipe(new o(u)), y.lock();
666
666
  } catch (v) {
667
667
  this._worker = new s("error"), this._worker.error(v);
668
668
  }
669
669
  }
670
- h.prototype = { accumulate: function(b) {
671
- return p(this, b);
672
- }, on: function(b, d) {
670
+ c.prototype = { accumulate: function(y) {
671
+ return p(this, y);
672
+ }, on: function(y, d) {
673
673
  var _ = this;
674
- return b === "data" ? this._worker.on(b, function(f) {
675
- d.call(_, f.data, f.meta);
676
- }) : this._worker.on(b, function() {
674
+ return y === "data" ? this._worker.on(y, function(u) {
675
+ d.call(_, u.data, u.meta);
676
+ }) : this._worker.on(y, function() {
677
677
  a.delay(d, arguments, _);
678
678
  }), this;
679
679
  }, resume: function() {
680
680
  return a.delay(this._worker.resume, [], this._worker), this;
681
681
  }, pause: function() {
682
682
  return this._worker.pause(), this;
683
- }, toNodejsStream: function(b) {
683
+ }, toNodejsStream: function(y) {
684
684
  if (a.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
685
- return new y(this, { objectMode: this._outputType !== "nodebuffer" }, b);
686
- } }, r.exports = h;
685
+ return new g(this, { objectMode: this._outputType !== "nodebuffer" }, y);
686
+ } }, r.exports = c;
687
687
  }, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(t, r, n) {
688
688
  if (n.base64 = !0, n.array = !0, n.string = !0, n.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", n.nodebuffer = typeof Buffer < "u", n.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") n.blob = !1;
689
689
  else {
@@ -705,59 +705,59 @@ https://github.com/nodeca/pako/blob/main/LICENSE
705
705
  n.nodestream = !1;
706
706
  }
707
707
  }, { "readable-stream": 16 }], 31: [function(t, r, n) {
708
- for (var a = t("./utils"), o = t("./support"), s = t("./nodejsUtils"), c = t("./stream/GenericWorker"), m = new Array(256), u = 0; u < 256; u++) m[u] = 252 <= u ? 6 : 248 <= u ? 5 : 240 <= u ? 4 : 224 <= u ? 3 : 192 <= u ? 2 : 1;
708
+ for (var a = t("./utils"), o = t("./support"), s = t("./nodejsUtils"), h = t("./stream/GenericWorker"), m = new Array(256), f = 0; f < 256; f++) m[f] = 252 <= f ? 6 : 248 <= f ? 5 : 240 <= f ? 4 : 224 <= f ? 3 : 192 <= f ? 2 : 1;
709
709
  m[254] = m[254] = 1;
710
- function y() {
711
- c.call(this, "utf-8 decode"), this.leftOver = null;
710
+ function g() {
711
+ h.call(this, "utf-8 decode"), this.leftOver = null;
712
712
  }
713
713
  function p() {
714
- c.call(this, "utf-8 encode");
714
+ h.call(this, "utf-8 encode");
715
715
  }
716
- n.utf8encode = function(h) {
717
- return o.nodebuffer ? s.newBufferFrom(h, "utf-8") : function(b) {
718
- var d, _, f, v, E, A = b.length, T = 0;
719
- for (v = 0; v < A; v++) (64512 & (_ = b.charCodeAt(v))) == 55296 && v + 1 < A && (64512 & (f = b.charCodeAt(v + 1))) == 56320 && (_ = 65536 + (_ - 55296 << 10) + (f - 56320), v++), T += _ < 128 ? 1 : _ < 2048 ? 2 : _ < 65536 ? 3 : 4;
720
- for (d = o.uint8array ? new Uint8Array(T) : new Array(T), v = E = 0; E < T; v++) (64512 & (_ = b.charCodeAt(v))) == 55296 && v + 1 < A && (64512 & (f = b.charCodeAt(v + 1))) == 56320 && (_ = 65536 + (_ - 55296 << 10) + (f - 56320), v++), _ < 128 ? d[E++] = _ : (_ < 2048 ? d[E++] = 192 | _ >>> 6 : (_ < 65536 ? d[E++] = 224 | _ >>> 12 : (d[E++] = 240 | _ >>> 18, d[E++] = 128 | _ >>> 12 & 63), d[E++] = 128 | _ >>> 6 & 63), d[E++] = 128 | 63 & _);
716
+ n.utf8encode = function(c) {
717
+ return o.nodebuffer ? s.newBufferFrom(c, "utf-8") : function(y) {
718
+ var d, _, u, v, E, A = y.length, T = 0;
719
+ for (v = 0; v < A; v++) (64512 & (_ = y.charCodeAt(v))) == 55296 && v + 1 < A && (64512 & (u = y.charCodeAt(v + 1))) == 56320 && (_ = 65536 + (_ - 55296 << 10) + (u - 56320), v++), T += _ < 128 ? 1 : _ < 2048 ? 2 : _ < 65536 ? 3 : 4;
720
+ for (d = o.uint8array ? new Uint8Array(T) : new Array(T), v = E = 0; E < T; v++) (64512 & (_ = y.charCodeAt(v))) == 55296 && v + 1 < A && (64512 & (u = y.charCodeAt(v + 1))) == 56320 && (_ = 65536 + (_ - 55296 << 10) + (u - 56320), v++), _ < 128 ? d[E++] = _ : (_ < 2048 ? d[E++] = 192 | _ >>> 6 : (_ < 65536 ? d[E++] = 224 | _ >>> 12 : (d[E++] = 240 | _ >>> 18, d[E++] = 128 | _ >>> 12 & 63), d[E++] = 128 | _ >>> 6 & 63), d[E++] = 128 | 63 & _);
721
721
  return d;
722
- }(h);
723
- }, n.utf8decode = function(h) {
724
- return o.nodebuffer ? a.transformTo("nodebuffer", h).toString("utf-8") : function(b) {
725
- var d, _, f, v, E = b.length, A = new Array(2 * E);
726
- for (d = _ = 0; d < E; ) if ((f = b[d++]) < 128) A[_++] = f;
727
- else if (4 < (v = m[f])) A[_++] = 65533, d += v - 1;
722
+ }(c);
723
+ }, n.utf8decode = function(c) {
724
+ return o.nodebuffer ? a.transformTo("nodebuffer", c).toString("utf-8") : function(y) {
725
+ var d, _, u, v, E = y.length, A = new Array(2 * E);
726
+ for (d = _ = 0; d < E; ) if ((u = y[d++]) < 128) A[_++] = u;
727
+ else if (4 < (v = m[u])) A[_++] = 65533, d += v - 1;
728
728
  else {
729
- for (f &= v === 2 ? 31 : v === 3 ? 15 : 7; 1 < v && d < E; ) f = f << 6 | 63 & b[d++], v--;
730
- 1 < v ? A[_++] = 65533 : f < 65536 ? A[_++] = f : (f -= 65536, A[_++] = 55296 | f >> 10 & 1023, A[_++] = 56320 | 1023 & f);
729
+ for (u &= v === 2 ? 31 : v === 3 ? 15 : 7; 1 < v && d < E; ) u = u << 6 | 63 & y[d++], v--;
730
+ 1 < v ? A[_++] = 65533 : u < 65536 ? A[_++] = u : (u -= 65536, A[_++] = 55296 | u >> 10 & 1023, A[_++] = 56320 | 1023 & u);
731
731
  }
732
732
  return A.length !== _ && (A.subarray ? A = A.subarray(0, _) : A.length = _), a.applyFromCharCode(A);
733
- }(h = a.transformTo(o.uint8array ? "uint8array" : "array", h));
734
- }, a.inherits(y, c), y.prototype.processChunk = function(h) {
735
- var b = a.transformTo(o.uint8array ? "uint8array" : "array", h.data);
733
+ }(c = a.transformTo(o.uint8array ? "uint8array" : "array", c));
734
+ }, a.inherits(g, h), g.prototype.processChunk = function(c) {
735
+ var y = a.transformTo(o.uint8array ? "uint8array" : "array", c.data);
736
736
  if (this.leftOver && this.leftOver.length) {
737
737
  if (o.uint8array) {
738
- var d = b;
739
- (b = new Uint8Array(d.length + this.leftOver.length)).set(this.leftOver, 0), b.set(d, this.leftOver.length);
740
- } else b = this.leftOver.concat(b);
738
+ var d = y;
739
+ (y = new Uint8Array(d.length + this.leftOver.length)).set(this.leftOver, 0), y.set(d, this.leftOver.length);
740
+ } else y = this.leftOver.concat(y);
741
741
  this.leftOver = null;
742
742
  }
743
743
  var _ = function(v, E) {
744
744
  var A;
745
745
  for ((E = E || v.length) > v.length && (E = v.length), A = E - 1; 0 <= A && (192 & v[A]) == 128; ) A--;
746
746
  return A < 0 || A === 0 ? E : A + m[v[A]] > E ? A : E;
747
- }(b), f = b;
748
- _ !== b.length && (o.uint8array ? (f = b.subarray(0, _), this.leftOver = b.subarray(_, b.length)) : (f = b.slice(0, _), this.leftOver = b.slice(_, b.length))), this.push({ data: n.utf8decode(f), meta: h.meta });
749
- }, y.prototype.flush = function() {
747
+ }(y), u = y;
748
+ _ !== y.length && (o.uint8array ? (u = y.subarray(0, _), this.leftOver = y.subarray(_, y.length)) : (u = y.slice(0, _), this.leftOver = y.slice(_, y.length))), this.push({ data: n.utf8decode(u), meta: c.meta });
749
+ }, g.prototype.flush = function() {
750
750
  this.leftOver && this.leftOver.length && (this.push({ data: n.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
751
- }, n.Utf8DecodeWorker = y, a.inherits(p, c), p.prototype.processChunk = function(h) {
752
- this.push({ data: n.utf8encode(h.data), meta: h.meta });
751
+ }, n.Utf8DecodeWorker = g, a.inherits(p, h), p.prototype.processChunk = function(c) {
752
+ this.push({ data: n.utf8encode(c.data), meta: c.meta });
753
753
  }, n.Utf8EncodeWorker = p;
754
754
  }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(t, r, n) {
755
- var a = t("./support"), o = t("./base64"), s = t("./nodejsUtils"), c = t("./external");
755
+ var a = t("./support"), o = t("./base64"), s = t("./nodejsUtils"), h = t("./external");
756
756
  function m(d) {
757
757
  return d;
758
758
  }
759
- function u(d, _) {
760
- for (var f = 0; f < d.length; ++f) _[f] = 255 & d.charCodeAt(f);
759
+ function f(d, _) {
760
+ for (var u = 0; u < d.length; ++u) _[u] = 255 & d.charCodeAt(u);
761
761
  return _;
762
762
  }
763
763
  t("setimmediate"), n.newBlob = function(d, _) {
@@ -766,20 +766,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
766
766
  return new Blob([d], { type: _ });
767
767
  } catch {
768
768
  try {
769
- var f = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
770
- return f.append(d), f.getBlob(_);
769
+ var u = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
770
+ return u.append(d), u.getBlob(_);
771
771
  } catch {
772
772
  throw new Error("Bug : can't construct the Blob.");
773
773
  }
774
774
  }
775
775
  };
776
- var y = { stringifyByChunk: function(d, _, f) {
776
+ var g = { stringifyByChunk: function(d, _, u) {
777
777
  var v = [], E = 0, A = d.length;
778
- if (A <= f) return String.fromCharCode.apply(null, d);
779
- for (; E < A; ) _ === "array" || _ === "nodebuffer" ? v.push(String.fromCharCode.apply(null, d.slice(E, Math.min(E + f, A)))) : v.push(String.fromCharCode.apply(null, d.subarray(E, Math.min(E + f, A)))), E += f;
778
+ if (A <= u) return String.fromCharCode.apply(null, d);
779
+ for (; E < A; ) _ === "array" || _ === "nodebuffer" ? v.push(String.fromCharCode.apply(null, d.slice(E, Math.min(E + u, A)))) : v.push(String.fromCharCode.apply(null, d.subarray(E, Math.min(E + u, A)))), E += u;
780
780
  return v.join("");
781
781
  }, stringifyByChar: function(d) {
782
- for (var _ = "", f = 0; f < d.length; f++) _ += String.fromCharCode(d[f]);
782
+ for (var _ = "", u = 0; u < d.length; u++) _ += String.fromCharCode(d[u]);
783
783
  return _;
784
784
  }, applyCanBeUsed: { uint8array: function() {
785
785
  try {
@@ -795,88 +795,88 @@ https://github.com/nodeca/pako/blob/main/LICENSE
795
795
  }
796
796
  }() } };
797
797
  function p(d) {
798
- var _ = 65536, f = n.getTypeOf(d), v = !0;
799
- if (f === "uint8array" ? v = y.applyCanBeUsed.uint8array : f === "nodebuffer" && (v = y.applyCanBeUsed.nodebuffer), v) for (; 1 < _; ) try {
800
- return y.stringifyByChunk(d, f, _);
798
+ var _ = 65536, u = n.getTypeOf(d), v = !0;
799
+ if (u === "uint8array" ? v = g.applyCanBeUsed.uint8array : u === "nodebuffer" && (v = g.applyCanBeUsed.nodebuffer), v) for (; 1 < _; ) try {
800
+ return g.stringifyByChunk(d, u, _);
801
801
  } catch {
802
802
  _ = Math.floor(_ / 2);
803
803
  }
804
- return y.stringifyByChar(d);
804
+ return g.stringifyByChar(d);
805
805
  }
806
- function h(d, _) {
807
- for (var f = 0; f < d.length; f++) _[f] = d[f];
806
+ function c(d, _) {
807
+ for (var u = 0; u < d.length; u++) _[u] = d[u];
808
808
  return _;
809
809
  }
810
810
  n.applyFromCharCode = p;
811
- var b = {};
812
- b.string = { string: m, array: function(d) {
813
- return u(d, new Array(d.length));
811
+ var y = {};
812
+ y.string = { string: m, array: function(d) {
813
+ return f(d, new Array(d.length));
814
814
  }, arraybuffer: function(d) {
815
- return b.string.uint8array(d).buffer;
815
+ return y.string.uint8array(d).buffer;
816
816
  }, uint8array: function(d) {
817
- return u(d, new Uint8Array(d.length));
817
+ return f(d, new Uint8Array(d.length));
818
818
  }, nodebuffer: function(d) {
819
- return u(d, s.allocBuffer(d.length));
820
- } }, b.array = { string: p, array: m, arraybuffer: function(d) {
819
+ return f(d, s.allocBuffer(d.length));
820
+ } }, y.array = { string: p, array: m, arraybuffer: function(d) {
821
821
  return new Uint8Array(d).buffer;
822
822
  }, uint8array: function(d) {
823
823
  return new Uint8Array(d);
824
824
  }, nodebuffer: function(d) {
825
825
  return s.newBufferFrom(d);
826
- } }, b.arraybuffer = { string: function(d) {
826
+ } }, y.arraybuffer = { string: function(d) {
827
827
  return p(new Uint8Array(d));
828
828
  }, array: function(d) {
829
- return h(new Uint8Array(d), new Array(d.byteLength));
829
+ return c(new Uint8Array(d), new Array(d.byteLength));
830
830
  }, arraybuffer: m, uint8array: function(d) {
831
831
  return new Uint8Array(d);
832
832
  }, nodebuffer: function(d) {
833
833
  return s.newBufferFrom(new Uint8Array(d));
834
- } }, b.uint8array = { string: p, array: function(d) {
835
- return h(d, new Array(d.length));
834
+ } }, y.uint8array = { string: p, array: function(d) {
835
+ return c(d, new Array(d.length));
836
836
  }, arraybuffer: function(d) {
837
837
  return d.buffer;
838
838
  }, uint8array: m, nodebuffer: function(d) {
839
839
  return s.newBufferFrom(d);
840
- } }, b.nodebuffer = { string: p, array: function(d) {
841
- return h(d, new Array(d.length));
840
+ } }, y.nodebuffer = { string: p, array: function(d) {
841
+ return c(d, new Array(d.length));
842
842
  }, arraybuffer: function(d) {
843
- return b.nodebuffer.uint8array(d).buffer;
843
+ return y.nodebuffer.uint8array(d).buffer;
844
844
  }, uint8array: function(d) {
845
- return h(d, new Uint8Array(d.length));
845
+ return c(d, new Uint8Array(d.length));
846
846
  }, nodebuffer: m }, n.transformTo = function(d, _) {
847
847
  if (_ = _ || "", !d) return _;
848
848
  n.checkSupport(d);
849
- var f = n.getTypeOf(_);
850
- return b[f][d](_);
849
+ var u = n.getTypeOf(_);
850
+ return y[u][d](_);
851
851
  }, n.resolve = function(d) {
852
- for (var _ = d.split("/"), f = [], v = 0; v < _.length; v++) {
852
+ for (var _ = d.split("/"), u = [], v = 0; v < _.length; v++) {
853
853
  var E = _[v];
854
- E === "." || E === "" && v !== 0 && v !== _.length - 1 || (E === ".." ? f.pop() : f.push(E));
854
+ E === "." || E === "" && v !== 0 && v !== _.length - 1 || (E === ".." ? u.pop() : u.push(E));
855
855
  }
856
- return f.join("/");
856
+ return u.join("/");
857
857
  }, n.getTypeOf = function(d) {
858
858
  return typeof d == "string" ? "string" : Object.prototype.toString.call(d) === "[object Array]" ? "array" : a.nodebuffer && s.isBuffer(d) ? "nodebuffer" : a.uint8array && d instanceof Uint8Array ? "uint8array" : a.arraybuffer && d instanceof ArrayBuffer ? "arraybuffer" : void 0;
859
859
  }, n.checkSupport = function(d) {
860
860
  if (!a[d.toLowerCase()]) throw new Error(d + " is not supported by this platform");
861
861
  }, n.MAX_VALUE_16BITS = 65535, n.MAX_VALUE_32BITS = -1, n.pretty = function(d) {
862
- var _, f, v = "";
863
- for (f = 0; f < (d || "").length; f++) v += "\\x" + ((_ = d.charCodeAt(f)) < 16 ? "0" : "") + _.toString(16).toUpperCase();
862
+ var _, u, v = "";
863
+ for (u = 0; u < (d || "").length; u++) v += "\\x" + ((_ = d.charCodeAt(u)) < 16 ? "0" : "") + _.toString(16).toUpperCase();
864
864
  return v;
865
- }, n.delay = function(d, _, f) {
865
+ }, n.delay = function(d, _, u) {
866
866
  setImmediate(function() {
867
- d.apply(f || null, _ || []);
867
+ d.apply(u || null, _ || []);
868
868
  });
869
869
  }, n.inherits = function(d, _) {
870
- function f() {
870
+ function u() {
871
871
  }
872
- f.prototype = _.prototype, d.prototype = new f();
872
+ u.prototype = _.prototype, d.prototype = new u();
873
873
  }, n.extend = function() {
874
- var d, _, f = {};
875
- for (d = 0; d < arguments.length; d++) for (_ in arguments[d]) Object.prototype.hasOwnProperty.call(arguments[d], _) && f[_] === void 0 && (f[_] = arguments[d][_]);
876
- return f;
877
- }, n.prepareContent = function(d, _, f, v, E) {
878
- return c.Promise.resolve(_).then(function(A) {
879
- return a.blob && (A instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(A)) !== -1) && typeof FileReader < "u" ? new c.Promise(function(T, L) {
874
+ var d, _, u = {};
875
+ for (d = 0; d < arguments.length; d++) for (_ in arguments[d]) Object.prototype.hasOwnProperty.call(arguments[d], _) && u[_] === void 0 && (u[_] = arguments[d][_]);
876
+ return u;
877
+ }, n.prepareContent = function(d, _, u, v, E) {
878
+ return h.Promise.resolve(_).then(function(A) {
879
+ return a.blob && (A instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(A)) !== -1) && typeof FileReader < "u" ? new h.Promise(function(T, L) {
880
880
  var B = new FileReader();
881
881
  B.onload = function(j) {
882
882
  T(j.target.result);
@@ -886,300 +886,300 @@ https://github.com/nodeca/pako/blob/main/LICENSE
886
886
  }) : A;
887
887
  }).then(function(A) {
888
888
  var T = n.getTypeOf(A);
889
- return T ? (T === "arraybuffer" ? A = n.transformTo("uint8array", A) : T === "string" && (E ? A = o.decode(A) : f && v !== !0 && (A = function(L) {
890
- return u(L, a.uint8array ? new Uint8Array(L.length) : new Array(L.length));
891
- }(A))), A) : c.Promise.reject(new Error("Can't read the data of '" + d + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
889
+ return T ? (T === "arraybuffer" ? A = n.transformTo("uint8array", A) : T === "string" && (E ? A = o.decode(A) : u && v !== !0 && (A = function(L) {
890
+ return f(L, a.uint8array ? new Uint8Array(L.length) : new Array(L.length));
891
+ }(A))), A) : h.Promise.reject(new Error("Can't read the data of '" + d + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
892
892
  });
893
893
  };
894
894
  }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(t, r, n) {
895
- var a = t("./reader/readerFor"), o = t("./utils"), s = t("./signature"), c = t("./zipEntry"), m = t("./support");
896
- function u(y) {
897
- this.files = [], this.loadOptions = y;
895
+ var a = t("./reader/readerFor"), o = t("./utils"), s = t("./signature"), h = t("./zipEntry"), m = t("./support");
896
+ function f(g) {
897
+ this.files = [], this.loadOptions = g;
898
898
  }
899
- u.prototype = { checkSignature: function(y) {
900
- if (!this.reader.readAndCheckSignature(y)) {
899
+ f.prototype = { checkSignature: function(g) {
900
+ if (!this.reader.readAndCheckSignature(g)) {
901
901
  this.reader.index -= 4;
902
902
  var p = this.reader.readString(4);
903
- throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(p) + ", expected " + o.pretty(y) + ")");
903
+ throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(p) + ", expected " + o.pretty(g) + ")");
904
904
  }
905
- }, isSignature: function(y, p) {
906
- var h = this.reader.index;
907
- this.reader.setIndex(y);
908
- var b = this.reader.readString(4) === p;
909
- return this.reader.setIndex(h), b;
905
+ }, isSignature: function(g, p) {
906
+ var c = this.reader.index;
907
+ this.reader.setIndex(g);
908
+ var y = this.reader.readString(4) === p;
909
+ return this.reader.setIndex(c), y;
910
910
  }, readBlockEndOfCentral: function() {
911
911
  this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2);
912
- var y = this.reader.readData(this.zipCommentLength), p = m.uint8array ? "uint8array" : "array", h = o.transformTo(p, y);
913
- this.zipComment = this.loadOptions.decodeFileName(h);
912
+ var g = this.reader.readData(this.zipCommentLength), p = m.uint8array ? "uint8array" : "array", c = o.transformTo(p, g);
913
+ this.zipComment = this.loadOptions.decodeFileName(c);
914
914
  }, readBlockZip64EndOfCentral: function() {
915
915
  this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {};
916
- for (var y, p, h, b = this.zip64EndOfCentralSize - 44; 0 < b; ) y = this.reader.readInt(2), p = this.reader.readInt(4), h = this.reader.readData(p), this.zip64ExtensibleData[y] = { id: y, length: p, value: h };
916
+ for (var g, p, c, y = this.zip64EndOfCentralSize - 44; 0 < y; ) g = this.reader.readInt(2), p = this.reader.readInt(4), c = this.reader.readData(p), this.zip64ExtensibleData[g] = { id: g, length: p, value: c };
917
917
  }, readBlockZip64EndOfCentralLocator: function() {
918
918
  if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw new Error("Multi-volumes zip are not supported");
919
919
  }, readLocalFiles: function() {
920
- var y, p;
921
- for (y = 0; y < this.files.length; y++) p = this.files[y], this.reader.setIndex(p.localHeaderOffset), this.checkSignature(s.LOCAL_FILE_HEADER), p.readLocalPart(this.reader), p.handleUTF8(), p.processAttributes();
920
+ var g, p;
921
+ for (g = 0; g < this.files.length; g++) p = this.files[g], this.reader.setIndex(p.localHeaderOffset), this.checkSignature(s.LOCAL_FILE_HEADER), p.readLocalPart(this.reader), p.handleUTF8(), p.processAttributes();
922
922
  }, readCentralDir: function() {
923
- var y;
924
- for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER); ) (y = new c({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(y);
923
+ var g;
924
+ for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER); ) (g = new h({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(g);
925
925
  if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
926
926
  }, readEndOfCentral: function() {
927
- var y = this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);
928
- if (y < 0) throw this.isSignature(0, s.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
929
- this.reader.setIndex(y);
930
- var p = y;
927
+ var g = this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);
928
+ if (g < 0) throw this.isSignature(0, s.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
929
+ this.reader.setIndex(g);
930
+ var p = g;
931
931
  if (this.checkSignature(s.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === o.MAX_VALUE_16BITS || this.diskWithCentralDirStart === o.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === o.MAX_VALUE_16BITS || this.centralDirRecords === o.MAX_VALUE_16BITS || this.centralDirSize === o.MAX_VALUE_32BITS || this.centralDirOffset === o.MAX_VALUE_32BITS) {
932
- if (this.zip64 = !0, (y = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
933
- if (this.reader.setIndex(y), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, s.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
932
+ if (this.zip64 = !0, (g = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
933
+ if (this.reader.setIndex(g), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, s.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
934
934
  this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
935
935
  }
936
- var h = this.centralDirOffset + this.centralDirSize;
937
- this.zip64 && (h += 20, h += 12 + this.zip64EndOfCentralSize);
938
- var b = p - h;
939
- if (0 < b) this.isSignature(p, s.CENTRAL_FILE_HEADER) || (this.reader.zero = b);
940
- else if (b < 0) throw new Error("Corrupted zip: missing " + Math.abs(b) + " bytes.");
941
- }, prepareReader: function(y) {
942
- this.reader = a(y);
943
- }, load: function(y) {
944
- this.prepareReader(y), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
945
- } }, r.exports = u;
936
+ var c = this.centralDirOffset + this.centralDirSize;
937
+ this.zip64 && (c += 20, c += 12 + this.zip64EndOfCentralSize);
938
+ var y = p - c;
939
+ if (0 < y) this.isSignature(p, s.CENTRAL_FILE_HEADER) || (this.reader.zero = y);
940
+ else if (y < 0) throw new Error("Corrupted zip: missing " + Math.abs(y) + " bytes.");
941
+ }, prepareReader: function(g) {
942
+ this.reader = a(g);
943
+ }, load: function(g) {
944
+ this.prepareReader(g), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
945
+ } }, r.exports = f;
946
946
  }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(t, r, n) {
947
- var a = t("./reader/readerFor"), o = t("./utils"), s = t("./compressedObject"), c = t("./crc32"), m = t("./utf8"), u = t("./compressions"), y = t("./support");
948
- function p(h, b) {
949
- this.options = h, this.loadOptions = b;
947
+ var a = t("./reader/readerFor"), o = t("./utils"), s = t("./compressedObject"), h = t("./crc32"), m = t("./utf8"), f = t("./compressions"), g = t("./support");
948
+ function p(c, y) {
949
+ this.options = c, this.loadOptions = y;
950
950
  }
951
951
  p.prototype = { isEncrypted: function() {
952
952
  return (1 & this.bitFlag) == 1;
953
953
  }, useUTF8: function() {
954
954
  return (2048 & this.bitFlag) == 2048;
955
- }, readLocalPart: function(h) {
956
- var b, d;
957
- if (h.skip(22), this.fileNameLength = h.readInt(2), d = h.readInt(2), this.fileName = h.readData(this.fileNameLength), h.skip(d), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
958
- if ((b = function(_) {
959
- for (var f in u) if (Object.prototype.hasOwnProperty.call(u, f) && u[f].magic === _) return u[f];
955
+ }, readLocalPart: function(c) {
956
+ var y, d;
957
+ if (c.skip(22), this.fileNameLength = c.readInt(2), d = c.readInt(2), this.fileName = c.readData(this.fileNameLength), c.skip(d), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
958
+ if ((y = function(_) {
959
+ for (var u in f) if (Object.prototype.hasOwnProperty.call(f, u) && f[u].magic === _) return f[u];
960
960
  return null;
961
961
  }(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
962
- this.decompressed = new s(this.compressedSize, this.uncompressedSize, this.crc32, b, h.readData(this.compressedSize));
963
- }, readCentralPart: function(h) {
964
- this.versionMadeBy = h.readInt(2), h.skip(2), this.bitFlag = h.readInt(2), this.compressionMethod = h.readString(2), this.date = h.readDate(), this.crc32 = h.readInt(4), this.compressedSize = h.readInt(4), this.uncompressedSize = h.readInt(4);
965
- var b = h.readInt(2);
966
- if (this.extraFieldsLength = h.readInt(2), this.fileCommentLength = h.readInt(2), this.diskNumberStart = h.readInt(2), this.internalFileAttributes = h.readInt(2), this.externalFileAttributes = h.readInt(4), this.localHeaderOffset = h.readInt(4), this.isEncrypted()) throw new Error("Encrypted zip are not supported");
967
- h.skip(b), this.readExtraFields(h), this.parseZIP64ExtraField(h), this.fileComment = h.readData(this.fileCommentLength);
962
+ this.decompressed = new s(this.compressedSize, this.uncompressedSize, this.crc32, y, c.readData(this.compressedSize));
963
+ }, readCentralPart: function(c) {
964
+ this.versionMadeBy = c.readInt(2), c.skip(2), this.bitFlag = c.readInt(2), this.compressionMethod = c.readString(2), this.date = c.readDate(), this.crc32 = c.readInt(4), this.compressedSize = c.readInt(4), this.uncompressedSize = c.readInt(4);
965
+ var y = c.readInt(2);
966
+ if (this.extraFieldsLength = c.readInt(2), this.fileCommentLength = c.readInt(2), this.diskNumberStart = c.readInt(2), this.internalFileAttributes = c.readInt(2), this.externalFileAttributes = c.readInt(4), this.localHeaderOffset = c.readInt(4), this.isEncrypted()) throw new Error("Encrypted zip are not supported");
967
+ c.skip(y), this.readExtraFields(c), this.parseZIP64ExtraField(c), this.fileComment = c.readData(this.fileCommentLength);
968
968
  }, processAttributes: function() {
969
969
  this.unixPermissions = null, this.dosPermissions = null;
970
- var h = this.versionMadeBy >> 8;
971
- this.dir = !!(16 & this.externalFileAttributes), h == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), h == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
970
+ var c = this.versionMadeBy >> 8;
971
+ this.dir = !!(16 & this.externalFileAttributes), c == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), c == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
972
972
  }, parseZIP64ExtraField: function() {
973
973
  if (this.extraFields[1]) {
974
- var h = a(this.extraFields[1].value);
975
- this.uncompressedSize === o.MAX_VALUE_32BITS && (this.uncompressedSize = h.readInt(8)), this.compressedSize === o.MAX_VALUE_32BITS && (this.compressedSize = h.readInt(8)), this.localHeaderOffset === o.MAX_VALUE_32BITS && (this.localHeaderOffset = h.readInt(8)), this.diskNumberStart === o.MAX_VALUE_32BITS && (this.diskNumberStart = h.readInt(4));
974
+ var c = a(this.extraFields[1].value);
975
+ this.uncompressedSize === o.MAX_VALUE_32BITS && (this.uncompressedSize = c.readInt(8)), this.compressedSize === o.MAX_VALUE_32BITS && (this.compressedSize = c.readInt(8)), this.localHeaderOffset === o.MAX_VALUE_32BITS && (this.localHeaderOffset = c.readInt(8)), this.diskNumberStart === o.MAX_VALUE_32BITS && (this.diskNumberStart = c.readInt(4));
976
976
  }
977
- }, readExtraFields: function(h) {
978
- var b, d, _, f = h.index + this.extraFieldsLength;
979
- for (this.extraFields || (this.extraFields = {}); h.index + 4 < f; ) b = h.readInt(2), d = h.readInt(2), _ = h.readData(d), this.extraFields[b] = { id: b, length: d, value: _ };
980
- h.setIndex(f);
977
+ }, readExtraFields: function(c) {
978
+ var y, d, _, u = c.index + this.extraFieldsLength;
979
+ for (this.extraFields || (this.extraFields = {}); c.index + 4 < u; ) y = c.readInt(2), d = c.readInt(2), _ = c.readData(d), this.extraFields[y] = { id: y, length: d, value: _ };
980
+ c.setIndex(u);
981
981
  }, handleUTF8: function() {
982
- var h = y.uint8array ? "uint8array" : "array";
982
+ var c = g.uint8array ? "uint8array" : "array";
983
983
  if (this.useUTF8()) this.fileNameStr = m.utf8decode(this.fileName), this.fileCommentStr = m.utf8decode(this.fileComment);
984
984
  else {
985
- var b = this.findExtraFieldUnicodePath();
986
- if (b !== null) this.fileNameStr = b;
985
+ var y = this.findExtraFieldUnicodePath();
986
+ if (y !== null) this.fileNameStr = y;
987
987
  else {
988
- var d = o.transformTo(h, this.fileName);
988
+ var d = o.transformTo(c, this.fileName);
989
989
  this.fileNameStr = this.loadOptions.decodeFileName(d);
990
990
  }
991
991
  var _ = this.findExtraFieldUnicodeComment();
992
992
  if (_ !== null) this.fileCommentStr = _;
993
993
  else {
994
- var f = o.transformTo(h, this.fileComment);
995
- this.fileCommentStr = this.loadOptions.decodeFileName(f);
994
+ var u = o.transformTo(c, this.fileComment);
995
+ this.fileCommentStr = this.loadOptions.decodeFileName(u);
996
996
  }
997
997
  }
998
998
  }, findExtraFieldUnicodePath: function() {
999
- var h = this.extraFields[28789];
1000
- if (h) {
1001
- var b = a(h.value);
1002
- return b.readInt(1) !== 1 || c(this.fileName) !== b.readInt(4) ? null : m.utf8decode(b.readData(h.length - 5));
999
+ var c = this.extraFields[28789];
1000
+ if (c) {
1001
+ var y = a(c.value);
1002
+ return y.readInt(1) !== 1 || h(this.fileName) !== y.readInt(4) ? null : m.utf8decode(y.readData(c.length - 5));
1003
1003
  }
1004
1004
  return null;
1005
1005
  }, findExtraFieldUnicodeComment: function() {
1006
- var h = this.extraFields[25461];
1007
- if (h) {
1008
- var b = a(h.value);
1009
- return b.readInt(1) !== 1 || c(this.fileComment) !== b.readInt(4) ? null : m.utf8decode(b.readData(h.length - 5));
1006
+ var c = this.extraFields[25461];
1007
+ if (c) {
1008
+ var y = a(c.value);
1009
+ return y.readInt(1) !== 1 || h(this.fileComment) !== y.readInt(4) ? null : m.utf8decode(y.readData(c.length - 5));
1010
1010
  }
1011
1011
  return null;
1012
1012
  } }, r.exports = p;
1013
1013
  }, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(t, r, n) {
1014
- function a(b, d, _) {
1015
- this.name = b, this.dir = _.dir, this.date = _.date, this.comment = _.comment, this.unixPermissions = _.unixPermissions, this.dosPermissions = _.dosPermissions, this._data = d, this._dataBinary = _.binary, this.options = { compression: _.compression, compressionOptions: _.compressionOptions };
1014
+ function a(y, d, _) {
1015
+ this.name = y, this.dir = _.dir, this.date = _.date, this.comment = _.comment, this.unixPermissions = _.unixPermissions, this.dosPermissions = _.dosPermissions, this._data = d, this._dataBinary = _.binary, this.options = { compression: _.compression, compressionOptions: _.compressionOptions };
1016
1016
  }
1017
- var o = t("./stream/StreamHelper"), s = t("./stream/DataWorker"), c = t("./utf8"), m = t("./compressedObject"), u = t("./stream/GenericWorker");
1018
- a.prototype = { internalStream: function(b) {
1017
+ var o = t("./stream/StreamHelper"), s = t("./stream/DataWorker"), h = t("./utf8"), m = t("./compressedObject"), f = t("./stream/GenericWorker");
1018
+ a.prototype = { internalStream: function(y) {
1019
1019
  var d = null, _ = "string";
1020
1020
  try {
1021
- if (!b) throw new Error("No output type specified.");
1022
- var f = (_ = b.toLowerCase()) === "string" || _ === "text";
1021
+ if (!y) throw new Error("No output type specified.");
1022
+ var u = (_ = y.toLowerCase()) === "string" || _ === "text";
1023
1023
  _ !== "binarystring" && _ !== "text" || (_ = "string"), d = this._decompressWorker();
1024
1024
  var v = !this._dataBinary;
1025
- v && !f && (d = d.pipe(new c.Utf8EncodeWorker())), !v && f && (d = d.pipe(new c.Utf8DecodeWorker()));
1025
+ v && !u && (d = d.pipe(new h.Utf8EncodeWorker())), !v && u && (d = d.pipe(new h.Utf8DecodeWorker()));
1026
1026
  } catch (E) {
1027
- (d = new u("error")).error(E);
1027
+ (d = new f("error")).error(E);
1028
1028
  }
1029
1029
  return new o(d, _, "");
1030
- }, async: function(b, d) {
1031
- return this.internalStream(b).accumulate(d);
1032
- }, nodeStream: function(b, d) {
1033
- return this.internalStream(b || "nodebuffer").toNodejsStream(d);
1034
- }, _compressWorker: function(b, d) {
1035
- if (this._data instanceof m && this._data.compression.magic === b.magic) return this._data.getCompressedWorker();
1030
+ }, async: function(y, d) {
1031
+ return this.internalStream(y).accumulate(d);
1032
+ }, nodeStream: function(y, d) {
1033
+ return this.internalStream(y || "nodebuffer").toNodejsStream(d);
1034
+ }, _compressWorker: function(y, d) {
1035
+ if (this._data instanceof m && this._data.compression.magic === y.magic) return this._data.getCompressedWorker();
1036
1036
  var _ = this._decompressWorker();
1037
- return this._dataBinary || (_ = _.pipe(new c.Utf8EncodeWorker())), m.createWorkerFrom(_, b, d);
1037
+ return this._dataBinary || (_ = _.pipe(new h.Utf8EncodeWorker())), m.createWorkerFrom(_, y, d);
1038
1038
  }, _decompressWorker: function() {
1039
- return this._data instanceof m ? this._data.getContentWorker() : this._data instanceof u ? this._data : new s(this._data);
1039
+ return this._data instanceof m ? this._data.getContentWorker() : this._data instanceof f ? this._data : new s(this._data);
1040
1040
  } };
1041
- for (var y = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], p = function() {
1041
+ for (var g = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], p = function() {
1042
1042
  throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1043
- }, h = 0; h < y.length; h++) a.prototype[y[h]] = p;
1043
+ }, c = 0; c < g.length; c++) a.prototype[g[c]] = p;
1044
1044
  r.exports = a;
1045
1045
  }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(t, r, n) {
1046
1046
  (function(a) {
1047
- var o, s, c = a.MutationObserver || a.WebKitMutationObserver;
1048
- if (c) {
1049
- var m = 0, u = new c(b), y = a.document.createTextNode("");
1050
- u.observe(y, { characterData: !0 }), o = function() {
1051
- y.data = m = ++m % 2;
1047
+ var o, s, h = a.MutationObserver || a.WebKitMutationObserver;
1048
+ if (h) {
1049
+ var m = 0, f = new h(y), g = a.document.createTextNode("");
1050
+ f.observe(g, { characterData: !0 }), o = function() {
1051
+ g.data = m = ++m % 2;
1052
1052
  };
1053
1053
  } else if (a.setImmediate || a.MessageChannel === void 0) o = "document" in a && "onreadystatechange" in a.document.createElement("script") ? function() {
1054
1054
  var d = a.document.createElement("script");
1055
1055
  d.onreadystatechange = function() {
1056
- b(), d.onreadystatechange = null, d.parentNode.removeChild(d), d = null;
1056
+ y(), d.onreadystatechange = null, d.parentNode.removeChild(d), d = null;
1057
1057
  }, a.document.documentElement.appendChild(d);
1058
1058
  } : function() {
1059
- setTimeout(b, 0);
1059
+ setTimeout(y, 0);
1060
1060
  };
1061
1061
  else {
1062
1062
  var p = new a.MessageChannel();
1063
- p.port1.onmessage = b, o = function() {
1063
+ p.port1.onmessage = y, o = function() {
1064
1064
  p.port2.postMessage(0);
1065
1065
  };
1066
1066
  }
1067
- var h = [];
1068
- function b() {
1067
+ var c = [];
1068
+ function y() {
1069
1069
  var d, _;
1070
1070
  s = !0;
1071
- for (var f = h.length; f; ) {
1072
- for (_ = h, h = [], d = -1; ++d < f; ) _[d]();
1073
- f = h.length;
1071
+ for (var u = c.length; u; ) {
1072
+ for (_ = c, c = [], d = -1; ++d < u; ) _[d]();
1073
+ u = c.length;
1074
1074
  }
1075
1075
  s = !1;
1076
1076
  }
1077
1077
  r.exports = function(d) {
1078
- h.push(d) !== 1 || s || o();
1078
+ c.push(d) !== 1 || s || o();
1079
1079
  };
1080
1080
  }).call(this, typeof St < "u" ? St : typeof self < "u" ? self : typeof window < "u" ? window : {});
1081
1081
  }, {}], 37: [function(t, r, n) {
1082
1082
  var a = t("immediate");
1083
1083
  function o() {
1084
1084
  }
1085
- var s = {}, c = ["REJECTED"], m = ["FULFILLED"], u = ["PENDING"];
1086
- function y(f) {
1087
- if (typeof f != "function") throw new TypeError("resolver must be a function");
1088
- this.state = u, this.queue = [], this.outcome = void 0, f !== o && d(this, f);
1085
+ var s = {}, h = ["REJECTED"], m = ["FULFILLED"], f = ["PENDING"];
1086
+ function g(u) {
1087
+ if (typeof u != "function") throw new TypeError("resolver must be a function");
1088
+ this.state = f, this.queue = [], this.outcome = void 0, u !== o && d(this, u);
1089
1089
  }
1090
- function p(f, v, E) {
1091
- this.promise = f, typeof v == "function" && (this.onFulfilled = v, this.callFulfilled = this.otherCallFulfilled), typeof E == "function" && (this.onRejected = E, this.callRejected = this.otherCallRejected);
1090
+ function p(u, v, E) {
1091
+ this.promise = u, typeof v == "function" && (this.onFulfilled = v, this.callFulfilled = this.otherCallFulfilled), typeof E == "function" && (this.onRejected = E, this.callRejected = this.otherCallRejected);
1092
1092
  }
1093
- function h(f, v, E) {
1093
+ function c(u, v, E) {
1094
1094
  a(function() {
1095
1095
  var A;
1096
1096
  try {
1097
1097
  A = v(E);
1098
1098
  } catch (T) {
1099
- return s.reject(f, T);
1099
+ return s.reject(u, T);
1100
1100
  }
1101
- A === f ? s.reject(f, new TypeError("Cannot resolve promise with itself")) : s.resolve(f, A);
1101
+ A === u ? s.reject(u, new TypeError("Cannot resolve promise with itself")) : s.resolve(u, A);
1102
1102
  });
1103
1103
  }
1104
- function b(f) {
1105
- var v = f && f.then;
1106
- if (f && (typeof f == "object" || typeof f == "function") && typeof v == "function") return function() {
1107
- v.apply(f, arguments);
1104
+ function y(u) {
1105
+ var v = u && u.then;
1106
+ if (u && (typeof u == "object" || typeof u == "function") && typeof v == "function") return function() {
1107
+ v.apply(u, arguments);
1108
1108
  };
1109
1109
  }
1110
- function d(f, v) {
1110
+ function d(u, v) {
1111
1111
  var E = !1;
1112
1112
  function A(B) {
1113
- E || (E = !0, s.reject(f, B));
1113
+ E || (E = !0, s.reject(u, B));
1114
1114
  }
1115
1115
  function T(B) {
1116
- E || (E = !0, s.resolve(f, B));
1116
+ E || (E = !0, s.resolve(u, B));
1117
1117
  }
1118
1118
  var L = _(function() {
1119
1119
  v(T, A);
1120
1120
  });
1121
1121
  L.status === "error" && A(L.value);
1122
1122
  }
1123
- function _(f, v) {
1123
+ function _(u, v) {
1124
1124
  var E = {};
1125
1125
  try {
1126
- E.value = f(v), E.status = "success";
1126
+ E.value = u(v), E.status = "success";
1127
1127
  } catch (A) {
1128
1128
  E.status = "error", E.value = A;
1129
1129
  }
1130
1130
  return E;
1131
1131
  }
1132
- (r.exports = y).prototype.finally = function(f) {
1133
- if (typeof f != "function") return this;
1132
+ (r.exports = g).prototype.finally = function(u) {
1133
+ if (typeof u != "function") return this;
1134
1134
  var v = this.constructor;
1135
1135
  return this.then(function(E) {
1136
- return v.resolve(f()).then(function() {
1136
+ return v.resolve(u()).then(function() {
1137
1137
  return E;
1138
1138
  });
1139
1139
  }, function(E) {
1140
- return v.resolve(f()).then(function() {
1140
+ return v.resolve(u()).then(function() {
1141
1141
  throw E;
1142
1142
  });
1143
1143
  });
1144
- }, y.prototype.catch = function(f) {
1145
- return this.then(null, f);
1146
- }, y.prototype.then = function(f, v) {
1147
- if (typeof f != "function" && this.state === m || typeof v != "function" && this.state === c) return this;
1144
+ }, g.prototype.catch = function(u) {
1145
+ return this.then(null, u);
1146
+ }, g.prototype.then = function(u, v) {
1147
+ if (typeof u != "function" && this.state === m || typeof v != "function" && this.state === h) return this;
1148
1148
  var E = new this.constructor(o);
1149
- return this.state !== u ? h(E, this.state === m ? f : v, this.outcome) : this.queue.push(new p(E, f, v)), E;
1150
- }, p.prototype.callFulfilled = function(f) {
1151
- s.resolve(this.promise, f);
1152
- }, p.prototype.otherCallFulfilled = function(f) {
1153
- h(this.promise, this.onFulfilled, f);
1154
- }, p.prototype.callRejected = function(f) {
1155
- s.reject(this.promise, f);
1156
- }, p.prototype.otherCallRejected = function(f) {
1157
- h(this.promise, this.onRejected, f);
1158
- }, s.resolve = function(f, v) {
1159
- var E = _(b, v);
1160
- if (E.status === "error") return s.reject(f, E.value);
1149
+ return this.state !== f ? c(E, this.state === m ? u : v, this.outcome) : this.queue.push(new p(E, u, v)), E;
1150
+ }, p.prototype.callFulfilled = function(u) {
1151
+ s.resolve(this.promise, u);
1152
+ }, p.prototype.otherCallFulfilled = function(u) {
1153
+ c(this.promise, this.onFulfilled, u);
1154
+ }, p.prototype.callRejected = function(u) {
1155
+ s.reject(this.promise, u);
1156
+ }, p.prototype.otherCallRejected = function(u) {
1157
+ c(this.promise, this.onRejected, u);
1158
+ }, s.resolve = function(u, v) {
1159
+ var E = _(y, v);
1160
+ if (E.status === "error") return s.reject(u, E.value);
1161
1161
  var A = E.value;
1162
- if (A) d(f, A);
1162
+ if (A) d(u, A);
1163
1163
  else {
1164
- f.state = m, f.outcome = v;
1165
- for (var T = -1, L = f.queue.length; ++T < L; ) f.queue[T].callFulfilled(v);
1164
+ u.state = m, u.outcome = v;
1165
+ for (var T = -1, L = u.queue.length; ++T < L; ) u.queue[T].callFulfilled(v);
1166
1166
  }
1167
- return f;
1168
- }, s.reject = function(f, v) {
1169
- f.state = c, f.outcome = v;
1170
- for (var E = -1, A = f.queue.length; ++E < A; ) f.queue[E].callRejected(v);
1171
- return f;
1172
- }, y.resolve = function(f) {
1173
- return f instanceof this ? f : s.resolve(new this(o), f);
1174
- }, y.reject = function(f) {
1167
+ return u;
1168
+ }, s.reject = function(u, v) {
1169
+ u.state = h, u.outcome = v;
1170
+ for (var E = -1, A = u.queue.length; ++E < A; ) u.queue[E].callRejected(v);
1171
+ return u;
1172
+ }, g.resolve = function(u) {
1173
+ return u instanceof this ? u : s.resolve(new this(o), u);
1174
+ }, g.reject = function(u) {
1175
1175
  var v = new this(o);
1176
- return s.reject(v, f);
1177
- }, y.all = function(f) {
1176
+ return s.reject(v, u);
1177
+ }, g.all = function(u) {
1178
1178
  var v = this;
1179
- if (Object.prototype.toString.call(f) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1180
- var E = f.length, A = !1;
1179
+ if (Object.prototype.toString.call(u) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1180
+ var E = u.length, A = !1;
1181
1181
  if (!E) return this.resolve([]);
1182
- for (var T = new Array(E), L = 0, B = -1, j = new this(o); ++B < E; ) z(f[B], B);
1182
+ for (var T = new Array(E), L = 0, B = -1, j = new this(o); ++B < E; ) z(u[B], B);
1183
1183
  return j;
1184
1184
  function z(Z, Q) {
1185
1185
  v.resolve(Z).then(function(k) {
@@ -1188,12 +1188,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1188
1188
  A || (A = !0, s.reject(j, k));
1189
1189
  });
1190
1190
  }
1191
- }, y.race = function(f) {
1191
+ }, g.race = function(u) {
1192
1192
  var v = this;
1193
- if (Object.prototype.toString.call(f) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1194
- var E = f.length, A = !1;
1193
+ if (Object.prototype.toString.call(u) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1194
+ var E = u.length, A = !1;
1195
1195
  if (!E) return this.resolve([]);
1196
- for (var T = -1, L = new this(o); ++T < E; ) B = f[T], v.resolve(B).then(function(j) {
1196
+ for (var T = -1, L = new this(o); ++T < E; ) B = u[T], v.resolve(B).then(function(j) {
1197
1197
  A || (A = !0, s.resolve(L, j));
1198
1198
  }, function(j) {
1199
1199
  A || (A = !0, s.reject(L, j));
@@ -1205,104 +1205,104 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1205
1205
  var a = {};
1206
1206
  (0, t("./lib/utils/common").assign)(a, t("./lib/deflate"), t("./lib/inflate"), t("./lib/zlib/constants")), r.exports = a;
1207
1207
  }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(t, r, n) {
1208
- var a = t("./zlib/deflate"), o = t("./utils/common"), s = t("./utils/strings"), c = t("./zlib/messages"), m = t("./zlib/zstream"), u = Object.prototype.toString, y = 0, p = -1, h = 0, b = 8;
1209
- function d(f) {
1210
- if (!(this instanceof d)) return new d(f);
1211
- this.options = o.assign({ level: p, method: b, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: h, to: "" }, f || {});
1208
+ var a = t("./zlib/deflate"), o = t("./utils/common"), s = t("./utils/strings"), h = t("./zlib/messages"), m = t("./zlib/zstream"), f = Object.prototype.toString, g = 0, p = -1, c = 0, y = 8;
1209
+ function d(u) {
1210
+ if (!(this instanceof d)) return new d(u);
1211
+ this.options = o.assign({ level: p, method: y, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: c, to: "" }, u || {});
1212
1212
  var v = this.options;
1213
1213
  v.raw && 0 < v.windowBits ? v.windowBits = -v.windowBits : v.gzip && 0 < v.windowBits && v.windowBits < 16 && (v.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new m(), this.strm.avail_out = 0;
1214
1214
  var E = a.deflateInit2(this.strm, v.level, v.method, v.windowBits, v.memLevel, v.strategy);
1215
- if (E !== y) throw new Error(c[E]);
1215
+ if (E !== g) throw new Error(h[E]);
1216
1216
  if (v.header && a.deflateSetHeader(this.strm, v.header), v.dictionary) {
1217
1217
  var A;
1218
- if (A = typeof v.dictionary == "string" ? s.string2buf(v.dictionary) : u.call(v.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(v.dictionary) : v.dictionary, (E = a.deflateSetDictionary(this.strm, A)) !== y) throw new Error(c[E]);
1218
+ if (A = typeof v.dictionary == "string" ? s.string2buf(v.dictionary) : f.call(v.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(v.dictionary) : v.dictionary, (E = a.deflateSetDictionary(this.strm, A)) !== g) throw new Error(h[E]);
1219
1219
  this._dict_set = !0;
1220
1220
  }
1221
1221
  }
1222
- function _(f, v) {
1222
+ function _(u, v) {
1223
1223
  var E = new d(v);
1224
- if (E.push(f, !0), E.err) throw E.msg || c[E.err];
1224
+ if (E.push(u, !0), E.err) throw E.msg || h[E.err];
1225
1225
  return E.result;
1226
1226
  }
1227
- d.prototype.push = function(f, v) {
1227
+ d.prototype.push = function(u, v) {
1228
1228
  var E, A, T = this.strm, L = this.options.chunkSize;
1229
1229
  if (this.ended) return !1;
1230
- A = v === ~~v ? v : v === !0 ? 4 : 0, typeof f == "string" ? T.input = s.string2buf(f) : u.call(f) === "[object ArrayBuffer]" ? T.input = new Uint8Array(f) : T.input = f, T.next_in = 0, T.avail_in = T.input.length;
1230
+ A = v === ~~v ? v : v === !0 ? 4 : 0, typeof u == "string" ? T.input = s.string2buf(u) : f.call(u) === "[object ArrayBuffer]" ? T.input = new Uint8Array(u) : T.input = u, T.next_in = 0, T.avail_in = T.input.length;
1231
1231
  do {
1232
- if (T.avail_out === 0 && (T.output = new o.Buf8(L), T.next_out = 0, T.avail_out = L), (E = a.deflate(T, A)) !== 1 && E !== y) return this.onEnd(E), !(this.ended = !0);
1232
+ if (T.avail_out === 0 && (T.output = new o.Buf8(L), T.next_out = 0, T.avail_out = L), (E = a.deflate(T, A)) !== 1 && E !== g) return this.onEnd(E), !(this.ended = !0);
1233
1233
  T.avail_out !== 0 && (T.avail_in !== 0 || A !== 4 && A !== 2) || (this.options.to === "string" ? this.onData(s.buf2binstring(o.shrinkBuf(T.output, T.next_out))) : this.onData(o.shrinkBuf(T.output, T.next_out)));
1234
1234
  } while ((0 < T.avail_in || T.avail_out === 0) && E !== 1);
1235
- return A === 4 ? (E = a.deflateEnd(this.strm), this.onEnd(E), this.ended = !0, E === y) : A !== 2 || (this.onEnd(y), !(T.avail_out = 0));
1236
- }, d.prototype.onData = function(f) {
1237
- this.chunks.push(f);
1238
- }, d.prototype.onEnd = function(f) {
1239
- f === y && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = f, this.msg = this.strm.msg;
1240
- }, n.Deflate = d, n.deflate = _, n.deflateRaw = function(f, v) {
1241
- return (v = v || {}).raw = !0, _(f, v);
1242
- }, n.gzip = function(f, v) {
1243
- return (v = v || {}).gzip = !0, _(f, v);
1235
+ return A === 4 ? (E = a.deflateEnd(this.strm), this.onEnd(E), this.ended = !0, E === g) : A !== 2 || (this.onEnd(g), !(T.avail_out = 0));
1236
+ }, d.prototype.onData = function(u) {
1237
+ this.chunks.push(u);
1238
+ }, d.prototype.onEnd = function(u) {
1239
+ u === g && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = u, this.msg = this.strm.msg;
1240
+ }, n.Deflate = d, n.deflate = _, n.deflateRaw = function(u, v) {
1241
+ return (v = v || {}).raw = !0, _(u, v);
1242
+ }, n.gzip = function(u, v) {
1243
+ return (v = v || {}).gzip = !0, _(u, v);
1244
1244
  };
1245
1245
  }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(t, r, n) {
1246
- var a = t("./zlib/inflate"), o = t("./utils/common"), s = t("./utils/strings"), c = t("./zlib/constants"), m = t("./zlib/messages"), u = t("./zlib/zstream"), y = t("./zlib/gzheader"), p = Object.prototype.toString;
1247
- function h(d) {
1248
- if (!(this instanceof h)) return new h(d);
1246
+ var a = t("./zlib/inflate"), o = t("./utils/common"), s = t("./utils/strings"), h = t("./zlib/constants"), m = t("./zlib/messages"), f = t("./zlib/zstream"), g = t("./zlib/gzheader"), p = Object.prototype.toString;
1247
+ function c(d) {
1248
+ if (!(this instanceof c)) return new c(d);
1249
1249
  this.options = o.assign({ chunkSize: 16384, windowBits: 0, to: "" }, d || {});
1250
1250
  var _ = this.options;
1251
- _.raw && 0 <= _.windowBits && _.windowBits < 16 && (_.windowBits = -_.windowBits, _.windowBits === 0 && (_.windowBits = -15)), !(0 <= _.windowBits && _.windowBits < 16) || d && d.windowBits || (_.windowBits += 32), 15 < _.windowBits && _.windowBits < 48 && !(15 & _.windowBits) && (_.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new u(), this.strm.avail_out = 0;
1252
- var f = a.inflateInit2(this.strm, _.windowBits);
1253
- if (f !== c.Z_OK) throw new Error(m[f]);
1254
- this.header = new y(), a.inflateGetHeader(this.strm, this.header);
1251
+ _.raw && 0 <= _.windowBits && _.windowBits < 16 && (_.windowBits = -_.windowBits, _.windowBits === 0 && (_.windowBits = -15)), !(0 <= _.windowBits && _.windowBits < 16) || d && d.windowBits || (_.windowBits += 32), 15 < _.windowBits && _.windowBits < 48 && !(15 & _.windowBits) && (_.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new f(), this.strm.avail_out = 0;
1252
+ var u = a.inflateInit2(this.strm, _.windowBits);
1253
+ if (u !== h.Z_OK) throw new Error(m[u]);
1254
+ this.header = new g(), a.inflateGetHeader(this.strm, this.header);
1255
1255
  }
1256
- function b(d, _) {
1257
- var f = new h(_);
1258
- if (f.push(d, !0), f.err) throw f.msg || m[f.err];
1259
- return f.result;
1256
+ function y(d, _) {
1257
+ var u = new c(_);
1258
+ if (u.push(d, !0), u.err) throw u.msg || m[u.err];
1259
+ return u.result;
1260
1260
  }
1261
- h.prototype.push = function(d, _) {
1262
- var f, v, E, A, T, L, B = this.strm, j = this.options.chunkSize, z = this.options.dictionary, Z = !1;
1261
+ c.prototype.push = function(d, _) {
1262
+ var u, v, E, A, T, L, B = this.strm, j = this.options.chunkSize, z = this.options.dictionary, Z = !1;
1263
1263
  if (this.ended) return !1;
1264
- v = _ === ~~_ ? _ : _ === !0 ? c.Z_FINISH : c.Z_NO_FLUSH, typeof d == "string" ? B.input = s.binstring2buf(d) : p.call(d) === "[object ArrayBuffer]" ? B.input = new Uint8Array(d) : B.input = d, B.next_in = 0, B.avail_in = B.input.length;
1264
+ v = _ === ~~_ ? _ : _ === !0 ? h.Z_FINISH : h.Z_NO_FLUSH, typeof d == "string" ? B.input = s.binstring2buf(d) : p.call(d) === "[object ArrayBuffer]" ? B.input = new Uint8Array(d) : B.input = d, B.next_in = 0, B.avail_in = B.input.length;
1265
1265
  do {
1266
- if (B.avail_out === 0 && (B.output = new o.Buf8(j), B.next_out = 0, B.avail_out = j), (f = a.inflate(B, c.Z_NO_FLUSH)) === c.Z_NEED_DICT && z && (L = typeof z == "string" ? s.string2buf(z) : p.call(z) === "[object ArrayBuffer]" ? new Uint8Array(z) : z, f = a.inflateSetDictionary(this.strm, L)), f === c.Z_BUF_ERROR && Z === !0 && (f = c.Z_OK, Z = !1), f !== c.Z_STREAM_END && f !== c.Z_OK) return this.onEnd(f), !(this.ended = !0);
1267
- B.next_out && (B.avail_out !== 0 && f !== c.Z_STREAM_END && (B.avail_in !== 0 || v !== c.Z_FINISH && v !== c.Z_SYNC_FLUSH) || (this.options.to === "string" ? (E = s.utf8border(B.output, B.next_out), A = B.next_out - E, T = s.buf2string(B.output, E), B.next_out = A, B.avail_out = j - A, A && o.arraySet(B.output, B.output, E, A, 0), this.onData(T)) : this.onData(o.shrinkBuf(B.output, B.next_out)))), B.avail_in === 0 && B.avail_out === 0 && (Z = !0);
1268
- } while ((0 < B.avail_in || B.avail_out === 0) && f !== c.Z_STREAM_END);
1269
- return f === c.Z_STREAM_END && (v = c.Z_FINISH), v === c.Z_FINISH ? (f = a.inflateEnd(this.strm), this.onEnd(f), this.ended = !0, f === c.Z_OK) : v !== c.Z_SYNC_FLUSH || (this.onEnd(c.Z_OK), !(B.avail_out = 0));
1270
- }, h.prototype.onData = function(d) {
1266
+ if (B.avail_out === 0 && (B.output = new o.Buf8(j), B.next_out = 0, B.avail_out = j), (u = a.inflate(B, h.Z_NO_FLUSH)) === h.Z_NEED_DICT && z && (L = typeof z == "string" ? s.string2buf(z) : p.call(z) === "[object ArrayBuffer]" ? new Uint8Array(z) : z, u = a.inflateSetDictionary(this.strm, L)), u === h.Z_BUF_ERROR && Z === !0 && (u = h.Z_OK, Z = !1), u !== h.Z_STREAM_END && u !== h.Z_OK) return this.onEnd(u), !(this.ended = !0);
1267
+ B.next_out && (B.avail_out !== 0 && u !== h.Z_STREAM_END && (B.avail_in !== 0 || v !== h.Z_FINISH && v !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (E = s.utf8border(B.output, B.next_out), A = B.next_out - E, T = s.buf2string(B.output, E), B.next_out = A, B.avail_out = j - A, A && o.arraySet(B.output, B.output, E, A, 0), this.onData(T)) : this.onData(o.shrinkBuf(B.output, B.next_out)))), B.avail_in === 0 && B.avail_out === 0 && (Z = !0);
1268
+ } while ((0 < B.avail_in || B.avail_out === 0) && u !== h.Z_STREAM_END);
1269
+ return u === h.Z_STREAM_END && (v = h.Z_FINISH), v === h.Z_FINISH ? (u = a.inflateEnd(this.strm), this.onEnd(u), this.ended = !0, u === h.Z_OK) : v !== h.Z_SYNC_FLUSH || (this.onEnd(h.Z_OK), !(B.avail_out = 0));
1270
+ }, c.prototype.onData = function(d) {
1271
1271
  this.chunks.push(d);
1272
- }, h.prototype.onEnd = function(d) {
1273
- d === c.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = d, this.msg = this.strm.msg;
1274
- }, n.Inflate = h, n.inflate = b, n.inflateRaw = function(d, _) {
1275
- return (_ = _ || {}).raw = !0, b(d, _);
1276
- }, n.ungzip = b;
1272
+ }, c.prototype.onEnd = function(d) {
1273
+ d === h.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = d, this.msg = this.strm.msg;
1274
+ }, n.Inflate = c, n.inflate = y, n.inflateRaw = function(d, _) {
1275
+ return (_ = _ || {}).raw = !0, y(d, _);
1276
+ }, n.ungzip = y;
1277
1277
  }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(t, r, n) {
1278
1278
  var a = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
1279
- n.assign = function(c) {
1279
+ n.assign = function(h) {
1280
1280
  for (var m = Array.prototype.slice.call(arguments, 1); m.length; ) {
1281
- var u = m.shift();
1282
- if (u) {
1283
- if (typeof u != "object") throw new TypeError(u + "must be non-object");
1284
- for (var y in u) u.hasOwnProperty(y) && (c[y] = u[y]);
1281
+ var f = m.shift();
1282
+ if (f) {
1283
+ if (typeof f != "object") throw new TypeError(f + "must be non-object");
1284
+ for (var g in f) f.hasOwnProperty(g) && (h[g] = f[g]);
1285
1285
  }
1286
1286
  }
1287
- return c;
1288
- }, n.shrinkBuf = function(c, m) {
1289
- return c.length === m ? c : c.subarray ? c.subarray(0, m) : (c.length = m, c);
1287
+ return h;
1288
+ }, n.shrinkBuf = function(h, m) {
1289
+ return h.length === m ? h : h.subarray ? h.subarray(0, m) : (h.length = m, h);
1290
1290
  };
1291
- var o = { arraySet: function(c, m, u, y, p) {
1292
- if (m.subarray && c.subarray) c.set(m.subarray(u, u + y), p);
1293
- else for (var h = 0; h < y; h++) c[p + h] = m[u + h];
1294
- }, flattenChunks: function(c) {
1295
- var m, u, y, p, h, b;
1296
- for (m = y = 0, u = c.length; m < u; m++) y += c[m].length;
1297
- for (b = new Uint8Array(y), m = p = 0, u = c.length; m < u; m++) h = c[m], b.set(h, p), p += h.length;
1298
- return b;
1299
- } }, s = { arraySet: function(c, m, u, y, p) {
1300
- for (var h = 0; h < y; h++) c[p + h] = m[u + h];
1301
- }, flattenChunks: function(c) {
1302
- return [].concat.apply([], c);
1291
+ var o = { arraySet: function(h, m, f, g, p) {
1292
+ if (m.subarray && h.subarray) h.set(m.subarray(f, f + g), p);
1293
+ else for (var c = 0; c < g; c++) h[p + c] = m[f + c];
1294
+ }, flattenChunks: function(h) {
1295
+ var m, f, g, p, c, y;
1296
+ for (m = g = 0, f = h.length; m < f; m++) g += h[m].length;
1297
+ for (y = new Uint8Array(g), m = p = 0, f = h.length; m < f; m++) c = h[m], y.set(c, p), p += c.length;
1298
+ return y;
1299
+ } }, s = { arraySet: function(h, m, f, g, p) {
1300
+ for (var c = 0; c < g; c++) h[p + c] = m[f + c];
1301
+ }, flattenChunks: function(h) {
1302
+ return [].concat.apply([], h);
1303
1303
  } };
1304
- n.setTyped = function(c) {
1305
- c ? (n.Buf8 = Uint8Array, n.Buf16 = Uint16Array, n.Buf32 = Int32Array, n.assign(n, o)) : (n.Buf8 = Array, n.Buf16 = Array, n.Buf32 = Array, n.assign(n, s));
1304
+ n.setTyped = function(h) {
1305
+ h ? (n.Buf8 = Uint8Array, n.Buf16 = Uint16Array, n.Buf32 = Int32Array, n.assign(n, o)) : (n.Buf8 = Array, n.Buf16 = Array, n.Buf32 = Array, n.assign(n, s));
1306
1306
  }, n.setTyped(a);
1307
1307
  }, {}], 42: [function(t, r, n) {
1308
1308
  var a = t("./common"), o = !0, s = !0;
@@ -1316,65 +1316,65 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1316
1316
  } catch {
1317
1317
  s = !1;
1318
1318
  }
1319
- for (var c = new a.Buf8(256), m = 0; m < 256; m++) c[m] = 252 <= m ? 6 : 248 <= m ? 5 : 240 <= m ? 4 : 224 <= m ? 3 : 192 <= m ? 2 : 1;
1320
- function u(y, p) {
1321
- if (p < 65537 && (y.subarray && s || !y.subarray && o)) return String.fromCharCode.apply(null, a.shrinkBuf(y, p));
1322
- for (var h = "", b = 0; b < p; b++) h += String.fromCharCode(y[b]);
1323
- return h;
1319
+ for (var h = new a.Buf8(256), m = 0; m < 256; m++) h[m] = 252 <= m ? 6 : 248 <= m ? 5 : 240 <= m ? 4 : 224 <= m ? 3 : 192 <= m ? 2 : 1;
1320
+ function f(g, p) {
1321
+ if (p < 65537 && (g.subarray && s || !g.subarray && o)) return String.fromCharCode.apply(null, a.shrinkBuf(g, p));
1322
+ for (var c = "", y = 0; y < p; y++) c += String.fromCharCode(g[y]);
1323
+ return c;
1324
1324
  }
1325
- c[254] = c[254] = 1, n.string2buf = function(y) {
1326
- var p, h, b, d, _, f = y.length, v = 0;
1327
- for (d = 0; d < f; d++) (64512 & (h = y.charCodeAt(d))) == 55296 && d + 1 < f && (64512 & (b = y.charCodeAt(d + 1))) == 56320 && (h = 65536 + (h - 55296 << 10) + (b - 56320), d++), v += h < 128 ? 1 : h < 2048 ? 2 : h < 65536 ? 3 : 4;
1328
- for (p = new a.Buf8(v), d = _ = 0; _ < v; d++) (64512 & (h = y.charCodeAt(d))) == 55296 && d + 1 < f && (64512 & (b = y.charCodeAt(d + 1))) == 56320 && (h = 65536 + (h - 55296 << 10) + (b - 56320), d++), h < 128 ? p[_++] = h : (h < 2048 ? p[_++] = 192 | h >>> 6 : (h < 65536 ? p[_++] = 224 | h >>> 12 : (p[_++] = 240 | h >>> 18, p[_++] = 128 | h >>> 12 & 63), p[_++] = 128 | h >>> 6 & 63), p[_++] = 128 | 63 & h);
1325
+ h[254] = h[254] = 1, n.string2buf = function(g) {
1326
+ var p, c, y, d, _, u = g.length, v = 0;
1327
+ for (d = 0; d < u; d++) (64512 & (c = g.charCodeAt(d))) == 55296 && d + 1 < u && (64512 & (y = g.charCodeAt(d + 1))) == 56320 && (c = 65536 + (c - 55296 << 10) + (y - 56320), d++), v += c < 128 ? 1 : c < 2048 ? 2 : c < 65536 ? 3 : 4;
1328
+ for (p = new a.Buf8(v), d = _ = 0; _ < v; d++) (64512 & (c = g.charCodeAt(d))) == 55296 && d + 1 < u && (64512 & (y = g.charCodeAt(d + 1))) == 56320 && (c = 65536 + (c - 55296 << 10) + (y - 56320), d++), c < 128 ? p[_++] = c : (c < 2048 ? p[_++] = 192 | c >>> 6 : (c < 65536 ? p[_++] = 224 | c >>> 12 : (p[_++] = 240 | c >>> 18, p[_++] = 128 | c >>> 12 & 63), p[_++] = 128 | c >>> 6 & 63), p[_++] = 128 | 63 & c);
1329
1329
  return p;
1330
- }, n.buf2binstring = function(y) {
1331
- return u(y, y.length);
1332
- }, n.binstring2buf = function(y) {
1333
- for (var p = new a.Buf8(y.length), h = 0, b = p.length; h < b; h++) p[h] = y.charCodeAt(h);
1330
+ }, n.buf2binstring = function(g) {
1331
+ return f(g, g.length);
1332
+ }, n.binstring2buf = function(g) {
1333
+ for (var p = new a.Buf8(g.length), c = 0, y = p.length; c < y; c++) p[c] = g.charCodeAt(c);
1334
1334
  return p;
1335
- }, n.buf2string = function(y, p) {
1336
- var h, b, d, _, f = p || y.length, v = new Array(2 * f);
1337
- for (h = b = 0; h < f; ) if ((d = y[h++]) < 128) v[b++] = d;
1338
- else if (4 < (_ = c[d])) v[b++] = 65533, h += _ - 1;
1335
+ }, n.buf2string = function(g, p) {
1336
+ var c, y, d, _, u = p || g.length, v = new Array(2 * u);
1337
+ for (c = y = 0; c < u; ) if ((d = g[c++]) < 128) v[y++] = d;
1338
+ else if (4 < (_ = h[d])) v[y++] = 65533, c += _ - 1;
1339
1339
  else {
1340
- for (d &= _ === 2 ? 31 : _ === 3 ? 15 : 7; 1 < _ && h < f; ) d = d << 6 | 63 & y[h++], _--;
1341
- 1 < _ ? v[b++] = 65533 : d < 65536 ? v[b++] = d : (d -= 65536, v[b++] = 55296 | d >> 10 & 1023, v[b++] = 56320 | 1023 & d);
1340
+ for (d &= _ === 2 ? 31 : _ === 3 ? 15 : 7; 1 < _ && c < u; ) d = d << 6 | 63 & g[c++], _--;
1341
+ 1 < _ ? v[y++] = 65533 : d < 65536 ? v[y++] = d : (d -= 65536, v[y++] = 55296 | d >> 10 & 1023, v[y++] = 56320 | 1023 & d);
1342
1342
  }
1343
- return u(v, b);
1344
- }, n.utf8border = function(y, p) {
1345
- var h;
1346
- for ((p = p || y.length) > y.length && (p = y.length), h = p - 1; 0 <= h && (192 & y[h]) == 128; ) h--;
1347
- return h < 0 || h === 0 ? p : h + c[y[h]] > p ? h : p;
1343
+ return f(v, y);
1344
+ }, n.utf8border = function(g, p) {
1345
+ var c;
1346
+ for ((p = p || g.length) > g.length && (p = g.length), c = p - 1; 0 <= c && (192 & g[c]) == 128; ) c--;
1347
+ return c < 0 || c === 0 ? p : c + h[g[c]] > p ? c : p;
1348
1348
  };
1349
1349
  }, { "./common": 41 }], 43: [function(t, r, n) {
1350
- r.exports = function(a, o, s, c) {
1351
- for (var m = 65535 & a | 0, u = a >>> 16 & 65535 | 0, y = 0; s !== 0; ) {
1352
- for (s -= y = 2e3 < s ? 2e3 : s; u = u + (m = m + o[c++] | 0) | 0, --y; ) ;
1353
- m %= 65521, u %= 65521;
1350
+ r.exports = function(a, o, s, h) {
1351
+ for (var m = 65535 & a | 0, f = a >>> 16 & 65535 | 0, g = 0; s !== 0; ) {
1352
+ for (s -= g = 2e3 < s ? 2e3 : s; f = f + (m = m + o[h++] | 0) | 0, --g; ) ;
1353
+ m %= 65521, f %= 65521;
1354
1354
  }
1355
- return m | u << 16 | 0;
1355
+ return m | f << 16 | 0;
1356
1356
  };
1357
1357
  }, {}], 44: [function(t, r, n) {
1358
1358
  r.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
1359
1359
  }, {}], 45: [function(t, r, n) {
1360
1360
  var a = function() {
1361
- for (var o, s = [], c = 0; c < 256; c++) {
1362
- o = c;
1361
+ for (var o, s = [], h = 0; h < 256; h++) {
1362
+ o = h;
1363
1363
  for (var m = 0; m < 8; m++) o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
1364
- s[c] = o;
1364
+ s[h] = o;
1365
1365
  }
1366
1366
  return s;
1367
1367
  }();
1368
- r.exports = function(o, s, c, m) {
1369
- var u = a, y = m + c;
1368
+ r.exports = function(o, s, h, m) {
1369
+ var f = a, g = m + h;
1370
1370
  o ^= -1;
1371
- for (var p = m; p < y; p++) o = o >>> 8 ^ u[255 & (o ^ s[p])];
1371
+ for (var p = m; p < g; p++) o = o >>> 8 ^ f[255 & (o ^ s[p])];
1372
1372
  return -1 ^ o;
1373
1373
  };
1374
1374
  }, {}], 46: [function(t, r, n) {
1375
- var a, o = t("../utils/common"), s = t("./trees"), c = t("./adler32"), m = t("./crc32"), u = t("./messages"), y = 0, p = 4, h = 0, b = -2, d = -1, _ = 4, f = 2, v = 8, E = 9, A = 286, T = 30, L = 19, B = 2 * A + 1, j = 15, z = 3, Z = 258, Q = Z + z + 1, k = 42, N = 113, l = 1, D = 2, et = 3, U = 4;
1375
+ var a, o = t("../utils/common"), s = t("./trees"), h = t("./adler32"), m = t("./crc32"), f = t("./messages"), g = 0, p = 4, c = 0, y = -2, d = -1, _ = 4, u = 2, v = 8, E = 9, A = 286, T = 30, L = 19, B = 2 * A + 1, j = 15, z = 3, Z = 258, Q = Z + z + 1, k = 42, N = 113, l = 1, D = 2, et = 3, U = 4;
1376
1376
  function rt(i, O) {
1377
- return i.msg = u[O], O;
1377
+ return i.msg = f[O], O;
1378
1378
  }
1379
1379
  function W(i) {
1380
1380
  return (i << 1) - (4 < i ? 9 : 0);
@@ -1396,8 +1396,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1396
1396
  i.pending_buf[i.pending++] = O >>> 8 & 255, i.pending_buf[i.pending++] = 255 & O;
1397
1397
  }
1398
1398
  function V(i, O) {
1399
- var P, w, g = i.max_chain_length, S = i.strstart, M = i.prev_length, $ = i.nice_match, R = i.strstart > i.w_size - Q ? i.strstart - (i.w_size - Q) : 0, H = i.window, q = i.w_mask, G = i.prev, K = i.strstart + Z, ot = H[S + M - 1], st = H[S + M];
1400
- i.prev_length >= i.good_match && (g >>= 2), $ > i.lookahead && ($ = i.lookahead);
1399
+ var P, w, b = i.max_chain_length, S = i.strstart, M = i.prev_length, $ = i.nice_match, R = i.strstart > i.w_size - Q ? i.strstart - (i.w_size - Q) : 0, H = i.window, q = i.w_mask, G = i.prev, K = i.strstart + Z, ot = H[S + M - 1], st = H[S + M];
1400
+ i.prev_length >= i.good_match && (b >>= 2), $ > i.lookahead && ($ = i.lookahead);
1401
1401
  do
1402
1402
  if (H[(P = O) + M] === st && H[P + M - 1] === ot && H[P] === H[S] && H[++P] === H[S + 1]) {
1403
1403
  S += 2, P++;
@@ -1409,25 +1409,25 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1409
1409
  ot = H[S + M - 1], st = H[S + M];
1410
1410
  }
1411
1411
  }
1412
- while ((O = G[O & q]) > R && --g != 0);
1412
+ while ((O = G[O & q]) > R && --b != 0);
1413
1413
  return M <= i.lookahead ? M : i.lookahead;
1414
1414
  }
1415
1415
  function lt(i) {
1416
- var O, P, w, g, S, M, $, R, H, q, G = i.w_size;
1416
+ var O, P, w, b, S, M, $, R, H, q, G = i.w_size;
1417
1417
  do {
1418
- if (g = i.window_size - i.lookahead - i.strstart, i.strstart >= G + (G - Q)) {
1418
+ if (b = i.window_size - i.lookahead - i.strstart, i.strstart >= G + (G - Q)) {
1419
1419
  for (o.arraySet(i.window, i.window, G, G, 0), i.match_start -= G, i.strstart -= G, i.block_start -= G, O = P = i.hash_size; w = i.head[--O], i.head[O] = G <= w ? w - G : 0, --P; ) ;
1420
1420
  for (O = P = G; w = i.prev[--O], i.prev[O] = G <= w ? w - G : 0, --P; ) ;
1421
- g += G;
1421
+ b += G;
1422
1422
  }
1423
1423
  if (i.strm.avail_in === 0) break;
1424
- if (M = i.strm, $ = i.window, R = i.strstart + i.lookahead, H = g, q = void 0, q = M.avail_in, H < q && (q = H), P = q === 0 ? 0 : (M.avail_in -= q, o.arraySet($, M.input, M.next_in, q, R), M.state.wrap === 1 ? M.adler = c(M.adler, $, q, R) : M.state.wrap === 2 && (M.adler = m(M.adler, $, q, R)), M.next_in += q, M.total_in += q, q), i.lookahead += P, i.lookahead + i.insert >= z) for (S = i.strstart - i.insert, i.ins_h = i.window[S], i.ins_h = (i.ins_h << i.hash_shift ^ i.window[S + 1]) & i.hash_mask; i.insert && (i.ins_h = (i.ins_h << i.hash_shift ^ i.window[S + z - 1]) & i.hash_mask, i.prev[S & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = S, S++, i.insert--, !(i.lookahead + i.insert < z)); ) ;
1424
+ if (M = i.strm, $ = i.window, R = i.strstart + i.lookahead, H = b, q = void 0, q = M.avail_in, H < q && (q = H), P = q === 0 ? 0 : (M.avail_in -= q, o.arraySet($, M.input, M.next_in, q, R), M.state.wrap === 1 ? M.adler = h(M.adler, $, q, R) : M.state.wrap === 2 && (M.adler = m(M.adler, $, q, R)), M.next_in += q, M.total_in += q, q), i.lookahead += P, i.lookahead + i.insert >= z) for (S = i.strstart - i.insert, i.ins_h = i.window[S], i.ins_h = (i.ins_h << i.hash_shift ^ i.window[S + 1]) & i.hash_mask; i.insert && (i.ins_h = (i.ins_h << i.hash_shift ^ i.window[S + z - 1]) & i.hash_mask, i.prev[S & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = S, S++, i.insert--, !(i.lookahead + i.insert < z)); ) ;
1425
1425
  } while (i.lookahead < Q && i.strm.avail_in !== 0);
1426
1426
  }
1427
1427
  function ut(i, O) {
1428
1428
  for (var P, w; ; ) {
1429
1429
  if (i.lookahead < Q) {
1430
- if (lt(i), i.lookahead < Q && O === y) return l;
1430
+ if (lt(i), i.lookahead < Q && O === g) return l;
1431
1431
  if (i.lookahead === 0) break;
1432
1432
  }
1433
1433
  if (P = 0, i.lookahead >= z && (i.ins_h = (i.ins_h << i.hash_shift ^ i.window[i.strstart + z - 1]) & i.hash_mask, P = i.prev[i.strstart & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = i.strstart), P !== 0 && i.strstart - P <= i.w_size - Q && (i.match_length = V(i, P)), i.match_length >= z) if (w = s._tr_tally(i, i.strstart - i.match_start, i.match_length - z), i.lookahead -= i.match_length, i.match_length <= i.max_lazy_match && i.lookahead >= z) {
@@ -1440,13 +1440,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1440
1440
  return i.insert = i.strstart < z - 1 ? i.strstart : z - 1, O === p ? (I(i, !0), i.strm.avail_out === 0 ? et : U) : i.last_lit && (I(i, !1), i.strm.avail_out === 0) ? l : D;
1441
1441
  }
1442
1442
  function it(i, O) {
1443
- for (var P, w, g; ; ) {
1443
+ for (var P, w, b; ; ) {
1444
1444
  if (i.lookahead < Q) {
1445
- if (lt(i), i.lookahead < Q && O === y) return l;
1445
+ if (lt(i), i.lookahead < Q && O === g) return l;
1446
1446
  if (i.lookahead === 0) break;
1447
1447
  }
1448
1448
  if (P = 0, i.lookahead >= z && (i.ins_h = (i.ins_h << i.hash_shift ^ i.window[i.strstart + z - 1]) & i.hash_mask, P = i.prev[i.strstart & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = i.strstart), i.prev_length = i.match_length, i.prev_match = i.match_start, i.match_length = z - 1, P !== 0 && i.prev_length < i.max_lazy_match && i.strstart - P <= i.w_size - Q && (i.match_length = V(i, P), i.match_length <= 5 && (i.strategy === 1 || i.match_length === z && 4096 < i.strstart - i.match_start) && (i.match_length = z - 1)), i.prev_length >= z && i.match_length <= i.prev_length) {
1449
- for (g = i.strstart + i.lookahead - z, w = s._tr_tally(i, i.strstart - 1 - i.prev_match, i.prev_length - z), i.lookahead -= i.prev_length - 1, i.prev_length -= 2; ++i.strstart <= g && (i.ins_h = (i.ins_h << i.hash_shift ^ i.window[i.strstart + z - 1]) & i.hash_mask, P = i.prev[i.strstart & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = i.strstart), --i.prev_length != 0; ) ;
1449
+ for (b = i.strstart + i.lookahead - z, w = s._tr_tally(i, i.strstart - 1 - i.prev_match, i.prev_length - z), i.lookahead -= i.prev_length - 1, i.prev_length -= 2; ++i.strstart <= b && (i.ins_h = (i.ins_h << i.hash_shift ^ i.window[i.strstart + z - 1]) & i.hash_mask, P = i.prev[i.strstart & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = i.strstart), --i.prev_length != 0; ) ;
1450
1450
  if (i.match_available = 0, i.match_length = z - 1, i.strstart++, w && (I(i, !1), i.strm.avail_out === 0)) return l;
1451
1451
  } else if (i.match_available) {
1452
1452
  if ((w = s._tr_tally(i, 0, i.window[i.strstart - 1])) && I(i, !1), i.strstart++, i.lookahead--, i.strm.avail_out === 0) return l;
@@ -1454,35 +1454,35 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1454
1454
  }
1455
1455
  return i.match_available && (w = s._tr_tally(i, 0, i.window[i.strstart - 1]), i.match_available = 0), i.insert = i.strstart < z - 1 ? i.strstart : z - 1, O === p ? (I(i, !0), i.strm.avail_out === 0 ? et : U) : i.last_lit && (I(i, !1), i.strm.avail_out === 0) ? l : D;
1456
1456
  }
1457
- function at(i, O, P, w, g) {
1458
- this.good_length = i, this.max_lazy = O, this.nice_length = P, this.max_chain = w, this.func = g;
1457
+ function at(i, O, P, w, b) {
1458
+ this.good_length = i, this.max_lazy = O, this.nice_length = P, this.max_chain = w, this.func = b;
1459
1459
  }
1460
1460
  function dt() {
1461
1461
  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 = v, 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 o.Buf16(2 * B), this.dyn_dtree = new o.Buf16(2 * (2 * T + 1)), this.bl_tree = new o.Buf16(2 * (2 * L + 1)), tt(this.dyn_ltree), tt(this.dyn_dtree), tt(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new o.Buf16(j + 1), this.heap = new o.Buf16(2 * A + 1), tt(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new o.Buf16(2 * A + 1), tt(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
1462
1462
  }
1463
1463
  function ct(i) {
1464
1464
  var O;
1465
- return i && i.state ? (i.total_in = i.total_out = 0, i.data_type = f, (O = i.state).pending = 0, O.pending_out = 0, O.wrap < 0 && (O.wrap = -O.wrap), O.status = O.wrap ? k : N, i.adler = O.wrap === 2 ? 0 : 1, O.last_flush = y, s._tr_init(O), h) : rt(i, b);
1465
+ return i && i.state ? (i.total_in = i.total_out = 0, i.data_type = u, (O = i.state).pending = 0, O.pending_out = 0, O.wrap < 0 && (O.wrap = -O.wrap), O.status = O.wrap ? k : N, i.adler = O.wrap === 2 ? 0 : 1, O.last_flush = g, s._tr_init(O), c) : rt(i, y);
1466
1466
  }
1467
1467
  function bt(i) {
1468
1468
  var O = ct(i);
1469
- return O === h && function(P) {
1469
+ return O === c && function(P) {
1470
1470
  P.window_size = 2 * P.w_size, tt(P.head), P.max_lazy_match = a[P.level].max_lazy, P.good_match = a[P.level].good_length, P.nice_match = a[P.level].nice_length, P.max_chain_length = a[P.level].max_chain, P.strstart = 0, P.block_start = 0, P.lookahead = 0, P.insert = 0, P.match_length = P.prev_length = z - 1, P.match_available = 0, P.ins_h = 0;
1471
1471
  }(i.state), O;
1472
1472
  }
1473
- function pt(i, O, P, w, g, S) {
1474
- if (!i) return b;
1473
+ function pt(i, O, P, w, b, S) {
1474
+ if (!i) return y;
1475
1475
  var M = 1;
1476
- if (O === d && (O = 6), w < 0 ? (M = 0, w = -w) : 15 < w && (M = 2, w -= 16), g < 1 || E < g || P !== v || w < 8 || 15 < w || O < 0 || 9 < O || S < 0 || _ < S) return rt(i, b);
1476
+ if (O === d && (O = 6), w < 0 ? (M = 0, w = -w) : 15 < w && (M = 2, w -= 16), b < 1 || E < b || P !== v || w < 8 || 15 < w || O < 0 || 9 < O || S < 0 || _ < S) return rt(i, y);
1477
1477
  w === 8 && (w = 9);
1478
1478
  var $ = new dt();
1479
- return (i.state = $).strm = i, $.wrap = M, $.gzhead = null, $.w_bits = w, $.w_size = 1 << $.w_bits, $.w_mask = $.w_size - 1, $.hash_bits = g + 7, $.hash_size = 1 << $.hash_bits, $.hash_mask = $.hash_size - 1, $.hash_shift = ~~(($.hash_bits + z - 1) / z), $.window = new o.Buf8(2 * $.w_size), $.head = new o.Buf16($.hash_size), $.prev = new o.Buf16($.w_size), $.lit_bufsize = 1 << g + 6, $.pending_buf_size = 4 * $.lit_bufsize, $.pending_buf = new o.Buf8($.pending_buf_size), $.d_buf = 1 * $.lit_bufsize, $.l_buf = 3 * $.lit_bufsize, $.level = O, $.strategy = S, $.method = P, bt(i);
1479
+ return (i.state = $).strm = i, $.wrap = M, $.gzhead = null, $.w_bits = w, $.w_size = 1 << $.w_bits, $.w_mask = $.w_size - 1, $.hash_bits = b + 7, $.hash_size = 1 << $.hash_bits, $.hash_mask = $.hash_size - 1, $.hash_shift = ~~(($.hash_bits + z - 1) / z), $.window = new o.Buf8(2 * $.w_size), $.head = new o.Buf16($.hash_size), $.prev = new o.Buf16($.w_size), $.lit_bufsize = 1 << b + 6, $.pending_buf_size = 4 * $.lit_bufsize, $.pending_buf = new o.Buf8($.pending_buf_size), $.d_buf = 1 * $.lit_bufsize, $.l_buf = 3 * $.lit_bufsize, $.level = O, $.strategy = S, $.method = P, bt(i);
1480
1480
  }
1481
1481
  a = [new at(0, 0, 0, 0, function(i, O) {
1482
1482
  var P = 65535;
1483
1483
  for (P > i.pending_buf_size - 5 && (P = i.pending_buf_size - 5); ; ) {
1484
1484
  if (i.lookahead <= 1) {
1485
- if (lt(i), i.lookahead === 0 && O === y) return l;
1485
+ if (lt(i), i.lookahead === 0 && O === g) return l;
1486
1486
  if (i.lookahead === 0) break;
1487
1487
  }
1488
1488
  i.strstart += i.lookahead, i.lookahead = 0;
@@ -1493,51 +1493,51 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1493
1493
  }), new at(4, 4, 8, 4, ut), new at(4, 5, 16, 8, ut), new at(4, 6, 32, 32, ut), new at(4, 4, 16, 16, it), new at(8, 16, 32, 32, it), new at(8, 16, 128, 128, it), new at(8, 32, 128, 256, it), new at(32, 128, 258, 1024, it), new at(32, 258, 258, 4096, it)], n.deflateInit = function(i, O) {
1494
1494
  return pt(i, O, v, 15, 8, 0);
1495
1495
  }, n.deflateInit2 = pt, n.deflateReset = bt, n.deflateResetKeep = ct, n.deflateSetHeader = function(i, O) {
1496
- return i && i.state ? i.state.wrap !== 2 ? b : (i.state.gzhead = O, h) : b;
1496
+ return i && i.state ? i.state.wrap !== 2 ? y : (i.state.gzhead = O, c) : y;
1497
1497
  }, n.deflate = function(i, O) {
1498
- var P, w, g, S;
1499
- if (!i || !i.state || 5 < O || O < 0) return i ? rt(i, b) : b;
1500
- if (w = i.state, !i.output || !i.input && i.avail_in !== 0 || w.status === 666 && O !== p) return rt(i, i.avail_out === 0 ? -5 : b);
1498
+ var P, w, b, S;
1499
+ if (!i || !i.state || 5 < O || O < 0) return i ? rt(i, y) : y;
1500
+ if (w = i.state, !i.output || !i.input && i.avail_in !== 0 || w.status === 666 && O !== p) return rt(i, i.avail_out === 0 ? -5 : y);
1501
1501
  if (w.strm = i, P = w.last_flush, w.last_flush = O, w.status === k) if (w.wrap === 2) i.adler = 0, J(w, 31), J(w, 139), J(w, 8), w.gzhead ? (J(w, (w.gzhead.text ? 1 : 0) + (w.gzhead.hcrc ? 2 : 0) + (w.gzhead.extra ? 4 : 0) + (w.gzhead.name ? 8 : 0) + (w.gzhead.comment ? 16 : 0)), J(w, 255 & w.gzhead.time), J(w, w.gzhead.time >> 8 & 255), J(w, w.gzhead.time >> 16 & 255), J(w, w.gzhead.time >> 24 & 255), J(w, w.level === 9 ? 2 : 2 <= w.strategy || w.level < 2 ? 4 : 0), J(w, 255 & w.gzhead.os), w.gzhead.extra && w.gzhead.extra.length && (J(w, 255 & w.gzhead.extra.length), J(w, w.gzhead.extra.length >> 8 & 255)), w.gzhead.hcrc && (i.adler = m(i.adler, w.pending_buf, w.pending, 0)), w.gzindex = 0, w.status = 69) : (J(w, 0), J(w, 0), J(w, 0), J(w, 0), J(w, 0), J(w, w.level === 9 ? 2 : 2 <= w.strategy || w.level < 2 ? 4 : 0), J(w, 3), w.status = N);
1502
1502
  else {
1503
1503
  var M = v + (w.w_bits - 8 << 4) << 8;
1504
1504
  M |= (2 <= w.strategy || w.level < 2 ? 0 : w.level < 6 ? 1 : w.level === 6 ? 2 : 3) << 6, w.strstart !== 0 && (M |= 32), M += 31 - M % 31, w.status = N, Y(w, M), w.strstart !== 0 && (Y(w, i.adler >>> 16), Y(w, 65535 & i.adler)), i.adler = 1;
1505
1505
  }
1506
1506
  if (w.status === 69) if (w.gzhead.extra) {
1507
- for (g = w.pending; w.gzindex < (65535 & w.gzhead.extra.length) && (w.pending !== w.pending_buf_size || (w.gzhead.hcrc && w.pending > g && (i.adler = m(i.adler, w.pending_buf, w.pending - g, g)), F(i), g = w.pending, w.pending !== w.pending_buf_size)); ) J(w, 255 & w.gzhead.extra[w.gzindex]), w.gzindex++;
1508
- w.gzhead.hcrc && w.pending > g && (i.adler = m(i.adler, w.pending_buf, w.pending - g, g)), w.gzindex === w.gzhead.extra.length && (w.gzindex = 0, w.status = 73);
1507
+ for (b = w.pending; w.gzindex < (65535 & w.gzhead.extra.length) && (w.pending !== w.pending_buf_size || (w.gzhead.hcrc && w.pending > b && (i.adler = m(i.adler, w.pending_buf, w.pending - b, b)), F(i), b = w.pending, w.pending !== w.pending_buf_size)); ) J(w, 255 & w.gzhead.extra[w.gzindex]), w.gzindex++;
1508
+ w.gzhead.hcrc && w.pending > b && (i.adler = m(i.adler, w.pending_buf, w.pending - b, b)), w.gzindex === w.gzhead.extra.length && (w.gzindex = 0, w.status = 73);
1509
1509
  } else w.status = 73;
1510
1510
  if (w.status === 73) if (w.gzhead.name) {
1511
- g = w.pending;
1511
+ b = w.pending;
1512
1512
  do {
1513
- if (w.pending === w.pending_buf_size && (w.gzhead.hcrc && w.pending > g && (i.adler = m(i.adler, w.pending_buf, w.pending - g, g)), F(i), g = w.pending, w.pending === w.pending_buf_size)) {
1513
+ if (w.pending === w.pending_buf_size && (w.gzhead.hcrc && w.pending > b && (i.adler = m(i.adler, w.pending_buf, w.pending - b, b)), F(i), b = w.pending, w.pending === w.pending_buf_size)) {
1514
1514
  S = 1;
1515
1515
  break;
1516
1516
  }
1517
1517
  S = w.gzindex < w.gzhead.name.length ? 255 & w.gzhead.name.charCodeAt(w.gzindex++) : 0, J(w, S);
1518
1518
  } while (S !== 0);
1519
- w.gzhead.hcrc && w.pending > g && (i.adler = m(i.adler, w.pending_buf, w.pending - g, g)), S === 0 && (w.gzindex = 0, w.status = 91);
1519
+ w.gzhead.hcrc && w.pending > b && (i.adler = m(i.adler, w.pending_buf, w.pending - b, b)), S === 0 && (w.gzindex = 0, w.status = 91);
1520
1520
  } else w.status = 91;
1521
1521
  if (w.status === 91) if (w.gzhead.comment) {
1522
- g = w.pending;
1522
+ b = w.pending;
1523
1523
  do {
1524
- if (w.pending === w.pending_buf_size && (w.gzhead.hcrc && w.pending > g && (i.adler = m(i.adler, w.pending_buf, w.pending - g, g)), F(i), g = w.pending, w.pending === w.pending_buf_size)) {
1524
+ if (w.pending === w.pending_buf_size && (w.gzhead.hcrc && w.pending > b && (i.adler = m(i.adler, w.pending_buf, w.pending - b, b)), F(i), b = w.pending, w.pending === w.pending_buf_size)) {
1525
1525
  S = 1;
1526
1526
  break;
1527
1527
  }
1528
1528
  S = w.gzindex < w.gzhead.comment.length ? 255 & w.gzhead.comment.charCodeAt(w.gzindex++) : 0, J(w, S);
1529
1529
  } while (S !== 0);
1530
- w.gzhead.hcrc && w.pending > g && (i.adler = m(i.adler, w.pending_buf, w.pending - g, g)), S === 0 && (w.status = 103);
1530
+ w.gzhead.hcrc && w.pending > b && (i.adler = m(i.adler, w.pending_buf, w.pending - b, b)), S === 0 && (w.status = 103);
1531
1531
  } else w.status = 103;
1532
1532
  if (w.status === 103 && (w.gzhead.hcrc ? (w.pending + 2 > w.pending_buf_size && F(i), w.pending + 2 <= w.pending_buf_size && (J(w, 255 & i.adler), J(w, i.adler >> 8 & 255), i.adler = 0, w.status = N)) : w.status = N), w.pending !== 0) {
1533
- if (F(i), i.avail_out === 0) return w.last_flush = -1, h;
1533
+ if (F(i), i.avail_out === 0) return w.last_flush = -1, c;
1534
1534
  } else if (i.avail_in === 0 && W(O) <= W(P) && O !== p) return rt(i, -5);
1535
1535
  if (w.status === 666 && i.avail_in !== 0) return rt(i, -5);
1536
- if (i.avail_in !== 0 || w.lookahead !== 0 || O !== y && w.status !== 666) {
1536
+ if (i.avail_in !== 0 || w.lookahead !== 0 || O !== g && w.status !== 666) {
1537
1537
  var $ = w.strategy === 2 ? function(R, H) {
1538
1538
  for (var q; ; ) {
1539
1539
  if (R.lookahead === 0 && (lt(R), R.lookahead === 0)) {
1540
- if (H === y) return l;
1540
+ if (H === g) return l;
1541
1541
  break;
1542
1542
  }
1543
1543
  if (R.match_length = 0, q = s._tr_tally(R, 0, R.window[R.strstart]), R.lookahead--, R.strstart++, q && (I(R, !1), R.strm.avail_out === 0)) return l;
@@ -1546,7 +1546,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1546
1546
  }(w, O) : w.strategy === 3 ? function(R, H) {
1547
1547
  for (var q, G, K, ot, st = R.window; ; ) {
1548
1548
  if (R.lookahead <= Z) {
1549
- if (lt(R), R.lookahead <= Z && H === y) return l;
1549
+ if (lt(R), R.lookahead <= Z && H === g) return l;
1550
1550
  if (R.lookahead === 0) break;
1551
1551
  }
1552
1552
  if (R.match_length = 0, R.lookahead >= z && 0 < R.strstart && (G = st[K = R.strstart - 1]) === st[++K] && G === st[++K] && G === st[++K]) {
@@ -1560,21 +1560,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1560
1560
  }
1561
1561
  return R.insert = 0, H === p ? (I(R, !0), R.strm.avail_out === 0 ? et : U) : R.last_lit && (I(R, !1), R.strm.avail_out === 0) ? l : D;
1562
1562
  }(w, O) : a[w.level].func(w, O);
1563
- if ($ !== et && $ !== U || (w.status = 666), $ === l || $ === et) return i.avail_out === 0 && (w.last_flush = -1), h;
1564
- if ($ === D && (O === 1 ? s._tr_align(w) : O !== 5 && (s._tr_stored_block(w, 0, 0, !1), O === 3 && (tt(w.head), w.lookahead === 0 && (w.strstart = 0, w.block_start = 0, w.insert = 0))), F(i), i.avail_out === 0)) return w.last_flush = -1, h;
1563
+ if ($ !== et && $ !== U || (w.status = 666), $ === l || $ === et) return i.avail_out === 0 && (w.last_flush = -1), c;
1564
+ if ($ === D && (O === 1 ? s._tr_align(w) : O !== 5 && (s._tr_stored_block(w, 0, 0, !1), O === 3 && (tt(w.head), w.lookahead === 0 && (w.strstart = 0, w.block_start = 0, w.insert = 0))), F(i), i.avail_out === 0)) return w.last_flush = -1, c;
1565
1565
  }
1566
- return O !== p ? h : w.wrap <= 0 ? 1 : (w.wrap === 2 ? (J(w, 255 & i.adler), J(w, i.adler >> 8 & 255), J(w, i.adler >> 16 & 255), J(w, i.adler >> 24 & 255), J(w, 255 & i.total_in), J(w, i.total_in >> 8 & 255), J(w, i.total_in >> 16 & 255), J(w, i.total_in >> 24 & 255)) : (Y(w, i.adler >>> 16), Y(w, 65535 & i.adler)), F(i), 0 < w.wrap && (w.wrap = -w.wrap), w.pending !== 0 ? h : 1);
1566
+ return O !== p ? c : w.wrap <= 0 ? 1 : (w.wrap === 2 ? (J(w, 255 & i.adler), J(w, i.adler >> 8 & 255), J(w, i.adler >> 16 & 255), J(w, i.adler >> 24 & 255), J(w, 255 & i.total_in), J(w, i.total_in >> 8 & 255), J(w, i.total_in >> 16 & 255), J(w, i.total_in >> 24 & 255)) : (Y(w, i.adler >>> 16), Y(w, 65535 & i.adler)), F(i), 0 < w.wrap && (w.wrap = -w.wrap), w.pending !== 0 ? c : 1);
1567
1567
  }, n.deflateEnd = function(i) {
1568
1568
  var O;
1569
- return i && i.state ? (O = i.state.status) !== k && O !== 69 && O !== 73 && O !== 91 && O !== 103 && O !== N && O !== 666 ? rt(i, b) : (i.state = null, O === N ? rt(i, -3) : h) : b;
1569
+ return i && i.state ? (O = i.state.status) !== k && O !== 69 && O !== 73 && O !== 91 && O !== 103 && O !== N && O !== 666 ? rt(i, y) : (i.state = null, O === N ? rt(i, -3) : c) : y;
1570
1570
  }, n.deflateSetDictionary = function(i, O) {
1571
- var P, w, g, S, M, $, R, H, q = O.length;
1572
- if (!i || !i.state || (S = (P = i.state).wrap) === 2 || S === 1 && P.status !== k || P.lookahead) return b;
1573
- for (S === 1 && (i.adler = c(i.adler, O, q, 0)), P.wrap = 0, q >= P.w_size && (S === 0 && (tt(P.head), P.strstart = 0, P.block_start = 0, P.insert = 0), H = new o.Buf8(P.w_size), o.arraySet(H, O, q - P.w_size, P.w_size, 0), O = H, q = P.w_size), M = i.avail_in, $ = i.next_in, R = i.input, i.avail_in = q, i.next_in = 0, i.input = O, lt(P); P.lookahead >= z; ) {
1574
- for (w = P.strstart, g = P.lookahead - (z - 1); P.ins_h = (P.ins_h << P.hash_shift ^ P.window[w + z - 1]) & P.hash_mask, P.prev[w & P.w_mask] = P.head[P.ins_h], P.head[P.ins_h] = w, w++, --g; ) ;
1571
+ var P, w, b, S, M, $, R, H, q = O.length;
1572
+ if (!i || !i.state || (S = (P = i.state).wrap) === 2 || S === 1 && P.status !== k || P.lookahead) return y;
1573
+ for (S === 1 && (i.adler = h(i.adler, O, q, 0)), P.wrap = 0, q >= P.w_size && (S === 0 && (tt(P.head), P.strstart = 0, P.block_start = 0, P.insert = 0), H = new o.Buf8(P.w_size), o.arraySet(H, O, q - P.w_size, P.w_size, 0), O = H, q = P.w_size), M = i.avail_in, $ = i.next_in, R = i.input, i.avail_in = q, i.next_in = 0, i.input = O, lt(P); P.lookahead >= z; ) {
1574
+ for (w = P.strstart, b = P.lookahead - (z - 1); P.ins_h = (P.ins_h << P.hash_shift ^ P.window[w + z - 1]) & P.hash_mask, P.prev[w & P.w_mask] = P.head[P.ins_h], P.head[P.ins_h] = w, w++, --b; ) ;
1575
1575
  P.strstart = w, P.lookahead = z - 1, lt(P);
1576
1576
  }
1577
- return P.strstart += P.lookahead, P.block_start = P.strstart, P.insert = P.lookahead, P.lookahead = 0, P.match_length = P.prev_length = z - 1, P.match_available = 0, i.next_in = $, i.input = R, i.avail_in = M, P.wrap = S, h;
1577
+ return P.strstart += P.lookahead, P.block_start = P.strstart, P.insert = P.lookahead, P.lookahead = 0, P.match_length = P.prev_length = z - 1, P.match_available = 0, i.next_in = $, i.input = R, i.avail_in = M, P.wrap = S, c;
1578
1578
  }, n.deflateInfo = "pako deflate (from Nodeca project)";
1579
1579
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(t, r, n) {
1580
1580
  r.exports = function() {
@@ -1582,12 +1582,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1582
1582
  };
1583
1583
  }, {}], 48: [function(t, r, n) {
1584
1584
  r.exports = function(a, o) {
1585
- var s, c, m, u, y, p, h, b, d, _, f, v, E, A, T, L, B, j, z, Z, Q, k, N, l, D;
1586
- s = a.state, c = a.next_in, l = a.input, m = c + (a.avail_in - 5), u = a.next_out, D = a.output, y = u - (o - a.avail_out), p = u + (a.avail_out - 257), h = s.dmax, b = s.wsize, d = s.whave, _ = s.wnext, f = s.window, v = s.hold, E = s.bits, A = s.lencode, T = s.distcode, L = (1 << s.lenbits) - 1, B = (1 << s.distbits) - 1;
1585
+ var s, h, m, f, g, p, c, y, d, _, u, v, E, A, T, L, B, j, z, Z, Q, k, N, l, D;
1586
+ s = a.state, h = a.next_in, l = a.input, m = h + (a.avail_in - 5), f = a.next_out, D = a.output, g = f - (o - a.avail_out), p = f + (a.avail_out - 257), c = s.dmax, y = s.wsize, d = s.whave, _ = s.wnext, u = s.window, v = s.hold, E = s.bits, A = s.lencode, T = s.distcode, L = (1 << s.lenbits) - 1, B = (1 << s.distbits) - 1;
1587
1587
  t: do {
1588
- E < 15 && (v += l[c++] << E, E += 8, v += l[c++] << E, E += 8), j = A[v & L];
1588
+ E < 15 && (v += l[h++] << E, E += 8, v += l[h++] << E, E += 8), j = A[v & L];
1589
1589
  e: for (; ; ) {
1590
- if (v >>>= z = j >>> 24, E -= z, (z = j >>> 16 & 255) === 0) D[u++] = 65535 & j;
1590
+ if (v >>>= z = j >>> 24, E -= z, (z = j >>> 16 & 255) === 0) D[f++] = 65535 & j;
1591
1591
  else {
1592
1592
  if (!(16 & z)) {
1593
1593
  if (!(64 & z)) {
@@ -1601,7 +1601,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1601
1601
  a.msg = "invalid literal/length code", s.mode = 30;
1602
1602
  break t;
1603
1603
  }
1604
- Z = 65535 & j, (z &= 15) && (E < z && (v += l[c++] << E, E += 8), Z += v & (1 << z) - 1, v >>>= z, E -= z), E < 15 && (v += l[c++] << E, E += 8, v += l[c++] << E, E += 8), j = T[v & B];
1604
+ Z = 65535 & j, (z &= 15) && (E < z && (v += l[h++] << E, E += 8), Z += v & (1 << z) - 1, v >>>= z, E -= z), E < 15 && (v += l[h++] << E, E += 8, v += l[h++] << E, E += 8), j = T[v & B];
1605
1605
  r: for (; ; ) {
1606
1606
  if (v >>>= z = j >>> 24, E -= z, !(16 & (z = j >>> 16 & 255))) {
1607
1607
  if (!(64 & z)) {
@@ -1611,49 +1611,49 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1611
1611
  a.msg = "invalid distance code", s.mode = 30;
1612
1612
  break t;
1613
1613
  }
1614
- if (Q = 65535 & j, E < (z &= 15) && (v += l[c++] << E, (E += 8) < z && (v += l[c++] << E, E += 8)), h < (Q += v & (1 << z) - 1)) {
1614
+ if (Q = 65535 & j, E < (z &= 15) && (v += l[h++] << E, (E += 8) < z && (v += l[h++] << E, E += 8)), c < (Q += v & (1 << z) - 1)) {
1615
1615
  a.msg = "invalid distance too far back", s.mode = 30;
1616
1616
  break t;
1617
1617
  }
1618
- if (v >>>= z, E -= z, (z = u - y) < Q) {
1618
+ if (v >>>= z, E -= z, (z = f - g) < Q) {
1619
1619
  if (d < (z = Q - z) && s.sane) {
1620
1620
  a.msg = "invalid distance too far back", s.mode = 30;
1621
1621
  break t;
1622
1622
  }
1623
- if (N = f, (k = 0) === _) {
1624
- if (k += b - z, z < Z) {
1625
- for (Z -= z; D[u++] = f[k++], --z; ) ;
1626
- k = u - Q, N = D;
1623
+ if (N = u, (k = 0) === _) {
1624
+ if (k += y - z, z < Z) {
1625
+ for (Z -= z; D[f++] = u[k++], --z; ) ;
1626
+ k = f - Q, N = D;
1627
1627
  }
1628
1628
  } else if (_ < z) {
1629
- if (k += b + _ - z, (z -= _) < Z) {
1630
- for (Z -= z; D[u++] = f[k++], --z; ) ;
1629
+ if (k += y + _ - z, (z -= _) < Z) {
1630
+ for (Z -= z; D[f++] = u[k++], --z; ) ;
1631
1631
  if (k = 0, _ < Z) {
1632
- for (Z -= z = _; D[u++] = f[k++], --z; ) ;
1633
- k = u - Q, N = D;
1632
+ for (Z -= z = _; D[f++] = u[k++], --z; ) ;
1633
+ k = f - Q, N = D;
1634
1634
  }
1635
1635
  }
1636
1636
  } else if (k += _ - z, z < Z) {
1637
- for (Z -= z; D[u++] = f[k++], --z; ) ;
1638
- k = u - Q, N = D;
1637
+ for (Z -= z; D[f++] = u[k++], --z; ) ;
1638
+ k = f - Q, N = D;
1639
1639
  }
1640
- for (; 2 < Z; ) D[u++] = N[k++], D[u++] = N[k++], D[u++] = N[k++], Z -= 3;
1641
- Z && (D[u++] = N[k++], 1 < Z && (D[u++] = N[k++]));
1640
+ for (; 2 < Z; ) D[f++] = N[k++], D[f++] = N[k++], D[f++] = N[k++], Z -= 3;
1641
+ Z && (D[f++] = N[k++], 1 < Z && (D[f++] = N[k++]));
1642
1642
  } else {
1643
- for (k = u - Q; D[u++] = D[k++], D[u++] = D[k++], D[u++] = D[k++], 2 < (Z -= 3); ) ;
1644
- Z && (D[u++] = D[k++], 1 < Z && (D[u++] = D[k++]));
1643
+ for (k = f - Q; D[f++] = D[k++], D[f++] = D[k++], D[f++] = D[k++], 2 < (Z -= 3); ) ;
1644
+ Z && (D[f++] = D[k++], 1 < Z && (D[f++] = D[k++]));
1645
1645
  }
1646
1646
  break;
1647
1647
  }
1648
1648
  }
1649
1649
  break;
1650
1650
  }
1651
- } while (c < m && u < p);
1652
- c -= Z = E >> 3, v &= (1 << (E -= Z << 3)) - 1, a.next_in = c, a.next_out = u, a.avail_in = c < m ? m - c + 5 : 5 - (c - m), a.avail_out = u < p ? p - u + 257 : 257 - (u - p), s.hold = v, s.bits = E;
1651
+ } while (h < m && f < p);
1652
+ h -= Z = E >> 3, v &= (1 << (E -= Z << 3)) - 1, a.next_in = h, a.next_out = f, a.avail_in = h < m ? m - h + 5 : 5 - (h - m), a.avail_out = f < p ? p - f + 257 : 257 - (f - p), s.hold = v, s.bits = E;
1653
1653
  };
1654
1654
  }, {}], 49: [function(t, r, n) {
1655
- var a = t("../utils/common"), o = t("./adler32"), s = t("./crc32"), c = t("./inffast"), m = t("./inftrees"), u = 1, y = 2, p = 0, h = -2, b = 1, d = 852, _ = 592;
1656
- function f(k) {
1655
+ var a = t("../utils/common"), o = t("./adler32"), s = t("./crc32"), h = t("./inffast"), m = t("./inftrees"), f = 1, g = 2, p = 0, c = -2, y = 1, d = 852, _ = 592;
1656
+ function u(k) {
1657
1657
  return (k >>> 24 & 255) + (k >>> 8 & 65280) + ((65280 & k) << 8) + ((255 & k) << 24);
1658
1658
  }
1659
1659
  function v() {
@@ -1661,19 +1661,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1661
1661
  }
1662
1662
  function E(k) {
1663
1663
  var N;
1664
- return k && k.state ? (N = k.state, k.total_in = k.total_out = N.total = 0, k.msg = "", N.wrap && (k.adler = 1 & N.wrap), N.mode = b, N.last = 0, N.havedict = 0, N.dmax = 32768, N.head = null, N.hold = 0, N.bits = 0, N.lencode = N.lendyn = new a.Buf32(d), N.distcode = N.distdyn = new a.Buf32(_), N.sane = 1, N.back = -1, p) : h;
1664
+ return k && k.state ? (N = k.state, k.total_in = k.total_out = N.total = 0, k.msg = "", N.wrap && (k.adler = 1 & N.wrap), N.mode = y, N.last = 0, N.havedict = 0, N.dmax = 32768, N.head = null, N.hold = 0, N.bits = 0, N.lencode = N.lendyn = new a.Buf32(d), N.distcode = N.distdyn = new a.Buf32(_), N.sane = 1, N.back = -1, p) : c;
1665
1665
  }
1666
1666
  function A(k) {
1667
1667
  var N;
1668
- return k && k.state ? ((N = k.state).wsize = 0, N.whave = 0, N.wnext = 0, E(k)) : h;
1668
+ return k && k.state ? ((N = k.state).wsize = 0, N.whave = 0, N.wnext = 0, E(k)) : c;
1669
1669
  }
1670
1670
  function T(k, N) {
1671
1671
  var l, D;
1672
- return k && k.state ? (D = k.state, N < 0 ? (l = 0, N = -N) : (l = 1 + (N >> 4), N < 48 && (N &= 15)), N && (N < 8 || 15 < N) ? h : (D.window !== null && D.wbits !== N && (D.window = null), D.wrap = l, D.wbits = N, A(k))) : h;
1672
+ return k && k.state ? (D = k.state, N < 0 ? (l = 0, N = -N) : (l = 1 + (N >> 4), N < 48 && (N &= 15)), N && (N < 8 || 15 < N) ? c : (D.window !== null && D.wbits !== N && (D.window = null), D.wrap = l, D.wbits = N, A(k))) : c;
1673
1673
  }
1674
1674
  function L(k, N) {
1675
1675
  var l, D;
1676
- return k ? (D = new v(), (k.state = D).window = null, (l = T(k, N)) !== p && (k.state = null), l) : h;
1676
+ return k ? (D = new v(), (k.state = D).window = null, (l = T(k, N)) !== p && (k.state = null), l) : c;
1677
1677
  }
1678
1678
  var B, j, z = !0;
1679
1679
  function Z(k) {
@@ -1683,8 +1683,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1683
1683
  for (; N < 256; ) k.lens[N++] = 9;
1684
1684
  for (; N < 280; ) k.lens[N++] = 7;
1685
1685
  for (; N < 288; ) k.lens[N++] = 8;
1686
- for (m(u, k.lens, 0, 288, B, 0, k.work, { bits: 9 }), N = 0; N < 32; ) k.lens[N++] = 5;
1687
- m(y, k.lens, 0, 32, j, 0, k.work, { bits: 5 }), z = !1;
1686
+ for (m(f, k.lens, 0, 288, B, 0, k.work, { bits: 9 }), N = 0; N < 32; ) k.lens[N++] = 5;
1687
+ m(g, k.lens, 0, 32, j, 0, k.work, { bits: 5 }), z = !1;
1688
1688
  }
1689
1689
  k.lencode = B, k.lenbits = 9, k.distcode = j, k.distbits = 5;
1690
1690
  }
@@ -1695,11 +1695,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1695
1695
  n.inflateReset = A, n.inflateReset2 = T, n.inflateResetKeep = E, n.inflateInit = function(k) {
1696
1696
  return L(k, 15);
1697
1697
  }, n.inflateInit2 = L, n.inflate = function(k, N) {
1698
- var l, D, et, U, rt, W, tt, F, I, J, Y, V, lt, ut, it, at, dt, ct, bt, pt, i, O, P, w, g = 0, S = new a.Buf8(4), M = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
1699
- if (!k || !k.state || !k.output || !k.input && k.avail_in !== 0) return h;
1698
+ var l, D, et, U, rt, W, tt, F, I, J, Y, V, lt, ut, it, at, dt, ct, bt, pt, i, O, P, w, b = 0, S = new a.Buf8(4), M = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
1699
+ if (!k || !k.state || !k.output || !k.input && k.avail_in !== 0) return c;
1700
1700
  (l = k.state).mode === 12 && (l.mode = 13), rt = k.next_out, et = k.output, tt = k.avail_out, U = k.next_in, D = k.input, W = k.avail_in, F = l.hold, I = l.bits, J = W, Y = tt, O = p;
1701
1701
  t: for (; ; ) switch (l.mode) {
1702
- case b:
1702
+ case y:
1703
1703
  if (l.wrap === 0) {
1704
1704
  l.mode = 13;
1705
1705
  break;
@@ -1798,7 +1798,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1798
1798
  if (W === 0) break t;
1799
1799
  W--, F += D[U++] << I, I += 8;
1800
1800
  }
1801
- k.adler = l.check = f(F), I = F = 0, l.mode = 11;
1801
+ k.adler = l.check = u(F), I = F = 0, l.mode = 11;
1802
1802
  case 11:
1803
1803
  if (l.havedict === 0) return k.next_out = rt, k.avail_out = tt, k.next_in = U, k.avail_in = W, l.hold = F, l.bits = I, 2;
1804
1804
  k.adler = l.check = 1, l.mode = 12;
@@ -1875,7 +1875,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1875
1875
  l.have = 0, l.mode = 19;
1876
1876
  case 19:
1877
1877
  for (; l.have < l.nlen + l.ndist; ) {
1878
- for (; at = (g = l.lencode[F & (1 << l.lenbits) - 1]) >>> 16 & 255, dt = 65535 & g, !((it = g >>> 24) <= I); ) {
1878
+ for (; at = (b = l.lencode[F & (1 << l.lenbits) - 1]) >>> 16 & 255, dt = 65535 & b, !((it = b >>> 24) <= I); ) {
1879
1879
  if (W === 0) break t;
1880
1880
  W--, F += D[U++] << I, I += 8;
1881
1881
  }
@@ -1916,11 +1916,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1916
1916
  k.msg = "invalid code -- missing end-of-block", l.mode = 30;
1917
1917
  break;
1918
1918
  }
1919
- if (l.lenbits = 9, P = { bits: l.lenbits }, O = m(u, l.lens, 0, l.nlen, l.lencode, 0, l.work, P), l.lenbits = P.bits, O) {
1919
+ if (l.lenbits = 9, P = { bits: l.lenbits }, O = m(f, l.lens, 0, l.nlen, l.lencode, 0, l.work, P), l.lenbits = P.bits, O) {
1920
1920
  k.msg = "invalid literal/lengths set", l.mode = 30;
1921
1921
  break;
1922
1922
  }
1923
- if (l.distbits = 6, l.distcode = l.distdyn, P = { bits: l.distbits }, O = m(y, l.lens, l.nlen, l.ndist, l.distcode, 0, l.work, P), l.distbits = P.bits, O) {
1923
+ if (l.distbits = 6, l.distcode = l.distdyn, P = { bits: l.distbits }, O = m(g, l.lens, l.nlen, l.ndist, l.distcode, 0, l.work, P), l.distbits = P.bits, O) {
1924
1924
  k.msg = "invalid distances set", l.mode = 30;
1925
1925
  break;
1926
1926
  }
@@ -1929,15 +1929,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1929
1929
  l.mode = 21;
1930
1930
  case 21:
1931
1931
  if (6 <= W && 258 <= tt) {
1932
- k.next_out = rt, k.avail_out = tt, k.next_in = U, k.avail_in = W, l.hold = F, l.bits = I, c(k, Y), rt = k.next_out, et = k.output, tt = k.avail_out, U = k.next_in, D = k.input, W = k.avail_in, F = l.hold, I = l.bits, l.mode === 12 && (l.back = -1);
1932
+ k.next_out = rt, k.avail_out = tt, k.next_in = U, k.avail_in = W, l.hold = F, l.bits = I, h(k, Y), rt = k.next_out, et = k.output, tt = k.avail_out, U = k.next_in, D = k.input, W = k.avail_in, F = l.hold, I = l.bits, l.mode === 12 && (l.back = -1);
1933
1933
  break;
1934
1934
  }
1935
- for (l.back = 0; at = (g = l.lencode[F & (1 << l.lenbits) - 1]) >>> 16 & 255, dt = 65535 & g, !((it = g >>> 24) <= I); ) {
1935
+ for (l.back = 0; at = (b = l.lencode[F & (1 << l.lenbits) - 1]) >>> 16 & 255, dt = 65535 & b, !((it = b >>> 24) <= I); ) {
1936
1936
  if (W === 0) break t;
1937
1937
  W--, F += D[U++] << I, I += 8;
1938
1938
  }
1939
1939
  if (at && !(240 & at)) {
1940
- for (ct = it, bt = at, pt = dt; at = (g = l.lencode[pt + ((F & (1 << ct + bt) - 1) >> ct)]) >>> 16 & 255, dt = 65535 & g, !(ct + (it = g >>> 24) <= I); ) {
1940
+ for (ct = it, bt = at, pt = dt; at = (b = l.lencode[pt + ((F & (1 << ct + bt) - 1) >> ct)]) >>> 16 & 255, dt = 65535 & b, !(ct + (it = b >>> 24) <= I); ) {
1941
1941
  if (W === 0) break t;
1942
1942
  W--, F += D[U++] << I, I += 8;
1943
1943
  }
@@ -1966,12 +1966,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1966
1966
  }
1967
1967
  l.was = l.length, l.mode = 23;
1968
1968
  case 23:
1969
- for (; at = (g = l.distcode[F & (1 << l.distbits) - 1]) >>> 16 & 255, dt = 65535 & g, !((it = g >>> 24) <= I); ) {
1969
+ for (; at = (b = l.distcode[F & (1 << l.distbits) - 1]) >>> 16 & 255, dt = 65535 & b, !((it = b >>> 24) <= I); ) {
1970
1970
  if (W === 0) break t;
1971
1971
  W--, F += D[U++] << I, I += 8;
1972
1972
  }
1973
1973
  if (!(240 & at)) {
1974
- for (ct = it, bt = at, pt = dt; at = (g = l.distcode[pt + ((F & (1 << ct + bt) - 1) >> ct)]) >>> 16 & 255, dt = 65535 & g, !(ct + (it = g >>> 24) <= I); ) {
1974
+ for (ct = it, bt = at, pt = dt; at = (b = l.distcode[pt + ((F & (1 << ct + bt) - 1) >> ct)]) >>> 16 & 255, dt = 65535 & b, !(ct + (it = b >>> 24) <= I); ) {
1975
1975
  if (W === 0) break t;
1976
1976
  W--, F += D[U++] << I, I += 8;
1977
1977
  }
@@ -2017,7 +2017,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2017
2017
  if (W === 0) break t;
2018
2018
  W--, F |= D[U++] << I, I += 8;
2019
2019
  }
2020
- if (Y -= tt, k.total_out += Y, l.total += Y, Y && (k.adler = l.check = l.flags ? s(l.check, et, Y, rt - Y) : o(l.check, et, Y, rt - Y)), Y = tt, (l.flags ? F : f(F)) !== l.check) {
2020
+ if (Y -= tt, k.total_out += Y, l.total += Y, Y && (k.adler = l.check = l.flags ? s(l.check, et, Y, rt - Y) : o(l.check, et, Y, rt - Y)), Y = tt, (l.flags ? F : u(F)) !== l.check) {
2021
2021
  k.msg = "incorrect data check", l.mode = 30;
2022
2022
  break;
2023
2023
  }
@@ -2047,127 +2047,127 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2047
2047
  return -4;
2048
2048
  case 32:
2049
2049
  default:
2050
- return h;
2050
+ return c;
2051
2051
  }
2052
2052
  return k.next_out = rt, k.avail_out = tt, k.next_in = U, k.avail_in = W, l.hold = F, l.bits = I, (l.wsize || Y !== k.avail_out && l.mode < 30 && (l.mode < 27 || N !== 4)) && Q(k, k.output, k.next_out, Y - k.avail_out) ? (l.mode = 31, -4) : (J -= k.avail_in, Y -= k.avail_out, k.total_in += J, k.total_out += Y, l.total += Y, l.wrap && Y && (k.adler = l.check = l.flags ? s(l.check, et, Y, k.next_out - Y) : o(l.check, et, Y, k.next_out - Y)), k.data_type = l.bits + (l.last ? 64 : 0) + (l.mode === 12 ? 128 : 0) + (l.mode === 20 || l.mode === 15 ? 256 : 0), (J == 0 && Y === 0 || N === 4) && O === p && (O = -5), O);
2053
2053
  }, n.inflateEnd = function(k) {
2054
- if (!k || !k.state) return h;
2054
+ if (!k || !k.state) return c;
2055
2055
  var N = k.state;
2056
2056
  return N.window && (N.window = null), k.state = null, p;
2057
2057
  }, n.inflateGetHeader = function(k, N) {
2058
2058
  var l;
2059
- return k && k.state && 2 & (l = k.state).wrap ? ((l.head = N).done = !1, p) : h;
2059
+ return k && k.state && 2 & (l = k.state).wrap ? ((l.head = N).done = !1, p) : c;
2060
2060
  }, n.inflateSetDictionary = function(k, N) {
2061
2061
  var l, D = N.length;
2062
- return k && k.state ? (l = k.state).wrap !== 0 && l.mode !== 11 ? h : l.mode === 11 && o(1, N, D, 0) !== l.check ? -3 : Q(k, N, D, D) ? (l.mode = 31, -4) : (l.havedict = 1, p) : h;
2062
+ return k && k.state ? (l = k.state).wrap !== 0 && l.mode !== 11 ? c : l.mode === 11 && o(1, N, D, 0) !== l.check ? -3 : Q(k, N, D, D) ? (l.mode = 31, -4) : (l.havedict = 1, p) : c;
2063
2063
  }, n.inflateInfo = "pako inflate (from Nodeca project)";
2064
2064
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, r, n) {
2065
- var a = t("../utils/common"), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], s = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], c = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], m = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
2066
- r.exports = function(u, y, p, h, b, d, _, f) {
2067
- var v, E, A, T, L, B, j, z, Z, Q = f.bits, k = 0, N = 0, l = 0, D = 0, et = 0, U = 0, rt = 0, W = 0, tt = 0, F = 0, I = null, J = 0, Y = new a.Buf16(16), V = new a.Buf16(16), lt = null, ut = 0;
2065
+ var a = t("../utils/common"), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], s = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], h = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], m = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
2066
+ r.exports = function(f, g, p, c, y, d, _, u) {
2067
+ var v, E, A, T, L, B, j, z, Z, Q = u.bits, k = 0, N = 0, l = 0, D = 0, et = 0, U = 0, rt = 0, W = 0, tt = 0, F = 0, I = null, J = 0, Y = new a.Buf16(16), V = new a.Buf16(16), lt = null, ut = 0;
2068
2068
  for (k = 0; k <= 15; k++) Y[k] = 0;
2069
- for (N = 0; N < h; N++) Y[y[p + N]]++;
2069
+ for (N = 0; N < c; N++) Y[g[p + N]]++;
2070
2070
  for (et = Q, D = 15; 1 <= D && Y[D] === 0; D--) ;
2071
- if (D < et && (et = D), D === 0) return b[d++] = 20971520, b[d++] = 20971520, f.bits = 1, 0;
2071
+ if (D < et && (et = D), D === 0) return y[d++] = 20971520, y[d++] = 20971520, u.bits = 1, 0;
2072
2072
  for (l = 1; l < D && Y[l] === 0; l++) ;
2073
2073
  for (et < l && (et = l), k = W = 1; k <= 15; k++) if (W <<= 1, (W -= Y[k]) < 0) return -1;
2074
- if (0 < W && (u === 0 || D !== 1)) return -1;
2074
+ if (0 < W && (f === 0 || D !== 1)) return -1;
2075
2075
  for (V[1] = 0, k = 1; k < 15; k++) V[k + 1] = V[k] + Y[k];
2076
- for (N = 0; N < h; N++) y[p + N] !== 0 && (_[V[y[p + N]]++] = N);
2077
- if (B = u === 0 ? (I = lt = _, 19) : u === 1 ? (I = o, J -= 257, lt = s, ut -= 257, 256) : (I = c, lt = m, -1), k = l, L = d, rt = N = F = 0, A = -1, T = (tt = 1 << (U = et)) - 1, u === 1 && 852 < tt || u === 2 && 592 < tt) return 1;
2076
+ for (N = 0; N < c; N++) g[p + N] !== 0 && (_[V[g[p + N]]++] = N);
2077
+ if (B = f === 0 ? (I = lt = _, 19) : f === 1 ? (I = o, J -= 257, lt = s, ut -= 257, 256) : (I = h, lt = m, -1), k = l, L = d, rt = N = F = 0, A = -1, T = (tt = 1 << (U = et)) - 1, f === 1 && 852 < tt || f === 2 && 592 < tt) return 1;
2078
2078
  for (; ; ) {
2079
- for (j = k - rt, Z = _[N] < B ? (z = 0, _[N]) : _[N] > B ? (z = lt[ut + _[N]], I[J + _[N]]) : (z = 96, 0), v = 1 << k - rt, l = E = 1 << U; b[L + (F >> rt) + (E -= v)] = j << 24 | z << 16 | Z | 0, E !== 0; ) ;
2079
+ for (j = k - rt, Z = _[N] < B ? (z = 0, _[N]) : _[N] > B ? (z = lt[ut + _[N]], I[J + _[N]]) : (z = 96, 0), v = 1 << k - rt, l = E = 1 << U; y[L + (F >> rt) + (E -= v)] = j << 24 | z << 16 | Z | 0, E !== 0; ) ;
2080
2080
  for (v = 1 << k - 1; F & v; ) v >>= 1;
2081
2081
  if (v !== 0 ? (F &= v - 1, F += v) : F = 0, N++, --Y[k] == 0) {
2082
2082
  if (k === D) break;
2083
- k = y[p + _[N]];
2083
+ k = g[p + _[N]];
2084
2084
  }
2085
2085
  if (et < k && (F & T) !== A) {
2086
2086
  for (rt === 0 && (rt = et), L += l, W = 1 << (U = k - rt); U + rt < D && !((W -= Y[U + rt]) <= 0); ) U++, W <<= 1;
2087
- if (tt += 1 << U, u === 1 && 852 < tt || u === 2 && 592 < tt) return 1;
2088
- b[A = F & T] = et << 24 | U << 16 | L - d | 0;
2087
+ if (tt += 1 << U, f === 1 && 852 < tt || f === 2 && 592 < tt) return 1;
2088
+ y[A = F & T] = et << 24 | U << 16 | L - d | 0;
2089
2089
  }
2090
2090
  }
2091
- return F !== 0 && (b[L + F] = k - rt << 24 | 64 << 16 | 0), f.bits = et, 0;
2091
+ return F !== 0 && (y[L + F] = k - rt << 24 | 64 << 16 | 0), u.bits = et, 0;
2092
2092
  };
2093
2093
  }, { "../utils/common": 41 }], 51: [function(t, r, n) {
2094
2094
  r.exports = { 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" };
2095
2095
  }, {}], 52: [function(t, r, n) {
2096
2096
  var a = t("../utils/common"), o = 0, s = 1;
2097
- function c(g) {
2098
- for (var S = g.length; 0 <= --S; ) g[S] = 0;
2097
+ function h(b) {
2098
+ for (var S = b.length; 0 <= --S; ) b[S] = 0;
2099
2099
  }
2100
- var m = 0, u = 29, y = 256, p = y + 1 + u, h = 30, b = 19, d = 2 * p + 1, _ = 15, f = 16, v = 7, E = 256, A = 16, T = 17, L = 18, B = [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], j = [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], z = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], Z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Q = new Array(2 * (p + 2));
2101
- c(Q);
2102
- var k = new Array(2 * h);
2103
- c(k);
2100
+ var m = 0, f = 29, g = 256, p = g + 1 + f, c = 30, y = 19, d = 2 * p + 1, _ = 15, u = 16, v = 7, E = 256, A = 16, T = 17, L = 18, B = [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], j = [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], z = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], Z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Q = new Array(2 * (p + 2));
2101
+ h(Q);
2102
+ var k = new Array(2 * c);
2103
+ h(k);
2104
2104
  var N = new Array(512);
2105
- c(N);
2105
+ h(N);
2106
2106
  var l = new Array(256);
2107
- c(l);
2108
- var D = new Array(u);
2109
- c(D);
2110
- var et, U, rt, W = new Array(h);
2111
- function tt(g, S, M, $, R) {
2112
- this.static_tree = g, this.extra_bits = S, this.extra_base = M, this.elems = $, this.max_length = R, this.has_stree = g && g.length;
2107
+ h(l);
2108
+ var D = new Array(f);
2109
+ h(D);
2110
+ var et, U, rt, W = new Array(c);
2111
+ function tt(b, S, M, $, R) {
2112
+ this.static_tree = b, this.extra_bits = S, this.extra_base = M, this.elems = $, this.max_length = R, this.has_stree = b && b.length;
2113
2113
  }
2114
- function F(g, S) {
2115
- this.dyn_tree = g, this.max_code = 0, this.stat_desc = S;
2114
+ function F(b, S) {
2115
+ this.dyn_tree = b, this.max_code = 0, this.stat_desc = S;
2116
2116
  }
2117
- function I(g) {
2118
- return g < 256 ? N[g] : N[256 + (g >>> 7)];
2117
+ function I(b) {
2118
+ return b < 256 ? N[b] : N[256 + (b >>> 7)];
2119
2119
  }
2120
- function J(g, S) {
2121
- g.pending_buf[g.pending++] = 255 & S, g.pending_buf[g.pending++] = S >>> 8 & 255;
2120
+ function J(b, S) {
2121
+ b.pending_buf[b.pending++] = 255 & S, b.pending_buf[b.pending++] = S >>> 8 & 255;
2122
2122
  }
2123
- function Y(g, S, M) {
2124
- g.bi_valid > f - M ? (g.bi_buf |= S << g.bi_valid & 65535, J(g, g.bi_buf), g.bi_buf = S >> f - g.bi_valid, g.bi_valid += M - f) : (g.bi_buf |= S << g.bi_valid & 65535, g.bi_valid += M);
2123
+ function Y(b, S, M) {
2124
+ b.bi_valid > u - M ? (b.bi_buf |= S << b.bi_valid & 65535, J(b, b.bi_buf), b.bi_buf = S >> u - b.bi_valid, b.bi_valid += M - u) : (b.bi_buf |= S << b.bi_valid & 65535, b.bi_valid += M);
2125
2125
  }
2126
- function V(g, S, M) {
2127
- Y(g, M[2 * S], M[2 * S + 1]);
2126
+ function V(b, S, M) {
2127
+ Y(b, M[2 * S], M[2 * S + 1]);
2128
2128
  }
2129
- function lt(g, S) {
2130
- for (var M = 0; M |= 1 & g, g >>>= 1, M <<= 1, 0 < --S; ) ;
2129
+ function lt(b, S) {
2130
+ for (var M = 0; M |= 1 & b, b >>>= 1, M <<= 1, 0 < --S; ) ;
2131
2131
  return M >>> 1;
2132
2132
  }
2133
- function ut(g, S, M) {
2133
+ function ut(b, S, M) {
2134
2134
  var $, R, H = new Array(_ + 1), q = 0;
2135
2135
  for ($ = 1; $ <= _; $++) H[$] = q = q + M[$ - 1] << 1;
2136
2136
  for (R = 0; R <= S; R++) {
2137
- var G = g[2 * R + 1];
2138
- G !== 0 && (g[2 * R] = lt(H[G]++, G));
2137
+ var G = b[2 * R + 1];
2138
+ G !== 0 && (b[2 * R] = lt(H[G]++, G));
2139
2139
  }
2140
2140
  }
2141
- function it(g) {
2141
+ function it(b) {
2142
2142
  var S;
2143
- for (S = 0; S < p; S++) g.dyn_ltree[2 * S] = 0;
2144
- for (S = 0; S < h; S++) g.dyn_dtree[2 * S] = 0;
2145
- for (S = 0; S < b; S++) g.bl_tree[2 * S] = 0;
2146
- g.dyn_ltree[2 * E] = 1, g.opt_len = g.static_len = 0, g.last_lit = g.matches = 0;
2143
+ for (S = 0; S < p; S++) b.dyn_ltree[2 * S] = 0;
2144
+ for (S = 0; S < c; S++) b.dyn_dtree[2 * S] = 0;
2145
+ for (S = 0; S < y; S++) b.bl_tree[2 * S] = 0;
2146
+ b.dyn_ltree[2 * E] = 1, b.opt_len = b.static_len = 0, b.last_lit = b.matches = 0;
2147
2147
  }
2148
- function at(g) {
2149
- 8 < g.bi_valid ? J(g, g.bi_buf) : 0 < g.bi_valid && (g.pending_buf[g.pending++] = g.bi_buf), g.bi_buf = 0, g.bi_valid = 0;
2148
+ function at(b) {
2149
+ 8 < b.bi_valid ? J(b, b.bi_buf) : 0 < b.bi_valid && (b.pending_buf[b.pending++] = b.bi_buf), b.bi_buf = 0, b.bi_valid = 0;
2150
2150
  }
2151
- function dt(g, S, M, $) {
2151
+ function dt(b, S, M, $) {
2152
2152
  var R = 2 * S, H = 2 * M;
2153
- return g[R] < g[H] || g[R] === g[H] && $[S] <= $[M];
2153
+ return b[R] < b[H] || b[R] === b[H] && $[S] <= $[M];
2154
2154
  }
2155
- function ct(g, S, M) {
2156
- for (var $ = g.heap[M], R = M << 1; R <= g.heap_len && (R < g.heap_len && dt(S, g.heap[R + 1], g.heap[R], g.depth) && R++, !dt(S, $, g.heap[R], g.depth)); ) g.heap[M] = g.heap[R], M = R, R <<= 1;
2157
- g.heap[M] = $;
2155
+ function ct(b, S, M) {
2156
+ for (var $ = b.heap[M], R = M << 1; R <= b.heap_len && (R < b.heap_len && dt(S, b.heap[R + 1], b.heap[R], b.depth) && R++, !dt(S, $, b.heap[R], b.depth)); ) b.heap[M] = b.heap[R], M = R, R <<= 1;
2157
+ b.heap[M] = $;
2158
2158
  }
2159
- function bt(g, S, M) {
2159
+ function bt(b, S, M) {
2160
2160
  var $, R, H, q, G = 0;
2161
- if (g.last_lit !== 0) for (; $ = g.pending_buf[g.d_buf + 2 * G] << 8 | g.pending_buf[g.d_buf + 2 * G + 1], R = g.pending_buf[g.l_buf + G], G++, $ === 0 ? V(g, R, S) : (V(g, (H = l[R]) + y + 1, S), (q = B[H]) !== 0 && Y(g, R -= D[H], q), V(g, H = I(--$), M), (q = j[H]) !== 0 && Y(g, $ -= W[H], q)), G < g.last_lit; ) ;
2162
- V(g, E, S);
2161
+ if (b.last_lit !== 0) for (; $ = b.pending_buf[b.d_buf + 2 * G] << 8 | b.pending_buf[b.d_buf + 2 * G + 1], R = b.pending_buf[b.l_buf + G], G++, $ === 0 ? V(b, R, S) : (V(b, (H = l[R]) + g + 1, S), (q = B[H]) !== 0 && Y(b, R -= D[H], q), V(b, H = I(--$), M), (q = j[H]) !== 0 && Y(b, $ -= W[H], q)), G < b.last_lit; ) ;
2162
+ V(b, E, S);
2163
2163
  }
2164
- function pt(g, S) {
2164
+ function pt(b, S) {
2165
2165
  var M, $, R, H = S.dyn_tree, q = S.stat_desc.static_tree, G = S.stat_desc.has_stree, K = S.stat_desc.elems, ot = -1;
2166
- for (g.heap_len = 0, g.heap_max = d, M = 0; M < K; M++) H[2 * M] !== 0 ? (g.heap[++g.heap_len] = ot = M, g.depth[M] = 0) : H[2 * M + 1] = 0;
2167
- for (; g.heap_len < 2; ) H[2 * (R = g.heap[++g.heap_len] = ot < 2 ? ++ot : 0)] = 1, g.depth[R] = 0, g.opt_len--, G && (g.static_len -= q[2 * R + 1]);
2168
- for (S.max_code = ot, M = g.heap_len >> 1; 1 <= M; M--) ct(g, H, M);
2169
- for (R = K; M = g.heap[1], g.heap[1] = g.heap[g.heap_len--], ct(g, H, 1), $ = g.heap[1], g.heap[--g.heap_max] = M, g.heap[--g.heap_max] = $, H[2 * R] = H[2 * M] + H[2 * $], g.depth[R] = (g.depth[M] >= g.depth[$] ? g.depth[M] : g.depth[$]) + 1, H[2 * M + 1] = H[2 * $ + 1] = R, g.heap[1] = R++, ct(g, H, 1), 2 <= g.heap_len; ) ;
2170
- g.heap[--g.heap_max] = g.heap[1], function(st, ft) {
2166
+ for (b.heap_len = 0, b.heap_max = d, M = 0; M < K; M++) H[2 * M] !== 0 ? (b.heap[++b.heap_len] = ot = M, b.depth[M] = 0) : H[2 * M + 1] = 0;
2167
+ for (; b.heap_len < 2; ) H[2 * (R = b.heap[++b.heap_len] = ot < 2 ? ++ot : 0)] = 1, b.depth[R] = 0, b.opt_len--, G && (b.static_len -= q[2 * R + 1]);
2168
+ for (S.max_code = ot, M = b.heap_len >> 1; 1 <= M; M--) ct(b, H, M);
2169
+ for (R = K; M = b.heap[1], b.heap[1] = b.heap[b.heap_len--], ct(b, H, 1), $ = b.heap[1], b.heap[--b.heap_max] = M, b.heap[--b.heap_max] = $, H[2 * R] = H[2 * M] + H[2 * $], b.depth[R] = (b.depth[M] >= b.depth[$] ? b.depth[M] : b.depth[$]) + 1, H[2 * M + 1] = H[2 * $ + 1] = R, b.heap[1] = R++, ct(b, H, 1), 2 <= b.heap_len; ) ;
2170
+ b.heap[--b.heap_max] = b.heap[1], function(st, ft) {
2171
2171
  var vt, yt, kt, ht, Ct, It, _t = ft.dyn_tree, Bt = ft.max_code, jt = ft.stat_desc.static_tree, Wt = ft.stat_desc.has_stree, Ht = ft.stat_desc.extra_bits, Nt = ft.stat_desc.extra_base, xt = ft.stat_desc.max_length, Et = 0;
2172
2172
  for (ht = 0; ht <= _; ht++) st.bl_count[ht] = 0;
2173
2173
  for (_t[2 * st.heap[st.heap_max] + 1] = 0, vt = st.heap_max + 1; vt < d; vt++) xt < (ht = _t[2 * _t[2 * (yt = st.heap[vt]) + 1] + 1] + 1) && (ht = xt, Et++), _t[2 * yt + 1] = ht, Bt < yt || (st.bl_count[ht]++, Ct = 0, Nt <= yt && (Ct = Ht[yt - Nt]), It = _t[2 * yt], st.opt_len += It * (ht + Ct), Wt && (st.static_len += It * (jt[2 * yt + 1] + Ct)));
@@ -2178,64 +2178,64 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2178
2178
  } while (0 < Et);
2179
2179
  for (ht = xt; ht !== 0; ht--) for (yt = st.bl_count[ht]; yt !== 0; ) Bt < (kt = st.heap[--vt]) || (_t[2 * kt + 1] !== ht && (st.opt_len += (ht - _t[2 * kt + 1]) * _t[2 * kt], _t[2 * kt + 1] = ht), yt--);
2180
2180
  }
2181
- }(g, S), ut(H, ot, g.bl_count);
2181
+ }(b, S), ut(H, ot, b.bl_count);
2182
2182
  }
2183
- function i(g, S, M) {
2183
+ function i(b, S, M) {
2184
2184
  var $, R, H = -1, q = S[1], G = 0, K = 7, ot = 4;
2185
- for (q === 0 && (K = 138, ot = 3), S[2 * (M + 1) + 1] = 65535, $ = 0; $ <= M; $++) R = q, q = S[2 * ($ + 1) + 1], ++G < K && R === q || (G < ot ? g.bl_tree[2 * R] += G : R !== 0 ? (R !== H && g.bl_tree[2 * R]++, g.bl_tree[2 * A]++) : G <= 10 ? g.bl_tree[2 * T]++ : g.bl_tree[2 * L]++, H = R, ot = (G = 0) === q ? (K = 138, 3) : R === q ? (K = 6, 3) : (K = 7, 4));
2185
+ for (q === 0 && (K = 138, ot = 3), S[2 * (M + 1) + 1] = 65535, $ = 0; $ <= M; $++) R = q, q = S[2 * ($ + 1) + 1], ++G < K && R === q || (G < ot ? b.bl_tree[2 * R] += G : R !== 0 ? (R !== H && b.bl_tree[2 * R]++, b.bl_tree[2 * A]++) : G <= 10 ? b.bl_tree[2 * T]++ : b.bl_tree[2 * L]++, H = R, ot = (G = 0) === q ? (K = 138, 3) : R === q ? (K = 6, 3) : (K = 7, 4));
2186
2186
  }
2187
- function O(g, S, M) {
2187
+ function O(b, S, M) {
2188
2188
  var $, R, H = -1, q = S[1], G = 0, K = 7, ot = 4;
2189
2189
  for (q === 0 && (K = 138, ot = 3), $ = 0; $ <= M; $++) if (R = q, q = S[2 * ($ + 1) + 1], !(++G < K && R === q)) {
2190
- if (G < ot) for (; V(g, R, g.bl_tree), --G != 0; ) ;
2191
- else R !== 0 ? (R !== H && (V(g, R, g.bl_tree), G--), V(g, A, g.bl_tree), Y(g, G - 3, 2)) : G <= 10 ? (V(g, T, g.bl_tree), Y(g, G - 3, 3)) : (V(g, L, g.bl_tree), Y(g, G - 11, 7));
2190
+ if (G < ot) for (; V(b, R, b.bl_tree), --G != 0; ) ;
2191
+ else R !== 0 ? (R !== H && (V(b, R, b.bl_tree), G--), V(b, A, b.bl_tree), Y(b, G - 3, 2)) : G <= 10 ? (V(b, T, b.bl_tree), Y(b, G - 3, 3)) : (V(b, L, b.bl_tree), Y(b, G - 11, 7));
2192
2192
  H = R, ot = (G = 0) === q ? (K = 138, 3) : R === q ? (K = 6, 3) : (K = 7, 4);
2193
2193
  }
2194
2194
  }
2195
- c(W);
2195
+ h(W);
2196
2196
  var P = !1;
2197
- function w(g, S, M, $) {
2198
- Y(g, (m << 1) + ($ ? 1 : 0), 3), function(R, H, q, G) {
2197
+ function w(b, S, M, $) {
2198
+ Y(b, (m << 1) + ($ ? 1 : 0), 3), function(R, H, q, G) {
2199
2199
  at(R), J(R, q), J(R, ~q), a.arraySet(R.pending_buf, R.window, H, q, R.pending), R.pending += q;
2200
- }(g, S, M);
2200
+ }(b, S, M);
2201
2201
  }
2202
- n._tr_init = function(g) {
2202
+ n._tr_init = function(b) {
2203
2203
  P || (function() {
2204
2204
  var S, M, $, R, H, q = new Array(_ + 1);
2205
- for (R = $ = 0; R < u - 1; R++) for (D[R] = $, S = 0; S < 1 << B[R]; S++) l[$++] = R;
2205
+ for (R = $ = 0; R < f - 1; R++) for (D[R] = $, S = 0; S < 1 << B[R]; S++) l[$++] = R;
2206
2206
  for (l[$ - 1] = R, R = H = 0; R < 16; R++) for (W[R] = H, S = 0; S < 1 << j[R]; S++) N[H++] = R;
2207
- for (H >>= 7; R < h; R++) for (W[R] = H << 7, S = 0; S < 1 << j[R] - 7; S++) N[256 + H++] = R;
2207
+ for (H >>= 7; R < c; R++) for (W[R] = H << 7, S = 0; S < 1 << j[R] - 7; S++) N[256 + H++] = R;
2208
2208
  for (M = 0; M <= _; M++) q[M] = 0;
2209
2209
  for (S = 0; S <= 143; ) Q[2 * S + 1] = 8, S++, q[8]++;
2210
2210
  for (; S <= 255; ) Q[2 * S + 1] = 9, S++, q[9]++;
2211
2211
  for (; S <= 279; ) Q[2 * S + 1] = 7, S++, q[7]++;
2212
2212
  for (; S <= 287; ) Q[2 * S + 1] = 8, S++, q[8]++;
2213
- for (ut(Q, p + 1, q), S = 0; S < h; S++) k[2 * S + 1] = 5, k[2 * S] = lt(S, 5);
2214
- et = new tt(Q, B, y + 1, p, _), U = new tt(k, j, 0, h, _), rt = new tt(new Array(0), z, 0, b, v);
2215
- }(), P = !0), g.l_desc = new F(g.dyn_ltree, et), g.d_desc = new F(g.dyn_dtree, U), g.bl_desc = new F(g.bl_tree, rt), g.bi_buf = 0, g.bi_valid = 0, it(g);
2216
- }, n._tr_stored_block = w, n._tr_flush_block = function(g, S, M, $) {
2213
+ for (ut(Q, p + 1, q), S = 0; S < c; S++) k[2 * S + 1] = 5, k[2 * S] = lt(S, 5);
2214
+ et = new tt(Q, B, g + 1, p, _), U = new tt(k, j, 0, c, _), rt = new tt(new Array(0), z, 0, y, v);
2215
+ }(), P = !0), b.l_desc = new F(b.dyn_ltree, et), b.d_desc = new F(b.dyn_dtree, U), b.bl_desc = new F(b.bl_tree, rt), b.bi_buf = 0, b.bi_valid = 0, it(b);
2216
+ }, n._tr_stored_block = w, n._tr_flush_block = function(b, S, M, $) {
2217
2217
  var R, H, q = 0;
2218
- 0 < g.level ? (g.strm.data_type === 2 && (g.strm.data_type = function(G) {
2218
+ 0 < b.level ? (b.strm.data_type === 2 && (b.strm.data_type = function(G) {
2219
2219
  var K, ot = 4093624447;
2220
2220
  for (K = 0; K <= 31; K++, ot >>>= 1) if (1 & ot && G.dyn_ltree[2 * K] !== 0) return o;
2221
2221
  if (G.dyn_ltree[18] !== 0 || G.dyn_ltree[20] !== 0 || G.dyn_ltree[26] !== 0) return s;
2222
- for (K = 32; K < y; K++) if (G.dyn_ltree[2 * K] !== 0) return s;
2222
+ for (K = 32; K < g; K++) if (G.dyn_ltree[2 * K] !== 0) return s;
2223
2223
  return o;
2224
- }(g)), pt(g, g.l_desc), pt(g, g.d_desc), q = function(G) {
2224
+ }(b)), pt(b, b.l_desc), pt(b, b.d_desc), q = function(G) {
2225
2225
  var K;
2226
- for (i(G, G.dyn_ltree, G.l_desc.max_code), i(G, G.dyn_dtree, G.d_desc.max_code), pt(G, G.bl_desc), K = b - 1; 3 <= K && G.bl_tree[2 * Z[K] + 1] === 0; K--) ;
2226
+ for (i(G, G.dyn_ltree, G.l_desc.max_code), i(G, G.dyn_dtree, G.d_desc.max_code), pt(G, G.bl_desc), K = y - 1; 3 <= K && G.bl_tree[2 * Z[K] + 1] === 0; K--) ;
2227
2227
  return G.opt_len += 3 * (K + 1) + 5 + 5 + 4, K;
2228
- }(g), R = g.opt_len + 3 + 7 >>> 3, (H = g.static_len + 3 + 7 >>> 3) <= R && (R = H)) : R = H = M + 5, M + 4 <= R && S !== -1 ? w(g, S, M, $) : g.strategy === 4 || H === R ? (Y(g, 2 + ($ ? 1 : 0), 3), bt(g, Q, k)) : (Y(g, 4 + ($ ? 1 : 0), 3), function(G, K, ot, st) {
2228
+ }(b), R = b.opt_len + 3 + 7 >>> 3, (H = b.static_len + 3 + 7 >>> 3) <= R && (R = H)) : R = H = M + 5, M + 4 <= R && S !== -1 ? w(b, S, M, $) : b.strategy === 4 || H === R ? (Y(b, 2 + ($ ? 1 : 0), 3), bt(b, Q, k)) : (Y(b, 4 + ($ ? 1 : 0), 3), function(G, K, ot, st) {
2229
2229
  var ft;
2230
2230
  for (Y(G, K - 257, 5), Y(G, ot - 1, 5), Y(G, st - 4, 4), ft = 0; ft < st; ft++) Y(G, G.bl_tree[2 * Z[ft] + 1], 3);
2231
2231
  O(G, G.dyn_ltree, K - 1), O(G, G.dyn_dtree, ot - 1);
2232
- }(g, g.l_desc.max_code + 1, g.d_desc.max_code + 1, q + 1), bt(g, g.dyn_ltree, g.dyn_dtree)), it(g), $ && at(g);
2233
- }, n._tr_tally = function(g, S, M) {
2234
- return g.pending_buf[g.d_buf + 2 * g.last_lit] = S >>> 8 & 255, g.pending_buf[g.d_buf + 2 * g.last_lit + 1] = 255 & S, g.pending_buf[g.l_buf + g.last_lit] = 255 & M, g.last_lit++, S === 0 ? g.dyn_ltree[2 * M]++ : (g.matches++, S--, g.dyn_ltree[2 * (l[M] + y + 1)]++, g.dyn_dtree[2 * I(S)]++), g.last_lit === g.lit_bufsize - 1;
2235
- }, n._tr_align = function(g) {
2236
- Y(g, 2, 3), V(g, E, Q), function(S) {
2232
+ }(b, b.l_desc.max_code + 1, b.d_desc.max_code + 1, q + 1), bt(b, b.dyn_ltree, b.dyn_dtree)), it(b), $ && at(b);
2233
+ }, n._tr_tally = function(b, S, M) {
2234
+ return b.pending_buf[b.d_buf + 2 * b.last_lit] = S >>> 8 & 255, b.pending_buf[b.d_buf + 2 * b.last_lit + 1] = 255 & S, b.pending_buf[b.l_buf + b.last_lit] = 255 & M, b.last_lit++, S === 0 ? b.dyn_ltree[2 * M]++ : (b.matches++, S--, b.dyn_ltree[2 * (l[M] + g + 1)]++, b.dyn_dtree[2 * I(S)]++), b.last_lit === b.lit_bufsize - 1;
2235
+ }, n._tr_align = function(b) {
2236
+ Y(b, 2, 3), V(b, E, Q), function(S) {
2237
2237
  S.bi_valid === 16 ? (J(S, S.bi_buf), S.bi_buf = 0, S.bi_valid = 0) : 8 <= S.bi_valid && (S.pending_buf[S.pending++] = 255 & S.bi_buf, S.bi_buf >>= 8, S.bi_valid -= 8);
2238
- }(g);
2238
+ }(b);
2239
2239
  };
2240
2240
  }, { "../utils/common": 41 }], 53: [function(t, r, n) {
2241
2241
  r.exports = function() {
@@ -2245,8 +2245,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2245
2245
  (function(a) {
2246
2246
  (function(o, s) {
2247
2247
  if (!o.setImmediate) {
2248
- var c, m, u, y, p = 1, h = {}, b = !1, d = o.document, _ = Object.getPrototypeOf && Object.getPrototypeOf(o);
2249
- _ = _ && _.setTimeout ? _ : o, c = {}.toString.call(o.process) === "[object process]" ? function(A) {
2248
+ var h, m, f, g, p = 1, c = {}, y = !1, d = o.document, _ = Object.getPrototypeOf && Object.getPrototypeOf(o);
2249
+ _ = _ && _.setTimeout ? _ : o, h = {}.toString.call(o.process) === "[object process]" ? function(A) {
2250
2250
  process.nextTick(function() {
2251
2251
  v(A);
2252
2252
  });
@@ -2257,12 +2257,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2257
2257
  A = !1;
2258
2258
  }, o.postMessage("", "*"), o.onmessage = T, A;
2259
2259
  }
2260
- }() ? (y = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", E, !1) : o.attachEvent("onmessage", E), function(A) {
2261
- o.postMessage(y + A, "*");
2262
- }) : o.MessageChannel ? ((u = new MessageChannel()).port1.onmessage = function(A) {
2260
+ }() ? (g = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", E, !1) : o.attachEvent("onmessage", E), function(A) {
2261
+ o.postMessage(g + A, "*");
2262
+ }) : o.MessageChannel ? ((f = new MessageChannel()).port1.onmessage = function(A) {
2263
2263
  v(A.data);
2264
2264
  }, function(A) {
2265
- u.port2.postMessage(A);
2265
+ f.port2.postMessage(A);
2266
2266
  }) : d && "onreadystatechange" in d.createElement("script") ? (m = d.documentElement, function(A) {
2267
2267
  var T = d.createElement("script");
2268
2268
  T.onreadystatechange = function() {
@@ -2274,18 +2274,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2274
2274
  typeof A != "function" && (A = new Function("" + A));
2275
2275
  for (var T = new Array(arguments.length - 1), L = 0; L < T.length; L++) T[L] = arguments[L + 1];
2276
2276
  var B = { callback: A, args: T };
2277
- return h[p] = B, c(p), p++;
2278
- }, _.clearImmediate = f;
2277
+ return c[p] = B, h(p), p++;
2278
+ }, _.clearImmediate = u;
2279
2279
  }
2280
- function f(A) {
2281
- delete h[A];
2280
+ function u(A) {
2281
+ delete c[A];
2282
2282
  }
2283
2283
  function v(A) {
2284
- if (b) setTimeout(v, 0, A);
2284
+ if (y) setTimeout(v, 0, A);
2285
2285
  else {
2286
- var T = h[A];
2286
+ var T = c[A];
2287
2287
  if (T) {
2288
- b = !0;
2288
+ y = !0;
2289
2289
  try {
2290
2290
  (function(L) {
2291
2291
  var B = L.callback, j = L.args;
@@ -2307,13 +2307,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2307
2307
  }
2308
2308
  })(T);
2309
2309
  } finally {
2310
- f(A), b = !1;
2310
+ u(A), y = !1;
2311
2311
  }
2312
2312
  }
2313
2313
  }
2314
2314
  }
2315
2315
  function E(A) {
2316
- A.source === o && typeof A.data == "string" && A.data.indexOf(y) === 0 && v(+A.data.slice(y.length));
2316
+ A.source === o && typeof A.data == "string" && A.data.indexOf(g) === 0 && v(+A.data.slice(g.length));
2317
2317
  }
2318
2318
  })(typeof self > "u" ? a === void 0 ? this : a : self);
2319
2319
  }).call(this, typeof St < "u" ? St : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -2554,16 +2554,16 @@ function ne(x, e) {
2554
2554
  }
2555
2555
  function ie(x, e, t) {
2556
2556
  const r = x.replace("#", ""), n = parseInt(r.substr(0, 2), 16), a = parseInt(r.substr(2, 2), 16), o = parseInt(r.substr(4, 2), 16);
2557
- let s = n, c = a, m = o;
2557
+ let s = n, h = a, m = o;
2558
2558
  if (e !== void 0 && e > 0) {
2559
- const u = e / 255;
2560
- s = Math.round(n + (255 - n) * u), c = Math.round(a + (255 - a) * u), m = Math.round(o + (255 - o) * u);
2559
+ const f = e / 255;
2560
+ s = Math.round(n + (255 - n) * f), h = Math.round(a + (255 - a) * f), m = Math.round(o + (255 - o) * f);
2561
2561
  }
2562
2562
  if (t !== void 0 && t > 0) {
2563
- const u = 1 - t / 255;
2564
- s = Math.round(s * u), c = Math.round(c * u), m = Math.round(m * u);
2563
+ const f = 1 - t / 255;
2564
+ s = Math.round(s * f), h = Math.round(h * f), m = Math.round(m * f);
2565
2565
  }
2566
- return s = Math.max(0, Math.min(255, s)), c = Math.max(0, Math.min(255, c)), m = Math.max(0, Math.min(255, m)), `#${Ft(s)}${Ft(c)}${Ft(m)}`;
2566
+ return s = Math.max(0, Math.min(255, s)), h = Math.max(0, Math.min(255, h)), m = Math.max(0, Math.min(255, m)), `#${Ft(s)}${Ft(h)}${Ft(m)}`;
2567
2567
  }
2568
2568
  function Ft(x) {
2569
2569
  const e = x.toString(16);
@@ -2699,40 +2699,40 @@ async function fe(x, e, t, r = {}) {
2699
2699
  if (o.embedFontRefs.length !== 0)
2700
2700
  for (const s of o.embedFontRefs)
2701
2701
  try {
2702
- const c = await pe(
2702
+ const h = await pe(
2703
2703
  x,
2704
2704
  o,
2705
2705
  s,
2706
2706
  t,
2707
2707
  n.timeout || Dt.timeout
2708
2708
  );
2709
- c && a.push(c);
2710
- } catch (c) {
2711
- console.warn(`加载嵌入字体失败: ${o.name} (${s.type})`, c);
2709
+ h && a.push(h);
2710
+ } catch (h) {
2711
+ console.warn(`加载嵌入字体失败: ${o.name} (${s.type})`, h);
2712
2712
  }
2713
2713
  return n.injectStyles && a.length > 0 && _e(a, n.styleContainer), a;
2714
2714
  }
2715
2715
  async function pe(x, e, t, r, n) {
2716
- const a = r.find((b) => b.id === t.id);
2716
+ const a = r.find((y) => y.id === t.id);
2717
2717
  if (!a)
2718
2718
  return console.warn(`找不到嵌入字体关系: ${t.id}`), null;
2719
2719
  const o = `word/${a.target}`, s = x.file(o);
2720
2720
  if (!s)
2721
2721
  return console.warn(`找不到嵌入字体文件: ${o}`), null;
2722
- const c = await Promise.race([
2722
+ const h = await Promise.race([
2723
2723
  s.async("arraybuffer"),
2724
2724
  new Promise(
2725
- (b, d) => setTimeout(() => d(new Error("字体加载超时")), n)
2725
+ (y, d) => setTimeout(() => d(new Error("字体加载超时")), n)
2726
2726
  )
2727
2727
  ]);
2728
- let m = c;
2729
- t.key && (m = me(c, t.key));
2730
- const u = ge(new Uint8Array(m)), y = be(u), p = new Blob([m], { type: y }), h = await ye(p);
2728
+ let m = h;
2729
+ t.key && (m = me(h, t.key));
2730
+ const f = ge(new Uint8Array(m)), g = be(f), p = new Blob([m], { type: g }), c = await ye(p);
2731
2731
  return {
2732
2732
  fontName: e.name,
2733
2733
  type: t.type,
2734
- dataUrl: h,
2735
- format: u
2734
+ dataUrl: c,
2735
+ format: f
2736
2736
  };
2737
2737
  }
2738
2738
  function me(x, e) {
@@ -2835,10 +2835,10 @@ function Me(x) {
2835
2835
  function Ee(x) {
2836
2836
  const r = new DOMParser().parseFromString(x, "application/xml").documentElement, n = [], a = r.getElementsByTagName("Relationship");
2837
2837
  for (let o = 0; o < a.length; o++) {
2838
- const s = a[o], c = s.getAttribute("Type") || "";
2839
- c === At.FONT && n.push({
2838
+ const s = a[o], h = s.getAttribute("Type") || "";
2839
+ h === At.FONT && n.push({
2840
2840
  id: s.getAttribute("Id") || "",
2841
- type: c,
2841
+ type: h,
2842
2842
  target: s.getAttribute("Target") || "",
2843
2843
  targetMode: s.getAttribute("TargetMode") || void 0
2844
2844
  });
@@ -2855,12 +2855,12 @@ function Se(x) {
2855
2855
  for (const o of a) {
2856
2856
  const s = zt(o, "paraId");
2857
2857
  if (!s) continue;
2858
- const c = {
2858
+ const h = {
2859
2859
  paraId: s,
2860
2860
  paraIdParent: zt(o, "paraIdParent"),
2861
2861
  done: Ae(o, "done")
2862
2862
  };
2863
- e.set(s, c);
2863
+ e.set(s, h);
2864
2864
  }
2865
2865
  console.log("[DEBUG] parseCommentsExtended: found", e.size, "extended comments");
2866
2866
  } catch (t) {
@@ -2923,26 +2923,26 @@ class Re {
2923
2923
  async parse(e) {
2924
2924
  const t = e instanceof ArrayBuffer ? e : await e.arrayBuffer();
2925
2925
  this.zip = await Yt.loadAsync(t), this.bookmarks = /* @__PURE__ */ new Map(), await this.parseRelationships(), await this.loadImages();
2926
- const r = await this.parseStyles(), n = new Map(r.map((f) => [f.id, f])), a = await this.parseComments(), o = new Map(a.map((f) => [f.id, f])), s = await this.parseCommentsExtended(), c = Te(a, s), { numberings: m, abstractNumberings: u, numberingMap: y } = await this.parseNumberings();
2926
+ const r = await this.parseStyles(), n = new Map(r.map((u) => [u.id, u])), a = await this.parseComments(), o = new Map(a.map((u) => [u.id, u])), s = await this.parseCommentsExtended(), h = Te(a, s), { numberings: m, abstractNumberings: f, numberingMap: g } = await this.parseNumberings();
2927
2927
  this.theme = await this.parseTheme();
2928
- const p = await this.parseHeadersFooters("header"), h = await this.parseHeadersFooters("footer"), b = await this.parseFootnotes(), d = await this.parseEndnotes();
2928
+ const p = await this.parseHeadersFooters("header"), c = await this.parseHeadersFooters("footer"), y = await this.parseFootnotes(), d = await this.parseEndnotes();
2929
2929
  return this.fontTable = await this.parseFontTable(), this.embeddedFonts = await this.loadEmbeddedFonts(), {
2930
2930
  body: await this.parseDocument(),
2931
2931
  comments: a,
2932
2932
  commentMap: o,
2933
- rootComments: c,
2933
+ rootComments: h,
2934
2934
  commentsExtendedMap: s,
2935
2935
  styles: r,
2936
2936
  styleMap: n,
2937
2937
  numberings: m,
2938
- numberingMap: y,
2939
- abstractNumberings: u,
2938
+ numberingMap: g,
2939
+ abstractNumberings: f,
2940
2940
  images: this.images,
2941
2941
  relationships: this.relationships,
2942
2942
  headers: p,
2943
- footers: h,
2943
+ footers: c,
2944
2944
  theme: this.theme,
2945
- footnotes: b,
2945
+ footnotes: y,
2946
2946
  endnotes: d,
2947
2947
  fontTable: this.fontTable,
2948
2948
  embeddedFonts: this.embeddedFonts,
@@ -3005,15 +3005,15 @@ class Re {
3005
3005
  "style"
3006
3006
  );
3007
3007
  for (let s = 0; s < n.length; s++) {
3008
- const c = n[s], m = C.element(c, "name"), u = C.element(c, "basedOn"), y = {
3009
- id: C.attr(c, "styleId") || "",
3008
+ const h = n[s], m = C.element(h, "name"), f = C.element(h, "basedOn"), g = {
3009
+ id: C.attr(h, "styleId") || "",
3010
3010
  name: m ? C.attr(m, "val") : void 0,
3011
- type: C.attr(c, "type") || "paragraph",
3012
- basedOn: u ? C.attr(u, "val") : void 0
3013
- }, p = C.element(c, "pPr");
3014
- p && (y.paragraphProps = this.parseParagraphProperties(p));
3015
- const h = C.element(c, "rPr");
3016
- h && (y.runProps = this.parseRunProperties(h)), r.push(y);
3011
+ type: C.attr(h, "type") || "paragraph",
3012
+ basedOn: f ? C.attr(f, "val") : void 0
3013
+ }, p = C.element(h, "pPr");
3014
+ p && (g.paragraphProps = this.parseParagraphProperties(p));
3015
+ const c = C.element(h, "rPr");
3016
+ c && (g.runProps = this.parseRunProperties(c)), r.push(g);
3017
3017
  }
3018
3018
  return r;
3019
3019
  }
@@ -3102,16 +3102,16 @@ class Re {
3102
3102
  t
3103
3103
  );
3104
3104
  for (let o = 0; o < a.length; o++) {
3105
- const s = a[o], c = C.attr(s, "id") || "", m = C.attr(s, "type");
3105
+ const s = a[o], h = C.attr(s, "id") || "", m = C.attr(s, "type");
3106
3106
  if (m === "separator" || m === "continuationSeparator")
3107
3107
  continue;
3108
- const u = {
3108
+ const f = {
3109
3109
  type: r,
3110
- id: c,
3110
+ id: h,
3111
3111
  noteType: m,
3112
3112
  children: this.parseChildren(s)
3113
3113
  };
3114
- n.set(c, u);
3114
+ n.set(h, f);
3115
3115
  }
3116
3116
  return n;
3117
3117
  }
@@ -3119,8 +3119,8 @@ class Re {
3119
3119
  * 解析编号(word/numbering.xml)
3120
3120
  */
3121
3121
  async parseNumberings() {
3122
- var c, m;
3123
- const e = await ((m = (c = this.zip) == null ? void 0 : c.file(mt.NUMBERING)) == null ? void 0 : m.async("string"));
3122
+ var h, m;
3123
+ const e = await ((m = (h = this.zip) == null ? void 0 : h.file(mt.NUMBERING)) == null ? void 0 : m.async("string"));
3124
3124
  if (!e)
3125
3125
  return {
3126
3126
  numberings: [],
@@ -3128,29 +3128,29 @@ class Re {
3128
3128
  numberingMap: /* @__PURE__ */ new Map()
3129
3129
  };
3130
3130
  const r = gt(e).documentElement, n = [], a = /* @__PURE__ */ new Map();
3131
- for (const u of C.elements(r))
3132
- switch (u.localName) {
3131
+ for (const f of C.elements(r))
3132
+ switch (f.localName) {
3133
3133
  case "abstractNum":
3134
- n.push(this.parseAbstractNumbering(u));
3134
+ n.push(this.parseAbstractNumbering(f));
3135
3135
  break;
3136
3136
  case "num":
3137
- const y = C.attr(u, "numId") || "", p = C.element(u, "abstractNumId");
3137
+ const g = C.attr(f, "numId") || "", p = C.element(f, "abstractNumId");
3138
3138
  if (p) {
3139
- const h = C.attr(p, "val") || "";
3140
- a.set(y, h);
3139
+ const c = C.attr(p, "val") || "";
3140
+ a.set(g, c);
3141
3141
  }
3142
3142
  break;
3143
3143
  }
3144
3144
  const o = [], s = /* @__PURE__ */ new Map();
3145
- for (const [u, y] of a) {
3146
- const p = n.find((h) => h.id === y);
3145
+ for (const [f, g] of a) {
3146
+ const p = n.find((c) => c.id === g);
3147
3147
  if (p) {
3148
- const h = {
3149
- id: u,
3150
- abstractNumId: y,
3151
- levels: p.levels.map((b) => ({ ...b }))
3148
+ const c = {
3149
+ id: f,
3150
+ abstractNumId: g,
3151
+ levels: p.levels.map((y) => ({ ...y }))
3152
3152
  };
3153
- o.push(h), s.set(u, h);
3153
+ o.push(c), s.set(f, c);
3154
3154
  }
3155
3155
  }
3156
3156
  return { numberings: o, abstractNumberings: n, numberingMap: s };
@@ -3224,7 +3224,7 @@ class Re {
3224
3224
  * 解析评论
3225
3225
  */
3226
3226
  async parseComments() {
3227
- var o, s, c;
3227
+ var o, s, h;
3228
3228
  const e = await ((s = (o = this.zip) == null ? void 0 : o.file(mt.COMMENTS)) == null ? void 0 : s.async("string"));
3229
3229
  if (!e) return [];
3230
3230
  const t = gt(e), r = [], n = t.getElementsByTagNameNS(
@@ -3232,20 +3232,20 @@ class Re {
3232
3232
  "comment"
3233
3233
  ), a = "http://schemas.microsoft.com/office/word/2010/wordml";
3234
3234
  for (let m = 0; m < n.length; m++) {
3235
- const u = n[m], y = ((c = u.textContent) == null ? void 0 : c.trim()) || "";
3236
- let p = u.getAttributeNS(a, "paraId");
3237
- p || (p = u.getAttribute("w14:paraId") || null);
3238
- const h = {
3235
+ const f = n[m], g = ((h = f.textContent) == null ? void 0 : h.trim()) || "";
3236
+ let p = f.getAttributeNS(a, "paraId");
3237
+ p || (p = f.getAttribute("w14:paraId") || null);
3238
+ const c = {
3239
3239
  type: X.Comment,
3240
- id: C.attr(u, "id") || "",
3241
- author: C.attr(u, "author") || "未知",
3242
- date: C.attr(u, "date") || (/* @__PURE__ */ new Date()).toISOString(),
3243
- initials: C.attr(u, "initials"),
3244
- children: this.parseChildren(u),
3245
- rawText: y,
3240
+ id: C.attr(f, "id") || "",
3241
+ author: C.attr(f, "author") || "未知",
3242
+ date: C.attr(f, "date") || (/* @__PURE__ */ new Date()).toISOString(),
3243
+ initials: C.attr(f, "initials"),
3244
+ children: this.parseChildren(f),
3245
+ rawText: g,
3246
3246
  paraId: p || void 0
3247
3247
  };
3248
- r.push(h);
3248
+ r.push(c);
3249
3249
  }
3250
3250
  return console.log("[DEBUG] parseComments: found", r.length, "comments"), r;
3251
3251
  }
@@ -3262,8 +3262,8 @@ class Re {
3262
3262
  * 解析文档主体
3263
3263
  */
3264
3264
  async parseDocument() {
3265
- var m, u;
3266
- const e = await ((u = (m = this.zip) == null ? void 0 : m.file(mt.DOCUMENT)) == null ? void 0 : u.async("string"));
3265
+ var m, f;
3266
+ const e = await ((f = (m = this.zip) == null ? void 0 : m.file(mt.DOCUMENT)) == null ? void 0 : f.async("string"));
3267
3267
  if (!e)
3268
3268
  return { type: X.Document, children: [] };
3269
3269
  const t = gt(e), r = t.getElementsByTagNameNS(
@@ -3275,12 +3275,12 @@ class Re {
3275
3275
  const n = C.element(r, "sectPr"), a = n ? this.parseSectionProperties(n) : void 0, o = t.getElementsByTagNameNS(
3276
3276
  "http://schemas.openxmlformats.org/wordprocessingml/2006/main",
3277
3277
  "document"
3278
- )[0], s = o ? C.element(o, "background") : null, c = s ? this.parseBackground(s) : void 0;
3278
+ )[0], s = o ? C.element(o, "background") : null, h = s ? this.parseBackground(s) : void 0;
3279
3279
  return {
3280
3280
  type: X.Document,
3281
3281
  children: this.parseChildren(r),
3282
3282
  sectionProps: a,
3283
- background: c
3283
+ background: h
3284
3284
  };
3285
3285
  }
3286
3286
  /**
@@ -3291,18 +3291,18 @@ class Re {
3291
3291
  const t = /* @__PURE__ */ new Map(), r = e === "header" ? At.HEADER : At.FOOTER;
3292
3292
  for (const o of this.relationships)
3293
3293
  if (o.type === r) {
3294
- const s = `word/${o.target}`, c = await ((a = (n = this.zip) == null ? void 0 : n.file(s)) == null ? void 0 : a.async("string"));
3295
- if (c) {
3296
- const u = gt(c).getElementsByTagNameNS(
3294
+ const s = `word/${o.target}`, h = await ((a = (n = this.zip) == null ? void 0 : n.file(s)) == null ? void 0 : a.async("string"));
3295
+ if (h) {
3296
+ const f = gt(h).getElementsByTagNameNS(
3297
3297
  "http://schemas.openxmlformats.org/wordprocessingml/2006/main",
3298
3298
  e === "header" ? "hdr" : "ftr"
3299
3299
  )[0];
3300
- if (u) {
3301
- const y = {
3300
+ if (f) {
3301
+ const g = {
3302
3302
  type: e === "header" ? X.Header : X.Footer,
3303
- children: this.parseChildren(u)
3303
+ children: this.parseChildren(f)
3304
3304
  };
3305
- t.set(o.id, y);
3305
+ t.set(o.id, g);
3306
3306
  }
3307
3307
  }
3308
3308
  }
@@ -3545,8 +3545,8 @@ class Re {
3545
3545
  r && (t.styleId = C.attr(r, "val"));
3546
3546
  const n = C.element(e, "jc");
3547
3547
  if (n) {
3548
- const y = C.attr(n, "val");
3549
- (y === "left" || y === "center" || y === "right" || y === "both") && (t.justification = y);
3548
+ const g = C.attr(n, "val");
3549
+ (g === "left" || g === "center" || g === "right" || g === "both") && (t.justification = g);
3550
3550
  }
3551
3551
  const a = C.element(e, "ind");
3552
3552
  a && (t.indentation = {
@@ -3565,12 +3565,12 @@ class Re {
3565
3565
  });
3566
3566
  const s = C.element(e, "pageBreakBefore");
3567
3567
  s && (t.pageBreakBefore = C.boolAttr(s, "val") !== !1);
3568
- const c = C.element(e, "pBdr");
3569
- c && (t.borders = this.parseBorders(c));
3568
+ const h = C.element(e, "pBdr");
3569
+ h && (t.borders = this.parseBorders(h));
3570
3570
  const m = C.element(e, "sectPr");
3571
3571
  m && (t.sectionProps = this.parseSectionProperties(m));
3572
- const u = C.element(e, "numPr");
3573
- return u && (t.numbering = this.parseParagraphNumbering(u)), t;
3572
+ const f = C.element(e, "numPr");
3573
+ return f && (t.numbering = this.parseParagraphNumbering(f)), t;
3574
3574
  }
3575
3575
  /**
3576
3576
  * 解析段落编号引用
@@ -3607,7 +3607,7 @@ class Re {
3607
3607
  * 解析 Run 属性
3608
3608
  */
3609
3609
  parseRunProperties(e) {
3610
- var b, d, _, f;
3610
+ var y, d, _, u;
3611
3611
  const t = {}, r = C.element(e, "rStyle");
3612
3612
  r && (t.styleId = C.attr(r, "val"));
3613
3613
  const n = C.element(e, "b");
@@ -3618,18 +3618,18 @@ class Re {
3618
3618
  o && (t.underline = C.attr(o, "val") || "single");
3619
3619
  const s = C.element(e, "strike");
3620
3620
  s && (t.strike = C.attr(s, "val") !== "0");
3621
- const c = C.element(e, "dstrike");
3622
- c && (t.dstrike = C.attr(c, "val") !== "0");
3621
+ const h = C.element(e, "dstrike");
3622
+ h && (t.dstrike = C.attr(h, "val") !== "0");
3623
3623
  const m = C.element(e, "vertAlign");
3624
3624
  if (m) {
3625
3625
  const v = C.attr(m, "val");
3626
3626
  (v === "superscript" || v === "subscript") && (t.vertAlign = v);
3627
3627
  }
3628
- const u = C.element(e, "color");
3629
- if (u) {
3630
- const v = C.attr(u, "val"), E = C.attr(u, "themeColor");
3628
+ const f = C.element(e, "color");
3629
+ if (f) {
3630
+ const v = C.attr(f, "val"), E = C.attr(f, "themeColor");
3631
3631
  if (E) {
3632
- const A = C.attr(u, "themeTint"), T = C.attr(u, "themeShade");
3632
+ const A = C.attr(f, "themeTint"), T = C.attr(f, "themeShade");
3633
3633
  if (t.themeColor = {
3634
3634
  themeColor: E,
3635
3635
  themeTint: A ? parseInt(A, 16) : void 0,
@@ -3640,27 +3640,27 @@ class Re {
3640
3640
  }
3641
3641
  } else v && v !== "auto" && (t.color = `#${v}`);
3642
3642
  }
3643
- const y = C.element(e, "sz");
3644
- y && (t.fontSize = C.lengthAttr(y, "val", wt.FontSize));
3643
+ const g = C.element(e, "sz");
3644
+ g && (t.fontSize = C.lengthAttr(g, "val", wt.FontSize));
3645
3645
  const p = C.element(e, "rFonts");
3646
3646
  if (p) {
3647
3647
  const v = C.attr(p, "asciiTheme"), E = C.attr(p, "eastAsiaTheme");
3648
3648
  if (v || E) {
3649
3649
  const A = v || E || "";
3650
3650
  if (A.startsWith("major")) {
3651
- if (t.themeFontFamily = "major", (d = (b = this.theme) == null ? void 0 : b.fontScheme) != null && d.majorFont) {
3651
+ if (t.themeFontFamily = "major", (d = (y = this.theme) == null ? void 0 : y.fontScheme) != null && d.majorFont) {
3652
3652
  const T = A.includes("EastAsia") ? this.theme.fontScheme.majorFont.ea : this.theme.fontScheme.majorFont.latin;
3653
3653
  T && (t.fontFamily = T);
3654
3654
  }
3655
- } else if (A.startsWith("minor") && (t.themeFontFamily = "minor", (f = (_ = this.theme) == null ? void 0 : _.fontScheme) != null && f.minorFont)) {
3655
+ } else if (A.startsWith("minor") && (t.themeFontFamily = "minor", (u = (_ = this.theme) == null ? void 0 : _.fontScheme) != null && u.minorFont)) {
3656
3656
  const T = A.includes("EastAsia") ? this.theme.fontScheme.minorFont.ea : this.theme.fontScheme.minorFont.latin;
3657
3657
  T && (t.fontFamily = T);
3658
3658
  }
3659
3659
  }
3660
3660
  t.fontFamily || (t.fontFamily = C.attr(p, "ascii") || C.attr(p, "eastAsia") || C.attr(p, "hAnsi"));
3661
3661
  }
3662
- const h = C.element(e, "highlight");
3663
- return h && (t.highlight = C.attr(h, "val")), t;
3662
+ const c = C.element(e, "highlight");
3663
+ return c && (t.highlight = C.attr(c, "val")), t;
3664
3664
  }
3665
3665
  /**
3666
3666
  * 解析文本
@@ -3922,15 +3922,15 @@ class Re {
3922
3922
  "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",
3923
3923
  "extent"
3924
3924
  )[0];
3925
- let c, m;
3925
+ let h, m;
3926
3926
  if (s) {
3927
- const u = s.getAttribute("cx"), y = s.getAttribute("cy");
3928
- u && (c = C.convertLength(u, wt.Emu)), y && (m = C.convertLength(y, wt.Emu));
3927
+ const f = s.getAttribute("cx"), g = s.getAttribute("cy");
3928
+ f && (h = C.convertLength(f, wt.Emu)), g && (m = C.convertLength(g, wt.Emu));
3929
3929
  }
3930
3930
  t.push({
3931
3931
  type: X.Image,
3932
3932
  src: this.images.get(o),
3933
- width: c,
3933
+ width: h,
3934
3934
  height: m
3935
3935
  });
3936
3936
  }
@@ -4125,39 +4125,39 @@ class Ie {
4125
4125
  ), o = this.groupByPageBreaks(a);
4126
4126
  this.totalPages = o.length;
4127
4127
  let s;
4128
- for (let c = 0; c < o.length; c++) {
4129
- this.currentPageNumber = c + 1;
4130
- const m = this.currentFootnoteIds.length, u = o[c];
4131
- if (u.length === 0) continue;
4132
- let p = u[0].sectProps || n;
4133
- const h = this.createPageElement(p);
4128
+ for (let h = 0; h < o.length; h++) {
4129
+ this.currentPageNumber = h + 1;
4130
+ const m = this.currentFootnoteIds.length, f = o[h];
4131
+ if (f.length === 0) continue;
4132
+ let p = f[0].sectProps || n;
4133
+ const c = this.createPageElement(p);
4134
4134
  p != null && p.headerRefs && this.renderHeaderFooter(
4135
4135
  p.headerRefs,
4136
4136
  p,
4137
- c,
4138
- s !== p,
4139
4137
  h,
4138
+ s !== p,
4139
+ c,
4140
4140
  "header"
4141
4141
  );
4142
- for (const d of u) {
4142
+ for (const d of f) {
4143
4143
  const _ = this.createSectionContent(d.sectProps);
4144
- for (const f of d.elements) {
4145
- const v = this.renderElement(f);
4144
+ for (const u of d.elements) {
4145
+ const v = this.renderElement(u);
4146
4146
  v && _.appendChild(v);
4147
4147
  }
4148
- h.appendChild(_), p = d.sectProps || p;
4148
+ c.appendChild(_), p = d.sectProps || p;
4149
4149
  }
4150
- const b = this.currentFootnoteIds.slice(
4150
+ const y = this.currentFootnoteIds.slice(
4151
4151
  m
4152
4152
  );
4153
- this.renderPageFootnotes(b, h), p != null && p.footerRefs && this.renderHeaderFooter(
4153
+ this.renderPageFootnotes(y, c), p != null && p.footerRefs && this.renderHeaderFooter(
4154
4154
  p.footerRefs,
4155
4155
  p,
4156
- c,
4157
- s !== p,
4158
4156
  h,
4157
+ s !== p,
4158
+ c,
4159
4159
  "footer"
4160
- ), e.appendChild(h), s = p;
4160
+ ), e.appendChild(c), s = p;
4161
4161
  }
4162
4162
  this.renderDocumentEndnotes(e);
4163
4163
  }
@@ -4169,27 +4169,27 @@ class Ie {
4169
4169
  const r = [];
4170
4170
  let n = { sectProps: null, elements: [], pageBreak: !1 };
4171
4171
  r.push(n);
4172
- for (const c of e)
4173
- if (c.type === X.Paragraph && (o = c.props) != null && o.pageBreakBefore && (n.pageBreak = !0, n = { sectProps: null, elements: [], pageBreak: !1 }, r.push(n)), n.elements.push(c), c.type === X.Paragraph) {
4174
- const m = c, u = (s = m.props) == null ? void 0 : s.sectionProps;
4175
- let y = !1;
4176
- const p = (h) => {
4177
- for (const b of h) {
4178
- if (b.type === X.Break) {
4179
- const d = b;
4172
+ for (const h of e)
4173
+ if (h.type === X.Paragraph && (o = h.props) != null && o.pageBreakBefore && (n.pageBreak = !0, n = { sectProps: null, elements: [], pageBreak: !1 }, r.push(n)), n.elements.push(h), h.type === X.Paragraph) {
4174
+ const m = h, f = (s = m.props) == null ? void 0 : s.sectionProps;
4175
+ let g = !1;
4176
+ const p = (c) => {
4177
+ for (const y of c) {
4178
+ if (y.type === X.Break) {
4179
+ const d = y;
4180
4180
  if (d.breakType === "page" || d.breakType === "lastRenderedPageBreak") {
4181
- y = !0;
4181
+ g = !0;
4182
4182
  return;
4183
4183
  }
4184
4184
  }
4185
- b.type === X.Run && b.children && p(b.children);
4185
+ y.type === X.Run && y.children && p(y.children);
4186
4186
  }
4187
4187
  };
4188
- this.options.breakPages && m.children && p(m.children), (u || y) && (n.sectProps = u || null, n.pageBreak = y, n = { sectProps: null, elements: [], pageBreak: !1 }, r.push(n));
4188
+ this.options.breakPages && m.children && p(m.children), (f || g) && (n.sectProps = f || null, n.pageBreak = g, n = { sectProps: null, elements: [], pageBreak: !1 }, r.push(n));
4189
4189
  }
4190
4190
  let a = null;
4191
- for (let c = r.length - 1; c >= 0; c--)
4192
- r[c].sectProps === null ? r[c].sectProps = a || t || null : a = r[c].sectProps;
4191
+ for (let h = r.length - 1; h >= 0; h--)
4192
+ r[h].sectProps === null ? r[h].sectProps = a || t || null : a = r[h].sectProps;
4193
4193
  return r;
4194
4194
  }
4195
4195
  /**
@@ -4241,25 +4241,25 @@ class Ie {
4241
4241
  * 渲染页眉或页脚
4242
4242
  */
4243
4243
  renderHeaderFooter(e, t, r, n, a, o) {
4244
- var y, p;
4244
+ var g, p;
4245
4245
  if (!e || e.length === 0) return;
4246
4246
  let s = null;
4247
- if (t.titlePage && n && (s = e.find((h) => h.type === "first")), s || r % 2 === 1 && (s = e.find((h) => h.type === "even")), s || (s = e.find((h) => h.type === "default")), !s) return;
4248
- const c = o === "header" ? (y = this.document) == null ? void 0 : y.headers : (p = this.document) == null ? void 0 : p.footers, m = c == null ? void 0 : c.get(s.id);
4247
+ if (t.titlePage && n && (s = e.find((c) => c.type === "first")), s || r % 2 === 1 && (s = e.find((c) => c.type === "even")), s || (s = e.find((c) => c.type === "default")), !s) return;
4248
+ const h = o === "header" ? (g = this.document) == null ? void 0 : g.headers : (p = this.document) == null ? void 0 : p.footers, m = h == null ? void 0 : h.get(s.id);
4249
4249
  if (!m) return;
4250
- const u = this.createElement(
4250
+ const f = this.createElement(
4251
4251
  "div",
4252
4252
  `${this.classPrefix}-${o}`
4253
4253
  );
4254
- for (const h of m.children || []) {
4255
- const b = this.renderElement(h);
4256
- b && u.appendChild(b);
4254
+ for (const c of m.children || []) {
4255
+ const y = this.renderElement(c);
4256
+ y && f.appendChild(y);
4257
4257
  }
4258
4258
  if (t.pageMargins) {
4259
- const h = t.pageMargins;
4260
- o === "header" && h.header && h.top ? (u.style.marginTop = `calc(${h.header} - ${h.top})`, u.style.minHeight = `calc(${h.top} - ${h.header})`) : o === "footer" && h.footer && h.bottom && (u.style.marginBottom = `calc(${h.footer} - ${h.bottom})`, u.style.minHeight = `calc(${h.bottom} - ${h.footer})`);
4259
+ const c = t.pageMargins;
4260
+ o === "header" && c.header && c.top ? (f.style.marginTop = `calc(${c.header} - ${c.top})`, f.style.minHeight = `calc(${c.top} - ${c.header})`) : o === "footer" && c.footer && c.bottom && (f.style.marginBottom = `calc(${c.footer} - ${c.bottom})`, f.style.minHeight = `calc(${c.bottom} - ${c.footer})`);
4261
4261
  }
4262
- o === "header" ? a.insertBefore(u, a.firstChild) : a.appendChild(u);
4262
+ o === "header" ? a.insertBefore(f, a.firstChild) : a.appendChild(f);
4263
4263
  }
4264
4264
  /**
4265
4265
  * 渲染所有评论气泡(右侧固定面板)
@@ -4307,11 +4307,17 @@ class Ie {
4307
4307
  40
4308
4308
  );
4309
4309
  console.log("nerd", t);
4310
- const c = 0, m = window.innerHeight;
4311
- for (const [, u] of this.commentRanges) {
4312
- if (!u.panelElement || u.highlightElements.length === 0) continue;
4313
- const p = u.highlightElements[0].getBoundingClientRect();
4314
- p.bottom > c && p.top < m ? (u.panelElement.style.display = "block", u.panelElement.style.right = `${s}px`, u.panelElement.style.top = `${p.top}px`) : u.panelElement.style.display = "none";
4310
+ const h = 0, m = window.innerHeight;
4311
+ for (const [, f] of this.commentRanges) {
4312
+ if (!f.panelElement || f.highlightElements.length === 0) continue;
4313
+ let g = 1 / 0, p = null;
4314
+ for (const d of f.highlightElements) {
4315
+ const _ = d.getBoundingClientRect();
4316
+ _.top < g && (g = _.top, p = _);
4317
+ }
4318
+ if (!p) continue;
4319
+ const c = p;
4320
+ c.bottom > h && c.top < m ? (f.panelElement.style.display = "block", f.panelElement.style.right = `${s}px`, f.panelElement.style.top = `${c.top}px`) : f.panelElement.style.display = "none";
4315
4321
  }
4316
4322
  }
4317
4323
  /**
@@ -4339,8 +4345,14 @@ class Ie {
4339
4345
  drawCommentLine(e, t) {
4340
4346
  const r = this.commentRanges.get(e);
4341
4347
  if (!r || !r.highlightElements.length || !r.panelElement || !this.svgLayer || r.panelElement.style.display === "none") return;
4342
- const n = r.highlightElements[0].getBoundingClientRect(), a = r.panelElement.getBoundingClientRect(), o = n.right, s = n.top + n.height / 2, c = a.left, m = s, u = document.createElementNS("http://www.w3.org/2000/svg", "line");
4343
- u.setAttribute("x1", String(o)), u.setAttribute("y1", String(s)), u.setAttribute("x2", String(c)), u.setAttribute("y2", String(m)), u.setAttribute("stroke", "#ef4444"), u.setAttribute("stroke-width", t ? "2" : "1"), this.svgLayer.appendChild(u);
4348
+ let n = 1 / 0, a = null;
4349
+ for (const p of r.highlightElements) {
4350
+ const c = p.getBoundingClientRect();
4351
+ c.top < n && (n = c.top, a = c);
4352
+ }
4353
+ if (!a) return;
4354
+ const o = r.panelElement.getBoundingClientRect(), s = a.right, h = a.top + a.height / 2, m = o.left, f = h, g = document.createElementNS("http://www.w3.org/2000/svg", "line");
4355
+ g.setAttribute("x1", String(s)), g.setAttribute("y1", String(h)), g.setAttribute("x2", String(m)), g.setAttribute("y2", String(f)), g.setAttribute("stroke", "#ef4444"), g.setAttribute("stroke-width", t ? "2" : "1"), this.svgLayer.appendChild(g);
4344
4356
  }
4345
4357
  /**
4346
4358
  * 渲染元素
@@ -4421,8 +4433,8 @@ class Ie {
4421
4433
  * 渲染编号
4422
4434
  */
4423
4435
  renderNumbering(e) {
4424
- var u, y;
4425
- if (!(e != null && e.numbering) || !((u = this.document) != null && u.numberingMap))
4436
+ var f, g;
4437
+ if (!(e != null && e.numbering) || !((f = this.document) != null && f.numberingMap))
4426
4438
  return null;
4427
4439
  const { id: t, level: r } = e.numbering, n = this.document.numberingMap.get(t);
4428
4440
  if (!n)
@@ -4432,23 +4444,23 @@ class Ie {
4432
4444
  return null;
4433
4445
  const o = this.getNumberingContent(n, a, t, r), s = this.createElement("span", `${this.classPrefix}-numbering`);
4434
4446
  s.textContent = o, a.runProps && this.applyRunStyles(s, a.runProps);
4435
- const c = this.createElement(
4447
+ const h = this.createElement(
4436
4448
  "span",
4437
4449
  `${this.classPrefix}-numbering-suffix`
4438
4450
  );
4439
4451
  switch (a.suffix) {
4440
4452
  case "tab":
4441
- c.innerHTML = "&emsp;";
4453
+ h.innerHTML = "&emsp;";
4442
4454
  break;
4443
4455
  case "space":
4444
- c.innerHTML = "&nbsp;";
4456
+ h.innerHTML = "&nbsp;";
4445
4457
  break;
4446
4458
  }
4447
4459
  const m = this.createElement(
4448
4460
  "span",
4449
4461
  `${this.classPrefix}-numbering-wrapper`
4450
4462
  );
4451
- if (m.appendChild(s), m.appendChild(c), (y = a.paragraphProps) != null && y.indentation) {
4463
+ if (m.appendChild(s), m.appendChild(h), (g = a.paragraphProps) != null && g.indentation) {
4452
4464
  const p = a.paragraphProps.indentation;
4453
4465
  p.left && (m.style.marginLeft = p.left), p.hanging && (m.style.textIndent = `-${p.hanging}`, m.style.paddingLeft = p.hanging);
4454
4466
  }
@@ -4462,14 +4474,14 @@ class Ie {
4462
4474
  if (a === "bullet")
4463
4475
  return o || "•";
4464
4476
  const s = `${r}-${n}`;
4465
- let c = this.numberingCounters.get(s) ?? t.start - 1;
4466
- c++, this.numberingCounters.set(s, c);
4467
- for (let u = n + 1; u <= 8; u++)
4468
- this.numberingCounters.delete(`${r}-${u}`);
4477
+ let h = this.numberingCounters.get(s) ?? t.start - 1;
4478
+ h++, this.numberingCounters.set(s, h);
4479
+ for (let f = n + 1; f <= 8; f++)
4480
+ this.numberingCounters.delete(`${r}-${f}`);
4469
4481
  let m = o;
4470
- for (let u = 0; u <= n; u++) {
4471
- const y = this.numberingCounters.get(`${r}-${u}`) ?? 1, p = e.levels.find((d) => d.level === u), h = (p == null ? void 0 : p.format) || "decimal", b = this.formatNumber(y, h);
4472
- m = m.replace(`%${u + 1}`, b);
4482
+ for (let f = 0; f <= n; f++) {
4483
+ const g = this.numberingCounters.get(`${r}-${f}`) ?? 1, p = e.levels.find((d) => d.level === f), c = (p == null ? void 0 : p.format) || "decimal", y = this.formatNumber(g, c);
4484
+ m = m.replace(`%${f + 1}`, y);
4473
4485
  }
4474
4486
  return m;
4475
4487
  }
@@ -4607,7 +4619,7 @@ class Ie {
4607
4619
  <span class="${this.classPrefix}-comment-date">${n}</span>
4608
4620
  </div>
4609
4621
  </div>
4610
- <div class="${this.classPrefix}-comment-content">${this.escapeHtml(a)}</div>
4622
+ <div class="${this.classPrefix}-comment-content">${this.renderMarkdown(a)}</div>
4611
4623
  ${s}
4612
4624
  `, t.addEventListener(
4613
4625
  "mouseenter",
@@ -4618,22 +4630,22 @@ class Ie {
4618
4630
  ), t.addEventListener("click", () => {
4619
4631
  this.selectComment(e.id), this.options.onCommentClick(e);
4620
4632
  });
4621
- const c = t.querySelector(".accept");
4622
- c == null || c.addEventListener("click", (p) => {
4623
- var h, b;
4624
- p.stopPropagation(), (b = (h = this.options).onCommentAccept) == null || b.call(h, e);
4633
+ const h = t.querySelector(".accept");
4634
+ h == null || h.addEventListener("click", (p) => {
4635
+ var c, y;
4636
+ p.stopPropagation(), (y = (c = this.options).onCommentAccept) == null || y.call(c, e);
4625
4637
  });
4626
4638
  const m = t.querySelector(".reject");
4627
4639
  m == null || m.addEventListener("click", (p) => {
4628
- var h, b;
4629
- p.stopPropagation(), (b = (h = this.options).onCommentReject) == null || b.call(h, e);
4640
+ var c, y;
4641
+ p.stopPropagation(), (y = (c = this.options).onCommentReject) == null || y.call(c, e);
4630
4642
  });
4631
- const u = t.querySelector(".edit");
4632
- u == null || u.addEventListener("click", (p) => {
4643
+ const f = t.querySelector(".edit");
4644
+ f == null || f.addEventListener("click", (p) => {
4633
4645
  p.stopPropagation(), this.editComment(e);
4634
4646
  });
4635
- const y = t.querySelector(".delete");
4636
- return y == null || y.addEventListener("click", (p) => {
4647
+ const g = t.querySelector(".delete");
4648
+ return g == null || g.addEventListener("click", (p) => {
4637
4649
  p.stopPropagation(), this.deleteComment(e.id);
4638
4650
  }), t;
4639
4651
  }
@@ -4699,10 +4711,10 @@ class Ie {
4699
4711
  e.children = [o];
4700
4712
  const s = this.commentRanges.get(e.id);
4701
4713
  if (s != null && s.panelElement) {
4702
- const c = s.panelElement.querySelector(
4714
+ const h = s.panelElement.querySelector(
4703
4715
  `.${this.classPrefix}-comment-content`
4704
4716
  );
4705
- c && (c.textContent = r);
4717
+ h && (h.textContent = r);
4706
4718
  }
4707
4719
  this.options.onCommentChange(e, "update");
4708
4720
  }
@@ -4940,9 +4952,9 @@ class Ie {
4940
4952
  const t = this.createElement("table", `${this.classPrefix}-table`);
4941
4953
  if (this.tableVerticalMerges.push(this.currentVerticalMerge), this.currentVerticalMerge = /* @__PURE__ */ new Map(), this.tableBordersStack.push(this.currentTableBorders), this.currentTableBorders = (n = e.props) == null ? void 0 : n.borders, this.currentTableRowCount = ((a = e.children) == null ? void 0 : a.length) || 0, this.currentTableColCount = ((o = e.columns) == null ? void 0 : o.length) || 0, this.currentTableRowIndex = 0, e.columns && e.columns.length > 0) {
4942
4954
  const s = document.createElement("colgroup");
4943
- for (const c of e.columns) {
4955
+ for (const h of e.columns) {
4944
4956
  const m = document.createElement("col");
4945
- c.width && (m.style.width = c.width), s.appendChild(m);
4957
+ h.width && (m.style.width = h.width), s.appendChild(m);
4946
4958
  }
4947
4959
  t.appendChild(s);
4948
4960
  }
@@ -4950,8 +4962,8 @@ class Ie {
4950
4962
  const r = document.createElement("tbody");
4951
4963
  for (const s of e.children || []) {
4952
4964
  this.currentCellCol = 0;
4953
- const c = this.renderTableRow(s);
4954
- r.appendChild(c), this.currentTableRowIndex++;
4965
+ const h = this.renderTableRow(s);
4966
+ r.appendChild(h), this.currentTableRowIndex++;
4955
4967
  }
4956
4968
  return t.appendChild(r), this.currentVerticalMerge = this.tableVerticalMerges.pop() || /* @__PURE__ */ new Map(), this.currentTableBorders = this.tableBordersStack.pop(), t;
4957
4969
  }
@@ -5040,15 +5052,15 @@ class Ie {
5040
5052
  * 应用单元格边框样式
5041
5053
  */
5042
5054
  applyCellBorders(e, t, r, n, a) {
5043
- const o = this.currentTableBorders, s = r === 0, c = r === this.currentTableRowCount - 1, m = n === 0, u = n + a >= this.currentTableColCount;
5044
- let y = t == null ? void 0 : t.top;
5045
- y || (s ? y = o == null ? void 0 : o.top : y = o == null ? void 0 : o.insideH), y && (e.style.borderTop = this.borderToCss(y));
5055
+ const o = this.currentTableBorders, s = r === 0, h = r === this.currentTableRowCount - 1, m = n === 0, f = n + a >= this.currentTableColCount;
5056
+ let g = t == null ? void 0 : t.top;
5057
+ g || (s ? g = o == null ? void 0 : o.top : g = o == null ? void 0 : o.insideH), g && (e.style.borderTop = this.borderToCss(g));
5046
5058
  let p = t == null ? void 0 : t.bottom;
5047
- p || (c ? p = o == null ? void 0 : o.bottom : p = o == null ? void 0 : o.insideH), p && (e.style.borderBottom = this.borderToCss(p));
5048
- let h = t == null ? void 0 : t.left;
5049
- h || (m ? h = o == null ? void 0 : o.left : h = o == null ? void 0 : o.insideV), h && (e.style.borderLeft = this.borderToCss(h));
5050
- let b = t == null ? void 0 : t.right;
5051
- b || (u ? b = o == null ? void 0 : o.right : b = o == null ? void 0 : o.insideV), b && (e.style.borderRight = this.borderToCss(b));
5059
+ p || (h ? p = o == null ? void 0 : o.bottom : p = o == null ? void 0 : o.insideH), p && (e.style.borderBottom = this.borderToCss(p));
5060
+ let c = t == null ? void 0 : t.left;
5061
+ c || (m ? c = o == null ? void 0 : o.left : c = o == null ? void 0 : o.insideV), c && (e.style.borderLeft = this.borderToCss(c));
5062
+ let y = t == null ? void 0 : t.right;
5063
+ y || (f ? y = o == null ? void 0 : o.right : y = o == null ? void 0 : o.insideV), y && (e.style.borderRight = this.borderToCss(y));
5052
5064
  }
5053
5065
  /**
5054
5066
  * 渲染表格行
@@ -5220,9 +5232,9 @@ class Ie {
5220
5232
  r.appendChild(n);
5221
5233
  const a = this.createElement("ol", `${this.classPrefix}-footnotes-list`);
5222
5234
  for (const s of e) {
5223
- const c = this.document.footnotes.get(s);
5224
- if (c) {
5225
- const m = this.renderFootnote(c);
5235
+ const h = this.document.footnotes.get(s);
5236
+ if (h) {
5237
+ const m = this.renderFootnote(h);
5226
5238
  a.appendChild(m);
5227
5239
  }
5228
5240
  }
@@ -5246,8 +5258,8 @@ class Ie {
5246
5258
  for (const o of this.currentEndnoteIds) {
5247
5259
  const s = this.document.endnotes.get(o);
5248
5260
  if (s) {
5249
- const c = this.renderEndnote(s);
5250
- n.appendChild(c);
5261
+ const h = this.renderEndnote(s);
5262
+ n.appendChild(h);
5251
5263
  }
5252
5264
  }
5253
5265
  t.appendChild(n), e.appendChild(t);
@@ -5289,6 +5301,16 @@ class Ie {
5289
5301
  const t = document.createElement("div");
5290
5302
  return t.textContent = e, t.innerHTML;
5291
5303
  }
5304
+ /**
5305
+ * 渲染 Markdown 内容(支持基本语法和换行)
5306
+ */
5307
+ renderMarkdown(e) {
5308
+ let t = this.escapeHtml(e);
5309
+ return t = t.replace(/```([\s\S]*?)```/g, "<pre><code>$1</code></pre>"), t = t.replace(/`([^`]+)`/g, "<code>$1</code>"), t = t.replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>"), t = t.replace(/__(.+?)__/g, "<strong>$1</strong>"), t = t.replace(/\*(.+?)\*/g, "<em>$1</em>"), t = t.replace(/_(.+?)_/g, "<em>$1</em>"), t = t.replace(/~~(.+?)~~/g, "<del>$1</del>"), t = t.replace(
5310
+ /\[([^\]]+)\]\(([^)]+)\)/g,
5311
+ '<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'
5312
+ ), t = t.replace(/\n/g, "<br>"), t;
5313
+ }
5292
5314
  /**
5293
5315
  * 获取文档对象
5294
5316
  */