@aws-amplify/datastore 3.5.1 → 3.5.2-unstable.5

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.
@@ -70458,7 +70458,7 @@ var getAmplifyUserAgent = function getAmplifyUserAgent() {
70458
70458
  __webpack_require__.r(__webpack_exports__);
70459
70459
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; });
70460
70460
  // generated by genversion
70461
- var version = '4.3.3';
70461
+ var version = '4.3.4';
70462
70462
 
70463
70463
  /***/ }),
70464
70464
 
@@ -81002,7 +81002,8 @@ __webpack_require__.r(__webpack_exports__);
81002
81002
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataStore", function() { return instance; });
81003
81003
  /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "../core/lib-esm/index.js");
81004
81004
  /* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! immer */ "./node_modules/immer/dist/immer.esm.js");
81005
- /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/esm-browser/index.js");
81005
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "./node_modules/uuid/index.js");
81006
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_2__);
81006
81007
  /* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zen-observable-ts */ "../../node_modules/zen-observable-ts/lib/bundle.esm.js");
81007
81008
  /* harmony import */ var _authModeStrategies__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../authModeStrategies */ "./lib-esm/authModeStrategies/index.js");
81008
81009
  /* harmony import */ var _predicates__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../predicates */ "./lib-esm/predicates/index.js");
@@ -93073,7 +93074,7 @@ function () {
93073
93074
  })();
93074
93075
 
93075
93076
  return function () {
93076
- Object.keys(subscriptions).map(function (modelName) {
93077
+ Object.keys(subscriptions).forEach(function (modelName) {
93077
93078
  subscriptions[modelName][_utils__WEBPACK_IMPORTED_MODULE_6__["TransformerMutationType"].CREATE].forEach(function (subscription) {
93078
93079
  return subscription.unsubscribe();
93079
93080
  });
@@ -95024,7 +95025,8 @@ __webpack_require__.r(__webpack_exports__);
95024
95025
  /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js");
95025
95026
  /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_0__);
95026
95027
  /* harmony import */ var ulid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ulid */ "../../node_modules/ulid/dist/index.esm.js");
95027
- /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/esm-browser/index.js");
95028
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "./node_modules/uuid/index.js");
95029
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_2__);
95028
95030
  /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./types */ "./lib-esm/types.js");
95029
95031
  /* harmony import */ var amazon_cognito_identity_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! amazon-cognito-identity-js */ "../amazon-cognito-identity-js/es/index.js");
95030
95032
  function _typeof(obj) {
@@ -95921,842 +95923,262 @@ function n(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=a
95921
95923
 
95922
95924
  /***/ }),
95923
95925
 
95924
- /***/ "./node_modules/uuid/dist/esm-browser/index.js":
95925
- /*!*****************************************************!*\
95926
- !*** ./node_modules/uuid/dist/esm-browser/index.js ***!
95927
- \*****************************************************/
95928
- /*! exports provided: v1, v3, v4, v5, NIL, version, validate, stringify, parse */
95929
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
95930
-
95931
- "use strict";
95932
- __webpack_require__.r(__webpack_exports__);
95933
- /* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v1.js */ "./node_modules/uuid/dist/esm-browser/v1.js");
95934
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v1", function() { return _v1_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
95935
-
95936
- /* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v3.js */ "./node_modules/uuid/dist/esm-browser/v3.js");
95937
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v3", function() { return _v3_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
95938
-
95939
- /* harmony import */ var _v4_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./v4.js */ "./node_modules/uuid/dist/esm-browser/v4.js");
95940
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v4", function() { return _v4_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
95941
-
95942
- /* harmony import */ var _v5_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./v5.js */ "./node_modules/uuid/dist/esm-browser/v5.js");
95943
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v5", function() { return _v5_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
95944
-
95945
- /* harmony import */ var _nil_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nil.js */ "./node_modules/uuid/dist/esm-browser/nil.js");
95946
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NIL", function() { return _nil_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
95947
-
95948
- /* harmony import */ var _version_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./version.js */ "./node_modules/uuid/dist/esm-browser/version.js");
95949
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _version_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
95950
-
95951
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
95952
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return _validate_js__WEBPACK_IMPORTED_MODULE_6__["default"]; });
95953
-
95954
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
95955
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stringify", function() { return _stringify_js__WEBPACK_IMPORTED_MODULE_7__["default"]; });
95956
-
95957
- /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/esm-browser/parse.js");
95958
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return _parse_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
95959
-
95960
-
95961
-
95962
-
95963
-
95964
-
95926
+ /***/ "./node_modules/uuid/index.js":
95927
+ /*!************************************!*\
95928
+ !*** ./node_modules/uuid/index.js ***!
95929
+ \************************************/
95930
+ /*! no static exports found */
95931
+ /***/ (function(module, exports, __webpack_require__) {
95965
95932
 
95933
+ var v1 = __webpack_require__(/*! ./v1 */ "./node_modules/uuid/v1.js");
95934
+ var v4 = __webpack_require__(/*! ./v4 */ "./node_modules/uuid/v4.js");
95966
95935
 
95936
+ var uuid = v4;
95937
+ uuid.v1 = v1;
95938
+ uuid.v4 = v4;
95967
95939
 
95940
+ module.exports = uuid;
95968
95941
 
95969
95942
 
95970
95943
  /***/ }),
