@itwin/core-i18n 3.5.0-dev.7 → 3.6.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -127,20 +127,20 @@ AssertionError.prototype.toJSON = function (stack) {
127
127
 
128
128
  /***/ }),
129
129
 
130
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/index.js":
130
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js":
131
131
  /*!**********************************************************************************!*\
132
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/index.js ***!
132
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js ***!
133
133
  \**********************************************************************************/
134
134
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
135
135
 
136
- module.exports = __webpack_require__(/*! ./lib/chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
136
+ module.exports = __webpack_require__(/*! ./lib/chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
137
137
 
138
138
 
139
139
  /***/ }),
140
140
 
141
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js":
141
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js":
142
142
  /*!*************************************************************************************!*\
143
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js ***!
143
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js ***!
144
144
  \*************************************************************************************/
145
145
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
146
146
 
@@ -168,7 +168,7 @@ exports.AssertionError = __webpack_require__(/*! assertion-error */ "../../commo
168
168
  * Utils for plugins (not exported)
169
169
  */
170
170
 
171
- var util = __webpack_require__(/*! ./chai/utils */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/index.js");
171
+ var util = __webpack_require__(/*! ./chai/utils */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/index.js");
172
172
 
173
173
  /**
174
174
  * # .use(function)
@@ -199,50 +199,50 @@ exports.util = util;
199
199
  * Configuration
200
200
  */
201
201
 
202
- var config = __webpack_require__(/*! ./chai/config */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js");
202
+ var config = __webpack_require__(/*! ./chai/config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
203
203
  exports.config = config;
204
204
 
205
205
  /*!
206
206
  * Primary `Assertion` prototype
207
207
  */
208
208
 
209
- var assertion = __webpack_require__(/*! ./chai/assertion */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/assertion.js");
209
+ var assertion = __webpack_require__(/*! ./chai/assertion */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/assertion.js");
210
210
  exports.use(assertion);
211
211
 
212
212
  /*!
213
213
  * Core Assertions
214
214
  */
215
215
 
216
- var core = __webpack_require__(/*! ./chai/core/assertions */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/core/assertions.js");
216
+ var core = __webpack_require__(/*! ./chai/core/assertions */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/core/assertions.js");
217
217
  exports.use(core);
218
218
 
219
219
  /*!
220
220
  * Expect interface
221
221
  */
222
222
 
223
- var expect = __webpack_require__(/*! ./chai/interface/expect */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/expect.js");
223
+ var expect = __webpack_require__(/*! ./chai/interface/expect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/expect.js");
224
224
  exports.use(expect);
225
225
 
226
226
  /*!
227
227
  * Should interface
228
228
  */
229
229
 
230
- var should = __webpack_require__(/*! ./chai/interface/should */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/should.js");
230
+ var should = __webpack_require__(/*! ./chai/interface/should */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/should.js");
231
231
  exports.use(should);
232
232
 
233
233
  /*!
234
234
  * Assert interface
235
235
  */
236
236
 
237
- var assert = __webpack_require__(/*! ./chai/interface/assert */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/assert.js");
237
+ var assert = __webpack_require__(/*! ./chai/interface/assert */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/assert.js");
238
238
  exports.use(assert);
239
239
 
240
240
 
241
241
  /***/ }),
242
242
 
243
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/assertion.js":
243
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/assertion.js":
244
244
  /*!***********************************************************************************************!*\
245
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/assertion.js ***!
245
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/assertion.js ***!
246
246
  \***********************************************************************************************/
247
247
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
248
248
 
@@ -253,7 +253,7 @@ exports.use(assert);
253
253
  * MIT Licensed
254
254
  */
255
255
 
256
- var config = __webpack_require__(/*! ./config */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js");
256
+ var config = __webpack_require__(/*! ./config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
257
257
 
258
258
  module.exports = function (_chai, util) {
259
259
  /*!
@@ -425,9 +425,9 @@ module.exports = function (_chai, util) {
425
425
 
426
426
  /***/ }),
427
427
 
428
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js":
428
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js":
429
429
  /*!********************************************************************************************!*\
430
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js ***!
430
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js ***!
431
431
  \********************************************************************************************/
432
432
  /***/ ((module) => {
433
433
 
@@ -529,9 +529,9 @@ module.exports = {
529
529
 
530
530
  /***/ }),
531
531
 
532
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/core/assertions.js":
532
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/core/assertions.js":
533
533
  /*!*****************************************************************************************************!*\
534
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/core/assertions.js ***!
534
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/core/assertions.js ***!
535
535
  \*****************************************************************************************************/
536
536
  /***/ ((module) => {
537
537
 
@@ -4392,9 +4392,9 @@ module.exports = function (chai, _) {
4392
4392
 
4393
4393
  /***/ }),
4394
4394
 
4395
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/assert.js":
4395
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/assert.js":
4396
4396
  /*!******************************************************************************************************!*\
4397
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/assert.js ***!
4397
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/assert.js ***!
4398
4398
  \******************************************************************************************************/
4399
4399
  /***/ ((module) => {
4400
4400
 
@@ -7515,9 +7515,9 @@ module.exports = function (chai, util) {
7515
7515
 
7516
7516
  /***/ }),
7517
7517
 
7518
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/expect.js":
7518
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/expect.js":
7519
7519
  /*!******************************************************************************************************!*\
7520
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/expect.js ***!
7520
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/expect.js ***!
7521
7521
  \******************************************************************************************************/
7522
7522
  /***/ ((module) => {
7523
7523
 
@@ -7572,9 +7572,9 @@ module.exports = function (chai, util) {
7572
7572
 
7573
7573
  /***/ }),
7574
7574
 
7575
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/should.js":
7575
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/should.js":
7576
7576
  /*!******************************************************************************************************!*\
7577
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/interface/should.js ***!
7577
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/interface/should.js ***!
7578
7578
  \******************************************************************************************************/
7579
7579
  /***/ ((module) => {
7580
7580
 
@@ -7801,9 +7801,9 @@ module.exports = function (chai, util) {
7801
7801
 
7802
7802
  /***/ }),
7803
7803
 
7804
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addChainableMethod.js":
7804
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addChainableMethod.js":
7805
7805
  /*!**************************************************************************************************************!*\
7806
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addChainableMethod.js ***!
7806
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addChainableMethod.js ***!
7807
7807
  \**************************************************************************************************************/
7808
7808
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
7809
7809
 
@@ -7817,11 +7817,11 @@ module.exports = function (chai, util) {
7817
7817
  * Module dependencies
7818
7818
  */
7819
7819
 
7820
- var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addLengthGuard.js");
7821
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
7822
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
7823
- var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/proxify.js");
7824
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
7820
+ var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js");
7821
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
7822
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
7823
+ var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js");
7824
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
7825
7825
 
7826
7826
  /*!
7827
7827
  * Module variables
@@ -7963,9 +7963,9 @@ module.exports = function addChainableMethod(ctx, name, method, chainingBehavior
7963
7963
 
7964
7964
  /***/ }),
7965
7965
 
7966
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addLengthGuard.js":
7966
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js":
7967
7967
  /*!**********************************************************************************************************!*\
7968
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addLengthGuard.js ***!
7968
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js ***!
7969
7969
  \**********************************************************************************************************/
7970
7970
  /***/ ((module) => {
7971
7971
 
@@ -8033,9 +8033,9 @@ module.exports = function addLengthGuard (fn, assertionName, isChainable) {
8033
8033
 
8034
8034
  /***/ }),
8035
8035
 
8036
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addMethod.js":
8036
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addMethod.js":
8037
8037
  /*!*****************************************************************************************************!*\
8038
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addMethod.js ***!
8038
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addMethod.js ***!
8039
8039
  \*****************************************************************************************************/
8040
8040
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8041
8041
 
@@ -8045,11 +8045,11 @@ module.exports = function addLengthGuard (fn, assertionName, isChainable) {
8045
8045
  * MIT Licensed
8046
8046
  */
8047
8047
 
8048
- var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addLengthGuard.js");
8049
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
8050
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
8051
- var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/proxify.js");
8052
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
8048
+ var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js");
8049
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
8050
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
8051
+ var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js");
8052
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
8053
8053
 
8054
8054
  /**
8055
8055
  * ### .addMethod(ctx, name, method)
@@ -8111,9 +8111,9 @@ module.exports = function addMethod(ctx, name, method) {
8111
8111
 
8112
8112
  /***/ }),
8113
8113
 
8114
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addProperty.js":
8114
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addProperty.js":
8115
8115
  /*!*******************************************************************************************************!*\
8116
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addProperty.js ***!
8116
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addProperty.js ***!
8117
8117
  \*******************************************************************************************************/
8118
8118
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8119
8119
 
@@ -8123,10 +8123,10 @@ module.exports = function addMethod(ctx, name, method) {
8123
8123
  * MIT Licensed
8124
8124
  */
8125
8125
 
8126
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
8127
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
8128
- var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
8129
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
8126
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
8127
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
8128
+ var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
8129
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
8130
8130
 
8131
8131
  /**
8132
8132
  * ### .addProperty(ctx, name, getter)
@@ -8193,9 +8193,9 @@ module.exports = function addProperty(ctx, name, getter) {
8193
8193
 
8194
8194
  /***/ }),
8195
8195
 
8196
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/compareByInspect.js":
8196
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/compareByInspect.js":
8197
8197
  /*!************************************************************************************************************!*\
8198
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/compareByInspect.js ***!
8198
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/compareByInspect.js ***!
8199
8199
  \************************************************************************************************************/
8200
8200
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8201
8201
 
@@ -8209,7 +8209,7 @@ module.exports = function addProperty(ctx, name, getter) {
8209
8209
  * Module dependencies
8210
8210
  */
8211
8211
 
8212
- var inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/inspect.js");
8212
+ var inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js");
8213
8213
 
8214
8214
  /**
8215
8215
  * ### .compareByInspect(mixed, mixed)
@@ -8234,9 +8234,9 @@ module.exports = function compareByInspect(a, b) {
8234
8234
 
8235
8235
  /***/ }),
8236
8236
 
8237
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/expectTypes.js":
8237
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/expectTypes.js":
8238
8238
  /*!*******************************************************************************************************!*\
8239
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/expectTypes.js ***!
8239
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/expectTypes.js ***!
8240
8240
  \*******************************************************************************************************/
8241
8241
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8242
8242
 
@@ -8261,7 +8261,7 @@ module.exports = function compareByInspect(a, b) {
8261
8261
  */
8262
8262
 
8263
8263
  var AssertionError = __webpack_require__(/*! assertion-error */ "../../common/temp/node_modules/.pnpm/assertion-error@1.1.0/node_modules/assertion-error/index.js");
8264
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
8264
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
8265
8265
  var type = __webpack_require__(/*! type-detect */ "../../common/temp/node_modules/.pnpm/type-detect@4.0.8/node_modules/type-detect/type-detect.js");
8266
8266
 
8267
8267
  module.exports = function expectTypes(obj, types) {
@@ -8295,9 +8295,9 @@ module.exports = function expectTypes(obj, types) {
8295
8295
 
8296
8296
  /***/ }),
8297
8297
 
8298
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js":
8298
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js":
8299
8299
  /*!************************************************************************************************!*\
8300
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js ***!
8300
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js ***!
8301
8301
  \************************************************************************************************/
8302
8302
  /***/ ((module) => {
8303
8303
 
@@ -8338,9 +8338,9 @@ module.exports = function flag(obj, key, value) {
8338
8338
 
8339
8339
  /***/ }),
8340
8340
 
8341
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getActual.js":
8341
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js":
8342
8342
  /*!*****************************************************************************************************!*\
8343
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getActual.js ***!
8343
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js ***!
8344
8344
  \*****************************************************************************************************/
8345
8345
  /***/ ((module) => {
8346
8346
 
@@ -8368,9 +8368,9 @@ module.exports = function getActual(obj, args) {
8368
8368
 
8369
8369
  /***/ }),
8370
8370
 
8371
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getMessage.js":
8371
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getMessage.js":
8372
8372
  /*!******************************************************************************************************!*\
8373
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getMessage.js ***!
8373
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getMessage.js ***!
8374
8374
  \******************************************************************************************************/
8375
8375
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8376
8376
 
@@ -8384,9 +8384,9 @@ module.exports = function getActual(obj, args) {
8384
8384
  * Module dependencies
8385
8385
  */
8386
8386
 
8387
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js")
8388
- , getActual = __webpack_require__(/*! ./getActual */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getActual.js")
8389
- , objDisplay = __webpack_require__(/*! ./objDisplay */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/objDisplay.js");
8387
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js")
8388
+ , getActual = __webpack_require__(/*! ./getActual */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js")
8389
+ , objDisplay = __webpack_require__(/*! ./objDisplay */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js");
8390
8390
 
8391
8391
  /**
8392
8392
  * ### .getMessage(object, message, negateMessage)
@@ -8428,15 +8428,15 @@ module.exports = function getMessage(obj, args) {
8428
8428
 
8429
8429
  /***/ }),
8430
8430
 
8431
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOperator.js":
8431
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOperator.js":
8432
8432
  /*!*******************************************************************************************************!*\
8433
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOperator.js ***!
8433
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOperator.js ***!
8434
8434
  \*******************************************************************************************************/
8435
8435
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8436
8436
 
8437
8437
  var type = __webpack_require__(/*! type-detect */ "../../common/temp/node_modules/.pnpm/type-detect@4.0.8/node_modules/type-detect/type-detect.js");
8438
8438
 
8439
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
8439
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
8440
8440
 
8441
8441
  function isObjectType(obj) {
8442
8442
  var objectType = type(obj);
@@ -8493,9 +8493,9 @@ module.exports = function getOperator(obj, args) {
8493
8493
 
8494
8494
  /***/ }),
8495
8495
 
8496
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js":
8496
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js":
8497
8497
  /*!**********************************************************************************************************************!*\
8498
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js ***!
8498
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js ***!
8499
8499
  \**********************************************************************************************************************/
8500
8500
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8501
8501
 
@@ -8509,7 +8509,7 @@ module.exports = function getOperator(obj, args) {
8509
8509
  * Module dependencies
8510
8510
  */
8511
8511
 
8512
- var getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js");
8512
+ var getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js");
8513
8513
 
8514
8514
  /**
8515
8515
  * ### .getOwnEnumerableProperties(object)
@@ -8532,9 +8532,9 @@ module.exports = function getOwnEnumerableProperties(obj) {
8532
8532
 
8533
8533
  /***/ }),
8534
8534
 
8535
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js":
8535
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js":
8536
8536
  /*!***************************************************************************************************************************!*\
8537
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js ***!
8537
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js ***!
8538
8538
  \***************************************************************************************************************************/
8539
8539
  /***/ ((module) => {
8540
8540
 
@@ -8569,9 +8569,9 @@ module.exports = function getOwnEnumerablePropertySymbols(obj) {
8569
8569
 
8570
8570
  /***/ }),
8571
8571
 
8572
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getProperties.js":
8572
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getProperties.js":
8573
8573
  /*!*********************************************************************************************************!*\
8574
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getProperties.js ***!
8574
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getProperties.js ***!
8575
8575
  \*********************************************************************************************************/
8576
8576
  /***/ ((module) => {
8577
8577
 
@@ -8615,9 +8615,9 @@ module.exports = function getProperties(object) {
8615
8615
 
8616
8616
  /***/ }),
8617
8617
 
8618
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/index.js":
8618
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/index.js":
8619
8619
  /*!*************************************************************************************************!*\
8620
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/index.js ***!
8620
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/index.js ***!
8621
8621
  \*************************************************************************************************/
8622
8622
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8623
8623
 
@@ -8637,7 +8637,7 @@ var pathval = __webpack_require__(/*! pathval */ "../../common/temp/node_modules
8637
8637
  * test utility
8638
8638
  */
8639
8639
 
8640
- exports.test = __webpack_require__(/*! ./test */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/test.js");
8640
+ exports.test = __webpack_require__(/*! ./test */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/test.js");
8641
8641
 
8642
8642
  /*!
8643
8643
  * type utility
@@ -8648,49 +8648,49 @@ exports.type = __webpack_require__(/*! type-detect */ "../../common/temp/node_mo
8648
8648
  /*!
8649
8649
  * expectTypes utility
8650
8650
  */
8651
- exports.expectTypes = __webpack_require__(/*! ./expectTypes */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/expectTypes.js");
8651
+ exports.expectTypes = __webpack_require__(/*! ./expectTypes */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/expectTypes.js");
8652
8652
 
8653
8653
  /*!
8654
8654
  * message utility
8655
8655
  */
8656
8656
 
8657
- exports.getMessage = __webpack_require__(/*! ./getMessage */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getMessage.js");
8657
+ exports.getMessage = __webpack_require__(/*! ./getMessage */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getMessage.js");
8658
8658
 
8659
8659
  /*!
8660
8660
  * actual utility
8661
8661
  */
8662
8662
 
8663
- exports.getActual = __webpack_require__(/*! ./getActual */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getActual.js");
8663
+ exports.getActual = __webpack_require__(/*! ./getActual */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getActual.js");
8664
8664
 
8665
8665
  /*!
8666
8666
  * Inspect util
8667
8667
  */
8668
8668
 
8669
- exports.inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/inspect.js");
8669
+ exports.inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js");
8670
8670
 
8671
8671
  /*!
8672
8672
  * Object Display util
8673
8673
  */
8674
8674
 
8675
- exports.objDisplay = __webpack_require__(/*! ./objDisplay */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/objDisplay.js");
8675
+ exports.objDisplay = __webpack_require__(/*! ./objDisplay */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js");
8676
8676
 
8677
8677
  /*!
8678
8678
  * Flag utility
8679
8679
  */
8680
8680
 
8681
- exports.flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
8681
+ exports.flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
8682
8682
 
8683
8683
  /*!
8684
8684
  * Flag transferring utility
8685
8685
  */
8686
8686
 
8687
- exports.transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
8687
+ exports.transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
8688
8688
 
8689
8689
  /*!
8690
8690
  * Deep equal utility
8691
8691
  */
8692
8692
 
8693
- exports.eql = __webpack_require__(/*! deep-eql */ "../../common/temp/node_modules/.pnpm/deep-eql@3.0.1/node_modules/deep-eql/index.js");
8693
+ exports.eql = __webpack_require__(/*! deep-eql */ "../../common/temp/node_modules/.pnpm/deep-eql@4.1.2/node_modules/deep-eql/index.js");
8694
8694
 
8695
8695
  /*!
8696
8696
  * Deep path info
@@ -8714,55 +8714,55 @@ exports.getName = __webpack_require__(/*! get-func-name */ "../../common/temp/no
8714
8714
  * add Property
8715
8715
  */
8716
8716
 
8717
- exports.addProperty = __webpack_require__(/*! ./addProperty */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addProperty.js");
8717
+ exports.addProperty = __webpack_require__(/*! ./addProperty */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addProperty.js");
8718
8718
 
8719
8719
  /*!
8720
8720
  * add Method
8721
8721
  */
8722
8722
 
8723
- exports.addMethod = __webpack_require__(/*! ./addMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addMethod.js");
8723
+ exports.addMethod = __webpack_require__(/*! ./addMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addMethod.js");
8724
8724
 
8725
8725
  /*!
8726
8726
  * overwrite Property
8727
8727
  */
8728
8728
 
8729
- exports.overwriteProperty = __webpack_require__(/*! ./overwriteProperty */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteProperty.js");
8729
+ exports.overwriteProperty = __webpack_require__(/*! ./overwriteProperty */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteProperty.js");
8730
8730
 
8731
8731
  /*!
8732
8732
  * overwrite Method
8733
8733
  */
8734
8734
 
8735
- exports.overwriteMethod = __webpack_require__(/*! ./overwriteMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteMethod.js");
8735
+ exports.overwriteMethod = __webpack_require__(/*! ./overwriteMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteMethod.js");
8736
8736
 
8737
8737
  /*!
8738
8738
  * Add a chainable method
8739
8739
  */
8740
8740
 
8741
- exports.addChainableMethod = __webpack_require__(/*! ./addChainableMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addChainableMethod.js");
8741
+ exports.addChainableMethod = __webpack_require__(/*! ./addChainableMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addChainableMethod.js");
8742
8742
 
8743
8743
  /*!
8744
8744
  * Overwrite chainable method
8745
8745
  */
8746
8746
 
8747
- exports.overwriteChainableMethod = __webpack_require__(/*! ./overwriteChainableMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js");
8747
+ exports.overwriteChainableMethod = __webpack_require__(/*! ./overwriteChainableMethod */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js");
8748
8748
 
8749
8749
  /*!
8750
8750
  * Compare by inspect method
8751
8751
  */
8752
8752
 
8753
- exports.compareByInspect = __webpack_require__(/*! ./compareByInspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/compareByInspect.js");
8753
+ exports.compareByInspect = __webpack_require__(/*! ./compareByInspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/compareByInspect.js");
8754
8754
 
8755
8755
  /*!
8756
8756
  * Get own enumerable property symbols method
8757
8757
  */
8758
8758
 
8759
- exports.getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js");
8759
+ exports.getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js");
8760
8760
 
8761
8761
  /*!
8762
8762
  * Get own enumerable properties method
8763
8763
  */
8764
8764
 
8765
- exports.getOwnEnumerableProperties = __webpack_require__(/*! ./getOwnEnumerableProperties */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js");
8765
+ exports.getOwnEnumerableProperties = __webpack_require__(/*! ./getOwnEnumerableProperties */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js");
8766
8766
 
8767
8767
  /*!
8768
8768
  * Checks error against a given set of criteria
@@ -8774,37 +8774,37 @@ exports.checkError = __webpack_require__(/*! check-error */ "../../common/temp/n
8774
8774
  * Proxify util
8775
8775
  */
8776
8776
 
8777
- exports.proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/proxify.js");
8777
+ exports.proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js");
8778
8778
 
8779
8779
  /*!
8780
8780
  * addLengthGuard util
8781
8781
  */
8782
8782
 
8783
- exports.addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addLengthGuard.js");
8783
+ exports.addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js");
8784
8784
 
8785
8785
  /*!
8786
8786
  * isProxyEnabled helper
8787
8787
  */
8788
8788
 
8789
- exports.isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
8789
+ exports.isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
8790
8790
 
8791
8791
  /*!
8792
8792
  * isNaN method
8793
8793
  */
8794
8794
 
8795
- exports.isNaN = __webpack_require__(/*! ./isNaN */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isNaN.js");
8795
+ exports.isNaN = __webpack_require__(/*! ./isNaN */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isNaN.js");
8796
8796
 
8797
8797
  /*!
8798
8798
  * getOperator method
8799
8799
  */
8800
8800
 
8801
- exports.getOperator = __webpack_require__(/*! ./getOperator */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getOperator.js");
8801
+ exports.getOperator = __webpack_require__(/*! ./getOperator */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getOperator.js");
8802
8802
 
8803
8803
  /***/ }),
8804
8804
 
8805
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/inspect.js":
8805
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js":
8806
8806
  /*!***************************************************************************************************!*\
8807
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/inspect.js ***!
8807
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js ***!
8808
8808
  \***************************************************************************************************/
8809
8809
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8810
8810
 
@@ -8812,8 +8812,8 @@ exports.getOperator = __webpack_require__(/*! ./getOperator */ "../../common/tem
8812
8812
  // https://github.com/joyent/node/blob/f8c335d0caf47f16d31413f89aa28eda3878e3aa/lib/util.js
8813
8813
 
8814
8814
  var getName = __webpack_require__(/*! get-func-name */ "../../common/temp/node_modules/.pnpm/get-func-name@2.0.0/node_modules/get-func-name/index.js");
8815
- var loupe = __webpack_require__(/*! loupe */ "../../common/temp/node_modules/.pnpm/loupe@2.3.4/node_modules/loupe/loupe.js");
8816
- var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js");
8815
+ var loupe = __webpack_require__(/*! loupe */ "../../common/temp/node_modules/.pnpm/loupe@2.3.6/node_modules/loupe/loupe.js");
8816
+ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
8817
8817
 
8818
8818
  module.exports = inspect;
8819
8819
 
@@ -8845,9 +8845,9 @@ function inspect(obj, showHidden, depth, colors) {
8845
8845
 
8846
8846
  /***/ }),
8847
8847
 
8848
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isNaN.js":
8848
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isNaN.js":
8849
8849
  /*!*************************************************************************************************!*\
8850
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isNaN.js ***!
8850
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isNaN.js ***!
8851
8851
  \*************************************************************************************************/
8852
8852
  /***/ ((module) => {
8853
8853
 
@@ -8881,13 +8881,13 @@ module.exports = Number.isNaN || isNaN;
8881
8881
 
8882
8882
  /***/ }),
8883
8883
 
8884
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isProxyEnabled.js":
8884
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js":
8885
8885
  /*!**********************************************************************************************************!*\
8886
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isProxyEnabled.js ***!
8886
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js ***!
8887
8887
  \**********************************************************************************************************/
8888
8888
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8889
8889
 
8890
- var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js");
8890
+ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
8891
8891
 
8892
8892
  /*!
8893
8893
  * Chai - isProxyEnabled helper
@@ -8915,9 +8915,9 @@ module.exports = function isProxyEnabled() {
8915
8915
 
8916
8916
  /***/ }),
8917
8917
 
8918
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/objDisplay.js":
8918
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js":
8919
8919
  /*!******************************************************************************************************!*\
8920
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/objDisplay.js ***!
8920
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/objDisplay.js ***!
8921
8921
  \******************************************************************************************************/
8922
8922
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8923
8923
 
@@ -8931,8 +8931,8 @@ module.exports = function isProxyEnabled() {
8931
8931
  * Module dependencies
8932
8932
  */
8933
8933
 
8934
- var inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/inspect.js");
8935
- var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js");
8934
+ var inspect = __webpack_require__(/*! ./inspect */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/inspect.js");
8935
+ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
8936
8936
 
8937
8937
  /**
8938
8938
  * ### .objDisplay(object)
@@ -8975,9 +8975,9 @@ module.exports = function objDisplay(obj) {
8975
8975
 
8976
8976
  /***/ }),
8977
8977
 
8978
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js":
8978
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js":
8979
8979
  /*!********************************************************************************************************************!*\
8980
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js ***!
8980
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js ***!
8981
8981
  \********************************************************************************************************************/
8982
8982
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8983
8983
 
@@ -8987,8 +8987,8 @@ module.exports = function objDisplay(obj) {
8987
8987
  * MIT Licensed
8988
8988
  */
8989
8989
 
8990
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
8991
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
8990
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
8991
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
8992
8992
 
8993
8993
  /**
8994
8994
  * ### .overwriteChainableMethod(ctx, name, method, chainingBehavior)
@@ -9054,9 +9054,9 @@ module.exports = function overwriteChainableMethod(ctx, name, method, chainingBe
9054
9054
 
9055
9055
  /***/ }),
9056
9056
 
9057
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteMethod.js":
9057
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteMethod.js":
9058
9058
  /*!***********************************************************************************************************!*\
9059
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteMethod.js ***!
9059
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteMethod.js ***!
9060
9060
  \***********************************************************************************************************/
9061
9061
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9062
9062
 
@@ -9066,11 +9066,11 @@ module.exports = function overwriteChainableMethod(ctx, name, method, chainingBe
9066
9066
  * MIT Licensed
9067
9067
  */
9068
9068
 
9069
- var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/addLengthGuard.js");
9070
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
9071
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
9072
- var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/proxify.js");
9073
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
9069
+ var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/addLengthGuard.js");
9070
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
9071
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
9072
+ var proxify = __webpack_require__(/*! ./proxify */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js");
9073
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
9074
9074
 
9075
9075
  /**
9076
9076
  * ### .overwriteMethod(ctx, name, fn)
@@ -9156,9 +9156,9 @@ module.exports = function overwriteMethod(ctx, name, method) {
9156
9156
 
9157
9157
  /***/ }),
9158
9158
 
9159
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteProperty.js":
9159
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteProperty.js":
9160
9160
  /*!*************************************************************************************************************!*\
9161
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/overwriteProperty.js ***!
9161
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/overwriteProperty.js ***!
9162
9162
  \*************************************************************************************************************/
9163
9163
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9164
9164
 
@@ -9168,10 +9168,10 @@ module.exports = function overwriteMethod(ctx, name, method) {
9168
9168
  * MIT Licensed
9169
9169
  */
9170
9170
 
9171
- var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai.js");
9172
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
9173
- var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
9174
- var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js");
9171
+ var chai = __webpack_require__(/*! ../../chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai.js");
9172
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
9173
+ var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
9174
+ var transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js");
9175
9175
 
9176
9176
  /**
9177
9177
  * ### .overwriteProperty(ctx, name, fn)
@@ -9258,16 +9258,16 @@ module.exports = function overwriteProperty(ctx, name, getter) {
9258
9258
 
9259
9259
  /***/ }),
9260
9260
 
9261
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/proxify.js":
9261
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js":
9262
9262
  /*!***************************************************************************************************!*\
9263
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/proxify.js ***!
9263
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/proxify.js ***!
9264
9264
  \***************************************************************************************************/
9265
9265
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9266
9266
 
9267
- var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/config.js");
9268
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
9269
- var getProperties = __webpack_require__(/*! ./getProperties */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/getProperties.js");
9270
- var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
9267
+ var config = __webpack_require__(/*! ../config */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/config.js");
9268
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
9269
+ var getProperties = __webpack_require__(/*! ./getProperties */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/getProperties.js");
9270
+ var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/isProxyEnabled.js");
9271
9271
 
9272
9272
  /*!
9273
9273
  * Chai - proxify utility
@@ -9415,9 +9415,9 @@ function stringDistanceCapped(strA, strB, cap) {
9415
9415
 
9416
9416
  /***/ }),
9417
9417
 
9418
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/test.js":
9418
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/test.js":
9419
9419
  /*!************************************************************************************************!*\
9420
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/test.js ***!
9420
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/test.js ***!
9421
9421
  \************************************************************************************************/
9422
9422
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9423
9423
 
@@ -9431,7 +9431,7 @@ function stringDistanceCapped(strA, strB, cap) {
9431
9431
  * Module dependencies
9432
9432
  */
9433
9433
 
9434
- var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/flag.js");
9434
+ var flag = __webpack_require__(/*! ./flag */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/flag.js");
9435
9435
 
9436
9436
  /**
9437
9437
  * ### .test(object, expression)
@@ -9453,9 +9453,9 @@ module.exports = function test(obj, args) {
9453
9453
 
9454
9454
  /***/ }),
9455
9455
 
9456
- /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js":
9456
+ /***/ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js":
9457
9457
  /*!*********************************************************************************************************!*\
9458
- !*** ../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/lib/chai/utils/transferFlags.js ***!
9458
+ !*** ../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/lib/chai/utils/transferFlags.js ***!
9459
9459
  \*********************************************************************************************************/
9460
9460
  /***/ ((module) => {
9461
9461
 
@@ -10255,9 +10255,9 @@ module.exports = exports
10255
10255
 
10256
10256
  /***/ }),
10257
10257
 
10258
- /***/ "../../common/temp/node_modules/.pnpm/deep-eql@3.0.1/node_modules/deep-eql/index.js":
10258
+ /***/ "../../common/temp/node_modules/.pnpm/deep-eql@4.1.2/node_modules/deep-eql/index.js":
10259
10259
  /*!******************************************************************************************!*\
10260
- !*** ../../common/temp/node_modules/.pnpm/deep-eql@3.0.1/node_modules/deep-eql/index.js ***!
10260
+ !*** ../../common/temp/node_modules/.pnpm/deep-eql@4.1.2/node_modules/deep-eql/index.js ***!
10261
10261
  \******************************************************************************************/
10262
10262
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10263
10263
 
@@ -10276,10 +10276,10 @@ function FakeMap() {
10276
10276
  }
10277
10277
 
10278
10278
  FakeMap.prototype = {
10279
- get: function getMap(key) {
10279
+ get: function get(key) {
10280
10280
  return key[this._key];
10281
10281
  },
10282
- set: function setMap(key, value) {
10282
+ set: function set(key, value) {
10283
10283
  if (Object.isExtensible(key)) {
10284
10284
  Object.defineProperty(key, this._key, {
10285
10285
  value: value,
@@ -10471,8 +10471,9 @@ function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandTyp
10471
10471
  case 'function':
10472
10472
  case 'WeakMap':
10473
10473
  case 'WeakSet':
10474
- case 'Error':
10475
10474
  return leftHandOperand === rightHandOperand;
10475
+ case 'Error':
10476
+ return keysEqual(leftHandOperand, rightHandOperand, [ 'name', 'message', 'code' ], options);
10476
10477
  case 'Arguments':
10477
10478
  case 'Int8Array':
10478
10479
  case 'Uint8Array':
@@ -10497,6 +10498,19 @@ function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandTyp
10497
10498
  return entriesEqual(leftHandOperand, rightHandOperand, options);
10498
10499
  case 'Map':
10499
10500
  return entriesEqual(leftHandOperand, rightHandOperand, options);
10501
+ case 'Temporal.PlainDate':
10502
+ case 'Temporal.PlainTime':
10503
+ case 'Temporal.PlainDateTime':
10504
+ case 'Temporal.Instant':
10505
+ case 'Temporal.ZonedDateTime':
10506
+ case 'Temporal.PlainYearMonth':
10507
+ case 'Temporal.PlainMonthDay':
10508
+ return leftHandOperand.equals(rightHandOperand);
10509
+ case 'Temporal.Duration':
10510
+ return leftHandOperand.total('nanoseconds') === rightHandOperand.total('nanoseconds');
10511
+ case 'Temporal.TimeZone':
10512
+ case 'Temporal.Calendar':
10513
+ return leftHandOperand.toString() === rightHandOperand.toString();
10500
10514
  default:
10501
10515
  return objectEqual(leftHandOperand, rightHandOperand, options);
10502
10516
  }
@@ -10642,6 +10656,11 @@ function getEnumerableKeys(target) {
10642
10656
  return keys;
10643
10657
  }
10644
10658
 
10659
+ function getNonEnumerableSymbols(target) {
10660
+ var keys = Object.getOwnPropertySymbols(target);
10661
+ return keys;
10662
+ }
10663
+
10645
10664
  /*!
10646
10665
  * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
10647
10666
  * each key. If any value of the given key is not equal, the function will return false (early).
@@ -10674,14 +10693,16 @@ function keysEqual(leftHandOperand, rightHandOperand, keys, options) {
10674
10693
  * @param {Object} [options] (Optional)
10675
10694
  * @return {Boolean} result
10676
10695
  */
10677
-
10678
10696
  function objectEqual(leftHandOperand, rightHandOperand, options) {
10679
10697
  var leftHandKeys = getEnumerableKeys(leftHandOperand);
10680
10698
  var rightHandKeys = getEnumerableKeys(rightHandOperand);
10699
+ var leftHandSymbols = getNonEnumerableSymbols(leftHandOperand);
10700
+ var rightHandSymbols = getNonEnumerableSymbols(rightHandOperand);
10701
+ leftHandKeys = leftHandKeys.concat(leftHandSymbols);
10702
+ rightHandKeys = rightHandKeys.concat(rightHandSymbols);
10703
+
10681
10704
  if (leftHandKeys.length && leftHandKeys.length === rightHandKeys.length) {
10682
- leftHandKeys.sort();
10683
- rightHandKeys.sort();
10684
- if (iterableEqual(leftHandKeys, rightHandKeys) === false) {
10705
+ if (iterableEqual(mapSymbols(leftHandKeys).sort(), mapSymbols(rightHandKeys).sort()) === false) {
10685
10706
  return false;
10686
10707
  }
10687
10708
  return keysEqual(leftHandOperand, rightHandOperand, leftHandKeys, options);
@@ -10718,6 +10739,16 @@ function isPrimitive(value) {
10718
10739
  return value === null || typeof value !== 'object';
10719
10740
  }
10720
10741
 
10742
+ function mapSymbols(arr) {
10743
+ return arr.map(function mapSymbol(entry) {
10744
+ if (typeof entry === 'symbol') {
10745
+ return entry.toString();
10746
+ }
10747
+
10748
+ return entry;
10749
+ });
10750
+ }
10751
+
10721
10752
 
10722
10753
  /***/ }),
10723
10754
 
@@ -10776,21 +10807,22 @@ module.exports = getFuncName;
10776
10807
 
10777
10808
  /***/ }),
10778
10809
 
10779
- /***/ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js":
10810
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.8/node_modules/i18next-browser-languagedetector/dist/cjs/i18nextBrowserLanguageDetector.js":
10780
10811
  /*!****************************************************************************************************************************************************************************!*\
10781
- !*** ../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js ***!
10812
+ !*** ../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.8/node_modules/i18next-browser-languagedetector/dist/cjs/i18nextBrowserLanguageDetector.js ***!
10782
10813
  \****************************************************************************************************************************************************************************/
10783
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10814
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10784
10815
 
10785
10816
  "use strict";
10786
- __webpack_require__.r(__webpack_exports__);
10787
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10788
- /* harmony export */ "default": () => (/* binding */ Browser)
10789
- /* harmony export */ });
10790
- /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
10791
- /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/createClass.js");
10792
10817
 
10793
10818
 
10819
+ var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/classCallCheck.js");
10820
+ var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/createClass.js");
10821
+
10822
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10823
+
10824
+ var _classCallCheck__default = /*#__PURE__*/_interopDefaultLegacy(_classCallCheck);
10825
+ var _createClass__default = /*#__PURE__*/_interopDefaultLegacy(_createClass);
10794
10826
 
10795
10827
  var arr = [];
10796
10828
  var each = arr.forEach;
@@ -11134,14 +11166,14 @@ var Browser = /*#__PURE__*/function () {
11134
11166
  function Browser(services) {
11135
11167
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11136
11168
 
11137
- (0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, Browser);
11169
+ _classCallCheck__default["default"](this, Browser);
11138
11170
 
11139
11171
  this.type = 'languageDetector';
11140
11172
  this.detectors = {};
11141
11173
  this.init(services, options);
11142
11174
  }
11143
11175
 
11144
- (0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Browser, [{
11176
+ _createClass__default["default"](Browser, [{
11145
11177
  key: "init",
11146
11178
  value: function init(services) {
11147
11179
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -11203,29 +11235,29 @@ var Browser = /*#__PURE__*/function () {
11203
11235
 
11204
11236
  Browser.type = 'languageDetector';
11205
11237
 
11206
-
11238
+ module.exports = Browser;
11207
11239
 
11208
11240
 
11209
11241
  /***/ }),
11210
11242
 
11211
- /***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.2/node_modules/i18next/dist/cjs/i18next.js":
11212
- /*!****************************************************************************************************!*\
11213
- !*** ../../common/temp/node_modules/.pnpm/i18next@21.9.2/node_modules/i18next/dist/cjs/i18next.js ***!
11214
- \****************************************************************************************************/
11243
+ /***/ "../../common/temp/node_modules/.pnpm/i18next@21.10.0/node_modules/i18next/dist/cjs/i18next.js":
11244
+ /*!*****************************************************************************************************!*\
11245
+ !*** ../../common/temp/node_modules/.pnpm/i18next@21.10.0/node_modules/i18next/dist/cjs/i18next.js ***!
11246
+ \*****************************************************************************************************/
11215
11247
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11216
11248
 
11217
11249
  "use strict";
11218
11250
 
11219
11251
 
11220
- var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/typeof.js");
11221
- var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/classCallCheck.js");
11222
- var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/createClass.js");
11223
- var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
11224
- var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/inherits.js");
11225
- var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
11226
- var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
11227
- var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/defineProperty.js");
11228
- var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/toArray.js");
11252
+ var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/typeof.js");
11253
+ var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/classCallCheck.js");
11254
+ var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/createClass.js");
11255
+ var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
11256
+ var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/inherits.js");
11257
+ var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
11258
+ var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
11259
+ var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/defineProperty.js");
11260
+ var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toArray.js");
11229
11261
 
11230
11262
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11231
11263
 
@@ -12989,6 +13021,21 @@ function parseFormatStr(formatStr) {
12989
13021
  };
12990
13022
  }
12991
13023
 
13024
+ function createCachedFormatter(fn) {
13025
+ var cache = {};
13026
+ return function invokeFormatter(val, lng, options) {
13027
+ var key = lng + JSON.stringify(options);
13028
+ var formatter = cache[key];
13029
+
13030
+ if (!formatter) {
13031
+ formatter = fn(lng, options);
13032
+ cache[key] = formatter;
13033
+ }
13034
+
13035
+ return formatter(val);
13036
+ };
13037
+ }
13038
+
12992
13039
  var Formatter = function () {
12993
13040
  function Formatter() {
12994
13041
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -12998,23 +13045,38 @@ var Formatter = function () {
12998
13045
  this.logger = baseLogger.create('formatter');
12999
13046
  this.options = options;
13000
13047
  this.formats = {
13001
- number: function number(val, lng, options) {
13002
- return new Intl.NumberFormat(lng, options).format(val);
13003
- },
13004
- currency: function currency(val, lng, options) {
13005
- return new Intl.NumberFormat(lng, _objectSpread$4(_objectSpread$4({}, options), {}, {
13048
+ number: createCachedFormatter(function (lng, options) {
13049
+ var formatter = new Intl.NumberFormat(lng, options);
13050
+ return function (val) {
13051
+ return formatter.format(val);
13052
+ };
13053
+ }),
13054
+ currency: createCachedFormatter(function (lng, options) {
13055
+ var formatter = new Intl.NumberFormat(lng, _objectSpread$4(_objectSpread$4({}, options), {}, {
13006
13056
  style: 'currency'
13007
- })).format(val);
13008
- },
13009
- datetime: function datetime(val, lng, options) {
13010
- return new Intl.DateTimeFormat(lng, _objectSpread$4({}, options)).format(val);
13011
- },
13012
- relativetime: function relativetime(val, lng, options) {
13013
- return new Intl.RelativeTimeFormat(lng, _objectSpread$4({}, options)).format(val, options.range || 'day');
13014
- },
13015
- list: function list(val, lng, options) {
13016
- return new Intl.ListFormat(lng, _objectSpread$4({}, options)).format(val);
13017
- }
13057
+ }));
13058
+ return function (val) {
13059
+ return formatter.format(val);
13060
+ };
13061
+ }),
13062
+ datetime: createCachedFormatter(function (lng, options) {
13063
+ var formatter = new Intl.DateTimeFormat(lng, _objectSpread$4({}, options));
13064
+ return function (val) {
13065
+ return formatter.format(val);
13066
+ };
13067
+ }),
13068
+ relativetime: createCachedFormatter(function (lng, options) {
13069
+ var formatter = new Intl.RelativeTimeFormat(lng, _objectSpread$4({}, options));
13070
+ return function (val) {
13071
+ return formatter.format(val, options.range || 'day');
13072
+ };
13073
+ }),
13074
+ list: createCachedFormatter(function (lng, options) {
13075
+ var formatter = new Intl.ListFormat(lng, _objectSpread$4({}, options));
13076
+ return function (val) {
13077
+ return formatter.format(val);
13078
+ };
13079
+ })
13018
13080
  };
13019
13081
  this.init(options);
13020
13082
  }
@@ -13033,6 +13095,11 @@ var Formatter = function () {
13033
13095
  value: function add(name, fc) {
13034
13096
  this.formats[name.toLowerCase().trim()] = fc;
13035
13097
  }
13098
+ }, {
13099
+ key: "addCached",
13100
+ value: function addCached(name, fc) {
13101
+ this.formats[name.toLowerCase().trim()] = createCachedFormatter(fc);
13102
+ }
13036
13103
  }, {
13037
13104
  key: "format",
13038
13105
  value: function format(value, _format, lng, options) {
@@ -14040,9 +14107,9 @@ module.exports = instance;
14040
14107
 
14041
14108
  /***/ }),
14042
14109
 
14043
- /***/ "../../common/temp/node_modules/.pnpm/loupe@2.3.4/node_modules/loupe/loupe.js":
14110
+ /***/ "../../common/temp/node_modules/.pnpm/loupe@2.3.6/node_modules/loupe/loupe.js":
14044
14111
  /*!************************************************************************************!*\
14045
- !*** ../../common/temp/node_modules/.pnpm/loupe@2.3.4/node_modules/loupe/loupe.js ***!
14112
+ !*** ../../common/temp/node_modules/.pnpm/loupe@2.3.6/node_modules/loupe/loupe.js ***!
14046
14113
  \************************************************************************************/
14047
14114
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
14048
14115
 
@@ -14426,9 +14493,15 @@ module.exports = instance;
14426
14493
  }
14427
14494
 
14428
14495
  function inspectDate(dateObject, options) {
14429
- // If we need to - truncate the time portion, but never the date
14430
- var split = dateObject.toJSON().split('T');
14431
- var date = split[0];
14496
+ var stringRepresentation = dateObject.toJSON();
14497
+
14498
+ if (stringRepresentation === null) {
14499
+ return 'Invalid Date';
14500
+ }
14501
+
14502
+ var split = stringRepresentation.split('T');
14503
+ var date = split[0]; // If we need to - truncate the time portion, but never the date
14504
+
14432
14505
  return options.stylize("".concat(date, "T").concat(truncate(split[1], options.truncate - date.length - 1)), 'date');
14433
14506
  }
14434
14507
 
@@ -14718,14 +14791,39 @@ module.exports = instance;
14718
14791
 
14719
14792
  try {
14720
14793
  // eslint-disable-next-line global-require
14721
- var nodeUtil = __webpack_require__(/*! util */ "?1806");
14794
+ var nodeUtil = __webpack_require__(/*! util */ "?1120");
14722
14795
 
14723
14796
  nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;
14724
14797
  } catch (noNodeInspect) {
14725
14798
  nodeInspect = false;
14726
14799
  }
14727
14800
 
14728
- var constructorMap = new WeakMap();
14801
+ function FakeMap() {
14802
+ // eslint-disable-next-line prefer-template
14803
+ this.key = 'chai/loupe__' + Math.random() + Date.now();
14804
+ }
14805
+
14806
+ FakeMap.prototype = {
14807
+ // eslint-disable-next-line object-shorthand
14808
+ get: function get(key) {
14809
+ return key[this.key];
14810
+ },
14811
+ // eslint-disable-next-line object-shorthand
14812
+ has: function has(key) {
14813
+ return this.key in key;
14814
+ },
14815
+ // eslint-disable-next-line object-shorthand
14816
+ set: function set(key, value) {
14817
+ if (Object.isExtensible(key)) {
14818
+ Object.defineProperty(key, this.key, {
14819
+ // eslint-disable-next-line object-shorthand
14820
+ value: value,
14821
+ configurable: true
14822
+ });
14823
+ }
14824
+ }
14825
+ };
14826
+ var constructorMap = new (typeof WeakMap === 'function' ? WeakMap : FakeMap)();
14729
14827
  var stringTagMap = {};
14730
14828
  var baseTypesMap = {
14731
14829
  undefined: function undefined$1(value, options) {
@@ -14875,7 +14973,7 @@ module.exports = instance;
14875
14973
  return false;
14876
14974
  }
14877
14975
 
14878
- constructorMap.add(constructor, inspector);
14976
+ constructorMap.set(constructor, inspector);
14879
14977
  return true;
14880
14978
  }
14881
14979
  function registerStringTag(stringTag, inspector) {
@@ -16308,6 +16406,8 @@ var ChangeSetStatus;
16308
16406
  ChangeSetStatus[ChangeSetStatus["CannotMergeIntoMaster"] = 90136] = "CannotMergeIntoMaster";
16309
16407
  /** Cannot merge changes into a DgnDb that has reversed change sets. */
16310
16408
  ChangeSetStatus[ChangeSetStatus["CannotMergeIntoReversed"] = 90137] = "CannotMergeIntoReversed";
16409
+ /** ChangeSet(s) download was cancelled. */
16410
+ ChangeSetStatus[ChangeSetStatus["DownloadCancelled"] = 90138] = "DownloadCancelled";
16311
16411
  })(ChangeSetStatus || (ChangeSetStatus = {}));
16312
16412
  /** Return codes for methods which perform repository management operations
16313
16413
  * @beta Should these be internal?
@@ -16673,6 +16773,7 @@ class BentleyError extends Error {
16673
16773
  case ChangeSetStatus.CannotMergeIntoReadonly: return "Cannot merge changes into a Readonly DgnDb";
16674
16774
  case ChangeSetStatus.CannotMergeIntoMaster: return "Cannot merge changes into a Master DgnDb";
16675
16775
  case ChangeSetStatus.CannotMergeIntoReversed: return "Cannot merge changes into a DgnDb that has reversed change sets";
16776
+ case ChangeSetStatus.DownloadCancelled: return "ChangeSet(s) download was cancelled.";
16676
16777
  case RepositoryStatus.ServerUnavailable: return "ServerUnavailable";
16677
16778
  case RepositoryStatus.LockAlreadyHeld: return "LockAlreadyHeld";
16678
16779
  case RepositoryStatus.SyncError: return "SyncError";
@@ -16927,15 +17028,25 @@ class ByteStream {
16927
17028
  return new ByteStream(buffer, subView); // eslint-disable-line deprecation/deprecation
16928
17029
  }
16929
17030
  /** The number of bytes in this stream */
16930
- get length() { return this._view.byteLength; }
17031
+ get length() {
17032
+ return this._view.byteLength;
17033
+ }
17034
+ /** The number of bytes remaining to be read, from [[curPos]] to the end of the stream. */
17035
+ get remainingLength() {
17036
+ return this.length - this.curPos;
17037
+ }
16931
17038
  /** Returns true if the current read position has been advanced past the end of the stream. This generally indicates that an attempt was made to read more data than is available.
16932
17039
  * @see [[isAtTheEnd]]
16933
17040
  */
16934
- get isPastTheEnd() { return this.curPos > this.length; }
17041
+ get isPastTheEnd() {
17042
+ return this.curPos > this.length;
17043
+ }
16935
17044
  /** Returns true if the current read position has advanced precisely to the end of the stream, indicating all of the data has been consumed.
16936
17045
  * @see [[isPastTheEnd]].
16937
17046
  */
16938
- get isAtTheEnd() { return this.curPos === this.length; }
17047
+ get isAtTheEnd() {
17048
+ return this.curPos === this.length;
17049
+ }
16939
17050
  /** The current read position as an index into the stream of bytes. */
16940
17051
  get curPos() { return this._curPos; }
16941
17052
  set curPos(pos) {
@@ -19267,13 +19378,17 @@ class Logger {
19267
19378
  }
19268
19379
  /** Set the least severe level at which messages should be displayed by default. Call setLevel to override this default setting for specific categories. */
19269
19380
  static setLevelDefault(minLevel) {
19270
- Logger._minLevel = minLevel;
19381
+ var _a;
19382
+ this._minLevel = minLevel;
19383
+ (_a = this.logLevelChangedFn) === null || _a === void 0 ? void 0 : _a.call(this);
19271
19384
  }
19272
19385
  /** Set the minimum logging level for the specified category. The minimum level is least severe level at which messages in the
19273
19386
  * specified category should be displayed.
19274
19387
  */
19275
19388
  static setLevel(category, minLevel) {
19389
+ var _a;
19276
19390
  Logger._categoryFilter.set(category, minLevel);
19391
+ (_a = this.logLevelChangedFn) === null || _a === void 0 ? void 0 : _a.call(this);
19277
19392
  }
19278
19393
  /** Interpret a string as the name of a LogLevel */
19279
19394
  static parseLogLevel(str) {
@@ -19409,8 +19524,8 @@ class Logger {
19409
19524
  Logger._logTrace(category, message, metaData);
19410
19525
  }
19411
19526
  }
19412
- Logger._categoryFilter = new Map();
19413
- Logger._minLevel = undefined;
19527
+ Logger._categoryFilter = new Map(); // do not change the name of this member, it is referenced directly from node addon
19528
+ Logger._minLevel = undefined; // do not change the name of this member, it is referenced directly from node addon
19414
19529
  /** Should the call stack be included when an exception is logged? */
19415
19530
  Logger.logExceptionCallstacks = false;
19416
19531
  /** All static metadata is combined with per-call metadata and stringified in every log message.
@@ -21435,6 +21550,119 @@ class Tracing {
21435
21550
  }
21436
21551
 
21437
21552
 
21553
+ /***/ }),
21554
+
21555
+ /***/ "../bentley/lib/esm/TupleKeyedMap.js":
21556
+ /*!*******************************************!*\
21557
+ !*** ../bentley/lib/esm/TupleKeyedMap.js ***!
21558
+ \*******************************************/
21559
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
21560
+
21561
+ "use strict";
21562
+ __webpack_require__.r(__webpack_exports__);
21563
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21564
+ /* harmony export */ "TupleKeyedMap": () => (/* binding */ TupleKeyedMap)
21565
+ /* harmony export */ });
21566
+ /*---------------------------------------------------------------------------------------------
21567
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
21568
+ * See LICENSE.md in the project root for license terms and full copyright notice.
21569
+ *--------------------------------------------------------------------------------------------*/
21570
+ /** @packageDocumentation
21571
+ * @module Collections
21572
+ */
21573
+ /** A map similar to the standard JavaScript Map collection except that the keys must be a tuple
21574
+ * (javascript array), and two keys are considered equal if their elements in order are strict-equal,
21575
+ * and the tuples have the same amount of elements
21576
+ *
21577
+ * This means you can use array literals to key data in Maps that would otherwise be reference-compared
21578
+ * if using JavaScript's built in Map
21579
+ *
21580
+ * Note that JavaScript's Map type, unlike this one that uses strict equality, uses instead
21581
+ * SameValueZero equality comparison
21582
+ * @see https://262.ecma-international.org/6.0/#sec-samevaluezero
21583
+ *
21584
+ * ```js
21585
+ * const map = new TupleKeyedMap([[1,"y"], "value"]);
21586
+ * const value = map.get([1, "y"]); // a normal map would identify these keys as different because they are independent objects
21587
+ * ```
21588
+ *
21589
+ * It is implemented by each index of the tuple key being used as a singular key into a submap
21590
+ * @note this only implements a subset of the Map interface
21591
+ * @public
21592
+ */
21593
+ class TupleKeyedMap {
21594
+ // argument types match those of Map
21595
+ constructor(entries) {
21596
+ this._map = new Map();
21597
+ this._size = 0;
21598
+ if (entries)
21599
+ for (const [k, v] of entries) {
21600
+ this.set(k, v);
21601
+ }
21602
+ }
21603
+ clear() {
21604
+ return this._map.clear();
21605
+ }
21606
+ makeKeyError() {
21607
+ return Error("A Bad key was used, it didn't match the key type of the the map.");
21608
+ }
21609
+ get(key) {
21610
+ let cursor = this._map;
21611
+ for (const subkey of key) {
21612
+ if (!(cursor instanceof Map))
21613
+ throw this.makeKeyError();
21614
+ cursor = cursor.get(subkey);
21615
+ if (cursor === undefined)
21616
+ return undefined;
21617
+ }
21618
+ if (cursor instanceof Map)
21619
+ throw this.makeKeyError();
21620
+ return cursor;
21621
+ }
21622
+ has(key) {
21623
+ return this.get(key) !== undefined;
21624
+ }
21625
+ set(key, value) {
21626
+ let cursor = this._map;
21627
+ for (let i = 0; i < key.length - 1; ++i) {
21628
+ const subkey = key[i];
21629
+ let next = cursor.get(subkey);
21630
+ if (next === undefined) {
21631
+ next = new Map();
21632
+ cursor.set(subkey, next);
21633
+ }
21634
+ cursor = next;
21635
+ }
21636
+ const finalSubkey = key[key.length - 1];
21637
+ if (!(cursor instanceof Map))
21638
+ throw this.makeKeyError();
21639
+ cursor.set(finalSubkey, value);
21640
+ this._size++;
21641
+ return this;
21642
+ }
21643
+ *[Symbol.iterator]() {
21644
+ function* impl(map, keyPrefix) {
21645
+ for (const [k, v] of map) {
21646
+ const nextKey = [...keyPrefix, k];
21647
+ if (v instanceof Map) {
21648
+ yield* impl(v, nextKey);
21649
+ }
21650
+ else {
21651
+ yield [nextKey, v];
21652
+ }
21653
+ }
21654
+ }
21655
+ yield* impl(this._map, []);
21656
+ }
21657
+ get size() {
21658
+ return this._size;
21659
+ }
21660
+ get [Symbol.toStringTag]() {
21661
+ return this.constructor.name;
21662
+ }
21663
+ }
21664
+
21665
+
21438
21666
  /***/ }),
21439
21667
 
21440
21668
  /***/ "../bentley/lib/esm/TypedArrayBuilder.js":
@@ -21673,7 +21901,8 @@ UnexpectedErrors._handler = _a.errorLog; // default to error logging
21673
21901
  __webpack_require__.r(__webpack_exports__);
21674
21902
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21675
21903
  /* harmony export */ "asInstanceOf": () => (/* binding */ asInstanceOf),
21676
- /* harmony export */ "isInstanceOf": () => (/* binding */ isInstanceOf)
21904
+ /* harmony export */ "isInstanceOf": () => (/* binding */ isInstanceOf),
21905
+ /* harmony export */ "omit": () => (/* binding */ omit)
21677
21906
  /* harmony export */ });
21678
21907
  /*---------------------------------------------------------------------------------------------
21679
21908
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
@@ -21696,6 +21925,19 @@ function isInstanceOf(obj, constructor) {
21696
21925
  function asInstanceOf(obj, constructor) {
21697
21926
  return isInstanceOf(obj, constructor) ? obj : undefined;
21698
21927
  }
21928
+ /** A runtime property omitter, makes a shallow copy of the given object without the specified properties
21929
+ * Compatible with the typescript `Omit` mapped type:
21930
+ * ```js
21931
+ * const testvar: Omit<{x: string, y: object}, "y"> = omit({x: "hello", y: {}}, ["y"]);
21932
+ * ```
21933
+ * @public
21934
+ */
21935
+ function omit(t, keys) {
21936
+ const clone = { ...t };
21937
+ for (const key of keys)
21938
+ delete clone[key];
21939
+ return clone;
21940
+ }
21699
21941
 
21700
21942
 
21701
21943
  /***/ }),
@@ -21811,14 +22053,15 @@ __webpack_require__.r(__webpack_exports__);
21811
22053
  /* harmony export */ "SuccessCategory": () => (/* reexport safe */ _StatusCategory__WEBPACK_IMPORTED_MODULE_6__.SuccessCategory),
21812
22054
  /* harmony export */ "Tracing": () => (/* reexport safe */ _Tracing__WEBPACK_IMPORTED_MODULE_30__.Tracing),
21813
22055
  /* harmony export */ "TransientIdSequence": () => (/* reexport safe */ _Id__WEBPACK_IMPORTED_MODULE_14__.TransientIdSequence),
21814
- /* harmony export */ "TypedArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.TypedArrayBuilder),
21815
- /* harmony export */ "Uint16ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint16ArrayBuilder),
21816
- /* harmony export */ "Uint32ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint32ArrayBuilder),
21817
- /* harmony export */ "Uint8ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__.Uint8ArrayBuilder),
21818
- /* harmony export */ "UnexpectedErrors": () => (/* reexport safe */ _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_32__.UnexpectedErrors),
21819
- /* harmony export */ "YieldManager": () => (/* reexport safe */ _YieldManager__WEBPACK_IMPORTED_MODULE_34__.YieldManager),
22056
+ /* harmony export */ "TupleKeyedMap": () => (/* reexport safe */ _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_31__.TupleKeyedMap),
22057
+ /* harmony export */ "TypedArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.TypedArrayBuilder),
22058
+ /* harmony export */ "Uint16ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.Uint16ArrayBuilder),
22059
+ /* harmony export */ "Uint32ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.Uint32ArrayBuilder),
22060
+ /* harmony export */ "Uint8ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.Uint8ArrayBuilder),
22061
+ /* harmony export */ "UnexpectedErrors": () => (/* reexport safe */ _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_33__.UnexpectedErrors),
22062
+ /* harmony export */ "YieldManager": () => (/* reexport safe */ _YieldManager__WEBPACK_IMPORTED_MODULE_35__.YieldManager),
21820
22063
  /* harmony export */ "areEqualPossiblyUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_10__.areEqualPossiblyUndefined),
21821
- /* harmony export */ "asInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.asInstanceOf),
22064
+ /* harmony export */ "asInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_34__.asInstanceOf),
21822
22065
  /* harmony export */ "assert": () => (/* reexport safe */ _Assert__WEBPACK_IMPORTED_MODULE_1__.assert),
21823
22066
  /* harmony export */ "base64StringToUint8Array": () => (/* reexport safe */ _StringUtils__WEBPACK_IMPORTED_MODULE_28__.base64StringToUint8Array),
21824
22067
  /* harmony export */ "compareBooleans": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_10__.compareBooleans),
@@ -21832,10 +22075,11 @@ __webpack_require__.r(__webpack_exports__);
21832
22075
  /* harmony export */ "dispose": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_13__.dispose),
21833
22076
  /* harmony export */ "disposeArray": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_13__.disposeArray),
21834
22077
  /* harmony export */ "isIDisposable": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_13__.isIDisposable),
21835
- /* harmony export */ "isInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__.isInstanceOf),
22078
+ /* harmony export */ "isInstanceOf": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_34__.isInstanceOf),
21836
22079
  /* harmony export */ "isProperSubclassOf": () => (/* reexport safe */ _ClassUtils__WEBPACK_IMPORTED_MODULE_9__.isProperSubclassOf),
21837
22080
  /* harmony export */ "isSubclassOf": () => (/* reexport safe */ _ClassUtils__WEBPACK_IMPORTED_MODULE_9__.isSubclassOf),
21838
22081
  /* harmony export */ "lowerBound": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_27__.lowerBound),
22082
+ /* harmony export */ "omit": () => (/* reexport safe */ _UtilityTypes__WEBPACK_IMPORTED_MODULE_34__.omit),
21839
22083
  /* harmony export */ "partitionArray": () => (/* reexport safe */ _partitionArray__WEBPACK_IMPORTED_MODULE_24__.partitionArray),
21840
22084
  /* harmony export */ "shallowClone": () => (/* reexport safe */ _SortedArray__WEBPACK_IMPORTED_MODULE_27__.shallowClone),
21841
22085
  /* harmony export */ "using": () => (/* reexport safe */ _Disposable__WEBPACK_IMPORTED_MODULE_13__.using),
@@ -21873,10 +22117,11 @@ __webpack_require__.r(__webpack_exports__);
21873
22117
  /* harmony import */ var _StringUtils__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./StringUtils */ "../bentley/lib/esm/StringUtils.js");
21874
22118
  /* harmony import */ var _Time__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./Time */ "../bentley/lib/esm/Time.js");
21875
22119
  /* harmony import */ var _Tracing__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./Tracing */ "../bentley/lib/esm/Tracing.js");
21876
- /* harmony import */ var _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./TypedArrayBuilder */ "../bentley/lib/esm/TypedArrayBuilder.js");
21877
- /* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./UnexpectedErrors */ "../bentley/lib/esm/UnexpectedErrors.js");
21878
- /* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./UtilityTypes */ "../bentley/lib/esm/UtilityTypes.js");
21879
- /* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./YieldManager */ "../bentley/lib/esm/YieldManager.js");
22120
+ /* harmony import */ var _TupleKeyedMap__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./TupleKeyedMap */ "../bentley/lib/esm/TupleKeyedMap.js");
22121
+ /* harmony import */ var _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./TypedArrayBuilder */ "../bentley/lib/esm/TypedArrayBuilder.js");
22122
+ /* harmony import */ var _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./UnexpectedErrors */ "../bentley/lib/esm/UnexpectedErrors.js");
22123
+ /* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./UtilityTypes */ "../bentley/lib/esm/UtilityTypes.js");
22124
+ /* harmony import */ var _YieldManager__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./YieldManager */ "../bentley/lib/esm/YieldManager.js");
21880
22125
  /*---------------------------------------------------------------------------------------------
21881
22126
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
21882
22127
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -21914,6 +22159,7 @@ __webpack_require__.r(__webpack_exports__);
21914
22159
 
21915
22160
 
21916
22161
 
22162
+
21917
22163
 
21918
22164
 
21919
22165
  /** @docs-package-description
@@ -22033,9 +22279,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
22033
22279
  };
22034
22280
  Object.defineProperty(exports, "__esModule", ({ value: true }));
22035
22281
  exports.ITwinLocalization = void 0;
22036
- const i18next_1 = __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.2/node_modules/i18next/dist/cjs/i18next.js"));
22037
- const i18next_browser_languagedetector_1 = __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js"));
22038
- const i18next_http_backend_1 = __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"));
22282
+ const i18next_1 = __importDefault(__webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.10.0/node_modules/i18next/dist/cjs/i18next.js"));
22283
+ const i18next_browser_languagedetector_1 = __importDefault(__webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.8/node_modules/i18next-browser-languagedetector/dist/cjs/i18nextBrowserLanguageDetector.js"));
22284
+ const i18next_http_backend_1 = __importDefault(__webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/index.js"));
22039
22285
  const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../bentley/lib/esm/core-bentley.js");
22040
22286
  const DEFAULT_MAX_RETRIES = 1; // a low number prevents wasted time and potential timeouts when requesting localization files throws an error
22041
22287
  /** Supplies localizations for iTwin.js
@@ -22134,7 +22380,8 @@ class ITwinLocalization {
22134
22380
  }
22135
22381
  return value;
22136
22382
  }
22137
- /** Similar to `getLocalizedString` but the namespace is a separate param and the key does not include the namespace.
22383
+ /** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need
22384
+ * to include a namespace. If a key includes a namespace, that namespace will be used for interpolating that key.
22138
22385
  * @param namespace - the namespace that identifies the particular localization file that contains the property.
22139
22386
  * @param key - the key that matches a property in the JSON localization file.
22140
22387
  * @returns The string corresponding to the first key that resolves.
@@ -22164,6 +22411,10 @@ class ITwinLocalization {
22164
22411
  if ((options === null || options === void 0 ? void 0 : options.returnDetails) || (options === null || options === void 0 ? void 0 : options.returnObjects)) {
22165
22412
  throw new Error("Translation key must map to a string, but the given options will result in an object");
22166
22413
  }
22414
+ options = {
22415
+ ...options,
22416
+ ns: namespace, // ensure namespace argument is used
22417
+ };
22167
22418
  const en = this.i18next.getFixedT("en", namespace);
22168
22419
  const str = en(key, options);
22169
22420
  if (typeof str !== "string")
@@ -22250,7 +22501,7 @@ TranslationLogger.type = "logger";
22250
22501
 
22251
22502
  /***/ }),
22252
22503
 
22253
- /***/ "?1806":
22504
+ /***/ "?1120":
22254
22505
  /*!**********************!*\
22255
22506
  !*** util (ignored) ***!
22256
22507
  \**********************/
@@ -22260,43 +22511,39 @@ TranslationLogger.type = "logger";
22260
22511
 
22261
22512
  /***/ }),
22262
22513
 
22263
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
22514
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
22264
22515
  /*!**************************************************************************************************************************!*\
22265
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
22516
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
22266
22517
  \**************************************************************************************************************************/
22267
22518
  /***/ ((module) => {
22268
22519
 
22269
22520
  function _arrayLikeToArray(arr, len) {
22270
22521
  if (len == null || len > arr.length) len = arr.length;
22271
-
22272
22522
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
22273
22523
  arr2[i] = arr[i];
22274
22524
  }
22275
-
22276
22525
  return arr2;
22277
22526
  }
22278
-
22279
22527
  module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
22280
22528
 
22281
22529
  /***/ }),
22282
22530
 
22283
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
22531
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
22284
22532
  /*!************************************************************************************************************************!*\
22285
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
22533
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
22286
22534
  \************************************************************************************************************************/
22287
22535
  /***/ ((module) => {
22288
22536
 
22289
22537
  function _arrayWithHoles(arr) {
22290
22538
  if (Array.isArray(arr)) return arr;
22291
22539
  }
22292
-
22293
22540
  module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
22294
22541
 
22295
22542
  /***/ }),
22296
22543
 
22297
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
22544
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
22298
22545
  /*!*******************************************************************************************************************************!*\
22299
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
22546
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
22300
22547
  \*******************************************************************************************************************************/
22301
22548
  /***/ ((module) => {
22302
22549
 
@@ -22304,17 +22551,15 @@ function _assertThisInitialized(self) {
22304
22551
  if (self === void 0) {
22305
22552
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
22306
22553
  }
22307
-
22308
22554
  return self;
22309
22555
  }
22310
-
22311
22556
  module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
22312
22557
 
22313
22558
  /***/ }),
22314
22559
 
22315
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/classCallCheck.js":
22560
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/classCallCheck.js":
22316
22561
  /*!************************************************************************************************************************!*\
22317
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
22562
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
22318
22563
  \************************************************************************************************************************/
22319
22564
  /***/ ((module) => {
22320
22565
 
@@ -22323,27 +22568,26 @@ function _classCallCheck(instance, Constructor) {
22323
22568
  throw new TypeError("Cannot call a class as a function");
22324
22569
  }
22325
22570
  }
22326
-
22327
22571
  module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
22328
22572
 
22329
22573
  /***/ }),
22330
22574
 
22331
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/createClass.js":
22575
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/createClass.js":
22332
22576
  /*!*********************************************************************************************************************!*\
22333
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/createClass.js ***!
22577
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/createClass.js ***!
22334
22578
  \*********************************************************************************************************************/
22335
- /***/ ((module) => {
22579
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22336
22580
 
22581
+ var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPropertyKey.js");
22337
22582
  function _defineProperties(target, props) {
22338
22583
  for (var i = 0; i < props.length; i++) {
22339
22584
  var descriptor = props[i];
22340
22585
  descriptor.enumerable = descriptor.enumerable || false;
22341
22586
  descriptor.configurable = true;
22342
22587
  if ("value" in descriptor) descriptor.writable = true;
22343
- Object.defineProperty(target, descriptor.key, descriptor);
22588
+ Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
22344
22589
  }
22345
22590
  }
22346
-
22347
22591
  function _createClass(Constructor, protoProps, staticProps) {
22348
22592
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
22349
22593
  if (staticProps) _defineProperties(Constructor, staticProps);
@@ -22352,18 +22596,19 @@ function _createClass(Constructor, protoProps, staticProps) {
22352
22596
  });
22353
22597
  return Constructor;
22354
22598
  }
22355
-
22356
22599
  module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
22357
22600
 
22358
22601
  /***/ }),
22359
22602
 
22360
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/defineProperty.js":
22603
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/defineProperty.js":
22361
22604
  /*!************************************************************************************************************************!*\
22362
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/defineProperty.js ***!
22605
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/defineProperty.js ***!
22363
22606
  \************************************************************************************************************************/
22364
- /***/ ((module) => {
22607
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22365
22608
 
22609
+ var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPropertyKey.js");
22366
22610
  function _defineProperty(obj, key, value) {
22611
+ key = toPropertyKey(key);
22367
22612
  if (key in obj) {
22368
22613
  Object.defineProperty(obj, key, {
22369
22614
  value: value,
@@ -22374,17 +22619,15 @@ function _defineProperty(obj, key, value) {
22374
22619
  } else {
22375
22620
  obj[key] = value;
22376
22621
  }
22377
-
22378
22622
  return obj;
22379
22623
  }
22380
-
22381
22624
  module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
22382
22625
 
22383
22626
  /***/ }),
22384
22627
 
22385
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
22628
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
22386
22629
  /*!************************************************************************************************************************!*\
22387
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
22630
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
22388
22631
  \************************************************************************************************************************/
22389
22632
  /***/ ((module) => {
22390
22633
 
@@ -22394,24 +22637,21 @@ function _getPrototypeOf(o) {
22394
22637
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
22395
22638
  return _getPrototypeOf(o);
22396
22639
  }
22397
-
22398
22640
  module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
22399
22641
 
22400
22642
  /***/ }),
22401
22643
 
22402
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/inherits.js":
22644
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/inherits.js":
22403
22645
  /*!******************************************************************************************************************!*\
22404
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/inherits.js ***!
22646
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/inherits.js ***!
22405
22647
  \******************************************************************************************************************/
22406
22648
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22407
22649
 
22408
- var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
22409
-
22650
+ var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
22410
22651
  function _inherits(subClass, superClass) {
22411
22652
  if (typeof superClass !== "function" && superClass !== null) {
22412
22653
  throw new TypeError("Super expression must either be null or a function");
22413
22654
  }
22414
-
22415
22655
  subClass.prototype = Object.create(superClass && superClass.prototype, {
22416
22656
  constructor: {
22417
22657
  value: subClass,
@@ -22424,66 +22664,59 @@ function _inherits(subClass, superClass) {
22424
22664
  });
22425
22665
  if (superClass) setPrototypeOf(subClass, superClass);
22426
22666
  }
22427
-
22428
22667
  module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
22429
22668
 
22430
22669
  /***/ }),
22431
22670
 
22432
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/iterableToArray.js":
22671
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/iterableToArray.js":
22433
22672
  /*!*************************************************************************************************************************!*\
22434
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
22673
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
22435
22674
  \*************************************************************************************************************************/
22436
22675
  /***/ ((module) => {
22437
22676
 
22438
22677
  function _iterableToArray(iter) {
22439
22678
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
22440
22679
  }
22441
-
22442
22680
  module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
22443
22681
 
22444
22682
  /***/ }),
22445
22683
 
22446
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/nonIterableRest.js":
22684
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/nonIterableRest.js":
22447
22685
  /*!*************************************************************************************************************************!*\
22448
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
22686
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
22449
22687
  \*************************************************************************************************************************/
22450
22688
  /***/ ((module) => {
22451
22689
 
22452
22690
  function _nonIterableRest() {
22453
22691
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22454
22692
  }
22455
-
22456
22693
  module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
22457
22694
 
22458
22695
  /***/ }),
22459
22696
 
22460
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
22697
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
22461
22698
  /*!***********************************************************************************************************************************!*\
22462
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
22699
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
22463
22700
  \***********************************************************************************************************************************/
22464
22701
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22465
22702
 
22466
- var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
22467
-
22468
- var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
22469
-
22703
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
22704
+ var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
22470
22705
  function _possibleConstructorReturn(self, call) {
22471
22706
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
22472
22707
  return call;
22473
22708
  } else if (call !== void 0) {
22474
22709
  throw new TypeError("Derived constructors may only return object or undefined");
22475
22710
  }
22476
-
22477
22711
  return assertThisInitialized(self);
22478
22712
  }
22479
-
22480
22713
  module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
22481
22714
 
22482
22715
  /***/ }),
22483
22716
 
22484
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
22717
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
22485
22718
  /*!************************************************************************************************************************!*\
22486
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
22719
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
22487
22720
  \************************************************************************************************************************/
22488
22721
  /***/ ((module) => {
22489
22722
 
@@ -22494,36 +22727,67 @@ function _setPrototypeOf(o, p) {
22494
22727
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
22495
22728
  return _setPrototypeOf(o, p);
22496
22729
  }
22497
-
22498
22730
  module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
22499
22731
 
22500
22732
  /***/ }),
22501
22733
 
22502
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/toArray.js":
22734
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toArray.js":
22503
22735
  /*!*****************************************************************************************************************!*\
22504
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/toArray.js ***!
22736
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toArray.js ***!
22505
22737
  \*****************************************************************************************************************/
22506
22738
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22507
22739
 
22508
- var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
22509
-
22510
- var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/iterableToArray.js");
22740
+ var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
22741
+ var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/iterableToArray.js");
22742
+ var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
22743
+ var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/nonIterableRest.js");
22744
+ function _toArray(arr) {
22745
+ return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
22746
+ }
22747
+ module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
22511
22748
 
22512
- var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
22749
+ /***/ }),
22513
22750
 
22514
- var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/nonIterableRest.js");
22751
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPrimitive.js":
22752
+ /*!*********************************************************************************************************************!*\
22753
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPrimitive.js ***!
22754
+ \*********************************************************************************************************************/
22755
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22515
22756
 
22516
- function _toArray(arr) {
22517
- return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
22757
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
22758
+ function _toPrimitive(input, hint) {
22759
+ if (_typeof(input) !== "object" || input === null) return input;
22760
+ var prim = input[Symbol.toPrimitive];
22761
+ if (prim !== undefined) {
22762
+ var res = prim.call(input, hint || "default");
22763
+ if (_typeof(res) !== "object") return res;
22764
+ throw new TypeError("@@toPrimitive must return a primitive value.");
22765
+ }
22766
+ return (hint === "string" ? String : Number)(input);
22518
22767
  }
22768
+ module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
22519
22769
 
22520
- module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
22770
+ /***/ }),
22771
+
22772
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPropertyKey.js":
22773
+ /*!***********************************************************************************************************************!*\
22774
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
22775
+ \***********************************************************************************************************************/
22776
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22777
+
22778
+ var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
22779
+ var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/toPrimitive.js");
22780
+ function _toPropertyKey(arg) {
22781
+ var key = toPrimitive(arg, "string");
22782
+ return _typeof(key) === "symbol" ? key : String(key);
22783
+ }
22784
+ module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
22521
22785
 
22522
22786
  /***/ }),
22523
22787
 
22524
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/typeof.js":
22788
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/typeof.js":
22525
22789
  /*!****************************************************************************************************************!*\
22526
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/typeof.js ***!
22790
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/typeof.js ***!
22527
22791
  \****************************************************************************************************************/
22528
22792
  /***/ ((module) => {
22529
22793
 
@@ -22536,19 +22800,17 @@ function _typeof(obj) {
22536
22800
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
22537
22801
  }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
22538
22802
  }
22539
-
22540
22803
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
22541
22804
 
22542
22805
  /***/ }),
22543
22806
 
22544
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
22807
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
22545
22808
  /*!************************************************************************************************************************************!*\
22546
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
22809
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
22547
22810
  \************************************************************************************************************************************/
22548
22811
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22549
22812
 
22550
- var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
22551
-
22813
+ var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
22552
22814
  function _unsupportedIterableToArray(o, minLen) {
22553
22815
  if (!o) return;
22554
22816
  if (typeof o === "string") return arrayLikeToArray(o, minLen);
@@ -22557,14 +22819,13 @@ function _unsupportedIterableToArray(o, minLen) {
22557
22819
  if (n === "Map" || n === "Set") return Array.from(o);
22558
22820
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
22559
22821
  }
22560
-
22561
22822
  module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
22562
22823
 
22563
22824
  /***/ }),
22564
22825
 
22565
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/getFetch.js":
22826
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/getFetch.js":
22566
22827
  /*!*************************************************************************************************************************!*\
22567
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/getFetch.js ***!
22828
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/getFetch.js ***!
22568
22829
  \*************************************************************************************************************************/
22569
22830
  /***/ ((module, exports, __webpack_require__) => {
22570
22831
 
@@ -22589,9 +22850,9 @@ if ( true && (typeof window === 'undefined' || typeof window.document === 'undef
22589
22850
 
22590
22851
  /***/ }),
22591
22852
 
22592
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/index.js":
22853
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/index.js":
22593
22854
  /*!**********************************************************************************************************************!*\
22594
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/index.js ***!
22855
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/index.js ***!
22595
22856
  \**********************************************************************************************************************/
22596
22857
  /***/ ((module, exports, __webpack_require__) => {
22597
22858
 
@@ -22602,21 +22863,13 @@ Object.defineProperty(exports, "__esModule", ({
22602
22863
  value: true
22603
22864
  }));
22604
22865
  exports["default"] = void 0;
22605
-
22606
- 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");
22607
-
22608
- 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"));
22609
-
22866
+ var _utils = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/utils.js");
22867
+ var _request = _interopRequireDefault(__webpack_require__(/*! ./request.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/request.js"));
22610
22868
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22611
-
22612
22869
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
22613
-
22614
22870
  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); } }
22615
-
22616
22871
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
22617
-
22618
22872
  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; }
22619
-
22620
22873
  var getDefaults = function getDefaults() {
22621
22874
  return {
22622
22875
  loadPath: '/locales/{{lng}}/{{ns}}.json',
@@ -22643,32 +22896,26 @@ var getDefaults = function getDefaults() {
22643
22896
  }
22644
22897
  };
22645
22898
  };
22646
-
22647
22899
  var Backend = function () {
22648
22900
  function Backend(services) {
22649
22901
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
22650
22902
  var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
22651
-
22652
22903
  _classCallCheck(this, Backend);
22653
-
22654
22904
  this.services = services;
22655
22905
  this.options = options;
22656
22906
  this.allOptions = allOptions;
22657
22907
  this.type = 'backend';
22658
22908
  this.init(services, options, allOptions);
22659
22909
  }
22660
-
22661
22910
  _createClass(Backend, [{
22662
22911
  key: "init",
22663
22912
  value: function init(services) {
22664
22913
  var _this = this;
22665
-
22666
22914
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
22667
22915
  var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
22668
22916
  this.services = services;
22669
22917
  this.options = (0, _utils.defaults)(options, this.options || {}, getDefaults());
22670
22918
  this.allOptions = allOptions;
22671
-
22672
22919
  if (this.services && this.options.reloadInterval) {
22673
22920
  setInterval(function () {
22674
22921
  return _this.reload();
@@ -22689,22 +22936,17 @@ var Backend = function () {
22689
22936
  key: "_readAny",
22690
22937
  value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
22691
22938
  var _this2 = this;
22692
-
22693
22939
  var loadPath = this.options.loadPath;
22694
-
22695
22940
  if (typeof this.options.loadPath === 'function') {
22696
22941
  loadPath = this.options.loadPath(languages, namespaces);
22697
22942
  }
22698
-
22699
22943
  loadPath = (0, _utils.makePromise)(loadPath);
22700
22944
  loadPath.then(function (resolvedLoadPath) {
22701
22945
  if (!resolvedLoadPath) return callback(null, {});
22702
-
22703
22946
  var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {
22704
22947
  lng: languages.join('+'),
22705
22948
  ns: namespaces.join('+')
22706
22949
  });
22707
-
22708
22950
  _this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
22709
22951
  });
22710
22952
  }
@@ -22712,14 +22954,12 @@ var Backend = function () {
22712
22954
  key: "loadUrl",
22713
22955
  value: function loadUrl(url, callback, languages, namespaces) {
22714
22956
  var _this3 = this;
22715
-
22716
22957
  this.options.request(this.options, url, undefined, function (err, res) {
22717
22958
  if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback('failed loading ' + url + '; status code: ' + res.status, true);
22718
22959
  if (res && res.status >= 400 && res.status < 500) return callback('failed loading ' + url + '; status code: ' + res.status, false);
22719
22960
  if (!res && err && err.message && err.message.indexOf('Failed to fetch') > -1) return callback('failed loading ' + url + ': ' + err.message, true);
22720
22961
  if (err) return callback(err, false);
22721
22962
  var ret, parseErr;
22722
-
22723
22963
  try {
22724
22964
  if (typeof res.data === 'string') {
22725
22965
  ret = _this3.options.parse(res.data, languages, namespaces);
@@ -22729,7 +22969,6 @@ var Backend = function () {
22729
22969
  } catch (e) {
22730
22970
  parseErr = 'failed parsing ' + url + ' to json';
22731
22971
  }
22732
-
22733
22972
  if (parseErr) return callback(parseErr, false);
22734
22973
  callback(null, ret);
22735
22974
  });
@@ -22738,7 +22977,6 @@ var Backend = function () {
22738
22977
  key: "create",
22739
22978
  value: function create(languages, namespace, key, fallbackValue, callback) {
22740
22979
  var _this4 = this;
22741
-
22742
22980
  if (!this.options.addPath) return;
22743
22981
  if (typeof languages === 'string') languages = [languages];
22744
22982
  var payload = this.options.parsePayload(namespace, key, fallbackValue);
@@ -22747,21 +22985,17 @@ var Backend = function () {
22747
22985
  var resArray = [];
22748
22986
  languages.forEach(function (lng) {
22749
22987
  var addPath = _this4.options.addPath;
22750
-
22751
22988
  if (typeof _this4.options.addPath === 'function') {
22752
22989
  addPath = _this4.options.addPath(lng, namespace);
22753
22990
  }
22754
-
22755
22991
  var url = _this4.services.interpolator.interpolate(addPath, {
22756
22992
  lng: lng,
22757
22993
  ns: namespace
22758
22994
  });
22759
-
22760
22995
  _this4.options.request(_this4.options, url, payload, function (data, res) {
22761
22996
  finished += 1;
22762
22997
  dataArray.push(data);
22763
22998
  resArray.push(res);
22764
-
22765
22999
  if (finished === languages.length) {
22766
23000
  if (callback) callback(dataArray, resArray);
22767
23001
  }
@@ -22772,22 +23006,20 @@ var Backend = function () {
22772
23006
  key: "reload",
22773
23007
  value: function reload() {
22774
23008
  var _this5 = this;
22775
-
22776
23009
  var _this$services = this.services,
22777
- backendConnector = _this$services.backendConnector,
22778
- languageUtils = _this$services.languageUtils,
22779
- logger = _this$services.logger;
23010
+ backendConnector = _this$services.backendConnector,
23011
+ languageUtils = _this$services.languageUtils,
23012
+ logger = _this$services.logger;
22780
23013
  var currentLanguage = backendConnector.language;
22781
23014
  if (currentLanguage && currentLanguage.toLowerCase() === 'cimode') return;
22782
- var toLoad = [];
22783
23015
 
23016
+ var toLoad = [];
22784
23017
  var append = function append(lng) {
22785
23018
  var lngs = languageUtils.toResolveHierarchy(lng);
22786
23019
  lngs.forEach(function (l) {
22787
23020
  if (toLoad.indexOf(l) < 0) toLoad.push(l);
22788
23021
  });
22789
23022
  };
22790
-
22791
23023
  append(currentLanguage);
22792
23024
  if (this.allOptions.preload) this.allOptions.preload.forEach(function (l) {
22793
23025
  return append(l);
@@ -22803,10 +23035,8 @@ var Backend = function () {
22803
23035
  });
22804
23036
  }
22805
23037
  }]);
22806
-
22807
23038
  return Backend;
22808
23039
  }();
22809
-
22810
23040
  Backend.type = 'backend';
22811
23041
  var _default = Backend;
22812
23042
  exports["default"] = _default;
@@ -22814,9 +23044,9 @@ module.exports = exports.default;
22814
23044
 
22815
23045
  /***/ }),
22816
23046
 
22817
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/request.js":
23047
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/request.js":
22818
23048
  /*!************************************************************************************************************************!*\
22819
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/request.js ***!
23049
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/request.js ***!
22820
23050
  \************************************************************************************************************************/
22821
23051
  /***/ ((module, exports, __webpack_require__) => {
22822
23052
 
@@ -22827,19 +23057,12 @@ Object.defineProperty(exports, "__esModule", ({
22827
23057
  value: true
22828
23058
  }));
22829
23059
  exports["default"] = void 0;
22830
-
22831
- 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");
22832
-
22833
- 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"));
22834
-
23060
+ var _utils = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/utils.js");
23061
+ var fetchNode = _interopRequireWildcard(__webpack_require__(/*! ./getFetch.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/getFetch.js"));
22835
23062
  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); }
22836
-
22837
23063
  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; }
22838
-
22839
23064
  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); }
22840
-
22841
23065
  var fetchApi;
22842
-
22843
23066
  if (typeof fetch === 'function') {
22844
23067
  if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
22845
23068
  fetchApi = __webpack_require__.g.fetch;
@@ -22849,9 +23072,7 @@ if (typeof fetch === 'function') {
22849
23072
  fetchApi = fetch;
22850
23073
  }
22851
23074
  }
22852
-
22853
23075
  var XmlHttpRequestApi;
22854
-
22855
23076
  if ((0, _utils.hasXMLHttpRequest)()) {
22856
23077
  if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.XMLHttpRequest) {
22857
23078
  XmlHttpRequestApi = __webpack_require__.g.XMLHttpRequest;
@@ -22859,9 +23080,7 @@ if ((0, _utils.hasXMLHttpRequest)()) {
22859
23080
  XmlHttpRequestApi = window.XMLHttpRequest;
22860
23081
  }
22861
23082
  }
22862
-
22863
23083
  var ActiveXObjectApi;
22864
-
22865
23084
  if (typeof ActiveXObject === 'function') {
22866
23085
  if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.ActiveXObject) {
22867
23086
  ActiveXObjectApi = __webpack_require__.g.ActiveXObject;
@@ -22869,25 +23088,19 @@ if (typeof ActiveXObject === 'function') {
22869
23088
  ActiveXObjectApi = window.ActiveXObject;
22870
23089
  }
22871
23090
  }
22872
-
22873
23091
  if (!fetchApi && fetchNode && !XmlHttpRequestApi && !ActiveXObjectApi) fetchApi = fetchNode.default || fetchNode;
22874
23092
  if (typeof fetchApi !== 'function') fetchApi = undefined;
22875
-
22876
23093
  var addQueryString = function addQueryString(url, params) {
22877
23094
  if (params && _typeof(params) === 'object') {
22878
23095
  var queryString = '';
22879
-
22880
23096
  for (var paramName in params) {
22881
23097
  queryString += '&' + encodeURIComponent(paramName) + '=' + encodeURIComponent(params[paramName]);
22882
23098
  }
22883
-
22884
23099
  if (!queryString) return url;
22885
23100
  url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
22886
23101
  }
22887
-
22888
23102
  return url;
22889
23103
  };
22890
-
22891
23104
  var fetchIt = function fetchIt(url, fetchOptions, callback) {
22892
23105
  fetchApi(url, fetchOptions).then(function (response) {
22893
23106
  if (!response.ok) return callback(response.statusText || 'Error', {
@@ -22901,14 +23114,12 @@ var fetchIt = function fetchIt(url, fetchOptions, callback) {
22901
23114
  }).catch(callback);
22902
23115
  }).catch(callback);
22903
23116
  };
22904
-
22905
23117
  var omitFetchOptions = false;
22906
23118
 
22907
23119
  var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
22908
23120
  if (options.queryStringParams) {
22909
23121
  url = addQueryString(url, options.queryStringParams);
22910
23122
  }
22911
-
22912
23123
  var headers = (0, _utils.defaults)({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
22913
23124
  if (payload) headers['Content-Type'] = 'application/json';
22914
23125
  var reqOptions = typeof options.requestOptions === 'function' ? options.requestOptions(payload) : options.requestOptions;
@@ -22917,14 +23128,12 @@ var requestWithFetch = function requestWithFetch(options, url, payload, callback
22917
23128
  body: payload ? options.stringify(payload) : undefined,
22918
23129
  headers: headers
22919
23130
  }, omitFetchOptions ? {} : reqOptions);
22920
-
22921
23131
  try {
22922
23132
  fetchIt(url, fetchOptions, callback);
22923
23133
  } catch (e) {
22924
23134
  if (!reqOptions || Object.keys(reqOptions).length === 0 || !e.message || e.message.indexOf('not implemented') < 0) {
22925
23135
  return callback(e);
22926
23136
  }
22927
-
22928
23137
  try {
22929
23138
  Object.keys(reqOptions).forEach(function (opt) {
22930
23139
  delete fetchOptions[opt];
@@ -22941,86 +23150,68 @@ var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url,
22941
23150
  if (payload && _typeof(payload) === 'object') {
22942
23151
  payload = addQueryString('', payload).slice(1);
22943
23152
  }
22944
-
22945
23153
  if (options.queryStringParams) {
22946
23154
  url = addQueryString(url, options.queryStringParams);
22947
23155
  }
22948
-
22949
23156
  try {
22950
23157
  var x;
22951
-
22952
23158
  if (XmlHttpRequestApi) {
22953
23159
  x = new XmlHttpRequestApi();
22954
23160
  } else {
22955
23161
  x = new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');
22956
23162
  }
22957
-
22958
23163
  x.open(payload ? 'POST' : 'GET', url, 1);
22959
-
22960
23164
  if (!options.crossDomain) {
22961
23165
  x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
22962
23166
  }
22963
-
22964
23167
  x.withCredentials = !!options.withCredentials;
22965
-
22966
23168
  if (payload) {
22967
23169
  x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
22968
23170
  }
22969
-
22970
23171
  if (x.overrideMimeType) {
22971
23172
  x.overrideMimeType('application/json');
22972
23173
  }
22973
-
22974
23174
  var h = options.customHeaders;
22975
23175
  h = typeof h === 'function' ? h() : h;
22976
-
22977
23176
  if (h) {
22978
23177
  for (var i in h) {
22979
23178
  x.setRequestHeader(i, h[i]);
22980
23179
  }
22981
23180
  }
22982
-
22983
23181
  x.onreadystatechange = function () {
22984
23182
  x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
22985
23183
  status: x.status,
22986
23184
  data: x.responseText
22987
23185
  });
22988
23186
  };
22989
-
22990
23187
  x.send(payload);
22991
23188
  } catch (e) {
22992
23189
  console && console.log(e);
22993
23190
  }
22994
23191
  };
22995
-
22996
23192
  var request = function request(options, url, payload, callback) {
22997
23193
  if (typeof payload === 'function') {
22998
23194
  callback = payload;
22999
23195
  payload = undefined;
23000
23196
  }
23001
-
23002
23197
  callback = callback || function () {};
23003
-
23004
23198
  if (fetchApi) {
23005
23199
  return requestWithFetch(options, url, payload, callback);
23006
23200
  }
23007
-
23008
23201
  if ((0, _utils.hasXMLHttpRequest)() || typeof ActiveXObject === 'function') {
23009
23202
  return requestWithXmlHttpRequest(options, url, payload, callback);
23010
23203
  }
23011
-
23012
23204
  callback(new Error('No fetch and no xhr implementation found!'));
23013
23205
  };
23014
-
23015
23206
  var _default = request;
23016
23207
  exports["default"] = _default;
23017
23208
  module.exports = exports.default;
23018
23209
 
23019
23210
  /***/ }),
23020
23211
 
23021
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/utils.js":
23212
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/utils.js":
23022
23213
  /*!**********************************************************************************************************************!*\
23023
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.4/node_modules/i18next-http-backend/cjs/utils.js ***!
23214
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.5/node_modules/i18next-http-backend/cjs/utils.js ***!
23024
23215
  \**********************************************************************************************************************/
23025
23216
  /***/ ((__unused_webpack_module, exports) => {
23026
23217
 
@@ -23033,13 +23224,10 @@ Object.defineProperty(exports, "__esModule", ({
23033
23224
  exports.defaults = defaults;
23034
23225
  exports.hasXMLHttpRequest = hasXMLHttpRequest;
23035
23226
  exports.makePromise = makePromise;
23036
-
23037
23227
  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); }
23038
-
23039
23228
  var arr = [];
23040
23229
  var each = arr.forEach;
23041
23230
  var slice = arr.slice;
23042
-
23043
23231
  function defaults(obj) {
23044
23232
  each.call(slice.call(arguments, 1), function (source) {
23045
23233
  if (source) {
@@ -23050,7 +23238,6 @@ function defaults(obj) {
23050
23238
  });
23051
23239
  return obj;
23052
23240
  }
23053
-
23054
23241
  function hasXMLHttpRequest() {
23055
23242
  return typeof XMLHttpRequest === 'function' || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) === 'object';
23056
23243
  }
@@ -23063,62 +23250,10 @@ function makePromise(maybePromise) {
23063
23250
  if (isPromise(maybePromise)) {
23064
23251
  return maybePromise;
23065
23252
  }
23066
-
23067
23253
  return Promise.resolve(maybePromise);
23068
23254
  }
23069
23255
 
23070
- /***/ }),
23071
-
23072
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
23073
- /*!****************************************************************************************************************************!*\
23074
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
23075
- \****************************************************************************************************************************/
23076
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
23077
-
23078
- "use strict";
23079
- __webpack_require__.r(__webpack_exports__);
23080
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23081
- /* harmony export */ "default": () => (/* binding */ _classCallCheck)
23082
- /* harmony export */ });
23083
- function _classCallCheck(instance, Constructor) {
23084
- if (!(instance instanceof Constructor)) {
23085
- throw new TypeError("Cannot call a class as a function");
23086
- }
23087
- }
23088
-
23089
- /***/ }),
23090
-
23091
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/createClass.js":
23092
- /*!*************************************************************************************************************************!*\
23093
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.19.0/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
23094
- \*************************************************************************************************************************/
23095
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
23096
-
23097
- "use strict";
23098
- __webpack_require__.r(__webpack_exports__);
23099
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23100
- /* harmony export */ "default": () => (/* binding */ _createClass)
23101
- /* harmony export */ });
23102
- function _defineProperties(target, props) {
23103
- for (var i = 0; i < props.length; i++) {
23104
- var descriptor = props[i];
23105
- descriptor.enumerable = descriptor.enumerable || false;
23106
- descriptor.configurable = true;
23107
- if ("value" in descriptor) descriptor.writable = true;
23108
- Object.defineProperty(target, descriptor.key, descriptor);
23109
- }
23110
- }
23111
-
23112
- function _createClass(Constructor, protoProps, staticProps) {
23113
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
23114
- if (staticProps) _defineProperties(Constructor, staticProps);
23115
- Object.defineProperty(Constructor, "prototype", {
23116
- writable: false
23117
- });
23118
- return Constructor;
23119
- }
23120
-
23121
- /***/ })
23256
+ /***/ })
23122
23257
 
23123
23258
  /******/ });
23124
23259
  /************************************************************************/
@@ -23202,13 +23337,84 @@ var exports = __webpack_exports__;
23202
23337
  * See LICENSE.md in the project root for license terms and full copyright notice.
23203
23338
  *--------------------------------------------------------------------------------------------*/
23204
23339
  Object.defineProperty(exports, "__esModule", ({ value: true }));
23205
- const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.6/node_modules/chai/index.js");
23340
+ const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
23206
23341
  const ITwinLocalization_1 = __webpack_require__(/*! ../ITwinLocalization */ "./lib/cjs/ITwinLocalization.js");
23207
23342
  describe("ITwinLocalization", () => {
23208
23343
  let localization;
23344
+ let germanLocalization;
23345
+ describe("#constructor", () => {
23346
+ let itwinLocalization;
23347
+ it("set default namespace", async () => {
23348
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { defaultNS: "Default" } });
23349
+ await itwinLocalization.initialize([]);
23350
+ chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, "Default");
23351
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("FirstTrivial"), "First level string (default)");
23352
+ });
23353
+ it("set default language as english", async () => {
23354
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { defaultNS: "Default", lng: "en" } });
23355
+ await itwinLocalization.initialize([]);
23356
+ chai_1.assert.equal(itwinLocalization.i18next.options.lng, "en");
23357
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("FirstTrivial"), "First level string (default)");
23358
+ });
23359
+ it("set default language as NOT english", async () => {
23360
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { defaultNS: "Default", lng: "de" } });
23361
+ await itwinLocalization.initialize([]);
23362
+ chai_1.assert.equal(itwinLocalization.i18next.options.lng, "de");
23363
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("FirstTrivial"), "First level string (default german)");
23364
+ });
23365
+ it("set fallback language as NOT english", async () => {
23366
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { defaultNS: "Default", fallbackLng: "de" } });
23367
+ await itwinLocalization.initialize([]);
23368
+ chai_1.assert.equal(itwinLocalization.i18next.options.fallbackLng, "de");
23369
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("OnlyGerman"), "Hallo");
23370
+ });
23371
+ });
23209
23372
  describe("#initialize", () => {
23210
- describe("with default namespace provided in constructor", () => {
23211
- let itwinLocalization;
23373
+ let itwinLocalization;
23374
+ it("cannot fetch from unregistered namespaces", async () => {
23375
+ localization = new ITwinLocalization_1.ITwinLocalization();
23376
+ await localization.initialize([]);
23377
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstTrivial"), "FirstTrivial");
23378
+ chai_1.assert.equal(localization.getLocalizedString("Test:FirstTrivial"), "FirstTrivial");
23379
+ });
23380
+ describe("with no default namespace predefined", () => {
23381
+ before(() => {
23382
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization();
23383
+ });
23384
+ it("no default namespace set when initialized with empty array", async () => {
23385
+ await itwinLocalization.initialize([]);
23386
+ chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, undefined);
23387
+ });
23388
+ it("initialize with single namespace", async () => {
23389
+ var _a;
23390
+ await itwinLocalization.initialize(["Test"]);
23391
+ chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, "Test");
23392
+ chai_1.assert.isTrue((_a = itwinLocalization.i18next.options.ns) === null || _a === void 0 ? void 0 : _a.includes("Test"));
23393
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
23394
+ });
23395
+ it("initialize with two namespaces recognizes both namespaces", async () => {
23396
+ var _a, _b;
23397
+ await itwinLocalization.initialize(["Default", "Test"]);
23398
+ chai_1.assert.isTrue((_a = itwinLocalization.i18next.options.ns) === null || _a === void 0 ? void 0 : _a.includes("Default"));
23399
+ chai_1.assert.isTrue((_b = itwinLocalization.i18next.options.ns) === null || _b === void 0 ? void 0 : _b.includes("Test"));
23400
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Default:FirstTrivial"), "First level string (default)");
23401
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
23402
+ });
23403
+ it("initialize with two namespaces sets first as default", async () => {
23404
+ await itwinLocalization.initialize(["Default", "Test"]);
23405
+ chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, "Default");
23406
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("FirstTrivial"), "First level string (default)");
23407
+ });
23408
+ it("initialize with duplicate namespace values does not break anything", async () => {
23409
+ var _a;
23410
+ await itwinLocalization.initialize(["Default", "Default"]);
23411
+ chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, "Default");
23412
+ chai_1.assert.isTrue((_a = itwinLocalization.i18next.options.ns) === null || _a === void 0 ? void 0 : _a.includes("Default"));
23413
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("FirstTrivial"), "First level string (default)");
23414
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Default:FirstTrivial"), "First level string (default)");
23415
+ });
23416
+ });
23417
+ describe("with default namespace", () => {
23212
23418
  before(() => {
23213
23419
  itwinLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { defaultNS: "Default" } });
23214
23420
  });
