@tybys/wasm-util 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +193 -193
  2. package/dist/tsdoc-metadata.json +1 -1
  3. package/dist/wasm-util.esm-bundler.js +2605 -2479
  4. package/dist/wasm-util.esm.js +2605 -2479
  5. package/dist/wasm-util.esm.min.js +1 -1
  6. package/dist/wasm-util.js +2605 -2479
  7. package/dist/wasm-util.min.js +1 -1
  8. package/lib/cjs/asyncify.js +157 -157
  9. package/lib/cjs/index.js +12 -12
  10. package/lib/cjs/jspi.js +45 -45
  11. package/lib/cjs/load.js +85 -82
  12. package/lib/cjs/memory.js +34 -34
  13. package/lib/cjs/wasi/error.js +102 -102
  14. package/lib/cjs/wasi/fd.js +267 -267
  15. package/lib/cjs/wasi/fs.js +2 -2
  16. package/lib/cjs/wasi/index.js +168 -168
  17. package/lib/cjs/wasi/path.js +173 -173
  18. package/lib/cjs/wasi/preview1.js +1478 -1369
  19. package/lib/cjs/wasi/rights.js +139 -139
  20. package/lib/cjs/wasi/types.js +219 -209
  21. package/lib/cjs/wasi/util.js +121 -67
  22. package/lib/cjs/webassembly.js +12 -12
  23. package/lib/mjs/asyncify.mjs +153 -153
  24. package/lib/mjs/index.mjs +9 -9
  25. package/lib/mjs/jspi.mjs +39 -39
  26. package/lib/mjs/load.mjs +78 -75
  27. package/lib/mjs/memory.mjs +28 -28
  28. package/lib/mjs/wasi/error.mjs +97 -97
  29. package/lib/mjs/wasi/fd.mjs +256 -256
  30. package/lib/mjs/wasi/fs.mjs +1 -1
  31. package/lib/mjs/wasi/index.mjs +164 -164
  32. package/lib/mjs/wasi/path.mjs +168 -168
  33. package/lib/mjs/wasi/preview1.mjs +1474 -1365
  34. package/lib/mjs/wasi/rights.mjs +134 -134
  35. package/lib/mjs/wasi/types.mjs +216 -206
  36. package/lib/mjs/wasi/util.mjs +108 -55
  37. package/lib/mjs/webassembly.mjs +9 -9
  38. package/package.json +58 -54
  39. package/lib/cjs/memfs.js +0 -2689
  40. package/lib/mjs/memfs.mjs +0 -2688
