@itwin/rpcinterface-full-stack-tests 4.10.0-dev.31 → 4.10.0-dev.33

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.
@@ -11,9 +11,9 @@
11
11
 
12
12
  /***/ }),
13
13
 
14
- /***/ "../../common/temp/node_modules/.pnpm/dotenv@10.0.0/node_modules/dotenv/lib/main.js":
14
+ /***/ "../../common/temp/node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js":
15
15
  /*!******************************************************************************************!*\
16
- !*** ../../common/temp/node_modules/.pnpm/dotenv@10.0.0/node_modules/dotenv/lib/main.js ***!
16
+ !*** ../../common/temp/node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js ***!
17
17
  \******************************************************************************************/
18
18
  /***/ (() => {
19
19
 
@@ -27181,7 +27181,6 @@ var DbOpcode;
27181
27181
  /** Values for return codes from BeSQLite functions. Consult SQLite documentation for further explanations.
27182
27182
  * @public
27183
27183
  */
27184
- /* eslint-disable @typescript-eslint/naming-convention */
27185
27184
  // Disabling for the rest of the file since eslint does not correctly parse the entire enum, only parts of it
27186
27185
  var DbResult;
27187
27186
  (function (DbResult) {
@@ -27332,7 +27331,6 @@ var DbResult;
27332
27331
  DbResult[DbResult["BE_SQLITE_CONSTRAINT_UNIQUE"] = 2067] = "BE_SQLITE_CONSTRAINT_UNIQUE";
27333
27332
  DbResult[DbResult["BE_SQLITE_CONSTRAINT_VTAB"] = 2323] = "BE_SQLITE_CONSTRAINT_VTAB";
27334
27333
  })(DbResult || (DbResult = {}));
27335
- /* eslint-enable @typescript-eslint/naming-convention */
27336
27334
 
27337
27335
 
27338
27336
  /***/ }),
@@ -28118,14 +28116,14 @@ class ByteStream {
28118
28116
  */
28119
28117
  static fromUint8Array(bytes) {
28120
28118
  const { byteOffset, byteLength } = bytes;
28121
- return new ByteStream(bytes.buffer, { byteOffset, byteLength }); // eslint-disable-line deprecation/deprecation
28119
+ return new ByteStream(bytes.buffer, { byteOffset, byteLength }); // eslint-disable-line @typescript-eslint/no-deprecated
28122
28120
  }
28123
28121
  /** Construct a new ByteStream with the read position set to the beginning.
28124
28122
  * @param buffer The underlying buffer from which data is to be extracted.
28125
28123
  * @param subView If defined, specifies the subset of the underlying buffer's data to use.
28126
28124
  */
28127
28125
  static fromArrayBuffer(buffer, subView) {
28128
- return new ByteStream(buffer, subView); // eslint-disable-line deprecation/deprecation
28126
+ return new ByteStream(buffer, subView); // eslint-disable-line @typescript-eslint/no-deprecated
28129
28127
  }
28130
28128
  /** The number of bytes in this stream */
28131
28129
  get length() {
@@ -29045,7 +29043,6 @@ __webpack_require__.r(__webpack_exports__);
29045
29043
  * @public
29046
29044
  */
29047
29045
  function isIDisposable(obj) {
29048
- // eslint-disable-next-line @typescript-eslint/unbound-method
29049
29046
  return !!obj && (obj instanceof Object) && !!obj.dispose && (typeof obj.dispose === "function");
29050
29047
  }
29051
29048
  /** Convenience function for disposing of a disposable object that may be undefined.
@@ -29469,7 +29466,7 @@ var Id64;
29469
29466
  Id64.iterable = iterable;
29470
29467
  /** Return the first [[Id64String]] of an [[Id64Arg]]. */
29471
29468
  function getFirst(arg) {
29472
- return typeof arg === "string" ? arg : (Array.isArray(arg) ? arg[0] : arg.values().next().value);
29469
+ return typeof arg === "string" ? arg : (Array.isArray(arg) ? arg[0] : arg.values().next().value) ?? Id64.invalid;
29473
29470
  }
29474
29471
  Id64.getFirst = getFirst;
29475
29472
  /** Return the number of [[Id64String]]s represented by an [[Id64Arg]]. */
@@ -31505,7 +31502,7 @@ class ProcessDetector {
31505
31502
  * @note This method will return `true` for any frontend running on an iPad, whether it is a user-launched web browser (e.g. Safari) or the frontend of a mobile app.
31506
31503
  */
31507
31504
  static get isIPadBrowser() {
31508
- return this.isBrowserProcess && window.navigator.platform === "iPad" || (window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 0 && !("MSStream" in window)); /* eslint-disable-line deprecation/deprecation */
31505
+ return this.isBrowserProcess && window.navigator.platform === "iPad" || (window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 0 && !("MSStream" in window)); /* eslint-disable-line @typescript-eslint/no-deprecated */
31509
31506
  }
31510
31507
  /** Is this process running in a browser on an iPhone?
31511
31508
  * @note This method will return `true` for any frontend running on an iPhone, whether it is a user-launched web browser (e.g. Safari) or the frontend of a mobile app.
@@ -32393,7 +32390,7 @@ function utf8ToString(utf8) {
32393
32390
  * @public
32394
32391
  */
32395
32392
  function base64StringToUint8Array(base64) {
32396
- return new Uint8Array(atob(base64).split("").map((c) => c.charCodeAt(0))); // eslint-disable-line deprecation/deprecation
32393
+ return new Uint8Array(atob(base64).split("").map((c) => c.charCodeAt(0)));
32397
32394
  }
32398
32395
 
32399
32396
 
@@ -32643,7 +32640,7 @@ function* getFlatEntries(obj, path = "") {
32643
32640
  function flattenObject(obj) {
32644
32641
  return Object.fromEntries(getFlatEntries(obj));
32645
32642
  }
32646
- /* eslint-disable deprecation/deprecation -- lots of self-references here... */
32643
+ /* eslint-disable @typescript-eslint/no-deprecated -- lots of self-references here... */
32647
32644
  /**
32648
32645
  * Enables OpenTelemetry tracing in addition to traditional logging.
32649
32646
  * @public
@@ -32715,7 +32712,7 @@ class Tracing {
32715
32712
  loggerCategory: category,
32716
32713
  });
32717
32714
  }
32718
- catch (_e) { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work
32715
+ catch { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work
32719
32716
  const spanContext = Tracing._openTelemetry.trace.getSpan(oTelContext)?.spanContext();
32720
32717
  base(category, message, {
32721
32718
  ...serializedMetadata,
@@ -32735,7 +32732,7 @@ class Tracing {
32735
32732
  Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.setAttributes(attributes);
32736
32733
  }
32737
32734
  }
32738
- /* eslint-enable deprecation/deprecation */
32735
+ /* eslint-enable @typescript-eslint/no-deprecated */
32739
32736
 
32740
32737
 
32741
32738
  /***/ }),
@@ -33119,7 +33116,7 @@ class UnexpectedErrors {
33119
33116
  try {
33120
33117
  telemetry(error);
33121
33118
  }
33122
- catch (_) {
33119
+ catch {
33123
33120
  // ignore errors from telemetry trackers
33124
33121
  }
33125
33122
  });
@@ -34200,7 +34197,7 @@ class BackgroundMapProvider {
34200
34197
  }
34201
34198
  /** @internal */
34202
34199
  static fromBackgroundMapProps(props) {
34203
- // eslint-disable-next-line deprecation/deprecation
34200
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
34204
34201
  return this.fromJSON({ name: props.providerName, type: props.providerData?.mapType });
34205
34202
  }
34206
34203
  /** Return true if this provider is equivalent to `other`. */
@@ -34344,9 +34341,9 @@ class BackgroundMapSettings {
34344
34341
  const props = this.toJSON();
34345
34342
  // Preserve deprecated imagery provider properties.
34346
34343
  if ("BingProvider" !== this._provider.name)
34347
- props.providerName = this._provider.name; // eslint-disable-line deprecation/deprecation
34344
+ props.providerName = this._provider.name; // eslint-disable-line @typescript-eslint/no-deprecated
34348
34345
  if (_BackgroundMapProvider__WEBPACK_IMPORTED_MODULE_0__.BackgroundMapType.Hybrid !== this._provider.type)
34349
- props.providerData = { mapType: this._provider.type }; // eslint-disable-line deprecation/deprecation
34346
+ props.providerData = { mapType: this._provider.type }; // eslint-disable-line @typescript-eslint/no-deprecated
34350
34347
  return props;
34351
34348
  }
34352
34349
  /** Returns true if these settings are equivalent to the supplied JSON settings. */
@@ -35616,7 +35613,6 @@ class ColorDef {
35616
35613
  }
35617
35614
  break;
35618
35615
  }
35619
- // eslint-disable-next-line no-cond-assign
35620
35616
  }
35621
35617
  else if (m = /^\#([a-f0-9]+)$/.exec(val)) { // hex color
35622
35618
  const hex = m[1];
@@ -35926,7 +35922,6 @@ class ColorDef {
35926
35922
  const v = 0xff & Math.floor(dvalue * 255 + 0.5);
35927
35923
  let r = 0, b = 0, g = 0;
35928
35924
  switch (hueIntpart) {
35929
- /* eslint-disable max-statements-per-line */
35930
35925
  case 0:
35931
35926
  r = v;
35932
35927
  g = t;
@@ -35952,7 +35947,6 @@ class ColorDef {
35952
35947
  r = v, g = p;
35953
35948
  b = q;
35954
35949
  break; // magenta-ish
35955
- /* eslint-enable max-statements-per-line */
35956
35950
  }
35957
35951
  return ColorDef.from(r, g, b, transparency);
35958
35952
  }
@@ -39123,7 +39117,7 @@ function readElementMeshes(data) {
39123
39117
  if (geom instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.IndexedPolyface)
39124
39118
  polyfaces.push(geom);
39125
39119
  }
39126
- catch (_) {
39120
+ catch {
39127
39121
  //
39128
39122
  }
39129
39123
  }
@@ -44006,7 +44000,6 @@ __webpack_require__.r(__webpack_exports__);
44006
44000
  /* harmony export */ });
44007
44001
  /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
44008
44002
  /* harmony import */ var _BackgroundMapProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BackgroundMapProvider */ "../../core/common/lib/esm/BackgroundMapProvider.js");
44009
- /* eslint-disable deprecation/deprecation */
44010
44003
  /*---------------------------------------------------------------------------------------------
44011
44004
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
44012
44005
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -46386,9 +46379,9 @@ class RenderMaterial {
46386
46379
  this._alpha = undefined !== alpha ? clampToNormalizedRange(alpha) : undefined;
46387
46380
  }
46388
46381
  /** Create a RenderMaterial params object using specified key and ColorDef values, as well as an optional texture mapping. */
46389
- // eslint-disable-next-line deprecation/deprecation
46382
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
46390
46383
  static fromColors(key, diffuseColor, specularColor, emissiveColor, reflectColor, textureMap) {
46391
- // eslint-disable-next-line deprecation/deprecation
46384
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
46392
46385
  const materialParams = new Params();
46393
46386
  materialParams.key = key;
46394
46387
  materialParams.diffuseColor = diffuseColor;
@@ -46400,11 +46393,11 @@ class RenderMaterial {
46400
46393
  }
46401
46394
  }
46402
46395
  /** Obtain an immutable instance of a RenderMaterial with all default properties. */
46403
- // eslint-disable-next-line deprecation/deprecation
46396
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
46404
46397
  Params.defaults = new Params();
46405
46398
  RenderMaterial.Params = Params;
46406
46399
  })(RenderMaterial || (RenderMaterial = {}));
46407
- // eslint-disable-next-line deprecation/deprecation
46400
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
46408
46401
  Object.freeze(RenderMaterial.Params.defaults);
46409
46402
 
46410
46403
 
@@ -47787,7 +47780,7 @@ async function handleNotFound(request, status, dispatch) {
47787
47780
  resolve(response);
47788
47781
  }
47789
47782
  catch (err) {
47790
- reject(err);
47783
+ reject(err); // eslint-disable-line @typescript-eslint/prefer-promise-reject-errors
47791
47784
  }
47792
47785
  }, reject);
47793
47786
  });
@@ -49903,7 +49896,6 @@ __webpack_require__.r(__webpack_exports__);
49903
49896
  */
49904
49897
  // cSpell:ignore tweens yoyo catmull
49905
49898
  /* eslint-disable guard-for-in */
49906
- /* eslint-disable @typescript-eslint/prefer-for-of */
49907
49899
  /* eslint-disable @typescript-eslint/naming-convention */
49908
49900
  /** A group of `Tween`s. This class is called `Group` in the tween.js library.
49909
49901
  * @note Unlike tween.js, we do NOT create any global instances of this class
@@ -61799,40 +61791,40 @@ IModelReadRpcInterface.interfaceName = "IModelReadRpcInterface";
61799
61791
  /** The semantic version of the interface. */
61800
61792
  IModelReadRpcInterface.interfaceVersion = "3.7.0";
61801
61793
  __decorate([
61802
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61794
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
61803
61795
  ], IModelReadRpcInterface.prototype, "getConnectionProps", null);
61804
61796
  __decorate([
61805
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61797
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
61806
61798
  ], IModelReadRpcInterface.prototype, "querySubCategories", null);
61807
61799
  __decorate([
61808
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61800
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
61809
61801
  ], IModelReadRpcInterface.prototype, "queryAllUsedSpatialSubCategories", null);
61810
61802
  __decorate([
61811
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61803
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
61812
61804
  ], IModelReadRpcInterface.prototype, "getModelProps", null);
61813
61805
  __decorate([
61814
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61806
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
61815
61807
  ], IModelReadRpcInterface.prototype, "queryModelRanges", null);
61816
61808
  __decorate([
61817
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61809
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
61818
61810
  ], IModelReadRpcInterface.prototype, "queryModelExtents", null);
61819
61811
  __decorate([
61820
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61812
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
61821
61813
  ], IModelReadRpcInterface.prototype, "getClassHierarchy", null);
61822
61814
  __decorate([
61823
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61815
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
61824
61816
  ], IModelReadRpcInterface.prototype, "getViewStateData", null);
61825
61817
  __decorate([
61826
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61818
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
61827
61819
  ], IModelReadRpcInterface.prototype, "getDefaultViewId", null);
61828
61820
  __decorate([
61829
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61821
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
61830
61822
  ], IModelReadRpcInterface.prototype, "getCustomViewState3dData", null);
61831
61823
  __decorate([
61832
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61824
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
61833
61825
  ], IModelReadRpcInterface.prototype, "hydrateViewState", null);
61834
61826
  __decorate([
61835
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61827
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__.RpcResponseCacheControl.Immutable)
61836
61828
  ], IModelReadRpcInterface.prototype, "getGeoCoordinatesFromIModelCoordinates", null);
61837
61829
 
61838
61830
 
@@ -61926,7 +61918,7 @@ IModelTileRpcInterface.interfaceName = "IModelTileRpcInterface";
61926
61918
  /** The semantic version of the interface. */
61927
61919
  IModelTileRpcInterface.interfaceVersion = "3.2.0";
61928
61920
  __decorate([
61929
- _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
61921
+ _core_RpcOperation__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.allowResponseCaching(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_0__.RpcResponseCacheControl.Immutable)
61930
61922
  ], IModelTileRpcInterface.prototype, "requestTileTreeProps", null);
61931
61923
 
61932
61924
 
@@ -62017,7 +62009,6 @@ __webpack_require__.r(__webpack_exports__);
62017
62009
  * @module RpcInterface
62018
62010
  */
62019
62011
 
62020
- /* eslint-disable deprecation/deprecation */
62021
62012
  /** An RpcManager that uses RpcDefaultConfiguration/RpcDirectProtocol to make client stubs invoke
62022
62013
  * registered server impls as direct method calls within the same JavaScript context. In other words,
62023
62014
  * TestRpcManager sets up a protocol that uses our remoting mechanism but cuts out the communication
@@ -62082,7 +62073,7 @@ __webpack_require__.r(__webpack_exports__);
62082
62073
  */
62083
62074
  class WipRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__.RpcInterface {
62084
62075
  /** Returns the IModelReadRpcInterface instance for the frontend. */
62085
- static getClient() { return _RpcManager__WEBPACK_IMPORTED_MODULE_1__.RpcManager.getClientForInterface(WipRpcInterface); } // eslint-disable-line deprecation/deprecation
62076
+ static getClient() { return _RpcManager__WEBPACK_IMPORTED_MODULE_1__.RpcManager.getClientForInterface(WipRpcInterface); } // eslint-disable-line @typescript-eslint/no-deprecated
62086
62077
  /*===========================================================================================
62087
62078
  NOTE: Any add/remove/change to the methods below requires an update of the interface version.
62088
62079
  NOTE: Please consult the README in this folder for the semantic versioning rules.
@@ -62297,7 +62288,7 @@ class RpcDirectRequest extends _RpcRequest__WEBPACK_IMPORTED_MODULE_4__.RpcReque
62297
62288
  resolve(this.fulfillment.status);
62298
62289
  }
62299
62290
  catch (err) {
62300
- reject(err);
62291
+ reject(err); // eslint-disable-line @typescript-eslint/prefer-promise-reject-errors
62301
62292
  }
62302
62293
  });
62303
62294
  }
@@ -62336,7 +62327,7 @@ __webpack_require__.r(__webpack_exports__);
62336
62327
  /** @packageDocumentation
62337
62328
  * @module RpcInterface
62338
62329
  */
62339
- /* eslint-disable deprecation/deprecation */
62330
+ /* eslint-disable @typescript-eslint/no-deprecated */
62340
62331
  /** Describes available options for RPC response caching.
62341
62332
  * @public
62342
62333
  */
@@ -62476,7 +62467,6 @@ var __setFunctionName = (undefined && undefined.__setFunctionName) || function (
62476
62467
 
62477
62468
 
62478
62469
 
62479
- /* eslint-disable deprecation/deprecation */
62480
62470
  /** An RPC operation control response.
62481
62471
  * @public
62482
62472
  */
@@ -62844,7 +62834,7 @@ class RpcInvocation {
62844
62834
  impl[_RpcRegistry__WEBPACK_IMPORTED_MODULE_10__.CURRENT_INVOCATION] = undefined;
62845
62835
  }
62846
62836
  }
62847
- catch (_err) { }
62837
+ catch { }
62848
62838
  return fulfillment;
62849
62839
  }