@@ -23240,6 +23446,93 @@ describe("ITwinLocalization", () => {
23240
23446
  });
23241
23447
  });
23242
23448
  });
23449
+ describe("#getLocalizedKeys", () => {
23450
+ before(async () => {
23451
+ localization = new ITwinLocalization_1.ITwinLocalization();
23452
+ await localization.initialize(["Default", "Test"]);
23453
+ germanLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
23454
+ await germanLocalization.initialize(["Default", "Test"]);
23455
+ });
23456
+ it("no substitution", () => {
23457
+ chai_1.assert.equal(localization.getLocalizedKeys("MyString"), "MyString");
23458
+ });
23459
+ describe("Default Namespace", () => {
23460
+ it("first level string", () => {
23461
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{FirstTrivial}"), "hi First level string (default)");
23462
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("hi %{FirstTrivial}"), "hi First level string (default german)");
23463
+ });
23464
+ it("second level string", () => {
23465
+ chai_1.assert.equal(localization.getLocalizedKeys("%{SecondTrivial.Test1}"), "Second level string 1 (default)");
23466
+ chai_1.assert.equal(localization.getLocalizedKeys("bye %{SecondTrivial.Test2}"), "bye Second level string 2 (default)");
23467
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("%{SecondTrivial.Test1}"), "Second level string 1 (default german)");
23468
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("bye %{SecondTrivial.Test2}"), "bye Second level string 2 (default german)");
23469
+ });
23470
+ it("first level string with keys", () => {
23471
+ chai_1.assert.equal(localization.getLocalizedKeys("%{FirstSubstitution1}"), "First level {{str}} (default)");
23472
+ chai_1.assert.equal(localization.getLocalizedKeys("bye %{FirstSubstitution2}"), "bye First level {{str1}} and {{str2}} (default)");
23473
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("%{FirstSubstitution1}"), "First level {{str}} (default german)");
23474
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("bye %{FirstSubstitution2}"), "bye First level {{str1}} and {{str2}} (default german)");
23475
+ });
23476
+ it("second level string with keys", () => {
23477
+ chai_1.assert.equal(localization.getLocalizedKeys("%{SecondSubstitution.Test1}"), "Substitute {{varA}} and {{varB}} (default)");
23478
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{SecondSubstitution.Test2}"), "hi Reverse substitute {{varB}} and {{varA}} (default)");
23479
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("%{SecondSubstitution.Test1}"), "Substitute {{varA}} and {{varB}} (default german)");
23480
+ chai_1.assert.equal(germanLocalization.getLocalizedKeys("hi %{SecondSubstitution.Test2}"), "hi Reverse substitute {{varB}} and {{varA}} (default german)");
23481
+ });
23482
+ it("first level missing key doesn't find a value", () => {
23483
+ chai_1.assert.equal(localization.getLocalizedKeys("no %{MissingKeyString}"), "no MissingKeyString");
23484
+ chai_1.assert.equal(localization.getLocalizedKeys("no %{MissingKeyString}"), "no MissingKeyString");
23485
+ });
23486
+ it("second level missing key doesn't find a value", () => {
23487
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{SecondTrivial.MissingString}"), "hi SecondTrivial.MissingString");
23488
+ chai_1.assert.equal(localization.getLocalizedKeys("%{MissingKeyObject.MissingString}"), "MissingKeyObject.MissingString");
23489
+ });
23490
+ });
23491
+ describe("Given Namespace", () => {
23492
+ it("first level string", () => {
23493
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{Default:FirstTrivial}"), "hi First level string (default)");
23494
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{Test:FirstTrivial}"), "hi First level string (test)");
23495
+ });
23496
+ it("second level string", () => {
23497
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Default:SecondTrivial.Test1}"), "Second level string 1 (default)");
23498
+ chai_1.assert.equal(localization.getLocalizedKeys("bye %{Default:SecondTrivial.Test2}"), "bye Second level string 2 (default)");
23499
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Test:SecondTrivial.Test1}"), "Second level string 1 (test)");
23500
+ chai_1.assert.equal(localization.getLocalizedKeys("bye %{Test:SecondTrivial.Test2}"), "bye Second level string 2 (test)");
23501
+ });
23502
+ it("first level string with keys", () => {
23503
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Default:FirstSubstitution1}"), "First level {{str}} (default)");
23504
+ chai_1.assert.equal(localization.getLocalizedKeys("bye %{Default:FirstSubstitution2}"), "bye First level {{str1}} and {{str2}} (default)");
23505
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Test:FirstSubstitution1}"), "First level {{str}} (test)");
23506
+ chai_1.assert.equal(localization.getLocalizedKeys("bye %{Test:FirstSubstitution2}"), "bye First level {{str1}} and {{str2}} (test)");
23507
+ });
23508
+ it("second level string with keys", () => {
23509
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Default:SecondSubstitution.Test1}"), "Substitute {{varA}} and {{varB}} (default)");
23510
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{Default:SecondSubstitution.Test2}"), "hi Reverse substitute {{varB}} and {{varA}} (default)");
23511
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Test:SecondSubstitution.Test1}"), "Substitute {{varA}} and {{varB}} (test)");
23512
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{Test:SecondSubstitution.Test2}"), "hi Reverse substitute {{varB}} and {{varA}} (test)");
23513
+ });
23514
+ it("first level missing key doesn't find a value", () => {
23515
+ chai_1.assert.equal(localization.getLocalizedKeys("no %{Default:MissingKeyString}"), "no MissingKeyString");
23516
+ chai_1.assert.equal(localization.getLocalizedKeys("no %{Test:MissingKeyString}"), "no MissingKeyString");
23517
+ });
23518
+ it("second level missing key doesn't find a value", () => {
23519
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{Default:SecondTrivial.MissingString}"), "hi SecondTrivial.MissingString");
23520
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Default:MissingKeyObject.MissingString}"), "MissingKeyObject.MissingString");
23521
+ chai_1.assert.equal(localization.getLocalizedKeys("hi %{Test:SecondTrivial.MissingString}"), "hi SecondTrivial.MissingString");
23522
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Test:MissingKeyObject.MissingString}"), "MissingKeyObject.MissingString");
23523
+ });
23524
+ });
23525
+ describe("Nonexisting Namespace", () => {
23526
+ it("first level fails", () => {
23527
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Nonexisting:FirstTrivial}"), "FirstTrivial");
23528
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Nonexisting:MissingKeyString}"), "MissingKeyString");
23529
+ });
23530
+ it("second level fails", () => {
23531
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Nonexisting:SecondTrivial.Test1}"), "SecondTrivial.Test1");
23532
+ chai_1.assert.equal(localization.getLocalizedKeys("%{Nonexisting:Missing.String}"), "Missing.String");
23533
+ });
23534
+ });
23535
+ });
23243
23536
  // The goal is not to test i18next's interpolation,