95971
95944
 
95972
- /***/ "./node_modules/uuid/dist/esm-browser/md5.js":
95973
- /*!***************************************************!*\
95974
- !*** ./node_modules/uuid/dist/esm-browser/md5.js ***!
95975
- \***************************************************/
95976
- /*! exports provided: default */
95977
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
95978
-
95979
- "use strict";
95980
- __webpack_require__.r(__webpack_exports__);
95981
- /*
95982
- * Browser-compatible JavaScript MD5
95983
- *
95984
- * Modification of JavaScript MD5
95985
- * https://github.com/blueimp/JavaScript-MD5
95986
- *
95987
- * Copyright 2011, Sebastian Tschan
95988
- * https://blueimp.net
95989
- *
95990
- * Licensed under the MIT license:
95991
- * https://opensource.org/licenses/MIT
95992
- *
95993
- * Based on
95994
- * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
95995
- * Digest Algorithm, as defined in RFC 1321.
95996
- * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
95997
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
95998
- * Distributed under the BSD License
95999
- * See http://pajhome.org.uk/crypt/md5 for more info.
96000
- */
96001
- function md5(bytes) {
96002
- if (typeof bytes === 'string') {
96003
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
96004
-
96005
- bytes = new Uint8Array(msg.length);
96006
-
96007
- for (var i = 0; i < msg.length; ++i) {
96008
- bytes[i] = msg.charCodeAt(i);
96009
- }
96010
- }
96011
-
96012
- return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
96013
- }
96014
- /*
96015
- * Convert an array of little-endian words to an array of bytes
96016
- */
96017
-
96018
-
96019
- function md5ToHexEncodedArray(input) {
96020
- var output = [];
96021
- var length32 = input.length * 32;
96022
- var hexTab = '0123456789abcdef';
96023
-
96024
- for (var i = 0; i < length32; i += 8) {
96025
- var x = input[i >> 5] >>> i % 32 & 0xff;
96026
- var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
96027
- output.push(hex);
96028
- }
95945
+ /***/ "./node_modules/uuid/lib/bytesToUuid.js":
95946
+ /*!**********************************************!*\
95947
+ !*** ./node_modules/uuid/lib/bytesToUuid.js ***!
95948
+ \**********************************************/
95949
+ /*! no static exports found */
95950
+ /***/ (function(module, exports) {
96029
95951
 
96030
- return output;
96031
- }
96032
95952
  /**
96033
- * Calculate output length with padding and bit length
96034
- */
96035
-
96036
-
96037
- function getOutputLength(inputLength8) {
96038
- return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
96039
- }
96040
- /*
96041
- * Calculate the MD5 of an array of little-endian words, and a bit length.
96042
- */
96043
-
96044
-
96045
- function wordsToMd5(x, len) {
96046
- /* append padding */
96047
- x[len >> 5] |= 0x80 << len % 32;
96048
- x[getOutputLength(len) - 1] = len;
96049
- var a = 1732584193;
96050
- var b = -271733879;
96051
- var c = -1732584194;
96052
- var d = 271733878;
96053
-
96054
- for (var i = 0; i < x.length; i += 16) {
96055
- var olda = a;
96056
- var oldb = b;
96057
- var oldc = c;
96058
- var oldd = d;
96059
- a = md5ff(a, b, c, d, x[i], 7, -680876936);
96060
- d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
96061
- c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
96062
- b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
96063
- a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
96064
- d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
96065
- c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
96066
- b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
96067
- a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
96068
- d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
96069
- c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
96070
- b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
96071
- a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
96072
- d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
96073
- c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
96074
- b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
96075
- a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
96076
- d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
96077
- c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
96078
- b = md5gg(b, c, d, a, x[i], 20, -373897302);
96079
- a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
96080
- d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
96081
- c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
96082
- b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
96083
- a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
96084
- d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
96085
- c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
96086
- b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
96087
- a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
96088
- d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
96089
- c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
96090
- b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
96091
- a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
96092
- d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
96093
- c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
96094
- b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
96095
- a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
96096
- d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
96097
- c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
96098
- b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
96099
- a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
96100
- d = md5hh(d, a, b, c, x[i], 11, -358537222);
96101
- c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
96102
- b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
96103
- a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
96104
- d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
96105
- c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
96106
- b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
96107
- a = md5ii(a, b, c, d, x[i], 6, -198630844);
96108
- d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
96109
- c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
96110
- b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
96111
- a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
96112
- d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
96113
- c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
96114
- b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
96115
- a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
96116
- d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
96117
- c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
96118
- b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
96119
- a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
96120
- d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
96121
- c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
96122
- b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
96123
- a = safeAdd(a, olda);
96124
- b = safeAdd(b, oldb);
96125
- c = safeAdd(c, oldc);
96126
- d = safeAdd(d, oldd);
96127
- }
96128
-
96129
- return [a, b, c, d];
96130
- }
96131
- /*
96132
- * Convert an array bytes to an array of little-endian words
96133
- * Characters >255 have their high-byte silently ignored.
96134
- */
96135
-
96136
-
96137
- function bytesToWords(input) {
96138
- if (input.length === 0) {
96139
- return [];
96140
- }
96141
-
96142
- var length8 = input.length * 8;
96143
- var output = new Uint32Array(getOutputLength(length8));
96144
-
96145
- for (var i = 0; i < length8; i += 8) {
96146
- output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
96147
- }
96148
-
96149
- return output;
96150
- }
96151
- /*
96152
- * Add integers, wrapping at 2^32. This uses 16-bit operations internally
96153
- * to work around bugs in some JS interpreters.
96154
- */
96155
-
96156
-
96157
- function safeAdd(x, y) {
96158
- var lsw = (x & 0xffff) + (y & 0xffff);
96159
- var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
96160
- return msw << 16 | lsw & 0xffff;
96161
- }
96162
- /*
96163
- * Bitwise rotate a 32-bit number to the left.
96164
- */
96165
-
96166
-
96167
- function bitRotateLeft(num, cnt) {
96168
- return num << cnt | num >>> 32 - cnt;
96169
- }
96170
- /*
96171
- * These functions implement the four basic operations the algorithm uses.
95953
+ * Convert array of 16 byte values to UUID string format of the form:
95954
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
96172
95955
  */
96173
-
96174
-
96175
- function md5cmn(q, a, b, x, s, t) {
96176
- return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
96177
- }
96178
-
96179
- function md5ff(a, b, c, d, x, s, t) {
96180
- return md5cmn(b & c | ~b & d, a, b, x, s, t);
96181
- }
96182
-
96183
- function md5gg(a, b, c, d, x, s, t) {
96184
- return md5cmn(b & d | c & ~d, a, b, x, s, t);
96185
- }
96186
-
96187
- function md5hh(a, b, c, d, x, s, t) {
96188
- return md5cmn(b ^ c ^ d, a, b, x, s, t);
96189
- }
96190
-
96191
- function md5ii(a, b, c, d, x, s, t) {
96192
- return md5cmn(c ^ (b | ~d), a, b, x, s, t);
95956
+ var byteToHex = [];
95957
+ for (var i = 0; i < 256; ++i) {
95958
+ byteToHex[i] = (i + 0x100).toString(16).substr(1);
96193
95959
  }
96194
95960
 
96195
- /* harmony default export */ __webpack_exports__["default"] = (md5);
96196
-
96197
- /***/ }),
96198
-
96199
- /***/ "./node_modules/uuid/dist/esm-browser/nil.js":
96200
- /*!***************************************************!*\
96201
- !*** ./node_modules/uuid/dist/esm-browser/nil.js ***!
96202
- \***************************************************/
96203
- /*! exports provided: default */
96204
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96205
-
96206
- "use strict";
96207
- __webpack_require__.r(__webpack_exports__);
96208
- /* harmony default export */ __webpack_exports__["default"] = ('00000000-0000-0000-0000-000000000000');
96209
-
96210
- /***/ }),
96211
-
96212
- /***/ "./node_modules/uuid/dist/esm-browser/parse.js":
96213
- /*!*****************************************************!*\
96214
- !*** ./node_modules/uuid/dist/esm-browser/parse.js ***!
96215
- \*****************************************************/
96216
- /*! exports provided: default */
96217
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96218
-
96219
- "use strict";
96220
- __webpack_require__.r(__webpack_exports__);
96221
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
96222
-
96223
-
96224
- function parse(uuid) {
96225
- if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
96226
- throw TypeError('Invalid UUID');
96227
- }
96228
-
96229
- var v;
96230
- var arr = new Uint8Array(16); // Parse ########-....-....-....-............
96231
-
96232
- arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
96233
- arr[1] = v >>> 16 & 0xff;
96234
- arr[2] = v >>> 8 & 0xff;
96235
- arr[3] = v & 0xff; // Parse ........-####-....-....-............
96236
-
96237
- arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
96238
- arr[5] = v & 0xff; // Parse ........-....-####-....-............
96239
-
96240
- arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
96241
- arr[7] = v & 0xff; // Parse ........-....-....-####-............
96242
-
96243
- arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
96244
- arr[9] = v & 0xff; // Parse ........-....-....-....-############
96245
- // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
96246
-
96247
- arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
96248
- arr[11] = v / 0x100000000 & 0xff;
96249
- arr[12] = v >>> 24 & 0xff;
96250
- arr[13] = v >>> 16 & 0xff;
96251
- arr[14] = v >>> 8 & 0xff;
96252
- arr[15] = v & 0xff;
96253
- return arr;
95961
+ function bytesToUuid(buf, offset) {
95962
+ var i = offset || 0;
95963
+ var bth = byteToHex;
95964
+ // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
95965
+ return ([bth[buf[i++]], bth[buf[i++]],
95966
+ bth[buf[i++]], bth[buf[i++]], '-',
95967
+ bth[buf[i++]], bth[buf[i++]], '-',
95968
+ bth[buf[i++]], bth[buf[i++]], '-',
95969
+ bth[buf[i++]], bth[buf[i++]], '-',
95970
+ bth[buf[i++]], bth[buf[i++]],
95971
+ bth[buf[i++]], bth[buf[i++]],
95972
+ bth[buf[i++]], bth[buf[i++]]]).join('');
96254
95973
  }
