@nmshd/crypto 2.0.1 → 2.0.3

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.
Files changed (56) hide show
  1. package/README.md +2 -2
  2. package/dist/CoreBuffer.js.map +1 -1
  3. package/dist/CryptoDerivation.js +7 -7
  4. package/dist/CryptoDerivation.js.map +1 -1
  5. package/dist/CryptoPrivateKey.js.map +1 -1
  6. package/dist/CryptoPublicKey.js.map +1 -1
  7. package/dist/CryptoValidation.js +13 -13
  8. package/dist/CryptoValidation.js.map +1 -1
  9. package/dist/SodiumWrapper.d.ts +3 -3
  10. package/dist/buildInformation.js +5 -5
  11. package/dist/encryption/CryptoCipher.js.map +1 -1
  12. package/dist/encryption/CryptoEncryption.js +12 -12
  13. package/dist/encryption/CryptoEncryption.js.map +1 -1
  14. package/dist/encryption/CryptoSecretKey.js.map +1 -1
  15. package/dist/exchange/CryptoExchange.js +4 -4
  16. package/dist/exchange/CryptoExchange.js.map +1 -1
  17. package/dist/exchange/CryptoExchangeKeypair.js.map +1 -1
  18. package/dist/exchange/CryptoExchangePrivateKey.js +1 -1
  19. package/dist/exchange/CryptoExchangePrivateKey.js.map +1 -1
  20. package/dist/exchange/CryptoExchangePublicKey.js.map +1 -1
  21. package/dist/exchange/CryptoExchangeSecrets.js.map +1 -1
  22. package/dist/exchange/CryptoExchangeValidation.js +3 -3
  23. package/dist/exchange/CryptoExchangeValidation.js.map +1 -1
  24. package/dist/hash/CryptoHash.js +6 -6
  25. package/dist/hash/CryptoHash.js.map +1 -1
  26. package/dist/random/CryptoPasswordGenerator.js +3 -3
  27. package/dist/random/CryptoPasswordGenerator.js.map +1 -1
  28. package/dist/relationship/CryptoRelationshipPublicRequest.js.map +1 -1
  29. package/dist/relationship/CryptoRelationshipPublicResponse.js.map +1 -1
  30. package/dist/relationship/CryptoRelationshipRequestSecrets.js +1 -1
  31. package/dist/relationship/CryptoRelationshipRequestSecrets.js.map +1 -1
  32. package/dist/relationship/CryptoRelationshipSecrets.js +2 -2
  33. package/dist/relationship/CryptoRelationshipSecrets.js.map +1 -1
  34. package/dist/signature/CryptoSignature.js.map +1 -1
  35. package/dist/signature/CryptoSignatureKeypair.js.map +1 -1
  36. package/dist/signature/CryptoSignaturePrivateKey.js.map +1 -1
  37. package/dist/signature/CryptoSignaturePublicKey.js.map +1 -1
  38. package/dist/signature/CryptoSignatureValidation.js +3 -3
  39. package/dist/signature/CryptoSignatureValidation.js.map +1 -1
  40. package/dist/signature/CryptoSignatures.js +4 -4
  41. package/dist/signature/CryptoSignatures.js.map +1 -1
  42. package/dist/state/CryptoPrivateState.js.map +1 -1
  43. package/dist/state/CryptoPrivateStateReceive.js +1 -1
  44. package/dist/state/CryptoPrivateStateReceive.js.map +1 -1
  45. package/dist/state/CryptoPrivateStateTransmit.js +1 -1
  46. package/dist/state/CryptoPrivateStateTransmit.js.map +1 -1
  47. package/dist/state/CryptoPublicState.js.map +1 -1
  48. package/dist/stream/CryptoStream.js.map +1 -1
  49. package/dist/stream/CryptoStreamAddress.js.map +1 -1
  50. package/dist/stream/CryptoStreamHeader.js.map +1 -1
  51. package/dist/stream/CryptoStreamState.js.map +1 -1
  52. package/lib-web/nmshd.crypto.js +498 -378
  53. package/lib-web/nmshd.crypto.js.map +1 -1
  54. package/lib-web/nmshd.crypto.min.js +1 -1
  55. package/lib-web/nmshd.crypto.min.js.map +1 -1
  56. package/package.json +20 -20
