@itwin/core-i18n 5.0.0-dev.90 → 5.0.0-dev.92

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_1wctd2lw3r() {
21
- var path = "C:\\agent\\_work\\2\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
22
- var hash = "920c7c11e91cd73c024cf8384c72f59ebf0585a9";
20
+ function cov_ogldeftyv() {
21
+ var path = "C:\\agent\\_work\\1\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
22
+ var hash = "d940188727f7c3f13464903c9fef76d730c540e6";
23
23
  var global = new Function("return this")();
24
24
  var gcv = "__coverage__";
25
25
  var coverageData = {
26
- path: "C:\\agent\\_work\\2\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js",
26
+ path: "C:\\agent\\_work\\1\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js",
27
27
  statementMap: {
28
28
  "0": {
29
29
  start: {
@@ -2120,13 +2120,13 @@ function cov_1wctd2lw3r() {
2120
2120
  inputSourceMap: {
2121
2121
  version: 3,
2122
2122
  file: "ITwinLocalization.js",
2123
- sources: ["C:\\agent\\_work\\2\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
2123
+ sources: ["C:\\agent\\_work\\1\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
2124
2124
  names: [],
2125
- 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;IACrB,OAAO,CAAO;IACJ,YAAY,CAAc;IAC1B,eAAe,CAAiB;IAChC,iBAAiB,CAAkB;IACnC,WAAW,GAAG,IAAI,GAAG,EAAyB,C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IAAI,CAAC,IAAc,IAAI,qBAAM,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAChF,KAAK,CAAC,IAAc,IAAI,qBAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,gBAAgB,CAAC,IAAc;QACrC,IAAI,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;YACrC,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;gBAC7B,OAAO,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QAChC,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC",
2126
- 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 /** 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 {\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"]
2125
+ mappings: ";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;AAEH,sDAA2E;AAC3E,wGAAmG;AACnG,gFAAqF;AACrF,sDAA6C;AAG7C,MAAM,mBAAmB,GAAW,CAAC,CAAC,CAAC,8GAA8G;AAcrJ;;;GAGG;AACH,MAAa,iBAAiB;IACrB,OAAO,CAAO;IACJ,YAAY,CAAc;IAC1B,eAAe,CAAiB;IAChC,iBAAiB,CAAkB;IACnC,WAAW,GAAG,IAAI,GAAG,EAAyB,CAAC;IAEhE,YAAmB,OAA6B;QAC9C,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC,cAAc,EAAE,CAAC;QAExC,IAAI,CAAC,eAAe,GAAG;YACrB,QAAQ,EAAE,OAAO,EAAE,WAAW,IAAI,6BAA6B;YAC/D,WAAW,EAAE,IAAI;YACjB,GAAG,OAAO,EAAE,kBAAkB;SAC/B,CAAC;QAEF,IAAI,CAAC,iBAAiB,GAAG;YACvB,KAAK,EAAE,CAAC,aAAa,EAAE,WAAW,EAAE,SAAS,CAAC;YAC9C,iBAAiB,EAAE,KAAK;YACxB,MAAM,EAAE,EAAE;YACV,GAAG,OAAO,EAAE,eAAe;SAC5B,CAAC;QAEF,IAAI,CAAC,YAAY,GAAG;YAClB,aAAa,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;YACpC,WAAW,EAAE,IAAI;YACjB,UAAU,EAAE,mBAAmB;YAC/B,OAAO,EAAE,IAAI,CAAC,eAAe;YAC7B,SAAS,EAAE,IAAI,CAAC,iBAAiB;YACjC,GAAG,OAAO,EAAE,WAAW;SACxB,CAAC;QAEF,IAAI,CAAC,OAAO;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kBAAkB,CAAC,CAAC;gBAEhF,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QAC3C,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,gBAAgB;IACT,mBAAmB,CAAC,IAAY;QACrC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;CACF;AA7MD,8CA6MC;AAED,MAAM,iBAAiB;IACd,MAAM,CAAU,IAAI,GAAG,QAAQ,CAAC;IAChC,GAAG,CAAC,IAAc,IAAI,qBAAM,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5E,IAAI,CAAC,IAAc,IAAI,qBAAM,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAChF,KAAK,CAAC,IAAc,IAAI,qBAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,gBAAgB,CAAC,IAAc;QACrC,IAAI,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;YACrC,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;gBAC7B,OAAO,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QAChC,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC",
2126
+ 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, { HttpBackendOptions as 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 /** 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 {\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"]
2127
2127
  },
2128
2128
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
2129
- hash: "920c7c11e91cd73c024cf8384c72f59ebf0585a9"
2129
+ hash: "d940188727f7c3f13464903c9fef76d730c540e6"
2130
2130
  };
2131
2131
  var coverage = global[gcv] || (global[gcv] = {});
2132
2132
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -2135,31 +2135,31 @@ function cov_1wctd2lw3r() {
2135
2135
  var actualCoverage = coverage[path];
2136
2136
  {
2137
2137
  // @ts-ignore
2138
- cov_1wctd2lw3r = function () {
2138
+ cov_ogldeftyv = function () {
2139
2139
  return actualCoverage;
2140
2140
  };
2141
2141
  }
2142
2142
  return actualCoverage;
2143
2143
  }
2144
- cov_1wctd2lw3r();
2145
- var __importDefault = (cov_1wctd2lw3r().s[0]++, (cov_1wctd2lw3r().b[0][0]++, this) && (cov_1wctd2lw3r().b[0][1]++, this.__importDefault) || (cov_1wctd2lw3r().b[0][2]++, function (mod) {
2146
- cov_1wctd2lw3r().f[0]++;
2147
- cov_1wctd2lw3r().s[1]++;
2148
- return (cov_1wctd2lw3r().b[2][0]++, mod) && (cov_1wctd2lw3r().b[2][1]++, mod.__esModule) ? (cov_1wctd2lw3r().b[1][0]++, mod) : (cov_1wctd2lw3r().b[1][1]++, {
2144
+ cov_ogldeftyv();
2145
+ var __importDefault = (cov_ogldeftyv().s[0]++, (cov_ogldeftyv().b[0][0]++, this) && (cov_ogldeftyv().b[0][1]++, this.__importDefault) || (cov_ogldeftyv().b[0][2]++, function (mod) {
2146
+ cov_ogldeftyv().f[0]++;
2147
+ cov_ogldeftyv().s[1]++;
2148
+ return (cov_ogldeftyv().b[2][0]++, mod) && (cov_ogldeftyv().b[2][1]++, mod.__esModule) ? (cov_ogldeftyv().b[1][0]++, mod) : (cov_ogldeftyv().b[1][1]++, {
2149
2149
  "default": mod
2150
2150
  });
2151
2151
  }));
2152
- cov_1wctd2lw3r().s[2]++;
2152
+ cov_ogldeftyv().s[2]++;
2153
2153
  Object.defineProperty(exports, "__esModule", ({
2154
2154
  value: true
2155
2155
  }));
2156
- cov_1wctd2lw3r().s[3]++;
2156
+ cov_ogldeftyv().s[3]++;
2157
2157
  exports.ITwinLocalization = void 0;
2158
- const i18next_1 = (cov_1wctd2lw3r().s[4]++, __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/cjs/i18next.js")));
2159
- const i18next_browser_languagedetector_1 = (cov_1wctd2lw3r().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")));
2160
- const i18next_http_backend_1 = (cov_1wctd2lw3r().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")));
2161
- const core_bentley_1 = (cov_1wctd2lw3r().s[7]++, __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js"));
2162
- const DEFAULT_MAX_RETRIES = (cov_1wctd2lw3r().s[8]++, 1); // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
2158
+ const i18next_1 = (cov_ogldeftyv().s[4]++, __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.1/node_modules/i18next/dist/cjs/i18next.js")));
2159
+ const i18next_browser_languagedetector_1 = (cov_ogldeftyv().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")));
2160
+ const i18next_http_backend_1 = (cov_ogldeftyv().s[6]++, __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/index.js")));
2161
+ const core_bentley_1 = (cov_ogldeftyv().s[7]++, __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js"));
2162
+ const DEFAULT_MAX_RETRIES = (cov_ogldeftyv().s[8]++, 1); // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
2163
2163
  /** Supplies localizations for iTwin.js
2164
2164
  * @note this class uses the [i18next](https://www.i18next.com/) package.
2165
2165
  * @public
@@ -2169,25 +2169,25 @@ class ITwinLocalization {
2169
2169
  _initOptions;
2170
2170
  _backendOptions;
2171
2171
  _detectionOptions;
2172
- _namespaces = (cov_1wctd2lw3r().s[9]++, new Map());
2172
+ _namespaces = (cov_ogldeftyv().s[9]++, new Map());
2173
2173
  constructor(options) {
2174
- cov_1wctd2lw3r().f[1]++;
2175
- cov_1wctd2lw3r().s[10]++;
2174
+ cov_ogldeftyv().f[1]++;
2175
+ cov_ogldeftyv().s[10]++;
2176
2176
  this.i18next = i18next_1.default.createInstance();
2177
- cov_1wctd2lw3r().s[11]++;
2177
+ cov_ogldeftyv().s[11]++;
2178
2178
  this._backendOptions = {
2179
- loadPath: (cov_1wctd2lw3r().b[3][0]++, options?.urlTemplate) ?? (cov_1wctd2lw3r().b[3][1]++, "locales/{{lng}}/{{ns}}.json"),
2179
+ loadPath: (cov_ogldeftyv().b[3][0]++, options?.urlTemplate) ?? (cov_ogldeftyv().b[3][1]++, "locales/{{lng}}/{{ns}}.json"),
2180
2180
  crossDomain: true,
2181
2181
  ...options?.backendHttpOptions
2182
2182
  };
2183
- cov_1wctd2lw3r().s[12]++;
2183
+ cov_ogldeftyv().s[12]++;
2184
2184
  this._detectionOptions = {
2185
2185
  order: ["querystring", "navigator", "htmlTag"],
2186
2186
  lookupQuerystring: "lng",
2187
2187
  caches: [],
2188
2188
  ...options?.detectorOptions
2189
2189
  };
2190
- cov_1wctd2lw3r().s[13]++;
2190
+ cov_ogldeftyv().s[13]++;
2191
2191
  this._initOptions = {
2192
2192
  interpolation: {
2193
2193
  escapeValue: true
@@ -2198,40 +2198,40 @@ class ITwinLocalization {
2198
2198
  detection: this._detectionOptions,
2199
2199
  ...options?.initOptions
2200
2200
  };
2201
- cov_1wctd2lw3r().s[14]++;
2202
- this.i18next.use((cov_1wctd2lw3r().b[4][0]++, options?.detectorPlugin) ?? (cov_1wctd2lw3r().b[4][1]++, i18next_browser_languagedetector_1.default)).use((cov_1wctd2lw3r().b[5][0]++, options?.backendPlugin) ?? (cov_1wctd2lw3r().b[5][1]++, i18next_http_backend_1.default)).use(TranslationLogger);
2201
+ cov_ogldeftyv().s[14]++;
2202
+ this.i18next.use((cov_ogldeftyv().b[4][0]++, options?.detectorPlugin) ?? (cov_ogldeftyv().b[4][1]++, i18next_browser_languagedetector_1.default)).use((cov_ogldeftyv().b[5][0]++, options?.backendPlugin) ?? (cov_ogldeftyv().b[5][1]++, i18next_http_backend_1.default)).use(TranslationLogger);
2203
2203
  }
2204
2204
  async initialize(namespaces) {
2205
- cov_1wctd2lw3r().f[2]++;
2205
+ cov_ogldeftyv().f[2]++;
2206
2206
  // Also consider namespaces passed into constructor
2207
- const initNamespaces = (cov_1wctd2lw3r().s[15]++, [(cov_1wctd2lw3r().b[6][0]++, this._initOptions.ns) || (cov_1wctd2lw3r().b[6][1]++, [])].flat());
2208
- const combinedNamespaces = (cov_1wctd2lw3r().s[16]++, new Set([...namespaces, ...initNamespaces])); // without duplicates
2209
- const defaultNamespace = (cov_1wctd2lw3r().s[17]++, (cov_1wctd2lw3r().b[7][0]++, this._initOptions.defaultNS) ?? (cov_1wctd2lw3r().b[7][1]++, namespaces[0]));
2210
- cov_1wctd2lw3r().s[18]++;
2207
+ const initNamespaces = (cov_ogldeftyv().s[15]++, [(cov_ogldeftyv().b[6][0]++, this._initOptions.ns) || (cov_ogldeftyv().b[6][1]++, [])].flat());
2208
+ const combinedNamespaces = (cov_ogldeftyv().s[16]++, new Set([...namespaces, ...initNamespaces])); // without duplicates
2209
+ const defaultNamespace = (cov_ogldeftyv().s[17]++, (cov_ogldeftyv().b[7][0]++, this._initOptions.defaultNS) ?? (cov_ogldeftyv().b[7][1]++, namespaces[0]));
2210
+ cov_ogldeftyv().s[18]++;
2211
2211
  if (defaultNamespace) {
2212
- cov_1wctd2lw3r().b[8][0]++;
2213
- cov_1wctd2lw3r().s[19]++;
2212
+ cov_ogldeftyv().b[8][0]++;
2213
+ cov_ogldeftyv().s[19]++;
2214
2214
  combinedNamespaces.add(defaultNamespace);
2215
2215
  } else {
2216
- cov_1wctd2lw3r().b[8][1]++;
2216
+ cov_ogldeftyv().b[8][1]++;
2217
2217
  } // Make sure default namespace is in namespaces list
2218
- const initOptions = (cov_1wctd2lw3r().s[20]++, {
2218
+ const initOptions = (cov_ogldeftyv().s[20]++, {
2219
2219
  ...this._initOptions,
2220
2220
  defaultNS: defaultNamespace,
2221
2221
  ns: [...combinedNamespaces]
2222
2222
  });
2223
2223
  // if in a development environment, set debugging
2224
- cov_1wctd2lw3r().s[21]++;
2224
+ cov_ogldeftyv().s[21]++;
2225
2225
  if (false) {} else {
2226
- cov_1wctd2lw3r().b[9][1]++;
2226
+ cov_ogldeftyv().b[9][1]++;
2227
2227
  }
2228
- const initPromise = (cov_1wctd2lw3r().s[23]++, this.i18next.init(initOptions));
2229
- cov_1wctd2lw3r().s[24]++;
2228
+ const initPromise = (cov_ogldeftyv().s[23]++, this.i18next.init(initOptions));
2229
+ cov_ogldeftyv().s[24]++;
2230
2230
  for (const ns of namespaces) {
2231
- cov_1wctd2lw3r().s[25]++;
2231
+ cov_ogldeftyv().s[25]++;
2232
2232
  this._namespaces.set(ns, initPromise);
2233
2233
  }
2234
- cov_1wctd2lw3r().s[26]++;
2234
+ cov_ogldeftyv().s[26]++;
2235
2235
  return initPromise;
2236
2236
  }
2237
2237
  /** Replace all instances of `%{key}` within a string with the translations of those keys.
@@ -2251,11 +2251,11 @@ class ITwinLocalization {
2251
2251
  * @public
2252
2252
  */
2253
2253
  getLocalizedKeys(line) {
2254
- cov_1wctd2lw3r().f[3]++;
2255
- cov_1wctd2lw3r().s[27]++;
2254
+ cov_ogldeftyv().f[3]++;
2255
+ cov_ogldeftyv().s[27]++;
2256
2256
  return line.replace(/\%\{(.+?)\}/g, (_match, tag) => {
2257
- cov_1wctd2lw3r().f[4]++;
2258
- cov_1wctd2lw3r().s[28]++;
2257
+ cov_ogldeftyv().f[4]++;
2258
+ cov_ogldeftyv().s[28]++;
2259
2259
  return this.getLocalizedString(tag);
2260
2260
  });
2261
2261
  }
@@ -2273,25 +2273,25 @@ class ITwinLocalization {
2273
2273
  * @public
2274
2274
  */
2275
2275
  getLocalizedString(key, options) {
2276
- cov_1wctd2lw3r().f[5]++;
2277
- cov_1wctd2lw3r().s[29]++;
2278
- if ((cov_1wctd2lw3r().b[11][0]++, options?.returnDetails) || (cov_1wctd2lw3r().b[11][1]++, options?.returnObjects)) {
2279
- cov_1wctd2lw3r().b[10][0]++;
2280
- cov_1wctd2lw3r().s[30]++;
2276
+ cov_ogldeftyv().f[5]++;
2277
+ cov_ogldeftyv().s[29]++;
2278
+ if ((cov_ogldeftyv().b[11][0]++, options?.returnDetails) || (cov_ogldeftyv().b[11][1]++, options?.returnObjects)) {
2279
+ cov_ogldeftyv().b[10][0]++;
2280
+ cov_ogldeftyv().s[30]++;
2281
2281
  throw new Error("Translation key must map to a string, but the given options will result in an object");
2282
2282
  } else {
2283
- cov_1wctd2lw3r().b[10][1]++;
2283
+ cov_ogldeftyv().b[10][1]++;
2284
2284
  }
2285
- const value = (cov_1wctd2lw3r().s[31]++, this.i18next.t(key, options));
2286
- cov_1wctd2lw3r().s[32]++;
2285
+ const value = (cov_ogldeftyv().s[31]++, this.i18next.t(key, options));
2286
+ cov_ogldeftyv().s[32]++;
2287
2287
  if (typeof value !== "string") {
2288
- cov_1wctd2lw3r().b[12][0]++;
2289
- cov_1wctd2lw3r().s[33]++;
2288
+ cov_ogldeftyv().b[12][0]++;
2289
+ cov_ogldeftyv().s[33]++;
2290
2290
  throw new Error("Translation key(s) string not found");
2291
2291
  } else {
2292
- cov_1wctd2lw3r().b[12][1]++;
2292
+ cov_ogldeftyv().b[12][1]++;
2293
2293
  }
2294
- cov_1wctd2lw3r().s[34]++;
2294
+ cov_ogldeftyv().s[34]++;
2295
2295
  return value;
2296
2296
  }
2297
2297
  /** Gets the English translation.
@@ -2302,31 +2302,31 @@ class ITwinLocalization {
2302
2302
  * @internal
2303
2303
  */
2304
2304
  getEnglishString(namespace, key, options) {
2305
- cov_1wctd2lw3r().f[6]++;
2306
- cov_1wctd2lw3r().s[35]++;
2307
- if ((cov_1wctd2lw3r().b[14][0]++, options?.returnDetails) || (cov_1wctd2lw3r().b[14][1]++, options?.returnObjects)) {
2308
- cov_1wctd2lw3r().b[13][0]++;
2309
- cov_1wctd2lw3r().s[36]++;
2305
+ cov_ogldeftyv().f[6]++;
2306
+ cov_ogldeftyv().s[35]++;
2307
+ if ((cov_ogldeftyv().b[14][0]++, options?.returnDetails) || (cov_ogldeftyv().b[14][1]++, options?.returnObjects)) {
2308
+ cov_ogldeftyv().b[13][0]++;
2309
+ cov_ogldeftyv().s[36]++;
2310
2310
  throw new Error("Translation key must map to a string, but the given options will result in an object");
2311
2311
  } else {
2312
- cov_1wctd2lw3r().b[13][1]++;
2312
+ cov_ogldeftyv().b[13][1]++;
2313
2313
  }
2314
- cov_1wctd2lw3r().s[37]++;
2314
+ cov_ogldeftyv().s[37]++;
2315
2315
  options = {
2316
2316
  ...options,
2317
2317
  ns: namespace // ensure namespace argument is used
2318
2318
  };
2319
- const en = (cov_1wctd2lw3r().s[38]++, this.i18next.getFixedT("en", namespace));
2320
- const str = (cov_1wctd2lw3r().s[39]++, en(key, options));
2321
- cov_1wctd2lw3r().s[40]++;
2319
+ const en = (cov_ogldeftyv().s[38]++, this.i18next.getFixedT("en", namespace));
2320
+ const str = (cov_ogldeftyv().s[39]++, en(key, options));
2321
+ cov_ogldeftyv().s[40]++;
2322
2322
  if (typeof str !== "string") {
2323
- cov_1wctd2lw3r().b[15][0]++;
2324
- cov_1wctd2lw3r().s[41]++;
2323
+ cov_ogldeftyv().b[15][0]++;
2324
+ cov_ogldeftyv().s[41]++;
2325
2325
  throw new Error("Translation key(s) not found");
2326
2326
  } else {
2327
- cov_1wctd2lw3r().b[15][1]++;
2327
+ cov_ogldeftyv().b[15][1]++;
2328
2328
  }
2329
- cov_1wctd2lw3r().s[42]++;
2329
+ cov_ogldeftyv().s[42]++;
2330
2330
  return str;
2331
2331
  }
2332
2332
  /** Get the promise for an already registered Namespace.
@@ -2334,20 +2334,20 @@ class ITwinLocalization {
2334
2334
  * @public
2335
2335
  */
2336
2336
  getNamespacePromise(name) {
2337
- cov_1wctd2lw3r().f[7]++;
2338
- cov_1wctd2lw3r().s[43]++;
2337
+ cov_ogldeftyv().f[7]++;
2338
+ cov_ogldeftyv().s[43]++;
2339
2339
  return this._namespaces.get(name);
2340
2340
  }
2341
2341
  /** @internal */
2342
2342
  getLanguageList() {
2343
- cov_1wctd2lw3r().f[8]++;
2344
- cov_1wctd2lw3r().s[44]++;
2343
+ cov_ogldeftyv().f[8]++;
2344
+ cov_ogldeftyv().s[44]++;
2345
2345
  return this.i18next.languages;
2346
2346
  }
2347
2347
  /** override the language detected in the browser */
2348
2348
  async changeLanguage(language) {
2349
- cov_1wctd2lw3r().f[9]++;
2350
- cov_1wctd2lw3r().s[45]++;
2349
+ cov_ogldeftyv().f[9]++;
2350
+ cov_ogldeftyv().s[45]++;
2351
2351
  return this.i18next.changeLanguage(language);
2352
2352
  }
2353
2353
  /** Register a new Namespace and return it. If the namespace is already registered, it will be returned.
@@ -2359,120 +2359,120 @@ class ITwinLocalization {
2359
2359
  * @public
2360
2360
  */
2361
2361
  async registerNamespace(name) {
2362
- cov_1wctd2lw3r().f[10]++;
2363
- const existing = (cov_1wctd2lw3r().s[46]++, this._namespaces.get(name));
2364
- cov_1wctd2lw3r().s[47]++;
2362
+ cov_ogldeftyv().f[10]++;
2363
+ const existing = (cov_ogldeftyv().s[46]++, this._namespaces.get(name));
2364
+ cov_ogldeftyv().s[47]++;
2365
2365
  if (existing !== undefined) {
2366
- cov_1wctd2lw3r().b[16][0]++;
2367
- cov_1wctd2lw3r().s[48]++;
2366
+ cov_ogldeftyv().b[16][0]++;
2367
+ cov_ogldeftyv().s[48]++;
2368
2368
  return existing;
2369
2369
  } else {
2370
- cov_1wctd2lw3r().b[16][1]++;
2370
+ cov_ogldeftyv().b[16][1]++;
2371
2371
  }
2372
- const theReadPromise = (cov_1wctd2lw3r().s[49]++, new Promise(resolve => {
2373
- cov_1wctd2lw3r().f[11]++;
2374
- cov_1wctd2lw3r().s[50]++;
2372
+ const theReadPromise = (cov_ogldeftyv().s[49]++, new Promise(resolve => {
2373
+ cov_ogldeftyv().f[11]++;
2374
+ cov_ogldeftyv().s[50]++;
2375
2375
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
2376
2376
  this.i18next.loadNamespaces(name, err => {
2377
- cov_1wctd2lw3r().f[12]++;
2378
- cov_1wctd2lw3r().s[51]++;
2377
+ cov_ogldeftyv().f[12]++;
2378
+ cov_ogldeftyv().s[51]++;
2379
2379
  if (!err) {
2380
- cov_1wctd2lw3r().b[17][0]++;
2381
- cov_1wctd2lw3r().s[52]++;
2380
+ cov_ogldeftyv().b[17][0]++;
2381
+ cov_ogldeftyv().s[52]++;
2382
2382
  return resolve();
2383
2383
  } else {
2384
- cov_1wctd2lw3r().b[17][1]++;
2384
+ cov_ogldeftyv().b[17][1]++;
2385
2385
  }
2386
2386
  // Here we got a non-null err object.
2387
2387
  // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
2388
2388
  // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
2389
2389
  // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
2390
2390
  // 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.
2391
- let locales = (cov_1wctd2lw3r().s[53]++, this.getLanguageList().map(thisLocale => {
2392
- cov_1wctd2lw3r().f[13]++;
2393
- cov_1wctd2lw3r().s[54]++;
2391
+ let locales = (cov_ogldeftyv().s[53]++, this.getLanguageList().map(thisLocale => {
2392
+ cov_ogldeftyv().f[13]++;
2393
+ cov_ogldeftyv().s[54]++;
2394
2394
  return `/${thisLocale}/`;
2395
2395
  }));
2396
- cov_1wctd2lw3r().s[55]++;
2396
+ cov_ogldeftyv().s[55]++;
2397
2397
  try {
2398
- cov_1wctd2lw3r().s[56]++;
2398
+ cov_ogldeftyv().s[56]++;
2399
2399
  for (const thisError of err) {
2400
- cov_1wctd2lw3r().s[57]++;
2400
+ cov_ogldeftyv().s[57]++;
2401
2401
  if (typeof thisError === "string") {
2402
- cov_1wctd2lw3r().b[18][0]++;
2403
- cov_1wctd2lw3r().s[58]++;
2402
+ cov_ogldeftyv().b[18][0]++;
2403
+ cov_ogldeftyv().s[58]++;
2404
2404
  locales = locales.filter(thisLocale => {
2405
- cov_1wctd2lw3r().f[14]++;
2406
- cov_1wctd2lw3r().s[59]++;
2405
+ cov_ogldeftyv().f[14]++;
2406
+ cov_ogldeftyv().s[59]++;
2407
2407
  return !thisError.includes(thisLocale);
2408
2408
  });
2409
2409
  } else {
2410
- cov_1wctd2lw3r().b[18][1]++;
2410
+ cov_ogldeftyv().b[18][1]++;
2411
2411
  }
2412
2412
  }
2413
2413
  } catch {
2414
- cov_1wctd2lw3r().s[60]++;
2414
+ cov_ogldeftyv().s[60]++;
2415
2415
  locales = [];
2416
2416
  }
2417
2417
  // if we removed every locale from the array, it wasn't loaded.
2418
- cov_1wctd2lw3r().s[61]++;
2418
+ cov_ogldeftyv().s[61]++;
2419
2419
  if (locales.length === 0) {
2420
- cov_1wctd2lw3r().b[19][0]++;
2421
- cov_1wctd2lw3r().s[62]++;
2420
+ cov_ogldeftyv().b[19][0]++;
2421
+ cov_ogldeftyv().s[62]++;
2422
2422
  core_bentley_1.Logger.logError("i18n", `No resources for namespace ${name} could be loaded`);
2423
2423
  } else {
2424
- cov_1wctd2lw3r().b[19][1]++;
2424
+ cov_ogldeftyv().b[19][1]++;
2425
2425
  }
2426
- cov_1wctd2lw3r().s[63]++;
2426
+ cov_ogldeftyv().s[63]++;
2427
2427
  resolve();
2428
2428
  });
2429
2429
  }));
2430
- cov_1wctd2lw3r().s[64]++;
2430
+ cov_ogldeftyv().s[64]++;
2431
2431
  this._namespaces.set(name, theReadPromise);
2432
- cov_1wctd2lw3r().s[65]++;
2432
+ cov_ogldeftyv().s[65]++;
2433
2433
  return theReadPromise;
2434
2434
  }
2435
2435
  /** @internal */
2436
2436
  unregisterNamespace(name) {
2437
- cov_1wctd2lw3r().f[15]++;
2438
- cov_1wctd2lw3r().s[66]++;
2437
+ cov_ogldeftyv().f[15]++;
2438
+ cov_ogldeftyv().s[66]++;
2439
2439
  this._namespaces.delete(name);
2440
2440
  }
2441
2441
  }
2442
- cov_1wctd2lw3r().s[67]++;
2442
+ cov_ogldeftyv().s[67]++;
2443
2443
  exports.ITwinLocalization = ITwinLocalization;
2444
2444
  class TranslationLogger {
2445
- static type = (cov_1wctd2lw3r().s[68]++, "logger");
2445
+ static type = (cov_ogldeftyv().s[68]++, "logger");
2446
2446
  log(args) {
2447
- cov_1wctd2lw3r().f[16]++;
2448
- cov_1wctd2lw3r().s[69]++;
2447
+ cov_ogldeftyv().f[16]++;
2448
+ cov_ogldeftyv().s[69]++;
2449
2449
  core_bentley_1.Logger.logInfo("i18n", this.createLogMessage(args));
2450
2450
  }
2451
2451
  warn(args) {
2452
- cov_1wctd2lw3r().f[17]++;
2453
- cov_1wctd2lw3r().s[70]++;
2452
+ cov_ogldeftyv().f[17]++;
2453
+ cov_ogldeftyv().s[70]++;
2454
2454
  core_bentley_1.Logger.logWarning("i18n", this.createLogMessage(args));
2455
2455
  }
2456
2456
  error(args) {
2457
- cov_1wctd2lw3r().f[18]++;
2458
- cov_1wctd2lw3r().s[71]++;
2457
+ cov_ogldeftyv().f[18]++;
2458
+ cov_ogldeftyv().s[71]++;
2459
2459
  core_bentley_1.Logger.logError("i18n", this.createLogMessage(args));
2460
2460
  }
2461
2461
  createLogMessage(args) {
2462
- cov_1wctd2lw3r().f[19]++;
2463
- let message = (cov_1wctd2lw3r().s[72]++, args[0]);
2464
- cov_1wctd2lw3r().s[73]++;
2465
- for (let i = (cov_1wctd2lw3r().s[74]++, 1); i < args.length; ++i) {
2466
- cov_1wctd2lw3r().s[75]++;
2462
+ cov_ogldeftyv().f[19]++;
2463
+ let message = (cov_ogldeftyv().s[72]++, args[0]);
2464
+ cov_ogldeftyv().s[73]++;
2465
+ for (let i = (cov_ogldeftyv().s[74]++, 1); i < args.length; ++i) {
2466
+ cov_ogldeftyv().s[75]++;
2467
2467
  if (typeof args[i] === "string") {
2468
- cov_1wctd2lw3r().b[20][0]++;
2469
- cov_1wctd2lw3r().s[76]++;
2468
+ cov_ogldeftyv().b[20][0]++;
2469
+ cov_ogldeftyv().s[76]++;
2470
2470
  message += `\n ${args[i]}`;
2471
2471
  } else {
2472
- cov_1wctd2lw3r().b[20][1]++;
2472
+ cov_ogldeftyv().b[20][1]++;
2473
2473
  }
2474
2474
  }
2475
- cov_1wctd2lw3r().s[77]++;
2475
+ cov_ogldeftyv().s[77]++;
2476
2476
  return message;
2477
2477
  }
2478
2478
  }
@@ -12144,570 +12144,6 @@ module.exports = {
12144
12144
  };
12145
12145
 
12146
12146
 
12147
- /***/ }),
12148
-
12149
- /***/ "../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js":
12150
- /*!****************************************************************************************************************!*\
12151
- !*** ../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js ***!
12152
- \****************************************************************************************************************/
12153
- /***/ (function(module, exports) {
12154
-
12155
- var global = typeof self !== 'undefined' ? self : this;
12156
- var __self__ = (function () {
12157
- function F() {
12158
- this.fetch = false;
12159
- this.DOMException = global.DOMException
12160
- }
12161
- F.prototype = global;
12162
- return new F();
12163
- })();
12164
- (function(self) {
12165
-
12166
- var irrelevant = (function (exports) {
12167
-
12168
- var support = {
12169
- searchParams: 'URLSearchParams' in self,
12170
- iterable: 'Symbol' in self && 'iterator' in Symbol,
12171
- blob:
12172
- 'FileReader' in self &&
12173
- 'Blob' in self &&
12174
- (function() {
12175
- try {
12176
- new Blob();
12177
- return true
12178
- } catch (e) {
12179
- return false
12180
- }
12181
- })(),
12182
- formData: 'FormData' in self,
12183
- arrayBuffer: 'ArrayBuffer' in self
12184
- };
12185
-
12186
- function isDataView(obj) {
12187
- return obj && DataView.prototype.isPrototypeOf(obj)
12188
- }
12189
-
12190
- if (support.arrayBuffer) {
12191
- var viewClasses = [
12192
- '[object Int8Array]',
12193
- '[object Uint8Array]',
12194
- '[object Uint8ClampedArray]',
12195
- '[object Int16Array]',
12196
- '[object Uint16Array]',
12197
- '[object Int32Array]',
12198
- '[object Uint32Array]',
12199
- '[object Float32Array]',
12200
- '[object Float64Array]'
12201
- ];
12202
-
12203
- var isArrayBufferView =
12204
- ArrayBuffer.isView ||
12205
- function(obj) {
12206
- return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
12207
- };
12208
- }
12209
-
12210
- function normalizeName(name) {
12211
- if (typeof name !== 'string') {
12212
- name = String(name);
12213
- }
12214
- if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name)) {
12215
- throw new TypeError('Invalid character in header field name')
12216
- }
12217
- return name.toLowerCase()
12218
- }
12219
-
12220
- function normalizeValue(value) {
12221
- if (typeof value !== 'string') {
12222
- value = String(value);
12223
- }
12224
- return value
12225
- }
12226
-
12227
- // Build a destructive iterator for the value list
12228
- function iteratorFor(items) {
12229
- var iterator = {
12230
- next: function() {
12231
- var value = items.shift();
12232
- return {done: value === undefined, value: value}
12233
- }
12234
- };
12235
-
12236
- if (support.iterable) {
12237
- iterator[Symbol.iterator] = function() {
12238
- return iterator
12239
- };
12240
- }
12241
-
12242
- return iterator
12243
- }
12244
-
12245
- function Headers(headers) {
12246
- this.map = {};
12247
-
12248
- if (headers instanceof Headers) {
12249
- headers.forEach(function(value, name) {
12250
- this.append(name, value);
12251
- }, this);
12252
- } else if (Array.isArray(headers)) {
12253
- headers.forEach(function(header) {
12254
- this.append(header[0], header[1]);
12255
- }, this);
12256
- } else if (headers) {
12257
- Object.getOwnPropertyNames(headers).forEach(function(name) {
12258
- this.append(name, headers[name]);
12259
- }, this);
12260
- }
12261
- }
12262
-
12263
- Headers.prototype.append = function(name, value) {
12264
- name = normalizeName(name);
12265
- value = normalizeValue(value);
12266
- var oldValue = this.map[name];
12267
- this.map[name] = oldValue ? oldValue + ', ' + value : value;
12268
- };
12269
-
12270
- Headers.prototype['delete'] = function(name) {
12271
- delete this.map[normalizeName(name)];
12272
- };
12273
-
12274
- Headers.prototype.get = function(name) {
12275
- name = normalizeName(name);
12276
- return this.has(name) ? this.map[name] : null
12277
- };
12278
-
12279
- Headers.prototype.has = function(name) {
12280
- return this.map.hasOwnProperty(normalizeName(name))
12281
- };
12282
-
12283
- Headers.prototype.set = function(name, value) {
12284
- this.map[normalizeName(name)] = normalizeValue(value);
12285
- };
12286
-
12287
- Headers.prototype.forEach = function(callback, thisArg) {
12288
- for (var name in this.map) {
12289
- if (this.map.hasOwnProperty(name)) {
12290
- callback.call(thisArg, this.map[name], name, this);
12291
- }
12292
- }
12293
- };
12294
-
12295
- Headers.prototype.keys = function() {
12296
- var items = [];
12297
- this.forEach(function(value, name) {
12298
- items.push(name);
12299
- });
12300
- return iteratorFor(items)
12301
- };
12302
-
12303
- Headers.prototype.values = function() {
12304
- var items = [];
12305
- this.forEach(function(value) {
12306
- items.push(value);
12307
- });
12308
- return iteratorFor(items)
12309
- };
12310
-
12311
- Headers.prototype.entries = function() {
12312
- var items = [];
12313
- this.forEach(function(value, name) {
12314
- items.push([name, value]);
12315
- });
12316
- return iteratorFor(items)
12317
- };
12318
-
12319
- if (support.iterable) {
12320
- Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
12321
- }
12322
-
12323
- function consumed(body) {
12324
- if (body.bodyUsed) {
12325
- return Promise.reject(new TypeError('Already read'))
12326
- }
12327
- body.bodyUsed = true;
12328
- }
12329
-
12330
- function fileReaderReady(reader) {
12331
- return new Promise(function(resolve, reject) {
12332
- reader.onload = function() {
12333
- resolve(reader.result);
12334
- };
12335
- reader.onerror = function() {
12336
- reject(reader.error);
12337
- };
12338
- })
12339
- }
12340
-
12341
- function readBlobAsArrayBuffer(blob) {
12342
- var reader = new FileReader();
12343
- var promise = fileReaderReady(reader);
12344
- reader.readAsArrayBuffer(blob);
12345
- return promise
12346
- }
12347
-
12348
- function readBlobAsText(blob) {
12349
- var reader = new FileReader();
12350
- var promise = fileReaderReady(reader);
12351
- reader.readAsText(blob);
12352
- return promise
12353
- }
12354
-
12355
- function readArrayBufferAsText(buf) {
12356
- var view = new Uint8Array(buf);
12357
- var chars = new Array(view.length);
12358
-
12359
- for (var i = 0; i < view.length; i++) {
12360
- chars[i] = String.fromCharCode(view[i]);
12361
- }
12362
- return chars.join('')
12363
- }
12364
-
12365
- function bufferClone(buf) {
12366
- if (buf.slice) {
12367
- return buf.slice(0)
12368
- } else {
12369
- var view = new Uint8Array(buf.byteLength);
12370
- view.set(new Uint8Array(buf));
12371
- return view.buffer
12372
- }
12373
- }
12374
-
12375
- function Body() {
12376
- this.bodyUsed = false;
12377
-
12378
- this._initBody = function(body) {
12379
- this._bodyInit = body;
12380
- if (!body) {
12381
- this._bodyText = '';
12382
- } else if (typeof body === 'string') {
12383
- this._bodyText = body;
12384
- } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
12385
- this._bodyBlob = body;
12386
- } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
12387
- this._bodyFormData = body;
12388
- } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
12389
- this._bodyText = body.toString();
12390
- } else if (support.arrayBuffer && support.blob && isDataView(body)) {
12391
- this._bodyArrayBuffer = bufferClone(body.buffer);
12392
- // IE 10-11 can't handle a DataView body.
12393
- this._bodyInit = new Blob([this._bodyArrayBuffer]);
12394
- } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
12395
- this._bodyArrayBuffer = bufferClone(body);
12396
- } else {
12397
- this._bodyText = body = Object.prototype.toString.call(body);
12398
- }
12399
-
12400
- if (!this.headers.get('content-type')) {
12401
- if (typeof body === 'string') {
12402
- this.headers.set('content-type', 'text/plain;charset=UTF-8');
12403
- } else if (this._bodyBlob && this._bodyBlob.type) {
12404
- this.headers.set('content-type', this._bodyBlob.type);
12405
- } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
12406
- this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
12407
- }
12408
- }
12409
- };
12410
-
12411
- if (support.blob) {
12412
- this.blob = function() {
12413
- var rejected = consumed(this);
12414
- if (rejected) {
12415
- return rejected
12416
- }
12417
-
12418
- if (this._bodyBlob) {
12419
- return Promise.resolve(this._bodyBlob)
12420
- } else if (this._bodyArrayBuffer) {
12421
- return Promise.resolve(new Blob([this._bodyArrayBuffer]))
12422
- } else if (this._bodyFormData) {
12423
- throw new Error('could not read FormData body as blob')
12424
- } else {
12425
- return Promise.resolve(new Blob([this._bodyText]))
12426
- }
12427
- };
12428
-
12429
- this.arrayBuffer = function() {
12430
- if (this._bodyArrayBuffer) {
12431
- return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
12432
- } else {
12433
- return this.blob().then(readBlobAsArrayBuffer)
12434
- }
12435
- };
12436
- }
12437
-
12438
- this.text = function() {
12439
- var rejected = consumed(this);
12440
- if (rejected) {
12441
- return rejected
12442
- }
12443
-
12444
- if (this._bodyBlob) {
12445
- return readBlobAsText(this._bodyBlob)
12446
- } else if (this._bodyArrayBuffer) {
12447
- return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
12448
- } else if (this._bodyFormData) {
12449
- throw new Error('could not read FormData body as text')
12450
- } else {
12451
- return Promise.resolve(this._bodyText)
12452
- }
12453
- };
12454
-
12455
- if (support.formData) {
12456
- this.formData = function() {
12457
- return this.text().then(decode)
12458
- };
12459
- }
12460
-
12461
- this.json = function() {
12462
- return this.text().then(JSON.parse)
12463
- };
12464
-
12465
- return this
12466
- }
12467
-
12468
- // HTTP methods whose capitalization should be normalized
12469
- var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
12470
-
12471
- function normalizeMethod(method) {
12472
- var upcased = method.toUpperCase();
12473
- return methods.indexOf(upcased) > -1 ? upcased : method
12474
- }
12475
-
12476
- function Request(input, options) {
12477
- options = options || {};
12478
- var body = options.body;
12479
-
12480
- if (input instanceof Request) {
12481
- if (input.bodyUsed) {
12482
- throw new TypeError('Already read')
12483
- }
12484
- this.url = input.url;
12485
- this.credentials = input.credentials;
12486
- if (!options.headers) {
12487
- this.headers = new Headers(input.headers);
12488
- }
12489
- this.method = input.method;
12490
- this.mode = input.mode;
12491
- this.signal = input.signal;
12492
- if (!body && input._bodyInit != null) {
12493
- body = input._bodyInit;
12494
- input.bodyUsed = true;
12495
- }
12496
- } else {
12497
- this.url = String(input);
12498
- }
12499
-
12500
- this.credentials = options.credentials || this.credentials || 'same-origin';
12501
- if (options.headers || !this.headers) {
12502
- this.headers = new Headers(options.headers);
12503
- }
12504
- this.method = normalizeMethod(options.method || this.method || 'GET');
12505
- this.mode = options.mode || this.mode || null;
12506
- this.signal = options.signal || this.signal;
12507
- this.referrer = null;
12508
-
12509
- if ((this.method === 'GET' || this.method === 'HEAD') && body) {
12510
- throw new TypeError('Body not allowed for GET or HEAD requests')
12511
- }
12512
- this._initBody(body);
12513
- }
12514
-
12515
- Request.prototype.clone = function() {
12516
- return new Request(this, {body: this._bodyInit})
12517
- };
12518
-
12519
- function decode(body) {
12520
- var form = new FormData();
12521
- body
12522
- .trim()
12523
- .split('&')
12524
- .forEach(function(bytes) {
12525
- if (bytes) {
12526
- var split = bytes.split('=');
12527
- var name = split.shift().replace(/\+/g, ' ');
12528
- var value = split.join('=').replace(/\+/g, ' ');
12529
- form.append(decodeURIComponent(name), decodeURIComponent(value));
12530
- }
12531
- });
12532
- return form
12533
- }
12534
-
12535
- function parseHeaders(rawHeaders) {
12536
- var headers = new Headers();
12537
- // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
12538
- // https://tools.ietf.org/html/rfc7230#section-3.2
12539
- var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
12540
- preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
12541
- var parts = line.split(':');
12542
- var key = parts.shift().trim();
12543
- if (key) {
12544
- var value = parts.join(':').trim();
12545
- headers.append(key, value);
12546
- }
12547
- });
12548
- return headers
12549
- }
12550
-
12551
- Body.call(Request.prototype);
12552
-
12553
- function Response(bodyInit, options) {
12554
- if (!options) {
12555
- options = {};
12556
- }
12557
-
12558
- this.type = 'default';
12559
- this.status = options.status === undefined ? 200 : options.status;
12560
- this.ok = this.status >= 200 && this.status < 300;
12561
- this.statusText = 'statusText' in options ? options.statusText : 'OK';
12562
- this.headers = new Headers(options.headers);
12563
- this.url = options.url || '';
12564
- this._initBody(bodyInit);
12565
- }
12566
-
12567
- Body.call(Response.prototype);
12568
-
12569
- Response.prototype.clone = function() {
12570
- return new Response(this._bodyInit, {
12571
- status: this.status,
12572
- statusText: this.statusText,
12573
- headers: new Headers(this.headers),
12574
- url: this.url
12575
- })
12576
- };
12577
-
12578
- Response.error = function() {
12579
- var response = new Response(null, {status: 0, statusText: ''});
12580
- response.type = 'error';
12581
- return response
12582
- };
12583
-
12584
- var redirectStatuses = [301, 302, 303, 307, 308];
12585
-
12586
- Response.redirect = function(url, status) {
12587
- if (redirectStatuses.indexOf(status) === -1) {
12588
- throw new RangeError('Invalid status code')
12589
- }
12590
-
12591
- return new Response(null, {status: status, headers: {location: url}})
12592
- };
12593
-
12594
- exports.DOMException = self.DOMException;
12595
- try {
12596
- new exports.DOMException();
12597
- } catch (err) {
12598
- exports.DOMException = function(message, name) {
12599
- this.message = message;
12600
- this.name = name;
12601
- var error = Error(message);
12602
- this.stack = error.stack;
12603
- };
12604
- exports.DOMException.prototype = Object.create(Error.prototype);
12605
- exports.DOMException.prototype.constructor = exports.DOMException;
12606
- }
12607
-
12608
- function fetch(input, init) {
12609
- return new Promise(function(resolve, reject) {
12610
- var request = new Request(input, init);
12611
-
12612
- if (request.signal && request.signal.aborted) {
12613
- return reject(new exports.DOMException('Aborted', 'AbortError'))
12614
- }
12615
-
12616
- var xhr = new XMLHttpRequest();
12617
-
12618
- function abortXhr() {
12619
- xhr.abort();
12620
- }
12621
-
12622
- xhr.onload = function() {
12623
- var options = {
12624
- status: xhr.status,
12625
- statusText: xhr.statusText,
12626
- headers: parseHeaders(xhr.getAllResponseHeaders() || '')
12627
- };
12628
- options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
12629
- var body = 'response' in xhr ? xhr.response : xhr.responseText;
12630
- resolve(new Response(body, options));
12631
- };
12632
-
12633
- xhr.onerror = function() {
12634
- reject(new TypeError('Network request failed'));
12635
- };
12636
-
12637
- xhr.ontimeout = function() {
12638
- reject(new TypeError('Network request failed'));
12639
- };
12640
-
12641
- xhr.onabort = function() {
12642
- reject(new exports.DOMException('Aborted', 'AbortError'));
12643
- };
12644
-
12645
- xhr.open(request.method, request.url, true);
12646
-
12647
- if (request.credentials === 'include') {
12648
- xhr.withCredentials = true;
12649
- } else if (request.credentials === 'omit') {
12650
- xhr.withCredentials = false;
12651
- }
12652
-
12653
- if ('responseType' in xhr && support.blob) {
12654
- xhr.responseType = 'blob';
12655
- }
12656
-
12657
- request.headers.forEach(function(value, name) {
12658
- xhr.setRequestHeader(name, value);
12659
- });
12660
-
12661
- if (request.signal) {
12662
- request.signal.addEventListener('abort', abortXhr);
12663
-
12664
- xhr.onreadystatechange = function() {
12665
- // DONE (success or failure)
12666
- if (xhr.readyState === 4) {
12667
- request.signal.removeEventListener('abort', abortXhr);
12668
- }
12669
- };
12670
- }
12671
-
12672
- xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);
12673
- })
12674
- }
12675
-
12676
- fetch.polyfill = true;
12677
-
12678
- if (!self.fetch) {
12679
- self.fetch = fetch;
12680
- self.Headers = Headers;
12681
- self.Request = Request;
12682
- self.Response = Response;
12683
- }
12684
-
12685
- exports.Headers = Headers;
12686
- exports.Request = Request;
12687
- exports.Response = Response;
12688
- exports.fetch = fetch;
12689
-
12690
- Object.defineProperty(exports, '__esModule', { value: true });
12691
-
12692
- return exports;
12693
-
12694
- })({});
12695
- })(__self__);
12696
- __self__.fetch.ponyfill = true;
12697
- // Remove "polyfill" property added by whatwg-fetch
12698
- delete __self__.fetch.polyfill;
12699
- // Choose between native implementation (global) or custom implementation (__self__)
12700
- // var ctx = global.fetch ? global : __self__;
12701
- var ctx = __self__; // this line disable service worker support temporarily
12702
- exports = ctx.fetch // To enable: import fetch from 'cross-fetch'
12703
- exports["default"] = ctx.fetch // For TypeScript consumers without esModuleInterop.
12704
- exports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'
12705
- exports.Headers = ctx.Headers
12706
- exports.Request = ctx.Request
12707
- exports.Response = ctx.Response
12708
- module.exports = exports
12709
-
12710
-
12711
12147
  /***/ }),
12712
12148
 
12713
12149
  /***/ "../../common/temp/node_modules/.pnpm/deep-eql@4.1.4/node_modules/deep-eql/index.js":
@@ -25011,66 +24447,154 @@ module.exports = _unsupportedIterableToArray, module.exports.__esModule = true,
25011
24447
 
25012
24448
  /***/ }),
25013
24449
 
25014
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/getFetch.js":
25015
- /*!*************************************************************************************************************************!*\
25016
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/getFetch.js ***!
25017
- \*************************************************************************************************************************/
25018
- /***/ ((module, exports, __webpack_require__) => {
25019
-
25020
- var fetchApi
25021
- if (typeof fetch === 'function') {
25022
- if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
25023
- fetchApi = __webpack_require__.g.fetch
25024
- } else if (typeof window !== 'undefined' && window.fetch) {
25025
- fetchApi = window.fetch
25026
- } else {
25027
- fetchApi = fetch
25028
- }
25029
- }
24450
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
24451
+ /*!*****************************************************************************************************************************!*\
24452
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
24453
+ \*****************************************************************************************************************************/
24454
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25030
24455
 
25031
- if ( true && (typeof window === 'undefined' || typeof window.document === 'undefined')) {
25032
- var f = fetchApi || __webpack_require__(/*! cross-fetch */ "../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js")
25033
- if (f.default) f = f.default
25034
- exports["default"] = f
25035
- module.exports = exports.default
24456
+ "use strict";
24457
+ __webpack_require__.r(__webpack_exports__);
24458
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24459
+ /* harmony export */ "default": () => (/* binding */ _classCallCheck)
24460
+ /* harmony export */ });
24461
+ function _classCallCheck(a, n) {
24462
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
25036
24463
  }
25037
24464
 
25038
24465
 
25039
24466
  /***/ }),
25040
24467
 
25041
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/index.js":
25042
- /*!**********************************************************************************************************************!*\
25043
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/index.js ***!
25044
- \**********************************************************************************************************************/
25045
- /***/ ((module, exports, __webpack_require__) => {
24468
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/createClass.js":
24469
+ /*!**************************************************************************************************************************!*\
24470
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
24471
+ \**************************************************************************************************************************/
24472
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25046
24473
 
25047
24474
  "use strict";
24475
+ __webpack_require__.r(__webpack_exports__);
24476
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24477
+ /* harmony export */ "default": () => (/* binding */ _createClass)
24478
+ /* harmony export */ });
24479
+ /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
25048
24480
 
24481
+ function _defineProperties(e, r) {
24482
+ for (var t = 0; t < r.length; t++) {
24483
+ var o = r[t];
24484
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o.key), o);
24485
+ }
24486
+ }
24487
+ function _createClass(e, r, t) {
24488
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
24489
+ writable: !1
24490
+ }), e;
24491
+ }
25049
24492
 