23244
23537
  // but just to have some simple tests to make sure the
23245
23538
  // basics work through the ITwinLocalization class.
@@ -23248,30 +23541,106 @@ describe("ITwinLocalization", () => {
23248
23541
  before(async () => {
23249
23542
  localization = new ITwinLocalization_1.ITwinLocalization();
23250
23543
  await localization.initialize(["Default", "Test"]);
23544
+ germanLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
23545
+ await germanLocalization.initialize(["Default", "Test"]);
23251
23546
  });
23252
23547
  describe("Default Namespace", () => {
23253
23548
  it("first level with no substitution", () => {
23254
23549
  chai_1.assert.equal(localization.getLocalizedString("FirstTrivial"), "First level string (default)");
23255
23550
  });
23551
+ it("first level with no substitution with fallback keys", () => {
23552
+ chai_1.assert.equal(localization.getLocalizedString(["FirstTrivial", "NotExist"]), "First level string (default)");
23553
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "FirstTrivial"]), "First level string (default)");
23554
+ });
23555
+ it("more than two fallback keys succeeds", () => {
23556
+ chai_1.assert.equal(localization.getLocalizedString(["FirstTrivial", "NotExist1", "NotExist2"]), "First level string (default)");
23557
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist1", "FirstTrivial", "NotExist2"]), "First level string (default)");
23558
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist1", "NotExist2", "FirstTrivial"]), "First level string (default)");
23559
+ chai_1.assert.equal(localization.getLocalizedString(["1", "2", "3", "4", "5", "FirstTrivial"]), "First level string (default)");
23560
+ });
23256
23561
  it("second level with no substitution", () => {
23257
23562
  chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test1"), "Second level string 1 (default)");
23258
23563
  chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test2"), "Second level string 2 (default)");
23259
23564
  });
23565
+ it("second level with no substitution with fallback keys", () => {
23566
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "SecondTrivial.Test1"]), "Second level string 1 (default)");
23567
+ chai_1.assert.equal(localization.getLocalizedString(["SecondTrivial.Test2", "NotExist"]), "Second level string 2 (default)");
23568
+ });
23260
23569
  it("first level with substitution", () => {
23261
23570
  chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23262
23571
  chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (default)");
23263
23572
  chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default)");
23264
23573
  });
