@eclipse-glsp-examples/workflow-server-bundled 2.6.0-next.2 → 2.6.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45902,719 +45902,115 @@ module.exports = __webpack_require__(/*! util */ "util").deprecate;
45902
45902
 
45903
45903
  /***/ }),
45904
45904
 
45905
- /***/ "../../node_modules/uuid/dist/esm-node/index.js":
45906
- /*!******************************************************!*\
45907
- !*** ../../node_modules/uuid/dist/esm-node/index.js ***!
45908
- \******************************************************/
45909
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
45910
-
45911
- "use strict";
45912
- __webpack_require__.r(__webpack_exports__);
45913
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
45914
- /* harmony export */ NIL: () => (/* reexport safe */ _nil_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
45915
- /* harmony export */ parse: () => (/* reexport safe */ _parse_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
45916
- /* harmony export */ stringify: () => (/* reexport safe */ _stringify_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
45917
- /* harmony export */ v1: () => (/* reexport safe */ _v1_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
45918
- /* harmony export */ v3: () => (/* reexport safe */ _v3_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
45919
- /* harmony export */ v4: () => (/* reexport safe */ _v4_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
45920
- /* harmony export */ v5: () => (/* reexport safe */ _v5_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
45921
- /* harmony export */ validate: () => (/* reexport safe */ _validate_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
45922
- /* harmony export */ version: () => (/* reexport safe */ _version_js__WEBPACK_IMPORTED_MODULE_5__["default"])
45923
- /* harmony export */ });
45924
- /* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v1.js */ "../../node_modules/uuid/dist/esm-node/v1.js");
45925
- /* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v3.js */ "../../node_modules/uuid/dist/esm-node/v3.js");
45926
- /* harmony import */ var _v4_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./v4.js */ "../../node_modules/uuid/dist/esm-node/v4.js");
45927
- /* harmony import */ var _v5_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./v5.js */ "../../node_modules/uuid/dist/esm-node/v5.js");
45928
- /* harmony import */ var _nil_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nil.js */ "../../node_modules/uuid/dist/esm-node/nil.js");
45929
- /* harmony import */ var _version_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./version.js */ "../../node_modules/uuid/dist/esm-node/version.js");
45930
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./validate.js */ "../../node_modules/uuid/dist/esm-node/validate.js");
45931
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/esm-node/stringify.js");
45932
- /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./parse.js */ "../../node_modules/uuid/dist/esm-node/parse.js");
45933
-
45934
-
45935
-
45936
-
45937
-
45938
-
45939
-
45940
-
45941
-
45942
-
45943
- /***/ }),
45944
-
45945
- /***/ "../../node_modules/uuid/dist/esm-node/md5.js":
45905
+ /***/ "../../node_modules/vscode-jsonrpc/browser.js":
45946
45906
  /*!****************************************************!*\
45947
- !*** ../../node_modules/uuid/dist/esm-node/md5.js ***!
45907
+ !*** ../../node_modules/vscode-jsonrpc/browser.js ***!
45948
45908
  \****************************************************/
45949
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
45950
-
45951
- "use strict";
45952
- __webpack_require__.r(__webpack_exports__);
45953
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
45954
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
45955
- /* harmony export */ });
45956
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! crypto */ "crypto");
45957
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_0__);
45958
-
45959
-
45960
- function md5(bytes) {
45961
- if (Array.isArray(bytes)) {
45962
- bytes = Buffer.from(bytes);
45963
- } else if (typeof bytes === 'string') {
45964
- bytes = Buffer.from(bytes, 'utf8');
45965
- }
45966
-
45967
- return crypto__WEBPACK_IMPORTED_MODULE_0___default().createHash('md5').update(bytes).digest();
45968
- }
45969
-
45970
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (md5);
45971
-
45972
- /***/ }),
45973
-
45974
- /***/ "../../node_modules/uuid/dist/esm-node/native.js":
45975
- /*!*******************************************************!*\
45976
- !*** ../../node_modules/uuid/dist/esm-node/native.js ***!
45977
- \*******************************************************/
45978
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
45909
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
45979
45910
 
45980
45911
  "use strict";
45981
- __webpack_require__.r(__webpack_exports__);
45982
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
45983
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
45984
- /* harmony export */ });
45985
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! crypto */ "crypto");
45986
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_0__);
45987
-
45988
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
45989
- randomUUID: (crypto__WEBPACK_IMPORTED_MODULE_0___default().randomUUID)
45990
- });
45991
-
45992
- /***/ }),
45912
+ /* --------------------------------------------------------------------------------------------
45913
+ * Copyright (c) Microsoft Corporation. All rights reserved.
45914
+ * Licensed under the MIT License. See License.txt in the project root for license information.
45915
+ * ----------------------------------------------------------------------------------------- */
45993
45916
 
45994
- /***/ "../../node_modules/uuid/dist/esm-node/nil.js":
45995
- /*!****************************************************!*\
45996
- !*** ../../node_modules/uuid/dist/esm-node/nil.js ***!
45997
- \****************************************************/
45998
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
45999
45917
 
46000
- "use strict";
46001
- __webpack_require__.r(__webpack_exports__);
46002
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46003
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
46004
- /* harmony export */ });
46005
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ('00000000-0000-0000-0000-000000000000');
45918
+ module.exports = __webpack_require__(/*! ./lib/browser/main */ "../../node_modules/vscode-jsonrpc/lib/browser/main.js");
46006
45919
 
46007
45920
  /***/ }),
46008
45921
 
46009
- /***/ "../../node_modules/uuid/dist/esm-node/parse.js":
46010
- /*!******************************************************!*\
46011
- !*** ../../node_modules/uuid/dist/esm-node/parse.js ***!
46012
- \******************************************************/
46013
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
45922
+ /***/ "../../node_modules/vscode-jsonrpc/lib/browser/main.js":
45923
+ /*!*************************************************************!*\
45924
+ !*** ../../node_modules/vscode-jsonrpc/lib/browser/main.js ***!
45925
+ \*************************************************************/
45926
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
46014
45927
 
46015
45928
  "use strict";
46016
- __webpack_require__.r(__webpack_exports__);
46017
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46018
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
46019
- /* harmony export */ });
46020
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../../node_modules/uuid/dist/esm-node/validate.js");
46021
-
46022
-
46023
- function parse(uuid) {
46024
- if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
46025
- throw TypeError('Invalid UUID');
46026
- }
46027
-
46028
- let v;
46029
- const arr = new Uint8Array(16); // Parse ########-....-....-....-............
46030
-
46031
- arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
46032
- arr[1] = v >>> 16 & 0xff;
46033
- arr[2] = v >>> 8 & 0xff;
46034
- arr[3] = v & 0xff; // Parse ........-####-....-....-............
46035
-
46036
- arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
46037
- arr[5] = v & 0xff; // Parse ........-....-####-....-............
46038
-
46039
- arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
46040
- arr[7] = v & 0xff; // Parse ........-....-....-####-............
46041
-
46042
- arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
46043
- arr[9] = v & 0xff; // Parse ........-....-....-....-############
46044
- // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
46045
45929
 
46046
- arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
46047
- arr[11] = v / 0x100000000 & 0xff;
46048
- arr[12] = v >>> 24 & 0xff;
46049
- arr[13] = v >>> 16 & 0xff;
46050
- arr[14] = v >>> 8 & 0xff;
46051
- arr[15] = v & 0xff;
46052
- return arr;
45930
+ /* --------------------------------------------------------------------------------------------
45931
+ * Copyright (c) Microsoft Corporation. All rights reserved.
45932
+ * Licensed under the MIT License. See License.txt in the project root for license information.
45933
+ * ------------------------------------------------------------------------------------------ */
45934
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
45935
+ if (k2 === undefined) k2 = k;
45936
+ var desc = Object.getOwnPropertyDescriptor(m, k);
45937
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
45938
+ desc = { enumerable: true, get: function() { return m[k]; } };
45939
+ }
45940
+ Object.defineProperty(o, k2, desc);
45941
+ }) : (function(o, m, k, k2) {
45942
+ if (k2 === undefined) k2 = k;
45943
+ o[k2] = m[k];
45944
+ }));
45945
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
45946
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
45947
+ };
45948
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
45949
+ exports.createMessageConnection = exports.BrowserMessageWriter = exports.BrowserMessageReader = void 0;
45950
+ const ril_1 = __webpack_require__(/*! ./ril */ "../../node_modules/vscode-jsonrpc/lib/browser/ril.js");
45951
+ // Install the browser runtime abstract.
45952
+ ril_1.default.install();
45953
+ const api_1 = __webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js");
45954
+ __exportStar(__webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js"), exports);
45955
+ class BrowserMessageReader extends api_1.AbstractMessageReader {
45956
+ constructor(port) {
45957
+ super();
45958
+ this._onData = new api_1.Emitter();
45959
+ this._messageListener = (event) => {
45960
+ this._onData.fire(event.data);
45961
+ };
45962
+ port.addEventListener('error', (event) => this.fireError(event));
45963
+ port.onmessage = this._messageListener;
45964
+ }
45965
+ listen(callback) {
45966
+ return this._onData.event(callback);
45967
+ }
46053
45968
  }
46054
-
46055
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parse);
46056
-
46057
- /***/ }),
46058
-
46059
- /***/ "../../node_modules/uuid/dist/esm-node/regex.js":
46060
- /*!******************************************************!*\
46061
- !*** ../../node_modules/uuid/dist/esm-node/regex.js ***!
46062
- \******************************************************/
46063
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46064
-
46065
- "use strict";
46066
- __webpack_require__.r(__webpack_exports__);
46067
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46068
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
46069
- /* harmony export */ });
46070
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
46071
-
46072
- /***/ }),
46073
-
46074
- /***/ "../../node_modules/uuid/dist/esm-node/rng.js":
46075
- /*!****************************************************!*\
46076
- !*** ../../node_modules/uuid/dist/esm-node/rng.js ***!
46077
- \****************************************************/
46078
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46079
-
46080
- "use strict";
46081
- __webpack_require__.r(__webpack_exports__);
46082
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46083
- /* harmony export */ "default": () => (/* binding */ rng)
46084
- /* harmony export */ });
46085
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! crypto */ "crypto");
46086
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_0__);
46087
-
46088
- const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
46089
-
46090
- let poolPtr = rnds8Pool.length;
46091
- function rng() {
46092
- if (poolPtr > rnds8Pool.length - 16) {
46093
- crypto__WEBPACK_IMPORTED_MODULE_0___default().randomFillSync(rnds8Pool);
46094
- poolPtr = 0;
46095
- }
46096
-
46097
- return rnds8Pool.slice(poolPtr, poolPtr += 16);
45969
+ exports.BrowserMessageReader = BrowserMessageReader;
45970
+ class BrowserMessageWriter extends api_1.AbstractMessageWriter {
45971
+ constructor(port) {
45972
+ super();
45973
+ this.port = port;
45974
+ this.errorCount = 0;
45975
+ port.addEventListener('error', (event) => this.fireError(event));
45976
+ }
45977
+ write(msg) {
45978
+ try {
45979
+ this.port.postMessage(msg);
45980
+ return Promise.resolve();
45981
+ }
45982
+ catch (error) {
45983
+ this.handleError(error, msg);
45984
+ return Promise.reject(error);
45985
+ }
45986
+ }
45987
+ handleError(error, msg) {
45988
+ this.errorCount++;
45989
+ this.fireError(error, msg, this.errorCount);
45990
+ }
45991
+ end() {
45992
+ }
46098
45993
  }
46099
-
46100
- /***/ }),
46101
-
46102
- /***/ "../../node_modules/uuid/dist/esm-node/sha1.js":
46103
- /*!*****************************************************!*\
46104
- !*** ../../node_modules/uuid/dist/esm-node/sha1.js ***!
46105
- \*****************************************************/
46106
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46107
-
46108
- "use strict";
46109
- __webpack_require__.r(__webpack_exports__);
46110
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46111
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
46112
- /* harmony export */ });
46113
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! crypto */ "crypto");
46114
- /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_0__);
46115
-
46116
-
46117
- function sha1(bytes) {
46118
- if (Array.isArray(bytes)) {
46119
- bytes = Buffer.from(bytes);
46120
- } else if (typeof bytes === 'string') {
46121
- bytes = Buffer.from(bytes, 'utf8');
46122
- }
46123
-
46124
- return crypto__WEBPACK_IMPORTED_MODULE_0___default().createHash('sha1').update(bytes).digest();
45994
+ exports.BrowserMessageWriter = BrowserMessageWriter;
45995
+ function createMessageConnection(reader, writer, logger, options) {
45996
+ if (logger === undefined) {
45997
+ logger = api_1.NullLogger;
45998
+ }
45999
+ if (api_1.ConnectionStrategy.is(options)) {
46000
+ options = { connectionStrategy: options };
46001
+ }
46002
+ return (0, api_1.createMessageConnection)(reader, writer, logger, options);
46125
46003
  }
46004
+ exports.createMessageConnection = createMessageConnection;
46126
46005
 
46127
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (sha1);
46128
46006
 
46129
46007
  /***/ }),
46130
46008
 
