@itwin/core-i18n 4.0.0-dev.22 → 4.0.0-dev.24

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_a3gxtmyvj() {
21
- var path = "D:\\vsts_b\\57\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
22
- var hash = "69f0eaae0281c65f76b5677170b621e6d3ec79ab";
20
+ function cov_2l9mmpbx71() {
21
+ var path = "D:\\vsts_a\\4\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
22
+ var hash = "24e58bea480e0876d4033d5608415d9c06c3e4a5";
23
23
  var global = new Function("return this")();
24
24
  var gcv = "__coverage__";
25
25
  var coverageData = {
26
- path: "D:\\vsts_b\\57\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js",
26
+ path: "D:\\vsts_a\\4\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js",
27
27
  statementMap: {
28
28
  "0": {
29
29
  start: {
@@ -3086,13 +3086,13 @@ function cov_a3gxtmyvj() {
3086
3086
  inputSourceMap: {
3087
3087
  version: 3,
3088
3088
  file: "ITwinLocalization.js",
3089
- sources: ["D:\\vsts_b\\57\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
3089
+ sources: ["D:\\vsts_a\\4\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
3090
3090
  names: [],
3091
3091
  mappings: ";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;AAEH,sDAA2E;AAC3E,wGAAmG;AACnG,gFAA+D;AAC/D,sDAA6C;AAG7C,MAAM,mBAAmB,GAAW,CAAC,CAAC,CAAC,8GAA8G;AAcrJ;;;GAGG;AACH,MAAa,iBAAiB;IAO5B,YAAmB,OAA6B;;QAF/B,gBAAW,GAAG,IAAI,GAAG,EAAyB,CAAC;QAG9D,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC,c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------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Localization\r\n */\r\n\r\nimport i18next, { i18n, InitOptions, Module, TOptionsBase } from \"i18next\";\r\nimport i18nextBrowserLanguageDetector, { DetectorOptions } from \"i18next-browser-languagedetector\";\r\nimport Backend, { BackendOptions } from \"i18next-http-backend\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport type { Localization } from \"@itwin/core-common\";\r\n\r\nconst DEFAULT_MAX_RETRIES: number = 1; // a low number prevents wasted time and potential timeouts when requesting localization files throws an error\r\n\r\n/** Options for ITwinLocalization\r\n * @public\r\n */\r\nexport interface LocalizationOptions {\r\n urlTemplate?: string;\r\n backendPlugin?: Module;\r\n detectorPlugin?: Module;\r\n initOptions?: InitOptions;\r\n backendHttpOptions?: BackendOptions;\r\n detectorOptions?: DetectorOptions;\r\n}\r\n\r\n/** Supplies localizations for iTwin.js\r\n * @note this class uses the [i18next](https://www.i18next.com/) package.\r\n * @public\r\n */\r\nexport class ITwinLocalization implements Localization {\r\n public i18next: i18n;\r\n private readonly _initOptions: InitOptions;\r\n private readonly _backendOptions: BackendOptions;\r\n private readonly _detectionOptions: DetectorOptions;\r\n private readonly _namespaces = new Map<string, Promise<void>>();\r\n\r\n public constructor(options?: LocalizationOptions) {\r\n this.i18next = i18next.createInstance();\r\n\r\n this._backendOptions = {\r\n loadPath: options?.urlTemplate ?? \"locales/{{lng}}/{{ns}}.json\",\r\n crossDomain: true,\r\n ...options?.backendHttpOptions,\r\n };\r\n\r\n this._detectionOptions = {\r\n order: [\"querystring\", \"navigator\", \"htmlTag\"],\r\n lookupQuerystring: \"lng\",\r\n caches: [],\r\n ...options?.detectorOptions,\r\n };\r\n\r\n this._initOptions = {\r\n interpolation: { escapeValue: true },\r\n fallbackLng: \"en\",\r\n maxRetries: DEFAULT_MAX_RETRIES,\r\n backend: this._backendOptions,\r\n detection: this._detectionOptions,\r\n ...options?.initOptions,\r\n };\r\n\r\n this.i18next\r\n .use(options?.detectorPlugin ?? i18nextBrowserLanguageDetector)\r\n .use(options?.backendPlugin ?? Backend)\r\n .use(TranslationLogger);\r\n }\r\n\r\n public async initialize(namespaces: string[]): Promise<void> {\r\n\r\n // Also consider namespaces passed into constructor\r\n const initNamespaces: string[] = [this._initOptions.ns || []].flat();\r\n const combinedNamespaces: Set<string> = new Set([...namespaces, ...initNamespaces]); // without duplicates\r\n\r\n const defaultNamespace: string | false | readonly string[] = this._initOptions.defaultNS ?? namespaces[0];\r\n if (defaultNamespace)\r\n combinedNamespaces.add(defaultNamespace as string); // Make sure default namespace is in namespaces list\r\n\r\n const initOptions: InitOptions = {\r\n ...this._initOptions,\r\n defaultNS: defaultNamespace,\r\n ns: [...combinedNamespaces],\r\n };\r\n\r\n // if in a development environment, set debugging\r\n if (process.env.NODE_ENV === \"development\")\r\n initOptions.debug = true;\r\n\r\n const initPromise = this.i18next.init(initOptions) as unknown as Promise<void>;\r\n\r\n for (const ns of namespaces)\r\n this._namespaces.set(ns, initPromise);\r\n\r\n return initPromise;\r\n }\r\n\r\n /** Replace all instances of `%{key}` within a string with the translations of those keys.\r\n * For example:\r\n * ``` ts\r\n * \"MyKeys\": {\r\n * \"Key1\": \"First value\",\r\n * \"Key2\": \"Second value\"\r\n * }\r\n * ```\r\n *\r\n * ``` ts\r\n * i18.translateKeys(\"string with %{MyKeys.Key1} followed by %{MyKeys.Key2}!\"\") // returns \"string with First Value followed by Second Value!\"\r\n * ```\r\n * @param line The input line, potentially containing %{keys}.\r\n * @returns The line with all %{keys} translated\r\n * @public\r\n */\r\n public getLocalizedKeys(line: string): string {\r\n return line.replace(/\\%\\{(.+?)\\}/g, (_match, tag) => this.getLocalizedString(tag));\r\n }\r\n\r\n /** Return the translated value of a key.\r\n * @param key - the key that matches a property in the JSON localization file.\r\n * @note The key includes the namespace, which identifies the particular localization file that contains the property,\r\n * followed by a colon, followed by the property in the JSON file.\r\n * For example:\r\n * ``` ts\r\n * const dataString: string = IModelApp.localization.getLocalizedString(\"iModelJs:BackgroundMap.BingDataAttribution\");\r\n * ```\r\n * assigns to dataString the string with property BackgroundMap.BingDataAttribution from the iModelJs.json localization file.\r\n * @returns The string corresponding to the first key that resolves.\r\n * @throws Error if no keys resolve to a string.\r\n * @public\r\n */\r\n public getLocalizedString(key: string | string[], options?: TOptionsBase): string {\r\n if (options?.returnDetails || options?.returnObjects) {\r\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\r\n }\r\n\r\n const value = this.i18next.t(key, options);\r\n\r\n if (typeof value !== \"string\") {\r\n throw new Error(\"Translation key(s) string not found\");\r\n }\r\n\r\n return value;\r\n }\r\n\r\n /** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need\r\n * to include a namespace. If a key includes a namespace, that namespace will be used for interpolating that key.\r\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\r\n * @param key - the key that matches a property in the JSON localization file.\r\n * @returns The string corresponding to the first key that resolves.\r\n * @throws Error if no keys resolve to a string.\r\n * @internal\r\n */\r\n public getLocalizedStringWithNamespace(namespace: string, key: string | string[], options?: TOptionsBase): string {\r\n let fullKey: string | string[] = \"\";\r\n\r\n if (typeof key === \"string\") {\r\n fullKey = `${namespace}:${key}`;\r\n } else {\r\n fullKey = key.map((subKey: string) => {\r\n return `${namespace}:${subKey}`;\r\n });\r\n }\r\n\r\n return this.getLocalizedString(fullKey, options);\r\n }\r\n\r\n /** Gets the English translation.\r\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\r\n * @param key - the key that matches a property in the JSON localization file.\r\n * @returns The string corresponding to the first key that resolves.\r\n * @throws Error if no keys resolve to a string.\r\n * @internal\r\n */\r\n public getEnglishString(namespace: string, key: string | string[], options?: TOptionsBase): string {\r\n if (options?.returnDetails || options?.returnObjects) {\r\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\r\n }\r\n\r\n options = {\r\n ...options,\r\n ns: namespace, // ensure namespace argument is used\r\n };\r\n\r\n const en = this.i18next.getFixedT(\"en\", namespace);\r\n const str = en(key, options);\r\n if (typeof str !== \"string\")\r\n throw new Error(\"Translation key(s) not found\");\r\n\r\n return str;\r\n }\r\n\r\n /** Get the promise for an already registered Namespace.\r\n * @param name - the name of the namespace\r\n * @public\r\n */\r\n public getNamespacePromise(name: string): Promise<void> | undefined {\r\n return this._namespaces.get(name);\r\n }\r\n\r\n /** @internal */\r\n public getLanguageList(): readonly string[] {\r\n return this.i18next.languages;\r\n }\r\n\r\n /** override the language detected in the browser */\r\n public async changeLanguage(language: string) {\r\n return this.i18next.changeLanguage(language) as unknown as Promise<void>;\r\n }\r\n\r\n /** Register a new Namespace and return it. If the namespace is already registered, it will be returned.\r\n * @param name - the name of the namespace, which is the base name of the JSON file that contains the localization properties.\r\n * @note - The registerNamespace method starts fetching the appropriate version of the JSON localization file from the server,\r\n * based on the current locale. To make sure that fetch is complete before performing translations from this namespace, await\r\n * fulfillment of the readPromise Promise property of the returned LocalizationNamespace.\r\n * @see [Localization in iTwin.js]($docs/learning/frontend/Localization.md)\r\n * @public\r\n */\r\n public async registerNamespace(name: string): Promise<void> {\r\n const existing = this._namespaces.get(name);\r\n if (existing !== undefined)\r\n return existing;\r\n\r\n const theReadPromise = new Promise<void>((resolve) => {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.i18next.loadNamespaces(name, (err) => {\r\n if (!err)\r\n return resolve();\r\n\r\n // Here we got a non-null err object.\r\n // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.\r\n // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.\r\n // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.\r\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.\r\n let locales = this.getLanguageList().map((thisLocale: any) => `/${thisLocale}/`);\r\n\r\n try {\r\n for (const thisError of err) {\r\n if (typeof thisError === \"string\")\r\n locales = locales.filter((thisLocale) => !thisError.includes(thisLocale));\r\n }\r\n } catch (e) {\r\n locales = [];\r\n }\r\n // if we removed every locale from the array, it wasn't loaded.\r\n if (locales.length === 0)\r\n Logger.logError(\"i18n\", `No resources for namespace ${name} could be loaded`);\r\n\r\n resolve();\r\n });\r\n });\r\n this._namespaces.set(name, theReadPromise);\r\n return theReadPromise;\r\n }\r\n\r\n /** @internal */\r\n public unregisterNamespace(name: string): void {\r\n this._namespaces.delete(name);\r\n }\r\n}\r\n\r\nclass TranslationLogger {\r\n public static readonly type = \"logger\";\r\n public log(args: string[]) { Logger.logInfo(\"i18n\", this.createLogMessage(args)); }\r\n public warn(args: string[]) { Logger.logWarning(\"i18n\", this.createLogMessage(args)); }\r\n public error(args: string[]) { Logger.logError(\"i18n\", this.createLogMessage(args)); }\r\n private createLogMessage(args: string[]) {\r\n let message = args[0];\r\n for (let i = 1; i < args.length; ++i) {\r\n if (typeof args[i] === \"string\")\r\n message += `\\n ${args[i]}`;\r\n }\r\n return message;\r\n }\r\n}\r\n"]
3093
3093
  },
3094
3094
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
3095
- hash: "69f0eaae0281c65f76b5677170b621e6d3ec79ab"
3095
+ hash: "24e58bea480e0876d4033d5608415d9c06c3e4a5"
3096
3096
  };
3097
3097
  var coverage = global[gcv] || (global[gcv] = {});
3098
3098
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -3101,57 +3101,57 @@ function cov_a3gxtmyvj() {
3101
3101
  var actualCoverage = coverage[path];
3102
3102
  {
3103
3103
  // @ts-ignore
3104
- cov_a3gxtmyvj = function () {
3104
+ cov_2l9mmpbx71 = function () {
3105
3105
  return actualCoverage;
3106
3106
  };
3107
3107
  }
3108
3108
  return actualCoverage;
3109
3109
  }
3110
- cov_a3gxtmyvj();
3111
- var __importDefault = (cov_a3gxtmyvj().s[0]++, (cov_a3gxtmyvj().b[0][0]++, this) && (cov_a3gxtmyvj().b[0][1]++, this.__importDefault) || (cov_a3gxtmyvj().b[0][2]++, function (mod) {
3112
- cov_a3gxtmyvj().f[0]++;
3113
- cov_a3gxtmyvj().s[1]++;
3114
- return (cov_a3gxtmyvj().b[2][0]++, mod) && (cov_a3gxtmyvj().b[2][1]++, mod.__esModule) ? (cov_a3gxtmyvj().b[1][0]++, mod) : (cov_a3gxtmyvj().b[1][1]++, {
3110
+ cov_2l9mmpbx71();
3111
+ var __importDefault = (cov_2l9mmpbx71().s[0]++, (cov_2l9mmpbx71().b[0][0]++, this) && (cov_2l9mmpbx71().b[0][1]++, this.__importDefault) || (cov_2l9mmpbx71().b[0][2]++, function (mod) {
3112
+ cov_2l9mmpbx71().f[0]++;
3113
+ cov_2l9mmpbx71().s[1]++;
3114
+ return (cov_2l9mmpbx71().b[2][0]++, mod) && (cov_2l9mmpbx71().b[2][1]++, mod.__esModule) ? (cov_2l9mmpbx71().b[1][0]++, mod) : (cov_2l9mmpbx71().b[1][1]++, {
3115
3115
  "default": mod
3116
3116
  });
3117
3117
  }));
3118
- cov_a3gxtmyvj().s[2]++;
3118
+ cov_2l9mmpbx71().s[2]++;
3119
3119
  Object.defineProperty(exports, "__esModule", ({
3120
3120
  value: true
3121
3121
  }));
3122
- cov_a3gxtmyvj().s[3]++;
3122
+ cov_2l9mmpbx71().s[3]++;
3123
3123
  exports.ITwinLocalization = void 0;
3124
- const i18next_1 = (cov_a3gxtmyvj().s[4]++, __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.10.0/node_modules/i18next/dist/cjs/i18next.js")));
3125
- const i18next_browser_languagedetector_1 = (cov_a3gxtmyvj().s[5]++, __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.8/node_modules/i18next-browser-languagedetector/dist/cjs/i18nextBrowserLanguageDetector.js")));
3126
- const i18next_http_backend_1 = (cov_a3gxtmyvj().s[6]++, __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/index.js")));
3127
- const core_bentley_1 = (cov_a3gxtmyvj().s[7]++, __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js"));
3128
- const DEFAULT_MAX_RETRIES = (cov_a3gxtmyvj().s[8]++, 1); // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
3124
+ const i18next_1 = (cov_2l9mmpbx71().s[4]++, __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.10.0/node_modules/i18next/dist/cjs/i18next.js")));
3125
+ const i18next_browser_languagedetector_1 = (cov_2l9mmpbx71().s[5]++, __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.8/node_modules/i18next-browser-languagedetector/dist/cjs/i18nextBrowserLanguageDetector.js")));
3126
+ const i18next_http_backend_1 = (cov_2l9mmpbx71().s[6]++, __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/index.js")));
3127
+ const core_bentley_1 = (cov_2l9mmpbx71().s[7]++, __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js"));
3128
+ const DEFAULT_MAX_RETRIES = (cov_2l9mmpbx71().s[8]++, 1); // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
3129
3129
  /** Supplies localizations for iTwin.js
3130
3130
  * @note this class uses the [i18next](https://www.i18next.com/) package.
3131
3131
  * @public
3132
3132
  */
3133
3133
  class ITwinLocalization {
3134
3134
  constructor(options) {
3135
- cov_a3gxtmyvj().f[1]++;
3135
+ cov_2l9mmpbx71().f[1]++;
3136
3136
  var _a, _b, _c;
3137
- cov_a3gxtmyvj().s[9]++;
3137
+ cov_2l9mmpbx71().s[9]++;
3138
3138
  this._namespaces = new Map();
3139
- cov_a3gxtmyvj().s[10]++;
3139
+ cov_2l9mmpbx71().s[10]++;
3140
3140
  this.i18next = i18next_1.default.createInstance();
3141
- cov_a3gxtmyvj().s[11]++;
3141
+ cov_2l9mmpbx71().s[11]++;
3142
3142
  this._backendOptions = {
3143
- loadPath: (cov_a3gxtmyvj().b[4][0]++, (_a = (cov_a3gxtmyvj().b[6][0]++, options === null) || (cov_a3gxtmyvj().b[6][1]++, options === void 0) ? (cov_a3gxtmyvj().b[5][0]++, void 0) : (cov_a3gxtmyvj().b[5][1]++, options.urlTemplate)) !== null) && (cov_a3gxtmyvj().b[4][1]++, _a !== void 0) ? (cov_a3gxtmyvj().b[3][0]++, _a) : (cov_a3gxtmyvj().b[3][1]++, "locales/{{lng}}/{{ns}}.json"),
3143
+ loadPath: (cov_2l9mmpbx71().b[4][0]++, (_a = (cov_2l9mmpbx71().b[6][0]++, options === null) || (cov_2l9mmpbx71().b[6][1]++, options === void 0) ? (cov_2l9mmpbx71().b[5][0]++, void 0) : (cov_2l9mmpbx71().b[5][1]++, options.urlTemplate)) !== null) && (cov_2l9mmpbx71().b[4][1]++, _a !== void 0) ? (cov_2l9mmpbx71().b[3][0]++, _a) : (cov_2l9mmpbx71().b[3][1]++, "locales/{{lng}}/{{ns}}.json"),
3144
3144
  crossDomain: true,
3145
- ...((cov_a3gxtmyvj().b[8][0]++, options === null) || (cov_a3gxtmyvj().b[8][1]++, options === void 0) ? (cov_a3gxtmyvj().b[7][0]++, void 0) : (cov_a3gxtmyvj().b[7][1]++, options.backendHttpOptions))
3145
+ ...((cov_2l9mmpbx71().b[8][0]++, options === null) || (cov_2l9mmpbx71().b[8][1]++, options === void 0) ? (cov_2l9mmpbx71().b[7][0]++, void 0) : (cov_2l9mmpbx71().b[7][1]++, options.backendHttpOptions))
3146
3146
  };
3147
- cov_a3gxtmyvj().s[12]++;
3147
+ cov_2l9mmpbx71().s[12]++;
3148
3148
  this._detectionOptions = {
3149
3149
  order: ["querystring", "navigator", "htmlTag"],
3150
3150
  lookupQuerystring: "lng",
3151
3151
  caches: [],
3152
- ...((cov_a3gxtmyvj().b[10][0]++, options === null) || (cov_a3gxtmyvj().b[10][1]++, options === void 0) ? (cov_a3gxtmyvj().b[9][0]++, void 0) : (cov_a3gxtmyvj().b[9][1]++, options.detectorOptions))
3152
+ ...((cov_2l9mmpbx71().b[10][0]++, options === null) || (cov_2l9mmpbx71().b[10][1]++, options === void 0) ? (cov_2l9mmpbx71().b[9][0]++, void 0) : (cov_2l9mmpbx71().b[9][1]++, options.detectorOptions))
3153
3153
  };
3154
- cov_a3gxtmyvj().s[13]++;
3154
+ cov_2l9mmpbx71().s[13]++;
3155
3155
  this._initOptions = {
3156
3156
  interpolation: {
3157
3157
  escapeValue: true
@@ -3160,43 +3160,43 @@ class ITwinLocalization {
3160
3160
  maxRetries: DEFAULT_MAX_RETRIES,
3161
3161
  backend: this._backendOptions,
3162
3162
  detection: this._detectionOptions,
3163
- ...((cov_a3gxtmyvj().b[12][0]++, options === null) || (cov_a3gxtmyvj().b[12][1]++, options === void 0) ? (cov_a3gxtmyvj().b[11][0]++, void 0) : (cov_a3gxtmyvj().b[11][1]++, options.initOptions))
3163
+ ...((cov_2l9mmpbx71().b[12][0]++, options === null) || (cov_2l9mmpbx71().b[12][1]++, options === void 0) ? (cov_2l9mmpbx71().b[11][0]++, void 0) : (cov_2l9mmpbx71().b[11][1]++, options.initOptions))
3164
3164
  };
3165
- cov_a3gxtmyvj().s[14]++;
3166
- this.i18next.use((cov_a3gxtmyvj().b[14][0]++, (_b = (cov_a3gxtmyvj().b[16][0]++, options === null) || (cov_a3gxtmyvj().b[16][1]++, options === void 0) ? (cov_a3gxtmyvj().b[15][0]++, void 0) : (cov_a3gxtmyvj().b[15][1]++, options.detectorPlugin)) !== null) && (cov_a3gxtmyvj().b[14][1]++, _b !== void 0) ? (cov_a3gxtmyvj().b[13][0]++, _b) : (cov_a3gxtmyvj().b[13][1]++, i18next_browser_languagedetector_1.default)).use((cov_a3gxtmyvj().b[18][0]++, (_c = (cov_a3gxtmyvj().b[20][0]++, options === null) || (cov_a3gxtmyvj().b[20][1]++, options === void 0) ? (cov_a3gxtmyvj().b[19][0]++, void 0) : (cov_a3gxtmyvj().b[19][1]++, options.backendPlugin)) !== null) && (cov_a3gxtmyvj().b[18][1]++, _c !== void 0) ? (cov_a3gxtmyvj().b[17][0]++, _c) : (cov_a3gxtmyvj().b[17][1]++, i18next_http_backend_1.default)).use(TranslationLogger);
3165
+ cov_2l9mmpbx71().s[14]++;
3166
+ this.i18next.use((cov_2l9mmpbx71().b[14][0]++, (_b = (cov_2l9mmpbx71().b[16][0]++, options === null) || (cov_2l9mmpbx71().b[16][1]++, options === void 0) ? (cov_2l9mmpbx71().b[15][0]++, void 0) : (cov_2l9mmpbx71().b[15][1]++, options.detectorPlugin)) !== null) && (cov_2l9mmpbx71().b[14][1]++, _b !== void 0) ? (cov_2l9mmpbx71().b[13][0]++, _b) : (cov_2l9mmpbx71().b[13][1]++, i18next_browser_languagedetector_1.default)).use((cov_2l9mmpbx71().b[18][0]++, (_c = (cov_2l9mmpbx71().b[20][0]++, options === null) || (cov_2l9mmpbx71().b[20][1]++, options === void 0) ? (cov_2l9mmpbx71().b[19][0]++, void 0) : (cov_2l9mmpbx71().b[19][1]++, options.backendPlugin)) !== null) && (cov_2l9mmpbx71().b[18][1]++, _c !== void 0) ? (cov_2l9mmpbx71().b[17][0]++, _c) : (cov_2l9mmpbx71().b[17][1]++, i18next_http_backend_1.default)).use(TranslationLogger);
3167
3167
  }
3168
3168
  async initialize(namespaces) {
3169
- cov_a3gxtmyvj().f[2]++;
3169
+ cov_2l9mmpbx71().f[2]++;
3170
3170
  var _a;
3171
3171
  // Also consider namespaces passed into constructor
3172
- const initNamespaces = (cov_a3gxtmyvj().s[15]++, [(cov_a3gxtmyvj().b[21][0]++, this._initOptions.ns) || (cov_a3gxtmyvj().b[21][1]++, [])].flat());
3173
- const combinedNamespaces = (cov_a3gxtmyvj().s[16]++, new Set([...namespaces, ...initNamespaces])); // without duplicates
3174
- const defaultNamespace = (cov_a3gxtmyvj().s[17]++, (cov_a3gxtmyvj().b[23][0]++, (_a = this._initOptions.defaultNS) !== null) && (cov_a3gxtmyvj().b[23][1]++, _a !== void 0) ? (cov_a3gxtmyvj().b[22][0]++, _a) : (cov_a3gxtmyvj().b[22][1]++, namespaces[0]));
3175
- cov_a3gxtmyvj().s[18]++;
3172
+ const initNamespaces = (cov_2l9mmpbx71().s[15]++, [(cov_2l9mmpbx71().b[21][0]++, this._initOptions.ns) || (cov_2l9mmpbx71().b[21][1]++, [])].flat());
3173
+ const combinedNamespaces = (cov_2l9mmpbx71().s[16]++, new Set([...namespaces, ...initNamespaces])); // without duplicates
3174
+ const defaultNamespace = (cov_2l9mmpbx71().s[17]++, (cov_2l9mmpbx71().b[23][0]++, (_a = this._initOptions.defaultNS) !== null) && (cov_2l9mmpbx71().b[23][1]++, _a !== void 0) ? (cov_2l9mmpbx71().b[22][0]++, _a) : (cov_2l9mmpbx71().b[22][1]++, namespaces[0]));
3175
+ cov_2l9mmpbx71().s[18]++;
3176
3176
  if (defaultNamespace) {
3177
- cov_a3gxtmyvj().b[24][0]++;
3178
- cov_a3gxtmyvj().s[19]++;
3177
+ cov_2l9mmpbx71().b[24][0]++;
3178
+ cov_2l9mmpbx71().s[19]++;
3179
3179
  combinedNamespaces.add(defaultNamespace);
3180
3180
  } else {
3181
- cov_a3gxtmyvj().b[24][1]++;
3181
+ cov_2l9mmpbx71().b[24][1]++;
3182
3182
  } // Make sure default namespace is in namespaces list
3183
- const initOptions = (cov_a3gxtmyvj().s[20]++, {
3183
+ const initOptions = (cov_2l9mmpbx71().s[20]++, {
3184
3184
  ...this._initOptions,
3185
3185
  defaultNS: defaultNamespace,
3186
3186
  ns: [...combinedNamespaces]
3187
3187
  });
3188
3188
  // if in a development environment, set debugging
3189
- cov_a3gxtmyvj().s[21]++;
3189
+ cov_2l9mmpbx71().s[21]++;
3190
3190
  if (false) {} else {
3191
- cov_a3gxtmyvj().b[25][1]++;
3191
+ cov_2l9mmpbx71().b[25][1]++;
3192
3192
  }
3193
- const initPromise = (cov_a3gxtmyvj().s[23]++, this.i18next.init(initOptions));
3194
- cov_a3gxtmyvj().s[24]++;
3193
+ const initPromise = (cov_2l9mmpbx71().s[23]++, this.i18next.init(initOptions));
3194
+ cov_2l9mmpbx71().s[24]++;
3195
3195
  for (const ns of namespaces) {
3196
- cov_a3gxtmyvj().s[25]++;
3196
+ cov_2l9mmpbx71().s[25]++;
3197
3197
  this._namespaces.set(ns, initPromise);
3198
3198
  }
3199
- cov_a3gxtmyvj().s[26]++;
3199
+ cov_2l9mmpbx71().s[26]++;
3200
3200
  return initPromise;
3201
3201
  }
3202
3202
  /** Replace all instances of `%{key}` within a string with the translations of those keys.
@@ -3216,11 +3216,11 @@ class ITwinLocalization {
3216
3216
  * @public
3217
3217
  */
3218
3218
  getLocalizedKeys(line) {
3219
- cov_a3gxtmyvj().f[3]++;
3220
- cov_a3gxtmyvj().s[27]++;
3219
+ cov_2l9mmpbx71().f[3]++;
3220
+ cov_2l9mmpbx71().s[27]++;
3221
3221
  return line.replace(/\%\{(.+?)\}/g, (_match, tag) => {
3222
- cov_a3gxtmyvj().f[4]++;
3223
- cov_a3gxtmyvj().s[28]++;
3222
+ cov_2l9mmpbx71().f[4]++;
3223
+ cov_2l9mmpbx71().s[28]++;
3224
3224
  return this.getLocalizedString(tag);
3225
3225
  });
3226
3226
  }
@@ -3238,25 +3238,25 @@ class ITwinLocalization {
3238
3238
  * @public
3239
3239
  */
3240
3240
  getLocalizedString(key, options) {
3241
- cov_a3gxtmyvj().f[5]++;
3242
- cov_a3gxtmyvj().s[29]++;
3243
- if ((cov_a3gxtmyvj().b[27][0]++, (cov_a3gxtmyvj().b[29][0]++, options === null) || (cov_a3gxtmyvj().b[29][1]++, options === void 0) ? (cov_a3gxtmyvj().b[28][0]++, void 0) : (cov_a3gxtmyvj().b[28][1]++, options.returnDetails)) || (cov_a3gxtmyvj().b[27][1]++, (cov_a3gxtmyvj().b[31][0]++, options === null) || (cov_a3gxtmyvj().b[31][1]++, options === void 0) ? (cov_a3gxtmyvj().b[30][0]++, void 0) : (cov_a3gxtmyvj().b[30][1]++, options.returnObjects))) {
3244
- cov_a3gxtmyvj().b[26][0]++;
3245
- cov_a3gxtmyvj().s[30]++;
3241
+ cov_2l9mmpbx71().f[5]++;
3242
+ cov_2l9mmpbx71().s[29]++;
3243
+ if ((cov_2l9mmpbx71().b[27][0]++, (cov_2l9mmpbx71().b[29][0]++, options === null) || (cov_2l9mmpbx71().b[29][1]++, options === void 0) ? (cov_2l9mmpbx71().b[28][0]++, void 0) : (cov_2l9mmpbx71().b[28][1]++, options.returnDetails)) || (cov_2l9mmpbx71().b[27][1]++, (cov_2l9mmpbx71().b[31][0]++, options === null) || (cov_2l9mmpbx71().b[31][1]++, options === void 0) ? (cov_2l9mmpbx71().b[30][0]++, void 0) : (cov_2l9mmpbx71().b[30][1]++, options.returnObjects))) {
3244
+ cov_2l9mmpbx71().b[26][0]++;
3245
+ cov_2l9mmpbx71().s[30]++;
3246
3246
  throw new Error("Translation key must map to a string, but the given options will result in an object");
3247
3247
  } else {
3248
- cov_a3gxtmyvj().b[26][1]++;
3248
+ cov_2l9mmpbx71().b[26][1]++;
3249
3249
  }
3250
- const value = (cov_a3gxtmyvj().s[31]++, this.i18next.t(key, options));
3251
- cov_a3gxtmyvj().s[32]++;
3250
+ const value = (cov_2l9mmpbx71().s[31]++, this.i18next.t(key, options));
3251
+ cov_2l9mmpbx71().s[32]++;
3252
3252
  if (typeof value !== "string") {
3253
- cov_a3gxtmyvj().b[32][0]++;
3254
- cov_a3gxtmyvj().s[33]++;
3253
+ cov_2l9mmpbx71().b[32][0]++;
3254
+ cov_2l9mmpbx71().s[33]++;
3255
3255
  throw new Error("Translation key(s) string not found");
3256
3256
  } else {
3257
- cov_a3gxtmyvj().b[32][1]++;
3257
+ cov_2l9mmpbx71().b[32][1]++;
3258
3258
  }
3259
- cov_a3gxtmyvj().s[34]++;
3259
+ cov_2l9mmpbx71().s[34]++;
3260
3260
  return value;
3261
3261
  }
3262
3262
  /** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need
@@ -3268,23 +3268,23 @@ class ITwinLocalization {
3268
3268
  * @internal
3269
3269
  */
3270
3270
  getLocalizedStringWithNamespace(namespace, key, options) {
3271
- cov_a3gxtmyvj().f[6]++;
3272
- let fullKey = (cov_a3gxtmyvj().s[35]++, "");
3273
- cov_a3gxtmyvj().s[36]++;
3271
+ cov_2l9mmpbx71().f[6]++;
3272
+ let fullKey = (cov_2l9mmpbx71().s[35]++, "");
3273
+ cov_2l9mmpbx71().s[36]++;
3274
3274
  if (typeof key === "string") {
3275
- cov_a3gxtmyvj().b[33][0]++;
3276
- cov_a3gxtmyvj().s[37]++;
3275
+ cov_2l9mmpbx71().b[33][0]++;
3276
+ cov_2l9mmpbx71().s[37]++;
3277
3277
  fullKey = `${namespace}:${key}`;
3278
3278
  } else {
3279
- cov_a3gxtmyvj().b[33][1]++;
3280
- cov_a3gxtmyvj().s[38]++;
3279
+ cov_2l9mmpbx71().b[33][1]++;
3280
+ cov_2l9mmpbx71().s[38]++;
3281
3281
  fullKey = key.map(subKey => {
3282
- cov_a3gxtmyvj().f[7]++;
3283
- cov_a3gxtmyvj().s[39]++;
3282
+ cov_2l9mmpbx71().f[7]++;
3283
+ cov_2l9mmpbx71().s[39]++;
3284
3284
  return `${namespace}:${subKey}`;
3285
3285
  });
3286
3286
  }
3287
- cov_a3gxtmyvj().s[40]++;
3287
+ cov_2l9mmpbx71().s[40]++;
3288
3288
  return this.getLocalizedString(fullKey, options);
3289
3289
  }
3290
3290
  /** Gets the English translation.
@@ -3295,32 +3295,32 @@ class ITwinLocalization {
3295
3295
  * @internal
3296
3296
  */
3297
3297
  getEnglishString(namespace, key, options) {
3298
- cov_a3gxtmyvj().f[8]++;
3299
- cov_a3gxtmyvj().s[41]++;
3300
- if ((cov_a3gxtmyvj().b[35][0]++, (cov_a3gxtmyvj().b[37][0]++, options === null) || (cov_a3gxtmyvj().b[37][1]++, options === void 0) ? (cov_a3gxtmyvj().b[36][0]++, void 0) : (cov_a3gxtmyvj().b[36][1]++, options.returnDetails)) || (cov_a3gxtmyvj().b[35][1]++, (cov_a3gxtmyvj().b[39][0]++, options === null) || (cov_a3gxtmyvj().b[39][1]++, options === void 0) ? (cov_a3gxtmyvj().b[38][0]++, void 0) : (cov_a3gxtmyvj().b[38][1]++, options.returnObjects))) {
3301
- cov_a3gxtmyvj().b[34][0]++;
3302
- cov_a3gxtmyvj().s[42]++;
3298
+ cov_2l9mmpbx71().f[8]++;
3299
+ cov_2l9mmpbx71().s[41]++;
3300
+ if ((cov_2l9mmpbx71().b[35][0]++, (cov_2l9mmpbx71().b[37][0]++, options === null) || (cov_2l9mmpbx71().b[37][1]++, options === void 0) ? (cov_2l9mmpbx71().b[36][0]++, void 0) : (cov_2l9mmpbx71().b[36][1]++, options.returnDetails)) || (cov_2l9mmpbx71().b[35][1]++, (cov_2l9mmpbx71().b[39][0]++, options === null) || (cov_2l9mmpbx71().b[39][1]++, options === void 0) ? (cov_2l9mmpbx71().b[38][0]++, void 0) : (cov_2l9mmpbx71().b[38][1]++, options.returnObjects))) {
3301
+ cov_2l9mmpbx71().b[34][0]++;
3302
+ cov_2l9mmpbx71().s[42]++;
3303
3303
  throw new Error("Translation key must map to a string, but the given options will result in an object");
3304
3304
  } else {
3305
- cov_a3gxtmyvj().b[34][1]++;
3305
+ cov_2l9mmpbx71().b[34][1]++;
3306
3306
  }
3307
- cov_a3gxtmyvj().s[43]++;
3307
+ cov_2l9mmpbx71().s[43]++;
3308
3308
  options = {
3309
3309
  ...options,
3310
3310
  ns: namespace // ensure namespace argument is used
3311
3311
  };
3312
3312
 
3313
- const en = (cov_a3gxtmyvj().s[44]++, this.i18next.getFixedT("en", namespace));
3314
- const str = (cov_a3gxtmyvj().s[45]++, en(key, options));
3315
- cov_a3gxtmyvj().s[46]++;
3313
+ const en = (cov_2l9mmpbx71().s[44]++, this.i18next.getFixedT("en", namespace));
3314
+ const str = (cov_2l9mmpbx71().s[45]++, en(key, options));
3315
+ cov_2l9mmpbx71().s[46]++;
3316
3316
  if (typeof str !== "string") {
3317
- cov_a3gxtmyvj().b[40][0]++;
3318
- cov_a3gxtmyvj().s[47]++;
3317
+ cov_2l9mmpbx71().b[40][0]++;
3318
+ cov_2l9mmpbx71().s[47]++;
3319
3319
  throw new Error("Translation key(s) not found");
3320
3320
  } else {
3321
- cov_a3gxtmyvj().b[40][1]++;
3321
+ cov_2l9mmpbx71().b[40][1]++;
3322
3322
  }
3323
- cov_a3gxtmyvj().s[48]++;
3323
+ cov_2l9mmpbx71().s[48]++;
3324
3324
  return str;
3325
3325
  }
3326
3326
  /** Get the promise for an already registered Namespace.
@@ -3328,20 +3328,20 @@ class ITwinLocalization {
3328
3328
  * @public
3329
3329
  */
3330
3330
  getNamespacePromise(name) {
3331
- cov_a3gxtmyvj().f[9]++;
3332
- cov_a3gxtmyvj().s[49]++;
3331
+ cov_2l9mmpbx71().f[9]++;
3332
+ cov_2l9mmpbx71().s[49]++;
3333
3333
  return this._namespaces.get(name);
3334
3334
  }
3335
3335
  /** @internal */
3336
3336
  getLanguageList() {
3337
- cov_a3gxtmyvj().f[10]++;
3338
- cov_a3gxtmyvj().s[50]++;
3337
+ cov_2l9mmpbx71().f[10]++;
3338
+ cov_2l9mmpbx71().s[50]++;
3339
3339
  return this.i18next.languages;
3340
3340
  }
3341
3341
  /** override the language detected in the browser */
3342
3342
  async changeLanguage(language) {
3343
- cov_a3gxtmyvj().f[11]++;
3344
- cov_a3gxtmyvj().s[51]++;
3343
+ cov_2l9mmpbx71().f[11]++;
3344
+ cov_2l9mmpbx71().s[51]++;
3345
3345
  return this.i18next.changeLanguage(language);
3346
3346
  }
3347
3347
  /** Register a new Namespace and return it. If the namespace is already registered, it will be returned.
@@ -3353,123 +3353,123 @@ class ITwinLocalization {
3353
3353
  * @public
3354
3354
  */
3355
3355
  async registerNamespace(name) {
3356
- cov_a3gxtmyvj().f[12]++;
3357
- const existing = (cov_a3gxtmyvj().s[52]++, this._namespaces.get(name));
3358
- cov_a3gxtmyvj().s[53]++;
3356
+ cov_2l9mmpbx71().f[12]++;
3357
+ const existing = (cov_2l9mmpbx71().s[52]++, this._namespaces.get(name));
3358
+ cov_2l9mmpbx71().s[53]++;
3359
3359
  if (existing !== undefined) {
3360
- cov_a3gxtmyvj().b[41][0]++;
3361
- cov_a3gxtmyvj().s[54]++;
3360
+ cov_2l9mmpbx71().b[41][0]++;
3361
+ cov_2l9mmpbx71().s[54]++;
3362
3362
  return existing;
3363
3363
  } else {
3364
- cov_a3gxtmyvj().b[41][1]++;
3364
+ cov_2l9mmpbx71().b[41][1]++;
3365
3365
  }
3366
- const theReadPromise = (cov_a3gxtmyvj().s[55]++, new Promise(resolve => {
3367
- cov_a3gxtmyvj().f[13]++;
3368
- cov_a3gxtmyvj().s[56]++;
3366
+ const theReadPromise = (cov_2l9mmpbx71().s[55]++, new Promise(resolve => {
3367
+ cov_2l9mmpbx71().f[13]++;
3368
+ cov_2l9mmpbx71().s[56]++;
3369
3369
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
3370
3370
  this.i18next.loadNamespaces(name, err => {
3371
- cov_a3gxtmyvj().f[14]++;
3372
- cov_a3gxtmyvj().s[57]++;
3371
+ cov_2l9mmpbx71().f[14]++;
3372
+ cov_2l9mmpbx71().s[57]++;
3373
3373
  if (!err) {
3374
- cov_a3gxtmyvj().b[42][0]++;
3375
- cov_a3gxtmyvj().s[58]++;
3374
+ cov_2l9mmpbx71().b[42][0]++;
3375
+ cov_2l9mmpbx71().s[58]++;
3376
3376
  return resolve();
3377
3377
  } else {
3378
- cov_a3gxtmyvj().b[42][1]++;
3378
+ cov_2l9mmpbx71().b[42][1]++;
3379
3379
  }
3380
3380
  // Here we got a non-null err object.
3381
3381
  // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
3382
3382
  // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
3383
3383
  // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
3384
3384
  // 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.
3385
- let locales = (cov_a3gxtmyvj().s[59]++, this.getLanguageList().map(thisLocale => {
3386
- cov_a3gxtmyvj().f[15]++;
3387
- cov_a3gxtmyvj().s[60]++;
3385
+ let locales = (cov_2l9mmpbx71().s[59]++, this.getLanguageList().map(thisLocale => {
3386
+ cov_2l9mmpbx71().f[15]++;
3387
+ cov_2l9mmpbx71().s[60]++;
3388
3388
  return `/${thisLocale}/`;
3389
3389
  }));
3390
- cov_a3gxtmyvj().s[61]++;
3390
+ cov_2l9mmpbx71().s[61]++;
3391
3391
  try {
3392
- cov_a3gxtmyvj().s[62]++;
3392
+ cov_2l9mmpbx71().s[62]++;
3393
3393
  for (const thisError of err) {
3394
- cov_a3gxtmyvj().s[63]++;
3394
+ cov_2l9mmpbx71().s[63]++;
3395
3395
  if (typeof thisError === "string") {
3396
- cov_a3gxtmyvj().b[43][0]++;
3397
- cov_a3gxtmyvj().s[64]++;
3396
+ cov_2l9mmpbx71().b[43][0]++;
3397
+ cov_2l9mmpbx71().s[64]++;
3398
3398
  locales = locales.filter(thisLocale => {
3399
- cov_a3gxtmyvj().f[16]++;
3400
- cov_a3gxtmyvj().s[65]++;
3399
+ cov_2l9mmpbx71().f[16]++;
3400
+ cov_2l9mmpbx71().s[65]++;
3401
3401
  return !thisError.includes(thisLocale);
3402
3402
  });
3403
3403
  } else {
3404
- cov_a3gxtmyvj().b[43][1]++;
3404
+ cov_2l9mmpbx71().b[43][1]++;
3405
3405
  }
3406
3406
  }
3407
3407
  } catch (e) {
3408
- cov_a3gxtmyvj().s[66]++;
3408
+ cov_2l9mmpbx71().s[66]++;
3409
3409
  locales = [];
3410
3410
  }
3411
3411
  // if we removed every locale from the array, it wasn't loaded.
3412
- cov_a3gxtmyvj().s[67]++;
3412
+ cov_2l9mmpbx71().s[67]++;
3413
3413
  if (locales.length === 0) {
3414
- cov_a3gxtmyvj().b[44][0]++;
3415
- cov_a3gxtmyvj().s[68]++;
3414
+ cov_2l9mmpbx71().b[44][0]++;
3415
+ cov_2l9mmpbx71().s[68]++;
3416
3416
  core_bentley_1.Logger.logError("i18n", `No resources for namespace ${name} could be loaded`);
3417
3417
  } else {
3418
- cov_a3gxtmyvj().b[44][1]++;
3418
+ cov_2l9mmpbx71().b[44][1]++;
3419
3419
  }
3420
- cov_a3gxtmyvj().s[69]++;
3420
+ cov_2l9mmpbx71().s[69]++;
3421
3421
  resolve();
3422
3422
  });
3423
3423
  }));
3424
- cov_a3gxtmyvj().s[70]++;
3424
+ cov_2l9mmpbx71().s[70]++;
3425
3425
  this._namespaces.set(name, theReadPromise);
3426
- cov_a3gxtmyvj().s[71]++;
3426
+ cov_2l9mmpbx71().s[71]++;
3427
3427
  return theReadPromise;
3428
3428
  }
3429
3429
  /** @internal */
3430
3430
  unregisterNamespace(name) {
3431
- cov_a3gxtmyvj().f[17]++;
3432
- cov_a3gxtmyvj().s[72]++;
3431
+ cov_2l9mmpbx71().f[17]++;
3432
+ cov_2l9mmpbx71().s[72]++;
3433
3433
  this._namespaces.delete(name);
3434
3434
  }
3435
3435
  }
3436
- cov_a3gxtmyvj().s[73]++;
3436
+ cov_2l9mmpbx71().s[73]++;
3437
3437
  exports.ITwinLocalization = ITwinLocalization;
3438
3438
  class TranslationLogger {
3439
3439
  log(args) {
3440
- cov_a3gxtmyvj().f[18]++;
3441
- cov_a3gxtmyvj().s[74]++;
3440
+ cov_2l9mmpbx71().f[18]++;
3441
+ cov_2l9mmpbx71().s[74]++;
3442
3442
  core_bentley_1.Logger.logInfo("i18n", this.createLogMessage(args));
3443
3443
  }
3444
3444
  warn(args) {
3445
- cov_a3gxtmyvj().f[19]++;
3446
- cov_a3gxtmyvj().s[75]++;
3445
+ cov_2l9mmpbx71().f[19]++;
3446
+ cov_2l9mmpbx71().s[75]++;
3447
3447
  core_bentley_1.Logger.logWarning("i18n", this.createLogMessage(args));
3448
3448
  }
3449
3449
  error(args) {
3450
- cov_a3gxtmyvj().f[20]++;
3451
- cov_a3gxtmyvj().s[76]++;
3450
+ cov_2l9mmpbx71().f[20]++;
3451
+ cov_2l9mmpbx71().s[76]++;
3452
3452
  core_bentley_1.Logger.logError("i18n", this.createLogMessage(args));
3453
3453
  }
3454
3454
  createLogMessage(args) {
3455
- cov_a3gxtmyvj().f[21]++;
3456
- let message = (cov_a3gxtmyvj().s[77]++, args[0]);
3457
- cov_a3gxtmyvj().s[78]++;
3458
- for (let i = (cov_a3gxtmyvj().s[79]++, 1); i < args.length; ++i) {
3459
- cov_a3gxtmyvj().s[80]++;
3455
+ cov_2l9mmpbx71().f[21]++;
3456
+ let message = (cov_2l9mmpbx71().s[77]++, args[0]);
3457
+ cov_2l9mmpbx71().s[78]++;
3458
+ for (let i = (cov_2l9mmpbx71().s[79]++, 1); i < args.length; ++i) {
3459
+ cov_2l9mmpbx71().s[80]++;
3460
3460
  if (typeof args[i] === "string") {
3461
- cov_a3gxtmyvj().b[45][0]++;
3462
- cov_a3gxtmyvj().s[81]++;
3461
+ cov_2l9mmpbx71().b[45][0]++;
3462
+ cov_2l9mmpbx71().s[81]++;
3463
3463
  message += `\n ${args[i]}`;
3464
3464
  } else {
3465
- cov_a3gxtmyvj().b[45][1]++;
3465
+ cov_2l9mmpbx71().b[45][1]++;
3466
3466
  }
3467
3467
  }
3468
- cov_a3gxtmyvj().s[82]++;
3468
+ cov_2l9mmpbx71().s[82]++;
3469
3469
  return message;
3470
3470
  }
3471
3471
  }
3472
- cov_a3gxtmyvj().s[83]++;
3472
+ cov_2l9mmpbx71().s[83]++;
3473
3473
  TranslationLogger.type = "logger";
3474
3474
 
3475
3475
  /***/ }),
@@ -14296,8 +14296,8 @@ module.exports = getFuncName;
14296
14296
  "use strict";
14297
14297
 
14298
14298
 
14299
- var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/classCallCheck.js");
14300
- var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/createClass.js");
14299
+ var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/classCallCheck.js");
14300
+ var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/createClass.js");
14301
14301
 
14302
14302
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14303
14303
 
@@ -14729,15 +14729,15 @@ module.exports = Browser;
14729
14729
  "use strict";
14730
14730
 
14731
14731
 
14732
- var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/typeof.js");
14733
- var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/classCallCheck.js");
14734
- var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/createClass.js");
14735
- var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
14736
- var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/inherits.js");
14737
- var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
14738
- var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
14739
- var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/defineProperty.js");
14740
- var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/toArray.js");
14732
+ var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/typeof.js");
14733
+ var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/classCallCheck.js");
14734
+ var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/createClass.js");
14735
+ var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
14736
+ var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/inherits.js");
14737
+ var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
14738
+ var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
14739
+ var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/defineProperty.js");
14740
+ var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toArray.js");
14741
14741
 
14742
14742
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14743
14743
 
@@ -23936,6 +23936,12 @@ class ReadonlySortedArray {
23936
23936
  for (let i = 0; i < this.length; i++)
23937
23937
  func(this._array[i]);
23938
23938
  }
23939
+ /** The equivalent of [Array.slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice). */
23940
+ slice(start, end) {
23941
+ const slice = new ReadonlySortedArray(this._compare, this._duplicatePolicy, this._clone);
23942
+ slice._array = this._array.slice(start, end);
23943
+ return slice;
23944
+ }
23939
23945
  /**
23940
23946
  * Computes the position at which the specified value should be inserted to maintain sorted order.
23941
23947
  * @param value The value whose position is to be computed.
@@ -24066,6 +24072,12 @@ class SortedArray extends ReadonlySortedArray {
24066
24072
  * @returns the index of the deleted value, or -1 if no such element exists.
24067
24073
  */
24068
24074
  remove(value) { return this._remove(value); }
24075
+ /** The equivalent of [Array.slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice). */
24076
+ slice(start, end) {
24077
+ const slice = new SortedArray(this._compare, this._duplicatePolicy, this._clone);
24078
+ slice._array = this._array.slice(start, end);
24079
+ return slice;
24080
+ }
24069
24081
  }
24070
24082
 
24071
24083
 
@@ -25797,10 +25809,10 @@ function partitionArray(array, criterion) {
25797
25809
 
25798
25810
  /***/ }),
25799
25811
 
25800
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
25801
- /*!***************************************************************************************************************************!*\
25802
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
25803
- \***************************************************************************************************************************/
25812
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
25813
+ /*!**************************************************************************************************************************!*\
25814
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
25815
+ \**************************************************************************************************************************/
25804
25816
  /***/ ((module) => {
25805
25817
 
25806
25818
  function _arrayLikeToArray(arr, len) {
@@ -25812,10 +25824,10 @@ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exp
25812
25824
 
25813
25825
  /***/ }),
25814
25826
 
25815
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
25816
- /*!*************************************************************************************************************************!*\
25817
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
25818
- \*************************************************************************************************************************/
25827
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
25828
+ /*!************************************************************************************************************************!*\
25829
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
25830
+ \************************************************************************************************************************/
25819
25831
  /***/ ((module) => {
25820
25832
 
25821
25833
  function _arrayWithHoles(arr) {
@@ -25825,10 +25837,10 @@ module.exports = _arrayWithHoles, module.exports.__esModule = true, module.expor
25825
25837
 
25826
25838
  /***/ }),
25827
25839
 
25828
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
25829
- /*!********************************************************************************************************************************!*\
25830
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
25831
- \********************************************************************************************************************************/
25840
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
25841
+ /*!*******************************************************************************************************************************!*\
25842
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
25843
+ \*******************************************************************************************************************************/
25832
25844
  /***/ ((module) => {
25833
25845
 
25834
25846
  function _assertThisInitialized(self) {
@@ -25841,10 +25853,10 @@ module.exports = _assertThisInitialized, module.exports.__esModule = true, modul
25841
25853
 
25842
25854
  /***/ }),
25843
25855
 
25844
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/classCallCheck.js":
25845
- /*!*************************************************************************************************************************!*\
25846
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
25847
- \*************************************************************************************************************************/
25856
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/classCallCheck.js":
25857
+ /*!************************************************************************************************************************!*\
25858
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
25859
+ \************************************************************************************************************************/
25848
25860
  /***/ ((module) => {
25849
25861
 
25850
25862
  function _classCallCheck(instance, Constructor) {
@@ -25856,13 +25868,13 @@ module.exports = _classCallCheck, module.exports.__esModule = true, module.expor
25856
25868
 
25857
25869
  /***/ }),
25858
25870
 
25859
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/createClass.js":
25860
- /*!**********************************************************************************************************************!*\
25861
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/createClass.js ***!
25862
- \**********************************************************************************************************************/
25871
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/createClass.js":
25872
+ /*!*********************************************************************************************************************!*\
25873
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/createClass.js ***!
25874
+ \*********************************************************************************************************************/
25863
25875
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25864
25876
 
25865
- var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/toPropertyKey.js");
25877
+ var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPropertyKey.js");
25866
25878
  function _defineProperties(target, props) {
25867
25879
  for (var i = 0; i < props.length; i++) {
25868
25880
  var descriptor = props[i];
@@ -25884,13 +25896,13 @@ module.exports = _createClass, module.exports.__esModule = true, module.exports[
25884
25896
 
25885
25897
  /***/ }),
25886
25898
 
25887
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/defineProperty.js":
25888
- /*!*************************************************************************************************************************!*\
25889
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/defineProperty.js ***!
25890
- \*************************************************************************************************************************/
25899
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/defineProperty.js":
25900
+ /*!************************************************************************************************************************!*\
25901
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/defineProperty.js ***!
25902
+ \************************************************************************************************************************/
25891
25903
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25892
25904
 
25893
- var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/toPropertyKey.js");
25905
+ var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPropertyKey.js");
25894
25906
  function _defineProperty(obj, key, value) {
25895
25907
  key = toPropertyKey(key);
25896
25908
  if (key in obj) {
@@ -25909,10 +25921,10 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
25909
25921
 
25910
25922
  /***/ }),
25911
25923
 
25912
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
25913
- /*!*************************************************************************************************************************!*\
25914
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
25915
- \*************************************************************************************************************************/
25924
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
25925
+ /*!************************************************************************************************************************!*\
25926
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
25927
+ \************************************************************************************************************************/
25916
25928
  /***/ ((module) => {
25917
25929
 
25918
25930
  function _getPrototypeOf(o) {
@@ -25925,13 +25937,13 @@ module.exports = _getPrototypeOf, module.exports.__esModule = true, module.expor
25925
25937
 
25926
25938
  /***/ }),
25927
25939
 
25928
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/inherits.js":
25929
- /*!*******************************************************************************************************************!*\
25930
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/inherits.js ***!
25931
- \*******************************************************************************************************************/
25940
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/inherits.js":
25941
+ /*!******************************************************************************************************************!*\
25942
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/inherits.js ***!
25943
+ \******************************************************************************************************************/
25932
25944
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25933
25945
 
25934
- var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
25946
+ var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
25935
25947
  function _inherits(subClass, superClass) {
25936
25948
  if (typeof superClass !== "function" && superClass !== null) {
25937
25949
  throw new TypeError("Super expression must either be null or a function");
@@ -25952,10 +25964,10 @@ module.exports = _inherits, module.exports.__esModule = true, module.exports["de
25952
25964
 
25953
25965
  /***/ }),
25954
25966
 
25955
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/iterableToArray.js":
25956
- /*!**************************************************************************************************************************!*\
25957
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
25958
- \**************************************************************************************************************************/
25967
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/iterableToArray.js":
25968
+ /*!*************************************************************************************************************************!*\
25969
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
25970
+ \*************************************************************************************************************************/
25959
25971
  /***/ ((module) => {
25960
25972
 
25961
25973
  function _iterableToArray(iter) {
@@ -25965,10 +25977,10 @@ module.exports = _iterableToArray, module.exports.__esModule = true, module.expo
25965
25977
 
25966
25978
  /***/ }),
25967
25979
 
25968
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/nonIterableRest.js":
25969
- /*!**************************************************************************************************************************!*\
25970
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
25971
- \**************************************************************************************************************************/
25980
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/nonIterableRest.js":
25981
+ /*!*************************************************************************************************************************!*\
25982
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
25983
+ \*************************************************************************************************************************/
25972
25984
  /***/ ((module) => {
25973
25985
 
25974
25986
  function _nonIterableRest() {
@@ -25978,14 +25990,14 @@ module.exports = _nonIterableRest, module.exports.__esModule = true, module.expo
25978
25990
 
25979
25991
  /***/ }),
25980
25992
 
25981
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
25982
- /*!************************************************************************************************************************************!*\
25983
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
25984
- \************************************************************************************************************************************/
25993
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
25994
+ /*!***********************************************************************************************************************************!*\
25995
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
25996
+ \***********************************************************************************************************************************/
25985
25997
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
25986
25998
 
25987
- var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
25988
- var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
25999
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
26000
+ var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
25989
26001
  function _possibleConstructorReturn(self, call) {
25990
26002
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
25991
26003
  return call;
@@ -25998,10 +26010,10 @@ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, m
25998
26010
 
25999
26011
  /***/ }),
26000
26012
 
26001
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
26002
- /*!*************************************************************************************************************************!*\
26003
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
26004
- \*************************************************************************************************************************/
26013
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
26014
+ /*!************************************************************************************************************************!*\
26015
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
26016
+ \************************************************************************************************************************/
26005
26017
  /***/ ((module) => {
26006
26018
 
26007
26019
  function _setPrototypeOf(o, p) {
@@ -26015,16 +26027,16 @@ module.exports = _setPrototypeOf, module.exports.__esModule = true, module.expor
26015
26027
 
26016
26028
  /***/ }),
26017
26029
 
26018
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/toArray.js":
26019
- /*!******************************************************************************************************************!*\
26020
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/toArray.js ***!
26021
- \******************************************************************************************************************/
26030
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toArray.js":
26031
+ /*!*****************************************************************************************************************!*\
26032
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toArray.js ***!
26033
+ \*****************************************************************************************************************/
26022
26034
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
26023
26035
 
26024
- var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
26025
- var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/iterableToArray.js");
26026
- var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
26027
- var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/nonIterableRest.js");
26036
+ var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
26037
+ var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/iterableToArray.js");
26038
+ var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
26039
+ var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/nonIterableRest.js");
26028
26040
  function _toArray(arr) {
26029
26041
  return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
26030
26042
  }
@@ -26032,13 +26044,13 @@ module.exports = _toArray, module.exports.__esModule = true, module.exports["def
26032
26044
 
26033
26045
  /***/ }),
26034
26046
 
26035
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/toPrimitive.js":
26036
- /*!**********************************************************************************************************************!*\
26037
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/toPrimitive.js ***!
26038
- \**********************************************************************************************************************/
26047
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPrimitive.js":
26048
+ /*!*********************************************************************************************************************!*\
26049
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPrimitive.js ***!
26050
+ \*********************************************************************************************************************/
26039
26051
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
26040
26052
 
26041
- var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
26053
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
26042
26054
  function _toPrimitive(input, hint) {
26043
26055
  if (_typeof(input) !== "object" || input === null) return input;
26044
26056
  var prim = input[Symbol.toPrimitive];
@@ -26053,14 +26065,14 @@ module.exports = _toPrimitive, module.exports.__esModule = true, module.exports[
26053
26065
 
26054
26066
  /***/ }),
26055
26067
 
26056
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/toPropertyKey.js":
26057
- /*!************************************************************************************************************************!*\
26058
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
26059
- \************************************************************************************************************************/
26068
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPropertyKey.js":
26069
+ /*!***********************************************************************************************************************!*\
26070
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
26071
+ \***********************************************************************************************************************/
26060
26072
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
26061
26073
 
26062
- var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
26063
- var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/toPrimitive.js");
26074
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
26075
+ var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPrimitive.js");
26064
26076
  function _toPropertyKey(arg) {
26065
26077
  var key = toPrimitive(arg, "string");
26066
26078
  return _typeof(key) === "symbol" ? key : String(key);
@@ -26069,10 +26081,10 @@ module.exports = _toPropertyKey, module.exports.__esModule = true, module.export
26069
26081
 
26070
26082
  /***/ }),
26071
26083
 
26072
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/typeof.js":
26073
- /*!*****************************************************************************************************************!*\
26074
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/typeof.js ***!
26075
- \*****************************************************************************************************************/
26084
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/typeof.js":
26085
+ /*!****************************************************************************************************************!*\
26086
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/typeof.js ***!
26087
+ \****************************************************************************************************************/
26076
26088
  /***/ ((module) => {
26077
26089
 
26078
26090
  function _typeof(obj) {
@@ -26088,13 +26100,13 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
26088
26100
 
26089
26101
  /***/ }),
26090
26102
 
26091
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
26092
- /*!*************************************************************************************************************************************!*\
26093
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
26094
- \*************************************************************************************************************************************/
26103
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
26104
+ /*!************************************************************************************************************************************!*\
26105
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
26106
+ \************************************************************************************************************************************/
26095
26107
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
26096
26108
 
26097
- var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.13/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
26109
+ var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
26098
26110
  function _unsupportedIterableToArray(o, minLen) {
26099
26111
  if (!o) return;
26100
26112
  if (typeof o === "string") return arrayLikeToArray(o, minLen);