@itwin/rpcinterface-full-stack-tests 3.4.0-dev.1 → 3.4.0-dev.10

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.
@@ -21,9 +21,9 @@
21
21
 
22
22
  /***/ }),
23
23
 
24
- /***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.5/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
24
+ /***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
25
25
  /*!********************************************************************************************************************!*\
26
- !*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.5/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
26
+ !*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
27
27
  \********************************************************************************************************************/
28
28
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
29
29
 
@@ -2296,7 +2296,7 @@ exports.getAccessTokenFromBackend = exports.getTokenCallbackName = void 0;
2296
2296
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
2297
2297
  * See LICENSE.md in the project root for license terms and full copyright notice.
2298
2298
  *--------------------------------------------------------------------------------------------*/
2299
- const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.5/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
2299
+ const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
2300
2300
  // Shared by both the frontend and backend side of the tests
2301
2301
  exports.getTokenCallbackName = "getToken";
2302
2302
  async function getAccessTokenFromBackend(user, oidcConfig) {
@@ -19352,6 +19352,570 @@ Emitter.prototype.hasListeners = function(event){
19352
19352
  };
19353
19353
 
19354
19354
 
19355
+ /***/ }),
19356
+
19357
+ /***/ "../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js":
19358
+ /*!****************************************************************************************************************!*\
19359
+ !*** ../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js ***!
19360
+ \****************************************************************************************************************/
19361
+ /***/ (function(module, exports) {
19362
+
19363
+ var global = typeof self !== 'undefined' ? self : this;
19364
+ var __self__ = (function () {
19365
+ function F() {
19366
+ this.fetch = false;
19367
+ this.DOMException = global.DOMException
19368
+ }
19369
+ F.prototype = global;
19370
+ return new F();
19371
+ })();
19372
+ (function(self) {
19373
+
19374
+ var irrelevant = (function (exports) {
19375
+
19376
+ var support = {
19377
+ searchParams: 'URLSearchParams' in self,
19378
+ iterable: 'Symbol' in self && 'iterator' in Symbol,
19379
+ blob:
19380
+ 'FileReader' in self &&
19381
+ 'Blob' in self &&
19382
+ (function() {
19383
+ try {
19384
+ new Blob();
19385
+ return true
19386
+ } catch (e) {
19387
+ return false
19388
+ }
19389
+ })(),
19390
+ formData: 'FormData' in self,
19391
+ arrayBuffer: 'ArrayBuffer' in self
19392
+ };
19393
+
19394
+ function isDataView(obj) {
19395
+ return obj && DataView.prototype.isPrototypeOf(obj)
19396
+ }
19397
+
19398
+ if (support.arrayBuffer) {
19399
+ var viewClasses = [
19400
+ '[object Int8Array]',
19401
+ '[object Uint8Array]',
19402
+ '[object Uint8ClampedArray]',
19403
+ '[object Int16Array]',
19404
+ '[object Uint16Array]',
19405
+ '[object Int32Array]',
19406
+ '[object Uint32Array]',
19407
+ '[object Float32Array]',
19408
+ '[object Float64Array]'
19409
+ ];
19410
+
19411
+ var isArrayBufferView =
19412
+ ArrayBuffer.isView ||
19413
+ function(obj) {
19414
+ return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
19415
+ };
19416
+ }
19417
+
19418
+ function normalizeName(name) {
19419
+ if (typeof name !== 'string') {
19420
+ name = String(name);
19421
+ }
19422
+ if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name)) {
19423
+ throw new TypeError('Invalid character in header field name')
19424
+ }
19425
+ return name.toLowerCase()
19426
+ }
19427
+
19428
+ function normalizeValue(value) {
19429
+ if (typeof value !== 'string') {
19430
+ value = String(value);
19431
+ }
19432
+ return value
19433
+ }
19434
+
19435
+ // Build a destructive iterator for the value list
19436
+ function iteratorFor(items) {
19437
+ var iterator = {
19438
+ next: function() {
19439
+ var value = items.shift();
19440
+ return {done: value === undefined, value: value}
19441
+ }
19442
+ };
19443
+
19444
+ if (support.iterable) {
19445
+ iterator[Symbol.iterator] = function() {
19446
+ return iterator
19447
+ };
19448
+ }
19449
+
19450
+ return iterator
19451
+ }
19452
+
19453
+ function Headers(headers) {
19454
+ this.map = {};
19455
+
19456
+ if (headers instanceof Headers) {
19457
+ headers.forEach(function(value, name) {
19458
+ this.append(name, value);
19459
+ }, this);
19460
+ } else if (Array.isArray(headers)) {
19461
+ headers.forEach(function(header) {
19462
+ this.append(header[0], header[1]);
19463
+ }, this);
19464
+ } else if (headers) {
19465
+ Object.getOwnPropertyNames(headers).forEach(function(name) {
19466
+ this.append(name, headers[name]);
19467
+ }, this);
19468
+ }
19469
+ }
19470
+
19471
+ Headers.prototype.append = function(name, value) {
19472
+ name = normalizeName(name);
19473
+ value = normalizeValue(value);
19474
+ var oldValue = this.map[name];
19475
+ this.map[name] = oldValue ? oldValue + ', ' + value : value;
19476
+ };
19477
+
19478
+ Headers.prototype['delete'] = function(name) {
19479
+ delete this.map[normalizeName(name)];
19480
+ };
19481
+
19482
+ Headers.prototype.get = function(name) {
19483
+ name = normalizeName(name);
19484
+ return this.has(name) ? this.map[name] : null
19485
+ };
19486
+
19487
+ Headers.prototype.has = function(name) {
19488
+ return this.map.hasOwnProperty(normalizeName(name))
19489
+ };
19490
+
19491
+ Headers.prototype.set = function(name, value) {
19492
+ this.map[normalizeName(name)] = normalizeValue(value);
19493
+ };
19494
+
19495
+ Headers.prototype.forEach = function(callback, thisArg) {
19496
+ for (var name in this.map) {
19497
+ if (this.map.hasOwnProperty(name)) {
19498
+ callback.call(thisArg, this.map[name], name, this);
19499
+ }
19500
+ }
19501
+ };
19502
+
19503
+ Headers.prototype.keys = function() {
19504
+ var items = [];
19505
+ this.forEach(function(value, name) {
19506
+ items.push(name);
19507
+ });
19508
+ return iteratorFor(items)
19509
+ };
19510
+
19511
+ Headers.prototype.values = function() {
19512
+ var items = [];
19513
+ this.forEach(function(value) {
19514
+ items.push(value);
19515
+ });
19516
+ return iteratorFor(items)
19517
+ };
19518
+
19519
+ Headers.prototype.entries = function() {
19520
+ var items = [];
19521
+ this.forEach(function(value, name) {
19522
+ items.push([name, value]);
19523
+ });
19524
+ return iteratorFor(items)
19525
+ };
19526
+
19527
+ if (support.iterable) {
19528
+ Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
19529
+ }
19530
+
19531
+ function consumed(body) {
19532
+ if (body.bodyUsed) {
19533
+ return Promise.reject(new TypeError('Already read'))
19534
+ }
19535
+ body.bodyUsed = true;
19536
+ }
19537
+
19538
+ function fileReaderReady(reader) {
19539
+ return new Promise(function(resolve, reject) {
19540
+ reader.onload = function() {
19541
+ resolve(reader.result);
19542
+ };
19543
+ reader.onerror = function() {
19544
+ reject(reader.error);
19545
+ };
19546
+ })
19547
+ }
19548
+
19549
+ function readBlobAsArrayBuffer(blob) {
19550
+ var reader = new FileReader();
19551
+ var promise = fileReaderReady(reader);
19552
+ reader.readAsArrayBuffer(blob);
19553
+ return promise
19554
+ }
19555
+
19556
+ function readBlobAsText(blob) {
19557
+ var reader = new FileReader();
19558
+ var promise = fileReaderReady(reader);
19559
+ reader.readAsText(blob);
19560
+ return promise
19561
+ }
19562
+
19563
+ function readArrayBufferAsText(buf) {
19564
+ var view = new Uint8Array(buf);
19565
+ var chars = new Array(view.length);
19566
+
19567
+ for (var i = 0; i < view.length; i++) {
19568
+ chars[i] = String.fromCharCode(view[i]);
19569
+ }
19570
+ return chars.join('')
19571
+ }
19572
+
19573
+ function bufferClone(buf) {
19574
+ if (buf.slice) {
19575
+ return buf.slice(0)
19576
+ } else {
19577
+ var view = new Uint8Array(buf.byteLength);
19578
+ view.set(new Uint8Array(buf));
19579
+ return view.buffer
19580
+ }
19581
+ }
19582
+
19583
+ function Body() {
19584
+ this.bodyUsed = false;
19585
+
19586
+ this._initBody = function(body) {
19587
+ this._bodyInit = body;
19588
+ if (!body) {
19589
+ this._bodyText = '';
19590
+ } else if (typeof body === 'string') {
19591
+ this._bodyText = body;
19592
+ } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
19593
+ this._bodyBlob = body;
19594
+ } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
19595
+ this._bodyFormData = body;
19596
+ } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
19597
+ this._bodyText = body.toString();
19598
+ } else if (support.arrayBuffer && support.blob && isDataView(body)) {
19599
+ this._bodyArrayBuffer = bufferClone(body.buffer);
19600
+ // IE 10-11 can't handle a DataView body.
19601
+ this._bodyInit = new Blob([this._bodyArrayBuffer]);
19602
+ } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
19603
+ this._bodyArrayBuffer = bufferClone(body);
19604
+ } else {
19605
+ this._bodyText = body = Object.prototype.toString.call(body);
19606
+ }
19607
+
19608
+ if (!this.headers.get('content-type')) {
19609
+ if (typeof body === 'string') {
19610
+ this.headers.set('content-type', 'text/plain;charset=UTF-8');
19611
+ } else if (this._bodyBlob && this._bodyBlob.type) {
19612
+ this.headers.set('content-type', this._bodyBlob.type);
19613
+ } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
19614
+ this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
19615
+ }
19616
+ }
19617
+ };
19618
+
19619
+ if (support.blob) {
19620
+ this.blob = function() {
19621
+ var rejected = consumed(this);
19622
+ if (rejected) {
19623
+ return rejected
19624
+ }
19625
+
19626
+ if (this._bodyBlob) {
19627
+ return Promise.resolve(this._bodyBlob)
19628
+ } else if (this._bodyArrayBuffer) {
19629
+ return Promise.resolve(new Blob([this._bodyArrayBuffer]))
19630
+ } else if (this._bodyFormData) {
19631
+ throw new Error('could not read FormData body as blob')
19632
+ } else {
19633
+ return Promise.resolve(new Blob([this._bodyText]))
19634
+ }
19635
+ };
19636
+
19637
+ this.arrayBuffer = function() {
19638
+ if (this._bodyArrayBuffer) {
19639
+ return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
19640
+ } else {
19641
+ return this.blob().then(readBlobAsArrayBuffer)
19642
+ }
19643
+ };
19644
+ }
19645
+
19646
+ this.text = function() {
19647
+ var rejected = consumed(this);
19648
+ if (rejected) {
19649
+ return rejected
19650
+ }
19651
+
19652
+ if (this._bodyBlob) {
19653
+ return readBlobAsText(this._bodyBlob)
19654
+ } else if (this._bodyArrayBuffer) {
19655
+ return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
19656
+ } else if (this._bodyFormData) {
19657
+ throw new Error('could not read FormData body as text')
19658
+ } else {
19659
+ return Promise.resolve(this._bodyText)
19660
+ }
19661
+ };
19662
+
19663
+ if (support.formData) {
19664
+ this.formData = function() {
19665
+ return this.text().then(decode)
19666
+ };
19667
+ }
19668
+
19669
+ this.json = function() {
19670
+ return this.text().then(JSON.parse)
19671
+ };
19672
+
19673
+ return this
19674
+ }
19675
+
19676
+ // HTTP methods whose capitalization should be normalized
19677
+ var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
19678
+
19679
+ function normalizeMethod(method) {
19680
+ var upcased = method.toUpperCase();
19681
+ return methods.indexOf(upcased) > -1 ? upcased : method
19682
+ }
19683
+
19684
+ function Request(input, options) {
19685
+ options = options || {};
19686
+ var body = options.body;
19687
+
19688
+ if (input instanceof Request) {
19689
+ if (input.bodyUsed) {
19690
+ throw new TypeError('Already read')
19691
+ }
19692
+ this.url = input.url;
19693
+ this.credentials = input.credentials;
19694
+ if (!options.headers) {
19695
+ this.headers = new Headers(input.headers);
19696
+ }
19697
+ this.method = input.method;
19698
+ this.mode = input.mode;
19699
+ this.signal = input.signal;
19700
+ if (!body && input._bodyInit != null) {
19701
+ body = input._bodyInit;
19702
+ input.bodyUsed = true;
19703
+ }
19704
+ } else {
19705
+ this.url = String(input);
19706
+ }
19707
+
19708
+ this.credentials = options.credentials || this.credentials || 'same-origin';
19709
+ if (options.headers || !this.headers) {
19710
+ this.headers = new Headers(options.headers);
19711
+ }
19712
+ this.method = normalizeMethod(options.method || this.method || 'GET');
19713
+ this.mode = options.mode || this.mode || null;
19714
+ this.signal = options.signal || this.signal;
19715
+ this.referrer = null;
19716
+
19717
+ if ((this.method === 'GET' || this.method === 'HEAD') && body) {
19718
+ throw new TypeError('Body not allowed for GET or HEAD requests')
19719
+ }
19720
+ this._initBody(body);
19721
+ }
19722
+
19723
+ Request.prototype.clone = function() {
19724
+ return new Request(this, {body: this._bodyInit})
19725
+ };
19726
+
19727
+ function decode(body) {
19728
+ var form = new FormData();
19729
+ body
19730
+ .trim()
19731
+ .split('&')
19732
+ .forEach(function(bytes) {
19733
+ if (bytes) {
19734
+ var split = bytes.split('=');
19735
+ var name = split.shift().replace(/\+/g, ' ');
19736
+ var value = split.join('=').replace(/\+/g, ' ');
19737
+ form.append(decodeURIComponent(name), decodeURIComponent(value));
19738
+ }
19739
+ });
19740
+ return form
19741
+ }
19742
+
19743
+ function parseHeaders(rawHeaders) {
19744
+ var headers = new Headers();
19745
+ // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
19746
+ // https://tools.ietf.org/html/rfc7230#section-3.2
19747
+ var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
19748
+ preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
19749
+ var parts = line.split(':');
19750
+ var key = parts.shift().trim();
19751
+ if (key) {
19752
+ var value = parts.join(':').trim();
19753
+ headers.append(key, value);
19754
+ }
19755
+ });
19756
+ return headers
19757
+ }
19758
+
19759
+ Body.call(Request.prototype);
19760
+
19761
+ function Response(bodyInit, options) {
19762
+ if (!options) {
19763
+ options = {};
19764
+ }
19765
+
19766
+ this.type = 'default';
19767
+ this.status = options.status === undefined ? 200 : options.status;
19768
+ this.ok = this.status >= 200 && this.status < 300;
19769
+ this.statusText = 'statusText' in options ? options.statusText : 'OK';
19770
+ this.headers = new Headers(options.headers);
19771
+ this.url = options.url || '';
19772
+ this._initBody(bodyInit);
19773
+ }
19774
+
19775
+ Body.call(Response.prototype);
19776
+
19777
+ Response.prototype.clone = function() {
19778
+ return new Response(this._bodyInit, {
19779
+ status: this.status,
19780
+ statusText: this.statusText,
19781
+ headers: new Headers(this.headers),
19782
+ url: this.url
19783
+ })
19784
+ };
19785
+
19786
+ Response.error = function() {
19787
+ var response = new Response(null, {status: 0, statusText: ''});
19788
+ response.type = 'error';
19789
+ return response
19790
+ };
19791
+
19792
+ var redirectStatuses = [301, 302, 303, 307, 308];
19793
+
19794
+ Response.redirect = function(url, status) {
19795
+ if (redirectStatuses.indexOf(status) === -1) {
19796
+ throw new RangeError('Invalid status code')
19797
+ }
19798
+
19799
+ return new Response(null, {status: status, headers: {location: url}})
19800
+ };
19801
+
19802
+ exports.DOMException = self.DOMException;
19803
+ try {
19804
+ new exports.DOMException();
19805
+ } catch (err) {
19806
+ exports.DOMException = function(message, name) {
19807
+ this.message = message;
19808
+ this.name = name;
19809
+ var error = Error(message);
19810
+ this.stack = error.stack;
19811
+ };
19812
+ exports.DOMException.prototype = Object.create(Error.prototype);
19813
+ exports.DOMException.prototype.constructor = exports.DOMException;
19814
+ }
19815
+
19816
+ function fetch(input, init) {
19817
+ return new Promise(function(resolve, reject) {
19818
+ var request = new Request(input, init);
19819
+
19820
+ if (request.signal && request.signal.aborted) {
19821
+ return reject(new exports.DOMException('Aborted', 'AbortError'))
19822
+ }
19823
+
19824
+ var xhr = new XMLHttpRequest();
19825
+
19826
+ function abortXhr() {
19827
+ xhr.abort();
19828
+ }
19829
+
19830
+ xhr.onload = function() {
19831
+ var options = {
19832
+ status: xhr.status,
19833
+ statusText: xhr.statusText,
19834
+ headers: parseHeaders(xhr.getAllResponseHeaders() || '')
19835
+ };
19836
+ options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
19837
+ var body = 'response' in xhr ? xhr.response : xhr.responseText;
19838
+ resolve(new Response(body, options));
19839
+ };
19840
+
19841
+ xhr.onerror = function() {
19842
+ reject(new TypeError('Network request failed'));
19843
+ };
19844
+
19845
+ xhr.ontimeout = function() {
19846
+ reject(new TypeError('Network request failed'));
19847
+ };
19848
+
19849
+ xhr.onabort = function() {
19850
+ reject(new exports.DOMException('Aborted', 'AbortError'));
19851
+ };
19852
+
19853
+ xhr.open(request.method, request.url, true);
19854
+
19855
+ if (request.credentials === 'include') {
19856
+ xhr.withCredentials = true;
19857
+ } else if (request.credentials === 'omit') {
19858
+ xhr.withCredentials = false;
19859
+ }
19860
+
19861
+ if ('responseType' in xhr && support.blob) {
19862
+ xhr.responseType = 'blob';
19863
+ }
19864
+
19865
+ request.headers.forEach(function(value, name) {
19866
+ xhr.setRequestHeader(name, value);
19867
+ });
19868
+
19869
+ if (request.signal) {
19870
+ request.signal.addEventListener('abort', abortXhr);
19871
+
19872
+ xhr.onreadystatechange = function() {
19873
+ // DONE (success or failure)
19874
+ if (xhr.readyState === 4) {
19875
+ request.signal.removeEventListener('abort', abortXhr);
19876
+ }
19877
+ };
19878
+ }
19879
+
19880
+ xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);
19881
+ })
19882
+ }
19883
+
19884
+ fetch.polyfill = true;
19885
+
19886
+ if (!self.fetch) {
19887
+ self.fetch = fetch;
19888
+ self.Headers = Headers;
19889
+ self.Request = Request;
19890
+ self.Response = Response;
19891
+ }
19892
+
19893
+ exports.Headers = Headers;
19894
+ exports.Request = Request;
19895
+ exports.Response = Response;
19896
+ exports.fetch = fetch;
19897
+
19898
+ Object.defineProperty(exports, '__esModule', { value: true });
19899
+
19900
+ return exports;
19901
+
19902
+ })({});
19903
+ })(__self__);
19904
+ __self__.fetch.ponyfill = true;
19905
+ // Remove "polyfill" property added by whatwg-fetch
19906
+ delete __self__.fetch.polyfill;
19907
+ // Choose between native implementation (global) or custom implementation (__self__)
19908
+ // var ctx = global.fetch ? global : __self__;
19909
+ var ctx = __self__; // this line disable service worker support temporarily
19910
+ exports = ctx.fetch // To enable: import fetch from 'cross-fetch'
19911
+ exports["default"] = ctx.fetch // For TypeScript consumers without esModuleInterop.
19912
+ exports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'
19913
+ exports.Headers = ctx.Headers
19914
+ exports.Request = ctx.Request
19915
+ exports.Response = ctx.Response
19916
+ module.exports = exports
19917
+
19918
+
19355
19919
  /***/ }),
