@aws-amplify/api 4.0.23-unstable.2 → 4.0.23-unstable.4

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.
@@ -8367,6 +8367,267 @@ module.exports = {
8367
8367
  };
8368
8368
 
8369
8369
 
8370
+ /***/ }),
8371
+
8372
+ /***/ "../../node_modules/uuid/index.js":
8373
+ /*!***************************************************!*\
8374
+ !*** /root/amplify-js/node_modules/uuid/index.js ***!
8375
+ \***************************************************/
8376
+ /*! no static exports found */
8377
+ /***/ (function(module, exports, __webpack_require__) {
8378
+
8379
+ var v1 = __webpack_require__(/*! ./v1 */ "../../node_modules/uuid/v1.js");
8380
+ var v4 = __webpack_require__(/*! ./v4 */ "../../node_modules/uuid/v4.js");
8381
+
8382
+ var uuid = v4;
8383
+ uuid.v1 = v1;
8384
+ uuid.v4 = v4;
8385
+
8386
+ module.exports = uuid;
8387
+
8388
+
8389
+ /***/ }),
8390
+
8391
+ /***/ "../../node_modules/uuid/lib/bytesToUuid.js":
8392
+ /*!*************************************************************!*\
8393
+ !*** /root/amplify-js/node_modules/uuid/lib/bytesToUuid.js ***!
8394
+ \*************************************************************/
8395
+ /*! no static exports found */
8396
+ /***/ (function(module, exports) {
8397
+
8398
+ /**
8399
+ * Convert array of 16 byte values to UUID string format of the form:
8400
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
8401
+ */
8402
+ var byteToHex = [];
8403
+ for (var i = 0; i < 256; ++i) {
8404
+ byteToHex[i] = (i + 0x100).toString(16).substr(1);
8405
+ }
8406
+
8407
+ function bytesToUuid(buf, offset) {
8408
+ var i = offset || 0;
8409
+ var bth = byteToHex;
8410
+ // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
8411
+ return ([
8412
+ bth[buf[i++]], bth[buf[i++]],
8413
+ bth[buf[i++]], bth[buf[i++]], '-',
8414
+ bth[buf[i++]], bth[buf[i++]], '-',
8415
+ bth[buf[i++]], bth[buf[i++]], '-',
8416
+ bth[buf[i++]], bth[buf[i++]], '-',
8417
+ bth[buf[i++]], bth[buf[i++]],
8418
+ bth[buf[i++]], bth[buf[i++]],
8419
+ bth[buf[i++]], bth[buf[i++]]
8420
+ ]).join('');
8421
+ }
8422
+
8423
+ module.exports = bytesToUuid;
8424
+
8425
+
8426
+ /***/ }),
8427
+
8428
+ /***/ "../../node_modules/uuid/lib/rng-browser.js":
8429
+ /*!*************************************************************!*\
8430
+ !*** /root/amplify-js/node_modules/uuid/lib/rng-browser.js ***!
8431
+ \*************************************************************/
8432
+ /*! no static exports found */
8433
+ /***/ (function(module, exports) {
8434
+
8435
+ // Unique ID creation requires a high quality random # generator. In the
8436
+ // browser this is a little complicated due to unknown quality of Math.random()
8437
+ // and inconsistent support for the `crypto` API. We do the best we can via
8438
+ // feature-detection
8439
+
8440
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto
8441
+ // implementation. Also, find the complete implementation of crypto on IE11.
8442
+ var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
8443
+ (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
8444
+
8445
+ if (getRandomValues) {
8446
+ // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
8447
+ var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
8448
+
8449
+ module.exports = function whatwgRNG() {
8450
+ getRandomValues(rnds8);
8451
+ return rnds8;
8452
+ };
8453
+ } else {
8454
+ // Math.random()-based (RNG)
8455
+ //
8456
+ // If all else fails, use Math.random(). It's fast, but is of unspecified
8457
+ // quality.
8458
+ var rnds = new Array(16);
8459
+
8460
+ module.exports = function mathRNG() {
8461
+ for (var i = 0, r; i < 16; i++) {
8462
+ if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
8463
+ rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
8464
+ }
8465
+
8466
+ return rnds;
8467
+ };
8468
+ }
8469
+
8470
+
8471
+ /***/ }),
8472
+
8473
+ /***/ "../../node_modules/uuid/v1.js":
8474
+ /*!************************************************!*\
8475
+ !*** /root/amplify-js/node_modules/uuid/v1.js ***!
8476
+ \************************************************/
8477
+ /*! no static exports found */
8478
+ /***/ (function(module, exports, __webpack_require__) {
8479
+
8480
+ var rng = __webpack_require__(/*! ./lib/rng */ "../../node_modules/uuid/lib/rng-browser.js");
8481
+ var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "../../node_modules/uuid/lib/bytesToUuid.js");
8482
+
8483
+ // **`v1()` - Generate time-based UUID**
8484
+ //
8485
+ // Inspired by https://github.com/LiosK/UUID.js
8486
+ // and http://docs.python.org/library/uuid.html
8487
+
8488
+ var _nodeId;
8489
+ var _clockseq;
8490
+
8491
+ // Previous uuid creation time
8492
+ var _lastMSecs = 0;
8493
+ var _lastNSecs = 0;
8494
+
8495
+ // See https://github.com/uuidjs/uuid for API details
8496
+ function v1(options, buf, offset) {
8497
+ var i = buf && offset || 0;
8498
+ var b = buf || [];
8499
+
8500
+ options = options || {};
8501
+ var node = options.node || _nodeId;
8502
+ var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
8503
+
8504
+ // node and clockseq need to be initialized to random values if they're not
8505
+ // specified. We do this lazily to minimize issues related to insufficient
8506
+ // system entropy. See #189
8507
+ if (node == null || clockseq == null) {
8508
+ var seedBytes = rng();
8509
+ if (node == null) {
8510
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
8511
+ node = _nodeId = [
8512
+ seedBytes[0] | 0x01,
8513
+ seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
8514
+ ];
8515
+ }
8516
+ if (clockseq == null) {
8517
+ // Per 4.2.2, randomize (14 bit) clockseq
8518
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
8519
+ }
8520
+ }
8521
+
8522
+ // UUID timestamps are 100 nano-second units since the Gregorian epoch,
8523
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
8524
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
8525
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
8526
+ var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
8527
+
8528
+ // Per 4.2.1.2, use count of uuid's generated during the current clock
8529
+ // cycle to simulate higher resolution clock
8530
+ var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
8531
+
8532
+ // Time since last uuid creation (in msecs)
8533
+ var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
8534
+
8535
+ // Per 4.2.1.2, Bump clockseq on clock regression
8536
+ if (dt < 0 && options.clockseq === undefined) {
8537
+ clockseq = clockseq + 1 & 0x3fff;
8538
+ }
8539
+
8540
+ // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
8541
+ // time interval
8542
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
8543
+ nsecs = 0;
8544
+ }
8545
+
8546
+ // Per 4.2.1.2 Throw error if too many uuids are requested
8547
+ if (nsecs >= 10000) {
8548
+ throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
8549
+ }
8550
+
8551
+ _lastMSecs = msecs;
8552
+ _lastNSecs = nsecs;
8553
+ _clockseq = clockseq;
8554
+
8555
+ // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
8556
+ msecs += 12219292800000;
8557
+
8558
+ // `time_low`
8559
+ var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
8560
+ b[i++] = tl >>> 24 & 0xff;
8561
+ b[i++] = tl >>> 16 & 0xff;
8562
+ b[i++] = tl >>> 8 & 0xff;
8563
+ b[i++] = tl & 0xff;
8564
+
8565
+ // `time_mid`
8566
+ var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
8567
+ b[i++] = tmh >>> 8 & 0xff;
8568
+ b[i++] = tmh & 0xff;
8569
+
8570
+ // `time_high_and_version`
8571
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
8572
+ b[i++] = tmh >>> 16 & 0xff;
8573
+
8574
+ // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
8575
+ b[i++] = clockseq >>> 8 | 0x80;
8576
+
8577
+ // `clock_seq_low`
8578
+ b[i++] = clockseq & 0xff;
8579
+
8580
+ // `node`
8581
+ for (var n = 0; n < 6; ++n) {
8582
+ b[i + n] = node[n];
8583
+ }
8584
+
8585
+ return buf ? buf : bytesToUuid(b);
8586
+ }
8587
+
8588
+ module.exports = v1;
8589
+
8590
+
8591
+ /***/ }),
8592
+
8593
+ /***/ "../../node_modules/uuid/v4.js":
8594
+ /*!************************************************!*\
8595
+ !*** /root/amplify-js/node_modules/uuid/v4.js ***!
8596
+ \************************************************/
8597
+ /*! no static exports found */
8598
+ /***/ (function(module, exports, __webpack_require__) {
8599
+
8600
+ var rng = __webpack_require__(/*! ./lib/rng */ "../../node_modules/uuid/lib/rng-browser.js");
8601
+ var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "../../node_modules/uuid/lib/bytesToUuid.js");
8602
+
8603
+ function v4(options, buf, offset) {
8604
+ var i = buf && offset || 0;
8605
+
8606
+ if (typeof(options) == 'string') {
8607
+ buf = options === 'binary' ? new Array(16) : null;
8608
+ options = null;
8609
+ }
8610
+ options = options || {};
8611
+
8612
+ var rnds = options.random || (options.rng || rng)();
8613
+
8614
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
8615
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
8616
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
8617
+
8618
+ // Copy bytes to buffer, if provided
8619
+ if (buf) {
8620
+ for (var ii = 0; ii < 16; ++ii) {
8621
+ buf[i + ii] = rnds[ii];
8622
+ }
8623
+ }
8624
+
8625
+ return buf || bytesToUuid(rnds);
8626
+ }
8627
+
8628
+ module.exports = v4;
8629
+
8630
+
8370
8631
  /***/ }),
