@itwin/rpcinterface-full-stack-tests 5.15.0-dev.14 → 5.15.0-dev.16

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.
@@ -51901,7 +51901,8 @@ __webpack_require__.r(__webpack_exports__);
51901
51901
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
51902
51902
  /* harmony export */ EntityMetaData: () => (/* binding */ EntityMetaData),
51903
51903
  /* harmony export */ PrimitiveTypeCode: () => (/* binding */ PrimitiveTypeCode),
51904
- /* harmony export */ PropertyMetaData: () => (/* binding */ PropertyMetaData)
51904
+ /* harmony export */ PropertyMetaData: () => (/* binding */ PropertyMetaData),
51905
+ /* harmony export */ isPersisted: () => (/* binding */ isPersisted)
51905
51906
  /* harmony export */ });
51906
51907
  /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
51907
51908
  /* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
@@ -51916,6 +51917,13 @@ __webpack_require__.r(__webpack_exports__);
51916
51917
 
51917
51918
 
51918
51919
 
51920
+ /** Tests whether an [[EntityProps]] has a valid `id`, narrowing its type to [[Persisted]] if it does.
51921
+ * @public @preview
51922
+ * @extensions
51923
+ */
51924
+ function isPersisted(entity) {
51925
+ return undefined !== entity.id && _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.isValidId64(entity.id);
51926
+ }
51919
51927
  /** The primitive types of an Entity property.
51920
51928
  * @beta
51921
51929
  */
@@ -53794,6 +53802,9 @@ var GeoCoordStatus;
53794
53802
  * Geoid separation data or vertical datum differential data (such as used by NGVD29 to NAVD88 conversion).
53795
53803
  * The horizontal coordinates returned are valid but the elevation ordinate will be returned unchanged or partially changed.
53796
53804
  * This status should be somehow reported so actions can be performed to provide the missing information.
53805
+ * A finite elevation, including one equal to the input elevation, is not evidence that vertical conversion succeeded.
53806
+ * Callers requiring converted elevations must reject this result. Horizontal-only callers may use XY while retaining
53807
+ * and reporting this status. A visual fallback must not be presented as a successful vertical conversion.
53797
53808
  */
53798
53809
  GeoCoordStatus[GeoCoordStatus["VerticalDatumConvertError"] = 26] = "VerticalDatumConvertError";
53799
53810
  /** General inner conversion engine error. Coordinates returned are invalid and should be discarded */
@@ -66049,6 +66060,7 @@ __webpack_require__.r(__webpack_exports__);
66049
66060
  /* harmony export */ isBinaryImageSource: () => (/* reexport safe */ _Image__WEBPACK_IMPORTED_MODULE_69__.isBinaryImageSource),
66050
66061
  /* harmony export */ isKnownFieldPropertyType: () => (/* reexport safe */ _internal_cross_package__WEBPACK_IMPORTED_MODULE_166__.isKnownFieldPropertyType),
66051
66062
  /* harmony export */ isKnownTileFormat: () => (/* reexport safe */ _tile_TileIO__WEBPACK_IMPORTED_MODULE_162__.isKnownTileFormat),
66063
+ /* harmony export */ isPersisted: () => (/* reexport safe */ _EntityProps__WEBPACK_IMPORTED_MODULE_34__.isPersisted),
66052
66064
  /* harmony export */ isPlacement2dProps: () => (/* reexport safe */ _ElementProps__WEBPACK_IMPORTED_MODULE_32__.isPlacement2dProps),
66053
66065
  /* harmony export */ isPlacement3dProps: () => (/* reexport safe */ _ElementProps__WEBPACK_IMPORTED_MODULE_32__.isPlacement3dProps),
66054
66066
  /* harmony export */ isPowerOfTwo: () => (/* reexport safe */ _Image__WEBPACK_IMPORTED_MODULE_69__.isPowerOfTwo),
@@ -77085,7 +77097,7 @@ class IModelReadRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__.
77085
77097
  /** The immutable name of the interface. */
77086
77098
  static interfaceName = "IModelReadRpcInterface";
77087
77099
  /** The semantic version of the interface. */
77088
- static interfaceVersion = "3.8.0";
77100
+ static interfaceVersion = "3.8.1";
77089
77101
  /*===========================================================================================
77090
77102
  NOTE: Any add/remove/change to the methods below requires an update of the interface version.
77091
77103
  NOTE: Please consult the README in this folder for the semantic versioning rules.
@@ -110933,30 +110945,63 @@ class CoordinateConverter {
110933
110945
  }
110934
110946
  }
110935
110947
  /** An object capable of communicating with the backend to convert between coordinates in a geographic coordinate system and coordinates in an [[IModelConnection]]'s own coordinate system.
110948
+ * Conversion results retain the backend's per-point status, including failed vertical conversions. Check each status
110949
+ * before using elevations; [[GeoCoordStatus.VerticalDatumConvertError]] does not provide a reliable converted Z.
110950
+ * Results, including failures, are cached in this converter. Loading grids does not invalidate those cached results.
110951
+ * To retry after resources become available, finish outstanding requests and acquire a fresh converter from
110952
+ * [[GeoServices.getConverter]] instead of reusing the retained instance.
110936
110953
  * @see [[GeoServices.getConverter]] to obtain a converter.
110937
110954
  * @see [GeographicCRS]($common) for more information about geographic coordinate reference systems.
110938
110955
  * @public
110939
110956
  */
