@eventcatalog/generator-asyncapi 3.0.1 → 3.0.3

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/dist/index.js CHANGED
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
8
11
  var __export = (target, all) => {
9
12
  for (var name in all)
10
13
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -27,6 +30,259 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
30
  ));
28
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
32
 
33
+ // ../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json
34
+ var require_boxes = __commonJS({
35
+ "../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json"(exports2, module2) {
36
+ module2.exports = {
37
+ single: {
38
+ topLeft: "\u250C",
39
+ top: "\u2500",
40
+ topRight: "\u2510",
41
+ right: "\u2502",
42
+ bottomRight: "\u2518",
43
+ bottom: "\u2500",
44
+ bottomLeft: "\u2514",
45
+ left: "\u2502"
46
+ },
47
+ double: {
48
+ topLeft: "\u2554",
49
+ top: "\u2550",
50
+ topRight: "\u2557",
51
+ right: "\u2551",
52
+ bottomRight: "\u255D",
53
+ bottom: "\u2550",
54
+ bottomLeft: "\u255A",
55
+ left: "\u2551"
56
+ },
57
+ round: {
58
+ topLeft: "\u256D",
59
+ top: "\u2500",
60
+ topRight: "\u256E",
61
+ right: "\u2502",
62
+ bottomRight: "\u256F",
63
+ bottom: "\u2500",
64
+ bottomLeft: "\u2570",
65
+ left: "\u2502"
66
+ },
67
+ bold: {
68
+ topLeft: "\u250F",
69
+ top: "\u2501",
70
+ topRight: "\u2513",
71
+ right: "\u2503",
72
+ bottomRight: "\u251B",
73
+ bottom: "\u2501",
74
+ bottomLeft: "\u2517",
75
+ left: "\u2503"
76
+ },
77
+ singleDouble: {
78
+ topLeft: "\u2553",
79
+ top: "\u2500",
80
+ topRight: "\u2556",
81
+ right: "\u2551",
82
+ bottomRight: "\u255C",
83
+ bottom: "\u2500",
84
+ bottomLeft: "\u2559",
85
+ left: "\u2551"
86
+ },
87
+ doubleSingle: {
88
+ topLeft: "\u2552",
89
+ top: "\u2550",
90
+ topRight: "\u2555",
91
+ right: "\u2502",
92
+ bottomRight: "\u255B",
93
+ bottom: "\u2550",
94
+ bottomLeft: "\u2558",
95
+ left: "\u2502"
96
+ },
97
+ classic: {
98
+ topLeft: "+",
99
+ top: "-",
100
+ topRight: "+",
101
+ right: "|",
102
+ bottomRight: "+",
103
+ bottom: "-",
104
+ bottomLeft: "+",
105
+ left: "|"
106
+ },
107
+ arrow: {
108
+ topLeft: "\u2198",
109
+ top: "\u2193",
110
+ topRight: "\u2199",
111
+ right: "\u2190",
112
+ bottomRight: "\u2196",
113
+ bottom: "\u2191",
114
+ bottomLeft: "\u2197",
115
+ left: "\u2192"
116
+ }
117
+ };
118
+ }
119
+ });
120
+
121
+ // ../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js
122
+ var require_cli_boxes = __commonJS({
123
+ "../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js"(exports2, module2) {
124
+ "use strict";
125
+ var cliBoxes2 = require_boxes();
126
+ module2.exports = cliBoxes2;
127
+ module2.exports.default = cliBoxes2;
128
+ }
129
+ });
130
+
131
+ // ../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
132
+ var require_ansi_regex = __commonJS({
133
+ "../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports2, module2) {
134
+ "use strict";
135
+ module2.exports = ({ onlyFirst = false } = {}) => {
136
+ const pattern = [
137
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
138
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
139
+ ].join("|");
140
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
141
+ };
142
+ }
143
+ });
144
+
145
+ // ../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
146
+ var require_strip_ansi = __commonJS({
147
+ "../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
148
+ "use strict";
149
+ var ansiRegex2 = require_ansi_regex();
150
+ module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
151
+ }
152
+ });
153
+
154
+ // ../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
155
+ var require_is_fullwidth_code_point = __commonJS({
156
+ "../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
157
+ "use strict";
158
+ var isFullwidthCodePoint = (codePoint) => {
159
+ if (Number.isNaN(codePoint)) {
160
+ return false;
161
+ }
162
+ if (codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
163
+ codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
164
+ codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
165
+ // CJK Radicals Supplement .. Enclosed CJK Letters and Months
166
+ 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
167
+ 12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
168
+ 19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
169
+ 43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
170
+ 44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
171
+ 63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
172
+ 65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
173
+ 65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
174
+ 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
175
+ 110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
176
+ 127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
177
+ 131072 <= codePoint && codePoint <= 262141)) {
178
+ return true;
179
+ }
180
+ return false;
181
+ };
182
+ module2.exports = isFullwidthCodePoint;
183
+ module2.exports.default = isFullwidthCodePoint;
184
+ }
185
+ });
186
+
187
+ // ../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
188
+ var require_emoji_regex = __commonJS({
189
+ "../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports2, module2) {
190
+ "use strict";
191
+ module2.exports = function() {
192
+ 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;
193
+ };
194
+ }
195
+ });
196
+
197
+ // ../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
198
+ var require_string_width = __commonJS({
199
+ "../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
200
+ "use strict";
201
+ var stripAnsi2 = require_strip_ansi();
202
+ var isFullwidthCodePoint = require_is_fullwidth_code_point();
203
+ var emojiRegex = require_emoji_regex();
204
+ var stringWidth2 = (string) => {
205
+ if (typeof string !== "string" || string.length === 0) {
206
+ return 0;
207
+ }
208
+ string = stripAnsi2(string);
209
+ if (string.length === 0) {
210
+ return 0;
211
+ }
212
+ string = string.replace(emojiRegex(), " ");
213
+ let width = 0;
214
+ for (let i = 0; i < string.length; i++) {
215
+ const code = string.codePointAt(i);
216
+ if (code <= 31 || code >= 127 && code <= 159) {
217
+ continue;
218
+ }
219
+ if (code >= 768 && code <= 879) {
220
+ continue;
221
+ }
222
+ if (code > 65535) {
223
+ i++;
224
+ }
225
+ width += isFullwidthCodePoint(code) ? 2 : 1;
226
+ }
227
+ return width;
228
+ };
229
+ module2.exports = stringWidth2;
230
+ module2.exports.default = stringWidth2;
231
+ }
232
+ });
233
+
234
+ // ../../node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js
235
+ var require_ansi_align = __commonJS({
236
+ "../../node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js"(exports2, module2) {
237
+ "use strict";
238
+ var stringWidth2 = require_string_width();
239
+ function ansiAlign2(text, opts) {
240
+ if (!text) return text;
241
+ opts = opts || {};
242
+ const align = opts.align || "center";
243
+ if (align === "left") return text;
244
+ const split = opts.split || "\n";
245
+ const pad = opts.pad || " ";
246
+ const widthDiffFn = align !== "right" ? halfDiff : fullDiff;
247
+ let returnString = false;
248
+ if (!Array.isArray(text)) {
249
+ returnString = true;
250
+ text = String(text).split(split);
251
+ }
252
+ let width;
253
+ let maxWidth = 0;
254
+ text = text.map(function(str) {
255
+ str = String(str);
256
+ width = stringWidth2(str);
257
+ maxWidth = Math.max(width, maxWidth);
258
+ return {
259
+ str,
260
+ width
261
+ };
262
+ }).map(function(obj) {
263
+ return new Array(widthDiffFn(maxWidth, obj.width) + 1).join(pad) + obj.str;
264
+ });
265
+ return returnString ? text.join(split) : text;
266
+ }
267
+ ansiAlign2.left = function left(text) {
268
+ return ansiAlign2(text, { align: "left" });
269
+ };
270
+ ansiAlign2.center = function center(text) {
271
+ return ansiAlign2(text, { align: "center" });
272
+ };
273
+ ansiAlign2.right = function right(text) {
274
+ return ansiAlign2(text, { align: "right" });
275
+ };
276
+ module2.exports = ansiAlign2;
277
+ function halfDiff(maxWidth, curWidth) {
278
+ return Math.floor((maxWidth - curWidth) / 2);
279
+ }
280
+ function fullDiff(maxWidth, curWidth) {
281
+ return maxWidth - curWidth;
282
+ }
283
+ }
284
+ });
285
+
30
286
  // src/index.ts