46131
- /***/ "../../node_modules/uuid/dist/esm-node/stringify.js":
46132
- /*!**********************************************************!*\
46133
- !*** ../../node_modules/uuid/dist/esm-node/stringify.js ***!
46134
- \**********************************************************/
46135
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46136
-
46137
- "use strict";
46138
- __webpack_require__.r(__webpack_exports__);
46139
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46140
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
46141
- /* harmony export */ unsafeStringify: () => (/* binding */ unsafeStringify)
46142
- /* harmony export */ });
46143
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../../node_modules/uuid/dist/esm-node/validate.js");
46144
-
46145
- /**
46146
- * Convert array of 16 byte values to UUID string format of the form:
46147
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
46148
- */
46149
-
46150
- const byteToHex = [];
46151
-
46152
- for (let i = 0; i < 256; ++i) {
46153
- byteToHex.push((i + 0x100).toString(16).slice(1));
46154
- }
46155
-
46156
- function unsafeStringify(arr, offset = 0) {
46157
- // Note: Be careful editing this code! It's been tuned for performance
46158
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
46159
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
46160
- }
46161
-
46162
- function stringify(arr, offset = 0) {
46163
- const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
46164
- // of the following:
46165
- // - One or more input array values don't map to a hex octet (leading to
46166
- // "undefined" in the uuid)
46167
- // - Invalid input values for the RFC `version` or `variant` fields
46168
-
46169
- if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
46170
- throw TypeError('Stringified UUID is invalid');
46171
- }
46172
-
46173
- return uuid;
46174
- }
46175
-
46176
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stringify);
46177
-
46178
- /***/ }),
46179
-
46180
- /***/ "../../node_modules/uuid/dist/esm-node/v1.js":
46181
- /*!***************************************************!*\
46182
- !*** ../../node_modules/uuid/dist/esm-node/v1.js ***!
46183
- \***************************************************/
46184
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46185
-
46186
- "use strict";
46187
- __webpack_require__.r(__webpack_exports__);
46188
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46189
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
46190
- /* harmony export */ });
46191
- /* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "../../node_modules/uuid/dist/esm-node/rng.js");
46192
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/esm-node/stringify.js");
46193
-
46194
- // **`v1()` - Generate time-based UUID**
46195
- //
46196
- // Inspired by https://github.com/LiosK/UUID.js
46197
- // and http://docs.python.org/library/uuid.html
46198
-
46199
- let _nodeId;
46200
-
46201
- let _clockseq; // Previous uuid creation time
46202
-
46203
-
46204
- let _lastMSecs = 0;
46205
- let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
46206
-
46207
- function v1(options, buf, offset) {
46208
- let i = buf && offset || 0;
46209
- const b = buf || new Array(16);
46210
- options = options || {};
46211
- let node = options.node || _nodeId;
46212
- let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
46213
- // specified. We do this lazily to minimize issues related to insufficient
46214
- // system entropy. See #189
46215
-
46216
- if (node == null || clockseq == null) {
46217
- const seedBytes = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
46218
-
46219
- if (node == null) {
46220
- // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
46221
- node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
46222
- }
46223
-
46224
- if (clockseq == null) {
46225
- // Per 4.2.2, randomize (14 bit) clockseq
46226
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
46227
- }
46228
- } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
46229
- // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
46230
- // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
46231
- // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
46232
-
46233
-
46234
- let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
46235
- // cycle to simulate higher resolution clock
46236
-
46237
- let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
46238
-
46239
- const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
46240
-
46241
- if (dt < 0 && options.clockseq === undefined) {
46242
- clockseq = clockseq + 1 & 0x3fff;
46243
- } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
46244
- // time interval
46245
-
46246
-
46247
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
46248
- nsecs = 0;
46249
- } // Per 4.2.1.2 Throw error if too many uuids are requested
46250
-
46251
-
46252
- if (nsecs >= 10000) {
46253
- throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
46254
- }
46255
-
46256
- _lastMSecs = msecs;
46257
- _lastNSecs = nsecs;
46258
- _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
46259
-
46260
- msecs += 12219292800000; // `time_low`
46261
-
46262
- const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
46263
- b[i++] = tl >>> 24 & 0xff;
46264
- b[i++] = tl >>> 16 & 0xff;
46265
- b[i++] = tl >>> 8 & 0xff;
46266
- b[i++] = tl & 0xff; // `time_mid`
46267
-
46268
- const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
46269
- b[i++] = tmh >>> 8 & 0xff;
46270
- b[i++] = tmh & 0xff; // `time_high_and_version`
46271
-
46272
- b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
46273
-
46274
- b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
46275
-
46276
- b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
46277
-
46278
- b[i++] = clockseq & 0xff; // `node`
46279
-
46280
- for (let n = 0; n < 6; ++n) {
46281
- b[i + n] = node[n];
46282
- }
46283
-
46284
- return buf || (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(b);
46285
- }
46286
-
46287
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v1);
46288
-
46289
- /***/ }),
46290
-
46291
- /***/ "../../node_modules/uuid/dist/esm-node/v3.js":
46292
- /*!***************************************************!*\
46293
- !*** ../../node_modules/uuid/dist/esm-node/v3.js ***!
46294
- \***************************************************/
46295
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46296
-
46297
- "use strict";
46298
- __webpack_require__.r(__webpack_exports__);
46299
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46300
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
46301
- /* harmony export */ });
46302
- /* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "../../node_modules/uuid/dist/esm-node/v35.js");
46303
- /* harmony import */ var _md5_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./md5.js */ "../../node_modules/uuid/dist/esm-node/md5.js");
46304
-
46305
-
46306
- const v3 = (0,_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v3', 0x30, _md5_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
46307
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v3);
46308
-
46309
- /***/ }),
46310
-
46311
- /***/ "../../node_modules/uuid/dist/esm-node/v35.js":
46312
- /*!****************************************************!*\
46313
- !*** ../../node_modules/uuid/dist/esm-node/v35.js ***!
46314
- \****************************************************/
46315
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46316
-
46317
- "use strict";
46318
- __webpack_require__.r(__webpack_exports__);
46319
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46320
- /* harmony export */ DNS: () => (/* binding */ DNS),
46321
- /* harmony export */ URL: () => (/* binding */ URL),
46322
- /* harmony export */ "default": () => (/* binding */ v35)
46323
- /* harmony export */ });
46324
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/esm-node/stringify.js");
46325
- /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parse.js */ "../../node_modules/uuid/dist/esm-node/parse.js");
46326
-
46327
-
46328
-
46329
- function stringToBytes(str) {
46330
- str = unescape(encodeURIComponent(str)); // UTF8 escape
46331
-
46332
- const bytes = [];
46333
-
46334
- for (let i = 0; i < str.length; ++i) {
46335
- bytes.push(str.charCodeAt(i));
46336
- }
46337
-
46338
- return bytes;
46339
- }
46340
-
46341
- const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
46342
- const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
46343
- function v35(name, version, hashfunc) {
46344
- function generateUUID(value, namespace, buf, offset) {
46345
- var _namespace;
46346
-
46347
- if (typeof value === 'string') {
46348
- value = stringToBytes(value);
46349
- }
46350
-
46351
- if (typeof namespace === 'string') {
46352
- namespace = (0,_parse_js__WEBPACK_IMPORTED_MODULE_0__["default"])(namespace);
46353
- }
46354
-
46355
- if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
46356
- throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
46357
- } // Compute hash of namespace and value, Per 4.3
46358
- // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
46359
- // hashfunc([...namespace, ... value])`
46360
-
46361
-
46362
- let bytes = new Uint8Array(16 + value.length);
46363
- bytes.set(namespace);
46364
- bytes.set(value, namespace.length);
46365
- bytes = hashfunc(bytes);
46366
- bytes[6] = bytes[6] & 0x0f | version;
46367
- bytes[8] = bytes[8] & 0x3f | 0x80;
46368
-
46369
- if (buf) {
46370
- offset = offset || 0;
46371
-
46372
- for (let i = 0; i < 16; ++i) {
46373
- buf[offset + i] = bytes[i];
46374
- }
46375
-
46376
- return buf;
46377
- }
46378
-
46379
- return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__.unsafeStringify)(bytes);
46380
- } // Function#name is not settable on some platforms (#270)
46381
-
46382
-
46383
- try {
46384
- generateUUID.name = name; // eslint-disable-next-line no-empty
46385
- } catch (err) {} // For CommonJS default export support
46386
-
46387
-
46388
- generateUUID.DNS = DNS;
46389
- generateUUID.URL = URL;
46390
- return generateUUID;
46391
- }
46392
-
46393
- /***/ }),
46394
-
46395
- /***/ "../../node_modules/uuid/dist/esm-node/v4.js":
46396
- /*!***************************************************!*\
46397
- !*** ../../node_modules/uuid/dist/esm-node/v4.js ***!
46398
- \***************************************************/
46399
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46400
-
46401
- "use strict";
46402
- __webpack_require__.r(__webpack_exports__);
46403
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46404
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
46405
- /* harmony export */ });
46406
- /* harmony import */ var _native_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./native.js */ "../../node_modules/uuid/dist/esm-node/native.js");
46407
- /* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rng.js */ "../../node_modules/uuid/dist/esm-node/rng.js");
46408
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/esm-node/stringify.js");
46409
-
46410
-
46411
-
46412
-
46413
- function v4(options, buf, offset) {
46414
- if (_native_js__WEBPACK_IMPORTED_MODULE_0__["default"].randomUUID && !buf && !options) {
46415
- return _native_js__WEBPACK_IMPORTED_MODULE_0__["default"].randomUUID();
46416
- }
46417
-
46418
- options = options || {};
46419
- const rnds = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_1__["default"])(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
46420
-
46421
- rnds[6] = rnds[6] & 0x0f | 0x40;
46422
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
46423
-
46424
- if (buf) {
46425
- offset = offset || 0;
46426
-
46427
- for (let i = 0; i < 16; ++i) {
46428
- buf[offset + i] = rnds[i];
46429
- }
46430
-
46431
- return buf;
46432
- }
46433
-
46434
- return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_2__.unsafeStringify)(rnds);
46435
- }
46436
-
46437
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v4);
46438
-
46439
- /***/ }),
46440
-
46441
- /***/ "../../node_modules/uuid/dist/esm-node/v5.js":
46442
- /*!***************************************************!*\
46443
- !*** ../../node_modules/uuid/dist/esm-node/v5.js ***!
46444
- \***************************************************/
46445
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46446
-
46447
- "use strict";
46448
- __webpack_require__.r(__webpack_exports__);
46449
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46450
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
46451
- /* harmony export */ });
46452
- /* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "../../node_modules/uuid/dist/esm-node/v35.js");
46453
- /* harmony import */ var _sha1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sha1.js */ "../../node_modules/uuid/dist/esm-node/sha1.js");
46454
-
46455
-
46456
- const v5 = (0,_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v5', 0x50, _sha1_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
46457
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v5);
46458
-
46459
- /***/ }),
46460
-
46461
- /***/ "../../node_modules/uuid/dist/esm-node/validate.js":
46462
- /*!*********************************************************!*\
46463
- !*** ../../node_modules/uuid/dist/esm-node/validate.js ***!
46464
- \*********************************************************/
46465
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46466
-
46467
- "use strict";
46468
- __webpack_require__.r(__webpack_exports__);
46469
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46470
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
46471
- /* harmony export */ });
46472
- /* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "../../node_modules/uuid/dist/esm-node/regex.js");
46473
-
46474
-
46475
- function validate(uuid) {
46476
- return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid);
46477
- }
46478
-
46479
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validate);
46480
-
46481
- /***/ }),
46482
-
46483
- /***/ "../../node_modules/uuid/dist/esm-node/version.js":
46484
- /*!********************************************************!*\
46485
- !*** ../../node_modules/uuid/dist/esm-node/version.js ***!
46486
- \********************************************************/
46487
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46488
-
46489
- "use strict";
46490
- __webpack_require__.r(__webpack_exports__);
46491
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46492
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
46493
- /* harmony export */ });
46494
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../../node_modules/uuid/dist/esm-node/validate.js");
46495
-
46496
-
46497
- function version(uuid) {
46498
- if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
46499
- throw TypeError('Invalid UUID');
46500
- }
46501
-
46502
- return parseInt(uuid.slice(14, 15), 16);
46503
- }
46504
-
46505
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (version);
46506
-
46507
- /***/ }),
46508
-
46509
- /***/ "../../node_modules/vscode-jsonrpc/browser.js":
46510
- /*!****************************************************!*\
46511
- !*** ../../node_modules/vscode-jsonrpc/browser.js ***!
46512
- \****************************************************/
46513
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
46514
-
46515
- "use strict";
46516
- /* --------------------------------------------------------------------------------------------
46517
- * Copyright (c) Microsoft Corporation. All rights reserved.
46518
- * Licensed under the MIT License. See License.txt in the project root for license information.
46519
- * ----------------------------------------------------------------------------------------- */
46520
-
46521
-
46522
- module.exports = __webpack_require__(/*! ./lib/browser/main */ "../../node_modules/vscode-jsonrpc/lib/browser/main.js");
46523
-
46524
- /***/ }),
46525
-
46526
- /***/ "../../node_modules/vscode-jsonrpc/lib/browser/main.js":
46527
- /*!*************************************************************!*\
46528
- !*** ../../node_modules/vscode-jsonrpc/lib/browser/main.js ***!
46529
- \*************************************************************/
46530
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
46531
-
46532
- "use strict";
46533
-
46534
- /* --------------------------------------------------------------------------------------------
46535
- * Copyright (c) Microsoft Corporation. All rights reserved.
46536
- * Licensed under the MIT License. See License.txt in the project root for license information.
46537
- * ------------------------------------------------------------------------------------------ */
46538
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
46539
- if (k2 === undefined) k2 = k;
46540
- var desc = Object.getOwnPropertyDescriptor(m, k);
46541
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
46542
- desc = { enumerable: true, get: function() { return m[k]; } };
46543
- }
46544
- Object.defineProperty(o, k2, desc);
46545
- }) : (function(o, m, k, k2) {
46546
- if (k2 === undefined) k2 = k;
46547
- o[k2] = m[k];
46548
- }));
46549
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
46550
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
46551
- };
46552
- Object.defineProperty(exports, "__esModule", ({ value: true }));
46553
- exports.createMessageConnection = exports.BrowserMessageWriter = exports.BrowserMessageReader = void 0;
46554
- const ril_1 = __webpack_require__(/*! ./ril */ "../../node_modules/vscode-jsonrpc/lib/browser/ril.js");
46555
- // Install the browser runtime abstract.
46556
- ril_1.default.install();
46557
- const api_1 = __webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js");
46558
- __exportStar(__webpack_require__(/*! ../common/api */ "../../node_modules/vscode-jsonrpc/lib/common/api.js"), exports);
46559
- class BrowserMessageReader extends api_1.AbstractMessageReader {
46560
- constructor(port) {
46561
- super();
46562
- this._onData = new api_1.Emitter();
46563
- this._messageListener = (event) => {
46564
- this._onData.fire(event.data);
46565
- };
46566
- port.addEventListener('error', (event) => this.fireError(event));
46567
- port.onmessage = this._messageListener;
46568
- }
46569
- listen(callback) {
46570
- return this._onData.event(callback);
46571
- }
46572
- }
46573
- exports.BrowserMessageReader = BrowserMessageReader;
46574
- class BrowserMessageWriter extends api_1.AbstractMessageWriter {
46575
- constructor(port) {
46576
- super();
46577
- this.port = port;
46578
- this.errorCount = 0;
46579
- port.addEventListener('error', (event) => this.fireError(event));
46580
- }
46581
- write(msg) {
46582
- try {
46583
- this.port.postMessage(msg);
46584
- return Promise.resolve();
46585
- }
46586
- catch (error) {
46587
- this.handleError(error, msg);
46588
- return Promise.reject(error);
46589
- }
46590
- }
46591
- handleError(error, msg) {
46592
- this.errorCount++;
46593
- this.fireError(error, msg, this.errorCount);
46594
- }
46595
- end() {
46596
- }
46597
- }
46598
- exports.BrowserMessageWriter = BrowserMessageWriter;
46599
- function createMessageConnection(reader, writer, logger, options) {
46600
- if (logger === undefined) {
46601
- logger = api_1.NullLogger;
46602
- }
46603
- if (api_1.ConnectionStrategy.is(options)) {
46604
- options = { connectionStrategy: options };
46605
- }
46606
- return (0, api_1.createMessageConnection)(reader, writer, logger, options);
46607
- }
46608
- exports.createMessageConnection = createMessageConnection;
46609
-
46610
-
46611
- /***/ }),
46612
-
46613
- /***/ "../../node_modules/vscode-jsonrpc/lib/browser/ril.js":
46614
- /*!************************************************************!*\
46615
- !*** ../../node_modules/vscode-jsonrpc/lib/browser/ril.js ***!
46616
- \************************************************************/
46617
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
46009
+ /***/ "../../node_modules/vscode-jsonrpc/lib/browser/ril.js":
46010
+ /*!************************************************************!*\
46011
+ !*** ../../node_modules/vscode-jsonrpc/lib/browser/ril.js ***!
46012
+ \************************************************************/
46013
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
46618
46014
 
46619
46015
  "use strict";
46620
46016
 
@@ -59601,7 +58997,7 @@ exports.GModelRootBuilder = exports.GModelRoot = exports.GModelElementBuilder =
59601
58997
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
59602
58998
  ********************************************************************************/
59603
58999
  const protocol_1 = __webpack_require__(/*! @eclipse-glsp/protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/index.js");
59604
- const uuid = __webpack_require__(/*! uuid */ "../../node_modules/uuid/dist/esm-node/index.js");
59000
+ const uuid = __webpack_require__(/*! uuid */ "../../node_modules/uuid/dist/cjs/index.js");
59605
59001
  /**
59606
59002
  * Base type for all elements of the graphical model.
59607
59003
  * Each model element must have a unique ID and a type that is used to look up its view.
@@ -64781,7 +64177,7 @@ exports.DefaultProgressService = exports.ProgressService = void 0;
64781
64177
  ********************************************************************************/
64782
64178
  const protocol_1 = __webpack_require__(/*! @eclipse-glsp/protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/index.js");
64783
64179
  const inversify_1 = __webpack_require__(/*! inversify */ "../../node_modules/inversify/lib/cjs/index.js");
64784
- const uuid = __webpack_require__(/*! uuid */ "../../node_modules/uuid/dist/esm-node/index.js");
64180
+ const uuid = __webpack_require__(/*! uuid */ "../../node_modules/uuid/dist/cjs/index.js");
64785
64181
  const action_dispatcher_1 = __webpack_require__(/*! ../../actions/action-dispatcher */ "../../packages/server/lib/common/actions/action-dispatcher.js");
64786
64182
  exports.ProgressService = Symbol('ProgressService');