62850
62840
  lookupOperationFunction(implementation) {
@@ -62908,7 +62898,7 @@ __webpack_require__.r(__webpack_exports__);
62908
62898
  */
62909
62899
 
62910
62900
  // cspell:ignore unmarshal
62911
- /* eslint-disable deprecation/deprecation */
62901
+ /* eslint-disable @typescript-eslint/no-deprecated */
62912
62902
  function isBuffer(val) {
62913
62903
  return val && typeof (val.constructor) !== "undefined" && typeof (val.constructor.isBuffer) === "function" && val.constructor.isBuffer(val);
62914
62904
  }
@@ -63081,7 +63071,6 @@ __webpack_require__.r(__webpack_exports__);
63081
63071
 
63082
63072
 
63083
63073
 
63084
- /* eslint-disable deprecation/deprecation */
63085
63074
  /** The policy for an RPC operation.
63086
63075
  * @internal
63087
63076
  */
@@ -63225,7 +63214,7 @@ __webpack_require__.r(__webpack_exports__);
63225
63214
  */
63226
63215
 
63227
63216
 
63228
- /* eslint-disable deprecation/deprecation */
63217
+ /* eslint-disable @typescript-eslint/no-deprecated */
63229
63218
  /** Manages pending RPC requests and responses.
63230
63219
  * @internal
63231
63220
  */
@@ -63637,7 +63626,6 @@ __webpack_require__.r(__webpack_exports__);
63637
63626
 
63638
63627
 
63639
63628
 
63640
- /* eslint-disable deprecation/deprecation */
63641
63629
  /** @internal */
63642
63630
  const REGISTRY = Symbol.for("@itwin/core-common/RpcRegistry");
63643
63631
  /** @internal */
@@ -63780,7 +63768,6 @@ class RpcRegistry {
63780
63768
  }
63781
63769
  interceptOperation(proxy, operation) {
63782
63770
  const clientFunction = proxy[operation];
63783
- // eslint-disable-next-line prefer-arrow/prefer-arrow-functions
63784
63771
  proxy[operation] = function () {
63785
63772
  const args = Array.from(arguments);
63786
63773
  args.push(operation);
@@ -63858,7 +63845,7 @@ __webpack_require__.r(__webpack_exports__);
63858
63845
 
63859
63846
  /* eslint-disable @typescript-eslint/naming-convention */
63860
63847
  // cspell:ignore csrf
63861
- /* eslint-disable deprecation/deprecation */
63848
+ /* eslint-disable @typescript-eslint/no-deprecated */
63862
63849
  /** @internal */
63863
63850
  const aggregateLoad = { lastRequest: 0, lastResponse: 0 };
63864
63851
  /** @internal */
@@ -63887,7 +63874,6 @@ class Cancellable {
63887
63874
  cancel() { }
63888
63875
  constructor(task) {
63889
63876
  this.promise = new Promise((resolve, reject) => {
63890
- // eslint-disable-next-line @typescript-eslint/unbound-method
63891
63877
  this.cancel = () => resolve(undefined);
63892
63878
  task.then(resolve, reject);
63893
63879
  });
@@ -64351,7 +64337,6 @@ __webpack_require__.r(__webpack_exports__);
64351
64337
  /** @packageDocumentation
64352
64338
  * @module RpcInterface
64353
64339
  */
64354
- /* eslint-disable deprecation/deprecation */
64355
64340
  /** @beta */
64356
64341
  class RpcRoutingToken {
64357
64342
  static generate(debugLabel = "") {
@@ -64398,7 +64383,7 @@ __webpack_require__.r(__webpack_exports__);
64398
64383
 
64399
64384
 
64400
64385
 
64401
- /* eslint-disable deprecation/deprecation */
64386
+ /* eslint-disable @typescript-eslint/no-deprecated */
64402
64387
  class SessionConfiguration extends _RpcConfiguration__WEBPACK_IMPORTED_MODULE_0__.RpcConfiguration {
64403
64388
  constructor() {
64404
64389
  super(...arguments);
@@ -64566,7 +64551,6 @@ __webpack_require__.r(__webpack_exports__);
64566
64551
 
64567
64552
 
64568
64553
 
64569
- /* eslint-disable deprecation/deprecation */
64570
64554
  var AppMode;
64571
64555
  (function (AppMode) {
64572
64556
  AppMode["MilestoneReview"] = "1";
@@ -64860,7 +64844,7 @@ __webpack_require__.r(__webpack_exports__);
64860
64844
 
64861
64845
 
64862
64846
 
64863
- /* eslint-disable deprecation/deprecation */
64847
+ /* eslint-disable @typescript-eslint/no-deprecated */
64864
64848
  /** @internal */
64865
64849
  const BACKEND = Symbol.for("@itwin.WebAppRpcLogging.Backend");
64866
64850
  const FRONTEND = Symbol.for("@itwin.WebAppRpcLogging.Frontend");
@@ -65344,7 +65328,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_4__.Rpc
65344
65328
  }
65345
65329
  setupTextTransport(parameters) {
65346
65330
  if (this.operation.policy.allowResponseCaching(this)) {
65347
- const encodedBody = btoa(parameters.objects); // eslint-disable-line deprecation/deprecation
65331
+ const encodedBody = btoa(parameters.objects);
65348
65332
  if (encodedBody.length <= _a.maxUrlComponentSize) {
65349
65333
  this._request.method = "get";
65350
65334
  this._request.body = undefined;
@@ -65426,7 +65410,6 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
65426
65410
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
65427
65411
  */
65428
65412
 
65429
- /* eslint-disable deprecation/deprecation */
65430
65413
  const START = 0;
65431
65414
  const START_BOUNDARY = 1;
65432
65415
  const HEADER_FIELD_START = 2;
@@ -66481,7 +66464,7 @@ class Parser {
66481
66464
  try {
66482
66465
  parsedContentId = ContentIdProvider.create(true, options).specFromId(contentId);
66483
66466
  }
66484
- catch (e) {
66467
+ catch {
66485
66468
  this.reject("Invalid content Id");
66486
66469
  }
66487
66470
  if (Object.keys(parsedContentId).some((key) => parsedContentId.hasOwnProperty(key) && typeof parsedContentId[key] === "number" && !Number.isFinite(parsedContentId[key])))
@@ -70169,7 +70152,9 @@ class XmlParser extends _AbstractParser__WEBPACK_IMPORTED_MODULE_4__.AbstractPar
70169
70152
  return structObj;
70170
70153
  }
70171
70154
  readPrimitivePropertyValue(propElement, primitiveType) {
70172
- if (!propElement.textContent)
70155
+ if (undefined === propElement.textContent || null === propElement.textContent)
70156
+ throw new _Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsStatus.InvalidSchemaXML, `Primitive property '${propElement.tagName}' has an invalid property value.`);
70157
+ if (propElement.textContent === "" && primitiveType !== _ECObjects__WEBPACK_IMPORTED_MODULE_1__.PrimitiveType.String)
70173
70158
  throw new _Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsError(_Exception__WEBPACK_IMPORTED_MODULE_2__.ECObjectsStatus.InvalidSchemaXML, `Primitive property '${propElement.tagName}' has an invalid property value.`);
70174
70159
  // TODO: Mapping all primitive types to string, number and boolean
70175
70160
  // for now. Need to review with IModelJs.
@@ -73246,7 +73231,7 @@ class OverrideFormat {
73246
73231
  let prevPos = 1; // Initial position is the character directly after the opening '(' in the override string.
73247
73232
  let currPos;
73248
73233
  // TODO need to include `,` as a valid search argument.
73249
- while (-1 !== (currPos = overrideString.indexOf(")", prevPos))) { // eslint-disable-line
73234
+ while (-1 !== (currPos = overrideString.indexOf(")", prevPos))) {
73250
73235
  tokens.push(overrideString.substring(prevPos, currPos));
73251
73236
  prevPos = currPos + 1;
73252
73237
  }
@@ -76879,12 +76864,12 @@ class SchemaUnitProvider {
76879
76864
  try {
76880
76865
  foundUnit = await this.findUnitByDisplayLabel(findLabel, findSchema, findPhenomenon, findUnitSystem);
76881
76866
  }
76882
- catch (err) {
76867
+ catch {
76883
76868
  // If there is no Unit with display label that matches label, then check for alternate display labels that may match
76884
76869
  foundUnit = await this.findUnitByAltDisplayLabel(findLabel, findSchema, findPhenomenon, findUnitSystem);
76885
76870
  }
76886
76871
  }
76887
- catch (err) {
76872
+ catch {
76888
76873
  throw new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR, "Cannot find unit with label", () => {
76889
76874
  return { unitLabel };
76890
76875
  });
@@ -77990,7 +77975,6 @@ class AccuDraw {
77990
77975
  let rMatrix;
77991
77976
  let myAxes;
77992
77977
  const vecP = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createZero();
77993
- /* eslint-disable max-statements-per-line */
77994
77978
  switch (this.flags.baseRotation) {
77995
77979
  case RotationMode.Top:
77996
77980
  switch (whichVec) {
@@ -78070,7 +78054,6 @@ class AccuDraw {
78070
78054
  }
78071
78055
  break;
78072
78056
  }
78073
- /* eslint-enable max-statements-per-line */
78074
78057
  return vecP;
78075
78058
  }
78076
78059
  getBestViewedRotationFromXVector(rotation, vp) {
@@ -80758,7 +80741,7 @@ class AccuSnap {
80758
80741
  if (this._toolTipPromise === promise) // have we abandoned this request while awaiting getToolTip?
80759
80742
  this.showLocateMessage(viewPt, vp, msg);
80760
80743
  }
80761
- catch (error) { } // happens if getToolTip was canceled
80744
+ catch { } // happens if getToolTip was canceled
80762
80745
  });
80763
80746
  }
80764
80747
  showLocateMessage(viewPt, vp, msg) {
@@ -80990,7 +80973,11 @@ class AccuSnap {
80990
80973
  return realitySnap;
80991
80974
  }
80992
80975
  }
80993
- const hitVp = thisHit.viewAttachment ? thisHit.viewAttachment.viewport : thisHit.viewport;
80976
+ let hitVp;
80977
+ if (thisHit.path) {
80978
+ hitVp = thisHit.path.sectionDrawingAttachment?.viewport ?? thisHit.path.viewAttachment?.viewport;
80979
+ }
80980
+ hitVp = hitVp ?? thisHit.viewport;
80994
80981
  if (undefined !== thisHit.subCategoryId && !thisHit.isExternalIModelHit) {
80995
80982
  const appearance = hitVp.getSubCategoryAppearance(thisHit.subCategoryId);
80996
80983
  if (appearance.dontSnap) {
@@ -81067,7 +81054,8 @@ class AccuSnap {
81067
81054
  displayTransform = thisHit.viewport.view.computeDisplayTransform({
81068
81055
  modelId: thisHit.modelId,
81069
81056
  elementId: thisHit.sourceId,
81070
- viewAttachmentId: thisHit.viewAttachment?.id,
81057
+ viewAttachmentId: thisHit.path?.viewAttachment?.id,
81058
+ inSectionDrawingAttachment: undefined !== thisHit.path?.sectionDrawingAttachment,
81071
81059
  });
81072
81060
  }
81073
81061
  const snapPoint = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.fromJSON(result.snapPoint);
@@ -81097,7 +81085,7 @@ class AccuSnap {
81097
81085
  const intersect = new _HitDetail__WEBPACK_IMPORTED_MODULE_3__.IntersectDetail(snap, snap.heat, snap.snapPoint, otherPrimitive, result.intersectId);
81098
81086
  return intersect;
81099
81087
  }
81100
- catch (_err) {
81088
+ catch {
81101
81089
  if (out)
81102
81090
  out.snapStatus = _ElementLocateManager__WEBPACK_IMPORTED_MODULE_2__.SnapStatus.Aborted;
81103
81091
  return undefined;
@@ -82477,7 +82465,7 @@ class BingLocationProvider {
82477
82465
  },
82478
82466
  };
82479
82467
  }
82480
- catch (error) {
82468
+ catch {
82481
82469
  return undefined;
82482
82470
  }
82483
82471
  }
@@ -82750,11 +82738,11 @@ class BriefcaseConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_5__
82750
82738
  */
82751
82739
  async pullChanges(toIndex, options) {
82752
82740
  const removeListeners = [];
82753
- // eslint-disable-next-line deprecation/deprecation
82741
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
82754
82742
  const shouldReportProgress = !!options?.progressCallback || !!options?.downloadProgressCallback;
82755
82743
  if (shouldReportProgress) {
82756
82744
  const handleProgress = (_evt, data) => {
82757
- // eslint-disable-next-line deprecation/deprecation
82745
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
82758
82746
  options?.progressCallback?.(data);
82759
82747
  options?.downloadProgressCallback?.(data);
82760
82748
  };
@@ -83427,7 +83415,7 @@ class CheckpointConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_4_
83427
83415
  _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace(loggerCategory, `IModelConnection.open`, iModelToken);
83428
83416
  const startTime = Date.now();
83429
83417
  const removeListener = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcRequest.events.addListener((type, request) => {
83430
- if (type !== _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcRequestEvent.PendingUpdateReceived) // eslint-disable-line deprecation/deprecation
83418
+ if (type !== _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcRequestEvent.PendingUpdateReceived) // eslint-disable-line @typescript-eslint/no-deprecated
83431
83419
  return;
83432
83420
  if (!(openForReadOperation && request.operation === openForReadOperation))
83433
83421
  return;
@@ -83881,11 +83869,11 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
83881
83869
  if (script)
83882
83870
  newState = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderSchedule.ScriptReference(this.id, script);
83883
83871
  }
83884
- catch (_) {
83872
+ catch {
83885
83873
  // schedule state is undefined.
83886
83874
  }
83887
83875
  if (newState !== this._scriptReference) {
83888
- this.onScheduleScriptReferenceChanged.raiseEvent(newState); // eslint-disable-line deprecation/deprecation
83876
+ this.onScheduleScriptReferenceChanged.raiseEvent(newState); // eslint-disable-line @typescript-eslint/no-deprecated
83889
83877
  this.onScheduleScriptChanged.raiseEvent(newState?.script);
83890
83878
  this._scriptReference = newState;
83891
83879
  }
@@ -83906,13 +83894,13 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
83906
83894
  newState = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderSchedule.ScriptReference(timelineId, script);
83907
83895
  }
83908
83896
  }
83909
- catch (_) {
83897
+ catch {
83910
83898
  // schedule state is undefined.
83911
83899
  }
83912
83900
  }
83913
83901
  this._queryRenderTimelinePropsPromise = undefined;
83914
83902
  if (newState !== this._scriptReference) {
83915
- this.onScheduleScriptReferenceChanged.raiseEvent(newState); // eslint-disable-line deprecation/deprecation
83903
+ this.onScheduleScriptReferenceChanged.raiseEvent(newState); // eslint-disable-line @typescript-eslint/no-deprecated
83916
83904
  this.onScheduleScriptChanged.raiseEvent(newState?.script);
83917
83905
  this._scriptReference = newState;
83918
83906
  }
@@ -83923,7 +83911,7 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
83923
83911
  const omitScriptElementIds = !_IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.tileAdmin.enableFrontendScheduleScripts;
83924
83912
  return await this.iModel.elements.loadProps(timelineId, { renderTimeline: { omitScriptElementIds } });
83925
83913
  }
83926
- catch (_) {
83914
+ catch {
83927
83915
  return undefined;
83928
83916
  }
83929
83917
  }
@@ -84046,7 +84034,7 @@ class DisplayStyleState extends _EntityState__WEBPACK_IMPORTED_MODULE_6__.Elemen
84046
84034
  return;
84047
84035
  try {
84048
84036
  const scriptRef = script ? new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderSchedule.ScriptReference(script) : undefined;
84049
- this.onScheduleScriptReferenceChanged.raiseEvent(scriptRef); // eslint-disable-line deprecation/deprecation
84037
+ this.onScheduleScriptReferenceChanged.raiseEvent(scriptRef); // eslint-disable-line @typescript-eslint/no-deprecated
84050
84038
  this.onScheduleScriptChanged.raiseEvent(script);
84051
84039
  this._scriptReference = scriptRef;
84052
84040
  this._assigningScript = true;
@@ -84769,7 +84757,7 @@ class SectionAttachment {
84769
84757
  this._branchOptions = {
84770
84758
  clipVolume,
84771
84759
  hline: view.getDisplayStyle3d().settings.hiddenLineSettings,
84772
- viewAttachmentId: view.id,
84760
+ inSectionDrawingAttachment: true,
84773
84761
  frustum: {
84774
84762
  is3d: true,
84775
84763
  scale: { x: 1, y: 1 },
@@ -84919,7 +84907,7 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
84919
84907
  break;
84920
84908
  }
84921
84909
  }
84922
- catch (_ex) {
84910
+ catch {
84923
84911
  // The version of BisCore ECSchema in the iModel is probably too old to contain the SectionDrawing ECClass.
84924
84912
  }
84925
84913
  return { spatialView, displaySpatialView, drawingToSpatialTransform };
@@ -85001,15 +84989,16 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
85001
84989
  return this._attachment ? [this._attachment.viewport] : super.secondaryViewports;
85002
84990
  }
85003
84991
  /** @internal */
85004
- getAttachmentViewport(id) {
85005
- return id === this._attachment?.view.id ? this._attachment.viewport : undefined;
84992
+ getAttachmentViewport(args) {
84993
+ const attach = args.inSectionDrawingAttachment ? this._attachment : undefined;
84994
+ return attach?.viewport;
85006
84995
  }
85007
- /** @internal */
84996
+ /** @beta */
85008
84997
  computeDisplayTransform(args) {
85009
- if (args.viewAttachmentId === undefined || args.viewAttachmentId !== this._attachment?.view.id) {
85010
- return undefined;
85011
- }
85012
- return this._attachment.toDrawing;
84998
+ // ###TODO we're currently ignoring model and element Id in args, assuming irrelevant for drawings.
84999
+ // Should probably call super or have super call us.
85000
+ const attach = args.inSectionDrawingAttachment ? this._attachment : undefined;
85001
+ return attach?.toDrawing.clone(args.output);
85013
85002
  }
85014
85003
  }
85015
85004
  /** Exposed strictly for testing and debugging. Indicates that when loading the view, the spatial view should be displayed even
@@ -86286,7 +86275,7 @@ class EnvironmentDecorations {
86286
86275
  else
86287
86276
  idToImage.set(spec, image);
86288
86277
  }
86289
- // eslint-disable-next-line deprecation/deprecation
86278
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
86290
86279
  const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RenderTexture.Params(key, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RenderTexture.Type.SkyBox);
86291
86280
  const txImgs = [
86292
86281
  idToImage.get(sky.images.front), idToImage.get(sky.images.back), idToImage.get(sky.images.top),
@@ -87675,6 +87664,7 @@ var HitDetailType;
87675
87664
  HitDetailType[HitDetailType["Snap"] = 2] = "Snap";
87676
87665
  HitDetailType[HitDetailType["Intersection"] = 3] = "Intersection";
87677
87666
  })(HitDetailType || (HitDetailType = {}));
87667
+ ;
87678
87668
  /** A HitDetail stores the result when locating geometry displayed in a view.
87679
87669
  * It holds an approximate location on an element (or decoration) from a *pick*.
87680
87670
  * @public
@@ -87717,10 +87707,15 @@ class HitDetail {
87717
87707
  * @alpha
87718
87708
  */
87719
87709
  get isClassifier() { return this._props.isClassifier; }
87720
- /** Information about the attached view within which the hit geometry resides, if any.
87710
+ /** Information about the [ViewAttachment]($backend) within which the hit geometry resides, if any.
87711
+ * @note Only [[SheetViewState]]s can have view attachments.
87712
+ * @beta
87713
+ */
87714
+ get viewAttachment() { return this._props.path?.viewAttachment; }
87715
+ /** Describes the path by which the hit was located through a series of attached views.
87721
87716
  * @beta
87722
87717
  */
87723
- get viewAttachment() { return this._props.viewAttachment; }
87718
+ get path() { return this._props.path; }
87724
87719
  /** @internal */
87725
87720
  constructor(arg0, viewport, hitSource, hitPoint, sourceId, priority, distXY, distFraction, subCategoryId, geometryClass, modelId, sourceIModel, tileId, isClassifier) {
87726
87721
  if (arg0 instanceof _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d) {
@@ -87744,6 +87739,8 @@ class HitDetail {
87744
87739
  };
87745
87740
  }
87746
87741
  else {
87742
+ // Ignore an empty path.
87743
+ const path = arg0.path?.sectionDrawingAttachment || arg0.path?.viewAttachment ? arg0.path : undefined;
87747
87744
  // Tempting to use { ...arg0 } but spread operator omits getters so, e.g., if input is a HitDetail we would lose all the properties.
87748
87745
  this._props = {
87749
87746
  testPoint: arg0.testPoint,
@@ -87761,7 +87758,7 @@ class HitDetail {
87761
87758
  transformFromSourceIModel: arg0.transformFromSourceIModel,
87762
87759
  tileId: arg0.tileId,
87763
87760
  isClassifier: arg0.isClassifier,
87764
- viewAttachment: arg0.viewAttachment,
87761
+ path,
87765
87762
  };
87766
87763
  }
87767
87764
  }
@@ -88181,7 +88178,6 @@ var _a;
88181
88178
  // eslint-disable-next-line @itwin/import-within-package
88182
88179
 
88183
88180
  /** @public */
88184
- // eslint-disable-next-line @typescript-eslint/no-var-requires
88185
88181
  const ITWINJS_CORE_VERSION = _package_json__WEBPACK_IMPORTED_MODULE_0__.version;
88186
88182
  const COPYRIGHT_NOTICE = 'Copyright © 2017-2024 <a href="https://www.bentley.com" target="_blank" rel="noopener noreferrer">Bentley Systems, Inc.</a>';
88187
88183
 
@@ -88508,7 +88504,7 @@ class IModelApp {
88508
88504
  try {
88509
88505
  return (await this.authorizationClient?.getAccessToken()) ?? "";
88510
88506
  }
88511
- catch (e) {
88507
+ catch {
88512
88508
  return "";
88513
88509
  }
88514
88510
  }
@@ -88866,11 +88862,11 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
88866
88862
  this.hilited = new _SelectionSet__WEBPACK_IMPORTED_MODULE_8__.HiliteSet(this);
88867
88863
  this.tiles = new _Tiles__WEBPACK_IMPORTED_MODULE_11__.Tiles(this);
88868
88864
  this.geoServices = _GeoServices__WEBPACK_IMPORTED_MODULE_4__.GeoServices.createForIModel(this);
88869
- /* eslint-disable-next-line deprecation/deprecation */
88865
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
88870
88866
  this.displayedExtents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Range3d.fromJSON(this.projectExtents);
88871
88867
  this.onProjectExtentsChanged.addListener(() => {
88872
88868
  // Compute new displayed extents as the union of the ranges we previously expanded by with the new project extents.
88873
- /* eslint-disable-next-line deprecation/deprecation */
88869
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
88874
88870
  this.expandDisplayedExtents(this._extentsExpansion);
88875
88871
  });
88876
88872
  this.hilited.onModelSubCategoryModeChanged.addListener(() => {
@@ -89223,9 +89219,9 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
89223
89219
  */
89224
89220
  expandDisplayedExtents(range) {
89225
89221
  this._extentsExpansion.extendRange(range);
89226
- /* eslint-disable-next-line deprecation/deprecation */
89222
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
89227
89223
  this.displayedExtents.setFrom(this.projectExtents);
89228
- /* eslint-disable-next-line deprecation/deprecation */
89224
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
89229
89225
  this.displayedExtents.extendRange(this._extentsExpansion);
89230
89226
  }
89231
89227
  /** @internal */
@@ -89359,7 +89355,7 @@ class SnapshotConnection extends IModelConnection {
89359
89355
  static async openRemote(fileKey) {
89360
89356
  const routingContext = _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext.current || _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext["default"];
89361
89357
  _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcManager.setIModel({ iModelId: "undefined", key: fileKey });
89362
- const openResponse = await _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.SnapshotIModelRpcInterface.getClientForRouting(routingContext.token).openRemote(fileKey); // eslint-disable-line deprecation/deprecation
89358
+ const openResponse = await _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.SnapshotIModelRpcInterface.getClientForRouting(routingContext.token).openRemote(fileKey); // eslint-disable-line @typescript-eslint/no-deprecated
89363
89359
  _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace(loggerCategory, "SnapshotConnection.openRemote", () => ({ fileKey }));
89364
89360
  const connection = new SnapshotConnection(openResponse);
89365
89361
  connection.routingContext = routingContext;
@@ -89443,7 +89439,7 @@ class SnapshotConnection extends IModelConnection {
89443
89439
  const propArray = await this.getProps(notLoaded);
89444
89440
  await this.updateLoadedWithModelProps(propArray);
89445
89441
  }
89446
- catch (err) {
89442
+ catch {
89447
89443
  // ignore error, we had nothing to do.
89448
89444
  }
89449
89445
  }
@@ -89458,7 +89454,7 @@ class SnapshotConnection extends IModelConnection {
89458
89454
  }
89459
89455
  }
89460
89456
  }
89461
- catch (err) {
89457
+ catch {
89462
89458
  // ignore error, we had nothing to do.
89463
89459
  }
89464
89460
  }
@@ -89789,7 +89785,7 @@ class SnapshotConnection extends IModelConnection {
89789
89785
  * @deprecated in 3.x use ViewStore apis
89790
89786
  */
89791
89787
  async getThumbnail(_viewId) {
89792
- // eslint-disable-next-line deprecation/deprecation
89788
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
89793
89789
  const val = await _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this._iModel.routingContext.token).getViewThumbnail(this._iModel.getRpcProps(), _viewId.toString());
89794
89790
  const intValues = new Uint32Array(val.buffer, 0, 4);
89795
89791
  if (intValues[1] !== _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ImageSourceFormat.Jpeg && intValues[1] !== _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ImageSourceFormat.Png)
@@ -92503,8 +92499,7 @@ class RealityDataSourceCesiumIonAssetImpl {
92503
92499
  try {
92504
92500
  tilesetUrl = await rdSource.getServiceUrl(iTwinId);
92505
92501
  }
92506
- catch (e) {
92507
- }
92502
+ catch { }
92508
92503
  return (tilesetUrl !== undefined) ? rdSource : undefined;
92509
92504
  }
92510
92505
  get isContextShare() {
@@ -92680,8 +92675,7 @@ class RealityDataSourceContextShareImpl {
92680
92675
  await rdSource.queryRealityData(iTwinId);
92681
92676
  tilesetUrl = await rdSource.getServiceUrl(iTwinId);
92682
92677
  }
92683
- catch (e) {
92684
- }
92678
+ catch { }
92685
92679
  return (tilesetUrl !== undefined) ? rdSource : undefined;
92686
92680
  }
92687
92681
  get isContextShare() {
@@ -92758,7 +92752,7 @@ class RealityDataSourceContextShareImpl {
92758
92752
  this._tilesetUrl = await _IModelApp__WEBPACK_IMPORTED_MODULE_4__.IModelApp.realityDataAccess.getRealityDataUrl(resolvedITwinId, rdSourceKey.id);
92759
92753
  this._isUrlResolved = true;
92760
92754
  }
92761
- catch (e) {
92755
+ catch {
92762
92756
  const errMsg = `Error getting URL from ContextShare using realityDataId=${rdSourceKey.id} and iTwinId=${iTwinId}`;
92763
92757
  _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_1__.Logger.logError(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_3__.FrontendLoggerCategory.RealityData, errMsg);
92764
92758
  }
@@ -92963,7 +92957,7 @@ class RealityDataSourceTilesetUrlImpl {
92963
92957
  try {
92964
92958
  new URL(url);
92965
92959
  }
92966
- catch (_) {
92960
+ catch {
92967
92961
  return false;
92968
92962
  }
92969
92963
  return true;
@@ -93821,14 +93815,27 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_12__.ViewState2
93821
93815
  return new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d(0, 0, -1, size.x, size.y, 1);
93822
93816
  }
93823
93817
  /** @internal */
93824
- getAttachmentViewport(id) {
93825
- return this._attachments?.findById(id)?.viewport;
93818
+ getAttachmentViewport(args) {
93819
+ const attachment = args.viewAttachmentId ? this._attachments?.findById(args.viewAttachmentId) : undefined;
93820
+ if (!attachment) {
93821
+ return undefined;
93822
+ }
93823
+ return args.inSectionDrawingAttachment ? attachment.viewport?.view.getAttachmentViewport({ inSectionDrawingAttachment: true }) : attachment.viewport;
93826
93824
  }
93827
- /** @internal */
93825
+ /** @beta */
93828
93826
  computeDisplayTransform(args) {
93829
- // ###TODO check if the attached view has a display transform...
93827
+ // ###TODO we're currently ignoring model and element Id in args, assuming irrelevant for sheets.
93828
+ // Should probably call super or have super call us.
93830
93829
  const attachment = undefined !== args.viewAttachmentId ? this._attachments?.findById(args.viewAttachmentId) : undefined;
93831
- return attachment && attachment instanceof OrthographicAttachment ? attachment.toSheet.clone() : undefined;
93830
+ if (!attachment || !(attachment instanceof OrthographicAttachment)) {
93831
+ return undefined;
93832
+ }
93833
+ const sheetTransform = attachment.toSheet;
93834
+ const sectionTransform = args.inSectionDrawingAttachment ? attachment.view.computeDisplayTransform(args) : undefined;
93835
+ if (!sectionTransform) {
93836
+ return sheetTransform.clone(args.output);
93837
+ }
93838
+ return sheetTransform.multiplyTransformTransform(sectionTransform, args.output);
93832
93839
  }
93833
93840
  }
93834
93841
  /** A mostly no-op RenderTarget for an Attachment.
@@ -94410,7 +94417,7 @@ class SpatialViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_6__.ViewState
94410
94417
  * @deprecated in 3.6. These extents are based on [[IModelConnection.displayedExtents]], which is deprecated. Consider using [[computeFitRange]] or [[getViewedExtents]] instead.
94411
94418
  */
94412
94419
  getDisplayedExtents() {
94413
- /* eslint-disable-next-line deprecation/deprecation */
94420
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
94414
94421
  const extents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.fromJSON(this.iModel.displayedExtents);
94415
94422
  extents.scaleAboutCenterInPlace(1.0001); // projectExtents. lying smack up against the extents is not excluded by frustum...
94416
94423
  extents.extendRange(this.getGroundExtents());
@@ -94867,7 +94874,7 @@ class SubCategoriesCache {
94867
94874
  this.processResults(results, new Set(), false);
94868
94875
  }
94869
94876
  }
94870
- catch (e) {
94877
+ catch {
94871
94878
  // In case of a truncated response, gracefully handle the error and exit.
94872
94879
  }
94873
94880
  }
@@ -95195,7 +95202,7 @@ class TentativePoint {
95195
95202
  showTentative() {
95196
95203
  if (this.isSnapped) {
95197
95204
  _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.viewManager.invalidateDecorationsAllViews();
95198
- _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.accuSnap.displayToolTip(this._viewPoint, this.viewport, undefined); // eslint-disable-line @typescript-eslint/no-floating-promises
95205
+ _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.accuSnap.displayToolTip(this._viewPoint, this.viewport, undefined);
95199
95206
  }
95200
95207
  else {
95201
95208
  this.viewport.invalidateDecorations();
@@ -96613,7 +96620,7 @@ class ViewCreator3d {
96613
96620
  * Get the Id of the default view.
96614
96621
  */
96615
96622
  async _getDefaultViewId() {
96616
- // eslint-disable-next-line deprecation/deprecation
96623
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
96617
96624
  const viewId = await this._imodel.views.queryDefaultViewId();
96618
96625
  if (viewId !== _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid)
96619
96626
  return viewId;
@@ -97582,7 +97589,7 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
97582
97589
  }
97583
97590
  /** @internal */
97584
97591
  get scheduleScriptReference() {
97585
- return this.displayStyle.scheduleScriptReference; // eslint-disable-line deprecation/deprecation
97592
+ return this.displayStyle.scheduleScriptReference; // eslint-disable-line @typescript-eslint/no-deprecated
97586
97593
  }
97587
97594
  /** Get the globe projection mode.
97588
97595
  * @internal
@@ -98326,6 +98333,8 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
98326
98333
  * - [PlanProjectionSettings.elevation]($common) applied to plan projection models by [DisplayStyle3dSettings.planProjectionSettings]($common);
98327
98334
  * - A per-model transform supplied by this view's [[modelDisplayTransformProvider]]; and/or
98328
98335
  * - A transform applied to an element by an [RenderSchedule.ElementTimeline]($common) defined by this view's [[scheduleScript]].
98336
+ * - A transform from the coordinate space of a [ViewAttachment]($backend)'s view to that of the [[SheetViewState]] in which it is displayed.
98337
+ * - A transform from the coordinate space of a [[SpatialViewState]] to that of the [[DrawingViewState]] in which it is displayed, where the spatial view is attached via a [SectionDrawing]($backend).
98329
98338
  * @param args A description of how to compute the transform.
98330
98339
  * @returns The computed transform, or `undefined` if no display transform is to be applied.
98331
98340
  * @beta
@@ -98401,12 +98410,10 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
98401
98410
  get secondaryViewports() {
98402
98411
  return [];
98403
98412
  }
98404
- /** Find the viewport that renders the contents of the attached view with the specified element Id into this view.
98405
- * For a sheet view, the Id refers to a ViewAttachment.
98406
- * For a section drawing, it refers to a SpatialViewDefinition.
98413
+ /** Find the viewport that renders the contents of the view attachment with the specified element Id into this view.
98407
98414
  * @internal
98408
98415
  */
98409
- getAttachmentViewport(_id) {
98416
+ getAttachmentViewport(_args) {
98410
98417
  return undefined;
98411
98418
  }
98412
98419
  }
@@ -101943,7 +101950,7 @@ class Viewport {
101943
101950
  * @deprecated in 3.x. Use readImageBuffer.
101944
101951
  */
101945
101952
  readImage(rect = new _common_ViewRect__WEBPACK_IMPORTED_MODULE_27__.ViewRect(1, 1, 0, 0), targetSize = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d.createZero(), flipVertically = false) {
101946
- // eslint-disable-next-line deprecation/deprecation
101953
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
101947
101954
  return this.target.readImage(rect, targetSize, flipVertically);
101948
101955
  }
101949
101956
  /** Capture the image currently rendered in this viewport, or a subset thereof.
@@ -102047,6 +102054,7 @@ class Viewport {
102047
102054
  modelId,
102048
102055
  elementId: pixel.feature?.elementId,
102049
102056
  viewAttachmentId: pixel.viewAttachmentId,
102057
+ inSectionDrawingAttachment: pixel.inSectionDrawingAttachment,
102050
102058
  });
102051
102059
  transform?.multiplyInversePoint3d(npc, npc);
102052
102060
  }
@@ -102341,7 +102349,6 @@ class ScreenViewport extends Viewport {
102341
102349
  this.addChildDiv(this.vpDiv, canvas, 10);
102342
102350
  this.target.updateViewRect();
102343
102351
  // SEE: decorationDiv doc comment
102344
- // eslint-disable-next-line deprecation/deprecation
102345
102352
  this.decorationDiv = this.addNewDiv("overlay-decorators", true, 30);
102346
102353
  this.toolTipDiv = this.addNewDiv("overlay-tooltip", true, 40);
102347
102354
  this.setCursor();
@@ -102531,7 +102538,6 @@ class ScreenViewport extends Viewport {
102531
102538
  /** Populate a set of decoration graphics to be displayed in this viewport. */
102532
102539
  addDecorations(decorations) {
102533
102540
  // SEE: decorationDiv doc comment
102534
- // eslint-disable-next-line deprecation/deprecation
102535
102541
  ScreenViewport.markAllChildrenForRemoval(this.decorationDiv);
102536
102542
  const context = new _ViewContext__WEBPACK_IMPORTED_MODULE_24__.DecorateContext(this, decorations, this._decorationCache);
102537
102543
  try {
@@ -102542,7 +102548,6 @@ class ScreenViewport extends Viewport {
102542
102548
  this.forEachTiledGraphicsProviderTree((ref) => context.addFromDecorator(ref));
102543
102549
  for (const decorator of _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.viewManager.decorators)
102544
102550
  context.addFromDecorator(decorator);
102545
- // eslint-disable-next-line deprecation/deprecation
102546
102551
  ScreenViewport.removeMarkedChildren(this.decorationDiv);
102547
102552
  }
102548
102553
  finally {
@@ -104334,7 +104339,7 @@ class Material extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMat
104334
104339
  const material = this.key ?? this.materialParams;
104335
104340
  return { isAtlas: false, material };
104336
104341
  }
104337
- // eslint-disable-next-line deprecation/deprecation
104342
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
104338
104343
  constructor(params, imdl) {
104339
104344
  super(params);
104340
104345
  this.materialParams = imdl ?? {
@@ -104351,7 +104356,7 @@ class Material extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMat
104351
104356
  };
104352
104357
  }
104353
104358
  static create(args) {
104354
- // eslint-disable-next-line deprecation/deprecation
104359
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
104355
104360
  const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMaterial.Params();
104356
104361
  params.alpha = args.alpha;
104357
104362
  if (args.diffuse) {
@@ -105112,7 +105117,7 @@ class Parser {
105112
105117
  const materialJson = this._document.renderMaterials[key];
105113
105118
  if (!materialJson)
105114
105119
  return undefined;
105115
- // eslint-disable-next-line deprecation/deprecation
105120
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
105116
105121
  const materialParams = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMaterial.Params(key);
105117
105122
  materialParams.diffuseColor = this.colorDefFromMaterialJson(materialJson.diffuseColor);
105118
105123
  if (materialJson.diffuse !== undefined)
@@ -105132,7 +105137,6 @@ class Parser {
105132
105137
  materialParams.ambient = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.JsonUtils.asDouble(materialJson.ambient);
105133
105138
  if (undefined !== materialJson.textureMapping)
105134
105139
  materialParams.textureMapping = this.textureMappingFromJson(materialJson.textureMapping.texture);
105135
- // eslint-disable-next-line deprecation/deprecation
105136
105140
  return new Material(materialParams);
105137
105141
  }
105138
105142
  parseNamedTexture(namedTex, name) {
@@ -105289,7 +105293,7 @@ function parseImdlDocument(options) {
105289
105293
  const parser = new Parser(imdlDoc, binaryData, options, featureTable, stream);
105290
105294
  return parser.parse();
105291
105295
  }
105292
- catch (_) {
105296
+ catch {
105293
105297
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TileReadStatus.InvalidTileData;
105294
105298
  }
105295
105299
  }
@@ -112816,7 +112820,7 @@ class BaseUnitFormattingSettingsProvider {
112816
112820
  async buildQuantityFormatOverridesMap() {
112817
112821
  const overrideFormatProps = new Map();
112818
112822
  // use map and await all returned promises - overrides are stored by QuantityType
112819
- for await (const quantityTypeKey of [...this._quantityFormatter.quantityTypesRegistry.keys()]) {
112823
+ for (const quantityTypeKey of [...this._quantityFormatter.quantityTypesRegistry.keys()]) {
112820
112824
  const quantityTypeDef = this._quantityFormatter.quantityTypesRegistry.get(quantityTypeKey);
112821
112825
  if (quantityTypeDef) {
112822
112826
  const typeKey = quantityTypeDef.key;
@@ -113067,7 +113071,7 @@ class LocalUnitFormatProvider extends _BaseUnitFormattingSettingsProvider__WEBPA
113067
113071
  localStorage.setItem(this.buildUnitSystemKey(), unitSystemKey);
113068
113072
  return true;
113069
113073
  }
113070
- catch (_e) {
113074
+ catch {
113071
113075
  return false;
113072
113076
  }
113073
113077
  }
@@ -113081,7 +113085,7 @@ class LocalUnitFormatProvider extends _BaseUnitFormattingSettingsProvider__WEBPA
113081
113085
  localStorage.setItem(this.buildOverridesKey(quantityTypeKey), JSON.stringify(overrideProps));
113082
113086
  return true;
113083
113087
  }
113084
- catch (_e) {
113088
+ catch {
113085
113089
  return false;
113086
113090
  }
113087
113091
  }
@@ -115471,6 +115475,7 @@ var Pixel;
115471
115475
  this.iModel = args?.iModel;
115472
115476
  this.tileId = args?.tileId;
115473
115477
  this.viewAttachmentId = args?.viewAttachmentId;
115478
+ this.inSectionDrawingAttachment = true === args?.inSectionDrawingAttachment;
115474
115479
  this.transformFromIModel = args?.transformFromIModel;
115475
115480
  }
115476
115481
  /** The Id of the element that produced the pixel. */
@@ -115504,11 +115509,25 @@ var Pixel;
115504
115509
  * @param viewport The viewport in which the hit originated.
115505
115510
  */
115506
115511
  toHitProps(viewport) {
115507
- let viewAttachment;
115512
+ let path;
115508
115513
  if (this.viewAttachmentId) {
115509
- const attachmentViewport = viewport.view.getAttachmentViewport(this.viewAttachmentId);
115510
- if (attachmentViewport)
115511
- viewAttachment = { viewport: attachmentViewport, id: this.viewAttachmentId };
115514
+ const attachmentViewport = viewport.view.getAttachmentViewport({ viewAttachmentId: this.viewAttachmentId });
115515
+ if (attachmentViewport) {
115516
+ path = {
115517
+ viewAttachment: {
115518
+ viewport: attachmentViewport,
115519
+ id: this.viewAttachmentId,
115520
+ },
115521
+ };
115522
+ }
115523
+ }
115524
+ if (this.inSectionDrawingAttachment) {
115525
+ const checkVp = path?.viewAttachment?.viewport ?? viewport;
115526
+ const attachVp = checkVp.view.getAttachmentViewport({ inSectionDrawingAttachment: true });
115527
+ if (attachVp) {
115528
+ path = path ?? {};
115529
+ path.sectionDrawingAttachment = { viewport: attachVp };
115530
+ }
115512
115531
  }
115513
115532
  return {
115514
115533
  sourceId: this.elementId ?? _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid,
@@ -115521,7 +115540,7 @@ var Pixel;
115521
115540
  isClassifier: this.isClassifier,
115522
115541
  sourceIModel: this.iModel,
115523
115542
  transformFromSourceIModel: this.transformFromIModel,
115524
- viewAttachment,
115543
+ path,
115525
115544
  };
115526
115545
  }
115527
115546
  }
@@ -116348,7 +116367,6 @@ __webpack_require__.r(__webpack_exports__);
116348
116367
 
116349
116368
 
116350
116369
 
116351
- /* eslint-disable no-restricted-syntax */
116352
116370
  // cSpell:ignore deserializing subcat uninstanced wiremesh qorigin trimesh
116353
116371
  /** An opaque representation of a texture draped on geometry within a [[Viewport]].
116354
116372
  * @internal
@@ -116458,7 +116476,7 @@ class RenderSystem {
116458
116476
  * @returns the newly-created material, or undefined if the material could not be created or if a material with the same key as that specified in the params already exists.
116459
116477
  * @deprecated in 3.x. Use [[createRenderMaterial]].
116460
116478
  */
116461
- // eslint-disable-next-line deprecation/deprecation
116479
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
116462
116480
  createMaterial(_params, _imodel) { return undefined; }
116463
116481
  /** Create a [RenderMaterial]($common).
116464
116482
  * @see [[CreateRenderMaterialArgs]] for a description of the material parameters.
@@ -116743,7 +116761,7 @@ class RenderSystem {
116743
116761
  /** Create a new texture from an [[ImageBuffer]].
116744
116762
  * @deprecated in 3.x. Use [[createTexture]].
116745
116763
  */
116746
- // eslint-disable-next-line deprecation/deprecation
116764
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
116747
116765
  createTextureFromImageBuffer(image, iModel, params) {
116748
116766
  const ownership = params.key ? { key: params.key, iModel } : (params.isOwned ? "external" : undefined);
116749
116767
  return this.createTexture({
@@ -116758,7 +116776,7 @@ class RenderSystem {
116758
116776
  /** Create a new texture from an HTML image. Typically the image was extracted from a binary representation of a jpeg or png via [[imageElementFromImageSource]].
116759
116777
  * @deprecated in 3.x. Use [[createTexture]].
116760
116778
  */
116761
- // eslint-disable-next-line deprecation/deprecation
116779
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
116762
116780
  createTextureFromImage(image, hasAlpha, iModel, params) {
116763
116781
  const ownership = params.key && iModel ? { key: params.key, iModel } : (params.isOwned ? "external" : undefined);
116764
116782
  return this.createTexture({
@@ -116773,7 +116791,7 @@ class RenderSystem {
116773
116791
  /** Create a new texture from an ImageSource.
116774
116792
  * @deprecated in 3.x. Use RenderSystem.createTextureFromSource.
116775
116793
  */
116776
- // eslint-disable-next-line deprecation/deprecation
116794
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
116777
116795
  async createTextureFromImageSource(source, iModel, params) {
116778
116796
  const ownership = iModel && params.key ? { iModel, key: params.key } : (params.isOwned ? "external" : undefined);
116779
116797
  return this.createTextureFromSource({
@@ -116805,7 +116823,7 @@ class RenderSystem {
116805
116823
  }
116806
116824
  }
116807
116825
  /** Create a new texture by its element ID. This texture will be retrieved asynchronously from the backend. A placeholder image will be associated with the texture until the requested image data loads. */
116808
- // eslint-disable-next-line deprecation/deprecation
116826
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
116809
116827
  createTextureFromElement(_id, _imodel, _params, _format) {
116810
116828
  return undefined;
116811
116829
  }
@@ -116815,7 +116833,7 @@ class RenderSystem {
116815
116833
  /** Create a new texture from a cube of HTML images.
116816
116834
  * @internal
116817
116835
  */
116818
- // eslint-disable-next-line deprecation/deprecation
116836
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
116819
116837
  createTextureFromCubeImages(_posX, _negX, _posY, _negY, _posZ, _negZ, _imodel, _params) {
116820
116838
  return undefined;
116821
116839
  }
@@ -118638,6 +118656,7 @@ class BranchState {
118638
118656
  get secondaryClassifiers() { return this._opts.secondaryClassifiers; }
118639
118657
  get realityModelDisplaySettings() { return this._opts.realityModelDisplaySettings; }
118640
118658
  get viewAttachmentId() { return this._opts.viewAttachmentId; }
118659
+ get inSectionDrawingAttachment() { return this._opts.inSectionDrawingAttachment; }
118641
118660
  get groupNodeId() { return this._opts.groupNodeId; }
118642
118661
  get disableClipStyle() { return this._opts.disableClipStyle; }
118643
118662
  get symbologyOverrides() {
@@ -118671,6 +118690,7 @@ class BranchState {
118671
118690
  appearanceProvider: branch.appearanceProvider ?? (branch.branch.symbologyOverrides ? undefined : prev.appearanceProvider),
118672
118691
  realityModelDisplaySettings: branch.branch.realityModelDisplaySettings ?? prev.realityModelDisplaySettings,
118673
118692
  viewAttachmentId: branch.viewAttachmentId ?? prev.viewAttachmentId,
118693
+ inSectionDrawingAttachment: branch.inSectionDrawingAttachment ?? prev.inSectionDrawingAttachment,
118674
118694
  groupNodeId: branch.branch.groupNodeId ?? prev.groupNodeId,
118675
118695
  disableClipStyle: branch.disableClipStyle ?? prev.disableClipStyle,
118676
118696
  });
@@ -123320,17 +123340,20 @@ class Batch extends Graphic {
123320
123340
  get batchIModel() { return this._context.iModel; }
123321
123341
  get transformFromBatchIModel() { return this._context.transformFromIModel; }
123322
123342
  get viewAttachmentId() { return this._context.viewAttachmentId; }
123343
+ get inSectionDrawingAttachment() { return this._context.inSectionDrawingAttachment; }
123323
123344
  setContext(batchId, branch) {
123324
123345
  this._context.batchId = batchId;
123325
123346
  this._context.iModel = branch.iModel;
123326
123347
  this._context.transformFromIModel = branch.transformFromIModel;
123327
123348
  this._context.viewAttachmentId = branch.viewAttachmentId;
123349
+ this._context.inSectionDrawingAttachment = branch.inSectionDrawingAttachment;
123328
123350
  }
123329
123351
  resetContext() {
123330
123352
  this._context.batchId = 0;
123331
123353
  this._context.iModel = undefined;
123332
123354
  this._context.transformFromIModel = undefined;
123333
123355
  this._context.viewAttachmentId = undefined;
123356
+ this._context.inSectionDrawingAttachment = undefined;
123334
123357
  }
123335
123358
  constructor(graphic, features, range, options) {
123336
123359
  super();
@@ -123397,6 +123420,7 @@ class Branch extends Graphic {
123397
123420
  this.iModel = opts.iModel;
123398
123421
  this.frustum = opts.frustum;
123399
123422
  this.viewAttachmentId = opts.viewAttachmentId;
123423
+ this.inSectionDrawingAttachment = opts.inSectionDrawingAttachment;
123400
123424
  this.disableClipStyle = opts.disableClipStyle;
123401
123425
  this.transformFromExternalIModel = opts.transformFromIModel;
123402
123426
  if (opts.hline)
@@ -124673,7 +124697,7 @@ class Material extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.RenderMat
124673
124697
  get overridesRgb() { return this.rgba[0] >= 0; }
124674
124698
  get overridesAlpha() { return this.rgba[3] >= 0; }
124675
124699
  get hasTranslucency() { return this.overridesAlpha && this.rgba[3] < 1; }
124676
- // eslint-disable-next-line deprecation/deprecation
124700
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
124677
124701
  constructor(params) {
124678
124702
  super(params);
124679
124703
  // Used for type-switching vs MaterialAtlas
@@ -124710,7 +124734,7 @@ class Material extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.RenderMat
124710
124734
  this.fragUniforms[index] = loByte + hiByte * 256;
124711
124735
  }
124712
124736
  }
124713
- // eslint-disable-next-line deprecation/deprecation
124737
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
124714
124738
  Material.default = new Material(_itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.RenderMaterial.Params.defaults);
124715
124739
  /** Strictly for testing. */
124716
124740
  Material.preserveParams = false;
@@ -129186,6 +129210,7 @@ class PixelBuffer {
129186
129210
  transformFromIModel: batch.transformFromBatchIModel,
129187
129211
  tileId: batch.tileId,
129188
129212
  viewAttachmentId: batch.viewAttachmentId,
129213
+ inSectionDrawingAttachment: batch.inSectionDrawingAttachment,
129189
129214
  };
129190
129215
  }
129191
129216
  }
@@ -129257,13 +129282,14 @@ class PixelBuffer {
129257
129282
  }
129258
129283
  }
129259
129284
  }
129260
- let featureTable, iModel, transformToIModel, tileId, viewAttachmentId;
129285
+ let featureTable, iModel, transformToIModel, tileId, viewAttachmentId, inSectionDrawingAttachment;
129261
129286
  if (undefined !== batchInfo) {
129262
129287
  featureTable = batchInfo.featureTable;
129263
129288
  iModel = batchInfo.iModel;
129264
129289
  transformToIModel = batchInfo.transformFromIModel;
129265
129290
  tileId = batchInfo.tileId;
129266
129291
  viewAttachmentId = batchInfo.viewAttachmentId;
129292
+ inSectionDrawingAttachment = batchInfo.inSectionDrawingAttachment;
129267
129293
  }
129268
129294
  return new _Pixel__WEBPACK_IMPORTED_MODULE_4__.Pixel.Data({
129269
129295
  feature,
@@ -129275,6 +129301,7 @@ class PixelBuffer {
129275
129301
  transformFromIModel: transformToIModel,
129276
129302
  tileId,
129277
129303
  viewAttachmentId,
129304
+ inSectionDrawingAttachment,
129278
129305
  });
129279
129306
  }
129280
129307
  constructor(rect, selector, compositor) {
@@ -129996,7 +130023,7 @@ class Compositor extends SceneCompositor {
129996
130023
  try {
129997
130024
  gl.readPixels(rect.left, bottom, rect.width, rect.height, gl.RGBA, gl.UNSIGNED_BYTE, bytes);
129998
130025
  }
129999
- catch (e) {
130026
+ catch {
130000
130027
  result = undefined;
130001
130028
  }
130002
130029
  });
@@ -133565,7 +133592,7 @@ class IdMap {
133565
133592
  return this.gradients.get(symb);
133566
133593
  }
133567
133594
  /** Find or create a new material given material parameters. This will cache the material if its key is valid. */
133568
- // eslint-disable-next-line deprecation/deprecation
133595
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
133569
133596
  getMaterial(params) {
133570
133597
  if (!params.key || !_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.isValidId64(params.key)) // Only cache persistent materials.
133571
133598
  return new _Material__WEBPACK_IMPORTED_MODULE_21__.Material(params);
@@ -133584,7 +133611,7 @@ class IdMap {
133584
133611
  else
133585
133612
  return this.findGradient(key);
133586
133613
  }
133587
- // eslint-disable-next-line deprecation/deprecation
133614
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
133588
133615
  getTextureFromElement(key, iModel, params, format) {
133589
133616
  let tex = this.findTexture(params.key);
133590
133617
  if (tex)
@@ -133636,7 +133663,7 @@ class IdMap {
133636
133663
  this.texturesFromImageSources.delete(key);
133637
133664
  }
133638
133665
  }
133639
- // eslint-disable-next-line deprecation/deprecation
133666
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
133640
133667
  getTextureFromCubeImages(posX, negX, posY, negY, posZ, negZ, params) {
133641
133668
  let tex = this.findTexture(params.key);
133642
133669
  if (tex)
@@ -133942,7 +133969,7 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_9__.RenderSystem {
133942
133969
  this.resourceCache.delete(imodel);
133943
133970
  }
133944
133971
  /** Attempt to create a material for the given iModel using a set of material parameters. */
133945
- // eslint-disable-next-line deprecation/deprecation
133972
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
133946
133973
  createMaterial(params, imodel) {
133947
133974
  const idMap = this.getIdMap(imodel);
133948
133975
  const material = idMap.getMaterial(params);
@@ -133954,7 +133981,7 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_9__.RenderSystem {
133954
133981
  if (cached)
133955
133982
  return cached;
133956
133983
  }
133957
- // eslint-disable-next-line deprecation/deprecation
133984
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
133958
133985
  const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RenderMaterial.Params();
133959
133986
  params.alpha = args.alpha;
133960
133987
  if (undefined !== args.diffuse?.weight)
@@ -134025,11 +134052,11 @@ class System extends _RenderSystem__WEBPACK_IMPORTED_MODULE_9__.RenderSystem {
134025
134052
  return super.createTextureFromSource(args);
134026
134053
  return this.getIdMap(args.ownership.iModel).getTextureFromImageSource(args, args.ownership.key);
134027
134054
  }
134028
- // eslint-disable-next-line deprecation/deprecation
134055
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
134029
134056
  createTextureFromElement(id, imodel, params, format) {
134030
134057
  return this.getIdMap(imodel).getTextureFromElement(id, imodel, params, format);
134031
134058
  }
134032
- // eslint-disable-next-line deprecation/deprecation
134059
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
134033
134060
  createTextureFromCubeImages(posX, negX, posY, negY, posZ, negZ, imodel, params) {
134034
134061
  return this.getIdMap(imodel).getTextureFromCubeImages(posX, negX, posY, negY, posZ, negZ, params);
134035
134062
  }
@@ -135042,7 +135069,7 @@ class Target extends _RenderTarget__WEBPACK_IMPORTED_MODULE_7__.RenderTarget {
135042
135069
  try {
135043
135070
  context.readPixels(x, y, w, h, context.RGBA, context.UNSIGNED_BYTE, out);
135044
135071
  }
135045
- catch (e) {
135072
+ catch {
135046
135073
  didSucceed = false;
135047
135074
  }
135048
135075
  });
@@ -137456,7 +137483,7 @@ class ExternalTextureLoader {
137456
137483
  }
137457
137484
  }
137458
137485
  }
137459
- catch (_e) { }
137486
+ catch { }
137460
137487
  return this._nextRequest(req);
137461
137488
  }
137462
137489
  async _convertTexture() {
@@ -137480,7 +137507,7 @@ class ExternalTextureLoader {
137480
137507
  }
137481
137508
  }
137482
137509
  }
137483
- catch (_e) { }
137510
+ catch { }
137484
137511
  this._convertPending = false;
137485
137512
  }
137486
137513
  _requestExists(reqToCheck) {
@@ -147284,7 +147311,7 @@ function createClassifierId(classifier, source) {
147284
147311
  if (undefined === classifier)
147285
147312
  return { modelId: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid, type: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BatchType.PlanarClassifier, expansion: 0, animationId: undefined };
147286
147313
  const type = classifier.flags.isVolumeClassifier ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BatchType.VolumeClassifier : _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BatchType.PlanarClassifier;
147287
- const scriptInfo = _IModelApp__WEBPACK_IMPORTED_MODULE_2__.IModelApp.tileAdmin.getScriptInfoForTreeId(classifier.modelId, source?.scheduleScriptReference); // eslint-disable-line deprecation/deprecation
147314
+ const scriptInfo = _IModelApp__WEBPACK_IMPORTED_MODULE_2__.IModelApp.tileAdmin.getScriptInfoForTreeId(classifier.modelId, source?.scheduleScriptReference); // eslint-disable-line @typescript-eslint/no-deprecated
147288
147315
  return {
147289
147316
  modelId: classifier.modelId,
147290
147317
  type,
@@ -147328,7 +147355,7 @@ class ContextShareProvider {
147328
147355
  try {
147329
147356
  attUrl = new URL(tilesetUrl);
147330
147357
  }
147331
- catch (e) {
147358
+ catch {
147332
147359
  // Not a valid URL for Context share
147333
147360
  return false;
147334
147361
  }
@@ -147359,7 +147386,7 @@ class ContextShareProvider {
147359
147386
  try {
147360
147387
  attUrl = new URL(tilesetUrl);
147361
147388
  }
147362
- catch (e) {
147389
+ catch {
147363
147390
  // Not a valid URL and not equal, probably $cesiumAsset
147364
147391
  return invalidUrlInfo;
147365
147392
  }
@@ -148057,7 +148084,7 @@ class GltfReaderProps {
148057
148084
  json = JSON.parse(utf8Json);
148058
148085
  version = 2;
148059
148086
  }
148060
- catch (_) {
148087
+ catch {
148061
148088
  return undefined;
148062
148089
  }
148063
148090
  }
@@ -148076,7 +148103,7 @@ class GltfReaderProps {
148076
148103
  return undefined;
148077
148104
  json = JSON.parse(jsonStr);
148078
148105
  }
148079
- catch (_) {
148106
+ catch {
148080
148107
  return undefined;
148081
148108
  }
148082
148109
  }
@@ -148630,7 +148657,7 @@ class GltfReader {
148630
148657
  const bytes = aligned ? bufferData.subarray(offset, offset + length) : bufferData.slice(offset, offset + length);
148631
148658
  return new GltfBufferView(bytes, accessor.count, type, accessor, byteStride / dataSize);
148632
148659
  }
148633
- catch (e) {
148660
+ catch {
148634
148661
  return undefined;
148635
148662
  }
148636
148663
  }
@@ -149391,8 +149418,7 @@ class GltfReader {
149391
149418
  promises.push(this.resolveImage(image));
149392
149419
  await Promise.all(promises);
149393
149420
  }
149394
- catch (_) {
149395
- }
149421
+ catch { }
149396
149422
  }
149397
149423
  async decodeDracoMesh(ext, loader) {
149398
149424
  const bv = this._bufferViews[ext.bufferView];
@@ -149413,7 +149439,7 @@ class GltfReader {
149413
149439
  resolved.search = this._baseUrl?.search ?? "";
149414
149440
  return resolved.toString();
149415
149441
  }
149416
- catch (_) {
149442
+ catch {
149417
149443
  return undefined;
149418
149444
  }
149419
149445
  }
@@ -149431,7 +149457,7 @@ class GltfReader {
149431
149457
  if (data)
149432
149458
  buffer.resolvedBuffer = new Uint8Array(data);
149433
149459
  }
149434
- catch (_) {
149460
+ catch {
149435
149461
  //
149436
149462
  }
149437
149463
  }
@@ -149456,7 +149482,7 @@ class GltfReader {
149456
149482
  else
149457
149483
  image.resolvedImage = await (0,_common_ImageUtil__WEBPACK_IMPORTED_MODULE_10__.imageElementFromImageSource)(imageSource);
149458
149484
  }
149459
- catch (_) {
149485
+ catch {
149460
149486
  //
149461
149487
  }
149462
149488
  return;
@@ -150931,11 +150957,11 @@ async function loadNamedTexture(name, namedTex, options) {
150931
150957
  return await options.system.createTextureFromSource({ source, ownership, type: textureType, transparency: namedTex.transparency });
150932
150958
  }
150933
150959
  // bufferViewJson was undefined, so attempt to request the texture directly from the backend
150934
- // eslint-disable-next-line deprecation/deprecation
150960
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
150935
150961
  const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderTexture.Params(cacheable ? name : undefined, textureType);
150936
150962
  return options.system.createTextureFromElement(name, options.iModel, params, namedTex.format);
150937
150963
  }
150938
- catch (_) {
150964
+ catch {
150939
150965
  return undefined;
150940
150966
  }
150941
150967
  }
@@ -151022,7 +151048,7 @@ function getMaterial(mat, options) {
151022
151048
  function colorDefFromJson(col) {
151023
151049
  return col ? _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.ColorDef.from(col[0] * 255 + 0.5, col[1] * 255 + 0.5, col[2] * 255 + 0.5) : undefined;
151024
151050
  }
151025
- // eslint-disable-next-line deprecation/deprecation
151051
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
151026
151052
  const params = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMaterial.Params(mat);
151027
151053
  params.diffuseColor = colorDefFromJson(json.diffuseColor);
151028
151054
  if (json.diffuse !== undefined)
@@ -151042,7 +151068,7 @@ function getMaterial(mat, options) {
151042
151068
  params.ambient = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.JsonUtils.asDouble(json.ambient);
151043
151069
  if (undefined !== json.textureMapping)
151044
151070
  params.textureMapping = textureMappingFromJson(json.textureMapping.texture, options);
151045
- // eslint-disable-next-line deprecation/deprecation
151071
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
151046
151072
  return options.system.createMaterial(params, options.iModel);
151047
151073
  }
151048
151074
  function getModifiers(primitive) {
@@ -152288,7 +152314,7 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_9__.TileTree {
152288
152314
  this.viewFlagOverrides = {};
152289
152315
  this._tileGraphics = new Map();
152290
152316
  const worldContentRange = this.iModelTransform.multiplyRange(cloudRange);
152291
- /* eslint-disable-next-line deprecation/deprecation */
152317
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
152292
152318
  this.iModel.expandDisplayedExtents(worldContentRange);
152293
152319
  this._tileParams = { contentId: "0", range: cloudRange, maximumSize: 256 };
152294
152320
  this.rootTile = new OrbitGtRootTile(this._tileParams, this);
@@ -152392,7 +152418,6 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_9__.TileTree {
152392
152418
  }
152393
152419
  }
152394
152420
  /** @internal */
152395
- // eslint-disable-next-line no-redeclare
152396
152421
  (function (OrbitGtTileTree) {
152397
152422
  function isValidSASToken(downloadUrl) {
152398
152423
  // Create fake URL for and parameter parsing and SAS token URI parsing
@@ -152712,7 +152737,7 @@ async function readPointCloudTileContent(stream, iModel, modelId, _is3d, tile, s
152712
152737
  const buf = new Uint8Array(stream.arrayBuffer, dataOffset + draco.byteOffset, draco.byteLength);
152713
152738
  props = await decodeDracoPointCloud(buf);
152714
152739
  }
152715
- catch (_) {
152740
+ catch {
152716
152741
  //
152717
152742
  }
152718
152743
  }
@@ -152860,7 +152885,7 @@ class PrimaryTreeSupplier {
152860
152885
  elevation = (lo + hi) / 2;
152861
152886
  }
152862
152887
  }
152863
- catch (_err) {
152888
+ catch {
152864
152889
  //
152865
152890
  }
152866
152891
  return new PlanProjectionTileTree(params, id.treeId, elevation);
@@ -152913,7 +152938,7 @@ class PrimaryTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTr
152913
152938
  return cutApp ? app.extendAppearance(cutApp) : app;
152914
152939
  });
152915
152940
  }
152916
- const scriptInfo = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(model.id, view.displayStyle.scheduleScriptReference); // eslint-disable-line deprecation/deprecation
152941
+ const scriptInfo = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(model.id, view.displayStyle.scheduleScriptReference); // eslint-disable-line @typescript-eslint/no-deprecated
152917
152942
  this._id = {
152918
152943
  modelId: model.id,
152919
152944
  is3d: model.is3d,
@@ -152958,7 +152983,7 @@ class PrimaryTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTr
152958
152983
  }
152959
152984
  get treeOwner() {
152960
152985
  const newId = this.createTreeId(this.view, this._id.modelId);
152961
- const timeline = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(this._id.modelId, this.view.displayStyle.scheduleScriptReference)?.timeline; // eslint-disable-line deprecation/deprecation
152986
+ const timeline = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(this._id.modelId, this.view.displayStyle.scheduleScriptReference)?.timeline; // eslint-disable-line @typescript-eslint/no-deprecated
152962
152987
  if (0 !== (0,_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.compareIModelTileTreeIds)(newId, this._id.treeId) || timeline !== this._id.timeline) {
152963
152988
  this._id = {
152964
152989
  modelId: this._id.modelId,
@@ -152984,7 +153009,7 @@ class PrimaryTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_6__.TileTr
152984
153009
  forceSurfaceDiscard: true,
152985
153010
  };
152986
153011
  }
152987
- const animationId = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(modelId, view.displayStyle.scheduleScriptReference)?.animationId; // eslint-disable-line deprecation/deprecation
153012
+ const animationId = _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.getScriptInfoForTreeId(modelId, view.displayStyle.scheduleScriptReference)?.animationId; // eslint-disable-line @typescript-eslint/no-deprecated
152988
153013
  const renderMode = this._viewFlagOverrides.renderMode ?? view.viewFlags.renderMode;
152989
153014
  const visibleEdges = this._viewFlagOverrides.visibleEdges ?? view.viewFlags.visibleEdges;
152990
153015
  const edgesRequired = visibleEdges || _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RenderMode.SmoothShade !== renderMode || _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.alwaysRequestEdges;
@@ -153278,7 +153303,7 @@ class SpatialRefs {
153278
153303
  this._sectionCutOnlyRefs = new Map();
153279
153304
  this._swapSectionCutOnlyRefs = new Map();
153280
153305
  this._view = view;
153281
- this._scheduleScript = view.displayStyle.scheduleScriptReference; // eslint-disable-line deprecation/deprecation
153306
+ this._scheduleScript = view.displayStyle.scheduleScriptReference; // eslint-disable-line @typescript-eslint/no-deprecated
153282
153307
  this._sectionCut = this.getSectionCutFromView();
153283
153308
  if (excludedModels)
153284
153309
  this._excludedModels = new Set(excludedModels);
@@ -153340,7 +153365,7 @@ class SpatialRefs {
153340
153365
  this._allLoaded = true;
153341
153366
  this.updateModels();
153342
153367
  }
153343
- const curScript = this._view.displayStyle.scheduleScriptReference; // eslint-disable-line deprecation/deprecation
153368
+ const curScript = this._view.displayStyle.scheduleScriptReference; // eslint-disable-line @typescript-eslint/no-deprecated
153344
153369
  const prevScript = this._scheduleScript;
153345
153370
  if (curScript !== prevScript) {
153346
153371
  this._scheduleScript = curScript;
@@ -153846,14 +153871,13 @@ class RealityModelTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.Realit
153846
153871
  this._isContentUnbounded = this.rootTile.contentRange.diagonal().magnitude() > 2 * _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Constant.earthRadiusWGS84.equator;
153847
153872
  if (!this.isContentUnbounded && !this.rootTile.contentRange.isNull) {
153848
153873
  const worldContentRange = this.iModelTransform.multiplyRange(this.rootTile.contentRange);
153849
- /* eslint-disable-next-line deprecation/deprecation */
153874
+ /* eslint-disable-next-line @typescript-eslint/no-deprecated */
153850
153875
  this.iModel.expandDisplayedExtents(worldContentRange);
153851
153876
  }
153852
153877
  }
153853
153878
  get isContentUnbounded() { return this._isContentUnbounded; }
153854
153879
  }
153855
153880
  /** @internal */
153856
- // eslint-disable-next-line no-redeclare
153857
153881
  (function (RealityModelTileTree) {
153858
153882
  class Reference extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTreeReference {
153859
153883
  // public get classifiers(): SpatialClassifiers | undefined { return undefined !== this._classifier ? this._classifier.classifiers : undefined; }
@@ -154924,7 +154948,7 @@ class RealityTileLoader {
154924
154948
  if (content.containsPointCloud)
154925
154949
  this._containsPointClouds = true;
154926
154950
  }
154927
- catch (_err) {
154951
+ catch {
154928
154952
  // Failure to load should prevent us from trying to load children
154929
154953
  content.isLeaf = true;
154930
154954
  }
@@ -155622,7 +155646,7 @@ class ThreeDTileFormatInterpreter {
155622
155646
  }
155623
155647
  }
155624
155648
  }
155625
- catch (e) {
155649
+ catch {
155626
155650
  _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logWarning(loggerCategory, `Error getSpatialLocationAndExtents - cannot interpret json`);
155627
155651
  // return first 1024 char from the json
155628
155652
  const getMetaData = () => {
@@ -156684,7 +156708,6 @@ class TileAdmin {
156684
156708
  * @internal
156685
156709
  */
156686
156710
  isTileInUse(marker) {
156687
- // eslint-disable-next-line @typescript-eslint/naming-convention
156688
156711
  for (const [_user, markers] of this._tileUsagePerUser)
156689
156712
  if (markers.has(marker))
156690
156713
  return true;
@@ -156968,7 +156991,7 @@ class TileAdmin {
156968
156991
  _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.lookup(_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelTileRpcInterface, "requestTileTreeProps").policy.retryInterval = () => retryInterval;
156969
156992
  const policy = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcOperation.lookup(_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelTileRpcInterface, "generateTileContent").policy;
156970
156993
  policy.retryInterval = () => retryInterval;
156971
- policy.allowResponseCaching = () => _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcResponseCacheControl.Immutable; // eslint-disable-line deprecation/deprecation
156994
+ policy.allowResponseCaching = () => _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RpcResponseCacheControl.Immutable;
156972
156995
  }
156973
156996
  }
156974
156997
  /** @public */
@@ -157650,7 +157673,7 @@ class TileRequest {
157650
157673
  this.notifyAndClear();
157651
157674
  this.channel.recordCompletion(this.tile, content, Date.now() - start);
157652
157675
  }
157653
- catch (_err) {
157676
+ catch {
157654
157677
  this.setFailed();
157655
157678
  }
157656
157679
  }
@@ -157760,7 +157783,7 @@ class TileRequestChannelStatistics {
157760
157783
  const val = this[key];
157761
157784
  if (typeof val === "number") {
157762
157785
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof stats[key] === "number");
157763
- stats[key] += val;
157786
+ stats[key] += val; // eslint-disable-line @typescript-eslint/no-unnecessary-type-assertion
157764
157787
  }
157765
157788
  }
157766
157789
  stats.decoding.total += this.decoding.total;
@@ -158184,7 +158207,7 @@ class TileStorage {
158184
158207
  });
158185
158208
  return new Uint8Array(buffer); // should always be Buffer because transferType === "buffer"
158186
158209
  }
158187
- catch (_) {
158210
+ catch {
158188
158211
  // @itwin/object-storage re-throws internal implementation-specific errors, so let's treat them all as 404 for now.
158189
158212
  return undefined;
158190
158213
  }
@@ -159465,7 +159488,6 @@ class ArcGISTileMap {
159465
159488
  this._restBaseUrl = restBaseUrl;
159466
159489
  this._fetchFunc = fetchFunc;
159467
159490
  this._settings = settings;
159468
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
159469
159491
  this._callQueues = new Array(ArcGISTileMap.maxLod).fill(Promise.resolve(nonVisibleChildren));
159470
159492
  }
159471
159493
  async fetchTileMapFromServer(level, row, column, width, height) {
@@ -159946,7 +159968,7 @@ class ArcGisUtilities {
159946
159968
  ArcGisUtilities._serviceCache.set(url, (errorCode === undefined ? info : undefined));
159947
159969
  return info; // Always return json, even though it contains an error code.
159948
159970
  }
159949
- catch (_error) {
159971
+ catch {
159950
159972
  ArcGisUtilities._serviceCache.set(url, undefined);
159951
159973
  return undefined;
159952
159974
  }
@@ -160104,7 +160126,7 @@ class BingElevationProvider {
160104
160126
  const tileResponseBody = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_0__.request)(requestUrl, "json");
160105
160127
  return tileResponseBody.resourceSets[0].resources[0].elevations[0];
160106
160128
  }
160107
- catch (error) {
160129
+ catch {
160108
160130
  return 0.0;
160109
160131
  }
160110
160132
  }
@@ -160119,7 +160141,7 @@ class BingElevationProvider {
160119
160141
  const tileResponseBody = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_0__.request)(requestUrl, "json");
160120
160142
  return tileResponseBody.resourceSets[0].resources[0].elevations;
160121
160143
  }
160122
- catch (error) {
160144
+ catch {
160123
160145
  return undefined;
160124
160146
  }
160125
160147
  }
@@ -160133,7 +160155,7 @@ class BingElevationProvider {
160133
160155
  const tileResponseBody = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_0__.request)(requestUrl, "json");
160134
160156
  return tileResponseBody.resourceSets[0].resources[0].offsets[0];
160135
160157
  }
160136
- catch (error) {
160158
+ catch {
160137
160159
  return 0.0;
160138
160160
  }
160139
160161
  }
@@ -160259,7 +160281,7 @@ async function getCesiumAccessTokenAndEndpointUrl(assetId, requestKey) {
160259
160281
  }
160260
160282
  return { token: apiResponse.accessToken, url: apiResponse.url };
160261
160283
  }
160262
- catch (error) {
160284
+ catch {
160263
160285
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false);
160264
160286
  return {};
160265
160287
  }
@@ -160285,7 +160307,7 @@ async function getCesiumTerrainProvider(opts) {
160285
160307
  const layerUrl = `${accessTokenAndEndpointUrl.url}layer.json`;
160286
160308
  layers = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_4__.request)(layerUrl, "json", layerRequestOptions);
160287
160309
  }
160288
- catch (error) {
160310
+ catch {
160289
160311
  notifyTerrainError();
160290
160312
  return undefined;
160291
160313
  }
@@ -160400,7 +160422,7 @@ class CesiumTerrainProvider extends _internal__WEBPACK_IMPORTED_MODULE_8__.Terra
160400
160422
  const response = await (0,_request_Request__WEBPACK_IMPORTED_MODULE_4__.request)(tileUrl, "arraybuffer", requestOptions);
160401
160423
  return new Uint8Array(response);
160402
160424
  }
160403
- catch (_) {
160425
+ catch {
160404
160426
  return undefined;
160405
160427
  }
160406
160428
  }
@@ -160847,7 +160869,7 @@ class ArcGISImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_0__.MapLa
160847
160869
  try {
160848
160870
  metadata = await _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGisUtilities.getServiceJson({ url: this._settings.url, formatId: this._settings.formatId, userName: this._settings.userName, password: this._settings.password, queryParams: this._settings.collectQueryParams() });
160849
160871
  }
160850
- catch (_e) {
160872
+ catch {
160851
160873
  }
160852
160874
  if (metadata && metadata.accessTokenRequired) {
160853
160875
  const accessClient = _IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.mapLayerFormatRegistry.getAccessClient(this._settings.formatId);
@@ -161548,15 +161570,14 @@ class BingMapsImageryLayerProvider extends _internal__WEBPACK_IMPORTED_MODULE_3_
161548
161570
  return matchingAttributions;
161549
161571
  const unmatchedSet = this._attributions.slice();
161550
161572
  for (const tile of tiles) {
161551
- if (tile instanceof _internal__WEBPACK_IMPORTED_MODULE_3__.MapTile)
161573
+ if (tile instanceof _internal__WEBPACK_IMPORTED_MODULE_3__.MapTile) {
161552
161574
  // compare to the set of Bing attributions that we have not yet matched.
161553
- for (let iAttr = 0; iAttr < unmatchedSet.length; iAttr++) {
161554
- const attribution = unmatchedSet[iAttr];
161575
+ for (const attribution of unmatchedSet) {
161555
161576
  if (attribution && attribution.matchesTile(tile, this._mapTilingScheme)) {
161556
161577
  matchingAttributions.push(attribution);
161557
- delete unmatchedSet[iAttr];
161558
161578
  }
161559
161579
  }
161580
+ }
161560
161581
  }
161561
161582
  return matchingAttributions;
161562
161583
  }
@@ -161598,7 +161619,7 @@ class BingMapsImageryLayerProvider extends _internal__WEBPACK_IMPORTED_MODULE_3_
161598
161619
  this._missingTileData = tileData.data;
161599
161620
  });
161600
161621
  }
161601
- catch (error) {
161622
+ catch {
161602
161623
  throw new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.IModelStatus.BadModel, "Error in Bing Server communications");
161603
161624
  }
161604
161625
  }
@@ -161919,7 +161940,7 @@ class FeatureGraphicsRenderer extends _internal__WEBPACK_IMPORTED_MODULE_3__.Fea
161919
161940
  const spatialPoints = await this.toSpatial(pointsArray);
161920
161941
  this._graphics.push({ type: "pointstring", points: spatialPoints });
161921
161942
  }
161922
- catch (error) {
161943
+ catch {
161923
161944
  _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logError(loggerCategory, "FeatureGraphicsRenderer: Could not reproject points");
161924
161945
  }
161925
161946
  this._scratchPointsArray.clear();
@@ -165210,7 +165231,7 @@ class MapTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_3__.RealityTileLo
165210
165231
  const data = await this.terrainProvider.requestMeshData({ tile, isCanceled });
165211
165232
  return undefined !== data ? { data } : undefined;
165212
165233
  }
165213
- catch (_) {
165234
+ catch {
165214
165235
  return undefined;
165215
165236
  }
165216
165237
  }
@@ -172338,7 +172359,7 @@ class MeasureMarker extends _Marker__WEBPACK_IMPORTED_MODULE_7__.Marker {
172338
172359
  ctx.fill();
172339
172360
  ctx.stroke();
172340
172361
  };
172341
- this.drawFunc = markerDrawFunc; // eslint-disable-line @typescript-eslint/unbound-method
172362
+ this.drawFunc = markerDrawFunc;
172342
172363
  this.title = title;
172343
172364
  this.label = label;
172344
172365
  this.labelFont = "16px sans-serif";
@@ -172729,7 +172750,7 @@ class MeasureDistanceTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_10__.P
172729
172750
  ev.viewport.invalidateDecorations();
172730
172751
  return true;
172731
172752
  };
172732
- marker.onMouseButton = segMarkerButtonFunc; // eslint-disable-line @typescript-eslint/unbound-method
172753
+ marker.onMouseButton = segMarkerButtonFunc;
172733
172754
  this._acceptedSegments.push({ distance, slope, start, end, delta, adjustedStart, adjustedEnd, adjustedDelta, refAxes, marker });
172734
172755
  }
172735
172756
  }
@@ -179331,14 +179352,14 @@ class ViewLookAndMove extends ViewNavigate {
179331
179352
  if (undefined === this._pointerLockClickEngagementListener) {
179332
179353
  this._pointerLockClickEngagementListener = () => {
179333
179354
  if (1 === this.viewTool.nPts && undefined !== _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.cursorView)
179334
- vp.canvas.requestPointerLock();
179355
+ void vp.canvas.requestPointerLock();
179335
179356
  };
179336
179357
  document.addEventListener("click", this._pointerLockClickEngagementListener, false);
179337
179358
  }
179338
179359
  if (undefined === this._pointerLockKeyEngagementListener) {
179339
179360
  this._pointerLockKeyEngagementListener = (ev) => {
179340
179361
  if (0 === this.viewTool.nPts && undefined !== _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.toolAdmin.cursorView && this.isNavigationKey(ev))
179341
- vp.canvas.requestPointerLock();
179362
+ void vp.canvas.requestPointerLock();
179342
179363
  };
179343
179364
  document.addEventListener("keydown", this._pointerLockKeyEngagementListener, false);
179344
179365
  }
@@ -181610,7 +181631,7 @@ __webpack_require__.r(__webpack_exports__);
181610
181631
  *--------------------------------------------------------------------------------------------*/
181611
181632
 
181612
181633
 
181613
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
181634
+ /* eslint-disable @typescript-eslint/naming-convention */
181614
181635
  /**
181615
181636
  * Enumeration of the 6 possible orderings of XYZ axis order
181616
181637
  * * **Note:** There are 3 axis order with right hand system (XYZ = 0, YZX = 1, ZXY = 2) and 3 axis order with
@@ -182669,7 +182690,7 @@ class Geometry {
182669
182690
  * * If the clone method returns `undefined`, then `undefined` is forced into the cloned array.
182670
182691
  * @deprecated in 4.x. Use cloneArray.
182671
182692
  */
182672
- // eslint-disable-next-line deprecation/deprecation
182693
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
182673
182694
  static cloneMembers(array) {
182674
182695
  if (array === undefined)
182675
182696
  return undefined;
@@ -182916,7 +182937,6 @@ __webpack_require__.r(__webpack_exports__);
182916
182937
  */
182917
182938
  // import { Point2d } from "../Geometry2d";
182918
182939
 
182919
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
182920
182940
 
182921
182941
 
182922
182942
  /** Bspline knots and poles for 1d-to-Nd.
@@ -183394,13 +183414,14 @@ class BSplineCurve3dBase extends _curve_CurvePrimitive__WEBPACK_IMPORTED_MODULE_
183394
183414
  * * If the space point is exactly on the curve, this is the reverse of fractionToPoint.
183395
183415
  * * Since CurvePrimitive should always have start and end available as candidate points, this method should always succeed
183396
183416
  * @param spacePoint point in space
183397
- * @param _extend ignored. A BSplineCurve3dBase cannot be extended.
183398
- * @returns Returns a CurveLocationDetail structure that holds the details of the close point.
183417
+ * @param _extend ignored (pass false). A BSplineCurve3dBase cannot be extended.
183418
+ * @param result optional pre-allocated detail to populate and return.
183419
+ * @returns details of the closest point.
183399
183420
  */
183400
- closestPoint(spacePoint, _extend) {
183421
+ closestPoint(spacePoint, _extend, result) {
183401
183422
  // seed at start point -- final point comes with final bezier perpendicular step.
183402
183423
  const point = this.fractionToPoint(0);
183403
- const result = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveFractionPointDistance(this, 0.0, point, point.distance(spacePoint));
183424
+ result = _curve_CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveFractionPointDistance(this, 0.0, point, point.distance(spacePoint), result);
183404
183425
  let span;
183405
183426
  const numSpans = this.numSpan;
183406
183427
  for (let i = 0; i < numSpans; i++) {
@@ -191876,7 +191897,7 @@ class ClipVector {
191876
191897
  result._clips.push(clipPrim);
191877
191898
  }
191878
191899
  }
191879
- catch (e) {
191900
+ catch {
191880
191901
  result.clear();
191881
191902
  }
191882
191903
  return result;
@@ -196372,9 +196393,10 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
196372
196393
  * has pointer to an additional detail for the child curve.
196373
196394
  * @param spacePoint point in space
196374
196395
  * @param extend true to extend the curve
196375
- * @returns a CurveLocationDetail structure that holds the details of the close point.
196396
+ * @param result optional pre-allocated detail to populate and return.
196397
+ * @returns details of the closest point
196376
196398
  */
196377
- closestPoint(spacePoint, extend) {
196399
+ closestPoint(spacePoint, extend, result) {
196378
196400
  let childDetail;
196379
196401
  let aMin = Number.MAX_VALUE;
196380
196402
  const numChildren = this.path.children.length;
@@ -196413,7 +196435,7 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
196413
196435
  }
196414
196436
  if (!childDetail)
196415
196437
  return undefined;
196416
- return this.computeChainDetail(childDetail);
196438
+ return this.computeChainDetail(childDetail, result);
196417
196439
  }
196418
196440
  /**
196419
196441
  * Construct an offset of each child as viewed in the xy-plane (ignoring z).
@@ -196449,17 +196471,18 @@ class CurveChainWithDistanceIndex extends _curve_CurvePrimitive__WEBPACK_IMPORTE
196449
196471
  /**
196450
196472
  * Compute the global chain detail corresponding to a local child detail.
196451
196473
  * @param childDetail the local (fragment) detail, captured as-is.
196452
- * @returns newly allocated global (chain) detail with its `childDetail` field pointing to the input, and its `a`
196453
- * field copied from the input.
196474
+ * @param result optional pre-allocated detail to populate and return.
196475
+ * @returns global (chain) detail with its `childDetail` field pointing to the input and its `a`
196476
+ * field copied from the input, but if a PathFragment for `childDetail` cannot be resolved, return undefined.
196454
196477
  */
196455
- computeChainDetail(childDetail) {
196478
+ computeChainDetail(childDetail, result) {
196456
196479
  if (!childDetail.curve)
196457
196480
  return undefined;
196458
196481
  const fragment = this.curveAndChildFractionToFragment(childDetail.curve, childDetail.fraction);
196459
196482
  if (fragment) {
196460
196483
  const chainDistance = fragment.childFractionToChainDistance(childDetail.fraction);
196461
196484
  const chainFraction = this.chainDistanceToChainFraction(chainDistance);
196462
- const chainDetail = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__.CurveLocationDetail.createCurveFractionPoint(this, chainFraction, childDetail.point);
196485
+ const chainDetail = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__.CurveLocationDetail.createCurveFractionPoint(this, chainFraction, childDetail.point, result);
196463
196486
  chainDetail.childDetail = childDetail;
196464
196487
  chainDetail.a = childDetail.a;
196465
196488
  return chainDetail;
@@ -196519,16 +196542,16 @@ __webpack_require__.r(__webpack_exports__);
196519
196542
  /* harmony export */ "CurveCollection": () => (/* binding */ CurveCollection)
196520
196543
  /* harmony export */ });
196521
196544
  /* harmony import */ var _Geometry__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Geometry */ "../../core/geometry/lib/esm/Geometry.js");
196522
- /* harmony import */ var _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CurveLocationDetail */ "../../core/geometry/lib/esm/curve/CurveLocationDetail.js");
196523
- /* harmony import */ var _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
196545
+ /* harmony import */ var _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CurveLocationDetail */ "../../core/geometry/lib/esm/curve/CurveLocationDetail.js");
196546
+ /* harmony import */ var _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
196524
196547
  /* harmony import */ var _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GeometryQuery */ "../../core/geometry/lib/esm/curve/GeometryQuery.js");
196525
- /* harmony import */ var _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./internalContexts/CloneCurvesContext */ "../../core/geometry/lib/esm/curve/internalContexts/CloneCurvesContext.js");
196526
- /* harmony import */ var _internalContexts_CloneWithExpandedLineStrings__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./internalContexts/CloneWithExpandedLineStrings */ "../../core/geometry/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.js");
196527
- /* harmony import */ var _internalContexts_CountLinearPartsSearchContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./internalContexts/CountLinearPartsSearchContext */ "../../core/geometry/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js");
196528
- /* harmony import */ var _internalContexts_GapSearchContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./internalContexts/GapSearchContext */ "../../core/geometry/lib/esm/curve/internalContexts/GapSearchContext.js");
196548
+ /* harmony import */ var _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./internalContexts/CloneCurvesContext */ "../../core/geometry/lib/esm/curve/internalContexts/CloneCurvesContext.js");
196549
+ /* harmony import */ var _internalContexts_CloneWithExpandedLineStrings__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./internalContexts/CloneWithExpandedLineStrings */ "../../core/geometry/lib/esm/curve/internalContexts/CloneWithExpandedLineStrings.js");
196550
+ /* harmony import */ var _internalContexts_CountLinearPartsSearchContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./internalContexts/CountLinearPartsSearchContext */ "../../core/geometry/lib/esm/curve/internalContexts/CountLinearPartsSearchContext.js");
196551
+ /* harmony import */ var _internalContexts_GapSearchContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./internalContexts/GapSearchContext */ "../../core/geometry/lib/esm/curve/internalContexts/GapSearchContext.js");
196529
196552
  /* harmony import */ var _internalContexts_PlaneAltitudeRangeContext__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./internalContexts/PlaneAltitudeRangeContext */ "../../core/geometry/lib/esm/curve/internalContexts/PlaneAltitudeRangeContext.js");
196530
196553
  /* harmony import */ var _internalContexts_SumLengthsContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./internalContexts/SumLengthsContext */ "../../core/geometry/lib/esm/curve/internalContexts/SumLengthsContext.js");
196531
- /* harmony import */ var _internalContexts_TransformInPlaceContext__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./internalContexts/TransformInPlaceContext */ "../../core/geometry/lib/esm/curve/internalContexts/TransformInPlaceContext.js");
196554
+ /* harmony import */ var _internalContexts_TransformInPlaceContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./internalContexts/TransformInPlaceContext */ "../../core/geometry/lib/esm/curve/internalContexts/TransformInPlaceContext.js");
196532
196555
  /* harmony import */ var _LineString3d__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./LineString3d */ "../../core/geometry/lib/esm/curve/LineString3d.js");
196533
196556
  /* harmony import */ var _ProxyCurve__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ProxyCurve */ "../../core/geometry/lib/esm/curve/ProxyCurve.js");
196534
196557
  /*---------------------------------------------------------------------------------------------
@@ -196576,19 +196599,20 @@ class CurveCollection extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geomet
196576
196599
  sumLengths() {
196577
196600
  return _internalContexts_SumLengthsContext__WEBPACK_IMPORTED_MODULE_1__.SumLengthsContext.sumLengths(this);
196578
196601
  }
196579
- /** Return the closest point on the contained curves */
196580
- closestPoint(spacePoint) {
196602
+ /**
196603
+ * Return the closest point on the contained curves.
196604
+ * @param spacePoint point in space.
196605
+ * @param _extend unused here (pass false), but applicable to overrides in [[Path]] and [[BagOfCurves]].
196606
+ * @param result optional pre-allocated detail to populate and return.
196607
+ * @returns details of the closest point.
196608
+ */
196609
+ closestPoint(spacePoint, _extend = false, result) {
196581
196610
  let detailA;
196611
+ const detailB = new _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail();
196582
196612
  if (this.children !== undefined) {
196583
196613
  for (const child of this.children) {
196584
- if (child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__.CurvePrimitive) {
196585
- const detailB = child.closestPoint(spacePoint, false);
196586
- detailA = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.chooseSmallerA(detailA, detailB);
196587
- }
196588
- else if (child instanceof CurveCollection) {
196589
- const detailB = child.closestPoint(spacePoint);
196590
- detailA = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.chooseSmallerA(detailA, detailB);
196591
- }
196614
+ if (child.closestPoint(spacePoint, false, detailB))
196615
+ detailA = result = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.chooseSmallerA(detailA, detailB).clone(result);
196592
196616
  }
196593
196617
  }
196594
196618
  return detailA;
@@ -196601,27 +196625,27 @@ class CurveCollection extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geomet
196601
196625
  * "unstructured" so gaps should not be semantically meaningful.
196602
196626
  */
196603
196627
  maxGap() {
196604
- return _internalContexts_GapSearchContext__WEBPACK_IMPORTED_MODULE_4__.GapSearchContext.maxGap(this);
196628
+ return _internalContexts_GapSearchContext__WEBPACK_IMPORTED_MODULE_3__.GapSearchContext.maxGap(this);
196605
196629
  }
196606
196630
  /** Return true if the curve collection has any primitives other than LineSegment3d and LineString3d */
196607
196631
  checkForNonLinearPrimitives() {
196608
- return _internalContexts_CountLinearPartsSearchContext__WEBPACK_IMPORTED_MODULE_5__.CountLinearPartsSearchContext.hasNonLinearPrimitives(this);
196632
+ return _internalContexts_CountLinearPartsSearchContext__WEBPACK_IMPORTED_MODULE_4__.CountLinearPartsSearchContext.hasNonLinearPrimitives(this);
196609
196633
  }
196610
196634
  /** Apply transform recursively to children */
196611
196635
  tryTransformInPlace(transform) {
196612
- return _internalContexts_TransformInPlaceContext__WEBPACK_IMPORTED_MODULE_6__.TransformInPlaceContext.tryTransformInPlace(this, transform);
196636
+ return _internalContexts_TransformInPlaceContext__WEBPACK_IMPORTED_MODULE_5__.TransformInPlaceContext.tryTransformInPlace(this, transform);
196613
196637
  }
196614
196638
  /** Return a deep copy. */
196615
196639
  clone() {
196616
- return _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_7__.CloneCurvesContext.clone(this);
196640
+ return _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_6__.CloneCurvesContext.clone(this);
196617
196641
  }
196618
196642
  /** Create a deep copy of transformed curves. */
196619
196643
  cloneTransformed(transform) {
196620
- return _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_7__.CloneCurvesContext.clone(this, transform);
196644
+ return _internalContexts_CloneCurvesContext__WEBPACK_IMPORTED_MODULE_6__.CloneCurvesContext.clone(this, transform);
196621
196645
  }
196622
196646
  /** Create a deep copy with all linestrings broken down into multiple LineSegment3d. */
196623
196647
  cloneWithExpandedLineStrings() {
196624
- return _internalContexts_CloneWithExpandedLineStrings__WEBPACK_IMPORTED_MODULE_8__.CloneWithExpandedLineStrings.clone(this);
196648
+ return _internalContexts_CloneWithExpandedLineStrings__WEBPACK_IMPORTED_MODULE_7__.CloneWithExpandedLineStrings.clone(this);
196625
196649
  }
196626
196650
  /**
196627
196651
  * Push all CurvePrimitives contained in the instance onto the `results` array.
@@ -196631,7 +196655,7 @@ class CurveCollection extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geomet
196631
196655
  collectCurvePrimitivesGo(results, smallestPossiblePrimitives, explodeLinestrings = false) {
196632
196656
  if (this.children) {
196633
196657
  for (const child of this.children) {
196634
- if (child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__.CurvePrimitive)
196658
+ if (child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__.CurvePrimitive)
196635
196659
  child.collectCurvePrimitivesGo(results, smallestPossiblePrimitives, explodeLinestrings);
196636
196660
  else if (child instanceof CurveCollection)
196637
196661
  child.collectCurvePrimitivesGo(results, smallestPossiblePrimitives, explodeLinestrings);
@@ -196711,8 +196735,8 @@ class CurveCollection extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geomet
196711
196735
  static createCurveLocationDetailOnAnyCurvePrimitive(source, fraction = 0.5) {
196712
196736
  if (!source)
196713
196737
  return undefined;
196714
- if (source instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__.CurvePrimitive) {
196715
- return _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveEvaluatedFraction(source, fraction);
196738
+ if (source instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__.CurvePrimitive) {
196739
+ return _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveEvaluatedFraction(source, fraction);
196716
196740
  }
196717
196741
  else if (source instanceof CurveCollection && source.children !== undefined)
196718
196742
  for (const child of source.children) {
@@ -196754,6 +196778,22 @@ class CurveChain extends CurveCollection {
196754
196778
  get children() {
196755
196779
  return this._curves;
196756
196780
  }
196781
+ /** Return the start point of the curve chain (start point of the first child). */
196782
+ startPoint(result) {
196783
+ const firstChild = this.getChild(0);
196784
+ if (firstChild)
196785
+ return firstChild.fractionToPoint(0.0, result);
196786
+ else
196787
+ return undefined;
196788
+ }
196789
+ /** Return the end point of the curve chain (end point of the last child). */
196790
+ endPoint(result) {
196791
+ const lastChild = this.getChild(this._curves.length - 1);
196792
+ if (lastChild)
196793
+ return lastChild.fractionToPoint(1.0, result);
196794
+ else
196795
+ return undefined;
196796
+ }
196757
196797
  /**
196758
196798
  * Return the curve primitive at the given `index`, optionally using `modulo` to map `index` to the cyclic indexing.
196759
196799
  * * In particular, `-1` is the final curve.
@@ -196798,7 +196838,7 @@ class CurveChain extends CurveCollection {
196798
196838
  * @return whether the child was added
196799
196839
  */
196800
196840
  tryAddChild(child) {
196801
- if (child && child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__.CurvePrimitive) {
196841
+ if (child && child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__.CurvePrimitive) {
196802
196842
  this._curves.push(child);
196803
196843
  return true;
196804
196844
  }
@@ -196848,7 +196888,7 @@ class CurveChain extends CurveCollection {
196848
196888
  primitiveIndexAndFractionToCurveLocationDetailPointAndDerivative(index, fraction, cyclic = false, result) {
196849
196889
  const primitive = this.cyclicCurvePrimitive(index, cyclic);
196850
196890
  if (primitive) {
196851
- return _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_3__.CurveLocationDetail.createCurveEvaluatedFractionPointAndDerivative(primitive, fraction, result);
196891
+ return _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.createCurveEvaluatedFractionPointAndDerivative(primitive, fraction, result);
196852
196892
  }
196853
196893
  return undefined;
196854
196894
  }
@@ -196895,7 +196935,7 @@ class BagOfCurves extends CurveCollection {
196895
196935
  const clone = new BagOfCurves();
196896
196936
  let child;
196897
196937
  for (child of this.children) {
196898
- if (child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__.CurvePrimitive) {
196938
+ if (child instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_8__.CurvePrimitive) {
196899
196939
  const ls = _LineString3d__WEBPACK_IMPORTED_MODULE_11__.LineString3d.create();
196900
196940
  child.emitStrokes(ls, options);
196901
196941
  if (ls)
@@ -196909,6 +196949,24 @@ class BagOfCurves extends CurveCollection {
196909
196949
  }
196910
196950
  return clone;
196911
196951
  }
196952
+ /**
196953
+ * Return the closest point on the contained curves.
196954
+ * @param spacePoint point in space.
196955
+ * @param extend applicable only to children of type [[CurvePrimitive]], [[Path]], or [[BagOfCurves]]
196956
+ * @param result optional pre-allocated detail to populate and return.
196957
+ * @returns details of the closest point.
196958
+ */
196959
+ closestPoint(spacePoint, extend = false, result) {
196960
+ let detailA;
196961
+ const detailB = new _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail();
196962
+ if (this.children !== undefined) {
196963
+ for (const child of this.children) {
196964
+ if (child.closestPoint(spacePoint, extend, detailB))
196965
+ detailA = result = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_2__.CurveLocationDetail.chooseSmallerA(detailA, detailB).clone(result);
196966
+ }
196967
+ }
196968
+ return detailA;
196969
+ }
196912
196970
  /** Return an empty `BagOfCurves` */
196913
196971
  cloneEmptyPeer() {
196914
196972
  return new BagOfCurves();
@@ -197097,7 +197155,8 @@ __webpack_require__.r(__webpack_exports__);
197097
197155
  * @module Curve
197098
197156
  */
197099
197157
 
197100
- /** Enumeration of condition for extending a curve beyond start or end point.
197158
+ /**
197159
+ * Enumeration of condition for extending a curve beyond start or end point.
197101
197160
  * * Not all CurvePrimitives support these modes.
197102
197161
  * @public
197103
197162
  */
@@ -197105,17 +197164,18 @@ var CurveExtendMode;
197105
197164
  (function (CurveExtendMode) {
197106
197165
  /** No extension allowed. */
197107
197166
  CurveExtendMode[CurveExtendMode["None"] = 0] = "None";
197108
- /** Extend along continuation of the end tangent */
197167
+ /** Extend along continuation of the end tangent. */
197109
197168
  CurveExtendMode[CurveExtendMode["OnTangent"] = 1] = "OnTangent";
197110
197169
  /** Extend along continuation of the curve. */
197111
197170
  CurveExtendMode[CurveExtendMode["OnCurve"] = 2] = "OnCurve";
197112
197171
  })(CurveExtendMode || (CurveExtendMode = {}));
197113
- /** Logic for deciding how a curve may be extended for closest point or intersection searches.
197172
+ /**
197173
+ * Logic for deciding how a curve may be extended for closest point or intersection searches.
197114
197174
  * @public
197115
197175
  */
197116
197176
  class CurveExtendOptions {
197117
197177
  /**
197118
- * Given an VariantCurveExtendParameter, isolate the particular CurveExtendMode in effect at an end.
197178
+ * Given a `VariantCurveExtendParameter`, isolate the particular CurveExtendMode in effect at an end.
197119
197179
  * * Return `CurveExtendMode.None` if `param === false`.
197120
197180
  * * Return `CurveExtendMode.OnCurve` if `param === true`.
197121
197181
  * * Return the param if it is a single CurveExtendMode.
@@ -197127,15 +197187,14 @@ class CurveExtendOptions {
197127
197187
  if (param === true)
197128
197188
  return CurveExtendMode.OnCurve;
197129
197189
  if (Array.isArray(param))
197130
- return param[endIndex];
197190
+ return param.length > endIndex ? param[endIndex] : CurveExtendMode.None;
197131
197191
  return param;
197132
197192
  }
197133
197193
  /**
197134
- *
197135
- * * if fraction is between 0 and 1 return it unchanged.
197136
- * * if fraction is less than 0 use the variant param to choose the fraction or 0
197137
- * * if fraction is greater than 1 use the variant param to choose the fraction or 1
197138
- *
197194
+ * Correct fraction to be within [0,1].
197195
+ * * If fraction is in [0,1] return it unchanged.
197196
+ * * If fraction is less than 0 use `extendParam` to decide whether to return it unchanged, or to return 0.
197197
+ * * If fraction is greater than 1 use `extendParam` to decide whether to return it unchanged, or to return 1.
197139
197198
  */
197140
197199
  static correctFraction(extendParam, fraction) {
197141
197200
  if (fraction < 0) {
@@ -197152,10 +197211,10 @@ class CurveExtendOptions {
197152
197211
  }
197153
197212
  /**
197154
197213
  * Adjust a radians value to an angle sweep, allowing the extendParam to affect choice among periodic fractions.
197155
- * * if radians is within the sweep, convert it to a fraction of the sweep.
197156
- * * if radians is outside, use the extendParam to choose among:
197157
- * * fraction below 0
197158
- * * fraction above 1
197214
+ * * If radians is within the sweep, convert it to a fraction of the sweep.
197215
+ * * If radians is outside, use the extendParam to choose among:
197216
+ * * fraction below 0.
197217
+ * * fraction above 1.
197159
197218
  */
197160
197219
  static resolveRadiansToSweepFraction(extendParam, radians, sweep) {
197161
197220
  let fraction = sweep.radiansToSignedPeriodicFraction(radians);
@@ -197165,11 +197224,11 @@ class CurveExtendOptions {
197165
197224
  const mode1 = CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extendParam, 1);
197166
197225
  if (mode0 !== CurveExtendMode.None) {
197167
197226
  if (mode1 !== CurveExtendMode.None) {
197168
- // both extensions possible ... let the sweep resolve to the "closer" end
197227
+ // both extensions possible; let the sweep resolve to the "closer" end
197169
197228
  fraction = sweep.radiansToSignedPeriodicFraction(radians);
197170
197229
  }
197171
197230
  else {
197172
- // only extend to negative .....
197231
+ // only extend to negative
197173
197232
  if (fraction > 1.0)
197174
197233
  fraction -= fractionPeriod;
197175
197234
  }
@@ -197178,7 +197237,7 @@ class CurveExtendOptions {
197178
197237
  if (fraction < 0.0)
197179
197238
  fraction += fractionPeriod;
197180
197239
  }
197181
- else { // both clamped !!!!
197240
+ else { // both clamped
197182
197241
  fraction = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.clamp(fraction, 0, 1);
197183
197242
  }
197184
197243
  }
@@ -198882,11 +198941,15 @@ class CurvePrimitive extends _GeometryQuery__WEBPACK_IMPORTED_MODULE_1__.Geometr
198882
198941
  * Search for a point on the curve that is closest to the spacePoint.
198883
198942
  * * If the space point is exactly on the curve, this is the reverse of fractionToPoint.
198884
198943
  * * Since CurvePrimitive should always have start and end available as candidate points, this method should always
198885
- * succeed
198886
- * @param spacePoint point in space
198887
- * @param extend true to extend the curve (if possible), false for no extend, single CurveExtendOptions (for both
198888
- * directions), or array of distinct CurveExtendOptions for start and end.
198889
- * @returns Returns a CurveLocationDetail structure that holds the details of the close point.
198944
+ * succeed.
198945
+ * @param spacePoint point in space.
198946
+ * @param extend if applicable, compute the closest point to the curve extended according to variant type:
198947
+ * * false: do not extend the curve
198948
+ * * true: extend the curve at both start and end
198949
+ * * CurveExtendOptions: extend the curve in the specified manner at both start and end
198950
+ * * CurveExtendOptions[]: first entry applies to curve start; second, to curve end; any other entries ignored
198951
+ * @param result optional pre-allocated detail to populate and return.
198952
+ * @returns details of the closest point.
198890
198953
  */
198891
198954
  closestPoint(spacePoint, extend, result) {
198892
198955
  const strokeHandler = new _internalContexts_ClosestPointStrokeHandler__WEBPACK_IMPORTED_MODULE_10__.ClosestPointStrokeHandler(spacePoint, extend, result);
@@ -199127,7 +199190,6 @@ __webpack_require__.r(__webpack_exports__);
199127
199190
  /* harmony export */ });
199128
199191
  /* harmony import */ var _CurvePrimitive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
199129
199192
 
199130
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
199131
199193
  /** base class for detailed traversal of curve artifacts.
199132
199194
  * * This recurses to children in the quickest way (no records of path)
199133
199195
  * * Use the RecursiveCurveProcessorWithStack to record the path along the visit.
@@ -199466,7 +199528,6 @@ __webpack_require__.r(__webpack_exports__);
199466
199528
 
199467
199529
 
199468
199530
 
199469
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
199470
199531
  /**
199471
199532
  * A LineSegment3d is:
199472
199533
  * * A 3d line segment represented by its start and end coordinates
@@ -201647,14 +201708,14 @@ class JointOptions {
201647
201708
  * * leftOffsetDistance is required
201648
201709
  * * minArcDegrees and maxChamferDegrees are optional.
201649
201710
  */
201650
- constructor(leftOffsetDistance, minArcDegrees = 180, maxChamferDegrees = 90, preserveEllipticalArcs = false, allowSharpestCorners = false) {
201711
+ constructor(leftOffsetDistance, minArcDegrees = 180, maxChamferDegrees = 91, preserveEllipticalArcs = false, allowSharpestCorners = false) {
201651
201712
  /**
201652
201713
  * Smallest arc to construct.
201653
201714
  * * If this control angle is 180 degrees or more, arcs are never created.
201654
201715
  */
201655
201716
  this.minArcDegrees = 180.0;
201656
201717
  /** Largest turn angle at which to construct a sharp corner, or largest turn angle in a multi-segment chamfer. */
201657
- this.maxChamferTurnDegrees = 90;
201718
+ this.maxChamferTurnDegrees = 91.0;
201658
201719
  /**
201659
201720
  * Whether to remove the internal turn angle upper bound for sharp corner construction.
201660
201721
  * * By default, a sharp corner is not created at a joint when the turn angle is too large, so as to avoid offsets whose
@@ -201700,7 +201761,7 @@ class JointOptions {
201700
201761
  }
201701
201762
  /** Return true if the options indicate this amount of turn should be handled with an arc. */
201702
201763
  needArc(theta) {
201703
- return Math.abs(theta.degrees) >= this.minArcDegrees;
201764
+ return Math.abs(theta.degrees) >= this.minArcDegrees - _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallAngleDegrees;
201704
201765
  }
201705
201766
  /** Return the number of corners needed to chamfer the given turn angle. */
201706
201767
  numChamferPoints(theta) {
@@ -201711,7 +201772,7 @@ class JointOptions {
201711
201772
  maxStepDegreesClamp = this.maxChamferTurnDegrees;
201712
201773
  }
201713
201774
  const stepDegrees = _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.clamp(this.maxChamferTurnDegrees, minStepDegreesClamp, maxStepDegreesClamp);
201714
- if (degrees <= stepDegrees)
201775
+ if (degrees <= stepDegrees + _Geometry__WEBPACK_IMPORTED_MODULE_0__.Geometry.smallAngleDegrees)
201715
201776
  return 1;
201716
201777
  return Math.ceil(degrees / stepDegrees);
201717
201778
  }
@@ -201932,6 +201993,8 @@ __webpack_require__.r(__webpack_exports__);
201932
201993
  /* harmony import */ var _geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../geometry3d/Point3dVector3d */ "../../core/geometry/lib/esm/geometry3d/Point3dVector3d.js");
201933
201994
  /* harmony import */ var _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CurveChainWithDistanceIndex */ "../../core/geometry/lib/esm/curve/CurveChainWithDistanceIndex.js");
201934
201995
  /* harmony import */ var _CurveCollection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CurveCollection */ "../../core/geometry/lib/esm/curve/CurveCollection.js");
201996
+ /* harmony import */ var _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CurveExtendMode */ "../../core/geometry/lib/esm/curve/CurveExtendMode.js");
201997
+ /* harmony import */ var _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CurveLocationDetail */ "../../core/geometry/lib/esm/curve/CurveLocationDetail.js");
201935
201998
  /* harmony import */ var _CurvePrimitive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CurvePrimitive */ "../../core/geometry/lib/esm/curve/CurvePrimitive.js");
201936
201999
  /* harmony import */ var _LineString3d__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./LineString3d */ "../../core/geometry/lib/esm/curve/LineString3d.js");
201937
202000
  /*---------------------------------------------------------------------------------------------
@@ -201943,6 +202006,8 @@ __webpack_require__.r(__webpack_exports__);
201943
202006
 
201944
202007
 
201945
202008
 
202009
+
202010
+
201946
202011
  /**
201947
202012
  * * A `Path` object is a collection of curves that join head-to-tail to form a path.
201948
202013
  * * A `Path` object does not bound a planar region. Use `Loop` to indicate region bounding.
@@ -201996,6 +202061,31 @@ class Path extends _CurveCollection__WEBPACK_IMPORTED_MODULE_0__.CurveChain {
201996
202061
  curve.emitStrokes(strokes, options);
201997
202062
  return Path.create(strokes);
201998
202063
  }
202064
+ /**
202065
+ * Return the closest point on the contained curves.
202066
+ * @param spacePoint point in space.
202067
+ * @param extend compute the closest point to the path extended according to variant type:
202068
+ * * false: do not extend the path
202069
+ * * true: extend the path at both start and end
202070
+ * * CurveExtendOptions: extend the path in the specified manner at both start and end
202071
+ * * CurveExtendOptions[]: first entry applies to path start; second, to path end; any other entries ignored
202072
+ * @param result optional pre-allocated detail to populate and return.
202073
+ * @returns details of the closest point.
202074
+ */
202075
+ closestPoint(spacePoint, extend = false, result) {
202076
+ let detailA;
202077
+ const detailB = new _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__.CurveLocationDetail();
202078
+ if (this.children !== undefined) {
202079
+ for (let i = 0; i < this.children.length; i++) {
202080
+ const child = this.children[i]; // head only extends at start; tail, only at end. NOTE: child may be both head and tail!
202081
+ const mode0 = (i === 0) ? _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__.CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extend, 0) : _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__.CurveExtendMode.None;
202082
+ const mode1 = (i === this.children.length - 1) ? _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__.CurveExtendOptions.resolveVariantCurveExtendParameterToCurveExtendMode(extend, 1) : _CurveExtendMode__WEBPACK_IMPORTED_MODULE_6__.CurveExtendMode.None;
202083
+ if (child.closestPoint(spacePoint, [mode0, mode1], detailB))
202084
+ detailA = result = _CurveLocationDetail__WEBPACK_IMPORTED_MODULE_5__.CurveLocationDetail.chooseSmallerA(detailA, detailB).clone(result);
202085
+ }
202086
+ }
202087
+ return detailA;
202088
+ }
201999
202089
  /** Return the boundary type (1) of a corresponding MicroStation CurveVector */
202000
202090
  dgnBoundaryType() {
202001
202091
  return 1;
@@ -202039,7 +202129,6 @@ __webpack_require__.r(__webpack_exports__);
202039
202129
 
202040
202130
 
202041
202131
 
202042
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
202043
202132
  /**
202044
202133
  * A PointString3d is an array of points.
202045
202134
  * * PointString3D is first class (displayable, possibly persistent) geometry derived from the GeometryQuery base class.
@@ -205589,7 +205678,6 @@ __webpack_require__.r(__webpack_exports__);
205589
205678
  */
205590
205679
 
205591
205680
 
205592
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
205593
205681
  /**
205594
205682
  * Tolerance blob for various stroking methods.
205595
205683
  *
@@ -206970,7 +207058,6 @@ class CurveCurveCloseApproachXY extends _geometry3d_GeometryHandler__WEBPACK_IMP
206970
207058
  getPointCurveClosestApproachXYNewton(curveP, pointQ) {
206971
207059
  if (!(curveP instanceof _Arc3d__WEBPACK_IMPORTED_MODULE_4__.Arc3d) && !(curveP instanceof _LineSegment3d__WEBPACK_IMPORTED_MODULE_5__.LineSegment3d)) {
206972
207060
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "getPointCurveClosestApproachXYNewton only supports Arc3d and LineSegment");
206973
- return undefined;
206974
207061
  }
206975
207062
  const seeds = [0.2, 0.4, 0.6, 0.8]; // HEURISTIC: arcs have up to 4 perpendiculars; lines have only 1
206976
207063
  const newtonEvaluator = new _numerics_Newton__WEBPACK_IMPORTED_MODULE_6__.CurvePointCloseApproachXYRtoRD(curveP, pointQ);
@@ -207245,7 +207332,6 @@ class CurveCurveCloseApproachXY extends _geometry3d_GeometryHandler__WEBPACK_IMP
207245
207332
  return;
207246
207333
  if (geomA instanceof _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_12__.CurveChainWithDistanceIndex) {
207247
207334
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "call handleCurveChainWithDistanceIndex(geomA) instead");
207248
- return;
207249
207335
  }
207250
207336
  const index0 = this._results.length;
207251
207337
  const geomB = this._geometryB; // save
@@ -208224,7 +208310,6 @@ class CurveCurveIntersectXY extends _geometry3d_GeometryHandler__WEBPACK_IMPORTE
208224
208310
  return;
208225
208311
  if (geomA instanceof _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_15__.CurveChainWithDistanceIndex) {
208226
208312
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "call handleCurveChainWithDistanceIndex(geomA) instead");
208227
- return;
208228
208313
  }
208229
208314
  const index0 = this._results.length;
208230
208315
  const geomB = this._geometryB; // save
@@ -209071,7 +209156,6 @@ class CurveCurveIntersectXYZ extends _geometry3d_GeometryHandler__WEBPACK_IMPORT
209071
209156
  return;
209072
209157
  if (geomA instanceof _CurveChainWithDistanceIndex__WEBPACK_IMPORTED_MODULE_11__.CurveChainWithDistanceIndex) {
209073
209158
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "call handleCurveChainWithDistanceIndex(geomA) instead");
209074
- return;
209075
209159
  }
209076
209160
  const index0 = this._results.length;
209077
209161
  const geomB = this._geometryB; // save
@@ -211166,7 +211250,7 @@ var JointMode;
211166
211250
  * @internal
211167
211251
  */
211168
211252
  class Joint {
211169
- // capture references to all data . . .
211253
+ // capture references to all data members
211170
211254
  constructor(curve0, curve1, swingPoint) {
211171
211255
  this.curve0 = curve0;
211172
211256
  this.curve1 = curve1;
@@ -211303,9 +211387,10 @@ class Joint {
211303
211387
  }
211304
211388
  /**
211305
211389
  * Visit joints on a chain.
211306
- * * terminate on `false` return from `callback`
211307
- * @param start first (and, for cyclic chain, final) joint
211390
+ * * Terminates if `callback` returns `false`.
211391
+ * @param start first (and, for cyclic chain, final) joint.
211308
211392
  * @param callback function to call with each Joint as a single parameter.
211393
+ * @param maxTest
211309
211394
  */
211310
211395
  static visitJointsOnChain(start, callback, maxTest = 100) {
211311
211396
  let joint = start;
@@ -211686,7 +211771,7 @@ class CurveChainWireOffsetContext {
211686
211771
  for (const c of curves.children) {
211687
211772
  const c1 = CurveChainWireOffsetContext.createSingleOffsetPrimitiveXY(c, offsetOptions);
211688
211773
  if (c1 === undefined) {
211689
- // bad .. maybe arc to inside?
211774
+ // bad; maybe arc to inside?
211690
211775
  }
211691
211776
  else if (c1 instanceof _CurvePrimitive__WEBPACK_IMPORTED_MODULE_12__.CurvePrimitive) {
211692
211777
  simpleOffsets.push(c1);
@@ -217749,7 +217834,6 @@ __webpack_require__.r(__webpack_exports__);
217749
217834
 
217750
217835
 
217751
217836
 
217752
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
217753
217837
  /**
217754
217838
  * Helper class to accumulate points and vectors until there is enough data to define a coordinate system.
217755
217839
  *
@@ -225248,7 +225332,6 @@ __webpack_require__.r(__webpack_exports__);
225248
225332
  /** @packageDocumentation
225249
225333
  * @module CartesianGeometry
225250
225334
  */
225251
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
225252
225335
 
225253
225336
 
225254
225337
  /**
@@ -227822,7 +227905,6 @@ __webpack_require__.r(__webpack_exports__);
227822
227905
  /** @packageDocumentation
227823
227906
  * @module CartesianGeometry
227824
227907
  */
227825
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
227826
227908
 
227827
227909
 
227828
227910
 
@@ -230361,8 +230443,7 @@ class PolygonOps {
230361
230443
  const areaOfNormalParallelogram = Math.abs(outwardUnitNormalOfPrevEdge.crossProductXY(outwardUnitNormalOfEdge));
230362
230444
  const coord = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.conditionalDivideCoordinate(areaOfNormalParallelogram, projToPrevEdge.x * projToEdge.x, largestResult);
230363
230445
  if (undefined === coord) {
230364
- (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "unexpectedly small projection distance to an edge");
230365
- return undefined; // shouldn't happen due to chopping in computeEdgeDataXY: area/(dist*dist) <= 1/tol^2 = largestResult
230446
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "unexpectedly small projection distance to an edge"); // shouldn't happen due to chopping in computeEdgeDataXY: area/(dist*dist) <= 1/tol^2 = largestResult
230366
230447
  }
230367
230448
  coords[i] = coord;
230368
230449
  coordSum += coord;
@@ -230373,7 +230454,6 @@ class PolygonOps {
230373
230454
  const scale = _Geometry__WEBPACK_IMPORTED_MODULE_2__.Geometry.conditionalDivideCoordinate(1.0, coordSum);
230374
230455
  if (undefined === scale) {
230375
230456
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false, "unexpected zero barycentric coordinate sum");
230376
- return undefined;
230377
230457
  }
230378
230458
  for (let i = 0; i < n; ++i)
230379
230459
  coords[i] *= scale; // normalized
@@ -237930,7 +238010,6 @@ __webpack_require__.r(__webpack_exports__);
237930
238010
 
237931
238011
 
237932
238012
 
237933
- /* eslint-disable @typescript-eslint/naming-convention */
237934
238013
  /**
237935
238014
  * * BezierCoffs is an abstract base class for one-dimensional (u to f(u)) Bezier polynomials.
237936
238015
  * * The base class carries a Float64Array with coefficients.
@@ -245187,7 +245266,6 @@ __webpack_require__.r(__webpack_exports__);
245187
245266
 
245188
245267
 
245189
245268
 
245190
- /* eslint-disable @itwin/prefer-get */
245191
245269
  /**
245192
245270
  * An `IndexedPolyfaceVisitor` is an iterator-like object that "visits" facets of a mesh.
245193
245271
  * * The visitor extends `PolyfaceData`, so it can at any time hold all the data of a single facet.
@@ -245485,7 +245563,6 @@ __webpack_require__.r(__webpack_exports__);
245485
245563
  /** @packageDocumentation
245486
245564
  * @module Polyface
245487
245565
  */
245488
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
245489
245566
  // cspell:word internaldocs
245490
245567
 
245491
245568
 
@@ -247251,7 +247328,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
247251
247328
  const children = data.children;
247252
247329
  if (children)
247253
247330
  for (const child of children)
247254
- // eslint-disable-next-line deprecation/deprecation
247331
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
247255
247332
  this.applyStrokeCountsToCurvePrimitives(child);
247256
247333
  }
247257
247334
  }
@@ -248162,7 +248239,6 @@ __webpack_require__.r(__webpack_exports__);
248162
248239
  /** @packageDocumentation
248163
248240
  * @module Polyface
248164
248241
  */
248165
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
248166
248242
 
248167
248243
 
248168
248244
 
@@ -249506,7 +249582,6 @@ __webpack_require__.r(__webpack_exports__);
249506
249582
  /** @packageDocumentation
249507
249583
  * @module Polyface
249508
249584
  */
249509
- /* eslint-disable @typescript-eslint/naming-convention, no-empty */
249510
249585
  // cspell:word internaldocs
249511
249586
 
249512
249587
 
@@ -262094,7 +262169,6 @@ __webpack_require__.r(__webpack_exports__);
262094
262169
  /** @packageDocumentation
262095
262170
  * @module Serialization
262096
262171
  */
262097
- /* eslint-disable quote-props */
262098
262172
  /**
262099
262173
  * Utilities to compare json objects by searching through their properties.
262100
262174
  * @public
@@ -275499,7 +275573,7 @@ class ITwinLocalization {
275499
275573
  locales = locales.filter((thisLocale) => !thisError.includes(thisLocale));
275500
275574
  }
275501
275575
  }
275502
- catch (e) {
275576
+ catch {
275503
275577
  locales = [];
275504
275578
  }
275505
275579
  // if we removed every locale from the array, it wasn't loaded.
@@ -293674,7 +293748,6 @@ class Formatter {
293674
293748
  const compositeStrings = [];
293675
293749
  // Caller will deal with appending +||-||() value sign as specified by formatting options so just format positive value
293676
293750
  let posMagnitude = Math.abs(magnitude);
293677
- // eslint-disable-next-line @typescript-eslint/prefer-for-of
293678
293751
  for (let i = 0; i < spec.unitConversions.length; i++) {
293679
293752
  const currentLabel = spec.unitConversions[i].label;
293680
293753
  const unitConversion = spec.unitConversions[i].conversion;
@@ -294018,7 +294091,6 @@ class Formatter {
294018
294091
  }
294019
294092
  }
294020
294093
  }
294021
- // eslint-disable-next-line @typescript-eslint/naming-convention
294022
294094
  Formatter.FPV_MINTHRESHOLD = 1.0e-14;
294023
294095
 
294024
294096
 
@@ -294408,7 +294480,6 @@ class Parser {
294408
294480
  uomSeparatorToIgnore = format.uomSeparator.charCodeAt(0);
294409
294481
  skipCodes.push(uomSeparatorToIgnore);
294410
294482
  }
294411
- // eslint-disable-next-line @typescript-eslint/prefer-for-of
294412
294483
  for (let i = 0; i < str.length; i++) {
294413
294484
  const charCode = str.charCodeAt(i);
294414
294485
  if (Parser.isDigitOrDecimalSeparator(charCode, format)) {
@@ -296103,7 +296174,8 @@ __webpack_require__.r(__webpack_exports__);
296103
296174
  "use strict";
296104
296175
 
296105
296176
  Object.defineProperty(exports, "__esModule", ({ value: true }));
296106
- exports.Settings = exports.getRpcInterfaces = void 0;
296177
+ exports.Settings = void 0;
296178
+ exports.getRpcInterfaces = getRpcInterfaces;
296107
296179
  const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
296108
296180
  const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
296109
296181
  const presentation_common_1 = __webpack_require__(/*! @itwin/presentation-common */ "../../presentation/common/lib/esm/presentation-common.js");
@@ -296119,7 +296191,6 @@ function getRpcInterfaces(settings) {
296119
296191
  rpcInterfaces.push(core_common_1.IModelTileRpcInterface);
296120
296192
  return rpcInterfaces;
296121
296193
  }
296122
- exports.getRpcInterfaces = getRpcInterfaces;
296123
296194
  function checkEnabled(envVariable) {
296124
296195
  if (undefined === envVariable)
296125
296196
  return false;
@@ -296144,9 +296215,9 @@ class Settings {
296144
296215
  this.iModels = [];
296145
296216
  const isFrontend = (typeof (process) === "undefined");
296146
296217
  if (!isFrontend && undefined === env.TF_BUILD) {
296147
- const path = __webpack_require__(/*! path */ "../../common/temp/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js"); // eslint-disable-line @typescript-eslint/no-var-requires
296148
- const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@10.0.0/node_modules/dotenv/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
296149
- const dotenvExpand = __webpack_require__(/*! dotenv-expand */ "../../common/temp/node_modules/.pnpm/dotenv-expand@5.1.0/node_modules/dotenv-expand/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
296218
+ const path = __webpack_require__(/*! path */ "../../common/temp/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js"); // eslint-disable-line @typescript-eslint/no-require-imports
296219
+ const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"); // eslint-disable-line @typescript-eslint/no-require-imports
296220
+ const dotenvExpand = __webpack_require__(/*! dotenv-expand */ "../../common/temp/node_modules/.pnpm/dotenv-expand@5.1.0/node_modules/dotenv-expand/lib/main.js"); // eslint-disable-line @typescript-eslint/no-require-imports
296150
296221
  // First check in process.cwd() for the config
296151
296222
  let result = dotenv.config();
296152
296223
  if (result.error) {
@@ -296269,7 +296340,9 @@ exports.Settings = Settings;
296269
296340
  "use strict";
296270
296341
 
296271
296342
  Object.defineProperty(exports, "__esModule", ({ value: true }));
296272
- exports.getClientAccessTokenFromBackend = exports.getProcessEnvFromBackend = exports.exposeBackendCallbacks = void 0;
296343
+ exports.exposeBackendCallbacks = exposeBackendCallbacks;
296344
+ exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
296345
+ exports.getClientAccessTokenFromBackend = getClientAccessTokenFromBackend;
296273
296346
  const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../tools/certa/lib/utils/CallbackUtils.js");
296274
296347
  const getEnvCallbackName = "getEnv";
296275
296348
  const getClientAccessTokenCallbackName = "getClientAccessToken";
@@ -296283,16 +296356,13 @@ function exposeBackendCallbacks() {
296283
296356
  return "";
296284
296357
  });
296285
296358
  }
296286
- exports.exposeBackendCallbacks = exposeBackendCallbacks;
296287
296359
  async function getProcessEnvFromBackend() {
296288
296360
  return JSON.parse(await (0, CallbackUtils_1.executeBackendCallback)(getEnvCallbackName));
296289
296361
  }
296290
- exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
296291
296362
  async function getClientAccessTokenFromBackend() {
296292
296363
  // const tokenString = await executeBackendCallback(getClientAccessTokenCallbackName, clientConfiguration);
296293
296364
  return "";
296294
296365
  }
296295
- exports.getClientAccessTokenFromBackend = getClientAccessTokenFromBackend;
296296
296366
 
296297
296367
 
296298
296368
  /***/ }),
@@ -296414,7 +296484,6 @@ const Settings_1 = __webpack_require__(/*! ../../common/Settings */ "./lib/commo
296414
296484
  const SideChannels_1 = __webpack_require__(/*! ../../common/SideChannels */ "./lib/common/SideChannels.js");
296415
296485
  const IModelSession_1 = __webpack_require__(/*! ./IModelSession */ "./lib/frontend/setup/IModelSession.js");
296416
296486
  /* eslint-disable no-console */
296417
- /* eslint-disable @typescript-eslint/indent */
296418
296487
  class TestContext {
296419
296488
  constructor(env) {
296420
296489
  this.settings = new Settings_1.Settings(env);
@@ -296456,7 +296525,7 @@ class TestContext {
296456
296525
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
296457
296526
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
296458
296527
  await core_frontend_1.NoRenderApp.startup({
296459
- applicationVersion: "4.10.0-dev.31",
296528
+ applicationVersion: "4.10.0-dev.33",
296460
296529
  applicationId: this.settings.gprid,
296461
296530
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
296462
296531
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -296993,7 +297062,7 @@ var InstanceKey;
296993
297062
  * @deprecated in 3.x. Use [[InstanceKey]].
296994
297063
  */
296995
297064
  // istanbul ignore next
296996
- // eslint-disable-next-line deprecation/deprecation
297065
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
296997
297066
  function toJSON(key) {
296998
297067
  return { ...key };
296999
297068
  }
@@ -297003,7 +297072,7 @@ var InstanceKey;
297003
297072
  * @deprecated in 3.x. Use [[InstanceKey]].
297004
297073
  */
297005
297074
  // istanbul ignore next
297006
- // eslint-disable-next-line deprecation/deprecation
297075
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
297007
297076
  function fromJSON(json) {
297008
297077
  return { ...json };
297009
297078
  }
@@ -297017,7 +297086,7 @@ var ClassInfo;
297017
297086
  * @deprecated in 3.x. Use [[ClassInfo]].
297018
297087
  */
297019
297088
  // istanbul ignore next
297020
- // eslint-disable-next-line deprecation/deprecation
297089
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
297021
297090
  function toJSON(info) {
297022
297091
  return { ...info };
297023
297092
  }
@@ -297027,7 +297096,7 @@ var ClassInfo;
297027
297096
  * @deprecated in 3.x. Use [[ClassInfo]].
297028
297097
  */
297029
297098
  // istanbul ignore next
297030
- // eslint-disable-next-line deprecation/deprecation
297099
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
297031
297100
  function fromJSON(json) {
297032
297101
  return { ...json };
297033
297102
  }
@@ -297540,7 +297609,6 @@ class PresentationError extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__
297540
297609
  * Returns the name of each error status. The name is used by the `Error.prototype.toString()`
297541
297610
  * method to create a string representation of the error.
297542
297611
  */
297543
- // eslint-disable-next-line @typescript-eslint/naming-convention
297544
297612
  _initName() {
297545
297613
  let value = PresentationStatus[this.errorNumber];
297546
297614
  if (!value) {
@@ -297680,7 +297748,7 @@ class KeySet {
297680
297748
  get nodeKeys() {
297681
297749
  const set = new Set();
297682
297750
  for (const serialized of this._nodeKeys) {
297683
- // eslint-disable-next-line deprecation/deprecation
297751
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
297684
297752
  const key = _hierarchy_Key__WEBPACK_IMPORTED_MODULE_2__.NodeKey.fromJSON(JSON.parse(serialized));
297685
297753
  set.add(key);
297686
297754
  }
@@ -297714,7 +297782,7 @@ class KeySet {
297714
297782
  }
297715
297783
  addKeySet(keyset, pred) {
297716
297784
  for (const key of keyset._nodeKeys) {
297717
- // eslint-disable-next-line deprecation/deprecation
297785
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
297718
297786
  if (!pred || pred(_hierarchy_Key__WEBPACK_IMPORTED_MODULE_2__.NodeKey.fromJSON(JSON.parse(key)))) {
297719
297787
  this._nodeKeys.add(key);
297720
297788
  }
@@ -297969,7 +298037,7 @@ class KeySet {
297969
298037
  return true;
297970
298038
  }
297971
298039
  }
297972
- // eslint-disable-next-line deprecation/deprecation
298040
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
297973
298041
  return some(this._nodeKeys, (serializedKey) => callback(_hierarchy_Key__WEBPACK_IMPORTED_MODULE_2__.NodeKey.fromJSON(JSON.parse(serializedKey))));
297974
298042
  }
297975
298043
  /** Iterate over all keys in this keyset. */
@@ -297980,7 +298048,7 @@ class KeySet {
297980
298048
  ids.forEach((id) => callback({ className: recentClassName, id }, index++));
297981
298049
  });
297982
298050
  this._nodeKeys.forEach((serializedKey) => {
297983
- // eslint-disable-next-line deprecation/deprecation
298051
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
297984
298052
  callback(_hierarchy_Key__WEBPACK_IMPORTED_MODULE_2__.NodeKey.fromJSON(JSON.parse(serializedKey)), index++);
297985
298053
  });
297986
298054
  }
@@ -298018,7 +298086,7 @@ class KeySet {
298018
298086
  instanceKeys.push([className, compressedIds.length > 0 ? compressedIds : _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.invalid]);
298019
298087
  }
298020
298088
  }
298021
- // eslint-disable-next-line deprecation/deprecation
298089
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298022
298090
  const nodeKeys = [];
298023
298091
  for (const serializedKey of this._nodeKeys.values()) {
298024
298092
  nodeKeys.push(JSON.parse(serializedKey));
@@ -298257,7 +298325,7 @@ var LabelCompositeValue;
298257
298325
  * Serialize given [[LabelCompositeValue]] to JSON
298258
298326
  * @deprecated in 3.x. Use [[LabelCompositeValue]].
298259
298327
  */
298260
- // eslint-disable-next-line deprecation/deprecation
298328
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298261
298329
  function toJSON(compositeValue) {
298262
298330
  return { ...compositeValue };
298263
298331
  }
@@ -298266,7 +298334,7 @@ var LabelCompositeValue;
298266
298334
  * Deserialize [[LabelCompositeValue]] from JSON
298267
298335
  * @deprecated in 3.x. Use [[LabelCompositeValue]].
298268
298336
  */
298269
- // eslint-disable-next-line deprecation/deprecation
298337
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298270
298338
  function fromJSON(json) {
298271
298339
  return { ...json };
298272
298340
  }
@@ -298279,7 +298347,7 @@ var LabelDefinition;
298279
298347
  * Serialize given [[LabelDefinition]] to JSON
298280
298348
  * @deprecated in 3.x. Use [[LabelDefinition]].
298281
298349
  */
298282
- // eslint-disable-next-line deprecation/deprecation
298350
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298283
298351
  function toJSON(labelDefinition) {
298284
298352
  return { ...labelDefinition };
298285
298353
  }
@@ -298288,7 +298356,7 @@ var LabelDefinition;
298288
298356
  * Deserialize [[LabelDefinition]] from JSON
298289
298357
  * @deprecated in 3.x. Use [[LabelDefinition]].
298290
298358
  */
298291
- // eslint-disable-next-line deprecation/deprecation
298359
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298292
298360
  function fromJSON(json) {
298293
298361
  if (typeof json === "string") {
298294
298362
  return JSON.parse(json);
@@ -298586,7 +298654,7 @@ class PresentationRpcInterface extends _itwin_core_common__WEBPACK_IMPORTED_MODU
298586
298654
  async getNodesCount(_token, _options) {
298587
298655
  return this.forward(arguments);
298588
298656
  }
298589
- // eslint-disable-next-line deprecation/deprecation
298657
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298590
298658
  async getPagedNodes(_token, _options) {
298591
298659
  return this.forward(arguments);
298592
298660
  }
@@ -298594,12 +298662,12 @@ class PresentationRpcInterface extends _itwin_core_common__WEBPACK_IMPORTED_MODU
298594
298662
  return this.forward(arguments);
298595
298663
  }
298596
298664
  // TODO: add paged version of this (#387280)
298597
- // eslint-disable-next-line deprecation/deprecation
298665
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298598
298666
  async getNodePaths(_token, _options) {
298599
298667
  return this.forward(arguments);
298600
298668
  }
298601
298669
  // TODO: add paged version of this (#387280)
298602
- // eslint-disable-next-line deprecation/deprecation
298670
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298603
298671
  async getFilteredNodePaths(_token, _options) {
298604
298672
  return this.forward(arguments);
298605
298673
  }
@@ -298645,9 +298713,8 @@ class PresentationRpcInterface extends _itwin_core_common__WEBPACK_IMPORTED_MODU
298645
298713
  return this.forward(arguments);
298646
298714
  }
298647
298715
  }
298648
- // eslint-disable-line deprecation/deprecation
298649
298716
  /** The immutable name of the interface. */
298650
- PresentationRpcInterface.interfaceName = "PresentationRpcInterface"; // eslint-disable-line @typescript-eslint/naming-convention
298717
+ PresentationRpcInterface.interfaceName = "PresentationRpcInterface";
298651
298718
  /** The semantic version of the interface. */
298652
298719
  PresentationRpcInterface.interfaceVersion = "4.1.0";
298653
298720
  /** @internal */
@@ -298817,7 +298884,7 @@ class RpcRequestsHandler {
298817
298884
  return this.request(this.rpcClient.getNodesCount.bind(this.rpcClient), options);
298818
298885
  }
298819
298886
  async getPagedNodes(options) {
298820
- // eslint-disable-next-line deprecation/deprecation
298887
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298821
298888
  return this.request(this.rpcClient.getPagedNodes.bind(this.rpcClient), options);
298822
298889
  }
298823
298890
  async getNodesDescriptor(options) {
@@ -298828,11 +298895,11 @@ class RpcRequestsHandler {
298828
298895
  return response;
298829
298896
  }
298830
298897
  async getNodePaths(options) {
298831
- // eslint-disable-next-line deprecation/deprecation
298898
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298832
298899
  return this.request(this.rpcClient.getNodePaths.bind(this.rpcClient), options);
298833
298900
  }
298834
298901
  async getFilteredNodePaths(options) {
298835
- // eslint-disable-next-line deprecation/deprecation
298902
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298836
298903
  return this.request(this.rpcClient.getFilteredNodePaths.bind(this.rpcClient), options);
298837
298904
  }
298838
298905
  async getContentSources(options) {
@@ -298851,7 +298918,7 @@ class RpcRequestsHandler {
298851
298918
  return this.request(this.rpcClient.getPagedContentSet.bind(this.rpcClient), options);
298852
298919
  }
298853
298920
  async getPagedDistinctValues(options) {
298854
- // eslint-disable-next-line deprecation/deprecation
298921
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298855
298922
  return this.request(this.rpcClient.getPagedDistinctValues.bind(this.rpcClient), options);
298856
298923
  }
298857
298924
  async getContentInstanceKeys(options) {
@@ -298868,7 +298935,7 @@ class RpcRequestsHandler {
298868
298935
  }
298869
298936
  async computeSelection(options) {
298870
298937
  return this.request(
298871
- // eslint-disable-next-line deprecation/deprecation
298938
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
298872
298939
  this.rpcClient.computeSelection.bind(this.rpcClient), options);
298873
298940
  }
298874
298941
  }
@@ -299066,7 +299133,6 @@ const toString = (displayValue) => {
299066
299133
  if (!displayValue) {
299067
299134
  return "NULL";
299068
299135
  }
299069
- // eslint-disable-next-line @typescript-eslint/no-base-to-string
299070
299136
  return displayValue.toString();
299071
299137
  };
299072
299138
  const createDescription = (record, relatedClass, field, value) => {
@@ -299266,29 +299332,29 @@ var PartialHierarchyModification;
299266
299332
  * Serialize given object to JSON.
299267
299333
  * @deprecated in 3.x. Use [[PartialHierarchyModification]]
299268
299334
  */
299269
- // eslint-disable-next-line deprecation/deprecation
299335
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299270
299336
  function toJSON(obj) {
299271
299337
  switch (obj.type) {
299272
299338
  case "Insert":
299273
299339
  return {
299274
299340
  type: "Insert",
299275
- // eslint-disable-next-line deprecation/deprecation
299341
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299276
299342
  parent: obj.parent === undefined ? undefined : _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.toJSON(obj.parent),
299277
299343
  position: obj.position,
299278
- // eslint-disable-next-line deprecation/deprecation
299344
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299279
299345
  node: _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__.Node.toJSON(obj.node),
299280
299346
  };
299281
299347
  case "Update":
299282
299348
  return {
299283
299349
  type: "Update",
299284
- // eslint-disable-next-line deprecation/deprecation
299350
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299285
299351
  target: _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.toJSON(obj.target),
299286
299352
  changes: _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__.Node.toPartialJSON(obj.changes),
299287
299353
  };
299288
299354
  case "Delete":
299289
299355
  return {
299290
299356
  type: "Delete",
299291
- // eslint-disable-next-line deprecation/deprecation
299357
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299292
299358
  parent: obj.parent === undefined ? undefined : _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.toJSON(obj.parent),
299293
299359
  position: obj.position,
299294
299360
  };
@@ -299299,29 +299365,29 @@ var PartialHierarchyModification;
299299
299365
  * Deserialize given object from JSON
299300
299366
  * @deprecated in 3.x. Use [[PartialHierarchyModification]]
299301
299367
  */
299302
- // eslint-disable-next-line deprecation/deprecation
299368
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299303
299369
  function fromJSON(json) {
299304
299370
  switch (json.type) {
299305
299371
  case "Insert":
299306
299372
  return {
299307
299373
  type: "Insert",
299308
- // eslint-disable-next-line deprecation/deprecation
299374
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299309
299375
  parent: json.parent === undefined ? undefined : _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.fromJSON(json.parent),
299310
299376
  position: json.position,
299311
- // eslint-disable-next-line deprecation/deprecation
299377
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299312
299378
  node: _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__.Node.fromJSON(json.node),
299313
299379
  };
299314
299380
  case "Update":
299315
299381
  return {
299316
299382
  type: "Update",
299317
- // eslint-disable-next-line deprecation/deprecation
299383
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299318
299384
  target: _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.fromJSON(json.target),
299319
299385
  changes: _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__.Node.fromPartialJSON(json.changes),
299320
299386
  };
299321
299387
  case "Delete":
299322
299388
  return {
299323
299389
  type: "Delete",
299324
- // eslint-disable-next-line deprecation/deprecation
299390
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299325
299391
  parent: json.parent === undefined ? undefined : _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.fromJSON(json.parent),
299326
299392
  position: json.position,
299327
299393
  };
@@ -299336,11 +299402,11 @@ var HierarchyCompareInfo;
299336
299402
  * Serialize given object to JSON.
299337
299403
  * @deprecated in 3.x. Use [[HierarchyCompareInfo]]
299338
299404
  */
299339
- // eslint-disable-next-line deprecation/deprecation
299405
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299340
299406
  function toJSON(obj) {
299341
299407
  return {
299342
299408
  ...obj,
299343
- // eslint-disable-next-line deprecation/deprecation
299409
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299344
299410
  changes: obj.changes.map((change) => PartialHierarchyModification.toJSON(change)),
299345
299411
  };
299346
299412
  }
@@ -299349,11 +299415,11 @@ var HierarchyCompareInfo;
299349
299415
  * Deserialize given object from JSON
299350
299416
  * @deprecated in 3.x. Use [[HierarchyCompareInfo]]
299351
299417
  */
299352
- // eslint-disable-next-line deprecation/deprecation
299418
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299353
299419
  function fromJSON(json) {
299354
299420
  return {
299355
299421
  ...json,
299356
- // eslint-disable-next-line deprecation/deprecation
299422
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
299357
299423
  changes: json.changes.map((change) => PartialHierarchyModification.fromJSON(change)),
299358
299424
  };
299359
299425
  }
@@ -299954,7 +300020,7 @@ function convertNestedContentItemToStructArrayItem(item, field, nextField) {
299954
300020
  nextFieldValues.display.push(nextDisplayValue);
299955
300021
  }
299956
300022
  });
299957
- const convertedItem = new _Item__WEBPACK_IMPORTED_MODULE_3__.Item(item.primaryKeys, item.label, item.imageId, // eslint-disable-line deprecation/deprecation
300023
+ const convertedItem = new _Item__WEBPACK_IMPORTED_MODULE_3__.Item(item.primaryKeys, item.label, item.imageId, // eslint-disable-line @typescript-eslint/no-deprecated
299958
300024
  item.classInfo, { [nextField.name]: nextFieldValues.raw }, { [nextField.name]: nextFieldValues.display }, item.mergedFieldNames, item.extendedData);
299959
300025
  return { emptyNestedItem: false, convertedItem };
299960
300026
  }
@@ -300021,7 +300087,7 @@ function convertNestedContentFieldHierarchyItemToStructArrayItem(item, fieldHier
300021
300087
  return { emptyNestedItem: true, convertedItem: item };
300022
300088
  }
300023
300089
  const converted = convertNestedContentValuesToStructArrayValuesRecursive(fieldHierarchy, rawValue);
300024
- const convertedItem = new _Item__WEBPACK_IMPORTED_MODULE_3__.Item(item.primaryKeys, item.label, item.imageId, // eslint-disable-line deprecation/deprecation
300090
+ const convertedItem = new _Item__WEBPACK_IMPORTED_MODULE_3__.Item(item.primaryKeys, item.label, item.imageId, // eslint-disable-line @typescript-eslint/no-deprecated
300025
300091
  item.classInfo, { [fieldName]: converted.raw }, { [fieldName]: converted.display }, converted.mergedFieldNames, item.extendedData);
300026
300092
  return { emptyNestedItem: false, convertedItem };
300027
300093
  }
@@ -300185,8 +300251,8 @@ class Descriptor {
300185
300251
  this.fields = [...source.fields];
300186
300252
  this.sortingField = source.sortingField;
300187
300253
  this.sortDirection = source.sortDirection;
300188
- this.filterExpression = source.fieldsFilterExpression ?? source.filterExpression; // eslint-disable-line deprecation/deprecation
300189
- this.fieldsFilterExpression = source.fieldsFilterExpression ?? source.filterExpression; // eslint-disable-line deprecation/deprecation
300254
+ this.filterExpression = source.fieldsFilterExpression ?? source.filterExpression; // eslint-disable-line @typescript-eslint/no-deprecated
300255
+ this.fieldsFilterExpression = source.fieldsFilterExpression ?? source.filterExpression; // eslint-disable-line @typescript-eslint/no-deprecated
300190
300256
  this.instanceFilter = source.instanceFilter;
300191
300257
  this.ruleset = source.ruleset;
300192
300258
  }
@@ -300204,8 +300270,8 @@ class Descriptor {
300204
300270
  classesMap,
300205
300271
  }, this.connectionId !== undefined && { connectionId: this.connectionId }, this.inputKeysHash !== undefined && { inputKeysHash: this.inputKeysHash },
300206
300272
  // istanbul ignore next
300207
- this.contentOptions !== undefined && { contentOptions: this.contentOptions }, // eslint-disable-line deprecation/deprecation
300208
- this.sortingField !== undefined && { sortingFieldName: this.sortingField.name }, this.sortDirection !== undefined && { sortDirection: this.sortDirection }, this.filterExpression !== undefined && { filterExpression: this.filterExpression }, // eslint-disable-line deprecation/deprecation
300273
+ this.contentOptions !== undefined && { contentOptions: this.contentOptions }, // eslint-disable-line @typescript-eslint/no-deprecated
300274
+ this.sortingField !== undefined && { sortingFieldName: this.sortingField.name }, this.sortDirection !== undefined && { sortDirection: this.sortDirection }, this.filterExpression !== undefined && { filterExpression: this.filterExpression }, // eslint-disable-line @typescript-eslint/no-deprecated
300209
300275
  this.fieldsFilterExpression !== undefined && { fieldsFilterExpression: this.fieldsFilterExpression }, this.instanceFilter !== undefined && { instanceFilter: this.instanceFilter }, this.selectionInfo !== undefined && { selectionInfo: this.selectionInfo }, this.ruleset !== undefined && { ruleset: this.ruleset });
300210
300276
  }
300211
300277
  /** Deserialize [[Descriptor]] from JSON */
@@ -300262,9 +300328,9 @@ class Descriptor {
300262
300328
  if (this.contentFlags !== 0) {
300263
300329
  overrides.contentFlags = this.contentFlags;
300264
300330
  }
300265
- // eslint-disable-next-line deprecation/deprecation
300331
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
300266
300332
  if (this.filterExpression || this.fieldsFilterExpression) {
300267
- // eslint-disable-next-line deprecation/deprecation
300333
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
300268
300334
  overrides.fieldsFilterExpression = this.fieldsFilterExpression ?? this.filterExpression;
300269
300335
  }
300270
300336
  if (this.instanceFilter) {
@@ -300469,7 +300535,7 @@ class Field {
300469
300535
  return PropertiesField.fromJSON(json, categories);
300470
300536
  }
300471
300537
  if (isNestedContentField(json)) {
300472
- // eslint-disable-next-line deprecation/deprecation
300538
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
300473
300539
  return NestedContentField.fromJSON(json, categories);
300474
300540
  }
300475
300541
  const field = Object.create(Field.prototype);
@@ -300861,7 +300927,7 @@ class NestedContentField extends Field {
300861
300927
  pathToPrimaryClass: json.pathToPrimaryClass.map((stepJson) => _EC__WEBPACK_IMPORTED_MODULE_1__.RelatedClassInfo.fromCompressedJSON(stepJson, classesMap)),
300862
300928
  });
300863
300929
  }
300864
- // eslint-disable-next-line deprecation/deprecation
300930
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
300865
300931
  static fromCommonJSON(json, categories) {
300866
300932
  return {
300867
300933
  category: this.getCategoryFromFieldJson(json, categories),
@@ -301002,7 +301068,7 @@ class Item {
301002
301068
  */
301003
301069
  constructor(primaryKeys, label, imageId, classInfo, values, displayValues, mergedFieldNames, extendedData) {
301004
301070
  this.primaryKeys = primaryKeys;
301005
- this.imageId = imageId; // eslint-disable-line deprecation/deprecation
301071
+ this.imageId = imageId; // eslint-disable-line @typescript-eslint/no-deprecated
301006
301072
  this.classInfo = classInfo;
301007
301073
  this.values = values;
301008
301074
  this.displayValues = displayValues;
@@ -301021,11 +301087,11 @@ class Item {
301021
301087
  const { label, ...baseItem } = this;
301022
301088
  return {
301023
301089
  ...baseItem,
301024
- // eslint-disable-next-line deprecation/deprecation
301090
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301025
301091
  values: _Value__WEBPACK_IMPORTED_MODULE_1__.Value.toJSON(this.values),
301026
- // eslint-disable-next-line deprecation/deprecation
301092
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301027
301093
  displayValues: _Value__WEBPACK_IMPORTED_MODULE_1__.DisplayValue.toJSON(this.displayValues),
301028
- // eslint-disable-next-line deprecation/deprecation
301094
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301029
301095
  labelDefinition: _LabelDefinition__WEBPACK_IMPORTED_MODULE_0__.LabelDefinition.toJSON(label),
301030
301096
  };
301031
301097
  }
@@ -301040,11 +301106,11 @@ class Item {
301040
301106
  const item = Object.create(Item.prototype);
301041
301107
  const { labelDefinition, ...baseJson } = json;
301042
301108
  return Object.assign(item, baseJson, {
301043
- // eslint-disable-next-line deprecation/deprecation
301109
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301044
301110
  values: _Value__WEBPACK_IMPORTED_MODULE_1__.Value.fromJSON(json.values),
301045
- // eslint-disable-next-line deprecation/deprecation
301111
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301046
301112
  displayValues: _Value__WEBPACK_IMPORTED_MODULE_1__.DisplayValue.fromJSON(json.displayValues),
301047
- // eslint-disable-next-line deprecation/deprecation
301113
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301048
301114
  label: _LabelDefinition__WEBPACK_IMPORTED_MODULE_0__.LabelDefinition.fromJSON(labelDefinition),
301049
301115
  });
301050
301116
  }
@@ -301442,13 +301508,13 @@ var Value;
301442
301508
  * Serialize [[Value]] to JSON
301443
301509
  * @deprecated in 3.x. Use [[Value]]
301444
301510
  */
301445
- // eslint-disable-next-line deprecation/deprecation
301511
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301446
301512
  function fromJSON(json) {
301447
301513
  if (json === null) {
301448
301514
  return undefined;
301449
301515
  }
301450
301516
  if (isNestedContentValue(json)) {
301451
- // eslint-disable-next-line deprecation/deprecation
301517
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301452
301518
  return json.map(NestedContentValue.fromJSON);
301453
301519
  }
301454
301520
  if (isArrayValue(json)) {
@@ -301464,13 +301530,13 @@ var Value;
301464
301530
  * Deserialize [[Value]] from JSON
301465
301531
  * @deprecated in 3.x. Use [[Value]]
301466
301532
  */
301467
- // eslint-disable-next-line deprecation/deprecation
301533
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301468
301534
  function toJSON(value) {
301469
301535
  if (undefined === value) {
301470
301536
  return null;
301471
301537
  }
301472
301538
  if (isNestedContentValue(value)) {
301473
- // eslint-disable-next-line deprecation/deprecation
301539
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301474
301540
  return value.map(NestedContentValue.toJSON);
301475
301541
  }
301476
301542
  if (isArrayValue(value)) {
@@ -301506,7 +301572,7 @@ var DisplayValue;
301506
301572
  * Serialize [[DisplayValue]] to JSON
301507
301573
  * @deprecated in 3.x. Use [[DisplayValue]]
301508
301574
  */
301509
- // eslint-disable-next-line deprecation/deprecation
301575
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301510
301576
  function fromJSON(json) {
301511
301577
  if (json === null) {
301512
301578
  return undefined;
@@ -301524,7 +301590,7 @@ var DisplayValue;
301524
301590
  * Deserialize [[DisplayValue]] from JSON
301525
301591
  * @deprecated in 3.x. Use [[DisplayValue]]
301526
301592
  */
301527
- // eslint-disable-next-line deprecation/deprecation
301593
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301528
301594
  function toJSON(value) {
301529
301595
  if (undefined === value) {
301530
301596
  return null;
@@ -301546,7 +301612,7 @@ var NestedContentValue;
301546
301612
  * Serialize [[NestedContentValue]] to JSON
301547
301613
  * @deprecated in 3.x. Use [[NestedContentValue]]
301548
301614
  */
301549
- // eslint-disable-next-line deprecation/deprecation
301615
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301550
301616
  function toJSON(value) {
301551
301617
  return {
301552
301618
  ...value,
@@ -301559,7 +301625,7 @@ var NestedContentValue;
301559
301625
  * Deserialize [[NestedContentValue]] from JSON
301560
301626
  * @deprecated in 3.x. Use [[NestedContentValue]]
301561
301627
  */
301562
- // eslint-disable-next-line deprecation/deprecation
301628
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301563
301629
  function fromJSON(json) {
301564
301630
  return {
301565
301631
  ...json,
@@ -301576,12 +301642,12 @@ var DisplayValueGroup;
301576
301642
  * Serialize [[DisplayValueGroup]] to JSON
301577
301643
  * @deprecated in 3.x. Use [[DisplayValueGroup]]
301578
301644
  */
301579
- // eslint-disable-next-line deprecation/deprecation
301645
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301580
301646
  function toJSON(group) {
301581
301647
  return {
301582
- // eslint-disable-next-line deprecation/deprecation
301648
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301583
301649
  displayValue: DisplayValue.toJSON(group.displayValue),
301584
- // eslint-disable-next-line deprecation/deprecation
301650
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301585
301651
  groupedRawValues: group.groupedRawValues.map(Value.toJSON),
301586
301652
  };
301587
301653
  }
@@ -301590,18 +301656,18 @@ var DisplayValueGroup;
301590
301656
  * Deserialize [[DisplayValueGroup]] from JSON
301591
301657
  * @deprecated in 3.x. Use [[DisplayValueGroup]]
301592
301658
  */
301593
- // eslint-disable-next-line deprecation/deprecation
301659
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301594
301660
  function fromJSON(json) {
301595
301661
  return {
301596
- // eslint-disable-next-line deprecation/deprecation
301662
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301597
301663
  displayValue: DisplayValue.fromJSON(json.displayValue),
301598
- // eslint-disable-next-line deprecation/deprecation
301664
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301599
301665
  groupedRawValues: json.groupedRawValues.map(Value.fromJSON),
301600
301666
  };
301601
301667
  }
301602
301668
  DisplayValueGroup.fromJSON = fromJSON;
301603
301669
  })(DisplayValueGroup || (DisplayValueGroup = {}));
301604
- // eslint-disable-next-line deprecation/deprecation
301670
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301605
301671
  function isNestedContentValue(v) {
301606
301672
  return (v !== undefined &&
301607
301673
  Array.isArray(v) &&
@@ -301617,78 +301683,78 @@ function isArrayValue(v) {
301617
301683
  // we have other means to determine the type of value.
301618
301684
  return v !== undefined && Array.isArray(v);
301619
301685
  }
301620
- // eslint-disable-next-line deprecation/deprecation
301686
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301621
301687
  function isMapValue(v) {
301622
301688
  return v !== undefined && typeof v === "object" && !Array.isArray(v);
301623
301689
  }
301624
301690
  function isPrimitiveValue(v) {
301625
301691
  return !isArrayValue(v) && !isMapValue(v);
301626
301692
  }
301627
- // eslint-disable-next-line deprecation/deprecation
301693
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301628
301694
  function valuesArrayFromJSON(json) {
301629
- // eslint-disable-next-line deprecation/deprecation
301695
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301630
301696
  return json.map(Value.fromJSON);
301631
301697
  }
301632
- // eslint-disable-next-line deprecation/deprecation
301698
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301633
301699
  function valuesArrayToJSON(values) {
301634
- // eslint-disable-next-line deprecation/deprecation
301700
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301635
301701
  return values.map(Value.toJSON);
301636
301702
  }
301637
- // eslint-disable-next-line deprecation/deprecation
301703
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301638
301704
  function valuesMapFromJSON(json) {
301639
301705
  const map = {};
301640
301706
  for (const key in json) {
301641
301707
  /* istanbul ignore else */
301642
301708
  if (json.hasOwnProperty(key)) {
301643
- // eslint-disable-next-line deprecation/deprecation
301709
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301644
301710
  map[key] = Value.fromJSON(json[key]);
301645
301711
  }
301646
301712
  }
301647
301713
  return map;
301648
301714
  }
301649
- // eslint-disable-next-line deprecation/deprecation
301715
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301650
301716
  function valuesMapToJSON(values) {
301651
- // eslint-disable-next-line deprecation/deprecation
301717
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301652
301718
  const map = {};
301653
301719
  for (const key in values) {
301654
301720
  /* istanbul ignore else */
301655
301721
  if (values.hasOwnProperty(key)) {
301656
- // eslint-disable-next-line deprecation/deprecation
301722
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301657
301723
  map[key] = Value.toJSON(values[key]);
301658
301724
  }
301659
301725
  }
301660
301726
  return map;
301661
301727
  }
301662
- // eslint-disable-next-line deprecation/deprecation
301728
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301663
301729
  function displayValuesArrayFromJSON(json) {
301664
- // eslint-disable-next-line deprecation/deprecation
301730
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301665
301731
  return json.map(DisplayValue.fromJSON);
301666
301732
  }
301667
- // eslint-disable-next-line deprecation/deprecation
301733
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301668
301734
  function displayValuesArrayToJSON(values) {
301669
- // eslint-disable-next-line deprecation/deprecation
301735
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301670
301736
  return values.map(DisplayValue.toJSON);
301671
301737
  }
301672
- // eslint-disable-next-line deprecation/deprecation
301738
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301673
301739
  function displayValuesMapFromJSON(json) {
301674
301740
  const map = {};
301675
301741
  for (const key in json) {
301676
301742
  /* istanbul ignore else */
301677
301743
  if (json.hasOwnProperty(key)) {
301678
- // eslint-disable-next-line deprecation/deprecation
301744
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301679
301745
  map[key] = DisplayValue.fromJSON(json[key]);
301680
301746
  }
301681
301747
  }
301682
301748
  return map;
301683
301749
  }
301684
- // eslint-disable-next-line deprecation/deprecation
301750
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301685
301751
  function displayValuesMapToJSON(values) {
301686
- // eslint-disable-next-line deprecation/deprecation
301752
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301687
301753
  const map = {};
301688
301754
  for (const key in values) {
301689
301755
  /* istanbul ignore else */
301690
301756
  if (values.hasOwnProperty(key)) {
301691
- // eslint-disable-next-line deprecation/deprecation
301757
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301692
301758
  map[key] = DisplayValue.toJSON(values[key]);
301693
301759
  }
301694
301760
  }
@@ -301729,11 +301795,11 @@ var HierarchyLevel;
301729
301795
  * @beta
301730
301796
  * @deprecated in 3.x. Use [[HierarchyLevel]].
301731
301797
  */
301732
- // eslint-disable-next-line deprecation/deprecation
301798
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301733
301799
  function fromJSON(json) {
301734
301800
  return {
301735
301801
  ...json,
301736
- // eslint-disable-next-line deprecation/deprecation
301802
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301737
301803
  nodes: json.nodes.map(_Node__WEBPACK_IMPORTED_MODULE_0__.Node.fromJSON),
301738
301804
  };
301739
301805
  }
@@ -301785,7 +301851,7 @@ var NodeKey;
301785
301851
  * Serialize given [[NodeKey]] to JSON
301786
301852
  * @deprecated in 3.x. Use [[NodeKey]].
301787
301853
  */
301788
- // eslint-disable-next-line deprecation/deprecation
301854
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301789
301855
  function toJSON(key) {
301790
301856
  return { ...key };
301791
301857
  }
@@ -301794,34 +301860,34 @@ var NodeKey;
301794
301860
  * Deserialize node key from JSON
301795
301861
  * @deprecated in 3.x. Use [[NodeKey]].
301796
301862
  */
301797
- // eslint-disable-next-line deprecation/deprecation
301863
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301798
301864
  function fromJSON(json) {
301799
301865
  return { version: 1, ...json };
301800
301866
  }
301801
301867
  NodeKey.fromJSON = fromJSON;
301802
- // eslint-disable-next-line deprecation/deprecation
301868
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301803
301869
  function isInstancesNodeKey(key) {
301804
301870
  return key.type === StandardNodeTypes.ECInstancesNode;
301805
301871
  }
301806
301872
  NodeKey.isInstancesNodeKey = isInstancesNodeKey;
301807
- // eslint-disable-next-line deprecation/deprecation
301873
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301808
301874
  function isClassGroupingNodeKey(key) {
301809
301875
  return key.type === StandardNodeTypes.ECClassGroupingNode;
301810
301876
  }
301811
301877
  NodeKey.isClassGroupingNodeKey = isClassGroupingNodeKey;
301812
- // eslint-disable-next-line deprecation/deprecation
301878
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301813
301879
  function isPropertyGroupingNodeKey(key) {
301814
301880
  return key.type === StandardNodeTypes.ECPropertyGroupingNode;
301815
301881
  }
301816
301882
  NodeKey.isPropertyGroupingNodeKey = isPropertyGroupingNodeKey;
301817
- // eslint-disable-next-line deprecation/deprecation
301883
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301818
301884
  function isLabelGroupingNodeKey(key) {
301819
301885
  return key.type === StandardNodeTypes.DisplayLabelGroupingNode;
301820
301886
  }
301821
301887
  NodeKey.isLabelGroupingNodeKey = isLabelGroupingNodeKey;
301822
- // eslint-disable-next-line deprecation/deprecation
301888
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301823
301889
  function isGroupingNodeKey(key) {
301824
- return isClassGroupingNodeKey(key) || isPropertyGroupingNodeKey(key) || isLabelGroupingNodeKey(key); // eslint-disable-line deprecation/deprecation
301890
+ return isClassGroupingNodeKey(key) || isPropertyGroupingNodeKey(key) || isLabelGroupingNodeKey(key); // eslint-disable-line @typescript-eslint/no-deprecated
301825
301891
  }
301826
301892
  NodeKey.isGroupingNodeKey = isGroupingNodeKey;
301827
301893
  /**
@@ -301912,7 +301978,7 @@ var Node;
301912
301978
  * Serialize given [[Node]] to JSON
301913
301979
  * @deprecated in 3.x. Use [[Node]].
301914
301980
  */
301915
- // eslint-disable-next-line deprecation/deprecation
301981
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301916
301982
  function toJSON(node) {
301917
301983
  const { label, ...baseNode } = node;
301918
301984
  return {
@@ -301922,7 +301988,7 @@ var Node;
301922
301988
  }
301923
301989
  Node.toJSON = toJSON;
301924
301990
  /** @internal */
301925
- // eslint-disable-next-line deprecation/deprecation
301991
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301926
301992
  function toPartialJSON(node) {
301927
301993
  if (node.key === undefined) {
301928
301994
  return node;
@@ -301938,7 +302004,7 @@ var Node;
301938
302004
  * Deserialize [[Node]] from JSON
301939
302005
  * @deprecated in 3.x. Use [[Node]].
301940
302006
  */
301941
- // eslint-disable-next-line deprecation/deprecation
302007
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301942
302008
  function fromJSON(json) {
301943
302009
  if (typeof json === "string") {
301944
302010
  return JSON.parse(json, reviver);
@@ -301946,14 +302012,14 @@ var Node;
301946
302012
  const { labelDefinition, ...baseJson } = json;
301947
302013
  return {
301948
302014
  ...baseJson,
301949
- // eslint-disable-next-line deprecation/deprecation
302015
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301950
302016
  key: _Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.fromJSON(json.key),
301951
302017
  label: labelDefinition,
301952
302018
  };
301953
302019
  }
301954
302020
  Node.fromJSON = fromJSON;
301955
302021
  /** @internal */
301956
- // eslint-disable-next-line deprecation/deprecation
302022
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301957
302023
  function fromPartialJSON(json) {
301958
302024
  if (json.key === undefined) {
301959
302025
  return json;
@@ -301961,7 +302027,7 @@ var Node;
301961
302027
  const { key, labelDefinition, ...baseJson } = json;
301962
302028
  return {
301963
302029
  ...baseJson,
301964
- // eslint-disable-next-line deprecation/deprecation
302030
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301965
302031
  key: _Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.fromJSON(key),
301966
302032
  label: labelDefinition,
301967
302033
  };
@@ -301973,7 +302039,7 @@ var Node;
301973
302039
  * @internal
301974
302040
  */
301975
302041
  function reviver(key, value) {
301976
- // eslint-disable-next-line deprecation/deprecation
302042
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301977
302043
  return key === "" ? fromJSON(value) : value;
301978
302044
  }
301979
302045
  Node.reviver = reviver;
@@ -301983,12 +302049,12 @@ var Node;
301983
302049
  * @returns Deserialized nodes list
301984
302050
  * @internal
301985
302051
  */
301986
- // eslint-disable-next-line deprecation/deprecation
302052
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301987
302053
  function listFromJSON(json) {
301988
302054
  if (typeof json === "string") {
301989
302055
  return JSON.parse(json, listReviver);
301990
302056
  }
301991
- // eslint-disable-next-line deprecation/deprecation
302057
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
301992
302058
  return json.map((m) => fromJSON(m));
301993
302059
  }
301994
302060
  Node.listFromJSON = listFromJSON;
@@ -302034,21 +302100,21 @@ var NodePathElement;
302034
302100
  * Serialize given [[NodePathElement]] to JSON
302035
302101
  * @deprecated in 3.x. Use [[NodePathElement]].
302036
302102
  */
302037
- // eslint-disable-next-line deprecation/deprecation
302103
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302038
302104
  function toJSON(npe) {
302039
- // eslint-disable-next-line deprecation/deprecation
302105
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302040
302106
  const result = {
302041
- // eslint-disable-next-line deprecation/deprecation
302107
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302042
302108
  node: _Node__WEBPACK_IMPORTED_MODULE_0__.Node.toJSON(npe.node),
302043
302109
  index: npe.index,
302044
- // eslint-disable-next-line deprecation/deprecation
302110
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302045
302111
  children: npe.children.map(NodePathElement.toJSON),
302046
302112
  };
302047
302113
  if (undefined !== npe.isMarked) {
302048
302114
  result.isMarked = npe.isMarked;
302049
302115
  }
302050
302116
  if (undefined !== npe.filteringData) {
302051
- // eslint-disable-next-line deprecation/deprecation
302117
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302052
302118
  result.filteringData = NodePathFilteringData.toJSON(npe.filteringData);
302053
302119
  }
302054
302120
  return result;
@@ -302058,14 +302124,14 @@ var NodePathElement;
302058
302124
  * Deserialize [[NodePathElement]] from JSON
302059
302125
  * @deprecated in 3.x. Use [[NodePathElement]].
302060
302126
  */
302061
- // eslint-disable-next-line deprecation/deprecation
302127
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302062
302128
  function fromJSON(json) {
302063
302129
  if (typeof json === "string") {
302064
302130
  return JSON.parse(json, reviver);
302065
302131
  }
302066
302132
  const result = {
302067
302133
  index: json.index,
302068
- // eslint-disable-next-line deprecation/deprecation
302134
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302069
302135
  node: _Node__WEBPACK_IMPORTED_MODULE_0__.Node.fromJSON(json.node),
302070
302136
  children: listFromJSON(json.children),
302071
302137
  };
@@ -302073,7 +302139,7 @@ var NodePathElement;
302073
302139
  result.isMarked = json.isMarked;
302074
302140
  }
302075
302141
  if (undefined !== json.filteringData) {
302076
- // eslint-disable-next-line deprecation/deprecation
302142
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302077
302143
  result.filteringData = NodePathFilteringData.fromJSON(json.filteringData);
302078
302144
  }
302079
302145
  return result;
@@ -302085,7 +302151,7 @@ var NodePathElement;
302085
302151
  * @internal
302086
302152
  */
302087
302153
  function reviver(key, value) {
302088
- // eslint-disable-next-line deprecation/deprecation
302154
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302089
302155
  return key === "" ? fromJSON(value) : value;
302090
302156
  }
302091
302157
  NodePathElement.reviver = reviver;
@@ -302095,12 +302161,12 @@ var NodePathElement;
302095
302161
  * @returns Deserialized [[NodePathElement]] list
302096
302162
  * @internal
302097
302163
  */
302098
- // eslint-disable-next-line deprecation/deprecation
302164
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302099
302165
  function listFromJSON(json) {
302100
302166
  if (typeof json === "string") {
302101
302167
  return JSON.parse(json, listReviver);
302102
302168
  }
302103
- // eslint-disable-next-line deprecation/deprecation
302169
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302104
302170
  return json.map((m) => fromJSON(m));
302105
302171
  }
302106
302172
  NodePathElement.listFromJSON = listFromJSON;
@@ -302121,7 +302187,7 @@ var NodePathFilteringData;
302121
302187
  * Serialize given [[NodePathFilteringData]] to JSON
302122
302188
  * @deprecated in 3.x. Use [[NodePathFilteringData]].
302123
302189
  */
302124
- // eslint-disable-next-line deprecation/deprecation
302190
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302125
302191
  function toJSON(npfd) {
302126
302192
  return {
302127
302193
  occurances: npfd.matchesCount,
@@ -302133,7 +302199,7 @@ var NodePathFilteringData;
302133
302199
  * Deserialize [[NodePathFilteringData]] from JSON
302134
302200
  * @deprecated in 3.x. Use [[NodePathFilteringData]].
302135
302201
  */
302136
- // eslint-disable-next-line deprecation/deprecation
302202
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
302137
302203
  function fromJSON(json) {
302138
302204
  return {
302139
302205
  matchesCount: json.occurances,
@@ -303301,7 +303367,6 @@ __webpack_require__.r(__webpack_exports__);
303301
303367
  class ConnectivityInformationProvider {
303302
303368
  constructor() {
303303
303369
  this.onInternetConnectivityChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
303304
- // eslint-disable-next-line @typescript-eslint/naming-convention
303305
303370
  this.onNativeAppInternetConnectivityChanged = (status) => {
303306
303371
  if (this._currentStatus === status) {
303307
303372
  return;
@@ -303790,13 +303855,12 @@ class PresentationManager {
303790
303855
  * An event raised when content created using specific ruleset changes
303791
303856
  */
303792
303857
  this.onIModelContentChanged = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
303793
- // eslint-disable-next-line @typescript-eslint/naming-convention
303794
303858
  this.onUpdate = (_evt, report) => {
303795
303859
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
303796
303860
  this.handleUpdateAsync(report);
303797
303861
  };
303798
303862
  if (props) {
303799
- // eslint-disable-next-line deprecation/deprecation
303863
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
303800
303864
  this._explicitActiveUnitSystem = props.activeUnitSystem;
303801
303865
  }
303802
303866
  this._requestsHandler =
@@ -303899,7 +303963,7 @@ class PresentationManager {
303899
303963
  if (this.activeLocale) {
303900
303964
  defaultOptions.locale = this.activeLocale;
303901
303965
  }
303902
- defaultOptions.unitSystem = this.activeUnitSystem; // eslint-disable-line deprecation/deprecation
303966
+ defaultOptions.unitSystem = this.activeUnitSystem; // eslint-disable-line @typescript-eslint/no-deprecated
303903
303967
  const { imodel, rulesetVariables, ...rpcRequestOptions } = requestOptions;
303904
303968
  return {
303905
303969
  ...defaultOptions,
@@ -303946,7 +304010,7 @@ class PresentationManager {
303946
304010
  const result = await this._requestsHandler.getPagedNodes({ ...rpcOptions, paging });
303947
304011
  return {
303948
304012
  total: result.total,
303949
- // eslint-disable-next-line deprecation/deprecation
304013
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
303950
304014
  items: this._localizationHelper.getLocalizedNodes(result.items.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.Node.fromJSON)),
303951
304015
  };
303952
304016
  },
@@ -304002,7 +304066,7 @@ class PresentationManager {
304002
304066
  const options = await this.addRulesetAndVariablesToOptions(requestOptions);
304003
304067
  const rpcOptions = this.toRpcTokenOptions({ ...options });
304004
304068
  const result = await this._requestsHandler.getNodePaths(rpcOptions);
304005
- // eslint-disable-next-line deprecation/deprecation
304069
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
304006
304070
  return result.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.NodePathElement.fromJSON).map((npe) => this._localizationHelper.getLocalizedNodePathElement(npe));
304007
304071
  }
304008
304072
  /** Retrieves paths from root nodes to nodes containing filter text in their label. */
@@ -304010,7 +304074,7 @@ class PresentationManager {
304010
304074
  this.startIModelInitialization(requestOptions.imodel);
304011
304075
  const options = await this.addRulesetAndVariablesToOptions(requestOptions);
304012
304076
  const result = await this._requestsHandler.getFilteredNodePaths(this.toRpcTokenOptions(options));
304013
- // eslint-disable-next-line deprecation/deprecation
304077
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
304014
304078
  return result.map(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.NodePathElement.fromJSON).map((npe) => this._localizationHelper.getLocalizedNodePathElement(npe));
304015
304079
  }
304016
304080
  /**
@@ -304119,7 +304183,7 @@ class PresentationManager {
304119
304183
  * @deprecated in 4.5. Use [[getContentIterator]] instead.
304120
304184
  */
304121
304185
  async getContent(requestOptions) {
304122
- // eslint-disable-next-line deprecation/deprecation
304186
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
304123
304187
  return (await this.getContentAndSize(requestOptions))?.content;
304124
304188
  }
304125
304189
  /**
@@ -304153,7 +304217,7 @@ class PresentationManager {
304153
304217
  const response = await this._requestsHandler.getPagedDistinctValues({ ...rpcOptions, paging });
304154
304218
  return {
304155
304219
  total: response.total,
304156
- // eslint-disable-next-line deprecation/deprecation
304220
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
304157
304221
  items: response.items.map((x) => this._localizationHelper.getLocalizedDisplayValueGroup(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.DisplayValueGroup.fromJSON(x))),
304158
304222
  };
304159
304223
  },
@@ -304955,7 +305019,7 @@ class FavoritePropertiesManager {
304955
305019
  */
304956
305020
  startConnectionInitialization(imodel) {
304957
305021
  if (!this.isInitialized(imodel) && !this._imodelInitializationPromises.has(imodel)) {
304958
- // eslint-disable-next-line deprecation/deprecation
305022
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
304959
305023
  this._imodelInitializationPromises.set(imodel, this.initializeConnection(imodel));
304960
305024
  }
304961
305025
  }
@@ -304969,7 +305033,7 @@ class FavoritePropertiesManager {
304969
305033
  }
304970
305034
  let promise = this._imodelInitializationPromises.get(imodel);
304971
305035
  if (!promise) {
304972
- // eslint-disable-next-line deprecation/deprecation
305036
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
304973
305037
  promise = this.initializeConnection(imodel);
304974
305038
  // Put the promise in the map to avoid possible multiple initializations from different promises.
304975
305039
  this._imodelInitializationPromises.set(imodel, promise);
@@ -305122,7 +305186,7 @@ class FavoritePropertiesManager {
305122
305186
  */
305123
305187
  async hasAsync(field, imodel, scope) {
305124
305188
  await this.ensureInitialized(imodel);
305125
- // eslint-disable-next-line deprecation/deprecation
305189
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
305126
305190
  return this.has(field, imodel, scope);
305127
305191
  }
305128
305192
  /**
@@ -305133,7 +305197,7 @@ class FavoritePropertiesManager {
305133
305197
  */
305134
305198
  async sortFieldsAsync(imodel, fields) {
305135
305199
  await this.ensureInitialized(imodel);
305136
- // eslint-disable-next-line deprecation/deprecation
305200
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
305137
305201
  return this.sortFields(imodel, fields);
305138
305202
  }
305139
305203
  getFieldPriority(field, iTwinId, imodelId) {
@@ -305566,7 +305630,6 @@ class OfflineCachingFavoritePropertiesStorage {
305566
305630
  constructor(props) {
305567
305631
  this._propertiesOfflineCache = new DictionaryWithReservations(iTwinAndIModelIdsKeyComparer);
305568
305632
  this._propertiesOrderOfflineCache = new DictionaryWithReservations(iTwinAndIModelIdsKeyComparer);
305569
- // eslint-disable-next-line @typescript-eslint/naming-convention
305570
305633
  this.onConnectivityStatusChanged = (args) => {
305571
305634
  // istanbul ignore else
305572
305635
  if (args.status === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.InternetConnectivityStatus.Online) {
@@ -306017,7 +306080,6 @@ class SelectionHandler {
306017
306080
  * Called when the selection changes. Handles this callback by first checking whether
306018
306081
  * the event should be handled at all (using the `shouldHandle` method) and then calling `onSelect`
306019
306082
  */
306020
- // eslint-disable-next-line @typescript-eslint/naming-convention
306021
306083
  this.onSelectionChanged = (evt, provider) => {
306022
306084
  if (!this.onSelect || !this.shouldHandle(evt)) {
306023
306085
  return;
@@ -306513,7 +306575,6 @@ class ToolSelectionSyncHandler {
306513
306575
  constructor(imodel, logicalSelection) {
306514
306576
  this._selectionSourceName = "Tool";
306515
306577
  this._asyncsTracker = new _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.AsyncTasksTracker();
306516
- // eslint-disable-next-line @typescript-eslint/naming-convention
306517
306578
  this.onToolSelectionChanged = async (ev) => {
306518
306579
  // ignore selection change event if the handler is suspended
306519
306580
  if (this.isSuspended) {
@@ -306960,7 +307021,10 @@ function getScopeId(scope) {
306960
307021
  "use strict";
306961
307022
 
306962
307023
  Object.defineProperty(exports, "__esModule", ({ value: true }));
306963
- exports.executeBackendCallback = exports.registerBackendCallback = exports.executeRegisteredCallback = exports.getCallbacksRegisteredOnBackend = void 0;
307024
+ exports.getCallbacksRegisteredOnBackend = getCallbacksRegisteredOnBackend;
307025
+ exports.executeRegisteredCallback = executeRegisteredCallback;
307026
+ exports.registerBackendCallback = registerBackendCallback;
307027
+ exports.executeBackendCallback = executeBackendCallback;
306964
307028
  const isFrontend = (typeof (window) !== "undefined");
306965
307029
  /** @internal */
306966
307030
  function getCallbacksRegisteredOnBackend() {
@@ -306969,7 +307033,6 @@ function getCallbacksRegisteredOnBackend() {
306969
307033
  __webpack_require__.g._CertaRegisteredCallbacks = __webpack_require__.g._CertaRegisteredCallbacks || {};
306970
307034
  return __webpack_require__.g._CertaRegisteredCallbacks;
306971
307035
  }
306972
- exports.getCallbacksRegisteredOnBackend = getCallbacksRegisteredOnBackend;
306973
307036
  /** @internal */
306974
307037
  function executeRegisteredCallback(name, args) {
306975
307038
  const registeredCallbacks = getCallbacksRegisteredOnBackend();
@@ -306977,20 +307040,17 @@ function executeRegisteredCallback(name, args) {
306977
307040
  throw new Error(`Unknown certa backend callback "${name}"`);
306978
307041
  return registeredCallbacks[name](...args);
306979
307042
  }
306980
- exports.executeRegisteredCallback = executeRegisteredCallback;
306981
307043
  function registerBackendCallback(name, cb) {
306982
307044
  if (isFrontend)
306983
307045
  throw new Error("This should only be called on the backend!");
306984
307046
  __webpack_require__.g._CertaRegisteredCallbacks = __webpack_require__.g._CertaRegisteredCallbacks || {};
306985
307047
  __webpack_require__.g._CertaRegisteredCallbacks[name] = cb;
306986
307048
  }
306987
- exports.registerBackendCallback = registerBackendCallback;
306988
307049
  async function executeBackendCallback(name, ...args) {
306989
307050
  if (!isFrontend)
306990
307051
  return executeRegisteredCallback(name, args);
306991
307052
  return window._CertaSendToBackend(name, args);
306992
307053
  }
306993
- exports.executeBackendCallback = executeBackendCallback;
306994
307054
 
306995
307055
 
306996
307056
  /***/ }),
@@ -307242,7 +307302,7 @@ __webpack_require__.r(__webpack_exports__);
307242
307302
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
307243
307303
  * See LICENSE.md in the project root for license terms and full copyright notice.
307244
307304
  *--------------------------------------------------------------------------------------------*/
307245
- /* eslint-disable deprecation/deprecation */
307305
+ /* eslint-disable @typescript-eslint/no-deprecated */
307246
307306
  /** @packageDocumentation
307247
307307
  * @module UiItemsProvider
307248
307308
  */
@@ -307573,7 +307633,7 @@ __webpack_require__.r(__webpack_exports__);
307573
307633
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
307574
307634
  * See LICENSE.md in the project root for license terms and full copyright notice.
307575
307635
  *--------------------------------------------------------------------------------------------*/
307576
- /* eslint-disable deprecation/deprecation */
307636
+ /* eslint-disable @typescript-eslint/no-deprecated */
307577
307637
  /** @packageDocumentation
307578
307638
  * @module UiItemsProvider
307579
307639
  */
@@ -307819,14 +307879,14 @@ var BackstageItemType;
307819
307879
  * @public
307820
307880
  */
307821
307881
  const isActionItem = (item) => {
307822
- return item.execute !== undefined; // eslint-disable-line deprecation/deprecation
307882
+ return item.execute !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated
307823
307883
  };
307824
307884
  /** BackstageStageLauncher type guard.
307825
307885
  * @deprecated in 3.6. Use [isBackstageStageLauncher]($appui-react) instead.
307826
307886
  * @public
307827
307887
  */
307828
307888
  const isStageLauncher = (item) => {
307829
- return item.stageId !== undefined; // eslint-disable-line deprecation/deprecation
307889
+ return item.stageId !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated
307830
307890
  };
307831
307891
  /** Utilities for creating and maintaining backstage items
307832
307892
  * @deprecated in 3.6. Use [BackstageItemUtilities]($appui-react) instead.
@@ -308082,7 +308142,7 @@ var SpecialKey;
308082
308142
  * @public @deprecated in 4.3. Please use a custom implementation moving forward.
308083
308143
  */
308084
308144
  function isArrowKey(key) {
308085
- // eslint-disable-next-line deprecation/deprecation
308145
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
308086
308146
  return (key === SpecialKey.ArrowLeft || key === SpecialKey.ArrowRight || key === SpecialKey.ArrowUp || key === SpecialKey.ArrowDown);
308087
308147
  }
308088
308148
 
@@ -308127,7 +308187,7 @@ __webpack_require__.r(__webpack_exports__);
308127
308187
  /** @packageDocumentation
308128
308188
  * @module ContentView
308129
308189
  */
308130
- /* eslint-disable deprecation/deprecation */
308190
+ /* eslint-disable @typescript-eslint/no-deprecated */
308131
308191
  /**
308132
308192
  * Class that define Standard Content Layouts that can be used to specify how the content is arranged in a frontstage.
308133
308193
  * @public
@@ -309671,21 +309731,21 @@ var StatusBarLabelSide;
309671
309731
  * @public
309672
309732
  */
309673
309733
  const isAbstractStatusBarActionItem = (item) => {
309674
- return item.execute !== undefined; // eslint-disable-line deprecation/deprecation
309734
+ return item.execute !== undefined; // eslint-disable-line @typescript-eslint/no-deprecated
309675
309735
  };
309676
309736
  /** AbstractStatusBarLabelItem type guard.
309677
309737
  * @deprecated in 3.6. Use [isStatusBarLabelItem]($appui-react) instead.
309678
309738
  * @public
309679
309739
  */
309680
309740
  const isAbstractStatusBarLabelItem = (item) => {
309681
- return item.label !== undefined && item.execute === undefined; // eslint-disable-line deprecation/deprecation
309741
+ return item.label !== undefined && item.execute === undefined; // eslint-disable-line @typescript-eslint/no-deprecated
309682
309742
  };
309683
309743
  /** AbstractStatusBarCustomItem type guard.
309684
309744
  * @deprecated in 3.6. Use [isStatusBarCustomItem]($appui-react) instead.
309685
309745
  * @public
309686
309746
  */
309687
309747
  const isAbstractStatusBarCustomItem = (item) => {
309688
- return !!item.isCustom; // eslint-disable-line deprecation/deprecation
309748
+ return !!item.isCustom; // eslint-disable-line @typescript-eslint/no-deprecated
309689
309749
  };
309690
309750
  /** Helper class to create Abstract StatusBar Item definitions.
309691
309751
  * @deprecated in 3.6. Use [StatusBarItemUtilities]($appui-react) instead.
@@ -310205,7 +310265,7 @@ __webpack_require__.r(__webpack_exports__);
310205
310265
  /** @packageDocumentation
310206
310266
  * @module Utilities
310207
310267
  */
310208
- /* eslint-disable deprecation/deprecation */
310268
+ /* eslint-disable @typescript-eslint/no-deprecated */
310209
310269
  /** Creates an IconSpec with an SVG source and gets the SVG source from an IconSpec.
310210
310270
  * @public @deprecated in 4.3. AppUI libraries >= 4.7.x support loading SVGs sources without prefixes, eliminating the need for these utilities.
310211
310271
  */
@@ -310359,7 +310419,6 @@ __webpack_require__.r(__webpack_exports__);
310359
310419
  * @public
310360
310420
  * @deprecated in 4.2.x Use [[UiSyncEvent]] from @itwin/appui-react.
310361
310421
  */
310362
- // eslint-disable-next-line deprecation/deprecation
310363
310422
  class UiSyncEvent extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiEvent {
310364
310423
  }
310365
310424
  /** This class is used to send eventIds to interested UI components so the component can determine if it needs
@@ -310371,7 +310430,7 @@ class UiEventDispatcher {
310371
310430
  constructor() {
310372
310431
  this._eventIds = new Set();
310373
310432
  this._eventIdAdded = false;
310374
- // eslint-disable-next-line deprecation/deprecation
310433
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
310375
310434
  this._uiSyncEvent = new UiSyncEvent();
310376
310435
  this._timeoutPeriod = 100;
310377
310436
  this._secondaryTimeoutPeriod = this._timeoutPeriod / 2;
@@ -310400,7 +310459,7 @@ class UiEventDispatcher {
310400
310459
  return this._eventIds;
310401
310460
  }
310402
310461
  /** Return UiSyncEvent so callers can register an event callback. */
310403
- // eslint-disable-next-line deprecation/deprecation
310462
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
310404
310463
  get onSyncUiEvent() {
310405
310464
  return this._uiSyncEvent;
310406
310465
  }
@@ -321329,7 +321388,7 @@ function __disposeResources(env) {
321329
321388
  /***/ ((module) => {
321330
321389
 
321331
321390
  "use strict";
321332
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.31","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 webpackWorkers && npm run -s copy:workers","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 ES2020 --outDir lib/esm","clean":"rimraf 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:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/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-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run --coverage","test:debug":"vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 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:^4.10.0-dev.31","@itwin/core-bentley":"workspace:^4.10.0-dev.31","@itwin/core-common":"workspace:^4.10.0-dev.31","@itwin/core-geometry":"workspace:^4.10.0-dev.31","@itwin/core-orbitgt":"workspace:^4.10.0-dev.31","@itwin/core-quantity":"workspace:^4.10.0-dev.31"},"//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/eslint-plugin":"^4.0.2","@types/chai-as-promised":"^7","@vitest/browser":"^2.1.0","@vitest/coverage-v8":"^2.1.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","cpx2":"^3.0.0","eslint":"^8.56.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.3.3","typemoq":"^2.1.0","vitest":"^2.1.0","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","webpack":"^5.76.0"},"//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/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.2.5","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
321391
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.0-dev.33","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 webpackWorkers && npm run -s copy:workers","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 ES2020 --outDir lib/esm","clean":"rimraf 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:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/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-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","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run --coverage","test:debug":"vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 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:^4.10.0-dev.33","@itwin/core-bentley":"workspace:^4.10.0-dev.33","@itwin/core-common":"workspace:^4.10.0-dev.33","@itwin/core-geometry":"workspace:^4.10.0-dev.33","@itwin/core-orbitgt":"workspace:^4.10.0-dev.33","@itwin/core-quantity":"workspace:^4.10.0-dev.33"},"//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/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^2.1.0","@vitest/coverage-v8":"^2.1.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","cpx2":"^3.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^2.1.0","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","webpack":"^5.76.0"},"//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/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.2.5","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
321333
321392
 
321334
321393
  /***/ }),
321335
321394
 
@@ -321772,7 +321831,7 @@ describe("PresentationRpcInterface tests", () => {
321772
321831
  const key1 = { id: core_bentley_1.Id64.fromString("0x1"), className: "BisCore:Subject" };
321773
321832
  const key2 = { id: core_bentley_1.Id64.fromString("0x17"), className: "BisCore:SpatialCategory" };
321774
321833
  const keys = new presentation_common_1.KeySet([key1, key2]);
321775
- // eslint-disable-next-line deprecation/deprecation
321834
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
321776
321835
  const contentAndSize = await presentation_frontend_1.Presentation.presentation.getContentAndSize({
321777
321836
  imodel,
321778
321837
  rulesetOrId: createContentRuleset(),
@@ -321785,7 +321844,7 @@ describe("PresentationRpcInterface tests", () => {
321785
321844
  const key1 = { id: core_bentley_1.Id64.fromString("0x1"), className: "BisCore:Subject" };
321786
321845
  const key2 = { id: core_bentley_1.Id64.fromString("0x17"), className: "BisCore:SpatialCategory" };
321787
321846
  const keys = new presentation_common_1.KeySet([key1, key2]);
321788
- // eslint-disable-next-line deprecation/deprecation
321847
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
321789
321848
  const content = await presentation_frontend_1.Presentation.presentation.getContent({
321790
321849
  imodel,
321791
321850
  rulesetOrId: createContentRuleset(),
@@ -321932,9 +321991,8 @@ const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/
321932
321991
  const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
321933
321992
  const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@4.3.5_67wltvhdskk2oee2c3z2o4tfly/node_modules/@itwin/oidc-signin-tool/lib/cjs/frontend.js");
321934
321993
  const TestContext_1 = __webpack_require__(/*! ./setup/TestContext */ "./lib/frontend/setup/TestContext.js");
321935
- /* eslint-disable deprecation/deprecation */
321994
+ /* eslint-disable @typescript-eslint/no-deprecated */
321936
321995
  const expect = chai.expect;
321937
- // eslint-disable-next-line @typescript-eslint/no-var-requires
321938
321996
  __webpack_require__.g.btoa = (str) => {
321939
321997
  const buffer = buffer_1.Buffer.from(str, "binary");
321940
321998
  return buffer.toString("base64");
@@ -322240,7 +322298,6 @@ describe("Snapping", () => {
322240
322298
  closePoint: { x: 1, y: 2, z: 3 },
322241
322299
  worldToView: worldToView.toJSON(),
322242
322300
  };
322243
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
322244
322301
  const promise = core_common_1.IModelReadRpcInterface.getClient().requestSnap(iModel.getRpcProps(), id, snapProps);
322245
322302
  try {
322246
322303
  await core_common_1.IModelReadRpcInterface.getClient().cancelSnap(iModel.getRpcProps(), id);