23574
+ it("first level with substitution with fallback keys", () => {
23575
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "FirstSubstitution1"], { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23576
+ chai_1.assert.equal(localization.getLocalizedString(["FirstSubstitution1", "NotExist"], { str: "CUSTOM2" }), "First level CUSTOM2 (default)");
23577
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "FirstSubstitution2"], { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default)");
23578
+ });
23265
23579
  it("second level with substitution", () => {
23266
23580
  chai_1.assert.equal(localization.getLocalizedString("SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23267
23581
  chai_1.assert.equal(localization.getLocalizedString("SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default)");
23268
23582
  });
23583
+ it("second level with substitution with fallback keys", () => {
23584
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "SecondSubstitution.Test1"], { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23585
+ chai_1.assert.equal(localization.getLocalizedString(["SecondSubstitution.Test2", "NotExist"], { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default)");
23586
+ });
23269
23587
  it("first level missing key doesn't find a value", () => {
23270
23588
  chai_1.assert.equal(localization.getLocalizedString("MissingKeyString"), "MissingKeyString");
23271
23589
  });
23590
+ it("first level missing all keys doesn't find a value", () => {
23591
+ chai_1.assert.equal(localization.getLocalizedString(["MissingKeyString", "MissingString2"]), "MissingString2");
23592
+ });
23272
23593
  it("second level missing key doesn't find a value", () => {
23273
23594
  chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.MissingString"), "SecondTrivial.MissingString");
23274
- chai_1.assert.equal(localization.getLocalizedString("MissingKeyObject.MissingString"), "MissingKeyObject.MissingString");
23595
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "MissingKeyObject.MissingString"]), "MissingKeyObject.MissingString");
23596
+ });
23597
+ it("read from en-US fallback", () => {
23598
+ chai_1.assert.equal(localization.getLocalizedString("OnlyEnglishUS"), "HelloUS");
23599
+ });
23600
+ });
23601
+ describe("Default Namespace (German)", () => {
23602
+ it("first level with no substitution", () => {
23603
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstTrivial"), "First level string (default german)");
23604
+ });
23605
+ it("first level with no substitution with fallback keys", () => {
23606
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["FirstTrivial", "NotExist"]), "First level string (default german)");
23607
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["NotExist", "FirstTrivial"]), "First level string (default german)");
23608
+ });
23609
+ it("second level with no substitution", () => {
23610
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.Test1"), "Second level string 1 (default german)");
23611
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.Test2"), "Second level string 2 (default german)");
23612
+ });
23613
+ it("second level with no substitution with fallback keys", () => {
23614
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["NotExist", "SecondTrivial.Test1"]), "Second level string 1 (default german)");
23615
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["SecondTrivial.Test2", "NotExist"]), "Second level string 2 (default german)");
23616
+ });
23617
+ it("first level with substitution", () => {
23618
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (default german)");
23619
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (default german)");
23620
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default german)");
23621
+ });
23622
+ it("first level with substitution with fallback keys", () => {
23623
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["NotExist", "FirstSubstitution1"], { str: "CUSTOM1" }), "First level CUSTOM1 (default german)");
23624
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["FirstSubstitution1", "NotExist"], { str: "CUSTOM2" }), "First level CUSTOM2 (default german)");
23625
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["NotExist", "FirstSubstitution2"], { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default german)");
23626
+ });
23627
+ it("second level with substitution", () => {
23628
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default german)");
23629
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default german)");
23630
+ });
23631
+ it("second level with substitution with fallback keys", () => {
23632
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["NotExist", "SecondSubstitution.Test1"], { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default german)");
23633
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["SecondSubstitution.Test2", "NotExist"], { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default german)");
23634
+ });
23635
+ it("first level missing key doesn't find a value", () => {
23636
+ chai_1.assert.equal(germanLocalization.getLocalizedString("MissingKeyString"), "MissingKeyString");
23637
+ });
23638
+ it("first level missing all keys doesn't find a value", () => {
23639
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["MissingKeyString", "MissingString2"]), "MissingString2");
23640
+ });
23641
+ it("second level missing key doesn't find a value", () => {
23642
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.MissingString"), "SecondTrivial.MissingString");
23643
+ chai_1.assert.equal(germanLocalization.getLocalizedString("MissingKeyObject.MissingString"), "MissingKeyObject.MissingString");
23275
23644
  });