64787
64183
  let DefaultProgressService = class DefaultProgressService {
@@ -65938,7 +65334,7 @@ exports.shift = shift;
65938
65334
  const graph_1 = __webpack_require__(/*! @eclipse-glsp/graph */ "../../packages/graph/lib/index.js");
65939
65335
  const protocol_1 = __webpack_require__(/*! @eclipse-glsp/protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/index.js");
65940
65336
  const inversify_1 = __webpack_require__(/*! inversify */ "../../node_modules/inversify/lib/cjs/index.js");
65941
- const uuid = __webpack_require__(/*! uuid */ "../../node_modules/uuid/dist/esm-node/index.js");
65337
+ const uuid = __webpack_require__(/*! uuid */ "../../node_modules/uuid/dist/cjs/index.js");
65942
65338
  const gmodel_serializer_1 = __webpack_require__(/*! ../features/model/gmodel-serializer */ "../../packages/server/lib/common/features/model/gmodel-serializer.js");
65943
65339
  const gmodel_operation_handler_1 = __webpack_require__(/*! ./gmodel-operation-handler */ "../../packages/server/lib/common/gmodel/gmodel-operation-handler.js");
65944
65340
  let GModelPasteOperationHandler = class GModelPasteOperationHandler extends gmodel_operation_handler_1.GModelOperationHandler {
@@ -76301,39 +75697,312 @@ class BindingInSyntax {
76301
75697
  constructor(binding) {
76302
75698
  this._binding = binding;
76303
75699
  }
76304
- inRequestScope() {
76305
- this._binding.scope = literal_types_1.BindingScopeEnum.Request;
75700
+ inRequestScope() {
75701
+ this._binding.scope = literal_types_1.BindingScopeEnum.Request;
75702
+ return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
75703
+ }
75704
+ inSingletonScope() {
75705
+ this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
75706
+ return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
75707
+ }
75708
+ inTransientScope() {
75709
+ this._binding.scope = literal_types_1.BindingScopeEnum.Transient;
75710
+ return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
75711
+ }
75712
+ }
75713
+ exports.BindingInSyntax = BindingInSyntax;
75714
+
75715
+
75716
+ /***/ }),
75717
+
75718
+ /***/ "../../node_modules/inversify/lib/cjs/syntax/binding_in_when_on_syntax.js":
75719
+ /*!********************************************************************************!*\
75720
+ !*** ../../node_modules/inversify/lib/cjs/syntax/binding_in_when_on_syntax.js ***!
75721
+ \********************************************************************************/
75722
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
75723
+
75724
+ "use strict";
75725
+
75726
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
75727
+ exports.BindingInWhenOnSyntax = void 0;
75728
+ const binding_in_syntax_1 = __webpack_require__(/*! ./binding_in_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_in_syntax.js");
75729
+ const binding_on_syntax_1 = __webpack_require__(/*! ./binding_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js");
75730
+ const binding_when_syntax_1 = __webpack_require__(/*! ./binding_when_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js");
75731
+ class BindingInWhenOnSyntax {
75732
+ _bindingInSyntax;
75733
+ _bindingWhenSyntax;
75734
+ _bindingOnSyntax;
75735
+ _binding;
75736
+ constructor(binding) {
75737
+ this._binding = binding;
75738
+ this._bindingWhenSyntax = new binding_when_syntax_1.BindingWhenSyntax(this._binding);
75739
+ this._bindingOnSyntax = new binding_on_syntax_1.BindingOnSyntax(this._binding);
75740
+ this._bindingInSyntax = new binding_in_syntax_1.BindingInSyntax(binding);
75741
+ }
75742
+ inRequestScope() {
75743
+ return this._bindingInSyntax.inRequestScope();
75744
+ }
75745
+ inSingletonScope() {
75746
+ return this._bindingInSyntax.inSingletonScope();
75747
+ }
75748
+ inTransientScope() {
75749
+ return this._bindingInSyntax.inTransientScope();
75750
+ }
75751
+ when(constraint) {
75752
+ return this._bindingWhenSyntax.when(constraint);
75753
+ }
75754
+ whenTargetNamed(name) {
75755
+ return this._bindingWhenSyntax.whenTargetNamed(name);
75756
+ }
75757
+ whenTargetIsDefault() {
75758
+ return this._bindingWhenSyntax.whenTargetIsDefault();
75759
+ }
75760
+ whenTargetTagged(tag, value) {
75761
+ return this._bindingWhenSyntax.whenTargetTagged(tag, value);
75762
+ }
75763
+ whenInjectedInto(parent) {
75764
+ return this._bindingWhenSyntax.whenInjectedInto(parent);
75765
+ }
75766
+ whenParentNamed(name) {
75767
+ return this._bindingWhenSyntax.whenParentNamed(name);
75768
+ }
75769
+ whenParentTagged(tag, value) {
75770
+ return this._bindingWhenSyntax.whenParentTagged(tag, value);
75771
+ }
75772
+ whenAnyAncestorIs(ancestor) {
75773
+ return this._bindingWhenSyntax.whenAnyAncestorIs(ancestor);
75774
+ }
75775
+ whenNoAncestorIs(ancestor) {
75776
+ return this._bindingWhenSyntax.whenNoAncestorIs(ancestor);
75777
+ }
75778
+ whenAnyAncestorNamed(name) {
75779
+ return this._bindingWhenSyntax.whenAnyAncestorNamed(name);
75780
+ }
75781
+ whenAnyAncestorTagged(tag, value) {
75782
+ return this._bindingWhenSyntax.whenAnyAncestorTagged(tag, value);
75783
+ }
75784
+ whenNoAncestorNamed(name) {
75785
+ return this._bindingWhenSyntax.whenNoAncestorNamed(name);
75786
+ }
75787
+ whenNoAncestorTagged(tag, value) {
75788
+ return this._bindingWhenSyntax.whenNoAncestorTagged(tag, value);
75789
+ }
75790
+ whenAnyAncestorMatches(constraint) {
75791
+ return this._bindingWhenSyntax.whenAnyAncestorMatches(constraint);
75792
+ }
75793
+ whenNoAncestorMatches(constraint) {
75794
+ return this._bindingWhenSyntax.whenNoAncestorMatches(constraint);
75795
+ }
75796
+ onActivation(handler) {
75797
+ return this._bindingOnSyntax.onActivation(handler);
75798
+ }
75799
+ onDeactivation(handler) {
75800
+ return this._bindingOnSyntax.onDeactivation(handler);
75801
+ }
75802
+ }
75803
+ exports.BindingInWhenOnSyntax = BindingInWhenOnSyntax;
75804
+
75805
+
75806
+ /***/ }),
75807
+
75808
+ /***/ "../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js":
75809
+ /*!************************************************************************!*\
75810
+ !*** ../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js ***!
75811
+ \************************************************************************/
75812
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
75813
+
75814
+ "use strict";
75815
+
75816
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
75817
+ exports.BindingOnSyntax = void 0;
75818
+ const binding_when_syntax_1 = __webpack_require__(/*! ./binding_when_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js");
75819
+ class BindingOnSyntax {
75820
+ _binding;
75821
+ constructor(binding) {
75822
+ this._binding = binding;
75823
+ }
75824
+ onActivation(handler) {
75825
+ this._binding.onActivation = handler;
75826
+ return new binding_when_syntax_1.BindingWhenSyntax(this._binding);
75827
+ }
75828
+ onDeactivation(handler) {
75829
+ this._binding.onDeactivation = handler;
75830
+ return new binding_when_syntax_1.BindingWhenSyntax(this._binding);
75831
+ }
75832
+ }
75833
+ exports.BindingOnSyntax = BindingOnSyntax;
75834
+
75835
+
75836
+ /***/ }),
75837
+
75838
+ /***/ "../../node_modules/inversify/lib/cjs/syntax/binding_to_syntax.js":
75839
+ /*!************************************************************************!*\
75840
+ !*** ../../node_modules/inversify/lib/cjs/syntax/binding_to_syntax.js ***!
75841
+ \************************************************************************/
75842
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
75843
+
75844
+ "use strict";
75845
+
75846
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
75847
+ if (k2 === undefined) k2 = k;
75848
+ var desc = Object.getOwnPropertyDescriptor(m, k);
75849
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
75850
+ desc = { enumerable: true, get: function() { return m[k]; } };
75851
+ }
75852
+ Object.defineProperty(o, k2, desc);
75853
+ }) : (function(o, m, k, k2) {
75854
+ if (k2 === undefined) k2 = k;
75855
+ o[k2] = m[k];
75856
+ }));
75857
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
75858
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
75859
+ }) : function(o, v) {
75860
+ o["default"] = v;
75861
+ });
75862
+ var __importStar = (this && this.__importStar) || (function () {
75863
+ var ownKeys = function(o) {
75864
+ ownKeys = Object.getOwnPropertyNames || function (o) {
75865
+ var ar = [];
75866
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
75867
+ return ar;
75868
+ };
75869
+ return ownKeys(o);
75870
+ };
75871
+ return function (mod) {
75872
+ if (mod && mod.__esModule) return mod;
75873
+ var result = {};
75874
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
75875
+ __setModuleDefault(result, mod);
75876
+ return result;
75877
+ };
75878
+ })();
75879
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
75880
+ exports.BindingToSyntax = void 0;
75881
+ const ERROR_MSGS = __importStar(__webpack_require__(/*! ../constants/error_msgs */ "../../node_modules/inversify/lib/cjs/constants/error_msgs.js"));
75882
+ const literal_types_1 = __webpack_require__(/*! ../constants/literal_types */ "../../node_modules/inversify/lib/cjs/constants/literal_types.js");
75883
+ const binding_in_when_on_syntax_1 = __webpack_require__(/*! ./binding_in_when_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_in_when_on_syntax.js");
75884
+ const binding_when_on_syntax_1 = __webpack_require__(/*! ./binding_when_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_when_on_syntax.js");
75885
+ class BindingToSyntax {
75886
+ // TODO: Implement an internal type `_BindingToSyntax<T>` wherein this member
75887
+ // can be public. Let `BindingToSyntax<T>` be the presentational type that
75888
+ // depends on it, and does not expose this member as public.
75889
+ _binding;
75890
+ constructor(binding) {
75891
+ this._binding = binding;
75892
+ }
75893
+ to(constructor) {
75894
+ this._binding.type = literal_types_1.BindingTypeEnum.Instance;
75895
+ this._binding.implementationType = constructor;
75896
+ return new binding_in_when_on_syntax_1.BindingInWhenOnSyntax(this._binding);
75897
+ }
75898
+ toSelf() {
75899
+ if (typeof this._binding.serviceIdentifier !== 'function') {
75900
+ throw new Error(ERROR_MSGS.INVALID_TO_SELF_VALUE);
75901
+ }
75902
+ const self = this._binding
75903
+ .serviceIdentifier;
75904
+ return this.to(self);
75905
+ }
75906
+ toConstantValue(value) {
75907
+ this._binding.type = literal_types_1.BindingTypeEnum.ConstantValue;
75908
+ this._binding.cache = value;
75909
+ this._binding.dynamicValue = null;
75910
+ this._binding.implementationType = null;
75911
+ this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
76306
75912
  return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
76307
75913
  }
76308
- inSingletonScope() {
75914
+ toDynamicValue(func) {
75915
+ this._binding.type = literal_types_1.BindingTypeEnum.DynamicValue;
75916
+ this._binding.cache = null;
75917
+ this._binding.dynamicValue = func;
75918
+ this._binding.implementationType = null;
75919
+ return new binding_in_when_on_syntax_1.BindingInWhenOnSyntax(this._binding);
75920
+ }
75921
+ toConstructor(constructor) {
75922
+ this._binding.type = literal_types_1.BindingTypeEnum.Constructor;
75923
+ this._binding.implementationType = constructor;
76309
75924
  this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
76310
75925
  return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
76311
75926
  }
76312
- inTransientScope() {
76313
- this._binding.scope = literal_types_1.BindingScopeEnum.Transient;
75927
+ toFactory(factory) {
75928
+ this._binding.type = literal_types_1.BindingTypeEnum.Factory;
75929
+ this._binding.factory = factory;
75930
+ this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
75931
+ return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
75932
+ }
75933
+ toFunction(func) {
75934
+ // toFunction is an alias of toConstantValue
75935
+ if (typeof func !== 'function') {
75936
+ throw new Error(ERROR_MSGS.INVALID_FUNCTION_BINDING);
75937
+ }
75938
+ const bindingWhenOnSyntax = this.toConstantValue(func);
75939
+ this._binding.type = literal_types_1.BindingTypeEnum.Function;
75940
+ this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
75941
+ return bindingWhenOnSyntax;
75942
+ }
75943
+ toAutoFactory(serviceIdentifier) {
75944
+ this._binding.type = literal_types_1.BindingTypeEnum.Factory;
75945
+ this._binding.factory = (context) => {
75946
+ const autofactory = () => context.container.get(serviceIdentifier);
75947
+ return autofactory;
75948
+ };
75949
+ this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
75950
+ return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
75951
+ }
75952
+ toAutoNamedFactory(serviceIdentifier) {
75953
+ this._binding.type = literal_types_1.BindingTypeEnum.Factory;
75954
+ this._binding.factory = (context) => {
75955
+ return (named) => context.container.getNamed(serviceIdentifier, named);
75956
+ };
75957
+ return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
75958
+ }
75959
+ toProvider(provider) {
75960
+ this._binding.type = literal_types_1.BindingTypeEnum.Provider;
75961
+ this._binding.provider = provider;
75962
+ this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
76314
75963
  return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
76315
75964
  }
75965
+ toService(service) {
75966
+ this._binding.type = literal_types_1.BindingTypeEnum.DynamicValue;
75967
+ // Service bindings should never ever be cached. This is just a workaround to achieve that. A better design should replace this approach.
75968
+ Object.defineProperty(this._binding, 'cache', {
75969
+ configurable: true,
75970
+ enumerable: true,
75971
+ get() {
75972
+ return null;
75973
+ },
75974
+ set(_value) { },
75975
+ });
75976
+ this._binding.dynamicValue = (context) => {
75977
+ try {
75978
+ return context.container.get(service);
75979
+ }
75980
+ catch (_error) {
75981
+ // This is a performance degradation in this edge case, we do need to improve the internal resolution architecture in order to solve this properly.
75982
+ return context.container.getAsync(service);
75983
+ }
75984
+ };
75985
+ this._binding.implementationType = null;
75986
+ }
76316
75987
  }
76317
- exports.BindingInSyntax = BindingInSyntax;
75988
+ exports.BindingToSyntax = BindingToSyntax;
76318
75989
 
76319
75990
 
76320
75991
  /***/ }),
76321
75992
 
76322
- /***/ "../../node_modules/inversify/lib/cjs/syntax/binding_in_when_on_syntax.js":
76323
- /*!********************************************************************************!*\
76324
- !*** ../../node_modules/inversify/lib/cjs/syntax/binding_in_when_on_syntax.js ***!
76325
- \********************************************************************************/
75993
+ /***/ "../../node_modules/inversify/lib/cjs/syntax/binding_when_on_syntax.js":
75994
+ /*!*****************************************************************************!*\
75995
+ !*** ../../node_modules/inversify/lib/cjs/syntax/binding_when_on_syntax.js ***!
75996
+ \*****************************************************************************/
76326
75997
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76327
75998
 
76328
75999
  "use strict";
76329
76000
 
76330
76001
  Object.defineProperty(exports, "__esModule", ({ value: true }));