110940
110957
  class GeoConverter {
110941
- _geoToIModel;
110942
- _iModelToGeo;
110958
+ _converters;
110959
+ _gcs;
110960
+ _options;
110943
110961
  /** Used for removing this converter from GeoServices' cache after all requests are completed.
110944
110962
  * @internal
110945
110963
  */
110946
110964
  onAllRequestsCompleted = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
110947
110965
  /** @internal */
110948
110966
  constructor(opts) {
110967
+ this._options = opts;
110968
+ this._gcs = opts.getGcs?.();
110969
+ this._converters = this.createConverters();
110970
+ }
110971
+ createConverters() {
110972
+ const opts = this._options;
110949
110973
  const isIModelClosed = opts.isIModelClosed;
110950
- this._geoToIModel = new CoordinateConverter({
110951
- direction: "geoToIModel",
110952
- isIModelClosed,
110953
- requestPoints: async (geoCoords) => opts.toIModelCoords({ source: opts.datum, geoCoords }),
110954
- });
110955
- this._iModelToGeo = new CoordinateConverter({
110956
- direction: "iModelToGeo",
110957
- isIModelClosed,
110958
- requestPoints: async (iModelCoords) => opts.fromIModelCoords({ target: opts.datum, iModelCoords }),
110959
- });
110974
+ return {
110975
+ geoToIModel: new CoordinateConverter({
110976
+ direction: "geoToIModel",
110977
+ isIModelClosed,
110978
+ requestPoints: async (geoCoords) => opts.toIModelCoords({ source: opts.datum, geoCoords }),
110979
+ }),
110980
+ iModelToGeo: new CoordinateConverter({
110981
+ direction: "iModelToGeo",
110982
+ isIModelClosed,
110983
+ requestPoints: async (iModelCoords) => opts.fromIModelCoords({ target: opts.datum, iModelCoords }),
110984
+ }),
110985
+ };
110986
+ }
110987
+ refreshGcs() {
110988
+ const gcs = this._options.getGcs?.();
110989
+ if (gcs !== this._gcs) {
110990
+ this._gcs = gcs;
110991
+ this._converters = this.createConverters();
110992
+ }
110993
+ }
110994
+ async convert(points, direction) {
110995
+ for (;;) {
110996
+ this.refreshGcs();
110997
+ const converter = this._converters[direction];
110998
+ const result = await converter.convert(points);
110999
+ this.refreshGcs();
111000
+ if (converter !== this._converters[direction])
111001
+ continue;
111002
+ this.checkCompletion();
111003
+ return result;
111004
+ }
110960
111005
  }
110961
111006
  /** Convert the specified geographic coordinates into iModel coordinates. */
110962
111007
  async convertToIModelCoords(geoPoints) {
@@ -110970,8 +111015,7 @@ class GeoConverter {
110970
111015
  }
110971
111016
  /** @internal */
110972
111017
  async getIModelCoordinatesFromGeoCoordinates(geoPoints) {
110973
- const result = await this._geoToIModel.convert(geoPoints);
110974
- this.checkCompletion();
111018
+ const result = await this.convert(geoPoints, "geoToIModel");
110975
111019
  return {
110976
111020
  iModelCoords: result.points,
110977
111021
  fromCache: result.fromCache,
@@ -110979,20 +111023,20 @@ class GeoConverter {
110979
111023
  }
110980
111024
  /** @internal */
110981
111025
  async getGeoCoordinatesFromIModelCoordinates(iModelPoints) {
110982
- const result = await this._iModelToGeo.convert(iModelPoints);
110983
- this.checkCompletion();
111026
+ const result = await this.convert(iModelPoints, "iModelToGeo");
110984
111027
  return {
110985
111028
  geoCoords: result.points,
110986
111029
  fromCache: result.fromCache,
110987
111030
  };
110988
111031
  }
110989
111032
  checkCompletion() {
110990
- if (this._geoToIModel.isIdle && this._iModelToGeo.isIdle)
111033
+ if (this._converters.geoToIModel.isIdle && this._converters.iModelToGeo.isIdle)
110991
111034
  this.onAllRequestsCompleted.raiseEvent();
110992
111035
  }
110993
111036
  /** @internal */
110994
111037
  getCachedIModelCoordinatesFromGeoCoordinates(geoPoints) {
110995
- return this._geoToIModel.findCached(geoPoints);
111038
+ this.refreshGcs();
111039
+ return this._converters.geoToIModel.findCached(geoPoints);
110996
111040
  }
110997
111041
  }
110998
111042
  /** The Geographic Services available for an [[IModelConnection]].
@@ -111020,6 +111064,7 @@ class GeoServices {
111020
111064
  static createForIModel(iModel) {
111021
111065
  return new GeoServices({
111022
111066
  isIModelClosed: () => iModel.isClosed,
111067
+ getGcs: () => iModel.geographicCoordinateSystem,
111023
111068
  toIModelCoords: async (request) => {
111024
111069
  const rpc = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(iModel.routingContext.token);
111025
111070
  const response = await rpc.getIModelCoordinatesFromGeoCoordinates(iModel.getRpcProps(), request);
@@ -113145,6 +113190,25 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
113145
113190
  async generateElementMeshes(requestProps) {
113146
113191
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).generateElementMeshes(this.getRpcProps(), requestProps);
113147
113192
  }
113193
+ /** Constructs a point after validating raw ordinates, before JSON normalization can conceal NaN.
113194
+ * Omitted ordinates default to zero.
113195
+ * @throws IModelError with GeoServiceStatus.CSMapError if any supplied ordinate is non-finite.
113196
+ * @internal
113197
+ */
113198
+ static getFiniteGeoPoint(props) {
113199
+ const coordinates = Array.isArray(props) ? props : [props.x, props.y, props.z];
113200
+ for (let index = 0; index < 3; ++index) {
113201
+ // RPC marshaling converts NaN and infinities to null; reject null rather than defaulting it to zero.
113202
+ if (!Number.isFinite(coordinates[index] === undefined ? 0 : coordinates[index])) {
113203
+ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logError(loggerCategory, "Non-finite coordinate returned by geographic conversion", {
113204
+ ordinateIndex: index,
113205
+ coordinates: coordinates.map((ordinate) => String(ordinate)),
113206
+ });
113207
+ throw new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.GeoServiceStatus.CSMapError, "Non-finite coordinate returned by geographic conversion");
113208
+ }
113209
+ }
113210
+ return _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.fromJSON(props);
113211
+ }
113148
113212
  /** Convert a point in this iModel's Spatial coordinates to a [[Cartographic]] using the Geographic location services for this IModelConnection.
113149
113213
  * @param spatial A point in the iModel's spatial coordinates
113150
113214
  * @param result If defined, use this for output
@@ -113163,7 +113227,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
113163
113227
  const geoServiceStatus = (0,_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.mapToGeoServiceStatus)(coordResponse.geoCoords[0].s);
113164
113228
  throw new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelError(geoServiceStatus, "Error converting spatial to cartographic");
113165
113229
  }
113166
- const longLatHeight = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.fromJSON(coordResponse.geoCoords[0].p); // x is longitude in degrees, y is latitude in degrees, z is height in meters...
113230
+ const longLatHeight = IModelConnection.getFiniteGeoPoint(coordResponse.geoCoords[0].p); // x is longitude in degrees, y is latitude in degrees, z is height in meters...
113167
113231
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Cartographic.fromDegrees({ longitude: longLatHeight.x, latitude: longLatHeight.y, height: longLatHeight.z }, result);
113168
113232
  }
113169
113233
  /** Convert a point in this iModel's Spatial coordinates to a [[Cartographic]] using the Geographic location services for this IModelConnection or [[IModel.ecefLocation]].
@@ -113217,7 +113281,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
113217
113281
  case _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.GeoCoordStatus.NoGCSDefined:
113218
113282
  throw new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.GeoServiceStatus.NoGeoLocation, "iModel is not GeoLocated");
113219
113283
  case _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.GeoCoordStatus.Success:
113220
- const llh = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.fromJSON(coord.p);
113284
+ const llh = IModelConnection.getFiniteGeoPoint(coord.p);
113221
113285
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Cartographic.fromDegrees({ longitude: llh.x, latitude: llh.y, height: llh.z });
113222
113286
  default:
113223
113287
  throw new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelError((0,_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.mapToGeoServiceStatus)(coord.s), "Error converting spatial to cartographic");
@@ -113244,7 +113308,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
113244
113308
  throw new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelError(geoServiceStatus, "Error converting cartographic to spatial");
113245
113309
  }
113246
113310
  result = result ? result : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.createZero();
113247
- result.setFromJSON(coordResponse.iModelCoords[0].p);
113311
+ result.setFrom(IModelConnection.getFiniteGeoPoint(coordResponse.iModelCoords[0].p));
113248
113312
  return result;
113249
113313
  }
113250
113314
  /** Convert a [Cartographic]($common) to a point in this iModel's Spatial coordinates using a [[GeoConverter]] or[[IModel.ecefLocation]($common).
@@ -113294,7 +113358,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
113294
113358
  case _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.GeoCoordStatus.NoGCSDefined:
113295
113359
  throw new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.GeoServiceStatus.NoGeoLocation, "iModel is not GeoLocated");
113296
113360
  case _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.GeoCoordStatus.Success:
113297
- return _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.fromJSON(coord.p);
113361
+ return IModelConnection.getFiniteGeoPoint(coord.p);
113298
113362
  default:
113299
113363
  throw new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelError((0,_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.mapToGeoServiceStatus)(coord.s), "Error converting cartographic to spatial");
113300
113364
  }
@@ -113630,7 +113694,7 @@ class SnapshotConnection extends IModelConnection {
113630
113694
  /** @internal */
113631
113695
  async getDictionaryModel() {
113632
113696
  const res = await this._iModel.models.queryProps({ from: "bis.DictionaryModel", wantPrivate: true });
113633
- if (res.length !== 1 || res[0].id === undefined)
113697
+ if (res.length !== 1)
113634
113698
  throw new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.BadModel, "bis.DictionaryModel");
113635
113699
  return res[0].id;
113636
113700
  }
@@ -137165,6 +137229,7 @@ const extensionExports = {
137165
137229
  imageBufferToPngDataUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.imageBufferToPngDataUrl,
137166
137230
  imageElementFromImageSource: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.imageElementFromImageSource,
137167
137231
  imageElementFromUrl: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.imageElementFromUrl,
137232
+ isPersisted: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.isPersisted,
137168
137233
  queryTerrainElevationOffset: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.queryTerrainElevationOffset,
137169
137234
  readElementGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.readElementGraphics,
137170
137235
  readGltfGraphics: _core_frontend__WEBPACK_IMPORTED_MODULE_1__.readGltfGraphics,
@@ -174285,9 +174350,10 @@ __webpack_require__.r(__webpack_exports__);
174285
174350
  /* harmony import */ var _common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/FrontendLoggerCategory */ "../../core/frontend/lib/esm/common/FrontendLoggerCategory.js");
174286
174351
  /* harmony import */ var _DisplayStyleState__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../DisplayStyleState */ "../../core/frontend/lib/esm/DisplayStyleState.js");
174287
174352
  /* harmony import */ var _IModelApp__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../IModelApp */ "../../core/frontend/lib/esm/IModelApp.js");
