@shell-shock/preset-cli 0.9.12 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/_virtual/_rolldown/runtime.mjs +1 -4
  2. package/dist/components/banner-builtin.cjs +3 -3
  3. package/dist/components/banner-builtin.mjs +3 -3
  4. package/dist/components/banner-builtin.mjs.map +1 -1
  5. package/dist/components/command-entry.cjs +1 -0
  6. package/dist/components/command-entry.mjs +1 -0
  7. package/dist/components/command-entry.mjs.map +1 -1
  8. package/dist/components/virtual-command-entry.cjs +1 -0
  9. package/dist/components/virtual-command-entry.mjs +1 -0
  10. package/dist/components/virtual-command-entry.mjs.map +1 -1
  11. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.cjs +8 -0
  12. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs +8 -0
  13. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs.map +1 -0
  14. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.cjs +14 -0
  15. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs +15 -0
  16. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs.map +1 -0
  17. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.cjs +655 -0
  18. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs +651 -0
  19. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs.map +1 -0
  20. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.cjs +48 -0
  21. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs +47 -0
  22. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs.map +1 -0
  23. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.cjs +24 -0
  24. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs +24 -0
  25. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs.map +1 -0
  26. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.cjs +65 -0
  27. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.mjs +66 -0
  28. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.mjs.map +1 -0
  29. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.cjs +12 -0
  30. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs +13 -0
  31. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs.map +1 -0
  32. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs +290 -3
  33. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs +287 -1
  34. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs.map +1 -1
  35. package/dist/packages/plugin-changelog/dist/components/changelog-command.cjs +4 -4
  36. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +4 -4
  37. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs.map +1 -1
  38. package/dist/packages/unified/dist/html-Dw6VvFHa.cjs +612 -0
  39. package/dist/packages/unified/dist/html-Dw6VvFHa.mjs +613 -0
  40. package/dist/packages/unified/dist/html-Dw6VvFHa.mjs.map +1 -0
  41. package/dist/packages/unified/dist/markdown/index.cjs +1 -1
  42. package/dist/packages/unified/dist/markdown/index.mjs +1 -1
  43. package/dist/packages/unified/dist/{markdown-OuY_JOk0.cjs → markdown-BGGlzivq.cjs} +14 -50
  44. package/dist/packages/unified/dist/{markdown-OuY_JOk0.mjs → markdown-BGGlzivq.mjs} +16 -52
  45. package/dist/packages/unified/dist/markdown-BGGlzivq.mjs.map +1 -0
  46. package/package.json +19 -19
  47. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.cjs +0 -36
  48. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs +0 -36
  49. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs.map +0 -1
  50. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.cjs +0 -32
  51. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs +0 -33
  52. package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs.map +0 -1
  53. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.cjs +0 -133
  54. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs +0 -134
  55. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs.map +0 -1
  56. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.cjs +0 -32
  57. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs +0 -31
  58. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs.map +0 -1
  59. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.cjs +0 -169
  60. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs +0 -167
  61. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs.map +0 -1
  62. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.cjs +0 -98
  63. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs +0 -95
  64. package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs.map +0 -1
  65. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.cjs +0 -23
  66. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs +0 -23
  67. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs.map +0 -1
  68. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.cjs +0 -36
  69. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs +0 -36
  70. package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs.map +0 -1
  71. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.cjs +0 -10
  72. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs +0 -10
  73. package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs.map +0 -1
  74. package/dist/packages/unified/dist/html-Di3_LwV3.cjs +0 -337
  75. package/dist/packages/unified/dist/html-Di3_LwV3.mjs +0 -338
  76. package/dist/packages/unified/dist/html-Di3_LwV3.mjs.map +0 -1
  77. package/dist/packages/unified/dist/markdown-OuY_JOk0.mjs.map +0 -1