76331
- exports.BindingInWhenOnSyntax = void 0;
76332
- const binding_in_syntax_1 = __webpack_require__(/*! ./binding_in_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_in_syntax.js");
76002
+ exports.BindingWhenOnSyntax = void 0;
76333
76003
  const binding_on_syntax_1 = __webpack_require__(/*! ./binding_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js");
76334
76004
  const binding_when_syntax_1 = __webpack_require__(/*! ./binding_when_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js");
76335
- class BindingInWhenOnSyntax {
76336
- _bindingInSyntax;
76005
+ class BindingWhenOnSyntax {
76337
76006
  _bindingWhenSyntax;
76338
76007
  _bindingOnSyntax;
76339
76008
  _binding;
@@ -76341,16 +76010,6 @@ class BindingInWhenOnSyntax {
76341
76010
  this._binding = binding;
76342
76011
  this._bindingWhenSyntax = new binding_when_syntax_1.BindingWhenSyntax(this._binding);
76343
76012
  this._bindingOnSyntax = new binding_on_syntax_1.BindingOnSyntax(this._binding);
76344
- this._bindingInSyntax = new binding_in_syntax_1.BindingInSyntax(binding);
76345
- }
76346
- inRequestScope() {
76347
- return this._bindingInSyntax.inRequestScope();
76348
- }
76349
- inSingletonScope() {
76350
- return this._bindingInSyntax.inSingletonScope();
76351
- }
76352
- inTransientScope() {
76353
- return this._bindingInSyntax.inTransientScope();
76354
76013
  }
76355
76014
  when(constraint) {
76356
76015
  return this._bindingWhenSyntax.when(constraint);
@@ -76397,52 +76056,234 @@ class BindingInWhenOnSyntax {
76397
76056
  whenNoAncestorMatches(constraint) {
76398
76057
  return this._bindingWhenSyntax.whenNoAncestorMatches(constraint);
76399
76058
  }
76400
- onActivation(handler) {
76401
- return this._bindingOnSyntax.onActivation(handler);
76059
+ onActivation(handler) {
76060
+ return this._bindingOnSyntax.onActivation(handler);
76061
+ }
76062
+ onDeactivation(handler) {
76063
+ return this._bindingOnSyntax.onDeactivation(handler);
76064
+ }
76065
+ }
76066
+ exports.BindingWhenOnSyntax = BindingWhenOnSyntax;
76067
+
76068
+
76069
+ /***/ }),
76070
+
76071
+ /***/ "../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js":
76072
+ /*!**************************************************************************!*\
76073
+ !*** ../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js ***!
76074
+ \**************************************************************************/
76075
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76076
+
76077
+ "use strict";
76078
+
76079
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76080
+ exports.BindingWhenSyntax = void 0;
76081
+ const binding_on_syntax_1 = __webpack_require__(/*! ./binding_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js");
76082
+ const constraint_helpers_1 = __webpack_require__(/*! ./constraint_helpers */ "../../node_modules/inversify/lib/cjs/syntax/constraint_helpers.js");
76083
+ class BindingWhenSyntax {
76084
+ _binding;
76085
+ constructor(binding) {
76086
+ this._binding = binding;
76087
+ }
76088
+ when(constraint) {
76089
+ this._binding.constraint = constraint;
76090
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76091
+ }
76092
+ whenTargetNamed(name) {
76093
+ this._binding.constraint = (0, constraint_helpers_1.namedConstraint)(name);
76094
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76095
+ }
76096
+ whenTargetIsDefault() {
76097
+ this._binding.constraint = (request) => {
76098
+ if (request === null) {
76099
+ return false;
76100
+ }
76101
+ const targetIsDefault =
76102
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
76103
+ request.target !== null &&
76104
+ !request.target.isNamed() &&
76105
+ !request.target.isTagged();
76106
+ return targetIsDefault;
76107
+ };
76108
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76109
+ }
76110
+ whenTargetTagged(tag, value) {
76111
+ this._binding.constraint = (0, constraint_helpers_1.taggedConstraint)(tag)(value);
76112
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76113
+ }
76114
+ whenInjectedInto(parent) {
76115
+ this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.typeConstraint)(parent)(request.parentRequest);
76116
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76117
+ }
76118
+ whenParentNamed(name) {
76119
+ this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.namedConstraint)(name)(request.parentRequest);
76120
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76121
+ }
76122
+ whenParentTagged(tag, value) {
76123
+ this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.taggedConstraint)(tag)(value)(request.parentRequest);
76124
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76125
+ }
76126
+ whenAnyAncestorIs(ancestor) {
76127
+ this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.typeConstraint)(ancestor));
76128
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76129
+ }
76130
+ whenNoAncestorIs(ancestor) {
76131
+ this._binding.constraint = (request) => request !== null &&
76132
+ !(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.typeConstraint)(ancestor));
76133
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76134
+ }
76135
+ whenAnyAncestorNamed(name) {
76136
+ this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.namedConstraint)(name));
76137
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76138
+ }
76139
+ whenNoAncestorNamed(name) {
76140
+ this._binding.constraint = (request) => request !== null && !(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.namedConstraint)(name));
76141
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76142
+ }
76143
+ whenAnyAncestorTagged(tag, value) {
76144
+ this._binding.constraint = (request) => request !== null &&
76145
+ (0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.taggedConstraint)(tag)(value));
76146
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76147
+ }
76148
+ whenNoAncestorTagged(tag, value) {
76149
+ this._binding.constraint = (request) => request !== null &&
76150
+ !(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.taggedConstraint)(tag)(value));
76151
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76152
+ }
76153
+ whenAnyAncestorMatches(constraint) {
76154
+ this._binding.constraint = (request) => request !== null &&
76155
+ (0, constraint_helpers_1.traverseAncerstors)(request, constraint);
76156
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76157
+ }
76158
+ whenNoAncestorMatches(constraint) {
76159
+ this._binding.constraint = (request) => request !== null &&
76160
+ !(0, constraint_helpers_1.traverseAncerstors)(request, constraint);
76161
+ return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76162
+ }
76163
+ }
76164
+ exports.BindingWhenSyntax = BindingWhenSyntax;
76165
+
76166
+
76167
+ /***/ }),
76168
+
76169
+ /***/ "../../node_modules/inversify/lib/cjs/syntax/constraint_helpers.js":
76170
+ /*!*************************************************************************!*\
76171
+ !*** ../../node_modules/inversify/lib/cjs/syntax/constraint_helpers.js ***!
76172
+ \*************************************************************************/
76173
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
76174
+
76175
+ "use strict";
76176
+
76177
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
76178
+ if (k2 === undefined) k2 = k;
76179
+ var desc = Object.getOwnPropertyDescriptor(m, k);
76180
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
76181
+ desc = { enumerable: true, get: function() { return m[k]; } };
76182
+ }
76183
+ Object.defineProperty(o, k2, desc);
76184
+ }) : (function(o, m, k, k2) {
76185
+ if (k2 === undefined) k2 = k;
76186
+ o[k2] = m[k];
76187
+ }));
76188
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
76189
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
76190
+ }) : function(o, v) {
76191
+ o["default"] = v;
76192
+ });
76193
+ var __importStar = (this && this.__importStar) || (function () {
76194
+ var ownKeys = function(o) {
76195
+ ownKeys = Object.getOwnPropertyNames || function (o) {
76196
+ var ar = [];
76197
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
76198
+ return ar;
76199
+ };
76200
+ return ownKeys(o);
76201
+ };
76202
+ return function (mod) {
76203
+ if (mod && mod.__esModule) return mod;
76204
+ var result = {};
76205
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
76206
+ __setModuleDefault(result, mod);
76207
+ return result;
76208
+ };
76209
+ })();
76210
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76211
+ exports.typeConstraint = exports.namedConstraint = exports.taggedConstraint = exports.traverseAncerstors = void 0;
76212
+ const METADATA_KEY = __importStar(__webpack_require__(/*! ../constants/metadata_keys */ "../../node_modules/inversify/lib/cjs/constants/metadata_keys.js"));
76213
+ const metadata_1 = __webpack_require__(/*! ../planning/metadata */ "../../node_modules/inversify/lib/cjs/planning/metadata.js");
76214
+ const traverseAncerstors = (request, constraint) => {
76215
+ const parent = request.parentRequest;
76216
+ if (parent !== null) {
76217
+ return constraint(parent) ? true : traverseAncerstors(parent, constraint);
76218
+ }
76219
+ else {
76220
+ return false;
76402
76221
  }
76403
- onDeactivation(handler) {
76404
- return this._bindingOnSyntax.onDeactivation(handler);
76222
+ };
76223
+ exports.traverseAncerstors = traverseAncerstors;
76224
+ // This helpers use currying to help you to generate constraints
76225
+ const taggedConstraint = (key) => (value) => {
76226
+ const constraint = (request) => request !== null &&
76227
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
76228
+ request.target !== null &&
76229
+ request.target.matchesTag(key)(value);
76230
+ constraint.metaData = new metadata_1.Metadata(key, value);
76231
+ return constraint;
76232
+ };
76233
+ exports.taggedConstraint = taggedConstraint;
76234
+ const namedConstraint = taggedConstraint(METADATA_KEY.NAMED_TAG);
76235
+ exports.namedConstraint = namedConstraint;
76236
+ const typeConstraint = (type) => (request) => {
76237
+ // Using index 0 because constraints are applied
76238
+ // to one binding at a time (see Planner class)
76239
+ let binding = null;
76240
+ if (request !== null) {
76241
+ binding = request.bindings[0];
76242
+ if (typeof type === 'string') {
76243
+ return binding.serviceIdentifier === type;
76244
+ }
76245
+ else {
76246
+ const constructor = request.bindings[0].implementationType;
76247
+ return type === constructor;
76248
+ }
76405
76249
  }
76406
- }
76407
- exports.BindingInWhenOnSyntax = BindingInWhenOnSyntax;
76250
+ return false;
76251
+ };
76252
+ exports.typeConstraint = typeConstraint;
76408
76253
 
76409
76254
 
76410
76255
  /***/ }),
76411
76256
 
76412
- /***/ "../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js":
76413
- /*!************************************************************************!*\
76414
- !*** ../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js ***!
76415
- \************************************************************************/
76416
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76257
+ /***/ "../../node_modules/inversify/lib/cjs/utils/async.js":
76258
+ /*!***********************************************************!*\
76259
+ !*** ../../node_modules/inversify/lib/cjs/utils/async.js ***!
76260
+ \***********************************************************/
76261
+ /***/ ((__unused_webpack_module, exports) => {
76417
76262
 
76418
76263
  "use strict";
76419
76264
 
76420
76265
  Object.defineProperty(exports, "__esModule", ({ value: true }));
76421
- exports.BindingOnSyntax = void 0;
76422
- const binding_when_syntax_1 = __webpack_require__(/*! ./binding_when_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js");
76423
- class BindingOnSyntax {
76424
- _binding;
76425
- constructor(binding) {
76426
- this._binding = binding;
76427
- }
76428
- onActivation(handler) {
76429
- this._binding.onActivation = handler;
76430
- return new binding_when_syntax_1.BindingWhenSyntax(this._binding);
76431
- }
76432
- onDeactivation(handler) {
76433
- this._binding.onDeactivation = handler;
76434
- return new binding_when_syntax_1.BindingWhenSyntax(this._binding);
76266
+ exports.isPromise = isPromise;
76267
+ exports.isPromiseOrContainsPromise = isPromiseOrContainsPromise;
76268
+ function isPromise(object) {
76269
+ const isObjectOrFunction = (typeof object === 'object' && object !== null) ||
76270
+ typeof object === 'function';
76271
+ return (isObjectOrFunction && typeof object.then === 'function');
76272
+ }
76273
+ function isPromiseOrContainsPromise(object) {
76274
+ if (isPromise(object)) {
76275
+ return true;
76435
76276
  }
76277
+ return Array.isArray(object) && object.some(isPromise);
76436
76278
  }
76437
- exports.BindingOnSyntax = BindingOnSyntax;
76438
76279
 
76439
76280
 
76440
76281
  /***/ }),
76441
76282
 
76442
- /***/ "../../node_modules/inversify/lib/cjs/syntax/binding_to_syntax.js":
76443
- /*!************************************************************************!*\
76444
- !*** ../../node_modules/inversify/lib/cjs/syntax/binding_to_syntax.js ***!
76445
- \************************************************************************/
76283
+ /***/ "../../node_modules/inversify/lib/cjs/utils/binding_utils.js":
76284
+ /*!*******************************************************************!*\
76285
+ !*** ../../node_modules/inversify/lib/cjs/utils/binding_utils.js ***!
76286
+ \*******************************************************************/
76446
76287
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
76447
76288
 
76448
76289
  "use strict";
@@ -76481,299 +76322,240 @@ var __importStar = (this && this.__importStar) || (function () {
76481
76322
  };
76482
76323
  })();
76483
76324
  Object.defineProperty(exports, "__esModule", ({ value: true }));
76484
- exports.BindingToSyntax = void 0;
76325
+ exports.getFactoryDetails = exports.ensureFullyBound = exports.multiBindToService = void 0;
76485
76326
  const ERROR_MSGS = __importStar(__webpack_require__(/*! ../constants/error_msgs */ "../../node_modules/inversify/lib/cjs/constants/error_msgs.js"));
76486
76327
  const literal_types_1 = __webpack_require__(/*! ../constants/literal_types */ "../../node_modules/inversify/lib/cjs/constants/literal_types.js");
76487
- const binding_in_when_on_syntax_1 = __webpack_require__(/*! ./binding_in_when_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_in_when_on_syntax.js");
76488
- const binding_when_on_syntax_1 = __webpack_require__(/*! ./binding_when_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_when_on_syntax.js");
76489
- class BindingToSyntax {
76490
- // TODO: Implement an internal type `_BindingToSyntax<T>` wherein this member
76491
- // can be public. Let `BindingToSyntax<T>` be the presentational type that
76492
- // depends on it, and does not expose this member as public.
76493
- _binding;
76494
- constructor(binding) {
76495
- this._binding = binding;
76496
- }
76497
- to(constructor) {
76498
- this._binding.type = literal_types_1.BindingTypeEnum.Instance;
76499
- this._binding.implementationType = constructor;
76500
- return new binding_in_when_on_syntax_1.BindingInWhenOnSyntax(this._binding);
76501
- }
76502
- toSelf() {
76503
- if (typeof this._binding.serviceIdentifier !== 'function') {
76504
- throw new Error(ERROR_MSGS.INVALID_TO_SELF_VALUE);
76505
- }
76506
- const self = this._binding
76507
- .serviceIdentifier;
76508
- return this.to(self);
76509
- }
76510
- toConstantValue(value) {
76511
- this._binding.type = literal_types_1.BindingTypeEnum.ConstantValue;
76512
- this._binding.cache = value;
76513
- this._binding.dynamicValue = null;
76514
- this._binding.implementationType = null;
76515
- this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
76516
- return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
76517
- }
76518
- toDynamicValue(func) {
76519
- this._binding.type = literal_types_1.BindingTypeEnum.DynamicValue;
76520
- this._binding.cache = null;
76521
- this._binding.dynamicValue = func;
76522
- this._binding.implementationType = null;
76523
- return new binding_in_when_on_syntax_1.BindingInWhenOnSyntax(this._binding);
76524
- }
76525
- toConstructor(constructor) {
76526
- this._binding.type = literal_types_1.BindingTypeEnum.Constructor;
76527
- this._binding.implementationType = constructor;
76528
- this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
76529
- return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
76530
- }
76531
- toFactory(factory) {
76532
- this._binding.type = literal_types_1.BindingTypeEnum.Factory;
76533
- this._binding.factory = factory;
76534
- this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
76535
- return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
76536
- }
76537
- toFunction(func) {
76538
- // toFunction is an alias of toConstantValue
76539
- if (typeof func !== 'function') {
76540
- throw new Error(ERROR_MSGS.INVALID_FUNCTION_BINDING);
76541
- }
76542
- const bindingWhenOnSyntax = this.toConstantValue(func);
76543
- this._binding.type = literal_types_1.BindingTypeEnum.Function;
76544
- this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
76545
- return bindingWhenOnSyntax;
76546
- }
76547
- toAutoFactory(serviceIdentifier) {
76548
- this._binding.type = literal_types_1.BindingTypeEnum.Factory;
76549
- this._binding.factory = (context) => {
76550
- const autofactory = () => context.container.get(serviceIdentifier);
76551
- return autofactory;
76552
- };
76553
- this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
76554
- return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
76555
- }
76556
- toAutoNamedFactory(serviceIdentifier) {
76557
- this._binding.type = literal_types_1.BindingTypeEnum.Factory;
76558
- this._binding.factory = (context) => {
76559
- return (named) => context.container.getNamed(serviceIdentifier, named);
76560
- };
76561
- return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
76328
+ const serialization_1 = __webpack_require__(/*! ../utils/serialization */ "../../node_modules/inversify/lib/cjs/utils/serialization.js");
76329
+ const factory_type_1 = __webpack_require__(/*! ./factory_type */ "../../node_modules/inversify/lib/cjs/utils/factory_type.js");
76330
+ const multiBindToService = (container) => (service) => (...types) => {
76331
+ types.forEach((t) => {
76332
+ container.bind(t).toService(service);
76333
+ });
76334
+ };
76335
+ exports.multiBindToService = multiBindToService;
76336
+ const ensureFullyBound = (binding) => {
76337
+ let boundValue = null;
76338
+ // eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
76339
+ switch (binding.type) {
76340
+ case literal_types_1.BindingTypeEnum.ConstantValue:
76341
+ case literal_types_1.BindingTypeEnum.Function:
76342
+ boundValue = binding.cache;
76343
+ break;
76344
+ case literal_types_1.BindingTypeEnum.Constructor:
76345
+ case literal_types_1.BindingTypeEnum.Instance:
76346
+ boundValue = binding.implementationType;
76347
+ break;
76348
+ case literal_types_1.BindingTypeEnum.DynamicValue:
76349
+ boundValue = binding.dynamicValue;
76350
+ break;
76351
+ case literal_types_1.BindingTypeEnum.Provider:
76352
+ boundValue = binding.provider;
76353
+ break;
76354
+ case literal_types_1.BindingTypeEnum.Factory:
76355
+ boundValue = binding.factory;
76356
+ break;
76562
76357
  }
76563
- toProvider(provider) {
76564
- this._binding.type = literal_types_1.BindingTypeEnum.Provider;
76565
- this._binding.provider = provider;
76566
- this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
76567
- return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
76358
+ if (boundValue === null) {
76359
+ // The user probably created a binding but didn't finish it
76360
+ // e.g. container.bind<T>('Something'); missing BindingToSyntax
76361
+ const serviceIdentifierAsString = (0, serialization_1.getServiceIdentifierAsString)(binding.serviceIdentifier);
76362
+ throw new Error(`${ERROR_MSGS.INVALID_BINDING_TYPE} ${serviceIdentifierAsString}`);
76568
76363
  }
76569
- toService(service) {
76570
- this._binding.type = literal_types_1.BindingTypeEnum.DynamicValue;
76571
- // Service bindings should never ever be cached. This is just a workaround to achieve that. A better design should replace this approach.
76572
- Object.defineProperty(this._binding, 'cache', {
76573
- configurable: true,
76574
- enumerable: true,
76575
- get() {
76576
- return null;
76577
- },
76578
- set(_value) { },
76579
- });
76580
- this._binding.dynamicValue = (context) => {
76581
- try {
76582
- return context.container.get(service);
76583
- }
76584
- catch (_error) {
76585
- // This is a performance degradation in this edge case, we do need to improve the internal resolution architecture in order to solve this properly.
76586
- return context.container.getAsync(service);
76587
- }
76588
- };
76589
- this._binding.implementationType = null;
76364
+ };
76365
+ exports.ensureFullyBound = ensureFullyBound;
76366
+ const getFactoryDetails = (binding) => {
76367
+ switch (binding.type) {
76368
+ case literal_types_1.BindingTypeEnum.Factory:
76369
+ return { factory: binding.factory, factoryType: factory_type_1.FactoryType.Factory };
76370
+ case literal_types_1.BindingTypeEnum.Provider:
76371
+ return { factory: binding.provider, factoryType: factory_type_1.FactoryType.Provider };
76372
+ case literal_types_1.BindingTypeEnum.DynamicValue:
76373
+ return {
76374
+ factory: binding.dynamicValue,
76375
+ factoryType: factory_type_1.FactoryType.DynamicValue,
76376
+ };
76377
+ default:
76378
+ throw new Error(`Unexpected factory type ${binding.type}`);
76590
76379
  }
76591
- }
76592
- exports.BindingToSyntax = BindingToSyntax;
76380
+ };
76381
+ exports.getFactoryDetails = getFactoryDetails;
76593
76382
 
76594
76383
 
76595
76384
  /***/ }),
76596
76385
 