19356
19920
 
19357
19921
  /***/ "../../common/temp/node_modules/.pnpm/deep-assign@2.0.0/node_modules/deep-assign/index.js":
@@ -21247,8 +21811,8 @@ __webpack_require__.r(__webpack_exports__);
21247
21811
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21248
21812
  /* harmony export */ "default": () => (/* binding */ Browser)
21249
21813
  /* harmony export */ });
21250
- /* 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.18.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
21251
- /* 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.18.6/node_modules/@babel/runtime/helpers/esm/createClass.js");
21814
+ /* 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.18.9/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
21815
+ /* 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.18.9/node_modules/@babel/runtime/helpers/esm/createClass.js");
21252
21816
 
21253
21817
 
21254
21818
 
@@ -21671,235 +22235,6 @@ Browser.type = 'languageDetector';
21671
22235
 
21672
22236
 
21673
22237
 
21674
- /***/ }),
21675
-
21676
- /***/ "../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js":
21677
- /*!*************************************************************************************************************************************!*\
21678
- !*** ../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js ***!
21679
- \*************************************************************************************************************************************/
21680
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
21681
-
21682
- "use strict";
21683
- __webpack_require__.r(__webpack_exports__);
21684
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21685
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
21686
- /* harmony export */ });
21687
- /* 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.18.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
21688
- /* 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.18.6/node_modules/@babel/runtime/helpers/esm/createClass.js");
21689
- /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
21690
- /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/typeof.js");
21691
-
21692
-
21693
-
21694
-
21695
-
21696
- var arr = [];
21697
- var each = arr.forEach;
21698
- var slice = arr.slice;
21699
- function defaults(obj) {
21700
- each.call(slice.call(arguments, 1), function (source) {
21701
- if (source) {
21702
- for (var prop in source) {
21703
- if (obj[prop] === undefined) obj[prop] = source[prop];
21704
- }
21705
- }
21706
- });
21707
- return obj;
21708
- }
21709
-
21710
- function addQueryString(url, params) {
21711
- if (params && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(params) === 'object') {
21712
- var queryString = '',
21713
- e = encodeURIComponent; // Must encode data
21714
-
21715
- for (var paramName in params) {
21716
- queryString += '&' + e(paramName) + '=' + e(params[paramName]);
21717
- }
21718
-
21719
- if (!queryString) {
21720
- return url;
21721
- }
21722
-
21723
- url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
21724
- }
21725
-
21726
- return url;
21727
- } // https://gist.github.com/Xeoncross/7663273
21728
-
21729
-
21730
- function ajax(url, options, callback, data, cache) {
21731
- if (data && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(data) === 'object') {
21732
- if (!cache) {
21733
- data['_t'] = new Date();
21734
- } // URL encoded form data must be in querystring format
21735
-
21736
-
21737
- data = addQueryString('', data).slice(1);
21738
- }
21739
-
21740
- if (options.queryStringParams) {
21741
- url = addQueryString(url, options.queryStringParams);
21742
- }
21743
-
21744
- try {
21745
- var x;
21746
-
21747
- if (XMLHttpRequest) {
21748
- x = new XMLHttpRequest();
21749
- } else {
21750
- x = new ActiveXObject('MSXML2.XMLHTTP.3.0');
21751
- }
21752
-
21753
- x.open(data ? 'POST' : 'GET', url, 1);
21754
-
21755
- if (!options.crossDomain) {
21756
- x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
21757
- }
21758
-
21759
- x.withCredentials = !!options.withCredentials;
21760
-
21761
- if (data) {
21762
- x.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
21763
- }
21764
-
21765
- if (x.overrideMimeType) {
21766
- x.overrideMimeType("application/json");
21767
- }
21768
-
21769
- var h = options.customHeaders;
21770
- h = typeof h === 'function' ? h() : h;
21771
-
21772
- if (h) {
21773
- for (var i in h) {
21774
- x.setRequestHeader(i, h[i]);
21775
- }
21776
- }
21777
-
21778
- x.onreadystatechange = function () {
21779
- x.readyState > 3 && callback && callback(x.responseText, x);
21780
- };
21781
-
21782
- x.send(data);
21783
- } catch (e) {
21784
- console && console.log(e);
21785
- }
21786
- }
21787
-
21788
- function getDefaults() {
21789
- return {
21790
- loadPath: '/locales/{{lng}}/{{ns}}.json',
21791
- addPath: '/locales/add/{{lng}}/{{ns}}',
21792
- allowMultiLoading: false,
21793
- parse: JSON.parse,
21794
- parsePayload: function parsePayload(namespace, key, fallbackValue) {
21795
- return (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, key, fallbackValue || '');
21796
- },
21797
- crossDomain: false,
21798
- ajax: ajax
21799
- };
21800
- }
21801
-
21802
- var Backend =
21803
- /*#__PURE__*/
21804
- function () {
21805
- function Backend(services) {
21806
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
21807
-
21808
- (0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, Backend);
21809
-
21810
- this.init(services, options);
21811
- this.type = 'backend';
21812
- }
21813
-
21814
- (0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Backend, [{
21815
- key: "init",
21816
- value: function init(services) {
21817
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
21818
- this.services = services;
21819
- this.options = defaults(options, this.options || {}, getDefaults());
21820
- }
21821
- }, {
21822
- key: "readMulti",
21823
- value: function readMulti(languages, namespaces, callback) {
21824
- var loadPath = this.options.loadPath;
21825
-
21826
- if (typeof this.options.loadPath === 'function') {
21827
- loadPath = this.options.loadPath(languages, namespaces);
21828
- }
21829
-
21830
- var url = this.services.interpolator.interpolate(loadPath, {
21831
- lng: languages.join('+'),
21832
- ns: namespaces.join('+')
21833
- });
21834
- this.loadUrl(url, callback);
21835
- }
21836
- }, {
21837
- key: "read",
21838
- value: function read(language, namespace, callback) {
21839
- var loadPath = this.options.loadPath;
21840
-
21841
- if (typeof this.options.loadPath === 'function') {
21842
- loadPath = this.options.loadPath([language], [namespace]);
21843
- }
21844
-
21845
- var url = this.services.interpolator.interpolate(loadPath, {
21846
- lng: language,
21847
- ns: namespace
21848
- });
21849
- this.loadUrl(url, callback);
21850
- }
21851
- }, {
21852
- key: "loadUrl",
21853
- value: function loadUrl(url, callback) {
21854
- var _this = this;
21855
-
21856
- this.options.ajax(url, this.options, function (data, xhr) {
21857
- if (xhr.status >= 500 && xhr.status < 600) return callback('failed loading ' + url, true
21858
- /* retry */
21859
- );
21860
- if (xhr.status >= 400 && xhr.status < 500) return callback('failed loading ' + url, false
21861
- /* no retry */
21862
- );
21863
- var ret, err;
21864
-
21865
- try {
21866
- ret = _this.options.parse(data, url);
21867
- } catch (e) {
21868
- err = 'failed parsing ' + url + ' to json';
21869
- }
21870
-
21871
- if (err) return callback(err, false);
21872
- callback(null, ret);
21873
- });
21874
- }
21875
- }, {
21876
- key: "create",
21877
- value: function create(languages, namespace, key, fallbackValue) {
21878
- var _this2 = this;
21879
-
21880
- if (typeof languages === 'string') languages = [languages];
21881
- var payload = this.options.parsePayload(namespace, key, fallbackValue);
21882
- languages.forEach(function (lng) {
21883
- var url = _this2.services.interpolator.interpolate(_this2.options.addPath, {
21884
- lng: lng,
21885
- ns: namespace
21886
- });
21887
-
21888
- _this2.options.ajax(url, _this2.options, function (data, xhr) {//const statusCode = xhr.status.toString();
21889
- // TODO: if statusCode === 4xx do log
21890
- }, payload);
21891
- });
21892
- }
21893
- }]);
21894
-
21895
- return Backend;
21896
- }();
21897
-
21898
- Backend.type = 'backend';
21899
-
21900
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
21901
-
21902
-
21903
22238
  /***/ }),
