@factorialco/f0-react 4.44.0 → 4.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/ChatDocxThumbnail-B3DMs45n.js +48 -0
  2. package/dist/ChatPdfThumbnail-BFbYv0sb.js +38 -0
  3. package/dist/ChatSheetThumbnail-BvnxT-4A.js +38 -0
  4. package/dist/ChatTextThumbnail-yVt_iYi7.js +33 -0
  5. package/dist/{DocumentToolbar-D3GqxyBD.js → DocumentToolbar-BLcBoeNU.js} +5 -5
  6. package/dist/DocxViewer-C0K6oFym.js +68 -0
  7. package/dist/{F0AiProcessingOverlay-rViVqtAb.js → F0AiProcessingOverlay-BZka5wSN.js} +713 -761
  8. package/dist/{F0CanvasPanel-VGTPb68G.js → F0CanvasPanel-BDwye32b.js} +10679 -10600
  9. package/dist/{LocationMap-CdKO0X5V.js → LocationMap-NloaE37G.js} +1 -1
  10. package/dist/Printer-B7iDPx2r.js +54 -0
  11. package/dist/SheetViewer-1AsPdzFt.js +108 -0
  12. package/dist/{TextViewer-Dn0MDAXs.js → TextViewer-Ba0xZQdy.js} +2 -2
  13. package/dist/_commonjs-dynamic-modules-BpilXLfW.js +6 -0
  14. package/dist/ai.d.ts +34 -1
  15. package/dist/ai.js +2 -2
  16. package/dist/component-status.js +1 -1
  17. package/dist/{DocxViewer-BIZmtyWY.js → docx-preview-CSg41tKY.js} +971 -1034
  18. package/dist/experimental.d.ts +31 -4
  19. package/dist/experimental.js +10210 -6404
  20. package/dist/f0.css +1 -1
  21. package/dist/f0.d.ts +74 -1
  22. package/dist/f0.js +65853 -299
  23. package/dist/i18n-provider-defaults.d.ts +4 -0
  24. package/dist/i18n-provider-defaults.js +5 -1
  25. package/dist/{index-DoDUaTro.js → index-3x-af82e.js} +14657 -14408
  26. package/dist/index-BuP079h-.js +545 -0
  27. package/dist/index.css +1 -1
  28. package/dist/index2.css +1 -0
  29. package/dist/pdfWorker-XwYoO_oV.js +13118 -0
  30. package/dist/pdfWorker.css +1 -0
  31. package/dist/sheetPreview-5qeAOp0W.js +35 -0
  32. package/dist/styles.css +1 -1
  33. package/package.json +2 -1
  34. package/tailwind.config.ts +8 -0
  35. package/dist/SheetViewer-HsR5toIL.js +0 -137
  36. package/dist/f0-BaDuQbAV.js +0 -79441