76597
- /***/ "../../node_modules/inversify/lib/cjs/syntax/binding_when_on_syntax.js":
76598
- /*!*****************************************************************************!*\
76599
- !*** ../../node_modules/inversify/lib/cjs/syntax/binding_when_on_syntax.js ***!
76600
- \*****************************************************************************/
76601
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76386
+ /***/ "../../node_modules/inversify/lib/cjs/utils/clonable.js":
76387
+ /*!**************************************************************!*\
76388
+ !*** ../../node_modules/inversify/lib/cjs/utils/clonable.js ***!
76389
+ \**************************************************************/
76390
+ /***/ ((__unused_webpack_module, exports) => {
76602
76391
 
76603
76392
  "use strict";
76604
76393
 
76605
76394
  Object.defineProperty(exports, "__esModule", ({ value: true }));
76606
- exports.BindingWhenOnSyntax = void 0;
76607
- const binding_on_syntax_1 = __webpack_require__(/*! ./binding_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js");
76608
- const binding_when_syntax_1 = __webpack_require__(/*! ./binding_when_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js");
76609
- class BindingWhenOnSyntax {
76610
- _bindingWhenSyntax;
76611
- _bindingOnSyntax;
76612
- _binding;
76613
- constructor(binding) {
76614
- this._binding = binding;
76615
- this._bindingWhenSyntax = new binding_when_syntax_1.BindingWhenSyntax(this._binding);
76616
- this._bindingOnSyntax = new binding_on_syntax_1.BindingOnSyntax(this._binding);
76617
- }
76618
- when(constraint) {
76619
- return this._bindingWhenSyntax.when(constraint);
76620
- }
76621
- whenTargetNamed(name) {
76622
- return this._bindingWhenSyntax.whenTargetNamed(name);
76623
- }
76624
- whenTargetIsDefault() {
76625
- return this._bindingWhenSyntax.whenTargetIsDefault();
76626
- }
76627
- whenTargetTagged(tag, value) {
76628
- return this._bindingWhenSyntax.whenTargetTagged(tag, value);
76629
- }
76630
- whenInjectedInto(parent) {
76631
- return this._bindingWhenSyntax.whenInjectedInto(parent);
76632
- }
76633
- whenParentNamed(name) {
76634
- return this._bindingWhenSyntax.whenParentNamed(name);
76635
- }
76636
- whenParentTagged(tag, value) {
76637
- return this._bindingWhenSyntax.whenParentTagged(tag, value);
76638
- }
76639
- whenAnyAncestorIs(ancestor) {
76640
- return this._bindingWhenSyntax.whenAnyAncestorIs(ancestor);
76641
- }
76642
- whenNoAncestorIs(ancestor) {
76643
- return this._bindingWhenSyntax.whenNoAncestorIs(ancestor);
76644
- }
76645
- whenAnyAncestorNamed(name) {
76646
- return this._bindingWhenSyntax.whenAnyAncestorNamed(name);
76647
- }
76648
- whenAnyAncestorTagged(tag, value) {
76649
- return this._bindingWhenSyntax.whenAnyAncestorTagged(tag, value);
76650
- }
76651
- whenNoAncestorNamed(name) {
76652
- return this._bindingWhenSyntax.whenNoAncestorNamed(name);
76653
- }
76654
- whenNoAncestorTagged(tag, value) {
76655
- return this._bindingWhenSyntax.whenNoAncestorTagged(tag, value);
76656
- }
76657
- whenAnyAncestorMatches(constraint) {
76658
- return this._bindingWhenSyntax.whenAnyAncestorMatches(constraint);
76659
- }
76660
- whenNoAncestorMatches(constraint) {
76661
- return this._bindingWhenSyntax.whenNoAncestorMatches(constraint);
76662
- }
76663
- onActivation(handler) {
76664
- return this._bindingOnSyntax.onActivation(handler);
76665
- }
76666
- onDeactivation(handler) {
76667
- return this._bindingOnSyntax.onDeactivation(handler);
76668
- }
76395
+ exports.isClonable = isClonable;
76396
+ function isClonable(obj) {
76397
+ return (typeof obj === 'object' &&
76398
+ obj !== null &&
76399
+ 'clone' in obj &&
76400
+ typeof obj.clone === 'function');
76669
76401
  }
76670
- exports.BindingWhenOnSyntax = BindingWhenOnSyntax;
76671
76402
 
76672
76403
 
76673
76404
  /***/ }),
76674
76405
 
76675
- /***/ "../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js":
76676
- /*!**************************************************************************!*\
76677
- !*** ../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js ***!
76678
- \**************************************************************************/
76679
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76406
+ /***/ "../../node_modules/inversify/lib/cjs/utils/exceptions.js":
76407
+ /*!****************************************************************!*\
76408
+ !*** ../../node_modules/inversify/lib/cjs/utils/exceptions.js ***!
76409
+ \****************************************************************/
76410
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
76680
76411
 
76681
76412
  "use strict";
76682
76413
 
76683
- Object.defineProperty(exports, "__esModule", ({ value: true }));
76684
- exports.BindingWhenSyntax = void 0;
76685
- const binding_on_syntax_1 = __webpack_require__(/*! ./binding_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js");
76686
- const constraint_helpers_1 = __webpack_require__(/*! ./constraint_helpers */ "../../node_modules/inversify/lib/cjs/syntax/constraint_helpers.js");
76687
- class BindingWhenSyntax {
76688
- _binding;
76689
- constructor(binding) {
76690
- this._binding = binding;
76691
- }
76692
- when(constraint) {
76693
- this._binding.constraint = constraint;
76694
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76695
- }
76696
- whenTargetNamed(name) {
76697
- this._binding.constraint = (0, constraint_helpers_1.namedConstraint)(name);
76698
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76414
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
76415
+ if (k2 === undefined) k2 = k;
76416
+ var desc = Object.getOwnPropertyDescriptor(m, k);
76417
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
76418
+ desc = { enumerable: true, get: function() { return m[k]; } };
76699
76419
  }
76700
- whenTargetIsDefault() {
76701
- this._binding.constraint = (request) => {
76702
- if (request === null) {
76703
- return false;
76704
- }
76705
- const targetIsDefault =
76706
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
76707
- request.target !== null &&
76708
- !request.target.isNamed() &&
76709
- !request.target.isTagged();
76710
- return targetIsDefault;
76420
+ Object.defineProperty(o, k2, desc);
76421
+ }) : (function(o, m, k, k2) {
76422
+ if (k2 === undefined) k2 = k;
76423
+ o[k2] = m[k];
76424
+ }));
76425
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
76426
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
76427
+ }) : function(o, v) {
76428
+ o["default"] = v;
76429
+ });
76430
+ var __importStar = (this && this.__importStar) || (function () {
76431
+ var ownKeys = function(o) {
76432
+ ownKeys = Object.getOwnPropertyNames || function (o) {
76433
+ var ar = [];
76434
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
76435
+ return ar;
76711
76436
  };
76712
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76713
- }
76714
- whenTargetTagged(tag, value) {
76715
- this._binding.constraint = (0, constraint_helpers_1.taggedConstraint)(tag)(value);
76716
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76717
- }
76718
- whenInjectedInto(parent) {
76719
- this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.typeConstraint)(parent)(request.parentRequest);
76720
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76721
- }
76722
- whenParentNamed(name) {
76723
- this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.namedConstraint)(name)(request.parentRequest);
76724
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76725
- }
76726
- whenParentTagged(tag, value) {
76727
- this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.taggedConstraint)(tag)(value)(request.parentRequest);
76728
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76729
- }
76730
- whenAnyAncestorIs(ancestor) {
76731
- this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.typeConstraint)(ancestor));
76732
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76733
- }
76734
- whenNoAncestorIs(ancestor) {
76735
- this._binding.constraint = (request) => request !== null &&
76736
- !(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.typeConstraint)(ancestor));
76737
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76738
- }
76739
- whenAnyAncestorNamed(name) {
76740
- this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.namedConstraint)(name));
76741
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76742
- }
76743
- whenNoAncestorNamed(name) {
76744
- this._binding.constraint = (request) => request !== null && !(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.namedConstraint)(name));
76745
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76746
- }
76747
- whenAnyAncestorTagged(tag, value) {
76748
- this._binding.constraint = (request) => request !== null &&
76749
- (0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.taggedConstraint)(tag)(value));
76750
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76751
- }
76752
- whenNoAncestorTagged(tag, value) {
76753
- this._binding.constraint = (request) => request !== null &&
76754
- !(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.taggedConstraint)(tag)(value));
76755
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76437
+ return ownKeys(o);
76438
+ };
76439
+ return function (mod) {
76440
+ if (mod && mod.__esModule) return mod;
76441
+ var result = {};
76442
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
76443
+ __setModuleDefault(result, mod);
76444
+ return result;
76445
+ };
76446
+ })();
76447
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76448
+ exports.tryAndThrowErrorIfStackOverflow = void 0;
76449
+ exports.isStackOverflowException = isStackOverflowException;
76450
+ const ERROR_MSGS = __importStar(__webpack_require__(/*! ../constants/error_msgs */ "../../node_modules/inversify/lib/cjs/constants/error_msgs.js"));
76451
+ function isStackOverflowException(error) {
76452
+ return (error instanceof RangeError ||
76453
+ error.message === ERROR_MSGS.STACK_OVERFLOW);
76454
+ }
76455
+ const tryAndThrowErrorIfStackOverflow = (fn, errorCallback) => {
76456
+ try {
76457
+ return fn();
76756
76458
  }
76757
- whenAnyAncestorMatches(constraint) {
76758
- this._binding.constraint = (request) => request !== null &&
76759
- (0, constraint_helpers_1.traverseAncerstors)(request, constraint);
76760
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76459
+ catch (error) {
76460
+ if (isStackOverflowException(error)) {
76461
+ throw errorCallback();
76462
+ }
76463
+ throw error;
76761
76464
  }
76762
- whenNoAncestorMatches(constraint) {
76763
- this._binding.constraint = (request) => request !== null &&
76764
- !(0, constraint_helpers_1.traverseAncerstors)(request, constraint);
76765
- return new binding_on_syntax_1.BindingOnSyntax(this._binding);
76465
+ };
76466
+ exports.tryAndThrowErrorIfStackOverflow = tryAndThrowErrorIfStackOverflow;
76467
+
76468
+
76469
+ /***/ }),
76470
+
76471
+ /***/ "../../node_modules/inversify/lib/cjs/utils/factory_type.js":
76472
+ /*!******************************************************************!*\
76473
+ !*** ../../node_modules/inversify/lib/cjs/utils/factory_type.js ***!
76474
+ \******************************************************************/
76475
+ /***/ ((__unused_webpack_module, exports) => {
76476
+
76477
+ "use strict";
76478
+
76479
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76480
+ exports.FactoryType = void 0;
76481
+ var FactoryType;
76482
+ (function (FactoryType) {
76483
+ FactoryType["DynamicValue"] = "toDynamicValue";
76484
+ FactoryType["Factory"] = "toFactory";
76485
+ FactoryType["Provider"] = "toProvider";
76486
+ })(FactoryType || (exports.FactoryType = FactoryType = {}));
76487
+
76488
+
76489
+ /***/ }),
76490
+
76491
+ /***/ "../../node_modules/inversify/lib/cjs/utils/get_base_type.js":
76492
+ /*!*******************************************************************!*\
76493
+ !*** ../../node_modules/inversify/lib/cjs/utils/get_base_type.js ***!
76494
+ \*******************************************************************/
76495
+ /***/ ((__unused_webpack_module, exports) => {
76496
+
76497
+ "use strict";
76498
+
76499
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76500
+ exports.getBaseType = getBaseType;
76501
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
76502
+ function getBaseType(type) {
76503
+ const prototype = Object.getPrototypeOf(type.prototype);
76504
+ const baseType = prototype?.constructor;
76505
+ return baseType;
76506
+ }
76507
+
76508
+
76509
+ /***/ }),
76510
+
76511
+ /***/ "../../node_modules/inversify/lib/cjs/utils/id.js":
76512
+ /*!********************************************************!*\
76513
+ !*** ../../node_modules/inversify/lib/cjs/utils/id.js ***!
76514
+ \********************************************************/
76515
+ /***/ ((__unused_webpack_module, exports) => {
76516
+
76517
+ "use strict";
76518
+
76519
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76520
+ exports.id = id;
76521
+ let idCounter = 0;
76522
+ function id() {
76523
+ return idCounter++;
76524
+ }
76525
+
76526
+
76527
+ /***/ }),
76528
+
76529
+ /***/ "../../node_modules/inversify/lib/cjs/utils/js.js":
76530
+ /*!********************************************************!*\
76531
+ !*** ../../node_modules/inversify/lib/cjs/utils/js.js ***!
76532
+ \********************************************************/
76533
+ /***/ ((__unused_webpack_module, exports) => {
76534
+
76535
+ "use strict";
76536
+
76537
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76538
+ exports.getFirstArrayDuplicate = getFirstArrayDuplicate;
76539
+ function getFirstArrayDuplicate(array) {
76540
+ const seenValues = new Set();
76541
+ for (const entry of array) {
76542
+ if (seenValues.has(entry)) {
76543
+ return entry;
76544
+ }
76545
+ else {
76546
+ seenValues.add(entry);
76547
+ }
76766
76548
  }
76549
+ return undefined;
76767
76550
  }
76768
- exports.BindingWhenSyntax = BindingWhenSyntax;
76769
76551
 
76770
76552
 
76771
76553
  /***/ }),
76772
76554
 
76773
- /***/ "../../node_modules/inversify/lib/cjs/syntax/constraint_helpers.js":
76774
- /*!*************************************************************************!*\
76775
- !*** ../../node_modules/inversify/lib/cjs/syntax/constraint_helpers.js ***!
76776
- \*************************************************************************/
76555
+ /***/ "../../node_modules/inversify/lib/cjs/utils/serialization.js":
76556
+ /*!*******************************************************************!*\
76557
+ !*** ../../node_modules/inversify/lib/cjs/utils/serialization.js ***!
76558
+ \*******************************************************************/
76777
76559
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
76778
76560
 
76779
76561
  "use strict";
@@ -76812,504 +76594,798 @@ var __importStar = (this && this.__importStar) || (function () {
76812
76594
  };
76813
76595
  })();
76814
76596
  Object.defineProperty(exports, "__esModule", ({ value: true }));