21904
22239
 
21905
22240
  /***/ "../../common/temp/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js":
@@ -62115,20 +62450,20 @@ var AmbientOcclusion;
62115
62450
  static fromJSON(json) { return undefined !== json ? new Settings(json) : this.defaults; }
62116
62451
  toJSON() {
62117
62452
  return {
62118
- bias: this.bias,
62119
- zLengthCap: this.zLengthCap,
62120
- maxDistance: this.maxDistance,
62121
- intensity: this.intensity,
62122
- texelStepSize: this.texelStepSize,
62123
- blurDelta: this.blurDelta,
62124
- blurSigma: this.blurSigma,
62125
- blurTexelStepSize: this.blurTexelStepSize,
62453
+ bias: this.bias !== Settings._defaultBias ? this.bias : undefined,
62454
+ zLengthCap: this.zLengthCap !== Settings._defaultZLengthCap ? this.zLengthCap : undefined,
62455
+ maxDistance: this.maxDistance !== Settings._defaultMaxDistance ? this.maxDistance : undefined,
62456
+ intensity: this.intensity !== Settings._defaultIntensity ? this.intensity : undefined,
62457
+ texelStepSize: this.texelStepSize !== Settings._defaultTexelStepSize ? this.texelStepSize : undefined,
62458
+ blurDelta: this.blurDelta !== Settings._defaultBlurDelta ? this.blurDelta : undefined,
62459
+ blurSigma: this.blurSigma !== Settings._defaultBlurSigma ? this.blurSigma : undefined,
62460
+ blurTexelStepSize: this.blurTexelStepSize !== Settings._defaultBlurTexelStepSize ? this.blurTexelStepSize : undefined,
62126
62461
  };
62127
62462
  }
62128
62463
  }
62129
62464
  Settings._defaultBias = 0.25;
62130
62465
  Settings._defaultZLengthCap = 0.0025;
62131
- Settings._defaultMaxDistance = 100.0;
62466
+ Settings._defaultMaxDistance = 10000.0;
62132
62467
  Settings._defaultIntensity = 1.0;
62133
62468
  Settings._defaultTexelStepSize = 1;
62134
62469
  Settings._defaultBlurDelta = 1.0;
@@ -68933,13 +69268,12 @@ var Gradient;
68933
69268
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== imageBuffer);
68934
69269
  return imageBuffer;
68935
69270
  }
