@sap/ux-ui5-tooling 1.19.6 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -13983,50 +13983,64 @@ var require_common = __commonJS({
13983
13983
  createDebug.namespaces = namespaces;
13984
13984
  createDebug.names = [];
13985
13985
  createDebug.skips = [];
13986
- let i;
13987
- const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
13988
- const len = split.length;
13989
- for (i = 0; i < len; i++) {
13990
- if (!split[i]) {
13991
- continue;
13986
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
13987
+ for (const ns of split) {
13988
+ if (ns[0] === "-") {
13989
+ createDebug.skips.push(ns.slice(1));
13990
+ } else {
13991
+ createDebug.names.push(ns);
13992
13992
  }
13993
- namespaces = split[i].replace(/\*/g, ".*?");
13994
- if (namespaces[0] === "-") {
13995
- createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
13993
+ }
13994
+ }
13995
+ function matchesTemplate(search, template) {
13996
+ let searchIndex = 0;
13997
+ let templateIndex = 0;
13998
+ let starIndex = -1;
13999
+ let matchIndex = 0;
14000
+ while (searchIndex < search.length) {
14001
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
14002
+ if (template[templateIndex] === "*") {
14003
+ starIndex = templateIndex;
14004
+ matchIndex = searchIndex;
14005
+ templateIndex++;
14006
+ } else {
14007
+ searchIndex++;
14008
+ templateIndex++;
14009
+ }
14010
+ } else if (starIndex !== -1) {
14011
+ templateIndex = starIndex + 1;
14012
+ matchIndex++;
14013
+ searchIndex = matchIndex;
13996
14014
  } else {
13997
- createDebug.names.push(new RegExp("^" + namespaces + "$"));
14015
+ return false;
13998
14016
  }
13999
14017
  }
14018
+ while (templateIndex < template.length && template[templateIndex] === "*") {
14019
+ templateIndex++;
14020
+ }
14021
+ return templateIndex === template.length;
14000
14022
  }
14001
14023
  function disable2() {
14002
14024
  const namespaces = [
14003
- ...createDebug.names.map(toNamespace),
14004
- ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
14025
+ ...createDebug.names,
14026
+ ...createDebug.skips.map((namespace) => "-" + namespace)
14005
14027
  ].join(",");
14006
14028
  createDebug.enable("");
14007
14029
  return namespaces;
14008
14030
  }
14009
14031
  function enabled2(name2) {
14010
- if (name2[name2.length - 1] === "*") {
14011
- return true;
14012
- }
14013
- let i;
14014
- let len;
14015
- for (i = 0, len = createDebug.skips.length; i < len; i++) {
14016
- if (createDebug.skips[i].test(name2)) {
14032
+ for (const skip of createDebug.skips) {
14033
+ if (matchesTemplate(name2, skip)) {
14017
14034
  return false;
14018
14035
  }
14019
14036
  }
14020
- for (i = 0, len = createDebug.names.length; i < len; i++) {
14021
- if (createDebug.names[i].test(name2)) {
14037
+ for (const ns of createDebug.names) {
14038
+ if (matchesTemplate(name2, ns)) {
14022
14039
  return true;
14023
14040
  }
14024
14041
  }
14025
14042
  return false;
14026
14043
  }
14027
- function toNamespace(regexp) {
14028
- return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
14029
- }
14030
14044
  function coerce(val2) {
14031
14045
  if (val2 instanceof Error) {
14032
14046
  return val2.stack || val2.message;
@@ -14187,7 +14201,7 @@ var require_browser = __commonJS({
14187
14201
  function load() {
14188
14202
  let r;
14189
14203
  try {
14190
- r = exports2.storage.getItem("debug");
14204
+ r = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
14191
14205
  } catch (error) {
14192
14206
  }
14193
14207
  if (!r && typeof process !== "undefined" && "env" in process) {
@@ -21961,12 +21975,14 @@ var require_bom_handling = __commonJS({
21961
21975
  }
21962
21976
  StripBOMWrapper.prototype.write = function(buf) {
21963
21977
  var res = this.decoder.write(buf);
21964
- if (this.pass || !res)
21978
+ if (this.pass || !res) {
21965
21979
  return res;
21980
+ }
21966
21981
  if (res[0] === BOMChar) {
21967
21982
  res = res.slice(1);
21968
- if (typeof this.options.stripBOM === "function")
21983
+ if (typeof this.options.stripBOM === "function") {
21969
21984
  this.options.stripBOM();
21985
+ }
21970
21986
  }
21971
21987
  this.pass = true;
21972
21988
  return res;
@@ -21977,6 +21993,22 @@ var require_bom_handling = __commonJS({
21977
21993
  }
21978
21994
  });
21979
21995
 
21996
+ // ../../node_modules/iconv-lite/lib/helpers/merge-exports.js
21997
+ var require_merge_exports = __commonJS({
21998
+ "../../node_modules/iconv-lite/lib/helpers/merge-exports.js"(exports2, module2) {
21999
+ "use strict";
22000
+ var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
22001
+ function mergeModules(target, module3) {
22002
+ for (var key in module3) {
22003
+ if (hasOwn(module3, key)) {
22004
+ target[key] = module3[key];
22005
+ }
22006
+ }
22007
+ }
22008
+ module2.exports = mergeModules;
22009
+ }
22010
+ });
22011
+
21980
22012
  // ../../node_modules/iconv-lite/encodings/internal.js
21981
22013
  var require_internal = __commonJS({
21982
22014
  "../../node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
@@ -21998,9 +22030,11 @@ var require_internal = __commonJS({
21998
22030
  function InternalCodec(codecOptions, iconv) {
21999
22031
  this.enc = codecOptions.encodingName;
22000
22032
  this.bomAware = codecOptions.bomAware;
22001
- if (this.enc === "base64")
22033
+ if (this.enc === "base64") {
22002
22034
  this.encoder = InternalEncoderBase64;
22003
- else if (this.enc === "cesu8") {
22035
+ } else if (this.enc === "utf8") {
22036
+ this.encoder = InternalEncoderUtf8;
22037
+ } else if (this.enc === "cesu8") {
22004
22038
  this.enc = "utf8";
22005
22039
  this.encoder = InternalEncoderCesu8;
22006
22040
  if (Buffer2.from("eda0bdedb2a9", "hex").toString() !== "\u{1F4A9}") {
@@ -22012,9 +22046,6 @@ var require_internal = __commonJS({
22012
22046
  InternalCodec.prototype.encoder = InternalEncoder;
22013
22047
  InternalCodec.prototype.decoder = InternalDecoder;
22014
22048
  var StringDecoder = require("string_decoder").StringDecoder;
22015
- if (!StringDecoder.prototype.end)
22016
- StringDecoder.prototype.end = function() {
22017
- };
22018
22049
  function InternalDecoder(options3, codec) {
22019
22050
  this.decoder = new StringDecoder(codec.enc);
22020
22051
  }
@@ -22051,12 +22082,13 @@ var require_internal = __commonJS({
22051
22082
  function InternalEncoderCesu8(options3, codec) {
22052
22083
  }
22053
22084
  InternalEncoderCesu8.prototype.write = function(str) {
22054
- var buf = Buffer2.alloc(str.length * 3), bufIdx = 0;
22085
+ var buf = Buffer2.alloc(str.length * 3);
22086
+ var bufIdx = 0;
22055
22087
  for (var i = 0; i < str.length; i++) {
22056
22088
  var charCode = str.charCodeAt(i);
22057
- if (charCode < 128)
22089
+ if (charCode < 128) {
22058
22090
  buf[bufIdx++] = charCode;
22059
- else if (charCode < 2048) {
22091
+ } else if (charCode < 2048) {
22060
22092
  buf[bufIdx++] = 192 + (charCode >>> 6);
22061
22093
  buf[bufIdx++] = 128 + (charCode & 63);
22062
22094
  } else {
@@ -22076,7 +22108,10 @@ var require_internal = __commonJS({
22076
22108
  this.defaultCharUnicode = codec.defaultCharUnicode;
22077
22109
  }
22078
22110
  InternalDecoderCesu8.prototype.write = function(buf) {
22079
- var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes, res = "";
22111
+ var acc = this.acc;
22112
+ var contBytes = this.contBytes;
22113
+ var accBytes = this.accBytes;
22114
+ var res = "";
22080
22115
  for (var i = 0; i < buf.length; i++) {
22081
22116
  var curByte = buf[i];
22082
22117
  if ((curByte & 192) !== 128) {
@@ -22103,12 +22138,13 @@ var require_internal = __commonJS({
22103
22138
  contBytes--;
22104
22139
  accBytes++;
22105
22140
  if (contBytes === 0) {
22106
- if (accBytes === 2 && acc < 128 && acc > 0)
22141
+ if (accBytes === 2 && acc < 128 && acc > 0) {
22107
22142
  res += this.defaultCharUnicode;
22108
- else if (accBytes === 3 && acc < 2048)
22143
+ } else if (accBytes === 3 && acc < 2048) {
22109
22144
  res += this.defaultCharUnicode;
22110
- else
22145
+ } else {
22111
22146
  res += String.fromCharCode(acc);
22147
+ }
22112
22148
  }
22113
22149
  } else {
22114
22150
  res += this.defaultCharUnicode;
@@ -22122,10 +22158,35 @@ var require_internal = __commonJS({
22122
22158
  };
22123
22159
  InternalDecoderCesu8.prototype.end = function() {
22124
22160
  var res = 0;
22125
- if (this.contBytes > 0)
22161
+ if (this.contBytes > 0) {
22126
22162
  res += this.defaultCharUnicode;
22163
+ }
22127
22164
  return res;
22128
22165
  };
22166
+ function InternalEncoderUtf8(options3, codec) {
22167
+ this.highSurrogate = "";
22168
+ }
22169
+ InternalEncoderUtf8.prototype.write = function(str) {
22170
+ if (this.highSurrogate) {
22171
+ str = this.highSurrogate + str;
22172
+ this.highSurrogate = "";
22173
+ }
22174
+ if (str.length > 0) {
22175
+ var charCode = str.charCodeAt(str.length - 1);
22176
+ if (charCode >= 55296 && charCode < 56320) {
22177
+ this.highSurrogate = str[str.length - 1];
22178
+ str = str.slice(0, str.length - 1);
22179
+ }
22180
+ }
22181
+ return Buffer2.from(str, this.enc);
22182
+ };
22183
+ InternalEncoderUtf8.prototype.end = function() {
22184
+ if (this.highSurrogate) {
22185
+ var str = this.highSurrogate;
22186
+ this.highSurrogate = "";
22187
+ return Buffer2.from(str, this.enc);
22188
+ }
22189
+ };
22129
22190
  }
22130
22191
  });
22131
22192
 
@@ -22157,8 +22218,8 @@ var require_utf32 = __commonJS({
22157
22218
  var offset = 0;
22158
22219
  for (var i = 0; i < src.length; i += 2) {
22159
22220
  var code = src.readUInt16LE(i);
22160
- var isHighSurrogate = 55296 <= code && code < 56320;
22161
- var isLowSurrogate = 56320 <= code && code < 57344;
22221
+ var isHighSurrogate = code >= 55296 && code < 56320;
22222
+ var isLowSurrogate = code >= 56320 && code < 57344;
22162
22223
  if (this.highSurrogate) {
22163
22224
  if (isHighSurrogate || !isLowSurrogate) {
22164
22225
  write32.call(dst, this.highSurrogate, offset);
@@ -22171,26 +22232,29 @@ var require_utf32 = __commonJS({
22171
22232
  continue;
22172
22233
  }
22173
22234
  }
22174
- if (isHighSurrogate)
22235
+ if (isHighSurrogate) {
22175
22236
  this.highSurrogate = code;
22176
- else {
22237
+ } else {
22177
22238
  write32.call(dst, code, offset);
22178
22239
  offset += 4;
22179
22240
  this.highSurrogate = 0;
22180
22241
  }
22181
22242
  }
22182
- if (offset < dst.length)
22243
+ if (offset < dst.length) {
22183
22244
  dst = dst.slice(0, offset);
22245
+ }
22184
22246
  return dst;
22185
22247
  };
22186
22248
  Utf32Encoder.prototype.end = function() {
22187
- if (!this.highSurrogate)
22249
+ if (!this.highSurrogate) {
22188
22250
  return;
22251
+ }
22189
22252
  var buf = Buffer2.alloc(4);
22190
- if (this.isLE)
22253
+ if (this.isLE) {
22191
22254
  buf.writeUInt32LE(this.highSurrogate, 0);
22192
- else
22255
+ } else {
22193
22256
  buf.writeUInt32BE(this.highSurrogate, 0);
22257
+ }
22194
22258
  this.highSurrogate = 0;
22195
22259
  return buf;
22196
22260
  };
@@ -22200,8 +22264,9 @@ var require_utf32 = __commonJS({
22200
22264
  this.overflow = [];
22201
22265
  }
22202
22266
  Utf32Decoder.prototype.write = function(src) {
22203
- if (src.length === 0)
22267
+ if (src.length === 0) {
22204
22268
  return "";
22269
+ }
22205
22270
  var i = 0;
22206
22271
  var codepoint = 0;
22207
22272
  var dst = Buffer2.alloc(src.length + 4);
@@ -22210,8 +22275,9 @@ var require_utf32 = __commonJS({
22210
22275
  var overflow = this.overflow;
22211
22276
  var badChar = this.badChar;
22212
22277
  if (overflow.length > 0) {
22213
- for (; i < src.length && overflow.length < 4; i++)
22278
+ for (; i < src.length && overflow.length < 4; i++) {
22214
22279
  overflow.push(src[i]);
22280
+ }
22215
22281
  if (overflow.length === 4) {
22216
22282
  if (isLE) {
22217
22283
  codepoint = overflow[i] | overflow[i + 1] << 8 | overflow[i + 2] << 16 | overflow[i + 3] << 24;
@@ -22262,8 +22328,9 @@ var require_utf32 = __commonJS({
22262
22328
  Utf32AutoCodec.prototype.decoder = Utf32AutoDecoder;
22263
22329
  function Utf32AutoEncoder(options3, codec) {
22264
22330
  options3 = options3 || {};
22265
- if (options3.addBOM === void 0)
22331
+ if (options3.addBOM === void 0) {
22266
22332
  options3.addBOM = true;
22333
+ }
22267
22334
  this.encoder = codec.iconv.getEncoder(options3.defaultEncoding || "utf-32le", options3);
22268
22335
  }
22269
22336
  Utf32AutoEncoder.prototype.write = function(str) {
@@ -22283,13 +22350,15 @@ var require_utf32 = __commonJS({
22283
22350
  if (!this.decoder) {
22284
22351
  this.initialBufs.push(buf);
22285
22352
  this.initialBufsLen += buf.length;
22286
- if (this.initialBufsLen < 32)
22353
+ if (this.initialBufsLen < 32) {
22287
22354
  return "";
22355
+ }
22288
22356
  var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
22289
22357
  this.decoder = this.iconv.getDecoder(encoding, this.options);
22290
22358
  var resStr = "";
22291
- for (var i = 0; i < this.initialBufs.length; i++)
22359
+ for (var i = 0; i < this.initialBufs.length; i++) {
22292
22360
  resStr += this.decoder.write(this.initialBufs[i]);
22361
+ }
22293
22362
  this.initialBufs.length = this.initialBufsLen = 0;
22294
22363
  return resStr;
22295
22364
  }
@@ -22300,11 +22369,13 @@ var require_utf32 = __commonJS({
22300
22369
  var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
22301
22370
  this.decoder = this.iconv.getDecoder(encoding, this.options);
22302
22371
  var resStr = "";
22303
- for (var i = 0; i < this.initialBufs.length; i++)
22372
+ for (var i = 0; i < this.initialBufs.length; i++) {
22304
22373
  resStr += this.decoder.write(this.initialBufs[i]);
22374
+ }
22305
22375
  var trail = this.decoder.end();
22306
- if (trail)
22376
+ if (trail) {
22307
22377
  resStr += trail;
22378
+ }
22308
22379
  this.initialBufs.length = this.initialBufsLen = 0;
22309
22380
  return resStr;
22310
22381
  }
@@ -22313,9 +22384,11 @@ var require_utf32 = __commonJS({
22313
22384
  function detectEncoding(bufs, defaultEncoding) {
22314
22385
  var b = [];
22315
22386
  var charsProcessed = 0;
22316
- var invalidLE = 0, invalidBE = 0;
22317
- var bmpCharsLE = 0, bmpCharsBE = 0;
22318
- outer_loop:
22387
+ var invalidLE = 0;
22388
+ var invalidBE = 0;
22389
+ var bmpCharsLE = 0;
22390
+ var bmpCharsBE = 0;
22391
+ outerLoop:
22319
22392
  for (var i = 0; i < bufs.length; i++) {
22320
22393
  var buf = bufs[i];
22321
22394
  for (var j = 0; j < buf.length; j++) {
@@ -22336,7 +22409,7 @@ var require_utf32 = __commonJS({
22336
22409
  b.length = 0;
22337
22410
  charsProcessed++;
22338
22411
  if (charsProcessed >= 100) {
22339
- break outer_loop;
22412
+ break outerLoop;
22340
22413
  }
22341
22414
  }
22342
22415
  }
@@ -22376,9 +22449,12 @@ var require_utf16 = __commonJS({
22376
22449
  this.overflowByte = -1;
22377
22450
  }
22378
22451
  Utf16BEDecoder.prototype.write = function(buf) {
22379
- if (buf.length == 0)
22452
+ if (buf.length == 0) {
22380
22453
  return "";
22381
- var buf2 = Buffer2.alloc(buf.length + 1), i = 0, j = 0;
22454
+ }
22455
+ var buf2 = Buffer2.alloc(buf.length + 1);
22456
+ var i = 0;
22457
+ var j = 0;
22382
22458
  if (this.overflowByte !== -1) {
22383
22459
  buf2[0] = buf[0];
22384
22460
  buf2[1] = this.overflowByte;
@@ -22403,8 +22479,9 @@ var require_utf16 = __commonJS({
22403
22479
  Utf16Codec.prototype.decoder = Utf16Decoder;
22404
22480
  function Utf16Encoder(options3, codec) {
22405
22481
  options3 = options3 || {};
22406
- if (options3.addBOM === void 0)
22482
+ if (options3.addBOM === void 0) {
22407
22483
  options3.addBOM = true;
22484
+ }
22408
22485
  this.encoder = codec.iconv.getEncoder("utf-16le", options3);
22409
22486
  }
22410
22487
  Utf16Encoder.prototype.write = function(str) {
@@ -22424,13 +22501,15 @@ var require_utf16 = __commonJS({
22424
22501
  if (!this.decoder) {
22425
22502
  this.initialBufs.push(buf);
22426
22503
  this.initialBufsLen += buf.length;
22427
- if (this.initialBufsLen < 16)
22504
+ if (this.initialBufsLen < 16) {
22428
22505
  return "";
22506
+ }
22429
22507
  var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
22430
22508
  this.decoder = this.iconv.getDecoder(encoding, this.options);
22431
22509
  var resStr = "";
22432
- for (var i = 0; i < this.initialBufs.length; i++)
22510
+ for (var i = 0; i < this.initialBufs.length; i++) {
22433
22511
  resStr += this.decoder.write(this.initialBufs[i]);
22512
+ }
22434
22513
  this.initialBufs.length = this.initialBufsLen = 0;
22435
22514
  return resStr;
22436
22515
  }
@@ -22441,11 +22520,13 @@ var require_utf16 = __commonJS({
22441
22520
  var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
22442
22521
  this.decoder = this.iconv.getDecoder(encoding, this.options);
22443
22522
  var resStr = "";
22444
- for (var i = 0; i < this.initialBufs.length; i++)
22523
+ for (var i = 0; i < this.initialBufs.length; i++) {
22445
22524
  resStr += this.decoder.write(this.initialBufs[i]);
22525
+ }
22446
22526
  var trail = this.decoder.end();
22447
- if (trail)
22527
+ if (trail) {
22448
22528
  resStr += trail;
22529
+ }
22449
22530
  this.initialBufs.length = this.initialBufsLen = 0;
22450
22531
  return resStr;
22451
22532
  }
@@ -22454,8 +22535,9 @@ var require_utf16 = __commonJS({
22454
22535
  function detectEncoding(bufs, defaultEncoding) {
22455
22536
  var b = [];
22456
22537
  var charsProcessed = 0;
22457
- var asciiCharsLE = 0, asciiCharsBE = 0;
22458
- outer_loop:
22538
+ var asciiCharsLE = 0;
22539
+ var asciiCharsBE = 0;
22540
+ outerLoop:
22459
22541
  for (var i = 0; i < bufs.length; i++) {
22460
22542
  var buf = bufs[i];
22461
22543
  for (var j = 0; j < buf.length; j++) {
@@ -22470,7 +22552,7 @@ var require_utf16 = __commonJS({
22470
22552
  b.length = 0;
22471
22553
  charsProcessed++;
22472
22554
  if (charsProcessed >= 100) {
22473
- break outer_loop;
22555
+ break outerLoop;
22474
22556
  }
22475
22557
  }
22476
22558
  }
@@ -22513,14 +22595,18 @@ var require_utf7 = __commonJS({
22513
22595
  }
22514
22596
  var base64Regex = /[A-Za-z0-9\/+]/;
22515
22597
  var base64Chars = [];
22516
- for (i = 0; i < 256; i++)
22598
+ for (i = 0; i < 256; i++) {
22517
22599
  base64Chars[i] = base64Regex.test(String.fromCharCode(i));
22600
+ }
22518
22601
  var i;
22519
22602
  var plusChar = "+".charCodeAt(0);
22520
22603
  var minusChar = "-".charCodeAt(0);
22521
22604
  var andChar = "&".charCodeAt(0);
22522
22605
  Utf7Decoder.prototype.write = function(buf) {
22523
- var res = "", lastI = 0, inBase64 = this.inBase64, base64Accum = this.base64Accum;
22606
+ var res = "";
22607
+ var lastI = 0;
22608
+ var inBase64 = this.inBase64;
22609
+ var base64Accum = this.base64Accum;
22524
22610
  for (var i2 = 0; i2 < buf.length; i2++) {
22525
22611
  if (!inBase64) {
22526
22612
  if (buf[i2] == plusChar) {
@@ -22536,8 +22622,9 @@ var require_utf7 = __commonJS({
22536
22622
  var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i2), "ascii");
22537
22623
  res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
22538
22624
  }
22539
- if (buf[i2] != minusChar)
22625
+ if (buf[i2] != minusChar) {
22540
22626
  i2--;
22627
+ }
22541
22628
  lastI = i2 + 1;
22542
22629
  inBase64 = false;
22543
22630
  base64Accum = "";
@@ -22559,8 +22646,9 @@ var require_utf7 = __commonJS({
22559
22646
  };
22560
22647
  Utf7Decoder.prototype.end = function() {
22561
22648
  var res = "";
22562
- if (this.inBase64 && this.base64Accum.length > 0)
22649
+ if (this.inBase64 && this.base64Accum.length > 0) {
22563
22650
  res = this.iconv.decode(Buffer2.from(this.base64Accum, "base64"), "utf16-be");
22651
+ }
22564
22652
  this.inBase64 = false;
22565
22653
  this.base64Accum = "";
22566
22654
  return res;
@@ -22579,10 +22667,14 @@ var require_utf7 = __commonJS({
22579
22667
  this.base64AccumIdx = 0;
22580
22668
  }
22581
22669
  Utf7IMAPEncoder.prototype.write = function(str) {
22582
- var inBase64 = this.inBase64, base64Accum = this.base64Accum, base64AccumIdx = this.base64AccumIdx, buf = Buffer2.alloc(str.length * 5 + 10), bufIdx = 0;
22670
+ var inBase64 = this.inBase64;
22671
+ var base64Accum = this.base64Accum;
22672
+ var base64AccumIdx = this.base64AccumIdx;
22673
+ var buf = Buffer2.alloc(str.length * 5 + 10);
22674
+ var bufIdx = 0;
22583
22675
  for (var i2 = 0; i2 < str.length; i2++) {
22584
22676
  var uChar = str.charCodeAt(i2);
22585
- if (32 <= uChar && uChar <= 126) {
22677
+ if (uChar >= 32 && uChar <= 126) {
22586
22678
  if (inBase64) {
22587
22679
  if (base64AccumIdx > 0) {
22588
22680
  bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
@@ -22593,8 +22685,9 @@ var require_utf7 = __commonJS({
22593
22685
  }
22594
22686
  if (!inBase64) {
22595
22687
  buf[bufIdx++] = uChar;
22596
- if (uChar === andChar)
22688
+ if (uChar === andChar) {
22597
22689
  buf[bufIdx++] = minusChar;
22690
+ }
22598
22691
  }
22599
22692
  } else {
22600
22693
  if (!inBase64) {
@@ -22616,7 +22709,8 @@ var require_utf7 = __commonJS({
22616
22709
  return buf.slice(0, bufIdx);
22617
22710
  };
22618
22711
  Utf7IMAPEncoder.prototype.end = function() {
22619
- var buf = Buffer2.alloc(10), bufIdx = 0;
22712
+ var buf = Buffer2.alloc(10);
22713
+ var bufIdx = 0;
22620
22714
  if (this.inBase64) {
22621
22715
  if (this.base64AccumIdx > 0) {
22622
22716
  bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
@@ -22635,7 +22729,10 @@ var require_utf7 = __commonJS({
22635
22729
  var base64IMAPChars = base64Chars.slice();
22636
22730
  base64IMAPChars[",".charCodeAt(0)] = true;
22637
22731
  Utf7IMAPDecoder.prototype.write = function(buf) {
22638
- var res = "", lastI = 0, inBase64 = this.inBase64, base64Accum = this.base64Accum;
22732
+ var res = "";
22733
+ var lastI = 0;
22734
+ var inBase64 = this.inBase64;
22735
+ var base64Accum = this.base64Accum;
22639
22736
  for (var i2 = 0; i2 < buf.length; i2++) {
22640
22737
  if (!inBase64) {
22641
22738
  if (buf[i2] == andChar) {
@@ -22651,8 +22748,9 @@ var require_utf7 = __commonJS({
22651
22748
  var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i2), "ascii").replace(/,/g, "/");
22652
22749
  res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
22653
22750
  }
22654
- if (buf[i2] != minusChar)
22751
+ if (buf[i2] != minusChar) {
22655
22752
  i2--;
22753
+ }
22656
22754
  lastI = i2 + 1;
22657
22755
  inBase64 = false;
22658
22756
  base64Accum = "";
@@ -22674,8 +22772,9 @@ var require_utf7 = __commonJS({
22674
22772
  };
22675
22773
  Utf7IMAPDecoder.prototype.end = function() {
22676
22774
  var res = "";
22677
- if (this.inBase64 && this.base64Accum.length > 0)
22775
+ if (this.inBase64 && this.base64Accum.length > 0) {
22678
22776
  res = this.iconv.decode(Buffer2.from(this.base64Accum, "base64"), "utf16-be");
22777
+ }
22679
22778
  this.inBase64 = false;
22680
22779
  this.base64Accum = "";
22681
22780
  return res;
@@ -22690,20 +22789,24 @@ var require_sbcs_codec = __commonJS({
22690
22789
  var Buffer2 = require_safer().Buffer;
22691
22790
  exports2._sbcs = SBCSCodec;
22692
22791
  function SBCSCodec(codecOptions, iconv) {
22693
- if (!codecOptions)
22792
+ if (!codecOptions) {
22694
22793
  throw new Error("SBCS codec is called without the data.");
22695
- if (!codecOptions.chars || codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256)
22794
+ }
22795
+ if (!codecOptions.chars || codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256) {
22696
22796
  throw new Error("Encoding '" + codecOptions.type + "' has incorrect 'chars' (must be of len 128 or 256)");
22797
+ }
22697
22798
  if (codecOptions.chars.length === 128) {
22698
22799
  var asciiString = "";
22699
- for (var i = 0; i < 128; i++)
22800
+ for (var i = 0; i < 128; i++) {
22700
22801
  asciiString += String.fromCharCode(i);
22802
+ }
22701
22803
  codecOptions.chars = asciiString + codecOptions.chars;
22702
22804
  }
22703
22805
  this.decodeBuf = Buffer2.from(codecOptions.chars, "ucs2");
22704
22806
  var encodeBuf = Buffer2.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));
22705
- for (var i = 0; i < codecOptions.chars.length; i++)
22807
+ for (var i = 0; i < codecOptions.chars.length; i++) {
22706
22808
  encodeBuf[codecOptions.chars.charCodeAt(i)] = i;
22809
+ }
22707
22810
  this.encodeBuf = encodeBuf;
22708
22811
  }
22709
22812
  SBCSCodec.prototype.encoder = SBCSEncoder;
@@ -22713,8 +22816,9 @@ var require_sbcs_codec = __commonJS({
22713
22816
  }
22714
22817
  SBCSEncoder.prototype.write = function(str) {
22715
22818
  var buf = Buffer2.alloc(str.length);
22716
- for (var i = 0; i < str.length; i++)
22819
+ for (var i = 0; i < str.length; i++) {
22717
22820
  buf[i] = this.encodeBuf[str.charCodeAt(i)];
22821
+ }
22718
22822
  return buf;
22719
22823
  };
22720
22824
  SBCSEncoder.prototype.end = function() {
@@ -22725,7 +22829,8 @@ var require_sbcs_codec = __commonJS({
22725
22829
  SBCSDecoder.prototype.write = function(buf) {
22726
22830
  var decodeBuf = this.decodeBuf;
22727
22831
  var newBuf = Buffer2.alloc(buf.length * 2);
22728
- var idx1 = 0, idx2 = 0;
22832
+ var idx1 = 0;
22833
+ var idx2 = 0;
22729
22834
  for (var i = 0; i < buf.length; i++) {
22730
22835
  idx1 = buf[i] * 2;
22731
22836
  idx2 = i * 2;
@@ -22745,149 +22850,149 @@ var require_sbcs_data = __commonJS({
22745
22850
  "use strict";
22746
22851
  module2.exports = {
22747
22852
  // Not supported by iconv, not sure why.
22748
- "10029": "maccenteuro",
22749
- "maccenteuro": {
22750
- "type": "_sbcs",
22751
- "chars": "\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"
22853
+ 10029: "maccenteuro",
22854
+ maccenteuro: {
22855
+ type: "_sbcs",
22856
+ chars: "\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"
22752
22857
  },
22753
- "808": "cp808",
22754
- "ibm808": "cp808",
22755
- "cp808": {
22756
- "type": "_sbcs",
22757
- "chars": "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"
22858
+ 808: "cp808",
22859
+ ibm808: "cp808",
22860
+ cp808: {
22861
+ type: "_sbcs",
22862
+ chars: "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"
22758
22863
  },
22759
- "mik": {
22760
- "type": "_sbcs",
22761
- "chars": "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
22864
+ mik: {
22865
+ type: "_sbcs",
22866
+ chars: "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
22762
22867
  },
22763
- "cp720": {
22764
- "type": "_sbcs",
22765
- "chars": "\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
22868
+ cp720: {
22869
+ type: "_sbcs",
22870
+ chars: "\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
22766
22871
  },
22767
22872
  // Aliases of generated encodings.
22768
- "ascii8bit": "ascii",
22769
- "usascii": "ascii",
22770
- "ansix34": "ascii",
22771
- "ansix341968": "ascii",
22772
- "ansix341986": "ascii",
22773
- "csascii": "ascii",
22774
- "cp367": "ascii",
22775
- "ibm367": "ascii",
22776
- "isoir6": "ascii",
22777
- "iso646us": "ascii",
22778
- "iso646irv": "ascii",
22779
- "us": "ascii",
22780
- "latin1": "iso88591",
22781
- "latin2": "iso88592",
22782
- "latin3": "iso88593",
22783
- "latin4": "iso88594",
22784
- "latin5": "iso88599",
22785
- "latin6": "iso885910",
22786
- "latin7": "iso885913",
22787
- "latin8": "iso885914",
22788
- "latin9": "iso885915",
22789
- "latin10": "iso885916",
22790
- "csisolatin1": "iso88591",
22791
- "csisolatin2": "iso88592",
22792
- "csisolatin3": "iso88593",
22793
- "csisolatin4": "iso88594",
22794
- "csisolatincyrillic": "iso88595",
22795
- "csisolatinarabic": "iso88596",
22796
- "csisolatingreek": "iso88597",
22797
- "csisolatinhebrew": "iso88598",
22798
- "csisolatin5": "iso88599",
22799
- "csisolatin6": "iso885910",
22800
- "l1": "iso88591",
22801
- "l2": "iso88592",
22802
- "l3": "iso88593",
22803
- "l4": "iso88594",
22804
- "l5": "iso88599",
22805
- "l6": "iso885910",
22806
- "l7": "iso885913",
22807
- "l8": "iso885914",
22808
- "l9": "iso885915",
22809
- "l10": "iso885916",
22810
- "isoir14": "iso646jp",
22811
- "isoir57": "iso646cn",
22812
- "isoir100": "iso88591",
22813
- "isoir101": "iso88592",
22814
- "isoir109": "iso88593",
22815
- "isoir110": "iso88594",
22816
- "isoir144": "iso88595",
22817
- "isoir127": "iso88596",
22818
- "isoir126": "iso88597",
22819
- "isoir138": "iso88598",
22820
- "isoir148": "iso88599",
22821
- "isoir157": "iso885910",
22822
- "isoir166": "tis620",
22823
- "isoir179": "iso885913",
22824
- "isoir199": "iso885914",
22825
- "isoir203": "iso885915",
22826
- "isoir226": "iso885916",
22827
- "cp819": "iso88591",
22828
- "ibm819": "iso88591",
22829
- "cyrillic": "iso88595",
22830
- "arabic": "iso88596",
22831
- "arabic8": "iso88596",
22832
- "ecma114": "iso88596",
22833
- "asmo708": "iso88596",
22834
- "greek": "iso88597",
22835
- "greek8": "iso88597",
22836
- "ecma118": "iso88597",
22837
- "elot928": "iso88597",
22838
- "hebrew": "iso88598",
22839
- "hebrew8": "iso88598",
22840
- "turkish": "iso88599",
22841
- "turkish8": "iso88599",
22842
- "thai": "iso885911",
22843
- "thai8": "iso885911",
22844
- "celtic": "iso885914",
22845
- "celtic8": "iso885914",
22846
- "isoceltic": "iso885914",
22847
- "tis6200": "tis620",
22848
- "tis62025291": "tis620",
22849
- "tis62025330": "tis620",
22850
- "10000": "macroman",
22851
- "10006": "macgreek",
22852
- "10007": "maccyrillic",
22853
- "10079": "maciceland",
22854
- "10081": "macturkish",
22855
- "cspc8codepage437": "cp437",
22856
- "cspc775baltic": "cp775",
22857
- "cspc850multilingual": "cp850",
22858
- "cspcp852": "cp852",
22859
- "cspc862latinhebrew": "cp862",
22860
- "cpgr": "cp869",
22861
- "msee": "cp1250",
22862
- "mscyrl": "cp1251",
22863
- "msansi": "cp1252",
22864
- "msgreek": "cp1253",
22865
- "msturk": "cp1254",
22866
- "mshebr": "cp1255",
22867
- "msarab": "cp1256",
22868
- "winbaltrim": "cp1257",
22869
- "cp20866": "koi8r",
22870
- "20866": "koi8r",
22871
- "ibm878": "koi8r",
22872
- "cskoi8r": "koi8r",
22873
- "cp21866": "koi8u",
22874
- "21866": "koi8u",
22875
- "ibm1168": "koi8u",
22876
- "strk10482002": "rk1048",
22877
- "tcvn5712": "tcvn",
22878
- "tcvn57121": "tcvn",
22879
- "gb198880": "iso646cn",
22880
- "cn": "iso646cn",
22881
- "csiso14jisc6220ro": "iso646jp",
22882
- "jisc62201969ro": "iso646jp",
22883
- "jp": "iso646jp",
22884
- "cshproman8": "hproman8",
22885
- "r8": "hproman8",
22886
- "roman8": "hproman8",
22887
- "xroman8": "hproman8",
22888
- "ibm1051": "hproman8",
22889
- "mac": "macintosh",
22890
- "csmacintosh": "macintosh"
22873
+ ascii8bit: "ascii",
22874
+ usascii: "ascii",
22875
+ ansix34: "ascii",
22876
+ ansix341968: "ascii",
22877
+ ansix341986: "ascii",
22878
+ csascii: "ascii",
22879
+ cp367: "ascii",
22880
+ ibm367: "ascii",
22881
+ isoir6: "ascii",
22882
+ iso646us: "ascii",
22883
+ iso646irv: "ascii",
22884
+ us: "ascii",
22885
+ latin1: "iso88591",
22886
+ latin2: "iso88592",
22887
+ latin3: "iso88593",
22888
+ latin4: "iso88594",
22889
+ latin5: "iso88599",
22890
+ latin6: "iso885910",
22891
+ latin7: "iso885913",
22892
+ latin8: "iso885914",
22893
+ latin9: "iso885915",
22894
+ latin10: "iso885916",
22895
+ csisolatin1: "iso88591",
22896
+ csisolatin2: "iso88592",
22897
+ csisolatin3: "iso88593",
22898
+ csisolatin4: "iso88594",
22899
+ csisolatincyrillic: "iso88595",
22900
+ csisolatinarabic: "iso88596",
22901
+ csisolatingreek: "iso88597",
22902
+ csisolatinhebrew: "iso88598",
22903
+ csisolatin5: "iso88599",
22904
+ csisolatin6: "iso885910",
22905
+ l1: "iso88591",
22906
+ l2: "iso88592",
22907
+ l3: "iso88593",
22908
+ l4: "iso88594",
22909
+ l5: "iso88599",
22910
+ l6: "iso885910",
22911
+ l7: "iso885913",
22912
+ l8: "iso885914",
22913
+ l9: "iso885915",
22914
+ l10: "iso885916",
22915
+ isoir14: "iso646jp",
22916
+ isoir57: "iso646cn",
22917
+ isoir100: "iso88591",
22918
+ isoir101: "iso88592",
22919
+ isoir109: "iso88593",
22920
+ isoir110: "iso88594",
22921
+ isoir144: "iso88595",
22922
+ isoir127: "iso88596",
22923
+ isoir126: "iso88597",
22924
+ isoir138: "iso88598",
22925
+ isoir148: "iso88599",
22926
+ isoir157: "iso885910",
22927
+ isoir166: "tis620",
22928
+ isoir179: "iso885913",
22929
+ isoir199: "iso885914",
22930
+ isoir203: "iso885915",
22931
+ isoir226: "iso885916",
22932
+ cp819: "iso88591",
22933
+ ibm819: "iso88591",
22934
+ cyrillic: "iso88595",
22935
+ arabic: "iso88596",
22936
+ arabic8: "iso88596",
22937
+ ecma114: "iso88596",
22938
+ asmo708: "iso88596",
22939
+ greek: "iso88597",
22940
+ greek8: "iso88597",
22941
+ ecma118: "iso88597",
22942
+ elot928: "iso88597",
22943
+ hebrew: "iso88598",
22944
+ hebrew8: "iso88598",
22945
+ turkish: "iso88599",
22946
+ turkish8: "iso88599",
22947
+ thai: "iso885911",
22948
+ thai8: "iso885911",
22949
+ celtic: "iso885914",
22950
+ celtic8: "iso885914",
22951
+ isoceltic: "iso885914",
22952
+ tis6200: "tis620",
22953
+ tis62025291: "tis620",
22954
+ tis62025330: "tis620",
22955
+ 1e4: "macroman",
22956
+ 10006: "macgreek",
22957
+ 10007: "maccyrillic",
22958
+ 10079: "maciceland",
22959
+ 10081: "macturkish",
22960
+ cspc8codepage437: "cp437",
22961
+ cspc775baltic: "cp775",
22962
+ cspc850multilingual: "cp850",
22963
+ cspcp852: "cp852",
22964
+ cspc862latinhebrew: "cp862",
22965
+ cpgr: "cp869",
22966
+ msee: "cp1250",
22967
+ mscyrl: "cp1251",
22968
+ msansi: "cp1252",
22969
+ msgreek: "cp1253",
22970
+ msturk: "cp1254",
22971
+ mshebr: "cp1255",
22972
+ msarab: "cp1256",
22973
+ winbaltrim: "cp1257",
22974
+ cp20866: "koi8r",
22975
+ 20866: "koi8r",
22976
+ ibm878: "koi8r",
22977
+ cskoi8r: "koi8r",
22978
+ cp21866: "koi8u",
22979
+ 21866: "koi8u",
22980
+ ibm1168: "koi8u",
22981
+ strk10482002: "rk1048",
22982
+ tcvn5712: "tcvn",
22983
+ tcvn57121: "tcvn",
22984
+ gb198880: "iso646cn",
22985
+ cn: "iso646cn",
22986
+ csiso14jisc6220ro: "iso646jp",
22987
+ jisc62201969ro: "iso646jp",
22988
+ jp: "iso646jp",
22989
+ cshproman8: "hproman8",
22990
+ r8: "hproman8",
22991
+ roman8: "hproman8",
22992
+ xroman8: "hproman8",
22993
+ ibm1051: "hproman8",
22994
+ mac: "macintosh",
22995
+ csmacintosh: "macintosh"
22891
22996
  };
22892
22997
  }
22893
22998
  });
@@ -23359,21 +23464,25 @@ var require_dbcs_codec = __commonJS({
23359
23464
  var NODE_START = -1e3;
23360
23465
  var UNASSIGNED_NODE = new Array(256);
23361
23466
  var DEF_CHAR = -1;
23362
- for (i = 0; i < 256; i++)
23467
+ for (i = 0; i < 256; i++) {
23363
23468
  UNASSIGNED_NODE[i] = UNASSIGNED;
23469
+ }
23364
23470
  var i;
23365
23471
  function DBCSCodec(codecOptions, iconv) {
23366
23472
  this.encodingName = codecOptions.encodingName;
23367
- if (!codecOptions)
23473
+ if (!codecOptions) {
23368
23474
  throw new Error("DBCS codec is called without the data.");
23369
- if (!codecOptions.table)
23475
+ }
23476
+ if (!codecOptions.table) {
23370
23477
  throw new Error("Encoding '" + this.encodingName + "' has no data.");
23478
+ }
23371
23479
  var mappingTable = codecOptions.table();
23372
23480
  this.decodeTables = [];
23373
23481
  this.decodeTables[0] = UNASSIGNED_NODE.slice(0);
23374
23482
  this.decodeTableSeq = [];
23375
- for (var i2 = 0; i2 < mappingTable.length; i2++)
23483
+ for (var i2 = 0; i2 < mappingTable.length; i2++) {
23376
23484
  this._addDecodeChunk(mappingTable[i2]);
23485
+ }
23377
23486
  if (typeof codecOptions.gb18030 === "function") {
23378
23487
  this.gb18030 = codecOptions.gb18030();
23379
23488
  var commonThirdByteNodeIdx = this.decodeTables.length;
@@ -23400,8 +23509,9 @@ var require_dbcs_codec = __commonJS({
23400
23509
  }
23401
23510
  var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]];
23402
23511
  for (var l = 48; l <= 57; l++) {
23403
- if (fourthByteNode[l] === UNASSIGNED)
23512
+ if (fourthByteNode[l] === UNASSIGNED) {
23404
23513
  fourthByteNode[l] = GB18030_CODE;
23514
+ }
23405
23515
  }
23406
23516
  }
23407
23517
  }
@@ -23411,20 +23521,25 @@ var require_dbcs_codec = __commonJS({
23411
23521
  this.encodeTable = [];
23412
23522
  this.encodeTableSeq = [];
23413
23523
  var skipEncodeChars = {};
23414
- if (codecOptions.encodeSkipVals)
23524
+ if (codecOptions.encodeSkipVals) {
23415
23525
  for (var i2 = 0; i2 < codecOptions.encodeSkipVals.length; i2++) {
23416
23526
  var val2 = codecOptions.encodeSkipVals[i2];
23417
- if (typeof val2 === "number")
23527
+ if (typeof val2 === "number") {
23418
23528
  skipEncodeChars[val2] = true;
23419
- else
23420
- for (var j = val2.from; j <= val2.to; j++)
23529
+ } else {
23530
+ for (var j = val2.from; j <= val2.to; j++) {
23421
23531
  skipEncodeChars[j] = true;
23532
+ }
23533
+ }
23422
23534
  }
23535
+ }
23423
23536
  this._fillEncodeTable(0, 0, skipEncodeChars);
23424
23537
  if (codecOptions.encodeAdd) {
23425
- for (var uChar in codecOptions.encodeAdd)
23426
- if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
23538
+ for (var uChar in codecOptions.encodeAdd) {
23539
+ if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)) {
23427
23540
  this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
23541
+ }
23542
+ }
23428
23543
  }
23429
23544
  this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];
23430
23545
  if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]["?"];
@@ -23434,10 +23549,12 @@ var require_dbcs_codec = __commonJS({
23434
23549
  DBCSCodec.prototype.decoder = DBCSDecoder;
23435
23550
  DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
23436
23551
  var bytes = [];
23437
- for (; addr > 0; addr >>>= 8)
23552
+ for (; addr > 0; addr >>>= 8) {
23438
23553
  bytes.push(addr & 255);
23439
- if (bytes.length == 0)
23554
+ }
23555
+ if (bytes.length == 0) {
23440
23556
  bytes.push(0);
23557
+ }
23441
23558
  var node = this.decodeTables[0];
23442
23559
  for (var i2 = bytes.length - 1; i2 > 0; i2--) {
23443
23560
  var val2 = node[bytes[i2]];
@@ -23446,8 +23563,9 @@ var require_dbcs_codec = __commonJS({
23446
23563
  this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
23447
23564
  } else if (val2 <= NODE_START) {
23448
23565
  node = this.decodeTables[NODE_START - val2];
23449
- } else
23566
+ } else {
23450
23567
  throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16));
23568
+ }
23451
23569
  }
23452
23570
  return node;
23453
23571
  };
@@ -23460,45 +23578,53 @@ var require_dbcs_codec = __commonJS({
23460
23578
  if (typeof part === "string") {
23461
23579
  for (var l = 0; l < part.length; ) {
23462
23580
  var code = part.charCodeAt(l++);
23463
- if (55296 <= code && code < 56320) {
23581
+ if (code >= 55296 && code < 56320) {
23464
23582
  var codeTrail = part.charCodeAt(l++);
23465
- if (56320 <= codeTrail && codeTrail < 57344)
23583
+ if (codeTrail >= 56320 && codeTrail < 57344) {
23466
23584
  writeTable[curAddr++] = 65536 + (code - 55296) * 1024 + (codeTrail - 56320);
23467
- else
23585
+ } else {
23468
23586
  throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
23469
- } else if (4080 < code && code <= 4095) {
23587
+ }
23588
+ } else if (code > 4080 && code <= 4095) {
23470
23589
  var len = 4095 - code + 2;
23471
23590
  var seq2 = [];
23472
- for (var m = 0; m < len; m++)
23591
+ for (var m = 0; m < len; m++) {
23473
23592
  seq2.push(part.charCodeAt(l++));
23593
+ }
23474
23594
  writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;
23475
23595
  this.decodeTableSeq.push(seq2);
23476
- } else
23596
+ } else {
23477
23597
  writeTable[curAddr++] = code;
23598
+ }
23478
23599
  }
23479
23600
  } else if (typeof part === "number") {
23480
23601
  var charCode = writeTable[curAddr - 1] + 1;
23481
- for (var l = 0; l < part; l++)
23602
+ for (var l = 0; l < part; l++) {
23482
23603
  writeTable[curAddr++] = charCode++;
23483
- } else
23604
+ }
23605
+ } else {
23484
23606
  throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]);
23607
+ }
23485
23608
  }
23486
- if (curAddr > 255)
23609
+ if (curAddr > 255) {
23487
23610
  throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr);
23611
+ }
23488
23612
  };
23489
23613
  DBCSCodec.prototype._getEncodeBucket = function(uCode) {
23490
23614
  var high = uCode >> 8;
23491
- if (this.encodeTable[high] === void 0)
23615
+ if (this.encodeTable[high] === void 0) {
23492
23616
  this.encodeTable[high] = UNASSIGNED_NODE.slice(0);
23617
+ }
23493
23618
  return this.encodeTable[high];
23494
23619
  };
23495
23620
  DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
23496
23621
  var bucket = this._getEncodeBucket(uCode);
23497
23622
  var low = uCode & 255;
23498
- if (bucket[low] <= SEQ_START)
23623
+ if (bucket[low] <= SEQ_START) {
23499
23624
  this.encodeTableSeq[SEQ_START - bucket[low]][DEF_CHAR] = dbcsCode;
23500
- else if (bucket[low] == UNASSIGNED)
23625
+ } else if (bucket[low] == UNASSIGNED) {
23501
23626
  bucket[low] = dbcsCode;
23627
+ }
23502
23628
  };
23503
23629
  DBCSCodec.prototype._setEncodeSequence = function(seq2, dbcsCode) {
23504
23630
  var uCode = seq2[0];
@@ -23515,12 +23641,13 @@ var require_dbcs_codec = __commonJS({
23515
23641
  }
23516
23642
  for (var j = 1; j < seq2.length - 1; j++) {
23517
23643
  var oldVal = node[uCode];
23518
- if (typeof oldVal === "object")
23644
+ if (typeof oldVal === "object") {
23519
23645
  node = oldVal;
23520
- else {
23646
+ } else {
23521
23647
  node = node[uCode] = {};
23522
- if (oldVal !== void 0)
23648
+ if (oldVal !== void 0) {
23523
23649
  node[DEF_CHAR] = oldVal;
23650
+ }
23524
23651
  }
23525
23652
  }
23526
23653
  uCode = seq2[seq2.length - 1];
@@ -23533,8 +23660,9 @@ var require_dbcs_codec = __commonJS({
23533
23660
  for (var i2 = 0; i2 < 256; i2++) {
23534
23661
  var uCode = node[i2];
23535
23662
  var mbCode = prefix + i2;
23536
- if (skipEncodeChars[mbCode])
23663
+ if (skipEncodeChars[mbCode]) {
23537
23664
  continue;
23665
+ }
23538
23666
  if (uCode >= 0) {
23539
23667
  this._setEncodeChar(uCode, mbCode);
23540
23668
  hasValues = true;
@@ -23542,10 +23670,11 @@ var require_dbcs_codec = __commonJS({
23542
23670
  var subNodeIdx = NODE_START - uCode;
23543
23671
  if (!subNodeEmpty[subNodeIdx]) {
23544
23672
  var newPrefix = mbCode << 8 >>> 0;
23545
- if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars))
23673
+ if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars)) {
23546
23674
  hasValues = true;
23547
- else
23675
+ } else {
23548
23676
  subNodeEmpty[subNodeIdx] = true;
23677
+ }
23549
23678
  }
23550
23679
  } else if (uCode <= SEQ_START) {
23551
23680
  this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);
@@ -23563,7 +23692,12 @@ var require_dbcs_codec = __commonJS({
23563
23692
  this.gb18030 = codec.gb18030;
23564
23693
  }
23565
23694
  DBCSEncoder.prototype.write = function(str) {
23566
- var newBuf = Buffer2.alloc(str.length * (this.gb18030 ? 4 : 3)), leadSurrogate = this.leadSurrogate, seqObj = this.seqObj, nextChar = -1, i2 = 0, j = 0;
23695
+ var newBuf = Buffer2.alloc(str.length * (this.gb18030 ? 4 : 3));
23696
+ var leadSurrogate = this.leadSurrogate;
23697
+ var seqObj = this.seqObj;
23698
+ var nextChar = -1;
23699
+ var i2 = 0;
23700
+ var j = 0;
23567
23701
  while (true) {
23568
23702
  if (nextChar === -1) {
23569
23703
  if (i2 == str.length) break;
@@ -23572,7 +23706,7 @@ var require_dbcs_codec = __commonJS({
23572
23706
  var uCode = nextChar;
23573
23707
  nextChar = -1;
23574
23708
  }
23575
- if (55296 <= uCode && uCode < 57344) {
23709
+ if (uCode >= 55296 && uCode < 57344) {
23576
23710
  if (uCode < 56320) {
23577
23711
  if (leadSurrogate === -1) {
23578
23712
  leadSurrogate = uCode;
@@ -23600,7 +23734,7 @@ var require_dbcs_codec = __commonJS({
23600
23734
  if (typeof resCode === "object") {
23601
23735
  seqObj = resCode;
23602
23736
  continue;
23603
- } else if (typeof resCode == "number") {
23737
+ } else if (typeof resCode === "number") {
23604
23738
  dbcsCode = resCode;
23605
23739
  } else if (resCode == void 0) {
23606
23740
  resCode = seqObj[DEF_CHAR];
@@ -23613,8 +23747,9 @@ var require_dbcs_codec = __commonJS({
23613
23747
  seqObj = void 0;
23614
23748
  } else if (uCode >= 0) {
23615
23749
  var subtable = this.encodeTable[uCode >> 8];
23616
- if (subtable !== void 0)
23750
+ if (subtable !== void 0) {
23617
23751
  dbcsCode = subtable[uCode & 255];
23752
+ }
23618
23753
  if (dbcsCode <= SEQ_START) {
23619
23754
  seqObj = this.encodeTableSeq[SEQ_START - dbcsCode];
23620
23755
  continue;
@@ -23634,8 +23769,9 @@ var require_dbcs_codec = __commonJS({
23634
23769
  }
23635
23770
  }
23636
23771
  }
23637
- if (dbcsCode === UNASSIGNED)
23772
+ if (dbcsCode === UNASSIGNED) {
23638
23773
  dbcsCode = this.defaultCharSingleByte;
23774
+ }
23639
23775
  if (dbcsCode < 256) {
23640
23776
  newBuf[j++] = dbcsCode;
23641
23777
  } else if (dbcsCode < 65536) {
@@ -23657,9 +23793,11 @@ var require_dbcs_codec = __commonJS({
23657
23793
  return newBuf.slice(0, j);
23658
23794
  };
23659
23795
  DBCSEncoder.prototype.end = function() {
23660
- if (this.leadSurrogate === -1 && this.seqObj === void 0)
23796
+ if (this.leadSurrogate === -1 && this.seqObj === void 0) {
23661
23797
  return;
23662
- var newBuf = Buffer2.alloc(10), j = 0;
23798
+ }
23799
+ var newBuf = Buffer2.alloc(10);
23800
+ var j = 0;
23663
23801
  if (this.seqObj) {
23664
23802
  var dbcsCode = this.seqObj[DEF_CHAR];
23665
23803
  if (dbcsCode !== void 0) {
@@ -23689,7 +23827,12 @@ var require_dbcs_codec = __commonJS({
23689
23827
  this.gb18030 = codec.gb18030;
23690
23828
  }
23691
23829
  DBCSDecoder.prototype.write = function(buf) {
23692
- var newBuf = Buffer2.alloc(buf.length * 2), nodeIdx = this.nodeIdx, prevBytes = this.prevBytes, prevOffset = this.prevBytes.length, seqStart = -this.prevBytes.length, uCode;
23830
+ var newBuf = Buffer2.alloc(buf.length * 2);
23831
+ var nodeIdx = this.nodeIdx;
23832
+ var prevBytes = this.prevBytes;
23833
+ var prevOffset = this.prevBytes.length;
23834
+ var seqStart = -this.prevBytes.length;
23835
+ var uCode;
23693
23836
  for (var i2 = 0, j = 0; i2 < buf.length; i2++) {
23694
23837
  var curByte = i2 >= 0 ? buf[i2] : prevBytes[i2 + prevOffset];
23695
23838
  var uCode = this.decodeTables[nodeIdx][curByte];
@@ -23716,8 +23859,9 @@ var require_dbcs_codec = __commonJS({
23716
23859
  newBuf[j++] = uCode >> 8;
23717
23860
  }
23718
23861
  uCode = seq2[seq2.length - 1];
23719
- } else
23862
+ } else {
23720
23863
  throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
23864
+ }
23721
23865
  if (uCode >= 65536) {
23722
23866
  uCode -= 65536;
23723
23867
  var uCodeLead = 55296 | uCode >> 10;
@@ -23741,23 +23885,27 @@ var require_dbcs_codec = __commonJS({
23741
23885
  var bytesArr = this.prevBytes.slice(1);
23742
23886
  this.prevBytes = [];
23743
23887
  this.nodeIdx = 0;
23744
- if (bytesArr.length > 0)
23888
+ if (bytesArr.length > 0) {
23745
23889
  ret += this.write(bytesArr);
23890
+ }
23746
23891
  }
23747
23892
  this.prevBytes = [];
23748
23893
  this.nodeIdx = 0;
23749
23894
  return ret;
23750
23895
  };
23751
23896
  function findIdx(table, val2) {
23752
- if (table[0] > val2)
23897
+ if (table[0] > val2) {
23753
23898
  return -1;
23754
- var l = 0, r = table.length;
23899
+ }
23900
+ var l = 0;
23901
+ var r = table.length;
23755
23902
  while (l < r - 1) {
23756
23903
  var mid = l + (r - l + 1 >> 1);
23757
- if (table[mid] <= val2)
23904
+ if (table[mid] <= val2) {
23758
23905
  l = mid;
23759
- else
23906
+ } else {
23760
23907
  r = mid;
23908
+ }
23761
23909
  }
23762
23910
  return l;
23763
23911
  }
@@ -25020,7 +25168,7 @@ var require_dbcs_data = __commonJS({
25020
25168
  // == Japanese/ShiftJIS ====================================================
25021
25169
  // All japanese encodings are based on JIS X set of standards:
25022
25170
  // JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.
25023
- // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
25171
+ // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
25024
25172
  // Has several variations in 1978, 1983, 1990 and 1997.
25025
25173
  // JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.
25026
25174
  // JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.
@@ -25037,7 +25185,7 @@ var require_dbcs_data = __commonJS({
25037
25185
  // 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).
25038
25186
  // * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.
25039
25187
  // Used as-is in ISO2022 family.
25040
- // * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
25188
+ // * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
25041
25189
  // 0201-1976 Roman, 0208-1978, 0208-1983.
25042
25190
  // * ISO2022-JP-1: Adds esc seq for 0212-1990.
25043
25191
  // * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.
@@ -25047,7 +25195,7 @@ var require_dbcs_data = __commonJS({
25047
25195
  // After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes.
25048
25196
  //
25049
25197
  // Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html
25050
- "shiftjis": {
25198
+ shiftjis: {
25051
25199
  type: "_dbcs",
25052
25200
  table: function() {
25053
25201
  return require_shiftjis();
@@ -25055,17 +25203,17 @@ var require_dbcs_data = __commonJS({
25055
25203
  encodeAdd: { "\xA5": 92, "\u203E": 126 },
25056
25204
  encodeSkipVals: [{ from: 60736, to: 63808 }]
25057
25205
  },
25058
- "csshiftjis": "shiftjis",
25059
- "mskanji": "shiftjis",
25060
- "sjis": "shiftjis",
25061
- "windows31j": "shiftjis",
25062
- "ms31j": "shiftjis",
25063
- "xsjis": "shiftjis",
25064
- "windows932": "shiftjis",
25065
- "ms932": "shiftjis",
25066
- "932": "shiftjis",
25067
- "cp932": "shiftjis",
25068
- "eucjp": {
25206
+ csshiftjis: "shiftjis",
25207
+ mskanji: "shiftjis",
25208
+ sjis: "shiftjis",
25209
+ windows31j: "shiftjis",
25210
+ ms31j: "shiftjis",
25211
+ xsjis: "shiftjis",
25212
+ windows932: "shiftjis",
25213
+ ms932: "shiftjis",
25214
+ 932: "shiftjis",
25215
+ cp932: "shiftjis",
25216
+ eucjp: {
25069
25217
  type: "_dbcs",
25070
25218
  table: function() {
25071
25219
  return require_eucjp();
@@ -25079,37 +25227,37 @@ var require_dbcs_data = __commonJS({
25079
25227
  // http://en.wikipedia.org/wiki/GBK
25080
25228
  // We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder
25081
25229
  // Oldest GB2312 (1981, ~7600 chars) is a subset of CP936
25082
- "gb2312": "cp936",
25083
- "gb231280": "cp936",
25084
- "gb23121980": "cp936",
25085
- "csgb2312": "cp936",
25086
- "csiso58gb231280": "cp936",
25087
- "euccn": "cp936",
25230
+ gb2312: "cp936",
25231
+ gb231280: "cp936",
25232
+ gb23121980: "cp936",
25233
+ csgb2312: "cp936",
25234
+ csiso58gb231280: "cp936",
25235
+ euccn: "cp936",
25088
25236
  // Microsoft's CP936 is a subset and approximation of GBK.
25089
- "windows936": "cp936",
25090
- "ms936": "cp936",
25091
- "936": "cp936",
25092
- "cp936": {
25237
+ windows936: "cp936",
25238
+ ms936: "cp936",
25239
+ 936: "cp936",
25240
+ cp936: {
25093
25241
  type: "_dbcs",
25094
25242
  table: function() {
25095
25243
  return require_cp936();
25096
25244
  }
25097
25245
  },
25098
25246
  // GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other.
25099
- "gbk": {
25247
+ gbk: {
25100
25248
  type: "_dbcs",
25101
25249
  table: function() {
25102
25250
  return require_cp936().concat(require_gbk_added());
25103
25251
  }
25104
25252
  },
25105
- "xgbk": "gbk",
25106
- "isoir58": "gbk",
25253
+ xgbk: "gbk",
25254
+ isoir58: "gbk",
25107
25255
  // GB18030 is an algorithmic extension of GBK.
25108
25256
  // Main source: https://www.w3.org/TR/encoding/#gbk-encoder
25109
25257
  // http://icu-project.org/docs/papers/gb18030.html
25110
25258
  // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml
25111
25259
  // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0
25112
- "gb18030": {
25260
+ gb18030: {
25113
25261
  type: "_dbcs",
25114
25262
  table: function() {
25115
25263
  return require_cp936().concat(require_gbk_added());
@@ -25120,26 +25268,26 @@ var require_dbcs_data = __commonJS({
25120
25268
  encodeSkipVals: [128],
25121
25269
  encodeAdd: { "\u20AC": 41699 }
25122
25270
  },
25123
- "chinese": "gb18030",
25271
+ chinese: "gb18030",
25124
25272
  // == Korean ===============================================================
25125
25273
  // EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.
25126
- "windows949": "cp949",
25127
- "ms949": "cp949",
25128
- "949": "cp949",
25129
- "cp949": {
25274
+ windows949: "cp949",
25275
+ ms949: "cp949",
25276
+ 949: "cp949",
25277
+ cp949: {
25130
25278
  type: "_dbcs",
25131
25279
  table: function() {
25132
25280
  return require_cp949();
25133
25281
  }
25134
25282
  },
25135
- "cseuckr": "cp949",
25136
- "csksc56011987": "cp949",
25137
- "euckr": "cp949",
25138
- "isoir149": "cp949",
25139
- "korean": "cp949",
25140
- "ksc56011987": "cp949",
25141
- "ksc56011989": "cp949",
25142
- "ksc5601": "cp949",
25283
+ cseuckr: "cp949",
25284
+ csksc56011987: "cp949",
25285
+ euckr: "cp949",
25286
+ isoir149: "cp949",
25287
+ korean: "cp949",
25288
+ ksc56011987: "cp949",
25289
+ ksc56011989: "cp949",
25290
+ ksc5601: "cp949",
25143
25291
  // == Big5/Taiwan/Hong Kong ================================================
25144
25292
  // There are lots of tables for Big5 and cp950. Please see the following links for history:
25145
25293
  // http://moztw.org/docs/big5/ http://www.haible.de/bruno/charsets/conversion-tables/Big5.html
@@ -25148,7 +25296,7 @@ var require_dbcs_data = __commonJS({
25148
25296
  // * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/
25149
25297
  // * Big5-2003 (Taiwan standard) almost superset of cp950.
25150
25298
  // * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.
25151
- // * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
25299
+ // * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
25152
25300
  // many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.
25153
25301
  // Plus, it has 4 combining sequences.
25154
25302
  // Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299
@@ -25159,21 +25307,21 @@ var require_dbcs_data = __commonJS({
25159
25307
  // In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.
25160
25308
  // Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt
25161
25309
  // http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt
25162
- //
25310
+ //
25163
25311
  // Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder
25164
25312
  // Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.
25165
- "windows950": "cp950",
25166
- "ms950": "cp950",
25167
- "950": "cp950",
25168
- "cp950": {
25313
+ windows950: "cp950",
25314
+ ms950: "cp950",
25315
+ 950: "cp950",
25316
+ cp950: {
25169
25317
  type: "_dbcs",
25170
25318
  table: function() {
25171
25319
  return require_cp950();
25172
25320
  }
25173
25321
  },
25174
25322
  // Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.
25175
- "big5": "big5hkscs",
25176
- "big5hkscs": {
25323
+ big5: "big5hkscs",
25324
+ big5hkscs: {
25177
25325
  type: "_dbcs",
25178
25326
  table: function() {
25179
25327
  return require_cp950().concat(require_big5_added());
@@ -25252,9 +25400,9 @@ var require_dbcs_data = __commonJS({
25252
25400
  41678
25253
25401
  ]
25254
25402
  },
25255
- "cnbig5": "big5hkscs",
25256
- "csbig5": "big5hkscs",
25257
- "xxbig5": "big5hkscs"
25403
+ cnbig5: "big5hkscs",
25404
+ csbig5: "big5hkscs",
25405
+ xxbig5: "big5hkscs"
25258
25406
  };
25259
25407
  }
25260
25408
  });
@@ -25263,6 +25411,7 @@ var require_dbcs_data = __commonJS({
25263
25411
  var require_encodings = __commonJS({
25264
25412
  "../../node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
25265
25413
  "use strict";
25414
+ var mergeModules = require_merge_exports();
25266
25415
  var modules = [
25267
25416
  require_internal(),
25268
25417
  require_utf32(),
@@ -25276,12 +25425,9 @@ var require_encodings = __commonJS({
25276
25425
  ];
25277
25426
  for (i = 0; i < modules.length; i++) {
25278
25427
  module2 = modules[i];
25279
- for (enc in module2)
25280
- if (Object.prototype.hasOwnProperty.call(module2, enc))
25281
- exports2[enc] = module2[enc];
25428
+ mergeModules(exports2, module2);
25282
25429
  }
25283
25430
  var module2;
25284
- var enc;
25285
25431
  var i;
25286
25432
  }
25287
25433
  });
@@ -25291,8 +25437,8 @@ var require_streams = __commonJS({
25291
25437
  "../../node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
25292
25438
  "use strict";
25293
25439
  var Buffer2 = require_safer().Buffer;
25294
- module2.exports = function(stream_module) {
25295
- var Transform = stream_module.Transform;
25440
+ module2.exports = function(streamModule) {
25441
+ var Transform = streamModule.Transform;
25296
25442
  function IconvLiteEncoderStream(conv, options3) {
25297
25443
  this.conv = conv;
25298
25444
  options3 = options3 || {};
@@ -25303,8 +25449,9 @@ var require_streams = __commonJS({
25303
25449
  constructor: { value: IconvLiteEncoderStream }
25304
25450
  });
25305
25451
  IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {
25306
- if (typeof chunk != "string")
25452
+ if (typeof chunk !== "string") {
25307
25453
  return done(new Error("Iconv encoding stream needs strings as its input."));
25454
+ }
25308
25455
  try {
25309
25456
  var res = this.conv.write(chunk);
25310
25457
  if (res && res.length) this.push(res);
@@ -25343,8 +25490,9 @@ var require_streams = __commonJS({
25343
25490
  constructor: { value: IconvLiteDecoderStream }
25344
25491
  });
25345
25492
  IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {
25346
- if (!Buffer2.isBuffer(chunk) && !(chunk instanceof Uint8Array))
25493
+ if (!Buffer2.isBuffer(chunk) && !(chunk instanceof Uint8Array)) {
25347
25494
  return done(new Error("Iconv decoding stream needs buffers as its input."));
25495
+ }
25348
25496
  try {
25349
25497
  var res = this.conv.write(chunk);
25350
25498
  if (res && res.length) this.push(res, this.encoding);
@@ -25387,6 +25535,7 @@ var require_lib2 = __commonJS({
25387
25535
  "use strict";
25388
25536
  var Buffer2 = require_safer().Buffer;
25389
25537
  var bomHandling = require_bom_handling();
25538
+ var mergeModules = require_merge_exports();
25390
25539
  var iconv = module2.exports;
25391
25540
  iconv.encodings = null;
25392
25541
  iconv.defaultCharUnicode = "\uFFFD";
@@ -25421,31 +25570,38 @@ var require_lib2 = __commonJS({
25421
25570
  };
25422
25571
  iconv.toEncoding = iconv.encode;
25423
25572
  iconv.fromEncoding = iconv.decode;
25424
- iconv._codecDataCache = {};
25573
+ iconv._codecDataCache = { __proto__: null };
25425
25574
  iconv.getCodec = function getCodec(encoding) {
25426
- if (!iconv.encodings)
25427
- iconv.encodings = require_encodings();
25575
+ if (!iconv.encodings) {
25576
+ var raw = require_encodings();
25577
+ iconv.encodings = { __proto__: null };
25578
+ mergeModules(iconv.encodings, raw);
25579
+ }
25428
25580
  var enc = iconv._canonicalizeEncoding(encoding);
25429
25581
  var codecOptions = {};
25430
25582
  while (true) {
25431
25583
  var codec = iconv._codecDataCache[enc];
25432
- if (codec)
25584
+ if (codec) {
25433
25585
  return codec;
25586
+ }
25434
25587
  var codecDef = iconv.encodings[enc];
25435
25588
  switch (typeof codecDef) {
25436
25589
  case "string":
25437
25590
  enc = codecDef;
25438
25591
  break;
25439
25592
  case "object":
25440
- for (var key in codecDef)
25593
+ for (var key in codecDef) {
25441
25594
  codecOptions[key] = codecDef[key];
25442
- if (!codecOptions.encodingName)
25595
+ }
25596
+ if (!codecOptions.encodingName) {
25443
25597
  codecOptions.encodingName = enc;
25598
+ }
25444
25599
  enc = codecDef.type;
25445
25600
  break;
25446
25601
  case "function":
25447
- if (!codecOptions.encodingName)
25602
+ if (!codecOptions.encodingName) {
25448
25603
  codecOptions.encodingName = enc;
25604
+ }
25449
25605
  codec = new codecDef(codecOptions, iconv);
25450
25606
  iconv._codecDataCache[codecOptions.encodingName] = codec;
25451
25607
  return codec;
@@ -25458,21 +25614,26 @@ var require_lib2 = __commonJS({
25458
25614
  return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
25459
25615
  };
25460
25616
  iconv.getEncoder = function getEncoder(encoding, options3) {
25461
- var codec = iconv.getCodec(encoding), encoder = new codec.encoder(options3, codec);
25462
- if (codec.bomAware && options3 && options3.addBOM)
25617
+ var codec = iconv.getCodec(encoding);
25618
+ var encoder = new codec.encoder(options3, codec);
25619
+ if (codec.bomAware && options3 && options3.addBOM) {
25463
25620
  encoder = new bomHandling.PrependBOM(encoder, options3);
25621
+ }
25464
25622
  return encoder;
25465
25623
  };
25466
25624
  iconv.getDecoder = function getDecoder(encoding, options3) {
25467
- var codec = iconv.getCodec(encoding), decoder = new codec.decoder(options3, codec);
25468
- if (codec.bomAware && !(options3 && options3.stripBOM === false))
25625
+ var codec = iconv.getCodec(encoding);
25626
+ var decoder = new codec.decoder(options3, codec);
25627
+ if (codec.bomAware && !(options3 && options3.stripBOM === false)) {
25469
25628
  decoder = new bomHandling.StripBOM(decoder, options3);
25629
+ }
25470
25630
  return decoder;
25471
25631
  };
25472
- iconv.enableStreamingAPI = function enableStreamingAPI(stream_module2) {
25473
- if (iconv.supportsStreams)
25632
+ iconv.enableStreamingAPI = function enableStreamingAPI(streamModule2) {
25633
+ if (iconv.supportsStreams) {
25474
25634
  return;
25475
- var streams = require_streams()(stream_module2);
25635
+ }
25636
+ var streams = require_streams()(streamModule2);
25476
25637
  iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
25477
25638
  iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
25478
25639
  iconv.encodeStream = function encodeStream(encoding, options3) {
@@ -25483,13 +25644,13 @@ var require_lib2 = __commonJS({
25483
25644
  };
25484
25645
  iconv.supportsStreams = true;
25485
25646
  };
25486
- var stream_module;
25647
+ var streamModule;
25487
25648
  try {
25488
- stream_module = require("stream");
25649
+ streamModule = require("stream");
25489
25650
  } catch (e) {
25490
25651
  }
25491
- if (stream_module && stream_module.Transform) {
25492
- iconv.enableStreamingAPI(stream_module);
25652
+ if (streamModule && streamModule.Transform) {
25653
+ iconv.enableStreamingAPI(streamModule);
25493
25654
  } else {
25494
25655
  iconv.encodeStream = iconv.decodeStream = function() {
25495
25656
  throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
@@ -38786,7 +38947,7 @@ var require_constants2 = __commonJS({
38786
38947
  "../../node_modules/@sap-ux/project-access/dist/constants.js"(exports2) {
38787
38948
  "use strict";
38788
38949
  Object.defineProperty(exports2, "__esModule", { value: true });
38789
- exports2.MinCdsVersionUi5Plugin = exports2.moduleCacheRoot = exports2.fioriToolsDirectory = exports2.SchemaName = exports2.FioriToolsSettings = exports2.DirName = exports2.FileName = void 0;
38950
+ exports2.MinCdsVersion = exports2.MinCdsPluginUi5Version = exports2.moduleCacheRoot = exports2.fioriToolsDirectory = exports2.SchemaName = exports2.FioriToolsSettings = exports2.DirName = exports2.FileName = void 0;
38790
38951
  var node_os_1 = require("node:os");
38791
38952
  var node_path_1 = require("node:path");
38792
38953
  exports2.FileName = {
@@ -38846,7 +39007,8 @@ var require_constants2 = __commonJS({
38846
39007
  };
38847
39008
  exports2.fioriToolsDirectory = (0, node_path_1.join)((0, node_os_1.homedir)(), exports2.FioriToolsSettings.dir);
38848
39009
  exports2.moduleCacheRoot = (0, node_path_1.join)(exports2.fioriToolsDirectory, exports2.DirName.ModuleCache);
38849
- exports2.MinCdsVersionUi5Plugin = "6.8.2";
39010
+ exports2.MinCdsPluginUi5Version = "0.13.0";
39011
+ exports2.MinCdsVersion = "6.8.2";
38850
39012
  }
38851
39013
  });
38852
39014
 
@@ -71892,7 +72054,7 @@ var require_cap = __commonJS({
71892
72054
  // Below line checks if 'cdsVersionInfo' is available and contains version information.
71893
72055
  // If it does, it uses that version information to determine if it satisfies the minimum CDS version required.
71894
72056
  // If 'cdsVersionInfo' is not available or does not contain version information,it falls back to check the version specified in the package.json file.
71895
- hasMinCdsVersion: (cdsVersionInfo == null ? void 0 : cdsVersionInfo.version) ? (0, semver_1.satisfies)(cdsVersionInfo == null ? void 0 : cdsVersionInfo.version, `>=${constants_1.MinCdsVersionUi5Plugin}`) : satisfiesMinCdsVersion(packageJson),
72057
+ hasMinCdsVersion: (cdsVersionInfo == null ? void 0 : cdsVersionInfo.version) ? (0, semver_1.satisfies)(cdsVersionInfo == null ? void 0 : cdsVersionInfo.version, `>=${constants_1.MinCdsVersion}`) : satisfiesMinCdsVersion(packageJson),
71896
72058
  isWorkspaceEnabled: workspaceEnabled,
71897
72059
  hasCdsUi5Plugin: (0, dependencies_1.hasDependency)(packageJson, "cds-plugin-ui5"),
71898
72060
  isCdsUi5PluginEnabled: false
@@ -71919,11 +72081,11 @@ var require_cap = __commonJS({
71919
72081
  }
71920
72082
  function satisfiesMinCdsVersion(packageJson) {
71921
72083
  var _a15;
71922
- return hasMinCdsVersion(packageJson) || (0, semver_1.satisfies)(constants_1.MinCdsVersionUi5Plugin, ((_a15 = packageJson.dependencies) == null ? void 0 : _a15["@sap/cds"]) ?? "0.0.0");
72084
+ return hasMinCdsVersion(packageJson) || (0, semver_1.satisfies)(constants_1.MinCdsVersion, ((_a15 = packageJson.dependencies) == null ? void 0 : _a15["@sap/cds"]) ?? "0.0.0");
71923
72085
  }
71924
72086
  function hasMinCdsVersion(packageJson) {
71925
72087
  var _a15;
71926
- return (0, semver_1.gte)((0, semver_1.coerce)((_a15 = packageJson.dependencies) == null ? void 0 : _a15["@sap/cds"]) ?? "0.0.0", constants_1.MinCdsVersionUi5Plugin);
72088
+ return (0, semver_1.gte)((0, semver_1.coerce)((_a15 = packageJson.dependencies) == null ? void 0 : _a15["@sap/cds"]) ?? "0.0.0", constants_1.MinCdsVersion);
71927
72089
  }
71928
72090
  }
71929
72091
  });
@@ -78352,6 +78514,28 @@ var require_specification = __commonJS({
78352
78514
  }
78353
78515
  });
78354
78516
 
78517
+ // ../../node_modules/@sap-ux/project-access/dist/project/flex-changes.js
78518
+ var require_flex_changes = __commonJS({
78519
+ "../../node_modules/@sap-ux/project-access/dist/project/flex-changes.js"(exports2) {
78520
+ "use strict";
78521
+ Object.defineProperty(exports2, "__esModule", { value: true });
78522
+ exports2.readFlexChanges = readFlexChanges;
78523
+ var node_path_1 = require("node:path");
78524
+ var file_1 = require_file();
78525
+ var node_fs_1 = require("node:fs");
78526
+ async function readFlexChanges(changesPath, memFs) {
78527
+ const changes = {};
78528
+ if ((0, node_fs_1.existsSync)(changesPath)) {
78529
+ const files = await (0, file_1.readDirectory)(changesPath);
78530
+ for (const file of files) {
78531
+ changes[file] = await (0, file_1.readFile)((0, node_path_1.join)(changesPath, file), memFs);
78532
+ }
78533
+ }
78534
+ return changes;
78535
+ }
78536
+ }
78537
+ });
78538
+
78355
78539
  // ../../node_modules/@sap-ux/project-access/dist/project/access.js
78356
78540
  var require_access = __commonJS({
78357
78541
  "../../node_modules/@sap-ux/project-access/dist/project/access.js"(exports2) {
@@ -78366,6 +78550,8 @@ var require_access = __commonJS({
78366
78550
  var file_1 = require_file();
78367
78551
  var constants_1 = require_constants2();
78368
78552
  var specification_1 = require_specification();
78553
+ var flex_changes_1 = require_flex_changes();
78554
+ var cap_1 = require_cap();
78369
78555
  var ApplicationAccessImp = class {
78370
78556
  _project;
78371
78557
  appId;
@@ -78524,6 +78710,70 @@ var require_access = __commonJS({
78524
78710
  var _a15;
78525
78711
  await (0, file_1.updateManifestJSON)(this.app.manifest, manifest, memFs ?? ((_a15 = this.options) == null ? void 0 : _a15.fs));
78526
78712
  }
78713
+ /**
78714
+ * Reads and returns the parsed `manifest.json` file for the application.
78715
+ *
78716
+ * @param memFs - optional mem-fs-editor instance
78717
+ * @returns A promise resolving to the parsed `manifest.json` content.
78718
+ */
78719
+ async readManifest(memFs) {
78720
+ var _a15;
78721
+ return (0, file_1.readJSON)(this.app.manifest, memFs ?? ((_a15 = this.options) == null ? void 0 : _a15.fs));
78722
+ }
78723
+ /**
78724
+ * Reads and returns all Flex Changes (`*.change` files) associated with the application.
78725
+ *
78726
+ * @param memFs - optional mem-fs-editor instance
78727
+ * @returns A promise that resolves to an array of flex change files.
78728
+ */
78729
+ async readFlexChanges(memFs) {
78730
+ var _a15;
78731
+ return (0, flex_changes_1.readFlexChanges)(this.app.changes, memFs ?? ((_a15 = this.options) == null ? void 0 : _a15.fs));
78732
+ }
78733
+ /**
78734
+ * Reads and returns all annotation files associated with the application's main service.
78735
+ *
78736
+ * @param memFs - optional mem-fs-editor instance
78737
+ * @returns A promise resolving to an array of annotation file descriptors.
78738
+ */
78739
+ async readAnnotationFiles(memFs) {
78740
+ var _a15, _b13, _c6, _d4;
78741
+ const annotationData = [];
78742
+ const mainServiceName = this.app.mainService ?? "mainService";
78743
+ const mainService = (_b13 = (_a15 = this.app) == null ? void 0 : _a15.services) == null ? void 0 : _b13[mainServiceName];
78744
+ if (!mainService) {
78745
+ return [];
78746
+ }
78747
+ if (mainService.uri && (this.projectType === "CAPJava" || this.projectType === "CAPNodejs")) {
78748
+ const serviceUri = (mainService == null ? void 0 : mainService.uri) ?? "";
78749
+ if (serviceUri) {
78750
+ const edmx = await (0, cap_1.readCapServiceMetadataEdmx)(this.root, serviceUri);
78751
+ annotationData.push({
78752
+ fileContent: edmx,
78753
+ dataSourceUri: serviceUri
78754
+ });
78755
+ }
78756
+ } else {
78757
+ if (mainService.local) {
78758
+ const serviceFile = await (0, file_1.readFile)(mainService.local, memFs ?? ((_c6 = this.options) == null ? void 0 : _c6.fs));
78759
+ annotationData.push({
78760
+ dataSourceUri: mainService.local,
78761
+ fileContent: serviceFile.toString()
78762
+ });
78763
+ }
78764
+ const { annotations = [] } = mainService;
78765
+ for (const annotation of annotations) {
78766
+ if (annotation.local) {
78767
+ const annotationFile = await (0, file_1.readFile)(annotation.local, memFs ?? ((_d4 = this.options) == null ? void 0 : _d4.fs));
78768
+ annotationData.push({
78769
+ dataSourceUri: annotation.local,
78770
+ fileContent: annotationFile.toString()
78771
+ });
78772
+ }
78773
+ }
78774
+ }
78775
+ return annotationData;
78776
+ }
78527
78777
  /**
78528
78778
  * Project structure.
78529
78779
  *
@@ -78674,28 +78924,6 @@ var require_script = __commonJS({
78674
78924
  }
78675
78925
  });
78676
78926
 
78677
- // ../../node_modules/@sap-ux/project-access/dist/project/flex-changes.js
78678
- var require_flex_changes = __commonJS({
78679
- "../../node_modules/@sap-ux/project-access/dist/project/flex-changes.js"(exports2) {
78680
- "use strict";
78681
- Object.defineProperty(exports2, "__esModule", { value: true });
78682
- exports2.readFlexChanges = readFlexChanges;
78683
- var node_path_1 = require("node:path");
78684
- var file_1 = require_file();
78685
- var node_fs_1 = require("node:fs");
78686
- async function readFlexChanges(changesPath, memFs) {
78687
- const changes = {};
78688
- if ((0, node_fs_1.existsSync)(changesPath)) {
78689
- const files = await (0, file_1.readDirectory)(changesPath);
78690
- for (const file of files) {
78691
- changes[file] = await (0, file_1.readFile)((0, node_path_1.join)(changesPath, file), memFs);
78692
- }
78693
- }
78694
- return changes;
78695
- }
78696
- }
78697
- });
78698
-
78699
78927
  // ../../node_modules/@sap-ux/project-access/dist/project/index.js
78700
78928
  var require_project = __commonJS({
78701
78929
  "../../node_modules/@sap-ux/project-access/dist/project/index.js"(exports2) {
@@ -80899,8 +81127,8 @@ var require_dist8 = __commonJS({
80899
81127
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding2(exports3, m, p);
80900
81128
  };
80901
81129
  Object.defineProperty(exports2, "__esModule", { value: true });
80902
- exports2.readCapServiceMetadataEdmx = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.isCapProject = exports2.hasUI5CliV3 = exports2.getWebappPath = exports2.getProjectType = exports2.getProject = exports2.getNodeModulesPath = exports2.getMockDataPath = exports2.getMockServerConfig = exports2.getMtaPath = exports2.getMinimumUI5Version = exports2.getMinUI5VersionAsArray = exports2.getMinUI5VersionFromManifest = exports2.getI18nBundles = exports2.getI18nPropertiesPaths = exports2.getSpecificationPath = exports2.getSpecification = exports2.getCapI18nFolderNames = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapProjectType = exports2.getCapServiceName = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppType = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.getAllUi5YamlFileNames = exports2.findRootsForPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findCapProjectRoot = exports2.findAllApps = exports2.filterDataSourcesByType = exports2.deleteCapApp = exports2.createProjectAccess = exports2.createApplicationAccess = exports2.clearCdsModuleCache = exports2.addPackageDevDependency = exports2.getFilePaths = exports2.MinCdsVersionUi5Plugin = exports2.FioriToolsSettings = exports2.DirName = exports2.FileName = void 0;
80903
- exports2.hasDependency = exports2.execNpmCommand = exports2.readFlexChanges = exports2.checkCdsUi5PluginEnabled = exports2.hasMinCdsVersion = exports2.getWorkspaceInfo = exports2.updatePackageScript = exports2.toReferenceUri = exports2.refreshSpecificationDistTags = exports2.readUi5Yaml = void 0;
81130
+ exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.isCapProject = exports2.hasUI5CliV3 = exports2.getWebappPath = exports2.getProjectType = exports2.getProject = exports2.getNodeModulesPath = exports2.getMockDataPath = exports2.getMockServerConfig = exports2.getMtaPath = exports2.getMinimumUI5Version = exports2.getMinUI5VersionAsArray = exports2.getMinUI5VersionFromManifest = exports2.getI18nBundles = exports2.getI18nPropertiesPaths = exports2.getSpecificationPath = exports2.getSpecification = exports2.getCapI18nFolderNames = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapProjectType = exports2.getCapServiceName = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppType = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.getAllUi5YamlFileNames = exports2.findRootsForPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findCapProjectRoot = exports2.findAllApps = exports2.filterDataSourcesByType = exports2.deleteCapApp = exports2.createProjectAccess = exports2.createApplicationAccess = exports2.clearCdsModuleCache = exports2.addPackageDevDependency = exports2.getFilePaths = exports2.MinCdsVersion = exports2.MinCdsPluginUi5Version = exports2.FioriToolsSettings = exports2.DirName = exports2.FileName = void 0;
81131
+ exports2.hasDependency = exports2.execNpmCommand = exports2.readFlexChanges = exports2.checkCdsUi5PluginEnabled = exports2.hasMinCdsVersion = exports2.getWorkspaceInfo = exports2.updatePackageScript = exports2.toReferenceUri = exports2.refreshSpecificationDistTags = exports2.readUi5Yaml = exports2.readCapServiceMetadataEdmx = void 0;
80904
81132
  var constants_1 = require_constants2();
80905
81133
  Object.defineProperty(exports2, "FileName", { enumerable: true, get: function() {
80906
81134
  return constants_1.FileName;
@@ -80911,8 +81139,11 @@ var require_dist8 = __commonJS({
80911
81139
  Object.defineProperty(exports2, "FioriToolsSettings", { enumerable: true, get: function() {
80912
81140
  return constants_1.FioriToolsSettings;
80913
81141
  } });
80914
- Object.defineProperty(exports2, "MinCdsVersionUi5Plugin", { enumerable: true, get: function() {
80915
- return constants_1.MinCdsVersionUi5Plugin;
81142
+ Object.defineProperty(exports2, "MinCdsPluginUi5Version", { enumerable: true, get: function() {
81143
+ return constants_1.MinCdsPluginUi5Version;
81144
+ } });
81145
+ Object.defineProperty(exports2, "MinCdsVersion", { enumerable: true, get: function() {
81146
+ return constants_1.MinCdsVersion;
80916
81147
  } });
80917
81148
  var file_1 = require_file();
80918
81149
  Object.defineProperty(exports2, "getFilePaths", { enumerable: true, get: function() {
@@ -167863,7 +168094,7 @@ var require_package8 = __commonJS({
167863
168094
  "../../node_modules/@sap-ux/telemetry/package.json"(exports2, module2) {
167864
168095
  module2.exports = {
167865
168096
  name: "@sap-ux/telemetry",
167866
- version: "0.6.38",
168097
+ version: "0.6.39",
167867
168098
  description: "Library for sending usage telemetry data",
167868
168099
  repository: {
167869
168100
  type: "git",
@@ -167882,7 +168113,7 @@ var require_package8 = __commonJS({
167882
168113
  "performance-now": "2.1.0",
167883
168114
  yaml: "2.3.3",
167884
168115
  "@sap-ux/store": "1.3.3",
167885
- "@sap-ux/project-access": "1.32.8",
168116
+ "@sap-ux/project-access": "1.32.9",
167886
168117
  "@sap-ux/btp-utils": "1.1.5",
167887
168118
  "@sap-ux/ui5-config": "0.29.9",
167888
168119
  "@sap-ux/logger": "0.7.1",
@@ -262811,9 +263042,11 @@ var require_TermToTypes = __commonJS({
262811
263042
  TermToTypes2["com.sap.vocabularies.Analytics.v1.AggregatedProperties"] = "com.sap.vocabularies.Analytics.v1.AggregatedPropertyType";
262812
263043
  TermToTypes2["com.sap.vocabularies.Analytics.v1.AggregatedProperty"] = "com.sap.vocabularies.Analytics.v1.AggregatedPropertyType";
262813
263044
  TermToTypes2["com.sap.vocabularies.Analytics.v1.AnalyticalContext"] = "com.sap.vocabularies.Analytics.v1.AnalyticalContextType";
263045
+ TermToTypes2["com.sap.vocabularies.Analytics.v1.LevelInformation"] = "com.sap.vocabularies.Hierarchy.v1.HierarchyType";
262814
263046
  TermToTypes2["com.sap.vocabularies.Common.v1.ServiceVersion"] = "Edm.Int32";
262815
263047
  TermToTypes2["com.sap.vocabularies.Common.v1.ServiceSchemaVersion"] = "Edm.Int32";
262816
263048
  TermToTypes2["com.sap.vocabularies.Common.v1.TextFor"] = "Edm.PropertyPath";
263049
+ TermToTypes2["com.sap.vocabularies.Common.v1.ExternalID"] = "Edm.PrimitiveType";
262817
263050
  TermToTypes2["com.sap.vocabularies.Common.v1.IsLanguageIdentifier"] = "Org.OData.Core.V1.Tag";
262818
263051
  TermToTypes2["com.sap.vocabularies.Common.v1.TextFormat"] = "com.sap.vocabularies.Common.v1.TextFormatType";
262819
263052
  TermToTypes2["com.sap.vocabularies.Common.v1.IsTimezone"] = "Org.OData.Core.V1.Tag";
@@ -262875,6 +263108,7 @@ var require_TermToTypes = __commonJS({
262875
263108
  TermToTypes2["com.sap.vocabularies.Common.v1.IsDayOfFiscalYear"] = "Org.OData.Core.V1.Tag";
262876
263109
  TermToTypes2["com.sap.vocabularies.Common.v1.IsFiscalYearVariant"] = "Org.OData.Core.V1.Tag";
262877
263110
  TermToTypes2["com.sap.vocabularies.Common.v1.MutuallyExclusiveTerm"] = "Org.OData.Core.V1.Tag";
263111
+ TermToTypes2["com.sap.vocabularies.Common.v1.OperationTemplate"] = "com.sap.vocabularies.Common.v1.QualifiedName";
262878
263112
  TermToTypes2["com.sap.vocabularies.Common.v1.DraftRoot"] = "com.sap.vocabularies.Common.v1.DraftRootType";
262879
263113
  TermToTypes2["com.sap.vocabularies.Common.v1.DraftNode"] = "com.sap.vocabularies.Common.v1.DraftNodeType";
262880
263114
  TermToTypes2["com.sap.vocabularies.Common.v1.DraftActivationVia"] = "Org.OData.Core.V1.SimpleIdentifier";
@@ -262892,6 +263126,8 @@ var require_TermToTypes = __commonJS({
262892
263126
  TermToTypes2["com.sap.vocabularies.Common.v1.ChangedBy"] = "com.sap.vocabularies.Common.v1.UserID";
262893
263127
  TermToTypes2["com.sap.vocabularies.Common.v1.ApplyMultiUnitBehaviorForSortingAndFiltering"] = "Org.OData.Core.V1.Tag";
262894
263128
  TermToTypes2["com.sap.vocabularies.Common.v1.PrimitivePropertyPath"] = "Org.OData.Core.V1.Tag";
263129
+ TermToTypes2["com.sap.vocabularies.Common.v1.AddressViaNavigationPath"] = "Org.OData.Core.V1.Tag";
263130
+ TermToTypes2["com.sap.vocabularies.Common.v1.ReferentialConstraint"] = "com.sap.vocabularies.Common.v1.ReferentialConstraintType";
262895
263131
  TermToTypes2["com.sap.vocabularies.CodeList.v1.CurrencyCodes"] = "com.sap.vocabularies.CodeList.v1.CodeListSource";
262896
263132
  TermToTypes2["com.sap.vocabularies.CodeList.v1.UnitsOfMeasure"] = "com.sap.vocabularies.CodeList.v1.CodeListSource";
262897
263133
  TermToTypes2["com.sap.vocabularies.CodeList.v1.StandardCode"] = "Edm.PropertyPath";
@@ -262967,7 +263203,7 @@ var require_TermToTypes = __commonJS({
262967
263203
  TermToTypes2["com.sap.vocabularies.UI.v1.ParameterDefaultValue"] = "Edm.PrimitiveType";
262968
263204
  TermToTypes2["com.sap.vocabularies.UI.v1.RecommendationState"] = "com.sap.vocabularies.UI.v1.RecommendationStateType";
262969
263205
  TermToTypes2["com.sap.vocabularies.UI.v1.RecommendationList"] = "com.sap.vocabularies.UI.v1.RecommendationListType";
262970
- TermToTypes2["com.sap.vocabularies.UI.v1.Recommendations"] = "Edm.ComplexType";
263206
+ TermToTypes2["com.sap.vocabularies.UI.v1.Recommendations"] = "Edm.Untyped";
262971
263207
  TermToTypes2["com.sap.vocabularies.UI.v1.ExcludeFromNavigationContext"] = "Org.OData.Core.V1.Tag";
262972
263208
  TermToTypes2["com.sap.vocabularies.UI.v1.DoNotCheckScaleOfMeasuredQuantity"] = "Edm.Boolean";
262973
263209
  TermToTypes2["com.sap.vocabularies.HTML5.v1.CssDefaults"] = "com.sap.vocabularies.HTML5.v1.CssDefaultsType";
@@ -262977,9 +263213,9 @@ var require_TermToTypes = __commonJS({
262977
263213
  }
262978
263214
  });
262979
263215
 
262980
- // ../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/utils.js
263216
+ // ../../node_modules/@sap-ux/annotation-converter/dist/utils.js
262981
263217
  var require_utils23 = __commonJS({
262982
- "../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/utils.js"(exports2) {
263218
+ "../../node_modules/@sap-ux/annotation-converter/dist/utils.js"(exports2) {
262983
263219
  "use strict";
262984
263220
  Object.defineProperty(exports2, "__esModule", { value: true });
262985
263221
  exports2.mergeAnnotations = exports2.addGetByValue = exports2.createIndexedFind = exports2.lazy = exports2.Decimal = exports2.Double = exports2.isComplexTypeDefinition = exports2.unalias = exports2.alias = exports2.substringBeforeLast = exports2.substringBeforeFirst = exports2.splitAtLast = exports2.splitAtFirst = exports2.defaultReferences = exports2.TermToTypes = exports2.EnumIsFlag = void 0;
@@ -263170,9 +263406,9 @@ var require_utils23 = __commonJS({
263170
263406
  }
263171
263407
  });
263172
263408
 
263173
- // ../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/converter.js
263409
+ // ../../node_modules/@sap-ux/annotation-converter/dist/converter.js
263174
263410
  var require_converter = __commonJS({
263175
- "../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/converter.js"(exports2) {
263411
+ "../../node_modules/@sap-ux/annotation-converter/dist/converter.js"(exports2) {
263176
263412
  "use strict";
263177
263413
  Object.defineProperty(exports2, "__esModule", { value: true });
263178
263414
  exports2.convert = void 0;
@@ -263478,7 +263714,7 @@ var require_converter = __commonJS({
263478
263714
  return mapAnnotationPath(converter, propertyValue, valueFQN, currentTarget, currentTerm);
263479
263715
  case "Path": {
263480
263716
  if (isAnnotationPath(propertyValue.Path)) {
263481
- return resolveTarget(converter, currentTarget, propertyValue.Path, currentTerm).target;
263717
+ return resolveTarget(converter, currentTarget, converter.unalias(propertyValue.Path), currentTerm).target;
263482
263718
  } else {
263483
263719
  return mapPath(converter, propertyValue, valueFQN, currentTarget, currentTerm);
263484
263720
  }
@@ -263816,9 +264052,10 @@ Hint: If possible, try to maintain the Type property for each Record.
263816
264052
  const [vocAlias, vocTerm] = converter.splitTerm(annotation.term);
263817
264053
  const vocTermWithQualifier = `${vocTerm}${annotation.qualifier ? "#" + annotation.qualifier : ""}`;
263818
264054
  if (vocabularyAliases[vocAlias] === void 0) {
263819
- vocabularyAliases[vocAlias] = {};
264055
+ vocabularyAliases[vocAlias] = { _keys: [] };
263820
264056
  }
263821
264057
  if (!vocabularyAliases[vocAlias].hasOwnProperty(vocTermWithQualifier)) {
264058
+ vocabularyAliases[vocAlias]._keys.push(vocTermWithQualifier);
263822
264059
  (0, utils_1.lazy)(vocabularyAliases[vocAlias], vocTermWithQualifier, () => converter.getConvertedElement(annotation.fullyQualifiedName, annotation, (converter2, rawAnnotation) => convertAnnotation(converter2, target, rawAnnotation)));
263823
264060
  }
263824
264061
  return vocabularyAliases;
@@ -263884,13 +264121,41 @@ Hint: If possible, try to maintain the Type property for each Record.
263884
264121
  return convertedProperty;
263885
264122
  }
263886
264123
  function convertNavigationProperty(converter, rawNavigationProperty) {
263887
- var _a15, _b13, _c6;
264124
+ var _a15, _b13, _c6, _d4, _e2;
263888
264125
  const convertedNavigationProperty = rawNavigationProperty;
263889
264126
  convertedNavigationProperty.referentialConstraint = (_a15 = convertedNavigationProperty.referentialConstraint) !== null && _a15 !== void 0 ? _a15 : [];
264127
+ if (convertedNavigationProperty.referentialConstraint.length === 0) {
264128
+ const annotations = converter.getAnnotations(rawNavigationProperty.fullyQualifiedName);
264129
+ const refConstraints = annotations.find(
264130
+ (annotation) => annotation.term === "com.sap.vocabularies.Common.v1.ReferentialConstraint"
264131
+ /* CommonAnnotationTerms.ReferentialConstraint */
264132
+ );
264133
+ if (refConstraints) {
264134
+ convertedNavigationProperty.referentialConstraint = (_c6 = (_b13 = refConstraints.collection) === null || _b13 === void 0 ? void 0 : _b13.map((record) => {
264135
+ var _a16, _b14;
264136
+ const referencedProperty = (_a16 = record.propertyValues.find((prop) => {
264137
+ return prop.name === "ReferencedProperty";
264138
+ })) === null || _a16 === void 0 ? void 0 : _a16.value;
264139
+ let targetedProperty = "";
264140
+ if (referencedProperty.PropertyPath) {
264141
+ const targetedPropertySplit = referencedProperty.PropertyPath.split("/");
264142
+ targetedPropertySplit.shift();
264143
+ targetedProperty = targetedPropertySplit.join("/");
264144
+ }
264145
+ return {
264146
+ sourceProperty: ((_b14 = record.propertyValues.find((prop) => {
264147
+ return prop.name === "Property";
264148
+ })) === null || _b14 === void 0 ? void 0 : _b14.value).PropertyPath,
264149
+ targetTypeName: convertedNavigationProperty.targetTypeName,
264150
+ targetProperty: targetedProperty
264151
+ };
264152
+ })) !== null && _c6 !== void 0 ? _c6 : [];
264153
+ }
264154
+ }
263890
264155
  if (!isV4NavigationProperty(rawNavigationProperty)) {
263891
- const associationEnd = (_b13 = converter.rawSchema.associations.find((association) => association.fullyQualifiedName === rawNavigationProperty.relationship)) === null || _b13 === void 0 ? void 0 : _b13.associationEnd.find((end) => end.role === rawNavigationProperty.toRole);
264156
+ const associationEnd = (_d4 = converter.rawSchema.associations.find((association) => association.fullyQualifiedName === rawNavigationProperty.relationship)) === null || _d4 === void 0 ? void 0 : _d4.associationEnd.find((end) => end.role === rawNavigationProperty.toRole);
263892
264157
  convertedNavigationProperty.isCollection = (associationEnd === null || associationEnd === void 0 ? void 0 : associationEnd.multiplicity) === "*";
263893
- convertedNavigationProperty.targetTypeName = (_c6 = associationEnd === null || associationEnd === void 0 ? void 0 : associationEnd.type) !== null && _c6 !== void 0 ? _c6 : "";
264158
+ convertedNavigationProperty.targetTypeName = (_e2 = associationEnd === null || associationEnd === void 0 ? void 0 : associationEnd.type) !== null && _e2 !== void 0 ? _e2 : "";
263894
264159
  }
263895
264160
  (0, utils_1.lazy)(convertedNavigationProperty, "targetType", resolveEntityType(converter, rawNavigationProperty.targetTypeName));
263896
264161
  (0, utils_1.lazy)(convertedNavigationProperty, "annotations", resolveAnnotations(converter, rawNavigationProperty));
@@ -263900,7 +264165,7 @@ Hint: If possible, try to maintain the Type property for each Record.
263900
264165
  const convertedActionImport = rawActionImport;
263901
264166
  (0, utils_1.lazy)(convertedActionImport, "annotations", resolveAnnotations(converter, rawActionImport));
263902
264167
  (0, utils_1.lazy)(convertedActionImport, "action", () => {
263903
- const rawActions = converter.rawSchema.actions.filter((rawAction) => !rawAction.isBound && rawAction.fullyQualifiedName.startsWith(rawActionImport.actionName));
264168
+ const rawActions = converter.rawSchema.actions.filter((rawAction) => !rawAction.isBound && rawAction.fullyQualifiedName.startsWith(rawActionImport.actionName + "("));
263904
264169
  if (rawActions.length > 1) {
263905
264170
  converter.logError(`Ambiguous reference in action import: ${rawActionImport.fullyQualifiedName}`);
263906
264171
  }
@@ -263915,6 +264180,11 @@ Hint: If possible, try to maintain the Type property for each Record.
263915
264180
  }
263916
264181
  if (convertedAction.returnType) {
263917
264182
  (0, utils_1.lazy)(convertedAction, "returnEntityType", resolveEntityType(converter, rawAction.returnType));
264183
+ (0, utils_1.lazy)(convertedAction, "returnTypeReference", () => {
264184
+ var _a15, _b13;
264185
+ const typeName = convertedAction.returnType.startsWith("Collection") ? convertedAction.returnType.substring(11, convertedAction.returnType.length - 1) : convertedAction.returnType;
264186
+ return (_b13 = (_a15 = converter.getConvertedEntityType(typeName)) !== null && _a15 !== void 0 ? _a15 : converter.getConvertedComplexType(typeName)) !== null && _b13 !== void 0 ? _b13 : converter.getConvertedTypeDefinition(typeName);
264187
+ });
263918
264188
  }
263919
264189
  (0, utils_1.lazy)(convertedAction, "parameters", converter.convert(rawAction.parameters, convertActionParameter));
263920
264190
  (0, utils_1.lazy)(convertedAction, "annotations", () => {
@@ -263935,7 +264205,11 @@ Hint: If possible, try to maintain the Type property for each Record.
263935
264205
  const convertedActionParameter = rawActionParameter;
263936
264206
  (0, utils_1.lazy)(convertedActionParameter, "typeReference", () => {
263937
264207
  var _a15, _b13;
263938
- return (_b13 = (_a15 = converter.getConvertedEntityType(rawActionParameter.type)) !== null && _a15 !== void 0 ? _a15 : converter.getConvertedComplexType(rawActionParameter.type)) !== null && _b13 !== void 0 ? _b13 : converter.getConvertedTypeDefinition(rawActionParameter.type);
264208
+ let targetType = rawActionParameter.type;
264209
+ if (targetType.startsWith("Collection(")) {
264210
+ targetType = targetType.substring(11, targetType.length - 1);
264211
+ }
264212
+ return (_b13 = (_a15 = converter.getConvertedEntityType(targetType)) !== null && _a15 !== void 0 ? _a15 : converter.getConvertedComplexType(targetType)) !== null && _b13 !== void 0 ? _b13 : converter.getConvertedTypeDefinition(targetType);
263939
264213
  });
263940
264214
  (0, utils_1.lazy)(convertedActionParameter, "annotations", () => {
263941
264215
  const unspecificOverloadTarget = rawActionParameter.fullyQualifiedName.substring(0, rawActionParameter.fullyQualifiedName.indexOf("(")) + rawActionParameter.fullyQualifiedName.substring(rawActionParameter.fullyQualifiedName.lastIndexOf(")") + 1);
@@ -263980,8 +264254,8 @@ Hint: If possible, try to maintain the Type property for each Record.
263980
264254
  (0, utils_1.lazy)(convertedOutput, "complexTypes", converter.convert(converter.rawSchema.complexTypes, convertComplexType));
263981
264255
  (0, utils_1.lazy)(convertedOutput, "actionImports", converter.convert(converter.rawSchema.actionImports, convertActionImport));
263982
264256
  (0, utils_1.lazy)(convertedOutput, "typeDefinitions", converter.convert(converter.rawSchema.typeDefinitions, convertTypeDefinition));
263983
- convertedOutput.resolvePath = function resolvePath(path5) {
263984
- const targetResolution = resolveTarget(converter, void 0, path5);
264257
+ convertedOutput.resolvePath = function resolvePath(path5, startingPoint) {
264258
+ const targetResolution = resolveTarget(converter, startingPoint, path5);
263985
264259
  if (targetResolution.target) {
263986
264260
  appendObjectPath(targetResolution.objectPath, targetResolution.target);
263987
264261
  }
@@ -263993,9 +264267,9 @@ Hint: If possible, try to maintain the Type property for each Record.
263993
264267
  }
263994
264268
  });
263995
264269
 
263996
- // ../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/writeback.js
264270
+ // ../../node_modules/@sap-ux/annotation-converter/dist/writeback.js
263997
264271
  var require_writeback = __commonJS({
263998
- "../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/writeback.js"(exports2) {
264272
+ "../../node_modules/@sap-ux/annotation-converter/dist/writeback.js"(exports2) {
263999
264273
  "use strict";
264000
264274
  Object.defineProperty(exports2, "__esModule", { value: true });
264001
264275
  exports2.revertTermToGenericType = void 0;
@@ -264157,7 +264431,7 @@ var require_writeback = __commonJS({
264157
264431
  var restrictedKeys = ["$Type", "term", "__source", "qualifier", "ActionTarget", "fullyQualifiedName", "annotations"];
264158
264432
  function revertAnnotationsToRawType(references, currentAnnotations, targetAnnotations) {
264159
264433
  Object.keys(currentAnnotations).filter((key) => key !== "_annotations").forEach((key) => {
264160
- Object.keys(currentAnnotations[key]).forEach((term) => {
264434
+ Object.keys(currentAnnotations[key]).filter((key2) => key2 !== "_keys").forEach((term) => {
264161
264435
  const parsedAnnotation = revertTermToGenericType(references, currentAnnotations[key][term]);
264162
264436
  if (!parsedAnnotation.term) {
264163
264437
  const unaliasedTerm = (0, utils_1.unalias)(references, `${key}.${term}`);
@@ -264243,9 +264517,9 @@ var require_writeback = __commonJS({
264243
264517
  }
264244
264518
  });
264245
264519
 
264246
- // ../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/index.js
264520
+ // ../../node_modules/@sap-ux/annotation-converter/dist/index.js
264247
264521
  var require_dist32 = __commonJS({
264248
- "../../node_modules/@sap-ux/inquirer-common/node_modules/@sap-ux/annotation-converter/dist/index.js"(exports2) {
264522
+ "../../node_modules/@sap-ux/annotation-converter/dist/index.js"(exports2) {
264249
264523
  "use strict";
264250
264524
  var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
264251
264525
  if (k2 === void 0) k2 = k;
@@ -272256,7 +272530,7 @@ var init_package = __esm({
272256
272530
  package_default = {
272257
272531
  name: "@sap/ux-ui5-tooling",
272258
272532
  displayName: "SAP Fiori Tools \u2013 UI5 Tooling",
272259
- version: "1.19.6",
272533
+ version: "1.20.0",
272260
272534
  description: "SAP Fiori Tools \u2013 UI5 Tooling",
272261
272535
  publisher: "SAPSE",
272262
272536
  license: "SEE LICENSE IN LICENSE",
@@ -272291,7 +272565,7 @@ var init_package = __esm({
272291
272565
  madge: "madge --warning --circular --extensions ts ./"
272292
272566
  },
272293
272567
  dependencies: {
272294
- "@sap-ux/preview-middleware": "0.23.54",
272568
+ "@sap-ux/preview-middleware": "0.23.59",
272295
272569
  "@ui5/fs": "3.0.6",
272296
272570
  "connect-livereload": "0.6.1",
272297
272571
  express: "4.21.2",
@@ -272307,21 +272581,21 @@ var init_package = __esm({
272307
272581
  "@sap-ux/axios-extension": "1.24.2",
272308
272582
  "@sap-ux/backend-proxy-middleware": "0.10.12",
272309
272583
  "@sap-ux/btp-utils": "1.1.5",
272310
- "@sap-ux/deploy-tooling": "0.17.0",
272584
+ "@sap-ux/deploy-tooling": "0.17.2",
272311
272585
  "@sap-ux/feature-toggle": "0.3.4",
272312
272586
  "@sap-ux/guided-answers-helper": "0.4.1",
272313
272587
  "@sap-ux/logger": "0.7.1",
272314
272588
  "@sap-ux/nodejs-utils": "0.2.8",
272315
- "@sap-ux/project-access": "1.32.8",
272589
+ "@sap-ux/project-access": "1.32.9",
272316
272590
  "@sap-ux/reload-middleware": "0.3.5",
272317
272591
  "@sap-ux/serve-static-middleware": "0.4.2",
272318
272592
  "@sap-ux/store": "1.3.3",
272319
272593
  "@sap-ux/system-access": "0.6.28",
272320
- "@sap-ux/telemetry": "0.6.38",
272594
+ "@sap-ux/telemetry": "0.6.39",
272321
272595
  "@sap-ux/ui5-config": "0.29.9",
272322
272596
  "@sap-ux/ui5-info": "0.13.2",
272323
272597
  "@sap-ux/ui5-proxy-middleware": "1.6.5",
272324
- "@sap/ux-app-templates": "1.19.6",
272598
+ "@sap/ux-app-templates": "1.20.0",
272325
272599
  "@types/fs-extra": "11.0.4",
272326
272600
  "@types/marked": "4.0.1",
272327
272601
  "@types/prompts": "2.4.9",
@@ -274203,7 +274477,7 @@ function validateUI5CLIVersion() {
274203
274477
  if (modulePath) {
274204
274478
  const ui5CliPkgJsonPath = (0, import_path4.join)(modulePath, "node_modules", moduleName, import_project_access2.FileName.Package);
274205
274479
  const ui5CliPkgJson = JSON.parse((0, import_fs5.readFileSync)(ui5CliPkgJsonPath, { encoding: "utf8" }));
274206
- if ((0, import_semver4.valid)(ui5CliPkgJson.version) && !(0, import_semver4.gte)(ui5CliPkgJson.version, "3.0.0")) {
274480
+ if ((0, import_semver4.valid)(ui5CliPkgJson.version) && !(0, import_semver4.gte)(ui5CliPkgJson.version, "4.0.0")) {
274207
274481
  throw new ValidationError(instance.t("UPDATE_UI5_CLI"));
274208
274482
  }
274209
274483
  }