76815
- exports.typeConstraint = exports.namedConstraint = exports.taggedConstraint = exports.traverseAncerstors = void 0;
76816
- const METADATA_KEY = __importStar(__webpack_require__(/*! ../constants/metadata_keys */ "../../node_modules/inversify/lib/cjs/constants/metadata_keys.js"));
76817
- const metadata_1 = __webpack_require__(/*! ../planning/metadata */ "../../node_modules/inversify/lib/cjs/planning/metadata.js");
76818
- const traverseAncerstors = (request, constraint) => {
76819
- const parent = request.parentRequest;
76820
- if (parent !== null) {
76821
- return constraint(parent) ? true : traverseAncerstors(parent, constraint);
76597
+ exports.getFunctionName = getFunctionName;
76598
+ exports.getServiceIdentifierAsString = getServiceIdentifierAsString;
76599
+ exports.listRegisteredBindingsForServiceIdentifier = listRegisteredBindingsForServiceIdentifier;
76600
+ exports.listMetadataForTarget = listMetadataForTarget;
76601
+ exports.circularDependencyToException = circularDependencyToException;
76602
+ exports.getSymbolDescription = getSymbolDescription;
76603
+ const ERROR_MSGS = __importStar(__webpack_require__(/*! ../constants/error_msgs */ "../../node_modules/inversify/lib/cjs/constants/error_msgs.js"));
76604
+ function getServiceIdentifierAsString(serviceIdentifier) {
76605
+ if (typeof serviceIdentifier === 'function') {
76606
+ return serviceIdentifier.name;
76607
+ }
76608
+ else if (typeof serviceIdentifier === 'symbol') {
76609
+ return serviceIdentifier.toString();
76822
76610
  }
76823
76611
  else {
76612
+ return serviceIdentifier;
76613
+ }
76614
+ }
76615
+ function listRegisteredBindingsForServiceIdentifier(container, serviceIdentifier, getBindings) {
76616
+ let registeredBindingsList = '';
76617
+ const registeredBindings = getBindings(container, serviceIdentifier);
76618
+ if (registeredBindings.length !== 0) {
76619
+ registeredBindingsList = '\nRegistered bindings:';
76620
+ registeredBindings.forEach((binding) => {
76621
+ // Use 'Object as name of constant value injections'
76622
+ let name = 'Object';
76623
+ // Use function name if available
76624
+ if (binding.implementationType !== null) {
76625
+ name = getFunctionName(binding.implementationType);
76626
+ }
76627
+ registeredBindingsList = `${registeredBindingsList}\n ${name}`;
76628
+ if (binding.constraint.metaData) {
76629
+ // eslint-disable-next-line @typescript-eslint/no-base-to-string, @typescript-eslint/restrict-template-expressions
76630
+ registeredBindingsList = `${registeredBindingsList} - ${binding.constraint.metaData}`;
76631
+ }
76632
+ });
76633
+ }
76634
+ return registeredBindingsList;
76635
+ }
76636
+ function alreadyDependencyChain(request, serviceIdentifier) {
76637
+ if (request.parentRequest === null) {
76824
76638
  return false;
76825
76639
  }
76826
- };
76827
- exports.traverseAncerstors = traverseAncerstors;
76828
- // This helpers use currying to help you to generate constraints
76829
- const taggedConstraint = (key) => (value) => {
76830
- const constraint = (request) => request !== null &&
76831
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
76832
- request.target !== null &&
76833
- request.target.matchesTag(key)(value);
76834
- constraint.metaData = new metadata_1.Metadata(key, value);
76835
- return constraint;
76836
- };
76837
- exports.taggedConstraint = taggedConstraint;
76838
- const namedConstraint = taggedConstraint(METADATA_KEY.NAMED_TAG);
76839
- exports.namedConstraint = namedConstraint;
76840
- const typeConstraint = (type) => (request) => {
76841
- // Using index 0 because constraints are applied
76842
- // to one binding at a time (see Planner class)
76843
- let binding = null;
76844
- if (request !== null) {
76845
- binding = request.bindings[0];
76846
- if (typeof type === 'string') {
76847
- return binding.serviceIdentifier === type;
76640
+ else if (request.parentRequest.serviceIdentifier === serviceIdentifier) {
76641
+ return true;
76642
+ }
76643
+ else {
76644
+ return alreadyDependencyChain(request.parentRequest, serviceIdentifier);
76645
+ }
76646
+ }
76647
+ function dependencyChainToString(request) {
76648
+ function _createStringArr(req, result = []) {
76649
+ const serviceIdentifier = getServiceIdentifierAsString(req.serviceIdentifier);
76650
+ result.push(serviceIdentifier);
76651
+ if (req.parentRequest !== null) {
76652
+ return _createStringArr(req.parentRequest, result);
76653
+ }
76654
+ return result;
76655
+ }
76656
+ const stringArr = _createStringArr(request);
76657
+ return stringArr.reverse().join(' --> ');
76658
+ }
76659
+ function circularDependencyToException(request) {
76660
+ request.childRequests.forEach((childRequest) => {
76661
+ if (alreadyDependencyChain(request, childRequest.serviceIdentifier)) {
76662
+ const services = dependencyChainToString(childRequest);
76663
+ throw new Error(`${ERROR_MSGS.CIRCULAR_DEPENDENCY} ${services}`);
76848
76664
  }
76849
76665
  else {
76850
- const constructor = request.bindings[0].implementationType;
76851
- return type === constructor;
76666
+ circularDependencyToException(childRequest);
76667
+ }
76668
+ });
76669
+ }
76670
+ function listMetadataForTarget(serviceIdentifierString, target) {
76671
+ if (target.isTagged() || target.isNamed()) {
76672
+ let m = '';
76673
+ const namedTag = target.getNamedTag();
76674
+ const otherTags = target.getCustomTags();
76675
+ if (namedTag !== null) {
76676
+ m += stringifyMetadata(namedTag) + '\n';
76677
+ }
76678
+ if (otherTags !== null) {
76679
+ otherTags.forEach((tag) => {
76680
+ m += stringifyMetadata(tag) + '\n';
76681
+ });
76852
76682
  }
76683
+ return ` ${serviceIdentifierString}\n ${serviceIdentifierString} - ${m}`;
76684
+ }
76685
+ else {
76686
+ return ` ${serviceIdentifierString}`;
76687
+ }
76688
+ }
76689
+ function getFunctionName(func) {
76690
+ if (func.name != null && func.name !== '') {
76691
+ return func.name;
76692
+ }
76693
+ else {
76694
+ // eslint-disable-next-line @typescript-eslint/no-base-to-string
76695
+ const name = func.toString();
76696
+ const match = name.match(/^function\s*([^\s(]+)/);
76697
+ return match === null
76698
+ ? `Anonymous function: ${name}`
76699
+ : match[1];
76700
+ }
76701
+ }
76702
+ function getSymbolDescription(symbol) {
76703
+ // eslint-disable-next-line @typescript-eslint/no-magic-numbers
76704
+ return symbol.toString().slice(7, -1);
76705
+ }
76706
+ function stringifyMetadata(metadata) {
76707
+ return `{"key":"${metadata.key.toString()}","value":"${metadata.value.toString()}"}`;
76708
+ }
76709
+
76710
+
76711
+ /***/ }),
76712
+
76713
+ /***/ "../../node_modules/uuid/dist/cjs/index.js":
76714
+ /*!*************************************************!*\
76715
+ !*** ../../node_modules/uuid/dist/cjs/index.js ***!
76716
+ \*************************************************/
76717
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76718
+
76719
+ "use strict";
76720
+
76721
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76722
+ exports.version = exports.validate = exports.v7 = exports.v6ToV1 = exports.v6 = exports.v5 = exports.v4 = exports.v3 = exports.v1ToV6 = exports.v1 = exports.stringify = exports.parse = exports.NIL = exports.MAX = void 0;
76723
+ var max_js_1 = __webpack_require__(/*! ./max.js */ "../../node_modules/uuid/dist/cjs/max.js");
76724
+ Object.defineProperty(exports, "MAX", ({ enumerable: true, get: function () { return max_js_1.default; } }));
76725
+ var nil_js_1 = __webpack_require__(/*! ./nil.js */ "../../node_modules/uuid/dist/cjs/nil.js");
76726
+ Object.defineProperty(exports, "NIL", ({ enumerable: true, get: function () { return nil_js_1.default; } }));
76727
+ var parse_js_1 = __webpack_require__(/*! ./parse.js */ "../../node_modules/uuid/dist/cjs/parse.js");
76728
+ Object.defineProperty(exports, "parse", ({ enumerable: true, get: function () { return parse_js_1.default; } }));
76729
+ var stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
76730
+ Object.defineProperty(exports, "stringify", ({ enumerable: true, get: function () { return stringify_js_1.default; } }));
76731
+ var v1_js_1 = __webpack_require__(/*! ./v1.js */ "../../node_modules/uuid/dist/cjs/v1.js");
76732
+ Object.defineProperty(exports, "v1", ({ enumerable: true, get: function () { return v1_js_1.default; } }));
76733
+ var v1ToV6_js_1 = __webpack_require__(/*! ./v1ToV6.js */ "../../node_modules/uuid/dist/cjs/v1ToV6.js");
76734
+ Object.defineProperty(exports, "v1ToV6", ({ enumerable: true, get: function () { return v1ToV6_js_1.default; } }));
76735
+ var v3_js_1 = __webpack_require__(/*! ./v3.js */ "../../node_modules/uuid/dist/cjs/v3.js");
76736
+ Object.defineProperty(exports, "v3", ({ enumerable: true, get: function () { return v3_js_1.default; } }));
76737
+ var v4_js_1 = __webpack_require__(/*! ./v4.js */ "../../node_modules/uuid/dist/cjs/v4.js");
76738
+ Object.defineProperty(exports, "v4", ({ enumerable: true, get: function () { return v4_js_1.default; } }));
76739
+ var v5_js_1 = __webpack_require__(/*! ./v5.js */ "../../node_modules/uuid/dist/cjs/v5.js");
76740
+ Object.defineProperty(exports, "v5", ({ enumerable: true, get: function () { return v5_js_1.default; } }));
76741
+ var v6_js_1 = __webpack_require__(/*! ./v6.js */ "../../node_modules/uuid/dist/cjs/v6.js");
76742
+ Object.defineProperty(exports, "v6", ({ enumerable: true, get: function () { return v6_js_1.default; } }));
76743
+ var v6ToV1_js_1 = __webpack_require__(/*! ./v6ToV1.js */ "../../node_modules/uuid/dist/cjs/v6ToV1.js");
76744
+ Object.defineProperty(exports, "v6ToV1", ({ enumerable: true, get: function () { return v6ToV1_js_1.default; } }));
76745
+ var v7_js_1 = __webpack_require__(/*! ./v7.js */ "../../node_modules/uuid/dist/cjs/v7.js");
76746
+ Object.defineProperty(exports, "v7", ({ enumerable: true, get: function () { return v7_js_1.default; } }));
76747
+ var validate_js_1 = __webpack_require__(/*! ./validate.js */ "../../node_modules/uuid/dist/cjs/validate.js");
76748
+ Object.defineProperty(exports, "validate", ({ enumerable: true, get: function () { return validate_js_1.default; } }));
76749
+ var version_js_1 = __webpack_require__(/*! ./version.js */ "../../node_modules/uuid/dist/cjs/version.js");
76750
+ Object.defineProperty(exports, "version", ({ enumerable: true, get: function () { return version_js_1.default; } }));
76751
+
76752
+
76753
+ /***/ }),
76754
+
76755
+ /***/ "../../node_modules/uuid/dist/cjs/max.js":
76756
+ /*!***********************************************!*\
76757
+ !*** ../../node_modules/uuid/dist/cjs/max.js ***!
76758
+ \***********************************************/
76759
+ /***/ ((__unused_webpack_module, exports) => {
76760
+
76761
+ "use strict";
76762
+
76763
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76764
+ exports["default"] = 'ffffffff-ffff-ffff-ffff-ffffffffffff';
76765
+
76766
+
76767
+ /***/ }),
76768
+
76769
+ /***/ "../../node_modules/uuid/dist/cjs/md5.js":
76770
+ /*!***********************************************!*\
76771
+ !*** ../../node_modules/uuid/dist/cjs/md5.js ***!
76772
+ \***********************************************/
76773
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76774
+
76775
+ "use strict";
76776
+
76777
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76778
+ const crypto_1 = __webpack_require__(/*! crypto */ "crypto");
76779
+ function md5(bytes) {
76780
+ if (Array.isArray(bytes)) {
76781
+ bytes = Buffer.from(bytes);
76782
+ }
76783
+ else if (typeof bytes === 'string') {
76784
+ bytes = Buffer.from(bytes, 'utf8');
76785
+ }
76786
+ return (0, crypto_1.createHash)('md5').update(bytes).digest();
76787
+ }
76788
+ exports["default"] = md5;
76789
+
76790
+
76791
+ /***/ }),
76792
+
76793
+ /***/ "../../node_modules/uuid/dist/cjs/native.js":
76794
+ /*!**************************************************!*\
76795
+ !*** ../../node_modules/uuid/dist/cjs/native.js ***!
76796
+ \**************************************************/
76797
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76798
+
76799
+ "use strict";
76800
+
76801
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76802
+ const crypto_1 = __webpack_require__(/*! crypto */ "crypto");
76803
+ exports["default"] = { randomUUID: crypto_1.randomUUID };
76804
+
76805
+
76806
+ /***/ }),
76807
+
76808
+ /***/ "../../node_modules/uuid/dist/cjs/nil.js":
76809
+ /*!***********************************************!*\
76810
+ !*** ../../node_modules/uuid/dist/cjs/nil.js ***!
76811
+ \***********************************************/
76812
+ /***/ ((__unused_webpack_module, exports) => {
76813
+
76814
+ "use strict";
76815
+
76816
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76817
+ exports["default"] = '00000000-0000-0000-0000-000000000000';
76818
+
76819
+
76820
+ /***/ }),
76821
+
76822
+ /***/ "../../node_modules/uuid/dist/cjs/parse.js":
76823
+ /*!*************************************************!*\
76824
+ !*** ../../node_modules/uuid/dist/cjs/parse.js ***!
76825
+ \*************************************************/
76826
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76827
+
76828
+ "use strict";
76829
+
76830
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76831
+ const validate_js_1 = __webpack_require__(/*! ./validate.js */ "../../node_modules/uuid/dist/cjs/validate.js");
76832
+ function parse(uuid) {
76833
+ if (!(0, validate_js_1.default)(uuid)) {
76834
+ throw TypeError('Invalid UUID');
76853
76835
  }
76854
- return false;
76855
- };
76856
- exports.typeConstraint = typeConstraint;
76836
+ let v;
76837
+ return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff);
76838
+ }
76839
+ exports["default"] = parse;
76857
76840
 
76858
76841
 
76859
76842
  /***/ }),
76860
76843
 
76861
- /***/ "../../node_modules/inversify/lib/cjs/utils/async.js":
76862
- /*!***********************************************************!*\
76863
- !*** ../../node_modules/inversify/lib/cjs/utils/async.js ***!
76864
- \***********************************************************/
76844
+ /***/ "../../node_modules/uuid/dist/cjs/regex.js":
76845
+ /*!*************************************************!*\
76846
+ !*** ../../node_modules/uuid/dist/cjs/regex.js ***!
76847
+ \*************************************************/
76865
76848
  /***/ ((__unused_webpack_module, exports) => {
76866
76849
 
76867
76850
  "use strict";
76868
76851
 
76869
76852
  Object.defineProperty(exports, "__esModule", ({ value: true }));
76870
- exports.isPromise = isPromise;
76871
- exports.isPromiseOrContainsPromise = isPromiseOrContainsPromise;
76872
- function isPromise(object) {
76873
- const isObjectOrFunction = (typeof object === 'object' && object !== null) ||
76874
- typeof object === 'function';
76875
- return (isObjectOrFunction && typeof object.then === 'function');
76853
+ exports["default"] = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
76854
+
76855
+
76856
+ /***/ }),
76857
+
76858
+ /***/ "../../node_modules/uuid/dist/cjs/rng.js":
76859
+ /*!***********************************************!*\
76860
+ !*** ../../node_modules/uuid/dist/cjs/rng.js ***!
76861
+ \***********************************************/
76862
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76863
+
76864
+ "use strict";
76865
+
76866
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76867
+ const crypto_1 = __webpack_require__(/*! crypto */ "crypto");
76868
+ const rnds8Pool = new Uint8Array(256);
76869
+ let poolPtr = rnds8Pool.length;
76870
+ function rng() {
76871
+ if (poolPtr > rnds8Pool.length - 16) {
76872
+ (0, crypto_1.randomFillSync)(rnds8Pool);
76873
+ poolPtr = 0;
76874
+ }
76875
+ return rnds8Pool.slice(poolPtr, (poolPtr += 16));
76876
76876
  }
76877
- function isPromiseOrContainsPromise(object) {
76878
- if (isPromise(object)) {
76879
- return true;
76877
+ exports["default"] = rng;
76878
+
76879
+
76880
+ /***/ }),
76881
+
76882
+ /***/ "../../node_modules/uuid/dist/cjs/sha1.js":
76883
+ /*!************************************************!*\
76884
+ !*** ../../node_modules/uuid/dist/cjs/sha1.js ***!
76885
+ \************************************************/
76886
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76887
+
76888
+ "use strict";
76889
+
76890
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76891
+ const crypto_1 = __webpack_require__(/*! crypto */ "crypto");
76892
+ function sha1(bytes) {
76893
+ if (Array.isArray(bytes)) {
76894
+ bytes = Buffer.from(bytes);
76880
76895
  }
76881
- return Array.isArray(object) && object.some(isPromise);
76896
+ else if (typeof bytes === 'string') {
76897
+ bytes = Buffer.from(bytes, 'utf8');
76898
+ }
76899
+ return (0, crypto_1.createHash)('sha1').update(bytes).digest();
76882
76900
  }
76901
+ exports["default"] = sha1;
76883
76902
 
76884
76903
 
76885
76904
  /***/ }),
76886
76905
 
76887
- /***/ "../../node_modules/inversify/lib/cjs/utils/binding_utils.js":
76888
- /*!*******************************************************************!*\
76889
- !*** ../../node_modules/inversify/lib/cjs/utils/binding_utils.js ***!
76890
- \*******************************************************************/
76891
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
76906
+ /***/ "../../node_modules/uuid/dist/cjs/stringify.js":
76907
+ /*!*****************************************************!*\
76908
+ !*** ../../node_modules/uuid/dist/cjs/stringify.js ***!
76909
+ \*****************************************************/
76910
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76892
76911
 
76893
76912
  "use strict";
76894
76913
 
76895
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
76896
- if (k2 === undefined) k2 = k;
76897
- var desc = Object.getOwnPropertyDescriptor(m, k);
76898
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
76899
- desc = { enumerable: true, get: function() { return m[k]; } };
76914
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76915
+ exports.unsafeStringify = void 0;
76916
+ const validate_js_1 = __webpack_require__(/*! ./validate.js */ "../../node_modules/uuid/dist/cjs/validate.js");
76917
+ const byteToHex = [];
76918
+ for (let i = 0; i < 256; ++i) {
76919
+ byteToHex.push((i + 0x100).toString(16).slice(1));
76920
+ }
76921
+ function unsafeStringify(arr, offset = 0) {
76922
+ return (byteToHex[arr[offset + 0]] +
76923
+ byteToHex[arr[offset + 1]] +
76924
+ byteToHex[arr[offset + 2]] +
76925
+ byteToHex[arr[offset + 3]] +
76926
+ '-' +
76927
+ byteToHex[arr[offset + 4]] +
76928
+ byteToHex[arr[offset + 5]] +
76929
+ '-' +
76930
+ byteToHex[arr[offset + 6]] +
76931
+ byteToHex[arr[offset + 7]] +
76932
+ '-' +
76933
+ byteToHex[arr[offset + 8]] +
76934
+ byteToHex[arr[offset + 9]] +
76935
+ '-' +
76936
+ byteToHex[arr[offset + 10]] +
76937
+ byteToHex[arr[offset + 11]] +
76938
+ byteToHex[arr[offset + 12]] +
76939
+ byteToHex[arr[offset + 13]] +
76940
+ byteToHex[arr[offset + 14]] +
76941
+ byteToHex[arr[offset + 15]]).toLowerCase();
76942
+ }
76943
+ exports.unsafeStringify = unsafeStringify;
76944
+ function stringify(arr, offset = 0) {
76945
+ const uuid = unsafeStringify(arr, offset);
76946
+ if (!(0, validate_js_1.default)(uuid)) {
76947
+ throw TypeError('Stringified UUID is invalid');
76900
76948
  }
76901
- Object.defineProperty(o, k2, desc);
76902
- }) : (function(o, m, k, k2) {
76903
- if (k2 === undefined) k2 = k;
76904
- o[k2] = m[k];
76905
- }));
76906
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
76907
- Object.defineProperty(o, "default", { enumerable: true, value: v });
76908
- }) : function(o, v) {
76909
- o["default"] = v;
76910
- });
76911
- var __importStar = (this && this.__importStar) || (function () {
76912
- var ownKeys = function(o) {
76913
- ownKeys = Object.getOwnPropertyNames || function (o) {
76914
- var ar = [];
76915
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
76916
- return ar;
76917
- };
76918
- return ownKeys(o);
76919
- };
76920
- return function (mod) {
76921
- if (mod && mod.__esModule) return mod;
76922
- var result = {};
76923
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
76924
- __setModuleDefault(result, mod);
76925
- return result;
76926
- };
76927
- })();
76949
+ return uuid;
76950
+ }
76951
+ exports["default"] = stringify;
76952
+
76953
+
76954
+ /***/ }),
76955
+
76956
+ /***/ "../../node_modules/uuid/dist/cjs/v1.js":
76957
+ /*!**********************************************!*\
76958
+ !*** ../../node_modules/uuid/dist/cjs/v1.js ***!
76959
+ \**********************************************/
76960
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76961
+
76962
+ "use strict";
76963
+
76928
76964
  Object.defineProperty(exports, "__esModule", ({ value: true }));