174288
- /* harmony import */ var _RealityDataSource__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../RealityDataSource */ "../../core/frontend/lib/esm/RealityDataSource.js");
174289
- /* harmony import */ var _common_internal_render_MeshPrimitives__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../common/internal/render/MeshPrimitives */ "../../core/frontend/lib/esm/common/internal/render/MeshPrimitives.js");
174290
- /* harmony import */ var _tile_internal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../tile/internal */ "../../core/frontend/lib/esm/tile/internal.js");
174353
+ /* harmony import */ var _IModelConnection__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../IModelConnection */ "../../core/frontend/lib/esm/IModelConnection.js");
174354
+ /* harmony import */ var _RealityDataSource__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../RealityDataSource */ "../../core/frontend/lib/esm/RealityDataSource.js");
174355
+ /* harmony import */ var _common_internal_render_MeshPrimitives__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../common/internal/render/MeshPrimitives */ "../../core/frontend/lib/esm/common/internal/render/MeshPrimitives.js");
174356
+ /* harmony import */ var _tile_internal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../tile/internal */ "../../core/frontend/lib/esm/tile/internal.js");
174291
174357
  /*---------------------------------------------------------------------------------------------
174292
174358
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
174293
174359
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -174306,6 +174372,7 @@ __webpack_require__.r(__webpack_exports__);
174306
174372
 
174307
174373
 
174308
174374
 
174375
+
174309
174376
  const scratchRange = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Range3d.create();
174310
174377
  const scratchWorldFrustum = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Frustum();
174311
174378
  function compareSourceKeys(lhs, rhs) {
@@ -174369,7 +174436,7 @@ class OrbitGtTileTreeParams {
174369
174436
  id;
174370
174437
  modelId;
174371
174438
  iModel;
174372
- get priority() { return _tile_internal__WEBPACK_IMPORTED_MODULE_10__.TileLoadPriority.Context; }
174439
+ get priority() { return _tile_internal__WEBPACK_IMPORTED_MODULE_11__.TileLoadPriority.Context; }
174373
174440
  constructor(rdSourceKey, iModel, modelId, location) {
174374
174441
  this.location = location;
174375
174442
  const key = rdSourceKey;
@@ -174378,7 +174445,7 @@ class OrbitGtTileTreeParams {
174378
174445
  this.iModel = iModel;
174379
174446
  }
174380
174447
  }
174381
- class OrbitGtRootTile extends _tile_internal__WEBPACK_IMPORTED_MODULE_10__.Tile {
174448
+ class OrbitGtRootTile extends _tile_internal__WEBPACK_IMPORTED_MODULE_11__.Tile {
174382
174449
  _loadChildren(_resolve, _reject) { }
174383
174450
  async requestContent(_isCanceled) { return undefined; }
174384
174451
  get channel() { return _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.tileAdmin.channels.getForHttp("itwinjs-orbitgit"); }
@@ -174451,7 +174518,7 @@ class TileSortProjector {
174451
174518
  coordinate.z = point.z;
174452
174519
  }
174453
174520
  }
174454
- class OrbitGtTileGraphic extends _tile_internal__WEBPACK_IMPORTED_MODULE_10__.TileUsageMarker {
174521
+ class OrbitGtTileGraphic extends _tile_internal__WEBPACK_IMPORTED_MODULE_11__.TileUsageMarker {
174455
174522
  graphic;
174456
174523
  constructor(graphic, viewport, time) {
174457
174524
  super();
@@ -174462,7 +174529,7 @@ class OrbitGtTileGraphic extends _tile_internal__WEBPACK_IMPORTED_MODULE_10__.Ti
174462
174529
  this.graphic[Symbol.dispose]();
174463
174530
  }
174464
174531
  }
174465
- class OrbitGtTileTree extends _tile_internal__WEBPACK_IMPORTED_MODULE_10__.TileTree {
174532
+ class OrbitGtTileTree extends _tile_internal__WEBPACK_IMPORTED_MODULE_11__.TileTree {
174466
174533
  _dataManager;
174467
174534
  _centerOffset;
174468
174535
  _ecefTransform;
@@ -174478,7 +174545,7 @@ class OrbitGtTileTree extends _tile_internal__WEBPACK_IMPORTED_MODULE_10__.TileT
174478
174545
  this._dataManager = _dataManager;
174479
174546
  this._centerOffset = _centerOffset;
174480
174547
  this._ecefTransform = _ecefTransform;
174481
- this._layerHandler = new _tile_internal__WEBPACK_IMPORTED_MODULE_10__.LayerTileTreeHandler(this);
174548
+ this._layerHandler = new _tile_internal__WEBPACK_IMPORTED_MODULE_11__.LayerTileTreeHandler(this);
174482
174549
  this._tileParams = { contentId: "0", range: cloudRange, maximumSize: 256 };
174483
174550
  this.rootTile = new OrbitGtRootTile(this._tileParams, this);
174484
174551
  }
@@ -174548,7 +174615,7 @@ class OrbitGtTileTree extends _tile_internal__WEBPACK_IMPORTED_MODULE_10__.TileT
174548
174615
  range.high.addInPlace(this._centerOffset);
174549
174616
  const qParams = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.QParams3d.fromRange(range, undefined, (tile.points8 != null) ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Quantization.rangeScale8 : _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Quantization.rangeScale16);
174550
174617
  const featureTable = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.FeatureTable(1, this.modelId, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BatchType.Primary);
174551
- const features = new _common_internal_render_MeshPrimitives__WEBPACK_IMPORTED_MODULE_9__.Mesh.Features(featureTable);
174618
+ const features = new _common_internal_render_MeshPrimitives__WEBPACK_IMPORTED_MODULE_10__.Mesh.Features(featureTable);
174552
174619
  const system = _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.renderSystem;
174553
174620
  const voxelSize = (range.high.x - range.low.x) / 64;
174554
174621
  features.add(new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.Feature(this.modelId), 1);
@@ -174623,7 +174690,17 @@ async function computeVerticalDatumShift(geoOrigin, heightAsEllipsoidalDbZ, iMod
174623
174690
  _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logWarning(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_5__.FrontendLoggerCategory.RealityData, `Failed to compute orthometric height correction for point cloud (status ${response.iModelCoords[0].s}); heights will be treated as ellipsoidal`);
174624
174691
  return 0;
174625
174692
  }
174626
- return _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Point3d.fromJSON(response.iModelCoords[0].p).z - heightAsEllipsoidalDbZ;
174693
+ try {
174694
+ const converted = _IModelConnection__WEBPACK_IMPORTED_MODULE_8__.IModelConnection.getFiniteGeoPoint(response.iModelCoords[0].p);
174695
+ const shift = converted.z - heightAsEllipsoidalDbZ;
174696
+ if (!Number.isFinite(shift))
174697
+ throw new Error("Non-finite orthometric height correction");
174698
+ return shift;
174699
+ }
174700
+ catch {
174701
+ _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logWarning(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_5__.FrontendLoggerCategory.RealityData, "Non-finite orthometric height correction for point cloud; heights will be treated as ellipsoidal");
174702
+ return 0;
174703
+ }
174627
174704
  }
174628
174705
  catch (err) {
174629
174706
  _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logError(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_5__.FrontendLoggerCategory.RealityData, err);
@@ -174653,7 +174730,7 @@ async function computeVerticalDatumShift(geoOrigin, heightAsEllipsoidalDbZ, iMod
174653
174730
  return isValidSASToken(props.sasToken);
174654
174731
  }
174655
174732
  async function createOrbitGtTileTree(rdSourceKey, iModel, modelId) {
174656
- const rdSource = await _RealityDataSource__WEBPACK_IMPORTED_MODULE_8__.RealityDataSource.fromKey(rdSourceKey, iModel.iTwinId);
174733
+ const rdSource = await _RealityDataSource__WEBPACK_IMPORTED_MODULE_9__.RealityDataSource.fromKey(rdSourceKey, iModel.iTwinId);
174657
174734
  const isContextShare = rdSourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.ContextShare;
174658
174735
  const isTilestUrl = rdSourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.TilesetUrl;
174659
174736
  let blobStringUrl;
@@ -174672,7 +174749,7 @@ async function computeVerticalDatumShift(geoOrigin, heightAsEllipsoidalDbZ, iMod
174672
174749
  blobStringUrl = rdSourceKey.id;
174673
174750
  }
174674
174751
  else {
174675
- const orbitGtBlobProps = _RealityDataSource__WEBPACK_IMPORTED_MODULE_8__.RealityDataSource.createOrbitGtBlobPropsFromKey(rdSourceKey);
174752
+ const orbitGtBlobProps = _RealityDataSource__WEBPACK_IMPORTED_MODULE_9__.RealityDataSource.createOrbitGtBlobPropsFromKey(rdSourceKey);
174676
174753
  if (orbitGtBlobProps === undefined)
174677
174754
  return undefined;
174678
174755
  if (!isValidOrbitGtBlobProps(orbitGtBlobProps))
@@ -174761,7 +174838,7 @@ async function computeVerticalDatumShift(geoOrigin, heightAsEllipsoidalDbZ, iMod
174761
174838
  /** Supplies a reality data [[TileTree]] from a URL. May be associated with a persistent [[GeometricModelState]], or attached at run-time via a [[ContextOrbitGtState]].
174762
174839
  * Exported strictly for tests.
174763
174840
  */
174764
- class OrbitGtTreeReference extends _tile_internal__WEBPACK_IMPORTED_MODULE_10__.RealityModelTileTree.Reference {
174841
+ class OrbitGtTreeReference extends _tile_internal__WEBPACK_IMPORTED_MODULE_11__.RealityModelTileTree.Reference {
174765
174842
  treeOwner;
174766
174843
  _rdSourceKey;
174767
174844
  _modelId;
@@ -174774,11 +174851,11 @@ class OrbitGtTreeReference extends _tile_internal__WEBPACK_IMPORTED_MODULE_10__.
174774
174851
  this._rdSourceKey = props.rdSourceKey;
174775
174852
  }
174776
174853
  else if (props.orbitGtBlob) {
174777
- this._rdSourceKey = _RealityDataSource__WEBPACK_IMPORTED_MODULE_8__.RealityDataSource.createKeyFromOrbitGtBlobProps(props.orbitGtBlob);
174854
+ this._rdSourceKey = _RealityDataSource__WEBPACK_IMPORTED_MODULE_9__.RealityDataSource.createKeyFromOrbitGtBlobProps(props.orbitGtBlob);
174778
174855
  }
174779
174856
  else {
174780
174857
  // TODO: Maybe we should throw an exception
174781
- this._rdSourceKey = _RealityDataSource__WEBPACK_IMPORTED_MODULE_8__.RealityDataSource.createKeyFromBlobUrl("", _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.OrbitGtBlob, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataFormat.OPC);
174858
+ this._rdSourceKey = _RealityDataSource__WEBPACK_IMPORTED_MODULE_9__.RealityDataSource.createKeyFromBlobUrl("", _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.OrbitGtBlob, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataFormat.OPC);
174782
174859
  }
174783
174860
  // ###TODO find compatible model Id
174784
174861
  let modelId = props.modelId;
@@ -316600,7 +316677,7 @@ __webpack_require__.r(__webpack_exports__);
316600
316677
  /* harmony export */ });
316601
316678
  /* harmony import */ var i18next__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! i18next */ "../../common/temp/node_modules/.pnpm/i18next@21.10.0/node_modules/i18next/dist/esm/i18next.js");