96255
95974
 
96256
- /* harmony default export */ __webpack_exports__["default"] = (parse);
96257
-
96258
- /***/ }),
96259
-
96260
- /***/ "./node_modules/uuid/dist/esm-browser/regex.js":
96261
- /*!*****************************************************!*\
96262
- !*** ./node_modules/uuid/dist/esm-browser/regex.js ***!
96263
- \*****************************************************/
96264
- /*! exports provided: default */
96265
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96266
-
96267
- "use strict";
96268
- __webpack_require__.r(__webpack_exports__);
96269
- /* 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);
96270
-
96271
- /***/ }),
96272
-
96273
- /***/ "./node_modules/uuid/dist/esm-browser/rng.js":
96274
- /*!***************************************************!*\
96275
- !*** ./node_modules/uuid/dist/esm-browser/rng.js ***!
96276
- \***************************************************/
96277
- /*! exports provided: default */
96278
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96279
-
96280
- "use strict";
96281
- __webpack_require__.r(__webpack_exports__);
96282
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return rng; });
96283
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
96284
- // require the crypto API and do not support built-in fallback to lower quality random number
96285
- // generators (like Math.random()).
96286
- var getRandomValues;
96287
- var rnds8 = new Uint8Array(16);
96288
- function rng() {
96289
- // lazy load so that environments that need to polyfill have a chance to do so
96290
- if (!getRandomValues) {
96291
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
96292
- // find the complete implementation of crypto (msCrypto) on IE11.
96293
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
96294
-
96295
- if (!getRandomValues) {
96296
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
96297
- }
96298
- }
95975
+ module.exports = bytesToUuid;
96299
95976
 
96300
- return getRandomValues(rnds8);
96301
- }
96302
95977
 
