@itwin/ecschema-rpcinterface-tests 3.4.0-dev.12 → 3.4.0-dev.14
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 → _c5fe.bundled-tests.js} +3 -3
- package/lib/dist/_c5fe.bundled-tests.js.map +1 -0
- package/lib/dist/bundled-tests.js +284 -1132
- 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 → vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_7_node_modules_loaders_gl_draco_di-a586d9.bundled-tests.js} +67 -67
- 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 → vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_7_node_modules_loaders_gl_draco_di-a586d9.bundled-tests.js.map} +1 -1
- package/package.json +16 -16
- package/lib/dist/_c41d.bundled-tests.js.map +0 -1
|
@@ -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.8/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.8/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.8/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,570 +19015,6 @@ 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
|
-
|
|
19582
19018
|
/***/ }),
|
|
19583
19019
|
|
|
19584
19020
|
/***/ "../../common/temp/node_modules/.pnpm/deep-assign@2.0.0/node_modules/deep-assign/index.js":
|
|
@@ -21463,9 +20899,9 @@ module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
|
21463
20899
|
|
|
21464
20900
|
/***/ }),
|
|
21465
20901
|
|
|
21466
|
-
/***/ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.
|
|
20902
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js":
|
|
21467
20903
|
/*!****************************************************************************************************************************************************************************!*\
|
|
21468
|
-
!*** ../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.
|
|
20904
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js ***!
|
|
21469
20905
|
\****************************************************************************************************************************************************************************/
|
|
21470
20906
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
21471
20907
|
|
|
@@ -21500,12 +20936,12 @@ var serializeCookie = function serializeCookie(name, val, options) {
|
|
|
21500
20936
|
var opt = options || {};
|
|
21501
20937
|
opt.path = opt.path || '/';
|
|
21502
20938
|
var value = encodeURIComponent(val);
|
|
21503
|
-
var str = name
|
|
20939
|
+
var str = "".concat(name, "=").concat(value);
|
|
21504
20940
|
|
|
21505
20941
|
if (opt.maxAge > 0) {
|
|
21506
20942
|
var maxAge = opt.maxAge - 0;
|
|
21507
|
-
if (isNaN(maxAge)) throw new Error('maxAge should be a Number');
|
|
21508
|
-
str +=
|
|
20943
|
+
if (Number.isNaN(maxAge)) throw new Error('maxAge should be a Number');
|
|
20944
|
+
str += "; Max-Age=".concat(Math.floor(maxAge));
|
|
21509
20945
|
}
|
|
21510
20946
|
|
|
21511
20947
|
if (opt.domain) {
|
|
@@ -21513,7 +20949,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
|
|
|
21513
20949
|
throw new TypeError('option domain is invalid');
|
|
21514
20950
|
}
|
|
21515
20951
|
|
|
21516
|
-
str +=
|
|
20952
|
+
str += "; Domain=".concat(opt.domain);
|
|
21517
20953
|
}
|
|
21518
20954
|
|
|
21519
20955
|
if (opt.path) {
|
|
@@ -21521,7 +20957,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
|
|
|
21521
20957
|
throw new TypeError('option path is invalid');
|
|
21522
20958
|
}
|
|
21523
20959
|
|
|
21524
|
-
str +=
|
|
20960
|
+
str += "; Path=".concat(opt.path);
|
|
21525
20961
|
}
|
|
21526
20962
|
|
|
21527
20963
|
if (opt.expires) {
|
|
@@ -21529,7 +20965,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
|
|
|
21529
20965
|
throw new TypeError('option expires is invalid');
|
|
21530
20966
|
}
|
|
21531
20967
|
|
|
21532
|
-
str +=
|
|
20968
|
+
str += "; Expires=".concat(opt.expires.toUTCString());
|
|
21533
20969
|
}
|
|
21534
20970
|
|
|
21535
20971
|
if (opt.httpOnly) str += '; HttpOnly';
|
|
@@ -21579,7 +21015,7 @@ var cookie = {
|
|
|
21579
21015
|
document.cookie = serializeCookie(name, encodeURIComponent(value), cookieOptions);
|
|
21580
21016
|
},
|
|
21581
21017
|
read: function read(name) {
|
|
21582
|
-
var nameEQ = name
|
|
21018
|
+
var nameEQ = "".concat(name, "=");
|
|
21583
21019
|
var ca = document.cookie.split(';');
|
|
21584
21020
|
|
|
21585
21021
|
for (var i = 0; i < ca.length; i++) {
|
|
@@ -21789,21 +21225,16 @@ var path = {
|
|
|
21789
21225
|
var subdomain = {
|
|
21790
21226
|
name: 'subdomain',
|
|
21791
21227
|
lookup: function lookup(options) {
|
|
21792
|
-
|
|
21228
|
+
// If given get the subdomain index else 1
|
|
21229
|
+
var lookupFromSubdomainIndex = typeof options.lookupFromSubdomainIndex === 'number' ? options.lookupFromSubdomainIndex + 1 : 1; // get all matches if window.location. is existing
|
|
21230
|
+
// first item of match is the match itself and the second is the first group macht which sould be the first subdomain match
|
|
21231
|
+
// is the hostname no public domain get the or option of localhost
|
|
21793
21232
|
|
|
21794
|
-
|
|
21795
|
-
var language = window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);
|
|
21233
|
+
var language = typeof window !== 'undefined' && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i); // if there is no match (null) return undefined
|
|
21796
21234
|
|
|
21797
|
-
|
|
21798
|
-
if (typeof options.lookupFromSubdomainIndex === 'number') {
|
|
21799
|
-
found = language[options.lookupFromSubdomainIndex].replace('http://', '').replace('https://', '').replace('.', '');
|
|
21800
|
-
} else {
|
|
21801
|
-
found = language[0].replace('http://', '').replace('https://', '').replace('.', '');
|
|
21802
|
-
}
|
|
21803
|
-
}
|
|
21804
|
-
}
|
|
21235
|
+
if (!language) return undefined; // return the given group match
|
|
21805
21236
|
|
|
21806
|
-
return
|
|
21237
|
+
return language[lookupFromSubdomainIndex];
|
|
21807
21238
|
}
|
|
21808
21239
|
};
|
|
21809
21240
|
|
|
@@ -21816,8 +21247,8 @@ function getDefaults() {
|
|
|
21816
21247
|
lookupSessionStorage: 'i18nextLng',
|
|
21817
21248
|
// cache user language
|
|
21818
21249
|
caches: ['localStorage'],
|
|
21819
|
-
excludeCacheFor: ['cimode'] //cookieMinutes: 10,
|
|
21820
|
-
//cookieDomain: 'myDomain'
|
|
21250
|
+
excludeCacheFor: ['cimode'] // cookieMinutes: 10,
|
|
21251
|
+
// cookieDomain: 'myDomain'
|
|
21821
21252
|
|
|
21822
21253
|
};
|
|
21823
21254
|
}
|
|
@@ -21898,6 +21329,235 @@ Browser.type = 'languageDetector';
|
|
|
21898
21329
|
|
|
21899
21330
|
|
|
21900
21331
|
|
|
21332
|
+
/***/ }),
|
|
21333
|
+
|
|
21334
|
+
/***/ "../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js":
|
|
21335
|
+
/*!*************************************************************************************************************************************!*\
|
|
21336
|
+
!*** ../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js ***!
|
|
21337
|
+
\*************************************************************************************************************************************/
|
|
21338
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
21339
|
+
|
|
21340
|
+
"use strict";
|
|
21341
|
+
__webpack_require__.r(__webpack_exports__);
|
|
21342
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21343
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
21344
|
+
/* harmony export */ });
|
|
21345
|
+
/* 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");
|
|
21346
|
+
/* 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");
|
|
21347
|
+
/* 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.9/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
21348
|
+
/* 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.9/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
21349
|
+
|
|
21350
|
+
|
|
21351
|
+
|
|
21352
|
+
|
|
21353
|
+
|
|
21354
|
+
var arr = [];
|
|
21355
|
+
var each = arr.forEach;
|
|
21356
|
+
var slice = arr.slice;
|
|
21357
|
+
function defaults(obj) {
|
|
21358
|
+
each.call(slice.call(arguments, 1), function (source) {
|
|
21359
|
+
if (source) {
|
|
21360
|
+
for (var prop in source) {
|
|
21361
|
+
if (obj[prop] === undefined) obj[prop] = source[prop];
|
|
21362
|
+
}
|
|
21363
|
+
}
|
|
21364
|
+
});
|
|
21365
|
+
return obj;
|
|
21366
|
+
}
|
|
21367
|
+
|
|
21368
|
+
function addQueryString(url, params) {
|
|
21369
|
+
if (params && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(params) === 'object') {
|
|
21370
|
+
var queryString = '',
|
|
21371
|
+
e = encodeURIComponent; // Must encode data
|
|
21372
|
+
|
|
21373
|
+
for (var paramName in params) {
|
|
21374
|
+
queryString += '&' + e(paramName) + '=' + e(params[paramName]);
|
|
21375
|
+
}
|
|
21376
|
+
|
|
21377
|
+
if (!queryString) {
|
|
21378
|
+
return url;
|
|
21379
|
+
}
|
|
21380
|
+
|
|
21381
|
+
url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
|
|
21382
|
+
}
|
|
21383
|
+
|
|
21384
|
+
return url;
|
|
21385
|
+
} // https://gist.github.com/Xeoncross/7663273
|
|
21386
|
+
|
|
21387
|
+
|
|
21388
|
+
function ajax(url, options, callback, data, cache) {
|
|
21389
|
+
if (data && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_3__["default"])(data) === 'object') {
|
|
21390
|
+
if (!cache) {
|
|
21391
|
+
data['_t'] = new Date();
|
|
21392
|
+
} // URL encoded form data must be in querystring format
|
|
21393
|
+
|
|
21394
|
+
|
|
21395
|
+
data = addQueryString('', data).slice(1);
|
|
21396
|
+
}
|
|
21397
|
+
|
|
21398
|
+
if (options.queryStringParams) {
|
|
21399
|
+
url = addQueryString(url, options.queryStringParams);
|
|
21400
|
+
}
|
|
21401
|
+
|
|
21402
|
+
try {
|
|
21403
|
+
var x;
|
|
21404
|
+
|
|
21405
|
+
if (XMLHttpRequest) {
|
|
21406
|
+
x = new XMLHttpRequest();
|
|
21407
|
+
} else {
|
|
21408
|
+
x = new ActiveXObject('MSXML2.XMLHTTP.3.0');
|
|
21409
|
+
}
|
|
21410
|
+
|
|
21411
|
+
x.open(data ? 'POST' : 'GET', url, 1);
|
|
21412
|
+
|
|
21413
|
+
if (!options.crossDomain) {
|
|
21414
|
+
x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
|
21415
|
+
}
|
|
21416
|
+
|
|
21417
|
+
x.withCredentials = !!options.withCredentials;
|
|
21418
|
+
|
|
21419
|
+
if (data) {
|
|
21420
|
+
x.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
|
21421
|
+
}
|
|
21422
|
+
|
|
21423
|
+
if (x.overrideMimeType) {
|
|
21424
|
+
x.overrideMimeType("application/json");
|
|
21425
|
+
}
|
|
21426
|
+
|
|
21427
|
+
var h = options.customHeaders;
|
|
21428
|
+
h = typeof h === 'function' ? h() : h;
|
|
21429
|
+
|
|
21430
|
+
if (h) {
|
|
21431
|
+
for (var i in h) {
|
|
21432
|
+
x.setRequestHeader(i, h[i]);
|
|
21433
|
+
}
|
|
21434
|
+
}
|
|
21435
|
+
|
|
21436
|
+
x.onreadystatechange = function () {
|
|
21437
|
+
x.readyState > 3 && callback && callback(x.responseText, x);
|
|
21438
|
+
};
|
|
21439
|
+
|
|
21440
|
+
x.send(data);
|
|
21441
|
+
} catch (e) {
|
|
21442
|
+
console && console.log(e);
|
|
21443
|
+
}
|
|
21444
|
+
}
|
|
21445
|
+
|
|
21446
|
+
function getDefaults() {
|
|
21447
|
+
return {
|
|
21448
|
+
loadPath: '/locales/{{lng}}/{{ns}}.json',
|
|
21449
|
+
addPath: '/locales/add/{{lng}}/{{ns}}',
|
|
21450
|
+
allowMultiLoading: false,
|
|
21451
|
+
parse: JSON.parse,
|
|
21452
|
+
parsePayload: function parsePayload(namespace, key, fallbackValue) {
|
|
21453
|
+
return (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_2__["default"])({}, key, fallbackValue || '');
|
|
21454
|
+
},
|
|
21455
|
+
crossDomain: false,
|
|
21456
|
+
ajax: ajax
|
|
21457
|
+
};
|
|
21458
|
+
}
|
|
21459
|
+
|
|
21460
|
+
var Backend =
|
|
21461
|
+
/*#__PURE__*/
|
|
21462
|
+
function () {
|
|
21463
|
+
function Backend(services) {
|
|
21464
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
21465
|
+
|
|
21466
|
+
(0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__["default"])(this, Backend);
|
|
21467
|
+
|
|
21468
|
+
this.init(services, options);
|
|
21469
|
+
this.type = 'backend';
|
|
21470
|
+
}
|
|
21471
|
+
|
|
21472
|
+
(0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Backend, [{
|
|
21473
|
+
key: "init",
|
|
21474
|
+
value: function init(services) {
|
|
21475
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
21476
|
+
this.services = services;
|
|
21477
|
+
this.options = defaults(options, this.options || {}, getDefaults());
|
|
21478
|
+
}
|
|
21479
|
+
}, {
|
|
21480
|
+
key: "readMulti",
|
|
21481
|
+
value: function readMulti(languages, namespaces, callback) {
|
|
21482
|
+
var loadPath = this.options.loadPath;
|
|
21483
|
+
|
|
21484
|
+
if (typeof this.options.loadPath === 'function') {
|
|
21485
|
+
loadPath = this.options.loadPath(languages, namespaces);
|
|
21486
|
+
}
|
|
21487
|
+
|
|
21488
|
+
var url = this.services.interpolator.interpolate(loadPath, {
|
|
21489
|
+
lng: languages.join('+'),
|
|
21490
|
+
ns: namespaces.join('+')
|
|
21491
|
+
});
|
|
21492
|
+
this.loadUrl(url, callback);
|
|
21493
|
+
}
|
|
21494
|
+
}, {
|
|
21495
|
+
key: "read",
|
|
21496
|
+
value: function read(language, namespace, callback) {
|
|
21497
|
+
var loadPath = this.options.loadPath;
|
|
21498
|
+
|
|
21499
|
+
if (typeof this.options.loadPath === 'function') {
|
|
21500
|
+
loadPath = this.options.loadPath([language], [namespace]);
|
|
21501
|
+
}
|
|
21502
|
+
|
|
21503
|
+
var url = this.services.interpolator.interpolate(loadPath, {
|
|
21504
|
+
lng: language,
|
|
21505
|
+
ns: namespace
|
|
21506
|
+
});
|
|
21507
|
+
this.loadUrl(url, callback);
|
|
21508
|
+
}
|
|
21509
|
+
}, {
|
|
21510
|
+
key: "loadUrl",
|
|
21511
|
+
value: function loadUrl(url, callback) {
|
|
21512
|
+
var _this = this;
|
|
21513
|
+
|
|
21514
|
+
this.options.ajax(url, this.options, function (data, xhr) {
|
|
21515
|
+
if (xhr.status >= 500 && xhr.status < 600) return callback('failed loading ' + url, true
|
|
21516
|
+
/* retry */
|
|
21517
|
+
);
|
|
21518
|
+
if (xhr.status >= 400 && xhr.status < 500) return callback('failed loading ' + url, false
|
|
21519
|
+
/* no retry */
|
|
21520
|
+
);
|
|
21521
|
+
var ret, err;
|
|
21522
|
+
|
|
21523
|
+
try {
|
|
21524
|
+
ret = _this.options.parse(data, url);
|
|
21525
|
+
} catch (e) {
|
|
21526
|
+
err = 'failed parsing ' + url + ' to json';
|
|
21527
|
+
}
|
|
21528
|
+
|
|
21529
|
+
if (err) return callback(err, false);
|
|
21530
|
+
callback(null, ret);
|
|
21531
|
+
});
|
|
21532
|
+
}
|
|
21533
|
+
}, {
|
|
21534
|
+
key: "create",
|
|
21535
|
+
value: function create(languages, namespace, key, fallbackValue) {
|
|
21536
|
+
var _this2 = this;
|
|
21537
|
+
|
|
21538
|
+
if (typeof languages === 'string') languages = [languages];
|
|
21539
|
+
var payload = this.options.parsePayload(namespace, key, fallbackValue);
|
|
21540
|
+
languages.forEach(function (lng) {
|
|
21541
|
+
var url = _this2.services.interpolator.interpolate(_this2.options.addPath, {
|
|
21542
|
+
lng: lng,
|
|
21543
|
+
ns: namespace
|
|
21544
|
+
});
|
|
21545
|
+
|
|
21546
|
+
_this2.options.ajax(url, _this2.options, function (data, xhr) {//const statusCode = xhr.status.toString();
|
|
21547
|
+
// TODO: if statusCode === 4xx do log
|
|
21548
|
+
}, payload);
|
|
21549
|
+
});
|
|
21550
|
+
}
|
|
21551
|
+
}]);
|
|
21552
|
+
|
|
21553
|
+
return Backend;
|
|
21554
|
+
}();
|
|
21555
|
+
|
|
21556
|
+
Backend.type = 'backend';
|
|
21557
|
+
|
|
21558
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
|
|
21559
|
+
|
|
21560
|
+
|
|
21901
21561
|
/***/ }),
|
|
21902
21562
|
|
|
21903
21563
|
/***/ "../../common/temp/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js":
|
|
@@ -61495,7 +61155,7 @@ class StopWatch {
|
|
|
61495
61155
|
get current() { return BeDuration.fromMilliseconds(BeTimePoint.now().milliseconds - (!!this._start ? this._start.milliseconds : 0)); }
|
|
61496
61156
|
/** Get the elapsed time, in seconds, since start() on a running timer. */
|
|
61497
61157
|
get currentSeconds() { return this.current.seconds; }
|
|
61498
|
-
/** Get the elapsed time between start() and stop() on this timer. */
|
|
61158
|
+
/** Get the elapsed time between start() and stop() on this timer in milliseconds. */
|
|
61499
61159
|
get elapsed() { return BeDuration.fromMilliseconds((!!this._stop ? this._stop.milliseconds : BeTimePoint.now().milliseconds) - (!!this._start ? this._start.milliseconds : 0)); }
|
|
61500
61160
|
/** Get the elapsed time, in seconds, between start() and stop() on this timer. */
|
|
61501
61161
|
get elapsedSeconds() { return this.elapsed.seconds; }
|
|
@@ -63280,7 +62940,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
63280
62940
|
* @module Codes
|
|
63281
62941
|
*/
|
|
63282
62942
|
|
|
63283
|
-
/**
|
|
62943
|
+
/**
|
|
62944
|
+
* A three-part structure containing information about the [Code]($docs/bis/guide/fundamentals/codes) of an Element
|
|
63284
62945
|
* @public
|
|
63285
62946
|
*/
|
|
63286
62947
|
class Code {
|
|
@@ -146211,8 +145872,6 @@ class RealityMeshGeometry extends _CachedGeometry__WEBPACK_IMPORTED_MODULE_7__.I
|
|
|
146211
145872
|
}
|
|
146212
145873
|
get techniqueId() { return 7 /* RealityMesh */; }
|
|
146213
145874
|
getPass(target) {
|
|
146214
|
-
if (target.isDrawingShadowMap)
|
|
146215
|
-
return "none";
|
|
146216
145875
|
if (this._baseIsTransparent || (target.wantThematicDisplay && target.uniforms.thematic.wantIsoLines))
|
|
146217
145876
|
return "translucent";
|
|
146218
145877
|
return "opaque";
|
|
@@ -151826,6 +151485,7 @@ class SolarShadowMap {
|
|
|
151826
151485
|
this.onGraphicsChanged(this._graphics);
|
|
151827
151486
|
}
|
|
151828
151487
|
update(context) {
|
|
151488
|
+
var _a;
|
|
151829
151489
|
this._isReady = false;
|
|
151830
151490
|
this.clearGraphics(false);
|
|
151831
151491
|
if (undefined === context || !context.viewport.view.isSpatialView()) {
|
|
@@ -151835,9 +151495,7 @@ class SolarShadowMap {
|
|
|
151835
151495
|
}
|
|
151836
151496
|
const view = context.viewport.view;
|
|
151837
151497
|
const style = view.getDisplayStyle3d();
|
|
151838
|
-
|
|
151839
|
-
if (undefined === sunDirection)
|
|
151840
|
-
sunDirection = defaultSunDirection;
|
|
151498
|
+
const sunDirection = (_a = style.sunDirection) !== null && _a !== void 0 ? _a : defaultSunDirection;
|
|
151841
151499
|
const minimumHorizonDirection = -.01;
|
|
151842
151500
|
if (sunDirection.z > minimumHorizonDirection) {
|
|
151843
151501
|
this.notifyGraphicsChanged();
|
|
@@ -151859,8 +151517,21 @@ class SolarShadowMap {
|
|
|
151859
151517
|
// Limit the map to only displayed models.
|
|
151860
151518
|
const viewTileRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.createNull();
|
|
151861
151519
|
view.forEachTileTreeRef((ref) => {
|
|
151862
|
-
if (ref.castsShadows)
|
|
151863
|
-
ref.
|
|
151520
|
+
if (ref.castsShadows) {
|
|
151521
|
+
if (ref.isGlobal) {
|
|
151522
|
+
// A shadow-casting tile tree that spans the globe. Limit its range to the viewed extents.
|
|
151523
|
+
for (const p3 of viewFrustum.points) {
|
|
151524
|
+
const p4 = worldToMap.multiplyPoint3d(p3, 1);
|
|
151525
|
+
if (p4.w > 0.0001)
|
|
151526
|
+
viewTileRange.extendXYZW(p4.x, p4.y, p4.z, p4.w);
|
|
151527
|
+
else
|
|
151528
|
+
viewTileRange.high.z = Math.max(1.0, viewTileRange.high.z); // behind eye plane.
|
|
151529
|
+
}
|
|
151530
|
+
}
|
|
151531
|
+
else {
|
|
151532
|
+
ref.accumulateTransformedRange(viewTileRange, worldToMap, undefined);
|
|
151533
|
+
}
|
|
151534
|
+
}
|
|
151864
151535
|
});
|
|
151865
151536
|
if (!viewTileRange.isNull)
|
|
151866
151537
|
viewTileRange.clone(shadowRange);
|
|
@@ -167334,7 +167005,7 @@ class GltfReader {
|
|
|
167334
167005
|
if (dracoMeshes.length === 0)
|
|
167335
167006
|
return;
|
|
167336
167007
|
try {
|
|
167337
|
-
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-
|
|
167008
|
+
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_7_node_modules_loaders_gl_draco_di-a586d9"), __webpack_require__.e("_c5fe")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.7/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
|
|
167338
167009
|
await Promise.all(dracoMeshes.map(async (x) => this.decodeDracoMesh(x, dracoLoader)));
|
|
167339
167010
|
}
|
|
167340
167011
|
catch (err) {
|
|
@@ -170461,7 +170132,7 @@ function readPnts(stream, dataOffset, pnts) {
|
|
|
170461
170132
|
async function decodeDracoPointCloud(buf) {
|
|
170462
170133
|
var _a, _b, _c, _d, _e, _f;
|
|
170463
170134
|
try {
|
|
170464
|
-
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-
|
|
170135
|
+
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_7_node_modules_loaders_gl_draco_di-a586d9"), __webpack_require__.e("_c5fe")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.2.7/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
|
|
170465
170136
|
const mesh = await dracoLoader.parse(buf, {});
|
|
170466
170137
|
if (mesh.topology !== "point-list")
|
|
170467
170138
|
return undefined;
|
|
@@ -172646,6 +172317,7 @@ class RealityTileTree extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTree {
|
|
|
172646
172317
|
const preloadDebugBuilder = (debugControl && debugControl.displayRealityTilePreload) ? args.context.createSceneGraphicBuilder() : undefined;
|
|
172647
172318
|
const graphicTypeBranches = new Map();
|
|
172648
172319
|
const selectedTiles = this.selectRealityTiles(args, displayedTileDescendants, preloadDebugBuilder);
|
|
172320
|
+
args.processSelectedTiles(selectedTiles);
|
|
172649
172321
|
let sortIndices;
|
|
172650
172322
|
if (!this.parentsAndChildrenExclusive) {
|
|
172651
172323
|
sortIndices = selectedTiles.map((_x, i) => i);
|
|
@@ -176906,28 +176578,6 @@ class ArcGisUtilities {
|
|
|
176906
176578
|
return undefined;
|
|
176907
176579
|
}
|
|
176908
176580
|
}
|
|
176909
|
-
static async getFootprintJson(url, credentials) {
|
|
176910
|
-
const cached = ArcGisUtilities._footprintCache.get(url);
|
|
176911
|
-
if (cached !== undefined)
|
|
176912
|
-
return cached;
|
|
176913
|
-
try {
|
|
176914
|
-
const tmpUrl = new URL(url);
|
|
176915
|
-
tmpUrl.searchParams.append("f", "json");
|
|
176916
|
-
tmpUrl.searchParams.append("option", "footprints");
|
|
176917
|
-
tmpUrl.searchParams.append("outSR", "4326");
|
|
176918
|
-
const accessClient = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.mapLayerFormatRegistry.getAccessClient("ArcGIS");
|
|
176919
|
-
if (accessClient) {
|
|
176920
|
-
await ArcGisUtilities.appendSecurityToken(tmpUrl, accessClient, { mapLayerUrl: new URL(url), userName: credentials === null || credentials === void 0 ? void 0 : credentials.user, password: credentials === null || credentials === void 0 ? void 0 : credentials.password });
|
|
176921
|
-
}
|
|
176922
|
-
const json = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_1__.getJson)(tmpUrl.toString());
|
|
176923
|
-
ArcGisUtilities._footprintCache.set(url, json);
|
|
176924
|
-
return json;
|
|
176925
|
-
}
|
|
176926
|
-
catch (_error) {
|
|
176927
|
-
ArcGisUtilities._footprintCache.set(url, undefined);
|
|
176928
|
-
return undefined;
|
|
176929
|
-
}
|
|
176930
|
-
}
|
|
176931
176581
|
// return the appended access token if available.
|
|
176932
176582
|
static async appendSecurityToken(url, accessClient, accessTokenParams) {
|
|
176933
176583
|
// Append security token if available
|
|
@@ -176944,7 +176594,6 @@ class ArcGisUtilities {
|
|
|
176944
176594
|
}
|
|
176945
176595
|
}
|
|
176946
176596
|
ArcGisUtilities._serviceCache = new Map();
|
|
176947
|
-
ArcGisUtilities._footprintCache = new Map();
|
|
176948
176597
|
|
|
176949
176598
|
|
|
176950
176599
|
/***/ }),
|
|
@@ -177823,18 +177472,9 @@ class ArcGISMapLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_4
|
|
|
177823
177472
|
if (this._usesCachedTiles && this._tileMapSupported) {
|
|
177824
177473
|
this._tileMap = new _internal__WEBPACK_IMPORTED_MODULE_4__.ArcGISTileMap(this._settings.url, (_d = (_c = json.tileInfo) === null || _c === void 0 ? void 0 : _c.lods) === null || _d === void 0 ? void 0 : _d.length);
|
|
177825
177474
|
}
|
|
177826
|
-
|
|
177827
|
-
if (
|
|
177828
|
-
|
|
177829
|
-
if (layer.layerDefinition && layer.layerDefinition.extent) {
|
|
177830
|
-
this.cartoRange = _internal__WEBPACK_IMPORTED_MODULE_4__.MapCartoRectangle.createFromDegrees(layer.layerDefinition.extent.xmin, layer.layerDefinition.extent.ymin, layer.layerDefinition.extent.xmax, layer.layerDefinition.extent.ymax);
|
|
177831
|
-
break;
|
|
177832
|
-
}
|
|
177833
|
-
}
|
|
177834
|
-
}
|
|
177835
|
-
// Sometimes footprint request doesnt work, fallback to dataset fullextent
|
|
177836
|
-
if (this.cartoRange === undefined && json.fullExtent) {
|
|
177837
|
-
if (json.fullExtent.spatialReference.latestWkid === 3857) {
|
|
177475
|
+
// Read range using fullextent from service metadata
|
|
177476
|
+
if (json.fullExtent) {
|
|
177477
|
+
if (json.fullExtent.spatialReference.latestWkid === 3857 || json.fullExtent.spatialReference.wkid === 102100) {
|
|
177838
177478
|
const range3857 = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_6__.Range2d.createFrom({
|
|
177839
177479
|
low: { x: json.fullExtent.xmin, y: json.fullExtent.ymin },
|
|
177840
177480
|
high: { x: json.fullExtent.xmax, y: json.fullExtent.ymax }
|
|
@@ -275309,8 +274949,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
275309
274949
|
/* harmony export */ "ITwinLocalization": () => (/* binding */ ITwinLocalization)
|
|
275310
274950
|
/* harmony export */ });
|
|
275311
274951
|
/* 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");
|
|
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.
|
|
275313
|
-
/* harmony import */ var
|
|
274952
|
+
/* 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.5/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js");
|
|
274953
|
+
/* harmony import */ var i18next_xhr_backend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! i18next-xhr-backend */ "../../common/temp/node_modules/.pnpm/i18next-xhr-backend@3.2.2/node_modules/i18next-xhr-backend/dist/esm/i18nextXHRBackend.js");
|
|
275314
274954
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
275315
274955
|
/*---------------------------------------------------------------------------------------------
|
|
275316
274956
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
@@ -275346,14 +274986,13 @@ class ITwinLocalization {
|
|
|
275346
274986
|
this._initOptions = {
|
|
275347
274987
|
interpolation: { escapeValue: true },
|
|
275348
274988
|
fallbackLng: "en",
|
|
275349
|
-
maxRetries: 1,
|
|
275350
274989
|
backend: this._backendOptions,
|
|
275351
274990
|
detection: this._detectionOptions,
|
|
275352
274991
|
...options === null || options === void 0 ? void 0 : options.initOptions,
|
|
275353
274992
|
};
|
|
275354
274993
|
this.i18next
|
|
275355
274994
|
.use((_b = options === null || options === void 0 ? void 0 : options.detectorPlugin) !== null && _b !== void 0 ? _b : i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__["default"])
|
|
275356
|
-
.use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c :
|
|
274995
|
+
.use((_c = options === null || options === void 0 ? void 0 : options.backendPlugin) !== null && _c !== void 0 ? _c : i18next_xhr_backend__WEBPACK_IMPORTED_MODULE_2__["default"])
|
|
275357
274996
|
.use(TranslationLogger);
|
|
275358
274997
|
}
|
|
275359
274998
|
async initialize(namespaces) {
|
|
@@ -275474,10 +275113,10 @@ class ITwinLocalization {
|
|
|
275474
275113
|
if (!err)
|
|
275475
275114
|
return resolve();
|
|
275476
275115
|
// Here we got a non-null err object.
|
|
275477
|
-
// This method is called when the system has attempted to load the resources for the
|
|
275478
|
-
// For example 'fr-ca' might be the most specific
|
|
275479
|
-
//
|
|
275480
|
-
//
|
|
275116
|
+
// This method is called when the system has attempted to load the resources for the namespace for each
|
|
275117
|
+
// possible locale. For example 'fr-ca' might be the most specific local, in which case 'fr' ) and 'en are fallback locales.
|
|
275118
|
+
// using i18next-xhr-backend, err will be an array of strings that includes the namespace it tried to read and the locale. There
|
|
275119
|
+
// might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible language.
|
|
275481
275120
|
let locales = this.getLanguageList().map((thisLocale) => `/${thisLocale}/`);
|
|
275482
275121
|
try {
|
|
275483
275122
|
for (const thisError of err) {
|
|
@@ -300824,31 +300463,6 @@ var WidgetState;
|
|
|
300824
300463
|
|
|
300825
300464
|
/* (ignored) */
|
|
300826
300465
|
|
|
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
|
-
|
|
300852
300466
|
/***/ }),
|
|
300853
300467
|
|
|
300854
300468
|
/***/ "../../common/temp/node_modules/.pnpm/flatbuffers@1.12.0/node_modules/flatbuffers/js/flatbuffers.mjs":
|
|
@@ -302803,438 +302417,6 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
302803
302417
|
|
|
302804
302418
|
/***/ }),
|
|
302805
302419
|
|
|
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
302420
|
/***/ "../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js":
|
|
303239
302421
|
/*!****************************************************************************************************!*\
|
|
303240
302422
|
!*** ../../common/temp/node_modules/.pnpm/i18next@21.9.0/node_modules/i18next/dist/esm/i18next.js ***!
|
|
@@ -306095,7 +305277,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
306095
305277
|
/***/ ((module) => {
|
|
306096
305278
|
|
|
306097
305279
|
"use strict";
|
|
306098
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.
|
|
305280
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev.14","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.14","@itwin/core-bentley":"workspace:^3.4.0-dev.14","@itwin/core-common":"workspace:^3.4.0-dev.14","@itwin/core-geometry":"workspace:^3.4.0-dev.14","@itwin/core-orbitgt":"workspace:^3.4.0-dev.14","@itwin/core-quantity":"workspace:^3.4.0-dev.14","@itwin/webgl-compatibility":"workspace:^3.4.0-dev.14"},"//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"}}]}}');
|
|
306099
305281
|
|
|
306100
305282
|
/***/ })
|
|
306101
305283
|
|
|
@@ -306144,36 +305326,6 @@ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.4.0-dev
|
|
|
306144
305326
|
/******/ };
|
|
306145
305327
|
/******/ })();
|
|
306146
305328
|
/******/
|
|
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
|
-
/******/
|
|
306177
305329
|
/******/ /* webpack/runtime/define property getters */
|
|
306178
305330
|
/******/ (() => {
|
|
306179
305331
|
/******/ // define getter functions for harmony exports
|