23276
23645
  });
23277
23646
  describe("Given Namespace", () => {
@@ -23279,12 +23648,20 @@ describe("ITwinLocalization", () => {
23279
23648
  chai_1.assert.equal(localization.getLocalizedString("Default:FirstTrivial"), "First level string (default)");
23280
23649
  chai_1.assert.equal(localization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
23281
23650
  });
23651
+ it("first level with no substitution with fallback keys", () => {
23652
+ chai_1.assert.equal(localization.getLocalizedString(["Default:FirstTrivial", "Not:NotExist"]), "First level string (default)");
23653
+ chai_1.assert.equal(localization.getLocalizedString(["Default:NotExist", "Test:FirstTrivial"]), "First level string (test)");
23654
+ });
23282
23655
  it("second level with no substitution", () => {
23283
23656
  chai_1.assert.equal(localization.getLocalizedString("Default:SecondTrivial.Test1"), "Second level string 1 (default)");
23284
23657
  chai_1.assert.equal(localization.getLocalizedString("Default:SecondTrivial.Test2"), "Second level string 2 (default)");
23285
23658
  chai_1.assert.equal(localization.getLocalizedString("Test:SecondTrivial.Test1"), "Second level string 1 (test)");
23286
23659
  chai_1.assert.equal(localization.getLocalizedString("Test:SecondTrivial.Test2"), "Second level string 2 (test)");
23287
23660
  });
23661
+ it("second level with no substitution with fallback keys", () => {
23662
+ chai_1.assert.equal(localization.getLocalizedString(["Test:NotExist", "Default:SecondTrivial.Test1"]), "Second level string 1 (default)");
23663
+ chai_1.assert.equal(localization.getLocalizedString(["Test:SecondTrivial.Test2", "NotExist"]), "Second level string 2 (test)");
23664
+ });
23288
23665
  it("first level with substitution", () => {
23289
23666
  chai_1.assert.equal(localization.getLocalizedString("Default:FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23290
23667
  chai_1.assert.equal(localization.getLocalizedString("Default:FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (default)");
@@ -23293,12 +23670,21 @@ describe("ITwinLocalization", () => {
23293
23670
  chai_1.assert.equal(localization.getLocalizedString("Test:FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (test)");
23294
23671
  chai_1.assert.equal(localization.getLocalizedString("Test:FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
23295
23672
  });
23673
+ it("first level with substitution with fallback keys", () => {
23674
+ chai_1.assert.equal(localization.getLocalizedString(["Test:NotExist", "Default:FirstSubstitution1"], { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23675
+ chai_1.assert.equal(localization.getLocalizedString(["Test:FirstSubstitution1", "Default:NotExist"], { str: "CUSTOM2" }), "First level CUSTOM2 (test)");
23676
+ chai_1.assert.equal(localization.getLocalizedString(["Test:NotExist", "Default:FirstSubstitution2"], { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default)");
23677
+ });
23296
23678
  it("second level with substitution", () => {
23297
23679
  chai_1.assert.equal(localization.getLocalizedString("Default:SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23298
23680
  chai_1.assert.equal(localization.getLocalizedString("Default:SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default)");
23299
23681
  chai_1.assert.equal(localization.getLocalizedString("Test:SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (test)");
23300
23682
  chai_1.assert.equal(localization.getLocalizedString("Test:SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
23301
23683
  });
23684
+ it("second level with substitution with fallback keys", () => {
23685
+ chai_1.assert.equal(localization.getLocalizedString(["Test:NotExist", "Default:SecondSubstitution.Test1"], { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23686
+ chai_1.assert.equal(localization.getLocalizedString(["Test:SecondSubstitution.Test2", "Default:NotExist"], { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
23687
+ });
23302
23688
  it("first level missing key doesn't find a value", () => {
23303
23689
  chai_1.assert.equal(localization.getLocalizedString("Default:MissingKeyString"), "MissingKeyString");
23304
23690
  chai_1.assert.equal(localization.getLocalizedString("Test:MissingKeyString"), "MissingKeyString");
@@ -23307,6 +23693,43 @@ describe("ITwinLocalization", () => {
23307
23693
  chai_1.assert.equal(localization.getLocalizedString("Test:SecondTrivial.MissingString"), "SecondTrivial.MissingString");
23308
23694
  chai_1.assert.equal(localization.getLocalizedString("Test:MissingKeyObject.MissingString"), "MissingKeyObject.MissingString");
23309
23695
  });
23696
+ it("read from en-US fallback", () => {
23697
+ chai_1.assert.equal(localization.getLocalizedString("Default:OnlyEnglishUS"), "HelloUS");
23698
+ });
23699
+ });
23700
+ describe("Given Namespace (German)", () => {
23701
+ it("first level with no substitution", () => {
23702
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:FirstTrivial"), "First level string (default german)");
23703
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (german)");
23704
+ });
23705
+ it("second level with no substitution", () => {
23706
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:SecondTrivial.Test1"), "Second level string 1 (default german)");
23707
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:SecondTrivial.Test2"), "Second level string 2 (default german)");
23708
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:SecondTrivial.Test1"), "Second level string 1 (german)");
23709
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:SecondTrivial.Test2"), "Second level string 2 (german)");
23710
+ });
23711
+ it("first level with substitution", () => {
23712
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (default german)");
23713
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (default german)");
23714
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default german)");
23715
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (german)");
23716
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (german)");
23717
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (german)");
23718
+ });
23719
+ it("second level with substitution", () => {
23720
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default german)");
23721
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default german)");
23722
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (german)");
23723
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (german)");
23724
+ });
23725
+ it("first level missing key doesn't find a value", () => {
23726
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:MissingKeyString"), "MissingKeyString");
23727
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:MissingKeyString"), "MissingKeyString");
23728
+ });
23729
+ it("second level missing key doesn't find a value", () => {
23730
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:SecondTrivial.MissingString"), "SecondTrivial.MissingString");
23731
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Test:MissingKeyObject.MissingString"), "MissingKeyObject.MissingString");
23732
+ });
23310
23733
  });
23311
23734
  describe("Nonexisting Namespace", () => {
23312
23735
  it("first level fails", () => {
@@ -23317,8 +23740,464 @@ describe("ITwinLocalization", () => {
23317
23740
  chai_1.assert.equal(localization.getLocalizedString("Nonexisting:SecondTrivial.Test1"), "SecondTrivial.Test1");
23318
23741
  chai_1.assert.equal(localization.getLocalizedString("Nonexisting:Missing.String"), "Missing.String");
23319
23742
  });
23743
+ it("fallback key fails", () => {
23744
+ chai_1.assert.equal(localization.getLocalizedString(["Nonexisting:FirstTrivial", "NotExist"]), "NotExist");
23745
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "Nonexisting:Missing.String"]), "Missing.String");
23746
+ });
23747
+ });
23748
+ // Test a few options to make sure they get passed through correctly
23749
+ describe("With Options", () => {
23750
+ it("returnDetails throws error", () => {
23751
+ chai_1.assert.throws(() => {
23752
+ localization.getLocalizedString("X", { returnDetails: true });
23753
+ }, "Translation key must map to a string, but the given options will result in an object");
23754
+ });
23755
+ it("returnObjects throws error", () => {
23756
+ chai_1.assert.throws(() => {
23757
+ localization.getLocalizedString("X", { returnObjects: true });
23758
+ }, "Translation key must map to a string, but the given options will result in an object");
23759
+ });
23760
+ it("returnDetails and returnObjects throws error", () => {
23761
+ chai_1.assert.throws(() => {
23762
+ localization.getLocalizedString("X", { returnDetails: true, returnObjects: true });
23763
+ }, "Translation key must map to a string, but the given options will result in an object");
23764
+ });
23765
+ it("default value", () => {
23766
+ chai_1.assert.equal(localization.getLocalizedString("Missing", { defaultValue: "default" }), "default");
23767
+ });
23768
+ it("override fallback language", () => {
23769
+ // Doesn't fallback to English
23770
+ chai_1.assert.equal(germanLocalization.getLocalizedString("OnlyEnglish", { fallbackLng: "de" }), "OnlyEnglish");
23771
+ });
23772
+ it("set namespace", () => {
23773
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial", { ns: "Test" }), "First level string (test)");
23774
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { str: "CUSTOM1", ns: "Test" }), "First level CUSTOM1 (test)");
23775
+ });
23776
+ });
23777
+ });
23778
+ describe("#getLocalizedString with namespace passed in as an option", () => {
23779
+ before(async () => {
23780
+ localization = new ITwinLocalization_1.ITwinLocalization();
23781
+ await localization.initialize(["Default", "Test"]);
23782
+ germanLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
23783
+ await germanLocalization.initialize(["Default", "Test"]);
23784
+ });
23785
+ describe("Keys Without Namespaces", () => {
23786
+ it("first level with no substitution", () => {
23787
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial", { ns: "Default" }), "First level string (default)");
23788
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial", { ns: "Test" }), "First level string (test)");
23789
+ });
23790
+ it("first level with no substitution with fallback keys", () => {
23791
+ chai_1.assert.equal(localization.getLocalizedString(["FirstTrivial", "NotExist"], { ns: "Default" }), "First level string (default)");
23792
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "FirstTrivial"], { ns: "Test" }), "First level string (test)");
23793
+ });
23794
+ it("second level with no substitution", () => {
23795
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test1", { ns: "Default" }), "Second level string 1 (default)");
23796
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test2", { ns: "Default" }), "Second level string 2 (default)");
23797
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test1", { ns: "Test" }), "Second level string 1 (test)");
23798
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test2", { ns: "Test" }), "Second level string 2 (test)");
23799
+ });
23800
+ it("second level with no substitution with fallback keys", () => {
23801
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "SecondTrivial.Test1"], { ns: "Default" }), "Second level string 1 (default)");
23802
+ chai_1.assert.equal(localization.getLocalizedString(["SecondTrivial.Test2", "NotExist"], { ns: "Test" }), "Second level string 2 (test)");
23803
+ });
23804
+ it("first level with substitution", () => {
23805
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { ns: "Default", str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23806
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { ns: "Default", str: "CUSTOM2" }), "First level CUSTOM2 (default)");
23807
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution2", { ns: "Default", str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default)");
23808
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { ns: "Test", str: "CUSTOM1" }), "First level CUSTOM1 (test)");
23809
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution1", { ns: "Test", str: "CUSTOM2" }), "First level CUSTOM2 (test)");
23810
+ chai_1.assert.equal(localization.getLocalizedString("FirstSubstitution2", { ns: "Test", str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
23811
+ });
23812
+ it("first level with substitution with fallback keys", () => {
23813
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "FirstSubstitution1"], { ns: "Default", str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23814
+ chai_1.assert.equal(localization.getLocalizedString(["FirstSubstitution1", "NotExist"], { ns: "Test", str: "CUSTOM2" }), "First level CUSTOM2 (test)");
23815
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "FirstSubstitution2"], { ns: "Test", str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
23816
+ });
23817
+ it("second level with substitution", () => {
23818
+ chai_1.assert.equal(localization.getLocalizedString("SecondSubstitution.Test1", { ns: "Default", varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23819
+ chai_1.assert.equal(localization.getLocalizedString("SecondSubstitution.Test2", { ns: "Default", varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default)");
23820
+ chai_1.assert.equal(localization.getLocalizedString("SecondSubstitution.Test1", { ns: "Test", varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (test)");
23821
+ chai_1.assert.equal(localization.getLocalizedString("SecondSubstitution.Test2", { ns: "Test", varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
23822
+ });
23823
+ it("second level with substitution with fallback keys", () => {
23824
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "SecondSubstitution.Test1"], { ns: "Default", varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23825
+ chai_1.assert.equal(localization.getLocalizedString(["SecondSubstitution.Test2", "NotExist"], { ns: "Test", varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
23826
+ });
23827
+ it("first level missing key doesn't find a value", () => {
23828
+ chai_1.assert.equal(localization.getLocalizedString("MissingKeyString", { ns: "Default" }), "MissingKeyString");
23829
+ chai_1.assert.equal(localization.getLocalizedString("MissingKeyString", { ns: "Test" }), "MissingKeyString");
23830
+ });
23831
+ it("second level missing key doesn't find a value", () => {
23832
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.MissingString", { ns: "Test" }), "SecondTrivial.MissingString");
23833
+ chai_1.assert.equal(localization.getLocalizedString("MissingKeyObject.MissingString", { ns: "Test" }), "MissingKeyObject.MissingString");
23834
+ });
23835
+ });
23836
+ describe("Keys Without Namespaces (German)", () => {
23837
+ it("first level with no substitution", () => {
23838
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstTrivial", { ns: "Default" }), "First level string (default german)");
23839
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstTrivial", { ns: "Test" }), "First level string (german)");
23840
+ });
23841
+ it("second level with no substitution", () => {
23842
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.Test1", { ns: "Default" }), "Second level string 1 (default german)");
23843
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.Test2", { ns: "Default" }), "Second level string 2 (default german)");
23844
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.Test1", { ns: "Test" }), "Second level string 1 (german)");
23845
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.Test2", { ns: "Test" }), "Second level string 2 (german)");
23846
+ });
23847
+ it("first level with substitution", () => {
23848
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution1", { ns: "Default", str: "CUSTOM1" }), "First level CUSTOM1 (default german)");
23849
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution1", { ns: "Default", str: "CUSTOM2" }), "First level CUSTOM2 (default german)");
23850
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution2", { ns: "Default", str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default german)");
23851
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution1", { ns: "Test", str: "CUSTOM1" }), "First level CUSTOM1 (german)");
23852
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution1", { ns: "Test", str: "CUSTOM2" }), "First level CUSTOM2 (german)");
23853
+ chai_1.assert.equal(germanLocalization.getLocalizedString("FirstSubstitution2", { ns: "Test", str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (german)");
23854
+ });
23855
+ it("second level with substitution", () => {
23856
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondSubstitution.Test1", { ns: "Default", varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default german)");
23857
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondSubstitution.Test2", { ns: "Default", varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default german)");
23858
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondSubstitution.Test1", { ns: "Test", varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (german)");
23859
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondSubstitution.Test2", { ns: "Test", varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (german)");
23860
+ });
23861
+ it("first level missing key doesn't find a value", () => {
23862
+ chai_1.assert.equal(germanLocalization.getLocalizedString("MissingKeyString", { ns: "Default" }), "MissingKeyString");
23863
+ chai_1.assert.equal(germanLocalization.getLocalizedString("MissingKeyString", { ns: "Test" }), "MissingKeyString");
23864
+ });
23865
+ it("second level missing key doesn't find a value", () => {
23866
+ chai_1.assert.equal(germanLocalization.getLocalizedString("SecondTrivial.MissingString", { ns: "Test" }), "SecondTrivial.MissingString");
23867
+ chai_1.assert.equal(germanLocalization.getLocalizedString("MissingKeyObject.MissingString", { ns: "Test" }), "MissingKeyObject.MissingString");
23868
+ });
23869
+ });
23870
+ describe("Keys With Namespaces", () => {
23871
+ it("key with same namespace works", () => {
23872
+ chai_1.assert.equal(localization.getLocalizedString("Default:FirstTrivial", { ns: "Default" }), "First level string (default)");
23873
+ chai_1.assert.equal(localization.getLocalizedString("Test:SecondTrivial.Test1", { ns: "Test" }), "Second level string 1 (test)");
23874
+ });
23875
+ it("key with different namespace overrides given namespace", () => {
23876
+ chai_1.assert.equal(localization.getLocalizedString("Test:FirstTrivial", { ns: "Default" }), "First level string (test)");
23877
+ chai_1.assert.equal(localization.getLocalizedString("Default:FirstTrivial", { ns: "Test" }), "First level string (default)");
23878
+ });
23879
+ it("key with same namespace works with fallback keys", () => {
23880
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist:FirstTrivial", "Default:FirstTrivial"], { ns: "Default" }), "First level string (default)");
23881
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist:FirstTrivial", "Test:FirstTrivial"], { ns: "Test" }), "First level string (test)");
23882
+ });
23883
+ it("key with different namespace overrides given namespace with fallback keys", () => {
23884
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist:FirstTrivial", "Test:FirstTrivial"], { ns: "Default" }), "First level string (test)");
23885
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist:FirstTrivial", "Default:FirstTrivial"], { ns: "Test" }), "First level string (default)");
23886
+ });
23887
+ it("missing key does not find a value", () => {
23888
+ chai_1.assert.equal(germanLocalization.getLocalizedString("Default:MissingKeyString", { ns: "Default" }), "MissingKeyString");
23889
+ chai_1.assert.equal(germanLocalization.getLocalizedString(["Missing1", "MissingKeyObject.MissingString"], { ns: "Test" }), "MissingKeyObject.MissingString");
23890
+ });
23891
+ });
23892
+ describe("Nonexisting Namespace", () => {
23893
+ it("first level fails", () => {
23894
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial", { ns: "Nonexisting" }), "FirstTrivial");
23895
+ chai_1.assert.equal(localization.getLocalizedString("MissingKeyString", { ns: "Nonexisting" }), "MissingKeyString");
23896
+ });
23897
+ it("second level fails", () => {
23898
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test1", { ns: "Nonexisting" }), "SecondTrivial.Test1");
23899
+ chai_1.assert.equal(localization.getLocalizedString("Missing.String", { ns: "Nonexisting" }), "Missing.String");
23900
+ });
23901
+ it("empty string namespace falls back to default namespace", () => {
23902
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial", { ns: "" }), "First level string (default)");
23903
+ chai_1.assert.equal(localization.getLocalizedString("SecondTrivial.Test1", { ns: "" }), "Second level string 1 (default)");
23904
+ });
23905
+ it("fallback key fails", () => {
23906
+ chai_1.assert.equal(localization.getLocalizedString(["FirstTrivial", "NotExist"], { ns: "Nonexisting" }), "NotExist");
23907
+ chai_1.assert.equal(localization.getLocalizedString(["NotExist", "Missing.String"], { ns: "Nonexisting" }), "Missing.String");
23908
+ });
23909
+ it("use key with valid namespace instead", () => {
23910
+ chai_1.assert.equal(localization.getLocalizedString("Default:FirstTrivial", { ns: "Nonexisting" }), "First level string (default)");
23911
+ chai_1.assert.equal(localization.getLocalizedString("Test:FirstTrivial", { ns: "Nonexisting" }), "First level string (test)");
23912
+ });
23913
+ it("providing key with invalid namespace fails", () => {
23914
+ chai_1.assert.equal(localization.getLocalizedString("Nonexisting2:FirstTrivial", { ns: "Nonexisting1" }), "FirstTrivial");
23915
+ });
23916
+ });
23917
+ // Test a few options to make sure they get passed through correctly
23918
+ describe("With Options", () => {
23919
+ it("returnDetails throws error", () => {
23920
+ chai_1.assert.throws(() => {
23921
+ localization.getLocalizedString("X", { ns: "Default", returnDetails: true });
23922
+ }, "Translation key must map to a string, but the given options will result in an object");
23923
+ });
23924
+ it("returnObjects throws error", () => {
23925
+ chai_1.assert.throws(() => {
23926
+ localization.getLocalizedString("X", { ns: "Default", returnObjects: true });
23927
+ }, "Translation key must map to a string, but the given options will result in an object");
23928
+ });
23929
+ it("returnDetails and returnObjects throws error", () => {
23930
+ chai_1.assert.throws(() => {
23931
+ localization.getLocalizedString("X", { ns: "Default", returnDetails: true, returnObjects: true });
23932
+ }, "Translation key must map to a string, but the given options will result in an object");
23933
+ });
23934
+ it("default value", () => {
23935
+ chai_1.assert.equal(localization.getLocalizedString("Missing", { ns: "Default", defaultValue: "default" }), "default");
23936
+ });
23937
+ it("override fallback language", () => {
23938
+ // Doesn't fallback to English
23939
+ chai_1.assert.equal(germanLocalization.getLocalizedString("OnlyEnglish", { ns: "Default", fallbackLng: "de" }), "OnlyEnglish");
23940
+ });
23941
+ });
23942
+ });
23943
+ describe("#getEnglishString", () => {
23944
+ before(async () => {
23945
+ localization = new ITwinLocalization_1.ITwinLocalization();
23946
+ await localization.initialize(["Default", "Test"]);
23947
+ germanLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
23948
+ await germanLocalization.initialize(["Default", "Test"]);
23949
+ });
23950
+ describe("Given Namespace", () => {
23951
+ it("first level with no substitution", () => {
23952
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstTrivial"), "First level string (default)");
23953
+ chai_1.assert.equal(localization.getEnglishString("Test", "FirstTrivial"), "First level string (test)");
23954
+ });
23955
+ it("first level with no substitution with fallback keys", () => {
23956
+ chai_1.assert.equal(localization.getEnglishString("Default", ["FirstTrivial", "NotExist"]), "First level string (default)");
23957
+ chai_1.assert.equal(localization.getEnglishString("Test", ["NotExist", "FirstTrivial"]), "First level string (test)");
23958
+ });
23959
+ it("second level with no substitution", () => {
23960
+ chai_1.assert.equal(localization.getEnglishString("Default", "SecondTrivial.Test1"), "Second level string 1 (default)");
23961
+ chai_1.assert.equal(localization.getEnglishString("Default", "SecondTrivial.Test2"), "Second level string 2 (default)");
23962
+ chai_1.assert.equal(localization.getEnglishString("Test", "SecondTrivial.Test1"), "Second level string 1 (test)");
23963
+ chai_1.assert.equal(localization.getEnglishString("Test", "SecondTrivial.Test2"), "Second level string 2 (test)");
23964
+ });
23965
+ it("second level with no substitution with fallback keys", () => {
23966
+ chai_1.assert.equal(localization.getEnglishString("Default", ["NotExist", "SecondTrivial.Test1"]), "Second level string 1 (default)");
23967
+ chai_1.assert.equal(localization.getEnglishString("Test", ["SecondTrivial.Test2", "NotExist"]), "Second level string 2 (test)");
23968
+ });
23969
+ it("first level with substitution", () => {
23970
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23971
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (default)");
23972
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default)");
23973
+ chai_1.assert.equal(localization.getEnglishString("Test", "FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (test)");
23974
+ chai_1.assert.equal(localization.getEnglishString("Test", "FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (test)");
23975
+ chai_1.assert.equal(localization.getEnglishString("Test", "FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
23976
+ });
23977
+ it("first level with substitution with fallback keys", () => {
23978
+ chai_1.assert.equal(localization.getEnglishString("Default", ["NotExist", "FirstSubstitution1"], { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
23979
+ chai_1.assert.equal(localization.getEnglishString("Test", ["FirstSubstitution1", "NotExist"], { str: "CUSTOM2" }), "First level CUSTOM2 (test)");
23980
+ chai_1.assert.equal(localization.getEnglishString("Test", ["NotExist", "FirstSubstitution2"], { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
23981
+ });
23982
+ it("second level with substitution", () => {
23983
+ chai_1.assert.equal(localization.getEnglishString("Default", "SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23984
+ chai_1.assert.equal(localization.getEnglishString("Default", "SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default)");
23985
+ chai_1.assert.equal(localization.getEnglishString("Test", "SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (test)");
23986
+ chai_1.assert.equal(localization.getEnglishString("Test", "SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
23987
+ });
23988
+ it("second level with substitution with fallback keys", () => {
23989
+ chai_1.assert.equal(localization.getEnglishString("Default", ["NotExist", "SecondSubstitution.Test1"], { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
23990
+ chai_1.assert.equal(localization.getEnglishString("Test", ["SecondSubstitution.Test2", "NotExist"], { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
23991
+ });
23992
+ it("first level missing key doesn't find a value", () => {
23993
+ chai_1.assert.equal(localization.getEnglishString("Default", "MissingKeyString"), "MissingKeyString");
23994
+ chai_1.assert.equal(localization.getEnglishString("Test", "MissingKeyString"), "MissingKeyString");
23995
+ });
23996
+ it("second level missing key doesn't find a value", () => {
23997
+ chai_1.assert.equal(localization.getEnglishString("Test", "SecondTrivial.MissingString"), "SecondTrivial.MissingString");
23998
+ chai_1.assert.equal(localization.getEnglishString("Test", "MissingKeyObject.MissingString"), "MissingKeyObject.MissingString");
23999
+ });
24000
+ });
24001
+ describe("Given Namespace with German default language returns English strings", () => {
24002
+ it("first level with no substitution", () => {
24003
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "FirstTrivial"), "First level string (default)");
24004
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "FirstTrivial"), "First level string (test)");
24005
+ });
24006
+ it("first level with no substitution with fallback keys", () => {
24007
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", ["FirstTrivial", "NotExist"]), "First level string (default)");
24008
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", ["NotExist", "FirstTrivial"]), "First level string (test)");
24009
+ });
24010
+ it("second level with no substitution", () => {
24011
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "SecondTrivial.Test1"), "Second level string 1 (default)");
24012
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "SecondTrivial.Test2"), "Second level string 2 (default)");
24013
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "SecondTrivial.Test1"), "Second level string 1 (test)");
24014
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "SecondTrivial.Test2"), "Second level string 2 (test)");
24015
+ });
24016
+ it("second level with no substitution with fallback keys", () => {
24017
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", ["NotExist", "SecondTrivial.Test1"]), "Second level string 1 (default)");
24018
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", ["SecondTrivial.Test2", "NotExist"]), "Second level string 2 (test)");
24019
+ });
24020
+ it("first level with substitution", () => {
24021
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
24022
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (default)");
24023
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (default)");
24024
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "FirstSubstitution1", { str: "CUSTOM1" }), "First level CUSTOM1 (test)");
24025
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "FirstSubstitution1", { str: "CUSTOM2" }), "First level CUSTOM2 (test)");
24026
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "FirstSubstitution2", { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
24027
+ });
24028
+ it("first level with substitution with fallback keys", () => {
24029
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", ["NotExist", "FirstSubstitution1"], { str: "CUSTOM1" }), "First level CUSTOM1 (default)");
24030
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", ["FirstSubstitution1", "NotExist"], { str: "CUSTOM2" }), "First level CUSTOM2 (test)");
24031
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", ["NotExist", "FirstSubstitution2"], { str1: "CUSTOM1", str2: "CUSTOM2" }), "First level CUSTOM1 and CUSTOM2 (test)");
24032
+ });
24033
+ it("second level with substitution", () => {
24034
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
24035
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (default)");
24036
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "SecondSubstitution.Test1", { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (test)");
24037
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "SecondSubstitution.Test2", { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
24038
+ });
24039
+ it("second level with substitution with fallback keys", () => {
24040
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", ["NotExist", "SecondSubstitution.Test1"], { varA: "Variable1", varB: "Variable2" }), "Substitute Variable1 and Variable2 (default)");
24041
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", ["SecondSubstitution.Test2", "NotExist"], { varA: "Variable1", varB: "Variable2" }), "Reverse substitute Variable2 and Variable1 (test)");
24042
+ });
24043
+ it("first level missing key doesn't find a value", () => {
24044
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "MissingKeyString"), "MissingKeyString");
24045
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "MissingKeyString"), "MissingKeyString");
24046
+ });
24047
+ it("second level missing key doesn't find a value", () => {
24048
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "SecondTrivial.MissingString"), "SecondTrivial.MissingString");
24049
+ chai_1.assert.equal(germanLocalization.getEnglishString("Test", "MissingKeyObject.MissingString"), "MissingKeyObject.MissingString");
24050
+ });
24051
+ });
24052
+ describe("Nonexisting Namespace", () => {
24053
+ it("first level fails", () => {
24054
+ chai_1.assert.equal(localization.getEnglishString("Nonexisting", "FirstTrivial"), "FirstTrivial");
24055
+ chai_1.assert.equal(localization.getEnglishString("Nonexisting", "MissingKeyString"), "MissingKeyString");
24056
+ });
24057
+ it("second level fails", () => {
24058
+ chai_1.assert.equal(localization.getEnglishString("Nonexisting", "SecondTrivial.Test1"), "SecondTrivial.Test1");
24059
+ chai_1.assert.equal(localization.getEnglishString("Nonexisting", "Missing.String"), "Missing.String");
24060
+ });
24061
+ it("empty string namespace is treated as default namespace", () => {
24062
+ chai_1.assert.equal(localization.getEnglishString("", "FirstTrivial"), "First level string (default)");
24063
+ chai_1.assert.equal(localization.getEnglishString("", "SecondTrivial.Test1"), "Second level string 1 (default)");
24064
+ });
24065
+ });
24066
+ // Test a few options to make sure they get passed through correctly
24067
+ describe("With Options", () => {
24068
+ it("returnDetails throws error", () => {
24069
+ chai_1.assert.throws(() => {
24070
+ localization.getEnglishString("Default", "X", { returnDetails: true });
24071
+ }, "Translation key must map to a string, but the given options will result in an object");
24072
+ });
24073
+ it("returnObjects throws error", () => {
24074
+ chai_1.assert.throws(() => {
24075
+ localization.getEnglishString("Default", "X", { returnObjects: true });
24076
+ }, "Translation key must map to a string, but the given options will result in an object");
24077
+ });
24078
+ it("returnDetails and returnObjects throws error", () => {
24079
+ chai_1.assert.throws(() => {
24080
+ localization.getEnglishString("Default", "X", { returnDetails: true, returnObjects: true });
24081
+ }, "Translation key must map to a string, but the given options will result in an object");
24082
+ });
24083
+ it("default value", () => {
24084
+ chai_1.assert.equal(localization.getEnglishString("Default", "Missing", { defaultValue: "default" }), "default");
24085
+ });
24086
+ it("english takes priority over fallback language", () => {
24087
+ chai_1.assert.equal(germanLocalization.getEnglishString("Default", "OnlyEnglish", { fallbackLng: "de" }), "Hello");
24088
+ });
24089
+ // White box test
24090
+ it("given namespace overrides namespace translation option", () => {
24091
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstTrivial", { ns: "Test" }), "First level string (default)");
24092
+ chai_1.assert.equal(localization.getEnglishString("Default", "FirstSubstitution1", { str: "CUSTOM1", ns: "Test" }), "First level CUSTOM1 (default)");
24093
+ });
24094
+ });
24095
+ });
24096
+ // Returned promises never have anything of substance, being only empty or resolving to null...
24097
+ // describe("#getNamespacePromise", () => {
24098
+ // });
24099
+ describe("#getLanguageList", () => {
24100
+ let languages;
24101
+ it("english language list includes en and en-US", async () => {
24102
+ localization = new ITwinLocalization_1.ITwinLocalization();
24103
+ await localization.initialize([]);
24104
+ languages = localization.getLanguageList();
24105
+ chai_1.assert.isTrue(languages.includes("en-US"));
24106
+ chai_1.assert.isTrue(languages.includes("en"));
24107
+ });
24108
+ it("when non-english language is set as default, that language and english are included in langauge list", async () => {
24109
+ germanLocalization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
24110
+ await germanLocalization.initialize([]);
24111
+ languages = germanLocalization.getLanguageList();
24112
+ chai_1.assert.isTrue(languages.includes("en"));
24113
+ chai_1.assert.isTrue(languages.includes("de"));
24114
+ });
24115
+ });
24116
+ describe("#changeLanguage", () => {
24117
+ it("change from english to another language", async () => {
24118
+ localization = new ITwinLocalization_1.ITwinLocalization();
24119
+ await localization.initialize(["Default"]);
24120
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial"), "First level string (default)"); // english
24121
+ await localization.changeLanguage("de");
24122
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial"), "First level string (default german)"); // german
24123
+ });
24124
+ it("change from another language to english", async () => {
24125
+ localization = new ITwinLocalization_1.ITwinLocalization({ initOptions: { lng: "de" } });
24126
+ await localization.initialize(["Default"]);
24127
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial"), "First level string (default german)"); // german
24128
+ await localization.changeLanguage("en");
24129
+ chai_1.assert.equal(localization.getLocalizedString("FirstTrivial"), "First level string (default)"); // english
24130
+ });
24131
+ });
24132
+ describe("#registerNamespace", () => {
24133
+ let itwinLocalization;
24134
+ beforeEach(async () => {
24135
+ itwinLocalization = new ITwinLocalization_1.ITwinLocalization();
24136
+ });
24137
+ it("can read from namespace after it is registered", async () => {
24138
+ await itwinLocalization.initialize([]);
24139
+ await itwinLocalization.registerNamespace("Test");
24140
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("Test"));
24141
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
24142
+ });
24143
+ it("zero initial, register one", async () => {
24144
+ await itwinLocalization.initialize([]);
24145
+ await itwinLocalization.registerNamespace("test1");
24146
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test1"));
24147
+ });
24148
+ it("zero initial, register two", async () => {
24149
+ await itwinLocalization.initialize([]);
24150
+ await itwinLocalization.registerNamespace("test1");
24151
+ await itwinLocalization.registerNamespace("test2");
24152
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test1"));
24153
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test2"));
24154
+ });
24155
+ it("one initial, register one", async () => {
24156
+ await itwinLocalization.initialize(["initial1"]);
24157
+ await itwinLocalization.registerNamespace("test1");
24158
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test1"));
24159
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("initial1"));
24160
+ });
24161
+ it("one initial, register two", async () => {
24162
+ await itwinLocalization.initialize(["initial1"]);
24163
+ await itwinLocalization.registerNamespace("test1");
24164
+ await itwinLocalization.registerNamespace("test2");
24165
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test1"));
24166
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test2"));
24167
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("initial1"));
24168
+ });
24169
+ it("two initial, register one", async () => {
24170
+ await itwinLocalization.initialize(["initial1", "initial2"]);
24171
+ await itwinLocalization.registerNamespace("test1");
24172
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test1"));
24173
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("initial1"));
24174
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("initial2"));
24175
+ });
24176
+ it("two initial, register two", async () => {
24177
+ await itwinLocalization.initialize(["initial1", "initial2"]);
24178
+ await itwinLocalization.registerNamespace("test1");
24179
+ await itwinLocalization.registerNamespace("test2");
24180
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("test1"));
24181
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("initial1"));
24182
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("initial2"));
24183
+ });
24184
+ it("register duplicate namespaces", async () => {
24185
+ await itwinLocalization.initialize([]);
24186
+ await itwinLocalization.registerNamespace("Test");
24187
+ await itwinLocalization.registerNamespace("Test");
24188
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("Test"));
24189
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
24190
+ });
24191
+ it("register duplicate namespace of initial namespace doesn't break anything", async () => {
24192
+ await itwinLocalization.initialize(["Test"]);
24193
+ await itwinLocalization.registerNamespace("Test");
24194
+ chai_1.assert.isTrue(itwinLocalization.i18next.hasLoadedNamespace("Test"));
24195
+ chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
23320
24196
  });
23321
24197
  });
24198
+ // unregisterNamespace() isn't used and basically does nothing
24199
+ // describe("#unregisterNamespace", () => {
24200
+ // });
23322
24201
  });
23323
24202
 
23324
24203
  })();