96303
95978
  /***/ }),
96304
95979
 
96305
- /***/ "./node_modules/uuid/dist/esm-browser/sha1.js":
96306
- /*!****************************************************!*\
96307
- !*** ./node_modules/uuid/dist/esm-browser/sha1.js ***!
96308
- \****************************************************/
96309
- /*! exports provided: default */
96310
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96311
-
96312
- "use strict";
96313
- __webpack_require__.r(__webpack_exports__);
96314
- // Adapted from Chris Veness' SHA1 code at
96315
- // http://www.movable-type.co.uk/scripts/sha1.html
96316
- function f(s, x, y, z) {
96317
- switch (s) {
96318
- case 0:
96319
- return x & y ^ ~x & z;
96320
-
96321
- case 1:
96322
- return x ^ y ^ z;
96323
-
96324
- case 2:
96325
- return x & y ^ x & z ^ y & z;
96326
-
96327
- case 3:
96328
- return x ^ y ^ z;
96329
- }
96330
- }
96331
-
96332
- function ROTL(x, n) {
96333
- return x << n | x >>> 32 - n;
96334
- }
96335
-
96336
- function sha1(bytes) {
96337
- var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
96338
- var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
96339
-
96340
- if (typeof bytes === 'string') {
96341
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
96342
-
96343
- bytes = [];
96344
-
96345
- for (var i = 0; i < msg.length; ++i) {
96346
- bytes.push(msg.charCodeAt(i));
96347
- }
96348
- } else if (!Array.isArray(bytes)) {
96349
- // Convert Array-like to Array
96350
- bytes = Array.prototype.slice.call(bytes);
96351
- }
96352
-
96353
- bytes.push(0x80);
96354
- var l = bytes.length / 4 + 2;
96355
- var N = Math.ceil(l / 16);
96356
- var M = new Array(N);
96357
-
96358
- for (var _i = 0; _i < N; ++_i) {
96359
- var arr = new Uint32Array(16);
96360
-
96361
- for (var j = 0; j < 16; ++j) {
96362
- 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];
96363
- }
96364
-
96365
- M[_i] = arr;
96366
- }
96367
-
96368
- M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
96369
- M[N - 1][14] = Math.floor(M[N - 1][14]);
96370
- M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
95980
+ /***/ "./node_modules/uuid/lib/rng-browser.js":
95981
+ /*!**********************************************!*\
95982
+ !*** ./node_modules/uuid/lib/rng-browser.js ***!
95983
+ \**********************************************/
95984
+ /*! no static exports found */
95985
+ /***/ (function(module, exports) {
96371
95986
 
96372
- for (var _i2 = 0; _i2 < N; ++_i2) {
96373
- var W = new Uint32Array(80);
95987
+ // Unique ID creation requires a high quality random # generator. In the
95988
+ // browser this is a little complicated due to unknown quality of Math.random()
95989
+ // and inconsistent support for the `crypto` API. We do the best we can via
95990
+ // feature-detection
96374
95991
 
96375
- for (var t = 0; t < 16; ++t) {
96376
- W[t] = M[_i2][t];
96377
- }
95992
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto
95993
+ // implementation. Also, find the complete implementation of crypto on IE11.
95994
+ var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
95995
+ (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
96378
95996
 
96379
- for (var _t = 16; _t < 80; ++_t) {
96380
- W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
96381
- }
95997
+ if (getRandomValues) {
95998
+ // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
95999
+ var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
96382
96000
 
96383
- var a = H[0];
96384
- var b = H[1];
96385
- var c = H[2];
96386
- var d = H[3];
96387
- var e = H[4];
96001
+ module.exports = function whatwgRNG() {
96002
+ getRandomValues(rnds8);
96003
+ return rnds8;
96004
+ };
96005
+ } else {
96006
+ // Math.random()-based (RNG)
96007
+ //
96008
+ // If all else fails, use Math.random(). It's fast, but is of unspecified
96009
+ // quality.
96010
+ var rnds = new Array(16);
96388
96011
 
96389
- for (var _t2 = 0; _t2 < 80; ++_t2) {
96390
- var s = Math.floor(_t2 / 20);
96391
- var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
96392
- e = d;
96393
- d = c;
96394
- c = ROTL(b, 30) >>> 0;
96395
- b = a;
96396
- a = T;
96012
+ module.exports = function mathRNG() {
96013
+ for (var i = 0, r; i < 16; i++) {
96014
+ if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
96015
+ rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
96397
96016
  }
96398
96017
 
96399
- H[0] = H[0] + a >>> 0;
96400
- H[1] = H[1] + b >>> 0;
96401
- H[2] = H[2] + c >>> 0;
96402
- H[3] = H[3] + d >>> 0;
96403
- H[4] = H[4] + e >>> 0;
96404
- }
96405
-
96406
- 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];
96407
- }
96408
-
96409
- /* harmony default export */ __webpack_exports__["default"] = (sha1);
96410
-
96411
- /***/ }),
96412
-
96413
- /***/ "./node_modules/uuid/dist/esm-browser/stringify.js":
96414
- /*!*********************************************************!*\
96415
- !*** ./node_modules/uuid/dist/esm-browser/stringify.js ***!
96416
- \*********************************************************/
96417
- /*! exports provided: default */
96418
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96419
-
96420
- "use strict";
96421
- __webpack_require__.r(__webpack_exports__);
96422
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
96423
-
96424
- /**
96425
- * Convert array of 16 byte values to UUID string format of the form:
96426
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
96427
- */
96428
-
96429
- var byteToHex = [];
96430
-
96431
- for (var i = 0; i < 256; ++i) {
96432
- byteToHex.push((i + 0x100).toString(16).substr(1));
96433
- }
96434
-
96435
- function stringify(arr) {
96436
- var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
96437
- // Note: Be careful editing this code! It's been tuned for performance
96438
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
96439
- 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
96440
- // of the following:
96441
- // - One or more input array values don't map to a hex octet (leading to
96442
- // "undefined" in the uuid)
96443
- // - Invalid input values for the RFC `version` or `variant` fields
96444
-
96445
- if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
96446
- throw TypeError('Stringified UUID is invalid');
96447
- }
96448
-
96449
- return uuid;
96018
+ return rnds;
96019
+ };
96450
96020
  }
