@eclipse-glsp-examples/workflow-server-bundled 2.6.0-next.2 → 2.6.0
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.
- package/package.json +2 -2
- package/wf-glsp-server-node.js +1483 -1405
- package/wf-glsp-server-node.js.map +1 -1
package/wf-glsp-server-node.js
CHANGED
|
@@ -45902,719 +45902,115 @@ module.exports = __webpack_require__(/*! util */ "util").deprecate;
|
|
|
45902
45902
|
|
|
45903
45903
|
/***/ }),
|
|
45904
45904
|
|
|
45905
|
-
/***/ "../../node_modules/
|
|
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/
|
|
45907
|
+
!*** ../../node_modules/vscode-jsonrpc/browser.js ***!
|
|
45948
45908
|
\****************************************************/
|
|
45949
|
-
/***/ ((
|
|
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
|
-
|
|
45982
|
-
|
|
45983
|
-
|
|
45984
|
-
|
|
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
|
-
|
|
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/
|
|
46010
|
-
|
|
46011
|
-
!*** ../../node_modules/
|
|
46012
|
-
|
|
46013
|
-
/***/ ((__unused_webpack_module,
|
|
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
|
-
|
|
46047
|
-
|
|
46048
|
-
|
|
46049
|
-
|
|
46050
|
-
|
|
46051
|
-
|
|
46052
|
-
|
|
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
|
-
|
|
46056
|
-
|
|
46057
|
-
|
|
46058
|
-
|
|
46059
|
-
|
|
46060
|
-
|
|
46061
|
-
|
|
46062
|
-
|
|
46063
|
-
|
|
46064
|
-
|
|
46065
|
-
|
|
46066
|
-
|
|
46067
|
-
|
|
46068
|
-
|
|
46069
|
-
|
|
46070
|
-
|
|
46071
|
-
|
|
46072
|
-
|
|
46073
|
-
|
|
46074
|
-
|
|
46075
|
-
|
|
46076
|
-
|
|
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
|
-
|
|
46103
|
-
|
|
46104
|
-
|
|
46105
|
-
|
|
46106
|
-
|
|
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/
|
|
46132
|
-
|
|
46133
|
-
!*** ../../node_modules/
|
|
46134
|
-
|
|
46135
|
-
/***/ ((__unused_webpack_module,
|
|
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/
|
|
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.
|
|
@@ -63166,7 +62562,7 @@ let ComputedBoundsActionHandler = class ComputedBoundsActionHandler {
|
|
|
63166
62562
|
const model = this.modelState.root;
|
|
63167
62563
|
if (action.revision === model.revision) {
|
|
63168
62564
|
this.applyBounds(model, action);
|
|
63169
|
-
return this.submissionHandler.submitModelDirectly();
|
|
62565
|
+
return this.submissionHandler.submitModelDirectly(undefined, protocol_1.LayoutOperation.create([], { canvasBounds: action.canvasBounds, viewport: action.viewport }));
|
|
63170
62566
|
}
|
|
63171
62567
|
return [];
|
|
63172
62568
|
}
|
|
@@ -63896,9 +63292,10 @@ let ModelSubmissionHandler = class ModelSubmissionHandler {
|
|
|
63896
63292
|
* to the `ActionDispatcher`, or simply returned as the result of an `ActionHandler.execute()` method.
|
|
63897
63293
|
*
|
|
63898
63294
|
* @param reason The optional reason that caused the model update.
|
|
63295
|
+
* @param layout The optional layout operation that carries the information for auto-layout.
|
|
63899
63296
|
* @returns A list of actions to be processed in order to submit the model.
|
|
63900
63297
|
*/
|
|
63901
|
-
submitModel(reason) {
|
|
63298
|
+
submitModel(reason, layout) {
|
|
63902
63299
|
this.modelFactory.createModel();
|
|
63903
63300
|
const revision = this.requestModelAction ? 0 : this.modelState.root.revision + 1;
|
|
63904
63301
|
this.modelState.root.revision = revision;
|
|
@@ -63906,7 +63303,7 @@ let ModelSubmissionHandler = class ModelSubmissionHandler {
|
|
|
63906
63303
|
const root = this.serializeGModel();
|
|
63907
63304
|
return [protocol_1.RequestBoundsAction.create(root), protocol_1.SetDirtyStateAction.create(this.commandStack.isDirty, { reason })];
|
|
63908
63305
|
}
|
|
63909
|
-
return this.submitModelDirectly(reason);
|
|
63306
|
+
return this.submitModelDirectly(reason, layout);
|
|
63910
63307
|
}
|
|
63911
63308
|
/**
|
|
63912
63309
|
* Returns a list of actions to directly update the client-side model without any server- or client-side layouting.
|
|
@@ -63920,11 +63317,12 @@ let ModelSubmissionHandler = class ModelSubmissionHandler {
|
|
|
63920
63317
|
* `ActionHandler.execute()` method.
|
|
63921
63318
|
*
|
|
63922
63319
|
* @param reason The optional reason that caused the model update.
|
|
63320
|
+
* @param layout The optional layout operation that carries the information for auto-layout.
|
|
63923
63321
|
* @returns A list of actions to be processed in order to submit the model.
|
|
63924
63322
|
*/
|
|
63925
|
-
async submitModelDirectly(reason) {
|
|
63323
|
+
async submitModelDirectly(reason, layout) {
|
|
63926
63324
|
if (this.diagramConfiguration.layoutKind === diagram_configuration_1.ServerLayoutKind.AUTOMATIC && this.layoutEngine) {
|
|
63927
|
-
await this.layoutEngine.layout();
|
|
63325
|
+
await this.layoutEngine.layout(layout);
|
|
63928
63326
|
}
|
|
63929
63327
|
const root = this.serializeGModel();
|
|
63930
63328
|
const result = [];
|
|
@@ -64781,7 +64179,7 @@ exports.DefaultProgressService = exports.ProgressService = void 0;
|
|
|
64781
64179
|
********************************************************************************/
|
|
64782
64180
|
const protocol_1 = __webpack_require__(/*! @eclipse-glsp/protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/index.js");
|
|
64783
64181
|
const inversify_1 = __webpack_require__(/*! inversify */ "../../node_modules/inversify/lib/cjs/index.js");
|
|
64784
|
-
const uuid = __webpack_require__(/*! uuid */ "../../node_modules/uuid/dist/
|
|
64182
|
+
const uuid = __webpack_require__(/*! uuid */ "../../node_modules/uuid/dist/cjs/index.js");
|
|
64785
64183
|
const action_dispatcher_1 = __webpack_require__(/*! ../../actions/action-dispatcher */ "../../packages/server/lib/common/actions/action-dispatcher.js");
|
|
64786
64184
|
exports.ProgressService = Symbol('ProgressService');
|
|
64787
64185
|
let DefaultProgressService = class DefaultProgressService {
|
|
@@ -65938,7 +65336,7 @@ exports.shift = shift;
|
|
|
65938
65336
|
const graph_1 = __webpack_require__(/*! @eclipse-glsp/graph */ "../../packages/graph/lib/index.js");
|
|
65939
65337
|
const protocol_1 = __webpack_require__(/*! @eclipse-glsp/protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/index.js");
|
|
65940
65338
|
const inversify_1 = __webpack_require__(/*! inversify */ "../../node_modules/inversify/lib/cjs/index.js");
|
|
65941
|
-
const uuid = __webpack_require__(/*! uuid */ "../../node_modules/uuid/dist/
|
|
65339
|
+
const uuid = __webpack_require__(/*! uuid */ "../../node_modules/uuid/dist/cjs/index.js");
|
|
65942
65340
|
const gmodel_serializer_1 = __webpack_require__(/*! ../features/model/gmodel-serializer */ "../../packages/server/lib/common/features/model/gmodel-serializer.js");
|
|
65943
65341
|
const gmodel_operation_handler_1 = __webpack_require__(/*! ./gmodel-operation-handler */ "../../packages/server/lib/common/gmodel/gmodel-operation-handler.js");
|
|
65944
65342
|
let GModelPasteOperationHandler = class GModelPasteOperationHandler extends gmodel_operation_handler_1.GModelOperationHandler {
|
|
@@ -76301,39 +75699,312 @@ class BindingInSyntax {
|
|
|
76301
75699
|
constructor(binding) {
|
|
76302
75700
|
this._binding = binding;
|
|
76303
75701
|
}
|
|
76304
|
-
inRequestScope() {
|
|
76305
|
-
this._binding.scope = literal_types_1.BindingScopeEnum.Request;
|
|
75702
|
+
inRequestScope() {
|
|
75703
|
+
this._binding.scope = literal_types_1.BindingScopeEnum.Request;
|
|
75704
|
+
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
|
75705
|
+
}
|
|
75706
|
+
inSingletonScope() {
|
|
75707
|
+
this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
|
|
75708
|
+
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
|
75709
|
+
}
|
|
75710
|
+
inTransientScope() {
|
|
75711
|
+
this._binding.scope = literal_types_1.BindingScopeEnum.Transient;
|
|
75712
|
+
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
|
75713
|
+
}
|
|
75714
|
+
}
|
|
75715
|
+
exports.BindingInSyntax = BindingInSyntax;
|
|
75716
|
+
|
|
75717
|
+
|
|
75718
|
+
/***/ }),
|
|
75719
|
+
|
|
75720
|
+
/***/ "../../node_modules/inversify/lib/cjs/syntax/binding_in_when_on_syntax.js":
|
|
75721
|
+
/*!********************************************************************************!*\
|
|
75722
|
+
!*** ../../node_modules/inversify/lib/cjs/syntax/binding_in_when_on_syntax.js ***!
|
|
75723
|
+
\********************************************************************************/
|
|
75724
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
75725
|
+
|
|
75726
|
+
"use strict";
|
|
75727
|
+
|
|
75728
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75729
|
+
exports.BindingInWhenOnSyntax = void 0;
|
|
75730
|
+
const binding_in_syntax_1 = __webpack_require__(/*! ./binding_in_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_in_syntax.js");
|
|
75731
|
+
const binding_on_syntax_1 = __webpack_require__(/*! ./binding_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js");
|
|
75732
|
+
const binding_when_syntax_1 = __webpack_require__(/*! ./binding_when_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js");
|
|
75733
|
+
class BindingInWhenOnSyntax {
|
|
75734
|
+
_bindingInSyntax;
|
|
75735
|
+
_bindingWhenSyntax;
|
|
75736
|
+
_bindingOnSyntax;
|
|
75737
|
+
_binding;
|
|
75738
|
+
constructor(binding) {
|
|
75739
|
+
this._binding = binding;
|
|
75740
|
+
this._bindingWhenSyntax = new binding_when_syntax_1.BindingWhenSyntax(this._binding);
|
|
75741
|
+
this._bindingOnSyntax = new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
75742
|
+
this._bindingInSyntax = new binding_in_syntax_1.BindingInSyntax(binding);
|
|
75743
|
+
}
|
|
75744
|
+
inRequestScope() {
|
|
75745
|
+
return this._bindingInSyntax.inRequestScope();
|
|
75746
|
+
}
|
|
75747
|
+
inSingletonScope() {
|
|
75748
|
+
return this._bindingInSyntax.inSingletonScope();
|
|
75749
|
+
}
|
|
75750
|
+
inTransientScope() {
|
|
75751
|
+
return this._bindingInSyntax.inTransientScope();
|
|
75752
|
+
}
|
|
75753
|
+
when(constraint) {
|
|
75754
|
+
return this._bindingWhenSyntax.when(constraint);
|
|
75755
|
+
}
|
|
75756
|
+
whenTargetNamed(name) {
|
|
75757
|
+
return this._bindingWhenSyntax.whenTargetNamed(name);
|
|
75758
|
+
}
|
|
75759
|
+
whenTargetIsDefault() {
|
|
75760
|
+
return this._bindingWhenSyntax.whenTargetIsDefault();
|
|
75761
|
+
}
|
|
75762
|
+
whenTargetTagged(tag, value) {
|
|
75763
|
+
return this._bindingWhenSyntax.whenTargetTagged(tag, value);
|
|
75764
|
+
}
|
|
75765
|
+
whenInjectedInto(parent) {
|
|
75766
|
+
return this._bindingWhenSyntax.whenInjectedInto(parent);
|
|
75767
|
+
}
|
|
75768
|
+
whenParentNamed(name) {
|
|
75769
|
+
return this._bindingWhenSyntax.whenParentNamed(name);
|
|
75770
|
+
}
|
|
75771
|
+
whenParentTagged(tag, value) {
|
|
75772
|
+
return this._bindingWhenSyntax.whenParentTagged(tag, value);
|
|
75773
|
+
}
|
|
75774
|
+
whenAnyAncestorIs(ancestor) {
|
|
75775
|
+
return this._bindingWhenSyntax.whenAnyAncestorIs(ancestor);
|
|
75776
|
+
}
|
|
75777
|
+
whenNoAncestorIs(ancestor) {
|
|
75778
|
+
return this._bindingWhenSyntax.whenNoAncestorIs(ancestor);
|
|
75779
|
+
}
|
|
75780
|
+
whenAnyAncestorNamed(name) {
|
|
75781
|
+
return this._bindingWhenSyntax.whenAnyAncestorNamed(name);
|
|
75782
|
+
}
|
|
75783
|
+
whenAnyAncestorTagged(tag, value) {
|
|
75784
|
+
return this._bindingWhenSyntax.whenAnyAncestorTagged(tag, value);
|
|
75785
|
+
}
|
|
75786
|
+
whenNoAncestorNamed(name) {
|
|
75787
|
+
return this._bindingWhenSyntax.whenNoAncestorNamed(name);
|
|
75788
|
+
}
|
|
75789
|
+
whenNoAncestorTagged(tag, value) {
|
|
75790
|
+
return this._bindingWhenSyntax.whenNoAncestorTagged(tag, value);
|
|
75791
|
+
}
|
|
75792
|
+
whenAnyAncestorMatches(constraint) {
|
|
75793
|
+
return this._bindingWhenSyntax.whenAnyAncestorMatches(constraint);
|
|
75794
|
+
}
|
|
75795
|
+
whenNoAncestorMatches(constraint) {
|
|
75796
|
+
return this._bindingWhenSyntax.whenNoAncestorMatches(constraint);
|
|
75797
|
+
}
|
|
75798
|
+
onActivation(handler) {
|
|
75799
|
+
return this._bindingOnSyntax.onActivation(handler);
|
|
75800
|
+
}
|
|
75801
|
+
onDeactivation(handler) {
|
|
75802
|
+
return this._bindingOnSyntax.onDeactivation(handler);
|
|
75803
|
+
}
|
|
75804
|
+
}
|
|
75805
|
+
exports.BindingInWhenOnSyntax = BindingInWhenOnSyntax;
|
|
75806
|
+
|
|
75807
|
+
|
|
75808
|
+
/***/ }),
|
|
75809
|
+
|
|
75810
|
+
/***/ "../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js":
|
|
75811
|
+
/*!************************************************************************!*\
|
|
75812
|
+
!*** ../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js ***!
|
|
75813
|
+
\************************************************************************/
|
|
75814
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
75815
|
+
|
|
75816
|
+
"use strict";
|
|
75817
|
+
|
|
75818
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75819
|
+
exports.BindingOnSyntax = void 0;
|
|
75820
|
+
const binding_when_syntax_1 = __webpack_require__(/*! ./binding_when_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js");
|
|
75821
|
+
class BindingOnSyntax {
|
|
75822
|
+
_binding;
|
|
75823
|
+
constructor(binding) {
|
|
75824
|
+
this._binding = binding;
|
|
75825
|
+
}
|
|
75826
|
+
onActivation(handler) {
|
|
75827
|
+
this._binding.onActivation = handler;
|
|
75828
|
+
return new binding_when_syntax_1.BindingWhenSyntax(this._binding);
|
|
75829
|
+
}
|
|
75830
|
+
onDeactivation(handler) {
|
|
75831
|
+
this._binding.onDeactivation = handler;
|
|
75832
|
+
return new binding_when_syntax_1.BindingWhenSyntax(this._binding);
|
|
75833
|
+
}
|
|
75834
|
+
}
|
|
75835
|
+
exports.BindingOnSyntax = BindingOnSyntax;
|
|
75836
|
+
|
|
75837
|
+
|
|
75838
|
+
/***/ }),
|
|
75839
|
+
|
|
75840
|
+
/***/ "../../node_modules/inversify/lib/cjs/syntax/binding_to_syntax.js":
|
|
75841
|
+
/*!************************************************************************!*\
|
|
75842
|
+
!*** ../../node_modules/inversify/lib/cjs/syntax/binding_to_syntax.js ***!
|
|
75843
|
+
\************************************************************************/
|
|
75844
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
75845
|
+
|
|
75846
|
+
"use strict";
|
|
75847
|
+
|
|
75848
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
75849
|
+
if (k2 === undefined) k2 = k;
|
|
75850
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
75851
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
75852
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
75853
|
+
}
|
|
75854
|
+
Object.defineProperty(o, k2, desc);
|
|
75855
|
+
}) : (function(o, m, k, k2) {
|
|
75856
|
+
if (k2 === undefined) k2 = k;
|
|
75857
|
+
o[k2] = m[k];
|
|
75858
|
+
}));
|
|
75859
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
75860
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
75861
|
+
}) : function(o, v) {
|
|
75862
|
+
o["default"] = v;
|
|
75863
|
+
});
|
|
75864
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
75865
|
+
var ownKeys = function(o) {
|
|
75866
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
75867
|
+
var ar = [];
|
|
75868
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
75869
|
+
return ar;
|
|
75870
|
+
};
|
|
75871
|
+
return ownKeys(o);
|
|
75872
|
+
};
|
|
75873
|
+
return function (mod) {
|
|
75874
|
+
if (mod && mod.__esModule) return mod;
|
|
75875
|
+
var result = {};
|
|
75876
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
75877
|
+
__setModuleDefault(result, mod);
|
|
75878
|
+
return result;
|
|
75879
|
+
};
|
|
75880
|
+
})();
|
|
75881
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75882
|
+
exports.BindingToSyntax = void 0;
|
|
75883
|
+
const ERROR_MSGS = __importStar(__webpack_require__(/*! ../constants/error_msgs */ "../../node_modules/inversify/lib/cjs/constants/error_msgs.js"));
|
|
75884
|
+
const literal_types_1 = __webpack_require__(/*! ../constants/literal_types */ "../../node_modules/inversify/lib/cjs/constants/literal_types.js");
|
|
75885
|
+
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");
|
|
75886
|
+
const binding_when_on_syntax_1 = __webpack_require__(/*! ./binding_when_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_when_on_syntax.js");
|
|
75887
|
+
class BindingToSyntax {
|
|
75888
|
+
// TODO: Implement an internal type `_BindingToSyntax<T>` wherein this member
|
|
75889
|
+
// can be public. Let `BindingToSyntax<T>` be the presentational type that
|
|
75890
|
+
// depends on it, and does not expose this member as public.
|
|
75891
|
+
_binding;
|
|
75892
|
+
constructor(binding) {
|
|
75893
|
+
this._binding = binding;
|
|
75894
|
+
}
|
|
75895
|
+
to(constructor) {
|
|
75896
|
+
this._binding.type = literal_types_1.BindingTypeEnum.Instance;
|
|
75897
|
+
this._binding.implementationType = constructor;
|
|
75898
|
+
return new binding_in_when_on_syntax_1.BindingInWhenOnSyntax(this._binding);
|
|
75899
|
+
}
|
|
75900
|
+
toSelf() {
|
|
75901
|
+
if (typeof this._binding.serviceIdentifier !== 'function') {
|
|
75902
|
+
throw new Error(ERROR_MSGS.INVALID_TO_SELF_VALUE);
|
|
75903
|
+
}
|
|
75904
|
+
const self = this._binding
|
|
75905
|
+
.serviceIdentifier;
|
|
75906
|
+
return this.to(self);
|
|
75907
|
+
}
|
|
75908
|
+
toConstantValue(value) {
|
|
75909
|
+
this._binding.type = literal_types_1.BindingTypeEnum.ConstantValue;
|
|
75910
|
+
this._binding.cache = value;
|
|
75911
|
+
this._binding.dynamicValue = null;
|
|
75912
|
+
this._binding.implementationType = null;
|
|
75913
|
+
this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
|
|
76306
75914
|
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
|
76307
75915
|
}
|
|
76308
|
-
|
|
75916
|
+
toDynamicValue(func) {
|
|
75917
|
+
this._binding.type = literal_types_1.BindingTypeEnum.DynamicValue;
|
|
75918
|
+
this._binding.cache = null;
|
|
75919
|
+
this._binding.dynamicValue = func;
|
|
75920
|
+
this._binding.implementationType = null;
|
|
75921
|
+
return new binding_in_when_on_syntax_1.BindingInWhenOnSyntax(this._binding);
|
|
75922
|
+
}
|
|
75923
|
+
toConstructor(constructor) {
|
|
75924
|
+
this._binding.type = literal_types_1.BindingTypeEnum.Constructor;
|
|
75925
|
+
this._binding.implementationType = constructor;
|
|
76309
75926
|
this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
|
|
76310
75927
|
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
|
76311
75928
|
}
|
|
76312
|
-
|
|
76313
|
-
this._binding.
|
|
75929
|
+
toFactory(factory) {
|
|
75930
|
+
this._binding.type = literal_types_1.BindingTypeEnum.Factory;
|
|
75931
|
+
this._binding.factory = factory;
|
|
75932
|
+
this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
|
|
75933
|
+
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
|
75934
|
+
}
|
|
75935
|
+
toFunction(func) {
|
|
75936
|
+
// toFunction is an alias of toConstantValue
|
|
75937
|
+
if (typeof func !== 'function') {
|
|
75938
|
+
throw new Error(ERROR_MSGS.INVALID_FUNCTION_BINDING);
|
|
75939
|
+
}
|
|
75940
|
+
const bindingWhenOnSyntax = this.toConstantValue(func);
|
|
75941
|
+
this._binding.type = literal_types_1.BindingTypeEnum.Function;
|
|
75942
|
+
this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
|
|
75943
|
+
return bindingWhenOnSyntax;
|
|
75944
|
+
}
|
|
75945
|
+
toAutoFactory(serviceIdentifier) {
|
|
75946
|
+
this._binding.type = literal_types_1.BindingTypeEnum.Factory;
|
|
75947
|
+
this._binding.factory = (context) => {
|
|
75948
|
+
const autofactory = () => context.container.get(serviceIdentifier);
|
|
75949
|
+
return autofactory;
|
|
75950
|
+
};
|
|
75951
|
+
this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
|
|
75952
|
+
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
|
75953
|
+
}
|
|
75954
|
+
toAutoNamedFactory(serviceIdentifier) {
|
|
75955
|
+
this._binding.type = literal_types_1.BindingTypeEnum.Factory;
|
|
75956
|
+
this._binding.factory = (context) => {
|
|
75957
|
+
return (named) => context.container.getNamed(serviceIdentifier, named);
|
|
75958
|
+
};
|
|
75959
|
+
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
|
75960
|
+
}
|
|
75961
|
+
toProvider(provider) {
|
|
75962
|
+
this._binding.type = literal_types_1.BindingTypeEnum.Provider;
|
|
75963
|
+
this._binding.provider = provider;
|
|
75964
|
+
this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
|
|
76314
75965
|
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
|
76315
75966
|
}
|
|
75967
|
+
toService(service) {
|
|
75968
|
+
this._binding.type = literal_types_1.BindingTypeEnum.DynamicValue;
|
|
75969
|
+
// Service bindings should never ever be cached. This is just a workaround to achieve that. A better design should replace this approach.
|
|
75970
|
+
Object.defineProperty(this._binding, 'cache', {
|
|
75971
|
+
configurable: true,
|
|
75972
|
+
enumerable: true,
|
|
75973
|
+
get() {
|
|
75974
|
+
return null;
|
|
75975
|
+
},
|
|
75976
|
+
set(_value) { },
|
|
75977
|
+
});
|
|
75978
|
+
this._binding.dynamicValue = (context) => {
|
|
75979
|
+
try {
|
|
75980
|
+
return context.container.get(service);
|
|
75981
|
+
}
|
|
75982
|
+
catch (_error) {
|
|
75983
|
+
// This is a performance degradation in this edge case, we do need to improve the internal resolution architecture in order to solve this properly.
|
|
75984
|
+
return context.container.getAsync(service);
|
|
75985
|
+
}
|
|
75986
|
+
};
|
|
75987
|
+
this._binding.implementationType = null;
|
|
75988
|
+
}
|
|
76316
75989
|
}
|
|
76317
|
-
exports.
|
|
75990
|
+
exports.BindingToSyntax = BindingToSyntax;
|
|
76318
75991
|
|
|
76319
75992
|
|
|
76320
75993
|
/***/ }),
|
|
76321
75994
|
|
|
76322
|
-
/***/ "../../node_modules/inversify/lib/cjs/syntax/
|
|
76323
|
-
|
|
76324
|
-
!*** ../../node_modules/inversify/lib/cjs/syntax/
|
|
76325
|
-
|
|
75995
|
+
/***/ "../../node_modules/inversify/lib/cjs/syntax/binding_when_on_syntax.js":
|
|
75996
|
+
/*!*****************************************************************************!*\
|
|
75997
|
+
!*** ../../node_modules/inversify/lib/cjs/syntax/binding_when_on_syntax.js ***!
|
|
75998
|
+
\*****************************************************************************/
|
|
76326
75999
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
76327
76000
|
|
|
76328
76001
|
"use strict";
|
|
76329
76002
|
|
|
76330
76003
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76331
|
-
exports.
|
|
76332
|
-
const binding_in_syntax_1 = __webpack_require__(/*! ./binding_in_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_in_syntax.js");
|
|
76004
|
+
exports.BindingWhenOnSyntax = void 0;
|
|
76333
76005
|
const binding_on_syntax_1 = __webpack_require__(/*! ./binding_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js");
|
|
76334
76006
|
const binding_when_syntax_1 = __webpack_require__(/*! ./binding_when_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js");
|
|
76335
|
-
class
|
|
76336
|
-
_bindingInSyntax;
|
|
76007
|
+
class BindingWhenOnSyntax {
|
|
76337
76008
|
_bindingWhenSyntax;
|
|
76338
76009
|
_bindingOnSyntax;
|
|
76339
76010
|
_binding;
|
|
@@ -76341,16 +76012,6 @@ class BindingInWhenOnSyntax {
|
|
|
76341
76012
|
this._binding = binding;
|
|
76342
76013
|
this._bindingWhenSyntax = new binding_when_syntax_1.BindingWhenSyntax(this._binding);
|
|
76343
76014
|
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
76015
|
}
|
|
76355
76016
|
when(constraint) {
|
|
76356
76017
|
return this._bindingWhenSyntax.when(constraint);
|
|
@@ -76397,52 +76058,234 @@ class BindingInWhenOnSyntax {
|
|
|
76397
76058
|
whenNoAncestorMatches(constraint) {
|
|
76398
76059
|
return this._bindingWhenSyntax.whenNoAncestorMatches(constraint);
|
|
76399
76060
|
}
|
|
76400
|
-
onActivation(handler) {
|
|
76401
|
-
return this._bindingOnSyntax.onActivation(handler);
|
|
76061
|
+
onActivation(handler) {
|
|
76062
|
+
return this._bindingOnSyntax.onActivation(handler);
|
|
76063
|
+
}
|
|
76064
|
+
onDeactivation(handler) {
|
|
76065
|
+
return this._bindingOnSyntax.onDeactivation(handler);
|
|
76066
|
+
}
|
|
76067
|
+
}
|
|
76068
|
+
exports.BindingWhenOnSyntax = BindingWhenOnSyntax;
|
|
76069
|
+
|
|
76070
|
+
|
|
76071
|
+
/***/ }),
|
|
76072
|
+
|
|
76073
|
+
/***/ "../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js":
|
|
76074
|
+
/*!**************************************************************************!*\
|
|
76075
|
+
!*** ../../node_modules/inversify/lib/cjs/syntax/binding_when_syntax.js ***!
|
|
76076
|
+
\**************************************************************************/
|
|
76077
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
76078
|
+
|
|
76079
|
+
"use strict";
|
|
76080
|
+
|
|
76081
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76082
|
+
exports.BindingWhenSyntax = void 0;
|
|
76083
|
+
const binding_on_syntax_1 = __webpack_require__(/*! ./binding_on_syntax */ "../../node_modules/inversify/lib/cjs/syntax/binding_on_syntax.js");
|
|
76084
|
+
const constraint_helpers_1 = __webpack_require__(/*! ./constraint_helpers */ "../../node_modules/inversify/lib/cjs/syntax/constraint_helpers.js");
|
|
76085
|
+
class BindingWhenSyntax {
|
|
76086
|
+
_binding;
|
|
76087
|
+
constructor(binding) {
|
|
76088
|
+
this._binding = binding;
|
|
76089
|
+
}
|
|
76090
|
+
when(constraint) {
|
|
76091
|
+
this._binding.constraint = constraint;
|
|
76092
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76093
|
+
}
|
|
76094
|
+
whenTargetNamed(name) {
|
|
76095
|
+
this._binding.constraint = (0, constraint_helpers_1.namedConstraint)(name);
|
|
76096
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76097
|
+
}
|
|
76098
|
+
whenTargetIsDefault() {
|
|
76099
|
+
this._binding.constraint = (request) => {
|
|
76100
|
+
if (request === null) {
|
|
76101
|
+
return false;
|
|
76102
|
+
}
|
|
76103
|
+
const targetIsDefault =
|
|
76104
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
76105
|
+
request.target !== null &&
|
|
76106
|
+
!request.target.isNamed() &&
|
|
76107
|
+
!request.target.isTagged();
|
|
76108
|
+
return targetIsDefault;
|
|
76109
|
+
};
|
|
76110
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76111
|
+
}
|
|
76112
|
+
whenTargetTagged(tag, value) {
|
|
76113
|
+
this._binding.constraint = (0, constraint_helpers_1.taggedConstraint)(tag)(value);
|
|
76114
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76115
|
+
}
|
|
76116
|
+
whenInjectedInto(parent) {
|
|
76117
|
+
this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.typeConstraint)(parent)(request.parentRequest);
|
|
76118
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76119
|
+
}
|
|
76120
|
+
whenParentNamed(name) {
|
|
76121
|
+
this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.namedConstraint)(name)(request.parentRequest);
|
|
76122
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76123
|
+
}
|
|
76124
|
+
whenParentTagged(tag, value) {
|
|
76125
|
+
this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.taggedConstraint)(tag)(value)(request.parentRequest);
|
|
76126
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76127
|
+
}
|
|
76128
|
+
whenAnyAncestorIs(ancestor) {
|
|
76129
|
+
this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.typeConstraint)(ancestor));
|
|
76130
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76131
|
+
}
|
|
76132
|
+
whenNoAncestorIs(ancestor) {
|
|
76133
|
+
this._binding.constraint = (request) => request !== null &&
|
|
76134
|
+
!(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.typeConstraint)(ancestor));
|
|
76135
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76136
|
+
}
|
|
76137
|
+
whenAnyAncestorNamed(name) {
|
|
76138
|
+
this._binding.constraint = (request) => request !== null && (0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.namedConstraint)(name));
|
|
76139
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76140
|
+
}
|
|
76141
|
+
whenNoAncestorNamed(name) {
|
|
76142
|
+
this._binding.constraint = (request) => request !== null && !(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.namedConstraint)(name));
|
|
76143
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76144
|
+
}
|
|
76145
|
+
whenAnyAncestorTagged(tag, value) {
|
|
76146
|
+
this._binding.constraint = (request) => request !== null &&
|
|
76147
|
+
(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.taggedConstraint)(tag)(value));
|
|
76148
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76149
|
+
}
|
|
76150
|
+
whenNoAncestorTagged(tag, value) {
|
|
76151
|
+
this._binding.constraint = (request) => request !== null &&
|
|
76152
|
+
!(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.taggedConstraint)(tag)(value));
|
|
76153
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76154
|
+
}
|
|
76155
|
+
whenAnyAncestorMatches(constraint) {
|
|
76156
|
+
this._binding.constraint = (request) => request !== null &&
|
|
76157
|
+
(0, constraint_helpers_1.traverseAncerstors)(request, constraint);
|
|
76158
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76159
|
+
}
|
|
76160
|
+
whenNoAncestorMatches(constraint) {
|
|
76161
|
+
this._binding.constraint = (request) => request !== null &&
|
|
76162
|
+
!(0, constraint_helpers_1.traverseAncerstors)(request, constraint);
|
|
76163
|
+
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
76164
|
+
}
|
|
76165
|
+
}
|
|
76166
|
+
exports.BindingWhenSyntax = BindingWhenSyntax;
|
|
76167
|
+
|
|
76168
|
+
|
|
76169
|
+
/***/ }),
|
|
76170
|
+
|
|
76171
|
+
/***/ "../../node_modules/inversify/lib/cjs/syntax/constraint_helpers.js":
|
|
76172
|
+
/*!*************************************************************************!*\
|
|
76173
|
+
!*** ../../node_modules/inversify/lib/cjs/syntax/constraint_helpers.js ***!
|
|
76174
|
+
\*************************************************************************/
|
|
76175
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
76176
|
+
|
|
76177
|
+
"use strict";
|
|
76178
|
+
|
|
76179
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
76180
|
+
if (k2 === undefined) k2 = k;
|
|
76181
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
76182
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
76183
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
76184
|
+
}
|
|
76185
|
+
Object.defineProperty(o, k2, desc);
|
|
76186
|
+
}) : (function(o, m, k, k2) {
|
|
76187
|
+
if (k2 === undefined) k2 = k;
|
|
76188
|
+
o[k2] = m[k];
|
|
76189
|
+
}));
|
|
76190
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
76191
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
76192
|
+
}) : function(o, v) {
|
|
76193
|
+
o["default"] = v;
|
|
76194
|
+
});
|
|
76195
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
76196
|
+
var ownKeys = function(o) {
|
|
76197
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
76198
|
+
var ar = [];
|
|
76199
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
76200
|
+
return ar;
|
|
76201
|
+
};
|
|
76202
|
+
return ownKeys(o);
|
|
76203
|
+
};
|
|
76204
|
+
return function (mod) {
|
|
76205
|
+
if (mod && mod.__esModule) return mod;
|
|
76206
|
+
var result = {};
|
|
76207
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
76208
|
+
__setModuleDefault(result, mod);
|
|
76209
|
+
return result;
|
|
76210
|
+
};
|
|
76211
|
+
})();
|
|
76212
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76213
|
+
exports.typeConstraint = exports.namedConstraint = exports.taggedConstraint = exports.traverseAncerstors = void 0;
|
|
76214
|
+
const METADATA_KEY = __importStar(__webpack_require__(/*! ../constants/metadata_keys */ "../../node_modules/inversify/lib/cjs/constants/metadata_keys.js"));
|
|
76215
|
+
const metadata_1 = __webpack_require__(/*! ../planning/metadata */ "../../node_modules/inversify/lib/cjs/planning/metadata.js");
|
|
76216
|
+
const traverseAncerstors = (request, constraint) => {
|
|
76217
|
+
const parent = request.parentRequest;
|
|
76218
|
+
if (parent !== null) {
|
|
76219
|
+
return constraint(parent) ? true : traverseAncerstors(parent, constraint);
|
|
76220
|
+
}
|
|
76221
|
+
else {
|
|
76222
|
+
return false;
|
|
76402
76223
|
}
|
|
76403
|
-
|
|
76404
|
-
|
|
76224
|
+
};
|
|
76225
|
+
exports.traverseAncerstors = traverseAncerstors;
|
|
76226
|
+
// This helpers use currying to help you to generate constraints
|
|
76227
|
+
const taggedConstraint = (key) => (value) => {
|
|
76228
|
+
const constraint = (request) => request !== null &&
|
|
76229
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
76230
|
+
request.target !== null &&
|
|
76231
|
+
request.target.matchesTag(key)(value);
|
|
76232
|
+
constraint.metaData = new metadata_1.Metadata(key, value);
|
|
76233
|
+
return constraint;
|
|
76234
|
+
};
|
|
76235
|
+
exports.taggedConstraint = taggedConstraint;
|
|
76236
|
+
const namedConstraint = taggedConstraint(METADATA_KEY.NAMED_TAG);
|
|
76237
|
+
exports.namedConstraint = namedConstraint;
|
|
76238
|
+
const typeConstraint = (type) => (request) => {
|
|
76239
|
+
// Using index 0 because constraints are applied
|
|
76240
|
+
// to one binding at a time (see Planner class)
|
|
76241
|
+
let binding = null;
|
|
76242
|
+
if (request !== null) {
|
|
76243
|
+
binding = request.bindings[0];
|
|
76244
|
+
if (typeof type === 'string') {
|
|
76245
|
+
return binding.serviceIdentifier === type;
|
|
76246
|
+
}
|
|
76247
|
+
else {
|
|
76248
|
+
const constructor = request.bindings[0].implementationType;
|
|
76249
|
+
return type === constructor;
|
|
76250
|
+
}
|
|
76405
76251
|
}
|
|
76406
|
-
|
|
76407
|
-
|
|
76252
|
+
return false;
|
|
76253
|
+
};
|
|
76254
|
+
exports.typeConstraint = typeConstraint;
|
|
76408
76255
|
|
|
76409
76256
|
|
|
76410
76257
|
/***/ }),
|
|
76411
76258
|
|
|
76412
|
-
/***/ "../../node_modules/inversify/lib/cjs/
|
|
76413
|
-
|
|
76414
|
-
!*** ../../node_modules/inversify/lib/cjs/
|
|
76415
|
-
|
|
76416
|
-
/***/ ((__unused_webpack_module, exports
|
|
76259
|
+
/***/ "../../node_modules/inversify/lib/cjs/utils/async.js":
|
|
76260
|
+
/*!***********************************************************!*\
|
|
76261
|
+
!*** ../../node_modules/inversify/lib/cjs/utils/async.js ***!
|
|
76262
|
+
\***********************************************************/
|
|
76263
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
76417
76264
|
|
|
76418
76265
|
"use strict";
|
|
76419
76266
|
|
|
76420
76267
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76421
|
-
exports.
|
|
76422
|
-
|
|
76423
|
-
|
|
76424
|
-
|
|
76425
|
-
|
|
76426
|
-
|
|
76427
|
-
|
|
76428
|
-
|
|
76429
|
-
|
|
76430
|
-
return
|
|
76431
|
-
}
|
|
76432
|
-
onDeactivation(handler) {
|
|
76433
|
-
this._binding.onDeactivation = handler;
|
|
76434
|
-
return new binding_when_syntax_1.BindingWhenSyntax(this._binding);
|
|
76268
|
+
exports.isPromise = isPromise;
|
|
76269
|
+
exports.isPromiseOrContainsPromise = isPromiseOrContainsPromise;
|
|
76270
|
+
function isPromise(object) {
|
|
76271
|
+
const isObjectOrFunction = (typeof object === 'object' && object !== null) ||
|
|
76272
|
+
typeof object === 'function';
|
|
76273
|
+
return (isObjectOrFunction && typeof object.then === 'function');
|
|
76274
|
+
}
|
|
76275
|
+
function isPromiseOrContainsPromise(object) {
|
|
76276
|
+
if (isPromise(object)) {
|
|
76277
|
+
return true;
|
|
76435
76278
|
}
|
|
76279
|
+
return Array.isArray(object) && object.some(isPromise);
|
|
76436
76280
|
}
|
|
76437
|
-
exports.BindingOnSyntax = BindingOnSyntax;
|
|
76438
76281
|
|
|
76439
76282
|
|
|
76440
76283
|
/***/ }),
|
|
76441
76284
|
|
|
76442
|
-
/***/ "../../node_modules/inversify/lib/cjs/
|
|
76443
|
-
|
|
76444
|
-
!*** ../../node_modules/inversify/lib/cjs/
|
|
76445
|
-
|
|
76285
|
+
/***/ "../../node_modules/inversify/lib/cjs/utils/binding_utils.js":
|
|
76286
|
+
/*!*******************************************************************!*\
|
|
76287
|
+
!*** ../../node_modules/inversify/lib/cjs/utils/binding_utils.js ***!
|
|
76288
|
+
\*******************************************************************/
|
|
76446
76289
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
76447
76290
|
|
|
76448
76291
|
"use strict";
|
|
@@ -76481,299 +76324,240 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
76481
76324
|
};
|
|
76482
76325
|
})();
|
|
76483
76326
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76484
|
-
exports.
|
|
76327
|
+
exports.getFactoryDetails = exports.ensureFullyBound = exports.multiBindToService = void 0;
|
|
76485
76328
|
const ERROR_MSGS = __importStar(__webpack_require__(/*! ../constants/error_msgs */ "../../node_modules/inversify/lib/cjs/constants/error_msgs.js"));
|
|
76486
76329
|
const literal_types_1 = __webpack_require__(/*! ../constants/literal_types */ "../../node_modules/inversify/lib/cjs/constants/literal_types.js");
|
|
76487
|
-
const
|
|
76488
|
-
const
|
|
76489
|
-
|
|
76490
|
-
|
|
76491
|
-
|
|
76492
|
-
|
|
76493
|
-
|
|
76494
|
-
|
|
76495
|
-
|
|
76496
|
-
|
|
76497
|
-
|
|
76498
|
-
|
|
76499
|
-
|
|
76500
|
-
|
|
76501
|
-
|
|
76502
|
-
|
|
76503
|
-
|
|
76504
|
-
|
|
76505
|
-
|
|
76506
|
-
|
|
76507
|
-
|
|
76508
|
-
|
|
76509
|
-
|
|
76510
|
-
|
|
76511
|
-
|
|
76512
|
-
|
|
76513
|
-
|
|
76514
|
-
|
|
76515
|
-
|
|
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);
|
|
76330
|
+
const serialization_1 = __webpack_require__(/*! ../utils/serialization */ "../../node_modules/inversify/lib/cjs/utils/serialization.js");
|
|
76331
|
+
const factory_type_1 = __webpack_require__(/*! ./factory_type */ "../../node_modules/inversify/lib/cjs/utils/factory_type.js");
|
|
76332
|
+
const multiBindToService = (container) => (service) => (...types) => {
|
|
76333
|
+
types.forEach((t) => {
|
|
76334
|
+
container.bind(t).toService(service);
|
|
76335
|
+
});
|
|
76336
|
+
};
|
|
76337
|
+
exports.multiBindToService = multiBindToService;
|
|
76338
|
+
const ensureFullyBound = (binding) => {
|
|
76339
|
+
let boundValue = null;
|
|
76340
|
+
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
76341
|
+
switch (binding.type) {
|
|
76342
|
+
case literal_types_1.BindingTypeEnum.ConstantValue:
|
|
76343
|
+
case literal_types_1.BindingTypeEnum.Function:
|
|
76344
|
+
boundValue = binding.cache;
|
|
76345
|
+
break;
|
|
76346
|
+
case literal_types_1.BindingTypeEnum.Constructor:
|
|
76347
|
+
case literal_types_1.BindingTypeEnum.Instance:
|
|
76348
|
+
boundValue = binding.implementationType;
|
|
76349
|
+
break;
|
|
76350
|
+
case literal_types_1.BindingTypeEnum.DynamicValue:
|
|
76351
|
+
boundValue = binding.dynamicValue;
|
|
76352
|
+
break;
|
|
76353
|
+
case literal_types_1.BindingTypeEnum.Provider:
|
|
76354
|
+
boundValue = binding.provider;
|
|
76355
|
+
break;
|
|
76356
|
+
case literal_types_1.BindingTypeEnum.Factory:
|
|
76357
|
+
boundValue = binding.factory;
|
|
76358
|
+
break;
|
|
76562
76359
|
}
|
|
76563
|
-
|
|
76564
|
-
|
|
76565
|
-
|
|
76566
|
-
|
|
76567
|
-
|
|
76360
|
+
if (boundValue === null) {
|
|
76361
|
+
// The user probably created a binding but didn't finish it
|
|
76362
|
+
// e.g. container.bind<T>('Something'); missing BindingToSyntax
|
|
76363
|
+
const serviceIdentifierAsString = (0, serialization_1.getServiceIdentifierAsString)(binding.serviceIdentifier);
|
|
76364
|
+
throw new Error(`${ERROR_MSGS.INVALID_BINDING_TYPE} ${serviceIdentifierAsString}`);
|
|
76568
76365
|
}
|
|
76569
|
-
|
|
76570
|
-
|
|
76571
|
-
|
|
76572
|
-
|
|
76573
|
-
|
|
76574
|
-
|
|
76575
|
-
|
|
76576
|
-
|
|
76577
|
-
|
|
76578
|
-
|
|
76579
|
-
|
|
76580
|
-
|
|
76581
|
-
|
|
76582
|
-
|
|
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;
|
|
76366
|
+
};
|
|
76367
|
+
exports.ensureFullyBound = ensureFullyBound;
|
|
76368
|
+
const getFactoryDetails = (binding) => {
|
|
76369
|
+
switch (binding.type) {
|
|
76370
|
+
case literal_types_1.BindingTypeEnum.Factory:
|
|
76371
|
+
return { factory: binding.factory, factoryType: factory_type_1.FactoryType.Factory };
|
|
76372
|
+
case literal_types_1.BindingTypeEnum.Provider:
|
|
76373
|
+
return { factory: binding.provider, factoryType: factory_type_1.FactoryType.Provider };
|
|
76374
|
+
case literal_types_1.BindingTypeEnum.DynamicValue:
|
|
76375
|
+
return {
|
|
76376
|
+
factory: binding.dynamicValue,
|
|
76377
|
+
factoryType: factory_type_1.FactoryType.DynamicValue,
|
|
76378
|
+
};
|
|
76379
|
+
default:
|
|
76380
|
+
throw new Error(`Unexpected factory type ${binding.type}`);
|
|
76590
76381
|
}
|
|
76591
|
-
}
|
|
76592
|
-
exports.
|
|
76382
|
+
};
|
|
76383
|
+
exports.getFactoryDetails = getFactoryDetails;
|
|
76593
76384
|
|
|
76594
76385
|
|
|
76595
76386
|
/***/ }),
|
|
76596
76387
|
|
|
76597
|
-
/***/ "../../node_modules/inversify/lib/cjs/
|
|
76598
|
-
|
|
76599
|
-
!*** ../../node_modules/inversify/lib/cjs/
|
|
76600
|
-
|
|
76601
|
-
/***/ ((__unused_webpack_module, exports
|
|
76388
|
+
/***/ "../../node_modules/inversify/lib/cjs/utils/clonable.js":
|
|
76389
|
+
/*!**************************************************************!*\
|
|
76390
|
+
!*** ../../node_modules/inversify/lib/cjs/utils/clonable.js ***!
|
|
76391
|
+
\**************************************************************/
|
|
76392
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
76602
76393
|
|
|
76603
76394
|
"use strict";
|
|
76604
76395
|
|
|
76605
76396
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76606
|
-
exports.
|
|
76607
|
-
|
|
76608
|
-
|
|
76609
|
-
|
|
76610
|
-
|
|
76611
|
-
|
|
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
|
-
}
|
|
76397
|
+
exports.isClonable = isClonable;
|
|
76398
|
+
function isClonable(obj) {
|
|
76399
|
+
return (typeof obj === 'object' &&
|
|
76400
|
+
obj !== null &&
|
|
76401
|
+
'clone' in obj &&
|
|
76402
|
+
typeof obj.clone === 'function');
|
|
76669
76403
|
}
|
|
76670
|
-
exports.BindingWhenOnSyntax = BindingWhenOnSyntax;
|
|
76671
76404
|
|
|
76672
76405
|
|
|
76673
76406
|
/***/ }),
|
|
76674
76407
|
|
|
76675
|
-
/***/ "../../node_modules/inversify/lib/cjs/
|
|
76676
|
-
|
|
76677
|
-
!*** ../../node_modules/inversify/lib/cjs/
|
|
76678
|
-
|
|
76679
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
76408
|
+
/***/ "../../node_modules/inversify/lib/cjs/utils/exceptions.js":
|
|
76409
|
+
/*!****************************************************************!*\
|
|
76410
|
+
!*** ../../node_modules/inversify/lib/cjs/utils/exceptions.js ***!
|
|
76411
|
+
\****************************************************************/
|
|
76412
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
76680
76413
|
|
|
76681
76414
|
"use strict";
|
|
76682
76415
|
|
|
76683
|
-
Object.
|
|
76684
|
-
|
|
76685
|
-
|
|
76686
|
-
|
|
76687
|
-
|
|
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);
|
|
76416
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
76417
|
+
if (k2 === undefined) k2 = k;
|
|
76418
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
76419
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
76420
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
76699
76421
|
}
|
|
76700
|
-
|
|
76701
|
-
|
|
76702
|
-
|
|
76703
|
-
|
|
76704
|
-
|
|
76705
|
-
|
|
76706
|
-
|
|
76707
|
-
|
|
76708
|
-
|
|
76709
|
-
|
|
76710
|
-
|
|
76422
|
+
Object.defineProperty(o, k2, desc);
|
|
76423
|
+
}) : (function(o, m, k, k2) {
|
|
76424
|
+
if (k2 === undefined) k2 = k;
|
|
76425
|
+
o[k2] = m[k];
|
|
76426
|
+
}));
|
|
76427
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
76428
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
76429
|
+
}) : function(o, v) {
|
|
76430
|
+
o["default"] = v;
|
|
76431
|
+
});
|
|
76432
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
76433
|
+
var ownKeys = function(o) {
|
|
76434
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
76435
|
+
var ar = [];
|
|
76436
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
76437
|
+
return ar;
|
|
76711
76438
|
};
|
|
76712
|
-
return
|
|
76713
|
-
}
|
|
76714
|
-
|
|
76715
|
-
|
|
76716
|
-
|
|
76717
|
-
|
|
76718
|
-
|
|
76719
|
-
|
|
76720
|
-
|
|
76721
|
-
|
|
76722
|
-
|
|
76723
|
-
|
|
76724
|
-
|
|
76725
|
-
|
|
76726
|
-
|
|
76727
|
-
|
|
76728
|
-
|
|
76729
|
-
|
|
76730
|
-
|
|
76731
|
-
|
|
76732
|
-
return
|
|
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);
|
|
76439
|
+
return ownKeys(o);
|
|
76440
|
+
};
|
|
76441
|
+
return function (mod) {
|
|
76442
|
+
if (mod && mod.__esModule) return mod;
|
|
76443
|
+
var result = {};
|
|
76444
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
76445
|
+
__setModuleDefault(result, mod);
|
|
76446
|
+
return result;
|
|
76447
|
+
};
|
|
76448
|
+
})();
|
|
76449
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76450
|
+
exports.tryAndThrowErrorIfStackOverflow = void 0;
|
|
76451
|
+
exports.isStackOverflowException = isStackOverflowException;
|
|
76452
|
+
const ERROR_MSGS = __importStar(__webpack_require__(/*! ../constants/error_msgs */ "../../node_modules/inversify/lib/cjs/constants/error_msgs.js"));
|
|
76453
|
+
function isStackOverflowException(error) {
|
|
76454
|
+
return (error instanceof RangeError ||
|
|
76455
|
+
error.message === ERROR_MSGS.STACK_OVERFLOW);
|
|
76456
|
+
}
|
|
76457
|
+
const tryAndThrowErrorIfStackOverflow = (fn, errorCallback) => {
|
|
76458
|
+
try {
|
|
76459
|
+
return fn();
|
|
76756
76460
|
}
|
|
76757
|
-
|
|
76758
|
-
|
|
76759
|
-
|
|
76760
|
-
|
|
76461
|
+
catch (error) {
|
|
76462
|
+
if (isStackOverflowException(error)) {
|
|
76463
|
+
throw errorCallback();
|
|
76464
|
+
}
|
|
76465
|
+
throw error;
|
|
76761
76466
|
}
|
|
76762
|
-
|
|
76763
|
-
|
|
76764
|
-
|
|
76765
|
-
|
|
76467
|
+
};
|
|
76468
|
+
exports.tryAndThrowErrorIfStackOverflow = tryAndThrowErrorIfStackOverflow;
|
|
76469
|
+
|
|
76470
|
+
|
|
76471
|
+
/***/ }),
|
|
76472
|
+
|
|
76473
|
+
/***/ "../../node_modules/inversify/lib/cjs/utils/factory_type.js":
|
|
76474
|
+
/*!******************************************************************!*\
|
|
76475
|
+
!*** ../../node_modules/inversify/lib/cjs/utils/factory_type.js ***!
|
|
76476
|
+
\******************************************************************/
|
|
76477
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
76478
|
+
|
|
76479
|
+
"use strict";
|
|
76480
|
+
|
|
76481
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76482
|
+
exports.FactoryType = void 0;
|
|
76483
|
+
var FactoryType;
|
|
76484
|
+
(function (FactoryType) {
|
|
76485
|
+
FactoryType["DynamicValue"] = "toDynamicValue";
|
|
76486
|
+
FactoryType["Factory"] = "toFactory";
|
|
76487
|
+
FactoryType["Provider"] = "toProvider";
|
|
76488
|
+
})(FactoryType || (exports.FactoryType = FactoryType = {}));
|
|
76489
|
+
|
|
76490
|
+
|
|
76491
|
+
/***/ }),
|
|
76492
|
+
|
|
76493
|
+
/***/ "../../node_modules/inversify/lib/cjs/utils/get_base_type.js":
|
|
76494
|
+
/*!*******************************************************************!*\
|
|
76495
|
+
!*** ../../node_modules/inversify/lib/cjs/utils/get_base_type.js ***!
|
|
76496
|
+
\*******************************************************************/
|
|
76497
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
76498
|
+
|
|
76499
|
+
"use strict";
|
|
76500
|
+
|
|
76501
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76502
|
+
exports.getBaseType = getBaseType;
|
|
76503
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
76504
|
+
function getBaseType(type) {
|
|
76505
|
+
const prototype = Object.getPrototypeOf(type.prototype);
|
|
76506
|
+
const baseType = prototype?.constructor;
|
|
76507
|
+
return baseType;
|
|
76508
|
+
}
|
|
76509
|
+
|
|
76510
|
+
|
|
76511
|
+
/***/ }),
|
|
76512
|
+
|
|
76513
|
+
/***/ "../../node_modules/inversify/lib/cjs/utils/id.js":
|
|
76514
|
+
/*!********************************************************!*\
|
|
76515
|
+
!*** ../../node_modules/inversify/lib/cjs/utils/id.js ***!
|
|
76516
|
+
\********************************************************/
|
|
76517
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
76518
|
+
|
|
76519
|
+
"use strict";
|
|
76520
|
+
|
|
76521
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76522
|
+
exports.id = id;
|
|
76523
|
+
let idCounter = 0;
|
|
76524
|
+
function id() {
|
|
76525
|
+
return idCounter++;
|
|
76526
|
+
}
|
|
76527
|
+
|
|
76528
|
+
|
|
76529
|
+
/***/ }),
|
|
76530
|
+
|
|
76531
|
+
/***/ "../../node_modules/inversify/lib/cjs/utils/js.js":
|
|
76532
|
+
/*!********************************************************!*\
|
|
76533
|
+
!*** ../../node_modules/inversify/lib/cjs/utils/js.js ***!
|
|
76534
|
+
\********************************************************/
|
|
76535
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
76536
|
+
|
|
76537
|
+
"use strict";
|
|
76538
|
+
|
|
76539
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76540
|
+
exports.getFirstArrayDuplicate = getFirstArrayDuplicate;
|
|
76541
|
+
function getFirstArrayDuplicate(array) {
|
|
76542
|
+
const seenValues = new Set();
|
|
76543
|
+
for (const entry of array) {
|
|
76544
|
+
if (seenValues.has(entry)) {
|
|
76545
|
+
return entry;
|
|
76546
|
+
}
|
|
76547
|
+
else {
|
|
76548
|
+
seenValues.add(entry);
|
|
76549
|
+
}
|
|
76766
76550
|
}
|
|
76551
|
+
return undefined;
|
|
76767
76552
|
}
|
|
76768
|
-
exports.BindingWhenSyntax = BindingWhenSyntax;
|
|
76769
76553
|
|
|
76770
76554
|
|
|
76771
76555
|
/***/ }),
|
|
76772
76556
|
|
|
76773
|
-
/***/ "../../node_modules/inversify/lib/cjs/
|
|
76774
|
-
|
|
76775
|
-
!*** ../../node_modules/inversify/lib/cjs/
|
|
76776
|
-
|
|
76557
|
+
/***/ "../../node_modules/inversify/lib/cjs/utils/serialization.js":
|
|
76558
|
+
/*!*******************************************************************!*\
|
|
76559
|
+
!*** ../../node_modules/inversify/lib/cjs/utils/serialization.js ***!
|
|
76560
|
+
\*******************************************************************/
|
|
76777
76561
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
76778
76562
|
|
|
76779
76563
|
"use strict";
|
|
@@ -76812,504 +76596,798 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
76812
76596
|
};
|
|
76813
76597
|
})();
|
|
76814
76598
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76815
|
-
exports.
|
|
76816
|
-
|
|
76817
|
-
|
|
76818
|
-
|
|
76819
|
-
|
|
76820
|
-
|
|
76821
|
-
|
|
76599
|
+
exports.getFunctionName = getFunctionName;
|
|
76600
|
+
exports.getServiceIdentifierAsString = getServiceIdentifierAsString;
|
|
76601
|
+
exports.listRegisteredBindingsForServiceIdentifier = listRegisteredBindingsForServiceIdentifier;
|
|
76602
|
+
exports.listMetadataForTarget = listMetadataForTarget;
|
|
76603
|
+
exports.circularDependencyToException = circularDependencyToException;
|
|
76604
|
+
exports.getSymbolDescription = getSymbolDescription;
|
|
76605
|
+
const ERROR_MSGS = __importStar(__webpack_require__(/*! ../constants/error_msgs */ "../../node_modules/inversify/lib/cjs/constants/error_msgs.js"));
|
|
76606
|
+
function getServiceIdentifierAsString(serviceIdentifier) {
|
|
76607
|
+
if (typeof serviceIdentifier === 'function') {
|
|
76608
|
+
return serviceIdentifier.name;
|
|
76609
|
+
}
|
|
76610
|
+
else if (typeof serviceIdentifier === 'symbol') {
|
|
76611
|
+
return serviceIdentifier.toString();
|
|
76822
76612
|
}
|
|
76823
76613
|
else {
|
|
76614
|
+
return serviceIdentifier;
|
|
76615
|
+
}
|
|
76616
|
+
}
|
|
76617
|
+
function listRegisteredBindingsForServiceIdentifier(container, serviceIdentifier, getBindings) {
|
|
76618
|
+
let registeredBindingsList = '';
|
|
76619
|
+
const registeredBindings = getBindings(container, serviceIdentifier);
|
|
76620
|
+
if (registeredBindings.length !== 0) {
|
|
76621
|
+
registeredBindingsList = '\nRegistered bindings:';
|
|
76622
|
+
registeredBindings.forEach((binding) => {
|
|
76623
|
+
// Use 'Object as name of constant value injections'
|
|
76624
|
+
let name = 'Object';
|
|
76625
|
+
// Use function name if available
|
|
76626
|
+
if (binding.implementationType !== null) {
|
|
76627
|
+
name = getFunctionName(binding.implementationType);
|
|
76628
|
+
}
|
|
76629
|
+
registeredBindingsList = `${registeredBindingsList}\n ${name}`;
|
|
76630
|
+
if (binding.constraint.metaData) {
|
|
76631
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string, @typescript-eslint/restrict-template-expressions
|
|
76632
|
+
registeredBindingsList = `${registeredBindingsList} - ${binding.constraint.metaData}`;
|
|
76633
|
+
}
|
|
76634
|
+
});
|
|
76635
|
+
}
|
|
76636
|
+
return registeredBindingsList;
|
|
76637
|
+
}
|
|
76638
|
+
function alreadyDependencyChain(request, serviceIdentifier) {
|
|
76639
|
+
if (request.parentRequest === null) {
|
|
76824
76640
|
return false;
|
|
76825
76641
|
}
|
|
76826
|
-
|
|
76827
|
-
|
|
76828
|
-
|
|
76829
|
-
|
|
76830
|
-
|
|
76831
|
-
|
|
76832
|
-
|
|
76833
|
-
|
|
76834
|
-
|
|
76835
|
-
|
|
76836
|
-
|
|
76837
|
-
|
|
76838
|
-
|
|
76839
|
-
|
|
76840
|
-
|
|
76841
|
-
|
|
76842
|
-
|
|
76843
|
-
|
|
76844
|
-
|
|
76845
|
-
|
|
76846
|
-
|
|
76847
|
-
|
|
76642
|
+
else if (request.parentRequest.serviceIdentifier === serviceIdentifier) {
|
|
76643
|
+
return true;
|
|
76644
|
+
}
|
|
76645
|
+
else {
|
|
76646
|
+
return alreadyDependencyChain(request.parentRequest, serviceIdentifier);
|
|
76647
|
+
}
|
|
76648
|
+
}
|
|
76649
|
+
function dependencyChainToString(request) {
|
|
76650
|
+
function _createStringArr(req, result = []) {
|
|
76651
|
+
const serviceIdentifier = getServiceIdentifierAsString(req.serviceIdentifier);
|
|
76652
|
+
result.push(serviceIdentifier);
|
|
76653
|
+
if (req.parentRequest !== null) {
|
|
76654
|
+
return _createStringArr(req.parentRequest, result);
|
|
76655
|
+
}
|
|
76656
|
+
return result;
|
|
76657
|
+
}
|
|
76658
|
+
const stringArr = _createStringArr(request);
|
|
76659
|
+
return stringArr.reverse().join(' --> ');
|
|
76660
|
+
}
|
|
76661
|
+
function circularDependencyToException(request) {
|
|
76662
|
+
request.childRequests.forEach((childRequest) => {
|
|
76663
|
+
if (alreadyDependencyChain(request, childRequest.serviceIdentifier)) {
|
|
76664
|
+
const services = dependencyChainToString(childRequest);
|
|
76665
|
+
throw new Error(`${ERROR_MSGS.CIRCULAR_DEPENDENCY} ${services}`);
|
|
76848
76666
|
}
|
|
76849
76667
|
else {
|
|
76850
|
-
|
|
76851
|
-
|
|
76668
|
+
circularDependencyToException(childRequest);
|
|
76669
|
+
}
|
|
76670
|
+
});
|
|
76671
|
+
}
|
|
76672
|
+
function listMetadataForTarget(serviceIdentifierString, target) {
|
|
76673
|
+
if (target.isTagged() || target.isNamed()) {
|
|
76674
|
+
let m = '';
|
|
76675
|
+
const namedTag = target.getNamedTag();
|
|
76676
|
+
const otherTags = target.getCustomTags();
|
|
76677
|
+
if (namedTag !== null) {
|
|
76678
|
+
m += stringifyMetadata(namedTag) + '\n';
|
|
76679
|
+
}
|
|
76680
|
+
if (otherTags !== null) {
|
|
76681
|
+
otherTags.forEach((tag) => {
|
|
76682
|
+
m += stringifyMetadata(tag) + '\n';
|
|
76683
|
+
});
|
|
76852
76684
|
}
|
|
76685
|
+
return ` ${serviceIdentifierString}\n ${serviceIdentifierString} - ${m}`;
|
|
76686
|
+
}
|
|
76687
|
+
else {
|
|
76688
|
+
return ` ${serviceIdentifierString}`;
|
|
76689
|
+
}
|
|
76690
|
+
}
|
|
76691
|
+
function getFunctionName(func) {
|
|
76692
|
+
if (func.name != null && func.name !== '') {
|
|
76693
|
+
return func.name;
|
|
76694
|
+
}
|
|
76695
|
+
else {
|
|
76696
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
76697
|
+
const name = func.toString();
|
|
76698
|
+
const match = name.match(/^function\s*([^\s(]+)/);
|
|
76699
|
+
return match === null
|
|
76700
|
+
? `Anonymous function: ${name}`
|
|
76701
|
+
: match[1];
|
|
76702
|
+
}
|
|
76703
|
+
}
|
|
76704
|
+
function getSymbolDescription(symbol) {
|
|
76705
|
+
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
76706
|
+
return symbol.toString().slice(7, -1);
|
|
76707
|
+
}
|
|
76708
|
+
function stringifyMetadata(metadata) {
|
|
76709
|
+
return `{"key":"${metadata.key.toString()}","value":"${metadata.value.toString()}"}`;
|
|
76710
|
+
}
|
|
76711
|
+
|
|
76712
|
+
|
|
76713
|
+
/***/ }),
|
|
76714
|
+
|
|
76715
|
+
/***/ "../../node_modules/uuid/dist/cjs/index.js":
|
|
76716
|
+
/*!*************************************************!*\
|
|
76717
|
+
!*** ../../node_modules/uuid/dist/cjs/index.js ***!
|
|
76718
|
+
\*************************************************/
|
|
76719
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
76720
|
+
|
|
76721
|
+
"use strict";
|
|
76722
|
+
|
|
76723
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76724
|
+
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;
|
|
76725
|
+
var max_js_1 = __webpack_require__(/*! ./max.js */ "../../node_modules/uuid/dist/cjs/max.js");
|
|
76726
|
+
Object.defineProperty(exports, "MAX", ({ enumerable: true, get: function () { return max_js_1.default; } }));
|
|
76727
|
+
var nil_js_1 = __webpack_require__(/*! ./nil.js */ "../../node_modules/uuid/dist/cjs/nil.js");
|
|
76728
|
+
Object.defineProperty(exports, "NIL", ({ enumerable: true, get: function () { return nil_js_1.default; } }));
|
|
76729
|
+
var parse_js_1 = __webpack_require__(/*! ./parse.js */ "../../node_modules/uuid/dist/cjs/parse.js");
|
|
76730
|
+
Object.defineProperty(exports, "parse", ({ enumerable: true, get: function () { return parse_js_1.default; } }));
|
|
76731
|
+
var stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
|
|
76732
|
+
Object.defineProperty(exports, "stringify", ({ enumerable: true, get: function () { return stringify_js_1.default; } }));
|
|
76733
|
+
var v1_js_1 = __webpack_require__(/*! ./v1.js */ "../../node_modules/uuid/dist/cjs/v1.js");
|
|
76734
|
+
Object.defineProperty(exports, "v1", ({ enumerable: true, get: function () { return v1_js_1.default; } }));
|
|
76735
|
+
var v1ToV6_js_1 = __webpack_require__(/*! ./v1ToV6.js */ "../../node_modules/uuid/dist/cjs/v1ToV6.js");
|
|
76736
|
+
Object.defineProperty(exports, "v1ToV6", ({ enumerable: true, get: function () { return v1ToV6_js_1.default; } }));
|
|
76737
|
+
var v3_js_1 = __webpack_require__(/*! ./v3.js */ "../../node_modules/uuid/dist/cjs/v3.js");
|
|
76738
|
+
Object.defineProperty(exports, "v3", ({ enumerable: true, get: function () { return v3_js_1.default; } }));
|
|
76739
|
+
var v4_js_1 = __webpack_require__(/*! ./v4.js */ "../../node_modules/uuid/dist/cjs/v4.js");
|
|
76740
|
+
Object.defineProperty(exports, "v4", ({ enumerable: true, get: function () { return v4_js_1.default; } }));
|
|
76741
|
+
var v5_js_1 = __webpack_require__(/*! ./v5.js */ "../../node_modules/uuid/dist/cjs/v5.js");
|
|
76742
|
+
Object.defineProperty(exports, "v5", ({ enumerable: true, get: function () { return v5_js_1.default; } }));
|
|
76743
|
+
var v6_js_1 = __webpack_require__(/*! ./v6.js */ "../../node_modules/uuid/dist/cjs/v6.js");
|
|
76744
|
+
Object.defineProperty(exports, "v6", ({ enumerable: true, get: function () { return v6_js_1.default; } }));
|
|
76745
|
+
var v6ToV1_js_1 = __webpack_require__(/*! ./v6ToV1.js */ "../../node_modules/uuid/dist/cjs/v6ToV1.js");
|
|
76746
|
+
Object.defineProperty(exports, "v6ToV1", ({ enumerable: true, get: function () { return v6ToV1_js_1.default; } }));
|
|
76747
|
+
var v7_js_1 = __webpack_require__(/*! ./v7.js */ "../../node_modules/uuid/dist/cjs/v7.js");
|
|
76748
|
+
Object.defineProperty(exports, "v7", ({ enumerable: true, get: function () { return v7_js_1.default; } }));
|
|
76749
|
+
var validate_js_1 = __webpack_require__(/*! ./validate.js */ "../../node_modules/uuid/dist/cjs/validate.js");
|
|
76750
|
+
Object.defineProperty(exports, "validate", ({ enumerable: true, get: function () { return validate_js_1.default; } }));
|
|
76751
|
+
var version_js_1 = __webpack_require__(/*! ./version.js */ "../../node_modules/uuid/dist/cjs/version.js");
|
|
76752
|
+
Object.defineProperty(exports, "version", ({ enumerable: true, get: function () { return version_js_1.default; } }));
|
|
76753
|
+
|
|
76754
|
+
|
|
76755
|
+
/***/ }),
|
|
76756
|
+
|
|
76757
|
+
/***/ "../../node_modules/uuid/dist/cjs/max.js":
|
|
76758
|
+
/*!***********************************************!*\
|
|
76759
|
+
!*** ../../node_modules/uuid/dist/cjs/max.js ***!
|
|
76760
|
+
\***********************************************/
|
|
76761
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
76762
|
+
|
|
76763
|
+
"use strict";
|
|
76764
|
+
|
|
76765
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76766
|
+
exports["default"] = 'ffffffff-ffff-ffff-ffff-ffffffffffff';
|
|
76767
|
+
|
|
76768
|
+
|
|
76769
|
+
/***/ }),
|
|
76770
|
+
|
|
76771
|
+
/***/ "../../node_modules/uuid/dist/cjs/md5.js":
|
|
76772
|
+
/*!***********************************************!*\
|
|
76773
|
+
!*** ../../node_modules/uuid/dist/cjs/md5.js ***!
|
|
76774
|
+
\***********************************************/
|
|
76775
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
76776
|
+
|
|
76777
|
+
"use strict";
|
|
76778
|
+
|
|
76779
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76780
|
+
const crypto_1 = __webpack_require__(/*! crypto */ "crypto");
|
|
76781
|
+
function md5(bytes) {
|
|
76782
|
+
if (Array.isArray(bytes)) {
|
|
76783
|
+
bytes = Buffer.from(bytes);
|
|
76784
|
+
}
|
|
76785
|
+
else if (typeof bytes === 'string') {
|
|
76786
|
+
bytes = Buffer.from(bytes, 'utf8');
|
|
76787
|
+
}
|
|
76788
|
+
return (0, crypto_1.createHash)('md5').update(bytes).digest();
|
|
76789
|
+
}
|
|
76790
|
+
exports["default"] = md5;
|
|
76791
|
+
|
|
76792
|
+
|
|
76793
|
+
/***/ }),
|
|
76794
|
+
|
|
76795
|
+
/***/ "../../node_modules/uuid/dist/cjs/native.js":
|
|
76796
|
+
/*!**************************************************!*\
|
|
76797
|
+
!*** ../../node_modules/uuid/dist/cjs/native.js ***!
|
|
76798
|
+
\**************************************************/
|
|
76799
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
76800
|
+
|
|
76801
|
+
"use strict";
|
|
76802
|
+
|
|
76803
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76804
|
+
const crypto_1 = __webpack_require__(/*! crypto */ "crypto");
|
|
76805
|
+
exports["default"] = { randomUUID: crypto_1.randomUUID };
|
|
76806
|
+
|
|
76807
|
+
|
|
76808
|
+
/***/ }),
|
|
76809
|
+
|
|
76810
|
+
/***/ "../../node_modules/uuid/dist/cjs/nil.js":
|
|
76811
|
+
/*!***********************************************!*\
|
|
76812
|
+
!*** ../../node_modules/uuid/dist/cjs/nil.js ***!
|
|
76813
|
+
\***********************************************/
|
|
76814
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
76815
|
+
|
|
76816
|
+
"use strict";
|
|
76817
|
+
|
|
76818
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76819
|
+
exports["default"] = '00000000-0000-0000-0000-000000000000';
|
|
76820
|
+
|
|
76821
|
+
|
|
76822
|
+
/***/ }),
|
|
76823
|
+
|
|
76824
|
+
/***/ "../../node_modules/uuid/dist/cjs/parse.js":
|
|
76825
|
+
/*!*************************************************!*\
|
|
76826
|
+
!*** ../../node_modules/uuid/dist/cjs/parse.js ***!
|
|
76827
|
+
\*************************************************/
|
|
76828
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
76829
|
+
|
|
76830
|
+
"use strict";
|
|
76831
|
+
|
|
76832
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76833
|
+
const validate_js_1 = __webpack_require__(/*! ./validate.js */ "../../node_modules/uuid/dist/cjs/validate.js");
|
|
76834
|
+
function parse(uuid) {
|
|
76835
|
+
if (!(0, validate_js_1.default)(uuid)) {
|
|
76836
|
+
throw TypeError('Invalid UUID');
|
|
76853
76837
|
}
|
|
76854
|
-
|
|
76855
|
-
|
|
76856
|
-
|
|
76838
|
+
let v;
|
|
76839
|
+
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);
|
|
76840
|
+
}
|
|
76841
|
+
exports["default"] = parse;
|
|
76857
76842
|
|
|
76858
76843
|
|
|
76859
76844
|
/***/ }),
|
|
76860
76845
|
|
|
76861
|
-
/***/ "../../node_modules/
|
|
76862
|
-
|
|
76863
|
-
!*** ../../node_modules/
|
|
76864
|
-
|
|
76846
|
+
/***/ "../../node_modules/uuid/dist/cjs/regex.js":
|
|
76847
|
+
/*!*************************************************!*\
|
|
76848
|
+
!*** ../../node_modules/uuid/dist/cjs/regex.js ***!
|
|
76849
|
+
\*************************************************/
|
|
76865
76850
|
/***/ ((__unused_webpack_module, exports) => {
|
|
76866
76851
|
|
|
76867
76852
|
"use strict";
|
|
76868
76853
|
|
|
76869
76854
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76870
|
-
exports
|
|
76871
|
-
|
|
76872
|
-
|
|
76873
|
-
|
|
76874
|
-
|
|
76875
|
-
|
|
76855
|
+
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;
|
|
76856
|
+
|
|
76857
|
+
|
|
76858
|
+
/***/ }),
|
|
76859
|
+
|
|
76860
|
+
/***/ "../../node_modules/uuid/dist/cjs/rng.js":
|
|
76861
|
+
/*!***********************************************!*\
|
|
76862
|
+
!*** ../../node_modules/uuid/dist/cjs/rng.js ***!
|
|
76863
|
+
\***********************************************/
|
|
76864
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
76865
|
+
|
|
76866
|
+
"use strict";
|
|
76867
|
+
|
|
76868
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76869
|
+
const crypto_1 = __webpack_require__(/*! crypto */ "crypto");
|
|
76870
|
+
const rnds8Pool = new Uint8Array(256);
|
|
76871
|
+
let poolPtr = rnds8Pool.length;
|
|
76872
|
+
function rng() {
|
|
76873
|
+
if (poolPtr > rnds8Pool.length - 16) {
|
|
76874
|
+
(0, crypto_1.randomFillSync)(rnds8Pool);
|
|
76875
|
+
poolPtr = 0;
|
|
76876
|
+
}
|
|
76877
|
+
return rnds8Pool.slice(poolPtr, (poolPtr += 16));
|
|
76876
76878
|
}
|
|
76877
|
-
|
|
76878
|
-
|
|
76879
|
-
|
|
76879
|
+
exports["default"] = rng;
|
|
76880
|
+
|
|
76881
|
+
|
|
76882
|
+
/***/ }),
|
|
76883
|
+
|
|
76884
|
+
/***/ "../../node_modules/uuid/dist/cjs/sha1.js":
|
|
76885
|
+
/*!************************************************!*\
|
|
76886
|
+
!*** ../../node_modules/uuid/dist/cjs/sha1.js ***!
|
|
76887
|
+
\************************************************/
|
|
76888
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
76889
|
+
|
|
76890
|
+
"use strict";
|
|
76891
|
+
|
|
76892
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76893
|
+
const crypto_1 = __webpack_require__(/*! crypto */ "crypto");
|
|
76894
|
+
function sha1(bytes) {
|
|
76895
|
+
if (Array.isArray(bytes)) {
|
|
76896
|
+
bytes = Buffer.from(bytes);
|
|
76880
76897
|
}
|
|
76881
|
-
|
|
76898
|
+
else if (typeof bytes === 'string') {
|
|
76899
|
+
bytes = Buffer.from(bytes, 'utf8');
|
|
76900
|
+
}
|
|
76901
|
+
return (0, crypto_1.createHash)('sha1').update(bytes).digest();
|
|
76882
76902
|
}
|
|
76903
|
+
exports["default"] = sha1;
|
|
76883
76904
|
|
|
76884
76905
|
|
|
76885
76906
|
/***/ }),
|
|
76886
76907
|
|
|
76887
|
-
/***/ "../../node_modules/
|
|
76888
|
-
|
|
76889
|
-
!*** ../../node_modules/
|
|
76890
|
-
|
|
76891
|
-
/***/ (
|
|
76908
|
+
/***/ "../../node_modules/uuid/dist/cjs/stringify.js":
|
|
76909
|
+
/*!*****************************************************!*\
|
|
76910
|
+
!*** ../../node_modules/uuid/dist/cjs/stringify.js ***!
|
|
76911
|
+
\*****************************************************/
|
|
76912
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
76892
76913
|
|
|
76893
76914
|
"use strict";
|
|
76894
76915
|
|
|
76895
|
-
|
|
76896
|
-
|
|
76897
|
-
|
|
76898
|
-
|
|
76899
|
-
|
|
76916
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76917
|
+
exports.unsafeStringify = void 0;
|
|
76918
|
+
const validate_js_1 = __webpack_require__(/*! ./validate.js */ "../../node_modules/uuid/dist/cjs/validate.js");
|
|
76919
|
+
const byteToHex = [];
|
|
76920
|
+
for (let i = 0; i < 256; ++i) {
|
|
76921
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
76922
|
+
}
|
|
76923
|
+
function unsafeStringify(arr, offset = 0) {
|
|
76924
|
+
return (byteToHex[arr[offset + 0]] +
|
|
76925
|
+
byteToHex[arr[offset + 1]] +
|
|
76926
|
+
byteToHex[arr[offset + 2]] +
|
|
76927
|
+
byteToHex[arr[offset + 3]] +
|
|
76928
|
+
'-' +
|
|
76929
|
+
byteToHex[arr[offset + 4]] +
|
|
76930
|
+
byteToHex[arr[offset + 5]] +
|
|
76931
|
+
'-' +
|
|
76932
|
+
byteToHex[arr[offset + 6]] +
|
|
76933
|
+
byteToHex[arr[offset + 7]] +
|
|
76934
|
+
'-' +
|
|
76935
|
+
byteToHex[arr[offset + 8]] +
|
|
76936
|
+
byteToHex[arr[offset + 9]] +
|
|
76937
|
+
'-' +
|
|
76938
|
+
byteToHex[arr[offset + 10]] +
|
|
76939
|
+
byteToHex[arr[offset + 11]] +
|
|
76940
|
+
byteToHex[arr[offset + 12]] +
|
|
76941
|
+
byteToHex[arr[offset + 13]] +
|
|
76942
|
+
byteToHex[arr[offset + 14]] +
|
|
76943
|
+
byteToHex[arr[offset + 15]]).toLowerCase();
|
|
76944
|
+
}
|
|
76945
|
+
exports.unsafeStringify = unsafeStringify;
|
|
76946
|
+
function stringify(arr, offset = 0) {
|
|
76947
|
+
const uuid = unsafeStringify(arr, offset);
|
|
76948
|
+
if (!(0, validate_js_1.default)(uuid)) {
|
|
76949
|
+
throw TypeError('Stringified UUID is invalid');
|
|
76900
76950
|
}
|
|
76901
|
-
|
|
76902
|
-
}
|
|
76903
|
-
|
|
76904
|
-
|
|
76905
|
-
|
|
76906
|
-
|
|
76907
|
-
|
|
76908
|
-
|
|
76909
|
-
|
|
76910
|
-
|
|
76911
|
-
|
|
76912
|
-
|
|
76913
|
-
|
|
76914
|
-
|
|
76915
|
-
|
|
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
|
-
})();
|
|
76951
|
+
return uuid;
|
|
76952
|
+
}
|
|
76953
|
+
exports["default"] = stringify;
|
|
76954
|
+
|
|
76955
|
+
|
|
76956
|
+
/***/ }),
|
|
76957
|
+
|
|
76958
|
+
/***/ "../../node_modules/uuid/dist/cjs/v1.js":
|
|
76959
|
+
/*!**********************************************!*\
|
|
76960
|
+
!*** ../../node_modules/uuid/dist/cjs/v1.js ***!
|
|
76961
|
+
\**********************************************/
|
|
76962
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
76963
|
+
|
|
76964
|
+
"use strict";
|
|
76965
|
+
|
|
76928
76966
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76929
|
-
exports.
|
|
76930
|
-
const
|
|
76931
|
-
const
|
|
76932
|
-
const
|
|
76933
|
-
|
|
76934
|
-
|
|
76935
|
-
|
|
76936
|
-
|
|
76937
|
-
|
|
76938
|
-
|
|
76939
|
-
|
|
76940
|
-
|
|
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;
|
|
76967
|
+
exports.updateV1State = void 0;
|
|
76968
|
+
const rng_js_1 = __webpack_require__(/*! ./rng.js */ "../../node_modules/uuid/dist/cjs/rng.js");
|
|
76969
|
+
const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
|
|
76970
|
+
const _state = {};
|
|
76971
|
+
function v1(options, buf, offset) {
|
|
76972
|
+
let bytes;
|
|
76973
|
+
const isV6 = options?._v6 ?? false;
|
|
76974
|
+
if (options) {
|
|
76975
|
+
const optionsKeys = Object.keys(options);
|
|
76976
|
+
if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') {
|
|
76977
|
+
options = undefined;
|
|
76978
|
+
}
|
|
76961
76979
|
}
|
|
76962
|
-
if (
|
|
76963
|
-
|
|
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}`);
|
|
76980
|
+
if (options) {
|
|
76981
|
+
bytes = v1Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset);
|
|
76967
76982
|
}
|
|
76968
|
-
|
|
76969
|
-
|
|
76970
|
-
const
|
|
76971
|
-
|
|
76972
|
-
|
|
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}`);
|
|
76983
|
+
else {
|
|
76984
|
+
const now = Date.now();
|
|
76985
|
+
const rnds = (0, rng_js_1.default)();
|
|
76986
|
+
updateV1State(_state, now, rnds);
|
|
76987
|
+
bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset);
|
|
76983
76988
|
}
|
|
76984
|
-
|
|
76985
|
-
|
|
76989
|
+
return buf ?? (0, stringify_js_1.unsafeStringify)(bytes);
|
|
76990
|
+
}
|
|
76991
|
+
function updateV1State(state, now, rnds) {
|
|
76992
|
+
state.msecs ??= -Infinity;
|
|
76993
|
+
state.nsecs ??= 0;
|
|
76994
|
+
if (now === state.msecs) {
|
|
76995
|
+
state.nsecs++;
|
|
76996
|
+
if (state.nsecs >= 10000) {
|
|
76997
|
+
state.node = undefined;
|
|
76998
|
+
state.nsecs = 0;
|
|
76999
|
+
}
|
|
77000
|
+
}
|
|
77001
|
+
else if (now > state.msecs) {
|
|
77002
|
+
state.nsecs = 0;
|
|
77003
|
+
}
|
|
77004
|
+
else if (now < state.msecs) {
|
|
77005
|
+
state.node = undefined;
|
|
77006
|
+
}
|
|
77007
|
+
if (!state.node) {
|
|
77008
|
+
state.node = rnds.slice(10, 16);
|
|
77009
|
+
state.node[0] |= 0x01;
|
|
77010
|
+
state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff;
|
|
77011
|
+
}
|
|
77012
|
+
state.msecs = now;
|
|
77013
|
+
return state;
|
|
77014
|
+
}
|
|
77015
|
+
exports.updateV1State = updateV1State;
|
|
77016
|
+
function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) {
|
|
77017
|
+
if (rnds.length < 16) {
|
|
77018
|
+
throw new Error('Random bytes length must be >= 16');
|
|
77019
|
+
}
|
|
77020
|
+
if (!buf) {
|
|
77021
|
+
buf = new Uint8Array(16);
|
|
77022
|
+
offset = 0;
|
|
77023
|
+
}
|
|
77024
|
+
else {
|
|
77025
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
77026
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
77027
|
+
}
|
|
77028
|
+
}
|
|
77029
|
+
msecs ??= Date.now();
|
|
77030
|
+
nsecs ??= 0;
|
|
77031
|
+
clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff;
|
|
77032
|
+
node ??= rnds.slice(10, 16);
|
|
77033
|
+
msecs += 12219292800000;
|
|
77034
|
+
const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
77035
|
+
buf[offset++] = (tl >>> 24) & 0xff;
|
|
77036
|
+
buf[offset++] = (tl >>> 16) & 0xff;
|
|
77037
|
+
buf[offset++] = (tl >>> 8) & 0xff;
|
|
77038
|
+
buf[offset++] = tl & 0xff;
|
|
77039
|
+
const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff;
|
|
77040
|
+
buf[offset++] = (tmh >>> 8) & 0xff;
|
|
77041
|
+
buf[offset++] = tmh & 0xff;
|
|
77042
|
+
buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10;
|
|
77043
|
+
buf[offset++] = (tmh >>> 16) & 0xff;
|
|
77044
|
+
buf[offset++] = (clockseq >>> 8) | 0x80;
|
|
77045
|
+
buf[offset++] = clockseq & 0xff;
|
|
77046
|
+
for (let n = 0; n < 6; ++n) {
|
|
77047
|
+
buf[offset++] = node[n];
|
|
77048
|
+
}
|
|
77049
|
+
return buf;
|
|
77050
|
+
}
|
|
77051
|
+
exports["default"] = v1;
|
|
76986
77052
|
|
|
76987
77053
|
|
|
76988
77054
|
/***/ }),
|
|
76989
77055
|
|
|
76990
|
-
/***/ "../../node_modules/
|
|
76991
|
-
|
|
76992
|
-
!*** ../../node_modules/
|
|
76993
|
-
|
|
76994
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
77056
|
+
/***/ "../../node_modules/uuid/dist/cjs/v1ToV6.js":
|
|
77057
|
+
/*!**************************************************!*\
|
|
77058
|
+
!*** ../../node_modules/uuid/dist/cjs/v1ToV6.js ***!
|
|
77059
|
+
\**************************************************/
|
|
77060
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
76995
77061
|
|
|
76996
77062
|
"use strict";
|
|
76997
77063
|
|
|
76998
77064
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76999
|
-
|
|
77000
|
-
|
|
77001
|
-
|
|
77002
|
-
|
|
77003
|
-
|
|
77004
|
-
|
|
77065
|
+
const parse_js_1 = __webpack_require__(/*! ./parse.js */ "../../node_modules/uuid/dist/cjs/parse.js");
|
|
77066
|
+
const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
|
|
77067
|
+
function v1ToV6(uuid) {
|
|
77068
|
+
const v1Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid;
|
|
77069
|
+
const v6Bytes = _v1ToV6(v1Bytes);
|
|
77070
|
+
return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes;
|
|
77071
|
+
}
|
|
77072
|
+
exports["default"] = v1ToV6;
|
|
77073
|
+
function _v1ToV6(v1Bytes) {
|
|
77074
|
+
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
77075
|
}
|
|
77006
77076
|
|
|
77007
77077
|
|
|
77008
77078
|
/***/ }),
|
|
77009
77079
|
|
|
77010
|
-
/***/ "../../node_modules/
|
|
77011
|
-
|
|
77012
|
-
!*** ../../node_modules/
|
|
77013
|
-
|
|
77014
|
-
/***/ (
|
|
77080
|
+
/***/ "../../node_modules/uuid/dist/cjs/v3.js":
|
|
77081
|
+
/*!**********************************************!*\
|
|
77082
|
+
!*** ../../node_modules/uuid/dist/cjs/v3.js ***!
|
|
77083
|
+
\**********************************************/
|
|
77084
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
77015
77085
|
|
|
77016
77086
|
"use strict";
|
|
77017
77087
|
|
|
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
77088
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
77052
|
-
exports.
|
|
77053
|
-
|
|
77054
|
-
const
|
|
77055
|
-
|
|
77056
|
-
|
|
77057
|
-
|
|
77089
|
+
exports.URL = exports.DNS = void 0;
|
|
77090
|
+
const md5_js_1 = __webpack_require__(/*! ./md5.js */ "../../node_modules/uuid/dist/cjs/md5.js");
|
|
77091
|
+
const v35_js_1 = __webpack_require__(/*! ./v35.js */ "../../node_modules/uuid/dist/cjs/v35.js");
|
|
77092
|
+
var v35_js_2 = __webpack_require__(/*! ./v35.js */ "../../node_modules/uuid/dist/cjs/v35.js");
|
|
77093
|
+
Object.defineProperty(exports, "DNS", ({ enumerable: true, get: function () { return v35_js_2.DNS; } }));
|
|
77094
|
+
Object.defineProperty(exports, "URL", ({ enumerable: true, get: function () { return v35_js_2.URL; } }));
|
|
77095
|
+
function v3(value, namespace, buf, offset) {
|
|
77096
|
+
return (0, v35_js_1.default)(0x30, md5_js_1.default, value, namespace, buf, offset);
|
|
77058
77097
|
}
|
|
77059
|
-
|
|
77060
|
-
|
|
77061
|
-
|
|
77098
|
+
v3.DNS = v35_js_1.DNS;
|
|
77099
|
+
v3.URL = v35_js_1.URL;
|
|
77100
|
+
exports["default"] = v3;
|
|
77101
|
+
|
|
77102
|
+
|
|
77103
|
+
/***/ }),
|
|
77104
|
+
|
|
77105
|
+
/***/ "../../node_modules/uuid/dist/cjs/v35.js":
|
|
77106
|
+
/*!***********************************************!*\
|
|
77107
|
+
!*** ../../node_modules/uuid/dist/cjs/v35.js ***!
|
|
77108
|
+
\***********************************************/
|
|
77109
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
77110
|
+
|
|
77111
|
+
"use strict";
|
|
77112
|
+
|
|
77113
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
77114
|
+
exports.URL = exports.DNS = exports.stringToBytes = void 0;
|
|
77115
|
+
const parse_js_1 = __webpack_require__(/*! ./parse.js */ "../../node_modules/uuid/dist/cjs/parse.js");
|
|
77116
|
+
const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
|
|
77117
|
+
function stringToBytes(str) {
|
|
77118
|
+
str = unescape(encodeURIComponent(str));
|
|
77119
|
+
const bytes = new Uint8Array(str.length);
|
|
77120
|
+
for (let i = 0; i < str.length; ++i) {
|
|
77121
|
+
bytes[i] = str.charCodeAt(i);
|
|
77122
|
+
}
|
|
77123
|
+
return bytes;
|
|
77124
|
+
}
|
|
77125
|
+
exports.stringToBytes = stringToBytes;
|
|
77126
|
+
exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
77127
|
+
exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
77128
|
+
function v35(version, hash, value, namespace, buf, offset) {
|
|
77129
|
+
const valueBytes = typeof value === 'string' ? stringToBytes(value) : value;
|
|
77130
|
+
const namespaceBytes = typeof namespace === 'string' ? (0, parse_js_1.default)(namespace) : namespace;
|
|
77131
|
+
if (typeof namespace === 'string') {
|
|
77132
|
+
namespace = (0, parse_js_1.default)(namespace);
|
|
77062
77133
|
}
|
|
77063
|
-
|
|
77064
|
-
|
|
77065
|
-
|
|
77134
|
+
if (namespace?.length !== 16) {
|
|
77135
|
+
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
77136
|
+
}
|
|
77137
|
+
let bytes = new Uint8Array(16 + valueBytes.length);
|
|
77138
|
+
bytes.set(namespaceBytes);
|
|
77139
|
+
bytes.set(valueBytes, namespaceBytes.length);
|
|
77140
|
+
bytes = hash(bytes);
|
|
77141
|
+
bytes[6] = (bytes[6] & 0x0f) | version;
|
|
77142
|
+
bytes[8] = (bytes[8] & 0x3f) | 0x80;
|
|
77143
|
+
if (buf) {
|
|
77144
|
+
offset = offset || 0;
|
|
77145
|
+
for (let i = 0; i < 16; ++i) {
|
|
77146
|
+
buf[offset + i] = bytes[i];
|
|
77066
77147
|
}
|
|
77067
|
-
|
|
77148
|
+
return buf;
|
|
77068
77149
|
}
|
|
77069
|
-
|
|
77070
|
-
|
|
77150
|
+
return (0, stringify_js_1.unsafeStringify)(bytes);
|
|
77151
|
+
}
|
|
77152
|
+
exports["default"] = v35;
|
|
77071
77153
|
|
|
77072
77154
|
|
|
77073
77155
|
/***/ }),
|
|
77074
77156
|
|
|
77075
|
-
/***/ "../../node_modules/
|
|
77076
|
-
|
|
77077
|
-
!*** ../../node_modules/
|
|
77078
|
-
|
|
77079
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
77157
|
+
/***/ "../../node_modules/uuid/dist/cjs/v4.js":
|
|
77158
|
+
/*!**********************************************!*\
|
|
77159
|
+
!*** ../../node_modules/uuid/dist/cjs/v4.js ***!
|
|
77160
|
+
\**********************************************/
|
|
77161
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
77080
77162
|
|
|
77081
77163
|
"use strict";
|
|
77082
77164
|
|
|
77083
77165
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
77084
|
-
|
|
77085
|
-
|
|
77086
|
-
(
|
|
77087
|
-
|
|
77088
|
-
|
|
77089
|
-
|
|
77090
|
-
}
|
|
77166
|
+
const native_js_1 = __webpack_require__(/*! ./native.js */ "../../node_modules/uuid/dist/cjs/native.js");
|
|
77167
|
+
const rng_js_1 = __webpack_require__(/*! ./rng.js */ "../../node_modules/uuid/dist/cjs/rng.js");
|
|
77168
|
+
const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
|
|
77169
|
+
function v4(options, buf, offset) {
|
|
77170
|
+
if (native_js_1.default.randomUUID && !buf && !options) {
|
|
77171
|
+
return native_js_1.default.randomUUID();
|
|
77172
|
+
}
|
|
77173
|
+
options = options || {};
|
|
77174
|
+
const rnds = options.random ?? options.rng?.() ?? (0, rng_js_1.default)();
|
|
77175
|
+
if (rnds.length < 16) {
|
|
77176
|
+
throw new Error('Random bytes length must be >= 16');
|
|
77177
|
+
}
|
|
77178
|
+
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
|
77179
|
+
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
|
77180
|
+
if (buf) {
|
|
77181
|
+
offset = offset || 0;
|
|
77182
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
77183
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
77184
|
+
}
|
|
77185
|
+
for (let i = 0; i < 16; ++i) {
|
|
77186
|
+
buf[offset + i] = rnds[i];
|
|
77187
|
+
}
|
|
77188
|
+
return buf;
|
|
77189
|
+
}
|
|
77190
|
+
return (0, stringify_js_1.unsafeStringify)(rnds);
|
|
77191
|
+
}
|
|
77192
|
+
exports["default"] = v4;
|
|
77091
77193
|
|
|
77092
77194
|
|
|
77093
77195
|
/***/ }),
|
|
77094
77196
|
|
|
77095
|
-
/***/ "../../node_modules/
|
|
77096
|
-
|
|
77097
|
-
!*** ../../node_modules/
|
|
77098
|
-
|
|
77099
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
77197
|
+
/***/ "../../node_modules/uuid/dist/cjs/v5.js":
|
|
77198
|
+
/*!**********************************************!*\
|
|
77199
|
+
!*** ../../node_modules/uuid/dist/cjs/v5.js ***!
|
|
77200
|
+
\**********************************************/
|
|
77201
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
77100
77202
|
|
|
77101
77203
|
"use strict";
|
|
77102
77204
|
|
|
77103
77205
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
77104
|
-
exports.
|
|
77105
|
-
|
|
77106
|
-
|
|
77107
|
-
|
|
77108
|
-
|
|
77109
|
-
|
|
77206
|
+
exports.URL = exports.DNS = void 0;
|
|
77207
|
+
const sha1_js_1 = __webpack_require__(/*! ./sha1.js */ "../../node_modules/uuid/dist/cjs/sha1.js");
|
|
77208
|
+
const v35_js_1 = __webpack_require__(/*! ./v35.js */ "../../node_modules/uuid/dist/cjs/v35.js");
|
|
77209
|
+
var v35_js_2 = __webpack_require__(/*! ./v35.js */ "../../node_modules/uuid/dist/cjs/v35.js");
|
|
77210
|
+
Object.defineProperty(exports, "DNS", ({ enumerable: true, get: function () { return v35_js_2.DNS; } }));
|
|
77211
|
+
Object.defineProperty(exports, "URL", ({ enumerable: true, get: function () { return v35_js_2.URL; } }));
|
|
77212
|
+
function v5(value, namespace, buf, offset) {
|
|
77213
|
+
return (0, v35_js_1.default)(0x50, sha1_js_1.default, value, namespace, buf, offset);
|
|
77110
77214
|
}
|
|
77215
|
+
v5.DNS = v35_js_1.DNS;
|
|
77216
|
+
v5.URL = v35_js_1.URL;
|
|
77217
|
+
exports["default"] = v5;
|
|
77111
77218
|
|
|
77112
77219
|
|
|
77113
77220
|
/***/ }),
|
|
77114
77221
|
|
|
77115
|
-
/***/ "../../node_modules/
|
|
77116
|
-
|
|
77117
|
-
!*** ../../node_modules/
|
|
77118
|
-
|
|
77119
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
77222
|
+
/***/ "../../node_modules/uuid/dist/cjs/v6.js":
|
|
77223
|
+
/*!**********************************************!*\
|
|
77224
|
+
!*** ../../node_modules/uuid/dist/cjs/v6.js ***!
|
|
77225
|
+
\**********************************************/
|
|
77226
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
77120
77227
|
|
|
77121
77228
|
"use strict";
|
|
77122
77229
|
|
|
77123
77230
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
77124
|
-
|
|
77125
|
-
|
|
77126
|
-
|
|
77127
|
-
|
|
77231
|
+
const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
|
|
77232
|
+
const v1_js_1 = __webpack_require__(/*! ./v1.js */ "../../node_modules/uuid/dist/cjs/v1.js");
|
|
77233
|
+
const v1ToV6_js_1 = __webpack_require__(/*! ./v1ToV6.js */ "../../node_modules/uuid/dist/cjs/v1ToV6.js");
|
|
77234
|
+
function v6(options, buf, offset) {
|
|
77235
|
+
options ??= {};
|
|
77236
|
+
offset ??= 0;
|
|
77237
|
+
let bytes = (0, v1_js_1.default)({ ...options, _v6: true }, new Uint8Array(16));
|
|
77238
|
+
bytes = (0, v1ToV6_js_1.default)(bytes);
|
|
77239
|
+
if (buf) {
|
|
77240
|
+
for (let i = 0; i < 16; i++) {
|
|
77241
|
+
buf[offset + i] = bytes[i];
|
|
77242
|
+
}
|
|
77243
|
+
return buf;
|
|
77244
|
+
}
|
|
77245
|
+
return (0, stringify_js_1.unsafeStringify)(bytes);
|
|
77128
77246
|
}
|
|
77247
|
+
exports["default"] = v6;
|
|
77129
77248
|
|
|
77130
77249
|
|
|
77131
77250
|
/***/ }),
|
|
77132
77251
|
|
|
77133
|
-
/***/ "../../node_modules/
|
|
77134
|
-
|
|
77135
|
-
!*** ../../node_modules/
|
|
77136
|
-
|
|
77137
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
77252
|
+
/***/ "../../node_modules/uuid/dist/cjs/v6ToV1.js":
|
|
77253
|
+
/*!**************************************************!*\
|
|
77254
|
+
!*** ../../node_modules/uuid/dist/cjs/v6ToV1.js ***!
|
|
77255
|
+
\**************************************************/
|
|
77256
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
77138
77257
|
|
|
77139
77258
|
"use strict";
|
|
77140
77259
|
|
|
77141
77260
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
77142
|
-
|
|
77143
|
-
|
|
77144
|
-
|
|
77145
|
-
|
|
77146
|
-
|
|
77147
|
-
|
|
77148
|
-
|
|
77149
|
-
|
|
77150
|
-
|
|
77151
|
-
|
|
77152
|
-
}
|
|
77153
|
-
return undefined;
|
|
77261
|
+
const parse_js_1 = __webpack_require__(/*! ./parse.js */ "../../node_modules/uuid/dist/cjs/parse.js");
|
|
77262
|
+
const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
|
|
77263
|
+
function v6ToV1(uuid) {
|
|
77264
|
+
const v6Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid;
|
|
77265
|
+
const v1Bytes = _v6ToV1(v6Bytes);
|
|
77266
|
+
return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v1Bytes) : v1Bytes;
|
|
77267
|
+
}
|
|
77268
|
+
exports["default"] = v6ToV1;
|
|
77269
|
+
function _v6ToV1(v6Bytes) {
|
|
77270
|
+
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
77271
|
}
|
|
77155
77272
|
|
|
77156
77273
|
|
|
77157
77274
|
/***/ }),
|
|
77158
77275
|
|
|
77159
|
-
/***/ "../../node_modules/
|
|
77160
|
-
|
|
77161
|
-
!*** ../../node_modules/
|
|
77162
|
-
|
|
77163
|
-
/***/ (
|
|
77276
|
+
/***/ "../../node_modules/uuid/dist/cjs/v7.js":
|
|
77277
|
+
/*!**********************************************!*\
|
|
77278
|
+
!*** ../../node_modules/uuid/dist/cjs/v7.js ***!
|
|
77279
|
+
\**********************************************/
|
|
77280
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
77164
77281
|
|
|
77165
77282
|
"use strict";
|
|
77166
77283
|
|
|
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
77284
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
77201
|
-
exports.
|
|
77202
|
-
|
|
77203
|
-
|
|
77204
|
-
|
|
77205
|
-
|
|
77206
|
-
|
|
77207
|
-
|
|
77208
|
-
|
|
77209
|
-
if (typeof serviceIdentifier === 'function') {
|
|
77210
|
-
return serviceIdentifier.name;
|
|
77211
|
-
}
|
|
77212
|
-
else if (typeof serviceIdentifier === 'symbol') {
|
|
77213
|
-
return serviceIdentifier.toString();
|
|
77285
|
+
exports.updateV7State = void 0;
|
|
77286
|
+
const rng_js_1 = __webpack_require__(/*! ./rng.js */ "../../node_modules/uuid/dist/cjs/rng.js");
|
|
77287
|
+
const stringify_js_1 = __webpack_require__(/*! ./stringify.js */ "../../node_modules/uuid/dist/cjs/stringify.js");
|
|
77288
|
+
const _state = {};
|
|
77289
|
+
function v7(options, buf, offset) {
|
|
77290
|
+
let bytes;
|
|
77291
|
+
if (options) {
|
|
77292
|
+
bytes = v7Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.seq, buf, offset);
|
|
77214
77293
|
}
|
|
77215
77294
|
else {
|
|
77216
|
-
|
|
77217
|
-
|
|
77218
|
-
|
|
77219
|
-
|
|
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
|
-
});
|
|
77295
|
+
const now = Date.now();
|
|
77296
|
+
const rnds = (0, rng_js_1.default)();
|
|
77297
|
+
updateV7State(_state, now, rnds);
|
|
77298
|
+
bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset);
|
|
77237
77299
|
}
|
|
77238
|
-
return
|
|
77300
|
+
return buf ?? (0, stringify_js_1.unsafeStringify)(bytes);
|
|
77239
77301
|
}
|
|
77240
|
-
function
|
|
77241
|
-
|
|
77242
|
-
|
|
77243
|
-
|
|
77244
|
-
|
|
77245
|
-
|
|
77302
|
+
function updateV7State(state, now, rnds) {
|
|
77303
|
+
state.msecs ??= -Infinity;
|
|
77304
|
+
state.seq ??= 0;
|
|
77305
|
+
if (now > state.msecs) {
|
|
77306
|
+
state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
|
|
77307
|
+
state.msecs = now;
|
|
77246
77308
|
}
|
|
77247
77309
|
else {
|
|
77248
|
-
|
|
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);
|
|
77310
|
+
state.seq = (state.seq + 1) | 0;
|
|
77311
|
+
if (state.seq === 0) {
|
|
77312
|
+
state.msecs++;
|
|
77257
77313
|
}
|
|
77258
|
-
return result;
|
|
77259
77314
|
}
|
|
77260
|
-
|
|
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
|
-
});
|
|
77315
|
+
return state;
|
|
77273
77316
|
}
|
|
77274
|
-
|
|
77275
|
-
|
|
77276
|
-
|
|
77277
|
-
|
|
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}`;
|
|
77317
|
+
exports.updateV7State = updateV7State;
|
|
77318
|
+
function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
|
|
77319
|
+
if (rnds.length < 16) {
|
|
77320
|
+
throw new Error('Random bytes length must be >= 16');
|
|
77291
77321
|
}
|
|
77292
|
-
|
|
77293
|
-
|
|
77294
|
-
|
|
77295
|
-
return func.name;
|
|
77322
|
+
if (!buf) {
|
|
77323
|
+
buf = new Uint8Array(16);
|
|
77324
|
+
offset = 0;
|
|
77296
77325
|
}
|
|
77297
77326
|
else {
|
|
77298
|
-
|
|
77299
|
-
|
|
77300
|
-
|
|
77301
|
-
|
|
77302
|
-
|
|
77303
|
-
|
|
77304
|
-
|
|
77327
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
77328
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
77329
|
+
}
|
|
77330
|
+
}
|
|
77331
|
+
msecs ??= Date.now();
|
|
77332
|
+
seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
|
|
77333
|
+
buf[offset++] = (msecs / 0x10000000000) & 0xff;
|
|
77334
|
+
buf[offset++] = (msecs / 0x100000000) & 0xff;
|
|
77335
|
+
buf[offset++] = (msecs / 0x1000000) & 0xff;
|
|
77336
|
+
buf[offset++] = (msecs / 0x10000) & 0xff;
|
|
77337
|
+
buf[offset++] = (msecs / 0x100) & 0xff;
|
|
77338
|
+
buf[offset++] = msecs & 0xff;
|
|
77339
|
+
buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f);
|
|
77340
|
+
buf[offset++] = (seq >>> 20) & 0xff;
|
|
77341
|
+
buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f);
|
|
77342
|
+
buf[offset++] = (seq >>> 6) & 0xff;
|
|
77343
|
+
buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03);
|
|
77344
|
+
buf[offset++] = rnds[11];
|
|
77345
|
+
buf[offset++] = rnds[12];
|
|
77346
|
+
buf[offset++] = rnds[13];
|
|
77347
|
+
buf[offset++] = rnds[14];
|
|
77348
|
+
buf[offset++] = rnds[15];
|
|
77349
|
+
return buf;
|
|
77305
77350
|
}
|
|
77306
|
-
|
|
77307
|
-
|
|
77308
|
-
|
|
77351
|
+
exports["default"] = v7;
|
|
77352
|
+
|
|
77353
|
+
|
|
77354
|
+
/***/ }),
|
|
77355
|
+
|
|
77356
|
+
/***/ "../../node_modules/uuid/dist/cjs/validate.js":
|
|
77357
|
+
/*!****************************************************!*\
|
|
77358
|
+
!*** ../../node_modules/uuid/dist/cjs/validate.js ***!
|
|
77359
|
+
\****************************************************/
|
|
77360
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
77361
|
+
|
|
77362
|
+
"use strict";
|
|
77363
|
+
|
|
77364
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
77365
|
+
const regex_js_1 = __webpack_require__(/*! ./regex.js */ "../../node_modules/uuid/dist/cjs/regex.js");
|
|
77366
|
+
function validate(uuid) {
|
|
77367
|
+
return typeof uuid === 'string' && regex_js_1.default.test(uuid);
|
|
77309
77368
|
}
|
|
77310
|
-
|
|
77311
|
-
|
|
77369
|
+
exports["default"] = validate;
|
|
77370
|
+
|
|
77371
|
+
|
|
77372
|
+
/***/ }),
|
|
77373
|
+
|
|
77374
|
+
/***/ "../../node_modules/uuid/dist/cjs/version.js":
|
|
77375
|
+
/*!***************************************************!*\
|
|
77376
|
+
!*** ../../node_modules/uuid/dist/cjs/version.js ***!
|
|
77377
|
+
\***************************************************/
|
|
77378
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
77379
|
+
|
|
77380
|
+
"use strict";
|
|
77381
|
+
|
|
77382
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
77383
|
+
const validate_js_1 = __webpack_require__(/*! ./validate.js */ "../../node_modules/uuid/dist/cjs/validate.js");
|
|
77384
|
+
function version(uuid) {
|
|
77385
|
+
if (!(0, validate_js_1.default)(uuid)) {
|
|
77386
|
+
throw TypeError('Invalid UUID');
|
|
77387
|
+
}
|
|
77388
|
+
return parseInt(uuid.slice(14, 15), 16);
|
|
77312
77389
|
}
|
|
77390
|
+
exports["default"] = version;
|
|
77313
77391
|
|
|
77314
77392
|
|
|
77315
77393
|
/***/ }),
|