@sap/ux-ui5-tooling 1.9.0 → 1.9.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.
@@ -160,9 +160,13 @@ var require_dist = __commonJS({
160
160
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
161
161
  if (k2 === void 0)
162
162
  k2 = k;
163
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
164
- return m[k];
165
- } });
163
+ var desc = Object.getOwnPropertyDescriptor(m, k);
164
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
165
+ desc = { enumerable: true, get: function() {
166
+ return m[k];
167
+ } };
168
+ }
169
+ Object.defineProperty(o, k2, desc);
166
170
  } : function(o, m, k, k2) {
167
171
  if (k2 === void 0)
168
172
  k2 = k;
@@ -199,7 +203,7 @@ var require_dist = __commonJS({
199
203
  FioriToolsSettings2["dir"] = ".fioritools";
200
204
  })(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
201
205
  var getFioriToolsDirectory = () => {
202
- return path_1.default.join(os_1.homedir(), FioriToolsSettings.dir);
206
+ return path_1.default.join((0, os_1.homedir)(), FioriToolsSettings.dir);
203
207
  };
204
208
  exports2.getFioriToolsDirectory = getFioriToolsDirectory;
205
209
  function filterReferenceUri(metadata) {
@@ -24920,7 +24924,7 @@ var require_utils2 = __commonJS({
24920
24924
  var debug_1 = require_src2();
24921
24925
  exports2.STORE_NAMESPACE = "ft:store";
24922
24926
  exports2.MIGRATION_NAMESPACE = exports2.STORE_NAMESPACE + ":migrate";
24923
- var newDebugLogger = (namespace = exports2.STORE_NAMESPACE) => debug_1.debug(namespace);
24927
+ var newDebugLogger = (namespace = exports2.STORE_NAMESPACE) => (0, debug_1.debug)(namespace);
24924
24928
  exports2.newDebugLogger = newDebugLogger;
24925
24929
  var enableDebugLogger = (namespace) => debug_1.debug.enable(namespace);
24926
24930
  exports2.enableDebugLogger = enableDebugLogger;
@@ -24934,7 +24938,7 @@ var require_utils2 = __commonJS({
24934
24938
  function getExtendedLogger(l) {
24935
24939
  return {
24936
24940
  ...l,
24937
- debug: exports2.newDebugLogger()
24941
+ debug: (0, exports2.newDebugLogger)()
24938
24942
  };
24939
24943
  }
24940
24944
  exports2.getExtendedLogger = getExtendedLogger;
@@ -25277,9 +25281,13 @@ var require_filesystem = __commonJS({
25277
25281
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
25278
25282
  if (k2 === void 0)
25279
25283
  k2 = k;
25280
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
25281
- return m[k];
25282
- } });
25284
+ var desc = Object.getOwnPropertyDescriptor(m, k);
25285
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
25286
+ desc = { enumerable: true, get: function() {
25287
+ return m[k];
25288
+ } };
25289
+ }
25290
+ Object.defineProperty(o, k2, desc);
25283
25291
  } : function(o, m, k, k2) {
25284
25292
  if (k2 === void 0)
25285
25293
  k2 = k;
@@ -25414,7 +25422,7 @@ var require_filesystem = __commonJS({
25414
25422
  var _a2, _b;
25415
25423
  let rawContents;
25416
25424
  try {
25417
- rawContents = (_a2 = fs_1.readFileSync(path_1.join(exports2.basedir(), `${entityName}.json`))) == null ? void 0 : _a2.toString().trim();
25425
+ rawContents = (_a2 = (0, fs_1.readFileSync)((0, path_1.join)((0, exports2.basedir)(), `${entityName}.json`))) == null ? void 0 : _a2.toString().trim();
25418
25426
  } catch (e) {
25419
25427
  this.logger.debug(e.message);
25420
25428
  return { error: e };
@@ -25431,16 +25439,16 @@ var require_filesystem = __commonJS({
25431
25439
  return { entities };
25432
25440
  }
25433
25441
  writeToFile(entityName, entities) {
25434
- const base = exports2.basedir();
25442
+ const base = (0, exports2.basedir)();
25435
25443
  const data2 = JSON.stringify({ [entityName]: entities }, null, 2);
25436
25444
  const filename = getEntityFileName(entityName);
25437
25445
  try {
25438
- fs_1.writeFileSync(path_1.default.join(base, filename), data2);
25446
+ (0, fs_1.writeFileSync)(path_1.default.join(base, filename), data2);
25439
25447
  } catch (e) {
25440
25448
  if (e.code === "ENOENT") {
25441
25449
  this.logger.debug(`Base directory [${base}] does not exist, trying to create it`);
25442
- fs_1.mkdirSync(base, { recursive: true });
25443
- fs_1.writeFileSync(path_1.default.join(base, filename), data2);
25450
+ (0, fs_1.mkdirSync)(base, { recursive: true });
25451
+ (0, fs_1.writeFileSync)(path_1.default.join(base, filename), data2);
25444
25452
  } else {
25445
25453
  throw e;
25446
25454
  }
@@ -25450,15 +25458,15 @@ var require_filesystem = __commonJS({
25450
25458
  exports2.FilesystemStore = FilesystemStore;
25451
25459
  function toPersistenceName(s) {
25452
25460
  const t = s == null ? void 0 : s.trim().toLowerCase();
25453
- return t && pluralize_1.plural(t);
25461
+ return t && (0, pluralize_1.plural)(t);
25454
25462
  }
25455
25463
  function getEntityFileName(entityName) {
25456
25464
  return toPersistenceName(entityName) + ".json";
25457
25465
  }
25458
25466
  function getFilesystemWatcherFor(entityName, callback) {
25459
- const watchPath = path_1.default.join(exports2.basedir(), getEntityFileName(entityName));
25460
- if (fs_1.existsSync(watchPath)) {
25461
- return fs_1.watch(watchPath, void 0, () => {
25467
+ const watchPath = path_1.default.join((0, exports2.basedir)(), getEntityFileName(entityName));
25468
+ if ((0, fs_1.existsSync)(watchPath)) {
25469
+ return (0, fs_1.watch)(watchPath, void 0, () => {
25462
25470
  callback(entityName);
25463
25471
  });
25464
25472
  } else {
@@ -25577,9 +25585,13 @@ var require_secure_store = __commonJS({
25577
25585
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
25578
25586
  if (k2 === void 0)
25579
25587
  k2 = k;
25580
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
25581
- return m[k];
25582
- } });
25588
+ var desc = Object.getOwnPropertyDescriptor(m, k);
25589
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
25590
+ desc = { enumerable: true, get: function() {
25591
+ return m[k];
25592
+ } };
25593
+ }
25594
+ Object.defineProperty(o, k2, desc);
25583
25595
  } : function(o, m, k, k2) {
25584
25596
  if (k2 === void 0)
25585
25597
  k2 = k;
@@ -25626,7 +25638,7 @@ var require_secure_store = __commonJS({
25626
25638
  }
25627
25639
  }
25628
25640
  var getSecureStore = (log3) => {
25629
- if (ux_common_utils_1.isAppStudio() || process.env.UX_TOOLS_DISABLE_KEYSTORE) {
25641
+ if ((0, ux_common_utils_1.isAppStudio)() || process.env.UX_TOOLS_DISABLE_KEYSTORE) {
25630
25642
  return new dummy_store_1.DummyStore(log3);
25631
25643
  } else {
25632
25644
  const keytar = getKeytar(log3);
@@ -26413,7 +26425,7 @@ var require_hybrid = __commonJS({
26413
26425
  constructor(logger) {
26414
26426
  this.logger = logger;
26415
26427
  this.filesystem = new filesystem_1.FilesystemStore(this.logger);
26416
- this.secureStore = secure_store_1.getSecureStore(this.logger);
26428
+ this.secureStore = (0, secure_store_1.getSecureStore)(this.logger);
26417
26429
  }
26418
26430
  async read({ entityName, id }) {
26419
26431
  const serialized = await this.filesystem.read({ entityName, id });
@@ -26448,8 +26460,8 @@ var require_hybrid = __commonJS({
26448
26460
  return result2;
26449
26461
  }
26450
26462
  async write({ entityName, id, entity }) {
26451
- const serializableProps = decorators_1.getSerializableProperties(entity);
26452
- const sensitiveProps = decorators_1.getSensitiveDataProperties(entity);
26463
+ const serializableProps = (0, decorators_1.getSerializableProperties)(entity);
26464
+ const sensitiveProps = (0, decorators_1.getSensitiveDataProperties)(entity);
26453
26465
  if (serializableProps.length > 0 && sensitiveProps.length > 0) {
26454
26466
  for (let i = 0; i < serializableProps.length; i = i + 1) {
26455
26467
  if (sensitiveProps.indexOf(serializableProps[i]) !== -1) {
@@ -26458,14 +26470,14 @@ var require_hybrid = __commonJS({
26458
26470
  }
26459
26471
  }
26460
26472
  }
26461
- const serializable = utils_1.pick(entity, ...serializableProps);
26473
+ const serializable = (0, utils_1.pick)(entity, ...serializableProps);
26462
26474
  if (serializable) {
26463
26475
  this.logger.debug("hybrid/write - writing serializable properties: %O", serializable);
26464
26476
  await this.filesystem.write({ entityName, id, entity: serializable });
26465
26477
  } else {
26466
26478
  this.logger.debug("hybrid/write - no serializable properties found in %O", serializable);
26467
26479
  }
26468
- const sensitiveData = utils_1.pick(entity, ...sensitiveProps);
26480
+ const sensitiveData = (0, utils_1.pick)(entity, ...sensitiveProps);
26469
26481
  if (sensitiveData) {
26470
26482
  this.logger.debug(`hybrid/write - writing sensitive properties to secure store. ID: [${id}]`);
26471
26483
  await this.secureStore.save(getFullyQualifiedServiceName(entityName), id, sensitiveData);
@@ -26511,13 +26523,13 @@ var require_backend_system = __commonJS({
26511
26523
  AuthenticationType2["OAuth2ClientCredential"] = "oauth2ClientCredential";
26512
26524
  })(AuthenticationType = exports2.AuthenticationType || (exports2.AuthenticationType = {}));
26513
26525
  var BackendSystemKey = class {
26526
+ static from(system) {
26527
+ return new BackendSystemKey({ url: system.url, client: system.client });
26528
+ }
26514
26529
  constructor({ url, client }) {
26515
26530
  this.url = url.trim().replace(/\/$/, "");
26516
26531
  this.client = client == null ? void 0 : client.trim();
26517
26532
  }
26518
- static from(system) {
26519
- return new BackendSystemKey({ url: system.url, client: system.client });
26520
- }
26521
26533
  getId() {
26522
26534
  return this.url + `${this.client ? "/" + this.client : ""}`;
26523
26535
  }
@@ -26774,16 +26786,16 @@ var require_system_migration2 = __commonJS({
26774
26786
  this.logger.debug(`Migrating sytem ID: [${systemId}]`);
26775
26787
  const refreshToken = await this.getRefreshTokenFromOldStore(oldSystem);
26776
26788
  if (refreshToken) {
26777
- this.logger.info(i18n_1.text("info.foundRefreshToken", { systemId }));
26789
+ this.logger.info((0, i18n_1.text)("info.foundRefreshToken", { systemId }));
26778
26790
  }
26779
26791
  await this.saveBackendSystem(new backend_system_1.BackendSystem({ ...oldSystem, refreshToken }));
26780
26792
  await this.secureStore.delete(contants_1.ServiceName.OldSystemService, systemId);
26781
26793
  if (refreshToken) {
26782
26794
  await this.deleteOldRefreshToken(oldSystem, systemId);
26783
- this.logger.info(i18n_1.text("info.deletingRefreshTokenFromOldStore", { systemId }));
26795
+ this.logger.info((0, i18n_1.text)("info.deletingRefreshTokenFromOldStore", { systemId }));
26784
26796
  }
26785
26797
  } else {
26786
- this.logger.info(i18n_1.text("error.systemAlreadyExistsInHybridStore", { systemId }));
26798
+ this.logger.info((0, i18n_1.text)("error.systemAlreadyExistsInHybridStore", { systemId }));
26787
26799
  }
26788
26800
  }
26789
26801
  }
@@ -26793,7 +26805,7 @@ var require_system_migration2 = __commonJS({
26793
26805
  const existingSystem = existingSystems[systemId];
26794
26806
  const refreshToken = await this.getRefreshTokenFromOldStore(existingSystem);
26795
26807
  if (refreshToken) {
26796
- this.logger.info(i18n_1.text("info.foundRefreshToken", { systemId }));
26808
+ this.logger.info((0, i18n_1.text)("info.foundRefreshToken", { systemId }));
26797
26809
  await this.updateRefreshTokenInStoredSystem(existingSystem, refreshToken, systemId);
26798
26810
  await this.deleteOldRefreshToken(existingSystem, systemId);
26799
26811
  }
@@ -26804,13 +26816,13 @@ var require_system_migration2 = __commonJS({
26804
26816
  for (const systemId of Object.keys(existingSystems)) {
26805
26817
  const existingSystem = existingSystems[systemId];
26806
26818
  if (!existingSystem.authenticationType) {
26807
- this.logger.info(i18n_1.text("info.tryingToUpdateAuthType", { systemId }));
26819
+ this.logger.info((0, i18n_1.text)("info.tryingToUpdateAuthType", { systemId }));
26808
26820
  const authenticationType = this.guessAuthType(existingSystem);
26809
26821
  if (authenticationType) {
26810
- this.logger.info(i18n_1.text("info.authTypeDetermined", { authenticationType, systemId }));
26822
+ this.logger.info((0, i18n_1.text)("info.authTypeDetermined", { authenticationType, systemId }));
26811
26823
  await this.saveBackendSystem(new backend_system_1.BackendSystem({ ...existingSystem, authenticationType }));
26812
26824
  } else {
26813
- this.logger.info(i18n_1.text("info.authTypeNotDetermined", { systemId }));
26825
+ this.logger.info((0, i18n_1.text)("info.authTypeNotDetermined", { systemId }));
26814
26826
  }
26815
26827
  }
26816
26828
  }
@@ -26835,18 +26847,18 @@ var require_system_migration2 = __commonJS({
26835
26847
  }
26836
26848
  async deleteOldRefreshToken(system, systemId) {
26837
26849
  var _a2;
26838
- this.logger.info(i18n_1.text("info.deletingRefreshTokenFromOldStore", { systemId }));
26850
+ this.logger.info((0, i18n_1.text)("info.deletingRefreshTokenFromOldStore", { systemId }));
26839
26851
  try {
26840
26852
  const host = (_a2 = new URL(system.url)) == null ? void 0 : _a2.host;
26841
26853
  await this.secureStore.delete(contants_1.ServiceName.OldRefreshTokenService, host);
26842
26854
  } catch (e) {
26843
- this.logger.info(i18n_1.text("error.couldNotDeleteRefreshToken", { url: system.url }));
26855
+ this.logger.info((0, i18n_1.text)("error.couldNotDeleteRefreshToken", { url: system.url }));
26844
26856
  this.logger.info(e.message);
26845
26857
  }
26846
26858
  }
26847
26859
  async updateRefreshTokenInStoredSystem(system, refreshToken, systemId) {
26848
26860
  if (system.refreshToken !== refreshToken) {
26849
- this.logger.info(i18n_1.text("info.updatingRefreshTokenInNewStore", { systemId }));
26861
+ this.logger.info((0, i18n_1.text)("info.updatingRefreshTokenInNewStore", { systemId }));
26850
26862
  await this.saveBackendSystem(new backend_system_1.BackendSystem({ ...system, refreshToken }));
26851
26863
  }
26852
26864
  }
@@ -26869,7 +26881,7 @@ var require_system_migration2 = __commonJS({
26869
26881
  const systemMigrationStatusDataProvider = new system_migration_1.SystemMigrationStatusDataProvider(logger);
26870
26882
  const systemMigrationStatus = await systemMigrationStatusDataProvider.read(new system_migration_status_1.SystemMigrationStatusKey()) || { migrationDone: false, authTypeMigrated: false, migrationLogs: [] };
26871
26883
  const migrationLogger = createLogInterceptor(logger, systemMigrationStatus.migrationLogs);
26872
- const secureStore = secure_store_1.getSecureStore(migrationLogger);
26884
+ const secureStore = (0, secure_store_1.getSecureStore)(migrationLogger);
26873
26885
  const migration = new Migration({
26874
26886
  logger: migrationLogger,
26875
26887
  systemMigrationStatus,
@@ -26884,7 +26896,7 @@ var require_system_migration2 = __commonJS({
26884
26896
  }));
26885
26897
  }
26886
26898
  } catch (e) {
26887
- logger.warn(i18n_1.text("error.systemMigrationFailed"));
26899
+ logger.warn((0, i18n_1.text)("error.systemMigrationFailed"));
26888
26900
  logger.debug(e.message);
26889
26901
  }
26890
26902
  }
@@ -26905,11 +26917,11 @@ var require_system_migration2 = __commonJS({
26905
26917
  };
26906
26918
  }
26907
26919
  function getMigrationLogger(migrationLogs) {
26908
- const migrationLogger = utils_1.newDebugLogger(utils_1.MIGRATION_NAMESPACE);
26920
+ const migrationLogger = (0, utils_1.newDebugLogger)(utils_1.MIGRATION_NAMESPACE);
26909
26921
  migrationLogger.log = (args) => {
26910
26922
  migrationLogs.push(args == null ? void 0 : args.toString());
26911
26923
  };
26912
- utils_1.enableDebugLogger(utils_1.MIGRATION_NAMESPACE);
26924
+ (0, utils_1.enableDebugLogger)(utils_1.MIGRATION_NAMESPACE);
26913
26925
  return migrationLogger;
26914
26926
  }
26915
26927
  }
@@ -26929,7 +26941,7 @@ var require_backend_system3 = __commonJS({
26929
26941
  var SystemService = class {
26930
26942
  constructor(logger) {
26931
26943
  this.migrationDone = false;
26932
- this.logger = utils_1.getExtendedLogger(logger);
26944
+ this.logger = (0, utils_1.getExtendedLogger)(logger);
26933
26945
  this.dataProvider = new backend_system_1.SystemDataProvider(this.logger);
26934
26946
  }
26935
26947
  async partialUpdate(key, entity) {
@@ -26948,18 +26960,18 @@ var require_backend_system3 = __commonJS({
26948
26960
  async readOrThrow(key) {
26949
26961
  const existingSystem = await this.read(key);
26950
26962
  if (!existingSystem) {
26951
- throw new Error(i18n_1.text("error.systemDoesNotExist", { system: key }));
26963
+ throw new Error((0, i18n_1.text)("error.systemDoesNotExist", { system: key }));
26952
26964
  }
26953
26965
  return existingSystem;
26954
26966
  }
26955
26967
  validatePartialUpdateInput(entity) {
26956
26968
  if (!entity || !Object.keys(entity).length) {
26957
- throw new Error(i18n_1.text("error.noPropertiesSpecified"));
26969
+ throw new Error((0, i18n_1.text)("error.noPropertiesSpecified"));
26958
26970
  }
26959
26971
  }
26960
26972
  async ensureMigrationDone() {
26961
26973
  if (!this.migrationDone) {
26962
- await system_migration_1.migrate(this.logger, this.dataProvider);
26974
+ await (0, system_migration_1.migrate)(this.logger, this.dataProvider);
26963
26975
  this.migrationDone = true;
26964
26976
  }
26965
26977
  }
@@ -27021,9 +27033,13 @@ var require_dist4 = __commonJS({
27021
27033
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
27022
27034
  if (k2 === void 0)
27023
27035
  k2 = k;
27024
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
27025
- return m[k];
27026
- } });
27036
+ var desc = Object.getOwnPropertyDescriptor(m, k);
27037
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
27038
+ desc = { enumerable: true, get: function() {
27039
+ return m[k];
27040
+ } };
27041
+ }
27042
+ Object.defineProperty(o, k2, desc);
27027
27043
  } : function(o, m, k, k2) {
27028
27044
  if (k2 === void 0)
27029
27045
  k2 = k;
@@ -27046,12 +27062,12 @@ var require_dist4 = __commonJS({
27046
27062
  system: backend_system_1.getInstance
27047
27063
  };
27048
27064
  async function getService({ logger = console, entityName }) {
27049
- await i18n_1.initI18n();
27065
+ await (0, i18n_1.initI18n)();
27050
27066
  const factory = services[entityName];
27051
27067
  if (factory) {
27052
27068
  return factory(logger);
27053
27069
  } else {
27054
- throw new Error(i18n_1.text("error.unsupportedEntity", { entityName }));
27070
+ throw new Error((0, i18n_1.text)("error.unsupportedEntity", { entityName }));
27055
27071
  }
27056
27072
  }
27057
27073
  exports2.getService = getService;
@@ -30722,17 +30738,17 @@ var require_uaaOauth = __commonJS({
30722
30738
  Redirect.path = "/oauth/client/redirect";
30723
30739
  function getAuthCode({ uaa, log: log3, timeout = utils_1.timeoutMs }) {
30724
30740
  return new Promise((resolve, reject) => {
30725
- const app = express_1.default();
30741
+ const app = (0, express_1.default)();
30726
30742
  const server = http_1.default.createServer(app);
30727
30743
  let redirect;
30728
30744
  const handleTimeout = () => {
30729
30745
  server.close();
30730
- reject(new error_1.UAATimeoutError(`Timeout. Did not get a response within ${utils_1.timeString(timeout)}`));
30746
+ reject(new error_1.UAATimeoutError(`Timeout. Did not get a response within ${(0, utils_1.timeString)(timeout)}`));
30731
30747
  };
30732
30748
  const timer = setTimeout(handleTimeout, timeout);
30733
30749
  app.get(Redirect.path, (req, res) => {
30734
30750
  res.set("Content-Type", "text/html");
30735
- res.send(Buffer.from(static_1.redirectSuccessHtml(uaa.logoutUrl, uaa.systemId)));
30751
+ res.send(Buffer.from((0, static_1.redirectSuccessHtml)(uaa.logoutUrl, uaa.systemId)));
30736
30752
  log3.info("Got authCode");
30737
30753
  resolve({ authCode: req.query.code + "", redirect });
30738
30754
  if (timer) {
@@ -30974,7 +30990,7 @@ var require_uaaOauth = __commonJS({
30974
30990
  if (credentials.serviceKeysContents) {
30975
30991
  return typeof credentials.serviceKeyContents === "string" ? JSON.parse(credentials.serviceKeysContents) : credentials.serviceKeysContents;
30976
30992
  }
30977
- return JSON.parse(fs_1.readFileSync(credentials.serviceKeys, "utf-8"));
30993
+ return JSON.parse((0, fs_1.readFileSync)(credentials.serviceKeys, "utf-8"));
30978
30994
  } catch (e) {
30979
30995
  throw new Error("Error parsing service keys");
30980
30996
  }
@@ -31087,11 +31103,11 @@ var require_connectWithReentranceTicket = __commonJS({
31087
31103
  var ADT_REENTRANCE_ENDPOINT = "/sap/bc/adt/core/http/reentranceticket";
31088
31104
  async function getReentranceTicket({ backendUrl, logger, timeout = utils_1.timeoutMs }) {
31089
31105
  return new Promise((resolve, reject) => {
31090
- const app = express_1.default();
31106
+ const app = (0, express_1.default)();
31091
31107
  const server = http_1.default.createServer(app);
31092
31108
  const handleTimeout = () => {
31093
31109
  server.close();
31094
- reject(new error_1.TimeoutError(`Timeout. Did not get a response within ${utils_1.timeString(timeout)}`));
31110
+ reject(new error_1.TimeoutError(`Timeout. Did not get a response within ${(0, utils_1.timeString)(timeout)}`));
31095
31111
  };
31096
31112
  class Redirect {
31097
31113
  static url(port) {
@@ -31105,7 +31121,7 @@ var require_connectWithReentranceTicket = __commonJS({
31105
31121
  const reentranceTicket = (_a2 = req.query["reentrance-ticket"]) == null ? void 0 : _a2.toString();
31106
31122
  logger.info("Got reentrance ticket: " + reentranceTicket);
31107
31123
  res.set("Content-Type", "text/html");
31108
- res.send(Buffer.from(static_1.redirectSuccessHtml(ABAPSystem.logoffUrl(backendUrl))));
31124
+ res.send(Buffer.from((0, static_1.redirectSuccessHtml)(ABAPSystem.logoffUrl(backendUrl))));
31109
31125
  if (timer) {
31110
31126
  clearTimeout(timer);
31111
31127
  }
@@ -45469,8 +45485,8 @@ var require_destination = __commonJS({
45469
45485
  async function fetchDestinations() {
45470
45486
  var _a2;
45471
45487
  const destinations = {};
45472
- await axios_1.default.get(ux_common_utils_1.getAppStudioProxyURL() + "/reload");
45473
- const response = await axios_1.default.get(ux_common_utils_1.getAppStudioBaseURL() + "/api/listDestinations");
45488
+ await axios_1.default.get((0, ux_common_utils_1.getAppStudioProxyURL)() + "/reload");
45489
+ const response = await axios_1.default.get((0, ux_common_utils_1.getAppStudioBaseURL)() + "/api/listDestinations");
45474
45490
  (_a2 = response == null ? void 0 : response.data) == null ? void 0 : _a2.forEach((destination) => {
45475
45491
  if (destination.WebIDEEnabled) {
45476
45492
  destinations[destination.Name] = destination;
@@ -45481,7 +45497,7 @@ var require_destination = __commonJS({
45481
45497
  async function getAuthHeaderForInstanceBasedDest(destinationInstance) {
45482
45498
  var _a2, _b;
45483
45499
  try {
45484
- const credentials = (await cf_tools_1.apiGetInstanceCredentials(destinationInstance)).credentials;
45500
+ const credentials = (await (0, cf_tools_1.apiGetInstanceCredentials)(destinationInstance)).credentials;
45485
45501
  const clientId = ((_a2 = credentials.uaa) == null ? void 0 : _a2.clientid) || credentials.clientid;
45486
45502
  const clientSecret = ((_b = credentials.uaa) == null ? void 0 : _b.clientsecret) || credentials.clientsecret;
45487
45503
  return Buffer.from(`${encodeURIComponent(clientId)}:${encodeURIComponent(clientSecret)}`).toString("base64");
@@ -45490,7 +45506,7 @@ var require_destination = __commonJS({
45490
45506
  }
45491
45507
  }
45492
45508
  async function listDestinations() {
45493
- if (ux_common_utils_1.isAppStudio()) {
45509
+ if ((0, ux_common_utils_1.isAppStudio)()) {
45494
45510
  return fetchDestinations();
45495
45511
  } else {
45496
45512
  return {};
@@ -45504,7 +45520,7 @@ var require_destination = __commonJS({
45504
45520
  systemConfig.url = `https://${destinationName}${DEST}`;
45505
45521
  systemConfig.basDestinationInstanceCred = await getAuthHeaderForInstanceBasedDest(destinationInstance);
45506
45522
  } else {
45507
- systemConfig.url = ux_common_utils_1.getAppStudioBaseURL();
45523
+ systemConfig.url = (0, ux_common_utils_1.getAppStudioBaseURL)();
45508
45524
  systemConfig.service = `/destinations/${destinationName != null ? destinationName : systemConfig.destination}${(_b = (_a2 = systemConfig.service) == null ? void 0 : _a2.replace(/^\/?/, "/")) != null ? _b : ""}`;
45509
45525
  }
45510
45526
  delete systemConfig.scp;
@@ -45512,7 +45528,7 @@ var require_destination = __commonJS({
45512
45528
  }
45513
45529
  exports2.replaceUrlForAppStudio = replaceUrlForAppStudio;
45514
45530
  async function updateSystemConfig(system) {
45515
- if (ux_common_utils_1.isAppStudio() && system.destination) {
45531
+ if ((0, ux_common_utils_1.isAppStudio)() && system.destination) {
45516
45532
  if (system.destinationInstance) {
45517
45533
  await replaceUrlForAppStudio(system, system.destination, system.destinationInstance);
45518
45534
  } else {
@@ -45520,7 +45536,7 @@ var require_destination = __commonJS({
45520
45536
  if (destinations[system.destination]) {
45521
45537
  const dest = destinations[system.destination];
45522
45538
  system.destinationAuthType = dest.Authentication;
45523
- if (config_1.hasFullUrlDestAttribute({
45539
+ if ((0, config_1.hasFullUrlDestAttribute)({
45524
45540
  ["WebIDEAdditionalData"]: dest["WebIDEAdditionalData"]
45525
45541
  })) {
45526
45542
  system.isDestinationFullUrl = true;
@@ -45545,9 +45561,13 @@ var require_connection = __commonJS({
45545
45561
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
45546
45562
  if (k2 === void 0)
45547
45563
  k2 = k;
45548
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
45549
- return m[k];
45550
- } });
45564
+ var desc = Object.getOwnPropertyDescriptor(m, k);
45565
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
45566
+ desc = { enumerable: true, get: function() {
45567
+ return m[k];
45568
+ } };
45569
+ }
45570
+ Object.defineProperty(o, k2, desc);
45551
45571
  } : function(o, m, k, k2) {
45552
45572
  if (k2 === void 0)
45553
45573
  k2 = k;
@@ -45608,7 +45628,7 @@ var require_connection = __commonJS({
45608
45628
  if (target.client) {
45609
45629
  config2.params[exports2.SAP_CLIENT] = target.client;
45610
45630
  }
45611
- const isTargetDestOnAppStudio = ux_common_utils_1.isAppStudio() && target.destination;
45631
+ const isTargetDestOnAppStudio = (0, ux_common_utils_1.isAppStudio)() && target.destination;
45612
45632
  if (isTargetDestOnAppStudio || disableSAML) {
45613
45633
  config2.params.saml2 = "disabled";
45614
45634
  }
@@ -45657,7 +45677,7 @@ var require_connection = __commonJS({
45657
45677
  if (contentTypeHeader) {
45658
45678
  return contentTypeHeader.toLowerCase();
45659
45679
  } else if (typeof responseData === "string") {
45660
- return (_b = (_a2 = detect_content_type_1.default(Buffer.from(responseData))) == null ? void 0 : _a2.toLowerCase()) != null ? _b : "";
45680
+ return (_b = (_a2 = (0, detect_content_type_1.default)(Buffer.from(responseData))) == null ? void 0 : _a2.toLowerCase()) != null ? _b : "";
45661
45681
  } else {
45662
45682
  return "";
45663
45683
  }
@@ -45668,11 +45688,11 @@ var require_connection = __commonJS({
45668
45688
  async function connect({ target, credentials, log: log3, autoAddTrailingSlash = true, timeout, ignoreCertError = false, postConnectionCallback, disableSAML = false }) {
45669
45689
  const targetAuthType = target.authenticationType;
45670
45690
  if (targetAuthType === config_1.AuthenticationType.OAuth2RefreshToken) {
45671
- return uaaOauth_1.connectUsingUaa({ target, credentials, log: log3, postConnectionCallback });
45691
+ return (0, uaaOauth_1.connectUsingUaa)({ target, credentials, log: log3, postConnectionCallback });
45672
45692
  } else if (targetAuthType === config_1.AuthenticationType.OAuth2ClientCredential) {
45673
- return uaaOauth_1.connectUsingUaaClientCredential({ target, credentials, log: log3 });
45693
+ return (0, uaaOauth_1.connectUsingUaaClientCredential)({ target, credentials, log: log3 });
45674
45694
  } else if (targetAuthType === config_1.AuthenticationType.ReentranceTicket) {
45675
- return connectWithReentranceTicket_1.connectWithReentranceTicket({ target, logger: log3, ignoreCertError });
45695
+ return (0, connectWithReentranceTicket_1.connectWithReentranceTicket)({ target, logger: log3, ignoreCertError });
45676
45696
  } else {
45677
45697
  return connectWithBasicAuth({
45678
45698
  target,
@@ -45705,7 +45725,7 @@ var require_httpClient = __commonJS({
45705
45725
  var https_1 = __importDefault(require("https"));
45706
45726
  var url_1 = require("url");
45707
45727
  async function newHttpClient({ system, credentials, log: log3, existingConnection, autoAddTrailingSlash = true, timeout, ignoreCertError, postConnectionCallback, disableSAML = false }) {
45708
- const connection = existingConnection || await connection_1.connect({
45728
+ const connection = existingConnection || await (0, connection_1.connect)({
45709
45729
  target: system,
45710
45730
  credentials,
45711
45731
  log: log3,
@@ -47685,7 +47705,7 @@ var require_message = __commonJS({
47685
47705
  exports2.printErrorDetails = exports2.prettyPrintError = exports2.prettyPrintMessage = void 0;
47686
47706
  var chalk_1 = __importDefault(require_source());
47687
47707
  var debug_1 = __importDefault(require_src7());
47688
- var odataClientDebug = debug_1.default("ux-odata-client");
47708
+ var odataClientDebug = (0, debug_1.default)("ux-odata-client");
47689
47709
  function prettyPrintMessage(msg, log3, logData) {
47690
47710
  logLevel(msg.severity, msg.message, log3);
47691
47711
  if (msg.longtextUrl && logData.frontendUrl) {
@@ -48797,7 +48817,7 @@ var require_utils7 = __commonJS({
48797
48817
  exports2.guessAuthType = guessAuthType;
48798
48818
  async function getOnPremSystem(system, isImportedSystem = false) {
48799
48819
  var _a2, _b;
48800
- let sapSystem = await __1.getSapSystem(system.url, system.client);
48820
+ let sapSystem = await (0, __1.getSapSystem)(system.url, system.client);
48801
48821
  let isNewSapSystem = false;
48802
48822
  const creds = {
48803
48823
  username: (_a2 = system.credentials) == null ? void 0 : _a2.systemUsername,
@@ -48810,7 +48830,7 @@ var require_utils7 = __commonJS({
48810
48830
  sapSystem.setUserDisplayName(creds.username);
48811
48831
  }
48812
48832
  } else {
48813
- sapSystem = __1.newSapSystem(system.name || "", system.url, system.client, creds, true);
48833
+ sapSystem = (0, __1.newSapSystem)(system.name || "", system.url, system.client, creds, true);
48814
48834
  isNewSapSystem = true;
48815
48835
  }
48816
48836
  return { sapSystem, isNewSapSystem };
@@ -48820,13 +48840,13 @@ var require_utils7 = __commonJS({
48820
48840
  let sapSystem;
48821
48841
  let isNewSapSystem = false;
48822
48842
  if (system.url && system.credentials === savedSapSystemServiceKey) {
48823
- sapSystem = await __1.getSapSystem(system.url, system.client);
48843
+ sapSystem = await (0, __1.getSapSystem)(system.url, system.client);
48824
48844
  }
48825
48845
  if (sapSystem) {
48826
48846
  sapSystem.name = system.name || "";
48827
48847
  } else {
48828
- const newBTPSapSystem = __1.newSapSystemForSteampunk(system.name || "", system.credentials, true);
48829
- sapSystem = await __1.getSapSystem(newBTPSapSystem.url, newBTPSapSystem.client);
48848
+ const newBTPSapSystem = (0, __1.newSapSystemForSteampunk)(system.name || "", system.credentials, true);
48849
+ sapSystem = await (0, __1.getSapSystem)(newBTPSapSystem.url, newBTPSapSystem.client);
48830
48850
  if (!sapSystem) {
48831
48851
  isNewSapSystem = true;
48832
48852
  sapSystem = newBTPSapSystem;
@@ -48840,7 +48860,7 @@ var require_utils7 = __commonJS({
48840
48860
  return false;
48841
48861
  }
48842
48862
  let isValid = true;
48843
- const isNameInUse = await __1.isSystemNameInUse(newName);
48863
+ const isNameInUse = await (0, __1.isSystemNameInUse)(newName);
48844
48864
  if (isNameInUse && newName !== savedSystemName) {
48845
48865
  isValid = false;
48846
48866
  }
@@ -48969,7 +48989,7 @@ var require_oDataClient = __commonJS({
48969
48989
  }
48970
48990
  initDebugLogger() {
48971
48991
  if (!ODataClient.hasAxiosDebugLoggerConfig) {
48972
- axios_debug_log_1.default({
48992
+ (0, axios_debug_log_1.default)({
48973
48993
  request: (debug2, req) => {
48974
48994
  var _a2;
48975
48995
  debug2(`${(_a2 = req.method) == null ? void 0 : _a2.toUpperCase()} ${this.buildFullUrl(req)}`);
@@ -48992,7 +49012,7 @@ var require_oDataClient = __commonJS({
48992
49012
  return reqConfig.baseURL ? `${reqConfig.baseURL}${reqConfig.url}` : `${reqConfig.url}`;
48993
49013
  }
48994
49014
  validateSysAuthType(system, credentials) {
48995
- system.authenticationType = system.authenticationType || utils_1.guessAuthType({ credentials, fallback: true });
49015
+ system.authenticationType = system.authenticationType || (0, utils_1.guessAuthType)({ credentials, fallback: true });
48996
49016
  if (!Object.values(config_1.AuthenticationType).includes(system.authenticationType)) {
48997
49017
  throw new error_1.UnknownSystemAuthenticationType(system.authenticationType);
48998
49018
  }
@@ -49000,15 +49020,15 @@ var require_oDataClient = __commonJS({
49000
49020
  logError(e, logData) {
49001
49021
  this.log.error(e.message);
49002
49022
  if (e.isAxiosError && e.response.data["error"]) {
49003
- message_1.prettyPrintError(e.response.data["error"], this.log, logData);
49023
+ (0, message_1.prettyPrintError)(e.response.data["error"], this.log, logData);
49004
49024
  }
49005
49025
  }
49006
49026
  async getClient() {
49007
49027
  if (!this.client) {
49008
- if (ux_common_utils_1.isAppStudio()) {
49009
- await destination_1.updateSystemConfig(this.system);
49028
+ if ((0, ux_common_utils_1.isAppStudio)()) {
49029
+ await (0, destination_1.updateSystemConfig)(this.system);
49010
49030
  }
49011
- const { connection, httpClient } = await httpClient_1.newHttpClient({
49031
+ const { connection, httpClient } = await (0, httpClient_1.newHttpClient)({
49012
49032
  system: this.system,
49013
49033
  credentials: this.credentials,
49014
49034
  log: this.log,
@@ -49036,7 +49056,7 @@ var require_oDataClient = __commonJS({
49036
49056
  const metadataPath = ((_a2 = this.system.service) == null ? void 0 : _a2.endsWith("/")) ? "$metadata" : "/$metadata";
49037
49057
  const edmx = await this.get(metadataPath, { Accept: "application/xml" });
49038
49058
  try {
49039
- return filterReferenceUriInEdmx ? ux_common_utils_1.filterReferenceUri(edmx) : edmx;
49059
+ return filterReferenceUriInEdmx ? (0, ux_common_utils_1.filterReferenceUri)(edmx) : edmx;
49040
49060
  } catch {
49041
49061
  return edmx;
49042
49062
  }
@@ -49132,12 +49152,12 @@ var require_ui5AbapRepository = __commonJS({
49132
49152
  if ((_a2 = response == null ? void 0 : response.headers) == null ? void 0 : _a2["sap-message"]) {
49133
49153
  const message = JSON.parse(response.headers["sap-message"]);
49134
49154
  message["longtextUrl"] = message["longtext_url"];
49135
- message_1.prettyPrintMessage(message, this.log, { frontendUrl });
49155
+ (0, message_1.prettyPrintMessage)(message, this.log, { frontendUrl });
49136
49156
  const path3 = "/sap/bc/ui5_ui5" + (!app.name.startsWith("/") ? "/sap/" : "") + app.name.toLowerCase();
49137
49157
  const query = this.system.client ? "?sap-client=" + this.system.client : "";
49138
49158
  this.log.info(`App available at ${frontendUrl}${path3}${query}`);
49139
49159
  } else if (testMode) {
49140
- message_1.printErrorDetails((_c = (_b = response == null ? void 0 : response.data.error) == null ? void 0 : _b.innererror) == null ? void 0 : _c.errordetails, this.log, {
49160
+ (0, message_1.printErrorDetails)((_c = (_b = response == null ? void 0 : response.data.error) == null ? void 0 : _b.innererror) == null ? void 0 : _c.errordetails, this.log, {
49141
49161
  frontendUrl
49142
49162
  });
49143
49163
  }
@@ -49155,7 +49175,7 @@ var require_ui5AbapRepository = __commonJS({
49155
49175
  const response = await this.deleteRepoRequest(app.name, httpClient, config2);
49156
49176
  if ((_a2 = response == null ? void 0 : response.headers) == null ? void 0 : _a2["sap-message"]) {
49157
49177
  const message = JSON.parse(response.headers["sap-message"]);
49158
- message_1.prettyPrintMessage(message, this.log);
49178
+ (0, message_1.prettyPrintMessage)(message, this.log);
49159
49179
  }
49160
49180
  return response;
49161
49181
  } catch (error3) {
@@ -49190,7 +49210,7 @@ var require_ui5AbapRepository = __commonJS({
49190
49210
  return { headers, params, maxBodyLength, maxContentLength };
49191
49211
  }
49192
49212
  createPayload(archive, name, description, abapPackage, httpClient) {
49193
- const base64Data = fs_1.readFileSync(archive, { encoding: "base64" });
49213
+ const base64Data = (0, fs_1.readFileSync)(archive, { encoding: "base64" });
49194
49214
  const time = new Date().toISOString();
49195
49215
  const escapedName = encodeXmlValue(name);
49196
49216
  return `<entry xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base="${httpClient.defaults.baseURL}"> <id>${httpClient.defaults.baseURL}/Repositories('${escapedName}')</id> <title type="text">Repositories('${escapedName}')</title> <updated>${time}</updated> <category term="/UI5/ABAP_REPOSITORY_SRV.Repository" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/> <link href="Repositories('${escapedName}')" rel="edit" title="Repository"/> <content type="application/xml"> <m:properties> <d:Name>${escapedName}</d:Name> <d:Package>${abapPackage == null ? void 0 : abapPackage.toUpperCase()}</d:Package> <d:Description>${encodeXmlValue(description)}</d:Description> <d:ZipArchive>${base64Data}</d:ZipArchive> <d:Info/> </m:properties> </content></entry>`;
@@ -49313,7 +49333,7 @@ var require_atoCatalog = __commonJS({
49313
49333
  return this.getAtoData(atoDataXml);
49314
49334
  }
49315
49335
  static getAtoData(atoDataXml) {
49316
- const atoData = utils_1.xmlToJson(atoDataXml);
49336
+ const atoData = (0, utils_1.xmlToJson)(atoDataXml);
49317
49337
  const settings = atoData == null ? void 0 : atoData["settings"];
49318
49338
  if (!settings) {
49319
49339
  throw new Error("ATO settings unavailable");
@@ -49360,7 +49380,7 @@ var require_v2Catalog = __commonJS({
49360
49380
  constructor({ system, credentials = void 0, log: log3 = console, connection = void 0, postConnectionCallback }) {
49361
49381
  var _a2, _b;
49362
49382
  if ((credentials == null ? void 0 : credentials.serviceKeys) || (credentials == null ? void 0 : credentials.serviceKeysContents)) {
49363
- const serviceInfo = uaaOauth_1.getServiceInfo(credentials);
49383
+ const serviceInfo = (0, uaaOauth_1.getServiceInfo)(credentials);
49364
49384
  credentials.serviceInfo = serviceInfo;
49365
49385
  system.url = serviceInfo.url;
49366
49386
  if ((_b = (_a2 = serviceInfo.catalogs) == null ? void 0 : _a2.abap) == null ? void 0 : _b.path) {
@@ -49372,13 +49392,14 @@ var require_v2Catalog = __commonJS({
49372
49392
  super({ system, credentials, log: log3, connection, postConnectionCallback });
49373
49393
  }
49374
49394
  async listServices(recommended = false) {
49395
+ let services;
49375
49396
  if (recommended) {
49376
- return this.get(common_1.V2_RECOMMENDED_SERVICES_PATH);
49397
+ services = await this.get(common_1.V2_RECOMMENDED_SERVICES_PATH);
49377
49398
  } else {
49378
49399
  let isS4C = false;
49379
49400
  try {
49380
49401
  await this.getConnection();
49381
- isS4C = utils_1.isS4HanaCloudSystem(await atoCatalog_1.AtoCatalog.getATOData({
49402
+ isS4C = (0, utils_1.isS4HanaCloudSystem)(await atoCatalog_1.AtoCatalog.getATOData({
49382
49403
  system: this.system,
49383
49404
  connection: this.connection,
49384
49405
  log: this.log,
@@ -49386,8 +49407,12 @@ var require_v2Catalog = __commonJS({
49386
49407
  }));
49387
49408
  } catch (error3) {
49388
49409
  }
49389
- return this.get(isS4C ? common_1.V2_SERVICES_PATH + common_1.V2_ODATA_CATALOG_FILTER_FOR_S4_HANA_SERVICES : common_1.V2_SERVICES_PATH);
49410
+ services = await this.get(isS4C ? common_1.V2_SERVICES_PATH + common_1.V2_ODATA_CATALOG_FILTER_FOR_S4_HANA_SERVICES : common_1.V2_SERVICES_PATH);
49390
49411
  }
49412
+ if (!Array.isArray(services)) {
49413
+ throw new Error("Error parsing service list");
49414
+ }
49415
+ return services;
49391
49416
  }
49392
49417
  async findService({ title, path: path3 }) {
49393
49418
  if (!title) {
@@ -49465,7 +49490,7 @@ var require_v4Catalog = __commonJS({
49465
49490
  var V4Catalog = class extends common_1.Catalog {
49466
49491
  constructor({ system, credentials = void 0, log: log3 = console, connection = void 0, postConnectionCallback }) {
49467
49492
  if ((credentials == null ? void 0 : credentials.serviceKeys) || (credentials == null ? void 0 : credentials.serviceKeysContents)) {
49468
- const serviceInfo = uaaOauth_1.getServiceInfo(credentials);
49493
+ const serviceInfo = (0, uaaOauth_1.getServiceInfo)(credentials);
49469
49494
  credentials.serviceInfo = serviceInfo;
49470
49495
  system.url = serviceInfo.url;
49471
49496
  }
@@ -49489,6 +49514,9 @@ var require_v4Catalog = __commonJS({
49489
49514
  const servicePath = recommended ? common_1.V4_RECOMMENDED_SERVICES_PATH_PROD : common_1.V4_SERVICES_PATH_PROD;
49490
49515
  this.services = [];
49491
49516
  const respValues = await this.get(`${servicePath}&${common_1.ODATA_COUNT_QUERY}`);
49517
+ if (!Array.isArray(respValues.value)) {
49518
+ throw new Error("Error parsing service list");
49519
+ }
49492
49520
  this.services = this.services.concat(this.parseServiceData(respValues.value, recommended));
49493
49521
  if (respValues["@odata.nextLink"]) {
49494
49522
  let skipval = parseInt((_a2 = respValues["@odata.nextLink"]) == null ? void 0 : _a2.split("skiptoken=")[1]);
@@ -49516,9 +49544,13 @@ var require_catalog = __commonJS({
49516
49544
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
49517
49545
  if (k2 === void 0)
49518
49546
  k2 = k;
49519
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
49520
- return m[k];
49521
- } });
49547
+ var desc = Object.getOwnPropertyDescriptor(m, k);
49548
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
49549
+ desc = { enumerable: true, get: function() {
49550
+ return m[k];
49551
+ } };
49552
+ }
49553
+ Object.defineProperty(o, k2, desc);
49522
49554
  } : function(o, m, k, k2) {
49523
49555
  if (k2 === void 0)
49524
49556
  k2 = k;
@@ -49551,9 +49583,13 @@ var require_client = __commonJS({
49551
49583
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
49552
49584
  if (k2 === void 0)
49553
49585
  k2 = k;
49554
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
49555
- return m[k];
49556
- } });
49586
+ var desc = Object.getOwnPropertyDescriptor(m, k);
49587
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
49588
+ desc = { enumerable: true, get: function() {
49589
+ return m[k];
49590
+ } };
49591
+ }
49592
+ Object.defineProperty(o, k2, desc);
49557
49593
  } : function(o, m, k, k2) {
49558
49594
  if (k2 === void 0)
49559
49595
  k2 = k;
@@ -49583,7 +49619,7 @@ var require_api_hub = __commonJS({
49583
49619
  var ux_store_1 = require_dist4();
49584
49620
  var constants_1 = require_constants2();
49585
49621
  async function getApiHubApiKey(log3 = console) {
49586
- const keyStore = ux_store_1.getSecureStore(log3);
49622
+ const keyStore = (0, ux_store_1.getSecureStore)(log3);
49587
49623
  const apiHubServiceName = config_1.ServiceName.ApiHub;
49588
49624
  const apiHubApiKey = await keyStore.retrieve(apiHubServiceName, constants_1.API_HUB_API_KEY);
49589
49625
  if (apiHubApiKey) {
@@ -49593,7 +49629,7 @@ var require_api_hub = __commonJS({
49593
49629
  }
49594
49630
  exports2.getApiHubApiKey = getApiHubApiKey;
49595
49631
  async function saveApiHubApiKey(val, log3 = console) {
49596
- const keyStore = ux_store_1.getSecureStore(log3);
49632
+ const keyStore = (0, ux_store_1.getSecureStore)(log3);
49597
49633
  const apiHubServiceName = config_1.ServiceName.ApiHub;
49598
49634
  const existingKey = await getApiHubApiKey(log3);
49599
49635
  if (existingKey !== void 0) {
@@ -49633,19 +49669,6 @@ var require_sapSystem = __commonJS({
49633
49669
  var types_1 = require_types3();
49634
49670
  var NEW_SCP_SUFFIX = " (BTP)";
49635
49671
  var SapSystem2 = class {
49636
- constructor(name, config2, credentials = {}, userDisplayName, unSaved = false, postConnectionCallbackCreator) {
49637
- this.config = config2;
49638
- this.credentials = credentials;
49639
- this._unSaved = false;
49640
- this.postConnectionCallbackInitialized = false;
49641
- this._name = name;
49642
- if (this.config.scp === void 0) {
49643
- this.config.scp = !!(credentials == null ? void 0 : credentials.serviceKeysContents) || !!(credentials == null ? void 0 : credentials.serviceKeys);
49644
- }
49645
- this._unSaved = unSaved;
49646
- this._userDisplayName = userDisplayName;
49647
- this._postConnectionCallbackCreator = postConnectionCallbackCreator;
49648
- }
49649
49672
  postConnectionCallback() {
49650
49673
  var _a2;
49651
49674
  if (!this.postConnectionCallbackInitialized) {
@@ -49661,9 +49684,22 @@ var require_sapSystem = __commonJS({
49661
49684
  password: s.password,
49662
49685
  refreshToken: s.refreshToken
49663
49686
  } : void 0;
49664
- const authenticationType = Object.values(ux_store_1.AuthenticationType).find((v) => v === s.authenticationType) || __1.guessAuthType({ credentials, fallback: false });
49687
+ const authenticationType = Object.values(ux_store_1.AuthenticationType).find((v) => v === s.authenticationType) || (0, __1.guessAuthType)({ credentials, fallback: false });
49665
49688
  return new SapSystem2(s.name, { url: s.url, client: s.client, authenticationType }, credentials, s.userDisplayName, void 0, void 0);
49666
49689
  }
49690
+ constructor(name, config2, credentials = {}, userDisplayName, unSaved = false, postConnectionCallbackCreator) {
49691
+ this.config = config2;
49692
+ this.credentials = credentials;
49693
+ this._unSaved = false;
49694
+ this.postConnectionCallbackInitialized = false;
49695
+ this._name = name;
49696
+ if (this.config.scp === void 0) {
49697
+ this.config.scp = !!(credentials == null ? void 0 : credentials.serviceKeysContents) || !!(credentials == null ? void 0 : credentials.serviceKeys);
49698
+ }
49699
+ this._unSaved = unSaved;
49700
+ this._userDisplayName = userDisplayName;
49701
+ this._postConnectionCallbackCreator = postConnectionCallbackCreator;
49702
+ }
49667
49703
  getConnection() {
49668
49704
  return this.connection;
49669
49705
  }
@@ -49752,7 +49788,7 @@ var require_sapSystem = __commonJS({
49752
49788
  }
49753
49789
  addS4HCSuffix(name) {
49754
49790
  const S4HC_SUFFIX = " (S4HC)";
49755
- return (name == null ? void 0 : name.trim().match(`${ux_common_utils_1.escapeRegExp(S4HC_SUFFIX)}$`)) ? name : name + S4HC_SUFFIX;
49791
+ return (name == null ? void 0 : name.trim().match(`${(0, ux_common_utils_1.escapeRegExp)(S4HC_SUFFIX)}$`)) ? name : name + S4HC_SUFFIX;
49756
49792
  }
49757
49793
  get bareName() {
49758
49794
  return stripOldSCPSuffix(this.name);
@@ -49761,19 +49797,19 @@ var require_sapSystem = __commonJS({
49761
49797
  return this.config.scp;
49762
49798
  }
49763
49799
  isPartialUrlDest() {
49764
- return !config_1.hasDestinationAttrib("WebIDEAdditionalData", config_1.DestinationAttributeProperty.FULL_URL, this.config.destinationAttributes) && this.isGenericODataDest();
49800
+ return !(0, config_1.hasDestinationAttrib)("WebIDEAdditionalData", config_1.DestinationAttributeProperty.FULL_URL, this.config.destinationAttributes) && this.isGenericODataDest();
49765
49801
  }
49766
49802
  isGenericODataDest() {
49767
- return this.config.destination ? config_1.hasDestinationAttrib("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_GENERIC, this.config.destinationAttributes) && !config_1.hasDestinationAttrib("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) : false;
49803
+ return this.config.destination ? (0, config_1.hasDestinationAttrib)("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_GENERIC, this.config.destinationAttributes) && !(0, config_1.hasDestinationAttrib)("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) : false;
49768
49804
  }
49769
49805
  isFullUrlDest() {
49770
- return this.config.destination ? config_1.hasDestinationAttrib("WebIDEAdditionalData", config_1.DestinationAttributeProperty.FULL_URL, this.config.destinationAttributes) && this.isGenericODataDest() : false;
49806
+ return this.config.destination ? (0, config_1.hasDestinationAttrib)("WebIDEAdditionalData", config_1.DestinationAttributeProperty.FULL_URL, this.config.destinationAttributes) && this.isGenericODataDest() : false;
49771
49807
  }
49772
49808
  isAbapCatalogDest() {
49773
- return this.config.destination ? config_1.hasDestinationAttrib("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) && !this.isFullUrlDest() : false;
49809
+ return this.config.destination ? (0, config_1.hasDestinationAttrib)("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) && !this.isFullUrlDest() : false;
49774
49810
  }
49775
49811
  isHTML5DynamicDestination() {
49776
- return this.config.destination ? config_1.hasHTML5DynamicDestinationAttrib(this.config.destinationAttributes) : false;
49812
+ return this.config.destination ? (0, config_1.hasHTML5DynamicDestinationAttrib)(this.config.destinationAttributes) : false;
49777
49813
  }
49778
49814
  toString() {
49779
49815
  var _a2;
@@ -49831,14 +49867,14 @@ var require_sapSystem = __commonJS({
49831
49867
  async getCatalog(odataVersion) {
49832
49868
  const system = deepClone(this.config);
49833
49869
  if (this.connection) {
49834
- return client_1.getCatalog({
49870
+ return (0, client_1.getCatalog)({
49835
49871
  system,
49836
49872
  connection: this.connection,
49837
49873
  odataVersion,
49838
49874
  postConnectionCallback: this.postConnectionCallback()
49839
49875
  });
49840
49876
  } else {
49841
- const catalog = client_1.getCatalog({
49877
+ const catalog = (0, client_1.getCatalog)({
49842
49878
  system,
49843
49879
  credentials: this.credentials,
49844
49880
  odataVersion,
@@ -49889,7 +49925,7 @@ var require_sapSystem = __commonJS({
49889
49925
  exports2.SapSystem = SapSystem2;
49890
49926
  function toSCPSystemName(systemName) {
49891
49927
  const s = systemName.trim();
49892
- return s.match(`${ux_common_utils_1.escapeRegExp(NEW_SCP_SUFFIX)}$`) ? s : s + NEW_SCP_SUFFIX;
49928
+ return s.match(`${(0, ux_common_utils_1.escapeRegExp)(NEW_SCP_SUFFIX)}$`) ? s : s + NEW_SCP_SUFFIX;
49893
49929
  }
49894
49930
  function stripOldSCPSuffix(name) {
49895
49931
  return name.trim().replace(/ \(SCP\)$/, "");
@@ -49915,7 +49951,7 @@ var require_systemStore = __commonJS({
49915
49951
  this.storeService = storeService;
49916
49952
  }
49917
49953
  static async createInstance(logger) {
49918
- const storeService = await ux_store_1.getService({ logger, entityName: "system" });
49954
+ const storeService = await (0, ux_store_1.getService)({ logger, entityName: "system" });
49919
49955
  return new DefaultImplementation(storeService, logger);
49920
49956
  }
49921
49957
  async getAll() {
@@ -49977,9 +50013,9 @@ var require_system = __commonJS({
49977
50013
  var url_1 = require("url");
49978
50014
  var __1 = require_dist5();
49979
50015
  async function listSAPSystems() {
49980
- if (ux_common_utils_1.isAppStudio()) {
50016
+ if ((0, ux_common_utils_1.isAppStudio)()) {
49981
50017
  const systems = {};
49982
- const destinations = await connection_1.listDestinations();
50018
+ const destinations = await (0, connection_1.listDestinations)();
49983
50019
  Object.values(destinations).sort((a, b) => a.Name.localeCompare(b.Name, void 0, { numeric: true, caseFirst: "lower" })).forEach((destination) => {
49984
50020
  var _a2, _b;
49985
50021
  systems[destination.Name] = new sapSystem_1.SapSystem(destination.Name, {
@@ -49993,7 +50029,7 @@ var require_system = __commonJS({
49993
50029
  });
49994
50030
  return systems;
49995
50031
  } else {
49996
- const store = await systemStore_1.getSystemStore();
50032
+ const store = await (0, systemStore_1.getSystemStore)();
49997
50033
  return postGetAll({ systems: await store.getAll(), store });
49998
50034
  }
49999
50035
  }
@@ -50025,7 +50061,7 @@ var require_system = __commonJS({
50025
50061
  update: { userDisplayName: sys.userDisplayName }
50026
50062
  }));
50027
50063
  }
50028
- await ux_common_utils_1.allSettled(updates);
50064
+ await (0, ux_common_utils_1.allSettled)(updates);
50029
50065
  resolve();
50030
50066
  }, 0));
50031
50067
  }
@@ -50052,7 +50088,7 @@ var require_system = __commonJS({
50052
50088
  const update = {};
50053
50089
  !!user && (update.userDisplayName = user);
50054
50090
  !!refreshToken && (update.refreshToken = refreshToken);
50055
- return (await systemStore_1.getSystemStore()).partialUpdate({
50091
+ return (await (0, systemStore_1.getSystemStore)()).partialUpdate({
50056
50092
  url: system.url,
50057
50093
  client: system.client,
50058
50094
  update
@@ -50064,16 +50100,16 @@ var require_system = __commonJS({
50064
50100
  return cb;
50065
50101
  }
50066
50102
  async function isSystemNameInUse(name) {
50067
- const systems = await (await systemStore_1.getSystemStore()).getAll();
50103
+ const systems = await (await (0, systemStore_1.getSystemStore)()).getAll();
50068
50104
  const sys = name.trim();
50069
- return Object.values(systems).findIndex((system) => system.name === sys || system.bareName === sapSystem_1.stripOldSCPSuffix(sys)) !== -1;
50105
+ return Object.values(systems).findIndex((system) => system.name === sys || system.bareName === (0, sapSystem_1.stripOldSCPSuffix)(sys)) !== -1;
50070
50106
  }
50071
50107
  exports2.isSystemNameInUse = isSystemNameInUse;
50072
50108
  async function getSapSystem2(url, client) {
50073
- if (ux_common_utils_1.isAppStudio()) {
50109
+ if ((0, ux_common_utils_1.isAppStudio)()) {
50074
50110
  throw Error("Not supported in AppStudio.");
50075
50111
  } else {
50076
- return (await systemStore_1.getSystemStore()).get(url, client);
50112
+ return (await (0, systemStore_1.getSystemStore)()).get(url, client);
50077
50113
  }
50078
50114
  }
50079
50115
  exports2.getSapSystem = getSapSystem2;
@@ -50109,12 +50145,12 @@ var require_system = __commonJS({
50109
50145
  }
50110
50146
  exports2.newSapSystemForDestinaton = newSapSystemForDestinaton;
50111
50147
  async function saveSapSystem(system) {
50112
- const store = await systemStore_1.getSystemStore();
50148
+ const store = await (0, systemStore_1.getSystemStore)();
50113
50149
  await store.save(system);
50114
50150
  }
50115
50151
  exports2.saveSapSystem = saveSapSystem;
50116
50152
  async function deleteSapSystem(system) {
50117
- const store = await systemStore_1.getSystemStore();
50153
+ const store = await (0, systemStore_1.getSystemStore)();
50118
50154
  return store.delete(system);
50119
50155
  }
50120
50156
  exports2.deleteSapSystem = deleteSapSystem;
@@ -50128,9 +50164,13 @@ var require_dist5 = __commonJS({
50128
50164
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
50129
50165
  if (k2 === void 0)
50130
50166
  k2 = k;
50131
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
50132
- return m[k];
50133
- } });
50167
+ var desc = Object.getOwnPropertyDescriptor(m, k);
50168
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
50169
+ desc = { enumerable: true, get: function() {
50170
+ return m[k];
50171
+ } };
50172
+ }
50173
+ Object.defineProperty(o, k2, desc);
50134
50174
  } : function(o, m, k, k2) {
50135
50175
  if (k2 === void 0)
50136
50176
  k2 = k;
@@ -50581,9 +50621,13 @@ var require_controls = __commonJS({
50581
50621
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
50582
50622
  if (k2 === void 0)
50583
50623
  k2 = k;
50584
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
50585
- return m[k];
50586
- } });
50624
+ var desc = Object.getOwnPropertyDescriptor(m, k);
50625
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
50626
+ desc = { enumerable: true, get: function() {
50627
+ return m[k];
50628
+ } };
50629
+ }
50630
+ Object.defineProperty(o, k2, desc);
50587
50631
  } : function(o, m, k, k2) {
50588
50632
  if (k2 === void 0)
50589
50633
  k2 = k;
@@ -50981,9 +51025,13 @@ var require_pages = __commonJS({
50981
51025
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
50982
51026
  if (k2 === void 0)
50983
51027
  k2 = k;
50984
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
50985
- return m[k];
50986
- } });
51028
+ var desc = Object.getOwnPropertyDescriptor(m, k);
51029
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
51030
+ desc = { enumerable: true, get: function() {
51031
+ return m[k];
51032
+ } };
51033
+ }
51034
+ Object.defineProperty(o, k2, desc);
50987
51035
  } : function(o, m, k, k2) {
50988
51036
  if (k2 === void 0)
50989
51037
  k2 = k;
@@ -51075,9 +51123,13 @@ var require_manifest = __commonJS({
51075
51123
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
51076
51124
  if (k2 === void 0)
51077
51125
  k2 = k;
51078
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
51079
- return m[k];
51080
- } });
51126
+ var desc = Object.getOwnPropertyDescriptor(m, k);
51127
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
51128
+ desc = { enumerable: true, get: function() {
51129
+ return m[k];
51130
+ } };
51131
+ }
51132
+ Object.defineProperty(o, k2, desc);
51081
51133
  } : function(o, m, k, k2) {
51082
51134
  if (k2 === void 0)
51083
51135
  k2 = k;
@@ -51116,9 +51168,13 @@ var require_webapp = __commonJS({
51116
51168
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
51117
51169
  if (k2 === void 0)
51118
51170
  k2 = k;
51119
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
51120
- return m[k];
51121
- } });
51171
+ var desc = Object.getOwnPropertyDescriptor(m, k);
51172
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
51173
+ desc = { enumerable: true, get: function() {
51174
+ return m[k];
51175
+ } };
51176
+ }
51177
+ Object.defineProperty(o, k2, desc);
51122
51178
  } : function(o, m, k, k2) {
51123
51179
  if (k2 === void 0)
51124
51180
  k2 = k;
@@ -51192,7 +51248,7 @@ var require_constants3 = __commonJS({
51192
51248
  FioriToolsSettings2["migrationSettingsFile"] = "migrationSettings.json";
51193
51249
  })(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
51194
51250
  var getFioriToolsDirectory = () => {
51195
- return path_1.join(os_1.homedir(), FioriToolsSettings.dir);
51251
+ return (0, path_1.join)((0, os_1.homedir)(), FioriToolsSettings.dir);
51196
51252
  };
51197
51253
  exports2.getFioriToolsDirectory = getFioriToolsDirectory;
51198
51254
  var SchemeName;
@@ -51243,9 +51299,13 @@ var require_dist7 = __commonJS({
51243
51299
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
51244
51300
  if (k2 === void 0)
51245
51301
  k2 = k;
51246
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
51247
- return m[k];
51248
- } });
51302
+ var desc = Object.getOwnPropertyDescriptor(m, k);
51303
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
51304
+ desc = { enumerable: true, get: function() {
51305
+ return m[k];
51306
+ } };
51307
+ }
51308
+ Object.defineProperty(o, k2, desc);
51249
51309
  } : function(o, m, k, k2) {
51250
51310
  if (k2 === void 0)
51251
51311
  k2 = k;
@@ -51330,6 +51390,7 @@ var require_EventName = __commonJS({
51330
51390
  EventName3["GD_SIDE_BY_SIDE"] = "GD_SIDE_BY_SIDE";
51331
51391
  EventName3["GD_WIZARD"] = "GD_WIZARD";
51332
51392
  EventName3["GD_DESCMODE"] = "GD_DESCMODE";
51393
+ EventName3["GD_PROJECTVIEW"] = "GD_PROJECTVIEW";
51333
51394
  EventName3["PAGEMAP"] = "PAGEMAP";
51334
51395
  EventName3["APP_ACTIONS"] = "ACTIONS";
51335
51396
  EventName3["PAGE_EDITOR"] = "PAGE_EDITOR";
@@ -63012,7 +63073,7 @@ var require_package5 = __commonJS({
63012
63073
  "../lib/telemetry/dist/package.json"(exports2, module2) {
63013
63074
  module2.exports = {
63014
63075
  name: "@sap/ux-telemetry",
63015
- version: "1.9.0",
63076
+ version: "1.9.1",
63016
63077
  description: "SAP Fiori tools telemetry library",
63017
63078
  main: "dist/src/index.js",
63018
63079
  author: "SAP SE",
@@ -63037,20 +63098,20 @@ var require_package5 = __commonJS({
63037
63098
  },
63038
63099
  dependencies: {
63039
63100
  "@sap-ux/store": "0.3.8",
63040
- "@sap/ux-cds": "1.9.0",
63041
- "@sap/ux-common-utils": "1.9.0",
63042
- "@sap/ux-feature-toggle": "1.9.0",
63043
- "@sap/ux-project-access": "1.9.0",
63101
+ "@sap/ux-cds": "1.9.1",
63102
+ "@sap/ux-common-utils": "1.9.1",
63103
+ "@sap/ux-feature-toggle": "1.9.1",
63104
+ "@sap/ux-project-access": "1.9.1",
63044
63105
  applicationinsights: "1.4.1",
63045
63106
  axios: "0.26.0",
63046
63107
  "performance-now": "2.1.0",
63047
63108
  yaml: "2.0.0-10"
63048
63109
  },
63049
63110
  devDependencies: {
63050
- memfs: "3.4.7",
63111
+ memfs: "3.4.13",
63051
63112
  "ts-jest": "28.0.8",
63052
63113
  "ts-node": "8.5.2",
63053
- typescript: "4.3.5",
63114
+ typescript: "4.9.4",
63054
63115
  unionfs: "4.4.0"
63055
63116
  },
63056
63117
  files: [
@@ -63109,9 +63170,13 @@ var require_reporting = __commonJS({
63109
63170
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
63110
63171
  if (k2 === void 0)
63111
63172
  k2 = k;
63112
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
63113
- return m[k];
63114
- } });
63173
+ var desc = Object.getOwnPropertyDescriptor(m, k);
63174
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
63175
+ desc = { enumerable: true, get: function() {
63176
+ return m[k];
63177
+ } };
63178
+ }
63179
+ Object.defineProperty(o, k2, desc);
63115
63180
  } : function(o, m, k, k2) {
63116
63181
  if (k2 === void 0)
63117
63182
  k2 = k;
@@ -63178,7 +63243,7 @@ var require_reporting = __commonJS({
63178
63243
  var _a2;
63179
63244
  if (((_a2 = process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY) == null ? void 0 : _a2.trim()) !== "true") {
63180
63245
  reportingTelemetryClient = new appInsights.TelemetryClient(telemetryPackageJSON.azureInstrumentationKey);
63181
- telemetryClientConfig_1.configAzureTelemetryClient(reportingTelemetryClient);
63246
+ (0, telemetryClientConfig_1.configAzureTelemetryClient)(reportingTelemetryClient);
63182
63247
  }
63183
63248
  var reportRuntimeError = (error3) => {
63184
63249
  const properties = { message: error3.message };
@@ -63231,16 +63296,16 @@ var require_system3 = __commonJS({
63231
63296
  var reporting_1 = require_reporting();
63232
63297
  var TelemetrySystem = class {
63233
63298
  static init() {
63234
- cloudDebugger_1.debug(`start System.init`);
63235
- TelemetrySystem.modules = system_1.processMatchingPaths(TelemetrySystem.modules);
63299
+ (0, cloudDebugger_1.debug)(`start System.init`);
63300
+ TelemetrySystem.modules = (0, system_1.processMatchingPaths)(TelemetrySystem.modules);
63236
63301
  let pathBase = TelemetrySystem.getMatchingModulePath(module2);
63237
- cloudDebugger_1.debug(`base path: ${pathBase}`);
63302
+ (0, cloudDebugger_1.debug)(`base path: ${pathBase}`);
63238
63303
  if (!pathBase) {
63239
- TelemetrySystem.fallbackModules = system_1.processMatchingPaths(TelemetrySystem.fallbackModules);
63304
+ TelemetrySystem.fallbackModules = (0, system_1.processMatchingPaths)(TelemetrySystem.fallbackModules);
63240
63305
  pathBase = TelemetrySystem.getMatchingModulePath(module2, true);
63241
63306
  }
63242
63307
  const manifestPath = TelemetrySystem.getManifestPath(pathBase);
63243
- cloudDebugger_1.debug(`package.json path: ${manifestPath}`);
63308
+ (0, cloudDebugger_1.debug)(`package.json path: ${manifestPath}`);
63244
63309
  TelemetrySystem.manifest = TelemetrySystem.getManifestJSON(manifestPath);
63245
63310
  }
63246
63311
  static getManifestJSON(path3) {
@@ -63253,7 +63318,7 @@ var require_system3 = __commonJS({
63253
63318
  }
63254
63319
  static getManifestPath(pathBase) {
63255
63320
  let manifestPath = pathBase;
63256
- if (ux_common_utils_1.isAppStudio() && manifestPath && manifestPath.indexOf("generators") < 0 && manifestPath.indexOf("deployment-generator") < 0 && manifestPath.indexOf("/ux-ui5-tooling") < 0) {
63321
+ if ((0, ux_common_utils_1.isAppStudio)() && manifestPath && manifestPath.indexOf("generators") < 0 && manifestPath.indexOf("deployment-generator") < 0 && manifestPath.indexOf("/ux-ui5-tooling") < 0) {
63257
63322
  manifestPath = manifestPath.concat("/extension");
63258
63323
  }
63259
63324
  if (manifestPath && manifestPath.indexOf("language-server") > -1) {
@@ -63329,7 +63394,7 @@ var require_system3 = __commonJS({
63329
63394
  TelemetrySystem.init();
63330
63395
  }
63331
63396
  } catch (err) {
63332
- reporting_1.reportRuntimeError(err);
63397
+ (0, reporting_1.reportRuntimeError)(err);
63333
63398
  }
63334
63399
  }
63335
63400
  });
@@ -63407,9 +63472,13 @@ var require_appInsightClient = __commonJS({
63407
63472
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
63408
63473
  if (k2 === void 0)
63409
63474
  k2 = k;
63410
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
63411
- return m[k];
63412
- } });
63475
+ var desc = Object.getOwnPropertyDescriptor(m, k);
63476
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
63477
+ desc = { enumerable: true, get: function() {
63478
+ return m[k];
63479
+ } };
63480
+ }
63481
+ Object.defineProperty(o, k2, desc);
63413
63482
  } : function(o, m, k, k2) {
63414
63483
  if (k2 === void 0)
63415
63484
  k2 = k;
@@ -63492,7 +63561,7 @@ var require_appInsightClient = __commonJS({
63492
63561
  }
63493
63562
  const client = new appInsights.TelemetryClient(this.applicationKey);
63494
63563
  client.config.samplingPercentage = sampleRateNumer;
63495
- telemetryClientConfig_1.configAzureTelemetryClient(client);
63564
+ (0, telemetryClientConfig_1.configAzureTelemetryClient)(client);
63496
63565
  return client;
63497
63566
  }
63498
63567
  };
@@ -63528,10 +63597,10 @@ var require_toolsSuiteTelemetryClient = __commonJS({
63528
63597
  super(applicationKey, extensionName, extensionVersion);
63529
63598
  }
63530
63599
  async report(eventName, properties, measurements, sampleRate, telemetryHelperProperties, ignoreSettings) {
63531
- const fioriProjectCommonProperties = await toolsSuiteTelemetry_1.processToolsSuiteTelemetry(telemetryHelperProperties);
63600
+ const fioriProjectCommonProperties = await (0, toolsSuiteTelemetry_1.processToolsSuiteTelemetry)(telemetryHelperProperties);
63532
63601
  const commonProperties = {
63533
63602
  v: this.extensionVersion,
63534
- datetime: date_1.localDatetimeToUTC()
63603
+ datetime: (0, date_1.localDatetimeToUTC)()
63535
63604
  };
63536
63605
  const finalProperties = {
63537
63606
  ...properties,
@@ -63541,10 +63610,10 @@ var require_toolsSuiteTelemetryClient = __commonJS({
63541
63610
  await super.report(eventName, finalProperties, measurements, sampleRate, telemetryHelperProperties, ignoreSettings);
63542
63611
  }
63543
63612
  async reportEvent(event, sampleRate, telemetryHelperProperties, ignoreSettings) {
63544
- const fioriProjectCommonProperties = await toolsSuiteTelemetry_1.processToolsSuiteTelemetry(telemetryHelperProperties);
63613
+ const fioriProjectCommonProperties = await (0, toolsSuiteTelemetry_1.processToolsSuiteTelemetry)(telemetryHelperProperties);
63545
63614
  const telemetryEventCommonProperties = {
63546
63615
  v: this.extensionVersion,
63547
- datetime: date_1.localDatetimeToUTC()
63616
+ datetime: (0, date_1.localDatetimeToUTC)()
63548
63617
  };
63549
63618
  const finalProperties = {
63550
63619
  ...event.properties,
@@ -64410,9 +64479,13 @@ var require_file2 = __commonJS({
64410
64479
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
64411
64480
  if (k2 === void 0)
64412
64481
  k2 = k;
64413
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
64414
- return m[k];
64415
- } });
64482
+ var desc = Object.getOwnPropertyDescriptor(m, k);
64483
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
64484
+ desc = { enumerable: true, get: function() {
64485
+ return m[k];
64486
+ } };
64487
+ }
64488
+ Object.defineProperty(o, k2, desc);
64416
64489
  } : function(o, m, k, k2) {
64417
64490
  if (k2 === void 0)
64418
64491
  k2 = k;
@@ -64537,7 +64610,7 @@ var require_file2 = __commonJS({
64537
64610
  if (await fileExists2(path3)) {
64538
64611
  const files = await readDirectory(path3);
64539
64612
  for (const name of files) {
64540
- const fullPath = path_1.join(path3, name);
64613
+ const fullPath = (0, path_1.join)(path3, name);
64541
64614
  if (await isDirectory(fullPath)) {
64542
64615
  await deleteDirectory(fullPath);
64543
64616
  } else {
@@ -66438,10 +66511,10 @@ var require_capProject = __commonJS({
66438
66511
  var packageJsonFileName = "package.json";
66439
66512
  async function parsePackageJson(projectRoot) {
66440
66513
  let packageJson;
66441
- const packageJsonPath = path_1.join(projectRoot, packageJsonFileName);
66442
- if (await file_1.fileExists(packageJsonPath)) {
66514
+ const packageJsonPath = (0, path_1.join)(projectRoot, packageJsonFileName);
66515
+ if (await (0, file_1.fileExists)(packageJsonPath)) {
66443
66516
  try {
66444
- packageJson = JSON.parse(await file_1.readFile(packageJsonPath));
66517
+ packageJson = JSON.parse(await (0, file_1.readFile)(packageJsonPath));
66445
66518
  } catch (error3) {
66446
66519
  }
66447
66520
  }
@@ -66460,10 +66533,10 @@ var require_capProject = __commonJS({
66460
66533
  }
66461
66534
  exports2.isCapNodeJsProject = isCapNodeJsProject;
66462
66535
  async function isCapJavaProject(projectRoot) {
66463
- return file_1.fileExists(path_1.join(projectRoot, exports2.CAP_SERVICES_FOLDER, "src", "main", "resources", "application.yaml"));
66536
+ return (0, file_1.fileExists)((0, path_1.join)(projectRoot, exports2.CAP_SERVICES_FOLDER, "src", "main", "resources", "application.yaml"));
66464
66537
  }
66465
66538
  exports2.isCapJavaProject = isCapJavaProject;
66466
- var toAbsoluteUri = (project, relativeUri) => path_1.join(project.root, relativeUri);
66539
+ var toAbsoluteUri = (project, relativeUri) => (0, path_1.join)(project.root, relativeUri);
66467
66540
  exports2.toAbsoluteUri = toAbsoluteUri;
66468
66541
  var toReferenceUri = async (project, relativeUriFrom, relativeUriTo) => {
66469
66542
  let relativeUri = "";
@@ -66482,8 +66555,8 @@ var require_capProject = __commonJS({
66482
66555
  }
66483
66556
  }
66484
66557
  if (!relativeUri) {
66485
- const fromDir = path_1.dirname(exports2.toAbsoluteUri(project, relativeUriFrom));
66486
- relativeUri = path_1.relative(fromDir, exports2.toAbsoluteUri(project, relativeUriTo));
66558
+ const fromDir = (0, path_1.dirname)((0, exports2.toAbsoluteUri)(project, relativeUriFrom));
66559
+ relativeUri = (0, path_1.relative)(fromDir, (0, exports2.toAbsoluteUri)(project, relativeUriTo));
66487
66560
  if (!relativeUri.startsWith(".")) {
66488
66561
  relativeUri = "./" + relativeUri;
66489
66562
  }
@@ -66510,8 +66583,8 @@ var require_capProject = __commonJS({
66510
66583
  async function readPackageNameForFolder(baseUri, relativeUri) {
66511
66584
  let packageName = "";
66512
66585
  try {
66513
- const path3 = path_1.normalize(baseUri + "/" + relativeUri + "/package.json");
66514
- const content = await file_1.readFile(path3);
66586
+ const path3 = (0, path_1.normalize)(baseUri + "/" + relativeUri + "/package.json");
66587
+ const content = await (0, file_1.readFile)(path3);
66515
66588
  if (content) {
66516
66589
  const parsed = JSON.parse(content);
66517
66590
  packageName = parsed.name;
@@ -66531,9 +66604,13 @@ var require_webapp2 = __commonJS({
66531
66604
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
66532
66605
  if (k2 === void 0)
66533
66606
  k2 = k;
66534
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
66535
- return m[k];
66536
- } });
66607
+ var desc = Object.getOwnPropertyDescriptor(m, k);
66608
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
66609
+ desc = { enumerable: true, get: function() {
66610
+ return m[k];
66611
+ } };
66612
+ }
66613
+ Object.defineProperty(o, k2, desc);
66537
66614
  } : function(o, m, k, k2) {
66538
66615
  if (k2 === void 0)
66539
66616
  k2 = k;
@@ -66566,7 +66643,7 @@ var require_webapp2 = __commonJS({
66566
66643
  var _a2, _b, _c, _d, _e;
66567
66644
  let webappPath = project_spec_1.DirName.Webapp;
66568
66645
  try {
66569
- const yamlContent = await file_1.readFile(path_1.join(root, project_spec_1.FileName.Ui5Yaml));
66646
+ const yamlContent = await (0, file_1.readFile)((0, path_1.join)(root, project_spec_1.FileName.Ui5Yaml));
66570
66647
  webappPath = (_e = (_d = (_c = (_b = (_a2 = yaml.parse(yamlContent)) == null ? void 0 : _a2.resources) == null ? void 0 : _b.configuration) == null ? void 0 : _c.paths) == null ? void 0 : _d.webapp) != null ? _e : project_spec_1.DirName.Webapp;
66571
66648
  } catch {
66572
66649
  webappPath = project_spec_1.DirName.Webapp;
@@ -66588,7 +66665,7 @@ var require_commandRunner = __commonJS({
66588
66665
  run(cmd, args = []) {
66589
66666
  return new Promise((resolve, reject) => {
66590
66667
  const stack = [];
66591
- const spawnedCmd = child_process_1.spawn(cmd, args, {});
66668
+ const spawnedCmd = (0, child_process_1.spawn)(cmd, args, {});
66592
66669
  spawnedCmd.stdout.setEncoding("utf8");
66593
66670
  let response;
66594
66671
  spawnedCmd.stdout.on("data", (data2) => {
@@ -69188,9 +69265,9 @@ var require_ui5_info = __commonJS({
69188
69265
  return a.localeCompare(b);
69189
69266
  }
69190
69267
  if (versions.indexOf(a) > -1 || versions.indexOf(b) > -1) {
69191
- return semver_compare_1.default(a, b);
69268
+ return (0, semver_compare_1.default)(a, b);
69192
69269
  }
69193
- return semver_compare_1.default(b + ".999", a + ".999");
69270
+ return (0, semver_compare_1.default)(b + ".999", a + ".999");
69194
69271
  }
69195
69272
  function filterNewerEqual(versions, minVersion) {
69196
69273
  return versions.filter((version) => {
@@ -69199,11 +69276,11 @@ var require_ui5_info = __commonJS({
69199
69276
  } else if (version.startsWith("snapshot-")) {
69200
69277
  version = version.replace("snapshot-", "");
69201
69278
  }
69202
- return semver_compare_1.default(version, minVersion) >= 0;
69279
+ return (0, semver_compare_1.default)(version, minVersion) >= 0;
69203
69280
  });
69204
69281
  }
69205
69282
  async function requestUI5Versions(url, service = `/${url === "https://ui5.sap.com" ? "version.json?sap-ui-config-patches=true&sap-ui-config-showall=true" : "neo-app.json"}`) {
69206
- const { system } = ux_odata_client_1.newSapSystemForServiceUrl(url);
69283
+ const { system } = (0, ux_odata_client_1.newSapSystemForServiceUrl)(url);
69207
69284
  system.config.service = service;
69208
69285
  const odataClient = new ux_odata_client_1.ODataClient({
69209
69286
  system: system.config,
@@ -69248,7 +69325,7 @@ var require_ui5_info = __commonJS({
69248
69325
  }
69249
69326
  result2 = versions.map((ver) => {
69250
69327
  var _a2;
69251
- const parsedVersion = (_a2 = semver_1.coerce(ver.version)) == null ? void 0 : _a2.version;
69328
+ const parsedVersion = (_a2 = (0, semver_1.coerce)(ver.version)) == null ? void 0 : _a2.version;
69252
69329
  if (parsedVersion !== void 0) {
69253
69330
  return {
69254
69331
  version: parsedVersion,
@@ -69290,14 +69367,14 @@ var require_ui5_info = __commonJS({
69290
69367
  let officialVersions = [];
69291
69368
  let snapshotVersions = [];
69292
69369
  try {
69293
- officialVersions = (filterOptions == null ? void 0 : filterOptions.onlyNpmVersion) ? await retrieveNpmUI5Versions(filterOptions.fioriElementsVersion || "v2", filterOptions.ui5SelectedVersion) : await exports2.retrieveUI5VersionsCache("officialVersions", filterOptions == null ? void 0 : filterOptions.useCache);
69370
+ officialVersions = (filterOptions == null ? void 0 : filterOptions.onlyNpmVersion) ? await retrieveNpmUI5Versions(filterOptions.fioriElementsVersion || "v2", filterOptions.ui5SelectedVersion) : await (0, exports2.retrieveUI5VersionsCache)("officialVersions", filterOptions == null ? void 0 : filterOptions.useCache);
69294
69371
  } catch (error3) {
69295
69372
  logger.warning(`Request to '${"https://ui5.sap.com"}' failed. Error was: '${error3.message}'. Fallback to default UI5 versions`);
69296
69373
  officialVersions = DEFAULT_UI5_VERSIONS.slice();
69297
69374
  }
69298
69375
  if (filterOptions == null ? void 0 : filterOptions.includeSnapshots) {
69299
69376
  try {
69300
- snapshotVersions = await exports2.retrieveUI5VersionsCache("snapshotsVersions", filterOptions == null ? void 0 : filterOptions.useCache);
69377
+ snapshotVersions = await (0, exports2.retrieveUI5VersionsCache)("snapshotsVersions", filterOptions == null ? void 0 : filterOptions.useCache);
69301
69378
  } catch (error3) {
69302
69379
  logger.error(`Request to '${"https://sapui5preview-sapui5.dispatcher.int.sap.eu2.hana.ondemand.com"}' failed. Error was: '${error3.message}'`);
69303
69380
  }
@@ -69333,7 +69410,7 @@ var require_ui5_info = __commonJS({
69333
69410
  }
69334
69411
  let ui5VersionsOverview = void 0;
69335
69412
  if ((filterOptions == null ? void 0 : filterOptions.groupUI5Versions) === true) {
69336
- ui5VersionsOverview = await exports2.retrieveUI5VersionsCache("overview", filterOptions == null ? void 0 : filterOptions.useCache);
69413
+ ui5VersionsOverview = await (0, exports2.retrieveUI5VersionsCache)("overview", filterOptions == null ? void 0 : filterOptions.useCache);
69337
69414
  }
69338
69415
  return filteredUI5Versions.map((ui5) => {
69339
69416
  const ui5Version = {
@@ -69347,7 +69424,7 @@ var require_ui5_info = __commonJS({
69347
69424
  if ((filterOptions == null ? void 0 : filterOptions.groupUI5Versions) === true && ui5VersionsOverview !== void 0) {
69348
69425
  ui5Version.version.maintained = ui5VersionsOverview.some((v) => {
69349
69426
  if (v !== void 0) {
69350
- return `${semver_1.major(v.version)}.${semver_1.minor(v.version)}` === `${semver_1.major(ui5)}.${semver_1.minor(ui5)}` && v.support === types_1.inMaintenance;
69427
+ return `${(0, semver_1.major)(v.version)}.${(0, semver_1.minor)(v.version)}` === `${(0, semver_1.major)(ui5)}.${(0, semver_1.minor)(ui5)}` && v.support === types_1.inMaintenance;
69351
69428
  }
69352
69429
  });
69353
69430
  }
@@ -69366,13 +69443,13 @@ var require_ui5_info = __commonJS({
69366
69443
  filteredThemes.push(theme);
69367
69444
  break;
69368
69445
  case "sap_fiori_3_dark":
69369
- (ui5VersionCheck(filteredUi5Version) || semver_compare_1.default(filteredUi5Version, MIN_UI5_DARK_THEME) >= 0) && filteredThemes.push(theme);
69446
+ (ui5VersionCheck(filteredUi5Version) || (0, semver_compare_1.default)(filteredUi5Version, MIN_UI5_DARK_THEME) >= 0) && filteredThemes.push(theme);
69370
69447
  break;
69371
69448
  case "sap_horizon":
69372
69449
  case "sap_horizon_dark":
69373
69450
  case "sap_horizon_hcw":
69374
69451
  case "sap_horizon_hcb":
69375
- (ui5VersionCheck(filteredUi5Version) || semver_compare_1.default(filteredUi5Version, MIN_UI5_VERSION_HORIZON_THEME) >= 0) && filteredThemes.push(theme);
69452
+ (ui5VersionCheck(filteredUi5Version) || (0, semver_compare_1.default)(filteredUi5Version, MIN_UI5_VERSION_HORIZON_THEME) >= 0) && filteredThemes.push(theme);
69376
69453
  break;
69377
69454
  }
69378
69455
  }
@@ -69381,7 +69458,7 @@ var require_ui5_info = __commonJS({
69381
69458
  exports2.getUi5Themes = getUi5Themes;
69382
69459
  function getDefaultTheme(ui5Version) {
69383
69460
  if (ui5Version) {
69384
- if (semver_1.coerce(ui5Version) && semver_1.lt(ui5Version, MIN_UI5_VERSION_HORIZON_THEME)) {
69461
+ if ((0, semver_1.coerce)(ui5Version) && (0, semver_1.lt)(ui5Version, MIN_UI5_VERSION_HORIZON_THEME)) {
69385
69462
  return "sap_fiori_3";
69386
69463
  }
69387
69464
  }
@@ -69436,7 +69513,7 @@ var require_ui5_info = __commonJS({
69436
69513
  if (ui5SelectedVersion && ui5SelectedVersion.length) {
69437
69514
  const latestMinIdx = latestVersions.findIndex((v) => v === ui5SelectedVersion);
69438
69515
  if (latestMinIdx === -1) {
69439
- if (semver_compare_1.default(ui5SelectedVersion, latestVersions.slice(-1)[0]) > 0 || ui5SelectedVersion === "Latest" || !semver_1.valid(ui5SelectedVersion)) {
69516
+ if ((0, semver_compare_1.default)(ui5SelectedVersion, latestVersions.slice(-1)[0]) > 0 || ui5SelectedVersion === "Latest" || !(0, semver_1.valid)(ui5SelectedVersion)) {
69440
69517
  latestVersions = latestVersions.slice(0);
69441
69518
  } else {
69442
69519
  latestVersions = latestVersions.slice(-1);
@@ -69486,8 +69563,8 @@ var require_ui5_info = __commonJS({
69486
69563
  exports2.getLatestSapui5Version = getLatestSapui5Version;
69487
69564
  function getSpecTagVersion(ui5Version) {
69488
69565
  if (ui5Version) {
69489
- if (semver_1.valid(ui5Version)) {
69490
- return `UI5-${semver_1.major(ui5Version)}.${semver_1.minor(ui5Version)}`;
69566
+ if ((0, semver_1.valid)(ui5Version)) {
69567
+ return `UI5-${(0, semver_1.major)(ui5Version)}.${(0, semver_1.minor)(ui5Version)}`;
69491
69568
  } else if (ui5Version.includes("snapshot") && ui5Version.includes(".")) {
69492
69569
  const snapshotVersion = ui5Version.split("snapshot-")[1];
69493
69570
  return `UI5-${snapshotVersion}`;
@@ -69587,9 +69664,13 @@ var require_yamlFile = __commonJS({
69587
69664
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
69588
69665
  if (k2 === void 0)
69589
69666
  k2 = k;
69590
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
69591
- return m[k];
69592
- } });
69667
+ var desc = Object.getOwnPropertyDescriptor(m, k);
69668
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
69669
+ desc = { enumerable: true, get: function() {
69670
+ return m[k];
69671
+ } };
69672
+ }
69673
+ Object.defineProperty(o, k2, desc);
69593
69674
  } : function(o, m, k, k2) {
69594
69675
  if (k2 === void 0)
69595
69676
  k2 = k;
@@ -69619,9 +69700,9 @@ var require_yamlFile = __commonJS({
69619
69700
  var file_1 = require_file2();
69620
69701
  var i18n_1 = require_i18n3();
69621
69702
  async function readUi5YamlConfig(dirPath, filename) {
69622
- const filePath = path_1.join(dirPath, filename);
69623
- if (await file_1.fileExists(filePath)) {
69624
- return file_1.readFile(filePath);
69703
+ const filePath = (0, path_1.join)(dirPath, filename);
69704
+ if (await (0, file_1.fileExists)(filePath)) {
69705
+ return (0, file_1.readFile)(filePath);
69625
69706
  } else {
69626
69707
  const error3 = new Error(i18n_1.i18n.t("ERROR_UI5_YAML_MISSING"));
69627
69708
  error3.name = "Ui5MissingError";
@@ -69660,7 +69741,7 @@ var require_yamlFile = __commonJS({
69660
69741
  }
69661
69742
  return parsed;
69662
69743
  } catch (e) {
69663
- throw new Error(i18n_1.i18n.t("ERROR_UI5_YAML_PARSING", { filePath: path_1.join(dirPath, filename), parsingError: e.message }));
69744
+ throw new Error(i18n_1.i18n.t("ERROR_UI5_YAML_PARSING", { filePath: (0, path_1.join)(dirPath, filename), parsingError: e.message }));
69664
69745
  }
69665
69746
  }
69666
69747
  exports2.getParsedUi5YamlConfig = getParsedUi5YamlConfig;
@@ -69674,9 +69755,13 @@ var require_mockServer = __commonJS({
69674
69755
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
69675
69756
  if (k2 === void 0)
69676
69757
  k2 = k;
69677
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
69678
- return m[k];
69679
- } });
69758
+ var desc = Object.getOwnPropertyDescriptor(m, k);
69759
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
69760
+ desc = { enumerable: true, get: function() {
69761
+ return m[k];
69762
+ } };
69763
+ }
69764
+ Object.defineProperty(o, k2, desc);
69680
69765
  } : function(o, m, k, k2) {
69681
69766
  if (k2 === void 0)
69682
69767
  k2 = k;
@@ -69708,7 +69793,7 @@ var require_mockServer = __commonJS({
69708
69793
  var file_1 = require_file2();
69709
69794
  async function getMockServerConfig(cfgFileDir, cfgFileName = project_spec_1.FileName.Ui5MockYaml) {
69710
69795
  var _a2;
69711
- const ui5Config = await yamlFile_1.getParsedUi5YamlConfig(cfgFileDir, cfgFileName);
69796
+ const ui5Config = await (0, yamlFile_1.getParsedUi5YamlConfig)(cfgFileDir, cfgFileName);
69712
69797
  const middlewares = (_a2 = ui5Config.server) == null ? void 0 : _a2.customMiddleware;
69713
69798
  if (middlewares) {
69714
69799
  let mockMW;
@@ -69741,22 +69826,23 @@ var require_mockServer = __commonJS({
69741
69826
  }
69742
69827
  exports2.getMockServicesConfiguration = getMockServicesConfiguration;
69743
69828
  async function readDynamicMockServerConfig(yamlCfgDirPath, mockFolderPath) {
69744
- const configDirPath = path_1.resolve(yamlCfgDirPath, mockFolderPath);
69745
- const jsonConfigPath = path_1.join(configDirPath, "config.json");
69746
- const moduleConfigPath = path_1.join(configDirPath, "config.js");
69747
- const isJSON = await file_1.fileExists(jsonConfigPath);
69829
+ var _a2;
69830
+ const configDirPath = (0, path_1.resolve)(yamlCfgDirPath, mockFolderPath);
69831
+ const jsonConfigPath = (0, path_1.join)(configDirPath, "config.json");
69832
+ const moduleConfigPath = (0, path_1.join)(configDirPath, "config.js");
69833
+ const isJSON = await (0, file_1.fileExists)(jsonConfigPath);
69748
69834
  let services;
69749
69835
  try {
69750
69836
  if (isJSON) {
69751
- services = await file_1.readJSON(jsonConfigPath);
69837
+ services = await (0, file_1.readJSON)(jsonConfigPath);
69752
69838
  } else {
69753
- const dynamicConfig = await Promise.resolve().then(() => __importStar(require(moduleConfigPath)));
69839
+ const dynamicConfig = await (_a2 = moduleConfigPath, Promise.resolve().then(() => __importStar(require(_a2))));
69754
69840
  services = dynamicConfig == null ? void 0 : dynamicConfig.default;
69755
69841
  }
69756
69842
  } catch (e) {
69757
69843
  throw new Error(i18n_1.i18n.t("ERROR_UI5_YAML_DYNAMIC_CFG_IMPORT", {
69758
69844
  filePath: isJSON ? jsonConfigPath : moduleConfigPath,
69759
- yamlFile: path_1.join(yamlCfgDirPath, project_spec_1.FileName.Ui5MockYaml)
69845
+ yamlFile: (0, path_1.join)(yamlCfgDirPath, project_spec_1.FileName.Ui5MockYaml)
69760
69846
  }));
69761
69847
  }
69762
69848
  return (services == null ? void 0 : services.length) ? services : null;
@@ -69764,7 +69850,7 @@ var require_mockServer = __commonJS({
69764
69850
  function matchMockServiceByMetadataPath(mockService, path3) {
69765
69851
  const { metadataPath } = mockService;
69766
69852
  if (metadataPath) {
69767
- return path3.endsWith(path_1.normalize(metadataPath));
69853
+ return path3.endsWith((0, path_1.normalize)(metadataPath));
69768
69854
  }
69769
69855
  return false;
69770
69856
  }
@@ -70254,9 +70340,13 @@ var require_utils9 = __commonJS({
70254
70340
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
70255
70341
  if (k2 === void 0)
70256
70342
  k2 = k;
70257
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
70258
- return m[k];
70259
- } });
70343
+ var desc = Object.getOwnPropertyDescriptor(m, k);
70344
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
70345
+ desc = { enumerable: true, get: function() {
70346
+ return m[k];
70347
+ } };
70348
+ }
70349
+ Object.defineProperty(o, k2, desc);
70260
70350
  } : function(o, m, k, k2) {
70261
70351
  if (k2 === void 0)
70262
70352
  k2 = k;
@@ -70306,11 +70396,11 @@ var require_utils9 = __commonJS({
70306
70396
  if (!pckgJson) {
70307
70397
  throw new Error(`Could not find any project root. Parameter 'sapuxRequired' was ${sapuxRequired ? "true" : "false"}`);
70308
70398
  }
70309
- let root = path_1.dirname(pckgJson);
70399
+ let root = (0, path_1.dirname)(pckgJson);
70310
70400
  if (sapuxRequired) {
70311
- const sapux = (await file_1.readJSON(pckgJson)).sapux;
70401
+ const sapux = (await (0, file_1.readJSON)(pckgJson)).sapux;
70312
70402
  if (!sapux) {
70313
- root = await findProjectRoot(path_1.dirname(root), sapuxRequired);
70403
+ root = await findProjectRoot((0, path_1.dirname)(root), sapuxRequired);
70314
70404
  }
70315
70405
  }
70316
70406
  return root;
@@ -70342,16 +70432,16 @@ var require_utils9 = __commonJS({
70342
70432
  ];
70343
70433
  const fileNames = [project_spec_1.FileName.Pom, project_spec_1.FileName.Package];
70344
70434
  return new Promise((doResolve, reject) => {
70345
- const finder = findit2_1.default(root);
70435
+ const finder = (0, findit2_1.default)(root);
70346
70436
  finder.on("directory", (dir, stat, stop) => {
70347
- const base = path_1.basename(dir);
70437
+ const base = (0, path_1.basename)(dir);
70348
70438
  if (stopFolders.indexOf(base) !== -1) {
70349
70439
  stop();
70350
70440
  }
70351
70441
  });
70352
70442
  finder.on("file", async (file) => {
70353
- if (fileNames.indexOf(path_1.basename(file)) && await capProject_1.isCapProject(path_1.dirname(file))) {
70354
- projects.push(path_1.dirname(file));
70443
+ if (fileNames.indexOf((0, path_1.basename)(file)) && await (0, capProject_1.isCapProject)((0, path_1.dirname)(file))) {
70444
+ projects.push((0, path_1.dirname)(file));
70355
70445
  }
70356
70446
  });
70357
70447
  finder.on("end", () => {
@@ -70365,16 +70455,16 @@ var require_utils9 = __commonJS({
70365
70455
  exports2.findCapProjects = findCapProjects;
70366
70456
  async function findAll(root, filename, results, stopFolders) {
70367
70457
  return new Promise((doResolve, reject) => {
70368
- const finder = findit2_1.default(root);
70458
+ const finder = (0, findit2_1.default)(root);
70369
70459
  finder.on("directory", (dir, stat, stop) => {
70370
- const base = path_1.basename(dir);
70460
+ const base = (0, path_1.basename)(dir);
70371
70461
  if (stopFolders.indexOf(base) !== -1) {
70372
70462
  stop();
70373
70463
  }
70374
70464
  });
70375
70465
  finder.on("file", (file) => {
70376
70466
  if (file.endsWith(filename)) {
70377
- results.push(path_1.dirname(file));
70467
+ results.push((0, path_1.dirname)(file));
70378
70468
  }
70379
70469
  });
70380
70470
  finder.on("end", () => {
@@ -70389,9 +70479,9 @@ var require_utils9 = __commonJS({
70389
70479
  async function findExtensionFiles(root, targetFileName = project_spec_1.FileName.Fragment) {
70390
70480
  const extensionFiles = [];
70391
70481
  return new Promise((doResolve, reject) => {
70392
- const finder = findit2_1.default(root);
70482
+ const finder = (0, findit2_1.default)(root);
70393
70483
  finder.on("directory", (dir, stat, stop) => {
70394
- const base = path_1.basename(dir);
70484
+ const base = (0, path_1.basename)(dir);
70395
70485
  if (base === ".git" || base === "node_modules" || base === "dist" || base === project_spec_1.DirName.Sapux) {
70396
70486
  stop();
70397
70487
  }
@@ -70487,7 +70577,7 @@ var require_utils9 = __commonJS({
70487
70577
  const sapuxProjects = [];
70488
70578
  for (const root of projects) {
70489
70579
  try {
70490
- if ((await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package))).sapux) {
70580
+ if ((await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package))).sapux) {
70491
70581
  sapuxProjects.push(root);
70492
70582
  }
70493
70583
  } catch (error3) {
@@ -70509,21 +70599,21 @@ var require_utils9 = __commonJS({
70509
70599
  exports2.findAllProjectRoots = findAllProjectRoots;
70510
70600
  async function getAppType(appRoot, projectRoot) {
70511
70601
  if (appRoot === projectRoot) {
70512
- const appPckJson = await file_1.readJSON(path_1.join(appRoot, project_spec_1.FileName.Package));
70602
+ const appPckJson = await (0, file_1.readJSON)((0, path_1.join)(appRoot, project_spec_1.FileName.Package));
70513
70603
  if (appPckJson.sapux === true) {
70514
70604
  return "SAP Fiori elements";
70515
- } else if (await file_1.fileExists(path_1.join(appRoot, project_spec_1.FileName.ExtConfigJson))) {
70605
+ } else if (await (0, file_1.fileExists)((0, path_1.join)(appRoot, project_spec_1.FileName.ExtConfigJson))) {
70516
70606
  return "SAPUI5 Extension";
70517
70607
  } else {
70518
70608
  return "SAPUI5 freestyle";
70519
70609
  }
70520
70610
  }
70521
70611
  try {
70522
- const projectPckJson = await file_1.readJSON(path_1.join(projectRoot, project_spec_1.FileName.Package));
70612
+ const projectPckJson = await (0, file_1.readJSON)((0, path_1.join)(projectRoot, project_spec_1.FileName.Package));
70523
70613
  if (!projectPckJson.sapux) {
70524
70614
  return "SAPUI5 freestyle";
70525
70615
  } else if (Array.isArray(projectPckJson.sapux)) {
70526
- return projectPckJson.sapux.find((relAppPath) => path_1.join(projectRoot, ...relAppPath.split(/\\|\//)) === appRoot) ? "SAP Fiori elements" : "SAPUI5 freestyle";
70616
+ return projectPckJson.sapux.find((relAppPath) => (0, path_1.join)(projectRoot, ...relAppPath.split(/\\|\//)) === appRoot) ? "SAP Fiori elements" : "SAPUI5 freestyle";
70527
70617
  }
70528
70618
  } catch {
70529
70619
  return "SAPUI5 freestyle";
@@ -70534,10 +70624,10 @@ var require_utils9 = __commonJS({
70534
70624
  if (appRoot === projectRoot) {
70535
70625
  return "EDMX Backend";
70536
70626
  }
70537
- if (await capProject_1.isCapJavaProject(projectRoot)) {
70627
+ if (await (0, capProject_1.isCapJavaProject)(projectRoot)) {
70538
70628
  return "CAP Java";
70539
70629
  }
70540
- if (await capProject_1.isCapNodeJsProject(projectRoot)) {
70630
+ if (await (0, capProject_1.isCapNodeJsProject)(projectRoot)) {
70541
70631
  return "CAP Node.js";
70542
70632
  }
70543
70633
  throw new Error(i18n_1.i18n.t("ERROR_DETAIL_PROJECT_TYPE", { appRoot, projectRoot }));
@@ -70551,11 +70641,11 @@ var require_utils9 = __commonJS({
70551
70641
  };
70552
70642
  } else if (Array.isArray(sapux)) {
70553
70643
  const pathWithSep = path3.endsWith(path_1.sep) ? path3 : path3 + path_1.sep;
70554
- const relAppPaths = sapux.map((a) => path_1.join(...a.split(/\\|\//)));
70555
- const relApp = relAppPaths.find((app) => pathWithSep.startsWith(path_1.join(root, app) + path_1.sep));
70644
+ const relAppPaths = sapux.map((a) => (0, path_1.join)(...a.split(/\\|\//)));
70645
+ const relApp = relAppPaths.find((app) => pathWithSep.startsWith((0, path_1.join)(root, app) + path_1.sep));
70556
70646
  if (relApp) {
70557
70647
  return {
70558
- appRoot: path_1.join(root, relApp),
70648
+ appRoot: (0, path_1.join)(root, relApp),
70559
70649
  projectRoot: root
70560
70650
  };
70561
70651
  }
@@ -70568,30 +70658,30 @@ var require_utils9 = __commonJS({
70568
70658
  if (!appRoot) {
70569
70659
  return null;
70570
70660
  }
70571
- const appPckJson = await file_1.readJSON(path_1.join(appRoot, project_spec_1.FileName.Package));
70661
+ const appPckJson = await (0, file_1.readJSON)((0, path_1.join)(appRoot, project_spec_1.FileName.Package));
70572
70662
  if (appPckJson.sapux) {
70573
70663
  return findRootsWithSapux(appPckJson.sapux, path3, appRoot);
70574
70664
  }
70575
- if (await capProject_1.isCapProject(appRoot, appPckJson)) {
70665
+ if (await (0, capProject_1.isCapProject)(appRoot, appPckJson)) {
70576
70666
  return null;
70577
70667
  }
70578
- if ((fs_1.existsSync(path_1.join(appRoot, project_spec_1.FileName.Ui5LocalYaml)) || fs_1.existsSync(path_1.join(appRoot, project_spec_1.FileName.ExtConfigJson))) && exports2.hasDependency(appPckJson, "@sap/ux-ui5-tooling")) {
70668
+ if (((0, fs_1.existsSync)((0, path_1.join)(appRoot, project_spec_1.FileName.Ui5LocalYaml)) || (0, fs_1.existsSync)((0, path_1.join)(appRoot, project_spec_1.FileName.ExtConfigJson))) && (0, exports2.hasDependency)(appPckJson, "@sap/ux-ui5-tooling")) {
70579
70669
  return {
70580
70670
  appRoot,
70581
70671
  projectRoot: appRoot
70582
70672
  };
70583
70673
  }
70584
70674
  try {
70585
- const { root } = path_1.parse(appRoot);
70586
- let projectRoot = path_1.dirname(appRoot);
70675
+ const { root } = (0, path_1.parse)(appRoot);
70676
+ let projectRoot = (0, path_1.dirname)(appRoot);
70587
70677
  while (projectRoot !== root) {
70588
- if (await capProject_1.isCapProject(projectRoot) && path_1.join(projectRoot, "app") !== appRoot) {
70678
+ if (await (0, capProject_1.isCapProject)(projectRoot) && (0, path_1.join)(projectRoot, "app") !== appRoot) {
70589
70679
  return {
70590
70680
  appRoot,
70591
70681
  projectRoot
70592
70682
  };
70593
70683
  }
70594
- projectRoot = path_1.dirname(projectRoot);
70684
+ projectRoot = (0, path_1.dirname)(projectRoot);
70595
70685
  }
70596
70686
  } catch (e) {
70597
70687
  }
@@ -70606,7 +70696,7 @@ var require_utils9 = __commonJS({
70606
70696
  const manifestPaths = await findAllManifest(wsFolders);
70607
70697
  for (const manifestPath of manifestPaths) {
70608
70698
  try {
70609
- const manifest = await file_1.readJSON(path_1.join(manifestPath, project_spec_1.FileName.Manifest));
70699
+ const manifest = await (0, file_1.readJSON)((0, path_1.join)(manifestPath, project_spec_1.FileName.Manifest));
70610
70700
  if (!manifest["sap.app"] || !manifest["sap.app"].id || manifest["sap.app"].type !== "application") {
70611
70701
  continue;
70612
70702
  }
@@ -70626,12 +70716,12 @@ var require_utils9 = __commonJS({
70626
70716
  const roots = await findAllProjectRoots(workspaceRoots, false);
70627
70717
  for (const root of roots) {
70628
70718
  try {
70629
- const packageJson = await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package));
70630
- if ((exports2.hasDependency(packageJson, "@sap/ux-ui5-tooling") || await capProject_1.isCapProject(root, packageJson)) && hasScript(packageJson)) {
70719
+ const packageJson = await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package));
70720
+ if (((0, exports2.hasDependency)(packageJson, "@sap/ux-ui5-tooling") || await (0, capProject_1.isCapProject)(root, packageJson)) && hasScript(packageJson)) {
70631
70721
  result2.push(root);
70632
70722
  }
70633
70723
  } catch (error3) {
70634
- logger == null ? void 0 : logger.info(`Invalid JSON ${path_1.join(root, project_spec_1.FileName.Package)}. Application Modeler will skip this project.`);
70724
+ logger == null ? void 0 : logger.info(`Invalid JSON ${(0, path_1.join)(root, project_spec_1.FileName.Package)}. Application Modeler will skip this project.`);
70635
70725
  continue;
70636
70726
  }
70637
70727
  }
@@ -70639,7 +70729,7 @@ var require_utils9 = __commonJS({
70639
70729
  };
70640
70730
  exports2.findRunnableProjects = findRunnableProjects;
70641
70731
  async function checkPackageJson(root, dependency, sapux) {
70642
- const packageJson = await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package));
70732
+ const packageJson = await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package));
70643
70733
  if (packageJson.dependencies && packageJson.dependencies[dependency] !== void 0 || packageJson.devDependencies && packageJson.devDependencies[dependency] !== void 0) {
70644
70734
  return true;
70645
70735
  }
@@ -70683,17 +70773,17 @@ var require_utils9 = __commonJS({
70683
70773
  exports2.getMainService = getMainService;
70684
70774
  function createApplicationStructureConfig(appFolder, manifest, sync) {
70685
70775
  return {
70686
- manifest: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.FileName.Manifest),
70687
- changes: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Changes),
70688
- app: sync ? path_1.join(appFolder, project_spec_1.DirName.Sapux, project_spec_1.FileName.App) : void 0,
70689
- i18n: getI18nPath(path_1.join(appFolder, project_spec_1.DirName.Webapp), manifest),
70776
+ manifest: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.FileName.Manifest),
70777
+ changes: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Changes),
70778
+ app: sync ? (0, path_1.join)(appFolder, project_spec_1.DirName.Sapux, project_spec_1.FileName.App) : void 0,
70779
+ i18n: getI18nPath((0, path_1.join)(appFolder, project_spec_1.DirName.Webapp), manifest),
70690
70780
  mainService: getMainService(manifest),
70691
70781
  services: {},
70692
70782
  annotations: {},
70693
- ext: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext),
70694
- controller: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.Controller),
70695
- view: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.View),
70696
- fragment: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.Fragment)
70783
+ ext: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext),
70784
+ controller: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.Controller),
70785
+ view: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.View),
70786
+ fragment: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.Fragment)
70697
70787
  };
70698
70788
  }
70699
70789
  exports2.createApplicationStructureConfig = createApplicationStructureConfig;
@@ -70707,18 +70797,18 @@ var require_utils9 = __commonJS({
70707
70797
  };
70708
70798
  const appServices = project.apps[appFolder].services;
70709
70799
  if (services[name].settings) {
70710
- appServices[name].local = ((_a2 = services[name].settings) == null ? void 0 : _a2.localUri) ? path_1.join(appFolder, project_spec_1.DirName.Webapp, services[name].settings.localUri) : "";
70800
+ appServices[name].local = ((_a2 = services[name].settings) == null ? void 0 : _a2.localUri) ? (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, services[name].settings.localUri) : "";
70711
70801
  if (services[name].settings.annotations) {
70712
70802
  project.apps[appFolder].annotations[name] = project.apps[appFolder].annotations[name] || [];
70713
70803
  for (const id of services[name].settings.annotations) {
70714
70804
  const annotation = services[id];
70715
70805
  if (annotation) {
70716
70806
  if (!annotation.uri || annotation.settings && annotation.uri === annotation.settings.localUri) {
70717
- project.apps[appFolder].annotations[name].push(path_1.join(appFolder, project_spec_1.DirName.Webapp, annotation.settings.localUri));
70807
+ project.apps[appFolder].annotations[name].push((0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, annotation.settings.localUri));
70718
70808
  } else {
70719
70809
  appServices[name].annotations = {
70720
70810
  uri: annotation.uri,
70721
- local: annotation.settings && annotation.settings.localUri ? path_1.join(appFolder, project_spec_1.DirName.Webapp, annotation.settings.localUri) : void 0
70811
+ local: annotation.settings && annotation.settings.localUri ? (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, annotation.settings.localUri) : void 0
70722
70812
  };
70723
70813
  if (appServices[name].annotations.local) {
70724
70814
  project.apps[appFolder].annotations[name].push(appServices[name].annotations.local);
@@ -70753,14 +70843,14 @@ var require_utils9 = __commonJS({
70753
70843
  }
70754
70844
  exports2.getAppConfig = getAppConfig;
70755
70845
  async function readAppJson(path3, includePageConfigs = true) {
70756
- const app = await file_1.readJSON(path3);
70846
+ const app = await (0, file_1.readJSON)(path3);
70757
70847
  if (includePageConfigs) {
70758
70848
  const pagesDirectory = path3.replace(project_spec_1.FileName.App, project_spec_1.DirName.Pages);
70759
- const pageFiles = await file_1.readDirectory(pagesDirectory);
70849
+ const pageFiles = await (0, file_1.readDirectory)(pagesDirectory);
70760
70850
  for (const file of pageFiles) {
70761
70851
  const id = file.replace(".json", "");
70762
70852
  if (app.pages[id]) {
70763
- app.pages[id].config = await file_1.readJSON(path_1.join(pagesDirectory, file));
70853
+ app.pages[id].config = await (0, file_1.readJSON)((0, path_1.join)(pagesDirectory, file));
70764
70854
  }
70765
70855
  }
70766
70856
  }
@@ -70777,15 +70867,15 @@ var require_utils9 = __commonJS({
70777
70867
  relativePath = i18nModel.settings.bundleUrl;
70778
70868
  } else if ("settings" in i18nModel && typeof i18nModel.settings === "object" && "bundleName" in i18nModel.settings && typeof i18nModel.settings.bundleName === "string") {
70779
70869
  const relBundleString = i18nModel.settings.bundleName.replace(manifest["sap.app"].id, "");
70780
- relativePath = `${path_1.join(...relBundleString.split("."))}.properties`;
70870
+ relativePath = `${(0, path_1.join)(...relBundleString.split("."))}.properties`;
70781
70871
  } else if (typeof ((_c = manifest == null ? void 0 : manifest["sap.app"]) == null ? void 0 : _c["i18n"]) === "string") {
70782
70872
  relativePath = manifest["sap.app"]["i18n"];
70783
70873
  }
70784
- return relativePath ? path_1.join(manifestFolder, relativePath) : void 0;
70874
+ return relativePath ? (0, path_1.join)(manifestFolder, relativePath) : void 0;
70785
70875
  }
70786
70876
  exports2.getI18nPath = getI18nPath;
70787
70877
  async function traverseI18nProperties(path3, fnCallback) {
70788
- const i18nFile = await file_1.readFile(path3);
70878
+ const i18nFile = await (0, file_1.readFile)(path3);
70789
70879
  const lines = i18nFile.split(/\r\n|\n/);
70790
70880
  for (let i = 0; i < lines.length; i++) {
70791
70881
  const line = lines[i];
@@ -70847,7 +70937,7 @@ var require_utils9 = __commonJS({
70847
70937
  output3.push(`${key}=${value}${os_1.default.EOL}`);
70848
70938
  }
70849
70939
  }
70850
- await file_1.updateFile(path3, output3.join(os_1.default.EOL));
70940
+ await (0, file_1.updateFile)(path3, output3.join(os_1.default.EOL));
70851
70941
  }
70852
70942
  exports2.updateI18nProperties = updateI18nProperties;
70853
70943
  async function findI18nProperty(path3, key) {
@@ -70865,11 +70955,11 @@ var require_utils9 = __commonJS({
70865
70955
  }
70866
70956
  exports2.findI18nProperty = findI18nProperty;
70867
70957
  async function getProjectTypeFromProjectFiles(projectRoot, packageJson) {
70868
- return await capProject_1.isCapProject(projectRoot, packageJson) ? "Cap" : "Edmx";
70958
+ return await (0, capProject_1.isCapProject)(projectRoot, packageJson) ? "Cap" : "Edmx";
70869
70959
  }
70870
70960
  exports2.getProjectTypeFromProjectFiles = getProjectTypeFromProjectFiles;
70871
70961
  async function getProjectType(root) {
70872
- const packageJson = await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package));
70962
+ const packageJson = await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package));
70873
70963
  return getProjectTypeFromProjectFiles(root, packageJson);
70874
70964
  }
70875
70965
  exports2.getProjectType = getProjectType;
@@ -70900,7 +70990,7 @@ var require_utils9 = __commonJS({
70900
70990
  var _a2, _b, _c;
70901
70991
  let pathInYaml;
70902
70992
  let backEndConfig;
70903
- const yamlContent = await file_1.readFile(path_1.join(root, fileName));
70993
+ const yamlContent = await (0, file_1.readFile)((0, path_1.join)(root, fileName));
70904
70994
  const middlewares = (_b = (_a2 = yaml.parse(yamlContent)) == null ? void 0 : _a2.server) == null ? void 0 : _b.customMiddleware;
70905
70995
  const middleware = middlewares == null ? void 0 : middlewares.find((element) => element.name === middlewareName);
70906
70996
  const backends = (_c = middleware == null ? void 0 : middleware.configuration) == null ? void 0 : _c.backend;
@@ -70924,15 +71014,15 @@ var require_utils9 = __commonJS({
70924
71014
  exports2.getBackendConfigByPath = getBackendConfigByPath;
70925
71015
  async function getUi5CustomMiddleware(root) {
70926
71016
  var _a2, _b;
70927
- const yamlContent = await file_1.readFile(path_1.join(root, project_spec_1.FileName.Ui5Yaml));
71017
+ const yamlContent = await (0, file_1.readFile)((0, path_1.join)(root, project_spec_1.FileName.Ui5Yaml));
70928
71018
  const middlewares = (_b = (_a2 = yaml.parse(yamlContent)) == null ? void 0 : _a2.server) == null ? void 0 : _b.customMiddleware;
70929
71019
  return middlewares == null ? void 0 : middlewares.find((element) => element.name === "fiori-tools-proxy");
70930
71020
  }
70931
71021
  exports2.getUi5CustomMiddleware = getUi5CustomMiddleware;
70932
71022
  async function getLocalUI5Version(root) {
70933
- const yamlFile = path_1.join(root, project_spec_1.FileName.Ui5LocalYaml);
70934
- if (await file_1.fileExists(yamlFile)) {
70935
- const yamlContent = yaml.parse(await file_1.readFile(yamlFile));
71023
+ const yamlFile = (0, path_1.join)(root, project_spec_1.FileName.Ui5LocalYaml);
71024
+ if (await (0, file_1.fileExists)(yamlFile)) {
71025
+ const yamlContent = yaml.parse(await (0, file_1.readFile)(yamlFile));
70936
71026
  return yamlContent.framework && yamlContent.framework.version;
70937
71027
  }
70938
71028
  }
@@ -70942,14 +71032,14 @@ var require_utils9 = __commonJS({
70942
71032
  var _a2, _b;
70943
71033
  try {
70944
71034
  let ui5Version = "latest";
70945
- const webappPath = await webapp_1.getUi5CustomWebappPath(root);
70946
- const manifestFile = path_1.join(root, webappPath, project_spec_1.FileName.Manifest);
70947
- if (await file_1.fileExists(manifestFile)) {
70948
- const manifest = await file_1.readJSON(manifestFile);
71035
+ const webappPath = await (0, webapp_1.getUi5CustomWebappPath)(root);
71036
+ const manifestFile = (0, path_1.join)(root, webappPath, project_spec_1.FileName.Manifest);
71037
+ if (await (0, file_1.fileExists)(manifestFile)) {
71038
+ const manifest = await (0, file_1.readJSON)(manifestFile);
70949
71039
  ui5Version = (_b = (_a2 = manifest["sap.ui5"]) == null ? void 0 : _a2.dependencies) == null ? void 0 : _b.minUI5Version;
70950
71040
  if (isNaN(parseFloat(ui5Version))) {
70951
71041
  if (latestSapui5Version === void 0) {
70952
- latestSapui5Version = await ux_ui5_info_1.getLatestSapui5Version();
71042
+ latestSapui5Version = await (0, ux_ui5_info_1.getLatestSapui5Version)();
70953
71043
  }
70954
71044
  ui5Version = latestSapui5Version;
70955
71045
  }
@@ -70961,9 +71051,9 @@ var require_utils9 = __commonJS({
70961
71051
  }
70962
71052
  exports2.getUI5Version = getUI5Version;
70963
71053
  async function checkServeLocalConfig(root) {
70964
- const yamlFile = path_1.join(root, project_spec_1.FileName.Ui5LocalYaml);
70965
- if (await file_1.fileExists(yamlFile)) {
70966
- const yamlContent = yaml.parse(await file_1.readFile(yamlFile));
71054
+ const yamlFile = (0, path_1.join)(root, project_spec_1.FileName.Ui5LocalYaml);
71055
+ if (await (0, file_1.fileExists)(yamlFile)) {
71056
+ const yamlContent = yaml.parse(await (0, file_1.readFile)(yamlFile));
70967
71057
  const middlewares = yamlContent.server.customMiddleware;
70968
71058
  const serveLocal = middlewares.find((element) => element.name === "fiori-tools-servestatic");
70969
71059
  if (serveLocal) {
@@ -70979,8 +71069,8 @@ var require_utils9 = __commonJS({
70979
71069
  function getAppIdForFile(filepath, projectRoot, appIds) {
70980
71070
  let appId = "";
70981
71071
  appIds.forEach((appIdTmp) => {
70982
- const relativeStr = path_1.relative(path_1.join(projectRoot, appIdTmp), filepath);
70983
- if (relativeStr && !relativeStr.startsWith("..") && !path_1.isAbsolute(relativeStr)) {
71072
+ const relativeStr = (0, path_1.relative)((0, path_1.join)(projectRoot, appIdTmp), filepath);
71073
+ if (relativeStr && !relativeStr.startsWith("..") && !(0, path_1.isAbsolute)(relativeStr)) {
70984
71074
  appId = appIdTmp;
70985
71075
  }
70986
71076
  });
@@ -70994,11 +71084,11 @@ var require_utils9 = __commonJS({
70994
71084
  exports2.isOVPProject = isOVPProject;
70995
71085
  async function deleteCapApp(appPath, logger) {
70996
71086
  var _a2;
70997
- const appName = path_1.basename(appPath);
71087
+ const appName = (0, path_1.basename)(appPath);
70998
71088
  const projectRoot = await findProjectRoot(appPath);
70999
- const packageJsonPath = path_1.join(projectRoot, project_spec_1.FileName.Package);
71000
- const packageJson = await file_1.readJSON(packageJsonPath);
71001
- const cdsFilePaths = [path_1.join(path_1.dirname(appPath), project_spec_1.FileName.ServiceCds), path_1.join(path_1.dirname(appPath), project_spec_1.FileName.IndexCds)];
71089
+ const packageJsonPath = (0, path_1.join)(projectRoot, project_spec_1.FileName.Package);
71090
+ const packageJson = await (0, file_1.readJSON)(packageJsonPath);
71091
+ const cdsFilePaths = [(0, path_1.join)((0, path_1.dirname)(appPath), project_spec_1.FileName.ServiceCds), (0, path_1.join)((0, path_1.dirname)(appPath), project_spec_1.FileName.IndexCds)];
71002
71092
  if (!Array.isArray(packageJson.sapux)) {
71003
71093
  logger == null ? void 0 : logger.error(i18n_1.i18n.t("ERROR_DEL_CAP_APP_SAPUX", { packageJsonPath }));
71004
71094
  throw Error(i18n_1.i18n.t("ERROR_DEL_CAP_APP_SAPUX", { packageJsonPath }));
@@ -71013,23 +71103,23 @@ var require_utils9 = __commonJS({
71013
71103
  if ((_a2 = packageJson.scripts) == null ? void 0 : _a2[`watch-${appName}`]) {
71014
71104
  delete packageJson.scripts[`watch-${appName}`];
71015
71105
  }
71016
- await file_1.updateJSON(packageJsonPath, packageJson);
71106
+ await (0, file_1.updateJSON)(packageJsonPath, packageJson);
71017
71107
  logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_FILE_UPDATED", { packageJsonPath }));
71018
- await file_1.deleteDirectory(appPath);
71108
+ await (0, file_1.deleteDirectory)(appPath);
71019
71109
  logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_DIR_DELETED", { appPath }));
71020
71110
  const usingEntry = `using from './${appName}/annotations';`;
71021
71111
  for (const cdsFilePath of cdsFilePaths) {
71022
- if (await file_1.fileExists(cdsFilePath)) {
71112
+ if (await (0, file_1.fileExists)(cdsFilePath)) {
71023
71113
  try {
71024
- let cdsFile = await file_1.readFile(cdsFilePath);
71114
+ let cdsFile = await (0, file_1.readFile)(cdsFilePath);
71025
71115
  if (cdsFile.indexOf(usingEntry) !== -1) {
71026
71116
  logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_DELETE_USING", { appName, cdsFilePath }));
71027
71117
  cdsFile = cdsFile.replace(usingEntry, "");
71028
71118
  if (cdsFile.replace(/\n/g, "").trim() === "") {
71029
71119
  logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_DEL_CDS", { cdsFilePath }));
71030
- await file_1.deleteFile(cdsFilePath);
71120
+ await (0, file_1.deleteFile)(cdsFilePath);
71031
71121
  } else {
71032
- await file_1.updateFile(cdsFilePath, cdsFile);
71122
+ await (0, file_1.updateFile)(cdsFilePath, cdsFile);
71033
71123
  }
71034
71124
  }
71035
71125
  } catch (error3) {
@@ -71037,9 +71127,9 @@ var require_utils9 = __commonJS({
71037
71127
  }
71038
71128
  }
71039
71129
  }
71040
- if ((await file_1.readDirectory(path_1.dirname(appPath))).length === 0) {
71041
- logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_FOLDER_EMPTY", { appPath: path_1.dirname(appPath) }));
71042
- await file_1.deleteDirectory(path_1.dirname(appPath));
71130
+ if ((await (0, file_1.readDirectory)((0, path_1.dirname)(appPath))).length === 0) {
71131
+ logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_FOLDER_EMPTY", { appPath: (0, path_1.dirname)(appPath) }));
71132
+ await (0, file_1.deleteDirectory)((0, path_1.dirname)(appPath));
71043
71133
  }
71044
71134
  }
71045
71135
  exports2.deleteCapApp = deleteCapApp;
@@ -71048,7 +71138,7 @@ var require_utils9 = __commonJS({
71048
71138
  let appId = manifest["sap.app"].id;
71049
71139
  if (appId === project_spec_1.AppPomXmlArtifactIdPlaceholder) {
71050
71140
  try {
71051
- const pomFile = await file_1.readFile(path_1.join(projectRoot, "pom.xml"));
71141
+ const pomFile = await (0, file_1.readFile)((0, path_1.join)(projectRoot, "pom.xml"));
71052
71142
  const pomXml = fast_xml_parser_1.default.parse(pomFile);
71053
71143
  if ((_a2 = pomXml.project) == null ? void 0 : _a2.artifactId) {
71054
71144
  appId = pomXml.project.artifactId;
@@ -71056,7 +71146,7 @@ var require_utils9 = __commonJS({
71056
71146
  throw new Error();
71057
71147
  }
71058
71148
  } catch (error3) {
71059
- appId = path_1.basename(projectRoot);
71149
+ appId = (0, path_1.basename)(projectRoot);
71060
71150
  }
71061
71151
  }
71062
71152
  return appId;
@@ -71064,48 +71154,48 @@ var require_utils9 = __commonJS({
71064
71154
  exports2.getApplicationId = getApplicationId;
71065
71155
  function getCapAppMockdataDirPath(projectRoot) {
71066
71156
  const capMockdataDirPaths = [
71067
- path_1.join(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Csv),
71068
- path_1.join(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Sapux, project_spec_1.DirName.Csv)
71157
+ (0, path_1.join)(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Csv),
71158
+ (0, path_1.join)(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Sapux, project_spec_1.DirName.Csv)
71069
71159
  ];
71070
71160
  for (const path3 of capMockdataDirPaths) {
71071
- if (fs_1.existsSync(path3)) {
71161
+ if ((0, fs_1.existsSync)(path3)) {
71072
71162
  return path3;
71073
71163
  }
71074
71164
  }
71075
- return path_1.join(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Data);
71165
+ return (0, path_1.join)(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Data);
71076
71166
  }
71077
71167
  exports2.getCapAppMockdataDirPath = getCapAppMockdataDirPath;
71078
71168
  function getEdmxAppDefaultMockdataDirPath(appRoot) {
71079
- return path_1.join(appRoot, project_spec_1.DirName.Webapp, project_spec_1.DirName.LocalService, project_spec_1.DirName.Data);
71169
+ return (0, path_1.join)(appRoot, project_spec_1.DirName.Webapp, project_spec_1.DirName.LocalService, project_spec_1.DirName.Data);
71080
71170
  }
71081
71171
  exports2.getEdmxAppDefaultMockdataDirPath = getEdmxAppDefaultMockdataDirPath;
71082
71172
  async function tryGetEdmxAppMockServiceMockdataDir(configDir, serviceMetadataPath) {
71083
- const config2 = await ui5Config_1.getMockServerConfig(configDir);
71173
+ const config2 = await (0, ui5Config_1.getMockServerConfig)(configDir);
71084
71174
  if (config2) {
71085
- const { services, mockFolder } = await ui5Config_1.getMockServicesConfiguration(configDir, config2);
71175
+ const { services, mockFolder } = await (0, ui5Config_1.getMockServicesConfiguration)(configDir, config2);
71086
71176
  if (services) {
71087
- const mockService = ui5Config_1.findMockServiceByMetadataPath(services, serviceMetadataPath);
71177
+ const mockService = (0, ui5Config_1.findMockServiceByMetadataPath)(services, serviceMetadataPath);
71088
71178
  if (mockService == null ? void 0 : mockService.mockdataPath) {
71089
- const servicesConfigFilePath = mockFolder ? path_1.resolve(configDir, mockFolder) : configDir;
71090
- return path_1.resolve(servicesConfigFilePath, mockService.mockdataPath);
71179
+ const servicesConfigFilePath = mockFolder ? (0, path_1.resolve)(configDir, mockFolder) : configDir;
71180
+ return (0, path_1.resolve)(servicesConfigFilePath, mockService.mockdataPath);
71091
71181
  }
71092
71182
  }
71093
71183
  }
71094
71184
  }
71095
71185
  exports2.tryGetEdmxAppMockServiceMockdataDir = tryGetEdmxAppMockServiceMockdataDir;
71096
71186
  async function isAdaptationProject(projectRoot) {
71097
- const adpConfigJsonPath = path_1.join(projectRoot, ".adp", "config.json");
71098
- return file_1.fileExists(adpConfigJsonPath);
71187
+ const adpConfigJsonPath = (0, path_1.join)(projectRoot, ".adp", "config.json");
71188
+ return (0, file_1.fileExists)(adpConfigJsonPath);
71099
71189
  }
71100
71190
  exports2.isAdaptationProject = isAdaptationProject;
71101
71191
  function getAdditionalEntitySetsFromManifest(json) {
71102
71192
  const jsonPathTargetsPattern = `$['sap.ui5'].routing.targets`;
71103
71193
  const jsonPathEntitySetsPattern = `options.settings.views.paths.*.entitySet`;
71104
- const pages = jsonpath_plus_1.JSONPath({ path: jsonPathTargetsPattern, json })[0];
71194
+ const pages = (0, jsonpath_plus_1.JSONPath)({ path: jsonPathTargetsPattern, json })[0];
71105
71195
  const additionalEntitySets = {};
71106
71196
  for (const pageId in pages) {
71107
71197
  const page = pages[pageId];
71108
- const viewEntitySets = jsonpath_plus_1.JSONPath({
71198
+ const viewEntitySets = (0, jsonpath_plus_1.JSONPath)({
71109
71199
  path: jsonPathEntitySetsPattern,
71110
71200
  json: page
71111
71201
  });
@@ -71335,7 +71425,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
71335
71425
  async function getCommonProperties() {
71336
71426
  const commonProperties = {};
71337
71427
  commonProperties[types_1.CommonProperties.DevSpace] = await getSbasDevspace();
71338
- commonProperties[types_1.CommonProperties.AppStudio] = ux_common_utils_1.isAppStudio();
71428
+ commonProperties[types_1.CommonProperties.AppStudio] = (0, ux_common_utils_1.isAppStudio)();
71339
71429
  commonProperties[types_1.CommonProperties.AppStudioBackwardCompatible] = commonProperties[types_1.CommonProperties.AppStudio];
71340
71430
  commonProperties[types_1.CommonProperties.InternlVsExternal] = getInternalVsExternal();
71341
71431
  commonProperties[types_1.CommonProperties.InternlVsExternalBackwardCompatible] = commonProperties[types_1.CommonProperties.InternlVsExternal];
@@ -71344,7 +71434,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
71344
71434
  exports2.getCommonProperties = getCommonProperties;
71345
71435
  async function getSbasDevspace() {
71346
71436
  var _a2, _b;
71347
- if (ux_common_utils_1.isAppStudio()) {
71437
+ if ((0, ux_common_utils_1.isAppStudio)()) {
71348
71438
  try {
71349
71439
  const h20Url = process.env.H2O_URL;
71350
71440
  const workspaceId = process.env.WORKSPACE_ID.replace("workspaces-", "");
@@ -71398,13 +71488,13 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
71398
71488
  try {
71399
71489
  let projectRoot;
71400
71490
  try {
71401
- projectRoot = await utils_1.findProjectRoot(appPath);
71491
+ projectRoot = await (0, utils_1.findProjectRoot)(appPath);
71402
71492
  } catch {
71403
71493
  }
71404
71494
  if (!projectRoot) {
71405
71495
  try {
71406
71496
  const appParentFolder = path_1.default.dirname(appPath);
71407
- projectRoot = await utils_1.findProjectRoot(appParentFolder, false);
71497
+ projectRoot = await (0, utils_1.findProjectRoot)(appParentFolder, false);
71408
71498
  } catch (e) {
71409
71499
  }
71410
71500
  }
@@ -71412,17 +71502,17 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
71412
71502
  if (!projectRoot) {
71413
71503
  const directParentFolder = path_1.default.dirname(appPath);
71414
71504
  const twoLevelUpParentFolder = path_1.default.dirname(directParentFolder);
71415
- isCapJavaWithoutPackageJson = await capProject_1.isCapJavaProject(twoLevelUpParentFolder);
71505
+ isCapJavaWithoutPackageJson = await (0, capProject_1.isCapJavaProject)(twoLevelUpParentFolder);
71416
71506
  projectRoot = isCapJavaWithoutPackageJson ? twoLevelUpParentFolder : appPath;
71417
71507
  }
71418
71508
  if (isCapJavaWithoutPackageJson) {
71419
71509
  return types_1.ODataSource.CAPJava;
71420
71510
  }
71421
- const projectType = await utils_1.getProjectType(projectRoot);
71511
+ const projectType = await (0, utils_1.getProjectType)(projectRoot);
71422
71512
  if (projectType === "Cap") {
71423
- if (await capProject_1.isCapJavaProject(projectRoot)) {
71513
+ if (await (0, capProject_1.isCapJavaProject)(projectRoot)) {
71424
71514
  return types_1.ODataSource.CAPJava;
71425
- } else if (await capProject_1.isCapNodeJsProject(projectRoot)) {
71515
+ } else if (await (0, capProject_1.isCapNodeJsProject)(projectRoot)) {
71426
71516
  return types_1.ODataSource.CAPNode;
71427
71517
  }
71428
71518
  } else if (projectType === "Edmx") {
@@ -71455,7 +71545,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
71455
71545
  return types_1.DeployTarget.NO_DEPLOY_CONFIG;
71456
71546
  }
71457
71547
  function getInternalVsExternal() {
71458
- return ux_feature_toggle_1.isInternalFeaturesSettingEnabled() ? "internal" : "external";
71548
+ return (0, ux_feature_toggle_1.isInternalFeaturesSettingEnabled)() ? "internal" : "external";
71459
71549
  }
71460
71550
  async function getToolsId(appPath) {
71461
71551
  var _a2, _b, _c;
@@ -90480,7 +90570,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
90480
90570
  var definePath = (paths) => {
90481
90571
  const platform = process.platform;
90482
90572
  let settingsPath = paths[platform];
90483
- if (ux_common_utils_1.isAppStudio()) {
90573
+ if ((0, ux_common_utils_1.isAppStudio)()) {
90484
90574
  settingsPath = paths.theia;
90485
90575
  }
90486
90576
  if (!settingsPath) {
@@ -90491,20 +90581,20 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
90491
90581
  return path_1.default.join(homedir, settingsPath);
90492
90582
  };
90493
90583
  var setEnableTelemetry = async (enableTelemetry) => {
90494
- const storeService = await store_1.getService({
90584
+ const storeService = await (0, store_1.getService)({
90495
90585
  entityName: "telemetrySetting"
90496
90586
  });
90497
90587
  const setting = new store_1.TelemetrySetting({ enableTelemetry });
90498
90588
  await storeService.write(setting);
90499
90589
  system_1.TelemetrySystem.telemetryEnabled = enableTelemetry;
90500
- const commonProperties = await toolsSuiteTelemetryDataProcessor_1.getCommonProperties();
90501
- reporting_1.reportEnableTelemetryOnOff(enableTelemetry, commonProperties);
90590
+ const commonProperties = await (0, toolsSuiteTelemetryDataProcessor_1.getCommonProperties)();
90591
+ (0, reporting_1.reportEnableTelemetryOnOff)(enableTelemetry, commonProperties);
90502
90592
  };
90503
90593
  exports2.setEnableTelemetry = setEnableTelemetry;
90504
90594
  var getTelemetrySetting = async () => {
90505
90595
  let setting;
90506
90596
  try {
90507
- const storeService = await store_1.getService({
90597
+ const storeService = await (0, store_1.getService)({
90508
90598
  entityName: "telemetrySetting"
90509
90599
  });
90510
90600
  setting = await storeService.read(new store_1.TelemetrySettingKey());
@@ -90514,7 +90604,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
90514
90604
  };
90515
90605
  exports2.getTelemetrySetting = getTelemetrySetting;
90516
90606
  var readEnableTelemetryFromSetting = async () => {
90517
- const storeService = await store_1.getService({
90607
+ const storeService = await (0, store_1.getService)({
90518
90608
  entityName: "telemetrySetting"
90519
90609
  });
90520
90610
  let setting;
@@ -90525,7 +90615,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
90525
90615
  if (!setting) {
90526
90616
  const deprecatedSettingPath = definePath(settingPaths);
90527
90617
  if (!deprecatedSettingPath) {
90528
- exports2.setEnableTelemetry(true);
90618
+ (0, exports2.setEnableTelemetry)(true);
90529
90619
  } else {
90530
90620
  let content;
90531
90621
  try {
@@ -90536,27 +90626,27 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
90536
90626
  return (_a2 = deprecatedSetting[propKey]) != null ? _a2 : true;
90537
90627
  });
90538
90628
  const deprecatedEnableTelemetrySetting = propValues.reduce((prevValue, currentValue) => prevValue && currentValue);
90539
- exports2.setEnableTelemetry(deprecatedEnableTelemetrySetting);
90629
+ (0, exports2.setEnableTelemetry)(deprecatedEnableTelemetrySetting);
90540
90630
  } catch {
90541
- exports2.setEnableTelemetry(true);
90631
+ (0, exports2.setEnableTelemetry)(true);
90542
90632
  }
90543
90633
  }
90544
90634
  } else {
90545
90635
  system_1.TelemetrySystem.telemetryEnabled = setting.enableTelemetry;
90546
90636
  }
90547
90637
  if (system_1.TelemetrySystem.WORKSTREAM === "extension") {
90548
- store_1.getFilesystemWatcherFor(store_1.Entity.TelemetrySetting, async () => {
90638
+ (0, store_1.getFilesystemWatcherFor)(store_1.Entity.TelemetrySetting, async () => {
90549
90639
  const watchedSetting = await storeService.read(new store_1.TelemetrySettingKey());
90550
90640
  system_1.TelemetrySystem.telemetryEnabled = watchedSetting.enableTelemetry;
90551
90641
  });
90552
90642
  }
90553
90643
  };
90554
90644
  var initToolsSuiteTelemetrySettings = async () => {
90555
- cloudDebugger_1.debug("start initTelemetrySettings");
90645
+ (0, cloudDebugger_1.debug)("start initTelemetrySettings");
90556
90646
  if (!system_1.TelemetrySystem.WORKSTREAM) {
90557
90647
  throw new Error("Workstream is undefined");
90558
90648
  }
90559
- cloudDebugger_1.debug(`workstream: ${system_1.TelemetrySystem.WORKSTREAM}`);
90649
+ (0, cloudDebugger_1.debug)(`workstream: ${system_1.TelemetrySystem.WORKSTREAM}`);
90560
90650
  system_1.TelemetrySystem.telemetryEnabled = true;
90561
90651
  await readEnableTelemetryFromSetting();
90562
90652
  };
@@ -90573,7 +90663,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
90573
90663
  await initToolsSuiteTelemetrySettings();
90574
90664
  }
90575
90665
  } catch (err) {
90576
- reporting_1.reportRuntimeError(err);
90666
+ (0, reporting_1.reportRuntimeError)(err);
90577
90667
  }
90578
90668
  };
90579
90669
  exports2.initTelemetrySettings = initTelemetrySettings3;
@@ -90587,9 +90677,13 @@ var require_toolsSuiteTelemetry = __commonJS({
90587
90677
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
90588
90678
  if (k2 === void 0)
90589
90679
  k2 = k;
90590
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
90591
- return m[k];
90592
- } });
90680
+ var desc = Object.getOwnPropertyDescriptor(m, k);
90681
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
90682
+ desc = { enumerable: true, get: function() {
90683
+ return m[k];
90684
+ } };
90685
+ }
90686
+ Object.defineProperty(o, k2, desc);
90593
90687
  } : function(o, m, k, k2) {
90594
90688
  if (k2 === void 0)
90595
90689
  k2 = k;
@@ -90619,9 +90713,13 @@ var require_client3 = __commonJS({
90619
90713
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
90620
90714
  if (k2 === void 0)
90621
90715
  k2 = k;
90622
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
90623
- return m[k];
90624
- } });
90716
+ var desc = Object.getOwnPropertyDescriptor(m, k);
90717
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
90718
+ desc = { enumerable: true, get: function() {
90719
+ return m[k];
90720
+ } };
90721
+ }
90722
+ Object.defineProperty(o, k2, desc);
90625
90723
  } : function(o, m, k, k2) {
90626
90724
  if (k2 === void 0)
90627
90725
  k2 = k;
@@ -90712,15 +90810,15 @@ var require_entries = __commonJS({
90712
90810
  exports2.Measurement = exports2.Mark = void 0;
90713
90811
  var types_1 = require_types8();
90714
90812
  var Mark = class {
90813
+ getStartTime() {
90814
+ return this.startTime;
90815
+ }
90715
90816
  constructor(name, type, startTime) {
90716
90817
  this.startTime = startTime;
90717
90818
  this.name = name;
90718
90819
  this.startTime = startTime;
90719
90820
  this.type = type;
90720
90821
  }
90721
- getStartTime() {
90722
- return this.startTime;
90723
- }
90724
90822
  };
90725
90823
  exports2.Mark = Mark;
90726
90824
  var Measurement = class extends Mark {
@@ -90872,7 +90970,7 @@ var require_paramProcessing = __commonJS({
90872
90970
  while (i < pathArr.length) {
90873
90971
  node = node[pathArr[i]];
90874
90972
  if (node === void 0) {
90875
- throw exports2.wrongPathErr(field, paramIndex);
90973
+ throw (0, exports2.wrongPathErr)(field, paramIndex);
90876
90974
  }
90877
90975
  i++;
90878
90976
  }
@@ -90891,7 +90989,7 @@ var require_paramProcessing = __commonJS({
90891
90989
  if (typeof instructions.value === "string") {
90892
90990
  val = instructions.value;
90893
90991
  } else if (instructions.value !== void 0 && instructions.paramIndex !== void 0) {
90894
- val = exports2.getValue(param, instructions.value.path, "val", instructions.paramIndex);
90992
+ val = (0, exports2.getValue)(param, instructions.value.path, "val", instructions.paramIndex);
90895
90993
  } else {
90896
90994
  val = param;
90897
90995
  }
@@ -90909,7 +91007,7 @@ var require_paramProcessing = __commonJS({
90909
91007
  let customMeasurements = {};
90910
91008
  if (Array.isArray(instructions)) {
90911
91009
  for (const instruction of instructions) {
90912
- [processedDimensions, processedMeasurements] = exports2.paramsProcessing(params, instruction);
91010
+ [processedDimensions, processedMeasurements] = (0, exports2.paramsProcessing)(params, instruction);
90913
91011
  customDimensions = {
90914
91012
  ...customDimensions,
90915
91013
  ...processedDimensions
@@ -90920,7 +91018,7 @@ var require_paramProcessing = __commonJS({
90920
91018
  };
90921
91019
  }
90922
91020
  } else {
90923
- [customDimensions, customMeasurements] = exports2.paramsProcessing(params, instructions);
91021
+ [customDimensions, customMeasurements] = (0, exports2.paramsProcessing)(params, instructions);
90924
91022
  }
90925
91023
  return [customDimensions, customMeasurements];
90926
91024
  };
@@ -90984,7 +91082,7 @@ var require_interceptor = __commonJS({
90984
91082
  var captureParam = (target, originalFn, evtName, sampleRate, instructions) => {
90985
91083
  return (...args) => {
90986
91084
  const result2 = originalFn.apply(target, args);
90987
- const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
91085
+ const [customDimensions, customMeasurements] = (0, paramProcessing_1.getParamsData)(args, instructions);
90988
91086
  const appinsightClient = client_1.ClientFactory.getTelemetryClient();
90989
91087
  appinsightClient.report(evtName, customDimensions, customMeasurements, sampleRate);
90990
91088
  return result2;
@@ -90994,7 +91092,7 @@ var require_interceptor = __commonJS({
90994
91092
  var captureParamAsync = (target, originalFn, evtName, sampleRate, instructions) => {
90995
91093
  return async (...args) => {
90996
91094
  const result2 = await originalFn.apply(target, args);
90997
- const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
91095
+ const [customDimensions, customMeasurements] = (0, paramProcessing_1.getParamsData)(args, instructions);
90998
91096
  const appinsightClient = client_1.ClientFactory.getTelemetryClient();
90999
91097
  appinsightClient.report(evtName, customDimensions, customMeasurements, sampleRate);
91000
91098
  return result2;
@@ -91011,9 +91109,13 @@ var require_config4 = __commonJS({
91011
91109
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
91012
91110
  if (k2 === void 0)
91013
91111
  k2 = k;
91014
- Object.defineProperty(o, k2, { enumerable: true, get: function() {
91015
- return m[k];
91016
- } });
91112
+ var desc = Object.getOwnPropertyDescriptor(m, k);
91113
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
91114
+ desc = { enumerable: true, get: function() {
91115
+ return m[k];
91116
+ } };
91117
+ }
91118
+ Object.defineProperty(o, k2, desc);
91017
91119
  } : function(o, m, k, k2) {
91018
91120
  if (k2 === void 0)
91019
91121
  k2 = k;