68936
- /** Applies this gradient's settings to produce a bitmap image. */
69271
+ /** Applies this gradient's settings to produce a bitmap image.
69272
+ * @param width Width of the image
69273
+ * @param height Height of the image
69274
+ * @returns Bitmap image of the specified dimensions. For thematic gradients with a width > 1, pixels in each column will be identical.
69275
+ */
68937
69276
  getImage(width, height) {
68938
- if (this.mode === Mode.Thematic) {
68939
- // Allow caller to pass in height but not width. Thematic gradients are always one-dimensional.
68940
- // NB: The height used to be hardcoded to 8192 here. Now we will let the render system decide.
68941
- width = 1; // Force width to 1 for thematic gradients.
68942
- }
68943
69277
  const thisAngle = (this.angle === undefined) ? 0 : this.angle.radians;
68944
69278
  const cosA = Math.cos(thisAngle);
68945
69279
  const sinA = Math.sin(thisAngle);
@@ -69052,25 +69386,20 @@ var Gradient;
69052
69386
  for (let j = 0; j < height; j++) {
69053
69387
  let f = 1 - j / height;
69054
69388
  let color;
69055
- if (f < _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin || f > _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentMax) {
69056
- color = settings.marginColor;
69057
- }
69058
- else {
69059
- f = (f - _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin) / (_ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentRange);
69060
- switch (settings.mode) {
69061
- case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.SteppedWithDelimiter:
69062
- case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.IsoLines:
69063
- case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Stepped: {
69064
- if (settings.stepCount > 1) {
69065
- const fStep = Math.floor(f * settings.stepCount - 0.00001) / (settings.stepCount - 1);
69066
- color = this.mapColor(fStep);
69067
- }
69068
- break;
69389
+ f = (f - _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin) / (_ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentRange);
69390
+ switch (settings.mode) {
69391
+ case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.SteppedWithDelimiter:
69392
+ case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.IsoLines:
69393
+ case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Stepped: {
69394
+ if (settings.stepCount > 1) {
69395
+ const fStep = Math.floor(f * settings.stepCount - 0.00001) / (settings.stepCount - 1);
69396
+ color = this.mapColor(fStep);
69069
69397
  }
69070
- case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Smooth:
69071
- color = this.mapColor(f);
69072
- break;
69398
+ break;
69073
69399
  }
69400
+ case _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientMode.Smooth:
69401
+ color = this.mapColor(f);
69402
+ break;
69074
69403
  }
69075
69404
  for (let i = 0; i < width; i++) {
69076
69405
  image[currentIdx--] = color.getAlpha();
@@ -86797,6 +87126,7 @@ class IpcWebSocketBackend extends IpcWebSocket {
86797
87126
  constructor() {
86798
87127
  super();
86799
87128
  this._handlers = new Map();
87129
+ this._processingQueue = [];
86800
87130
  IpcWebSocket.receivers.add(async (e, m) => this.dispatch(e, m));
86801
87131
  }
86802
87132
  send(channel, ...data) {
@@ -86810,22 +87140,35 @@ class IpcWebSocketBackend extends IpcWebSocket {
86810
87140
  };
86811
87141
  }
86812
87142
  async dispatch(_evt, message) {
86813
- if (message.type !== IpcWebSocketMessageType.Invoke || !message.method)
87143
+ if (message.type !== IpcWebSocketMessageType.Invoke)
86814
87144
  return;
86815
- const handler = this._handlers.get(message.channel);
86816
- if (!handler)
87145
+ this._processingQueue.push(message);
87146
+ await this.processMessages();
87147
+ }
87148
+ async processMessages() {
87149
+ if (this._processing || !this._processingQueue.length) {
86817
87150
  return;
86818
- let args = message.data;
86819
- if (typeof (args) === "undefined")
86820
- args = [];
86821
- const response = await handler({}, message.method, ...args);
86822
- IpcWebSocket.transport.send({
86823
- type: IpcWebSocketMessageType.Response,
86824
- channel: message.channel,
86825
- response: message.request,
86826
- data: response,
86827
- sequence: -1,
86828
- });
87151
+ }
87152
+ const message = this._processingQueue.shift();
87153
+ if (message && message.method) {
87154
+ const handler = this._handlers.get(message.channel);
87155
+ if (handler) {
87156
+ this._processing = message;
87157
+ let args = message.data;
87158
+ if (typeof (args) === "undefined")
87159
+ args = [];
87160
+ const response = await handler({}, message.method, ...args);
87161
+ IpcWebSocket.transport.send({
87162
+ type: IpcWebSocketMessageType.Response,
87163
+ channel: message.channel,
87164
+ response: message.request,
87165
+ data: response,
87166
+ sequence: -1,
87167
+ });
87168
+ this._processing = undefined;
87169
+ }
87170
+ }
87171
+ await this.processMessages();
86829
87172
  }
86830
87173
  }
86831
87174
 
@@ -87120,6 +87463,7 @@ class IModelReadRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_2__.
87120
87463
  ===========================================================================================*/
87121
87464
  async getConnectionProps(_iModelToken) { return this.forward(arguments); }
87122
87465
  async queryRows(_iModelToken, _request) { return this.forward(arguments); }
87466
+ async querySubCategories(_iModelToken, _categoryIds) { return this.forward(arguments); }
87123
87467
  async queryBlob(_iModelToken, _request) { return this.forward(arguments); }
87124
87468
  async getModelProps(_iModelToken, _modelIds) { return this.forward(arguments); }
87125
87469
  async queryModelRanges(_iModelToken, _modelIds) { return this.forward(arguments); }
@@ -87157,6 +87501,9 @@ IModelReadRpcInterface.interfaceVersion = "3.2.0";
87157
87501
  __decorate([
87158
87502
  _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
87159
87503
  ], IModelReadRpcInterface.prototype, "getConnectionProps", null);
87504
+ __decorate([
87505
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
87506
+ ], IModelReadRpcInterface.prototype, "querySubCategories", null);
87160
87507
  __decorate([
87161
87508
  _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
87162
87509
  ], IModelReadRpcInterface.prototype, "getModelProps", null);
@@ -103475,6 +103822,15 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
103475
103822
  };
103476
103823
  return new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ECSqlReader(executor, ecsql, params, config);
103477
103824
  }
103825
+ /**
103826
+ * queries the BisCore.SubCategory table for the entries that are children of the passed categoryIds
103827
+ * @param compressedCategoryIds compressed category Ids
103828
+ * @returns array of SubCategoryResultRow
103829
+ * @internal
103830
+ */
103831
+ async querySubCategories(compressedCategoryIds) {
103832
+ return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).querySubCategories(this.getRpcProps(), compressedCategoryIds);
103833
+ }
103478
103834
  /** Execute a query and stream its results
103479
103835
  * The result of the query is async iterator over the rows. The iterator will get next page automatically once rows in current page has been read.
103480
103836
  * [ECSQL row]($docs/learning/ECSQLRowFormat).
@@ -106669,29 +107025,73 @@ class PerModelCategoryVisibilityOverrides extends _itwin_core_bentley__WEBPACK_I
106669
107025
  else
106670
107026
  return PerModelCategoryVisibility.Override.None;
106671
107027
  }
106672
- setOverride(modelIds, categoryIds, override) {
107028
+ /**
107029
+ * set the overrides for multiple perModelCategoryVisibility props, loading categoryIds from the iModel if necessary.
107030
+ * @see [[PerModelCategoryVisibility]]
107031
+ * @param perModelCategoryVisibility array of model category visibility overrides @see [[PerModelCategoryVisibility.Props]]
107032
+ * @param iModel Optional param iModel. If no iModel is provided, then the iModel associated with the viewport (used to construct this class) is used.
107033
+ * This optional iModel param is useful for apps which may show multiple iModels at once. Passing in an iModel ensures that the subcategories cache for the provided iModel
107034
+ * is populated as opposed to the iModel associated with the viewport which may or may not be an empty iModel.
107035
+ * @returns a promise that resolves once the overrides have been applied.
107036
+ */
107037
+ async setOverrides(perModelCategoryVisibility, iModel) {
107038
+ let anyChanged = false;
107039
+ const catIdsToLoad = [];
107040
+ const iModelToUse = iModel ? iModel : this._vp.iModel;
107041
+ for (const override of perModelCategoryVisibility) {
107042
+ const modelId = override.modelId;
107043
+ // The caller may pass a single categoryId as a string, if we don't convert this to an array we will iterate
107044
+ // over each individual character of that string, which is not the desired behavior.
107045
+ const categoryIds = typeof override.categoryIds === "string" ? [override.categoryIds] : override.categoryIds;
107046
+ const visOverride = override.visOverride;
107047
+ for (const categoryId of categoryIds) {
107048
+ if (this.findAndUpdateOverrideInArray(modelId, categoryId, visOverride)) {
107049
+ anyChanged = true;
107050
+ if (PerModelCategoryVisibility.Override.None !== visOverride) {
107051
+ catIdsToLoad.push(categoryId);
107052
+ }
107053
+ }
107054
+ }
107055
+ }
107056
+ if (anyChanged) {
107057
+ this._vp.setViewedCategoriesPerModelChanged();
107058
+ if (catIdsToLoad.length !== 0) {
107059
+ this._vp.subcategories.push(iModelToUse.subcategories, catIdsToLoad, () => this._vp.setViewedCategoriesPerModelChanged());
107060
+ }
107061
+ }
107062
+ return;
107063
+ }
107064
+ /** Find and update the override in the array of overrides. If override not found, adds it to the array.
107065
+ * If the array was changed, returns true. */
107066
+ findAndUpdateOverrideInArray(modelId, categoryId, override) {
106673
107067
  const ovr = this._scratch;
107068
+ ovr.reset(modelId, categoryId, false);
107069
+ let changed = false;
107070
+ const index = this.indexOf(ovr);
107071
+ if (-1 === index) {
107072
+ if (PerModelCategoryVisibility.Override.None !== override) {
107073
+ this.insert(new PerModelCategoryVisibilityOverride(modelId, categoryId, PerModelCategoryVisibility.Override.Show === override));
107074
+ changed = true;
107075
+ }
107076
+ }
107077
+ else {
107078
+ if (PerModelCategoryVisibility.Override.None === override) {
107079
+ this._array.splice(index, 1);
107080
+ changed = true;
107081
+ }
107082
+ else if (this._array[index].visible !== (PerModelCategoryVisibility.Override.Show === override)) {
107083
+ this._array[index].visible = (PerModelCategoryVisibility.Override.Show === override);
107084
+ changed = true;
107085
+ }
107086
+ }
107087
+ return changed;
107088
+ }
107089
+ setOverride(modelIds, categoryIds, override) {
106674
107090
  let changed = false;
106675
107091
  for (const modelId of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.iterable(modelIds)) {
106676
107092
  for (const categoryId of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.iterable(categoryIds)) {
106677
- ovr.reset(modelId, categoryId, false);
106678
- const index = this.indexOf(ovr);
106679
- if (-1 === index) {
106680
- if (PerModelCategoryVisibility.Override.None !== override) {
106681
- this.insert(new PerModelCategoryVisibilityOverride(modelId, categoryId, PerModelCategoryVisibility.Override.Show === override));
106682
- changed = true;
106683
- }
106684
- }
106685
- else {
106686
- if (PerModelCategoryVisibility.Override.None === override) {
106687
- this._array.splice(index, 1);
106688
- changed = true;
106689
- }
106690
- else if (this._array[index].visible !== (PerModelCategoryVisibility.Override.Show === override)) {
106691
- this._array[index].visible = (PerModelCategoryVisibility.Override.Show === override);
106692
- changed = true;
106693
- }
106694
- }
107093
+ if (this.findAndUpdateOverrideInArray(modelId, categoryId, override))
107094
+ changed = true;
106695
107095
  }
106696
107096
  }
106697
107097
  if (changed) {
@@ -109311,29 +109711,6 @@ class SubCategoriesCache {
109311
109711
  cancel: () => request.cancel(),
109312
109712
  };
109313
109713
  }
109314
- /**
109315
- * Populates the notLoadedCategoryIds property of the HydrateViewStateRequestProps.
109316
- * notLoadedCategoryIds is a subset of categoryIds, filtering out any ids which already have an entry in the cache.
109317
- */
109318
- preload(options, categoryIds) {
109319
- const missing = this.getMissing(categoryIds);
109320
- if (undefined === missing)
109321
- return;
109322
- this._missingAtTimeOfPreload = missing;
109323
- options.notLoadedCategoryIds = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.sortAndCompress(missing);
109324
- }
109325
- /**
109326
- * Populates the SubCategoriesCache using the categoryIdsResult of the HydrateViewStateResponseProps
109327
- */
109328
- postload(options) {
109329
- if (options.categoryIdsResult === undefined)
109330
- return;
109331
- // missingAtTimeOfPreload shouldn't be undefined if options.categoryIdsResult is defined... but just to be safe we'll check
109332
- const missing = this._missingAtTimeOfPreload === undefined ? new Set() : this._missingAtTimeOfPreload;
109333
- this.processResults(options.categoryIdsResult, missing);
109334
- // clear missing
109335
- this._missingAtTimeOfPreload = undefined;
109336
- }
109337
109714
  /** Given categoryIds, return which of these are not cached. */
109338
109715
  getMissing(categoryIds) {
109339
109716
  let missing;
@@ -109415,38 +109792,38 @@ class SubCategoriesCache {
109415
109792
  (function (SubCategoriesCache) {
109416
109793
  class Request {
109417
109794
  constructor(categoryIds, imodel, maxCategoriesPerQuery = 200) {
109418
- this._ecsql = [];
109795
+ this._categoryIds = [];
109419
109796
  this._result = [];
109420
109797
  this._canceled = false;
109421
- this._curECSqlIndex = 0;
109798
+ this._curCategoryIdsIndex = 0;
109422
109799
  this._imodel = imodel;
109423
109800
  const catIds = [...categoryIds];
109801
+ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.OrderedId64Iterable.sortArray(catIds); // sort categories, so that given the same set of categoryIds we will always create the same batches.
109424
109802
  while (catIds.length !== 0) {
109425
109803
  const end = (catIds.length > maxCategoriesPerQuery) ? maxCategoriesPerQuery : catIds.length;
109426
- const where = catIds.splice(0, end).join(",");
109427
- this._ecsql.push(`SELECT ECInstanceId as id, Parent.Id as parentId, Properties as appearance FROM BisCore.SubCategory WHERE Parent.Id IN (${where})`);
109804
+ const compressedIds = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.compressArray(catIds.splice(0, end));
109805
+ this._categoryIds.push(compressedIds);
109428
109806
  }
109429
109807
  }
109430
109808
  get wasCanceled() { return this._canceled || this._imodel.isClosed; }
109431
109809
  cancel() { this._canceled = true; }
109432
109810
  async dispatch() {
109433
- if (this.wasCanceled || this._curECSqlIndex >= this._ecsql.length) // handle case of empty category Id set...
109811
+ if (this.wasCanceled || this._curCategoryIdsIndex >= this._categoryIds.length) // handle case of empty category Id set...
109434
109812
  return undefined;
109435
109813
  try {
109436
- const ecsql = this._ecsql[this._curECSqlIndex];
109437
- for await (const row of this._imodel.query(ecsql, undefined, { rowFormat: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QueryRowFormat.UseJsPropertyNames })) {
109438
- this._result.push(row);
109439
- if (this.wasCanceled)
109440
- return undefined;
109441
- }
109814
+ const catIds = this._categoryIds[this._curCategoryIdsIndex];
109815
+ const result = await this._imodel.querySubCategories(catIds);
109816
+ this._result.push(...result);
109817
+ if (this.wasCanceled)
109818
+ return undefined;
109442
109819
  }
109443
109820
  catch {
109444
109821
  // ###TODO: detect cases in which retry is warranted
109445
109822
  // Note that currently, if we succeed in obtaining some pages of results and fail to retrieve another page, we will end up processing the
109446
109823
  // incomplete results. Since we're not retrying, that's the best we can do.
109447
109824
  }
109448
- // Finished with current ECSql query. Dispatch the next if one exists.
109449
- if (++this._curECSqlIndex < this._ecsql.length) {
109825
+ // Finished with current batch of categoryIds. Dispatch the next batch if one exists.
109826
+ if (++this._curCategoryIdsIndex < this._categoryIds.length) {
109450
109827
  if (this.wasCanceled)
109451
109828
  return undefined;
109452
109829
  else
@@ -109521,7 +109898,7 @@ class SubCategoriesCache {
109521
109898
  this._request.promise.then((completed) => {
109522
109899
  if (this._disposed)
109523
109900
  return;
109524
- // Invoke all the functions which were awaiting this set of categories.
109901
+ // Invoke all the functions which were awaiting this set of IModelConnection.Categories.
109525
109902
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== this._current);
109526
109903
  if (completed)
109527
109904
  for (const func of this._current.funcs)
@@ -112094,7 +112471,6 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
112094
112471
  const acsId = this.getAuxiliaryCoordinateSystemId();
112095
112472
  if (_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.isValid(acsId))
112096
112473
  hydrateRequest.acsId = acsId;
112097
- this.iModel.subcategories.preload(hydrateRequest, this.categorySelector.categories);
112098
112474
  }
112099
112475
  /** Asynchronously load any required data for this ViewState from the backend.
112100
112476
  * FINAL, No subclass should override load. If additional load behavior is needed, see preload and postload.
@@ -112109,15 +112485,16 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
112109
112485
  const hydrateRequest = {};
112110
112486
  this.preload(hydrateRequest);
112111
112487
  const promises = [
112112
- _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.IModelReadRpcInterface.getClientForRouting(this.iModel.routingContext.token).hydrateViewState(this.iModel.getRpcProps(), hydrateRequest),
112488
+ _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.IModelReadRpcInterface.getClientForRouting(this.iModel.routingContext.token).hydrateViewState(this.iModel.getRpcProps(), hydrateRequest).
112489
+ then(async (hydrateResponse) => this.postload(hydrateResponse)),
112113
112490
  this.displayStyle.load(),
112114
112491
  ];
112115
- const result = await Promise.all(promises);
112116
- const hydrateResponse = result[0];
112117
- await this.postload(hydrateResponse);
112492
+ const subcategories = this.iModel.subcategories.load(this.categorySelector.categories);
112493
+ if (undefined !== subcategories)
112494
+ promises.push(subcategories.promise.then((_) => { }));
112495
+ await Promise.all(promises);
112118
112496
  }
112119
112497
  async postload(hydrateResponse) {
112120
- this.iModel.subcategories.postload(hydrateResponse);
112121
112498
  if (hydrateResponse.acsElementProps)
112122
112499
  this._auxCoordSystem = _AuxCoordSys__WEBPACK_IMPORTED_MODULE_3__.AuxCoordSystemState.fromProps(hydrateResponse.acsElementProps, this.iModel);
112123
112500
  }
@@ -147767,7 +148144,7 @@ const computeAmbientOcclusion = `
147767
148144
  float bias = u_hbaoSettings.x; // Represents an angle in radians. If the dot product between the normal of the sample and the vector to the camera is less than this value, sampling stops in the current direction. This is used to remove shadows from near planar edges.
147768
148145
  float zLengthCap = u_hbaoSettings.y; // If the distance in linear Z from the current sample to first sample is greater than this value, sampling stops in the current direction.
147769
148146
  float intensity = u_hbaoSettings.z; // Raise the final occlusion to the power of this value. Larger values make the ambient shadows darker.
147770
- float texelStepSize = u_hbaoSettings.w; // Indicates the distance to step toward the next texel sample in the current direction.
148147
+ float texelStepSize = clamp(u_hbaoSettings.w * linearDepth, 1.0, u_hbaoSettings.w); // Indicates the distance to step toward the next texel sample in the current direction.
147771
148148
 
147772
148149
  float tOcclusion = 0.0;
147773
148150
 
@@ -147812,6 +148189,9 @@ const computeAmbientOcclusion = `
147812
148189
  tOcclusion += curOcclusion;
147813
148190
  }
147814
148191
 
148192
+ float distanceFadeFactor = kFrustumType_Perspective == u_frustum.z ? 1.0 - pow(clamp(nonLinearDepth / u_maxDistance, 0.0, 1.0), 4.0) : 1.0;
148193
+ tOcclusion *= distanceFadeFactor;
148194
+
147815
148195
  tOcclusion /= 4.0;
147816
148196
  tOcclusion = 1.0 - clamp(tOcclusion, 0.0, 1.0);
147817
148197
  tOcclusion = pow(tOcclusion, intensity);
@@ -188144,17 +188524,17 @@ class BSplineCurve3dBase extends _curve_CurvePrimitive__WEBPACK_IMPORTED_MODULE_
188144
188524
  * @returns Returns a CurveLocationDetail structure that holds the details of the close point.
188145
188525
  */
188146
188526
  closestPoint(spacePoint, _extend) {
188527
+ // seed at start point -- final point comes with final bezier perpendicular step.
188147
188528
  const point = this.fractionToPoint(0);
188148
188529
  const result = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveFractionPointDistance(this, 0.0, point, point.distance(spacePoint));
188149
- this.fractionToPoint(1.0, point);
188150
- result.updateIfCloserCurveFractionPointDistance(this, 1.0, point, spacePoint.distance(point));
188151
188530
  let span;
188152
188531
  const numSpans = this.numSpan;
188153
188532
  for (let i = 0; i < numSpans; i++) {
188154
188533
  if (this._bcurve.knots.isIndexOfRealSpan(i)) {
188155
188534
  span = this.getSaturatedBezierSpan3dOr3dH(i, true, span);
188156
188535
  if (span) {
188157
- if (span.updateClosestPointByTruePerpendicular(spacePoint, result)) {
188536
+ // umm ... if the bspline is discontinuous, both ends should be tested. Ignore that possibility ...
188537
+ if (span.updateClosestPointByTruePerpendicular(spacePoint, result, false, true)) {
188158
188538
  // the detail records the span bezier -- promote it to the parent curve . ..
188159
188539
  result.curve = this;
188160
188540
  result.fraction = span.fractionToParentFraction(result.fraction);
@@ -191604,7 +191984,7 @@ class BezierCurve3dH extends _BezierCurveBase__WEBPACK_IMPORTED_MODULE_0__.Bezie
191604
191984
  * @param detail pre-allocated detail to record (evolving) closest point.
191605
191985
  * @returns true if an updated occurred, false if either (a) no perpendicular projections or (b) perpendiculars were not closer.
191606
191986
  */
191607
- updateClosestPointByTruePerpendicular(spacePoint, detail) {
191987
+ updateClosestPointByTruePerpendicular(spacePoint, detail, testAt0 = false, testAt1 = false) {
191608
191988
  let numUpdates = 0;
191609
191989
  let roots;
191610
191990
  if (this.isUnitWeight()) {
@@ -191656,8 +192036,17 @@ class BezierCurve3dH extends _BezierCurveBase__WEBPACK_IMPORTED_MODULE_0__.Bezie
191656
192036
  numUpdates += detail.updateIfCloserCurveFractionPointDistance(this, fraction, xyz, a) ? 1 : 0;
191657
192037
  }
191658
192038
  }
192039
+ if (testAt0)
192040
+ numUpdates += this.updateDetailAtFraction(detail, 0.0, spacePoint) ? 1 : 0;
192041
+ if (testAt1)
192042
+ numUpdates += this.updateDetailAtFraction(detail, 1.0, spacePoint) ? 1 : 0;
191659
192043
  return numUpdates > 0;
191660
192044
  }
192045
+ updateDetailAtFraction(detail, fraction, spacePoint) {
192046
+ const xyz = this.fractionToPoint(fraction);
192047
+ const a = xyz.distance(spacePoint);
192048
+ return detail.updateIfCloserCurveFractionPointDistance(this, fraction, xyz, a);
192049
+ }
191661
192050
  /** Extend `rangeToExtend`, using candidate extrema at
191662
192051
  * * both end points
191663
192052
  * * any internal extrema in x,y,z
@@ -200354,6 +200743,7 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
200354
200743
  const chainFraction = this.chainDistanceToChainFraction(chainDistance);
200355
200744
  const chainDetail = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_7__.CurveLocationDetail.createCurveFractionPoint(this, chainFraction, childDetail.point);
200356
200745
  chainDetail.childDetail = childDetail;
200746
+ chainDetail.a = childDetail.a;
200357
200747
  return chainDetail;
200358
200748
  }
200359
200749
  return undefined;
@@ -243623,7 +244013,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
243623
244013
  * * Circular or elliptical pipe cross sections can be specified by supplying either a radius, a pair of semi-axis lengths, or a full Arc3d.
243624
244014
  * * For semi-axis length input, x corresponds to an ellipse local axis nominally situated parallel to the xy-plane.
243625
244015
  * * The center of Arc3d input is translated to the centerline start point to act as initial cross section.
243626
- * @param centerline centerline of pipe
244016
+ * @param centerline centerline of pipe. If curved, it will be stroked using the builder's StrokeOptions.
243627
244017
  * @param sectionData circle radius, ellipse semi-axis lengths, or full Arc3d
243628
244018
  * @param numFacetAround how many equal parameter-space chords around each section
243629
244019
  */
@@ -243642,7 +244032,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
243642
244032
  }
243643
244033
  else if (centerline instanceof _curve_GeometryQuery__WEBPACK_IMPORTED_MODULE_32__.GeometryQuery) {
243644
244034
  const linestring = _curve_LineString3d__WEBPACK_IMPORTED_MODULE_11__.LineString3d.create();
243645
- centerline.emitStrokes(linestring);
244035
+ centerline.emitStrokes(linestring, this._options);
243646
244036
  this.addMiteredPipesFromPoints(linestring.packedPoints, sectionData, numFacetAround);
243647
244037
  }
243648
244038
  }
@@ -254686,6 +255076,26 @@ class Sample {
254686
255076
  }
254687
255077
  return result;
254688
255078
  }
255079
+ /** Create various orders of non-rational B-spline curves with helical poles */
255080
+ static createBsplineCurveHelices(radius, height, numTurns, numSamplesPerTurn) {
255081
+ const pts = [];
255082
+ const zDelta = (height / numTurns) / numSamplesPerTurn;
255083
+ const aDelta = 2 * Math.PI / numSamplesPerTurn;
255084
+ for (let iTurn = 0; iTurn < numTurns; ++iTurn) {
255085
+ for (let iSample = 0; iSample < numSamplesPerTurn; iSample++) {
255086
+ pts.push(_geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(radius * Math.cos(iSample * aDelta), radius * Math.sin(iSample * aDelta), pts.length * zDelta));
255087
+ }
255088
+ }
255089
+ const result = [];
255090
+ for (const order of [2, 3, 4, 9, 16, 25]) {
255091
+ if (order > pts.length)
255092
+ continue;
255093
+ const curve = _bspline_BSplineCurve__WEBPACK_IMPORTED_MODULE_9__.BSplineCurve3d.createUniformKnots(pts, order);
255094
+ if (curve !== undefined)
255095
+ result.push(curve);
255096
+ }
255097
+ return result;
255098
+ }
254689
255099
  /** Create weighted bsplines for circular arcs.
254690
255100
  */
254691
255101
  static createBspline3dHArcs() {
@@ -265661,9 +266071,9 @@ __webpack_require__.r(__webpack_exports__);
265661
266071
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
265662
266072
  /* harmony export */ "ITwinLocalization": () => (/* binding */ ITwinLocalization)
265663
266073
  /* harmony export */ });
265664
- /* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.8.14/node_modules/i18next/dist/esm/i18next.js");
266074
+ /* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js");
265665
266075
  /* harmony import */ var i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! i18next-browser-languagedetector */ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.4/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js");
265666
- /* harmony import */ var i18next_xhr_backend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! i18next-xhr-backend */ "../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js");
266076
+ /* harmony import */ var i18next_http_backend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js");
265667
266077
  /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
265668
266078
  /*---------------------------------------------------------------------------------------------
265669
266079
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
@@ -265699,13 +266109,14 @@ class ITwinLocalization {
265699
266109
  this._initOptions = {
265700
266110
  interpolation: { escapeValue: true },
265701
266111
  fallbackLng: "en",
266112
+ maxRetries: 1,
265702
266113
  backend: this._backendOptions,
265703
266114
  detection: this._detectionOptions,
265704
266115
  ...options === null || options === void 0 ? void 0 : options.initOptions,
265705
266116
  };
265706
266117
  this.i18next
265707
266118
  .use((_b = options === null || options === void 0 ? void 0 : options.detectorPlugin) !== null && _b !== void 0 ? _b : i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__["default"])
265708
- .use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c : i18next_xhr_backend__WEBPACK_IMPORTED_MODULE_2__["default"])
266119
+ .use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c : i18next_http_backend__WEBPACK_IMPORTED_MODULE_2__["default"])
265709
266120
  .use(TranslationLogger);
265710
266121
  }
265711
266122
  async initialize(namespaces) {
@@ -265826,10 +266237,10 @@ class ITwinLocalization {
265826
266237
  if (!err)
265827
266238
  return resolve();
265828
266239
  // Here we got a non-null err object.
265829
- // This method is called when the system has attempted to load the resources for the namespace for each
265830
- // possible locale. For example 'fr-ca' might be the most specific local, in which case 'fr' ) and 'en are fallback locales.
265831
- // using i18next-xhr-backend, err will be an array of strings that includes the namespace it tried to read and the locale. There
265832
- // might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible language.
266240
+ // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
266241
+ // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
266242
+ // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
266243
+ // There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.
265833
266244
  let locales = this.getLanguageList().map((thisLocale) => `/${thisLocale}/`);
265834
266245
  try {
265835
266246
  for (const thisError of err) {
@@ -287059,7 +287470,7 @@ class TestContext {
287059
287470
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
287060
287471
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
287061
287472
  await core_frontend_1.NoRenderApp.startup({
287062
- applicationVersion: "3.4.0-dev.1",
287473
+ applicationVersion: "3.4.0-dev.10",
287063
287474
  applicationId: this.settings.gprid,
287064
287475
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
287065
287476
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -300704,6 +301115,31 @@ var WidgetState;
300704
301115
 
300705
301116
  /* (ignored) */
300706
301117
 
301118
+ /***/ }),
301119
+
301120
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs":
301121
+ /*!**************************************************************************************************************************!*\
301122
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs ***!
301123
+ \**************************************************************************************************************************/
301124
+ /***/ ((module, exports, __webpack_require__) => {
301125
+
301126
+ var fetchApi
301127
+ if (typeof fetch === 'function') {
301128
+ if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
301129
+ fetchApi = __webpack_require__.g.fetch
301130
+ } else if (typeof window !== 'undefined' && window.fetch) {
301131
+ fetchApi = window.fetch
301132
+ }
301133
+ }
301134
+
301135
+ if ( true && (typeof window === 'undefined' || typeof window.document === 'undefined')) {
301136
+ var f = fetchApi || __webpack_require__(/*! cross-fetch */ "../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js")
301137
+ if (f.default) f = f.default
301138
+ exports["default"] = f
301139
+ module.exports = exports.default
301140
+ }
301141
+
301142
+
300707
301143
  /***/ }),
300708
301144
 
300709
301145
  /***/ "../../common/temp/node_modules/.pnpm/flatbuffers@1.12.0/node_modules/flatbuffers/js/flatbuffers.mjs":
@@ -302311,9 +302747,9 @@ const gBase64 = {
302311
302747
 
302312
302748
  /***/ }),
302313
302749
 
302314
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
302750
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
302315
302751
  /*!******************************************************************************************************************************!*\
302316
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
302752
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
302317
302753
  \******************************************************************************************************************************/
302318
302754
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302319
302755
 
@@ -302334,9 +302770,9 @@ function _arrayLikeToArray(arr, len) {
302334
302770
 
302335
302771
  /***/ }),
302336
302772
 
302337
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
302773
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
302338
302774
  /*!****************************************************************************************************************************!*\
302339
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
302775
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
302340
302776
  \****************************************************************************************************************************/
302341
302777
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302342
302778
 
@@ -302351,9 +302787,9 @@ function _arrayWithHoles(arr) {
302351
302787
 
302352
302788
  /***/ }),
302353
302789
 
302354
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
302790
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
302355
302791
  /*!***********************************************************************************************************************************!*\
302356
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
302792
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
302357
302793
  \***********************************************************************************************************************************/
302358
302794
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302359
302795
 
@@ -302372,9 +302808,9 @@ function _assertThisInitialized(self) {
302372
302808
 
302373
302809
  /***/ }),
302374
302810
 
302375
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
302811
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
302376
302812
  /*!****************************************************************************************************************************!*\
302377
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
302813
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
302378
302814
  \****************************************************************************************************************************/
302379
302815
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302380
302816
 
@@ -302391,9 +302827,9 @@ function _classCallCheck(instance, Constructor) {
302391
302827
 
302392
302828
  /***/ }),
302393
302829
 
302394
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/createClass.js":
302830
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/createClass.js":
302395
302831
  /*!*************************************************************************************************************************!*\
302396
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
302832
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
302397
302833
  \*************************************************************************************************************************/
302398
302834
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302399
302835
 
@@ -302423,9 +302859,9 @@ function _createClass(Constructor, protoProps, staticProps) {
302423
302859
 
302424
302860
  /***/ }),
302425
302861
 
302426
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js":
302862
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/defineProperty.js":
302427
302863
  /*!****************************************************************************************************************************!*\
302428
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
302864
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
302429
302865
  \****************************************************************************************************************************/
302430
302866
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302431
302867
 
@@ -302451,9 +302887,9 @@ function _defineProperty(obj, key, value) {
302451
302887
 
302452
302888
  /***/ }),
302453
302889
 
302454
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":
302890
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":
302455
302891
  /*!****************************************************************************************************************************!*\
302456
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
302892
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
302457
302893
  \****************************************************************************************************************************/
302458
302894
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302459
302895
 
@@ -302471,9 +302907,9 @@ function _getPrototypeOf(o) {
302471
302907
 
302472
302908
  /***/ }),
302473
302909
 
302474
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/inherits.js":
302910
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/inherits.js":
302475
302911
  /*!**********************************************************************************************************************!*\
302476
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/inherits.js ***!
302912
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/inherits.js ***!
302477
302913
  \**********************************************************************************************************************/
302478
302914
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302479
302915
 
@@ -302482,7 +302918,7 @@ __webpack_require__.r(__webpack_exports__);
302482
302918
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
302483
302919
  /* harmony export */ "default": () => (/* binding */ _inherits)
302484
302920
  /* harmony export */ });
302485
- /* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");
302921
+ /* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");
302486
302922
 
302487
302923
  function _inherits(subClass, superClass) {
302488
302924
  if (typeof superClass !== "function" && superClass !== null) {
@@ -302504,9 +302940,9 @@ function _inherits(subClass, superClass) {
302504
302940
 
302505
302941
  /***/ }),