@@ -541,9 +541,9 @@ const SodiumWrapper_1 = __webpack_require__(/*! ./SodiumWrapper */ "./dist/Sodiu
541
541
  class CryptoDerivation {
542
542
  static async deriveKeyFromMaster(masterKey, iterations, keyAlgorithm, salt) {
543
543
  switch (keyAlgorithm) {
544
- case 1 /* AES128_GCM */:
545
- case 2 /* AES256_GCM */:
546
- case 3 /* XCHACHA20_POLY1305 */:
544
+ case 1 /* CryptoEncryptionAlgorithm.AES128_GCM */:
545
+ case 2 /* CryptoEncryptionAlgorithm.AES256_GCM */:
546
+ case 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */:
547
547
  break;
548
548
  default:
549
549
  throw new Error("KeyAlgorithm not supported.");
@@ -557,19 +557,19 @@ class CryptoDerivation {
557
557
  const hashBuffer = CoreBuffer_1.CoreBuffer.fromString(pwhash, CoreBuffer_1.Encoding.Hex);
558
558
  return CryptoSecretKey_1.CryptoSecretKey.from({ secretKey: hashBuffer, algorithm: keyAlgorithm });
559
559
  }
560
- static async deriveKeyFromBase(baseKey, keyId, context, keyAlgorithm = 3 /* XCHACHA20_POLY1305 */) {
560
+ static async deriveKeyFromBase(baseKey, keyId, context, keyAlgorithm = 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */) {
561
561
  if (context.length !== 8) {
562
562
  throw new Error("The context should be exactly 8 characters long!");
563
563
  }
564
564
  let keyLength;
565
565
  switch (keyAlgorithm) {
566
- case 1 /* AES128_GCM */:
566
+ case 1 /* CryptoEncryptionAlgorithm.AES128_GCM */:
567
567
  keyLength = 16;
568
568
  break;
569
- case 2 /* AES256_GCM */:
569
+ case 2 /* CryptoEncryptionAlgorithm.AES256_GCM */:
570
570
  keyLength = 32;
571
571
  break;
572
- case 3 /* XCHACHA20_POLY1305 */:
572
+ case 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */:
573
573
  keyLength = 32;
574
574
  break;
575
575
  default:
@@ -934,7 +934,7 @@ class CryptoValidation {
934
934
  static checkEncryptionAlgorithm(algorithm, throwError = true) {
935
935
  let error;
936
936
  switch (algorithm) {
937
- case 3 /* XCHACHA20_POLY1305 */:
937
+ case 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */:
938
938
  break;
939
939
  default:
940
940
  error = new CryptoError_1.CryptoError(CryptoErrorCode_1.CryptoErrorCode.EncryptionWrongAlgorithm, "Encryption algorithm is not supported.");
@@ -947,9 +947,9 @@ class CryptoValidation {
947
947
  static checkHashAlgorithm(algorithm, throwError = true) {
948
948
  let error;
949
949
  switch (algorithm) {
950
- case 3 /* BLAKE2B */:
951
- case 1 /* SHA256 */:
952
- case 2 /* SHA512 */:
950
+ case 3 /* CryptoHashAlgorithm.BLAKE2B */:
951
+ case 1 /* CryptoHashAlgorithm.SHA256 */:
952
+ case 2 /* CryptoHashAlgorithm.SHA512 */:
953
953
  break;
954
954
  default:
955
955
  error = new CryptoError_1.CryptoError(CryptoErrorCode_1.CryptoErrorCode.WrongHashAlgorithm, "Hash algorithm is not supported.");
@@ -995,13 +995,13 @@ class CryptoValidation {
995
995
  const byteLength = Math.floor(3 * (key.length / 4));
996
996
  let errorLength = 0;
997
997
  switch (algorithm) {
998
- case 1 /* AES128_GCM */:
998
+ case 1 /* CryptoEncryptionAlgorithm.AES128_GCM */:
999
999
  if (byteLength !== 16) {
1000
1000
  errorLength = 16;
1001
1001
  }
1002
1002
  break;
1003
- case 2 /* AES256_GCM */:
1004
- case 3 /* XCHACHA20_POLY1305 */:
1003
+ case 2 /* CryptoEncryptionAlgorithm.AES256_GCM */:
1004
+ case 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */:
1005
1005
  if (byteLength !== 32) {
1006
1006
  errorLength = 32;
1007
1007
  }
@@ -1027,13 +1027,13 @@ class CryptoValidation {
1027
1027
  buffer = key.buffer;
1028
1028
  let errorLength = 0;
1029
1029
  switch (algorithm) {
1030
- case 1 /* AES128_GCM */:
1030
+ case 1 /* CryptoEncryptionAlgorithm.AES128_GCM */:
1031
1031
  if (buffer.byteLength !== 16) {
1032
1032
  errorLength = 16;
1033
1033
  }
1034
1034
  break;
1035
- case 2 /* AES256_GCM */:
1036
- case 3 /* XCHACHA20_POLY1305 */:
1035
+ case 2 /* CryptoEncryptionAlgorithm.AES256_GCM */:
1036
+ case 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */:
1037
1037
  if (buffer.byteLength !== 32) {
1038
1038
  errorLength = 32;
1039
1039
  }
@@ -1071,13 +1071,13 @@ class CryptoValidation {
1071
1071
  buffer = nonce.buffer;
1072
1072
  let errorLength = 0;
1073
1073
  switch (algorithm) {
1074
- case 1 /* AES128_GCM */:
1075
- case 2 /* AES256_GCM */:
1074
+ case 1 /* CryptoEncryptionAlgorithm.AES128_GCM */:
1075
+ case 2 /* CryptoEncryptionAlgorithm.AES256_GCM */:
1076
1076
  if (buffer.byteLength !== 12) {
1077
1077
  errorLength = 12;
1078
1078
  }
1079
1079
  break;
1080
- case 3 /* XCHACHA20_POLY1305 */:
1080
+ case 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */:
1081
1081
  if (buffer.byteLength !== 24) {
1082
1082
  errorLength = 24;
1083
1083
  }
@@ -1187,11 +1187,11 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
1187
1187
  exports.buildInformation = void 0;
1188
1188
  const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
1189
1189
  exports.buildInformation = {
1190
- version: "2.0.1",
1191
- build: "13",
1192
- date: "2022-04-21T14:23:06+00:00",
1193
- commit: "dcef03f22ff721191e22ded7e50b1560f88387ee",
1194
- dependencies: {"libsodium-wrappers-sumo":"0.7.10","uuid":"8.3.2"},
1190
+ version: "2.0.3",
1191
+ build: "20",
1192
+ date: "2022-11-16T08:37:33+00:00",
1193
+ commit: "5a201e0f18e3450b041dd15704854eb43d725022",
1194
+ dependencies: {"libsodium-wrappers-sumo":"0.7.10","uuid":"9.0.0"},
1195
1195
  libraries: {
1196
1196
  serval: ts_serval_1.buildInformation
1197
1197
  }
@@ -1329,11 +1329,11 @@ const SodiumWrapper_1 = __webpack_require__(/*! ../SodiumWrapper */ "./dist/Sodi
1329
1329
  const CryptoCipher_1 = __webpack_require__(/*! ./CryptoCipher */ "./dist/encryption/CryptoCipher.js");
1330
1330
  const CryptoSecretKey_1 = __webpack_require__(/*! ./CryptoSecretKey */ "./dist/encryption/CryptoSecretKey.js");
1331
1331
  class CryptoEncryption {
1332
- static async generateKey(algorithm = 3 /* XCHACHA20_POLY1305 */) {
1332
+ static async generateKey(algorithm = 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */) {
1333
1333
  CryptoValidation_1.CryptoValidation.checkEncryptionAlgorithm(algorithm);
1334
1334
  let buffer;
1335
1335
  switch (algorithm) {
1336
- case 3 /* XCHACHA20_POLY1305 */:
1336
+ case 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */:
1337
1337
  try {
1338
1338
  buffer = new CoreBuffer_1.CoreBuffer((await SodiumWrapper_1.SodiumWrapper.ready()).crypto_aead_xchacha20poly1305_ietf_keygen());
1339
1339
  }
@@ -1356,7 +1356,7 @@ class CryptoEncryption {
1356
1356
  * @param nonce
1357
1357
  * @param algorithm
1358
1358
  */
1359
- static async encrypt(plaintext, secretKey, nonce, algorithm = 3 /* XCHACHA20_POLY1305 */) {
1359
+ static async encrypt(plaintext, secretKey, nonce, algorithm = 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */) {
1360
1360
  let correctAlgorithm;
1361
1361
  let secretKeyBuffer;
1362
1362
  if (secretKey instanceof CryptoSecretKey_1.CryptoSecretKey) {
@@ -1383,7 +1383,7 @@ class CryptoEncryption {
1383
1383
  }
1384
1384
  let cipher;
1385
1385
  switch (correctAlgorithm) {
1386
- case 3 /* XCHACHA20_POLY1305 */:
1386
+ case 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */:
1387
1387
  try {
1388
1388
  cipher = sodium.crypto_aead_xchacha20poly1305_ietf_encrypt(plaintext.buffer, "", new Uint8Array(), publicnonce, secretKeyBuffer);
1389
1389
  }
@@ -1400,7 +1400,7 @@ class CryptoEncryption {
1400
1400
  nonce: CoreBuffer_1.CoreBuffer.from(publicnonce)
1401
1401
  });
1402
1402
  }
1403
- static async encryptWithCounter(plaintext, secretKey, nonce, counter, algorithm = 3 /* XCHACHA20_POLY1305 */) {
1403
+ static async encryptWithCounter(plaintext, secretKey, nonce, counter, algorithm = 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */) {
1404
1404
  let correctAlgorithm;
1405
1405
  let secretKeyBuffer;
1406
1406
  if (secretKey instanceof CryptoSecretKey_1.CryptoSecretKey) {
@@ -1420,7 +1420,7 @@ class CryptoEncryption {
1420
1420
  const publicnonce = this._addCounter(nonce.buffer, counter);
1421
1421
  let cipherbuffer;
1422
1422
  switch (algorithm) {
1423
- case 3 /* XCHACHA20_POLY1305 */:
1423
+ case 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */:
1424
1424
  try {
1425
1425
  const cipher = (await SodiumWrapper_1.SodiumWrapper.ready()).crypto_aead_xchacha20poly1305_ietf_encrypt(plaintext.buffer, "", new Uint8Array(), publicnonce.buffer, secretKeyBuffer);
1426
1426
  cipherbuffer = new CoreBuffer_1.CoreBuffer(cipher);
@@ -1433,7 +1433,7 @@ class CryptoEncryption {
1433
1433
  throw new CryptoError_1.CryptoError(CryptoErrorCode_1.CryptoErrorCode.NotYetImplemented);
1434
1434
  }
1435
1435
  }
1436
- static async decrypt(cipher, secretKey, nonce, algorithm = 3 /* XCHACHA20_POLY1305 */) {
1436
+ static async decrypt(cipher, secretKey, nonce, algorithm = 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */) {
1437
1437
  let correctAlgorithm;
1438
1438
  let secretKeyBuffer;
1439
1439
  if (secretKey instanceof CryptoSecretKey_1.CryptoSecretKey) {
@@ -1461,7 +1461,7 @@ class CryptoEncryption {
1461
1461
  throw new CryptoError_1.CryptoError(CryptoErrorCode_1.CryptoErrorCode.EncryptionWrongNonce, "Cipher does not contain a nonce and no nonce is given.");
1462
1462
  }
1463
1463
  switch (correctAlgorithm) {
1464
- case 3 /* XCHACHA20_POLY1305 */:
1464
+ case 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */:
1465
1465
  try {
1466
1466
  const buffer = CoreBuffer_1.CoreBuffer.fromObject((await SodiumWrapper_1.SodiumWrapper.ready()).crypto_aead_xchacha20poly1305_ietf_decrypt(new Uint8Array(), cipher.cipher.buffer, "", publicnonce, secretKeyBuffer));
1467
1467
  return buffer;
@@ -1474,7 +1474,7 @@ class CryptoEncryption {
1474
1474
  throw new CryptoError_1.CryptoError(CryptoErrorCode_1.CryptoErrorCode.NotYetImplemented);
1475
1475
  }
1476
1476
  }
1477
- static async decryptWithCounter(cipher, secretKey, nonce, counter, algorithm = 3 /* XCHACHA20_POLY1305 */) {
1477
+ static async decryptWithCounter(cipher, secretKey, nonce, counter, algorithm = 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */) {
1478
1478
  if (secretKey instanceof CryptoSecretKey_1.CryptoSecretKey) {
1479
1479
  CryptoValidation_1.CryptoValidation.checkNonceForAlgorithm(nonce, secretKey.algorithm);
1480
1480
  }
@@ -1493,11 +1493,11 @@ class CryptoEncryption {
1493
1493
  CryptoValidation_1.CryptoValidation.checkEncryptionAlgorithm(algorithm);
1494
1494
  let nonceLength;
1495
1495
  switch (algorithm) {
1496
- case 1 /* AES128_GCM */:
1497
- case 2 /* AES256_GCM */:
1496
+ case 1 /* CryptoEncryptionAlgorithm.AES128_GCM */:
1497
+ case 2 /* CryptoEncryptionAlgorithm.AES256_GCM */:
1498
1498
  nonceLength = 12;
1499
1499
  break;
1500
- case 3 /* XCHACHA20_POLY1305 */:
1500
+ case 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */:
1501
1501
  nonceLength = 24;
1502
1502
  break;
1503
1503
  default:
@@ -1634,11 +1634,11 @@ class CryptoExchange {
1634
1634
  * @param algorithm The [[CryptoExchangeAlgorithm]] for which a keypair should be generated. Defaults to ECDH_X25519
1635
1635
  * @returns A Promise resolving into a [[CryptoExchangeKeypair]] object
1636
1636
  */
1637
- static async generateKeypair(algorithm = 3 /* ECDH_X25519 */) {
1637
+ static async generateKeypair(algorithm = 3 /* CryptoExchangeAlgorithm.ECDH_X25519 */) {
1638
1638
  let privateKeyBuffer;
1639
1639
  let publicKeyBuffer;
1640
1640
  switch (algorithm) {
1641
- case 3 /* ECDH_X25519 */:
1641
+ case 3 /* CryptoExchangeAlgorithm.ECDH_X25519 */:
1642
1642
  let pair;
1643
1643
  try {
1644
1644
  pair = (await SodiumWrapper_1.SodiumWrapper.ready()).crypto_kx_keypair();
@@ -1673,7 +1673,7 @@ class CryptoExchange {
1673
1673
  * @returns A Promise resolving into a [[CryptoExchangeSecrets]] object, containing the shared keys
1674
1674
  * for transmission and receiving.
1675
1675
  */
1676
- static async deriveRequestor(requestorKeypair, templatorPublicKey, algorithm = 3 /* XCHACHA20_POLY1305 */) {
1676
+ static async deriveRequestor(requestorKeypair, templatorPublicKey, algorithm = 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */) {
1677
1677
  let sharedKey;
1678
1678
  try {
1679
1679
  sharedKey = (await SodiumWrapper_1.SodiumWrapper.ready()).crypto_kx_server_session_keys(requestorKeypair.publicKey.publicKey.buffer, requestorKeypair.privateKey.privateKey.buffer, templatorPublicKey.publicKey.buffer);
@@ -1704,7 +1704,7 @@ class CryptoExchange {
1704
1704
  * @returns A Promise resolving into a [[CryptoExchangeSecrets]] object, containing the shared keys
1705
1705
  * for transmission and receiving.
1706
1706
  */
1707
- static async deriveTemplator(templatorKeypair, requestorPublicKey, algorithm = 3 /* XCHACHA20_POLY1305 */) {
1707
+ static async deriveTemplator(templatorKeypair, requestorPublicKey, algorithm = 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */) {
1708
1708
  let sharedKey;
1709
1709
  try {
1710
1710
  sharedKey = (await SodiumWrapper_1.SodiumWrapper.ready()).crypto_kx_client_session_keys(templatorKeypair.publicKey.publicKey.buffer, templatorKeypair.privateKey.privateKey.buffer, requestorPublicKey.publicKey.buffer);
@@ -1850,7 +1850,7 @@ let CryptoExchangePrivateKey = class CryptoExchangePrivateKey extends CryptoPriv
1850
1850
  async toPublicKey() {
1851
1851
  let publicKey;
1852
1852
  switch (this.algorithm) {
1853
- case 3 /* ECDH_X25519 */:
1853
+ case 3 /* CryptoExchangeAlgorithm.ECDH_X25519 */:
1854
1854
  try {
1855
1855
  publicKey = (await SodiumWrapper_1.SodiumWrapper.ready()).crypto_scalarmult_base(this.privateKey.buffer);
1856
1856
  }
@@ -2079,9 +2079,9 @@ class CryptoExchangeValidation extends CryptoValidation_1.CryptoValidation {
2079
2079
  static checkExchangeAlgorithm(algorithm, throwError = true) {
2080
2080
  let error;
2081
2081
  switch (algorithm) {
2082
- case 1 /* ECDH_P256 */:
2083
- case 2 /* ECDH_P521 */:
2084
- case 3 /* ECDH_X25519 */:
2082
+ case 1 /* CryptoExchangeAlgorithm.ECDH_P256 */:
2083
+ case 2 /* CryptoExchangeAlgorithm.ECDH_P521 */:
2084
+ case 3 /* CryptoExchangeAlgorithm.ECDH_X25519 */:
2085
2085
  break;
2086
2086
  default:
2087
2087
  error = new CryptoError_1.CryptoError(CryptoErrorCode_1.CryptoErrorCode.ExchangeWrongAlgorithm, "Exchange algorithm is not set or supported.");
@@ -2166,10 +2166,10 @@ class CryptoHash {
2166
2166
  let hashBuffer;
2167
2167
  const sodium = await SodiumWrapper_1.SodiumWrapper.ready();
2168
2168
  switch (algorithm) {
2169
- case 1 /* SHA256 */:
2169
+ case 1 /* CryptoHashAlgorithm.SHA256 */:
2170
2170
  hashBuffer = sodium.crypto_hash_sha256(content.buffer);
2171
2171
  break;
2172
- case 2 /* SHA512 */:
2172
+ case 2 /* CryptoHashAlgorithm.SHA512 */:
2173
2173
  hashBuffer = sodium.crypto_hash_sha512(content.buffer);
2174
2174
  break;
2175
2175
  default:
@@ -2194,9 +2194,9 @@ class CryptoHash {
2194
2194
  const bufferContent = CoreBuffer_1.CoreBuffer.fromString(content, CoreBuffer_1.Encoding.Utf8);
2195
2195
  if (hash) {
2196
2196
  const bufferHash = CoreBuffer_1.CoreBuffer.fromString(hash, CoreBuffer_1.Encoding.Hex);
2197
- return await this.verify(bufferContent, bufferHash, 1 /* SHA256 */);
2197
+ return await this.verify(bufferContent, bufferHash, 1 /* CryptoHashAlgorithm.SHA256 */);
2198
2198
  }
2199
- const created = await this.hash(bufferContent, 1 /* SHA256 */);
2199
+ const created = await this.hash(bufferContent, 1 /* CryptoHashAlgorithm.SHA256 */);
2200
2200
  return created.toString(CoreBuffer_1.Encoding.Hex);
2201
2201
  }
2202
2202
  /**
@@ -2216,9 +2216,9 @@ class CryptoHash {
2216
2216
  const bufferContent = CoreBuffer_1.CoreBuffer.fromString(content, CoreBuffer_1.Encoding.Utf8);
2217
2217
  if (hash) {
2218
2218
  const bufferHash = CoreBuffer_1.CoreBuffer.fromString(hash, CoreBuffer_1.Encoding.Hex);
2219
- return await this.verify(bufferContent, bufferHash, 2 /* SHA512 */);
2219
+ return await this.verify(bufferContent, bufferHash, 2 /* CryptoHashAlgorithm.SHA512 */);
2220
2220
  }
2221
- const created = await this.hash(bufferContent, 2 /* SHA512 */);
2221
+ const created = await this.hash(bufferContent, 2 /* CryptoHashAlgorithm.SHA512 */);
2222
2222
  return created.toString(CoreBuffer_1.Encoding.Hex);
2223
2223
  }
2224
2224
  }
@@ -2357,11 +2357,11 @@ class CryptoPasswordGenerator {
2357
2357
  * @param minLength
2358
2358
  * @param maxLength
2359
2359
  */
2360
- static async createStrongPassword(minLength = 10, maxLength = 20) {
2360
+ static async createStrongPassword(minLength = 14, maxLength = 20) {
2361
2361
  if (minLength > maxLength)
2362
2362
  maxLength = minLength;
2363
- if (minLength < 8) {
2364
- throw new CryptoError_1.CryptoError(CryptoErrorCode_1.CryptoErrorCode.PasswordInsecure, "The minimum password length should at least be 8 characters.");
2363
+ if (minLength < 14) {
2364
+ throw new CryptoError_1.CryptoError(CryptoErrorCode_1.CryptoErrorCode.PasswordInsecure, "The minimum password length should at least be 14 characters.");
2365
2365
  }
2366
2366
  const specialCharacterBucket = {
2367
2367
  minLength: 1,
@@ -2524,7 +2524,7 @@ CryptoPasswordGenerator.UNITS_GERMAN = [
2524
2524
 
2525
2525
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2526
2526
  exports.CryptoRandom = exports.CryptoRandomCharacterRange = void 0;
2527
- const uuid_1 = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/esm-browser/index.js");
2527
+ const uuid_1 = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/commonjs-browser/index.js");
2528
2528
  const CoreBuffer_1 = __webpack_require__(/*! ../CoreBuffer */ "./dist/CoreBuffer.js");
2529
2529
  const CryptoError_1 = __webpack_require__(/*! ../CryptoError */ "./dist/CryptoError.js");
2530
2530
  const CryptoErrorCode_1 = __webpack_require__(/*! ../CryptoErrorCode */ "./dist/CryptoErrorCode.js");
@@ -2884,7 +2884,7 @@ let CryptoRelationshipRequestSecrets = CryptoRelationshipRequestSecrets_1 = clas
2884
2884
  static from(value) {
2885
2885
  return this.fromAny(value);
2886
2886
  }
2887
- async sign(content, algorithm = 1 /* SHA256 */) {
2887
+ async sign(content, algorithm = 1 /* CryptoHashAlgorithm.SHA256 */) {
2888
2888
  return await CryptoSignatures_1.CryptoSignatures.sign(content, this.signatureKeypair.privateKey, algorithm);
2889
2889
  }
2890
2890
  async verifyOwn(content, signature) {
@@ -3018,7 +3018,7 @@ let CryptoRelationshipSecrets = CryptoRelationshipSecrets_1 = class CryptoRelati
3018
3018
  static from(value) {
3019
3019
  return this.fromAny(value);
3020
3020
  }
3021
- async sign(content, algorithm = 1 /* SHA256 */) {
3021
+ async sign(content, algorithm = 1 /* CryptoHashAlgorithm.SHA256 */) {
3022
3022
  return await CryptoSignatures_1.CryptoSignatures.sign(content, this.signatureKeypair.privateKey, algorithm);
3023
3023
  }
3024
3024
  async verifyOwn(content, signature) {
@@ -3070,7 +3070,7 @@ let CryptoRelationshipSecrets = CryptoRelationshipSecrets_1 = class CryptoRelati
3070
3070
  const [receiveState, transmitState] = await Promise.all([
3071
3071
  CryptoPrivateStateReceive_1.CryptoPrivateStateReceive.fromPublicState(peerPublicTransmitState, derivedRx.secretKey, 0),
3072
3072
  CryptoPrivateStateTransmit_1.CryptoPrivateStateTransmit.from({
3073
- algorithm: 3 /* XCHACHA20_POLY1305 */,
3073
+ algorithm: 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */,
3074
3074
  counter: 0,
3075
3075
  nonce: request.nonce,
3076
3076
  secretKey: derivedTx.secretKey,
@@ -3552,9 +3552,9 @@ class CryptoSignatureValidation extends CryptoValidation_1.CryptoValidation {
3552
3552
  static checkSignatureAlgorithm(algorithm, throwError = true) {
3553
3553
  let error;
3554
3554
  switch (algorithm) {
3555
- case 3 /* ECDSA_ED25519 */:
3556
- case 1 /* ECDSA_P256 */:
3557
- case 2 /* ECDSA_P521 */:
3555
+ case 3 /* CryptoSignatureAlgorithm.ECDSA_ED25519 */:
3556
+ case 1 /* CryptoSignatureAlgorithm.ECDSA_P256 */:
3557
+ case 2 /* CryptoSignatureAlgorithm.ECDSA_P521 */:
3558
3558
  break;
3559
3559
  default:
3560
3560
  error = new CryptoError_1.CryptoError(CryptoErrorCode_1.CryptoErrorCode.SignatureWrongAlgorithm, "Signature algorithm is not set or supported.");
@@ -3666,7 +3666,7 @@ const CryptoSignatureValidation_1 = __webpack_require__(/*! ./CryptoSignatureVal
3666
3666
  class CryptoSignatures {
3667
3667
  static async privateKeyToPublicKey(privateKey) {
3668
3668
  switch (privateKey.algorithm) {
3669
- case 3 /* ECDSA_ED25519 */:
3669
+ case 3 /* CryptoSignatureAlgorithm.ECDSA_ED25519 */:
3670
3670
  try {
3671
3671
  const publicKey = (await SodiumWrapper_1.SodiumWrapper.ready()).crypto_sign_ed25519_sk_to_pk(privateKey.privateKey.buffer);
3672
3672
  return CryptoSignaturePublicKey_1.CryptoSignaturePublicKey.from({
@@ -3685,11 +3685,11 @@ class CryptoSignatures {
3685
3685
  * Generates a keypair for the specified elliptic algorithm
3686
3686
  * @param algorithm
3687
3687
  */
3688
- static async generateKeypair(algorithm = 3 /* ECDSA_ED25519 */) {
3688
+ static async generateKeypair(algorithm = 3 /* CryptoSignatureAlgorithm.ECDSA_ED25519 */) {
3689
3689
  CryptoSignatureValidation_1.CryptoSignatureValidation.checkSignatureAlgorithm(algorithm);
3690
3690
  let pair;
3691
3691
  switch (algorithm) {
3692
- case 3 /* ECDSA_ED25519 */:
3692
+ case 3 /* CryptoSignatureAlgorithm.ECDSA_ED25519 */:
3693
3693
  try {
3694
3694
  pair = (await SodiumWrapper_1.SodiumWrapper.ready()).crypto_sign_keypair();
3695
3695
  }
@@ -3705,7 +3705,7 @@ class CryptoSignatures {
3705
3705
  const keypair = CryptoSignatureKeypair_1.CryptoSignatureKeypair.from({ publicKey, privateKey });
3706
3706
  return keypair;
3707
3707
  }
3708
- static async sign(content, privateKey, algorithm = 2 /* SHA512 */, keyId, id) {
3708
+ static async sign(content, privateKey, algorithm = 2 /* CryptoHashAlgorithm.SHA512 */, keyId, id) {
3709
3709
  CryptoSignatureValidation_1.CryptoSignatureValidation.checkBuffer(content, 1);
3710
3710
  CryptoSignatureValidation_1.CryptoSignatureValidation.checkHashAlgorithm(algorithm);
3711
3711
  const privateKeyBuffer = this.getArrayOfPrivateKey(privateKey);
@@ -3936,7 +3936,7 @@ let CryptoPrivateStateReceive = CryptoPrivateStateReceive_1 = class CryptoPrivat
3936
3936
  nonce: nonce.clone(),
3937
3937
  counter,
3938
3938
  secretKey,
3939
- algorithm: 3 /* XCHACHA20_POLY1305 */,
3939
+ algorithm: 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */,
3940
3940
  stateType: CryptoStateType_1.CryptoStateType.Receive
3941
3941
  });
3942
3942
  }
@@ -4016,7 +4016,7 @@ let CryptoPrivateStateTransmit = class CryptoPrivateStateTransmit extends Crypto
4016
4016
  const plaintext = await CryptoEncryption_1.CryptoEncryption.decryptWithCounter(cipher, this.secretKey, this.nonce, cipher.counter);
4017
4017
  return plaintext;
4018
4018
  }
4019
- static generate(secretKey, id, algorithm = 3 /* XCHACHA20_POLY1305 */) {
4019
+ static generate(secretKey, id, algorithm = 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */) {
4020
4020
  CryptoValidation_1.CryptoValidation.checkEncryptionAlgorithm(algorithm);
4021
4021
  CryptoValidation_1.CryptoValidation.checkSecretKeyForAlgorithm(secretKey, algorithm);
4022
4022
  if (typeof secretKey === "undefined")
@@ -4437,57 +4437,109 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
4437
4437
 
4438
4438
  /***/ }),
4439
4439
 
4440
- /***/ "./node_modules/uuid/dist/esm-browser/index.js":
4441
- /*!*****************************************************!*\
4442
- !*** ./node_modules/uuid/dist/esm-browser/index.js ***!
4443
- \*****************************************************/
4444
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4440
+ /***/ "./node_modules/uuid/dist/commonjs-browser/index.js":
4441
+ /*!**********************************************************!*\
4442
+ !*** ./node_modules/uuid/dist/commonjs-browser/index.js ***!
4443
+ \**********************************************************/
4444
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4445
4445
 
4446
4446
  "use strict";
4447
- __webpack_require__.r(__webpack_exports__);
4448
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4449
- /* harmony export */ "NIL": () => (/* reexport safe */ _nil_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
4450
- /* harmony export */ "parse": () => (/* reexport safe */ _parse_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
4451
- /* harmony export */ "stringify": () => (/* reexport safe */ _stringify_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
4452
- /* harmony export */ "v1": () => (/* reexport safe */ _v1_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
4453
- /* harmony export */ "v3": () => (/* reexport safe */ _v3_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
4454
- /* harmony export */ "v4": () => (/* reexport safe */ _v4_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
4455
- /* harmony export */ "v5": () => (/* reexport safe */ _v5_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
4456
- /* harmony export */ "validate": () => (/* reexport safe */ _validate_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
4457
- /* harmony export */ "version": () => (/* reexport safe */ _version_js__WEBPACK_IMPORTED_MODULE_5__["default"])
4458
- /* harmony export */ });
4459
- /* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v1.js */ "./node_modules/uuid/dist/esm-browser/v1.js");
4460
- /* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v3.js */ "./node_modules/uuid/dist/esm-browser/v3.js");
4461
- /* harmony import */ var _v4_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./v4.js */ "./node_modules/uuid/dist/esm-browser/v4.js");
4462
- /* harmony import */ var _v5_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./v5.js */ "./node_modules/uuid/dist/esm-browser/v5.js");
4463
- /* harmony import */ var _nil_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nil.js */ "./node_modules/uuid/dist/esm-browser/nil.js");
4464
- /* harmony import */ var _version_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./version.js */ "./node_modules/uuid/dist/esm-browser/version.js");
4465
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
4466
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
4467
- /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/esm-browser/parse.js");
4468
4447
 
4469
4448
 
4449
+ Object.defineProperty(exports, "__esModule", ({
4450
+ value: true
4451
+ }));
4452
+ Object.defineProperty(exports, "NIL", ({
4453
+ enumerable: true,
4454
+ get: function get() {
4455
+ return _nil.default;
4456
+ }
4457
+ }));
4458
+ Object.defineProperty(exports, "parse", ({
4459
+ enumerable: true,
4460
+ get: function get() {
4461
+ return _parse.default;
4462
+ }
4463
+ }));
4464
+ Object.defineProperty(exports, "stringify", ({
4465
+ enumerable: true,
4466
+ get: function get() {
4467
+ return _stringify.default;
4468
+ }
4469
+ }));
4470
+ Object.defineProperty(exports, "v1", ({
4471
+ enumerable: true,
4472
+ get: function get() {
4473
+ return _v.default;
4474
+ }
4475
+ }));
4476
+ Object.defineProperty(exports, "v3", ({
4477
+ enumerable: true,
4478
+ get: function get() {
4479
+ return _v2.default;
4480
+ }
4481
+ }));
4482
+ Object.defineProperty(exports, "v4", ({
4483
+ enumerable: true,
4484
+ get: function get() {
4485
+ return _v3.default;
4486
+ }
4487
+ }));
4488
+ Object.defineProperty(exports, "v5", ({
4489
+ enumerable: true,
4490
+ get: function get() {
4491
+ return _v4.default;
4492
+ }
4493
+ }));
4494
+ Object.defineProperty(exports, "validate", ({
4495
+ enumerable: true,
4496
+ get: function get() {
4497
+ return _validate.default;
4498
+ }
4499
+ }));
4500
+ Object.defineProperty(exports, "version", ({
4501
+ enumerable: true,
4502
+ get: function get() {
4503
+ return _version.default;
4504
+ }
4505
+ }));
4506
+
4507
+ var _v = _interopRequireDefault(__webpack_require__(/*! ./v1.js */ "./node_modules/uuid/dist/commonjs-browser/v1.js"));
4508
+
4509
+ var _v2 = _interopRequireDefault(__webpack_require__(/*! ./v3.js */ "./node_modules/uuid/dist/commonjs-browser/v3.js"));
4510
+
4511
+ var _v3 = _interopRequireDefault(__webpack_require__(/*! ./v4.js */ "./node_modules/uuid/dist/commonjs-browser/v4.js"));
4470
4512
 
4513
+ var _v4 = _interopRequireDefault(__webpack_require__(/*! ./v5.js */ "./node_modules/uuid/dist/commonjs-browser/v5.js"));
4471
4514
 
4515
+ var _nil = _interopRequireDefault(__webpack_require__(/*! ./nil.js */ "./node_modules/uuid/dist/commonjs-browser/nil.js"));
4472
4516
 
4517
+ var _version = _interopRequireDefault(__webpack_require__(/*! ./version.js */ "./node_modules/uuid/dist/commonjs-browser/version.js"));
4473
4518
 
4519
+ var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/commonjs-browser/validate.js"));
4474
4520
 
4521
+ var _stringify = _interopRequireDefault(__webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js"));
4475
4522
 
4523
+ var _parse = _interopRequireDefault(__webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/commonjs-browser/parse.js"));
4476
4524
 
4525
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4477
4526
 
4478
4527
  /***/ }),
4479
4528
 
4480
- /***/ "./node_modules/uuid/dist/esm-browser/md5.js":
4481
- /*!***************************************************!*\
4482
- !*** ./node_modules/uuid/dist/esm-browser/md5.js ***!
4483
- \***************************************************/
4484
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4529
+ /***/ "./node_modules/uuid/dist/commonjs-browser/md5.js":
4530
+ /*!********************************************************!*\
4531
+ !*** ./node_modules/uuid/dist/commonjs-browser/md5.js ***!
4532
+ \********************************************************/
4533
+ /***/ ((__unused_webpack_module, exports) => {
4485
4534
 
4486
4535
  "use strict";
4487
- __webpack_require__.r(__webpack_exports__);
4488
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4489
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4490
- /* harmony export */ });
4536
+
4537
+
4538
+ Object.defineProperty(exports, "__esModule", ({
4539
+ value: true
4540
+ }));
4541
+ exports["default"] = void 0;
4542
+
4491
4543
  /*
4492
4544
  * Browser-compatible JavaScript MD5
4493
4545
  *
@@ -4510,11 +4562,11 @@ __webpack_require__.r(__webpack_exports__);
4510
4562
  */
4511
4563
  function md5(bytes) {
4512
4564
  if (typeof bytes === 'string') {
4513
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
4565
+ const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
4514
4566
 
4515
4567
  bytes = new Uint8Array(msg.length);
4516
4568
 
4517
- for (var i = 0; i < msg.length; ++i) {
4569
+ for (let i = 0; i < msg.length; ++i) {
4518
4570
  bytes[i] = msg.charCodeAt(i);
4519
4571
  }
4520
4572
  }
@@ -4527,13 +4579,13 @@ function md5(bytes) {
4527
4579
 
4528
4580
 
4529
4581
  function md5ToHexEncodedArray(input) {
4530
- var output = [];
4531
- var length32 = input.length * 32;
4532
- var hexTab = '0123456789abcdef';
4582
+ const output = [];
4583
+ const length32 = input.length * 32;
4584
+ const hexTab = '0123456789abcdef';
4533
4585
 
4534
- for (var i = 0; i < length32; i += 8) {
4535
- var x = input[i >> 5] >>> i % 32 & 0xff;
4536
- var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
4586
+ for (let i = 0; i < length32; i += 8) {
4587
+ const x = input[i >> 5] >>> i % 32 & 0xff;
4588
+ const hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
4537
4589
  output.push(hex);
4538
4590
  }
4539
4591
 
@@ -4556,16 +4608,16 @@ function wordsToMd5(x, len) {
4556
4608
  /* append padding */
4557
4609
  x[len >> 5] |= 0x80 << len % 32;
4558
4610
  x[getOutputLength(len) - 1] = len;
4559
- var a = 1732584193;
4560
- var b = -271733879;
4561
- var c = -1732584194;
4562
- var d = 271733878;
4563
-
4564
- for (var i = 0; i < x.length; i += 16) {
4565
- var olda = a;
4566
- var oldb = b;
4567
- var oldc = c;
4568
- var oldd = d;
4611
+ let a = 1732584193;
4612
+ let b = -271733879;
4613
+ let c = -1732584194;
4614
+ let d = 271733878;
4615
+
4616
+ for (let i = 0; i < x.length; i += 16) {
4617
+ const olda = a;
4618
+ const oldb = b;
4619
+ const oldc = c;
4620
+ const oldd = d;
4569
4621
  a = md5ff(a, b, c, d, x[i], 7, -680876936);
4570
4622
  d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
4571
4623
  c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
@@ -4649,10 +4701,10 @@ function bytesToWords(input) {
4649
4701
  return [];
4650
4702
  }
4651
4703
 
4652
- var length8 = input.length * 8;
4653
- var output = new Uint32Array(getOutputLength(length8));
4704
+ const length8 = input.length * 8;
4705
+ const output = new Uint32Array(getOutputLength(length8));
4654
4706
 
4655
- for (var i = 0; i < length8; i += 8) {
4707
+ for (let i = 0; i < length8; i += 8) {
4656
4708
  output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
4657
4709
  }
4658
4710
 
@@ -4665,8 +4717,8 @@ function bytesToWords(input) {
4665
4717
 
4666
4718
 
4667
4719
  function safeAdd(x, y) {
4668
- var lsw = (x & 0xffff) + (y & 0xffff);
4669
- var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
4720
+ const lsw = (x & 0xffff) + (y & 0xffff);
4721
+ const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
4670
4722
  return msw << 16 | lsw & 0xffff;
4671
4723
  }
4672
4724
  /*
@@ -4702,46 +4754,75 @@ function md5ii(a, b, c, d, x, s, t) {
4702
4754
  return md5cmn(c ^ (b | ~d), a, b, x, s, t);
4703
4755
  }
4704
4756
 
4705
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (md5);
4757
+ var _default = md5;
4758
+ exports["default"] = _default;
4706
4759
 
4707
4760
  /***/ }),
4708
4761
 
4709
- /***/ "./node_modules/uuid/dist/esm-browser/nil.js":
4710
- /*!***************************************************!*\
4711
- !*** ./node_modules/uuid/dist/esm-browser/nil.js ***!
4712
- \***************************************************/
4713
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4762
+ /***/ "./node_modules/uuid/dist/commonjs-browser/native.js":
4763
+ /*!***********************************************************!*\
4764
+ !*** ./node_modules/uuid/dist/commonjs-browser/native.js ***!
4765
+ \***********************************************************/
4766
+ /***/ ((__unused_webpack_module, exports) => {
4714
4767
 
4715
4768
  "use strict";
4716
- __webpack_require__.r(__webpack_exports__);
4717
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4718
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4719
- /* harmony export */ });
4720
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ('00000000-0000-0000-0000-000000000000');
4769
+
4770
+
4771
+ Object.defineProperty(exports, "__esModule", ({
4772
+ value: true
4773
+ }));
4774
+ exports["default"] = void 0;
4775
+ const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
4776
+ var _default = {
4777
+ randomUUID
4778
+ };
4779
+ exports["default"] = _default;
4721
4780
 
4722
4781
  /***/ }),
4723
4782
 
4724
- /***/ "./node_modules/uuid/dist/esm-browser/parse.js":
4725
- /*!*****************************************************!*\
4726
- !*** ./node_modules/uuid/dist/esm-browser/parse.js ***!
4727
- \*****************************************************/
4728
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4783
+ /***/ "./node_modules/uuid/dist/commonjs-browser/nil.js":
4784
+ /*!********************************************************!*\
4785
+ !*** ./node_modules/uuid/dist/commonjs-browser/nil.js ***!
4786
+ \********************************************************/
4787
+ /***/ ((__unused_webpack_module, exports) => {
4788
+
4789
+ "use strict";
4790
+
4791
+
4792
+ Object.defineProperty(exports, "__esModule", ({
4793
+ value: true
4794
+ }));
4795
+ exports["default"] = void 0;
4796
+ var _default = '00000000-0000-0000-0000-000000000000';
4797
+ exports["default"] = _default;
4798
+
4799
+ /***/ }),
4800
+
4801
+ /***/ "./node_modules/uuid/dist/commonjs-browser/parse.js":
4802
+ /*!**********************************************************!*\
4803
+ !*** ./node_modules/uuid/dist/commonjs-browser/parse.js ***!
4804
+ \**********************************************************/
4805
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4729
4806
 
4730
4807
  "use strict";
4731
- __webpack_require__.r(__webpack_exports__);
4732
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4733
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4734
- /* harmony export */ });
4735
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
4736
4808
 
4737
4809
 
4810
+ Object.defineProperty(exports, "__esModule", ({
4811
+ value: true
4812
+ }));
4813
+ exports["default"] = void 0;
4814
+
4815
+ var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/commonjs-browser/validate.js"));
4816
+
4817
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4818
+
4738
4819
  function parse(uuid) {
4739
- if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
4820
+ if (!(0, _validate.default)(uuid)) {
4740
4821
  throw TypeError('Invalid UUID');
4741
4822
  }
4742
4823
 
4743
- var v;
4744
- var arr = new Uint8Array(16); // Parse ########-....-....-....-............
4824
+ let v;
4825
+ const arr = new Uint8Array(16); // Parse ########-....-....-....-............
4745
4826
 
4746
4827
  arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
4747
4828
  arr[1] = v >>> 16 & 0xff;
@@ -4767,47 +4848,53 @@ function parse(uuid) {
4767
4848
  return arr;
4768
4849
  }
4769
4850
 
4770
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parse);
4851
+ var _default = parse;
4852
+ exports["default"] = _default;
4771
4853
 
4772
4854
  /***/ }),
4773
4855
 
4774
- /***/ "./node_modules/uuid/dist/esm-browser/regex.js":
4775
- /*!*****************************************************!*\
4776
- !*** ./node_modules/uuid/dist/esm-browser/regex.js ***!
4777
- \*****************************************************/
4778
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4856
+ /***/ "./node_modules/uuid/dist/commonjs-browser/regex.js":
4857
+ /*!**********************************************************!*\
4858
+ !*** ./node_modules/uuid/dist/commonjs-browser/regex.js ***!
4859
+ \**********************************************************/
4860
+ /***/ ((__unused_webpack_module, exports) => {
4779
4861
 
4780
4862
  "use strict";
4781
- __webpack_require__.r(__webpack_exports__);
4782
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4783
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4784
- /* harmony export */ });
4785
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
4863
+
4864
+
4865
+ Object.defineProperty(exports, "__esModule", ({
4866
+ value: true
4867
+ }));
4868
+ exports["default"] = void 0;
4869
+ var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
4870
+ exports["default"] = _default;
4786
4871
 
4787
4872
  /***/ }),
4788
4873
 
4789
- /***/ "./node_modules/uuid/dist/esm-browser/rng.js":
4790
- /*!***************************************************!*\
4791
- !*** ./node_modules/uuid/dist/esm-browser/rng.js ***!
4792
- \***************************************************/
4793
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4874
+ /***/ "./node_modules/uuid/dist/commonjs-browser/rng.js":
4875
+ /*!********************************************************!*\
4876
+ !*** ./node_modules/uuid/dist/commonjs-browser/rng.js ***!
4877
+ \********************************************************/
4878
+ /***/ ((__unused_webpack_module, exports) => {
4794
4879
 
4795
4880
  "use strict";
4796
- __webpack_require__.r(__webpack_exports__);
4797
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4798
- /* harmony export */ "default": () => (/* binding */ rng)
4799
- /* harmony export */ });
4881
+
4882
+
4883
+ Object.defineProperty(exports, "__esModule", ({
4884
+ value: true
4885
+ }));
4886
+ exports["default"] = rng;
4800
4887
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
4801
4888
  // require the crypto API and do not support built-in fallback to lower quality random number
4802
4889
  // generators (like Math.random()).
4803
- var getRandomValues;
4804
- var rnds8 = new Uint8Array(16);
4890
+ let getRandomValues;
4891
+ const rnds8 = new Uint8Array(16);
4892
+
4805
4893
  function rng() {
4806
4894
  // lazy load so that environments that need to polyfill have a chance to do so
4807
4895
  if (!getRandomValues) {
4808
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
4809
- // find the complete implementation of crypto (msCrypto) on IE11.
4810
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
4896
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
4897
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
4811
4898
 
4812
4899
  if (!getRandomValues) {
4813
4900
  throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
@@ -4819,17 +4906,20 @@ function rng() {
4819
4906
 
4820
4907
  /***/ }),
4821
4908
 
4822
- /***/ "./node_modules/uuid/dist/esm-browser/sha1.js":
4823
- /*!****************************************************!*\
4824
- !*** ./node_modules/uuid/dist/esm-browser/sha1.js ***!
4825
- \****************************************************/
4826
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4909
+ /***/ "./node_modules/uuid/dist/commonjs-browser/sha1.js":
4910
+ /*!*********************************************************!*\
4911
+ !*** ./node_modules/uuid/dist/commonjs-browser/sha1.js ***!
4912
+ \*********************************************************/
4913
+ /***/ ((__unused_webpack_module, exports) => {
4827
4914
 
4828
4915
  "use strict";
4829
- __webpack_require__.r(__webpack_exports__);
4830
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4831
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4832
- /* harmony export */ });
4916
+
4917
+
4918
+ Object.defineProperty(exports, "__esModule", ({
4919
+ value: true
4920
+ }));
4921
+ exports["default"] = void 0;
4922
+
4833
4923
  // Adapted from Chris Veness' SHA1 code at
4834
4924
  // http://www.movable-type.co.uk/scripts/sha1.html
4835
4925
  function f(s, x, y, z) {
@@ -4853,15 +4943,15 @@ function ROTL(x, n) {
4853
4943
  }
4854
4944
 
4855
4945
  function sha1(bytes) {
4856
- var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
4857
- var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
4946
+ const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
4947
+ const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
4858
4948
 
4859
4949
  if (typeof bytes === 'string') {
4860
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
4950
+ const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
4861
4951
 
4862
4952
  bytes = [];
4863
4953
 
4864
- for (var i = 0; i < msg.length; ++i) {
4954
+ for (let i = 0; i < msg.length; ++i) {
4865
4955
  bytes.push(msg.charCodeAt(i));
4866
4956
  }
4867
4957
  } else if (!Array.isArray(bytes)) {
@@ -4870,44 +4960,44 @@ function sha1(bytes) {
4870
4960
  }
4871
4961
 
4872
4962
  bytes.push(0x80);
4873
- var l = bytes.length / 4 + 2;
4874
- var N = Math.ceil(l / 16);
4875
- var M = new Array(N);
4963
+ const l = bytes.length / 4 + 2;
4964
+ const N = Math.ceil(l / 16);
4965
+ const M = new Array(N);
4876
4966
 
4877
- for (var _i = 0; _i < N; ++_i) {
4878
- var arr = new Uint32Array(16);
4967
+ for (let i = 0; i < N; ++i) {
4968
+ const arr = new Uint32Array(16);
4879
4969
 
4880
- for (var j = 0; j < 16; ++j) {
4881
- arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];
4970
+ for (let j = 0; j < 16; ++j) {
4971
+ arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];
4882
4972
  }
4883
4973
 
4884
- M[_i] = arr;
4974
+ M[i] = arr;
4885
4975
  }
4886
4976
 
4887
4977
  M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
4888
4978
  M[N - 1][14] = Math.floor(M[N - 1][14]);
4889
4979
  M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
4890
4980
 
4891
- for (var _i2 = 0; _i2 < N; ++_i2) {
4892
- var W = new Uint32Array(80);
4981
+ for (let i = 0; i < N; ++i) {
4982
+ const W = new Uint32Array(80);
4893
4983
 
4894
- for (var t = 0; t < 16; ++t) {
4895
- W[t] = M[_i2][t];
4984
+ for (let t = 0; t < 16; ++t) {
4985
+ W[t] = M[i][t];
4896
4986
  }
4897
4987
 
4898
- for (var _t = 16; _t < 80; ++_t) {
4899
- W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
4988
+ for (let t = 16; t < 80; ++t) {
4989
+ W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
4900
4990
  }
4901
4991
 
4902
- var a = H[0];
4903
- var b = H[1];
4904
- var c = H[2];
4905
- var d = H[3];
4906
- var e = H[4];
4992
+ let a = H[0];
4993
+ let b = H[1];
4994
+ let c = H[2];
4995
+ let d = H[3];
4996
+ let e = H[4];
4907
4997
 
4908
- for (var _t2 = 0; _t2 < 80; ++_t2) {
4909
- var s = Math.floor(_t2 / 20);
4910
- var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
4998
+ for (let t = 0; t < 80; ++t) {
4999
+ const s = Math.floor(t / 20);
5000
+ const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
4911
5001
  e = d;
4912
5002
  d = c;
4913
5003
  c = ROTL(b, 30) >>> 0;
@@ -4925,93 +5015,108 @@ function sha1(bytes) {
4925
5015
  return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
4926
5016
  }
4927
5017
 
4928
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (sha1);
5018
+ var _default = sha1;
5019
+ exports["default"] = _default;
4929
5020
 
4930
5021
  /***/ }),
4931
5022
 
4932
- /***/ "./node_modules/uuid/dist/esm-browser/stringify.js":
4933
- /*!*********************************************************!*\
4934
- !*** ./node_modules/uuid/dist/esm-browser/stringify.js ***!
4935
- \*********************************************************/
4936
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5023
+ /***/ "./node_modules/uuid/dist/commonjs-browser/stringify.js":
5024
+ /*!**************************************************************!*\
5025
+ !*** ./node_modules/uuid/dist/commonjs-browser/stringify.js ***!
5026
+ \**************************************************************/
5027
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4937
5028
 
4938
5029
  "use strict";
4939
- __webpack_require__.r(__webpack_exports__);
4940
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4941
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4942
- /* harmony export */ });
4943
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
5030
+
5031
+
5032
+ Object.defineProperty(exports, "__esModule", ({
5033
+ value: true
5034
+ }));
5035
+ exports["default"] = void 0;
5036
+ exports.unsafeStringify = unsafeStringify;
5037
+
5038
+ var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/commonjs-browser/validate.js"));
5039
+
5040
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4944
5041
 
4945
5042
  /**
4946
5043
  * Convert array of 16 byte values to UUID string format of the form:
4947
5044
  * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
4948
5045
  */
5046
+ const byteToHex = [];
4949
5047
 
4950
- var byteToHex = [];
4951
-
4952
- for (var i = 0; i < 256; ++i) {
4953
- byteToHex.push((i + 0x100).toString(16).substr(1));
5048
+ for (let i = 0; i < 256; ++i) {
5049
+ byteToHex.push((i + 0x100).toString(16).slice(1));
4954
5050
  }
4955
5051
 
4956
- function stringify(arr) {
4957
- var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
5052
+ function unsafeStringify(arr, offset = 0) {
4958
5053
  // Note: Be careful editing this code! It's been tuned for performance
4959
5054
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
4960
- var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
5055
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
5056
+ }
5057
+
5058
+ function stringify(arr, offset = 0) {
5059
+ const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
4961
5060
  // of the following:
4962
5061
  // - One or more input array values don't map to a hex octet (leading to
4963
5062
  // "undefined" in the uuid)
4964
5063
  // - Invalid input values for the RFC `version` or `variant` fields
4965
5064
 
4966
- if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
5065
+ if (!(0, _validate.default)(uuid)) {
4967
5066
  throw TypeError('Stringified UUID is invalid');
4968
5067
  }
4969
5068
 
4970
5069
  return uuid;
4971
5070
  }
4972
5071
 
4973
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stringify);
5072
+ var _default = stringify;
5073
+ exports["default"] = _default;
4974
5074
 
4975
5075
  /***/ }),
4976
5076
 
4977
- /***/ "./node_modules/uuid/dist/esm-browser/v1.js":
4978
- /*!**************************************************!*\
4979
- !*** ./node_modules/uuid/dist/esm-browser/v1.js ***!
4980
- \**************************************************/
4981
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5077
+ /***/ "./node_modules/uuid/dist/commonjs-browser/v1.js":
5078
+ /*!*******************************************************!*\
5079
+ !*** ./node_modules/uuid/dist/commonjs-browser/v1.js ***!
5080
+ \*******************************************************/
5081
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4982
5082
 
4983
5083
  "use strict";
4984
- __webpack_require__.r(__webpack_exports__);
4985
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4986
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4987
- /* harmony export */ });
4988
- /* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/esm-browser/rng.js");
4989
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
4990
-
4991
- // **`v1()` - Generate time-based UUID**
5084
+
5085
+
5086
+ Object.defineProperty(exports, "__esModule", ({
5087
+ value: true
5088
+ }));
5089
+ exports["default"] = void 0;
5090
+
5091
+ var _rng = _interopRequireDefault(__webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/commonjs-browser/rng.js"));
5092
+
5093
+ var _stringify = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js");
5094
+
5095
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5096
+
5097
+ // **`v1()` - Generate time-based UUID**
4992
5098
  //
4993
5099
  // Inspired by https://github.com/LiosK/UUID.js
4994
5100
  // and http://docs.python.org/library/uuid.html
5101
+ let _nodeId;
4995
5102
 
4996
- var _nodeId;
4997
-
4998
- var _clockseq; // Previous uuid creation time
5103
+ let _clockseq; // Previous uuid creation time
4999
5104
 
5000
5105
 
5001
- var _lastMSecs = 0;
5002
- var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
5106
+ let _lastMSecs = 0;
5107
+ let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
5003
5108
 
5004
5109
  function v1(options, buf, offset) {
5005
- var i = buf && offset || 0;
5006
- var b = buf || new Array(16);
5110
+ let i = buf && offset || 0;
5111
+ const b = buf || new Array(16);
5007
5112
  options = options || {};
5008
- var node = options.node || _nodeId;
5009
- var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
5113
+ let node = options.node || _nodeId;
5114
+ let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
5010
5115
  // specified. We do this lazily to minimize issues related to insufficient
5011
5116
  // system entropy. See #189
5012
5117
 
5013
5118
  if (node == null || clockseq == null) {
5014
- var seedBytes = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
5119
+ const seedBytes = options.random || (options.rng || _rng.default)();
5015
5120
 
5016
5121
  if (node == null) {
5017
5122
  // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
@@ -5028,12 +5133,12 @@ function v1(options, buf, offset) {
5028
5133
  // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
5029
5134
 
5030
5135
 
5031
- var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
5136
+ let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
5032
5137
  // cycle to simulate higher resolution clock
5033
5138
 
5034
- var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
5139
+ let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
5035
5140
 
5036
- var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
5141
+ const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
5037
5142
 
5038
5143
  if (dt < 0 && options.clockseq === undefined) {
5039
5144
  clockseq = clockseq + 1 & 0x3fff;
@@ -5056,13 +5161,13 @@ function v1(options, buf, offset) {
5056
5161
 
5057
5162
  msecs += 12219292800000; // `time_low`
5058
5163
 
5059
- var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
5164
+ const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
5060
5165
  b[i++] = tl >>> 24 & 0xff;
5061
5166
  b[i++] = tl >>> 16 & 0xff;
5062
5167
  b[i++] = tl >>> 8 & 0xff;
5063
5168
  b[i++] = tl & 0xff; // `time_mid`
5064
5169
 
5065
- var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
5170
+ const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
5066
5171
  b[i++] = tmh >>> 8 & 0xff;
5067
5172
  b[i++] = tmh & 0xff; // `time_high_and_version`
5068
5173
 
@@ -5074,87 +5179,102 @@ function v1(options, buf, offset) {
5074
5179
 
5075
5180
  b[i++] = clockseq & 0xff; // `node`
5076
5181
 
5077
- for (var n = 0; n < 6; ++n) {
5182
+ for (let n = 0; n < 6; ++n) {
5078
5183
  b[i + n] = node[n];
5079
5184
  }
5080
5185
 
5081
- return buf || (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b);
5186
+ return buf || (0, _stringify.unsafeStringify)(b);
5082
5187
  }
5083
5188
 
5084
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v1);
5189
+ var _default = v1;
5190
+ exports["default"] = _default;
5085
5191
 
5086
5192
  /***/ }),
5087
5193
 
5088
- /***/ "./node_modules/uuid/dist/esm-browser/v3.js":
5089
- /*!**************************************************!*\
5090
- !*** ./node_modules/uuid/dist/esm-browser/v3.js ***!
5091
- \**************************************************/
5092
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5194
+ /***/ "./node_modules/uuid/dist/commonjs-browser/v3.js":
5195
+ /*!*******************************************************!*\
5196
+ !*** ./node_modules/uuid/dist/commonjs-browser/v3.js ***!
5197
+ \*******************************************************/
5198
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5093
5199
 
5094
5200
  "use strict";
5095
- __webpack_require__.r(__webpack_exports__);
5096
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5097
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
5098
- /* harmony export */ });
5099
- /* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/esm-browser/v35.js");
5100
- /* harmony import */ var _md5_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./md5.js */ "./node_modules/uuid/dist/esm-browser/md5.js");
5101
5201
 
5102
5202
 
5103
- var v3 = (0,_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v3', 0x30, _md5_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
5104
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v3);
5203
+ Object.defineProperty(exports, "__esModule", ({
5204
+ value: true
5205
+ }));
5206
+ exports["default"] = void 0;
5207
+
5208
+ var _v = _interopRequireDefault(__webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/commonjs-browser/v35.js"));
5209
+
5210
+ var _md = _interopRequireDefault(__webpack_require__(/*! ./md5.js */ "./node_modules/uuid/dist/commonjs-browser/md5.js"));
5211
+
5212
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5213
+
5214
+ const v3 = (0, _v.default)('v3', 0x30, _md.default);
5215
+ var _default = v3;
5216
+ exports["default"] = _default;
5105
5217
 
5106
5218
  /***/ }),
5107
5219
 
5108
- /***/ "./node_modules/uuid/dist/esm-browser/v35.js":
5109
- /*!***************************************************!*\
5110
- !*** ./node_modules/uuid/dist/esm-browser/v35.js ***!
5111
- \***************************************************/
5112
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5220
+ /***/ "./node_modules/uuid/dist/commonjs-browser/v35.js":
5221
+ /*!********************************************************!*\
5222
+ !*** ./node_modules/uuid/dist/commonjs-browser/v35.js ***!
5223
+ \********************************************************/
5224
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5113
5225
 
5114
5226
  "use strict";
5115
- __webpack_require__.r(__webpack_exports__);
5116
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5117
- /* harmony export */ "DNS": () => (/* binding */ DNS),
5118
- /* harmony export */ "URL": () => (/* binding */ URL),
5119
- /* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
5120
- /* harmony export */ });
5121
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
5122
- /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/esm-browser/parse.js");
5123
5227
 
5124
5228
 
5229
+ Object.defineProperty(exports, "__esModule", ({
5230
+ value: true
5231
+ }));
5232
+ exports.URL = exports.DNS = void 0;
5233
+ exports["default"] = v35;
5234
+
5235
+ var _stringify = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js");
5236
+
5237
+ var _parse = _interopRequireDefault(__webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/commonjs-browser/parse.js"));
5238
+
5239
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5125
5240
 
5126
5241
  function stringToBytes(str) {
5127
5242
  str = unescape(encodeURIComponent(str)); // UTF8 escape
5128
5243
 
5129
- var bytes = [];
5244
+ const bytes = [];
5130
5245
 
5131
- for (var i = 0; i < str.length; ++i) {
5246
+ for (let i = 0; i < str.length; ++i) {
5132
5247
  bytes.push(str.charCodeAt(i));
5133
5248
  }
5134
5249
 
5135
5250
  return bytes;
5136
5251
  }
5137
5252
 
5138
- var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
5139
- var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
5140
- /* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(name, version, hashfunc) {
5253
+ const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
5254
+ exports.DNS = DNS;
5255
+ const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
5256
+ exports.URL = URL;
5257
+
5258
+ function v35(name, version, hashfunc) {
5141
5259
  function generateUUID(value, namespace, buf, offset) {
5260
+ var _namespace;
5261
+
5142
5262
  if (typeof value === 'string') {
5143
5263
  value = stringToBytes(value);
5144
5264
  }
5145
5265
 
5146
5266
  if (typeof namespace === 'string') {
5147
- namespace = (0,_parse_js__WEBPACK_IMPORTED_MODULE_0__["default"])(namespace);
5267
+ namespace = (0, _parse.default)(namespace);
5148
5268
  }
5149
5269
 
5150
- if (namespace.length !== 16) {
5270
+ if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
5151
5271
  throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
5152
5272
  } // Compute hash of namespace and value, Per 4.3
5153
5273
  // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
5154
5274
  // hashfunc([...namespace, ... value])`
5155
5275
 
5156
5276
 
5157
- var bytes = new Uint8Array(16 + value.length);
5277
+ let bytes = new Uint8Array(16 + value.length);
5158
5278
  bytes.set(namespace);
5159
5279
  bytes.set(value, namespace.length);
5160
5280
  bytes = hashfunc(bytes);
@@ -5164,14 +5284,14 @@ var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
5164
5284
  if (buf) {
5165
5285
  offset = offset || 0;
5166
5286
 
5167
- for (var i = 0; i < 16; ++i) {
5287
+ for (let i = 0; i < 16; ++i) {
5168
5288
  buf[offset + i] = bytes[i];
5169
5289
  }
5170
5290
 
5171
5291
  return buf;
5172
5292
  }
5173
5293
 
5174
- return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(bytes);
5294
+ return (0, _stringify.unsafeStringify)(bytes);
5175
5295
  } // Function#name is not settable on some platforms (#270)
5176
5296
 
5177
5297
 
@@ -5187,25 +5307,37 @@ var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
5187
5307
 
5188
5308
  /***/ }),
5189
5309
 
5190
- /***/ "./node_modules/uuid/dist/esm-browser/v4.js":
5191
- /*!**************************************************!*\
5192
- !*** ./node_modules/uuid/dist/esm-browser/v4.js ***!
5193
- \**************************************************/
5194
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5310
+ /***/ "./node_modules/uuid/dist/commonjs-browser/v4.js":
5311
+ /*!*******************************************************!*\
5312
+ !*** ./node_modules/uuid/dist/commonjs-browser/v4.js ***!
5313
+ \*******************************************************/
5314
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5195
5315
 
5196
5316
  "use strict";
5197
- __webpack_require__.r(__webpack_exports__);
5198
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5199
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
5200
- /* harmony export */ });
5201
- /* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/esm-browser/rng.js");
5202
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
5203
5317
 
5204
5318
 
5319
+ Object.defineProperty(exports, "__esModule", ({
5320
+ value: true
5321
+ }));
5322
+ exports["default"] = void 0;
5323
+
5324
+ var _native = _interopRequireDefault(__webpack_require__(/*! ./native.js */ "./node_modules/uuid/dist/commonjs-browser/native.js"));
5325
+
5326
+ var _rng = _interopRequireDefault(__webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/commonjs-browser/rng.js"));
5327
+
5328
+ var _stringify = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/commonjs-browser/stringify.js");
5329
+
5330
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5205
5331
 
5206
5332
  function v4(options, buf, offset) {
5333
+ if (_native.default.randomUUID && !buf && !options) {
5334
+ return _native.default.randomUUID();
5335
+ }
5336
+
5207
5337
  options = options || {};
5208
- var rnds = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
5338
+
5339
+ const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
5340
+
5209
5341
 
5210
5342
  rnds[6] = rnds[6] & 0x0f | 0x40;
5211
5343
  rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
@@ -5213,85 +5345,102 @@ function v4(options, buf, offset) {
5213
5345
  if (buf) {
5214
5346
  offset = offset || 0;
5215
5347
 
5216
- for (var i = 0; i < 16; ++i) {
5348
+ for (let i = 0; i < 16; ++i) {
5217
5349
  buf[offset + i] = rnds[i];
5218
5350
  }
5219
5351
 
5220
5352
  return buf;
5221
5353
  }
5222
5354
 
5223
- return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(rnds);
5355
+ return (0, _stringify.unsafeStringify)(rnds);
5224
5356
  }
5225
5357
 
5226
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v4);
5358
+ var _default = v4;
5359
+ exports["default"] = _default;
5227
5360
 
5228
5361
  /***/ }),
5229
5362
 
5230
- /***/ "./node_modules/uuid/dist/esm-browser/v5.js":
5231
- /*!**************************************************!*\
5232
- !*** ./node_modules/uuid/dist/esm-browser/v5.js ***!
5233
- \**************************************************/
5234
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5363
+ /***/ "./node_modules/uuid/dist/commonjs-browser/v5.js":
5364
+ /*!*******************************************************!*\
5365
+ !*** ./node_modules/uuid/dist/commonjs-browser/v5.js ***!
5366
+ \*******************************************************/
5367
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5235
5368
 
5236
5369
  "use strict";
5237
- __webpack_require__.r(__webpack_exports__);
5238
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5239
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
5240
- /* harmony export */ });
5241
- /* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/esm-browser/v35.js");
5242
- /* harmony import */ var _sha1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sha1.js */ "./node_modules/uuid/dist/esm-browser/sha1.js");
5243
5370
 
5244
5371
 
5245
- var v5 = (0,_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v5', 0x50, _sha1_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
5246
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v5);
5372
+ Object.defineProperty(exports, "__esModule", ({
5373
+ value: true
5374
+ }));
5375
+ exports["default"] = void 0;
5376
+
5377
+ var _v = _interopRequireDefault(__webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/commonjs-browser/v35.js"));
5378
+
5379
+ var _sha = _interopRequireDefault(__webpack_require__(/*! ./sha1.js */ "./node_modules/uuid/dist/commonjs-browser/sha1.js"));
5380
+
5381
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5382
+
5383
+ const v5 = (0, _v.default)('v5', 0x50, _sha.default);
5384
+ var _default = v5;
5385
+ exports["default"] = _default;
5247
5386
 
5248
5387
  /***/ }),
5249
5388
 
5250
- /***/ "./node_modules/uuid/dist/esm-browser/validate.js":
5251
- /*!********************************************************!*\
5252
- !*** ./node_modules/uuid/dist/esm-browser/validate.js ***!
5253
- \********************************************************/
5254
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5389
+ /***/ "./node_modules/uuid/dist/commonjs-browser/validate.js":
5390
+ /*!*************************************************************!*\
5391
+ !*** ./node_modules/uuid/dist/commonjs-browser/validate.js ***!
5392
+ \*************************************************************/
5393
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5255
5394
 
5256
5395
  "use strict";
5257
- __webpack_require__.r(__webpack_exports__);
5258
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5259
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
5260
- /* harmony export */ });
5261
- /* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "./node_modules/uuid/dist/esm-browser/regex.js");
5262
5396
 
5263
5397
 
5398
+ Object.defineProperty(exports, "__esModule", ({
5399
+ value: true
5400
+ }));
5401
+ exports["default"] = void 0;
5402
+
5403
+ var _regex = _interopRequireDefault(__webpack_require__(/*! ./regex.js */ "./node_modules/uuid/dist/commonjs-browser/regex.js"));
5404
+
5405
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5406
+
5264
5407
  function validate(uuid) {
5265
- return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid);
5408
+ return typeof uuid === 'string' && _regex.default.test(uuid);
5266
5409
  }
5267
5410
 
5268
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validate);
5411
+ var _default = validate;
5412
+ exports["default"] = _default;
5269
5413
 
5270
5414
  /***/ }),
5271
5415
 
5272
- /***/ "./node_modules/uuid/dist/esm-browser/version.js":
5273
- /*!*******************************************************!*\
5274
- !*** ./node_modules/uuid/dist/esm-browser/version.js ***!
5275
- \*******************************************************/
5276
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5416
+ /***/ "./node_modules/uuid/dist/commonjs-browser/version.js":
5417
+ /*!************************************************************!*\
5418
+ !*** ./node_modules/uuid/dist/commonjs-browser/version.js ***!
5419
+ \************************************************************/
5420
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5277
5421
 
5278
5422
  "use strict";
5279
- __webpack_require__.r(__webpack_exports__);
5280
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5281
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
5282
- /* harmony export */ });
5283
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
5284
5423
 
5285
5424
 
5425
+ Object.defineProperty(exports, "__esModule", ({
5426
+ value: true
5427
+ }));
5428
+ exports["default"] = void 0;
5429
+
5430
+ var _validate = _interopRequireDefault(__webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/commonjs-browser/validate.js"));
5431
+
5432
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5433
+
5286
5434
  function version(uuid) {
5287
- if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
5435
+ if (!(0, _validate.default)(uuid)) {
5288
5436
  throw TypeError('Invalid UUID');
5289
5437
  }
5290
5438
 
5291
- return parseInt(uuid.substr(14, 1), 16);
5439
+ return parseInt(uuid.slice(14, 15), 16);
5292
5440
  }
5293
5441
 
5294
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (version);
5442
+ var _default = version;
5443
+ exports["default"] = _default;
5295
5444
 
5296
5445
  /***/ }),
5297
5446
 
@@ -5354,35 +5503,6 @@ module.exports = TSServal;
5354
5503
  /******/ }
5355
5504
  /******/
5356
5505
  /************************************************************************/
5357
- /******/ /* webpack/runtime/define property getters */
5358
- /******/ (() => {
5359
- /******/ // define getter functions for harmony exports
5360
- /******/ __webpack_require__.d = (exports, definition) => {
5361
- /******/ for(var key in definition) {
5362
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
5363
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
5364
- /******/ }
5365
- /******/ }
5366
- /******/ };
5367
- /******/ })();
5368
- /******/
5369
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
5370
- /******/ (() => {
5371
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
5372
- /******/ })();
5373
- /******/
5374
- /******/ /* webpack/runtime/make namespace object */
5375
- /******/ (() => {
5376
- /******/ // define __esModule on exports
5377
- /******/ __webpack_require__.r = (exports) => {
5378
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
5379
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5380
- /******/ }
5381
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
5382
- /******/ };
5383
- /******/ })();
5384
- /******/
5385
- /************************************************************************/
5386
5506
  /******/
5387
5507
  /******/ // startup
5388
5508
  /******/ // Load entry module and return exports