96451
96021
 
96452
- /* harmony default export */ __webpack_exports__["default"] = (stringify);
96453
96022
 
96454
96023
  /***/ }),
96455
96024
 
96456
- /***/ "./node_modules/uuid/dist/esm-browser/v1.js":
96457
- /*!**************************************************!*\
96458
- !*** ./node_modules/uuid/dist/esm-browser/v1.js ***!
96459
- \**************************************************/
96460
- /*! exports provided: default */
96461
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96025
+ /***/ "./node_modules/uuid/v1.js":
96026
+ /*!*********************************!*\
96027
+ !*** ./node_modules/uuid/v1.js ***!
96028
+ \*********************************/
96029
+ /*! no static exports found */
96030
+ /***/ (function(module, exports, __webpack_require__) {
96462
96031
 
96463
- "use strict";
96464
- __webpack_require__.r(__webpack_exports__);
96465
- /* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/esm-browser/rng.js");
96466
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
96032
+ var rng = __webpack_require__(/*! ./lib/rng */ "./node_modules/uuid/lib/rng-browser.js");
96033
+ var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "./node_modules/uuid/lib/bytesToUuid.js");
96467
96034
 
96468
- // **`v1()` - Generate time-based UUID**
96035
+ // **`v1()` - Generate time-based UUID**
96469
96036
  //