302506
302942
 
302507
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
302943
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
302508
302944
  /*!*****************************************************************************************************************************!*\
302509
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
302945
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
302510
302946
  \*****************************************************************************************************************************/
302511
302947
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302512
302948
 
@@ -302521,9 +302957,9 @@ function _iterableToArray(iter) {
302521
302957
 
302522
302958
  /***/ }),
302523
302959
 
302524
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
302960
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
302525
302961
  /*!*****************************************************************************************************************************!*\
302526
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
302962
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
302527
302963
  \*****************************************************************************************************************************/
302528
302964
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302529
302965
 
@@ -302538,9 +302974,9 @@ function _nonIterableRest() {
302538
302974
 
302539
302975
  /***/ }),
302540
302976
 
302541
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":
302977
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":
302542
302978
  /*!***************************************************************************************************************************************!*\
302543
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***!
302979
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***!
302544
302980
  \***************************************************************************************************************************************/
302545
302981
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302546
302982
 
@@ -302549,8 +302985,8 @@ __webpack_require__.r(__webpack_exports__);
302549
302985
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
302550
302986
  /* harmony export */ "default": () => (/* binding */ _possibleConstructorReturn)
302551
302987
  /* harmony export */ });
302552
- /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/typeof.js");
302553
- /* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
302988
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js");
302989
+ /* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
302554
302990
 
302555
302991
 
302556
302992
  function _possibleConstructorReturn(self, call) {
@@ -302565,9 +303001,9 @@ function _possibleConstructorReturn(self, call) {
302565
303001
 
302566
303002
  /***/ }),
