@eluvio/elv-client-js 4.2.27 → 4.2.30

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.
@@ -15,13 +15,15 @@ var UrlJoin = require("url-join");
15
15
  var objectPath = require("object-path");
16
16
  var HttpClient = require("../HttpClient");
17
17
  var ContentObjectAudit = require("../ContentObjectAudit");
18
+ var bs58 = require("bs58");
18
19
  var _require = require("../Validation"),
19
20
  ValidateLibrary = _require.ValidateLibrary,
20
21
  ValidateObject = _require.ValidateObject,
21
22
  ValidateVersion = _require.ValidateVersion,
22
23
  ValidatePartHash = _require.ValidatePartHash,
23
24
  ValidateWriteToken = _require.ValidateWriteToken,
24
- ValidateParameters = _require.ValidateParameters;
25
+ ValidateParameters = _require.ValidateParameters,
26
+ ValidatePresence = _require.ValidatePresence;
25
27
  var MergeWith = require("lodash/mergeWith");
26
28
  var LodashSet = require("lodash/set");
27
29
  var LodashGet = require("lodash/get");
@@ -4307,6 +4309,98 @@ exports.CreateEncryptionConk = /*#__PURE__*/function () {
4307
4309
  };
4308
4310
  }();
4309
4311
 
4312
+ /**
4313
+ * Encrypt the owner encryption key using the new user details provided
4314
+ *
4315
+ * @methodGroup Encryption
4316
+ * @namedParams
4317
+ * @param {string=} libraryId - ID of a library
4318
+ * @param {string=} objectId - ID of an object
4319
+ * @param {string=} versionHash - Hash of an object version
4320
+ * @param {string=} writeToken - The write token for the object
4321
+ * @param {Object=} newEncodedUserPublicKey - raw public key or base-58 encoded publicKey of the new user prefixed 'kupk'
4322
+ */
4323
+ exports.MigrateEncryptionConkForUserProvided = /*#__PURE__*/function () {
4324
+ var _ref88 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(_ref87) {
4325
+ var libraryId, objectId, versionHash, writeToken, newEncodedUserPublicKey, publicKey, publicKeyBytes, existingCapKey, existingUserCap, encryptedConk, newUserCap;
4326
+ return _regeneratorRuntime.wrap(function _callee48$(_context48) {
4327
+ while (1) switch (_context48.prev = _context48.next) {
4328
+ case 0:
4329
+ libraryId = _ref87.libraryId, objectId = _ref87.objectId, versionHash = _ref87.versionHash, writeToken = _ref87.writeToken, newEncodedUserPublicKey = _ref87.newEncodedUserPublicKey;
4330
+ if (!this.signer.remoteSigner) {
4331
+ _context48.next = 3;
4332
+ break;
4333
+ }
4334
+ return _context48.abrupt("return");
4335
+ case 3:
4336
+ ValidateParameters({
4337
+ libraryId: libraryId,
4338
+ objectId: objectId,
4339
+ versionHash: versionHash
4340
+ });
4341
+ ValidateWriteToken(writeToken);
4342
+ if (!objectId) {
4343
+ objectId = this.utils.DecodeVersionHash(versionHash).objectId;
4344
+ }
4345
+ ValidatePresence("newEncodedUserPublicKey", newEncodedUserPublicKey);
4346
+ if (!newEncodedUserPublicKey.startsWith("kupk")) {
4347
+ publicKey = newEncodedUserPublicKey;
4348
+ } else {
4349
+ publicKeyBytes = bs58.decode(newEncodedUserPublicKey.slice(4));
4350
+ if (publicKeyBytes.length !== 65) {
4351
+ publicKey = "0x" + Buffer.concat([Buffer.from([0x04]), publicKeyBytes]).toString("hex");
4352
+ } else {
4353
+ publicKey = "0x" + publicKeyBytes.toString("hex");
4354
+ }
4355
+ }
4356
+
4357
+ // Decrypt using existing user key
4358
+ existingCapKey = "eluv.caps.iusr".concat(this.utils.AddressToHash(this.signer.address));
4359
+ _context48.next = 11;
4360
+ return this.ContentObjectMetadata({
4361
+ libraryId: libraryId,
4362
+ objectId: objectId,
4363
+ writeToken: writeToken,
4364
+ metadataSubtree: existingCapKey
4365
+ });
4366
+ case 11:
4367
+ existingUserCap = _context48.sent;
4368
+ if (existingUserCap) {
4369
+ _context48.next = 14;
4370
+ break;
4371
+ }
4372
+ throw "No encryption conk present for ".concat(objectId, " for user ").concat(this.signer.address);
4373
+ case 14:
4374
+ _context48.next = 16;
4375
+ return this.Crypto.DecryptCap(existingUserCap, this.signer._signingKey().privateKey);
4376
+ case 16:
4377
+ this.encryptionConks[objectId] = _context48.sent;
4378
+ _context48.next = 19;
4379
+ return this.Crypto.EncryptConk(this.encryptionConks[objectId], publicKey);
4380
+ case 19:
4381
+ encryptedConk = _context48.sent;
4382
+ newUserCap = "eluv.caps.iusr".concat(this.utils.AddressToHash(this.utils.PublicKeyToAddress(publicKey)));
4383
+ _context48.next = 23;
4384
+ return this.ReplaceMetadata({
4385
+ libraryId: libraryId,
4386
+ objectId: objectId,
4387
+ writeToken: writeToken,
4388
+ metadataSubtree: newUserCap,
4389
+ metadata: encryptedConk
4390
+ });
4391
+ case 23:
4392
+ return _context48.abrupt("return", this.encryptionConks[objectId]);
4393
+ case 24:
4394
+ case "end":
4395
+ return _context48.stop();
4396
+ }
4397
+ }, _callee48, this);
4398
+ }));
4399
+ return function (_x44) {
4400
+ return _ref88.apply(this, arguments);
4401
+ };
4402
+ }();
4403
+
4310
4404
  /**
4311
4405
  * Retrieve the encryption conk for the specified object. If one has not yet been created
4312
4406
  * and a writeToken has been specified, this method will create a new conk and
@@ -4325,12 +4419,12 @@ exports.CreateEncryptionConk = /*#__PURE__*/function () {
4325
4419
  * @return Promise<Object> - The encryption conk for the object
4326
4420
  */
4327
4421
  exports.EncryptionConk = /*#__PURE__*/function () {
4328
- var _ref88 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(_ref87) {
4329
- var libraryId, objectId, versionHash, writeToken, _ref87$download, download, owner, ownerCapKey, ownerCap, capKey, existingUserCap;
4330
- return _regeneratorRuntime.wrap(function _callee48$(_context48) {
4331
- while (1) switch (_context48.prev = _context48.next) {
4422
+ var _ref90 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(_ref89) {
4423
+ var libraryId, objectId, versionHash, writeToken, _ref89$download, download, owner, ownerCapKey, ownerCap, capKey, existingUserCap;
4424
+ return _regeneratorRuntime.wrap(function _callee49$(_context49) {
4425
+ while (1) switch (_context49.prev = _context49.next) {
4332
4426
  case 0:
4333
- libraryId = _ref87.libraryId, objectId = _ref87.objectId, versionHash = _ref87.versionHash, writeToken = _ref87.writeToken, _ref87$download = _ref87.download, download = _ref87$download === void 0 ? false : _ref87$download;
4427
+ libraryId = _ref89.libraryId, objectId = _ref89.objectId, versionHash = _ref89.versionHash, writeToken = _ref89.writeToken, _ref89$download = _ref89.download, download = _ref89$download === void 0 ? false : _ref89$download;
4334
4428
  ValidateParameters({
4335
4429
  libraryId: libraryId,
4336
4430
  objectId: objectId,
@@ -4342,14 +4436,14 @@ exports.EncryptionConk = /*#__PURE__*/function () {
4342
4436
  if (!objectId) {
4343
4437
  objectId = client.DecodeVersionHash(versionHash).objectId;
4344
4438
  }
4345
- _context48.next = 6;
4439
+ _context49.next = 6;
4346
4440
  return this.authClient.Owner({
4347
4441
  id: objectId
4348
4442
  });
4349
4443
  case 6:
4350
- owner = _context48.sent;
4444
+ owner = _context49.sent;
4351
4445
  ownerCapKey = "eluv.caps.iusr".concat(this.utils.AddressToHash(this.signer.address));
4352
- _context48.next = 10;
4446
+ _context49.next = 10;
4353
4447
  return this.ContentObjectMetadata({
4354
4448
  libraryId: libraryId,
4355
4449
  objectId: objectId,
@@ -4358,39 +4452,39 @@ exports.EncryptionConk = /*#__PURE__*/function () {
4358
4452
  metadataSubtree: ownerCapKey
4359
4453
  });
4360
4454
  case 10:
4361
- ownerCap = _context48.sent;
4455
+ ownerCap = _context49.sent;
4362
4456
  if (!(!this.utils.EqualAddress(owner, this.signer.address) && !ownerCap)) {
4363
- _context48.next = 21;
4457
+ _context49.next = 21;
4364
4458
  break;
4365
4459
  }
4366
4460
  if (!download) {
4367
- _context48.next = 18;
4461
+ _context49.next = 18;
4368
4462
  break;
4369
4463
  }
4370
- _context48.next = 15;
4464
+ _context49.next = 15;
4371
4465
  return this.authClient.ReEncryptionConk({
4372
4466
  libraryId: libraryId,
4373
4467
  objectId: objectId,
4374
4468
  versionHash: versionHash
4375
4469
  });
4376
4470
  case 15:
4377
- return _context48.abrupt("return", _context48.sent);
4471
+ return _context49.abrupt("return", _context49.sent);
4378
4472
  case 18:
4379
- _context48.next = 20;
4473
+ _context49.next = 20;
4380
4474
  return this.authClient.EncryptionConk({
4381
4475
  libraryId: libraryId,
4382
4476
  objectId: objectId,
4383
4477
  versionHash: versionHash
4384
4478
  });
4385
4479
  case 20:
4386
- return _context48.abrupt("return", _context48.sent);
4480
+ return _context49.abrupt("return", _context49.sent);
4387
4481
  case 21:
4388
4482
  if (this.encryptionConks[objectId]) {
4389
- _context48.next = 38;
4483
+ _context49.next = 38;
4390
4484
  break;
4391
4485
  }
4392
4486
  capKey = "eluv.caps.iusr".concat(this.utils.AddressToHash(this.signer.address));
4393
- _context48.next = 25;
4487
+ _context49.next = 25;
4394
4488
  return this.ContentObjectMetadata({
4395
4489
  libraryId: libraryId,
4396
4490
  objectId: objectId,
@@ -4400,23 +4494,23 @@ exports.EncryptionConk = /*#__PURE__*/function () {
4400
4494
  metadataSubtree: capKey
4401
4495
  });
4402
4496
  case 25:
4403
- existingUserCap = _context48.sent;
4497
+ existingUserCap = _context49.sent;
4404
4498
  if (!existingUserCap) {
4405
- _context48.next = 32;
4499
+ _context49.next = 32;
4406
4500
  break;
4407
4501
  }
4408
- _context48.next = 29;
4502
+ _context49.next = 29;
4409
4503
  return this.Crypto.DecryptCap(existingUserCap, this.signer);
4410
4504
  case 29:
4411
- this.encryptionConks[objectId] = _context48.sent;
4412
- _context48.next = 38;
4505
+ this.encryptionConks[objectId] = _context49.sent;
4506
+ _context49.next = 38;
4413
4507
  break;
4414
4508
  case 32:
4415
4509
  if (!writeToken) {
4416
- _context48.next = 37;
4510
+ _context49.next = 37;
4417
4511
  break;
4418
4512
  }
4419
- _context48.next = 35;
4513
+ _context49.next = 35;
4420
4514
  return this.CreateEncryptionConk({
4421
4515
  libraryId: libraryId,
4422
4516
  objectId: objectId,
@@ -4425,20 +4519,20 @@ exports.EncryptionConk = /*#__PURE__*/function () {
4425
4519
  createKMSConk: false
4426
4520
  });
4427
4521
  case 35:
4428
- _context48.next = 38;
4522
+ _context49.next = 38;
4429
4523
  break;
4430
4524
  case 37:
4431
4525
  throw "No encryption conk present for " + objectId;
4432
4526
  case 38:
4433
- return _context48.abrupt("return", this.encryptionConks[objectId]);
4527
+ return _context49.abrupt("return", this.encryptionConks[objectId]);
4434
4528
  case 39:
4435
4529
  case "end":
4436
- return _context48.stop();
4530
+ return _context49.stop();
4437
4531
  }
4438
- }, _callee48, this);
4532
+ }, _callee49, this);
4439
4533
  }));
4440
- return function (_x44) {
4441
- return _ref88.apply(this, arguments);
4534
+ return function (_x45) {
4535
+ return _ref90.apply(this, arguments);
4442
4536
  };
4443
4537
  }();
4444
4538
 
@@ -4456,37 +4550,37 @@ exports.EncryptionConk = /*#__PURE__*/function () {
4456
4550
  * @return {Promise<ArrayBuffer>}
4457
4551
  */
4458
4552
  exports.Encrypt = /*#__PURE__*/function () {
4459
- var _ref90 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(_ref89) {
4553
+ var _ref92 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(_ref91) {
4460
4554
  var libraryId, objectId, writeToken, chunk, conk, data;
4461
- return _regeneratorRuntime.wrap(function _callee49$(_context49) {
4462
- while (1) switch (_context49.prev = _context49.next) {
4555
+ return _regeneratorRuntime.wrap(function _callee50$(_context50) {
4556
+ while (1) switch (_context50.prev = _context50.next) {
4463
4557
  case 0:
4464
- libraryId = _ref89.libraryId, objectId = _ref89.objectId, writeToken = _ref89.writeToken, chunk = _ref89.chunk;
4558
+ libraryId = _ref91.libraryId, objectId = _ref91.objectId, writeToken = _ref91.writeToken, chunk = _ref91.chunk;
4465
4559
  ValidateParameters({
4466
4560
  libraryId: libraryId,
4467
4561
  objectId: objectId
4468
4562
  });
4469
- _context49.next = 4;
4563
+ _context50.next = 4;
4470
4564
  return this.EncryptionConk({
4471
4565
  libraryId: libraryId,
4472
4566
  objectId: objectId,
4473
4567
  writeToken: writeToken
4474
4568
  });
4475
4569
  case 4:
4476
- conk = _context49.sent;
4477
- _context49.next = 7;
4570
+ conk = _context50.sent;
4571
+ _context50.next = 7;
4478
4572
  return this.Crypto.Encrypt(conk, chunk);
4479
4573
  case 7:
4480
- data = _context49.sent;
4481
- return _context49.abrupt("return", data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength));
4574
+ data = _context50.sent;
4575
+ return _context50.abrupt("return", data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength));
4482
4576
  case 9:
4483
4577
  case "end":
4484
- return _context49.stop();
4578
+ return _context50.stop();
4485
4579
  }
4486
- }, _callee49, this);
4580
+ }, _callee50, this);
4487
4581
  }));
4488
- return function (_x45) {
4489
- return _ref90.apply(this, arguments);
4582
+ return function (_x46) {
4583
+ return _ref92.apply(this, arguments);
4490
4584
  };
4491
4585
  }();
4492
4586
 
@@ -4504,17 +4598,17 @@ exports.Encrypt = /*#__PURE__*/function () {
4504
4598
  * @return {Promise<ArrayBuffer>}
4505
4599
  */
4506
4600
  exports.Decrypt = /*#__PURE__*/function () {
4507
- var _ref92 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(_ref91) {
4601
+ var _ref94 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(_ref93) {
4508
4602
  var libraryId, objectId, writeToken, chunk, conk, data;
4509
- return _regeneratorRuntime.wrap(function _callee50$(_context50) {
4510
- while (1) switch (_context50.prev = _context50.next) {
4603
+ return _regeneratorRuntime.wrap(function _callee51$(_context51) {
4604
+ while (1) switch (_context51.prev = _context51.next) {
4511
4605
  case 0:
4512
- libraryId = _ref91.libraryId, objectId = _ref91.objectId, writeToken = _ref91.writeToken, chunk = _ref91.chunk;
4606
+ libraryId = _ref93.libraryId, objectId = _ref93.objectId, writeToken = _ref93.writeToken, chunk = _ref93.chunk;
4513
4607
  ValidateParameters({
4514
4608
  libraryId: libraryId,
4515
4609
  objectId: objectId
4516
4610
  });
4517
- _context50.next = 4;
4611
+ _context51.next = 4;
4518
4612
  return this.EncryptionConk({
4519
4613
  libraryId: libraryId,
4520
4614
  objectId: objectId,
@@ -4522,20 +4616,20 @@ exports.Decrypt = /*#__PURE__*/function () {
4522
4616
  download: true
4523
4617
  });
4524
4618
  case 4:
4525
- conk = _context50.sent;
4526
- _context50.next = 7;
4619
+ conk = _context51.sent;
4620
+ _context51.next = 7;
4527
4621
  return this.Crypto.Decrypt(conk, chunk);
4528
4622
  case 7:
4529
- data = _context50.sent;
4530
- return _context50.abrupt("return", data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength));
4623
+ data = _context51.sent;
4624
+ return _context51.abrupt("return", data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength));
4531
4625
  case 9:
4532
4626
  case "end":
4533
- return _context50.stop();
4627
+ return _context51.stop();
4534
4628
  }
4535
- }, _callee50, this);
4629
+ }, _callee51, this);
4536
4630
  }));
4537
- return function (_x46) {
4538
- return _ref92.apply(this, arguments);
4631
+ return function (_x47) {
4632
+ return _ref94.apply(this, arguments);
4539
4633
  };
4540
4634
  }();
4541
4635
 
@@ -4551,24 +4645,24 @@ exports.Decrypt = /*#__PURE__*/function () {
4551
4645
  * @return {Promise<string>} - Contract type of the item - "space", "library", "type", "object", "wallet", "group", or "other"
4552
4646
  */
4553
4647
  exports.AccessType = /*#__PURE__*/function () {
4554
- var _ref94 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(_ref93) {
4648
+ var _ref96 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(_ref95) {
4555
4649
  var id;
4556
- return _regeneratorRuntime.wrap(function _callee51$(_context51) {
4557
- while (1) switch (_context51.prev = _context51.next) {
4650
+ return _regeneratorRuntime.wrap(function _callee52$(_context52) {
4651
+ while (1) switch (_context52.prev = _context52.next) {
4558
4652
  case 0:
4559
- id = _ref93.id;
4560
- _context51.next = 3;
4653
+ id = _ref95.id;
4654
+ _context52.next = 3;
4561
4655
  return this.authClient.AccessType(id);
4562
4656
  case 3:
4563
- return _context51.abrupt("return", _context51.sent);
4657
+ return _context52.abrupt("return", _context52.sent);
4564
4658
  case 4:
4565
4659
  case "end":
4566
- return _context51.stop();
4660
+ return _context52.stop();
4567
4661
  }
4568
- }, _callee51, this);
4662
+ }, _callee52, this);
4569
4663
  }));
4570
- return function (_x47) {
4571
- return _ref94.apply(this, arguments);
4664
+ return function (_x48) {
4665
+ return _ref96.apply(this, arguments);
4572
4666
  };
4573
4667
  }();
4574
4668
 
@@ -4584,12 +4678,12 @@ exports.AccessType = /*#__PURE__*/function () {
4584
4678
  *
4585
4679
  * @return {Promise<Object>} - Info about the access charge and whether or not the object is accessible to the current user */
4586
4680
  exports.AccessInfo = /*#__PURE__*/function () {
4587
- var _ref96 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(_ref95) {
4681
+ var _ref98 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(_ref97) {
4588
4682
  var objectId, args, info;
4589
- return _regeneratorRuntime.wrap(function _callee52$(_context52) {
4590
- while (1) switch (_context52.prev = _context52.next) {
4683
+ return _regeneratorRuntime.wrap(function _callee53$(_context53) {
4684
+ while (1) switch (_context53.prev = _context53.next) {
4591
4685
  case 0:
4592
- objectId = _ref95.objectId, args = _ref95.args;
4686
+ objectId = _ref97.objectId, args = _ref97.args;
4593
4687
  ValidateObject(objectId);
4594
4688
  if (!args) {
4595
4689
  args = [0,
@@ -4601,16 +4695,16 @@ exports.AccessInfo = /*#__PURE__*/function () {
4601
4695
  }
4602
4696
 
4603
4697
  this.Log("Retrieving access info: ".concat(objectId));
4604
- _context52.next = 6;
4698
+ _context53.next = 6;
4605
4699
  return this.ethClient.CallContractMethod({
4606
4700
  contractAddress: this.utils.HashToAddress(objectId),
4607
4701
  methodName: "getAccessInfo",
4608
4702
  methodArgs: args
4609
4703
  });
4610
4704
  case 6:
4611
- info = _context52.sent;
4705
+ info = _context53.sent;
4612
4706
  this.Log(info);
4613
- return _context52.abrupt("return", {
4707
+ return _context53.abrupt("return", {
4614
4708
  visibilityCode: info[0],
4615
4709
  visible: info[0] >= 1,
4616
4710
  accessible: info[0] >= 10,
@@ -4621,12 +4715,12 @@ exports.AccessInfo = /*#__PURE__*/function () {
4621
4715
  });
4622
4716
  case 9:
4623
4717
  case "end":
4624
- return _context52.stop();
4718
+ return _context53.stop();
4625
4719
  }
4626
- }, _callee52, this);
4720
+ }, _callee53, this);
4627
4721
  }));
4628
- return function (_x48) {
4629
- return _ref96.apply(this, arguments);
4722
+ return function (_x49) {
4723
+ return _ref98.apply(this, arguments);
4630
4724
  };
4631
4725
  }();
4632
4726
 
@@ -4654,12 +4748,12 @@ exports.AccessInfo = /*#__PURE__*/function () {
4654
4748
  * @return {Promise<Object>} - Resultant AccessRequest or UpdateRequest event
4655
4749
  */
4656
4750
  exports.AccessRequest = /*#__PURE__*/function () {
4657
- var _ref98 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(_ref97) {
4658
- var libraryId, objectId, versionHash, _ref97$args, args, _ref97$update, update, _ref97$noCache, noCache;
4659
- return _regeneratorRuntime.wrap(function _callee53$(_context53) {
4660
- while (1) switch (_context53.prev = _context53.next) {
4751
+ var _ref100 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(_ref99) {
4752
+ var libraryId, objectId, versionHash, _ref99$args, args, _ref99$update, update, _ref99$noCache, noCache;
4753
+ return _regeneratorRuntime.wrap(function _callee54$(_context54) {
4754
+ while (1) switch (_context54.prev = _context54.next) {
4661
4755
  case 0:
4662
- libraryId = _ref97.libraryId, objectId = _ref97.objectId, versionHash = _ref97.versionHash, _ref97$args = _ref97.args, args = _ref97$args === void 0 ? [] : _ref97$args, _ref97$update = _ref97.update, update = _ref97$update === void 0 ? false : _ref97$update, _ref97$noCache = _ref97.noCache, noCache = _ref97$noCache === void 0 ? false : _ref97$noCache;
4756
+ libraryId = _ref99.libraryId, objectId = _ref99.objectId, versionHash = _ref99.versionHash, _ref99$args = _ref99.args, args = _ref99$args === void 0 ? [] : _ref99$args, _ref99$update = _ref99.update, update = _ref99$update === void 0 ? false : _ref99$update, _ref99$noCache = _ref99.noCache, noCache = _ref99$noCache === void 0 ? false : _ref99$noCache;
4663
4757
  ValidateParameters({
4664
4758
  libraryId: libraryId,
4665
4759
  objectId: objectId,
@@ -4668,7 +4762,7 @@ exports.AccessRequest = /*#__PURE__*/function () {
4668
4762
  if (versionHash) {
4669
4763
  objectId = this.utils.DecodeVersionHash(versionHash).objectId;
4670
4764
  }
4671
- _context53.next = 5;
4765
+ _context54.next = 5;
4672
4766
  return this.authClient.MakeAccessRequest({
4673
4767
  libraryId: libraryId,
4674
4768
  objectId: objectId,
@@ -4679,15 +4773,15 @@ exports.AccessRequest = /*#__PURE__*/function () {
4679
4773
  noCache: noCache
4680
4774
  });
4681
4775
  case 5:
4682
- return _context53.abrupt("return", _context53.sent);
4776
+ return _context54.abrupt("return", _context54.sent);
4683
4777
  case 6:
4684
4778
  case "end":
4685
- return _context53.stop();
4779
+ return _context54.stop();
4686
4780
  }
4687
- }, _callee53, this);
4781
+ }, _callee54, this);
4688
4782
  }));
4689
- return function (_x49) {
4690
- return _ref98.apply(this, arguments);
4783
+ return function (_x50) {
4784
+ return _ref100.apply(this, arguments);
4691
4785
  };
4692
4786
  }();
4693
4787
 
@@ -4699,8 +4793,8 @@ exports.AccessRequest = /*#__PURE__*/function () {
4699
4793
  * @param {Object=} context - Additional context to include in state channel requests
4700
4794
  * - Note: Context must be a map of string->string
4701
4795
  */
4702
- exports.SetAuthContext = function (_ref99) {
4703
- var context = _ref99.context;
4796
+ exports.SetAuthContext = function (_ref101) {
4797
+ var context = _ref101.context;
4704
4798
  if (context && Object.values(context).find(function (value) {
4705
4799
  return typeof value !== "string";
4706
4800
  })) {
@@ -4724,34 +4818,34 @@ exports.SetAuthContext = function (_ref99) {
4724
4818
  * @return {Promise<string>} - The state channel token
4725
4819
  */
4726
4820
  exports.GenerateStateChannelToken = /*#__PURE__*/function () {
4727
- var _ref101 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(_ref100) {
4728
- var objectId, versionHash, context, _ref100$noCache, noCache;
4729
- return _regeneratorRuntime.wrap(function _callee54$(_context54) {
4730
- while (1) switch (_context54.prev = _context54.next) {
4821
+ var _ref103 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(_ref102) {
4822
+ var objectId, versionHash, context, _ref102$noCache, noCache;
4823
+ return _regeneratorRuntime.wrap(function _callee55$(_context55) {
4824
+ while (1) switch (_context55.prev = _context55.next) {
4731
4825
  case 0:
4732
- objectId = _ref100.objectId, versionHash = _ref100.versionHash, context = _ref100.context, _ref100$noCache = _ref100.noCache, noCache = _ref100$noCache === void 0 ? false : _ref100$noCache;
4826
+ objectId = _ref102.objectId, versionHash = _ref102.versionHash, context = _ref102.context, _ref102$noCache = _ref102.noCache, noCache = _ref102$noCache === void 0 ? false : _ref102$noCache;
4733
4827
  versionHash ? ValidateVersion(versionHash) : ValidateObject(objectId);
4734
4828
  if (!versionHash) {
4735
- _context54.next = 6;
4829
+ _context55.next = 6;
4736
4830
  break;
4737
4831
  }
4738
4832
  objectId = this.utils.DecodeVersionHash(versionHash).objectId;
4739
- _context54.next = 10;
4833
+ _context55.next = 10;
4740
4834
  break;
4741
4835
  case 6:
4742
4836
  if (this.stateChannelAccess[objectId]) {
4743
- _context54.next = 10;
4837
+ _context55.next = 10;
4744
4838
  break;
4745
4839
  }
4746
- _context54.next = 9;
4840
+ _context55.next = 9;
4747
4841
  return this.LatestVersionHash({
4748
4842
  objectId: objectId
4749
4843
  });
4750
4844
  case 9:
4751
- versionHash = _context54.sent;
4845
+ versionHash = _context55.sent;
4752
4846
  case 10:
4753
4847
  this.stateChannelAccess[objectId] = versionHash;
4754
- _context54.next = 13;
4848
+ _context55.next = 13;
4755
4849
  return this.authClient.AuthorizationToken({
4756
4850
  objectId: objectId,
4757
4851
  channelAuth: true,
@@ -4760,15 +4854,15 @@ exports.GenerateStateChannelToken = /*#__PURE__*/function () {
4760
4854
  noCache: noCache
4761
4855
  });
4762
4856
  case 13:
4763
- return _context54.abrupt("return", _context54.sent);
4857
+ return _context55.abrupt("return", _context55.sent);
4764
4858
  case 14:
4765
4859
  case "end":
4766
- return _context54.stop();
4860
+ return _context55.stop();
4767
4861
  }
4768
- }, _callee54, this);
4862
+ }, _callee55, this);
4769
4863
  }));
4770
- return function (_x50) {
4771
- return _ref101.apply(this, arguments);
4864
+ return function (_x51) {
4865
+ return _ref103.apply(this, arguments);
4772
4866
  };
4773
4867
  }();
4774
4868
 
@@ -4782,38 +4876,38 @@ exports.GenerateStateChannelToken = /*#__PURE__*/function () {
4782
4876
  * @param {number} percentComplete - Completion percentage of the content
4783
4877
  */
4784
4878
  exports.FinalizeStateChannelAccess = /*#__PURE__*/function () {
4785
- var _ref103 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(_ref102) {
4879
+ var _ref105 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(_ref104) {
4786
4880
  var objectId, versionHash, percentComplete;
4787
- return _regeneratorRuntime.wrap(function _callee55$(_context55) {
4788
- while (1) switch (_context55.prev = _context55.next) {
4881
+ return _regeneratorRuntime.wrap(function _callee56$(_context56) {
4882
+ while (1) switch (_context56.prev = _context56.next) {
4789
4883
  case 0:
4790
- objectId = _ref102.objectId, versionHash = _ref102.versionHash, percentComplete = _ref102.percentComplete;
4884
+ objectId = _ref104.objectId, versionHash = _ref104.versionHash, percentComplete = _ref104.percentComplete;
4791
4885
  versionHash ? ValidateVersion(versionHash) : ValidateObject(objectId);
4792
4886
  if (!versionHash) {
4793
- _context55.next = 6;
4887
+ _context56.next = 6;
4794
4888
  break;
4795
4889
  }
4796
4890
  objectId = this.utils.DecodeVersionHash(versionHash).objectId;
4797
- _context55.next = 13;
4891
+ _context56.next = 13;
4798
4892
  break;
4799
4893
  case 6:
4800
4894
  if (!this.stateChannelAccess[objectId]) {
4801
- _context55.next = 10;
4895
+ _context56.next = 10;
4802
4896
  break;
4803
4897
  }
4804
4898
  versionHash = this.stateChannelAccess[objectId];
4805
- _context55.next = 13;
4899
+ _context56.next = 13;
4806
4900
  break;
4807
4901
  case 10:
4808
- _context55.next = 12;
4902
+ _context56.next = 12;
4809
4903
  return this.LatestVersionHash({
4810
4904
  objectId: objectId
4811
4905
  });
4812
4906
  case 12:
4813
- versionHash = _context55.sent;
4907
+ versionHash = _context56.sent;
4814
4908
  case 13:
4815
4909
  this.stateChannelAccess[objectId] = undefined;
4816
- _context55.next = 16;
4910
+ _context56.next = 16;
4817
4911
  return this.authClient.ChannelContentFinalize({
4818
4912
  objectId: objectId,
4819
4913
  versionHash: versionHash,
@@ -4821,12 +4915,12 @@ exports.FinalizeStateChannelAccess = /*#__PURE__*/function () {
4821
4915
  });
4822
4916
  case 16:
4823
4917
  case "end":
4824
- return _context55.stop();
4918
+ return _context56.stop();
4825
4919
  }
4826
- }, _callee55, this);
4920
+ }, _callee56, this);
4827
4921
  }));
4828
- return function (_x51) {
4829
- return _ref103.apply(this, arguments);
4922
+ return function (_x52) {
4923
+ return _ref105.apply(this, arguments);
4830
4924
  };
4831
4925
  }();
4832
4926
 
@@ -4843,34 +4937,34 @@ exports.FinalizeStateChannelAccess = /*#__PURE__*/function () {
4843
4937
  * @returns {Promise<Object>} - Transaction log of the AccessComplete event
4844
4938
  */
4845
4939
  exports.ContentObjectAccessComplete = /*#__PURE__*/function () {
4846
- var _ref105 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(_ref104) {
4847
- var objectId, _ref104$score, score;
4848
- return _regeneratorRuntime.wrap(function _callee56$(_context56) {
4849
- while (1) switch (_context56.prev = _context56.next) {
4940
+ var _ref107 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(_ref106) {
4941
+ var objectId, _ref106$score, score;
4942
+ return _regeneratorRuntime.wrap(function _callee57$(_context57) {
4943
+ while (1) switch (_context57.prev = _context57.next) {
4850
4944
  case 0:
4851
- objectId = _ref104.objectId, _ref104$score = _ref104.score, score = _ref104$score === void 0 ? 100 : _ref104$score;
4945
+ objectId = _ref106.objectId, _ref106$score = _ref106.score, score = _ref106$score === void 0 ? 100 : _ref106$score;
4852
4946
  ValidateObject(objectId);
4853
4947
  if (!(score < 0 || score > 100)) {
4854
- _context56.next = 4;
4948
+ _context57.next = 4;
4855
4949
  break;
4856
4950
  }
4857
4951
  throw Error("Invalid AccessComplete score: " + score);
4858
4952
  case 4:
4859
- _context56.next = 6;
4953
+ _context57.next = 6;
4860
4954
  return this.authClient.AccessComplete({
4861
4955
  id: objectId,
4862
4956
  score: score
4863
4957
  });
4864
4958
  case 6:
4865
- return _context56.abrupt("return", _context56.sent);
4959
+ return _context57.abrupt("return", _context57.sent);
4866
4960
  case 7:
4867
4961
  case "end":
4868
- return _context56.stop();
4962
+ return _context57.stop();
4869
4963
  }
4870
- }, _callee56, this);
4964
+ }, _callee57, this);
4871
4965
  }));
4872
- return function (_x52) {
4873
- return _ref105.apply(this, arguments);
4966
+ return function (_x53) {
4967
+ return _ref107.apply(this, arguments);
4874
4968
  };
4875
4969
  }();
4876
4970
 
@@ -4892,62 +4986,62 @@ exports.ContentObjectAccessComplete = /*#__PURE__*/function () {
4892
4986
  * @return {Promise<Array<string>>} - List of addresses of available items
4893
4987
  */
4894
4988
  exports.Collection = /*#__PURE__*/function () {
4895
- var _ref107 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(_ref106) {
4989
+ var _ref109 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(_ref108) {
4896
4990
  var collectionType, validCollectionTypes, walletAddress;
4897
- return _regeneratorRuntime.wrap(function _callee57$(_context57) {
4898
- while (1) switch (_context57.prev = _context57.next) {
4991
+ return _regeneratorRuntime.wrap(function _callee58$(_context58) {
4992
+ while (1) switch (_context58.prev = _context58.next) {
4899
4993
  case 0:
4900
- collectionType = _ref106.collectionType;
4994
+ collectionType = _ref108.collectionType;
4901
4995
  validCollectionTypes = ["accessGroups", "contentObjects", "contentTypes", "contracts", "libraries"];
4902
4996
  if (validCollectionTypes.includes(collectionType)) {
4903
- _context57.next = 4;
4997
+ _context58.next = 4;
4904
4998
  break;
4905
4999
  }
4906
5000
  throw new Error("Invalid collection type: " + collectionType);
4907
5001
  case 4:
4908
5002
  if (!this.signer) {
4909
- _context57.next = 10;
5003
+ _context58.next = 10;
4910
5004
  break;
4911
5005
  }
4912
- _context57.next = 7;
5006
+ _context58.next = 7;
4913
5007
  return this.userProfileClient.WalletAddress();
4914
5008
  case 7:
4915
- _context57.t0 = _context57.sent;
4916
- _context57.next = 11;
5009
+ _context58.t0 = _context58.sent;
5010
+ _context58.next = 11;
4917
5011
  break;
4918
5012
  case 10:
4919
- _context57.t0 = undefined;
5013
+ _context58.t0 = undefined;
4920
5014
  case 11:
4921
- walletAddress = _context57.t0;
5015
+ walletAddress = _context58.t0;
4922
5016
  if (walletAddress) {
4923
- _context57.next = 14;
5017
+ _context58.next = 14;
4924
5018
  break;
4925
5019
  }
4926
5020
  throw new Error("Unable to get collection: User wallet doesn't exist");
4927
5021
  case 14:
4928
5022
  this.Log("Retrieving ".concat(collectionType, " contract collection for user ").concat(this.signer.address));
4929
- _context57.next = 17;
5023
+ _context58.next = 17;
4930
5024
  return this.ethClient.MakeProviderCall({
4931
5025
  methodName: "send",
4932
5026
  args: ["elv_getWalletCollection", [this.contentSpaceId, "iusr".concat(this.utils.AddressToHash(this.signer.address)), collectionType]]
4933
5027
  });
4934
5028
  case 17:
4935
- _context57.t1 = _context57.sent;
4936
- if (_context57.t1) {
4937
- _context57.next = 20;
5029
+ _context58.t1 = _context58.sent;
5030
+ if (_context58.t1) {
5031
+ _context58.next = 20;
4938
5032
  break;
4939
5033
  }
4940
- _context57.t1 = [];
5034
+ _context58.t1 = [];
4941
5035
  case 20:
4942
- return _context57.abrupt("return", _context57.t1);
5036
+ return _context58.abrupt("return", _context58.t1);
4943
5037
  case 21:
4944
5038
  case "end":
4945
- return _context57.stop();
5039
+ return _context58.stop();
4946
5040
  }
4947
- }, _callee57, this);
5041
+ }, _callee58, this);
4948
5042
  }));
4949
- return function (_x53) {
4950
- return _ref107.apply(this, arguments);
5043
+ return function (_x54) {
5044
+ return _ref109.apply(this, arguments);
4951
5045
  };
4952
5046
  }();
4953
5047
 
@@ -4968,13 +5062,13 @@ exports.Collection = /*#__PURE__*/function () {
4968
5062
  * @returns {Promise<Object>} - Response describing audit results
4969
5063
  */
4970
5064
  exports.AuditContentObject = /*#__PURE__*/function () {
4971
- var _ref109 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(_ref108) {
5065
+ var _ref111 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(_ref110) {
4972
5066
  var libraryId, objectId, versionHash, salt, samples, authorizationToken;
4973
- return _regeneratorRuntime.wrap(function _callee58$(_context58) {
4974
- while (1) switch (_context58.prev = _context58.next) {
5067
+ return _regeneratorRuntime.wrap(function _callee59$(_context59) {
5068
+ while (1) switch (_context59.prev = _context59.next) {
4975
5069
  case 0:
4976
- libraryId = _ref108.libraryId, objectId = _ref108.objectId, versionHash = _ref108.versionHash, salt = _ref108.salt, samples = _ref108.samples, authorizationToken = _ref108.authorizationToken;
4977
- _context58.next = 3;
5070
+ libraryId = _ref110.libraryId, objectId = _ref110.objectId, versionHash = _ref110.versionHash, salt = _ref110.salt, samples = _ref110.samples, authorizationToken = _ref110.authorizationToken;
5071
+ _context59.next = 3;
4978
5072
  return ContentObjectAudit.AuditContentObject({
4979
5073
  client: this,
4980
5074
  libraryId: libraryId,
@@ -4985,15 +5079,15 @@ exports.AuditContentObject = /*#__PURE__*/function () {
4985
5079
  authorizationToken: authorizationToken
4986
5080
  });
4987
5081
  case 3:
4988
- return _context58.abrupt("return", _context58.sent);
5082
+ return _context59.abrupt("return", _context59.sent);
4989
5083
  case 4:
4990
5084
  case "end":
4991
- return _context58.stop();
5085
+ return _context59.stop();
4992
5086
  }
4993
- }, _callee58, this);
5087
+ }, _callee59, this);
4994
5088
  }));
4995
- return function (_x54) {
4996
- return _ref109.apply(this, arguments);
5089
+ return function (_x55) {
5090
+ return _ref111.apply(this, arguments);
4997
5091
  };
4998
5092
  }();
4999
5093
 
@@ -5010,12 +5104,12 @@ exports.AuditContentObject = /*#__PURE__*/function () {
5010
5104
  * @returns {Promise<Object>} - Response containing proof information
5011
5105
  */
5012
5106
  exports.Proofs = /*#__PURE__*/function () {
5013
- var _ref111 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(_ref110) {
5107
+ var _ref113 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(_ref112) {
5014
5108
  var libraryId, objectId, versionHash, partHash, path;
5015
- return _regeneratorRuntime.wrap(function _callee59$(_context59) {
5016
- while (1) switch (_context59.prev = _context59.next) {
5109
+ return _regeneratorRuntime.wrap(function _callee60$(_context60) {
5110
+ while (1) switch (_context60.prev = _context60.next) {
5017
5111
  case 0:
5018
- libraryId = _ref110.libraryId, objectId = _ref110.objectId, versionHash = _ref110.versionHash, partHash = _ref110.partHash;
5112
+ libraryId = _ref112.libraryId, objectId = _ref112.objectId, versionHash = _ref112.versionHash, partHash = _ref112.partHash;
5019
5113
  ValidateParameters({
5020
5114
  libraryId: libraryId,
5021
5115
  objectId: objectId,
@@ -5026,32 +5120,32 @@ exports.Proofs = /*#__PURE__*/function () {
5026
5120
  objectId = this.utils.DecodeVersionHash(versionHash).objectId;
5027
5121
  }
5028
5122
  path = UrlJoin("q", versionHash || objectId, "data", partHash, "proofs");
5029
- _context59.t0 = this.utils;
5030
- _context59.t1 = this.HttpClient;
5031
- _context59.next = 9;
5123
+ _context60.t0 = this.utils;
5124
+ _context60.t1 = this.HttpClient;
5125
+ _context60.next = 9;
5032
5126
  return this.authClient.AuthorizationHeader({
5033
5127
  libraryId: libraryId,
5034
5128
  objectId: objectId,
5035
5129
  versionHash: versionHash
5036
5130
  });
5037
5131
  case 9:
5038
- _context59.t2 = _context59.sent;
5039
- _context59.t3 = path;
5040
- _context59.t4 = {
5041
- headers: _context59.t2,
5132
+ _context60.t2 = _context60.sent;
5133
+ _context60.t3 = path;
5134
+ _context60.t4 = {
5135
+ headers: _context60.t2,
5042
5136
  method: "GET",
5043
- path: _context59.t3
5137
+ path: _context60.t3
5044
5138
  };
5045
- _context59.t5 = _context59.t1.Request.call(_context59.t1, _context59.t4);
5046
- return _context59.abrupt("return", _context59.t0.ResponseToJson.call(_context59.t0, _context59.t5));
5139
+ _context60.t5 = _context60.t1.Request.call(_context60.t1, _context60.t4);
5140
+ return _context60.abrupt("return", _context60.t0.ResponseToJson.call(_context60.t0, _context60.t5));
5047
5141
  case 14:
5048
5142
  case "end":
5049
- return _context59.stop();
5143
+ return _context60.stop();
5050
5144
  }
5051
- }, _callee59, this);
5145
+ }, _callee60, this);
5052
5146
  }));
5053
- return function (_x55) {
5054
- return _ref111.apply(this, arguments);
5147
+ return function (_x56) {
5148
+ return _ref113.apply(this, arguments);
5055
5149
  };
5056
5150
  }();
5057
5151
 
@@ -5068,12 +5162,12 @@ exports.Proofs = /*#__PURE__*/function () {
5068
5162
  * @returns {Promise<Format>} - Response containing the CBOR response in the specified format
5069
5163
  */
5070
5164
  exports.QParts = /*#__PURE__*/function () {
5071
- var _ref113 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(_ref112) {
5072
- var libraryId, objectId, partHash, _ref112$format, format, path;
5073
- return _regeneratorRuntime.wrap(function _callee60$(_context60) {
5074
- while (1) switch (_context60.prev = _context60.next) {
5165
+ var _ref115 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(_ref114) {
5166
+ var libraryId, objectId, partHash, _ref114$format, format, path;
5167
+ return _regeneratorRuntime.wrap(function _callee61$(_context61) {
5168
+ while (1) switch (_context61.prev = _context61.next) {
5075
5169
  case 0:
5076
- libraryId = _ref112.libraryId, objectId = _ref112.objectId, partHash = _ref112.partHash, _ref112$format = _ref112.format, format = _ref112$format === void 0 ? "blob" : _ref112$format;
5170
+ libraryId = _ref114.libraryId, objectId = _ref114.objectId, partHash = _ref114.partHash, _ref114$format = _ref114.format, format = _ref114$format === void 0 ? "blob" : _ref114$format;
5077
5171
  ValidateParameters({
5078
5172
  libraryId: libraryId,
5079
5173
  objectId: objectId,
@@ -5081,32 +5175,32 @@ exports.QParts = /*#__PURE__*/function () {
5081
5175
  });
5082
5176
  ValidatePartHash(partHash);
5083
5177
  path = UrlJoin("qparts", partHash);
5084
- _context60.t0 = this.utils;
5085
- _context60.t1 = format;
5086
- _context60.t2 = this.HttpClient;
5087
- _context60.next = 9;
5178
+ _context61.t0 = this.utils;
5179
+ _context61.t1 = format;
5180
+ _context61.t2 = this.HttpClient;
5181
+ _context61.next = 9;
5088
5182
  return this.authClient.AuthorizationHeader({
5089
5183
  libraryId: libraryId,
5090
5184
  objectId: objectId,
5091
5185
  partHash: partHash
5092
5186
  });
5093
5187
  case 9:
5094
- _context60.t3 = _context60.sent;
5095
- _context60.t4 = path;
5096
- _context60.t5 = {
5097
- headers: _context60.t3,
5188
+ _context61.t3 = _context61.sent;
5189
+ _context61.t4 = path;
5190
+ _context61.t5 = {
5191
+ headers: _context61.t3,
5098
5192
  method: "GET",
5099
- path: _context60.t4
5193
+ path: _context61.t4
5100
5194
  };
5101
- _context60.t6 = _context60.t2.Request.call(_context60.t2, _context60.t5);
5102
- return _context60.abrupt("return", _context60.t0.ResponseToFormat.call(_context60.t0, _context60.t1, _context60.t6));
5195
+ _context61.t6 = _context61.t2.Request.call(_context61.t2, _context61.t5);
5196
+ return _context61.abrupt("return", _context61.t0.ResponseToFormat.call(_context61.t0, _context61.t1, _context61.t6));
5103
5197
  case 14:
5104
5198
  case "end":
5105
- return _context60.stop();
5199
+ return _context61.stop();
5106
5200
  }
5107
- }, _callee60, this);
5201
+ }, _callee61, this);
5108
5202
  }));
5109
- return function (_x56) {
5110
- return _ref113.apply(this, arguments);
5203
+ return function (_x57) {
5204
+ return _ref115.apply(this, arguments);
5111
5205
  };
5112
5206
  }();