316602
316679
  /* 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.8/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js");
316603
- /* harmony import */ var i18next_http_backend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.6/node_modules/i18next-http-backend/esm/index.js");
316680
+ /* harmony import */ var i18next_http_backend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! i18next-http-backend */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@4.0.5/node_modules/i18next-http-backend/esm/index.js");
316604
316681
  /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
316605
316682
  /*---------------------------------------------------------------------------------------------
316606
316683
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
@@ -344285,7 +344362,7 @@ class TestContext {
344285
344362
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
344286
344363
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
344287
344364
  await core_frontend_1.NoRenderApp.startup({
344288
- applicationVersion: "5.15.0-dev.14",
344365
+ applicationVersion: "5.15.0-dev.16",
344289
344366
  applicationId: this.settings.gprid,
344290
344367
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
344291
344368
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -366458,534 +366535,377 @@ const isSafeIterable = (thing) =>
366458
366535
 
366459
366536
  /***/ },
366460
366537
 
366461
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.6/node_modules/i18next-http-backend/esm/index.js"
366538
+ /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@4.0.5/node_modules/i18next-http-backend/esm/index.js"
366462
366539
  /*!**********************************************************************************************************************!*\
366463
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.6/node_modules/i18next-http-backend/esm/index.js ***!
366540
+ !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@4.0.5/node_modules/i18next-http-backend/esm/index.js ***!
366464
366541
  \**********************************************************************************************************************/
366465
366542
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
366466
366543
 
366467
366544
  "use strict";
366468
366545
  __webpack_require__.r(__webpack_exports__);
366469
366546
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
366470
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
366547
+ /* harmony export */ "default": () => (/* binding */ Backend)
366471
366548
  /* harmony export */ });