302567
303003
 
302568
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
303004
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
302569
303005
  /*!****************************************************************************************************************************!*\
302570
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
303006
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
302571
303007
  \****************************************************************************************************************************/
302572
303008
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302573
303009
 
@@ -302586,9 +303022,9 @@ function _setPrototypeOf(o, p) {
302586
303022
 
302587
303023
  /***/ }),
302588
303024
 
302589
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/toArray.js":
303025
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/toArray.js":
302590
303026
  /*!*********************************************************************************************************************!*\
302591
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/toArray.js ***!
303027
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/toArray.js ***!
302592
303028
  \*********************************************************************************************************************/
302593
303029
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302594
303030
 
@@ -302597,10 +303033,10 @@ __webpack_require__.r(__webpack_exports__);
302597
303033
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
302598
303034
  /* harmony export */ "default": () => (/* binding */ _toArray)
302599
303035
  /* harmony export */ });
302600
- /* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
302601
- /* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
302602
- /* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
302603
- /* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
303036
+ /* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
303037
+ /* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
303038
+ /* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
303039
+ /* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
302604
303040
 
302605
303041
 
302606
303042
 
@@ -302611,9 +303047,9 @@ function _toArray(arr) {
302611
303047
 
302612
303048
  /***/ }),
302613
303049
 