25050
- Object.defineProperty(exports, "__esModule", ({
25051
- value: true
25052
- }));
25053
- exports["default"] = void 0;
25054
-
25055
- var _utils = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/utils.js");
25056
-
25057
- var _request = _interopRequireDefault(__webpack_require__(/*! ./request.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/request.js"));
25058
-
25059
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25060
-
25061
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25062
24493
 
25063
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
24494
+ /***/ }),
25064
24495
 
25065
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
24496
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
24497
+ /*!**************************************************************************************************************************!*\
24498
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
24499
+ \**************************************************************************************************************************/
24500
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25066
24501
 
25067
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24502
+ "use strict";
24503
+ __webpack_require__.r(__webpack_exports__);
24504
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24505
+ /* harmony export */ "default": () => (/* binding */ toPrimitive)
24506
+ /* harmony export */ });
24507
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/typeof.js");
25068
24508
 
25069
- var getDefaults = function getDefaults() {
25070
- return {
25071
- loadPath: '/locales/{{lng}}/{{ns}}.json',
24509
+ function toPrimitive(t, r) {
24510
+ if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
24511
+ var e = t[Symbol.toPrimitive];
24512
+ if (void 0 !== e) {
24513
+ var i = e.call(t, r || "default");
24514
+ if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
24515
+ throw new TypeError("@@toPrimitive must return a primitive value.");
24516
+ }
24517
+ return ("string" === r ? String : Number)(t);
24518
+ }
24519
+
24520
+
24521
+ /***/ }),
24522
+
24523
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
24524
+ /*!****************************************************************************************************************************!*\
24525
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
24526
+ \****************************************************************************************************************************/
24527
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
24528
+
24529
+ "use strict";
24530
+ __webpack_require__.r(__webpack_exports__);
24531
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24532
+ /* harmony export */ "default": () => (/* binding */ toPropertyKey)
24533
+ /* harmony export */ });
24534
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/typeof.js");
24535
+ /* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
24536
+
24537
+
24538
+ function toPropertyKey(t) {
24539
+ var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string");
24540
+ return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + "";
24541
+ }
24542
+
24543
+
24544
+ /***/ }),
24545
+
24546
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/typeof.js":
24547
+ /*!*********************************************************************************************************************!*\
24548
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
24549
+ \*********************************************************************************************************************/
24550
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
24551
+
24552
+ "use strict";
24553
+ __webpack_require__.r(__webpack_exports__);
24554
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24555
+ /* harmony export */ "default": () => (/* binding */ _typeof)
24556
+ /* harmony export */ });
24557
+ function _typeof(o) {
24558
+ "@babel/helpers - typeof";
24559
+
24560
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
24561
+ return typeof o;
24562
+ } : function (o) {
24563
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
24564
+ }, _typeof(o);
24565
+ }
24566
+
24567
+
24568
+ /***/ }),
24569
+
24570
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/index.js":
24571
+ /*!**********************************************************************************************************************!*\
24572
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/index.js ***!
24573
+ \**********************************************************************************************************************/
24574
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
24575
+
24576
+ "use strict";
24577
+ __webpack_require__.r(__webpack_exports__);
24578
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24579
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
24580
+ /* harmony export */ });
24581
+ /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/utils.js");
24582
+ /* harmony import */ var _request_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./request.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/request.js");
24583
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
24584
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
24585
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24586
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
24587
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
24588
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
24589
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
24590
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
24591
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
24592
+
24593
+
24594
+ var getDefaults = function getDefaults() {
24595
+ return {
24596
+ loadPath: '/locales/{{lng}}/{{ns}}.json',
25072
24597
  addPath: '/locales/add/{{lng}}/{{ns}}',
25073
- allowMultiLoading: false,
25074
24598
  parse: function parse(data) {
25075
24599
  return JSON.parse(data);
25076
24600
  },
@@ -25078,7 +24602,10 @@ var getDefaults = function getDefaults() {
25078
24602
  parsePayload: function parsePayload(namespace, key, fallbackValue) {
25079
24603
  return _defineProperty({}, key, fallbackValue || '');
25080
24604
  },
25081
- request: _request.default,
24605
+ parseLoadPayload: function parseLoadPayload(languages, namespaces) {
24606
+ return undefined;
24607
+ },
24608
+ request: _request_js__WEBPACK_IMPORTED_MODULE_1__["default"],
25082
24609
  reloadInterval: typeof window !== 'undefined' ? false : 60 * 60 * 1000,
25083
24610
  customHeaders: {},
25084
24611
  queryStringParams: {},
@@ -25092,36 +24619,31 @@ var getDefaults = function getDefaults() {
25092
24619
  }
25093
24620
  };
25094
24621
  };
25095
-
25096
24622
  var Backend = function () {
25097
24623
  function Backend(services) {
25098
24624
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
25099
24625
  var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
25100
-
25101
24626
  _classCallCheck(this, Backend);
25102
-
25103
24627
  this.services = services;
25104
24628
  this.options = options;
25105
24629
  this.allOptions = allOptions;
25106
24630
  this.type = 'backend';
25107
24631
  this.init(services, options, allOptions);
25108
24632
  }
25109
-
25110
- _createClass(Backend, [{
24633
+ return _createClass(Backend, [{
25111
24634
  key: "init",
25112
24635
  value: function init(services) {
25113
24636
  var _this = this;
25114
-
25115
24637
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
25116
24638
  var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
25117
24639
  this.services = services;
25118
- this.options = (0, _utils.defaults)(options, this.options || {}, getDefaults());
24640
+ this.options = _objectSpread(_objectSpread(_objectSpread({}, getDefaults()), this.options || {}), options);
25119
24641
  this.allOptions = allOptions;
25120
-
25121
24642
  if (this.services && this.options.reloadInterval) {
25122
- setInterval(function () {
24643
+ var timer = setInterval(function () {
25123
24644
  return _this.reload();
25124
24645
  }, this.options.reloadInterval);
24646
+ if (_typeof(timer) === 'object' && typeof timer.unref === 'function') timer.unref();
25125
24647
  }
25126
24648
  }
25127
24649
  }, {
@@ -25138,22 +24660,17 @@ var Backend = function () {
25138
24660
  key: "_readAny",
25139
24661
  value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
25140
24662
  var _this2 = this;
25141
-
25142
24663
  var loadPath = this.options.loadPath;
25143
-
25144
24664
  if (typeof this.options.loadPath === 'function') {
25145
24665
  loadPath = this.options.loadPath(languages, namespaces);
25146
24666
  }
25147
-
25148
- loadPath = (0, _utils.makePromise)(loadPath);
24667
+ loadPath = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.makePromise)(loadPath);
25149
24668
  loadPath.then(function (resolvedLoadPath) {
25150
24669
  if (!resolvedLoadPath) return callback(null, {});
25151
-
25152
24670
  var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {
25153
24671
  lng: languages.join('+'),
25154
24672
  ns: namespaces.join('+')
25155
24673
  });
25156
-
25157
24674
  _this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
25158
24675
  });
25159
24676
  }
@@ -25161,14 +24678,23 @@ var Backend = function () {
25161
24678
  key: "loadUrl",
25162
24679
  value: function loadUrl(url, callback, languages, namespaces) {
25163
24680
  var _this3 = this;
25164
-
25165
- this.options.request(this.options, url, undefined, function (err, res) {
24681
+ var lng = typeof languages === 'string' ? [languages] : languages;
24682
+ var ns = typeof namespaces === 'string' ? [namespaces] : namespaces;
24683
+ var payload = this.options.parseLoadPayload(lng, ns);
24684
+ this.options.request(this.options, url, payload, function (err, res) {
25166
24685
  if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback('failed loading ' + url + '; status code: ' + res.status, true);
25167
24686
  if (res && res.status >= 400 && res.status < 500) return callback('failed loading ' + url + '; status code: ' + res.status, false);
25168
- if (!res && err && err.message && err.message.indexOf('Failed to fetch') > -1) return callback('failed loading ' + url + ': ' + err.message, true);
24687
+ if (!res && err && err.message) {
24688
+ var errorMessage = err.message.toLowerCase();
24689
+ var isNetworkError = ['failed', 'fetch', 'network', 'load'].find(function (term) {
24690
+ return errorMessage.indexOf(term) > -1;
24691
+ });
24692
+ if (isNetworkError) {
24693
+ return callback('failed loading ' + url + ': ' + err.message, true);
24694
+ }
24695
+ }
25169
24696
  if (err) return callback(err, false);
25170
24697
  var ret, parseErr;
25171
-
25172
24698
  try {
25173
24699
  if (typeof res.data === 'string') {
25174
24700
  ret = _this3.options.parse(res.data, languages, namespaces);
@@ -25178,7 +24704,6 @@ var Backend = function () {
25178
24704
  } catch (e) {
25179
24705
  parseErr = 'failed parsing ' + url + ' to json';
25180
24706
  }
25181
-
25182
24707
  if (parseErr) return callback(parseErr, false);
25183
24708
  callback(null, ret);
25184
24709
  });
@@ -25187,7 +24712,6 @@ var Backend = function () {
25187
24712
  key: "create",
25188
24713
  value: function create(languages, namespace, key, fallbackValue, callback) {
25189
24714
  var _this4 = this;
25190
-
25191
24715
  if (!this.options.addPath) return;
25192
24716
  if (typeof languages === 'string') languages = [languages];
25193
24717
  var payload = this.options.parsePayload(namespace, key, fallbackValue);
@@ -25196,23 +24720,19 @@ var Backend = function () {
25196
24720
  var resArray = [];
25197
24721
  languages.forEach(function (lng) {
25198
24722
  var addPath = _this4.options.addPath;
25199
-
25200
24723
  if (typeof _this4.options.addPath === 'function') {
25201
24724
  addPath = _this4.options.addPath(lng, namespace);
25202
24725
  }
25203
-
25204
24726
  var url = _this4.services.interpolator.interpolate(addPath, {
25205
24727
  lng: lng,
25206
24728
  ns: namespace
25207
24729
  });
25208
-
25209
24730
  _this4.options.request(_this4.options, url, payload, function (data, res) {
25210
24731
  finished += 1;
25211
24732
  dataArray.push(data);
25212
24733
  resArray.push(res);
25213
-
25214
24734
  if (finished === languages.length) {
25215
- if (callback) callback(dataArray, resArray);
24735
+ if (typeof callback === 'function') callback(dataArray, resArray);
25216
24736
  }
25217
24737
  });
25218
24738
  });
@@ -25221,22 +24741,19 @@ var Backend = function () {
25221
24741
  key: "reload",
25222
24742
  value: function reload() {
25223
24743
  var _this5 = this;
25224
-
25225
24744
  var _this$services = this.services,
25226
- backendConnector = _this$services.backendConnector,
25227
- languageUtils = _this$services.languageUtils,
25228
- logger = _this$services.logger;
24745
+ backendConnector = _this$services.backendConnector,
24746
+ languageUtils = _this$services.languageUtils,
24747
+ logger = _this$services.logger;
25229
24748
  var currentLanguage = backendConnector.language;
25230
24749
  if (currentLanguage && currentLanguage.toLowerCase() === 'cimode') return;
25231
24750
  var toLoad = [];
25232
-
25233
24751
  var append = function append(lng) {
25234
24752
  var lngs = languageUtils.toResolveHierarchy(lng);
25235
24753
  lngs.forEach(function (l) {
25236
24754
  if (toLoad.indexOf(l) < 0) toLoad.push(l);
25237
24755
  });
25238
24756
  };
25239
-
25240
24757
  append(currentLanguage);
25241
24758
  if (this.allOptions.preload) this.allOptions.preload.forEach(function (l) {
25242
24759
  return append(l);
@@ -25252,93 +24769,74 @@ var Backend = function () {
25252
24769
  });
25253
24770
  }
25254
24771
  }]);
25255
-
25256
- return Backend;
25257
24772
  }();
25258
-
25259
24773
  Backend.type = 'backend';
25260
- var _default = Backend;
25261
- exports["default"] = _default;
25262
- module.exports = exports.default;
24774
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
25263
24775
 
25264
24776
  /***/ }),
25265
24777
 
25266
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/request.js":
24778
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/request.js":
25267
24779
  /*!************************************************************************************************************************!*\
25268
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/request.js ***!
24780
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/request.js ***!
25269
24781
  \************************************************************************************************************************/
25270
- /***/ ((module, exports, __webpack_require__) => {
24782
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25271
24783
 
25272
24784
  "use strict";
25273
-
25274
-
25275
- Object.defineProperty(exports, "__esModule", ({
25276
- value: true
25277
- }));
25278
- exports["default"] = void 0;
25279
-
25280
- var _utils = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/utils.js");
25281
-
25282
- var fetchNode = _interopRequireWildcard(__webpack_require__(/*! ./getFetch.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/getFetch.js"));
25283
-
25284
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25285
-
25286
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25287
-
25288
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
25289
-
25290
- var fetchApi;
25291
-
25292
- if (typeof fetch === 'function') {
25293
- if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
25294
- fetchApi = __webpack_require__.g.fetch;
25295
- } else if (typeof window !== 'undefined' && window.fetch) {
25296
- fetchApi = window.fetch;
25297
- } else {
25298
- fetchApi = fetch;
25299
- }
24785
+ __webpack_require__.r(__webpack_exports__);
24786
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24787
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
24788
+ /* harmony export */ });
24789
+ /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/utils.js");
24790
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
24791
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24792
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
24793
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
24794
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
24795
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
24796
+
24797
+ var fetchApi = typeof fetch === 'function' ? fetch : undefined;
24798
+ if (typeof global !== 'undefined' && global.fetch) {
24799
+ fetchApi = global.fetch;
24800
+ } else if (typeof window !== 'undefined' && window.fetch) {
24801
+ fetchApi = window.fetch;
25300
24802
  }
25301
-
25302
24803
  var XmlHttpRequestApi;
25303
-
25304
- if ((0, _utils.hasXMLHttpRequest)()) {
25305
- if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.XMLHttpRequest) {
25306
- XmlHttpRequestApi = __webpack_require__.g.XMLHttpRequest;
24804
+ if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)()) {
24805
+ if (typeof global !== 'undefined' && global.XMLHttpRequest) {
24806
+ XmlHttpRequestApi = global.XMLHttpRequest;
25307
24807
  } else if (typeof window !== 'undefined' && window.XMLHttpRequest) {
25308
24808
  XmlHttpRequestApi = window.XMLHttpRequest;
25309
24809
  }
25310
24810
  }
25311
-
25312
24811
  var ActiveXObjectApi;
25313
-
25314
24812
  if (typeof ActiveXObject === 'function') {
25315
- if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.ActiveXObject) {
25316
- ActiveXObjectApi = __webpack_require__.g.ActiveXObject;
24813
+ if (typeof global !== 'undefined' && global.ActiveXObject) {
24814
+ ActiveXObjectApi = global.ActiveXObject;
25317
24815
  } else if (typeof window !== 'undefined' && window.ActiveXObject) {
25318
24816
  ActiveXObjectApi = window.ActiveXObject;
25319
24817
  }
25320
24818
  }
25321
-
25322
- if (!fetchApi && fetchNode && !XmlHttpRequestApi && !ActiveXObjectApi) fetchApi = fetchNode.default || fetchNode;
25323
24819
  if (typeof fetchApi !== 'function') fetchApi = undefined;
25324
-
24820
+ if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
24821
+ try {
24822
+ __webpack_require__.e(/*! import() */ "vendors-common_temp_node_modules_pnpm_cross-fetch_4_0_0_node_modules_cross-fetch_dist_browser-24291b").then(__webpack_require__.t.bind(__webpack_require__, /*! cross-fetch */ "../../common/temp/node_modules/.pnpm/cross-fetch@4.0.0/node_modules/cross-fetch/dist/browser-ponyfill.js", 19)).then(function (mod) {
24823
+ fetchApi = mod.default;
24824
+ }).catch(function () {});
24825
+ } catch (e) {}
24826
+ }
25325
24827
  var addQueryString = function addQueryString(url, params) {
25326
24828
  if (params && _typeof(params) === 'object') {
25327
24829
  var queryString = '';
25328
-
25329
24830
  for (var paramName in params) {
25330
24831
  queryString += '&' + encodeURIComponent(paramName) + '=' + encodeURIComponent(params[paramName]);
25331
24832
  }
25332
-
25333
24833
  if (!queryString) return url;
25334
24834
  url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
25335
24835
  }
25336
-
25337
24836
  return url;
25338
24837
  };
25339
-
25340
- var fetchIt = function fetchIt(url, fetchOptions, callback) {
25341
- fetchApi(url, fetchOptions).then(function (response) {
24838
+ var fetchIt = function fetchIt(url, fetchOptions, callback, altFetch) {
24839
+ var resolver = function resolver(response) {
25342
24840
  if (!response.ok) return callback(response.statusText || 'Error', {
25343
24841
  status: response.status
25344
24842
  });
@@ -25348,147 +24846,127 @@ var fetchIt = function fetchIt(url, fetchOptions, callback) {
25348
24846
  data: data
25349
24847
  });
25350
24848
  }).catch(callback);
25351
- }).catch(callback);
24849
+ };
24850
+ if (altFetch) {
24851
+ var altResponse = altFetch(url, fetchOptions);
24852
+ if (altResponse instanceof Promise) {
24853
+ altResponse.then(resolver).catch(callback);
24854
+ return;
24855
+ }
24856
+ }
24857
+ if (typeof fetch === 'function') {
24858
+ fetch(url, fetchOptions).then(resolver).catch(callback);
24859
+ } else {
24860
+ fetchApi(url, fetchOptions).then(resolver).catch(callback);
24861
+ }
25352
24862
  };
25353
-
25354
24863
  var omitFetchOptions = false;
25355
-
25356
24864
  var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
25357
24865
  if (options.queryStringParams) {
25358
24866
  url = addQueryString(url, options.queryStringParams);
25359
24867
  }
25360
-
25361
- var headers = (0, _utils.defaults)({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
24868
+ var headers = _objectSpread({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
24869
+ if (typeof window === 'undefined' && typeof global !== 'undefined' && typeof global.process !== 'undefined' && global.process.versions && global.process.versions.node) {
24870
+ headers['User-Agent'] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")");
24871
+ }
25362
24872
  if (payload) headers['Content-Type'] = 'application/json';
25363
24873
  var reqOptions = typeof options.requestOptions === 'function' ? options.requestOptions(payload) : options.requestOptions;
25364
- var fetchOptions = (0, _utils.defaults)({
24874
+ var fetchOptions = _objectSpread({
25365
24875
  method: payload ? 'POST' : 'GET',
25366
24876
  body: payload ? options.stringify(payload) : undefined,
25367
24877
  headers: headers
25368
24878
  }, omitFetchOptions ? {} : reqOptions);
25369
-
24879
+ var altFetch = typeof options.alternateFetch === 'function' && options.alternateFetch.length >= 1 ? options.alternateFetch : undefined;
25370
24880
  try {
25371
- fetchIt(url, fetchOptions, callback);
24881
+ fetchIt(url, fetchOptions, callback, altFetch);
25372
24882
  } catch (e) {
25373
24883
  if (!reqOptions || Object.keys(reqOptions).length === 0 || !e.message || e.message.indexOf('not implemented') < 0) {
25374
24884
  return callback(e);
25375
24885
  }
25376
-
25377
24886
  try {
25378
24887
  Object.keys(reqOptions).forEach(function (opt) {
25379
24888
  delete fetchOptions[opt];
25380
24889
  });
25381
- fetchIt(url, fetchOptions, callback);
24890
+ fetchIt(url, fetchOptions, callback, altFetch);
25382
24891
  omitFetchOptions = true;
25383
24892
  } catch (err) {
25384
24893
  callback(err);
25385
24894
  }
25386
24895
  }
25387
24896
  };
25388
-
25389
24897
  var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url, payload, callback) {
25390
24898
  if (payload && _typeof(payload) === 'object') {
25391
24899
  payload = addQueryString('', payload).slice(1);
25392
24900
  }
25393
-
25394
24901
  if (options.queryStringParams) {
25395
24902
  url = addQueryString(url, options.queryStringParams);
25396
24903
  }
25397
-
25398
24904
  try {
25399
- var x;
25400
-
25401
- if (XmlHttpRequestApi) {
25402
- x = new XmlHttpRequestApi();
25403
- } else {
25404
- x = new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');
25405
- }
25406
-
24905
+ var x = XmlHttpRequestApi ? new XmlHttpRequestApi() : new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');
25407
24906
  x.open(payload ? 'POST' : 'GET', url, 1);
25408
-
25409
24907
  if (!options.crossDomain) {
25410
24908
  x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
25411
24909
  }
25412
-
25413
24910
  x.withCredentials = !!options.withCredentials;
25414
-
25415
24911
  if (payload) {
25416
24912
  x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
25417
24913
  }
25418
-
25419
24914
  if (x.overrideMimeType) {
25420
24915
  x.overrideMimeType('application/json');
25421
24916
  }
25422
-
25423
24917
  var h = options.customHeaders;
25424
24918
  h = typeof h === 'function' ? h() : h;
25425
-
25426
24919
  if (h) {
25427
24920
  for (var i in h) {
25428
24921
  x.setRequestHeader(i, h[i]);
25429
24922
  }
25430
24923
  }
25431
-
25432
24924
  x.onreadystatechange = function () {
25433
24925
  x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
25434
24926
  status: x.status,
25435
24927
  data: x.responseText
25436
24928
  });
25437
24929
  };
25438
-
25439
24930
  x.send(payload);
25440
24931
  } catch (e) {
25441
24932
  console && console.log(e);
25442
24933
  }
25443
24934
  };
25444
-
25445
24935
  var request = function request(options, url, payload, callback) {
25446
24936
  if (typeof payload === 'function') {
25447
24937
  callback = payload;
25448
24938
  payload = undefined;
25449
24939
  }
25450
-
25451
24940
  callback = callback || function () {};
25452
-
25453
- if (fetchApi) {
24941
+ if (fetchApi && url.indexOf('file:') !== 0) {
25454
24942
  return requestWithFetch(options, url, payload, callback);
25455
24943
  }
25456
-
25457
- if ((0, _utils.hasXMLHttpRequest)() || typeof ActiveXObject === 'function') {
24944
+ if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)() || typeof ActiveXObject === 'function') {
25458
24945
  return requestWithXmlHttpRequest(options, url, payload, callback);
25459
24946
  }
25460
-
25461
24947
  callback(new Error('No fetch and no xhr implementation found!'));
25462
24948
  };
25463
-
25464
- var _default = request;
25465
- exports["default"] = _default;
25466
- module.exports = exports.default;
24949
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (request);
25467
24950
 
25468
24951
  /***/ }),
25469
24952
 
25470
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/utils.js":
24953
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/utils.js":
25471
24954
  /*!**********************************************************************************************************************!*\
25472
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/utils.js ***!
24955
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/utils.js ***!
25473
24956
  \**********************************************************************************************************************/
25474
- /***/ ((__unused_webpack_module, exports) => {
24957
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25475
24958
 
25476
24959
  "use strict";
25477
-
25478
-
25479
- Object.defineProperty(exports, "__esModule", ({
25480
- value: true
25481
- }));
25482
- exports.defaults = defaults;
25483
- exports.hasXMLHttpRequest = hasXMLHttpRequest;
25484
- exports.makePromise = makePromise;
25485
-
25486
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
25487
-
24960
+ __webpack_require__.r(__webpack_exports__);
24961
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24962
+ /* harmony export */ defaults: () => (/* binding */ defaults),
24963
+ /* harmony export */ hasXMLHttpRequest: () => (/* binding */ hasXMLHttpRequest),
24964
+ /* harmony export */ makePromise: () => (/* binding */ makePromise)
24965
+ /* harmony export */ });
24966
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
25488
24967
  var arr = [];
25489
24968
  var each = arr.forEach;
25490
24969
  var slice = arr.slice;
25491
-
25492
24970
  function defaults(obj) {
25493
24971
  each.call(slice.call(arguments, 1), function (source) {
25494
24972
  if (source) {
@@ -25499,143 +24977,19 @@ function defaults(obj) {
25499
24977
  });
25500
24978
  return obj;
25501
24979
  }
25502
-
25503
24980
  function hasXMLHttpRequest() {
25504
24981
  return typeof XMLHttpRequest === 'function' || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) === 'object';
25505
24982
  }
25506
-
25507
24983
  function isPromise(maybePromise) {
25508
24984
  return !!maybePromise && typeof maybePromise.then === 'function';
25509
24985
  }
25510
-
25511
24986
  function makePromise(maybePromise) {
25512
24987
  if (isPromise(maybePromise)) {
25513
24988
  return maybePromise;
25514
24989
  }
25515
-
25516
24990
  return Promise.resolve(maybePromise);
25517
24991
  }
25518
24992
 
25519
- /***/ }),
25520
-
25521
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
25522
- /*!*****************************************************************************************************************************!*\
25523
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
25524
- \*****************************************************************************************************************************/
25525
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25526
-
25527
- "use strict";
25528
- __webpack_require__.r(__webpack_exports__);
25529
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
25530
- /* harmony export */ "default": () => (/* binding */ _classCallCheck)
25531
- /* harmony export */ });
25532
- function _classCallCheck(a, n) {
25533
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
25534
- }
25535
-
25536
-
25537
- /***/ }),
25538
-
25539
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/createClass.js":
25540
- /*!**************************************************************************************************************************!*\
25541
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
25542
- \**************************************************************************************************************************/
25543
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25544
-
25545
- "use strict";
25546
- __webpack_require__.r(__webpack_exports__);
25547
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
25548
- /* harmony export */ "default": () => (/* binding */ _createClass)
25549
- /* harmony export */ });
25550
- /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
25551
-
25552
- function _defineProperties(e, r) {
25553
- for (var t = 0; t < r.length; t++) {
25554
- var o = r[t];
25555
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o.key), o);
25556
- }
25557
- }
25558
- function _createClass(e, r, t) {
25559
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
25560
- writable: !1
25561
- }), e;
25562
- }
25563
-
25564
-
25565
- /***/ }),
25566
-
25567
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
25568
- /*!**************************************************************************************************************************!*\
25569
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
25570
- \**************************************************************************************************************************/
25571
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25572
-
25573
- "use strict";
25574
- __webpack_require__.r(__webpack_exports__);
25575
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
25576
- /* harmony export */ "default": () => (/* binding */ toPrimitive)
25577
- /* harmony export */ });
25578
- /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/typeof.js");
25579
-
25580
- function toPrimitive(t, r) {
25581
- if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
25582
- var e = t[Symbol.toPrimitive];
25583
- if (void 0 !== e) {
25584
- var i = e.call(t, r || "default");
25585
- if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
25586
- throw new TypeError("@@toPrimitive must return a primitive value.");
25587
- }
25588
- return ("string" === r ? String : Number)(t);
25589
- }
25590
-
25591
-
25592
- /***/ }),
25593
-
25594
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
25595
- /*!****************************************************************************************************************************!*\
25596
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
25597
- \****************************************************************************************************************************/
25598
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25599
-
25600
- "use strict";
25601
- __webpack_require__.r(__webpack_exports__);
25602
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
25603
- /* harmony export */ "default": () => (/* binding */ toPropertyKey)
25604
- /* harmony export */ });
25605
- /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/typeof.js");
25606
- /* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
25607
-
25608
-
25609
- function toPropertyKey(t) {
25610
- var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string");
25611
- return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + "";
25612
- }
25613
-
25614
-
25615
- /***/ }),
25616
-
25617
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/typeof.js":
25618
- /*!*********************************************************************************************************************!*\
25619
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.26.10/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
25620
- \*********************************************************************************************************************/
25621
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25622
-
25623
- "use strict";
25624
- __webpack_require__.r(__webpack_exports__);
25625
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
25626
- /* harmony export */ "default": () => (/* binding */ _typeof)
25627
- /* harmony export */ });
25628
- function _typeof(o) {
25629
- "@babel/helpers - typeof";
25630
-
25631
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
25632
- return typeof o;
25633
- } : function (o) {
25634
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
25635
- }, _typeof(o);
25636
- }
25637
-
25638
-
25639
24993
  /***/ })