31
287
  var index_exports = {};
32
288
  __export(index_exports, {
@@ -39,8 +295,921 @@ var import_promises = require("fs/promises");
39
295
  var import_minimist = __toESM(require("minimist"));
40
296
  var import_js_yaml = __toESM(require("js-yaml"));
41
297
  var import_zod = require("zod");
42
- var import_chalk2 = __toESM(require("chalk"));
298
+ var import_chalk3 = __toESM(require("chalk"));
299
+ var import_path2 = __toESM(require("path"));
300
+
301
+ // package.json
302
+ var package_default = {
303
+ name: "@eventcatalog/generator-asyncapi",
304
+ version: "3.0.3",
305
+ description: "AsyncAPI generator for EventCatalog",
306
+ scripts: {
307
+ build: "tsup",
308
+ test: "vitest",
309
+ format: "prettier --write .",
310
+ "format:diff": "prettier --list-different .",
311
+ changeset: "changeset",
312
+ release: "changeset publish"
313
+ },
314
+ publishConfig: {
315
+ access: "public"
316
+ },
317
+ keywords: [],
318
+ author: "",
319
+ license: "ISC",
320
+ devDependencies: {
321
+ "@changesets/cli": "^2.27.9",
322
+ "@types/fs-extra": "^11.0.4",
323
+ "@types/js-yaml": "^4.0.9",
324
+ "@types/lodash": "^4.17.7",
325
+ "@types/minimist": "^1.2.5",
326
+ "@types/node": "^20.16.1",
327
+ prettier: "^3.3.3",
328
+ tsup: "^8.1.0",
329
+ typescript: "^5.5.3",
330
+ vitest: "^2.0.2"
331
+ },
332
+ files: [
333
+ "dist",
334
+ "package.json"
335
+ ],
336
+ main: "./dist/index.js",
337
+ module: "./dist/index.mjs",
338
+ types: "./dist/index.d.ts",
339
+ dependencies: {
340
+ "@asyncapi/avro-schema-parser": "^3.0.24",
341
+ "@asyncapi/parser": "^3.3.0",
342
+ "@eventcatalog/sdk": "^1.4.8",
343
+ chalk: "^4",
344
+ "fs-extra": "^11.2.0",
345
+ glob: "^11.0.0",
346
+ "gray-matter": "^4.0.3",
347
+ "js-yaml": "^4.1.0",
348
+ lodash: "^4.17.21",
349
+ minimist: "^1.2.8",
350
+ slugify: "^1.6.6",
351
+ "update-notifier": "^7.3.1",
352
+ zod: "^3.23.8"
353
+ }
354
+ };
355
+
356
+ // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
357
+ var import_node_process = __toESM(require("process"), 1);
358
+
359
+ // ../../node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js
360
+ function ansiRegex({ onlyFirst = false } = {}) {
361
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
362
+ const pattern = [
363
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
364
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
365
+ ].join("|");
366
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
367
+ }
368
+
369
+ // ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
370
+ var regex = ansiRegex();
371
+ function stripAnsi(string) {
372
+ if (typeof string !== "string") {
373
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
374
+ }
375
+ return string.replace(regex, "");
376
+ }
377
+
378
+ // ../../node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js
379
+ function isAmbiguous(x) {
380
+ return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
381
+ }
382
+ function isFullWidth(x) {
383
+ return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
384
+ }
385
+ function isWide(x) {
386
+ return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
387
+ }
388
+
389
+ // ../../node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
390
+ function validate(codePoint) {
391
+ if (!Number.isSafeInteger(codePoint)) {
392
+ throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
393
+ }
394
+ }
395
+ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
396
+ validate(codePoint);
397
+ if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
398
+ return 2;
399
+ }
400
+ return 1;
401
+ }
402
+
403
+ // ../../node_modules/.pnpm/emoji-regex@10.4.0/node_modules/emoji-regex/index.mjs
404
+ var emoji_regex_default = () => {
405
+ return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
406
+ };
407
+
408
+ // ../../node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js
409
+ var segmenter = new Intl.Segmenter();
410
+ var defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
411
+ function stringWidth(string, options = {}) {
412
+ if (typeof string !== "string" || string.length === 0) {
413
+ return 0;
414
+ }
415
+ const {
416
+ ambiguousIsNarrow = true,
417
+ countAnsiEscapeCodes = false
418
+ } = options;
419
+ if (!countAnsiEscapeCodes) {
420
+ string = stripAnsi(string);
421
+ }
422
+ if (string.length === 0) {
423
+ return 0;
424
+ }
425
+ let width = 0;
426
+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
427
+ for (const { segment: character } of segmenter.segment(string)) {
428
+ const codePoint = character.codePointAt(0);
429
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
430
+ continue;
431
+ }
432
+ if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
433
+ continue;
434
+ }
435
+ if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
436
+ continue;
437
+ }
438
+ if (codePoint >= 55296 && codePoint <= 57343) {
439
+ continue;
440
+ }
441
+ if (codePoint >= 65024 && codePoint <= 65039) {
442
+ continue;
443
+ }
444
+ if (defaultIgnorableCodePointRegex.test(character)) {
445
+ continue;
446
+ }
447
+ if (emoji_regex_default().test(character)) {
448
+ width += 2;
449
+ continue;
450
+ }
451
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
452
+ }
453
+ return width;
454
+ }
455
+
456
+ // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
457
+ var import_chalk = __toESM(require("chalk"), 1);
458
+
459
+ // ../../node_modules/.pnpm/widest-line@5.0.0/node_modules/widest-line/index.js
460
+ function widestLine(string) {
461
+ let lineWidth = 0;
462
+ for (const line of string.split("\n")) {
463
+ lineWidth = Math.max(lineWidth, stringWidth(line));
464
+ }
465
+ return lineWidth;
466
+ }
467
+
468
+ // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
469
+ var import_cli_boxes = __toESM(require_cli_boxes(), 1);
470
+
471
+ // ../../node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.js
472
+ var UPPERCASE = /[\p{Lu}]/u;
473
+ var LOWERCASE = /[\p{Ll}]/u;
474
+ var LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
475
+ var IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u;
476
+ var SEPARATORS = /[_.\- ]+/;
477
+ var LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source);
478
+ var SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
479
+ var NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
480
+ var preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
481
+ let isLastCharLower = false;
482
+ let isLastCharUpper = false;
483
+ let isLastLastCharUpper = false;
484
+ let isLastLastCharPreserved = false;
485
+ for (let index = 0; index < string.length; index++) {
486
+ const character = string[index];
487
+ isLastLastCharPreserved = index > 2 ? string[index - 3] === "-" : true;
488
+ if (isLastCharLower && UPPERCASE.test(character)) {
489
+ string = string.slice(0, index) + "-" + string.slice(index);
490
+ isLastCharLower = false;
491
+ isLastLastCharUpper = isLastCharUpper;
492
+ isLastCharUpper = true;
493
+ index++;
494
+ } else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase2)) {
495
+ string = string.slice(0, index - 1) + "-" + string.slice(index - 1);
496
+ isLastLastCharUpper = isLastCharUpper;
497
+ isLastCharUpper = false;
498
+ isLastCharLower = true;
499
+ } else {
500
+ isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;
501
+ isLastLastCharUpper = isLastCharUpper;
502
+ isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;
503
+ }
504
+ }
505
+ return string;
506
+ };
507
+ var preserveConsecutiveUppercase = (input, toLowerCase) => {
508
+ LEADING_CAPITAL.lastIndex = 0;
509
+ return input.replaceAll(LEADING_CAPITAL, (match) => toLowerCase(match));
510
+ };
511
+ var postProcess = (input, toUpperCase) => {
512
+ SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
513
+ NUMBERS_AND_IDENTIFIER.lastIndex = 0;
514
+ return input.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ["_", "-"].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match)).replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));
515
+ };
516
+ function camelCase(input, options) {
517
+ if (!(typeof input === "string" || Array.isArray(input))) {
518
+ throw new TypeError("Expected the input to be `string | string[]`");
519
+ }
520
+ options = {
521
+ pascalCase: false,
522
+ preserveConsecutiveUppercase: false,
523
+ ...options
524
+ };
525
+ if (Array.isArray(input)) {
526
+ input = input.map((x) => x.trim()).filter((x) => x.length).join("-");
527
+ } else {
528
+ input = input.trim();
529
+ }
530
+ if (input.length === 0) {
531
+ return "";
532
+ }
533
+ const toLowerCase = options.locale === false ? (string) => string.toLowerCase() : (string) => string.toLocaleLowerCase(options.locale);
534
+ const toUpperCase = options.locale === false ? (string) => string.toUpperCase() : (string) => string.toLocaleUpperCase(options.locale);
535
+ if (input.length === 1) {
536
+ if (SEPARATORS.test(input)) {
537
+ return "";
538
+ }
539
+ return options.pascalCase ? toUpperCase(input) : toLowerCase(input);
540
+ }
541
+ const hasUpperCase = input !== toLowerCase(input);
542
+ if (hasUpperCase) {
543
+ input = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);
544
+ }
545
+ input = input.replace(LEADING_SEPARATORS, "");
546
+ input = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);
547
+ if (options.pascalCase) {
548
+ input = toUpperCase(input.charAt(0)) + input.slice(1);
549
+ }
550
+ return postProcess(input, toUpperCase);
551
+ }
552
+
553
+ // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
554
+ var import_ansi_align = __toESM(require_ansi_align(), 1);
555
+
556
+ // ../../node_modules/.pnpm/ansi-styles@6.2.1/node_modules/ansi-styles/index.js
557
+ var ANSI_BACKGROUND_OFFSET = 10;
558
+ var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
559
+ var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
560
+ var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
561
+ var styles = {
562
+ modifier: {
563
+ reset: [0, 0],
564
+ // 21 isn't widely supported and 22 does the same thing
565
+ bold: [1, 22],
566
+ dim: [2, 22],
567
+ italic: [3, 23],
568
+ underline: [4, 24],
569
+ overline: [53, 55],
570
+ inverse: [7, 27],
571
+ hidden: [8, 28],
572
+ strikethrough: [9, 29]
573
+ },
574
+ color: {
575
+ black: [30, 39],
576
+ red: [31, 39],
577
+ green: [32, 39],
578
+ yellow: [33, 39],
579
+ blue: [34, 39],
580
+ magenta: [35, 39],
581
+ cyan: [36, 39],
582
+ white: [37, 39],
583
+ // Bright color
584
+ blackBright: [90, 39],
585
+ gray: [90, 39],
586
+ // Alias of `blackBright`
587
+ grey: [90, 39],
588
+ // Alias of `blackBright`
589
+ redBright: [91, 39],
590
+ greenBright: [92, 39],
591
+ yellowBright: [93, 39],
592
+ blueBright: [94, 39],
593
+ magentaBright: [95, 39],
594
+ cyanBright: [96, 39],
595
+ whiteBright: [97, 39]
596
+ },
597
+ bgColor: {
598
+ bgBlack: [40, 49],
599
+ bgRed: [41, 49],
600
+ bgGreen: [42, 49],
601
+ bgYellow: [43, 49],
602
+ bgBlue: [44, 49],
603
+ bgMagenta: [45, 49],
604
+ bgCyan: [46, 49],
605
+ bgWhite: [47, 49],
606
+ // Bright color
607
+ bgBlackBright: [100, 49],
608
+ bgGray: [100, 49],
609
+ // Alias of `bgBlackBright`
610
+ bgGrey: [100, 49],
611
+ // Alias of `bgBlackBright`
612
+ bgRedBright: [101, 49],
613
+ bgGreenBright: [102, 49],
614
+ bgYellowBright: [103, 49],
615
+ bgBlueBright: [104, 49],
616
+ bgMagentaBright: [105, 49],
617
+ bgCyanBright: [106, 49],
618
+ bgWhiteBright: [107, 49]
619
+ }
620
+ };
621
+ var modifierNames = Object.keys(styles.modifier);
622
+ var foregroundColorNames = Object.keys(styles.color);
623
+ var backgroundColorNames = Object.keys(styles.bgColor);
624
+ var colorNames = [...foregroundColorNames, ...backgroundColorNames];
625
+ function assembleStyles() {
626
+ const codes = /* @__PURE__ */ new Map();
627
+ for (const [groupName, group] of Object.entries(styles)) {
628
+ for (const [styleName, style] of Object.entries(group)) {
629
+ styles[styleName] = {
630
+ open: `\x1B[${style[0]}m`,
631
+ close: `\x1B[${style[1]}m`
632
+ };
633
+ group[styleName] = styles[styleName];
634
+ codes.set(style[0], style[1]);
635
+ }
636
+ Object.defineProperty(styles, groupName, {
637
+ value: group,
638
+ enumerable: false
639
+ });
640
+ }
641
+ Object.defineProperty(styles, "codes", {
642
+ value: codes,
643
+ enumerable: false
644
+ });
645
+ styles.color.close = "\x1B[39m";
646
+ styles.bgColor.close = "\x1B[49m";
647
+ styles.color.ansi = wrapAnsi16();
648
+ styles.color.ansi256 = wrapAnsi256();
649
+ styles.color.ansi16m = wrapAnsi16m();
650
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
651
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
652
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
653
+ Object.defineProperties(styles, {
654
+ rgbToAnsi256: {
655
+ value: (red, green, blue) => {
656
+ if (red === green && green === blue) {
657
+ if (red < 8) {
658
+ return 16;
659
+ }
660
+ if (red > 248) {
661
+ return 231;
662
+ }
663
+ return Math.round((red - 8) / 247 * 24) + 232;
664
+ }
665
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
666
+ },
667
+ enumerable: false
668
+ },
669
+ hexToRgb: {
670
+ value: (hex) => {
671
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
672
+ if (!matches) {
673
+ return [0, 0, 0];
674
+ }
675
+ let [colorString] = matches;
676
+ if (colorString.length === 3) {
677
+ colorString = [...colorString].map((character) => character + character).join("");
678
+ }
679
+ const integer = Number.parseInt(colorString, 16);
680
+ return [
681
+ /* eslint-disable no-bitwise */
682
+ integer >> 16 & 255,
683
+ integer >> 8 & 255,
684
+ integer & 255
685
+ /* eslint-enable no-bitwise */
686
+ ];
687
+ },
688
+ enumerable: false
689
+ },
690
+ hexToAnsi256: {
691
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
692
+ enumerable: false
693
+ },
694
+ ansi256ToAnsi: {
695
+ value: (code) => {
696
+ if (code < 8) {
697
+ return 30 + code;
698
+ }
699
+ if (code < 16) {
700
+ return 90 + (code - 8);
701
+ }
702
+ let red;
703
+ let green;
704
+ let blue;
705
+ if (code >= 232) {
706
+ red = ((code - 232) * 10 + 8) / 255;
707
+ green = red;
708
+ blue = red;
709
+ } else {
710
+ code -= 16;
711
+ const remainder = code % 36;
712
+ red = Math.floor(code / 36) / 5;
713
+ green = Math.floor(remainder / 6) / 5;
714
+ blue = remainder % 6 / 5;
715
+ }
716
+ const value = Math.max(red, green, blue) * 2;
717
+ if (value === 0) {
718
+ return 30;
719
+ }
720
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
721
+ if (value === 2) {
722
+ result += 60;
723
+ }
724
+ return result;
725
+ },
726
+ enumerable: false
727
+ },
728
+ rgbToAnsi: {
729
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
730
+ enumerable: false
731
+ },
732
+ hexToAnsi: {
733
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
734
+ enumerable: false
735
+ }
736
+ });
737
+ return styles;
738
+ }
739
+ var ansiStyles = assembleStyles();
740
+ var ansi_styles_default = ansiStyles;
741
+
742
+ // ../../node_modules/.pnpm/wrap-ansi@9.0.0/node_modules/wrap-ansi/index.js
743
+ var ESCAPES = /* @__PURE__ */ new Set([
744
+ "\x1B",
745
+ "\x9B"
746
+ ]);
747
+ var END_CODE = 39;
748
+ var ANSI_ESCAPE_BELL = "\x07";
749
+ var ANSI_CSI = "[";
750
+ var ANSI_OSC = "]";
751
+ var ANSI_SGR_TERMINATOR = "m";
752
+ var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
753
+ var wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
754
+ var wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
755
+ var wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
756
+ var wrapWord = (rows, word, columns) => {
757
+ const characters = [...word];
758
+ let isInsideEscape = false;
759
+ let isInsideLinkEscape = false;
760
+ let visible = stringWidth(stripAnsi(rows.at(-1)));
761
+ for (const [index, character] of characters.entries()) {
762
+ const characterLength = stringWidth(character);
763
+ if (visible + characterLength <= columns) {
764
+ rows[rows.length - 1] += character;
765
+ } else {
766
+ rows.push(character);
767
+ visible = 0;
768
+ }
769
+ if (ESCAPES.has(character)) {
770
+ isInsideEscape = true;
771
+ const ansiEscapeLinkCandidate = characters.slice(index + 1, index + 1 + ANSI_ESCAPE_LINK.length).join("");
772
+ isInsideLinkEscape = ansiEscapeLinkCandidate === ANSI_ESCAPE_LINK;
773
+ }
774
+ if (isInsideEscape) {
775
+ if (isInsideLinkEscape) {
776
+ if (character === ANSI_ESCAPE_BELL) {
777
+ isInsideEscape = false;
778
+ isInsideLinkEscape = false;
779
+ }
780
+ } else if (character === ANSI_SGR_TERMINATOR) {
781
+ isInsideEscape = false;
782
+ }
783
+ continue;
784
+ }
785
+ visible += characterLength;
786
+ if (visible === columns && index < characters.length - 1) {
787
+ rows.push("");
788
+ visible = 0;
789
+ }
790
+ }
791
+ if (!visible && rows.at(-1).length > 0 && rows.length > 1) {
792
+ rows[rows.length - 2] += rows.pop();
793
+ }
794
+ };
795
+ var stringVisibleTrimSpacesRight = (string) => {
796
+ const words = string.split(" ");
797
+ let last = words.length;
798
+ while (last > 0) {
799
+ if (stringWidth(words[last - 1]) > 0) {
800
+ break;
801
+ }
802
+ last--;
803
+ }
804
+ if (last === words.length) {
805
+ return string;
806
+ }
807
+ return words.slice(0, last).join(" ") + words.slice(last).join("");
808
+ };
809
+ var exec = (string, columns, options = {}) => {
810
+ if (options.trim !== false && string.trim() === "") {
811
+ return "";
812
+ }
813
+ let returnValue = "";
814
+ let escapeCode;
815
+ let escapeUrl;
816
+ const lengths = wordLengths(string);
817
+ let rows = [""];
818
+ for (const [index, word] of string.split(" ").entries()) {
819
+ if (options.trim !== false) {
820
+ rows[rows.length - 1] = rows.at(-1).trimStart();
821
+ }
822
+ let rowLength = stringWidth(rows.at(-1));
823
+ if (index !== 0) {
824
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
825
+ rows.push("");
826
+ rowLength = 0;
827
+ }
828
+ if (rowLength > 0 || options.trim === false) {
829
+ rows[rows.length - 1] += " ";
830
+ rowLength++;
831
+ }
832
+ }
833
+ if (options.hard && lengths[index] > columns) {
834
+ const remainingColumns = columns - rowLength;
835
+ const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
836
+ const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
837
+ if (breaksStartingNextLine < breaksStartingThisLine) {
838
+ rows.push("");
839
+ }
840
+ wrapWord(rows, word, columns);
841
+ continue;
842
+ }
843
+ if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
844
+ if (options.wordWrap === false && rowLength < columns) {
845
+ wrapWord(rows, word, columns);
846
+ continue;
847
+ }
848
+ rows.push("");
849
+ }
850
+ if (rowLength + lengths[index] > columns && options.wordWrap === false) {
851
+ wrapWord(rows, word, columns);
852
+ continue;
853
+ }
854
+ rows[rows.length - 1] += word;
855
+ }
856
+ if (options.trim !== false) {
857
+ rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
858
+ }
859
+ const preString = rows.join("\n");
860
+ const pre = [...preString];
861
+ let preStringIndex = 0;
862
+ for (const [index, character] of pre.entries()) {
863
+ returnValue += character;
864
+ if (ESCAPES.has(character)) {
865
+ const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
866
+ if (groups.code !== void 0) {
867
+ const code2 = Number.parseFloat(groups.code);
868
+ escapeCode = code2 === END_CODE ? void 0 : code2;
869
+ } else if (groups.uri !== void 0) {
870
+ escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
871
+ }
872
+ }
873
+ const code = ansi_styles_default.codes.get(Number(escapeCode));
874
+ if (pre[index + 1] === "\n") {
875
+ if (escapeUrl) {
876
+ returnValue += wrapAnsiHyperlink("");
877
+ }
878
+ if (escapeCode && code) {
879
+ returnValue += wrapAnsiCode(code);
880
+ }
881
+ } else if (character === "\n") {
882
+ if (escapeCode && code) {
883
+ returnValue += wrapAnsiCode(escapeCode);
884
+ }
885
+ if (escapeUrl) {
886
+ returnValue += wrapAnsiHyperlink(escapeUrl);
887
+ }
888
+ }
889
+ preStringIndex += character.length;
890
+ }
891
+ return returnValue;
892
+ };
893
+ function wrapAnsi(string, columns, options) {
894
+ return String(string).normalize().replaceAll("\r\n", "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
895
+ }
896
+
897
+ // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
898
+ var import_cli_boxes2 = __toESM(require_cli_boxes(), 1);
899
+ var NEWLINE = "\n";
900
+ var PAD = " ";
901
+ var NONE = "none";
902
+ var terminalColumns = () => {
903
+ const { env, stdout, stderr } = import_node_process.default;
904
+ if (stdout?.columns) {
905
+ return stdout.columns;
906
+ }
907
+ if (stderr?.columns) {
908
+ return stderr.columns;
909
+ }
910
+ if (env.COLUMNS) {
911
+ return Number.parseInt(env.COLUMNS, 10);
912
+ }
913
+ return 80;
914
+ };
915
+ var getObject = (detail) => typeof detail === "number" ? {
916
+ top: detail,
917
+ right: detail * 3,
918
+ bottom: detail,
919
+ left: detail * 3
920
+ } : {
921
+ top: 0,
922
+ right: 0,
923
+ bottom: 0,
924
+ left: 0,
925
+ ...detail
926
+ };
927
+ var getBorderWidth = (borderStyle) => borderStyle === NONE ? 0 : 2;
928
+ var getBorderChars = (borderStyle) => {
929
+ const sides = [
930
+ "topLeft",
931
+ "topRight",
932
+ "bottomRight",
933
+ "bottomLeft",
934
+ "left",
935
+ "right",
936
+ "top",
937
+ "bottom"
938
+ ];
939
+ let characters;
940
+ if (borderStyle === NONE) {
941
+ borderStyle = {};
942
+ for (const side of sides) {
943
+ borderStyle[side] = "";
944
+ }
945
+ }
946
+ if (typeof borderStyle === "string") {
947
+ characters = import_cli_boxes.default[borderStyle];
948
+ if (!characters) {
949
+ throw new TypeError(`Invalid border style: ${borderStyle}`);
950
+ }
951
+ } else {
952
+ if (typeof borderStyle?.vertical === "string") {
953
+ borderStyle.left = borderStyle.vertical;
954
+ borderStyle.right = borderStyle.vertical;
955
+ }
956
+ if (typeof borderStyle?.horizontal === "string") {
957
+ borderStyle.top = borderStyle.horizontal;
958
+ borderStyle.bottom = borderStyle.horizontal;
959
+ }
960
+ for (const side of sides) {
961
+ if (borderStyle[side] === null || typeof borderStyle[side] !== "string") {
962
+ throw new TypeError(`Invalid border style: ${side}`);
963
+ }
964
+ }
965
+ characters = borderStyle;
966
+ }
967
+ return characters;
968
+ };
969
+ var makeTitle = (text, horizontal, alignment) => {
970
+ let title = "";
971
+ const textWidth = stringWidth(text);
972
+ switch (alignment) {
973
+ case "left": {
974
+ title = text + horizontal.slice(textWidth);
975
+ break;
976
+ }
977
+ case "right": {
978
+ title = horizontal.slice(textWidth) + text;
979
+ break;
980
+ }
981
+ default: {
982
+ horizontal = horizontal.slice(textWidth);
983
+ if (horizontal.length % 2 === 1) {
984
+ horizontal = horizontal.slice(Math.floor(horizontal.length / 2));
985
+ title = horizontal.slice(1) + text + horizontal;
986
+ } else {
987
+ horizontal = horizontal.slice(horizontal.length / 2);
988
+ title = horizontal + text + horizontal;
989
+ }
990
+ break;
991
+ }
992
+ }
993
+ return title;
994
+ };
995
+ var makeContentText = (text, { padding, width, textAlignment, height }) => {
996
+ text = (0, import_ansi_align.default)(text, { align: textAlignment });
997
+ let lines = text.split(NEWLINE);
998
+ const textWidth = widestLine(text);
999
+ const max = width - padding.left - padding.right;
1000
+ if (textWidth > max) {
1001
+ const newLines = [];
1002
+ for (const line of lines) {
1003
+ const createdLines = wrapAnsi(line, max, { hard: true });
1004
+ const alignedLines = (0, import_ansi_align.default)(createdLines, { align: textAlignment });
1005
+ const alignedLinesArray = alignedLines.split("\n");
1006
+ const longestLength = Math.max(...alignedLinesArray.map((s) => stringWidth(s)));
1007
+ for (const alignedLine of alignedLinesArray) {
1008
+ let paddedLine;
1009
+ switch (textAlignment) {
1010
+ case "center": {
1011
+ paddedLine = PAD.repeat((max - longestLength) / 2) + alignedLine;
1012
+ break;
1013
+ }
1014
+ case "right": {
1015
+ paddedLine = PAD.repeat(max - longestLength) + alignedLine;
1016
+ break;
1017
+ }
1018
+ default: {
1019
+ paddedLine = alignedLine;
1020
+ break;
1021
+ }
1022
+ }
1023
+ newLines.push(paddedLine);
1024
+ }
1025
+ }
1026
+ lines = newLines;
1027
+ }
1028
+ if (textAlignment === "center" && textWidth < max) {
1029
+ lines = lines.map((line) => PAD.repeat((max - textWidth) / 2) + line);
1030
+ } else if (textAlignment === "right" && textWidth < max) {
1031
+ lines = lines.map((line) => PAD.repeat(max - textWidth) + line);
1032
+ }
1033
+ const paddingLeft = PAD.repeat(padding.left);
1034
+ const paddingRight = PAD.repeat(padding.right);
1035
+ lines = lines.map((line) => {
1036
+ const newLine = paddingLeft + line + paddingRight;
1037
+ return newLine + PAD.repeat(width - stringWidth(newLine));
1038
+ });
1039
+ if (padding.top > 0) {
1040
+ lines = [...Array.from({ length: padding.top }).fill(PAD.repeat(width)), ...lines];
1041
+ }
1042
+ if (padding.bottom > 0) {
1043
+ lines = [...lines, ...Array.from({ length: padding.bottom }).fill(PAD.repeat(width))];
1044
+ }
1045
+ if (height && lines.length > height) {
1046
+ lines = lines.slice(0, height);
1047
+ } else if (height && lines.length < height) {
1048
+ lines = [...lines, ...Array.from({ length: height - lines.length }).fill(PAD.repeat(width))];
1049
+ }
1050
+ return lines.join(NEWLINE);
1051
+ };
1052
+ var boxContent = (content, contentWidth, options) => {
1053
+ const colorizeBorder = (border) => {
1054
+ const newBorder = options.borderColor ? getColorFunction(options.borderColor)(border) : border;
1055
+ return options.dimBorder ? import_chalk.default.dim(newBorder) : newBorder;
1056
+ };
1057
+ const colorizeContent = (content2) => options.backgroundColor ? getBGColorFunction(options.backgroundColor)(content2) : content2;
1058
+ const chars = getBorderChars(options.borderStyle);
1059
+ const columns = terminalColumns();
1060
+ let marginLeft = PAD.repeat(options.margin.left);
1061
+ if (options.float === "center") {
1062
+ const marginWidth = Math.max((columns - contentWidth - getBorderWidth(options.borderStyle)) / 2, 0);
1063
+ marginLeft = PAD.repeat(marginWidth);
1064
+ } else if (options.float === "right") {
1065
+ const marginWidth = Math.max(columns - contentWidth - options.margin.right - getBorderWidth(options.borderStyle), 0);
1066
+ marginLeft = PAD.repeat(marginWidth);
1067
+ }
1068
+ let result = "";
1069
+ if (options.margin.top) {
1070
+ result += NEWLINE.repeat(options.margin.top);
1071
+ }
1072
+ if (options.borderStyle !== NONE || options.title) {
1073
+ result += colorizeBorder(marginLeft + chars.topLeft + (options.title ? makeTitle(options.title, chars.top.repeat(contentWidth), options.titleAlignment) : chars.top.repeat(contentWidth)) + chars.topRight) + NEWLINE;
1074
+ }
1075
+ const lines = content.split(NEWLINE);
1076
+ result += lines.map((line) => marginLeft + colorizeBorder(chars.left) + colorizeContent(line) + colorizeBorder(chars.right)).join(NEWLINE);
1077
+ if (options.borderStyle !== NONE) {
1078
+ result += NEWLINE + colorizeBorder(marginLeft + chars.bottomLeft + chars.bottom.repeat(contentWidth) + chars.bottomRight);
1079
+ }
1080
+ if (options.margin.bottom) {
1081
+ result += NEWLINE.repeat(options.margin.bottom);
1082
+ }
1083
+ return result;
1084
+ };
1085
+ var sanitizeOptions = (options) => {
1086
+ if (options.fullscreen && import_node_process.default?.stdout) {
1087
+ let newDimensions = [import_node_process.default.stdout.columns, import_node_process.default.stdout.rows];
1088
+ if (typeof options.fullscreen === "function") {
1089
+ newDimensions = options.fullscreen(...newDimensions);
1090
+ }
1091
+ options.width || (options.width = newDimensions[0]);
1092
+ options.height || (options.height = newDimensions[1]);
1093
+ }
1094
+ options.width && (options.width = Math.max(1, options.width - getBorderWidth(options.borderStyle)));
1095
+ options.height && (options.height = Math.max(1, options.height - getBorderWidth(options.borderStyle)));
1096
+ return options;
1097
+ };
1098
+ var formatTitle = (title, borderStyle) => borderStyle === NONE ? title : ` ${title} `;
1099
+ var determineDimensions = (text, options) => {
1100
+ options = sanitizeOptions(options);
1101
+ const widthOverride = options.width !== void 0;
1102
+ const columns = terminalColumns();
1103
+ const borderWidth = getBorderWidth(options.borderStyle);
1104
+ const maxWidth = columns - options.margin.left - options.margin.right - borderWidth;
1105
+ const widest = widestLine(wrapAnsi(text, columns - borderWidth, { hard: true, trim: false })) + options.padding.left + options.padding.right;
1106
+ if (options.title && widthOverride) {
1107
+ options.title = options.title.slice(0, Math.max(0, options.width - 2));
1108
+ options.title && (options.title = formatTitle(options.title, options.borderStyle));
1109
+ } else if (options.title) {
1110
+ options.title = options.title.slice(0, Math.max(0, maxWidth - 2));
1111
+ if (options.title) {
1112
+ options.title = formatTitle(options.title, options.borderStyle);
1113
+ if (stringWidth(options.title) > widest) {
1114
+ options.width = stringWidth(options.title);
1115
+ }
1116
+ }
1117
+ }
1118
+ options.width || (options.width = widest);
1119
+ if (!widthOverride) {
1120
+ if (options.margin.left && options.margin.right && options.width > maxWidth) {
1121
+ const spaceForMargins = columns - options.width - borderWidth;
1122
+ const multiplier = spaceForMargins / (options.margin.left + options.margin.right);
1123
+ options.margin.left = Math.max(0, Math.floor(options.margin.left * multiplier));
1124
+ options.margin.right = Math.max(0, Math.floor(options.margin.right * multiplier));
1125
+ }
1126
+ options.width = Math.min(options.width, columns - borderWidth - options.margin.left - options.margin.right);
1127
+ }
1128
+ if (options.width - (options.padding.left + options.padding.right) <= 0) {
1129
+ options.padding.left = 0;
1130
+ options.padding.right = 0;
1131
+ }
1132
+ if (options.height && options.height - (options.padding.top + options.padding.bottom) <= 0) {
1133
+ options.padding.top = 0;
1134
+ options.padding.bottom = 0;
1135
+ }
1136
+ return options;
1137
+ };
1138
+ var isHex = (color) => color.match(/^#(?:[0-f]{3}){1,2}$/i);
1139
+ var isColorValid = (color) => typeof color === "string" && (import_chalk.default[color] ?? isHex(color));
1140
+ var getColorFunction = (color) => isHex(color) ? import_chalk.default.hex(color) : import_chalk.default[color];
1141
+ var getBGColorFunction = (color) => isHex(color) ? import_chalk.default.bgHex(color) : import_chalk.default[camelCase(["bg", color])];
1142
+ function boxen(text, options) {
1143
+ options = {
1144
+ padding: 0,
1145
+ borderStyle: "single",
1146
+ dimBorder: false,
1147
+ textAlignment: "left",
1148
+ float: "left",
1149
+ titleAlignment: "left",
1150
+ ...options
1151
+ };
1152
+ if (options.align) {
1153
+ options.textAlignment = options.align;
1154
+ }
1155
+ if (options.borderColor && !isColorValid(options.borderColor)) {
1156
+ throw new Error(`${options.borderColor} is not a valid borderColor`);
1157
+ }
1158
+ if (options.backgroundColor && !isColorValid(options.backgroundColor)) {
1159
+ throw new Error(`${options.backgroundColor} is not a valid backgroundColor`);
1160
+ }
1161
+ options.padding = getObject(options.padding);
1162
+ options.margin = getObject(options.margin);
1163
+ options = determineDimensions(text, options);
1164
+ text = makeContentText(text, options);
1165
+ return boxContent(text, options.width, options);
1166
+ }
1167
+
1168
+ // ../../shared/check-for-package-update.ts
1169
+ var import_fs = __toESM(require("fs"));
43
1170
  var import_path = __toESM(require("path"));
1171
+ var getInstalledVersionOfPackage = (packageName) => {
1172
+ try {
1173
+ const PROJECT_DIR = process.env.PROJECT_DIR || process.cwd();
1174
+ const pkg = import_fs.default.readFileSync(import_path.default.join(PROJECT_DIR, "package.json"), "utf8");
1175
+ const json = JSON.parse(pkg);
1176
+ return json.dependencies[packageName];
1177
+ } catch (error) {
1178
+ return null;
1179
+ }
1180
+ };
1181
+ async function checkForPackageUpdate(packageName) {
1182
+ const installedVersion = getInstalledVersionOfPackage(packageName);
1183
+ if (!installedVersion || installedVersion === "latest") return;
1184
+ const pkg = { name: packageName, version: installedVersion };
1185
+ const updateNotifierModule = await import("update-notifier");
1186
+ const notifier = updateNotifierModule.default({ pkg, updateCheckInterval: 0, shouldNotifyInNpmScript: true });
1187
+ const info = await notifier.fetchInfo();
1188
+ if (info?.type !== "latest") {
1189
+ const message = `Package ${packageName} update available ${info.current} \u2192 ${info.latest}
1190
+ Run npm i ${packageName} to update`;
1191
+ console.log(
1192
+ boxen(message, {
1193
+ padding: 1,
1194
+ margin: 1,
1195
+ align: "center",
1196
+ borderColor: "yellow",
1197
+ borderStyle: {
1198
+ topLeft: " ",
1199
+ topRight: " ",
1200
+ bottomLeft: " ",
1201
+ bottomRight: " ",
1202
+ right: " ",
1203
+ top: "-",
1204
+ bottom: "-",
1205
+ left: " "
1206
+ }
1207
+ })
1208
+ );
1209
+ }
1210
+ }
1211
+
1212
+ // src/index.ts
44
1213
  var import_avro_schema_parser = require("@asyncapi/avro-schema-parser");
45
1214
 
46
1215
  // src/utils/schemas.ts
@@ -181,69 +1350,13 @@ var defaultMarkdown4 = (_document, channel) => {
181
1350
  };
182
1351
 
183
1352
  // src/checkLicense.ts
184
- var import_chalk = __toESM(require("chalk"));
185
-
186
- // package.json
187
- var package_default = {
188
- name: "@eventcatalog/generator-asyncapi",
189
- version: "3.0.1",
190
- description: "AsyncAPI generator for EventCatalog",
191
- scripts: {
192
- build: "tsup",
193
- test: "vitest",
194
- format: "prettier --write .",
195
- "format:diff": "prettier --list-different .",
196
- changeset: "changeset",
197
- release: "changeset publish"
198
- },
199
- publishConfig: {
200
- access: "public"
201
- },
202
- keywords: [],
203
- author: "",
204
- license: "ISC",
205
- devDependencies: {
206
- "@changesets/cli": "^2.27.9",
207
- "@types/fs-extra": "^11.0.4",
208
- "@types/js-yaml": "^4.0.9",
209
- "@types/lodash": "^4.17.7",
210
- "@types/minimist": "^1.2.5",
211
- "@types/node": "^20.16.1",
212
- prettier: "^3.3.3",
213
- tsup: "^8.1.0",
214
- typescript: "^5.5.3",
215
- vitest: "^2.0.2"
216
- },
217
- files: [
218
- "dist",
219
- "package.json"
220
- ],
221
- main: "./dist/index.js",
222
- module: "./dist/index.mjs",
223
- types: "./dist/index.d.ts",
224
- dependencies: {
225
- "@asyncapi/avro-schema-parser": "^3.0.24",
226
- "@asyncapi/parser": "^3.3.0",
227
- "@eventcatalog/sdk": "^1.4.8",
228
- chalk: "^4",
229
- "fs-extra": "^11.2.0",
230
- glob: "^11.0.0",
231
- "gray-matter": "^4.0.3",
232
- "js-yaml": "^4.1.0",
233
- lodash: "^4.17.21",
234
- minimist: "^1.2.8",
235
- slugify: "^1.6.6",
236
- zod: "^3.23.8"
237
- }
238
- };
239
-
240
- // src/checkLicense.ts
1353
+ var import_chalk2 = __toESM(require("chalk"));
241
1354
  var checkLicense_default = async (licenseKey) => {
242
1355
  const LICENSE_KEY = process.env.EVENTCATALOG_LICENSE_KEY_ASYNCAPI || licenseKey || null;
243
1356
  if (!LICENSE_KEY) {
244
- console.log(import_chalk.default.bgRed(`
1357
+ console.log(import_chalk2.default.bgRed(`
245
1358
  This plugin requires a license key to use`));
246
- console.log(import_chalk.default.redBright(`
1359
+ console.log(import_chalk2.default.redBright(`
247
1360
  Visit https://eventcatalog.cloud/ to get a 14 day trial or purchase a license`));
248
1361
  process.exit(1);
249
1362
  }
@@ -255,21 +1368,21 @@ Visit https://eventcatalog.cloud/ to get a 14 day trial or purchase a license`))
255
1368
  }
256
1369
  });
257
1370
  if (response.status !== 200) {
258
- console.log(import_chalk.default.bgRed(`
1371
+ console.log(import_chalk2.default.bgRed(`
259
1372
  Invalid license key`));
260
- console.log(import_chalk.default.redBright("Please check your plugin license key or purchase a license at https://eventcatalog.cloud/"));
1373
+ console.log(import_chalk2.default.redBright("Please check your plugin license key or purchase a license at https://eventcatalog.cloud/"));
261
1374
  process.exit(1);
262
1375
  }
263
1376
  if (response.status === 200) {
264
1377
  const data = await response.json();
265
1378
  if (package_default.name !== data.plugin) {
266
- console.log(import_chalk.default.bgRed(`
1379
+ console.log(import_chalk2.default.bgRed(`
267
1380
  Invalid license key for this plugin`));
268
- console.log(import_chalk.default.redBright("Please check your plugin license key or purchase a license at https://eventcatalog.cloud/"));
1381
+ console.log(import_chalk2.default.redBright("Please check your plugin license key or purchase a license at https://eventcatalog.cloud/"));
269
1382
  process.exit(1);
270
1383
  }
271
1384
  if (data.is_trial) {
272
- console.log(import_chalk.default.bgBlue(`
1385
+ console.log(import_chalk2.default.bgBlue(`
273
1386
  You are using a trial license for this plugin`));
274
1387
  }
275
1388
  }
@@ -319,6 +1432,7 @@ var index_default = async (config, options) => {
319
1432
  throw new Error("Please provide catalog url (env variable PROJECT_DIR)");
320
1433
  }
321
1434
  await checkLicense_default(options.licenseKey);
1435
+ await checkForPackageUpdate(package_default.name);
322
1436
  const {
323
1437
  writeService,
324
1438
  writeEvent,
@@ -370,20 +1484,20 @@ var index_default = async (config, options) => {
370
1484
  };
371
1485
  validateOptions(options);
372
1486
  const { services, saveParsedSpecFile = false, parseSchemas = true, parseChannels = false } = options;
373
- console.log(import_chalk2.default.green(`Processing ${services.length} AsyncAPI files...`));
1487
+ console.log(import_chalk3.default.green(`Processing ${services.length} AsyncAPI files...`));
374
1488
  for (const service of services) {
375
- console.log(import_chalk2.default.gray(`Processing ${service.path}`));
1489
+ console.log(import_chalk3.default.gray(`Processing ${service.path}`));
376
1490
  const { document, diagnostics } = service.path.startsWith("http") ? await (0, import_parser.fromURL)(parser, service.path).parse({
377
1491
  parseSchemas
378
1492
  }) : await (0, import_parser.fromFile)(parser, service.path).parse({
379
1493
  parseSchemas
380
1494
  });
381
1495
  if (!document) {
382
- console.log(import_chalk2.default.red("Failed to parse AsyncAPI file"));
1496
+ console.log(import_chalk3.default.red("Failed to parse AsyncAPI file"));
383
1497
  if (options.debug || cliArgs.debug) {
384
1498
  console.log(diagnostics);
385
1499
  } else {
386
- console.log(import_chalk2.default.red("Run with debug option in the generator to see diagnostics"));
1500
+ console.log(import_chalk3.default.red("Run with debug option in the generator to see diagnostics"));
387
1501
  }
388
1502
  continue;
389
1503
  }
@@ -400,7 +1514,7 @@ var index_default = async (config, options) => {
400
1514
  let serviceSpecifications = {};
401
1515
  let serviceSpecificationsFiles = [];
402
1516
  let serviceMarkdown = defaultMarkdown2(document);
403
- let servicePath = options.domain ? import_path.default.join("../", "domains", options.domain.id, "services", service.id) : import_path.default.join("../", "services", service.id);
1517
+ let servicePath = options.domain ? import_path2.default.join("../", "domains", options.domain.id, "services", service.id) : import_path2.default.join("../", "services", service.id);
404
1518
  if (options.writeFilesToRoot) {
405
1519
  servicePath = service.id;
406
1520
  }
@@ -408,11 +1522,11 @@ var index_default = async (config, options) => {
408
1522
  const { id: domainId, name: domainName, version: domainVersion, owners: domainOwners } = options.domain;
409
1523
  const domain = await getDomain(options.domain.id, domainVersion || "latest");
410
1524
  const currentDomain = await getDomain(options.domain.id, "latest");
411
- console.log(import_chalk2.default.blue(`
1525
+ console.log(import_chalk3.default.blue(`
412
1526
  Processing domain: ${domainName} (v${domainVersion})`));
413
1527
  if (currentDomain && currentDomain.version !== domainVersion) {
414
1528
  await versionDomain(domainId);
415
- console.log(import_chalk2.default.cyan(` - Versioned previous domain (v${currentDomain.version})`));
1529
+ console.log(import_chalk3.default.cyan(` - Versioned previous domain (v${currentDomain.version})`));
416
1530
  }
417
1531
  if (!domain || domain && domain.version !== domainVersion) {
418
1532
  await writeDomain({
@@ -423,10 +1537,10 @@ Processing domain: ${domainName} (v${domainVersion})`));
423
1537
  ...domainOwners && { owners: domainOwners }
424
1538
  // services: [{ id: serviceId, version: version }],
425
1539
  });
426
- console.log(import_chalk2.default.cyan(` - Domain (v${domainVersion}) created`));
1540
+ console.log(import_chalk3.default.cyan(` - Domain (v${domainVersion}) created`));
427
1541
  }
428
1542
  if (currentDomain && currentDomain.version === domainVersion) {
429
- console.log(import_chalk2.default.yellow(` - Domain (v${domainVersion}) already exists, skipped creation...`));
1543
+ console.log(import_chalk3.default.yellow(` - Domain (v${domainVersion}) already exists, skipped creation...`));
430
1544
  }
431
1545
  await addServiceToDomain(domainId, { id: serviceId, version }, domainVersion);
432
1546
  }
@@ -438,7 +1552,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
438
1552
  const protocols = getChannelProtocols(channel);
439
1553
  const channelVersion = channel.extensions().get("x-eventcatalog-channel-version")?.value() || version;
440
1554
  let channelMarkdown = defaultMarkdown4(document, channel);
441
- console.log(import_chalk2.default.blue(`Processing channel: ${channelId} (v${channelVersion})`));
1555
+ console.log(import_chalk3.default.blue(`Processing channel: ${channelId} (v${channelVersion})`));
442
1556
  const paramsForCatalog = Object.keys(params).reduce(
443
1557
  (acc, key) => {
444
1558
  const param = params[key];
@@ -456,7 +1570,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
456
1570
  channelMarkdown = catalogedChannel.markdown;
457
1571
  if (catalogedChannel.version !== channelVersion) {
458
1572
  await versionChannel(channelId);
459
- console.log(import_chalk2.default.cyan(` - Versioned previous channel: ${channelId} (v${channelVersion})`));
1573
+ console.log(import_chalk3.default.cyan(` - Versioned previous channel: ${channelId} (v${channelVersion})`));
460
1574
  }
461
1575
  }
462
1576
  await writeChannel(
@@ -472,7 +1586,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
472
1586
  },
473
1587
  { override: true }
474
1588
  );
475
- console.log(import_chalk2.default.cyan(` - Message ${channelId} (v${version}) created`));
1589
+ console.log(import_chalk3.default.cyan(` - Message ${channelId} (v${version}) created`));
476
1590
  }
477
1591
  }
478
1592
  for (const operation of operations) {
@@ -495,7 +1609,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
495
1609
  } = MESSAGE_OPERATIONS[eventType];
496
1610
  let messageMarkdown = defaultMarkdown(document, message);
497
1611
  const badges = message.tags().all() || [];
498
- console.log(import_chalk2.default.blue(`Processing message: ${getMessageName(message)} (v${messageVersion})`));
1612
+ console.log(import_chalk3.default.blue(`Processing message: ${getMessageName(message)} (v${messageVersion})`));
499
1613
  let messagePath = (0, import_node_path.join)(servicePath, folder, message.id());
500
1614
  if (options.writeFilesToRoot) {
501
1615
  messagePath = message.id();
@@ -506,7 +1620,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
506
1620
  messageMarkdown = catalogedMessage.markdown;
507
1621
  if (catalogedMessage.version !== messageVersion) {
508
1622
  await versionMessage(messageId);
509
- console.log(import_chalk2.default.cyan(` - Versioned previous message: (v${catalogedMessage.version})`));
1623
+ console.log(import_chalk3.default.cyan(` - Versioned previous message: (v${catalogedMessage.version})`));
510
1624
  }
511
1625
  }
512
1626
  const channelsForMessage = parseChannels ? getChannelsForMessage(message, channels, document) : [];
@@ -527,7 +1641,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
527
1641
  path: messagePath
528
1642
  }
529
1643
  );
530
- console.log(import_chalk2.default.cyan(` - Message (v${messageVersion}) created`));
1644
+ console.log(import_chalk3.default.cyan(` - Message (v${messageVersion}) created`));
531
1645
  if (messageHasSchema(message)) {
532
1646
  const schema = message.payload()?.extensions()?.get("x-parser-original-payload")?.json() || message.payload()?.json();
533
1647
  await addSchemaToMessage(
@@ -538,24 +1652,24 @@ Processing domain: ${domainName} (v${domainVersion})`));
538
1652
  },
539
1653
  messageVersion
540
1654
  );
541
- console.log(import_chalk2.default.cyan(` - Schema added to message (v${messageVersion})`));
1655
+ console.log(import_chalk3.default.cyan(` - Schema added to message (v${messageVersion})`));
542
1656
  }
543
1657
  } else {
544
- console.log(import_chalk2.default.yellow(` - Skipping external message: ${getMessageName(message)}(v${messageVersion})`));
1658
+ console.log(import_chalk3.default.yellow(` - Skipping external message: ${getMessageName(message)}(v${messageVersion})`));
545
1659
  }
546
1660
  if (isSent) sends.push({ id: messageId, version: messageVersion });
547
1661
  if (isReceived) receives.push({ id: messageId, version: messageVersion });
548
1662
  }
549
1663
  }
550
1664
  const latestServiceInCatalog = await getService(serviceId, "latest");
551
- console.log(import_chalk2.default.blue(`Processing service: ${serviceId} (v${version})`));
1665
+ console.log(import_chalk3.default.blue(`Processing service: ${serviceId} (v${version})`));
552
1666
  if (latestServiceInCatalog) {
553
1667
  serviceMarkdown = latestServiceInCatalog.markdown;
554
1668
  owners = latestServiceInCatalog.owners || owners;
555
1669
  repository = latestServiceInCatalog.repository || null;
556
1670
  if (latestServiceInCatalog.version !== version) {
557
1671
  await versionService(serviceId);
558
- console.log(import_chalk2.default.cyan(` - Versioned previous service (v${latestServiceInCatalog.version})`));
1672
+ console.log(import_chalk3.default.cyan(` - Versioned previous service (v${latestServiceInCatalog.version})`));
559
1673
  }
560
1674
  if (latestServiceInCatalog.version === version) {
561
1675
  serviceMarkdown = latestServiceInCatalog.markdown;
@@ -565,7 +1679,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
565
1679
  serviceSpecificationsFiles = await getSpecificationFilesForService(serviceId, version);
566
1680
  }
567
1681
  }
568
- const fileName = import_path.default.basename(service.path);
1682
+ const fileName = import_path2.default.basename(service.path);
569
1683
  await writeService(
570
1684
  {
571
1685
  id: serviceId,
@@ -594,7 +1708,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
594
1708
  ...serviceSpecificationsFiles,
595
1709
  {
596
1710
  content: saveParsedSpecFile ? getParsedSpecFile(service, document) : await getRawSpecFile(service),
597
- fileName: import_path.default.basename(service.path) || "asyncapi.yml"
1711
+ fileName: import_path2.default.basename(service.path) || "asyncapi.yml"
598
1712
  }
599
1713
  ];
600
1714
  for (const specFile of specFiles) {
@@ -607,8 +1721,8 @@ Processing domain: ${domainName} (v${domainVersion})`));
607
1721
  version
608
1722
  );
609
1723
  }
610
- console.log(import_chalk2.default.cyan(` - Service (v${version}) created`));
611
- console.log(import_chalk2.default.green(`
1724
+ console.log(import_chalk3.default.cyan(` - Service (v${version}) created`));
1725
+ console.log(import_chalk3.default.green(`
612
1726
  Finished generating event catalog for AsyncAPI ${serviceId} (v${version})`));
613
1727
  }
614
1728
  };
@@ -622,7 +1736,7 @@ var getRawSpecFile = async (service) => {
622
1736
  const response = await fetch(service.path);
623
1737
  return response.text();
624
1738
  } catch (error) {
625
- console.log(import_chalk2.default.red(`
1739
+ console.log(import_chalk3.default.red(`
626
1740
  Failed to request AsyncAPI file from ${service.path}`));
627
1741
  return "";
628
1742
  }