302614
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/typeof.js":
303050
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js":
302615
303051
  /*!********************************************************************************************************************!*\
302616
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
303052
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
302617
303053
  \********************************************************************************************************************/
302618
303054
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302619
303055
 
@@ -302634,9 +303070,9 @@ function _typeof(obj) {
302634
303070
 
302635
303071
  /***/ }),
302636
303072
 
302637
- /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
303073
+ /***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
302638
303074
  /*!****************************************************************************************************************************************!*\
302639
- !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
303075
+ !*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
302640
303076
  \****************************************************************************************************************************************/
302641
303077
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302642
303078
 
@@ -302645,7 +303081,7 @@ __webpack_require__.r(__webpack_exports__);
302645
303081
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
302646
303082
  /* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
302647
303083
  /* harmony export */ });
302648
- /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
303084
+ /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
302649
303085
 
302650
303086
  function _unsupportedIterableToArray(o, minLen) {
302651
303087
  if (!o) return;
@@ -302658,10 +303094,442 @@ function _unsupportedIterableToArray(o, minLen) {
302658
303094
 
302659
303095
  /***/ }),
302660
303096
 
302661
- /***/ "../../common/temp/node_modules/.pnpm/i18next@21.8.14/node_modules/i18next/dist/esm/i18next.js":
302662
- /*!*****************************************************************************************************!*\
302663
- !*** ../../common/temp/node_modules/.pnpm/i18next@21.8.14/node_modules/i18next/dist/esm/i18next.js ***!
302664
- \*****************************************************************************************************/
303097
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js":
303098
+ /*!**********************************************************************************************************************!*\
303099
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js ***!
303100
+ \**********************************************************************************************************************/
303101
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
303102
+
303103
+ "use strict";
303104
+ __webpack_require__.r(__webpack_exports__);
303105
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
303106
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
303107
+ /* harmony export */ });
303108
+ /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js");
303109
+ /* harmony import */ var _request_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./request.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js");
303110
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
303111
+
303112
+ 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); } }
303113
+
303114
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
303115
+
303116
+ 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; }
303117
+
303118
+
303119
+
303120
+
303121
+ var getDefaults = function getDefaults() {
303122
+ return {
303123
+ loadPath: '/locales/{{lng}}/{{ns}}.json',
303124
+ addPath: '/locales/add/{{lng}}/{{ns}}',
303125
+ allowMultiLoading: false,
303126
+ parse: function parse(data) {
303127
+ return JSON.parse(data);
303128
+ },
303129
+ stringify: JSON.stringify,
303130
+ parsePayload: function parsePayload(namespace, key, fallbackValue) {
303131
+ return _defineProperty({}, key, fallbackValue || '');
303132
+ },
303133
+ request: _request_js__WEBPACK_IMPORTED_MODULE_1__["default"],
303134
+ reloadInterval: typeof window !== 'undefined' ? false : 60 * 60 * 1000,
303135
+ customHeaders: {},
303136
+ queryStringParams: {},
303137
+ crossDomain: false,
303138
+ withCredentials: false,
303139
+ overrideMimeType: false,
303140
+ requestOptions: {
303141
+ mode: 'cors',
303142
+ credentials: 'same-origin',
303143
+ cache: 'default'
303144
+ }
303145
+ };
303146
+ };
303147
+
303148
+ var Backend = function () {
303149
+ function Backend(services) {
303150
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
303151
+ var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
303152
+
303153
+ _classCallCheck(this, Backend);
303154
+
303155
+ this.services = services;
303156
+ this.options = options;
303157
+ this.allOptions = allOptions;
303158
+ this.type = 'backend';
303159
+ this.init(services, options, allOptions);
303160
+ }
303161
+
303162
+ _createClass(Backend, [{
303163
+ key: "init",
303164
+ value: function init(services) {
303165
+ var _this = this;
303166
+
303167
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
303168
+ var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
303169
+ this.services = services;
303170
+ this.options = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)(options, this.options || {}, getDefaults());
303171
+ this.allOptions = allOptions;
303172
+
303173
+ if (this.services && this.options.reloadInterval) {
303174
+ setInterval(function () {
303175
+ return _this.reload();
303176
+ }, this.options.reloadInterval);
303177
+ }
303178
+ }
303179
+ }, {
303180
+ key: "readMulti",
303181
+ value: function readMulti(languages, namespaces, callback) {
303182
+ this._readAny(languages, languages, namespaces, namespaces, callback);
303183
+ }
303184
+ }, {
303185
+ key: "read",
303186
+ value: function read(language, namespace, callback) {
303187
+ this._readAny([language], language, [namespace], namespace, callback);
303188
+ }
303189
+ }, {
303190
+ key: "_readAny",
303191
+ value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
303192
+ var _this2 = this;
303193
+
303194
+ var loadPath = this.options.loadPath;
303195
+
303196
+ if (typeof this.options.loadPath === 'function') {
303197
+ loadPath = this.options.loadPath(languages, namespaces);
303198
+ }
303199
+
303200
+ loadPath = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.makePromise)(loadPath);
303201
+ loadPath.then(function (resolvedLoadPath) {
303202
+ if (!resolvedLoadPath) return callback(null, {});
303203
+
303204
+ var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {
303205
+ lng: languages.join('+'),
303206
+ ns: namespaces.join('+')
303207
+ });
303208
+
303209
+ _this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
303210
+ });
303211
+ }
303212
+ }, {
303213
+ key: "loadUrl",
303214
+ value: function loadUrl(url, callback, languages, namespaces) {
303215
+ var _this3 = this;
303216
+
303217
+ this.options.request(this.options, url, undefined, function (err, res) {
303218
+ if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback('failed loading ' + url + '; status code: ' + res.status, true);
303219
+ if (res && res.status >= 400 && res.status < 500) return callback('failed loading ' + url + '; status code: ' + res.status, false);
303220
+ if (!res && err && err.message && err.message.indexOf('Failed to fetch') > -1) return callback('failed loading ' + url + ': ' + err.message, true);
303221
+ if (err) return callback(err, false);
303222
+ var ret, parseErr;
303223
+
303224
+ try {
303225
+ if (typeof res.data === 'string') {
303226
+ ret = _this3.options.parse(res.data, languages, namespaces);
303227
+ } else {
303228
+ ret = res.data;
303229
+ }
303230
+ } catch (e) {
303231
+ parseErr = 'failed parsing ' + url + ' to json';
303232
+ }
303233
+
303234
+ if (parseErr) return callback(parseErr, false);
303235
+ callback(null, ret);
303236
+ });
303237
+ }
303238
+ }, {
303239
+ key: "create",
303240
+ value: function create(languages, namespace, key, fallbackValue, callback) {
303241
+ var _this4 = this;
303242
+
303243
+ if (!this.options.addPath) return;
303244
+ if (typeof languages === 'string') languages = [languages];
303245
+ var payload = this.options.parsePayload(namespace, key, fallbackValue);
303246
+ var finished = 0;
303247
+ var dataArray = [];
303248
+ var resArray = [];
303249
+ languages.forEach(function (lng) {
303250
+ var addPath = _this4.options.addPath;
303251
+
303252
+ if (typeof _this4.options.addPath === 'function') {
303253
+ addPath = _this4.options.addPath(lng, namespace);
303254
+ }
303255
+
303256
+ var url = _this4.services.interpolator.interpolate(addPath, {
303257
+ lng: lng,
303258
+ ns: namespace
303259
+ });
303260
+
303261
+ _this4.options.request(_this4.options, url, payload, function (data, res) {
303262
+ finished += 1;
303263
+ dataArray.push(data);
303264
+ resArray.push(res);
303265
+
303266
+ if (finished === languages.length) {
303267
+ if (callback) callback(dataArray, resArray);
303268
+ }
303269
+ });
303270
+ });
303271
+ }
303272
+ }, {
303273
+ key: "reload",
303274
+ value: function reload() {
303275
+ var _this5 = this;
303276
+
303277
+ var _this$services = this.services,
303278
+ backendConnector = _this$services.backendConnector,
303279
+ languageUtils = _this$services.languageUtils,
303280
+ logger = _this$services.logger;
303281
+ var currentLanguage = backendConnector.language;
303282
+ if (currentLanguage && currentLanguage.toLowerCase() === 'cimode') return;
303283
+ var toLoad = [];
303284
+
303285
+ var append = function append(lng) {
303286
+ var lngs = languageUtils.toResolveHierarchy(lng);
303287
+ lngs.forEach(function (l) {
303288
+ if (toLoad.indexOf(l) < 0) toLoad.push(l);
303289
+ });
303290
+ };
303291
+
303292
+ append(currentLanguage);
303293
+ if (this.allOptions.preload) this.allOptions.preload.forEach(function (l) {
303294
+ return append(l);
303295
+ });
303296
+ toLoad.forEach(function (lng) {
303297
+ _this5.allOptions.ns.forEach(function (ns) {
303298
+ backendConnector.read(lng, ns, 'read', null, null, function (err, data) {
303299
+ if (err) logger.warn("loading namespace ".concat(ns, " for language ").concat(lng, " failed"), err);
303300
+ if (!err && data) logger.log("loaded namespace ".concat(ns, " for language ").concat(lng), data);
303301
+ backendConnector.loaded("".concat(lng, "|").concat(ns), err, data);
303302
+ });
303303
+ });
303304
+ });
303305
+ }
303306
+ }]);
303307
+
303308
+ return Backend;
303309
+ }();
303310
+
303311
+ Backend.type = 'backend';
303312
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
303313
+
303314
+ /***/ }),
303315
+
303316
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js":
303317
+ /*!************************************************************************************************************************!*\
303318
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js ***!
303319
+ \************************************************************************************************************************/
303320
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
303321
+
303322
+ "use strict";
303323
+ var _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
303324
+ __webpack_require__.r(__webpack_exports__);
303325
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
303326
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
303327
+ /* harmony export */ });
303328
+ /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js");
303329
+ /* harmony import */ var _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getFetch.cjs */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs");
303330
+ 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); }
303331
+
303332
+
303333
+
303334
+ var fetchApi;
303335
+
303336
+ if (typeof fetch === 'function') {
303337
+ if (typeof global !== 'undefined' && global.fetch) {
303338
+ fetchApi = global.fetch;
303339
+ } else if (typeof window !== 'undefined' && window.fetch) {
303340
+ fetchApi = window.fetch;
303341
+ }
303342
+ }
303343
+
303344
+ var XmlHttpRequestApi;
303345
+
303346
+ if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)()) {
303347
+ if (typeof global !== 'undefined' && global.XMLHttpRequest) {
303348
+ XmlHttpRequestApi = global.XMLHttpRequest;
303349
+ } else if (typeof window !== 'undefined' && window.XMLHttpRequest) {
303350
+ XmlHttpRequestApi = window.XMLHttpRequest;
303351
+ }
303352
+ }
303353
+
303354
+ var ActiveXObjectApi;
303355
+
303356
+ if (typeof ActiveXObject === 'function') {
303357
+ if (typeof global !== 'undefined' && global.ActiveXObject) {
303358
+ ActiveXObjectApi = global.ActiveXObject;
303359
+ } else if (typeof window !== 'undefined' && window.ActiveXObject) {
303360
+ ActiveXObjectApi = window.ActiveXObject;
303361
+ }
303362
+ }
303363
+
303364
+ if (!fetchApi && /*#__PURE__*/ (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__, 2))) && !XmlHttpRequestApi && !ActiveXObjectApi) fetchApi = _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__ || /*#__PURE__*/ (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_getFetch_cjs__WEBPACK_IMPORTED_MODULE_1__, 2)));
303365
+ if (typeof fetchApi !== 'function') fetchApi = undefined;
303366
+
303367
+ var addQueryString = function addQueryString(url, params) {
303368
+ if (params && _typeof(params) === 'object') {
303369
+ var queryString = '';
303370
+
303371
+ for (var paramName in params) {
303372
+ queryString += '&' + encodeURIComponent(paramName) + '=' + encodeURIComponent(params[paramName]);
303373
+ }
303374
+
303375
+ if (!queryString) return url;
303376
+ url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
303377
+ }
303378
+
303379
+ return url;
303380
+ };
303381
+
303382
+ var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
303383
+ if (options.queryStringParams) {
303384
+ url = addQueryString(url, options.queryStringParams);
303385
+ }
303386
+
303387
+ var headers = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
303388
+ if (payload) headers['Content-Type'] = 'application/json';
303389
+ fetchApi(url, (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({
303390
+ method: payload ? 'POST' : 'GET',
303391
+ body: payload ? options.stringify(payload) : undefined,
303392
+ headers: headers
303393
+ }, typeof options.requestOptions === 'function' ? options.requestOptions(payload) : options.requestOptions)).then(function (response) {
303394
+ if (!response.ok) return callback(response.statusText || 'Error', {
303395
+ status: response.status
303396
+ });
303397
+ response.text().then(function (data) {
303398
+ callback(null, {
303399
+ status: response.status,
303400
+ data: data
303401
+ });
303402
+ }).catch(callback);
303403
+ }).catch(callback);
303404
+ };
303405
+
303406
+ var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url, payload, callback) {
303407
+ if (payload && _typeof(payload) === 'object') {
303408
+ payload = addQueryString('', payload).slice(1);
303409
+ }
303410
+
303411
+ if (options.queryStringParams) {
303412
+ url = addQueryString(url, options.queryStringParams);
303413
+ }
303414
+
303415
+ try {
303416
+ var x;
303417
+
303418
+ if (XmlHttpRequestApi) {
303419
+ x = new XmlHttpRequestApi();
303420
+ } else {
303421
+ x = new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');
303422
+ }
303423
+
303424
+ x.open(payload ? 'POST' : 'GET', url, 1);
303425
+
303426
+ if (!options.crossDomain) {
303427
+ x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
303428
+ }
303429
+
303430
+ x.withCredentials = !!options.withCredentials;
303431
+
303432
+ if (payload) {
303433
+ x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
303434
+ }
303435
+
303436
+ if (x.overrideMimeType) {
303437
+ x.overrideMimeType('application/json');
303438
+ }
303439
+
303440
+ var h = options.customHeaders;
303441
+ h = typeof h === 'function' ? h() : h;
303442
+
303443
+ if (h) {
303444
+ for (var i in h) {
303445
+ x.setRequestHeader(i, h[i]);
303446
+ }
303447
+ }
303448
+
303449
+ x.onreadystatechange = function () {
303450
+ x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
303451
+ status: x.status,
303452
+ data: x.responseText
303453
+ });
303454
+ };
303455
+
303456
+ x.send(payload);
303457
+ } catch (e) {
303458
+ console && console.log(e);
303459
+ }
303460
+ };
303461
+
303462
+ var request = function request(options, url, payload, callback) {
303463
+ if (typeof payload === 'function') {
303464
+ callback = payload;
303465
+ payload = undefined;
303466
+ }
303467
+
303468
+ callback = callback || function () {};
303469
+
303470
+ if (fetchApi) {
303471
+ return requestWithFetch(options, url, payload, callback);
303472
+ }
303473
+
303474
+ if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)() || typeof ActiveXObject === 'function') {
303475
+ return requestWithXmlHttpRequest(options, url, payload, callback);
303476
+ }
303477
+ };
303478
+
303479
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (request);
303480
+
303481
+ /***/ }),
303482
+
303483
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js":
303484
+ /*!**********************************************************************************************************************!*\
303485
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js ***!
303486
+ \**********************************************************************************************************************/
303487
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
303488
+
303489
+ "use strict";
303490
+ __webpack_require__.r(__webpack_exports__);
303491
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
303492
+ /* harmony export */ "defaults": () => (/* binding */ defaults),
303493
+ /* harmony export */ "hasXMLHttpRequest": () => (/* binding */ hasXMLHttpRequest),
303494
+ /* harmony export */ "makePromise": () => (/* binding */ makePromise)
303495
+ /* harmony export */ });
303496
+ 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); }
303497
+
303498
+ var arr = [];
303499
+ var each = arr.forEach;
303500
+ var slice = arr.slice;
303501
+ function defaults(obj) {
303502
+ each.call(slice.call(arguments, 1), function (source) {
303503
+ if (source) {
303504
+ for (var prop in source) {
303505
+ if (obj[prop] === undefined) obj[prop] = source[prop];
303506
+ }
303507
+ }
303508
+ });
303509
+ return obj;
303510
+ }
303511
+ function hasXMLHttpRequest() {
303512
+ return typeof XMLHttpRequest === 'function' || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) === 'object';
303513
+ }
303514
+
303515
+ function isPromise(maybePromise) {
303516
+ return !!maybePromise && typeof maybePromise.then === 'function';
303517
+ }
303518
+
303519
+ function makePromise(maybePromise) {
303520
+ if (isPromise(maybePromise)) {
303521
+ return maybePromise;
303522
+ }
303523
+
303524
+ return Promise.resolve(maybePromise);
303525
+ }
303526
+
303527
+ /***/ }),
303528
+
303529
+ /***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js":
303530
+ /*!****************************************************************************************************!*\
303531
+ !*** ../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js ***!
303532
+ \****************************************************************************************************/
302665
303533
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
302666
303534
 