@@ -1,337 +0,0 @@
1
- const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
2
- const require_index = require('../../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.cjs');
3
- const require_he$1 = require('../../../node_modules/.pnpm/he@1.2.0/node_modules/he/he.cjs');
4
- const require_index$1 = require('../../../node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.cjs');
5
- require('../../../node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs');
6
- const require_main = require('../../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.cjs');
7
-
8
- //#region ../unified/dist/html-Di3_LwV3.mjs
9
- var import_he = /* @__PURE__ */ require_runtime.__toESM(require_he$1.default, 1);
10
- var import_normalize_html_whitespace = /* @__PURE__ */ require_runtime.__toESM(require_index$1.default, 1);
11
- var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, c = Object.getPrototypeOf, l = Object.prototype.hasOwnProperty, u = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), d = (e, t, n, r) => {
12
- if (t && typeof t == `object` || typeof t == `function`) for (var i = s(t), c = 0, u = i.length, d; c < u; c++) d = i[c], !l.call(e, d) && d !== n && a(e, d, {
13
- get: ((e) => t[e]).bind(null, d),
14
- enumerable: !(r = o(t, d)) || r.enumerable
15
- });
16
- return e;
17
- }, f = (e, t, n) => (n = e == null ? {} : i(c(e)), d(t || !e || !e.__esModule ? a(n, `default`, {
18
- value: e,
19
- enumerable: !0
20
- }) : n, e)), p = ((e) => typeof require < `u` ? require : typeof Proxy < `u` ? new Proxy(e, { get: (e, t) => (typeof require < `u` ? require : e)[t] }) : e)(function(e) {
21
- if (typeof require < `u`) return require.apply(this, arguments);
22
- throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
23
- });
24
- const m = (e) => ({
25
- pre: !1,
26
- lineWidth: 120,
27
- fontAttrs: !0,
28
- depth: 0,
29
- asciiMode: !1,
30
- ...e
31
- }), h = (e, t) => e == null && t == null ? null : e == null ? t : t == null ? e : t.value == null ? {
32
- pre: e.pre,
33
- value: e.value,
34
- post: e.post == null ? t.pre == null ? t.post == null ? `` : t.post : t.pre : e.post
35
- } : e.value == null ? {
36
- pre: e.pre == null ? e.post == null ? t.pre == null ? `` : t.pre : e.post : e.pre,
37
- value: t.value,
38
- post: t.post
39
- } : e.post == null ? t.pre == null ? {
40
- pre: e.pre,
41
- value: `${e.value}${t.value}`,
42
- post: t.post
43
- } : {
44
- pre: e.pre,
45
- value: `${e.value}${t.pre}${t.value}`,
46
- post: t.post
47
- } : {
48
- pre: e.pre,
49
- value: `${e.value}${e.post}${t.value}`,
50
- post: t.post
51
- }, g = /* @__PURE__ */ new WeakMap(), _ = (e, t, n) => {
52
- if (!e || typeof e != `object` || !t || typeof t != `string`) return n;
53
- let r = g.get(e);
54
- if (r) {
55
- let e = r.get(t);
56
- if (e !== void 0) return e ?? n;
57
- }
58
- if (!e.attrs || !Array.isArray(e.attrs) || e.attrs.length === 0) return r || (r = /* @__PURE__ */ new Map(), g.set(e, r)), r.set(t, null), n;
59
- let i = e.attrs.find((e) => e && typeof e == `object` && e.name === t);
60
- if (r || (r = /* @__PURE__ */ new Map(), g.set(e, r)), !i || i.value === void 0) return r.set(t, null), n;
61
- let a = i.value;
62
- return r.set(t, a), a;
63
- }, v = (e, r) => {
64
- if (r.pre) return {
65
- pre: null,
66
- value: import_he.default.decode(e.value),
67
- post: null,
68
- type: `inline`,
69
- nodeName: `#text`
70
- };
71
- let i = [...((0, import_normalize_html_whitespace.default)(e.value) || ``).replaceAll(`
72
- `, ` `)], a = [` `, `
73
- `].includes(i[0]) ? i.shift() : null, o = [` `, `
74
- `].includes(i.at(-1)) ? i.pop() : null;
75
- return {
76
- pre: a,
77
- value: i.length > 0 ? `${import_he.default.decode(i.join(``))}` : null,
78
- post: o,
79
- type: `inline`,
80
- nodeName: `#text`
81
- };
82
- }, y = (e) => (t, n) => {
83
- let r = e || ((e) => e);
84
- if (!t || !t.childNodes) return null;
85
- let i = t.childNodes.reduce((e, r) => {
86
- let i = M(r, n, D.span);
87
- return i ? {
88
- ...h(e, i),
89
- type: `inline`,
90
- nodeName: t.nodeName
91
- } : e;
92
- }, null);
93
- return {
94
- pre: i?.pre ? r(i.pre, t, n) : null,
95
- value: r(i?.value, t, n),
96
- post: i?.post ? r(i.post, t, n) : null,
97
- type: `inline`,
98
- nodeName: t.nodeName
99
- };
100
- };
101
- var b = u(((e, t) => {
102
- let n = t.exports;
103
- t.exports.default = n;
104
- let r = process.env.TERM_PROGRAM === `Apple_Terminal`;
105
- n.cursorTo = (e, t) => {
106
- if (typeof e != `number`) throw TypeError("The `x` argument is required");
107
- return typeof t == `number` ? `\x1B[` + (t + 1) + `;` + (e + 1) + `H` : `\x1B[` + (e + 1) + `G`;
108
- }, n.cursorMove = (e, t) => {
109
- if (typeof e != `number`) throw TypeError("The `x` argument is required");
110
- let n = ``;
111
- return e < 0 ? n += `\x1B[` + -e + `D` : e > 0 && (n += `\x1B[` + e + `C`), t < 0 ? n += `\x1B[` + -t + `A` : t > 0 && (n += `\x1B[` + t + `B`), n;
112
- }, n.cursorUp = (e = 1) => `\x1B[` + e + `A`, n.cursorDown = (e = 1) => `\x1B[` + e + `B`, n.cursorForward = (e = 1) => `\x1B[` + e + `C`, n.cursorBackward = (e = 1) => `\x1B[` + e + `D`, n.cursorLeft = `\x1B[G`, n.cursorSavePosition = r ? `\x1B7` : `\x1B[s`, n.cursorRestorePosition = r ? `\x1B8` : `\x1B[u`, n.cursorGetPosition = `\x1B[6n`, n.cursorNextLine = `\x1B[E`, n.cursorPrevLine = `\x1B[F`, n.cursorHide = `\x1B[?25l`, n.cursorShow = `\x1B[?25h`, n.eraseLines = (e) => {
113
- let t = ``;
114
- for (let r = 0; r < e; r++) t += n.eraseLine + (r < e - 1 ? n.cursorUp() : ``);
115
- return e && (t += n.cursorLeft), t;
116
- }, n.eraseEndLine = `\x1B[K`, n.eraseStartLine = `\x1B[1K`, n.eraseLine = `\x1B[2K`, n.eraseDown = `\x1B[J`, n.eraseUp = `\x1B[1J`, n.eraseScreen = `\x1B[2J`, n.scrollUp = `\x1B[S`, n.scrollDown = `\x1B[T`, n.clearScreen = `\x1Bc`, n.clearTerminal = process.platform === `win32` ? `${n.eraseScreen}` : `${n.eraseScreen}`, n.beep = `\x07`, n.link = (e, t) => [
117
- `\x1B]`,
118
- `8`,
119
- `;`,
120
- `;`,
121
- t,
122
- `\x07`,
123
- e,
124
- `\x1B]`,
125
- `8`,
126
- `;`,
127
- `;`,
128
- `\x07`
129
- ].join(``), n.image = (e, t = {}) => {
130
- let n = `\x1B]1337;File=inline=1`;
131
- return t.width && (n += `;width=${t.width}`), t.height && (n += `;height=${t.height}`), t.preserveAspectRatio === !1 && (n += `;preserveAspectRatio=0`), n + `:` + e.toString(`base64`) + `\x07`;
132
- }, n.iTerm = {
133
- setCwd: (e = process.cwd()) => `]50;CurrentDir=${e}`,
134
- annotation: (e, t = {}) => {
135
- let n = `\x1B]1337;`, r = t.x !== void 0, i = t.y !== void 0;
136
- if ((r || i) && !(r && i && t.length !== void 0)) throw Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
137
- return e = e.replace(/\|/g, ``), n += t.isHidden ? `AddHiddenAnnotation=` : `AddAnnotation=`, t.length > 0 ? n += (r ? [
138
- e,
139
- t.length,
140
- t.x,
141
- t.y
142
- ] : [t.length, e]).join(`|`) : n += e, n + `\x07`;
143
- }
144
- };
145
- })), x = u(((e, t) => {
146
- t.exports = (e, t = process.argv) => {
147
- let n = e.startsWith(`-`) ? `` : e.length === 1 ? `-` : `--`, r = t.indexOf(n + e), i = t.indexOf(`--`);
148
- return r !== -1 && (i === -1 || r < i);
149
- };
150
- })), S = u(((e, t) => {
151
- let n = p(`node:os`), r = p(`node:tty`), i = x(), { env: a } = process, o;
152
- i(`no-color`) || i(`no-colors`) || i(`color=false`) || i(`color=never`) ? o = 0 : (i(`color`) || i(`colors`) || i(`color=true`) || i(`color=always`)) && (o = 1), `FORCE_COLOR` in a && (o = a.FORCE_COLOR === `true` ? 1 : a.FORCE_COLOR === `false` ? 0 : a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3));
153
- function s(e) {
154
- return e === 0 ? !1 : {
155
- level: e,
156
- hasBasic: !0,
157
- has256: e >= 2,
158
- has16m: e >= 3
159
- };
160
- }
161
- function c(e, t) {
162
- if (o === 0) return 0;
163
- if (i(`color=16m`) || i(`color=full`) || i(`color=truecolor`)) return 3;
164
- if (i(`color=256`)) return 2;
165
- if (e && !t && o === void 0) return 0;
166
- let r = o || 0;
167
- if (a.TERM === `dumb`) return r;
168
- if (process.platform === `win32`) {
169
- let e = n.release().split(`.`);
170
- return Number(e[0]) >= 10 && Number(e[2]) >= 10586 ? Number(e[2]) >= 14931 ? 3 : 2 : 1;
171
- }
172
- if (`CI` in a) return [
173
- `TRAVIS`,
174
- `CIRCLECI`,
175
- `APPVEYOR`,
176
- `GITLAB_CI`,
177
- `GITHUB_ACTIONS`,
178
- `BUILDKITE`
179
- ].some((e) => e in a) || a.CI_NAME === `codeship` ? 1 : r;
180
- if (`TEAMCITY_VERSION` in a) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION) ? 1 : 0;
181
- if (a.COLORTERM === `truecolor`) return 3;
182
- if (`TERM_PROGRAM` in a) {
183
- let e = parseInt((a.TERM_PROGRAM_VERSION || ``).split(`.`)[0], 10);
184
- switch (a.TERM_PROGRAM) {
185
- case `iTerm.app`: return e >= 3 ? 3 : 2;
186
- case `Apple_Terminal`: return 2;
187
- }
188
- }
189
- return /-256(color)?$/i.test(a.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM) || `COLORTERM` in a ? 1 : r;
190
- }
191
- function l(e) {
192
- return s(c(e, e && e.isTTY));
193
- }
194
- t.exports = {
195
- supportsColor: l,
196
- stdout: s(c(!0, r.isatty(1))),
197
- stderr: s(c(!0, r.isatty(2)))
198
- };
199
- })), C = u(((e, t) => {
200
- let n = S(), r = x();
201
- function i(e) {
202
- if (/^\d{3,4}$/.test(e)) {
203
- let t = /(\d{1,2})(\d{2})/.exec(e);
204
- return {
205
- major: 0,
206
- minor: parseInt(t[1], 10),
207
- patch: parseInt(t[2], 10)
208
- };
209
- }
210
- let t = (e || ``).split(`.`).map((e) => parseInt(e, 10));
211
- return {
212
- major: t[0],
213
- minor: t[1],
214
- patch: t[2]
215
- };
216
- }
217
- function a(e) {
218
- let { env: t } = process;
219
- if (`FORCE_HYPERLINK` in t) return !(t.FORCE_HYPERLINK.length > 0 && parseInt(t.FORCE_HYPERLINK, 10) === 0);
220
- if (r(`no-hyperlink`) || r(`no-hyperlinks`) || r(`hyperlink=false`) || r(`hyperlink=never`)) return !1;
221
- if (r(`hyperlink=true`) || r(`hyperlink=always`) || `NETLIFY` in t) return !0;
222
- if (!n.supportsColor(e) || e && !e.isTTY || process.platform === `win32` || `CI` in t || `TEAMCITY_VERSION` in t) return !1;
223
- if (`TERM_PROGRAM` in t) {
224
- let e = i(t.TERM_PROGRAM_VERSION);
225
- switch (t.TERM_PROGRAM) {
226
- case `iTerm.app`: return e.major === 3 ? e.minor >= 1 : e.major > 3;
227
- case `WezTerm`: return e.major >= 20200620;
228
- case `vscode`: return e.major > 1 || e.major === 1 && e.minor >= 72;
229
- }
230
- }
231
- if (`VTE_VERSION` in t) {
232
- if (t.VTE_VERSION === `0.50.0`) return !1;
233
- let e = i(t.VTE_VERSION);
234
- return e.major > 0 || e.minor >= 50;
235
- }
236
- return !1;
237
- }
238
- t.exports = {
239
- supportsHyperlink: a,
240
- stdout: a(process.stdout),
241
- stderr: a(process.stderr)
242
- };
243
- })), w = f(b(), 1), T = f(C(), 1);
244
- const E = y((e, t, n) => {
245
- let i = _(t, `href`, null), a = _(t, `title`, null), o = getCustomAttributes(t), s = n.theme.a || {}, c = !i || [
246
- `file://`,
247
- `http://`,
248
- `https://`,
249
- `mailto:`,
250
- `ftp://`,
251
- `ftps://`,
252
- `sftp://`,
253
- `ssh://`,
254
- `dav://`,
255
- `tel:`,
256
- `git://`
257
- ].some((e) => i.startsWith(e)) ? i : null, l = applyCustomColor(o.color, n.theme.a.color, e, require_main.default), u = o.href.enabled !== null && o.href.enabled !== void 0 ? o.href.enabled : s.hrefEnabled, d;
258
- switch (u) {
259
- case !0:
260
- case `true`:
261
- d = !0;
262
- break;
263
- case !1:
264
- case `false`:
265
- d = !1;
266
- break;
267
- case `auto`:
268
- d = !T.default.stdout;
269
- break;
270
- default: d = !1;
271
- }
272
- let f = o.title.enabled !== null && o.title.enabled !== void 0 ? o.title.enabled === `true` || o.title.enabled === !0 : s.titleEnabled === !0, p = T.default.stdout && c && !d ? w.default.link(l, c) : l;
273
- if (d && c) {
274
- let e = o.href.color || s.hrefColor || `gray`, t = safeChalkString(e, { colors: !0 })(` [${c}]`);
275
- p += t;
276
- }
277
- if (f && a) {
278
- let e = o.title.color || s.titleColor || `yellow`, t = o.title.prefix.marker !== void 0 && o.title.prefix.marker !== null ? o.title.prefix.marker : s.titlePrefix || ` (`, n = o.title.suffix.marker !== void 0 && o.title.suffix.marker !== null ? o.title.suffix.marker : s.titleSuffix || `)`, r = o.title.prefix.color || s.titlePrefixColor || e, i = o.title.suffix.color || s.titleSuffixColor || e, c = r && t != null ? safeChalkString(r, { colors: !0 })(t) : t || ``, l = e && a ? safeChalkString(e, { colors: !0 })(a) : a, u = i && n != null ? safeChalkString(i, { colors: !0 })(n) : n || ``;
279
- p += `${c}${l}${u}`;
280
- }
281
- let m = c && (c.startsWith(`http://`) || c.startsWith(`https://`));
282
- if ((o.external.enabled !== null && o.external.enabled !== void 0 ? o.external.enabled === `true` || o.external.enabled === !0 : s.external?.enabled === !0) && m) {
283
- let e = o.external.marker || s.external?.marker || `↗`, t = o.external.color || s.external?.color || `gray`, n = o.external.position || s.external?.position || `after`, r = o.external.spacing !== void 0 && o.external.spacing !== null ? o.external.spacing : s.external?.spacing !== void 0 && s.external?.spacing !== null ? s.external.spacing : ` `, i = safeChalkString(t, { colors: !0 })(e);
284
- p = n === `before` ? `${i}${r}${p}` : `${p}${r}${i}`;
285
- }
286
- return p;
287
- });
288
- var D = {
289
- "#text": v,
290
- a: E
291
- };
292
- const O = process.env.CACHE_RENDER !== `false`, k = /* @__PURE__ */ new WeakMap(), A = (e, t) => {
293
- if (!O || !e || typeof e != `object`) return;
294
- let n = k.get(e);
295
- if (n) return n.get(JSON.stringify({
296
- lineWidth: t.lineWidth,
297
- pre: t.pre,
298
- listDepth: t.listDepth,
299
- listType: t.listType,
300
- depth: t.depth
301
- }));
302
- }, j = (e, t, n) => {
303
- if (!O || !e || typeof e != `object`) return;
304
- let r = k.get(e);
305
- if (r || (r = /* @__PURE__ */ new Map(), k.set(e, r)), r.set(JSON.stringify({
306
- lineWidth: t.lineWidth,
307
- pre: t.pre,
308
- listDepth: t.listDepth,
309
- listType: t.listType,
310
- depth: t.depth
311
- }), n), r.size > 10) {
312
- let e = r.keys().next().value;
313
- r.delete(e);
314
- }
315
- }, M = (e, t, n = D.div) => {
316
- if (!e) return null;
317
- let r = t.depth === void 0 ? 0 : t.depth;
318
- if (r >= 100) return null;
319
- let i = {
320
- ...t,
321
- depth: r + 1
322
- }, a = A(e, i);
323
- if (a !== void 0) return a;
324
- let o = null;
325
- try {
326
- o = (D[e.nodeName || `#text`] || n)(e, i), j(e, i, o);
327
- } catch {
328
- o = null;
329
- }
330
- return o;
331
- };
332
- function N(t, n) {
333
- return `${(M(require_index.parse(t, { sourceCodeLocationInfo: !0 }), m(n)) || { value: `` }).value}\n`;
334
- }
335
-
336
- //#endregion
337
- exports.N = N;
@@ -1,338 +0,0 @@
1
- import { __require, __toESM } from "../../../_virtual/_rolldown/runtime.mjs";
2
- import { parse } from "../../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs";
3
- import { require_he } from "../../../node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs";
4
- import { require_normalize_html_whitespace } from "../../../node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs";
5
- import "../../../node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs";
6
- import chalkString from "../../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs";
7
-
8
- //#region ../unified/dist/html-Di3_LwV3.mjs
9
- var import_he = /* @__PURE__ */ __toESM(require_he(), 1);
10
- var import_normalize_html_whitespace = /* @__PURE__ */ __toESM(require_normalize_html_whitespace(), 1);
11
- var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, c = Object.getPrototypeOf, l = Object.prototype.hasOwnProperty, u = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), d = (e, t, n, r) => {
12
- if (t && typeof t == `object` || typeof t == `function`) for (var i = s(t), c = 0, u = i.length, d; c < u; c++) d = i[c], !l.call(e, d) && d !== n && a(e, d, {
13
- get: ((e) => t[e]).bind(null, d),
14
- enumerable: !(r = o(t, d)) || r.enumerable
15
- });
16
- return e;
17
- }, f = (e, t, n) => (n = e == null ? {} : i(c(e)), d(t || !e || !e.__esModule ? a(n, `default`, {
18
- value: e,
19
- enumerable: !0
20
- }) : n, e)), p = ((e) => typeof __require < `u` ? __require : typeof Proxy < `u` ? new Proxy(e, { get: (e, t) => (typeof __require < `u` ? __require : e)[t] }) : e)(function(e) {
21
- if (typeof __require < `u`) return __require.apply(this, arguments);
22
- throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
23
- });
24
- const m = (e) => ({
25
- pre: !1,
26
- lineWidth: 120,
27
- fontAttrs: !0,
28
- depth: 0,
29
- asciiMode: !1,
30
- ...e
31
- }), h = (e, t) => e == null && t == null ? null : e == null ? t : t == null ? e : t.value == null ? {
32
- pre: e.pre,
33
- value: e.value,
34
- post: e.post == null ? t.pre == null ? t.post == null ? `` : t.post : t.pre : e.post
35
- } : e.value == null ? {
36
- pre: e.pre == null ? e.post == null ? t.pre == null ? `` : t.pre : e.post : e.pre,
37
- value: t.value,
38
- post: t.post
39
- } : e.post == null ? t.pre == null ? {
40
- pre: e.pre,
41
- value: `${e.value}${t.value}`,
42
- post: t.post
43
- } : {
44
- pre: e.pre,
45
- value: `${e.value}${t.pre}${t.value}`,
46
- post: t.post
47
- } : {
48
- pre: e.pre,
49
- value: `${e.value}${e.post}${t.value}`,
50
- post: t.post
51
- }, g = /* @__PURE__ */ new WeakMap(), _ = (e, t, n) => {
52
- if (!e || typeof e != `object` || !t || typeof t != `string`) return n;
53
- let r = g.get(e);
54
- if (r) {
55
- let e = r.get(t);
56
- if (e !== void 0) return e ?? n;
57
- }
58
- if (!e.attrs || !Array.isArray(e.attrs) || e.attrs.length === 0) return r || (r = /* @__PURE__ */ new Map(), g.set(e, r)), r.set(t, null), n;
59
- let i = e.attrs.find((e) => e && typeof e == `object` && e.name === t);
60
- if (r || (r = /* @__PURE__ */ new Map(), g.set(e, r)), !i || i.value === void 0) return r.set(t, null), n;
61
- let a = i.value;
62
- return r.set(t, a), a;
63
- }, v = (e, r) => {
64
- if (r.pre) return {
65
- pre: null,
66
- value: import_he.default.decode(e.value),
67
- post: null,
68
- type: `inline`,
69
- nodeName: `#text`
70
- };
71
- let i = [...((0, import_normalize_html_whitespace.default)(e.value) || ``).replaceAll(`
72
- `, ` `)], a = [` `, `
73
- `].includes(i[0]) ? i.shift() : null, o = [` `, `
74
- `].includes(i.at(-1)) ? i.pop() : null;
75
- return {
76
- pre: a,
77
- value: i.length > 0 ? `${import_he.default.decode(i.join(``))}` : null,
78
- post: o,
79
- type: `inline`,
80
- nodeName: `#text`
81
- };
82
- }, y = (e) => (t, n) => {
83
- let r = e || ((e) => e);
84
- if (!t || !t.childNodes) return null;
85
- let i = t.childNodes.reduce((e, r) => {
86
- let i = M(r, n, D.span);
87
- return i ? {
88
- ...h(e, i),
89
- type: `inline`,
90
- nodeName: t.nodeName
91
- } : e;
92
- }, null);
93
- return {
94
- pre: i?.pre ? r(i.pre, t, n) : null,
95
- value: r(i?.value, t, n),
96
- post: i?.post ? r(i.post, t, n) : null,
97
- type: `inline`,
98
- nodeName: t.nodeName
99
- };
100
- };
101
- var b = u(((e, t) => {
102
- let n = t.exports;
103
- t.exports.default = n;
104
- let r = process.env.TERM_PROGRAM === `Apple_Terminal`;
105
- n.cursorTo = (e, t) => {
106
- if (typeof e != `number`) throw TypeError("The `x` argument is required");
107
- return typeof t == `number` ? `\x1B[` + (t + 1) + `;` + (e + 1) + `H` : `\x1B[` + (e + 1) + `G`;
108
- }, n.cursorMove = (e, t) => {
109
- if (typeof e != `number`) throw TypeError("The `x` argument is required");
110
- let n = ``;
111
- return e < 0 ? n += `\x1B[` + -e + `D` : e > 0 && (n += `\x1B[` + e + `C`), t < 0 ? n += `\x1B[` + -t + `A` : t > 0 && (n += `\x1B[` + t + `B`), n;
112
- }, n.cursorUp = (e = 1) => `\x1B[` + e + `A`, n.cursorDown = (e = 1) => `\x1B[` + e + `B`, n.cursorForward = (e = 1) => `\x1B[` + e + `C`, n.cursorBackward = (e = 1) => `\x1B[` + e + `D`, n.cursorLeft = `\x1B[G`, n.cursorSavePosition = r ? `\x1B7` : `\x1B[s`, n.cursorRestorePosition = r ? `\x1B8` : `\x1B[u`, n.cursorGetPosition = `\x1B[6n`, n.cursorNextLine = `\x1B[E`, n.cursorPrevLine = `\x1B[F`, n.cursorHide = `\x1B[?25l`, n.cursorShow = `\x1B[?25h`, n.eraseLines = (e) => {
113
- let t = ``;
114
- for (let r = 0; r < e; r++) t += n.eraseLine + (r < e - 1 ? n.cursorUp() : ``);
115
- return e && (t += n.cursorLeft), t;
116
- }, n.eraseEndLine = `\x1B[K`, n.eraseStartLine = `\x1B[1K`, n.eraseLine = `\x1B[2K`, n.eraseDown = `\x1B[J`, n.eraseUp = `\x1B[1J`, n.eraseScreen = `\x1B[2J`, n.scrollUp = `\x1B[S`, n.scrollDown = `\x1B[T`, n.clearScreen = `\x1Bc`, n.clearTerminal = process.platform === `win32` ? `${n.eraseScreen}` : `${n.eraseScreen}`, n.beep = `\x07`, n.link = (e, t) => [
117
- `\x1B]`,
118
- `8`,
119
- `;`,
120
- `;`,
121
- t,
122
- `\x07`,
123
- e,
124
- `\x1B]`,
125
- `8`,
126
- `;`,
127
- `;`,
128
- `\x07`
129
- ].join(``), n.image = (e, t = {}) => {
130
- let n = `\x1B]1337;File=inline=1`;
131
- return t.width && (n += `;width=${t.width}`), t.height && (n += `;height=${t.height}`), t.preserveAspectRatio === !1 && (n += `;preserveAspectRatio=0`), n + `:` + e.toString(`base64`) + `\x07`;
132
- }, n.iTerm = {
133
- setCwd: (e = process.cwd()) => `]50;CurrentDir=${e}`,
134
- annotation: (e, t = {}) => {
135
- let n = `\x1B]1337;`, r = t.x !== void 0, i = t.y !== void 0;
136
- if ((r || i) && !(r && i && t.length !== void 0)) throw Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
137
- return e = e.replace(/\|/g, ``), n += t.isHidden ? `AddHiddenAnnotation=` : `AddAnnotation=`, t.length > 0 ? n += (r ? [
138
- e,
139
- t.length,
140
- t.x,
141
- t.y
142
- ] : [t.length, e]).join(`|`) : n += e, n + `\x07`;
143
- }
144
- };
145
- })), x = u(((e, t) => {
146
- t.exports = (e, t = process.argv) => {
147
- let n = e.startsWith(`-`) ? `` : e.length === 1 ? `-` : `--`, r = t.indexOf(n + e), i = t.indexOf(`--`);
148
- return r !== -1 && (i === -1 || r < i);
149
- };
150
- })), S = u(((e, t) => {
151
- let n = p(`node:os`), r = p(`node:tty`), i = x(), { env: a } = process, o;
152
- i(`no-color`) || i(`no-colors`) || i(`color=false`) || i(`color=never`) ? o = 0 : (i(`color`) || i(`colors`) || i(`color=true`) || i(`color=always`)) && (o = 1), `FORCE_COLOR` in a && (o = a.FORCE_COLOR === `true` ? 1 : a.FORCE_COLOR === `false` ? 0 : a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3));
153
- function s(e) {
154
- return e === 0 ? !1 : {
155
- level: e,
156
- hasBasic: !0,
157
- has256: e >= 2,
158
- has16m: e >= 3
159
- };
160
- }
161
- function c(e, t) {
162
- if (o === 0) return 0;
163
- if (i(`color=16m`) || i(`color=full`) || i(`color=truecolor`)) return 3;
164
- if (i(`color=256`)) return 2;
165
- if (e && !t && o === void 0) return 0;
166
- let r = o || 0;
167
- if (a.TERM === `dumb`) return r;
168
- if (process.platform === `win32`) {
169
- let e = n.release().split(`.`);
170
- return Number(e[0]) >= 10 && Number(e[2]) >= 10586 ? Number(e[2]) >= 14931 ? 3 : 2 : 1;
171
- }
172
- if (`CI` in a) return [
173
- `TRAVIS`,
174
- `CIRCLECI`,
175
- `APPVEYOR`,
176
- `GITLAB_CI`,
177
- `GITHUB_ACTIONS`,
178
- `BUILDKITE`
179
- ].some((e) => e in a) || a.CI_NAME === `codeship` ? 1 : r;
180
- if (`TEAMCITY_VERSION` in a) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION) ? 1 : 0;
181
- if (a.COLORTERM === `truecolor`) return 3;
182
- if (`TERM_PROGRAM` in a) {
183
- let e = parseInt((a.TERM_PROGRAM_VERSION || ``).split(`.`)[0], 10);
184
- switch (a.TERM_PROGRAM) {
185
- case `iTerm.app`: return e >= 3 ? 3 : 2;
186
- case `Apple_Terminal`: return 2;
187
- }
188
- }
189
- return /-256(color)?$/i.test(a.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM) || `COLORTERM` in a ? 1 : r;
190
- }
191
- function l(e) {
192
- return s(c(e, e && e.isTTY));
193
- }
194
- t.exports = {
195
- supportsColor: l,
196
- stdout: s(c(!0, r.isatty(1))),
197
- stderr: s(c(!0, r.isatty(2)))
198
- };
199
- })), C = u(((e, t) => {
200
- let n = S(), r = x();
201
- function i(e) {
202
- if (/^\d{3,4}$/.test(e)) {
203
- let t = /(\d{1,2})(\d{2})/.exec(e);
204
- return {
205
- major: 0,
206
- minor: parseInt(t[1], 10),
207
- patch: parseInt(t[2], 10)
208
- };
209
- }
210
- let t = (e || ``).split(`.`).map((e) => parseInt(e, 10));
211
- return {
212
- major: t[0],
213
- minor: t[1],
214
- patch: t[2]
215
- };
216
- }
217
- function a(e) {
218
- let { env: t } = process;
219
- if (`FORCE_HYPERLINK` in t) return !(t.FORCE_HYPERLINK.length > 0 && parseInt(t.FORCE_HYPERLINK, 10) === 0);
220
- if (r(`no-hyperlink`) || r(`no-hyperlinks`) || r(`hyperlink=false`) || r(`hyperlink=never`)) return !1;
221
- if (r(`hyperlink=true`) || r(`hyperlink=always`) || `NETLIFY` in t) return !0;
222
- if (!n.supportsColor(e) || e && !e.isTTY || process.platform === `win32` || `CI` in t || `TEAMCITY_VERSION` in t) return !1;
223
- if (`TERM_PROGRAM` in t) {
224
- let e = i(t.TERM_PROGRAM_VERSION);
225
- switch (t.TERM_PROGRAM) {
226
- case `iTerm.app`: return e.major === 3 ? e.minor >= 1 : e.major > 3;
227
- case `WezTerm`: return e.major >= 20200620;
228
- case `vscode`: return e.major > 1 || e.major === 1 && e.minor >= 72;
229
- }
230
- }
231
- if (`VTE_VERSION` in t) {
232
- if (t.VTE_VERSION === `0.50.0`) return !1;
233
- let e = i(t.VTE_VERSION);
234
- return e.major > 0 || e.minor >= 50;
235
- }
236
- return !1;
237
- }
238
- t.exports = {
239
- supportsHyperlink: a,
240
- stdout: a(process.stdout),
241
- stderr: a(process.stderr)
242
- };
243
- })), w = f(b(), 1), T = f(C(), 1);
244
- const E = y((e, t, n) => {
245
- let i = _(t, `href`, null), a = _(t, `title`, null), o = getCustomAttributes(t), s = n.theme.a || {}, c = !i || [
246
- `file://`,
247
- `http://`,
248
- `https://`,
249
- `mailto:`,
250
- `ftp://`,
251
- `ftps://`,
252
- `sftp://`,
253
- `ssh://`,
254
- `dav://`,
255
- `tel:`,
256
- `git://`
257
- ].some((e) => i.startsWith(e)) ? i : null, l = applyCustomColor(o.color, n.theme.a.color, e, chalkString), u = o.href.enabled !== null && o.href.enabled !== void 0 ? o.href.enabled : s.hrefEnabled, d;
258
- switch (u) {
259
- case !0:
260
- case `true`:
261
- d = !0;
262
- break;
263
- case !1:
264
- case `false`:
265
- d = !1;
266
- break;
267
- case `auto`:
268
- d = !T.default.stdout;
269
- break;
270
- default: d = !1;
271
- }
272
- let f = o.title.enabled !== null && o.title.enabled !== void 0 ? o.title.enabled === `true` || o.title.enabled === !0 : s.titleEnabled === !0, p = T.default.stdout && c && !d ? w.default.link(l, c) : l;
273
- if (d && c) {
274
- let e = o.href.color || s.hrefColor || `gray`, t = safeChalkString(e, { colors: !0 })(` [${c}]`);
275
- p += t;
276
- }
277
- if (f && a) {
278
- let e = o.title.color || s.titleColor || `yellow`, t = o.title.prefix.marker !== void 0 && o.title.prefix.marker !== null ? o.title.prefix.marker : s.titlePrefix || ` (`, n = o.title.suffix.marker !== void 0 && o.title.suffix.marker !== null ? o.title.suffix.marker : s.titleSuffix || `)`, r = o.title.prefix.color || s.titlePrefixColor || e, i = o.title.suffix.color || s.titleSuffixColor || e, c = r && t != null ? safeChalkString(r, { colors: !0 })(t) : t || ``, l = e && a ? safeChalkString(e, { colors: !0 })(a) : a, u = i && n != null ? safeChalkString(i, { colors: !0 })(n) : n || ``;
279
- p += `${c}${l}${u}`;
280
- }
281
- let m = c && (c.startsWith(`http://`) || c.startsWith(`https://`));
282
- if ((o.external.enabled !== null && o.external.enabled !== void 0 ? o.external.enabled === `true` || o.external.enabled === !0 : s.external?.enabled === !0) && m) {
283
- let e = o.external.marker || s.external?.marker || `↗`, t = o.external.color || s.external?.color || `gray`, n = o.external.position || s.external?.position || `after`, r = o.external.spacing !== void 0 && o.external.spacing !== null ? o.external.spacing : s.external?.spacing !== void 0 && s.external?.spacing !== null ? s.external.spacing : ` `, i = safeChalkString(t, { colors: !0 })(e);
284
- p = n === `before` ? `${i}${r}${p}` : `${p}${r}${i}`;
285
- }
286
- return p;
287
- });
288
- var D = {
289
- "#text": v,
290
- a: E
291
- };
292
- const O = process.env.CACHE_RENDER !== `false`, k = /* @__PURE__ */ new WeakMap(), A = (e, t) => {
293
- if (!O || !e || typeof e != `object`) return;
294
- let n = k.get(e);
295
- if (n) return n.get(JSON.stringify({
296
- lineWidth: t.lineWidth,
297
- pre: t.pre,
298
- listDepth: t.listDepth,
299
- listType: t.listType,
300
- depth: t.depth
301
- }));
302
- }, j = (e, t, n) => {
303
- if (!O || !e || typeof e != `object`) return;
304
- let r = k.get(e);
305
- if (r || (r = /* @__PURE__ */ new Map(), k.set(e, r)), r.set(JSON.stringify({
306
- lineWidth: t.lineWidth,
307
- pre: t.pre,
308
- listDepth: t.listDepth,
309
- listType: t.listType,
310
- depth: t.depth
311
- }), n), r.size > 10) {
312
- let e = r.keys().next().value;
313
- r.delete(e);
314
- }
315
- }, M = (e, t, n = D.div) => {
316
- if (!e) return null;
317
- let r = t.depth === void 0 ? 0 : t.depth;
318
- if (r >= 100) return null;
319
- let i = {
320
- ...t,
321
- depth: r + 1
322
- }, a = A(e, i);
323
- if (a !== void 0) return a;
324
- let o = null;
325
- try {
326
- o = (D[e.nodeName || `#text`] || n)(e, i), j(e, i, o);
327
- } catch {
328
- o = null;
329
- }
330
- return o;
331
- };
332
- function N(t, n) {
333
- return `${(M(parse(t, { sourceCodeLocationInfo: !0 }), m(n)) || { value: `` }).value}\n`;
334
- }
335
-
336
- //#endregion
337
- export { N };
338
- //# sourceMappingURL=html-Di3_LwV3.mjs.map