25640
24994
 
25641
24995
  /******/ });
@@ -25664,7 +25018,40 @@ function _typeof(o) {
25664
25018
  /******/ return module.exports;
25665
25019
  /******/ }
25666
25020
  /******/
25021
+ /******/ // expose the modules object (__webpack_modules__)
25022
+ /******/ __webpack_require__.m = __webpack_modules__;
25023
+ /******/
25667
25024
  /************************************************************************/
25025
+ /******/ /* webpack/runtime/create fake namespace object */
25026
+ /******/ (() => {
25027
+ /******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
25028
+ /******/ var leafPrototypes;
25029
+ /******/ // create a fake namespace object
25030
+ /******/ // mode & 1: value is a module id, require it
25031
+ /******/ // mode & 2: merge all properties of value into the ns
25032
+ /******/ // mode & 4: return value when already ns object
25033
+ /******/ // mode & 16: return value when it's Promise-like
25034
+ /******/ // mode & 8|1: behave like require
25035
+ /******/ __webpack_require__.t = function(value, mode) {
25036
+ /******/ if(mode & 1) value = this(value);
25037
+ /******/ if(mode & 8) return value;
25038
+ /******/ if(typeof value === 'object' && value) {
25039
+ /******/ if((mode & 4) && value.__esModule) return value;
25040
+ /******/ if((mode & 16) && typeof value.then === 'function') return value;
25041
+ /******/ }
25042
+ /******/ var ns = Object.create(null);
25043
+ /******/ __webpack_require__.r(ns);
25044
+ /******/ var def = {};
25045
+ /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
25046
+ /******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
25047
+ /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
25048
+ /******/ }
25049
+ /******/ def['default'] = () => (value);
25050
+ /******/ __webpack_require__.d(ns, def);
25051
+ /******/ return ns;
25052
+ /******/ };
25053
+ /******/ })();
25054
+ /******/
25668
25055
  /******/ /* webpack/runtime/define property getters */
