@itwin/ecschema-rpcinterface-tests 3.4.0-dev.0 → 3.4.0-dev.12
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.
- package/lib/dist/_c41d.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +1325 -406
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_5_node_modules_loaders_gl_draco_di-e0b0bc.bundled-tests.js +5 -5
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_5_node_modules_loaders_gl_draco_di-e0b0bc.bundled-tests.js.map +1 -1
- package/package.json +17 -18
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
|
|
22
22
|
/***/ }),
|
|
23
23
|
|
|
24
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.2.
|
|
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.
|
|
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.
|
|
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) {
|
|
@@ -19015,6 +19015,570 @@ Emitter.prototype.hasListeners = function(event){
|
|
|
19015
19015
|
};
|
|
19016
19016
|
|
|
19017
19017
|
|
|
19018
|
+
/***/ }),
|
|
19019
|
+
|
|
19020
|
+
/***/ "../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js":
|
|
19021
|
+
/*!****************************************************************************************************************!*\
|
|
19022
|
+
!*** ../../common/temp/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js ***!
|
|
19023
|
+
\****************************************************************************************************************/
|
|
19024
|
+
/***/ (function(module, exports) {
|
|
19025
|
+
|
|
19026
|
+
var global = typeof self !== 'undefined' ? self : this;
|
|
19027
|
+
var __self__ = (function () {
|
|
19028
|
+
function F() {
|
|
19029
|
+
this.fetch = false;
|
|
19030
|
+
this.DOMException = global.DOMException
|
|
19031
|
+
}
|
|
19032
|
+
F.prototype = global;
|
|
19033
|
+
return new F();
|
|
19034
|
+
})();
|
|
19035
|
+
(function(self) {
|
|
19036
|
+
|
|
19037
|
+
var irrelevant = (function (exports) {
|
|
19038
|
+
|
|
19039
|
+
var support = {
|
|
19040
|
+
searchParams: 'URLSearchParams' in self,
|
|
19041
|
+
iterable: 'Symbol' in self && 'iterator' in Symbol,
|
|
19042
|
+
blob:
|
|
19043
|
+
'FileReader' in self &&
|
|
19044
|
+
'Blob' in self &&
|
|
19045
|
+
(function() {
|
|
19046
|
+
try {
|
|
19047
|
+
new Blob();
|
|
19048
|
+
return true
|
|
19049
|
+
} catch (e) {
|
|
19050
|
+
return false
|
|
19051
|
+
}
|
|
19052
|
+
})(),
|
|
19053
|
+
formData: 'FormData' in self,
|
|
19054
|
+
arrayBuffer: 'ArrayBuffer' in self
|
|
19055
|
+
};
|
|
19056
|
+
|
|
19057
|
+
function isDataView(obj) {
|
|
19058
|
+
return obj && DataView.prototype.isPrototypeOf(obj)
|
|
19059
|
+
}
|
|
19060
|
+
|
|
19061
|
+
if (support.arrayBuffer) {
|
|
19062
|
+
var viewClasses = [
|
|
19063
|
+
'[object Int8Array]',
|
|
19064
|
+
'[object Uint8Array]',
|
|
19065
|
+
'[object Uint8ClampedArray]',
|
|
19066
|
+
'[object Int16Array]',
|
|
19067
|
+
'[object Uint16Array]',
|
|
19068
|
+
'[object Int32Array]',
|
|
19069
|
+
'[object Uint32Array]',
|
|
19070
|
+
'[object Float32Array]',
|
|
19071
|
+
'[object Float64Array]'
|
|
19072
|
+
];
|
|
19073
|
+
|
|
19074
|
+
var isArrayBufferView =
|
|
19075
|
+
ArrayBuffer.isView ||
|
|
19076
|
+
function(obj) {
|
|
19077
|
+
return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
|
|
19078
|
+
};
|
|
19079
|
+
}
|
|
19080
|
+
|
|
19081
|
+
function normalizeName(name) {
|
|
19082
|
+
if (typeof name !== 'string') {
|
|
19083
|
+
name = String(name);
|
|
19084
|
+
}
|
|
19085
|
+
if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name)) {
|
|
19086
|
+
throw new TypeError('Invalid character in header field name')
|
|
19087
|
+
}
|
|
19088
|
+
return name.toLowerCase()
|
|
19089
|
+
}
|
|
19090
|
+
|
|
19091
|
+
function normalizeValue(value) {
|
|
19092
|
+
if (typeof value !== 'string') {
|
|
19093
|
+
value = String(value);
|
|
19094
|
+
}
|
|
19095
|
+
return value
|
|
19096
|
+
}
|
|
19097
|
+
|
|
19098
|
+
// Build a destructive iterator for the value list
|
|
19099
|
+
function iteratorFor(items) {
|
|
19100
|
+
var iterator = {
|
|
19101
|
+
next: function() {
|
|
19102
|
+
var value = items.shift();
|
|
19103
|
+
return {done: value === undefined, value: value}
|
|
19104
|
+
}
|
|
19105
|
+
};
|
|
19106
|
+
|
|
19107
|
+
if (support.iterable) {
|
|
19108
|
+
iterator[Symbol.iterator] = function() {
|
|
19109
|
+
return iterator
|
|
19110
|
+
};
|
|
19111
|
+
}
|
|
19112
|
+
|
|
19113
|
+
return iterator
|
|
19114
|
+
}
|
|
19115
|
+
|
|
19116
|
+
function Headers(headers) {
|
|
19117
|
+
this.map = {};
|
|
19118
|
+
|
|
19119
|
+
if (headers instanceof Headers) {
|
|
19120
|
+
headers.forEach(function(value, name) {
|
|
19121
|
+
this.append(name, value);
|
|
19122
|
+
}, this);
|
|
19123
|
+
} else if (Array.isArray(headers)) {
|
|
19124
|
+
headers.forEach(function(header) {
|
|
19125
|
+
this.append(header[0], header[1]);
|
|
19126
|
+
}, this);
|
|
19127
|
+
} else if (headers) {
|
|
19128
|
+
Object.getOwnPropertyNames(headers).forEach(function(name) {
|
|
19129
|
+
this.append(name, headers[name]);
|
|
19130
|
+
}, this);
|
|
19131
|
+
}
|
|
19132
|
+
}
|
|
19133
|
+
|
|
19134
|
+
Headers.prototype.append = function(name, value) {
|
|
19135
|
+
name = normalizeName(name);
|
|
19136
|
+
value = normalizeValue(value);
|
|
19137
|
+
var oldValue = this.map[name];
|
|
19138
|
+
this.map[name] = oldValue ? oldValue + ', ' + value : value;
|
|
19139
|
+
};
|
|
19140
|
+
|
|
19141
|
+
Headers.prototype['delete'] = function(name) {
|
|
19142
|
+
delete this.map[normalizeName(name)];
|
|
19143
|
+
};
|
|
19144
|
+
|
|
19145
|
+
Headers.prototype.get = function(name) {
|
|
19146
|
+
name = normalizeName(name);
|
|
19147
|
+
return this.has(name) ? this.map[name] : null
|
|
19148
|
+
};
|
|
19149
|
+
|
|
19150
|
+
Headers.prototype.has = function(name) {
|
|
19151
|
+
return this.map.hasOwnProperty(normalizeName(name))
|
|
19152
|
+
};
|
|
19153
|
+
|
|
19154
|
+
Headers.prototype.set = function(name, value) {
|
|
19155
|
+
this.map[normalizeName(name)] = normalizeValue(value);
|
|
19156
|
+
};
|
|
19157
|
+
|
|
19158
|
+
Headers.prototype.forEach = function(callback, thisArg) {
|
|
19159
|
+
for (var name in this.map) {
|
|
19160
|
+
if (this.map.hasOwnProperty(name)) {
|
|
19161
|
+
callback.call(thisArg, this.map[name], name, this);
|
|
19162
|
+
}
|
|
19163
|
+
}
|
|
19164
|
+
};
|
|
19165
|
+
|
|
19166
|
+
Headers.prototype.keys = function() {
|
|
19167
|
+
var items = [];
|
|
19168
|
+
this.forEach(function(value, name) {
|
|
19169
|
+
items.push(name);
|
|
19170
|
+
});
|
|
19171
|
+
return iteratorFor(items)
|
|
19172
|
+
};
|
|
19173
|
+
|
|
19174
|
+
Headers.prototype.values = function() {
|
|
19175
|
+
var items = [];
|
|
19176
|
+
this.forEach(function(value) {
|
|
19177
|
+
items.push(value);
|
|
19178
|
+
});
|
|
19179
|
+
return iteratorFor(items)
|
|
19180
|
+
};
|
|
19181
|
+
|
|
19182
|
+
Headers.prototype.entries = function() {
|
|
19183
|
+
var items = [];
|
|
19184
|
+
this.forEach(function(value, name) {
|
|
19185
|
+
items.push([name, value]);
|
|
19186
|
+
});
|
|
19187
|
+
return iteratorFor(items)
|
|
19188
|
+
};
|
|
19189
|
+
|
|
19190
|
+
if (support.iterable) {
|
|
19191
|
+
Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
|
|
19192
|
+
}
|
|
19193
|
+
|
|
19194
|
+
function consumed(body) {
|
|
19195
|
+
if (body.bodyUsed) {
|
|
19196
|
+
return Promise.reject(new TypeError('Already read'))
|
|
19197
|
+
}
|
|
19198
|
+
body.bodyUsed = true;
|
|
19199
|
+
}
|
|
19200
|
+
|
|
19201
|
+
function fileReaderReady(reader) {
|
|
19202
|
+
return new Promise(function(resolve, reject) {
|
|
19203
|
+
reader.onload = function() {
|
|
19204
|
+
resolve(reader.result);
|
|
19205
|
+
};
|
|
19206
|
+
reader.onerror = function() {
|
|
19207
|
+
reject(reader.error);
|
|
19208
|
+
};
|
|
19209
|
+
})
|
|
19210
|
+
}
|
|
19211
|
+
|
|
19212
|
+
function readBlobAsArrayBuffer(blob) {
|
|
19213
|
+
var reader = new FileReader();
|
|
19214
|
+
var promise = fileReaderReady(reader);
|
|
19215
|
+
reader.readAsArrayBuffer(blob);
|
|
19216
|
+
return promise
|
|
19217
|
+
}
|
|
19218
|
+
|
|
19219
|
+
function readBlobAsText(blob) {
|
|
19220
|
+
var reader = new FileReader();
|
|
19221
|
+
var promise = fileReaderReady(reader);
|
|
19222
|
+
reader.readAsText(blob);
|
|
19223
|
+
return promise
|
|
19224
|
+
}
|
|
19225
|
+
|
|
19226
|
+
function readArrayBufferAsText(buf) {
|
|
19227
|
+
var view = new Uint8Array(buf);
|
|
19228
|
+
var chars = new Array(view.length);
|
|
19229
|
+
|
|
19230
|
+
for (var i = 0; i < view.length; i++) {
|
|
19231
|
+
chars[i] = String.fromCharCode(view[i]);
|
|
19232
|
+
}
|
|
19233
|
+
return chars.join('')
|
|
19234
|
+
}
|
|
19235
|
+
|
|
19236
|
+
function bufferClone(buf) {
|
|
19237
|
+
if (buf.slice) {
|
|
19238
|
+
return buf.slice(0)
|
|
19239
|
+
} else {
|
|
19240
|
+
var view = new Uint8Array(buf.byteLength);
|
|
19241
|
+
view.set(new Uint8Array(buf));
|
|
19242
|
+
return view.buffer
|
|
19243
|
+
}
|
|
19244
|
+
}
|
|
19245
|
+
|
|
19246
|
+
function Body() {
|
|
19247
|
+
this.bodyUsed = false;
|
|
19248
|
+
|
|
19249
|
+
this._initBody = function(body) {
|
|
19250
|
+
this._bodyInit = body;
|
|
19251
|
+
if (!body) {
|
|
19252
|
+
this._bodyText = '';
|
|
19253
|
+
} else if (typeof body === 'string') {
|
|
19254
|
+
this._bodyText = body;
|
|
19255
|
+
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
|
|
19256
|
+
this._bodyBlob = body;
|
|
19257
|
+
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
|
|
19258
|
+
this._bodyFormData = body;
|
|
19259
|
+
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
19260
|
+
this._bodyText = body.toString();
|
|
19261
|
+
} else if (support.arrayBuffer && support.blob && isDataView(body)) {
|
|
19262
|
+
this._bodyArrayBuffer = bufferClone(body.buffer);
|
|
19263
|
+
// IE 10-11 can't handle a DataView body.
|
|
19264
|
+
this._bodyInit = new Blob([this._bodyArrayBuffer]);
|
|
19265
|
+
} else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
|
|
19266
|
+
this._bodyArrayBuffer = bufferClone(body);
|
|
19267
|
+
} else {
|
|
19268
|
+
this._bodyText = body = Object.prototype.toString.call(body);
|
|
19269
|
+
}
|
|
19270
|
+
|
|
19271
|
+
if (!this.headers.get('content-type')) {
|
|
19272
|
+
if (typeof body === 'string') {
|
|
19273
|
+
this.headers.set('content-type', 'text/plain;charset=UTF-8');
|
|
19274
|
+
} else if (this._bodyBlob && this._bodyBlob.type) {
|
|
19275
|
+
this.headers.set('content-type', this._bodyBlob.type);
|
|
19276
|
+
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
19277
|
+
this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
19278
|
+
}
|
|
19279
|
+
}
|
|
19280
|
+
};
|
|
19281
|
+
|
|
19282
|
+
if (support.blob) {
|
|
19283
|
+
this.blob = function() {
|
|
19284
|
+
var rejected = consumed(this);
|
|
19285
|
+
if (rejected) {
|
|
19286
|
+
return rejected
|
|
19287
|
+
}
|
|
19288
|
+
|
|
19289
|
+
if (this._bodyBlob) {
|
|
19290
|
+
return Promise.resolve(this._bodyBlob)
|
|
19291
|
+
} else if (this._bodyArrayBuffer) {
|
|
19292
|
+
return Promise.resolve(new Blob([this._bodyArrayBuffer]))
|
|
19293
|
+
} else if (this._bodyFormData) {
|
|
19294
|
+
throw new Error('could not read FormData body as blob')
|
|
19295
|
+
} else {
|
|
19296
|
+
return Promise.resolve(new Blob([this._bodyText]))
|
|
19297
|
+
}
|
|
19298
|
+
};
|
|
19299
|
+
|
|
19300
|
+
this.arrayBuffer = function() {
|
|
19301
|
+
if (this._bodyArrayBuffer) {
|
|
19302
|
+
return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
|
|
19303
|
+
} else {
|
|
19304
|
+
return this.blob().then(readBlobAsArrayBuffer)
|
|
19305
|
+
}
|
|
19306
|
+
};
|
|
19307
|
+
}
|
|
19308
|
+
|
|
19309
|
+
this.text = function() {
|
|
19310
|
+
var rejected = consumed(this);
|
|
19311
|
+
if (rejected) {
|
|
19312
|
+
return rejected
|
|
19313
|
+
}
|
|
19314
|
+
|
|
19315
|
+
if (this._bodyBlob) {
|
|
19316
|
+
return readBlobAsText(this._bodyBlob)
|
|
19317
|
+
} else if (this._bodyArrayBuffer) {
|
|
19318
|
+
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
|
|
19319
|
+
} else if (this._bodyFormData) {
|
|
19320
|
+
throw new Error('could not read FormData body as text')
|
|
19321
|
+
} else {
|
|
19322
|
+
return Promise.resolve(this._bodyText)
|
|
19323
|
+
}
|
|
19324
|
+
};
|
|
19325
|
+
|
|
19326
|
+
if (support.formData) {
|
|
19327
|
+
this.formData = function() {
|
|
19328
|
+
return this.text().then(decode)
|
|
19329
|
+
};
|
|
19330
|
+
}
|
|
19331
|
+
|
|
19332
|
+
this.json = function() {
|
|
19333
|
+
return this.text().then(JSON.parse)
|
|
19334
|
+
};
|
|
19335
|
+
|
|
19336
|
+
return this
|
|
19337
|
+
}
|
|
19338
|
+
|
|
19339
|
+
// HTTP methods whose capitalization should be normalized
|
|
19340
|
+
var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
|
|
19341
|
+
|
|
19342
|
+
function normalizeMethod(method) {
|
|
19343
|
+
var upcased = method.toUpperCase();
|
|
19344
|
+
return methods.indexOf(upcased) > -1 ? upcased : method
|
|
19345
|
+
}
|
|
19346
|
+
|
|
19347
|
+
function Request(input, options) {
|
|
19348
|
+
options = options || {};
|
|
19349
|
+
var body = options.body;
|
|
19350
|
+
|
|
19351
|
+
if (input instanceof Request) {
|
|
19352
|
+
if (input.bodyUsed) {
|
|
19353
|
+
throw new TypeError('Already read')
|
|
19354
|
+
}
|
|
19355
|
+
this.url = input.url;
|
|
19356
|
+
this.credentials = input.credentials;
|
|
19357
|
+
if (!options.headers) {
|
|
19358
|
+
this.headers = new Headers(input.headers);
|
|
19359
|
+
}
|
|
19360
|
+
this.method = input.method;
|
|
19361
|
+
this.mode = input.mode;
|
|
19362
|
+
this.signal = input.signal;
|
|
19363
|
+
if (!body && input._bodyInit != null) {
|
|
19364
|
+
body = input._bodyInit;
|
|
19365
|
+
input.bodyUsed = true;
|
|
19366
|
+
}
|
|
19367
|
+
} else {
|
|
19368
|
+
this.url = String(input);
|
|
19369
|
+
}
|
|
19370
|
+
|
|
19371
|
+
this.credentials = options.credentials || this.credentials || 'same-origin';
|
|
19372
|
+
if (options.headers || !this.headers) {
|
|
19373
|
+
this.headers = new Headers(options.headers);
|
|
19374
|
+
}
|
|
19375
|
+
this.method = normalizeMethod(options.method || this.method || 'GET');
|
|
19376
|
+
this.mode = options.mode || this.mode || null;
|
|
19377
|
+
this.signal = options.signal || this.signal;
|
|
19378
|
+
this.referrer = null;
|
|
19379
|
+
|
|
19380
|
+
if ((this.method === 'GET' || this.method === 'HEAD') && body) {
|
|
19381
|
+
throw new TypeError('Body not allowed for GET or HEAD requests')
|
|
19382
|
+
}
|
|
19383
|
+
this._initBody(body);
|
|
19384
|
+
}
|
|
19385
|
+
|
|
19386
|
+
Request.prototype.clone = function() {
|
|
19387
|
+
return new Request(this, {body: this._bodyInit})
|
|
19388
|
+
};
|
|
19389
|
+
|
|
19390
|
+
function decode(body) {
|
|
19391
|
+
var form = new FormData();
|
|
19392
|
+
body
|
|
19393
|
+
.trim()
|
|
19394
|
+
.split('&')
|
|
19395
|
+
.forEach(function(bytes) {
|
|
19396
|
+
if (bytes) {
|
|
19397
|
+
var split = bytes.split('=');
|
|
19398
|
+
var name = split.shift().replace(/\+/g, ' ');
|
|
19399
|
+
var value = split.join('=').replace(/\+/g, ' ');
|
|
19400
|
+
form.append(decodeURIComponent(name), decodeURIComponent(value));
|
|
19401
|
+
}
|
|
19402
|
+
});
|
|
19403
|
+
return form
|
|
19404
|
+
}
|
|
19405
|
+
|
|
19406
|
+
function parseHeaders(rawHeaders) {
|
|
19407
|
+
var headers = new Headers();
|
|
19408
|
+
// Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
|
|
19409
|
+
// https://tools.ietf.org/html/rfc7230#section-3.2
|
|
19410
|
+
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
|
|
19411
|
+
preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
|
|
19412
|
+
var parts = line.split(':');
|
|
19413
|
+
var key = parts.shift().trim();
|
|
19414
|
+
if (key) {
|
|
19415
|
+
var value = parts.join(':').trim();
|
|
19416
|
+
headers.append(key, value);
|
|
19417
|
+
}
|
|
19418
|
+
});
|
|
19419
|
+
return headers
|
|
19420
|
+
}
|
|
19421
|
+
|
|
19422
|
+
Body.call(Request.prototype);
|
|
19423
|
+
|
|
19424
|
+
function Response(bodyInit, options) {
|
|
19425
|
+
if (!options) {
|
|
19426
|
+
options = {};
|
|
19427
|
+
}
|
|
19428
|
+
|
|
19429
|
+
this.type = 'default';
|
|
19430
|
+
this.status = options.status === undefined ? 200 : options.status;
|
|
19431
|
+
this.ok = this.status >= 200 && this.status < 300;
|
|
19432
|
+
this.statusText = 'statusText' in options ? options.statusText : 'OK';
|
|
19433
|
+
this.headers = new Headers(options.headers);
|
|
19434
|
+
this.url = options.url || '';
|
|
19435
|
+
this._initBody(bodyInit);
|
|
19436
|
+
}
|
|
19437
|
+
|
|
19438
|
+
Body.call(Response.prototype);
|
|
19439
|
+
|
|
19440
|
+
Response.prototype.clone = function() {
|
|
19441
|
+
return new Response(this._bodyInit, {
|
|
19442
|
+
status: this.status,
|
|
19443
|
+
statusText: this.statusText,
|
|
19444
|
+
headers: new Headers(this.headers),
|
|
19445
|
+
url: this.url
|
|
19446
|
+
})
|
|
19447
|
+
};
|
|
19448
|
+
|
|
19449
|
+
Response.error = function() {
|
|
19450
|
+
var response = new Response(null, {status: 0, statusText: ''});
|
|
19451
|
+
response.type = 'error';
|
|
19452
|
+
return response
|
|
19453
|
+
};
|
|
19454
|
+
|
|
19455
|
+
var redirectStatuses = [301, 302, 303, 307, 308];
|
|
19456
|
+
|
|
19457
|
+
Response.redirect = function(url, status) {
|
|
19458
|
+
if (redirectStatuses.indexOf(status) === -1) {
|
|
19459
|
+
throw new RangeError('Invalid status code')
|
|
19460
|
+
}
|
|
19461
|
+
|
|
19462
|
+
return new Response(null, {status: status, headers: {location: url}})
|
|
19463
|
+
};
|
|
19464
|
+
|
|
19465
|
+
exports.DOMException = self.DOMException;
|
|
19466
|
+
try {
|
|
19467
|
+
new exports.DOMException();
|
|
19468
|
+
} catch (err) {
|
|
19469
|
+
exports.DOMException = function(message, name) {
|
|
19470
|
+
this.message = message;
|
|
19471
|
+
this.name = name;
|
|
19472
|
+
var error = Error(message);
|
|
19473
|
+
this.stack = error.stack;
|
|
19474
|
+
};
|
|
19475
|
+
exports.DOMException.prototype = Object.create(Error.prototype);
|
|
19476
|
+
exports.DOMException.prototype.constructor = exports.DOMException;
|
|
19477
|
+
}
|
|
19478
|
+
|
|
19479
|
+
function fetch(input, init) {
|
|
19480
|
+
return new Promise(function(resolve, reject) {
|
|
19481
|
+
var request = new Request(input, init);
|
|
19482
|
+
|
|
19483
|
+
if (request.signal && request.signal.aborted) {
|
|
19484
|
+
return reject(new exports.DOMException('Aborted', 'AbortError'))
|
|
19485
|
+
}
|
|
19486
|
+
|
|
19487
|
+
var xhr = new XMLHttpRequest();
|
|
19488
|
+
|
|
19489
|
+
function abortXhr() {
|
|
19490
|
+
xhr.abort();
|
|
19491
|
+
}
|
|
19492
|
+
|
|
19493
|
+
xhr.onload = function() {
|
|
19494
|
+
var options = {
|
|
19495
|
+
status: xhr.status,
|
|
19496
|
+
statusText: xhr.statusText,
|
|
19497
|
+
headers: parseHeaders(xhr.getAllResponseHeaders() || '')
|
|
19498
|
+
};
|
|
19499
|
+
options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
|
|
19500
|
+
var body = 'response' in xhr ? xhr.response : xhr.responseText;
|
|
19501
|
+
resolve(new Response(body, options));
|
|
19502
|
+
};
|
|
19503
|
+
|
|
19504
|
+
xhr.onerror = function() {
|
|
19505
|
+
reject(new TypeError('Network request failed'));
|
|
19506
|
+
};
|
|
19507
|
+
|
|
19508
|
+
xhr.ontimeout = function() {
|
|
19509
|
+
reject(new TypeError('Network request failed'));
|
|
19510
|
+
};
|
|
19511
|
+
|
|
19512
|
+
xhr.onabort = function() {
|
|
19513
|
+
reject(new exports.DOMException('Aborted', 'AbortError'));
|
|
19514
|
+
};
|
|
19515
|
+
|
|
19516
|
+
xhr.open(request.method, request.url, true);
|
|
19517
|
+
|
|
19518
|
+
if (request.credentials === 'include') {
|
|
19519
|
+
xhr.withCredentials = true;
|
|
19520
|
+
} else if (request.credentials === 'omit') {
|
|
19521
|
+
xhr.withCredentials = false;
|
|
19522
|
+
}
|
|
19523
|
+
|
|
19524
|
+
if ('responseType' in xhr && support.blob) {
|
|
19525
|
+
xhr.responseType = 'blob';
|
|
19526
|
+
}
|
|
19527
|
+
|
|
19528
|
+
request.headers.forEach(function(value, name) {
|
|
19529
|
+
xhr.setRequestHeader(name, value);
|
|
19530
|
+
});
|
|
19531
|
+
|
|
19532
|
+
if (request.signal) {
|
|
19533
|
+
request.signal.addEventListener('abort', abortXhr);
|
|
19534
|
+
|
|
19535
|
+
xhr.onreadystatechange = function() {
|
|
19536
|
+
// DONE (success or failure)
|
|
19537
|
+
if (xhr.readyState === 4) {
|
|
19538
|
+
request.signal.removeEventListener('abort', abortXhr);
|
|
19539
|
+
}
|
|
19540
|
+
};
|
|
19541
|
+
}
|
|
19542
|
+
|
|
19543
|
+
xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);
|
|
19544
|
+
})
|
|
19545
|
+
}
|
|
19546
|
+
|
|
19547
|
+
fetch.polyfill = true;
|
|
19548
|
+
|
|
19549
|
+
if (!self.fetch) {
|
|
19550
|
+
self.fetch = fetch;
|
|
19551
|
+
self.Headers = Headers;
|
|
19552
|
+
self.Request = Request;
|
|
19553
|
+
self.Response = Response;
|
|
19554
|
+
}
|
|
19555
|
+
|
|
19556
|
+
exports.Headers = Headers;
|
|
19557
|
+
exports.Request = Request;
|
|
19558
|
+
exports.Response = Response;
|
|
19559
|
+
exports.fetch = fetch;
|
|
19560
|
+
|
|
19561
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
19562
|
+
|
|
19563
|
+
return exports;
|
|
19564
|
+
|
|
19565
|
+
})({});
|
|
19566
|
+
})(__self__);
|
|
19567
|
+
__self__.fetch.ponyfill = true;
|
|
19568
|
+
// Remove "polyfill" property added by whatwg-fetch
|
|
19569
|
+
delete __self__.fetch.polyfill;
|
|
19570
|
+
// Choose between native implementation (global) or custom implementation (__self__)
|
|
19571
|
+
// var ctx = global.fetch ? global : __self__;
|
|
19572
|
+
var ctx = __self__; // this line disable service worker support temporarily
|
|
19573
|
+
exports = ctx.fetch // To enable: import fetch from 'cross-fetch'
|
|
19574
|
+
exports["default"] = ctx.fetch // For TypeScript consumers without esModuleInterop.
|
|
19575
|
+
exports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'
|
|
19576
|
+
exports.Headers = ctx.Headers
|
|
19577
|
+
exports.Request = ctx.Request
|
|
19578
|
+
exports.Response = ctx.Response
|
|
19579
|
+
module.exports = exports
|
|
19580
|
+
|
|
19581
|
+
|
|
19018
19582
|
/***/ }),
|
|
19019
19583
|
|
|
19020
19584
|
/***/ "../../common/temp/node_modules/.pnpm/deep-assign@2.0.0/node_modules/deep-assign/index.js":
|
|
@@ -20910,8 +21474,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20910
21474
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20911
21475
|
/* harmony export */ "default": () => (/* binding */ Browser)
|
|
20912
21476
|
/* harmony export */ });
|
|
20913
|
-
/* 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.
|
|
20914
|
-
/* 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.
|
|
21477
|
+
/* 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");
|
|
21478
|
+
/* 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");
|
|
20915
21479
|
|
|
20916
21480
|
|
|
20917
21481
|
|
|
@@ -21334,235 +21898,6 @@ Browser.type = 'languageDetector';
|
|
|
21334
21898
|
|
|
21335
21899
|
|
|
21336
21900
|
|
|
21337
|
-
/***/ }),
|
|
21338
|
-
|
|
21339
|
-
/***/ "../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js":
|
|
21340
|
-
/*!*************************************************************************************************************************************!*\
|
|
21341
|
-
!*** ../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js ***!
|
|
21342
|
-
\*************************************************************************************************************************************/
|
|
21343
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
21344
|
-
|
|
21345
|
-
"use strict";
|
|
21346
|
-
__webpack_require__.r(__webpack_exports__);
|
|
21347
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21348
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
21349
|
-
/* harmony export */ });
|
|
21350
|
-
/* 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");
|
|
21351
|
-
/* 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");
|
|
21352
|
-
/* 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");
|
|
21353
|
-
/* 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");
|
|
21354
|
-
|
|
21355
|
-
|
|
21356
|
-
|
|
21357
|
-
|
|
21358
|
-
|
|
21359
|
-
var arr = [];
|
|
21360
|
-
var each = arr.forEach;
|
|
21361
|
-
var slice = arr.slice;
|
|
21362
|
-
function defaults(obj) {
|
|
21363
|
-
each.call(slice.call(arguments, 1), function (source) {
|
|
21364
|
-
if (source) {
|
|
21365
|
-
for (var prop in source) {
|
|
21366
|
-
if (obj[prop] === undefined) obj[prop] = source[prop];
|
|
21367
|
-
}
|
|
21368
|
-
}
|
|
21369
|
-
});
|
|
21370
|
-
return obj;
|
|
21371
|
-
}
|
|
21372
|
-
|
|
21373
|
-
function addQueryString(url, params) {
|
|
21374
|
-
if (params && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(params) === 'object') {
|
|
21375
|
-
var queryString = '',
|
|
21376
|
-
e = encodeURIComponent; // Must encode data
|
|
21377
|
-
|
|
21378
|
-
for (var paramName in params) {
|
|
21379
|
-
queryString += '&' + e(paramName) + '=' + e(params[paramName]);
|
|
21380
|
-
}
|
|
21381
|
-
|
|
21382
|
-
if (!queryString) {
|
|
21383
|
-
return url;
|
|
21384
|
-
}
|
|
21385
|
-
|
|
21386
|
-
url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
|
|
21387
|
-
}
|
|
21388
|
-
|
|
21389
|
-
return url;
|
|
21390
|
-
} // https://gist.github.com/Xeoncross/7663273
|
|
21391
|
-
|
|
21392
|
-
|
|
21393
|
-
function ajax(url, options, callback, data, cache) {
|
|
21394
|
-
if (data && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(data) === 'object') {
|
|
21395
|
-
if (!cache) {
|
|
21396
|
-
data['_t'] = new Date();
|
|
21397
|
-
} // URL encoded form data must be in querystring format
|
|
21398
|
-
|
|
21399
|
-
|
|
21400
|
-
data = addQueryString('', data).slice(1);
|
|
21401
|
-
}
|
|
21402
|
-
|
|
21403
|
-
if (options.queryStringParams) {
|
|
21404
|
-
url = addQueryString(url, options.queryStringParams);
|
|
21405
|
-
}
|
|
21406
|
-
|
|
21407
|
-
try {
|
|
21408
|
-
var x;
|
|
21409
|
-
|
|
21410
|
-
if (XMLHttpRequest) {
|
|
21411
|
-
x = new XMLHttpRequest();
|
|
21412
|
-
} else {
|
|
21413
|
-
x = new ActiveXObject('MSXML2.XMLHTTP.3.0');
|
|
21414
|
-
}
|
|
21415
|
-
|
|
21416
|
-
x.open(data ? 'POST' : 'GET', url, 1);
|
|
21417
|
-
|
|
21418
|
-
if (!options.crossDomain) {
|
|
21419
|
-
x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
|
21420
|
-
}
|
|
21421
|
-
|
|
21422
|
-
x.withCredentials = !!options.withCredentials;
|
|
21423
|
-
|
|
21424
|
-
if (data) {
|
|
21425
|
-
x.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
|
21426
|
-
}
|
|
21427
|
-
|
|
21428
|
-
if (x.overrideMimeType) {
|
|
21429
|
-
x.overrideMimeType("application/json");
|
|
21430
|
-
}
|
|
21431
|
-
|
|
21432
|
-
var h = options.customHeaders;
|
|
21433
|
-
h = typeof h === 'function' ? h() : h;
|
|
21434
|
-
|
|
21435
|
-
if (h) {
|
|
21436
|
-
for (var i in h) {
|
|
21437
|
-
x.setRequestHeader(i, h[i]);
|
|
21438
|
-
}
|
|
21439
|
-
}
|
|
21440
|
-
|
|
21441
|
-
x.onreadystatechange = function () {
|
|
21442
|
-
x.readyState > 3 && callback && callback(x.responseText, x);
|
|
21443
|
-
};
|
|
21444
|
-
|
|
21445
|
-
x.send(data);
|
|
21446
|
-
} catch (e) {
|
|
21447
|
-
console && console.log(e);
|
|
21448
|
-
}
|
|
21449
|
-
}
|
|
21450
|
-
|
|
21451
|
-
function getDefaults() {
|
|
21452
|
-
return {
|
|
21453
|
-
loadPath: '/locales/{{lng}}/{{ns}}.json',
|
|
21454
|
-
addPath: '/locales/add/{{lng}}/{{ns}}',
|
|
21455
|
-
allowMultiLoading: false,
|
|
21456
|
-
parse: JSON.parse,
|
|
21457
|
-
parsePayload: function parsePayload(namespace, key, fallbackValue) {
|
|
21458
|
-
return (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, key, fallbackValue || '');
|
|
21459
|
-
},
|
|
21460
|
-
crossDomain: false,
|
|
21461
|
-
ajax: ajax
|
|
21462
|
-
};
|
|
21463
|
-
}
|
|
21464
|
-
|
|
21465
|
-
var Backend =
|
|
21466
|
-
/*#__PURE__*/
|
|
21467
|
-
function () {
|
|
21468
|
-
function Backend(services) {
|
|
21469
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
21470
|
-
|
|
21471
|
-
(0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, Backend);
|
|
21472
|
-
|
|
21473
|
-
this.init(services, options);
|
|
21474
|
-
this.type = 'backend';
|
|
21475
|
-
}
|
|
21476
|
-
|
|
21477
|
-
(0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Backend, [{
|
|
21478
|
-
key: "init",
|
|
21479
|
-
value: function init(services) {
|
|
21480
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
21481
|
-
this.services = services;
|
|
21482
|
-
this.options = defaults(options, this.options || {}, getDefaults());
|
|
21483
|
-
}
|
|
21484
|
-
}, {
|
|
21485
|
-
key: "readMulti",
|
|
21486
|
-
value: function readMulti(languages, namespaces, callback) {
|
|
21487
|
-
var loadPath = this.options.loadPath;
|
|
21488
|
-
|
|
21489
|
-
if (typeof this.options.loadPath === 'function') {
|
|
21490
|
-
loadPath = this.options.loadPath(languages, namespaces);
|
|
21491
|
-
}
|
|
21492
|
-
|
|
21493
|
-
var url = this.services.interpolator.interpolate(loadPath, {
|
|
21494
|
-
lng: languages.join('+'),
|
|
21495
|
-
ns: namespaces.join('+')
|
|
21496
|
-
});
|
|
21497
|
-
this.loadUrl(url, callback);
|
|
21498
|
-
}
|
|
21499
|
-
}, {
|
|
21500
|
-
key: "read",
|
|
21501
|
-
value: function read(language, namespace, callback) {
|
|
21502
|
-
var loadPath = this.options.loadPath;
|
|
21503
|
-
|
|
21504
|
-
if (typeof this.options.loadPath === 'function') {
|
|
21505
|
-
loadPath = this.options.loadPath([language], [namespace]);
|
|
21506
|
-
}
|
|
21507
|
-
|
|
21508
|
-
var url = this.services.interpolator.interpolate(loadPath, {
|
|
21509
|
-
lng: language,
|
|
21510
|
-
ns: namespace
|
|
21511
|
-
});
|
|
21512
|
-
this.loadUrl(url, callback);
|
|
21513
|
-
}
|
|
21514
|
-
}, {
|
|
21515
|
-
key: "loadUrl",
|
|
21516
|
-
value: function loadUrl(url, callback) {
|
|
21517
|
-
var _this = this;
|
|
21518
|
-
|
|
21519
|
-
this.options.ajax(url, this.options, function (data, xhr) {
|
|
21520
|
-
if (xhr.status >= 500 && xhr.status < 600) return callback('failed loading ' + url, true
|
|
21521
|
-
/* retry */
|
|
21522
|
-
);
|
|
21523
|
-
if (xhr.status >= 400 && xhr.status < 500) return callback('failed loading ' + url, false
|
|
21524
|
-
/* no retry */
|
|
21525
|
-
);
|
|
21526
|
-
var ret, err;
|
|
21527
|
-
|
|
21528
|
-
try {
|
|
21529
|
-
ret = _this.options.parse(data, url);
|
|
21530
|
-
} catch (e) {
|
|
21531
|
-
err = 'failed parsing ' + url + ' to json';
|
|
21532
|
-
}
|
|
21533
|
-
|
|
21534
|
-
if (err) return callback(err, false);
|
|
21535
|
-
callback(null, ret);
|
|
21536
|
-
});
|
|
21537
|
-
}
|
|
21538
|
-
}, {
|
|
21539
|
-
key: "create",
|
|
21540
|
-
value: function create(languages, namespace, key, fallbackValue) {
|
|
21541
|
-
var _this2 = this;
|
|
21542
|
-
|
|
21543
|
-
if (typeof languages === 'string') languages = [languages];
|
|
21544
|
-
var payload = this.options.parsePayload(namespace, key, fallbackValue);
|
|
21545
|
-
languages.forEach(function (lng) {
|
|
21546
|
-
var url = _this2.services.interpolator.interpolate(_this2.options.addPath, {
|
|
21547
|
-
lng: lng,
|
|
21548
|
-
ns: namespace
|
|
21549
|
-
});
|
|
21550
|
-
|
|
21551
|
-
_this2.options.ajax(url, _this2.options, function (data, xhr) {//const statusCode = xhr.status.toString();
|
|
21552
|
-
// TODO: if statusCode === 4xx do log
|
|
21553
|
-
}, payload);
|
|
21554
|
-
});
|
|
21555
|
-
}
|
|
21556
|
-
}]);
|
|
21557
|
-
|
|
21558
|
-
return Backend;
|
|
21559
|
-
}();
|
|
21560
|
-
|
|
21561
|
-
Backend.type = 'backend';
|
|
21562
|
-
|
|
21563
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
|
|
21564
|
-
|
|
21565
|
-
|
|
21566
21901
|
/***/ }),
|
|
21567
21902
|
|
|
21568
21903
|
/***/ "../../common/temp/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js":
|
|
@@ -61778,20 +62113,20 @@ var AmbientOcclusion;
|
|
|
61778
62113
|
static fromJSON(json) { return undefined !== json ? new Settings(json) : this.defaults; }
|
|
61779
62114
|
toJSON() {
|
|
61780
62115
|
return {
|
|
61781
|
-
bias: this.bias,
|
|
61782
|
-
zLengthCap: this.zLengthCap,
|
|
61783
|
-
maxDistance: this.maxDistance,
|
|
61784
|
-
intensity: this.intensity,
|
|
61785
|
-
texelStepSize: this.texelStepSize,
|
|
61786
|
-
blurDelta: this.blurDelta,
|
|
61787
|
-
blurSigma: this.blurSigma,
|
|
61788
|
-
blurTexelStepSize: this.blurTexelStepSize,
|
|
62116
|
+
bias: this.bias !== Settings._defaultBias ? this.bias : undefined,
|
|
62117
|
+
zLengthCap: this.zLengthCap !== Settings._defaultZLengthCap ? this.zLengthCap : undefined,
|
|
62118
|
+
maxDistance: this.maxDistance !== Settings._defaultMaxDistance ? this.maxDistance : undefined,
|
|
62119
|
+
intensity: this.intensity !== Settings._defaultIntensity ? this.intensity : undefined,
|
|
62120
|
+
texelStepSize: this.texelStepSize !== Settings._defaultTexelStepSize ? this.texelStepSize : undefined,
|
|
62121
|
+
blurDelta: this.blurDelta !== Settings._defaultBlurDelta ? this.blurDelta : undefined,
|
|
62122
|
+
blurSigma: this.blurSigma !== Settings._defaultBlurSigma ? this.blurSigma : undefined,
|
|
62123
|
+
blurTexelStepSize: this.blurTexelStepSize !== Settings._defaultBlurTexelStepSize ? this.blurTexelStepSize : undefined,
|
|
61789
62124
|
};
|
|
61790
62125
|
}
|
|
61791
62126
|
}
|
|
61792
62127
|
Settings._defaultBias = 0.25;
|
|
61793
62128
|
Settings._defaultZLengthCap = 0.0025;
|
|
61794
|
-
Settings._defaultMaxDistance =
|
|
62129
|
+
Settings._defaultMaxDistance = 10000.0;
|
|
61795
62130
|
Settings._defaultIntensity = 1.0;
|
|
61796
62131
|
Settings._defaultTexelStepSize = 1;
|
|
61797
62132
|
Settings._defaultBlurDelta = 1.0;
|
|
@@ -68596,13 +68931,21 @@ var Gradient;
|
|
|
68596
68931
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== imageBuffer);
|
|
68597
68932
|
return imageBuffer;
|
|
68598
68933
|
}
|
|
68599
|
-
/**
|
|
68934
|
+
/** Produces a bitmap image from this gradient.
|
|
68935
|
+
* @param width Width of the image
|
|
68936
|
+
* @param height Height of the image
|
|
68937
|
+
* @note If this gradient uses [[Gradient.Mode.Thematic]], then the width of the image will be 1 and the margin color will be included in the top and bottom rows.
|
|
68938
|
+
* @see [[produceImage]] for more customization.
|
|
68939
|
+
*/
|
|
68600
68940
|
getImage(width, height) {
|
|
68601
|
-
if (this.mode === Mode.Thematic)
|
|
68602
|
-
|
|
68603
|
-
|
|
68604
|
-
|
|
68605
|
-
|
|
68941
|
+
if (this.mode === Mode.Thematic)
|
|
68942
|
+
width = 1;
|
|
68943
|
+
return this.produceImage({ width, height, includeThematicMargin: true });
|
|
68944
|
+
}
|
|
68945
|
+
/** Produces a bitmap image from this gradient. */
|
|
68946
|
+
produceImage(args) {
|
|
68947
|
+
var _a;
|
|
68948
|
+
const { width, height, includeThematicMargin } = { ...args };
|
|
68606
68949
|
const thisAngle = (this.angle === undefined) ? 0 : this.angle.radians;
|
|
68607
68950
|
const cosA = Math.cos(thisAngle);
|
|
68608
68951
|
const sinA = Math.sin(thisAngle);
|
|
@@ -68708,14 +69051,11 @@ var Gradient;
|
|
|
68708
69051
|
break;
|
|
68709
69052
|
}
|
|
68710
69053
|
case Mode.Thematic: {
|
|
68711
|
-
|
|
68712
|
-
if (settings === undefined) {
|
|
68713
|
-
settings = _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.defaults;
|
|
68714
|
-
}
|
|
69054
|
+
const settings = (_a = this.thematicSettings) !== null && _a !== void 0 ? _a : _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.defaults;
|
|
68715
69055
|
for (let j = 0; j < height; j++) {
|
|
68716
69056
|
let f = 1 - j / height;
|
|
68717
69057
|
let color;
|
|
68718
|
-
if (f < _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin || f > _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentMax) {
|
|
69058
|
+
if (includeThematicMargin && (f < _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.margin || f > _ThematicDisplay__WEBPACK_IMPORTED_MODULE_4__.ThematicGradientSettings.contentMax)) {
|
|
68719
69059
|
color = settings.marginColor;
|
|
68720
69060
|
}
|
|
68721
69061
|
else {
|
|
@@ -86460,6 +86800,7 @@ class IpcWebSocketBackend extends IpcWebSocket {
|
|
|
86460
86800
|
constructor() {
|
|
86461
86801
|
super();
|
|
86462
86802
|
this._handlers = new Map();
|
|
86803
|
+
this._processingQueue = [];
|
|
86463
86804
|
IpcWebSocket.receivers.add(async (e, m) => this.dispatch(e, m));
|
|
86464
86805
|
}
|
|
86465
86806
|
send(channel, ...data) {
|
|
@@ -86473,22 +86814,35 @@ class IpcWebSocketBackend extends IpcWebSocket {
|
|
|
86473
86814
|
};
|
|
86474
86815
|
}
|
|
86475
86816
|
async dispatch(_evt, message) {
|
|
86476
|
-
if (message.type !== IpcWebSocketMessageType.Invoke
|
|
86817
|
+
if (message.type !== IpcWebSocketMessageType.Invoke)
|
|
86477
86818
|
return;
|
|
86478
|
-
|
|
86479
|
-
|
|
86819
|
+
this._processingQueue.push(message);
|
|
86820
|
+
await this.processMessages();
|
|
86821
|
+
}
|
|
86822
|
+
async processMessages() {
|
|
86823
|
+
if (this._processing || !this._processingQueue.length) {
|
|
86480
86824
|
return;
|
|
86481
|
-
|
|
86482
|
-
|
|
86483
|
-
|
|
86484
|
-
|
|
86485
|
-
|
|
86486
|
-
|
|
86487
|
-
|
|
86488
|
-
|
|
86489
|
-
|
|
86490
|
-
|
|
86491
|
-
|
|
86825
|
+
}
|
|
86826
|
+
const message = this._processingQueue.shift();
|
|
86827
|
+
if (message && message.method) {
|
|
86828
|
+
const handler = this._handlers.get(message.channel);
|
|
86829
|
+
if (handler) {
|
|
86830
|
+
this._processing = message;
|
|
86831
|
+
let args = message.data;
|
|
86832
|
+
if (typeof (args) === "undefined")
|
|
86833
|
+
args = [];
|
|
86834
|
+
const response = await handler({}, message.method, ...args);
|
|
86835
|
+
IpcWebSocket.transport.send({
|
|
86836
|
+
type: IpcWebSocketMessageType.Response,
|
|
86837
|
+
channel: message.channel,
|
|
86838
|
+
response: message.request,
|
|
86839
|
+
data: response,
|
|
86840
|
+
sequence: -1,
|
|
86841
|
+
});
|
|
86842
|
+
this._processing = undefined;
|
|
86843
|
+
}
|
|
86844
|
+
}
|
|
86845
|
+
await this.processMessages();
|
|
86492
86846
|
}
|
|
86493
86847
|
}
|
|
86494
86848
|
|
|
@@ -86783,6 +87137,7 @@ class IModelReadRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_2__.
|
|
|
86783
87137
|
===========================================================================================*/
|
|
86784
87138
|
async getConnectionProps(_iModelToken) { return this.forward(arguments); }
|
|
86785
87139
|
async queryRows(_iModelToken, _request) { return this.forward(arguments); }
|
|
87140
|
+
async querySubCategories(_iModelToken, _categoryIds) { return this.forward(arguments); }
|
|
86786
87141
|
async queryBlob(_iModelToken, _request) { return this.forward(arguments); }
|
|
86787
87142
|
async getModelProps(_iModelToken, _modelIds) { return this.forward(arguments); }
|
|
86788
87143
|
async queryModelRanges(_iModelToken, _modelIds) { return this.forward(arguments); }
|
|
@@ -86820,6 +87175,9 @@ IModelReadRpcInterface.interfaceVersion = "3.2.0";
|
|
|
86820
87175
|
__decorate([
|
|
86821
87176
|
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
|
|
86822
87177
|
], IModelReadRpcInterface.prototype, "getConnectionProps", null);
|
|
87178
|
+
__decorate([
|
|
87179
|
+
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
|
|
87180
|
+
], IModelReadRpcInterface.prototype, "querySubCategories", null);
|
|
86823
87181
|
__decorate([
|
|
86824
87182
|
_core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
|
|
86825
87183
|
], IModelReadRpcInterface.prototype, "getModelProps", null);
|
|
@@ -112693,6 +113051,15 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
112693
113051
|
};
|
|
112694
113052
|
return new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ECSqlReader(executor, ecsql, params, config);
|
|
112695
113053
|
}
|
|
113054
|
+
/**
|
|
113055
|
+
* queries the BisCore.SubCategory table for the entries that are children of the passed categoryIds
|
|
113056
|
+
* @param compressedCategoryIds compressed category Ids
|
|
113057
|
+
* @returns array of SubCategoryResultRow
|
|
113058
|
+
* @internal
|
|
113059
|
+
*/
|
|
113060
|
+
async querySubCategories(compressedCategoryIds) {
|
|
113061
|
+
return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).querySubCategories(this.getRpcProps(), compressedCategoryIds);
|
|
113062
|
+
}
|
|
112696
113063
|
/** Execute a query and stream its results
|
|
112697
113064
|
* 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.
|
|
112698
113065
|
* [ECSQL row]($docs/learning/ECSQLRowFormat).
|
|
@@ -115887,29 +116254,73 @@ class PerModelCategoryVisibilityOverrides extends _itwin_core_bentley__WEBPACK_I
|
|
|
115887
116254
|
else
|
|
115888
116255
|
return PerModelCategoryVisibility.Override.None;
|
|
115889
116256
|
}
|
|
115890
|
-
|
|
116257
|
+
/**
|
|
116258
|
+
* set the overrides for multiple perModelCategoryVisibility props, loading categoryIds from the iModel if necessary.
|
|
116259
|
+
* @see [[PerModelCategoryVisibility]]
|
|
116260
|
+
* @param perModelCategoryVisibility array of model category visibility overrides @see [[PerModelCategoryVisibility.Props]]
|
|
116261
|
+
* @param iModel Optional param iModel. If no iModel is provided, then the iModel associated with the viewport (used to construct this class) is used.
|
|
116262
|
+
* 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
|
|
116263
|
+
* is populated as opposed to the iModel associated with the viewport which may or may not be an empty iModel.
|
|
116264
|
+
* @returns a promise that resolves once the overrides have been applied.
|
|
116265
|
+
*/
|
|
116266
|
+
async setOverrides(perModelCategoryVisibility, iModel) {
|
|
116267
|
+
let anyChanged = false;
|
|
116268
|
+
const catIdsToLoad = [];
|
|
116269
|
+
const iModelToUse = iModel ? iModel : this._vp.iModel;
|
|
116270
|
+
for (const override of perModelCategoryVisibility) {
|
|
116271
|
+
const modelId = override.modelId;
|
|
116272
|
+
// The caller may pass a single categoryId as a string, if we don't convert this to an array we will iterate
|
|
116273
|
+
// over each individual character of that string, which is not the desired behavior.
|
|
116274
|
+
const categoryIds = typeof override.categoryIds === "string" ? [override.categoryIds] : override.categoryIds;
|
|
116275
|
+
const visOverride = override.visOverride;
|
|
116276
|
+
for (const categoryId of categoryIds) {
|
|
116277
|
+
if (this.findAndUpdateOverrideInArray(modelId, categoryId, visOverride)) {
|
|
116278
|
+
anyChanged = true;
|
|
116279
|
+
if (PerModelCategoryVisibility.Override.None !== visOverride) {
|
|
116280
|
+
catIdsToLoad.push(categoryId);
|
|
116281
|
+
}
|
|
116282
|
+
}
|
|
116283
|
+
}
|
|
116284
|
+
}
|
|
116285
|
+
if (anyChanged) {
|
|
116286
|
+
this._vp.setViewedCategoriesPerModelChanged();
|
|
116287
|
+
if (catIdsToLoad.length !== 0) {
|
|
116288
|
+
this._vp.subcategories.push(iModelToUse.subcategories, catIdsToLoad, () => this._vp.setViewedCategoriesPerModelChanged());
|
|
116289
|
+
}
|
|
116290
|
+
}
|
|
116291
|
+
return;
|
|
116292
|
+
}
|
|
116293
|
+
/** Find and update the override in the array of overrides. If override not found, adds it to the array.
|
|
116294
|
+
* If the array was changed, returns true. */
|
|
116295
|
+
findAndUpdateOverrideInArray(modelId, categoryId, override) {
|
|
115891
116296
|
const ovr = this._scratch;
|
|
116297
|
+
ovr.reset(modelId, categoryId, false);
|
|
116298
|
+
let changed = false;
|
|
116299
|
+
const index = this.indexOf(ovr);
|
|
116300
|
+
if (-1 === index) {
|
|
116301
|
+
if (PerModelCategoryVisibility.Override.None !== override) {
|
|
116302
|
+
this.insert(new PerModelCategoryVisibilityOverride(modelId, categoryId, PerModelCategoryVisibility.Override.Show === override));
|
|
116303
|
+
changed = true;
|
|
116304
|
+
}
|
|
116305
|
+
}
|
|
116306
|
+
else {
|
|
116307
|
+
if (PerModelCategoryVisibility.Override.None === override) {
|
|
116308
|
+
this._array.splice(index, 1);
|
|
116309
|
+
changed = true;
|
|
116310
|
+
}
|
|
116311
|
+
else if (this._array[index].visible !== (PerModelCategoryVisibility.Override.Show === override)) {
|
|
116312
|
+
this._array[index].visible = (PerModelCategoryVisibility.Override.Show === override);
|
|
116313
|
+
changed = true;
|
|
116314
|
+
}
|
|
116315
|
+
}
|
|
116316
|
+
return changed;
|
|
116317
|
+
}
|
|
116318
|
+
setOverride(modelIds, categoryIds, override) {
|
|
115892
116319
|
let changed = false;
|
|
115893
116320
|
for (const modelId of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.iterable(modelIds)) {
|
|
115894
116321
|
for (const categoryId of _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.iterable(categoryIds)) {
|
|
115895
|
-
|
|
115896
|
-
|
|
115897
|
-
if (-1 === index) {
|
|
115898
|
-
if (PerModelCategoryVisibility.Override.None !== override) {
|
|
115899
|
-
this.insert(new PerModelCategoryVisibilityOverride(modelId, categoryId, PerModelCategoryVisibility.Override.Show === override));
|
|
115900
|
-
changed = true;
|
|
115901
|
-
}
|
|
115902
|
-
}
|
|
115903
|
-
else {
|
|
115904
|
-
if (PerModelCategoryVisibility.Override.None === override) {
|
|
115905
|
-
this._array.splice(index, 1);
|
|
115906
|
-
changed = true;
|
|
115907
|
-
}
|
|
115908
|
-
else if (this._array[index].visible !== (PerModelCategoryVisibility.Override.Show === override)) {
|
|
115909
|
-
this._array[index].visible = (PerModelCategoryVisibility.Override.Show === override);
|
|
115910
|
-
changed = true;
|
|
115911
|
-
}
|
|
115912
|
-
}
|
|
116322
|
+
if (this.findAndUpdateOverrideInArray(modelId, categoryId, override))
|
|
116323
|
+
changed = true;
|
|
115913
116324
|
}
|
|
115914
116325
|
}
|
|
115915
116326
|
if (changed) {
|
|
@@ -118529,29 +118940,6 @@ class SubCategoriesCache {
|
|
|
118529
118940
|
cancel: () => request.cancel(),
|
|
118530
118941
|
};
|
|
118531
118942
|
}
|
|
118532
|
-
/**
|
|
118533
|
-
* Populates the notLoadedCategoryIds property of the HydrateViewStateRequestProps.
|
|
118534
|
-
* notLoadedCategoryIds is a subset of categoryIds, filtering out any ids which already have an entry in the cache.
|
|
118535
|
-
*/
|
|
118536
|
-
preload(options, categoryIds) {
|
|
118537
|
-
const missing = this.getMissing(categoryIds);
|
|
118538
|
-
if (undefined === missing)
|
|
118539
|
-
return;
|
|
118540
|
-
this._missingAtTimeOfPreload = missing;
|
|
118541
|
-
options.notLoadedCategoryIds = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.sortAndCompress(missing);
|
|
118542
|
-
}
|
|
118543
|
-
/**
|
|
118544
|
-
* Populates the SubCategoriesCache using the categoryIdsResult of the HydrateViewStateResponseProps
|
|
118545
|
-
*/
|
|
118546
|
-
postload(options) {
|
|
118547
|
-
if (options.categoryIdsResult === undefined)
|
|
118548
|
-
return;
|
|
118549
|
-
// missingAtTimeOfPreload shouldn't be undefined if options.categoryIdsResult is defined... but just to be safe we'll check
|
|
118550
|
-
const missing = this._missingAtTimeOfPreload === undefined ? new Set() : this._missingAtTimeOfPreload;
|
|
118551
|
-
this.processResults(options.categoryIdsResult, missing);
|
|
118552
|
-
// clear missing
|
|
118553
|
-
this._missingAtTimeOfPreload = undefined;
|
|
118554
|
-
}
|
|
118555
118943
|
/** Given categoryIds, return which of these are not cached. */
|
|
118556
118944
|
getMissing(categoryIds) {
|
|
118557
118945
|
let missing;
|
|
@@ -118633,38 +119021,38 @@ class SubCategoriesCache {
|
|
|
118633
119021
|
(function (SubCategoriesCache) {
|
|
118634
119022
|
class Request {
|
|
118635
119023
|
constructor(categoryIds, imodel, maxCategoriesPerQuery = 200) {
|
|
118636
|
-
this.
|
|
119024
|
+
this._categoryIds = [];
|
|
118637
119025
|
this._result = [];
|
|
118638
119026
|
this._canceled = false;
|
|
118639
|
-
this.
|
|
119027
|
+
this._curCategoryIdsIndex = 0;
|
|
118640
119028
|
this._imodel = imodel;
|
|
118641
119029
|
const catIds = [...categoryIds];
|
|
119030
|
+
_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.
|
|
118642
119031
|
while (catIds.length !== 0) {
|
|
118643
119032
|
const end = (catIds.length > maxCategoriesPerQuery) ? maxCategoriesPerQuery : catIds.length;
|
|
118644
|
-
const
|
|
118645
|
-
this.
|
|
119033
|
+
const compressedIds = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.compressArray(catIds.splice(0, end));
|
|
119034
|
+
this._categoryIds.push(compressedIds);
|
|
118646
119035
|
}
|
|
118647
119036
|
}
|
|
118648
119037
|
get wasCanceled() { return this._canceled || this._imodel.isClosed; }
|
|
118649
119038
|
cancel() { this._canceled = true; }
|
|
118650
119039
|
async dispatch() {
|
|
118651
|
-
if (this.wasCanceled || this.
|
|
119040
|
+
if (this.wasCanceled || this._curCategoryIdsIndex >= this._categoryIds.length) // handle case of empty category Id set...
|
|
118652
119041
|
return undefined;
|
|
118653
119042
|
try {
|
|
118654
|
-
const
|
|
118655
|
-
|
|
118656
|
-
|
|
118657
|
-
|
|
118658
|
-
|
|
118659
|
-
}
|
|
119043
|
+
const catIds = this._categoryIds[this._curCategoryIdsIndex];
|
|
119044
|
+
const result = await this._imodel.querySubCategories(catIds);
|
|
119045
|
+
this._result.push(...result);
|
|
119046
|
+
if (this.wasCanceled)
|
|
119047
|
+
return undefined;
|
|
118660
119048
|
}
|
|
118661
119049
|
catch {
|
|
118662
119050
|
// ###TODO: detect cases in which retry is warranted
|
|
118663
119051
|
// Note that currently, if we succeed in obtaining some pages of results and fail to retrieve another page, we will end up processing the
|
|
118664
119052
|
// incomplete results. Since we're not retrying, that's the best we can do.
|
|
118665
119053
|
}
|
|
118666
|
-
// Finished with current
|
|
118667
|
-
if (++this.
|
|
119054
|
+
// Finished with current batch of categoryIds. Dispatch the next batch if one exists.
|
|
119055
|
+
if (++this._curCategoryIdsIndex < this._categoryIds.length) {
|
|
118668
119056
|
if (this.wasCanceled)
|
|
118669
119057
|
return undefined;
|
|
118670
119058
|
else
|
|
@@ -118739,7 +119127,7 @@ class SubCategoriesCache {
|
|
|
118739
119127
|
this._request.promise.then((completed) => {
|
|
118740
119128
|
if (this._disposed)
|
|
118741
119129
|
return;
|
|
118742
|
-
// Invoke all the functions which were awaiting this set of
|
|
119130
|
+
// Invoke all the functions which were awaiting this set of IModelConnection.Categories.
|
|
118743
119131
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(undefined !== this._current);
|
|
118744
119132
|
if (completed)
|
|
118745
119133
|
for (const func of this._current.funcs)
|
|
@@ -121312,7 +121700,6 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
121312
121700
|
const acsId = this.getAuxiliaryCoordinateSystemId();
|
|
121313
121701
|
if (_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.isValid(acsId))
|
|
121314
121702
|
hydrateRequest.acsId = acsId;
|
|
121315
|
-
this.iModel.subcategories.preload(hydrateRequest, this.categorySelector.categories);
|
|
121316
121703
|
}
|
|
121317
121704
|
/** Asynchronously load any required data for this ViewState from the backend.
|
|
121318
121705
|
* FINAL, No subclass should override load. If additional load behavior is needed, see preload and postload.
|
|
@@ -121327,15 +121714,16 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
121327
121714
|
const hydrateRequest = {};
|
|
121328
121715
|
this.preload(hydrateRequest);
|
|
121329
121716
|
const promises = [
|
|
121330
|
-
_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.IModelReadRpcInterface.getClientForRouting(this.iModel.routingContext.token).hydrateViewState(this.iModel.getRpcProps(), hydrateRequest)
|
|
121717
|
+
_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.IModelReadRpcInterface.getClientForRouting(this.iModel.routingContext.token).hydrateViewState(this.iModel.getRpcProps(), hydrateRequest).
|
|
121718
|
+
then(async (hydrateResponse) => this.postload(hydrateResponse)),
|
|
121331
121719
|
this.displayStyle.load(),
|
|
121332
121720
|
];
|
|
121333
|
-
const
|
|
121334
|
-
|
|
121335
|
-
|
|
121721
|
+
const subcategories = this.iModel.subcategories.load(this.categorySelector.categories);
|
|
121722
|
+
if (undefined !== subcategories)
|
|
121723
|
+
promises.push(subcategories.promise.then((_) => { }));
|
|
121724
|
+
await Promise.all(promises);
|
|
121336
121725
|
}
|
|
121337
121726
|
async postload(hydrateResponse) {
|
|
121338
|
-
this.iModel.subcategories.postload(hydrateResponse);
|
|
121339
121727
|
if (hydrateResponse.acsElementProps)
|
|
121340
121728
|
this._auxCoordSystem = _AuxCoordSys__WEBPACK_IMPORTED_MODULE_3__.AuxCoordSystemState.fromProps(hydrateResponse.acsElementProps, this.iModel);
|
|
121341
121729
|
}
|
|
@@ -152703,7 +153091,15 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_7__.RenderSystem {
|
|
|
152703
153091
|
}
|
|
152704
153092
|
/** Attempt to create a texture using gradient symbology. */
|
|
152705
153093
|
getGradientTexture(symb, iModel) {
|
|
152706
|
-
|
|
153094
|
+
let width = 0x100;
|
|
153095
|
+
let height = 0x100;
|
|
153096
|
+
if (symb.mode === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Gradient.Mode.Thematic) {
|
|
153097
|
+
// Pixels in each row are identical, no point in having width > 1.
|
|
153098
|
+
width = 1;
|
|
153099
|
+
// We want maximum height to minimize bleeding of margin color.
|
|
153100
|
+
height = this.maxTextureSize;
|
|
153101
|
+
}
|
|
153102
|
+
const source = symb.produceImage({ width, height, includeThematicMargin: true });
|
|
152707
153103
|
return this.createTexture({
|
|
152708
153104
|
image: {
|
|
152709
153105
|
source,
|
|
@@ -156985,7 +157381,7 @@ const computeAmbientOcclusion = `
|
|
|
156985
157381
|
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.
|
|
156986
157382
|
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.
|
|
156987
157383
|
float intensity = u_hbaoSettings.z; // Raise the final occlusion to the power of this value. Larger values make the ambient shadows darker.
|
|
156988
|
-
float texelStepSize = u_hbaoSettings.w; // Indicates the distance to step toward the next texel sample in the current direction.
|
|
157384
|
+
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.
|
|
156989
157385
|
|
|
156990
157386
|
float tOcclusion = 0.0;
|
|
156991
157387
|
|
|
@@ -157030,6 +157426,9 @@ const computeAmbientOcclusion = `
|
|
|
157030
157426
|
tOcclusion += curOcclusion;
|
|
157031
157427
|
}
|
|
157032
157428
|
|
|
157429
|
+
float distanceFadeFactor = kFrustumType_Perspective == u_frustum.z ? 1.0 - pow(clamp(nonLinearDepth / u_maxDistance, 0.0, 1.0), 4.0) : 1.0;
|
|
157430
|
+
tOcclusion *= distanceFadeFactor;
|
|
157431
|
+
|
|
157033
157432
|
tOcclusion /= 4.0;
|
|
157034
157433
|
tOcclusion = 1.0 - clamp(tOcclusion, 0.0, 1.0);
|
|
157035
157434
|
tOcclusion = pow(tOcclusion, intensity);
|
|
@@ -197362,17 +197761,17 @@ class BSplineCurve3dBase extends _curve_CurvePrimitive__WEBPACK_IMPORTED_MODULE_
|
|
|
197362
197761
|
* @returns Returns a CurveLocationDetail structure that holds the details of the close point.
|
|
197363
197762
|
*/
|
|
197364
197763
|
closestPoint(spacePoint, _extend) {
|
|
197764
|
+
// seed at start point -- final point comes with final bezier perpendicular step.
|
|
197365
197765
|
const point = this.fractionToPoint(0);
|
|
197366
197766
|
const result = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveFractionPointDistance(this, 0.0, point, point.distance(spacePoint));
|
|
197367
|
-
this.fractionToPoint(1.0, point);
|
|
197368
|
-
result.updateIfCloserCurveFractionPointDistance(this, 1.0, point, spacePoint.distance(point));
|
|
197369
197767
|
let span;
|
|
197370
197768
|
const numSpans = this.numSpan;
|
|
197371
197769
|
for (let i = 0; i < numSpans; i++) {
|
|
197372
197770
|
if (this._bcurve.knots.isIndexOfRealSpan(i)) {
|
|
197373
197771
|
span = this.getSaturatedBezierSpan3dOr3dH(i, true, span);
|
|
197374
197772
|
if (span) {
|
|
197375
|
-
if
|
|
197773
|
+
// umm ... if the bspline is discontinuous, both ends should be tested. Ignore that possibility ...
|
|
197774
|
+
if (span.updateClosestPointByTruePerpendicular(spacePoint, result, false, true)) {
|
|
197376
197775
|
// the detail records the span bezier -- promote it to the parent curve . ..
|
|
197377
197776
|
result.curve = this;
|
|
197378
197777
|
result.fraction = span.fractionToParentFraction(result.fraction);
|
|
@@ -200822,7 +201221,7 @@ class BezierCurve3dH extends _BezierCurveBase__WEBPACK_IMPORTED_MODULE_0__.Bezie
|
|
|
200822
201221
|
* @param detail pre-allocated detail to record (evolving) closest point.
|
|
200823
201222
|
* @returns true if an updated occurred, false if either (a) no perpendicular projections or (b) perpendiculars were not closer.
|
|
200824
201223
|
*/
|
|
200825
|
-
updateClosestPointByTruePerpendicular(spacePoint, detail) {
|
|
201224
|
+
updateClosestPointByTruePerpendicular(spacePoint, detail, testAt0 = false, testAt1 = false) {
|
|
200826
201225
|
let numUpdates = 0;
|
|
200827
201226
|
let roots;
|
|
200828
201227
|
if (this.isUnitWeight()) {
|
|
@@ -200874,8 +201273,17 @@ class BezierCurve3dH extends _BezierCurveBase__WEBPACK_IMPORTED_MODULE_0__.Bezie
|
|
|
200874
201273
|
numUpdates += detail.updateIfCloserCurveFractionPointDistance(this, fraction, xyz, a) ? 1 : 0;
|
|
200875
201274
|
}
|
|
200876
201275
|
}
|
|
201276
|
+
if (testAt0)
|
|
201277
|
+
numUpdates += this.updateDetailAtFraction(detail, 0.0, spacePoint) ? 1 : 0;
|
|
201278
|
+
if (testAt1)
|
|
201279
|
+
numUpdates += this.updateDetailAtFraction(detail, 1.0, spacePoint) ? 1 : 0;
|
|
200877
201280
|
return numUpdates > 0;
|
|
200878
201281
|
}
|
|
201282
|
+
updateDetailAtFraction(detail, fraction, spacePoint) {
|
|
201283
|
+
const xyz = this.fractionToPoint(fraction);
|
|
201284
|
+
const a = xyz.distance(spacePoint);
|
|
201285
|
+
return detail.updateIfCloserCurveFractionPointDistance(this, fraction, xyz, a);
|
|
201286
|
+
}
|
|
200879
201287
|
/** Extend `rangeToExtend`, using candidate extrema at
|
|
200880
201288
|
* * both end points
|
|
200881
201289
|
* * any internal extrema in x,y,z
|
|
@@ -209572,6 +209980,7 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
|
|
|
209572
209980
|
const chainFraction = this.chainDistanceToChainFraction(chainDistance);
|
|
209573
209981
|
const chainDetail = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_7__.CurveLocationDetail.createCurveFractionPoint(this, chainFraction, childDetail.point);
|
|
209574
209982
|
chainDetail.childDetail = childDetail;
|
|
209983
|
+
chainDetail.a = childDetail.a;
|
|
209575
209984
|
return chainDetail;
|
|
209576
209985
|
}
|
|
209577
209986
|
return undefined;
|
|
@@ -239634,7 +240043,7 @@ class Ray3d {
|
|
|
239634
240043
|
result.direction.setStartEnd(origin, target);
|
|
239635
240044
|
return result;
|
|
239636
240045
|
}
|
|
239637
|
-
return new Ray3d(origin, _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createStartEnd(origin, target));
|
|
240046
|
+
return new Ray3d(origin.clone(), _Point3dVector3d__WEBPACK_IMPORTED_MODULE_0__.Vector3d.createStartEnd(origin, target));
|
|
239638
240047
|
}
|
|
239639
240048
|
/** Return a reference to the ray's origin. */
|
|
239640
240049
|
getOriginRef() { return this.origin; }
|
|
@@ -252841,7 +253250,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
252841
253250
|
* * Circular or elliptical pipe cross sections can be specified by supplying either a radius, a pair of semi-axis lengths, or a full Arc3d.
|
|
252842
253251
|
* * For semi-axis length input, x corresponds to an ellipse local axis nominally situated parallel to the xy-plane.
|
|
252843
253252
|
* * The center of Arc3d input is translated to the centerline start point to act as initial cross section.
|
|
252844
|
-
* @param centerline centerline of pipe
|
|
253253
|
+
* @param centerline centerline of pipe. If curved, it will be stroked using the builder's StrokeOptions.
|
|
252845
253254
|
* @param sectionData circle radius, ellipse semi-axis lengths, or full Arc3d
|
|
252846
253255
|
* @param numFacetAround how many equal parameter-space chords around each section
|
|
252847
253256
|
*/
|
|
@@ -252860,7 +253269,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
252860
253269
|
}
|
|
252861
253270
|
else if (centerline instanceof _curve_GeometryQuery__WEBPACK_IMPORTED_MODULE_32__.GeometryQuery) {
|
|
252862
253271
|
const linestring = _curve_LineString3d__WEBPACK_IMPORTED_MODULE_11__.LineString3d.create();
|
|
252863
|
-
centerline.emitStrokes(linestring);
|
|
253272
|
+
centerline.emitStrokes(linestring, this._options);
|
|
252864
253273
|
this.addMiteredPipesFromPoints(linestring.packedPoints, sectionData, numFacetAround);
|
|
252865
253274
|
}
|
|
252866
253275
|
}
|
|
@@ -263904,6 +264313,26 @@ class Sample {
|
|
|
263904
264313
|
}
|
|
263905
264314
|
return result;
|
|
263906
264315
|
}
|
|
264316
|
+
/** Create various orders of non-rational B-spline curves with helical poles */
|
|
264317
|
+
static createBsplineCurveHelices(radius, height, numTurns, numSamplesPerTurn) {
|
|
264318
|
+
const pts = [];
|
|
264319
|
+
const zDelta = (height / numTurns) / numSamplesPerTurn;
|
|
264320
|
+
const aDelta = 2 * Math.PI / numSamplesPerTurn;
|
|
264321
|
+
for (let iTurn = 0; iTurn < numTurns; ++iTurn) {
|
|
264322
|
+
for (let iSample = 0; iSample < numSamplesPerTurn; iSample++) {
|
|
264323
|
+
pts.push(_geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(radius * Math.cos(iSample * aDelta), radius * Math.sin(iSample * aDelta), pts.length * zDelta));
|
|
264324
|
+
}
|
|
264325
|
+
}
|
|
264326
|
+
const result = [];
|
|
264327
|
+
for (const order of [2, 3, 4, 9, 16, 25]) {
|
|
264328
|
+
if (order > pts.length)
|
|
264329
|
+
continue;
|
|
264330
|
+
const curve = _bspline_BSplineCurve__WEBPACK_IMPORTED_MODULE_9__.BSplineCurve3d.createUniformKnots(pts, order);
|
|
264331
|
+
if (curve !== undefined)
|
|
264332
|
+
result.push(curve);
|
|
264333
|
+
}
|
|
264334
|
+
return result;
|
|
264335
|
+
}
|
|
263907
264336
|
/** Create weighted bsplines for circular arcs.
|
|
263908
264337
|
*/
|
|
263909
264338
|
static createBspline3dHArcs() {
|
|
@@ -274879,9 +275308,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
274879
275308
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
274880
275309
|
/* harmony export */ "ITwinLocalization": () => (/* binding */ ITwinLocalization)
|
|
274881
275310
|
/* harmony export */ });
|
|
274882
|
-
/* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.
|
|
275311
|
+
/* 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");
|
|
274883
275312
|
/* 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");
|
|
274884
|
-
/* harmony import */ var
|
|
275313
|
+
/* 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");
|
|
274885
275314
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
274886
275315
|
/*---------------------------------------------------------------------------------------------
|
|
274887
275316
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -274917,13 +275346,14 @@ class ITwinLocalization {
|
|
|
274917
275346
|
this._initOptions = {
|
|
274918
275347
|
interpolation: { escapeValue: true },
|
|
274919
275348
|
fallbackLng: "en",
|
|
275349
|
+
maxRetries: 1,
|
|
274920
275350
|
backend: this._backendOptions,
|
|
274921
275351
|
detection: this._detectionOptions,
|
|
274922
275352
|
...options === null || options === void 0 ? void 0 : options.initOptions,
|
|
274923
275353
|
};
|
|
274924
275354
|
this.i18next
|
|
274925
275355
|
.use((_b = options === null || options === void 0 ? void 0 : options.detectorPlugin) !== null && _b !== void 0 ? _b : i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__["default"])
|
|
274926
|
-
.use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c :
|
|
275356
|
+
.use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c : i18next_http_backend__WEBPACK_IMPORTED_MODULE_2__["default"])
|
|
274927
275357
|
.use(TranslationLogger);
|
|
274928
275358
|
}
|
|
274929
275359
|
async initialize(namespaces) {
|
|
@@ -275044,10 +275474,10 @@ class ITwinLocalization {
|
|
|
275044
275474
|
if (!err)
|
|
275045
275475
|
return resolve();
|
|
275046
275476
|
// Here we got a non-null err object.
|
|
275047
|
-
// This method is called when the system has attempted to load the resources for the
|
|
275048
|
-
//
|
|
275049
|
-
//
|
|
275050
|
-
// might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible
|
|
275477
|
+
// This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
|
|
275478
|
+
// For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
|
|
275479
|
+
// Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
|
|
275480
|
+
// 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.
|
|
275051
275481
|
let locales = this.getLanguageList().map((thisLocale) => `/${thisLocale}/`);
|
|
275052
275482
|
try {
|
|
275053
275483
|
for (const thisError of err) {
|
|
@@ -300394,6 +300824,31 @@ var WidgetState;
|
|
|
300394
300824
|
|
|
300395
300825
|
/* (ignored) */
|
|
300396
300826
|
|
|
300827
|
+
/***/ }),
|
|
300828
|
+
|
|
300829
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs":
|
|
300830
|
+
/*!**************************************************************************************************************************!*\
|
|
300831
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/getFetch.cjs ***!
|
|
300832
|
+
\**************************************************************************************************************************/
|
|
300833
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
300834
|
+
|
|
300835
|
+
var fetchApi
|
|
300836
|
+
if (typeof fetch === 'function') {
|
|
300837
|
+
if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
|
|
300838
|
+
fetchApi = __webpack_require__.g.fetch
|
|
300839
|
+
} else if (typeof window !== 'undefined' && window.fetch) {
|
|
300840
|
+
fetchApi = window.fetch
|
|
300841
|
+
}
|
|
300842
|
+
}
|
|
300843
|
+
|
|
300844
|
+
if ( true && (typeof window === 'undefined' || typeof window.document === 'undefined')) {
|
|
300845
|
+
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")
|
|
300846
|
+
if (f.default) f = f.default
|
|
300847
|
+
exports["default"] = f
|
|
300848
|
+
module.exports = exports.default
|
|
300849
|
+
}
|
|
300850
|
+
|
|
300851
|
+
|
|
300397
300852
|
/***/ }),
|
|
300398
300853
|
|
|
300399
300854
|
/***/ "../../common/temp/node_modules/.pnpm/flatbuffers@1.12.0/node_modules/flatbuffers/js/flatbuffers.mjs":
|
|
@@ -302001,9 +302456,9 @@ const gBase64 = {
|
|
|
302001
302456
|
|
|
302002
302457
|
/***/ }),
|
|
302003
302458
|
|
|
302004
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302459
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
|
|
302005
302460
|
/*!******************************************************************************************************************************!*\
|
|
302006
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302461
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
|
|
302007
302462
|
\******************************************************************************************************************************/
|
|
302008
302463
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302009
302464
|
|
|
@@ -302024,9 +302479,9 @@ function _arrayLikeToArray(arr, len) {
|
|
|
302024
302479
|
|
|
302025
302480
|
/***/ }),
|
|
302026
302481
|
|
|
302027
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302482
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
|
|
302028
302483
|
/*!****************************************************************************************************************************!*\
|
|
302029
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302484
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
|
|
302030
302485
|
\****************************************************************************************************************************/
|
|
302031
302486
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302032
302487
|
|
|
@@ -302041,9 +302496,9 @@ function _arrayWithHoles(arr) {
|
|
|
302041
302496
|
|
|
302042
302497
|
/***/ }),
|
|
302043
302498
|
|
|
302044
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302499
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
|
|
302045
302500
|
/*!***********************************************************************************************************************************!*\
|
|
302046
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302501
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
|
|
302047
302502
|
\***********************************************************************************************************************************/
|
|
302048
302503
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302049
302504
|
|
|
@@ -302062,9 +302517,9 @@ function _assertThisInitialized(self) {
|
|
|
302062
302517
|
|
|
302063
302518
|
/***/ }),
|
|
302064
302519
|
|
|
302065
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302520
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
|
|
302066
302521
|
/*!****************************************************************************************************************************!*\
|
|
302067
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302522
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
|
|
302068
302523
|
\****************************************************************************************************************************/
|
|
302069
302524
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302070
302525
|
|
|
@@ -302081,9 +302536,9 @@ function _classCallCheck(instance, Constructor) {
|
|
|
302081
302536
|
|
|
302082
302537
|
/***/ }),
|
|
302083
302538
|
|
|
302084
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302539
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/createClass.js":
|
|
302085
302540
|
/*!*************************************************************************************************************************!*\
|
|
302086
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302541
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
|
|
302087
302542
|
\*************************************************************************************************************************/
|
|
302088
302543
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302089
302544
|
|
|
@@ -302113,9 +302568,9 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
302113
302568
|
|
|
302114
302569
|
/***/ }),
|
|
302115
302570
|
|
|
302116
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302571
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/defineProperty.js":
|
|
302117
302572
|
/*!****************************************************************************************************************************!*\
|
|
302118
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302573
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
|
|
302119
302574
|
\****************************************************************************************************************************/
|
|
302120
302575
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302121
302576
|
|
|
@@ -302141,9 +302596,9 @@ function _defineProperty(obj, key, value) {
|
|
|
302141
302596
|
|
|
302142
302597
|
/***/ }),
|
|
302143
302598
|
|
|
302144
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302599
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":
|
|
302145
302600
|
/*!****************************************************************************************************************************!*\
|
|
302146
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302601
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
|
|
302147
302602
|
\****************************************************************************************************************************/
|
|
302148
302603
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302149
302604
|
|
|
@@ -302161,9 +302616,9 @@ function _getPrototypeOf(o) {
|
|
|
302161
302616
|
|
|
302162
302617
|
/***/ }),
|
|
302163
302618
|
|
|
302164
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302619
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/inherits.js":
|
|
302165
302620
|
/*!**********************************************************************************************************************!*\
|
|
302166
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302621
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/inherits.js ***!
|
|
302167
302622
|
\**********************************************************************************************************************/
|
|
302168
302623
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302169
302624
|
|
|
@@ -302172,7 +302627,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302172
302627
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302173
302628
|
/* harmony export */ "default": () => (/* binding */ _inherits)
|
|
302174
302629
|
/* harmony export */ });
|
|
302175
|
-
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302630
|
+
/* 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");
|
|
302176
302631
|
|
|
302177
302632
|
function _inherits(subClass, superClass) {
|
|
302178
302633
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -302194,9 +302649,9 @@ function _inherits(subClass, superClass) {
|
|
|
302194
302649
|
|
|
302195
302650
|
/***/ }),
|
|
302196
302651
|
|
|
302197
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302652
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
|
|
302198
302653
|
/*!*****************************************************************************************************************************!*\
|
|
302199
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302654
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
|
|
302200
302655
|
\*****************************************************************************************************************************/
|
|
302201
302656
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302202
302657
|
|
|
@@ -302211,9 +302666,9 @@ function _iterableToArray(iter) {
|
|
|
302211
302666
|
|
|
302212
302667
|
/***/ }),
|
|
302213
302668
|
|
|
302214
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302669
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
|
|
302215
302670
|
/*!*****************************************************************************************************************************!*\
|
|
302216
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302671
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
|
|
302217
302672
|
\*****************************************************************************************************************************/
|
|
302218
302673
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302219
302674
|
|
|
@@ -302228,9 +302683,9 @@ function _nonIterableRest() {
|
|
|
302228
302683
|
|
|
302229
302684
|
/***/ }),
|
|
302230
302685
|
|
|
302231
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302686
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":
|
|
302232
302687
|
/*!***************************************************************************************************************************************!*\
|
|
302233
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302688
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***!
|
|
302234
302689
|
\***************************************************************************************************************************************/
|
|
302235
302690
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302236
302691
|
|
|
@@ -302239,8 +302694,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302239
302694
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302240
302695
|
/* harmony export */ "default": () => (/* binding */ _possibleConstructorReturn)
|
|
302241
302696
|
/* harmony export */ });
|
|
302242
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302243
|
-
/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302697
|
+
/* 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");
|
|
302698
|
+
/* 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");
|
|
302244
302699
|
|
|
302245
302700
|
|
|
302246
302701
|
function _possibleConstructorReturn(self, call) {
|
|
@@ -302255,9 +302710,9 @@ function _possibleConstructorReturn(self, call) {
|
|
|
302255
302710
|
|
|
302256
302711
|
/***/ }),
|
|
302257
302712
|
|
|
302258
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302713
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
|
|
302259
302714
|
/*!****************************************************************************************************************************!*\
|
|
302260
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302715
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
|
|
302261
302716
|
\****************************************************************************************************************************/
|
|
302262
302717
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302263
302718
|
|
|
@@ -302276,9 +302731,9 @@ function _setPrototypeOf(o, p) {
|
|
|
302276
302731
|
|
|
302277
302732
|
/***/ }),
|
|
302278
302733
|
|
|
302279
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302734
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/toArray.js":
|
|
302280
302735
|
/*!*********************************************************************************************************************!*\
|
|
302281
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302736
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/toArray.js ***!
|
|
302282
302737
|
\*********************************************************************************************************************/
|
|
302283
302738
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302284
302739
|
|
|
@@ -302287,10 +302742,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302287
302742
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302288
302743
|
/* harmony export */ "default": () => (/* binding */ _toArray)
|
|
302289
302744
|
/* harmony export */ });
|
|
302290
|
-
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302291
|
-
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302292
|
-
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302293
|
-
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302745
|
+
/* 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");
|
|
302746
|
+
/* 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");
|
|
302747
|
+
/* 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");
|
|
302748
|
+
/* 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");
|
|
302294
302749
|
|
|
302295
302750
|
|
|
302296
302751
|
|
|
@@ -302301,9 +302756,9 @@ function _toArray(arr) {
|
|
|
302301
302756
|
|
|
302302
302757
|
/***/ }),
|
|
302303
302758
|
|
|
302304
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302759
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js":
|
|
302305
302760
|
/*!********************************************************************************************************************!*\
|
|
302306
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302761
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
|
|
302307
302762
|
\********************************************************************************************************************/
|
|
302308
302763
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302309
302764
|
|
|
@@ -302324,9 +302779,9 @@ function _typeof(obj) {
|
|
|
302324
302779
|
|
|
302325
302780
|
/***/ }),
|
|
302326
302781
|
|
|
302327
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302782
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
|
|
302328
302783
|
/*!****************************************************************************************************************************************!*\
|
|
302329
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302784
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
|
|
302330
302785
|
\****************************************************************************************************************************************/
|
|
302331
302786
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302332
302787
|
|
|
@@ -302335,7 +302790,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302335
302790
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302336
302791
|
/* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
|
|
302337
302792
|
/* harmony export */ });
|
|
302338
|
-
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.18.
|
|
302793
|
+
/* 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");
|
|
302339
302794
|
|
|
302340
302795
|
function _unsupportedIterableToArray(o, minLen) {
|
|
302341
302796
|
if (!o) return;
|
|
@@ -302348,10 +302803,442 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
302348
302803
|
|
|
302349
302804
|
/***/ }),
|
|
302350
302805
|
|
|
302351
|
-
/***/ "../../common/temp/node_modules/.pnpm/i18next@
|
|
302352
|
-
|
|
302353
|
-
!*** ../../common/temp/node_modules/.pnpm/i18next@
|
|
302354
|
-
|
|
302806
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js":
|
|
302807
|
+
/*!**********************************************************************************************************************!*\
|
|
302808
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/index.js ***!
|
|
302809
|
+
\**********************************************************************************************************************/
|
|
302810
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302811
|
+
|
|
302812
|
+
"use strict";
|
|
302813
|
+
__webpack_require__.r(__webpack_exports__);
|
|
302814
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
302815
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
302816
|
+
/* harmony export */ });
|
|
302817
|
+
/* 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");
|
|
302818
|
+
/* 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");
|
|
302819
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
302820
|
+
|
|
302821
|
+
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); } }
|
|
302822
|
+
|
|
302823
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
302824
|
+
|
|
302825
|
+
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; }
|
|
302826
|
+
|
|
302827
|
+
|
|
302828
|
+
|
|
302829
|
+
|
|
302830
|
+
var getDefaults = function getDefaults() {
|
|
302831
|
+
return {
|
|
302832
|
+
loadPath: '/locales/{{lng}}/{{ns}}.json',
|
|
302833
|
+
addPath: '/locales/add/{{lng}}/{{ns}}',
|
|
302834
|
+
allowMultiLoading: false,
|
|
302835
|
+
parse: function parse(data) {
|
|
302836
|
+
return JSON.parse(data);
|
|
302837
|
+
},
|
|
302838
|
+
stringify: JSON.stringify,
|
|
302839
|
+
parsePayload: function parsePayload(namespace, key, fallbackValue) {
|
|
302840
|
+
return _defineProperty({}, key, fallbackValue || '');
|
|
302841
|
+
},
|
|
302842
|
+
request: _request_js__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
302843
|
+
reloadInterval: typeof window !== 'undefined' ? false : 60 * 60 * 1000,
|
|
302844
|
+
customHeaders: {},
|
|
302845
|
+
queryStringParams: {},
|
|
302846
|
+
crossDomain: false,
|
|
302847
|
+
withCredentials: false,
|
|
302848
|
+
overrideMimeType: false,
|
|
302849
|
+
requestOptions: {
|
|
302850
|
+
mode: 'cors',
|
|
302851
|
+
credentials: 'same-origin',
|
|
302852
|
+
cache: 'default'
|
|
302853
|
+
}
|
|
302854
|
+
};
|
|
302855
|
+
};
|
|
302856
|
+
|
|
302857
|
+
var Backend = function () {
|
|
302858
|
+
function Backend(services) {
|
|
302859
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
302860
|
+
var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
302861
|
+
|
|
302862
|
+
_classCallCheck(this, Backend);
|
|
302863
|
+
|
|
302864
|
+
this.services = services;
|
|
302865
|
+
this.options = options;
|
|
302866
|
+
this.allOptions = allOptions;
|
|
302867
|
+
this.type = 'backend';
|
|
302868
|
+
this.init(services, options, allOptions);
|
|
302869
|
+
}
|
|
302870
|
+
|
|
302871
|
+
_createClass(Backend, [{
|
|
302872
|
+
key: "init",
|
|
302873
|
+
value: function init(services) {
|
|
302874
|
+
var _this = this;
|
|
302875
|
+
|
|
302876
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
302877
|
+
var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
302878
|
+
this.services = services;
|
|
302879
|
+
this.options = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)(options, this.options || {}, getDefaults());
|
|
302880
|
+
this.allOptions = allOptions;
|
|
302881
|
+
|
|
302882
|
+
if (this.services && this.options.reloadInterval) {
|
|
302883
|
+
setInterval(function () {
|
|
302884
|
+
return _this.reload();
|
|
302885
|
+
}, this.options.reloadInterval);
|
|
302886
|
+
}
|
|
302887
|
+
}
|
|
302888
|
+
}, {
|
|
302889
|
+
key: "readMulti",
|
|
302890
|
+
value: function readMulti(languages, namespaces, callback) {
|
|
302891
|
+
this._readAny(languages, languages, namespaces, namespaces, callback);
|
|
302892
|
+
}
|
|
302893
|
+
}, {
|
|
302894
|
+
key: "read",
|
|
302895
|
+
value: function read(language, namespace, callback) {
|
|
302896
|
+
this._readAny([language], language, [namespace], namespace, callback);
|
|
302897
|
+
}
|
|
302898
|
+
}, {
|
|
302899
|
+
key: "_readAny",
|
|
302900
|
+
value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
|
|
302901
|
+
var _this2 = this;
|
|
302902
|
+
|
|
302903
|
+
var loadPath = this.options.loadPath;
|
|
302904
|
+
|
|
302905
|
+
if (typeof this.options.loadPath === 'function') {
|
|
302906
|
+
loadPath = this.options.loadPath(languages, namespaces);
|
|
302907
|
+
}
|
|
302908
|
+
|
|
302909
|
+
loadPath = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.makePromise)(loadPath);
|
|
302910
|
+
loadPath.then(function (resolvedLoadPath) {
|
|
302911
|
+
if (!resolvedLoadPath) return callback(null, {});
|
|
302912
|
+
|
|
302913
|
+
var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {
|
|
302914
|
+
lng: languages.join('+'),
|
|
302915
|
+
ns: namespaces.join('+')
|
|
302916
|
+
});
|
|
302917
|
+
|
|
302918
|
+
_this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
|
|
302919
|
+
});
|
|
302920
|
+
}
|
|
302921
|
+
}, {
|
|
302922
|
+
key: "loadUrl",
|
|
302923
|
+
value: function loadUrl(url, callback, languages, namespaces) {
|
|
302924
|
+
var _this3 = this;
|
|
302925
|
+
|
|
302926
|
+
this.options.request(this.options, url, undefined, function (err, res) {
|
|
302927
|
+
if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback('failed loading ' + url + '; status code: ' + res.status, true);
|
|
302928
|
+
if (res && res.status >= 400 && res.status < 500) return callback('failed loading ' + url + '; status code: ' + res.status, false);
|
|
302929
|
+
if (!res && err && err.message && err.message.indexOf('Failed to fetch') > -1) return callback('failed loading ' + url + ': ' + err.message, true);
|
|
302930
|
+
if (err) return callback(err, false);
|
|
302931
|
+
var ret, parseErr;
|
|
302932
|
+
|
|
302933
|
+
try {
|
|
302934
|
+
if (typeof res.data === 'string') {
|
|
302935
|
+
ret = _this3.options.parse(res.data, languages, namespaces);
|
|
302936
|
+
} else {
|
|
302937
|
+
ret = res.data;
|
|
302938
|
+
}
|
|
302939
|
+
} catch (e) {
|
|
302940
|
+
parseErr = 'failed parsing ' + url + ' to json';
|
|
302941
|
+
}
|
|
302942
|
+
|
|
302943
|
+
if (parseErr) return callback(parseErr, false);
|
|
302944
|
+
callback(null, ret);
|
|
302945
|
+
});
|
|
302946
|
+
}
|
|
302947
|
+
}, {
|
|
302948
|
+
key: "create",
|
|
302949
|
+
value: function create(languages, namespace, key, fallbackValue, callback) {
|
|
302950
|
+
var _this4 = this;
|
|
302951
|
+
|
|
302952
|
+
if (!this.options.addPath) return;
|
|
302953
|
+
if (typeof languages === 'string') languages = [languages];
|
|
302954
|
+
var payload = this.options.parsePayload(namespace, key, fallbackValue);
|
|
302955
|
+
var finished = 0;
|
|
302956
|
+
var dataArray = [];
|
|
302957
|
+
var resArray = [];
|
|
302958
|
+
languages.forEach(function (lng) {
|
|
302959
|
+
var addPath = _this4.options.addPath;
|
|
302960
|
+
|
|
302961
|
+
if (typeof _this4.options.addPath === 'function') {
|
|
302962
|
+
addPath = _this4.options.addPath(lng, namespace);
|
|
302963
|
+
}
|
|
302964
|
+
|
|
302965
|
+
var url = _this4.services.interpolator.interpolate(addPath, {
|
|
302966
|
+
lng: lng,
|
|
302967
|
+
ns: namespace
|
|
302968
|
+
});
|
|
302969
|
+
|
|
302970
|
+
_this4.options.request(_this4.options, url, payload, function (data, res) {
|
|
302971
|
+
finished += 1;
|
|
302972
|
+
dataArray.push(data);
|
|
302973
|
+
resArray.push(res);
|
|
302974
|
+
|
|
302975
|
+
if (finished === languages.length) {
|
|
302976
|
+
if (callback) callback(dataArray, resArray);
|
|
302977
|
+
}
|
|
302978
|
+
});
|
|
302979
|
+
});
|
|
302980
|
+
}
|
|
302981
|
+
}, {
|
|
302982
|
+
key: "reload",
|
|
302983
|
+
value: function reload() {
|
|
302984
|
+
var _this5 = this;
|
|
302985
|
+
|
|
302986
|
+
var _this$services = this.services,
|
|
302987
|
+
backendConnector = _this$services.backendConnector,
|
|
302988
|
+
languageUtils = _this$services.languageUtils,
|
|
302989
|
+
logger = _this$services.logger;
|
|
302990
|
+
var currentLanguage = backendConnector.language;
|
|
302991
|
+
if (currentLanguage && currentLanguage.toLowerCase() === 'cimode') return;
|
|
302992
|
+
var toLoad = [];
|
|
302993
|
+
|
|
302994
|
+
var append = function append(lng) {
|
|
302995
|
+
var lngs = languageUtils.toResolveHierarchy(lng);
|
|
302996
|
+
lngs.forEach(function (l) {
|
|
302997
|
+
if (toLoad.indexOf(l) < 0) toLoad.push(l);
|
|
302998
|
+
});
|
|
302999
|
+
};
|
|
303000
|
+
|
|
303001
|
+
append(currentLanguage);
|
|
303002
|
+
if (this.allOptions.preload) this.allOptions.preload.forEach(function (l) {
|
|
303003
|
+
return append(l);
|
|
303004
|
+
});
|
|
303005
|
+
toLoad.forEach(function (lng) {
|
|
303006
|
+
_this5.allOptions.ns.forEach(function (ns) {
|
|
303007
|
+
backendConnector.read(lng, ns, 'read', null, null, function (err, data) {
|
|
303008
|
+
if (err) logger.warn("loading namespace ".concat(ns, " for language ").concat(lng, " failed"), err);
|
|
303009
|
+
if (!err && data) logger.log("loaded namespace ".concat(ns, " for language ").concat(lng), data);
|
|
303010
|
+
backendConnector.loaded("".concat(lng, "|").concat(ns), err, data);
|
|
303011
|
+
});
|
|
303012
|
+
});
|
|
303013
|
+
});
|
|
303014
|
+
}
|
|
303015
|
+
}]);
|
|
303016
|
+
|
|
303017
|
+
return Backend;
|
|
303018
|
+
}();
|
|
303019
|
+
|
|
303020
|
+
Backend.type = 'backend';
|
|
303021
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
|
|
303022
|
+
|
|
303023
|
+
/***/ }),
|
|
303024
|
+
|
|
303025
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js":
|
|
303026
|
+
/*!************************************************************************************************************************!*\
|
|
303027
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/request.js ***!
|
|
303028
|
+
\************************************************************************************************************************/
|
|
303029
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
303030
|
+
|
|
303031
|
+
"use strict";
|
|
303032
|
+
var _getFetch_cjs__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
|
|
303033
|
+
__webpack_require__.r(__webpack_exports__);
|
|
303034
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
303035
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
303036
|
+
/* harmony export */ });
|
|
303037
|
+
/* 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");
|
|
303038
|
+
/* 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");
|
|
303039
|
+
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); }
|
|
303040
|
+
|
|
303041
|
+
|
|
303042
|
+
|
|
303043
|
+
var fetchApi;
|
|
303044
|
+
|
|
303045
|
+
if (typeof fetch === 'function') {
|
|
303046
|
+
if (typeof global !== 'undefined' && global.fetch) {
|
|
303047
|
+
fetchApi = global.fetch;
|
|
303048
|
+
} else if (typeof window !== 'undefined' && window.fetch) {
|
|
303049
|
+
fetchApi = window.fetch;
|
|
303050
|
+
}
|
|
303051
|
+
}
|
|
303052
|
+
|
|
303053
|
+
var XmlHttpRequestApi;
|
|
303054
|
+
|
|
303055
|
+
if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)()) {
|
|
303056
|
+
if (typeof global !== 'undefined' && global.XMLHttpRequest) {
|
|
303057
|
+
XmlHttpRequestApi = global.XMLHttpRequest;
|
|
303058
|
+
} else if (typeof window !== 'undefined' && window.XMLHttpRequest) {
|
|
303059
|
+
XmlHttpRequestApi = window.XMLHttpRequest;
|
|
303060
|
+
}
|
|
303061
|
+
}
|
|
303062
|
+
|
|
303063
|
+
var ActiveXObjectApi;
|
|
303064
|
+
|
|
303065
|
+
if (typeof ActiveXObject === 'function') {
|
|
303066
|
+
if (typeof global !== 'undefined' && global.ActiveXObject) {
|
|
303067
|
+
ActiveXObjectApi = global.ActiveXObject;
|
|
303068
|
+
} else if (typeof window !== 'undefined' && window.ActiveXObject) {
|
|
303069
|
+
ActiveXObjectApi = window.ActiveXObject;
|
|
303070
|
+
}
|
|
303071
|
+
}
|
|
303072
|
+
|
|
303073
|
+
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)));
|
|
303074
|
+
if (typeof fetchApi !== 'function') fetchApi = undefined;
|
|
303075
|
+
|
|
303076
|
+
var addQueryString = function addQueryString(url, params) {
|
|
303077
|
+
if (params && _typeof(params) === 'object') {
|
|
303078
|
+
var queryString = '';
|
|
303079
|
+
|
|
303080
|
+
for (var paramName in params) {
|
|
303081
|
+
queryString += '&' + encodeURIComponent(paramName) + '=' + encodeURIComponent(params[paramName]);
|
|
303082
|
+
}
|
|
303083
|
+
|
|
303084
|
+
if (!queryString) return url;
|
|
303085
|
+
url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
|
|
303086
|
+
}
|
|
303087
|
+
|
|
303088
|
+
return url;
|
|
303089
|
+
};
|
|
303090
|
+
|
|
303091
|
+
var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
|
|
303092
|
+
if (options.queryStringParams) {
|
|
303093
|
+
url = addQueryString(url, options.queryStringParams);
|
|
303094
|
+
}
|
|
303095
|
+
|
|
303096
|
+
var headers = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
|
|
303097
|
+
if (payload) headers['Content-Type'] = 'application/json';
|
|
303098
|
+
fetchApi(url, (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.defaults)({
|
|
303099
|
+
method: payload ? 'POST' : 'GET',
|
|
303100
|
+
body: payload ? options.stringify(payload) : undefined,
|
|
303101
|
+
headers: headers
|
|
303102
|
+
}, typeof options.requestOptions === 'function' ? options.requestOptions(payload) : options.requestOptions)).then(function (response) {
|
|
303103
|
+
if (!response.ok) return callback(response.statusText || 'Error', {
|
|
303104
|
+
status: response.status
|
|
303105
|
+
});
|
|
303106
|
+
response.text().then(function (data) {
|
|
303107
|
+
callback(null, {
|
|
303108
|
+
status: response.status,
|
|
303109
|
+
data: data
|
|
303110
|
+
});
|
|
303111
|
+
}).catch(callback);
|
|
303112
|
+
}).catch(callback);
|
|
303113
|
+
};
|
|
303114
|
+
|
|
303115
|
+
var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url, payload, callback) {
|
|
303116
|
+
if (payload && _typeof(payload) === 'object') {
|
|
303117
|
+
payload = addQueryString('', payload).slice(1);
|
|
303118
|
+
}
|
|
303119
|
+
|
|
303120
|
+
if (options.queryStringParams) {
|
|
303121
|
+
url = addQueryString(url, options.queryStringParams);
|
|
303122
|
+
}
|
|
303123
|
+
|
|
303124
|
+
try {
|
|
303125
|
+
var x;
|
|
303126
|
+
|
|
303127
|
+
if (XmlHttpRequestApi) {
|
|
303128
|
+
x = new XmlHttpRequestApi();
|
|
303129
|
+
} else {
|
|
303130
|
+
x = new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');
|
|
303131
|
+
}
|
|
303132
|
+
|
|
303133
|
+
x.open(payload ? 'POST' : 'GET', url, 1);
|
|
303134
|
+
|
|
303135
|
+
if (!options.crossDomain) {
|
|
303136
|
+
x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
|
303137
|
+
}
|
|
303138
|
+
|
|
303139
|
+
x.withCredentials = !!options.withCredentials;
|
|
303140
|
+
|
|
303141
|
+
if (payload) {
|
|
303142
|
+
x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
303143
|
+
}
|
|
303144
|
+
|
|
303145
|
+
if (x.overrideMimeType) {
|
|
303146
|
+
x.overrideMimeType('application/json');
|
|
303147
|
+
}
|
|
303148
|
+
|
|
303149
|
+
var h = options.customHeaders;
|
|
303150
|
+
h = typeof h === 'function' ? h() : h;
|
|
303151
|
+
|
|
303152
|
+
if (h) {
|
|
303153
|
+
for (var i in h) {
|
|
303154
|
+
x.setRequestHeader(i, h[i]);
|
|
303155
|
+
}
|
|
303156
|
+
}
|
|
303157
|
+
|
|
303158
|
+
x.onreadystatechange = function () {
|
|
303159
|
+
x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
|
|
303160
|
+
status: x.status,
|
|
303161
|
+
data: x.responseText
|
|
303162
|
+
});
|
|
303163
|
+
};
|
|
303164
|
+
|
|
303165
|
+
x.send(payload);
|
|
303166
|
+
} catch (e) {
|
|
303167
|
+
console && console.log(e);
|
|
303168
|
+
}
|
|
303169
|
+
};
|
|
303170
|
+
|
|
303171
|
+
var request = function request(options, url, payload, callback) {
|
|
303172
|
+
if (typeof payload === 'function') {
|
|
303173
|
+
callback = payload;
|
|
303174
|
+
payload = undefined;
|
|
303175
|
+
}
|
|
303176
|
+
|
|
303177
|
+
callback = callback || function () {};
|
|
303178
|
+
|
|
303179
|
+
if (fetchApi) {
|
|
303180
|
+
return requestWithFetch(options, url, payload, callback);
|
|
303181
|
+
}
|
|
303182
|
+
|
|
303183
|
+
if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)() || typeof ActiveXObject === 'function') {
|
|
303184
|
+
return requestWithXmlHttpRequest(options, url, payload, callback);
|
|
303185
|
+
}
|
|
303186
|
+
};
|
|
303187
|
+
|
|
303188
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (request);
|
|
303189
|
+
|
|
303190
|
+
/***/ }),
|
|
303191
|
+
|
|
303192
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js":
|
|
303193
|
+
/*!**********************************************************************************************************************!*\
|
|
303194
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@1.4.1/node_modules/i18next-http-backend/esm/utils.js ***!
|
|
303195
|
+
\**********************************************************************************************************************/
|
|
303196
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
303197
|
+
|
|
303198
|
+
"use strict";
|
|
303199
|
+
__webpack_require__.r(__webpack_exports__);
|
|
303200
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
303201
|
+
/* harmony export */ "defaults": () => (/* binding */ defaults),
|
|
303202
|
+
/* harmony export */ "hasXMLHttpRequest": () => (/* binding */ hasXMLHttpRequest),
|
|
303203
|
+
/* harmony export */ "makePromise": () => (/* binding */ makePromise)
|
|
303204
|
+
/* harmony export */ });
|
|
303205
|
+
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); }
|
|
303206
|
+
|
|
303207
|
+
var arr = [];
|
|
303208
|
+
var each = arr.forEach;
|
|
303209
|
+
var slice = arr.slice;
|
|
303210
|
+
function defaults(obj) {
|
|
303211
|
+
each.call(slice.call(arguments, 1), function (source) {
|
|
303212
|
+
if (source) {
|
|
303213
|
+
for (var prop in source) {
|
|
303214
|
+
if (obj[prop] === undefined) obj[prop] = source[prop];
|
|
303215
|
+
}
|
|
303216
|
+
}
|
|
303217
|
+
});
|
|
303218
|
+
return obj;
|
|
303219
|
+
}
|
|
303220
|
+
function hasXMLHttpRequest() {
|
|
303221
|
+
return typeof XMLHttpRequest === 'function' || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) === 'object';
|
|
303222
|
+
}
|
|
303223
|
+
|
|
303224
|
+
function isPromise(maybePromise) {
|
|
303225
|
+
return !!maybePromise && typeof maybePromise.then === 'function';
|
|
303226
|
+
}
|
|
303227
|
+
|
|
303228
|
+
function makePromise(maybePromise) {
|
|
303229
|
+
if (isPromise(maybePromise)) {
|
|
303230
|
+
return maybePromise;
|
|
303231
|
+
}
|
|
303232
|
+
|
|
303233
|
+
return Promise.resolve(maybePromise);
|
|
303234
|
+
}
|
|
303235
|
+
|
|
303236
|
+
/***/ }),
|
|
303237
|
+
|
|
303238
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js":
|
|
303239
|
+
/*!****************************************************************************************************!*\
|
|
303240
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js ***!
|
|
303241
|
+
\****************************************************************************************************/
|
|
302355
303242
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
302356
303243
|
|
|
302357
303244
|
"use strict";
|
|
@@ -302372,15 +303259,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
302372
303259
|
/* harmony export */ "t": () => (/* binding */ t),
|
|
302373
303260
|
/* harmony export */ "use": () => (/* binding */ use)
|
|
302374
303261
|
/* harmony export */ });
|
|
302375
|
-
/* 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.
|
|
302376
|
-
/* 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.
|
|
302377
|
-
/* 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.
|
|
302378
|
-
/* 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.
|
|
302379
|
-
/* 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.
|
|
302380
|
-
/* 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.
|
|
302381
|
-
/* 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.
|
|
302382
|
-
/* 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.
|
|
302383
|
-
/* 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.
|
|
303262
|
+
/* 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");
|
|
303263
|
+
/* 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");
|
|
303264
|
+
/* 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");
|
|
303265
|
+
/* 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");
|
|
303266
|
+
/* 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");
|
|
303267
|
+
/* 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");
|
|
303268
|
+
/* 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");
|
|
303269
|
+
/* 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");
|
|
303270
|
+
/* 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");
|
|
302384
303271
|
|
|
302385
303272
|
|
|
302386
303273
|
|
|
@@ -304252,6 +305139,8 @@ var Connector = function (_EventEmitter) {
|
|
|
304252
305139
|
_this.waitingReads = [];
|
|
304253
305140
|
_this.maxParallelReads = options.maxParallelReads || 10;
|
|
304254
305141
|
_this.readingCalls = 0;
|
|
305142
|
+
_this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5;
|
|
305143
|
+
_this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;
|
|
304255
305144
|
_this.state = {};
|
|
304256
305145
|
_this.queue = [];
|
|
304257
305146
|
|
|
@@ -304358,7 +305247,7 @@ var Connector = function (_EventEmitter) {
|
|
|
304358
305247
|
var _this3 = this;
|
|
304359
305248
|
|
|
304360
305249
|
var tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
304361
|
-
var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] :
|
|
305250
|
+
var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.retryTimeout;
|
|
304362
305251
|
var callback = arguments.length > 5 ? arguments[5] : undefined;
|
|
304363
305252
|
if (!lng.length) return callback(null, {});
|
|
304364
305253
|
|
|
@@ -304376,13 +305265,6 @@ var Connector = function (_EventEmitter) {
|
|
|
304376
305265
|
|
|
304377
305266
|
this.readingCalls++;
|
|
304378
305267
|
return this.backend[fcName](lng, ns, function (err, data) {
|
|
304379
|
-
if (err && data && tried < 5) {
|
|
304380
|
-
setTimeout(function () {
|
|
304381
|
-
_this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
|
|
304382
|
-
}, wait);
|
|
304383
|
-
return;
|
|
304384
|
-
}
|
|
304385
|
-
|
|
304386
305268
|
_this3.readingCalls--;
|
|
304387
305269
|
|
|
304388
305270
|
if (_this3.waitingReads.length > 0) {
|
|
@@ -304391,6 +305273,13 @@ var Connector = function (_EventEmitter) {
|
|
|
304391
305273
|
_this3.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback);
|
|
304392
305274
|
}
|
|
304393
305275
|
|
|
305276
|
+
if (err && data && tried < _this3.maxRetries) {
|
|
305277
|
+
setTimeout(function () {
|
|
305278
|
+
_this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
|
|
305279
|
+
}, wait);
|
|
305280
|
+
return;
|
|
305281
|
+
}
|
|
305282
|
+
|
|
304394
305283
|
callback(err, data);
|
|
304395
305284
|
});
|
|
304396
305285
|
}
|
|
@@ -305206,7 +306095,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
305206
306095
|
/***/ ((module) => {
|
|
305207
306096
|
|
|
305208
306097
|
"use strict";
|
|
305209
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.
|
|
306098
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.12","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.12","@itwin/core-bentley":"workspace:^3.4.0-dev.12","@itwin/core-common":"workspace:^3.4.0-dev.12","@itwin/core-geometry":"workspace:^3.4.0-dev.12","@itwin/core-orbitgt":"workspace:^3.4.0-dev.12","@itwin/core-quantity":"workspace:^3.4.0-dev.12","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.12"},"//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"}}]}}');
|
|
305210
306099
|
|
|
305211
306100
|
/***/ })
|
|
305212
306101
|
|
|
@@ -305255,6 +306144,36 @@ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev
|
|
|
305255
306144
|
/******/ };
|
|
305256
306145
|
/******/ })();
|
|
305257
306146
|
/******/
|
|
306147
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
306148
|
+
/******/ (() => {
|
|
306149
|
+
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
|
306150
|
+
/******/ var leafPrototypes;
|
|
306151
|
+
/******/ // create a fake namespace object
|
|
306152
|
+
/******/ // mode & 1: value is a module id, require it
|
|
306153
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
306154
|
+
/******/ // mode & 4: return value when already ns object
|
|
306155
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
306156
|
+
/******/ // mode & 8|1: behave like require
|
|
306157
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
306158
|
+
/******/ if(mode & 1) value = this(value);
|
|
306159
|
+
/******/ if(mode & 8) return value;
|
|
306160
|
+
/******/ if(typeof value === 'object' && value) {
|
|
306161
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
306162
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
306163
|
+
/******/ }
|
|
306164
|
+
/******/ var ns = Object.create(null);
|
|
306165
|
+
/******/ __webpack_require__.r(ns);
|
|
306166
|
+
/******/ var def = {};
|
|
306167
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
306168
|
+
/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
306169
|
+
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
|
306170
|
+
/******/ }
|
|
306171
|
+
/******/ def['default'] = () => (value);
|
|
306172
|
+
/******/ __webpack_require__.d(ns, def);
|
|
306173
|
+
/******/ return ns;
|
|
306174
|
+
/******/ };
|
|
306175
|
+
/******/ })();
|
|
306176
|
+
/******/
|
|
305258
306177
|
/******/ /* webpack/runtime/define property getters */
|
|
305259
306178
|
/******/ (() => {
|
|
305260
306179
|
/******/ // define getter functions for harmony exports
|