package/lib/mjs/memfs.mjs DELETED
@@ -1,2688 +0,0 @@
1
- "use strict";
2
- !function (t, e) { "object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports ? exports.memfs = e() : t.memfs = e(); }(("undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : this) || self, (function () { return function () { var t = { 9282: function (t, e, n) {
3
- "use strict";
4
- function r(t) { return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, r(t); }
5
- var o, i, a = n(2136).codes, s = a.ERR_AMBIGUOUS_ARGUMENT, c = a.ERR_INVALID_ARG_TYPE, u = a.ERR_INVALID_ARG_VALUE, f = a.ERR_INVALID_RETURN_VALUE, l = a.ERR_MISSING_ARGS, h = n(5961), p = n(9539).inspect, d = n(9539).types, y = d.isPromise, g = d.isRegExp, b = Object.assign ? Object.assign : n(8091).assign, m = Object.is ? Object.is : n(609);
6
- new Map;
7
- function v() { var t = n(9158); o = t.isDeepEqual, i = t.isDeepStrictEqual; }
8
- var w = !1, _ = t.exports = R, S = {};
9
- function E(t) { if (t.message instanceof Error)
10
- throw t.message; throw new h(t); }
11
- function O(t, e, n, r) { if (!n) {
12
- var o = !1;
13
- if (0 === e)
14
- o = !0, r = "No value argument passed to `assert.ok()`";
15
- else if (r instanceof Error)
16
- throw r;
17
- var i = new h({ actual: n, expected: !0, message: r, operator: "==", stackStartFn: t });
18
- throw i.generatedMessage = o, i;
19
- } }
20
- function R() { for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
21
- e[n] = arguments[n]; O.apply(void 0, [R, e.length].concat(e)); }
22
- _.fail = function t(e, n, r, o, i) { var a, s = arguments.length; if (0 === s)
23
- a = "Failed";
24
- else if (1 === s)
25
- r = e, e = void 0;
26
- else {
27
- if (!1 === w) {
28
- w = !0;
29
- var c = process.emitWarning ? process.emitWarning : console.warn.bind(console);
30
- c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.", "DeprecationWarning", "DEP0094");
31
- }
32
- 2 === s && (o = "!=");
33
- } if (r instanceof Error)
34
- throw r; var u = { actual: e, expected: n, operator: void 0 === o ? "fail" : o, stackStartFn: i || t }; void 0 !== r && (u.message = r); var f = new h(u); throw a && (f.message = a, f.generatedMessage = !0), f; }, _.AssertionError = h, _.ok = R, _.equal = function t(e, n, r) { if (arguments.length < 2)
35
- throw new l("actual", "expected"); e != n && E({ actual: e, expected: n, message: r, operator: "==", stackStartFn: t }); }, _.notEqual = function t(e, n, r) { if (arguments.length < 2)
36
- throw new l("actual", "expected"); e == n && E({ actual: e, expected: n, message: r, operator: "!=", stackStartFn: t }); }, _.deepEqual = function t(e, n, r) { if (arguments.length < 2)
37
- throw new l("actual", "expected"); void 0 === o && v(), o(e, n) || E({ actual: e, expected: n, message: r, operator: "deepEqual", stackStartFn: t }); }, _.notDeepEqual = function t(e, n, r) { if (arguments.length < 2)
38
- throw new l("actual", "expected"); void 0 === o && v(), o(e, n) && E({ actual: e, expected: n, message: r, operator: "notDeepEqual", stackStartFn: t }); }, _.deepStrictEqual = function t(e, n, r) { if (arguments.length < 2)
39
- throw new l("actual", "expected"); void 0 === o && v(), i(e, n) || E({ actual: e, expected: n, message: r, operator: "deepStrictEqual", stackStartFn: t }); }, _.notDeepStrictEqual = function t(e, n, r) { if (arguments.length < 2)
40
- throw new l("actual", "expected"); void 0 === o && v(); i(e, n) && E({ actual: e, expected: n, message: r, operator: "notDeepStrictEqual", stackStartFn: t }); }, _.strictEqual = function t(e, n, r) { if (arguments.length < 2)
41
- throw new l("actual", "expected"); m(e, n) || E({ actual: e, expected: n, message: r, operator: "strictEqual", stackStartFn: t }); }, _.notStrictEqual = function t(e, n, r) { if (arguments.length < 2)
42
- throw new l("actual", "expected"); m(e, n) && E({ actual: e, expected: n, message: r, operator: "notStrictEqual", stackStartFn: t }); };
43
- var A = function t(e, n, r) { var o = this; !function (t, e) { if (!(t instanceof e))
44
- throw new TypeError("Cannot call a class as a function"); }(this, t), n.forEach((function (t) { t in e && (void 0 !== r && "string" == typeof r[t] && g(e[t]) && e[t].test(r[t]) ? o[t] = r[t] : o[t] = e[t]); })); };
45
- function T(t, e, n, r, o, a) { if (!(n in t) || !i(t[n], e[n])) {
46
- if (!r) {
47
- var s = new A(t, o), c = new A(e, o, t), u = new h({ actual: s, expected: c, operator: "deepStrictEqual", stackStartFn: a });
48
- throw u.actual = t, u.expected = e, u.operator = a.name, u;
49
- }
50
- E({ actual: t, expected: e, message: r, operator: a.name, stackStartFn: a });
51
- } }
52
- function k(t, e, n, i) { if ("function" != typeof e) {
53
- if (g(e))
54
- return e.test(t);
55
- if (2 === arguments.length)
56
- throw new c("expected", ["Function", "RegExp"], e);
57
- if ("object" !== r(t) || null === t) {
58
- var a = new h({ actual: t, expected: e, message: n, operator: "deepStrictEqual", stackStartFn: i });
59
- throw a.operator = i.name, a;
60
- }
61
- var s = Object.keys(e);
62
- if (e instanceof Error)
63
- s.push("name", "message");
64
- else if (0 === s.length)
65
- throw new u("error", e, "may not be an empty object");
66
- return void 0 === o && v(), s.forEach((function (r) { "string" == typeof t[r] && g(e[r]) && e[r].test(t[r]) || T(t, e, r, n, s, i); })), !0;
67
- } return void 0 !== e.prototype && t instanceof e || !Error.isPrototypeOf(e) && !0 === e.call({}, t); }
68
- function I(t) { if ("function" != typeof t)
69
- throw new c("fn", "Function", t); try {
70
- t();
71
- }
72
- catch (t) {
73
- return t;
74
- } return S; }
75
- function j(t) { return y(t) || null !== t && "object" === r(t) && "function" == typeof t.then && "function" == typeof t.catch; }
76
- function N(t) { return Promise.resolve().then((function () { var e; if ("function" == typeof t) {
77
- if (!j(e = t()))
78
- throw new f("instance of Promise", "promiseFn", e);
79
- }
80
- else {
81
- if (!j(t))
82
- throw new c("promiseFn", ["Function", "Promise"], t);
83
- e = t;
84
- } return Promise.resolve().then((function () { return e; })).then((function () { return S; })).catch((function (t) { return t; })); })); }
85
- function B(t, e, n, o) { if ("string" == typeof n) {
86
- if (4 === arguments.length)
87
- throw new c("error", ["Object", "Error", "Function", "RegExp"], n);
88
- if ("object" === r(e) && null !== e) {
89
- if (e.message === n)
90
- throw new s("error/message", 'The error message "'.concat(e.message, '" is identical to the message.'));
91
- }
92
- else if (e === n)
93
- throw new s("error/message", 'The error "'.concat(e, '" is identical to the message.'));
94
- o = n, n = void 0;
95
- }
96
- else if (null != n && "object" !== r(n) && "function" != typeof n)
97
- throw new c("error", ["Object", "Error", "Function", "RegExp"], n); if (e === S) {
98
- var i = "";
99
- n && n.name && (i += " (".concat(n.name, ")")), i += o ? ": ".concat(o) : ".";
100
- var a = "rejects" === t.name ? "rejection" : "exception";
101
- E({ actual: void 0, expected: n, operator: t.name, message: "Missing expected ".concat(a).concat(i), stackStartFn: t });
102
- } if (n && !k(e, n, o, t))
103
- throw e; }
104
- function P(t, e, n, r) { if (e !== S) {
105
- if ("string" == typeof n && (r = n, n = void 0), !n || k(e, n)) {
106
- var o = r ? ": ".concat(r) : ".", i = "doesNotReject" === t.name ? "rejection" : "exception";
107
- E({ actual: e, expected: n, operator: t.name, message: "Got unwanted ".concat(i).concat(o, "\n") + 'Actual message: "'.concat(e && e.message, '"'), stackStartFn: t });
108
- }
109
- throw e;
110
- } }
111
- function L() { for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
112
- e[n] = arguments[n]; O.apply(void 0, [L, e.length].concat(e)); }
113
- _.throws = function t(e) { for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
114
- r[o - 1] = arguments[o]; B.apply(void 0, [t, I(e)].concat(r)); }, _.rejects = function t(e) { for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
115
- r[o - 1] = arguments[o]; return N(e).then((function (e) { return B.apply(void 0, [t, e].concat(r)); })); }, _.doesNotThrow = function t(e) { for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
116
- r[o - 1] = arguments[o]; P.apply(void 0, [t, I(e)].concat(r)); }, _.doesNotReject = function t(e) { for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
117
- r[o - 1] = arguments[o]; return N(e).then((function (e) { return P.apply(void 0, [t, e].concat(r)); })); }, _.ifError = function t(e) { if (null != e) {
118
- var n = "ifError got unwanted exception: ";
119
- "object" === r(e) && "string" == typeof e.message ? 0 === e.message.length && e.constructor ? n += e.constructor.name : n += e.message : n += p(e);
120
- var o = new h({ actual: e, expected: null, operator: "ifError", message: n, stackStartFn: t }), i = e.stack;
121
- if ("string" == typeof i) {
122
- var a = i.split("\n");
123
- a.shift();
124
- for (var s = o.stack.split("\n"), c = 0; c < a.length; c++) {
125
- var u = s.indexOf(a[c]);
126
- if (-1 !== u) {
127
- s = s.slice(0, u);
128
- break;
129
- }
130
- }
131
- o.stack = "".concat(s.join("\n"), "\n").concat(a.join("\n"));
132
- }
133
- throw o;
134
- } }, _.strict = b(L, _, { equal: _.strictEqual, deepEqual: _.deepStrictEqual, notEqual: _.notStrictEqual, notDeepEqual: _.notDeepStrictEqual }), _.strict.strict = _.strict;
135
- }, 5961: function (t, e, n) {
136
- "use strict";
137
- function r(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
138
- function o(t, e) { for (var n = 0; n < e.length; n++) {
139
- var r = e[n];
140
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
141
- } }
142
- function i(t, e) { return !e || "object" !== h(e) && "function" != typeof e ? a(t) : e; }
143
- function a(t) { if (void 0 === t)
144
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return t; }
145
- function s(t) { var e = "function" == typeof Map ? new Map : void 0; return s = function (t) { if (null === t || (n = t, -1 === Function.toString.call(n).indexOf("[native code]")))
146
- return t; var n; if ("function" != typeof t)
147
- throw new TypeError("Super expression must either be null or a function"); if (void 0 !== e) {
148
- if (e.has(t))
149
- return e.get(t);
150
- e.set(t, r);
151
- } function r() { return u(t, arguments, l(this).constructor); } return r.prototype = Object.create(t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), f(r, t); }, s(t); }
152
- function c() { if ("undefined" == typeof Reflect || !Reflect.construct)
153
- return !1; if (Reflect.construct.sham)
154
- return !1; if ("function" == typeof Proxy)
155
- return !0; try {
156
- return Date.prototype.toString.call(Reflect.construct(Date, [], (function () { }))), !0;
157
- }
158
- catch (t) {
159
- return !1;
160
- } }
161
- function u(t, e, n) { return u = c() ? Reflect.construct : function (t, e, n) { var r = [null]; r.push.apply(r, e); var o = new (Function.bind.apply(t, r)); return n && f(o, n.prototype), o; }, u.apply(null, arguments); }
162
- function f(t, e) { return f = Object.setPrototypeOf || function (t, e) { return t.__proto__ = e, t; }, f(t, e); }
163
- function l(t) { return l = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, l(t); }
164
- function h(t) { return h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, h(t); }
165
- var p = n(9539).inspect, d = n(2136).codes.ERR_INVALID_ARG_TYPE;
166
- function y(t, e, n) { return (void 0 === n || n > t.length) && (n = t.length), t.substring(n - e.length, n) === e; }
167
- var g = "", b = "", m = "", v = "", w = { deepStrictEqual: "Expected values to be strictly deep-equal:", strictEqual: "Expected values to be strictly equal:", strictEqualObject: 'Expected "actual" to be reference-equal to "expected":', deepEqual: "Expected values to be loosely deep-equal:", equal: "Expected values to be loosely equal:", notDeepStrictEqual: 'Expected "actual" not to be strictly deep-equal to:', notStrictEqual: 'Expected "actual" to be strictly unequal to:', notStrictEqualObject: 'Expected "actual" not to be reference-equal to "expected":', notDeepEqual: 'Expected "actual" not to be loosely deep-equal to:', notEqual: 'Expected "actual" to be loosely unequal to:', notIdentical: "Values identical but not reference-equal:" };
168
- function _(t) { var e = Object.keys(t), n = Object.create(Object.getPrototypeOf(t)); return e.forEach((function (e) { n[e] = t[e]; })), Object.defineProperty(n, "message", { value: t.message }), n; }
169
- function S(t) { return p(t, { compact: !1, customInspect: !1, depth: 1e3, maxArrayLength: 1 / 0, showHidden: !1, breakLength: 1 / 0, showProxy: !1, sorted: !0, getters: !0 }); }
170
- function E(t, e, n) { var r = "", o = "", i = 0, a = "", s = !1, c = S(t), u = c.split("\n"), f = S(e).split("\n"), l = 0, p = ""; if ("strictEqual" === n && "object" === h(t) && "object" === h(e) && null !== t && null !== e && (n = "strictEqualObject"), 1 === u.length && 1 === f.length && u[0] !== f[0]) {
171
- var d = u[0].length + f[0].length;
172
- if (d <= 10) {
173
- if (!("object" === h(t) && null !== t || "object" === h(e) && null !== e || 0 === t && 0 === e))
174
- return "".concat(w[n], "\n\n") + "".concat(u[0], " !== ").concat(f[0], "\n");
175
- }
176
- else if ("strictEqualObject" !== n) {
177
- if (d < (process.stderr && process.stderr.isTTY ? process.stderr.columns : 80)) {
178
- for (; u[0][l] === f[0][l];)
179
- l++;
180
- l > 2 && (p = "\n ".concat(function (t, e) { if (e = Math.floor(e), 0 == t.length || 0 == e)
181
- return ""; var n = t.length * e; for (e = Math.floor(Math.log(e) / Math.log(2)); e;)
182
- t += t, e--; return t + t.substring(0, n - t.length); }(" ", l), "^"), l = 0);
183
- }
184
- }
185
- } for (var _ = u[u.length - 1], E = f[f.length - 1]; _ === E && (l++ < 2 ? a = "\n ".concat(_).concat(a) : r = _, u.pop(), f.pop(), 0 !== u.length && 0 !== f.length);)
186
- _ = u[u.length - 1], E = f[f.length - 1]; var O = Math.max(u.length, f.length); if (0 === O) {
187
- var R = c.split("\n");
188
- if (R.length > 30)
189
- for (R[26] = "".concat(g, "...").concat(v); R.length > 27;)
190
- R.pop();
191
- return "".concat(w.notIdentical, "\n\n").concat(R.join("\n"), "\n");
192
- } l > 3 && (a = "\n".concat(g, "...").concat(v).concat(a), s = !0), "" !== r && (a = "\n ".concat(r).concat(a), r = ""); var A = 0, T = w[n] + "\n".concat(b, "+ actual").concat(v, " ").concat(m, "- expected").concat(v), k = " ".concat(g, "...").concat(v, " Lines skipped"); for (l = 0; l < O; l++) {
193
- var I = l - i;
194
- if (u.length < l + 1)
195
- I > 1 && l > 2 && (I > 4 ? (o += "\n".concat(g, "...").concat(v), s = !0) : I > 3 && (o += "\n ".concat(f[l - 2]), A++), o += "\n ".concat(f[l - 1]), A++), i = l, r += "\n".concat(m, "-").concat(v, " ").concat(f[l]), A++;
196
- else if (f.length < l + 1)
197
- I > 1 && l > 2 && (I > 4 ? (o += "\n".concat(g, "...").concat(v), s = !0) : I > 3 && (o += "\n ".concat(u[l - 2]), A++), o += "\n ".concat(u[l - 1]), A++), i = l, o += "\n".concat(b, "+").concat(v, " ").concat(u[l]), A++;
198
- else {
199
- var j = f[l], N = u[l], B = N !== j && (!y(N, ",") || N.slice(0, -1) !== j);
200
- B && y(j, ",") && j.slice(0, -1) === N && (B = !1, N += ","), B ? (I > 1 && l > 2 && (I > 4 ? (o += "\n".concat(g, "...").concat(v), s = !0) : I > 3 && (o += "\n ".concat(u[l - 2]), A++), o += "\n ".concat(u[l - 1]), A++), i = l, o += "\n".concat(b, "+").concat(v, " ").concat(N), r += "\n".concat(m, "-").concat(v, " ").concat(j), A += 2) : (o += r, r = "", 1 !== I && 0 !== l || (o += "\n ".concat(N), A++));
201
- }
202
- if (A > 20 && l < O - 2)
203
- return "".concat(T).concat(k, "\n").concat(o, "\n").concat(g, "...").concat(v).concat(r, "\n") + "".concat(g, "...").concat(v);
204
- } return "".concat(T).concat(s ? k : "", "\n").concat(o).concat(r).concat(a).concat(p); }
205
- var O = function (t) { function e(t) { var n; if (function (t, e) { if (!(t instanceof e))
206
- throw new TypeError("Cannot call a class as a function"); }(this, e), "object" !== h(t) || null === t)
207
- throw new d("options", "Object", t); var r = t.message, o = t.operator, s = t.stackStartFn, c = t.actual, u = t.expected, f = Error.stackTraceLimit; if (Error.stackTraceLimit = 0, null != r)
208
- n = i(this, l(e).call(this, String(r)));
209
- else if (process.stderr && process.stderr.isTTY && (process.stderr && process.stderr.getColorDepth && 1 !== process.stderr.getColorDepth() ? (g = "", b = "", v = "", m = "") : (g = "", b = "", v = "", m = "")), "object" === h(c) && null !== c && "object" === h(u) && null !== u && "stack" in c && c instanceof Error && "stack" in u && u instanceof Error && (c = _(c), u = _(u)), "deepStrictEqual" === o || "strictEqual" === o)
210
- n = i(this, l(e).call(this, E(c, u, o)));
211
- else if ("notDeepStrictEqual" === o || "notStrictEqual" === o) {
212
- var p = w[o], y = S(c).split("\n");
213
- if ("notStrictEqual" === o && "object" === h(c) && null !== c && (p = w.notStrictEqualObject), y.length > 30)
214
- for (y[26] = "".concat(g, "...").concat(v); y.length > 27;)
215
- y.pop();
216
- n = 1 === y.length ? i(this, l(e).call(this, "".concat(p, " ").concat(y[0]))) : i(this, l(e).call(this, "".concat(p, "\n\n").concat(y.join("\n"), "\n")));
217
- }
218
- else {
219
- var O = S(c), R = "", A = w[o];
220
- "notDeepEqual" === o || "notEqual" === o ? (O = "".concat(w[o], "\n\n").concat(O)).length > 1024 && (O = "".concat(O.slice(0, 1021), "...")) : (R = "".concat(S(u)), O.length > 512 && (O = "".concat(O.slice(0, 509), "...")), R.length > 512 && (R = "".concat(R.slice(0, 509), "...")), "deepEqual" === o || "equal" === o ? O = "".concat(A, "\n\n").concat(O, "\n\nshould equal\n\n") : R = " ".concat(o, " ").concat(R)), n = i(this, l(e).call(this, "".concat(O).concat(R)));
221
- } return Error.stackTraceLimit = f, n.generatedMessage = !r, Object.defineProperty(a(n), "name", { value: "AssertionError [ERR_ASSERTION]", enumerable: !1, writable: !0, configurable: !0 }), n.code = "ERR_ASSERTION", n.actual = c, n.expected = u, n.operator = o, Error.captureStackTrace && Error.captureStackTrace(a(n), s), n.stack, n.name = "AssertionError", i(n); } var n, s, c; return function (t, e) { if ("function" != typeof e && null !== e)
222
- throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), e && f(t, e); }(e, t), n = e, s = [{ key: "toString", value: function () { return "".concat(this.name, " [").concat(this.code, "]: ").concat(this.message); } }, { key: p.custom, value: function (t, e) { return p(this, function (t) { for (var e = 1; e < arguments.length; e++) {
223
- var n = null != arguments[e] ? arguments[e] : {}, o = Object.keys(n);
224
- "function" == typeof Object.getOwnPropertySymbols && (o = o.concat(Object.getOwnPropertySymbols(n).filter((function (t) { return Object.getOwnPropertyDescriptor(n, t).enumerable; })))), o.forEach((function (e) { r(t, e, n[e]); }));
225
- } return t; }({}, e, { customInspect: !1, depth: 0 })); } }], s && o(n.prototype, s), c && o(n, c), e; }(s(Error));
226
- t.exports = O;
227
- }, 2136: function (t, e, n) {
228
- "use strict";
229
- function r(t) { return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, r(t); }
230
- function o(t, e) { return !e || "object" !== r(e) && "function" != typeof e ? function (t) { if (void 0 === t)
231
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return t; }(t) : e; }
232
- function i(t) { return i = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, i(t); }
233
- function a(t, e) { return a = Object.setPrototypeOf || function (t, e) { return t.__proto__ = e, t; }, a(t, e); }
234
- var s, c, u = {};
235
- function f(t, e, n) { n || (n = Error); var r = function (n) { function r(n, a, s) { var c; return function (t, e) { if (!(t instanceof e))
236
- throw new TypeError("Cannot call a class as a function"); }(this, r), c = o(this, i(r).call(this, function (t, n, r) { return "string" == typeof e ? e : e(t, n, r); }(n, a, s))), c.code = t, c; } return function (t, e) { if ("function" != typeof e && null !== e)
237
- throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), e && a(t, e); }(r, n), r; }(n); u[t] = r; }
238
- function l(t, e) { if (Array.isArray(t)) {
239
- var n = t.length;
240
- return t = t.map((function (t) { return String(t); })), n > 2 ? "one of ".concat(e, " ").concat(t.slice(0, n - 1).join(", "), ", or ") + t[n - 1] : 2 === n ? "one of ".concat(e, " ").concat(t[0], " or ").concat(t[1]) : "of ".concat(e, " ").concat(t[0]);
241
- } return "of ".concat(e, " ").concat(String(t)); }
242
- f("ERR_AMBIGUOUS_ARGUMENT", 'The "%s" argument is ambiguous. %s', TypeError), f("ERR_INVALID_ARG_TYPE", (function (t, e, o) { var i, a, c, u; if (void 0 === s && (s = n(9282)), s("string" == typeof t, "'name' must be a string"), "string" == typeof e && (a = "not ", e.substr(!c || c < 0 ? 0 : +c, a.length) === a) ? (i = "must not be", e = e.replace(/^not /, "")) : i = "must be", function (t, e, n) { return (void 0 === n || n > t.length) && (n = t.length), t.substring(n - e.length, n) === e; }(t, " argument"))
243
- u = "The ".concat(t, " ").concat(i, " ").concat(l(e, "type"));
244
- else {
245
- var f = function (t, e, n) { return "number" != typeof n && (n = 0), !(n + e.length > t.length) && -1 !== t.indexOf(e, n); }(t, ".") ? "property" : "argument";
246
- u = 'The "'.concat(t, '" ').concat(f, " ").concat(i, " ").concat(l(e, "type"));
247
- } return u += ". Received type ".concat(r(o)); }), TypeError), f("ERR_INVALID_ARG_VALUE", (function (t, e) { var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "is invalid"; void 0 === c && (c = n(9539)); var o = c.inspect(e); return o.length > 128 && (o = "".concat(o.slice(0, 128), "...")), "The argument '".concat(t, "' ").concat(r, ". Received ").concat(o); }), TypeError, RangeError), f("ERR_INVALID_RETURN_VALUE", (function (t, e, n) { var o; return o = n && n.constructor && n.constructor.name ? "instance of ".concat(n.constructor.name) : "type ".concat(r(n)), "Expected ".concat(t, ' to be returned from the "').concat(e, '"') + " function but got ".concat(o, "."); }), TypeError), f("ERR_MISSING_ARGS", (function () { for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
248
- e[r] = arguments[r]; void 0 === s && (s = n(9282)), s(e.length > 0, "At least one arg needs to be specified"); var o = "The ", i = e.length; switch (e = e.map((function (t) { return '"'.concat(t, '"'); })), i) {
249
- case 1:
250
- o += "".concat(e[0], " argument");
251
- break;
252
- case 2:
253
- o += "".concat(e[0], " and ").concat(e[1], " arguments");
254
- break;
255
- default: o += e.slice(0, i - 1).join(", "), o += ", and ".concat(e[i - 1], " arguments");
256
- } return "".concat(o, " must be specified"); }), TypeError), t.exports.codes = u;
257
- }, 9158: function (t, e, n) {
258
- "use strict";
259
- function r(t, e) { return function (t) { if (Array.isArray(t))
260
- return t; }(t) || function (t, e) { var n = [], r = !0, o = !1, i = void 0; try {
261
- for (var a, s = t[Symbol.iterator](); !(r = (a = s.next()).done) && (n.push(a.value), !e || n.length !== e); r = !0)
262
- ;
263
- }
264
- catch (t) {
265
- o = !0, i = t;
266
- }
267
- finally {
268
- try {
269
- r || null == s.return || s.return();
270
- }
271
- finally {
272
- if (o)
273
- throw i;
274
- }
275
- } return n; }(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }(); }
276
- function o(t) { return o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, o(t); }
277
- var i = void 0 !== /a/g.flags, a = function (t) { var e = []; return t.forEach((function (t) { return e.push(t); })), e; }, s = function (t) { var e = []; return t.forEach((function (t, n) { return e.push([n, t]); })), e; }, c = Object.is ? Object.is : n(609), u = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols : function () { return []; }, f = Number.isNaN ? Number.isNaN : n(360);
278
- function l(t) { return t.call.bind(t); }
279
- var h = l(Object.prototype.hasOwnProperty), p = l(Object.prototype.propertyIsEnumerable), d = l(Object.prototype.toString), y = n(9539).types, g = y.isAnyArrayBuffer, b = y.isArrayBufferView, m = y.isDate, v = y.isMap, w = y.isRegExp, _ = y.isSet, S = y.isNativeError, E = y.isBoxedPrimitive, O = y.isNumberObject, R = y.isStringObject, A = y.isBooleanObject, T = y.isBigIntObject, k = y.isSymbolObject, I = y.isFloat32Array, j = y.isFloat64Array;
280
- function N(t) { if (0 === t.length || t.length > 10)
281
- return !0; for (var e = 0; e < t.length; e++) {
282
- var n = t.charCodeAt(e);
283
- if (n < 48 || n > 57)
284
- return !0;
285
- } return 10 === t.length && t >= Math.pow(2, 32); }
286
- function B(t) { return Object.keys(t).filter(N).concat(u(t).filter(Object.prototype.propertyIsEnumerable.bind(t))); }
287
- function P(t, e) { if (t === e)
288
- return 0; for (var n = t.length, r = e.length, o = 0, i = Math.min(n, r); o < i; ++o)
289
- if (t[o] !== e[o]) {
290
- n = t[o], r = e[o];
291
- break;
292
- } return n < r ? -1 : r < n ? 1 : 0; }
293
- function L(t, e, n, r) { if (t === e)
294
- return 0 !== t || (!n || c(t, e)); if (n) {
295
- if ("object" !== o(t))
296
- return "number" == typeof t && f(t) && f(e);
297
- if ("object" !== o(e) || null === t || null === e)
298
- return !1;
299
- if (Object.getPrototypeOf(t) !== Object.getPrototypeOf(e))
300
- return !1;
301
- }
302
- else {
303
- if (null === t || "object" !== o(t))
304
- return (null === e || "object" !== o(e)) && t == e;
305
- if (null === e || "object" !== o(e))
306
- return !1;
307
- } var a, s, u, l, h = d(t); if (h !== d(e))
308
- return !1; if (Array.isArray(t)) {
309
- if (t.length !== e.length)
310
- return !1;
311
- var p = B(t), y = B(e);
312
- return p.length === y.length && F(t, e, n, r, 1, p);
313
- } if ("[object Object]" === h && (!v(t) && v(e) || !_(t) && _(e)))
314
- return !1; if (m(t)) {
315
- if (!m(e) || Date.prototype.getTime.call(t) !== Date.prototype.getTime.call(e))
316
- return !1;
317
- }
318
- else if (w(t)) {
319
- if (!w(e) || (u = t, l = e, !(i ? u.source === l.source && u.flags === l.flags : RegExp.prototype.toString.call(u) === RegExp.prototype.toString.call(l))))
320
- return !1;
321
- }
322
- else if (S(t) || t instanceof Error) {
323
- if (t.message !== e.message || t.name !== e.name)
324
- return !1;
325
- }
326
- else {
327
- if (b(t)) {
328
- if (n || !I(t) && !j(t)) {
329
- if (!function (t, e) { return t.byteLength === e.byteLength && 0 === P(new Uint8Array(t.buffer, t.byteOffset, t.byteLength), new Uint8Array(e.buffer, e.byteOffset, e.byteLength)); }(t, e))
330
- return !1;
331
- }
332
- else if (!function (t, e) { if (t.byteLength !== e.byteLength)
333
- return !1; for (var n = 0; n < t.byteLength; n++)
334
- if (t[n] !== e[n])
335
- return !1; return !0; }(t, e))
336
- return !1;
337
- var N = B(t), L = B(e);
338
- return N.length === L.length && F(t, e, n, r, 0, N);
339
- }
340
- if (_(t))
341
- return !(!_(e) || t.size !== e.size) && F(t, e, n, r, 2);
342
- if (v(t))
343
- return !(!v(e) || t.size !== e.size) && F(t, e, n, r, 3);
344
- if (g(t)) {
345
- if (s = e, (a = t).byteLength !== s.byteLength || 0 !== P(new Uint8Array(a), new Uint8Array(s)))
346
- return !1;
347
- }
348
- else if (E(t) && !function (t, e) { return O(t) ? O(e) && c(Number.prototype.valueOf.call(t), Number.prototype.valueOf.call(e)) : R(t) ? R(e) && String.prototype.valueOf.call(t) === String.prototype.valueOf.call(e) : A(t) ? A(e) && Boolean.prototype.valueOf.call(t) === Boolean.prototype.valueOf.call(e) : T(t) ? T(e) && BigInt.prototype.valueOf.call(t) === BigInt.prototype.valueOf.call(e) : k(e) && Symbol.prototype.valueOf.call(t) === Symbol.prototype.valueOf.call(e); }(t, e))
349
- return !1;
350
- } return F(t, e, n, r, 0); }
351
- function x(t, e) { return e.filter((function (e) { return p(t, e); })); }
352
- function F(t, e, n, r, o, i) { if (5 === arguments.length) {
353
- i = Object.keys(t);
354
- var a = Object.keys(e);
355
- if (i.length !== a.length)
356
- return !1;
357
- } for (var s = 0; s < i.length; s++)
358
- if (!h(e, i[s]))
359
- return !1; if (n && 5 === arguments.length) {
360
- var c = u(t);
361
- if (0 !== c.length) {
362
- var f = 0;
363
- for (s = 0; s < c.length; s++) {
364
- var l = c[s];
365
- if (p(t, l)) {
366
- if (!p(e, l))
367
- return !1;
368
- i.push(l), f++;
369
- }
370
- else if (p(e, l))
371
- return !1;
372
- }
373
- var d = u(e);
374
- if (c.length !== d.length && x(e, d).length !== f)
375
- return !1;
376
- }
377
- else {
378
- var y = u(e);
379
- if (0 !== y.length && 0 !== x(e, y).length)
380
- return !1;
381
- }
382
- } if (0 === i.length && (0 === o || 1 === o && 0 === t.length || 0 === t.size))
383
- return !0; if (void 0 === r)
384
- r = { val1: new Map, val2: new Map, position: 0 };
385
- else {
386
- var g = r.val1.get(t);
387
- if (void 0 !== g) {
388
- var b = r.val2.get(e);
389
- if (void 0 !== b)
390
- return g === b;
391
- }
392
- r.position++;
393
- } r.val1.set(t, r.position), r.val2.set(e, r.position); var m = W(t, e, n, i, r, o); return r.val1.delete(t), r.val2.delete(e), m; }
394
- function C(t, e, n, r) { for (var o = a(t), i = 0; i < o.length; i++) {
395
- var s = o[i];
396
- if (L(e, s, n, r))
397
- return t.delete(s), !0;
398
- } return !1; }
399
- function M(t) { switch (o(t)) {
400
- case "undefined": return null;
401
- case "object": return;
402
- case "symbol": return !1;
403
- case "string": t = +t;
404
- case "number": if (f(t))
405
- return !1;
406
- } return !0; }
407
- function U(t, e, n) { var r = M(n); return null != r ? r : e.has(r) && !t.has(r); }
408
- function D(t, e, n, r, o) { var i = M(n); if (null != i)
409
- return i; var a = e.get(i); return !(void 0 === a && !e.has(i) || !L(r, a, !1, o)) && (!t.has(i) && L(r, a, !1, o)); }
410
- function q(t, e, n, r, o, i) { for (var s = a(t), c = 0; c < s.length; c++) {
411
- var u = s[c];
412
- if (L(n, u, o, i) && L(r, e.get(u), o, i))
413
- return t.delete(u), !0;
414
- } return !1; }
415
- function W(t, e, n, i, c, u) { var f = 0; if (2 === u) {
416
- if (!function (t, e, n, r) { for (var i = null, s = a(t), c = 0; c < s.length; c++) {
417
- var u = s[c];
418
- if ("object" === o(u) && null !== u)
419
- null === i && (i = new Set), i.add(u);
420
- else if (!e.has(u)) {
421
- if (n)
422
- return !1;
423
- if (!U(t, e, u))
424
- return !1;
425
- null === i && (i = new Set), i.add(u);
426
- }
427
- } if (null !== i) {
428
- for (var f = a(e), l = 0; l < f.length; l++) {
429
- var h = f[l];
430
- if ("object" === o(h) && null !== h) {
431
- if (!C(i, h, n, r))
432
- return !1;
433
- }
434
- else if (!n && !t.has(h) && !C(i, h, n, r))
435
- return !1;
436
- }
437
- return 0 === i.size;
438
- } return !0; }(t, e, n, c))
439
- return !1;
440
- }
441
- else if (3 === u) {
442
- if (!function (t, e, n, i) { for (var a = null, c = s(t), u = 0; u < c.length; u++) {
443
- var f = r(c[u], 2), l = f[0], h = f[1];
444
- if ("object" === o(l) && null !== l)
445
- null === a && (a = new Set), a.add(l);
446
- else {
447
- var p = e.get(l);
448
- if (void 0 === p && !e.has(l) || !L(h, p, n, i)) {
449
- if (n)
450
- return !1;
451
- if (!D(t, e, l, h, i))
452
- return !1;
453
- null === a && (a = new Set), a.add(l);
454
- }
455
- }
456
- } if (null !== a) {
457
- for (var d = s(e), y = 0; y < d.length; y++) {
458
- var g = r(d[y], 2), b = (l = g[0], g[1]);
459
- if ("object" === o(l) && null !== l) {
460
- if (!q(a, t, l, b, n, i))
461
- return !1;
462
- }
463
- else if (!(n || t.has(l) && L(t.get(l), b, !1, i) || q(a, t, l, b, !1, i)))
464
- return !1;
465
- }
466
- return 0 === a.size;
467
- } return !0; }(t, e, n, c))
468
- return !1;
469
- }
470
- else if (1 === u)
471
- for (; f < t.length; f++) {
472
- if (!h(t, f)) {
473
- if (h(e, f))
474
- return !1;
475
- for (var l = Object.keys(t); f < l.length; f++) {
476
- var p = l[f];
477
- if (!h(e, p) || !L(t[p], e[p], n, c))
478
- return !1;
479
- }
480
- return l.length === Object.keys(e).length;
481
- }
482
- if (!h(e, f) || !L(t[f], e[f], n, c))
483
- return !1;
484
- } for (f = 0; f < i.length; f++) {
485
- var d = i[f];
486
- if (!L(t[d], e[d], n, c))
487
- return !1;
488
- } return !0; }
489
- t.exports = { isDeepEqual: function (t, e) { return L(t, e, false); }, isDeepStrictEqual: function (t, e) { return L(t, e, true); } };
490
- }, 9742: function (t, e) {
491
- "use strict";
492
- e.byteLength = function (t) { var e = c(t), n = e[0], r = e[1]; return 3 * (n + r) / 4 - r; }, e.toByteArray = function (t) { var e, n, i = c(t), a = i[0], s = i[1], u = new o(function (t, e, n) { return 3 * (e + n) / 4 - n; }(0, a, s)), f = 0, l = s > 0 ? a - 4 : a; for (n = 0; n < l; n += 4)
493
- e = r[t.charCodeAt(n)] << 18 | r[t.charCodeAt(n + 1)] << 12 | r[t.charCodeAt(n + 2)] << 6 | r[t.charCodeAt(n + 3)], u[f++] = e >> 16 & 255, u[f++] = e >> 8 & 255, u[f++] = 255 & e; 2 === s && (e = r[t.charCodeAt(n)] << 2 | r[t.charCodeAt(n + 1)] >> 4, u[f++] = 255 & e); 1 === s && (e = r[t.charCodeAt(n)] << 10 | r[t.charCodeAt(n + 1)] << 4 | r[t.charCodeAt(n + 2)] >> 2, u[f++] = e >> 8 & 255, u[f++] = 255 & e); return u; }, e.fromByteArray = function (t) { for (var e, r = t.length, o = r % 3, i = [], a = 16383, s = 0, c = r - o; s < c; s += a)
494
- i.push(u(t, s, s + a > c ? c : s + a)); 1 === o ? (e = t[r - 1], i.push(n[e >> 2] + n[e << 4 & 63] + "==")) : 2 === o && (e = (t[r - 2] << 8) + t[r - 1], i.push(n[e >> 10] + n[e >> 4 & 63] + n[e << 2 & 63] + "=")); return i.join(""); };
495
- for (var n = [], r = [], o = "undefined" != typeof Uint8Array ? Uint8Array : Array, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = 0, s = i.length; a < s; ++a)
496
- n[a] = i[a], r[i.charCodeAt(a)] = a;
497
- function c(t) { var e = t.length; if (e % 4 > 0)
498
- throw new Error("Invalid string. Length must be a multiple of 4"); var n = t.indexOf("="); return -1 === n && (n = e), [n, n === e ? 0 : 4 - n % 4]; }
499
- function u(t, e, r) { for (var o, i, a = [], s = e; s < r; s += 3)
500
- o = (t[s] << 16 & 16711680) + (t[s + 1] << 8 & 65280) + (255 & t[s + 2]), a.push(n[(i = o) >> 18 & 63] + n[i >> 12 & 63] + n[i >> 6 & 63] + n[63 & i]); return a.join(""); }
501
- r["-".charCodeAt(0)] = 62, r["_".charCodeAt(0)] = 63;
502
- }, 8764: function (t, e, n) {
503
- "use strict";
504
- const r = n(9742), o = n(645), i = "function" == typeof Symbol && "function" == typeof Symbol.for ? Symbol.for("nodejs.util.inspect.custom") : null;
505
- e.Buffer = c, e.SlowBuffer = function (t) { +t != t && (t = 0); return c.alloc(+t); }, e.INSPECT_MAX_BYTES = 50;
506
- const a = 2147483647;
507
- function s(t) { if (t > a)
508
- throw new RangeError('The value "' + t + '" is invalid for option "size"'); const e = new Uint8Array(t); return Object.setPrototypeOf(e, c.prototype), e; }
509
- function c(t, e, n) { if ("number" == typeof t) {
510
- if ("string" == typeof e)
511
- throw new TypeError('The "string" argument must be of type string. Received type number');
512
- return l(t);
513
- } return u(t, e, n); }
514
- function u(t, e, n) { if ("string" == typeof t)
515
- return function (t, e) { "string" == typeof e && "" !== e || (e = "utf8"); if (!c.isEncoding(e))
516
- throw new TypeError("Unknown encoding: " + e); const n = 0 | y(t, e); let r = s(n); const o = r.write(t, e); o !== n && (r = r.slice(0, o)); return r; }(t, e); if (ArrayBuffer.isView(t))
517
- return function (t) { if (K(t, Uint8Array)) {
518
- const e = new Uint8Array(t);
519
- return p(e.buffer, e.byteOffset, e.byteLength);
520
- } return h(t); }(t); if (null == t)
521
- throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t); if (K(t, ArrayBuffer) || t && K(t.buffer, ArrayBuffer))
522
- return p(t, e, n); if ("undefined" != typeof SharedArrayBuffer && (K(t, SharedArrayBuffer) || t && K(t.buffer, SharedArrayBuffer)))
523
- return p(t, e, n); if ("number" == typeof t)
524
- throw new TypeError('The "value" argument must not be of type number. Received type number'); const r = t.valueOf && t.valueOf(); if (null != r && r !== t)
525
- return c.from(r, e, n); const o = function (t) { if (c.isBuffer(t)) {
526
- const e = 0 | d(t.length), n = s(e);
527
- return 0 === n.length || t.copy(n, 0, 0, e), n;
528
- } if (void 0 !== t.length)
529
- return "number" != typeof t.length || J(t.length) ? s(0) : h(t); if ("Buffer" === t.type && Array.isArray(t.data))
530
- return h(t.data); }(t); if (o)
531
- return o; if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof t[Symbol.toPrimitive])
532
- return c.from(t[Symbol.toPrimitive]("string"), e, n); throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t); }
533
- function f(t) { if ("number" != typeof t)
534
- throw new TypeError('"size" argument must be of type number'); if (t < 0)
535
- throw new RangeError('The value "' + t + '" is invalid for option "size"'); }
536
- function l(t) { return f(t), s(t < 0 ? 0 : 0 | d(t)); }
537
- function h(t) { const e = t.length < 0 ? 0 : 0 | d(t.length), n = s(e); for (let r = 0; r < e; r += 1)
538
- n[r] = 255 & t[r]; return n; }
539
- function p(t, e, n) { if (e < 0 || t.byteLength < e)
540
- throw new RangeError('"offset" is outside of buffer bounds'); if (t.byteLength < e + (n || 0))
541
- throw new RangeError('"length" is outside of buffer bounds'); let r; return r = void 0 === e && void 0 === n ? new Uint8Array(t) : void 0 === n ? new Uint8Array(t, e) : new Uint8Array(t, e, n), Object.setPrototypeOf(r, c.prototype), r; }
542
- function d(t) { if (t >= a)
543
- throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + a.toString(16) + " bytes"); return 0 | t; }
544
- function y(t, e) { if (c.isBuffer(t))
545
- return t.length; if (ArrayBuffer.isView(t) || K(t, ArrayBuffer))
546
- return t.byteLength; if ("string" != typeof t)
547
- throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof t); const n = t.length, r = arguments.length > 2 && !0 === arguments[2]; if (!r && 0 === n)
548
- return 0; let o = !1; for (;;)
549
- switch (e) {
550
- case "ascii":
551
- case "latin1":
552
- case "binary": return n;
553
- case "utf8":
554
- case "utf-8": return $(t).length;
555
- case "ucs2":
556
- case "ucs-2":
557
- case "utf16le":
558
- case "utf-16le": return 2 * n;
559
- case "hex": return n >>> 1;
560
- case "base64": return Y(t).length;
561
- default:
562
- if (o)
563
- return r ? -1 : $(t).length;
564
- e = ("" + e).toLowerCase(), o = !0;
565
- } }
566
- function g(t, e, n) { let r = !1; if ((void 0 === e || e < 0) && (e = 0), e > this.length)
567
- return ""; if ((void 0 === n || n > this.length) && (n = this.length), n <= 0)
568
- return ""; if ((n >>>= 0) <= (e >>>= 0))
569
- return ""; for (t || (t = "utf8");;)
570
- switch (t) {
571
- case "hex": return j(this, e, n);
572
- case "utf8":
573
- case "utf-8": return A(this, e, n);
574
- case "ascii": return k(this, e, n);
575
- case "latin1":
576
- case "binary": return I(this, e, n);
577
- case "base64": return R(this, e, n);
578
- case "ucs2":
579
- case "ucs-2":
580
- case "utf16le":
581
- case "utf-16le": return N(this, e, n);
582
- default:
583
- if (r)
584
- throw new TypeError("Unknown encoding: " + t);
585
- t = (t + "").toLowerCase(), r = !0;
586
- } }
587
- function b(t, e, n) { const r = t[e]; t[e] = t[n], t[n] = r; }
588
- function m(t, e, n, r, o) { if (0 === t.length)
589
- return -1; if ("string" == typeof n ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), J(n = +n) && (n = o ? 0 : t.length - 1), n < 0 && (n = t.length + n), n >= t.length) {
590
- if (o)
591
- return -1;
592
- n = t.length - 1;
593
- }
594
- else if (n < 0) {
595
- if (!o)
596
- return -1;
597
- n = 0;
598
- } if ("string" == typeof e && (e = c.from(e, r)), c.isBuffer(e))
599
- return 0 === e.length ? -1 : v(t, e, n, r, o); if ("number" == typeof e)
600
- return e &= 255, "function" == typeof Uint8Array.prototype.indexOf ? o ? Uint8Array.prototype.indexOf.call(t, e, n) : Uint8Array.prototype.lastIndexOf.call(t, e, n) : v(t, [e], n, r, o); throw new TypeError("val must be string, number or Buffer"); }
601
- function v(t, e, n, r, o) { let i, a = 1, s = t.length, c = e.length; if (void 0 !== r && ("ucs2" === (r = String(r).toLowerCase()) || "ucs-2" === r || "utf16le" === r || "utf-16le" === r)) {
602
- if (t.length < 2 || e.length < 2)
603
- return -1;
604
- a = 2, s /= 2, c /= 2, n /= 2;
605
- } function u(t, e) { return 1 === a ? t[e] : t.readUInt16BE(e * a); } if (o) {
606
- let r = -1;
607
- for (i = n; i < s; i++)
608
- if (u(t, i) === u(e, -1 === r ? 0 : i - r)) {
609
- if (-1 === r && (r = i), i - r + 1 === c)
610
- return r * a;
611
- }
612
- else
613
- -1 !== r && (i -= i - r), r = -1;
614
- }
615
- else
616
- for (n + c > s && (n = s - c), i = n; i >= 0; i--) {
617
- let n = !0;
618
- for (let r = 0; r < c; r++)
619
- if (u(t, i + r) !== u(e, r)) {
620
- n = !1;
621
- break;
622
- }
623
- if (n)
624
- return i;
625
- } return -1; }
626
- function w(t, e, n, r) { n = Number(n) || 0; const o = t.length - n; r ? (r = Number(r)) > o && (r = o) : r = o; const i = e.length; let a; for (r > i / 2 && (r = i / 2), a = 0; a < r; ++a) {
627
- const r = parseInt(e.substr(2 * a, 2), 16);
628
- if (J(r))
629
- return a;
630
- t[n + a] = r;
631
- } return a; }
632
- function _(t, e, n, r) { return z($(e, t.length - n), t, n, r); }
633
- function S(t, e, n, r) { return z(function (t) { const e = []; for (let n = 0; n < t.length; ++n)
634
- e.push(255 & t.charCodeAt(n)); return e; }(e), t, n, r); }
635
- function E(t, e, n, r) { return z(Y(e), t, n, r); }
636
- function O(t, e, n, r) { return z(function (t, e) { let n, r, o; const i = []; for (let a = 0; a < t.length && !((e -= 2) < 0); ++a)
637
- n = t.charCodeAt(a), r = n >> 8, o = n % 256, i.push(o), i.push(r); return i; }(e, t.length - n), t, n, r); }
638
- function R(t, e, n) { return 0 === e && n === t.length ? r.fromByteArray(t) : r.fromByteArray(t.slice(e, n)); }
639
- function A(t, e, n) { n = Math.min(t.length, n); const r = []; let o = e; for (; o < n;) {
640
- const e = t[o];
641
- let i = null, a = e > 239 ? 4 : e > 223 ? 3 : e > 191 ? 2 : 1;
642
- if (o + a <= n) {
643
- let n, r, s, c;
644
- switch (a) {
645
- case 1:
646
- e < 128 && (i = e);
647
- break;
648
- case 2:
649
- n = t[o + 1], 128 == (192 & n) && (c = (31 & e) << 6 | 63 & n, c > 127 && (i = c));
650
- break;
651
- case 3:
652
- n = t[o + 1], r = t[o + 2], 128 == (192 & n) && 128 == (192 & r) && (c = (15 & e) << 12 | (63 & n) << 6 | 63 & r, c > 2047 && (c < 55296 || c > 57343) && (i = c));
653
- break;
654
- case 4: n = t[o + 1], r = t[o + 2], s = t[o + 3], 128 == (192 & n) && 128 == (192 & r) && 128 == (192 & s) && (c = (15 & e) << 18 | (63 & n) << 12 | (63 & r) << 6 | 63 & s, c > 65535 && c < 1114112 && (i = c));
655
- }
656
- }
657
- null === i ? (i = 65533, a = 1) : i > 65535 && (i -= 65536, r.push(i >>> 10 & 1023 | 55296), i = 56320 | 1023 & i), r.push(i), o += a;
658
- } return function (t) { const e = t.length; if (e <= T)
659
- return String.fromCharCode.apply(String, t); let n = "", r = 0; for (; r < e;)
660
- n += String.fromCharCode.apply(String, t.slice(r, r += T)); return n; }(r); }
661
- e.kMaxLength = a, c.TYPED_ARRAY_SUPPORT = function () { try {
662
- const t = new Uint8Array(1), e = { foo: function () { return 42; } };
663
- return Object.setPrototypeOf(e, Uint8Array.prototype), Object.setPrototypeOf(t, e), 42 === t.foo();
664
- }
665
- catch (t) {
666
- return !1;
667
- } }(), c.TYPED_ARRAY_SUPPORT || "undefined" == typeof console || "function" != typeof console.error || console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."), Object.defineProperty(c.prototype, "parent", { enumerable: !0, get: function () { if (c.isBuffer(this))
668
- return this.buffer; } }), Object.defineProperty(c.prototype, "offset", { enumerable: !0, get: function () { if (c.isBuffer(this))
669
- return this.byteOffset; } }), c.poolSize = 8192, c.from = function (t, e, n) { return u(t, e, n); }, Object.setPrototypeOf(c.prototype, Uint8Array.prototype), Object.setPrototypeOf(c, Uint8Array), c.alloc = function (t, e, n) { return function (t, e, n) { return f(t), t <= 0 ? s(t) : void 0 !== e ? "string" == typeof n ? s(t).fill(e, n) : s(t).fill(e) : s(t); }(t, e, n); }, c.allocUnsafe = function (t) { return l(t); }, c.allocUnsafeSlow = function (t) { return l(t); }, c.isBuffer = function (t) { return null != t && !0 === t._isBuffer && t !== c.prototype; }, c.compare = function (t, e) { if (K(t, Uint8Array) && (t = c.from(t, t.offset, t.byteLength)), K(e, Uint8Array) && (e = c.from(e, e.offset, e.byteLength)), !c.isBuffer(t) || !c.isBuffer(e))
670
- throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); if (t === e)
671
- return 0; let n = t.length, r = e.length; for (let o = 0, i = Math.min(n, r); o < i; ++o)
672
- if (t[o] !== e[o]) {
673
- n = t[o], r = e[o];
674
- break;
675
- } return n < r ? -1 : r < n ? 1 : 0; }, c.isEncoding = function (t) { switch (String(t).toLowerCase()) {
676
- case "hex":
677
- case "utf8":
678
- case "utf-8":
679
- case "ascii":
680
- case "latin1":
681
- case "binary":
682
- case "base64":
683
- case "ucs2":
684
- case "ucs-2":
685
- case "utf16le":
686
- case "utf-16le": return !0;
687
- default: return !1;
688
- } }, c.concat = function (t, e) { if (!Array.isArray(t))
689
- throw new TypeError('"list" argument must be an Array of Buffers'); if (0 === t.length)
690
- return c.alloc(0); let n; if (void 0 === e)
691
- for (e = 0, n = 0; n < t.length; ++n)
692
- e += t[n].length; const r = c.allocUnsafe(e); let o = 0; for (n = 0; n < t.length; ++n) {
693
- let e = t[n];
694
- if (K(e, Uint8Array))
695
- o + e.length > r.length ? (c.isBuffer(e) || (e = c.from(e)), e.copy(r, o)) : Uint8Array.prototype.set.call(r, e, o);
696
- else {
697
- if (!c.isBuffer(e))
698
- throw new TypeError('"list" argument must be an Array of Buffers');
699
- e.copy(r, o);
700
- }
701
- o += e.length;
702
- } return r; }, c.byteLength = y, c.prototype._isBuffer = !0, c.prototype.swap16 = function () { const t = this.length; if (t % 2 != 0)
703
- throw new RangeError("Buffer size must be a multiple of 16-bits"); for (let e = 0; e < t; e += 2)
704
- b(this, e, e + 1); return this; }, c.prototype.swap32 = function () { const t = this.length; if (t % 4 != 0)
705
- throw new RangeError("Buffer size must be a multiple of 32-bits"); for (let e = 0; e < t; e += 4)
706
- b(this, e, e + 3), b(this, e + 1, e + 2); return this; }, c.prototype.swap64 = function () { const t = this.length; if (t % 8 != 0)
707
- throw new RangeError("Buffer size must be a multiple of 64-bits"); for (let e = 0; e < t; e += 8)
708
- b(this, e, e + 7), b(this, e + 1, e + 6), b(this, e + 2, e + 5), b(this, e + 3, e + 4); return this; }, c.prototype.toString = function () { const t = this.length; return 0 === t ? "" : 0 === arguments.length ? A(this, 0, t) : g.apply(this, arguments); }, c.prototype.toLocaleString = c.prototype.toString, c.prototype.equals = function (t) { if (!c.isBuffer(t))
709
- throw new TypeError("Argument must be a Buffer"); return this === t || 0 === c.compare(this, t); }, c.prototype.inspect = function () { let t = ""; const n = e.INSPECT_MAX_BYTES; return t = this.toString("hex", 0, n).replace(/(.{2})/g, "$1 ").trim(), this.length > n && (t += " ... "), "<Buffer " + t + ">"; }, i && (c.prototype[i] = c.prototype.inspect), c.prototype.compare = function (t, e, n, r, o) { if (K(t, Uint8Array) && (t = c.from(t, t.offset, t.byteLength)), !c.isBuffer(t))
710
- throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof t); if (void 0 === e && (e = 0), void 0 === n && (n = t ? t.length : 0), void 0 === r && (r = 0), void 0 === o && (o = this.length), e < 0 || n > t.length || r < 0 || o > this.length)
711
- throw new RangeError("out of range index"); if (r >= o && e >= n)
712
- return 0; if (r >= o)
713
- return -1; if (e >= n)
714
- return 1; if (this === t)
715
- return 0; let i = (o >>>= 0) - (r >>>= 0), a = (n >>>= 0) - (e >>>= 0); const s = Math.min(i, a), u = this.slice(r, o), f = t.slice(e, n); for (let t = 0; t < s; ++t)
716
- if (u[t] !== f[t]) {
717
- i = u[t], a = f[t];
718
- break;
719
- } return i < a ? -1 : a < i ? 1 : 0; }, c.prototype.includes = function (t, e, n) { return -1 !== this.indexOf(t, e, n); }, c.prototype.indexOf = function (t, e, n) { return m(this, t, e, n, !0); }, c.prototype.lastIndexOf = function (t, e, n) { return m(this, t, e, n, !1); }, c.prototype.write = function (t, e, n, r) { if (void 0 === e)
720
- r = "utf8", n = this.length, e = 0;
721
- else if (void 0 === n && "string" == typeof e)
722
- r = e, n = this.length, e = 0;
723
- else {
724
- if (!isFinite(e))
725
- throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
726
- e >>>= 0, isFinite(n) ? (n >>>= 0, void 0 === r && (r = "utf8")) : (r = n, n = void 0);
727
- } const o = this.length - e; if ((void 0 === n || n > o) && (n = o), t.length > 0 && (n < 0 || e < 0) || e > this.length)
728
- throw new RangeError("Attempt to write outside buffer bounds"); r || (r = "utf8"); let i = !1; for (;;)
729
- switch (r) {
730
- case "hex": return w(this, t, e, n);
731
- case "utf8":
732
- case "utf-8": return _(this, t, e, n);
733
- case "ascii":
734
- case "latin1":
735
- case "binary": return S(this, t, e, n);
736
- case "base64": return E(this, t, e, n);
737
- case "ucs2":
738
- case "ucs-2":
739
- case "utf16le":
740
- case "utf-16le": return O(this, t, e, n);
741
- default:
742
- if (i)
743
- throw new TypeError("Unknown encoding: " + r);
744
- r = ("" + r).toLowerCase(), i = !0;
745
- } }, c.prototype.toJSON = function () { return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) }; };
746
- const T = 4096;
747
- function k(t, e, n) { let r = ""; n = Math.min(t.length, n); for (let o = e; o < n; ++o)
748
- r += String.fromCharCode(127 & t[o]); return r; }
749
- function I(t, e, n) { let r = ""; n = Math.min(t.length, n); for (let o = e; o < n; ++o)
750
- r += String.fromCharCode(t[o]); return r; }
751
- function j(t, e, n) { const r = t.length; (!e || e < 0) && (e = 0), (!n || n < 0 || n > r) && (n = r); let o = ""; for (let r = e; r < n; ++r)
752
- o += X[t[r]]; return o; }
753
- function N(t, e, n) { const r = t.slice(e, n); let o = ""; for (let t = 0; t < r.length - 1; t += 2)
754
- o += String.fromCharCode(r[t] + 256 * r[t + 1]); return o; }
755
- function B(t, e, n) { if (t % 1 != 0 || t < 0)
756
- throw new RangeError("offset is not uint"); if (t + e > n)
757
- throw new RangeError("Trying to access beyond buffer length"); }
758
- function P(t, e, n, r, o, i) { if (!c.isBuffer(t))
759
- throw new TypeError('"buffer" argument must be a Buffer instance'); if (e > o || e < i)
760
- throw new RangeError('"value" argument is out of bounds'); if (n + r > t.length)
761
- throw new RangeError("Index out of range"); }
762
- function L(t, e, n, r, o) { W(e, r, o, t, n, 7); let i = Number(e & BigInt(4294967295)); t[n++] = i, i >>= 8, t[n++] = i, i >>= 8, t[n++] = i, i >>= 8, t[n++] = i; let a = Number(e >> BigInt(32) & BigInt(4294967295)); return t[n++] = a, a >>= 8, t[n++] = a, a >>= 8, t[n++] = a, a >>= 8, t[n++] = a, n; }
763
- function x(t, e, n, r, o) { W(e, r, o, t, n, 7); let i = Number(e & BigInt(4294967295)); t[n + 7] = i, i >>= 8, t[n + 6] = i, i >>= 8, t[n + 5] = i, i >>= 8, t[n + 4] = i; let a = Number(e >> BigInt(32) & BigInt(4294967295)); return t[n + 3] = a, a >>= 8, t[n + 2] = a, a >>= 8, t[n + 1] = a, a >>= 8, t[n] = a, n + 8; }
764
- function F(t, e, n, r, o, i) { if (n + r > t.length)
765
- throw new RangeError("Index out of range"); if (n < 0)
766
- throw new RangeError("Index out of range"); }
767
- function C(t, e, n, r, i) { return e = +e, n >>>= 0, i || F(t, 0, n, 4), o.write(t, e, n, r, 23, 4), n + 4; }
768
- function M(t, e, n, r, i) { return e = +e, n >>>= 0, i || F(t, 0, n, 8), o.write(t, e, n, r, 52, 8), n + 8; }
769
- c.prototype.slice = function (t, e) { const n = this.length; (t = ~~t) < 0 ? (t += n) < 0 && (t = 0) : t > n && (t = n), (e = void 0 === e ? n : ~~e) < 0 ? (e += n) < 0 && (e = 0) : e > n && (e = n), e < t && (e = t); const r = this.subarray(t, e); return Object.setPrototypeOf(r, c.prototype), r; }, c.prototype.readUintLE = c.prototype.readUIntLE = function (t, e, n) { t >>>= 0, e >>>= 0, n || B(t, e, this.length); let r = this[t], o = 1, i = 0; for (; ++i < e && (o *= 256);)
770
- r += this[t + i] * o; return r; }, c.prototype.readUintBE = c.prototype.readUIntBE = function (t, e, n) { t >>>= 0, e >>>= 0, n || B(t, e, this.length); let r = this[t + --e], o = 1; for (; e > 0 && (o *= 256);)
771
- r += this[t + --e] * o; return r; }, c.prototype.readUint8 = c.prototype.readUInt8 = function (t, e) { return t >>>= 0, e || B(t, 1, this.length), this[t]; }, c.prototype.readUint16LE = c.prototype.readUInt16LE = function (t, e) { return t >>>= 0, e || B(t, 2, this.length), this[t] | this[t + 1] << 8; }, c.prototype.readUint16BE = c.prototype.readUInt16BE = function (t, e) { return t >>>= 0, e || B(t, 2, this.length), this[t] << 8 | this[t + 1]; }, c.prototype.readUint32LE = c.prototype.readUInt32LE = function (t, e) { return t >>>= 0, e || B(t, 4, this.length), (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + 16777216 * this[t + 3]; }, c.prototype.readUint32BE = c.prototype.readUInt32BE = function (t, e) { return t >>>= 0, e || B(t, 4, this.length), 16777216 * this[t] + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]); }, c.prototype.readBigUInt64LE = Z((function (t) { V(t >>>= 0, "offset"); const e = this[t], n = this[t + 7]; void 0 !== e && void 0 !== n || G(t, this.length - 8); const r = e + 256 * this[++t] + 65536 * this[++t] + this[++t] * 2 ** 24, o = this[++t] + 256 * this[++t] + 65536 * this[++t] + n * 2 ** 24; return BigInt(r) + (BigInt(o) << BigInt(32)); })), c.prototype.readBigUInt64BE = Z((function (t) { V(t >>>= 0, "offset"); const e = this[t], n = this[t + 7]; void 0 !== e && void 0 !== n || G(t, this.length - 8); const r = e * 2 ** 24 + 65536 * this[++t] + 256 * this[++t] + this[++t], o = this[++t] * 2 ** 24 + 65536 * this[++t] + 256 * this[++t] + n; return (BigInt(r) << BigInt(32)) + BigInt(o); })), c.prototype.readIntLE = function (t, e, n) { t >>>= 0, e >>>= 0, n || B(t, e, this.length); let r = this[t], o = 1, i = 0; for (; ++i < e && (o *= 256);)
772
- r += this[t + i] * o; return o *= 128, r >= o && (r -= Math.pow(2, 8 * e)), r; }, c.prototype.readIntBE = function (t, e, n) { t >>>= 0, e >>>= 0, n || B(t, e, this.length); let r = e, o = 1, i = this[t + --r]; for (; r > 0 && (o *= 256);)
773
- i += this[t + --r] * o; return o *= 128, i >= o && (i -= Math.pow(2, 8 * e)), i; }, c.prototype.readInt8 = function (t, e) { return t >>>= 0, e || B(t, 1, this.length), 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t]; }, c.prototype.readInt16LE = function (t, e) { t >>>= 0, e || B(t, 2, this.length); const n = this[t] | this[t + 1] << 8; return 32768 & n ? 4294901760 | n : n; }, c.prototype.readInt16BE = function (t, e) { t >>>= 0, e || B(t, 2, this.length); const n = this[t + 1] | this[t] << 8; return 32768 & n ? 4294901760 | n : n; }, c.prototype.readInt32LE = function (t, e) { return t >>>= 0, e || B(t, 4, this.length), this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24; }, c.prototype.readInt32BE = function (t, e) { return t >>>= 0, e || B(t, 4, this.length), this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]; }, c.prototype.readBigInt64LE = Z((function (t) { V(t >>>= 0, "offset"); const e = this[t], n = this[t + 7]; void 0 !== e && void 0 !== n || G(t, this.length - 8); const r = this[t + 4] + 256 * this[t + 5] + 65536 * this[t + 6] + (n << 24); return (BigInt(r) << BigInt(32)) + BigInt(e + 256 * this[++t] + 65536 * this[++t] + this[++t] * 2 ** 24); })), c.prototype.readBigInt64BE = Z((function (t) { V(t >>>= 0, "offset"); const e = this[t], n = this[t + 7]; void 0 !== e && void 0 !== n || G(t, this.length - 8); const r = (e << 24) + 65536 * this[++t] + 256 * this[++t] + this[++t]; return (BigInt(r) << BigInt(32)) + BigInt(this[++t] * 2 ** 24 + 65536 * this[++t] + 256 * this[++t] + n); })), c.prototype.readFloatLE = function (t, e) { return t >>>= 0, e || B(t, 4, this.length), o.read(this, t, !0, 23, 4); }, c.prototype.readFloatBE = function (t, e) { return t >>>= 0, e || B(t, 4, this.length), o.read(this, t, !1, 23, 4); }, c.prototype.readDoubleLE = function (t, e) { return t >>>= 0, e || B(t, 8, this.length), o.read(this, t, !0, 52, 8); }, c.prototype.readDoubleBE = function (t, e) { return t >>>= 0, e || B(t, 8, this.length), o.read(this, t, !1, 52, 8); }, c.prototype.writeUintLE = c.prototype.writeUIntLE = function (t, e, n, r) { if (t = +t, e >>>= 0, n >>>= 0, !r) {
774
- P(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
775
- } let o = 1, i = 0; for (this[e] = 255 & t; ++i < n && (o *= 256);)
776
- this[e + i] = t / o & 255; return e + n; }, c.prototype.writeUintBE = c.prototype.writeUIntBE = function (t, e, n, r) { if (t = +t, e >>>= 0, n >>>= 0, !r) {
777
- P(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
778
- } let o = n - 1, i = 1; for (this[e + o] = 255 & t; --o >= 0 && (i *= 256);)
779
- this[e + o] = t / i & 255; return e + n; }, c.prototype.writeUint8 = c.prototype.writeUInt8 = function (t, e, n) { return t = +t, e >>>= 0, n || P(this, t, e, 1, 255, 0), this[e] = 255 & t, e + 1; }, c.prototype.writeUint16LE = c.prototype.writeUInt16LE = function (t, e, n) { return t = +t, e >>>= 0, n || P(this, t, e, 2, 65535, 0), this[e] = 255 & t, this[e + 1] = t >>> 8, e + 2; }, c.prototype.writeUint16BE = c.prototype.writeUInt16BE = function (t, e, n) { return t = +t, e >>>= 0, n || P(this, t, e, 2, 65535, 0), this[e] = t >>> 8, this[e + 1] = 255 & t, e + 2; }, c.prototype.writeUint32LE = c.prototype.writeUInt32LE = function (t, e, n) { return t = +t, e >>>= 0, n || P(this, t, e, 4, 4294967295, 0), this[e + 3] = t >>> 24, this[e + 2] = t >>> 16, this[e + 1] = t >>> 8, this[e] = 255 & t, e + 4; }, c.prototype.writeUint32BE = c.prototype.writeUInt32BE = function (t, e, n) { return t = +t, e >>>= 0, n || P(this, t, e, 4, 4294967295, 0), this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t, e + 4; }, c.prototype.writeBigUInt64LE = Z((function (t, e = 0) { return L(this, t, e, BigInt(0), BigInt("0xffffffffffffffff")); })), c.prototype.writeBigUInt64BE = Z((function (t, e = 0) { return x(this, t, e, BigInt(0), BigInt("0xffffffffffffffff")); })), c.prototype.writeIntLE = function (t, e, n, r) { if (t = +t, e >>>= 0, !r) {
780
- const r = Math.pow(2, 8 * n - 1);
781
- P(this, t, e, n, r - 1, -r);
782
- } let o = 0, i = 1, a = 0; for (this[e] = 255 & t; ++o < n && (i *= 256);)
783
- t < 0 && 0 === a && 0 !== this[e + o - 1] && (a = 1), this[e + o] = (t / i >> 0) - a & 255; return e + n; }, c.prototype.writeIntBE = function (t, e, n, r) { if (t = +t, e >>>= 0, !r) {
784
- const r = Math.pow(2, 8 * n - 1);
785
- P(this, t, e, n, r - 1, -r);
786
- } let o = n - 1, i = 1, a = 0; for (this[e + o] = 255 & t; --o >= 0 && (i *= 256);)
787
- t < 0 && 0 === a && 0 !== this[e + o + 1] && (a = 1), this[e + o] = (t / i >> 0) - a & 255; return e + n; }, c.prototype.writeInt8 = function (t, e, n) { return t = +t, e >>>= 0, n || P(this, t, e, 1, 127, -128), t < 0 && (t = 255 + t + 1), this[e] = 255 & t, e + 1; }, c.prototype.writeInt16LE = function (t, e, n) { return t = +t, e >>>= 0, n || P(this, t, e, 2, 32767, -32768), this[e] = 255 & t, this[e + 1] = t >>> 8, e + 2; }, c.prototype.writeInt16BE = function (t, e, n) { return t = +t, e >>>= 0, n || P(this, t, e, 2, 32767, -32768), this[e] = t >>> 8, this[e + 1] = 255 & t, e + 2; }, c.prototype.writeInt32LE = function (t, e, n) { return t = +t, e >>>= 0, n || P(this, t, e, 4, 2147483647, -2147483648), this[e] = 255 & t, this[e + 1] = t >>> 8, this[e + 2] = t >>> 16, this[e + 3] = t >>> 24, e + 4; }, c.prototype.writeInt32BE = function (t, e, n) { return t = +t, e >>>= 0, n || P(this, t, e, 4, 2147483647, -2147483648), t < 0 && (t = 4294967295 + t + 1), this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t, e + 4; }, c.prototype.writeBigInt64LE = Z((function (t, e = 0) { return L(this, t, e, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); })), c.prototype.writeBigInt64BE = Z((function (t, e = 0) { return x(this, t, e, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); })), c.prototype.writeFloatLE = function (t, e, n) { return C(this, t, e, !0, n); }, c.prototype.writeFloatBE = function (t, e, n) { return C(this, t, e, !1, n); }, c.prototype.writeDoubleLE = function (t, e, n) { return M(this, t, e, !0, n); }, c.prototype.writeDoubleBE = function (t, e, n) { return M(this, t, e, !1, n); }, c.prototype.copy = function (t, e, n, r) { if (!c.isBuffer(t))
788
- throw new TypeError("argument should be a Buffer"); if (n || (n = 0), r || 0 === r || (r = this.length), e >= t.length && (e = t.length), e || (e = 0), r > 0 && r < n && (r = n), r === n)
789
- return 0; if (0 === t.length || 0 === this.length)
790
- return 0; if (e < 0)
791
- throw new RangeError("targetStart out of bounds"); if (n < 0 || n >= this.length)
792
- throw new RangeError("Index out of range"); if (r < 0)
793
- throw new RangeError("sourceEnd out of bounds"); r > this.length && (r = this.length), t.length - e < r - n && (r = t.length - e + n); const o = r - n; return this === t && "function" == typeof Uint8Array.prototype.copyWithin ? this.copyWithin(e, n, r) : Uint8Array.prototype.set.call(t, this.subarray(n, r), e), o; }, c.prototype.fill = function (t, e, n, r) { if ("string" == typeof t) {
794
- if ("string" == typeof e ? (r = e, e = 0, n = this.length) : "string" == typeof n && (r = n, n = this.length), void 0 !== r && "string" != typeof r)
795
- throw new TypeError("encoding must be a string");
796
- if ("string" == typeof r && !c.isEncoding(r))
797
- throw new TypeError("Unknown encoding: " + r);
798
- if (1 === t.length) {
799
- const e = t.charCodeAt(0);
800
- ("utf8" === r && e < 128 || "latin1" === r) && (t = e);
801
- }
802
- }
803
- else
804
- "number" == typeof t ? t &= 255 : "boolean" == typeof t && (t = Number(t)); if (e < 0 || this.length < e || this.length < n)
805
- throw new RangeError("Out of range index"); if (n <= e)
806
- return this; let o; if (e >>>= 0, n = void 0 === n ? this.length : n >>> 0, t || (t = 0), "number" == typeof t)
807
- for (o = e; o < n; ++o)
808
- this[o] = t;
809
- else {
810
- const i = c.isBuffer(t) ? t : c.from(t, r), a = i.length;
811
- if (0 === a)
812
- throw new TypeError('The value "' + t + '" is invalid for argument "value"');
813
- for (o = 0; o < n - e; ++o)
814
- this[o + e] = i[o % a];
815
- } return this; };
816
- const U = {};
817
- function D(t, e, n) { U[t] = class extends n {
818
- constructor() { super(), Object.defineProperty(this, "message", { value: e.apply(this, arguments), writable: !0, configurable: !0 }), this.name = `${this.name} [${t}]`, this.stack, delete this.name; }
819
- get code() { return t; }
820
- set code(t) { Object.defineProperty(this, "code", { configurable: !0, enumerable: !0, value: t, writable: !0 }); }
821
- toString() { return `${this.name} [${t}]: ${this.message}`; }
822
- }; }
823
- function q(t) { let e = "", n = t.length; const r = "-" === t[0] ? 1 : 0; for (; n >= r + 4; n -= 3)
824
- e = `_${t.slice(n - 3, n)}${e}`; return `${t.slice(0, n)}${e}`; }
825
- function W(t, e, n, r, o, i) { if (t > n || t < e) {
826
- const r = "bigint" == typeof e ? "n" : "";
827
- let o;
828
- throw o = i > 3 ? 0 === e || e === BigInt(0) ? `>= 0${r} and < 2${r} ** ${8 * (i + 1)}${r}` : `>= -(2${r} ** ${8 * (i + 1) - 1}${r}) and < 2 ** ${8 * (i + 1) - 1}${r}` : `>= ${e}${r} and <= ${n}${r}`, new U.ERR_OUT_OF_RANGE("value", o, t);
829
- } !function (t, e, n) { V(e, "offset"), void 0 !== t[e] && void 0 !== t[e + n] || G(e, t.length - (n + 1)); }(r, o, i); }
830
- function V(t, e) { if ("number" != typeof t)
831
- throw new U.ERR_INVALID_ARG_TYPE(e, "number", t); }
832
- function G(t, e, n) { if (Math.floor(t) !== t)
833
- throw V(t, n), new U.ERR_OUT_OF_RANGE(n || "offset", "an integer", t); if (e < 0)
834
- throw new U.ERR_BUFFER_OUT_OF_BOUNDS; throw new U.ERR_OUT_OF_RANGE(n || "offset", `>= ${n ? 1 : 0} and <= ${e}`, t); }
835
- D("ERR_BUFFER_OUT_OF_BOUNDS", (function (t) { return t ? `${t} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds"; }), RangeError), D("ERR_INVALID_ARG_TYPE", (function (t, e) { return `The "${t}" argument must be of type number. Received type ${typeof e}`; }), TypeError), D("ERR_OUT_OF_RANGE", (function (t, e, n) { let r = `The value of "${t}" is out of range.`, o = n; return Number.isInteger(n) && Math.abs(n) > 2 ** 32 ? o = q(String(n)) : "bigint" == typeof n && (o = String(n), (n > BigInt(2) ** BigInt(32) || n < -(BigInt(2) ** BigInt(32))) && (o = q(o)), o += "n"), r += ` It must be ${e}. Received ${o}`, r; }), RangeError);
836
- const H = /[^+/0-9A-Za-z-_]/g;
837
- function $(t, e) { let n; e = e || 1 / 0; const r = t.length; let o = null; const i = []; for (let a = 0; a < r; ++a) {
838
- if (n = t.charCodeAt(a), n > 55295 && n < 57344) {
839
- if (!o) {
840
- if (n > 56319) {
841
- (e -= 3) > -1 && i.push(239, 191, 189);
842
- continue;
843
- }
844
- if (a + 1 === r) {
845
- (e -= 3) > -1 && i.push(239, 191, 189);
846
- continue;
847
- }
848
- o = n;
849
- continue;
850
- }
851
- if (n < 56320) {
852
- (e -= 3) > -1 && i.push(239, 191, 189), o = n;
853
- continue;
854
- }
855
- n = 65536 + (o - 55296 << 10 | n - 56320);
856
- }
857
- else
858
- o && (e -= 3) > -1 && i.push(239, 191, 189);
859
- if (o = null, n < 128) {
860
- if ((e -= 1) < 0)
861
- break;
862
- i.push(n);
863
- }
864
- else if (n < 2048) {
865
- if ((e -= 2) < 0)
866
- break;
867
- i.push(n >> 6 | 192, 63 & n | 128);
868
- }
869
- else if (n < 65536) {
870
- if ((e -= 3) < 0)
871
- break;
872
- i.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128);
873
- }
874
- else {
875
- if (!(n < 1114112))
876
- throw new Error("Invalid code point");
877
- if ((e -= 4) < 0)
878
- break;
879
- i.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128);
880
- }
881
- } return i; }
882
- function Y(t) { return r.toByteArray(function (t) { if ((t = (t = t.split("=")[0]).trim().replace(H, "")).length < 2)
883
- return ""; for (; t.length % 4 != 0;)
884
- t += "="; return t; }(t)); }
885
- function z(t, e, n, r) { let o; for (o = 0; o < r && !(o + n >= e.length || o >= t.length); ++o)
886
- e[o + n] = t[o]; return o; }
887
- function K(t, e) { return t instanceof e || null != t && null != t.constructor && null != t.constructor.name && t.constructor.name === e.name; }
888
- function J(t) { return t != t; }
889
- const X = function () { const t = "0123456789abcdef", e = new Array(256); for (let n = 0; n < 16; ++n) {
890
- const r = 16 * n;
891
- for (let o = 0; o < 16; ++o)
892
- e[r + o] = t[n] + t[o];
893
- } return e; }();
894
- function Z(t) { return "undefined" == typeof BigInt ? Q : t; }
895
- function Q() { throw new Error("BigInt not supported"); }
896
- }, 1924: function (t, e, n) {
897
- "use strict";
898
- var r = n(210), o = n(5559), i = o(r("String.prototype.indexOf"));
899
- t.exports = function (t, e) { var n = r(t, !!e); return "function" == typeof n && i(t, ".prototype.") > -1 ? o(n) : n; };
900
- }, 5559: function (t, e, n) {
901
- "use strict";
902
- var r = n(8612), o = n(210), i = o("%Function.prototype.apply%"), a = o("%Function.prototype.call%"), s = o("%Reflect.apply%", !0) || r.call(a, i), c = o("%Object.getOwnPropertyDescriptor%", !0), u = o("%Object.defineProperty%", !0), f = o("%Math.max%");
903
- if (u)
904
- try {
905
- u({}, "a", { value: 1 });
906
- }
907
- catch (t) {
908
- u = null;
909
- }
910
- t.exports = function (t) { var e = s(r, a, arguments); if (c && u) {
911
- var n = c(e, "length");
912
- n.configurable && u(e, "length", { value: 1 + f(0, t.length - (arguments.length - 1)) });
913
- } return e; };
914
- var l = function () { return s(r, i, arguments); };
915
- u ? u(t.exports, "apply", { value: l }) : t.exports.apply = l;
916
- }, 4289: function (t, e, n) {
917
- "use strict";
918
- var r = n(2215), o = "function" == typeof Symbol && "symbol" == typeof Symbol("foo"), i = Object.prototype.toString, a = Array.prototype.concat, s = Object.defineProperty, c = n(1044)(), u = s && c, f = function (t, e, n, r) { var o; (!(e in t) || "function" == typeof (o = r) && "[object Function]" === i.call(o) && r()) && (u ? s(t, e, { configurable: !0, enumerable: !1, value: n, writable: !0 }) : t[e] = n); }, l = function (t, e) { var n = arguments.length > 2 ? arguments[2] : {}, i = r(e); o && (i = a.call(i, Object.getOwnPropertySymbols(e))); for (var s = 0; s < i.length; s += 1)
919
- f(t, i[s], e[i[s]], n[i[s]]); };
920
- l.supportsDescriptors = !!u, t.exports = l;
921
- }, 8091: function (t) {
922
- "use strict";
923
- function e(t, e) { if (null == t)
924
- throw new TypeError("Cannot convert first argument to object"); for (var n = Object(t), r = 1; r < arguments.length; r++) {
925
- var o = arguments[r];
926
- if (null != o)
927
- for (var i = Object.keys(Object(o)), a = 0, s = i.length; a < s; a++) {
928
- var c = i[a], u = Object.getOwnPropertyDescriptor(o, c);
929
- void 0 !== u && u.enumerable && (n[c] = o[c]);
930
- }
931
- } return n; }
932
- t.exports = { assign: e, polyfill: function () { Object.assign || Object.defineProperty(Object, "assign", { enumerable: !1, configurable: !0, writable: !0, value: e }); } };
933
- }, 7187: function (t) {
934
- "use strict";
935
- var e, n = "object" == typeof Reflect ? Reflect : null, r = n && "function" == typeof n.apply ? n.apply : function (t, e, n) { return Function.prototype.apply.call(t, e, n); };
936
- e = n && "function" == typeof n.ownKeys ? n.ownKeys : Object.getOwnPropertySymbols ? function (t) { return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)); } : function (t) { return Object.getOwnPropertyNames(t); };
937
- var o = Number.isNaN || function (t) { return t != t; };
938
- function i() { i.init.call(this); }
939
- t.exports = i, t.exports.once = function (t, e) { return new Promise((function (n, r) { function o(n) { t.removeListener(e, i), r(n); } function i() { "function" == typeof t.removeListener && t.removeListener("error", o), n([].slice.call(arguments)); } y(t, e, i, { once: !0 }), "error" !== e && function (t, e, n) { "function" == typeof t.on && y(t, "error", e, n); }(t, o, { once: !0 }); })); }, i.EventEmitter = i, i.prototype._events = void 0, i.prototype._eventsCount = 0, i.prototype._maxListeners = void 0;
940
- var a = 10;
941
- function s(t) { if ("function" != typeof t)
942
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t); }
943
- function c(t) { return void 0 === t._maxListeners ? i.defaultMaxListeners : t._maxListeners; }
944
- function u(t, e, n, r) { var o, i, a, u; if (s(n), void 0 === (i = t._events) ? (i = t._events = Object.create(null), t._eventsCount = 0) : (void 0 !== i.newListener && (t.emit("newListener", e, n.listener ? n.listener : n), i = t._events), a = i[e]), void 0 === a)
945
- a = i[e] = n, ++t._eventsCount;
946
- else if ("function" == typeof a ? a = i[e] = r ? [n, a] : [a, n] : r ? a.unshift(n) : a.push(n), (o = c(t)) > 0 && a.length > o && !a.warned) {
947
- a.warned = !0;
948
- var f = new Error("Possible EventEmitter memory leak detected. " + a.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
949
- f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = a.length, u = f, console && console.warn && console.warn(u);
950
- } return t; }
951
- function f() { if (!this.fired)
952
- return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, 0 === arguments.length ? this.listener.call(this.target) : this.listener.apply(this.target, arguments); }
953
- function l(t, e, n) { var r = { fired: !1, wrapFn: void 0, target: t, type: e, listener: n }, o = f.bind(r); return o.listener = n, r.wrapFn = o, o; }
954
- function h(t, e, n) { var r = t._events; if (void 0 === r)
955
- return []; var o = r[e]; return void 0 === o ? [] : "function" == typeof o ? n ? [o.listener || o] : [o] : n ? function (t) { for (var e = new Array(t.length), n = 0; n < e.length; ++n)
956
- e[n] = t[n].listener || t[n]; return e; }(o) : d(o, o.length); }
957
- function p(t) { var e = this._events; if (void 0 !== e) {
958
- var n = e[t];
959
- if ("function" == typeof n)
960
- return 1;
961
- if (void 0 !== n)
962
- return n.length;
963
- } return 0; }
964
- function d(t, e) { for (var n = new Array(e), r = 0; r < e; ++r)
965
- n[r] = t[r]; return n; }
966
- function y(t, e, n, r) { if ("function" == typeof t.on)
967
- r.once ? t.once(e, n) : t.on(e, n);
968
- else {
969
- if ("function" != typeof t.addEventListener)
970
- throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
971
- t.addEventListener(e, (function o(i) { r.once && t.removeEventListener(e, o), n(i); }));
972
- } }
973
- Object.defineProperty(i, "defaultMaxListeners", { enumerable: !0, get: function () { return a; }, set: function (t) { if ("number" != typeof t || t < 0 || o(t))
974
- throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + "."); a = t; } }), i.init = function () { void 0 !== this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0; }, i.prototype.setMaxListeners = function (t) { if ("number" != typeof t || t < 0 || o(t))
975
- throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + "."); return this._maxListeners = t, this; }, i.prototype.getMaxListeners = function () { return c(this); }, i.prototype.emit = function (t) { for (var e = [], n = 1; n < arguments.length; n++)
976
- e.push(arguments[n]); var o = "error" === t, i = this._events; if (void 0 !== i)
977
- o = o && void 0 === i.error;
978
- else if (!o)
979
- return !1; if (o) {
980
- var a;
981
- if (e.length > 0 && (a = e[0]), a instanceof Error)
982
- throw a;
983
- var s = new Error("Unhandled error." + (a ? " (" + a.message + ")" : ""));
984
- throw s.context = a, s;
985
- } var c = i[t]; if (void 0 === c)
986
- return !1; if ("function" == typeof c)
987
- r(c, this, e);
988
- else {
989
- var u = c.length, f = d(c, u);
990
- for (n = 0; n < u; ++n)
991
- r(f[n], this, e);
992
- } return !0; }, i.prototype.addListener = function (t, e) { return u(this, t, e, !1); }, i.prototype.on = i.prototype.addListener, i.prototype.prependListener = function (t, e) { return u(this, t, e, !0); }, i.prototype.once = function (t, e) { return s(e), this.on(t, l(this, t, e)), this; }, i.prototype.prependOnceListener = function (t, e) { return s(e), this.prependListener(t, l(this, t, e)), this; }, i.prototype.removeListener = function (t, e) { var n, r, o, i, a; if (s(e), void 0 === (r = this._events))
993
- return this; if (void 0 === (n = r[t]))
994
- return this; if (n === e || n.listener === e)
995
- 0 == --this._eventsCount ? this._events = Object.create(null) : (delete r[t], r.removeListener && this.emit("removeListener", t, n.listener || e));
996
- else if ("function" != typeof n) {
997
- for (o = -1, i = n.length - 1; i >= 0; i--)
998
- if (n[i] === e || n[i].listener === e) {
999
- a = n[i].listener, o = i;
1000
- break;
1001
- }
1002
- if (o < 0)
1003
- return this;
1004
- 0 === o ? n.shift() : function (t, e) { for (; e + 1 < t.length; e++)
1005
- t[e] = t[e + 1]; t.pop(); }(n, o), 1 === n.length && (r[t] = n[0]), void 0 !== r.removeListener && this.emit("removeListener", t, a || e);
1006
- } return this; }, i.prototype.off = i.prototype.removeListener, i.prototype.removeAllListeners = function (t) { var e, n, r; if (void 0 === (n = this._events))
1007
- return this; if (void 0 === n.removeListener)
1008
- return 0 === arguments.length ? (this._events = Object.create(null), this._eventsCount = 0) : void 0 !== n[t] && (0 == --this._eventsCount ? this._events = Object.create(null) : delete n[t]), this; if (0 === arguments.length) {
1009
- var o, i = Object.keys(n);
1010
- for (r = 0; r < i.length; ++r)
1011
- "removeListener" !== (o = i[r]) && this.removeAllListeners(o);
1012
- return this.removeAllListeners("removeListener"), this._events = Object.create(null), this._eventsCount = 0, this;
1013
- } if ("function" == typeof (e = n[t]))
1014
- this.removeListener(t, e);
1015
- else if (void 0 !== e)
1016
- for (r = e.length - 1; r >= 0; r--)
1017
- this.removeListener(t, e[r]); return this; }, i.prototype.listeners = function (t) { return h(this, t, !0); }, i.prototype.rawListeners = function (t) { return h(this, t, !1); }, i.listenerCount = function (t, e) { return "function" == typeof t.listenerCount ? t.listenerCount(e) : p.call(t, e); }, i.prototype.listenerCount = p, i.prototype.eventNames = function () { return this._eventsCount > 0 ? e(this._events) : []; };
1018
- }, 4029: function (t, e, n) {
1019
- "use strict";
1020
- var r = n(5320), o = Object.prototype.toString, i = Object.prototype.hasOwnProperty, a = function (t, e, n) { for (var r = 0, o = t.length; r < o; r++)
1021
- i.call(t, r) && (null == n ? e(t[r], r, t) : e.call(n, t[r], r, t)); }, s = function (t, e, n) { for (var r = 0, o = t.length; r < o; r++)
1022
- null == n ? e(t.charAt(r), r, t) : e.call(n, t.charAt(r), r, t); }, c = function (t, e, n) { for (var r in t)
1023
- i.call(t, r) && (null == n ? e(t[r], r, t) : e.call(n, t[r], r, t)); };
1024
- t.exports = function (t, e, n) { if (!r(e))
1025
- throw new TypeError("iterator must be a function"); var i; arguments.length >= 3 && (i = n), "[object Array]" === o.call(t) ? a(t, e, i) : "string" == typeof t ? s(t, e, i) : c(t, e, i); };
1026
- }, 4290: function (t, e) {
1027
- "use strict";
1028
- e.Z4 = i;
1029
- var n = "win32" === process.platform;
1030
- function r(t, e) { var r = t[e]; return e > 0 && ("/" === r || n && "\\" === r); }
1031
- function o(t, e) { if ("string" != typeof t)
1032
- throw new TypeError("expected a string"); return t = t.replace(/[\\\/]+/g, "/"), !1 !== e && (t = function (t) { var e = t.length - 1; if (e < 2)
1033
- return t; for (; r(t, e);)
1034
- e--; return t.substr(0, e + 1); }(t)), t; }
1035
- function i(t) { var e = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]; return n ? (t = o(t, e)).replace(/^([a-zA-Z]+:|\.\/)/, "") : t; }
1036
- }, 5659: function (t, e) {
1037
- "use strict";
1038
- Object.defineProperty(e, "__esModule", { value: !0 }), e.fsAsyncMethods = e.fsSyncMethods = e.fsProps = void 0;
1039
- e.fsProps = ["constants", "F_OK", "R_OK", "W_OK", "X_OK", "Stats"];
1040
- e.fsSyncMethods = ["renameSync", "ftruncateSync", "truncateSync", "chownSync", "fchownSync", "lchownSync", "chmodSync", "fchmodSync", "lchmodSync", "statSync", "lstatSync", "fstatSync", "linkSync", "symlinkSync", "readlinkSync", "realpathSync", "unlinkSync", "rmdirSync", "mkdirSync", "mkdirpSync", "readdirSync", "closeSync", "openSync", "utimesSync", "futimesSync", "fsyncSync", "writeSync", "readSync", "readFileSync", "writeFileSync", "appendFileSync", "existsSync", "accessSync", "fdatasyncSync", "mkdtempSync", "copyFileSync", "createReadStream", "createWriteStream"];
1041
- e.fsAsyncMethods = ["rename", "ftruncate", "truncate", "chown", "fchown", "lchown", "chmod", "fchmod", "lchmod", "stat", "lstat", "fstat", "link", "symlink", "readlink", "realpath", "unlink", "rmdir", "mkdir", "mkdirp", "readdir", "close", "open", "utimes", "futimes", "fsync", "write", "read", "readFile", "writeFile", "appendFile", "exists", "access", "fdatasync", "mkdtemp", "copyFile", "watchFile", "unwatchFile", "watch"];
1042
- }, 7648: function (t) {
1043
- "use strict";
1044
- var e = "Function.prototype.bind called on incompatible ", n = Array.prototype.slice, r = Object.prototype.toString, o = "[object Function]";
1045
- t.exports = function (t) { var i = this; if ("function" != typeof i || r.call(i) !== o)
1046
- throw new TypeError(e + i); for (var a, s = n.call(arguments, 1), c = function () { if (this instanceof a) {
1047
- var e = i.apply(this, s.concat(n.call(arguments)));
1048
- return Object(e) === e ? e : this;
1049
- } return i.apply(t, s.concat(n.call(arguments))); }, u = Math.max(0, i.length - s.length), f = [], l = 0; l < u; l++)
1050
- f.push("$" + l); if (a = Function("binder", "return function (" + f.join(",") + "){ return binder.apply(this,arguments); }")(c), i.prototype) {
1051
- var h = function () { };
1052
- h.prototype = i.prototype, a.prototype = new h, h.prototype = null;
1053
- } return a; };
1054
- }, 8612: function (t, e, n) {
1055
- "use strict";
1056
- var r = n(7648);
1057
- t.exports = Function.prototype.bind || r;
1058
- }, 210: function (t, e, n) {
1059
- "use strict";
1060
- var r, o = SyntaxError, i = Function, a = TypeError, s = function (t) { try {
1061
- return i('"use strict"; return (' + t + ").constructor;")();
1062
- }
1063
- catch (t) { } }, c = Object.getOwnPropertyDescriptor;
1064
- if (c)
1065
- try {
1066
- c({}, "");
1067
- }
1068
- catch (t) {
1069
- c = null;
1070
- }
1071
- var u = function () { throw new a; }, f = c ? function () { try {
1072
- return u;
1073
- }
1074
- catch (t) {
1075
- try {
1076
- return c(arguments, "callee").get;
1077
- }
1078
- catch (t) {
1079
- return u;
1080
- }
1081
- } }() : u, l = n(1405)(), h = Object.getPrototypeOf || function (t) { return t.__proto__; }, p = {}, d = "undefined" == typeof Uint8Array ? r : h(Uint8Array), y = { "%AggregateError%": "undefined" == typeof AggregateError ? r : AggregateError, "%Array%": Array, "%ArrayBuffer%": "undefined" == typeof ArrayBuffer ? r : ArrayBuffer, "%ArrayIteratorPrototype%": l ? h([][Symbol.iterator]()) : r, "%AsyncFromSyncIteratorPrototype%": r, "%AsyncFunction%": p, "%AsyncGenerator%": p, "%AsyncGeneratorFunction%": p, "%AsyncIteratorPrototype%": p, "%Atomics%": "undefined" == typeof Atomics ? r : Atomics, "%BigInt%": "undefined" == typeof BigInt ? r : BigInt, "%Boolean%": Boolean, "%DataView%": "undefined" == typeof DataView ? r : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": "undefined" == typeof Float32Array ? r : Float32Array, "%Float64Array%": "undefined" == typeof Float64Array ? r : Float64Array, "%FinalizationRegistry%": "undefined" == typeof FinalizationRegistry ? r : FinalizationRegistry, "%Function%": i, "%GeneratorFunction%": p, "%Int8Array%": "undefined" == typeof Int8Array ? r : Int8Array, "%Int16Array%": "undefined" == typeof Int16Array ? r : Int16Array, "%Int32Array%": "undefined" == typeof Int32Array ? r : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": l ? h(h([][Symbol.iterator]())) : r, "%JSON%": "object" == typeof JSON ? JSON : r, "%Map%": "undefined" == typeof Map ? r : Map, "%MapIteratorPrototype%": "undefined" != typeof Map && l ? h((new Map)[Symbol.iterator]()) : r, "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": "undefined" == typeof Promise ? r : Promise, "%Proxy%": "undefined" == typeof Proxy ? r : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": "undefined" == typeof Reflect ? r : Reflect, "%RegExp%": RegExp, "%Set%": "undefined" == typeof Set ? r : Set, "%SetIteratorPrototype%": "undefined" != typeof Set && l ? h((new Set)[Symbol.iterator]()) : r, "%SharedArrayBuffer%": "undefined" == typeof SharedArrayBuffer ? r : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": l ? h(""[Symbol.iterator]()) : r, "%Symbol%": l ? Symbol : r, "%SyntaxError%": o, "%ThrowTypeError%": f, "%TypedArray%": d, "%TypeError%": a, "%Uint8Array%": "undefined" == typeof Uint8Array ? r : Uint8Array, "%Uint8ClampedArray%": "undefined" == typeof Uint8ClampedArray ? r : Uint8ClampedArray, "%Uint16Array%": "undefined" == typeof Uint16Array ? r : Uint16Array, "%Uint32Array%": "undefined" == typeof Uint32Array ? r : Uint32Array, "%URIError%": URIError, "%WeakMap%": "undefined" == typeof WeakMap ? r : WeakMap, "%WeakRef%": "undefined" == typeof WeakRef ? r : WeakRef, "%WeakSet%": "undefined" == typeof WeakSet ? r : WeakSet }, g = function t(e) { var n; if ("%AsyncFunction%" === e)
1082
- n = s("async function () {}");
1083
- else if ("%GeneratorFunction%" === e)
1084
- n = s("function* () {}");
1085
- else if ("%AsyncGeneratorFunction%" === e)
1086
- n = s("async function* () {}");
1087
- else if ("%AsyncGenerator%" === e) {
1088
- var r = t("%AsyncGeneratorFunction%");
1089
- r && (n = r.prototype);
1090
- }
1091
- else if ("%AsyncIteratorPrototype%" === e) {
1092
- var o = t("%AsyncGenerator%");
1093
- o && (n = h(o.prototype));
1094
- } return y[e] = n, n; }, b = { "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, m = n(8612), v = n(7642), w = m.call(Function.call, Array.prototype.concat), _ = m.call(Function.apply, Array.prototype.splice), S = m.call(Function.call, String.prototype.replace), E = m.call(Function.call, String.prototype.slice), O = m.call(Function.call, RegExp.prototype.exec), R = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, A = /\\(\\)?/g, T = function (t) { var e = E(t, 0, 1), n = E(t, -1); if ("%" === e && "%" !== n)
1095
- throw new o("invalid intrinsic syntax, expected closing `%`"); if ("%" === n && "%" !== e)
1096
- throw new o("invalid intrinsic syntax, expected opening `%`"); var r = []; return S(t, R, (function (t, e, n, o) { r[r.length] = n ? S(o, A, "$1") : e || t; })), r; }, k = function (t, e) { var n, r = t; if (v(b, r) && (r = "%" + (n = b[r])[0] + "%"), v(y, r)) {
1097
- var i = y[r];
1098
- if (i === p && (i = g(r)), void 0 === i && !e)
1099
- throw new a("intrinsic " + t + " exists, but is not available. Please file an issue!");
1100
- return { alias: n, name: r, value: i };
1101
- } throw new o("intrinsic " + t + " does not exist!"); };
1102
- t.exports = function (t, e) { if ("string" != typeof t || 0 === t.length)
1103
- throw new a("intrinsic name must be a non-empty string"); if (arguments.length > 1 && "boolean" != typeof e)
1104
- throw new a('"allowMissing" argument must be a boolean'); if (null === O(/^%?[^%]*%?$/, t))
1105
- throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); var n = T(t), r = n.length > 0 ? n[0] : "", i = k("%" + r + "%", e), s = i.name, u = i.value, f = !1, l = i.alias; l && (r = l[0], _(n, w([0, 1], l))); for (var h = 1, p = !0; h < n.length; h += 1) {
1106
- var d = n[h], g = E(d, 0, 1), b = E(d, -1);
1107
- if (('"' === g || "'" === g || "`" === g || '"' === b || "'" === b || "`" === b) && g !== b)
1108
- throw new o("property names with quotes must have matching quotes");
1109
- if ("constructor" !== d && p || (f = !0), v(y, s = "%" + (r += "." + d) + "%"))
1110
- u = y[s];
1111
- else if (null != u) {
1112
- if (!(d in u)) {
1113
- if (!e)
1114
- throw new a("base intrinsic for " + t + " exists, but the property is not available.");
1115
- return;
1116
- }
1117
- if (c && h + 1 >= n.length) {
1118
- var m = c(u, d);
1119
- u = (p = !!m) && "get" in m && !("originalValue" in m.get) ? m.get : u[d];
1120
- }
1121
- else
1122
- p = v(u, d), u = u[d];
1123
- p && !f && (y[s] = u);
1124
- }
1125
- } return u; };
1126
- }, 1044: function (t, e, n) {
1127
- "use strict";
1128
- var r = n(210)("%Object.defineProperty%", !0), o = function () { if (r)
1129
- try {
1130
- return r({}, "a", { value: 1 }), !0;
1131
- }
1132
- catch (t) {
1133
- return !1;
1134
- } return !1; };
1135
- o.hasArrayLengthDefineBug = function () { if (!o())
1136
- return null; try {
1137
- return 1 !== r([], "length", { value: 1 }).length;
1138
- }
1139
- catch (t) {
1140
- return !0;
1141
- } }, t.exports = o;
1142
- }, 1405: function (t, e, n) {
1143
- "use strict";
1144
- var r = "undefined" != typeof Symbol && Symbol, o = n(5419);
1145
- t.exports = function () { return "function" == typeof r && ("function" == typeof Symbol && ("symbol" == typeof r("foo") && ("symbol" == typeof Symbol("bar") && o()))); };
1146
- }, 5419: function (t) {
1147
- "use strict";
1148
- t.exports = function () { if ("function" != typeof Symbol || "function" != typeof Object.getOwnPropertySymbols)
1149
- return !1; if ("symbol" == typeof Symbol.iterator)
1150
- return !0; var t = {}, e = Symbol("test"), n = Object(e); if ("string" == typeof e)
1151
- return !1; if ("[object Symbol]" !== Object.prototype.toString.call(e))
1152
- return !1; if ("[object Symbol]" !== Object.prototype.toString.call(n))
1153
- return !1; for (e in t[e] = 42, t)
1154
- return !1; if ("function" == typeof Object.keys && 0 !== Object.keys(t).length)
1155
- return !1; if ("function" == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(t).length)
1156
- return !1; var r = Object.getOwnPropertySymbols(t); if (1 !== r.length || r[0] !== e)
1157
- return !1; if (!Object.prototype.propertyIsEnumerable.call(t, e))
1158
- return !1; if ("function" == typeof Object.getOwnPropertyDescriptor) {
1159
- var o = Object.getOwnPropertyDescriptor(t, e);
1160
- if (42 !== o.value || !0 !== o.enumerable)
1161
- return !1;
1162
- } return !0; };
1163
- }, 6410: function (t, e, n) {
1164
- "use strict";
1165
- var r = n(5419);
1166
- t.exports = function () { return r() && !!Symbol.toStringTag; };
1167
- }, 7642: function (t, e, n) {
1168
- "use strict";
1169
- var r = n(8612);
1170
- t.exports = r.call(Function.call, Object.prototype.hasOwnProperty);
1171
- }, 645: function (t, e) { e.read = function (t, e, n, r, o) { var i, a, s = 8 * o - r - 1, c = (1 << s) - 1, u = c >> 1, f = -7, l = n ? o - 1 : 0, h = n ? -1 : 1, p = t[e + l]; for (l += h, i = p & (1 << -f) - 1, p >>= -f, f += s; f > 0; i = 256 * i + t[e + l], l += h, f -= 8)
1172
- ; for (a = i & (1 << -f) - 1, i >>= -f, f += r; f > 0; a = 256 * a + t[e + l], l += h, f -= 8)
1173
- ; if (0 === i)
1174
- i = 1 - u;
1175
- else {
1176
- if (i === c)
1177
- return a ? NaN : 1 / 0 * (p ? -1 : 1);
1178
- a += Math.pow(2, r), i -= u;
1179
- } return (p ? -1 : 1) * a * Math.pow(2, i - r); }, e.write = function (t, e, n, r, o, i) { var a, s, c, u = 8 * i - o - 1, f = (1 << u) - 1, l = f >> 1, h = 23 === o ? Math.pow(2, -24) - Math.pow(2, -77) : 0, p = r ? 0 : i - 1, d = r ? 1 : -1, y = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0; for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = f) : (a = Math.floor(Math.log(e) / Math.LN2), e * (c = Math.pow(2, -a)) < 1 && (a--, c *= 2), (e += a + l >= 1 ? h / c : h * Math.pow(2, 1 - l)) * c >= 2 && (a++, c /= 2), a + l >= f ? (s = 0, a = f) : a + l >= 1 ? (s = (e * c - 1) * Math.pow(2, o), a += l) : (s = e * Math.pow(2, l - 1) * Math.pow(2, o), a = 0)); o >= 8; t[n + p] = 255 & s, p += d, s /= 256, o -= 8)
1180
- ; for (a = a << o | s, u += o; u > 0; t[n + p] = 255 & a, p += d, a /= 256, u -= 8)
1181
- ; t[n + p - d] |= 128 * y; }; }, 5717: function (t) { "function" == typeof Object.create ? t.exports = function (t, e) { e && (t.super_ = e, t.prototype = Object.create(e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } })); } : t.exports = function (t, e) { if (e) {
1182
- t.super_ = e;
1183
- var n = function () { };
1184
- n.prototype = e.prototype, t.prototype = new n, t.prototype.constructor = t;
1185
- } }; }, 2584: function (t, e, n) {
1186
- "use strict";
1187
- var r = n(6410)(), o = n(1924)("Object.prototype.toString"), i = function (t) { return !(r && t && "object" == typeof t && Symbol.toStringTag in t) && "[object Arguments]" === o(t); }, a = function (t) { return !!i(t) || null !== t && "object" == typeof t && "number" == typeof t.length && t.length >= 0 && "[object Array]" !== o(t) && "[object Function]" === o(t.callee); }, s = function () { return i(arguments); }();
1188
- i.isLegacyArguments = a, t.exports = s ? i : a;
1189
- }, 5320: function (t) {
1190
- "use strict";
1191
- var e, n, r = Function.prototype.toString, o = "object" == typeof Reflect && null !== Reflect && Reflect.apply;
1192
- if ("function" == typeof o && "function" == typeof Object.defineProperty)
1193
- try {
1194
- e = Object.defineProperty({}, "length", { get: function () { throw n; } }), n = {}, o((function () { throw 42; }), null, e);
1195
- }
1196
- catch (t) {
1197
- t !== n && (o = null);
1198
- }
1199
- else
1200
- o = null;
1201
- var i = /^\s*class\b/, a = function (t) { try {
1202
- var e = r.call(t);
1203
- return i.test(e);
1204
- }
1205
- catch (t) {
1206
- return !1;
1207
- } }, s = function (t) { try {
1208
- return !a(t) && (r.call(t), !0);
1209
- }
1210
- catch (t) {
1211
- return !1;
1212
- } }, c = Object.prototype.toString, u = "function" == typeof Symbol && !!Symbol.toStringTag, f = !(0 in [,]), l = function () { return !1; };
1213
- if ("object" == typeof document) {
1214
- var h = document.all;
1215
- c.call(h) === c.call(document.all) && (l = function (t) { if ((f || !t) && (void 0 === t || "object" == typeof t))
1216
- try {
1217
- var e = c.call(t);
1218
- return ("[object HTMLAllCollection]" === e || "[object HTML document.all class]" === e || "[object HTMLCollection]" === e || "[object Object]" === e) && null == t("");
1219
- }
1220
- catch (t) { } return !1; });
1221
- }
1222
- t.exports = o ? function (t) { if (l(t))
1223
- return !0; if (!t)
1224
- return !1; if ("function" != typeof t && "object" != typeof t)
1225
- return !1; try {
1226
- o(t, null, e);
1227
- }
1228
- catch (t) {
1229
- if (t !== n)
1230
- return !1;
1231
- } return !a(t) && s(t); } : function (t) { if (l(t))
1232
- return !0; if (!t)
1233
- return !1; if ("function" != typeof t && "object" != typeof t)
1234
- return !1; if (u)
1235
- return s(t); if (a(t))
1236
- return !1; var e = c.call(t); return !("[object Function]" !== e && "[object GeneratorFunction]" !== e && !/^\[object HTML/.test(e)) && s(t); };
1237
- }, 8662: function (t, e, n) {
1238
- "use strict";
1239
- var r, o = Object.prototype.toString, i = Function.prototype.toString, a = /^\s*(?:function)?\*/, s = n(6410)(), c = Object.getPrototypeOf;
1240
- t.exports = function (t) { if ("function" != typeof t)
1241
- return !1; if (a.test(i.call(t)))
1242
- return !0; if (!s)
1243
- return "[object GeneratorFunction]" === o.call(t); if (!c)
1244
- return !1; if (void 0 === r) {
1245
- var e = function () { if (!s)
1246
- return !1; try {
1247
- return Function("return function*() {}")();
1248
- }
1249
- catch (t) { } }();
1250
- r = !!e && c(e);
1251
- } return c(t) === r; };
1252
- }, 8611: function (t) {
1253
- "use strict";
1254
- t.exports = function (t) { return t != t; };
1255
- }, 360: function (t, e, n) {
1256
- "use strict";
1257
- var r = n(5559), o = n(4289), i = n(8611), a = n(9415), s = n(3194), c = r(a(), Number);
1258
- o(c, { getPolyfill: a, implementation: i, shim: s }), t.exports = c;
1259
- }, 9415: function (t, e, n) {
1260
- "use strict";
1261
- var r = n(8611);
1262
- t.exports = function () { return Number.isNaN && Number.isNaN(NaN) && !Number.isNaN("a") ? Number.isNaN : r; };
1263
- }, 3194: function (t, e, n) {
1264
- "use strict";
1265
- var r = n(4289), o = n(9415);
1266
- t.exports = function () { var t = o(); return r(Number, { isNaN: t }, { isNaN: function () { return Number.isNaN !== t; } }), t; };
1267
- }, 5692: function (t, e, n) {
1268
- "use strict";
1269
- var r = n(4029), o = n(3083), i = n(1924), a = i("Object.prototype.toString"), s = n(6410)(), c = "undefined" == typeof globalThis ? global : globalThis, u = o(), f = i("Array.prototype.indexOf", !0) || function (t, e) { for (var n = 0; n < t.length; n += 1)
1270
- if (t[n] === e)
1271
- return n; return -1; }, l = i("String.prototype.slice"), h = {}, p = n(882), d = Object.getPrototypeOf;
1272
- s && p && d && r(u, (function (t) { var e = new c[t]; if (Symbol.toStringTag in e) {
1273
- var n = d(e), r = p(n, Symbol.toStringTag);
1274
- if (!r) {
1275
- var o = d(n);
1276
- r = p(o, Symbol.toStringTag);
1277
- }
1278
- h[t] = r.get;
1279
- } }));
1280
- t.exports = function (t) { if (!t || "object" != typeof t)
1281
- return !1; if (!s || !(Symbol.toStringTag in t)) {
1282
- var e = l(a(t), 8, -1);
1283
- return f(u, e) > -1;
1284
- } return !!p && function (t) { var e = !1; return r(h, (function (n, r) { if (!e)
1285
- try {
1286
- e = n.call(t) === r;
1287
- }
1288
- catch (t) { } })), e; }(t); };
1289
- }, 832: function (t, e, n) {
1290
- "use strict";
1291
- Object.defineProperty(e, "__esModule", { value: !0 }), e.Dirent = void 0;
1292
- var r = n(5561), o = n(9568), i = r.constants.S_IFMT, a = r.constants.S_IFDIR, s = r.constants.S_IFREG, c = r.constants.S_IFBLK, u = r.constants.S_IFCHR, f = r.constants.S_IFLNK, l = r.constants.S_IFIFO, h = r.constants.S_IFSOCK, p = function () { function t() { this.name = "", this.mode = 0; } return t.build = function (e, n) { var r = new t, i = e.getNode().mode; return r.name = (0, o.strToEncoding)(e.getName(), n), r.mode = i, r; }, t.prototype._checkModeProperty = function (t) { return (this.mode & i) === t; }, t.prototype.isDirectory = function () { return this._checkModeProperty(a); }, t.prototype.isFile = function () { return this._checkModeProperty(s); }, t.prototype.isBlockDevice = function () { return this._checkModeProperty(c); }, t.prototype.isCharacterDevice = function () { return this._checkModeProperty(u); }, t.prototype.isSymbolicLink = function () { return this._checkModeProperty(f); }, t.prototype.isFIFO = function () { return this._checkModeProperty(l); }, t.prototype.isSocket = function () { return this._checkModeProperty(h); }, t; }();
1293
- e.Dirent = p, e.default = p;
1294
- }, 1507: function (t, e, n) {
1295
- "use strict";
1296
- Object.defineProperty(e, "__esModule", { value: !0 }), e.Stats = void 0;
1297
- var r = n(5561), o = n(3103), i = r.constants.S_IFMT, a = r.constants.S_IFDIR, s = r.constants.S_IFREG, c = r.constants.S_IFBLK, u = r.constants.S_IFCHR, f = r.constants.S_IFLNK, l = r.constants.S_IFIFO, h = r.constants.S_IFSOCK, p = function () { function t() { } return t.build = function (e, n) { void 0 === n && (n = !1); var r = new t, i = e.uid, a = e.gid, s = e.atime, c = e.mtime, u = e.ctime, f = n ? o.default : function (t) { return t; }; r.uid = f(i), r.gid = f(a), r.rdev = f(0), r.blksize = f(4096), r.ino = f(e.ino), r.size = f(e.getSize()), r.blocks = f(1), r.atime = s, r.mtime = c, r.ctime = u, r.birthtime = u, r.atimeMs = f(s.getTime()), r.mtimeMs = f(c.getTime()); var l = f(u.getTime()); return r.ctimeMs = l, r.birthtimeMs = l, r.dev = f(0), r.mode = f(e.mode), r.nlink = f(e.nlink), r; }, t.prototype._checkModeProperty = function (t) { return (Number(this.mode) & i) === t; }, t.prototype.isDirectory = function () { return this._checkModeProperty(a); }, t.prototype.isFile = function () { return this._checkModeProperty(s); }, t.prototype.isBlockDevice = function () { return this._checkModeProperty(c); }, t.prototype.isCharacterDevice = function () { return this._checkModeProperty(u); }, t.prototype.isSymbolicLink = function () { return this._checkModeProperty(f); }, t.prototype.isFIFO = function () { return this._checkModeProperty(l); }, t.prototype.isSocket = function () { return this._checkModeProperty(h); }, t; }();
1298
- e.Stats = p, e.default = p;
1299
- }, 5561: function (t, e) {
1300
- "use strict";
1301
- Object.defineProperty(e, "__esModule", { value: !0 }), e.constants = void 0, e.constants = { O_RDONLY: 0, O_WRONLY: 1, O_RDWR: 2, S_IFMT: 61440, S_IFREG: 32768, S_IFDIR: 16384, S_IFCHR: 8192, S_IFBLK: 24576, S_IFIFO: 4096, S_IFLNK: 40960, S_IFSOCK: 49152, O_CREAT: 64, O_EXCL: 128, O_NOCTTY: 256, O_TRUNC: 512, O_APPEND: 1024, O_DIRECTORY: 65536, O_NOATIME: 262144, O_NOFOLLOW: 131072, O_SYNC: 1052672, O_DIRECT: 16384, O_NONBLOCK: 2048, S_IRWXU: 448, S_IRUSR: 256, S_IWUSR: 128, S_IXUSR: 64, S_IRWXG: 56, S_IRGRP: 32, S_IWGRP: 16, S_IXGRP: 8, S_IRWXO: 7, S_IROTH: 4, S_IWOTH: 2, S_IXOTH: 1, F_OK: 0, R_OK: 4, W_OK: 2, X_OK: 1, UV_FS_SYMLINK_DIR: 1, UV_FS_SYMLINK_JUNCTION: 2, UV_FS_COPYFILE_EXCL: 1, UV_FS_COPYFILE_FICLONE: 2, UV_FS_COPYFILE_FICLONE_FORCE: 4, COPYFILE_EXCL: 1, COPYFILE_FICLONE: 2, COPYFILE_FICLONE_FORCE: 4 };
1302
- }, 9568: function (t, e, n) {
1303
- "use strict";
1304
- Object.defineProperty(e, "__esModule", { value: !0 }), e.strToEncoding = e.assertEncoding = e.ENCODING_UTF8 = void 0;
1305
- var r = n(6426), o = n(6978);
1306
- e.ENCODING_UTF8 = "utf8", e.assertEncoding = function (t) { if (t && !r.Buffer.isEncoding(t))
1307
- throw new o.TypeError("ERR_INVALID_OPT_VALUE_ENCODING", t); }, e.strToEncoding = function (t, n) { return n && n !== e.ENCODING_UTF8 ? "buffer" === n ? new r.Buffer(t) : new r.Buffer(t).toString(n) : t; };
1308
- }, 3103: function (t, e) { "function" == typeof BigInt ? e.default = BigInt : e.default = function () { throw new Error("BigInt is not supported in this environment."); }; }, 6551: function (t, e, n) {
1309
- "use strict";
1310
- var r = this && this.__assign || function () { return r = Object.assign || function (t) { for (var e, n = 1, r = arguments.length; n < r; n++)
1311
- for (var o in e = arguments[n])
1312
- Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); return t; }, r.apply(this, arguments); };
1313
- Object.defineProperty(e, "__esModule", { value: !0 }), e.fs = e.createFsFromVolume = e.vol = e.Volume = void 0;
1314
- var o = n(1507), i = n(832), a = n(6898), s = n(5659), c = s.fsSyncMethods, u = s.fsAsyncMethods, f = n(5561), l = f.constants.F_OK, h = f.constants.R_OK, p = f.constants.W_OK, d = f.constants.X_OK;
1315
- function y(t) { for (var e = { F_OK: l, R_OK: h, W_OK: p, X_OK: d, constants: f.constants, Stats: o.default, Dirent: i.default }, n = 0, r = c; n < r.length; n++) {
1316
- "function" == typeof t[g = r[n]] && (e[g] = t[g].bind(t));
1317
- } for (var s = 0, y = u; s < y.length; s++) {
1318
- var g;
1319
- "function" == typeof t[g = y[s]] && (e[g] = t[g].bind(t));
1320
- } return e.StatWatcher = t.StatWatcher, e.FSWatcher = t.FSWatcher, e.WriteStream = t.WriteStream, e.ReadStream = t.ReadStream, e.promises = t.promises, e._toUnixTimestamp = a.toUnixTimestamp, e; }
1321
- e.Volume = a.Volume, e.vol = new a.Volume, e.createFsFromVolume = y, e.fs = y(e.vol), t.exports = r(r({}, t.exports), e.fs), t.exports.semantic = !0;
1322
- }, 6426: function (t, e, n) {
1323
- "use strict";
1324
- var r = this && this.__spreadArray || function (t, e, n) { if (n || 2 === arguments.length)
1325
- for (var r, o = 0, i = e.length; o < i; o++)
1326
- !r && o in e || (r || (r = Array.prototype.slice.call(e, 0, o)), r[o] = e[o]); return t.concat(r || Array.prototype.slice.call(e)); };
1327
- Object.defineProperty(e, "__esModule", { value: !0 }), e.bufferFrom = e.bufferAllocUnsafe = e.Buffer = void 0;
1328
- var o = n(8764);
1329
- function i(t) { for (var e = [], n = 1; n < arguments.length; n++)
1330
- e[n - 1] = arguments[n]; return new (o.Buffer.bind.apply(o.Buffer, r([void 0, t], e, !1))); }
1331
- Object.defineProperty(e, "Buffer", { enumerable: !0, get: function () { return o.Buffer; } });
1332
- var a = o.Buffer.allocUnsafe || i;
1333
- e.bufferAllocUnsafe = a;
1334
- var s = o.Buffer.from || i;
1335
- e.bufferFrom = s;
1336
- }, 6978: function (t, e, n) {
1337
- "use strict";
1338
- var r, o = this && this.__extends || (r = function (t, e) { return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, e) { t.__proto__ = e; } || function (t, e) { for (var n in e)
1339
- Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); }, r(t, e); }, function (t, e) { if ("function" != typeof e && null !== e)
1340
- throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); function n() { this.constructor = t; } r(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n); });
1341
- Object.defineProperty(e, "__esModule", { value: !0 }), e.E = e.AssertionError = e.message = e.RangeError = e.TypeError = e.Error = void 0;
1342
- var i = n(9282), a = n(9539), s = "undefined" == typeof Symbol ? "_kCode" : Symbol("code"), c = {};
1343
- function u(t) { return function (t) { function e(e) { for (var n = [], r = 1; r < arguments.length; r++)
1344
- n[r - 1] = arguments[r]; var o = t.call(this, h(e, n)) || this; return o.code = e, o[s] = e, o.name = "".concat(t.prototype.name, " [").concat(o[s], "]"), o; } return o(e, t), e; }(t); }
1345
- var f = "undefined" != typeof globalThis ? globalThis : global, l = function (t) { function n(n) { var r = this; if ("object" != typeof n || null === n)
1346
- throw new e.TypeError("ERR_INVALID_ARG_TYPE", "options", "object"); return (r = n.message ? t.call(this, n.message) || this : t.call(this, "".concat(a.inspect(n.actual).slice(0, 128), " ") + "".concat(n.operator, " ").concat(a.inspect(n.expected).slice(0, 128))) || this).generatedMessage = !n.message, r.name = "AssertionError [ERR_ASSERTION]", r.code = "ERR_ASSERTION", r.actual = n.actual, r.expected = n.expected, r.operator = n.operator, e.Error.captureStackTrace(r, n.stackStartFunction), r; } return o(n, t), n; }(f.Error);
1347
- function h(t, e) { i.strictEqual(typeof t, "string"); var n, r = c[t]; if (i(r, "An invalid error message key was used: ".concat(t, ".")), "function" == typeof r)
1348
- n = r;
1349
- else {
1350
- if (n = a.format, void 0 === e || 0 === e.length)
1351
- return r;
1352
- e.unshift(r);
1353
- } return String(n.apply(null, e)); }
1354
- function p(t, e) { c[t] = "function" == typeof e ? e : String(e); }
1355
- function d(t, e) { if (i(t, "expected is required"), i("string" == typeof e, "thing is required"), Array.isArray(t)) {
1356
- var n = t.length;
1357
- return i(n > 0, "At least one expected value needs to be specified"), t = t.map((function (t) { return String(t); })), n > 2 ? "one of ".concat(e, " ").concat(t.slice(0, n - 1).join(", "), ", or ") + t[n - 1] : 2 === n ? "one of ".concat(e, " ").concat(t[0], " or ").concat(t[1]) : "of ".concat(e, " ").concat(t[0]);
1358
- } return "of ".concat(e, " ").concat(String(t)); }
1359
- e.AssertionError = l, e.message = h, e.E = p, e.Error = u(f.Error), e.TypeError = u(f.TypeError), e.RangeError = u(f.RangeError), p("ERR_ARG_NOT_ITERABLE", "%s must be iterable"), p("ERR_ASSERTION", "%s"), p("ERR_BUFFER_OUT_OF_BOUNDS", (function (t, e) { return e ? "Attempt to write outside buffer bounds" : '"'.concat(t, '" is outside of buffer bounds'); })), p("ERR_CHILD_CLOSED_BEFORE_REPLY", "Child closed before reply received"), p("ERR_CONSOLE_WRITABLE_STREAM", "Console expects a writable stream instance for %s"), p("ERR_CPU_USAGE", "Unable to obtain cpu usage %s"), p("ERR_DNS_SET_SERVERS_FAILED", (function (t, e) { return 'c-ares failed to set servers: "'.concat(t, '" [').concat(e, "]"); })), p("ERR_FALSY_VALUE_REJECTION", "Promise was rejected with falsy value"), p("ERR_ENCODING_NOT_SUPPORTED", (function (t) { return 'The "'.concat(t, '" encoding is not supported'); })), p("ERR_ENCODING_INVALID_ENCODED_DATA", (function (t) { return "The encoded data was not valid for encoding ".concat(t); })), p("ERR_HTTP_HEADERS_SENT", "Cannot render headers after they are sent to the client"), p("ERR_HTTP_INVALID_STATUS_CODE", "Invalid status code: %s"), p("ERR_HTTP_TRAILER_INVALID", "Trailers are invalid with this transfer encoding"), p("ERR_INDEX_OUT_OF_RANGE", "Index out of range"), p("ERR_INVALID_ARG_TYPE", (function (t, e, n) { var r, o; i(t, "name is required"), e.includes("not ") ? (r = "must not be", e = e.split("not ")[1]) : r = "must be"; if (Array.isArray(t)) {
1360
- var a = t.map((function (t) { return '"'.concat(t, '"'); })).join(", ");
1361
- o = "The ".concat(a, " arguments ").concat(r, " ").concat(d(e, "type"));
1362
- }
1363
- else if (t.includes(" argument"))
1364
- o = "The ".concat(t, " ").concat(r, " ").concat(d(e, "type"));
1365
- else {
1366
- var s = t.includes(".") ? "property" : "argument";
1367
- o = 'The "'.concat(t, '" ').concat(s, " ").concat(r, " ").concat(d(e, "type"));
1368
- } arguments.length >= 3 && (o += ". Received type ".concat(null !== n ? typeof n : "null")); return o; })), p("ERR_INVALID_ARRAY_LENGTH", (function (t, e, n) { return i.strictEqual(typeof n, "number"), 'The array "'.concat(t, '" (length ').concat(n, ") must be of length ").concat(e, "."); })), p("ERR_INVALID_BUFFER_SIZE", "Buffer size must be a multiple of %s"), p("ERR_INVALID_CALLBACK", "Callback must be a function"), p("ERR_INVALID_CHAR", "Invalid character in %s"), p("ERR_INVALID_CURSOR_POS", "Cannot set cursor row without setting its column"), p("ERR_INVALID_FD", '"fd" must be a positive integer: %s'), p("ERR_INVALID_FILE_URL_HOST", 'File URL host must be "localhost" or empty on %s'), p("ERR_INVALID_FILE_URL_PATH", "File URL path %s"), p("ERR_INVALID_HANDLE_TYPE", "This handle type cannot be sent"), p("ERR_INVALID_IP_ADDRESS", "Invalid IP address: %s"), p("ERR_INVALID_OPT_VALUE", (function (t, e) { return 'The value "'.concat(String(e), '" is invalid for option "').concat(t, '"'); })), p("ERR_INVALID_OPT_VALUE_ENCODING", (function (t) { return 'The value "'.concat(String(t), '" is invalid for option "encoding"'); })), p("ERR_INVALID_REPL_EVAL_CONFIG", 'Cannot specify both "breakEvalOnSigint" and "eval" for REPL'), p("ERR_INVALID_SYNC_FORK_INPUT", "Asynchronous forks do not support Buffer, Uint8Array or string input: %s"), p("ERR_INVALID_THIS", 'Value of "this" must be of type %s'), p("ERR_INVALID_TUPLE", "%s must be an iterable %s tuple"), p("ERR_INVALID_URL", "Invalid URL: %s"), p("ERR_INVALID_URL_SCHEME", (function (t) { return "The URL must be ".concat(d(t, "scheme")); })), p("ERR_IPC_CHANNEL_CLOSED", "Channel closed"), p("ERR_IPC_DISCONNECTED", "IPC channel is already disconnected"), p("ERR_IPC_ONE_PIPE", "Child process can have only one IPC pipe"), p("ERR_IPC_SYNC_FORK", "IPC cannot be used with synchronous forks"), p("ERR_MISSING_ARGS", (function () { for (var t = [], e = 0; e < arguments.length; e++)
1369
- t[e] = arguments[e]; i(t.length > 0, "At least one arg needs to be specified"); var n = "The ", r = t.length; switch (t = t.map((function (t) { return '"'.concat(t, '"'); })), r) {
1370
- case 1:
1371
- n += "".concat(t[0], " argument");
1372
- break;
1373
- case 2:
1374
- n += "".concat(t[0], " and ").concat(t[1], " arguments");
1375
- break;
1376
- default: n += t.slice(0, r - 1).join(", "), n += ", and ".concat(t[r - 1], " arguments");
1377
- } return "".concat(n, " must be specified"); })), p("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), p("ERR_NAPI_CONS_FUNCTION", "Constructor must be a function"), p("ERR_NAPI_CONS_PROTOTYPE_OBJECT", "Constructor.prototype must be an object"), p("ERR_NO_CRYPTO", "Node.js is not compiled with OpenSSL crypto support"), p("ERR_NO_LONGER_SUPPORTED", "%s is no longer supported"), p("ERR_PARSE_HISTORY_DATA", "Could not parse history data in %s"), p("ERR_SOCKET_ALREADY_BOUND", "Socket is already bound"), p("ERR_SOCKET_BAD_PORT", "Port should be > 0 and < 65536"), p("ERR_SOCKET_BAD_TYPE", "Bad socket type specified. Valid types are: udp4, udp6"), p("ERR_SOCKET_CANNOT_SEND", "Unable to send data"), p("ERR_SOCKET_CLOSED", "Socket is closed"), p("ERR_SOCKET_DGRAM_NOT_RUNNING", "Not running"), p("ERR_STDERR_CLOSE", "process.stderr cannot be closed"), p("ERR_STDOUT_CLOSE", "process.stdout cannot be closed"), p("ERR_STREAM_WRAP", "Stream has StringDecoder set or is in objectMode"), p("ERR_TLS_CERT_ALTNAME_INVALID", "Hostname/IP does not match certificate's altnames: %s"), p("ERR_TLS_DH_PARAM_SIZE", (function (t) { return "DH parameter size ".concat(t, " is less than 2048"); })), p("ERR_TLS_HANDSHAKE_TIMEOUT", "TLS handshake timeout"), p("ERR_TLS_RENEGOTIATION_FAILED", "Failed to renegotiate"), p("ERR_TLS_REQUIRED_SERVER_NAME", '"servername" is required parameter for Server.addContext'), p("ERR_TLS_SESSION_ATTACK", "TSL session renegotiation attack detected"), p("ERR_TRANSFORM_ALREADY_TRANSFORMING", "Calling transform done when still transforming"), p("ERR_TRANSFORM_WITH_LENGTH_0", "Calling transform done when writableState.length != 0"), p("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s"), p("ERR_UNKNOWN_SIGNAL", "Unknown signal: %s"), p("ERR_UNKNOWN_STDIN_TYPE", "Unknown stdin file type"), p("ERR_UNKNOWN_STREAM_TYPE", "Unknown stream file type"), p("ERR_V8BREAKITERATOR", "Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl");
1378
- }, 1172: function (t, e, n) {
1379
- "use strict";
1380
- var r, o = this && this.__extends || (r = function (t, e) { return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, e) { t.__proto__ = e; } || function (t, e) { for (var n in e)
1381
- Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); }, r(t, e); }, function (t, e) { if ("function" != typeof e && null !== e)
1382
- throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); function n() { this.constructor = t; } r(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n); });
1383
- Object.defineProperty(e, "__esModule", { value: !0 }), e.File = e.Link = e.Node = e.SEP = void 0;
1384
- var i = n(4880), a = n(6426), s = n(5561), c = n(7187), u = n(1507), f = s.constants.S_IFMT, l = s.constants.S_IFDIR, h = s.constants.S_IFREG, p = s.constants.S_IFLNK, d = s.constants.O_APPEND, y = function () { var t, e; return null !== (e = null === (t = i.default.getuid) || void 0 === t ? void 0 : t.call(i.default)) && void 0 !== e ? e : 0; }, g = function () { var t, e; return null !== (e = null === (t = i.default.getgid) || void 0 === t ? void 0 : t.call(i.default)) && void 0 !== e ? e : 0; };
1385
- e.SEP = "/";
1386
- var b = function (t) { function e(e, n) { void 0 === n && (n = 438); var r = t.call(this) || this; return r.uid = y(), r.gid = g(), r.atime = new Date, r.mtime = new Date, r.ctime = new Date, r.perm = 438, r.mode = h, r.nlink = 1, r.perm = n, r.mode |= n, r.ino = e, r; } return o(e, t), e.prototype.getString = function (t) { return void 0 === t && (t = "utf8"), this.getBuffer().toString(t); }, e.prototype.setString = function (t) { this.buf = (0, a.bufferFrom)(t, "utf8"), this.touch(); }, e.prototype.getBuffer = function () { return this.buf || this.setBuffer((0, a.bufferAllocUnsafe)(0)), (0, a.bufferFrom)(this.buf); }, e.prototype.setBuffer = function (t) { this.buf = (0, a.bufferFrom)(t), this.touch(); }, e.prototype.getSize = function () { return this.buf ? this.buf.length : 0; }, e.prototype.setModeProperty = function (t) { this.mode = this.mode & ~f | t; }, e.prototype.setIsFile = function () { this.setModeProperty(h); }, e.prototype.setIsDirectory = function () { this.setModeProperty(l); }, e.prototype.setIsSymlink = function () { this.setModeProperty(p); }, e.prototype.isFile = function () { return (this.mode & f) === h; }, e.prototype.isDirectory = function () { return (this.mode & f) === l; }, e.prototype.isSymlink = function () { return (this.mode & f) === p; }, e.prototype.makeSymlink = function (t) { this.symlink = t, this.setIsSymlink(); }, e.prototype.write = function (t, e, n, r) { if (void 0 === e && (e = 0), void 0 === n && (n = t.length), void 0 === r && (r = 0), this.buf || (this.buf = (0, a.bufferAllocUnsafe)(0)), r + n > this.buf.length) {
1387
- var o = (0, a.bufferAllocUnsafe)(r + n);
1388
- this.buf.copy(o, 0, 0, this.buf.length), this.buf = o;
1389
- } return t.copy(this.buf, r, e, e + n), this.touch(), n; }, e.prototype.read = function (t, e, n, r) { void 0 === e && (e = 0), void 0 === n && (n = t.byteLength), void 0 === r && (r = 0), this.buf || (this.buf = (0, a.bufferAllocUnsafe)(0)); var o = n; return o > t.byteLength && (o = t.byteLength), o + r > this.buf.length && (o = this.buf.length - r), this.buf.copy(t, e, r, r + o), o; }, e.prototype.truncate = function (t) { if (void 0 === t && (t = 0), t)
1390
- if (this.buf || (this.buf = (0, a.bufferAllocUnsafe)(0)), t <= this.buf.length)
1391
- this.buf = this.buf.slice(0, t);
1392
- else {
1393
- var e = (0, a.bufferAllocUnsafe)(0);
1394
- this.buf.copy(e), e.fill(0, t);
1395
- }
1396
- else
1397
- this.buf = (0, a.bufferAllocUnsafe)(0); this.touch(); }, e.prototype.chmod = function (t) { this.perm = t, this.mode = -512 & this.mode | t, this.touch(); }, e.prototype.chown = function (t, e) { this.uid = t, this.gid = e, this.touch(); }, e.prototype.touch = function () { this.mtime = new Date, this.emit("change", this); }, e.prototype.canRead = function (t, e) { return void 0 === t && (t = y()), void 0 === e && (e = g()), !!(4 & this.perm) || (!!(e === this.gid && 32 & this.perm) || !!(t === this.uid && 256 & this.perm)); }, e.prototype.canWrite = function (t, e) { return void 0 === t && (t = y()), void 0 === e && (e = g()), !!(2 & this.perm) || (!!(e === this.gid && 16 & this.perm) || !!(t === this.uid && 128 & this.perm)); }, e.prototype.del = function () { this.emit("delete", this); }, e.prototype.toJSON = function () { return { ino: this.ino, uid: this.uid, gid: this.gid, atime: this.atime.getTime(), mtime: this.mtime.getTime(), ctime: this.ctime.getTime(), perm: this.perm, mode: this.mode, nlink: this.nlink, symlink: this.symlink, data: this.getString() }; }, e; }(c.EventEmitter);
1398
- e.Node = b;
1399
- var m = function (t) { function n(e, n, r) { var o = t.call(this) || this; return o.children = {}, o._steps = [], o.ino = 0, o.length = 0, o.vol = e, o.parent = n, o.name = r, o.syncSteps(), o; } return o(n, t), Object.defineProperty(n.prototype, "steps", { get: function () { return this._steps; }, set: function (t) { this._steps = t; for (var e = 0, n = Object.values(this.children); e < n.length; e++) {
1400
- var r = n[e];
1401
- null == r || r.syncSteps();
1402
- } }, enumerable: !1, configurable: !0 }), n.prototype.setNode = function (t) { this.node = t, this.ino = t.ino; }, n.prototype.getNode = function () { return this.node; }, n.prototype.createChild = function (t, e) { void 0 === e && (e = this.vol.createNode()); var r = new n(this.vol, this, t); return r.setNode(e), e.isDirectory(), this.setChild(t, r), r; }, n.prototype.setChild = function (t, e) { return void 0 === e && (e = new n(this.vol, this, t)), this.children[t] = e, e.parent = this, this.length++, this.emit("child:add", e, this), e; }, n.prototype.deleteChild = function (t) { delete this.children[t.getName()], this.length--, this.emit("child:delete", t, this); }, n.prototype.getChild = function (t) { if (Object.hasOwnProperty.call(this.children, t))
1403
- return this.children[t]; }, n.prototype.getPath = function () { return this.steps.join(e.SEP); }, n.prototype.getName = function () { return this.steps[this.steps.length - 1]; }, n.prototype.walk = function (t, e, n) { if (void 0 === e && (e = t.length), void 0 === n && (n = 0), n >= t.length)
1404
- return this; if (n >= e)
1405
- return this; var r = t[n], o = this.getChild(r); return o ? o.walk(t, e, n + 1) : null; }, n.prototype.toJSON = function () { return { steps: this.steps, ino: this.ino, children: Object.keys(this.children) }; }, n.prototype.syncSteps = function () { this.steps = this.parent ? this.parent.steps.concat([this.name]) : [this.name]; }, n; }(c.EventEmitter);
1406
- e.Link = m;
1407
- var v = function () { function t(t, e, n, r) { this.position = 0, this.link = t, this.node = e, this.flags = n, this.fd = r; } return t.prototype.getString = function (t) { return void 0 === t && (t = "utf8"), this.node.getString(); }, t.prototype.setString = function (t) { this.node.setString(t); }, t.prototype.getBuffer = function () { return this.node.getBuffer(); }, t.prototype.setBuffer = function (t) { this.node.setBuffer(t); }, t.prototype.getSize = function () { return this.node.getSize(); }, t.prototype.truncate = function (t) { this.node.truncate(t); }, t.prototype.seekTo = function (t) { this.position = t; }, t.prototype.stats = function () { return u.default.build(this.node); }, t.prototype.write = function (t, e, n, r) { void 0 === e && (e = 0), void 0 === n && (n = t.length), "number" != typeof r && (r = this.position), this.flags & d && (r = this.getSize()); var o = this.node.write(t, e, n, r); return this.position = r + o, o; }, t.prototype.read = function (t, e, n, r) { void 0 === e && (e = 0), void 0 === n && (n = t.byteLength), "number" != typeof r && (r = this.position); var o = this.node.read(t, e, n, r); return this.position = r + o, o; }, t.prototype.chmod = function (t) { this.node.chmod(t); }, t.prototype.chown = function (t, e) { this.node.chown(t, e); }, t; }();
1408
- e.File = v;
1409
- }, 4880: function (t, e, n) {
1410
- "use strict";
1411
- Object.defineProperty(e, "__esModule", { value: !0 }), e.createProcess = void 0;
1412
- function r() { var t = function () { if ("undefined" != typeof process)
1413
- return process; try {
1414
- return n(9243);
1415
- }
1416
- catch (t) {
1417
- return;
1418
- } }() || {}; return t.cwd || (t.cwd = function () { return "/"; }), t.nextTick || (t.nextTick = n(6015).default), t.emitWarning || (t.emitWarning = function (t, e) { console.warn("".concat(e).concat(e ? ": " : "").concat(t)); }), t.env || (t.env = {}), t; }
1419
- e.createProcess = r, e.default = r();
1420
- }, 6133: function (t, e) {
1421
- "use strict";
1422
- var n = this && this.__spreadArray || function (t, e, n) { if (n || 2 === arguments.length)
1423
- for (var r, o = 0, i = e.length; o < i; o++)
1424
- !r && o in e || (r || (r = Array.prototype.slice.call(e, 0, o)), r[o] = e[o]); return t.concat(r || Array.prototype.slice.call(e)); };
1425
- function r(t, e, r) { return void 0 === r && (r = function (t) { return t; }), function () { for (var o = [], i = 0; i < arguments.length; i++)
1426
- o[i] = arguments[i]; return new Promise((function (i, a) { t[e].bind(t).apply(void 0, n(n([], o, !1), [function (t, e) { return t ? a(t) : i(r(e)); }], !1)); })); }; }
1427
- Object.defineProperty(e, "__esModule", { value: !0 }), e.FileHandle = void 0;
1428
- var o = function () { function t(t, e) { this.vol = t, this.fd = e; } return t.prototype.appendFile = function (t, e) { return r(this.vol, "appendFile")(this.fd, t, e); }, t.prototype.chmod = function (t) { return r(this.vol, "fchmod")(this.fd, t); }, t.prototype.chown = function (t, e) { return r(this.vol, "fchown")(this.fd, t, e); }, t.prototype.close = function () { return r(this.vol, "close")(this.fd); }, t.prototype.datasync = function () { return r(this.vol, "fdatasync")(this.fd); }, t.prototype.read = function (t, e, n, o) { return r(this.vol, "read", (function (e) { return { bytesRead: e, buffer: t }; }))(this.fd, t, e, n, o); }, t.prototype.readFile = function (t) { return r(this.vol, "readFile")(this.fd, t); }, t.prototype.stat = function (t) { return r(this.vol, "fstat")(this.fd, t); }, t.prototype.sync = function () { return r(this.vol, "fsync")(this.fd); }, t.prototype.truncate = function (t) { return r(this.vol, "ftruncate")(this.fd, t); }, t.prototype.utimes = function (t, e) { return r(this.vol, "futimes")(this.fd, t, e); }, t.prototype.write = function (t, e, n, o) { return r(this.vol, "write", (function (e) { return { bytesWritten: e, buffer: t }; }))(this.fd, t, e, n, o); }, t.prototype.writeFile = function (t, e) { return r(this.vol, "writeFile")(this.fd, t, e); }, t; }();
1429
- e.FileHandle = o, e.default = function (t) { return "undefined" == typeof Promise ? null : { FileHandle: o, access: function (e, n) { return r(t, "access")(e, n); }, appendFile: function (e, n, i) { return r(t, "appendFile")(e instanceof o ? e.fd : e, n, i); }, chmod: function (e, n) { return r(t, "chmod")(e, n); }, chown: function (e, n, o) { return r(t, "chown")(e, n, o); }, copyFile: function (e, n, o) { return r(t, "copyFile")(e, n, o); }, lchmod: function (e, n) { return r(t, "lchmod")(e, n); }, lchown: function (e, n, o) { return r(t, "lchown")(e, n, o); }, link: function (e, n) { return r(t, "link")(e, n); }, lstat: function (e, n) { return r(t, "lstat")(e, n); }, mkdir: function (e, n) { return r(t, "mkdir")(e, n); }, mkdtemp: function (e, n) { return r(t, "mkdtemp")(e, n); }, open: function (e, n, i) { return r(t, "open", (function (e) { return new o(t, e); }))(e, n, i); }, readdir: function (e, n) { return r(t, "readdir")(e, n); }, readFile: function (e, n) { return r(t, "readFile")(e instanceof o ? e.fd : e, n); }, readlink: function (e, n) { return r(t, "readlink")(e, n); }, realpath: function (e, n) { return r(t, "realpath")(e, n); }, rename: function (e, n) { return r(t, "rename")(e, n); }, rmdir: function (e) { return r(t, "rmdir")(e); }, rm: function (e, n) { return r(t, "rm")(e, n); }, stat: function (e, n) { return r(t, "stat")(e, n); }, symlink: function (e, n, o) { return r(t, "symlink")(e, n, o); }, truncate: function (e, n) { return r(t, "truncate")(e, n); }, unlink: function (e) { return r(t, "unlink")(e); }, utimes: function (e, n, o) { return r(t, "utimes")(e, n, o); }, writeFile: function (e, n, i) { return r(t, "writeFile")(e instanceof o ? e.fd : e, n, i); } }; };
1430
- }, 6015: function (t, e) {
1431
- "use strict";
1432
- var n;
1433
- Object.defineProperty(e, "__esModule", { value: !0 }), n = "function" == typeof setImmediate ? setImmediate.bind("undefined" != typeof globalThis ? globalThis : global) : setTimeout.bind("undefined" != typeof globalThis ? globalThis : global), e.default = n;
1434
- }, 8369: function (t, e) {
1435
- "use strict";
1436
- Object.defineProperty(e, "__esModule", { value: !0 }), e.default = function (t, e, n) { var r = setTimeout.apply("undefined" != typeof globalThis ? globalThis : global, arguments); return r && "object" == typeof r && "function" == typeof r.unref && r.unref(), r; };
1437
- }, 6898: function (t, e, n) {
1438
- "use strict";
1439
- var r, o = this && this.__extends || (r = function (t, e) { return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, e) { t.__proto__ = e; } || function (t, e) { for (var n in e)
1440
- Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); }, r(t, e); }, function (t, e) { if ("function" != typeof e && null !== e)
1441
- throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); function n() { this.constructor = t; } r(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n); }), i = this && this.__spreadArray || function (t, e, n) { if (n || 2 === arguments.length)
1442
- for (var r, o = 0, i = e.length; o < i; o++)
1443
- !r && o in e || (r || (r = Array.prototype.slice.call(e, 0, o)), r[o] = e[o]); return t.concat(r || Array.prototype.slice.call(e)); };
1444
- Object.defineProperty(e, "__esModule", { value: !0 }), e.FSWatcher = e.StatWatcher = e.Volume = e.toUnixTimestamp = e.bufferToEncoding = e.dataToBuffer = e.dataToStr = e.pathToSteps = e.filenameToSteps = e.pathToFilename = e.flagsToNumber = e.FLAGS = void 0;
1445
- var a, s = n(6470), c = n(1172), u = n(1507), f = n(832), l = n(6426), h = n(6015), p = n(4880), d = n(8369), y = n(2830), g = n(5561), b = n(7187), m = n(9568), v = n(6978), w = n(9539), _ = n(6133), S = s.resolve, E = g.constants.O_RDONLY, O = g.constants.O_WRONLY, R = g.constants.O_RDWR, A = g.constants.O_CREAT, T = g.constants.O_EXCL, k = g.constants.O_TRUNC, I = g.constants.O_APPEND, j = g.constants.O_SYNC, N = g.constants.O_DIRECTORY, B = g.constants.F_OK, P = g.constants.COPYFILE_EXCL, L = g.constants.COPYFILE_FICLONE_FORCE, x = s.posix ? s.posix : s, F = x.sep, C = x.relative, M = x.join, U = x.dirname, D = "win32" === p.default.platform, q = "path must be a string or Buffer", W = "fd must be a file descriptor", V = "mode must be an int", G = "callback must be a function", H = "uid must be an unsigned int", $ = "gid must be an unsigned int", Y = "ENOENT", z = "EBADF", K = "EINVAL", J = "EEXIST", X = "ENOTDIR", Z = "EMFILE", Q = "EACCES", tt = "EISDIR", et = "ENOTEMPTY", nt = "ENOSYS", rt = "ERR_FS_EISDIR";
1446
- function ot(t, e, n, r, o) { void 0 === e && (e = ""), void 0 === n && (n = ""), void 0 === r && (r = ""), void 0 === o && (o = Error); var i = new o(function (t, e, n, r) { void 0 === e && (e = ""), void 0 === n && (n = ""), void 0 === r && (r = ""); var o = ""; switch (n && (o = " '".concat(n, "'")), r && (o += " -> '".concat(r, "'")), t) {
1447
- case Y: return "ENOENT: no such file or directory, ".concat(e).concat(o);
1448
- case z: return "EBADF: bad file descriptor, ".concat(e).concat(o);
1449
- case K: return "EINVAL: invalid argument, ".concat(e).concat(o);
1450
- case "EPERM": return "EPERM: operation not permitted, ".concat(e).concat(o);
1451
- case "EPROTO": return "EPROTO: protocol error, ".concat(e).concat(o);
1452
- case J: return "EEXIST: file already exists, ".concat(e).concat(o);
1453
- case X: return "ENOTDIR: not a directory, ".concat(e).concat(o);
1454
- case tt: return "EISDIR: illegal operation on a directory, ".concat(e).concat(o);
1455
- case Q: return "EACCES: permission denied, ".concat(e).concat(o);
1456
- case et: return "ENOTEMPTY: directory not empty, ".concat(e).concat(o);
1457
- case Z: return "EMFILE: too many open files, ".concat(e).concat(o);
1458
- case nt: return "ENOSYS: function not implemented, ".concat(e).concat(o);
1459
- case rt: return "[ERR_FS_EISDIR]: Path is a directory: ".concat(e, " returned EISDIR (is a directory) ").concat(n);
1460
- default: return "".concat(t, ": error occurred, ").concat(e).concat(o);
1461
- } }(t, e, n, r)); return i.code = t, i; }
1462
- function it(t) { if ("number" == typeof t)
1463
- return t; if ("string" == typeof t) {
1464
- var e = a[t];
1465
- if (void 0 !== e)
1466
- return e;
1467
- } throw new v.TypeError("ERR_INVALID_OPT_VALUE", "flags", t); }
1468
- function at(t, e) { var n; if (!e)
1469
- return t; var r = typeof e; switch (r) {
1470
- case "string":
1471
- n = Object.assign({}, t, { encoding: e });
1472
- break;
1473
- case "object":
1474
- n = Object.assign({}, t, e);
1475
- break;
1476
- default: throw TypeError(function (t) { return "Expected options to be either an object or a string, but got ".concat(t, " instead"); }(r));
1477
- } return "buffer" !== n.encoding && (0, m.assertEncoding)(n.encoding), n; }
1478
- function st(t) { return function (e) { return at(t, e); }; }
1479
- function ct(t) { if ("function" != typeof t)
1480
- throw TypeError(G); return t; }
1481
- function ut(t) { return function (e, n) { return "function" == typeof e ? [t(), e] : [t(e), ct(n)]; }; }
1482
- !function (t) { t[t.r = E] = "r", t[t["r+"] = R] = "r+", t[t.rs = E | j] = "rs", t[t.sr = t.rs] = "sr", t[t["rs+"] = R | j] = "rs+", t[t["sr+"] = t["rs+"]] = "sr+", t[t.w = O | A | k] = "w", t[t.wx = O | A | k | T] = "wx", t[t.xw = t.wx] = "xw", t[t["w+"] = R | A | k] = "w+", t[t["wx+"] = R | A | k | T] = "wx+", t[t["xw+"] = t["wx+"]] = "xw+", t[t.a = O | I | A] = "a", t[t.ax = O | I | A | T] = "ax", t[t.xa = t.ax] = "xa", t[t["a+"] = R | I | A] = "a+", t[t["ax+"] = R | I | A | T] = "ax+", t[t["xa+"] = t["ax+"]] = "xa+"; }(a = e.FLAGS || (e.FLAGS = {})), e.flagsToNumber = it;
1483
- var ft = { encoding: "utf8" }, lt = st(ft), ht = ut(lt), pt = st({ flag: "r" }), dt = { encoding: "utf8", mode: 438, flag: a[a.w] }, yt = st(dt), gt = { encoding: "utf8", mode: 438, flag: a[a.a] }, bt = st(gt), mt = ut(bt), vt = st(ft), wt = ut(vt), _t = { mode: 511, recursive: !1 }, St = function (t) { return "number" == typeof t ? Object.assign({}, _t, { mode: t }) : Object.assign({}, _t, t); }, Et = { recursive: !1 }, Ot = function (t) { return Object.assign({}, Et, t); }, Rt = ut(st(ft)), At = st({ encoding: "utf8", withFileTypes: !1 }), Tt = ut(At), kt = { bigint: !1 }, It = function (t) { return void 0 === t && (t = {}), Object.assign({}, kt, t); }, jt = function (t, e) { return "function" == typeof t ? [It(), t] : [It(t), ct(e)]; };
1484
- function Nt(t) { if ("string" != typeof t && !l.Buffer.isBuffer(t)) {
1485
- try {
1486
- if (!(t instanceof n(8575).URL))
1487
- throw new TypeError(q);
1488
- }
1489
- catch (t) {
1490
- throw new TypeError(q);
1491
- }
1492
- t = function (t) { if ("" !== t.hostname)
1493
- throw new v.TypeError("ERR_INVALID_FILE_URL_HOST", p.default.platform); for (var e = t.pathname, n = 0; n < e.length; n++)
1494
- if ("%" === e[n]) {
1495
- var r = 32 | e.codePointAt(n + 2);
1496
- if ("2" === e[n + 1] && 102 === r)
1497
- throw new v.TypeError("ERR_INVALID_FILE_URL_PATH", "must not include encoded / characters");
1498
- } return decodeURIComponent(e); }(t);
1499
- } var e = String(t); return Mt(e), e; }
1500
- e.pathToFilename = Nt;
1501
- var Bt = function (t, e) { return void 0 === e && (e = p.default.cwd()), S(e, t); };
1502
- if (D) {
1503
- var Pt = Bt, Lt = n(4290).Z4;
1504
- Bt = function (t, e) { return Lt(Pt(t, e)); };
1505
- }
1506
- function xt(t, e) { var n = Bt(t, e).substr(1); return n ? n.split(F) : []; }
1507
- function Ft(t, e) { return void 0 === e && (e = m.ENCODING_UTF8), l.Buffer.isBuffer(t) ? t : t instanceof Uint8Array ? (0, l.bufferFrom)(t) : (0, l.bufferFrom)(String(t), e); }
1508
- function Ct(t, e) { return e && "buffer" !== e ? t.toString(e) : t; }
1509
- function Mt(t, e) { if (-1 !== ("" + t).indexOf("\0")) {
1510
- var n = new Error("Path must be a string without null bytes");
1511
- if (n.code = Y, "function" != typeof e)
1512
- throw n;
1513
- return p.default.nextTick(e, n), !1;
1514
- } return !0; }
1515
- function Ut(t, e) { var n = function (t, e) { return "number" == typeof t ? t : "string" == typeof t ? parseInt(t, 8) : e ? Ut(e) : void 0; }(t, e); if ("number" != typeof n || isNaN(n))
1516
- throw new TypeError(V); return n; }
1517
- function Dt(t) { return t >>> 0 === t; }
1518
- function qt(t) { if (!Dt(t))
1519
- throw TypeError(W); }
1520
- function Wt(t) { if ("string" == typeof t && +t == t)
1521
- return +t; if (t instanceof Date)
1522
- return t.getTime() / 1e3; if (isFinite(t))
1523
- return t < 0 ? Date.now() / 1e3 : t; throw new Error("Cannot parse time: " + t); }
1524
- function Vt(t) { if ("number" != typeof t)
1525
- throw TypeError(H); }
1526
- function Gt(t) { if ("number" != typeof t)
1527
- throw TypeError($); }
1528
- e.filenameToSteps = xt, e.pathToSteps = function (t) { return xt(Nt(t)); }, e.dataToStr = function (t, e) { return void 0 === e && (e = m.ENCODING_UTF8), l.Buffer.isBuffer(t) ? t.toString(e) : t instanceof Uint8Array ? (0, l.bufferFrom)(t).toString(e) : String(t); }, e.dataToBuffer = Ft, e.bufferToEncoding = Ct, e.toUnixTimestamp = Wt;
1529
- var Ht = function () { function t(t) { void 0 === t && (t = {}), this.ino = 0, this.inodes = {}, this.releasedInos = [], this.fds = {}, this.releasedFds = [], this.maxFiles = 1e4, this.openFiles = 0, this.promisesApi = (0, _.default)(this), this.statWatchers = {}, this.props = Object.assign({ Node: c.Node, Link: c.Link, File: c.File }, t); var e = this.createLink(); e.setNode(this.createNode(!0)); var n = this; this.StatWatcher = function (t) { function e() { return t.call(this, n) || this; } return o(e, t), e; }(zt); var r = Kt; this.ReadStream = function (t) { function e() { for (var e = [], r = 0; r < arguments.length; r++)
1530
- e[r] = arguments[r]; return t.apply(this, i([n], e, !1)) || this; } return o(e, t), e; }(r); var a = Xt; this.WriteStream = function (t) { function e() { for (var e = [], r = 0; r < arguments.length; r++)
1531
- e[r] = arguments[r]; return t.apply(this, i([n], e, !1)) || this; } return o(e, t), e; }(a), this.FSWatcher = function (t) { function e() { return t.call(this, n) || this; } return o(e, t), e; }(Zt), this.root = e; } return t.fromJSON = function (e, n) { var r = new t; return r.fromJSON(e, n), r; }, t.fromNestedJSON = function (e, n) { var r = new t; return r.fromNestedJSON(e, n), r; }, Object.defineProperty(t.prototype, "promises", { get: function () { if (null === this.promisesApi)
1532
- throw new Error("Promise is not supported in this environment."); return this.promisesApi; }, enumerable: !1, configurable: !0 }), t.prototype.createLink = function (t, e, n, r) { if (void 0 === n && (n = !1), !t)
1533
- return new this.props.Link(this, null, ""); if (!e)
1534
- throw new Error("createLink: name cannot be empty"); return t.createChild(e, this.createNode(n, r)); }, t.prototype.deleteLink = function (t) { var e = t.parent; return !!e && (e.deleteChild(t), !0); }, t.prototype.newInoNumber = function () { var t = this.releasedInos.pop(); return t || (this.ino = (this.ino + 1) % 4294967295, this.ino); }, t.prototype.newFdNumber = function () { var e = this.releasedFds.pop(); return "number" == typeof e ? e : t.fd--; }, t.prototype.createNode = function (t, e) { void 0 === t && (t = !1); var n = new this.props.Node(this.newInoNumber(), e); return t && n.setIsDirectory(), this.inodes[n.ino] = n, n; }, t.prototype.getNode = function (t) { return this.inodes[t]; }, t.prototype.deleteNode = function (t) { t.del(), delete this.inodes[t.ino], this.releasedInos.push(t.ino); }, t.prototype.genRndStr = function () { var t = (Math.random() + 1).toString(36).substr(2, 6); return 6 === t.length ? t : this.genRndStr(); }, t.prototype.getLink = function (t) { return this.root.walk(t); }, t.prototype.getLinkOrThrow = function (t, e) { var n = xt(t), r = this.getLink(n); if (!r)
1535
- throw ot(Y, e, t); return r; }, t.prototype.getResolvedLink = function (t) { for (var e = "string" == typeof t ? xt(t) : t, n = this.root, r = 0; r < e.length;) {
1536
- var o = e[r];
1537
- if (!(n = n.getChild(o)))
1538
- return null;
1539
- var i = n.getNode();
1540
- i.isSymlink() ? (e = i.symlink.concat(e.slice(r + 1)), n = this.root, r = 0) : r++;
1541
- } return n; }, t.prototype.getResolvedLinkOrThrow = function (t, e) { var n = this.getResolvedLink(t); if (!n)
1542
- throw ot(Y, e, t); return n; }, t.prototype.resolveSymlinks = function (t) { return this.getResolvedLink(t.steps.slice(1)); }, t.prototype.getLinkAsDirOrThrow = function (t, e) { var n = this.getLinkOrThrow(t, e); if (!n.getNode().isDirectory())
1543
- throw ot(X, e, t); return n; }, t.prototype.getLinkParent = function (t) { return this.root.walk(t, t.length - 1); }, t.prototype.getLinkParentAsDirOrThrow = function (t, e) { var n = t instanceof Array ? t : xt(t), r = this.getLinkParent(n); if (!r)
1544
- throw ot(Y, e, F + n.join(F)); if (!r.getNode().isDirectory())
1545
- throw ot(X, e, F + n.join(F)); return r; }, t.prototype.getFileByFd = function (t) { return this.fds[String(t)]; }, t.prototype.getFileByFdOrThrow = function (t, e) { if (!Dt(t))
1546
- throw TypeError(W); var n = this.getFileByFd(t); if (!n)
1547
- throw ot(z, e); return n; }, t.prototype.wrapAsync = function (t, e, n) { var r = this; ct(n), (0, h.default)((function () { var o; try {
1548
- o = t.apply(r, e);
1549
- }
1550
- catch (t) {
1551
- return void n(t);
1552
- } n(null, o); })); }, t.prototype._toJSON = function (t, e, n) { var r; void 0 === t && (t = this.root), void 0 === e && (e = {}); var o = !0, i = t.children; for (var a in t.getNode().isFile() && ((r = {})[t.getName()] = t.parent.getChild(t.getName()), i = r, t = t.parent), i) {
1553
- o = !1;
1554
- var s = t.getChild(a);
1555
- if (!s)
1556
- throw new Error("_toJSON: unexpected undefined");
1557
- var c = s.getNode();
1558
- if (c.isFile()) {
1559
- var u = s.getPath();
1560
- n && (u = C(n, u)), e[u] = c.getString();
1561
- }
1562
- else
1563
- c.isDirectory() && this._toJSON(s, e, n);
1564
- } var f = t.getPath(); return n && (f = C(n, f)), f && o && (e[f] = null), e; }, t.prototype.toJSON = function (t, e, n) { void 0 === e && (e = {}), void 0 === n && (n = !1); var r = []; if (t) {
1565
- t instanceof Array || (t = [t]);
1566
- for (var o = 0, i = t; o < i.length; o++) {
1567
- var a = Nt(i[o]);
1568
- (u = this.getResolvedLink(a)) && r.push(u);
1569
- }
1570
- }
1571
- else
1572
- r.push(this.root); if (!r.length)
1573
- return e; for (var s = 0, c = r; s < c.length; s++) {
1574
- var u = c[s];
1575
- this._toJSON(u, e, n ? u.getPath() : "");
1576
- } return e; }, t.prototype.fromJSON = function (t, e) { for (var n in void 0 === e && (e = p.default.cwd()), t) {
1577
- var r = t[n];
1578
- if (n = Bt(n, e), "string" == typeof r) {
1579
- var o = U(n);
1580
- this.mkdirpBase(o, 511), this.writeFileSync(n, r);
1581
- }
1582
- else
1583
- this.mkdirpBase(n, 511);
1584
- } }, t.prototype.fromNestedJSON = function (t, e) { var n; this.fromJSON((n = {}, function t(e, r) { for (var o in r) {
1585
- var i = r[o], a = M(e, o);
1586
- "string" == typeof i ? n[a] = i : "object" == typeof i && null !== i && Object.keys(i).length > 0 ? t(a, i) : n[a] = null;
1587
- } }("", t), n), e); }, t.prototype.reset = function () { this.ino = 0, this.inodes = {}, this.releasedInos = [], this.fds = {}, this.releasedFds = [], this.openFiles = 0, this.root = this.createLink(), this.root.setNode(this.createNode(!0)); }, t.prototype.mountSync = function (t, e) { this.fromJSON(e, t); }, t.prototype.openLink = function (t, e, n) { if (void 0 === n && (n = !0), this.openFiles >= this.maxFiles)
1588
- throw ot(Z, "open", t.getPath()); var r = t; if (n && (r = this.resolveSymlinks(t)), !r)
1589
- throw ot(Y, "open", t.getPath()); var o = r.getNode(); if (o.isDirectory()) {
1590
- if ((e & (E | R | O)) !== E)
1591
- throw ot(tt, "open", t.getPath());
1592
- }
1593
- else if (e & N)
1594
- throw ot(X, "open", t.getPath()); if (!(e & O || o.canRead()))
1595
- throw ot(Q, "open", t.getPath()); var i = new this.props.File(t, o, e, this.newFdNumber()); return this.fds[i.fd] = i, this.openFiles++, e & k && i.truncate(), i; }, t.prototype.openFile = function (t, e, n, r) { void 0 === r && (r = !0); var o = xt(t), i = r ? this.getResolvedLink(o) : this.getLink(o); if (i && e & T)
1596
- throw ot(J, "open", t); if (!i && e & A) {
1597
- var a = this.getResolvedLink(o.slice(0, o.length - 1));
1598
- if (!a)
1599
- throw ot(Y, "open", F + o.join(F));
1600
- e & A && "number" == typeof n && (i = this.createLink(a, o[o.length - 1], !1, n));
1601
- } if (i)
1602
- return this.openLink(i, e, r); throw ot(Y, "open", t); }, t.prototype.openBase = function (t, e, n, r) { void 0 === r && (r = !0); var o = this.openFile(t, e, n, r); if (!o)
1603
- throw ot(Y, "open", t); return o.fd; }, t.prototype.openSync = function (t, e, n) { void 0 === n && (n = 438); var r = Ut(n), o = Nt(t), i = it(e); return this.openBase(o, i, r); }, t.prototype.open = function (t, e, n, r) { var o = n, i = r; "function" == typeof n && (o = 438, i = n); var a = Ut(o = o || 438), s = Nt(t), c = it(e); this.wrapAsync(this.openBase, [s, c, a], i); }, t.prototype.closeFile = function (t) { this.fds[t.fd] && (this.openFiles--, delete this.fds[t.fd], this.releasedFds.push(t.fd)); }, t.prototype.closeSync = function (t) { qt(t); var e = this.getFileByFdOrThrow(t, "close"); this.closeFile(e); }, t.prototype.close = function (t, e) { qt(t), this.wrapAsync(this.closeSync, [t], e); }, t.prototype.openFileOrGetById = function (t, e, n) { if ("number" == typeof t) {
1604
- var r = this.fds[t];
1605
- if (!r)
1606
- throw ot(Y);
1607
- return r;
1608
- } return this.openFile(Nt(t), e, n); }, t.prototype.readBase = function (t, e, n, r, o) { return this.getFileByFdOrThrow(t).read(e, Number(n), Number(r), o); }, t.prototype.readSync = function (t, e, n, r, o) { return qt(t), this.readBase(t, e, n, r, o); }, t.prototype.read = function (t, e, n, r, o, i) { var a = this; if (ct(i), 0 === r)
1609
- return p.default.nextTick((function () { i && i(null, 0, e); })); (0, h.default)((function () { try {
1610
- var s = a.readBase(t, e, n, r, o);
1611
- i(null, s, e);
1612
- }
1613
- catch (t) {
1614
- i(t);
1615
- } })); }, t.prototype.readFileBase = function (t, e, n) { var r, o, i = "number" == typeof t && Dt(t); if (i)
1616
- o = t;
1617
- else {
1618
- var a = xt(Nt(t)), s = this.getResolvedLink(a);
1619
- if (s)
1620
- if (s.getNode().isDirectory())
1621
- throw ot(tt, "open", s.getPath());
1622
- o = this.openSync(t, e);
1623
- } try {
1624
- r = Ct(this.getFileByFdOrThrow(o).getBuffer(), n);
1625
- }
1626
- finally {
1627
- i || this.closeSync(o);
1628
- } return r; }, t.prototype.readFileSync = function (t, e) { var n = pt(e), r = it(n.flag); return this.readFileBase(t, r, n.encoding); }, t.prototype.readFile = function (t, e, n) { var r = ut(pt)(e, n), o = r[0], i = r[1], a = it(o.flag); this.wrapAsync(this.readFileBase, [t, a, o.encoding], i); }, t.prototype.writeBase = function (t, e, n, r, o) { return this.getFileByFdOrThrow(t, "write").write(e, n, r, o); }, t.prototype.writeSync = function (t, e, n, r, o) { var i, a, s, c; qt(t); var u = "string" != typeof e; u ? (a = 0 | (n || 0), s = r, c = o) : (c = n, i = r); var f = Ft(e, i); return u ? void 0 === s && (s = f.length) : (a = 0, s = f.length), this.writeBase(t, f, a, s, c); }, t.prototype.write = function (t, e, n, r, o, i) { var a, s, c, u, f, l = this; qt(t); var p = typeof e, d = typeof n, y = typeof r, g = typeof o; "string" !== p ? "function" === d ? f = n : "function" === y ? (a = 0 | n, f = r) : "function" === g ? (a = 0 | n, s = r, f = o) : (a = 0 | n, s = r, c = o, f = i) : "function" === d ? f = n : "function" === y ? (c = n, f = r) : "function" === g && (c = n, u = r, f = o); var b = Ft(e, u); "string" !== p ? void 0 === s && (s = b.length) : (a = 0, s = b.length); var m = ct(f); (0, h.default)((function () { try {
1629
- var n = l.writeBase(t, b, a, s, c);
1630
- m(null, n, "string" !== p ? b : e);
1631
- }
1632
- catch (t) {
1633
- m(t);
1634
- } })); }, t.prototype.writeFileBase = function (t, e, n, r) { var o, i = "number" == typeof t; o = i ? t : this.openBase(Nt(t), n, r); var a = 0, s = e.length, c = n & I ? void 0 : 0; try {
1635
- for (; s > 0;) {
1636
- var u = this.writeSync(o, e, a, s, c);
1637
- a += u, s -= u, void 0 !== c && (c += u);
1638
- }
1639
- }
1640
- finally {
1641
- i || this.closeSync(o);
1642
- } }, t.prototype.writeFileSync = function (t, e, n) { var r = yt(n), o = it(r.flag), i = Ut(r.mode), a = Ft(e, r.encoding); this.writeFileBase(t, a, o, i); }, t.prototype.writeFile = function (t, e, n, r) { var o = n, i = r; "function" == typeof n && (o = dt, i = n); var a = ct(i), s = yt(o), c = it(s.flag), u = Ut(s.mode), f = Ft(e, s.encoding); this.wrapAsync(this.writeFileBase, [t, f, c, u], a); }, t.prototype.linkBase = function (t, e) { var n = xt(t), r = this.getLink(n); if (!r)
1643
- throw ot(Y, "link", t, e); var o = xt(e), i = this.getLinkParent(o); if (!i)
1644
- throw ot(Y, "link", t, e); var a = o[o.length - 1]; if (i.getChild(a))
1645
- throw ot(J, "link", t, e); var s = r.getNode(); s.nlink++, i.createChild(a, s); }, t.prototype.copyFileBase = function (t, e, n) { var r = this.readFileSync(t); if (n & P && this.existsSync(e))
1646
- throw ot(J, "copyFile", t, e); if (n & L)
1647
- throw ot(nt, "copyFile", t, e); this.writeFileBase(e, r, a.w, 438); }, t.prototype.copyFileSync = function (t, e, n) { var r = Nt(t), o = Nt(e); return this.copyFileBase(r, o, 0 | (n || 0)); }, t.prototype.copyFile = function (t, e, n, r) { var o, i, a = Nt(t), s = Nt(e); "function" == typeof n ? (o = 0, i = n) : (o = n, i = r), ct(i), this.wrapAsync(this.copyFileBase, [a, s, o], i); }, t.prototype.linkSync = function (t, e) { var n = Nt(t), r = Nt(e); this.linkBase(n, r); }, t.prototype.link = function (t, e, n) { var r = Nt(t), o = Nt(e); this.wrapAsync(this.linkBase, [r, o], n); }, t.prototype.unlinkBase = function (t) { var e = xt(t), n = this.getLink(e); if (!n)
1648
- throw ot(Y, "unlink", t); if (n.length)
1649
- throw Error("Dir not empty..."); this.deleteLink(n); var r = n.getNode(); r.nlink--, r.nlink <= 0 && this.deleteNode(r); }, t.prototype.unlinkSync = function (t) { var e = Nt(t); this.unlinkBase(e); }, t.prototype.unlink = function (t, e) { var n = Nt(t); this.wrapAsync(this.unlinkBase, [n], e); }, t.prototype.symlinkBase = function (t, e) { var n = xt(e), r = this.getLinkParent(n); if (!r)
1650
- throw ot(Y, "symlink", t, e); var o = n[n.length - 1]; if (r.getChild(o))
1651
- throw ot(J, "symlink", t, e); var i = r.createChild(o); return i.getNode().makeSymlink(xt(t)), i; }, t.prototype.symlinkSync = function (t, e, n) { var r = Nt(t), o = Nt(e); this.symlinkBase(r, o); }, t.prototype.symlink = function (t, e, n, r) { var o = ct("function" == typeof n ? n : r), i = Nt(t), a = Nt(e); this.wrapAsync(this.symlinkBase, [i, a], o); }, t.prototype.realpathBase = function (t, e) { var n = xt(t), r = this.getResolvedLink(n); if (!r)
1652
- throw ot(Y, "realpath", t); return (0, m.strToEncoding)(r.getPath(), e); }, t.prototype.realpathSync = function (t, e) { return this.realpathBase(Nt(t), vt(e).encoding); }, t.prototype.realpath = function (t, e, n) { var r = wt(e, n), o = r[0], i = r[1], a = Nt(t); this.wrapAsync(this.realpathBase, [a, o.encoding], i); }, t.prototype.lstatBase = function (t, e, n) { void 0 === e && (e = !1), void 0 === n && (n = !1); var r = this.getLink(xt(t)); if (r)
1653
- return u.default.build(r.getNode(), e); if (n)
1654
- throw ot(Y, "lstat", t); }, t.prototype.lstatSync = function (t, e) { var n = It(e), r = n.throwIfNoEntry, o = void 0 === r || r, i = n.bigint, a = void 0 !== i && i; return this.lstatBase(Nt(t), a, o); }, t.prototype.lstat = function (t, e, n) { var r = jt(e, n), o = r[0], i = o.throwIfNoEntry, a = void 0 === i || i, s = o.bigint, c = void 0 !== s && s, u = r[1]; this.wrapAsync(this.lstatBase, [Nt(t), c, a], u); }, t.prototype.statBase = function (t, e, n) { void 0 === e && (e = !1), void 0 === n && (n = !0); var r = this.getResolvedLink(xt(t)); if (r)
1655
- return u.default.build(r.getNode(), e); if (n)
1656
- throw ot(Y, "stat", t); }, t.prototype.statSync = function (t, e) { var n = It(e), r = n.bigint, o = void 0 === r || r, i = n.throwIfNoEntry, a = void 0 === i || i; return this.statBase(Nt(t), o, a); }, t.prototype.stat = function (t, e, n) { var r = jt(e, n), o = r[0], i = o.bigint, a = void 0 !== i && i, s = o.throwIfNoEntry, c = void 0 === s || s, u = r[1]; this.wrapAsync(this.statBase, [Nt(t), a, c], u); }, t.prototype.fstatBase = function (t, e) { void 0 === e && (e = !1); var n = this.getFileByFd(t); if (!n)
1657
- throw ot(z, "fstat"); return u.default.build(n.node, e); }, t.prototype.fstatSync = function (t, e) { return this.fstatBase(t, It(e).bigint); }, t.prototype.fstat = function (t, e, n) { var r = jt(e, n), o = r[0], i = r[1]; this.wrapAsync(this.fstatBase, [t, o.bigint], i); }, t.prototype.renameBase = function (t, e) { var n = this.getLink(xt(t)); if (!n)
1658
- throw ot(Y, "rename", t, e); var r = xt(e), o = this.getLinkParent(r); if (!o)
1659
- throw ot(Y, "rename", t, e); var a = n.parent; a && a.deleteChild(n); var s = r[r.length - 1]; n.name = s, n.steps = i(i([], o.steps, !0), [s], !1), o.setChild(n.getName(), n); }, t.prototype.renameSync = function (t, e) { var n = Nt(t), r = Nt(e); this.renameBase(n, r); }, t.prototype.rename = function (t, e, n) { var r = Nt(t), o = Nt(e); this.wrapAsync(this.renameBase, [r, o], n); }, t.prototype.existsBase = function (t) { return !!this.statBase(t); }, t.prototype.existsSync = function (t) { try {
1660
- return this.existsBase(Nt(t));
1661
- }
1662
- catch (t) {
1663
- return !1;
1664
- } }, t.prototype.exists = function (t, e) { var n = this, r = Nt(t); if ("function" != typeof e)
1665
- throw Error(G); (0, h.default)((function () { try {
1666
- e(n.existsBase(r));
1667
- }
1668
- catch (t) {
1669
- e(!1);
1670
- } })); }, t.prototype.accessBase = function (t, e) { this.getLinkOrThrow(t, "access"); }, t.prototype.accessSync = function (t, e) { void 0 === e && (e = B); var n = Nt(t); e |= 0, this.accessBase(n, e); }, t.prototype.access = function (t, e, n) { var r, o = B; "function" != typeof e ? (o = 0 | e, r = ct(n)) : r = e; var i = Nt(t); this.wrapAsync(this.accessBase, [i, o], r); }, t.prototype.appendFileSync = function (t, e, n) { void 0 === n && (n = gt); var r = bt(n); r.flag && !Dt(t) || (r.flag = "a"), this.writeFileSync(t, e, r); }, t.prototype.appendFile = function (t, e, n, r) { var o = mt(n, r), i = o[0], a = o[1]; i.flag && !Dt(t) || (i.flag = "a"), this.writeFile(t, e, i, a); }, t.prototype.readdirBase = function (t, e) { var n = xt(t), r = this.getResolvedLink(n); if (!r)
1671
- throw ot(Y, "readdir", t); if (!r.getNode().isDirectory())
1672
- throw ot(X, "scandir", t); if (e.withFileTypes) {
1673
- var o = [];
1674
- for (var i in r.children) {
1675
- var a = r.getChild(i);
1676
- a && o.push(f.default.build(a, e.encoding));
1677
- }
1678
- return D || "buffer" === e.encoding || o.sort((function (t, e) { return t.name < e.name ? -1 : t.name > e.name ? 1 : 0; })), o;
1679
- } var s = []; for (var c in r.children)
1680
- s.push((0, m.strToEncoding)(c, e.encoding)); return D || "buffer" === e.encoding || s.sort(), s; }, t.prototype.readdirSync = function (t, e) { var n = At(e), r = Nt(t); return this.readdirBase(r, n); }, t.prototype.readdir = function (t, e, n) { var r = Tt(e, n), o = r[0], i = r[1], a = Nt(t); this.wrapAsync(this.readdirBase, [a, o], i); }, t.prototype.readlinkBase = function (t, e) { var n = this.getLinkOrThrow(t, "readlink").getNode(); if (!n.isSymlink())
1681
- throw ot(K, "readlink", t); var r = F + n.symlink.join(F); return (0, m.strToEncoding)(r, e); }, t.prototype.readlinkSync = function (t, e) { var n = lt(e), r = Nt(t); return this.readlinkBase(r, n.encoding); }, t.prototype.readlink = function (t, e, n) { var r = ht(e, n), o = r[0], i = r[1], a = Nt(t); this.wrapAsync(this.readlinkBase, [a, o.encoding], i); }, t.prototype.fsyncBase = function (t) { this.getFileByFdOrThrow(t, "fsync"); }, t.prototype.fsyncSync = function (t) { this.fsyncBase(t); }, t.prototype.fsync = function (t, e) { this.wrapAsync(this.fsyncBase, [t], e); }, t.prototype.fdatasyncBase = function (t) { this.getFileByFdOrThrow(t, "fdatasync"); }, t.prototype.fdatasyncSync = function (t) { this.fdatasyncBase(t); }, t.prototype.fdatasync = function (t, e) { this.wrapAsync(this.fdatasyncBase, [t], e); }, t.prototype.ftruncateBase = function (t, e) { this.getFileByFdOrThrow(t, "ftruncate").truncate(e); }, t.prototype.ftruncateSync = function (t, e) { this.ftruncateBase(t, e); }, t.prototype.ftruncate = function (t, e, n) { var r = "number" == typeof e ? e : 0, o = ct("number" == typeof e ? n : e); this.wrapAsync(this.ftruncateBase, [t, r], o); }, t.prototype.truncateBase = function (t, e) { var n = this.openSync(t, "r+"); try {
1682
- this.ftruncateSync(n, e);
1683
- }
1684
- finally {
1685
- this.closeSync(n);
1686
- } }, t.prototype.truncateSync = function (t, e) { if (Dt(t))
1687
- return this.ftruncateSync(t, e); this.truncateBase(t, e); }, t.prototype.truncate = function (t, e, n) { var r = "number" == typeof e ? e : 0, o = ct("number" == typeof e ? n : e); if (Dt(t))
1688
- return this.ftruncate(t, r, o); this.wrapAsync(this.truncateBase, [t, r], o); }, t.prototype.futimesBase = function (t, e, n) { var r = this.getFileByFdOrThrow(t, "futimes").node; r.atime = new Date(1e3 * e), r.mtime = new Date(1e3 * n); }, t.prototype.futimesSync = function (t, e, n) { this.futimesBase(t, Wt(e), Wt(n)); }, t.prototype.futimes = function (t, e, n, r) { this.wrapAsync(this.futimesBase, [t, Wt(e), Wt(n)], r); }, t.prototype.utimesBase = function (t, e, n) { var r = this.openSync(t, "r+"); try {
1689
- this.futimesBase(r, e, n);
1690
- }
1691
- finally {
1692
- this.closeSync(r);
1693
- } }, t.prototype.utimesSync = function (t, e, n) { this.utimesBase(Nt(t), Wt(e), Wt(n)); }, t.prototype.utimes = function (t, e, n, r) { this.wrapAsync(this.utimesBase, [Nt(t), Wt(e), Wt(n)], r); }, t.prototype.mkdirBase = function (t, e) { var n = xt(t); if (!n.length)
1694
- throw ot(J, "mkdir", t); var r = this.getLinkParentAsDirOrThrow(t, "mkdir"), o = n[n.length - 1]; if (r.getChild(o))
1695
- throw ot(J, "mkdir", t); r.createChild(o, this.createNode(!0, e)); }, t.prototype.mkdirpBase = function (t, e) { for (var n = xt(t), r = this.root, o = 0; o < n.length; o++) {
1696
- var i = n[o];
1697
- if (!r.getNode().isDirectory())
1698
- throw ot(X, "mkdir", r.getPath());
1699
- var a = r.getChild(i);
1700
- if (a) {
1701
- if (!a.getNode().isDirectory())
1702
- throw ot(X, "mkdir", a.getPath());
1703
- r = a;
1704
- }
1705
- else
1706
- r = r.createChild(i, this.createNode(!0, e));
1707
- } }, t.prototype.mkdirSync = function (t, e) { var n = St(e), r = Ut(n.mode, 511), o = Nt(t); n.recursive ? this.mkdirpBase(o, r) : this.mkdirBase(o, r); }, t.prototype.mkdir = function (t, e, n) { var r = St(e), o = ct("function" == typeof e ? e : n), i = Ut(r.mode, 511), a = Nt(t); r.recursive ? this.wrapAsync(this.mkdirpBase, [a, i], o) : this.wrapAsync(this.mkdirBase, [a, i], o); }, t.prototype.mkdirpSync = function (t, e) { this.mkdirSync(t, { mode: e, recursive: !0 }); }, t.prototype.mkdirp = function (t, e, n) { var r = "function" == typeof e ? void 0 : e, o = ct("function" == typeof e ? e : n); this.mkdir(t, { mode: r, recursive: !0 }, o); }, t.prototype.mkdtempBase = function (t, e, n) { void 0 === n && (n = 5); var r = t + this.genRndStr(); try {
1708
- return this.mkdirBase(r, 511), (0, m.strToEncoding)(r, e);
1709
- }
1710
- catch (r) {
1711
- if (r.code === J) {
1712
- if (n > 1)
1713
- return this.mkdtempBase(t, e, n - 1);
1714
- throw Error("Could not create temp dir.");
1715
- }
1716
- throw r;
1717
- } }, t.prototype.mkdtempSync = function (t, e) { var n = lt(e).encoding; if (!t || "string" != typeof t)
1718
- throw new TypeError("filename prefix is required"); return Mt(t), this.mkdtempBase(t, n); }, t.prototype.mkdtemp = function (t, e, n) { var r = ht(e, n), o = r[0].encoding, i = r[1]; if (!t || "string" != typeof t)
1719
- throw new TypeError("filename prefix is required"); Mt(t) && this.wrapAsync(this.mkdtempBase, [t, o], i); }, t.prototype.rmdirBase = function (t, e) { var n = Ot(e), r = this.getLinkAsDirOrThrow(t, "rmdir"); if (r.length && !n.recursive)
1720
- throw ot(et, "rmdir", t); this.deleteLink(r); }, t.prototype.rmdirSync = function (t, e) { this.rmdirBase(Nt(t), e); }, t.prototype.rmdir = function (t, e, n) { var r = Ot(e), o = ct("function" == typeof e ? e : n); this.wrapAsync(this.rmdirBase, [Nt(t), r], o); }, t.prototype.rmBase = function (t, e) { void 0 === e && (e = {}); var n = this.getResolvedLink(t); if (n) {
1721
- if (n.getNode().isDirectory() && !e.recursive)
1722
- throw ot(rt, "rm", t);
1723
- this.deleteLink(n);
1724
- }
1725
- else if (!e.force)
1726
- throw ot(Y, "stat", t); }, t.prototype.rmSync = function (t, e) { this.rmBase(Nt(t), e); }, t.prototype.rm = function (t, e, n) { var r = Rt(e, n), o = r[0], i = r[1]; this.wrapAsync(this.rmBase, [Nt(t), o], i); }, t.prototype.fchmodBase = function (t, e) { this.getFileByFdOrThrow(t, "fchmod").chmod(e); }, t.prototype.fchmodSync = function (t, e) { this.fchmodBase(t, Ut(e)); }, t.prototype.fchmod = function (t, e, n) { this.wrapAsync(this.fchmodBase, [t, Ut(e)], n); }, t.prototype.chmodBase = function (t, e) { var n = this.openSync(t, "r+"); try {
1727
- this.fchmodBase(n, e);
1728
- }
1729
- finally {
1730
- this.closeSync(n);
1731
- } }, t.prototype.chmodSync = function (t, e) { var n = Ut(e), r = Nt(t); this.chmodBase(r, n); }, t.prototype.chmod = function (t, e, n) { var r = Ut(e), o = Nt(t); this.wrapAsync(this.chmodBase, [o, r], n); }, t.prototype.lchmodBase = function (t, e) { var n = this.openBase(t, R, 0, !1); try {
1732
- this.fchmodBase(n, e);
1733
- }
1734
- finally {
1735
- this.closeSync(n);
1736
- } }, t.prototype.lchmodSync = function (t, e) { var n = Ut(e), r = Nt(t); this.lchmodBase(r, n); }, t.prototype.lchmod = function (t, e, n) { var r = Ut(e), o = Nt(t); this.wrapAsync(this.lchmodBase, [o, r], n); }, t.prototype.fchownBase = function (t, e, n) { this.getFileByFdOrThrow(t, "fchown").chown(e, n); }, t.prototype.fchownSync = function (t, e, n) { Vt(e), Gt(n), this.fchownBase(t, e, n); }, t.prototype.fchown = function (t, e, n, r) { Vt(e), Gt(n), this.wrapAsync(this.fchownBase, [t, e, n], r); }, t.prototype.chownBase = function (t, e, n) { this.getResolvedLinkOrThrow(t, "chown").getNode().chown(e, n); }, t.prototype.chownSync = function (t, e, n) { Vt(e), Gt(n), this.chownBase(Nt(t), e, n); }, t.prototype.chown = function (t, e, n, r) { Vt(e), Gt(n), this.wrapAsync(this.chownBase, [Nt(t), e, n], r); }, t.prototype.lchownBase = function (t, e, n) { this.getLinkOrThrow(t, "lchown").getNode().chown(e, n); }, t.prototype.lchownSync = function (t, e, n) { Vt(e), Gt(n), this.lchownBase(Nt(t), e, n); }, t.prototype.lchown = function (t, e, n, r) { Vt(e), Gt(n), this.wrapAsync(this.lchownBase, [Nt(t), e, n], r); }, t.prototype.watchFile = function (t, e, n) { var r = Nt(t), o = e, i = n; if ("function" == typeof o && (i = e, o = null), "function" != typeof i)
1737
- throw Error('"watchFile()" requires a listener function'); var a = 5007, s = !0; o && "object" == typeof o && ("number" == typeof o.interval && (a = o.interval), "boolean" == typeof o.persistent && (s = o.persistent)); var c = this.statWatchers[r]; return c || ((c = new this.StatWatcher).start(r, s, a), this.statWatchers[r] = c), c.addListener("change", i), c; }, t.prototype.unwatchFile = function (t, e) { var n = Nt(t), r = this.statWatchers[n]; r && ("function" == typeof e ? r.removeListener("change", e) : r.removeAllListeners("change"), 0 === r.listenerCount("change") && (r.stop(), delete this.statWatchers[n])); }, t.prototype.createReadStream = function (t, e) { return new this.ReadStream(t, e); }, t.prototype.createWriteStream = function (t, e) { return new this.WriteStream(t, e); }, t.prototype.watch = function (t, e, n) { var r = Nt(t), o = e; "function" == typeof e && (n = e, o = null); var i = lt(o), a = i.persistent, s = i.recursive, c = i.encoding; void 0 === a && (a = !0), void 0 === s && (s = !1); var u = new this.FSWatcher; return u.start(r, a, s, c), n && u.addListener("change", n), u; }, t.fd = 2147483647, t; }();
1738
- function $t(t) { t.emit("stop"); }
1739
- e.Volume = Ht;
1740
- var Yt, zt = function (t) { function e(e) { var n = t.call(this) || this; return n.onInterval = function () { try {
1741
- var t = n.vol.statSync(n.filename);
1742
- n.hasChanged(t) && (n.emit("change", t, n.prev), n.prev = t);
1743
- }
1744
- finally {
1745
- n.loop();
1746
- } }, n.vol = e, n; } return o(e, t), e.prototype.loop = function () { this.timeoutRef = this.setTimeout(this.onInterval, this.interval); }, e.prototype.hasChanged = function (t) { return t.mtimeMs > this.prev.mtimeMs || t.nlink !== this.prev.nlink; }, e.prototype.start = function (t, e, n) { void 0 === e && (e = !0), void 0 === n && (n = 5007), this.filename = Nt(t), this.setTimeout = e ? setTimeout.bind("undefined" != typeof globalThis ? globalThis : global) : d.default, this.interval = n, this.prev = this.vol.statSync(this.filename), this.loop(); }, e.prototype.stop = function () { clearTimeout(this.timeoutRef), p.default.nextTick($t, this); }, e; }(b.EventEmitter);
1747
- function Kt(t, e, n) { if (!(this instanceof Kt))
1748
- return new Kt(t, e, n); if (this._vol = t, void 0 === (n = Object.assign({}, at(n, {}))).highWaterMark && (n.highWaterMark = 65536), y.Readable.call(this, n), this.path = Nt(e), this.fd = void 0 === n.fd ? null : n.fd, this.flags = void 0 === n.flags ? "r" : n.flags, this.mode = void 0 === n.mode ? 438 : n.mode, this.start = n.start, this.end = n.end, this.autoClose = void 0 === n.autoClose || n.autoClose, this.pos = void 0, this.bytesRead = 0, void 0 !== this.start) {
1749
- if ("number" != typeof this.start)
1750
- throw new TypeError('"start" option must be a Number');
1751
- if (void 0 === this.end)
1752
- this.end = 1 / 0;
1753
- else if ("number" != typeof this.end)
1754
- throw new TypeError('"end" option must be a Number');
1755
- if (this.start > this.end)
1756
- throw new Error('"start" option must be <= "end" option');
1757
- this.pos = this.start;
1758
- } "number" != typeof this.fd && this.open(), this.on("end", (function () { this.autoClose && this.destroy && this.destroy(); })); }
1759
- function Jt(t) { this.close(); }
1760
- function Xt(t, e, n) { if (!(this instanceof Xt))
1761
- return new Xt(t, e, n); if (this._vol = t, n = Object.assign({}, at(n, {})), y.Writable.call(this, n), this.path = Nt(e), this.fd = void 0 === n.fd ? null : n.fd, this.flags = void 0 === n.flags ? "w" : n.flags, this.mode = void 0 === n.mode ? 438 : n.mode, this.start = n.start, this.autoClose = void 0 === n.autoClose || !!n.autoClose, this.pos = void 0, this.bytesWritten = 0, void 0 !== this.start) {
1762
- if ("number" != typeof this.start)
1763
- throw new TypeError('"start" option must be a Number');
1764
- if (this.start < 0)
1765
- throw new Error('"start" must be >= zero');
1766
- this.pos = this.start;
1767
- } n.encoding && this.setDefaultEncoding(n.encoding), "number" != typeof this.fd && this.open(), this.once("finish", (function () { this.autoClose && this.close(); })); }
1768
- e.StatWatcher = zt, w.inherits(Kt, y.Readable), e.ReadStream = Kt, Kt.prototype.open = function () { var t = this; this._vol.open(this.path, this.flags, this.mode, (function (e, n) { if (e)
1769
- return t.autoClose && t.destroy && t.destroy(), void t.emit("error", e); t.fd = n, t.emit("open", n), t.read(); })); }, Kt.prototype._read = function (t) { if ("number" != typeof this.fd)
1770
- return this.once("open", (function () { this._read(t); })); if (!this.destroyed) {
1771
- var e;
1772
- (!Yt || Yt.length - Yt.used < 128) && (e = this._readableState.highWaterMark, (Yt = (0, l.bufferAllocUnsafe)(e)).used = 0);
1773
- var n = Yt, r = Math.min(Yt.length - Yt.used, t), o = Yt.used;
1774
- if (void 0 !== this.pos && (r = Math.min(this.end - this.pos + 1, r)), r <= 0)
1775
- return this.push(null);
1776
- var i = this;
1777
- this._vol.read(this.fd, Yt, Yt.used, r, this.pos, (function (t, e) { if (t)
1778
- i.autoClose && i.destroy && i.destroy(), i.emit("error", t);
1779
- else {
1780
- var r = null;
1781
- e > 0 && (i.bytesRead += e, r = n.slice(o, o + e)), i.push(r);
1782
- } })), void 0 !== this.pos && (this.pos += r), Yt.used += r;
1783
- } }, Kt.prototype._destroy = function (t, e) { this.close((function (n) { e(t || n); })); }, Kt.prototype.close = function (t) { var e, n = this; if (t && this.once("close", t), this.closed || "number" != typeof this.fd)
1784
- return "number" != typeof this.fd ? void this.once("open", Jt) : p.default.nextTick((function () { return n.emit("close"); })); "boolean" == typeof (null === (e = this._readableState) || void 0 === e ? void 0 : e.closed) ? this._readableState.closed = !0 : this.closed = !0, this._vol.close(this.fd, (function (t) { t ? n.emit("error", t) : n.emit("close"); })), this.fd = null; }, w.inherits(Xt, y.Writable), e.WriteStream = Xt, Xt.prototype.open = function () { this._vol.open(this.path, this.flags, this.mode, function (t, e) { if (t)
1785
- return this.autoClose && this.destroy && this.destroy(), void this.emit("error", t); this.fd = e, this.emit("open", e); }.bind(this)); }, Xt.prototype._write = function (t, e, n) { if (!(t instanceof l.Buffer || t instanceof Uint8Array))
1786
- return this.emit("error", new Error("Invalid data")); if ("number" != typeof this.fd)
1787
- return this.once("open", (function () { this._write(t, e, n); })); var r = this; this._vol.write(this.fd, t, 0, t.length, this.pos, (function (t, e) { if (t)
1788
- return r.autoClose && r.destroy && r.destroy(), n(t); r.bytesWritten += e, n(); })), void 0 !== this.pos && (this.pos += t.length); }, Xt.prototype._writev = function (t, e) { if ("number" != typeof this.fd)
1789
- return this.once("open", (function () { this._writev(t, e); })); for (var n = this, r = t.length, o = new Array(r), i = 0, a = 0; a < r; a++) {
1790
- var s = t[a].chunk;
1791
- o[a] = s, i += s.length;
1792
- } var c = l.Buffer.concat(o); this._vol.write(this.fd, c, 0, c.length, this.pos, (function (t, r) { if (t)
1793
- return n.destroy && n.destroy(), e(t); n.bytesWritten += r, e(); })), void 0 !== this.pos && (this.pos += i); }, Xt.prototype.close = function (t) { var e, n = this; if (t && this.once("close", t), this.closed || "number" != typeof this.fd)
1794
- return "number" != typeof this.fd ? void this.once("open", Jt) : p.default.nextTick((function () { return n.emit("close"); })); "boolean" == typeof (null === (e = this._writableState) || void 0 === e ? void 0 : e.closed) ? this._writableState.closed = !0 : this.closed = !0, this._vol.close(this.fd, (function (t) { t ? n.emit("error", t) : n.emit("close"); })), this.fd = null; }, Xt.prototype._destroy = Kt.prototype._destroy, Xt.prototype.destroySoon = Xt.prototype.end;
1795
- var Zt = function (t) { function e(e) { var n = t.call(this) || this; return n._filename = "", n._filenameEncoded = "", n._recursive = !1, n._encoding = m.ENCODING_UTF8, n._onNodeChange = function () { n._emit("change"); }, n._onParentChild = function (t) { t.getName() === n._getName() && n._emit("rename"); }, n._emit = function (t) { n.emit("change", t, n._filenameEncoded); }, n._persist = function () { n._timer = setTimeout(n._persist, 1e6); }, n._vol = e, n; } return o(e, t), e.prototype._getName = function () { return this._steps[this._steps.length - 1]; }, e.prototype.start = function (t, e, n, r) { void 0 === e && (e = !0), void 0 === n && (n = !1), void 0 === r && (r = m.ENCODING_UTF8), this._filename = Nt(t), this._steps = xt(this._filename), this._filenameEncoded = (0, m.strToEncoding)(this._filename), this._recursive = n, this._encoding = r; try {
1796
- this._link = this._vol.getLinkOrThrow(this._filename, "FSWatcher");
1797
- }
1798
- catch (t) {
1799
- var o = new Error("watch ".concat(this._filename, " ").concat(t.code));
1800
- throw o.code = t.code, o.errno = t.code, o;
1801
- } this._link.getNode().on("change", this._onNodeChange), this._link.on("child:add", this._onNodeChange), this._link.on("child:delete", this._onNodeChange); var i = this._link.parent; i && (i.setMaxListeners(i.getMaxListeners() + 1), i.on("child:delete", this._onParentChild)), e && this._persist(); }, e.prototype.close = function () { clearTimeout(this._timer), this._link.getNode().removeListener("change", this._onNodeChange); var t = this._link.parent; t && t.removeListener("child:delete", this._onParentChild); }, e; }(b.EventEmitter);
1802
- e.FSWatcher = Zt;
1803
- }, 4244: function (t) {
1804
- "use strict";
1805
- var e = function (t) { return t != t; };
1806
- t.exports = function (t, n) { return 0 === t && 0 === n ? 1 / t == 1 / n : t === n || !(!e(t) || !e(n)); };
1807
- }, 609: function (t, e, n) {
1808
- "use strict";
1809
- var r = n(4289), o = n(5559), i = n(4244), a = n(5624), s = n(2281), c = o(a(), Object);
1810
- r(c, { getPolyfill: a, implementation: i, shim: s }), t.exports = c;
1811
- }, 5624: function (t, e, n) {
1812
- "use strict";
1813
- var r = n(4244);
1814
- t.exports = function () { return "function" == typeof Object.is ? Object.is : r; };
1815
- }, 2281: function (t, e, n) {
1816
- "use strict";
1817
- var r = n(5624), o = n(4289);
1818
- t.exports = function () { var t = r(); return o(Object, { is: t }, { is: function () { return Object.is !== t; } }), t; };
1819
- }, 8987: function (t, e, n) {
1820
- "use strict";
1821
- var r;
1822
- if (!Object.keys) {
1823
- var o = Object.prototype.hasOwnProperty, i = Object.prototype.toString, a = n(1414), s = Object.prototype.propertyIsEnumerable, c = !s.call({ toString: null }, "toString"), u = s.call((function () { }), "prototype"), f = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"], l = function (t) { var e = t.constructor; return e && e.prototype === t; }, h = { $applicationCache: !0, $console: !0, $external: !0, $frame: !0, $frameElement: !0, $frames: !0, $innerHeight: !0, $innerWidth: !0, $onmozfullscreenchange: !0, $onmozfullscreenerror: !0, $outerHeight: !0, $outerWidth: !0, $pageXOffset: !0, $pageYOffset: !0, $parent: !0, $scrollLeft: !0, $scrollTop: !0, $scrollX: !0, $scrollY: !0, $self: !0, $webkitIndexedDB: !0, $webkitStorageInfo: !0, $window: !0 }, p = function () { if ("undefined" == typeof window)
1824
- return !1; for (var t in window)
1825
- try {
1826
- if (!h["$" + t] && o.call(window, t) && null !== window[t] && "object" == typeof window[t])
1827
- try {
1828
- l(window[t]);
1829
- }
1830
- catch (t) {
1831
- return !0;
1832
- }
1833
- }
1834
- catch (t) {
1835
- return !0;
1836
- } return !1; }();
1837
- r = function (t) { var e = null !== t && "object" == typeof t, n = "[object Function]" === i.call(t), r = a(t), s = e && "[object String]" === i.call(t), h = []; if (!e && !n && !r)
1838
- throw new TypeError("Object.keys called on a non-object"); var d = u && n; if (s && t.length > 0 && !o.call(t, 0))
1839
- for (var y = 0; y < t.length; ++y)
1840
- h.push(String(y)); if (r && t.length > 0)
1841
- for (var g = 0; g < t.length; ++g)
1842
- h.push(String(g));
1843
- else
1844
- for (var b in t)
1845
- d && "prototype" === b || !o.call(t, b) || h.push(String(b)); if (c)
1846
- for (var m = function (t) { if ("undefined" == typeof window || !p)
1847
- return l(t); try {
1848
- return l(t);
1849
- }
1850
- catch (t) {
1851
- return !1;
1852
- } }(t), v = 0; v < f.length; ++v)
1853
- m && "constructor" === f[v] || !o.call(t, f[v]) || h.push(f[v]); return h; };
1854
- }
1855
- t.exports = r;
1856
- }, 2215: function (t, e, n) {
1857
- "use strict";
1858
- var r = Array.prototype.slice, o = n(1414), i = Object.keys, a = i ? function (t) { return i(t); } : n(8987), s = Object.keys;
1859
- a.shim = function () { if (Object.keys) {
1860
- var t = function () { var t = Object.keys(arguments); return t && t.length === arguments.length; }(1, 2);
1861
- t || (Object.keys = function (t) { return o(t) ? s(r.call(t)) : s(t); });
1862
- }
1863
- else
1864
- Object.keys = a; return Object.keys || a; }, t.exports = a;
1865
- }, 1414: function (t) {
1866
- "use strict";
1867
- var e = Object.prototype.toString;
1868
- t.exports = function (t) { var n = e.call(t), r = "[object Arguments]" === n; return r || (r = "[object Array]" !== n && null !== t && "object" == typeof t && "number" == typeof t.length && t.length >= 0 && "[object Function]" === e.call(t.callee)), r; };
1869
- }, 6470: function (t) {
1870
- "use strict";
1871
- function e(t) { if ("string" != typeof t)
1872
- throw new TypeError("Path must be a string. Received " + JSON.stringify(t)); }
1873
- function n(t, e) { for (var n, r = "", o = 0, i = -1, a = 0, s = 0; s <= t.length; ++s) {
1874
- if (s < t.length)
1875
- n = t.charCodeAt(s);
1876
- else {
1877
- if (47 === n)
1878
- break;
1879
- n = 47;
1880
- }
1881
- if (47 === n) {
1882
- if (i === s - 1 || 1 === a)
1883
- ;
1884
- else if (i !== s - 1 && 2 === a) {
1885
- if (r.length < 2 || 2 !== o || 46 !== r.charCodeAt(r.length - 1) || 46 !== r.charCodeAt(r.length - 2))
1886
- if (r.length > 2) {
1887
- var c = r.lastIndexOf("/");
1888
- if (c !== r.length - 1) {
1889
- -1 === c ? (r = "", o = 0) : o = (r = r.slice(0, c)).length - 1 - r.lastIndexOf("/"), i = s, a = 0;
1890
- continue;
1891
- }
1892
- }
1893
- else if (2 === r.length || 1 === r.length) {
1894
- r = "", o = 0, i = s, a = 0;
1895
- continue;
1896
- }
1897
- e && (r.length > 0 ? r += "/.." : r = "..", o = 2);
1898
- }
1899
- else
1900
- r.length > 0 ? r += "/" + t.slice(i + 1, s) : r = t.slice(i + 1, s), o = s - i - 1;
1901
- i = s, a = 0;
1902
- }
1903
- else
1904
- 46 === n && -1 !== a ? ++a : a = -1;
1905
- } return r; }
1906
- var r = { resolve: function () { for (var t, r = "", o = !1, i = arguments.length - 1; i >= -1 && !o; i--) {
1907
- var a;
1908
- i >= 0 ? a = arguments[i] : (void 0 === t && (t = process.cwd()), a = t), e(a), 0 !== a.length && (r = a + "/" + r, o = 47 === a.charCodeAt(0));
1909
- } return r = n(r, !o), o ? r.length > 0 ? "/" + r : "/" : r.length > 0 ? r : "."; }, normalize: function (t) { if (e(t), 0 === t.length)
1910
- return "."; var r = 47 === t.charCodeAt(0), o = 47 === t.charCodeAt(t.length - 1); return 0 !== (t = n(t, !r)).length || r || (t = "."), t.length > 0 && o && (t += "/"), r ? "/" + t : t; }, isAbsolute: function (t) { return e(t), t.length > 0 && 47 === t.charCodeAt(0); }, join: function () { if (0 === arguments.length)
1911
- return "."; for (var t, n = 0; n < arguments.length; ++n) {
1912
- var o = arguments[n];
1913
- e(o), o.length > 0 && (void 0 === t ? t = o : t += "/" + o);
1914
- } return void 0 === t ? "." : r.normalize(t); }, relative: function (t, n) { if (e(t), e(n), t === n)
1915
- return ""; if ((t = r.resolve(t)) === (n = r.resolve(n)))
1916
- return ""; for (var o = 1; o < t.length && 47 === t.charCodeAt(o); ++o)
1917
- ; for (var i = t.length, a = i - o, s = 1; s < n.length && 47 === n.charCodeAt(s); ++s)
1918
- ; for (var c = n.length - s, u = a < c ? a : c, f = -1, l = 0; l <= u; ++l) {
1919
- if (l === u) {
1920
- if (c > u) {
1921
- if (47 === n.charCodeAt(s + l))
1922
- return n.slice(s + l + 1);
1923
- if (0 === l)
1924
- return n.slice(s + l);
1925
- }
1926
- else
1927
- a > u && (47 === t.charCodeAt(o + l) ? f = l : 0 === l && (f = 0));
1928
- break;
1929
- }
1930
- var h = t.charCodeAt(o + l);
1931
- if (h !== n.charCodeAt(s + l))
1932
- break;
1933
- 47 === h && (f = l);
1934
- } var p = ""; for (l = o + f + 1; l <= i; ++l)
1935
- l !== i && 47 !== t.charCodeAt(l) || (0 === p.length ? p += ".." : p += "/.."); return p.length > 0 ? p + n.slice(s + f) : (s += f, 47 === n.charCodeAt(s) && ++s, n.slice(s)); }, _makeLong: function (t) { return t; }, dirname: function (t) { if (e(t), 0 === t.length)
1936
- return "."; for (var n = t.charCodeAt(0), r = 47 === n, o = -1, i = !0, a = t.length - 1; a >= 1; --a)
1937
- if (47 === (n = t.charCodeAt(a))) {
1938
- if (!i) {
1939
- o = a;
1940
- break;
1941
- }
1942
- }
1943
- else
1944
- i = !1; return -1 === o ? r ? "/" : "." : r && 1 === o ? "//" : t.slice(0, o); }, basename: function (t, n) { if (void 0 !== n && "string" != typeof n)
1945
- throw new TypeError('"ext" argument must be a string'); e(t); var r, o = 0, i = -1, a = !0; if (void 0 !== n && n.length > 0 && n.length <= t.length) {
1946
- if (n.length === t.length && n === t)
1947
- return "";
1948
- var s = n.length - 1, c = -1;
1949
- for (r = t.length - 1; r >= 0; --r) {
1950
- var u = t.charCodeAt(r);
1951
- if (47 === u) {
1952
- if (!a) {
1953
- o = r + 1;
1954
- break;
1955
- }
1956
- }
1957
- else
1958
- -1 === c && (a = !1, c = r + 1), s >= 0 && (u === n.charCodeAt(s) ? -1 == --s && (i = r) : (s = -1, i = c));
1959
- }
1960
- return o === i ? i = c : -1 === i && (i = t.length), t.slice(o, i);
1961
- } for (r = t.length - 1; r >= 0; --r)
1962
- if (47 === t.charCodeAt(r)) {
1963
- if (!a) {
1964
- o = r + 1;
1965
- break;
1966
- }
1967
- }
1968
- else
1969
- -1 === i && (a = !1, i = r + 1); return -1 === i ? "" : t.slice(o, i); }, extname: function (t) { e(t); for (var n = -1, r = 0, o = -1, i = !0, a = 0, s = t.length - 1; s >= 0; --s) {
1970
- var c = t.charCodeAt(s);
1971
- if (47 !== c)
1972
- -1 === o && (i = !1, o = s + 1), 46 === c ? -1 === n ? n = s : 1 !== a && (a = 1) : -1 !== n && (a = -1);
1973
- else if (!i) {
1974
- r = s + 1;
1975
- break;
1976
- }
1977
- } return -1 === n || -1 === o || 0 === a || 1 === a && n === o - 1 && n === r + 1 ? "" : t.slice(n, o); }, format: function (t) { if (null === t || "object" != typeof t)
1978
- throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t); return function (t, e) { var n = e.dir || e.root, r = e.base || (e.name || "") + (e.ext || ""); return n ? n === e.root ? n + r : n + t + r : r; }("/", t); }, parse: function (t) { e(t); var n = { root: "", dir: "", base: "", ext: "", name: "" }; if (0 === t.length)
1979
- return n; var r, o = t.charCodeAt(0), i = 47 === o; i ? (n.root = "/", r = 1) : r = 0; for (var a = -1, s = 0, c = -1, u = !0, f = t.length - 1, l = 0; f >= r; --f)
1980
- if (47 !== (o = t.charCodeAt(f)))
1981
- -1 === c && (u = !1, c = f + 1), 46 === o ? -1 === a ? a = f : 1 !== l && (l = 1) : -1 !== a && (l = -1);
1982
- else if (!u) {
1983
- s = f + 1;
1984
- break;
1985
- } return -1 === a || -1 === c || 0 === l || 1 === l && a === c - 1 && a === s + 1 ? -1 !== c && (n.base = n.name = 0 === s && i ? t.slice(1, c) : t.slice(s, c)) : (0 === s && i ? (n.name = t.slice(1, a), n.base = t.slice(1, c)) : (n.name = t.slice(s, a), n.base = t.slice(s, c)), n.ext = t.slice(a, c)), s > 0 ? n.dir = t.slice(0, s - 1) : i && (n.dir = "/"), n; }, sep: "/", delimiter: ":", win32: null, posix: null };
1986
- r.posix = r, t.exports = r;
1987
- }, 2587: function (t) {
1988
- "use strict";
1989
- function e(t, e) { return Object.prototype.hasOwnProperty.call(t, e); }
1990
- t.exports = function (t, n, r, o) { n = n || "&", r = r || "="; var i = {}; if ("string" != typeof t || 0 === t.length)
1991
- return i; var a = /\+/g; t = t.split(n); var s = 1e3; o && "number" == typeof o.maxKeys && (s = o.maxKeys); var c = t.length; s > 0 && c > s && (c = s); for (var u = 0; u < c; ++u) {
1992
- var f, l, h, p, d = t[u].replace(a, "%20"), y = d.indexOf(r);
1993
- y >= 0 ? (f = d.substr(0, y), l = d.substr(y + 1)) : (f = d, l = ""), h = decodeURIComponent(f), p = decodeURIComponent(l), e(i, h) ? Array.isArray(i[h]) ? i[h].push(p) : i[h] = [i[h], p] : i[h] = p;
1994
- } return i; };
1995
- }, 2182: function (t) {
1996
- "use strict";
1997
- var e = function (t) { switch (typeof t) {
1998
- case "string": return t;
1999
- case "boolean": return t ? "true" : "false";
2000
- case "number": return isFinite(t) ? t : "";
2001
- default: return "";
2002
- } };
2003
- t.exports = function (t, n, r, o) { return n = n || "&", r = r || "=", null === t && (t = void 0), "object" == typeof t ? Object.keys(t).map((function (o) { var i = encodeURIComponent(e(o)) + r; return Array.isArray(t[o]) ? t[o].map((function (t) { return i + encodeURIComponent(e(t)); })).join(n) : i + encodeURIComponent(e(t[o])); })).join(n) : o ? encodeURIComponent(e(o)) + r + encodeURIComponent(e(t)) : ""; };
2004
- }, 7673: function (t, e, n) {
2005
- "use strict";
2006
- e.decode = e.parse = n(2587), e.encode = e.stringify = n(2182);
2007
- }, 4281: function (t) {
2008
- "use strict";
2009
- var e = {};
2010
- function n(t, n, r) { r || (r = Error); var o = function (t) { var e, r; function o(e, r, o) { return t.call(this, function (t, e, r) { return "string" == typeof n ? n : n(t, e, r); }(e, r, o)) || this; } return r = t, (e = o).prototype = Object.create(r.prototype), e.prototype.constructor = e, e.__proto__ = r, o; }(r); o.prototype.name = r.name, o.prototype.code = t, e[t] = o; }
2011
- function r(t, e) { if (Array.isArray(t)) {
2012
- var n = t.length;
2013
- return t = t.map((function (t) { return String(t); })), n > 2 ? "one of ".concat(e, " ").concat(t.slice(0, n - 1).join(", "), ", or ") + t[n - 1] : 2 === n ? "one of ".concat(e, " ").concat(t[0], " or ").concat(t[1]) : "of ".concat(e, " ").concat(t[0]);
2014
- } return "of ".concat(e, " ").concat(String(t)); }
2015
- n("ERR_INVALID_OPT_VALUE", (function (t, e) { return 'The value "' + e + '" is invalid for option "' + t + '"'; }), TypeError), n("ERR_INVALID_ARG_TYPE", (function (t, e, n) { var o, i, a, s; if ("string" == typeof e && (i = "not ", e.substr(!a || a < 0 ? 0 : +a, i.length) === i) ? (o = "must not be", e = e.replace(/^not /, "")) : o = "must be", function (t, e, n) { return (void 0 === n || n > t.length) && (n = t.length), t.substring(n - e.length, n) === e; }(t, " argument"))
2016
- s = "The ".concat(t, " ").concat(o, " ").concat(r(e, "type"));
2017
- else {
2018
- var c = function (t, e, n) { return "number" != typeof n && (n = 0), !(n + e.length > t.length) && -1 !== t.indexOf(e, n); }(t, ".") ? "property" : "argument";
2019
- s = 'The "'.concat(t, '" ').concat(c, " ").concat(o, " ").concat(r(e, "type"));
2020
- } return s += ". Received type ".concat(typeof n); }), TypeError), n("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), n("ERR_METHOD_NOT_IMPLEMENTED", (function (t) { return "The " + t + " method is not implemented"; })), n("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), n("ERR_STREAM_DESTROYED", (function (t) { return "Cannot call " + t + " after a stream was destroyed"; })), n("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), n("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), n("ERR_STREAM_WRITE_AFTER_END", "write after end"), n("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), n("ERR_UNKNOWN_ENCODING", (function (t) { return "Unknown encoding: " + t; }), TypeError), n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), t.exports.q = e;
2021
- }, 6753: function (t, e, n) {
2022
- "use strict";
2023
- var r = Object.keys || function (t) { var e = []; for (var n in t)
2024
- e.push(n); return e; };
2025
- t.exports = u;
2026
- var o = n(9481), i = n(4229);
2027
- n(5717)(u, o);
2028
- for (var a = r(i.prototype), s = 0; s < a.length; s++) {
2029
- var c = a[s];
2030
- u.prototype[c] || (u.prototype[c] = i.prototype[c]);
2031
- }
2032
- function u(t) { if (!(this instanceof u))
2033
- return new u(t); o.call(this, t), i.call(this, t), this.allowHalfOpen = !0, t && (!1 === t.readable && (this.readable = !1), !1 === t.writable && (this.writable = !1), !1 === t.allowHalfOpen && (this.allowHalfOpen = !1, this.once("end", f))); }
2034
- function f() { this._writableState.ended || process.nextTick(l, this); }
2035
- function l(t) { t.end(); }
2036
- Object.defineProperty(u.prototype, "writableHighWaterMark", { enumerable: !1, get: function () { return this._writableState.highWaterMark; } }), Object.defineProperty(u.prototype, "writableBuffer", { enumerable: !1, get: function () { return this._writableState && this._writableState.getBuffer(); } }), Object.defineProperty(u.prototype, "writableLength", { enumerable: !1, get: function () { return this._writableState.length; } }), Object.defineProperty(u.prototype, "destroyed", { enumerable: !1, get: function () { return void 0 !== this._readableState && void 0 !== this._writableState && (this._readableState.destroyed && this._writableState.destroyed); }, set: function (t) { void 0 !== this._readableState && void 0 !== this._writableState && (this._readableState.destroyed = t, this._writableState.destroyed = t); } });
2037
- }, 2725: function (t, e, n) {
2038
- "use strict";
2039
- t.exports = o;
2040
- var r = n(4605);
2041
- function o(t) { if (!(this instanceof o))
2042
- return new o(t); r.call(this, t); }
2043
- n(5717)(o, r), o.prototype._transform = function (t, e, n) { n(null, t); };
2044
- }, 9481: function (t, e, n) {
2045
- "use strict";
2046
- var r;
2047
- t.exports = O, O.ReadableState = E;
2048
- n(7187).EventEmitter;
2049
- var o = function (t, e) { return t.listeners(e).length; }, i = n(2503), a = n(8764).Buffer, s = global.Uint8Array || function () { };
2050
- var c, u = n(4616);
2051
- c = u && u.debuglog ? u.debuglog("stream") : function () { };
2052
- var f, l, h, p = n(7327), d = n(1195), y = n(2457).getHighWaterMark, g = n(4281).q, b = g.ERR_INVALID_ARG_TYPE, m = g.ERR_STREAM_PUSH_AFTER_EOF, v = g.ERR_METHOD_NOT_IMPLEMENTED, w = g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
2053
- n(5717)(O, i);
2054
- var _ = d.errorOrDestroy, S = ["error", "close", "destroy", "pause", "resume"];
2055
- function E(t, e, o) { r = r || n(6753), t = t || {}, "boolean" != typeof o && (o = e instanceof r), this.objectMode = !!t.objectMode, o && (this.objectMode = this.objectMode || !!t.readableObjectMode), this.highWaterMark = y(this, t, "readableHighWaterMark", o), this.buffer = new p, this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = !1 !== t.emitClose, this.autoDestroy = !!t.autoDestroy, this.destroyed = !1, this.defaultEncoding = t.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, t.encoding && (f || (f = n(2553).s), this.decoder = new f(t.encoding), this.encoding = t.encoding); }
2056
- function O(t) { if (r = r || n(6753), !(this instanceof O))
2057
- return new O(t); var e = this instanceof r; this._readableState = new E(t, this, e), this.readable = !0, t && ("function" == typeof t.read && (this._read = t.read), "function" == typeof t.destroy && (this._destroy = t.destroy)), i.call(this); }
2058
- function R(t, e, n, r, o) { c("readableAddChunk", e); var i, u = t._readableState; if (null === e)
2059
- u.reading = !1, function (t, e) { if (c("onEofChunk"), e.ended)
2060
- return; if (e.decoder) {
2061
- var n = e.decoder.end();
2062
- n && n.length && (e.buffer.push(n), e.length += e.objectMode ? 1 : n.length);
2063
- } e.ended = !0, e.sync ? I(t) : (e.needReadable = !1, e.emittedReadable || (e.emittedReadable = !0, j(t))); }(t, u);
2064
- else if (o || (i = function (t, e) { var n; r = e, a.isBuffer(r) || r instanceof s || "string" == typeof e || void 0 === e || t.objectMode || (n = new b("chunk", ["string", "Buffer", "Uint8Array"], e)); var r; return n; }(u, e)), i)
2065
- _(t, i);
2066
- else if (u.objectMode || e && e.length > 0)
2067
- if ("string" == typeof e || u.objectMode || Object.getPrototypeOf(e) === a.prototype || (e = function (t) { return a.from(t); }(e)), r)
2068
- u.endEmitted ? _(t, new w) : A(t, u, e, !0);
2069
- else if (u.ended)
2070
- _(t, new m);
2071
- else {
2072
- if (u.destroyed)
2073
- return !1;
2074
- u.reading = !1, u.decoder && !n ? (e = u.decoder.write(e), u.objectMode || 0 !== e.length ? A(t, u, e, !1) : N(t, u)) : A(t, u, e, !1);
2075
- }
2076
- else
2077
- r || (u.reading = !1, N(t, u)); return !u.ended && (u.length < u.highWaterMark || 0 === u.length); }
2078
- function A(t, e, n, r) { e.flowing && 0 === e.length && !e.sync ? (e.awaitDrain = 0, t.emit("data", n)) : (e.length += e.objectMode ? 1 : n.length, r ? e.buffer.unshift(n) : e.buffer.push(n), e.needReadable && I(t)), N(t, e); }
2079
- Object.defineProperty(O.prototype, "destroyed", { enumerable: !1, get: function () { return void 0 !== this._readableState && this._readableState.destroyed; }, set: function (t) { this._readableState && (this._readableState.destroyed = t); } }), O.prototype.destroy = d.destroy, O.prototype._undestroy = d.undestroy, O.prototype._destroy = function (t, e) { e(t); }, O.prototype.push = function (t, e) { var n, r = this._readableState; return r.objectMode ? n = !0 : "string" == typeof t && ((e = e || r.defaultEncoding) !== r.encoding && (t = a.from(t, e), e = ""), n = !0), R(this, t, e, !1, n); }, O.prototype.unshift = function (t) { return R(this, t, null, !0, !1); }, O.prototype.isPaused = function () { return !1 === this._readableState.flowing; }, O.prototype.setEncoding = function (t) { f || (f = n(2553).s); var e = new f(t); this._readableState.decoder = e, this._readableState.encoding = this._readableState.decoder.encoding; for (var r = this._readableState.buffer.head, o = ""; null !== r;)
2080
- o += e.write(r.data), r = r.next; return this._readableState.buffer.clear(), "" !== o && this._readableState.buffer.push(o), this._readableState.length = o.length, this; };
2081
- var T = 1073741824;
2082
- function k(t, e) { return t <= 0 || 0 === e.length && e.ended ? 0 : e.objectMode ? 1 : t != t ? e.flowing && e.length ? e.buffer.head.data.length : e.length : (t > e.highWaterMark && (e.highWaterMark = function (t) { return t >= T ? t = T : (t--, t |= t >>> 1, t |= t >>> 2, t |= t >>> 4, t |= t >>> 8, t |= t >>> 16, t++), t; }(t)), t <= e.length ? t : e.ended ? e.length : (e.needReadable = !0, 0)); }
2083
- function I(t) { var e = t._readableState; c("emitReadable", e.needReadable, e.emittedReadable), e.needReadable = !1, e.emittedReadable || (c("emitReadable", e.flowing), e.emittedReadable = !0, process.nextTick(j, t)); }
2084
- function j(t) { var e = t._readableState; c("emitReadable_", e.destroyed, e.length, e.ended), e.destroyed || !e.length && !e.ended || (t.emit("readable"), e.emittedReadable = !1), e.needReadable = !e.flowing && !e.ended && e.length <= e.highWaterMark, F(t); }
2085
- function N(t, e) { e.readingMore || (e.readingMore = !0, process.nextTick(B, t, e)); }
2086
- function B(t, e) { for (; !e.reading && !e.ended && (e.length < e.highWaterMark || e.flowing && 0 === e.length);) {
2087
- var n = e.length;
2088
- if (c("maybeReadMore read 0"), t.read(0), n === e.length)
2089
- break;
2090
- } e.readingMore = !1; }
2091
- function P(t) { var e = t._readableState; e.readableListening = t.listenerCount("readable") > 0, e.resumeScheduled && !e.paused ? e.flowing = !0 : t.listenerCount("data") > 0 && t.resume(); }
2092
- function L(t) { c("readable nexttick read 0"), t.read(0); }
2093
- function x(t, e) { c("resume", e.reading), e.reading || t.read(0), e.resumeScheduled = !1, t.emit("resume"), F(t), e.flowing && !e.reading && t.read(0); }
2094
- function F(t) { var e = t._readableState; for (c("flow", e.flowing); e.flowing && null !== t.read();)
2095
- ; }
2096
- function C(t, e) { return 0 === e.length ? null : (e.objectMode ? n = e.buffer.shift() : !t || t >= e.length ? (n = e.decoder ? e.buffer.join("") : 1 === e.buffer.length ? e.buffer.first() : e.buffer.concat(e.length), e.buffer.clear()) : n = e.buffer.consume(t, e.decoder), n); var n; }
2097
- function M(t) { var e = t._readableState; c("endReadable", e.endEmitted), e.endEmitted || (e.ended = !0, process.nextTick(U, e, t)); }
2098
- function U(t, e) { if (c("endReadableNT", t.endEmitted, t.length), !t.endEmitted && 0 === t.length && (t.endEmitted = !0, e.readable = !1, e.emit("end"), t.autoDestroy)) {
2099
- var n = e._writableState;
2100
- (!n || n.autoDestroy && n.finished) && e.destroy();
2101
- } }
2102
- function D(t, e) { for (var n = 0, r = t.length; n < r; n++)
2103
- if (t[n] === e)
2104
- return n; return -1; }
2105
- O.prototype.read = function (t) { c("read", t), t = parseInt(t, 10); var e = this._readableState, n = t; if (0 !== t && (e.emittedReadable = !1), 0 === t && e.needReadable && ((0 !== e.highWaterMark ? e.length >= e.highWaterMark : e.length > 0) || e.ended))
2106
- return c("read: emitReadable", e.length, e.ended), 0 === e.length && e.ended ? M(this) : I(this), null; if (0 === (t = k(t, e)) && e.ended)
2107
- return 0 === e.length && M(this), null; var r, o = e.needReadable; return c("need readable", o), (0 === e.length || e.length - t < e.highWaterMark) && c("length less than watermark", o = !0), e.ended || e.reading ? c("reading or ended", o = !1) : o && (c("do read"), e.reading = !0, e.sync = !0, 0 === e.length && (e.needReadable = !0), this._read(e.highWaterMark), e.sync = !1, e.reading || (t = k(n, e))), null === (r = t > 0 ? C(t, e) : null) ? (e.needReadable = e.length <= e.highWaterMark, t = 0) : (e.length -= t, e.awaitDrain = 0), 0 === e.length && (e.ended || (e.needReadable = !0), n !== t && e.ended && M(this)), null !== r && this.emit("data", r), r; }, O.prototype._read = function (t) { _(this, new v("_read()")); }, O.prototype.pipe = function (t, e) { var n = this, r = this._readableState; switch (r.pipesCount) {
2108
- case 0:
2109
- r.pipes = t;
2110
- break;
2111
- case 1:
2112
- r.pipes = [r.pipes, t];
2113
- break;
2114
- default: r.pipes.push(t);
2115
- } r.pipesCount += 1, c("pipe count=%d opts=%j", r.pipesCount, e); var i = (!e || !1 !== e.end) && t !== process.stdout && t !== process.stderr ? s : y; function a(e, o) { c("onunpipe"), e === n && o && !1 === o.hasUnpiped && (o.hasUnpiped = !0, c("cleanup"), t.removeListener("close", p), t.removeListener("finish", d), t.removeListener("drain", u), t.removeListener("error", h), t.removeListener("unpipe", a), n.removeListener("end", s), n.removeListener("end", y), n.removeListener("data", l), f = !0, !r.awaitDrain || t._writableState && !t._writableState.needDrain || u()); } function s() { c("onend"), t.end(); } r.endEmitted ? process.nextTick(i) : n.once("end", i), t.on("unpipe", a); var u = function (t) { return function () { var e = t._readableState; c("pipeOnDrain", e.awaitDrain), e.awaitDrain && e.awaitDrain--, 0 === e.awaitDrain && o(t, "data") && (e.flowing = !0, F(t)); }; }(n); t.on("drain", u); var f = !1; function l(e) { c("ondata"); var o = t.write(e); c("dest.write", o), !1 === o && ((1 === r.pipesCount && r.pipes === t || r.pipesCount > 1 && -1 !== D(r.pipes, t)) && !f && (c("false write response, pause", r.awaitDrain), r.awaitDrain++), n.pause()); } function h(e) { c("onerror", e), y(), t.removeListener("error", h), 0 === o(t, "error") && _(t, e); } function p() { t.removeListener("finish", d), y(); } function d() { c("onfinish"), t.removeListener("close", p), y(); } function y() { c("unpipe"), n.unpipe(t); } return n.on("data", l), function (t, e, n) { if ("function" == typeof t.prependListener)
2116
- return t.prependListener(e, n); t._events && t._events[e] ? Array.isArray(t._events[e]) ? t._events[e].unshift(n) : t._events[e] = [n, t._events[e]] : t.on(e, n); }(t, "error", h), t.once("close", p), t.once("finish", d), t.emit("pipe", n), r.flowing || (c("pipe resume"), n.resume()), t; }, O.prototype.unpipe = function (t) { var e = this._readableState, n = { hasUnpiped: !1 }; if (0 === e.pipesCount)
2117
- return this; if (1 === e.pipesCount)
2118
- return t && t !== e.pipes || (t || (t = e.pipes), e.pipes = null, e.pipesCount = 0, e.flowing = !1, t && t.emit("unpipe", this, n)), this; if (!t) {
2119
- var r = e.pipes, o = e.pipesCount;
2120
- e.pipes = null, e.pipesCount = 0, e.flowing = !1;
2121
- for (var i = 0; i < o; i++)
2122
- r[i].emit("unpipe", this, { hasUnpiped: !1 });
2123
- return this;
2124
- } var a = D(e.pipes, t); return -1 === a || (e.pipes.splice(a, 1), e.pipesCount -= 1, 1 === e.pipesCount && (e.pipes = e.pipes[0]), t.emit("unpipe", this, n)), this; }, O.prototype.on = function (t, e) { var n = i.prototype.on.call(this, t, e), r = this._readableState; return "data" === t ? (r.readableListening = this.listenerCount("readable") > 0, !1 !== r.flowing && this.resume()) : "readable" === t && (r.endEmitted || r.readableListening || (r.readableListening = r.needReadable = !0, r.flowing = !1, r.emittedReadable = !1, c("on readable", r.length, r.reading), r.length ? I(this) : r.reading || process.nextTick(L, this))), n; }, O.prototype.addListener = O.prototype.on, O.prototype.removeListener = function (t, e) { var n = i.prototype.removeListener.call(this, t, e); return "readable" === t && process.nextTick(P, this), n; }, O.prototype.removeAllListeners = function (t) { var e = i.prototype.removeAllListeners.apply(this, arguments); return "readable" !== t && void 0 !== t || process.nextTick(P, this), e; }, O.prototype.resume = function () { var t = this._readableState; return t.flowing || (c("resume"), t.flowing = !t.readableListening, function (t, e) { e.resumeScheduled || (e.resumeScheduled = !0, process.nextTick(x, t, e)); }(this, t)), t.paused = !1, this; }, O.prototype.pause = function () { return c("call pause flowing=%j", this._readableState.flowing), !1 !== this._readableState.flowing && (c("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this; }, O.prototype.wrap = function (t) { var e = this, n = this._readableState, r = !1; for (var o in t.on("end", (function () { if (c("wrapped end"), n.decoder && !n.ended) {
2125
- var t = n.decoder.end();
2126
- t && t.length && e.push(t);
2127
- } e.push(null); })), t.on("data", (function (o) { (c("wrapped data"), n.decoder && (o = n.decoder.write(o)), n.objectMode && null == o) || (n.objectMode || o && o.length) && (e.push(o) || (r = !0, t.pause())); })), t)
2128
- void 0 === this[o] && "function" == typeof t[o] && (this[o] = function (e) { return function () { return t[e].apply(t, arguments); }; }(o)); for (var i = 0; i < S.length; i++)
2129
- t.on(S[i], this.emit.bind(this, S[i])); return this._read = function (e) { c("wrapped _read", e), r && (r = !1, t.resume()); }, this; }, "function" == typeof Symbol && (O.prototype[Symbol.asyncIterator] = function () { return void 0 === l && (l = n(5850)), l(this); }), Object.defineProperty(O.prototype, "readableHighWaterMark", { enumerable: !1, get: function () { return this._readableState.highWaterMark; } }), Object.defineProperty(O.prototype, "readableBuffer", { enumerable: !1, get: function () { return this._readableState && this._readableState.buffer; } }), Object.defineProperty(O.prototype, "readableFlowing", { enumerable: !1, get: function () { return this._readableState.flowing; }, set: function (t) { this._readableState && (this._readableState.flowing = t); } }), O._fromList = C, Object.defineProperty(O.prototype, "readableLength", { enumerable: !1, get: function () { return this._readableState.length; } }), "function" == typeof Symbol && (O.from = function (t, e) { return void 0 === h && (h = n(5167)), h(O, t, e); });
2130
- }, 4605: function (t, e, n) {
2131
- "use strict";
2132
- t.exports = f;
2133
- var r = n(4281).q, o = r.ERR_METHOD_NOT_IMPLEMENTED, i = r.ERR_MULTIPLE_CALLBACK, a = r.ERR_TRANSFORM_ALREADY_TRANSFORMING, s = r.ERR_TRANSFORM_WITH_LENGTH_0, c = n(6753);
2134
- function u(t, e) { var n = this._transformState; n.transforming = !1; var r = n.writecb; if (null === r)
2135
- return this.emit("error", new i); n.writechunk = null, n.writecb = null, null != e && this.push(e), r(t); var o = this._readableState; o.reading = !1, (o.needReadable || o.length < o.highWaterMark) && this._read(o.highWaterMark); }
2136
- function f(t) { if (!(this instanceof f))
2137
- return new f(t); c.call(this, t), this._transformState = { afterTransform: u.bind(this), needTransform: !1, transforming: !1, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = !0, this._readableState.sync = !1, t && ("function" == typeof t.transform && (this._transform = t.transform), "function" == typeof t.flush && (this._flush = t.flush)), this.on("prefinish", l); }
2138
- function l() { var t = this; "function" != typeof this._flush || this._readableState.destroyed ? h(this, null, null) : this._flush((function (e, n) { h(t, e, n); })); }
2139
- function h(t, e, n) { if (e)
2140
- return t.emit("error", e); if (null != n && t.push(n), t._writableState.length)
2141
- throw new s; if (t._transformState.transforming)
2142
- throw new a; return t.push(null); }
2143
- n(5717)(f, c), f.prototype.push = function (t, e) { return this._transformState.needTransform = !1, c.prototype.push.call(this, t, e); }, f.prototype._transform = function (t, e, n) { n(new o("_transform()")); }, f.prototype._write = function (t, e, n) { var r = this._transformState; if (r.writecb = n, r.writechunk = t, r.writeencoding = e, !r.transforming) {
2144
- var o = this._readableState;
2145
- (r.needTransform || o.needReadable || o.length < o.highWaterMark) && this._read(o.highWaterMark);
2146
- } }, f.prototype._read = function (t) { var e = this._transformState; null === e.writechunk || e.transforming ? e.needTransform = !0 : (e.transforming = !0, this._transform(e.writechunk, e.writeencoding, e.afterTransform)); }, f.prototype._destroy = function (t, e) { c.prototype._destroy.call(this, t, (function (t) { e(t); })); };
2147
- }, 4229: function (t, e, n) {
2148
- "use strict";
2149
- function r(t) { var e = this; this.next = null, this.entry = null, this.finish = function () { !function (t, e, n) { var r = t.entry; t.entry = null; for (; r;) {
2150
- var o = r.callback;
2151
- e.pendingcb--, o(n), r = r.next;
2152
- } e.corkedRequestsFree.next = t; }(e, t); }; }
2153
- var o;
2154
- t.exports = O, O.WritableState = E;
2155
- var i = { deprecate: n(4927) }, a = n(2503), s = n(8764).Buffer, c = global.Uint8Array || function () { };
2156
- var u, f = n(1195), l = n(2457).getHighWaterMark, h = n(4281).q, p = h.ERR_INVALID_ARG_TYPE, d = h.ERR_METHOD_NOT_IMPLEMENTED, y = h.ERR_MULTIPLE_CALLBACK, g = h.ERR_STREAM_CANNOT_PIPE, b = h.ERR_STREAM_DESTROYED, m = h.ERR_STREAM_NULL_VALUES, v = h.ERR_STREAM_WRITE_AFTER_END, w = h.ERR_UNKNOWN_ENCODING, _ = f.errorOrDestroy;
2157
- function S() { }
2158
- function E(t, e, i) { o = o || n(6753), t = t || {}, "boolean" != typeof i && (i = e instanceof o), this.objectMode = !!t.objectMode, i && (this.objectMode = this.objectMode || !!t.writableObjectMode), this.highWaterMark = l(this, t, "writableHighWaterMark", i), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; var a = !1 === t.decodeStrings; this.decodeStrings = !a, this.defaultEncoding = t.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function (t) { !function (t, e) { var n = t._writableState, r = n.sync, o = n.writecb; if ("function" != typeof o)
2159
- throw new y; if (function (t) { t.writing = !1, t.writecb = null, t.length -= t.writelen, t.writelen = 0; }(n), e)
2160
- !function (t, e, n, r, o) { --e.pendingcb, n ? (process.nextTick(o, r), process.nextTick(j, t, e), t._writableState.errorEmitted = !0, _(t, r)) : (o(r), t._writableState.errorEmitted = !0, _(t, r), j(t, e)); }(t, n, r, e, o);
2161
- else {
2162
- var i = k(n) || t.destroyed;
2163
- i || n.corked || n.bufferProcessing || !n.bufferedRequest || T(t, n), r ? process.nextTick(A, t, n, i, o) : A(t, n, i, o);
2164
- } }(e, t); }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = !1 !== t.emitClose, this.autoDestroy = !!t.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new r(this); }
2165
- function O(t) { var e = this instanceof (o = o || n(6753)); if (!e && !u.call(O, this))
2166
- return new O(t); this._writableState = new E(t, this, e), this.writable = !0, t && ("function" == typeof t.write && (this._write = t.write), "function" == typeof t.writev && (this._writev = t.writev), "function" == typeof t.destroy && (this._destroy = t.destroy), "function" == typeof t.final && (this._final = t.final)), a.call(this); }
2167
- function R(t, e, n, r, o, i, a) { e.writelen = r, e.writecb = a, e.writing = !0, e.sync = !0, e.destroyed ? e.onwrite(new b("write")) : n ? t._writev(o, e.onwrite) : t._write(o, i, e.onwrite), e.sync = !1; }
2168
- function A(t, e, n, r) { n || function (t, e) { 0 === e.length && e.needDrain && (e.needDrain = !1, t.emit("drain")); }(t, e), e.pendingcb--, r(), j(t, e); }
2169
- function T(t, e) { e.bufferProcessing = !0; var n = e.bufferedRequest; if (t._writev && n && n.next) {
2170
- var o = e.bufferedRequestCount, i = new Array(o), a = e.corkedRequestsFree;
2171
- a.entry = n;
2172
- for (var s = 0, c = !0; n;)
2173
- i[s] = n, n.isBuf || (c = !1), n = n.next, s += 1;
2174
- i.allBuffers = c, R(t, e, !0, e.length, i, "", a.finish), e.pendingcb++, e.lastBufferedRequest = null, a.next ? (e.corkedRequestsFree = a.next, a.next = null) : e.corkedRequestsFree = new r(e), e.bufferedRequestCount = 0;
2175
- }
2176
- else {
2177
- for (; n;) {
2178
- var u = n.chunk, f = n.encoding, l = n.callback;
2179
- if (R(t, e, !1, e.objectMode ? 1 : u.length, u, f, l), n = n.next, e.bufferedRequestCount--, e.writing)
2180
- break;
2181
- }
2182
- null === n && (e.lastBufferedRequest = null);
2183
- } e.bufferedRequest = n, e.bufferProcessing = !1; }
2184
- function k(t) { return t.ending && 0 === t.length && null === t.bufferedRequest && !t.finished && !t.writing; }
2185
- function I(t, e) { t._final((function (n) { e.pendingcb--, n && _(t, n), e.prefinished = !0, t.emit("prefinish"), j(t, e); })); }
2186
- function j(t, e) { var n = k(e); if (n && (function (t, e) { e.prefinished || e.finalCalled || ("function" != typeof t._final || e.destroyed ? (e.prefinished = !0, t.emit("prefinish")) : (e.pendingcb++, e.finalCalled = !0, process.nextTick(I, t, e))); }(t, e), 0 === e.pendingcb && (e.finished = !0, t.emit("finish"), e.autoDestroy))) {
2187
- var r = t._readableState;
2188
- (!r || r.autoDestroy && r.endEmitted) && t.destroy();
2189
- } return n; }
2190
- n(5717)(O, a), E.prototype.getBuffer = function () { for (var t = this.bufferedRequest, e = []; t;)
2191
- e.push(t), t = t.next; return e; }, function () { try {
2192
- Object.defineProperty(E.prototype, "buffer", { get: i.deprecate((function () { return this.getBuffer(); }), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
2193
- }
2194
- catch (t) { } }(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (u = Function.prototype[Symbol.hasInstance], Object.defineProperty(O, Symbol.hasInstance, { value: function (t) { return !!u.call(this, t) || this === O && (t && t._writableState instanceof E); } })) : u = function (t) { return t instanceof this; }, O.prototype.pipe = function () { _(this, new g); }, O.prototype.write = function (t, e, n) { var r, o = this._writableState, i = !1, a = !o.objectMode && (r = t, s.isBuffer(r) || r instanceof c); return a && !s.isBuffer(t) && (t = function (t) { return s.from(t); }(t)), "function" == typeof e && (n = e, e = null), a ? e = "buffer" : e || (e = o.defaultEncoding), "function" != typeof n && (n = S), o.ending ? function (t, e) { var n = new v; _(t, n), process.nextTick(e, n); }(this, n) : (a || function (t, e, n, r) { var o; return null === n ? o = new m : "string" == typeof n || e.objectMode || (o = new p("chunk", ["string", "Buffer"], n)), !o || (_(t, o), process.nextTick(r, o), !1); }(this, o, t, n)) && (o.pendingcb++, i = function (t, e, n, r, o, i) { if (!n) {
2195
- var a = function (t, e, n) { t.objectMode || !1 === t.decodeStrings || "string" != typeof e || (e = s.from(e, n)); return e; }(e, r, o);
2196
- r !== a && (n = !0, o = "buffer", r = a);
2197
- } var c = e.objectMode ? 1 : r.length; e.length += c; var u = e.length < e.highWaterMark; u || (e.needDrain = !0); if (e.writing || e.corked) {
2198
- var f = e.lastBufferedRequest;
2199
- e.lastBufferedRequest = { chunk: r, encoding: o, isBuf: n, callback: i, next: null }, f ? f.next = e.lastBufferedRequest : e.bufferedRequest = e.lastBufferedRequest, e.bufferedRequestCount += 1;
2200
- }
2201
- else
2202
- R(t, e, !1, c, r, o, i); return u; }(this, o, a, t, e, n)), i; }, O.prototype.cork = function () { this._writableState.corked++; }, O.prototype.uncork = function () { var t = this._writableState; t.corked && (t.corked--, t.writing || t.corked || t.bufferProcessing || !t.bufferedRequest || T(this, t)); }, O.prototype.setDefaultEncoding = function (t) { if ("string" == typeof t && (t = t.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((t + "").toLowerCase()) > -1))
2203
- throw new w(t); return this._writableState.defaultEncoding = t, this; }, Object.defineProperty(O.prototype, "writableBuffer", { enumerable: !1, get: function () { return this._writableState && this._writableState.getBuffer(); } }), Object.defineProperty(O.prototype, "writableHighWaterMark", { enumerable: !1, get: function () { return this._writableState.highWaterMark; } }), O.prototype._write = function (t, e, n) { n(new d("_write()")); }, O.prototype._writev = null, O.prototype.end = function (t, e, n) { var r = this._writableState; return "function" == typeof t ? (n = t, t = null, e = null) : "function" == typeof e && (n = e, e = null), null != t && this.write(t, e), r.corked && (r.corked = 1, this.uncork()), r.ending || function (t, e, n) { e.ending = !0, j(t, e), n && (e.finished ? process.nextTick(n) : t.once("finish", n)); e.ended = !0, t.writable = !1; }(this, r, n), this; }, Object.defineProperty(O.prototype, "writableLength", { enumerable: !1, get: function () { return this._writableState.length; } }), Object.defineProperty(O.prototype, "destroyed", { enumerable: !1, get: function () { return void 0 !== this._writableState && this._writableState.destroyed; }, set: function (t) { this._writableState && (this._writableState.destroyed = t); } }), O.prototype.destroy = f.destroy, O.prototype._undestroy = f.undestroy, O.prototype._destroy = function (t, e) { e(t); };
2204
- }, 5850: function (t, e, n) {
2205
- "use strict";
2206
- var r;
2207
- function o(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
2208
- var i = n(8610), a = Symbol("lastResolve"), s = Symbol("lastReject"), c = Symbol("error"), u = Symbol("ended"), f = Symbol("lastPromise"), l = Symbol("handlePromise"), h = Symbol("stream");
2209
- function p(t, e) { return { value: t, done: e }; }
2210
- function d(t) { var e = t[a]; if (null !== e) {
2211
- var n = t[h].read();
2212
- null !== n && (t[f] = null, t[a] = null, t[s] = null, e(p(n, !1)));
2213
- } }
2214
- function y(t) { process.nextTick(d, t); }
2215
- var g = Object.getPrototypeOf((function () { })), b = Object.setPrototypeOf((o(r = { get stream() { return this[h]; }, next: function () { var t = this, e = this[c]; if (null !== e)
2216
- return Promise.reject(e); if (this[u])
2217
- return Promise.resolve(p(void 0, !0)); if (this[h].destroyed)
2218
- return new Promise((function (e, n) { process.nextTick((function () { t[c] ? n(t[c]) : e(p(void 0, !0)); })); })); var n, r = this[f]; if (r)
2219
- n = new Promise(function (t, e) { return function (n, r) { t.then((function () { e[u] ? n(p(void 0, !0)) : e[l](n, r); }), r); }; }(r, this));
2220
- else {
2221
- var o = this[h].read();
2222
- if (null !== o)
2223
- return Promise.resolve(p(o, !1));
2224
- n = new Promise(this[l]);
2225
- } return this[f] = n, n; } }, Symbol.asyncIterator, (function () { return this; })), o(r, "return", (function () { var t = this; return new Promise((function (e, n) { t[h].destroy(null, (function (t) { t ? n(t) : e(p(void 0, !0)); })); })); })), r), g);
2226
- t.exports = function (t) { var e, n = Object.create(b, (o(e = {}, h, { value: t, writable: !0 }), o(e, a, { value: null, writable: !0 }), o(e, s, { value: null, writable: !0 }), o(e, c, { value: null, writable: !0 }), o(e, u, { value: t._readableState.endEmitted, writable: !0 }), o(e, l, { value: function (t, e) { var r = n[h].read(); r ? (n[f] = null, n[a] = null, n[s] = null, t(p(r, !1))) : (n[a] = t, n[s] = e); }, writable: !0 }), e)); return n[f] = null, i(t, (function (t) { if (t && "ERR_STREAM_PREMATURE_CLOSE" !== t.code) {
2227
- var e = n[s];
2228
- return null !== e && (n[f] = null, n[a] = null, n[s] = null, e(t)), void (n[c] = t);
2229
- } var r = n[a]; null !== r && (n[f] = null, n[a] = null, n[s] = null, r(p(void 0, !0))), n[u] = !0; })), t.on("readable", y.bind(null, n)), n; };
2230
- }, 7327: function (t, e, n) {
2231
- "use strict";
2232
- function r(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) {
2233
- var r = Object.getOwnPropertySymbols(t);
2234
- e && (r = r.filter((function (e) { return Object.getOwnPropertyDescriptor(t, e).enumerable; }))), n.push.apply(n, r);
2235
- } return n; }
2236
- function o(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
2237
- function i(t, e) { for (var n = 0; n < e.length; n++) {
2238
- var r = e[n];
2239
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
2240
- } }
2241
- var a = n(8764).Buffer, s = n(2361).inspect, c = s && s.custom || "inspect";
2242
- t.exports = function () { function t() { !function (t, e) { if (!(t instanceof e))
2243
- throw new TypeError("Cannot call a class as a function"); }(this, t), this.head = null, this.tail = null, this.length = 0; } var e, n, u; return e = t, n = [{ key: "push", value: function (t) { var e = { data: t, next: null }; this.length > 0 ? this.tail.next = e : this.head = e, this.tail = e, ++this.length; } }, { key: "unshift", value: function (t) { var e = { data: t, next: this.head }; 0 === this.length && (this.tail = e), this.head = e, ++this.length; } }, { key: "shift", value: function () { if (0 !== this.length) {
2244
- var t = this.head.data;
2245
- return 1 === this.length ? this.head = this.tail = null : this.head = this.head.next, --this.length, t;
2246
- } } }, { key: "clear", value: function () { this.head = this.tail = null, this.length = 0; } }, { key: "join", value: function (t) { if (0 === this.length)
2247
- return ""; for (var e = this.head, n = "" + e.data; e = e.next;)
2248
- n += t + e.data; return n; } }, { key: "concat", value: function (t) { if (0 === this.length)
2249
- return a.alloc(0); for (var e, n, r, o = a.allocUnsafe(t >>> 0), i = this.head, s = 0; i;)
2250
- e = i.data, n = o, r = s, a.prototype.copy.call(e, n, r), s += i.data.length, i = i.next; return o; } }, { key: "consume", value: function (t, e) { var n; return t < this.head.data.length ? (n = this.head.data.slice(0, t), this.head.data = this.head.data.slice(t)) : n = t === this.head.data.length ? this.shift() : e ? this._getString(t) : this._getBuffer(t), n; } }, { key: "first", value: function () { return this.head.data; } }, { key: "_getString", value: function (t) { var e = this.head, n = 1, r = e.data; for (t -= r.length; e = e.next;) {
2251
- var o = e.data, i = t > o.length ? o.length : t;
2252
- if (i === o.length ? r += o : r += o.slice(0, t), 0 == (t -= i)) {
2253
- i === o.length ? (++n, e.next ? this.head = e.next : this.head = this.tail = null) : (this.head = e, e.data = o.slice(i));
2254
- break;
2255
- }
2256
- ++n;
2257
- } return this.length -= n, r; } }, { key: "_getBuffer", value: function (t) { var e = a.allocUnsafe(t), n = this.head, r = 1; for (n.data.copy(e), t -= n.data.length; n = n.next;) {
2258
- var o = n.data, i = t > o.length ? o.length : t;
2259
- if (o.copy(e, e.length - t, 0, i), 0 == (t -= i)) {
2260
- i === o.length ? (++r, n.next ? this.head = n.next : this.head = this.tail = null) : (this.head = n, n.data = o.slice(i));
2261
- break;
2262
- }
2263
- ++r;
2264
- } return this.length -= r, e; } }, { key: c, value: function (t, e) { return s(this, function (t) { for (var e = 1; e < arguments.length; e++) {
2265
- var n = null != arguments[e] ? arguments[e] : {};
2266
- e % 2 ? r(Object(n), !0).forEach((function (e) { o(t, e, n[e]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)); }));
2267
- } return t; }({}, e, { depth: 0, customInspect: !1 })); } }], n && i(e.prototype, n), u && i(e, u), t; }();
2268
- }, 1195: function (t) {
2269
- "use strict";
2270
- function e(t, e) { r(t, e), n(t); }
2271
- function n(t) { t._writableState && !t._writableState.emitClose || t._readableState && !t._readableState.emitClose || t.emit("close"); }
2272
- function r(t, e) { t.emit("error", e); }
2273
- t.exports = { destroy: function (t, o) { var i = this, a = this._readableState && this._readableState.destroyed, s = this._writableState && this._writableState.destroyed; return a || s ? (o ? o(t) : t && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process.nextTick(r, this, t)) : process.nextTick(r, this, t)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(t || null, (function (t) { !o && t ? i._writableState ? i._writableState.errorEmitted ? process.nextTick(n, i) : (i._writableState.errorEmitted = !0, process.nextTick(e, i, t)) : process.nextTick(e, i, t) : o ? (process.nextTick(n, i), o(t)) : process.nextTick(n, i); })), this); }, undestroy: function () { this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1); }, errorOrDestroy: function (t, e) { var n = t._readableState, r = t._writableState; n && n.autoDestroy || r && r.autoDestroy ? t.destroy(e) : t.emit("error", e); } };
2274
- }, 8610: function (t, e, n) {
2275
- "use strict";
2276
- var r = n(4281).q.ERR_STREAM_PREMATURE_CLOSE;
2277
- function o() { }
2278
- t.exports = function t(e, n, i) { if ("function" == typeof n)
2279
- return t(e, null, n); n || (n = {}), i = function (t) { var e = !1; return function () { if (!e) {
2280
- e = !0;
2281
- for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
2282
- r[o] = arguments[o];
2283
- t.apply(this, r);
2284
- } }; }(i || o); var a = n.readable || !1 !== n.readable && e.readable, s = n.writable || !1 !== n.writable && e.writable, c = function () { e.writable || f(); }, u = e._writableState && e._writableState.finished, f = function () { s = !1, u = !0, a || i.call(e); }, l = e._readableState && e._readableState.endEmitted, h = function () { a = !1, l = !0, s || i.call(e); }, p = function (t) { i.call(e, t); }, d = function () { var t; return a && !l ? (e._readableState && e._readableState.ended || (t = new r), i.call(e, t)) : s && !u ? (e._writableState && e._writableState.ended || (t = new r), i.call(e, t)) : void 0; }, y = function () { e.req.on("finish", f); }; return !function (t) { return t.setHeader && "function" == typeof t.abort; }(e) ? s && !e._writableState && (e.on("end", c), e.on("close", c)) : (e.on("complete", f), e.on("abort", d), e.req ? y() : e.on("request", y)), e.on("end", h), e.on("finish", f), !1 !== n.error && e.on("error", p), e.on("close", d), function () { e.removeListener("complete", f), e.removeListener("abort", d), e.removeListener("request", y), e.req && e.req.removeListener("finish", f), e.removeListener("end", c), e.removeListener("close", c), e.removeListener("finish", f), e.removeListener("end", h), e.removeListener("error", p), e.removeListener("close", d); }; };
2285
- }, 5167: function (t) { t.exports = function () { throw new Error("Readable.from is not available in the browser"); }; }, 9946: function (t, e, n) {
2286
- "use strict";
2287
- var r;
2288
- var o = n(4281).q, i = o.ERR_MISSING_ARGS, a = o.ERR_STREAM_DESTROYED;
2289
- function s(t) { if (t)
2290
- throw t; }
2291
- function c(t, e, o, i) { i = function (t) { var e = !1; return function () { e || (e = !0, t.apply(void 0, arguments)); }; }(i); var s = !1; t.on("close", (function () { s = !0; })), void 0 === r && (r = n(8610)), r(t, { readable: e, writable: o }, (function (t) { if (t)
2292
- return i(t); s = !0, i(); })); var c = !1; return function (e) { if (!s && !c)
2293
- return c = !0, function (t) { return t.setHeader && "function" == typeof t.abort; }(t) ? t.abort() : "function" == typeof t.destroy ? t.destroy() : void i(e || new a("pipe")); }; }
2294
- function u(t) { t(); }
2295
- function f(t, e) { return t.pipe(e); }
2296
- function l(t) { return t.length ? "function" != typeof t[t.length - 1] ? s : t.pop() : s; }
2297
- t.exports = function () { for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
2298
- e[n] = arguments[n]; var r, o = l(e); if (Array.isArray(e[0]) && (e = e[0]), e.length < 2)
2299
- throw new i("streams"); var a = e.map((function (t, n) { var i = n < e.length - 1; return c(t, i, n > 0, (function (t) { r || (r = t), t && a.forEach(u), i || (a.forEach(u), o(r)); })); })); return e.reduce(f); };
2300
- }, 2457: function (t, e, n) {
2301
- "use strict";
2302
- var r = n(4281).q.ERR_INVALID_OPT_VALUE;
2303
- t.exports = { getHighWaterMark: function (t, e, n, o) { var i = function (t, e, n) { return null != t.highWaterMark ? t.highWaterMark : e ? t[n] : null; }(e, o, n); if (null != i) {
2304
- if (!isFinite(i) || Math.floor(i) !== i || i < 0)
2305
- throw new r(o ? n : "highWaterMark", i);
2306
- return Math.floor(i);
2307
- } return t.objectMode ? 16 : 16384; } };
2308
- }, 2503: function (t, e, n) { t.exports = n(7187).EventEmitter; }, 9509: function (t, e, n) { var r = n(8764), o = r.Buffer; function i(t, e) { for (var n in t)
2309
- e[n] = t[n]; } function a(t, e, n) { return o(t, e, n); } o.from && o.alloc && o.allocUnsafe && o.allocUnsafeSlow ? t.exports = r : (i(r, e), e.Buffer = a), a.prototype = Object.create(o.prototype), i(o, a), a.from = function (t, e, n) { if ("number" == typeof t)
2310
- throw new TypeError("Argument must not be a number"); return o(t, e, n); }, a.alloc = function (t, e, n) { if ("number" != typeof t)
2311
- throw new TypeError("Argument must be a number"); var r = o(t); return void 0 !== e ? "string" == typeof n ? r.fill(e, n) : r.fill(e) : r.fill(0), r; }, a.allocUnsafe = function (t) { if ("number" != typeof t)
2312
- throw new TypeError("Argument must be a number"); return o(t); }, a.allocUnsafeSlow = function (t) { if ("number" != typeof t)
2313
- throw new TypeError("Argument must be a number"); return r.SlowBuffer(t); }; }, 2830: function (t, e, n) { t.exports = o; var r = n(7187).EventEmitter; function o() { r.call(this); } n(5717)(o, r), o.Readable = n(9481), o.Writable = n(4229), o.Duplex = n(6753), o.Transform = n(4605), o.PassThrough = n(2725), o.finished = n(8610), o.pipeline = n(9946), o.Stream = o, o.prototype.pipe = function (t, e) { var n = this; function o(e) { t.writable && !1 === t.write(e) && n.pause && n.pause(); } function i() { n.readable && n.resume && n.resume(); } n.on("data", o), t.on("drain", i), t._isStdio || e && !1 === e.end || (n.on("end", s), n.on("close", c)); var a = !1; function s() { a || (a = !0, t.end()); } function c() { a || (a = !0, "function" == typeof t.destroy && t.destroy()); } function u(t) { if (f(), 0 === r.listenerCount(this, "error"))
2314
- throw t; } function f() { n.removeListener("data", o), t.removeListener("drain", i), n.removeListener("end", s), n.removeListener("close", c), n.removeListener("error", u), t.removeListener("error", u), n.removeListener("end", f), n.removeListener("close", f), t.removeListener("close", f); } return n.on("error", u), t.on("error", u), n.on("end", f), n.on("close", f), t.on("close", f), t.emit("pipe", n), t; }; }, 2553: function (t, e, n) {
2315
- "use strict";
2316
- var r = n(9509).Buffer, o = r.isEncoding || function (t) { switch ((t = "" + t) && t.toLowerCase()) {
2317
- case "hex":
2318
- case "utf8":
2319
- case "utf-8":
2320
- case "ascii":
2321
- case "binary":
2322
- case "base64":
2323
- case "ucs2":
2324
- case "ucs-2":
2325
- case "utf16le":
2326
- case "utf-16le":
2327
- case "raw": return !0;
2328
- default: return !1;
2329
- } };
2330
- function i(t) { var e; switch (this.encoding = function (t) { var e = function (t) { if (!t)
2331
- return "utf8"; for (var e;;)
2332
- switch (t) {
2333
- case "utf8":
2334
- case "utf-8": return "utf8";
2335
- case "ucs2":
2336
- case "ucs-2":
2337
- case "utf16le":
2338
- case "utf-16le": return "utf16le";
2339
- case "latin1":
2340
- case "binary": return "latin1";
2341
- case "base64":
2342
- case "ascii":
2343
- case "hex": return t;
2344
- default:
2345
- if (e)
2346
- return;
2347
- t = ("" + t).toLowerCase(), e = !0;
2348
- } }(t); if ("string" != typeof e && (r.isEncoding === o || !o(t)))
2349
- throw new Error("Unknown encoding: " + t); return e || t; }(t), this.encoding) {
2350
- case "utf16le":
2351
- this.text = c, this.end = u, e = 4;
2352
- break;
2353
- case "utf8":
2354
- this.fillLast = s, e = 4;
2355
- break;
2356
- case "base64":
2357
- this.text = f, this.end = l, e = 3;
2358
- break;
2359
- default: return this.write = h, void (this.end = p);
2360
- } this.lastNeed = 0, this.lastTotal = 0, this.lastChar = r.allocUnsafe(e); }
2361
- function a(t) { return t <= 127 ? 0 : t >> 5 == 6 ? 2 : t >> 4 == 14 ? 3 : t >> 3 == 30 ? 4 : t >> 6 == 2 ? -1 : -2; }
2362
- function s(t) { var e = this.lastTotal - this.lastNeed, n = function (t, e, n) { if (128 != (192 & e[0]))
2363
- return t.lastNeed = 0, "�"; if (t.lastNeed > 1 && e.length > 1) {
2364
- if (128 != (192 & e[1]))
2365
- return t.lastNeed = 1, "�";
2366
- if (t.lastNeed > 2 && e.length > 2 && 128 != (192 & e[2]))
2367
- return t.lastNeed = 2, "�";
2368
- } }(this, t); return void 0 !== n ? n : this.lastNeed <= t.length ? (t.copy(this.lastChar, e, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (t.copy(this.lastChar, e, 0, t.length), void (this.lastNeed -= t.length)); }
2369
- function c(t, e) { if ((t.length - e) % 2 == 0) {
2370
- var n = t.toString("utf16le", e);
2371
- if (n) {
2372
- var r = n.charCodeAt(n.length - 1);
2373
- if (r >= 55296 && r <= 56319)
2374
- return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = t[t.length - 2], this.lastChar[1] = t[t.length - 1], n.slice(0, -1);
2375
- }
2376
- return n;
2377
- } return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = t[t.length - 1], t.toString("utf16le", e, t.length - 1); }
2378
- function u(t) { var e = t && t.length ? this.write(t) : ""; if (this.lastNeed) {
2379
- var n = this.lastTotal - this.lastNeed;
2380
- return e + this.lastChar.toString("utf16le", 0, n);
2381
- } return e; }
2382
- function f(t, e) { var n = (t.length - e) % 3; return 0 === n ? t.toString("base64", e) : (this.lastNeed = 3 - n, this.lastTotal = 3, 1 === n ? this.lastChar[0] = t[t.length - 1] : (this.lastChar[0] = t[t.length - 2], this.lastChar[1] = t[t.length - 1]), t.toString("base64", e, t.length - n)); }
2383
- function l(t) { var e = t && t.length ? this.write(t) : ""; return this.lastNeed ? e + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : e; }
2384
- function h(t) { return t.toString(this.encoding); }
2385
- function p(t) { return t && t.length ? this.write(t) : ""; }
2386
- e.s = i, i.prototype.write = function (t) { if (0 === t.length)
2387
- return ""; var e, n; if (this.lastNeed) {
2388
- if (void 0 === (e = this.fillLast(t)))
2389
- return "";
2390
- n = this.lastNeed, this.lastNeed = 0;
2391
- }
2392
- else
2393
- n = 0; return n < t.length ? e ? e + this.text(t, n) : this.text(t, n) : e || ""; }, i.prototype.end = function (t) { var e = t && t.length ? this.write(t) : ""; return this.lastNeed ? e + "�" : e; }, i.prototype.text = function (t, e) { var n = function (t, e, n) { var r = e.length - 1; if (r < n)
2394
- return 0; var o = a(e[r]); if (o >= 0)
2395
- return o > 0 && (t.lastNeed = o - 1), o; if (--r < n || -2 === o)
2396
- return 0; if ((o = a(e[r])) >= 0)
2397
- return o > 0 && (t.lastNeed = o - 2), o; if (--r < n || -2 === o)
2398
- return 0; if ((o = a(e[r])) >= 0)
2399
- return o > 0 && (2 === o ? o = 0 : t.lastNeed = o - 3), o; return 0; }(this, t, e); if (!this.lastNeed)
2400
- return t.toString("utf8", e); this.lastTotal = n; var r = t.length - (n - this.lastNeed); return t.copy(this.lastChar, 0, r), t.toString("utf8", e, r); }, i.prototype.fillLast = function (t) { if (this.lastNeed <= t.length)
2401
- return t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal); t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, t.length), this.lastNeed -= t.length; };
2402
- }, 2511: function (t, e, n) { var r; t = n.nmd(t), function (o) { e && e.nodeType, t && t.nodeType; var i = "object" == typeof global && global; i.global !== i && i.window !== i && i.self; var a, s = 2147483647, c = 36, u = /^xn--/, f = /[^\x20-\x7E]/, l = /[\x2E\u3002\uFF0E\uFF61]/g, h = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, p = Math.floor, d = String.fromCharCode; function y(t) { throw RangeError(h[t]); } function g(t, e) { for (var n = t.length, r = []; n--;)
2403
- r[n] = e(t[n]); return r; } function b(t, e) { var n = t.split("@"), r = ""; return n.length > 1 && (r = n[0] + "@", t = n[1]), r + g((t = t.replace(l, ".")).split("."), e).join("."); } function m(t) { for (var e, n, r = [], o = 0, i = t.length; o < i;)
2404
- (e = t.charCodeAt(o++)) >= 55296 && e <= 56319 && o < i ? 56320 == (64512 & (n = t.charCodeAt(o++))) ? r.push(((1023 & e) << 10) + (1023 & n) + 65536) : (r.push(e), o--) : r.push(e); return r; } function v(t) { return g(t, (function (t) { var e = ""; return t > 65535 && (e += d((t -= 65536) >>> 10 & 1023 | 55296), t = 56320 | 1023 & t), e += d(t); })).join(""); } function w(t, e) { return t + 22 + 75 * (t < 26) - ((0 != e) << 5); } function _(t, e, n) { var r = 0; for (t = n ? p(t / 700) : t >> 1, t += p(t / e); t > 455; r += c)
2405
- t = p(t / 35); return p(r + 36 * t / (t + 38)); } function S(t) { var e, n, r, o, i, a, u, f, l, h, d, g = [], b = t.length, m = 0, w = 128, S = 72; for ((n = t.lastIndexOf("-")) < 0 && (n = 0), r = 0; r < n; ++r)
2406
- t.charCodeAt(r) >= 128 && y("not-basic"), g.push(t.charCodeAt(r)); for (o = n > 0 ? n + 1 : 0; o < b;) {
2407
- for (i = m, a = 1, u = c; o >= b && y("invalid-input"), ((f = (d = t.charCodeAt(o++)) - 48 < 10 ? d - 22 : d - 65 < 26 ? d - 65 : d - 97 < 26 ? d - 97 : c) >= c || f > p((s - m) / a)) && y("overflow"), m += f * a, !(f < (l = u <= S ? 1 : u >= S + 26 ? 26 : u - S)); u += c)
2408
- a > p(s / (h = c - l)) && y("overflow"), a *= h;
2409
- S = _(m - i, e = g.length + 1, 0 == i), p(m / e) > s - w && y("overflow"), w += p(m / e), m %= e, g.splice(m++, 0, w);
2410
- } return v(g); } function E(t) { var e, n, r, o, i, a, u, f, l, h, g, b, v, S, E, O = []; for (b = (t = m(t)).length, e = 128, n = 0, i = 72, a = 0; a < b; ++a)
2411
- (g = t[a]) < 128 && O.push(d(g)); for (r = o = O.length, o && O.push("-"); r < b;) {
2412
- for (u = s, a = 0; a < b; ++a)
2413
- (g = t[a]) >= e && g < u && (u = g);
2414
- for (u - e > p((s - n) / (v = r + 1)) && y("overflow"), n += (u - e) * v, e = u, a = 0; a < b; ++a)
2415
- if ((g = t[a]) < e && ++n > s && y("overflow"), g == e) {
2416
- for (f = n, l = c; !(f < (h = l <= i ? 1 : l >= i + 26 ? 26 : l - i)); l += c)
2417
- E = f - h, S = c - h, O.push(d(w(h + E % S, 0))), f = p(E / S);
2418
- O.push(d(w(f, 0))), i = _(n, v, r == o), n = 0, ++r;
2419
- }
2420
- ++n, ++e;
2421
- } return O.join(""); } a = { version: "1.3.2", ucs2: { decode: m, encode: v }, decode: S, encode: E, toASCII: function (t) { return b(t, (function (t) { return f.test(t) ? "xn--" + E(t) : t; })); }, toUnicode: function (t) { return b(t, (function (t) { return u.test(t) ? S(t.slice(4).toLowerCase()) : t; })); } }, void 0 === (r = function () { return a; }.call(e, n, e, t)) || (t.exports = r); }(); }, 8575: function (t, e, n) {
2422
- "use strict";
2423
- var r = n(2511), o = n(2502);
2424
- function i() { this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null; }
2425
- var a = /^([a-z0-9.+-]+:)/i, s = /:[0-9]*$/, c = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, u = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", "\n", "\t"]), f = ["'"].concat(u), l = ["%", "/", "?", ";", "#"].concat(f), h = ["/", "?", "#"], p = /^[+a-z0-9A-Z_-]{0,63}$/, d = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, y = { javascript: !0, "javascript:": !0 }, g = { javascript: !0, "javascript:": !0 }, b = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, m = n(7673);
2426
- function v(t, e, n) { if (t && o.isObject(t) && t instanceof i)
2427
- return t; var r = new i; return r.parse(t, e, n), r; }
2428
- i.prototype.parse = function (t, e, n) { if (!o.isString(t))
2429
- throw new TypeError("Parameter 'url' must be a string, not " + typeof t); var i = t.indexOf("?"), s = -1 !== i && i < t.indexOf("#") ? "?" : "#", u = t.split(s); u[0] = u[0].replace(/\\/g, "/"); var v = t = u.join(s); if (v = v.trim(), !n && 1 === t.split("#").length) {
2430
- var w = c.exec(v);
2431
- if (w)
2432
- return this.path = v, this.href = v, this.pathname = w[1], w[2] ? (this.search = w[2], this.query = e ? m.parse(this.search.substr(1)) : this.search.substr(1)) : e && (this.search = "", this.query = {}), this;
2433
- } var _ = a.exec(v); if (_) {
2434
- var S = (_ = _[0]).toLowerCase();
2435
- this.protocol = S, v = v.substr(_.length);
2436
- } if (n || _ || v.match(/^\/\/[^@\/]+@[^@\/]+/)) {
2437
- var E = "//" === v.substr(0, 2);
2438
- !E || _ && g[_] || (v = v.substr(2), this.slashes = !0);
2439
- } if (!g[_] && (E || _ && !b[_])) {
2440
- for (var O, R, A = -1, T = 0; T < h.length; T++) {
2441
- -1 !== (k = v.indexOf(h[T])) && (-1 === A || k < A) && (A = k);
2442
- }
2443
- -1 !== (R = -1 === A ? v.lastIndexOf("@") : v.lastIndexOf("@", A)) && (O = v.slice(0, R), v = v.slice(R + 1), this.auth = decodeURIComponent(O)), A = -1;
2444
- for (T = 0; T < l.length; T++) {
2445
- var k;
2446
- -1 !== (k = v.indexOf(l[T])) && (-1 === A || k < A) && (A = k);
2447
- }
2448
- -1 === A && (A = v.length), this.host = v.slice(0, A), v = v.slice(A), this.parseHost(), this.hostname = this.hostname || "";
2449
- var I = "[" === this.hostname[0] && "]" === this.hostname[this.hostname.length - 1];
2450
- if (!I)
2451
- for (var j = this.hostname.split(/\./), N = (T = 0, j.length); T < N; T++) {
2452
- var B = j[T];
2453
- if (B && !B.match(p)) {
2454
- for (var P = "", L = 0, x = B.length; L < x; L++)
2455
- B.charCodeAt(L) > 127 ? P += "x" : P += B[L];
2456
- if (!P.match(p)) {
2457
- var F = j.slice(0, T), C = j.slice(T + 1), M = B.match(d);
2458
- M && (F.push(M[1]), C.unshift(M[2])), C.length && (v = "/" + C.join(".") + v), this.hostname = F.join(".");
2459
- break;
2460
- }
2461
- }
2462
- }
2463
- this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), I || (this.hostname = r.toASCII(this.hostname));
2464
- var U = this.port ? ":" + this.port : "", D = this.hostname || "";
2465
- this.host = D + U, this.href += this.host, I && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), "/" !== v[0] && (v = "/" + v));
2466
- } if (!y[S])
2467
- for (T = 0, N = f.length; T < N; T++) {
2468
- var q = f[T];
2469
- if (-1 !== v.indexOf(q)) {
2470
- var W = encodeURIComponent(q);
2471
- W === q && (W = escape(q)), v = v.split(q).join(W);
2472
- }
2473
- } var V = v.indexOf("#"); -1 !== V && (this.hash = v.substr(V), v = v.slice(0, V)); var G = v.indexOf("?"); if (-1 !== G ? (this.search = v.substr(G), this.query = v.substr(G + 1), e && (this.query = m.parse(this.query)), v = v.slice(0, G)) : e && (this.search = "", this.query = {}), v && (this.pathname = v), b[S] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
2474
- U = this.pathname || "";
2475
- var H = this.search || "";
2476
- this.path = U + H;
2477
- } return this.href = this.format(), this; }, i.prototype.format = function () { var t = this.auth || ""; t && (t = (t = encodeURIComponent(t)).replace(/%3A/i, ":"), t += "@"); var e = this.protocol || "", n = this.pathname || "", r = this.hash || "", i = !1, a = ""; this.host ? i = t + this.host : this.hostname && (i = t + (-1 === this.hostname.indexOf(":") ? this.hostname : "[" + this.hostname + "]"), this.port && (i += ":" + this.port)), this.query && o.isObject(this.query) && Object.keys(this.query).length && (a = m.stringify(this.query)); var s = this.search || a && "?" + a || ""; return e && ":" !== e.substr(-1) && (e += ":"), this.slashes || (!e || b[e]) && !1 !== i ? (i = "//" + (i || ""), n && "/" !== n.charAt(0) && (n = "/" + n)) : i || (i = ""), r && "#" !== r.charAt(0) && (r = "#" + r), s && "?" !== s.charAt(0) && (s = "?" + s), e + i + (n = n.replace(/[?#]/g, (function (t) { return encodeURIComponent(t); }))) + (s = s.replace("#", "%23")) + r; }, i.prototype.resolve = function (t) { return this.resolveObject(v(t, !1, !0)).format(); }, i.prototype.resolveObject = function (t) { if (o.isString(t)) {
2478
- var e = new i;
2479
- e.parse(t, !1, !0), t = e;
2480
- } for (var n = new i, r = Object.keys(this), a = 0; a < r.length; a++) {
2481
- var s = r[a];
2482
- n[s] = this[s];
2483
- } if (n.hash = t.hash, "" === t.href)
2484
- return n.href = n.format(), n; if (t.slashes && !t.protocol) {
2485
- for (var c = Object.keys(t), u = 0; u < c.length; u++) {
2486
- var f = c[u];
2487
- "protocol" !== f && (n[f] = t[f]);
2488
- }
2489
- return b[n.protocol] && n.hostname && !n.pathname && (n.path = n.pathname = "/"), n.href = n.format(), n;
2490
- } if (t.protocol && t.protocol !== n.protocol) {
2491
- if (!b[t.protocol]) {
2492
- for (var l = Object.keys(t), h = 0; h < l.length; h++) {
2493
- var p = l[h];
2494
- n[p] = t[p];
2495
- }
2496
- return n.href = n.format(), n;
2497
- }
2498
- if (n.protocol = t.protocol, t.host || g[t.protocol])
2499
- n.pathname = t.pathname;
2500
- else {
2501
- for (var d = (t.pathname || "").split("/"); d.length && !(t.host = d.shift());)
2502
- ;
2503
- t.host || (t.host = ""), t.hostname || (t.hostname = ""), "" !== d[0] && d.unshift(""), d.length < 2 && d.unshift(""), n.pathname = d.join("/");
2504
- }
2505
- if (n.search = t.search, n.query = t.query, n.host = t.host || "", n.auth = t.auth, n.hostname = t.hostname || t.host, n.port = t.port, n.pathname || n.search) {
2506
- var y = n.pathname || "", m = n.search || "";
2507
- n.path = y + m;
2508
- }
2509
- return n.slashes = n.slashes || t.slashes, n.href = n.format(), n;
2510
- } var v = n.pathname && "/" === n.pathname.charAt(0), w = t.host || t.pathname && "/" === t.pathname.charAt(0), _ = w || v || n.host && t.pathname, S = _, E = n.pathname && n.pathname.split("/") || [], O = (d = t.pathname && t.pathname.split("/") || [], n.protocol && !b[n.protocol]); if (O && (n.hostname = "", n.port = null, n.host && ("" === E[0] ? E[0] = n.host : E.unshift(n.host)), n.host = "", t.protocol && (t.hostname = null, t.port = null, t.host && ("" === d[0] ? d[0] = t.host : d.unshift(t.host)), t.host = null), _ = _ && ("" === d[0] || "" === E[0])), w)
2511
- n.host = t.host || "" === t.host ? t.host : n.host, n.hostname = t.hostname || "" === t.hostname ? t.hostname : n.hostname, n.search = t.search, n.query = t.query, E = d;
2512
- else if (d.length)
2513
- E || (E = []), E.pop(), E = E.concat(d), n.search = t.search, n.query = t.query;
2514
- else if (!o.isNullOrUndefined(t.search)) {
2515
- if (O)
2516
- n.hostname = n.host = E.shift(), (I = !!(n.host && n.host.indexOf("@") > 0) && n.host.split("@")) && (n.auth = I.shift(), n.host = n.hostname = I.shift());
2517
- return n.search = t.search, n.query = t.query, o.isNull(n.pathname) && o.isNull(n.search) || (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.href = n.format(), n;
2518
- } if (!E.length)
2519
- return n.pathname = null, n.search ? n.path = "/" + n.search : n.path = null, n.href = n.format(), n; for (var R = E.slice(-1)[0], A = (n.host || t.host || E.length > 1) && ("." === R || ".." === R) || "" === R, T = 0, k = E.length; k >= 0; k--)
2520
- "." === (R = E[k]) ? E.splice(k, 1) : ".." === R ? (E.splice(k, 1), T++) : T && (E.splice(k, 1), T--); if (!_ && !S)
2521
- for (; T--; T)
2522
- E.unshift(".."); !_ || "" === E[0] || E[0] && "/" === E[0].charAt(0) || E.unshift(""), A && "/" !== E.join("/").substr(-1) && E.push(""); var I, j = "" === E[0] || E[0] && "/" === E[0].charAt(0); O && (n.hostname = n.host = j ? "" : E.length ? E.shift() : "", (I = !!(n.host && n.host.indexOf("@") > 0) && n.host.split("@")) && (n.auth = I.shift(), n.host = n.hostname = I.shift())); return (_ = _ || n.host && E.length) && !j && E.unshift(""), E.length ? n.pathname = E.join("/") : (n.pathname = null, n.path = null), o.isNull(n.pathname) && o.isNull(n.search) || (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.auth = t.auth || n.auth, n.slashes = n.slashes || t.slashes, n.href = n.format(), n; }, i.prototype.parseHost = function () { var t = this.host, e = s.exec(t); e && (":" !== (e = e[0]) && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t); };
2523
- }, 2502: function (t) {
2524
- "use strict";
2525
- t.exports = { isString: function (t) { return "string" == typeof t; }, isObject: function (t) { return "object" == typeof t && null !== t; }, isNull: function (t) { return null === t; }, isNullOrUndefined: function (t) { return null == t; } };
2526
- }, 4927: function (t) { function e(t) { try {
2527
- if (!global.localStorage)
2528
- return !1;
2529
- }
2530
- catch (t) {
2531
- return !1;
2532
- } var e = global.localStorage[t]; return null != e && "true" === String(e).toLowerCase(); } t.exports = function (t, n) { if (e("noDeprecation"))
2533
- return t; var r = !1; return function () { if (!r) {
2534
- if (e("throwDeprecation"))
2535
- throw new Error(n);
2536
- e("traceDeprecation") ? console.trace(n) : console.warn(n), r = !0;
2537
- } return t.apply(this, arguments); }; }; }, 384: function (t) { t.exports = function (t) { return t && "object" == typeof t && "function" == typeof t.copy && "function" == typeof t.fill && "function" == typeof t.readUInt8; }; }, 5955: function (t, e, n) {
2538
- "use strict";
2539
- var r = n(2584), o = n(8662), i = n(6430), a = n(5692);
2540
- function s(t) { return t.call.bind(t); }
2541
- var c = "undefined" != typeof BigInt, u = "undefined" != typeof Symbol, f = s(Object.prototype.toString), l = s(Number.prototype.valueOf), h = s(String.prototype.valueOf), p = s(Boolean.prototype.valueOf);
2542
- if (c)
2543
- var d = s(BigInt.prototype.valueOf);
2544
- if (u)
2545
- var y = s(Symbol.prototype.valueOf);
2546
- function g(t, e) { if ("object" != typeof t)
2547
- return !1; try {
2548
- return e(t), !0;
2549
- }
2550
- catch (t) {
2551
- return !1;
2552
- } }
2553
- function b(t) { return "[object Map]" === f(t); }
2554
- function m(t) { return "[object Set]" === f(t); }
2555
- function v(t) { return "[object WeakMap]" === f(t); }
2556
- function w(t) { return "[object WeakSet]" === f(t); }
2557
- function _(t) { return "[object ArrayBuffer]" === f(t); }
2558
- function S(t) { return "undefined" != typeof ArrayBuffer && (_.working ? _(t) : t instanceof ArrayBuffer); }
2559
- function E(t) { return "[object DataView]" === f(t); }
2560
- function O(t) { return "undefined" != typeof DataView && (E.working ? E(t) : t instanceof DataView); }
2561
- e.isArgumentsObject = r, e.isGeneratorFunction = o, e.isTypedArray = a, e.isPromise = function (t) { return "undefined" != typeof Promise && t instanceof Promise || null !== t && "object" == typeof t && "function" == typeof t.then && "function" == typeof t.catch; }, e.isArrayBufferView = function (t) { return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(t) : a(t) || O(t); }, e.isUint8Array = function (t) { return "Uint8Array" === i(t); }, e.isUint8ClampedArray = function (t) { return "Uint8ClampedArray" === i(t); }, e.isUint16Array = function (t) { return "Uint16Array" === i(t); }, e.isUint32Array = function (t) { return "Uint32Array" === i(t); }, e.isInt8Array = function (t) { return "Int8Array" === i(t); }, e.isInt16Array = function (t) { return "Int16Array" === i(t); }, e.isInt32Array = function (t) { return "Int32Array" === i(t); }, e.isFloat32Array = function (t) { return "Float32Array" === i(t); }, e.isFloat64Array = function (t) { return "Float64Array" === i(t); }, e.isBigInt64Array = function (t) { return "BigInt64Array" === i(t); }, e.isBigUint64Array = function (t) { return "BigUint64Array" === i(t); }, b.working = "undefined" != typeof Map && b(new Map), e.isMap = function (t) { return "undefined" != typeof Map && (b.working ? b(t) : t instanceof Map); }, m.working = "undefined" != typeof Set && m(new Set), e.isSet = function (t) { return "undefined" != typeof Set && (m.working ? m(t) : t instanceof Set); }, v.working = "undefined" != typeof WeakMap && v(new WeakMap), e.isWeakMap = function (t) { return "undefined" != typeof WeakMap && (v.working ? v(t) : t instanceof WeakMap); }, w.working = "undefined" != typeof WeakSet && w(new WeakSet), e.isWeakSet = function (t) { return w(t); }, _.working = "undefined" != typeof ArrayBuffer && _(new ArrayBuffer), e.isArrayBuffer = S, E.working = "undefined" != typeof ArrayBuffer && "undefined" != typeof DataView && E(new DataView(new ArrayBuffer(1), 0, 1)), e.isDataView = O;
2562
- var R = "undefined" != typeof SharedArrayBuffer ? SharedArrayBuffer : void 0;
2563
- function A(t) { return "[object SharedArrayBuffer]" === f(t); }
2564
- function T(t) { return void 0 !== R && (void 0 === A.working && (A.working = A(new R)), A.working ? A(t) : t instanceof R); }
2565
- function k(t) { return g(t, l); }
2566
- function I(t) { return g(t, h); }
2567
- function j(t) { return g(t, p); }
2568
- function N(t) { return c && g(t, d); }
2569
- function B(t) { return u && g(t, y); }
2570
- e.isSharedArrayBuffer = T, e.isAsyncFunction = function (t) { return "[object AsyncFunction]" === f(t); }, e.isMapIterator = function (t) { return "[object Map Iterator]" === f(t); }, e.isSetIterator = function (t) { return "[object Set Iterator]" === f(t); }, e.isGeneratorObject = function (t) { return "[object Generator]" === f(t); }, e.isWebAssemblyCompiledModule = function (t) { return "[object WebAssembly.Module]" === f(t); }, e.isNumberObject = k, e.isStringObject = I, e.isBooleanObject = j, e.isBigIntObject = N, e.isSymbolObject = B, e.isBoxedPrimitive = function (t) { return k(t) || I(t) || j(t) || N(t) || B(t); }, e.isAnyArrayBuffer = function (t) { return "undefined" != typeof Uint8Array && (S(t) || T(t)); }, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach((function (t) { Object.defineProperty(e, t, { enumerable: !1, value: function () { throw new Error(t + " is not supported in userland"); } }); }));
2571
- }, 9539: function (t, e, n) { var r = Object.getOwnPropertyDescriptors || function (t) { for (var e = Object.keys(t), n = {}, r = 0; r < e.length; r++)
2572
- n[e[r]] = Object.getOwnPropertyDescriptor(t, e[r]); return n; }, o = /%[sdj%]/g; e.format = function (t) { if (!b(t)) {
2573
- for (var e = [], n = 0; n < arguments.length; n++)
2574
- e.push(s(arguments[n]));
2575
- return e.join(" ");
2576
- } n = 1; for (var r = arguments, i = r.length, a = String(t).replace(o, (function (t) { if ("%%" === t)
2577
- return "%"; if (n >= i)
2578
- return t; switch (t) {
2579
- case "%s": return String(r[n++]);
2580
- case "%d": return Number(r[n++]);
2581
- case "%j": try {
2582
- return JSON.stringify(r[n++]);
2583
- }
2584
- catch (t) {
2585
- return "[Circular]";
2586
- }
2587
- default: return t;
2588
- } })), c = r[n]; n < i; c = r[++n])
2589
- y(c) || !w(c) ? a += " " + c : a += " " + s(c); return a; }, e.deprecate = function (t, n) { if ("undefined" != typeof process && !0 === process.noDeprecation)
2590
- return t; if ("undefined" == typeof process)
2591
- return function () { return e.deprecate(t, n).apply(this, arguments); }; var r = !1; return function () { if (!r) {
2592
- if (process.throwDeprecation)
2593
- throw new Error(n);
2594
- process.traceDeprecation ? console.trace(n) : console.error(n), r = !0;
2595
- } return t.apply(this, arguments); }; }; var i = {}, a = /^$/; function s(t, n) { var r = { seen: [], stylize: u }; return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), d(n) ? r.showHidden = n : n && e._extend(r, n), m(r.showHidden) && (r.showHidden = !1), m(r.depth) && (r.depth = 2), m(r.colors) && (r.colors = !1), m(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = c), f(r, t, r.depth); } function c(t, e) { var n = s.styles[e]; return n ? "[" + s.colors[n][0] + "m" + t + "[" + s.colors[n][1] + "m" : t; } function u(t, e) { return t; } function f(t, n, r) { if (t.customInspect && n && E(n.inspect) && n.inspect !== e.inspect && (!n.constructor || n.constructor.prototype !== n)) {
2596
- var o = n.inspect(r, t);
2597
- return b(o) || (o = f(t, o, r)), o;
2598
- } var i = function (t, e) { if (m(e))
2599
- return t.stylize("undefined", "undefined"); if (b(e)) {
2600
- var n = "'" + JSON.stringify(e).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
2601
- return t.stylize(n, "string");
2602
- } if (g(e))
2603
- return t.stylize("" + e, "number"); if (d(e))
2604
- return t.stylize("" + e, "boolean"); if (y(e))
2605
- return t.stylize("null", "null"); }(t, n); if (i)
2606
- return i; var a = Object.keys(n), s = function (t) { var e = {}; return t.forEach((function (t, n) { e[t] = !0; })), e; }(a); if (t.showHidden && (a = Object.getOwnPropertyNames(n)), S(n) && (a.indexOf("message") >= 0 || a.indexOf("description") >= 0))
2607
- return l(n); if (0 === a.length) {
2608
- if (E(n)) {
2609
- var c = n.name ? ": " + n.name : "";
2610
- return t.stylize("[Function" + c + "]", "special");
2611
- }
2612
- if (v(n))
2613
- return t.stylize(RegExp.prototype.toString.call(n), "regexp");
2614
- if (_(n))
2615
- return t.stylize(Date.prototype.toString.call(n), "date");
2616
- if (S(n))
2617
- return l(n);
2618
- } var u, w = "", O = !1, R = ["{", "}"]; (p(n) && (O = !0, R = ["[", "]"]), E(n)) && (w = " [Function" + (n.name ? ": " + n.name : "") + "]"); return v(n) && (w = " " + RegExp.prototype.toString.call(n)), _(n) && (w = " " + Date.prototype.toUTCString.call(n)), S(n) && (w = " " + l(n)), 0 !== a.length || O && 0 != n.length ? r < 0 ? v(n) ? t.stylize(RegExp.prototype.toString.call(n), "regexp") : t.stylize("[Object]", "special") : (t.seen.push(n), u = O ? function (t, e, n, r, o) { for (var i = [], a = 0, s = e.length; a < s; ++a)
2619
- k(e, String(a)) ? i.push(h(t, e, n, r, String(a), !0)) : i.push(""); return o.forEach((function (o) { o.match(/^\d+$/) || i.push(h(t, e, n, r, o, !0)); })), i; }(t, n, r, s, a) : a.map((function (e) { return h(t, n, r, s, e, O); })), t.seen.pop(), function (t, e, n) { if (t.reduce((function (t, e) { return e.indexOf("\n") >= 0 && 0, t + e.replace(/\u001b\[\d\d?m/g, "").length + 1; }), 0) > 60)
2620
- return n[0] + ("" === e ? "" : e + "\n ") + " " + t.join(",\n ") + " " + n[1]; return n[0] + e + " " + t.join(", ") + " " + n[1]; }(u, w, R)) : R[0] + w + R[1]; } function l(t) { return "[" + Error.prototype.toString.call(t) + "]"; } function h(t, e, n, r, o, i) { var a, s, c; if ((c = Object.getOwnPropertyDescriptor(e, o) || { value: e[o] }).get ? s = c.set ? t.stylize("[Getter/Setter]", "special") : t.stylize("[Getter]", "special") : c.set && (s = t.stylize("[Setter]", "special")), k(r, o) || (a = "[" + o + "]"), s || (t.seen.indexOf(c.value) < 0 ? (s = y(n) ? f(t, c.value, null) : f(t, c.value, n - 1)).indexOf("\n") > -1 && (s = i ? s.split("\n").map((function (t) { return " " + t; })).join("\n").slice(2) : "\n" + s.split("\n").map((function (t) { return " " + t; })).join("\n")) : s = t.stylize("[Circular]", "special")), m(a)) {
2621
- if (i && o.match(/^\d+$/))
2622
- return s;
2623
- (a = JSON.stringify("" + o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (a = a.slice(1, -1), a = t.stylize(a, "name")) : (a = a.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), a = t.stylize(a, "string"));
2624
- } return a + ": " + s; } function p(t) { return Array.isArray(t); } function d(t) { return "boolean" == typeof t; } function y(t) { return null === t; } function g(t) { return "number" == typeof t; } function b(t) { return "string" == typeof t; } function m(t) { return void 0 === t; } function v(t) { return w(t) && "[object RegExp]" === O(t); } function w(t) { return "object" == typeof t && null !== t; } function _(t) { return w(t) && "[object Date]" === O(t); } function S(t) { return w(t) && ("[object Error]" === O(t) || t instanceof Error); } function E(t) { return "function" == typeof t; } function O(t) { return Object.prototype.toString.call(t); } function R(t) { return t < 10 ? "0" + t.toString(10) : t.toString(10); } e.debuglog = function (t) { if (t = t.toUpperCase(), !i[t])
2625
- if (a.test(t)) {
2626
- var n = process.pid;
2627
- i[t] = function () { var r = e.format.apply(e, arguments); console.error("%s %d: %s", t, n, r); };
2628
- }
2629
- else
2630
- i[t] = function () { }; return i[t]; }, e.inspect = s, s.colors = { bold: [1, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], white: [37, 39], grey: [90, 39], black: [30, 39], blue: [34, 39], cyan: [36, 39], green: [32, 39], magenta: [35, 39], red: [31, 39], yellow: [33, 39] }, s.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red" }, e.types = n(5955), e.isArray = p, e.isBoolean = d, e.isNull = y, e.isNullOrUndefined = function (t) { return null == t; }, e.isNumber = g, e.isString = b, e.isSymbol = function (t) { return "symbol" == typeof t; }, e.isUndefined = m, e.isRegExp = v, e.types.isRegExp = v, e.isObject = w, e.isDate = _, e.types.isDate = _, e.isError = S, e.types.isNativeError = S, e.isFunction = E, e.isPrimitive = function (t) { return null === t || "boolean" == typeof t || "number" == typeof t || "string" == typeof t || "symbol" == typeof t || void 0 === t; }, e.isBuffer = n(384); var A = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; function T() { var t = new Date, e = [R(t.getHours()), R(t.getMinutes()), R(t.getSeconds())].join(":"); return [t.getDate(), A[t.getMonth()], e].join(" "); } function k(t, e) { return Object.prototype.hasOwnProperty.call(t, e); } e.log = function () { console.log("%s - %s", T(), e.format.apply(e, arguments)); }, e.inherits = n(5717), e._extend = function (t, e) { if (!e || !w(e))
2631
- return t; for (var n = Object.keys(e), r = n.length; r--;)
2632
- t[n[r]] = e[n[r]]; return t; }; var I = "undefined" != typeof Symbol ? Symbol("util.promisify.custom") : void 0; function j(t, e) { if (!t) {
2633
- var n = new Error("Promise was rejected with a falsy value");
2634
- n.reason = t, t = n;
2635
- } return e(t); } e.promisify = function (t) { if ("function" != typeof t)
2636
- throw new TypeError('The "original" argument must be of type Function'); if (I && t[I]) {
2637
- var e;
2638
- if ("function" != typeof (e = t[I]))
2639
- throw new TypeError('The "util.promisify.custom" argument must be of type Function');
2640
- return Object.defineProperty(e, I, { value: e, enumerable: !1, writable: !1, configurable: !0 }), e;
2641
- } function e() { for (var e, n, r = new Promise((function (t, r) { e = t, n = r; })), o = [], i = 0; i < arguments.length; i++)
2642
- o.push(arguments[i]); o.push((function (t, r) { t ? n(t) : e(r); })); try {
2643
- t.apply(this, o);
2644
- }
2645
- catch (t) {
2646
- n(t);
2647
- } return r; } return Object.setPrototypeOf(e, Object.getPrototypeOf(t)), I && Object.defineProperty(e, I, { value: e, enumerable: !1, writable: !1, configurable: !0 }), Object.defineProperties(e, r(t)); }, e.promisify.custom = I, e.callbackify = function (t) { if ("function" != typeof t)
2648
- throw new TypeError('The "original" argument must be of type Function'); function e() { for (var e = [], n = 0; n < arguments.length; n++)
2649
- e.push(arguments[n]); var r = e.pop(); if ("function" != typeof r)
2650
- throw new TypeError("The last argument must be of type Function"); var o = this, i = function () { return r.apply(o, arguments); }; t.apply(this, e).then((function (t) { process.nextTick(i.bind(null, null, t)); }), (function (t) { process.nextTick(j.bind(null, t, i)); })); } return Object.setPrototypeOf(e, Object.getPrototypeOf(t)), Object.defineProperties(e, r(t)), e; }; }, 6430: function (t, e, n) {
2651
- "use strict";
2652
- var r = n(4029), o = n(3083), i = n(1924), a = i("Object.prototype.toString"), s = n(6410)(), c = "undefined" == typeof globalThis ? global : globalThis, u = o(), f = i("String.prototype.slice"), l = {}, h = n(882), p = Object.getPrototypeOf;
2653
- s && h && p && r(u, (function (t) { if ("function" == typeof c[t]) {
2654
- var e = new c[t];
2655
- if (Symbol.toStringTag in e) {
2656
- var n = p(e), r = h(n, Symbol.toStringTag);
2657
- if (!r) {
2658
- var o = p(n);
2659
- r = h(o, Symbol.toStringTag);
2660
- }
2661
- l[t] = r.get;
2662
- }
2663
- } }));
2664
- var d = n(5692);
2665
- t.exports = function (t) { return !!d(t) && (s && Symbol.toStringTag in t ? function (t) { var e = !1; return r(l, (function (n, r) { if (!e)
2666
- try {
2667
- var o = n.call(t);
2668
- o === r && (e = o);
2669
- }
2670
- catch (t) { } })), e; }(t) : f(a(t), 8, -1)); };
2671
- }, 9243: function () { }, 2361: function () { }, 4616: function () { }, 3083: function (t) {
2672
- "use strict";
2673
- var e = ["BigInt64Array", "BigUint64Array", "Float32Array", "Float64Array", "Int16Array", "Int32Array", "Int8Array", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray"], n = "undefined" == typeof globalThis ? global : globalThis;
2674
- t.exports = function () { for (var t = [], r = 0; r < e.length; r++)
2675
- "function" == typeof n[e[r]] && (t[t.length] = e[r]); return t; };
2676
- }, 882: function (t, e, n) {
2677
- "use strict";
2678
- var r = n(210)("%Object.getOwnPropertyDescriptor%", !0);
2679
- if (r)
2680
- try {
2681
- r([], "length");
2682
- }
2683
- catch (t) {
2684
- r = null;
2685
- }
2686
- t.exports = r;
2687
- } }, e = {}; function n(r) { var o = e[r]; if (void 0 !== o)
2688
- return o.exports; var i = e[r] = { id: r, loaded: !1, exports: {} }; return t[r].call(i.exports, i, i.exports, n), i.loaded = !0, i.exports; } return n.nmd = function (t) { return t.paths = [], t.children || (t.children = []), t; }, n(6551); }(); }));