lakutata 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/com/database.cjs +2 -2
- package/com/database.d.ts +4 -1
- package/com/database.mjs +2 -2
- package/com/docker.cjs +1 -1
- package/com/docker.mjs +1 -1
- package/decorator/orm.cjs +2 -2
- package/decorator/orm.mjs +2 -2
- package/helper.cjs +42 -26
- package/helper.d.ts +22 -1
- package/helper.mjs +11 -1
- package/orm.cjs +2 -2
- package/orm.mjs +32 -32
- package/package.json +1 -1
- package/src/components/Database.cjs +10 -7
- package/src/components/Database.mjs +6 -3
- package/src/components/docker/ConnectionOptionsBuilder.cjs +1 -1
- package/src/components/docker/ConnectionOptionsBuilder.mjs +1 -1
- package/src/components/docker/Docker.cjs +1 -1
- package/src/components/docker/Docker.mjs +1 -1
- package/src/components/docker/lib/DockerContainer.cjs +1 -1
- package/src/components/docker/lib/DockerContainer.mjs +1 -1
- package/src/components/docker/lib/DockerContainerTTY.cjs +1 -1
- package/src/components/docker/lib/DockerContainerTTY.mjs +1 -1
- package/src/decorators/orm/AfterInsert.cjs +2 -2
- package/src/decorators/orm/AfterInsert.mjs +2 -2
- package/src/decorators/orm/AfterLoad.cjs +2 -2
- package/src/decorators/orm/AfterLoad.mjs +2 -2
- package/src/decorators/orm/AfterRecover.cjs +2 -2
- package/src/decorators/orm/AfterRecover.mjs +2 -2
- package/src/decorators/orm/AfterRemove.cjs +2 -2
- package/src/decorators/orm/AfterRemove.mjs +2 -2
- package/src/decorators/orm/AfterSoftRemove.cjs +2 -2
- package/src/decorators/orm/AfterSoftRemove.mjs +2 -2
- package/src/decorators/orm/AfterUpdate.cjs +2 -2
- package/src/decorators/orm/AfterUpdate.mjs +2 -2
- package/src/decorators/orm/BeforeInsert.cjs +2 -2
- package/src/decorators/orm/BeforeInsert.mjs +2 -2
- package/src/decorators/orm/BeforeRecover.cjs +2 -2
- package/src/decorators/orm/BeforeRecover.mjs +2 -2
- package/src/decorators/orm/BeforeRemove.cjs +2 -2
- package/src/decorators/orm/BeforeRemove.mjs +2 -2
- package/src/decorators/orm/BeforeSoftRemove.cjs +2 -2
- package/src/decorators/orm/BeforeSoftRemove.mjs +2 -2
- package/src/decorators/orm/BeforeUpdate.cjs +2 -2
- package/src/decorators/orm/BeforeUpdate.mjs +2 -2
- package/src/decorators/orm/Check.cjs +2 -2
- package/src/decorators/orm/Check.mjs +2 -2
- package/src/decorators/orm/ChildEntity.cjs +2 -2
- package/src/decorators/orm/ChildEntity.mjs +2 -2
- package/src/decorators/orm/Column.cjs +16 -16
- package/src/decorators/orm/Column.mjs +4 -4
- package/src/decorators/orm/CreateDateColumn.cjs +2 -2
- package/src/decorators/orm/CreateDateColumn.mjs +2 -2
- package/src/decorators/orm/DeleteDateColumn.cjs +2 -2
- package/src/decorators/orm/DeleteDateColumn.mjs +2 -2
- package/src/decorators/orm/Entity.cjs +2 -2
- package/src/decorators/orm/Entity.mjs +2 -2
- package/src/decorators/orm/EventSubscriber.cjs +2 -2
- package/src/decorators/orm/EventSubscriber.mjs +2 -2
- package/src/decorators/orm/Exclusion.cjs +2 -2
- package/src/decorators/orm/Exclusion.mjs +2 -2
- package/src/decorators/orm/Generated.cjs +2 -2
- package/src/decorators/orm/Generated.mjs +2 -2
- package/src/decorators/orm/Index.cjs +2 -2
- package/src/decorators/orm/Index.mjs +2 -2
- package/src/decorators/orm/JoinColumn.cjs +2 -2
- package/src/decorators/orm/JoinColumn.mjs +2 -2
- package/src/decorators/orm/JoinTable.cjs +2 -2
- package/src/decorators/orm/JoinTable.mjs +2 -2
- package/src/decorators/orm/ManyToMany.cjs +2 -2
- package/src/decorators/orm/ManyToMany.mjs +2 -2
- package/src/decorators/orm/ManyToOne.cjs +2 -2
- package/src/decorators/orm/ManyToOne.mjs +2 -2
- package/src/decorators/orm/ObjectIdColumn.cjs +2 -2
- package/src/decorators/orm/ObjectIdColumn.mjs +2 -2
- package/src/decorators/orm/OneToMany.cjs +2 -2
- package/src/decorators/orm/OneToMany.mjs +2 -2
- package/src/decorators/orm/OneToOne.cjs +2 -2
- package/src/decorators/orm/OneToOne.mjs +2 -2
- package/src/decorators/orm/PrimaryColumn.cjs +3 -3
- package/src/decorators/orm/PrimaryColumn.mjs +4 -4
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +2 -2
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +2 -2
- package/src/decorators/orm/RelationId.cjs +2 -2
- package/src/decorators/orm/RelationId.mjs +2 -2
- package/src/decorators/orm/TableInheritance.cjs +2 -2
- package/src/decorators/orm/TableInheritance.mjs +2 -2
- package/src/decorators/orm/Tree.cjs +2 -2
- package/src/decorators/orm/Tree.mjs +2 -2
- package/src/decorators/orm/TreeChildren.cjs +2 -2
- package/src/decorators/orm/TreeChildren.mjs +2 -2
- package/src/decorators/orm/TreeLevelColumn.cjs +2 -2
- package/src/decorators/orm/TreeLevelColumn.mjs +2 -2
- package/src/decorators/orm/TreeParent.cjs +2 -2
- package/src/decorators/orm/TreeParent.mjs +2 -2
- package/src/decorators/orm/Unique.cjs +2 -2
- package/src/decorators/orm/Unique.mjs +2 -2
- package/src/decorators/orm/UpdateDateColumn.cjs +2 -2
- package/src/decorators/orm/UpdateDateColumn.mjs +2 -2
- package/src/decorators/orm/VersionColumn.cjs +2 -2
- package/src/decorators/orm/VersionColumn.mjs +2 -2
- package/src/decorators/orm/ViewColumn.cjs +2 -2
- package/src/decorators/orm/ViewColumn.mjs +2 -2
- package/src/decorators/orm/ViewEntity.cjs +2 -2
- package/src/decorators/orm/ViewEntity.mjs +2 -2
- package/src/decorators/orm/VirtualColumn.cjs +2 -2
- package/src/decorators/orm/VirtualColumn.mjs +2 -2
- package/src/lib/helpers/Glob.cjs +1 -1
- package/src/lib/helpers/Glob.mjs +1 -1
- package/src/lib/helpers/MD5.cjs +22 -0
- package/src/lib/helpers/MD5.mjs +16 -0
- package/src/lib/helpers/SHA1.cjs +22 -0
- package/src/lib/helpers/SHA1.mjs +16 -0
- package/src/lib/helpers/SHA256.cjs +22 -0
- package/src/lib/helpers/SHA256.mjs +16 -0
- package/vendor/Package.14.cjs +20 -22
- package/vendor/Package.14.mjs +21 -19
- package/vendor/Package.16.cjs +1 -1
- package/vendor/Package.16.mjs +1 -1
- package/vendor/Package.72.cjs +4118 -174
- package/vendor/Package.72.mjs +4128 -174
- package/vendor/Package.73.cjs +173 -735
- package/vendor/Package.73.mjs +174 -728
- package/vendor/Package.74.cjs +784 -0
- package/vendor/Package.74.mjs +772 -0
|
@@ -0,0 +1,784 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const e = require("./Package.5.cjs");
|
|
4
|
+
|
|
5
|
+
require("./Package.13.cjs");
|
|
6
|
+
|
|
7
|
+
const r = require("buffer");
|
|
8
|
+
|
|
9
|
+
require("./Package.6.cjs");
|
|
10
|
+
|
|
11
|
+
require("./Package.10.cjs");
|
|
12
|
+
|
|
13
|
+
const t = require("os");
|
|
14
|
+
|
|
15
|
+
const n = require("tty");
|
|
16
|
+
|
|
17
|
+
const s = require("util");
|
|
18
|
+
|
|
19
|
+
const o = e => e && e.__esModule ? e : {
|
|
20
|
+
default: e
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const i = o(r);
|
|
24
|
+
|
|
25
|
+
const c = o(t);
|
|
26
|
+
|
|
27
|
+
const u = o(n);
|
|
28
|
+
|
|
29
|
+
const a = o(s);
|
|
30
|
+
|
|
31
|
+
var f;
|
|
32
|
+
|
|
33
|
+
var l;
|
|
34
|
+
|
|
35
|
+
function p() {
|
|
36
|
+
if (l) return f;
|
|
37
|
+
l = 1;
|
|
38
|
+
"use strict";
|
|
39
|
+
f = (e, r = process.argv) => {
|
|
40
|
+
const t = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--";
|
|
41
|
+
const n = r.indexOf(t + e);
|
|
42
|
+
const s = r.indexOf("--");
|
|
43
|
+
return n !== -1 && (s === -1 || n < s);
|
|
44
|
+
};
|
|
45
|
+
return f;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var C;
|
|
49
|
+
|
|
50
|
+
var d;
|
|
51
|
+
|
|
52
|
+
function m() {
|
|
53
|
+
if (d) return C;
|
|
54
|
+
d = 1;
|
|
55
|
+
"use strict";
|
|
56
|
+
const e = c.default;
|
|
57
|
+
const r = u.default;
|
|
58
|
+
const t = p();
|
|
59
|
+
const {env: n} = process;
|
|
60
|
+
let s;
|
|
61
|
+
if (t("no-color") || t("no-colors") || t("color=false") || t("color=never")) {
|
|
62
|
+
s = 0;
|
|
63
|
+
} else if (t("color") || t("colors") || t("color=true") || t("color=always")) {
|
|
64
|
+
s = 1;
|
|
65
|
+
}
|
|
66
|
+
if ("FORCE_COLOR" in n) {
|
|
67
|
+
if (n.FORCE_COLOR === "true") {
|
|
68
|
+
s = 1;
|
|
69
|
+
} else if (n.FORCE_COLOR === "false") {
|
|
70
|
+
s = 0;
|
|
71
|
+
} else {
|
|
72
|
+
s = n.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(n.FORCE_COLOR, 10), 3);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function o(e) {
|
|
76
|
+
if (e === 0) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
level: e,
|
|
81
|
+
hasBasic: true,
|
|
82
|
+
has256: e >= 2,
|
|
83
|
+
has16m: e >= 3
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function i(r, o) {
|
|
87
|
+
if (s === 0) {
|
|
88
|
+
return 0;
|
|
89
|
+
}
|
|
90
|
+
if (t("color=16m") || t("color=full") || t("color=truecolor")) {
|
|
91
|
+
return 3;
|
|
92
|
+
}
|
|
93
|
+
if (t("color=256")) {
|
|
94
|
+
return 2;
|
|
95
|
+
}
|
|
96
|
+
if (r && !o && s === undefined) {
|
|
97
|
+
return 0;
|
|
98
|
+
}
|
|
99
|
+
const i = s || 0;
|
|
100
|
+
if (n.TERM === "dumb") {
|
|
101
|
+
return i;
|
|
102
|
+
}
|
|
103
|
+
if (process.platform === "win32") {
|
|
104
|
+
const r = e.release().split(".");
|
|
105
|
+
if (Number(r[0]) >= 10 && Number(r[2]) >= 10586) {
|
|
106
|
+
return Number(r[2]) >= 14931 ? 3 : 2;
|
|
107
|
+
}
|
|
108
|
+
return 1;
|
|
109
|
+
}
|
|
110
|
+
if ("CI" in n) {
|
|
111
|
+
if ([ "TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE" ].some((e => e in n)) || n.CI_NAME === "codeship") {
|
|
112
|
+
return 1;
|
|
113
|
+
}
|
|
114
|
+
return i;
|
|
115
|
+
}
|
|
116
|
+
if ("TEAMCITY_VERSION" in n) {
|
|
117
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION) ? 1 : 0;
|
|
118
|
+
}
|
|
119
|
+
if (n.COLORTERM === "truecolor") {
|
|
120
|
+
return 3;
|
|
121
|
+
}
|
|
122
|
+
if ("TERM_PROGRAM" in n) {
|
|
123
|
+
const e = parseInt((n.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
124
|
+
switch (n.TERM_PROGRAM) {
|
|
125
|
+
case "iTerm.app":
|
|
126
|
+
return e >= 3 ? 3 : 2;
|
|
127
|
+
|
|
128
|
+
case "Apple_Terminal":
|
|
129
|
+
return 2;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (/-256(color)?$/i.test(n.TERM)) {
|
|
133
|
+
return 2;
|
|
134
|
+
}
|
|
135
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)) {
|
|
136
|
+
return 1;
|
|
137
|
+
}
|
|
138
|
+
if ("COLORTERM" in n) {
|
|
139
|
+
return 1;
|
|
140
|
+
}
|
|
141
|
+
return i;
|
|
142
|
+
}
|
|
143
|
+
function a(e) {
|
|
144
|
+
const r = i(e, e && e.isTTY);
|
|
145
|
+
return o(r);
|
|
146
|
+
}
|
|
147
|
+
C = {
|
|
148
|
+
supportsColor: a,
|
|
149
|
+
stdout: o(i(true, r.isatty(1))),
|
|
150
|
+
stderr: o(i(true, r.isatty(2)))
|
|
151
|
+
};
|
|
152
|
+
return C;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
var g = {
|
|
156
|
+
exports: {}
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
var h = {
|
|
160
|
+
exports: {}
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
var v = h.exports;
|
|
164
|
+
|
|
165
|
+
var y;
|
|
166
|
+
|
|
167
|
+
function F() {
|
|
168
|
+
if (y) return h.exports;
|
|
169
|
+
y = 1;
|
|
170
|
+
if (typeof Object.create === "function") {
|
|
171
|
+
h.exports = function e(r, t) {
|
|
172
|
+
if (t) {
|
|
173
|
+
r.super_ = t;
|
|
174
|
+
r.prototype = Object.create(t.prototype, {
|
|
175
|
+
constructor: {
|
|
176
|
+
value: r,
|
|
177
|
+
enumerable: false,
|
|
178
|
+
writable: true,
|
|
179
|
+
configurable: true
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
} else {
|
|
185
|
+
h.exports = function e(r, t) {
|
|
186
|
+
if (t) {
|
|
187
|
+
r.super_ = t;
|
|
188
|
+
var n = function() {};
|
|
189
|
+
n.prototype = t.prototype;
|
|
190
|
+
r.prototype = new n;
|
|
191
|
+
r.prototype.constructor = r;
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
return h.exports;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
var b = g.exports;
|
|
199
|
+
|
|
200
|
+
var w;
|
|
201
|
+
|
|
202
|
+
function x() {
|
|
203
|
+
if (w) return g.exports;
|
|
204
|
+
w = 1;
|
|
205
|
+
try {
|
|
206
|
+
var e = require("util");
|
|
207
|
+
if (typeof e.inherits !== "function") throw "";
|
|
208
|
+
g.exports = e.inherits;
|
|
209
|
+
} catch (e) {
|
|
210
|
+
g.exports = F();
|
|
211
|
+
}
|
|
212
|
+
return g.exports;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
var O = {
|
|
216
|
+
exports: {}
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
var E = O.exports;
|
|
220
|
+
|
|
221
|
+
var R;
|
|
222
|
+
|
|
223
|
+
function I() {
|
|
224
|
+
if (R) return O.exports;
|
|
225
|
+
R = 1;
|
|
226
|
+
(function(e, r) {
|
|
227
|
+
var t = i.default;
|
|
228
|
+
var n = t.Buffer;
|
|
229
|
+
function s(e, r) {
|
|
230
|
+
for (var t in e) {
|
|
231
|
+
r[t] = e[t];
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
if (n.from && n.alloc && n.allocUnsafe && n.allocUnsafeSlow) {
|
|
235
|
+
e.exports = t;
|
|
236
|
+
} else {
|
|
237
|
+
s(t, r);
|
|
238
|
+
r.Buffer = o;
|
|
239
|
+
}
|
|
240
|
+
function o(e, r, t) {
|
|
241
|
+
return n(e, r, t);
|
|
242
|
+
}
|
|
243
|
+
o.prototype = Object.create(n.prototype);
|
|
244
|
+
s(n, o);
|
|
245
|
+
o.from = function(e, r, t) {
|
|
246
|
+
if (typeof e === "number") {
|
|
247
|
+
throw new TypeError("Argument must not be a number");
|
|
248
|
+
}
|
|
249
|
+
return n(e, r, t);
|
|
250
|
+
};
|
|
251
|
+
o.alloc = function(e, r, t) {
|
|
252
|
+
if (typeof e !== "number") {
|
|
253
|
+
throw new TypeError("Argument must be a number");
|
|
254
|
+
}
|
|
255
|
+
var s = n(e);
|
|
256
|
+
if (r !== undefined) {
|
|
257
|
+
if (typeof t === "string") {
|
|
258
|
+
s.fill(r, t);
|
|
259
|
+
} else {
|
|
260
|
+
s.fill(r);
|
|
261
|
+
}
|
|
262
|
+
} else {
|
|
263
|
+
s.fill(0);
|
|
264
|
+
}
|
|
265
|
+
return s;
|
|
266
|
+
};
|
|
267
|
+
o.allocUnsafe = function(e) {
|
|
268
|
+
if (typeof e !== "number") {
|
|
269
|
+
throw new TypeError("Argument must be a number");
|
|
270
|
+
}
|
|
271
|
+
return n(e);
|
|
272
|
+
};
|
|
273
|
+
o.allocUnsafeSlow = function(e) {
|
|
274
|
+
if (typeof e !== "number") {
|
|
275
|
+
throw new TypeError("Argument must be a number");
|
|
276
|
+
}
|
|
277
|
+
return t.SlowBuffer(e);
|
|
278
|
+
};
|
|
279
|
+
})(O, O.exports);
|
|
280
|
+
return O.exports;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
var A = {
|
|
284
|
+
exports: {}
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
var T = {
|
|
288
|
+
exports: {}
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
var _;
|
|
292
|
+
|
|
293
|
+
var M;
|
|
294
|
+
|
|
295
|
+
function j() {
|
|
296
|
+
if (M) return _;
|
|
297
|
+
M = 1;
|
|
298
|
+
var e = 1e3;
|
|
299
|
+
var r = e * 60;
|
|
300
|
+
var t = r * 60;
|
|
301
|
+
var n = t * 24;
|
|
302
|
+
var s = n * 7;
|
|
303
|
+
var o = n * 365.25;
|
|
304
|
+
_ = function(e, r) {
|
|
305
|
+
r = r || {};
|
|
306
|
+
var t = typeof e;
|
|
307
|
+
if (t === "string" && e.length > 0) {
|
|
308
|
+
return i(e);
|
|
309
|
+
} else if (t === "number" && isFinite(e)) {
|
|
310
|
+
return r.long ? u(e) : c(e);
|
|
311
|
+
}
|
|
312
|
+
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(e));
|
|
313
|
+
};
|
|
314
|
+
function i(i) {
|
|
315
|
+
i = String(i);
|
|
316
|
+
if (i.length > 100) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
var c = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);
|
|
320
|
+
if (!c) {
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
var u = parseFloat(c[1]);
|
|
324
|
+
var a = (c[2] || "ms").toLowerCase();
|
|
325
|
+
switch (a) {
|
|
326
|
+
case "years":
|
|
327
|
+
case "year":
|
|
328
|
+
case "yrs":
|
|
329
|
+
case "yr":
|
|
330
|
+
case "y":
|
|
331
|
+
return u * o;
|
|
332
|
+
|
|
333
|
+
case "weeks":
|
|
334
|
+
case "week":
|
|
335
|
+
case "w":
|
|
336
|
+
return u * s;
|
|
337
|
+
|
|
338
|
+
case "days":
|
|
339
|
+
case "day":
|
|
340
|
+
case "d":
|
|
341
|
+
return u * n;
|
|
342
|
+
|
|
343
|
+
case "hours":
|
|
344
|
+
case "hour":
|
|
345
|
+
case "hrs":
|
|
346
|
+
case "hr":
|
|
347
|
+
case "h":
|
|
348
|
+
return u * t;
|
|
349
|
+
|
|
350
|
+
case "minutes":
|
|
351
|
+
case "minute":
|
|
352
|
+
case "mins":
|
|
353
|
+
case "min":
|
|
354
|
+
case "m":
|
|
355
|
+
return u * r;
|
|
356
|
+
|
|
357
|
+
case "seconds":
|
|
358
|
+
case "second":
|
|
359
|
+
case "secs":
|
|
360
|
+
case "sec":
|
|
361
|
+
case "s":
|
|
362
|
+
return u * e;
|
|
363
|
+
|
|
364
|
+
case "milliseconds":
|
|
365
|
+
case "millisecond":
|
|
366
|
+
case "msecs":
|
|
367
|
+
case "msec":
|
|
368
|
+
case "ms":
|
|
369
|
+
return u;
|
|
370
|
+
|
|
371
|
+
default:
|
|
372
|
+
return undefined;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
function c(s) {
|
|
376
|
+
var o = Math.abs(s);
|
|
377
|
+
if (o >= n) {
|
|
378
|
+
return Math.round(s / n) + "d";
|
|
379
|
+
}
|
|
380
|
+
if (o >= t) {
|
|
381
|
+
return Math.round(s / t) + "h";
|
|
382
|
+
}
|
|
383
|
+
if (o >= r) {
|
|
384
|
+
return Math.round(s / r) + "m";
|
|
385
|
+
}
|
|
386
|
+
if (o >= e) {
|
|
387
|
+
return Math.round(s / e) + "s";
|
|
388
|
+
}
|
|
389
|
+
return s + "ms";
|
|
390
|
+
}
|
|
391
|
+
function u(s) {
|
|
392
|
+
var o = Math.abs(s);
|
|
393
|
+
if (o >= n) {
|
|
394
|
+
return a(s, o, n, "day");
|
|
395
|
+
}
|
|
396
|
+
if (o >= t) {
|
|
397
|
+
return a(s, o, t, "hour");
|
|
398
|
+
}
|
|
399
|
+
if (o >= r) {
|
|
400
|
+
return a(s, o, r, "minute");
|
|
401
|
+
}
|
|
402
|
+
if (o >= e) {
|
|
403
|
+
return a(s, o, e, "second");
|
|
404
|
+
}
|
|
405
|
+
return s + " ms";
|
|
406
|
+
}
|
|
407
|
+
function a(e, r, t, n) {
|
|
408
|
+
var s = r >= t * 1.5;
|
|
409
|
+
return Math.round(e / t) + " " + n + (s ? "s" : "");
|
|
410
|
+
}
|
|
411
|
+
return _;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
var k;
|
|
415
|
+
|
|
416
|
+
var S;
|
|
417
|
+
|
|
418
|
+
function L() {
|
|
419
|
+
if (S) return k;
|
|
420
|
+
S = 1;
|
|
421
|
+
function e(e) {
|
|
422
|
+
t.debug = t;
|
|
423
|
+
t.default = t;
|
|
424
|
+
t.coerce = u;
|
|
425
|
+
t.disable = o;
|
|
426
|
+
t.enable = s;
|
|
427
|
+
t.enabled = i;
|
|
428
|
+
t.humanize = j();
|
|
429
|
+
t.destroy = a;
|
|
430
|
+
Object.keys(e).forEach((r => {
|
|
431
|
+
t[r] = e[r];
|
|
432
|
+
}));
|
|
433
|
+
t.names = [];
|
|
434
|
+
t.skips = [];
|
|
435
|
+
t.formatters = {};
|
|
436
|
+
function r(e) {
|
|
437
|
+
let r = 0;
|
|
438
|
+
for (let t = 0; t < e.length; t++) {
|
|
439
|
+
r = (r << 5) - r + e.charCodeAt(t);
|
|
440
|
+
r |= 0;
|
|
441
|
+
}
|
|
442
|
+
return t.colors[Math.abs(r) % t.colors.length];
|
|
443
|
+
}
|
|
444
|
+
t.selectColor = r;
|
|
445
|
+
function t(e) {
|
|
446
|
+
let r;
|
|
447
|
+
let s = null;
|
|
448
|
+
let o;
|
|
449
|
+
let i;
|
|
450
|
+
function c(...e) {
|
|
451
|
+
if (!c.enabled) {
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
454
|
+
const n = c;
|
|
455
|
+
const s = Number(new Date);
|
|
456
|
+
const o = s - (r || s);
|
|
457
|
+
n.diff = o;
|
|
458
|
+
n.prev = r;
|
|
459
|
+
n.curr = s;
|
|
460
|
+
r = s;
|
|
461
|
+
e[0] = t.coerce(e[0]);
|
|
462
|
+
if (typeof e[0] !== "string") {
|
|
463
|
+
e.unshift("%O");
|
|
464
|
+
}
|
|
465
|
+
let i = 0;
|
|
466
|
+
e[0] = e[0].replace(/%([a-zA-Z%])/g, ((r, s) => {
|
|
467
|
+
if (r === "%%") {
|
|
468
|
+
return "%";
|
|
469
|
+
}
|
|
470
|
+
i++;
|
|
471
|
+
const o = t.formatters[s];
|
|
472
|
+
if (typeof o === "function") {
|
|
473
|
+
const t = e[i];
|
|
474
|
+
r = o.call(n, t);
|
|
475
|
+
e.splice(i, 1);
|
|
476
|
+
i--;
|
|
477
|
+
}
|
|
478
|
+
return r;
|
|
479
|
+
}));
|
|
480
|
+
t.formatArgs.call(n, e);
|
|
481
|
+
const u = n.log || t.log;
|
|
482
|
+
u.apply(n, e);
|
|
483
|
+
}
|
|
484
|
+
c.namespace = e;
|
|
485
|
+
c.useColors = t.useColors();
|
|
486
|
+
c.color = t.selectColor(e);
|
|
487
|
+
c.extend = n;
|
|
488
|
+
c.destroy = t.destroy;
|
|
489
|
+
Object.defineProperty(c, "enabled", {
|
|
490
|
+
enumerable: true,
|
|
491
|
+
configurable: false,
|
|
492
|
+
get: () => {
|
|
493
|
+
if (s !== null) {
|
|
494
|
+
return s;
|
|
495
|
+
}
|
|
496
|
+
if (o !== t.namespaces) {
|
|
497
|
+
o = t.namespaces;
|
|
498
|
+
i = t.enabled(e);
|
|
499
|
+
}
|
|
500
|
+
return i;
|
|
501
|
+
},
|
|
502
|
+
set: e => {
|
|
503
|
+
s = e;
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
if (typeof t.init === "function") {
|
|
507
|
+
t.init(c);
|
|
508
|
+
}
|
|
509
|
+
return c;
|
|
510
|
+
}
|
|
511
|
+
function n(e, r) {
|
|
512
|
+
const n = t(this.namespace + (typeof r === "undefined" ? ":" : r) + e);
|
|
513
|
+
n.log = this.log;
|
|
514
|
+
return n;
|
|
515
|
+
}
|
|
516
|
+
function s(e) {
|
|
517
|
+
t.save(e);
|
|
518
|
+
t.namespaces = e;
|
|
519
|
+
t.names = [];
|
|
520
|
+
t.skips = [];
|
|
521
|
+
let r;
|
|
522
|
+
const n = (typeof e === "string" ? e : "").split(/[\s,]+/);
|
|
523
|
+
const s = n.length;
|
|
524
|
+
for (r = 0; r < s; r++) {
|
|
525
|
+
if (!n[r]) {
|
|
526
|
+
continue;
|
|
527
|
+
}
|
|
528
|
+
e = n[r].replace(/\*/g, ".*?");
|
|
529
|
+
if (e[0] === "-") {
|
|
530
|
+
t.skips.push(new RegExp("^" + e.slice(1) + "$"));
|
|
531
|
+
} else {
|
|
532
|
+
t.names.push(new RegExp("^" + e + "$"));
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
function o() {
|
|
537
|
+
const e = [ ...t.names.map(c), ...t.skips.map(c).map((e => "-" + e)) ].join(",");
|
|
538
|
+
t.enable("");
|
|
539
|
+
return e;
|
|
540
|
+
}
|
|
541
|
+
function i(e) {
|
|
542
|
+
if (e[e.length - 1] === "*") {
|
|
543
|
+
return true;
|
|
544
|
+
}
|
|
545
|
+
let r;
|
|
546
|
+
let n;
|
|
547
|
+
for (r = 0, n = t.skips.length; r < n; r++) {
|
|
548
|
+
if (t.skips[r].test(e)) {
|
|
549
|
+
return false;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
for (r = 0, n = t.names.length; r < n; r++) {
|
|
553
|
+
if (t.names[r].test(e)) {
|
|
554
|
+
return true;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return false;
|
|
558
|
+
}
|
|
559
|
+
function c(e) {
|
|
560
|
+
return e.toString().substring(2, e.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
561
|
+
}
|
|
562
|
+
function u(e) {
|
|
563
|
+
if (e instanceof Error) {
|
|
564
|
+
return e.stack || e.message;
|
|
565
|
+
}
|
|
566
|
+
return e;
|
|
567
|
+
}
|
|
568
|
+
function a() {
|
|
569
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
570
|
+
}
|
|
571
|
+
t.enable(t.load());
|
|
572
|
+
return t;
|
|
573
|
+
}
|
|
574
|
+
k = e;
|
|
575
|
+
return k;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
var B = T.exports;
|
|
579
|
+
|
|
580
|
+
var N;
|
|
581
|
+
|
|
582
|
+
function q() {
|
|
583
|
+
if (N) return T.exports;
|
|
584
|
+
N = 1;
|
|
585
|
+
(function(e, r) {
|
|
586
|
+
r.formatArgs = n;
|
|
587
|
+
r.save = s;
|
|
588
|
+
r.load = o;
|
|
589
|
+
r.useColors = t;
|
|
590
|
+
r.storage = i();
|
|
591
|
+
r.destroy = (() => {
|
|
592
|
+
let e = false;
|
|
593
|
+
return () => {
|
|
594
|
+
if (!e) {
|
|
595
|
+
e = true;
|
|
596
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
})();
|
|
600
|
+
r.colors = [ "#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33" ];
|
|
601
|
+
function t() {
|
|
602
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
603
|
+
return true;
|
|
604
|
+
}
|
|
605
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
606
|
+
return false;
|
|
607
|
+
}
|
|
608
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
609
|
+
}
|
|
610
|
+
function n(r) {
|
|
611
|
+
r[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + r[0] + (this.useColors ? "%c " : " ") + "+" + e.exports.humanize(this.diff);
|
|
612
|
+
if (!this.useColors) {
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
const t = "color: " + this.color;
|
|
616
|
+
r.splice(1, 0, t, "color: inherit");
|
|
617
|
+
let n = 0;
|
|
618
|
+
let s = 0;
|
|
619
|
+
r[0].replace(/%[a-zA-Z%]/g, (e => {
|
|
620
|
+
if (e === "%%") {
|
|
621
|
+
return;
|
|
622
|
+
}
|
|
623
|
+
n++;
|
|
624
|
+
if (e === "%c") {
|
|
625
|
+
s = n;
|
|
626
|
+
}
|
|
627
|
+
}));
|
|
628
|
+
r.splice(s, 0, t);
|
|
629
|
+
}
|
|
630
|
+
r.log = console.debug || console.log || (() => {});
|
|
631
|
+
function s(e) {
|
|
632
|
+
try {
|
|
633
|
+
if (e) {
|
|
634
|
+
r.storage.setItem("debug", e);
|
|
635
|
+
} else {
|
|
636
|
+
r.storage.removeItem("debug");
|
|
637
|
+
}
|
|
638
|
+
} catch (e) {}
|
|
639
|
+
}
|
|
640
|
+
function o() {
|
|
641
|
+
let e;
|
|
642
|
+
try {
|
|
643
|
+
e = r.storage.getItem("debug");
|
|
644
|
+
} catch (e) {}
|
|
645
|
+
if (!e && typeof process !== "undefined" && "env" in process) {
|
|
646
|
+
e = process.env.DEBUG;
|
|
647
|
+
}
|
|
648
|
+
return e;
|
|
649
|
+
}
|
|
650
|
+
function i() {
|
|
651
|
+
try {
|
|
652
|
+
return localStorage;
|
|
653
|
+
} catch (e) {}
|
|
654
|
+
}
|
|
655
|
+
e.exports = L()(r);
|
|
656
|
+
const {formatters: c} = e.exports;
|
|
657
|
+
c.j = function(e) {
|
|
658
|
+
try {
|
|
659
|
+
return JSON.stringify(e);
|
|
660
|
+
} catch (e) {
|
|
661
|
+
return "[UnexpectedJSONParseError]: " + e.message;
|
|
662
|
+
}
|
|
663
|
+
};
|
|
664
|
+
})(T, T.exports);
|
|
665
|
+
return T.exports;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
var U = {
|
|
669
|
+
exports: {}
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
var P = U.exports;
|
|
673
|
+
|
|
674
|
+
var $;
|
|
675
|
+
|
|
676
|
+
function D() {
|
|
677
|
+
if ($) return U.exports;
|
|
678
|
+
$ = 1;
|
|
679
|
+
(function(e, r) {
|
|
680
|
+
const t = u.default;
|
|
681
|
+
const n = a.default;
|
|
682
|
+
r.init = p;
|
|
683
|
+
r.log = c;
|
|
684
|
+
r.formatArgs = o;
|
|
685
|
+
r.save = f;
|
|
686
|
+
r.load = l;
|
|
687
|
+
r.useColors = s;
|
|
688
|
+
r.destroy = n.deprecate((() => {}), "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
689
|
+
r.colors = [ 6, 2, 3, 4, 5, 1 ];
|
|
690
|
+
try {
|
|
691
|
+
const e = m();
|
|
692
|
+
if (e && (e.stderr || e).level >= 2) {
|
|
693
|
+
r.colors = [ 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221 ];
|
|
694
|
+
}
|
|
695
|
+
} catch (e) {}
|
|
696
|
+
r.inspectOpts = Object.keys(process.env).filter((e => /^debug_/i.test(e))).reduce(((e, r) => {
|
|
697
|
+
const t = r.substring(6).toLowerCase().replace(/_([a-z])/g, ((e, r) => r.toUpperCase()));
|
|
698
|
+
let n = process.env[r];
|
|
699
|
+
if (/^(yes|on|true|enabled)$/i.test(n)) {
|
|
700
|
+
n = true;
|
|
701
|
+
} else if (/^(no|off|false|disabled)$/i.test(n)) {
|
|
702
|
+
n = false;
|
|
703
|
+
} else if (n === "null") {
|
|
704
|
+
n = null;
|
|
705
|
+
} else {
|
|
706
|
+
n = Number(n);
|
|
707
|
+
}
|
|
708
|
+
e[t] = n;
|
|
709
|
+
return e;
|
|
710
|
+
}), {});
|
|
711
|
+
function s() {
|
|
712
|
+
return "colors" in r.inspectOpts ? Boolean(r.inspectOpts.colors) : t.isatty(process.stderr.fd);
|
|
713
|
+
}
|
|
714
|
+
function o(r) {
|
|
715
|
+
const {namespace: t, useColors: n} = this;
|
|
716
|
+
if (n) {
|
|
717
|
+
const n = this.color;
|
|
718
|
+
const s = "[3" + (n < 8 ? n : "8;5;" + n);
|
|
719
|
+
const o = ` ${s};1m${t} [0m`;
|
|
720
|
+
r[0] = o + r[0].split("\n").join("\n" + o);
|
|
721
|
+
r.push(s + "m+" + e.exports.humanize(this.diff) + "[0m");
|
|
722
|
+
} else {
|
|
723
|
+
r[0] = i() + t + " " + r[0];
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
function i() {
|
|
727
|
+
if (r.inspectOpts.hideDate) {
|
|
728
|
+
return "";
|
|
729
|
+
}
|
|
730
|
+
return (new Date).toISOString() + " ";
|
|
731
|
+
}
|
|
732
|
+
function c(...e) {
|
|
733
|
+
return process.stderr.write(n.format(...e) + "\n");
|
|
734
|
+
}
|
|
735
|
+
function f(e) {
|
|
736
|
+
if (e) {
|
|
737
|
+
process.env.DEBUG = e;
|
|
738
|
+
} else {
|
|
739
|
+
delete process.env.DEBUG;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
function l() {
|
|
743
|
+
return process.env.DEBUG;
|
|
744
|
+
}
|
|
745
|
+
function p(e) {
|
|
746
|
+
e.inspectOpts = {};
|
|
747
|
+
const t = Object.keys(r.inspectOpts);
|
|
748
|
+
for (let n = 0; n < t.length; n++) {
|
|
749
|
+
e.inspectOpts[t[n]] = r.inspectOpts[t[n]];
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
e.exports = L()(r);
|
|
753
|
+
const {formatters: C} = e.exports;
|
|
754
|
+
C.o = function(e) {
|
|
755
|
+
this.inspectOpts.colors = this.useColors;
|
|
756
|
+
return n.inspect(e, this.inspectOpts).split("\n").map((e => e.trim())).join(" ");
|
|
757
|
+
};
|
|
758
|
+
C.O = function(e) {
|
|
759
|
+
this.inspectOpts.colors = this.useColors;
|
|
760
|
+
return n.inspect(e, this.inspectOpts);
|
|
761
|
+
};
|
|
762
|
+
})(U, U.exports);
|
|
763
|
+
return U.exports;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
var G = A.exports;
|
|
767
|
+
|
|
768
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
769
|
+
A.exports = q();
|
|
770
|
+
} else {
|
|
771
|
+
A.exports = D();
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
var z = A.exports;
|
|
775
|
+
|
|
776
|
+
const V = e.getDefaultExportFromCjs(z);
|
|
777
|
+
|
|
778
|
+
exports.requireInherits = x;
|
|
779
|
+
|
|
780
|
+
exports.requireSafeBuffer = I;
|
|
781
|
+
|
|
782
|
+
exports.requireSupportsColor = m;
|
|
783
|
+
|
|
784
|
+
exports.srcExports = z;
|