@@ -1,21 +1,18 @@
1
- import { jsxs as qt, jsx as zt } from "react/jsx-runtime";
2
- import { useRef as Se, useState as Ce, useEffect as xe } from "react";
3
- import { m as Rt, n as Pe, u as Ae, S as Ee } from "./F0CanvasPanel-VGTPb68G.js";
4
- import { c as Tt } from "./f0-BaDuQbAV.js";
5
- import { u as Ne, D as Me } from "./DocumentToolbar-D3GqxyBD.js";
6
- var Ut = { exports: {} };
7
- var Jt;
8
- function Be() {
9
- return Jt || (Jt = 1, (function(l, e) {
1
+ import { m as zt, n as _e } from "./F0CanvasPanel-BDwye32b.js";
2
+ import { c as Rt } from "./_commonjs-dynamic-modules-BpilXLfW.js";
3
+ var jt = { exports: {} };
4
+ var Yt;
5
+ function we() {
6
+ return Yt || (Yt = 1, (function(c, e) {
10
7
  (function(t) {
11
- l.exports = t();
8
+ c.exports = t();
12
9
  })(function() {
13
10
  return (function t(r, a, n) {
14
- function o(_, w) {
11
+ function o(_, S) {
15
12
  if (!a[_]) {
16
13
  if (!r[_]) {
17
- var b = typeof Tt == "function" && Tt;
18
- if (!w && b) return b(_, !0);
14
+ var v = typeof Rt == "function" && Rt;
15
+ if (!S && v) return v(_, !0);
19
16
  if (i) return i(_, !0);
20
17
  var y = new Error("Cannot find module '" + _ + "'");
21
18
  throw y.code = "MODULE_NOT_FOUND", y;
@@ -28,35 +25,35 @@ function Be() {
28
25
  }
29
26
  return a[_].exports;
30
27
  }
31
- for (var i = typeof Tt == "function" && Tt, h = 0; h < n.length; h++) o(n[h]);
28
+ for (var i = typeof Rt == "function" && Rt, h = 0; h < n.length; h++) o(n[h]);
32
29
  return o;
33
30
  })({ 1: [function(t, r, a) {
34
31
  var n = t("./utils"), o = t("./support"), i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
35
32
  a.encode = function(h) {
36
- for (var _, w, b, y, d, k, u, m = [], f = 0, v = h.length, x = v, E = n.getTypeOf(h) !== "string"; f < h.length; ) x = v - f, b = E ? (_ = h[f++], w = f < v ? h[f++] : 0, f < v ? h[f++] : 0) : (_ = h.charCodeAt(f++), w = f < v ? h.charCodeAt(f++) : 0, f < v ? h.charCodeAt(f++) : 0), y = _ >> 2, d = (3 & _) << 4 | w >> 4, k = 1 < x ? (15 & w) << 2 | b >> 6 : 64, u = 2 < x ? 63 & b : 64, m.push(i.charAt(y) + i.charAt(d) + i.charAt(k) + i.charAt(u));
33
+ for (var _, S, v, y, d, k, u, m = [], f = 0, b = h.length, x = b, E = n.getTypeOf(h) !== "string"; f < h.length; ) x = b - f, v = E ? (_ = h[f++], S = f < b ? h[f++] : 0, f < b ? h[f++] : 0) : (_ = h.charCodeAt(f++), S = f < b ? h.charCodeAt(f++) : 0, f < b ? h.charCodeAt(f++) : 0), y = _ >> 2, d = (3 & _) << 4 | S >> 4, k = 1 < x ? (15 & S) << 2 | v >> 6 : 64, u = 2 < x ? 63 & v : 64, m.push(i.charAt(y) + i.charAt(d) + i.charAt(k) + i.charAt(u));
37
34
  return m.join("");
38
35
  }, a.decode = function(h) {
39
- var _, w, b, y, d, k, u = 0, m = 0, f = "data:";
36
+ var _, S, v, y, d, k, u = 0, m = 0, f = "data:";
40
37
  if (h.substr(0, f.length) === f) throw new Error("Invalid base64 input, it looks like a data url.");
41
- var v, x = 3 * (h = h.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
38
+ var b, x = 3 * (h = h.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
42
39
  if (h.charAt(h.length - 1) === i.charAt(64) && x--, h.charAt(h.length - 2) === i.charAt(64) && x--, x % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
43
- for (v = o.uint8array ? new Uint8Array(0 | x) : new Array(0 | x); u < h.length; ) _ = i.indexOf(h.charAt(u++)) << 2 | (y = i.indexOf(h.charAt(u++))) >> 4, w = (15 & y) << 4 | (d = i.indexOf(h.charAt(u++))) >> 2, b = (3 & d) << 6 | (k = i.indexOf(h.charAt(u++))), v[m++] = _, d !== 64 && (v[m++] = w), k !== 64 && (v[m++] = b);
44
- return v;
40
+ for (b = o.uint8array ? new Uint8Array(0 | x) : new Array(0 | x); u < h.length; ) _ = i.indexOf(h.charAt(u++)) << 2 | (y = i.indexOf(h.charAt(u++))) >> 4, S = (15 & y) << 4 | (d = i.indexOf(h.charAt(u++))) >> 2, v = (3 & d) << 6 | (k = i.indexOf(h.charAt(u++))), b[m++] = _, d !== 64 && (b[m++] = S), k !== 64 && (b[m++] = v);
41
+ return b;
45
42
  };
46
43
  }, { "./support": 30, "./utils": 32 }], 2: [function(t, r, a) {
47
44
  var n = t("./external"), o = t("./stream/DataWorker"), i = t("./stream/Crc32Probe"), h = t("./stream/DataLengthProbe");
48
- function _(w, b, y, d, k) {
49
- this.compressedSize = w, this.uncompressedSize = b, this.crc32 = y, this.compression = d, this.compressedContent = k;
45
+ function _(S, v, y, d, k) {
46
+ this.compressedSize = S, this.uncompressedSize = v, this.crc32 = y, this.compression = d, this.compressedContent = k;
50
47
  }
51
48
  _.prototype = { getContentWorker: function() {
52
- var w = new o(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")), b = this;
53
- return w.on("end", function() {
54
- if (this.streamInfo.data_length !== b.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
55
- }), w;
49
+ var S = new o(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")), v = this;
50
+ return S.on("end", function() {
51
+ if (this.streamInfo.data_length !== v.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
52
+ }), S;
56
53
  }, getCompressedWorker: function() {
57
54
  return new o(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
58
- } }, _.createWorkerFrom = function(w, b, y) {
59
- return w.pipe(new i()).pipe(new h("uncompressedSize")).pipe(b.compressWorker(y)).pipe(new h("compressedSize")).withStreamInfo("compression", b);
55
+ } }, _.createWorkerFrom = function(S, v, y) {
56
+ return S.pipe(new i()).pipe(new h("uncompressedSize")).pipe(v.compressWorker(y)).pipe(new h("compressedSize")).withStreamInfo("compression", v);
60
57
  }, r.exports = _;
61
58
  }, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(t, r, a) {
62
59
  var n = t("./stream/GenericWorker");
@@ -69,21 +66,21 @@ function Be() {
69
66
  var n = t("./utils"), o = (function() {
70
67
  for (var i, h = [], _ = 0; _ < 256; _++) {
71
68
  i = _;
72
- for (var w = 0; w < 8; w++) i = 1 & i ? 3988292384 ^ i >>> 1 : i >>> 1;
69
+ for (var S = 0; S < 8; S++) i = 1 & i ? 3988292384 ^ i >>> 1 : i >>> 1;
73
70
  h[_] = i;
74
71
  }
75
72
  return h;
76
73
  })();
77
74
  r.exports = function(i, h) {
78
- return i !== void 0 && i.length ? n.getTypeOf(i) !== "string" ? (function(_, w, b, y) {
79
- var d = o, k = y + b;
75
+ return i !== void 0 && i.length ? n.getTypeOf(i) !== "string" ? (function(_, S, v, y) {
76
+ var d = o, k = y + v;
80
77
  _ ^= -1;
81
- for (var u = y; u < k; u++) _ = _ >>> 8 ^ d[255 & (_ ^ w[u])];
78
+ for (var u = y; u < k; u++) _ = _ >>> 8 ^ d[255 & (_ ^ S[u])];
82
79
  return -1 ^ _;
83
- })(0 | h, i, i.length, 0) : (function(_, w, b, y) {
84
- var d = o, k = y + b;
80
+ })(0 | h, i, i.length, 0) : (function(_, S, v, y) {
81
+ var d = o, k = y + v;
85
82
  _ ^= -1;
86
- for (var u = y; u < k; u++) _ = _ >>> 8 ^ d[255 & (_ ^ w.charCodeAt(u))];
83
+ for (var u = y; u < k; u++) _ = _ >>> 8 ^ d[255 & (_ ^ S.charCodeAt(u))];
87
84
  return -1 ^ _;
88
85
  })(0 | h, i, i.length, 0) : 0;
89
86
  };
@@ -94,25 +91,25 @@ function Be() {
94
91
  n = typeof Promise < "u" ? Promise : t("lie"), r.exports = { Promise: n };
95
92
  }, { lie: 37 }], 7: [function(t, r, a) {
96
93
  var n = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = t("pako"), i = t("./utils"), h = t("./stream/GenericWorker"), _ = n ? "uint8array" : "array";
97
- function w(b, y) {
98
- h.call(this, "FlateWorker/" + b), this._pako = null, this._pakoAction = b, this._pakoOptions = y, this.meta = {};
94
+ function S(v, y) {
95
+ h.call(this, "FlateWorker/" + v), this._pako = null, this._pakoAction = v, this._pakoOptions = y, this.meta = {};
99
96
  }
100
- a.magic = "\b\0", i.inherits(w, h), w.prototype.processChunk = function(b) {
101
- this.meta = b.meta, this._pako === null && this._createPako(), this._pako.push(i.transformTo(_, b.data), !1);
102
- }, w.prototype.flush = function() {
97
+ a.magic = "\b\0", i.inherits(S, h), S.prototype.processChunk = function(v) {
98
+ this.meta = v.meta, this._pako === null && this._createPako(), this._pako.push(i.transformTo(_, v.data), !1);
99
+ }, S.prototype.flush = function() {
103
100
  h.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
104
- }, w.prototype.cleanUp = function() {
101
+ }, S.prototype.cleanUp = function() {
105
102
  h.prototype.cleanUp.call(this), this._pako = null;
106
- }, w.prototype._createPako = function() {
103
+ }, S.prototype._createPako = function() {
107
104
  this._pako = new o[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
108
- var b = this;
105
+ var v = this;
109
106
  this._pako.onData = function(y) {
110
- b.push({ data: y, meta: b.meta });
107
+ v.push({ data: y, meta: v.meta });
111
108
  };
112
- }, a.compressWorker = function(b) {
113
- return new w("Deflate", b);
109
+ }, a.compressWorker = function(v) {
110
+ return new S("Deflate", v);
114
111
  }, a.uncompressWorker = function() {
115
- return new w("Inflate", {});
112
+ return new S("Inflate", {});
116
113
  };
117
114
  }, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(t, r, a) {
118
115
  function n(d, k) {
@@ -120,23 +117,23 @@ function Be() {
120
117
  for (u = 0; u < k; u++) m += String.fromCharCode(255 & d), d >>>= 8;
121
118
  return m;
122
119
  }
123
- function o(d, k, u, m, f, v) {
124
- var x, E, A = d.file, L = d.compression, F = v !== _.utf8encode, H = i.transformTo("string", v(A.name)), T = i.transformTo("string", _.utf8encode(A.name)), V = A.comment, Q = i.transformTo("string", v(V)), S = i.transformTo("string", _.utf8encode(V)), I = T.length !== A.name.length, c = S.length !== V.length, D = "", et = "", $ = "", rt = A.dir, W = A.date, tt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
120
+ function o(d, k, u, m, f, b) {
121
+ var x, E, A = d.file, L = d.compression, F = b !== _.utf8encode, H = i.transformTo("string", b(A.name)), T = i.transformTo("string", _.utf8encode(A.name)), V = A.comment, Q = i.transformTo("string", b(V)), w = i.transformTo("string", _.utf8encode(V)), I = T.length !== A.name.length, l = w.length !== V.length, D = "", et = "", $ = "", rt = A.dir, W = A.date, tt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
125
122
  k && !u || (tt.crc32 = d.crc32, tt.compressedSize = d.compressedSize, tt.uncompressedSize = d.uncompressedSize);
126
123
  var z = 0;
127
- k && (z |= 8), F || !I && !c || (z |= 2048);
124
+ k && (z |= 8), F || !I && !l || (z |= 2048);
128
125
  var M = 0, J = 0;
129
126
  rt && (M |= 16), f === "UNIX" ? (J = 798, M |= (function(X, ct) {
130
127
  var mt = X;
131
128
  return X || (mt = ct ? 16893 : 33204), (65535 & mt) << 16;
132
129
  })(A.unixPermissions, rt)) : (J = 20, M |= (function(X) {
133
130
  return 63 & (X || 0);
134
- })(A.dosPermissions)), x = W.getUTCHours(), x <<= 6, x |= W.getUTCMinutes(), x <<= 5, x |= W.getUTCSeconds() / 2, E = W.getUTCFullYear() - 1980, E <<= 4, E |= W.getUTCMonth() + 1, E <<= 5, E |= W.getUTCDate(), I && (et = n(1, 1) + n(w(H), 4) + T, D += "up" + n(et.length, 2) + et), c && ($ = n(1, 1) + n(w(Q), 4) + S, D += "uc" + n($.length, 2) + $);
131
+ })(A.dosPermissions)), x = W.getUTCHours(), x <<= 6, x |= W.getUTCMinutes(), x <<= 5, x |= W.getUTCSeconds() / 2, E = W.getUTCFullYear() - 1980, E <<= 4, E |= W.getUTCMonth() + 1, E <<= 5, E |= W.getUTCDate(), I && (et = n(1, 1) + n(S(H), 4) + T, D += "up" + n(et.length, 2) + et), l && ($ = n(1, 1) + n(S(Q), 4) + w, D += "uc" + n($.length, 2) + $);
135
132
  var K = "";
136
133
  return K += `
137
- \0`, K += n(z, 2), K += L.magic, K += n(x, 2), K += n(E, 2), K += n(tt.crc32, 4), K += n(tt.compressedSize, 4), K += n(tt.uncompressedSize, 4), K += n(H.length, 2), K += n(D.length, 2), { fileRecord: b.LOCAL_FILE_HEADER + K + H + D, dirRecord: b.CENTRAL_FILE_HEADER + n(J, 2) + K + n(Q.length, 2) + "\0\0\0\0" + n(M, 4) + n(m, 4) + H + D + Q };
134
+ \0`, K += n(z, 2), K += L.magic, K += n(x, 2), K += n(E, 2), K += n(tt.crc32, 4), K += n(tt.compressedSize, 4), K += n(tt.uncompressedSize, 4), K += n(H.length, 2), K += n(D.length, 2), { fileRecord: v.LOCAL_FILE_HEADER + K + H + D, dirRecord: v.CENTRAL_FILE_HEADER + n(J, 2) + K + n(Q.length, 2) + "\0\0\0\0" + n(M, 4) + n(m, 4) + H + D + Q };
138
135
  }
139
- var i = t("../utils"), h = t("../stream/GenericWorker"), _ = t("../utf8"), w = t("../crc32"), b = t("../signature");
136
+ var i = t("../utils"), h = t("../stream/GenericWorker"), _ = t("../utf8"), S = t("../crc32"), v = t("../signature");
140
137
  function y(d, k, u, m) {
141
138
  h.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = k, this.zipPlatform = u, this.encodeFileName = m, this.streamFiles = d, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
142
139
  }
@@ -154,15 +151,15 @@ function Be() {
154
151
  this.accumulate = !1;
155
152
  var k = this.streamFiles && !d.file.dir, u = o(d, k, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
156
153
  if (this.dirRecords.push(u.dirRecord), k) this.push({ data: (function(m) {
157
- return b.DATA_DESCRIPTOR + n(m.crc32, 4) + n(m.compressedSize, 4) + n(m.uncompressedSize, 4);
154
+ return v.DATA_DESCRIPTOR + n(m.crc32, 4) + n(m.compressedSize, 4) + n(m.uncompressedSize, 4);
158
155
  })(d), meta: { percent: 100 } });
159
156
  else for (this.push({ data: u.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
160
157
  this.currentFile = null;
161
158
  }, y.prototype.flush = function() {
162
159
  for (var d = this.bytesWritten, k = 0; k < this.dirRecords.length; k++) this.push({ data: this.dirRecords[k], meta: { percent: 100 } });
163
- var u = this.bytesWritten - d, m = (function(f, v, x, E, A) {
160
+ var u = this.bytesWritten - d, m = (function(f, b, x, E, A) {
164
161
  var L = i.transformTo("string", A(E));
165
- return b.CENTRAL_DIRECTORY_END + "\0\0\0\0" + n(f, 2) + n(f, 2) + n(v, 4) + n(x, 4) + n(L.length, 2) + L;
162
+ return v.CENTRAL_DIRECTORY_END + "\0\0\0\0" + n(f, 2) + n(f, 2) + n(b, 4) + n(x, 4) + n(L.length, 2) + L;
166
163
  })(this.dirRecords.length, u, d, this.zipComment, this.encodeFileName);
167
164
  this.push({ data: m, meta: { percent: 100 } });
168
165
  }, y.prototype.prepareNextSource = function() {
@@ -194,21 +191,21 @@ function Be() {
194
191
  }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(t, r, a) {
195
192
  var n = t("../compressions"), o = t("./ZipFileWorker");
196
193
  a.generateWorker = function(i, h, _) {
197
- var w = new o(h.streamFiles, _, h.platform, h.encodeFileName), b = 0;
194
+ var S = new o(h.streamFiles, _, h.platform, h.encodeFileName), v = 0;
198
195
  try {
199
196
  i.forEach(function(y, d) {
200
- b++;
201
- var k = (function(v, x) {
202
- var E = v || x, A = n[E];
197
+ v++;
198
+ var k = (function(b, x) {
199
+ var E = b || x, A = n[E];
203
200
  if (!A) throw new Error(E + " is not a valid compression method !");
204
201
  return A;
205
202
  })(d.options.compression, h.compression), u = d.options.compressionOptions || h.compressionOptions || {}, m = d.dir, f = d.date;
206
- d._compressWorker(k, u).withStreamInfo("file", { name: y, dir: m, date: f, comment: d.comment || "", unixPermissions: d.unixPermissions, dosPermissions: d.dosPermissions }).pipe(w);
207
- }), w.entriesCount = b;
203
+ d._compressWorker(k, u).withStreamInfo("file", { name: y, dir: m, date: f, comment: d.comment || "", unixPermissions: d.unixPermissions, dosPermissions: d.dosPermissions }).pipe(S);
204
+ }), S.entriesCount = v;
208
205
  } catch (y) {
209
- w.error(y);
206
+ S.error(y);
210
207
  }
211
- return w;
208
+ return S;
212
209
  };
213
210
  }, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(t, r, a) {
214
211
  function n() {
@@ -224,8 +221,8 @@ function Be() {
224
221
  return new n().loadAsync(o, i);
225
222
  }, n.external = t("./external"), r.exports = n;
226
223
  }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(t, r, a) {
227
- var n = t("./utils"), o = t("./external"), i = t("./utf8"), h = t("./zipEntries"), _ = t("./stream/Crc32Probe"), w = t("./nodejsUtils");
228
- function b(y) {
224
+ var n = t("./utils"), o = t("./external"), i = t("./utf8"), h = t("./zipEntries"), _ = t("./stream/Crc32Probe"), S = t("./nodejsUtils");
225
+ function v(y) {
229
226
  return new o.Promise(function(d, k) {
230
227
  var u = y.decompressed.getContentWorker().pipe(new _());
231
228
  u.on("error", function(m) {
@@ -237,16 +234,16 @@ function Be() {
237
234
  }
238
235
  r.exports = function(y, d) {
239
236
  var k = this;
240
- return d = n.extend(d || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: i.utf8decode }), w.isNode && w.isStream(y) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : n.prepareContent("the loaded zip file", y, !0, d.optimizedBinaryString, d.base64).then(function(u) {
237
+ return d = n.extend(d || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: i.utf8decode }), S.isNode && S.isStream(y) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : n.prepareContent("the loaded zip file", y, !0, d.optimizedBinaryString, d.base64).then(function(u) {
241
238
  var m = new h(d);
242
239
  return m.load(u), m;
243
240
  }).then(function(u) {
244
241
  var m = [o.Promise.resolve(u)], f = u.files;
245
- if (d.checkCRC32) for (var v = 0; v < f.length; v++) m.push(b(f[v]));
242
+ if (d.checkCRC32) for (var b = 0; b < f.length; b++) m.push(v(f[b]));
246
243
  return o.Promise.all(m);
247
244
  }).then(function(u) {
248
- for (var m = u.shift(), f = m.files, v = 0; v < f.length; v++) {
249
- var x = f[v], E = x.fileNameStr, A = n.resolve(x.fileNameStr);
245
+ for (var m = u.shift(), f = m.files, b = 0; b < f.length; b++) {
246
+ var x = f[b], E = x.fileNameStr, A = n.resolve(x.fileNameStr);
250
247
  k.file(A, x.decompressed, { binary: !0, optimizedBinaryString: !0, date: x.date, dir: x.dir, comment: x.fileCommentStr.length ? x.fileCommentStr : null, unixPermissions: x.unixPermissions, dosPermissions: x.dosPermissions, createFolders: d.createFolders }), x.dir || (k.file(A).unsafeOriginalName = E);
251
248
  }
252
249
  return m.zipComment.length && (k.comment = m.zipComment), k;
@@ -259,10 +256,10 @@ function Be() {
259
256
  }
260
257
  n.inherits(i, o), i.prototype._bindStream = function(h) {
261
258
  var _ = this;
262
- (this._stream = h).pause(), h.on("data", function(w) {
263
- _.push({ data: w, meta: { percent: 0 } });
264
- }).on("error", function(w) {
265
- _.isPaused ? this.generatedError = w : _.error(w);
259
+ (this._stream = h).pause(), h.on("data", function(S) {
260
+ _.push({ data: S, meta: { percent: 0 } });
261
+ }).on("error", function(S) {
262
+ _.isPaused ? this.generatedError = S : _.error(S);
266
263
  }).on("end", function() {
267
264
  _.isPaused ? _._upstreamEnded = !0 : _.end();
268
265
  });
@@ -275,13 +272,13 @@ function Be() {
275
272
  var n = t("readable-stream").Readable;
276
273
  function o(i, h, _) {
277
274
  n.call(this, h), this._helper = i;
278
- var w = this;
279
- i.on("data", function(b, y) {
280
- w.push(b) || w._helper.pause(), _ && _(y);
281
- }).on("error", function(b) {
282
- w.emit("error", b);
275
+ var S = this;
276
+ i.on("data", function(v, y) {
277
+ S.push(v) || S._helper.pause(), _ && _(y);
278
+ }).on("error", function(v) {
279
+ S.emit("error", v);
283
280
  }).on("end", function() {
284
- w.push(null);
281
+ S.push(null);
285
282
  });
286
283
  }
287
284
  t("../utils").inherits(o, n), o.prototype._read = function() {
@@ -303,23 +300,23 @@ function Be() {
303
300
  } };
304
301
  }, {}], 15: [function(t, r, a) {
305
302
  function n(A, L, F) {
306
- var H, T = i.getTypeOf(L), V = i.extend(F || {}, w);
307
- V.date = V.date || /* @__PURE__ */ new Date(), V.compression !== null && (V.compression = V.compression.toUpperCase()), typeof V.unixPermissions == "string" && (V.unixPermissions = parseInt(V.unixPermissions, 8)), V.unixPermissions && 16384 & V.unixPermissions && (V.dir = !0), V.dosPermissions && 16 & V.dosPermissions && (V.dir = !0), V.dir && (A = f(A)), V.createFolders && (H = m(A)) && v.call(this, H, !0);
303
+ var H, T = i.getTypeOf(L), V = i.extend(F || {}, S);
304
+ V.date = V.date || /* @__PURE__ */ new Date(), V.compression !== null && (V.compression = V.compression.toUpperCase()), typeof V.unixPermissions == "string" && (V.unixPermissions = parseInt(V.unixPermissions, 8)), V.unixPermissions && 16384 & V.unixPermissions && (V.dir = !0), V.dosPermissions && 16 & V.dosPermissions && (V.dir = !0), V.dir && (A = f(A)), V.createFolders && (H = m(A)) && b.call(this, H, !0);
308
305
  var Q = T === "string" && V.binary === !1 && V.base64 === !1;
309
- F && F.binary !== void 0 || (V.binary = !Q), (L instanceof b && L.uncompressedSize === 0 || V.dir || !L || L.length === 0) && (V.base64 = !1, V.binary = !0, L = "", V.compression = "STORE", T = "string");
310
- var S = null;
311
- S = L instanceof b || L instanceof h ? L : k.isNode && k.isStream(L) ? new u(A, L) : i.prepareContent(A, L, V.binary, V.optimizedBinaryString, V.base64);
312
- var I = new y(A, S, V);
306
+ F && F.binary !== void 0 || (V.binary = !Q), (L instanceof v && L.uncompressedSize === 0 || V.dir || !L || L.length === 0) && (V.base64 = !1, V.binary = !0, L = "", V.compression = "STORE", T = "string");
307
+ var w = null;
308
+ w = L instanceof v || L instanceof h ? L : k.isNode && k.isStream(L) ? new u(A, L) : i.prepareContent(A, L, V.binary, V.optimizedBinaryString, V.base64);
309
+ var I = new y(A, w, V);
313
310
  this.files[A] = I;
314
311
  }
315
- var o = t("./utf8"), i = t("./utils"), h = t("./stream/GenericWorker"), _ = t("./stream/StreamHelper"), w = t("./defaults"), b = t("./compressedObject"), y = t("./zipObject"), d = t("./generate"), k = t("./nodejsUtils"), u = t("./nodejs/NodejsStreamInputAdapter"), m = function(A) {
312
+ var o = t("./utf8"), i = t("./utils"), h = t("./stream/GenericWorker"), _ = t("./stream/StreamHelper"), S = t("./defaults"), v = t("./compressedObject"), y = t("./zipObject"), d = t("./generate"), k = t("./nodejsUtils"), u = t("./nodejs/NodejsStreamInputAdapter"), m = function(A) {
316
313
  A.slice(-1) === "/" && (A = A.substring(0, A.length - 1));
317
314
  var L = A.lastIndexOf("/");
318
315
  return 0 < L ? A.substring(0, L) : "";
319
316
  }, f = function(A) {
320
317
  return A.slice(-1) !== "/" && (A += "/"), A;
321
- }, v = function(A, L) {
322
- return L = L !== void 0 ? L : w.createFolders, A = f(A), this.files[A] || n.call(this, A, null, { dir: !0, createFolders: L }), this.files[A];
318
+ }, b = function(A, L) {
319
+ return L = L !== void 0 ? L : S.createFolders, A = f(A), this.files[A] || n.call(this, A, null, { dir: !0, createFolders: L }), this.files[A];
323
320
  };
324
321
  function x(A) {
325
322
  return Object.prototype.toString.call(A) === "[object RegExp]";
@@ -349,7 +346,7 @@ function Be() {
349
346
  if (x(A)) return this.filter(function(T, V) {
350
347
  return V.dir && A.test(T);
351
348
  });
352
- var L = this.root + A, F = v.call(this, L), H = this.clone();
349
+ var L = this.root + A, F = b.call(this, L), H = this.clone();
353
350
  return H.root = F.name, H;
354
351
  }, remove: function(A) {
355
352
  A = this.root + A;
@@ -389,11 +386,11 @@ function Be() {
389
386
  t("../utils").inherits(o, n), o.prototype.byteAt = function(i) {
390
387
  return this.data[this.zero + i];
391
388
  }, o.prototype.lastIndexOfSignature = function(i) {
392
- for (var h = i.charCodeAt(0), _ = i.charCodeAt(1), w = i.charCodeAt(2), b = i.charCodeAt(3), y = this.length - 4; 0 <= y; --y) if (this.data[y] === h && this.data[y + 1] === _ && this.data[y + 2] === w && this.data[y + 3] === b) return y - this.zero;
389
+ for (var h = i.charCodeAt(0), _ = i.charCodeAt(1), S = i.charCodeAt(2), v = i.charCodeAt(3), y = this.length - 4; 0 <= y; --y) if (this.data[y] === h && this.data[y + 1] === _ && this.data[y + 2] === S && this.data[y + 3] === v) return y - this.zero;
393
390
  return -1;
394
391
  }, o.prototype.readAndCheckSignature = function(i) {
395
- var h = i.charCodeAt(0), _ = i.charCodeAt(1), w = i.charCodeAt(2), b = i.charCodeAt(3), y = this.readData(4);
396
- return h === y[0] && _ === y[1] && w === y[2] && b === y[3];
392
+ var h = i.charCodeAt(0), _ = i.charCodeAt(1), S = i.charCodeAt(2), v = i.charCodeAt(3), y = this.readData(4);
393
+ return h === y[0] && _ === y[1] && S === y[2] && v === y[3];
397
394
  }, o.prototype.readData = function(i) {
398
395
  if (this.checkOffset(i), i === 0) return [];
399
396
  var h = this.data.slice(this.zero + this.index, this.zero + this.index + i);
@@ -463,10 +460,10 @@ function Be() {
463
460
  return this.index += i, h;
464
461
  }, r.exports = o;
465
462
  }, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(t, r, a) {
466
- var n = t("../utils"), o = t("../support"), i = t("./ArrayReader"), h = t("./StringReader"), _ = t("./NodeBufferReader"), w = t("./Uint8ArrayReader");
467
- r.exports = function(b) {
468
- var y = n.getTypeOf(b);
469
- return n.checkSupport(y), y !== "string" || o.uint8array ? y === "nodebuffer" ? new _(b) : o.uint8array ? new w(n.transformTo("uint8array", b)) : new i(n.transformTo("array", b)) : new h(b);
463
+ var n = t("../utils"), o = t("../support"), i = t("./ArrayReader"), h = t("./StringReader"), _ = t("./NodeBufferReader"), S = t("./Uint8ArrayReader");
464
+ r.exports = function(v) {
465
+ var y = n.getTypeOf(v);
466
+ return n.checkSupport(y), y !== "string" || o.uint8array ? y === "nodebuffer" ? new _(v) : o.uint8array ? new S(n.transformTo("uint8array", v)) : new i(n.transformTo("array", v)) : new h(v);
470
467
  };
471
468
  }, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(t, r, a) {
472
469
  a.LOCAL_FILE_HEADER = "PK", a.CENTRAL_FILE_HEADER = "PK", a.CENTRAL_DIRECTORY_END = "PK", a.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", a.ZIP64_CENTRAL_DIRECTORY_END = "PK", a.DATA_DESCRIPTOR = "PK\x07\b";
@@ -503,10 +500,10 @@ function Be() {
503
500
  function i(h) {
504
501
  o.call(this, "DataWorker");
505
502
  var _ = this;
506
- this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, h.then(function(w) {
507
- _.dataIsReady = !0, _.data = w, _.max = w && w.length || 0, _.type = n.getTypeOf(w), _.isPaused || _._tickAndRepeat();
508
- }, function(w) {
509
- _.error(w);
503
+ this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, h.then(function(S) {
504
+ _.dataIsReady = !0, _.data = S, _.max = S && S.length || 0, _.type = n.getTypeOf(S), _.isPaused || _._tickAndRepeat();
505
+ }, function(S) {
506
+ _.error(S);
510
507
  });
511
508
  }
512
509
  n.inherits(i, o), i.prototype.cleanUp = function() {
@@ -589,18 +586,18 @@ function Be() {
589
586
  return this.previous ? this.previous + " -> " + o : o;
590
587
  } }, r.exports = n;
591
588
  }, {}], 29: [function(t, r, a) {
592
- var n = t("../utils"), o = t("./ConvertWorker"), i = t("./GenericWorker"), h = t("../base64"), _ = t("../support"), w = t("../external"), b = null;
589
+ var n = t("../utils"), o = t("./ConvertWorker"), i = t("./GenericWorker"), h = t("../base64"), _ = t("../support"), S = t("../external"), v = null;
593
590
  if (_.nodestream) try {
594
- b = t("../nodejs/NodejsStreamOutputAdapter");
591
+ v = t("../nodejs/NodejsStreamOutputAdapter");
595
592
  } catch {
596
593
  }
597
594
  function y(k, u) {
598
- return new w.Promise(function(m, f) {
599
- var v = [], x = k._internalType, E = k._outputType, A = k._mimeType;
595
+ return new S.Promise(function(m, f) {
596
+ var b = [], x = k._internalType, E = k._outputType, A = k._mimeType;
600
597
  k.on("data", function(L, F) {
601
- v.push(L), u && u(F);
598
+ b.push(L), u && u(F);
602
599
  }).on("error", function(L) {
603
- v = [], f(L);
600
+ b = [], f(L);
604
601
  }).on("end", function() {
605
602
  try {
606
603
  var L = (function(F, H, T) {
@@ -613,27 +610,27 @@ function Be() {
613
610
  return n.transformTo(F, H);
614
611
  }
615
612
  })(E, (function(F, H) {
616
- var T, V = 0, Q = null, S = 0;
617
- for (T = 0; T < H.length; T++) S += H[T].length;
613
+ var T, V = 0, Q = null, w = 0;
614
+ for (T = 0; T < H.length; T++) w += H[T].length;
618
615
  switch (F) {
619
616
  case "string":
620
617
  return H.join("");
621
618
  case "array":
622
619
  return Array.prototype.concat.apply([], H);
623
620
  case "uint8array":
624
- for (Q = new Uint8Array(S), T = 0; T < H.length; T++) Q.set(H[T], V), V += H[T].length;
621
+ for (Q = new Uint8Array(w), T = 0; T < H.length; T++) Q.set(H[T], V), V += H[T].length;
625
622
  return Q;
626
623
  case "nodebuffer":
627
624
  return Buffer.concat(H);
628
625
  default:
629
626
  throw new Error("concat : unsupported type '" + F + "'");
630
627
  }
631
- })(x, v), A);
628
+ })(x, b), A);
632
629
  m(L);
633
630
  } catch (F) {
634
631
  f(F);
635
632
  }
636
- v = [];
633
+ b = [];
637
634
  }).resume();
638
635
  });
639
636
  }
@@ -649,8 +646,8 @@ function Be() {
649
646
  }
650
647
  try {
651
648
  this._internalType = f, this._outputType = u, this._mimeType = m, n.checkSupport(f), this._worker = k.pipe(new o(f)), k.lock();
652
- } catch (v) {
653
- this._worker = new i("error"), this._worker.error(v);
649
+ } catch (b) {
650
+ this._worker = new i("error"), this._worker.error(b);
654
651
  }
655
652
  }
656
653
  d.prototype = { accumulate: function(k) {
@@ -668,7 +665,7 @@ function Be() {
668
665
  return this._worker.pause(), this;
669
666
  }, toNodejsStream: function(k) {
670
667
  if (n.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
671
- return new b(this, { objectMode: this._outputType !== "nodebuffer" }, k);
668
+ return new v(this, { objectMode: this._outputType !== "nodebuffer" }, k);
672
669
  } }, r.exports = d;
673
670
  }, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(t, r, a) {
674
671
  if (a.base64 = !0, a.array = !0, a.string = !0, a.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", a.nodebuffer = typeof Buffer < "u", a.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") a.blob = !1;
@@ -691,9 +688,9 @@ function Be() {
691
688
  a.nodestream = !1;
692
689
  }
693
690
  }, { "readable-stream": 16 }], 31: [function(t, r, a) {
694
- for (var n = t("./utils"), o = t("./support"), i = t("./nodejsUtils"), h = t("./stream/GenericWorker"), _ = new Array(256), w = 0; w < 256; w++) _[w] = 252 <= w ? 6 : 248 <= w ? 5 : 240 <= w ? 4 : 224 <= w ? 3 : 192 <= w ? 2 : 1;
691
+ for (var n = t("./utils"), o = t("./support"), i = t("./nodejsUtils"), h = t("./stream/GenericWorker"), _ = new Array(256), S = 0; S < 256; S++) _[S] = 252 <= S ? 6 : 248 <= S ? 5 : 240 <= S ? 4 : 224 <= S ? 3 : 192 <= S ? 2 : 1;
695
692
  _[254] = _[254] = 1;
696
- function b() {
693
+ function v() {
697
694
  h.call(this, "utf-8 decode"), this.leftOver = null;
698
695
  }
699
696
  function y() {
@@ -701,23 +698,23 @@ function Be() {
701
698
  }
702
699
  a.utf8encode = function(d) {
703
700
  return o.nodebuffer ? i.newBufferFrom(d, "utf-8") : (function(k) {
704
- var u, m, f, v, x, E = k.length, A = 0;
705
- for (v = 0; v < E; v++) (64512 & (m = k.charCodeAt(v))) == 55296 && v + 1 < E && (64512 & (f = k.charCodeAt(v + 1))) == 56320 && (m = 65536 + (m - 55296 << 10) + (f - 56320), v++), A += m < 128 ? 1 : m < 2048 ? 2 : m < 65536 ? 3 : 4;
706
- for (u = o.uint8array ? new Uint8Array(A) : new Array(A), v = x = 0; x < A; v++) (64512 & (m = k.charCodeAt(v))) == 55296 && v + 1 < E && (64512 & (f = k.charCodeAt(v + 1))) == 56320 && (m = 65536 + (m - 55296 << 10) + (f - 56320), v++), m < 128 ? u[x++] = m : (m < 2048 ? u[x++] = 192 | m >>> 6 : (m < 65536 ? u[x++] = 224 | m >>> 12 : (u[x++] = 240 | m >>> 18, u[x++] = 128 | m >>> 12 & 63), u[x++] = 128 | m >>> 6 & 63), u[x++] = 128 | 63 & m);
701
+ var u, m, f, b, x, E = k.length, A = 0;
702
+ for (b = 0; b < E; b++) (64512 & (m = k.charCodeAt(b))) == 55296 && b + 1 < E && (64512 & (f = k.charCodeAt(b + 1))) == 56320 && (m = 65536 + (m - 55296 << 10) + (f - 56320), b++), A += m < 128 ? 1 : m < 2048 ? 2 : m < 65536 ? 3 : 4;
703
+ for (u = o.uint8array ? new Uint8Array(A) : new Array(A), b = x = 0; x < A; b++) (64512 & (m = k.charCodeAt(b))) == 55296 && b + 1 < E && (64512 & (f = k.charCodeAt(b + 1))) == 56320 && (m = 65536 + (m - 55296 << 10) + (f - 56320), b++), m < 128 ? u[x++] = m : (m < 2048 ? u[x++] = 192 | m >>> 6 : (m < 65536 ? u[x++] = 224 | m >>> 12 : (u[x++] = 240 | m >>> 18, u[x++] = 128 | m >>> 12 & 63), u[x++] = 128 | m >>> 6 & 63), u[x++] = 128 | 63 & m);
707
704
  return u;
708
705
  })(d);
709
706
  }, a.utf8decode = function(d) {
710
707
  return o.nodebuffer ? n.transformTo("nodebuffer", d).toString("utf-8") : (function(k) {
711
- var u, m, f, v, x = k.length, E = new Array(2 * x);
708
+ var u, m, f, b, x = k.length, E = new Array(2 * x);
712
709
  for (u = m = 0; u < x; ) if ((f = k[u++]) < 128) E[m++] = f;
713
- else if (4 < (v = _[f])) E[m++] = 65533, u += v - 1;
710
+ else if (4 < (b = _[f])) E[m++] = 65533, u += b - 1;
714
711
  else {
715
- for (f &= v === 2 ? 31 : v === 3 ? 15 : 7; 1 < v && u < x; ) f = f << 6 | 63 & k[u++], v--;
716
- 1 < v ? E[m++] = 65533 : f < 65536 ? E[m++] = f : (f -= 65536, E[m++] = 55296 | f >> 10 & 1023, E[m++] = 56320 | 1023 & f);
712
+ for (f &= b === 2 ? 31 : b === 3 ? 15 : 7; 1 < b && u < x; ) f = f << 6 | 63 & k[u++], b--;
713
+ 1 < b ? E[m++] = 65533 : f < 65536 ? E[m++] = f : (f -= 65536, E[m++] = 55296 | f >> 10 & 1023, E[m++] = 56320 | 1023 & f);
717
714
  }
718
715
  return E.length !== m && (E.subarray ? E = E.subarray(0, m) : E.length = m), n.applyFromCharCode(E);
719
716
  })(d = n.transformTo(o.uint8array ? "uint8array" : "array", d));
720
- }, n.inherits(b, h), b.prototype.processChunk = function(d) {
717
+ }, n.inherits(v, h), v.prototype.processChunk = function(d) {
721
718
  var k = n.transformTo(o.uint8array ? "uint8array" : "array", d.data);
722
719
  if (this.leftOver && this.leftOver.length) {
723
720
  if (o.uint8array) {
@@ -726,15 +723,15 @@ function Be() {
726
723
  } else k = this.leftOver.concat(k);
727
724
  this.leftOver = null;
728
725
  }
729
- var m = (function(v, x) {
726
+ var m = (function(b, x) {
730
727
  var E;
731
- for ((x = x || v.length) > v.length && (x = v.length), E = x - 1; 0 <= E && (192 & v[E]) == 128; ) E--;
732
- return E < 0 || E === 0 ? x : E + _[v[E]] > x ? E : x;
728
+ for ((x = x || b.length) > b.length && (x = b.length), E = x - 1; 0 <= E && (192 & b[E]) == 128; ) E--;
729
+ return E < 0 || E === 0 ? x : E + _[b[E]] > x ? E : x;
733
730
  })(k), f = k;
734
731
  m !== k.length && (o.uint8array ? (f = k.subarray(0, m), this.leftOver = k.subarray(m, k.length)) : (f = k.slice(0, m), this.leftOver = k.slice(m, k.length))), this.push({ data: a.utf8decode(f), meta: d.meta });
735
- }, b.prototype.flush = function() {
732
+ }, v.prototype.flush = function() {
736
733
  this.leftOver && this.leftOver.length && (this.push({ data: a.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
737
- }, a.Utf8DecodeWorker = b, n.inherits(y, h), y.prototype.processChunk = function(d) {
734
+ }, a.Utf8DecodeWorker = v, n.inherits(y, h), y.prototype.processChunk = function(d) {
738
735
  this.push({ data: a.utf8encode(d.data), meta: d.meta });
739
736
  }, a.Utf8EncodeWorker = y;
740
737
  }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(t, r, a) {
@@ -742,7 +739,7 @@ function Be() {
742
739
  function _(u) {
743
740
  return u;
744
741
  }
745
- function w(u, m) {
742
+ function S(u, m) {
746
743
  for (var f = 0; f < u.length; ++f) m[f] = 255 & u.charCodeAt(f);
747
744
  return m;
748
745
  }
@@ -759,11 +756,11 @@ function Be() {
759
756
  }
760
757
  }
761
758
  };
762
- var b = { stringifyByChunk: function(u, m, f) {
763
- var v = [], x = 0, E = u.length;
759
+ var v = { stringifyByChunk: function(u, m, f) {
760
+ var b = [], x = 0, E = u.length;
764
761
  if (E <= f) return String.fromCharCode.apply(null, u);
765
- for (; x < E; ) m === "array" || m === "nodebuffer" ? v.push(String.fromCharCode.apply(null, u.slice(x, Math.min(x + f, E)))) : v.push(String.fromCharCode.apply(null, u.subarray(x, Math.min(x + f, E)))), x += f;
766
- return v.join("");
762
+ for (; x < E; ) m === "array" || m === "nodebuffer" ? b.push(String.fromCharCode.apply(null, u.slice(x, Math.min(x + f, E)))) : b.push(String.fromCharCode.apply(null, u.subarray(x, Math.min(x + f, E)))), x += f;
763
+ return b.join("");
767
764
  }, stringifyByChar: function(u) {
768
765
  for (var m = "", f = 0; f < u.length; f++) m += String.fromCharCode(u[f]);
769
766
  return m;
@@ -781,13 +778,13 @@ function Be() {
781
778
  }
782
779
  })() } };
783
780
  function y(u) {
784
- var m = 65536, f = a.getTypeOf(u), v = !0;
785
- if (f === "uint8array" ? v = b.applyCanBeUsed.uint8array : f === "nodebuffer" && (v = b.applyCanBeUsed.nodebuffer), v) for (; 1 < m; ) try {
786
- return b.stringifyByChunk(u, f, m);
781
+ var m = 65536, f = a.getTypeOf(u), b = !0;
782
+ if (f === "uint8array" ? b = v.applyCanBeUsed.uint8array : f === "nodebuffer" && (b = v.applyCanBeUsed.nodebuffer), b) for (; 1 < m; ) try {
783
+ return v.stringifyByChunk(u, f, m);
787
784
  } catch {
788
785
  m = Math.floor(m / 2);
789
786
  }
790
- return b.stringifyByChar(u);
787
+ return v.stringifyByChar(u);
791
788
  }
792
789
  function d(u, m) {
793
790
  for (var f = 0; f < u.length; f++) m[f] = u[f];
@@ -796,13 +793,13 @@ function Be() {
796
793
  a.applyFromCharCode = y;
797
794
  var k = {};
798
795
  k.string = { string: _, array: function(u) {
799
- return w(u, new Array(u.length));
796
+ return S(u, new Array(u.length));
800
797
  }, arraybuffer: function(u) {
801
798
  return k.string.uint8array(u).buffer;
802
799
  }, uint8array: function(u) {
803
- return w(u, new Uint8Array(u.length));
800
+ return S(u, new Uint8Array(u.length));
804
801
  }, nodebuffer: function(u) {
805
- return w(u, i.allocBuffer(u.length));
802
+ return S(u, i.allocBuffer(u.length));
806
803
  } }, k.array = { string: y, array: _, arraybuffer: function(u) {
807
804
  return new Uint8Array(u).buffer;
808
805
  }, uint8array: function(u) {
@@ -835,9 +832,9 @@ function Be() {
835
832
  var f = a.getTypeOf(m);
836
833
  return k[f][u](m);
837
834
  }, a.resolve = function(u) {
838
- for (var m = u.split("/"), f = [], v = 0; v < m.length; v++) {
839
- var x = m[v];
840
- x === "." || x === "" && v !== 0 && v !== m.length - 1 || (x === ".." ? f.pop() : f.push(x));
835
+ for (var m = u.split("/"), f = [], b = 0; b < m.length; b++) {
836
+ var x = m[b];
837
+ x === "." || x === "" && b !== 0 && b !== m.length - 1 || (x === ".." ? f.pop() : f.push(x));
841
838
  }
842
839
  return f.join("/");
843
840
  }, a.getTypeOf = function(u) {
@@ -845,9 +842,9 @@ function Be() {
845
842
  }, a.checkSupport = function(u) {
846
843
  if (!n[u.toLowerCase()]) throw new Error(u + " is not supported by this platform");
847
844
  }, a.MAX_VALUE_16BITS = 65535, a.MAX_VALUE_32BITS = -1, a.pretty = function(u) {
848
- var m, f, v = "";
849
- for (f = 0; f < (u || "").length; f++) v += "\\x" + ((m = u.charCodeAt(f)) < 16 ? "0" : "") + m.toString(16).toUpperCase();
850
- return v;
845
+ var m, f, b = "";
846
+ for (f = 0; f < (u || "").length; f++) b += "\\x" + ((m = u.charCodeAt(f)) < 16 ? "0" : "") + m.toString(16).toUpperCase();
847
+ return b;
851
848
  }, a.delay = function(u, m, f) {
852
849
  setImmediate(function() {
853
850
  u.apply(f || null, m || []);
@@ -860,7 +857,7 @@ function Be() {
860
857
  var u, m, f = {};
861
858
  for (u = 0; u < arguments.length; u++) for (m in arguments[u]) Object.prototype.hasOwnProperty.call(arguments[u], m) && f[m] === void 0 && (f[m] = arguments[u][m]);
862
859
  return f;
863
- }, a.prepareContent = function(u, m, f, v, x) {
860
+ }, a.prepareContent = function(u, m, f, b, x) {
864
861
  return h.Promise.resolve(m).then(function(E) {
865
862
  return n.blob && (E instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(E)) !== -1) && typeof FileReader < "u" ? new h.Promise(function(A, L) {
866
863
  var F = new FileReader();
@@ -872,51 +869,51 @@ function Be() {
872
869
  }) : E;
873
870
  }).then(function(E) {
874
871
  var A = a.getTypeOf(E);
875
- return A ? (A === "arraybuffer" ? E = a.transformTo("uint8array", E) : A === "string" && (x ? E = o.decode(E) : f && v !== !0 && (E = (function(L) {
876
- return w(L, n.uint8array ? new Uint8Array(L.length) : new Array(L.length));
872
+ return A ? (A === "arraybuffer" ? E = a.transformTo("uint8array", E) : A === "string" && (x ? E = o.decode(E) : f && b !== !0 && (E = (function(L) {
873
+ return S(L, n.uint8array ? new Uint8Array(L.length) : new Array(L.length));
877
874
  })(E))), E) : h.Promise.reject(new Error("Can't read the data of '" + u + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
878
875
  });
879
876
  };
880
877
  }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(t, r, a) {
881
878
  var n = t("./reader/readerFor"), o = t("./utils"), i = t("./signature"), h = t("./zipEntry"), _ = t("./support");
882
- function w(b) {
883
- this.files = [], this.loadOptions = b;
879
+ function S(v) {
880
+ this.files = [], this.loadOptions = v;
884
881
  }
885
- w.prototype = { checkSignature: function(b) {
886
- if (!this.reader.readAndCheckSignature(b)) {
882
+ S.prototype = { checkSignature: function(v) {
883
+ if (!this.reader.readAndCheckSignature(v)) {
887
884
  this.reader.index -= 4;
888
885
  var y = this.reader.readString(4);
889
- throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(y) + ", expected " + o.pretty(b) + ")");
886
+ throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(y) + ", expected " + o.pretty(v) + ")");
890
887
  }
891
- }, isSignature: function(b, y) {
888
+ }, isSignature: function(v, y) {
892
889
  var d = this.reader.index;
893
- this.reader.setIndex(b);
890
+ this.reader.setIndex(v);
894
891
  var k = this.reader.readString(4) === y;
895
892
  return this.reader.setIndex(d), k;
896
893
  }, readBlockEndOfCentral: function() {
897
894
  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);
898
- var b = this.reader.readData(this.zipCommentLength), y = _.uint8array ? "uint8array" : "array", d = o.transformTo(y, b);
895
+ var v = this.reader.readData(this.zipCommentLength), y = _.uint8array ? "uint8array" : "array", d = o.transformTo(y, v);
899
896
  this.zipComment = this.loadOptions.decodeFileName(d);
900
897
  }, readBlockZip64EndOfCentral: function() {
901
898
  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 = {};
902
- for (var b, y, d, k = this.zip64EndOfCentralSize - 44; 0 < k; ) b = this.reader.readInt(2), y = this.reader.readInt(4), d = this.reader.readData(y), this.zip64ExtensibleData[b] = { id: b, length: y, value: d };
899
+ for (var v, y, d, k = this.zip64EndOfCentralSize - 44; 0 < k; ) v = this.reader.readInt(2), y = this.reader.readInt(4), d = this.reader.readData(y), this.zip64ExtensibleData[v] = { id: v, length: y, value: d };
903
900
  }, readBlockZip64EndOfCentralLocator: function() {
904
901
  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");
905
902
  }, readLocalFiles: function() {
906
- var b, y;
907
- for (b = 0; b < this.files.length; b++) y = this.files[b], this.reader.setIndex(y.localHeaderOffset), this.checkSignature(i.LOCAL_FILE_HEADER), y.readLocalPart(this.reader), y.handleUTF8(), y.processAttributes();
903
+ var v, y;
904
+ for (v = 0; v < this.files.length; v++) y = this.files[v], this.reader.setIndex(y.localHeaderOffset), this.checkSignature(i.LOCAL_FILE_HEADER), y.readLocalPart(this.reader), y.handleUTF8(), y.processAttributes();
908
905
  }, readCentralDir: function() {
909
- var b;
910
- for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER); ) (b = new h({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(b);
906
+ var v;
907
+ for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER); ) (v = new h({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(v);
911
908
  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);
912
909
  }, readEndOfCentral: function() {
913
- var b = this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);
914
- if (b < 0) throw this.isSignature(0, i.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");
915
- this.reader.setIndex(b);
916
- var y = b;
910
+ var v = this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);
911
+ if (v < 0) throw this.isSignature(0, i.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");
912
+ this.reader.setIndex(v);
913
+ var y = v;
917
914
  if (this.checkSignature(i.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) {
918
- if (this.zip64 = !0, (b = this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
919
- if (this.reader.setIndex(b), this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, i.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
915
+ if (this.zip64 = !0, (v = this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
916
+ if (this.reader.setIndex(v), this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, i.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
920
917
  this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
921
918
  }
922
919
  var d = this.centralDirOffset + this.centralDirSize;
@@ -924,13 +921,13 @@ function Be() {
924
921
  var k = y - d;
925
922
  if (0 < k) this.isSignature(y, i.CENTRAL_FILE_HEADER) || (this.reader.zero = k);
926
923
  else if (k < 0) throw new Error("Corrupted zip: missing " + Math.abs(k) + " bytes.");
927
- }, prepareReader: function(b) {
928
- this.reader = n(b);
929
- }, load: function(b) {
930
- this.prepareReader(b), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
931
- } }, r.exports = w;
924
+ }, prepareReader: function(v) {
925
+ this.reader = n(v);
926
+ }, load: function(v) {
927
+ this.prepareReader(v), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
928
+ } }, r.exports = S;
932
929
  }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(t, r, a) {
933
- var n = t("./reader/readerFor"), o = t("./utils"), i = t("./compressedObject"), h = t("./crc32"), _ = t("./utf8"), w = t("./compressions"), b = t("./support");
930
+ var n = t("./reader/readerFor"), o = t("./utils"), i = t("./compressedObject"), h = t("./crc32"), _ = t("./utf8"), S = t("./compressions"), v = t("./support");
934
931
  function y(d, k) {
935
932
  this.options = d, this.loadOptions = k;
936
933
  }
@@ -942,7 +939,7 @@ function Be() {
942
939
  var k, u;
943
940
  if (d.skip(22), this.fileNameLength = d.readInt(2), u = d.readInt(2), this.fileName = d.readData(this.fileNameLength), d.skip(u), 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)");
944
941
  if ((k = (function(m) {
945
- for (var f in w) if (Object.prototype.hasOwnProperty.call(w, f) && w[f].magic === m) return w[f];
942
+ for (var f in S) if (Object.prototype.hasOwnProperty.call(S, f) && S[f].magic === m) return S[f];
946
943
  return null;
947
944
  })(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
948
945
  this.decompressed = new i(this.compressedSize, this.uncompressedSize, this.crc32, k, d.readData(this.compressedSize));
@@ -965,7 +962,7 @@ function Be() {
965
962
  for (this.extraFields || (this.extraFields = {}); d.index + 4 < f; ) k = d.readInt(2), u = d.readInt(2), m = d.readData(u), this.extraFields[k] = { id: k, length: u, value: m };
966
963
  d.setIndex(f);
967
964
  }, handleUTF8: function() {
968
- var d = b.uint8array ? "uint8array" : "array";
965
+ var d = v.uint8array ? "uint8array" : "array";
969
966
  if (this.useUTF8()) this.fileNameStr = _.utf8decode(this.fileName), this.fileCommentStr = _.utf8decode(this.fileComment);
970
967
  else {
971
968
  var k = this.findExtraFieldUnicodePath();
@@ -1000,17 +997,17 @@ function Be() {
1000
997
  function n(k, u, m) {
1001
998
  this.name = k, this.dir = m.dir, this.date = m.date, this.comment = m.comment, this.unixPermissions = m.unixPermissions, this.dosPermissions = m.dosPermissions, this._data = u, this._dataBinary = m.binary, this.options = { compression: m.compression, compressionOptions: m.compressionOptions };
1002
999
  }
1003
- var o = t("./stream/StreamHelper"), i = t("./stream/DataWorker"), h = t("./utf8"), _ = t("./compressedObject"), w = t("./stream/GenericWorker");
1000
+ var o = t("./stream/StreamHelper"), i = t("./stream/DataWorker"), h = t("./utf8"), _ = t("./compressedObject"), S = t("./stream/GenericWorker");
1004
1001
  n.prototype = { internalStream: function(k) {
1005
1002
  var u = null, m = "string";
1006
1003
  try {
1007
1004
  if (!k) throw new Error("No output type specified.");
1008
1005
  var f = (m = k.toLowerCase()) === "string" || m === "text";
1009
1006
  m !== "binarystring" && m !== "text" || (m = "string"), u = this._decompressWorker();
1010
- var v = !this._dataBinary;
1011
- v && !f && (u = u.pipe(new h.Utf8EncodeWorker())), !v && f && (u = u.pipe(new h.Utf8DecodeWorker()));
1007
+ var b = !this._dataBinary;
1008
+ b && !f && (u = u.pipe(new h.Utf8EncodeWorker())), !b && f && (u = u.pipe(new h.Utf8DecodeWorker()));
1012
1009
  } catch (x) {
1013
- (u = new w("error")).error(x);
1010
+ (u = new S("error")).error(x);
1014
1011
  }
1015
1012
  return new o(u, m, "");
1016
1013
  }, async: function(k, u) {
@@ -1022,19 +1019,19 @@ function Be() {
1022
1019
  var m = this._decompressWorker();
1023
1020
  return this._dataBinary || (m = m.pipe(new h.Utf8EncodeWorker())), _.createWorkerFrom(m, k, u);
1024
1021
  }, _decompressWorker: function() {
1025
- return this._data instanceof _ ? this._data.getContentWorker() : this._data instanceof w ? this._data : new i(this._data);
1022
+ return this._data instanceof _ ? this._data.getContentWorker() : this._data instanceof S ? this._data : new i(this._data);
1026
1023
  } };
1027
- for (var b = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], y = function() {
1024
+ for (var v = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], y = function() {
1028
1025
  throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1029
- }, d = 0; d < b.length; d++) n.prototype[b[d]] = y;
1026
+ }, d = 0; d < v.length; d++) n.prototype[v[d]] = y;
1030
1027
  r.exports = n;
1031
1028
  }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(t, r, a) {
1032
1029
  (function(n) {
1033
1030
  var o, i, h = n.MutationObserver || n.WebKitMutationObserver;
1034
1031
  if (h) {
1035
- var _ = 0, w = new h(k), b = n.document.createTextNode("");
1036
- w.observe(b, { characterData: !0 }), o = function() {
1037
- b.data = _ = ++_ % 2;
1032
+ var _ = 0, S = new h(k), v = n.document.createTextNode("");
1033
+ S.observe(v, { characterData: !0 }), o = function() {
1034
+ v.data = _ = ++_ % 2;
1038
1035
  };
1039
1036
  } else if (n.setImmediate || n.MessageChannel === void 0) o = "document" in n && "onreadystatechange" in n.document.createElement("script") ? function() {
1040
1037
  var u = n.document.createElement("script");
@@ -1063,24 +1060,24 @@ function Be() {
1063
1060
  r.exports = function(u) {
1064
1061
  d.push(u) !== 1 || i || o();
1065
1062
  };
1066
- }).call(this, typeof Rt < "u" ? Rt : typeof self < "u" ? self : typeof window < "u" ? window : {});
1063
+ }).call(this, typeof zt < "u" ? zt : typeof self < "u" ? self : typeof window < "u" ? window : {});
1067
1064
  }, {}], 37: [function(t, r, a) {
1068
1065
  var n = t("immediate");
1069
1066
  function o() {
1070
1067
  }
1071
- var i = {}, h = ["REJECTED"], _ = ["FULFILLED"], w = ["PENDING"];
1072
- function b(f) {
1068
+ var i = {}, h = ["REJECTED"], _ = ["FULFILLED"], S = ["PENDING"];
1069
+ function v(f) {
1073
1070
  if (typeof f != "function") throw new TypeError("resolver must be a function");
1074
- this.state = w, this.queue = [], this.outcome = void 0, f !== o && u(this, f);
1071
+ this.state = S, this.queue = [], this.outcome = void 0, f !== o && u(this, f);
1075
1072
  }
1076
- function y(f, v, x) {
1077
- this.promise = f, typeof v == "function" && (this.onFulfilled = v, this.callFulfilled = this.otherCallFulfilled), typeof x == "function" && (this.onRejected = x, this.callRejected = this.otherCallRejected);
1073
+ function y(f, b, x) {
1074
+ this.promise = f, typeof b == "function" && (this.onFulfilled = b, this.callFulfilled = this.otherCallFulfilled), typeof x == "function" && (this.onRejected = x, this.callRejected = this.otherCallRejected);
1078
1075
  }
1079
- function d(f, v, x) {
1076
+ function d(f, b, x) {
1080
1077
  n(function() {
1081
1078
  var E;
1082
1079
  try {
1083
- E = v(x);
1080
+ E = b(x);
1084
1081
  } catch (A) {
1085
1082
  return i.reject(f, A);
1086
1083
  }
@@ -1088,12 +1085,12 @@ function Be() {
1088
1085
  });
1089
1086
  }
1090
1087
  function k(f) {
1091
- var v = f && f.then;
1092
- if (f && (typeof f == "object" || typeof f == "function") && typeof v == "function") return function() {
1093
- v.apply(f, arguments);
1088
+ var b = f && f.then;
1089
+ if (f && (typeof f == "object" || typeof f == "function") && typeof b == "function") return function() {
1090
+ b.apply(f, arguments);
1094
1091
  };
1095
1092
  }
1096
- function u(f, v) {
1093
+ function u(f, b) {
1097
1094
  var x = !1;
1098
1095
  function E(F) {
1099
1096
  x || (x = !0, i.reject(f, F));
@@ -1102,37 +1099,37 @@ function Be() {
1102
1099
  x || (x = !0, i.resolve(f, F));
1103
1100
  }
1104
1101
  var L = m(function() {
1105
- v(A, E);
1102
+ b(A, E);
1106
1103
  });
1107
1104
  L.status === "error" && E(L.value);
1108
1105
  }
1109
- function m(f, v) {
1106
+ function m(f, b) {
1110
1107
  var x = {};
1111
1108
  try {
1112
- x.value = f(v), x.status = "success";
1109
+ x.value = f(b), x.status = "success";
1113
1110
  } catch (E) {
1114
1111
  x.status = "error", x.value = E;
1115
1112
  }
1116
1113
  return x;
1117
1114
  }
1118
- (r.exports = b).prototype.finally = function(f) {
1115
+ (r.exports = v).prototype.finally = function(f) {
1119
1116
  if (typeof f != "function") return this;
1120
- var v = this.constructor;
1117
+ var b = this.constructor;
1121
1118
  return this.then(function(x) {
1122
- return v.resolve(f()).then(function() {
1119
+ return b.resolve(f()).then(function() {
1123
1120
  return x;
1124
1121
  });
1125
1122
  }, function(x) {
1126
- return v.resolve(f()).then(function() {
1123
+ return b.resolve(f()).then(function() {
1127
1124
  throw x;
1128
1125
  });
1129
1126
  });
1130
- }, b.prototype.catch = function(f) {
1127
+ }, v.prototype.catch = function(f) {
1131
1128
  return this.then(null, f);
1132
- }, b.prototype.then = function(f, v) {
1133
- if (typeof f != "function" && this.state === _ || typeof v != "function" && this.state === h) return this;
1129
+ }, v.prototype.then = function(f, b) {
1130
+ if (typeof f != "function" && this.state === _ || typeof b != "function" && this.state === h) return this;
1134
1131
  var x = new this.constructor(o);
1135
- return this.state !== w ? d(x, this.state === _ ? f : v, this.outcome) : this.queue.push(new y(x, f, v)), x;
1132
+ return this.state !== S ? d(x, this.state === _ ? f : b, this.outcome) : this.queue.push(new y(x, f, b)), x;
1136
1133
  }, y.prototype.callFulfilled = function(f) {
1137
1134
  i.resolve(this.promise, f);
1138
1135
  }, y.prototype.otherCallFulfilled = function(f) {
@@ -1141,45 +1138,45 @@ function Be() {
1141
1138
  i.reject(this.promise, f);
1142
1139
  }, y.prototype.otherCallRejected = function(f) {
1143
1140
  d(this.promise, this.onRejected, f);
1144
- }, i.resolve = function(f, v) {
1145
- var x = m(k, v);
1141
+ }, i.resolve = function(f, b) {
1142
+ var x = m(k, b);
1146
1143
  if (x.status === "error") return i.reject(f, x.value);
1147
1144
  var E = x.value;
1148
1145
  if (E) u(f, E);
1149
1146
  else {
1150
- f.state = _, f.outcome = v;
1151
- for (var A = -1, L = f.queue.length; ++A < L; ) f.queue[A].callFulfilled(v);
1147
+ f.state = _, f.outcome = b;
1148
+ for (var A = -1, L = f.queue.length; ++A < L; ) f.queue[A].callFulfilled(b);
1152
1149
  }
1153
1150
  return f;
1154
- }, i.reject = function(f, v) {
1155
- f.state = h, f.outcome = v;
1156
- for (var x = -1, E = f.queue.length; ++x < E; ) f.queue[x].callRejected(v);
1151
+ }, i.reject = function(f, b) {
1152
+ f.state = h, f.outcome = b;
1153
+ for (var x = -1, E = f.queue.length; ++x < E; ) f.queue[x].callRejected(b);
1157
1154
  return f;
1158
- }, b.resolve = function(f) {
1155
+ }, v.resolve = function(f) {
1159
1156
  return f instanceof this ? f : i.resolve(new this(o), f);
1160
- }, b.reject = function(f) {
1161
- var v = new this(o);
1162
- return i.reject(v, f);
1163
- }, b.all = function(f) {
1164
- var v = this;
1157
+ }, v.reject = function(f) {
1158
+ var b = new this(o);
1159
+ return i.reject(b, f);
1160
+ }, v.all = function(f) {
1161
+ var b = this;
1165
1162
  if (Object.prototype.toString.call(f) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1166
1163
  var x = f.length, E = !1;
1167
1164
  if (!x) return this.resolve([]);
1168
1165
  for (var A = new Array(x), L = 0, F = -1, H = new this(o); ++F < x; ) T(f[F], F);
1169
1166
  return H;
1170
1167
  function T(V, Q) {
1171
- v.resolve(V).then(function(S) {
1172
- A[Q] = S, ++L !== x || E || (E = !0, i.resolve(H, A));
1173
- }, function(S) {
1174
- E || (E = !0, i.reject(H, S));
1168
+ b.resolve(V).then(function(w) {
1169
+ A[Q] = w, ++L !== x || E || (E = !0, i.resolve(H, A));
1170
+ }, function(w) {
1171
+ E || (E = !0, i.reject(H, w));
1175
1172
  });
1176
1173
  }
1177
- }, b.race = function(f) {
1178
- var v = this;
1174
+ }, v.race = function(f) {
1175
+ var b = this;
1179
1176
  if (Object.prototype.toString.call(f) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1180
1177
  var x = f.length, E = !1;
1181
1178
  if (!x) return this.resolve([]);
1182
- for (var A = -1, L = new this(o); ++A < x; ) F = f[A], v.resolve(F).then(function(H) {
1179
+ for (var A = -1, L = new this(o); ++A < x; ) F = f[A], b.resolve(F).then(function(H) {
1183
1180
  E || (E = !0, i.resolve(L, H));
1184
1181
  }, function(H) {
1185
1182
  E || (E = !0, i.reject(L, H));
@@ -1191,53 +1188,53 @@ function Be() {
1191
1188
  var n = {};
1192
1189
  (0, t("./lib/utils/common").assign)(n, t("./lib/deflate"), t("./lib/inflate"), t("./lib/zlib/constants")), r.exports = n;
1193
1190
  }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(t, r, a) {
1194
- var n = t("./zlib/deflate"), o = t("./utils/common"), i = t("./utils/strings"), h = t("./zlib/messages"), _ = t("./zlib/zstream"), w = Object.prototype.toString, b = 0, y = -1, d = 0, k = 8;
1191
+ var n = t("./zlib/deflate"), o = t("./utils/common"), i = t("./utils/strings"), h = t("./zlib/messages"), _ = t("./zlib/zstream"), S = Object.prototype.toString, v = 0, y = -1, d = 0, k = 8;
1195
1192
  function u(f) {
1196
1193
  if (!(this instanceof u)) return new u(f);
1197
1194
  this.options = o.assign({ level: y, method: k, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: d, to: "" }, f || {});
1198
- var v = this.options;
1199
- 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 _(), this.strm.avail_out = 0;
1200
- var x = n.deflateInit2(this.strm, v.level, v.method, v.windowBits, v.memLevel, v.strategy);
1201
- if (x !== b) throw new Error(h[x]);
1202
- if (v.header && n.deflateSetHeader(this.strm, v.header), v.dictionary) {
1195
+ var b = this.options;
1196
+ b.raw && 0 < b.windowBits ? b.windowBits = -b.windowBits : b.gzip && 0 < b.windowBits && b.windowBits < 16 && (b.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new _(), this.strm.avail_out = 0;
1197
+ var x = n.deflateInit2(this.strm, b.level, b.method, b.windowBits, b.memLevel, b.strategy);
1198
+ if (x !== v) throw new Error(h[x]);
1199
+ if (b.header && n.deflateSetHeader(this.strm, b.header), b.dictionary) {
1203
1200
  var E;
1204
- if (E = typeof v.dictionary == "string" ? i.string2buf(v.dictionary) : w.call(v.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(v.dictionary) : v.dictionary, (x = n.deflateSetDictionary(this.strm, E)) !== b) throw new Error(h[x]);
1201
+ if (E = typeof b.dictionary == "string" ? i.string2buf(b.dictionary) : S.call(b.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(b.dictionary) : b.dictionary, (x = n.deflateSetDictionary(this.strm, E)) !== v) throw new Error(h[x]);
1205
1202
  this._dict_set = !0;
1206
1203
  }
1207
1204
  }
1208
- function m(f, v) {
1209
- var x = new u(v);
1205
+ function m(f, b) {
1206
+ var x = new u(b);
1210
1207
  if (x.push(f, !0), x.err) throw x.msg || h[x.err];
1211
1208
  return x.result;
1212
1209
  }
1213
- u.prototype.push = function(f, v) {
1210
+ u.prototype.push = function(f, b) {
1214
1211
  var x, E, A = this.strm, L = this.options.chunkSize;
1215
1212
  if (this.ended) return !1;
1216
- E = v === ~~v ? v : v === !0 ? 4 : 0, typeof f == "string" ? A.input = i.string2buf(f) : w.call(f) === "[object ArrayBuffer]" ? A.input = new Uint8Array(f) : A.input = f, A.next_in = 0, A.avail_in = A.input.length;
1213
+ E = b === ~~b ? b : b === !0 ? 4 : 0, typeof f == "string" ? A.input = i.string2buf(f) : S.call(f) === "[object ArrayBuffer]" ? A.input = new Uint8Array(f) : A.input = f, A.next_in = 0, A.avail_in = A.input.length;
1217
1214
  do {
1218
- if (A.avail_out === 0 && (A.output = new o.Buf8(L), A.next_out = 0, A.avail_out = L), (x = n.deflate(A, E)) !== 1 && x !== b) return this.onEnd(x), !(this.ended = !0);
1215
+ if (A.avail_out === 0 && (A.output = new o.Buf8(L), A.next_out = 0, A.avail_out = L), (x = n.deflate(A, E)) !== 1 && x !== v) return this.onEnd(x), !(this.ended = !0);
1219
1216
  A.avail_out !== 0 && (A.avail_in !== 0 || E !== 4 && E !== 2) || (this.options.to === "string" ? this.onData(i.buf2binstring(o.shrinkBuf(A.output, A.next_out))) : this.onData(o.shrinkBuf(A.output, A.next_out)));
1220
1217
  } while ((0 < A.avail_in || A.avail_out === 0) && x !== 1);
1221
- return E === 4 ? (x = n.deflateEnd(this.strm), this.onEnd(x), this.ended = !0, x === b) : E !== 2 || (this.onEnd(b), !(A.avail_out = 0));
1218
+ return E === 4 ? (x = n.deflateEnd(this.strm), this.onEnd(x), this.ended = !0, x === v) : E !== 2 || (this.onEnd(v), !(A.avail_out = 0));
1222
1219
  }, u.prototype.onData = function(f) {
1223
1220
  this.chunks.push(f);
1224
1221
  }, u.prototype.onEnd = function(f) {
1225
- f === b && (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;
1226
- }, a.Deflate = u, a.deflate = m, a.deflateRaw = function(f, v) {
1227
- return (v = v || {}).raw = !0, m(f, v);
1228
- }, a.gzip = function(f, v) {
1229
- return (v = v || {}).gzip = !0, m(f, v);
1222
+ f === v && (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;
1223
+ }, a.Deflate = u, a.deflate = m, a.deflateRaw = function(f, b) {
1224
+ return (b = b || {}).raw = !0, m(f, b);
1225
+ }, a.gzip = function(f, b) {
1226
+ return (b = b || {}).gzip = !0, m(f, b);
1230
1227
  };
1231
1228
  }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(t, r, a) {
1232
- var n = t("./zlib/inflate"), o = t("./utils/common"), i = t("./utils/strings"), h = t("./zlib/constants"), _ = t("./zlib/messages"), w = t("./zlib/zstream"), b = t("./zlib/gzheader"), y = Object.prototype.toString;
1229
+ var n = t("./zlib/inflate"), o = t("./utils/common"), i = t("./utils/strings"), h = t("./zlib/constants"), _ = t("./zlib/messages"), S = t("./zlib/zstream"), v = t("./zlib/gzheader"), y = Object.prototype.toString;
1233
1230
  function d(u) {
1234
1231
  if (!(this instanceof d)) return new d(u);
1235
1232
  this.options = o.assign({ chunkSize: 16384, windowBits: 0, to: "" }, u || {});
1236
1233
  var m = this.options;
1237
- m.raw && 0 <= m.windowBits && m.windowBits < 16 && (m.windowBits = -m.windowBits, m.windowBits === 0 && (m.windowBits = -15)), !(0 <= m.windowBits && m.windowBits < 16) || u && u.windowBits || (m.windowBits += 32), 15 < m.windowBits && m.windowBits < 48 && (15 & m.windowBits) == 0 && (m.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new w(), this.strm.avail_out = 0;
1234
+ m.raw && 0 <= m.windowBits && m.windowBits < 16 && (m.windowBits = -m.windowBits, m.windowBits === 0 && (m.windowBits = -15)), !(0 <= m.windowBits && m.windowBits < 16) || u && u.windowBits || (m.windowBits += 32), 15 < m.windowBits && m.windowBits < 48 && (15 & m.windowBits) == 0 && (m.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new S(), this.strm.avail_out = 0;
1238
1235
  var f = n.inflateInit2(this.strm, m.windowBits);
1239
1236
  if (f !== h.Z_OK) throw new Error(_[f]);
1240
- this.header = new b(), n.inflateGetHeader(this.strm, this.header);
1237
+ this.header = new v(), n.inflateGetHeader(this.strm, this.header);
1241
1238
  }
1242
1239
  function k(u, m) {
1243
1240
  var f = new d(m);
@@ -1245,14 +1242,14 @@ function Be() {
1245
1242
  return f.result;
1246
1243
  }
1247
1244
  d.prototype.push = function(u, m) {
1248
- var f, v, x, E, A, L, F = this.strm, H = this.options.chunkSize, T = this.options.dictionary, V = !1;
1245
+ var f, b, x, E, A, L, F = this.strm, H = this.options.chunkSize, T = this.options.dictionary, V = !1;
1249
1246
  if (this.ended) return !1;
1250
- v = m === ~~m ? m : m === !0 ? h.Z_FINISH : h.Z_NO_FLUSH, typeof u == "string" ? F.input = i.binstring2buf(u) : y.call(u) === "[object ArrayBuffer]" ? F.input = new Uint8Array(u) : F.input = u, F.next_in = 0, F.avail_in = F.input.length;
1247
+ b = m === ~~m ? m : m === !0 ? h.Z_FINISH : h.Z_NO_FLUSH, typeof u == "string" ? F.input = i.binstring2buf(u) : y.call(u) === "[object ArrayBuffer]" ? F.input = new Uint8Array(u) : F.input = u, F.next_in = 0, F.avail_in = F.input.length;
1251
1248
  do {
1252
1249
  if (F.avail_out === 0 && (F.output = new o.Buf8(H), F.next_out = 0, F.avail_out = H), (f = n.inflate(F, h.Z_NO_FLUSH)) === h.Z_NEED_DICT && T && (L = typeof T == "string" ? i.string2buf(T) : y.call(T) === "[object ArrayBuffer]" ? new Uint8Array(T) : T, f = n.inflateSetDictionary(this.strm, L)), f === h.Z_BUF_ERROR && V === !0 && (f = h.Z_OK, V = !1), f !== h.Z_STREAM_END && f !== h.Z_OK) return this.onEnd(f), !(this.ended = !0);
1253
- F.next_out && (F.avail_out !== 0 && f !== h.Z_STREAM_END && (F.avail_in !== 0 || v !== h.Z_FINISH && v !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (x = i.utf8border(F.output, F.next_out), E = F.next_out - x, A = i.buf2string(F.output, x), F.next_out = E, F.avail_out = H - E, E && o.arraySet(F.output, F.output, x, E, 0), this.onData(A)) : this.onData(o.shrinkBuf(F.output, F.next_out)))), F.avail_in === 0 && F.avail_out === 0 && (V = !0);
1250
+ F.next_out && (F.avail_out !== 0 && f !== h.Z_STREAM_END && (F.avail_in !== 0 || b !== h.Z_FINISH && b !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (x = i.utf8border(F.output, F.next_out), E = F.next_out - x, A = i.buf2string(F.output, x), F.next_out = E, F.avail_out = H - E, E && o.arraySet(F.output, F.output, x, E, 0), this.onData(A)) : this.onData(o.shrinkBuf(F.output, F.next_out)))), F.avail_in === 0 && F.avail_out === 0 && (V = !0);
1254
1251
  } while ((0 < F.avail_in || F.avail_out === 0) && f !== h.Z_STREAM_END);
1255
- return f === h.Z_STREAM_END && (v = h.Z_FINISH), v === h.Z_FINISH ? (f = n.inflateEnd(this.strm), this.onEnd(f), this.ended = !0, f === h.Z_OK) : v !== h.Z_SYNC_FLUSH || (this.onEnd(h.Z_OK), !(F.avail_out = 0));
1252
+ return f === h.Z_STREAM_END && (b = h.Z_FINISH), b === h.Z_FINISH ? (f = n.inflateEnd(this.strm), this.onEnd(f), this.ended = !0, f === h.Z_OK) : b !== h.Z_SYNC_FLUSH || (this.onEnd(h.Z_OK), !(F.avail_out = 0));
1256
1253
  }, d.prototype.onData = function(u) {
1257
1254
  this.chunks.push(u);
1258
1255
  }, d.prototype.onEnd = function(u) {
@@ -1264,26 +1261,26 @@ function Be() {
1264
1261
  var n = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
1265
1262
  a.assign = function(h) {
1266
1263
  for (var _ = Array.prototype.slice.call(arguments, 1); _.length; ) {
1267
- var w = _.shift();
1268
- if (w) {
1269
- if (typeof w != "object") throw new TypeError(w + "must be non-object");
1270
- for (var b in w) w.hasOwnProperty(b) && (h[b] = w[b]);
1264
+ var S = _.shift();
1265
+ if (S) {
1266
+ if (typeof S != "object") throw new TypeError(S + "must be non-object");
1267
+ for (var v in S) S.hasOwnProperty(v) && (h[v] = S[v]);
1271
1268
  }
1272
1269
  }
1273
1270
  return h;
1274
1271
  }, a.shrinkBuf = function(h, _) {
1275
1272
  return h.length === _ ? h : h.subarray ? h.subarray(0, _) : (h.length = _, h);
1276
1273
  };
1277
- var o = { arraySet: function(h, _, w, b, y) {
1278
- if (_.subarray && h.subarray) h.set(_.subarray(w, w + b), y);
1279
- else for (var d = 0; d < b; d++) h[y + d] = _[w + d];
1274
+ var o = { arraySet: function(h, _, S, v, y) {
1275
+ if (_.subarray && h.subarray) h.set(_.subarray(S, S + v), y);
1276
+ else for (var d = 0; d < v; d++) h[y + d] = _[S + d];
1280
1277
  }, flattenChunks: function(h) {
1281
- var _, w, b, y, d, k;
1282
- for (_ = b = 0, w = h.length; _ < w; _++) b += h[_].length;
1283
- for (k = new Uint8Array(b), _ = y = 0, w = h.length; _ < w; _++) d = h[_], k.set(d, y), y += d.length;
1278
+ var _, S, v, y, d, k;
1279
+ for (_ = v = 0, S = h.length; _ < S; _++) v += h[_].length;
1280
+ for (k = new Uint8Array(v), _ = y = 0, S = h.length; _ < S; _++) d = h[_], k.set(d, y), y += d.length;
1284
1281
  return k;
1285
- } }, i = { arraySet: function(h, _, w, b, y) {
1286
- for (var d = 0; d < b; d++) h[y + d] = _[w + d];
1282
+ } }, i = { arraySet: function(h, _, S, v, y) {
1283
+ for (var d = 0; d < v; d++) h[y + d] = _[S + d];
1287
1284
  }, flattenChunks: function(h) {
1288
1285
  return [].concat.apply([], h);
1289
1286
  } };
@@ -1303,42 +1300,42 @@ function Be() {
1303
1300
  i = !1;
1304
1301
  }
1305
1302
  for (var h = new n.Buf8(256), _ = 0; _ < 256; _++) h[_] = 252 <= _ ? 6 : 248 <= _ ? 5 : 240 <= _ ? 4 : 224 <= _ ? 3 : 192 <= _ ? 2 : 1;
1306
- function w(b, y) {
1307
- if (y < 65537 && (b.subarray && i || !b.subarray && o)) return String.fromCharCode.apply(null, n.shrinkBuf(b, y));
1308
- for (var d = "", k = 0; k < y; k++) d += String.fromCharCode(b[k]);
1303
+ function S(v, y) {
1304
+ if (y < 65537 && (v.subarray && i || !v.subarray && o)) return String.fromCharCode.apply(null, n.shrinkBuf(v, y));
1305
+ for (var d = "", k = 0; k < y; k++) d += String.fromCharCode(v[k]);
1309
1306
  return d;
1310
1307
  }
1311
- h[254] = h[254] = 1, a.string2buf = function(b) {
1312
- var y, d, k, u, m, f = b.length, v = 0;
1313
- for (u = 0; u < f; u++) (64512 & (d = b.charCodeAt(u))) == 55296 && u + 1 < f && (64512 & (k = b.charCodeAt(u + 1))) == 56320 && (d = 65536 + (d - 55296 << 10) + (k - 56320), u++), v += d < 128 ? 1 : d < 2048 ? 2 : d < 65536 ? 3 : 4;
1314
- for (y = new n.Buf8(v), u = m = 0; m < v; u++) (64512 & (d = b.charCodeAt(u))) == 55296 && u + 1 < f && (64512 & (k = b.charCodeAt(u + 1))) == 56320 && (d = 65536 + (d - 55296 << 10) + (k - 56320), u++), d < 128 ? y[m++] = d : (d < 2048 ? y[m++] = 192 | d >>> 6 : (d < 65536 ? y[m++] = 224 | d >>> 12 : (y[m++] = 240 | d >>> 18, y[m++] = 128 | d >>> 12 & 63), y[m++] = 128 | d >>> 6 & 63), y[m++] = 128 | 63 & d);
1308
+ h[254] = h[254] = 1, a.string2buf = function(v) {
1309
+ var y, d, k, u, m, f = v.length, b = 0;
1310
+ for (u = 0; u < f; u++) (64512 & (d = v.charCodeAt(u))) == 55296 && u + 1 < f && (64512 & (k = v.charCodeAt(u + 1))) == 56320 && (d = 65536 + (d - 55296 << 10) + (k - 56320), u++), b += d < 128 ? 1 : d < 2048 ? 2 : d < 65536 ? 3 : 4;
1311
+ for (y = new n.Buf8(b), u = m = 0; m < b; u++) (64512 & (d = v.charCodeAt(u))) == 55296 && u + 1 < f && (64512 & (k = v.charCodeAt(u + 1))) == 56320 && (d = 65536 + (d - 55296 << 10) + (k - 56320), u++), d < 128 ? y[m++] = d : (d < 2048 ? y[m++] = 192 | d >>> 6 : (d < 65536 ? y[m++] = 224 | d >>> 12 : (y[m++] = 240 | d >>> 18, y[m++] = 128 | d >>> 12 & 63), y[m++] = 128 | d >>> 6 & 63), y[m++] = 128 | 63 & d);
1315
1312
  return y;
1316
- }, a.buf2binstring = function(b) {
1317
- return w(b, b.length);
1318
- }, a.binstring2buf = function(b) {
1319
- for (var y = new n.Buf8(b.length), d = 0, k = y.length; d < k; d++) y[d] = b.charCodeAt(d);
1313
+ }, a.buf2binstring = function(v) {
1314
+ return S(v, v.length);
1315
+ }, a.binstring2buf = function(v) {
1316
+ for (var y = new n.Buf8(v.length), d = 0, k = y.length; d < k; d++) y[d] = v.charCodeAt(d);
1320
1317
  return y;
1321
- }, a.buf2string = function(b, y) {
1322
- var d, k, u, m, f = y || b.length, v = new Array(2 * f);
1323
- for (d = k = 0; d < f; ) if ((u = b[d++]) < 128) v[k++] = u;
1324
- else if (4 < (m = h[u])) v[k++] = 65533, d += m - 1;
1318
+ }, a.buf2string = function(v, y) {
1319
+ var d, k, u, m, f = y || v.length, b = new Array(2 * f);
1320
+ for (d = k = 0; d < f; ) if ((u = v[d++]) < 128) b[k++] = u;
1321
+ else if (4 < (m = h[u])) b[k++] = 65533, d += m - 1;
1325
1322
  else {
1326
- for (u &= m === 2 ? 31 : m === 3 ? 15 : 7; 1 < m && d < f; ) u = u << 6 | 63 & b[d++], m--;
1327
- 1 < m ? v[k++] = 65533 : u < 65536 ? v[k++] = u : (u -= 65536, v[k++] = 55296 | u >> 10 & 1023, v[k++] = 56320 | 1023 & u);
1323
+ for (u &= m === 2 ? 31 : m === 3 ? 15 : 7; 1 < m && d < f; ) u = u << 6 | 63 & v[d++], m--;
1324
+ 1 < m ? b[k++] = 65533 : u < 65536 ? b[k++] = u : (u -= 65536, b[k++] = 55296 | u >> 10 & 1023, b[k++] = 56320 | 1023 & u);
1328
1325
  }
1329
- return w(v, k);
1330
- }, a.utf8border = function(b, y) {
1326
+ return S(b, k);
1327
+ }, a.utf8border = function(v, y) {
1331
1328
  var d;
1332
- for ((y = y || b.length) > b.length && (y = b.length), d = y - 1; 0 <= d && (192 & b[d]) == 128; ) d--;
1333
- return d < 0 || d === 0 ? y : d + h[b[d]] > y ? d : y;
1329
+ for ((y = y || v.length) > v.length && (y = v.length), d = y - 1; 0 <= d && (192 & v[d]) == 128; ) d--;
1330
+ return d < 0 || d === 0 ? y : d + h[v[d]] > y ? d : y;
1334
1331
  };
1335
1332
  }, { "./common": 41 }], 43: [function(t, r, a) {
1336
1333
  r.exports = function(n, o, i, h) {
1337
- for (var _ = 65535 & n | 0, w = n >>> 16 & 65535 | 0, b = 0; i !== 0; ) {
1338
- for (i -= b = 2e3 < i ? 2e3 : i; w = w + (_ = _ + o[h++] | 0) | 0, --b; ) ;
1339
- _ %= 65521, w %= 65521;
1334
+ for (var _ = 65535 & n | 0, S = n >>> 16 & 65535 | 0, v = 0; i !== 0; ) {
1335
+ for (i -= v = 2e3 < i ? 2e3 : i; S = S + (_ = _ + o[h++] | 0) | 0, --v; ) ;
1336
+ _ %= 65521, S %= 65521;
1340
1337
  }
1341
- return _ | w << 16 | 0;
1338
+ return _ | S << 16 | 0;
1342
1339
  };
1343
1340
  }, {}], 44: [function(t, r, a) {
1344
1341
  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 };
@@ -1352,15 +1349,15 @@ function Be() {
1352
1349
  return i;
1353
1350
  })();
1354
1351
  r.exports = function(o, i, h, _) {
1355
- var w = n, b = _ + h;
1352
+ var S = n, v = _ + h;
1356
1353
  o ^= -1;
1357
- for (var y = _; y < b; y++) o = o >>> 8 ^ w[255 & (o ^ i[y])];
1354
+ for (var y = _; y < v; y++) o = o >>> 8 ^ S[255 & (o ^ i[y])];
1358
1355
  return -1 ^ o;
1359
1356
  };
1360
1357
  }, {}], 46: [function(t, r, a) {
1361
- var n, o = t("../utils/common"), i = t("./trees"), h = t("./adler32"), _ = t("./crc32"), w = t("./messages"), b = 0, y = 4, d = 0, k = -2, u = -1, m = 4, f = 2, v = 8, x = 9, E = 286, A = 30, L = 19, F = 2 * E + 1, H = 15, T = 3, V = 258, Q = V + T + 1, S = 42, I = 113, c = 1, D = 2, et = 3, $ = 4;
1358
+ var n, o = t("../utils/common"), i = t("./trees"), h = t("./adler32"), _ = t("./crc32"), S = t("./messages"), v = 0, y = 4, d = 0, k = -2, u = -1, m = 4, f = 2, b = 8, x = 9, E = 286, A = 30, L = 19, F = 2 * E + 1, H = 15, T = 3, V = 258, Q = V + T + 1, w = 42, I = 113, l = 1, D = 2, et = 3, $ = 4;
1362
1359
  function rt(s, O) {
1363
- return s.msg = w[O], O;
1360
+ return s.msg = S[O], O;
1364
1361
  }
1365
1362
  function W(s) {
1366
1363
  return (s << 1) - (4 < s ? 9 : 0);
@@ -1413,7 +1410,7 @@ function Be() {
1413
1410
  function mt(s, O) {
1414
1411
  for (var R, g; ; ) {
1415
1412
  if (s.lookahead < Q) {
1416
- if (ct(s), s.lookahead < Q && O === b) return c;
1413
+ if (ct(s), s.lookahead < Q && O === v) return l;
1417
1414
  if (s.lookahead === 0) break;
1418
1415
  }
1419
1416
  if (R = 0, s.lookahead >= T && (s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + T - 1]) & s.hash_mask, R = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h], s.head[s.ins_h] = s.strstart), R !== 0 && s.strstart - R <= s.w_size - Q && (s.match_length = X(s, R)), s.match_length >= T) if (g = i._tr_tally(s, s.strstart - s.match_start, s.match_length - T), s.lookahead -= s.match_length, s.match_length <= s.max_lazy_match && s.lookahead >= T) {
@@ -1421,34 +1418,34 @@ function Be() {
1421
1418
  s.strstart++;
1422
1419
  } else s.strstart += s.match_length, s.match_length = 0, s.ins_h = s.window[s.strstart], s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + 1]) & s.hash_mask;
1423
1420
  else g = i._tr_tally(s, 0, s.window[s.strstart]), s.lookahead--, s.strstart++;
1424
- if (g && (M(s, !1), s.strm.avail_out === 0)) return c;
1421
+ if (g && (M(s, !1), s.strm.avail_out === 0)) return l;
1425
1422
  }
1426
- return s.insert = s.strstart < T - 1 ? s.strstart : T - 1, O === y ? (M(s, !0), s.strm.avail_out === 0 ? et : $) : s.last_lit && (M(s, !1), s.strm.avail_out === 0) ? c : D;
1423
+ return s.insert = s.strstart < T - 1 ? s.strstart : T - 1, O === y ? (M(s, !0), s.strm.avail_out === 0 ? et : $) : s.last_lit && (M(s, !1), s.strm.avail_out === 0) ? l : D;
1427
1424
  }
1428
1425
  function at(s, O) {
1429
1426
  for (var R, g, p; ; ) {
1430
1427
  if (s.lookahead < Q) {
1431
- if (ct(s), s.lookahead < Q && O === b) return c;
1428
+ if (ct(s), s.lookahead < Q && O === v) return l;
1432
1429
  if (s.lookahead === 0) break;
1433
1430
  }
1434
1431
  if (R = 0, s.lookahead >= T && (s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + T - 1]) & s.hash_mask, R = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h], s.head[s.ins_h] = s.strstart), s.prev_length = s.match_length, s.prev_match = s.match_start, s.match_length = T - 1, R !== 0 && s.prev_length < s.max_lazy_match && s.strstart - R <= s.w_size - Q && (s.match_length = X(s, R), s.match_length <= 5 && (s.strategy === 1 || s.match_length === T && 4096 < s.strstart - s.match_start) && (s.match_length = T - 1)), s.prev_length >= T && s.match_length <= s.prev_length) {
1435
1432
  for (p = s.strstart + s.lookahead - T, g = i._tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - T), s.lookahead -= s.prev_length - 1, s.prev_length -= 2; ++s.strstart <= p && (s.ins_h = (s.ins_h << s.hash_shift ^ s.window[s.strstart + T - 1]) & s.hash_mask, R = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h], s.head[s.ins_h] = s.strstart), --s.prev_length != 0; ) ;
1436
- if (s.match_available = 0, s.match_length = T - 1, s.strstart++, g && (M(s, !1), s.strm.avail_out === 0)) return c;
1433
+ if (s.match_available = 0, s.match_length = T - 1, s.strstart++, g && (M(s, !1), s.strm.avail_out === 0)) return l;
1437
1434
  } else if (s.match_available) {
1438
- if ((g = i._tr_tally(s, 0, s.window[s.strstart - 1])) && M(s, !1), s.strstart++, s.lookahead--, s.strm.avail_out === 0) return c;
1435
+ if ((g = i._tr_tally(s, 0, s.window[s.strstart - 1])) && M(s, !1), s.strstart++, s.lookahead--, s.strm.avail_out === 0) return l;
1439
1436
  } else s.match_available = 1, s.strstart++, s.lookahead--;
1440
1437
  }
1441
- return s.match_available && (g = i._tr_tally(s, 0, s.window[s.strstart - 1]), s.match_available = 0), s.insert = s.strstart < T - 1 ? s.strstart : T - 1, O === y ? (M(s, !0), s.strm.avail_out === 0 ? et : $) : s.last_lit && (M(s, !1), s.strm.avail_out === 0) ? c : D;
1438
+ return s.match_available && (g = i._tr_tally(s, 0, s.window[s.strstart - 1]), s.match_available = 0), s.insert = s.strstart < T - 1 ? s.strstart : T - 1, O === y ? (M(s, !0), s.strm.avail_out === 0 ? et : $) : s.last_lit && (M(s, !1), s.strm.avail_out === 0) ? l : D;
1442
1439
  }
1443
1440
  function st(s, O, R, g, p) {
1444
1441
  this.good_length = s, this.max_lazy = O, this.nice_length = R, this.max_chain = g, this.func = p;
1445
1442
  }
1446
1443
  function pt() {
1447
- 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 * F), this.dyn_dtree = new o.Buf16(2 * (2 * A + 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(H + 1), this.heap = new o.Buf16(2 * E + 1), tt(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new o.Buf16(2 * E + 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;
1444
+ 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 = b, 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 * F), this.dyn_dtree = new o.Buf16(2 * (2 * A + 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(H + 1), this.heap = new o.Buf16(2 * E + 1), tt(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new o.Buf16(2 * E + 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;
1448
1445
  }
1449
1446
  function ht(s) {
1450
1447
  var O;
1451
- return s && s.state ? (s.total_in = s.total_out = 0, s.data_type = f, (O = s.state).pending = 0, O.pending_out = 0, O.wrap < 0 && (O.wrap = -O.wrap), O.status = O.wrap ? S : I, s.adler = O.wrap === 2 ? 0 : 1, O.last_flush = b, i._tr_init(O), d) : rt(s, k);
1448
+ return s && s.state ? (s.total_in = s.total_out = 0, s.data_type = f, (O = s.state).pending = 0, O.pending_out = 0, O.wrap < 0 && (O.wrap = -O.wrap), O.status = O.wrap ? w : I, s.adler = O.wrap === 2 ? 0 : 1, O.last_flush = v, i._tr_init(O), d) : rt(s, k);
1452
1449
  }
1453
1450
  function kt(s) {
1454
1451
  var O = ht(s);
@@ -1459,7 +1456,7 @@ function Be() {
1459
1456
  function vt(s, O, R, g, p, P) {
1460
1457
  if (!s) return k;
1461
1458
  var j = 1;
1462
- if (O === u && (O = 6), g < 0 ? (j = 0, g = -g) : 15 < g && (j = 2, g -= 16), p < 1 || x < p || R !== v || g < 8 || 15 < g || O < 0 || 9 < O || P < 0 || m < P) return rt(s, k);
1459
+ if (O === u && (O = 6), g < 0 ? (j = 0, g = -g) : 15 < g && (j = 2, g -= 16), p < 1 || x < p || R !== b || g < 8 || 15 < g || O < 0 || 9 < O || P < 0 || m < P) return rt(s, k);
1463
1460
  g === 8 && (g = 9);
1464
1461
  var U = new pt();
1465
1462
  return (s.state = U).strm = s, U.wrap = j, U.gzhead = null, U.w_bits = g, U.w_size = 1 << U.w_bits, U.w_mask = U.w_size - 1, U.hash_bits = p + 7, U.hash_size = 1 << U.hash_bits, U.hash_mask = U.hash_size - 1, U.hash_shift = ~~((U.hash_bits + T - 1) / T), U.window = new o.Buf8(2 * U.w_size), U.head = new o.Buf16(U.hash_size), U.prev = new o.Buf16(U.w_size), U.lit_bufsize = 1 << p + 6, U.pending_buf_size = 4 * U.lit_bufsize, U.pending_buf = new o.Buf8(U.pending_buf_size), U.d_buf = 1 * U.lit_bufsize, U.l_buf = 3 * U.lit_bufsize, U.level = O, U.strategy = P, U.method = R, kt(s);
@@ -1468,25 +1465,25 @@ function Be() {
1468
1465
  var R = 65535;
1469
1466
  for (R > s.pending_buf_size - 5 && (R = s.pending_buf_size - 5); ; ) {
1470
1467
  if (s.lookahead <= 1) {
1471
- if (ct(s), s.lookahead === 0 && O === b) return c;
1468
+ if (ct(s), s.lookahead === 0 && O === v) return l;
1472
1469
  if (s.lookahead === 0) break;
1473
1470
  }
1474
1471
  s.strstart += s.lookahead, s.lookahead = 0;
1475
1472
  var g = s.block_start + R;
1476
- if ((s.strstart === 0 || s.strstart >= g) && (s.lookahead = s.strstart - g, s.strstart = g, M(s, !1), s.strm.avail_out === 0) || s.strstart - s.block_start >= s.w_size - Q && (M(s, !1), s.strm.avail_out === 0)) return c;
1473
+ if ((s.strstart === 0 || s.strstart >= g) && (s.lookahead = s.strstart - g, s.strstart = g, M(s, !1), s.strm.avail_out === 0) || s.strstart - s.block_start >= s.w_size - Q && (M(s, !1), s.strm.avail_out === 0)) return l;
1477
1474
  }
1478
- return s.insert = 0, O === y ? (M(s, !0), s.strm.avail_out === 0 ? et : $) : (s.strstart > s.block_start && (M(s, !1), s.strm.avail_out), c);
1475
+ return s.insert = 0, O === y ? (M(s, !0), s.strm.avail_out === 0 ? et : $) : (s.strstart > s.block_start && (M(s, !1), s.strm.avail_out), l);
1479
1476
  }), new st(4, 4, 8, 4, mt), new st(4, 5, 16, 8, mt), new st(4, 6, 32, 32, mt), new st(4, 4, 16, 16, at), new st(8, 16, 32, 32, at), new st(8, 16, 128, 128, at), new st(8, 32, 128, 256, at), new st(32, 128, 258, 1024, at), new st(32, 258, 258, 4096, at)], a.deflateInit = function(s, O) {
1480
- return vt(s, O, v, 15, 8, 0);
1477
+ return vt(s, O, b, 15, 8, 0);
1481
1478
  }, a.deflateInit2 = vt, a.deflateReset = kt, a.deflateResetKeep = ht, a.deflateSetHeader = function(s, O) {
1482
1479
  return s && s.state ? s.state.wrap !== 2 ? k : (s.state.gzhead = O, d) : k;
1483
1480
  }, a.deflate = function(s, O) {
1484
1481
  var R, g, p, P;
1485
1482
  if (!s || !s.state || 5 < O || O < 0) return s ? rt(s, k) : k;
1486
1483
  if (g = s.state, !s.output || !s.input && s.avail_in !== 0 || g.status === 666 && O !== y) return rt(s, s.avail_out === 0 ? -5 : k);
1487
- if (g.strm = s, R = g.last_flush, g.last_flush = O, g.status === S) if (g.wrap === 2) s.adler = 0, J(g, 31), J(g, 139), J(g, 8), g.gzhead ? (J(g, (g.gzhead.text ? 1 : 0) + (g.gzhead.hcrc ? 2 : 0) + (g.gzhead.extra ? 4 : 0) + (g.gzhead.name ? 8 : 0) + (g.gzhead.comment ? 16 : 0)), J(g, 255 & g.gzhead.time), J(g, g.gzhead.time >> 8 & 255), J(g, g.gzhead.time >> 16 & 255), J(g, g.gzhead.time >> 24 & 255), J(g, g.level === 9 ? 2 : 2 <= g.strategy || g.level < 2 ? 4 : 0), J(g, 255 & g.gzhead.os), g.gzhead.extra && g.gzhead.extra.length && (J(g, 255 & g.gzhead.extra.length), J(g, g.gzhead.extra.length >> 8 & 255)), g.gzhead.hcrc && (s.adler = _(s.adler, g.pending_buf, g.pending, 0)), g.gzindex = 0, g.status = 69) : (J(g, 0), J(g, 0), J(g, 0), J(g, 0), J(g, 0), J(g, g.level === 9 ? 2 : 2 <= g.strategy || g.level < 2 ? 4 : 0), J(g, 3), g.status = I);
1484
+ if (g.strm = s, R = g.last_flush, g.last_flush = O, g.status === w) if (g.wrap === 2) s.adler = 0, J(g, 31), J(g, 139), J(g, 8), g.gzhead ? (J(g, (g.gzhead.text ? 1 : 0) + (g.gzhead.hcrc ? 2 : 0) + (g.gzhead.extra ? 4 : 0) + (g.gzhead.name ? 8 : 0) + (g.gzhead.comment ? 16 : 0)), J(g, 255 & g.gzhead.time), J(g, g.gzhead.time >> 8 & 255), J(g, g.gzhead.time >> 16 & 255), J(g, g.gzhead.time >> 24 & 255), J(g, g.level === 9 ? 2 : 2 <= g.strategy || g.level < 2 ? 4 : 0), J(g, 255 & g.gzhead.os), g.gzhead.extra && g.gzhead.extra.length && (J(g, 255 & g.gzhead.extra.length), J(g, g.gzhead.extra.length >> 8 & 255)), g.gzhead.hcrc && (s.adler = _(s.adler, g.pending_buf, g.pending, 0)), g.gzindex = 0, g.status = 69) : (J(g, 0), J(g, 0), J(g, 0), J(g, 0), J(g, 0), J(g, g.level === 9 ? 2 : 2 <= g.strategy || g.level < 2 ? 4 : 0), J(g, 3), g.status = I);
1488
1485
  else {
1489
- var j = v + (g.w_bits - 8 << 4) << 8;
1486
+ var j = b + (g.w_bits - 8 << 4) << 8;
1490
1487
  j |= (2 <= g.strategy || g.level < 2 ? 0 : g.level < 6 ? 1 : g.level === 6 ? 2 : 3) << 6, g.strstart !== 0 && (j |= 32), j += 31 - j % 31, g.status = I, K(g, j), g.strstart !== 0 && (K(g, s.adler >>> 16), K(g, 65535 & s.adler)), s.adler = 1;
1491
1488
  }
1492
1489
  if (g.status === 69) if (g.gzhead.extra) {
@@ -1519,20 +1516,20 @@ function Be() {
1519
1516
  if (z(s), s.avail_out === 0) return g.last_flush = -1, d;
1520
1517
  } else if (s.avail_in === 0 && W(O) <= W(R) && O !== y) return rt(s, -5);
1521
1518
  if (g.status === 666 && s.avail_in !== 0) return rt(s, -5);
1522
- if (s.avail_in !== 0 || g.lookahead !== 0 || O !== b && g.status !== 666) {
1519
+ if (s.avail_in !== 0 || g.lookahead !== 0 || O !== v && g.status !== 666) {
1523
1520
  var U = g.strategy === 2 ? (function(N, Z) {
1524
1521
  for (var Y; ; ) {
1525
1522
  if (N.lookahead === 0 && (ct(N), N.lookahead === 0)) {
1526
- if (Z === b) return c;
1523
+ if (Z === v) return l;
1527
1524
  break;
1528
1525
  }
1529
- if (N.match_length = 0, Y = i._tr_tally(N, 0, N.window[N.strstart]), N.lookahead--, N.strstart++, Y && (M(N, !1), N.strm.avail_out === 0)) return c;
1526
+ if (N.match_length = 0, Y = i._tr_tally(N, 0, N.window[N.strstart]), N.lookahead--, N.strstart++, Y && (M(N, !1), N.strm.avail_out === 0)) return l;
1530
1527
  }
1531
- return N.insert = 0, Z === y ? (M(N, !0), N.strm.avail_out === 0 ? et : $) : N.last_lit && (M(N, !1), N.strm.avail_out === 0) ? c : D;
1528
+ return N.insert = 0, Z === y ? (M(N, !0), N.strm.avail_out === 0 ? et : $) : N.last_lit && (M(N, !1), N.strm.avail_out === 0) ? l : D;
1532
1529
  })(g, O) : g.strategy === 3 ? (function(N, Z) {
1533
1530
  for (var Y, G, q, lt, nt = N.window; ; ) {
1534
1531
  if (N.lookahead <= V) {
1535
- if (ct(N), N.lookahead <= V && Z === b) return c;
1532
+ if (ct(N), N.lookahead <= V && Z === v) return l;
1536
1533
  if (N.lookahead === 0) break;
1537
1534
  }
1538
1535
  if (N.match_length = 0, N.lookahead >= T && 0 < N.strstart && (G = nt[q = N.strstart - 1]) === nt[++q] && G === nt[++q] && G === nt[++q]) {
@@ -1542,20 +1539,20 @@ function Be() {
1542
1539
  while (G === nt[++q] && G === nt[++q] && G === nt[++q] && G === nt[++q] && G === nt[++q] && G === nt[++q] && G === nt[++q] && G === nt[++q] && q < lt);
1543
1540
  N.match_length = V - (lt - q), N.match_length > N.lookahead && (N.match_length = N.lookahead);
1544
1541
  }
1545
- if (N.match_length >= T ? (Y = i._tr_tally(N, 1, N.match_length - T), N.lookahead -= N.match_length, N.strstart += N.match_length, N.match_length = 0) : (Y = i._tr_tally(N, 0, N.window[N.strstart]), N.lookahead--, N.strstart++), Y && (M(N, !1), N.strm.avail_out === 0)) return c;
1542
+ if (N.match_length >= T ? (Y = i._tr_tally(N, 1, N.match_length - T), N.lookahead -= N.match_length, N.strstart += N.match_length, N.match_length = 0) : (Y = i._tr_tally(N, 0, N.window[N.strstart]), N.lookahead--, N.strstart++), Y && (M(N, !1), N.strm.avail_out === 0)) return l;
1546
1543
  }
1547
- return N.insert = 0, Z === y ? (M(N, !0), N.strm.avail_out === 0 ? et : $) : N.last_lit && (M(N, !1), N.strm.avail_out === 0) ? c : D;
1544
+ return N.insert = 0, Z === y ? (M(N, !0), N.strm.avail_out === 0 ? et : $) : N.last_lit && (M(N, !1), N.strm.avail_out === 0) ? l : D;
1548
1545
  })(g, O) : n[g.level].func(g, O);
1549
- if (U !== et && U !== $ || (g.status = 666), U === c || U === et) return s.avail_out === 0 && (g.last_flush = -1), d;
1546
+ if (U !== et && U !== $ || (g.status = 666), U === l || U === et) return s.avail_out === 0 && (g.last_flush = -1), d;
1550
1547
  if (U === D && (O === 1 ? i._tr_align(g) : O !== 5 && (i._tr_stored_block(g, 0, 0, !1), O === 3 && (tt(g.head), g.lookahead === 0 && (g.strstart = 0, g.block_start = 0, g.insert = 0))), z(s), s.avail_out === 0)) return g.last_flush = -1, d;
1551
1548
  }
1552
1549
  return O !== y ? d : g.wrap <= 0 ? 1 : (g.wrap === 2 ? (J(g, 255 & s.adler), J(g, s.adler >> 8 & 255), J(g, s.adler >> 16 & 255), J(g, s.adler >> 24 & 255), J(g, 255 & s.total_in), J(g, s.total_in >> 8 & 255), J(g, s.total_in >> 16 & 255), J(g, s.total_in >> 24 & 255)) : (K(g, s.adler >>> 16), K(g, 65535 & s.adler)), z(s), 0 < g.wrap && (g.wrap = -g.wrap), g.pending !== 0 ? d : 1);
1553
1550
  }, a.deflateEnd = function(s) {
1554
1551
  var O;
1555
- return s && s.state ? (O = s.state.status) !== S && O !== 69 && O !== 73 && O !== 91 && O !== 103 && O !== I && O !== 666 ? rt(s, k) : (s.state = null, O === I ? rt(s, -3) : d) : k;
1552
+ return s && s.state ? (O = s.state.status) !== w && O !== 69 && O !== 73 && O !== 91 && O !== 103 && O !== I && O !== 666 ? rt(s, k) : (s.state = null, O === I ? rt(s, -3) : d) : k;
1556
1553
  }, a.deflateSetDictionary = function(s, O) {
1557
1554
  var R, g, p, P, j, U, N, Z, Y = O.length;
1558
- if (!s || !s.state || (P = (R = s.state).wrap) === 2 || P === 1 && R.status !== S || R.lookahead) return k;
1555
+ if (!s || !s.state || (P = (R = s.state).wrap) === 2 || P === 1 && R.status !== w || R.lookahead) return k;
1559
1556
  for (P === 1 && (s.adler = h(s.adler, O, Y, 0)), R.wrap = 0, Y >= R.w_size && (P === 0 && (tt(R.head), R.strstart = 0, R.block_start = 0, R.insert = 0), Z = new o.Buf8(R.w_size), o.arraySet(Z, O, Y - R.w_size, R.w_size, 0), O = Z, Y = R.w_size), j = s.avail_in, U = s.next_in, N = s.input, s.avail_in = Y, s.next_in = 0, s.input = O, ct(R); R.lookahead >= T; ) {
1560
1557
  for (g = R.strstart, p = R.lookahead - (T - 1); R.ins_h = (R.ins_h << R.hash_shift ^ R.window[g + T - 1]) & R.hash_mask, R.prev[g & R.w_mask] = R.head[R.ins_h], R.head[R.ins_h] = g, g++, --p; ) ;
1561
1558
  R.strstart = g, R.lookahead = T - 1, ct(R);
@@ -1568,16 +1565,16 @@ function Be() {
1568
1565
  };
1569
1566
  }, {}], 48: [function(t, r, a) {
1570
1567
  r.exports = function(n, o) {
1571
- var i, h, _, w, b, y, d, k, u, m, f, v, x, E, A, L, F, H, T, V, Q, S, I, c, D;
1572
- i = n.state, h = n.next_in, c = n.input, _ = h + (n.avail_in - 5), w = n.next_out, D = n.output, b = w - (o - n.avail_out), y = w + (n.avail_out - 257), d = i.dmax, k = i.wsize, u = i.whave, m = i.wnext, f = i.window, v = i.hold, x = i.bits, E = i.lencode, A = i.distcode, L = (1 << i.lenbits) - 1, F = (1 << i.distbits) - 1;
1568
+ var i, h, _, S, v, y, d, k, u, m, f, b, x, E, A, L, F, H, T, V, Q, w, I, l, D;
1569
+ i = n.state, h = n.next_in, l = n.input, _ = h + (n.avail_in - 5), S = n.next_out, D = n.output, v = S - (o - n.avail_out), y = S + (n.avail_out - 257), d = i.dmax, k = i.wsize, u = i.whave, m = i.wnext, f = i.window, b = i.hold, x = i.bits, E = i.lencode, A = i.distcode, L = (1 << i.lenbits) - 1, F = (1 << i.distbits) - 1;
1573
1570
  t: do {
1574
- x < 15 && (v += c[h++] << x, x += 8, v += c[h++] << x, x += 8), H = E[v & L];
1571
+ x < 15 && (b += l[h++] << x, x += 8, b += l[h++] << x, x += 8), H = E[b & L];
1575
1572
  e: for (; ; ) {
1576
- if (v >>>= T = H >>> 24, x -= T, (T = H >>> 16 & 255) === 0) D[w++] = 65535 & H;
1573
+ if (b >>>= T = H >>> 24, x -= T, (T = H >>> 16 & 255) === 0) D[S++] = 65535 & H;
1577
1574
  else {
1578
1575
  if (!(16 & T)) {
1579
1576
  if ((64 & T) == 0) {
1580
- H = E[(65535 & H) + (v & (1 << T) - 1)];
1577
+ H = E[(65535 & H) + (b & (1 << T) - 1)];
1581
1578
  continue e;
1582
1579
  }
1583
1580
  if (32 & T) {
@@ -1587,231 +1584,231 @@ function Be() {
1587
1584
  n.msg = "invalid literal/length code", i.mode = 30;
1588
1585
  break t;
1589
1586
  }
1590
- V = 65535 & H, (T &= 15) && (x < T && (v += c[h++] << x, x += 8), V += v & (1 << T) - 1, v >>>= T, x -= T), x < 15 && (v += c[h++] << x, x += 8, v += c[h++] << x, x += 8), H = A[v & F];
1587
+ V = 65535 & H, (T &= 15) && (x < T && (b += l[h++] << x, x += 8), V += b & (1 << T) - 1, b >>>= T, x -= T), x < 15 && (b += l[h++] << x, x += 8, b += l[h++] << x, x += 8), H = A[b & F];
1591
1588
  r: for (; ; ) {
1592
- if (v >>>= T = H >>> 24, x -= T, !(16 & (T = H >>> 16 & 255))) {
1589
+ if (b >>>= T = H >>> 24, x -= T, !(16 & (T = H >>> 16 & 255))) {
1593
1590
  if ((64 & T) == 0) {
1594
- H = A[(65535 & H) + (v & (1 << T) - 1)];
1591
+ H = A[(65535 & H) + (b & (1 << T) - 1)];
1595
1592
  continue r;
1596
1593
  }
1597
1594
  n.msg = "invalid distance code", i.mode = 30;
1598
1595
  break t;
1599
1596
  }
1600
- if (Q = 65535 & H, x < (T &= 15) && (v += c[h++] << x, (x += 8) < T && (v += c[h++] << x, x += 8)), d < (Q += v & (1 << T) - 1)) {
1597
+ if (Q = 65535 & H, x < (T &= 15) && (b += l[h++] << x, (x += 8) < T && (b += l[h++] << x, x += 8)), d < (Q += b & (1 << T) - 1)) {
1601
1598
  n.msg = "invalid distance too far back", i.mode = 30;
1602
1599
  break t;
1603
1600
  }
1604
- if (v >>>= T, x -= T, (T = w - b) < Q) {
1601
+ if (b >>>= T, x -= T, (T = S - v) < Q) {
1605
1602
  if (u < (T = Q - T) && i.sane) {
1606
1603
  n.msg = "invalid distance too far back", i.mode = 30;
1607
1604
  break t;
1608
1605
  }
1609
- if (I = f, (S = 0) === m) {
1610
- if (S += k - T, T < V) {
1611
- for (V -= T; D[w++] = f[S++], --T; ) ;
1612
- S = w - Q, I = D;
1606
+ if (I = f, (w = 0) === m) {
1607
+ if (w += k - T, T < V) {
1608
+ for (V -= T; D[S++] = f[w++], --T; ) ;
1609
+ w = S - Q, I = D;
1613
1610
  }
1614
1611
  } else if (m < T) {
1615
- if (S += k + m - T, (T -= m) < V) {
1616
- for (V -= T; D[w++] = f[S++], --T; ) ;
1617
- if (S = 0, m < V) {
1618
- for (V -= T = m; D[w++] = f[S++], --T; ) ;
1619
- S = w - Q, I = D;
1612
+ if (w += k + m - T, (T -= m) < V) {
1613
+ for (V -= T; D[S++] = f[w++], --T; ) ;
1614
+ if (w = 0, m < V) {
1615
+ for (V -= T = m; D[S++] = f[w++], --T; ) ;
1616
+ w = S - Q, I = D;
1620
1617
  }
1621
1618
  }
1622
- } else if (S += m - T, T < V) {
1623
- for (V -= T; D[w++] = f[S++], --T; ) ;
1624
- S = w - Q, I = D;
1619
+ } else if (w += m - T, T < V) {
1620
+ for (V -= T; D[S++] = f[w++], --T; ) ;
1621
+ w = S - Q, I = D;
1625
1622
  }
1626
- for (; 2 < V; ) D[w++] = I[S++], D[w++] = I[S++], D[w++] = I[S++], V -= 3;
1627
- V && (D[w++] = I[S++], 1 < V && (D[w++] = I[S++]));
1623
+ for (; 2 < V; ) D[S++] = I[w++], D[S++] = I[w++], D[S++] = I[w++], V -= 3;
1624
+ V && (D[S++] = I[w++], 1 < V && (D[S++] = I[w++]));
1628
1625
  } else {
1629
- for (S = w - Q; D[w++] = D[S++], D[w++] = D[S++], D[w++] = D[S++], 2 < (V -= 3); ) ;
1630
- V && (D[w++] = D[S++], 1 < V && (D[w++] = D[S++]));
1626
+ for (w = S - Q; D[S++] = D[w++], D[S++] = D[w++], D[S++] = D[w++], 2 < (V -= 3); ) ;
1627
+ V && (D[S++] = D[w++], 1 < V && (D[S++] = D[w++]));
1631
1628
  }
1632
1629
  break;
1633
1630
  }
1634
1631
  }
1635
1632
  break;
1636
1633
  }
1637
- } while (h < _ && w < y);
1638
- h -= V = x >> 3, v &= (1 << (x -= V << 3)) - 1, n.next_in = h, n.next_out = w, n.avail_in = h < _ ? _ - h + 5 : 5 - (h - _), n.avail_out = w < y ? y - w + 257 : 257 - (w - y), i.hold = v, i.bits = x;
1634
+ } while (h < _ && S < y);
1635
+ h -= V = x >> 3, b &= (1 << (x -= V << 3)) - 1, n.next_in = h, n.next_out = S, n.avail_in = h < _ ? _ - h + 5 : 5 - (h - _), n.avail_out = S < y ? y - S + 257 : 257 - (S - y), i.hold = b, i.bits = x;
1639
1636
  };
1640
1637
  }, {}], 49: [function(t, r, a) {
1641
- var n = t("../utils/common"), o = t("./adler32"), i = t("./crc32"), h = t("./inffast"), _ = t("./inftrees"), w = 1, b = 2, y = 0, d = -2, k = 1, u = 852, m = 592;
1642
- function f(S) {
1643
- return (S >>> 24 & 255) + (S >>> 8 & 65280) + ((65280 & S) << 8) + ((255 & S) << 24);
1638
+ var n = t("../utils/common"), o = t("./adler32"), i = t("./crc32"), h = t("./inffast"), _ = t("./inftrees"), S = 1, v = 2, y = 0, d = -2, k = 1, u = 852, m = 592;
1639
+ function f(w) {
1640
+ return (w >>> 24 & 255) + (w >>> 8 & 65280) + ((65280 & w) << 8) + ((255 & w) << 24);
1644
1641
  }
1645
- function v() {
1642
+ function b() {
1646
1643
  this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new n.Buf16(320), this.work = new n.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
1647
1644
  }
1648
- function x(S) {
1645
+ function x(w) {
1649
1646
  var I;
1650
- return S && S.state ? (I = S.state, S.total_in = S.total_out = I.total = 0, S.msg = "", I.wrap && (S.adler = 1 & I.wrap), I.mode = k, I.last = 0, I.havedict = 0, I.dmax = 32768, I.head = null, I.hold = 0, I.bits = 0, I.lencode = I.lendyn = new n.Buf32(u), I.distcode = I.distdyn = new n.Buf32(m), I.sane = 1, I.back = -1, y) : d;
1647
+ return w && w.state ? (I = w.state, w.total_in = w.total_out = I.total = 0, w.msg = "", I.wrap && (w.adler = 1 & I.wrap), I.mode = k, I.last = 0, I.havedict = 0, I.dmax = 32768, I.head = null, I.hold = 0, I.bits = 0, I.lencode = I.lendyn = new n.Buf32(u), I.distcode = I.distdyn = new n.Buf32(m), I.sane = 1, I.back = -1, y) : d;
1651
1648
  }
1652
- function E(S) {
1649
+ function E(w) {
1653
1650
  var I;
1654
- return S && S.state ? ((I = S.state).wsize = 0, I.whave = 0, I.wnext = 0, x(S)) : d;
1651
+ return w && w.state ? ((I = w.state).wsize = 0, I.whave = 0, I.wnext = 0, x(w)) : d;
1655
1652
  }
1656
- function A(S, I) {
1657
- var c, D;
1658
- return S && S.state ? (D = S.state, I < 0 ? (c = 0, I = -I) : (c = 1 + (I >> 4), I < 48 && (I &= 15)), I && (I < 8 || 15 < I) ? d : (D.window !== null && D.wbits !== I && (D.window = null), D.wrap = c, D.wbits = I, E(S))) : d;
1653
+ function A(w, I) {
1654
+ var l, D;
1655
+ return w && w.state ? (D = w.state, I < 0 ? (l = 0, I = -I) : (l = 1 + (I >> 4), I < 48 && (I &= 15)), I && (I < 8 || 15 < I) ? d : (D.window !== null && D.wbits !== I && (D.window = null), D.wrap = l, D.wbits = I, E(w))) : d;
1659
1656
  }
1660
- function L(S, I) {
1661
- var c, D;
1662
- return S ? (D = new v(), (S.state = D).window = null, (c = A(S, I)) !== y && (S.state = null), c) : d;
1657
+ function L(w, I) {
1658
+ var l, D;
1659
+ return w ? (D = new b(), (w.state = D).window = null, (l = A(w, I)) !== y && (w.state = null), l) : d;
1663
1660
  }
1664
1661
  var F, H, T = !0;
1665
- function V(S) {
1662
+ function V(w) {
1666
1663
  if (T) {
1667
1664
  var I;
1668
- for (F = new n.Buf32(512), H = new n.Buf32(32), I = 0; I < 144; ) S.lens[I++] = 8;
1669
- for (; I < 256; ) S.lens[I++] = 9;
1670
- for (; I < 280; ) S.lens[I++] = 7;
1671
- for (; I < 288; ) S.lens[I++] = 8;
1672
- for (_(w, S.lens, 0, 288, F, 0, S.work, { bits: 9 }), I = 0; I < 32; ) S.lens[I++] = 5;
1673
- _(b, S.lens, 0, 32, H, 0, S.work, { bits: 5 }), T = !1;
1665
+ for (F = new n.Buf32(512), H = new n.Buf32(32), I = 0; I < 144; ) w.lens[I++] = 8;
1666
+ for (; I < 256; ) w.lens[I++] = 9;
1667
+ for (; I < 280; ) w.lens[I++] = 7;
1668
+ for (; I < 288; ) w.lens[I++] = 8;
1669
+ for (_(S, w.lens, 0, 288, F, 0, w.work, { bits: 9 }), I = 0; I < 32; ) w.lens[I++] = 5;
1670
+ _(v, w.lens, 0, 32, H, 0, w.work, { bits: 5 }), T = !1;
1674
1671
  }
1675
- S.lencode = F, S.lenbits = 9, S.distcode = H, S.distbits = 5;
1672
+ w.lencode = F, w.lenbits = 9, w.distcode = H, w.distbits = 5;
1676
1673
  }
1677
- function Q(S, I, c, D) {
1678
- var et, $ = S.state;
1679
- return $.window === null && ($.wsize = 1 << $.wbits, $.wnext = 0, $.whave = 0, $.window = new n.Buf8($.wsize)), D >= $.wsize ? (n.arraySet($.window, I, c - $.wsize, $.wsize, 0), $.wnext = 0, $.whave = $.wsize) : (D < (et = $.wsize - $.wnext) && (et = D), n.arraySet($.window, I, c - D, et, $.wnext), (D -= et) ? (n.arraySet($.window, I, c - D, D, 0), $.wnext = D, $.whave = $.wsize) : ($.wnext += et, $.wnext === $.wsize && ($.wnext = 0), $.whave < $.wsize && ($.whave += et))), 0;
1674
+ function Q(w, I, l, D) {
1675
+ var et, $ = w.state;
1676
+ return $.window === null && ($.wsize = 1 << $.wbits, $.wnext = 0, $.whave = 0, $.window = new n.Buf8($.wsize)), D >= $.wsize ? (n.arraySet($.window, I, l - $.wsize, $.wsize, 0), $.wnext = 0, $.whave = $.wsize) : (D < (et = $.wsize - $.wnext) && (et = D), n.arraySet($.window, I, l - D, et, $.wnext), (D -= et) ? (n.arraySet($.window, I, l - D, D, 0), $.wnext = D, $.whave = $.wsize) : ($.wnext += et, $.wnext === $.wsize && ($.wnext = 0), $.whave < $.wsize && ($.whave += et))), 0;
1680
1677
  }
1681
- a.inflateReset = E, a.inflateReset2 = A, a.inflateResetKeep = x, a.inflateInit = function(S) {
1682
- return L(S, 15);
1683
- }, a.inflateInit2 = L, a.inflate = function(S, I) {
1684
- var c, D, et, $, rt, W, tt, z, M, J, K, X, ct, mt, at, st, pt, ht, kt, vt, s, O, R, g, p = 0, P = new n.Buf8(4), j = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
1685
- if (!S || !S.state || !S.output || !S.input && S.avail_in !== 0) return d;
1686
- (c = S.state).mode === 12 && (c.mode = 13), rt = S.next_out, et = S.output, tt = S.avail_out, $ = S.next_in, D = S.input, W = S.avail_in, z = c.hold, M = c.bits, J = W, K = tt, O = y;
1687
- t: for (; ; ) switch (c.mode) {
1678
+ a.inflateReset = E, a.inflateReset2 = A, a.inflateResetKeep = x, a.inflateInit = function(w) {
1679
+ return L(w, 15);
1680
+ }, a.inflateInit2 = L, a.inflate = function(w, I) {
1681
+ var l, D, et, $, rt, W, tt, z, M, J, K, X, ct, mt, at, st, pt, ht, kt, vt, s, O, R, g, p = 0, P = new n.Buf8(4), j = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
1682
+ if (!w || !w.state || !w.output || !w.input && w.avail_in !== 0) return d;
1683
+ (l = w.state).mode === 12 && (l.mode = 13), rt = w.next_out, et = w.output, tt = w.avail_out, $ = w.next_in, D = w.input, W = w.avail_in, z = l.hold, M = l.bits, J = W, K = tt, O = y;
1684
+ t: for (; ; ) switch (l.mode) {
1688
1685
  case k:
1689
- if (c.wrap === 0) {
1690
- c.mode = 13;
1686
+ if (l.wrap === 0) {
1687
+ l.mode = 13;
1691
1688
  break;
1692
1689
  }
1693
1690
  for (; M < 16; ) {
1694
1691
  if (W === 0) break t;
1695
1692
  W--, z += D[$++] << M, M += 8;
1696
1693
  }
1697
- if (2 & c.wrap && z === 35615) {
1698
- P[c.check = 0] = 255 & z, P[1] = z >>> 8 & 255, c.check = i(c.check, P, 2, 0), M = z = 0, c.mode = 2;
1694
+ if (2 & l.wrap && z === 35615) {
1695
+ P[l.check = 0] = 255 & z, P[1] = z >>> 8 & 255, l.check = i(l.check, P, 2, 0), M = z = 0, l.mode = 2;
1699
1696
  break;
1700
1697
  }
1701
- if (c.flags = 0, c.head && (c.head.done = !1), !(1 & c.wrap) || (((255 & z) << 8) + (z >> 8)) % 31) {
1702
- S.msg = "incorrect header check", c.mode = 30;
1698
+ if (l.flags = 0, l.head && (l.head.done = !1), !(1 & l.wrap) || (((255 & z) << 8) + (z >> 8)) % 31) {
1699
+ w.msg = "incorrect header check", l.mode = 30;
1703
1700
  break;
1704
1701
  }
1705
1702
  if ((15 & z) != 8) {
1706
- S.msg = "unknown compression method", c.mode = 30;
1703
+ w.msg = "unknown compression method", l.mode = 30;
1707
1704
  break;
1708
1705
  }
1709
- if (M -= 4, s = 8 + (15 & (z >>>= 4)), c.wbits === 0) c.wbits = s;
1710
- else if (s > c.wbits) {
1711
- S.msg = "invalid window size", c.mode = 30;
1706
+ if (M -= 4, s = 8 + (15 & (z >>>= 4)), l.wbits === 0) l.wbits = s;
1707
+ else if (s > l.wbits) {
1708
+ w.msg = "invalid window size", l.mode = 30;
1712
1709
  break;
1713
1710
  }
1714
- c.dmax = 1 << s, S.adler = c.check = 1, c.mode = 512 & z ? 10 : 12, M = z = 0;
1711
+ l.dmax = 1 << s, w.adler = l.check = 1, l.mode = 512 & z ? 10 : 12, M = z = 0;
1715
1712
  break;
1716
1713
  case 2:
1717
1714
  for (; M < 16; ) {
1718
1715
  if (W === 0) break t;
1719
1716
  W--, z += D[$++] << M, M += 8;
1720
1717
  }
1721
- if (c.flags = z, (255 & c.flags) != 8) {
1722
- S.msg = "unknown compression method", c.mode = 30;
1718
+ if (l.flags = z, (255 & l.flags) != 8) {
1719
+ w.msg = "unknown compression method", l.mode = 30;
1723
1720
  break;
1724
1721
  }
1725
- if (57344 & c.flags) {
1726
- S.msg = "unknown header flags set", c.mode = 30;
1722
+ if (57344 & l.flags) {
1723
+ w.msg = "unknown header flags set", l.mode = 30;
1727
1724
  break;
1728
1725
  }
1729
- c.head && (c.head.text = z >> 8 & 1), 512 & c.flags && (P[0] = 255 & z, P[1] = z >>> 8 & 255, c.check = i(c.check, P, 2, 0)), M = z = 0, c.mode = 3;
1726
+ l.head && (l.head.text = z >> 8 & 1), 512 & l.flags && (P[0] = 255 & z, P[1] = z >>> 8 & 255, l.check = i(l.check, P, 2, 0)), M = z = 0, l.mode = 3;
1730
1727
  case 3:
1731
1728
  for (; M < 32; ) {
1732
1729
  if (W === 0) break t;
1733
1730
  W--, z += D[$++] << M, M += 8;
1734
1731
  }
1735
- c.head && (c.head.time = z), 512 & c.flags && (P[0] = 255 & z, P[1] = z >>> 8 & 255, P[2] = z >>> 16 & 255, P[3] = z >>> 24 & 255, c.check = i(c.check, P, 4, 0)), M = z = 0, c.mode = 4;
1732
+ l.head && (l.head.time = z), 512 & l.flags && (P[0] = 255 & z, P[1] = z >>> 8 & 255, P[2] = z >>> 16 & 255, P[3] = z >>> 24 & 255, l.check = i(l.check, P, 4, 0)), M = z = 0, l.mode = 4;
1736
1733
  case 4:
1737
1734
  for (; M < 16; ) {
1738
1735
  if (W === 0) break t;
1739
1736
  W--, z += D[$++] << M, M += 8;
1740
1737
  }
1741
- c.head && (c.head.xflags = 255 & z, c.head.os = z >> 8), 512 & c.flags && (P[0] = 255 & z, P[1] = z >>> 8 & 255, c.check = i(c.check, P, 2, 0)), M = z = 0, c.mode = 5;
1738
+ l.head && (l.head.xflags = 255 & z, l.head.os = z >> 8), 512 & l.flags && (P[0] = 255 & z, P[1] = z >>> 8 & 255, l.check = i(l.check, P, 2, 0)), M = z = 0, l.mode = 5;
1742
1739
  case 5:
1743
- if (1024 & c.flags) {
1740
+ if (1024 & l.flags) {
1744
1741
  for (; M < 16; ) {
1745
1742
  if (W === 0) break t;
1746
1743
  W--, z += D[$++] << M, M += 8;
1747
1744
  }
1748
- c.length = z, c.head && (c.head.extra_len = z), 512 & c.flags && (P[0] = 255 & z, P[1] = z >>> 8 & 255, c.check = i(c.check, P, 2, 0)), M = z = 0;
1749
- } else c.head && (c.head.extra = null);
1750
- c.mode = 6;
1745
+ l.length = z, l.head && (l.head.extra_len = z), 512 & l.flags && (P[0] = 255 & z, P[1] = z >>> 8 & 255, l.check = i(l.check, P, 2, 0)), M = z = 0;
1746
+ } else l.head && (l.head.extra = null);
1747
+ l.mode = 6;
1751
1748
  case 6:
1752
- if (1024 & c.flags && (W < (X = c.length) && (X = W), X && (c.head && (s = c.head.extra_len - c.length, c.head.extra || (c.head.extra = new Array(c.head.extra_len)), n.arraySet(c.head.extra, D, $, X, s)), 512 & c.flags && (c.check = i(c.check, D, X, $)), W -= X, $ += X, c.length -= X), c.length)) break t;
1753
- c.length = 0, c.mode = 7;
1749
+ if (1024 & l.flags && (W < (X = l.length) && (X = W), X && (l.head && (s = l.head.extra_len - l.length, l.head.extra || (l.head.extra = new Array(l.head.extra_len)), n.arraySet(l.head.extra, D, $, X, s)), 512 & l.flags && (l.check = i(l.check, D, X, $)), W -= X, $ += X, l.length -= X), l.length)) break t;
1750
+ l.length = 0, l.mode = 7;
1754
1751
  case 7:
1755
- if (2048 & c.flags) {
1752
+ if (2048 & l.flags) {
1756
1753
  if (W === 0) break t;
1757
- for (X = 0; s = D[$ + X++], c.head && s && c.length < 65536 && (c.head.name += String.fromCharCode(s)), s && X < W; ) ;
1758
- if (512 & c.flags && (c.check = i(c.check, D, X, $)), W -= X, $ += X, s) break t;
1759
- } else c.head && (c.head.name = null);
1760
- c.length = 0, c.mode = 8;
1754
+ for (X = 0; s = D[$ + X++], l.head && s && l.length < 65536 && (l.head.name += String.fromCharCode(s)), s && X < W; ) ;
1755
+ if (512 & l.flags && (l.check = i(l.check, D, X, $)), W -= X, $ += X, s) break t;
1756
+ } else l.head && (l.head.name = null);
1757
+ l.length = 0, l.mode = 8;
1761
1758
  case 8:
1762
- if (4096 & c.flags) {
1759
+ if (4096 & l.flags) {
1763
1760
  if (W === 0) break t;
1764
- for (X = 0; s = D[$ + X++], c.head && s && c.length < 65536 && (c.head.comment += String.fromCharCode(s)), s && X < W; ) ;
1765
- if (512 & c.flags && (c.check = i(c.check, D, X, $)), W -= X, $ += X, s) break t;
1766
- } else c.head && (c.head.comment = null);
1767
- c.mode = 9;
1761
+ for (X = 0; s = D[$ + X++], l.head && s && l.length < 65536 && (l.head.comment += String.fromCharCode(s)), s && X < W; ) ;
1762
+ if (512 & l.flags && (l.check = i(l.check, D, X, $)), W -= X, $ += X, s) break t;
1763
+ } else l.head && (l.head.comment = null);
1764
+ l.mode = 9;
1768
1765
  case 9:
1769
- if (512 & c.flags) {
1766
+ if (512 & l.flags) {
1770
1767
  for (; M < 16; ) {
1771
1768
  if (W === 0) break t;
1772
1769
  W--, z += D[$++] << M, M += 8;
1773
1770
  }
1774
- if (z !== (65535 & c.check)) {
1775
- S.msg = "header crc mismatch", c.mode = 30;
1771
+ if (z !== (65535 & l.check)) {
1772
+ w.msg = "header crc mismatch", l.mode = 30;
1776
1773
  break;
1777
1774
  }
1778
1775
  M = z = 0;
1779
1776
  }
1780
- c.head && (c.head.hcrc = c.flags >> 9 & 1, c.head.done = !0), S.adler = c.check = 0, c.mode = 12;
1777
+ l.head && (l.head.hcrc = l.flags >> 9 & 1, l.head.done = !0), w.adler = l.check = 0, l.mode = 12;
1781
1778
  break;
1782
1779
  case 10:
1783
1780
  for (; M < 32; ) {
1784
1781
  if (W === 0) break t;
1785
1782
  W--, z += D[$++] << M, M += 8;
1786
1783
  }
1787
- S.adler = c.check = f(z), M = z = 0, c.mode = 11;
1784
+ w.adler = l.check = f(z), M = z = 0, l.mode = 11;
1788
1785
  case 11:
1789
- if (c.havedict === 0) return S.next_out = rt, S.avail_out = tt, S.next_in = $, S.avail_in = W, c.hold = z, c.bits = M, 2;
1790
- S.adler = c.check = 1, c.mode = 12;
1786
+ if (l.havedict === 0) return w.next_out = rt, w.avail_out = tt, w.next_in = $, w.avail_in = W, l.hold = z, l.bits = M, 2;
1787
+ w.adler = l.check = 1, l.mode = 12;
1791
1788
  case 12:
1792
1789
  if (I === 5 || I === 6) break t;
1793
1790
  case 13:
1794
- if (c.last) {
1795
- z >>>= 7 & M, M -= 7 & M, c.mode = 27;
1791
+ if (l.last) {
1792
+ z >>>= 7 & M, M -= 7 & M, l.mode = 27;
1796
1793
  break;
1797
1794
  }
1798
1795
  for (; M < 3; ) {
1799
1796
  if (W === 0) break t;
1800
1797
  W--, z += D[$++] << M, M += 8;
1801
1798
  }
1802
- switch (c.last = 1 & z, M -= 1, 3 & (z >>>= 1)) {
1799
+ switch (l.last = 1 & z, M -= 1, 3 & (z >>>= 1)) {
1803
1800
  case 0:
1804
- c.mode = 14;
1801
+ l.mode = 14;
1805
1802
  break;
1806
1803
  case 1:
1807
- if (V(c), c.mode = 20, I !== 6) break;
1804
+ if (V(l), l.mode = 20, I !== 6) break;
1808
1805
  z >>>= 2, M -= 2;
1809
1806
  break t;
1810
1807
  case 2:
1811
- c.mode = 17;
1808
+ l.mode = 17;
1812
1809
  break;
1813
1810
  case 3:
1814
- S.msg = "invalid block type", c.mode = 30;
1811
+ w.msg = "invalid block type", l.mode = 30;
1815
1812
  }
1816
1813
  z >>>= 2, M -= 2;
1817
1814
  break;
@@ -1821,62 +1818,62 @@ function Be() {
1821
1818
  W--, z += D[$++] << M, M += 8;
1822
1819
  }
1823
1820
  if ((65535 & z) != (z >>> 16 ^ 65535)) {
1824
- S.msg = "invalid stored block lengths", c.mode = 30;
1821
+ w.msg = "invalid stored block lengths", l.mode = 30;
1825
1822
  break;
1826
1823
  }
1827
- if (c.length = 65535 & z, M = z = 0, c.mode = 15, I === 6) break t;
1824
+ if (l.length = 65535 & z, M = z = 0, l.mode = 15, I === 6) break t;
1828
1825
  case 15:
1829
- c.mode = 16;
1826
+ l.mode = 16;
1830
1827
  case 16:
1831
- if (X = c.length) {
1828
+ if (X = l.length) {
1832
1829
  if (W < X && (X = W), tt < X && (X = tt), X === 0) break t;
1833
- n.arraySet(et, D, $, X, rt), W -= X, $ += X, tt -= X, rt += X, c.length -= X;
1830
+ n.arraySet(et, D, $, X, rt), W -= X, $ += X, tt -= X, rt += X, l.length -= X;
1834
1831
  break;
1835
1832
  }
1836
- c.mode = 12;
1833
+ l.mode = 12;
1837
1834
  break;
1838
1835
  case 17:
1839
1836
  for (; M < 14; ) {
1840
1837
  if (W === 0) break t;
1841
1838
  W--, z += D[$++] << M, M += 8;
1842
1839
  }
1843
- if (c.nlen = 257 + (31 & z), z >>>= 5, M -= 5, c.ndist = 1 + (31 & z), z >>>= 5, M -= 5, c.ncode = 4 + (15 & z), z >>>= 4, M -= 4, 286 < c.nlen || 30 < c.ndist) {
1844
- S.msg = "too many length or distance symbols", c.mode = 30;
1840
+ if (l.nlen = 257 + (31 & z), z >>>= 5, M -= 5, l.ndist = 1 + (31 & z), z >>>= 5, M -= 5, l.ncode = 4 + (15 & z), z >>>= 4, M -= 4, 286 < l.nlen || 30 < l.ndist) {
1841
+ w.msg = "too many length or distance symbols", l.mode = 30;
1845
1842
  break;
1846
1843
  }
1847
- c.have = 0, c.mode = 18;
1844
+ l.have = 0, l.mode = 18;
1848
1845
  case 18:
1849
- for (; c.have < c.ncode; ) {
1846
+ for (; l.have < l.ncode; ) {
1850
1847
  for (; M < 3; ) {
1851
1848
  if (W === 0) break t;
1852
1849
  W--, z += D[$++] << M, M += 8;
1853
1850
  }
1854
- c.lens[j[c.have++]] = 7 & z, z >>>= 3, M -= 3;
1851
+ l.lens[j[l.have++]] = 7 & z, z >>>= 3, M -= 3;
1855
1852
  }
1856
- for (; c.have < 19; ) c.lens[j[c.have++]] = 0;
1857
- if (c.lencode = c.lendyn, c.lenbits = 7, R = { bits: c.lenbits }, O = _(0, c.lens, 0, 19, c.lencode, 0, c.work, R), c.lenbits = R.bits, O) {
1858
- S.msg = "invalid code lengths set", c.mode = 30;
1853
+ for (; l.have < 19; ) l.lens[j[l.have++]] = 0;
1854
+ if (l.lencode = l.lendyn, l.lenbits = 7, R = { bits: l.lenbits }, O = _(0, l.lens, 0, 19, l.lencode, 0, l.work, R), l.lenbits = R.bits, O) {
1855
+ w.msg = "invalid code lengths set", l.mode = 30;
1859
1856
  break;
1860
1857
  }
1861
- c.have = 0, c.mode = 19;
1858
+ l.have = 0, l.mode = 19;
1862
1859
  case 19:
1863
- for (; c.have < c.nlen + c.ndist; ) {
1864
- for (; st = (p = c.lencode[z & (1 << c.lenbits) - 1]) >>> 16 & 255, pt = 65535 & p, !((at = p >>> 24) <= M); ) {
1860
+ for (; l.have < l.nlen + l.ndist; ) {
1861
+ for (; st = (p = l.lencode[z & (1 << l.lenbits) - 1]) >>> 16 & 255, pt = 65535 & p, !((at = p >>> 24) <= M); ) {
1865
1862
  if (W === 0) break t;
1866
1863
  W--, z += D[$++] << M, M += 8;
1867
1864
  }
1868
- if (pt < 16) z >>>= at, M -= at, c.lens[c.have++] = pt;
1865
+ if (pt < 16) z >>>= at, M -= at, l.lens[l.have++] = pt;
1869
1866
  else {
1870
1867
  if (pt === 16) {
1871
1868
  for (g = at + 2; M < g; ) {
1872
1869
  if (W === 0) break t;
1873
1870
  W--, z += D[$++] << M, M += 8;
1874
1871
  }
1875
- if (z >>>= at, M -= at, c.have === 0) {
1876
- S.msg = "invalid bit length repeat", c.mode = 30;
1872
+ if (z >>>= at, M -= at, l.have === 0) {
1873
+ w.msg = "invalid bit length repeat", l.mode = 30;
1877
1874
  break;
1878
1875
  }
1879
- s = c.lens[c.have - 1], X = 3 + (3 & z), z >>>= 2, M -= 2;
1876
+ s = l.lens[l.have - 1], X = 3 + (3 & z), z >>>= 2, M -= 2;
1880
1877
  } else if (pt === 17) {
1881
1878
  for (g = at + 3; M < g; ) {
1882
1879
  if (W === 0) break t;
@@ -1890,139 +1887,139 @@ function Be() {
1890
1887
  }
1891
1888
  M -= at, s = 0, X = 11 + (127 & (z >>>= at)), z >>>= 7, M -= 7;
1892
1889
  }
1893
- if (c.have + X > c.nlen + c.ndist) {
1894
- S.msg = "invalid bit length repeat", c.mode = 30;
1890
+ if (l.have + X > l.nlen + l.ndist) {
1891
+ w.msg = "invalid bit length repeat", l.mode = 30;
1895
1892
  break;
1896
1893
  }
1897
- for (; X--; ) c.lens[c.have++] = s;
1894
+ for (; X--; ) l.lens[l.have++] = s;
1898
1895
  }
1899
1896
  }
1900
- if (c.mode === 30) break;
1901
- if (c.lens[256] === 0) {
1902
- S.msg = "invalid code -- missing end-of-block", c.mode = 30;
1897
+ if (l.mode === 30) break;
1898
+ if (l.lens[256] === 0) {
1899
+ w.msg = "invalid code -- missing end-of-block", l.mode = 30;
1903
1900
  break;
1904
1901
  }
1905
- if (c.lenbits = 9, R = { bits: c.lenbits }, O = _(w, c.lens, 0, c.nlen, c.lencode, 0, c.work, R), c.lenbits = R.bits, O) {
1906
- S.msg = "invalid literal/lengths set", c.mode = 30;
1902
+ if (l.lenbits = 9, R = { bits: l.lenbits }, O = _(S, l.lens, 0, l.nlen, l.lencode, 0, l.work, R), l.lenbits = R.bits, O) {
1903
+ w.msg = "invalid literal/lengths set", l.mode = 30;
1907
1904
  break;
1908
1905
  }
1909
- if (c.distbits = 6, c.distcode = c.distdyn, R = { bits: c.distbits }, O = _(b, c.lens, c.nlen, c.ndist, c.distcode, 0, c.work, R), c.distbits = R.bits, O) {
1910
- S.msg = "invalid distances set", c.mode = 30;
1906
+ if (l.distbits = 6, l.distcode = l.distdyn, R = { bits: l.distbits }, O = _(v, l.lens, l.nlen, l.ndist, l.distcode, 0, l.work, R), l.distbits = R.bits, O) {
1907
+ w.msg = "invalid distances set", l.mode = 30;
1911
1908
  break;
1912
1909
  }
1913
- if (c.mode = 20, I === 6) break t;
1910
+ if (l.mode = 20, I === 6) break t;
1914
1911
  case 20:
1915
- c.mode = 21;
1912
+ l.mode = 21;
1916
1913
  case 21:
1917
1914
  if (6 <= W && 258 <= tt) {
1918
- S.next_out = rt, S.avail_out = tt, S.next_in = $, S.avail_in = W, c.hold = z, c.bits = M, h(S, K), rt = S.next_out, et = S.output, tt = S.avail_out, $ = S.next_in, D = S.input, W = S.avail_in, z = c.hold, M = c.bits, c.mode === 12 && (c.back = -1);
1915
+ w.next_out = rt, w.avail_out = tt, w.next_in = $, w.avail_in = W, l.hold = z, l.bits = M, h(w, K), rt = w.next_out, et = w.output, tt = w.avail_out, $ = w.next_in, D = w.input, W = w.avail_in, z = l.hold, M = l.bits, l.mode === 12 && (l.back = -1);
1919
1916
  break;
1920
1917
  }
1921
- for (c.back = 0; st = (p = c.lencode[z & (1 << c.lenbits) - 1]) >>> 16 & 255, pt = 65535 & p, !((at = p >>> 24) <= M); ) {
1918
+ for (l.back = 0; st = (p = l.lencode[z & (1 << l.lenbits) - 1]) >>> 16 & 255, pt = 65535 & p, !((at = p >>> 24) <= M); ) {
1922
1919
  if (W === 0) break t;
1923
1920
  W--, z += D[$++] << M, M += 8;
1924
1921
  }
1925
1922
  if (st && (240 & st) == 0) {
1926
- for (ht = at, kt = st, vt = pt; st = (p = c.lencode[vt + ((z & (1 << ht + kt) - 1) >> ht)]) >>> 16 & 255, pt = 65535 & p, !(ht + (at = p >>> 24) <= M); ) {
1923
+ for (ht = at, kt = st, vt = pt; st = (p = l.lencode[vt + ((z & (1 << ht + kt) - 1) >> ht)]) >>> 16 & 255, pt = 65535 & p, !(ht + (at = p >>> 24) <= M); ) {
1927
1924
  if (W === 0) break t;
1928
1925
  W--, z += D[$++] << M, M += 8;
1929
1926
  }
1930
- z >>>= ht, M -= ht, c.back += ht;
1927
+ z >>>= ht, M -= ht, l.back += ht;
1931
1928
  }
1932
- if (z >>>= at, M -= at, c.back += at, c.length = pt, st === 0) {
1933
- c.mode = 26;
1929
+ if (z >>>= at, M -= at, l.back += at, l.length = pt, st === 0) {
1930
+ l.mode = 26;
1934
1931
  break;
1935
1932
  }
1936
1933
  if (32 & st) {
1937
- c.back = -1, c.mode = 12;
1934
+ l.back = -1, l.mode = 12;
1938
1935
  break;
1939
1936
  }
1940
1937
  if (64 & st) {
1941
- S.msg = "invalid literal/length code", c.mode = 30;
1938
+ w.msg = "invalid literal/length code", l.mode = 30;
1942
1939
  break;
1943
1940
  }
1944
- c.extra = 15 & st, c.mode = 22;
1941
+ l.extra = 15 & st, l.mode = 22;
1945
1942
  case 22:
1946
- if (c.extra) {
1947
- for (g = c.extra; M < g; ) {
1943
+ if (l.extra) {
1944
+ for (g = l.extra; M < g; ) {
1948
1945
  if (W === 0) break t;
1949
1946
  W--, z += D[$++] << M, M += 8;
1950
1947
  }
1951
- c.length += z & (1 << c.extra) - 1, z >>>= c.extra, M -= c.extra, c.back += c.extra;
1948
+ l.length += z & (1 << l.extra) - 1, z >>>= l.extra, M -= l.extra, l.back += l.extra;
1952
1949
  }
1953
- c.was = c.length, c.mode = 23;
1950
+ l.was = l.length, l.mode = 23;
1954
1951
  case 23:
1955
- for (; st = (p = c.distcode[z & (1 << c.distbits) - 1]) >>> 16 & 255, pt = 65535 & p, !((at = p >>> 24) <= M); ) {
1952
+ for (; st = (p = l.distcode[z & (1 << l.distbits) - 1]) >>> 16 & 255, pt = 65535 & p, !((at = p >>> 24) <= M); ) {
1956
1953
  if (W === 0) break t;
1957
1954
  W--, z += D[$++] << M, M += 8;
1958
1955
  }
1959
1956
  if ((240 & st) == 0) {
1960
- for (ht = at, kt = st, vt = pt; st = (p = c.distcode[vt + ((z & (1 << ht + kt) - 1) >> ht)]) >>> 16 & 255, pt = 65535 & p, !(ht + (at = p >>> 24) <= M); ) {
1957
+ for (ht = at, kt = st, vt = pt; st = (p = l.distcode[vt + ((z & (1 << ht + kt) - 1) >> ht)]) >>> 16 & 255, pt = 65535 & p, !(ht + (at = p >>> 24) <= M); ) {
1961
1958
  if (W === 0) break t;
1962
1959
  W--, z += D[$++] << M, M += 8;
1963
1960
  }
1964
- z >>>= ht, M -= ht, c.back += ht;
1961
+ z >>>= ht, M -= ht, l.back += ht;
1965
1962
  }
1966
- if (z >>>= at, M -= at, c.back += at, 64 & st) {
1967
- S.msg = "invalid distance code", c.mode = 30;
1963
+ if (z >>>= at, M -= at, l.back += at, 64 & st) {
1964
+ w.msg = "invalid distance code", l.mode = 30;
1968
1965
  break;
1969
1966
  }
1970
- c.offset = pt, c.extra = 15 & st, c.mode = 24;
1967
+ l.offset = pt, l.extra = 15 & st, l.mode = 24;
1971
1968
  case 24:
1972
- if (c.extra) {
1973
- for (g = c.extra; M < g; ) {
1969
+ if (l.extra) {
1970
+ for (g = l.extra; M < g; ) {
1974
1971
  if (W === 0) break t;
1975
1972
  W--, z += D[$++] << M, M += 8;
1976
1973
  }
1977
- c.offset += z & (1 << c.extra) - 1, z >>>= c.extra, M -= c.extra, c.back += c.extra;
1974
+ l.offset += z & (1 << l.extra) - 1, z >>>= l.extra, M -= l.extra, l.back += l.extra;
1978
1975
  }
1979
- if (c.offset > c.dmax) {
1980
- S.msg = "invalid distance too far back", c.mode = 30;
1976
+ if (l.offset > l.dmax) {
1977
+ w.msg = "invalid distance too far back", l.mode = 30;
1981
1978
  break;
1982
1979
  }
1983
- c.mode = 25;
1980
+ l.mode = 25;
1984
1981
  case 25:
1985
1982
  if (tt === 0) break t;
1986
- if (X = K - tt, c.offset > X) {
1987
- if ((X = c.offset - X) > c.whave && c.sane) {
1988
- S.msg = "invalid distance too far back", c.mode = 30;
1983
+ if (X = K - tt, l.offset > X) {
1984
+ if ((X = l.offset - X) > l.whave && l.sane) {
1985
+ w.msg = "invalid distance too far back", l.mode = 30;
1989
1986
  break;
1990
1987
  }
1991
- ct = X > c.wnext ? (X -= c.wnext, c.wsize - X) : c.wnext - X, X > c.length && (X = c.length), mt = c.window;
1992
- } else mt = et, ct = rt - c.offset, X = c.length;
1993
- for (tt < X && (X = tt), tt -= X, c.length -= X; et[rt++] = mt[ct++], --X; ) ;
1994
- c.length === 0 && (c.mode = 21);
1988
+ ct = X > l.wnext ? (X -= l.wnext, l.wsize - X) : l.wnext - X, X > l.length && (X = l.length), mt = l.window;
1989
+ } else mt = et, ct = rt - l.offset, X = l.length;
1990
+ for (tt < X && (X = tt), tt -= X, l.length -= X; et[rt++] = mt[ct++], --X; ) ;
1991
+ l.length === 0 && (l.mode = 21);
1995
1992
  break;
1996
1993
  case 26:
1997
1994
  if (tt === 0) break t;
1998
- et[rt++] = c.length, tt--, c.mode = 21;
1995
+ et[rt++] = l.length, tt--, l.mode = 21;
1999
1996
  break;
2000
1997
  case 27:
2001
- if (c.wrap) {
1998
+ if (l.wrap) {
2002
1999
  for (; M < 32; ) {
2003
2000
  if (W === 0) break t;
2004
2001
  W--, z |= D[$++] << M, M += 8;
2005
2002
  }
2006
- if (K -= tt, S.total_out += K, c.total += K, K && (S.adler = c.check = c.flags ? i(c.check, et, K, rt - K) : o(c.check, et, K, rt - K)), K = tt, (c.flags ? z : f(z)) !== c.check) {
2007
- S.msg = "incorrect data check", c.mode = 30;
2003
+ if (K -= tt, w.total_out += K, l.total += K, K && (w.adler = l.check = l.flags ? i(l.check, et, K, rt - K) : o(l.check, et, K, rt - K)), K = tt, (l.flags ? z : f(z)) !== l.check) {
2004
+ w.msg = "incorrect data check", l.mode = 30;
2008
2005
  break;
2009
2006
  }
2010
2007
  M = z = 0;
2011
2008
  }
2012
- c.mode = 28;
2009
+ l.mode = 28;
2013
2010
  case 28:
2014
- if (c.wrap && c.flags) {
2011
+ if (l.wrap && l.flags) {
2015
2012
  for (; M < 32; ) {
2016
2013
  if (W === 0) break t;
2017
2014
  W--, z += D[$++] << M, M += 8;
2018
2015
  }
2019
- if (z !== (4294967295 & c.total)) {
2020
- S.msg = "incorrect length check", c.mode = 30;
2016
+ if (z !== (4294967295 & l.total)) {
2017
+ w.msg = "incorrect length check", l.mode = 30;
2021
2018
  break;
2022
2019
  }
2023
2020
  M = z = 0;
2024
2021
  }
2025
- c.mode = 29;
2022
+ l.mode = 29;
2026
2023
  case 29:
2027
2024
  O = 1;
2028
2025
  break t;
@@ -2034,46 +2031,46 @@ function Be() {
2034
2031
  default:
2035
2032
  return d;
2036
2033
  }
2037
- return S.next_out = rt, S.avail_out = tt, S.next_in = $, S.avail_in = W, c.hold = z, c.bits = M, (c.wsize || K !== S.avail_out && c.mode < 30 && (c.mode < 27 || I !== 4)) && Q(S, S.output, S.next_out, K - S.avail_out) ? (c.mode = 31, -4) : (J -= S.avail_in, K -= S.avail_out, S.total_in += J, S.total_out += K, c.total += K, c.wrap && K && (S.adler = c.check = c.flags ? i(c.check, et, K, S.next_out - K) : o(c.check, et, K, S.next_out - K)), S.data_type = c.bits + (c.last ? 64 : 0) + (c.mode === 12 ? 128 : 0) + (c.mode === 20 || c.mode === 15 ? 256 : 0), (J == 0 && K === 0 || I === 4) && O === y && (O = -5), O);
2038
- }, a.inflateEnd = function(S) {
2039
- if (!S || !S.state) return d;
2040
- var I = S.state;
2041
- return I.window && (I.window = null), S.state = null, y;
2042
- }, a.inflateGetHeader = function(S, I) {
2043
- var c;
2044
- return S && S.state ? (2 & (c = S.state).wrap) == 0 ? d : ((c.head = I).done = !1, y) : d;
2045
- }, a.inflateSetDictionary = function(S, I) {
2046
- var c, D = I.length;
2047
- return S && S.state ? (c = S.state).wrap !== 0 && c.mode !== 11 ? d : c.mode === 11 && o(1, I, D, 0) !== c.check ? -3 : Q(S, I, D, D) ? (c.mode = 31, -4) : (c.havedict = 1, y) : d;
2034
+ return w.next_out = rt, w.avail_out = tt, w.next_in = $, w.avail_in = W, l.hold = z, l.bits = M, (l.wsize || K !== w.avail_out && l.mode < 30 && (l.mode < 27 || I !== 4)) && Q(w, w.output, w.next_out, K - w.avail_out) ? (l.mode = 31, -4) : (J -= w.avail_in, K -= w.avail_out, w.total_in += J, w.total_out += K, l.total += K, l.wrap && K && (w.adler = l.check = l.flags ? i(l.check, et, K, w.next_out - K) : o(l.check, et, K, w.next_out - K)), w.data_type = l.bits + (l.last ? 64 : 0) + (l.mode === 12 ? 128 : 0) + (l.mode === 20 || l.mode === 15 ? 256 : 0), (J == 0 && K === 0 || I === 4) && O === y && (O = -5), O);
2035
+ }, a.inflateEnd = function(w) {
2036
+ if (!w || !w.state) return d;
2037
+ var I = w.state;
2038
+ return I.window && (I.window = null), w.state = null, y;
2039
+ }, a.inflateGetHeader = function(w, I) {
2040
+ var l;
2041
+ return w && w.state ? (2 & (l = w.state).wrap) == 0 ? d : ((l.head = I).done = !1, y) : d;
2042
+ }, a.inflateSetDictionary = function(w, I) {
2043
+ var l, D = I.length;
2044
+ return w && w.state ? (l = w.state).wrap !== 0 && l.mode !== 11 ? d : l.mode === 11 && o(1, I, D, 0) !== l.check ? -3 : Q(w, I, D, D) ? (l.mode = 31, -4) : (l.havedict = 1, y) : d;
2048
2045
  }, a.inflateInfo = "pako inflate (from Nodeca project)";
2049
2046
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, r, a) {
2050
2047
  var n = 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], i = [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], _ = [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];
2051
- r.exports = function(w, b, y, d, k, u, m, f) {
2052
- var v, x, E, A, L, F, H, T, V, Q = f.bits, S = 0, I = 0, c = 0, D = 0, et = 0, $ = 0, rt = 0, W = 0, tt = 0, z = 0, M = null, J = 0, K = new n.Buf16(16), X = new n.Buf16(16), ct = null, mt = 0;
2053
- for (S = 0; S <= 15; S++) K[S] = 0;
2054
- for (I = 0; I < d; I++) K[b[y + I]]++;
2048
+ r.exports = function(S, v, y, d, k, u, m, f) {
2049
+ var b, x, E, A, L, F, H, T, V, Q = f.bits, w = 0, I = 0, l = 0, D = 0, et = 0, $ = 0, rt = 0, W = 0, tt = 0, z = 0, M = null, J = 0, K = new n.Buf16(16), X = new n.Buf16(16), ct = null, mt = 0;
2050
+ for (w = 0; w <= 15; w++) K[w] = 0;
2051
+ for (I = 0; I < d; I++) K[v[y + I]]++;
2055
2052
  for (et = Q, D = 15; 1 <= D && K[D] === 0; D--) ;
2056
2053
  if (D < et && (et = D), D === 0) return k[u++] = 20971520, k[u++] = 20971520, f.bits = 1, 0;
2057
- for (c = 1; c < D && K[c] === 0; c++) ;
2058
- for (et < c && (et = c), S = W = 1; S <= 15; S++) if (W <<= 1, (W -= K[S]) < 0) return -1;
2059
- if (0 < W && (w === 0 || D !== 1)) return -1;
2060
- for (X[1] = 0, S = 1; S < 15; S++) X[S + 1] = X[S] + K[S];
2061
- for (I = 0; I < d; I++) b[y + I] !== 0 && (m[X[b[y + I]]++] = I);
2062
- if (F = w === 0 ? (M = ct = m, 19) : w === 1 ? (M = o, J -= 257, ct = i, mt -= 257, 256) : (M = h, ct = _, -1), S = c, L = u, rt = I = z = 0, E = -1, A = (tt = 1 << ($ = et)) - 1, w === 1 && 852 < tt || w === 2 && 592 < tt) return 1;
2054
+ for (l = 1; l < D && K[l] === 0; l++) ;
2055
+ for (et < l && (et = l), w = W = 1; w <= 15; w++) if (W <<= 1, (W -= K[w]) < 0) return -1;
2056
+ if (0 < W && (S === 0 || D !== 1)) return -1;
2057
+ for (X[1] = 0, w = 1; w < 15; w++) X[w + 1] = X[w] + K[w];
2058
+ for (I = 0; I < d; I++) v[y + I] !== 0 && (m[X[v[y + I]]++] = I);
2059
+ if (F = S === 0 ? (M = ct = m, 19) : S === 1 ? (M = o, J -= 257, ct = i, mt -= 257, 256) : (M = h, ct = _, -1), w = l, L = u, rt = I = z = 0, E = -1, A = (tt = 1 << ($ = et)) - 1, S === 1 && 852 < tt || S === 2 && 592 < tt) return 1;
2063
2060
  for (; ; ) {
2064
- for (H = S - rt, V = m[I] < F ? (T = 0, m[I]) : m[I] > F ? (T = ct[mt + m[I]], M[J + m[I]]) : (T = 96, 0), v = 1 << S - rt, c = x = 1 << $; k[L + (z >> rt) + (x -= v)] = H << 24 | T << 16 | V | 0, x !== 0; ) ;
2065
- for (v = 1 << S - 1; z & v; ) v >>= 1;
2066
- if (v !== 0 ? (z &= v - 1, z += v) : z = 0, I++, --K[S] == 0) {
2067
- if (S === D) break;
2068
- S = b[y + m[I]];
2061
+ for (H = w - rt, V = m[I] < F ? (T = 0, m[I]) : m[I] > F ? (T = ct[mt + m[I]], M[J + m[I]]) : (T = 96, 0), b = 1 << w - rt, l = x = 1 << $; k[L + (z >> rt) + (x -= b)] = H << 24 | T << 16 | V | 0, x !== 0; ) ;
2062
+ for (b = 1 << w - 1; z & b; ) b >>= 1;
2063
+ if (b !== 0 ? (z &= b - 1, z += b) : z = 0, I++, --K[w] == 0) {
2064
+ if (w === D) break;
2065
+ w = v[y + m[I]];
2069
2066
  }
2070
- if (et < S && (z & A) !== E) {
2071
- for (rt === 0 && (rt = et), L += c, W = 1 << ($ = S - rt); $ + rt < D && !((W -= K[$ + rt]) <= 0); ) $++, W <<= 1;
2072
- if (tt += 1 << $, w === 1 && 852 < tt || w === 2 && 592 < tt) return 1;
2067
+ if (et < w && (z & A) !== E) {
2068
+ for (rt === 0 && (rt = et), L += l, W = 1 << ($ = w - rt); $ + rt < D && !((W -= K[$ + rt]) <= 0); ) $++, W <<= 1;
2069
+ if (tt += 1 << $, S === 1 && 852 < tt || S === 2 && 592 < tt) return 1;
2073
2070
  k[E = z & A] = et << 24 | $ << 16 | L - u | 0;
2074
2071
  }
2075
2072
  }
2076
- return z !== 0 && (k[L + z] = S - rt << 24 | 64 << 16 | 0), f.bits = et, 0;
2073
+ return z !== 0 && (k[L + z] = w - rt << 24 | 64 << 16 | 0), f.bits = et, 0;
2077
2074
  };
2078
2075
  }, { "../utils/common": 41 }], 51: [function(t, r, a) {
2079
2076
  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" };
@@ -2082,15 +2079,15 @@ function Be() {
2082
2079
  function h(p) {
2083
2080
  for (var P = p.length; 0 <= --P; ) p[P] = 0;
2084
2081
  }
2085
- var _ = 0, w = 29, b = 256, y = b + 1 + w, d = 30, k = 19, u = 2 * y + 1, m = 15, f = 16, v = 7, x = 256, E = 16, A = 17, L = 18, F = [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], H = [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], T = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], V = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Q = new Array(2 * (y + 2));
2082
+ var _ = 0, S = 29, v = 256, y = v + 1 + S, d = 30, k = 19, u = 2 * y + 1, m = 15, f = 16, b = 7, x = 256, E = 16, A = 17, L = 18, F = [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], H = [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], T = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], V = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Q = new Array(2 * (y + 2));
2086
2083
  h(Q);
2087
- var S = new Array(2 * d);
2088
- h(S);
2084
+ var w = new Array(2 * d);
2085
+ h(w);
2089
2086
  var I = new Array(512);
2090
2087
  h(I);
2091
- var c = new Array(256);
2092
- h(c);
2093
- var D = new Array(w);
2088
+ var l = new Array(256);
2089
+ h(l);
2090
+ var D = new Array(S);
2094
2091
  h(D);
2095
2092
  var et, $, rt, W = new Array(d);
2096
2093
  function tt(p, P, j, U, N) {
@@ -2143,7 +2140,7 @@ function Be() {
2143
2140
  }
2144
2141
  function kt(p, P, j) {
2145
2142
  var U, N, Z, Y, G = 0;
2146
- if (p.last_lit !== 0) for (; U = p.pending_buf[p.d_buf + 2 * G] << 8 | p.pending_buf[p.d_buf + 2 * G + 1], N = p.pending_buf[p.l_buf + G], G++, U === 0 ? X(p, N, P) : (X(p, (Z = c[N]) + b + 1, P), (Y = F[Z]) !== 0 && K(p, N -= D[Z], Y), X(p, Z = M(--U), j), (Y = H[Z]) !== 0 && K(p, U -= W[Z], Y)), G < p.last_lit; ) ;
2143
+ if (p.last_lit !== 0) for (; U = p.pending_buf[p.d_buf + 2 * G] << 8 | p.pending_buf[p.d_buf + 2 * G + 1], N = p.pending_buf[p.l_buf + G], G++, U === 0 ? X(p, N, P) : (X(p, (Z = l[N]) + v + 1, P), (Y = F[Z]) !== 0 && K(p, N -= D[Z], Y), X(p, Z = M(--U), j), (Y = H[Z]) !== 0 && K(p, U -= W[Z], Y)), G < p.last_lit; ) ;
2147
2144
  X(p, x, P);
2148
2145
  }
2149
2146
  function vt(p, P) {
@@ -2153,15 +2150,15 @@ function Be() {
2153
2150
  for (P.max_code = lt, j = p.heap_len >> 1; 1 <= j; j--) ht(p, Z, j);
2154
2151
  for (N = q; j = p.heap[1], p.heap[1] = p.heap[p.heap_len--], ht(p, Z, 1), U = p.heap[1], p.heap[--p.heap_max] = j, p.heap[--p.heap_max] = U, Z[2 * N] = Z[2 * j] + Z[2 * U], p.depth[N] = (p.depth[j] >= p.depth[U] ? p.depth[j] : p.depth[U]) + 1, Z[2 * j + 1] = Z[2 * U + 1] = N, p.heap[1] = N++, ht(p, Z, 1), 2 <= p.heap_len; ) ;
2155
2152
  p.heap[--p.heap_max] = p.heap[1], (function(nt, bt) {
2156
- var xt, yt, Pt, ut, Mt, jt, _t = bt.dyn_tree, Kt = bt.max_code, ye = bt.stat_desc.static_tree, _e = bt.stat_desc.has_stree, we = bt.stat_desc.extra_bits, Yt = bt.stat_desc.extra_base, At = bt.stat_desc.max_length, Bt = 0;
2153
+ var xt, yt, Pt, ut, Mt, Dt, _t = bt.dyn_tree, Xt = bt.max_code, ve = bt.stat_desc.static_tree, ke = bt.stat_desc.has_stree, ye = bt.stat_desc.extra_bits, Kt = bt.stat_desc.extra_base, At = bt.stat_desc.max_length, Bt = 0;
2157
2154
  for (ut = 0; ut <= m; ut++) nt.bl_count[ut] = 0;
2158
- for (_t[2 * nt.heap[nt.heap_max] + 1] = 0, xt = nt.heap_max + 1; xt < u; xt++) At < (ut = _t[2 * _t[2 * (yt = nt.heap[xt]) + 1] + 1] + 1) && (ut = At, Bt++), _t[2 * yt + 1] = ut, Kt < yt || (nt.bl_count[ut]++, Mt = 0, Yt <= yt && (Mt = we[yt - Yt]), jt = _t[2 * yt], nt.opt_len += jt * (ut + Mt), _e && (nt.static_len += jt * (ye[2 * yt + 1] + Mt)));
2155
+ for (_t[2 * nt.heap[nt.heap_max] + 1] = 0, xt = nt.heap_max + 1; xt < u; xt++) At < (ut = _t[2 * _t[2 * (yt = nt.heap[xt]) + 1] + 1] + 1) && (ut = At, Bt++), _t[2 * yt + 1] = ut, Xt < yt || (nt.bl_count[ut]++, Mt = 0, Kt <= yt && (Mt = ye[yt - Kt]), Dt = _t[2 * yt], nt.opt_len += Dt * (ut + Mt), ke && (nt.static_len += Dt * (ve[2 * yt + 1] + Mt)));
2159
2156
  if (Bt !== 0) {
2160
2157
  do {
2161
2158
  for (ut = At - 1; nt.bl_count[ut] === 0; ) ut--;
2162
2159
  nt.bl_count[ut]--, nt.bl_count[ut + 1] += 2, nt.bl_count[At]--, Bt -= 2;
2163
2160
  } while (0 < Bt);
2164
- for (ut = At; ut !== 0; ut--) for (yt = nt.bl_count[ut]; yt !== 0; ) Kt < (Pt = nt.heap[--xt]) || (_t[2 * Pt + 1] !== ut && (nt.opt_len += (ut - _t[2 * Pt + 1]) * _t[2 * Pt], _t[2 * Pt + 1] = ut), yt--);
2161
+ for (ut = At; ut !== 0; ut--) for (yt = nt.bl_count[ut]; yt !== 0; ) Xt < (Pt = nt.heap[--xt]) || (_t[2 * Pt + 1] !== ut && (nt.opt_len += (ut - _t[2 * Pt + 1]) * _t[2 * Pt], _t[2 * Pt + 1] = ut), yt--);
2165
2162
  }
2166
2163
  })(p, P), mt(Z, lt, p.bl_count);
2167
2164
  }
@@ -2187,16 +2184,16 @@ function Be() {
2187
2184
  a._tr_init = function(p) {
2188
2185
  R || ((function() {
2189
2186
  var P, j, U, N, Z, Y = new Array(m + 1);
2190
- for (N = U = 0; N < w - 1; N++) for (D[N] = U, P = 0; P < 1 << F[N]; P++) c[U++] = N;
2191
- for (c[U - 1] = N, N = Z = 0; N < 16; N++) for (W[N] = Z, P = 0; P < 1 << H[N]; P++) I[Z++] = N;
2187
+ for (N = U = 0; N < S - 1; N++) for (D[N] = U, P = 0; P < 1 << F[N]; P++) l[U++] = N;
2188
+ for (l[U - 1] = N, N = Z = 0; N < 16; N++) for (W[N] = Z, P = 0; P < 1 << H[N]; P++) I[Z++] = N;
2192
2189
  for (Z >>= 7; N < d; N++) for (W[N] = Z << 7, P = 0; P < 1 << H[N] - 7; P++) I[256 + Z++] = N;
2193
2190
  for (j = 0; j <= m; j++) Y[j] = 0;
2194
2191
  for (P = 0; P <= 143; ) Q[2 * P + 1] = 8, P++, Y[8]++;
2195
2192
  for (; P <= 255; ) Q[2 * P + 1] = 9, P++, Y[9]++;
2196
2193
  for (; P <= 279; ) Q[2 * P + 1] = 7, P++, Y[7]++;
2197
2194
  for (; P <= 287; ) Q[2 * P + 1] = 8, P++, Y[8]++;
2198
- for (mt(Q, y + 1, Y), P = 0; P < d; P++) S[2 * P + 1] = 5, S[2 * P] = ct(P, 5);
2199
- et = new tt(Q, F, b + 1, y, m), $ = new tt(S, H, 0, d, m), rt = new tt(new Array(0), T, 0, k, v);
2195
+ for (mt(Q, y + 1, Y), P = 0; P < d; P++) w[2 * P + 1] = 5, w[2 * P] = ct(P, 5);
2196
+ et = new tt(Q, F, v + 1, y, m), $ = new tt(w, H, 0, d, m), rt = new tt(new Array(0), T, 0, k, b);
2200
2197
  })(), R = !0), p.l_desc = new z(p.dyn_ltree, et), p.d_desc = new z(p.dyn_dtree, $), p.bl_desc = new z(p.bl_tree, rt), p.bi_buf = 0, p.bi_valid = 0, at(p);
2201
2198
  }, a._tr_stored_block = g, a._tr_flush_block = function(p, P, j, U) {
2202
2199
  var N, Z, Y = 0;
@@ -2204,19 +2201,19 @@ function Be() {
2204
2201
  var q, lt = 4093624447;
2205
2202
  for (q = 0; q <= 31; q++, lt >>>= 1) if (1 & lt && G.dyn_ltree[2 * q] !== 0) return o;
2206
2203
  if (G.dyn_ltree[18] !== 0 || G.dyn_ltree[20] !== 0 || G.dyn_ltree[26] !== 0) return i;
2207
- for (q = 32; q < b; q++) if (G.dyn_ltree[2 * q] !== 0) return i;
2204
+ for (q = 32; q < v; q++) if (G.dyn_ltree[2 * q] !== 0) return i;
2208
2205
  return o;
2209
2206
  })(p)), vt(p, p.l_desc), vt(p, p.d_desc), Y = (function(G) {
2210
2207
  var q;
2211
2208
  for (s(G, G.dyn_ltree, G.l_desc.max_code), s(G, G.dyn_dtree, G.d_desc.max_code), vt(G, G.bl_desc), q = k - 1; 3 <= q && G.bl_tree[2 * V[q] + 1] === 0; q--) ;
2212
2209
  return G.opt_len += 3 * (q + 1) + 5 + 5 + 4, q;
2213
- })(p), N = p.opt_len + 3 + 7 >>> 3, (Z = p.static_len + 3 + 7 >>> 3) <= N && (N = Z)) : N = Z = j + 5, j + 4 <= N && P !== -1 ? g(p, P, j, U) : p.strategy === 4 || Z === N ? (K(p, 2 + (U ? 1 : 0), 3), kt(p, Q, S)) : (K(p, 4 + (U ? 1 : 0), 3), (function(G, q, lt, nt) {
2210
+ })(p), N = p.opt_len + 3 + 7 >>> 3, (Z = p.static_len + 3 + 7 >>> 3) <= N && (N = Z)) : N = Z = j + 5, j + 4 <= N && P !== -1 ? g(p, P, j, U) : p.strategy === 4 || Z === N ? (K(p, 2 + (U ? 1 : 0), 3), kt(p, Q, w)) : (K(p, 4 + (U ? 1 : 0), 3), (function(G, q, lt, nt) {
2214
2211
  var bt;
2215
2212
  for (K(G, q - 257, 5), K(G, lt - 1, 5), K(G, nt - 4, 4), bt = 0; bt < nt; bt++) K(G, G.bl_tree[2 * V[bt] + 1], 3);
2216
2213
  O(G, G.dyn_ltree, q - 1), O(G, G.dyn_dtree, lt - 1);
2217
2214
  })(p, p.l_desc.max_code + 1, p.d_desc.max_code + 1, Y + 1), kt(p, p.dyn_ltree, p.dyn_dtree)), at(p), U && st(p);
2218
2215
  }, a._tr_tally = function(p, P, j) {
2219
- return p.pending_buf[p.d_buf + 2 * p.last_lit] = P >>> 8 & 255, p.pending_buf[p.d_buf + 2 * p.last_lit + 1] = 255 & P, p.pending_buf[p.l_buf + p.last_lit] = 255 & j, p.last_lit++, P === 0 ? p.dyn_ltree[2 * j]++ : (p.matches++, P--, p.dyn_ltree[2 * (c[j] + b + 1)]++, p.dyn_dtree[2 * M(P)]++), p.last_lit === p.lit_bufsize - 1;
2216
+ return p.pending_buf[p.d_buf + 2 * p.last_lit] = P >>> 8 & 255, p.pending_buf[p.d_buf + 2 * p.last_lit + 1] = 255 & P, p.pending_buf[p.l_buf + p.last_lit] = 255 & j, p.last_lit++, P === 0 ? p.dyn_ltree[2 * j]++ : (p.matches++, P--, p.dyn_ltree[2 * (l[j] + v + 1)]++, p.dyn_dtree[2 * M(P)]++), p.last_lit === p.lit_bufsize - 1;
2220
2217
  }, a._tr_align = function(p) {
2221
2218
  K(p, 2, 3), X(p, x, Q), (function(P) {
2222
2219
  P.bi_valid === 16 ? (J(P, P.bi_buf), P.bi_buf = 0, P.bi_valid = 0) : 8 <= P.bi_valid && (P.pending_buf[P.pending++] = 255 & P.bi_buf, P.bi_buf >>= 8, P.bi_valid -= 8);
@@ -2230,10 +2227,10 @@ function Be() {
2230
2227
  (function(n) {
2231
2228
  (function(o, i) {
2232
2229
  if (!o.setImmediate) {
2233
- var h, _, w, b, y = 1, d = {}, k = !1, u = o.document, m = Object.getPrototypeOf && Object.getPrototypeOf(o);
2230
+ var h, _, S, v, y = 1, d = {}, k = !1, u = o.document, m = Object.getPrototypeOf && Object.getPrototypeOf(o);
2234
2231
  m = m && m.setTimeout ? m : o, h = {}.toString.call(o.process) === "[object process]" ? function(E) {
2235
2232
  process.nextTick(function() {
2236
- v(E);
2233
+ b(E);
2237
2234
  });
2238
2235
  } : (function() {
2239
2236
  if (o.postMessage && !o.importScripts) {
@@ -2242,19 +2239,19 @@ function Be() {
2242
2239
  E = !1;
2243
2240
  }, o.postMessage("", "*"), o.onmessage = A, E;
2244
2241
  }
2245
- })() ? (b = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", x, !1) : o.attachEvent("onmessage", x), function(E) {
2246
- o.postMessage(b + E, "*");
2247
- }) : o.MessageChannel ? ((w = new MessageChannel()).port1.onmessage = function(E) {
2248
- v(E.data);
2242
+ })() ? (v = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", x, !1) : o.attachEvent("onmessage", x), function(E) {
2243
+ o.postMessage(v + E, "*");
2244
+ }) : o.MessageChannel ? ((S = new MessageChannel()).port1.onmessage = function(E) {
2245
+ b(E.data);
2249
2246
  }, function(E) {
2250
- w.port2.postMessage(E);
2247
+ S.port2.postMessage(E);
2251
2248
  }) : u && "onreadystatechange" in u.createElement("script") ? (_ = u.documentElement, function(E) {
2252
2249
  var A = u.createElement("script");
2253
2250
  A.onreadystatechange = function() {
2254
- v(E), A.onreadystatechange = null, _.removeChild(A), A = null;
2251
+ b(E), A.onreadystatechange = null, _.removeChild(A), A = null;
2255
2252
  }, _.appendChild(A);
2256
2253
  }) : function(E) {
2257
- setTimeout(v, 0, E);
2254
+ setTimeout(b, 0, E);
2258
2255
  }, m.setImmediate = function(E) {
2259
2256
  typeof E != "function" && (E = new Function("" + E));
2260
2257
  for (var A = new Array(arguments.length - 1), L = 0; L < A.length; L++) A[L] = arguments[L + 1];
@@ -2265,8 +2262,8 @@ function Be() {
2265
2262
  function f(E) {
2266
2263
  delete d[E];
2267
2264
  }
2268
- function v(E) {
2269
- if (k) setTimeout(v, 0, E);
2265
+ function b(E) {
2266
+ if (k) setTimeout(b, 0, E);
2270
2267
  else {
2271
2268
  var A = d[E];
2272
2269
  if (A) {
@@ -2298,81 +2295,81 @@ function Be() {
2298
2295
  }
2299
2296
  }
2300
2297
  function x(E) {
2301
- E.source === o && typeof E.data == "string" && E.data.indexOf(b) === 0 && v(+E.data.slice(b.length));
2298
+ E.source === o && typeof E.data == "string" && E.data.indexOf(v) === 0 && b(+E.data.slice(v.length));
2302
2299
  }
2303
2300
  })(typeof self > "u" ? n === void 0 ? this : n : self);
2304
- }).call(this, typeof Rt < "u" ? Rt : typeof self < "u" ? self : typeof window < "u" ? window : {});
2301
+ }).call(this, typeof zt < "u" ? zt : typeof self < "u" ? self : typeof window < "u" ? window : {});
2305
2302
  }, {}] }, {}, [10])(10);
2306
2303
  });
2307
- })(Ut)), Ut.exports;
2304
+ })(jt)), jt.exports;
2308
2305
  }
2309
- var ze = Be();
2310
- const Re = /* @__PURE__ */ Pe(ze);
2306
+ var Se = we();
2307
+ const Ce = /* @__PURE__ */ _e(Se);
2311
2308
  var dt;
2312
- (function(l) {
2313
- l.OfficeDocument = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", l.FontTable = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable", l.Image = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", l.Numbering = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering", l.Styles = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles", l.StylesWithEffects = "http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects", l.Theme = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme", l.Settings = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings", l.WebSettings = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings", l.Hyperlink = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", l.Footnotes = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes", l.Endnotes = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes", l.Footer = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", l.Header = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", l.ExtendedProperties = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties", l.CoreProperties = "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties", l.CustomProperties = "http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties", l.Comments = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments", l.CommentsExtended = "http://schemas.microsoft.com/office/2011/relationships/commentsExtended", l.AltChunk = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk";
2309
+ (function(c) {
2310
+ c.OfficeDocument = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", c.FontTable = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable", c.Image = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", c.Numbering = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering", c.Styles = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles", c.StylesWithEffects = "http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects", c.Theme = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme", c.Settings = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings", c.WebSettings = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings", c.Hyperlink = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", c.Footnotes = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes", c.Endnotes = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes", c.Footer = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", c.Header = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", c.ExtendedProperties = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties", c.CoreProperties = "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties", c.CustomProperties = "http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties", c.Comments = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments", c.CommentsExtended = "http://schemas.microsoft.com/office/2011/relationships/commentsExtended", c.AltChunk = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk";
2314
2311
  })(dt || (dt = {}));
2315
- function Te(l, e) {
2316
- return e.elements(l).map((t) => ({
2312
+ function xe(c, e) {
2313
+ return e.elements(c).map((t) => ({
2317
2314
  id: e.attr(t, "Id"),
2318
2315
  type: e.attr(t, "Type"),
2319
2316
  target: e.attr(t, "Target"),
2320
2317
  targetMode: e.attr(t, "TargetMode")
2321
2318
  }));
2322
2319
  }
2323
- function Fe(l) {
2324
- return l?.replace(/[ .]+/g, "-").replace(/[&]+/g, "and").toLowerCase();
2320
+ function Pe(c) {
2321
+ return c?.replace(/[ .]+/g, "-").replace(/[&]+/g, "and").toLowerCase();
2325
2322
  }
2326
- function Wt(l) {
2327
- return /^[^"'].*\s.*[^"']$/.test(l) ? `'${l}'` : l;
2323
+ function Ht(c) {
2324
+ return /^[^"'].*\s.*[^"']$/.test(c) ? `'${c}'` : c;
2328
2325
  }
2329
- function It(l) {
2330
- let e = l.lastIndexOf("/") + 1, t = e == 0 ? "" : l.substring(0, e), r = e == 0 ? l : l.substring(e);
2326
+ function Ft(c) {
2327
+ let e = c.lastIndexOf("/") + 1, t = e == 0 ? "" : c.substring(0, e), r = e == 0 ? c : c.substring(e);
2331
2328
  return [t, r];
2332
2329
  }
2333
- function $t(l, e) {
2330
+ function Ut(c, e) {
2334
2331
  try {
2335
2332
  const t = "http://docx/";
2336
- return new URL(l, t + e).toString().substring(t.length);
2333
+ return new URL(c, t + e).toString().substring(t.length);
2337
2334
  } catch {
2338
- return `${e}${l}`;
2335
+ return `${e}${c}`;
2339
2336
  }
2340
2337
  }
2341
- function wt(l, e) {
2342
- return l.reduce((t, r) => (t[e(r)] = r, t), {});
2338
+ function wt(c, e) {
2339
+ return c.reduce((t, r) => (t[e(r)] = r, t), {});
2343
2340
  }
2344
- function Ie(l) {
2341
+ function Ae(c) {
2345
2342
  return new Promise((e, t) => {
2346
2343
  const r = new FileReader();
2347
- r.onloadend = () => e(r.result), r.onerror = () => t(), r.readAsDataURL(l);
2344
+ r.onloadend = () => e(r.result), r.onerror = () => t(), r.readAsDataURL(c);
2348
2345
  });
2349
2346
  }
2350
- function Ht(l) {
2351
- return l && typeof l == "object" && !Array.isArray(l);
2347
+ function $t(c) {
2348
+ return c && typeof c == "object" && !Array.isArray(c);
2352
2349
  }
2353
- function Zt(l) {
2354
- return typeof l == "string" || l instanceof String;
2350
+ function Wt(c) {
2351
+ return typeof c == "string" || c instanceof String;
2355
2352
  }
2356
- function Lt(l, ...e) {
2353
+ function Ot(c, ...e) {
2357
2354
  if (!e.length)
2358
- return l;
2355
+ return c;
2359
2356
  const t = e.shift();
2360
- if (Ht(l) && Ht(t))
2357
+ if ($t(c) && $t(t))
2361
2358
  for (const r in t)
2362
- if (Ht(t[r])) {
2363
- const a = l[r] ?? (l[r] = {});
2364
- Lt(a, t[r]);
2359
+ if ($t(t[r])) {
2360
+ const a = c[r] ?? (c[r] = {});
2361
+ Ot(a, t[r]);
2365
2362
  } else
2366
- l[r] = t[r];
2367
- return Lt(l, ...e);
2363
+ c[r] = t[r];
2364
+ return Ot(c, ...e);
2368
2365
  }
2369
- function Et(l) {
2370
- return Array.isArray(l) ? l : [l];
2366
+ function Et(c) {
2367
+ return Array.isArray(c) ? c : [c];
2371
2368
  }
2372
- function Oe(l, e, t) {
2373
- return e > l ? e : t < l ? t : l;
2369
+ function Ee(c, e, t) {
2370
+ return e > c ? e : t < c ? t : c;
2374
2371
  }
2375
- const oe = {
2372
+ const se = {
2376
2373
  wordml: "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
2377
2374
  }, ft = {
2378
2375
  Dxa: { mul: 0.05, unit: "pt" },
@@ -2382,14 +2379,14 @@ const oe = {
2382
2379
  Point: { mul: 1, unit: "pt" },
2383
2380
  Percent: { mul: 0.02, unit: "%" }
2384
2381
  };
2385
- function le(l, e = ft.Dxa) {
2386
- if (l == null || /.+(p[xt]|[%])$/.test(l))
2387
- return l;
2388
- var t = parseInt(l) * e.mul;
2389
- return e.min && e.max && (t = Oe(t, e.min, e.max)), `${t.toFixed(2)}${e.unit}`;
2382
+ function ie(c, e = ft.Dxa) {
2383
+ if (c == null || /.+(p[xt]|[%])$/.test(c))
2384
+ return c;
2385
+ var t = parseInt(c) * e.mul;
2386
+ return e.min && e.max && (t = Ee(t, e.min, e.max)), `${t.toFixed(2)}${e.unit}`;
2390
2387
  }
2391
- function Le(l, e = !1) {
2392
- switch (l) {
2388
+ function Ne(c, e = !1) {
2389
+ switch (c) {
2393
2390
  case "1":
2394
2391
  return !0;
2395
2392
  case "0":
@@ -2406,38 +2403,38 @@ function Le(l, e = !1) {
2406
2403
  return e;
2407
2404
  }
2408
2405
  }
2409
- function ce(l, e, t) {
2410
- if (l.namespaceURI != oe.wordml)
2406
+ function oe(c, e, t) {
2407
+ if (c.namespaceURI != se.wordml)
2411
2408
  return !1;
2412
- switch (l.localName) {
2409
+ switch (c.localName) {
2413
2410
  case "color":
2414
- e.color = t.attr(l, "val");
2411
+ e.color = t.attr(c, "val");
2415
2412
  break;
2416
2413
  case "sz":
2417
- e.fontSize = t.lengthAttr(l, "val", ft.FontSize);
2414
+ e.fontSize = t.lengthAttr(c, "val", ft.FontSize);
2418
2415
  break;
2419
2416
  default:
2420
2417
  return !1;
2421
2418
  }
2422
2419
  return !0;
2423
2420
  }
2424
- function De(l, e = !1) {
2425
- e && (l = l.replace(/<[?].*[?]>/, "")), l = Ue(l);
2426
- const t = new DOMParser().parseFromString(l, "application/xml"), r = je(t);
2421
+ function Me(c, e = !1) {
2422
+ e && (c = c.replace(/<[?].*[?]>/, "")), c = ze(c);
2423
+ const t = new DOMParser().parseFromString(c, "application/xml"), r = Be(t);
2427
2424
  if (r)
2428
2425
  throw new Error(r);
2429
2426
  return t;
2430
2427
  }
2431
- function je(l) {
2432
- return l.getElementsByTagName("parsererror")[0]?.textContent;
2428
+ function Be(c) {
2429
+ return c.getElementsByTagName("parsererror")[0]?.textContent;
2433
2430
  }
2434
- function Ue(l) {
2435
- return l.charCodeAt(0) === 65279 ? l.substring(1) : l;
2431
+ function ze(c) {
2432
+ return c.charCodeAt(0) === 65279 ? c.substring(1) : c;
2436
2433
  }
2437
- function $e(l) {
2438
- return new XMLSerializer().serializeToString(l);
2434
+ function Re(c) {
2435
+ return new XMLSerializer().serializeToString(c);
2439
2436
  }
2440
- class he {
2437
+ class le {
2441
2438
  elements(e, t = null) {
2442
2439
  const r = [];
2443
2440
  for (let a = 0, n = e.childNodes.length; a < n; a++) {
@@ -2482,13 +2479,13 @@ class he {
2482
2479
  return a ? parseFloat(a) : r;
2483
2480
  }
2484
2481
  boolAttr(e, t, r = null) {
2485
- return Le(this.attr(e, t), r);
2482
+ return Ne(this.attr(e, t), r);
2486
2483
  }
2487
2484
  lengthAttr(e, t, r = ft.Dxa) {
2488
- return le(this.attr(e, t), r);
2485
+ return ie(this.attr(e, t), r);
2489
2486
  }
2490
2487
  }
2491
- const C = new he();
2488
+ const C = new le();
2492
2489
  class gt {
2493
2490
  constructor(e, t) {
2494
2491
  this._package = e, this.path = t;
@@ -2499,26 +2496,26 @@ class gt {
2499
2496
  this._package.options.keepOrigin && (this._xmlDocument = t), this.parseXml(t.firstElementChild);
2500
2497
  }
2501
2498
  save() {
2502
- this._package.update(this.path, $e(this._xmlDocument));
2499
+ this._package.update(this.path, Re(this._xmlDocument));
2503
2500
  }
2504
2501
  parseXml(e) {
2505
2502
  }
2506
2503
  }
2507
- const He = {
2504
+ const Te = {
2508
2505
  embedRegular: "regular",
2509
2506
  embedBold: "bold",
2510
2507
  embedItalic: "italic",
2511
2508
  embedBoldItalic: "boldItalic"
2512
2509
  };
2513
- function We(l, e) {
2514
- return e.elements(l).map((t) => Ze(t, e));
2510
+ function Fe(c, e) {
2511
+ return e.elements(c).map((t) => Ie(t, e));
2515
2512
  }
2516
- function Ze(l, e) {
2513
+ function Ie(c, e) {
2517
2514
  let t = {
2518
- name: e.attr(l, "name"),
2515
+ name: e.attr(c, "name"),
2519
2516
  embedFontRefs: []
2520
2517
  };
2521
- for (let r of e.elements(l))
2518
+ for (let r of e.elements(c))
2522
2519
  switch (r.localName) {
2523
2520
  case "family":
2524
2521
  t.family = e.attr(r, "val");
@@ -2530,44 +2527,44 @@ function Ze(l, e) {
2530
2527
  case "embedBold":
2531
2528
  case "embedItalic":
2532
2529
  case "embedBoldItalic":
2533
- t.embedFontRefs.push(Ve(r, e));
2530
+ t.embedFontRefs.push(Oe(r, e));
2534
2531
  break;
2535
2532
  }
2536
2533
  return t;
2537
2534
  }
2538
- function Ve(l, e) {
2535
+ function Oe(c, e) {
2539
2536
  return {
2540
- id: e.attr(l, "id"),
2541
- key: e.attr(l, "fontKey"),
2542
- type: He[l.localName]
2537
+ id: e.attr(c, "id"),
2538
+ key: e.attr(c, "fontKey"),
2539
+ type: Te[c.localName]
2543
2540
  };
2544
2541
  }
2545
- class Ge extends gt {
2542
+ class Le extends gt {
2546
2543
  parseXml(e) {
2547
- this.fonts = We(e, this._package.xmlParser);
2544
+ this.fonts = Fe(e, this._package.xmlParser);
2548
2545
  }
2549
2546
  }
2550
- function Xe(l, e) {
2551
- return e.elements(l).map((t) => ({
2547
+ function De(c, e) {
2548
+ return e.elements(c).map((t) => ({
2552
2549
  extension: e.attr(t, "Extension"),
2553
2550
  partName: e.attr(t, "PartName"),
2554
2551
  contentType: e.attr(t, "ContentType")
2555
2552
  }));
2556
2553
  }
2557
- class Vt {
2554
+ class Zt {
2558
2555
  constructor(e, t) {
2559
- this._zip = e, this.options = t, this.xmlParser = new he();
2556
+ this._zip = e, this.options = t, this.xmlParser = new le();
2560
2557
  }
2561
2558
  get(e) {
2562
- const t = Ke(e);
2559
+ const t = je(e);
2563
2560
  return this._zip.files[t] ?? this._zip.files[t.replace(/\//g, "\\")];
2564
2561
  }
2565
2562
  update(e, t) {
2566
2563
  this._zip.file(e, t);
2567
2564
  }
2568
2565
  static async load(e, t) {
2569
- const r = await Re.loadAsync(e);
2570
- return new Vt(r, t);
2566
+ const r = await Ce.loadAsync(e);
2567
+ return new Zt(r, t);
2571
2568
  }
2572
2569
  save(e = "blob") {
2573
2570
  return this._zip.generateAsync({ type: e });
@@ -2578,24 +2575,24 @@ class Vt {
2578
2575
  async loadRelationships(e = null) {
2579
2576
  let t = "_rels/.rels";
2580
2577
  if (e != null) {
2581
- const [a, n] = It(e);
2578
+ const [a, n] = Ft(e);
2582
2579
  t = `${a}_rels/${n}.rels`;
2583
2580
  }
2584
2581
  const r = await this.load(t);
2585
- return r ? Te(this.parseXmlDocument(r).firstElementChild, this.xmlParser) : null;
2582
+ return r ? xe(this.parseXmlDocument(r).firstElementChild, this.xmlParser) : null;
2586
2583
  }
2587
2584
  async loadContentTypes() {
2588
2585
  const e = await this.load("[Content_Types].xml");
2589
- return e ? Xe(this.parseXmlDocument(e).firstElementChild, this.xmlParser) : [];
2586
+ return e ? De(this.parseXmlDocument(e).firstElementChild, this.xmlParser) : [];
2590
2587
  }
2591
2588
  parseXmlDocument(e) {
2592
- return De(e, this.options.trimXmlDeclaration);
2589
+ return Me(e, this.options.trimXmlDeclaration);
2593
2590
  }
2594
2591
  }
2595
- function Ke(l) {
2596
- return l.startsWith("/") ? l.substr(1) : l;
2592
+ function je(c) {
2593
+ return c.startsWith("/") ? c.substr(1) : c;
2597
2594
  }
2598
- class Ye extends gt {
2595
+ class Ue extends gt {
2599
2596
  constructor(e, t, r) {
2600
2597
  super(e, t), this._documentParser = r;
2601
2598
  }
@@ -2603,42 +2600,42 @@ class Ye extends gt {
2603
2600
  this.body = this._documentParser.parseDocumentFile(e);
2604
2601
  }
2605
2602
  }
2606
- function Ft(l, e) {
2603
+ function Tt(c, e) {
2607
2604
  return {
2608
- type: e.attr(l, "val"),
2609
- color: e.attr(l, "color"),
2610
- size: e.lengthAttr(l, "sz", ft.Border),
2611
- offset: e.lengthAttr(l, "space", ft.Point),
2612
- frame: e.boolAttr(l, "frame"),
2613
- shadow: e.boolAttr(l, "shadow")
2605
+ type: e.attr(c, "val"),
2606
+ color: e.attr(c, "color"),
2607
+ size: e.lengthAttr(c, "sz", ft.Border),
2608
+ offset: e.lengthAttr(c, "space", ft.Point),
2609
+ frame: e.boolAttr(c, "frame"),
2610
+ shadow: e.boolAttr(c, "shadow")
2614
2611
  };
2615
2612
  }
2616
- function qe(l, e) {
2613
+ function $e(c, e) {
2617
2614
  var t = {};
2618
- for (let r of e.elements(l))
2615
+ for (let r of e.elements(c))
2619
2616
  switch (r.localName) {
2620
2617
  case "left":
2621
- t.left = Ft(r, e);
2618
+ t.left = Tt(r, e);
2622
2619
  break;
2623
2620
  case "top":
2624
- t.top = Ft(r, e);
2621
+ t.top = Tt(r, e);
2625
2622
  break;
2626
2623
  case "right":
2627
- t.right = Ft(r, e);
2624
+ t.right = Tt(r, e);
2628
2625
  break;
2629
2626
  case "bottom":
2630
- t.bottom = Ft(r, e);
2627
+ t.bottom = Tt(r, e);
2631
2628
  break;
2632
2629
  }
2633
2630
  return t;
2634
2631
  }
2635
- var Qt;
2636
- (function(l) {
2637
- l.Continuous = "continuous", l.NextPage = "nextPage", l.NextColumn = "nextColumn", l.EvenPage = "evenPage", l.OddPage = "oddPage";
2638
- })(Qt || (Qt = {}));
2639
- function ue(l, e = C) {
2632
+ var qt;
2633
+ (function(c) {
2634
+ c.Continuous = "continuous", c.NextPage = "nextPage", c.NextColumn = "nextColumn", c.EvenPage = "evenPage", c.OddPage = "oddPage";
2635
+ })(qt || (qt = {}));
2636
+ function ce(c, e = C) {
2640
2637
  var t = {};
2641
- for (let r of e.elements(l))
2638
+ for (let r of e.elements(c))
2642
2639
  switch (r.localName) {
2643
2640
  case "pgSz":
2644
2641
  t.pageSize = {
@@ -2662,127 +2659,127 @@ function ue(l, e = C) {
2662
2659
  };
2663
2660
  break;
2664
2661
  case "cols":
2665
- t.columns = Je(r, e);
2662
+ t.columns = He(r, e);
2666
2663
  break;
2667
2664
  case "headerReference":
2668
- (t.headerRefs ?? (t.headerRefs = [])).push(te(r, e));
2665
+ (t.headerRefs ?? (t.headerRefs = [])).push(Jt(r, e));
2669
2666
  break;
2670
2667
  case "footerReference":
2671
- (t.footerRefs ?? (t.footerRefs = [])).push(te(r, e));
2668
+ (t.footerRefs ?? (t.footerRefs = [])).push(Jt(r, e));
2672
2669
  break;
2673
2670
  case "titlePg":
2674
2671
  t.titlePage = e.boolAttr(r, "val", !0);
2675
2672
  break;
2676
2673
  case "pgBorders":
2677
- t.pageBorders = qe(r, e);
2674
+ t.pageBorders = $e(r, e);
2678
2675
  break;
2679
2676
  case "pgNumType":
2680
- t.pageNumber = Qe(r, e);
2677
+ t.pageNumber = We(r, e);
2681
2678
  break;
2682
2679
  }
2683
2680
  return t;
2684
2681
  }
2685
- function Je(l, e) {
2682
+ function He(c, e) {
2686
2683
  return {
2687
- numberOfColumns: e.intAttr(l, "num"),
2688
- space: e.lengthAttr(l, "space"),
2689
- separator: e.boolAttr(l, "sep"),
2690
- equalWidth: e.boolAttr(l, "equalWidth", !0),
2691
- columns: e.elements(l, "col").map((t) => ({
2684
+ numberOfColumns: e.intAttr(c, "num"),
2685
+ space: e.lengthAttr(c, "space"),
2686
+ separator: e.boolAttr(c, "sep"),
2687
+ equalWidth: e.boolAttr(c, "equalWidth", !0),
2688
+ columns: e.elements(c, "col").map((t) => ({
2692
2689
  width: e.lengthAttr(t, "w"),
2693
2690
  space: e.lengthAttr(t, "space")
2694
2691
  }))
2695
2692
  };
2696
2693
  }
2697
- function Qe(l, e) {
2694
+ function We(c, e) {
2698
2695
  return {
2699
- chapSep: e.attr(l, "chapSep"),
2700
- chapStyle: e.attr(l, "chapStyle"),
2701
- format: e.attr(l, "fmt"),
2702
- start: e.intAttr(l, "start")
2696
+ chapSep: e.attr(c, "chapSep"),
2697
+ chapStyle: e.attr(c, "chapStyle"),
2698
+ format: e.attr(c, "fmt"),
2699
+ start: e.intAttr(c, "start")
2703
2700
  };
2704
2701
  }
2705
- function te(l, e) {
2702
+ function Jt(c, e) {
2706
2703
  return {
2707
- id: e.attr(l, "id"),
2708
- type: e.attr(l, "type")
2704
+ id: e.attr(c, "id"),
2705
+ type: e.attr(c, "type")
2709
2706
  };
2710
2707
  }
2711
- function tr(l, e) {
2708
+ function Ze(c, e) {
2712
2709
  return {
2713
- before: e.lengthAttr(l, "before"),
2714
- after: e.lengthAttr(l, "after"),
2715
- line: e.intAttr(l, "line"),
2716
- lineRule: e.attr(l, "lineRule")
2710
+ before: e.lengthAttr(c, "before"),
2711
+ after: e.lengthAttr(c, "after"),
2712
+ line: e.intAttr(c, "line"),
2713
+ lineRule: e.attr(c, "lineRule")
2717
2714
  };
2718
2715
  }
2719
- function Gt(l, e) {
2716
+ function Vt(c, e) {
2720
2717
  let t = {};
2721
- for (let r of e.elements(l))
2722
- er(r, t, e);
2718
+ for (let r of e.elements(c))
2719
+ Ve(r, t, e);
2723
2720
  return t;
2724
2721
  }
2725
- function er(l, e, t) {
2726
- return !!ce(l, e, t);
2722
+ function Ve(c, e, t) {
2723
+ return !!oe(c, e, t);
2727
2724
  }
2728
- function de(l, e) {
2725
+ function he(c, e) {
2729
2726
  let t = {};
2730
- for (let r of e.elements(l))
2731
- fe(r, t, e);
2727
+ for (let r of e.elements(c))
2728
+ ue(r, t, e);
2732
2729
  return t;
2733
2730
  }
2734
- function fe(l, e, t) {
2735
- if (l.namespaceURI != oe.wordml)
2731
+ function ue(c, e, t) {
2732
+ if (c.namespaceURI != se.wordml)
2736
2733
  return !1;
2737
- if (ce(l, e, t))
2734
+ if (oe(c, e, t))
2738
2735
  return !0;
2739
- switch (l.localName) {
2736
+ switch (c.localName) {
2740
2737
  case "tabs":
2741
- e.tabs = rr(l, t);
2738
+ e.tabs = Ge(c, t);
2742
2739
  break;
2743
2740
  case "sectPr":
2744
- e.sectionProps = ue(l, t);
2741
+ e.sectionProps = ce(c, t);
2745
2742
  break;
2746
2743
  case "numPr":
2747
- e.numbering = ar(l, t);
2744
+ e.numbering = Xe(c, t);
2748
2745
  break;
2749
2746
  case "spacing":
2750
- return e.lineSpacing = tr(l, t), !1;
2747
+ return e.lineSpacing = Ze(c, t), !1;
2751
2748
  case "textAlignment":
2752
- return e.textAlignment = t.attr(l, "val"), !1;
2749
+ return e.textAlignment = t.attr(c, "val"), !1;
2753
2750
  case "keepLines":
2754
- e.keepLines = t.boolAttr(l, "val", !0);
2751
+ e.keepLines = t.boolAttr(c, "val", !0);
2755
2752
  break;
2756
2753
  case "keepNext":
2757
- e.keepNext = t.boolAttr(l, "val", !0);
2754
+ e.keepNext = t.boolAttr(c, "val", !0);
2758
2755
  break;
2759
2756
  case "pageBreakBefore":
2760
- e.pageBreakBefore = t.boolAttr(l, "val", !0);
2757
+ e.pageBreakBefore = t.boolAttr(c, "val", !0);
2761
2758
  break;
2762
2759
  case "outlineLvl":
2763
- e.outlineLevel = t.intAttr(l, "val");
2760
+ e.outlineLevel = t.intAttr(c, "val");
2764
2761
  break;
2765
2762
  case "pStyle":
2766
- e.styleName = t.attr(l, "val");
2763
+ e.styleName = t.attr(c, "val");
2767
2764
  break;
2768
2765
  case "rPr":
2769
- e.runProps = Gt(l, t);
2766
+ e.runProps = Vt(c, t);
2770
2767
  break;
2771
2768
  default:
2772
2769
  return !1;
2773
2770
  }
2774
2771
  return !0;
2775
2772
  }
2776
- function rr(l, e) {
2777
- return e.elements(l, "tab").map((t) => ({
2773
+ function Ge(c, e) {
2774
+ return e.elements(c, "tab").map((t) => ({
2778
2775
  position: e.lengthAttr(t, "pos"),
2779
2776
  leader: e.attr(t, "leader"),
2780
2777
  style: e.attr(t, "val")
2781
2778
  }));
2782
2779
  }
2783
- function ar(l, e) {
2780
+ function Xe(c, e) {
2784
2781
  var t = {};
2785
- for (let r of e.elements(l))
2782
+ for (let r of e.elements(c))
2786
2783
  switch (r.localName) {
2787
2784
  case "numId":
2788
2785
  t.id = e.attr(r, "val");
@@ -2793,48 +2790,48 @@ function ar(l, e) {
2793
2790
  }
2794
2791
  return t;
2795
2792
  }
2796
- function nr(l, e) {
2793
+ function Ke(c, e) {
2797
2794
  let t = {
2798
2795
  numberings: [],
2799
2796
  abstractNumberings: [],
2800
2797
  bulletPictures: []
2801
2798
  };
2802
- for (let r of e.elements(l))
2799
+ for (let r of e.elements(c))
2803
2800
  switch (r.localName) {
2804
2801
  case "num":
2805
- t.numberings.push(sr(r, e));
2802
+ t.numberings.push(Ye(r, e));
2806
2803
  break;
2807
2804
  case "abstractNum":
2808
- t.abstractNumberings.push(ir(r, e));
2805
+ t.abstractNumberings.push(qe(r, e));
2809
2806
  break;
2810
2807
  case "numPicBullet":
2811
- t.bulletPictures.push(lr(r, e));
2808
+ t.bulletPictures.push(Qe(r, e));
2812
2809
  break;
2813
2810
  }
2814
2811
  return t;
2815
2812
  }
2816
- function sr(l, e) {
2813
+ function Ye(c, e) {
2817
2814
  let t = {
2818
- id: e.attr(l, "numId"),
2815
+ id: e.attr(c, "numId"),
2819
2816
  overrides: []
2820
2817
  };
2821
- for (let r of e.elements(l))
2818
+ for (let r of e.elements(c))
2822
2819
  switch (r.localName) {
2823
2820
  case "abstractNumId":
2824
2821
  t.abstractId = e.attr(r, "val");
2825
2822
  break;
2826
2823
  case "lvlOverride":
2827
- t.overrides.push(or(r, e));
2824
+ t.overrides.push(Je(r, e));
2828
2825
  break;
2829
2826
  }
2830
2827
  return t;
2831
2828
  }
2832
- function ir(l, e) {
2829
+ function qe(c, e) {
2833
2830
  let t = {
2834
- id: e.attr(l, "abstractNumId"),
2831
+ id: e.attr(c, "abstractNumId"),
2835
2832
  levels: []
2836
2833
  };
2837
- for (let r of e.elements(l))
2834
+ for (let r of e.elements(c))
2838
2835
  switch (r.localName) {
2839
2836
  case "name":
2840
2837
  t.name = e.attr(r, "val");
@@ -2849,16 +2846,16 @@ function ir(l, e) {
2849
2846
  t.styleLink = e.attr(r, "val");
2850
2847
  break;
2851
2848
  case "lvl":
2852
- t.levels.push(pe(r, e));
2849
+ t.levels.push(de(r, e));
2853
2850
  break;
2854
2851
  }
2855
2852
  return t;
2856
2853
  }
2857
- function pe(l, e) {
2854
+ function de(c, e) {
2858
2855
  let t = {
2859
- level: e.intAttr(l, "ilvl")
2856
+ level: e.intAttr(c, "ilvl")
2860
2857
  };
2861
- for (let r of e.elements(l))
2858
+ for (let r of e.elements(c))
2862
2859
  switch (r.localName) {
2863
2860
  case "start":
2864
2861
  t.start = e.attr(r, "val");
@@ -2882,46 +2879,46 @@ function pe(l, e) {
2882
2879
  t.paragraphStyle = e.attr(r, "val");
2883
2880
  break;
2884
2881
  case "pPr":
2885
- t.paragraphProps = de(r, e);
2882
+ t.paragraphProps = he(r, e);
2886
2883
  break;
2887
2884
  case "rPr":
2888
- t.runProps = Gt(r, e);
2885
+ t.runProps = Vt(r, e);
2889
2886
  break;
2890
2887
  }
2891
2888
  return t;
2892
2889
  }
2893
- function or(l, e) {
2890
+ function Je(c, e) {
2894
2891
  let t = {
2895
- level: e.intAttr(l, "ilvl")
2892
+ level: e.intAttr(c, "ilvl")
2896
2893
  };
2897
- for (let r of e.elements(l))
2894
+ for (let r of e.elements(c))
2898
2895
  switch (r.localName) {
2899
2896
  case "startOverride":
2900
2897
  t.start = e.intAttr(r, "val");
2901
2898
  break;
2902
2899
  case "lvl":
2903
- t.numberingLevel = pe(r, e);
2900
+ t.numberingLevel = de(r, e);
2904
2901
  break;
2905
2902
  }
2906
2903
  return t;
2907
2904
  }
2908
- function lr(l, e) {
2909
- var t = e.element(l, "pict"), r = t && e.element(t, "shape"), a = r && e.element(r, "imagedata");
2905
+ function Qe(c, e) {
2906
+ var t = e.element(c, "pict"), r = t && e.element(t, "shape"), a = r && e.element(r, "imagedata");
2910
2907
  return a ? {
2911
- id: e.attr(l, "numPicBulletId"),
2908
+ id: e.attr(c, "numPicBulletId"),
2912
2909
  referenceId: e.attr(a, "id"),
2913
2910
  style: e.attr(r, "style")
2914
2911
  } : null;
2915
2912
  }
2916
- class cr extends gt {
2913
+ class tr extends gt {
2917
2914
  constructor(e, t, r) {
2918
2915
  super(e, t), this._documentParser = r;
2919
2916
  }
2920
2917
  parseXml(e) {
2921
- Object.assign(this, nr(e, this._package.xmlParser)), this.domNumberings = this._documentParser.parseNumberingFile(e);
2918
+ Object.assign(this, Ke(e, this._package.xmlParser)), this.domNumberings = this._documentParser.parseNumberingFile(e);
2922
2919
  }
2923
2920
  }
2924
- class hr extends gt {
2921
+ class er extends gt {
2925
2922
  constructor(e, t, r) {
2926
2923
  super(e, t), this._documentParser = r;
2927
2924
  }
@@ -2930,25 +2927,25 @@ class hr extends gt {
2930
2927
  }
2931
2928
  }
2932
2929
  var B;
2933
- (function(l) {
2934
- l.Document = "document", l.Paragraph = "paragraph", l.Run = "run", l.Break = "break", l.NoBreakHyphen = "noBreakHyphen", l.Table = "table", l.Row = "row", l.Cell = "cell", l.Hyperlink = "hyperlink", l.SmartTag = "smartTag", l.Drawing = "drawing", l.Image = "image", l.Text = "text", l.Tab = "tab", l.Symbol = "symbol", l.BookmarkStart = "bookmarkStart", l.BookmarkEnd = "bookmarkEnd", l.Footer = "footer", l.Header = "header", l.FootnoteReference = "footnoteReference", l.EndnoteReference = "endnoteReference", l.Footnote = "footnote", l.Endnote = "endnote", l.SimpleField = "simpleField", l.ComplexField = "complexField", l.Instruction = "instruction", l.VmlPicture = "vmlPicture", l.MmlMath = "mmlMath", l.MmlMathParagraph = "mmlMathParagraph", l.MmlFraction = "mmlFraction", l.MmlFunction = "mmlFunction", l.MmlFunctionName = "mmlFunctionName", l.MmlNumerator = "mmlNumerator", l.MmlDenominator = "mmlDenominator", l.MmlRadical = "mmlRadical", l.MmlBase = "mmlBase", l.MmlDegree = "mmlDegree", l.MmlSuperscript = "mmlSuperscript", l.MmlSubscript = "mmlSubscript", l.MmlPreSubSuper = "mmlPreSubSuper", l.MmlSubArgument = "mmlSubArgument", l.MmlSuperArgument = "mmlSuperArgument", l.MmlNary = "mmlNary", l.MmlDelimiter = "mmlDelimiter", l.MmlRun = "mmlRun", l.MmlEquationArray = "mmlEquationArray", l.MmlLimit = "mmlLimit", l.MmlLimitLower = "mmlLimitLower", l.MmlMatrix = "mmlMatrix", l.MmlMatrixRow = "mmlMatrixRow", l.MmlBox = "mmlBox", l.MmlBar = "mmlBar", l.MmlGroupChar = "mmlGroupChar", l.VmlElement = "vmlElement", l.Inserted = "inserted", l.Deleted = "deleted", l.DeletedText = "deletedText", l.Comment = "comment", l.CommentReference = "commentReference", l.CommentRangeStart = "commentRangeStart", l.CommentRangeEnd = "commentRangeEnd", l.AltChunk = "altChunk";
2930
+ (function(c) {
2931
+ c.Document = "document", c.Paragraph = "paragraph", c.Run = "run", c.Break = "break", c.NoBreakHyphen = "noBreakHyphen", c.Table = "table", c.Row = "row", c.Cell = "cell", c.Hyperlink = "hyperlink", c.SmartTag = "smartTag", c.Drawing = "drawing", c.Image = "image", c.Text = "text", c.Tab = "tab", c.Symbol = "symbol", c.BookmarkStart = "bookmarkStart", c.BookmarkEnd = "bookmarkEnd", c.Footer = "footer", c.Header = "header", c.FootnoteReference = "footnoteReference", c.EndnoteReference = "endnoteReference", c.Footnote = "footnote", c.Endnote = "endnote", c.SimpleField = "simpleField", c.ComplexField = "complexField", c.Instruction = "instruction", c.VmlPicture = "vmlPicture", c.MmlMath = "mmlMath", c.MmlMathParagraph = "mmlMathParagraph", c.MmlFraction = "mmlFraction", c.MmlFunction = "mmlFunction", c.MmlFunctionName = "mmlFunctionName", c.MmlNumerator = "mmlNumerator", c.MmlDenominator = "mmlDenominator", c.MmlRadical = "mmlRadical", c.MmlBase = "mmlBase", c.MmlDegree = "mmlDegree", c.MmlSuperscript = "mmlSuperscript", c.MmlSubscript = "mmlSubscript", c.MmlPreSubSuper = "mmlPreSubSuper", c.MmlSubArgument = "mmlSubArgument", c.MmlSuperArgument = "mmlSuperArgument", c.MmlNary = "mmlNary", c.MmlDelimiter = "mmlDelimiter", c.MmlRun = "mmlRun", c.MmlEquationArray = "mmlEquationArray", c.MmlLimit = "mmlLimit", c.MmlLimitLower = "mmlLimitLower", c.MmlMatrix = "mmlMatrix", c.MmlMatrixRow = "mmlMatrixRow", c.MmlBox = "mmlBox", c.MmlBar = "mmlBar", c.MmlGroupChar = "mmlGroupChar", c.VmlElement = "vmlElement", c.Inserted = "inserted", c.Deleted = "deleted", c.DeletedText = "deletedText", c.Comment = "comment", c.CommentReference = "commentReference", c.CommentRangeStart = "commentRangeStart", c.CommentRangeEnd = "commentRangeEnd", c.AltChunk = "altChunk";
2935
2932
  })(B || (B = {}));
2936
2933
  class St {
2937
2934
  constructor() {
2938
2935
  this.children = [], this.cssStyle = {};
2939
2936
  }
2940
2937
  }
2941
- class ur extends St {
2938
+ class rr extends St {
2942
2939
  constructor() {
2943
2940
  super(...arguments), this.type = B.Header;
2944
2941
  }
2945
2942
  }
2946
- class dr extends St {
2943
+ class ar extends St {
2947
2944
  constructor() {
2948
2945
  super(...arguments), this.type = B.Footer;
2949
2946
  }
2950
2947
  }
2951
- class me extends gt {
2948
+ class fe extends gt {
2952
2949
  constructor(e, t, r) {
2953
2950
  super(e, t), this._documentParser = r;
2954
2951
  }
@@ -2956,19 +2953,19 @@ class me extends gt {
2956
2953
  this.rootElement = this.createRootElement(), this.rootElement.children = this._documentParser.parseBodyElements(e);
2957
2954
  }
2958
2955
  }
2959
- class fr extends me {
2956
+ class nr extends fe {
2960
2957
  createRootElement() {
2961
- return new ur();
2958
+ return new rr();
2962
2959
  }
2963
2960
  }
2964
- class pr extends me {
2961
+ class sr extends fe {
2965
2962
  createRootElement() {
2966
- return new dr();
2963
+ return new ar();
2967
2964
  }
2968
2965
  }
2969
- function mr(l, e) {
2966
+ function ir(c, e) {
2970
2967
  const t = {};
2971
- for (let r of e.elements(l))
2968
+ for (let r of e.elements(c))
2972
2969
  switch (r.localName) {
2973
2970
  case "Template":
2974
2971
  t.template = r.textContent;
@@ -3000,18 +2997,18 @@ function mr(l, e) {
3000
2997
  }
3001
2998
  return t;
3002
2999
  }
3003
- function Nt(l) {
3004
- if (!(typeof l > "u"))
3005
- return parseInt(l);
3000
+ function Nt(c) {
3001
+ if (!(typeof c > "u"))
3002
+ return parseInt(c);
3006
3003
  }
3007
- class gr extends gt {
3004
+ class or extends gt {
3008
3005
  parseXml(e) {
3009
- this.props = mr(e, this._package.xmlParser);
3006
+ this.props = ir(e, this._package.xmlParser);
3010
3007
  }
3011
3008
  }
3012
- function br(l, e) {
3009
+ function lr(c, e) {
3013
3010
  const t = {};
3014
- for (let r of e.elements(l))
3011
+ for (let r of e.elements(c))
3015
3012
  switch (r.localName) {
3016
3013
  case "title":
3017
3014
  t.title = r.textContent;
@@ -3040,112 +3037,112 @@ function br(l, e) {
3040
3037
  }
3041
3038
  return t;
3042
3039
  }
3043
- class vr extends gt {
3040
+ class cr extends gt {
3044
3041
  parseXml(e) {
3045
- this.props = br(e, this._package.xmlParser);
3042
+ this.props = lr(e, this._package.xmlParser);
3046
3043
  }
3047
3044
  }
3048
- class kr {
3045
+ class hr {
3049
3046
  }
3050
- function yr(l, e) {
3051
- var t = new kr(), r = e.element(l, "themeElements");
3047
+ function ur(c, e) {
3048
+ var t = new hr(), r = e.element(c, "themeElements");
3052
3049
  for (let a of e.elements(r))
3053
3050
  switch (a.localName) {
3054
3051
  case "clrScheme":
3055
- t.colorScheme = _r(a, e);
3052
+ t.colorScheme = dr(a, e);
3056
3053
  break;
3057
3054
  case "fontScheme":
3058
- t.fontScheme = wr(a, e);
3055
+ t.fontScheme = fr(a, e);
3059
3056
  break;
3060
3057
  }
3061
3058
  return t;
3062
3059
  }
3063
- function _r(l, e) {
3060
+ function dr(c, e) {
3064
3061
  var t = {
3065
- name: e.attr(l, "name"),
3062
+ name: e.attr(c, "name"),
3066
3063
  colors: {}
3067
3064
  };
3068
- for (let n of e.elements(l)) {
3065
+ for (let n of e.elements(c)) {
3069
3066
  var r = e.element(n, "srgbClr"), a = e.element(n, "sysClr");
3070
3067
  r ? t.colors[n.localName] = e.attr(r, "val") : a && (t.colors[n.localName] = e.attr(a, "lastClr"));
3071
3068
  }
3072
3069
  return t;
3073
3070
  }
3074
- function wr(l, e) {
3071
+ function fr(c, e) {
3075
3072
  var t = {
3076
- name: e.attr(l, "name")
3073
+ name: e.attr(c, "name")
3077
3074
  };
3078
- for (let r of e.elements(l))
3075
+ for (let r of e.elements(c))
3079
3076
  switch (r.localName) {
3080
3077
  case "majorFont":
3081
- t.majorFont = ee(r, e);
3078
+ t.majorFont = Qt(r, e);
3082
3079
  break;
3083
3080
  case "minorFont":
3084
- t.minorFont = ee(r, e);
3081
+ t.minorFont = Qt(r, e);
3085
3082
  break;
3086
3083
  }
3087
3084
  return t;
3088
3085
  }
3089
- function ee(l, e) {
3086
+ function Qt(c, e) {
3090
3087
  return {
3091
- latinTypeface: e.elementAttr(l, "latin", "typeface"),
3092
- eaTypeface: e.elementAttr(l, "ea", "typeface"),
3093
- csTypeface: e.elementAttr(l, "cs", "typeface")
3088
+ latinTypeface: e.elementAttr(c, "latin", "typeface"),
3089
+ eaTypeface: e.elementAttr(c, "ea", "typeface"),
3090
+ csTypeface: e.elementAttr(c, "cs", "typeface")
3094
3091
  };
3095
3092
  }
3096
- class Sr extends gt {
3093
+ class pr extends gt {
3097
3094
  constructor(e, t) {
3098
3095
  super(e, t);
3099
3096
  }
3100
3097
  parseXml(e) {
3101
- this.theme = yr(e, this._package.xmlParser);
3098
+ this.theme = ur(e, this._package.xmlParser);
3102
3099
  }
3103
3100
  }
3104
- class ge {
3101
+ class pe {
3105
3102
  }
3106
- class Cr extends ge {
3103
+ class mr extends pe {
3107
3104
  constructor() {
3108
3105
  super(...arguments), this.type = B.Footnote;
3109
3106
  }
3110
3107
  }
3111
- class xr extends ge {
3108
+ class gr extends pe {
3112
3109
  constructor() {
3113
3110
  super(...arguments), this.type = B.Endnote;
3114
3111
  }
3115
3112
  }
3116
- class be extends gt {
3113
+ class me extends gt {
3117
3114
  constructor(e, t, r) {
3118
3115
  super(e, t), this._documentParser = r;
3119
3116
  }
3120
3117
  }
3121
- class Pr extends be {
3118
+ class br extends me {
3122
3119
  constructor(e, t, r) {
3123
3120
  super(e, t, r);
3124
3121
  }
3125
3122
  parseXml(e) {
3126
- this.notes = this._documentParser.parseNotes(e, "footnote", Cr);
3123
+ this.notes = this._documentParser.parseNotes(e, "footnote", mr);
3127
3124
  }
3128
3125
  }
3129
- class Ar extends be {
3126
+ class vr extends me {
3130
3127
  constructor(e, t, r) {
3131
3128
  super(e, t, r);
3132
3129
  }
3133
3130
  parseXml(e) {
3134
- this.notes = this._documentParser.parseNotes(e, "endnote", xr);
3131
+ this.notes = this._documentParser.parseNotes(e, "endnote", gr);
3135
3132
  }
3136
3133
  }
3137
- function Er(l, e) {
3134
+ function kr(c, e) {
3138
3135
  var t = {};
3139
- for (let r of e.elements(l))
3136
+ for (let r of e.elements(c))
3140
3137
  switch (r.localName) {
3141
3138
  case "defaultTabStop":
3142
3139
  t.defaultTabStop = e.lengthAttr(r, "val");
3143
3140
  break;
3144
3141
  case "footnotePr":
3145
- t.footnoteProps = re(r, e);
3142
+ t.footnoteProps = te(r, e);
3146
3143
  break;
3147
3144
  case "endnotePr":
3148
- t.endnoteProps = re(r, e);
3145
+ t.endnoteProps = te(r, e);
3149
3146
  break;
3150
3147
  case "autoHyphenation":
3151
3148
  t.autoHyphenation = e.boolAttr(r, "val");
@@ -3153,11 +3150,11 @@ function Er(l, e) {
3153
3150
  }
3154
3151
  return t;
3155
3152
  }
3156
- function re(l, e) {
3153
+ function te(c, e) {
3157
3154
  var t = {
3158
3155
  defaultNoteIds: []
3159
3156
  };
3160
- for (let r of e.elements(l))
3157
+ for (let r of e.elements(c))
3161
3158
  switch (r.localName) {
3162
3159
  case "numFmt":
3163
3160
  t.nummeringFormat = e.attr(r, "val");
@@ -3169,16 +3166,16 @@ function re(l, e) {
3169
3166
  }
3170
3167
  return t;
3171
3168
  }
3172
- class Nr extends gt {
3169
+ class yr extends gt {
3173
3170
  constructor(e, t) {
3174
3171
  super(e, t);
3175
3172
  }
3176
3173
  parseXml(e) {
3177
- this.settings = Er(e, this._package.xmlParser);
3174
+ this.settings = kr(e, this._package.xmlParser);
3178
3175
  }
3179
3176
  }
3180
- function Mr(l, e) {
3181
- return e.elements(l, "property").map((t) => {
3177
+ function _r(c, e) {
3178
+ return e.elements(c, "property").map((t) => {
3182
3179
  const r = t.firstChild;
3183
3180
  return {
3184
3181
  formatId: e.attr(t, "fmtid"),
@@ -3188,12 +3185,12 @@ function Mr(l, e) {
3188
3185
  };
3189
3186
  });
3190
3187
  }
3191
- class Br extends gt {
3188
+ class wr extends gt {
3192
3189
  parseXml(e) {
3193
- this.props = Mr(e, this._package.xmlParser);
3190
+ this.props = _r(e, this._package.xmlParser);
3194
3191
  }
3195
3192
  }
3196
- class zr extends gt {
3193
+ class Sr extends gt {
3197
3194
  constructor(e, t, r) {
3198
3195
  super(e, t), this._documentParser = r;
3199
3196
  }
@@ -3201,7 +3198,7 @@ class zr extends gt {
3201
3198
  this.comments = this._documentParser.parseComments(e), this.commentMap = wt(this.comments, (t) => t.id);
3202
3199
  }
3203
3200
  }
3204
- class Rr extends gt {
3201
+ class Cr extends gt {
3205
3202
  constructor(e, t) {
3206
3203
  super(e, t), this.comments = [];
3207
3204
  }
@@ -3216,19 +3213,19 @@ class Rr extends gt {
3216
3213
  this.commentMap = wt(this.comments, (r) => r.paraId);
3217
3214
  }
3218
3215
  }
3219
- const Tr = [
3216
+ const xr = [
3220
3217
  { type: dt.OfficeDocument, target: "word/document.xml" },
3221
3218
  { type: dt.ExtendedProperties, target: "docProps/app.xml" },
3222
3219
  { type: dt.CoreProperties, target: "docProps/core.xml" },
3223
3220
  { type: dt.CustomProperties, target: "docProps/custom.xml" }
3224
3221
  ];
3225
- class Xt {
3222
+ class Gt {
3226
3223
  constructor() {
3227
3224
  this.parts = [], this.partsMap = {}, this.contentTypes = [];
3228
3225
  }
3229
3226
  static async load(e, t, r) {
3230
- var a = new Xt();
3231
- return a._options = r, a._parser = t, a._package = await Vt.load(e, r), a.rels = await a._package.loadRelationships(), a.contentTypes = await a._package.loadContentTypes(), await Promise.all(Tr.map((n) => {
3227
+ var a = new Gt();
3228
+ return a._options = r, a._parser = t, a._package = await Zt.load(e, r), a.rels = await a._package.loadRelationships(), a.contentTypes = await a._package.loadContentTypes(), await Promise.all(xr.map((n) => {
3232
3229
  const o = a.rels.find((i) => i.type === n.type) ?? n;
3233
3230
  return a.loadRelationshipPart(o.target, o.type);
3234
3231
  })), a;
@@ -3244,56 +3241,56 @@ class Xt {
3244
3241
  let r = null;
3245
3242
  switch (t) {
3246
3243
  case dt.OfficeDocument:
3247
- this.documentPart = r = new Ye(this._package, e, this._parser);
3244
+ this.documentPart = r = new Ue(this._package, e, this._parser);
3248
3245
  break;
3249
3246
  case dt.FontTable:
3250
- this.fontTablePart = r = new Ge(this._package, e);
3247
+ this.fontTablePart = r = new Le(this._package, e);
3251
3248
  break;
3252
3249
  case dt.Numbering:
3253
- this.numberingPart = r = new cr(this._package, e, this._parser);
3250
+ this.numberingPart = r = new tr(this._package, e, this._parser);
3254
3251
  break;
3255
3252
  case dt.Styles:
3256
- this.stylesPart = r = new hr(this._package, e, this._parser);
3253
+ this.stylesPart = r = new er(this._package, e, this._parser);
3257
3254
  break;
3258
3255
  case dt.Theme:
3259
- this.themePart = r = new Sr(this._package, e);
3256
+ this.themePart = r = new pr(this._package, e);
3260
3257
  break;
3261
3258
  case dt.Footnotes:
3262
- this.footnotesPart = r = new Pr(this._package, e, this._parser);
3259
+ this.footnotesPart = r = new br(this._package, e, this._parser);
3263
3260
  break;
3264
3261
  case dt.Endnotes:
3265
- this.endnotesPart = r = new Ar(this._package, e, this._parser);
3262
+ this.endnotesPart = r = new vr(this._package, e, this._parser);
3266
3263
  break;
3267
3264
  case dt.Footer:
3268
- r = new pr(this._package, e, this._parser);
3265
+ r = new sr(this._package, e, this._parser);
3269
3266
  break;
3270
3267
  case dt.Header:
3271
- r = new fr(this._package, e, this._parser);
3268
+ r = new nr(this._package, e, this._parser);
3272
3269
  break;
3273
3270
  case dt.CoreProperties:
3274
- this.corePropsPart = r = new vr(this._package, e);
3271
+ this.corePropsPart = r = new cr(this._package, e);
3275
3272
  break;
3276
3273
  case dt.ExtendedProperties:
3277
- this.extendedPropsPart = r = new gr(this._package, e);
3274
+ this.extendedPropsPart = r = new or(this._package, e);
3278
3275
  break;
3279
3276
  case dt.CustomProperties:
3280
- r = new Br(this._package, e);
3277
+ r = new wr(this._package, e);
3281
3278
  break;
3282
3279
  case dt.Settings:
3283
- this.settingsPart = r = new Nr(this._package, e);
3280
+ this.settingsPart = r = new yr(this._package, e);
3284
3281
  break;
3285
3282
  case dt.Comments:
3286
- this.commentsPart = r = new zr(this._package, e, this._parser);
3283
+ this.commentsPart = r = new Sr(this._package, e, this._parser);
3287
3284
  break;
3288
3285
  case dt.CommentsExtended:
3289
- this.commentsExtendedPart = r = new Rr(this._package, e);
3286
+ this.commentsExtendedPart = r = new Cr(this._package, e);
3290
3287
  break;
3291
3288
  }
3292
3289
  if (r == null)
3293
3290
  return Promise.resolve(null);
3294
3291
  if (this.partsMap[e] = r, this.parts.push(r), await r.load(), r.rels?.length > 0) {
3295
- const [a] = It(r.path);
3296
- await Promise.all(r.rels.map((n) => this.loadRelationshipPart($t(n.target, a), n.type)));
3292
+ const [a] = Ft(r.path);
3293
+ await Promise.all(r.rels.map((n) => this.loadRelationshipPart(Ut(n.target, a), n.type)));
3297
3294
  }
3298
3295
  return r;
3299
3296
  }
@@ -3310,7 +3307,7 @@ class Xt {
3310
3307
  if (!r)
3311
3308
  return null;
3312
3309
  const a = await this._package.load(r, "uint8array");
3313
- return a && this.blobToURL(new Blob([Fr(a, t)]), r);
3310
+ return a && this.blobToURL(new Blob([Pr(a, t)]), r);
3314
3311
  }
3315
3312
  async loadAltChunk(e, t) {
3316
3313
  const r = this.getPathById(t ?? this.documentPart, e);
@@ -3323,49 +3320,49 @@ class Xt {
3323
3320
  const r = this.contentTypes.find((a) => a.partName === t || a.extension && t.endsWith(`.${a.extension}`));
3324
3321
  e = r ? new Blob([e], { type: r.contentType }) : e;
3325
3322
  }
3326
- return this._options.useBase64URL ? Ie(e) : URL.createObjectURL(e);
3323
+ return this._options.useBase64URL ? Ae(e) : URL.createObjectURL(e);
3327
3324
  }
3328
3325
  findPartByRelId(e, t = null) {
3329
3326
  var r = (t.rels ?? this.rels).find((n) => n.id == e);
3330
- const a = t ? It(t.path)[0] : "";
3331
- return r ? this.partsMap[$t(r.target, a)] : null;
3327
+ const a = t ? Ft(t.path)[0] : "";
3328
+ return r ? this.partsMap[Ut(r.target, a)] : null;
3332
3329
  }
3333
3330
  getPathById(e, t) {
3334
- const r = e.rels.find((n) => n.id == t), [a] = It(e.path);
3335
- return r ? $t(r.target, a) : null;
3331
+ const r = e.rels.find((n) => n.id == t), [a] = Ft(e.path);
3332
+ return r ? Ut(r.target, a) : null;
3336
3333
  }
3337
3334
  }
3338
- function Fr(l, e) {
3335
+ function Pr(c, e) {
3339
3336
  const r = e.replace(/{|}|-/g, ""), a = new Array(16);
3340
3337
  for (let n = 0; n < 16; n++)
3341
3338
  a[16 - n - 1] = parseInt(r.substring(n * 2, n * 2 + 2), 16);
3342
3339
  for (let n = 0; n < 32; n++)
3343
- l[n] = l[n] ^ a[n % 16];
3344
- return l;
3340
+ c[n] = c[n] ^ a[n % 16];
3341
+ return c;
3345
3342
  }
3346
- function Ir(l, e) {
3343
+ function Ar(c, e) {
3347
3344
  return {
3348
3345
  type: B.BookmarkStart,
3349
- id: e.attr(l, "id"),
3350
- name: e.attr(l, "name"),
3351
- colFirst: e.intAttr(l, "colFirst"),
3352
- colLast: e.intAttr(l, "colLast")
3346
+ id: e.attr(c, "id"),
3347
+ name: e.attr(c, "name"),
3348
+ colFirst: e.intAttr(c, "colFirst"),
3349
+ colLast: e.intAttr(c, "colLast")
3353
3350
  };
3354
3351
  }
3355
- function Or(l, e) {
3352
+ function Er(c, e) {
3356
3353
  return {
3357
3354
  type: B.BookmarkEnd,
3358
- id: e.attr(l, "id")
3355
+ id: e.attr(c, "id")
3359
3356
  };
3360
3357
  }
3361
- class Lr extends St {
3358
+ class Nr extends St {
3362
3359
  constructor() {
3363
3360
  super(...arguments), this.type = B.VmlElement, this.attrs = {};
3364
3361
  }
3365
3362
  }
3366
- function ve(l, e) {
3367
- var t = new Lr();
3368
- switch (l.localName) {
3363
+ function ge(c, e) {
3364
+ var t = new Nr();
3365
+ switch (c.localName) {
3369
3366
  case "rect":
3370
3367
  t.tagName = "rect", Object.assign(t.attrs, { width: "100%", height: "100%" });
3371
3368
  break;
@@ -3384,7 +3381,7 @@ function ve(l, e) {
3384
3381
  default:
3385
3382
  return null;
3386
3383
  }
3387
- for (const r of C.attrs(l))
3384
+ for (const r of C.attrs(c))
3388
3385
  switch (r.localName) {
3389
3386
  case "style":
3390
3387
  t.cssStyleText = r.value;
@@ -3393,21 +3390,21 @@ function ve(l, e) {
3393
3390
  t.attrs.fill = r.value;
3394
3391
  break;
3395
3392
  case "from":
3396
- const [a, n] = ae(r.value);
3393
+ const [a, n] = ee(r.value);
3397
3394
  Object.assign(t.attrs, { x1: a, y1: n });
3398
3395
  break;
3399
3396
  case "to":
3400
- const [o, i] = ae(r.value);
3397
+ const [o, i] = ee(r.value);
3401
3398
  Object.assign(t.attrs, { x2: o, y2: i });
3402
3399
  break;
3403
3400
  }
3404
- for (const r of C.elements(l))
3401
+ for (const r of C.elements(c))
3405
3402
  switch (r.localName) {
3406
3403
  case "stroke":
3407
- Object.assign(t.attrs, Dr(r));
3404
+ Object.assign(t.attrs, Mr(r));
3408
3405
  break;
3409
3406
  case "fill":
3410
- Object.assign(t.attrs, jr());
3407
+ Object.assign(t.attrs, Br());
3411
3408
  break;
3412
3409
  case "imagedata":
3413
3410
  t.tagName = "image", Object.assign(t.attrs, { width: "100%", height: "100%" }), t.imageHref = {
@@ -3419,51 +3416,51 @@ function ve(l, e) {
3419
3416
  t.children.push(...e.parseBodyElements(r));
3420
3417
  break;
3421
3418
  default:
3422
- const a = ve(r, e);
3419
+ const a = ge(r, e);
3423
3420
  a && t.children.push(a);
3424
3421
  break;
3425
3422
  }
3426
3423
  return t;
3427
3424
  }
3428
- function Dr(l) {
3425
+ function Mr(c) {
3429
3426
  return {
3430
- stroke: C.attr(l, "color"),
3431
- "stroke-width": C.lengthAttr(l, "weight", ft.Emu) ?? "1px"
3427
+ stroke: C.attr(c, "color"),
3428
+ "stroke-width": C.lengthAttr(c, "weight", ft.Emu) ?? "1px"
3432
3429
  };
3433
3430
  }
3434
- function jr(l) {
3431
+ function Br(c) {
3435
3432
  return {};
3436
3433
  }
3437
- function ae(l) {
3438
- return l.split(",");
3434
+ function ee(c) {
3435
+ return c.split(",");
3439
3436
  }
3440
- class Ur extends St {
3437
+ class zr extends St {
3441
3438
  constructor() {
3442
3439
  super(...arguments), this.type = B.Comment;
3443
3440
  }
3444
3441
  }
3445
- class $r extends St {
3442
+ class Rr extends St {
3446
3443
  constructor(e) {
3447
3444
  super(), this.id = e, this.type = B.CommentReference;
3448
3445
  }
3449
3446
  }
3450
- class Hr extends St {
3447
+ class Tr extends St {
3451
3448
  constructor(e) {
3452
3449
  super(), this.id = e, this.type = B.CommentRangeStart;
3453
3450
  }
3454
3451
  }
3455
- class Wr extends St {
3452
+ class Fr extends St {
3456
3453
  constructor(e) {
3457
3454
  super(), this.id = e, this.type = B.CommentRangeEnd;
3458
3455
  }
3459
3456
  }
3460
- var Ot = {
3457
+ var It = {
3461
3458
  shd: "inherit",
3462
3459
  color: "black",
3463
3460
  borderColor: "black",
3464
3461
  highlight: "transparent"
3465
3462
  };
3466
- const Zr = [], ne = {
3463
+ const Ir = [], re = {
3467
3464
  oMath: B.MmlMath,
3468
3465
  oMathPara: B.MmlMathParagraph,
3469
3466
  f: B.MmlFraction,
@@ -3490,7 +3487,7 @@ const Zr = [], ne = {
3490
3487
  bar: B.MmlBar,
3491
3488
  groupChr: B.MmlGroupChar
3492
3489
  };
3493
- class Vr {
3490
+ class Or {
3494
3491
  constructor(e) {
3495
3492
  this.options = {
3496
3493
  ignoreWidth: !1,
@@ -3509,7 +3506,7 @@ class Vr {
3509
3506
  parseComments(e) {
3510
3507
  var t = [];
3511
3508
  for (let r of C.elements(e, "comment")) {
3512
- const a = new Ur();
3509
+ const a = new zr();
3513
3510
  a.id = C.attr(r, "id"), a.author = C.attr(r, "author"), a.initials = C.attr(r, "initials"), a.date = C.attr(r, "date"), a.children = this.parseBodyElements(r), t.push(a);
3514
3511
  }
3515
3512
  return t;
@@ -3519,7 +3516,7 @@ class Vr {
3519
3516
  return {
3520
3517
  type: B.Document,
3521
3518
  children: this.parseBodyElements(t),
3522
- props: a ? ue(a, C) : {},
3519
+ props: a ? ce(a, C) : {},
3523
3520
  cssStyle: r ? this.parseBackground(r) : {}
3524
3521
  };
3525
3522
  }
@@ -3628,13 +3625,13 @@ class Vr {
3628
3625
  t.styles.push({
3629
3626
  target: "p",
3630
3627
  values: this.parseDefaultProperties(r, {})
3631
- }), t.paragraphProps = de(r, C);
3628
+ }), t.paragraphProps = he(r, C);
3632
3629
  break;
3633
3630
  case "rPr":
3634
3631
  t.styles.push({
3635
3632
  target: "span",
3636
3633
  values: this.parseDefaultProperties(r, {})
3637
- }), t.runProps = Gt(r, C);
3634
+ }), t.runProps = Vt(r, C);
3638
3635
  break;
3639
3636
  case "tblPr":
3640
3637
  case "tcPr":
@@ -3823,16 +3820,16 @@ class Vr {
3823
3820
  t.children.push(this.parseSmartTag(r, t));
3824
3821
  break;
3825
3822
  case "bookmarkStart":
3826
- t.children.push(Ir(r, C));
3823
+ t.children.push(Ar(r, C));
3827
3824
  break;
3828
3825
  case "bookmarkEnd":
3829
- t.children.push(Or(r, C));
3826
+ t.children.push(Er(r, C));
3830
3827
  break;
3831
3828
  case "commentRangeStart":
3832
- t.children.push(new Hr(C.attr(r, "id")));
3829
+ t.children.push(new Tr(C.attr(r, "id")));
3833
3830
  break;
3834
3831
  case "commentRangeEnd":
3835
- t.children.push(new Wr(C.attr(r, "id")));
3832
+ t.children.push(new Fr(C.attr(r, "id")));
3836
3833
  break;
3837
3834
  case "oMath":
3838
3835
  case "oMathPara":
@@ -3852,7 +3849,7 @@ class Vr {
3852
3849
  }
3853
3850
  parseParagraphProperties(e, t) {
3854
3851
  this.parseDefaultProperties(e, t.cssStyle = {}, null, (r) => {
3855
- if (fe(r, t, C))
3852
+ if (ue(r, t, C))
3856
3853
  return !0;
3857
3854
  switch (r.localName) {
3858
3855
  case "pStyle":
@@ -3914,7 +3911,7 @@ class Vr {
3914
3911
  });
3915
3912
  break;
3916
3913
  case "commentReference":
3917
- r.children.push(new $r(C.attr(a, "id")));
3914
+ r.children.push(new Rr(C.attr(a, "id")));
3918
3915
  break;
3919
3916
  case "fldSimple":
3920
3917
  r.children.push({
@@ -3956,7 +3953,7 @@ class Vr {
3956
3953
  case "sym":
3957
3954
  r.children.push({
3958
3955
  type: B.Symbol,
3959
- font: Wt(C.attr(a, "font")),
3956
+ font: Ht(C.attr(a, "font")),
3960
3957
  char: C.hexAttr(a, "char")
3961
3958
  });
3962
3959
  break;
@@ -3989,9 +3986,9 @@ class Vr {
3989
3986
  return r;
3990
3987
  }
3991
3988
  parseMathElement(e) {
3992
- const t = `${e.localName}Pr`, r = { type: ne[e.localName], children: [] };
3989
+ const t = `${e.localName}Pr`, r = { type: re[e.localName], children: [] };
3993
3990
  for (const n of C.elements(e))
3994
- if (ne[n.localName])
3991
+ if (re[n.localName])
3995
3992
  r.children.push(this.parseMathElement(n));
3996
3993
  else if (n.localName == "r") {
3997
3994
  var a = this.parseRun(n);
@@ -4042,7 +4039,7 @@ class Vr {
4042
4039
  parseVmlPicture(e) {
4043
4040
  const t = { type: B.VmlPicture, children: [] };
4044
4041
  for (const r of C.elements(e)) {
4045
- const a = ve(r, this);
4042
+ const a = ge(r, this);
4046
4043
  a && t.children.push(a);
4047
4044
  }
4048
4045
  return t;
@@ -4053,7 +4050,7 @@ class Vr {
4053
4050
  var t = C.element(e, "Choice");
4054
4051
  if (t) {
4055
4052
  var r = C.attr(t, "Requires"), a = e.lookupNamespaceURI(r);
4056
- if (Zr.includes(a))
4053
+ if (Ir.includes(a))
4057
4054
  return t.firstElementChild;
4058
4055
  }
4059
4056
  return C.element(e, "Fallback")?.firstElementChild;
@@ -4083,8 +4080,8 @@ class Vr {
4083
4080
  case "positionV":
4084
4081
  if (!n) {
4085
4082
  let y = h.localName == "positionH" ? o : i;
4086
- var _ = C.element(h, "align"), w = C.element(h, "posOffset");
4087
- y.relative = C.attr(h, "relativeFrom") ?? y.relative, _ && (y.align = _.textContent), w && (y.offset = le(w.textContent, ft.Emu));
4083
+ var _ = C.element(h, "align"), S = C.element(h, "posOffset");
4084
+ y.relative = C.attr(h, "relativeFrom") ?? y.relative, _ && (y.align = _.textContent), S && (y.offset = ie(S.textContent, ft.Emu));
4088
4085
  }
4089
4086
  break;
4090
4087
  case "wrapTopAndBottom":
@@ -4094,8 +4091,8 @@ class Vr {
4094
4091
  a = "wrapNone";
4095
4092
  break;
4096
4093
  case "graphic":
4097
- var b = this.parseGraphic(h);
4098
- b && t.children.push(b);
4094
+ var v = this.parseGraphic(h);
4095
+ v && t.children.push(v);
4099
4096
  break;
4100
4097
  }
4101
4098
  return a == "wrapTopAndBottom" ? (t.cssStyle.display = "block", o.align && (t.cssStyle["text-align"] = o.align, t.cssStyle.width = "100%")) : a == "wrapNone" ? (t.cssStyle.display = "block", t.cssStyle.position = "relative", t.cssStyle.width = "0px", t.cssStyle.height = "0px", o.offset && (t.cssStyle.left = o.offset), i.offset && (t.cssStyle.top = i.offset)) : r && (o.align == "left" || o.align == "right") && (t.cssStyle.float = o.align), t;
@@ -4292,16 +4289,16 @@ class Vr {
4292
4289
  t["vertical-align"] = ot.valueOfTextAlignment(n);
4293
4290
  break;
4294
4291
  case "color":
4295
- t.color = Ct.colorAttr(n, "val", null, Ot.color);
4292
+ t.color = Ct.colorAttr(n, "val", null, It.color);
4296
4293
  break;
4297
4294
  case "sz":
4298
4295
  t["font-size"] = t["min-height"] = C.lengthAttr(n, "val", ft.FontSize);
4299
4296
  break;
4300
4297
  case "shd":
4301
- t["background-color"] = Ct.colorAttr(n, "fill", null, Ot.shd);
4298
+ t["background-color"] = Ct.colorAttr(n, "fill", null, It.shd);
4302
4299
  break;
4303
4300
  case "highlight":
4304
- t["background-color"] = Ct.colorAttr(n, "val", null, Ot.highlight);
4301
+ t["background-color"] = Ct.colorAttr(n, "val", null, It.highlight);
4305
4302
  break;
4306
4303
  case "vertAlign":
4307
4304
  break;
@@ -4454,7 +4451,7 @@ class Vr {
4454
4451
  }
4455
4452
  }
4456
4453
  parseFont(e, t) {
4457
- var r = C.attr(e, "ascii"), a = ot.themeValue(e, "asciiTheme"), n = C.attr(e, "eastAsia"), o = [r, a, n].filter((i) => i).map((i) => Wt(i));
4454
+ var r = C.attr(e, "ascii"), a = ot.themeValue(e, "asciiTheme"), n = C.attr(e, "eastAsia"), o = [r, a, n].filter((i) => i).map((i) => Ht(i));
4458
4455
  o.length > 0 && (t["font-family"] = [...new Set(o)].join(", "));
4459
4456
  }
4460
4457
  parseIndentation(e, t) {
@@ -4516,12 +4513,12 @@ class Vr {
4516
4513
  }
4517
4514
  }
4518
4515
  }
4519
- const Gr = ["black", "blue", "cyan", "darkBlue", "darkCyan", "darkGray", "darkGreen", "darkMagenta", "darkRed", "darkYellow", "green", "lightGray", "magenta", "none", "red", "white", "yellow"];
4516
+ const Lr = ["black", "blue", "cyan", "darkBlue", "darkCyan", "darkGray", "darkGreen", "darkMagenta", "darkRed", "darkYellow", "green", "lightGray", "magenta", "none", "red", "white", "yellow"];
4520
4517
  class Ct {
4521
4518
  static colorAttr(e, t, r = null, a = "black") {
4522
4519
  var n = C.attr(e, t);
4523
4520
  if (n)
4524
- return n == "auto" ? a : Gr.includes(n) ? n : `#${n}`;
4521
+ return n == "auto" ? a : Lr.includes(n) ? n : `#${n}`;
4525
4522
  var o = C.attr(e, "themeColor");
4526
4523
  return o ? `var(--docx-${o}-color)` : r;
4527
4524
  }
@@ -4552,7 +4549,7 @@ class ot {
4552
4549
  if (t == "none")
4553
4550
  return "none";
4554
4551
  var r = Ct.colorAttr(e, "color"), a = C.lengthAttr(e, "sz", ft.Border);
4555
- return `${a} ${t} ${r == "auto" ? Ot.borderColor : r}`;
4552
+ return `${a} ${t} ${r == "auto" ? It.borderColor : r}`;
4556
4553
  }
4557
4554
  static parseBorderType(e) {
4558
4555
  switch (e) {
@@ -4700,78 +4697,78 @@ class ot {
4700
4697
  return (C.boolAttr(e, "firstRow") || t & 32) && (r += " first-row"), (C.boolAttr(e, "lastRow") || t & 64) && (r += " last-row"), (C.boolAttr(e, "firstColumn") || t & 128) && (r += " first-col"), (C.boolAttr(e, "lastColumn") || t & 256) && (r += " last-col"), (C.boolAttr(e, "noHBand") || t & 512) && (r += " no-hband"), (C.boolAttr(e, "noVBand") || t & 1024) && (r += " no-vband"), r.trim();
4701
4698
  }
4702
4699
  }
4703
- const se = { pos: 0, leader: "none", style: "left" }, Xr = 50;
4704
- function Kr(l = document.body) {
4700
+ const ae = { pos: 0, leader: "none", style: "left" }, Dr = 50;
4701
+ function jr(c = document.body) {
4705
4702
  const e = document.createElement("div");
4706
- e.style.width = "100pt", l.appendChild(e);
4703
+ e.style.width = "100pt", c.appendChild(e);
4707
4704
  const t = 100 / e.offsetWidth;
4708
- return l.removeChild(e), t;
4705
+ return c.removeChild(e), t;
4709
4706
  }
4710
- function Yr(l, e, t, r = 72 / 96) {
4711
- const a = l.closest("p"), n = l.getBoundingClientRect(), o = a.getBoundingClientRect(), i = getComputedStyle(a), h = e?.length > 0 ? e.map((v) => ({
4712
- pos: ie(v.position),
4713
- leader: v.leader,
4714
- style: v.style
4715
- })).sort((v, x) => v.pos - x.pos) : [se], _ = h[h.length - 1], w = o.width * r, b = ie(t);
4716
- let y = _.pos + b;
4717
- if (y < w)
4718
- for (; y < w && h.length < Xr; y += b)
4719
- h.push({ ...se, pos: y });
4720
- const d = parseFloat(i.marginLeft), k = o.left + d, u = (n.left - k) * r, m = h.find((v) => v.style != "clear" && v.pos > u);
4707
+ function Ur(c, e, t, r = 72 / 96) {
4708
+ const a = c.closest("p"), n = c.getBoundingClientRect(), o = a.getBoundingClientRect(), i = getComputedStyle(a), h = e?.length > 0 ? e.map((b) => ({
4709
+ pos: ne(b.position),
4710
+ leader: b.leader,
4711
+ style: b.style
4712
+ })).sort((b, x) => b.pos - x.pos) : [ae], _ = h[h.length - 1], S = o.width * r, v = ne(t);
4713
+ let y = _.pos + v;
4714
+ if (y < S)
4715
+ for (; y < S && h.length < Dr; y += v)
4716
+ h.push({ ...ae, pos: y });
4717
+ const d = parseFloat(i.marginLeft), k = o.left + d, u = (n.left - k) * r, m = h.find((b) => b.style != "clear" && b.pos > u);
4721
4718
  if (m == null)
4722
4719
  return;
4723
4720
  let f = 1;
4724
4721
  if (m.style == "right" || m.style == "center") {
4725
- const v = Array.from(a.querySelectorAll(`.${l.className}`)), x = v.indexOf(l) + 1, E = document.createRange();
4726
- E.setStart(l, 1), x < v.length ? E.setEndBefore(v[x]) : E.setEndAfter(a);
4722
+ const b = Array.from(a.querySelectorAll(`.${c.className}`)), x = b.indexOf(c) + 1, E = document.createRange();
4723
+ E.setStart(c, 1), x < b.length ? E.setEndBefore(b[x]) : E.setEndAfter(a);
4727
4724
  const A = m.style == "center" ? 0.5 : 1, L = E.getBoundingClientRect(), F = L.left + A * L.width - (o.left - d);
4728
4725
  f = m.pos - F * r;
4729
4726
  } else
4730
4727
  f = m.pos - u;
4731
- switch (l.innerHTML = "&nbsp;", l.style.textDecoration = "inherit", l.style.wordSpacing = `${f.toFixed(0)}pt`, m.leader) {
4728
+ switch (c.innerHTML = "&nbsp;", c.style.textDecoration = "inherit", c.style.wordSpacing = `${f.toFixed(0)}pt`, m.leader) {
4732
4729
  case "dot":
4733
4730
  case "middleDot":
4734
- l.style.textDecoration = "underline", l.style.textDecorationStyle = "dotted";
4731
+ c.style.textDecoration = "underline", c.style.textDecorationStyle = "dotted";
4735
4732
  break;
4736
4733
  case "hyphen":
4737
4734
  case "heavy":
4738
4735
  case "underscore":
4739
- l.style.textDecoration = "underline";
4736
+ c.style.textDecoration = "underline";
4740
4737
  break;
4741
4738
  }
4742
4739
  }
4743
- function ie(l) {
4744
- return parseFloat(l);
4740
+ function ne(c) {
4741
+ return parseFloat(c);
4745
4742
  }
4746
4743
  var it;
4747
- (function(l) {
4748
- l.html = "http://www.w3.org/1999/xhtml", l.svg = "http://www.w3.org/2000/svg", l.mathML = "http://www.w3.org/1998/Math/MathML";
4744
+ (function(c) {
4745
+ c.html = "http://www.w3.org/1999/xhtml", c.svg = "http://www.w3.org/2000/svg", c.mathML = "http://www.w3.org/1998/Math/MathML";
4749
4746
  })(it || (it = {}));
4750
- function Dt(l) {
4751
- if (Zt(l))
4752
- return document.createTextNode(l);
4753
- if (l instanceof Node)
4754
- return l;
4755
- const { ns: e, tagName: t, className: r, style: a, children: n, ...o } = l;
4747
+ function Lt(c) {
4748
+ if (Wt(c))
4749
+ return document.createTextNode(c);
4750
+ if (c instanceof Node)
4751
+ return c;
4752
+ const { ns: e, tagName: t, className: r, style: a, children: n, ...o } = c;
4756
4753
  if (t === "#fragment")
4757
4754
  return document.createDocumentFragment();
4758
4755
  if (t === "#comment")
4759
4756
  return document.createComment(n[0]);
4760
4757
  const i = e ? document.createElementNS(e, t) : document.createElement(t);
4761
- if (r && i.setAttribute("class", r), a && (Zt(a) ? i.setAttribute("style", a) : Object.assign(i.style, a)), o)
4758
+ if (r && i.setAttribute("class", r), a && (Wt(a) ? i.setAttribute("style", a) : Object.assign(i.style, a)), o)
4762
4759
  for (const [h, _] of Object.entries(o))
4763
4760
  _ !== void 0 && (i[h] = _);
4764
- return n && n.forEach((h) => i.appendChild(Dt(h))), i;
4761
+ return n && n.forEach((h) => i.appendChild(Lt(h))), i;
4765
4762
  }
4766
- function qr(...l) {
4767
- return l.filter(Boolean).join(" ");
4763
+ function $r(...c) {
4764
+ return c.filter(Boolean).join(" ");
4768
4765
  }
4769
- class Jr {
4766
+ class Hr {
4770
4767
  constructor() {
4771
- this.className = "docx", this.styleMap = {}, this.currentPart = null, this.tableVerticalMerges = [], this.currentVerticalMerge = null, this.tableCellPositions = [], this.currentCellPosition = null, this.footnoteMap = {}, this.endnoteMap = {}, this.currentEndnoteIds = [], this.usedHederFooterParts = [], this.currentTabs = [], this.commentMap = {}, this.tasks = [], this.postRenderTasks = [], this.h = Dt;
4768
+ this.className = "docx", this.styleMap = {}, this.currentPart = null, this.tableVerticalMerges = [], this.currentVerticalMerge = null, this.tableCellPositions = [], this.currentCellPosition = null, this.footnoteMap = {}, this.endnoteMap = {}, this.currentEndnoteIds = [], this.usedHederFooterParts = [], this.currentTabs = [], this.commentMap = {}, this.tasks = [], this.postRenderTasks = [], this.h = Lt;
4772
4769
  }
4773
4770
  async render(e, t) {
4774
- this.document = e, this.options = t, this.className = t.className, this.rootSelector = t.inWrapper ? `.${this.className}-wrapper` : ":root", this.h = t.h ?? Dt, this.styleMap = null, this.tasks = [], this.options.renderComments && globalThis.Highlight && (this.commentHighlight = new Highlight());
4771
+ this.document = e, this.options = t, this.className = t.className, this.rootSelector = t.inWrapper ? `.${this.className}-wrapper` : ":root", this.h = t.h ?? Lt, this.styleMap = null, this.tasks = [], this.options.renderComments && globalThis.Highlight && (this.commentHighlight = new Highlight());
4775
4772
  const r = [...this.renderDefaultStyle()];
4776
4773
  e.themePart && r.push(...this.renderTheme(e.themePart)), e.stylesPart != null && (this.styleMap = this.processStyles(e.stylesPart.styles), r.push(...this.renderStyles(e.stylesPart.styles))), e.numberingPart && (this.prodessNumberings(e.numberingPart.domNumberings), r.push(...await this.renderNumbering(e.numberingPart.domNumberings))), e.footnotesPart && (this.footnoteMap = wt(e.footnotesPart.notes, (n) => n.id)), e.endnotesPart && (this.endnoteMap = wt(e.endnotesPart.notes, (n) => n.id)), e.settingsPart && (this.defaultTabSize = e.settingsPart.settings?.defaultTabStop), !t.ignoreFonts && e.fontTablePart && r.push(...await this.renderFontTable(e.fontTablePart));
4777
4774
  var a = this.renderSections(e.documentPart.body);
@@ -4796,7 +4793,7 @@ class Jr {
4796
4793
  for (let a of r.embedFontRefs)
4797
4794
  try {
4798
4795
  const n = await this.document.loadFont(a.id, a.key), o = {
4799
- "font-family": Wt(r.name),
4796
+ "font-family": Ht(r.name),
4800
4797
  src: `url(${n})`
4801
4798
  };
4802
4799
  (a.type == "bold" || a.type == "boldItalic") && (o["font-weight"] = "bold"), (a.type == "italic" || a.type == "boldItalic") && (o["font-style"] = "italic"), t.push(this.h({ tagName: "#comment", children: [`docxjs ${r.name} font`] })), t.push(this.h({ tagName: "style", children: [this.styleToString("@font-face", o)] }));
@@ -4806,14 +4803,14 @@ class Jr {
4806
4803
  return t;
4807
4804
  }
4808
4805
  processStyleName(e) {
4809
- return e ? `${this.className}_${Fe(e)}` : this.className;
4806
+ return e ? `${this.className}_${Pe(e)}` : this.className;
4810
4807
  }
4811
4808
  processStyles(e) {
4812
4809
  const t = wt(e.filter((a) => a.id != null), (a) => a.id);
4813
4810
  for (const a of e.filter((n) => n.basedOn)) {
4814
4811
  var r = t[a.basedOn];
4815
4812
  if (r) {
4816
- a.paragraphProps = Lt(a.paragraphProps, r.paragraphProps), a.runProps = Lt(a.runProps, r.runProps);
4813
+ a.paragraphProps = Ot(a.paragraphProps, r.paragraphProps), a.runProps = Ot(a.runProps, r.runProps);
4817
4814
  for (const n of r.styles) {
4818
4815
  const o = a.styles.find((i) => i.target == n.target);
4819
4816
  o ? this.copyStyleProperties(n.values, o.values) : a.styles.push({ ...n, values: { ...n.values } });
@@ -4872,22 +4869,22 @@ class Jr {
4872
4869
  let n = null;
4873
4870
  for (let i = 0, h = a.length; i < h; i++) {
4874
4871
  this.currentFootnoteIds = [];
4875
- let w = a[i][0].sectProps;
4876
- const b = this.createPageElement(this.className, w, e.cssStyle);
4877
- this.options.renderHeaders && this.renderHeaderFooter(w.headerRefs, w, t.length, n != w, b);
4872
+ let S = a[i][0].sectProps;
4873
+ const v = this.createPageElement(this.className, S, e.cssStyle);
4874
+ this.options.renderHeaders && this.renderHeaderFooter(S.headerRefs, S, t.length, n != S, v);
4878
4875
  for (const y of a[i]) {
4879
4876
  var o = this.createSectionContent(y.sectProps);
4880
- this.renderElements(y.elements, o), b.appendChild(o), w = y.sectProps;
4877
+ this.renderElements(y.elements, o), v.appendChild(o), S = y.sectProps;
4881
4878
  }
4882
4879
  if (this.options.renderFootnotes) {
4883
4880
  const y = this.renderNotes(this.currentFootnoteIds, this.footnoteMap);
4884
- y && b.appendChild(y);
4881
+ y && v.appendChild(y);
4885
4882
  }
4886
4883
  if (this.options.renderEndnotes && i == h - 1) {
4887
4884
  const y = this.renderNotes(this.currentEndnoteIds, this.endnoteMap);
4888
- y && b.appendChild(y);
4885
+ y && v.appendChild(y);
4889
4886
  }
4890
- this.options.renderFooters && this.renderHeaderFooter(w.footerRefs, w, t.length, n != w, b), t.push(b), n = w;
4887
+ this.options.renderFooters && this.renderHeaderFooter(S.footerRefs, S, t.length, n != S, v), t.push(v), n = S;
4891
4888
  }
4892
4889
  return t;
4893
4890
  }
@@ -4909,24 +4906,24 @@ class Jr {
4909
4906
  }
4910
4907
  splitBySection(e, t) {
4911
4908
  var r = { sectProps: null, elements: [], pageBreak: !1 }, a = [r];
4912
- for (let b of e)
4913
- if (b.type == B.Paragraph && this.findStyle(b.styleName)?.paragraphProps?.pageBreakBefore && (r.sectProps = n, r.pageBreak = !0, r = { sectProps: null, elements: [], pageBreak: !1 }, a.push(r)), r.elements.push(b), b.type == B.Paragraph) {
4914
- const y = b;
4909
+ for (let v of e)
4910
+ if (v.type == B.Paragraph && this.findStyle(v.styleName)?.paragraphProps?.pageBreakBefore && (r.sectProps = n, r.pageBreak = !0, r = { sectProps: null, elements: [], pageBreak: !1 }, a.push(r)), r.elements.push(v), v.type == B.Paragraph) {
4911
+ const y = v;
4915
4912
  var n = y.sectionProps, o = -1, i = -1;
4916
4913
  if (this.options.breakPages && y.children && (o = y.children.findIndex((d) => (i = d.children?.findIndex(this.isPageBreakElement.bind(this)) ?? -1, i != -1))), (n || o != -1) && (r.sectProps = n, r.pageBreak = o != -1, r = { sectProps: null, elements: [], pageBreak: !1 }, a.push(r)), o != -1) {
4917
4914
  let d = y.children[o], k = i < d.children.length - 1;
4918
4915
  if (o < y.children.length - 1 || k) {
4919
- var h = b.children, _ = { ...b, children: h.slice(o) };
4920
- if (b.children = h.slice(0, o), r.elements.push(_), k) {
4916
+ var h = v.children, _ = { ...v, children: h.slice(o) };
4917
+ if (v.children = h.slice(0, o), r.elements.push(_), k) {
4921
4918
  let u = d.children, m = { ...d, children: u.slice(0, i) };
4922
- b.children.push(m), d.children = u.slice(i);
4919
+ v.children.push(m), d.children = u.slice(i);
4923
4920
  }
4924
4921
  }
4925
4922
  }
4926
4923
  }
4927
- let w = null;
4928
- for (let b = a.length - 1; b >= 0; b--)
4929
- a[b].sectProps == null ? a[b].sectProps = w ?? t : w = a[b].sectProps;
4924
+ let S = null;
4925
+ for (let v = a.length - 1; v >= 0; v--)
4926
+ a[v].sectProps == null ? a[v].sectProps = S ?? t : S = a[v].sectProps;
4930
4927
  return a;
4931
4928
  }
4932
4929
  groupByPageBreaks(e) {
@@ -5151,7 +5148,7 @@ section.${e}>footer { z-index: 1; }
5151
5148
  if (e == null)
5152
5149
  return null;
5153
5150
  var r = e.flatMap((a) => this.renderElement(a)).filter((a) => a != null);
5154
- return t && r.forEach((a) => t.appendChild(Zt(a) ? document.createTextNode(a) : a)), r;
5151
+ return t && r.forEach((a) => t.appendChild(Wt(a) ? document.createTextNode(a) : a)), r;
5155
5152
  }
5156
5153
  renderContainer(e, t, r) {
5157
5154
  return this.h({ tagName: t, children: this.renderElements(e.children), ...r });
@@ -5267,7 +5264,7 @@ section.${e}>footer { z-index: 1; }
5267
5264
  var t = this.h({ tagName: "span", children: [" "] });
5268
5265
  if (this.options.experimental) {
5269
5266
  t.className = this.tabStopClass();
5270
- var r = Qr(e, B.Paragraph)?.tabs;
5267
+ var r = Wr(e, B.Paragraph)?.tabs;
5271
5268
  this.currentTabs.push({ stops: r, span: t });
5272
5269
  }
5273
5270
  return t;
@@ -5368,7 +5365,7 @@ section.${e}>footer { z-index: 1; }
5368
5365
  return this.toHTML(e, it.mathML, "mtable", t);
5369
5366
  }
5370
5367
  toH(e, t, r, a = null) {
5371
- const { $lang: n, ...o } = e.cssStyle ?? {}, i = qr(e.className, e.styleName && this.processStyleName(e.styleName));
5368
+ const { $lang: n, ...o } = e.cssStyle ?? {}, i = $r(e.className, e.styleName && this.processStyleName(e.styleName));
5372
5369
  return { ns: t, tagName: r, className: i, lang: n, style: o, children: a ?? this.renderElements(e.children) };
5373
5370
  }
5374
5371
  toHTML(e, t, r, a = null) {
@@ -5447,9 +5444,9 @@ section.${e}>footer { z-index: 1; }
5447
5444
  }
5448
5445
  refreshTabStops() {
5449
5446
  this.options.experimental && setTimeout(() => {
5450
- const e = Kr();
5447
+ const e = jr();
5451
5448
  for (let t of this.currentTabs)
5452
- Yr(t.span, t.stops, this.defaultTabSize, e);
5449
+ Ur(t.span, t.stops, this.defaultTabSize, e);
5453
5450
  }, 500);
5454
5451
  }
5455
5452
  createElementNS(e, t, r, a) {
@@ -5468,12 +5465,12 @@ section.${e}>footer { z-index: 1; }
5468
5465
  this.postRenderTasks.push(e);
5469
5466
  }
5470
5467
  }
5471
- function Qr(l, e) {
5472
- for (var t = l.parent; t != null && t.type != e; )
5468
+ function Wr(c, e) {
5469
+ for (var t = c.parent; t != null && t.type != e; )
5473
5470
  t = t.parent;
5474
5471
  return t;
5475
5472
  }
5476
- const ke = {
5473
+ const be = {
5477
5474
  ignoreHeight: !1,
5478
5475
  ignoreWidth: !1,
5479
5476
  ignoreFonts: !1,
@@ -5493,83 +5490,23 @@ const ke = {
5493
5490
  renderChanges: !1,
5494
5491
  renderComments: !1,
5495
5492
  renderAltChunks: !0,
5496
- h: Dt
5493
+ h: Lt
5497
5494
  };
5498
- function ta(l, e) {
5499
- const t = { ...ke, ...e };
5500
- return Xt.load(l, new Vr(t), t);
5495
+ function Zr(c, e) {
5496
+ const t = { ...be, ...e };
5497
+ return Gt.load(c, new Or(t), t);
5501
5498
  }
5502
- async function ea(l, e) {
5503
- const t = { ...ke, ...e };
5504
- return await new Jr().render(l, t);
5499
+ async function Vr(c, e) {
5500
+ const t = { ...be, ...e };
5501
+ return await new Hr().render(c, t);
5505
5502
  }
5506
- async function ra(l, e, t, r) {
5507
- const a = await ta(l, r), n = await ea(a, r);
5503
+ async function Kr(c, e, t, r) {
5504
+ const a = await Zr(c, r), n = await Vr(a, r);
5508
5505
  t ?? (t = e), t.innerHTML = "", e.innerHTML = "";
5509
5506
  for (let o of n)
5510
5507
  (o.nodeName === "STYLE" ? t : e).appendChild(o);
5511
5508
  return a;
5512
5509
  }
5513
- const la = ({
5514
- url: l,
5515
- filename: e,
5516
- withCredentials: t = !0,
5517
- actions: r
5518
- }) => {
5519
- const a = Ae(), n = Ne(), o = Se(null), [i, h] = Ce("loading");
5520
- return xe(() => {
5521
- const _ = o.current;
5522
- if (!_) return;
5523
- let w = !1;
5524
- return h("loading"), fetch(l, { credentials: t ? "include" : "same-origin" }).then((b) => {
5525
- if (!b.ok) throw new Error(`${b.status}`);
5526
- return b.blob();
5527
- }).then((b) => {
5528
- if (!w)
5529
- return ra(b, _, void 0, {
5530
- inWrapper: !0,
5531
- breakPages: !0
5532
- }).then(() => {
5533
- w || h("ready");
5534
- });
5535
- }).catch(() => {
5536
- w || h("failed");
5537
- }), () => {
5538
- w = !0;
5539
- };
5540
- }, [l, t]), /* @__PURE__ */ qt("div", { className: "flex h-full w-full flex-col bg-f1-background", children: [
5541
- /* @__PURE__ */ zt(
5542
- Me,
5543
- {
5544
- url: l,
5545
- filename: e,
5546
- withCredentials: t,
5547
- actions: r,
5548
- zoom: n
5549
- }
5550
- ),
5551
- /* @__PURE__ */ qt("div", { className: "relative min-h-0 grow overflow-auto bg-f1-background-secondary", children: [
5552
- i === "loading" && /* @__PURE__ */ zt(
5553
- Ee,
5554
- {
5555
- role: "status",
5556
- "aria-busy": !0,
5557
- "aria-label": a.pdfViewer.loading,
5558
- className: "absolute inset-0 h-full w-full rounded-none"
5559
- }
5560
- ),
5561
- i === "failed" && /* @__PURE__ */ zt("div", { className: "flex h-full w-full items-center justify-center bg-f1-background text-f1-foreground-secondary", children: a.pdfViewer.previewFailed }),
5562
- /* @__PURE__ */ zt(
5563
- "div",
5564
- {
5565
- ref: o,
5566
- className: i === "failed" ? "hidden" : void 0,
5567
- style: { zoom: n.scale }
5568
- }
5569
- )
5570
- ] })
5571
- ] });
5572
- };
5573
5510
  export {
5574
- la as default
5511
+ Kr as r
5575
5512
  };