302667
303535
  "use strict";
@@ -302682,15 +303550,15 @@ __webpack_require__.r(__webpack_exports__);
302682
303550
  /* harmony export */ "t": () => (/* binding */ t),
302683
303551
  /* harmony export */ "use": () => (/* binding */ use)
302684
303552
  /* harmony export */ });
302685
- /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/typeof.js");
302686
- /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
302687
- /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/createClass.js");
302688
- /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
302689
- /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/inherits.js");
302690
- /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
302691
- /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
302692
- /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
302693
- /* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.6/node_modules/@babel/runtime/helpers/esm/toArray.js");
303553
+ /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js");
303554
+ /* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
303555
+ /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/createClass.js");
303556
+ /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
303557
+ /* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/inherits.js");
303558
+ /* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
303559
+ /* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
303560
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
303561
+ /* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/toArray.js");
302694
303562
 
302695
303563
 
302696
303564
 
@@ -304562,6 +305430,8 @@ var Connector = function (_EventEmitter) {
304562
305430
  _this.waitingReads = [];
304563
305431
  _this.maxParallelReads = options.maxParallelReads || 10;
304564
305432
  _this.readingCalls = 0;
305433
+ _this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5;
305434
+ _this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;
304565
305435
  _this.state = {};
304566
305436
  _this.queue = [];
304567
305437
 
@@ -304668,7 +305538,7 @@ var Connector = function (_EventEmitter) {
304668
305538
  var _this3 = this;
304669
305539
 
304670
305540
  var tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
304671
- var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 350;
305541
+ var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.retryTimeout;
304672
305542
  var callback = arguments.length > 5 ? arguments[5] : undefined;
304673
305543
  if (!lng.length) return callback(null, {});
304674
305544
 
@@ -304686,13 +305556,6 @@ var Connector = function (_EventEmitter) {
304686
305556
 
304687
305557
  this.readingCalls++;
304688
305558
  return this.backend[fcName](lng, ns, function (err, data) {
304689
- if (err && data && tried < 5) {
304690
- setTimeout(function () {
304691
- _this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
304692
- }, wait);
304693
- return;
304694
- }
304695
-
304696
305559
  _this3.readingCalls--;
304697
305560
 
304698
305561
  if (_this3.waitingReads.length > 0) {
@@ -304701,6 +305564,13 @@ var Connector = function (_EventEmitter) {
304701
305564
  _this3.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback);
304702
305565
  }
304703
305566
 
305567
+ if (err && data && tried < _this3.maxRetries) {
305568
+ setTimeout(function () {
305569
+ _this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
305570
+ }, wait);
305571
+ return;
305572
+ }
305573
+
304704
305574
  callback(err, data);
304705
305575
  });
304706
305576
  }
@@ -305516,7 +306386,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
305516
306386
  /***/ ((module) => {
305517
306387
 
305518
306388
  "use strict";
305519
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.1","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.1","@itwin/core-bentley":"workspace:^3.4.0-dev.1","@itwin/core-common":"workspace:^3.4.0-dev.1","@itwin/core-geometry":"workspace:^3.4.0-dev.1","@itwin/core-orbitgt":"workspace:^3.4.0-dev.1","@itwin/core-quantity":"workspace:^3.4.0-dev.1","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.1"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"^7.3.9","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
306389
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.10","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs","build:ci":"npm run -s build && npm run -s build:esm","build:cjs":"tsc 1>&2 --outDir lib/cjs","build:esm":"tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.4.0-dev.10","@itwin/core-bentley":"workspace:^3.4.0-dev.10","@itwin/core-common":"workspace:^3.4.0-dev.10","@itwin/core-geometry":"workspace:^3.4.0-dev.10","@itwin/core-orbitgt":"workspace:^3.4.0-dev.10","@itwin/core-quantity":"workspace:^3.4.0-dev.10","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.10"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"16.11.7","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.1","semver":"^7.3.5","superagent":"7.1.3","wms-capabilities":"0.4.0","xml-js":"~1.6.11"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
305520
306390
 
305521
306391
  /***/ }),
305522
306392
 
@@ -305576,6 +306446,36 @@ module.exports = JSON.parse('{"$schema":"../../../node_modules/@itwin/presentati
305576
306446
  /******/ };
305577
306447
  /******/ })();
305578
306448
  /******/
306449
+ /******/ /* webpack/runtime/create fake namespace object */
306450
+ /******/ (() => {
306451
+ /******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
306452
+ /******/ var leafPrototypes;
306453
+ /******/ // create a fake namespace object
306454
+ /******/ // mode & 1: value is a module id, require it
306455
+ /******/ // mode & 2: merge all properties of value into the ns
306456
+ /******/ // mode & 4: return value when already ns object
306457
+ /******/ // mode & 16: return value when it's Promise-like
306458
+ /******/ // mode & 8|1: behave like require
306459
+ /******/ __webpack_require__.t = function(value, mode) {
306460
+ /******/ if(mode & 1) value = this(value);
306461
+ /******/ if(mode & 8) return value;
306462
+ /******/ if(typeof value === 'object' && value) {
306463
+ /******/ if((mode & 4) && value.__esModule) return value;
306464
+ /******/ if((mode & 16) && typeof value.then === 'function') return value;
306465
+ /******/ }
306466
+ /******/ var ns = Object.create(null);
306467
+ /******/ __webpack_require__.r(ns);
306468
+ /******/ var def = {};
306469
+ /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
306470
+ /******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
306471
+ /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
306472
+ /******/ }
306473
+ /******/ def['default'] = () => (value);
306474
+ /******/ __webpack_require__.d(ns, def);
306475
+ /******/ return ns;
306476
+ /******/ };
306477
+ /******/ })();
306478
+ /******/
305579
306479
  /******/ /* webpack/runtime/define property getters */
305580
306480
  /******/ (() => {
305581
306481
  /******/ // define getter functions for harmony exports