@itwin/core-i18n 4.4.0-dev.8 → 4.5.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,13 +17,13 @@
17
17
  /** @packageDocumentation
18
18
  * @module Localization
19
19
  */
20
- function cov_13zvjr7880() {
21
- var path = "D:\\vsts_a\\7\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
22
- var hash = "99c513f1c7ebd6162e8989fde604e3503fe2d877";
20
+ function cov_2hg26c749s() {
21
+ var path = "D:\\vsts_b\\100\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
22
+ var hash = "3cd3d374f30c8070a6b41fc952619e027b5e855b";
23
23
  var global = new Function("return this")();
24
24
  var gcv = "__coverage__";
25
25
  var coverageData = {
26
- path: "D:\\vsts_a\\7\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js",
26
+ path: "D:\\vsts_b\\100\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js",
27
27
  statementMap: {
28
28
  "0": {
29
29
  start: {
@@ -2270,13 +2270,13 @@ function cov_13zvjr7880() {
2270
2270
  inputSourceMap: {
2271
2271
  version: 3,
2272
2272
  file: "ITwinLocalization.js",
2273
- sources: ["D:\\vsts_a\\7\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
2273
+ sources: ["D:\\vsts_b\\100\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
2274
2274
  names: [],
2275
2275
  mappings: "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",
2276
2276
  sourcesContent: ["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Localization\n */\n\nimport i18next, { i18n, InitOptions, Module, TOptionsBase } from \"i18next\";\nimport i18nextBrowserLanguageDetector, { DetectorOptions } from \"i18next-browser-languagedetector\";\nimport Backend, { BackendOptions } from \"i18next-http-backend\";\nimport { Logger } from \"@itwin/core-bentley\";\nimport type { Localization } from \"@itwin/core-common\";\n\nconst DEFAULT_MAX_RETRIES: number = 1; // a low number prevents wasted time and potential timeouts when requesting localization files throws an error\n\n/** Options for ITwinLocalization\n * @public\n */\nexport interface LocalizationOptions {\n urlTemplate?: string;\n backendPlugin?: Module;\n detectorPlugin?: Module;\n initOptions?: InitOptions;\n backendHttpOptions?: BackendOptions;\n detectorOptions?: DetectorOptions;\n}\n\n/** Supplies localizations for iTwin.js\n * @note this class uses the [i18next](https://www.i18next.com/) package.\n * @public\n */\nexport class ITwinLocalization implements Localization {\n public i18next: i18n;\n private readonly _initOptions: InitOptions;\n private readonly _backendOptions: BackendOptions;\n private readonly _detectionOptions: DetectorOptions;\n private readonly _namespaces = new Map<string, Promise<void>>();\n\n public constructor(options?: LocalizationOptions) {\n this.i18next = i18next.createInstance();\n\n this._backendOptions = {\n loadPath: options?.urlTemplate ?? \"locales/{{lng}}/{{ns}}.json\",\n crossDomain: true,\n ...options?.backendHttpOptions,\n };\n\n this._detectionOptions = {\n order: [\"querystring\", \"navigator\", \"htmlTag\"],\n lookupQuerystring: \"lng\",\n caches: [],\n ...options?.detectorOptions,\n };\n\n this._initOptions = {\n interpolation: { escapeValue: true },\n fallbackLng: \"en\",\n maxRetries: DEFAULT_MAX_RETRIES,\n backend: this._backendOptions,\n detection: this._detectionOptions,\n ...options?.initOptions,\n };\n\n this.i18next\n .use(options?.detectorPlugin ?? i18nextBrowserLanguageDetector)\n .use(options?.backendPlugin ?? Backend)\n .use(TranslationLogger);\n }\n\n public async initialize(namespaces: string[]): Promise<void> {\n\n // Also consider namespaces passed into constructor\n const initNamespaces: string[] = [this._initOptions.ns || []].flat();\n const combinedNamespaces: Set<string> = new Set([...namespaces, ...initNamespaces]); // without duplicates\n\n const defaultNamespace: string | false | readonly string[] = this._initOptions.defaultNS ?? namespaces[0];\n if (defaultNamespace)\n combinedNamespaces.add(defaultNamespace as string); // Make sure default namespace is in namespaces list\n\n const initOptions: InitOptions = {\n ...this._initOptions,\n defaultNS: defaultNamespace,\n ns: [...combinedNamespaces],\n };\n\n // if in a development environment, set debugging\n if (process.env.NODE_ENV === \"development\")\n initOptions.debug = true;\n\n const initPromise = this.i18next.init(initOptions) as unknown as Promise<void>;\n\n for (const ns of namespaces)\n this._namespaces.set(ns, initPromise);\n\n return initPromise;\n }\n\n /** Replace all instances of `%{key}` within a string with the translations of those keys.\n * For example:\n * ``` ts\n * \"MyKeys\": {\n * \"Key1\": \"First value\",\n * \"Key2\": \"Second value\"\n * }\n * ```\n *\n * ``` ts\n * i18.translateKeys(\"string with %{MyKeys.Key1} followed by %{MyKeys.Key2}!\"\") // returns \"string with First Value followed by Second Value!\"\n * ```\n * @param line The input line, potentially containing %{keys}.\n * @returns The line with all %{keys} translated\n * @public\n */\n public getLocalizedKeys(line: string): string {\n return line.replace(/\\%\\{(.+?)\\}/g, (_match, tag) => this.getLocalizedString(tag));\n }\n\n /** Return the translated value of a key.\n * @param key - the key that matches a property in the JSON localization file.\n * @note The key includes the namespace, which identifies the particular localization file that contains the property,\n * followed by a colon, followed by the property in the JSON file.\n * For example:\n * ``` ts\n * const dataString: string = IModelApp.localization.getLocalizedString(\"iModelJs:BackgroundMap.BingDataAttribution\");\n * ```\n * assigns to dataString the string with property BackgroundMap.BingDataAttribution from the iModelJs.json localization file.\n * @returns The string corresponding to the first key that resolves.\n * @throws Error if no keys resolve to a string.\n * @public\n */\n public getLocalizedString(key: string | string[], options?: TOptionsBase): string {\n if (options?.returnDetails || options?.returnObjects) {\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\n }\n\n const value = this.i18next.t(key, options);\n\n if (typeof value !== \"string\") {\n throw new Error(\"Translation key(s) string not found\");\n }\n\n return value;\n }\n\n /** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need\n * to include a namespace. If a key includes a namespace, that namespace will be used for interpolating that key.\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\n * @param key - the key that matches a property in the JSON localization file.\n * @returns The string corresponding to the first key that resolves.\n * @throws Error if no keys resolve to a string.\n * @internal\n */\n public getLocalizedStringWithNamespace(namespace: string, key: string | string[], options?: TOptionsBase): string {\n let fullKey: string | string[] = \"\";\n\n if (typeof key === \"string\") {\n fullKey = `${namespace}:${key}`;\n } else {\n fullKey = key.map((subKey: string) => {\n return `${namespace}:${subKey}`;\n });\n }\n\n return this.getLocalizedString(fullKey, options);\n }\n\n /** Gets the English translation.\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\n * @param key - the key that matches a property in the JSON localization file.\n * @returns The string corresponding to the first key that resolves.\n * @throws Error if no keys resolve to a string.\n * @internal\n */\n public getEnglishString(namespace: string, key: string | string[], options?: TOptionsBase): string {\n if (options?.returnDetails || options?.returnObjects) {\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\n }\n\n options = {\n ...options,\n ns: namespace, // ensure namespace argument is used\n };\n\n const en = this.i18next.getFixedT(\"en\", namespace);\n const str = en(key, options);\n if (typeof str !== \"string\")\n throw new Error(\"Translation key(s) not found\");\n\n return str;\n }\n\n /** Get the promise for an already registered Namespace.\n * @param name - the name of the namespace\n * @public\n */\n public getNamespacePromise(name: string): Promise<void> | undefined {\n return this._namespaces.get(name);\n }\n\n /** @internal */\n public getLanguageList(): readonly string[] {\n return this.i18next.languages;\n }\n\n /** override the language detected in the browser */\n public async changeLanguage(language: string) {\n return this.i18next.changeLanguage(language) as unknown as Promise<void>;\n }\n\n /** Register a new Namespace and return it. If the namespace is already registered, it will be returned.\n * @param name - the name of the namespace, which is the base name of the JSON file that contains the localization properties.\n * @note - The registerNamespace method starts fetching the appropriate version of the JSON localization file from the server,\n * based on the current locale. To make sure that fetch is complete before performing translations from this namespace, await\n * fulfillment of the readPromise Promise property of the returned LocalizationNamespace.\n * @see [Localization in iTwin.js]($docs/learning/frontend/Localization.md)\n * @public\n */\n public async registerNamespace(name: string): Promise<void> {\n const existing = this._namespaces.get(name);\n if (existing !== undefined)\n return existing;\n\n const theReadPromise = new Promise<void>((resolve) => {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.i18next.loadNamespaces(name, (err) => {\n if (!err)\n return resolve();\n\n // Here we got a non-null err object.\n // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.\n // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.\n // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.\n // There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.\n let locales = this.getLanguageList().map((thisLocale: any) => `/${thisLocale}/`);\n\n try {\n for (const thisError of err) {\n if (typeof thisError === \"string\")\n locales = locales.filter((thisLocale) => !thisError.includes(thisLocale));\n }\n } catch (e) {\n locales = [];\n }\n // if we removed every locale from the array, it wasn't loaded.\n if (locales.length === 0)\n Logger.logError(\"i18n\", `No resources for namespace ${name} could be loaded`);\n\n resolve();\n });\n });\n this._namespaces.set(name, theReadPromise);\n return theReadPromise;\n }\n\n /** @internal */\n public unregisterNamespace(name: string): void {\n this._namespaces.delete(name);\n }\n}\n\nclass TranslationLogger {\n public static readonly type = \"logger\";\n public log(args: string[]) { Logger.logInfo(\"i18n\", this.createLogMessage(args)); }\n public warn(args: string[]) { Logger.logWarning(\"i18n\", this.createLogMessage(args)); }\n public error(args: string[]) { Logger.logError(\"i18n\", this.createLogMessage(args)); }\n private createLogMessage(args: string[]) {\n let message = args[0];\n for (let i = 1; i < args.length; ++i) {\n if (typeof args[i] === \"string\")\n message += `\\n ${args[i]}`;\n }\n return message;\n }\n}\n"]
2277
2277
  },
2278
2278
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
2279
- hash: "99c513f1c7ebd6162e8989fde604e3503fe2d877"
2279
+ hash: "3cd3d374f30c8070a6b41fc952619e027b5e855b"
2280
2280
  };
2281
2281
  var coverage = global[gcv] || (global[gcv] = {});
2282
2282
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -2285,56 +2285,56 @@ function cov_13zvjr7880() {
2285
2285
  var actualCoverage = coverage[path];
2286
2286
  {
2287
2287
  // @ts-ignore
2288
- cov_13zvjr7880 = function () {
2288
+ cov_2hg26c749s = function () {
2289
2289
  return actualCoverage;
2290
2290
  };
2291
2291
  }
2292
2292
  return actualCoverage;
2293
2293
  }
2294
- cov_13zvjr7880();
2295
- var __importDefault = (cov_13zvjr7880().s[0]++, (cov_13zvjr7880().b[0][0]++, this) && (cov_13zvjr7880().b[0][1]++, this.__importDefault) || (cov_13zvjr7880().b[0][2]++, function (mod) {
2296
- cov_13zvjr7880().f[0]++;
2297
- cov_13zvjr7880().s[1]++;
2298
- return (cov_13zvjr7880().b[2][0]++, mod) && (cov_13zvjr7880().b[2][1]++, mod.__esModule) ? (cov_13zvjr7880().b[1][0]++, mod) : (cov_13zvjr7880().b[1][1]++, {
2294
+ cov_2hg26c749s();
2295
+ var __importDefault = (cov_2hg26c749s().s[0]++, (cov_2hg26c749s().b[0][0]++, this) && (cov_2hg26c749s().b[0][1]++, this.__importDefault) || (cov_2hg26c749s().b[0][2]++, function (mod) {
2296
+ cov_2hg26c749s().f[0]++;
2297
+ cov_2hg26c749s().s[1]++;
2298
+ return (cov_2hg26c749s().b[2][0]++, mod) && (cov_2hg26c749s().b[2][1]++, mod.__esModule) ? (cov_2hg26c749s().b[1][0]++, mod) : (cov_2hg26c749s().b[1][1]++, {
2299
2299
  "default": mod
2300
2300
  });
2301
2301
  }));
2302
- cov_13zvjr7880().s[2]++;
2302
+ cov_2hg26c749s().s[2]++;
2303
2303
  Object.defineProperty(exports, "__esModule", ({
2304
2304
  value: true
2305
2305
  }));
2306
- cov_13zvjr7880().s[3]++;
2306
+ cov_2hg26c749s().s[3]++;
2307
2307
  exports.ITwinLocalization = void 0;
2308
- const i18next_1 = (cov_13zvjr7880().s[4]++, __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/cjs/i18next.js")));
2309
- const i18next_browser_languagedetector_1 = (cov_13zvjr7880().s[5]++, __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.2/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js")));
2310
- const i18next_http_backend_1 = (cov_13zvjr7880().s[6]++, __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/index.js")));
2311
- const core_bentley_1 = (cov_13zvjr7880().s[7]++, __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js"));
2312
- const DEFAULT_MAX_RETRIES = (cov_13zvjr7880().s[8]++, 1); // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
2308
+ const i18next_1 = (cov_2hg26c749s().s[4]++, __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/cjs/i18next.js")));
2309
+ const i18next_browser_languagedetector_1 = (cov_2hg26c749s().s[5]++, __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.2/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js")));
2310
+ const i18next_http_backend_1 = (cov_2hg26c749s().s[6]++, __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/index.js")));
2311
+ const core_bentley_1 = (cov_2hg26c749s().s[7]++, __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js"));
2312
+ const DEFAULT_MAX_RETRIES = (cov_2hg26c749s().s[8]++, 1); // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
2313
2313
  /** Supplies localizations for iTwin.js
2314
2314
  * @note this class uses the [i18next](https://www.i18next.com/) package.
2315
2315
  * @public
2316
2316
  */
2317
2317
  class ITwinLocalization {
2318
2318
  constructor(options) {
2319
- cov_13zvjr7880().f[1]++;
2320
- cov_13zvjr7880().s[9]++;
2319
+ cov_2hg26c749s().f[1]++;
2320
+ cov_2hg26c749s().s[9]++;
2321
2321
  this._namespaces = new Map();
2322
- cov_13zvjr7880().s[10]++;
2322
+ cov_2hg26c749s().s[10]++;
2323
2323
  this.i18next = i18next_1.default.createInstance();
2324
- cov_13zvjr7880().s[11]++;
2324
+ cov_2hg26c749s().s[11]++;
2325
2325
  this._backendOptions = {
2326
- loadPath: (cov_13zvjr7880().b[3][0]++, options?.urlTemplate) ?? (cov_13zvjr7880().b[3][1]++, "locales/{{lng}}/{{ns}}.json"),
2326
+ loadPath: (cov_2hg26c749s().b[3][0]++, options?.urlTemplate) ?? (cov_2hg26c749s().b[3][1]++, "locales/{{lng}}/{{ns}}.json"),
2327
2327
  crossDomain: true,
2328
2328
  ...options?.backendHttpOptions
2329
2329
  };
2330
- cov_13zvjr7880().s[12]++;
2330
+ cov_2hg26c749s().s[12]++;
2331
2331
  this._detectionOptions = {
2332
2332
  order: ["querystring", "navigator", "htmlTag"],
2333
2333
  lookupQuerystring: "lng",
2334
2334
  caches: [],
2335
2335
  ...options?.detectorOptions
2336
2336
  };
2337
- cov_13zvjr7880().s[13]++;
2337
+ cov_2hg26c749s().s[13]++;
2338
2338
  this._initOptions = {
2339
2339
  interpolation: {
2340
2340
  escapeValue: true
@@ -2345,40 +2345,40 @@ class ITwinLocalization {
2345
2345
  detection: this._detectionOptions,
2346
2346
  ...options?.initOptions
2347
2347
  };
2348
- cov_13zvjr7880().s[14]++;
2349
- this.i18next.use((cov_13zvjr7880().b[4][0]++, options?.detectorPlugin) ?? (cov_13zvjr7880().b[4][1]++, i18next_browser_languagedetector_1.default)).use((cov_13zvjr7880().b[5][0]++, options?.backendPlugin) ?? (cov_13zvjr7880().b[5][1]++, i18next_http_backend_1.default)).use(TranslationLogger);
2348
+ cov_2hg26c749s().s[14]++;
2349
+ this.i18next.use((cov_2hg26c749s().b[4][0]++, options?.detectorPlugin) ?? (cov_2hg26c749s().b[4][1]++, i18next_browser_languagedetector_1.default)).use((cov_2hg26c749s().b[5][0]++, options?.backendPlugin) ?? (cov_2hg26c749s().b[5][1]++, i18next_http_backend_1.default)).use(TranslationLogger);
2350
2350
  }
2351
2351
  async initialize(namespaces) {
2352
- cov_13zvjr7880().f[2]++;
2352
+ cov_2hg26c749s().f[2]++;
2353
2353
  // Also consider namespaces passed into constructor
2354
- const initNamespaces = (cov_13zvjr7880().s[15]++, [(cov_13zvjr7880().b[6][0]++, this._initOptions.ns) || (cov_13zvjr7880().b[6][1]++, [])].flat());
2355
- const combinedNamespaces = (cov_13zvjr7880().s[16]++, new Set([...namespaces, ...initNamespaces])); // without duplicates
2356
- const defaultNamespace = (cov_13zvjr7880().s[17]++, (cov_13zvjr7880().b[7][0]++, this._initOptions.defaultNS) ?? (cov_13zvjr7880().b[7][1]++, namespaces[0]));
2357
- cov_13zvjr7880().s[18]++;
2354
+ const initNamespaces = (cov_2hg26c749s().s[15]++, [(cov_2hg26c749s().b[6][0]++, this._initOptions.ns) || (cov_2hg26c749s().b[6][1]++, [])].flat());
2355
+ const combinedNamespaces = (cov_2hg26c749s().s[16]++, new Set([...namespaces, ...initNamespaces])); // without duplicates
2356
+ const defaultNamespace = (cov_2hg26c749s().s[17]++, (cov_2hg26c749s().b[7][0]++, this._initOptions.defaultNS) ?? (cov_2hg26c749s().b[7][1]++, namespaces[0]));
2357
+ cov_2hg26c749s().s[18]++;
2358
2358
  if (defaultNamespace) {
2359
- cov_13zvjr7880().b[8][0]++;
2360
- cov_13zvjr7880().s[19]++;
2359
+ cov_2hg26c749s().b[8][0]++;
2360
+ cov_2hg26c749s().s[19]++;
2361
2361
  combinedNamespaces.add(defaultNamespace);
2362
2362
  } else {
2363
- cov_13zvjr7880().b[8][1]++;
2363
+ cov_2hg26c749s().b[8][1]++;
2364
2364
  } // Make sure default namespace is in namespaces list
2365
- const initOptions = (cov_13zvjr7880().s[20]++, {
2365
+ const initOptions = (cov_2hg26c749s().s[20]++, {
2366
2366
  ...this._initOptions,
2367
2367
  defaultNS: defaultNamespace,
2368
2368
  ns: [...combinedNamespaces]
2369
2369
  });
2370
2370
  // if in a development environment, set debugging
2371
- cov_13zvjr7880().s[21]++;
2371
+ cov_2hg26c749s().s[21]++;
2372
2372
  if (false) {} else {
2373
- cov_13zvjr7880().b[9][1]++;
2373
+ cov_2hg26c749s().b[9][1]++;
2374
2374
  }
2375
- const initPromise = (cov_13zvjr7880().s[23]++, this.i18next.init(initOptions));
2376
- cov_13zvjr7880().s[24]++;
2375
+ const initPromise = (cov_2hg26c749s().s[23]++, this.i18next.init(initOptions));
2376
+ cov_2hg26c749s().s[24]++;
2377
2377
  for (const ns of namespaces) {
2378
- cov_13zvjr7880().s[25]++;
2378
+ cov_2hg26c749s().s[25]++;
2379
2379
  this._namespaces.set(ns, initPromise);
2380
2380
  }
2381
- cov_13zvjr7880().s[26]++;
2381
+ cov_2hg26c749s().s[26]++;
2382
2382
  return initPromise;
2383
2383
  }
2384
2384
  /** Replace all instances of `%{key}` within a string with the translations of those keys.
@@ -2398,11 +2398,11 @@ class ITwinLocalization {
2398
2398
  * @public
2399
2399
  */
2400
2400
  getLocalizedKeys(line) {
2401
- cov_13zvjr7880().f[3]++;
2402
- cov_13zvjr7880().s[27]++;
2401
+ cov_2hg26c749s().f[3]++;
2402
+ cov_2hg26c749s().s[27]++;
2403
2403
  return line.replace(/\%\{(.+?)\}/g, (_match, tag) => {
2404
- cov_13zvjr7880().f[4]++;
2405
- cov_13zvjr7880().s[28]++;
2404
+ cov_2hg26c749s().f[4]++;
2405
+ cov_2hg26c749s().s[28]++;
2406
2406
  return this.getLocalizedString(tag);
2407
2407
  });
2408
2408
  }
@@ -2420,25 +2420,25 @@ class ITwinLocalization {
2420
2420
  * @public
2421
2421
  */
2422
2422
  getLocalizedString(key, options) {
2423
- cov_13zvjr7880().f[5]++;
2424
- cov_13zvjr7880().s[29]++;
2425
- if ((cov_13zvjr7880().b[11][0]++, options?.returnDetails) || (cov_13zvjr7880().b[11][1]++, options?.returnObjects)) {
2426
- cov_13zvjr7880().b[10][0]++;
2427
- cov_13zvjr7880().s[30]++;
2423
+ cov_2hg26c749s().f[5]++;
2424
+ cov_2hg26c749s().s[29]++;
2425
+ if ((cov_2hg26c749s().b[11][0]++, options?.returnDetails) || (cov_2hg26c749s().b[11][1]++, options?.returnObjects)) {
2426
+ cov_2hg26c749s().b[10][0]++;
2427
+ cov_2hg26c749s().s[30]++;
2428
2428
  throw new Error("Translation key must map to a string, but the given options will result in an object");
2429
2429
  } else {
2430
- cov_13zvjr7880().b[10][1]++;
2430
+ cov_2hg26c749s().b[10][1]++;
2431
2431
  }
2432
- const value = (cov_13zvjr7880().s[31]++, this.i18next.t(key, options));
2433
- cov_13zvjr7880().s[32]++;
2432
+ const value = (cov_2hg26c749s().s[31]++, this.i18next.t(key, options));
2433
+ cov_2hg26c749s().s[32]++;
2434
2434
  if (typeof value !== "string") {
2435
- cov_13zvjr7880().b[12][0]++;
2436
- cov_13zvjr7880().s[33]++;
2435
+ cov_2hg26c749s().b[12][0]++;
2436
+ cov_2hg26c749s().s[33]++;
2437
2437
  throw new Error("Translation key(s) string not found");
2438
2438
  } else {
2439
- cov_13zvjr7880().b[12][1]++;
2439
+ cov_2hg26c749s().b[12][1]++;
2440
2440
  }
2441
- cov_13zvjr7880().s[34]++;
2441
+ cov_2hg26c749s().s[34]++;
2442
2442
  return value;
2443
2443
  }
2444
2444
  /** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need
@@ -2450,23 +2450,23 @@ class ITwinLocalization {
2450
2450
  * @internal
2451
2451
  */
2452
2452
  getLocalizedStringWithNamespace(namespace, key, options) {
2453
- cov_13zvjr7880().f[6]++;
2454
- let fullKey = (cov_13zvjr7880().s[35]++, "");
2455
- cov_13zvjr7880().s[36]++;
2453
+ cov_2hg26c749s().f[6]++;
2454
+ let fullKey = (cov_2hg26c749s().s[35]++, "");
2455
+ cov_2hg26c749s().s[36]++;
2456
2456
  if (typeof key === "string") {
2457
- cov_13zvjr7880().b[13][0]++;
2458
- cov_13zvjr7880().s[37]++;
2457
+ cov_2hg26c749s().b[13][0]++;
2458
+ cov_2hg26c749s().s[37]++;
2459
2459
  fullKey = `${namespace}:${key}`;
2460
2460
  } else {
2461
- cov_13zvjr7880().b[13][1]++;
2462
- cov_13zvjr7880().s[38]++;
2461
+ cov_2hg26c749s().b[13][1]++;
2462
+ cov_2hg26c749s().s[38]++;
2463
2463
  fullKey = key.map(subKey => {
2464
- cov_13zvjr7880().f[7]++;
2465
- cov_13zvjr7880().s[39]++;
2464
+ cov_2hg26c749s().f[7]++;
2465
+ cov_2hg26c749s().s[39]++;
2466
2466
  return `${namespace}:${subKey}`;
2467
2467
  });
2468
2468
  }
2469
- cov_13zvjr7880().s[40]++;
2469
+ cov_2hg26c749s().s[40]++;
2470
2470
  return this.getLocalizedString(fullKey, options);
2471
2471
  }
2472
2472
  /** Gets the English translation.
@@ -2477,32 +2477,31 @@ class ITwinLocalization {
2477
2477
  * @internal
2478
2478
  */
2479
2479
  getEnglishString(namespace, key, options) {
2480
- cov_13zvjr7880().f[8]++;
2481
- cov_13zvjr7880().s[41]++;
2482
- if ((cov_13zvjr7880().b[15][0]++, options?.returnDetails) || (cov_13zvjr7880().b[15][1]++, options?.returnObjects)) {
2483
- cov_13zvjr7880().b[14][0]++;
2484
- cov_13zvjr7880().s[42]++;
2480
+ cov_2hg26c749s().f[8]++;
2481
+ cov_2hg26c749s().s[41]++;
2482
+ if ((cov_2hg26c749s().b[15][0]++, options?.returnDetails) || (cov_2hg26c749s().b[15][1]++, options?.returnObjects)) {
2483
+ cov_2hg26c749s().b[14][0]++;
2484
+ cov_2hg26c749s().s[42]++;
2485
2485
  throw new Error("Translation key must map to a string, but the given options will result in an object");
2486
2486
  } else {
2487
- cov_13zvjr7880().b[14][1]++;
2487
+ cov_2hg26c749s().b[14][1]++;
2488
2488
  }
2489
- cov_13zvjr7880().s[43]++;
2489
+ cov_2hg26c749s().s[43]++;
2490
2490
  options = {
2491
2491
  ...options,
2492
2492
  ns: namespace // ensure namespace argument is used
2493
2493
  };
2494
-
2495
- const en = (cov_13zvjr7880().s[44]++, this.i18next.getFixedT("en", namespace));
2496
- const str = (cov_13zvjr7880().s[45]++, en(key, options));
2497
- cov_13zvjr7880().s[46]++;
2494
+ const en = (cov_2hg26c749s().s[44]++, this.i18next.getFixedT("en", namespace));
2495
+ const str = (cov_2hg26c749s().s[45]++, en(key, options));
2496
+ cov_2hg26c749s().s[46]++;
2498
2497
  if (typeof str !== "string") {
2499
- cov_13zvjr7880().b[16][0]++;
2500
- cov_13zvjr7880().s[47]++;
2498
+ cov_2hg26c749s().b[16][0]++;
2499
+ cov_2hg26c749s().s[47]++;
2501
2500
  throw new Error("Translation key(s) not found");
2502
2501
  } else {
2503
- cov_13zvjr7880().b[16][1]++;
2502
+ cov_2hg26c749s().b[16][1]++;
2504
2503
  }
2505
- cov_13zvjr7880().s[48]++;
2504
+ cov_2hg26c749s().s[48]++;
2506
2505
  return str;
2507
2506
  }
2508
2507
  /** Get the promise for an already registered Namespace.
@@ -2510,20 +2509,20 @@ class ITwinLocalization {
2510
2509
  * @public
2511
2510
  */
2512
2511
  getNamespacePromise(name) {
2513
- cov_13zvjr7880().f[9]++;
2514
- cov_13zvjr7880().s[49]++;
2512
+ cov_2hg26c749s().f[9]++;
2513
+ cov_2hg26c749s().s[49]++;
2515
2514
  return this._namespaces.get(name);
2516
2515
  }
2517
2516
  /** @internal */
2518
2517
  getLanguageList() {
2519
- cov_13zvjr7880().f[10]++;
2520
- cov_13zvjr7880().s[50]++;
2518
+ cov_2hg26c749s().f[10]++;
2519
+ cov_2hg26c749s().s[50]++;
2521
2520
  return this.i18next.languages;
2522
2521
  }
2523
2522
  /** override the language detected in the browser */
2524
2523
  async changeLanguage(language) {
2525
- cov_13zvjr7880().f[11]++;
2526
- cov_13zvjr7880().s[51]++;
2524
+ cov_2hg26c749s().f[11]++;
2525
+ cov_2hg26c749s().s[51]++;
2527
2526
  return this.i18next.changeLanguage(language);
2528
2527
  }
2529
2528
  /** Register a new Namespace and return it. If the namespace is already registered, it will be returned.
@@ -2535,123 +2534,123 @@ class ITwinLocalization {
2535
2534
  * @public
2536
2535
  */
2537
2536
  async registerNamespace(name) {
2538
- cov_13zvjr7880().f[12]++;
2539
- const existing = (cov_13zvjr7880().s[52]++, this._namespaces.get(name));
2540
- cov_13zvjr7880().s[53]++;
2537
+ cov_2hg26c749s().f[12]++;
2538
+ const existing = (cov_2hg26c749s().s[52]++, this._namespaces.get(name));
2539
+ cov_2hg26c749s().s[53]++;
2541
2540
  if (existing !== undefined) {
2542
- cov_13zvjr7880().b[17][0]++;
2543
- cov_13zvjr7880().s[54]++;
2541
+ cov_2hg26c749s().b[17][0]++;
2542
+ cov_2hg26c749s().s[54]++;
2544
2543
  return existing;
2545
2544
  } else {
2546
- cov_13zvjr7880().b[17][1]++;
2545
+ cov_2hg26c749s().b[17][1]++;
2547
2546
  }
2548
- const theReadPromise = (cov_13zvjr7880().s[55]++, new Promise(resolve => {
2549
- cov_13zvjr7880().f[13]++;
2550
- cov_13zvjr7880().s[56]++;
2547
+ const theReadPromise = (cov_2hg26c749s().s[55]++, new Promise(resolve => {
2548
+ cov_2hg26c749s().f[13]++;
2549
+ cov_2hg26c749s().s[56]++;
2551
2550
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
2552
2551
  this.i18next.loadNamespaces(name, err => {
2553
- cov_13zvjr7880().f[14]++;
2554
- cov_13zvjr7880().s[57]++;
2552
+ cov_2hg26c749s().f[14]++;
2553
+ cov_2hg26c749s().s[57]++;
2555
2554
  if (!err) {
2556
- cov_13zvjr7880().b[18][0]++;
2557
- cov_13zvjr7880().s[58]++;
2555
+ cov_2hg26c749s().b[18][0]++;
2556
+ cov_2hg26c749s().s[58]++;
2558
2557
  return resolve();
2559
2558
  } else {
2560
- cov_13zvjr7880().b[18][1]++;
2559
+ cov_2hg26c749s().b[18][1]++;
2561
2560
  }
2562
2561
  // Here we got a non-null err object.
2563
2562
  // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
2564
2563
  // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
2565
2564
  // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
2566
2565
  // There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.
2567
- let locales = (cov_13zvjr7880().s[59]++, this.getLanguageList().map(thisLocale => {
2568
- cov_13zvjr7880().f[15]++;
2569
- cov_13zvjr7880().s[60]++;
2566
+ let locales = (cov_2hg26c749s().s[59]++, this.getLanguageList().map(thisLocale => {
2567
+ cov_2hg26c749s().f[15]++;
2568
+ cov_2hg26c749s().s[60]++;
2570
2569
  return `/${thisLocale}/`;
2571
2570
  }));
2572
- cov_13zvjr7880().s[61]++;
2571
+ cov_2hg26c749s().s[61]++;
2573
2572
  try {
2574
- cov_13zvjr7880().s[62]++;
2573
+ cov_2hg26c749s().s[62]++;
2575
2574
  for (const thisError of err) {
2576
- cov_13zvjr7880().s[63]++;
2575
+ cov_2hg26c749s().s[63]++;
2577
2576
  if (typeof thisError === "string") {
2578
- cov_13zvjr7880().b[19][0]++;
2579
- cov_13zvjr7880().s[64]++;
2577
+ cov_2hg26c749s().b[19][0]++;
2578
+ cov_2hg26c749s().s[64]++;
2580
2579
  locales = locales.filter(thisLocale => {
2581
- cov_13zvjr7880().f[16]++;
2582
- cov_13zvjr7880().s[65]++;
2580
+ cov_2hg26c749s().f[16]++;
2581
+ cov_2hg26c749s().s[65]++;
2583
2582
  return !thisError.includes(thisLocale);
2584
2583
  });
2585
2584
  } else {
2586
- cov_13zvjr7880().b[19][1]++;
2585
+ cov_2hg26c749s().b[19][1]++;
2587
2586
  }
2588
2587
  }
2589
2588
  } catch (e) {
2590
- cov_13zvjr7880().s[66]++;
2589
+ cov_2hg26c749s().s[66]++;
2591
2590
  locales = [];
2592
2591
  }
2593
2592
  // if we removed every locale from the array, it wasn't loaded.
2594
- cov_13zvjr7880().s[67]++;
2593
+ cov_2hg26c749s().s[67]++;
2595
2594
  if (locales.length === 0) {
2596
- cov_13zvjr7880().b[20][0]++;
2597
- cov_13zvjr7880().s[68]++;
2595
+ cov_2hg26c749s().b[20][0]++;
2596
+ cov_2hg26c749s().s[68]++;
2598
2597
  core_bentley_1.Logger.logError("i18n", `No resources for namespace ${name} could be loaded`);
2599
2598
  } else {
2600
- cov_13zvjr7880().b[20][1]++;
2599
+ cov_2hg26c749s().b[20][1]++;
2601
2600
  }
2602
- cov_13zvjr7880().s[69]++;
2601
+ cov_2hg26c749s().s[69]++;
2603
2602
  resolve();
2604
2603
  });
2605
2604
  }));
2606
- cov_13zvjr7880().s[70]++;
2605
+ cov_2hg26c749s().s[70]++;
2607
2606
  this._namespaces.set(name, theReadPromise);
2608
- cov_13zvjr7880().s[71]++;
2607
+ cov_2hg26c749s().s[71]++;
2609
2608
  return theReadPromise;
2610
2609
  }
2611
2610
  /** @internal */
2612
2611
  unregisterNamespace(name) {
2613
- cov_13zvjr7880().f[17]++;
2614
- cov_13zvjr7880().s[72]++;
2612
+ cov_2hg26c749s().f[17]++;
2613
+ cov_2hg26c749s().s[72]++;
2615
2614
  this._namespaces.delete(name);
2616
2615
  }
2617
2616
  }
2618
- cov_13zvjr7880().s[73]++;
2617
+ cov_2hg26c749s().s[73]++;
2619
2618
  exports.ITwinLocalization = ITwinLocalization;
2620
2619
  class TranslationLogger {
2621
2620
  log(args) {
2622
- cov_13zvjr7880().f[18]++;
2623
- cov_13zvjr7880().s[74]++;
2621
+ cov_2hg26c749s().f[18]++;
2622
+ cov_2hg26c749s().s[74]++;
2624
2623
  core_bentley_1.Logger.logInfo("i18n", this.createLogMessage(args));
2625
2624
  }
2626
2625
  warn(args) {
2627
- cov_13zvjr7880().f[19]++;
2628
- cov_13zvjr7880().s[75]++;
2626
+ cov_2hg26c749s().f[19]++;
2627
+ cov_2hg26c749s().s[75]++;
2629
2628
  core_bentley_1.Logger.logWarning("i18n", this.createLogMessage(args));
2630
2629
  }
2631
2630
  error(args) {
2632
- cov_13zvjr7880().f[20]++;
2633
- cov_13zvjr7880().s[76]++;
2631
+ cov_2hg26c749s().f[20]++;
2632
+ cov_2hg26c749s().s[76]++;
2634
2633
  core_bentley_1.Logger.logError("i18n", this.createLogMessage(args));
2635
2634
  }
2636
2635
  createLogMessage(args) {
2637
- cov_13zvjr7880().f[21]++;
2638
- let message = (cov_13zvjr7880().s[77]++, args[0]);
2639
- cov_13zvjr7880().s[78]++;
2640
- for (let i = (cov_13zvjr7880().s[79]++, 1); i < args.length; ++i) {
2641
- cov_13zvjr7880().s[80]++;
2636
+ cov_2hg26c749s().f[21]++;
2637
+ let message = (cov_2hg26c749s().s[77]++, args[0]);
2638
+ cov_2hg26c749s().s[78]++;
2639
+ for (let i = (cov_2hg26c749s().s[79]++, 1); i < args.length; ++i) {
2640
+ cov_2hg26c749s().s[80]++;
2642
2641
  if (typeof args[i] === "string") {
2643
- cov_13zvjr7880().b[21][0]++;
2644
- cov_13zvjr7880().s[81]++;
2642
+ cov_2hg26c749s().b[21][0]++;
2643
+ cov_2hg26c749s().s[81]++;
2645
2644
  message += `\n ${args[i]}`;
2646
2645
  } else {
2647
- cov_13zvjr7880().b[21][1]++;
2646
+ cov_2hg26c749s().b[21][1]++;
2648
2647
  }
2649
2648
  }
2650
- cov_13zvjr7880().s[82]++;
2649
+ cov_2hg26c749s().s[82]++;
2651
2650
  return message;
2652
2651
  }
2653
2652
  }
2654
- cov_13zvjr7880().s[83]++;
2653
+ cov_2hg26c749s().s[83]++;
2655
2654
  TranslationLogger.type = "logger";
2656
2655
 
2657
2656
  /***/ }),
@@ -13465,8 +13464,8 @@ __webpack_require__.r(__webpack_exports__);
13465
13464
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13466
13465
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
13467
13466
  /* harmony export */ });
13468
- /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
13469
- /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/createClass.js");
13467
+ /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
13468
+ /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/createClass.js");
13470
13469
 
13471
13470
 
13472
13471
 
@@ -13894,15 +13893,15 @@ Browser.type = 'languageDetector';
13894
13893
  "use strict";
13895
13894
 
13896
13895
 
13897
- var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/typeof.js");
13898
- var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/classCallCheck.js");
13899
- var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/createClass.js");
13900
- var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
13901
- var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/inherits.js");
13902
- var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
13903
- var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
13904
- var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/defineProperty.js");
13905
- var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/toArray.js");
13896
+ var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/typeof.js");
13897
+ var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/classCallCheck.js");
13898
+ var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/createClass.js");
13899
+ var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
13900
+ var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/inherits.js");
13901
+ var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
13902
+ var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
13903
+ var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/defineProperty.js");
13904
+ var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toArray.js");
13906
13905
 
13907
13906
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13908
13907
 
@@ -24032,6 +24031,7 @@ __webpack_require__.r(__webpack_exports__);
24032
24031
  /**
24033
24032
  * Mirrors the SpanKind enum from [@opentelemetry/api](https://open-telemetry.github.io/opentelemetry-js/enums/_opentelemetry_api.SpanKind.html)
24034
24033
  * @public
24034
+ * @deprecated in 4.4 - OpenTelemetry Tracing helpers will become internal in a future release. Apps should use `@opentelemetry/api` directly.
24035
24035
  */
24036
24036
  var SpanKind;
24037
24037
  (function (SpanKind) {
@@ -24087,9 +24087,11 @@ function* getFlatEntries(obj, path = "") {
24087
24087
  function flattenObject(obj) {
24088
24088
  return Object.fromEntries(getFlatEntries(obj));
24089
24089
  }
24090
+ /* eslint-disable deprecation/deprecation -- lots of self-references here... */
24090
24091
  /**
24091
24092
  * Enables OpenTelemetry tracing in addition to traditional logging.
24092
24093
  * @public
24094
+ * @deprecated in 4.4 - OpenTelemetry Tracing helpers will become internal in a future release. Apps should use `@opentelemetry/api` directly.
24093
24095
  */
24094
24096
  class Tracing {
24095
24097
  /**
@@ -24121,6 +24123,14 @@ class Tracing {
24121
24123
  }
24122
24124
  });
24123
24125
  }
24126
+ /**
24127
+ * Adds a span event describing a runtime exception, as advised in OpenTelemetry documentation
24128
+ * @param e error (exception) object
24129
+ * @internal
24130
+ */
24131
+ static recordException(e) {
24132
+ Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.recordException(e);
24133
+ }
24124
24134
  /**
24125
24135
  * Enable logging to OpenTelemetry. [[Tracing.withSpan]] will be enabled, all log entries will be attached to active span as span events.
24126
24136
  * [IModelHost.startup]($backend) will call this automatically if the `enableOpenTelemetry` option is enabled and it succeeds in requiring `@opentelemetry/api`.
@@ -24170,6 +24180,7 @@ class Tracing {
24170
24180
  Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.setAttributes(attributes);
24171
24181
  }
24172
24182
  }
24183
+ /* eslint-enable deprecation/deprecation */
24173
24184
 
24174
24185
 
24175
24186
  /***/ }),
@@ -24970,9 +24981,9 @@ function partitionArray(array, criterion) {
24970
24981
 
24971
24982
  /***/ }),
24972
24983
 
24973
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
24984
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
24974
24985
  /*!**************************************************************************************************************************!*\
24975
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
24986
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
24976
24987
  \**************************************************************************************************************************/
24977
24988
  /***/ ((module) => {
24978
24989
 
@@ -24985,9 +24996,9 @@ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exp
24985
24996
 
24986
24997
  /***/ }),
24987
24998
 
24988
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
24999
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
24989
25000
  /*!************************************************************************************************************************!*\
24990
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
25001
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
24991
25002
  \************************************************************************************************************************/
24992
25003
  /***/ ((module) => {
24993
25004
 
@@ -24998,9 +25009,9 @@ module.exports = _arrayWithHoles, module.exports.__esModule = true, module.expor
24998
25009
 
24999
25010
  /***/ }),
25000
25011
 
25001
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
25012
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
25002
25013
  /*!*******************************************************************************************************************************!*\
25003
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
25014
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
25004
25015
  \*******************************************************************************************************************************/
25005
25016
  /***/ ((module) => {
25006
25017
 
@@ -25014,9 +25025,9 @@ module.exports = _assertThisInitialized, module.exports.__esModule = true, modul
25014
25025
 
25015
25026
  /***/ }),
25016
25027
 
25017
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/classCallCheck.js":
25028
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/classCallCheck.js":
25018
25029
  /*!************************************************************************************************************************!*\
25019
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
25030
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
25020
25031
  \************************************************************************************************************************/
25021
25032
  /***/ ((module) => {
25022
25033
 
@@ -25029,13 +25040,13 @@ module.exports = _classCallCheck, module.exports.__esModule = true, module.expor
25029
25040
 
25030
25041
  /***/ }),
25031
25042
 
25032
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/createClass.js":
25043
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/createClass.js":
25033
25044
  /*!*********************************************************************************************************************!*\
25034
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/createClass.js ***!
25045
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/createClass.js ***!
25035
25046
  \*********************************************************************************************************************/
25036
25047
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25037
25048
 
25038
- var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/toPropertyKey.js");
25049
+ var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPropertyKey.js");
25039
25050
  function _defineProperties(target, props) {
25040
25051
  for (var i = 0; i < props.length; i++) {
25041
25052
  var descriptor = props[i];
@@ -25057,13 +25068,13 @@ module.exports = _createClass, module.exports.__esModule = true, module.exports[
25057
25068
 
25058
25069
  /***/ }),
25059
25070
 
25060
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/defineProperty.js":
25071
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/defineProperty.js":
25061
25072
  /*!************************************************************************************************************************!*\
25062
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/defineProperty.js ***!
25073
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/defineProperty.js ***!
25063
25074
  \************************************************************************************************************************/
25064
25075
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25065
25076
 
25066
- var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/toPropertyKey.js");
25077
+ var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPropertyKey.js");
25067
25078
  function _defineProperty(obj, key, value) {
25068
25079
  key = toPropertyKey(key);
25069
25080
  if (key in obj) {
@@ -25082,9 +25093,9 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
25082
25093
 
25083
25094
  /***/ }),
25084
25095
 
25085
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
25096
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
25086
25097
  /*!************************************************************************************************************************!*\
25087
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
25098
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
25088
25099
  \************************************************************************************************************************/
25089
25100
  /***/ ((module) => {
25090
25101
 
@@ -25098,13 +25109,13 @@ module.exports = _getPrototypeOf, module.exports.__esModule = true, module.expor
25098
25109
 
25099
25110
  /***/ }),
25100
25111
 
25101
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/inherits.js":
25112
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/inherits.js":
25102
25113
  /*!******************************************************************************************************************!*\
25103
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/inherits.js ***!
25114
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/inherits.js ***!
25104
25115
  \******************************************************************************************************************/
25105
25116
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25106
25117
 
25107
- var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
25118
+ var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
25108
25119
  function _inherits(subClass, superClass) {
25109
25120
  if (typeof superClass !== "function" && superClass !== null) {
25110
25121
  throw new TypeError("Super expression must either be null or a function");
@@ -25125,9 +25136,9 @@ module.exports = _inherits, module.exports.__esModule = true, module.exports["de
25125
25136
 
25126
25137
  /***/ }),
25127
25138
 
25128
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/iterableToArray.js":
25139
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/iterableToArray.js":
25129
25140
  /*!*************************************************************************************************************************!*\
25130
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
25141
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
25131
25142
  \*************************************************************************************************************************/
25132
25143
  /***/ ((module) => {
25133
25144
 
@@ -25138,9 +25149,9 @@ module.exports = _iterableToArray, module.exports.__esModule = true, module.expo
25138
25149
 
25139
25150
  /***/ }),
25140
25151
 
25141
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/nonIterableRest.js":
25152
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/nonIterableRest.js":
25142
25153
  /*!*************************************************************************************************************************!*\
25143
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
25154
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
25144
25155
  \*************************************************************************************************************************/
25145
25156
  /***/ ((module) => {
25146
25157
 
@@ -25151,14 +25162,14 @@ module.exports = _nonIterableRest, module.exports.__esModule = true, module.expo
25151
25162
 
25152
25163
  /***/ }),
25153
25164
 
25154
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
25165
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
25155
25166
  /*!***********************************************************************************************************************************!*\
25156
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
25167
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
25157
25168
  \***********************************************************************************************************************************/
25158
25169
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25159
25170
 
25160
- var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
25161
- var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
25171
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
25172
+ var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
25162
25173
  function _possibleConstructorReturn(self, call) {
25163
25174
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
25164
25175
  return call;
@@ -25171,9 +25182,9 @@ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, m
25171
25182
 
25172
25183
  /***/ }),
25173
25184
 
25174
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
25185
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
25175
25186
  /*!************************************************************************************************************************!*\
25176
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
25187
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
25177
25188
  \************************************************************************************************************************/
25178
25189
  /***/ ((module) => {
25179
25190
 
@@ -25188,16 +25199,16 @@ module.exports = _setPrototypeOf, module.exports.__esModule = true, module.expor
25188
25199
 
25189
25200
  /***/ }),
25190
25201
 
25191
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/toArray.js":
25202
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toArray.js":
25192
25203
  /*!*****************************************************************************************************************!*\
25193
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/toArray.js ***!
25204
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toArray.js ***!
25194
25205
  \*****************************************************************************************************************/
25195
25206
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25196
25207
 
25197
- var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
25198
- var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/iterableToArray.js");
25199
- var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
25200
- var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/nonIterableRest.js");
25208
+ var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
25209
+ var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/iterableToArray.js");
25210
+ var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
25211
+ var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/nonIterableRest.js");
25201
25212
  function _toArray(arr) {
25202
25213
  return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
25203
25214
  }
@@ -25205,46 +25216,46 @@ module.exports = _toArray, module.exports.__esModule = true, module.exports["def
25205
25216
 
25206
25217
  /***/ }),
25207
25218
 
25208
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/toPrimitive.js":
25219
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPrimitive.js":
25209
25220
  /*!*********************************************************************************************************************!*\
25210
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/toPrimitive.js ***!
25221
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPrimitive.js ***!
25211
25222
  \*********************************************************************************************************************/
25212
25223
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25213
25224
 
25214
- var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
25215
- function _toPrimitive(input, hint) {
25216
- if (_typeof(input) !== "object" || input === null) return input;
25217
- var prim = input[Symbol.toPrimitive];
25218
- if (prim !== undefined) {
25219
- var res = prim.call(input, hint || "default");
25220
- if (_typeof(res) !== "object") return res;
25225
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
25226
+ function toPrimitive(t, r) {
25227
+ if ("object" != _typeof(t) || !t) return t;
25228
+ var e = t[Symbol.toPrimitive];
25229
+ if (void 0 !== e) {
25230
+ var i = e.call(t, r || "default");
25231
+ if ("object" != _typeof(i)) return i;
25221
25232
  throw new TypeError("@@toPrimitive must return a primitive value.");
25222
25233
  }
25223
- return (hint === "string" ? String : Number)(input);
25234
+ return ("string" === r ? String : Number)(t);
25224
25235
  }
25225
- module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
25236
+ module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
25226
25237
 
25227
25238
  /***/ }),
25228
25239
 
25229
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/toPropertyKey.js":
25240
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPropertyKey.js":
25230
25241
  /*!***********************************************************************************************************************!*\
25231
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
25242
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
25232
25243
  \***********************************************************************************************************************/
25233
25244
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25234
25245
 
25235
- var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
25236
- var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/toPrimitive.js");
25237
- function _toPropertyKey(arg) {
25238
- var key = toPrimitive(arg, "string");
25239
- return _typeof(key) === "symbol" ? key : String(key);
25246
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
25247
+ var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/toPrimitive.js");
25248
+ function toPropertyKey(t) {
25249
+ var i = toPrimitive(t, "string");
25250
+ return "symbol" == _typeof(i) ? i : String(i);
25240
25251
  }
25241
- module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
25252
+ module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
25242
25253
 
25243
25254
  /***/ }),
25244
25255
 
25245
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/typeof.js":
25256
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/typeof.js":
25246
25257
  /*!****************************************************************************************************************!*\
25247
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/typeof.js ***!
25258
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/typeof.js ***!
25248
25259
  \****************************************************************************************************************/
25249
25260
  /***/ ((module) => {
25250
25261
 
@@ -25261,13 +25272,13 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
25261
25272
 
25262
25273
  /***/ }),
25263
25274
 
25264
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
25275
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
25265
25276
  /*!************************************************************************************************************************************!*\
25266
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
25277
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
25267
25278
  \************************************************************************************************************************************/
25268
25279
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25269
25280
 
25270
- var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
25281
+ var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
25271
25282
  function _unsupportedIterableToArray(o, minLen) {
25272
25283
  if (!o) return;
25273
25284
  if (typeof o === "string") return arrayLikeToArray(o, minLen);
@@ -25787,9 +25798,9 @@ function makePromise(maybePromise) {
25787
25798
 
25788
25799
  /***/ }),
25789
25800
 
25790
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
25801
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
25791
25802
  /*!****************************************************************************************************************************!*\
25792
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
25803
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
25793
25804
  \****************************************************************************************************************************/
25794
25805
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25795
25806
 
@@ -25806,9 +25817,9 @@ function _classCallCheck(instance, Constructor) {
25806
25817
 
25807
25818
  /***/ }),
25808
25819
 
25809
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/createClass.js":
25820
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/createClass.js":
25810
25821
  /*!*************************************************************************************************************************!*\
25811
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
25822
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
25812
25823
  \*************************************************************************************************************************/
25813
25824
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25814
25825
 
@@ -25817,7 +25828,7 @@ __webpack_require__.r(__webpack_exports__);
25817
25828
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
25818
25829
  /* harmony export */ "default": () => (/* binding */ _createClass)
25819
25830
  /* harmony export */ });
25820
- /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
25831
+ /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
25821
25832
 
25822
25833
  function _defineProperties(target, props) {
25823
25834
  for (var i = 0; i < props.length; i++) {
@@ -25839,57 +25850,57 @@ function _createClass(Constructor, protoProps, staticProps) {
25839
25850
 
25840
25851
  /***/ }),
25841
25852
 
25842
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
25853
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
25843
25854
  /*!*************************************************************************************************************************!*\
25844
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
25855
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
25845
25856
  \*************************************************************************************************************************/
25846
25857
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25847
25858
 
25848
25859
  "use strict";
25849
25860
  __webpack_require__.r(__webpack_exports__);
25850
25861
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
25851
- /* harmony export */ "default": () => (/* binding */ _toPrimitive)
25862
+ /* harmony export */ "default": () => (/* binding */ toPrimitive)
25852
25863
  /* harmony export */ });
25853
- /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/typeof.js");
25854
-
25855
- function _toPrimitive(input, hint) {
25856
- if ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(input) !== "object" || input === null) return input;
25857
- var prim = input[Symbol.toPrimitive];
25858
- if (prim !== undefined) {
25859
- var res = prim.call(input, hint || "default");
25860
- if ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(res) !== "object") return res;
25864
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/typeof.js");
25865
+
25866
+ function toPrimitive(t, r) {
25867
+ if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
25868
+ var e = t[Symbol.toPrimitive];
25869
+ if (void 0 !== e) {
25870
+ var i = e.call(t, r || "default");
25871
+ if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
25861
25872
  throw new TypeError("@@toPrimitive must return a primitive value.");
25862
25873
  }
25863
- return (hint === "string" ? String : Number)(input);
25874
+ return ("string" === r ? String : Number)(t);
25864
25875
  }
25865
25876
 
25866
25877
  /***/ }),
25867
25878
 
25868
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
25879
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
25869
25880
  /*!***************************************************************************************************************************!*\
25870
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
25881
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
25871
25882
  \***************************************************************************************************************************/
25872
25883
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25873
25884
 
25874
25885
  "use strict";
25875
25886
  __webpack_require__.r(__webpack_exports__);
25876
25887
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
25877
- /* harmony export */ "default": () => (/* binding */ _toPropertyKey)
25888
+ /* harmony export */ "default": () => (/* binding */ toPropertyKey)
25878
25889
  /* harmony export */ });
25879
- /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/typeof.js");
25880
- /* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
25890
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/typeof.js");
25891
+ /* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
25881
25892
 
25882
25893
 
25883
- function _toPropertyKey(arg) {
25884
- var key = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arg, "string");
25885
- return (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key) === "symbol" ? key : String(key);
25894
+ function toPropertyKey(t) {
25895
+ var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string");
25896
+ return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : String(i);
25886
25897
  }
25887
25898
 
25888
25899
  /***/ }),
25889
25900
 
25890
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/typeof.js":
25901
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/typeof.js":
25891
25902
  /*!********************************************************************************************************************!*\
25892
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.4/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
25903
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.23.8/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
25893
25904
  \********************************************************************************************************************/
25894
25905
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25895
25906