storybook 9.0.0-alpha.1 → 9.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -29
- package/assets/browser/favicon.svg +1 -0
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/assets/docs/addon-controls-args-annotated.png +0 -0
- package/assets/docs/addon-controls-args-background-color.png +0 -0
- package/assets/docs/addon-controls-args-background-string.png +0 -0
- package/assets/docs/addon-controls-args-docs.png +0 -0
- package/assets/docs/addon-controls-args-logging.png +0 -0
- package/assets/docs/addon-controls-args-no-annotation.png +0 -0
- package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
- package/assets/docs/addon-controls-args-reflow.png +0 -0
- package/assets/docs/addon-controls-args-template.png +0 -0
- package/assets/docs/addon-controls-expanded.png +0 -0
- package/assets/docs/addon-controls-hero.gif +0 -0
- package/assets/docs/addon-controls-install.png +0 -0
- package/assets/docs/hero.gif +0 -0
- package/assets/docs/message-reference.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/server/addon.tsconfig.json +6 -0
- package/assets/server/base-preview-body.html +119 -0
- package/assets/server/base-preview-head.html +451 -0
- package/assets/server/template.ejs +87 -0
- package/bin/index.cjs +1 -1
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +139 -0
- package/dist/actions/index.cjs +127 -0
- package/dist/actions/index.d.ts +105 -0
- package/dist/actions/index.js +112 -0
- package/dist/actions/manager.js +1196 -0
- package/dist/actions/preview.cjs +165 -0
- package/dist/actions/preview.d.ts +55 -0
- package/dist/actions/preview.js +156 -0
- package/dist/babel/index.cjs +54034 -0
- package/dist/babel/index.d.ts +7488 -0
- package/dist/babel/index.js +54044 -0
- package/dist/bin/index.cjs +119 -0
- package/dist/bin/index.js +113 -0
- package/dist/builder-manager/index.cjs +2140 -0
- package/dist/builder-manager/index.d.ts +19 -0
- package/dist/builder-manager/index.js +2162 -0
- package/dist/channels/index.cjs +1913 -0
- package/dist/channels/index.d.ts +108 -0
- package/dist/channels/index.js +1881 -0
- package/dist/cli/bin/index.cjs +2687 -0
- package/dist/cli/bin/index.d.ts +2 -0
- package/dist/cli/bin/index.js +2707 -0
- package/dist/cli/index.cjs +17327 -0
- package/dist/cli/index.d.ts +209 -0
- package/dist/cli/index.js +17349 -0
- package/dist/client-logger/index.cjs +80 -0
- package/dist/client-logger/index.d.ts +29 -0
- package/dist/client-logger/index.js +64 -0
- package/dist/common/index.cjs +20569 -0
- package/dist/common/index.d.ts +949 -0
- package/dist/common/index.js +20654 -0
- package/dist/components/index.cjs +27924 -0
- package/dist/components/index.d.ts +1423 -0
- package/dist/components/index.js +24673 -0
- package/dist/controls/decorator.d.ts +5 -0
- package/dist/controls/decorator.js +8 -0
- package/dist/controls/index.cjs +26 -0
- package/dist/controls/index.d.ts +39 -0
- package/dist/controls/index.js +6 -0
- package/dist/controls/manager.js +5545 -0
- package/dist/controls/preview.cjs +26 -0
- package/dist/controls/preview.d.ts +55 -0
- package/dist/controls/preview.js +9 -0
- package/dist/core-events/index.cjs +167 -0
- package/dist/core-events/index.d.ts +426 -0
- package/dist/core-events/index.js +149 -0
- package/dist/core-server/index.cjs +38183 -0
- package/dist/core-server/index.d.ts +720 -0
- package/dist/core-server/index.js +38272 -0
- package/dist/core-server/presets/common-manager.js +20 -0
- package/dist/core-server/presets/common-override-preset.cjs +4824 -0
- package/dist/core-server/presets/common-override-preset.js +4829 -0
- package/dist/core-server/presets/common-preset.cjs +10231 -0
- package/dist/core-server/presets/common-preset.js +10309 -0
- package/dist/csf/index.cjs +179 -0
- package/dist/csf/index.d.ts +750 -0
- package/dist/csf/index.js +172 -0
- package/dist/csf-tools/index.cjs +1422 -0
- package/dist/csf-tools/index.d.ts +250 -0
- package/dist/csf-tools/index.js +1439 -0
- package/dist/docs-tools/index.cjs +2891 -0
- package/dist/docs-tools/index.d.ts +162 -0
- package/dist/docs-tools/index.js +2876 -0
- package/dist/index.cjs +17 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -7
- package/dist/instrumenter/index.cjs +3485 -0
- package/dist/instrumenter/index.d.ts +104 -0
- package/dist/instrumenter/index.js +4965 -0
- package/dist/manager/globals-module-info.cjs +817 -0
- package/dist/manager/globals-module-info.d.ts +36 -0
- package/dist/manager/globals-module-info.js +804 -0
- package/dist/manager/globals-runtime.js +77536 -0
- package/dist/manager/globals.cjs +47 -0
- package/dist/manager/globals.d.ts +24 -0
- package/dist/manager/globals.js +34 -0
- package/dist/manager/runtime.js +12323 -0
- package/dist/manager-api/index.cjs +11074 -0
- package/dist/manager-api/index.d.ts +1512 -0
- package/dist/manager-api/index.js +4835 -0
- package/dist/manager-errors.d.ts +89 -0
- package/dist/manager-errors.js +99 -0
- package/dist/node-logger/index.cjs +1642 -0
- package/dist/node-logger/index.d.ts +117 -0
- package/dist/node-logger/index.js +1652 -0
- package/dist/preview/globals.cjs +38 -0
- package/dist/preview/globals.d.ts +15 -0
- package/dist/preview/globals.js +25 -0
- package/dist/preview/runtime.js +43629 -0
- package/dist/preview-api/index.cjs +5224 -0
- package/dist/preview-api/index.d.ts +1093 -0
- package/dist/preview-api/index.js +5292 -0
- package/dist/preview-errors.cjs +503 -0
- package/dist/preview-errors.d.ts +212 -0
- package/dist/preview-errors.js +449 -0
- package/dist/router/index.cjs +3296 -0
- package/dist/router/index.d.ts +385 -0
- package/dist/router/index.js +1843 -0
- package/dist/server-errors.cjs +727 -0
- package/dist/server-errors.d.ts +296 -0
- package/dist/server-errors.js +728 -0
- package/dist/telemetry/index.cjs +2756 -0
- package/dist/telemetry/index.d.ts +133 -0
- package/dist/telemetry/index.js +2797 -0
- package/dist/test/index.cjs +35685 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +33751 -0
- package/dist/test/preview.cjs +15869 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14440 -0
- package/dist/test/spy.cjs +257 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +239 -0
- package/dist/theming/create.cjs +232 -0
- package/dist/theming/create.d.ts +50 -0
- package/dist/theming/create.js +216 -0
- package/dist/theming/index.cjs +2665 -0
- package/dist/theming/index.d.ts +11939 -0
- package/dist/theming/index.js +2485 -0
- package/dist/types/index.cjs +27 -0
- package/dist/types/index.d.ts +2795 -0
- package/dist/types/index.js +7 -0
- package/dist/viewport/index.cjs +310 -0
- package/dist/viewport/index.d.ts +320 -0
- package/dist/viewport/index.js +290 -0
- package/dist/viewport/manager.js +400 -0
- package/dist/viewport/preview.cjs +35 -0
- package/dist/viewport/preview.d.ts +69 -0
- package/dist/viewport/preview.js +19 -0
- package/package.json +518 -209
- package/.eslintrc.cjs +0 -31
- package/__mocks__/@aw-web-design/x-default-browser.js +0 -2
- package/core/babel/index.cjs +0 -1
- package/core/babel/index.d.ts +0 -2
- package/core/babel/index.js +0 -1
- package/core/builder-manager/index.cjs +0 -1
- package/core/builder-manager/index.d.ts +0 -2
- package/core/builder-manager/index.js +0 -1
- package/core/channels/index.cjs +0 -1
- package/core/channels/index.d.ts +0 -2
- package/core/channels/index.js +0 -1
- package/core/cli/bin/index.cjs +0 -1
- package/core/cli/bin/index.d.ts +0 -2
- package/core/cli/bin/index.js +0 -1
- package/core/cli/index.cjs +0 -1
- package/core/cli/index.d.ts +0 -2
- package/core/cli/index.js +0 -1
- package/core/client-logger/index.cjs +0 -1
- package/core/client-logger/index.d.ts +0 -2
- package/core/client-logger/index.js +0 -1
- package/core/common/index.cjs +0 -1
- package/core/common/index.d.ts +0 -2
- package/core/common/index.js +0 -1
- package/core/components/index.cjs +0 -1
- package/core/components/index.d.ts +0 -2
- package/core/components/index.js +0 -1
- package/core/core-events/index.cjs +0 -1
- package/core/core-events/index.d.ts +0 -2
- package/core/core-events/index.js +0 -1
- package/core/core-server/index.cjs +0 -1
- package/core/core-server/index.d.ts +0 -2
- package/core/core-server/index.js +0 -1
- package/core/core-server/presets/common-manager.js +0 -1
- package/core/core-server/presets/common-override-preset.cjs +0 -1
- package/core/core-server/presets/common-override-preset.js +0 -1
- package/core/core-server/presets/common-preset.cjs +0 -1
- package/core/core-server/presets/common-preset.js +0 -1
- package/core/csf/index.cjs +0 -1
- package/core/csf/index.d.ts +0 -2
- package/core/csf/index.js +0 -1
- package/core/csf-tools/index.cjs +0 -1
- package/core/csf-tools/index.d.ts +0 -2
- package/core/csf-tools/index.js +0 -1
- package/core/docs-tools/index.cjs +0 -1
- package/core/docs-tools/index.d.ts +0 -2
- package/core/docs-tools/index.js +0 -1
- package/core/index.cjs +0 -1
- package/core/index.d.ts +0 -2
- package/core/index.js +0 -1
- package/core/manager/globals-module-info.cjs +0 -1
- package/core/manager/globals-module-info.d.ts +0 -2
- package/core/manager/globals-module-info.js +0 -1
- package/core/manager/globals-runtime.js +0 -1
- package/core/manager/globals.cjs +0 -1
- package/core/manager/globals.d.ts +0 -2
- package/core/manager/globals.js +0 -1
- package/core/manager-api/index.cjs +0 -1
- package/core/manager-api/index.d.ts +0 -2
- package/core/manager-api/index.js +0 -1
- package/core/manager-errors.d.ts +0 -2
- package/core/manager-errors.js +0 -1
- package/core/node-logger/index.cjs +0 -1
- package/core/node-logger/index.d.ts +0 -2
- package/core/node-logger/index.js +0 -1
- package/core/preview/globals.cjs +0 -1
- package/core/preview/globals.d.ts +0 -2
- package/core/preview/globals.js +0 -1
- package/core/preview/runtime.js +0 -1
- package/core/preview-api/index.cjs +0 -1
- package/core/preview-api/index.d.ts +0 -2
- package/core/preview-api/index.js +0 -1
- package/core/preview-errors.cjs +0 -1
- package/core/preview-errors.d.ts +0 -2
- package/core/preview-errors.js +0 -1
- package/core/router/index.cjs +0 -1
- package/core/router/index.d.ts +0 -2
- package/core/router/index.js +0 -1
- package/core/server-errors.cjs +0 -1
- package/core/server-errors.d.ts +0 -2
- package/core/server-errors.js +0 -1
- package/core/telemetry/index.cjs +0 -1
- package/core/telemetry/index.d.ts +0 -2
- package/core/telemetry/index.js +0 -1
- package/core/theming/create.cjs +0 -1
- package/core/theming/create.d.ts +0 -2
- package/core/theming/create.js +0 -1
- package/core/theming/index.cjs +0 -1
- package/core/theming/index.d.ts +0 -2
- package/core/theming/index.js +0 -1
- package/core/types/index.cjs +0 -1
- package/core/types/index.d.ts +0 -2
- package/core/types/index.js +0 -1
- package/core.cjs +0 -0
- package/core.d.ts +0 -0
- package/core.js +0 -1
- package/dist/chunk-OWLSIX54.js +0 -8
- package/dist/core-path.cjs +0 -1
- package/dist/core-path.d.ts +0 -3
- package/dist/core-path.js +0 -9
- package/dist/proxy.cjs +0 -1
- package/dist/proxy.d.ts +0 -2
- package/dist/proxy.js +0 -9
|
@@ -0,0 +1,1652 @@
|
|
|
1
|
+
import ESM_COMPAT_Module from "node:module";
|
|
2
|
+
import { fileURLToPath as ESM_COMPAT_fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as ESM_COMPAT_dirname } from 'node:path';
|
|
4
|
+
const __filename = ESM_COMPAT_fileURLToPath(import.meta.url);
|
|
5
|
+
const __dirname = ESM_COMPAT_dirname(__filename);
|
|
6
|
+
const require = ESM_COMPAT_Module.createRequire(import.meta.url);
|
|
7
|
+
var rt = Object.create;
|
|
8
|
+
var W = Object.defineProperty;
|
|
9
|
+
var it = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var nt = Object.getOwnPropertyNames;
|
|
11
|
+
var st = Object.getPrototypeOf, at = Object.prototype.hasOwnProperty;
|
|
12
|
+
var i = (e, u) => W(e, "name", { value: u, configurable: !0 }), I = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "\
|
|
13
|
+
u" ? new Proxy(e, {
|
|
14
|
+
get: (u, t) => (typeof require < "u" ? require : u)[t]
|
|
15
|
+
}) : e)(function(e) {
|
|
16
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
17
|
+
throw Error('Dynamic require of "' + e + '" is not supported');
|
|
18
|
+
});
|
|
19
|
+
var Le = (e, u) => () => (e && (u = e(e = 0)), u);
|
|
20
|
+
var l = (e, u) => () => (u || e((u = { exports: {} }).exports, u), u.exports), ot = (e, u) => {
|
|
21
|
+
for (var t in u)
|
|
22
|
+
W(e, t, { get: u[t], enumerable: !0 });
|
|
23
|
+
}, Ie = (e, u, t, D) => {
|
|
24
|
+
if (u && typeof u == "object" || typeof u == "function")
|
|
25
|
+
for (let r of nt(u))
|
|
26
|
+
!at.call(e, r) && r !== t && W(e, r, { get: () => u[r], enumerable: !(D = it(u, r)) || D.enumerable });
|
|
27
|
+
return e;
|
|
28
|
+
};
|
|
29
|
+
var Re = (e, u, t) => (t = e != null ? rt(st(e)) : {}, Ie(
|
|
30
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
+
u || !e || !e.__esModule ? W(t, "default", { value: e, enumerable: !0 }) : t,
|
|
35
|
+
e
|
|
36
|
+
)), lt = (e) => Ie(W({}, "__esModule", { value: !0 }), e);
|
|
37
|
+
|
|
38
|
+
// ../node_modules/npmlog/node_modules/are-we-there-yet/lib/tracker-base.js
|
|
39
|
+
var ie = l((BD, Oe) => {
|
|
40
|
+
"use strict";
|
|
41
|
+
var ht = I("events"), ft = 0, re = class extends ht {
|
|
42
|
+
static {
|
|
43
|
+
i(this, "TrackerBase");
|
|
44
|
+
}
|
|
45
|
+
constructor(u) {
|
|
46
|
+
super(), this.id = ++ft, this.name = u;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
Oe.exports = re;
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// ../node_modules/npmlog/node_modules/are-we-there-yet/lib/tracker.js
|
|
53
|
+
var P = l((bD, qe) => {
|
|
54
|
+
"use strict";
|
|
55
|
+
var ct = ie(), ne = class extends ct {
|
|
56
|
+
static {
|
|
57
|
+
i(this, "Tracker");
|
|
58
|
+
}
|
|
59
|
+
constructor(u, t) {
|
|
60
|
+
super(u), this.workDone = 0, this.workTodo = t || 0;
|
|
61
|
+
}
|
|
62
|
+
completed() {
|
|
63
|
+
return this.workTodo === 0 ? 0 : this.workDone / this.workTodo;
|
|
64
|
+
}
|
|
65
|
+
addWork(u) {
|
|
66
|
+
this.workTodo += u, this.emit("change", this.name, this.completed(), this);
|
|
67
|
+
}
|
|
68
|
+
completeWork(u) {
|
|
69
|
+
this.workDone += u, this.workDone > this.workTodo && (this.workDone = this.workTodo), this.emit("change", this.name, this.completed(),
|
|
70
|
+
this);
|
|
71
|
+
}
|
|
72
|
+
finish() {
|
|
73
|
+
this.workTodo = this.workDone = 1, this.emit("change", this.name, 1, this);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
qe.exports = ne;
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// ../node_modules/npmlog/node_modules/are-we-there-yet/lib/tracker-stream.js
|
|
80
|
+
var ae = l((xD, Ue) => {
|
|
81
|
+
"use strict";
|
|
82
|
+
var Ft = I("stream"), Ct = P(), se = class extends Ft.Transform {
|
|
83
|
+
static {
|
|
84
|
+
i(this, "TrackerStream");
|
|
85
|
+
}
|
|
86
|
+
constructor(u, t, D) {
|
|
87
|
+
super(D), this.tracker = new Ct(u, t), this.name = u, this.id = this.tracker.id, this.tracker.on("change", this.trackerChange.bind(this));
|
|
88
|
+
}
|
|
89
|
+
trackerChange(u, t) {
|
|
90
|
+
this.emit("change", u, t, this);
|
|
91
|
+
}
|
|
92
|
+
_transform(u, t, D) {
|
|
93
|
+
this.tracker.completeWork(u.length ? u.length : 1), this.push(u), D();
|
|
94
|
+
}
|
|
95
|
+
_flush(u) {
|
|
96
|
+
this.tracker.finish(), u();
|
|
97
|
+
}
|
|
98
|
+
completed() {
|
|
99
|
+
return this.tracker.completed();
|
|
100
|
+
}
|
|
101
|
+
addWork(u) {
|
|
102
|
+
return this.tracker.addWork(u);
|
|
103
|
+
}
|
|
104
|
+
finish() {
|
|
105
|
+
return this.tracker.finish();
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
Ue.exports = se;
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// ../node_modules/npmlog/node_modules/are-we-there-yet/lib/tracker-group.js
|
|
112
|
+
var We = l((_D, Ge) => {
|
|
113
|
+
"use strict";
|
|
114
|
+
var Et = ie(), Me = P(), gt = ae(), oe = class e extends Et {
|
|
115
|
+
static {
|
|
116
|
+
i(this, "TrackerGroup");
|
|
117
|
+
}
|
|
118
|
+
parentGroup = null;
|
|
119
|
+
trackers = [];
|
|
120
|
+
completion = {};
|
|
121
|
+
weight = {};
|
|
122
|
+
totalWeight = 0;
|
|
123
|
+
finished = !1;
|
|
124
|
+
bubbleChange = pt(this);
|
|
125
|
+
nameInTree() {
|
|
126
|
+
for (var u = [], t = this; t; )
|
|
127
|
+
u.unshift(t.name), t = t.parentGroup;
|
|
128
|
+
return u.join("/");
|
|
129
|
+
}
|
|
130
|
+
addUnit(u, t) {
|
|
131
|
+
if (u.addUnit) {
|
|
132
|
+
for (var D = this; D; ) {
|
|
133
|
+
if (u === D)
|
|
134
|
+
throw new Error(
|
|
135
|
+
"Attempted to add tracker group " + u.name + " to tree that already includes it " + this.nameInTree(this)
|
|
136
|
+
);
|
|
137
|
+
D = D.parentGroup;
|
|
138
|
+
}
|
|
139
|
+
u.parentGroup = this;
|
|
140
|
+
}
|
|
141
|
+
return this.weight[u.id] = t || 1, this.totalWeight += this.weight[u.id], this.trackers.push(u), this.completion[u.id] = u.completed(),
|
|
142
|
+
u.on("change", this.bubbleChange), this.finished || this.emit("change", u.name, this.completion[u.id], u), u;
|
|
143
|
+
}
|
|
144
|
+
completed() {
|
|
145
|
+
if (this.trackers.length === 0)
|
|
146
|
+
return 0;
|
|
147
|
+
for (var u = 1 / this.totalWeight, t = 0, D = 0; D < this.trackers.length; D++) {
|
|
148
|
+
var r = this.trackers[D].id;
|
|
149
|
+
t += u * this.weight[r] * this.completion[r];
|
|
150
|
+
}
|
|
151
|
+
return t;
|
|
152
|
+
}
|
|
153
|
+
newGroup(u, t) {
|
|
154
|
+
return this.addUnit(new e(u), t);
|
|
155
|
+
}
|
|
156
|
+
newItem(u, t, D) {
|
|
157
|
+
return this.addUnit(new Me(u, t), D);
|
|
158
|
+
}
|
|
159
|
+
newStream(u, t, D) {
|
|
160
|
+
return this.addUnit(new gt(u, t), D);
|
|
161
|
+
}
|
|
162
|
+
finish() {
|
|
163
|
+
this.finished = !0, this.trackers.length || this.addUnit(new Me(), 1, !0);
|
|
164
|
+
for (var u = 0; u < this.trackers.length; u++) {
|
|
165
|
+
var t = this.trackers[u];
|
|
166
|
+
t.finish(), t.removeListener("change", this.bubbleChange);
|
|
167
|
+
}
|
|
168
|
+
this.emit("change", this.name, 1, this);
|
|
169
|
+
}
|
|
170
|
+
debug(u = 0) {
|
|
171
|
+
let t = " ".repeat(u), D = `${t}${this.name || "top"}: ${this.completed()}
|
|
172
|
+
`;
|
|
173
|
+
return this.trackers.forEach(function(r) {
|
|
174
|
+
D += r instanceof e ? r.debug(u + 1) : `${t} ${r.name}: ${r.completed()}
|
|
175
|
+
`;
|
|
176
|
+
}), D;
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
function pt(e) {
|
|
180
|
+
return function(u, t, D) {
|
|
181
|
+
e.completion[D.id] = t, !e.finished && e.emit("change", u || e.name, e.completed(), e);
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
i(pt, "bubbleChange");
|
|
185
|
+
Ge.exports = oe;
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
// ../node_modules/npmlog/node_modules/are-we-there-yet/lib/index.js
|
|
189
|
+
var Ne = l((Y) => {
|
|
190
|
+
"use strict";
|
|
191
|
+
Y.TrackerGroup = We();
|
|
192
|
+
Y.Tracker = P();
|
|
193
|
+
Y.TrackerStream = ae();
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
// ../node_modules/console-control-strings/index.js
|
|
197
|
+
var V = l((g) => {
|
|
198
|
+
"use strict";
|
|
199
|
+
var p = "\x1B[";
|
|
200
|
+
g.up = /* @__PURE__ */ i(function(u) {
|
|
201
|
+
return p + (u || "") + "A";
|
|
202
|
+
}, "up");
|
|
203
|
+
g.down = /* @__PURE__ */ i(function(u) {
|
|
204
|
+
return p + (u || "") + "B";
|
|
205
|
+
}, "down");
|
|
206
|
+
g.forward = /* @__PURE__ */ i(function(u) {
|
|
207
|
+
return p + (u || "") + "C";
|
|
208
|
+
}, "forward");
|
|
209
|
+
g.back = /* @__PURE__ */ i(function(u) {
|
|
210
|
+
return p + (u || "") + "D";
|
|
211
|
+
}, "back");
|
|
212
|
+
g.nextLine = /* @__PURE__ */ i(function(u) {
|
|
213
|
+
return p + (u || "") + "E";
|
|
214
|
+
}, "nextLine");
|
|
215
|
+
g.previousLine = /* @__PURE__ */ i(function(u) {
|
|
216
|
+
return p + (u || "") + "F";
|
|
217
|
+
}, "previousLine");
|
|
218
|
+
g.horizontalAbsolute = /* @__PURE__ */ i(function(u) {
|
|
219
|
+
if (u == null) throw new Error("horizontalAboslute requires a column to position to");
|
|
220
|
+
return p + u + "G";
|
|
221
|
+
}, "horizontalAbsolute");
|
|
222
|
+
g.eraseData = /* @__PURE__ */ i(function() {
|
|
223
|
+
return p + "J";
|
|
224
|
+
}, "eraseData");
|
|
225
|
+
g.eraseLine = /* @__PURE__ */ i(function() {
|
|
226
|
+
return p + "K";
|
|
227
|
+
}, "eraseLine");
|
|
228
|
+
g.goto = function(e, u) {
|
|
229
|
+
return p + u + ";" + e + "H";
|
|
230
|
+
};
|
|
231
|
+
g.gotoSOL = function() {
|
|
232
|
+
return "\r";
|
|
233
|
+
};
|
|
234
|
+
g.beep = function() {
|
|
235
|
+
return "\x07";
|
|
236
|
+
};
|
|
237
|
+
g.hideCursor = /* @__PURE__ */ i(function() {
|
|
238
|
+
return p + "?25l";
|
|
239
|
+
}, "hideCursor");
|
|
240
|
+
g.showCursor = /* @__PURE__ */ i(function() {
|
|
241
|
+
return p + "?25h";
|
|
242
|
+
}, "showCursor");
|
|
243
|
+
var $e = {
|
|
244
|
+
reset: 0,
|
|
245
|
+
// styles
|
|
246
|
+
bold: 1,
|
|
247
|
+
italic: 3,
|
|
248
|
+
underline: 4,
|
|
249
|
+
inverse: 7,
|
|
250
|
+
// resets
|
|
251
|
+
stopBold: 22,
|
|
252
|
+
stopItalic: 23,
|
|
253
|
+
stopUnderline: 24,
|
|
254
|
+
stopInverse: 27,
|
|
255
|
+
// colors
|
|
256
|
+
white: 37,
|
|
257
|
+
black: 30,
|
|
258
|
+
blue: 34,
|
|
259
|
+
cyan: 36,
|
|
260
|
+
green: 32,
|
|
261
|
+
magenta: 35,
|
|
262
|
+
red: 31,
|
|
263
|
+
yellow: 33,
|
|
264
|
+
bgWhite: 47,
|
|
265
|
+
bgBlack: 40,
|
|
266
|
+
bgBlue: 44,
|
|
267
|
+
bgCyan: 46,
|
|
268
|
+
bgGreen: 42,
|
|
269
|
+
bgMagenta: 45,
|
|
270
|
+
bgRed: 41,
|
|
271
|
+
bgYellow: 43,
|
|
272
|
+
grey: 90,
|
|
273
|
+
brightBlack: 90,
|
|
274
|
+
brightRed: 91,
|
|
275
|
+
brightGreen: 92,
|
|
276
|
+
brightYellow: 93,
|
|
277
|
+
brightBlue: 94,
|
|
278
|
+
brightMagenta: 95,
|
|
279
|
+
brightCyan: 96,
|
|
280
|
+
brightWhite: 97,
|
|
281
|
+
bgGrey: 100,
|
|
282
|
+
bgBrightBlack: 100,
|
|
283
|
+
bgBrightRed: 101,
|
|
284
|
+
bgBrightGreen: 102,
|
|
285
|
+
bgBrightYellow: 103,
|
|
286
|
+
bgBrightBlue: 104,
|
|
287
|
+
bgBrightMagenta: 105,
|
|
288
|
+
bgBrightCyan: 106,
|
|
289
|
+
bgBrightWhite: 107
|
|
290
|
+
};
|
|
291
|
+
g.color = /* @__PURE__ */ i(function(u) {
|
|
292
|
+
return (arguments.length !== 1 || !Array.isArray(u)) && (u = Array.prototype.slice.call(arguments)), p + u.map(dt).join(";") + "m";
|
|
293
|
+
}, "color");
|
|
294
|
+
function dt(e) {
|
|
295
|
+
if ($e[e] != null) return $e[e];
|
|
296
|
+
throw new Error("Unknown color or style name: " + e);
|
|
297
|
+
}
|
|
298
|
+
i(dt, "colorNameToCode");
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
// ../node_modules/string-width/node_modules/ansi-regex/index.js
|
|
302
|
+
var Pe = l((ID, ze) => {
|
|
303
|
+
"use strict";
|
|
304
|
+
ze.exports = ({ onlyFirst: e = !1 } = {}) => {
|
|
305
|
+
let u = [
|
|
306
|
+
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
307
|
+
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
308
|
+
].join("|");
|
|
309
|
+
return new RegExp(u, e ? void 0 : "g");
|
|
310
|
+
};
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
// ../node_modules/string-width/node_modules/strip-ansi/index.js
|
|
314
|
+
var Ve = l((RD, Ye) => {
|
|
315
|
+
"use strict";
|
|
316
|
+
var mt = Pe();
|
|
317
|
+
Ye.exports = (e) => typeof e == "string" ? e.replace(mt(), "") : e;
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
// ../node_modules/is-fullwidth-code-point/index.js
|
|
321
|
+
var He = l((OD, le) => {
|
|
322
|
+
"use strict";
|
|
323
|
+
var Ze = /* @__PURE__ */ i((e) => Number.isNaN(e) ? !1 : e >= 4352 && (e <= 4447 || // Hangul Jamo
|
|
324
|
+
e === 9001 || // LEFT-POINTING ANGLE BRACKET
|
|
325
|
+
e === 9002 || // RIGHT-POINTING ANGLE BRACKET
|
|
326
|
+
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
|
|
327
|
+
11904 <= e && e <= 12871 && e !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
|
|
328
|
+
12880 <= e && e <= 19903 || // CJK Unified Ideographs .. Yi Radicals
|
|
329
|
+
19968 <= e && e <= 42182 || // Hangul Jamo Extended-A
|
|
330
|
+
43360 <= e && e <= 43388 || // Hangul Syllables
|
|
331
|
+
44032 <= e && e <= 55203 || // CJK Compatibility Ideographs
|
|
332
|
+
63744 <= e && e <= 64255 || // Vertical Forms
|
|
333
|
+
65040 <= e && e <= 65049 || // CJK Compatibility Forms .. Small Form Variants
|
|
334
|
+
65072 <= e && e <= 65131 || // Halfwidth and Fullwidth Forms
|
|
335
|
+
65281 <= e && e <= 65376 || 65504 <= e && e <= 65510 || // Kana Supplement
|
|
336
|
+
110592 <= e && e <= 110593 || // Enclosed Ideographic Supplement
|
|
337
|
+
127488 <= e && e <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
|
338
|
+
131072 <= e && e <= 262141), "isFullwidthCodePoint");
|
|
339
|
+
le.exports = Ze;
|
|
340
|
+
le.exports.default = Ze;
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
// ../node_modules/string-width/node_modules/emoji-regex/index.js
|
|
344
|
+
var Xe = l((UD, Je) => {
|
|
345
|
+
"use strict";
|
|
346
|
+
Je.exports = function() {
|
|
347
|
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
348
|
+
};
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
// ../node_modules/string-width/index.js
|
|
352
|
+
var N = l((MD, he) => {
|
|
353
|
+
"use strict";
|
|
354
|
+
var vt = Ve(), Bt = He(), At = Xe(), Ke = /* @__PURE__ */ i((e) => {
|
|
355
|
+
if (typeof e != "string" || e.length === 0 || (e = vt(e), e.length === 0))
|
|
356
|
+
return 0;
|
|
357
|
+
e = e.replace(At(), " ");
|
|
358
|
+
let u = 0;
|
|
359
|
+
for (let t = 0; t < e.length; t++) {
|
|
360
|
+
let D = e.codePointAt(t);
|
|
361
|
+
D <= 31 || D >= 127 && D <= 159 || D >= 768 && D <= 879 || (D > 65535 && t++, u += Bt(D) ? 2 : 1);
|
|
362
|
+
}
|
|
363
|
+
return u;
|
|
364
|
+
}, "stringWidth");
|
|
365
|
+
he.exports = Ke;
|
|
366
|
+
he.exports.default = Ke;
|
|
367
|
+
});
|
|
368
|
+
|
|
369
|
+
// ../node_modules/wide-align/align.js
|
|
370
|
+
var Qe = l((H) => {
|
|
371
|
+
"use strict";
|
|
372
|
+
var fe = N();
|
|
373
|
+
H.center = xt;
|
|
374
|
+
H.left = bt;
|
|
375
|
+
H.right = wt;
|
|
376
|
+
function Z(e) {
|
|
377
|
+
var u = "", t = " ", D = e;
|
|
378
|
+
do
|
|
379
|
+
D % 2 && (u += t), D = Math.floor(D / 2), t += t;
|
|
380
|
+
while (D);
|
|
381
|
+
return u;
|
|
382
|
+
}
|
|
383
|
+
i(Z, "createPadding");
|
|
384
|
+
function bt(e, u) {
|
|
385
|
+
var t = e.trimRight();
|
|
386
|
+
if (t.length === 0 && e.length >= u) return e;
|
|
387
|
+
var D = "", r = fe(t);
|
|
388
|
+
return r < u && (D = Z(u - r)), t + D;
|
|
389
|
+
}
|
|
390
|
+
i(bt, "alignLeft");
|
|
391
|
+
function wt(e, u) {
|
|
392
|
+
var t = e.trimLeft();
|
|
393
|
+
if (t.length === 0 && e.length >= u) return e;
|
|
394
|
+
var D = "", r = fe(t);
|
|
395
|
+
return r < u && (D = Z(u - r)), D + t;
|
|
396
|
+
}
|
|
397
|
+
i(wt, "alignRight");
|
|
398
|
+
function xt(e, u) {
|
|
399
|
+
var t = e.trim();
|
|
400
|
+
if (t.length === 0 && e.length >= u) return e;
|
|
401
|
+
var D = "", r = "", n = fe(t);
|
|
402
|
+
if (n < u) {
|
|
403
|
+
var o = parseInt((u - n) / 2, 10);
|
|
404
|
+
D = Z(o), r = Z(u - (n + o));
|
|
405
|
+
}
|
|
406
|
+
return D + t + r;
|
|
407
|
+
}
|
|
408
|
+
i(xt, "alignCenter");
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
// ../node_modules/aproba/index.js
|
|
412
|
+
var X = l(($D, Du) => {
|
|
413
|
+
"use strict";
|
|
414
|
+
Du.exports = uu;
|
|
415
|
+
function yt(e) {
|
|
416
|
+
return e != null && typeof e == "object" && e.hasOwnProperty("callee");
|
|
417
|
+
}
|
|
418
|
+
i(yt, "isArguments");
|
|
419
|
+
var A = {
|
|
420
|
+
"*": { label: "any", check: /* @__PURE__ */ i(() => !0, "check") },
|
|
421
|
+
A: { label: "array", check: /* @__PURE__ */ i((e) => Array.isArray(e) || yt(e), "check") },
|
|
422
|
+
S: { label: "string", check: /* @__PURE__ */ i((e) => typeof e == "string", "check") },
|
|
423
|
+
N: { label: "number", check: /* @__PURE__ */ i((e) => typeof e == "number", "check") },
|
|
424
|
+
F: { label: "function", check: /* @__PURE__ */ i((e) => typeof e == "function", "check") },
|
|
425
|
+
O: { label: "object", check: /* @__PURE__ */ i((e) => typeof e == "object" && e != null && !A.A.check(e) && !A.E.check(e), "check") },
|
|
426
|
+
B: { label: "boolean", check: /* @__PURE__ */ i((e) => typeof e == "boolean", "check") },
|
|
427
|
+
E: { label: "error", check: /* @__PURE__ */ i((e) => e instanceof Error, "check") },
|
|
428
|
+
Z: { label: "null", check: /* @__PURE__ */ i((e) => e == null, "check") }
|
|
429
|
+
};
|
|
430
|
+
function J(e, u) {
|
|
431
|
+
let t = u[e.length] = u[e.length] || [];
|
|
432
|
+
t.indexOf(e) === -1 && t.push(e);
|
|
433
|
+
}
|
|
434
|
+
i(J, "addSchema");
|
|
435
|
+
function uu(e, u) {
|
|
436
|
+
if (arguments.length !== 2) throw eu(["SA"], arguments.length);
|
|
437
|
+
if (!e) throw je(0, "rawSchemas");
|
|
438
|
+
if (!u) throw je(1, "args");
|
|
439
|
+
if (!A.S.check(e)) throw ce(0, ["string"], e);
|
|
440
|
+
if (!A.A.check(u)) throw ce(1, ["array"], u);
|
|
441
|
+
let t = e.split("|"), D = {};
|
|
442
|
+
t.forEach((n) => {
|
|
443
|
+
for (let o = 0; o < n.length; ++o) {
|
|
444
|
+
let h = n[o];
|
|
445
|
+
if (!A[h]) throw _t(o, h);
|
|
446
|
+
}
|
|
447
|
+
if (/E.*E/.test(n)) throw Tt(n);
|
|
448
|
+
J(n, D), /E/.test(n) && (J(n.replace(/E.*$/, "E"), D), J(n.replace(/E/, "Z"), D), n.length === 1 && J("", D));
|
|
449
|
+
});
|
|
450
|
+
let r = D[u.length];
|
|
451
|
+
if (!r)
|
|
452
|
+
throw eu(Object.keys(D), u.length);
|
|
453
|
+
for (let n = 0; n < u.length; ++n) {
|
|
454
|
+
let o = r.filter((h) => {
|
|
455
|
+
let f = h[n], c = A[f].check;
|
|
456
|
+
return c(u[n]);
|
|
457
|
+
});
|
|
458
|
+
if (!o.length) {
|
|
459
|
+
let h = r.map((f) => A[f[n]].label).filter((f) => f != null);
|
|
460
|
+
throw ce(n, h, u[n]);
|
|
461
|
+
}
|
|
462
|
+
r = o;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
i(uu, "validate");
|
|
466
|
+
function je(e) {
|
|
467
|
+
return $("EMISSINGARG", "Missing required argument #" + (e + 1));
|
|
468
|
+
}
|
|
469
|
+
i(je, "missingRequiredArg");
|
|
470
|
+
function _t(e, u) {
|
|
471
|
+
return $("EUNKNOWNTYPE", "Unknown type " + u + " in argument #" + (e + 1));
|
|
472
|
+
}
|
|
473
|
+
i(_t, "unknownType");
|
|
474
|
+
function ce(e, u, t) {
|
|
475
|
+
let D;
|
|
476
|
+
return Object.keys(A).forEach((r) => {
|
|
477
|
+
A[r].check(t) && (D = A[r].label);
|
|
478
|
+
}), $("EINVALIDTYPE", "Argument #" + (e + 1) + ": Expected " + tu(u) + " but got " + D);
|
|
479
|
+
}
|
|
480
|
+
i(ce, "invalidType");
|
|
481
|
+
function tu(e) {
|
|
482
|
+
return e.join(", ").replace(/, ([^,]+)$/, " or $1");
|
|
483
|
+
}
|
|
484
|
+
i(tu, "englishList");
|
|
485
|
+
function eu(e, u) {
|
|
486
|
+
let t = tu(e), D = e.every((r) => r.length === 1) ? "argument" : "arguments";
|
|
487
|
+
return $("EWRONGARGCOUNT", "Expected " + t + " " + D + " but got " + u);
|
|
488
|
+
}
|
|
489
|
+
i(eu, "wrongNumberOfArgs");
|
|
490
|
+
function Tt(e) {
|
|
491
|
+
return $(
|
|
492
|
+
"ETOOMANYERRORTYPES",
|
|
493
|
+
'Only one error type per argument signature is allowed, more than one found in "' + e + '"'
|
|
494
|
+
);
|
|
495
|
+
}
|
|
496
|
+
i(Tt, "moreThanOneError");
|
|
497
|
+
function $(e, u) {
|
|
498
|
+
let t = new Error(u);
|
|
499
|
+
return t.code = e, Error.captureStackTrace && Error.captureStackTrace(t, uu), t;
|
|
500
|
+
}
|
|
501
|
+
i($, "newException");
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
// ../node_modules/npmlog/node_modules/ansi-regex/index.js
|
|
505
|
+
var iu = l((PD, ru) => {
|
|
506
|
+
"use strict";
|
|
507
|
+
ru.exports = ({ onlyFirst: e = !1 } = {}) => {
|
|
508
|
+
let u = [
|
|
509
|
+
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
510
|
+
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
511
|
+
].join("|");
|
|
512
|
+
return new RegExp(u, e ? void 0 : "g");
|
|
513
|
+
};
|
|
514
|
+
});
|
|
515
|
+
|
|
516
|
+
// ../node_modules/npmlog/node_modules/strip-ansi/index.js
|
|
517
|
+
var su = l((YD, nu) => {
|
|
518
|
+
"use strict";
|
|
519
|
+
var kt = iu();
|
|
520
|
+
nu.exports = (e) => typeof e == "string" ? e.replace(kt(), "") : e;
|
|
521
|
+
});
|
|
522
|
+
|
|
523
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/wide-truncate.js
|
|
524
|
+
var Ce = l((VD, au) => {
|
|
525
|
+
"use strict";
|
|
526
|
+
var Fe = N(), St = su();
|
|
527
|
+
au.exports = Lt;
|
|
528
|
+
function Lt(e, u) {
|
|
529
|
+
if (Fe(e) === 0)
|
|
530
|
+
return e;
|
|
531
|
+
if (u <= 0)
|
|
532
|
+
return "";
|
|
533
|
+
if (Fe(e) <= u)
|
|
534
|
+
return e;
|
|
535
|
+
for (var t = St(e), D = e.length + t.length, r = e.slice(0, u + D); Fe(r) > u; )
|
|
536
|
+
r = r.slice(0, -1);
|
|
537
|
+
return r;
|
|
538
|
+
}
|
|
539
|
+
i(Lt, "wideTruncate");
|
|
540
|
+
});
|
|
541
|
+
|
|
542
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/error.js
|
|
543
|
+
var ou = l((K) => {
|
|
544
|
+
"use strict";
|
|
545
|
+
var It = I("util"), Rt = K.User = /* @__PURE__ */ i(function e(u) {
|
|
546
|
+
var t = new Error(u);
|
|
547
|
+
return Error.captureStackTrace(t, e), t.code = "EGAUGE", t;
|
|
548
|
+
}, "User");
|
|
549
|
+
K.MissingTemplateValue = /* @__PURE__ */ i(function e(u, t) {
|
|
550
|
+
var D = new Rt(It.format('Missing template value "%s"', u.type));
|
|
551
|
+
return Error.captureStackTrace(D, e), D.template = u, D.values = t, D;
|
|
552
|
+
}, "MissingTemplateValue");
|
|
553
|
+
K.Internal = /* @__PURE__ */ i(function e(u) {
|
|
554
|
+
var t = new Error(u);
|
|
555
|
+
return Error.captureStackTrace(t, e), t.code = "EGAUGEINTERNAL", t;
|
|
556
|
+
}, "Internal");
|
|
557
|
+
});
|
|
558
|
+
|
|
559
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/template-item.js
|
|
560
|
+
var hu = l((XD, lu) => {
|
|
561
|
+
"use strict";
|
|
562
|
+
var Ot = N();
|
|
563
|
+
lu.exports = R;
|
|
564
|
+
function Ee(e) {
|
|
565
|
+
return typeof e != "string" ? !1 : e.slice(-1) === "%";
|
|
566
|
+
}
|
|
567
|
+
i(Ee, "isPercent");
|
|
568
|
+
function ge(e) {
|
|
569
|
+
return Number(e.slice(0, -1)) / 100;
|
|
570
|
+
}
|
|
571
|
+
i(ge, "percent");
|
|
572
|
+
function R(e, u) {
|
|
573
|
+
if (this.overallOutputLength = u, this.finished = !1, this.type = null, this.value = null, this.length = null, this.maxLength = null, this.
|
|
574
|
+
minLength = null, this.kerning = null, this.align = "left", this.padLeft = 0, this.padRight = 0, this.index = null, this.first = null, this.
|
|
575
|
+
last = null, typeof e == "string")
|
|
576
|
+
this.value = e;
|
|
577
|
+
else
|
|
578
|
+
for (var t in e)
|
|
579
|
+
this[t] = e[t];
|
|
580
|
+
return Ee(this.length) && (this.length = Math.round(this.overallOutputLength * ge(this.length))), Ee(this.minLength) && (this.minLength =
|
|
581
|
+
Math.round(this.overallOutputLength * ge(this.minLength))), Ee(this.maxLength) && (this.maxLength = Math.round(this.overallOutputLength *
|
|
582
|
+
ge(this.maxLength))), this;
|
|
583
|
+
}
|
|
584
|
+
i(R, "TemplateItem");
|
|
585
|
+
R.prototype = {};
|
|
586
|
+
R.prototype.getBaseLength = function() {
|
|
587
|
+
var e = this.length;
|
|
588
|
+
return e == null && typeof this.value == "string" && this.maxLength == null && this.minLength == null && (e = Ot(this.value)), e;
|
|
589
|
+
};
|
|
590
|
+
R.prototype.getLength = function() {
|
|
591
|
+
var e = this.getBaseLength();
|
|
592
|
+
return e == null ? null : e + this.padLeft + this.padRight;
|
|
593
|
+
};
|
|
594
|
+
R.prototype.getMaxLength = function() {
|
|
595
|
+
return this.maxLength == null ? null : this.maxLength + this.padLeft + this.padRight;
|
|
596
|
+
};
|
|
597
|
+
R.prototype.getMinLength = function() {
|
|
598
|
+
return this.minLength == null ? null : this.minLength + this.padLeft + this.padRight;
|
|
599
|
+
};
|
|
600
|
+
});
|
|
601
|
+
|
|
602
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/render-template.js
|
|
603
|
+
var pe = l((QD, Cu) => {
|
|
604
|
+
"use strict";
|
|
605
|
+
var z = Qe(), qt = X(), fu = Ce(), O = ou(), Ut = hu();
|
|
606
|
+
function Mt(e) {
|
|
607
|
+
return function(u) {
|
|
608
|
+
return Pt(u, e);
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
i(Mt, "renderValueWithValues");
|
|
612
|
+
var Gt = Cu.exports = function(e, u, t) {
|
|
613
|
+
var D = $t(e, u, t), r = D.map(Mt(t)).join("");
|
|
614
|
+
return z.left(fu(r, e), e);
|
|
615
|
+
};
|
|
616
|
+
function cu(e) {
|
|
617
|
+
var u = e.type[0].toUpperCase() + e.type.slice(1);
|
|
618
|
+
return "pre" + u;
|
|
619
|
+
}
|
|
620
|
+
i(cu, "preType");
|
|
621
|
+
function Fu(e) {
|
|
622
|
+
var u = e.type[0].toUpperCase() + e.type.slice(1);
|
|
623
|
+
return "post" + u;
|
|
624
|
+
}
|
|
625
|
+
i(Fu, "postType");
|
|
626
|
+
function Wt(e, u) {
|
|
627
|
+
if (e.type)
|
|
628
|
+
return u[cu(e)] || u[Fu(e)];
|
|
629
|
+
}
|
|
630
|
+
i(Wt, "hasPreOrPost");
|
|
631
|
+
function Nt(e, u) {
|
|
632
|
+
var t = Object.assign({}, e), D = Object.create(u), r = [], n = cu(t), o = Fu(t);
|
|
633
|
+
return D[n] && (r.push({ value: D[n] }), D[n] = null), t.minLength = null, t.length = null, t.maxLength = null, r.push(t), D[t.type] = D[t.
|
|
634
|
+
type], D[o] && (r.push({ value: D[o] }), D[o] = null), function(h, f, c) {
|
|
635
|
+
return Gt(c, r, D);
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
i(Nt, "generatePreAndPost");
|
|
639
|
+
function $t(e, u, t) {
|
|
640
|
+
function D(a, B, Dt) {
|
|
641
|
+
var E = new Ut(a, e), Se = E.type;
|
|
642
|
+
if (E.value == null)
|
|
643
|
+
if (Se in t)
|
|
644
|
+
E.value = t[Se];
|
|
645
|
+
else {
|
|
646
|
+
if (E.default == null)
|
|
647
|
+
throw new O.MissingTemplateValue(E, t);
|
|
648
|
+
E.value = E.default;
|
|
649
|
+
}
|
|
650
|
+
return E.value == null || E.value === "" ? null : (E.index = B, E.first = B === 0, E.last = B === Dt.length - 1, Wt(E, t) && (E.value =
|
|
651
|
+
Nt(E, t)), E);
|
|
652
|
+
}
|
|
653
|
+
i(D, "cloneAndObjectify");
|
|
654
|
+
var r = u.map(D).filter(function(a) {
|
|
655
|
+
return a != null;
|
|
656
|
+
}), n = e, o = r.length;
|
|
657
|
+
function h(a) {
|
|
658
|
+
a > n && (a = n), n -= a;
|
|
659
|
+
}
|
|
660
|
+
i(h, "consumeSpace");
|
|
661
|
+
function f(a, B) {
|
|
662
|
+
if (a.finished)
|
|
663
|
+
throw new O.Internal("Tried to finish template item that was already finished");
|
|
664
|
+
if (B === 1 / 0)
|
|
665
|
+
throw new O.Internal("Length of template item cannot be infinity");
|
|
666
|
+
if (B != null && (a.length = B), a.minLength = null, a.maxLength = null, --o, a.finished = !0, a.length == null && (a.length = a.getBaseLength()),
|
|
667
|
+
a.length == null)
|
|
668
|
+
throw new O.Internal("Finished template items must have a length");
|
|
669
|
+
h(a.getLength());
|
|
670
|
+
}
|
|
671
|
+
i(f, "finishSizing"), r.forEach(function(a) {
|
|
672
|
+
if (a.kerning) {
|
|
673
|
+
var B = a.first ? 0 : r[a.index - 1].padRight;
|
|
674
|
+
!a.first && B < a.kerning && (a.padLeft = a.kerning - B), a.last || (a.padRight = a.kerning);
|
|
675
|
+
}
|
|
676
|
+
}), r.forEach(function(a) {
|
|
677
|
+
a.getBaseLength() != null && f(a);
|
|
678
|
+
});
|
|
679
|
+
var c = 0, F, m;
|
|
680
|
+
do
|
|
681
|
+
F = !1, m = Math.round(n / o), r.forEach(function(a) {
|
|
682
|
+
a.finished || a.maxLength && a.getMaxLength() < m && (f(a, a.maxLength), F = !0);
|
|
683
|
+
});
|
|
684
|
+
while (F && c++ < r.length);
|
|
685
|
+
if (F)
|
|
686
|
+
throw new O.Internal("Resize loop iterated too many times while determining maxLength");
|
|
687
|
+
c = 0;
|
|
688
|
+
do
|
|
689
|
+
F = !1, m = Math.round(n / o), r.forEach(function(a) {
|
|
690
|
+
a.finished || a.minLength && a.getMinLength() >= m && (f(a, a.minLength), F = !0);
|
|
691
|
+
});
|
|
692
|
+
while (F && c++ < r.length);
|
|
693
|
+
if (F)
|
|
694
|
+
throw new O.Internal("Resize loop iterated too many times while determining minLength");
|
|
695
|
+
return m = Math.round(n / o), r.forEach(function(a) {
|
|
696
|
+
a.finished || f(a, m);
|
|
697
|
+
}), r;
|
|
698
|
+
}
|
|
699
|
+
i($t, "prepareItems");
|
|
700
|
+
function zt(e, u, t) {
|
|
701
|
+
return qt("OON", arguments), e.type ? e.value(u, u[e.type + "Theme"] || {}, t) : e.value(u, {}, t);
|
|
702
|
+
}
|
|
703
|
+
i(zt, "renderFunction");
|
|
704
|
+
function Pt(e, u) {
|
|
705
|
+
var t = e.getBaseLength(), D = typeof e.value == "function" ? zt(e, u, t) : e.value;
|
|
706
|
+
if (D == null || D === "")
|
|
707
|
+
return "";
|
|
708
|
+
var r = z[e.align] || z.left, n = e.padLeft ? z.left("", e.padLeft) : "", o = e.padRight ? z.right("", e.padRight) : "", h = fu(String(D),
|
|
709
|
+
t), f = r(h, t);
|
|
710
|
+
return n + f + o;
|
|
711
|
+
}
|
|
712
|
+
i(Pt, "renderValue");
|
|
713
|
+
});
|
|
714
|
+
|
|
715
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/plumbing.js
|
|
716
|
+
var gu = l((er, Eu) => {
|
|
717
|
+
"use strict";
|
|
718
|
+
var k = V(), Yt = pe(), Q = X(), y = Eu.exports = function(e, u, t) {
|
|
719
|
+
t || (t = 80), Q("OAN", [e, u, t]), this.showing = !1, this.theme = e, this.width = t, this.template = u;
|
|
720
|
+
};
|
|
721
|
+
y.prototype = {};
|
|
722
|
+
y.prototype.setTheme = function(e) {
|
|
723
|
+
Q("O", [e]), this.theme = e;
|
|
724
|
+
};
|
|
725
|
+
y.prototype.setTemplate = function(e) {
|
|
726
|
+
Q("A", [e]), this.template = e;
|
|
727
|
+
};
|
|
728
|
+
y.prototype.setWidth = function(e) {
|
|
729
|
+
Q("N", [e]), this.width = e;
|
|
730
|
+
};
|
|
731
|
+
y.prototype.hide = function() {
|
|
732
|
+
return k.gotoSOL() + k.eraseLine();
|
|
733
|
+
};
|
|
734
|
+
y.prototype.hideCursor = k.hideCursor;
|
|
735
|
+
y.prototype.showCursor = k.showCursor;
|
|
736
|
+
y.prototype.show = function(e) {
|
|
737
|
+
var u = Object.create(this.theme);
|
|
738
|
+
for (var t in e)
|
|
739
|
+
u[t] = e[t];
|
|
740
|
+
return Yt(this.width, this.template, u).trim() + k.color("reset") + k.eraseLine() + k.gotoSOL();
|
|
741
|
+
};
|
|
742
|
+
});
|
|
743
|
+
|
|
744
|
+
// ../node_modules/has-unicode/index.js
|
|
745
|
+
var du = l((tr, pu) => {
|
|
746
|
+
"use strict";
|
|
747
|
+
var Vt = I("os"), ur = pu.exports = function() {
|
|
748
|
+
if (Vt.type() == "Windows_NT")
|
|
749
|
+
return !1;
|
|
750
|
+
var e = /UTF-?8$/i, u = process.env.LC_ALL || process.env.LC_CTYPE || process.env.LANG;
|
|
751
|
+
return e.test(u);
|
|
752
|
+
};
|
|
753
|
+
});
|
|
754
|
+
|
|
755
|
+
// ../node_modules/color-support/index.js
|
|
756
|
+
var Bu = l((Dr, vu) => {
|
|
757
|
+
vu.exports = mu({ alwaysReturn: !0 }, mu);
|
|
758
|
+
function q(e, u) {
|
|
759
|
+
return e.level = 0, e.hasBasic = !1, e.has256 = !1, e.has16m = !1, u.alwaysReturn ? e : !1;
|
|
760
|
+
}
|
|
761
|
+
i(q, "hasNone");
|
|
762
|
+
function j(e) {
|
|
763
|
+
return e.hasBasic = !0, e.has256 = !1, e.has16m = !1, e.level = 1, e;
|
|
764
|
+
}
|
|
765
|
+
i(j, "hasBasic");
|
|
766
|
+
function U(e) {
|
|
767
|
+
return e.hasBasic = !0, e.has256 = !0, e.has16m = !1, e.level = 2, e;
|
|
768
|
+
}
|
|
769
|
+
i(U, "has256");
|
|
770
|
+
function ee(e) {
|
|
771
|
+
return e.hasBasic = !0, e.has256 = !0, e.has16m = !0, e.level = 3, e;
|
|
772
|
+
}
|
|
773
|
+
i(ee, "has16m");
|
|
774
|
+
function mu(e, u) {
|
|
775
|
+
if (e = e || {}, u = u || {}, typeof e.level == "number")
|
|
776
|
+
switch (e.level) {
|
|
777
|
+
case 0:
|
|
778
|
+
return q(u, e);
|
|
779
|
+
case 1:
|
|
780
|
+
return j(u);
|
|
781
|
+
case 2:
|
|
782
|
+
return U(u);
|
|
783
|
+
case 3:
|
|
784
|
+
return ee(u);
|
|
785
|
+
}
|
|
786
|
+
if (u.level = 0, u.hasBasic = !1, u.has256 = !1, u.has16m = !1, typeof process > "u" || !process || !process.stdout || !process.env || !process.
|
|
787
|
+
platform)
|
|
788
|
+
return q(u, e);
|
|
789
|
+
var t = e.env || process.env, D = e.stream || process.stdout, r = e.term || t.TERM || "", n = e.platform || process.platform;
|
|
790
|
+
if (!e.ignoreTTY && !D.isTTY || !e.ignoreDumb && r === "dumb" && !t.COLORTERM)
|
|
791
|
+
return q(u, e);
|
|
792
|
+
if (n === "win32")
|
|
793
|
+
return j(u);
|
|
794
|
+
if (t.TMUX)
|
|
795
|
+
return U(u);
|
|
796
|
+
if (!e.ignoreCI && (t.CI || t.TEAMCITY_VERSION))
|
|
797
|
+
return t.TRAVIS ? U(u) : q(u, e);
|
|
798
|
+
switch (t.TERM_PROGRAM) {
|
|
799
|
+
case "iTerm.app":
|
|
800
|
+
var o = t.TERM_PROGRAM_VERSION || "0.";
|
|
801
|
+
return /^[0-2]\./.test(o) ? U(u) : ee(u);
|
|
802
|
+
case "HyperTerm":
|
|
803
|
+
case "Hyper":
|
|
804
|
+
return ee(u);
|
|
805
|
+
case "MacTerm":
|
|
806
|
+
return ee(u);
|
|
807
|
+
case "Apple_Terminal":
|
|
808
|
+
return U(u);
|
|
809
|
+
}
|
|
810
|
+
return /^xterm-256/.test(r) ? U(u) : /^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(r) || t.COLORTERM ? j(u) : q(u, e);
|
|
811
|
+
}
|
|
812
|
+
i(mu, "colorSupport");
|
|
813
|
+
});
|
|
814
|
+
|
|
815
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/has-color.js
|
|
816
|
+
var bu = l((ir, Au) => {
|
|
817
|
+
"use strict";
|
|
818
|
+
var Zt = Bu();
|
|
819
|
+
Au.exports = Zt().hasBasic;
|
|
820
|
+
});
|
|
821
|
+
|
|
822
|
+
// ../node_modules/npmlog/node_modules/signal-exit/dist/mjs/signals.js
|
|
823
|
+
var _, wu = Le(() => {
|
|
824
|
+
_ = [];
|
|
825
|
+
_.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
826
|
+
process.platform !== "win32" && _.push(
|
|
827
|
+
"SIGALRM",
|
|
828
|
+
"SIGABRT",
|
|
829
|
+
"SIGVTALRM",
|
|
830
|
+
"SIGXCPU",
|
|
831
|
+
"SIGXFSZ",
|
|
832
|
+
"SIGUSR2",
|
|
833
|
+
"SIGTRAP",
|
|
834
|
+
"SIGSYS",
|
|
835
|
+
"SIGQUIT",
|
|
836
|
+
"SIGIOT"
|
|
837
|
+
// should detect profiler and enable/disable accordingly.
|
|
838
|
+
// see #21
|
|
839
|
+
// 'SIGPROF'
|
|
840
|
+
);
|
|
841
|
+
process.platform === "linux" && _.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
842
|
+
});
|
|
843
|
+
|
|
844
|
+
// ../node_modules/npmlog/node_modules/signal-exit/dist/mjs/index.js
|
|
845
|
+
var xu = {};
|
|
846
|
+
ot(xu, {
|
|
847
|
+
load: () => Kt,
|
|
848
|
+
onExit: () => Xt,
|
|
849
|
+
signals: () => _,
|
|
850
|
+
unload: () => Qt
|
|
851
|
+
});
|
|
852
|
+
var ue, de, me, Ht, ve, te, Jt, Be, Ae, be, Xt, Kt, Qt, yu = Le(() => {
|
|
853
|
+
wu();
|
|
854
|
+
ue = /* @__PURE__ */ i((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.
|
|
855
|
+
reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "\
|
|
856
|
+
function", "processOk"), de = Symbol.for("signal-exit emitter"), me = globalThis, Ht = Object.defineProperty.bind(Object), ve = class {
|
|
857
|
+
static {
|
|
858
|
+
i(this, "Emitter");
|
|
859
|
+
}
|
|
860
|
+
emitted = {
|
|
861
|
+
afterExit: !1,
|
|
862
|
+
exit: !1
|
|
863
|
+
};
|
|
864
|
+
listeners = {
|
|
865
|
+
afterExit: [],
|
|
866
|
+
exit: []
|
|
867
|
+
};
|
|
868
|
+
count = 0;
|
|
869
|
+
id = Math.random();
|
|
870
|
+
constructor() {
|
|
871
|
+
if (me[de])
|
|
872
|
+
return me[de];
|
|
873
|
+
Ht(me, de, {
|
|
874
|
+
value: this,
|
|
875
|
+
writable: !1,
|
|
876
|
+
enumerable: !1,
|
|
877
|
+
configurable: !1
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
on(u, t) {
|
|
881
|
+
this.listeners[u].push(t);
|
|
882
|
+
}
|
|
883
|
+
removeListener(u, t) {
|
|
884
|
+
let D = this.listeners[u], r = D.indexOf(t);
|
|
885
|
+
r !== -1 && (r === 0 && D.length === 1 ? D.length = 0 : D.splice(r, 1));
|
|
886
|
+
}
|
|
887
|
+
emit(u, t, D) {
|
|
888
|
+
if (this.emitted[u])
|
|
889
|
+
return !1;
|
|
890
|
+
this.emitted[u] = !0;
|
|
891
|
+
let r = !1;
|
|
892
|
+
for (let n of this.listeners[u])
|
|
893
|
+
r = n(t, D) === !0 || r;
|
|
894
|
+
return u === "exit" && (r = this.emit("afterExit", t, D) || r), r;
|
|
895
|
+
}
|
|
896
|
+
}, te = class {
|
|
897
|
+
static {
|
|
898
|
+
i(this, "SignalExitBase");
|
|
899
|
+
}
|
|
900
|
+
}, Jt = /* @__PURE__ */ i((e) => ({
|
|
901
|
+
onExit(u, t) {
|
|
902
|
+
return e.onExit(u, t);
|
|
903
|
+
},
|
|
904
|
+
load() {
|
|
905
|
+
return e.load();
|
|
906
|
+
},
|
|
907
|
+
unload() {
|
|
908
|
+
return e.unload();
|
|
909
|
+
}
|
|
910
|
+
}), "signalExitWrap"), Be = class extends te {
|
|
911
|
+
static {
|
|
912
|
+
i(this, "SignalExitFallback");
|
|
913
|
+
}
|
|
914
|
+
onExit() {
|
|
915
|
+
return () => {
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
load() {
|
|
919
|
+
}
|
|
920
|
+
unload() {
|
|
921
|
+
}
|
|
922
|
+
}, Ae = class extends te {
|
|
923
|
+
static {
|
|
924
|
+
i(this, "SignalExit");
|
|
925
|
+
}
|
|
926
|
+
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
927
|
+
// so use a supported signal instead
|
|
928
|
+
/* c8 ignore start */
|
|
929
|
+
#n = be.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
930
|
+
/* c8 ignore stop */
|
|
931
|
+
#u = new ve();
|
|
932
|
+
#e;
|
|
933
|
+
#r;
|
|
934
|
+
#i;
|
|
935
|
+
#D = {};
|
|
936
|
+
#t = !1;
|
|
937
|
+
constructor(u) {
|
|
938
|
+
super(), this.#e = u, this.#D = {};
|
|
939
|
+
for (let t of _)
|
|
940
|
+
this.#D[t] = () => {
|
|
941
|
+
let D = this.#e.listeners(t), { count: r } = this.#u, n = u;
|
|
942
|
+
if (typeof n.__signal_exit_emitter__ == "object" && typeof n.__signal_exit_emitter__.count == "number" && (r += n.__signal_exit_emitter__.
|
|
943
|
+
count), D.length === r) {
|
|
944
|
+
this.unload();
|
|
945
|
+
let o = this.#u.emit("exit", null, t), h = t === "SIGHUP" ? this.#n : t;
|
|
946
|
+
o || u.kill(u.pid, h);
|
|
947
|
+
}
|
|
948
|
+
};
|
|
949
|
+
this.#i = u.reallyExit, this.#r = u.emit;
|
|
950
|
+
}
|
|
951
|
+
onExit(u, t) {
|
|
952
|
+
if (!ue(this.#e))
|
|
953
|
+
return () => {
|
|
954
|
+
};
|
|
955
|
+
this.#t === !1 && this.load();
|
|
956
|
+
let D = t?.alwaysLast ? "afterExit" : "exit";
|
|
957
|
+
return this.#u.on(D, u), () => {
|
|
958
|
+
this.#u.removeListener(D, u), this.#u.listeners.exit.length === 0 && this.#u.listeners.afterExit.length === 0 && this.unload();
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
load() {
|
|
962
|
+
if (!this.#t) {
|
|
963
|
+
this.#t = !0, this.#u.count += 1;
|
|
964
|
+
for (let u of _)
|
|
965
|
+
try {
|
|
966
|
+
let t = this.#D[u];
|
|
967
|
+
t && this.#e.on(u, t);
|
|
968
|
+
} catch {
|
|
969
|
+
}
|
|
970
|
+
this.#e.emit = (u, ...t) => this.#a(u, ...t), this.#e.reallyExit = (u) => this.#s(u);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
unload() {
|
|
974
|
+
this.#t && (this.#t = !1, _.forEach((u) => {
|
|
975
|
+
let t = this.#D[u];
|
|
976
|
+
if (!t)
|
|
977
|
+
throw new Error("Listener not defined for signal: " + u);
|
|
978
|
+
try {
|
|
979
|
+
this.#e.removeListener(u, t);
|
|
980
|
+
} catch {
|
|
981
|
+
}
|
|
982
|
+
}), this.#e.emit = this.#r, this.#e.reallyExit = this.#i, this.#u.count -= 1);
|
|
983
|
+
}
|
|
984
|
+
#s(u) {
|
|
985
|
+
return ue(this.#e) ? (this.#e.exitCode = u || 0, this.#u.emit("exit", this.#e.exitCode, null), this.#i.call(this.#e, this.#e.exitCode)) :
|
|
986
|
+
0;
|
|
987
|
+
}
|
|
988
|
+
#a(u, ...t) {
|
|
989
|
+
let D = this.#r;
|
|
990
|
+
if (u === "exit" && ue(this.#e)) {
|
|
991
|
+
typeof t[0] == "number" && (this.#e.exitCode = t[0]);
|
|
992
|
+
let r = D.call(this.#e, u, ...t);
|
|
993
|
+
return this.#u.emit("exit", this.#e.exitCode, null), r;
|
|
994
|
+
} else
|
|
995
|
+
return D.call(this.#e, u, ...t);
|
|
996
|
+
}
|
|
997
|
+
}, be = globalThis.process, {
|
|
998
|
+
onExit: (
|
|
999
|
+
/**
|
|
1000
|
+
* Called when the process is exiting, whether via signal, explicit
|
|
1001
|
+
* exit, or running out of stuff to do.
|
|
1002
|
+
*
|
|
1003
|
+
* If the global process object is not suitable for instrumentation,
|
|
1004
|
+
* then this will be a no-op.
|
|
1005
|
+
*
|
|
1006
|
+
* Returns a function that may be used to unload signal-exit.
|
|
1007
|
+
*/
|
|
1008
|
+
Xt
|
|
1009
|
+
),
|
|
1010
|
+
load: (
|
|
1011
|
+
/**
|
|
1012
|
+
* Load the listeners. Likely you never need to call this, unless
|
|
1013
|
+
* doing a rather deep integration with signal-exit functionality.
|
|
1014
|
+
* Mostly exposed for the benefit of testing.
|
|
1015
|
+
*
|
|
1016
|
+
* @internal
|
|
1017
|
+
*/
|
|
1018
|
+
Kt
|
|
1019
|
+
),
|
|
1020
|
+
unload: (
|
|
1021
|
+
/**
|
|
1022
|
+
* Unload the listeners. Likely you never need to call this, unless
|
|
1023
|
+
* doing a rather deep integration with signal-exit functionality.
|
|
1024
|
+
* Mostly exposed for the benefit of testing.
|
|
1025
|
+
*
|
|
1026
|
+
* @internal
|
|
1027
|
+
*/
|
|
1028
|
+
Qt
|
|
1029
|
+
)
|
|
1030
|
+
} = Jt(ue(be) ? new Ae(be) : new Be());
|
|
1031
|
+
});
|
|
1032
|
+
|
|
1033
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/spin.js
|
|
1034
|
+
var Tu = l((or, _u) => {
|
|
1035
|
+
"use strict";
|
|
1036
|
+
_u.exports = /* @__PURE__ */ i(function(u, t) {
|
|
1037
|
+
return u[t % u.length];
|
|
1038
|
+
}, "spin");
|
|
1039
|
+
});
|
|
1040
|
+
|
|
1041
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/progress-bar.js
|
|
1042
|
+
var Lu = l((hr, Su) => {
|
|
1043
|
+
"use strict";
|
|
1044
|
+
var jt = X(), eD = pe(), uD = Ce(), tD = N();
|
|
1045
|
+
Su.exports = function(e, u, t) {
|
|
1046
|
+
if (jt("ONN", [e, u, t]), t < 0 && (t = 0), t > 1 && (t = 1), u <= 0)
|
|
1047
|
+
return "";
|
|
1048
|
+
var D = Math.round(u * t), r = u - D, n = [
|
|
1049
|
+
{ type: "complete", value: ku(e.complete, D), length: D },
|
|
1050
|
+
{ type: "remaining", value: ku(e.remaining, r), length: r }
|
|
1051
|
+
];
|
|
1052
|
+
return eD(u, n, e);
|
|
1053
|
+
};
|
|
1054
|
+
function ku(e, u) {
|
|
1055
|
+
var t = "", D = u;
|
|
1056
|
+
do
|
|
1057
|
+
D % 2 && (t += e), D = Math.floor(D / 2), e += e;
|
|
1058
|
+
while (D && tD(t) < u);
|
|
1059
|
+
return uD(t, u);
|
|
1060
|
+
}
|
|
1061
|
+
i(ku, "repeat");
|
|
1062
|
+
});
|
|
1063
|
+
|
|
1064
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/base-theme.js
|
|
1065
|
+
var Ru = l((cr, Iu) => {
|
|
1066
|
+
"use strict";
|
|
1067
|
+
var DD = Tu(), rD = Lu();
|
|
1068
|
+
Iu.exports = {
|
|
1069
|
+
activityIndicator: /* @__PURE__ */ i(function(e, u, t) {
|
|
1070
|
+
if (e.spun != null)
|
|
1071
|
+
return DD(u, e.spun);
|
|
1072
|
+
}, "activityIndicator"),
|
|
1073
|
+
progressbar: /* @__PURE__ */ i(function(e, u, t) {
|
|
1074
|
+
if (e.completed != null)
|
|
1075
|
+
return rD(u, t, e.completed);
|
|
1076
|
+
}, "progressbar")
|
|
1077
|
+
};
|
|
1078
|
+
});
|
|
1079
|
+
|
|
1080
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/theme-set.js
|
|
1081
|
+
var qu = l((Cr, Ou) => {
|
|
1082
|
+
"use strict";
|
|
1083
|
+
Ou.exports = function() {
|
|
1084
|
+
return d.newThemeSet();
|
|
1085
|
+
};
|
|
1086
|
+
var d = {};
|
|
1087
|
+
d.baseTheme = Ru();
|
|
1088
|
+
d.newTheme = function(e, u) {
|
|
1089
|
+
return u || (u = e, e = this.baseTheme), Object.assign({}, e, u);
|
|
1090
|
+
};
|
|
1091
|
+
d.getThemeNames = function() {
|
|
1092
|
+
return Object.keys(this.themes);
|
|
1093
|
+
};
|
|
1094
|
+
d.addTheme = function(e, u, t) {
|
|
1095
|
+
this.themes[e] = this.newTheme(u, t);
|
|
1096
|
+
};
|
|
1097
|
+
d.addToAllThemes = function(e) {
|
|
1098
|
+
var u = this.themes;
|
|
1099
|
+
Object.keys(u).forEach(function(t) {
|
|
1100
|
+
Object.assign(u[t], e);
|
|
1101
|
+
}), Object.assign(this.baseTheme, e);
|
|
1102
|
+
};
|
|
1103
|
+
d.getTheme = function(e) {
|
|
1104
|
+
if (!this.themes[e])
|
|
1105
|
+
throw this.newMissingThemeError(e);
|
|
1106
|
+
return this.themes[e];
|
|
1107
|
+
};
|
|
1108
|
+
d.setDefault = function(e, u) {
|
|
1109
|
+
u == null && (u = e, e = {});
|
|
1110
|
+
var t = e.platform == null ? "fallback" : e.platform, D = !!e.hasUnicode, r = !!e.hasColor;
|
|
1111
|
+
this.defaults[t] || (this.defaults[t] = { true: {}, false: {} }), this.defaults[t][D][r] = u;
|
|
1112
|
+
};
|
|
1113
|
+
d.getDefault = function(e) {
|
|
1114
|
+
e || (e = {});
|
|
1115
|
+
var u = e.platform || process.platform, t = this.defaults[u] || this.defaults.fallback, D = !!e.hasUnicode, r = !!e.hasColor;
|
|
1116
|
+
if (!t)
|
|
1117
|
+
throw this.newMissingDefaultThemeError(u, D, r);
|
|
1118
|
+
if (!t[D][r]) {
|
|
1119
|
+
if (D && r && t[!D][r])
|
|
1120
|
+
D = !1;
|
|
1121
|
+
else if (D && r && t[D][!r])
|
|
1122
|
+
r = !1;
|
|
1123
|
+
else if (D && r && t[!D][!r])
|
|
1124
|
+
D = !1, r = !1;
|
|
1125
|
+
else if (D && !r && t[!D][r])
|
|
1126
|
+
D = !1;
|
|
1127
|
+
else if (!D && r && t[D][!r])
|
|
1128
|
+
r = !1;
|
|
1129
|
+
else if (t === this.defaults.fallback)
|
|
1130
|
+
throw this.newMissingDefaultThemeError(u, D, r);
|
|
1131
|
+
}
|
|
1132
|
+
return t[D][r] ? this.getTheme(t[D][r]) : this.getDefault(Object.assign({}, e, { platform: "fallback" }));
|
|
1133
|
+
};
|
|
1134
|
+
d.newMissingThemeError = /* @__PURE__ */ i(function e(u) {
|
|
1135
|
+
var t = new Error('Could not find a gauge theme named "' + u + '"');
|
|
1136
|
+
return Error.captureStackTrace.call(t, e), t.theme = u, t.code = "EMISSINGTHEME", t;
|
|
1137
|
+
}, "newMissingThemeError");
|
|
1138
|
+
d.newMissingDefaultThemeError = /* @__PURE__ */ i(function e(u, t, D) {
|
|
1139
|
+
var r = new Error(
|
|
1140
|
+
`Could not find a gauge theme for your platform/unicode/color use combo:
|
|
1141
|
+
platform = ` + u + `
|
|
1142
|
+
hasUnicode = ` + t + `
|
|
1143
|
+
hasColor = ` + D
|
|
1144
|
+
);
|
|
1145
|
+
return Error.captureStackTrace.call(r, e), r.platform = u, r.hasUnicode = t, r.hasColor = D, r.code = "EMISSINGTHEME", r;
|
|
1146
|
+
}, "newMissingDefaultThemeError");
|
|
1147
|
+
d.newThemeSet = function() {
|
|
1148
|
+
var e = /* @__PURE__ */ i(function(u) {
|
|
1149
|
+
return e.getDefault(u);
|
|
1150
|
+
}, "themeset");
|
|
1151
|
+
return Object.assign(e, d, {
|
|
1152
|
+
themes: Object.assign({}, this.themes),
|
|
1153
|
+
baseTheme: Object.assign({}, this.baseTheme),
|
|
1154
|
+
defaults: JSON.parse(JSON.stringify(this.defaults || {}))
|
|
1155
|
+
});
|
|
1156
|
+
};
|
|
1157
|
+
});
|
|
1158
|
+
|
|
1159
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/themes.js
|
|
1160
|
+
var Mu = l((gr, Uu) => {
|
|
1161
|
+
"use strict";
|
|
1162
|
+
var T = V().color, iD = qu(), v = Uu.exports = new iD();
|
|
1163
|
+
v.addTheme("ASCII", {
|
|
1164
|
+
preProgressbar: "[",
|
|
1165
|
+
postProgressbar: "]",
|
|
1166
|
+
progressbarTheme: {
|
|
1167
|
+
complete: "#",
|
|
1168
|
+
remaining: "."
|
|
1169
|
+
},
|
|
1170
|
+
activityIndicatorTheme: "-\\|/",
|
|
1171
|
+
preSubsection: ">"
|
|
1172
|
+
});
|
|
1173
|
+
v.addTheme("colorASCII", v.getTheme("ASCII"), {
|
|
1174
|
+
progressbarTheme: {
|
|
1175
|
+
preComplete: T("bgBrightWhite", "brightWhite"),
|
|
1176
|
+
complete: "#",
|
|
1177
|
+
postComplete: T("reset"),
|
|
1178
|
+
preRemaining: T("bgBrightBlack", "brightBlack"),
|
|
1179
|
+
remaining: ".",
|
|
1180
|
+
postRemaining: T("reset")
|
|
1181
|
+
}
|
|
1182
|
+
});
|
|
1183
|
+
v.addTheme("brailleSpinner", {
|
|
1184
|
+
preProgressbar: "(",
|
|
1185
|
+
postProgressbar: ")",
|
|
1186
|
+
progressbarTheme: {
|
|
1187
|
+
complete: "#",
|
|
1188
|
+
remaining: "\u2802"
|
|
1189
|
+
},
|
|
1190
|
+
activityIndicatorTheme: "\u280B\u2819\u2839\u2838\u283C\u2834\u2826\u2827\u2807\u280F",
|
|
1191
|
+
preSubsection: ">"
|
|
1192
|
+
});
|
|
1193
|
+
v.addTheme("colorBrailleSpinner", v.getTheme("brailleSpinner"), {
|
|
1194
|
+
progressbarTheme: {
|
|
1195
|
+
preComplete: T("bgBrightWhite", "brightWhite"),
|
|
1196
|
+
complete: "#",
|
|
1197
|
+
postComplete: T("reset"),
|
|
1198
|
+
preRemaining: T("bgBrightBlack", "brightBlack"),
|
|
1199
|
+
remaining: "\u2802",
|
|
1200
|
+
postRemaining: T("reset")
|
|
1201
|
+
}
|
|
1202
|
+
});
|
|
1203
|
+
v.setDefault({}, "ASCII");
|
|
1204
|
+
v.setDefault({ hasColor: !0 }, "colorASCII");
|
|
1205
|
+
v.setDefault({ platform: "darwin", hasUnicode: !0 }, "brailleSpinner");
|
|
1206
|
+
v.setDefault({ platform: "darwin", hasUnicode: !0, hasColor: !0 }, "colorBrailleSpinner");
|
|
1207
|
+
v.setDefault({ platform: "linux", hasUnicode: !0 }, "brailleSpinner");
|
|
1208
|
+
v.setDefault({ platform: "linux", hasUnicode: !0, hasColor: !0 }, "colorBrailleSpinner");
|
|
1209
|
+
});
|
|
1210
|
+
|
|
1211
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/set-interval.js
|
|
1212
|
+
var Wu = l((pr, Gu) => {
|
|
1213
|
+
"use strict";
|
|
1214
|
+
Gu.exports = setInterval;
|
|
1215
|
+
});
|
|
1216
|
+
|
|
1217
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/process.js
|
|
1218
|
+
var we = l((dr, Nu) => {
|
|
1219
|
+
"use strict";
|
|
1220
|
+
Nu.exports = process;
|
|
1221
|
+
});
|
|
1222
|
+
|
|
1223
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/set-immediate.js
|
|
1224
|
+
var $u = l((mr, xe) => {
|
|
1225
|
+
"use strict";
|
|
1226
|
+
var nD = we();
|
|
1227
|
+
try {
|
|
1228
|
+
xe.exports = setImmediate;
|
|
1229
|
+
} catch {
|
|
1230
|
+
xe.exports = nD.nextTick;
|
|
1231
|
+
}
|
|
1232
|
+
});
|
|
1233
|
+
|
|
1234
|
+
// ../node_modules/npmlog/node_modules/gauge/lib/index.js
|
|
1235
|
+
var Pu = l((vr, zu) => {
|
|
1236
|
+
"use strict";
|
|
1237
|
+
var sD = gu(), aD = du(), oD = bu(), lD = (yu(), lt(xu)).onExit, hD = Mu(), fD = Wu(), S = we(), cD = $u();
|
|
1238
|
+
zu.exports = C;
|
|
1239
|
+
function De(e, u) {
|
|
1240
|
+
return function() {
|
|
1241
|
+
return u.call(e);
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
i(De, "callWith");
|
|
1245
|
+
function C(e, u) {
|
|
1246
|
+
var t, D;
|
|
1247
|
+
e && e.write ? (D = e, t = u || {}) : u && u.write ? (D = u, t = e || {}) : (D = S.stderr, t = e || u || {}), this._status = {
|
|
1248
|
+
spun: 0,
|
|
1249
|
+
section: "",
|
|
1250
|
+
subsection: ""
|
|
1251
|
+
}, this._paused = !1, this._disabled = !0, this._showing = !1, this._onScreen = !1, this._needsRedraw = !1, this._hideCursor = t.hideCursor ==
|
|
1252
|
+
null ? !0 : t.hideCursor, this._fixedFramerate = t.fixedFramerate == null ? !/^v0\.8\./.test(S.version) : t.fixedFramerate, this._lastUpdateAt =
|
|
1253
|
+
null, this._updateInterval = t.updateInterval == null ? 50 : t.updateInterval, this._themes = t.themes || hD, this._theme = t.theme;
|
|
1254
|
+
var r = this._computeTheme(t.theme), n = t.template || [
|
|
1255
|
+
{ type: "progressbar", length: 20 },
|
|
1256
|
+
{ type: "activityIndicator", kerning: 1, length: 1 },
|
|
1257
|
+
{ type: "section", kerning: 1, default: "" },
|
|
1258
|
+
{ type: "subsection", kerning: 1, default: "" }
|
|
1259
|
+
];
|
|
1260
|
+
this.setWriteTo(D, t.tty);
|
|
1261
|
+
var o = t.Plumbing || sD;
|
|
1262
|
+
this._gauge = new o(r, n, this.getWidth()), this._$$doRedraw = De(this, this._doRedraw), this._$$handleSizeChange = De(this, this._handleSizeChange),
|
|
1263
|
+
this._cleanupOnExit = t.cleanupOnExit == null || t.cleanupOnExit, this._removeOnExit = null, t.enabled || t.enabled == null && this._tty &&
|
|
1264
|
+
this._tty.isTTY ? this.enable() : this.disable();
|
|
1265
|
+
}
|
|
1266
|
+
i(C, "Gauge");
|
|
1267
|
+
C.prototype = {};
|
|
1268
|
+
C.prototype.isEnabled = function() {
|
|
1269
|
+
return !this._disabled;
|
|
1270
|
+
};
|
|
1271
|
+
C.prototype.setTemplate = function(e) {
|
|
1272
|
+
this._gauge.setTemplate(e), this._showing && this._requestRedraw();
|
|
1273
|
+
};
|
|
1274
|
+
C.prototype._computeTheme = function(e) {
|
|
1275
|
+
if (e || (e = {}), typeof e == "string")
|
|
1276
|
+
e = this._themes.getTheme(e);
|
|
1277
|
+
else if (Object.keys(e).length === 0 || e.hasUnicode != null || e.hasColor != null) {
|
|
1278
|
+
var u = e.hasUnicode == null ? aD() : e.hasUnicode, t = e.hasColor == null ? oD : e.hasColor;
|
|
1279
|
+
e = this._themes.getDefault({
|
|
1280
|
+
hasUnicode: u,
|
|
1281
|
+
hasColor: t,
|
|
1282
|
+
platform: e.platform
|
|
1283
|
+
});
|
|
1284
|
+
}
|
|
1285
|
+
return e;
|
|
1286
|
+
};
|
|
1287
|
+
C.prototype.setThemeset = function(e) {
|
|
1288
|
+
this._themes = e, this.setTheme(this._theme);
|
|
1289
|
+
};
|
|
1290
|
+
C.prototype.setTheme = function(e) {
|
|
1291
|
+
this._gauge.setTheme(this._computeTheme(e)), this._showing && this._requestRedraw(), this._theme = e;
|
|
1292
|
+
};
|
|
1293
|
+
C.prototype._requestRedraw = function() {
|
|
1294
|
+
this._needsRedraw = !0, this._fixedFramerate || this._doRedraw();
|
|
1295
|
+
};
|
|
1296
|
+
C.prototype.getWidth = function() {
|
|
1297
|
+
return (this._tty && this._tty.columns || 80) - 1;
|
|
1298
|
+
};
|
|
1299
|
+
C.prototype.setWriteTo = function(e, u) {
|
|
1300
|
+
var t = !this._disabled;
|
|
1301
|
+
t && this.disable(), this._writeTo = e, this._tty = u || e === S.stderr && S.stdout.isTTY && S.stdout || e.isTTY && e || this._tty, this.
|
|
1302
|
+
_gauge && this._gauge.setWidth(this.getWidth()), t && this.enable();
|
|
1303
|
+
};
|
|
1304
|
+
C.prototype.enable = function() {
|
|
1305
|
+
this._disabled && (this._disabled = !1, this._tty && this._enableEvents(), this._showing && this.show());
|
|
1306
|
+
};
|
|
1307
|
+
C.prototype.disable = function() {
|
|
1308
|
+
this._disabled || (this._showing && (this._lastUpdateAt = null, this._showing = !1, this._doRedraw(), this._showing = !0), this._disabled =
|
|
1309
|
+
!0, this._tty && this._disableEvents());
|
|
1310
|
+
};
|
|
1311
|
+
C.prototype._enableEvents = function() {
|
|
1312
|
+
this._cleanupOnExit && (this._removeOnExit = lD(De(this, this.disable))), this._tty.on("resize", this._$$handleSizeChange), this._fixedFramerate &&
|
|
1313
|
+
(this.redrawTracker = fD(this._$$doRedraw, this._updateInterval), this.redrawTracker.unref && this.redrawTracker.unref());
|
|
1314
|
+
};
|
|
1315
|
+
C.prototype._disableEvents = function() {
|
|
1316
|
+
this._tty.removeListener("resize", this._$$handleSizeChange), this._fixedFramerate && clearInterval(this.redrawTracker), this._removeOnExit &&
|
|
1317
|
+
this._removeOnExit();
|
|
1318
|
+
};
|
|
1319
|
+
C.prototype.hide = function(e) {
|
|
1320
|
+
if (this._disabled || !this._showing)
|
|
1321
|
+
return e && S.nextTick(e);
|
|
1322
|
+
this._showing = !1, this._doRedraw(), e && cD(e);
|
|
1323
|
+
};
|
|
1324
|
+
C.prototype.show = function(e, u) {
|
|
1325
|
+
if (this._showing = !0, typeof e == "string")
|
|
1326
|
+
this._status.section = e;
|
|
1327
|
+
else if (typeof e == "object")
|
|
1328
|
+
for (var t = Object.keys(e), D = 0; D < t.length; ++D) {
|
|
1329
|
+
var r = t[D];
|
|
1330
|
+
this._status[r] = e[r];
|
|
1331
|
+
}
|
|
1332
|
+
u != null && (this._status.completed = u), !this._disabled && this._requestRedraw();
|
|
1333
|
+
};
|
|
1334
|
+
C.prototype.pulse = function(e) {
|
|
1335
|
+
this._status.subsection = e || "", this._status.spun++, !this._disabled && this._showing && this._requestRedraw();
|
|
1336
|
+
};
|
|
1337
|
+
C.prototype._handleSizeChange = function() {
|
|
1338
|
+
this._gauge.setWidth(this._tty.columns - 1), this._requestRedraw();
|
|
1339
|
+
};
|
|
1340
|
+
C.prototype._doRedraw = function() {
|
|
1341
|
+
if (!(this._disabled || this._paused)) {
|
|
1342
|
+
if (!this._fixedFramerate) {
|
|
1343
|
+
var e = Date.now();
|
|
1344
|
+
if (this._lastUpdateAt && e - this._lastUpdateAt < this._updateInterval)
|
|
1345
|
+
return;
|
|
1346
|
+
this._lastUpdateAt = e;
|
|
1347
|
+
}
|
|
1348
|
+
if (!this._showing && this._onScreen) {
|
|
1349
|
+
this._onScreen = !1;
|
|
1350
|
+
var u = this._gauge.hide();
|
|
1351
|
+
return this._hideCursor && (u += this._gauge.showCursor()), this._writeTo.write(u);
|
|
1352
|
+
}
|
|
1353
|
+
!this._showing && !this._onScreen || (this._showing && !this._onScreen && (this._onScreen = !0, this._needsRedraw = !0, this._hideCursor &&
|
|
1354
|
+
this._writeTo.write(this._gauge.hideCursor())), this._needsRedraw && (this._writeTo.write(this._gauge.show(this._status)) || (this._paused =
|
|
1355
|
+
!0, this._writeTo.on("drain", De(this, function() {
|
|
1356
|
+
this._paused = !1, this._doRedraw();
|
|
1357
|
+
})))));
|
|
1358
|
+
}
|
|
1359
|
+
};
|
|
1360
|
+
});
|
|
1361
|
+
|
|
1362
|
+
// ../node_modules/set-blocking/index.js
|
|
1363
|
+
var Vu = l((Ar, Yu) => {
|
|
1364
|
+
Yu.exports = function(e) {
|
|
1365
|
+
[process.stdout, process.stderr].forEach(function(u) {
|
|
1366
|
+
u._handle && u.isTTY && typeof u._handle.setBlocking == "function" && u._handle.setBlocking(e);
|
|
1367
|
+
});
|
|
1368
|
+
};
|
|
1369
|
+
});
|
|
1370
|
+
|
|
1371
|
+
// ../node_modules/npmlog/lib/log.js
|
|
1372
|
+
var Ku = l((Ju, Xu) => {
|
|
1373
|
+
"use strict";
|
|
1374
|
+
var Zu = Ne(), FD = Pu(), CD = I("events").EventEmitter, s = Ju = Xu.exports = new CD(), ye = I("util"), ED = Vu(), _e = V();
|
|
1375
|
+
ED(!0);
|
|
1376
|
+
var x = process.stderr;
|
|
1377
|
+
Object.defineProperty(s, "stream", {
|
|
1378
|
+
set: /* @__PURE__ */ i(function(e) {
|
|
1379
|
+
x = e, this.gauge && this.gauge.setWriteTo(x, x);
|
|
1380
|
+
}, "set"),
|
|
1381
|
+
get: /* @__PURE__ */ i(function() {
|
|
1382
|
+
return x;
|
|
1383
|
+
}, "get")
|
|
1384
|
+
});
|
|
1385
|
+
var M;
|
|
1386
|
+
s.useColor = function() {
|
|
1387
|
+
return M ?? x.isTTY;
|
|
1388
|
+
};
|
|
1389
|
+
s.enableColor = function() {
|
|
1390
|
+
M = !0, this.gauge.setTheme({ hasColor: M, hasUnicode: G });
|
|
1391
|
+
};
|
|
1392
|
+
s.disableColor = function() {
|
|
1393
|
+
M = !1, this.gauge.setTheme({ hasColor: M, hasUnicode: G });
|
|
1394
|
+
};
|
|
1395
|
+
s.level = "info";
|
|
1396
|
+
s.gauge = new FD(x, {
|
|
1397
|
+
enabled: !1,
|
|
1398
|
+
// no progress bars unless asked
|
|
1399
|
+
theme: { hasColor: s.useColor() },
|
|
1400
|
+
template: [
|
|
1401
|
+
{ type: "progressbar", length: 20 },
|
|
1402
|
+
{ type: "activityIndicator", kerning: 1, length: 1 },
|
|
1403
|
+
{ type: "section", default: "" },
|
|
1404
|
+
":",
|
|
1405
|
+
{ type: "logline", kerning: 1, default: "" }
|
|
1406
|
+
]
|
|
1407
|
+
});
|
|
1408
|
+
s.tracker = new Zu.TrackerGroup();
|
|
1409
|
+
s.progressEnabled = s.gauge.isEnabled();
|
|
1410
|
+
var G;
|
|
1411
|
+
s.enableUnicode = function() {
|
|
1412
|
+
G = !0, this.gauge.setTheme({ hasColor: this.useColor(), hasUnicode: G });
|
|
1413
|
+
};
|
|
1414
|
+
s.disableUnicode = function() {
|
|
1415
|
+
G = !1, this.gauge.setTheme({ hasColor: this.useColor(), hasUnicode: G });
|
|
1416
|
+
};
|
|
1417
|
+
s.setGaugeThemeset = function(e) {
|
|
1418
|
+
this.gauge.setThemeset(e);
|
|
1419
|
+
};
|
|
1420
|
+
s.setGaugeTemplate = function(e) {
|
|
1421
|
+
this.gauge.setTemplate(e);
|
|
1422
|
+
};
|
|
1423
|
+
s.enableProgress = function() {
|
|
1424
|
+
this.progressEnabled || this._paused || (this.progressEnabled = !0, this.tracker.on("change", this.showProgress), this.gauge.enable());
|
|
1425
|
+
};
|
|
1426
|
+
s.disableProgress = function() {
|
|
1427
|
+
this.progressEnabled && (this.progressEnabled = !1, this.tracker.removeListener("change", this.showProgress), this.gauge.disable());
|
|
1428
|
+
};
|
|
1429
|
+
var Te = ["newGroup", "newItem", "newStream"], Hu = /* @__PURE__ */ i(function(e) {
|
|
1430
|
+
return Object.keys(s).forEach(function(u) {
|
|
1431
|
+
if (u[0] !== "_" && !Te.filter(function(D) {
|
|
1432
|
+
return D === u;
|
|
1433
|
+
}).length && !e[u] && typeof s[u] == "function") {
|
|
1434
|
+
var t = s[u];
|
|
1435
|
+
e[u] = function() {
|
|
1436
|
+
return t.apply(s, arguments);
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1439
|
+
}), e instanceof Zu.TrackerGroup && Te.forEach(function(u) {
|
|
1440
|
+
var t = e[u];
|
|
1441
|
+
e[u] = function() {
|
|
1442
|
+
return Hu(t.apply(e, arguments));
|
|
1443
|
+
};
|
|
1444
|
+
}), e;
|
|
1445
|
+
}, "mixinLog");
|
|
1446
|
+
Te.forEach(function(e) {
|
|
1447
|
+
s[e] = function() {
|
|
1448
|
+
return Hu(this.tracker[e].apply(this.tracker, arguments));
|
|
1449
|
+
};
|
|
1450
|
+
});
|
|
1451
|
+
s.clearProgress = function(e) {
|
|
1452
|
+
if (!this.progressEnabled)
|
|
1453
|
+
return e && process.nextTick(e);
|
|
1454
|
+
this.gauge.hide(e);
|
|
1455
|
+
};
|
|
1456
|
+
s.showProgress = function(e, u) {
|
|
1457
|
+
if (this.progressEnabled) {
|
|
1458
|
+
var t = {};
|
|
1459
|
+
e && (t.section = e);
|
|
1460
|
+
var D = s.record[s.record.length - 1];
|
|
1461
|
+
if (D) {
|
|
1462
|
+
t.subsection = D.prefix;
|
|
1463
|
+
var r = s.disp[D.level] || D.level, n = this._format(r, s.style[D.level]);
|
|
1464
|
+
D.prefix && (n += " " + this._format(D.prefix, this.prefixStyle)), n += " " + D.message.split(/\r?\n/)[0], t.logline = n;
|
|
1465
|
+
}
|
|
1466
|
+
t.completed = u || this.tracker.completed(), this.gauge.show(t);
|
|
1467
|
+
}
|
|
1468
|
+
}.bind(s);
|
|
1469
|
+
s.pause = function() {
|
|
1470
|
+
this._paused = !0, this.progressEnabled && this.gauge.disable();
|
|
1471
|
+
};
|
|
1472
|
+
s.resume = function() {
|
|
1473
|
+
if (this._paused) {
|
|
1474
|
+
this._paused = !1;
|
|
1475
|
+
var e = this._buffer;
|
|
1476
|
+
this._buffer = [], e.forEach(function(u) {
|
|
1477
|
+
this.emitLog(u);
|
|
1478
|
+
}, this), this.progressEnabled && this.gauge.enable();
|
|
1479
|
+
}
|
|
1480
|
+
};
|
|
1481
|
+
s._buffer = [];
|
|
1482
|
+
var gD = 0;
|
|
1483
|
+
s.record = [];
|
|
1484
|
+
s.maxRecordSize = 1e4;
|
|
1485
|
+
s.log = function(e, u, t) {
|
|
1486
|
+
var D = this.levels[e];
|
|
1487
|
+
if (D === void 0)
|
|
1488
|
+
return this.emit("error", new Error(ye.format(
|
|
1489
|
+
"Undefined log level: %j",
|
|
1490
|
+
e
|
|
1491
|
+
)));
|
|
1492
|
+
for (var r = new Array(arguments.length - 2), n = null, o = 2; o < arguments.length; o++) {
|
|
1493
|
+
var h = r[o - 2] = arguments[o];
|
|
1494
|
+
typeof h == "object" && h instanceof Error && h.stack && Object.defineProperty(h, "stack", {
|
|
1495
|
+
value: n = h.stack + "",
|
|
1496
|
+
enumerable: !0,
|
|
1497
|
+
writable: !0
|
|
1498
|
+
});
|
|
1499
|
+
}
|
|
1500
|
+
n && r.unshift(n + `
|
|
1501
|
+
`), t = ye.format.apply(ye, r);
|
|
1502
|
+
var f = {
|
|
1503
|
+
id: gD++,
|
|
1504
|
+
level: e,
|
|
1505
|
+
prefix: String(u || ""),
|
|
1506
|
+
message: t,
|
|
1507
|
+
messageRaw: r
|
|
1508
|
+
};
|
|
1509
|
+
this.emit("log", f), this.emit("log." + e, f), f.prefix && this.emit(f.prefix, f), this.record.push(f);
|
|
1510
|
+
var c = this.maxRecordSize, F = this.record.length - c;
|
|
1511
|
+
if (F > c / 10) {
|
|
1512
|
+
var m = Math.floor(c * 0.9);
|
|
1513
|
+
this.record = this.record.slice(-1 * m);
|
|
1514
|
+
}
|
|
1515
|
+
this.emitLog(f);
|
|
1516
|
+
}.bind(s);
|
|
1517
|
+
s.emitLog = function(e) {
|
|
1518
|
+
if (this._paused) {
|
|
1519
|
+
this._buffer.push(e);
|
|
1520
|
+
return;
|
|
1521
|
+
}
|
|
1522
|
+
this.progressEnabled && this.gauge.pulse(e.prefix);
|
|
1523
|
+
var u = this.levels[e.level];
|
|
1524
|
+
if (u !== void 0 && !(u < this.levels[this.level]) && !(u > 0 && !isFinite(u))) {
|
|
1525
|
+
var t = s.disp[e.level] != null ? s.disp[e.level] : e.level;
|
|
1526
|
+
this.clearProgress(), e.message.split(/\r?\n/).forEach(function(D) {
|
|
1527
|
+
var r = this.heading;
|
|
1528
|
+
r && (this.write(r, this.headingStyle), this.write(" ")), this.write(t, s.style[e.level]);
|
|
1529
|
+
var n = e.prefix || "";
|
|
1530
|
+
n && this.write(" "), this.write(n, this.prefixStyle), this.write(" " + D + `
|
|
1531
|
+
`);
|
|
1532
|
+
}, this), this.showProgress();
|
|
1533
|
+
}
|
|
1534
|
+
};
|
|
1535
|
+
s._format = function(e, u) {
|
|
1536
|
+
if (x) {
|
|
1537
|
+
var t = "";
|
|
1538
|
+
if (this.useColor()) {
|
|
1539
|
+
u = u || {};
|
|
1540
|
+
var D = [];
|
|
1541
|
+
u.fg && D.push(u.fg), u.bg && D.push("bg" + u.bg[0].toUpperCase() + u.bg.slice(1)), u.bold && D.push("bold"), u.underline && D.push(
|
|
1542
|
+
"underline"), u.inverse && D.push("inverse"), D.length && (t += _e.color(D)), u.beep && (t += _e.beep());
|
|
1543
|
+
}
|
|
1544
|
+
return t += e, this.useColor() && (t += _e.color("reset")), t;
|
|
1545
|
+
}
|
|
1546
|
+
};
|
|
1547
|
+
s.write = function(e, u) {
|
|
1548
|
+
x && x.write(this._format(e, u));
|
|
1549
|
+
};
|
|
1550
|
+
s.addLevel = function(e, u, t, D) {
|
|
1551
|
+
D == null && (D = e), this.levels[e] = u, this.style[e] = t, this[e] || (this[e] = function() {
|
|
1552
|
+
var r = new Array(arguments.length + 1);
|
|
1553
|
+
r[0] = e;
|
|
1554
|
+
for (var n = 0; n < arguments.length; n++)
|
|
1555
|
+
r[n + 1] = arguments[n];
|
|
1556
|
+
return this.log.apply(this, r);
|
|
1557
|
+
}.bind(this)), this.disp[e] = D;
|
|
1558
|
+
};
|
|
1559
|
+
s.prefixStyle = { fg: "magenta" };
|
|
1560
|
+
s.headingStyle = { fg: "white", bg: "black" };
|
|
1561
|
+
s.style = {};
|
|
1562
|
+
s.levels = {};
|
|
1563
|
+
s.disp = {};
|
|
1564
|
+
s.addLevel("silly", -1 / 0, { inverse: !0 }, "sill");
|
|
1565
|
+
s.addLevel("verbose", 1e3, { fg: "cyan", bg: "black" }, "verb");
|
|
1566
|
+
s.addLevel("info", 2e3, { fg: "green" });
|
|
1567
|
+
s.addLevel("timing", 2500, { fg: "green", bg: "black" });
|
|
1568
|
+
s.addLevel("http", 3e3, { fg: "green", bg: "black" });
|
|
1569
|
+
s.addLevel("notice", 3500, { fg: "cyan", bg: "black" });
|
|
1570
|
+
s.addLevel("warn", 4e3, { fg: "black", bg: "yellow" }, "WARN");
|
|
1571
|
+
s.addLevel("error", 5e3, { fg: "red", bg: "black" }, "ERR!");
|
|
1572
|
+
s.addLevel("silent", 1 / 0);
|
|
1573
|
+
s.on("error", function() {
|
|
1574
|
+
});
|
|
1575
|
+
});
|
|
1576
|
+
|
|
1577
|
+
// ../node_modules/pretty-hrtime/index.js
|
|
1578
|
+
var et = l((wr, ju) => {
|
|
1579
|
+
"use strict";
|
|
1580
|
+
var pD = ["h", "min", "s", "ms", "\u03BCs", "ns"], dD = ["hour", "minute", "second", "millisecond", "microsecond", "nanosecond"], Qu = [3600,
|
|
1581
|
+
60, 1, 1e6, 1e3, 1];
|
|
1582
|
+
ju.exports = function(e, u) {
|
|
1583
|
+
var t, D, r, n, o, h, f, c, F, m;
|
|
1584
|
+
if (t = !1, D = !1, u && (t = u.verbose || !1, D = u.precise || !1), !Array.isArray(e) || e.length !== 2 || typeof e[0] != "number" || typeof e[1] !=
|
|
1585
|
+
"number")
|
|
1586
|
+
return "";
|
|
1587
|
+
for (e[1] < 0 && (m = e[0] + e[1] / 1e9, e[0] = parseInt(m), e[1] = parseFloat((m % 1).toPrecision(9)) * 1e9), F = "", r = 0; r < 6 && (n =
|
|
1588
|
+
r < 3 ? 0 : 1, o = e[n], r !== 3 && r !== 0 && (o = o % Qu[r - 1]), r === 2 && (o += e[1] / 1e9), h = o / Qu[r], !(h >= 1 && (t && (h = Math.
|
|
1589
|
+
floor(h)), D ? c = h.toString() : (f = h >= 10 ? 0 : 2, c = h.toFixed(f)), c.indexOf(".") > -1 && c[c.length - 1] === "0" && (c = c.replace(
|
|
1590
|
+
/\.?0+$/, "")), F && (F += " "), F += c, t ? (F += " " + dD[r], c !== "1" && (F += "s")) : F += " " + pD[r], !t))); r++)
|
|
1591
|
+
;
|
|
1592
|
+
return F;
|
|
1593
|
+
};
|
|
1594
|
+
});
|
|
1595
|
+
|
|
1596
|
+
// src/node-logger/index.ts
|
|
1597
|
+
var b = Re(Ku(), 1), tt = Re(et(), 1);
|
|
1598
|
+
b.default.stream = process.stdout;
|
|
1599
|
+
function L(e) {
|
|
1600
|
+
if (!/^#?[0-9A-Fa-f]{6}$/.test(e))
|
|
1601
|
+
throw new Error("Invalid hex color. It must be a 6-character hex code.");
|
|
1602
|
+
e.startsWith("#") && (e = e.slice(1));
|
|
1603
|
+
let u = parseInt(e.slice(0, 2), 16), t = parseInt(e.slice(2, 4), 16), D = parseInt(e.slice(4, 6), 16);
|
|
1604
|
+
return (r) => `\x1B[38;2;${u};${t};${D}m${r}\x1B[39m`;
|
|
1605
|
+
}
|
|
1606
|
+
i(L, "hex");
|
|
1607
|
+
var ut = {
|
|
1608
|
+
pink: L("#F1618C"),
|
|
1609
|
+
purple: L("#B57EE5"),
|
|
1610
|
+
orange: L("#F3AD38"),
|
|
1611
|
+
green: L("#A2E05E"),
|
|
1612
|
+
blue: L("#6DABF5"),
|
|
1613
|
+
red: L("#F16161"),
|
|
1614
|
+
gray: L("#B8C2CC")
|
|
1615
|
+
}, mD = {
|
|
1616
|
+
verbose: /* @__PURE__ */ i((e) => b.default.verbose("", e), "verbose"),
|
|
1617
|
+
info: /* @__PURE__ */ i((e) => b.default.info("", e), "info"),
|
|
1618
|
+
plain: /* @__PURE__ */ i((e) => console.log(e), "plain"),
|
|
1619
|
+
line: /* @__PURE__ */ i((e = 1) => console.log(`${Array(e - 1).fill(`
|
|
1620
|
+
`)}`), "line"),
|
|
1621
|
+
warn: /* @__PURE__ */ i((e) => b.default.warn("", e), "warn"),
|
|
1622
|
+
trace: /* @__PURE__ */ i(({ message: e, time: u }) => b.default.info("", `${e} (${ut.purple((0, tt.default)(u))})`), "trace"),
|
|
1623
|
+
setLevel: /* @__PURE__ */ i((e = "info") => {
|
|
1624
|
+
b.default.level = e;
|
|
1625
|
+
}, "setLevel"),
|
|
1626
|
+
error: /* @__PURE__ */ i((e) => {
|
|
1627
|
+
if (b.default.levels[b.default.level] < b.default.levels.error) {
|
|
1628
|
+
let u;
|
|
1629
|
+
e instanceof Error && e.stack ? u = e.stack.toString() : u = e.toString(), console.log(
|
|
1630
|
+
u.replace(e.toString(), ut.red(e.toString())).replaceAll(process.cwd(), ".")
|
|
1631
|
+
);
|
|
1632
|
+
}
|
|
1633
|
+
}, "error")
|
|
1634
|
+
};
|
|
1635
|
+
var ke = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ i((e) => (u) => {
|
|
1636
|
+
if (!ke.has(u))
|
|
1637
|
+
return ke.add(u), mD[e](u);
|
|
1638
|
+
}, "once");
|
|
1639
|
+
w.clear = () => ke.clear();
|
|
1640
|
+
w.verbose = w("verbose");
|
|
1641
|
+
w.info = w("info");
|
|
1642
|
+
w.warn = w("warn");
|
|
1643
|
+
w.error = w("error");
|
|
1644
|
+
var xr = w("warn");
|
|
1645
|
+
var export_instance = b.default;
|
|
1646
|
+
export {
|
|
1647
|
+
ut as colors,
|
|
1648
|
+
xr as deprecate,
|
|
1649
|
+
export_instance as instance,
|
|
1650
|
+
mD as logger,
|
|
1651
|
+
w as once
|
|
1652
|
+
};
|