96470
96037
  // Inspired by https://github.com/LiosK/UUID.js
96471
96038
  // and http://docs.python.org/library/uuid.html
96472
96039
 
96473
96040
  var _nodeId;
96041
+ var _clockseq;
96474
96042
 
96475
- var _clockseq; // Previous uuid creation time
96476
-
96477
-
96043
+ // Previous uuid creation time
96478
96044
  var _lastMSecs = 0;
96479
- var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
96045
+ var _lastNSecs = 0;
96480
96046
 
96047
+ // See https://github.com/broofa/node-uuid for API details
96481
96048
  function v1(options, buf, offset) {
96482
96049
  var i = buf && offset || 0;
96483
- var b = buf || new Array(16);
96050
+ var b = buf || [];
96051
+
96484
96052
  options = options || {};
96485
96053
  var node = options.node || _nodeId;
96486
- var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
96054
+ var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
96055
+
96056
+ // node and clockseq need to be initialized to random values if they're not
96487
96057
  // specified. We do this lazily to minimize issues related to insufficient
96488
96058
  // system entropy. See #189
96489
-
96490
96059
  if (node == null || clockseq == null) {
96491
- var seedBytes = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
96492
-
96060
+ var seedBytes = rng();
96493
96061
  if (node == null) {
96494
96062
  // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
96495
- node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
96063
+ node = _nodeId = [
96064
+ seedBytes[0] | 0x01,
96065
+ seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
96066
+ ];
96496
96067
  }
96497
-
96498
96068
  if (clockseq == null) {
96499
96069
  // Per 4.2.2, randomize (14 bit) clockseq
96500
96070
  clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
96501
96071
  }
96502
- } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
96072
+ }
96073
+
96074
+ // UUID timestamps are 100 nano-second units since the Gregorian epoch,
96503
96075
  // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
96504
96076
  // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
96505
96077
  // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
96078
+ var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
96506
96079
 
96507
-
96508
- var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
96080
+ // Per 4.2.1.2, use count of uuid's generated during the current clock
96509
96081
  // cycle to simulate higher resolution clock
96082
+ var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
96510
96083
 
96511
- var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
96512
-
96513
- var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
96084
+ // Time since last uuid creation (in msecs)
96085
+ var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
96514
96086
 
96087
+ // Per 4.2.1.2, Bump clockseq on clock regression
96515
96088
  if (dt < 0 && options.clockseq === undefined) {
96516
96089
  clockseq = clockseq + 1 & 0x3fff;
96517
- } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
96518
- // time interval
96519
-
96090
+ }
96520
96091
 
96092
+ // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
96093
+ // time interval
96521
96094
  if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
96522
96095
  nsecs = 0;
96523
- } // Per 4.2.1.2 Throw error if too many uuids are requested
96524
-
96096
+ }
96525
96097
 
96098
+ // Per 4.2.1.2 Throw error if too many uuids are requested
96526
96099
  if (nsecs >= 10000) {
96527
- throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
96100
+ throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
96528
96101
  }
96529
96102
 
96530
96103
  _lastMSecs = msecs;
96531
96104
  _lastNSecs = nsecs;
96532
- _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
96105
+ _clockseq = clockseq;
96533
96106
 
96534
- msecs += 12219292800000; // `time_low`
96107
+ // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
96108
+ msecs += 12219292800000;
96535
96109
 
96110
+ // `time_low`
96536
96111
  var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
96537
96112
  b[i++] = tl >>> 24 & 0xff;
96538
96113
  b[i++] = tl >>> 16 & 0xff;
96539
96114
  b[i++] = tl >>> 8 & 0xff;
96540
- b[i++] = tl & 0xff; // `time_mid`
96115
+ b[i++] = tl & 0xff;
96541
96116
 
96542
- var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
96117
+ // `time_mid`
96118
+ var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
96543
96119
  b[i++] = tmh >>> 8 & 0xff;