76929
- exports.getFactoryDetails = exports.ensureFullyBound = exports.multiBindToService = void 0;
76930
- const ERROR_MSGS = __importStar(__webpack_require__(/*! ../constants/error_msgs */ "../../node_modules/inversify/lib/cjs/constants/error_msgs.js"));
76931
- const literal_types_1 = __webpack_require__(/*! ../constants/literal_types */ "../../node_modules/inversify/lib/cjs/constants/literal_types.js");
76932
- const serialization_1 = __webpack_require__(/*! ../utils/serialization */ "../../node_modules/inversify/lib/cjs/utils/serialization.js");
76933
- const factory_type_1 = __webpack_require__(/*! ./factory_type */ "../../node_modules/inversify/lib/cjs/utils/factory_type.js");
76934
- const multiBindToService = (container) => (service) => (...types) => {
76935
- types.forEach((t) => {
76936
- container.bind(t).toService(service);
76937
- });
76938
- };
76939
- exports.multiBindToService = multiBindToService;
76940
- const ensureFullyBound = (binding) => {
76941
- let boundValue = null;
76942
- // eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
76943
- switch (binding.type) {
76944
- case literal_types_1.BindingTypeEnum.ConstantValue:
76945
- case literal_types_1.BindingTypeEnum.Function:
76946
- boundValue = binding.cache;
76947
- break;
76948
- case literal_types_1.BindingTypeEnum.Constructor:
76949
- case literal_types_1.BindingTypeEnum.Instance:
76950
- boundValue = binding.implementationType;
76951
- break;
76952
- case literal_types_1.BindingTypeEnum.DynamicValue:
76953
- boundValue = binding.dynamicValue;
76954
- break;
76955
- case literal_types_1.BindingTypeEnum.Provider:
76956
- boundValue = binding.provider;
76957
- break;
76958
- case literal_types_1.BindingTypeEnum.Factory:
76959
- boundValue = binding.factory;
76960
- break;
76965
+ exports.updateV1State = void 0;
76966
+ const rng_js_1 = __webpack_require__(/*! ./rng.js */ "../../node_modules/uuid/dist/cjs/rng.js");
76967
+ const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
76968
+ const _state = {};
76969
+ function v1(options, buf, offset) {
76970
+ let bytes;
76971
+ const isV6 = options?._v6 ?? false;
76972
+ if (options) {
76973
+ const optionsKeys = Object.keys(options);
76974
+ if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') {
76975
+ options = undefined;
76976
+ }
76961
76977
  }
76962
- if (boundValue === null) {
76963
- // The user probably created a binding but didn't finish it
76964
- // e.g. container.bind<T>('Something'); missing BindingToSyntax
76965
- const serviceIdentifierAsString = (0, serialization_1.getServiceIdentifierAsString)(binding.serviceIdentifier);
76966
- throw new Error(`${ERROR_MSGS.INVALID_BINDING_TYPE} ${serviceIdentifierAsString}`);
76978
+ if (options) {
76979
+ bytes = v1Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset);
76967
76980
  }
76968
- };
76969
- exports.ensureFullyBound = ensureFullyBound;
76970
- const getFactoryDetails = (binding) => {
76971
- switch (binding.type) {
76972
- case literal_types_1.BindingTypeEnum.Factory:
76973
- return { factory: binding.factory, factoryType: factory_type_1.FactoryType.Factory };
76974
- case literal_types_1.BindingTypeEnum.Provider:
76975
- return { factory: binding.provider, factoryType: factory_type_1.FactoryType.Provider };
76976
- case literal_types_1.BindingTypeEnum.DynamicValue:
76977
- return {
76978
- factory: binding.dynamicValue,
76979
- factoryType: factory_type_1.FactoryType.DynamicValue,
76980
- };
76981
- default:
76982
- throw new Error(`Unexpected factory type ${binding.type}`);
76981
+ else {
76982
+ const now = Date.now();
76983
+ const rnds = (0, rng_js_1.default)();
76984
+ updateV1State(_state, now, rnds);
76985
+ bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset);
76983
76986
  }
76984
- };
76985
- exports.getFactoryDetails = getFactoryDetails;
76987
+ return buf ?? (0, stringify_js_1.unsafeStringify)(bytes);
76988
+ }
76989
+ function updateV1State(state, now, rnds) {
76990
+ state.msecs ??= -Infinity;
76991
+ state.nsecs ??= 0;
76992
+ if (now === state.msecs) {
76993
+ state.nsecs++;
76994
+ if (state.nsecs >= 10000) {
76995
+ state.node = undefined;
76996
+ state.nsecs = 0;
76997
+ }
76998
+ }
76999
+ else if (now > state.msecs) {
77000
+ state.nsecs = 0;
77001
+ }
77002
+ else if (now < state.msecs) {
77003
+ state.node = undefined;
77004
+ }
77005
+ if (!state.node) {
77006
+ state.node = rnds.slice(10, 16);
77007
+ state.node[0] |= 0x01;
77008
+ state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff;
77009
+ }
77010
+ state.msecs = now;
77011
+ return state;
77012
+ }
77013
+ exports.updateV1State = updateV1State;
77014
+ function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) {
77015
+ if (rnds.length < 16) {
77016
+ throw new Error('Random bytes length must be >= 16');
77017
+ }
77018
+ if (!buf) {
77019
+ buf = new Uint8Array(16);
77020
+ offset = 0;
77021
+ }
77022
+ else {
77023
+ if (offset < 0 || offset + 16 > buf.length) {
77024
+ throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
77025
+ }
77026
+ }
77027
+ msecs ??= Date.now();
77028
+ nsecs ??= 0;
77029
+ clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff;
77030
+ node ??= rnds.slice(10, 16);
77031
+ msecs += 12219292800000;
77032
+ const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
77033
+ buf[offset++] = (tl >>> 24) & 0xff;
77034
+ buf[offset++] = (tl >>> 16) & 0xff;
77035
+ buf[offset++] = (tl >>> 8) & 0xff;
77036
+ buf[offset++] = tl & 0xff;
77037
+ const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff;
77038
+ buf[offset++] = (tmh >>> 8) & 0xff;
77039
+ buf[offset++] = tmh & 0xff;
77040
+ buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10;
77041
+ buf[offset++] = (tmh >>> 16) & 0xff;
77042
+ buf[offset++] = (clockseq >>> 8) | 0x80;
77043
+ buf[offset++] = clockseq & 0xff;
77044
+ for (let n = 0; n < 6; ++n) {
77045
+ buf[offset++] = node[n];
77046
+ }
77047
+ return buf;
77048
+ }
77049
+ exports["default"] = v1;
76986
77050
 
76987
77051
 
76988
77052
  /***/ }),
76989
77053
 
76990
- /***/ "../../node_modules/inversify/lib/cjs/utils/clonable.js":
76991
- /*!**************************************************************!*\
76992
- !*** ../../node_modules/inversify/lib/cjs/utils/clonable.js ***!
76993
- \**************************************************************/
76994
- /***/ ((__unused_webpack_module, exports) => {
77054
+ /***/ "../../node_modules/uuid/dist/cjs/v1ToV6.js":
77055
+ /*!**************************************************!*\
77056
+ !*** ../../node_modules/uuid/dist/cjs/v1ToV6.js ***!
77057
+ \**************************************************/
77058
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76995
77059
 
76996
77060
  "use strict";
76997
77061
 
76998
77062
  Object.defineProperty(exports, "__esModule", ({ value: true }));
76999
- exports.isClonable = isClonable;
77000
- function isClonable(obj) {
77001
- return (typeof obj === 'object' &&
77002
- obj !== null &&
77003
- 'clone' in obj &&
77004
- typeof obj.clone === 'function');
77063
+ const parse_js_1 = __webpack_require__(/*! ./parse.js */ "../../node_modules/uuid/dist/cjs/parse.js");
77064
+ const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
77065
+ function v1ToV6(uuid) {
77066
+ const v1Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid;
77067
+ const v6Bytes = _v1ToV6(v1Bytes);
77068
+ return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes;
77069
+ }
77070
+ exports["default"] = v1ToV6;
77071
+ function _v1ToV6(v1Bytes) {
77072
+ return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]);
77005
77073
  }
77006
77074
 
77007
77075
 
77008
77076
  /***/ }),
77009
77077
 
77010
- /***/ "../../node_modules/inversify/lib/cjs/utils/exceptions.js":
77011
- /*!****************************************************************!*\
77012
- !*** ../../node_modules/inversify/lib/cjs/utils/exceptions.js ***!
77013
- \****************************************************************/
77014
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
77078
+ /***/ "../../node_modules/uuid/dist/cjs/v3.js":
77079
+ /*!**********************************************!*\
77080
+ !*** ../../node_modules/uuid/dist/cjs/v3.js ***!
77081
+ \**********************************************/
77082
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77015
77083
 
77016
77084
  "use strict";
77017
77085
 
77018
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
77019
- if (k2 === undefined) k2 = k;
77020
- var desc = Object.getOwnPropertyDescriptor(m, k);
77021
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
77022
- desc = { enumerable: true, get: function() { return m[k]; } };
77023
- }
77024
- Object.defineProperty(o, k2, desc);
77025
- }) : (function(o, m, k, k2) {
77026
- if (k2 === undefined) k2 = k;
77027
- o[k2] = m[k];
77028
- }));
77029
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
77030
- Object.defineProperty(o, "default", { enumerable: true, value: v });
77031
- }) : function(o, v) {
77032
- o["default"] = v;
77033
- });
77034
- var __importStar = (this && this.__importStar) || (function () {
77035
- var ownKeys = function(o) {
77036
- ownKeys = Object.getOwnPropertyNames || function (o) {
77037
- var ar = [];
77038
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
77039
- return ar;
77040
- };
77041
- return ownKeys(o);
77042
- };
77043
- return function (mod) {
77044
- if (mod && mod.__esModule) return mod;
77045
- var result = {};
77046
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
77047
- __setModuleDefault(result, mod);
77048
- return result;
77049
- };
77050
- })();
77051
77086
  Object.defineProperty(exports, "__esModule", ({ value: true }));
77052
- exports.tryAndThrowErrorIfStackOverflow = void 0;
77053
- exports.isStackOverflowException = isStackOverflowException;
77054
- const ERROR_MSGS = __importStar(__webpack_require__(/*! ../constants/error_msgs */ "../../node_modules/inversify/lib/cjs/constants/error_msgs.js"));
77055
- function isStackOverflowException(error) {
77056
- return (error instanceof RangeError ||
77057
- error.message === ERROR_MSGS.STACK_OVERFLOW);
77087
+ exports.URL = exports.DNS = void 0;
77088
+ const md5_js_1 = __webpack_require__(/*! ./md5.js */ "../../node_modules/uuid/dist/cjs/md5.js");
77089
+ const v35_js_1 = __webpack_require__(/*! ./v35.js */ "../../node_modules/uuid/dist/cjs/v35.js");
77090
+ var v35_js_2 = __webpack_require__(/*! ./v35.js */ "../../node_modules/uuid/dist/cjs/v35.js");
77091
+ Object.defineProperty(exports, "DNS", ({ enumerable: true, get: function () { return v35_js_2.DNS; } }));
77092
+ Object.defineProperty(exports, "URL", ({ enumerable: true, get: function () { return v35_js_2.URL; } }));
77093
+ function v3(value, namespace, buf, offset) {
77094
+ return (0, v35_js_1.default)(0x30, md5_js_1.default, value, namespace, buf, offset);
77058
77095
  }
77059
- const tryAndThrowErrorIfStackOverflow = (fn, errorCallback) => {
77060
- try {
77061
- return fn();
77096
+ v3.DNS = v35_js_1.DNS;
77097
+ v3.URL = v35_js_1.URL;
77098
+ exports["default"] = v3;
77099
+
77100
+
77101
+ /***/ }),
77102
+
77103
+ /***/ "../../node_modules/uuid/dist/cjs/v35.js":
77104
+ /*!***********************************************!*\
77105
+ !*** ../../node_modules/uuid/dist/cjs/v35.js ***!
77106
+ \***********************************************/
77107
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77108
+
77109
+ "use strict";
77110
+
77111
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
77112
+ exports.URL = exports.DNS = exports.stringToBytes = void 0;
77113
+ const parse_js_1 = __webpack_require__(/*! ./parse.js */ "../../node_modules/uuid/dist/cjs/parse.js");
77114
+ const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
77115
+ function stringToBytes(str) {
77116
+ str = unescape(encodeURIComponent(str));
77117
+ const bytes = new Uint8Array(str.length);
77118
+ for (let i = 0; i < str.length; ++i) {
77119
+ bytes[i] = str.charCodeAt(i);
77120
+ }
77121
+ return bytes;
77122
+ }
77123
+ exports.stringToBytes = stringToBytes;
77124
+ exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
77125
+ exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
77126
+ function v35(version, hash, value, namespace, buf, offset) {
77127
+ const valueBytes = typeof value === 'string' ? stringToBytes(value) : value;
77128
+ const namespaceBytes = typeof namespace === 'string' ? (0, parse_js_1.default)(namespace) : namespace;
77129
+ if (typeof namespace === 'string') {
77130
+ namespace = (0, parse_js_1.default)(namespace);
77062
77131
  }
77063
- catch (error) {
77064
- if (isStackOverflowException(error)) {
77065
- throw errorCallback();
77132
+ if (namespace?.length !== 16) {
77133
+ throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
77134
+ }
77135
+ let bytes = new Uint8Array(16 + valueBytes.length);
77136
+ bytes.set(namespaceBytes);
77137
+ bytes.set(valueBytes, namespaceBytes.length);
77138
+ bytes = hash(bytes);
77139
+ bytes[6] = (bytes[6] & 0x0f) | version;
77140
+ bytes[8] = (bytes[8] & 0x3f) | 0x80;
77141
+ if (buf) {
77142
+ offset = offset || 0;
77143
+ for (let i = 0; i < 16; ++i) {
77144
+ buf[offset + i] = bytes[i];
77066
77145
  }
77067
- throw error;
77146
+ return buf;
77068
77147
  }
77069
- };
77070
- exports.tryAndThrowErrorIfStackOverflow = tryAndThrowErrorIfStackOverflow;
77148
+ return (0, stringify_js_1.unsafeStringify)(bytes);
77149
+ }
77150
+ exports["default"] = v35;
77071
77151
 
77072
77152
 
77073
77153
  /***/ }),
77074
77154
 
77075
- /***/ "../../node_modules/inversify/lib/cjs/utils/factory_type.js":
77076
- /*!******************************************************************!*\
77077
- !*** ../../node_modules/inversify/lib/cjs/utils/factory_type.js ***!
77078
- \******************************************************************/
77079
- /***/ ((__unused_webpack_module, exports) => {
77155
+ /***/ "../../node_modules/uuid/dist/cjs/v4.js":
77156
+ /*!**********************************************!*\
77157
+ !*** ../../node_modules/uuid/dist/cjs/v4.js ***!
77158
+ \**********************************************/
77159
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77080
77160
 
77081
77161
  "use strict";
77082
77162
 
77083
77163
  Object.defineProperty(exports, "__esModule", ({ value: true }));
77084
- exports.FactoryType = void 0;
77085
- var FactoryType;
77086
- (function (FactoryType) {
77087
- FactoryType["DynamicValue"] = "toDynamicValue";
77088
- FactoryType["Factory"] = "toFactory";
77089
- FactoryType["Provider"] = "toProvider";
77090
- })(FactoryType || (exports.FactoryType = FactoryType = {}));
77164
+ const native_js_1 = __webpack_require__(/*! ./native.js */ "../../node_modules/uuid/dist/cjs/native.js");
77165
+ const rng_js_1 = __webpack_require__(/*! ./rng.js */ "../../node_modules/uuid/dist/cjs/rng.js");
77166
+ const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
77167
+ function v4(options, buf, offset) {
77168
+ if (native_js_1.default.randomUUID && !buf && !options) {
77169
+ return native_js_1.default.randomUUID();
77170
+ }
77171
+ options = options || {};
77172
+ const rnds = options.random ?? options.rng?.() ?? (0, rng_js_1.default)();
77173
+ if (rnds.length < 16) {
77174
+ throw new Error('Random bytes length must be >= 16');
77175
+ }
77176
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
77177
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
77178
+ if (buf) {
77179
+ offset = offset || 0;
77180
+ if (offset < 0 || offset + 16 > buf.length) {
77181
+ throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
77182
+ }
77183
+ for (let i = 0; i < 16; ++i) {
77184
+ buf[offset + i] = rnds[i];
77185
+ }
77186
+ return buf;
77187
+ }
77188
+ return (0, stringify_js_1.unsafeStringify)(rnds);
77189
+ }
77190
+ exports["default"] = v4;
77091
77191
 
77092
77192
 
77093
77193
  /***/ }),