8371
8632
 
8372
8633
  /***/ "../../node_modules/webpack/buildin/global.js":
@@ -11772,7 +12033,8 @@ __webpack_require__.r(__webpack_exports__);
11772
12033
  /* harmony import */ var graphql__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphql__WEBPACK_IMPORTED_MODULE_1__);
11773
12034
  /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! url */ "../../node_modules/url/url.js");
11774
12035
  /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_2__);
11775
- /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "../pubsub/node_modules/uuid/dist/esm-browser/index.js");
12036
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "../../node_modules/uuid/index.js");
12037
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_3__);
11776
12038
  /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js");
11777
12039
  /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_4__);
11778
12040
  /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
@@ -13419,7 +13681,8 @@ __webpack_require__.r(__webpack_exports__);
13419
13681
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MqttOverWSProvider", function() { return MqttOverWSProvider; });
13420
13682
  /* harmony import */ var paho_mqtt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! paho-mqtt */ "../../node_modules/paho-mqtt/paho-mqtt.js");
13421
13683
  /* harmony import */ var paho_mqtt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(paho_mqtt__WEBPACK_IMPORTED_MODULE_0__);
13422
- /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uuid */ "../pubsub/node_modules/uuid/dist/esm-browser/index.js");
13684
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uuid */ "../../node_modules/uuid/index.js");
13685
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_1__);
13423
13686
  /* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zen-observable-ts */ "../../node_modules/zen-observable-ts/lib/bundle.esm.js");
