@eternalheart/react-file-preview 1.4.0 → 1.5.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.
- package/README.md +437 -60
- package/README.zh-CN.md +437 -60
- package/lib/FilePreviewContent.d.ts +1 -0
- package/lib/FilePreviewContent.d.ts.map +1 -1
- package/lib/FilePreviewEmbed.d.ts +2 -0
- package/lib/FilePreviewEmbed.d.ts.map +1 -1
- package/lib/FilePreviewModal.d.ts +2 -0
- package/lib/FilePreviewModal.d.ts.map +1 -1
- package/lib/chunks/index-2sX2d4iv.mjs +291 -0
- package/lib/chunks/index-2sX2d4iv.mjs.map +1 -0
- package/lib/chunks/index-Bdj8_B80.mjs +120 -0
- package/lib/chunks/index-Bdj8_B80.mjs.map +1 -0
- package/lib/chunks/index-CCcZzLUM.mjs +107 -0
- package/lib/chunks/index-CCcZzLUM.mjs.map +1 -0
- package/lib/chunks/{index-CzM2mxrD.mjs → index-CKdQL1Bk.mjs} +130 -128
- package/lib/chunks/{index-CzM2mxrD.mjs.map → index-CKdQL1Bk.mjs.map} +1 -1
- package/lib/chunks/index-CQYrhe7Z.mjs +275 -0
- package/lib/chunks/index-CQYrhe7Z.mjs.map +1 -0
- package/lib/chunks/{index-DuP0Tlpo.mjs → index-CRZqNMQ7.mjs} +43 -41
- package/lib/chunks/index-CRZqNMQ7.mjs.map +1 -0
- package/lib/chunks/{index-Cp68OevR.mjs → index-CTghYlSh.mjs} +1299 -1297
- package/lib/chunks/{index-Cp68OevR.mjs.map → index-CTghYlSh.mjs.map} +1 -1
- package/lib/chunks/index-CuTz7dbd.mjs +313 -0
- package/lib/chunks/index-CuTz7dbd.mjs.map +1 -0
- package/lib/chunks/index-CuWzRQZw.mjs +116 -0
- package/lib/chunks/index-CuWzRQZw.mjs.map +1 -0
- package/lib/chunks/index-Cz23v-TW.mjs +2409 -0
- package/lib/chunks/index-Cz23v-TW.mjs.map +1 -0
- package/lib/chunks/{index-kALp0tqz.mjs → index-D-Is8qvU.mjs} +22 -20
- package/lib/chunks/index-D-Is8qvU.mjs.map +1 -0
- package/lib/chunks/index-Da3FN2-3.mjs +359 -0
- package/lib/chunks/index-Da3FN2-3.mjs.map +1 -0
- package/lib/chunks/index-Dc6q1OKl.mjs +78 -0
- package/lib/chunks/index-Dc6q1OKl.mjs.map +1 -0
- package/lib/chunks/{index-10O8tfTH.mjs → index-DoGKcq9y.mjs} +194 -192
- package/lib/chunks/index-DoGKcq9y.mjs.map +1 -0
- package/lib/chunks/{index-C_BJatqr.mjs → index-DzCLf1Db.mjs} +42 -40
- package/lib/chunks/index-DzCLf1Db.mjs.map +1 -0
- package/lib/chunks/index-FomaQSaL.mjs +329 -0
- package/lib/chunks/index-FomaQSaL.mjs.map +1 -0
- package/lib/chunks/{index-DaAXRBWL.mjs → index-OXjOFggq.mjs} +864 -862
- package/lib/chunks/{index-DaAXRBWL.mjs.map → index-OXjOFggq.mjs.map} +1 -1
- package/lib/chunks/index-WLepq2g2.mjs +200 -0
- package/lib/chunks/index-WLepq2g2.mjs.map +1 -0
- package/lib/chunks/{index-DoFsoBKL.mjs → index-_B5marES.mjs} +27 -25
- package/lib/chunks/index-_B5marES.mjs.map +1 -0
- package/lib/chunks/useShikiHighlight-Bbs8Fbqs.mjs +36 -0
- package/lib/chunks/useShikiHighlight-Bbs8Fbqs.mjs.map +1 -0
- package/lib/components/preview/FilePreviewToolbar.d.ts +1 -0
- package/lib/components/preview/FilePreviewToolbar.d.ts.map +1 -1
- package/lib/components/preview/ToolbarButton.d.ts +3 -1
- package/lib/components/preview/ToolbarButton.d.ts.map +1 -1
- package/lib/hooks/index.d.ts +0 -6
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/useShikiHighlight.d.ts +3 -1
- package/lib/hooks/useShikiHighlight.d.ts.map +1 -1
- package/lib/index.cjs +32 -30
- package/lib/index.cjs.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.mjs +1 -1
- package/lib/renderers/Audio/index.d.ts +2 -1
- package/lib/renderers/Audio/index.d.ts.map +1 -1
- package/lib/renderers/Csv/index.d.ts +2 -1
- package/lib/renderers/Csv/index.d.ts.map +1 -1
- package/lib/renderers/Docx/index.d.ts +2 -1
- package/lib/renderers/Docx/index.d.ts.map +1 -1
- package/lib/renderers/Epub/index.d.ts +2 -3
- package/lib/renderers/Epub/index.d.ts.map +1 -1
- package/lib/renderers/Font/index.d.ts +2 -1
- package/lib/renderers/Font/index.d.ts.map +1 -1
- package/lib/renderers/Image/index.d.ts +6 -7
- package/lib/renderers/Image/index.d.ts.map +1 -1
- package/lib/renderers/Json/index.d.ts +2 -1
- package/lib/renderers/Json/index.d.ts.map +1 -1
- package/lib/renderers/Markdown/index.d.ts +2 -2
- package/lib/renderers/Markdown/index.d.ts.map +1 -1
- package/lib/renderers/Mobi/index.d.ts +2 -3
- package/lib/renderers/Mobi/index.d.ts.map +1 -1
- package/lib/renderers/Msg/index.d.ts +2 -1
- package/lib/renderers/Msg/index.d.ts.map +1 -1
- package/lib/renderers/Pdf/index.d.ts +4 -8
- package/lib/renderers/Pdf/index.d.ts.map +1 -1
- package/lib/renderers/Pptx/index.d.ts +2 -1
- package/lib/renderers/Pptx/index.d.ts.map +1 -1
- package/lib/renderers/Subtitle/index.d.ts +2 -1
- package/lib/renderers/Subtitle/index.d.ts.map +1 -1
- package/lib/renderers/Text/index.d.ts +2 -3
- package/lib/renderers/Text/index.d.ts.map +1 -1
- package/lib/renderers/Video/index.d.ts +2 -1
- package/lib/renderers/Video/index.d.ts.map +1 -1
- package/lib/renderers/Xlsx/index.d.ts +2 -1
- package/lib/renderers/Xlsx/index.d.ts.map +1 -1
- package/lib/renderers/Xml/index.d.ts +2 -1
- package/lib/renderers/Xml/index.d.ts.map +1 -1
- package/lib/renderers/Zip/index.d.ts +7 -2
- package/lib/renderers/Zip/index.d.ts.map +1 -1
- package/lib/renderers/base.types.d.ts +38 -0
- package/lib/renderers/base.types.d.ts.map +1 -0
- package/lib/renderers/registry.d.ts +36 -0
- package/lib/renderers/registry.d.ts.map +1 -0
- package/lib/renderers/toolbar.types.d.ts +2 -0
- package/lib/renderers/toolbar.types.d.ts.map +1 -1
- package/lib/toolbar/renderItems.d.ts.map +1 -1
- package/package.json +3 -3
- package/lib/chunks/index-0v5STX5f.mjs +0 -105
- package/lib/chunks/index-0v5STX5f.mjs.map +0 -1
- package/lib/chunks/index-10O8tfTH.mjs.map +0 -1
- package/lib/chunks/index-BCyv1HM9.mjs +0 -175
- package/lib/chunks/index-BCyv1HM9.mjs.map +0 -1
- package/lib/chunks/index-Bo90aGhy.mjs +0 -114
- package/lib/chunks/index-Bo90aGhy.mjs.map +0 -1
- package/lib/chunks/index-CEeKt7L3.mjs +0 -2808
- package/lib/chunks/index-CEeKt7L3.mjs.map +0 -1
- package/lib/chunks/index-CWKbnvW6.mjs +0 -270
- package/lib/chunks/index-CWKbnvW6.mjs.map +0 -1
- package/lib/chunks/index-C_BJatqr.mjs.map +0 -1
- package/lib/chunks/index-Cbz5Z6ZK.mjs +0 -263
- package/lib/chunks/index-Cbz5Z6ZK.mjs.map +0 -1
- package/lib/chunks/index-DTYBFuAH.mjs +0 -357
- package/lib/chunks/index-DTYBFuAH.mjs.map +0 -1
- package/lib/chunks/index-DoFsoBKL.mjs.map +0 -1
- package/lib/chunks/index-DuP0Tlpo.mjs.map +0 -1
- package/lib/chunks/index-Dv3RQz86.mjs +0 -270
- package/lib/chunks/index-Dv3RQz86.mjs.map +0 -1
- package/lib/chunks/index-QfpHck8N.mjs +0 -55
- package/lib/chunks/index-QfpHck8N.mjs.map +0 -1
- package/lib/chunks/index-gjSQeou7.mjs +0 -194
- package/lib/chunks/index-gjSQeou7.mjs.map +0 -1
- package/lib/chunks/index-kALp0tqz.mjs.map +0 -1
- package/lib/chunks/index-kCeSnFs-.mjs +0 -54
- package/lib/chunks/index-kCeSnFs-.mjs.map +0 -1
- package/lib/chunks/useShikiHighlight-BA9qgdGA.mjs +0 -23
- package/lib/chunks/useShikiHighlight-BA9qgdGA.mjs.map +0 -1
- package/lib/hooks/rendererReducer.d.ts +0 -10
- package/lib/hooks/rendererReducer.d.ts.map +0 -1
- package/lib/hooks/types.d.ts +0 -152
- package/lib/hooks/types.d.ts.map +0 -1
- package/lib/hooks/useBookRenderer.d.ts +0 -14
- package/lib/hooks/useBookRenderer.d.ts.map +0 -1
- package/lib/hooks/useFilePreviewState.d.ts +0 -10
- package/lib/hooks/useFilePreviewState.d.ts.map +0 -1
- package/lib/hooks/useImageAutoFit.d.ts +0 -13
- package/lib/hooks/useImageAutoFit.d.ts.map +0 -1
- package/lib/hooks/useToolbarConfig.d.ts +0 -25
- package/lib/hooks/useToolbarConfig.d.ts.map +0 -1
- package/lib/renderers/Epub/toolbar.d.ts +0 -13
- package/lib/renderers/Epub/toolbar.d.ts.map +0 -1
- package/lib/renderers/Image/toolbar.d.ts +0 -15
- package/lib/renderers/Image/toolbar.d.ts.map +0 -1
- package/lib/renderers/Markdown/toolbar.d.ts +0 -9
- package/lib/renderers/Markdown/toolbar.d.ts.map +0 -1
- package/lib/renderers/Mobi/toolbar.d.ts +0 -13
- package/lib/renderers/Mobi/toolbar.d.ts.map +0 -1
- package/lib/renderers/Pdf/toolbar.d.ts +0 -16
- package/lib/renderers/Pdf/toolbar.d.ts.map +0 -1
- package/lib/renderers/Text/toolbar.d.ts +0 -12
- package/lib/renderers/Text/toolbar.d.ts.map +0 -1
- package/lib/renderers/Zip/toolbar.d.ts +0 -13
- package/lib/renderers/Zip/toolbar.d.ts.map +0 -1
- package/lib/toolbar/registry.d.ts +0 -51
- package/lib/toolbar/registry.d.ts.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as L, jsxs as
|
|
2
|
-
import { useState as qe, useEffect as
|
|
3
|
-
import { User as
|
|
4
|
-
import { u as
|
|
5
|
-
import { R as
|
|
6
|
-
var
|
|
7
|
-
function
|
|
1
|
+
import { jsx as L, jsxs as H } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as tr, useState as qe, useEffect as rr, useImperativeHandle as ir } from "react";
|
|
3
|
+
import { User as nr, Users as ze, Calendar as mt, Clock as gt, Tag as wt, Mail as ar, Paperclip as sr, Hash as or } from "lucide-react";
|
|
4
|
+
import { u as cr, a as fr } from "./index-Cz23v-TW.mjs";
|
|
5
|
+
import { R as ur } from "./RendererError-D5i8eSpN.mjs";
|
|
6
|
+
var ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
|
+
function hr(e) {
|
|
8
8
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function lr(e) {
|
|
11
11
|
if (e.__esModule) return e;
|
|
12
12
|
var t = e.default;
|
|
13
13
|
if (typeof t == "function") {
|
|
@@ -26,20 +26,20 @@ function ur(e) {
|
|
|
26
26
|
});
|
|
27
27
|
}), a;
|
|
28
28
|
}
|
|
29
|
-
var Vt = {}, at = {}, De = {},
|
|
30
|
-
Object.defineProperty(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
function
|
|
29
|
+
var Vt = {}, at = {}, De = {}, ee = {};
|
|
30
|
+
Object.defineProperty(ee, "__esModule", { value: !0 });
|
|
31
|
+
ee.arraysEqual = dr;
|
|
32
|
+
ee.uInt2int = pr;
|
|
33
|
+
ee.toHexStr = yr;
|
|
34
|
+
ee.toHex1 = Q;
|
|
35
|
+
ee.toHex2 = br;
|
|
36
|
+
ee.toHex4 = vr;
|
|
37
|
+
ee.msftUuidStringify = Er;
|
|
38
|
+
ee.emptyToNull = mr;
|
|
39
|
+
ee.readSystemTime = gr;
|
|
40
|
+
ee.readTransitionSystemTime = wr;
|
|
41
|
+
ee.bin2HexUpper = _r;
|
|
42
|
+
function dr(e, t) {
|
|
43
43
|
if (e === t)
|
|
44
44
|
return !0;
|
|
45
45
|
if (e == null || t == null || e.length != t.length)
|
|
@@ -49,38 +49,38 @@ function hr(e, t) {
|
|
|
49
49
|
return !1;
|
|
50
50
|
return !0;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function pr(e) {
|
|
53
53
|
for (var t = new Array(e.length), a = 0; a < e.length; a++)
|
|
54
54
|
t[a] = e[a] << 24 >> 24;
|
|
55
55
|
return t;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function yr(e, t) {
|
|
58
58
|
for (var a = ""; e != 0; )
|
|
59
59
|
a = "0123456789abcdef"[e & 15] + a, e >>= 4, a = "0123456789abcdef"[e & 15] + a, e >>= 4;
|
|
60
60
|
for (; a.length < t; )
|
|
61
61
|
a = "0" + a;
|
|
62
62
|
return a;
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
function
|
|
66
|
-
return
|
|
64
|
+
var ie = "0123456789abcdef";
|
|
65
|
+
function Q(e) {
|
|
66
|
+
return ie[e >> 4 & 15] + ie[e & 15];
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
68
|
+
function br(e) {
|
|
69
|
+
return ie[e >> 12 & 15] + ie[e >> 8 & 15] + ie[e >> 4 & 15] + ie[e & 15];
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
71
|
+
function vr(e) {
|
|
72
|
+
return ie[e >> 28 & 15] + ie[e >> 24 & 15] + ie[e >> 20 & 15] + ie[e >> 16 & 15] + ie[e >> 12 & 15] + ie[e >> 8 & 15] + ie[e >> 4 & 15] + ie[e & 15];
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return "" +
|
|
74
|
+
function Er(e, t) {
|
|
75
|
+
return "" + Q(e[t + 3]) + Q(e[t + 2]) + Q(e[t + 1]) + Q(e[t + 0]) + "-" + Q(e[t + 5]) + Q(e[t + 4]) + "-" + Q(e[t + 7]) + Q(e[t + 6]) + "-" + Q(e[t + 8]) + Q(e[t + 9]) + "-" + Q(e[t + 10]) + Q(e[t + 11]) + Q(e[t + 12]) + Q(e[t + 13]) + Q(e[t + 14]) + Q(e[t + 15]);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function mr(e) {
|
|
78
78
|
return e === "" ? null : e;
|
|
79
79
|
}
|
|
80
80
|
function xe(e, t) {
|
|
81
81
|
return ("" + e).padStart(t, "0");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function gr(e) {
|
|
84
84
|
var t = e.readUint16(), a = e.readUint16();
|
|
85
85
|
e.readUint16();
|
|
86
86
|
var n = e.readUint16(), c = e.readUint16(), u = e.readUint16(), f = e.readUint16();
|
|
@@ -88,7 +88,7 @@ function Er(e) {
|
|
|
88
88
|
var s = "".concat(xe(t, 4), "-").concat(xe(a, 2), "-").concat(xe(n, 2), "T").concat(xe(c, 2), ":").concat(xe(u, 2), ":").concat(xe(f, 2), "Z");
|
|
89
89
|
return s === "0000-00-00T00:00:00Z" ? null : new Date(s);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function wr(e) {
|
|
92
92
|
var t = e.readUint16(), a = e.readUint16(), n = e.readUint16(), c = e.readUint16(), u = e.readUint16(), f = e.readUint16();
|
|
93
93
|
return e.readUint16(), e.readUint16(), {
|
|
94
94
|
year: t,
|
|
@@ -99,15 +99,15 @@ function mr(e) {
|
|
|
99
99
|
minute: f
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function _r(e) {
|
|
103
103
|
for (var t = ""; !e.isEof(); )
|
|
104
|
-
t +=
|
|
104
|
+
t += Q(e.readUint8());
|
|
105
105
|
return t.toUpperCase();
|
|
106
106
|
}
|
|
107
107
|
Object.defineProperty(De, "__esModule", { value: !0 });
|
|
108
|
-
var
|
|
108
|
+
var Ar = ee;
|
|
109
109
|
De.default = {
|
|
110
|
-
FILE_HEADER: (0,
|
|
110
|
+
FILE_HEADER: (0, Ar.uInt2int)([208, 207, 17, 224, 161, 177, 26, 225]),
|
|
111
111
|
MSG: {
|
|
112
112
|
UNUSED_BLOCK: -1,
|
|
113
113
|
END_OF_CHAIN: -2,
|
|
@@ -296,11 +296,11 @@ De.default = {
|
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
var Ne = {}, Wt = { exports: {} }, st = {}, Pe = {};
|
|
299
|
-
Pe.byteLength =
|
|
300
|
-
Pe.toByteArray =
|
|
301
|
-
Pe.fromByteArray =
|
|
302
|
-
var ye = [], he = [],
|
|
303
|
-
for (var Se = 0,
|
|
299
|
+
Pe.byteLength = Ir;
|
|
300
|
+
Pe.toByteArray = Br;
|
|
301
|
+
Pe.fromByteArray = Lr;
|
|
302
|
+
var ye = [], he = [], xr = typeof Uint8Array < "u" ? Uint8Array : Array, Ve = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
303
|
+
for (var Se = 0, Sr = Ve.length; Se < Sr; ++Se)
|
|
304
304
|
ye[Se] = Ve[Se], he[Ve.charCodeAt(Se)] = Se;
|
|
305
305
|
he[45] = 62;
|
|
306
306
|
he[95] = 63;
|
|
@@ -313,30 +313,30 @@ function Zt(e) {
|
|
|
313
313
|
var n = a === t ? 0 : 4 - a % 4;
|
|
314
314
|
return [a, n];
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function Ir(e) {
|
|
317
317
|
var t = Zt(e), a = t[0], n = t[1];
|
|
318
318
|
return (a + n) * 3 / 4 - n;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Tr(e, t, a) {
|
|
321
321
|
return (t + a) * 3 / 4 - a;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
var t, a = Zt(e), n = a[0], c = a[1], u = new
|
|
323
|
+
function Br(e) {
|
|
324
|
+
var t, a = Zt(e), n = a[0], c = a[1], u = new xr(Tr(e, n, c)), f = 0, s = c > 0 ? n - 4 : n, p;
|
|
325
325
|
for (p = 0; p < s; p += 4)
|
|
326
326
|
t = he[e.charCodeAt(p)] << 18 | he[e.charCodeAt(p + 1)] << 12 | he[e.charCodeAt(p + 2)] << 6 | he[e.charCodeAt(p + 3)], u[f++] = t >> 16 & 255, u[f++] = t >> 8 & 255, u[f++] = t & 255;
|
|
327
327
|
return c === 2 && (t = he[e.charCodeAt(p)] << 2 | he[e.charCodeAt(p + 1)] >> 4, u[f++] = t & 255), c === 1 && (t = he[e.charCodeAt(p)] << 10 | he[e.charCodeAt(p + 1)] << 4 | he[e.charCodeAt(p + 2)] >> 2, u[f++] = t >> 8 & 255, u[f++] = t & 255), u;
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Ur(e) {
|
|
330
330
|
return ye[e >> 18 & 63] + ye[e >> 12 & 63] + ye[e >> 6 & 63] + ye[e & 63];
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Nr(e, t, a) {
|
|
333
333
|
for (var n, c = [], u = t; u < a; u += 3)
|
|
334
|
-
n = (e[u] << 16 & 16711680) + (e[u + 1] << 8 & 65280) + (e[u + 2] & 255), c.push(
|
|
334
|
+
n = (e[u] << 16 & 16711680) + (e[u + 1] << 8 & 65280) + (e[u + 2] & 255), c.push(Ur(n));
|
|
335
335
|
return c.join("");
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Lr(e) {
|
|
338
338
|
for (var t, a = e.length, n = a % 3, c = [], u = 16383, f = 0, s = a - n; f < s; f += u)
|
|
339
|
-
c.push(
|
|
339
|
+
c.push(Nr(e, f, f + u > s ? s : f + u));
|
|
340
340
|
return n === 1 ? (t = e[a - 1], c.push(
|
|
341
341
|
ye[t >> 2] + ye[t << 4 & 63] + "=="
|
|
342
342
|
)) : n === 2 && (t = (e[a - 2] << 8) + e[a - 1], c.push(
|
|
@@ -346,10 +346,10 @@ function Ur(e) {
|
|
|
346
346
|
var ot = {};
|
|
347
347
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
348
348
|
ot.read = function(e, t, a, n, c) {
|
|
349
|
-
var u, f, s = c * 8 - n - 1, p = (1 << s) - 1, l = p >> 1,
|
|
350
|
-
for (w += g, u = m & (1 << -
|
|
349
|
+
var u, f, s = c * 8 - n - 1, p = (1 << s) - 1, l = p >> 1, v = -7, w = a ? c - 1 : 0, g = a ? -1 : 1, m = e[t + w];
|
|
350
|
+
for (w += g, u = m & (1 << -v) - 1, m >>= -v, v += s; v > 0; u = u * 256 + e[t + w], w += g, v -= 8)
|
|
351
351
|
;
|
|
352
|
-
for (f = u & (1 << -
|
|
352
|
+
for (f = u & (1 << -v) - 1, u >>= -v, v += n; v > 0; f = f * 256 + e[t + w], w += g, v -= 8)
|
|
353
353
|
;
|
|
354
354
|
if (u === 0)
|
|
355
355
|
u = 1 - l;
|
|
@@ -361,8 +361,8 @@ ot.read = function(e, t, a, n, c) {
|
|
|
361
361
|
return (m ? -1 : 1) * f * Math.pow(2, u - n);
|
|
362
362
|
};
|
|
363
363
|
ot.write = function(e, t, a, n, c, u) {
|
|
364
|
-
var f, s, p, l = u * 8 - c - 1,
|
|
365
|
-
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, f =
|
|
364
|
+
var f, s, p, l = u * 8 - c - 1, v = (1 << l) - 1, w = v >> 1, g = c === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, m = n ? 0 : u - 1, x = n ? 1 : -1, A = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
365
|
+
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, f = v) : (f = Math.floor(Math.log(t) / Math.LN2), t * (p = Math.pow(2, -f)) < 1 && (f--, p *= 2), f + w >= 1 ? t += g / p : t += g * Math.pow(2, 1 - w), t * p >= 2 && (f++, p /= 2), f + w >= v ? (s = 0, f = v) : f + w >= 1 ? (s = (t * p - 1) * Math.pow(2, c), f = f + w) : (s = t * Math.pow(2, w - 1) * Math.pow(2, c), f = 0)); c >= 8; e[a + m] = s & 255, m += x, s /= 256, c -= 8)
|
|
366
366
|
;
|
|
367
367
|
for (f = f << c | s, l += c; l > 0; e[a + m] = f & 255, m += x, f /= 256, l -= 8)
|
|
368
368
|
;
|
|
@@ -376,7 +376,7 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
376
376
|
*/
|
|
377
377
|
(function(e) {
|
|
378
378
|
var t = Pe, a = ot, n = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
379
|
-
e.Buffer = s, e.SlowBuffer =
|
|
379
|
+
e.Buffer = s, e.SlowBuffer = E, e.INSPECT_MAX_BYTES = 50;
|
|
380
380
|
var c = 2147483647;
|
|
381
381
|
e.kMaxLength = c, s.TYPED_ARRAY_SUPPORT = u(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
382
382
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
@@ -439,7 +439,7 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
439
439
|
var h = o.valueOf && o.valueOf();
|
|
440
440
|
if (h != null && h !== o)
|
|
441
441
|
return s.from(h, r, i);
|
|
442
|
-
var _ =
|
|
442
|
+
var _ = I(o);
|
|
443
443
|
if (_) return _;
|
|
444
444
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof o[Symbol.toPrimitive] == "function")
|
|
445
445
|
return s.from(
|
|
@@ -460,11 +460,11 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
460
460
|
if (o < 0)
|
|
461
461
|
throw new RangeError('The value "' + o + '" is invalid for option "size"');
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function v(o, r, i) {
|
|
464
464
|
return l(o), o <= 0 ? f(o) : r !== void 0 ? typeof i == "string" ? f(o).fill(r, i) : f(o).fill(r) : f(o);
|
|
465
465
|
}
|
|
466
466
|
s.alloc = function(o, r, i) {
|
|
467
|
-
return
|
|
467
|
+
return v(o, r, i);
|
|
468
468
|
};
|
|
469
469
|
function w(o) {
|
|
470
470
|
return l(o), f(o < 0 ? 0 : d(o) | 0);
|
|
@@ -477,7 +477,7 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
477
477
|
function g(o, r) {
|
|
478
478
|
if ((typeof r != "string" || r === "") && (r = "utf8"), !s.isEncoding(r))
|
|
479
479
|
throw new TypeError("Unknown encoding: " + r);
|
|
480
|
-
var i =
|
|
480
|
+
var i = b(o, r) | 0, h = f(i), _ = h.write(o, r);
|
|
481
481
|
return _ !== i && (h = h.slice(0, _)), h;
|
|
482
482
|
}
|
|
483
483
|
function m(o) {
|
|
@@ -500,7 +500,7 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
500
500
|
var h;
|
|
501
501
|
return r === void 0 && i === void 0 ? h = new Uint8Array(o) : i === void 0 ? h = new Uint8Array(o, r) : h = new Uint8Array(o, r, i), Object.setPrototypeOf(h, s.prototype), h;
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function I(o) {
|
|
504
504
|
if (s.isBuffer(o)) {
|
|
505
505
|
var r = d(o.length) | 0, i = f(r);
|
|
506
506
|
return i.length === 0 || o.copy(i, 0, 0, r), i;
|
|
@@ -515,7 +515,7 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
515
515
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + c.toString(16) + " bytes");
|
|
516
516
|
return o | 0;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function E(o) {
|
|
519
519
|
return +o != o && (o = 0), s.alloc(+o);
|
|
520
520
|
}
|
|
521
521
|
s.isBuffer = function(r) {
|
|
@@ -575,7 +575,7 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
575
575
|
}
|
|
576
576
|
return _;
|
|
577
577
|
};
|
|
578
|
-
function
|
|
578
|
+
function b(o, r) {
|
|
579
579
|
if (s.isBuffer(o))
|
|
580
580
|
return o.length;
|
|
581
581
|
if (ArrayBuffer.isView(o) || pe(o, ArrayBuffer))
|
|
@@ -610,7 +610,7 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
610
610
|
r = ("" + r).toLowerCase(), _ = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
s.byteLength =
|
|
613
|
+
s.byteLength = b;
|
|
614
614
|
function y(o, r, i) {
|
|
615
615
|
var h = !1;
|
|
616
616
|
if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, r >>>= 0, i <= r))
|
|
@@ -618,29 +618,29 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
618
618
|
for (o || (o = "utf8"); ; )
|
|
619
619
|
switch (o) {
|
|
620
620
|
case "hex":
|
|
621
|
-
return
|
|
621
|
+
return J(this, r, i);
|
|
622
622
|
case "utf8":
|
|
623
623
|
case "utf-8":
|
|
624
|
-
return
|
|
624
|
+
return Z(this, r, i);
|
|
625
625
|
case "ascii":
|
|
626
|
-
return
|
|
626
|
+
return $(this, r, i);
|
|
627
627
|
case "latin1":
|
|
628
628
|
case "binary":
|
|
629
|
-
return
|
|
629
|
+
return M(this, r, i);
|
|
630
630
|
case "base64":
|
|
631
|
-
return
|
|
631
|
+
return z(this, r, i);
|
|
632
632
|
case "ucs2":
|
|
633
633
|
case "ucs-2":
|
|
634
634
|
case "utf16le":
|
|
635
635
|
case "utf-16le":
|
|
636
|
-
return
|
|
636
|
+
return V(this, r, i);
|
|
637
637
|
default:
|
|
638
638
|
if (h) throw new TypeError("Unknown encoding: " + o);
|
|
639
639
|
o = (o + "").toLowerCase(), h = !0;
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
s.prototype._isBuffer = !0;
|
|
643
|
-
function
|
|
643
|
+
function S(o, r, i) {
|
|
644
644
|
var h = o[r];
|
|
645
645
|
o[r] = o[i], o[i] = h;
|
|
646
646
|
}
|
|
@@ -649,25 +649,25 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
649
649
|
if (r % 2 !== 0)
|
|
650
650
|
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
651
651
|
for (var i = 0; i < r; i += 2)
|
|
652
|
-
|
|
652
|
+
S(this, i, i + 1);
|
|
653
653
|
return this;
|
|
654
654
|
}, s.prototype.swap32 = function() {
|
|
655
655
|
var r = this.length;
|
|
656
656
|
if (r % 4 !== 0)
|
|
657
657
|
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
658
658
|
for (var i = 0; i < r; i += 4)
|
|
659
|
-
|
|
659
|
+
S(this, i, i + 3), S(this, i + 1, i + 2);
|
|
660
660
|
return this;
|
|
661
661
|
}, s.prototype.swap64 = function() {
|
|
662
662
|
var r = this.length;
|
|
663
663
|
if (r % 8 !== 0)
|
|
664
664
|
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
665
665
|
for (var i = 0; i < r; i += 8)
|
|
666
|
-
|
|
666
|
+
S(this, i, i + 7), S(this, i + 1, i + 6), S(this, i + 2, i + 5), S(this, i + 3, i + 4);
|
|
667
667
|
return this;
|
|
668
668
|
}, s.prototype.toString = function() {
|
|
669
669
|
var r = this.length;
|
|
670
|
-
return r === 0 ? "" : arguments.length === 0 ?
|
|
670
|
+
return r === 0 ? "" : arguments.length === 0 ? Z(this, 0, r) : y.apply(this, arguments);
|
|
671
671
|
}, s.prototype.toLocaleString = s.prototype.toString, s.prototype.equals = function(r) {
|
|
672
672
|
if (!s.isBuffer(r)) throw new TypeError("Argument must be a Buffer");
|
|
673
673
|
return this === r ? !0 : s.compare(this, r) === 0;
|
|
@@ -688,9 +688,9 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
688
688
|
if (i >= h)
|
|
689
689
|
return 1;
|
|
690
690
|
if (i >>>= 0, h >>>= 0, _ >>>= 0, T >>>= 0, this === r) return 0;
|
|
691
|
-
for (var B = T - _, P = h - i, j = Math.min(B, P),
|
|
692
|
-
if (K
|
|
693
|
-
B = K
|
|
691
|
+
for (var B = T - _, P = h - i, j = Math.min(B, P), W = this.slice(_, T), te = r.slice(i, h), K = 0; K < j; ++K)
|
|
692
|
+
if (W[K] !== te[K]) {
|
|
693
|
+
B = W[K], P = te[K];
|
|
694
694
|
break;
|
|
695
695
|
}
|
|
696
696
|
return B < P ? -1 : P < B ? 1 : 0;
|
|
@@ -719,22 +719,22 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
719
719
|
function j(vt, Et) {
|
|
720
720
|
return T === 1 ? vt[Et] : vt.readUInt16BE(Et * T);
|
|
721
721
|
}
|
|
722
|
-
var
|
|
722
|
+
var W;
|
|
723
723
|
if (_) {
|
|
724
|
-
var
|
|
725
|
-
for (
|
|
726
|
-
if (j(o,
|
|
727
|
-
if (
|
|
724
|
+
var te = -1;
|
|
725
|
+
for (W = i; W < B; W++)
|
|
726
|
+
if (j(o, W) === j(r, te === -1 ? 0 : W - te)) {
|
|
727
|
+
if (te === -1 && (te = W), W - te + 1 === P) return te * T;
|
|
728
728
|
} else
|
|
729
|
-
|
|
729
|
+
te !== -1 && (W -= W - te), te = -1;
|
|
730
730
|
} else
|
|
731
|
-
for (i + P > B && (i = B - P),
|
|
732
|
-
for (var
|
|
733
|
-
if (j(o,
|
|
734
|
-
|
|
731
|
+
for (i + P > B && (i = B - P), W = i; W >= 0; W--) {
|
|
732
|
+
for (var K = !0, Oe = 0; Oe < P; Oe++)
|
|
733
|
+
if (j(o, W + Oe) !== j(r, Oe)) {
|
|
734
|
+
K = !1;
|
|
735
735
|
break;
|
|
736
736
|
}
|
|
737
|
-
if (
|
|
737
|
+
if (K) return W;
|
|
738
738
|
}
|
|
739
739
|
return -1;
|
|
740
740
|
}
|
|
@@ -745,7 +745,7 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
745
745
|
}, s.prototype.lastIndexOf = function(r, i, h) {
|
|
746
746
|
return U(this, r, i, h, !1);
|
|
747
747
|
};
|
|
748
|
-
function
|
|
748
|
+
function R(o, r, i, h) {
|
|
749
749
|
i = Number(i) || 0;
|
|
750
750
|
var _ = o.length - i;
|
|
751
751
|
h ? (h = Number(h), h > _ && (h = _)) : h = _;
|
|
@@ -764,10 +764,10 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
764
764
|
function F(o, r, i, h) {
|
|
765
765
|
return Fe(Jt(r), o, i, h);
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function C(o, r, i, h) {
|
|
768
768
|
return Fe(bt(r), o, i, h);
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function G(o, r, i, h) {
|
|
771
771
|
return Fe(Qt(r, o.length - i), o, i, h);
|
|
772
772
|
}
|
|
773
773
|
s.prototype.write = function(r, i, h, _) {
|
|
@@ -788,7 +788,7 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
788
788
|
for (var B = !1; ; )
|
|
789
789
|
switch (_) {
|
|
790
790
|
case "hex":
|
|
791
|
-
return
|
|
791
|
+
return R(this, r, i, h);
|
|
792
792
|
case "utf8":
|
|
793
793
|
case "utf-8":
|
|
794
794
|
return D(this, r, i, h);
|
|
@@ -797,12 +797,12 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
797
797
|
case "binary":
|
|
798
798
|
return F(this, r, i, h);
|
|
799
799
|
case "base64":
|
|
800
|
-
return
|
|
800
|
+
return C(this, r, i, h);
|
|
801
801
|
case "ucs2":
|
|
802
802
|
case "ucs-2":
|
|
803
803
|
case "utf16le":
|
|
804
804
|
case "utf-16le":
|
|
805
|
-
return
|
|
805
|
+
return G(this, r, i, h);
|
|
806
806
|
default:
|
|
807
807
|
if (B) throw new TypeError("Unknown encoding: " + _);
|
|
808
808
|
_ = ("" + _).toLowerCase(), B = !0;
|
|
@@ -813,67 +813,67 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
813
813
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
814
814
|
};
|
|
815
815
|
};
|
|
816
|
-
function
|
|
816
|
+
function z(o, r, i) {
|
|
817
817
|
return r === 0 && i === o.length ? t.fromByteArray(o) : t.fromByteArray(o.slice(r, i));
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function Z(o, r, i) {
|
|
820
820
|
i = Math.min(o.length, i);
|
|
821
821
|
for (var h = [], _ = r; _ < i; ) {
|
|
822
822
|
var T = o[_], B = null, P = T > 239 ? 4 : T > 223 ? 3 : T > 191 ? 2 : 1;
|
|
823
823
|
if (_ + P <= i) {
|
|
824
|
-
var j,
|
|
824
|
+
var j, W, te, K;
|
|
825
825
|
switch (P) {
|
|
826
826
|
case 1:
|
|
827
827
|
T < 128 && (B = T);
|
|
828
828
|
break;
|
|
829
829
|
case 2:
|
|
830
|
-
j = o[_ + 1], (j & 192) === 128 && (
|
|
830
|
+
j = o[_ + 1], (j & 192) === 128 && (K = (T & 31) << 6 | j & 63, K > 127 && (B = K));
|
|
831
831
|
break;
|
|
832
832
|
case 3:
|
|
833
|
-
j = o[_ + 1],
|
|
833
|
+
j = o[_ + 1], W = o[_ + 2], (j & 192) === 128 && (W & 192) === 128 && (K = (T & 15) << 12 | (j & 63) << 6 | W & 63, K > 2047 && (K < 55296 || K > 57343) && (B = K));
|
|
834
834
|
break;
|
|
835
835
|
case 4:
|
|
836
|
-
j = o[_ + 1],
|
|
836
|
+
j = o[_ + 1], W = o[_ + 2], te = o[_ + 3], (j & 192) === 128 && (W & 192) === 128 && (te & 192) === 128 && (K = (T & 15) << 18 | (j & 63) << 12 | (W & 63) << 6 | te & 63, K > 65535 && K < 1114112 && (B = K));
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
B === null ? (B = 65533, P = 1) : B > 65535 && (B -= 65536, h.push(B >>> 10 & 1023 | 55296), B = 56320 | B & 1023), h.push(B), _ += P;
|
|
840
840
|
}
|
|
841
841
|
return k(h);
|
|
842
842
|
}
|
|
843
|
-
var
|
|
843
|
+
var Y = 4096;
|
|
844
844
|
function k(o) {
|
|
845
845
|
var r = o.length;
|
|
846
|
-
if (r <=
|
|
846
|
+
if (r <= Y)
|
|
847
847
|
return String.fromCharCode.apply(String, o);
|
|
848
848
|
for (var i = "", h = 0; h < r; )
|
|
849
849
|
i += String.fromCharCode.apply(
|
|
850
850
|
String,
|
|
851
|
-
o.slice(h, h +=
|
|
851
|
+
o.slice(h, h += Y)
|
|
852
852
|
);
|
|
853
853
|
return i;
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function $(o, r, i) {
|
|
856
856
|
var h = "";
|
|
857
857
|
i = Math.min(o.length, i);
|
|
858
858
|
for (var _ = r; _ < i; ++_)
|
|
859
859
|
h += String.fromCharCode(o[_] & 127);
|
|
860
860
|
return h;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function M(o, r, i) {
|
|
863
863
|
var h = "";
|
|
864
864
|
i = Math.min(o.length, i);
|
|
865
865
|
for (var _ = r; _ < i; ++_)
|
|
866
866
|
h += String.fromCharCode(o[_]);
|
|
867
867
|
return h;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function J(o, r, i) {
|
|
870
870
|
var h = o.length;
|
|
871
871
|
(!r || r < 0) && (r = 0), (!i || i < 0 || i > h) && (i = h);
|
|
872
872
|
for (var _ = "", T = r; T < i; ++T)
|
|
873
873
|
_ += er[o[T]];
|
|
874
874
|
return _;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function V(o, r, i) {
|
|
877
877
|
for (var h = o.slice(r, i), _ = "", T = 0; T < h.length - 1; T += 2)
|
|
878
878
|
_ += String.fromCharCode(h[T] + h[T + 1] * 256);
|
|
879
879
|
return _;
|
|
@@ -884,62 +884,62 @@ ot.write = function(e, t, a, n, c, u) {
|
|
|
884
884
|
var _ = this.subarray(r, i);
|
|
885
885
|
return Object.setPrototypeOf(_, s.prototype), _;
|
|
886
886
|
};
|
|
887
|
-
function
|
|
887
|
+
function q(o, r, i) {
|
|
888
888
|
if (o % 1 !== 0 || o < 0) throw new RangeError("offset is not uint");
|
|
889
889
|
if (o + r > i) throw new RangeError("Trying to access beyond buffer length");
|
|
890
890
|
}
|
|
891
891
|
s.prototype.readUintLE = s.prototype.readUIntLE = function(r, i, h) {
|
|
892
|
-
r = r >>> 0, i = i >>> 0, h ||
|
|
892
|
+
r = r >>> 0, i = i >>> 0, h || q(r, i, this.length);
|
|
893
893
|
for (var _ = this[r], T = 1, B = 0; ++B < i && (T *= 256); )
|
|
894
894
|
_ += this[r + B] * T;
|
|
895
895
|
return _;
|
|
896
896
|
}, s.prototype.readUintBE = s.prototype.readUIntBE = function(r, i, h) {
|
|
897
|
-
r = r >>> 0, i = i >>> 0, h ||
|
|
897
|
+
r = r >>> 0, i = i >>> 0, h || q(r, i, this.length);
|
|
898
898
|
for (var _ = this[r + --i], T = 1; i > 0 && (T *= 256); )
|
|
899
899
|
_ += this[r + --i] * T;
|
|
900
900
|
return _;
|
|
901
901
|
}, s.prototype.readUint8 = s.prototype.readUInt8 = function(r, i) {
|
|
902
|
-
return r = r >>> 0, i ||
|
|
902
|
+
return r = r >>> 0, i || q(r, 1, this.length), this[r];
|
|
903
903
|
}, s.prototype.readUint16LE = s.prototype.readUInt16LE = function(r, i) {
|
|
904
|
-
return r = r >>> 0, i ||
|
|
904
|
+
return r = r >>> 0, i || q(r, 2, this.length), this[r] | this[r + 1] << 8;
|
|
905
905
|
}, s.prototype.readUint16BE = s.prototype.readUInt16BE = function(r, i) {
|
|
906
|
-
return r = r >>> 0, i ||
|
|
906
|
+
return r = r >>> 0, i || q(r, 2, this.length), this[r] << 8 | this[r + 1];
|
|
907
907
|
}, s.prototype.readUint32LE = s.prototype.readUInt32LE = function(r, i) {
|
|
908
|
-
return r = r >>> 0, i ||
|
|
908
|
+
return r = r >>> 0, i || q(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216;
|
|
909
909
|
}, s.prototype.readUint32BE = s.prototype.readUInt32BE = function(r, i) {
|
|
910
|
-
return r = r >>> 0, i ||
|
|
910
|
+
return r = r >>> 0, i || q(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]);
|
|
911
911
|
}, s.prototype.readIntLE = function(r, i, h) {
|
|
912
|
-
r = r >>> 0, i = i >>> 0, h ||
|
|
912
|
+
r = r >>> 0, i = i >>> 0, h || q(r, i, this.length);
|
|
913
913
|
for (var _ = this[r], T = 1, B = 0; ++B < i && (T *= 256); )
|
|
914
914
|
_ += this[r + B] * T;
|
|
915
915
|
return T *= 128, _ >= T && (_ -= Math.pow(2, 8 * i)), _;
|
|
916
916
|
}, s.prototype.readIntBE = function(r, i, h) {
|
|
917
|
-
r = r >>> 0, i = i >>> 0, h ||
|
|
917
|
+
r = r >>> 0, i = i >>> 0, h || q(r, i, this.length);
|
|
918
918
|
for (var _ = i, T = 1, B = this[r + --_]; _ > 0 && (T *= 256); )
|
|
919
919
|
B += this[r + --_] * T;
|
|
920
920
|
return T *= 128, B >= T && (B -= Math.pow(2, 8 * i)), B;
|
|
921
921
|
}, s.prototype.readInt8 = function(r, i) {
|
|
922
|
-
return r = r >>> 0, i ||
|
|
922
|
+
return r = r >>> 0, i || q(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r];
|
|
923
923
|
}, s.prototype.readInt16LE = function(r, i) {
|
|
924
|
-
r = r >>> 0, i ||
|
|
924
|
+
r = r >>> 0, i || q(r, 2, this.length);
|
|
925
925
|
var h = this[r] | this[r + 1] << 8;
|
|
926
926
|
return h & 32768 ? h | 4294901760 : h;
|
|
927
927
|
}, s.prototype.readInt16BE = function(r, i) {
|
|
928
|
-
r = r >>> 0, i ||
|
|
928
|
+
r = r >>> 0, i || q(r, 2, this.length);
|
|
929
929
|
var h = this[r + 1] | this[r] << 8;
|
|
930
930
|
return h & 32768 ? h | 4294901760 : h;
|
|
931
931
|
}, s.prototype.readInt32LE = function(r, i) {
|
|
932
|
-
return r = r >>> 0, i ||
|
|
932
|
+
return r = r >>> 0, i || q(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24;
|
|
933
933
|
}, s.prototype.readInt32BE = function(r, i) {
|
|
934
|
-
return r = r >>> 0, i ||
|
|
934
|
+
return r = r >>> 0, i || q(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3];
|
|
935
935
|
}, s.prototype.readFloatLE = function(r, i) {
|
|
936
|
-
return r = r >>> 0, i ||
|
|
936
|
+
return r = r >>> 0, i || q(r, 4, this.length), a.read(this, r, !0, 23, 4);
|
|
937
937
|
}, s.prototype.readFloatBE = function(r, i) {
|
|
938
|
-
return r = r >>> 0, i ||
|
|
938
|
+
return r = r >>> 0, i || q(r, 4, this.length), a.read(this, r, !1, 23, 4);
|
|
939
939
|
}, s.prototype.readDoubleLE = function(r, i) {
|
|
940
|
-
return r = r >>> 0, i ||
|
|
940
|
+
return r = r >>> 0, i || q(r, 8, this.length), a.read(this, r, !0, 52, 8);
|
|
941
941
|
}, s.prototype.readDoubleBE = function(r, i) {
|
|
942
|
-
return r = r >>> 0, i ||
|
|
942
|
+
return r = r >>> 0, i || q(r, 8, this.length), a.read(this, r, !1, 52, 8);
|
|
943
943
|
};
|
|
944
944
|
function X(o, r, i, h, _, T) {
|
|
945
945
|
if (!s.isBuffer(o)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
@@ -1206,7 +1206,7 @@ ut.prototype.end = function() {
|
|
|
1206
1206
|
return this.decoder.end();
|
|
1207
1207
|
};
|
|
1208
1208
|
var We = {}, Ze = {}, Re = { exports: {} }, _t;
|
|
1209
|
-
function
|
|
1209
|
+
function Dr() {
|
|
1210
1210
|
return _t || (_t = 1, function(e, t) {
|
|
1211
1211
|
var a = st, n = a.Buffer;
|
|
1212
1212
|
function c(f, s) {
|
|
@@ -1238,10 +1238,10 @@ function Nr() {
|
|
|
1238
1238
|
}(Re, Re.exports)), Re.exports;
|
|
1239
1239
|
}
|
|
1240
1240
|
var At;
|
|
1241
|
-
function
|
|
1241
|
+
function Fr() {
|
|
1242
1242
|
if (At) return Ze;
|
|
1243
1243
|
At = 1;
|
|
1244
|
-
var e =
|
|
1244
|
+
var e = Dr().Buffer, t = e.isEncoding || function(d) {
|
|
1245
1245
|
switch (d = "" + d, d && d.toLowerCase()) {
|
|
1246
1246
|
case "hex":
|
|
1247
1247
|
case "utf8":
|
|
@@ -1261,7 +1261,7 @@ function Lr() {
|
|
|
1261
1261
|
};
|
|
1262
1262
|
function a(d) {
|
|
1263
1263
|
if (!d) return "utf8";
|
|
1264
|
-
for (var
|
|
1264
|
+
for (var E; ; )
|
|
1265
1265
|
switch (d) {
|
|
1266
1266
|
case "utf8":
|
|
1267
1267
|
case "utf-8":
|
|
@@ -1279,45 +1279,45 @@ function Lr() {
|
|
|
1279
1279
|
case "hex":
|
|
1280
1280
|
return d;
|
|
1281
1281
|
default:
|
|
1282
|
-
if (
|
|
1283
|
-
d = ("" + d).toLowerCase(),
|
|
1282
|
+
if (E) return;
|
|
1283
|
+
d = ("" + d).toLowerCase(), E = !0;
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
1286
1286
|
function n(d) {
|
|
1287
|
-
var
|
|
1288
|
-
if (typeof
|
|
1289
|
-
return
|
|
1287
|
+
var E = a(d);
|
|
1288
|
+
if (typeof E != "string" && (e.isEncoding === t || !t(d))) throw new Error("Unknown encoding: " + d);
|
|
1289
|
+
return E || d;
|
|
1290
1290
|
}
|
|
1291
1291
|
Ze.StringDecoder = c;
|
|
1292
1292
|
function c(d) {
|
|
1293
1293
|
this.encoding = n(d);
|
|
1294
|
-
var
|
|
1294
|
+
var E;
|
|
1295
1295
|
switch (this.encoding) {
|
|
1296
1296
|
case "utf16le":
|
|
1297
|
-
this.text = w, this.end = g,
|
|
1297
|
+
this.text = w, this.end = g, E = 4;
|
|
1298
1298
|
break;
|
|
1299
1299
|
case "utf8":
|
|
1300
|
-
this.fillLast = p,
|
|
1300
|
+
this.fillLast = p, E = 4;
|
|
1301
1301
|
break;
|
|
1302
1302
|
case "base64":
|
|
1303
|
-
this.text = m, this.end = x,
|
|
1303
|
+
this.text = m, this.end = x, E = 3;
|
|
1304
1304
|
break;
|
|
1305
1305
|
default:
|
|
1306
|
-
this.write = A, this.end =
|
|
1306
|
+
this.write = A, this.end = I;
|
|
1307
1307
|
return;
|
|
1308
1308
|
}
|
|
1309
|
-
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(
|
|
1309
|
+
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(E);
|
|
1310
1310
|
}
|
|
1311
1311
|
c.prototype.write = function(d) {
|
|
1312
1312
|
if (d.length === 0) return "";
|
|
1313
|
-
var
|
|
1313
|
+
var E, b;
|
|
1314
1314
|
if (this.lastNeed) {
|
|
1315
|
-
if (
|
|
1316
|
-
|
|
1315
|
+
if (E = this.fillLast(d), E === void 0) return "";
|
|
1316
|
+
b = this.lastNeed, this.lastNeed = 0;
|
|
1317
1317
|
} else
|
|
1318
|
-
|
|
1319
|
-
return
|
|
1320
|
-
}, c.prototype.end =
|
|
1318
|
+
b = 0;
|
|
1319
|
+
return b < d.length ? E ? E + this.text(d, b) : this.text(d, b) : E || "";
|
|
1320
|
+
}, c.prototype.end = v, c.prototype.text = l, c.prototype.fillLast = function(d) {
|
|
1321
1321
|
if (this.lastNeed <= d.length)
|
|
1322
1322
|
return d.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
1323
1323
|
d.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, d.length), this.lastNeed -= d.length;
|
|
@@ -1325,78 +1325,78 @@ function Lr() {
|
|
|
1325
1325
|
function u(d) {
|
|
1326
1326
|
return d <= 127 ? 0 : d >> 5 === 6 ? 2 : d >> 4 === 14 ? 3 : d >> 3 === 30 ? 4 : d >> 6 === 2 ? -1 : -2;
|
|
1327
1327
|
}
|
|
1328
|
-
function f(d,
|
|
1329
|
-
var y =
|
|
1330
|
-
if (y <
|
|
1331
|
-
var
|
|
1332
|
-
return
|
|
1328
|
+
function f(d, E, b) {
|
|
1329
|
+
var y = E.length - 1;
|
|
1330
|
+
if (y < b) return 0;
|
|
1331
|
+
var S = u(E[y]);
|
|
1332
|
+
return S >= 0 ? (S > 0 && (d.lastNeed = S - 1), S) : --y < b || S === -2 ? 0 : (S = u(E[y]), S >= 0 ? (S > 0 && (d.lastNeed = S - 2), S) : --y < b || S === -2 ? 0 : (S = u(E[y]), S >= 0 ? (S > 0 && (S === 2 ? S = 0 : d.lastNeed = S - 3), S) : 0));
|
|
1333
1333
|
}
|
|
1334
|
-
function s(d,
|
|
1335
|
-
if ((
|
|
1334
|
+
function s(d, E, b) {
|
|
1335
|
+
if ((E[0] & 192) !== 128)
|
|
1336
1336
|
return d.lastNeed = 0, "�";
|
|
1337
|
-
if (d.lastNeed > 1 &&
|
|
1338
|
-
if ((
|
|
1337
|
+
if (d.lastNeed > 1 && E.length > 1) {
|
|
1338
|
+
if ((E[1] & 192) !== 128)
|
|
1339
1339
|
return d.lastNeed = 1, "�";
|
|
1340
|
-
if (d.lastNeed > 2 &&
|
|
1340
|
+
if (d.lastNeed > 2 && E.length > 2 && (E[2] & 192) !== 128)
|
|
1341
1341
|
return d.lastNeed = 2, "�";
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
1344
|
function p(d) {
|
|
1345
|
-
var
|
|
1346
|
-
if (
|
|
1345
|
+
var E = this.lastTotal - this.lastNeed, b = s(this, d);
|
|
1346
|
+
if (b !== void 0) return b;
|
|
1347
1347
|
if (this.lastNeed <= d.length)
|
|
1348
|
-
return d.copy(this.lastChar,
|
|
1349
|
-
d.copy(this.lastChar,
|
|
1348
|
+
return d.copy(this.lastChar, E, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
1349
|
+
d.copy(this.lastChar, E, 0, d.length), this.lastNeed -= d.length;
|
|
1350
1350
|
}
|
|
1351
|
-
function l(d,
|
|
1352
|
-
var
|
|
1353
|
-
if (!this.lastNeed) return d.toString("utf8",
|
|
1354
|
-
this.lastTotal =
|
|
1355
|
-
var y = d.length - (
|
|
1356
|
-
return d.copy(this.lastChar, 0, y), d.toString("utf8",
|
|
1351
|
+
function l(d, E) {
|
|
1352
|
+
var b = f(this, d, E);
|
|
1353
|
+
if (!this.lastNeed) return d.toString("utf8", E);
|
|
1354
|
+
this.lastTotal = b;
|
|
1355
|
+
var y = d.length - (b - this.lastNeed);
|
|
1356
|
+
return d.copy(this.lastChar, 0, y), d.toString("utf8", E, y);
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1359
|
-
var
|
|
1360
|
-
return this.lastNeed ?
|
|
1358
|
+
function v(d) {
|
|
1359
|
+
var E = d && d.length ? this.write(d) : "";
|
|
1360
|
+
return this.lastNeed ? E + "�" : E;
|
|
1361
1361
|
}
|
|
1362
|
-
function w(d,
|
|
1363
|
-
if ((d.length -
|
|
1364
|
-
var
|
|
1365
|
-
if (
|
|
1366
|
-
var y =
|
|
1362
|
+
function w(d, E) {
|
|
1363
|
+
if ((d.length - E) % 2 === 0) {
|
|
1364
|
+
var b = d.toString("utf16le", E);
|
|
1365
|
+
if (b) {
|
|
1366
|
+
var y = b.charCodeAt(b.length - 1);
|
|
1367
1367
|
if (y >= 55296 && y <= 56319)
|
|
1368
|
-
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = d[d.length - 2], this.lastChar[1] = d[d.length - 1],
|
|
1368
|
+
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = d[d.length - 2], this.lastChar[1] = d[d.length - 1], b.slice(0, -1);
|
|
1369
1369
|
}
|
|
1370
|
-
return
|
|
1370
|
+
return b;
|
|
1371
1371
|
}
|
|
1372
|
-
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = d[d.length - 1], d.toString("utf16le",
|
|
1372
|
+
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = d[d.length - 1], d.toString("utf16le", E, d.length - 1);
|
|
1373
1373
|
}
|
|
1374
1374
|
function g(d) {
|
|
1375
|
-
var
|
|
1375
|
+
var E = d && d.length ? this.write(d) : "";
|
|
1376
1376
|
if (this.lastNeed) {
|
|
1377
|
-
var
|
|
1378
|
-
return
|
|
1377
|
+
var b = this.lastTotal - this.lastNeed;
|
|
1378
|
+
return E + this.lastChar.toString("utf16le", 0, b);
|
|
1379
1379
|
}
|
|
1380
|
-
return
|
|
1380
|
+
return E;
|
|
1381
1381
|
}
|
|
1382
|
-
function m(d,
|
|
1383
|
-
var
|
|
1384
|
-
return
|
|
1382
|
+
function m(d, E) {
|
|
1383
|
+
var b = (d.length - E) % 3;
|
|
1384
|
+
return b === 0 ? d.toString("base64", E) : (this.lastNeed = 3 - b, this.lastTotal = 3, b === 1 ? this.lastChar[0] = d[d.length - 1] : (this.lastChar[0] = d[d.length - 2], this.lastChar[1] = d[d.length - 1]), d.toString("base64", E, d.length - b));
|
|
1385
1385
|
}
|
|
1386
1386
|
function x(d) {
|
|
1387
|
-
var
|
|
1388
|
-
return this.lastNeed ?
|
|
1387
|
+
var E = d && d.length ? this.write(d) : "";
|
|
1388
|
+
return this.lastNeed ? E + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : E;
|
|
1389
1389
|
}
|
|
1390
1390
|
function A(d) {
|
|
1391
1391
|
return d.toString(this.encoding);
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1393
|
+
function I(d) {
|
|
1394
1394
|
return d && d.length ? this.write(d) : "";
|
|
1395
1395
|
}
|
|
1396
1396
|
return Ze;
|
|
1397
1397
|
}
|
|
1398
1398
|
var Ke, xt;
|
|
1399
|
-
function
|
|
1399
|
+
function Or() {
|
|
1400
1400
|
if (xt) return Ke;
|
|
1401
1401
|
xt = 1;
|
|
1402
1402
|
var e = ge.Buffer;
|
|
@@ -1417,7 +1417,7 @@ function Dr() {
|
|
|
1417
1417
|
this.enc = p.encodingName, this.bomAware = p.bomAware, this.enc === "base64" ? this.encoder = u : this.enc === "cesu8" && (this.enc = "utf8", this.encoder = f, e.from("eda0bdedb2a9", "hex").toString() !== "💩" && (this.decoder = s, this.defaultCharUnicode = l.defaultCharUnicode));
|
|
1418
1418
|
}
|
|
1419
1419
|
t.prototype.encoder = c, t.prototype.decoder = n;
|
|
1420
|
-
var a =
|
|
1420
|
+
var a = Fr().StringDecoder;
|
|
1421
1421
|
a.prototype.end || (a.prototype.end = function() {
|
|
1422
1422
|
});
|
|
1423
1423
|
function n(p, l) {
|
|
@@ -1448,52 +1448,52 @@ function Dr() {
|
|
|
1448
1448
|
function f(p, l) {
|
|
1449
1449
|
}
|
|
1450
1450
|
f.prototype.write = function(p) {
|
|
1451
|
-
for (var l = e.alloc(p.length * 3),
|
|
1451
|
+
for (var l = e.alloc(p.length * 3), v = 0, w = 0; w < p.length; w++) {
|
|
1452
1452
|
var g = p.charCodeAt(w);
|
|
1453
|
-
g < 128 ? l[
|
|
1453
|
+
g < 128 ? l[v++] = g : g < 2048 ? (l[v++] = 192 + (g >>> 6), l[v++] = 128 + (g & 63)) : (l[v++] = 224 + (g >>> 12), l[v++] = 128 + (g >>> 6 & 63), l[v++] = 128 + (g & 63));
|
|
1454
1454
|
}
|
|
1455
|
-
return l.slice(0,
|
|
1455
|
+
return l.slice(0, v);
|
|
1456
1456
|
}, f.prototype.end = function() {
|
|
1457
1457
|
};
|
|
1458
1458
|
function s(p, l) {
|
|
1459
1459
|
this.acc = 0, this.contBytes = 0, this.accBytes = 0, this.defaultCharUnicode = l.defaultCharUnicode;
|
|
1460
1460
|
}
|
|
1461
1461
|
return s.prototype.write = function(p) {
|
|
1462
|
-
for (var l = this.acc,
|
|
1462
|
+
for (var l = this.acc, v = this.contBytes, w = this.accBytes, g = "", m = 0; m < p.length; m++) {
|
|
1463
1463
|
var x = p[m];
|
|
1464
|
-
(x & 192) !== 128 ? (
|
|
1464
|
+
(x & 192) !== 128 ? (v > 0 && (g += this.defaultCharUnicode, v = 0), x < 128 ? g += String.fromCharCode(x) : x < 224 ? (l = x & 31, v = 1, w = 1) : x < 240 ? (l = x & 15, v = 2, w = 1) : g += this.defaultCharUnicode) : v > 0 ? (l = l << 6 | x & 63, v--, w++, v === 0 && (w === 2 && l < 128 && l > 0 ? g += this.defaultCharUnicode : w === 3 && l < 2048 ? g += this.defaultCharUnicode : g += String.fromCharCode(l))) : g += this.defaultCharUnicode;
|
|
1465
1465
|
}
|
|
1466
|
-
return this.acc = l, this.contBytes =
|
|
1466
|
+
return this.acc = l, this.contBytes = v, this.accBytes = w, g;
|
|
1467
1467
|
}, s.prototype.end = function() {
|
|
1468
1468
|
var p = 0;
|
|
1469
1469
|
return this.contBytes > 0 && (p += this.defaultCharUnicode), p;
|
|
1470
1470
|
}, Ke;
|
|
1471
1471
|
}
|
|
1472
1472
|
var ve = {}, St;
|
|
1473
|
-
function
|
|
1473
|
+
function Rr() {
|
|
1474
1474
|
if (St) return ve;
|
|
1475
1475
|
St = 1;
|
|
1476
1476
|
var e = ge.Buffer;
|
|
1477
1477
|
ve._utf32 = t;
|
|
1478
|
-
function t(l,
|
|
1479
|
-
this.iconv =
|
|
1478
|
+
function t(l, v) {
|
|
1479
|
+
this.iconv = v, this.bomAware = !0, this.isLE = l.isLE;
|
|
1480
1480
|
}
|
|
1481
1481
|
ve.utf32le = { type: "_utf32", isLE: !0 }, ve.utf32be = { type: "_utf32", isLE: !1 }, ve.ucs4le = "utf32le", ve.ucs4be = "utf32be", t.prototype.encoder = a, t.prototype.decoder = n;
|
|
1482
|
-
function a(l,
|
|
1483
|
-
this.isLE =
|
|
1482
|
+
function a(l, v) {
|
|
1483
|
+
this.isLE = v.isLE, this.highSurrogate = 0;
|
|
1484
1484
|
}
|
|
1485
1485
|
a.prototype.write = function(l) {
|
|
1486
|
-
for (var
|
|
1487
|
-
var A =
|
|
1486
|
+
for (var v = e.from(l, "ucs2"), w = e.alloc(v.length * 2), g = this.isLE ? w.writeUInt32LE : w.writeUInt32BE, m = 0, x = 0; x < v.length; x += 2) {
|
|
1487
|
+
var A = v.readUInt16LE(x), I = 55296 <= A && A < 56320, d = 56320 <= A && A < 57344;
|
|
1488
1488
|
if (this.highSurrogate)
|
|
1489
|
-
if (
|
|
1489
|
+
if (I || !d)
|
|
1490
1490
|
g.call(w, this.highSurrogate, m), m += 4;
|
|
1491
1491
|
else {
|
|
1492
|
-
var
|
|
1493
|
-
g.call(w,
|
|
1492
|
+
var E = (this.highSurrogate - 55296 << 10 | A - 56320) + 65536;
|
|
1493
|
+
g.call(w, E, m), m += 4, this.highSurrogate = 0;
|
|
1494
1494
|
continue;
|
|
1495
1495
|
}
|
|
1496
|
-
|
|
1496
|
+
I ? this.highSurrogate = A : (g.call(w, A, m), m += 4, this.highSurrogate = 0);
|
|
1497
1497
|
}
|
|
1498
1498
|
return m < w.length && (w = w.slice(0, m)), w;
|
|
1499
1499
|
}, a.prototype.end = function() {
|
|
@@ -1502,57 +1502,57 @@ function Fr() {
|
|
|
1502
1502
|
return this.isLE ? l.writeUInt32LE(this.highSurrogate, 0) : l.writeUInt32BE(this.highSurrogate, 0), this.highSurrogate = 0, l;
|
|
1503
1503
|
}
|
|
1504
1504
|
};
|
|
1505
|
-
function n(l,
|
|
1506
|
-
this.isLE =
|
|
1505
|
+
function n(l, v) {
|
|
1506
|
+
this.isLE = v.isLE, this.badChar = v.iconv.defaultCharUnicode.charCodeAt(0), this.overflow = [];
|
|
1507
1507
|
}
|
|
1508
1508
|
n.prototype.write = function(l) {
|
|
1509
1509
|
if (l.length === 0)
|
|
1510
1510
|
return "";
|
|
1511
|
-
var
|
|
1511
|
+
var v = 0, w = 0, g = e.alloc(l.length + 4), m = 0, x = this.isLE, A = this.overflow, I = this.badChar;
|
|
1512
1512
|
if (A.length > 0) {
|
|
1513
|
-
for (;
|
|
1514
|
-
A.push(l[
|
|
1515
|
-
A.length === 4 && (x ? w = A[
|
|
1513
|
+
for (; v < l.length && A.length < 4; v++)
|
|
1514
|
+
A.push(l[v]);
|
|
1515
|
+
A.length === 4 && (x ? w = A[v] | A[v + 1] << 8 | A[v + 2] << 16 | A[v + 3] << 24 : w = A[v + 3] | A[v + 2] << 8 | A[v + 1] << 16 | A[v] << 24, A.length = 0, m = c(g, m, w, I));
|
|
1516
1516
|
}
|
|
1517
|
-
for (;
|
|
1518
|
-
x ? w = l[
|
|
1519
|
-
for (;
|
|
1520
|
-
A.push(l[
|
|
1517
|
+
for (; v < l.length - 3; v += 4)
|
|
1518
|
+
x ? w = l[v] | l[v + 1] << 8 | l[v + 2] << 16 | l[v + 3] << 24 : w = l[v + 3] | l[v + 2] << 8 | l[v + 1] << 16 | l[v] << 24, m = c(g, m, w, I);
|
|
1519
|
+
for (; v < l.length; v++)
|
|
1520
|
+
A.push(l[v]);
|
|
1521
1521
|
return g.slice(0, m).toString("ucs2");
|
|
1522
1522
|
};
|
|
1523
|
-
function c(l,
|
|
1523
|
+
function c(l, v, w, g) {
|
|
1524
1524
|
if ((w < 0 || w > 1114111) && (w = g), w >= 65536) {
|
|
1525
1525
|
w -= 65536;
|
|
1526
1526
|
var m = 55296 | w >> 10;
|
|
1527
|
-
l[
|
|
1527
|
+
l[v++] = m & 255, l[v++] = m >> 8;
|
|
1528
1528
|
var w = 56320 | w & 1023;
|
|
1529
1529
|
}
|
|
1530
|
-
return l[
|
|
1530
|
+
return l[v++] = w & 255, l[v++] = w >> 8, v;
|
|
1531
1531
|
}
|
|
1532
1532
|
n.prototype.end = function() {
|
|
1533
1533
|
this.overflow.length = 0;
|
|
1534
1534
|
}, ve.utf32 = u, ve.ucs4 = "utf32";
|
|
1535
|
-
function u(l,
|
|
1536
|
-
this.iconv =
|
|
1535
|
+
function u(l, v) {
|
|
1536
|
+
this.iconv = v;
|
|
1537
1537
|
}
|
|
1538
1538
|
u.prototype.encoder = f, u.prototype.decoder = s;
|
|
1539
|
-
function f(l,
|
|
1540
|
-
l = l || {}, l.addBOM === void 0 && (l.addBOM = !0), this.encoder =
|
|
1539
|
+
function f(l, v) {
|
|
1540
|
+
l = l || {}, l.addBOM === void 0 && (l.addBOM = !0), this.encoder = v.iconv.getEncoder(l.defaultEncoding || "utf-32le", l);
|
|
1541
1541
|
}
|
|
1542
1542
|
f.prototype.write = function(l) {
|
|
1543
1543
|
return this.encoder.write(l);
|
|
1544
1544
|
}, f.prototype.end = function() {
|
|
1545
1545
|
return this.encoder.end();
|
|
1546
1546
|
};
|
|
1547
|
-
function s(l,
|
|
1548
|
-
this.decoder = null, this.initialBufs = [], this.initialBufsLen = 0, this.options = l || {}, this.iconv =
|
|
1547
|
+
function s(l, v) {
|
|
1548
|
+
this.decoder = null, this.initialBufs = [], this.initialBufsLen = 0, this.options = l || {}, this.iconv = v.iconv;
|
|
1549
1549
|
}
|
|
1550
1550
|
s.prototype.write = function(l) {
|
|
1551
1551
|
if (!this.decoder) {
|
|
1552
1552
|
if (this.initialBufs.push(l), this.initialBufsLen += l.length, this.initialBufsLen < 32)
|
|
1553
1553
|
return "";
|
|
1554
|
-
var
|
|
1555
|
-
this.decoder = this.iconv.getDecoder(
|
|
1554
|
+
var v = p(this.initialBufs, this.options.defaultEncoding);
|
|
1555
|
+
this.decoder = this.iconv.getDecoder(v, this.options);
|
|
1556
1556
|
for (var w = "", g = 0; g < this.initialBufs.length; g++)
|
|
1557
1557
|
w += this.decoder.write(this.initialBufs[g]);
|
|
1558
1558
|
return this.initialBufs.length = this.initialBufsLen = 0, w;
|
|
@@ -1562,34 +1562,34 @@ function Fr() {
|
|
|
1562
1562
|
if (!this.decoder) {
|
|
1563
1563
|
var l = p(this.initialBufs, this.options.defaultEncoding);
|
|
1564
1564
|
this.decoder = this.iconv.getDecoder(l, this.options);
|
|
1565
|
-
for (var
|
|
1566
|
-
|
|
1565
|
+
for (var v = "", w = 0; w < this.initialBufs.length; w++)
|
|
1566
|
+
v += this.decoder.write(this.initialBufs[w]);
|
|
1567
1567
|
var g = this.decoder.end();
|
|
1568
|
-
return g && (
|
|
1568
|
+
return g && (v += g), this.initialBufs.length = this.initialBufsLen = 0, v;
|
|
1569
1569
|
}
|
|
1570
1570
|
return this.decoder.end();
|
|
1571
1571
|
};
|
|
1572
|
-
function p(l,
|
|
1573
|
-
var w = [], g = 0, m = 0, x = 0, A = 0,
|
|
1572
|
+
function p(l, v) {
|
|
1573
|
+
var w = [], g = 0, m = 0, x = 0, A = 0, I = 0;
|
|
1574
1574
|
e:
|
|
1575
1575
|
for (var d = 0; d < l.length; d++)
|
|
1576
|
-
for (var
|
|
1577
|
-
if (w.push(
|
|
1576
|
+
for (var E = l[d], b = 0; b < E.length; b++)
|
|
1577
|
+
if (w.push(E[b]), w.length === 4) {
|
|
1578
1578
|
if (g === 0) {
|
|
1579
1579
|
if (w[0] === 255 && w[1] === 254 && w[2] === 0 && w[3] === 0)
|
|
1580
1580
|
return "utf-32le";
|
|
1581
1581
|
if (w[0] === 0 && w[1] === 0 && w[2] === 254 && w[3] === 255)
|
|
1582
1582
|
return "utf-32be";
|
|
1583
1583
|
}
|
|
1584
|
-
if ((w[0] !== 0 || w[1] > 16) && x++, (w[3] !== 0 || w[2] > 16) && m++, w[0] === 0 && w[1] === 0 && (w[2] !== 0 || w[3] !== 0) &&
|
|
1584
|
+
if ((w[0] !== 0 || w[1] > 16) && x++, (w[3] !== 0 || w[2] > 16) && m++, w[0] === 0 && w[1] === 0 && (w[2] !== 0 || w[3] !== 0) && I++, (w[0] !== 0 || w[1] !== 0) && w[2] === 0 && w[3] === 0 && A++, w.length = 0, g++, g >= 100)
|
|
1585
1585
|
break e;
|
|
1586
1586
|
}
|
|
1587
|
-
return
|
|
1587
|
+
return I - x > A - m ? "utf-32be" : I - x < A - m ? "utf-32le" : v || "utf-32le";
|
|
1588
1588
|
}
|
|
1589
1589
|
return ve;
|
|
1590
1590
|
}
|
|
1591
1591
|
var Me = {}, It;
|
|
1592
|
-
function
|
|
1592
|
+
function Mr() {
|
|
1593
1593
|
if (It) return Me;
|
|
1594
1594
|
It = 1;
|
|
1595
1595
|
var e = ge.Buffer;
|
|
@@ -1600,9 +1600,9 @@ function Or() {
|
|
|
1600
1600
|
function a() {
|
|
1601
1601
|
}
|
|
1602
1602
|
a.prototype.write = function(p) {
|
|
1603
|
-
for (var l = e.from(p, "ucs2"),
|
|
1604
|
-
var w = l[
|
|
1605
|
-
l[
|
|
1603
|
+
for (var l = e.from(p, "ucs2"), v = 0; v < l.length; v += 2) {
|
|
1604
|
+
var w = l[v];
|
|
1605
|
+
l[v] = l[v + 1], l[v + 1] = w;
|
|
1606
1606
|
}
|
|
1607
1607
|
return l;
|
|
1608
1608
|
}, a.prototype.end = function() {
|
|
@@ -1613,10 +1613,10 @@ function Or() {
|
|
|
1613
1613
|
n.prototype.write = function(p) {
|
|
1614
1614
|
if (p.length == 0)
|
|
1615
1615
|
return "";
|
|
1616
|
-
var l = e.alloc(p.length + 1),
|
|
1617
|
-
for (this.overflowByte !== -1 && (l[0] = p[0], l[1] = this.overflowByte,
|
|
1618
|
-
l[w] = p[
|
|
1619
|
-
return this.overflowByte =
|
|
1616
|
+
var l = e.alloc(p.length + 1), v = 0, w = 0;
|
|
1617
|
+
for (this.overflowByte !== -1 && (l[0] = p[0], l[1] = this.overflowByte, v = 1, w = 2); v < p.length - 1; v += 2, w += 2)
|
|
1618
|
+
l[w] = p[v + 1], l[w + 1] = p[v];
|
|
1619
|
+
return this.overflowByte = v == p.length - 1 ? p[p.length - 1] : -1, l.slice(0, w).toString("ucs2");
|
|
1620
1620
|
}, n.prototype.end = function() {
|
|
1621
1621
|
this.overflowByte = -1;
|
|
1622
1622
|
}, Me.utf16 = c;
|
|
@@ -1641,33 +1641,33 @@ function Or() {
|
|
|
1641
1641
|
return "";
|
|
1642
1642
|
var l = s(this.initialBufs, this.options.defaultEncoding);
|
|
1643
1643
|
this.decoder = this.iconv.getDecoder(l, this.options);
|
|
1644
|
-
for (var
|
|
1645
|
-
|
|
1646
|
-
return this.initialBufs.length = this.initialBufsLen = 0,
|
|
1644
|
+
for (var v = "", w = 0; w < this.initialBufs.length; w++)
|
|
1645
|
+
v += this.decoder.write(this.initialBufs[w]);
|
|
1646
|
+
return this.initialBufs.length = this.initialBufsLen = 0, v;
|
|
1647
1647
|
}
|
|
1648
1648
|
return this.decoder.write(p);
|
|
1649
1649
|
}, f.prototype.end = function() {
|
|
1650
1650
|
if (!this.decoder) {
|
|
1651
1651
|
var p = s(this.initialBufs, this.options.defaultEncoding);
|
|
1652
1652
|
this.decoder = this.iconv.getDecoder(p, this.options);
|
|
1653
|
-
for (var l = "",
|
|
1654
|
-
l += this.decoder.write(this.initialBufs[
|
|
1653
|
+
for (var l = "", v = 0; v < this.initialBufs.length; v++)
|
|
1654
|
+
l += this.decoder.write(this.initialBufs[v]);
|
|
1655
1655
|
var w = this.decoder.end();
|
|
1656
1656
|
return w && (l += w), this.initialBufs.length = this.initialBufsLen = 0, l;
|
|
1657
1657
|
}
|
|
1658
1658
|
return this.decoder.end();
|
|
1659
1659
|
};
|
|
1660
1660
|
function s(p, l) {
|
|
1661
|
-
var
|
|
1661
|
+
var v = [], w = 0, g = 0, m = 0;
|
|
1662
1662
|
e:
|
|
1663
1663
|
for (var x = 0; x < p.length; x++)
|
|
1664
|
-
for (var A = p[x],
|
|
1665
|
-
if (
|
|
1664
|
+
for (var A = p[x], I = 0; I < A.length; I++)
|
|
1665
|
+
if (v.push(A[I]), v.length === 2) {
|
|
1666
1666
|
if (w === 0) {
|
|
1667
|
-
if (
|
|
1668
|
-
if (
|
|
1667
|
+
if (v[0] === 255 && v[1] === 254) return "utf-16le";
|
|
1668
|
+
if (v[0] === 254 && v[1] === 255) return "utf-16be";
|
|
1669
1669
|
}
|
|
1670
|
-
if (
|
|
1670
|
+
if (v[0] === 0 && v[1] !== 0 && m++, v[0] !== 0 && v[1] === 0 && g++, v.length = 0, w++, w >= 100)
|
|
1671
1671
|
break e;
|
|
1672
1672
|
}
|
|
1673
1673
|
return m > g ? "utf-16be" : m < g ? "utf-16le" : l || "utf-16le";
|
|
@@ -1675,103 +1675,103 @@ function Or() {
|
|
|
1675
1675
|
return Me;
|
|
1676
1676
|
}
|
|
1677
1677
|
var Le = {}, Tt;
|
|
1678
|
-
function
|
|
1678
|
+
function Cr() {
|
|
1679
1679
|
if (Tt) return Le;
|
|
1680
1680
|
Tt = 1;
|
|
1681
1681
|
var e = ge.Buffer;
|
|
1682
1682
|
Le.utf7 = t, Le.unicode11utf7 = "utf7";
|
|
1683
|
-
function t(A,
|
|
1684
|
-
this.iconv =
|
|
1683
|
+
function t(A, I) {
|
|
1684
|
+
this.iconv = I;
|
|
1685
1685
|
}
|
|
1686
1686
|
t.prototype.encoder = n, t.prototype.decoder = c, t.prototype.bomAware = !0;
|
|
1687
1687
|
var a = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;
|
|
1688
|
-
function n(A,
|
|
1689
|
-
this.iconv =
|
|
1688
|
+
function n(A, I) {
|
|
1689
|
+
this.iconv = I.iconv;
|
|
1690
1690
|
}
|
|
1691
1691
|
n.prototype.write = function(A) {
|
|
1692
|
-
return e.from(A.replace(a, (function(
|
|
1693
|
-
return "+" + (
|
|
1692
|
+
return e.from(A.replace(a, (function(I) {
|
|
1693
|
+
return "+" + (I === "+" ? "" : this.iconv.encode(I, "utf16-be").toString("base64").replace(/=+$/, "")) + "-";
|
|
1694
1694
|
}).bind(this)));
|
|
1695
1695
|
}, n.prototype.end = function() {
|
|
1696
1696
|
};
|
|
1697
|
-
function c(A,
|
|
1698
|
-
this.iconv =
|
|
1697
|
+
function c(A, I) {
|
|
1698
|
+
this.iconv = I.iconv, this.inBase64 = !1, this.base64Accum = "";
|
|
1699
1699
|
}
|
|
1700
1700
|
for (var u = /[A-Za-z0-9\/+]/, f = [], s = 0; s < 256; s++)
|
|
1701
1701
|
f[s] = u.test(String.fromCharCode(s));
|
|
1702
|
-
var p = 43, l = 45,
|
|
1702
|
+
var p = 43, l = 45, v = 38;
|
|
1703
1703
|
c.prototype.write = function(A) {
|
|
1704
|
-
for (var
|
|
1705
|
-
if (!
|
|
1706
|
-
A[y] == p && (
|
|
1704
|
+
for (var I = "", d = 0, E = this.inBase64, b = this.base64Accum, y = 0; y < A.length; y++)
|
|
1705
|
+
if (!E)
|
|
1706
|
+
A[y] == p && (I += this.iconv.decode(A.slice(d, y), "ascii"), d = y + 1, E = !0);
|
|
1707
1707
|
else if (!f[A[y]]) {
|
|
1708
1708
|
if (y == d && A[y] == l)
|
|
1709
|
-
|
|
1709
|
+
I += "+";
|
|
1710
1710
|
else {
|
|
1711
|
-
var
|
|
1712
|
-
|
|
1711
|
+
var S = b + this.iconv.decode(A.slice(d, y), "ascii");
|
|
1712
|
+
I += this.iconv.decode(e.from(S, "base64"), "utf16-be");
|
|
1713
1713
|
}
|
|
1714
|
-
A[y] != l && y--, d = y + 1,
|
|
1714
|
+
A[y] != l && y--, d = y + 1, E = !1, b = "";
|
|
1715
1715
|
}
|
|
1716
|
-
if (!
|
|
1717
|
-
|
|
1716
|
+
if (!E)
|
|
1717
|
+
I += this.iconv.decode(A.slice(d), "ascii");
|
|
1718
1718
|
else {
|
|
1719
|
-
var
|
|
1720
|
-
|
|
1719
|
+
var S = b + this.iconv.decode(A.slice(d), "ascii"), U = S.length - S.length % 8;
|
|
1720
|
+
b = S.slice(U), S = S.slice(0, U), I += this.iconv.decode(e.from(S, "base64"), "utf16-be");
|
|
1721
1721
|
}
|
|
1722
|
-
return this.inBase64 =
|
|
1722
|
+
return this.inBase64 = E, this.base64Accum = b, I;
|
|
1723
1723
|
}, c.prototype.end = function() {
|
|
1724
1724
|
var A = "";
|
|
1725
1725
|
return this.inBase64 && this.base64Accum.length > 0 && (A = this.iconv.decode(e.from(this.base64Accum, "base64"), "utf16-be")), this.inBase64 = !1, this.base64Accum = "", A;
|
|
1726
1726
|
}, Le.utf7imap = w;
|
|
1727
|
-
function w(A,
|
|
1728
|
-
this.iconv =
|
|
1727
|
+
function w(A, I) {
|
|
1728
|
+
this.iconv = I;
|
|
1729
1729
|
}
|
|
1730
1730
|
w.prototype.encoder = g, w.prototype.decoder = m, w.prototype.bomAware = !0;
|
|
1731
|
-
function g(A,
|
|
1732
|
-
this.iconv =
|
|
1731
|
+
function g(A, I) {
|
|
1732
|
+
this.iconv = I.iconv, this.inBase64 = !1, this.base64Accum = e.alloc(6), this.base64AccumIdx = 0;
|
|
1733
1733
|
}
|
|
1734
1734
|
g.prototype.write = function(A) {
|
|
1735
|
-
for (var
|
|
1736
|
-
var U = A.charCodeAt(
|
|
1737
|
-
32 <= U && U <= 126 ? (
|
|
1735
|
+
for (var I = this.inBase64, d = this.base64Accum, E = this.base64AccumIdx, b = e.alloc(A.length * 5 + 10), y = 0, S = 0; S < A.length; S++) {
|
|
1736
|
+
var U = A.charCodeAt(S);
|
|
1737
|
+
32 <= U && U <= 126 ? (I && (E > 0 && (y += b.write(d.slice(0, E).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), y), E = 0), b[y++] = l, I = !1), I || (b[y++] = U, U === v && (b[y++] = l))) : (I || (b[y++] = v, I = !0), I && (d[E++] = U >> 8, d[E++] = U & 255, E == d.length && (y += b.write(d.toString("base64").replace(/\//g, ","), y), E = 0)));
|
|
1738
1738
|
}
|
|
1739
|
-
return this.inBase64 =
|
|
1739
|
+
return this.inBase64 = I, this.base64AccumIdx = E, b.slice(0, y);
|
|
1740
1740
|
}, g.prototype.end = function() {
|
|
1741
|
-
var A = e.alloc(10),
|
|
1742
|
-
return this.inBase64 && (this.base64AccumIdx > 0 && (
|
|
1741
|
+
var A = e.alloc(10), I = 0;
|
|
1742
|
+
return this.inBase64 && (this.base64AccumIdx > 0 && (I += A.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), I), this.base64AccumIdx = 0), A[I++] = l, this.inBase64 = !1), A.slice(0, I);
|
|
1743
1743
|
};
|
|
1744
|
-
function m(A,
|
|
1745
|
-
this.iconv =
|
|
1744
|
+
function m(A, I) {
|
|
1745
|
+
this.iconv = I.iconv, this.inBase64 = !1, this.base64Accum = "";
|
|
1746
1746
|
}
|
|
1747
1747
|
var x = f.slice();
|
|
1748
1748
|
return x[44] = !0, m.prototype.write = function(A) {
|
|
1749
|
-
for (var
|
|
1750
|
-
if (!
|
|
1751
|
-
A[y] ==
|
|
1749
|
+
for (var I = "", d = 0, E = this.inBase64, b = this.base64Accum, y = 0; y < A.length; y++)
|
|
1750
|
+
if (!E)
|
|
1751
|
+
A[y] == v && (I += this.iconv.decode(A.slice(d, y), "ascii"), d = y + 1, E = !0);
|
|
1752
1752
|
else if (!x[A[y]]) {
|
|
1753
1753
|
if (y == d && A[y] == l)
|
|
1754
|
-
|
|
1754
|
+
I += "&";
|
|
1755
1755
|
else {
|
|
1756
|
-
var
|
|
1757
|
-
|
|
1756
|
+
var S = b + this.iconv.decode(A.slice(d, y), "ascii").replace(/,/g, "/");
|
|
1757
|
+
I += this.iconv.decode(e.from(S, "base64"), "utf16-be");
|
|
1758
1758
|
}
|
|
1759
|
-
A[y] != l && y--, d = y + 1,
|
|
1759
|
+
A[y] != l && y--, d = y + 1, E = !1, b = "";
|
|
1760
1760
|
}
|
|
1761
|
-
if (!
|
|
1762
|
-
|
|
1761
|
+
if (!E)
|
|
1762
|
+
I += this.iconv.decode(A.slice(d), "ascii");
|
|
1763
1763
|
else {
|
|
1764
|
-
var
|
|
1765
|
-
|
|
1764
|
+
var S = b + this.iconv.decode(A.slice(d), "ascii").replace(/,/g, "/"), U = S.length - S.length % 8;
|
|
1765
|
+
b = S.slice(U), S = S.slice(0, U), I += this.iconv.decode(e.from(S, "base64"), "utf16-be");
|
|
1766
1766
|
}
|
|
1767
|
-
return this.inBase64 =
|
|
1767
|
+
return this.inBase64 = E, this.base64Accum = b, I;
|
|
1768
1768
|
}, m.prototype.end = function() {
|
|
1769
1769
|
var A = "";
|
|
1770
1770
|
return this.inBase64 && this.base64Accum.length > 0 && (A = this.iconv.decode(e.from(this.base64Accum, "base64"), "utf16-be")), this.inBase64 = !1, this.base64Accum = "", A;
|
|
1771
1771
|
}, Le;
|
|
1772
1772
|
}
|
|
1773
1773
|
var $e = {}, Bt;
|
|
1774
|
-
function
|
|
1774
|
+
function kr() {
|
|
1775
1775
|
if (Bt) return $e;
|
|
1776
1776
|
Bt = 1;
|
|
1777
1777
|
var e = ge.Buffer;
|
|
@@ -1812,7 +1812,7 @@ function Mr() {
|
|
|
1812
1812
|
}, $e;
|
|
1813
1813
|
}
|
|
1814
1814
|
var Xe, Ut;
|
|
1815
|
-
function
|
|
1815
|
+
function Pr() {
|
|
1816
1816
|
return Ut || (Ut = 1, Xe = {
|
|
1817
1817
|
// Not supported by iconv, not sure why.
|
|
1818
1818
|
10029: "maccenteuro",
|
|
@@ -1961,7 +1961,7 @@ function Cr() {
|
|
|
1961
1961
|
}), Xe;
|
|
1962
1962
|
}
|
|
1963
1963
|
var Je, Nt;
|
|
1964
|
-
function
|
|
1964
|
+
function Gr() {
|
|
1965
1965
|
return Nt || (Nt = 1, Je = {
|
|
1966
1966
|
437: "cp437",
|
|
1967
1967
|
737: "cp737",
|
|
@@ -2417,7 +2417,7 @@ function kr() {
|
|
|
2417
2417
|
}), Je;
|
|
2418
2418
|
}
|
|
2419
2419
|
var Qe = {}, Lt;
|
|
2420
|
-
function
|
|
2420
|
+
function Hr() {
|
|
2421
2421
|
if (Lt) return Qe;
|
|
2422
2422
|
Lt = 1;
|
|
2423
2423
|
var e = ge.Buffer;
|
|
@@ -2435,27 +2435,27 @@ function Pr() {
|
|
|
2435
2435
|
this._addDecodeChunk(x[A]);
|
|
2436
2436
|
if (typeof g.gb18030 == "function") {
|
|
2437
2437
|
this.gb18030 = g.gb18030();
|
|
2438
|
-
var
|
|
2438
|
+
var I = this.decodeTables.length;
|
|
2439
2439
|
this.decodeTables.push(u.slice(0));
|
|
2440
2440
|
var d = this.decodeTables.length;
|
|
2441
2441
|
this.decodeTables.push(u.slice(0));
|
|
2442
|
-
for (var
|
|
2443
|
-
for (var
|
|
2444
|
-
if (
|
|
2445
|
-
|
|
2446
|
-
else if (
|
|
2442
|
+
for (var E = this.decodeTables[0], A = 129; A <= 254; A++)
|
|
2443
|
+
for (var b = this.decodeTables[c - E[A]], y = 48; y <= 57; y++) {
|
|
2444
|
+
if (b[y] === t)
|
|
2445
|
+
b[y] = c - I;
|
|
2446
|
+
else if (b[y] > c)
|
|
2447
2447
|
throw new Error("gb18030 decode tables conflict at byte 2");
|
|
2448
|
-
for (var
|
|
2449
|
-
if (
|
|
2450
|
-
|
|
2448
|
+
for (var S = this.decodeTables[c - b[y]], U = 129; U <= 254; U++) {
|
|
2449
|
+
if (S[U] === t)
|
|
2450
|
+
S[U] = c - d;
|
|
2451
2451
|
else {
|
|
2452
|
-
if (
|
|
2452
|
+
if (S[U] === c - d)
|
|
2453
2453
|
continue;
|
|
2454
|
-
if (
|
|
2454
|
+
if (S[U] > c)
|
|
2455
2455
|
throw new Error("gb18030 decode tables conflict at byte 3");
|
|
2456
2456
|
}
|
|
2457
|
-
for (var N = this.decodeTables[c -
|
|
2458
|
-
N[
|
|
2457
|
+
for (var N = this.decodeTables[c - S[U]], R = 48; R <= 57; R++)
|
|
2458
|
+
N[R] === t && (N[R] = a);
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
@@ -2471,20 +2471,20 @@ function Pr() {
|
|
|
2471
2471
|
D[y] = !0;
|
|
2472
2472
|
}
|
|
2473
2473
|
if (this._fillEncodeTable(0, 0, D), g.encodeAdd)
|
|
2474
|
-
for (var
|
|
2475
|
-
Object.prototype.hasOwnProperty.call(g.encodeAdd,
|
|
2474
|
+
for (var C in g.encodeAdd)
|
|
2475
|
+
Object.prototype.hasOwnProperty.call(g.encodeAdd, C) && this._setEncodeChar(C.charCodeAt(0), g.encodeAdd[C]);
|
|
2476
2476
|
this.defCharSB = this.encodeTable[0][m.defaultCharSingleByte.charCodeAt(0)], this.defCharSB === t && (this.defCharSB = this.encodeTable[0]["?"]), this.defCharSB === t && (this.defCharSB = 63);
|
|
2477
2477
|
}
|
|
2478
|
-
p.prototype.encoder = l, p.prototype.decoder =
|
|
2478
|
+
p.prototype.encoder = l, p.prototype.decoder = v, p.prototype._getDecodeTrieNode = function(g) {
|
|
2479
2479
|
for (var m = []; g > 0; g >>>= 8)
|
|
2480
2480
|
m.push(g & 255);
|
|
2481
2481
|
m.length == 0 && m.push(0);
|
|
2482
2482
|
for (var x = this.decodeTables[0], A = m.length - 1; A > 0; A--) {
|
|
2483
|
-
var
|
|
2484
|
-
if (
|
|
2483
|
+
var I = x[m[A]];
|
|
2484
|
+
if (I == t)
|
|
2485
2485
|
x[m[A]] = c - this.decodeTables.length, this.decodeTables.push(x = u.slice(0));
|
|
2486
|
-
else if (
|
|
2487
|
-
x = this.decodeTables[c -
|
|
2486
|
+
else if (I <= c)
|
|
2487
|
+
x = this.decodeTables[c - I];
|
|
2488
2488
|
else
|
|
2489
2489
|
throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + g.toString(16));
|
|
2490
2490
|
}
|
|
@@ -2493,28 +2493,28 @@ function Pr() {
|
|
|
2493
2493
|
var m = parseInt(g[0], 16), x = this._getDecodeTrieNode(m);
|
|
2494
2494
|
m = m & 255;
|
|
2495
2495
|
for (var A = 1; A < g.length; A++) {
|
|
2496
|
-
var
|
|
2497
|
-
if (typeof
|
|
2498
|
-
for (var d = 0; d <
|
|
2499
|
-
var
|
|
2500
|
-
if (55296 <=
|
|
2501
|
-
var
|
|
2502
|
-
if (56320 <=
|
|
2503
|
-
x[m++] = 65536 + (
|
|
2496
|
+
var I = g[A];
|
|
2497
|
+
if (typeof I == "string")
|
|
2498
|
+
for (var d = 0; d < I.length; ) {
|
|
2499
|
+
var E = I.charCodeAt(d++);
|
|
2500
|
+
if (55296 <= E && E < 56320) {
|
|
2501
|
+
var b = I.charCodeAt(d++);
|
|
2502
|
+
if (56320 <= b && b < 57344)
|
|
2503
|
+
x[m++] = 65536 + (E - 55296) * 1024 + (b - 56320);
|
|
2504
2504
|
else
|
|
2505
2505
|
throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + g[0]);
|
|
2506
|
-
} else if (4080 <
|
|
2507
|
-
for (var y = 4095 -
|
|
2508
|
-
|
|
2509
|
-
x[m++] = n - this.decodeTableSeq.length, this.decodeTableSeq.push(
|
|
2506
|
+
} else if (4080 < E && E <= 4095) {
|
|
2507
|
+
for (var y = 4095 - E + 2, S = [], U = 0; U < y; U++)
|
|
2508
|
+
S.push(I.charCodeAt(d++));
|
|
2509
|
+
x[m++] = n - this.decodeTableSeq.length, this.decodeTableSeq.push(S);
|
|
2510
2510
|
} else
|
|
2511
|
-
x[m++] =
|
|
2511
|
+
x[m++] = E;
|
|
2512
2512
|
}
|
|
2513
|
-
else if (typeof
|
|
2514
|
-
for (var N = x[m - 1] + 1, d = 0; d <
|
|
2513
|
+
else if (typeof I == "number")
|
|
2514
|
+
for (var N = x[m - 1] + 1, d = 0; d < I; d++)
|
|
2515
2515
|
x[m++] = N++;
|
|
2516
2516
|
else
|
|
2517
|
-
throw new Error("Incorrect type '" + typeof
|
|
2517
|
+
throw new Error("Incorrect type '" + typeof I + "' given in " + this.encodingName + " at chunk " + g[0]);
|
|
2518
2518
|
}
|
|
2519
2519
|
if (m > 255)
|
|
2520
2520
|
throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + g[0] + ": too long" + m);
|
|
@@ -2525,77 +2525,77 @@ function Pr() {
|
|
|
2525
2525
|
var x = this._getEncodeBucket(g), A = g & 255;
|
|
2526
2526
|
x[A] <= n ? this.encodeTableSeq[n - x[A]][f] = m : x[A] == t && (x[A] = m);
|
|
2527
2527
|
}, p.prototype._setEncodeSequence = function(g, m) {
|
|
2528
|
-
var x = g[0], A = this._getEncodeBucket(x),
|
|
2529
|
-
A[
|
|
2530
|
-
for (var
|
|
2531
|
-
var
|
|
2532
|
-
typeof
|
|
2528
|
+
var x = g[0], A = this._getEncodeBucket(x), I = x & 255, d;
|
|
2529
|
+
A[I] <= n ? d = this.encodeTableSeq[n - A[I]] : (d = {}, A[I] !== t && (d[f] = A[I]), A[I] = n - this.encodeTableSeq.length, this.encodeTableSeq.push(d));
|
|
2530
|
+
for (var E = 1; E < g.length - 1; E++) {
|
|
2531
|
+
var b = d[x];
|
|
2532
|
+
typeof b == "object" ? d = b : (d = d[x] = {}, b !== void 0 && (d[f] = b));
|
|
2533
2533
|
}
|
|
2534
2534
|
x = g[g.length - 1], d[x] = m;
|
|
2535
2535
|
}, p.prototype._fillEncodeTable = function(g, m, x) {
|
|
2536
|
-
for (var A = this.decodeTables[g],
|
|
2537
|
-
var
|
|
2536
|
+
for (var A = this.decodeTables[g], I = !1, d = {}, E = 0; E < 256; E++) {
|
|
2537
|
+
var b = A[E], y = m + E;
|
|
2538
2538
|
if (!x[y])
|
|
2539
|
-
if (
|
|
2540
|
-
this._setEncodeChar(
|
|
2541
|
-
else if (
|
|
2542
|
-
var
|
|
2543
|
-
if (!d[
|
|
2539
|
+
if (b >= 0)
|
|
2540
|
+
this._setEncodeChar(b, y), I = !0;
|
|
2541
|
+
else if (b <= c) {
|
|
2542
|
+
var S = c - b;
|
|
2543
|
+
if (!d[S]) {
|
|
2544
2544
|
var U = y << 8 >>> 0;
|
|
2545
|
-
this._fillEncodeTable(
|
|
2545
|
+
this._fillEncodeTable(S, U, x) ? I = !0 : d[S] = !0;
|
|
2546
2546
|
}
|
|
2547
|
-
} else
|
|
2547
|
+
} else b <= n && (this._setEncodeSequence(this.decodeTableSeq[n - b], y), I = !0);
|
|
2548
2548
|
}
|
|
2549
|
-
return
|
|
2549
|
+
return I;
|
|
2550
2550
|
};
|
|
2551
2551
|
function l(g, m) {
|
|
2552
2552
|
this.leadSurrogate = -1, this.seqObj = void 0, this.encodeTable = m.encodeTable, this.encodeTableSeq = m.encodeTableSeq, this.defaultCharSingleByte = m.defCharSB, this.gb18030 = m.gb18030;
|
|
2553
2553
|
}
|
|
2554
2554
|
l.prototype.write = function(g) {
|
|
2555
|
-
for (var m = e.alloc(g.length * (this.gb18030 ? 4 : 3)), x = this.leadSurrogate, A = this.seqObj,
|
|
2556
|
-
if (
|
|
2555
|
+
for (var m = e.alloc(g.length * (this.gb18030 ? 4 : 3)), x = this.leadSurrogate, A = this.seqObj, I = -1, d = 0, E = 0; ; ) {
|
|
2556
|
+
if (I === -1) {
|
|
2557
2557
|
if (d == g.length) break;
|
|
2558
|
-
var
|
|
2558
|
+
var b = g.charCodeAt(d++);
|
|
2559
2559
|
} else {
|
|
2560
|
-
var
|
|
2561
|
-
|
|
2560
|
+
var b = I;
|
|
2561
|
+
I = -1;
|
|
2562
2562
|
}
|
|
2563
|
-
if (55296 <=
|
|
2564
|
-
if (
|
|
2563
|
+
if (55296 <= b && b < 57344)
|
|
2564
|
+
if (b < 56320)
|
|
2565
2565
|
if (x === -1) {
|
|
2566
|
-
x =
|
|
2566
|
+
x = b;
|
|
2567
2567
|
continue;
|
|
2568
2568
|
} else
|
|
2569
|
-
x =
|
|
2569
|
+
x = b, b = t;
|
|
2570
2570
|
else
|
|
2571
|
-
x !== -1 ? (
|
|
2572
|
-
else x !== -1 && (
|
|
2571
|
+
x !== -1 ? (b = 65536 + (x - 55296) * 1024 + (b - 56320), x = -1) : b = t;
|
|
2572
|
+
else x !== -1 && (I = b, b = t, x = -1);
|
|
2573
2573
|
var y = t;
|
|
2574
|
-
if (A !== void 0 &&
|
|
2575
|
-
var
|
|
2576
|
-
if (typeof
|
|
2577
|
-
A =
|
|
2574
|
+
if (A !== void 0 && b != t) {
|
|
2575
|
+
var S = A[b];
|
|
2576
|
+
if (typeof S == "object") {
|
|
2577
|
+
A = S;
|
|
2578
2578
|
continue;
|
|
2579
|
-
} else typeof
|
|
2579
|
+
} else typeof S == "number" ? y = S : S == null && (S = A[f], S !== void 0 && (y = S, I = b));
|
|
2580
2580
|
A = void 0;
|
|
2581
|
-
} else if (
|
|
2582
|
-
var U = this.encodeTable[
|
|
2583
|
-
if (U !== void 0 && (y = U[
|
|
2581
|
+
} else if (b >= 0) {
|
|
2582
|
+
var U = this.encodeTable[b >> 8];
|
|
2583
|
+
if (U !== void 0 && (y = U[b & 255]), y <= n) {
|
|
2584
2584
|
A = this.encodeTableSeq[n - y];
|
|
2585
2585
|
continue;
|
|
2586
2586
|
}
|
|
2587
2587
|
if (y == t && this.gb18030) {
|
|
2588
|
-
var N = w(this.gb18030.uChars,
|
|
2588
|
+
var N = w(this.gb18030.uChars, b);
|
|
2589
2589
|
if (N != -1) {
|
|
2590
|
-
var y = this.gb18030.gbChars[N] + (
|
|
2591
|
-
m[
|
|
2590
|
+
var y = this.gb18030.gbChars[N] + (b - this.gb18030.uChars[N]);
|
|
2591
|
+
m[E++] = 129 + Math.floor(y / 12600), y = y % 12600, m[E++] = 48 + Math.floor(y / 1260), y = y % 1260, m[E++] = 129 + Math.floor(y / 10), y = y % 10, m[E++] = 48 + y;
|
|
2592
2592
|
continue;
|
|
2593
2593
|
}
|
|
2594
2594
|
}
|
|
2595
2595
|
}
|
|
2596
|
-
y === t && (y = this.defaultCharSingleByte), y < 256 ? m[
|
|
2596
|
+
y === t && (y = this.defaultCharSingleByte), y < 256 ? m[E++] = y : y < 65536 ? (m[E++] = y >> 8, m[E++] = y & 255) : y < 16777216 ? (m[E++] = y >> 16, m[E++] = y >> 8 & 255, m[E++] = y & 255) : (m[E++] = y >>> 24, m[E++] = y >>> 16 & 255, m[E++] = y >>> 8 & 255, m[E++] = y & 255);
|
|
2597
2597
|
}
|
|
2598
|
-
return this.seqObj = A, this.leadSurrogate = x, m.slice(0,
|
|
2598
|
+
return this.seqObj = A, this.leadSurrogate = x, m.slice(0, E);
|
|
2599
2599
|
}, l.prototype.end = function() {
|
|
2600
2600
|
if (!(this.leadSurrogate === -1 && this.seqObj === void 0)) {
|
|
2601
2601
|
var g = e.alloc(10), m = 0;
|
|
@@ -2606,39 +2606,39 @@ function Pr() {
|
|
|
2606
2606
|
return this.leadSurrogate !== -1 && (g[m++] = this.defaultCharSingleByte, this.leadSurrogate = -1), g.slice(0, m);
|
|
2607
2607
|
}
|
|
2608
2608
|
}, l.prototype.findIdx = w;
|
|
2609
|
-
function
|
|
2609
|
+
function v(g, m) {
|
|
2610
2610
|
this.nodeIdx = 0, this.prevBytes = [], this.decodeTables = m.decodeTables, this.decodeTableSeq = m.decodeTableSeq, this.defaultCharUnicode = m.defaultCharUnicode, this.gb18030 = m.gb18030;
|
|
2611
2611
|
}
|
|
2612
|
-
|
|
2613
|
-
for (var m = e.alloc(g.length * 2), x = this.nodeIdx, A = this.prevBytes,
|
|
2614
|
-
var
|
|
2615
|
-
if (!(
|
|
2616
|
-
|
|
2617
|
-
else if (
|
|
2618
|
-
if (
|
|
2619
|
-
var U = (g[
|
|
2612
|
+
v.prototype.write = function(g) {
|
|
2613
|
+
for (var m = e.alloc(g.length * 2), x = this.nodeIdx, A = this.prevBytes, I = this.prevBytes.length, d = -this.prevBytes.length, E, b = 0, y = 0; b < g.length; b++) {
|
|
2614
|
+
var S = b >= 0 ? g[b] : A[b + I], E = this.decodeTables[x][S];
|
|
2615
|
+
if (!(E >= 0)) if (E === t)
|
|
2616
|
+
E = this.defaultCharUnicode.charCodeAt(0), b = d;
|
|
2617
|
+
else if (E === a) {
|
|
2618
|
+
if (b >= 3)
|
|
2619
|
+
var U = (g[b - 3] - 129) * 12600 + (g[b - 2] - 48) * 1260 + (g[b - 1] - 129) * 10 + (S - 48);
|
|
2620
2620
|
else
|
|
2621
|
-
var U = (A[
|
|
2621
|
+
var U = (A[b - 3 + I] - 129) * 12600 + ((b - 2 >= 0 ? g[b - 2] : A[b - 2 + I]) - 48) * 1260 + ((b - 1 >= 0 ? g[b - 1] : A[b - 1 + I]) - 129) * 10 + (S - 48);
|
|
2622
2622
|
var N = w(this.gb18030.gbChars, U);
|
|
2623
|
-
|
|
2624
|
-
} else if (
|
|
2625
|
-
x = c -
|
|
2623
|
+
E = this.gb18030.uChars[N] + U - this.gb18030.gbChars[N];
|
|
2624
|
+
} else if (E <= c) {
|
|
2625
|
+
x = c - E;
|
|
2626
2626
|
continue;
|
|
2627
|
-
} else if (
|
|
2628
|
-
for (var
|
|
2629
|
-
|
|
2630
|
-
|
|
2627
|
+
} else if (E <= n) {
|
|
2628
|
+
for (var R = this.decodeTableSeq[n - E], D = 0; D < R.length - 1; D++)
|
|
2629
|
+
E = R[D], m[y++] = E & 255, m[y++] = E >> 8;
|
|
2630
|
+
E = R[R.length - 1];
|
|
2631
2631
|
} else
|
|
2632
|
-
throw new Error("iconv-lite internal error: invalid decoding table value " +
|
|
2633
|
-
if (
|
|
2634
|
-
|
|
2635
|
-
var F = 55296 |
|
|
2636
|
-
m[y++] = F & 255, m[y++] = F >> 8,
|
|
2632
|
+
throw new Error("iconv-lite internal error: invalid decoding table value " + E + " at " + x + "/" + S);
|
|
2633
|
+
if (E >= 65536) {
|
|
2634
|
+
E -= 65536;
|
|
2635
|
+
var F = 55296 | E >> 10;
|
|
2636
|
+
m[y++] = F & 255, m[y++] = F >> 8, E = 56320 | E & 1023;
|
|
2637
2637
|
}
|
|
2638
|
-
m[y++] =
|
|
2638
|
+
m[y++] = E & 255, m[y++] = E >> 8, x = 0, d = b + 1;
|
|
2639
2639
|
}
|
|
2640
|
-
return this.nodeIdx = x, this.prevBytes = d >= 0 ? Array.prototype.slice.call(g, d) : A.slice(d +
|
|
2641
|
-
},
|
|
2640
|
+
return this.nodeIdx = x, this.prevBytes = d >= 0 ? Array.prototype.slice.call(g, d) : A.slice(d + I).concat(Array.prototype.slice.call(g)), m.slice(0, y).toString("ucs2");
|
|
2641
|
+
}, v.prototype.end = function() {
|
|
2642
2642
|
for (var g = ""; this.prevBytes.length > 0; ) {
|
|
2643
2643
|
g += this.defaultCharUnicode;
|
|
2644
2644
|
var m = this.prevBytes.slice(1);
|
|
@@ -2650,14 +2650,14 @@ function Pr() {
|
|
|
2650
2650
|
if (g[0] > m)
|
|
2651
2651
|
return -1;
|
|
2652
2652
|
for (var x = 0, A = g.length; x < A - 1; ) {
|
|
2653
|
-
var
|
|
2654
|
-
g[
|
|
2653
|
+
var I = x + (A - x + 1 >> 1);
|
|
2654
|
+
g[I] <= m ? x = I : A = I;
|
|
2655
2655
|
}
|
|
2656
2656
|
return x;
|
|
2657
2657
|
}
|
|
2658
2658
|
return Qe;
|
|
2659
2659
|
}
|
|
2660
|
-
const
|
|
2660
|
+
const Yr = [
|
|
2661
2661
|
[
|
|
2662
2662
|
"0",
|
|
2663
2663
|
"\0",
|
|
@@ -3202,7 +3202,7 @@ const Gr = [
|
|
|
3202
3202
|
"fc40",
|
|
3203
3203
|
"髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"
|
|
3204
3204
|
]
|
|
3205
|
-
],
|
|
3205
|
+
], jr = [
|
|
3206
3206
|
[
|
|
3207
3207
|
"0",
|
|
3208
3208
|
"\0",
|
|
@@ -6900,7 +6900,7 @@ const Gr = [
|
|
|
6900
6900
|
"8135f437",
|
|
6901
6901
|
""
|
|
6902
6902
|
]
|
|
6903
|
-
],
|
|
6903
|
+
], qr = [
|
|
6904
6904
|
128,
|
|
6905
6905
|
165,
|
|
6906
6906
|
169,
|
|
@@ -7108,7 +7108,7 @@ const Gr = [
|
|
|
7108
7108
|
65375,
|
|
7109
7109
|
65510,
|
|
7110
7110
|
65536
|
|
7111
|
-
],
|
|
7111
|
+
], zr = [
|
|
7112
7112
|
0,
|
|
7113
7113
|
36,
|
|
7114
7114
|
38,
|
|
@@ -7316,10 +7316,10 @@ const Gr = [
|
|
|
7316
7316
|
39265,
|
|
7317
7317
|
39394,
|
|
7318
7318
|
189e3
|
|
7319
|
-
],
|
|
7320
|
-
uChars:
|
|
7321
|
-
gbChars:
|
|
7322
|
-
},
|
|
7319
|
+
], Vr = {
|
|
7320
|
+
uChars: qr,
|
|
7321
|
+
gbChars: zr
|
|
7322
|
+
}, Wr = [
|
|
7323
7323
|
[
|
|
7324
7324
|
"0",
|
|
7325
7325
|
"\0",
|
|
@@ -10422,7 +10422,7 @@ const Gr = [
|
|
|
10422
10422
|
"f9a1",
|
|
10423
10423
|
"龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"
|
|
10424
10424
|
]
|
|
10425
|
-
],
|
|
10425
|
+
], Zr = [
|
|
10426
10426
|
[
|
|
10427
10427
|
"8740",
|
|
10428
10428
|
"䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"
|
|
@@ -10927,7 +10927,7 @@ const Gr = [
|
|
|
10927
10927
|
]
|
|
10928
10928
|
];
|
|
10929
10929
|
var tt, Ot;
|
|
10930
|
-
function
|
|
10930
|
+
function Kr() {
|
|
10931
10931
|
return Ot || (Ot = 1, tt = {
|
|
10932
10932
|
// == Japanese/ShiftJIS ====================================================
|
|
10933
10933
|
// All japanese encodings are based on JIS X set of standards:
|
|
@@ -10962,7 +10962,7 @@ function Wr() {
|
|
|
10962
10962
|
shiftjis: {
|
|
10963
10963
|
type: "_dbcs",
|
|
10964
10964
|
table: function() {
|
|
10965
|
-
return
|
|
10965
|
+
return Yr;
|
|
10966
10966
|
},
|
|
10967
10967
|
encodeAdd: { "¥": 92, "‾": 126 },
|
|
10968
10968
|
encodeSkipVals: [{ from: 60736, to: 63808 }]
|
|
@@ -10980,7 +10980,7 @@ function Wr() {
|
|
|
10980
10980
|
eucjp: {
|
|
10981
10981
|
type: "_dbcs",
|
|
10982
10982
|
table: function() {
|
|
10983
|
-
return
|
|
10983
|
+
return jr;
|
|
10984
10984
|
},
|
|
10985
10985
|
encodeAdd: { "¥": 92, "‾": 126 }
|
|
10986
10986
|
},
|
|
@@ -11027,7 +11027,7 @@ function Wr() {
|
|
|
11027
11027
|
return et.concat(Dt);
|
|
11028
11028
|
},
|
|
11029
11029
|
gb18030: function() {
|
|
11030
|
-
return
|
|
11030
|
+
return Vr;
|
|
11031
11031
|
},
|
|
11032
11032
|
encodeSkipVals: [128],
|
|
11033
11033
|
encodeAdd: { "€": 41699 }
|
|
@@ -11041,7 +11041,7 @@ function Wr() {
|
|
|
11041
11041
|
cp949: {
|
|
11042
11042
|
type: "_dbcs",
|
|
11043
11043
|
table: function() {
|
|
11044
|
-
return
|
|
11044
|
+
return Wr;
|
|
11045
11045
|
}
|
|
11046
11046
|
},
|
|
11047
11047
|
cseuckr: "cp949",
|
|
@@ -11088,7 +11088,7 @@ function Wr() {
|
|
|
11088
11088
|
big5hkscs: {
|
|
11089
11089
|
type: "_dbcs",
|
|
11090
11090
|
table: function() {
|
|
11091
|
-
return Ft.concat(
|
|
11091
|
+
return Ft.concat(Zr);
|
|
11092
11092
|
},
|
|
11093
11093
|
encodeSkipVals: [
|
|
11094
11094
|
// Although Encoding Standard says we should avoid encoding to HKSCS area (See Step 1 of
|
|
@@ -11170,18 +11170,18 @@ function Wr() {
|
|
|
11170
11170
|
}), tt;
|
|
11171
11171
|
}
|
|
11172
11172
|
var Rt;
|
|
11173
|
-
function
|
|
11173
|
+
function $r() {
|
|
11174
11174
|
return Rt || (Rt = 1, function(e) {
|
|
11175
11175
|
for (var t = [
|
|
11176
|
-
Dr(),
|
|
11177
|
-
Fr(),
|
|
11178
11176
|
Or(),
|
|
11179
11177
|
Rr(),
|
|
11180
11178
|
Mr(),
|
|
11181
11179
|
Cr(),
|
|
11182
11180
|
kr(),
|
|
11183
11181
|
Pr(),
|
|
11184
|
-
|
|
11182
|
+
Gr(),
|
|
11183
|
+
Hr(),
|
|
11184
|
+
Kr()
|
|
11185
11185
|
], a = 0; a < t.length; a++) {
|
|
11186
11186
|
var n = t[a];
|
|
11187
11187
|
for (var c in n)
|
|
@@ -11190,7 +11190,7 @@ function Zr() {
|
|
|
11190
11190
|
}(We)), We;
|
|
11191
11191
|
}
|
|
11192
11192
|
var rt, Mt;
|
|
11193
|
-
function
|
|
11193
|
+
function Xr() {
|
|
11194
11194
|
if (Mt) return rt;
|
|
11195
11195
|
Mt = 1;
|
|
11196
11196
|
var e = ge.Buffer;
|
|
@@ -11259,25 +11259,25 @@ function Kr() {
|
|
|
11259
11259
|
};
|
|
11260
11260
|
}, rt;
|
|
11261
11261
|
}
|
|
11262
|
-
const
|
|
11262
|
+
const Jr = void 0, Qr = void 0, ei = void 0, ti = void 0, ri = void 0, ii = {}, ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11263
11263
|
__proto__: null,
|
|
11264
|
-
Duplex:
|
|
11265
|
-
PassThrough:
|
|
11266
|
-
Readable:
|
|
11267
|
-
Transform:
|
|
11268
|
-
Writable:
|
|
11269
|
-
default:
|
|
11270
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
11264
|
+
Duplex: ti,
|
|
11265
|
+
PassThrough: ri,
|
|
11266
|
+
Readable: Qr,
|
|
11267
|
+
Transform: Jr,
|
|
11268
|
+
Writable: ei,
|
|
11269
|
+
default: ii
|
|
11270
|
+
}, Symbol.toStringTag, { value: "Module" })), ai = /* @__PURE__ */ lr(ni);
|
|
11271
11271
|
(function(e) {
|
|
11272
11272
|
var t = ge.Buffer, a = ct, n = e.exports;
|
|
11273
11273
|
n.encodings = null, n.defaultCharUnicode = "�", n.defaultCharSingleByte = "?", n.encode = function(f, s, p) {
|
|
11274
11274
|
f = "" + (f || "");
|
|
11275
|
-
var l = n.getEncoder(s, p),
|
|
11276
|
-
return w && w.length > 0 ? t.concat([
|
|
11275
|
+
var l = n.getEncoder(s, p), v = l.write(f), w = l.end();
|
|
11276
|
+
return w && w.length > 0 ? t.concat([v, w]) : v;
|
|
11277
11277
|
}, n.decode = function(f, s, p) {
|
|
11278
11278
|
typeof f == "string" && (n.skipDecodeWarning || (console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"), n.skipDecodeWarning = !0), f = t.from("" + (f || ""), "binary"));
|
|
11279
|
-
var l = n.getDecoder(s, p),
|
|
11280
|
-
return w ?
|
|
11279
|
+
var l = n.getDecoder(s, p), v = l.write(f), w = l.end();
|
|
11280
|
+
return w ? v + w : v;
|
|
11281
11281
|
}, n.encodingExists = function(f) {
|
|
11282
11282
|
try {
|
|
11283
11283
|
return n.getCodec(f), !0;
|
|
@@ -11285,23 +11285,23 @@ const $r = void 0, Xr = void 0, Jr = void 0, Qr = void 0, ei = void 0, ti = {},
|
|
|
11285
11285
|
return !1;
|
|
11286
11286
|
}
|
|
11287
11287
|
}, n.toEncoding = n.encode, n.fromEncoding = n.decode, n._codecDataCache = {}, n.getCodec = function(f) {
|
|
11288
|
-
n.encodings || (n.encodings =
|
|
11288
|
+
n.encodings || (n.encodings = $r());
|
|
11289
11289
|
for (var s = n._canonicalizeEncoding(f), p = {}; ; ) {
|
|
11290
11290
|
var l = n._codecDataCache[s];
|
|
11291
11291
|
if (l)
|
|
11292
11292
|
return l;
|
|
11293
|
-
var
|
|
11294
|
-
switch (typeof
|
|
11293
|
+
var v = n.encodings[s];
|
|
11294
|
+
switch (typeof v) {
|
|
11295
11295
|
case "string":
|
|
11296
|
-
s =
|
|
11296
|
+
s = v;
|
|
11297
11297
|
break;
|
|
11298
11298
|
case "object":
|
|
11299
|
-
for (var w in
|
|
11300
|
-
p[w] =
|
|
11301
|
-
p.encodingName || (p.encodingName = s), s =
|
|
11299
|
+
for (var w in v)
|
|
11300
|
+
p[w] = v[w];
|
|
11301
|
+
p.encodingName || (p.encodingName = s), s = v.type;
|
|
11302
11302
|
break;
|
|
11303
11303
|
case "function":
|
|
11304
|
-
return p.encodingName || (p.encodingName = s), l = new
|
|
11304
|
+
return p.encodingName || (p.encodingName = s), l = new v(p, n), n._codecDataCache[p.encodingName] = l, l;
|
|
11305
11305
|
default:
|
|
11306
11306
|
throw new Error("Encoding not recognized: '" + f + "' (searched as: '" + s + "')");
|
|
11307
11307
|
}
|
|
@@ -11316,26 +11316,26 @@ const $r = void 0, Xr = void 0, Jr = void 0, Qr = void 0, ei = void 0, ti = {},
|
|
|
11316
11316
|
return p.bomAware && !(s && s.stripBOM === !1) && (l = new a.StripBOM(l, s)), l;
|
|
11317
11317
|
}, n.enableStreamingAPI = function(f) {
|
|
11318
11318
|
if (!n.supportsStreams) {
|
|
11319
|
-
var s =
|
|
11320
|
-
n.IconvLiteEncoderStream = s.IconvLiteEncoderStream, n.IconvLiteDecoderStream = s.IconvLiteDecoderStream, n.encodeStream = function(l,
|
|
11321
|
-
return new n.IconvLiteEncoderStream(n.getEncoder(l,
|
|
11322
|
-
}, n.decodeStream = function(l,
|
|
11323
|
-
return new n.IconvLiteDecoderStream(n.getDecoder(l,
|
|
11319
|
+
var s = Xr()(f);
|
|
11320
|
+
n.IconvLiteEncoderStream = s.IconvLiteEncoderStream, n.IconvLiteDecoderStream = s.IconvLiteDecoderStream, n.encodeStream = function(l, v) {
|
|
11321
|
+
return new n.IconvLiteEncoderStream(n.getEncoder(l, v), v);
|
|
11322
|
+
}, n.decodeStream = function(l, v) {
|
|
11323
|
+
return new n.IconvLiteDecoderStream(n.getDecoder(l, v), v);
|
|
11324
11324
|
}, n.supportsStreams = !0;
|
|
11325
11325
|
}
|
|
11326
11326
|
};
|
|
11327
11327
|
var c;
|
|
11328
11328
|
try {
|
|
11329
|
-
c =
|
|
11329
|
+
c = ai;
|
|
11330
11330
|
} catch {
|
|
11331
11331
|
}
|
|
11332
11332
|
c && c.Transform ? n.enableStreamingAPI(c) : n.encodeStream = n.decodeStream = function() {
|
|
11333
11333
|
throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
|
|
11334
11334
|
};
|
|
11335
11335
|
})(Wt);
|
|
11336
|
-
var
|
|
11336
|
+
var si = Wt.exports;
|
|
11337
11337
|
Object.defineProperty(Ne, "__esModule", { value: !0 });
|
|
11338
|
-
var Ct =
|
|
11338
|
+
var Ct = si, oi = (
|
|
11339
11339
|
/** @class */
|
|
11340
11340
|
function() {
|
|
11341
11341
|
function e(t, a, n) {
|
|
@@ -11763,38 +11763,38 @@ var Ct = ni, ai = (
|
|
|
11763
11763
|
break;
|
|
11764
11764
|
default:
|
|
11765
11765
|
if (t.length == 3) {
|
|
11766
|
-
var l = t[1], s = t[2],
|
|
11767
|
-
if (typeof s == "function" ?
|
|
11766
|
+
var l = t[1], s = t[2], v = 0;
|
|
11767
|
+
if (typeof s == "function" ? v = s(a, this, t) : typeof s == "string" && a[s] != null ? v = parseInt(a[s]) : v = parseInt(s), typeof l == "string") {
|
|
11768
11768
|
var w = l.replace(/(le|be)$/, ""), g = null;
|
|
11769
|
-
switch (/le$/.test(l) ? g = e.LITTLE_ENDIAN : /be$/.test(l) && (g = e.BIG_ENDIAN), s == "*" && (
|
|
11769
|
+
switch (/le$/.test(l) ? g = e.LITTLE_ENDIAN : /be$/.test(l) && (g = e.BIG_ENDIAN), s == "*" && (v = null), w) {
|
|
11770
11770
|
case "uint8":
|
|
11771
|
-
n = this.readUint8Array(
|
|
11771
|
+
n = this.readUint8Array(v);
|
|
11772
11772
|
break;
|
|
11773
11773
|
case "uint16":
|
|
11774
|
-
n = this.readUint16Array(
|
|
11774
|
+
n = this.readUint16Array(v, g);
|
|
11775
11775
|
break;
|
|
11776
11776
|
case "uint32":
|
|
11777
|
-
n = this.readUint32Array(
|
|
11777
|
+
n = this.readUint32Array(v, g);
|
|
11778
11778
|
break;
|
|
11779
11779
|
case "int8":
|
|
11780
|
-
n = this.readInt8Array(
|
|
11780
|
+
n = this.readInt8Array(v);
|
|
11781
11781
|
break;
|
|
11782
11782
|
case "int16":
|
|
11783
|
-
n = this.readInt16Array(
|
|
11783
|
+
n = this.readInt16Array(v, g);
|
|
11784
11784
|
break;
|
|
11785
11785
|
case "int32":
|
|
11786
|
-
n = this.readInt32Array(
|
|
11786
|
+
n = this.readInt32Array(v, g);
|
|
11787
11787
|
break;
|
|
11788
11788
|
case "float32":
|
|
11789
|
-
n = this.readFloat32Array(
|
|
11789
|
+
n = this.readFloat32Array(v, g);
|
|
11790
11790
|
break;
|
|
11791
11791
|
case "float64":
|
|
11792
|
-
n = this.readFloat64Array(
|
|
11792
|
+
n = this.readFloat64Array(v, g);
|
|
11793
11793
|
break;
|
|
11794
11794
|
case "cstring":
|
|
11795
11795
|
case "utf16string":
|
|
11796
11796
|
case "string":
|
|
11797
|
-
if (
|
|
11797
|
+
if (v == null)
|
|
11798
11798
|
for (n = []; !this.isEof(); ) {
|
|
11799
11799
|
var m = this.readType(l, a);
|
|
11800
11800
|
if (m == null)
|
|
@@ -11802,8 +11802,8 @@ var Ct = ni, ai = (
|
|
|
11802
11802
|
n.push(m);
|
|
11803
11803
|
}
|
|
11804
11804
|
else {
|
|
11805
|
-
n = new Array(
|
|
11806
|
-
for (var x = 0; x <
|
|
11805
|
+
n = new Array(v);
|
|
11806
|
+
for (var x = 0; x < v; x++)
|
|
11807
11807
|
n[x] = this.readType(l, a);
|
|
11808
11808
|
}
|
|
11809
11809
|
break;
|
|
@@ -11812,20 +11812,20 @@ var Ct = ni, ai = (
|
|
|
11812
11812
|
for (n = [], this.buffer; ; ) {
|
|
11813
11813
|
var A = this.position;
|
|
11814
11814
|
try {
|
|
11815
|
-
var
|
|
11816
|
-
if (
|
|
11815
|
+
var I = this.readType(l, a);
|
|
11816
|
+
if (I == null) {
|
|
11817
11817
|
this.position = A;
|
|
11818
11818
|
break;
|
|
11819
11819
|
}
|
|
11820
|
-
n.push(
|
|
11820
|
+
n.push(I);
|
|
11821
11821
|
} catch {
|
|
11822
11822
|
this.position = A;
|
|
11823
11823
|
break;
|
|
11824
11824
|
}
|
|
11825
11825
|
}
|
|
11826
11826
|
else {
|
|
11827
|
-
n = new Array(
|
|
11828
|
-
for (var x = 0; x <
|
|
11827
|
+
n = new Array(v);
|
|
11828
|
+
for (var x = 0; x < v; x++) {
|
|
11829
11829
|
var m = this.readType(l, a);
|
|
11830
11830
|
if (m == null)
|
|
11831
11831
|
return null;
|
|
@@ -11945,52 +11945,52 @@ var Ct = ni, ai = (
|
|
|
11945
11945
|
}, e.BIG_ENDIAN = !1, e.LITTLE_ENDIAN = !0, e.endianness = new Int8Array(new Int16Array([1]).buffer)[0] > 0, e;
|
|
11946
11946
|
}()
|
|
11947
11947
|
);
|
|
11948
|
-
Ne.default =
|
|
11948
|
+
Ne.default = oi;
|
|
11949
11949
|
Uint8Array.prototype.BYTES_PER_ELEMENT === void 0 && (Object.defineProperties(Uint8Array.prototype, { BYTES_PER_ELEMENT: { value: Uint8Array.BYTES_PER_ELEMENT } }), Object.defineProperties(Int8Array.prototype, { BYTES_PER_ELEMENT: { value: Int8Array.BYTES_PER_ELEMENT } }), Object.defineProperties(Uint8ClampedArray.prototype, { BYTES_PER_ELEMENT: { value: Uint8ClampedArray.BYTES_PER_ELEMENT } }), Object.defineProperties(Uint16Array.prototype, { BYTES_PER_ELEMENT: { value: Uint16Array.BYTES_PER_ELEMENT } }), Object.defineProperties(Int16Array.prototype, { BYTES_PER_ELEMENT: { value: Int16Array.BYTES_PER_ELEMENT } }), Object.defineProperties(Uint32Array.prototype, { BYTES_PER_ELEMENT: { value: Uint32Array.BYTES_PER_ELEMENT } }), Object.defineProperties(Int32Array.prototype, { BYTES_PER_ELEMENT: { value: Int32Array.BYTES_PER_ELEMENT } }), Object.defineProperties(Float64Array.prototype, { BYTES_PER_ELEMENT: { value: Float64Array.BYTES_PER_ELEMENT } }));
|
|
11950
|
-
var _e = {}, $t =
|
|
11950
|
+
var _e = {}, $t = ne && ne.__importDefault || function(e) {
|
|
11951
11951
|
return e && e.__esModule ? e : { default: e };
|
|
11952
11952
|
};
|
|
11953
11953
|
Object.defineProperty(_e, "__esModule", { value: !0 });
|
|
11954
11954
|
_e.Reader = _e.TypeEnum = void 0;
|
|
11955
|
-
var kt = $t(Ne),
|
|
11955
|
+
var kt = $t(Ne), ci = ee, O = $t(De), Te;
|
|
11956
11956
|
(function(e) {
|
|
11957
11957
|
e[e.DIRECTORY = 1] = "DIRECTORY", e[e.DOCUMENT = 2] = "DOCUMENT", e[e.ROOT = 5] = "ROOT";
|
|
11958
11958
|
})(Te || (_e.TypeEnum = Te = {}));
|
|
11959
|
-
var
|
|
11959
|
+
var fi = (
|
|
11960
11960
|
/** @class */
|
|
11961
11961
|
function() {
|
|
11962
11962
|
function e(t) {
|
|
11963
11963
|
this.ds = new kt.default(t, 0, kt.default.LITTLE_ENDIAN);
|
|
11964
11964
|
}
|
|
11965
11965
|
return e.prototype.isMSGFile = function() {
|
|
11966
|
-
return this.ds.seek(0), (0,
|
|
11966
|
+
return this.ds.seek(0), (0, ci.arraysEqual)(O.default.FILE_HEADER, this.ds.readInt8Array(O.default.FILE_HEADER.length));
|
|
11967
11967
|
}, e.prototype.headerData = function() {
|
|
11968
|
-
this.bigBlockSize = this.ds.readByte(30) ==
|
|
11968
|
+
this.bigBlockSize = this.ds.readByte(30) == O.default.MSG.L_BIG_BLOCK_MARK ? O.default.MSG.L_BIG_BLOCK_SIZE : O.default.MSG.S_BIG_BLOCK_SIZE, this.bigBlockLength = this.bigBlockSize / 4, this.xBlockLength = this.bigBlockLength - 1, this.batCount = this.ds.readInt(O.default.MSG.HEADER.BAT_COUNT_OFFSET), this.propertyStart = this.ds.readInt(O.default.MSG.HEADER.PROPERTY_START_OFFSET), this.sbatStart = this.ds.readInt(O.default.MSG.HEADER.SBAT_START_OFFSET), this.sbatCount = this.ds.readInt(O.default.MSG.HEADER.SBAT_COUNT_OFFSET), this.xbatStart = this.ds.readInt(O.default.MSG.HEADER.XBAT_START_OFFSET), this.xbatCount = this.ds.readInt(O.default.MSG.HEADER.XBAT_COUNT_OFFSET);
|
|
11969
11969
|
}, e.prototype.convertName = function(t) {
|
|
11970
|
-
var a = this.ds.readShort(t +
|
|
11970
|
+
var a = this.ds.readShort(t + O.default.MSG.PROP.NAME_SIZE_OFFSET);
|
|
11971
11971
|
return a < 1 ? "" : this.ds.readStringAt(t, a / 2).split("\0")[0];
|
|
11972
11972
|
}, e.prototype.convertProperty = function(t) {
|
|
11973
11973
|
return {
|
|
11974
|
-
type: this.ds.readByte(t +
|
|
11974
|
+
type: this.ds.readByte(t + O.default.MSG.PROP.TYPE_OFFSET),
|
|
11975
11975
|
name: this.convertName(t),
|
|
11976
11976
|
// hierarchy
|
|
11977
|
-
previousProperty: this.ds.readInt(t +
|
|
11978
|
-
nextProperty: this.ds.readInt(t +
|
|
11979
|
-
childProperty: this.ds.readInt(t +
|
|
11977
|
+
previousProperty: this.ds.readInt(t + O.default.MSG.PROP.PREVIOUS_PROPERTY_OFFSET),
|
|
11978
|
+
nextProperty: this.ds.readInt(t + O.default.MSG.PROP.NEXT_PROPERTY_OFFSET),
|
|
11979
|
+
childProperty: this.ds.readInt(t + O.default.MSG.PROP.CHILD_PROPERTY_OFFSET),
|
|
11980
11980
|
// data offset
|
|
11981
|
-
startBlock: this.ds.readInt(t +
|
|
11982
|
-
sizeBlock: this.ds.readInt(t +
|
|
11981
|
+
startBlock: this.ds.readInt(t + O.default.MSG.PROP.START_BLOCK_OFFSET),
|
|
11982
|
+
sizeBlock: this.ds.readInt(t + O.default.MSG.PROP.SIZE_OFFSET)
|
|
11983
11983
|
};
|
|
11984
11984
|
}, e.prototype.convertBlockToProperties = function(t, a) {
|
|
11985
|
-
for (var n = this.bigBlockSize /
|
|
11986
|
-
var f = this.ds.readByte(c +
|
|
11985
|
+
for (var n = this.bigBlockSize / O.default.MSG.PROP.PROPERTY_SIZE, c = this.getBlockOffsetAt(t), u = 0; u < n && !(this.ds.byteLength < c + O.default.MSG.PROP.TYPE_OFFSET); u++) {
|
|
11986
|
+
var f = this.ds.readByte(c + O.default.MSG.PROP.TYPE_OFFSET);
|
|
11987
11987
|
switch (f) {
|
|
11988
|
-
case
|
|
11989
|
-
case
|
|
11990
|
-
case
|
|
11988
|
+
case O.default.MSG.PROP.TYPE_ENUM.ROOT:
|
|
11989
|
+
case O.default.MSG.PROP.TYPE_ENUM.DIRECTORY:
|
|
11990
|
+
case O.default.MSG.PROP.TYPE_ENUM.DOCUMENT:
|
|
11991
11991
|
a.push(this.convertProperty(c));
|
|
11992
11992
|
break;
|
|
11993
|
-
case
|
|
11993
|
+
case O.default.MSG.PROP.TYPE_ENUM.UNALLOCATED:
|
|
11994
11994
|
default:
|
|
11995
11995
|
a.push({
|
|
11996
11996
|
type: f,
|
|
@@ -12003,28 +12003,28 @@ var oi = (
|
|
|
12003
12003
|
});
|
|
12004
12004
|
break;
|
|
12005
12005
|
}
|
|
12006
|
-
c +=
|
|
12006
|
+
c += O.default.MSG.PROP.PROPERTY_SIZE;
|
|
12007
12007
|
}
|
|
12008
12008
|
}, e.prototype.createPropertyHierarchy = function(t, a) {
|
|
12009
|
-
if (!(!a || a.childProperty ==
|
|
12009
|
+
if (!(!a || a.childProperty == O.default.MSG.PROP.NO_INDEX)) {
|
|
12010
12010
|
a.children = [];
|
|
12011
12011
|
for (var n = [{ currentMode: "walk", currentIndex: a.childProperty }]; n.length != 0; ) {
|
|
12012
12012
|
var c = n.pop(), u = c.currentMode, f = c.currentIndex, s = t[f];
|
|
12013
|
-
u === "push" ? a.children.push(f) : (s.type ==
|
|
12013
|
+
u === "push" ? a.children.push(f) : (s.type == O.default.MSG.PROP.TYPE_ENUM.DIRECTORY && this.createPropertyHierarchy(t, s), s.nextProperty != O.default.MSG.PROP.NO_INDEX && n.push({ currentMode: "walk", currentIndex: s.nextProperty }), n.push({ currentMode: "push", currentIndex: f }), s.previousProperty != O.default.MSG.PROP.NO_INDEX && n.push({ currentMode: "walk", currentIndex: s.previousProperty }));
|
|
12014
12014
|
}
|
|
12015
12015
|
}
|
|
12016
12016
|
}, e.prototype.propertyDataReader = function(t) {
|
|
12017
|
-
for (var a = [], n = t; n !=
|
|
12017
|
+
for (var a = [], n = t; n != O.default.MSG.END_OF_CHAIN; )
|
|
12018
12018
|
this.convertBlockToProperties(n, a), n = this.getNextBlock(n);
|
|
12019
12019
|
return this.createPropertyHierarchy(a, a[0]), a;
|
|
12020
12020
|
}, e.prototype.parse = function() {
|
|
12021
12021
|
this.headerData(), this.batData = this.batDataReader(), this.xbatCount > 0 && this.xbatDataReader(), this.sbatData = this.sbatDataReader(), this.propertyData = this.propertyDataReader(this.propertyStart), this.bigBlockTable = this.readBigBlockTable();
|
|
12022
12022
|
}, e.prototype.batCountInHeader = function() {
|
|
12023
|
-
var t = (
|
|
12023
|
+
var t = (O.default.MSG.S_BIG_BLOCK_SIZE - O.default.MSG.HEADER.BAT_START_OFFSET) / 4;
|
|
12024
12024
|
return Math.min(this.batCount, t);
|
|
12025
12025
|
}, e.prototype.batDataReader = function() {
|
|
12026
12026
|
var t = new Array(this.batCountInHeader());
|
|
12027
|
-
this.ds.seek(
|
|
12027
|
+
this.ds.seek(O.default.MSG.HEADER.BAT_START_OFFSET);
|
|
12028
12028
|
for (var a = 0; a < t.length; a++)
|
|
12029
12029
|
t[a] = this.ds.readInt32();
|
|
12030
12030
|
return t;
|
|
@@ -12038,46 +12038,46 @@ var oi = (
|
|
|
12038
12038
|
return this.ds.seek(n + 4 * a), this.ds.readInt32();
|
|
12039
12039
|
}, e.prototype.getNextBlockInner = function(t, a) {
|
|
12040
12040
|
var n = Math.floor(t / this.bigBlockLength), c = t % this.bigBlockLength, u = a[n];
|
|
12041
|
-
return typeof u > "u" ?
|
|
12041
|
+
return typeof u > "u" ? O.default.MSG.END_OF_CHAIN : this.getBlockValueAt(u, c);
|
|
12042
12042
|
}, e.prototype.getNextBlock = function(t) {
|
|
12043
12043
|
return this.getNextBlockInner(t, this.batData);
|
|
12044
12044
|
}, e.prototype.sbatDataReader = function() {
|
|
12045
|
-
for (var t = [], a = this.sbatStart, n = 0; n < this.sbatCount && a && a !=
|
|
12045
|
+
for (var t = [], a = this.sbatStart, n = 0; n < this.sbatCount && a && a != O.default.MSG.END_OF_CHAIN; n++)
|
|
12046
12046
|
t.push(a), a = this.getNextBlock(a);
|
|
12047
12047
|
return t;
|
|
12048
12048
|
}, e.prototype.xbatDataReader = function() {
|
|
12049
12049
|
for (var t = this.batCountInHeader(), a = this.batCount, n = a - t, c = this.xbatStart, u = 0; u < this.xbatCount; u++) {
|
|
12050
12050
|
for (var f = this.getBlockAt(c), s = Math.min(n, this.xBlockLength), p = 0; p < s; p++) {
|
|
12051
12051
|
var l = f[p];
|
|
12052
|
-
if (l ==
|
|
12052
|
+
if (l == O.default.MSG.UNUSED_BLOCK || l == O.default.MSG.END_OF_CHAIN)
|
|
12053
12053
|
break;
|
|
12054
12054
|
this.batData.push(l);
|
|
12055
12055
|
}
|
|
12056
|
-
if (n -= s, c = f[this.xBlockLength], c ==
|
|
12056
|
+
if (n -= s, c = f[this.xBlockLength], c == O.default.MSG.UNUSED_BLOCK || c == O.default.MSG.END_OF_CHAIN)
|
|
12057
12057
|
break;
|
|
12058
12058
|
}
|
|
12059
12059
|
}, e.prototype.getNextBlockSmall = function(t) {
|
|
12060
12060
|
return this.getNextBlockInner(t, this.sbatData);
|
|
12061
12061
|
}, e.prototype.getChainByBlockSmall = function(t) {
|
|
12062
|
-
for (var a = [], n = t.startBlock; n !=
|
|
12062
|
+
for (var a = [], n = t.startBlock; n != O.default.MSG.END_OF_CHAIN; )
|
|
12063
12063
|
a.push(n), n = this.getNextBlockSmall(n);
|
|
12064
12064
|
return a;
|
|
12065
12065
|
}, e.prototype.readBigBlockTable = function() {
|
|
12066
|
-
for (var t = this.propertyData[0], a = [], n = t.startBlock, c = 0; n !=
|
|
12066
|
+
for (var t = this.propertyData[0], a = [], n = t.startBlock, c = 0; n != O.default.MSG.END_OF_CHAIN; c++)
|
|
12067
12067
|
a.push(n), n = this.getNextBlock(n);
|
|
12068
12068
|
return a;
|
|
12069
12069
|
}, e.prototype.readDataByBlockSmall = function(t, a, n, c) {
|
|
12070
|
-
var u = t *
|
|
12070
|
+
var u = t * O.default.MSG.SMALL_BLOCK_SIZE, f = Math.floor(u / this.bigBlockSize), s = u % this.bigBlockSize, p = this.bigBlockTable[f], l = this.getBlockOffsetAt(p);
|
|
12071
12071
|
return this.ds.seek(l + s), this.ds.readToUint8Array(a, n, c);
|
|
12072
12072
|
}, e.prototype.readChainDataByBlockSmall = function(t, a) {
|
|
12073
12073
|
for (var n = new Uint8Array(t.sizeBlock), c = 0, u = 0; c < a.length; c++) {
|
|
12074
|
-
var f = n.length < u +
|
|
12074
|
+
var f = n.length < u + O.default.MSG.SMALL_BLOCK_SIZE ? n.length - u : O.default.MSG.SMALL_BLOCK_SIZE;
|
|
12075
12075
|
this.readDataByBlockSmall(a[c], f, n, u), u += f;
|
|
12076
12076
|
}
|
|
12077
12077
|
return n;
|
|
12078
12078
|
}, e.prototype.readProperty = function(t) {
|
|
12079
12079
|
if (t.sizeBlock)
|
|
12080
|
-
if (t.sizeBlock <
|
|
12080
|
+
if (t.sizeBlock < O.default.MSG.BIG_BLOCK_MIN_DOC_SIZE) {
|
|
12081
12081
|
var a = this.getChainByBlockSmall(t);
|
|
12082
12082
|
if (a.length == 1) {
|
|
12083
12083
|
var n = new Uint8Array(t.sizeBlock);
|
|
@@ -12147,9 +12147,9 @@ var oi = (
|
|
|
12147
12147
|
var f = c.children;
|
|
12148
12148
|
if (f)
|
|
12149
12149
|
for (var s = 0, p = f; s < p.length; s++) {
|
|
12150
|
-
var l = p[s],
|
|
12151
|
-
if (
|
|
12152
|
-
return a.readProperty(
|
|
12150
|
+
var l = p[s], v = n[l];
|
|
12151
|
+
if (v && v.type === Te.DOCUMENT && v.name === u)
|
|
12152
|
+
return a.readProperty(v);
|
|
12153
12153
|
}
|
|
12154
12154
|
return null;
|
|
12155
12155
|
}
|
|
@@ -12159,17 +12159,17 @@ var oi = (
|
|
|
12159
12159
|
}, e;
|
|
12160
12160
|
}()
|
|
12161
12161
|
);
|
|
12162
|
-
_e.Reader =
|
|
12163
|
-
var ht = {}, Xt =
|
|
12162
|
+
_e.Reader = fi;
|
|
12163
|
+
var ht = {}, Xt = ne && ne.__importDefault || function(e) {
|
|
12164
12164
|
return e && e.__esModule ? e : { default: e };
|
|
12165
12165
|
};
|
|
12166
12166
|
Object.defineProperty(ht, "__esModule", { value: !0 });
|
|
12167
|
-
ht.burn =
|
|
12168
|
-
var we = _e, Pt = Xt(Ne),
|
|
12167
|
+
ht.burn = di;
|
|
12168
|
+
var we = _e, Pt = Xt(Ne), ui = Xt(De);
|
|
12169
12169
|
function Ie(e) {
|
|
12170
12170
|
return e + 511 & -512;
|
|
12171
12171
|
}
|
|
12172
|
-
function
|
|
12172
|
+
function hi(e) {
|
|
12173
12173
|
return e + 63 & -64;
|
|
12174
12174
|
}
|
|
12175
12175
|
var Gt = (
|
|
@@ -12196,7 +12196,7 @@ var Gt = (
|
|
|
12196
12196
|
return this.sectors.length;
|
|
12197
12197
|
}, e;
|
|
12198
12198
|
}()
|
|
12199
|
-
),
|
|
12199
|
+
), li = (
|
|
12200
12200
|
/** @class */
|
|
12201
12201
|
function() {
|
|
12202
12202
|
function e(t) {
|
|
@@ -12221,56 +12221,56 @@ var Gt = (
|
|
|
12221
12221
|
return k.entry.type == we.TypeEnum.DOCUMENT && k.isMini === !0;
|
|
12222
12222
|
}); f < s.length; f++) {
|
|
12223
12223
|
var u = s[f];
|
|
12224
|
-
u.firstSector = u.entry.length === 0 ? -2 : this.miniFat.allocate(
|
|
12224
|
+
u.firstSector = u.entry.length === 0 ? -2 : this.miniFat.allocate(hi(u.entry.length) / 64);
|
|
12225
12225
|
}
|
|
12226
|
-
var p = Ie(4 * this.miniFat.count()) / 512, l = p !== 0 ? this.fat.allocate(p) : -2,
|
|
12226
|
+
var p = Ie(4 * this.miniFat.count()) / 512, l = p !== 0 ? this.fat.allocate(p) : -2, v = 64 * this.miniFat.count(), w = this.fat.allocate(Ie(v) / 512);
|
|
12227
12227
|
this.liteEnts[0].firstSector = w;
|
|
12228
|
-
var g = this.fat.allocateAs(Ie(4 * (this.fat.count() + this.fat.count() / 128 + this.fat.count() / (128 * 109))) / 512, -3), m = this.fat.count() - g, x = m > 109 ? Ie(4 * Math.floor((m - 109) / 127 * 128)) / 512 : 0, A = x !== 0 ? this.fat.allocateAs(x, -4) : -2,
|
|
12228
|
+
var g = this.fat.allocateAs(Ie(4 * (this.fat.count() + this.fat.count() / 128 + this.fat.count() / (128 * 109))) / 512, -3), m = this.fat.count() - g, x = m > 109 ? Ie(4 * Math.floor((m - 109) / 127 * 128)) / 512 : 0, A = x !== 0 ? this.fat.allocateAs(x, -4) : -2, I = new ArrayBuffer(512 * (1 + this.fat.count())), d = new Pt.default(I, 0, Pt.default.LITTLE_ENDIAN);
|
|
12229
12229
|
d.dynamicSize = !1, this.miniFat.finalize(512 / 4, -1);
|
|
12230
|
-
var
|
|
12230
|
+
var E = [], b = [];
|
|
12231
12231
|
{
|
|
12232
12232
|
for (var y = 0; y < 109 && y < m; y++)
|
|
12233
|
-
v.push(g + y);
|
|
12234
|
-
for (var I = A + 1; y < m; y++) {
|
|
12235
12233
|
E.push(g + y);
|
|
12236
|
-
|
|
12237
|
-
|
|
12234
|
+
for (var S = A + 1; y < m; y++) {
|
|
12235
|
+
b.push(g + y);
|
|
12236
|
+
var U = b.length & 127;
|
|
12237
|
+
U === 127 && (b.push(S), S++);
|
|
12238
12238
|
}
|
|
12239
12239
|
for (; ; ) {
|
|
12240
|
-
var U =
|
|
12240
|
+
var U = b.length & 127;
|
|
12241
12241
|
if (U === 0)
|
|
12242
12242
|
break;
|
|
12243
|
-
|
|
12243
|
+
b.push(U === 127 ? -2 : -1);
|
|
12244
12244
|
}
|
|
12245
12245
|
}
|
|
12246
12246
|
{
|
|
12247
|
-
d.seek(0), d.writeUint8Array(
|
|
12248
|
-
for (var y = 0; y <
|
|
12249
|
-
d.writeInt32(
|
|
12247
|
+
d.seek(0), d.writeUint8Array(ui.default.FILE_HEADER), d.seek(24), d.writeUint16(62), d.writeUint16(3), d.writeUint16(65534), d.writeUint16(9), d.writeUint16(6), d.seek(44), d.writeInt32(m), d.writeInt32(a), d.seek(56), d.writeInt32(4096), d.writeInt32(l), d.writeInt32(p), d.writeInt32(A), d.writeInt32(x);
|
|
12248
|
+
for (var y = 0; y < E.length; y++)
|
|
12249
|
+
d.writeInt32(E[y]);
|
|
12250
12250
|
for (; y < 109; y++)
|
|
12251
12251
|
d.writeInt32(-1);
|
|
12252
12252
|
}
|
|
12253
12253
|
for (var y = 0; y < this.liteEnts.length; y++) {
|
|
12254
12254
|
var u = this.liteEnts[y], N = 512 * (1 + a) + 128 * y;
|
|
12255
12255
|
d.seek(N), d.writeUCS2String(u.entry.name, null, null);
|
|
12256
|
-
var
|
|
12257
|
-
d.seek(N + 64), d.writeUint16(Math.min(64,
|
|
12258
|
-
var D = y === 0 ?
|
|
12256
|
+
var R = d.position - N;
|
|
12257
|
+
d.seek(N + 64), d.writeUint16(Math.min(64, R + 2)), d.writeUint8(u.entry.type), d.writeUint8(u.isRed ? 0 : 1), d.writeInt32(u.left), d.writeInt32(u.right), d.writeInt32(u.child), y === 0 && (d.seek(N + 80), d.writeUint8Array([11, 13, 2, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]));
|
|
12258
|
+
var D = y === 0 ? v : u.entry.length, F = D !== 0 ? u.firstSector : u.entry.type === we.TypeEnum.DIRECTORY ? 0 : -2;
|
|
12259
12259
|
d.seek(N + 116), d.writeInt32(F), d.writeInt32(D);
|
|
12260
12260
|
}
|
|
12261
|
-
for (var
|
|
12261
|
+
for (var C = 0, G = this.liteEnts.filter(function(k) {
|
|
12262
12262
|
return k.entry.type == we.TypeEnum.DOCUMENT && k.isMini === !1;
|
|
12263
|
-
});
|
|
12264
|
-
var u =
|
|
12265
|
-
d.seek(512 * (1 + u.firstSector)), d.writeUint8Array(
|
|
12263
|
+
}); C < G.length; C++) {
|
|
12264
|
+
var u = G[C], z = u.entry.binaryProvider();
|
|
12265
|
+
d.seek(512 * (1 + u.firstSector)), d.writeUint8Array(z);
|
|
12266
12266
|
}
|
|
12267
|
-
for (var
|
|
12267
|
+
for (var Z = 0, Y = this.liteEnts.filter(function(k) {
|
|
12268
12268
|
return k.entry.type == we.TypeEnum.DOCUMENT && k.isMini === !0;
|
|
12269
|
-
});
|
|
12270
|
-
var u =
|
|
12271
|
-
d.seek(512 * (1 + w) + 64 * u.firstSector), d.writeUint8Array(
|
|
12269
|
+
}); Z < Y.length; Z++) {
|
|
12270
|
+
var u = Y[Z], z = u.entry.binaryProvider();
|
|
12271
|
+
d.seek(512 * (1 + w) + 64 * u.firstSector), d.writeUint8Array(z);
|
|
12272
12272
|
}
|
|
12273
|
-
d.seek(512 * (1 + l)), d.writeInt32Array(this.miniFat.sectors), this.fat.finalize(512 / 4, -1), d.seek(512 * (1 + g)), d.writeInt32Array(this.fat.sectors), x >= 1 && (d.seek(512 * (1 + A)), d.writeInt32Array(
|
|
12273
|
+
d.seek(512 * (1 + l)), d.writeInt32Array(this.miniFat.sectors), this.fat.finalize(512 / 4, -1), d.seek(512 * (1 + g)), d.writeInt32Array(this.fat.sectors), x >= 1 && (d.seek(512 * (1 + A)), d.writeInt32Array(b)), this.array = I;
|
|
12274
12274
|
}
|
|
12275
12275
|
return e.prototype.compareName = function(t, a) {
|
|
12276
12276
|
var n = t.length - a.length;
|
|
@@ -12290,8 +12290,8 @@ var Gt = (
|
|
|
12290
12290
|
});
|
|
12291
12291
|
var f = function(w, g, m) {
|
|
12292
12292
|
if (w < g) {
|
|
12293
|
-
var x = Math.floor((w + g) / 2), A = u[x],
|
|
12294
|
-
return
|
|
12293
|
+
var x = Math.floor((w + g) / 2), A = u[x], I = n[A];
|
|
12294
|
+
return I.isRed = m, I.left = f(w, x, !m), I.right = f(x + 1, g, !m), A;
|
|
12295
12295
|
} else
|
|
12296
12296
|
return -1;
|
|
12297
12297
|
}, s = function() {
|
|
@@ -12302,23 +12302,23 @@ var Gt = (
|
|
|
12302
12302
|
for (var p = 0, l = u.filter(function(w) {
|
|
12303
12303
|
return n[w].entry.type === we.TypeEnum.DIRECTORY;
|
|
12304
12304
|
}); p < l.length; p++) {
|
|
12305
|
-
var
|
|
12306
|
-
this.buildTree(
|
|
12305
|
+
var v = l[p];
|
|
12306
|
+
this.buildTree(v);
|
|
12307
12307
|
}
|
|
12308
12308
|
}
|
|
12309
12309
|
}, e;
|
|
12310
12310
|
}()
|
|
12311
12311
|
);
|
|
12312
|
-
function
|
|
12313
|
-
return new Uint8Array(new
|
|
12312
|
+
function di(e) {
|
|
12313
|
+
return new Uint8Array(new li(e).array);
|
|
12314
12314
|
}
|
|
12315
|
-
var lt = {},
|
|
12315
|
+
var lt = {}, pi = ne && ne.__importDefault || function(e) {
|
|
12316
12316
|
return e && e.__esModule ? e : { default: e };
|
|
12317
12317
|
};
|
|
12318
12318
|
Object.defineProperty(lt, "__esModule", { value: !0 });
|
|
12319
|
-
lt.parse =
|
|
12320
|
-
var Ht =
|
|
12321
|
-
function
|
|
12319
|
+
lt.parse = yi;
|
|
12320
|
+
var Ht = pi(Ne);
|
|
12321
|
+
function yi(e) {
|
|
12322
12322
|
for (var t = new Ht.default(e, 0, Ht.default.LITTLE_ENDIAN), a = []; !t.isEof(); ) {
|
|
12323
12323
|
var n = t.readUint32(), c = t.readUint16(), u = t.readUint16();
|
|
12324
12324
|
a.push({
|
|
@@ -12332,8 +12332,8 @@ function di(e) {
|
|
|
12332
12332
|
}
|
|
12333
12333
|
var dt = {};
|
|
12334
12334
|
Object.defineProperty(dt, "__esModule", { value: !0 });
|
|
12335
|
-
dt.parse =
|
|
12336
|
-
function
|
|
12335
|
+
dt.parse = bi;
|
|
12336
|
+
function bi(e) {
|
|
12337
12337
|
for (var t = [], a = 0; !e.isEof(); ) {
|
|
12338
12338
|
var n = e.readUint16();
|
|
12339
12339
|
if (n === 258) {
|
|
@@ -12343,13 +12343,13 @@ function pi(e) {
|
|
|
12343
12343
|
e.readString(p);
|
|
12344
12344
|
var l = e.readUint8();
|
|
12345
12345
|
e.readString(l);
|
|
12346
|
-
var
|
|
12347
|
-
e.readString(
|
|
12346
|
+
var v = e.readUint8();
|
|
12347
|
+
e.readString(v), e.readInt32(), e.readUint8(), e.readInt32(), e.readInt32(), e.readInt32(), e.readInt32(), e.readInt32(), e.readInt32(), t.push({ VerbType: u, DisplayName: s });
|
|
12348
12348
|
}
|
|
12349
12349
|
} else if (n === 260)
|
|
12350
12350
|
for (var c = 0; c < a; c += 1) {
|
|
12351
|
-
var f = e.readUint8(), s = e.readUCS2String(f),
|
|
12352
|
-
e.readUCS2String(
|
|
12351
|
+
var f = e.readUint8(), s = e.readUCS2String(f), v = e.readUint8();
|
|
12352
|
+
e.readUCS2String(v), t[c].DisplayName = s;
|
|
12353
12353
|
}
|
|
12354
12354
|
}
|
|
12355
12355
|
return t.filter(function(w) {
|
|
@@ -12360,9 +12360,9 @@ function pi(e) {
|
|
|
12360
12360
|
}
|
|
12361
12361
|
var pt = {};
|
|
12362
12362
|
Object.defineProperty(pt, "__esModule", { value: !0 });
|
|
12363
|
-
pt.parse =
|
|
12364
|
-
var it =
|
|
12365
|
-
function
|
|
12363
|
+
pt.parse = mi;
|
|
12364
|
+
var it = ee, vi = 1, Ei = 2;
|
|
12365
|
+
function mi(e) {
|
|
12366
12366
|
var t = { rules: [] };
|
|
12367
12367
|
if (!e.isEof()) {
|
|
12368
12368
|
var a = e.readUint8();
|
|
@@ -12371,7 +12371,7 @@ function vi(e) {
|
|
|
12371
12371
|
if (e.readUint8(), a < 1)
|
|
12372
12372
|
throw new Error("TZDEFINITION minor version not supported");
|
|
12373
12373
|
var n = e.readUint16(), c = e.readUint16();
|
|
12374
|
-
if (c &
|
|
12374
|
+
if (c & vi && (e.readInt32(), e.readInt32(), e.readInt32(), e.readInt32()), c & Ei) {
|
|
12375
12375
|
var u = e.readUint16();
|
|
12376
12376
|
t.keyName = e.readUCS2String(u);
|
|
12377
12377
|
}
|
|
@@ -12381,25 +12381,25 @@ function vi(e) {
|
|
|
12381
12381
|
var p = e.readUint8();
|
|
12382
12382
|
if (p !== 2 || (e.readUint8(), p < 1))
|
|
12383
12383
|
break;
|
|
12384
|
-
var l = e.readUint16(),
|
|
12384
|
+
var l = e.readUint16(), v = e.position, w = e.readUint16(), g = (0, it.readSystemTime)(e), m = e.readInt32(), x = e.readInt32(), A = e.readInt32(), I = (0, it.readTransitionSystemTime)(e), d = (0, it.readTransitionSystemTime)(e), E = Object.assign({}, {
|
|
12385
12385
|
flags: w,
|
|
12386
12386
|
start: (g == null ? void 0 : g.toUTCString()) || null,
|
|
12387
12387
|
bias: m,
|
|
12388
12388
|
standardBias: x,
|
|
12389
12389
|
daylightBias: A,
|
|
12390
|
-
standardDate:
|
|
12390
|
+
standardDate: I,
|
|
12391
12391
|
daylightDate: d
|
|
12392
12392
|
});
|
|
12393
|
-
t.rules.push(
|
|
12393
|
+
t.rules.push(E), e.seek(v + l);
|
|
12394
12394
|
}
|
|
12395
12395
|
}
|
|
12396
12396
|
return t;
|
|
12397
12397
|
}
|
|
12398
12398
|
var yt = {};
|
|
12399
12399
|
Object.defineProperty(yt, "__esModule", { value: !0 });
|
|
12400
|
-
yt.parse =
|
|
12401
|
-
var Yt =
|
|
12402
|
-
function
|
|
12400
|
+
yt.parse = gi;
|
|
12401
|
+
var Yt = ee;
|
|
12402
|
+
function gi(e) {
|
|
12403
12403
|
if (!e.isEof()) {
|
|
12404
12404
|
var t = e.readInt32(), a = e.readInt32(), n = e.readInt32(), c = e.readUint16(), u = (0, Yt.readTransitionSystemTime)(e), f = e.readUint16(), s = (0, Yt.readTransitionSystemTime)(e);
|
|
12405
12405
|
return Object.assign({}, {
|
|
@@ -12414,47 +12414,47 @@ function Ei(e) {
|
|
|
12414
12414
|
}
|
|
12415
12415
|
return null;
|
|
12416
12416
|
}
|
|
12417
|
-
var
|
|
12418
|
-
Object.defineProperty(
|
|
12419
|
-
|
|
12420
|
-
|
|
12417
|
+
var ae = {};
|
|
12418
|
+
Object.defineProperty(ae, "__esModule", { value: !0 });
|
|
12419
|
+
ae.OverrideFlags = ae.EndType = ae.CalendarType = ae.PatternType = ae.RecurFrequency = void 0;
|
|
12420
|
+
ae.parse = _i;
|
|
12421
12421
|
var jt;
|
|
12422
12422
|
(function(e) {
|
|
12423
12423
|
e[e.Daily = 8202] = "Daily", e[e.Weekly = 8203] = "Weekly", e[e.Monthly = 8204] = "Monthly", e[e.Yearly = 8205] = "Yearly";
|
|
12424
|
-
})(jt || (
|
|
12424
|
+
})(jt || (ae.RecurFrequency = jt = {}));
|
|
12425
12425
|
var Ee;
|
|
12426
12426
|
(function(e) {
|
|
12427
12427
|
e[e.Day = 0] = "Day", e[e.Week = 1] = "Week", e[e.Month = 2] = "Month", e[e.MonthEnd = 4] = "MonthEnd", e[e.MonthNth = 3] = "MonthNth", e[e.HjMonth = 10] = "HjMonth", e[e.HjMonthNth = 11] = "HjMonthNth", e[e.HjMonthEnd = 12] = "HjMonthEnd";
|
|
12428
|
-
})(Ee || (
|
|
12428
|
+
})(Ee || (ae.PatternType = Ee = {}));
|
|
12429
12429
|
var qt;
|
|
12430
12430
|
(function(e) {
|
|
12431
12431
|
e[e.Default = 0] = "Default", e[e.CAL_GREGORIAN = 1] = "CAL_GREGORIAN", e[e.CAL_GREGORIAN_US = 2] = "CAL_GREGORIAN_US", e[e.CAL_JAPAN = 3] = "CAL_JAPAN", e[e.CAL_TAIWAN = 4] = "CAL_TAIWAN", e[e.CAL_KOREA = 5] = "CAL_KOREA", e[e.CAL_HIJRI = 6] = "CAL_HIJRI", e[e.CAL_THAI = 7] = "CAL_THAI", e[e.CAL_HEBREW = 8] = "CAL_HEBREW", e[e.CAL_GREGORIAN_ME_FRENCH = 9] = "CAL_GREGORIAN_ME_FRENCH", e[e.CAL_GREGORIAN_ARABIC = 10] = "CAL_GREGORIAN_ARABIC", e[e.CAL_GREGORIAN_XLIT_ENGLISH = 11] = "CAL_GREGORIAN_XLIT_ENGLISH", e[e.CAL_GREGORIAN_XLIT_FRENCH = 12] = "CAL_GREGORIAN_XLIT_FRENCH", e[e.CAL_LUNAR_JAPANESE = 14] = "CAL_LUNAR_JAPANESE", e[e.CAL_CHINESE_LUNAR = 15] = "CAL_CHINESE_LUNAR", e[e.CAL_SAKA = 16] = "CAL_SAKA", e[e.CAL_LUNAR_ETO_CHN = 17] = "CAL_LUNAR_ETO_CHN", e[e.CAL_LUNAR_ETO_KOR = 18] = "CAL_LUNAR_ETO_KOR", e[e.CAL_LUNAR_ROKUYOU = 19] = "CAL_LUNAR_ROKUYOU", e[e.CAL_LUNAR_KOREAN = 20] = "CAL_LUNAR_KOREAN", e[e.CAL_UMALQURA = 23] = "CAL_UMALQURA";
|
|
12432
|
-
})(qt || (
|
|
12432
|
+
})(qt || (ae.CalendarType = qt = {}));
|
|
12433
12433
|
var zt;
|
|
12434
12434
|
(function(e) {
|
|
12435
12435
|
e[e.EndAfterDate = 8225] = "EndAfterDate", e[e.EndAfterNOccurrences = 8226] = "EndAfterNOccurrences", e[e.NeverEnd = 8227] = "NeverEnd", e[e.NeverEnd2 = 4294967295] = "NeverEnd2";
|
|
12436
|
-
})(zt || (
|
|
12437
|
-
var
|
|
12436
|
+
})(zt || (ae.EndType = zt = {}));
|
|
12437
|
+
var re;
|
|
12438
12438
|
(function(e) {
|
|
12439
12439
|
e[e.ARO_SUBJECT = 1] = "ARO_SUBJECT", e[e.ARO_MEETINGTYPE = 2] = "ARO_MEETINGTYPE", e[e.ARO_REMINDERDELTA = 4] = "ARO_REMINDERDELTA", e[e.ARO_REMINDER = 8] = "ARO_REMINDER", e[e.ARO_LOCATION = 16] = "ARO_LOCATION", e[e.ARO_BUSYSTATUS = 32] = "ARO_BUSYSTATUS", e[e.ARO_ATTACHMENT = 64] = "ARO_ATTACHMENT", e[e.ARO_SUBTYPE = 128] = "ARO_SUBTYPE", e[e.ARO_APPTCOLOR = 256] = "ARO_APPTCOLOR", e[e.ARO_EXCEPTIONAL_BODY = 512] = "ARO_EXCEPTIONAL_BODY";
|
|
12440
|
-
})(
|
|
12441
|
-
function
|
|
12440
|
+
})(re || (ae.OverrideFlags = re = {}));
|
|
12441
|
+
function wi(e) {
|
|
12442
12442
|
var t = e.readUint16();
|
|
12443
12443
|
if (t !== 12292)
|
|
12444
12444
|
throw new Error("ReaderVersion not supported");
|
|
12445
12445
|
var a = e.readUint16();
|
|
12446
12446
|
if (a !== 12292)
|
|
12447
12447
|
throw new Error("WriterVersion not supported");
|
|
12448
|
-
var n = e.readUint16(), c = e.readUint16(), u = e.readUint16(), f = e.readUint32(), s = e.readUint32(), p = e.readUint32(), l = void 0,
|
|
12448
|
+
var n = e.readUint16(), c = e.readUint16(), u = e.readUint16(), f = e.readUint32(), s = e.readUint32(), p = e.readUint32(), l = void 0, v = void 0, w = void 0;
|
|
12449
12449
|
c === Ee.Week ? l = {
|
|
12450
12450
|
dayOfWeekBits: e.readUint32()
|
|
12451
|
-
} : c === Ee.Month || c === Ee.MonthEnd || c === Ee.HjMonth || c === Ee.HjMonthEnd ?
|
|
12451
|
+
} : c === Ee.Month || c === Ee.MonthEnd || c === Ee.HjMonth || c === Ee.HjMonthEnd ? v = {
|
|
12452
12452
|
day: e.readUint32()
|
|
12453
12453
|
} : (c === Ee.MonthNth || c === Ee.HjMonthNth) && (w = {
|
|
12454
12454
|
dayOfWeekBits: e.readUint32(),
|
|
12455
12455
|
n: e.readUint32()
|
|
12456
12456
|
});
|
|
12457
|
-
var g = e.readUint32(), m = e.readUint32(), x = e.readUint32(), A = e.readUint32(),
|
|
12457
|
+
var g = e.readUint32(), m = e.readUint32(), x = e.readUint32(), A = e.readUint32(), I = Array.from(e.readUint32Array(A)), d = e.readUint32(), E = Array.from(e.readUint32Array(d)), b = e.readUint32(), y = e.readUint32();
|
|
12458
12458
|
return Object.assign({
|
|
12459
12459
|
recurFrequency: n,
|
|
12460
12460
|
patternType: c,
|
|
@@ -12465,84 +12465,84 @@ function mi(e) {
|
|
|
12465
12465
|
endType: g,
|
|
12466
12466
|
occurrenceCount: m,
|
|
12467
12467
|
firstDOW: x,
|
|
12468
|
-
deletedInstanceDates:
|
|
12469
|
-
modifiedInstanceDates:
|
|
12470
|
-
startDate:
|
|
12468
|
+
deletedInstanceDates: I,
|
|
12469
|
+
modifiedInstanceDates: E,
|
|
12470
|
+
startDate: b,
|
|
12471
12471
|
endDate: y
|
|
12472
|
-
}, l ? { patternTypeWeek: l } : {},
|
|
12472
|
+
}, l ? { patternTypeWeek: l } : {}, v ? { patternTypeMonth: v } : {}, w ? { patternTypeMonthNth: w } : {});
|
|
12473
12473
|
}
|
|
12474
|
-
function
|
|
12475
|
-
var a =
|
|
12474
|
+
function _i(e, t) {
|
|
12475
|
+
var a = wi(e), n = e.readUint32();
|
|
12476
12476
|
if (n !== 12294)
|
|
12477
12477
|
throw new Error("ReaderVersion2 not supported");
|
|
12478
12478
|
var c = e.readUint32();
|
|
12479
12479
|
if (c < 12294)
|
|
12480
12480
|
throw new Error("WriterVersion2 not supported");
|
|
12481
12481
|
for (var u = e.readUint32(), f = e.readUint32(), s = e.readUint16(), p = [], l = 0; l < s; l++) {
|
|
12482
|
-
var
|
|
12483
|
-
if (m &
|
|
12484
|
-
var A = e.readUint16(),
|
|
12485
|
-
if (A - 1 !==
|
|
12486
|
-
throw new Error("subjectLength ".concat(A, " and subjectLength2 ").concat(
|
|
12487
|
-
x = e.readString(
|
|
12482
|
+
var v = e.readUint32(), w = e.readUint32(), g = e.readUint32(), m = e.readUint16(), x = void 0;
|
|
12483
|
+
if (m & re.ARO_SUBJECT) {
|
|
12484
|
+
var A = e.readUint16(), I = e.readUint16();
|
|
12485
|
+
if (A - 1 !== I)
|
|
12486
|
+
throw new Error("subjectLength ".concat(A, " and subjectLength2 ").concat(I, " are not close!"));
|
|
12487
|
+
x = e.readString(I, t);
|
|
12488
12488
|
}
|
|
12489
12489
|
var d = void 0;
|
|
12490
|
-
m &
|
|
12491
|
-
var v = void 0;
|
|
12492
|
-
m & te.ARO_REMINDERDELTA && (v = e.readUint32());
|
|
12490
|
+
m & re.ARO_MEETINGTYPE && (d = e.readUint32());
|
|
12493
12491
|
var E = void 0;
|
|
12494
|
-
m &
|
|
12492
|
+
m & re.ARO_REMINDERDELTA && (E = e.readUint32());
|
|
12493
|
+
var b = void 0;
|
|
12494
|
+
m & re.ARO_REMINDER && (b = e.readUint32());
|
|
12495
12495
|
var y = void 0;
|
|
12496
|
-
if (m &
|
|
12497
|
-
var
|
|
12498
|
-
if (
|
|
12499
|
-
throw new Error("locationLength ".concat(
|
|
12496
|
+
if (m & re.ARO_LOCATION) {
|
|
12497
|
+
var S = e.readUint16(), U = e.readUint16();
|
|
12498
|
+
if (S - 1 !== U)
|
|
12499
|
+
throw new Error("locationLength ".concat(S, " and locationLength2 ").concat(U, " are not close!"));
|
|
12500
12500
|
y = e.readString(U, t);
|
|
12501
12501
|
}
|
|
12502
12502
|
var N = void 0;
|
|
12503
|
-
m &
|
|
12504
|
-
var
|
|
12505
|
-
m &
|
|
12503
|
+
m & re.ARO_BUSYSTATUS && (N = e.readUint32());
|
|
12504
|
+
var R = void 0;
|
|
12505
|
+
m & re.ARO_ATTACHMENT && (R = e.readUint32());
|
|
12506
12506
|
var D = void 0;
|
|
12507
|
-
m &
|
|
12507
|
+
m & re.ARO_SUBTYPE && (D = e.readUint32());
|
|
12508
12508
|
var F = void 0;
|
|
12509
|
-
m &
|
|
12510
|
-
startDateTime:
|
|
12509
|
+
m & re.ARO_APPTCOLOR && (F = e.readUint32()), p.push(Object.assign({
|
|
12510
|
+
startDateTime: v,
|
|
12511
12511
|
endDateTime: w,
|
|
12512
12512
|
originalStartTime: g,
|
|
12513
12513
|
overrideFlags: m
|
|
12514
|
-
}, x ? { subject: x } : {}, d ? { meetingType: d } : {},
|
|
12514
|
+
}, x ? { subject: x } : {}, d ? { meetingType: d } : {}, E ? { reminderDelta: E } : {}, b ? { reminderSet: b } : {}, y ? { location: y } : {}, N ? { busyStatus: N } : {}, R ? { attachment: R } : {}, D ? { subType: D } : {}, F ? { appointmentColor: F } : {}));
|
|
12515
12515
|
}
|
|
12516
|
-
var
|
|
12517
|
-
if (
|
|
12518
|
-
throw new Error("reservedBlock1Size ".concat(
|
|
12516
|
+
var C = e.readUint32();
|
|
12517
|
+
if (C !== 0)
|
|
12518
|
+
throw new Error("reservedBlock1Size ".concat(C, " is not zero, AppointmentRecur is broken"));
|
|
12519
12519
|
for (var l = 0; l < s; l++) {
|
|
12520
|
-
var
|
|
12520
|
+
var G = p[l];
|
|
12521
12521
|
if (12297 <= c) {
|
|
12522
|
-
var
|
|
12523
|
-
|
|
12522
|
+
var z = e.readUint32();
|
|
12523
|
+
G.changeHighlight = e.readUint32(), e.position += z - 4;
|
|
12524
12524
|
}
|
|
12525
|
-
var
|
|
12526
|
-
if (
|
|
12527
|
-
throw new Error("reservedBlockEE1Size ".concat(
|
|
12528
|
-
if (
|
|
12529
|
-
var
|
|
12530
|
-
if (e.readUint32(),
|
|
12531
|
-
var
|
|
12532
|
-
|
|
12525
|
+
var Z = e.readUint32();
|
|
12526
|
+
if (Z !== 0)
|
|
12527
|
+
throw new Error("reservedBlockEE1Size ".concat(Z, " is not zero, AppointmentRecur is broken"));
|
|
12528
|
+
if (G.overrideFlags & (re.ARO_SUBJECT | re.ARO_LOCATION)) {
|
|
12529
|
+
var v = e.readUint32(), w = e.readUint32();
|
|
12530
|
+
if (e.readUint32(), G.overrideFlags & re.ARO_SUBJECT) {
|
|
12531
|
+
var Y = e.readUint16();
|
|
12532
|
+
G.subject = e.readUCS2String(Y);
|
|
12533
12533
|
}
|
|
12534
|
-
if (
|
|
12534
|
+
if (G.overrideFlags & re.ARO_LOCATION) {
|
|
12535
12535
|
var k = e.readUint16();
|
|
12536
|
-
|
|
12536
|
+
G.location = e.readUCS2String(k);
|
|
12537
12537
|
}
|
|
12538
|
-
var
|
|
12539
|
-
if (
|
|
12540
|
-
throw new Error("reservedBlockEE2Size ".concat(
|
|
12538
|
+
var $ = e.readUint32();
|
|
12539
|
+
if ($ !== 0)
|
|
12540
|
+
throw new Error("reservedBlockEE2Size ".concat($, " is not zero, AppointmentRecur is broken"));
|
|
12541
12541
|
}
|
|
12542
12542
|
}
|
|
12543
|
-
var
|
|
12544
|
-
if (
|
|
12545
|
-
throw new Error("reservedBlock2Size ".concat(
|
|
12543
|
+
var M = e.readUint32();
|
|
12544
|
+
if (M !== 0)
|
|
12545
|
+
throw new Error("reservedBlock2Size ".concat(M, " is not zero, AppointmentRecur is broken"));
|
|
12546
12546
|
return {
|
|
12547
12547
|
recurrencePattern: a,
|
|
12548
12548
|
startTimeOffset: u,
|
|
@@ -12551,11 +12551,11 @@ function gi(e, t) {
|
|
|
12551
12551
|
};
|
|
12552
12552
|
}
|
|
12553
12553
|
(function(e) {
|
|
12554
|
-
var t =
|
|
12555
|
-
return
|
|
12554
|
+
var t = ne && ne.__importDefault || function(E) {
|
|
12555
|
+
return E && E.__esModule ? E : { default: E };
|
|
12556
12556
|
};
|
|
12557
12557
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.OverrideFlags = e.EndType = e.CalendarType = e.PatternType = e.RecurFrequency = void 0;
|
|
12558
|
-
var a = t(De), n = t(Ne), c = _e, u = ht, f =
|
|
12558
|
+
var a = t(De), n = t(Ne), c = _e, u = ht, f = ee, s = lt, p = dt, l = pt, v = yt, w = ae, g = ae;
|
|
12559
12559
|
Object.defineProperty(e, "RecurFrequency", { enumerable: !0, get: function() {
|
|
12560
12560
|
return g.RecurFrequency;
|
|
12561
12561
|
} }), Object.defineProperty(e, "PatternType", { enumerable: !0, get: function() {
|
|
@@ -12568,119 +12568,119 @@ function gi(e, t) {
|
|
|
12568
12568
|
return g.OverrideFlags;
|
|
12569
12569
|
} });
|
|
12570
12570
|
var m;
|
|
12571
|
-
(function(
|
|
12572
|
-
|
|
12571
|
+
(function(E) {
|
|
12572
|
+
E[E.DIRECTORY = 1] = "DIRECTORY", E[E.DOCUMENT = 2] = "DOCUMENT", E[E.ROOT = 5] = "ROOT";
|
|
12573
12573
|
})(m || (m = {}));
|
|
12574
12574
|
var x;
|
|
12575
|
-
(function(
|
|
12576
|
-
|
|
12575
|
+
(function(E) {
|
|
12576
|
+
E[E.root = 0] = "root", E[E.toSub = 1] = "toSub", E[E.named = 2] = "named";
|
|
12577
12577
|
})(x || (x = {}));
|
|
12578
|
-
function A(
|
|
12579
|
-
return (
|
|
12578
|
+
function A(E) {
|
|
12579
|
+
return (E - 116444736e9) / 1e4;
|
|
12580
12580
|
}
|
|
12581
|
-
function
|
|
12582
|
-
var
|
|
12583
|
-
return
|
|
12581
|
+
function I(E) {
|
|
12582
|
+
var b = E.indexOf("\0");
|
|
12583
|
+
return b !== -1 ? E.substring(0, b) : E;
|
|
12584
12584
|
}
|
|
12585
12585
|
var d = (
|
|
12586
12586
|
/** @class */
|
|
12587
12587
|
function() {
|
|
12588
|
-
function
|
|
12589
|
-
this.reader = new c.Reader(
|
|
12588
|
+
function E(b) {
|
|
12589
|
+
this.reader = new c.Reader(b);
|
|
12590
12590
|
}
|
|
12591
|
-
return
|
|
12592
|
-
var
|
|
12593
|
-
if (
|
|
12594
|
-
var
|
|
12595
|
-
if (
|
|
12596
|
-
if (
|
|
12597
|
-
F =
|
|
12591
|
+
return E.prototype.decodeField = function(b, y, S, U, N) {
|
|
12592
|
+
var R = S(), D = new n.default(R, 0, n.default.LITTLE_ENDIAN), F = a.default.MSG.FIELD.FULL_NAME_MAPPING["".concat(b).concat(y)] || a.default.MSG.FIELD.NAME_MAPPING[b], C = x.root, G = void 0, z = void 0, Z = parseInt("0x".concat(b));
|
|
12593
|
+
if (Z >= 32768) {
|
|
12594
|
+
var Y = this.privatePidToKeyed[Z];
|
|
12595
|
+
if (Y)
|
|
12596
|
+
if (Y.useName)
|
|
12597
|
+
F = Y.name, C = x.named;
|
|
12598
12598
|
else {
|
|
12599
|
-
|
|
12600
|
-
var k = a.default.MSG.FIELD.PIDLID_MAPPING[
|
|
12599
|
+
G = Y.propertySet, z = (0, f.toHex4)(Y.propertyLid);
|
|
12600
|
+
var k = a.default.MSG.FIELD.PIDLID_MAPPING[Y.propertySet];
|
|
12601
12601
|
if (k !== void 0) {
|
|
12602
|
-
var
|
|
12603
|
-
|
|
12602
|
+
var $ = k[Y.propertyLid];
|
|
12603
|
+
$ !== void 0 && ($.dispid !== void 0 ? (F = $.dispid, C = x.root) : (F = $.id, C = x.toSub));
|
|
12604
12604
|
}
|
|
12605
12605
|
}
|
|
12606
12606
|
}
|
|
12607
|
-
var
|
|
12608
|
-
if (
|
|
12609
|
-
|
|
12610
|
-
else if (
|
|
12611
|
-
|
|
12612
|
-
else if (
|
|
12613
|
-
|
|
12614
|
-
else if (
|
|
12615
|
-
|
|
12616
|
-
else if (
|
|
12617
|
-
|
|
12618
|
-
else if (
|
|
12619
|
-
var
|
|
12620
|
-
|
|
12607
|
+
var M = R, J = !1, V = a.default.MSG.FIELD.TYPE_MAPPING[y];
|
|
12608
|
+
if (V === "string")
|
|
12609
|
+
M = I(D.readString(R.length, U)), J = N;
|
|
12610
|
+
else if (V === "unicode")
|
|
12611
|
+
M = I(D.readUCS2String(R.length / 2)), J = N;
|
|
12612
|
+
else if (V === "binary")
|
|
12613
|
+
J = N;
|
|
12614
|
+
else if (V === "integer")
|
|
12615
|
+
M = D.readUint32();
|
|
12616
|
+
else if (V === "boolean")
|
|
12617
|
+
M = !!D.readUint16();
|
|
12618
|
+
else if (V === "time") {
|
|
12619
|
+
var q = D.readUint32(), X = q + 4294967296 * D.readUint32();
|
|
12620
|
+
M = new Date(A(X)).toUTCString();
|
|
12621
12621
|
}
|
|
12622
|
-
if (
|
|
12623
|
-
F = "votingOptions",
|
|
12622
|
+
if (J && (F = void 0), F === "PidLidVerbStream")
|
|
12623
|
+
F = "votingOptions", C = x.root, M = (0, p.parse)(D);
|
|
12624
12624
|
else if (F === "apptTZDefStartDisplay" || F === "apptTZDefEndDisplay" || F === "apptTZDefRecur")
|
|
12625
|
-
|
|
12625
|
+
C = x.root, M = (0, l.parse)(D);
|
|
12626
12626
|
else if (F === "timeZoneStruct")
|
|
12627
|
-
|
|
12627
|
+
M = (0, v.parse)(D);
|
|
12628
12628
|
else if (F === "apptRecur")
|
|
12629
12629
|
try {
|
|
12630
|
-
|
|
12630
|
+
M = (0, w.parse)(D, U);
|
|
12631
12631
|
} catch (He) {
|
|
12632
12632
|
console.debug(He), F = void 0;
|
|
12633
12633
|
}
|
|
12634
12634
|
else if (F === "recipType") {
|
|
12635
12635
|
var me = 1, be = 2, Ae = 3;
|
|
12636
|
-
|
|
12637
|
-
} else F === "globalAppointmentID" && (
|
|
12638
|
-
var Ge = "".concat(
|
|
12639
|
-
return { key: F, keyType:
|
|
12640
|
-
},
|
|
12641
|
-
var U = y.name.substring(12).toLowerCase(), N = U.substring(0, 4),
|
|
12642
|
-
|
|
12643
|
-
},
|
|
12644
|
-
var U =
|
|
12645
|
-
U !== void 0 && N === x.root && (y[U] =
|
|
12646
|
-
propertyTag:
|
|
12647
|
-
propertySet:
|
|
12648
|
-
propertyLid:
|
|
12649
|
-
propertyName:
|
|
12650
|
-
value:
|
|
12636
|
+
M === me ? M = "to" : M === be ? M = "cc" : M === Ae && (M = "bcc");
|
|
12637
|
+
} else F === "globalAppointmentID" && (M = (0, f.bin2HexUpper)(D));
|
|
12638
|
+
var Ge = "".concat(b).concat(y);
|
|
12639
|
+
return { key: F, keyType: C, value: M, notForRawProp: J, propertyTag: Ge, propertySet: G, propertyLid: z };
|
|
12640
|
+
}, E.prototype.fieldsDataDocument = function(b, y, S) {
|
|
12641
|
+
var U = y.name.substring(12).toLowerCase(), N = U.substring(0, 4), R = U.substring(4, 8);
|
|
12642
|
+
b.propertyObserver && b.propertyObserver(S, parseInt(U.substring(0, 8), 16), y.provider()), N == a.default.MSG.FIELD.CLASS_MAPPING.ATTACHMENT_DATA ? (S.dataId = y.dataId, S.contentLength = y.length) : this.setDecodedFieldTo(b, S, this.decodeField(N, R, y.provider, b.ansiEncoding, !1));
|
|
12643
|
+
}, E.prototype.setDecodedFieldTo = function(b, y, S) {
|
|
12644
|
+
var U = S.key, N = S.keyType, R = S.value;
|
|
12645
|
+
U !== void 0 && N === x.root && (y[U] = R), b.includeRawProps === !0 && (y.rawProps = y.rawProps || [], S.notForRawProp || y.rawProps.push({
|
|
12646
|
+
propertyTag: S.propertyTag,
|
|
12647
|
+
propertySet: S.propertySet,
|
|
12648
|
+
propertyLid: S.propertyLid,
|
|
12649
|
+
propertyName: S.keyType === x.named ? S.key : void 0,
|
|
12650
|
+
value: R
|
|
12651
12651
|
}));
|
|
12652
|
-
},
|
|
12653
|
-
var y =
|
|
12652
|
+
}, E.prototype.getFieldType = function(b) {
|
|
12653
|
+
var y = b.name.substring(12).toLowerCase();
|
|
12654
12654
|
return y.substring(4, 8);
|
|
12655
|
-
},
|
|
12655
|
+
}, E.prototype.fieldsDataDirInner = function(b, y, S, U) {
|
|
12656
12656
|
var N = this;
|
|
12657
12657
|
if (y.name.indexOf(a.default.MSG.FIELD.PREFIX.ATTACHMENT) == 0) {
|
|
12658
|
-
var
|
|
12658
|
+
var R = {
|
|
12659
12659
|
dataType: "attachment"
|
|
12660
12660
|
};
|
|
12661
|
-
U.attachments.push(
|
|
12661
|
+
U.attachments.push(R), this.fieldsDataDir(b, y, S, R, "attachment");
|
|
12662
12662
|
} else if (y.name.indexOf(a.default.MSG.FIELD.PREFIX.RECIPIENT) == 0) {
|
|
12663
12663
|
var D = {
|
|
12664
12664
|
dataType: "recipient"
|
|
12665
12665
|
};
|
|
12666
|
-
U.recipients.push(D), this.fieldsDataDir(
|
|
12666
|
+
U.recipients.push(D), this.fieldsDataDir(b, y, S, D, "recip");
|
|
12667
12667
|
} else if (y.name.indexOf(a.default.MSG.FIELD.PREFIX.NAMEID) == 0)
|
|
12668
|
-
this.fieldsNameIdDir(
|
|
12668
|
+
this.fieldsNameIdDir(b, y, S, U);
|
|
12669
12669
|
else {
|
|
12670
12670
|
var F = this.getFieldType(y);
|
|
12671
12671
|
if (F == a.default.MSG.FIELD.DIR_TYPE.INNER_MSG) {
|
|
12672
|
-
var
|
|
12672
|
+
var C = {
|
|
12673
12673
|
dataType: "msg",
|
|
12674
12674
|
attachments: [],
|
|
12675
12675
|
recipients: []
|
|
12676
12676
|
};
|
|
12677
|
-
this.fieldsDataDir(
|
|
12678
|
-
return N.burnMsg(y,
|
|
12677
|
+
this.fieldsDataDir(b, y, S, C, "sub"), U.innerMsgContentFields = C, U.innerMsgContent = !0, U.folderId = y.dataId, this.innerMsgBurners[y.dataId] = function() {
|
|
12678
|
+
return N.burnMsg(y, S);
|
|
12679
12679
|
};
|
|
12680
12680
|
}
|
|
12681
12681
|
}
|
|
12682
|
-
},
|
|
12683
|
-
var
|
|
12682
|
+
}, E.prototype.burnMsg = function(b, y) {
|
|
12683
|
+
var S = [
|
|
12684
12684
|
{
|
|
12685
12685
|
name: "Root Entry",
|
|
12686
12686
|
type: m.ROOT,
|
|
@@ -12688,116 +12688,116 @@ function gi(e, t) {
|
|
|
12688
12688
|
length: 0
|
|
12689
12689
|
}
|
|
12690
12690
|
];
|
|
12691
|
-
return this.registerFolder(
|
|
12692
|
-
},
|
|
12693
|
-
for (var
|
|
12694
|
-
var
|
|
12695
|
-
if (N === 0 &&
|
|
12696
|
-
var me =
|
|
12697
|
-
be.set(me.subarray(0, 24), 0), be.set(me.subarray(24), 32),
|
|
12691
|
+
return this.registerFolder(S, 0, b, y, 0), (0, u.burn)(S);
|
|
12692
|
+
}, E.prototype.registerFolder = function(b, y, S, U, N) {
|
|
12693
|
+
for (var R = function(V) {
|
|
12694
|
+
var q = V.provider, X = V.length;
|
|
12695
|
+
if (N === 0 && V.name === "__properties_version1.0") {
|
|
12696
|
+
var me = q(), be = new Uint8Array(me.length + 8);
|
|
12697
|
+
be.set(me.subarray(0, 24), 0), be.set(me.subarray(24), 32), q = function() {
|
|
12698
12698
|
return be;
|
|
12699
12699
|
}, X = be.length;
|
|
12700
12700
|
}
|
|
12701
|
-
var Ae =
|
|
12702
|
-
|
|
12703
|
-
name:
|
|
12701
|
+
var Ae = b.length;
|
|
12702
|
+
b[y].children.push(Ae), b.push({
|
|
12703
|
+
name: V.name,
|
|
12704
12704
|
type: m.DOCUMENT,
|
|
12705
|
-
binaryProvider:
|
|
12705
|
+
binaryProvider: q,
|
|
12706
12706
|
length: X
|
|
12707
12707
|
});
|
|
12708
|
-
}, D = 0, F =
|
|
12709
|
-
var
|
|
12710
|
-
|
|
12708
|
+
}, D = 0, F = S.fileNameSets(); D < F.length; D++) {
|
|
12709
|
+
var C = F[D];
|
|
12710
|
+
R(C);
|
|
12711
12711
|
}
|
|
12712
12712
|
if (N === 0)
|
|
12713
|
-
for (var
|
|
12714
|
-
return
|
|
12715
|
-
}),
|
|
12716
|
-
var
|
|
12717
|
-
|
|
12718
|
-
name:
|
|
12713
|
+
for (var G = U.subFolders().filter(function(V) {
|
|
12714
|
+
return V.name === a.default.MSG.FIELD.PREFIX.NAMEID;
|
|
12715
|
+
}), z = 0, Z = G; z < Z.length; z++) {
|
|
12716
|
+
var Y = Z[z], k = b.length;
|
|
12717
|
+
b[y].children.push(k), b.push({
|
|
12718
|
+
name: Y.name,
|
|
12719
12719
|
type: m.DIRECTORY,
|
|
12720
12720
|
children: [],
|
|
12721
12721
|
length: 0
|
|
12722
|
-
}), this.registerFolder(
|
|
12722
|
+
}), this.registerFolder(b, k, Y, U, N + 1);
|
|
12723
12723
|
}
|
|
12724
|
-
for (var
|
|
12725
|
-
var
|
|
12726
|
-
|
|
12727
|
-
name:
|
|
12724
|
+
for (var $ = 0, M = S.subFolders(); $ < M.length; $++) {
|
|
12725
|
+
var J = M[$], k = b.length;
|
|
12726
|
+
b[y].children.push(k), b.push({
|
|
12727
|
+
name: J.name,
|
|
12728
12728
|
type: m.DIRECTORY,
|
|
12729
12729
|
children: [],
|
|
12730
12730
|
length: 0
|
|
12731
|
-
}), this.registerFolder(
|
|
12731
|
+
}), this.registerFolder(b, k, J, U, N + 1);
|
|
12732
12732
|
}
|
|
12733
|
-
},
|
|
12733
|
+
}, E.prototype.fieldsRecipAndAttachmentProperties = function(b, y, S) {
|
|
12734
12734
|
var U = y.provider(), N = new n.default(U, 8, n.default.LITTLE_ENDIAN);
|
|
12735
|
-
this.importPropertiesFromFile(
|
|
12736
|
-
},
|
|
12735
|
+
this.importPropertiesFromFile(b, N, S);
|
|
12736
|
+
}, E.prototype.importPropertiesFromFile = function(b, y, S) {
|
|
12737
12737
|
for (var U = function() {
|
|
12738
12738
|
var D = y.readUint32();
|
|
12739
12739
|
if (D === 0)
|
|
12740
12740
|
return "break";
|
|
12741
12741
|
y.readUint32();
|
|
12742
12742
|
var F = y.readUint8Array(8);
|
|
12743
|
-
|
|
12744
|
-
var
|
|
12745
|
-
N.setDecodedFieldTo(
|
|
12743
|
+
b.propertyObserver(S, D, F);
|
|
12744
|
+
var C = (0, f.toHex2)(D / 65536 & 65535), G = (0, f.toHex2)(D & 65535);
|
|
12745
|
+
N.setDecodedFieldTo(b, S, N.decodeField(C, G, function() {
|
|
12746
12746
|
return F;
|
|
12747
|
-
},
|
|
12747
|
+
}, b.ansiEncoding, !0));
|
|
12748
12748
|
}, N = this; !y.isEof(); ) {
|
|
12749
|
-
var
|
|
12750
|
-
if (
|
|
12749
|
+
var R = U();
|
|
12750
|
+
if (R === "break")
|
|
12751
12751
|
break;
|
|
12752
12752
|
}
|
|
12753
|
-
},
|
|
12753
|
+
}, E.prototype.fieldsRootProperties = function(b, y, S) {
|
|
12754
12754
|
var U = y.provider(), N = new n.default(U, 32, n.default.LITTLE_ENDIAN);
|
|
12755
|
-
this.importPropertiesFromFile(
|
|
12756
|
-
},
|
|
12757
|
-
for (var
|
|
12758
|
-
var F = D[
|
|
12759
|
-
this.fieldsDataDirInner(
|
|
12755
|
+
this.importPropertiesFromFile(b, N, S);
|
|
12756
|
+
}, E.prototype.fieldsDataDir = function(b, y, S, U, N) {
|
|
12757
|
+
for (var R = 0, D = y.subFolders(); R < D.length; R++) {
|
|
12758
|
+
var F = D[R];
|
|
12759
|
+
this.fieldsDataDirInner(b, F, S, U);
|
|
12760
12760
|
}
|
|
12761
|
-
for (var
|
|
12762
|
-
var
|
|
12763
|
-
|
|
12761
|
+
for (var C = 0, G = y.fileNameSets(); C < G.length; C++) {
|
|
12762
|
+
var z = G[C];
|
|
12763
|
+
z.name.indexOf(a.default.MSG.FIELD.PREFIX.DOCUMENT) == 0 ? this.fieldsDataDocument(b, z, U) : z.name === "__properties_version1.0" && (N === "recip" || N === "attachment" || N === "sub" ? this.fieldsRecipAndAttachmentProperties(b, z, U) : N === "root" && this.fieldsRootProperties(b, z, U));
|
|
12764
12764
|
}
|
|
12765
|
-
},
|
|
12766
|
-
for (var N = void 0,
|
|
12767
|
-
var
|
|
12768
|
-
if (
|
|
12769
|
-
var
|
|
12770
|
-
|
|
12765
|
+
}, E.prototype.fieldsNameIdDir = function(b, y, S, U) {
|
|
12766
|
+
for (var N = void 0, R = void 0, D = void 0, F = 0, C = y.fileNameSets(); F < C.length; F++) {
|
|
12767
|
+
var G = C[F];
|
|
12768
|
+
if (G.name.indexOf(a.default.MSG.FIELD.PREFIX.DOCUMENT) == 0) {
|
|
12769
|
+
var z = G.name.substring(12).toLowerCase(), Z = z.substring(0, 4), Y = z.substring(4, 8);
|
|
12770
|
+
Z === "0002" && Y === "0102" ? N = G.provider() : Z === "0003" && Y === "0102" ? D = G.provider() : Z === "0004" && Y === "0102" && (R = G.provider());
|
|
12771
12771
|
}
|
|
12772
12772
|
}
|
|
12773
|
-
if (N !== void 0 &&
|
|
12774
|
-
for (var k = (0, s.parse)(D),
|
|
12775
|
-
var
|
|
12776
|
-
if (
|
|
12777
|
-
|
|
12778
|
-
var
|
|
12779
|
-
this.privatePidToKeyed[32768 |
|
|
12773
|
+
if (N !== void 0 && R !== void 0 && D !== void 0)
|
|
12774
|
+
for (var k = (0, s.parse)(D), $ = new n.default(R, 0, n.default.LITTLE_ENDIAN), M = 0, J = k; M < J.length; M++) {
|
|
12775
|
+
var V = J[M];
|
|
12776
|
+
if (V.isStringProperty) {
|
|
12777
|
+
$.seek(V.key);
|
|
12778
|
+
var q = $.readUint32();
|
|
12779
|
+
this.privatePidToKeyed[32768 | V.propertyIndex] = {
|
|
12780
12780
|
useName: !0,
|
|
12781
|
-
name:
|
|
12781
|
+
name: $.readUCS2String(q / 2)
|
|
12782
12782
|
};
|
|
12783
12783
|
} else
|
|
12784
|
-
this.privatePidToKeyed[32768 |
|
|
12784
|
+
this.privatePidToKeyed[32768 | V.propertyIndex] = {
|
|
12785
12785
|
useName: !1,
|
|
12786
|
-
propertySet:
|
|
12787
|
-
propertyLid:
|
|
12786
|
+
propertySet: V.guidIndex === 1 ? "00020328-00000-0000-C000-00000000046" : V.guidIndex === 2 ? "00020329-00000-0000-C000-00000000046" : (0, f.msftUuidStringify)(N, 16 * (V.guidIndex - 3)),
|
|
12787
|
+
propertyLid: V.key
|
|
12788
12788
|
};
|
|
12789
12789
|
}
|
|
12790
|
-
},
|
|
12790
|
+
}, E.prototype.fieldsDataReader = function(b) {
|
|
12791
12791
|
var y = {
|
|
12792
12792
|
dataType: "msg",
|
|
12793
12793
|
attachments: [],
|
|
12794
12794
|
recipients: []
|
|
12795
12795
|
};
|
|
12796
|
-
return this.fieldsDataDir(
|
|
12797
|
-
},
|
|
12798
|
-
return this.reader.parse(), this.fieldsDataReader(
|
|
12799
|
-
},
|
|
12800
|
-
var
|
|
12796
|
+
return this.fieldsDataDir(b, this.reader.rootFolder(), this.reader.rootFolder(), y, "root"), y;
|
|
12797
|
+
}, E.prototype.parseMsgData = function(b) {
|
|
12798
|
+
return this.reader.parse(), this.fieldsDataReader(b);
|
|
12799
|
+
}, E.prototype.getFileData = function() {
|
|
12800
|
+
var b, y, S;
|
|
12801
12801
|
if (this.fieldsData === void 0) {
|
|
12802
12802
|
if (!this.reader.isMSGFile())
|
|
12803
12803
|
return {
|
|
@@ -12805,26 +12805,26 @@ function gi(e, t) {
|
|
|
12805
12805
|
error: "Unsupported file type!"
|
|
12806
12806
|
};
|
|
12807
12807
|
this.innerMsgBurners = {}, this.privatePidToKeyed = {}, this.fieldsData = this.parseMsgData({
|
|
12808
|
-
propertyObserver: ((
|
|
12808
|
+
propertyObserver: ((b = this.parserConfig) === null || b === void 0 ? void 0 : b.propertyObserver) || function() {
|
|
12809
12809
|
},
|
|
12810
12810
|
includeRawProps: !!(!((y = this.parserConfig) === null || y === void 0) && y.includeRawProps),
|
|
12811
|
-
ansiEncoding: (0, f.emptyToNull)((
|
|
12811
|
+
ansiEncoding: (0, f.emptyToNull)((S = this.parserConfig) === null || S === void 0 ? void 0 : S.ansiEncoding)
|
|
12812
12812
|
});
|
|
12813
12813
|
}
|
|
12814
12814
|
return this.fieldsData;
|
|
12815
|
-
},
|
|
12816
|
-
var y = typeof
|
|
12815
|
+
}, E.prototype.getAttachment = function(b) {
|
|
12816
|
+
var y = typeof b == "number" ? this.fieldsData.attachments[b] : b;
|
|
12817
12817
|
if (y.innerMsgContent === !0 && typeof y.folderId == "number")
|
|
12818
12818
|
return { fileName: y.name + ".msg", content: this.innerMsgBurners[y.folderId]() };
|
|
12819
|
-
var
|
|
12820
|
-
return { fileName: y.fileName, content:
|
|
12821
|
-
},
|
|
12819
|
+
var S = this.reader.readFileOf(y.dataId);
|
|
12820
|
+
return { fileName: y.fileName, content: S };
|
|
12821
|
+
}, E;
|
|
12822
12822
|
}()
|
|
12823
12823
|
);
|
|
12824
12824
|
e.default = d;
|
|
12825
12825
|
})(at);
|
|
12826
12826
|
(function(e) {
|
|
12827
|
-
var t =
|
|
12827
|
+
var t = ne && ne.__createBinding || (Object.create ? function(u, f, s, p) {
|
|
12828
12828
|
p === void 0 && (p = s);
|
|
12829
12829
|
var l = Object.getOwnPropertyDescriptor(f, s);
|
|
12830
12830
|
(!l || ("get" in l ? !f.__esModule : l.writable || l.configurable)) && (l = { enumerable: !0, get: function() {
|
|
@@ -12832,16 +12832,16 @@ function gi(e, t) {
|
|
|
12832
12832
|
} }), Object.defineProperty(u, p, l);
|
|
12833
12833
|
} : function(u, f, s, p) {
|
|
12834
12834
|
p === void 0 && (p = s), u[p] = f[s];
|
|
12835
|
-
}), a =
|
|
12835
|
+
}), a = ne && ne.__exportStar || function(u, f) {
|
|
12836
12836
|
for (var s in u) s !== "default" && !Object.prototype.hasOwnProperty.call(f, s) && t(f, u, s);
|
|
12837
|
-
}, n =
|
|
12837
|
+
}, n = ne && ne.__importDefault || function(u) {
|
|
12838
12838
|
return u && u.__esModule ? u : { default: u };
|
|
12839
12839
|
};
|
|
12840
12840
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
12841
12841
|
var c = n(at);
|
|
12842
12842
|
a(at, e), e.default = c.default;
|
|
12843
12843
|
})(Vt);
|
|
12844
|
-
const
|
|
12844
|
+
const Ai = /* @__PURE__ */ hr(Vt);
|
|
12845
12845
|
function nt(e, t) {
|
|
12846
12846
|
return e ? e.filter((a) => a.recipType === t).map((a) => {
|
|
12847
12847
|
const n = a.name || "", c = a.smtpAddress || a.email || "";
|
|
@@ -12857,7 +12857,7 @@ function Ce(e) {
|
|
|
12857
12857
|
return e;
|
|
12858
12858
|
}
|
|
12859
12859
|
}
|
|
12860
|
-
function
|
|
12860
|
+
function xi(e, t) {
|
|
12861
12861
|
if (e.bodyHtml)
|
|
12862
12862
|
return e.bodyHtml;
|
|
12863
12863
|
if (e.html)
|
|
@@ -12867,7 +12867,7 @@ function _i(e, t) {
|
|
|
12867
12867
|
}
|
|
12868
12868
|
return e.body ? `<pre style="white-space: pre-wrap; word-wrap: break-word; font-family: system-ui, sans-serif;">${e.body.replace(/&/g, "&").replace(/\x3c/g, "<").replace(/>/g, ">")}</pre>` : `<p style="color: #999;">${t}</p>`;
|
|
12869
12869
|
}
|
|
12870
|
-
function
|
|
12870
|
+
function Si(e) {
|
|
12871
12871
|
return e ? {
|
|
12872
12872
|
"IPM.Note": "Email",
|
|
12873
12873
|
"IPM.Note.SMIME": "Encrypted Email",
|
|
@@ -12903,40 +12903,42 @@ const se = {
|
|
|
12903
12903
|
color: "#111827",
|
|
12904
12904
|
wordBreak: "break-word",
|
|
12905
12905
|
flex: 1
|
|
12906
|
-
},
|
|
12907
|
-
const
|
|
12908
|
-
if (
|
|
12906
|
+
}, Li = tr(({ url: e }, t) => {
|
|
12907
|
+
const a = cr(), n = fr(), [c, u] = qe(!0), [f, s] = qe(null), [p, l] = qe(null);
|
|
12908
|
+
if (rr(() => {
|
|
12909
12909
|
if (!e) return;
|
|
12910
12910
|
(async () => {
|
|
12911
|
-
|
|
12911
|
+
u(!0), s(null), l(null);
|
|
12912
12912
|
try {
|
|
12913
|
-
const
|
|
12914
|
-
if (!
|
|
12913
|
+
const k = await n(e);
|
|
12914
|
+
if (!k.ok)
|
|
12915
12915
|
throw new Error("文件加载失败");
|
|
12916
|
-
const
|
|
12917
|
-
|
|
12918
|
-
} catch (
|
|
12919
|
-
console.error("MSG 解析错误:",
|
|
12916
|
+
const $ = await k.arrayBuffer(), J = new Ai($).getFileData();
|
|
12917
|
+
l(J);
|
|
12918
|
+
} catch (k) {
|
|
12919
|
+
console.error("MSG 解析错误:", k), s(a("msg.parse_failed"));
|
|
12920
12920
|
} finally {
|
|
12921
|
-
|
|
12921
|
+
u(!1);
|
|
12922
12922
|
}
|
|
12923
12923
|
})();
|
|
12924
|
-
}, [e]),
|
|
12924
|
+
}, [e]), ir(t, () => ({
|
|
12925
|
+
getToolbarGroups: () => []
|
|
12926
|
+
}), []), c)
|
|
12925
12927
|
return /* @__PURE__ */ L("div", { className: "rfp-flex rfp-items-center rfp-justify-center rfp-w-full rfp-h-full", children: /* @__PURE__ */ L("div", { className: "rfp-w-12 rfp-h-12 rfp-border-4 rfp-border-line-strong rfp-border-t-spinner-head rfp-rounded-full rfp-animate-spin" }) });
|
|
12926
|
-
if (
|
|
12927
|
-
return /* @__PURE__ */ L(
|
|
12928
|
-
const
|
|
12928
|
+
if (f || !p)
|
|
12929
|
+
return /* @__PURE__ */ L(ur, { message: f || a("msg.parse_failed_short") });
|
|
12930
|
+
const v = nt(p.recipients, "to"), w = nt(p.recipients, "cc"), g = nt(p.recipients, "bcc"), m = p.senderName || "", x = p.senderSmtpAddress || p.senderEmail || "", A = m && x && m !== x ? `${m} <${x}>` : m || x, I = Ce(p.clientSubmitTime), d = Ce(p.messageDeliveryTime), E = Ce(p.creationTime), b = Ce(p.lastModificationTime), y = p.subject || "(无主题)", S = (p.attachments || []).filter((Y) => !Y.attachmentHidden), U = xi(p, a("msg.empty_body")), N = Si(p.messageClass), R = p.messageId || "", D = p, F = typeof D.importance == "number" ? D.importance : void 0, C = F === 2 ? "High" : F === 0 ? "Low" : "", G = typeof D.sensitivity == "number" ? D.sensitivity : void 0, Z = G !== void 0 && G !== 0 && {
|
|
12929
12931
|
0: "Normal",
|
|
12930
12932
|
1: "Personal",
|
|
12931
12933
|
2: "Private",
|
|
12932
12934
|
3: "Confidential"
|
|
12933
|
-
}[
|
|
12935
|
+
}[G] || "";
|
|
12934
12936
|
return /* @__PURE__ */ L(
|
|
12935
12937
|
"div",
|
|
12936
12938
|
{
|
|
12937
12939
|
className: "rfp-w-full rfp-h-full rfp-overflow-auto",
|
|
12938
12940
|
style: { background: "white" },
|
|
12939
|
-
children: /* @__PURE__ */
|
|
12941
|
+
children: /* @__PURE__ */ H(
|
|
12940
12942
|
"div",
|
|
12941
12943
|
{
|
|
12942
12944
|
style: {
|
|
@@ -12945,90 +12947,90 @@ const se = {
|
|
|
12945
12947
|
minHeight: "100%"
|
|
12946
12948
|
},
|
|
12947
12949
|
children: [
|
|
12948
|
-
/* @__PURE__ */
|
|
12949
|
-
/* @__PURE__ */ L("h2", { style: { margin: "0 0 16px 0", fontSize: "clamp(16px, 2.5vw, 20px)", fontWeight: 600, color: "#111827", lineHeight: 1.4 }, children:
|
|
12950
|
-
/* @__PURE__ */
|
|
12951
|
-
|
|
12952
|
-
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(
|
|
12953
|
-
/* @__PURE__ */
|
|
12950
|
+
/* @__PURE__ */ H("div", { style: { borderBottom: "1px solid #e5e7eb", padding: "clamp(12px, 3vw, 24px) clamp(16px, 3vw, 28px)", background: "#f9fafb" }, children: [
|
|
12951
|
+
/* @__PURE__ */ L("h2", { style: { margin: "0 0 16px 0", fontSize: "clamp(16px, 2.5vw, 20px)", fontWeight: 600, color: "#111827", lineHeight: 1.4 }, children: y }),
|
|
12952
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flexDirection: "column", fontSize: "clamp(12px, 1.8vw, 14px)", color: "#4b5563" }, children: [
|
|
12953
|
+
A && /* @__PURE__ */ H("div", { style: oe, children: [
|
|
12954
|
+
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(nr, { size: 16, style: fe }) }),
|
|
12955
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
12954
12956
|
/* @__PURE__ */ L("span", { style: se, children: "From" }),
|
|
12955
|
-
/* @__PURE__ */ L("span", { style: ue, children:
|
|
12957
|
+
/* @__PURE__ */ L("span", { style: ue, children: A })
|
|
12956
12958
|
] })
|
|
12957
12959
|
] }),
|
|
12958
|
-
|
|
12960
|
+
v && /* @__PURE__ */ H("div", { style: oe, children: [
|
|
12959
12961
|
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(ze, { size: 16, style: fe }) }),
|
|
12960
|
-
/* @__PURE__ */
|
|
12962
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
12961
12963
|
/* @__PURE__ */ L("span", { style: se, children: "To" }),
|
|
12962
|
-
/* @__PURE__ */ L("span", { style: ue, children:
|
|
12964
|
+
/* @__PURE__ */ L("span", { style: ue, children: v })
|
|
12963
12965
|
] })
|
|
12964
12966
|
] }),
|
|
12965
|
-
|
|
12967
|
+
w && /* @__PURE__ */ H("div", { style: oe, children: [
|
|
12966
12968
|
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(ze, { size: 16, style: fe }) }),
|
|
12967
|
-
/* @__PURE__ */
|
|
12969
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
12968
12970
|
/* @__PURE__ */ L("span", { style: se, children: "Cc" }),
|
|
12969
|
-
/* @__PURE__ */ L("span", { style: ue, children:
|
|
12971
|
+
/* @__PURE__ */ L("span", { style: ue, children: w })
|
|
12970
12972
|
] })
|
|
12971
12973
|
] }),
|
|
12972
|
-
|
|
12974
|
+
g && /* @__PURE__ */ H("div", { style: oe, children: [
|
|
12973
12975
|
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(ze, { size: 16, style: fe }) }),
|
|
12974
|
-
/* @__PURE__ */
|
|
12976
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
12975
12977
|
/* @__PURE__ */ L("span", { style: se, children: "Bcc" }),
|
|
12976
|
-
/* @__PURE__ */ L("span", { style: ue, children:
|
|
12978
|
+
/* @__PURE__ */ L("span", { style: ue, children: g })
|
|
12977
12979
|
] })
|
|
12978
12980
|
] }),
|
|
12979
|
-
|
|
12981
|
+
I && /* @__PURE__ */ H("div", { style: oe, children: [
|
|
12980
12982
|
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(mt, { size: 16, style: fe }) }),
|
|
12981
|
-
/* @__PURE__ */
|
|
12983
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
12982
12984
|
/* @__PURE__ */ L("span", { style: se, children: "Sent" }),
|
|
12983
|
-
/* @__PURE__ */ L("span", { style: ue, children:
|
|
12985
|
+
/* @__PURE__ */ L("span", { style: ue, children: I })
|
|
12984
12986
|
] })
|
|
12985
12987
|
] }),
|
|
12986
|
-
|
|
12988
|
+
d && d !== I && /* @__PURE__ */ H("div", { style: oe, children: [
|
|
12987
12989
|
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(gt, { size: 16, style: fe }) }),
|
|
12988
|
-
/* @__PURE__ */
|
|
12990
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
12989
12991
|
/* @__PURE__ */ L("span", { style: se, children: "Received" }),
|
|
12990
|
-
/* @__PURE__ */ L("span", { style: ue, children:
|
|
12992
|
+
/* @__PURE__ */ L("span", { style: ue, children: d })
|
|
12991
12993
|
] })
|
|
12992
12994
|
] }),
|
|
12993
|
-
!
|
|
12995
|
+
!I && !d && E && /* @__PURE__ */ H("div", { style: oe, children: [
|
|
12994
12996
|
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(mt, { size: 16, style: fe }) }),
|
|
12995
|
-
/* @__PURE__ */
|
|
12997
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
12996
12998
|
/* @__PURE__ */ L("span", { style: se, children: "Date" }),
|
|
12997
|
-
/* @__PURE__ */ L("span", { style: ue, children:
|
|
12999
|
+
/* @__PURE__ */ L("span", { style: ue, children: E })
|
|
12998
13000
|
] })
|
|
12999
13001
|
] }),
|
|
13000
|
-
|
|
13002
|
+
C && /* @__PURE__ */ H("div", { style: oe, children: [
|
|
13001
13003
|
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(wt, { size: 16, style: fe }) }),
|
|
13002
|
-
/* @__PURE__ */
|
|
13004
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
13003
13005
|
/* @__PURE__ */ L("span", { style: se, children: "Importance" }),
|
|
13004
13006
|
/* @__PURE__ */ L("span", { style: {
|
|
13005
13007
|
...ue,
|
|
13006
|
-
color:
|
|
13008
|
+
color: F === 2 ? "#dc2626" : "#2563eb",
|
|
13007
13009
|
fontWeight: 500
|
|
13008
|
-
}, children:
|
|
13010
|
+
}, children: C })
|
|
13009
13011
|
] })
|
|
13010
13012
|
] }),
|
|
13011
|
-
|
|
13013
|
+
Z && /* @__PURE__ */ H("div", { style: oe, children: [
|
|
13012
13014
|
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(wt, { size: 16, style: fe }) }),
|
|
13013
|
-
/* @__PURE__ */
|
|
13015
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
13014
13016
|
/* @__PURE__ */ L("span", { style: se, children: "Sensitivity" }),
|
|
13015
|
-
/* @__PURE__ */ L("span", { style: ue, children:
|
|
13017
|
+
/* @__PURE__ */ L("span", { style: ue, children: Z })
|
|
13016
13018
|
] })
|
|
13017
13019
|
] }),
|
|
13018
|
-
|
|
13019
|
-
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(
|
|
13020
|
-
/* @__PURE__ */
|
|
13020
|
+
N && N !== "Email" && /* @__PURE__ */ H("div", { style: oe, children: [
|
|
13021
|
+
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(ar, { size: 16, style: fe }) }),
|
|
13022
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
13021
13023
|
/* @__PURE__ */ L("span", { style: se, children: "Type" }),
|
|
13022
|
-
/* @__PURE__ */ L("span", { style: ue, children:
|
|
13024
|
+
/* @__PURE__ */ L("span", { style: ue, children: N })
|
|
13023
13025
|
] })
|
|
13024
13026
|
] }),
|
|
13025
|
-
|
|
13026
|
-
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(
|
|
13027
|
-
/* @__PURE__ */
|
|
13027
|
+
S.length > 0 && /* @__PURE__ */ H("div", { style: { ...oe, borderTop: "1px solid #e5e7eb", marginTop: "4px", paddingTop: "10px" }, children: [
|
|
13028
|
+
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(sr, { size: 16, style: fe }) }),
|
|
13029
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
13028
13030
|
/* @__PURE__ */ L("span", { style: se, children: "Attachments" }),
|
|
13029
|
-
/* @__PURE__ */ L("div", { style: { ...ue, display: "flex", flexWrap: "wrap", gap: "6px" }, children:
|
|
13030
|
-
const
|
|
13031
|
-
return /* @__PURE__ */
|
|
13031
|
+
/* @__PURE__ */ L("div", { style: { ...ue, display: "flex", flexWrap: "wrap", gap: "6px" }, children: S.map((Y, k) => {
|
|
13032
|
+
const $ = Y.fileName || Y.name || "未知文件", M = Y.contentLength, J = M ? M > 1048576 ? `${(M / 1048576).toFixed(1)} MB` : M > 1024 ? `${(M / 1024).toFixed(0)} KB` : `${M} B` : "";
|
|
13033
|
+
return /* @__PURE__ */ H(
|
|
13032
13034
|
"span",
|
|
13033
13035
|
{
|
|
13034
13036
|
style: {
|
|
@@ -13043,31 +13045,31 @@ const se = {
|
|
|
13043
13045
|
border: "1px solid #e5e7eb"
|
|
13044
13046
|
},
|
|
13045
13047
|
children: [
|
|
13046
|
-
|
|
13047
|
-
|
|
13048
|
+
$,
|
|
13049
|
+
J && /* @__PURE__ */ H("span", { style: { color: "#9ca3af", fontSize: "12px" }, children: [
|
|
13048
13050
|
"(",
|
|
13049
|
-
|
|
13051
|
+
J,
|
|
13050
13052
|
")"
|
|
13051
13053
|
] })
|
|
13052
13054
|
]
|
|
13053
13055
|
},
|
|
13054
|
-
|
|
13056
|
+
k
|
|
13055
13057
|
);
|
|
13056
13058
|
}) })
|
|
13057
13059
|
] })
|
|
13058
13060
|
] }),
|
|
13059
|
-
|
|
13060
|
-
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(
|
|
13061
|
-
/* @__PURE__ */
|
|
13061
|
+
R && /* @__PURE__ */ H("div", { style: { ...oe, borderTop: S.length > 0 ? "none" : "1px solid #e5e7eb", marginTop: "4px", paddingTop: "10px" }, children: [
|
|
13062
|
+
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(or, { size: 16, style: fe }) }),
|
|
13063
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
13062
13064
|
/* @__PURE__ */ L("span", { style: se, children: "Message-ID" }),
|
|
13063
|
-
/* @__PURE__ */ L("span", { style: { ...ue, fontSize: "12px", color: "#9ca3af", fontFamily: "monospace" }, children:
|
|
13065
|
+
/* @__PURE__ */ L("span", { style: { ...ue, fontSize: "12px", color: "#9ca3af", fontFamily: "monospace" }, children: R })
|
|
13064
13066
|
] })
|
|
13065
13067
|
] }),
|
|
13066
|
-
|
|
13068
|
+
b && b !== I && b !== d && /* @__PURE__ */ H("div", { style: oe, children: [
|
|
13067
13069
|
/* @__PURE__ */ L("span", { style: ce, children: /* @__PURE__ */ L(gt, { size: 16, style: fe }) }),
|
|
13068
|
-
/* @__PURE__ */
|
|
13070
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", flex: 1 }, children: [
|
|
13069
13071
|
/* @__PURE__ */ L("span", { style: se, children: "Modified" }),
|
|
13070
|
-
/* @__PURE__ */ L("span", { style: { ...ue, fontSize: "12px", color: "#9ca3af" }, children:
|
|
13072
|
+
/* @__PURE__ */ L("span", { style: { ...ue, fontSize: "12px", color: "#9ca3af" }, children: b })
|
|
13071
13073
|
] })
|
|
13072
13074
|
] })
|
|
13073
13075
|
] })
|
|
@@ -13082,7 +13084,7 @@ const se = {
|
|
|
13082
13084
|
color: "#333",
|
|
13083
13085
|
overflowX: "auto"
|
|
13084
13086
|
},
|
|
13085
|
-
dangerouslySetInnerHTML: { __html:
|
|
13087
|
+
dangerouslySetInnerHTML: { __html: U }
|
|
13086
13088
|
}
|
|
13087
13089
|
)
|
|
13088
13090
|
]
|
|
@@ -13090,8 +13092,8 @@ const se = {
|
|
|
13090
13092
|
)
|
|
13091
13093
|
}
|
|
13092
13094
|
);
|
|
13093
|
-
};
|
|
13095
|
+
});
|
|
13094
13096
|
export {
|
|
13095
|
-
|
|
13097
|
+
Li as MsgRenderer
|
|
13096
13098
|
};
|
|
13097
|
-
//# sourceMappingURL=index-
|
|
13099
|
+
//# sourceMappingURL=index-OXjOFggq.mjs.map
|