77094
77194
 
77095
- /***/ "../../node_modules/inversify/lib/cjs/utils/get_base_type.js":
77096
- /*!*******************************************************************!*\
77097
- !*** ../../node_modules/inversify/lib/cjs/utils/get_base_type.js ***!
77098
- \*******************************************************************/
77099
- /***/ ((__unused_webpack_module, exports) => {
77195
+ /***/ "../../node_modules/uuid/dist/cjs/v5.js":
77196
+ /*!**********************************************!*\
77197
+ !*** ../../node_modules/uuid/dist/cjs/v5.js ***!
77198
+ \**********************************************/
77199
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77100
77200
 
77101
77201
  "use strict";
77102
77202
 
77103
77203
  Object.defineProperty(exports, "__esModule", ({ value: true }));
77104
- exports.getBaseType = getBaseType;
77105
- // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
77106
- function getBaseType(type) {
77107
- const prototype = Object.getPrototypeOf(type.prototype);
77108
- const baseType = prototype?.constructor;
77109
- return baseType;
77204
+ exports.URL = exports.DNS = void 0;
77205
+ const sha1_js_1 = __webpack_require__(/*! ./sha1.js */ "../../node_modules/uuid/dist/cjs/sha1.js");
77206
+ const v35_js_1 = __webpack_require__(/*! ./v35.js */ "../../node_modules/uuid/dist/cjs/v35.js");
77207
+ var v35_js_2 = __webpack_require__(/*! ./v35.js */ "../../node_modules/uuid/dist/cjs/v35.js");
77208
+ Object.defineProperty(exports, "DNS", ({ enumerable: true, get: function () { return v35_js_2.DNS; } }));
77209
+ Object.defineProperty(exports, "URL", ({ enumerable: true, get: function () { return v35_js_2.URL; } }));
77210
+ function v5(value, namespace, buf, offset) {
77211
+ return (0, v35_js_1.default)(0x50, sha1_js_1.default, value, namespace, buf, offset);
77110
77212
  }
77213
+ v5.DNS = v35_js_1.DNS;
77214
+ v5.URL = v35_js_1.URL;
77215
+ exports["default"] = v5;
77111
77216
 
77112
77217
 
77113
77218
  /***/ }),
77114
77219
 
77115
- /***/ "../../node_modules/inversify/lib/cjs/utils/id.js":
77116
- /*!********************************************************!*\
77117
- !*** ../../node_modules/inversify/lib/cjs/utils/id.js ***!
77118
- \********************************************************/
77119
- /***/ ((__unused_webpack_module, exports) => {
77220
+ /***/ "../../node_modules/uuid/dist/cjs/v6.js":
77221
+ /*!**********************************************!*\
77222
+ !*** ../../node_modules/uuid/dist/cjs/v6.js ***!
77223
+ \**********************************************/
77224
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77120
77225
 
77121
77226
  "use strict";
77122
77227
 
77123
77228
  Object.defineProperty(exports, "__esModule", ({ value: true }));
77124
- exports.id = id;
77125
- let idCounter = 0;
77126
- function id() {
77127
- return idCounter++;
77229
+ const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
77230
+ const v1_js_1 = __webpack_require__(/*! ./v1.js */ "../../node_modules/uuid/dist/cjs/v1.js");
77231
+ const v1ToV6_js_1 = __webpack_require__(/*! ./v1ToV6.js */ "../../node_modules/uuid/dist/cjs/v1ToV6.js");
77232
+ function v6(options, buf, offset) {
77233
+ options ??= {};
77234
+ offset ??= 0;
77235
+ let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16));
77236
+ bytes = (0, v1ToV6_js_1.default)(bytes);
77237
+ if (buf) {
77238
+ for (let i = 0; i < 16; i++) {
77239
+ buf[offset + i] = bytes[i];
77240
+ }
77241
+ return buf;
77242
+ }
77243
+ return (0, stringify_js_1.unsafeStringify)(bytes);
77128
77244
  }
77245
+ exports["default"] = v6;
77129
77246
 
77130
77247
 
77131
77248
  /***/ }),
77132
77249
 
77133
- /***/ "../../node_modules/inversify/lib/cjs/utils/js.js":
77134
- /*!********************************************************!*\
77135
- !*** ../../node_modules/inversify/lib/cjs/utils/js.js ***!
77136
- \********************************************************/
77137
- /***/ ((__unused_webpack_module, exports) => {
77250
+ /***/ "../../node_modules/uuid/dist/cjs/v6ToV1.js":
77251
+ /*!**************************************************!*\
77252
+ !*** ../../node_modules/uuid/dist/cjs/v6ToV1.js ***!
77253
+ \**************************************************/
77254
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77138
77255
 
77139
77256
  "use strict";
77140
77257
 
77141
77258
  Object.defineProperty(exports, "__esModule", ({ value: true }));
77142
- exports.getFirstArrayDuplicate = getFirstArrayDuplicate;
77143
- function getFirstArrayDuplicate(array) {
77144
- const seenValues = new Set();
77145
- for (const entry of array) {
77146
- if (seenValues.has(entry)) {
77147
- return entry;
77148
- }
77149
- else {
77150
- seenValues.add(entry);
77151
- }
77152
- }
77153
- return undefined;
77259
+ const parse_js_1 = __webpack_require__(/*! ./parse.js */ "../../node_modules/uuid/dist/cjs/parse.js");
77260
+ const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
77261
+ function v6ToV1(uuid) {
77262
+ const v6Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid;
77263
+ const v1Bytes = _v6ToV1(v6Bytes);
77264
+ return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes;
77265
+ }
77266
+ exports["default"] = v6ToV1;
77267
+ function _v6ToV1(v6Bytes) {
77268
+ return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]);
77154
77269
  }
77155
77270
 
77156
77271
 
77157
77272
  /***/ }),
77158
77273
 
77159
- /***/ "../../node_modules/inversify/lib/cjs/utils/serialization.js":
77160
- /*!*******************************************************************!*\
77161
- !*** ../../node_modules/inversify/lib/cjs/utils/serialization.js ***!
77162
- \*******************************************************************/
77163
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
77274
+ /***/ "../../node_modules/uuid/dist/cjs/v7.js":
77275
+ /*!**********************************************!*\
77276
+ !*** ../../node_modules/uuid/dist/cjs/v7.js ***!
77277
+ \**********************************************/
77278
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77164
77279
 
77165
77280
  "use strict";
77166
77281
 
77167
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
77168
- if (k2 === undefined) k2 = k;
77169
- var desc = Object.getOwnPropertyDescriptor(m, k);
77170
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
77171
- desc = { enumerable: true, get: function() { return m[k]; } };
77172
- }
77173
- Object.defineProperty(o, k2, desc);
77174
- }) : (function(o, m, k, k2) {
77175
- if (k2 === undefined) k2 = k;
77176
- o[k2] = m[k];
77177
- }));
77178
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
77179
- Object.defineProperty(o, "default", { enumerable: true, value: v });
77180
- }) : function(o, v) {
77181
- o["default"] = v;
77182
- });
77183
- var __importStar = (this && this.__importStar) || (function () {
77184
- var ownKeys = function(o) {
77185
- ownKeys = Object.getOwnPropertyNames || function (o) {
77186
- var ar = [];
77187
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
77188
- return ar;
77189
- };
77190
- return ownKeys(o);
77191
- };
77192
- return function (mod) {
77193
- if (mod && mod.__esModule) return mod;
77194
- var result = {};
77195
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
77196
- __setModuleDefault(result, mod);
77197
- return result;
77198
- };
77199
- })();
77200
77282
  Object.defineProperty(exports, "__esModule", ({ value: true }));
77201
- exports.getFunctionName = getFunctionName;
77202
- exports.getServiceIdentifierAsString = getServiceIdentifierAsString;
77203
- exports.listRegisteredBindingsForServiceIdentifier = listRegisteredBindingsForServiceIdentifier;
77204
- exports.listMetadataForTarget = listMetadataForTarget;
77205
- exports.circularDependencyToException = circularDependencyToException;
77206
- exports.getSymbolDescription = getSymbolDescription;
77207
- const ERROR_MSGS = __importStar(__webpack_require__(/*! ../constants/error_msgs */ "../../node_modules/inversify/lib/cjs/constants/error_msgs.js"));
77208
- function getServiceIdentifierAsString(serviceIdentifier) {
77209
- if (typeof serviceIdentifier === 'function') {
77210
- return serviceIdentifier.name;
77211
- }
77212
- else if (typeof serviceIdentifier === 'symbol') {
77213
- return serviceIdentifier.toString();
77283
+ exports.updateV7State = void 0;
77284
+ const rng_js_1 = __webpack_require__(/*! ./rng.js */ "../../node_modules/uuid/dist/cjs/rng.js");
77285
+ const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
77286
+ const _state = {};
77287
+ function v7(options, buf, offset) {
77288
+ let bytes;
77289
+ if (options) {
77290
+ bytes = v7Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.seq, buf, offset);
77214
77291
  }
77215
77292
  else {
77216
- return serviceIdentifier;
77217
- }
77218
- }
77219
- function listRegisteredBindingsForServiceIdentifier(container, serviceIdentifier, getBindings) {
77220
- let registeredBindingsList = '';
77221
- const registeredBindings = getBindings(container, serviceIdentifier);
77222
- if (registeredBindings.length !== 0) {
77223
- registeredBindingsList = '\nRegistered bindings:';
77224
- registeredBindings.forEach((binding) => {
77225
- // Use 'Object as name of constant value injections'
77226
- let name = 'Object';
77227
- // Use function name if available
77228
- if (binding.implementationType !== null) {
77229
- name = getFunctionName(binding.implementationType);
77230
- }
77231
- registeredBindingsList = `${registeredBindingsList}\n ${name}`;
77232
- if (binding.constraint.metaData) {
77233
- // eslint-disable-next-line @typescript-eslint/no-base-to-string, @typescript-eslint/restrict-template-expressions
77234
- registeredBindingsList = `${registeredBindingsList} - ${binding.constraint.metaData}`;
77235
- }
77236
- });
77293
+ const now = Date.now();
77294
+ const rnds = (0, rng_js_1.default)();
77295
+ updateV7State(_state, now, rnds);
77296
+ bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset);
77237
77297
  }
77238
- return registeredBindingsList;
77298
+ return buf ?? (0, stringify_js_1.unsafeStringify)(bytes);
77239
77299
  }
77240
- function alreadyDependencyChain(request, serviceIdentifier) {
77241
- if (request.parentRequest === null) {
77242
- return false;
77243
- }
77244
- else if (request.parentRequest.serviceIdentifier === serviceIdentifier) {
77245
- return true;
77300
+ function updateV7State(state, now, rnds) {
77301
+ state.msecs ??= -Infinity;
77302
+ state.seq ??= 0;
77303
+ if (now > state.msecs) {
77304
+ state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
77305
+ state.msecs = now;
77246
77306
  }
77247
77307
  else {
77248
- return alreadyDependencyChain(request.parentRequest, serviceIdentifier);
77249
- }
77250
- }
77251
- function dependencyChainToString(request) {
77252
- function _createStringArr(req, result = []) {
77253
- const serviceIdentifier = getServiceIdentifierAsString(req.serviceIdentifier);
77254
- result.push(serviceIdentifier);
77255
- if (req.parentRequest !== null) {
77256
- return _createStringArr(req.parentRequest, result);
77308
+ state.seq = (state.seq + 1) | 0;
77309
+ if (state.seq === 0) {
77310
+ state.msecs++;
77257
77311
  }
77258
- return result;
77259
77312
  }
77260
- const stringArr = _createStringArr(request);
77261
- return stringArr.reverse().join(' --> ');
77262
- }
77263
- function circularDependencyToException(request) {
77264
- request.childRequests.forEach((childRequest) => {
77265
- if (alreadyDependencyChain(request, childRequest.serviceIdentifier)) {
77266
- const services = dependencyChainToString(childRequest);
77267
- throw new Error(`${ERROR_MSGS.CIRCULAR_DEPENDENCY} ${services}`);
77268
- }
77269
- else {
77270
- circularDependencyToException(childRequest);
77271
- }
77272
- });
77313
+ return state;
77273
77314
  }
77274
- function listMetadataForTarget(serviceIdentifierString, target) {
77275
- if (target.isTagged() || target.isNamed()) {
77276
- let m = '';
77277
- const namedTag = target.getNamedTag();
77278
- const otherTags = target.getCustomTags();
77279
- if (namedTag !== null) {
77280
- m += stringifyMetadata(namedTag) + '\n';
77281
- }
77282
- if (otherTags !== null) {
77283
- otherTags.forEach((tag) => {
77284
- m += stringifyMetadata(tag) + '\n';
77285
- });
77286
- }
77287
- return ` ${serviceIdentifierString}\n ${serviceIdentifierString} - ${m}`;
77288
- }
77289
- else {
77290
- return ` ${serviceIdentifierString}`;
77315
+ exports.updateV7State = updateV7State;
77316
+ function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
77317
+ if (rnds.length < 16) {
77318
+ throw new Error('Random bytes length must be >= 16');
77291
77319
  }
77292
- }
77293
- function getFunctionName(func) {
77294
- if (func.name != null && func.name !== '') {
77295
- return func.name;
77320
+ if (!buf) {
77321
+ buf = new Uint8Array(16);
77322
+ offset = 0;
77296
77323
  }
77297
77324
  else {
77298
- // eslint-disable-next-line @typescript-eslint/no-base-to-string
77299
- const name = func.toString();
77300
- const match = name.match(/^function\s*([^\s(]+)/);
77301
- return match === null
77302
- ? `Anonymous function: ${name}`
77303
- : match[1];
77304
- }
77325
+ if (offset < 0 || offset + 16 > buf.length) {
77326
+ throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
77327
+ }
77328
+ }
77329
+ msecs ??= Date.now();
77330
+ seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
77331
+ buf[offset++] = (msecs / 0x10000000000) & 0xff;
77332
+ buf[offset++] = (msecs / 0x100000000) & 0xff;
77333
+ buf[offset++] = (msecs / 0x1000000) & 0xff;
77334
+ buf[offset++] = (msecs / 0x10000) & 0xff;
77335
+ buf[offset++] = (msecs / 0x100) & 0xff;
77336
+ buf[offset++] = msecs & 0xff;
77337
+ buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f);
77338
+ buf[offset++] = (seq >>> 20) & 0xff;
77339
+ buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f);
77340
+ buf[offset++] = (seq >>> 6) & 0xff;
77341
+ buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03);
77342
+ buf[offset++] = rnds[11];
77343
+ buf[offset++] = rnds[12];
77344
+ buf[offset++] = rnds[13];
77345
+ buf[offset++] = rnds[14];
77346
+ buf[offset++] = rnds[15];
77347
+ return buf;
77305
77348
  }
77306
- function getSymbolDescription(symbol) {
77307
- // eslint-disable-next-line @typescript-eslint/no-magic-numbers
77308
- return symbol.toString().slice(7, -1);
77349
+ exports["default"] = v7;
77350
+
77351
+
77352
+ /***/ }),
77353
+
77354
+ /***/ "../../node_modules/uuid/dist/cjs/validate.js":
77355
+ /*!****************************************************!*\
77356
+ !*** ../../node_modules/uuid/dist/cjs/validate.js ***!
77357
+ \****************************************************/
77358
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77359
+
77360
+ "use strict";
77361
+
77362
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
77363
+ const regex_js_1 = __webpack_require__(/*! ./regex.js */ "../../node_modules/uuid/dist/cjs/regex.js");
77364
+ function validate(uuid) {
77365
+ return typeof uuid === 'string' && regex_js_1.default.test(uuid);
77309
77366
  }
77310
- function stringifyMetadata(metadata) {
77311
- return `{"key":"${metadata.key.toString()}","value":"${metadata.value.toString()}"}`;
77367
+ exports["default"] = validate;
77368
+
77369
+
77370
+ /***/ }),
77371
+
77372
+ /***/ "../../node_modules/uuid/dist/cjs/version.js":
77373
+ /*!***************************************************!*\
77374
+ !*** ../../node_modules/uuid/dist/cjs/version.js ***!
77375
+ \***************************************************/
77376
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
77377
+
77378
+ "use strict";
77379
+
77380
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
77381
+ const validate_js_1 = __webpack_require__(/*! ./validate.js */ "../../node_modules/uuid/dist/cjs/validate.js");
77382
+ function version(uuid) {
77383
+ if (!(0, validate_js_1.default)(uuid)) {
77384
+ throw TypeError('Invalid UUID');
77385
+ }
77386
+ return parseInt(uuid.slice(14, 15), 16);
77312
77387
  }
77388
+ exports["default"] = version;
77313
77389
 
77314
77390
 
77315
77391
  /***/ }),