96544
- b[i++] = tmh & 0xff; // `time_high_and_version`
96120
+ b[i++] = tmh & 0xff;
96545
96121
 
96122
+ // `time_high_and_version`
96546
96123
  b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
96124
+ b[i++] = tmh >>> 16 & 0xff;
96547
96125
 
96548
- b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
96549
-
96550
- b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
96126
+ // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
96127
+ b[i++] = clockseq >>> 8 | 0x80;
96551
96128
 
96552
- b[i++] = clockseq & 0xff; // `node`
96129
+ // `clock_seq_low`
96130
+ b[i++] = clockseq & 0xff;
96553
96131
 
96132
+ // `node`
96554
96133
  for (var n = 0; n < 6; ++n) {
96555
96134
  b[i + n] = node[n];
96556
96135
  }
96557
96136
 
96558
- return buf || Object(_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b);
96137
+ return buf ? buf : bytesToUuid(b);
96559
96138
  }
96560
96139
 
96561
- /* harmony default export */ __webpack_exports__["default"] = (v1);
96562
-
96563
- /***/ }),
96564
-
96565
- /***/ "./node_modules/uuid/dist/esm-browser/v3.js":
96566
- /*!**************************************************!*\
96567
- !*** ./node_modules/uuid/dist/esm-browser/v3.js ***!
96568
- \**************************************************/
96569
- /*! exports provided: default */
96570
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96571
-
96572
- "use strict";
96573
- __webpack_require__.r(__webpack_exports__);
96574
- /* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/esm-browser/v35.js");
96575
- /* harmony import */ var _md5_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./md5.js */ "./node_modules/uuid/dist/esm-browser/md5.js");
96576
-
96140
+ module.exports = v1;
96577
96141
 
96578
- var v3 = Object(_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v3', 0x30, _md5_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
96579
- /* harmony default export */ __webpack_exports__["default"] = (v3);
96580
96142
 
96581
96143
  /***/ }),
96582
96144
 