25669
25056
  /******/ (() => {
25670
25057
  /******/ // define getter functions for harmony exports
@@ -25677,6 +25064,28 @@ function _typeof(o) {
25677
25064
  /******/ };
25678
25065
  /******/ })();
25679
25066
  /******/
25067
+ /******/ /* webpack/runtime/ensure chunk */
25068
+ /******/ (() => {
25069
+ /******/ __webpack_require__.f = {};
25070
+ /******/ // This file contains only the entry chunk.
25071
+ /******/ // The chunk loading function for additional chunks
25072
+ /******/ __webpack_require__.e = (chunkId) => {
25073
+ /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
25074
+ /******/ __webpack_require__.f[key](chunkId, promises);
25075
+ /******/ return promises;
25076
+ /******/ }, []));
25077
+ /******/ };
25078
+ /******/ })();
25079
+ /******/
25080
+ /******/ /* webpack/runtime/get javascript chunk filename */
25081
+ /******/ (() => {
25082
+ /******/ // This function allow to reference async chunks
25083
+ /******/ __webpack_require__.u = (chunkId) => {
25084
+ /******/ // return url for filenames based on template
25085
+ /******/ return "" + chunkId + ".bundled-tests.instrumented.js";
25086
+ /******/ };
25087
+ /******/ })();
25088
+ /******/
25680
25089
  /******/ /* webpack/runtime/global */