366472
- /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.6/node_modules/i18next-http-backend/esm/utils.js");
366473
- /* harmony import */ var _request_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./request.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.6/node_modules/i18next-http-backend/esm/request.js");
366474
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
366475
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
366476
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
366477
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
366478
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
366479
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
366480
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
366481
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
366482
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
366483
- ;
366484
-
366485
- var getDefaults = function getDefaults() {
366486
- return {
366487
- loadPath: '/locales/{{lng}}/{{ns}}.json',
366488
- addPath: '/locales/add/{{lng}}/{{ns}}',
366489
- parse: function parse(data) {
366490
- return JSON.parse(data);
366491
- },
366492
- stringify: JSON.stringify,
366493
- parsePayload: function parsePayload(namespace, key, fallbackValue) {
366494
- return _defineProperty({}, key, fallbackValue || '');
366495
- },
366496
- parseLoadPayload: function parseLoadPayload(languages, namespaces) {
366497
- return undefined;
366498
- },
366499
- request: _request_js__WEBPACK_IMPORTED_MODULE_1__["default"],
366500
- reloadInterval: typeof window !== 'undefined' ? false : 60 * 60 * 1000,
366501
- customHeaders: {},
366502
- queryStringParams: {},
366503
- crossDomain: false,
366504
- withCredentials: false,
366505
- overrideMimeType: false,
366506
- requestOptions: {
366507
- mode: 'cors',
366508
- credentials: 'same-origin',
366509
- cache: 'default'
366510
- }
366511
- };
366512
- };
366513
- var Backend = function () {
366514
- function Backend(services) {
366515
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
366516
- var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
366517
- _classCallCheck(this, Backend);
366518
- this.services = services;
366519
- this.options = options;
366520
- this.allOptions = allOptions;
366521
- this.type = 'backend';
366522
- this.init(services, options, allOptions);
366523
- }
366524
- return _createClass(Backend, [{
366525
- key: "init",
366526
- value: function init(services) {
366527
- var _this = this;
366528
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
366529
- var allOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
366530
- this.services = services;
366531
- this.options = _objectSpread(_objectSpread(_objectSpread({}, getDefaults()), this.options || {}), options);
366532
- this.allOptions = allOptions;
366533
- if (this.services && this.options.reloadInterval) {
366534
- var timer = setInterval(function () {
366535
- return _this.reload();
366536
- }, this.options.reloadInterval);
366537
- if (_typeof(timer) === 'object' && typeof timer.unref === 'function') timer.unref();
366538
- }
366539
- }
366540
- }, {
366541
- key: "readMulti",
366542
- value: function readMulti(languages, namespaces, callback) {
366543
- this._readAny(languages, languages, namespaces, namespaces, callback);
366544
- }
366545
- }, {
366546
- key: "read",
366547
- value: function read(language, namespace, callback) {
366548
- this._readAny([language], language, [namespace], namespace, callback);
366549
- }
366550
- }, {
366551
- key: "_readAny",
366552
- value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
366553
- var _this2 = this;
366554
- var loadPath = this.options.loadPath;
366555
- if (typeof this.options.loadPath === 'function') {
366556
- loadPath = this.options.loadPath(languages, namespaces);
366557
- }
366558
- loadPath = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.makePromise)(loadPath);
366559
- loadPath.then(function (resolvedLoadPath) {
366560
- if (!resolvedLoadPath) return callback(null, {});
366561
- var url = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.interpolateUrl)(resolvedLoadPath, {
366562
- lng: languages.join('+'),
366563
- ns: namespaces.join('+')
366564
- });
366565
- if (url == null) {
366566
- var safeLngs = languages.map(_utils_js__WEBPACK_IMPORTED_MODULE_0__.sanitizeLogValue).join(', ');
366567
- var safeNss = namespaces.map(_utils_js__WEBPACK_IMPORTED_MODULE_0__.sanitizeLogValue).join(', ');
366568
- return callback(new Error('i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=[' + safeLngs + '] namespaces=[' + safeNss + ']'), false);
366569
- }
366570
- _this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
366571
- });
366572
- }
366573
- }, {
366574
- key: "loadUrl",
366575
- value: function loadUrl(url, callback, languages, namespaces) {
366576
- var _this3 = this;
366577
- var lng = typeof languages === 'string' ? [languages] : languages;
366578
- var ns = typeof namespaces === 'string' ? [namespaces] : namespaces;
366579
- var payload = this.options.parseLoadPayload(lng, ns);
366580
- var safeUrl = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.sanitizeLogValue)((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.redactUrlCredentials)(url));
366581
- this.options.request(this.options, url, payload, function (err, res) {
366582
- if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback('failed loading ' + safeUrl + '; status code: ' + res.status, true);
366583
- if (res && res.status >= 400 && res.status < 500) return callback('failed loading ' + safeUrl + '; status code: ' + res.status, false);
366584
- if (!res && err && err.message) {
366585
- var errorMessage = err.message.toLowerCase();
366586
- var isNetworkError = ['failed', 'fetch', 'network', 'load'].find(function (term) {
366587
- return errorMessage.indexOf(term) > -1;
366588
- });
366589
- if (isNetworkError) {
366590
- return callback('failed loading ' + safeUrl + ': ' + (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.sanitizeLogValue)(err.message), true);
366591
- }
366592
- }
366593
- if (err) return callback(err, false);
366594
- var ret, parseErr;
366595
- try {
366596
- if (typeof res.data === 'string') {
366597
- ret = _this3.options.parse(res.data, languages, namespaces);
366598
- } else {
366599
- ret = res.data;
366600
- }
366601
- } catch (e) {
366602
- parseErr = 'failed parsing ' + safeUrl + ' to json';
366603
- }
366604
- if (parseErr) return callback(parseErr, false);
366605
- callback(null, ret);
366606
- });
366607
- }
366608
- }, {
366609
- key: "create",
366610
- value: function create(languages, namespace, key, fallbackValue, callback) {
366611
- var _this4 = this;
366612
- if (!this.options.addPath) return;
366613
- if (typeof languages === 'string') languages = [languages];
366614
- var payload = this.options.parsePayload(namespace, key, fallbackValue);
366615
- var finished = 0;
366616
- var dataArray = [];
366617
- var resArray = [];
366618
- languages.forEach(function (lng) {
366619
- var addPath = _this4.options.addPath;
366620
- if (typeof _this4.options.addPath === 'function') {
366621
- addPath = _this4.options.addPath(lng, namespace);
366622
- }
366623
- var url = (0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.interpolateUrl)(addPath, {
366624
- lng: lng,
366625
- ns: namespace
366626
- });
366627
- if (url == null) {
366628
- finished += 1;
366629
- if (callback && finished === languages.length) callback(dataArray, resArray);
366630
- return;
366631
- }
366632
- _this4.options.request(_this4.options, url, payload, function (data, res) {
366633
- finished += 1;
366634
- dataArray.push(data);
366635
- resArray.push(res);
366636
- if (finished === languages.length) {
366637
- if (typeof callback === 'function') callback(dataArray, resArray);
366638
- }
366639
- });
366640
- });
366641
- }
366642
- }, {
366643
- key: "reload",
366644
- value: function reload() {
366645
- var _this5 = this;
366646
- var _this$services = this.services,
366647
- backendConnector = _this$services.backendConnector,
366648
- languageUtils = _this$services.languageUtils,
366649
- logger = _this$services.logger;
366650
- var currentLanguage = backendConnector.language;
366651
- if (currentLanguage && currentLanguage.toLowerCase() === 'cimode') return;
366652
- var toLoad = [];
366653
- var append = function append(lng) {
366654
- var lngs = languageUtils.toResolveHierarchy(lng);
366655
- lngs.forEach(function (l) {
366656
- if (toLoad.indexOf(l) < 0) toLoad.push(l);
366657
- });
366658
- };
366659
- append(currentLanguage);
366660
- if (this.allOptions.preload) this.allOptions.preload.forEach(function (l) {
366661
- return append(l);
366662
- });
366663
- toLoad.forEach(function (lng) {
366664
- _this5.allOptions.ns.forEach(function (ns) {
366665
- backendConnector.read(lng, ns, 'read', null, null, function (err, data) {
366666
- if (err) logger.warn("loading namespace ".concat(ns, " for language ").concat(lng, " failed"), err);
366667
- if (!err && data) logger.log("loaded namespace ".concat(ns, " for language ").concat(lng), data);
366668
- backendConnector.loaded("".concat(lng, "|").concat(ns), err, data);
366669
- });
366670
- });
366671
- });
366672
- }
366673
- }]);
366674
- }();
366675
- Backend.type = 'backend';
366676
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Backend);
366677
-
366678
- /***/ },
366679
-
366680
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.6/node_modules/i18next-http-backend/esm/request.js"
366681
- /*!************************************************************************************************************************!*\
366682
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.6/node_modules/i18next-http-backend/esm/request.js ***!
366683
- \************************************************************************************************************************/
366684
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
366685
-
366686
- "use strict";
366687
- __webpack_require__.r(__webpack_exports__);
366688
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
366689
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
366690
- /* harmony export */ });
366691
- /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.6/node_modules/i18next-http-backend/esm/utils.js");
366692
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
366693
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
366694
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
366695
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
366696
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
366697
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
366698
- ;
366699
- var fetchApi = typeof fetch === 'function' ? fetch : undefined;
366700
- if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.fetch) {
366701
- fetchApi = __webpack_require__.g.fetch;
366702
- } else if (typeof window !== 'undefined' && window.fetch) {
366703
- fetchApi = window.fetch;
366704
- }
366705
- var XmlHttpRequestApi;
366706
- if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)()) {
366707
- if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.XMLHttpRequest) {
366708
- XmlHttpRequestApi = __webpack_require__.g.XMLHttpRequest;
366709
- } else if (typeof window !== 'undefined' && window.XMLHttpRequest) {
366710
- XmlHttpRequestApi = window.XMLHttpRequest;
366711
- }
366712
- }
366713
- var ActiveXObjectApi;
366714
- if (typeof ActiveXObject === 'function') {
366715
- if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.ActiveXObject) {
366716
- ActiveXObjectApi = __webpack_require__.g.ActiveXObject;
366717
- } else if (typeof window !== 'undefined' && window.ActiveXObject) {
366718
- ActiveXObjectApi = window.ActiveXObject;
366719
- }
366720
- }
366721
- if (typeof fetchApi !== 'function') fetchApi = undefined;
366722
- if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
366723
- try {
366724
- __webpack_require__.e(/*! import() */ "vendors-common_temp_node_modules_pnpm_cross-fetch_4_1_0_node_modules_cross-fetch_dist_browser-44272f").then(() => (__webpack_require__.t(/*! cross-fetch */ "../../common/temp/node_modules/.pnpm/cross-fetch@4.1.0/node_modules/cross-fetch/dist/browser-ponyfill.js", 19))).then(function (mod) {
366725
- fetchApi = mod.default;
366726
- }).catch(function () {});
366727
- } catch (e) {}
366728
- }
366729
- var UNSAFE_KEYS = ['__proto__', 'constructor', 'prototype'];
366730
- var addQueryString = function addQueryString(url, params) {
366731
- if (params && _typeof(params) === 'object') {
366732
- var queryString = '';
366733
- for (var _i = 0, _Object$keys = Object.keys(params); _i < _Object$keys.length; _i++) {
366734
- var paramName = _Object$keys[_i];
366735
- if (UNSAFE_KEYS.indexOf(paramName) > -1) continue;
366736
- queryString += '&' + encodeURIComponent(paramName) + '=' + encodeURIComponent(params[paramName]);
366737
- }
366738
- if (!queryString) return url;
366739
- url = url + (url.indexOf('?') !== -1 ? '&' : '?') + queryString.slice(1);
366740
- }
366741
- return url;
366742
- };
366743
- var fetchIt = function fetchIt(url, fetchOptions, callback, altFetch) {
366744
- var resolver = function resolver(response) {
366745
- if (!response.ok) return callback(response.statusText || 'Error', {
366746
- status: response.status
366747
- });
366748
- response.text().then(function (data) {
366749
- callback(null, {
366750
- status: response.status,
366751
- data: data
366752
- });
366753
- }).catch(callback);
366754
- };
366755
- if (altFetch) {
366756
- var altResponse = altFetch(url, fetchOptions);
366757
- if (altResponse instanceof Promise) {
366758
- altResponse.then(resolver).catch(callback);
366759
- return;
366760
- }
366761
- }
366762
- if (typeof fetch === 'function') {
366763
- fetch(url, fetchOptions).then(resolver).catch(callback);
366764
- } else {
366765
- fetchApi(url, fetchOptions).then(resolver).catch(callback);
366766
- }
366767
- };
366768
- var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
366769
- if (options.queryStringParams) {
366770
- url = addQueryString(url, options.queryStringParams);
366771
- }
366772
- var headers = _objectSpread({}, typeof options.customHeaders === 'function' ? options.customHeaders() : options.customHeaders);
366773
- if (typeof window === 'undefined' && typeof __webpack_require__.g !== 'undefined' && typeof __webpack_require__.g.process !== 'undefined' && __webpack_require__.g.process.versions && __webpack_require__.g.process.versions.node) {
366774
- headers['User-Agent'] = "i18next-http-backend (node/".concat(__webpack_require__.g.process.version, "; ").concat(__webpack_require__.g.process.platform, " ").concat(__webpack_require__.g.process.arch, ")");
366775
- }
366776
- if (payload) headers['Content-Type'] = 'application/json';
366777
- var reqOptions = typeof options.requestOptions === 'function' ? options.requestOptions(payload) : options.requestOptions;
366778
- var fetchOptions = _objectSpread({
366779
- method: payload ? 'POST' : 'GET',
366780
- body: payload ? options.stringify(payload) : undefined,
366781
- headers: headers
366782
- }, options._omitFetchOptions ? {} : reqOptions);
366783
- var altFetch = typeof options.alternateFetch === 'function' && options.alternateFetch.length >= 1 ? options.alternateFetch : undefined;
366784
- try {
366785
- fetchIt(url, fetchOptions, callback, altFetch);
366786
- } catch (e) {
366787
- if (!reqOptions || Object.keys(reqOptions).length === 0 || !e.message || e.message.indexOf('not implemented') < 0) {
366788
- return callback(e);
366789
- }
366790
- try {
366791
- Object.keys(reqOptions).forEach(function (opt) {
366792
- delete fetchOptions[opt];
366793
- });
366794
- fetchIt(url, fetchOptions, callback, altFetch);
366795
- options._omitFetchOptions = true;
366796
- } catch (err) {
366797
- callback(err);
366798
- }
366799
- }
366800
- };
366801
- var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url, payload, callback) {
366802
- if (payload && _typeof(payload) === 'object') {
366803
- payload = addQueryString('', payload).slice(1);
366804
- }
366805
- if (options.queryStringParams) {
366806
- url = addQueryString(url, options.queryStringParams);
366807
- }
366808
- try {
366809
- var x = XmlHttpRequestApi ? new XmlHttpRequestApi() : new ActiveXObjectApi('MSXML2.XMLHTTP.3.0');
366810
- x.open(payload ? 'POST' : 'GET', url, 1);
366811
- if (!options.crossDomain) {
366812
- x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
366813
- }
366814
- x.withCredentials = !!options.withCredentials;
366815
- if (payload) {
366816
- x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
366817
- }
366818
- if (x.overrideMimeType) {
366819
- x.overrideMimeType('application/json');
366820
- }
366821
- var h = options.customHeaders;
366822
- h = typeof h === 'function' ? h() : h;
366823
- if (h) {
366824
- for (var _i2 = 0, _Object$keys2 = Object.keys(h); _i2 < _Object$keys2.length; _i2++) {
366825
- var i = _Object$keys2[_i2];
366826
- if (UNSAFE_KEYS.indexOf(i) > -1) continue;
366827
- x.setRequestHeader(i, h[i]);
366828
- }
366829
- }
366830
- x.onreadystatechange = function () {
366831
- x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
366832
- status: x.status,
366833
- data: x.responseText
366834
- });
366835
- };
366836
- x.send(payload);
366837
- } catch (e) {
366838
- console && console.log(e);
366839
- }
366840
- };
366841
- var request = function request(options, url, payload, callback) {
366842
- if (typeof payload === 'function') {
366843
- callback = payload;
366844
- payload = undefined;
366845
- }
366846
- callback = callback || function () {};
366847
- if (fetchApi && url.indexOf('file:') !== 0) {
366848
- return requestWithFetch(options, url, payload, callback);
366849
- }
366850
- if ((0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.hasXMLHttpRequest)() || typeof ActiveXObject === 'function') {
366851
- return requestWithXmlHttpRequest(options, url, payload, callback);
366852
- }
366853
- callback(new Error('No fetch and no xhr implementation found!'));
366854
- };
366855
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (request);
366856
-
366857
- /***/ },
366858
-
366859
- /***/ "../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.6/node_modules/i18next-http-backend/esm/utils.js"
366860
- /*!**********************************************************************************************************************!*\
366861
- !*** ../../common/temp/node_modules/.pnpm/i18next-http-backend@3.0.6/node_modules/i18next-http-backend/esm/utils.js ***!
366862
- \**********************************************************************************************************************/
366863
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
366864
-
366865
- "use strict";
366866
- __webpack_require__.r(__webpack_exports__);
366867
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
366868
- /* harmony export */ defaults: () => (/* binding */ defaults),
366869
- /* harmony export */ hasXMLHttpRequest: () => (/* binding */ hasXMLHttpRequest),
366870
- /* harmony export */ interpolate: () => (/* binding */ interpolate),
366871
- /* harmony export */ interpolateUrl: () => (/* binding */ interpolateUrl),
366872
- /* harmony export */ isSafeLangUrlSegment: () => (/* binding */ isSafeLangUrlSegment),
366873
- /* harmony export */ isSafeNsUrlSegment: () => (/* binding */ isSafeNsUrlSegment),
366874
- /* harmony export */ isSafeUrlSegment: () => (/* binding */ isSafeUrlSegment),
366875
- /* harmony export */ makePromise: () => (/* binding */ makePromise),
366876
- /* harmony export */ redactUrlCredentials: () => (/* binding */ redactUrlCredentials),
366877
- /* harmony export */ sanitizeLogValue: () => (/* binding */ sanitizeLogValue)
366878
- /* harmony export */ });
366879
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
366880
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
366881
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
366882
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
366883
- var arr = [];
366884
- var each = arr.forEach;
366885
- var slice = arr.slice;
366886
- var UNSAFE_KEYS = ['__proto__', 'constructor', 'prototype'];
366887
- function defaults(obj) {
366888
- each.call(slice.call(arguments, 1), function (source) {
366889
- if (source) {
366890
- for (var _i = 0, _Object$keys = Object.keys(source); _i < _Object$keys.length; _i++) {
366891
- var prop = _Object$keys[_i];
366892
- if (UNSAFE_KEYS.indexOf(prop) > -1) continue;
366893
- if (obj[prop] === undefined) obj[prop] = source[prop];
366894
- }
366895
- }
366896
- });
366897
- return obj;
366898
- }
366549
+ //#region lib/utils.js
366550
+ const arr = [];
366551
+ arr.forEach;
366552
+ arr.slice;
366553
+ const UNSAFE_KEYS$1 = [
366554
+ "__proto__",
366555
+ "constructor",
366556
+ "prototype"
366557
+ ];
366899
366558
  function isSafeUrlSegmentBase(v) {
366900
- if (typeof v !== 'string') return false;
366901
- if (v.length === 0 || v.length > 128) return false;
366902
- if (UNSAFE_KEYS.indexOf(v) > -1) return false;
366903
- if (v.indexOf('..') > -1) return false;
366904
- if (v.indexOf('\\') > -1) return false;
366905
- if (/[?#%\s@]/.test(v)) return false;
366906
- if (/[\x00-\x1F\x7F]/.test(v)) return false;
366907
- return true;
366559
+ if (typeof v !== "string") return false;
366560
+ if (v.length === 0 || v.length > 128) return false;
366561
+ if (UNSAFE_KEYS$1.indexOf(v) > -1) return false;
366562
+ if (v.indexOf("..") > -1) return false;
366563
+ if (v.indexOf("\\") > -1) return false;
366564
+ if (/[?#%:&=;\s]/.test(v)) return false;
366565
+ if (/[\x00-\x1F\x7F]/.test(v)) return false;
366566
+ return true;
366908
366567
  }
366909
366568
  function isSafeLangUrlSegment(v) {
366910
- if (!isSafeUrlSegmentBase(v)) return false;
366911
- if (v.indexOf('/') > -1) return false;
366912
- return true;
366569
+ if (!isSafeUrlSegmentBase(v)) return false;
366570
+ if (v.indexOf("/") > -1 || v.indexOf("@") > -1) return false;
366571
+ return true;
366913
366572
  }
366914
366573
  function isSafeNsUrlSegment(v) {
366915
- return isSafeUrlSegmentBase(v);
366574
+ if (!isSafeUrlSegmentBase(v)) return false;
366575
+ if (v.indexOf("//") > -1) return false;
366576
+ return true;
366916
366577
  }
366917
- var isSafeUrlSegment = isSafeLangUrlSegment;
366918
- var SAFETY_CHECK_BY_KEY = {
366919
- lng: isSafeLangUrlSegment,
366920
- ns: isSafeNsUrlSegment
366578
+ const SAFETY_CHECK_BY_KEY = {
366579
+ lng: isSafeLangUrlSegment,
366580
+ ns: isSafeNsUrlSegment
366921
366581
  };
366922
366582
  function sanitizeLogValue(v) {
366923
- if (typeof v !== 'string') return v;
366924
- return v.replace(/[\r\n\x00-\x1F\x7F]/g, ' ');
366583
+ if (typeof v !== "string") return v;
366584
+ return v.replace(/[\r\n\x00-\x1F\x7F]/g, " ");
366925
366585
  }
366926
366586
  function redactUrlCredentials(u) {
366927
- if (typeof u !== 'string' || u.length === 0) return u;
366928
- try {
366929
- var parsed = new URL(u);
366930
- if (parsed.username || parsed.password) {
366931
- parsed.username = '';
366932
- parsed.password = '';
366933
- return parsed.toString();
366934
- }
366935
- return u;
366936
- } catch (e) {
366937
- return u.replace(/(\/\/)[^/@\s]+@/g, '$1');
366938
- }
366587
+ if (typeof u !== "string" || u.length === 0) return u;
366588
+ try {
366589
+ const parsed = new URL(u);
366590
+ if (parsed.username || parsed.password) {
366591
+ parsed.username = "";
366592
+ parsed.password = "";
366593
+ return parsed.toString();
366594
+ }
366595
+ return u;
366596
+ } catch (e) {
366597
+ return u.replace(/(\/\/)[^/@\s]+@/g, "$1");
366598
+ }
366939
366599
  }
366940
366600
  function hasXMLHttpRequest() {
366941
- return typeof XMLHttpRequest === 'function' || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) === 'object';
366601
+ return typeof XMLHttpRequest === "function" || typeof XMLHttpRequest === "object";
366942
366602
  }
366603
+ /**
366604
+ * Determine whether the given `maybePromise` is a Promise.
366605
+ *
366606
+ * @param {*} maybePromise
366607
+ *
366608
+ * @returns {Boolean}
366609
+ */
366943
366610
  function isPromise(maybePromise) {
366944
- return !!maybePromise && typeof maybePromise.then === 'function';
366611
+ return !!maybePromise && typeof maybePromise.then === "function";
366945
366612
  }
366613
+ /**
366614
+ * Convert any value to a Promise than will resolve to this value.
366615
+ *
366616
+ * @param {*} maybePromise
366617
+ *
366618
+ * @returns {Promise}
366619
+ */
366946
366620
  function makePromise(maybePromise) {
366947
- if (isPromise(maybePromise)) {
366948
- return maybePromise;
366949
- }
366950
- return Promise.resolve(maybePromise);
366951
- }
366952
- var interpolationRegexp = /\{\{(.+?)\}\}/g;
366953
- function interpolate(str, data) {
366954
- return str.replace(interpolationRegexp, function (match, key) {
366955
- var k = key.trim();
366956
- if (UNSAFE_KEYS.indexOf(k) > -1) return match;
366957
- var value = data[k];
366958
- return value != null ? value : match;
366959
- });
366621
+ if (isPromise(maybePromise)) return maybePromise;
366622
+ return Promise.resolve(maybePromise);
366960
366623
  }
366624
+ const interpolationRegexp = /\{\{(.+?)\}\}/g;
366625
+ const LEADING_DOUBLE_SLASH = /^[/\\]{2}/;
366961
366626
  function interpolateUrl(str, data) {
366962
- var unsafe = false;
366963
- var result = str.replace(interpolationRegexp, function (match, key) {
366964
- var k = key.trim();
366965
- if (UNSAFE_KEYS.indexOf(k) > -1) return match;
366966
- var value = data[k];
366967
- if (value == null) return match;
366968
- var check = SAFETY_CHECK_BY_KEY[k] || isSafeLangUrlSegment;
366969
- var segments = String(value).split('+');
366970
- var _iterator = _createForOfIteratorHelper(segments),
366971
- _step;
366972
- try {
366973
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
366974
- var seg = _step.value;
366975
- if (!check(seg)) {
366976
- unsafe = true;
366977
- return match;
366978
- }
366979
- }
366980
- } catch (err) {
366981
- _iterator.e(err);
366982
- } finally {
366983
- _iterator.f();
366984
- }
366985
- return segments.join('+');
366986
- });
366987
- return unsafe ? null : result;
366988
- }
366627
+ let unsafe = false;
366628
+ const result = str.replace(interpolationRegexp, (match, key) => {
366629
+ const k = key.trim();
366630
+ if (UNSAFE_KEYS$1.indexOf(k) > -1) return match;
366631
+ const value = data[k];
366632
+ if (value == null) return match;
366633
+ const check = SAFETY_CHECK_BY_KEY[k] || isSafeLangUrlSegment;
366634
+ const segments = String(value).split("+");
366635
+ for (const seg of segments) if (!check(seg)) {
366636
+ unsafe = true;
366637
+ return match;
366638
+ }
366639
+ return segments.join("+");
366640
+ });
366641
+ if (unsafe) return null;
366642
+ if (LEADING_DOUBLE_SLASH.test(result) && !LEADING_DOUBLE_SLASH.test(str)) return null;
366643
+ return result;
366644
+ }
366645
+ //#endregion
366646
+ //#region lib/request.js
366647
+ const g = typeof globalThis !== "undefined" ? globalThis : typeof __webpack_require__.g !== "undefined" ? __webpack_require__.g : typeof window !== "undefined" ? window : void 0;
366648
+ let fetchApi;
366649
+ if (typeof fetch === "function") fetchApi = fetch;
366650
+ else if (g && typeof g.fetch === "function") fetchApi = g.fetch;
366651
+ const XmlHttpRequestApi = hasXMLHttpRequest() && g ? g.XMLHttpRequest : void 0;
366652
+ const ActiveXObjectApi = typeof ActiveXObject === "function" && g ? g.ActiveXObject : void 0;
366653
+ const UNSAFE_KEYS = [
366654
+ "__proto__",
366655
+ "constructor",
366656
+ "prototype"
366657
+ ];
366658
+ const addQueryString = (url, params) => {
366659
+ if (params && typeof params === "object") {
366660
+ let queryString = "";
366661
+ for (const paramName of Object.keys(params)) {
366662
+ if (UNSAFE_KEYS.indexOf(paramName) > -1) continue;
366663
+ queryString += "&" + encodeURIComponent(paramName) + "=" + encodeURIComponent(params[paramName]);
366664
+ }
366665
+ if (!queryString) return url;
366666
+ url = url + (url.indexOf("?") !== -1 ? "&" : "?") + queryString.slice(1);
366667
+ }
366668
+ return url;
366669
+ };
366670
+ const fetchIt = (url, fetchOptions, callback, altFetch) => {
366671
+ const resolver = (response) => {
366672
+ if (!response.ok) return callback(response.statusText || "Error", { status: response.status });
366673
+ response.text().then((data) => {
366674
+ callback(null, {
366675
+ status: response.status,
366676
+ data
366677
+ });
366678
+ }).catch(callback);
366679
+ };
366680
+ if (altFetch) {
366681
+ const altResponse = altFetch(url, fetchOptions);
366682
+ if (altResponse instanceof Promise) {
366683
+ altResponse.then(resolver).catch(callback);
366684
+ return;
366685
+ }
366686
+ }
366687
+ if (typeof fetch === "function") fetch(url, fetchOptions).then(resolver).catch(callback);
366688
+ else fetchApi(url, fetchOptions).then(resolver).catch(callback);
366689
+ };
366690
+ const requestWithFetch = (options, url, payload, callback) => {
366691
+ if (options.queryStringParams) url = addQueryString(url, options.queryStringParams);
366692
+ const headers = { ...typeof options.customHeaders === "function" ? options.customHeaders() : options.customHeaders };
366693
+ if (typeof window === "undefined" && typeof __webpack_require__.g !== "undefined" && typeof __webpack_require__.g.process !== "undefined" && __webpack_require__.g.process.versions && __webpack_require__.g.process.versions.node) headers["User-Agent"] = `i18next-http-backend (node/${__webpack_require__.g.process.version}; ${__webpack_require__.g.process.platform} ${__webpack_require__.g.process.arch})`;
366694
+ if (payload) headers["Content-Type"] = "application/json";
366695
+ const reqOptions = typeof options.requestOptions === "function" ? options.requestOptions(payload) : options.requestOptions;
366696
+ const fetchOptions = {
366697
+ method: payload ? "POST" : "GET",
366698
+ body: payload ? options.stringify(payload) : void 0,
366699
+ headers,
366700
+ ...options._omitFetchOptions ? {} : reqOptions
366701
+ };
366702
+ const altFetch = typeof options.alternateFetch === "function" && options.alternateFetch.length >= 1 ? options.alternateFetch : void 0;
366703
+ try {
366704
+ fetchIt(url, fetchOptions, callback, altFetch);
366705
+ } catch (e) {
366706
+ if (!reqOptions || Object.keys(reqOptions).length === 0 || !e.message || e.message.indexOf("not implemented") < 0) return callback(e);
366707
+ try {
366708
+ Object.keys(reqOptions).forEach((opt) => {
366709
+ delete fetchOptions[opt];
366710
+ });
366711
+ fetchIt(url, fetchOptions, callback, altFetch);
366712
+ options._omitFetchOptions = true;
366713
+ } catch (err) {
366714
+ callback(err);
366715
+ }
366716
+ }
366717
+ };
366718
+ const requestWithXmlHttpRequest = (options, url, payload, callback) => {
366719
+ if (payload && typeof payload === "object") payload = addQueryString("", payload).slice(1);
366720
+ if (options.queryStringParams) url = addQueryString(url, options.queryStringParams);
366721
+ try {
366722
+ const x = XmlHttpRequestApi ? new XmlHttpRequestApi() : new ActiveXObjectApi("MSXML2.XMLHTTP.3.0");
366723
+ x.open(payload ? "POST" : "GET", url, 1);
366724
+ if (!options.crossDomain) x.setRequestHeader("X-Requested-With", "XMLHttpRequest");
366725
+ x.withCredentials = !!options.withCredentials;
366726
+ if (payload) x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
366727
+ if (x.overrideMimeType) x.overrideMimeType("application/json");
366728
+ let h = options.customHeaders;
366729
+ h = typeof h === "function" ? h() : h;
366730
+ if (h) for (const i of Object.keys(h)) {
366731
+ if (UNSAFE_KEYS.indexOf(i) > -1) continue;
366732
+ x.setRequestHeader(i, h[i]);
366733
+ }
366734
+ x.onreadystatechange = () => {
366735
+ x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
366736
+ status: x.status,
366737
+ data: x.responseText
366738
+ });
366739
+ };
366740
+ x.send(payload);
366741
+ } catch (e) {
366742
+ console && console.log(e);
366743
+ }
366744
+ };
366745
+ const request = (options, url, payload, callback) => {
366746
+ if (typeof payload === "function") {
366747
+ callback = payload;
366748
+ payload = void 0;
366749
+ }
366750
+ callback = callback || (() => {});
366751
+ if (fetchApi && url.indexOf("file:") !== 0) return requestWithFetch(options, url, payload, callback);
366752
+ if (hasXMLHttpRequest() || typeof ActiveXObject === "function") return requestWithXmlHttpRequest(options, url, payload, callback);
366753
+ callback(/* @__PURE__ */ new Error("No fetch and no xhr implementation found!"));
366754
+ };
366755
+ //#endregion
366756
+ //#region lib/index.js
366757
+ const getDefaults = () => {
366758
+ return {
366759
+ loadPath: "/locales/{{lng}}/{{ns}}.json",
366760
+ addPath: "/locales/add/{{lng}}/{{ns}}",
366761
+ parse: (data) => JSON.parse(data),
366762
+ stringify: JSON.stringify,
366763
+ parsePayload: (namespace, key, fallbackValue) => ({ [key]: fallbackValue || "" }),
366764
+ parseLoadPayload: (languages, namespaces) => void 0,
366765
+ request,
366766
+ reloadInterval: typeof window !== "undefined" ? false : 3600 * 1e3,
366767
+ customHeaders: {},
366768
+ queryStringParams: {},
366769
+ crossDomain: false,
366770
+ withCredentials: false,
366771
+ overrideMimeType: false,
366772
+ requestOptions: {
366773
+ mode: "cors",
366774
+ credentials: "same-origin",
366775
+ cache: "default"
366776
+ }
366777
+ };
366778
+ };
366779
+ var Backend = class {
366780
+ constructor(services, options = {}, allOptions = {}) {
366781
+ this.services = services;
366782
+ this.options = options;
366783
+ this.allOptions = allOptions;
366784
+ this.type = "backend";
366785
+ this.init(services, options, allOptions);
366786
+ }
366787
+ init(services, options = {}, allOptions = {}) {
366788
+ this.services = services;
366789
+ this.options = {
366790
+ ...getDefaults(),
366791
+ ...this.options || {},
366792
+ ...options
366793
+ };
366794
+ this.allOptions = allOptions;
366795
+ if (this.services && this.options.reloadInterval) {
366796
+ const timer = setInterval(() => this.reload(), this.options.reloadInterval);
366797
+ if (typeof timer === "object" && typeof timer.unref === "function") timer.unref();
366798
+ }
366799
+ }
366800
+ readMulti(languages, namespaces, callback) {
366801
+ this._readAny(languages, languages, namespaces, namespaces, callback);
366802
+ }
366803
+ read(language, namespace, callback) {
366804
+ this._readAny([language], language, [namespace], namespace, callback);
366805
+ }
366806
+ _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
366807
+ let loadPath = this.options.loadPath;
366808
+ if (typeof this.options.loadPath === "function") loadPath = this.options.loadPath(languages, namespaces);
366809
+ loadPath = makePromise(loadPath);
366810
+ loadPath.then((resolvedLoadPath) => {
366811
+ if (!resolvedLoadPath) return callback(null, {});
366812
+ const url = interpolateUrl(resolvedLoadPath, {
366813
+ lng: languages.join("+"),
366814
+ ns: namespaces.join("+")
366815
+ });
366816
+ if (url == null) {
366817
+ const safeLngs = languages.map(sanitizeLogValue).join(", ");
366818
+ const safeNss = namespaces.map(sanitizeLogValue).join(", ");
366819
+ return callback(/* @__PURE__ */ new Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=[" + safeLngs + "] namespaces=[" + safeNss + "]"), false);
366820
+ }
366821
+ this.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
366822
+ }, (err) => callback(err, false));
366823
+ }
366824
+ loadUrl(url, callback, languages, namespaces) {
366825
+ const lng = typeof languages === "string" ? [languages] : languages;
366826
+ const ns = typeof namespaces === "string" ? [namespaces] : namespaces;
366827
+ const payload = this.options.parseLoadPayload(lng, ns);
366828
+ const safeUrl = sanitizeLogValue(redactUrlCredentials(url));
366829
+ this.options.request(this.options, url, payload, (err, res) => {
366830
+ if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback("failed loading " + safeUrl + "; status code: " + res.status, true);
366831
+ if (res && res.status >= 400 && res.status < 500) return callback("failed loading " + safeUrl + "; status code: " + res.status, false);
366832
+ if (!res && err && err.message) {
366833
+ const errorMessage = err.message.toLowerCase();
366834
+ if ([
366835
+ "failed",
366836
+ "fetch",
366837
+ "network",
366838
+ "load"
366839
+ ].find((term) => errorMessage.indexOf(term) > -1)) return callback("failed loading " + safeUrl + ": " + sanitizeLogValue(err.message), true);
366840
+ }
366841
+ if (err) return callback(err, false);
366842
+ let ret, parseErr;
366843
+ try {
366844
+ if (typeof res.data === "string") ret = this.options.parse(res.data, languages, namespaces);
366845
+ else ret = res.data;
366846
+ } catch (e) {
366847
+ parseErr = "failed parsing " + safeUrl + " to json";
366848
+ }
366849
+ if (parseErr) return callback(parseErr, false);
366850
+ callback(null, ret);
366851
+ });
366852
+ }
366853
+ create(languages, namespace, key, fallbackValue, callback) {
366854
+ if (!this.options.addPath) return;
366855
+ if (typeof languages === "string") languages = [languages];
366856
+ const payload = this.options.parsePayload(namespace, key, fallbackValue);
366857
+ let finished = 0;
366858
+ const dataArray = [];
366859
+ const resArray = [];
366860
+ languages.forEach((lng) => {
366861
+ let addPath = this.options.addPath;
366862
+ if (typeof this.options.addPath === "function") addPath = this.options.addPath(lng, namespace);
366863
+ const url = interpolateUrl(addPath, {
366864
+ lng,
366865
+ ns: namespace
366866
+ });
366867
+ if (url == null) {
366868
+ finished += 1;
366869
+ if (callback && finished === languages.length) callback(dataArray, resArray);
366870
+ return;
366871
+ }
366872
+ this.options.request(this.options, url, payload, (data, res) => {
366873
+ finished += 1;
366874
+ dataArray.push(data);
366875
+ resArray.push(res);
366876
+ if (finished === languages.length) {
366877
+ if (typeof callback === "function") callback(dataArray, resArray);
366878
+ }
366879
+ });
366880
+ });
366881
+ }
366882
+ reload() {
366883
+ const { backendConnector, languageUtils, logger } = this.services;
366884
+ const currentLanguage = backendConnector.language;
366885
+ if (currentLanguage && currentLanguage.toLowerCase() === "cimode") return;
366886
+ const toLoad = [];
366887
+ const append = (lng) => {
366888
+ languageUtils.toResolveHierarchy(lng).forEach((l) => {
366889
+ if (toLoad.indexOf(l) < 0) toLoad.push(l);
366890
+ });
366891
+ };
366892
+ append(currentLanguage);
366893
+ if (this.allOptions.preload) this.allOptions.preload.forEach((l) => append(l));
366894
+ toLoad.forEach((lng) => {
366895
+ this.allOptions.ns.forEach((ns) => {
366896
+ backendConnector.read(lng, ns, "read", null, null, (err, data) => {
366897
+ if (err) logger.warn(`loading namespace ${ns} for language ${lng} failed`, err);
366898
+ if (!err && data) logger.log(`loaded namespace ${ns} for language ${lng}`, data);
366899
+ backendConnector.loaded(`${lng}|${ns}`, err, data);
366900
+ });
366901
+ });
366902
+ });
366903
+ }
366904
+ };
366905
+ Backend.type = "backend";
366906
+ //#endregion
366907
+
366908
+
366989
366909
 