96583
- /***/ "./node_modules/uuid/dist/esm-browser/v35.js":
96584
- /*!***************************************************!*\
96585
- !*** ./node_modules/uuid/dist/esm-browser/v35.js ***!
96586
- \***************************************************/
96587
- /*! exports provided: DNS, URL, default */
96588
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96589
-
96590
- "use strict";
96591
- __webpack_require__.r(__webpack_exports__);
96592
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DNS", function() { return DNS; });
96593
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "URL", function() { return URL; });
96594
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
96595
- /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/esm-browser/parse.js");
96596
-
96597
-
96145
+ /***/ "./node_modules/uuid/v4.js":
96146
+ /*!*********************************!*\
96147
+ !*** ./node_modules/uuid/v4.js ***!
96148
+ \*********************************/
96149
+ /*! no static exports found */
96150
+ /***/ (function(module, exports, __webpack_require__) {
96598
96151
 
96599
- function stringToBytes(str) {
96600
- str = unescape(encodeURIComponent(str)); // UTF8 escape
96152
+ var rng = __webpack_require__(/*! ./lib/rng */ "./node_modules/uuid/lib/rng-browser.js");
96153
+ var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "./node_modules/uuid/lib/bytesToUuid.js");
96601
96154
 
96602
- var bytes = [];
96155
+ function v4(options, buf, offset) {
96156
+ var i = buf && offset || 0;
96603
96157
 
96604
- for (var i = 0; i < str.length; ++i) {
96605
- bytes.push(str.charCodeAt(i));
96158
+ if (typeof(options) == 'string') {
96159
+ buf = options === 'binary' ? new Array(16) : null;
96160
+ options = null;
96606
96161
  }
96607
-
96608
- return bytes;
96609
- }
96610
-
96611
- var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
96612
- var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
96613
- /* harmony default export */ __webpack_exports__["default"] = (function (name, version, hashfunc) {
96614
- function generateUUID(value, namespace, buf, offset) {
96615
- if (typeof value === 'string') {
96616
- value = stringToBytes(value);
96617
- }
96618
-
96619
- if (typeof namespace === 'string') {
96620
- namespace = Object(_parse_js__WEBPACK_IMPORTED_MODULE_1__["default"])(namespace);
96621
- }
96622
-
96623
- if (namespace.length !== 16) {
96624
- throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
96625
- } // Compute hash of namespace and value, Per 4.3
96626
- // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
96627
- // hashfunc([...namespace, ... value])`
96628
-
96629
-
96630
- var bytes = new Uint8Array(16 + value.length);
96631
- bytes.set(namespace);
96632
- bytes.set(value, namespace.length);
96633
- bytes = hashfunc(bytes);
96634
- bytes[6] = bytes[6] & 0x0f | version;
96635
- bytes[8] = bytes[8] & 0x3f | 0x80;
96636
-
96637
- if (buf) {
96638
- offset = offset || 0;
96639
-
96640
- for (var i = 0; i < 16; ++i) {
96641
- buf[offset + i] = bytes[i];
96642
- }
96643
-
96644
- return buf;
96645
- }
96646
-
96647
- return Object(_stringify_js__WEBPACK_IMPORTED_MODULE_0__["default"])(bytes);
96648
- } // Function#name is not settable on some platforms (#270)
96649
-
96650
-
96651
- try {
96652
- generateUUID.name = name; // eslint-disable-next-line no-empty
96653
- } catch (err) {} // For CommonJS default export support
96654
-
96655
-
96656
- generateUUID.DNS = DNS;
96657
- generateUUID.URL = URL;
96658
- return generateUUID;
96659
- });
96660
-
96661
- /***/ }),
96662
-
96663
- /***/ "./node_modules/uuid/dist/esm-browser/v4.js":
96664
- /*!**************************************************!*\
96665
- !*** ./node_modules/uuid/dist/esm-browser/v4.js ***!
96666
- \**************************************************/
96667
- /*! exports provided: default */
96668
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96669
-
96670
- "use strict";
96671
- __webpack_require__.r(__webpack_exports__);
96672
- /* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/esm-browser/rng.js");
96673
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
96674
-
96675
-
96676
-
96677
- function v4(options, buf, offset) {
96678
96162
  options = options || {};
96679
- 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`
96680
96163
 
96681
- rnds[6] = rnds[6] & 0x0f | 0x40;
96682
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
96164
+ var rnds = options.random || (options.rng || rng)();
96683
96165
 
96684
- if (buf) {
96685
- offset = offset || 0;
96166
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
96167
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
96168
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
96686
96169
 
96687
- for (var i = 0; i < 16; ++i) {
96688
- buf[offset + i] = rnds[i];
96170
+ // Copy bytes to buffer, if provided
96171
+ if (buf) {
96172
+ for (var ii = 0; ii < 16; ++ii) {
96173
+ buf[i + ii] = rnds[ii];
96689
96174
  }
96690
-
96691
- return buf;
96692
96175
  }
96693
96176
 
96694
- return Object(_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(rnds);
96695
- }
96696
-
96697
- /* harmony default export */ __webpack_exports__["default"] = (v4);
96698
-
96699
- /***/ }),
96700
-
96701
- /***/ "./node_modules/uuid/dist/esm-browser/v5.js":
96702
- /*!**************************************************!*\
96703
- !*** ./node_modules/uuid/dist/esm-browser/v5.js ***!
96704
- \**************************************************/
96705
- /*! exports provided: default */
96706
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96707
-
96708
- "use strict";
96709
- __webpack_require__.r(__webpack_exports__);
96710
- /* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/esm-browser/v35.js");
96711
- /* harmony import */ var _sha1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sha1.js */ "./node_modules/uuid/dist/esm-browser/sha1.js");
96712
-
96713
-
96714
- var v5 = Object(_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v5', 0x50, _sha1_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
96715
- /* harmony default export */ __webpack_exports__["default"] = (v5);
96716
-
96717
- /***/ }),
96718
-
96719
- /***/ "./node_modules/uuid/dist/esm-browser/validate.js":
96720
- /*!********************************************************!*\
96721
- !*** ./node_modules/uuid/dist/esm-browser/validate.js ***!
96722
- \********************************************************/
96723
- /*! exports provided: default */
96724
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96725
-
96726
- "use strict";
96727
- __webpack_require__.r(__webpack_exports__);
96728
- /* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "./node_modules/uuid/dist/esm-browser/regex.js");
96729
-
96730
-
96731
- function validate(uuid) {
96732
- return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid);
96177
+ return buf || bytesToUuid(rnds);
96733
96178
  }
96734
96179
 
96735
- /* harmony default export */ __webpack_exports__["default"] = (validate);
96736
-
96737
- /***/ }),
96738
-
96739
- /***/ "./node_modules/uuid/dist/esm-browser/version.js":
96740
- /*!*******************************************************!*\
96741
- !*** ./node_modules/uuid/dist/esm-browser/version.js ***!
96742
- \*******************************************************/
96743
- /*! exports provided: default */
96744
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
96745
-
96746
- "use strict";
96747
- __webpack_require__.r(__webpack_exports__);
96748
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
96749
-
96750
-
96751
- function version(uuid) {
96752
- if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
96753
- throw TypeError('Invalid UUID');
96754
- }
96755
-
96756
- return parseInt(uuid.substr(14, 1), 16);
96757
- }
96180
+ module.exports = v4;
96758
96181
 
96759
- /* harmony default export */ __webpack_exports__["default"] = (version);
96760
96182
 
96761
96183
  /***/ }),
96762
96184