@sap/ux-ui5-tooling 1.11.5 → 1.12.1

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.
@@ -568,7 +568,7 @@ function get() {
568
568
  },
569
569
  interpolation: {
570
570
  escapeValue: true,
571
- format: function format2(value, _format, lng) {
571
+ format: function format4(value, _format, lng) {
572
572
  return value;
573
573
  },
574
574
  prefix: "{{",
@@ -3090,6 +3090,8 @@ var require_constants = __commonJS({
3090
3090
  FileName5["fioriSandboxConfig"] = "fioriSandboxConfig.json";
3091
3091
  FileName5["View"] = "view.xml";
3092
3092
  FileName5["ExtConfigJson"] = ".extconfig.json";
3093
+ FileName5["ManifestAppDescrVar"] = "manifest.appdescr_variant";
3094
+ FileName5["TsConfigJson"] = "tsconfig.json";
3093
3095
  })(FileName4 || (exports2.FileName = FileName4 = {}));
3094
3096
  var FioriToolsSettings;
3095
3097
  (function(FioriToolsSettings2) {
@@ -3259,7 +3261,7 @@ var require_visit = __commonJS({
3259
3261
  var BREAK = Symbol("break visit");
3260
3262
  var SKIP = Symbol("skip children");
3261
3263
  var REMOVE = Symbol("remove node");
3262
- function visit(node, visitor) {
3264
+ function visit3(node, visitor) {
3263
3265
  const visitor_ = initVisitor(visitor);
3264
3266
  if (Node.isDocument(node)) {
3265
3267
  const cd = visit_(null, node.contents, visitor_, Object.freeze([node]));
@@ -3268,9 +3270,9 @@ var require_visit = __commonJS({
3268
3270
  } else
3269
3271
  visit_(null, node, visitor_, Object.freeze([]));
3270
3272
  }
3271
- visit.BREAK = BREAK;
3272
- visit.SKIP = SKIP;
3273
- visit.REMOVE = REMOVE;
3273
+ visit3.BREAK = BREAK;
3274
+ visit3.SKIP = SKIP;
3275
+ visit3.REMOVE = REMOVE;
3274
3276
  function visit_(key, node, visitor, path2) {
3275
3277
  const ctrl = callVisitor(key, node, visitor, path2);
3276
3278
  if (Node.isNode(ctrl) || Node.isPair(ctrl)) {
@@ -3405,7 +3407,7 @@ var require_visit = __commonJS({
3405
3407
  throw new Error(`Cannot replace node with ${pt} parent`);
3406
3408
  }
3407
3409
  }
3408
- exports2.visit = visit;
3410
+ exports2.visit = visit3;
3409
3411
  exports2.visitAsync = visitAsync;
3410
3412
  }
3411
3413
  });
@@ -3415,7 +3417,7 @@ var require_directives = __commonJS({
3415
3417
  "../../node_modules/yaml/dist/doc/directives.js"(exports2) {
3416
3418
  "use strict";
3417
3419
  var Node = require_Node();
3418
- var visit = require_visit();
3420
+ var visit3 = require_visit();
3419
3421
  var escapeChars = {
3420
3422
  "!": "%21",
3421
3423
  ",": "%2C",
@@ -3553,7 +3555,7 @@ var require_directives = __commonJS({
3553
3555
  let tagNames;
3554
3556
  if (doc && tagEntries.length > 0 && Node.isNode(doc.contents)) {
3555
3557
  const tags = {};
3556
- visit.visit(doc.contents, (_key, node) => {
3558
+ visit3.visit(doc.contents, (_key, node) => {
3557
3559
  if (Node.isNode(node) && node.tag)
3558
3560
  tags[node.tag] = true;
3559
3561
  });
@@ -3580,7 +3582,7 @@ var require_anchors = __commonJS({
3580
3582
  "../../node_modules/yaml/dist/doc/anchors.js"(exports2) {
3581
3583
  "use strict";
3582
3584
  var Node = require_Node();
3583
- var visit = require_visit();
3585
+ var visit3 = require_visit();
3584
3586
  function anchorIsValid(anchor) {
3585
3587
  if (/[\x00-\x19\s,[\]{}]/.test(anchor)) {
3586
3588
  const sa = JSON.stringify(anchor);
@@ -3591,7 +3593,7 @@ var require_anchors = __commonJS({
3591
3593
  }
3592
3594
  function anchorNames(root) {
3593
3595
  const anchors = /* @__PURE__ */ new Set();
3594
- visit.visit(root, {
3596
+ visit3.visit(root, {
3595
3597
  Value(_key, node) {
3596
3598
  if (node.anchor)
3597
3599
  anchors.add(node.anchor);
@@ -3651,7 +3653,7 @@ var require_Alias = __commonJS({
3651
3653
  "../../node_modules/yaml/dist/nodes/Alias.js"(exports2) {
3652
3654
  "use strict";
3653
3655
  var anchors = require_anchors();
3654
- var visit = require_visit();
3656
+ var visit3 = require_visit();
3655
3657
  var Node = require_Node();
3656
3658
  var Alias = class extends Node.NodeBase {
3657
3659
  constructor(source) {
@@ -3669,10 +3671,10 @@ var require_Alias = __commonJS({
3669
3671
  */
3670
3672
  resolve(doc) {
3671
3673
  let found = void 0;
3672
- visit.visit(doc, {
3674
+ visit3.visit(doc, {
3673
3675
  Node: (_key, node) => {
3674
3676
  if (node === this)
3675
- return visit.visit.BREAK;
3677
+ return visit3.visit.BREAK;
3676
3678
  if (node.anchor === this.source)
3677
3679
  found = node;
3678
3680
  }
@@ -5368,14 +5370,14 @@ var require_bool = __commonJS({
5368
5370
  var require_stringifyNumber = __commonJS({
5369
5371
  "../../node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
5370
5372
  "use strict";
5371
- function stringifyNumber({ format: format2, minFractionDigits, tag, value }) {
5373
+ function stringifyNumber({ format: format4, minFractionDigits, tag, value }) {
5372
5374
  if (typeof value === "bigint")
5373
5375
  return String(value);
5374
5376
  const num = typeof value === "number" ? value : Number(value);
5375
5377
  if (!isFinite(num))
5376
5378
  return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
5377
5379
  let n = JSON.stringify(value);
5378
- if (!format2 && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n)) {
5380
+ if (!format4 && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n)) {
5379
5381
  let i = n.indexOf(".");
5380
5382
  if (i < 0) {
5381
5383
  i = n.length;
@@ -8525,15 +8527,15 @@ var require_cst_visit = __commonJS({
8525
8527
  var BREAK = Symbol("break visit");
8526
8528
  var SKIP = Symbol("skip children");
8527
8529
  var REMOVE = Symbol("remove item");
8528
- function visit(cst, visitor) {
8530
+ function visit3(cst, visitor) {
8529
8531
  if ("type" in cst && cst.type === "document")
8530
8532
  cst = { start: cst.start, value: cst.value };
8531
8533
  _visit(Object.freeze([]), cst, visitor);
8532
8534
  }
8533
- visit.BREAK = BREAK;
8534
- visit.SKIP = SKIP;
8535
- visit.REMOVE = REMOVE;
8536
- visit.itemAtPath = (cst, path2) => {
8535
+ visit3.BREAK = BREAK;
8536
+ visit3.SKIP = SKIP;
8537
+ visit3.REMOVE = REMOVE;
8538
+ visit3.itemAtPath = (cst, path2) => {
8537
8539
  let item = cst;
8538
8540
  for (const [field, index] of path2) {
8539
8541
  const tok = item == null ? void 0 : item[field];
@@ -8544,8 +8546,8 @@ var require_cst_visit = __commonJS({
8544
8546
  }
8545
8547
  return item;
8546
8548
  };
8547
- visit.parentCollection = (cst, path2) => {
8548
- const parent = visit.itemAtPath(cst, path2.slice(0, -1));
8549
+ visit3.parentCollection = (cst, path2) => {
8550
+ const parent = visit3.itemAtPath(cst, path2.slice(0, -1));
8549
8551
  const field = path2[path2.length - 1][0];
8550
8552
  const coll = parent == null ? void 0 : parent[field];
8551
8553
  if (coll && "items" in coll)
@@ -8576,7 +8578,7 @@ var require_cst_visit = __commonJS({
8576
8578
  }
8577
8579
  return typeof ctrl === "function" ? ctrl(item, path2) : ctrl;
8578
8580
  }
8579
- exports2.visit = visit;
8581
+ exports2.visit = visit3;
8580
8582
  }
8581
8583
  });
8582
8584
 
@@ -10177,7 +10179,7 @@ var require_public_api = __commonJS({
10177
10179
  }
10178
10180
  return doc;
10179
10181
  }
10180
- function parse2(src, reviver, options2) {
10182
+ function parse4(src, reviver, options2) {
10181
10183
  let _reviver = void 0;
10182
10184
  if (typeof reviver === "function") {
10183
10185
  _reviver = reviver;
@@ -10216,7 +10218,7 @@ var require_public_api = __commonJS({
10216
10218
  }
10217
10219
  return new Document.Document(value, _replacer, options2).toString(options2);
10218
10220
  }
10219
- exports2.parse = parse2;
10221
+ exports2.parse = parse4;
10220
10222
  exports2.parseAllDocuments = parseAllDocuments;
10221
10223
  exports2.parseDocument = parseDocument2;
10222
10224
  exports2.stringify = stringify;
@@ -10242,7 +10244,7 @@ var require_dist3 = __commonJS({
10242
10244
  var lineCounter = require_line_counter();
10243
10245
  var parser = require_parser();
10244
10246
  var publicApi = require_public_api();
10245
- var visit = require_visit();
10247
+ var visit3 = require_visit();
10246
10248
  exports2.Composer = composer.Composer;
10247
10249
  exports2.Document = Document.Document;
10248
10250
  exports2.Schema = Schema.Schema;
@@ -10270,8 +10272,8 @@ var require_dist3 = __commonJS({
10270
10272
  exports2.parseAllDocuments = publicApi.parseAllDocuments;
10271
10273
  exports2.parseDocument = publicApi.parseDocument;
10272
10274
  exports2.stringify = publicApi.stringify;
10273
- exports2.visit = visit.visit;
10274
- exports2.visitAsync = visit.visitAsync;
10275
+ exports2.visit = visit3.visit;
10276
+ exports2.visitAsync = visit3.visitAsync;
10275
10277
  }
10276
10278
  });
10277
10279
 
@@ -10477,7 +10479,7 @@ var require_json5 = __commonJS({
10477
10479
  isIdContinueChar: function isIdContinueChar(c2) {
10478
10480
  return typeof c2 === "string" && (c2 >= "a" && c2 <= "z" || c2 >= "A" && c2 <= "Z" || c2 >= "0" && c2 <= "9" || c2 === "$" || c2 === "_" || c2 === "\u200C" || c2 === "\u200D" || unicode.ID_Continue.test(c2));
10479
10481
  },
10480
- isDigit: function isDigit(c2) {
10482
+ isDigit: function isDigit2(c2) {
10481
10483
  return typeof c2 === "string" && /[0-9]/.test(c2);
10482
10484
  },
10483
10485
  isHexDigit: function isHexDigit(c2) {
@@ -10493,7 +10495,7 @@ var require_json5 = __commonJS({
10493
10495
  var token2;
10494
10496
  var key;
10495
10497
  var root;
10496
- var parse2 = function parse3(text, reviver) {
10498
+ var parse4 = function parse5(text, reviver) {
10497
10499
  source = String(text);
10498
10500
  parseState = "start";
10499
10501
  stack = [];
@@ -11540,7 +11542,7 @@ var require_json5 = __commonJS({
11540
11542
  }
11541
11543
  };
11542
11544
  var JSON5 = {
11543
- parse: parse2,
11545
+ parse: parse4,
11544
11546
  stringify
11545
11547
  };
11546
11548
  var lib = JSON5;
@@ -11595,7 +11597,7 @@ var require_yaml = __commonJS({
11595
11597
  }
11596
11598
  return target;
11597
11599
  }
11598
- function repeat(string, count) {
11600
+ function repeat2(string, count) {
11599
11601
  var result2 = "", cycle;
11600
11602
  for (cycle = 0; cycle < count; cycle += 1) {
11601
11603
  result2 += string;
@@ -11608,7 +11610,7 @@ var require_yaml = __commonJS({
11608
11610
  var isNothing_1 = isNothing;
11609
11611
  var isObject_1 = isObject;
11610
11612
  var toArray_1 = toArray;
11611
- var repeat_1 = repeat;
11613
+ var repeat_1 = repeat2;
11612
11614
  var isNegativeZero_1 = isNegativeZero;
11613
11615
  var extend_1 = extend;
11614
11616
  var common = {
@@ -14918,7 +14920,7 @@ var require_ms = __commonJS({
14918
14920
  options2 = options2 || {};
14919
14921
  var type = typeof val2;
14920
14922
  if (type === "string" && val2.length > 0) {
14921
- return parse2(val2);
14923
+ return parse4(val2);
14922
14924
  } else if (type === "number" && isFinite(val2)) {
14923
14925
  return options2.long ? fmtLong(val2) : fmtShort(val2);
14924
14926
  }
@@ -14926,7 +14928,7 @@ var require_ms = __commonJS({
14926
14928
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(val2)
14927
14929
  );
14928
14930
  };
14929
- function parse2(str) {
14931
+ function parse4(str) {
14930
14932
  str = String(str);
14931
14933
  if (str.length > 100) {
14932
14934
  return;
@@ -15067,12 +15069,12 @@ var require_common2 = __commonJS({
15067
15069
  args.unshift("%O");
15068
15070
  }
15069
15071
  let index = 0;
15070
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format2) => {
15072
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format4) => {
15071
15073
  if (match === "%%") {
15072
15074
  return "%";
15073
15075
  }
15074
15076
  index++;
15075
- const formatter = createDebug.formatters[format2];
15077
+ const formatter = createDebug.formatters[format4];
15076
15078
  if (typeof formatter === "function") {
15077
15079
  const val2 = args[index];
15078
15080
  match = formatter.call(self2, val2);
@@ -27355,12 +27357,12 @@ var require_common3 = __commonJS({
27355
27357
  args.unshift("%O");
27356
27358
  }
27357
27359
  let index = 0;
27358
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format2) => {
27360
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format4) => {
27359
27361
  if (match === "%%") {
27360
27362
  return match;
27361
27363
  }
27362
27364
  index++;
27363
- const formatter = createDebug.formatters[format2];
27365
+ const formatter = createDebug.formatters[format4];
27364
27366
  if (typeof formatter === "function") {
27365
27367
  const val2 = args[index];
27366
27368
  match = formatter.call(self2, val2);
@@ -28548,7 +28550,7 @@ var require_axios = __commonJS({
28548
28550
  }
28549
28551
  var toJSONObject = (obj) => {
28550
28552
  const stack = new Array(10);
28551
- const visit = (source, i) => {
28553
+ const visit3 = (source, i) => {
28552
28554
  if (isObject(source)) {
28553
28555
  if (stack.indexOf(source) >= 0) {
28554
28556
  return;
@@ -28557,7 +28559,7 @@ var require_axios = __commonJS({
28557
28559
  stack[i] = source;
28558
28560
  const target = isArray(source) ? [] : {};
28559
28561
  forEach(source, (value, key) => {
28560
- const reducedValue = visit(value, i + 1);
28562
+ const reducedValue = visit3(value, i + 1);
28561
28563
  !isUndefined(reducedValue) && (target[key] = reducedValue);
28562
28564
  });
28563
28565
  stack[i] = void 0;
@@ -28566,7 +28568,7 @@ var require_axios = __commonJS({
28566
28568
  }
28567
28569
  return source;
28568
28570
  };
28569
- return visit(obj, 0);
28571
+ return visit3(obj, 0);
28570
28572
  };
28571
28573
  var isAsyncFn = kindOfTest("AsyncFunction");
28572
28574
  var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
@@ -29305,7 +29307,7 @@ var require_axios = __commonJS({
29305
29307
  }
29306
29308
  return deleted;
29307
29309
  }
29308
- normalize(format2) {
29310
+ normalize(format4) {
29309
29311
  const self2 = this;
29310
29312
  const headers = {};
29311
29313
  utils$1.forEach(this, (value, header) => {
@@ -29315,7 +29317,7 @@ var require_axios = __commonJS({
29315
29317
  delete self2[header];
29316
29318
  return;
29317
29319
  }
29318
- const normalized = format2 ? formatHeader(header) : String(header).trim();
29320
+ const normalized = format4 ? formatHeader(header) : String(header).trim();
29319
29321
  if (normalized !== header) {
29320
29322
  delete self2[header];
29321
29323
  }
@@ -30543,15 +30545,15 @@ var require_axios = __commonJS({
30543
30545
  });
30544
30546
  var renderReason = (reason) => `- ${reason}`;
30545
30547
  var isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
30546
- var adapters2 = {
30547
- getAdapter: (adapters3) => {
30548
- adapters3 = utils$1.isArray(adapters3) ? adapters3 : [adapters3];
30549
- const { length } = adapters3;
30548
+ var adapters = {
30549
+ getAdapter: (adapters2) => {
30550
+ adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
30551
+ const { length } = adapters2;
30550
30552
  let nameOrAdapter;
30551
30553
  let adapter;
30552
30554
  const rejectedReasons = {};
30553
30555
  for (let i = 0; i < length; i++) {
30554
- nameOrAdapter = adapters3[i];
30556
+ nameOrAdapter = adapters2[i];
30555
30557
  let id;
30556
30558
  adapter = nameOrAdapter;
30557
30559
  if (!isResolvedHandle(nameOrAdapter)) {
@@ -30597,7 +30599,7 @@ var require_axios = __commonJS({
30597
30599
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
30598
30600
  config.headers.setContentType("application/x-www-form-urlencoded", false);
30599
30601
  }
30600
- const adapter = adapters2.getAdapter(config.adapter || defaults$1.adapter);
30602
+ const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
30601
30603
  return adapter(config).then(function onAdapterResolution(response) {
30602
30604
  throwIfCancellationRequested(config);
30603
30605
  response.data = transformData.call(
@@ -31088,7 +31090,7 @@ var require_axios = __commonJS({
31088
31090
  axios.mergeConfig = mergeConfig;
31089
31091
  axios.AxiosHeaders = AxiosHeaders$1;
31090
31092
  axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
31091
- axios.getAdapter = adapters2.getAdapter;
31093
+ axios.getAdapter = adapters.getAdapter;
31092
31094
  axios.HttpStatusCode = HttpStatusCode$1;
31093
31095
  axios.default = axios;
31094
31096
  module2.exports = axios;
@@ -31816,7 +31818,7 @@ var require_stringify2 = __commonJS({
31816
31818
  indices: function indices(prefix, key) {
31817
31819
  return prefix + "[" + key + "]";
31818
31820
  },
31819
- repeat: function repeat(prefix) {
31821
+ repeat: function repeat2(prefix) {
31820
31822
  return prefix;
31821
31823
  }
31822
31824
  };
@@ -31941,14 +31943,14 @@ var require_stringify2 = __commonJS({
31941
31943
  if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
31942
31944
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
31943
31945
  }
31944
- var format2 = formats["default"];
31946
+ var format4 = formats["default"];
31945
31947
  if (typeof opts.format !== "undefined") {
31946
31948
  if (!has.call(formats.formatters, opts.format)) {
31947
31949
  throw new TypeError("Unknown format option provided.");
31948
31950
  }
31949
- format2 = opts.format;
31951
+ format4 = opts.format;
31950
31952
  }
31951
- var formatter = formats.formatters[format2];
31953
+ var formatter = formats.formatters[format4];
31952
31954
  var filter = defaults.filter;
31953
31955
  if (typeof opts.filter === "function" || isArray(opts.filter)) {
31954
31956
  filter = opts.filter;
@@ -32247,11 +32249,11 @@ var require_lib = __commonJS({
32247
32249
  "../lib/odata-client/node_modules/qs/lib/index.js"(exports2, module2) {
32248
32250
  "use strict";
32249
32251
  var stringify = require_stringify2();
32250
- var parse2 = require_parse();
32252
+ var parse4 = require_parse();
32251
32253
  var formats = require_formats();
32252
32254
  module2.exports = {
32253
32255
  formats,
32254
- parse: parse2,
32256
+ parse: parse4,
32255
32257
  stringify
32256
32258
  };
32257
32259
  }
@@ -33009,7 +33011,7 @@ var require_esprima = __commonJS({
33009
33011
  var jsx_parser_1 = __webpack_require__(3);
33010
33012
  var parser_1 = __webpack_require__(8);
33011
33013
  var tokenizer_1 = __webpack_require__(15);
33012
- function parse2(code, options2, delegate) {
33014
+ function parse4(code, options2, delegate) {
33013
33015
  var commentHandler = null;
33014
33016
  var proxyDelegate = function(node, metadata) {
33015
33017
  if (delegate) {
@@ -33054,17 +33056,17 @@ var require_esprima = __commonJS({
33054
33056
  }
33055
33057
  return ast;
33056
33058
  }
33057
- exports3.parse = parse2;
33059
+ exports3.parse = parse4;
33058
33060
  function parseModule(code, options2, delegate) {
33059
33061
  var parsingOptions = options2 || {};
33060
33062
  parsingOptions.sourceType = "module";
33061
- return parse2(code, parsingOptions, delegate);
33063
+ return parse4(code, parsingOptions, delegate);
33062
33064
  }
33063
33065
  exports3.parseModule = parseModule;
33064
33066
  function parseScript(code, options2, delegate) {
33065
33067
  var parsingOptions = options2 || {};
33066
33068
  parsingOptions.sourceType = "script";
33067
- return parse2(code, parsingOptions, delegate);
33069
+ return parse4(code, parsingOptions, delegate);
33068
33070
  }
33069
33071
  exports3.parseScript = parseScript;
33070
33072
  function tokenize(code, options2, delegate) {
@@ -40561,7 +40563,7 @@ var require_parse2 = __commonJS({
40561
40563
  }
40562
40564
  }
40563
40565
  var isObject = (subject) => Object(subject) === subject;
40564
- var parse2 = (code, rev, no_comments) => {
40566
+ var parse4 = (code, rev, no_comments) => {
40565
40567
  clean();
40566
40568
  tokens = tokenize(code);
40567
40569
  reviver = rev;
@@ -40590,7 +40592,7 @@ var require_parse2 = __commonJS({
40590
40592
  return result2;
40591
40593
  };
40592
40594
  module2.exports = {
40593
- parse: parse2,
40595
+ parse: parse4,
40594
40596
  tokenize
40595
40597
  };
40596
40598
  }
@@ -40602,8 +40604,8 @@ var require_repeat_string = __commonJS({
40602
40604
  "use strict";
40603
40605
  var res = "";
40604
40606
  var cache;
40605
- module2.exports = repeat;
40606
- function repeat(str, num) {
40607
+ module2.exports = repeat2;
40608
+ function repeat2(str, num) {
40607
40609
  if (typeof str !== "string") {
40608
40610
  throw new TypeError("expected a string");
40609
40611
  }
@@ -40642,7 +40644,7 @@ var require_stringify3 = __commonJS({
40642
40644
  isNumber,
40643
40645
  isString
40644
40646
  } = require_util();
40645
- var repeat = require_repeat_string();
40647
+ var repeat2 = require_repeat_string();
40646
40648
  var {
40647
40649
  PREFIX_BEFORE_ALL,
40648
40650
  PREFIX_BEFORE,
@@ -40800,7 +40802,7 @@ var require_stringify3 = __commonJS({
40800
40802
  default:
40801
40803
  }
40802
40804
  }
40803
- var get_indent = (space) => isString(space) ? space : isNumber(space) ? repeat(SPACE, space) : EMPTY;
40805
+ var get_indent = (space) => isString(space) ? space : isNumber(space) ? repeat2(SPACE, space) : EMPTY;
40804
40806
  var { toString } = Object.prototype;
40805
40807
  var PRIMITIVE_OBJECT_TYPES = [
40806
40808
  "[object Number]",
@@ -40834,12 +40836,12 @@ var require_stringify3 = __commonJS({
40834
40836
  // ../../node_modules/comment-json/src/index.js
40835
40837
  var require_src4 = __commonJS({
40836
40838
  "../../node_modules/comment-json/src/index.js"(exports2, module2) {
40837
- var { parse: parse2, tokenize } = require_parse2();
40839
+ var { parse: parse4, tokenize } = require_parse2();
40838
40840
  var stringify = require_stringify3();
40839
40841
  var { CommentArray } = require_array();
40840
40842
  var { assign: assign2 } = require_common5();
40841
40843
  module2.exports = {
40842
- parse: parse2,
40844
+ parse: parse4,
40843
40845
  stringify,
40844
40846
  tokenize,
40845
40847
  CommentArray,
@@ -45446,7 +45448,7 @@ var require_lodash = __commonJS({
45446
45448
  }
45447
45449
  return nativeParseInt(toString(string).replace(reTrimStart, ""), radix || 0);
45448
45450
  }
45449
- function repeat(string, n, guard) {
45451
+ function repeat2(string, n, guard) {
45450
45452
  if (guard ? isIterateeCall(string, n, guard) : n === undefined2) {
45451
45453
  n = 1;
45452
45454
  } else {
@@ -46102,7 +46104,7 @@ var require_lodash = __commonJS({
46102
46104
  lodash.random = random;
46103
46105
  lodash.reduce = reduce;
46104
46106
  lodash.reduceRight = reduceRight;
46105
- lodash.repeat = repeat;
46107
+ lodash.repeat = repeat2;
46106
46108
  lodash.replace = replace;
46107
46109
  lodash.result = result2;
46108
46110
  lodash.round = round;
@@ -49183,12 +49185,12 @@ var require_common6 = __commonJS({
49183
49185
  args.unshift("%O");
49184
49186
  }
49185
49187
  let index = 0;
49186
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format2) => {
49188
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format4) => {
49187
49189
  if (match === "%%") {
49188
49190
  return "%";
49189
49191
  }
49190
49192
  index++;
49191
- const formatter = createDebug.formatters[format2];
49193
+ const formatter = createDebug.formatters[format4];
49192
49194
  if (typeof formatter === "function") {
49193
49195
  const val2 = args[index];
49194
49196
  match = formatter.call(self2, val2);
@@ -49954,7 +49956,7 @@ var require_validator = __commonJS({
49954
49956
  return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i));
49955
49957
  i = afterAmp;
49956
49958
  } else {
49957
- if (reachedRoot === true && !isWhiteSpace(xmlData[i])) {
49959
+ if (reachedRoot === true && !isWhiteSpace2(xmlData[i])) {
49958
49960
  return getErrorObject("InvalidXml", "Extra text at the end", getLineNumberForPosition(xmlData, i));
49959
49961
  }
49960
49962
  }
@@ -49964,7 +49966,7 @@ var require_validator = __commonJS({
49964
49966
  }
49965
49967
  }
49966
49968
  } else {
49967
- if (isWhiteSpace(xmlData[i])) {
49969
+ if (isWhiteSpace2(xmlData[i])) {
49968
49970
  continue;
49969
49971
  }
49970
49972
  return getErrorObject("InvalidChar", "char '" + xmlData[i] + "' is not expected.", getLineNumberForPosition(xmlData, i));
@@ -49979,7 +49981,7 @@ var require_validator = __commonJS({
49979
49981
  }
49980
49982
  return true;
49981
49983
  };
49982
- function isWhiteSpace(char) {
49984
+ function isWhiteSpace2(char) {
49983
49985
  return char === " " || char === " " || char === "\n" || char === "\r";
49984
49986
  }
49985
49987
  function readPI(xmlData, i) {
@@ -53396,7 +53398,7 @@ var require_axios2 = __commonJS({
53396
53398
  }
53397
53399
  var toJSONObject = (obj) => {
53398
53400
  const stack = new Array(10);
53399
- const visit = (source, i) => {
53401
+ const visit3 = (source, i) => {
53400
53402
  if (isObject(source)) {
53401
53403
  if (stack.indexOf(source) >= 0) {
53402
53404
  return;
@@ -53405,7 +53407,7 @@ var require_axios2 = __commonJS({
53405
53407
  stack[i] = source;
53406
53408
  const target = isArray(source) ? [] : {};
53407
53409
  forEach(source, (value, key) => {
53408
- const reducedValue = visit(value, i + 1);
53410
+ const reducedValue = visit3(value, i + 1);
53409
53411
  !isUndefined(reducedValue) && (target[key] = reducedValue);
53410
53412
  });
53411
53413
  stack[i] = void 0;
@@ -53414,7 +53416,7 @@ var require_axios2 = __commonJS({
53414
53416
  }
53415
53417
  return source;
53416
53418
  };
53417
- return visit(obj, 0);
53419
+ return visit3(obj, 0);
53418
53420
  };
53419
53421
  var isAsyncFn = kindOfTest("AsyncFunction");
53420
53422
  var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
@@ -54135,7 +54137,7 @@ var require_axios2 = __commonJS({
54135
54137
  }
54136
54138
  return deleted;
54137
54139
  }
54138
- normalize(format2) {
54140
+ normalize(format4) {
54139
54141
  const self2 = this;
54140
54142
  const headers = {};
54141
54143
  utils.forEach(this, (value, header) => {
@@ -54145,7 +54147,7 @@ var require_axios2 = __commonJS({
54145
54147
  delete self2[header];
54146
54148
  return;
54147
54149
  }
54148
- const normalized = format2 ? formatHeader(header) : String(header).trim();
54150
+ const normalized = format4 ? formatHeader(header) : String(header).trim();
54149
54151
  if (normalized !== header) {
54150
54152
  delete self2[header];
54151
54153
  }
@@ -55374,15 +55376,15 @@ var require_axios2 = __commonJS({
55374
55376
  });
55375
55377
  var renderReason = (reason) => `- ${reason}`;
55376
55378
  var isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;
55377
- var adapters2 = {
55378
- getAdapter: (adapters3) => {
55379
- adapters3 = utils.isArray(adapters3) ? adapters3 : [adapters3];
55380
- const { length } = adapters3;
55379
+ var adapters = {
55380
+ getAdapter: (adapters2) => {
55381
+ adapters2 = utils.isArray(adapters2) ? adapters2 : [adapters2];
55382
+ const { length } = adapters2;
55381
55383
  let nameOrAdapter;
55382
55384
  let adapter;
55383
55385
  const rejectedReasons = {};
55384
55386
  for (let i = 0; i < length; i++) {
55385
- nameOrAdapter = adapters3[i];
55387
+ nameOrAdapter = adapters2[i];
55386
55388
  let id;
55387
55389
  adapter = nameOrAdapter;
55388
55390
  if (!isResolvedHandle(nameOrAdapter)) {
@@ -55428,7 +55430,7 @@ var require_axios2 = __commonJS({
55428
55430
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
55429
55431
  config.headers.setContentType("application/x-www-form-urlencoded", false);
55430
55432
  }
55431
- const adapter = adapters2.getAdapter(config.adapter || defaults$1.adapter);
55433
+ const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
55432
55434
  return adapter(config).then(function onAdapterResolution(response) {
55433
55435
  throwIfCancellationRequested(config);
55434
55436
  response.data = transformData.call(
@@ -55919,7 +55921,7 @@ var require_axios2 = __commonJS({
55919
55921
  axios.mergeConfig = mergeConfig;
55920
55922
  axios.AxiosHeaders = AxiosHeaders$1;
55921
55923
  axios.formToJSON = (thing) => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
55922
- axios.getAdapter = adapters2.getAdapter;
55924
+ axios.getAdapter = adapters.getAdapter;
55923
55925
  axios.HttpStatusCode = HttpStatusCode$1;
55924
55926
  axios.default = axios;
55925
55927
  module2.exports = axios;
@@ -56465,7 +56467,7 @@ var require_package2 = __commonJS({
56465
56467
  "../lib/telemetry/dist/package.json"(exports2, module2) {
56466
56468
  module2.exports = {
56467
56469
  name: "@sap/ux-telemetry",
56468
- version: "1.11.5",
56470
+ version: "1.12.1",
56469
56471
  description: "SAP Fiori tools telemetry library",
56470
56472
  main: "dist/src/index.js",
56471
56473
  author: "SAP SE",
@@ -56490,10 +56492,10 @@ var require_package2 = __commonJS({
56490
56492
  },
56491
56493
  dependencies: {
56492
56494
  "@sap-ux/store": "0.4.0",
56493
- "@sap/ux-cds": "1.11.5",
56494
- "@sap/ux-common-utils": "1.11.5",
56495
- "@sap/ux-feature-toggle": "1.11.5",
56496
- "@sap/ux-project-access": "1.11.5",
56495
+ "@sap/ux-cds": "1.12.1",
56496
+ "@sap/ux-common-utils": "1.12.1",
56497
+ "@sap/ux-feature-toggle": "1.12.1",
56498
+ "@sap/ux-project-access": "1.12.1",
56497
56499
  applicationinsights: "1.4.1",
56498
56500
  axios: "1.6.1",
56499
56501
  "performance-now": "2.1.0",
@@ -56998,7 +57000,7 @@ var require_semver = __commonJS({
56998
57000
  var require_parse3 = __commonJS({
56999
57001
  "../../node_modules/semver/functions/parse.js"(exports2, module2) {
57000
57002
  var SemVer = require_semver();
57001
- var parse2 = (version, options2, throwErrors = false) => {
57003
+ var parse4 = (version, options2, throwErrors = false) => {
57002
57004
  if (version instanceof SemVer) {
57003
57005
  return version;
57004
57006
  }
@@ -57011,16 +57013,16 @@ var require_parse3 = __commonJS({
57011
57013
  throw er;
57012
57014
  }
57013
57015
  };
57014
- module2.exports = parse2;
57016
+ module2.exports = parse4;
57015
57017
  }
57016
57018
  });
57017
57019
 
57018
57020
  // ../../node_modules/semver/functions/valid.js
57019
57021
  var require_valid = __commonJS({
57020
57022
  "../../node_modules/semver/functions/valid.js"(exports2, module2) {
57021
- var parse2 = require_parse3();
57023
+ var parse4 = require_parse3();
57022
57024
  var valid = (version, options2) => {
57023
- const v = parse2(version, options2);
57025
+ const v = parse4(version, options2);
57024
57026
  return v ? v.version : null;
57025
57027
  };
57026
57028
  module2.exports = valid;
@@ -57030,9 +57032,9 @@ var require_valid = __commonJS({
57030
57032
  // ../../node_modules/semver/functions/clean.js
57031
57033
  var require_clean = __commonJS({
57032
57034
  "../../node_modules/semver/functions/clean.js"(exports2, module2) {
57033
- var parse2 = require_parse3();
57035
+ var parse4 = require_parse3();
57034
57036
  var clean = (version, options2) => {
57035
- const s = parse2(version.trim().replace(/^[=v]+/, ""), options2);
57037
+ const s = parse4(version.trim().replace(/^[=v]+/, ""), options2);
57036
57038
  return s ? s.version : null;
57037
57039
  };
57038
57040
  module2.exports = clean;
@@ -57065,10 +57067,10 @@ var require_inc = __commonJS({
57065
57067
  // ../../node_modules/semver/functions/diff.js
57066
57068
  var require_diff = __commonJS({
57067
57069
  "../../node_modules/semver/functions/diff.js"(exports2, module2) {
57068
- var parse2 = require_parse3();
57070
+ var parse4 = require_parse3();
57069
57071
  var diff = (version1, version2) => {
57070
- const v1 = parse2(version1, null, true);
57071
- const v22 = parse2(version2, null, true);
57072
+ const v1 = parse4(version1, null, true);
57073
+ const v22 = parse4(version2, null, true);
57072
57074
  const comparison = v1.compare(v22);
57073
57075
  if (comparison === 0) {
57074
57076
  return null;
@@ -57136,9 +57138,9 @@ var require_patch = __commonJS({
57136
57138
  // ../../node_modules/semver/functions/prerelease.js
57137
57139
  var require_prerelease = __commonJS({
57138
57140
  "../../node_modules/semver/functions/prerelease.js"(exports2, module2) {
57139
- var parse2 = require_parse3();
57141
+ var parse4 = require_parse3();
57140
57142
  var prerelease = (version, options2) => {
57141
- const parsed = parse2(version, options2);
57143
+ const parsed = parse4(version, options2);
57142
57144
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
57143
57145
  };
57144
57146
  module2.exports = prerelease;
@@ -57310,7 +57312,7 @@ var require_cmp = __commonJS({
57310
57312
  var require_coerce = __commonJS({
57311
57313
  "../../node_modules/semver/functions/coerce.js"(exports2, module2) {
57312
57314
  var SemVer = require_semver();
57313
- var parse2 = require_parse3();
57315
+ var parse4 = require_parse3();
57314
57316
  var { safeRe: re, t } = require_re();
57315
57317
  var coerce = (version, options2) => {
57316
57318
  if (version instanceof SemVer) {
@@ -57339,7 +57341,7 @@ var require_coerce = __commonJS({
57339
57341
  if (match === null) {
57340
57342
  return null;
57341
57343
  }
57342
- return parse2(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options2);
57344
+ return parse4(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options2);
57343
57345
  };
57344
57346
  module2.exports = coerce;
57345
57347
  }
@@ -58936,7 +58938,7 @@ var require_semver2 = __commonJS({
58936
58938
  var constants = require_constants4();
58937
58939
  var SemVer = require_semver();
58938
58940
  var identifiers = require_identifiers();
58939
- var parse2 = require_parse3();
58941
+ var parse4 = require_parse3();
58940
58942
  var valid = require_valid();
58941
58943
  var clean = require_clean();
58942
58944
  var inc = require_inc();
@@ -58974,7 +58976,7 @@ var require_semver2 = __commonJS({
58974
58976
  var simplifyRange = require_simplify();
58975
58977
  var subset = require_subset();
58976
58978
  module2.exports = {
58977
- parse: parse2,
58979
+ parse: parse4,
58978
58980
  valid,
58979
58981
  clean,
58980
58982
  inc,
@@ -60451,16 +60453,16 @@ var require_listener = __commonJS({
60451
60453
  if (unprocessed.length > 0)
60452
60454
  _process(self2, unprocessed);
60453
60455
  }
60454
- function _wrap(unwrapped, visit) {
60456
+ function _wrap(unwrapped, visit3) {
60455
60457
  if (!unwrapped)
60456
60458
  return;
60457
60459
  var wrapped = unwrapped;
60458
60460
  if (typeof unwrapped === "function") {
60459
- wrapped = visit(unwrapped);
60461
+ wrapped = visit3(unwrapped);
60460
60462
  } else if (Array.isArray(unwrapped)) {
60461
60463
  wrapped = [];
60462
60464
  for (var i = 0; i < unwrapped.length; i++) {
60463
- wrapped[i] = visit(unwrapped[i]);
60465
+ wrapped[i] = visit3(unwrapped[i]);
60464
60466
  }
60465
60467
  }
60466
60468
  return wrapped;
@@ -61375,9 +61377,9 @@ var require_stack_chain = __commonJS({
61375
61377
  };
61376
61378
  }
61377
61379
  SHORTCIRCUIT_FORMATER = true;
61378
- var format2 = chain.format._formater(error3, frames);
61380
+ var format4 = chain.format._formater(error3, frames);
61379
61381
  SHORTCIRCUIT_FORMATER = false;
61380
- return format2;
61382
+ return format4;
61381
61383
  }
61382
61384
  Object.defineProperty(Error, "prepareStackTrace", {
61383
61385
  "get": function() {
@@ -68812,6 +68814,1600 @@ var init_esm = __esm({
68812
68814
  }
68813
68815
  });
68814
68816
 
68817
+ // ../../node_modules/jsonc-parser/lib/esm/impl/scanner.js
68818
+ function createScanner(text, ignoreTrivia = false) {
68819
+ const len = text.length;
68820
+ let pos = 0, value = "", tokenOffset = 0, token2 = 16, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0;
68821
+ function scanHexDigits(count, exact) {
68822
+ let digits = 0;
68823
+ let value2 = 0;
68824
+ while (digits < count || !exact) {
68825
+ let ch = text.charCodeAt(pos);
68826
+ if (ch >= 48 && ch <= 57) {
68827
+ value2 = value2 * 16 + ch - 48;
68828
+ } else if (ch >= 65 && ch <= 70) {
68829
+ value2 = value2 * 16 + ch - 65 + 10;
68830
+ } else if (ch >= 97 && ch <= 102) {
68831
+ value2 = value2 * 16 + ch - 97 + 10;
68832
+ } else {
68833
+ break;
68834
+ }
68835
+ pos++;
68836
+ digits++;
68837
+ }
68838
+ if (digits < count) {
68839
+ value2 = -1;
68840
+ }
68841
+ return value2;
68842
+ }
68843
+ function setPosition(newPosition) {
68844
+ pos = newPosition;
68845
+ value = "";
68846
+ tokenOffset = 0;
68847
+ token2 = 16;
68848
+ scanError = 0;
68849
+ }
68850
+ function scanNumber() {
68851
+ let start = pos;
68852
+ if (text.charCodeAt(pos) === 48) {
68853
+ pos++;
68854
+ } else {
68855
+ pos++;
68856
+ while (pos < text.length && isDigit(text.charCodeAt(pos))) {
68857
+ pos++;
68858
+ }
68859
+ }
68860
+ if (pos < text.length && text.charCodeAt(pos) === 46) {
68861
+ pos++;
68862
+ if (pos < text.length && isDigit(text.charCodeAt(pos))) {
68863
+ pos++;
68864
+ while (pos < text.length && isDigit(text.charCodeAt(pos))) {
68865
+ pos++;
68866
+ }
68867
+ } else {
68868
+ scanError = 3;
68869
+ return text.substring(start, pos);
68870
+ }
68871
+ }
68872
+ let end = pos;
68873
+ if (pos < text.length && (text.charCodeAt(pos) === 69 || text.charCodeAt(pos) === 101)) {
68874
+ pos++;
68875
+ if (pos < text.length && text.charCodeAt(pos) === 43 || text.charCodeAt(pos) === 45) {
68876
+ pos++;
68877
+ }
68878
+ if (pos < text.length && isDigit(text.charCodeAt(pos))) {
68879
+ pos++;
68880
+ while (pos < text.length && isDigit(text.charCodeAt(pos))) {
68881
+ pos++;
68882
+ }
68883
+ end = pos;
68884
+ } else {
68885
+ scanError = 3;
68886
+ }
68887
+ }
68888
+ return text.substring(start, end);
68889
+ }
68890
+ function scanString() {
68891
+ let result2 = "", start = pos;
68892
+ while (true) {
68893
+ if (pos >= len) {
68894
+ result2 += text.substring(start, pos);
68895
+ scanError = 2;
68896
+ break;
68897
+ }
68898
+ const ch = text.charCodeAt(pos);
68899
+ if (ch === 34) {
68900
+ result2 += text.substring(start, pos);
68901
+ pos++;
68902
+ break;
68903
+ }
68904
+ if (ch === 92) {
68905
+ result2 += text.substring(start, pos);
68906
+ pos++;
68907
+ if (pos >= len) {
68908
+ scanError = 2;
68909
+ break;
68910
+ }
68911
+ const ch2 = text.charCodeAt(pos++);
68912
+ switch (ch2) {
68913
+ case 34:
68914
+ result2 += '"';
68915
+ break;
68916
+ case 92:
68917
+ result2 += "\\";
68918
+ break;
68919
+ case 47:
68920
+ result2 += "/";
68921
+ break;
68922
+ case 98:
68923
+ result2 += "\b";
68924
+ break;
68925
+ case 102:
68926
+ result2 += "\f";
68927
+ break;
68928
+ case 110:
68929
+ result2 += "\n";
68930
+ break;
68931
+ case 114:
68932
+ result2 += "\r";
68933
+ break;
68934
+ case 116:
68935
+ result2 += " ";
68936
+ break;
68937
+ case 117:
68938
+ const ch3 = scanHexDigits(4, true);
68939
+ if (ch3 >= 0) {
68940
+ result2 += String.fromCharCode(ch3);
68941
+ } else {
68942
+ scanError = 4;
68943
+ }
68944
+ break;
68945
+ default:
68946
+ scanError = 5;
68947
+ }
68948
+ start = pos;
68949
+ continue;
68950
+ }
68951
+ if (ch >= 0 && ch <= 31) {
68952
+ if (isLineBreak(ch)) {
68953
+ result2 += text.substring(start, pos);
68954
+ scanError = 2;
68955
+ break;
68956
+ } else {
68957
+ scanError = 6;
68958
+ }
68959
+ }
68960
+ pos++;
68961
+ }
68962
+ return result2;
68963
+ }
68964
+ function scanNext() {
68965
+ value = "";
68966
+ scanError = 0;
68967
+ tokenOffset = pos;
68968
+ lineStartOffset = lineNumber;
68969
+ prevTokenLineStartOffset = tokenLineStartOffset;
68970
+ if (pos >= len) {
68971
+ tokenOffset = len;
68972
+ return token2 = 17;
68973
+ }
68974
+ let code = text.charCodeAt(pos);
68975
+ if (isWhiteSpace(code)) {
68976
+ do {
68977
+ pos++;
68978
+ value += String.fromCharCode(code);
68979
+ code = text.charCodeAt(pos);
68980
+ } while (isWhiteSpace(code));
68981
+ return token2 = 15;
68982
+ }
68983
+ if (isLineBreak(code)) {
68984
+ pos++;
68985
+ value += String.fromCharCode(code);
68986
+ if (code === 13 && text.charCodeAt(pos) === 10) {
68987
+ pos++;
68988
+ value += "\n";
68989
+ }
68990
+ lineNumber++;
68991
+ tokenLineStartOffset = pos;
68992
+ return token2 = 14;
68993
+ }
68994
+ switch (code) {
68995
+ case 123:
68996
+ pos++;
68997
+ return token2 = 1;
68998
+ case 125:
68999
+ pos++;
69000
+ return token2 = 2;
69001
+ case 91:
69002
+ pos++;
69003
+ return token2 = 3;
69004
+ case 93:
69005
+ pos++;
69006
+ return token2 = 4;
69007
+ case 58:
69008
+ pos++;
69009
+ return token2 = 6;
69010
+ case 44:
69011
+ pos++;
69012
+ return token2 = 5;
69013
+ case 34:
69014
+ pos++;
69015
+ value = scanString();
69016
+ return token2 = 10;
69017
+ case 47:
69018
+ const start = pos - 1;
69019
+ if (text.charCodeAt(pos + 1) === 47) {
69020
+ pos += 2;
69021
+ while (pos < len) {
69022
+ if (isLineBreak(text.charCodeAt(pos))) {
69023
+ break;
69024
+ }
69025
+ pos++;
69026
+ }
69027
+ value = text.substring(start, pos);
69028
+ return token2 = 12;
69029
+ }
69030
+ if (text.charCodeAt(pos + 1) === 42) {
69031
+ pos += 2;
69032
+ const safeLength = len - 1;
69033
+ let commentClosed = false;
69034
+ while (pos < safeLength) {
69035
+ const ch = text.charCodeAt(pos);
69036
+ if (ch === 42 && text.charCodeAt(pos + 1) === 47) {
69037
+ pos += 2;
69038
+ commentClosed = true;
69039
+ break;
69040
+ }
69041
+ pos++;
69042
+ if (isLineBreak(ch)) {
69043
+ if (ch === 13 && text.charCodeAt(pos) === 10) {
69044
+ pos++;
69045
+ }
69046
+ lineNumber++;
69047
+ tokenLineStartOffset = pos;
69048
+ }
69049
+ }
69050
+ if (!commentClosed) {
69051
+ pos++;
69052
+ scanError = 1;
69053
+ }
69054
+ value = text.substring(start, pos);
69055
+ return token2 = 13;
69056
+ }
69057
+ value += String.fromCharCode(code);
69058
+ pos++;
69059
+ return token2 = 16;
69060
+ case 45:
69061
+ value += String.fromCharCode(code);
69062
+ pos++;
69063
+ if (pos === len || !isDigit(text.charCodeAt(pos))) {
69064
+ return token2 = 16;
69065
+ }
69066
+ case 48:
69067
+ case 49:
69068
+ case 50:
69069
+ case 51:
69070
+ case 52:
69071
+ case 53:
69072
+ case 54:
69073
+ case 55:
69074
+ case 56:
69075
+ case 57:
69076
+ value += scanNumber();
69077
+ return token2 = 11;
69078
+ default:
69079
+ while (pos < len && isUnknownContentCharacter(code)) {
69080
+ pos++;
69081
+ code = text.charCodeAt(pos);
69082
+ }
69083
+ if (tokenOffset !== pos) {
69084
+ value = text.substring(tokenOffset, pos);
69085
+ switch (value) {
69086
+ case "true":
69087
+ return token2 = 8;
69088
+ case "false":
69089
+ return token2 = 9;
69090
+ case "null":
69091
+ return token2 = 7;
69092
+ }
69093
+ return token2 = 16;
69094
+ }
69095
+ value += String.fromCharCode(code);
69096
+ pos++;
69097
+ return token2 = 16;
69098
+ }
69099
+ }
69100
+ function isUnknownContentCharacter(code) {
69101
+ if (isWhiteSpace(code) || isLineBreak(code)) {
69102
+ return false;
69103
+ }
69104
+ switch (code) {
69105
+ case 125:
69106
+ case 93:
69107
+ case 123:
69108
+ case 91:
69109
+ case 34:
69110
+ case 58:
69111
+ case 44:
69112
+ case 47:
69113
+ return false;
69114
+ }
69115
+ return true;
69116
+ }
69117
+ function scanNextNonTrivia() {
69118
+ let result2;
69119
+ do {
69120
+ result2 = scanNext();
69121
+ } while (result2 >= 12 && result2 <= 15);
69122
+ return result2;
69123
+ }
69124
+ return {
69125
+ setPosition,
69126
+ getPosition: () => pos,
69127
+ scan: ignoreTrivia ? scanNextNonTrivia : scanNext,
69128
+ getToken: () => token2,
69129
+ getTokenValue: () => value,
69130
+ getTokenOffset: () => tokenOffset,
69131
+ getTokenLength: () => pos - tokenOffset,
69132
+ getTokenStartLine: () => lineStartOffset,
69133
+ getTokenStartCharacter: () => tokenOffset - prevTokenLineStartOffset,
69134
+ getTokenError: () => scanError
69135
+ };
69136
+ }
69137
+ function isWhiteSpace(ch) {
69138
+ return ch === 32 || ch === 9;
69139
+ }
69140
+ function isLineBreak(ch) {
69141
+ return ch === 10 || ch === 13;
69142
+ }
69143
+ function isDigit(ch) {
69144
+ return ch >= 48 && ch <= 57;
69145
+ }
69146
+ var CharacterCodes;
69147
+ var init_scanner = __esm({
69148
+ "../../node_modules/jsonc-parser/lib/esm/impl/scanner.js"() {
69149
+ "use strict";
69150
+ (function(CharacterCodes2) {
69151
+ CharacterCodes2[CharacterCodes2["lineFeed"] = 10] = "lineFeed";
69152
+ CharacterCodes2[CharacterCodes2["carriageReturn"] = 13] = "carriageReturn";
69153
+ CharacterCodes2[CharacterCodes2["space"] = 32] = "space";
69154
+ CharacterCodes2[CharacterCodes2["_0"] = 48] = "_0";
69155
+ CharacterCodes2[CharacterCodes2["_1"] = 49] = "_1";
69156
+ CharacterCodes2[CharacterCodes2["_2"] = 50] = "_2";
69157
+ CharacterCodes2[CharacterCodes2["_3"] = 51] = "_3";
69158
+ CharacterCodes2[CharacterCodes2["_4"] = 52] = "_4";
69159
+ CharacterCodes2[CharacterCodes2["_5"] = 53] = "_5";
69160
+ CharacterCodes2[CharacterCodes2["_6"] = 54] = "_6";
69161
+ CharacterCodes2[CharacterCodes2["_7"] = 55] = "_7";
69162
+ CharacterCodes2[CharacterCodes2["_8"] = 56] = "_8";
69163
+ CharacterCodes2[CharacterCodes2["_9"] = 57] = "_9";
69164
+ CharacterCodes2[CharacterCodes2["a"] = 97] = "a";
69165
+ CharacterCodes2[CharacterCodes2["b"] = 98] = "b";
69166
+ CharacterCodes2[CharacterCodes2["c"] = 99] = "c";
69167
+ CharacterCodes2[CharacterCodes2["d"] = 100] = "d";
69168
+ CharacterCodes2[CharacterCodes2["e"] = 101] = "e";
69169
+ CharacterCodes2[CharacterCodes2["f"] = 102] = "f";
69170
+ CharacterCodes2[CharacterCodes2["g"] = 103] = "g";
69171
+ CharacterCodes2[CharacterCodes2["h"] = 104] = "h";
69172
+ CharacterCodes2[CharacterCodes2["i"] = 105] = "i";
69173
+ CharacterCodes2[CharacterCodes2["j"] = 106] = "j";
69174
+ CharacterCodes2[CharacterCodes2["k"] = 107] = "k";
69175
+ CharacterCodes2[CharacterCodes2["l"] = 108] = "l";
69176
+ CharacterCodes2[CharacterCodes2["m"] = 109] = "m";
69177
+ CharacterCodes2[CharacterCodes2["n"] = 110] = "n";
69178
+ CharacterCodes2[CharacterCodes2["o"] = 111] = "o";
69179
+ CharacterCodes2[CharacterCodes2["p"] = 112] = "p";
69180
+ CharacterCodes2[CharacterCodes2["q"] = 113] = "q";
69181
+ CharacterCodes2[CharacterCodes2["r"] = 114] = "r";
69182
+ CharacterCodes2[CharacterCodes2["s"] = 115] = "s";
69183
+ CharacterCodes2[CharacterCodes2["t"] = 116] = "t";
69184
+ CharacterCodes2[CharacterCodes2["u"] = 117] = "u";
69185
+ CharacterCodes2[CharacterCodes2["v"] = 118] = "v";
69186
+ CharacterCodes2[CharacterCodes2["w"] = 119] = "w";
69187
+ CharacterCodes2[CharacterCodes2["x"] = 120] = "x";
69188
+ CharacterCodes2[CharacterCodes2["y"] = 121] = "y";
69189
+ CharacterCodes2[CharacterCodes2["z"] = 122] = "z";
69190
+ CharacterCodes2[CharacterCodes2["A"] = 65] = "A";
69191
+ CharacterCodes2[CharacterCodes2["B"] = 66] = "B";
69192
+ CharacterCodes2[CharacterCodes2["C"] = 67] = "C";
69193
+ CharacterCodes2[CharacterCodes2["D"] = 68] = "D";
69194
+ CharacterCodes2[CharacterCodes2["E"] = 69] = "E";
69195
+ CharacterCodes2[CharacterCodes2["F"] = 70] = "F";
69196
+ CharacterCodes2[CharacterCodes2["G"] = 71] = "G";
69197
+ CharacterCodes2[CharacterCodes2["H"] = 72] = "H";
69198
+ CharacterCodes2[CharacterCodes2["I"] = 73] = "I";
69199
+ CharacterCodes2[CharacterCodes2["J"] = 74] = "J";
69200
+ CharacterCodes2[CharacterCodes2["K"] = 75] = "K";
69201
+ CharacterCodes2[CharacterCodes2["L"] = 76] = "L";
69202
+ CharacterCodes2[CharacterCodes2["M"] = 77] = "M";
69203
+ CharacterCodes2[CharacterCodes2["N"] = 78] = "N";
69204
+ CharacterCodes2[CharacterCodes2["O"] = 79] = "O";
69205
+ CharacterCodes2[CharacterCodes2["P"] = 80] = "P";
69206
+ CharacterCodes2[CharacterCodes2["Q"] = 81] = "Q";
69207
+ CharacterCodes2[CharacterCodes2["R"] = 82] = "R";
69208
+ CharacterCodes2[CharacterCodes2["S"] = 83] = "S";
69209
+ CharacterCodes2[CharacterCodes2["T"] = 84] = "T";
69210
+ CharacterCodes2[CharacterCodes2["U"] = 85] = "U";
69211
+ CharacterCodes2[CharacterCodes2["V"] = 86] = "V";
69212
+ CharacterCodes2[CharacterCodes2["W"] = 87] = "W";
69213
+ CharacterCodes2[CharacterCodes2["X"] = 88] = "X";
69214
+ CharacterCodes2[CharacterCodes2["Y"] = 89] = "Y";
69215
+ CharacterCodes2[CharacterCodes2["Z"] = 90] = "Z";
69216
+ CharacterCodes2[CharacterCodes2["asterisk"] = 42] = "asterisk";
69217
+ CharacterCodes2[CharacterCodes2["backslash"] = 92] = "backslash";
69218
+ CharacterCodes2[CharacterCodes2["closeBrace"] = 125] = "closeBrace";
69219
+ CharacterCodes2[CharacterCodes2["closeBracket"] = 93] = "closeBracket";
69220
+ CharacterCodes2[CharacterCodes2["colon"] = 58] = "colon";
69221
+ CharacterCodes2[CharacterCodes2["comma"] = 44] = "comma";
69222
+ CharacterCodes2[CharacterCodes2["dot"] = 46] = "dot";
69223
+ CharacterCodes2[CharacterCodes2["doubleQuote"] = 34] = "doubleQuote";
69224
+ CharacterCodes2[CharacterCodes2["minus"] = 45] = "minus";
69225
+ CharacterCodes2[CharacterCodes2["openBrace"] = 123] = "openBrace";
69226
+ CharacterCodes2[CharacterCodes2["openBracket"] = 91] = "openBracket";
69227
+ CharacterCodes2[CharacterCodes2["plus"] = 43] = "plus";
69228
+ CharacterCodes2[CharacterCodes2["slash"] = 47] = "slash";
69229
+ CharacterCodes2[CharacterCodes2["formFeed"] = 12] = "formFeed";
69230
+ CharacterCodes2[CharacterCodes2["tab"] = 9] = "tab";
69231
+ })(CharacterCodes || (CharacterCodes = {}));
69232
+ }
69233
+ });
69234
+
69235
+ // ../../node_modules/jsonc-parser/lib/esm/impl/format.js
69236
+ function format(documentText, range, options2) {
69237
+ let initialIndentLevel;
69238
+ let formatText;
69239
+ let formatTextStart;
69240
+ let rangeStart;
69241
+ let rangeEnd;
69242
+ if (range) {
69243
+ rangeStart = range.offset;
69244
+ rangeEnd = rangeStart + range.length;
69245
+ formatTextStart = rangeStart;
69246
+ while (formatTextStart > 0 && !isEOL(documentText, formatTextStart - 1)) {
69247
+ formatTextStart--;
69248
+ }
69249
+ let endOffset = rangeEnd;
69250
+ while (endOffset < documentText.length && !isEOL(documentText, endOffset)) {
69251
+ endOffset++;
69252
+ }
69253
+ formatText = documentText.substring(formatTextStart, endOffset);
69254
+ initialIndentLevel = computeIndentLevel(formatText, options2);
69255
+ } else {
69256
+ formatText = documentText;
69257
+ initialIndentLevel = 0;
69258
+ formatTextStart = 0;
69259
+ rangeStart = 0;
69260
+ rangeEnd = documentText.length;
69261
+ }
69262
+ const eol = getEOL(options2, documentText);
69263
+ let numberLineBreaks = 0;
69264
+ let indentLevel = 0;
69265
+ let indentValue;
69266
+ if (options2.insertSpaces) {
69267
+ indentValue = repeat(" ", options2.tabSize || 4);
69268
+ } else {
69269
+ indentValue = " ";
69270
+ }
69271
+ let scanner = createScanner(formatText, false);
69272
+ let hasError = false;
69273
+ function newLinesAndIndent() {
69274
+ if (numberLineBreaks > 1) {
69275
+ return repeat(eol, numberLineBreaks) + repeat(indentValue, initialIndentLevel + indentLevel);
69276
+ } else {
69277
+ return eol + repeat(indentValue, initialIndentLevel + indentLevel);
69278
+ }
69279
+ }
69280
+ function scanNext() {
69281
+ let token2 = scanner.scan();
69282
+ numberLineBreaks = 0;
69283
+ while (token2 === 15 || token2 === 14) {
69284
+ if (token2 === 14 && options2.keepLines) {
69285
+ numberLineBreaks += 1;
69286
+ } else if (token2 === 14) {
69287
+ numberLineBreaks = 1;
69288
+ }
69289
+ token2 = scanner.scan();
69290
+ }
69291
+ hasError = token2 === 16 || scanner.getTokenError() !== 0;
69292
+ return token2;
69293
+ }
69294
+ const editOperations = [];
69295
+ function addEdit(text, startOffset, endOffset) {
69296
+ if (!hasError && (!range || startOffset < rangeEnd && endOffset > rangeStart) && documentText.substring(startOffset, endOffset) !== text) {
69297
+ editOperations.push({ offset: startOffset, length: endOffset - startOffset, content: text });
69298
+ }
69299
+ }
69300
+ let firstToken = scanNext();
69301
+ if (options2.keepLines && numberLineBreaks > 0) {
69302
+ addEdit(repeat(eol, numberLineBreaks), 0, 0);
69303
+ }
69304
+ if (firstToken !== 17) {
69305
+ let firstTokenStart = scanner.getTokenOffset() + formatTextStart;
69306
+ let initialIndent = repeat(indentValue, initialIndentLevel);
69307
+ addEdit(initialIndent, formatTextStart, firstTokenStart);
69308
+ }
69309
+ while (firstToken !== 17) {
69310
+ let firstTokenEnd = scanner.getTokenOffset() + scanner.getTokenLength() + formatTextStart;
69311
+ let secondToken = scanNext();
69312
+ let replaceContent = "";
69313
+ let needsLineBreak = false;
69314
+ while (numberLineBreaks === 0 && (secondToken === 12 || secondToken === 13)) {
69315
+ let commentTokenStart = scanner.getTokenOffset() + formatTextStart;
69316
+ addEdit(" ", firstTokenEnd, commentTokenStart);
69317
+ firstTokenEnd = scanner.getTokenOffset() + scanner.getTokenLength() + formatTextStart;
69318
+ needsLineBreak = secondToken === 12;
69319
+ replaceContent = needsLineBreak ? newLinesAndIndent() : "";
69320
+ secondToken = scanNext();
69321
+ }
69322
+ if (secondToken === 2) {
69323
+ if (firstToken !== 1) {
69324
+ indentLevel--;
69325
+ }
69326
+ ;
69327
+ if (options2.keepLines && numberLineBreaks > 0 || !options2.keepLines && firstToken !== 1) {
69328
+ replaceContent = newLinesAndIndent();
69329
+ } else if (options2.keepLines) {
69330
+ replaceContent = " ";
69331
+ }
69332
+ } else if (secondToken === 4) {
69333
+ if (firstToken !== 3) {
69334
+ indentLevel--;
69335
+ }
69336
+ ;
69337
+ if (options2.keepLines && numberLineBreaks > 0 || !options2.keepLines && firstToken !== 3) {
69338
+ replaceContent = newLinesAndIndent();
69339
+ } else if (options2.keepLines) {
69340
+ replaceContent = " ";
69341
+ }
69342
+ } else {
69343
+ switch (firstToken) {
69344
+ case 3:
69345
+ case 1:
69346
+ indentLevel++;
69347
+ if (options2.keepLines && numberLineBreaks > 0 || !options2.keepLines) {
69348
+ replaceContent = newLinesAndIndent();
69349
+ } else {
69350
+ replaceContent = " ";
69351
+ }
69352
+ break;
69353
+ case 5:
69354
+ if (options2.keepLines && numberLineBreaks > 0 || !options2.keepLines) {
69355
+ replaceContent = newLinesAndIndent();
69356
+ } else {
69357
+ replaceContent = " ";
69358
+ }
69359
+ break;
69360
+ case 12:
69361
+ replaceContent = newLinesAndIndent();
69362
+ break;
69363
+ case 13:
69364
+ if (numberLineBreaks > 0) {
69365
+ replaceContent = newLinesAndIndent();
69366
+ } else if (!needsLineBreak) {
69367
+ replaceContent = " ";
69368
+ }
69369
+ break;
69370
+ case 6:
69371
+ if (options2.keepLines && numberLineBreaks > 0) {
69372
+ replaceContent = newLinesAndIndent();
69373
+ } else if (!needsLineBreak) {
69374
+ replaceContent = " ";
69375
+ }
69376
+ break;
69377
+ case 10:
69378
+ if (options2.keepLines && numberLineBreaks > 0) {
69379
+ replaceContent = newLinesAndIndent();
69380
+ } else if (secondToken === 6 && !needsLineBreak) {
69381
+ replaceContent = "";
69382
+ }
69383
+ break;
69384
+ case 7:
69385
+ case 8:
69386
+ case 9:
69387
+ case 11:
69388
+ case 2:
69389
+ case 4:
69390
+ if (options2.keepLines && numberLineBreaks > 0) {
69391
+ replaceContent = newLinesAndIndent();
69392
+ } else {
69393
+ if ((secondToken === 12 || secondToken === 13) && !needsLineBreak) {
69394
+ replaceContent = " ";
69395
+ } else if (secondToken !== 5 && secondToken !== 17) {
69396
+ hasError = true;
69397
+ }
69398
+ }
69399
+ break;
69400
+ case 16:
69401
+ hasError = true;
69402
+ break;
69403
+ }
69404
+ if (numberLineBreaks > 0 && (secondToken === 12 || secondToken === 13)) {
69405
+ replaceContent = newLinesAndIndent();
69406
+ }
69407
+ }
69408
+ if (secondToken === 17) {
69409
+ if (options2.keepLines && numberLineBreaks > 0) {
69410
+ replaceContent = newLinesAndIndent();
69411
+ } else {
69412
+ replaceContent = options2.insertFinalNewline ? eol : "";
69413
+ }
69414
+ }
69415
+ const secondTokenStart = scanner.getTokenOffset() + formatTextStart;
69416
+ addEdit(replaceContent, firstTokenEnd, secondTokenStart);
69417
+ firstToken = secondToken;
69418
+ }
69419
+ return editOperations;
69420
+ }
69421
+ function repeat(s, count) {
69422
+ let result2 = "";
69423
+ for (let i = 0; i < count; i++) {
69424
+ result2 += s;
69425
+ }
69426
+ return result2;
69427
+ }
69428
+ function computeIndentLevel(content, options2) {
69429
+ let i = 0;
69430
+ let nChars = 0;
69431
+ const tabSize = options2.tabSize || 4;
69432
+ while (i < content.length) {
69433
+ let ch = content.charAt(i);
69434
+ if (ch === " ") {
69435
+ nChars++;
69436
+ } else if (ch === " ") {
69437
+ nChars += tabSize;
69438
+ } else {
69439
+ break;
69440
+ }
69441
+ i++;
69442
+ }
69443
+ return Math.floor(nChars / tabSize);
69444
+ }
69445
+ function getEOL(options2, text) {
69446
+ for (let i = 0; i < text.length; i++) {
69447
+ const ch = text.charAt(i);
69448
+ if (ch === "\r") {
69449
+ if (i + 1 < text.length && text.charAt(i + 1) === "\n") {
69450
+ return "\r\n";
69451
+ }
69452
+ return "\r";
69453
+ } else if (ch === "\n") {
69454
+ return "\n";
69455
+ }
69456
+ }
69457
+ return options2 && options2.eol || "\n";
69458
+ }
69459
+ function isEOL(text, offset) {
69460
+ return "\r\n".indexOf(text.charAt(offset)) !== -1;
69461
+ }
69462
+ var init_format = __esm({
69463
+ "../../node_modules/jsonc-parser/lib/esm/impl/format.js"() {
69464
+ "use strict";
69465
+ init_scanner();
69466
+ }
69467
+ });
69468
+
69469
+ // ../../node_modules/jsonc-parser/lib/esm/impl/parser.js
69470
+ function getLocation(text, position) {
69471
+ const segments = [];
69472
+ const earlyReturnException = new Object();
69473
+ let previousNode = void 0;
69474
+ const previousNodeInst = {
69475
+ value: {},
69476
+ offset: 0,
69477
+ length: 0,
69478
+ type: "object",
69479
+ parent: void 0
69480
+ };
69481
+ let isAtPropertyKey = false;
69482
+ function setPreviousNode(value, offset, length, type) {
69483
+ previousNodeInst.value = value;
69484
+ previousNodeInst.offset = offset;
69485
+ previousNodeInst.length = length;
69486
+ previousNodeInst.type = type;
69487
+ previousNodeInst.colonOffset = void 0;
69488
+ previousNode = previousNodeInst;
69489
+ }
69490
+ try {
69491
+ visit(text, {
69492
+ onObjectBegin: (offset, length) => {
69493
+ if (position <= offset) {
69494
+ throw earlyReturnException;
69495
+ }
69496
+ previousNode = void 0;
69497
+ isAtPropertyKey = position > offset;
69498
+ segments.push("");
69499
+ },
69500
+ onObjectProperty: (name, offset, length) => {
69501
+ if (position < offset) {
69502
+ throw earlyReturnException;
69503
+ }
69504
+ setPreviousNode(name, offset, length, "property");
69505
+ segments[segments.length - 1] = name;
69506
+ if (position <= offset + length) {
69507
+ throw earlyReturnException;
69508
+ }
69509
+ },
69510
+ onObjectEnd: (offset, length) => {
69511
+ if (position <= offset) {
69512
+ throw earlyReturnException;
69513
+ }
69514
+ previousNode = void 0;
69515
+ segments.pop();
69516
+ },
69517
+ onArrayBegin: (offset, length) => {
69518
+ if (position <= offset) {
69519
+ throw earlyReturnException;
69520
+ }
69521
+ previousNode = void 0;
69522
+ segments.push(0);
69523
+ },
69524
+ onArrayEnd: (offset, length) => {
69525
+ if (position <= offset) {
69526
+ throw earlyReturnException;
69527
+ }
69528
+ previousNode = void 0;
69529
+ segments.pop();
69530
+ },
69531
+ onLiteralValue: (value, offset, length) => {
69532
+ if (position < offset) {
69533
+ throw earlyReturnException;
69534
+ }
69535
+ setPreviousNode(value, offset, length, getNodeType(value));
69536
+ if (position <= offset + length) {
69537
+ throw earlyReturnException;
69538
+ }
69539
+ },
69540
+ onSeparator: (sep, offset, length) => {
69541
+ if (position <= offset) {
69542
+ throw earlyReturnException;
69543
+ }
69544
+ if (sep === ":" && previousNode && previousNode.type === "property") {
69545
+ previousNode.colonOffset = offset;
69546
+ isAtPropertyKey = false;
69547
+ previousNode = void 0;
69548
+ } else if (sep === ",") {
69549
+ const last = segments[segments.length - 1];
69550
+ if (typeof last === "number") {
69551
+ segments[segments.length - 1] = last + 1;
69552
+ } else {
69553
+ isAtPropertyKey = true;
69554
+ segments[segments.length - 1] = "";
69555
+ }
69556
+ previousNode = void 0;
69557
+ }
69558
+ }
69559
+ });
69560
+ } catch (e) {
69561
+ if (e !== earlyReturnException) {
69562
+ throw e;
69563
+ }
69564
+ }
69565
+ return {
69566
+ path: segments,
69567
+ previousNode,
69568
+ isAtPropertyKey,
69569
+ matches: (pattern) => {
69570
+ let k = 0;
69571
+ for (let i = 0; k < pattern.length && i < segments.length; i++) {
69572
+ if (pattern[k] === segments[i] || pattern[k] === "*") {
69573
+ k++;
69574
+ } else if (pattern[k] !== "**") {
69575
+ return false;
69576
+ }
69577
+ }
69578
+ return k === pattern.length;
69579
+ }
69580
+ };
69581
+ }
69582
+ function parse(text, errors = [], options2 = ParseOptions.DEFAULT) {
69583
+ let currentProperty = null;
69584
+ let currentParent = [];
69585
+ const previousParents = [];
69586
+ function onValue(value) {
69587
+ if (Array.isArray(currentParent)) {
69588
+ currentParent.push(value);
69589
+ } else if (currentProperty !== null) {
69590
+ currentParent[currentProperty] = value;
69591
+ }
69592
+ }
69593
+ const visitor = {
69594
+ onObjectBegin: () => {
69595
+ const object = {};
69596
+ onValue(object);
69597
+ previousParents.push(currentParent);
69598
+ currentParent = object;
69599
+ currentProperty = null;
69600
+ },
69601
+ onObjectProperty: (name) => {
69602
+ currentProperty = name;
69603
+ },
69604
+ onObjectEnd: () => {
69605
+ currentParent = previousParents.pop();
69606
+ },
69607
+ onArrayBegin: () => {
69608
+ const array = [];
69609
+ onValue(array);
69610
+ previousParents.push(currentParent);
69611
+ currentParent = array;
69612
+ currentProperty = null;
69613
+ },
69614
+ onArrayEnd: () => {
69615
+ currentParent = previousParents.pop();
69616
+ },
69617
+ onLiteralValue: onValue,
69618
+ onError: (error3, offset, length) => {
69619
+ errors.push({ error: error3, offset, length });
69620
+ }
69621
+ };
69622
+ visit(text, visitor, options2);
69623
+ return currentParent[0];
69624
+ }
69625
+ function parseTree(text, errors = [], options2 = ParseOptions.DEFAULT) {
69626
+ let currentParent = { type: "array", offset: -1, length: -1, children: [], parent: void 0 };
69627
+ function ensurePropertyComplete(endOffset) {
69628
+ if (currentParent.type === "property") {
69629
+ currentParent.length = endOffset - currentParent.offset;
69630
+ currentParent = currentParent.parent;
69631
+ }
69632
+ }
69633
+ function onValue(valueNode) {
69634
+ currentParent.children.push(valueNode);
69635
+ return valueNode;
69636
+ }
69637
+ const visitor = {
69638
+ onObjectBegin: (offset) => {
69639
+ currentParent = onValue({ type: "object", offset, length: -1, parent: currentParent, children: [] });
69640
+ },
69641
+ onObjectProperty: (name, offset, length) => {
69642
+ currentParent = onValue({ type: "property", offset, length: -1, parent: currentParent, children: [] });
69643
+ currentParent.children.push({ type: "string", value: name, offset, length, parent: currentParent });
69644
+ },
69645
+ onObjectEnd: (offset, length) => {
69646
+ ensurePropertyComplete(offset + length);
69647
+ currentParent.length = offset + length - currentParent.offset;
69648
+ currentParent = currentParent.parent;
69649
+ ensurePropertyComplete(offset + length);
69650
+ },
69651
+ onArrayBegin: (offset, length) => {
69652
+ currentParent = onValue({ type: "array", offset, length: -1, parent: currentParent, children: [] });
69653
+ },
69654
+ onArrayEnd: (offset, length) => {
69655
+ currentParent.length = offset + length - currentParent.offset;
69656
+ currentParent = currentParent.parent;
69657
+ ensurePropertyComplete(offset + length);
69658
+ },
69659
+ onLiteralValue: (value, offset, length) => {
69660
+ onValue({ type: getNodeType(value), offset, length, parent: currentParent, value });
69661
+ ensurePropertyComplete(offset + length);
69662
+ },
69663
+ onSeparator: (sep, offset, length) => {
69664
+ if (currentParent.type === "property") {
69665
+ if (sep === ":") {
69666
+ currentParent.colonOffset = offset;
69667
+ } else if (sep === ",") {
69668
+ ensurePropertyComplete(offset);
69669
+ }
69670
+ }
69671
+ },
69672
+ onError: (error3, offset, length) => {
69673
+ errors.push({ error: error3, offset, length });
69674
+ }
69675
+ };
69676
+ visit(text, visitor, options2);
69677
+ const result2 = currentParent.children[0];
69678
+ if (result2) {
69679
+ delete result2.parent;
69680
+ }
69681
+ return result2;
69682
+ }
69683
+ function findNodeAtLocation(root, path2) {
69684
+ if (!root) {
69685
+ return void 0;
69686
+ }
69687
+ let node = root;
69688
+ for (let segment of path2) {
69689
+ if (typeof segment === "string") {
69690
+ if (node.type !== "object" || !Array.isArray(node.children)) {
69691
+ return void 0;
69692
+ }
69693
+ let found = false;
69694
+ for (const propertyNode of node.children) {
69695
+ if (Array.isArray(propertyNode.children) && propertyNode.children[0].value === segment && propertyNode.children.length === 2) {
69696
+ node = propertyNode.children[1];
69697
+ found = true;
69698
+ break;
69699
+ }
69700
+ }
69701
+ if (!found) {
69702
+ return void 0;
69703
+ }
69704
+ } else {
69705
+ const index = segment;
69706
+ if (node.type !== "array" || index < 0 || !Array.isArray(node.children) || index >= node.children.length) {
69707
+ return void 0;
69708
+ }
69709
+ node = node.children[index];
69710
+ }
69711
+ }
69712
+ return node;
69713
+ }
69714
+ function getNodePath(node) {
69715
+ if (!node.parent || !node.parent.children) {
69716
+ return [];
69717
+ }
69718
+ const path2 = getNodePath(node.parent);
69719
+ if (node.parent.type === "property") {
69720
+ const key = node.parent.children[0].value;
69721
+ path2.push(key);
69722
+ } else if (node.parent.type === "array") {
69723
+ const index = node.parent.children.indexOf(node);
69724
+ if (index !== -1) {
69725
+ path2.push(index);
69726
+ }
69727
+ }
69728
+ return path2;
69729
+ }
69730
+ function getNodeValue(node) {
69731
+ switch (node.type) {
69732
+ case "array":
69733
+ return node.children.map(getNodeValue);
69734
+ case "object":
69735
+ const obj = /* @__PURE__ */ Object.create(null);
69736
+ for (let prop of node.children) {
69737
+ const valueNode = prop.children[1];
69738
+ if (valueNode) {
69739
+ obj[prop.children[0].value] = getNodeValue(valueNode);
69740
+ }
69741
+ }
69742
+ return obj;
69743
+ case "null":
69744
+ case "string":
69745
+ case "number":
69746
+ case "boolean":
69747
+ return node.value;
69748
+ default:
69749
+ return void 0;
69750
+ }
69751
+ }
69752
+ function contains(node, offset, includeRightBound = false) {
69753
+ return offset >= node.offset && offset < node.offset + node.length || includeRightBound && offset === node.offset + node.length;
69754
+ }
69755
+ function findNodeAtOffset(node, offset, includeRightBound = false) {
69756
+ if (contains(node, offset, includeRightBound)) {
69757
+ const children = node.children;
69758
+ if (Array.isArray(children)) {
69759
+ for (let i = 0; i < children.length && children[i].offset <= offset; i++) {
69760
+ const item = findNodeAtOffset(children[i], offset, includeRightBound);
69761
+ if (item) {
69762
+ return item;
69763
+ }
69764
+ }
69765
+ }
69766
+ return node;
69767
+ }
69768
+ return void 0;
69769
+ }
69770
+ function visit(text, visitor, options2 = ParseOptions.DEFAULT) {
69771
+ const _scanner = createScanner(text, false);
69772
+ const _jsonPath = [];
69773
+ function toNoArgVisit(visitFunction) {
69774
+ return visitFunction ? () => visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
69775
+ }
69776
+ function toNoArgVisitWithPath(visitFunction) {
69777
+ return visitFunction ? () => visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true;
69778
+ }
69779
+ function toOneArgVisit(visitFunction) {
69780
+ return visitFunction ? (arg) => visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
69781
+ }
69782
+ function toOneArgVisitWithPath(visitFunction) {
69783
+ return visitFunction ? (arg) => visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true;
69784
+ }
69785
+ const onObjectBegin = toNoArgVisitWithPath(visitor.onObjectBegin), onObjectProperty = toOneArgVisitWithPath(visitor.onObjectProperty), onObjectEnd = toNoArgVisit(visitor.onObjectEnd), onArrayBegin = toNoArgVisitWithPath(visitor.onArrayBegin), onArrayEnd = toNoArgVisit(visitor.onArrayEnd), onLiteralValue = toOneArgVisitWithPath(visitor.onLiteralValue), onSeparator = toOneArgVisit(visitor.onSeparator), onComment = toNoArgVisit(visitor.onComment), onError = toOneArgVisit(visitor.onError);
69786
+ const disallowComments = options2 && options2.disallowComments;
69787
+ const allowTrailingComma = options2 && options2.allowTrailingComma;
69788
+ function scanNext() {
69789
+ while (true) {
69790
+ const token2 = _scanner.scan();
69791
+ switch (_scanner.getTokenError()) {
69792
+ case 4:
69793
+ handleError(
69794
+ 14
69795
+ /* ParseErrorCode.InvalidUnicode */
69796
+ );
69797
+ break;
69798
+ case 5:
69799
+ handleError(
69800
+ 15
69801
+ /* ParseErrorCode.InvalidEscapeCharacter */
69802
+ );
69803
+ break;
69804
+ case 3:
69805
+ handleError(
69806
+ 13
69807
+ /* ParseErrorCode.UnexpectedEndOfNumber */
69808
+ );
69809
+ break;
69810
+ case 1:
69811
+ if (!disallowComments) {
69812
+ handleError(
69813
+ 11
69814
+ /* ParseErrorCode.UnexpectedEndOfComment */
69815
+ );
69816
+ }
69817
+ break;
69818
+ case 2:
69819
+ handleError(
69820
+ 12
69821
+ /* ParseErrorCode.UnexpectedEndOfString */
69822
+ );
69823
+ break;
69824
+ case 6:
69825
+ handleError(
69826
+ 16
69827
+ /* ParseErrorCode.InvalidCharacter */
69828
+ );
69829
+ break;
69830
+ }
69831
+ switch (token2) {
69832
+ case 12:
69833
+ case 13:
69834
+ if (disallowComments) {
69835
+ handleError(
69836
+ 10
69837
+ /* ParseErrorCode.InvalidCommentToken */
69838
+ );
69839
+ } else {
69840
+ onComment();
69841
+ }
69842
+ break;
69843
+ case 16:
69844
+ handleError(
69845
+ 1
69846
+ /* ParseErrorCode.InvalidSymbol */
69847
+ );
69848
+ break;
69849
+ case 15:
69850
+ case 14:
69851
+ break;
69852
+ default:
69853
+ return token2;
69854
+ }
69855
+ }
69856
+ }
69857
+ function handleError(error3, skipUntilAfter = [], skipUntil = []) {
69858
+ onError(error3);
69859
+ if (skipUntilAfter.length + skipUntil.length > 0) {
69860
+ let token2 = _scanner.getToken();
69861
+ while (token2 !== 17) {
69862
+ if (skipUntilAfter.indexOf(token2) !== -1) {
69863
+ scanNext();
69864
+ break;
69865
+ } else if (skipUntil.indexOf(token2) !== -1) {
69866
+ break;
69867
+ }
69868
+ token2 = scanNext();
69869
+ }
69870
+ }
69871
+ }
69872
+ function parseString(isValue) {
69873
+ const value = _scanner.getTokenValue();
69874
+ if (isValue) {
69875
+ onLiteralValue(value);
69876
+ } else {
69877
+ onObjectProperty(value);
69878
+ _jsonPath.push(value);
69879
+ }
69880
+ scanNext();
69881
+ return true;
69882
+ }
69883
+ function parseLiteral() {
69884
+ switch (_scanner.getToken()) {
69885
+ case 11:
69886
+ const tokenValue = _scanner.getTokenValue();
69887
+ let value = Number(tokenValue);
69888
+ if (isNaN(value)) {
69889
+ handleError(
69890
+ 2
69891
+ /* ParseErrorCode.InvalidNumberFormat */
69892
+ );
69893
+ value = 0;
69894
+ }
69895
+ onLiteralValue(value);
69896
+ break;
69897
+ case 7:
69898
+ onLiteralValue(null);
69899
+ break;
69900
+ case 8:
69901
+ onLiteralValue(true);
69902
+ break;
69903
+ case 9:
69904
+ onLiteralValue(false);
69905
+ break;
69906
+ default:
69907
+ return false;
69908
+ }
69909
+ scanNext();
69910
+ return true;
69911
+ }
69912
+ function parseProperty() {
69913
+ if (_scanner.getToken() !== 10) {
69914
+ handleError(3, [], [
69915
+ 2,
69916
+ 5
69917
+ /* SyntaxKind.CommaToken */
69918
+ ]);
69919
+ return false;
69920
+ }
69921
+ parseString(false);
69922
+ if (_scanner.getToken() === 6) {
69923
+ onSeparator(":");
69924
+ scanNext();
69925
+ if (!parseValue()) {
69926
+ handleError(4, [], [
69927
+ 2,
69928
+ 5
69929
+ /* SyntaxKind.CommaToken */
69930
+ ]);
69931
+ }
69932
+ } else {
69933
+ handleError(5, [], [
69934
+ 2,
69935
+ 5
69936
+ /* SyntaxKind.CommaToken */
69937
+ ]);
69938
+ }
69939
+ _jsonPath.pop();
69940
+ return true;
69941
+ }
69942
+ function parseObject() {
69943
+ onObjectBegin();
69944
+ scanNext();
69945
+ let needsComma = false;
69946
+ while (_scanner.getToken() !== 2 && _scanner.getToken() !== 17) {
69947
+ if (_scanner.getToken() === 5) {
69948
+ if (!needsComma) {
69949
+ handleError(4, [], []);
69950
+ }
69951
+ onSeparator(",");
69952
+ scanNext();
69953
+ if (_scanner.getToken() === 2 && allowTrailingComma) {
69954
+ break;
69955
+ }
69956
+ } else if (needsComma) {
69957
+ handleError(6, [], []);
69958
+ }
69959
+ if (!parseProperty()) {
69960
+ handleError(4, [], [
69961
+ 2,
69962
+ 5
69963
+ /* SyntaxKind.CommaToken */
69964
+ ]);
69965
+ }
69966
+ needsComma = true;
69967
+ }
69968
+ onObjectEnd();
69969
+ if (_scanner.getToken() !== 2) {
69970
+ handleError(7, [
69971
+ 2
69972
+ /* SyntaxKind.CloseBraceToken */
69973
+ ], []);
69974
+ } else {
69975
+ scanNext();
69976
+ }
69977
+ return true;
69978
+ }
69979
+ function parseArray() {
69980
+ onArrayBegin();
69981
+ scanNext();
69982
+ let isFirstElement = true;
69983
+ let needsComma = false;
69984
+ while (_scanner.getToken() !== 4 && _scanner.getToken() !== 17) {
69985
+ if (_scanner.getToken() === 5) {
69986
+ if (!needsComma) {
69987
+ handleError(4, [], []);
69988
+ }
69989
+ onSeparator(",");
69990
+ scanNext();
69991
+ if (_scanner.getToken() === 4 && allowTrailingComma) {
69992
+ break;
69993
+ }
69994
+ } else if (needsComma) {
69995
+ handleError(6, [], []);
69996
+ }
69997
+ if (isFirstElement) {
69998
+ _jsonPath.push(0);
69999
+ isFirstElement = false;
70000
+ } else {
70001
+ _jsonPath[_jsonPath.length - 1]++;
70002
+ }
70003
+ if (!parseValue()) {
70004
+ handleError(4, [], [
70005
+ 4,
70006
+ 5
70007
+ /* SyntaxKind.CommaToken */
70008
+ ]);
70009
+ }
70010
+ needsComma = true;
70011
+ }
70012
+ onArrayEnd();
70013
+ if (!isFirstElement) {
70014
+ _jsonPath.pop();
70015
+ }
70016
+ if (_scanner.getToken() !== 4) {
70017
+ handleError(8, [
70018
+ 4
70019
+ /* SyntaxKind.CloseBracketToken */
70020
+ ], []);
70021
+ } else {
70022
+ scanNext();
70023
+ }
70024
+ return true;
70025
+ }
70026
+ function parseValue() {
70027
+ switch (_scanner.getToken()) {
70028
+ case 3:
70029
+ return parseArray();
70030
+ case 1:
70031
+ return parseObject();
70032
+ case 10:
70033
+ return parseString(true);
70034
+ default:
70035
+ return parseLiteral();
70036
+ }
70037
+ }
70038
+ scanNext();
70039
+ if (_scanner.getToken() === 17) {
70040
+ if (options2.allowEmptyContent) {
70041
+ return true;
70042
+ }
70043
+ handleError(4, [], []);
70044
+ return false;
70045
+ }
70046
+ if (!parseValue()) {
70047
+ handleError(4, [], []);
70048
+ return false;
70049
+ }
70050
+ if (_scanner.getToken() !== 17) {
70051
+ handleError(9, [], []);
70052
+ }
70053
+ return true;
70054
+ }
70055
+ function stripComments(text, replaceCh) {
70056
+ let _scanner = createScanner(text), parts = [], kind, offset = 0, pos;
70057
+ do {
70058
+ pos = _scanner.getPosition();
70059
+ kind = _scanner.scan();
70060
+ switch (kind) {
70061
+ case 12:
70062
+ case 13:
70063
+ case 17:
70064
+ if (offset !== pos) {
70065
+ parts.push(text.substring(offset, pos));
70066
+ }
70067
+ if (replaceCh !== void 0) {
70068
+ parts.push(_scanner.getTokenValue().replace(/[^\r\n]/g, replaceCh));
70069
+ }
70070
+ offset = _scanner.getPosition();
70071
+ break;
70072
+ }
70073
+ } while (kind !== 17);
70074
+ return parts.join("");
70075
+ }
70076
+ function getNodeType(value) {
70077
+ switch (typeof value) {
70078
+ case "boolean":
70079
+ return "boolean";
70080
+ case "number":
70081
+ return "number";
70082
+ case "string":
70083
+ return "string";
70084
+ case "object": {
70085
+ if (!value) {
70086
+ return "null";
70087
+ } else if (Array.isArray(value)) {
70088
+ return "array";
70089
+ }
70090
+ return "object";
70091
+ }
70092
+ default:
70093
+ return "null";
70094
+ }
70095
+ }
70096
+ var ParseOptions;
70097
+ var init_parser = __esm({
70098
+ "../../node_modules/jsonc-parser/lib/esm/impl/parser.js"() {
70099
+ "use strict";
70100
+ init_scanner();
70101
+ (function(ParseOptions2) {
70102
+ ParseOptions2.DEFAULT = {
70103
+ allowTrailingComma: false
70104
+ };
70105
+ })(ParseOptions || (ParseOptions = {}));
70106
+ }
70107
+ });
70108
+
70109
+ // ../../node_modules/jsonc-parser/lib/esm/impl/edit.js
70110
+ function setProperty(text, originalPath, value, options2) {
70111
+ const path2 = originalPath.slice();
70112
+ const errors = [];
70113
+ const root = parseTree(text, errors);
70114
+ let parent = void 0;
70115
+ let lastSegment = void 0;
70116
+ while (path2.length > 0) {
70117
+ lastSegment = path2.pop();
70118
+ parent = findNodeAtLocation(root, path2);
70119
+ if (parent === void 0 && value !== void 0) {
70120
+ if (typeof lastSegment === "string") {
70121
+ value = { [lastSegment]: value };
70122
+ } else {
70123
+ value = [value];
70124
+ }
70125
+ } else {
70126
+ break;
70127
+ }
70128
+ }
70129
+ if (!parent) {
70130
+ if (value === void 0) {
70131
+ throw new Error("Can not delete in empty document");
70132
+ }
70133
+ return withFormatting(text, { offset: root ? root.offset : 0, length: root ? root.length : 0, content: JSON.stringify(value) }, options2);
70134
+ } else if (parent.type === "object" && typeof lastSegment === "string" && Array.isArray(parent.children)) {
70135
+ const existing = findNodeAtLocation(parent, [lastSegment]);
70136
+ if (existing !== void 0) {
70137
+ if (value === void 0) {
70138
+ if (!existing.parent) {
70139
+ throw new Error("Malformed AST");
70140
+ }
70141
+ const propertyIndex = parent.children.indexOf(existing.parent);
70142
+ let removeBegin;
70143
+ let removeEnd = existing.parent.offset + existing.parent.length;
70144
+ if (propertyIndex > 0) {
70145
+ let previous = parent.children[propertyIndex - 1];
70146
+ removeBegin = previous.offset + previous.length;
70147
+ } else {
70148
+ removeBegin = parent.offset + 1;
70149
+ if (parent.children.length > 1) {
70150
+ let next = parent.children[1];
70151
+ removeEnd = next.offset;
70152
+ }
70153
+ }
70154
+ return withFormatting(text, { offset: removeBegin, length: removeEnd - removeBegin, content: "" }, options2);
70155
+ } else {
70156
+ return withFormatting(text, { offset: existing.offset, length: existing.length, content: JSON.stringify(value) }, options2);
70157
+ }
70158
+ } else {
70159
+ if (value === void 0) {
70160
+ return [];
70161
+ }
70162
+ const newProperty = `${JSON.stringify(lastSegment)}: ${JSON.stringify(value)}`;
70163
+ const index = options2.getInsertionIndex ? options2.getInsertionIndex(parent.children.map((p) => p.children[0].value)) : parent.children.length;
70164
+ let edit;
70165
+ if (index > 0) {
70166
+ let previous = parent.children[index - 1];
70167
+ edit = { offset: previous.offset + previous.length, length: 0, content: "," + newProperty };
70168
+ } else if (parent.children.length === 0) {
70169
+ edit = { offset: parent.offset + 1, length: 0, content: newProperty };
70170
+ } else {
70171
+ edit = { offset: parent.offset + 1, length: 0, content: newProperty + "," };
70172
+ }
70173
+ return withFormatting(text, edit, options2);
70174
+ }
70175
+ } else if (parent.type === "array" && typeof lastSegment === "number" && Array.isArray(parent.children)) {
70176
+ const insertIndex = lastSegment;
70177
+ if (insertIndex === -1) {
70178
+ const newProperty = `${JSON.stringify(value)}`;
70179
+ let edit;
70180
+ if (parent.children.length === 0) {
70181
+ edit = { offset: parent.offset + 1, length: 0, content: newProperty };
70182
+ } else {
70183
+ const previous = parent.children[parent.children.length - 1];
70184
+ edit = { offset: previous.offset + previous.length, length: 0, content: "," + newProperty };
70185
+ }
70186
+ return withFormatting(text, edit, options2);
70187
+ } else if (value === void 0 && parent.children.length >= 0) {
70188
+ const removalIndex = lastSegment;
70189
+ const toRemove = parent.children[removalIndex];
70190
+ let edit;
70191
+ if (parent.children.length === 1) {
70192
+ edit = { offset: parent.offset + 1, length: parent.length - 2, content: "" };
70193
+ } else if (parent.children.length - 1 === removalIndex) {
70194
+ let previous = parent.children[removalIndex - 1];
70195
+ let offset = previous.offset + previous.length;
70196
+ let parentEndOffset = parent.offset + parent.length;
70197
+ edit = { offset, length: parentEndOffset - 2 - offset, content: "" };
70198
+ } else {
70199
+ edit = { offset: toRemove.offset, length: parent.children[removalIndex + 1].offset - toRemove.offset, content: "" };
70200
+ }
70201
+ return withFormatting(text, edit, options2);
70202
+ } else if (value !== void 0) {
70203
+ let edit;
70204
+ const newProperty = `${JSON.stringify(value)}`;
70205
+ if (!options2.isArrayInsertion && parent.children.length > lastSegment) {
70206
+ const toModify = parent.children[lastSegment];
70207
+ edit = { offset: toModify.offset, length: toModify.length, content: newProperty };
70208
+ } else if (parent.children.length === 0 || lastSegment === 0) {
70209
+ edit = { offset: parent.offset + 1, length: 0, content: parent.children.length === 0 ? newProperty : newProperty + "," };
70210
+ } else {
70211
+ const index = lastSegment > parent.children.length ? parent.children.length : lastSegment;
70212
+ const previous = parent.children[index - 1];
70213
+ edit = { offset: previous.offset + previous.length, length: 0, content: "," + newProperty };
70214
+ }
70215
+ return withFormatting(text, edit, options2);
70216
+ } else {
70217
+ throw new Error(`Can not ${value === void 0 ? "remove" : options2.isArrayInsertion ? "insert" : "modify"} Array index ${insertIndex} as length is not sufficient`);
70218
+ }
70219
+ } else {
70220
+ throw new Error(`Can not add ${typeof lastSegment !== "number" ? "index" : "property"} to parent of type ${parent.type}`);
70221
+ }
70222
+ }
70223
+ function withFormatting(text, edit, options2) {
70224
+ if (!options2.formattingOptions) {
70225
+ return [edit];
70226
+ }
70227
+ let newText = applyEdit(text, edit);
70228
+ let begin = edit.offset;
70229
+ let end = edit.offset + edit.content.length;
70230
+ if (edit.length === 0 || edit.content.length === 0) {
70231
+ while (begin > 0 && !isEOL(newText, begin - 1)) {
70232
+ begin--;
70233
+ }
70234
+ while (end < newText.length && !isEOL(newText, end)) {
70235
+ end++;
70236
+ }
70237
+ }
70238
+ const edits = format(newText, { offset: begin, length: end - begin }, { ...options2.formattingOptions, keepLines: false });
70239
+ for (let i = edits.length - 1; i >= 0; i--) {
70240
+ const edit2 = edits[i];
70241
+ newText = applyEdit(newText, edit2);
70242
+ begin = Math.min(begin, edit2.offset);
70243
+ end = Math.max(end, edit2.offset + edit2.length);
70244
+ end += edit2.content.length - edit2.length;
70245
+ }
70246
+ const editLength = text.length - (newText.length - end) - begin;
70247
+ return [{ offset: begin, length: editLength, content: newText.substring(begin, end) }];
70248
+ }
70249
+ function applyEdit(text, edit) {
70250
+ return text.substring(0, edit.offset) + edit.content + text.substring(edit.offset + edit.length);
70251
+ }
70252
+ var init_edit = __esm({
70253
+ "../../node_modules/jsonc-parser/lib/esm/impl/edit.js"() {
70254
+ "use strict";
70255
+ init_format();
70256
+ init_parser();
70257
+ }
70258
+ });
70259
+
70260
+ // ../../node_modules/jsonc-parser/lib/esm/main.js
70261
+ var main_exports = {};
70262
+ __export(main_exports, {
70263
+ ParseErrorCode: () => ParseErrorCode,
70264
+ ScanError: () => ScanError,
70265
+ SyntaxKind: () => SyntaxKind,
70266
+ applyEdits: () => applyEdits,
70267
+ createScanner: () => createScanner2,
70268
+ findNodeAtLocation: () => findNodeAtLocation2,
70269
+ findNodeAtOffset: () => findNodeAtOffset2,
70270
+ format: () => format2,
70271
+ getLocation: () => getLocation2,
70272
+ getNodePath: () => getNodePath2,
70273
+ getNodeValue: () => getNodeValue2,
70274
+ modify: () => modify,
70275
+ parse: () => parse2,
70276
+ parseTree: () => parseTree2,
70277
+ printParseErrorCode: () => printParseErrorCode,
70278
+ stripComments: () => stripComments2,
70279
+ visit: () => visit2
70280
+ });
70281
+ function printParseErrorCode(code) {
70282
+ switch (code) {
70283
+ case 1:
70284
+ return "InvalidSymbol";
70285
+ case 2:
70286
+ return "InvalidNumberFormat";
70287
+ case 3:
70288
+ return "PropertyNameExpected";
70289
+ case 4:
70290
+ return "ValueExpected";
70291
+ case 5:
70292
+ return "ColonExpected";
70293
+ case 6:
70294
+ return "CommaExpected";
70295
+ case 7:
70296
+ return "CloseBraceExpected";
70297
+ case 8:
70298
+ return "CloseBracketExpected";
70299
+ case 9:
70300
+ return "EndOfFileExpected";
70301
+ case 10:
70302
+ return "InvalidCommentToken";
70303
+ case 11:
70304
+ return "UnexpectedEndOfComment";
70305
+ case 12:
70306
+ return "UnexpectedEndOfString";
70307
+ case 13:
70308
+ return "UnexpectedEndOfNumber";
70309
+ case 14:
70310
+ return "InvalidUnicode";
70311
+ case 15:
70312
+ return "InvalidEscapeCharacter";
70313
+ case 16:
70314
+ return "InvalidCharacter";
70315
+ }
70316
+ return "<unknown ParseErrorCode>";
70317
+ }
70318
+ function format2(documentText, range, options2) {
70319
+ return format(documentText, range, options2);
70320
+ }
70321
+ function modify(text, path2, value, options2) {
70322
+ return setProperty(text, path2, value, options2);
70323
+ }
70324
+ function applyEdits(text, edits) {
70325
+ let sortedEdits = edits.slice(0).sort((a, b) => {
70326
+ const diff = a.offset - b.offset;
70327
+ if (diff === 0) {
70328
+ return a.length - b.length;
70329
+ }
70330
+ return diff;
70331
+ });
70332
+ let lastModifiedOffset = text.length;
70333
+ for (let i = sortedEdits.length - 1; i >= 0; i--) {
70334
+ let e = sortedEdits[i];
70335
+ if (e.offset + e.length <= lastModifiedOffset) {
70336
+ text = applyEdit(text, e);
70337
+ } else {
70338
+ throw new Error("Overlapping edit");
70339
+ }
70340
+ lastModifiedOffset = e.offset;
70341
+ }
70342
+ return text;
70343
+ }
70344
+ var createScanner2, ScanError, SyntaxKind, getLocation2, parse2, parseTree2, findNodeAtLocation2, findNodeAtOffset2, getNodePath2, getNodeValue2, visit2, stripComments2, ParseErrorCode;
70345
+ var init_main = __esm({
70346
+ "../../node_modules/jsonc-parser/lib/esm/main.js"() {
70347
+ "use strict";
70348
+ init_format();
70349
+ init_edit();
70350
+ init_scanner();
70351
+ init_parser();
70352
+ createScanner2 = createScanner;
70353
+ (function(ScanError2) {
70354
+ ScanError2[ScanError2["None"] = 0] = "None";
70355
+ ScanError2[ScanError2["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
70356
+ ScanError2[ScanError2["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
70357
+ ScanError2[ScanError2["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
70358
+ ScanError2[ScanError2["InvalidUnicode"] = 4] = "InvalidUnicode";
70359
+ ScanError2[ScanError2["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
70360
+ ScanError2[ScanError2["InvalidCharacter"] = 6] = "InvalidCharacter";
70361
+ })(ScanError || (ScanError = {}));
70362
+ (function(SyntaxKind2) {
70363
+ SyntaxKind2[SyntaxKind2["OpenBraceToken"] = 1] = "OpenBraceToken";
70364
+ SyntaxKind2[SyntaxKind2["CloseBraceToken"] = 2] = "CloseBraceToken";
70365
+ SyntaxKind2[SyntaxKind2["OpenBracketToken"] = 3] = "OpenBracketToken";
70366
+ SyntaxKind2[SyntaxKind2["CloseBracketToken"] = 4] = "CloseBracketToken";
70367
+ SyntaxKind2[SyntaxKind2["CommaToken"] = 5] = "CommaToken";
70368
+ SyntaxKind2[SyntaxKind2["ColonToken"] = 6] = "ColonToken";
70369
+ SyntaxKind2[SyntaxKind2["NullKeyword"] = 7] = "NullKeyword";
70370
+ SyntaxKind2[SyntaxKind2["TrueKeyword"] = 8] = "TrueKeyword";
70371
+ SyntaxKind2[SyntaxKind2["FalseKeyword"] = 9] = "FalseKeyword";
70372
+ SyntaxKind2[SyntaxKind2["StringLiteral"] = 10] = "StringLiteral";
70373
+ SyntaxKind2[SyntaxKind2["NumericLiteral"] = 11] = "NumericLiteral";
70374
+ SyntaxKind2[SyntaxKind2["LineCommentTrivia"] = 12] = "LineCommentTrivia";
70375
+ SyntaxKind2[SyntaxKind2["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
70376
+ SyntaxKind2[SyntaxKind2["LineBreakTrivia"] = 14] = "LineBreakTrivia";
70377
+ SyntaxKind2[SyntaxKind2["Trivia"] = 15] = "Trivia";
70378
+ SyntaxKind2[SyntaxKind2["Unknown"] = 16] = "Unknown";
70379
+ SyntaxKind2[SyntaxKind2["EOF"] = 17] = "EOF";
70380
+ })(SyntaxKind || (SyntaxKind = {}));
70381
+ getLocation2 = getLocation;
70382
+ parse2 = parse;
70383
+ parseTree2 = parseTree;
70384
+ findNodeAtLocation2 = findNodeAtLocation;
70385
+ findNodeAtOffset2 = findNodeAtOffset;
70386
+ getNodePath2 = getNodePath;
70387
+ getNodeValue2 = getNodeValue;
70388
+ visit2 = visit;
70389
+ stripComments2 = stripComments;
70390
+ (function(ParseErrorCode2) {
70391
+ ParseErrorCode2[ParseErrorCode2["InvalidSymbol"] = 1] = "InvalidSymbol";
70392
+ ParseErrorCode2[ParseErrorCode2["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
70393
+ ParseErrorCode2[ParseErrorCode2["PropertyNameExpected"] = 3] = "PropertyNameExpected";
70394
+ ParseErrorCode2[ParseErrorCode2["ValueExpected"] = 4] = "ValueExpected";
70395
+ ParseErrorCode2[ParseErrorCode2["ColonExpected"] = 5] = "ColonExpected";
70396
+ ParseErrorCode2[ParseErrorCode2["CommaExpected"] = 6] = "CommaExpected";
70397
+ ParseErrorCode2[ParseErrorCode2["CloseBraceExpected"] = 7] = "CloseBraceExpected";
70398
+ ParseErrorCode2[ParseErrorCode2["CloseBracketExpected"] = 8] = "CloseBracketExpected";
70399
+ ParseErrorCode2[ParseErrorCode2["EndOfFileExpected"] = 9] = "EndOfFileExpected";
70400
+ ParseErrorCode2[ParseErrorCode2["InvalidCommentToken"] = 10] = "InvalidCommentToken";
70401
+ ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
70402
+ ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
70403
+ ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
70404
+ ParseErrorCode2[ParseErrorCode2["InvalidUnicode"] = 14] = "InvalidUnicode";
70405
+ ParseErrorCode2[ParseErrorCode2["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
70406
+ ParseErrorCode2[ParseErrorCode2["InvalidCharacter"] = 16] = "InvalidCharacter";
70407
+ })(ParseErrorCode || (ParseErrorCode = {}));
70408
+ }
70409
+ });
70410
+
68815
70411
  // ../lib/project-access/core/dist/common/file.js
68816
70412
  var require_file2 = __commonJS({
68817
70413
  "../lib/project-access/core/dist/common/file.js"(exports2) {
@@ -68849,11 +70445,12 @@ var require_file2 = __commonJS({
68849
70445
  return result2;
68850
70446
  };
68851
70447
  Object.defineProperty(exports2, "__esModule", { value: true });
68852
- exports2.fsPathToFtfsPath = exports2.moveFile = exports2.deleteDirectory = exports2.isDirectory = exports2.fileExists = exports2.createDirectory = exports2.readDirectory = exports2.updateJSON = exports2.updateFile = exports2.deleteFile = exports2.readJSON = exports2.readFile = void 0;
70448
+ exports2.fsPathToFtfsPath = exports2.moveFile = exports2.deleteDirectory = exports2.isDirectory = exports2.fileExists = exports2.createDirectory = exports2.readDirectory = exports2.updateJSONWithComments = exports2.updateJSON = exports2.updateFile = exports2.deleteFile = exports2.readJSONWithComments = exports2.readJSON = exports2.readFile = void 0;
68853
70449
  var fs2 = __importStar(require("fs"));
68854
70450
  var path_1 = require("path");
68855
70451
  var vscode_uri_1 = (init_esm(), __toCommonJS(esm_exports));
68856
70452
  var project_spec_1 = require_dist2();
70453
+ var jsonc_parser_1 = (init_main(), __toCommonJS(main_exports));
68857
70454
  async function readFile3(path2) {
68858
70455
  return new Promise((resolve, reject) => {
68859
70456
  fs2.readFile(path2, { encoding: "utf8" }, (err, data2) => {
@@ -68870,6 +70467,10 @@ var require_file2 = __commonJS({
68870
70467
  return JSON.parse(await readFile3(path2));
68871
70468
  }
68872
70469
  exports2.readJSON = readJSON;
70470
+ async function readJSONWithComments(path2) {
70471
+ return (0, jsonc_parser_1.parse)(await readFile3(path2));
70472
+ }
70473
+ exports2.readJSONWithComments = readJSONWithComments;
68873
70474
  async function deleteFile(path2) {
68874
70475
  return new Promise((resolve, reject) => {
68875
70476
  fs2.unlink(path2, (err) => {
@@ -68902,6 +70503,19 @@ var require_file2 = __commonJS({
68902
70503
  await updateFile(path2, content ? JSON.stringify(content, null, 4) : null);
68903
70504
  }
68904
70505
  exports2.updateJSON = updateJSON;
70506
+ async function updateJSONWithComments(content, filePath, jsonPath, options2 = {}) {
70507
+ const jsonString = await readFile3(filePath);
70508
+ if (!options2.formattingOptions) {
70509
+ options2.formattingOptions = {
70510
+ tabSize: 4,
70511
+ insertSpaces: true
70512
+ };
70513
+ }
70514
+ const edits = (0, jsonc_parser_1.modify)(jsonString, jsonPath, content, options2);
70515
+ const updated = (0, jsonc_parser_1.applyEdits)(jsonString, edits);
70516
+ await updateFile(filePath, updated);
70517
+ }
70518
+ exports2.updateJSONWithComments = updateJSONWithComments;
68905
70519
  async function readDirectory(path2) {
68906
70520
  return new Promise((resolve, reject) => {
68907
70521
  fs2.readdir(path2, { encoding: "utf8" }, (err, data2) => {
@@ -73066,7 +74680,11 @@ var require_cap = __commonJS({
73066
74680
  if (!module3) {
73067
74681
  throw Error(`Could not load cds module. Attempt to load module @sap/cds from project threw error '${loadProjectError}', attempt to load module @sap/cds from @sap/cds-dk threw error '${loadError}'`);
73068
74682
  }
73069
- return "default" in module3 ? module3.default : module3;
74683
+ const cds = "default" in module3 ? module3.default : module3;
74684
+ if (global) {
74685
+ global.cds = cds;
74686
+ }
74687
+ return cds;
73070
74688
  });
73071
74689
  }
73072
74690
  var toAbsoluteUri = (projectRoot, relativeUri) => (0, path_1.join)(projectRoot, relativeUri);
@@ -78232,7 +79850,7 @@ function get2() {
78232
79850
  },
78233
79851
  interpolation: {
78234
79852
  escapeValue: true,
78235
- format: function format2(value, _format, lng, options2) {
79853
+ format: function format4(value, _format, lng, options2) {
78236
79854
  return value;
78237
79855
  },
78238
79856
  prefix: "{{",
@@ -80396,7 +82014,7 @@ var require_json52 = __commonJS({
80396
82014
  isIdContinueChar: function isIdContinueChar(c2) {
80397
82015
  return typeof c2 === "string" && (c2 >= "a" && c2 <= "z" || c2 >= "A" && c2 <= "Z" || c2 >= "0" && c2 <= "9" || c2 === "$" || c2 === "_" || c2 === "\u200C" || c2 === "\u200D" || unicode.ID_Continue.test(c2));
80398
82016
  },
80399
- isDigit: function isDigit(c2) {
82017
+ isDigit: function isDigit2(c2) {
80400
82018
  return typeof c2 === "string" && /[0-9]/.test(c2);
80401
82019
  },
80402
82020
  isHexDigit: function isHexDigit(c2) {
@@ -80412,7 +82030,7 @@ var require_json52 = __commonJS({
80412
82030
  var token2;
80413
82031
  var key;
80414
82032
  var root;
80415
- var parse2 = function parse3(text, reviver) {
82033
+ var parse4 = function parse5(text, reviver) {
80416
82034
  source = String(text);
80417
82035
  parseState = "start";
80418
82036
  stack = [];
@@ -81459,7 +83077,7 @@ var require_json52 = __commonJS({
81459
83077
  }
81460
83078
  };
81461
83079
  var JSON5 = {
81462
- parse: parse2,
83080
+ parse: parse4,
81463
83081
  stringify
81464
83082
  };
81465
83083
  var lib = JSON5;
@@ -81509,7 +83127,7 @@ var require_yaml2 = __commonJS({
81509
83127
  }
81510
83128
  return target;
81511
83129
  }
81512
- function repeat(string, count) {
83130
+ function repeat2(string, count) {
81513
83131
  var result2 = "", cycle;
81514
83132
  for (cycle = 0; cycle < count; cycle += 1) {
81515
83133
  result2 += string;
@@ -81522,7 +83140,7 @@ var require_yaml2 = __commonJS({
81522
83140
  var isNothing_1 = isNothing;
81523
83141
  var isObject_1 = isObject;
81524
83142
  var toArray_1 = toArray;
81525
- var repeat_1 = repeat;
83143
+ var repeat_1 = repeat2;
81526
83144
  var isNegativeZero_1 = isNegativeZero;
81527
83145
  var extend_1 = extend;
81528
83146
  var common = {
@@ -90843,8 +92461,8 @@ var require_levels = __commonJS({
90843
92461
  var require_align = __commonJS({
90844
92462
  "../../node_modules/logform/align.js"(exports2, module2) {
90845
92463
  "use strict";
90846
- var format2 = require_format2();
90847
- module2.exports = format2((info) => {
92464
+ var format4 = require_format2();
92465
+ module2.exports = format4((info) => {
90848
92466
  info.message = ` ${info.message}`;
90849
92467
  return info;
90850
92468
  });
@@ -90855,9 +92473,9 @@ var require_align = __commonJS({
90855
92473
  var require_errors4 = __commonJS({
90856
92474
  "../../node_modules/logform/errors.js"(exports2, module2) {
90857
92475
  "use strict";
90858
- var format2 = require_format2();
92476
+ var format4 = require_format2();
90859
92477
  var { LEVEL, MESSAGE } = require_triple_beam();
90860
- module2.exports = format2((einfo, { stack }) => {
92478
+ module2.exports = format4((einfo, { stack }) => {
90861
92479
  if (einfo instanceof Error) {
90862
92480
  const info = Object.assign({}, einfo, {
90863
92481
  level: einfo.level,
@@ -90994,7 +92612,7 @@ var require_cli3 = __commonJS({
90994
92612
  var require_combine = __commonJS({
90995
92613
  "../../node_modules/logform/combine.js"(exports2, module2) {
90996
92614
  "use strict";
90997
- var format2 = require_format2();
92615
+ var format4 = require_format2();
90998
92616
  function cascade(formats) {
90999
92617
  if (!formats.every(isValidFormat)) {
91000
92618
  return;
@@ -91021,7 +92639,7 @@ var require_combine = __commonJS({
91021
92639
  return true;
91022
92640
  }
91023
92641
  module2.exports = (...formats) => {
91024
- const combinedFormat = format2(cascade(formats));
92642
+ const combinedFormat = format4(cascade(formats));
91025
92643
  const instance = combinedFormat();
91026
92644
  instance.Format = combinedFormat.Format;
91027
92645
  return instance;
@@ -91700,7 +93318,7 @@ ${originalIndentation}`;
91700
93318
  var require_json = __commonJS({
91701
93319
  "../../node_modules/logform/json.js"(exports2, module2) {
91702
93320
  "use strict";
91703
- var format2 = require_format2();
93321
+ var format4 = require_format2();
91704
93322
  var { MESSAGE } = require_triple_beam();
91705
93323
  var stringify = require_safe_stable_stringify();
91706
93324
  function replacer(key, value) {
@@ -91708,7 +93326,7 @@ var require_json = __commonJS({
91708
93326
  return value.toString();
91709
93327
  return value;
91710
93328
  }
91711
- module2.exports = format2((info, opts) => {
93329
+ module2.exports = format4((info, opts) => {
91712
93330
  const jsonStringify = stringify.configure(opts);
91713
93331
  info[MESSAGE] = jsonStringify(info, opts.replacer || replacer, opts.space);
91714
93332
  return info;
@@ -91720,8 +93338,8 @@ var require_json = __commonJS({
91720
93338
  var require_label = __commonJS({
91721
93339
  "../../node_modules/logform/label.js"(exports2, module2) {
91722
93340
  "use strict";
91723
- var format2 = require_format2();
91724
- module2.exports = format2((info, opts) => {
93341
+ var format4 = require_format2();
93342
+ module2.exports = format4((info, opts) => {
91725
93343
  if (opts.message) {
91726
93344
  info.message = `[${opts.label}] ${info.message}`;
91727
93345
  return info;
@@ -91736,10 +93354,10 @@ var require_label = __commonJS({
91736
93354
  var require_logstash = __commonJS({
91737
93355
  "../../node_modules/logform/logstash.js"(exports2, module2) {
91738
93356
  "use strict";
91739
- var format2 = require_format2();
93357
+ var format4 = require_format2();
91740
93358
  var { MESSAGE } = require_triple_beam();
91741
93359
  var jsonStringify = require_safe_stable_stringify();
91742
- module2.exports = format2((info) => {
93360
+ module2.exports = format4((info) => {
91743
93361
  const logstash = {};
91744
93362
  if (info.message) {
91745
93363
  logstash["@message"] = info.message;
@@ -91760,7 +93378,7 @@ var require_logstash = __commonJS({
91760
93378
  var require_metadata2 = __commonJS({
91761
93379
  "../../node_modules/logform/metadata.js"(exports2, module2) {
91762
93380
  "use strict";
91763
- var format2 = require_format2();
93381
+ var format4 = require_format2();
91764
93382
  function fillExcept(info, fillExceptKeys, metadataKey) {
91765
93383
  const savedKeys = fillExceptKeys.reduce((acc, key) => {
91766
93384
  acc[key] = info[key];
@@ -91785,7 +93403,7 @@ var require_metadata2 = __commonJS({
91785
93403
  }, {});
91786
93404
  return info;
91787
93405
  }
91788
- module2.exports = format2((info, opts = {}) => {
93406
+ module2.exports = format4((info, opts = {}) => {
91789
93407
  let metadataKey = "metadata";
91790
93408
  if (opts.key) {
91791
93409
  metadataKey = opts.key;
@@ -91813,9 +93431,9 @@ var require_metadata2 = __commonJS({
91813
93431
  var require_ms2 = __commonJS({
91814
93432
  "../../node_modules/logform/ms.js"(exports2, module2) {
91815
93433
  "use strict";
91816
- var format2 = require_format2();
93434
+ var format4 = require_format2();
91817
93435
  var ms = require_ms();
91818
- module2.exports = format2((info) => {
93436
+ module2.exports = format4((info) => {
91819
93437
  const curr = +/* @__PURE__ */ new Date();
91820
93438
  exports2.diff = curr - (exports2.prevTime || curr);
91821
93439
  exports2.prevTime = curr;
@@ -91830,9 +93448,9 @@ var require_pretty_print = __commonJS({
91830
93448
  "../../node_modules/logform/pretty-print.js"(exports2, module2) {
91831
93449
  "use strict";
91832
93450
  var inspect = require("util").inspect;
91833
- var format2 = require_format2();
93451
+ var format4 = require_format2();
91834
93452
  var { LEVEL, MESSAGE, SPLAT } = require_triple_beam();
91835
- module2.exports = format2((info, opts = {}) => {
93453
+ module2.exports = format4((info, opts = {}) => {
91836
93454
  const stripped = Object.assign({}, info);
91837
93455
  delete stripped[LEVEL];
91838
93456
  delete stripped[MESSAGE];
@@ -91866,10 +93484,10 @@ var require_printf = __commonJS({
91866
93484
  var require_simple = __commonJS({
91867
93485
  "../../node_modules/logform/simple.js"(exports2, module2) {
91868
93486
  "use strict";
91869
- var format2 = require_format2();
93487
+ var format4 = require_format2();
91870
93488
  var { MESSAGE } = require_triple_beam();
91871
93489
  var jsonStringify = require_safe_stable_stringify();
91872
- module2.exports = format2((info) => {
93490
+ module2.exports = format4((info) => {
91873
93491
  const stringifiedRest = jsonStringify(Object.assign({}, info, {
91874
93492
  level: void 0,
91875
93493
  message: void 0,
@@ -91966,8 +93584,8 @@ __export(fecha_exports, {
91966
93584
  assign: () => assign,
91967
93585
  default: () => fecha_default,
91968
93586
  defaultI18n: () => defaultI18n,
91969
- format: () => format,
91970
- parse: () => parse,
93587
+ format: () => format3,
93588
+ parse: () => parse3,
91971
93589
  setGlobalDateI18n: () => setGlobalDateI18n,
91972
93590
  setGlobalDateMasks: () => setGlobalDateMasks
91973
93591
  });
@@ -91991,14 +93609,14 @@ function assign(origObj) {
91991
93609
  }
91992
93610
  return origObj;
91993
93611
  }
91994
- function parse(dateStr, format2, i18n) {
93612
+ function parse3(dateStr, format4, i18n) {
91995
93613
  if (i18n === void 0) {
91996
93614
  i18n = {};
91997
93615
  }
91998
- if (typeof format2 !== "string") {
93616
+ if (typeof format4 !== "string") {
91999
93617
  throw new Error("Invalid format in fecha parse");
92000
93618
  }
92001
- format2 = globalMasks[format2] || format2;
93619
+ format4 = globalMasks[format4] || format4;
92002
93620
  if (dateStr.length > 1e3) {
92003
93621
  return null;
92004
93622
  }
@@ -92016,7 +93634,7 @@ function parse(dateStr, format2, i18n) {
92016
93634
  };
92017
93635
  var parseInfo = [];
92018
93636
  var literals = [];
92019
- var newFormat = format2.replace(literal, function($0, $1) {
93637
+ var newFormat = format4.replace(literal, function($0, $1) {
92020
93638
  literals.push(regexEscape3($1));
92021
93639
  return "@@@";
92022
93640
  });
@@ -92079,7 +93697,7 @@ function parse(dateStr, format2, i18n) {
92079
93697
  }
92080
93698
  return new Date(Date.UTC(dateInfo.year, dateInfo.month, dateInfo.day, dateInfo.hour, dateInfo.minute - dateInfo.timezoneOffset, dateInfo.second, dateInfo.millisecond));
92081
93699
  }
92082
- var token, twoDigitsOptional, twoDigits, threeDigits, fourDigits, word, literal, monthUpdate, dayNames, monthNames, monthNamesShort, dayNamesShort, defaultI18n, globalI18n, setGlobalDateI18n, regexEscape3, pad, formatFlags, monthParse, emptyDigits, emptyWord, amPm, timezoneOffset, parseFlags, globalMasks, setGlobalDateMasks, format, fecha, fecha_default;
93700
+ var token, twoDigitsOptional, twoDigits, threeDigits, fourDigits, word, literal, monthUpdate, dayNames, monthNames, monthNamesShort, dayNamesShort, defaultI18n, globalI18n, setGlobalDateI18n, regexEscape3, pad, formatFlags, monthParse, emptyDigits, emptyWord, amPm, timezoneOffset, parseFlags, globalMasks, setGlobalDateMasks, format3, fecha, fecha_default;
92083
93701
  var init_fecha = __esm({
92084
93702
  "../../node_modules/fecha/lib/fecha.js"() {
92085
93703
  token = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
@@ -92330,7 +93948,7 @@ var init_fecha = __esm({
92330
93948
  setGlobalDateMasks = function(masks) {
92331
93949
  return assign(globalMasks, masks);
92332
93950
  };
92333
- format = function(dateObj, mask, i18n) {
93951
+ format3 = function(dateObj, mask, i18n) {
92334
93952
  if (mask === void 0) {
92335
93953
  mask = globalMasks["default"];
92336
93954
  }
@@ -92358,8 +93976,8 @@ var init_fecha = __esm({
92358
93976
  });
92359
93977
  };
92360
93978
  fecha = {
92361
- format,
92362
- parse,
93979
+ format: format3,
93980
+ parse: parse3,
92363
93981
  defaultI18n,
92364
93982
  setGlobalDateI18n,
92365
93983
  setGlobalDateMasks
@@ -92373,8 +93991,8 @@ var require_timestamp2 = __commonJS({
92373
93991
  "../../node_modules/logform/timestamp.js"(exports2, module2) {
92374
93992
  "use strict";
92375
93993
  var fecha2 = (init_fecha(), __toCommonJS(fecha_exports));
92376
- var format2 = require_format2();
92377
- module2.exports = format2((info, opts = {}) => {
93994
+ var format4 = require_format2();
93995
+ module2.exports = format4((info, opts = {}) => {
92378
93996
  if (opts.format) {
92379
93997
  info.timestamp = typeof opts.format === "function" ? opts.format() : fecha2.format(/* @__PURE__ */ new Date(), opts.format);
92380
93998
  }
@@ -92394,9 +94012,9 @@ var require_uncolorize = __commonJS({
92394
94012
  "../../node_modules/logform/uncolorize.js"(exports2, module2) {
92395
94013
  "use strict";
92396
94014
  var colors = require_safe();
92397
- var format2 = require_format2();
94015
+ var format4 = require_format2();
92398
94016
  var { MESSAGE } = require_triple_beam();
92399
- module2.exports = format2((info, opts) => {
94017
+ module2.exports = format4((info, opts) => {
92400
94018
  if (opts.level !== false) {
92401
94019
  info.level = colors.strip(info.level);
92402
94020
  }
@@ -92415,10 +94033,10 @@ var require_uncolorize = __commonJS({
92415
94033
  var require_logform = __commonJS({
92416
94034
  "../../node_modules/logform/index.js"(exports2) {
92417
94035
  "use strict";
92418
- var format2 = exports2.format = require_format2();
94036
+ var format4 = exports2.format = require_format2();
92419
94037
  exports2.levels = require_levels();
92420
94038
  function exposeFormat(name, requireFormat) {
92421
- Object.defineProperty(format2, name, {
94039
+ Object.defineProperty(format4, name, {
92422
94040
  get() {
92423
94041
  return requireFormat();
92424
94042
  },
@@ -92483,17 +94101,17 @@ var require_logform = __commonJS({
92483
94101
  var require_common8 = __commonJS({
92484
94102
  "../../node_modules/winston/lib/winston/common.js"(exports2) {
92485
94103
  "use strict";
92486
- var { format: format2 } = require("util");
94104
+ var { format: format4 } = require("util");
92487
94105
  exports2.warn = {
92488
94106
  deprecated(prop) {
92489
94107
  return () => {
92490
- throw new Error(format2("{ %s } was removed in winston@3.0.0.", prop));
94108
+ throw new Error(format4("{ %s } was removed in winston@3.0.0.", prop));
92491
94109
  };
92492
94110
  },
92493
94111
  useFormat(prop) {
92494
94112
  return () => {
92495
94113
  throw new Error([
92496
- format2("{ %s } was removed in winston@3.0.0.", prop),
94114
+ format4("{ %s } was removed in winston@3.0.0.", prop),
92497
94115
  "Use a custom winston.format = winston.format(function) instead."
92498
94116
  ].join("\n"));
92499
94117
  };
@@ -92507,8 +94125,8 @@ var require_common8 = __commonJS({
92507
94125
  function movedNotice() {
92508
94126
  return () => {
92509
94127
  throw new Error([
92510
- format2("winston.%s was moved in winston@3.0.0.", prop),
92511
- format2("Use a winston.%s instead.", movedTo)
94128
+ format4("winston.%s was moved in winston@3.0.0.", prop),
94129
+ format4("Use a winston.%s instead.", movedTo)
92512
94130
  ].join("\n"));
92513
94131
  };
92514
94132
  }
@@ -96031,14 +97649,14 @@ var require_readable = __commonJS({
96031
97649
  // ../../node_modules/@dabh/diagnostics/diagnostics.js
96032
97650
  var require_diagnostics = __commonJS({
96033
97651
  "../../node_modules/@dabh/diagnostics/diagnostics.js"(exports2, module2) {
96034
- var adapters2 = [];
97652
+ var adapters = [];
96035
97653
  var modifiers = [];
96036
97654
  var logger = function devnull() {
96037
97655
  };
96038
97656
  function use(adapter) {
96039
- if (~adapters2.indexOf(adapter))
97657
+ if (~adapters.indexOf(adapter))
96040
97658
  return false;
96041
- adapters2.push(adapter);
97659
+ adapters.push(adapter);
96042
97660
  return true;
96043
97661
  }
96044
97662
  function set(custom) {
@@ -96046,12 +97664,12 @@ var require_diagnostics = __commonJS({
96046
97664
  }
96047
97665
  function enabled(namespace) {
96048
97666
  var async = [];
96049
- for (var i = 0; i < adapters2.length; i++) {
96050
- if (adapters2[i].async) {
96051
- async.push(adapters2[i]);
97667
+ for (var i = 0; i < adapters.length; i++) {
97668
+ if (adapters[i].async) {
97669
+ async.push(adapters[i]);
96052
97670
  continue;
96053
97671
  }
96054
- if (adapters2[i](namespace))
97672
+ if (adapters[i](namespace))
96055
97673
  return true;
96056
97674
  }
96057
97675
  if (!async.length)
@@ -96066,7 +97684,7 @@ var require_diagnostics = __commonJS({
96066
97684
  });
96067
97685
  });
96068
97686
  }
96069
- function modify(fn) {
97687
+ function modify2(fn) {
96070
97688
  if (~modifiers.indexOf(fn))
96071
97689
  return false;
96072
97690
  modifiers.push(fn);
@@ -96092,7 +97710,7 @@ var require_diagnostics = __commonJS({
96092
97710
  }
96093
97711
  function nope(options2) {
96094
97712
  options2.enabled = false;
96095
- options2.modify = modify;
97713
+ options2.modify = modify2;
96096
97714
  options2.set = set;
96097
97715
  options2.use = use;
96098
97716
  return introduce(function diagnopes() {
@@ -96106,7 +97724,7 @@ var require_diagnostics = __commonJS({
96106
97724
  return true;
96107
97725
  }
96108
97726
  options2.enabled = true;
96109
- options2.modify = modify;
97727
+ options2.modify = modify2;
96110
97728
  options2.set = set;
96111
97729
  options2.use = use;
96112
97730
  return introduce(diagnostics, options2);
@@ -96115,7 +97733,7 @@ var require_diagnostics = __commonJS({
96115
97733
  diagnostics.introduce = introduce;
96116
97734
  diagnostics.enabled = enabled;
96117
97735
  diagnostics.process = process2;
96118
- diagnostics.modify = modify;
97736
+ diagnostics.modify = modify2;
96119
97737
  diagnostics.write = write;
96120
97738
  diagnostics.nope = nope;
96121
97739
  diagnostics.yep = yep;
@@ -99685,7 +101303,7 @@ var require_logger = __commonJS({
99685
101303
  */
99686
101304
  configure({
99687
101305
  silent,
99688
- format: format2,
101306
+ format: format4,
99689
101307
  defaultMeta,
99690
101308
  levels,
99691
101309
  level = "info",
@@ -99704,7 +101322,7 @@ var require_logger = __commonJS({
99704
101322
  this.clear();
99705
101323
  }
99706
101324
  this.silent = silent;
99707
- this.format = format2 || this.format || require_json()();
101325
+ this.format = format4 || this.format || require_json()();
99708
101326
  this.defaultMeta = defaultMeta || null;
99709
101327
  this.levels = levels || this.levels || config.npm.levels;
99710
101328
  this.level = level;
@@ -102005,6 +103623,7 @@ var i18n_default = {
102005
103623
  ABAP_PACKAGE: "ABAP package",
102006
103624
  ADDING_ARTIFACT_TO_PROJECT: "Adding {{artifact}} to the project.",
102007
103625
  APPLICATION_NAME: "Application Name",
103626
+ REPOSITORY_NAME: "Repository Entry",
102008
103627
  ARTIFACT_ADDED: "{{artifact}} added to the project.",
102009
103628
  ARTIFACT_NOT_ADDED: "{{artifact}} not added to the project.",
102010
103629
  CLIENT: "Client",
@@ -102132,7 +103751,7 @@ async function initI18n(language = "en") {
102132
103751
  }
102133
103752
 
102134
103753
  // src/middlewares/preview/utils.ts
102135
- var import_fs3 = require("fs");
103754
+ var import_fs2 = require("fs");
102136
103755
  var import_path2 = require("path");
102137
103756
  var import_project_spec2 = __toESM(require_dist2());
102138
103757
 
@@ -102166,7 +103785,8 @@ var cliParamMap = {
102166
103785
  "-un": "uaa-username",
102167
103786
  "-up": "uaa-password",
102168
103787
  "-ui": "uaa-clientid",
102169
- "-us": "uaa-clientsecret"
103788
+ "-us": "uaa-clientsecret",
103789
+ "-lr": "lrep"
102170
103790
  };
102171
103791
  var paramMap = Object.freeze(cliParamMap);
102172
103792
 
@@ -102178,7 +103798,6 @@ var import_ux_odata_client = __toESM(require_dist6());
102178
103798
  var import_btp_utils = __toESM(require_dist7());
102179
103799
  init_i18next();
102180
103800
  var import_chalk = __toESM(require_source2());
102181
- var import_fs2 = require("@ui5/fs");
102182
103801
  var import_project_spec = __toESM(require_dist2());
102183
103802
  var import_ux_telemetry = __toESM(require_src8());
102184
103803
  var import_ux_ui5_info = __toESM(require_dist8());
@@ -102236,8 +103855,8 @@ var import_ux_ui5_info2 = __toESM(require_dist8());
102236
103855
  var isTelemetryInitialized = false;
102237
103856
  var hasChanges = (webappPath) => {
102238
103857
  const path2 = (0, import_path2.join)(webappPath, import_project_spec2.DirName.Changes);
102239
- if ((0, import_fs3.existsSync)(path2)) {
102240
- const files = (0, import_fs3.readdirSync)(path2);
103858
+ if ((0, import_fs2.existsSync)(path2)) {
103859
+ const files = (0, import_fs2.readdirSync)(path2);
102241
103860
  return files.length > 0;
102242
103861
  } else {
102243
103862
  return false;
@@ -102245,7 +103864,7 @@ var hasChanges = (webappPath) => {
102245
103864
  };
102246
103865
  async function getSapuxLayer(rootPath) {
102247
103866
  const packageJsonPath = (0, import_path2.join)(rootPath, import_project_spec2.FileName.Package);
102248
- const packageJson = JSON.parse(await import_fs3.promises.readFile(packageJsonPath, { encoding: "utf8" }));
103867
+ const packageJson = JSON.parse(await import_fs2.promises.readFile(packageJsonPath, { encoding: "utf8" }));
102249
103868
  return packageJson.sapuxLayer;
102250
103869
  }
102251
103870
  var updateResourceRoots = (html) => {
@@ -102311,8 +103930,8 @@ var addWorkspaceConnector = async (req, res, next, config) => {
102311
103930
  if (hasChanges(config.sourcePath) && feVersion !== import_ux_ui5_info2.FioriElementsVersion.v2) {
102312
103931
  const htmlFileName = getHtmlFile(req.baseUrl);
102313
103932
  const htmlFilePath = (0, import_path2.join)(config.sourcePath, htmlFileName);
102314
- if ((0, import_fs3.existsSync)(htmlFilePath)) {
102315
- addFlexibilityServices(await import_fs3.promises.readFile(htmlFilePath, { encoding: "utf8" }), res, next);
103933
+ if ((0, import_fs2.existsSync)(htmlFilePath)) {
103934
+ addFlexibilityServices(await import_fs2.promises.readFile(htmlFilePath, { encoding: "utf8" }), res, next);
102316
103935
  } else {
102317
103936
  next();
102318
103937
  }
@@ -102389,7 +104008,7 @@ module.exports = async ({
102389
104008
  generator: "changeUtils: SAPFioriTools-propertyEditor"
102390
104009
  }
102391
104010
  ],
102392
- options: { telemetry: true }
104011
+ options: { telemetry: true, scenario: "FE_FROM_SCRATCH" }
102393
104012
  }
102394
104013
  },
102395
104014
  rootProject,