dcmjs 0.50.3 → 0.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/dcmjs.js CHANGED
@@ -8027,7 +8027,7 @@
8027
8027
  /**
8028
8028
  * Consumes the already written or read data, up to the given offset.
8029
8029
  */
8030
- _createClass(SplitDataView, [{
8030
+ return _createClass(SplitDataView, [{
8031
8031
  key: "consume",
8032
8032
  value: function consume(offset) {
8033
8033
  this.consumeOffset = Math.max(offset, this.consumeOffset);
@@ -8265,61 +8265,69 @@
8265
8265
  return view.getUint32(offset - viewOffset, isLittleEndian);
8266
8266
  }
8267
8267
  }, {
8268
- key: "getFloat32",
8269
- value: function getFloat32(offset, isLittleEndian) {
8270
- var _this$findView4 = this.findView(offset, 4),
8268
+ key: "getBigUint64",
8269
+ value: function getBigUint64(offset, isLittleEndian) {
8270
+ var _this$findView4 = this.findView(offset, 8),
8271
8271
  view = _this$findView4.view,
8272
8272
  viewOffset = _this$findView4.viewOffset;
8273
+ return view.getBigUint64(offset - viewOffset, isLittleEndian);
8274
+ }
8275
+ }, {
8276
+ key: "getFloat32",
8277
+ value: function getFloat32(offset, isLittleEndian) {
8278
+ var _this$findView5 = this.findView(offset, 4),
8279
+ view = _this$findView5.view,
8280
+ viewOffset = _this$findView5.viewOffset;
8273
8281
  return view.getFloat32(offset - viewOffset, isLittleEndian);
8274
8282
  }
8275
8283
  }, {
8276
8284
  key: "getFloat64",
8277
8285
  value: function getFloat64(offset, isLittleEndian) {
8278
- var _this$findView5 = this.findView(offset, 8),
8279
- view = _this$findView5.view,
8280
- viewOffset = _this$findView5.viewOffset;
8286
+ var _this$findView6 = this.findView(offset, 8),
8287
+ view = _this$findView6.view,
8288
+ viewOffset = _this$findView6.viewOffset;
8281
8289
  return view.getFloat64(offset - viewOffset, isLittleEndian);
8282
8290
  }
8283
8291
  }, {
8284
8292
  key: "getInt8",
8285
8293
  value: function getInt8(offset) {
8286
- var _this$findView6 = this.findView(offset, 1),
8287
- view = _this$findView6.view,
8288
- viewOffset = _this$findView6.viewOffset;
8294
+ var _this$findView7 = this.findView(offset, 1),
8295
+ view = _this$findView7.view,
8296
+ viewOffset = _this$findView7.viewOffset;
8289
8297
  return view.getInt8(offset - viewOffset);
8290
8298
  }
8291
8299
  }, {
8292
8300
  key: "getInt16",
8293
8301
  value: function getInt16(offset, isLittleEndian) {
8294
- var _this$findView7 = this.findView(offset, 2),
8295
- view = _this$findView7.view,
8296
- viewOffset = _this$findView7.viewOffset;
8302
+ var _this$findView8 = this.findView(offset, 2),
8303
+ view = _this$findView8.view,
8304
+ viewOffset = _this$findView8.viewOffset;
8297
8305
  return view.getInt16(offset - viewOffset, isLittleEndian);
8298
8306
  }
8299
8307
  }, {
8300
8308
  key: "getInt32",
8301
8309
  value: function getInt32(offset, isLittleEndian) {
8302
- var _this$findView8 = this.findView(offset, 4),
8303
- view = _this$findView8.view,
8304
- viewOffset = _this$findView8.viewOffset;
8310
+ var _this$findView9 = this.findView(offset, 4),
8311
+ view = _this$findView9.view,
8312
+ viewOffset = _this$findView9.viewOffset;
8305
8313
  return view.getInt32(offset - viewOffset, isLittleEndian);
8306
8314
  }
8307
8315
  }, {
8308
8316
  key: "setUint8",
8309
8317
  value: function setUint8(offset, value) {
8310
- var _this$findView9 = this.findView(offset, 1),
8311
- view = _this$findView9.view,
8312
- viewOffset = _this$findView9.viewOffset;
8318
+ var _this$findView0 = this.findView(offset, 1),
8319
+ view = _this$findView0.view,
8320
+ viewOffset = _this$findView0.viewOffset;
8313
8321
  view.setUint8(offset - viewOffset, value);
8314
8322
  // Commit is unneeded since 1 byte will always be available
8315
8323
  }
8316
8324
  }, {
8317
8325
  key: "setUint16",
8318
8326
  value: function setUint16(offset, value, isLittleEndian) {
8319
- var _this$findView0 = this.findView(offset, 2),
8320
- view = _this$findView0.view,
8321
- viewOffset = _this$findView0.viewOffset,
8322
- writeCommit = _this$findView0.writeCommit;
8327
+ var _this$findView1 = this.findView(offset, 2),
8328
+ view = _this$findView1.view,
8329
+ viewOffset = _this$findView1.viewOffset,
8330
+ writeCommit = _this$findView1.writeCommit;
8323
8331
  view.setUint16(offset - viewOffset, value, isLittleEndian);
8324
8332
  if (writeCommit) {
8325
8333
  this.writeCommit(view, offset);
@@ -8328,22 +8336,34 @@
8328
8336
  }, {
8329
8337
  key: "setUint32",
8330
8338
  value: function setUint32(offset, value, isLittleEndian) {
8331
- var _this$findView1 = this.findView(offset, 4),
8332
- view = _this$findView1.view,
8333
- viewOffset = _this$findView1.viewOffset,
8334
- writeCommit = _this$findView1.writeCommit;
8339
+ var _this$findView10 = this.findView(offset, 4),
8340
+ view = _this$findView10.view,
8341
+ viewOffset = _this$findView10.viewOffset,
8342
+ writeCommit = _this$findView10.writeCommit;
8335
8343
  view.setUint32(offset - viewOffset, value, isLittleEndian);
8336
8344
  if (writeCommit) {
8337
8345
  this.writeCommit(view, offset);
8338
8346
  }
8339
8347
  }
8348
+ }, {
8349
+ key: "setBigUint64",
8350
+ value: function setBigUint64(offset, value, isLittleEndian) {
8351
+ var _this$findView11 = this.findView(offset, 8),
8352
+ view = _this$findView11.view,
8353
+ viewOffset = _this$findView11.viewOffset,
8354
+ writeCommit = _this$findView11.writeCommit;
8355
+ view.setBigUint64(offset - viewOffset, value, isLittleEndian);
8356
+ if (writeCommit) {
8357
+ this.writeCommit(view, offset);
8358
+ }
8359
+ }
8340
8360
  }, {
8341
8361
  key: "setFloat32",
8342
8362
  value: function setFloat32(offset, value, isLittleEndian) {
8343
- var _this$findView10 = this.findView(offset, 4),
8344
- view = _this$findView10.view,
8345
- viewOffset = _this$findView10.viewOffset,
8346
- writeCommit = _this$findView10.writeCommit;
8363
+ var _this$findView12 = this.findView(offset, 4),
8364
+ view = _this$findView12.view,
8365
+ viewOffset = _this$findView12.viewOffset,
8366
+ writeCommit = _this$findView12.writeCommit;
8347
8367
  view.setFloat32(offset - viewOffset, value, isLittleEndian);
8348
8368
  if (writeCommit) {
8349
8369
  this.writeCommit(view, offset);
@@ -8352,10 +8372,10 @@
8352
8372
  }, {
8353
8373
  key: "setFloat64",
8354
8374
  value: function setFloat64(offset, value, isLittleEndian) {
8355
- var _this$findView11 = this.findView(offset, 8),
8356
- view = _this$findView11.view,
8357
- viewOffset = _this$findView11.viewOffset,
8358
- writeCommit = _this$findView11.writeCommit;
8375
+ var _this$findView13 = this.findView(offset, 8),
8376
+ view = _this$findView13.view,
8377
+ viewOffset = _this$findView13.viewOffset,
8378
+ writeCommit = _this$findView13.writeCommit;
8359
8379
  view.setFloat64(offset - viewOffset, value, isLittleEndian);
8360
8380
  if (writeCommit) {
8361
8381
  this.writeCommit(view, offset);
@@ -8364,19 +8384,19 @@
8364
8384
  }, {
8365
8385
  key: "setInt8",
8366
8386
  value: function setInt8(offset, value) {
8367
- var _this$findView12 = this.findView(offset, 1),
8368
- view = _this$findView12.view,
8369
- viewOffset = _this$findView12.viewOffset;
8387
+ var _this$findView14 = this.findView(offset, 1),
8388
+ view = _this$findView14.view,
8389
+ viewOffset = _this$findView14.viewOffset;
8370
8390
  view.setInt8(offset - viewOffset, value);
8371
8391
  // Commit is unneeded since 1 byte will always be available
8372
8392
  }
8373
8393
  }, {
8374
8394
  key: "setInt16",
8375
8395
  value: function setInt16(offset, value, isLittleEndian) {
8376
- var _this$findView13 = this.findView(offset, 2),
8377
- view = _this$findView13.view,
8378
- viewOffset = _this$findView13.viewOffset,
8379
- writeCommit = _this$findView13.writeCommit;
8396
+ var _this$findView15 = this.findView(offset, 2),
8397
+ view = _this$findView15.view,
8398
+ viewOffset = _this$findView15.viewOffset,
8399
+ writeCommit = _this$findView15.writeCommit;
8380
8400
  view.setInt16(offset - viewOffset, value, isLittleEndian);
8381
8401
  if (writeCommit) {
8382
8402
  this.writeCommit(view, offset);
@@ -8385,10 +8405,10 @@
8385
8405
  }, {
8386
8406
  key: "setInt32",
8387
8407
  value: function setInt32(offset, value, isLittleEndian) {
8388
- var _this$findView14 = this.findView(offset, 4),
8389
- view = _this$findView14.view,
8390
- viewOffset = _this$findView14.viewOffset,
8391
- writeCommit = _this$findView14.writeCommit;
8408
+ var _this$findView16 = this.findView(offset, 4),
8409
+ view = _this$findView16.view,
8410
+ viewOffset = _this$findView16.viewOffset,
8411
+ writeCommit = _this$findView16.writeCommit;
8392
8412
  view.setInt32(offset - viewOffset, value, isLittleEndian);
8393
8413
  if (writeCommit) {
8394
8414
  this.writeCommit(view, offset);
@@ -8441,7 +8461,6 @@
8441
8461
  };
8442
8462
  }
8443
8463
  }]);
8444
- return SplitDataView;
8445
8464
  }();
8446
8465
 
8447
8466
  /**
@@ -8498,7 +8517,7 @@
8498
8517
  /**
8499
8518
  * Mark this stream as having finished being written or read from
8500
8519
  */
8501
- _createClass(BufferStream, [{
8520
+ return _createClass(BufferStream, [{
8502
8521
  key: "setComplete",
8503
8522
  value: function setComplete() {
8504
8523
  var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
@@ -8531,14 +8550,14 @@
8531
8550
  var bytes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1024;
8532
8551
  if (!this.isAvailable(bytes)) {
8533
8552
  return new Promise(function (resolve) {
8534
- var recheckAvailable = function recheckAvailable() {
8553
+ var _recheckAvailable = function recheckAvailable() {
8535
8554
  if (_this.isAvailable(bytes)) {
8536
8555
  resolve(true);
8537
8556
  return;
8538
8557
  }
8539
- _this.availableListeners.push(recheckAvailable);
8558
+ _this.availableListeners.push(_recheckAvailable);
8540
8559
  };
8541
- recheckAvailable();
8560
+ _recheckAvailable();
8542
8561
  });
8543
8562
  }
8544
8563
  return true;
@@ -8644,6 +8663,13 @@
8644
8663
  this.view.setInt32(this.offset, toInt(value), this.isLittleEndian);
8645
8664
  return this.increment(4);
8646
8665
  }
8666
+ }, {
8667
+ key: "writeBigUint64",
8668
+ value: function writeBigUint64(value) {
8669
+ this.checkSize(8);
8670
+ this.view.setBigUint64(this.offset, value, this.isLittleEndian);
8671
+ return this.increment(8);
8672
+ }
8647
8673
  }, {
8648
8674
  key: "writeFloat",
8649
8675
  value: function writeFloat(value) {
@@ -8679,6 +8705,13 @@
8679
8705
  }
8680
8706
  return this.increment(len);
8681
8707
  }
8708
+ }, {
8709
+ key: "readBigUint64",
8710
+ value: function readBigUint64() {
8711
+ var val = this.view.getBigUint64(this.offset, this.isLittleEndian);
8712
+ this.increment(8);
8713
+ return val;
8714
+ }
8682
8715
  }, {
8683
8716
  key: "readUint32",
8684
8717
  value: function readUint32() {
@@ -8846,64 +8879,64 @@
8846
8879
  key: "fromAsyncStream",
8847
8880
  value: (function () {
8848
8881
  var _fromAsyncStream = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(stream) {
8849
- var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk, ab;
8850
- return _regeneratorRuntime().wrap(function _callee$(_context) {
8882
+ var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk, ab, _t;
8883
+ return _regeneratorRuntime().wrap(function (_context) {
8851
8884
  while (1) switch (_context.prev = _context.next) {
8852
8885
  case 0:
8853
8886
  _iteratorAbruptCompletion = false;
8854
8887
  _didIteratorError = false;
8855
- _context.prev = 2;
8888
+ _context.prev = 1;
8856
8889
  _iterator = _asyncIterator(stream);
8857
- case 4:
8858
- _context.next = 6;
8890
+ case 2:
8891
+ _context.next = 3;
8859
8892
  return _iterator.next();
8860
- case 6:
8893
+ case 3:
8861
8894
  if (!(_iteratorAbruptCompletion = !(_step = _context.sent).done)) {
8862
- _context.next = 13;
8895
+ _context.next = 5;
8863
8896
  break;
8864
8897
  }
8865
8898
  chunk = _step.value;
8866
8899
  ab = chunk.buffer.slice(chunk.byteOffset, chunk.byteOffset + chunk.byteLength);
8867
8900
  this.addBuffer(ab);
8868
- case 10:
8901
+ case 4:
8869
8902
  _iteratorAbruptCompletion = false;
8870
- _context.next = 4;
8903
+ _context.next = 2;
8871
8904
  break;
8872
- case 13:
8873
- _context.next = 19;
8905
+ case 5:
8906
+ _context.next = 7;
8874
8907
  break;
8875
- case 15:
8876
- _context.prev = 15;
8877
- _context.t0 = _context["catch"](2);
8908
+ case 6:
8909
+ _context.prev = 6;
8910
+ _t = _context["catch"](1);
8878
8911
  _didIteratorError = true;
8879
- _iteratorError = _context.t0;
8880
- case 19:
8881
- _context.prev = 19;
8882
- _context.prev = 20;
8912
+ _iteratorError = _t;
8913
+ case 7:
8914
+ _context.prev = 7;
8915
+ _context.prev = 8;
8883
8916
  if (!(_iteratorAbruptCompletion && _iterator.return != null)) {
8884
- _context.next = 24;
8917
+ _context.next = 9;
8885
8918
  break;
8886
8919
  }
8887
- _context.next = 24;
8920
+ _context.next = 9;
8888
8921
  return _iterator.return();
8889
- case 24:
8890
- _context.prev = 24;
8922
+ case 9:
8923
+ _context.prev = 9;
8891
8924
  if (!_didIteratorError) {
8892
- _context.next = 27;
8925
+ _context.next = 10;
8893
8926
  break;
8894
8927
  }
8895
8928
  throw _iteratorError;
8896
- case 27:
8897
- return _context.finish(24);
8898
- case 28:
8899
- return _context.finish(19);
8900
- case 29:
8929
+ case 10:
8930
+ return _context.finish(9);
8931
+ case 11:
8932
+ return _context.finish(7);
8933
+ case 12:
8901
8934
  this.setComplete();
8902
- case 30:
8935
+ case 13:
8903
8936
  case "end":
8904
8937
  return _context.stop();
8905
8938
  }
8906
- }, _callee, this, [[2, 15, 19, 29], [20,, 24, 28]]);
8939
+ }, _callee, this, [[1, 6, 7, 12], [8,, 9, 11]]);
8907
8940
  }));
8908
8941
  function fromAsyncStream(_x) {
8909
8942
  return _fromAsyncStream.apply(this, arguments);
@@ -9020,10 +9053,8 @@
9020
9053
  return this.view.getBufferMemoryInfo(this.offset);
9021
9054
  }
9022
9055
  }]);
9023
- return BufferStream;
9024
9056
  }();
9025
- var ReadBufferStream = /*#__PURE__*/function (_BufferStream) {
9026
- _inherits(ReadBufferStream, _BufferStream);
9057
+ var ReadBufferStream = /*#__PURE__*/function (_BufferStream2) {
9027
9058
  function ReadBufferStream(buffer, littleEndian) {
9028
9059
  var _ref, _options$start;
9029
9060
  var _this2;
@@ -9051,7 +9082,8 @@
9051
9082
  _this2.endOffset = _this2.size;
9052
9083
  return _this2;
9053
9084
  }
9054
- _createClass(ReadBufferStream, [{
9085
+ _inherits(ReadBufferStream, _BufferStream2);
9086
+ return _createClass(ReadBufferStream, [{
9055
9087
  key: "setDecoder",
9056
9088
  value: function setDecoder(decoder) {
9057
9089
  this.decoder = decoder;
@@ -9143,19 +9175,17 @@
9143
9175
  throw new Error(stream, "concat not implemented");
9144
9176
  }
9145
9177
  }]);
9146
- return ReadBufferStream;
9147
9178
  }(BufferStream);
9148
9179
  var DeflatedReadBufferStream = /*#__PURE__*/function (_ReadBufferStream) {
9149
- _inherits(DeflatedReadBufferStream, _ReadBufferStream);
9150
9180
  function DeflatedReadBufferStream(stream, options) {
9151
9181
  _classCallCheck(this, DeflatedReadBufferStream);
9152
9182
  var inflatedBuffer = pako.inflateRaw(stream.getBuffer(stream.offset, stream.size));
9153
9183
  return _callSuper(this, DeflatedReadBufferStream, [inflatedBuffer.buffer, stream.littleEndian, options]);
9154
9184
  }
9185
+ _inherits(DeflatedReadBufferStream, _ReadBufferStream);
9155
9186
  return _createClass(DeflatedReadBufferStream);
9156
9187
  }(ReadBufferStream);
9157
- var WriteBufferStream = /*#__PURE__*/function (_BufferStream2) {
9158
- _inherits(WriteBufferStream, _BufferStream2);
9188
+ var WriteBufferStream = /*#__PURE__*/function (_BufferStream3) {
9159
9189
  function WriteBufferStream(defaultSize, littleEndian) {
9160
9190
  var _this3;
9161
9191
  _classCallCheck(this, WriteBufferStream);
@@ -9166,6 +9196,7 @@
9166
9196
  _this3.size = 0;
9167
9197
  return _this3;
9168
9198
  }
9199
+ _inherits(WriteBufferStream, _BufferStream3);
9169
9200
  return _createClass(WriteBufferStream);
9170
9201
  }(BufferStream);
9171
9202
 
@@ -9656,8 +9687,8 @@
9656
9687
  );
9657
9688
  }
9658
9689
  var DicomMessage$3, Tag$1, DicomMetaDictionary$1;
9659
- var binaryVRs = ["FL", "FD", "SL", "SS", "UL", "US", "AT"],
9660
- length32VRs = ["OB", "OW", "OF", "SQ", "UC", "UR", "UT", "UN", "OD"],
9690
+ var binaryVRs = ["FL", "FD", "SL", "SS", "UL", "US", "AT", "UV"],
9691
+ length32VRs = ["OB", "OW", "OF", "SQ", "UC", "UR", "UT", "UN", "OD", "UV"],
9661
9692
  singleVRs$1 = ["SQ", "OF", "OW", "OB", "UN"];
9662
9693
  var ValueRepresentation = /*#__PURE__*/function () {
9663
9694
  function ValueRepresentation(type) {
@@ -9669,7 +9700,7 @@
9669
9700
  this._isLength32 = length32VRs.indexOf(this.type) != -1;
9670
9701
  this._storeRaw = true;
9671
9702
  }
9672
- _createClass(ValueRepresentation, [{
9703
+ return _createClass(ValueRepresentation, [{
9673
9704
  key: "isBinary",
9674
9705
  value: function isBinary() {
9675
9706
  return this._isBinary;
@@ -9962,15 +9993,14 @@
9962
9993
  return new ParsedUnknownValue(type);
9963
9994
  }
9964
9995
  }]);
9965
- return ValueRepresentation;
9966
9996
  }();
9967
9997
  var AsciiStringRepresentation = /*#__PURE__*/function (_ValueRepresentation) {
9968
- _inherits(AsciiStringRepresentation, _ValueRepresentation);
9969
9998
  function AsciiStringRepresentation(type) {
9970
9999
  _classCallCheck(this, AsciiStringRepresentation);
9971
10000
  return _callSuper(this, AsciiStringRepresentation, [type]);
9972
10001
  }
9973
- _createClass(AsciiStringRepresentation, [{
10002
+ _inherits(AsciiStringRepresentation, _ValueRepresentation);
10003
+ return _createClass(AsciiStringRepresentation, [{
9974
10004
  key: "readBytes",
9975
10005
  value: function readBytes(stream, length) {
9976
10006
  return stream.readAsciiString(length);
@@ -9982,15 +10012,14 @@
9982
10012
  return _get(_getPrototypeOf(AsciiStringRepresentation.prototype), "writeBytes", this).call(this, stream, value, written, writeOptions);
9983
10013
  }
9984
10014
  }]);
9985
- return AsciiStringRepresentation;
9986
10015
  }(ValueRepresentation);
9987
10016
  var EncodedStringRepresentation = /*#__PURE__*/function (_ValueRepresentation2) {
9988
- _inherits(EncodedStringRepresentation, _ValueRepresentation2);
9989
10017
  function EncodedStringRepresentation(type) {
9990
10018
  _classCallCheck(this, EncodedStringRepresentation);
9991
10019
  return _callSuper(this, EncodedStringRepresentation, [type]);
9992
10020
  }
9993
- _createClass(EncodedStringRepresentation, [{
10021
+ _inherits(EncodedStringRepresentation, _ValueRepresentation2);
10022
+ return _createClass(EncodedStringRepresentation, [{
9994
10023
  key: "readBytes",
9995
10024
  value: function readBytes(stream, length) {
9996
10025
  return stream.readEncodedString(length);
@@ -10002,10 +10031,8 @@
10002
10031
  return _get(_getPrototypeOf(EncodedStringRepresentation.prototype), "writeBytes", this).call(this, stream, value, written, writeOptions);
10003
10032
  }
10004
10033
  }]);
10005
- return EncodedStringRepresentation;
10006
10034
  }(ValueRepresentation);
10007
10035
  var BinaryRepresentation = /*#__PURE__*/function (_ValueRepresentation3) {
10008
- _inherits(BinaryRepresentation, _ValueRepresentation3);
10009
10036
  function BinaryRepresentation(type) {
10010
10037
  var _this;
10011
10038
  _classCallCheck(this, BinaryRepresentation);
@@ -10013,7 +10040,8 @@
10013
10040
  _this._storeRaw = false;
10014
10041
  return _this;
10015
10042
  }
10016
- _createClass(BinaryRepresentation, [{
10043
+ _inherits(BinaryRepresentation, _ValueRepresentation3);
10044
+ return _createClass(BinaryRepresentation, [{
10017
10045
  key: "writeBytes",
10018
10046
  value: function writeBytes(stream, value, _syntax, isEncapsulated) {
10019
10047
  var writeOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
@@ -10206,10 +10234,8 @@
10206
10234
  }
10207
10235
  }
10208
10236
  }]);
10209
- return BinaryRepresentation;
10210
10237
  }(ValueRepresentation);
10211
10238
  var ApplicationEntity = /*#__PURE__*/function (_AsciiStringRepresent) {
10212
- _inherits(ApplicationEntity, _AsciiStringRepresent);
10213
10239
  function ApplicationEntity() {
10214
10240
  var _this2;
10215
10241
  _classCallCheck(this, ApplicationEntity);
@@ -10218,7 +10244,8 @@
10218
10244
  _this2.padByte = PADDING_SPACE;
10219
10245
  return _this2;
10220
10246
  }
10221
- _createClass(ApplicationEntity, [{
10247
+ _inherits(ApplicationEntity, _AsciiStringRepresent);
10248
+ return _createClass(ApplicationEntity, [{
10222
10249
  key: "readBytes",
10223
10250
  value: function readBytes(stream, length) {
10224
10251
  return stream.readAsciiString(length);
@@ -10229,10 +10256,8 @@
10229
10256
  return value.trim();
10230
10257
  }
10231
10258
  }]);
10232
- return ApplicationEntity;
10233
10259
  }(AsciiStringRepresentation);
10234
10260
  var CodeString = /*#__PURE__*/function (_AsciiStringRepresent2) {
10235
- _inherits(CodeString, _AsciiStringRepresent2);
10236
10261
  function CodeString() {
10237
10262
  var _this3;
10238
10263
  _classCallCheck(this, CodeString);
@@ -10241,7 +10266,8 @@
10241
10266
  _this3.padByte = PADDING_SPACE;
10242
10267
  return _this3;
10243
10268
  }
10244
- _createClass(CodeString, [{
10269
+ _inherits(CodeString, _AsciiStringRepresent2);
10270
+ return _createClass(CodeString, [{
10245
10271
  key: "readBytes",
10246
10272
  value: function readBytes(stream, length) {
10247
10273
  var BACKSLASH = String.fromCharCode(VM_DELIMITER);
@@ -10261,10 +10287,8 @@
10261
10287
  return trim(value);
10262
10288
  }
10263
10289
  }]);
10264
- return CodeString;
10265
10290
  }(AsciiStringRepresentation);
10266
10291
  var AgeString = /*#__PURE__*/function (_AsciiStringRepresent3) {
10267
- _inherits(AgeString, _AsciiStringRepresent3);
10268
10292
  function AgeString() {
10269
10293
  var _this4;
10270
10294
  _classCallCheck(this, AgeString);
@@ -10275,10 +10299,10 @@
10275
10299
  _this4.defaultValue = "";
10276
10300
  return _this4;
10277
10301
  }
10302
+ _inherits(AgeString, _AsciiStringRepresent3);
10278
10303
  return _createClass(AgeString);
10279
10304
  }(AsciiStringRepresentation);
10280
10305
  var AttributeTag = /*#__PURE__*/function (_ValueRepresentation4) {
10281
- _inherits(AttributeTag, _ValueRepresentation4);
10282
10306
  function AttributeTag() {
10283
10307
  var _this5;
10284
10308
  _classCallCheck(this, AttributeTag);
@@ -10289,7 +10313,8 @@
10289
10313
  _this5.fixed = true;
10290
10314
  return _this5;
10291
10315
  }
10292
- _createClass(AttributeTag, [{
10316
+ _inherits(AttributeTag, _ValueRepresentation4);
10317
+ return _createClass(AttributeTag, [{
10293
10318
  key: "readBytes",
10294
10319
  value: function readBytes(stream) {
10295
10320
  return Tag$1.readTag(stream).value;
@@ -10300,10 +10325,8 @@
10300
10325
  return _get(_getPrototypeOf(AttributeTag.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(AttributeTag.prototype), "write", this).call(this, stream, "TwoUint16s", value), writeOptions);
10301
10326
  }
10302
10327
  }]);
10303
- return AttributeTag;
10304
10328
  }(ValueRepresentation);
10305
10329
  var DateValue = /*#__PURE__*/function (_AsciiStringRepresent4) {
10306
- _inherits(DateValue, _AsciiStringRepresent4);
10307
10330
  function DateValue(value) {
10308
10331
  var _this6;
10309
10332
  _classCallCheck(this, DateValue);
@@ -10315,7 +10338,8 @@
10315
10338
  _this6.defaultValue = "";
10316
10339
  return _this6;
10317
10340
  }
10318
- _createClass(DateValue, [{
10341
+ _inherits(DateValue, _AsciiStringRepresent4);
10342
+ return _createClass(DateValue, [{
10319
10343
  key: "checkLength",
10320
10344
  value: function checkLength(value) {
10321
10345
  if (typeof value === "string" || value instanceof String) {
@@ -10325,15 +10349,14 @@
10325
10349
  return true;
10326
10350
  }
10327
10351
  }]);
10328
- return DateValue;
10329
10352
  }(AsciiStringRepresentation);
10330
10353
  var NumericStringRepresentation = /*#__PURE__*/function (_AsciiStringRepresent5) {
10331
- _inherits(NumericStringRepresentation, _AsciiStringRepresent5);
10332
10354
  function NumericStringRepresentation() {
10333
10355
  _classCallCheck(this, NumericStringRepresentation);
10334
10356
  return _callSuper(this, NumericStringRepresentation, arguments);
10335
10357
  }
10336
- _createClass(NumericStringRepresentation, [{
10358
+ _inherits(NumericStringRepresentation, _AsciiStringRepresent5);
10359
+ return _createClass(NumericStringRepresentation, [{
10337
10360
  key: "readBytes",
10338
10361
  value: function readBytes(stream, length) {
10339
10362
  var BACKSLASH = String.fromCharCode(VM_DELIMITER);
@@ -10341,10 +10364,8 @@
10341
10364
  return this.dropPadByte(numStr.split(BACKSLASH));
10342
10365
  }
10343
10366
  }]);
10344
- return NumericStringRepresentation;
10345
10367
  }(AsciiStringRepresentation);
10346
10368
  var DecimalString = /*#__PURE__*/function (_NumericStringReprese) {
10347
- _inherits(DecimalString, _NumericStringReprese);
10348
10369
  function DecimalString() {
10349
10370
  var _this7;
10350
10371
  _classCallCheck(this, DecimalString);
@@ -10353,7 +10374,8 @@
10353
10374
  _this7.padByte = PADDING_SPACE;
10354
10375
  return _this7;
10355
10376
  }
10356
- _createClass(DecimalString, [{
10377
+ _inherits(DecimalString, _NumericStringReprese);
10378
+ return _createClass(DecimalString, [{
10357
10379
  key: "applyFormatting",
10358
10380
  value: function applyFormatting(value) {
10359
10381
  var formatNumber = function formatNumber(numberStr) {
@@ -10410,10 +10432,8 @@
10410
10432
  return _get(_getPrototypeOf(DecimalString.prototype), "writeBytes", this).call(this, stream, val, writeOptions);
10411
10433
  }
10412
10434
  }]);
10413
- return DecimalString;
10414
10435
  }(NumericStringRepresentation);
10415
10436
  var DateTime = /*#__PURE__*/function (_AsciiStringRepresent6) {
10416
- _inherits(DateTime, _AsciiStringRepresent6);
10417
10437
  function DateTime() {
10418
10438
  var _this9;
10419
10439
  _classCallCheck(this, DateTime);
@@ -10423,7 +10443,8 @@
10423
10443
  _this9.padByte = PADDING_SPACE;
10424
10444
  return _this9;
10425
10445
  }
10426
- _createClass(DateTime, [{
10446
+ _inherits(DateTime, _AsciiStringRepresent6);
10447
+ return _createClass(DateTime, [{
10427
10448
  key: "checkLength",
10428
10449
  value: function checkLength(value) {
10429
10450
  if (typeof value === "string" || value instanceof String) {
@@ -10433,10 +10454,8 @@
10433
10454
  return true;
10434
10455
  }
10435
10456
  }]);
10436
- return DateTime;
10437
10457
  }(AsciiStringRepresentation);
10438
10458
  var FloatingPointSingle = /*#__PURE__*/function (_ValueRepresentation5) {
10439
- _inherits(FloatingPointSingle, _ValueRepresentation5);
10440
10459
  function FloatingPointSingle() {
10441
10460
  var _this0;
10442
10461
  _classCallCheck(this, FloatingPointSingle);
@@ -10447,7 +10466,8 @@
10447
10466
  _this0.defaultValue = 0.0;
10448
10467
  return _this0;
10449
10468
  }
10450
- _createClass(FloatingPointSingle, [{
10469
+ _inherits(FloatingPointSingle, _ValueRepresentation5);
10470
+ return _createClass(FloatingPointSingle, [{
10451
10471
  key: "readBytes",
10452
10472
  value: function readBytes(stream) {
10453
10473
  return stream.readFloat();
@@ -10463,10 +10483,8 @@
10463
10483
  return _get(_getPrototypeOf(FloatingPointSingle.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(FloatingPointSingle.prototype), "write", this).call(this, stream, "Float", value), writeOptions);
10464
10484
  }
10465
10485
  }]);
10466
- return FloatingPointSingle;
10467
10486
  }(ValueRepresentation);
10468
10487
  var FloatingPointDouble = /*#__PURE__*/function (_ValueRepresentation6) {
10469
- _inherits(FloatingPointDouble, _ValueRepresentation6);
10470
10488
  function FloatingPointDouble() {
10471
10489
  var _this1;
10472
10490
  _classCallCheck(this, FloatingPointDouble);
@@ -10477,7 +10495,8 @@
10477
10495
  _this1.defaultValue = 0.0;
10478
10496
  return _this1;
10479
10497
  }
10480
- _createClass(FloatingPointDouble, [{
10498
+ _inherits(FloatingPointDouble, _ValueRepresentation6);
10499
+ return _createClass(FloatingPointDouble, [{
10481
10500
  key: "readBytes",
10482
10501
  value: function readBytes(stream) {
10483
10502
  return stream.readDouble();
@@ -10493,10 +10512,8 @@
10493
10512
  return _get(_getPrototypeOf(FloatingPointDouble.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(FloatingPointDouble.prototype), "write", this).call(this, stream, "Double", value), writeOptions);
10494
10513
  }
10495
10514
  }]);
10496
- return FloatingPointDouble;
10497
10515
  }(ValueRepresentation);
10498
10516
  var IntegerString = /*#__PURE__*/function (_NumericStringReprese2) {
10499
- _inherits(IntegerString, _NumericStringReprese2);
10500
10517
  function IntegerString() {
10501
10518
  var _this10;
10502
10519
  _classCallCheck(this, IntegerString);
@@ -10505,7 +10522,8 @@
10505
10522
  _this10.padByte = PADDING_SPACE;
10506
10523
  return _this10;
10507
10524
  }
10508
- _createClass(IntegerString, [{
10525
+ _inherits(IntegerString, _NumericStringReprese2);
10526
+ return _createClass(IntegerString, [{
10509
10527
  key: "applyFormatting",
10510
10528
  value: function applyFormatting(value) {
10511
10529
  var formatNumber = function formatNumber(numberStr) {
@@ -10533,10 +10551,8 @@
10533
10551
  return _get(_getPrototypeOf(IntegerString.prototype), "writeBytes", this).call(this, stream, val, writeOptions);
10534
10552
  }
10535
10553
  }]);
10536
- return IntegerString;
10537
10554
  }(NumericStringRepresentation);
10538
10555
  var LongString = /*#__PURE__*/function (_EncodedStringReprese) {
10539
- _inherits(LongString, _EncodedStringReprese);
10540
10556
  function LongString() {
10541
10557
  var _this12;
10542
10558
  _classCallCheck(this, LongString);
@@ -10545,7 +10561,8 @@
10545
10561
  _this12.padByte = PADDING_SPACE;
10546
10562
  return _this12;
10547
10563
  }
10548
- _createClass(LongString, [{
10564
+ _inherits(LongString, _EncodedStringReprese);
10565
+ return _createClass(LongString, [{
10549
10566
  key: "readBytes",
10550
10567
  value: function readBytes(stream, length) {
10551
10568
  return stream.readEncodedString(length);
@@ -10556,10 +10573,8 @@
10556
10573
  return value.trim();
10557
10574
  }
10558
10575
  }]);
10559
- return LongString;
10560
10576
  }(EncodedStringRepresentation);
10561
10577
  var LongText = /*#__PURE__*/function (_EncodedStringReprese2) {
10562
- _inherits(LongText, _EncodedStringReprese2);
10563
10578
  function LongText() {
10564
10579
  var _this13;
10565
10580
  _classCallCheck(this, LongText);
@@ -10568,7 +10583,8 @@
10568
10583
  _this13.padByte = PADDING_SPACE;
10569
10584
  return _this13;
10570
10585
  }
10571
- _createClass(LongText, [{
10586
+ _inherits(LongText, _EncodedStringReprese2);
10587
+ return _createClass(LongText, [{
10572
10588
  key: "readBytes",
10573
10589
  value: function readBytes(stream, length) {
10574
10590
  return stream.readEncodedString(length);
@@ -10579,10 +10595,8 @@
10579
10595
  return rtrim(value);
10580
10596
  }
10581
10597
  }]);
10582
- return LongText;
10583
10598
  }(EncodedStringRepresentation);
10584
10599
  var PersonName = /*#__PURE__*/function (_EncodedStringReprese3) {
10585
- _inherits(PersonName, _EncodedStringReprese3);
10586
10600
  function PersonName() {
10587
10601
  var _this14;
10588
10602
  _classCallCheck(this, PersonName);
@@ -10591,7 +10605,8 @@
10591
10605
  _this14.padByte = PADDING_SPACE;
10592
10606
  return _this14;
10593
10607
  }
10594
- _createClass(PersonName, [{
10608
+ _inherits(PersonName, _EncodedStringReprese3);
10609
+ return _createClass(PersonName, [{
10595
10610
  key: "addValueAccessors",
10596
10611
  value:
10597
10612
  // Adds toJSON and toString accessors to normalize PersonName output; ie toJSON
@@ -10694,10 +10709,8 @@
10694
10709
  return true;
10695
10710
  }
10696
10711
  }]);
10697
- return PersonName;
10698
10712
  }(EncodedStringRepresentation);
10699
10713
  var ShortString = /*#__PURE__*/function (_EncodedStringReprese4) {
10700
- _inherits(ShortString, _EncodedStringReprese4);
10701
10714
  function ShortString() {
10702
10715
  var _this15;
10703
10716
  _classCallCheck(this, ShortString);
@@ -10706,7 +10719,8 @@
10706
10719
  _this15.padByte = PADDING_SPACE;
10707
10720
  return _this15;
10708
10721
  }
10709
- _createClass(ShortString, [{
10722
+ _inherits(ShortString, _EncodedStringReprese4);
10723
+ return _createClass(ShortString, [{
10710
10724
  key: "readBytes",
10711
10725
  value: function readBytes(stream, length) {
10712
10726
  return stream.readEncodedString(length);
@@ -10717,10 +10731,8 @@
10717
10731
  return value.trim();
10718
10732
  }
10719
10733
  }]);
10720
- return ShortString;
10721
10734
  }(EncodedStringRepresentation);
10722
10735
  var SignedLong = /*#__PURE__*/function (_ValueRepresentation7) {
10723
- _inherits(SignedLong, _ValueRepresentation7);
10724
10736
  function SignedLong() {
10725
10737
  var _this16;
10726
10738
  _classCallCheck(this, SignedLong);
@@ -10731,7 +10743,8 @@
10731
10743
  _this16.defaultValue = 0;
10732
10744
  return _this16;
10733
10745
  }
10734
- _createClass(SignedLong, [{
10746
+ _inherits(SignedLong, _ValueRepresentation7);
10747
+ return _createClass(SignedLong, [{
10735
10748
  key: "readBytes",
10736
10749
  value: function readBytes(stream) {
10737
10750
  return stream.readInt32();
@@ -10742,10 +10755,8 @@
10742
10755
  return _get(_getPrototypeOf(SignedLong.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(SignedLong.prototype), "write", this).call(this, stream, "Int32", value), writeOptions);
10743
10756
  }
10744
10757
  }]);
10745
- return SignedLong;
10746
10758
  }(ValueRepresentation);
10747
10759
  var SequenceOfItems = /*#__PURE__*/function (_ValueRepresentation8) {
10748
- _inherits(SequenceOfItems, _ValueRepresentation8);
10749
10760
  function SequenceOfItems() {
10750
10761
  var _this17;
10751
10762
  _classCallCheck(this, SequenceOfItems);
@@ -10756,7 +10767,8 @@
10756
10767
  _this17._storeRaw = false;
10757
10768
  return _this17;
10758
10769
  }
10759
- _createClass(SequenceOfItems, [{
10770
+ _inherits(SequenceOfItems, _ValueRepresentation8);
10771
+ return _createClass(SequenceOfItems, [{
10760
10772
  key: "readBytes",
10761
10773
  value: function readBytes(stream, sqlength, syntax) {
10762
10774
  if (sqlength == 0x0) {
@@ -10868,10 +10880,8 @@
10868
10880
  return _get(_getPrototypeOf(SequenceOfItems.prototype), "writeBytes", this).call(this, stream, value, [written], writeOptions);
10869
10881
  }
10870
10882
  }]);
10871
- return SequenceOfItems;
10872
10883
  }(ValueRepresentation);
10873
10884
  var SignedShort = /*#__PURE__*/function (_ValueRepresentation9) {
10874
- _inherits(SignedShort, _ValueRepresentation9);
10875
10885
  function SignedShort() {
10876
10886
  var _this18;
10877
10887
  _classCallCheck(this, SignedShort);
@@ -10883,7 +10893,8 @@
10883
10893
  _this18.defaultValue = 0;
10884
10894
  return _this18;
10885
10895
  }
10886
- _createClass(SignedShort, [{
10896
+ _inherits(SignedShort, _ValueRepresentation9);
10897
+ return _createClass(SignedShort, [{
10887
10898
  key: "readBytes",
10888
10899
  value: function readBytes(stream) {
10889
10900
  return stream.readInt16();
@@ -10894,10 +10905,8 @@
10894
10905
  return _get(_getPrototypeOf(SignedShort.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(SignedShort.prototype), "write", this).call(this, stream, "Int16", value), writeOptions);
10895
10906
  }
10896
10907
  }]);
10897
- return SignedShort;
10898
10908
  }(ValueRepresentation);
10899
10909
  var ShortText = /*#__PURE__*/function (_EncodedStringReprese5) {
10900
- _inherits(ShortText, _EncodedStringReprese5);
10901
10910
  function ShortText() {
10902
10911
  var _this19;
10903
10912
  _classCallCheck(this, ShortText);
@@ -10906,7 +10915,8 @@
10906
10915
  _this19.padByte = PADDING_SPACE;
10907
10916
  return _this19;
10908
10917
  }
10909
- _createClass(ShortText, [{
10918
+ _inherits(ShortText, _EncodedStringReprese5);
10919
+ return _createClass(ShortText, [{
10910
10920
  key: "readBytes",
10911
10921
  value: function readBytes(stream, length) {
10912
10922
  return stream.readEncodedString(length);
@@ -10917,10 +10927,8 @@
10917
10927
  return rtrim(value);
10918
10928
  }
10919
10929
  }]);
10920
- return ShortText;
10921
10930
  }(EncodedStringRepresentation);
10922
10931
  var TimeValue = /*#__PURE__*/function (_AsciiStringRepresent7) {
10923
- _inherits(TimeValue, _AsciiStringRepresent7);
10924
10932
  function TimeValue() {
10925
10933
  var _this20;
10926
10934
  _classCallCheck(this, TimeValue);
@@ -10930,7 +10938,8 @@
10930
10938
  _this20.padByte = PADDING_SPACE;
10931
10939
  return _this20;
10932
10940
  }
10933
- _createClass(TimeValue, [{
10941
+ _inherits(TimeValue, _AsciiStringRepresent7);
10942
+ return _createClass(TimeValue, [{
10934
10943
  key: "readBytes",
10935
10944
  value: function readBytes(stream, length) {
10936
10945
  return stream.readAsciiString(length);
@@ -10950,10 +10959,8 @@
10950
10959
  return true;
10951
10960
  }
10952
10961
  }]);
10953
- return TimeValue;
10954
10962
  }(AsciiStringRepresentation);
10955
10963
  var UnlimitedCharacters = /*#__PURE__*/function (_EncodedStringReprese6) {
10956
- _inherits(UnlimitedCharacters, _EncodedStringReprese6);
10957
10964
  function UnlimitedCharacters() {
10958
10965
  var _this21;
10959
10966
  _classCallCheck(this, UnlimitedCharacters);
@@ -10963,7 +10970,8 @@
10963
10970
  _this21.padByte = PADDING_SPACE;
10964
10971
  return _this21;
10965
10972
  }
10966
- _createClass(UnlimitedCharacters, [{
10973
+ _inherits(UnlimitedCharacters, _EncodedStringReprese6);
10974
+ return _createClass(UnlimitedCharacters, [{
10967
10975
  key: "readBytes",
10968
10976
  value: function readBytes(stream, length) {
10969
10977
  return stream.readEncodedString(length);
@@ -10974,10 +10982,8 @@
10974
10982
  return rtrim(value);
10975
10983
  }
10976
10984
  }]);
10977
- return UnlimitedCharacters;
10978
10985
  }(EncodedStringRepresentation);
10979
10986
  var UnlimitedText = /*#__PURE__*/function (_EncodedStringReprese7) {
10980
- _inherits(UnlimitedText, _EncodedStringReprese7);
10981
10987
  function UnlimitedText() {
10982
10988
  var _this22;
10983
10989
  _classCallCheck(this, UnlimitedText);
@@ -10986,7 +10992,8 @@
10986
10992
  _this22.padByte = PADDING_SPACE;
10987
10993
  return _this22;
10988
10994
  }
10989
- _createClass(UnlimitedText, [{
10995
+ _inherits(UnlimitedText, _EncodedStringReprese7);
10996
+ return _createClass(UnlimitedText, [{
10990
10997
  key: "readBytes",
10991
10998
  value: function readBytes(stream, length) {
10992
10999
  return stream.readEncodedString(length);
@@ -10997,10 +11004,8 @@
10997
11004
  return rtrim(value);
10998
11005
  }
10999
11006
  }]);
11000
- return UnlimitedText;
11001
11007
  }(EncodedStringRepresentation);
11002
11008
  var UnsignedShort = /*#__PURE__*/function (_ValueRepresentation0) {
11003
- _inherits(UnsignedShort, _ValueRepresentation0);
11004
11009
  function UnsignedShort() {
11005
11010
  var _this23;
11006
11011
  _classCallCheck(this, UnsignedShort);
@@ -11011,7 +11016,8 @@
11011
11016
  _this23.defaultValue = 0;
11012
11017
  return _this23;
11013
11018
  }
11014
- _createClass(UnsignedShort, [{
11019
+ _inherits(UnsignedShort, _ValueRepresentation0);
11020
+ return _createClass(UnsignedShort, [{
11015
11021
  key: "readBytes",
11016
11022
  value: function readBytes(stream) {
11017
11023
  return stream.readUint16();
@@ -11022,10 +11028,8 @@
11022
11028
  return _get(_getPrototypeOf(UnsignedShort.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(UnsignedShort.prototype), "write", this).call(this, stream, "Uint16", value), writeOptions);
11023
11029
  }
11024
11030
  }]);
11025
- return UnsignedShort;
11026
11031
  }(ValueRepresentation);
11027
11032
  var UnsignedLong = /*#__PURE__*/function (_ValueRepresentation1) {
11028
- _inherits(UnsignedLong, _ValueRepresentation1);
11029
11033
  function UnsignedLong() {
11030
11034
  var _this24;
11031
11035
  _classCallCheck(this, UnsignedLong);
@@ -11036,7 +11040,8 @@
11036
11040
  _this24.defaultValue = 0;
11037
11041
  return _this24;
11038
11042
  }
11039
- _createClass(UnsignedLong, [{
11043
+ _inherits(UnsignedLong, _ValueRepresentation1);
11044
+ return _createClass(UnsignedLong, [{
11040
11045
  key: "readBytes",
11041
11046
  value: function readBytes(stream) {
11042
11047
  return stream.readUint32();
@@ -11047,19 +11052,42 @@
11047
11052
  return _get(_getPrototypeOf(UnsignedLong.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(UnsignedLong.prototype), "write", this).call(this, stream, "Uint32", value), writeOptions);
11048
11053
  }
11049
11054
  }]);
11050
- return UnsignedLong;
11051
11055
  }(ValueRepresentation);
11052
- var UniqueIdentifier = /*#__PURE__*/function (_AsciiStringRepresent8) {
11053
- _inherits(UniqueIdentifier, _AsciiStringRepresent8);
11054
- function UniqueIdentifier() {
11056
+ var Unsigned64BitVeryLong = /*#__PURE__*/function (_ValueRepresentation10) {
11057
+ function Unsigned64BitVeryLong() {
11055
11058
  var _this25;
11056
- _classCallCheck(this, UniqueIdentifier);
11057
- _this25 = _callSuper(this, UniqueIdentifier, ["UI"]);
11058
- _this25.maxLength = 64;
11059
+ _classCallCheck(this, Unsigned64BitVeryLong);
11060
+ _this25 = _callSuper(this, Unsigned64BitVeryLong, ["UV"]);
11061
+ _this25.maxLength = 8;
11059
11062
  _this25.padByte = PADDING_NULL;
11063
+ _this25.fixed = true;
11064
+ _this25.defaultValue = 0;
11060
11065
  return _this25;
11061
11066
  }
11062
- _createClass(UniqueIdentifier, [{
11067
+ _inherits(Unsigned64BitVeryLong, _ValueRepresentation10);
11068
+ return _createClass(Unsigned64BitVeryLong, [{
11069
+ key: "readBytes",
11070
+ value: function readBytes(stream) {
11071
+ return stream.readBigUint64();
11072
+ }
11073
+ }, {
11074
+ key: "writeBytes",
11075
+ value: function writeBytes(stream, value, writeOptions) {
11076
+ return _get(_getPrototypeOf(Unsigned64BitVeryLong.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(Unsigned64BitVeryLong.prototype), "write", this).call(this, stream, "BigUint64", value), writeOptions);
11077
+ }
11078
+ }]);
11079
+ }(ValueRepresentation);
11080
+ var UniqueIdentifier = /*#__PURE__*/function (_AsciiStringRepresent8) {
11081
+ function UniqueIdentifier() {
11082
+ var _this26;
11083
+ _classCallCheck(this, UniqueIdentifier);
11084
+ _this26 = _callSuper(this, UniqueIdentifier, ["UI"]);
11085
+ _this26.maxLength = 64;
11086
+ _this26.padByte = PADDING_NULL;
11087
+ return _this26;
11088
+ }
11089
+ _inherits(UniqueIdentifier, _AsciiStringRepresent8);
11090
+ return _createClass(UniqueIdentifier, [{
11063
11091
  key: "readBytes",
11064
11092
  value: function readBytes(stream, length) {
11065
11093
  var result = this.readPaddedAsciiString(stream, length);
@@ -11091,55 +11119,53 @@
11091
11119
  return removeInvalidUidChars(value);
11092
11120
  }
11093
11121
  }]);
11094
- return UniqueIdentifier;
11095
11122
  }(AsciiStringRepresentation);
11096
11123
  var UniversalResource = /*#__PURE__*/function (_AsciiStringRepresent9) {
11097
- _inherits(UniversalResource, _AsciiStringRepresent9);
11098
11124
  function UniversalResource() {
11099
- var _this26;
11125
+ var _this27;
11100
11126
  _classCallCheck(this, UniversalResource);
11101
- _this26 = _callSuper(this, UniversalResource, ["UR"]);
11102
- _this26.maxLength = null;
11103
- _this26.padByte = PADDING_SPACE;
11104
- return _this26;
11127
+ _this27 = _callSuper(this, UniversalResource, ["UR"]);
11128
+ _this27.maxLength = null;
11129
+ _this27.padByte = PADDING_SPACE;
11130
+ return _this27;
11105
11131
  }
11106
- _createClass(UniversalResource, [{
11132
+ _inherits(UniversalResource, _AsciiStringRepresent9);
11133
+ return _createClass(UniversalResource, [{
11107
11134
  key: "readBytes",
11108
11135
  value: function readBytes(stream, length) {
11109
11136
  return stream.readAsciiString(length);
11110
11137
  }
11111
11138
  }]);
11112
- return UniversalResource;
11113
11139
  }(AsciiStringRepresentation);
11114
11140
  var UnknownValue = /*#__PURE__*/function (_BinaryRepresentation) {
11115
- _inherits(UnknownValue, _BinaryRepresentation);
11116
11141
  function UnknownValue() {
11117
- var _this27;
11142
+ var _this28;
11118
11143
  _classCallCheck(this, UnknownValue);
11119
- _this27 = _callSuper(this, UnknownValue, ["UN"]);
11120
- _this27.maxLength = null;
11121
- _this27.padByte = PADDING_NULL;
11122
- _this27.noMultiple = true;
11123
- return _this27;
11144
+ _this28 = _callSuper(this, UnknownValue, ["UN"]);
11145
+ _this28.maxLength = null;
11146
+ _this28.padByte = PADDING_NULL;
11147
+ _this28.noMultiple = true;
11148
+ return _this28;
11124
11149
  }
11150
+ _inherits(UnknownValue, _BinaryRepresentation);
11125
11151
  return _createClass(UnknownValue);
11126
11152
  }(BinaryRepresentation);
11127
11153
  var ParsedUnknownValue = /*#__PURE__*/function (_BinaryRepresentation2) {
11128
- _inherits(ParsedUnknownValue, _BinaryRepresentation2);
11129
11154
  function ParsedUnknownValue(vr) {
11130
- var _this28;
11155
+ var _this29;
11131
11156
  _classCallCheck(this, ParsedUnknownValue);
11132
- _this28 = _callSuper(this, ParsedUnknownValue, [vr]);
11133
- _this28.maxLength = null;
11134
- _this28.padByte = 0;
11135
- _this28.noMultiple = true;
11136
- _this28._isBinary = true;
11137
- _this28._allowMultiple = false;
11138
- _this28._isLength32 = true;
11139
- _this28._storeRaw = true;
11140
- return _this28;
11157
+ _this29 = _callSuper(this, ParsedUnknownValue, [vr]);
11158
+ _this29.maxLength = null;
11159
+ _this29.padByte = 0;
11160
+ _this29.noMultiple = true;
11161
+ _this29._isBinary = true;
11162
+ _this29._allowMultiple = false;
11163
+ _this29._isLength32 = true;
11164
+ _this29._storeRaw = true;
11165
+ return _this29;
11141
11166
  }
11142
- _createClass(ParsedUnknownValue, [{
11167
+ _inherits(ParsedUnknownValue, _BinaryRepresentation2);
11168
+ return _createClass(ParsedUnknownValue, [{
11143
11169
  key: "read",
11144
11170
  value: function read(stream, length, syntax, readOptions) {
11145
11171
  var arrayBuffer = this.readBytes(stream, length, syntax)[0];
@@ -11166,58 +11192,57 @@
11166
11192
  }
11167
11193
  }
11168
11194
  }]);
11169
- return ParsedUnknownValue;
11170
11195
  }(BinaryRepresentation);
11171
11196
  var OtherWordString = /*#__PURE__*/function (_BinaryRepresentation3) {
11172
- _inherits(OtherWordString, _BinaryRepresentation3);
11173
11197
  function OtherWordString() {
11174
- var _this29;
11175
- _classCallCheck(this, OtherWordString);
11176
- _this29 = _callSuper(this, OtherWordString, ["OW"]);
11177
- _this29.maxLength = null;
11178
- _this29.padByte = PADDING_NULL;
11179
- _this29.noMultiple = true;
11180
- return _this29;
11181
- }
11182
- return _createClass(OtherWordString);
11183
- }(BinaryRepresentation);
11184
- var OtherByteString = /*#__PURE__*/function (_BinaryRepresentation4) {
11185
- _inherits(OtherByteString, _BinaryRepresentation4);
11186
- function OtherByteString() {
11187
11198
  var _this30;
11188
- _classCallCheck(this, OtherByteString);
11189
- _this30 = _callSuper(this, OtherByteString, ["OB"]);
11199
+ _classCallCheck(this, OtherWordString);
11200
+ _this30 = _callSuper(this, OtherWordString, ["OW"]);
11190
11201
  _this30.maxLength = null;
11191
11202
  _this30.padByte = PADDING_NULL;
11192
11203
  _this30.noMultiple = true;
11193
11204
  return _this30;
11194
11205
  }
11195
- return _createClass(OtherByteString);
11206
+ _inherits(OtherWordString, _BinaryRepresentation3);
11207
+ return _createClass(OtherWordString);
11196
11208
  }(BinaryRepresentation);
11197
- var OtherDoubleString = /*#__PURE__*/function (_BinaryRepresentation5) {
11198
- _inherits(OtherDoubleString, _BinaryRepresentation5);
11199
- function OtherDoubleString() {
11209
+ var OtherByteString = /*#__PURE__*/function (_BinaryRepresentation4) {
11210
+ function OtherByteString() {
11200
11211
  var _this31;
11201
- _classCallCheck(this, OtherDoubleString);
11202
- _this31 = _callSuper(this, OtherDoubleString, ["OD"]);
11212
+ _classCallCheck(this, OtherByteString);
11213
+ _this31 = _callSuper(this, OtherByteString, ["OB"]);
11203
11214
  _this31.maxLength = null;
11204
11215
  _this31.padByte = PADDING_NULL;
11205
11216
  _this31.noMultiple = true;
11206
11217
  return _this31;
11207
11218
  }
11208
- return _createClass(OtherDoubleString);
11219
+ _inherits(OtherByteString, _BinaryRepresentation4);
11220
+ return _createClass(OtherByteString);
11209
11221
  }(BinaryRepresentation);
11210
- var OtherFloatString = /*#__PURE__*/function (_BinaryRepresentation6) {
11211
- _inherits(OtherFloatString, _BinaryRepresentation6);
11212
- function OtherFloatString() {
11222
+ var OtherDoubleString = /*#__PURE__*/function (_BinaryRepresentation5) {
11223
+ function OtherDoubleString() {
11213
11224
  var _this32;
11214
- _classCallCheck(this, OtherFloatString);
11215
- _this32 = _callSuper(this, OtherFloatString, ["OF"]);
11225
+ _classCallCheck(this, OtherDoubleString);
11226
+ _this32 = _callSuper(this, OtherDoubleString, ["OD"]);
11216
11227
  _this32.maxLength = null;
11217
11228
  _this32.padByte = PADDING_NULL;
11218
11229
  _this32.noMultiple = true;
11219
11230
  return _this32;
11220
11231
  }
11232
+ _inherits(OtherDoubleString, _BinaryRepresentation5);
11233
+ return _createClass(OtherDoubleString);
11234
+ }(BinaryRepresentation);
11235
+ var OtherFloatString = /*#__PURE__*/function (_BinaryRepresentation6) {
11236
+ function OtherFloatString() {
11237
+ var _this33;
11238
+ _classCallCheck(this, OtherFloatString);
11239
+ _this33 = _callSuper(this, OtherFloatString, ["OF"]);
11240
+ _this33.maxLength = null;
11241
+ _this33.padByte = PADDING_NULL;
11242
+ _this33.noMultiple = true;
11243
+ return _this33;
11244
+ }
11245
+ _inherits(OtherFloatString, _BinaryRepresentation6);
11221
11246
  return _createClass(OtherFloatString);
11222
11247
  }(BinaryRepresentation); // these VR instances are precreate and are reused for each requested vr/tag
11223
11248
  var VRinstances = {
@@ -11250,7 +11275,8 @@
11250
11275
  UN: new UnknownValue(),
11251
11276
  UR: new UniversalResource(),
11252
11277
  US: new UnsignedShort(),
11253
- UT: new UnlimitedText()
11278
+ UT: new UnlimitedText(),
11279
+ UV: new Unsigned64BitVeryLong()
11254
11280
  };
11255
11281
 
11256
11282
  var EXPLICIT_LITTLE_ENDIAN = "1.2.840.10008.1.2.1";
@@ -11261,7 +11287,7 @@
11261
11287
  this.meta = meta;
11262
11288
  this.dict = {};
11263
11289
  }
11264
- _createClass(DicomDict, [{
11290
+ return _createClass(DicomDict, [{
11265
11291
  key: "upsertTag",
11266
11292
  value: function upsertTag(tag, vr, values) {
11267
11293
  if (this.dict[tag]) {
@@ -11306,7 +11332,6 @@
11306
11332
  DicomMessage$2 = dicomMessageClass;
11307
11333
  }
11308
11334
  }]);
11309
- return DicomDict;
11310
11335
  }();
11311
11336
 
11312
11337
  // AUTO-GENERATED from dictionary.js. Exact (GGGG,EEEE) tags only.
@@ -12145,7 +12170,7 @@
12145
12170
  this.customDictionary = customDictionary;
12146
12171
  this.customNameMap = DicomMetaDictionary._generateCustomNameMap(customDictionary);
12147
12172
  }
12148
- _createClass(DicomMetaDictionary, [{
12173
+ return _createClass(DicomMetaDictionary, [{
12149
12174
  key: "denaturalizeDataset",
12150
12175
  value:
12151
12176
  // denaturalizes dataset using custom dictionary and nameMap
@@ -12491,7 +12516,6 @@
12491
12516
  });
12492
12517
  }
12493
12518
  }]);
12494
- return DicomMetaDictionary;
12495
12519
  }();
12496
12520
 
12497
12521
  // Subset of those listed at:
@@ -12547,7 +12571,7 @@
12547
12571
  }
12548
12572
 
12549
12573
  /** Helper method to avoid circular dependencies */
12550
- _createClass(Tag, [{
12574
+ return _createClass(Tag, [{
12551
12575
  key: "toString",
12552
12576
  value: function toString() {
12553
12577
  return "(" + paddingLeft("0000", this.group().toString(16).toUpperCase()) + "," + paddingLeft("0000", this.element().toString(16).toUpperCase()) + ")";
@@ -12716,7 +12740,6 @@
12716
12740
  throw Error("Invalid tag in sequence");
12717
12741
  }
12718
12742
  }]);
12719
- return Tag;
12720
12743
  }();
12721
12744
  ValueRepresentation.setTagClass(Tag);
12722
12745
 
@@ -12759,7 +12782,7 @@
12759
12782
  function DicomMessage() {
12760
12783
  _classCallCheck(this, DicomMessage);
12761
12784
  }
12762
- _createClass(DicomMessage, null, [{
12785
+ return _createClass(DicomMessage, null, [{
12763
12786
  key: "read",
12764
12787
  value: function read(bufferStream, syntax, ignoreErrors) {
12765
12788
  var untilTag = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
@@ -13080,7 +13103,6 @@
13080
13103
  return DicomMetaDictionary.dictionary[tag.toString()];
13081
13104
  }
13082
13105
  }]);
13083
- return DicomMessage;
13084
13106
  }();
13085
13107
 
13086
13108
  // AUTO-GENERATED from dictionary.mjs by generate/pack_private.mjs
@@ -13189,7 +13211,7 @@
13189
13211
  this.rootURL = options.rootURL;
13190
13212
  this.progressCallback = options.progressCallback;
13191
13213
  }
13192
- _createClass(DICOMWEB, [{
13214
+ return _createClass(DICOMWEB, [{
13193
13215
  key: "request",
13194
13216
  value: function request(endpoint) {
13195
13217
  var parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -13299,7 +13321,6 @@
13299
13321
  return array[Math.floor(Math.random() * array.length)];
13300
13322
  }
13301
13323
  }]);
13302
- return DICOMWEB;
13303
13324
  }();
13304
13325
 
13305
13326
  //
@@ -13319,7 +13340,7 @@
13319
13340
  function Colors() {
13320
13341
  _classCallCheck(this, Colors);
13321
13342
  }
13322
- _createClass(Colors, null, [{
13343
+ return _createClass(Colors, null, [{
13323
13344
  key: "d65WhitePointXYZ",
13324
13345
  value: function d65WhitePointXYZ() {
13325
13346
  // white points of D65 light point (CIELAB standard white point)
@@ -13450,7 +13471,6 @@
13450
13471
  }
13451
13472
  }
13452
13473
  }]);
13453
- return Colors;
13454
13474
  }();
13455
13475
 
13456
13476
  /**
@@ -13598,7 +13618,7 @@
13598
13618
  * @param {Object} options.information - Optional information to pass to the filters
13599
13619
  * @returns {void}
13600
13620
  */
13601
- _createClass(DicomMetadataListener, [{
13621
+ return _createClass(DicomMetadataListener, [{
13602
13622
  key: "setDrain",
13603
13623
  value:
13604
13624
  /**
@@ -13798,7 +13818,6 @@
13798
13818
  return undefined;
13799
13819
  }
13800
13820
  }]);
13801
- return DicomMetadataListener;
13802
13821
  }();
13803
13822
 
13804
13823
  var readLog = log.getLogger("AsyncDicomReader");
@@ -13826,7 +13845,7 @@
13826
13845
  }
13827
13846
 
13828
13847
  /** Sentinel returned when stream is Part 10 but has no preamble (starts with meta). */
13829
- _createClass(AsyncDicomReader, [{
13848
+ return _createClass(AsyncDicomReader, [{
13830
13849
  key: "readPreamble",
13831
13850
  value: (
13832
13851
  /**
@@ -13842,40 +13861,40 @@
13842
13861
  function () {
13843
13862
  var _readPreamble = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
13844
13863
  var stream, group;
13845
- return _regeneratorRuntime().wrap(function _callee$(_context) {
13864
+ return _regeneratorRuntime().wrap(function (_context) {
13846
13865
  while (1) switch (_context.prev = _context.next) {
13847
13866
  case 0:
13848
13867
  stream = this.stream;
13849
- _context.next = 3;
13868
+ _context.next = 1;
13850
13869
  return stream.ensureAvailable();
13851
- case 3:
13870
+ case 1:
13852
13871
  stream.reset();
13853
13872
  stream.increment(128);
13854
13873
  if (!(stream.readAsciiString(4) !== "DICM")) {
13855
- _context.next = 18;
13874
+ _context.next = 5;
13856
13875
  break;
13857
13876
  }
13858
13877
  stream.reset();
13859
- _context.next = 9;
13878
+ _context.next = 2;
13860
13879
  return stream.ensureAvailable(4);
13861
- case 9:
13880
+ case 2:
13862
13881
  stream.setEndian(true); // Part 10 meta and tag are little-endian
13863
13882
  group = stream.readUint16();
13864
13883
  stream.readUint16(); // element
13865
13884
  stream.reset();
13866
13885
  if (!(group === 0x0002)) {
13867
- _context.next = 15;
13886
+ _context.next = 3;
13868
13887
  break;
13869
13888
  }
13870
13889
  return _context.abrupt("return", AsyncDicomReader.PART10_NO_PREAMBLE);
13871
- case 15:
13872
- _context.next = 17;
13890
+ case 3:
13891
+ _context.next = 4;
13873
13892
  return this.detectRawEncoding();
13874
- case 17:
13893
+ case 4:
13875
13894
  return _context.abrupt("return", false);
13876
- case 18:
13895
+ case 5:
13877
13896
  return _context.abrupt("return", true);
13878
- case 19:
13897
+ case 6:
13879
13898
  case "end":
13880
13899
  return _context.stop();
13881
13900
  }
@@ -13901,13 +13920,13 @@
13901
13920
  value: (function () {
13902
13921
  var _detectRawEncoding = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
13903
13922
  var stream, group, byte4, byte5, potentialLength, isASCIILetter, vrCandidate;
13904
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
13923
+ return _regeneratorRuntime().wrap(function (_context2) {
13905
13924
  while (1) switch (_context2.prev = _context2.next) {
13906
13925
  case 0:
13907
13926
  stream = this.stream;
13908
- _context2.next = 3;
13927
+ _context2.next = 1;
13909
13928
  return stream.ensureAvailable(8);
13910
- case 3:
13929
+ case 1:
13911
13930
  // Need at least 8 bytes (tag + length) to detect
13912
13931
 
13913
13932
  stream.reset();
@@ -13919,18 +13938,18 @@
13919
13938
 
13920
13939
  // Part 10 meta (group 0002) is handled in readPreamble; raw dataset can start with 0008, 0028, etc.
13921
13940
  if (!(group === 0x0002)) {
13922
- _context2.next = 9;
13941
+ _context2.next = 2;
13923
13942
  break;
13924
13943
  }
13925
13944
  throw new Error("Invalid DICOM file: stream starts with meta (0002,xxxx) but was not handled as Part 10");
13926
- case 9:
13945
+ case 2:
13927
13946
  // Check if bytes 4-5 (after tag) look like a valid VR (2 ASCII letters)
13928
13947
  byte4 = stream.peekUint8(0);
13929
13948
  byte5 = stream.peekUint8(1); // If we're going to assume LEI, check the length is even (DICOM requirement)
13930
13949
  // Read the length value (4 bytes after tag in LEI format) as little-endian uint32
13931
- _context2.next = 13;
13950
+ _context2.next = 3;
13932
13951
  return stream.ensureAvailable(8);
13933
- case 13:
13952
+ case 3:
13934
13953
  // Need at least 8 bytes (tag + length)
13935
13954
  potentialLength = stream.view.getUint32(stream.offset, true); // true = little endian
13936
13955
  isASCIILetter = function isASCIILetter(byte) {
@@ -13939,42 +13958,42 @@
13939
13958
  byte >= 0x61 && byte <= 0x7a; // a-z
13940
13959
  };
13941
13960
  if (!(isASCIILetter(byte4) && isASCIILetter(byte5))) {
13942
- _context2.next = 26;
13961
+ _context2.next = 7;
13943
13962
  break;
13944
13963
  }
13945
13964
  // Check if it's a valid VR code
13946
13965
  vrCandidate = String.fromCharCode(byte4, byte5).toUpperCase();
13947
13966
  if (!VALID_VRS.has(vrCandidate)) {
13948
- _context2.next = 21;
13967
+ _context2.next = 4;
13949
13968
  break;
13950
13969
  }
13951
13970
  // Valid VR detected - this is LEE (Explicit Little Endian)
13952
13971
  this.syntax = EXPLICIT_LITTLE_ENDIAN$1;
13953
- _context2.next = 24;
13972
+ _context2.next = 6;
13954
13973
  break;
13955
- case 21:
13974
+ case 4:
13956
13975
  if (!(potentialLength % 2 !== 0)) {
13957
- _context2.next = 23;
13976
+ _context2.next = 5;
13958
13977
  break;
13959
13978
  }
13960
13979
  throw new Error("Invalid DICOM file: detected LEI encoding but length is odd (".concat(potentialLength, "), which is not allowed in DICOM"));
13961
- case 23:
13980
+ case 5:
13962
13981
  this.syntax = IMPLICIT_LITTLE_ENDIAN;
13963
- case 24:
13964
- _context2.next = 29;
13982
+ case 6:
13983
+ _context2.next = 9;
13965
13984
  break;
13966
- case 26:
13985
+ case 7:
13967
13986
  if (!(potentialLength % 2 !== 0)) {
13968
- _context2.next = 28;
13987
+ _context2.next = 8;
13969
13988
  break;
13970
13989
  }
13971
13990
  throw new Error("Invalid DICOM file: detected LEI encoding but length is odd (".concat(potentialLength, "), which is not allowed in DICOM"));
13972
- case 28:
13991
+ case 8:
13973
13992
  this.syntax = IMPLICIT_LITTLE_ENDIAN;
13974
- case 29:
13993
+ case 9:
13975
13994
  // Reset stream to beginning for reading
13976
13995
  stream.reset();
13977
- case 30:
13996
+ case 10:
13978
13997
  case "end":
13979
13998
  return _context2.stop();
13980
13999
  }
@@ -14000,23 +14019,23 @@
14000
14019
  _this$meta2,
14001
14020
  _information2,
14002
14021
  _args3 = arguments;
14003
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
14022
+ return _regeneratorRuntime().wrap(function (_context3) {
14004
14023
  while (1) switch (_context3.prev = _context3.next) {
14005
14024
  case 0:
14006
14025
  options = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : undefined;
14007
- _context3.next = 3;
14026
+ _context3.next = 1;
14008
14027
  return this.readPreamble();
14009
- case 3:
14028
+ case 1:
14010
14029
  hasPreamble = _context3.sent;
14011
14030
  if (!(hasPreamble === AsyncDicomReader.PART10_NO_PREAMBLE)) {
14012
- _context3.next = 16;
14031
+ _context3.next = 4;
14013
14032
  break;
14014
14033
  }
14015
- _context3.next = 7;
14034
+ _context3.next = 2;
14016
14035
  return this.readMeta(_objectSpread2(_objectSpread2({}, options), {}, {
14017
14036
  ignoreErrors: true
14018
14037
  }));
14019
- case 7:
14038
+ case 2:
14020
14039
  this.meta = _context3.sent;
14021
14040
  _listener = (options === null || options === void 0 ? void 0 : options.listener) || new DicomMetadataListener();
14022
14041
  if (_listener.information) {
@@ -14026,14 +14045,14 @@
14026
14045
  }
14027
14046
  this.dict || (this.dict = {});
14028
14047
  _listener.startObject(this.dict);
14029
- _context3.next = 14;
14048
+ _context3.next = 3;
14030
14049
  return this.read(_listener, options);
14031
- case 14:
14050
+ case 3:
14032
14051
  this.dict = _context3.sent;
14033
14052
  return _context3.abrupt("return", this);
14034
- case 16:
14053
+ case 4:
14035
14054
  if (hasPreamble) {
14036
- _context3.next = 26;
14055
+ _context3.next = 6;
14037
14056
  break;
14038
14057
  }
14039
14058
  // Handle raw dataset (no Part 10 preamble)
@@ -14046,15 +14065,15 @@
14046
14065
  }
14047
14066
  this.dict || (this.dict = {});
14048
14067
  _listener2.startObject(this.dict);
14049
- _context3.next = 24;
14068
+ _context3.next = 5;
14050
14069
  return this.read(_listener2, options);
14051
- case 24:
14070
+ case 5:
14052
14071
  this.dict = _context3.sent;
14053
14072
  return _context3.abrupt("return", this);
14054
- case 26:
14055
- _context3.next = 28;
14073
+ case 6:
14074
+ _context3.next = 7;
14056
14075
  return this.readMeta(options);
14057
- case 28:
14076
+ case 7:
14058
14077
  this.meta = _context3.sent;
14059
14078
  listener = (options === null || options === void 0 ? void 0 : options.listener) || new DicomMetadataListener();
14060
14079
  if (listener.information) {
@@ -14064,12 +14083,12 @@
14064
14083
  }
14065
14084
  this.dict || (this.dict = {});
14066
14085
  listener.startObject(this.dict);
14067
- _context3.next = 35;
14086
+ _context3.next = 8;
14068
14087
  return this.read(listener, options);
14069
- case 35:
14088
+ case 8:
14070
14089
  this.dict = _context3.sent;
14071
14090
  return _context3.abrupt("return", this);
14072
- case 37:
14091
+ case 9:
14073
14092
  case "end":
14074
14093
  return _context3.stop();
14075
14094
  }
@@ -14099,54 +14118,54 @@
14099
14118
  metaLength,
14100
14119
  metaStream,
14101
14120
  _args4 = arguments;
14102
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
14121
+ return _regeneratorRuntime().wrap(function (_context4) {
14103
14122
  while (1) switch (_context4.prev = _context4.next) {
14104
14123
  case 0:
14105
14124
  options = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : undefined;
14106
14125
  stream = this.stream;
14107
- _context4.next = 4;
14126
+ _context4.next = 1;
14108
14127
  return stream.ensureAvailable();
14109
- case 4:
14128
+ case 1:
14110
14129
  metaStartPos = stream.offset;
14111
14130
  el = this.readTagHeader();
14112
14131
  if (!(el.tag !== TagHex.FileMetaInformationGroupLength)) {
14113
- _context4.next = 15;
14132
+ _context4.next = 4;
14114
14133
  break;
14115
14134
  }
14116
14135
  if (options !== null && options !== void 0 && options.ignoreErrors) {
14117
- _context4.next = 9;
14136
+ _context4.next = 2;
14118
14137
  break;
14119
14138
  }
14120
14139
  throw new Error("Invalid DICOM file, meta length tag is malformed or not present.");
14121
- case 9:
14140
+ case 2:
14122
14141
  // reset stream to the position where we started reading tags
14123
14142
  stream.offset = metaStartPos;
14124
14143
  // Wait for at least 10k to be available to make sure there is enough
14125
14144
  // data to read the entire Meta header
14126
- _context4.next = 12;
14145
+ _context4.next = 3;
14127
14146
  return stream.ensureAvailable((options === null || options === void 0 ? void 0 : options.maxSizeMeta) || 1024 * 10);
14128
- case 12:
14147
+ case 3:
14129
14148
  // read meta header elements sequentially
14130
14149
  this.meta = DicomMessage._read(stream, EXPLICIT_LITTLE_ENDIAN$1, {
14131
14150
  untilTag: "00030000",
14132
14151
  stopOnGreaterTag: true,
14133
14152
  ignoreErrors: true
14134
14153
  });
14135
- _context4.next = 20;
14154
+ _context4.next = 6;
14136
14155
  break;
14137
- case 15:
14156
+ case 4:
14138
14157
  // meta length tag is present
14139
14158
  metaLength = el.vrObj.readBytes(stream);
14140
- _context4.next = 18;
14159
+ _context4.next = 5;
14141
14160
  return stream.ensureAvailable(metaLength);
14142
- case 18:
14161
+ case 5:
14143
14162
  // read header buffer using the specified meta length
14144
14163
  metaStream = stream.more(metaLength);
14145
14164
  this.meta = DicomMessage._read(metaStream, EXPLICIT_LITTLE_ENDIAN$1, {});
14146
- case 20:
14165
+ case 6:
14147
14166
  this.syntax = this.meta[TagHex.TransferSyntaxUID].Value[0];
14148
14167
  return _context4.abrupt("return", this.meta);
14149
- case 22:
14168
+ case 7:
14150
14169
  case "end":
14151
14170
  return _context4.stop();
14152
14171
  }
@@ -14162,94 +14181,104 @@
14162
14181
  value: function () {
14163
14182
  var _read = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(listener, options) {
14164
14183
  var untilOffset, stream, tagInfo, tag, tagObj, length, addTagResult;
14165
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
14184
+ return _regeneratorRuntime().wrap(function (_context5) {
14166
14185
  while (1) switch (_context5.prev = _context5.next) {
14167
14186
  case 0:
14168
14187
  untilOffset = (options === null || options === void 0 ? void 0 : options.untilOffset) || Number.MAX_SAFE_INTEGER;
14169
14188
  this.listener = listener;
14170
14189
  stream = this.stream;
14171
- _context5.next = 5;
14190
+ _context5.next = 1;
14172
14191
  return stream.ensureAvailable();
14173
- case 5:
14192
+ case 1:
14174
14193
  if (!(stream.offset < untilOffset && stream.isAvailable(1, false))) {
14175
- _context5.next = 44;
14194
+ _context5.next = 15;
14176
14195
  break;
14177
14196
  }
14178
14197
  readLog.debug("read loop", stream.offset, untilOffset);
14179
14198
  // Consume before reading the tag so that data before the
14180
14199
  // current tag can be cleared.
14181
14200
  stream.consume();
14182
- tagInfo = this.readTagHeader(options);
14201
+ tagInfo = this.readTagHeader(options); // Stop when the requested tag boundary is reached. readTagHeader()
14202
+ // has already consumed the 4-byte tag but nothing beyond it, so
14203
+ // stream.offset now points at the first byte after the tag (i.e.
14204
+ // the VR field for explicit-LE). Callers that need the start
14205
+ // offset of the tag itself should subtract 4 from stream.offset.
14206
+ if (!tagInfo.isUntilTag) {
14207
+ _context5.next = 2;
14208
+ break;
14209
+ }
14210
+ return _context5.abrupt("continue", 15);
14211
+ case 2:
14183
14212
  tag = tagInfo.tag, tagObj = tagInfo.tagObj, length = tagInfo.length;
14184
14213
  if (!(tag === TagHex.ItemDelimitationEnd)) {
14185
- _context5.next = 12;
14214
+ _context5.next = 3;
14186
14215
  break;
14187
14216
  }
14188
14217
  return _context5.abrupt("return", listener.pop());
14189
- case 12:
14218
+ case 3:
14190
14219
  if (!tagObj.isInstruction()) {
14191
- _context5.next = 14;
14220
+ _context5.next = 4;
14192
14221
  break;
14193
14222
  }
14194
- return _context5.abrupt("continue", 5);
14195
- case 14:
14223
+ return _context5.abrupt("continue", 1);
14224
+ case 4:
14196
14225
  if (!(tagObj.group() === 0 || tag === TagHex.DataSetTrailingPadding)) {
14197
- _context5.next = 17;
14226
+ _context5.next = 5;
14198
14227
  break;
14199
14228
  }
14200
14229
  // Group length
14201
14230
  stream.increment(tagObj.length);
14202
- return _context5.abrupt("continue", 5);
14203
- case 17:
14231
+ return _context5.abrupt("continue", 1);
14232
+ case 5:
14204
14233
  addTagResult = listener.addTag(tag, tagInfo);
14205
14234
  if (!this.isSequence(tagInfo)) {
14206
- _context5.next = 23;
14235
+ _context5.next = 7;
14207
14236
  break;
14208
14237
  }
14209
- _context5.next = 21;
14238
+ _context5.next = 6;
14210
14239
  return this.readSequence(listener, tagInfo, options);
14211
- case 21:
14212
- _context5.next = 39;
14240
+ case 6:
14241
+ _context5.next = 13;
14213
14242
  break;
14214
- case 23:
14243
+ case 7:
14215
14244
  if (!tagObj.isPixelDataTag()) {
14216
- _context5.next = 28;
14245
+ _context5.next = 9;
14217
14246
  break;
14218
14247
  }
14219
- _context5.next = 26;
14248
+ _context5.next = 8;
14220
14249
  return this.readPixelData(tagInfo);
14221
- case 26:
14222
- _context5.next = 39;
14250
+ case 8:
14251
+ _context5.next = 13;
14223
14252
  break;
14224
- case 28:
14253
+ case 9:
14225
14254
  if (!(length === UNDEFINED_LENGTH_FIX)) {
14226
- _context5.next = 32;
14255
+ _context5.next = 10;
14227
14256
  break;
14228
14257
  }
14229
14258
  throw new Error("Can't handle tag ".concat(tagInfo.tag, " with -1 length and not sequence"));
14230
- case 32:
14259
+ case 10:
14231
14260
  if (!((addTagResult === null || addTagResult === void 0 ? void 0 : addTagResult.expectsRaw) === true && length > 0)) {
14232
- _context5.next = 37;
14261
+ _context5.next = 12;
14233
14262
  break;
14234
14263
  }
14235
- _context5.next = 35;
14264
+ _context5.next = 11;
14236
14265
  return this.readRawBinary(tagInfo);
14237
- case 35:
14238
- _context5.next = 39;
14266
+ case 11:
14267
+ _context5.next = 13;
14239
14268
  break;
14240
- case 37:
14241
- _context5.next = 39;
14269
+ case 12:
14270
+ _context5.next = 13;
14242
14271
  return this.readSingle(tagInfo, listener, options);
14243
- case 39:
14272
+ case 13:
14244
14273
  listener.pop();
14245
- _context5.next = 42;
14274
+ _context5.next = 14;
14246
14275
  return this.stream.ensureAvailable();
14247
- case 42:
14248
- _context5.next = 5;
14276
+ case 14:
14277
+ _context5.next = 1;
14249
14278
  break;
14250
- case 44:
14279
+ case 15:
14251
14280
  return _context5.abrupt("return", listener.pop());
14252
- case 45:
14281
+ case 16:
14253
14282
  case "end":
14254
14283
  return _context5.stop();
14255
14284
  }
@@ -14264,33 +14293,33 @@
14264
14293
  key: "readSequence",
14265
14294
  value: function () {
14266
14295
  var _readSequence = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(listener, sqTagInfo, options) {
14267
- var length, stream, syntax, endOffset, tagInfo, tag, itemLength, itemUntilOffset;
14268
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
14296
+ var length, stream, syntax, endOffset, tagInfo, tag, itemLength, itemUntilOffset, _t;
14297
+ return _regeneratorRuntime().wrap(function (_context6) {
14269
14298
  while (1) switch (_context6.prev = _context6.next) {
14270
14299
  case 0:
14271
14300
  length = sqTagInfo.length;
14272
14301
  stream = this.stream, syntax = this.syntax;
14273
14302
  endOffset = length === UNDEFINED_LENGTH_FIX ? Number.MAX_SAFE_INTEGER : stream.offset + length;
14274
- case 3:
14275
- _context6.t0 = stream.offset < endOffset;
14276
- if (!_context6.t0) {
14277
- _context6.next = 8;
14303
+ case 1:
14304
+ _t = stream.offset < endOffset;
14305
+ if (!_t) {
14306
+ _context6.next = 3;
14278
14307
  break;
14279
14308
  }
14280
- _context6.next = 7;
14309
+ _context6.next = 2;
14281
14310
  return stream.ensureAvailable();
14282
- case 7:
14283
- _context6.t0 = _context6.sent;
14284
- case 8:
14285
- if (!_context6.t0) {
14286
- _context6.next = 28;
14311
+ case 2:
14312
+ _t = _context6.sent;
14313
+ case 3:
14314
+ if (!_t) {
14315
+ _context6.next = 8;
14287
14316
  break;
14288
14317
  }
14289
14318
  readLog.debug("readSequence loop", stream.offset, endOffset);
14290
14319
  tagInfo = this.readTagHeader(syntax, options);
14291
14320
  tag = tagInfo.tag;
14292
14321
  if (!(tag === TagHex.Item)) {
14293
- _context6.next = 20;
14322
+ _context6.next = 5;
14294
14323
  break;
14295
14324
  }
14296
14325
  listener.startObject();
@@ -14302,26 +14331,26 @@
14302
14331
  // as instructions and skips them.
14303
14332
  itemLength = tagInfo.length;
14304
14333
  itemUntilOffset = itemLength === UNDEFINED_LENGTH_FIX ? endOffset : Math.min(stream.offset + itemLength, endOffset);
14305
- _context6.next = 18;
14334
+ _context6.next = 4;
14306
14335
  return this.read(listener, _objectSpread2(_objectSpread2({}, options), {}, {
14307
14336
  untilOffset: itemUntilOffset
14308
14337
  }));
14309
- case 18:
14310
- _context6.next = 26;
14338
+ case 4:
14339
+ _context6.next = 7;
14311
14340
  break;
14312
- case 20:
14341
+ case 5:
14313
14342
  if (!(tag === TagHex.SequenceDelimitationEnd)) {
14314
- _context6.next = 24;
14343
+ _context6.next = 6;
14315
14344
  break;
14316
14345
  }
14317
14346
  return _context6.abrupt("return");
14318
- case 24:
14347
+ case 6:
14319
14348
  console.warn("Unknown tag info", length, tagInfo);
14320
14349
  throw new Error();
14321
- case 26:
14322
- _context6.next = 3;
14350
+ case 7:
14351
+ _context6.next = 1;
14323
14352
  break;
14324
- case 28:
14353
+ case 8:
14325
14354
  case "end":
14326
14355
  return _context6.stop();
14327
14356
  }
@@ -14351,38 +14380,38 @@
14351
14380
  var _emitSplitValues2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(length) {
14352
14381
  var _listener$awaitDrain;
14353
14382
  var stream, listener, maxFragmentSize, offset, chunkSize, buffer;
14354
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
14383
+ return _regeneratorRuntime().wrap(function (_context7) {
14355
14384
  while (1) switch (_context7.prev = _context7.next) {
14356
14385
  case 0:
14357
14386
  stream = this.stream, listener = this.listener;
14358
- _context7.next = 3;
14387
+ _context7.next = 1;
14359
14388
  return (_listener$awaitDrain = listener.awaitDrain) === null || _listener$awaitDrain === void 0 ? void 0 : _listener$awaitDrain.call(listener);
14360
- case 3:
14389
+ case 1:
14361
14390
  maxFragmentSize = this.maxFragmentSize;
14362
14391
  if (!(typeof maxFragmentSize !== "number" || maxFragmentSize <= 0)) {
14363
- _context7.next = 6;
14392
+ _context7.next = 2;
14364
14393
  break;
14365
14394
  }
14366
14395
  throw new Error("maxFragmentSize must be a positive number, got ".concat(maxFragmentSize));
14367
- case 6:
14396
+ case 2:
14368
14397
  offset = 0;
14369
- case 7:
14398
+ case 3:
14370
14399
  if (!(offset < length)) {
14371
- _context7.next = 18;
14400
+ _context7.next = 5;
14372
14401
  break;
14373
14402
  }
14374
14403
  readLog.trace("_emitSplitValues loop", offset, length);
14375
14404
  chunkSize = Math.min(maxFragmentSize, length - offset);
14376
- _context7.next = 12;
14405
+ _context7.next = 4;
14377
14406
  return stream.ensureAvailable(chunkSize);
14378
- case 12:
14407
+ case 4:
14379
14408
  buffer = stream.readArrayBuffer(chunkSize);
14380
14409
  listener.value(buffer);
14381
14410
  offset += chunkSize;
14382
14411
  stream.consume();
14383
- _context7.next = 7;
14412
+ _context7.next = 3;
14384
14413
  break;
14385
- case 18:
14414
+ case 5:
14386
14415
  case "end":
14387
14416
  return _context7.stop();
14388
14417
  }
@@ -14403,21 +14432,21 @@
14403
14432
  var _readCompressed = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_tagInfo) {
14404
14433
  var _listener$information;
14405
14434
  var stream, listener, transferSyntaxUid, isVideo, numberOfFrames, isSingleFrame, offsets, singleArray, startOffset, frameNumber, lastFrame, frameTag, length;
14406
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
14435
+ return _regeneratorRuntime().wrap(function (_context8) {
14407
14436
  while (1) switch (_context8.prev = _context8.next) {
14408
14437
  case 0:
14409
14438
  stream = this.stream, listener = this.listener;
14410
14439
  transferSyntaxUid = this.syntax;
14411
- _context8.next = 4;
14440
+ _context8.next = 1;
14412
14441
  return stream.ensureAvailable();
14413
- case 4:
14442
+ case 1:
14414
14443
  // Check if this is a video transfer syntax
14415
14444
  isVideo = isVideoTransferSyntax(transferSyntaxUid); // Check number of frames - only use video logic for single frame (or undefined)
14416
14445
  numberOfFrames = (_listener$information = listener.information) === null || _listener$information === void 0 ? void 0 : _listener$information.numberOfFrames;
14417
14446
  isSingleFrame = !numberOfFrames || parseInt(numberOfFrames) <= 1;
14418
- _context8.next = 9;
14447
+ _context8.next = 2;
14419
14448
  return this.readOffsets();
14420
- case 9:
14449
+ case 2:
14421
14450
  offsets = _context8.sent;
14422
14451
  singleArray = isVideo || isSingleFrame;
14423
14452
  if (singleArray && !offsets) {
@@ -14430,15 +14459,15 @@
14430
14459
  startOffset = stream.offset;
14431
14460
  frameNumber = 0;
14432
14461
  lastFrame = null;
14433
- case 16:
14462
+ case 3:
14434
14463
  readLog.debug("readCompressed frame loop", frameNumber);
14435
14464
  stream.consume();
14436
- _context8.next = 21;
14465
+ _context8.next = 4;
14437
14466
  return stream.ensureAvailable();
14438
- case 21:
14467
+ case 4:
14439
14468
  frameTag = this.readTagHeader();
14440
14469
  if (!(frameTag.tag === TagHex.SequenceDelimitationEnd)) {
14441
- _context8.next = 25;
14470
+ _context8.next = 5;
14442
14471
  break;
14443
14472
  }
14444
14473
  if (lastFrame) {
@@ -14446,29 +14475,29 @@
14446
14475
  listener.pop();
14447
14476
  }
14448
14477
  return _context8.abrupt("return");
14449
- case 25:
14478
+ case 5:
14450
14479
  if (!(frameTag.tag !== TagHex.Item)) {
14451
- _context8.next = 27;
14480
+ _context8.next = 6;
14452
14481
  break;
14453
14482
  }
14454
14483
  throw new Error("frame tag isn't item: ".concat(frameTag.tag));
14455
- case 27:
14484
+ case 6:
14456
14485
  length = frameTag.length;
14457
14486
  if (!lastFrame) {
14458
14487
  lastFrame = [];
14459
14488
  listener.startObject(lastFrame);
14460
14489
  }
14461
- _context8.next = 31;
14490
+ _context8.next = 7;
14462
14491
  return this._emitSplitValues(length);
14463
- case 31:
14492
+ case 7:
14464
14493
  if (!offsets || stream.offset >= offsets[frameNumber + 1] + startOffset) {
14465
14494
  lastFrame = null;
14466
14495
  listener.pop();
14467
14496
  frameNumber++;
14468
14497
  }
14469
- _context8.next = 16;
14498
+ _context8.next = 3;
14470
14499
  break;
14471
- case 34:
14500
+ case 8:
14472
14501
  case "end":
14473
14502
  return _context8.stop();
14474
14503
  }
@@ -14484,33 +14513,33 @@
14484
14513
  value: function () {
14485
14514
  var _readOffsets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
14486
14515
  var tagInfo, offsets, numOfFrames, i;
14487
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
14516
+ return _regeneratorRuntime().wrap(function (_context9) {
14488
14517
  while (1) switch (_context9.prev = _context9.next) {
14489
14518
  case 0:
14490
14519
  tagInfo = this.readTagHeader();
14491
14520
  if (!(tagInfo.tag !== TagHex.Item)) {
14492
- _context9.next = 3;
14521
+ _context9.next = 1;
14493
14522
  break;
14494
14523
  }
14495
14524
  throw new Error("Offsets tag is missing: ".concat(tagInfo.tag));
14496
- case 3:
14525
+ case 1:
14497
14526
  if (!(tagInfo.length === 0)) {
14498
- _context9.next = 5;
14527
+ _context9.next = 2;
14499
14528
  break;
14500
14529
  }
14501
14530
  return _context9.abrupt("return");
14502
- case 5:
14531
+ case 2:
14503
14532
  offsets = [];
14504
14533
  numOfFrames = tagInfo.length / 4;
14505
- _context9.next = 9;
14534
+ _context9.next = 3;
14506
14535
  return this.stream.ensureAvailable(tagInfo.length);
14507
- case 9:
14536
+ case 3:
14508
14537
  for (i = 0; i < numOfFrames; i++) {
14509
14538
  readLog.trace("readOffsets loop", i, numOfFrames);
14510
14539
  offsets.push(this.stream.readUint32());
14511
14540
  }
14512
14541
  return _context9.abrupt("return", offsets);
14513
- case 11:
14542
+ case 4:
14514
14543
  case "end":
14515
14544
  return _context9.stop();
14516
14545
  }
@@ -14530,7 +14559,7 @@
14530
14559
  var _readUncompressed = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee0(tagInfo) {
14531
14560
  var _listener$information2;
14532
14561
  var length, listener, numberOfFrames, frameLength, _listener$information3, _listener$information4, _listener$information5, _listener$information6, rows, cols, samplesPerPixel, bitsAllocated, bitsPerFrame, frameNumber;
14533
- return _regeneratorRuntime().wrap(function _callee0$(_context0) {
14562
+ return _regeneratorRuntime().wrap(function (_context0) {
14534
14563
  while (1) switch (_context0.prev = _context0.next) {
14535
14564
  case 0:
14536
14565
  length = tagInfo.length;
@@ -14538,7 +14567,7 @@
14538
14567
  numberOfFrames = parseInt(((_listener$information2 = listener.information) === null || _listener$information2 === void 0 ? void 0 : _listener$information2.numberOfFrames) || 1);
14539
14568
  frameLength = Math.floor(length / numberOfFrames);
14540
14569
  if (!(numberOfFrames > 1)) {
14541
- _context0.next = 18;
14570
+ _context0.next = 4;
14542
14571
  break;
14543
14572
  }
14544
14573
  rows = (_listener$information3 = listener.information) === null || _listener$information3 === void 0 ? void 0 : _listener$information3.rows;
@@ -14547,44 +14576,44 @@
14547
14576
  bitsAllocated = (_listener$information6 = listener.information) === null || _listener$information6 === void 0 ? void 0 : _listener$information6.bitsAllocated;
14548
14577
  bitsPerFrame = rows * cols * samplesPerPixel * bitsAllocated;
14549
14578
  if (!(bitsPerFrame % 8 !== 0)) {
14550
- _context0.next = 16;
14579
+ _context0.next = 3;
14551
14580
  break;
14552
14581
  }
14553
14582
  if (!(bitsAllocated === 1)) {
14554
- _context0.next = 15;
14583
+ _context0.next = 2;
14555
14584
  break;
14556
14585
  }
14557
- _context0.next = 14;
14586
+ _context0.next = 1;
14558
14587
  return this.readUncompressedBitFrame(tagInfo);
14559
- case 14:
14588
+ case 1:
14560
14589
  return _context0.abrupt("return", _context0.sent);
14561
- case 15:
14590
+ case 2:
14562
14591
  throw new Error("Odd frame length must be single bit: ".concat(rows, ",").concat(cols, " ").concat(samplesPerPixel, " ").concat(bitsAllocated));
14563
- case 16:
14592
+ case 3:
14564
14593
  if (!(length % numberOfFrames !== 0)) {
14565
- _context0.next = 18;
14594
+ _context0.next = 4;
14566
14595
  break;
14567
14596
  }
14568
14597
  throw new Error("Invalid frame length: ".concat(length, " for ").concat(numberOfFrames, " frames"));
14569
- case 18:
14598
+ case 4:
14570
14599
  frameNumber = 0;
14571
- case 19:
14600
+ case 5:
14572
14601
  if (!(frameNumber < numberOfFrames)) {
14573
- _context0.next = 28;
14602
+ _context0.next = 8;
14574
14603
  break;
14575
14604
  }
14576
14605
  readLog.trace("readUncompressed loop", frameNumber, numberOfFrames);
14577
14606
  listener.startObject([]);
14578
- _context0.next = 24;
14607
+ _context0.next = 6;
14579
14608
  return this._emitSplitValues(frameLength);
14580
- case 24:
14609
+ case 6:
14581
14610
  listener.pop();
14582
14611
  // console.log(stream.getBufferMemoryInfo());
14583
- case 25:
14612
+ case 7:
14584
14613
  frameNumber++;
14585
- _context0.next = 19;
14614
+ _context0.next = 5;
14586
14615
  break;
14587
- case 28:
14616
+ case 8:
14588
14617
  case "end":
14589
14618
  return _context0.stop();
14590
14619
  }
@@ -14615,7 +14644,7 @@
14615
14644
  var _readUncompressedBitFrame = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee1(tagInfo) {
14616
14645
  var _listener$information7, _listener$information8, _listener$information9, _listener$information0, _listener$information1;
14617
14646
  var length, listener, stream, numberOfFrames, rows, cols, samplesPerPixel, bitsAllocated, bitsPerFrame, bytesPerFrame, totalBits, totalBytes, allPixelData, frameNumber, bitOffset, frameBuffer, frameView, sourceView, bitIndex, globalBitIndex, sourceByteIndex, sourceBitIndex, targetByteIndex, targetBitIndex, sourceByte, bitValue;
14618
- return _regeneratorRuntime().wrap(function _callee1$(_context1) {
14647
+ return _regeneratorRuntime().wrap(function (_context1) {
14619
14648
  while (1) switch (_context1.prev = _context1.next) {
14620
14649
  case 0:
14621
14650
  length = tagInfo.length;
@@ -14626,30 +14655,30 @@
14626
14655
  samplesPerPixel = ((_listener$information0 = listener.information) === null || _listener$information0 === void 0 ? void 0 : _listener$information0.samplesPerPixel) || 1;
14627
14656
  bitsAllocated = (_listener$information1 = listener.information) === null || _listener$information1 === void 0 ? void 0 : _listener$information1.bitsAllocated;
14628
14657
  if (!(!rows || !cols || !bitsAllocated)) {
14629
- _context1.next = 9;
14658
+ _context1.next = 1;
14630
14659
  break;
14631
14660
  }
14632
14661
  throw new Error("Missing required pixel data information: rows, columns, or bitsAllocated");
14633
- case 9:
14662
+ case 1:
14634
14663
  if (!(bitsAllocated !== 1)) {
14635
- _context1.next = 11;
14664
+ _context1.next = 2;
14636
14665
  break;
14637
14666
  }
14638
14667
  throw new Error("Odd-length bit frames require bitsAllocated=1, got ".concat(bitsAllocated));
14639
- case 11:
14668
+ case 2:
14640
14669
  bitsPerFrame = rows * cols * samplesPerPixel * bitsAllocated;
14641
14670
  bytesPerFrame = Math.ceil(bitsPerFrame / 8);
14642
14671
  totalBits = bitsPerFrame * numberOfFrames;
14643
14672
  totalBytes = Math.ceil(totalBits / 8);
14644
14673
  if (!(totalBytes !== length)) {
14645
- _context1.next = 17;
14674
+ _context1.next = 3;
14646
14675
  break;
14647
14676
  }
14648
14677
  throw new Error("The calculated length ".concat(totalBytes, " does not match the actual length ").concat(length));
14649
- case 17:
14650
- _context1.next = 19;
14678
+ case 3:
14679
+ _context1.next = 4;
14651
14680
  return stream.ensureAvailable(length);
14652
- case 19:
14681
+ case 4:
14653
14682
  allPixelData = stream.readArrayBuffer(totalBytes);
14654
14683
  stream.consume();
14655
14684
 
@@ -14680,7 +14709,7 @@
14680
14709
  listener.value(frameBuffer);
14681
14710
  listener.pop();
14682
14711
  }
14683
- case 22:
14712
+ case 5:
14684
14713
  case "end":
14685
14714
  return _context1.stop();
14686
14715
  }
@@ -14701,13 +14730,13 @@
14701
14730
  value: (function () {
14702
14731
  var _readRawBinary = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(tagInfo) {
14703
14732
  var length;
14704
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
14733
+ return _regeneratorRuntime().wrap(function (_context10) {
14705
14734
  while (1) switch (_context10.prev = _context10.next) {
14706
14735
  case 0:
14707
14736
  length = tagInfo.length;
14708
- _context10.next = 3;
14737
+ _context10.next = 1;
14709
14738
  return this._emitSplitValues(length);
14710
- case 3:
14739
+ case 1:
14711
14740
  case "end":
14712
14741
  return _context10.stop();
14713
14742
  }
@@ -14752,7 +14781,7 @@
14752
14781
  tagObj: tagObj,
14753
14782
  vr: 0,
14754
14783
  values: 0,
14755
- untilTag: true
14784
+ isUntilTag: true
14756
14785
  };
14757
14786
  }
14758
14787
  }
@@ -14829,15 +14858,15 @@
14829
14858
  key: "readSingle",
14830
14859
  value: (function () {
14831
14860
  var _readSingle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(tagInfo, listener, options) {
14832
- var length, stream, syntax, vr, values, times, i, _vr$read, value, _vr$read2, _value, delimiterChar, _values, _values2, coding;
14833
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
14861
+ var length, stream, syntax, vr, values, times, i, _vr$read, value, _vr$read2, _value, delimiterChar, _values, _values2, coding, valuesForListener;
14862
+ return _regeneratorRuntime().wrap(function (_context11) {
14834
14863
  while (1) switch (_context11.prev = _context11.next) {
14835
14864
  case 0:
14836
14865
  length = tagInfo.length;
14837
14866
  stream = this.stream, syntax = this.syntax;
14838
- _context11.next = 4;
14867
+ _context11.next = 1;
14839
14868
  return this.stream.ensureAvailable(length);
14840
- case 4:
14869
+ case 1:
14841
14870
  vr = ValueRepresentation.createByTypeString(tagInfo.vr);
14842
14871
  values = [];
14843
14872
  if (vr.isBinary() && length > vr.maxLength && !vr.noMultiple) {
@@ -14863,34 +14892,34 @@
14863
14892
  }
14864
14893
  }
14865
14894
  if (!(tagInfo.tag === TagHex.SpecificCharacterSet)) {
14866
- _context11.next = 22;
14895
+ _context11.next = 5;
14867
14896
  break;
14868
14897
  }
14869
14898
  if (!(values.length > 0)) {
14870
- _context11.next = 21;
14899
+ _context11.next = 4;
14871
14900
  break;
14872
14901
  }
14873
14902
  _values = values, _values2 = _slicedToArray(_values, 1), coding = _values2[0];
14874
14903
  coding = coding.replace(/[_ ]/g, "-").toLowerCase();
14875
14904
  if (!(coding in encodingMapping)) {
14876
- _context11.next = 16;
14905
+ _context11.next = 2;
14877
14906
  break;
14878
14907
  }
14879
14908
  coding = encodingMapping[coding];
14880
14909
  this.stream.setDecoder(new TextDecoder(coding));
14881
- _context11.next = 21;
14910
+ _context11.next = 4;
14882
14911
  break;
14883
- case 16:
14912
+ case 2:
14884
14913
  if (!(options !== null && options !== void 0 && options.ignoreErrors)) {
14885
- _context11.next = 20;
14914
+ _context11.next = 3;
14886
14915
  break;
14887
14916
  }
14888
14917
  log.warn("Unsupported character set: ".concat(coding, ", using default character set"));
14889
- _context11.next = 21;
14918
+ _context11.next = 4;
14890
14919
  break;
14891
- case 20:
14920
+ case 3:
14892
14921
  throw Error("Unsupported character set: ".concat(coding));
14893
- case 21:
14922
+ case 4:
14894
14923
  // Normalize to UTF-8 in the stored value, matching the synchronous
14895
14924
  // DicomMessage path which always rewrites SpecificCharacterSet to
14896
14925
  // ISO_IR 192 after decoding (dcmjs always re-encodes output as UTF-8).
@@ -14898,12 +14927,13 @@
14898
14927
  // TODO: the original charset value should also be preserved:
14899
14928
  // it is needed for bulk data decoding.
14900
14929
  values = ["ISO_IR 192"];
14901
- case 22:
14902
- values.forEach(function (value) {
14930
+ case 5:
14931
+ valuesForListener = Array.isArray(values) ? values : [values];
14932
+ valuesForListener.forEach(function (value) {
14903
14933
  return listener.value(value);
14904
14934
  });
14905
14935
  return _context11.abrupt("return", values);
14906
- case 24:
14936
+ case 6:
14907
14937
  case "end":
14908
14938
  return _context11.stop();
14909
14939
  }
@@ -14915,7 +14945,6 @@
14915
14945
  return readSingle;
14916
14946
  }())
14917
14947
  }]);
14918
- return AsyncDicomReader;
14919
14948
  }();
14920
14949
  _defineProperty(AsyncDicomReader, "PART10_NO_PREAMBLE", Symbol("PART10_NO_PREAMBLE"));
14921
14950
 
@@ -14981,7 +15010,7 @@
14981
15010
  };
14982
15011
  this.derive();
14983
15012
  }
14984
- _createClass(DerivedDataset, [{
15013
+ return _createClass(DerivedDataset, [{
14985
15014
  key: "assignToDataset",
14986
15015
  value: function assignToDataset(data) {
14987
15016
  var _this = this;
@@ -15019,11 +15048,9 @@
15019
15048
  return JSON.parse(JSON.stringify(dataset));
15020
15049
  }
15021
15050
  }]);
15022
- return DerivedDataset;
15023
15051
  }();
15024
15052
 
15025
15053
  var DerivedPixels = /*#__PURE__*/function (_DerivedDataset) {
15026
- _inherits(DerivedPixels, _DerivedDataset);
15027
15054
  function DerivedPixels(datasets) {
15028
15055
  var _this;
15029
15056
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -15038,7 +15065,8 @@
15038
15065
 
15039
15066
  // this assumes a normalized multiframe input and will create
15040
15067
  // a multiframe derived image
15041
- _createClass(DerivedPixels, [{
15068
+ _inherits(DerivedPixels, _DerivedDataset);
15069
+ return _createClass(DerivedPixels, [{
15042
15070
  key: "derive",
15043
15071
  value: function derive() {
15044
15072
  _get(_getPrototypeOf(DerivedPixels.prototype), "derive", this).call(this);
@@ -15065,29 +15093,26 @@
15065
15093
  this.dataset.PixelData = new ArrayBuffer(this.referencedDataset.PixelData.byteLength);
15066
15094
  }
15067
15095
  }]);
15068
- return DerivedPixels;
15069
15096
  }(DerivedDataset);
15070
15097
 
15071
15098
  var DerivedImage = /*#__PURE__*/function (_DerivedPixels) {
15072
- _inherits(DerivedImage, _DerivedPixels);
15073
15099
  function DerivedImage(datasets) {
15074
15100
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15075
15101
  _classCallCheck(this, DerivedImage);
15076
15102
  return _callSuper(this, DerivedImage, [datasets, options]);
15077
15103
  }
15078
- _createClass(DerivedImage, [{
15104
+ _inherits(DerivedImage, _DerivedPixels);
15105
+ return _createClass(DerivedImage, [{
15079
15106
  key: "derive",
15080
15107
  value: function derive() {
15081
15108
  _get(_getPrototypeOf(DerivedImage.prototype), "derive", this).call(this);
15082
15109
  this.assignFromReference(["WindowCenter", "WindowWidth", "BitsAllocated", "PixelRepresentation", "BodyPartExamined", "Laterality", "PatientPosition", "RescaleSlope", "RescaleIntercept", "PixelPresentation", "VolumetricProperties", "VolumeBasedCalculationTechnique", "PresentationLUTShape"]);
15083
15110
  }
15084
15111
  }]);
15085
- return DerivedImage;
15086
15112
  }(DerivedPixels);
15087
15113
 
15088
15114
  var Normalizer$1;
15089
15115
  var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
15090
- _inherits(Segmentation, _DerivedPixels);
15091
15116
  function Segmentation(datasets) {
15092
15117
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
15093
15118
  includeSliceSpacing: true
@@ -15095,7 +15120,8 @@
15095
15120
  _classCallCheck(this, Segmentation);
15096
15121
  return _callSuper(this, Segmentation, [datasets, options]);
15097
15122
  }
15098
- _createClass(Segmentation, [{
15123
+ _inherits(Segmentation, _DerivedPixels);
15124
+ return _createClass(Segmentation, [{
15099
15125
  key: "derive",
15100
15126
  value: function derive() {
15101
15127
  _get(_getPrototypeOf(Segmentation.prototype), "derive", this).call(this);
@@ -15410,11 +15436,9 @@
15410
15436
  Normalizer$1 = normalizer;
15411
15437
  }
15412
15438
  }]);
15413
- return Segmentation;
15414
15439
  }(DerivedPixels);
15415
15440
 
15416
15441
  var ParametricMap = /*#__PURE__*/function (_DerivedDataset) {
15417
- _inherits(ParametricMap, _DerivedDataset);
15418
15442
  function ParametricMap(datasets) {
15419
15443
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15420
15444
  _classCallCheck(this, ParametricMap);
@@ -15423,7 +15447,8 @@
15423
15447
 
15424
15448
  // this assumes a normalized multiframe input and will create
15425
15449
  // a multiframe derived image
15426
- _createClass(ParametricMap, [{
15450
+ _inherits(ParametricMap, _DerivedDataset);
15451
+ return _createClass(ParametricMap, [{
15427
15452
  key: "derive",
15428
15453
  value: function derive() {
15429
15454
  _get(_getPrototypeOf(ParametricMap.prototype), "derive", this).call(this);
@@ -15433,11 +15458,9 @@
15433
15458
  this.assignFromReference([]);
15434
15459
  }
15435
15460
  }]);
15436
- return ParametricMap;
15437
15461
  }(DerivedDataset);
15438
15462
 
15439
15463
  var StructuredReport = /*#__PURE__*/function (_DerivedDataset) {
15440
- _inherits(StructuredReport, _DerivedDataset);
15441
15464
  function StructuredReport(datasets) {
15442
15465
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15443
15466
  _classCallCheck(this, StructuredReport);
@@ -15446,7 +15469,8 @@
15446
15469
 
15447
15470
  // this assumes a normalized multiframe input and will create
15448
15471
  // a multiframe derived image
15449
- _createClass(StructuredReport, [{
15472
+ _inherits(StructuredReport, _DerivedDataset);
15473
+ return _createClass(StructuredReport, [{
15450
15474
  key: "derive",
15451
15475
  value: function derive() {
15452
15476
  _get(_getPrototypeOf(StructuredReport.prototype), "derive", this).call(this);
@@ -15458,7 +15482,6 @@
15458
15482
  this.assignFromReference([]);
15459
15483
  }
15460
15484
  }]);
15461
- return StructuredReport;
15462
15485
  }(DerivedDataset);
15463
15486
 
15464
15487
  var Normalizer = /*#__PURE__*/function () {
@@ -15467,7 +15490,7 @@
15467
15490
  this.datasets = datasets; // one or more dicom-like object instances
15468
15491
  this.dataset = undefined; // a normalized multiframe dicom object instance
15469
15492
  }
15470
- _createClass(Normalizer, [{
15493
+ return _createClass(Normalizer, [{
15471
15494
  key: "normalize",
15472
15495
  value: function normalize() {
15473
15496
  return "No normalization defined";
@@ -15545,15 +15568,14 @@
15545
15568
  return normalizer.dataset;
15546
15569
  }
15547
15570
  }]);
15548
- return Normalizer;
15549
15571
  }();
15550
15572
  var ImageNormalizer = /*#__PURE__*/function (_Normalizer) {
15551
- _inherits(ImageNormalizer, _Normalizer);
15552
15573
  function ImageNormalizer() {
15553
15574
  _classCallCheck(this, ImageNormalizer);
15554
15575
  return _callSuper(this, ImageNormalizer, arguments);
15555
15576
  }
15556
- _createClass(ImageNormalizer, [{
15577
+ _inherits(ImageNormalizer, _Normalizer);
15578
+ return _createClass(ImageNormalizer, [{
15557
15579
  key: "normalize",
15558
15580
  value: function normalize() {
15559
15581
  this.convertToMultiframe();
@@ -15850,15 +15872,14 @@
15850
15872
  return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
15851
15873
  }
15852
15874
  }]);
15853
- return ImageNormalizer;
15854
15875
  }(Normalizer);
15855
15876
  var MRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer) {
15856
- _inherits(MRImageNormalizer, _ImageNormalizer);
15857
15877
  function MRImageNormalizer() {
15858
15878
  _classCallCheck(this, MRImageNormalizer);
15859
15879
  return _callSuper(this, MRImageNormalizer, arguments);
15860
15880
  }
15861
- _createClass(MRImageNormalizer, [{
15881
+ _inherits(MRImageNormalizer, _ImageNormalizer);
15882
+ return _createClass(MRImageNormalizer, [{
15862
15883
  key: "normalize",
15863
15884
  value: function normalize() {
15864
15885
  _get(_getPrototypeOf(MRImageNormalizer.prototype), "normalize", this).call(this);
@@ -15885,57 +15906,53 @@
15885
15906
  };
15886
15907
  }
15887
15908
  }]);
15888
- return MRImageNormalizer;
15889
15909
  }(ImageNormalizer);
15890
15910
  var EnhancedCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer2) {
15891
- _inherits(EnhancedCTImageNormalizer, _ImageNormalizer2);
15892
15911
  function EnhancedCTImageNormalizer() {
15893
15912
  _classCallCheck(this, EnhancedCTImageNormalizer);
15894
15913
  return _callSuper(this, EnhancedCTImageNormalizer, arguments);
15895
15914
  }
15896
- _createClass(EnhancedCTImageNormalizer, [{
15915
+ _inherits(EnhancedCTImageNormalizer, _ImageNormalizer2);
15916
+ return _createClass(EnhancedCTImageNormalizer, [{
15897
15917
  key: "normalize",
15898
15918
  value: function normalize() {
15899
15919
  _get(_getPrototypeOf(EnhancedCTImageNormalizer.prototype), "normalize", this).call(this);
15900
15920
  }
15901
15921
  }]);
15902
- return EnhancedCTImageNormalizer;
15903
15922
  }(ImageNormalizer);
15904
15923
  var EnhancedMRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer3) {
15905
- _inherits(EnhancedMRImageNormalizer, _ImageNormalizer3);
15906
15924
  function EnhancedMRImageNormalizer() {
15907
15925
  _classCallCheck(this, EnhancedMRImageNormalizer);
15908
15926
  return _callSuper(this, EnhancedMRImageNormalizer, arguments);
15909
15927
  }
15910
- _createClass(EnhancedMRImageNormalizer, [{
15928
+ _inherits(EnhancedMRImageNormalizer, _ImageNormalizer3);
15929
+ return _createClass(EnhancedMRImageNormalizer, [{
15911
15930
  key: "normalize",
15912
15931
  value: function normalize() {
15913
15932
  _get(_getPrototypeOf(EnhancedMRImageNormalizer.prototype), "normalize", this).call(this);
15914
15933
  }
15915
15934
  }]);
15916
- return EnhancedMRImageNormalizer;
15917
15935
  }(ImageNormalizer);
15918
15936
  var EnhancedUSVolumeNormalizer = /*#__PURE__*/function (_ImageNormalizer4) {
15919
- _inherits(EnhancedUSVolumeNormalizer, _ImageNormalizer4);
15920
15937
  function EnhancedUSVolumeNormalizer() {
15921
15938
  _classCallCheck(this, EnhancedUSVolumeNormalizer);
15922
15939
  return _callSuper(this, EnhancedUSVolumeNormalizer, arguments);
15923
15940
  }
15924
- _createClass(EnhancedUSVolumeNormalizer, [{
15941
+ _inherits(EnhancedUSVolumeNormalizer, _ImageNormalizer4);
15942
+ return _createClass(EnhancedUSVolumeNormalizer, [{
15925
15943
  key: "normalize",
15926
15944
  value: function normalize() {
15927
15945
  _get(_getPrototypeOf(EnhancedUSVolumeNormalizer.prototype), "normalize", this).call(this);
15928
15946
  }
15929
15947
  }]);
15930
- return EnhancedUSVolumeNormalizer;
15931
15948
  }(ImageNormalizer);
15932
15949
  var NMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer5) {
15933
- _inherits(NMImageNormalizer, _ImageNormalizer5);
15934
15950
  function NMImageNormalizer() {
15935
15951
  _classCallCheck(this, NMImageNormalizer);
15936
15952
  return _callSuper(this, NMImageNormalizer, arguments);
15937
15953
  }
15938
- _createClass(NMImageNormalizer, [{
15954
+ _inherits(NMImageNormalizer, _ImageNormalizer5);
15955
+ return _createClass(NMImageNormalizer, [{
15939
15956
  key: "normalize",
15940
15957
  value: function normalize() {
15941
15958
  _get(_getPrototypeOf(NMImageNormalizer.prototype), "normalize", this).call(this);
@@ -15944,15 +15961,14 @@
15944
15961
  this.dataset.SOPClassUID = toUID.NMImage;
15945
15962
  }
15946
15963
  }]);
15947
- return NMImageNormalizer;
15948
15964
  }(ImageNormalizer);
15949
15965
  var CTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer6) {
15950
- _inherits(CTImageNormalizer, _ImageNormalizer6);
15951
15966
  function CTImageNormalizer() {
15952
15967
  _classCallCheck(this, CTImageNormalizer);
15953
15968
  return _callSuper(this, CTImageNormalizer, arguments);
15954
15969
  }
15955
- _createClass(CTImageNormalizer, [{
15970
+ _inherits(CTImageNormalizer, _ImageNormalizer6);
15971
+ return _createClass(CTImageNormalizer, [{
15956
15972
  key: "normalize",
15957
15973
  value: function normalize() {
15958
15974
  _get(_getPrototypeOf(CTImageNormalizer.prototype), "normalize", this).call(this);
@@ -15962,15 +15978,14 @@
15962
15978
  this.dataset.SOPClassUID = toUID.EnhancedCTImage;
15963
15979
  }
15964
15980
  }]);
15965
- return CTImageNormalizer;
15966
15981
  }(ImageNormalizer);
15967
15982
  var PETImageNormalizer = /*#__PURE__*/function (_ImageNormalizer7) {
15968
- _inherits(PETImageNormalizer, _ImageNormalizer7);
15969
15983
  function PETImageNormalizer() {
15970
15984
  _classCallCheck(this, PETImageNormalizer);
15971
15985
  return _callSuper(this, PETImageNormalizer, arguments);
15972
15986
  }
15973
- _createClass(PETImageNormalizer, [{
15987
+ _inherits(PETImageNormalizer, _ImageNormalizer7);
15988
+ return _createClass(PETImageNormalizer, [{
15974
15989
  key: "normalize",
15975
15990
  value: function normalize() {
15976
15991
  _get(_getPrototypeOf(PETImageNormalizer.prototype), "normalize", this).call(this);
@@ -15980,29 +15995,27 @@
15980
15995
  this.dataset.SOPClassUID = toUID.EnhancedPETImage;
15981
15996
  }
15982
15997
  }]);
15983
- return PETImageNormalizer;
15984
15998
  }(ImageNormalizer);
15985
15999
  var SEGImageNormalizer = /*#__PURE__*/function (_ImageNormalizer8) {
15986
- _inherits(SEGImageNormalizer, _ImageNormalizer8);
15987
16000
  function SEGImageNormalizer() {
15988
16001
  _classCallCheck(this, SEGImageNormalizer);
15989
16002
  return _callSuper(this, SEGImageNormalizer, arguments);
15990
16003
  }
15991
- _createClass(SEGImageNormalizer, [{
16004
+ _inherits(SEGImageNormalizer, _ImageNormalizer8);
16005
+ return _createClass(SEGImageNormalizer, [{
15992
16006
  key: "normalize",
15993
16007
  value: function normalize() {
15994
16008
  _get(_getPrototypeOf(SEGImageNormalizer.prototype), "normalize", this).call(this);
15995
16009
  }
15996
16010
  }]);
15997
- return SEGImageNormalizer;
15998
16011
  }(ImageNormalizer);
15999
16012
  var PMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer9) {
16000
- _inherits(PMImageNormalizer, _ImageNormalizer9);
16001
16013
  function PMImageNormalizer() {
16002
16014
  _classCallCheck(this, PMImageNormalizer);
16003
16015
  return _callSuper(this, PMImageNormalizer, arguments);
16004
16016
  }
16005
- _createClass(PMImageNormalizer, [{
16017
+ _inherits(PMImageNormalizer, _ImageNormalizer9);
16018
+ return _createClass(PMImageNormalizer, [{
16006
16019
  key: "normalize",
16007
16020
  value: function normalize() {
16008
16021
  _get(_getPrototypeOf(PMImageNormalizer.prototype), "normalize", this).call(this);
@@ -16012,49 +16025,45 @@
16012
16025
  }
16013
16026
  }
16014
16027
  }]);
16015
- return PMImageNormalizer;
16016
16028
  }(ImageNormalizer);
16017
16029
  var DSRNormalizer = /*#__PURE__*/function (_Normalizer2) {
16018
- _inherits(DSRNormalizer, _Normalizer2);
16019
16030
  function DSRNormalizer() {
16020
16031
  _classCallCheck(this, DSRNormalizer);
16021
16032
  return _callSuper(this, DSRNormalizer, arguments);
16022
16033
  }
16023
- _createClass(DSRNormalizer, [{
16034
+ _inherits(DSRNormalizer, _Normalizer2);
16035
+ return _createClass(DSRNormalizer, [{
16024
16036
  key: "normalize",
16025
16037
  value: function normalize() {
16026
16038
  this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
16027
16039
  }
16028
16040
  }]);
16029
- return DSRNormalizer;
16030
16041
  }(Normalizer);
16031
16042
  var OPImageNormalizer = /*#__PURE__*/function (_Normalizer3) {
16032
- _inherits(OPImageNormalizer, _Normalizer3);
16033
16043
  function OPImageNormalizer() {
16034
16044
  _classCallCheck(this, OPImageNormalizer);
16035
16045
  return _callSuper(this, OPImageNormalizer, arguments);
16036
16046
  }
16037
- _createClass(OPImageNormalizer, [{
16047
+ _inherits(OPImageNormalizer, _Normalizer3);
16048
+ return _createClass(OPImageNormalizer, [{
16038
16049
  key: "normalize",
16039
16050
  value: function normalize() {
16040
16051
  this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
16041
16052
  }
16042
16053
  }]);
16043
- return OPImageNormalizer;
16044
16054
  }(Normalizer);
16045
16055
  var OCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer0) {
16046
- _inherits(OCTImageNormalizer, _ImageNormalizer0);
16047
16056
  function OCTImageNormalizer() {
16048
16057
  _classCallCheck(this, OCTImageNormalizer);
16049
16058
  return _callSuper(this, OCTImageNormalizer, arguments);
16050
16059
  }
16051
- _createClass(OCTImageNormalizer, [{
16060
+ _inherits(OCTImageNormalizer, _ImageNormalizer0);
16061
+ return _createClass(OCTImageNormalizer, [{
16052
16062
  key: "normalize",
16053
16063
  value: function normalize() {
16054
16064
  _get(_getPrototypeOf(OCTImageNormalizer.prototype), "normalize", this).call(this);
16055
16065
  }
16056
16066
  }]);
16057
- return OCTImageNormalizer;
16058
16067
  }(ImageNormalizer); // Avoid import loops
16059
16068
  Segmentation$4.setNormalizer(Normalizer);
16060
16069
 
@@ -16162,7 +16171,7 @@
16162
16171
  }]
16163
16172
  };
16164
16173
  }
16165
- _createClass(TID1500MeasurementReport, [{
16174
+ return _createClass(TID1500MeasurementReport, [{
16166
16175
  key: "validate",
16167
16176
  value: function validate() {}
16168
16177
  }, {
@@ -16253,7 +16262,6 @@
16253
16262
  this.tid1500.ContentSequence.push(ImagingMeasurments);
16254
16263
  }
16255
16264
  }]);
16256
- return TID1500MeasurementReport;
16257
16265
  }();
16258
16266
 
16259
16267
  var TID1501MeasurementGroup = /*#__PURE__*/function () {
@@ -16261,7 +16269,7 @@
16261
16269
  _classCallCheck(this, TID1501MeasurementGroup);
16262
16270
  this.TID300Measurements = TID300Measurements;
16263
16271
  }
16264
- _createClass(TID1501MeasurementGroup, [{
16272
+ return _createClass(TID1501MeasurementGroup, [{
16265
16273
  key: "contentItem",
16266
16274
  value: function contentItem() {
16267
16275
  var _this = this;
@@ -16290,7 +16298,6 @@
16290
16298
  };
16291
16299
  }
16292
16300
  }]);
16293
- return TID1501MeasurementGroup;
16294
16301
  }();
16295
16302
 
16296
16303
  var toArray = function toArray(x) {
@@ -16350,7 +16357,7 @@
16350
16357
  function MeasurementReport() {
16351
16358
  _classCallCheck(this, MeasurementReport);
16352
16359
  }
16353
- _createClass(MeasurementReport, null, [{
16360
+ return _createClass(MeasurementReport, null, [{
16354
16361
  key: "getSetupMeasurementData",
16355
16362
  value: function getSetupMeasurementData(MeasurementGroup) {
16356
16363
  var ContentSequence = MeasurementGroup.ContentSequence;
@@ -16561,7 +16568,6 @@
16561
16568
  MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.toolType] = toolClass.utilityToolType;
16562
16569
  }
16563
16570
  }]);
16564
- return MeasurementReport;
16565
16571
  }();
16566
16572
  MeasurementReport$3.MEASUREMENT_BY_TOOLTYPE = {};
16567
16573
  MeasurementReport$3.CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE = {};
@@ -16573,7 +16579,7 @@
16573
16579
  this.ReferencedSOPSequence = props.ReferencedSOPSequence;
16574
16580
  this.props = props;
16575
16581
  }
16576
- _createClass(TID300Measurement, [{
16582
+ return _createClass(TID300Measurement, [{
16577
16583
  key: "getMeasurement",
16578
16584
  value: function getMeasurement(contentSequenceEntries) {
16579
16585
  return [].concat(_toConsumableArray(this.getTrackingGroups()), _toConsumableArray(this.getFindingGroup()), _toConsumableArray(this.getFindingSiteGroups()), _toConsumableArray(contentSequenceEntries));
@@ -16681,7 +16687,6 @@
16681
16687
  return flattenedCoordinates;
16682
16688
  }
16683
16689
  }]);
16684
- return TID300Measurement;
16685
16690
  }();
16686
16691
 
16687
16692
  /**
@@ -16703,7 +16708,7 @@
16703
16708
  this.referencedSOPSequence = referencedSOPSequence;
16704
16709
  this.referencedFrameOfReferenceUID = referencedFrameOfReferenceUID;
16705
16710
  }
16706
- _createClass(TID320ContentItem, [{
16711
+ return _createClass(TID320ContentItem, [{
16707
16712
  key: "contentItem",
16708
16713
  value: function contentItem() {
16709
16714
  var content = {
@@ -16724,16 +16729,15 @@
16724
16729
  return content;
16725
16730
  }
16726
16731
  }]);
16727
- return TID320ContentItem;
16728
16732
  }();
16729
16733
 
16730
16734
  var OpenPolyline = /*#__PURE__*/function (_TID300Measurement) {
16731
- _inherits(OpenPolyline, _TID300Measurement);
16732
16735
  function OpenPolyline() {
16733
16736
  _classCallCheck(this, OpenPolyline);
16734
16737
  return _callSuper(this, OpenPolyline, arguments);
16735
16738
  }
16736
- _createClass(OpenPolyline, [{
16739
+ _inherits(OpenPolyline, _TID300Measurement);
16740
+ return _createClass(OpenPolyline, [{
16737
16741
  key: "getPoints",
16738
16742
  value: function getPoints() {
16739
16743
  throw new Error("getPoints() must be implemented by subclass");
@@ -16782,7 +16786,6 @@
16782
16786
  }]);
16783
16787
  }
16784
16788
  }]);
16785
- return OpenPolyline;
16786
16789
  }(TID300Measurement);
16787
16790
 
16788
16791
  var knownUnits = [
@@ -16960,12 +16963,12 @@
16960
16963
  unit2CodingValue.measurementMap = unitCodeMap;
16961
16964
 
16962
16965
  var Length$2 = /*#__PURE__*/function (_OpenPolyline) {
16963
- _inherits(Length, _OpenPolyline);
16964
16966
  function Length() {
16965
16967
  _classCallCheck(this, Length);
16966
16968
  return _callSuper(this, Length, arguments);
16967
16969
  }
16968
- _createClass(Length, [{
16970
+ _inherits(Length, _OpenPolyline);
16971
+ return _createClass(Length, [{
16969
16972
  key: "getPoints",
16970
16973
  value: function getPoints() {
16971
16974
  var _this$props = this.props,
@@ -16995,7 +16998,6 @@
16995
16998
  };
16996
16999
  }
16997
17000
  }]);
16998
- return Length;
16999
17001
  }(OpenPolyline);
17000
17002
 
17001
17003
  var CORNERSTONE_4_TAG = "cornerstoneTools@^4.0.0";
@@ -17007,7 +17009,7 @@
17007
17009
  }
17008
17010
 
17009
17011
  // TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
17010
- _createClass(Length, null, [{
17012
+ return _createClass(Length, null, [{
17011
17013
  key: "getMeasurementData",
17012
17014
  value: function getMeasurementData(MeasurementGroup) {
17013
17015
  var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
@@ -17056,7 +17058,6 @@
17056
17058
  };
17057
17059
  }
17058
17060
  }]);
17059
- return Length;
17060
17061
  }();
17061
17062
  Length$1.toolType = LENGTH$1;
17062
17063
  Length$1.utilityToolType = LENGTH$1;
@@ -17093,7 +17094,7 @@
17093
17094
  function MeasurementBuilder() {
17094
17095
  _classCallCheck(this, MeasurementBuilder);
17095
17096
  }
17096
- _createClass(MeasurementBuilder, null, [{
17097
+ return _createClass(MeasurementBuilder, null, [{
17097
17098
  key: "createNumericMeasurement",
17098
17099
  value:
17099
17100
  /**
@@ -17187,16 +17188,15 @@
17187
17188
  });
17188
17189
  }
17189
17190
  }]);
17190
- return MeasurementBuilder;
17191
17191
  }();
17192
17192
 
17193
17193
  var Polyline$1 = /*#__PURE__*/function (_TID300Measurement) {
17194
- _inherits(Polyline, _TID300Measurement);
17195
17194
  function Polyline() {
17196
17195
  _classCallCheck(this, Polyline);
17197
17196
  return _callSuper(this, Polyline, arguments);
17198
17197
  }
17199
- _createClass(Polyline, [{
17198
+ _inherits(Polyline, _TID300Measurement);
17199
+ return _createClass(Polyline, [{
17200
17200
  key: "contentItem",
17201
17201
  value: function contentItem() {
17202
17202
  var _this$props = this.props,
@@ -17262,14 +17262,13 @@
17262
17262
  return this.getMeasurement(measurements);
17263
17263
  }
17264
17264
  }]);
17265
- return Polyline;
17266
17265
  }(TID300Measurement);
17267
17266
 
17268
17267
  var FreehandRoi = /*#__PURE__*/function () {
17269
17268
  function FreehandRoi() {
17270
17269
  _classCallCheck(this, FreehandRoi);
17271
17270
  }
17272
- _createClass(FreehandRoi, null, [{
17271
+ return _createClass(FreehandRoi, null, [{
17273
17272
  key: "getMeasurementData",
17274
17273
  value: function getMeasurementData(MeasurementGroup) {
17275
17274
  var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
@@ -17328,7 +17327,6 @@
17328
17327
  };
17329
17328
  }
17330
17329
  }]);
17331
- return FreehandRoi;
17332
17330
  }();
17333
17331
  FreehandRoi.toolType = "FreehandRoi";
17334
17332
  FreehandRoi.utilityToolType = "FreehandRoi";
@@ -17349,12 +17347,12 @@
17349
17347
  MeasurementReport$3.registerTool(FreehandRoi);
17350
17348
 
17351
17349
  var Bidirectional$2 = /*#__PURE__*/function (_TID300Measurement) {
17352
- _inherits(Bidirectional, _TID300Measurement);
17353
17350
  function Bidirectional() {
17354
17351
  _classCallCheck(this, Bidirectional);
17355
17352
  return _callSuper(this, Bidirectional, arguments);
17356
17353
  }
17357
- _createClass(Bidirectional, [{
17354
+ _inherits(Bidirectional, _TID300Measurement);
17355
+ return _createClass(Bidirectional, [{
17358
17356
  key: "contentItem",
17359
17357
  value: function contentItem() {
17360
17358
  var _this$props = this.props,
@@ -17418,7 +17416,6 @@
17418
17416
  }]);
17419
17417
  }
17420
17418
  }]);
17421
- return Bidirectional;
17422
17419
  }(TID300Measurement);
17423
17420
 
17424
17421
  var BIDIRECTIONAL$1 = "Bidirectional";
@@ -17432,7 +17429,7 @@
17432
17429
  }
17433
17430
 
17434
17431
  // TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
17435
- _createClass(Bidirectional, null, [{
17432
+ return _createClass(Bidirectional, null, [{
17436
17433
  key: "getMeasurementData",
17437
17434
  value: function getMeasurementData(MeasurementGroup) {
17438
17435
  var ContentSequence = MeasurementGroup.ContentSequence;
@@ -17563,7 +17560,6 @@
17563
17560
  };
17564
17561
  }
17565
17562
  }]);
17566
- return Bidirectional;
17567
17563
  }();
17568
17564
  Bidirectional$1.toolType = BIDIRECTIONAL$1;
17569
17565
  Bidirectional$1.utilityToolType = BIDIRECTIONAL$1;
@@ -17584,12 +17580,12 @@
17584
17580
  MeasurementReport$3.registerTool(Bidirectional$1);
17585
17581
 
17586
17582
  var Ellipse$1 = /*#__PURE__*/function (_TID300Measurement) {
17587
- _inherits(Ellipse, _TID300Measurement);
17588
17583
  function Ellipse() {
17589
17584
  _classCallCheck(this, Ellipse);
17590
17585
  return _callSuper(this, Ellipse, arguments);
17591
17586
  }
17592
- _createClass(Ellipse, [{
17587
+ _inherits(Ellipse, _TID300Measurement);
17588
+ return _createClass(Ellipse, [{
17593
17589
  key: "contentItem",
17594
17590
  value: function contentItem() {
17595
17591
  var _this$props = this.props,
@@ -17647,7 +17643,6 @@
17647
17643
  return this.getMeasurement(measurements);
17648
17644
  }
17649
17645
  }]);
17650
- return Ellipse;
17651
17646
  }(TID300Measurement);
17652
17647
 
17653
17648
  var ELLIPTICALROI$1 = "EllipticalRoi";
@@ -17657,7 +17652,7 @@
17657
17652
  }
17658
17653
 
17659
17654
  // TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
17660
- _createClass(EllipticalRoi, null, [{
17655
+ return _createClass(EllipticalRoi, null, [{
17661
17656
  key: "getMeasurementData",
17662
17657
  value: function getMeasurementData(MeasurementGroup) {
17663
17658
  var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
@@ -17802,7 +17797,6 @@
17802
17797
  };
17803
17798
  }
17804
17799
  }]);
17805
- return EllipticalRoi;
17806
17800
  }();
17807
17801
  EllipticalRoi.toolType = ELLIPTICALROI$1;
17808
17802
  EllipticalRoi.utilityToolType = ELLIPTICALROI$1;
@@ -17823,12 +17817,12 @@
17823
17817
  MeasurementReport$3.registerTool(EllipticalRoi);
17824
17818
 
17825
17819
  var Circle$1 = /*#__PURE__*/function (_TID300Measurement) {
17826
- _inherits(Circle, _TID300Measurement);
17827
17820
  function Circle() {
17828
17821
  _classCallCheck(this, Circle);
17829
17822
  return _callSuper(this, Circle, arguments);
17830
17823
  }
17831
- _createClass(Circle, [{
17824
+ _inherits(Circle, _TID300Measurement);
17825
+ return _createClass(Circle, [{
17832
17826
  key: "contentItem",
17833
17827
  value: function contentItem() {
17834
17828
  var _this$props = this.props,
@@ -17905,7 +17899,6 @@
17905
17899
  return this.getMeasurement(measurements);
17906
17900
  }
17907
17901
  }]);
17908
- return Circle;
17909
17902
  }(TID300Measurement);
17910
17903
 
17911
17904
  var CIRCLEROI = "CircleRoi";
@@ -17915,7 +17908,7 @@
17915
17908
  }
17916
17909
 
17917
17910
  /** Gets the measurement data for cornerstone, given DICOM SR measurement data. */
17918
- _createClass(CircleRoi, null, [{
17911
+ return _createClass(CircleRoi, null, [{
17919
17912
  key: "getMeasurementData",
17920
17913
  value: function getMeasurementData(MeasurementGroup) {
17921
17914
  var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
@@ -18004,7 +17997,6 @@
18004
17997
  };
18005
17998
  }
18006
17999
  }]);
18007
- return CircleRoi;
18008
18000
  }();
18009
18001
  CircleRoi.toolType = CIRCLEROI;
18010
18002
  CircleRoi.utilityToolType = CIRCLEROI;
@@ -18025,12 +18017,12 @@
18025
18017
  MeasurementReport$3.registerTool(CircleRoi);
18026
18018
 
18027
18019
  var Point$1 = /*#__PURE__*/function (_TID300Measurement) {
18028
- _inherits(Point, _TID300Measurement);
18029
18020
  function Point() {
18030
18021
  _classCallCheck(this, Point);
18031
18022
  return _callSuper(this, Point, arguments);
18032
18023
  }
18033
- _createClass(Point, [{
18024
+ _inherits(Point, _TID300Measurement);
18025
+ return _createClass(Point, [{
18034
18026
  key: "contentItem",
18035
18027
  value: function contentItem() {
18036
18028
  var _this$props = this.props,
@@ -18071,7 +18063,6 @@
18071
18063
  }]);
18072
18064
  }
18073
18065
  }]);
18074
- return Point;
18075
18066
  }(TID300Measurement);
18076
18067
 
18077
18068
  var ARROW_ANNOTATE$1 = "ArrowAnnotate";
@@ -18080,7 +18071,7 @@
18080
18071
  function ArrowAnnotate() {
18081
18072
  _classCallCheck(this, ArrowAnnotate);
18082
18073
  }
18083
- _createClass(ArrowAnnotate, null, [{
18074
+ return _createClass(ArrowAnnotate, null, [{
18084
18075
  key: "getMeasurementData",
18085
18076
  value: function getMeasurementData(MeasurementGroup) {
18086
18077
  var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
@@ -18145,7 +18136,6 @@
18145
18136
  return TID300RepresentationArguments;
18146
18137
  }
18147
18138
  }]);
18148
- return ArrowAnnotate;
18149
18139
  }();
18150
18140
  ArrowAnnotate$2.toolType = ARROW_ANNOTATE$1;
18151
18141
  ArrowAnnotate$2.utilityToolType = ARROW_ANNOTATE$1;
@@ -22013,12 +22003,12 @@ b"+i+"*=d\
22013
22003
  }
22014
22004
 
22015
22005
  var CobbAngle$1 = /*#__PURE__*/function (_OpenPolyline) {
22016
- _inherits(CobbAngle, _OpenPolyline);
22017
22006
  function CobbAngle() {
22018
22007
  _classCallCheck(this, CobbAngle);
22019
22008
  return _callSuper(this, CobbAngle, arguments);
22020
22009
  }
22021
- _createClass(CobbAngle, [{
22010
+ _inherits(CobbAngle, _OpenPolyline);
22011
+ return _createClass(CobbAngle, [{
22022
22012
  key: "getPoints",
22023
22013
  value: function getPoints() {
22024
22014
  var _this$props = this.props,
@@ -22052,7 +22042,6 @@ b"+i+"*=d\
22052
22042
  };
22053
22043
  }
22054
22044
  }]);
22055
- return CobbAngle;
22056
22045
  }(OpenPolyline);
22057
22046
 
22058
22047
  var COBB_ANGLE = "CobbAngle";
@@ -22062,7 +22051,7 @@ b"+i+"*=d\
22062
22051
  }
22063
22052
 
22064
22053
  // TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
22065
- _createClass(CobbAngle, null, [{
22054
+ return _createClass(CobbAngle, null, [{
22066
22055
  key: "getMeasurementData",
22067
22056
  value: function getMeasurementData(MeasurementGroup) {
22068
22057
  var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
@@ -22127,7 +22116,6 @@ b"+i+"*=d\
22127
22116
  };
22128
22117
  }
22129
22118
  }]);
22130
- return CobbAngle;
22131
22119
  }();
22132
22120
  CobbAngle.toolType = COBB_ANGLE;
22133
22121
  CobbAngle.utilityToolType = COBB_ANGLE;
@@ -22158,7 +22146,7 @@ b"+i+"*=d\
22158
22146
  * @param MeasurementGroup
22159
22147
  * @returns
22160
22148
  */
22161
- _createClass(Angle, null, [{
22149
+ return _createClass(Angle, null, [{
22162
22150
  key: "getMeasurementData",
22163
22151
  value: function getMeasurementData(MeasurementGroup) {
22164
22152
  var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
@@ -22216,7 +22204,6 @@ b"+i+"*=d\
22216
22204
  };
22217
22205
  }
22218
22206
  }]);
22219
- return Angle;
22220
22207
  }();
22221
22208
  Angle.toolType = ANGLE;
22222
22209
  Angle.utilityToolType = ANGLE;
@@ -22240,7 +22227,7 @@ b"+i+"*=d\
22240
22227
  function RectangleRoi() {
22241
22228
  _classCallCheck(this, RectangleRoi);
22242
22229
  }
22243
- _createClass(RectangleRoi, null, [{
22230
+ return _createClass(RectangleRoi, null, [{
22244
22231
  key: "getMeasurementData",
22245
22232
  value: function getMeasurementData(MeasurementGroup) {
22246
22233
  var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
@@ -22309,7 +22296,6 @@ b"+i+"*=d\
22309
22296
  };
22310
22297
  }
22311
22298
  }]);
22312
- return RectangleRoi;
22313
22299
  }();
22314
22300
  RectangleRoi.toolType = "RectangleRoi";
22315
22301
  RectangleRoi.utilityToolType = "RectangleRoi";
@@ -22429,7 +22415,7 @@ b"+i+"*=d\
22429
22415
  function MeasurementReport() {
22430
22416
  _classCallCheck(this, MeasurementReport);
22431
22417
  }
22432
- _createClass(MeasurementReport, null, [{
22418
+ return _createClass(MeasurementReport, null, [{
22433
22419
  key: "getCornerstoneLabelFromDefaultState",
22434
22420
  value: function getCornerstoneLabelFromDefaultState(defaultState) {
22435
22421
  var _defaultState$finding = defaultState.findingSites,
@@ -22680,7 +22666,6 @@ b"+i+"*=d\
22680
22666
  MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.toolType] = toolClass.utilityToolType;
22681
22667
  }
22682
22668
  }]);
22683
- return MeasurementReport;
22684
22669
  }();
22685
22670
  MeasurementReport$2.MEASUREMENT_BY_TOOLTYPE = {};
22686
22671
  MeasurementReport$2.CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE = {};
@@ -22696,7 +22681,7 @@ b"+i+"*=d\
22696
22681
  }
22697
22682
 
22698
22683
  // TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
22699
- _createClass(Length, null, [{
22684
+ return _createClass(Length, null, [{
22700
22685
  key: "getMeasurementData",
22701
22686
  value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
22702
22687
  var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Length.toolType),
@@ -22763,7 +22748,6 @@ b"+i+"*=d\
22763
22748
  };
22764
22749
  }
22765
22750
  }]);
22766
- return Length;
22767
22751
  }();
22768
22752
  Length.toolType = LENGTH;
22769
22753
  Length.utilityToolType = LENGTH;
@@ -22791,7 +22775,7 @@ b"+i+"*=d\
22791
22775
  function Bidirectional() {
22792
22776
  _classCallCheck(this, Bidirectional);
22793
22777
  }
22794
- _createClass(Bidirectional, null, [{
22778
+ return _createClass(Bidirectional, null, [{
22795
22779
  key: "getMeasurementData",
22796
22780
  value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
22797
22781
  var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Bidirectional.toolType),
@@ -22902,7 +22886,6 @@ b"+i+"*=d\
22902
22886
  };
22903
22887
  }
22904
22888
  }]);
22905
- return Bidirectional;
22906
22889
  }();
22907
22890
  Bidirectional.toolType = BIDIRECTIONAL;
22908
22891
  Bidirectional.utilityToolType = BIDIRECTIONAL;
@@ -23787,7 +23770,7 @@ b"+i+"*=d\
23787
23770
  function EllipticalROI() {
23788
23771
  _classCallCheck(this, EllipticalROI);
23789
23772
  }
23790
- _createClass(EllipticalROI, null, [{
23773
+ return _createClass(EllipticalROI, null, [{
23791
23774
  key: "getMeasurementData",
23792
23775
  value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
23793
23776
  var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, EllipticalROI.toolType),
@@ -23933,7 +23916,6 @@ b"+i+"*=d\
23933
23916
  };
23934
23917
  }
23935
23918
  }]);
23936
- return EllipticalROI;
23937
23919
  }();
23938
23920
  EllipticalROI.toolType = ELLIPTICALROI;
23939
23921
  EllipticalROI.utilityToolType = ELLIPTICALROI;
@@ -23957,12 +23939,12 @@ b"+i+"*=d\
23957
23939
  MeasurementReport$2.registerTool(EllipticalROI);
23958
23940
 
23959
23941
  var ArrowAnnotate$1 = /*#__PURE__*/function (_OpenPolyline) {
23960
- _inherits(ArrowAnnotate, _OpenPolyline);
23961
23942
  function ArrowAnnotate() {
23962
23943
  _classCallCheck(this, ArrowAnnotate);
23963
23944
  return _callSuper(this, ArrowAnnotate, arguments);
23964
23945
  }
23965
- _createClass(ArrowAnnotate, [{
23946
+ _inherits(ArrowAnnotate, _OpenPolyline);
23947
+ return _createClass(ArrowAnnotate, [{
23966
23948
  key: "getPoints",
23967
23949
  value: function getPoints() {
23968
23950
  return this.props.points;
@@ -23989,7 +23971,6 @@ b"+i+"*=d\
23989
23971
  };
23990
23972
  }
23991
23973
  }]);
23992
- return ArrowAnnotate;
23993
23974
  }(OpenPolyline);
23994
23975
 
23995
23976
  var ARROW_ANNOTATE = "ArrowAnnotate";
@@ -24000,7 +23981,7 @@ b"+i+"*=d\
24000
23981
  function ArrowAnnotate() {
24001
23982
  _classCallCheck(this, ArrowAnnotate);
24002
23983
  }
24003
- _createClass(ArrowAnnotate, null, [{
23984
+ return _createClass(ArrowAnnotate, null, [{
24004
23985
  key: "getMeasurementData",
24005
23986
  value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
24006
23987
  var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, ArrowAnnotate.toolType),
@@ -24088,7 +24069,6 @@ b"+i+"*=d\
24088
24069
  return TID300RepresentationArguments;
24089
24070
  }
24090
24071
  }]);
24091
- return ArrowAnnotate;
24092
24072
  }();
24093
24073
  ArrowAnnotate.toolType = ARROW_ANNOTATE;
24094
24074
  ArrowAnnotate.utilityToolType = ARROW_ANNOTATE;
@@ -24114,7 +24094,7 @@ b"+i+"*=d\
24114
24094
  function Probe() {
24115
24095
  _classCallCheck(this, Probe);
24116
24096
  }
24117
- _createClass(Probe, null, [{
24097
+ return _createClass(Probe, null, [{
24118
24098
  key: "getMeasurementData",
24119
24099
  value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
24120
24100
  var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Probe.toolType),
@@ -24169,7 +24149,6 @@ b"+i+"*=d\
24169
24149
  return TID300RepresentationArguments;
24170
24150
  }
24171
24151
  }]);
24172
- return Probe;
24173
24152
  }();
24174
24153
  Probe.toolType = PROBE;
24175
24154
  Probe.utilityToolType = PROBE;
@@ -24196,7 +24175,7 @@ b"+i+"*=d\
24196
24175
  function PlanarFreehandROI() {
24197
24176
  _classCallCheck(this, PlanarFreehandROI);
24198
24177
  }
24199
- _createClass(PlanarFreehandROI, null, [{
24178
+ return _createClass(PlanarFreehandROI, null, [{
24200
24179
  key: "getMeasurementData",
24201
24180
  value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
24202
24181
  var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, PlanarFreehandROI.toolType),
@@ -24273,7 +24252,6 @@ b"+i+"*=d\
24273
24252
  };
24274
24253
  }
24275
24254
  }]);
24276
- return PlanarFreehandROI;
24277
24255
  }();
24278
24256
  PlanarFreehandROI.toolType = PLANARFREEHANDROI;
24279
24257
  PlanarFreehandROI.utilityToolType = PLANARFREEHANDROI;
@@ -24435,7 +24413,7 @@ b"+i+"*=d\
24435
24413
  * @param dataset
24436
24414
  * @return {{}}
24437
24415
  */
24438
- _createClass(Segmentation, null, [{
24416
+ return _createClass(Segmentation, null, [{
24439
24417
  key: "generateSegments",
24440
24418
  value: function generateSegments(dataset) {
24441
24419
  if (dataset.SegmentSequence.constructor.name !== "Array") {
@@ -24483,7 +24461,6 @@ b"+i+"*=d\
24483
24461
  return segments;
24484
24462
  }
24485
24463
  }]);
24486
- return Segmentation;
24487
24464
  }();
24488
24465
 
24489
24466
  var VTKjs = {
@@ -24509,7 +24486,7 @@ b"+i+"*=d\
24509
24486
  function MeasurementReport() {
24510
24487
  _classCallCheck(this, MeasurementReport);
24511
24488
  }
24512
- _createClass(MeasurementReport, null, [{
24489
+ return _createClass(MeasurementReport, null, [{
24513
24490
  key: "generateReport",
24514
24491
  value: function generateReport(rois, metadataProvider, options) {
24515
24492
  // Input is all ROIS returned via viewer.getALLROIs()
@@ -24648,7 +24625,6 @@ b"+i+"*=d\
24648
24625
  MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.graphicType] = toolClass.utilityToolType;
24649
24626
  }
24650
24627
  }]);
24651
- return MeasurementReport;
24652
24628
  }();
24653
24629
  MeasurementReport$1.MEASUREMENT_BY_TOOLTYPE = {};
24654
24630
  MeasurementReport$1.MICROSCOPY_TOOL_CLASSES_BY_UTILITY_TYPE = {};
@@ -24658,7 +24634,7 @@ b"+i+"*=d\
24658
24634
  function Polyline() {
24659
24635
  _classCallCheck(this, Polyline);
24660
24636
  }
24661
- _createClass(Polyline, null, [{
24637
+ return _createClass(Polyline, null, [{
24662
24638
  key: "getMeasurementData",
24663
24639
  value: function getMeasurementData(measurementContent) {
24664
24640
  // removing duplication and Getting only the graphicData information
@@ -24695,7 +24671,6 @@ b"+i+"*=d\
24695
24671
  };
24696
24672
  }
24697
24673
  }]);
24698
- return Polyline;
24699
24674
  }();
24700
24675
  Polyline.graphicType = "POLYLINE";
24701
24676
  Polyline.toolType = "Polyline";
@@ -24704,12 +24679,12 @@ b"+i+"*=d\
24704
24679
  MeasurementReport$1.registerTool(Polyline);
24705
24680
 
24706
24681
  var Polygon$1 = /*#__PURE__*/function (_TID300Measurement) {
24707
- _inherits(Polygon, _TID300Measurement);
24708
24682
  function Polygon() {
24709
24683
  _classCallCheck(this, Polygon);
24710
24684
  return _callSuper(this, Polygon, arguments);
24711
24685
  }
24712
- _createClass(Polygon, [{
24686
+ _inherits(Polygon, _TID300Measurement);
24687
+ return _createClass(Polygon, [{
24713
24688
  key: "contentItem",
24714
24689
  value: function contentItem() {
24715
24690
  var _this$props = this.props,
@@ -24763,14 +24738,13 @@ b"+i+"*=d\
24763
24738
  }]);
24764
24739
  }
24765
24740
  }]);
24766
- return Polygon;
24767
24741
  }(TID300Measurement);
24768
24742
 
24769
24743
  var Polygon = /*#__PURE__*/function () {
24770
24744
  function Polygon() {
24771
24745
  _classCallCheck(this, Polygon);
24772
24746
  }
24773
- _createClass(Polygon, null, [{
24747
+ return _createClass(Polygon, null, [{
24774
24748
  key: "getMeasurementData",
24775
24749
  value: function getMeasurementData(measurementContent) {
24776
24750
  // removing duplication and Getting only the graphicData information
@@ -24807,7 +24781,6 @@ b"+i+"*=d\
24807
24781
  };
24808
24782
  }
24809
24783
  }]);
24810
- return Polygon;
24811
24784
  }();
24812
24785
  Polygon.graphicType = "POLYGON";
24813
24786
  Polygon.toolType = "Polygon";
@@ -24819,7 +24792,7 @@ b"+i+"*=d\
24819
24792
  function Point() {
24820
24793
  _classCallCheck(this, Point);
24821
24794
  }
24822
- _createClass(Point, null, [{
24795
+ return _createClass(Point, null, [{
24823
24796
  key: "getMeasurementData",
24824
24797
  value: function getMeasurementData(measurementContent) {
24825
24798
  var measurement = measurementContent.map(function (item) {
@@ -24847,7 +24820,6 @@ b"+i+"*=d\
24847
24820
  };
24848
24821
  }
24849
24822
  }]);
24850
- return Point;
24851
24823
  }();
24852
24824
  Point.graphicType = "POINT";
24853
24825
  Point.toolType = "Point";
@@ -24859,7 +24831,7 @@ b"+i+"*=d\
24859
24831
  function Circle() {
24860
24832
  _classCallCheck(this, Circle);
24861
24833
  }
24862
- _createClass(Circle, null, [{
24834
+ return _createClass(Circle, null, [{
24863
24835
  key: "getMeasurementData",
24864
24836
  value: function getMeasurementData(measurementContent) {
24865
24837
  // removing duplication and Getting only the graphicData information
@@ -24896,7 +24868,6 @@ b"+i+"*=d\
24896
24868
  };
24897
24869
  }
24898
24870
  }]);
24899
- return Circle;
24900
24871
  }();
24901
24872
  Circle.graphicType = "CIRCLE";
24902
24873
  Circle.toolType = "Circle";
@@ -24908,7 +24879,7 @@ b"+i+"*=d\
24908
24879
  function Ellipse() {
24909
24880
  _classCallCheck(this, Ellipse);
24910
24881
  }
24911
- _createClass(Ellipse, null, [{
24882
+ return _createClass(Ellipse, null, [{
24912
24883
  key: "getMeasurementData",
24913
24884
  value: function getMeasurementData(measurementContent) {
24914
24885
  // removing duplication and Getting only the graphicData information
@@ -24945,7 +24916,6 @@ b"+i+"*=d\
24945
24916
  };
24946
24917
  }
24947
24918
  }]);
24948
- return Ellipse;
24949
24919
  }();
24950
24920
  Ellipse.graphicType = "ELLIPSE";
24951
24921
  Ellipse.toolType = "Ellipse";
@@ -24975,12 +24945,12 @@ b"+i+"*=d\
24975
24945
  };
24976
24946
 
24977
24947
  var Calibration = /*#__PURE__*/function (_OpenPolyline) {
24978
- _inherits(Calibration, _OpenPolyline);
24979
24948
  function Calibration() {
24980
24949
  _classCallCheck(this, Calibration);
24981
24950
  return _callSuper(this, Calibration, arguments);
24982
24951
  }
24983
- _createClass(Calibration, [{
24952
+ _inherits(Calibration, _OpenPolyline);
24953
+ return _createClass(Calibration, [{
24984
24954
  key: "getPoints",
24985
24955
  value: function getPoints() {
24986
24956
  var _this$props = this.props,
@@ -25010,7 +24980,6 @@ b"+i+"*=d\
25010
24980
  };
25011
24981
  }
25012
24982
  }]);
25013
- return Calibration;
25014
24983
  }(OpenPolyline);
25015
24984
 
25016
24985
  // To be implemented:
@@ -25419,7 +25388,7 @@ b"+i+"*=d\
25419
25388
  this[_schemeDesignator] = options.schemeDesignator;
25420
25389
  this[_schemeVersion] = options.schemeVersion || null;
25421
25390
  }
25422
- _createClass(Code, [{
25391
+ return _createClass(Code, [{
25423
25392
  key: "value",
25424
25393
  get: function get() {
25425
25394
  return this[_value];
@@ -25440,7 +25409,6 @@ b"+i+"*=d\
25440
25409
  return this[_schemeVersion];
25441
25410
  }
25442
25411
  }]);
25443
- return Code;
25444
25412
  }();
25445
25413
  var CodedConcept = /*#__PURE__*/function () {
25446
25414
  function CodedConcept(options) {
@@ -25461,7 +25429,7 @@ b"+i+"*=d\
25461
25429
  this.CodingSchemeVersion = options.schemeVersion;
25462
25430
  }
25463
25431
  }
25464
- _createClass(CodedConcept, [{
25432
+ return _createClass(CodedConcept, [{
25465
25433
  key: "equals",
25466
25434
  value: function equals(other) {
25467
25435
  if (other.value === this.value && other.schemeDesignator === this.schemeDesignator) {
@@ -25493,7 +25461,6 @@ b"+i+"*=d\
25493
25461
  return this.CodingSchemeVersion;
25494
25462
  }
25495
25463
  }]);
25496
- return CodedConcept;
25497
25464
  }();
25498
25465
 
25499
25466
  var coding = /*#__PURE__*/Object.freeze({
@@ -25586,7 +25553,6 @@ b"+i+"*=d\
25586
25553
  return DA(date) + TM(date);
25587
25554
  }
25588
25555
  var ContentSequence = /*#__PURE__*/function (_Array) {
25589
- _inherits(ContentSequence, _Array);
25590
25556
  function ContentSequence() {
25591
25557
  _classCallCheck(this, ContentSequence);
25592
25558
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -25597,6 +25563,7 @@ b"+i+"*=d\
25597
25563
 
25598
25564
  // filterBy(options) {
25599
25565
  // }
25566
+ _inherits(ContentSequence, _Array);
25600
25567
  return _createClass(ContentSequence);
25601
25568
  }(/*#__PURE__*/_wrapNativeSuper(Array));
25602
25569
  var ContentItem = /*#__PURE__*/_createClass(function ContentItem(options) {
@@ -25630,7 +25597,6 @@ b"+i+"*=d\
25630
25597
  // }
25631
25598
  );
25632
25599
  var CodeContentItem = /*#__PURE__*/function (_ContentItem) {
25633
- _inherits(CodeContentItem, _ContentItem);
25634
25600
  function CodeContentItem(options) {
25635
25601
  var _this;
25636
25602
  _classCallCheck(this, CodeContentItem);
@@ -25648,10 +25614,10 @@ b"+i+"*=d\
25648
25614
  _this.ConceptCodeSequence = addAccessors([options.value]);
25649
25615
  return _this;
25650
25616
  }
25617
+ _inherits(CodeContentItem, _ContentItem);
25651
25618
  return _createClass(CodeContentItem);
25652
25619
  }(ContentItem);
25653
25620
  var TextContentItem = /*#__PURE__*/function (_ContentItem2) {
25654
- _inherits(TextContentItem, _ContentItem2);
25655
25621
  function TextContentItem(options) {
25656
25622
  var _this2;
25657
25623
  _classCallCheck(this, TextContentItem);
@@ -25669,10 +25635,10 @@ b"+i+"*=d\
25669
25635
  _this2.TextValue = options.value;
25670
25636
  return _this2;
25671
25637
  }
25638
+ _inherits(TextContentItem, _ContentItem2);
25672
25639
  return _createClass(TextContentItem);
25673
25640
  }(ContentItem);
25674
25641
  var PNameContentItem = /*#__PURE__*/function (_ContentItem3) {
25675
- _inherits(PNameContentItem, _ContentItem3);
25676
25642
  function PNameContentItem(options) {
25677
25643
  var _this3;
25678
25644
  _classCallCheck(this, PNameContentItem);
@@ -25690,10 +25656,10 @@ b"+i+"*=d\
25690
25656
  _this3.PersonName = options.value;
25691
25657
  return _this3;
25692
25658
  }
25659
+ _inherits(PNameContentItem, _ContentItem3);
25693
25660
  return _createClass(PNameContentItem);
25694
25661
  }(ContentItem);
25695
25662
  var TimeContentItem = /*#__PURE__*/function (_ContentItem4) {
25696
- _inherits(TimeContentItem, _ContentItem4);
25697
25663
  function TimeContentItem(options) {
25698
25664
  var _this4;
25699
25665
  _classCallCheck(this, TimeContentItem);
@@ -25711,10 +25677,10 @@ b"+i+"*=d\
25711
25677
  _this4.Time = TM(options.value);
25712
25678
  return _this4;
25713
25679
  }
25680
+ _inherits(TimeContentItem, _ContentItem4);
25714
25681
  return _createClass(TimeContentItem);
25715
25682
  }(ContentItem);
25716
25683
  var DateContentItem = /*#__PURE__*/function (_ContentItem5) {
25717
- _inherits(DateContentItem, _ContentItem5);
25718
25684
  function DateContentItem(options) {
25719
25685
  var _this5;
25720
25686
  _classCallCheck(this, DateContentItem);
@@ -25732,10 +25698,10 @@ b"+i+"*=d\
25732
25698
  _this5.Date = DA(options.value);
25733
25699
  return _this5;
25734
25700
  }
25701
+ _inherits(DateContentItem, _ContentItem5);
25735
25702
  return _createClass(DateContentItem);
25736
25703
  }(ContentItem);
25737
25704
  var DateTimeContentItem = /*#__PURE__*/function (_ContentItem6) {
25738
- _inherits(DateTimeContentItem, _ContentItem6);
25739
25705
  function DateTimeContentItem(options) {
25740
25706
  var _this6;
25741
25707
  _classCallCheck(this, DateTimeContentItem);
@@ -25753,10 +25719,10 @@ b"+i+"*=d\
25753
25719
  _this6.DateTime = DT(options.value);
25754
25720
  return _this6;
25755
25721
  }
25722
+ _inherits(DateTimeContentItem, _ContentItem6);
25756
25723
  return _createClass(DateTimeContentItem);
25757
25724
  }(ContentItem);
25758
25725
  var UIDRefContentItem = /*#__PURE__*/function (_ContentItem7) {
25759
- _inherits(UIDRefContentItem, _ContentItem7);
25760
25726
  function UIDRefContentItem(options) {
25761
25727
  var _this7;
25762
25728
  _classCallCheck(this, UIDRefContentItem);
@@ -25774,10 +25740,10 @@ b"+i+"*=d\
25774
25740
  _this7.UID = options.value;
25775
25741
  return _this7;
25776
25742
  }
25743
+ _inherits(UIDRefContentItem, _ContentItem7);
25777
25744
  return _createClass(UIDRefContentItem);
25778
25745
  }(ContentItem);
25779
25746
  var NumContentItem = /*#__PURE__*/function (_ContentItem8) {
25780
- _inherits(NumContentItem, _ContentItem8);
25781
25747
  function NumContentItem(options) {
25782
25748
  var _this8;
25783
25749
  _classCallCheck(this, NumContentItem);
@@ -25813,10 +25779,10 @@ b"+i+"*=d\
25813
25779
  }
25814
25780
  return _this8;
25815
25781
  }
25782
+ _inherits(NumContentItem, _ContentItem8);
25816
25783
  return _createClass(NumContentItem);
25817
25784
  }(ContentItem);
25818
25785
  var ContainerContentItem = /*#__PURE__*/function (_ContentItem9) {
25819
- _inherits(ContainerContentItem, _ContentItem9);
25820
25786
  function ContainerContentItem(options) {
25821
25787
  var _this9;
25822
25788
  _classCallCheck(this, ContainerContentItem);
@@ -25841,10 +25807,10 @@ b"+i+"*=d\
25841
25807
  }
25842
25808
  return _this9;
25843
25809
  }
25810
+ _inherits(ContainerContentItem, _ContentItem9);
25844
25811
  return _createClass(ContainerContentItem);
25845
25812
  }(ContentItem);
25846
25813
  var CompositeContentItem = /*#__PURE__*/function (_ContentItem0) {
25847
- _inherits(CompositeContentItem, _ContentItem0);
25848
25814
  function CompositeContentItem(options) {
25849
25815
  var _this0;
25850
25816
  _classCallCheck(this, CompositeContentItem);
@@ -25871,10 +25837,10 @@ b"+i+"*=d\
25871
25837
  _this0.ReferenceSOPSequence = [item];
25872
25838
  return _this0;
25873
25839
  }
25840
+ _inherits(CompositeContentItem, _ContentItem0);
25874
25841
  return _createClass(CompositeContentItem);
25875
25842
  }(ContentItem);
25876
25843
  var ImageContentItem = /*#__PURE__*/function (_ContentItem1) {
25877
- _inherits(ImageContentItem, _ContentItem1);
25878
25844
  function ImageContentItem(options) {
25879
25845
  var _this1;
25880
25846
  _classCallCheck(this, ImageContentItem);
@@ -25915,10 +25881,10 @@ b"+i+"*=d\
25915
25881
  _this1.ReferencedSOPSequence = [item];
25916
25882
  return _this1;
25917
25883
  }
25884
+ _inherits(ImageContentItem, _ContentItem1);
25918
25885
  return _createClass(ImageContentItem);
25919
25886
  }(ContentItem);
25920
25887
  var ScoordContentItem = /*#__PURE__*/function (_ContentItem10) {
25921
- _inherits(ScoordContentItem, _ContentItem10);
25922
25888
  function ScoordContentItem(options) {
25923
25889
  var _this10;
25924
25890
  _classCallCheck(this, ScoordContentItem);
@@ -25962,10 +25928,10 @@ b"+i+"*=d\
25962
25928
  }
25963
25929
  return _this10;
25964
25930
  }
25931
+ _inherits(ScoordContentItem, _ContentItem10);
25965
25932
  return _createClass(ScoordContentItem);
25966
25933
  }(ContentItem);
25967
25934
  var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem11) {
25968
- _inherits(Scoord3DContentItem, _ContentItem11);
25969
25935
  function Scoord3DContentItem(options) {
25970
25936
  var _this11;
25971
25937
  _classCallCheck(this, Scoord3DContentItem);
@@ -26009,10 +25975,10 @@ b"+i+"*=d\
26009
25975
  }
26010
25976
  return _this11;
26011
25977
  }
25978
+ _inherits(Scoord3DContentItem, _ContentItem11);
26012
25979
  return _createClass(Scoord3DContentItem);
26013
25980
  }(ContentItem);
26014
25981
  var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
26015
- _inherits(TcoordContentItem, _ContentItem12);
26016
25982
  function TcoordContentItem(options) {
26017
25983
  var _this12;
26018
25984
  _classCallCheck(this, TcoordContentItem);
@@ -26049,6 +26015,7 @@ b"+i+"*=d\
26049
26015
  }
26050
26016
  return _this12;
26051
26017
  }
26018
+ _inherits(TcoordContentItem, _ContentItem12);
26052
26019
  return _createClass(TcoordContentItem);
26053
26020
  }(ContentItem);
26054
26021
 
@@ -26078,7 +26045,6 @@ b"+i+"*=d\
26078
26045
  });
26079
26046
 
26080
26047
  var LongitudinalTemporalOffsetFromEvent = /*#__PURE__*/function (_NumContentItem) {
26081
- _inherits(LongitudinalTemporalOffsetFromEvent, _NumContentItem);
26082
26048
  function LongitudinalTemporalOffsetFromEvent(options) {
26083
26049
  var _this;
26084
26050
  _classCallCheck(this, LongitudinalTemporalOffsetFromEvent);
@@ -26105,10 +26071,10 @@ b"+i+"*=d\
26105
26071
  _this.ContentSequence.push(item);
26106
26072
  return _this;
26107
26073
  }
26074
+ _inherits(LongitudinalTemporalOffsetFromEvent, _NumContentItem);
26108
26075
  return _createClass(LongitudinalTemporalOffsetFromEvent);
26109
26076
  }(NumContentItem);
26110
26077
  var SourceImageForRegion = /*#__PURE__*/function (_ImageContentItem) {
26111
- _inherits(SourceImageForRegion, _ImageContentItem);
26112
26078
  function SourceImageForRegion(options) {
26113
26079
  _classCallCheck(this, SourceImageForRegion);
26114
26080
  return _callSuper(this, SourceImageForRegion, [{
@@ -26123,10 +26089,10 @@ b"+i+"*=d\
26123
26089
  relationshipType: RelationshipTypes.SELECTED_FROM
26124
26090
  }]);
26125
26091
  }
26092
+ _inherits(SourceImageForRegion, _ImageContentItem);
26126
26093
  return _createClass(SourceImageForRegion);
26127
26094
  }(ImageContentItem);
26128
26095
  var SourceImageForSegmentation = /*#__PURE__*/function (_ImageContentItem2) {
26129
- _inherits(SourceImageForSegmentation, _ImageContentItem2);
26130
26096
  function SourceImageForSegmentation(options) {
26131
26097
  _classCallCheck(this, SourceImageForSegmentation);
26132
26098
  return _callSuper(this, SourceImageForSegmentation, [{
@@ -26141,10 +26107,10 @@ b"+i+"*=d\
26141
26107
  relationshipType: RelationshipTypes.SELECTED_FROM
26142
26108
  }]);
26143
26109
  }
26110
+ _inherits(SourceImageForSegmentation, _ImageContentItem2);
26144
26111
  return _createClass(SourceImageForSegmentation);
26145
26112
  }(ImageContentItem);
26146
26113
  var SourceSeriesForSegmentation = /*#__PURE__*/function (_UIDRefContentItem) {
26147
- _inherits(SourceSeriesForSegmentation, _UIDRefContentItem);
26148
26114
  function SourceSeriesForSegmentation(options) {
26149
26115
  _classCallCheck(this, SourceSeriesForSegmentation);
26150
26116
  return _callSuper(this, SourceSeriesForSegmentation, [{
@@ -26157,10 +26123,10 @@ b"+i+"*=d\
26157
26123
  relationshipType: RelationshipTypes.CONTAINS
26158
26124
  }]);
26159
26125
  }
26126
+ _inherits(SourceSeriesForSegmentation, _UIDRefContentItem);
26160
26127
  return _createClass(SourceSeriesForSegmentation);
26161
26128
  }(UIDRefContentItem);
26162
26129
  var ImageRegion = /*#__PURE__*/function (_ScoordContentItem) {
26163
- _inherits(ImageRegion, _ScoordContentItem);
26164
26130
  function ImageRegion(options) {
26165
26131
  var _this2;
26166
26132
  _classCallCheck(this, ImageRegion);
@@ -26188,10 +26154,10 @@ b"+i+"*=d\
26188
26154
  _this2.ContentSequence.push(options.sourceImage);
26189
26155
  return _this2;
26190
26156
  }
26157
+ _inherits(ImageRegion, _ScoordContentItem);
26191
26158
  return _createClass(ImageRegion);
26192
26159
  }(ScoordContentItem);
26193
26160
  var ImageRegion3D = /*#__PURE__*/function (_Scoord3DContentItem) {
26194
- _inherits(ImageRegion3D, _Scoord3DContentItem);
26195
26161
  function ImageRegion3D(options) {
26196
26162
  var _this3;
26197
26163
  _classCallCheck(this, ImageRegion3D);
@@ -26214,10 +26180,10 @@ b"+i+"*=d\
26214
26180
  }
26215
26181
  return _this3;
26216
26182
  }
26183
+ _inherits(ImageRegion3D, _Scoord3DContentItem);
26217
26184
  return _createClass(ImageRegion3D);
26218
26185
  }(Scoord3DContentItem);
26219
26186
  var VolumeSurface = /*#__PURE__*/function (_Scoord3DContentItem2) {
26220
- _inherits(VolumeSurface, _Scoord3DContentItem2);
26221
26187
  function VolumeSurface(options) {
26222
26188
  var _this4;
26223
26189
  _classCallCheck(this, VolumeSurface);
@@ -26253,10 +26219,10 @@ b"+i+"*=d\
26253
26219
  }
26254
26220
  return _this4;
26255
26221
  }
26222
+ _inherits(VolumeSurface, _Scoord3DContentItem2);
26256
26223
  return _createClass(VolumeSurface);
26257
26224
  }(Scoord3DContentItem);
26258
26225
  var ReferencedRealWorldValueMap = /*#__PURE__*/function (_CompositeContentItem) {
26259
- _inherits(ReferencedRealWorldValueMap, _CompositeContentItem);
26260
26226
  function ReferencedRealWorldValueMap(options) {
26261
26227
  _classCallCheck(this, ReferencedRealWorldValueMap);
26262
26228
  return _callSuper(this, ReferencedRealWorldValueMap, [{
@@ -26270,10 +26236,10 @@ b"+i+"*=d\
26270
26236
  relationshipType: RelationshipTypes.CONTAINS
26271
26237
  }]);
26272
26238
  }
26239
+ _inherits(ReferencedRealWorldValueMap, _CompositeContentItem);
26273
26240
  return _createClass(ReferencedRealWorldValueMap);
26274
26241
  }(CompositeContentItem);
26275
26242
  var FindingSite = /*#__PURE__*/function (_CodeContentItem) {
26276
- _inherits(FindingSite, _CodeContentItem);
26277
26243
  function FindingSite(options) {
26278
26244
  var _this5;
26279
26245
  _classCallCheck(this, FindingSite);
@@ -26313,10 +26279,10 @@ b"+i+"*=d\
26313
26279
  }
26314
26280
  return _this5;
26315
26281
  }
26282
+ _inherits(FindingSite, _CodeContentItem);
26316
26283
  return _createClass(FindingSite);
26317
26284
  }(CodeContentItem);
26318
26285
  var ReferencedSegmentationFrame = /*#__PURE__*/function (_ContentSequence) {
26319
- _inherits(ReferencedSegmentationFrame, _ContentSequence);
26320
26286
  function ReferencedSegmentationFrame(options) {
26321
26287
  var _this6;
26322
26288
  _classCallCheck(this, ReferencedSegmentationFrame);
@@ -26354,10 +26320,10 @@ b"+i+"*=d\
26354
26320
  _this6.push(options.sourceImage);
26355
26321
  return _this6;
26356
26322
  }
26323
+ _inherits(ReferencedSegmentationFrame, _ContentSequence);
26357
26324
  return _createClass(ReferencedSegmentationFrame);
26358
26325
  }(ContentSequence);
26359
26326
  var ReferencedSegmentation = /*#__PURE__*/function (_ContentSequence2) {
26360
- _inherits(ReferencedSegmentation, _ContentSequence2);
26361
26327
  function ReferencedSegmentation(options) {
26362
26328
  var _this7;
26363
26329
  _classCallCheck(this, ReferencedSegmentation);
@@ -26403,6 +26369,7 @@ b"+i+"*=d\
26403
26369
  }
26404
26370
  return _this7;
26405
26371
  }
26372
+ _inherits(ReferencedSegmentation, _ContentSequence2);
26406
26373
  return _createClass(ReferencedSegmentation);
26407
26374
  }(ContentSequence);
26408
26375
 
@@ -26422,7 +26389,6 @@ b"+i+"*=d\
26422
26389
  });
26423
26390
 
26424
26391
  var Template = /*#__PURE__*/function (_ContentSequence) {
26425
- _inherits(Template, _ContentSequence);
26426
26392
  function Template() {
26427
26393
  _classCallCheck(this, Template);
26428
26394
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -26430,10 +26396,10 @@ b"+i+"*=d\
26430
26396
  }
26431
26397
  return _callSuper(this, Template, [].concat(args));
26432
26398
  }
26399
+ _inherits(Template, _ContentSequence);
26433
26400
  return _createClass(Template);
26434
26401
  }(ContentSequence);
26435
26402
  var Measurement = /*#__PURE__*/function (_Template) {
26436
- _inherits(Measurement, _Template);
26437
26403
  function Measurement(options) {
26438
26404
  var _valueItem$ContentSeq;
26439
26405
  var _this;
@@ -26533,10 +26499,10 @@ b"+i+"*=d\
26533
26499
  _this.push(valueItem);
26534
26500
  return _this;
26535
26501
  }
26502
+ _inherits(Measurement, _Template);
26536
26503
  return _createClass(Measurement);
26537
26504
  }(Template);
26538
26505
  var MeasurementProperties = /*#__PURE__*/function (_Template2) {
26539
- _inherits(MeasurementProperties, _Template2);
26540
26506
  function MeasurementProperties(options) {
26541
26507
  var _this2;
26542
26508
  _classCallCheck(this, MeasurementProperties);
@@ -26617,10 +26583,10 @@ b"+i+"*=d\
26617
26583
  }
26618
26584
  return _this2;
26619
26585
  }
26586
+ _inherits(MeasurementProperties, _Template2);
26620
26587
  return _createClass(MeasurementProperties);
26621
26588
  }(Template);
26622
26589
  var MeasurementStatisticalProperties = /*#__PURE__*/function (_Template3) {
26623
- _inherits(MeasurementStatisticalProperties, _Template3);
26624
26590
  function MeasurementStatisticalProperties(options) {
26625
26591
  var _this5;
26626
26592
  _classCallCheck(this, MeasurementStatisticalProperties);
@@ -26663,10 +26629,10 @@ b"+i+"*=d\
26663
26629
  }
26664
26630
  return _this5;
26665
26631
  }
26632
+ _inherits(MeasurementStatisticalProperties, _Template3);
26666
26633
  return _createClass(MeasurementStatisticalProperties);
26667
26634
  }(Template);
26668
26635
  var NormalRangeProperties = /*#__PURE__*/function (_Template4) {
26669
- _inherits(NormalRangeProperties, _Template4);
26670
26636
  function NormalRangeProperties(options) {
26671
26637
  var _this6;
26672
26638
  _classCallCheck(this, NormalRangeProperties);
@@ -26709,10 +26675,10 @@ b"+i+"*=d\
26709
26675
  }
26710
26676
  return _this6;
26711
26677
  }
26678
+ _inherits(NormalRangeProperties, _Template4);
26712
26679
  return _createClass(NormalRangeProperties);
26713
26680
  }(Template);
26714
26681
  var ObservationContext = /*#__PURE__*/function (_Template5) {
26715
- _inherits(ObservationContext, _Template5);
26716
26682
  function ObservationContext(options) {
26717
26683
  var _this8;
26718
26684
  var _this7;
@@ -26741,10 +26707,10 @@ b"+i+"*=d\
26741
26707
  }
26742
26708
  return _this7;
26743
26709
  }
26710
+ _inherits(ObservationContext, _Template5);
26744
26711
  return _createClass(ObservationContext);
26745
26712
  }(Template);
26746
26713
  var ObserverContext = /*#__PURE__*/function (_Template6) {
26747
- _inherits(ObserverContext, _Template6);
26748
26714
  function ObserverContext(options) {
26749
26715
  var _this10;
26750
26716
  var _this1;
@@ -26795,10 +26761,10 @@ b"+i+"*=d\
26795
26761
  (_this10 = _this1).push.apply(_this10, _toConsumableArray(options.observerIdentifyingAttributes));
26796
26762
  return _this1;
26797
26763
  }
26764
+ _inherits(ObserverContext, _Template6);
26798
26765
  return _createClass(ObserverContext);
26799
26766
  }(Template);
26800
26767
  var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
26801
- _inherits(PersonObserverIdentifyingAttributes, _Template7);
26802
26768
  function PersonObserverIdentifyingAttributes(options) {
26803
26769
  var _this11;
26804
26770
  _classCallCheck(this, PersonObserverIdentifyingAttributes);
@@ -26866,10 +26832,10 @@ b"+i+"*=d\
26866
26832
  }
26867
26833
  return _this11;
26868
26834
  }
26835
+ _inherits(PersonObserverIdentifyingAttributes, _Template7);
26869
26836
  return _createClass(PersonObserverIdentifyingAttributes);
26870
26837
  }(Template);
26871
26838
  var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
26872
- _inherits(DeviceObserverIdentifyingAttributes, _Template8);
26873
26839
  function DeviceObserverIdentifyingAttributes(options) {
26874
26840
  var _this12;
26875
26841
  _classCallCheck(this, DeviceObserverIdentifyingAttributes);
@@ -26949,10 +26915,10 @@ b"+i+"*=d\
26949
26915
  }
26950
26916
  return _this12;
26951
26917
  }
26918
+ _inherits(DeviceObserverIdentifyingAttributes, _Template8);
26952
26919
  return _createClass(DeviceObserverIdentifyingAttributes);
26953
26920
  }(Template);
26954
26921
  var SubjectContext = /*#__PURE__*/function (_Template9) {
26955
- _inherits(SubjectContext, _Template9);
26956
26922
  function SubjectContext(options) {
26957
26923
  var _this14;
26958
26924
  var _this13;
@@ -27007,10 +26973,10 @@ b"+i+"*=d\
27007
26973
  (_this14 = _this13).push.apply(_this14, _toConsumableArray(options.subjectClassSpecificContext));
27008
26974
  return _this13;
27009
26975
  }
26976
+ _inherits(SubjectContext, _Template9);
27010
26977
  return _createClass(SubjectContext);
27011
26978
  }(Template);
27012
26979
  var SubjectContextFetus = /*#__PURE__*/function (_Template0) {
27013
- _inherits(SubjectContextFetus, _Template0);
27014
26980
  function SubjectContextFetus(options) {
27015
26981
  var _this15;
27016
26982
  _classCallCheck(this, SubjectContextFetus);
@@ -27030,10 +26996,10 @@ b"+i+"*=d\
27030
26996
  _this15.push(subjectIdItem);
27031
26997
  return _this15;
27032
26998
  }
26999
+ _inherits(SubjectContextFetus, _Template0);
27033
27000
  return _createClass(SubjectContextFetus);
27034
27001
  }(Template);
27035
27002
  var SubjectContextSpecimen = /*#__PURE__*/function (_Template1) {
27036
- _inherits(SubjectContextSpecimen, _Template1);
27037
27003
  function SubjectContextSpecimen(options) {
27038
27004
  var _this16;
27039
27005
  _classCallCheck(this, SubjectContextSpecimen);
@@ -27089,10 +27055,10 @@ b"+i+"*=d\
27089
27055
  }
27090
27056
  return _this16;
27091
27057
  }
27058
+ _inherits(SubjectContextSpecimen, _Template1);
27092
27059
  return _createClass(SubjectContextSpecimen);
27093
27060
  }(Template);
27094
27061
  var SubjectContextDevice = /*#__PURE__*/function (_Template10) {
27095
- _inherits(SubjectContextDevice, _Template10);
27096
27062
  function SubjectContextDevice(options) {
27097
27063
  var _this17;
27098
27064
  _classCallCheck(this, SubjectContextDevice);
@@ -27172,10 +27138,10 @@ b"+i+"*=d\
27172
27138
  }
27173
27139
  return _this17;
27174
27140
  }
27141
+ _inherits(SubjectContextDevice, _Template10);
27175
27142
  return _createClass(SubjectContextDevice);
27176
27143
  }(Template);
27177
27144
  var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template11) {
27178
- _inherits(LanguageOfContentItemAndDescendants, _Template11);
27179
27145
  function LanguageOfContentItemAndDescendants(options) {
27180
27146
  var _this18;
27181
27147
  _classCallCheck(this, LanguageOfContentItemAndDescendants);
@@ -27199,10 +27165,10 @@ b"+i+"*=d\
27199
27165
  _this18.push(languageItem);
27200
27166
  return _this18;
27201
27167
  }
27168
+ _inherits(LanguageOfContentItemAndDescendants, _Template11);
27202
27169
  return _createClass(LanguageOfContentItemAndDescendants);
27203
27170
  }(Template);
27204
27171
  var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template12) {
27205
- _inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
27206
27172
  function _MeasurementsAndQualitatitiveEvaluations(options) {
27207
27173
  var _groupItem$ContentSeq;
27208
27174
  var _this19;
@@ -27292,10 +27258,10 @@ b"+i+"*=d\
27292
27258
  _this19.push(groupItem);
27293
27259
  return _this19;
27294
27260
  }
27261
+ _inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
27295
27262
  return _createClass(_MeasurementsAndQualitatitiveEvaluations);
27296
27263
  }(Template);
27297
27264
  var _ROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_MeasurementsAndQuali) {
27298
- _inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
27299
27265
  function _ROIMeasurementsAndQualitativeEvaluations(options) {
27300
27266
  var _this20;
27301
27267
  _classCallCheck(this, _ROIMeasurementsAndQualitativeEvaluations);
@@ -27344,10 +27310,10 @@ b"+i+"*=d\
27344
27310
  _this20[0] = groupItem;
27345
27311
  return _this20;
27346
27312
  }
27313
+ _inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
27347
27314
  return _createClass(_ROIMeasurementsAndQualitativeEvaluations);
27348
27315
  }(_MeasurementsAndQualitatitiveEvaluations);
27349
27316
  var PlanarROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROIMeasurementsAndQu) {
27350
- _inherits(PlanarROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu);
27351
27317
  function PlanarROIMeasurementsAndQualitativeEvaluations(options) {
27352
27318
  _classCallCheck(this, PlanarROIMeasurementsAndQualitativeEvaluations);
27353
27319
  var wereReferencesProvided = [options.referencedRegion !== undefined, options.referencedSegmentation !== undefined];
@@ -27371,10 +27337,10 @@ b"+i+"*=d\
27371
27337
  qualitativeEvaluations: options.qualitativeEvaluations
27372
27338
  }]);
27373
27339
  }
27340
+ _inherits(PlanarROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu);
27374
27341
  return _createClass(PlanarROIMeasurementsAndQualitativeEvaluations);
27375
27342
  }(_ROIMeasurementsAndQualitativeEvaluations);
27376
27343
  var VolumetricROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROIMeasurementsAndQu2) {
27377
- _inherits(VolumetricROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu2);
27378
27344
  function VolumetricROIMeasurementsAndQualitativeEvaluations(options) {
27379
27345
  _classCallCheck(this, VolumetricROIMeasurementsAndQualitativeEvaluations);
27380
27346
  return _callSuper(this, VolumetricROIMeasurementsAndQualitativeEvaluations, [{
@@ -27389,10 +27355,10 @@ b"+i+"*=d\
27389
27355
  qualitativeEvaluations: options.qualitativeEvaluations
27390
27356
  }]);
27391
27357
  }
27358
+ _inherits(VolumetricROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu2);
27392
27359
  return _createClass(VolumetricROIMeasurementsAndQualitativeEvaluations);
27393
27360
  }(_ROIMeasurementsAndQualitativeEvaluations);
27394
27361
  var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Template13) {
27395
- _inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
27396
27362
  function MeasurementsDerivedFromMultipleROIMeasurements(options) {
27397
27363
  var _this21;
27398
27364
  _classCallCheck(this, MeasurementsDerivedFromMultipleROIMeasurements);
@@ -27429,10 +27395,10 @@ b"+i+"*=d\
27429
27395
  _this21.push(valueItem);
27430
27396
  return _this21;
27431
27397
  }
27398
+ _inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
27432
27399
  return _createClass(MeasurementsDerivedFromMultipleROIMeasurements);
27433
27400
  }(Template);
27434
27401
  var MeasurementAndQualitativeEvaluationGroup = /*#__PURE__*/function (_MeasurementsAndQuali2) {
27435
- _inherits(MeasurementAndQualitativeEvaluationGroup, _MeasurementsAndQuali2);
27436
27402
  function MeasurementAndQualitativeEvaluationGroup(options) {
27437
27403
  _classCallCheck(this, MeasurementAndQualitativeEvaluationGroup);
27438
27404
  return _callSuper(this, MeasurementAndQualitativeEvaluationGroup, [{
@@ -27445,10 +27411,10 @@ b"+i+"*=d\
27445
27411
  qualitativeEvaluations: options.qualitativeEvaluations
27446
27412
  }]);
27447
27413
  }
27414
+ _inherits(MeasurementAndQualitativeEvaluationGroup, _MeasurementsAndQuali2);
27448
27415
  return _createClass(MeasurementAndQualitativeEvaluationGroup);
27449
27416
  }(_MeasurementsAndQualitatitiveEvaluations);
27450
27417
  var ROIMeasurements = /*#__PURE__*/function (_Template14) {
27451
- _inherits(ROIMeasurements, _Template14);
27452
27418
  function ROIMeasurements(options) {
27453
27419
  var _this22;
27454
27420
  _classCallCheck(this, ROIMeasurements);
@@ -27493,10 +27459,10 @@ b"+i+"*=d\
27493
27459
  });
27494
27460
  return _this22;
27495
27461
  }
27462
+ _inherits(ROIMeasurements, _Template14);
27496
27463
  return _createClass(ROIMeasurements);
27497
27464
  }(Template);
27498
27465
  var MeasurementReport = /*#__PURE__*/function (_Template15) {
27499
- _inherits(MeasurementReport, _Template15);
27500
27466
  function MeasurementReport(options) {
27501
27467
  var _item$ContentSequence, _item$ContentSequence2, _item$ContentSequence3;
27502
27468
  var _this23;
@@ -27589,10 +27555,10 @@ b"+i+"*=d\
27589
27555
  _this23.push(item);
27590
27556
  return _this23;
27591
27557
  }
27558
+ _inherits(MeasurementReport, _Template15);
27592
27559
  return _createClass(MeasurementReport);
27593
27560
  }(Template);
27594
27561
  var TimePointContext = /*#__PURE__*/function (_Template16) {
27595
- _inherits(TimePointContext, _Template16);
27596
27562
  function TimePointContext(options) {
27597
27563
  var _this24;
27598
27564
  _classCallCheck(this, TimePointContext);
@@ -27673,10 +27639,10 @@ b"+i+"*=d\
27673
27639
  }
27674
27640
  return _this24;
27675
27641
  }
27642
+ _inherits(TimePointContext, _Template16);
27676
27643
  return _createClass(TimePointContext);
27677
27644
  }(Template);
27678
27645
  var ImageLibrary = /*#__PURE__*/function (_Template17) {
27679
- _inherits(ImageLibrary, _Template17);
27680
27646
  function ImageLibrary() {
27681
27647
  var _this25;
27682
27648
  _classCallCheck(this, ImageLibrary);
@@ -27692,10 +27658,10 @@ b"+i+"*=d\
27692
27658
  _this25.push(libraryItem);
27693
27659
  return _this25;
27694
27660
  }
27661
+ _inherits(ImageLibrary, _Template17);
27695
27662
  return _createClass(ImageLibrary);
27696
27663
  }(Template);
27697
27664
  var AlgorithmIdentification = /*#__PURE__*/function (_Template18) {
27698
- _inherits(AlgorithmIdentification, _Template18);
27699
27665
  function AlgorithmIdentification(options) {
27700
27666
  var _this26;
27701
27667
  _classCallCheck(this, AlgorithmIdentification);
@@ -27745,10 +27711,10 @@ b"+i+"*=d\
27745
27711
  }
27746
27712
  return _this26;
27747
27713
  }
27714
+ _inherits(AlgorithmIdentification, _Template18);
27748
27715
  return _createClass(AlgorithmIdentification);
27749
27716
  }(Template);
27750
27717
  var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
27751
- _inherits(TrackingIdentifier, _Template19);
27752
27718
  function TrackingIdentifier(options) {
27753
27719
  var _this27;
27754
27720
  _classCallCheck(this, TrackingIdentifier);
@@ -27780,6 +27746,7 @@ b"+i+"*=d\
27780
27746
  _this27.push(trackingUIDItem);
27781
27747
  return _this27;
27782
27748
  }
27749
+ _inherits(TrackingIdentifier, _Template19);
27783
27750
  return _createClass(TrackingIdentifier);
27784
27751
  }(Template);
27785
27752