366990
366910
  /***/ },
366991
366911
 
@@ -371054,7 +370974,7 @@ class WMS {
371054
370974
  (module) {
371055
370975
 
371056
370976
  "use strict";
371057
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.15.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 && npm run -s build:esm && npm run -s build:workers && npm run -s copy:draco","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2022 --outDir lib/esm","clean":"rimraf -g lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts && npm run -s extract","extract":"betools extract --fileExt=ts --extractFrom=./src/test/example-code --recursive --out=../../generated-docs/extract","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run build:test-worker && vitest --run","cover":"npm run build:test-worker && vitest --run","build:test-worker":"vite build --config ./src/test/worker/vite.config.mts 1>&2","build:workers":"rimraf lib/workers/webpack && vite build --config ./src/workers/ImdlParser/vite.config.mts 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//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":{"@bentley/aec-units-schema":"^1.0.3","@bentley/formats-schema":"^1.0.0","@bentley/units-schema":"^1.0.12","@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/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"^6.0.0","@types/node":"~20.17.0","@types/sinon":"^17.0.2","@vitest/browser-playwright":"^4.1.10","@vitest/coverage-v8":"^4.1.10","cpx2":"^8.0.0","eslint":"^9.31.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","typescript":"~5.6.2","vite":"^6.4.4","vitest":"^4.1.10"},"//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/webgl-compatibility":"workspace:*","@loaders.gl/core":"^4.4.5","@loaders.gl/draco":"^4.4.5","fuse.js":"^3.3.0","wms-capabilities":"0.6.0"}}');
370977
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.15.0-dev.16","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 && npm run -s build:esm && npm run -s build:workers && npm run -s copy:draco","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2022 --outDir lib/esm","clean":"rimraf -g lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts && npm run -s extract","extract":"betools extract --fileExt=ts --extractFrom=./src/test/example-code --recursive --out=../../generated-docs/extract","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run build:test-worker && vitest --run","cover":"npm run build:test-worker && vitest --run","build:test-worker":"vite build --config ./src/test/worker/vite.config.mts 1>&2","build:workers":"rimraf lib/workers/webpack && vite build --config ./src/workers/ImdlParser/vite.config.mts 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//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":{"@bentley/aec-units-schema":"^1.0.3","@bentley/formats-schema":"^1.0.0","@bentley/units-schema":"^1.0.12","@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/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"^6.0.0","@types/node":"~20.17.0","@types/sinon":"^17.0.2","@vitest/browser-playwright":"^4.1.10","@vitest/coverage-v8":"^4.1.10","cpx2":"^8.0.0","eslint":"^9.31.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","typescript":"~5.6.2","vite":"^6.4.4","vitest":"^4.1.10"},"//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/webgl-compatibility":"workspace:*","@loaders.gl/core":"^4.4.5","@loaders.gl/draco":"^4.4.5","fuse.js":"^3.3.0","wms-capabilities":"0.6.0"}}');
371058
370978
 
371059
370979
  /***/ },
371060
370980
 
@@ -371126,36 +371046,6 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"../../../node_modules/@itw
371126
371046
  /******/ return getter;
371127
371047
  /******/ };