13424
13687
  /* harmony import */ var _PubSubProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PubSubProvider */ "../pubsub/lib-esm/Providers/PubSubProvider.js");
13425
13688
  /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
@@ -14680,845 +14943,6 @@ var CONTROL_MSG;
14680
14943
 
14681
14944
  /***/ }),
14682
14945
 
14683
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/index.js":
14684
- /*!*************************************************************!*\
14685
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/index.js ***!
14686
- \*************************************************************/
14687
- /*! exports provided: v1, v3, v4, v5, NIL, version, validate, stringify, parse */
14688
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14689
-
14690
- "use strict";
14691
- __webpack_require__.r(__webpack_exports__);
14692
- /* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v1.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v1.js");
14693
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v1", function() { return _v1_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
14694
-
14695
- /* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v3.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v3.js");
14696
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v3", function() { return _v3_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
14697
-
14698
- /* harmony import */ var _v4_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./v4.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v4.js");
14699
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v4", function() { return _v4_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
14700
-
14701
- /* harmony import */ var _v5_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./v5.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v5.js");
14702
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v5", function() { return _v5_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
14703
-
14704
- /* harmony import */ var _nil_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nil.js */ "../pubsub/node_modules/uuid/dist/esm-browser/nil.js");
14705
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NIL", function() { return _nil_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
14706
-
14707
- /* harmony import */ var _version_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./version.js */ "../pubsub/node_modules/uuid/dist/esm-browser/version.js");
14708
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _version_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
14709
-
14710
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./validate.js */ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js");
14711
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return _validate_js__WEBPACK_IMPORTED_MODULE_6__["default"]; });
14712
-
14713
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./stringify.js */ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js");
14714
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stringify", function() { return _stringify_js__WEBPACK_IMPORTED_MODULE_7__["default"]; });
14715
-
14716
- /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./parse.js */ "../pubsub/node_modules/uuid/dist/esm-browser/parse.js");
14717
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return _parse_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
14718
-
14719
-
14720
-
14721
-
14722
-
14723
-
14724
-
14725
-
14726
-
14727
-
14728
-
14729
- /***/ }),
14730
-
14731
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/md5.js":
14732
- /*!***********************************************************!*\
14733
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/md5.js ***!
14734
- \***********************************************************/
14735
- /*! exports provided: default */
14736
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14737
-
14738
- "use strict";
14739
- __webpack_require__.r(__webpack_exports__);
14740
- /*
14741
- * Browser-compatible JavaScript MD5
14742
- *
14743
- * Modification of JavaScript MD5
14744
- * https://github.com/blueimp/JavaScript-MD5
14745
- *
14746
- * Copyright 2011, Sebastian Tschan
14747
- * https://blueimp.net
14748
- *
14749
- * Licensed under the MIT license:
14750
- * https://opensource.org/licenses/MIT
14751
- *
14752
- * Based on
14753
- * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
14754
- * Digest Algorithm, as defined in RFC 1321.
14755
- * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
14756
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
14757
- * Distributed under the BSD License
14758
- * See http://pajhome.org.uk/crypt/md5 for more info.
14759
- */
14760
- function md5(bytes) {
14761
- if (typeof bytes === 'string') {
14762
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
14763
-
14764
- bytes = new Uint8Array(msg.length);
14765
-
14766
- for (var i = 0; i < msg.length; ++i) {
14767
- bytes[i] = msg.charCodeAt(i);
14768
- }
14769
- }
14770
-
14771
- return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
14772
- }
14773
- /*
14774
- * Convert an array of little-endian words to an array of bytes
14775
- */
14776
-
14777
-
14778
- function md5ToHexEncodedArray(input) {
14779
- var output = [];
14780
- var length32 = input.length * 32;
14781
- var hexTab = '0123456789abcdef';
14782
-
14783
- for (var i = 0; i < length32; i += 8) {
14784
- var x = input[i >> 5] >>> i % 32 & 0xff;
14785
- var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
14786
- output.push(hex);
14787
- }
14788
-
14789
- return output;
14790
- }
14791
- /**
14792
- * Calculate output length with padding and bit length
14793
- */
14794
-
14795
-
14796
- function getOutputLength(inputLength8) {
14797
- return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
14798
- }
14799
- /*
14800
- * Calculate the MD5 of an array of little-endian words, and a bit length.
14801
- */
14802
-
14803
-
14804
- function wordsToMd5(x, len) {
14805
- /* append padding */
14806
- x[len >> 5] |= 0x80 << len % 32;
14807
- x[getOutputLength(len) - 1] = len;
14808
- var a = 1732584193;
14809
- var b = -271733879;
14810
- var c = -1732584194;
14811
- var d = 271733878;
14812
-
14813
- for (var i = 0; i < x.length; i += 16) {
14814
- var olda = a;
14815
- var oldb = b;
14816
- var oldc = c;
14817
- var oldd = d;
14818
- a = md5ff(a, b, c, d, x[i], 7, -680876936);
14819
- d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
14820
- c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
14821
- b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
14822
- a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
14823
- d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
14824
- c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
14825
- b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
14826
- a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
14827
- d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
14828
- c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
14829
- b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
14830
- a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
14831
- d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
14832
- c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
14833
- b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
14834
- a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
14835
- d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
14836
- c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
14837
- b = md5gg(b, c, d, a, x[i], 20, -373897302);
14838
- a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
14839
- d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
14840
- c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
14841
- b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
14842
- a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
14843
- d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
14844
- c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
14845
- b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
14846
- a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
14847
- d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
14848
- c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
14849
- b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
14850
- a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
14851
- d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
14852
- c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
14853
- b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
14854
- a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
14855
- d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
14856
- c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
14857
- b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
14858
- a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
14859
- d = md5hh(d, a, b, c, x[i], 11, -358537222);
14860
- c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
14861
- b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
14862
- a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
14863
- d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
14864
- c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
14865
- b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
14866
- a = md5ii(a, b, c, d, x[i], 6, -198630844);
14867
- d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
14868
- c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
14869
- b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
14870
- a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
14871
- d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
14872
- c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
14873
- b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
14874
- a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
14875
- d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
14876
- c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
14877
- b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
14878
- a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
14879
- d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
14880
- c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
14881
- b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
14882
- a = safeAdd(a, olda);
14883
- b = safeAdd(b, oldb);
14884
- c = safeAdd(c, oldc);
14885
- d = safeAdd(d, oldd);
14886
- }
14887
-
14888
- return [a, b, c, d];
14889
- }
14890
- /*
14891
- * Convert an array bytes to an array of little-endian words
14892
- * Characters >255 have their high-byte silently ignored.
14893
- */
14894
-
14895
-
14896
- function bytesToWords(input) {
14897
- if (input.length === 0) {
14898
- return [];
14899
- }
14900
-
14901
- var length8 = input.length * 8;
14902
- var output = new Uint32Array(getOutputLength(length8));
14903
-
14904
- for (var i = 0; i < length8; i += 8) {
14905
- output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
14906
- }
14907
-
14908
- return output;
14909
- }
14910
- /*
14911
- * Add integers, wrapping at 2^32. This uses 16-bit operations internally
14912
- * to work around bugs in some JS interpreters.
14913
- */
14914
-
14915
-
14916
- function safeAdd(x, y) {
14917
- var lsw = (x & 0xffff) + (y & 0xffff);
14918
- var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
14919
- return msw << 16 | lsw & 0xffff;
14920
- }
14921
- /*
14922
- * Bitwise rotate a 32-bit number to the left.
14923
- */
14924
-
14925
-
14926
- function bitRotateLeft(num, cnt) {
14927
- return num << cnt | num >>> 32 - cnt;
14928
- }
14929
- /*
14930
- * These functions implement the four basic operations the algorithm uses.
14931
- */
14932
-
14933
-
14934
- function md5cmn(q, a, b, x, s, t) {
14935
- return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
14936
- }
14937
-
14938
- function md5ff(a, b, c, d, x, s, t) {
14939
- return md5cmn(b & c | ~b & d, a, b, x, s, t);
14940
- }
14941
-
14942
- function md5gg(a, b, c, d, x, s, t) {
14943
- return md5cmn(b & d | c & ~d, a, b, x, s, t);
14944
- }
14945
-
14946
- function md5hh(a, b, c, d, x, s, t) {
14947
- return md5cmn(b ^ c ^ d, a, b, x, s, t);
14948
- }
14949
-
14950
- function md5ii(a, b, c, d, x, s, t) {
14951
- return md5cmn(c ^ (b | ~d), a, b, x, s, t);
14952
- }
14953
-
14954
- /* harmony default export */ __webpack_exports__["default"] = (md5);
14955
-
14956
- /***/ }),
14957
-
14958
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/nil.js":
14959
- /*!***********************************************************!*\
14960
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/nil.js ***!
14961
- \***********************************************************/
14962
- /*! exports provided: default */
14963
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14964
-
14965
- "use strict";
14966
- __webpack_require__.r(__webpack_exports__);
14967
- /* harmony default export */ __webpack_exports__["default"] = ('00000000-0000-0000-0000-000000000000');
14968
-
14969
- /***/ }),
14970
-
14971
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/parse.js":
14972
- /*!*************************************************************!*\
14973
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/parse.js ***!
14974
- \*************************************************************/
14975
- /*! exports provided: default */
14976
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14977
-
14978
- "use strict";
14979
- __webpack_require__.r(__webpack_exports__);
14980
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js");
14981
-
14982
-
14983
- function parse(uuid) {
14984
- if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
14985
- throw TypeError('Invalid UUID');
14986
- }
14987
-
14988
- var v;
14989
- var arr = new Uint8Array(16); // Parse ########-....-....-....-............
14990
-
14991
- arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
14992
- arr[1] = v >>> 16 & 0xff;
14993
- arr[2] = v >>> 8 & 0xff;
14994
- arr[3] = v & 0xff; // Parse ........-####-....-....-............
14995
-
14996
- arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
14997
- arr[5] = v & 0xff; // Parse ........-....-####-....-............
14998
-
14999
- arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
15000
- arr[7] = v & 0xff; // Parse ........-....-....-####-............
15001
-
15002
- arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
15003
- arr[9] = v & 0xff; // Parse ........-....-....-....-############
15004
- // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
15005
-
15006
- arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
15007
- arr[11] = v / 0x100000000 & 0xff;
15008
- arr[12] = v >>> 24 & 0xff;
15009
- arr[13] = v >>> 16 & 0xff;
15010
- arr[14] = v >>> 8 & 0xff;
15011
- arr[15] = v & 0xff;
15012
- return arr;
15013
- }
15014
-
15015
- /* harmony default export */ __webpack_exports__["default"] = (parse);
15016
-
15017
- /***/ }),
15018
-
15019
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/regex.js":
15020
- /*!*************************************************************!*\
15021
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/regex.js ***!
15022
- \*************************************************************/
15023
- /*! exports provided: default */
15024
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15025
-
15026
- "use strict";
15027
- __webpack_require__.r(__webpack_exports__);
15028
- /* harmony default export */ __webpack_exports__["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);
15029
-
15030
- /***/ }),
15031
-
15032
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/rng.js":
15033
- /*!***********************************************************!*\
15034
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/rng.js ***!
15035
- \***********************************************************/
15036
- /*! exports provided: default */
15037
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15038
-
15039
- "use strict";
15040
- __webpack_require__.r(__webpack_exports__);
15041
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return rng; });
15042
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
15043
- // require the crypto API and do not support built-in fallback to lower quality random number
15044
- // generators (like Math.random()).
15045
- var getRandomValues;
15046
- var rnds8 = new Uint8Array(16);
15047
- function rng() {
15048
- // lazy load so that environments that need to polyfill have a chance to do so
15049
- if (!getRandomValues) {
15050
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
15051
- // find the complete implementation of crypto (msCrypto) on IE11.
15052
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
15053
-
15054
- if (!getRandomValues) {
15055
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
15056
- }
15057
- }
15058
-
15059
- return getRandomValues(rnds8);
15060
- }
15061
-
15062
- /***/ }),
15063
-
15064
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/sha1.js":
15065
- /*!************************************************************!*\
15066
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/sha1.js ***!
15067
- \************************************************************/
15068
- /*! exports provided: default */
15069
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15070
-
15071
- "use strict";
15072
- __webpack_require__.r(__webpack_exports__);
15073
- // Adapted from Chris Veness' SHA1 code at
15074
- // http://www.movable-type.co.uk/scripts/sha1.html
15075
- function f(s, x, y, z) {
15076
- switch (s) {
15077
- case 0:
15078
- return x & y ^ ~x & z;
15079
-
15080
- case 1:
15081
- return x ^ y ^ z;
15082
-
15083
- case 2:
15084
- return x & y ^ x & z ^ y & z;
15085
-
15086
- case 3:
15087
- return x ^ y ^ z;
15088
- }
15089
- }
15090
-
15091
- function ROTL(x, n) {
15092
- return x << n | x >>> 32 - n;
15093
- }
15094
-
15095
- function sha1(bytes) {
15096
- var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
15097
- var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
15098
-
15099
- if (typeof bytes === 'string') {
15100
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
15101
-
15102
- bytes = [];
15103
-
15104
- for (var i = 0; i < msg.length; ++i) {
15105
- bytes.push(msg.charCodeAt(i));
15106
- }
15107
- } else if (!Array.isArray(bytes)) {
15108
- // Convert Array-like to Array
15109
- bytes = Array.prototype.slice.call(bytes);
15110
- }
15111
-
15112
- bytes.push(0x80);
15113
- var l = bytes.length / 4 + 2;
15114
- var N = Math.ceil(l / 16);
15115
- var M = new Array(N);
15116
-
15117
- for (var _i = 0; _i < N; ++_i) {
15118
- var arr = new Uint32Array(16);
15119
-
15120
- for (var j = 0; j < 16; ++j) {
15121
- 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];
15122
- }
15123
-
15124
- M[_i] = arr;
15125
- }
15126
-
15127
- M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
15128
- M[N - 1][14] = Math.floor(M[N - 1][14]);
15129
- M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
15130
-
15131
- for (var _i2 = 0; _i2 < N; ++_i2) {
15132
- var W = new Uint32Array(80);
15133
-
15134
- for (var t = 0; t < 16; ++t) {
15135
- W[t] = M[_i2][t];
15136
- }
15137
-
15138
- for (var _t = 16; _t < 80; ++_t) {
15139
- W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
15140
- }
15141
-
15142
- var a = H[0];
15143
- var b = H[1];
15144
- var c = H[2];
15145
- var d = H[3];
15146
- var e = H[4];
15147
-
15148
- for (var _t2 = 0; _t2 < 80; ++_t2) {
15149
- var s = Math.floor(_t2 / 20);
15150
- var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
15151
- e = d;
15152
- d = c;
15153
- c = ROTL(b, 30) >>> 0;
15154
- b = a;
15155
- a = T;
15156
- }
15157
-
15158
- H[0] = H[0] + a >>> 0;
15159
- H[1] = H[1] + b >>> 0;
15160
- H[2] = H[2] + c >>> 0;
15161
- H[3] = H[3] + d >>> 0;
15162
- H[4] = H[4] + e >>> 0;
15163
- }
15164
-
15165
- 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];
15166
- }
15167
-
15168
- /* harmony default export */ __webpack_exports__["default"] = (sha1);
15169
-
15170
- /***/ }),
15171
-
15172
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js":
15173
- /*!*****************************************************************!*\
15174
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/stringify.js ***!
15175
- \*****************************************************************/
15176
- /*! exports provided: default */
15177
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15178
-
15179
- "use strict";
15180
- __webpack_require__.r(__webpack_exports__);
15181
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js");
15182
-
15183
- /**
15184
- * Convert array of 16 byte values to UUID string format of the form:
15185
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
15186
- */
15187
-
15188
- var byteToHex = [];
15189
-
15190
- for (var i = 0; i < 256; ++i) {
15191
- byteToHex.push((i + 0x100).toString(16).substr(1));
15192
- }
15193
-
15194
- function stringify(arr) {
15195
- var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
15196
- // Note: Be careful editing this code! It's been tuned for performance
15197
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
15198
- 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
15199
- // of the following:
15200
- // - One or more input array values don't map to a hex octet (leading to
15201
- // "undefined" in the uuid)
15202
- // - Invalid input values for the RFC `version` or `variant` fields
15203
-
15204
- if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
15205
- throw TypeError('Stringified UUID is invalid');
15206
- }
15207
-
15208
- return uuid;
15209
- }
15210
-
15211
- /* harmony default export */ __webpack_exports__["default"] = (stringify);
15212
-
15213
- /***/ }),
15214
-
15215
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/v1.js":
15216
- /*!**********************************************************!*\
15217
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/v1.js ***!
15218
- \**********************************************************/
15219
- /*! exports provided: default */
15220
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15221
-
15222
- "use strict";
15223
- __webpack_require__.r(__webpack_exports__);
15224
- /* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "../pubsub/node_modules/uuid/dist/esm-browser/rng.js");
15225
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js");
15226
-
15227
- // **`v1()` - Generate time-based UUID**
15228
- //
15229
- // Inspired by https://github.com/LiosK/UUID.js
15230
- // and http://docs.python.org/library/uuid.html
15231
-
15232
- var _nodeId;
15233
-
15234
- var _clockseq; // Previous uuid creation time
15235
-
15236
-
15237
- var _lastMSecs = 0;
15238
- var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
15239
-
15240
- function v1(options, buf, offset) {
15241
- var i = buf && offset || 0;
15242
- var b = buf || new Array(16);
15243
- options = options || {};
15244
- var node = options.node || _nodeId;
15245
- var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
15246
- // specified. We do this lazily to minimize issues related to insufficient
15247
- // system entropy. See #189
15248
-
15249
- if (node == null || clockseq == null) {
15250
- var seedBytes = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
15251
-
15252
- if (node == null) {
15253
- // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
15254
- node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
15255
- }
15256
-
15257
- if (clockseq == null) {
15258
- // Per 4.2.2, randomize (14 bit) clockseq
15259
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
15260
- }
15261
- } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
15262
- // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
15263
- // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
15264
- // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
15265
-
15266
-
15267
- var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
15268
- // cycle to simulate higher resolution clock
15269
-
15270
- var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
15271
-
15272
- var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
15273
-
15274
- if (dt < 0 && options.clockseq === undefined) {
15275
- clockseq = clockseq + 1 & 0x3fff;
15276
- } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
15277
- // time interval
15278
-
15279
-
15280
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
15281
- nsecs = 0;
15282
- } // Per 4.2.1.2 Throw error if too many uuids are requested
15283
-
15284
-
15285
- if (nsecs >= 10000) {
15286
- throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
15287
- }
15288
-
15289
- _lastMSecs = msecs;
15290
- _lastNSecs = nsecs;
15291
- _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
15292
-
15293
- msecs += 12219292800000; // `time_low`
15294
-
15295
- var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
15296
- b[i++] = tl >>> 24 & 0xff;
15297
- b[i++] = tl >>> 16 & 0xff;
15298
- b[i++] = tl >>> 8 & 0xff;
15299
- b[i++] = tl & 0xff; // `time_mid`
15300
-
15301
- var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
15302
- b[i++] = tmh >>> 8 & 0xff;
15303
- b[i++] = tmh & 0xff; // `time_high_and_version`
15304
-
15305
- b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
15306
-
15307
- b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
15308
-
15309
- b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
15310
-
15311
- b[i++] = clockseq & 0xff; // `node`
15312
-
15313
- for (var n = 0; n < 6; ++n) {
15314
- b[i + n] = node[n];
15315
- }
15316
-
15317
- return buf || Object(_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b);
15318
- }
15319
-
15320
- /* harmony default export */ __webpack_exports__["default"] = (v1);
15321
-
15322
- /***/ }),
15323
-
15324
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/v3.js":
15325
- /*!**********************************************************!*\
15326
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/v3.js ***!
15327
- \**********************************************************/
15328
- /*! exports provided: default */
15329
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15330
-
15331
- "use strict";
15332
- __webpack_require__.r(__webpack_exports__);
15333
- /* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v35.js");
15334
- /* harmony import */ var _md5_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./md5.js */ "../pubsub/node_modules/uuid/dist/esm-browser/md5.js");
15335
-
15336
-
15337
- var v3 = Object(_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v3', 0x30, _md5_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
15338
- /* harmony default export */ __webpack_exports__["default"] = (v3);
15339
-
15340
- /***/ }),
15341
-
15342
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/v35.js":
15343
- /*!***********************************************************!*\
15344
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/v35.js ***!
15345
- \***********************************************************/
15346
- /*! exports provided: DNS, URL, default */
15347
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15348
-
15349
- "use strict";
15350
- __webpack_require__.r(__webpack_exports__);
15351
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DNS", function() { return DNS; });
15352
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "URL", function() { return URL; });
15353
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stringify.js */ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js");
15354
- /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parse.js */ "../pubsub/node_modules/uuid/dist/esm-browser/parse.js");
15355
-
15356
-
15357
-
15358
- function stringToBytes(str) {
15359
- str = unescape(encodeURIComponent(str)); // UTF8 escape
15360
-
15361
- var bytes = [];
15362
-
15363
- for (var i = 0; i < str.length; ++i) {
15364
- bytes.push(str.charCodeAt(i));
15365
- }
15366
-
15367
- return bytes;
15368
- }
15369
-
15370
- var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
15371
- var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
15372
- /* harmony default export */ __webpack_exports__["default"] = (function (name, version, hashfunc) {
15373
- function generateUUID(value, namespace, buf, offset) {
15374
- if (typeof value === 'string') {
15375
- value = stringToBytes(value);
15376
- }
15377
-
15378
- if (typeof namespace === 'string') {
15379
- namespace = Object(_parse_js__WEBPACK_IMPORTED_MODULE_1__["default"])(namespace);
15380
- }
15381
-
15382
- if (namespace.length !== 16) {
15383
- throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
15384
- } // Compute hash of namespace and value, Per 4.3
15385
- // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
15386
- // hashfunc([...namespace, ... value])`
15387
-
15388
-
15389
- var bytes = new Uint8Array(16 + value.length);
15390
- bytes.set(namespace);
15391
- bytes.set(value, namespace.length);
15392
- bytes = hashfunc(bytes);
15393
- bytes[6] = bytes[6] & 0x0f | version;
15394
- bytes[8] = bytes[8] & 0x3f | 0x80;
15395
-
15396
- if (buf) {
15397
- offset = offset || 0;
15398
-
15399
- for (var i = 0; i < 16; ++i) {
15400
- buf[offset + i] = bytes[i];
15401
- }
15402
-
15403
- return buf;
15404
- }
15405
-
15406
- return Object(_stringify_js__WEBPACK_IMPORTED_MODULE_0__["default"])(bytes);
15407
- } // Function#name is not settable on some platforms (#270)
15408
-
15409
-
15410
- try {
15411
- generateUUID.name = name; // eslint-disable-next-line no-empty
15412
- } catch (err) {} // For CommonJS default export support
15413
-
15414
-
15415
- generateUUID.DNS = DNS;
15416
- generateUUID.URL = URL;
15417
- return generateUUID;
15418
- });
15419
-
15420
- /***/ }),
15421
-
15422
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/v4.js":
15423
- /*!**********************************************************!*\
15424
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/v4.js ***!
15425
- \**********************************************************/
15426
- /*! exports provided: default */
15427
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15428
-
15429
- "use strict";
15430
- __webpack_require__.r(__webpack_exports__);
15431
- /* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "../pubsub/node_modules/uuid/dist/esm-browser/rng.js");
15432
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js");
15433
-
15434
-
15435
-
15436
- function v4(options, buf, offset) {
15437
- options = options || {};
15438
- 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`
15439
-
15440
- rnds[6] = rnds[6] & 0x0f | 0x40;
15441
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
15442
-
15443
- if (buf) {
15444
- offset = offset || 0;
15445
-
15446
- for (var i = 0; i < 16; ++i) {
15447
- buf[offset + i] = rnds[i];
15448
- }
15449
-
15450
- return buf;
15451
- }
15452
-
15453
- return Object(_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(rnds);
15454
- }
15455
-
15456
- /* harmony default export */ __webpack_exports__["default"] = (v4);
15457
-
15458
- /***/ }),
15459
-
15460
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/v5.js":
15461
- /*!**********************************************************!*\
15462
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/v5.js ***!
15463
- \**********************************************************/
15464
- /*! exports provided: default */
15465
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15466
-
15467
- "use strict";
15468
- __webpack_require__.r(__webpack_exports__);
15469
- /* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v35.js");
15470
- /* harmony import */ var _sha1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sha1.js */ "../pubsub/node_modules/uuid/dist/esm-browser/sha1.js");
15471
-
15472
-
15473
- var v5 = Object(_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v5', 0x50, _sha1_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
15474
- /* harmony default export */ __webpack_exports__["default"] = (v5);
15475
-
15476
- /***/ }),
15477
-
15478
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js":
15479
- /*!****************************************************************!*\
15480
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/validate.js ***!
15481
- \****************************************************************/
15482
- /*! exports provided: default */
15483
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15484
-
15485
- "use strict";
15486
- __webpack_require__.r(__webpack_exports__);
15487
- /* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "../pubsub/node_modules/uuid/dist/esm-browser/regex.js");
15488
-
15489
-
15490
- function validate(uuid) {
15491
- return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid);
15492
- }
15493
-
15494
- /* harmony default export */ __webpack_exports__["default"] = (validate);
15495
-
15496
- /***/ }),
15497
-
15498
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/version.js":
15499
- /*!***************************************************************!*\
15500
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/version.js ***!
15501
- \***************************************************************/
15502
- /*! exports provided: default */
15503
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15504
-
15505
- "use strict";
15506
- __webpack_require__.r(__webpack_exports__);
15507
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js");
15508
-
15509
-
15510
- function version(uuid) {
15511
- if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
15512
- throw TypeError('Invalid UUID');
15513
- }
15514
-
15515
- return parseInt(uuid.substr(14, 1), 16);
15516
- }
15517
-
15518
- /* harmony default export */ __webpack_exports__["default"] = (version);
15519
-
15520
- /***/ }),
15521
-
15522
14946
  /***/ "./lib-esm/API.js":
15523
14947
  /*!************************!*\
15524
14948
  !*** ./lib-esm/API.js ***!