25681
25090
  /******/ (() => {
25682
25091
  /******/ __webpack_require__.g = (function() {
@@ -25694,6 +25103,52 @@ function _typeof(o) {
25694
25103
  /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
25695
25104
  /******/ })();
25696
25105
  /******/
25106
+ /******/ /* webpack/runtime/load script */
25107
+ /******/ (() => {
25108
+ /******/ var inProgress = {};
25109
+ /******/ var dataWebpackPrefix = "@itwin/core-i18n:";
25110
+ /******/ // loadScript function to load a script via script tag
25111
+ /******/ __webpack_require__.l = (url, done, key, chunkId) => {
25112
+ /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
25113
+ /******/ var script, needAttach;
25114
+ /******/ if(key !== undefined) {
25115
+ /******/ var scripts = document.getElementsByTagName("script");
25116
+ /******/ for(var i = 0; i < scripts.length; i++) {
25117
+ /******/ var s = scripts[i];
25118
+ /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
25119
+ /******/ }
25120
+ /******/ }
25121
+ /******/ if(!script) {
25122
+ /******/ needAttach = true;
25123
+ /******/ script = document.createElement('script');
25124
+ /******/
25125
+ /******/ script.charset = 'utf-8';
25126
+ /******/ script.timeout = 120;
25127
+ /******/ if (__webpack_require__.nc) {
25128
+ /******/ script.setAttribute("nonce", __webpack_require__.nc);
25129
+ /******/ }
25130
+ /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
25131
+ /******/
25132
+ /******/ script.src = url;
25133
+ /******/ }
25134
+ /******/ inProgress[url] = [done];
25135
+ /******/ var onScriptComplete = (prev, event) => {
25136
+ /******/ // avoid mem leaks in IE.
25137
+ /******/ script.onerror = script.onload = null;
25138
+ /******/ clearTimeout(timeout);
25139
+ /******/ var doneFns = inProgress[url];
25140
+ /******/ delete inProgress[url];
25141
+ /******/ script.parentNode && script.parentNode.removeChild(script);
25142
+ /******/ doneFns && doneFns.forEach((fn) => (fn(event)));
25143
+ /******/ if(prev) return prev(event);
25144
+ /******/ }
25145
+ /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
25146
+ /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
25147
+ /******/ script.onload = onScriptComplete.bind(null, script.onload);
25148
+ /******/ needAttach && document.head.appendChild(script);
25149
+ /******/ };
25150
+ /******/ })();
25151
+ /******/
25697
25152
  /******/ /* webpack/runtime/make namespace object */
25698
25153
  /******/ (() => {
25699
25154
  /******/ // define __esModule on exports
@@ -25705,6 +25160,119 @@ function _typeof(o) {
25705
25160
  /******/ };
25706
25161
  /******/ })();
25707
25162
  /******/
25163
+ /******/ /* webpack/runtime/publicPath */
25164
+ /******/ (() => {
25165
+ /******/ var scriptUrl;
25166
+ /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
25167
+ /******/ var document = __webpack_require__.g.document;
25168
+ /******/ if (!scriptUrl && document) {
25169
+ /******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
25170
+ /******/ scriptUrl = document.currentScript.src;
25171
+ /******/ if (!scriptUrl) {
25172
+ /******/ var scripts = document.getElementsByTagName("script");
25173
+ /******/ if(scripts.length) {
25174
+ /******/ var i = scripts.length - 1;
25175
+ /******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
25176
+ /******/ }
25177
+ /******/ }
25178
+ /******/ }
25179
+ /******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
25180
+ /******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
25181
+ /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
25182
+ /******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
25183
+ /******/ __webpack_require__.p = scriptUrl;
25184
+ /******/ })();
25185
+ /******/
25186
+ /******/ /* webpack/runtime/jsonp chunk loading */
25187
+ /******/ (() => {
25188
+ /******/ // no baseURI
25189
+ /******/
25190
+ /******/ // object to store loaded and loading chunks
25191
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
25192
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
25193
+ /******/ var installedChunks = {
25194
+ /******/ "main": 0
25195
+ /******/ };
25196
+ /******/
25197
+ /******/ __webpack_require__.f.j = (chunkId, promises) => {
25198
+ /******/ // JSONP chunk loading for javascript
25199
+ /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
25200
+ /******/ if(installedChunkData !== 0) { // 0 means "already installed".
25201
+ /******/
25202
+ /******/ // a Promise means "currently loading".
25203
+ /******/ if(installedChunkData) {
25204
+ /******/ promises.push(installedChunkData[2]);
25205
+ /******/ } else {
25206
+ /******/ if(true) { // all chunks have JS
25207
+ /******/ // setup Promise in chunk cache
25208
+ /******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
25209
+ /******/ promises.push(installedChunkData[2] = promise);
25210
+ /******/
25211
+ /******/ // start chunk loading
25212
+ /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
25213
+ /******/ // create error before stack unwound to get useful stacktrace later
25214
+ /******/ var error = new Error();
25215
+ /******/ var loadingEnded = (event) => {
25216
+ /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
25217
+ /******/ installedChunkData = installedChunks[chunkId];
25218
+ /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
25219
+ /******/ if(installedChunkData) {
25220
+ /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
25221
+ /******/ var realSrc = event && event.target && event.target.src;
25222
+ /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
25223
+ /******/ error.name = 'ChunkLoadError';
25224
+ /******/ error.type = errorType;
25225
+ /******/ error.request = realSrc;
25226
+ /******/ installedChunkData[1](error);
25227
+ /******/ }
25228
+ /******/ }
25229
+ /******/ };
25230
+ /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
25231
+ /******/ }
25232
+ /******/ }
25233
+ /******/ }
25234
+ /******/ };
25235
+ /******/
25236
+ /******/ // no prefetching
25237
+ /******/
25238
+ /******/ // no preloaded
25239
+ /******/
25240
+ /******/ // no HMR
25241
+ /******/
25242
+ /******/ // no HMR manifest
25243
+ /******/
25244
+ /******/ // no on chunks loaded
25245
+ /******/
25246
+ /******/ // install a JSONP callback for chunk loading
25247
+ /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
25248
+ /******/ var [chunkIds, moreModules, runtime] = data;
25249
+ /******/ // add "moreModules" to the modules object,
25250
+ /******/ // then flag all "chunkIds" as loaded and fire callback
25251
+ /******/ var moduleId, chunkId, i = 0;
25252
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
25253
+ /******/ for(moduleId in moreModules) {
25254
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
25255
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
25256
+ /******/ }
25257
+ /******/ }
25258
+ /******/ if(runtime) var result = runtime(__webpack_require__);
25259
+ /******/ }
25260
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
25261
+ /******/ for(;i < chunkIds.length; i++) {
25262
+ /******/ chunkId = chunkIds[i];
25263
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
25264
+ /******/ installedChunks[chunkId][0]();
25265
+ /******/ }
25266
+ /******/ installedChunks[chunkId] = 0;
25267
+ /******/ }
25268
+ /******/
25269
+ /******/ }
25270
+ /******/
25271
+ /******/ var chunkLoadingGlobal = self["webpackChunk_itwin_core_i18n"] = self["webpackChunk_itwin_core_i18n"] || [];
25272
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
25273
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
25274
+ /******/ })();
25275
+ /******/
25708
25276
  /************************************************************************/
25709
25277
  var __webpack_exports__ = {};
25710
25278
  // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.