371128
371048
  /******/
371129
- /******/ /* webpack/runtime/create fake namespace object */
371130
- /******/ (() => {
371131
- /******/ const getProto = Object.getPrototypeOf;
371132
- /******/ let leafPrototypes;
371133
- /******/ // create a fake namespace object
371134
- /******/ // mode & 1: value is a module id, require it
371135
- /******/ // mode & 2: merge all properties of value into the ns
371136
- /******/ // mode & 4: return value when already ns object
371137
- /******/ // mode & 16: return value when it's Promise-like
371138
- /******/ // mode & 8|1: behave like require
371139
- /******/ __webpack_require__.t = function(value, mode) {
371140
- /******/ if(mode & 1) value = this(value);
371141
- /******/ if(mode & 8) return value;
371142
- /******/ if(typeof value === 'object' && value) {
371143
- /******/ if((mode & 4) && value.__esModule) return value;
371144
- /******/ if((mode & 16) && typeof value.then === 'function') return value;
371145
- /******/ }
371146
- /******/ const ns = Object.create(null);
371147
- /******/ __webpack_require__.r(ns);
371148
- /******/ const def = {};
371149
- /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
371150
- /******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
371151
- /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
371152
- /******/ }
371153
- /******/ def['default'] = () => (value);
371154
- /******/ __webpack_require__.d(ns, def);
371155
- /******/ return ns;
371156
- /******/ };
371157
- /******/ })();
371158
- /******/
371159
371049
  /******/ /* webpack/runtime/define property getters */
371160
371050
  /******/ // define getter/value functions for harmony exports
371161
371051
  /******/ __webpack_require__.d = (exports, definition) => {