@nsshunt/ststestrunner 1.0.41 → 1.0.43
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/dist/ststestrunner.mjs +85 -60
- package/dist/ststestrunner.mjs.map +1 -1
- package/dist/ststestrunner.umd.js +85 -60
- package/dist/ststestrunner.umd.js.map +1 -1
- package/package.json +3 -3
- package/types/setupFhirTestResources.d.ts.map +1 -1
- package/types/startUpDelFhirResources.d.ts +1 -0
- package/types/startUpDelFhirResources.d.ts.map +1 -1
- package/types/testCaseFhir01.d.ts.map +1 -1
- package/types/testCaseFhirBase.d.ts.map +1 -1
package/dist/ststestrunner.mjs
CHANGED
|
@@ -17,7 +17,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
17
17
|
return __privateGet(obj, member, getter);
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
var _runner, _workerInstance, _logMessageDataSet, _publishTelemetryTimeout, _publishTelemetryCount, _maxBufferSize, _publishTelemetryTimeoutVal, _color, _randomPastelColour, _TestCase01_instances, GetRandomHexColor_fn, _GetRandomPastelColor, _debug2, _GenLogMessage, _SetupTimeout, _PublishTelemetryData, _ForcePublishTelemetryData, _PublishTelemetry, _OutputLogMessage, _options4, _agentManager, _randomDataRecordset, _runner2, _workerInstance2, _fhirClient, _accesssToken, _clientId, _clientSecret, _publishTelemetryCount2, _maxBufferSize2, _publishTelemetryTimeout2, _publishTelemetryTimeoutVal2, _originRegex, _LogMessage, _PublishTelemetryData2, _ForcePublishTelemetryData2, _SetupTimeout2, _OutputLogMessage2, _GetPersonRecord, _runner3, _workerInstance3, _logMessageDataSet2, _publishTelemetryTimeout3, _publishTelemetryCount3, _maxBufferSize3, _publishTelemetryTimeoutVal3, _color2, _randomPastelColour2, _TestStartUp_instances, GetRandomHexColor_fn2, _GetRandomPastelColor2,
|
|
20
|
+
var _runner, _workerInstance, _logMessageDataSet, _publishTelemetryTimeout, _publishTelemetryCount, _maxBufferSize, _publishTelemetryTimeoutVal, _color, _randomPastelColour, _TestCase01_instances, GetRandomHexColor_fn, _GetRandomPastelColor, _debug2, _GenLogMessage, _SetupTimeout, _PublishTelemetryData, _ForcePublishTelemetryData, _PublishTelemetry, _OutputLogMessage, _options4, _agentManager, _randomDataRecordset, _runner2, _workerInstance2, _fhirClient, _accesssToken, _clientId, _clientSecret, _publishTelemetryCount2, _maxBufferSize2, _publishTelemetryTimeout2, _publishTelemetryTimeoutVal2, _originRegex, _LogMessage, _PublishTelemetryData2, _ForcePublishTelemetryData2, _SetupTimeout2, _OutputLogMessage2, _debug3, _debug4, _error2, _GetPersonRecord, _runner3, _workerInstance3, _logMessageDataSet2, _publishTelemetryTimeout3, _publishTelemetryCount3, _maxBufferSize3, _publishTelemetryTimeoutVal3, _color2, _randomPastelColour2, _TestStartUp_instances, GetRandomHexColor_fn2, _GetRandomPastelColor2, _debug5, _GenLogMessage2, _SetupTimeout3, _PublishTelemetryData3, _ForcePublishTelemetryData3, _PublishTelemetry2, _OutputLogMessage3, _runner4, _workerInstance4, _logMessageDataSet3, _publishTelemetryTimeout4, _publishTelemetryCount4, _maxBufferSize4, _publishTelemetryTimeoutVal4, _color3, _randomPastelColour3, _TestShutDown_instances, GetRandomHexColor_fn3, _GetRandomPastelColor3, _debug6, _GenLogMessage3, _SetupTimeout4, _PublishTelemetryData4, _ForcePublishTelemetryData4, _PublishTelemetry3, _OutputLogMessage4, _options5, _id2, _clientName2, _wm, _socketUtils2, _debug7, _error3, _info2, _GetKeyPayloadData, _LogPayloadEventRetVal, _EmitStateChange, _SetupRunnerEventHandlers, _HandleAddRunner, _SetupWSSClient2, _OnSocketConnected2, _RegisterSocketEvents, _EmitEvent, _GetSocketEventHandlers;
|
|
21
21
|
import { defaultLogger, Sleep, STSAxiosConfig, AgentManager } from "@nsshunt/stsutils";
|
|
22
22
|
import "@nsshunt/stsobservability";
|
|
23
23
|
var __defProp$1 = Object.defineProperty;
|
|
@@ -6924,7 +6924,7 @@ var __accessCheck$1 = (obj, member, msg) => member.has(obj) || __typeError$1("Ca
|
|
|
6924
6924
|
var __privateGet$1 = (obj, member, getter) => (__accessCheck$1(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
6925
6925
|
var __privateAdd$1 = (obj, member, value2) => member.has(obj) ? __typeError$1("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value2);
|
|
6926
6926
|
var __privateSet$1 = (obj, member, value2, setter) => (__accessCheck$1(obj, member, "write to private field"), member.set(obj, value2), value2);
|
|
6927
|
-
var _socketUtils, _id, _options2, _debug, _error, _info, _SetupWSSClient, _OnSocketConnected, _options3, _DUMMY_USER, _invokeMethods, _maxRetries, _sleepDuration, _NoRetryStatusCodes, _stsfhirapiroot, _fhirSocketClient, _LogDebugMessage, _LogErrorMessage, _HandleError, _InvokeResourceAPI, _TestMode, ___InvokeResourceAPI, _BuildQueryString;
|
|
6927
|
+
var _socketUtils, _id, _options2, _clientName, _debug, _error, _info, _SetupWSSClient, _OnSocketConnected, _options3, _DUMMY_USER, _invokeMethods, _maxRetries, _sleepDuration, _NoRetryStatusCodes, _stsfhirapiroot, _fhirSocketClient, _LogDebugMessage, _LogErrorMessage, _HandleError, _InvokeResourceAPI, _TestMode, ___InvokeResourceAPI, _BuildQueryString;
|
|
6928
6928
|
const byteToHex$1 = [];
|
|
6929
6929
|
for (let i = 0; i < 256; ++i) {
|
|
6930
6930
|
byteToHex$1.push((i + 256).toString(16).slice(1));
|
|
@@ -11938,10 +11938,12 @@ class FhirSocketClient {
|
|
|
11938
11938
|
__privateAdd$1(this, _socketUtils);
|
|
11939
11939
|
__privateAdd$1(this, _id, v4$1());
|
|
11940
11940
|
__privateAdd$1(this, _options2);
|
|
11941
|
+
__privateAdd$1(this, _clientName);
|
|
11941
11942
|
__privateAdd$1(this, _debug, (message) => defaultLogger.debug(message));
|
|
11942
11943
|
__privateAdd$1(this, _error, (error) => defaultLogger.error(error));
|
|
11943
11944
|
__privateAdd$1(this, _info, (message) => defaultLogger.info(message));
|
|
11944
11945
|
__privateAdd$1(this, _SetupWSSClient, async (clientName2, joinRooms) => {
|
|
11946
|
+
console.log(chalk.yellow(`FhirSocketClient:#SetupWSSClient(): ID: [${__privateGet$1(this, _id)}] clientName: [${clientName2}] Starting ...`));
|
|
11945
11947
|
const cstr = `${__privateGet$1(this, _options2).fhirServerEndpoint}/nsstsfhir/`;
|
|
11946
11948
|
console.log(chalk.yellow(`FhirSocketClient:#SetupWSSClient(): Socket connection string: [${cstr}]`));
|
|
11947
11949
|
__privateGet$1(this, _socketUtils).SetupClientSideSocket(
|
|
@@ -11957,11 +11959,12 @@ class FhirSocketClient {
|
|
|
11957
11959
|
(socket2) => {
|
|
11958
11960
|
},
|
|
11959
11961
|
// Error Callback
|
|
11960
|
-
(error) => __privateGet$1(this, _error).call(this,
|
|
11962
|
+
(error) => __privateGet$1(this, _error).call(this, `FhirSocketClient:#SetupWSSClient(): Error clientName: [${clientName2}]: SetupClientSideSocket call back: Error: [${error}]`)
|
|
11961
11963
|
);
|
|
11964
|
+
console.log(chalk.yellow(`FhirSocketClient:#SetupWSSClient(): ID: [${__privateGet$1(this, _id)}] clientName: [${clientName2}] Started`));
|
|
11962
11965
|
});
|
|
11963
11966
|
__privateAdd$1(this, _OnSocketConnected, (socket, clientName2, joinRooms) => {
|
|
11964
|
-
__privateGet$1(this, _debug).call(this, chalk.green(
|
|
11967
|
+
__privateGet$1(this, _debug).call(this, chalk.green(`FhirSocketClient:#OnSocketConnected(): ID: [${__privateGet$1(this, _id)}] clientName: [${clientName2}]: --> connected`));
|
|
11965
11968
|
if (joinRooms.length > 0) {
|
|
11966
11969
|
socket.emit("__STSjoinRoom", joinRooms);
|
|
11967
11970
|
}
|
|
@@ -11995,6 +11998,7 @@ class FhirSocketClient {
|
|
|
11995
11998
|
return new Promise((resolve, reject) => {
|
|
11996
11999
|
this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("createFhirResource", resource, request, (err, res) => {
|
|
11997
12000
|
if (err) {
|
|
12001
|
+
__privateGet$1(this, _error).call(this, `FhirSocketClient:CreateResource(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
|
|
11998
12002
|
reject(err);
|
|
11999
12003
|
} else {
|
|
12000
12004
|
resolve(res);
|
|
@@ -12018,6 +12022,7 @@ class FhirSocketClient {
|
|
|
12018
12022
|
return new Promise((resolve, reject) => {
|
|
12019
12023
|
this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("createFhirResources", resource, request, (err, res) => {
|
|
12020
12024
|
if (err) {
|
|
12025
|
+
__privateGet$1(this, _error).call(this, `FhirSocketClient:CreateResources(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
|
|
12021
12026
|
reject(err);
|
|
12022
12027
|
} else {
|
|
12023
12028
|
resolve(res);
|
|
@@ -12043,6 +12048,7 @@ class FhirSocketClient {
|
|
|
12043
12048
|
return new Promise((resolve, reject) => {
|
|
12044
12049
|
this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("getFhirResource", resource, request, (err, res) => {
|
|
12045
12050
|
if (err) {
|
|
12051
|
+
__privateGet$1(this, _error).call(this, `FhirSocketClient:GetResource(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
|
|
12046
12052
|
reject(err);
|
|
12047
12053
|
} else {
|
|
12048
12054
|
resolve(res);
|
|
@@ -12066,6 +12072,7 @@ class FhirSocketClient {
|
|
|
12066
12072
|
return new Promise((resolve, reject) => {
|
|
12067
12073
|
this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("getFhirResources", resource, request, (err, res) => {
|
|
12068
12074
|
if (err) {
|
|
12075
|
+
__privateGet$1(this, _error).call(this, `FhirSocketClient:GetResources(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
|
|
12069
12076
|
reject(err);
|
|
12070
12077
|
} else {
|
|
12071
12078
|
resolve(res);
|
|
@@ -12091,6 +12098,7 @@ class FhirSocketClient {
|
|
|
12091
12098
|
return new Promise((resolve, reject) => {
|
|
12092
12099
|
this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("updateFhirResource", resource, request, (err, res) => {
|
|
12093
12100
|
if (err) {
|
|
12101
|
+
__privateGet$1(this, _error).call(this, `FhirSocketClient:UpdateResource(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
|
|
12094
12102
|
reject(err);
|
|
12095
12103
|
} else {
|
|
12096
12104
|
resolve(res);
|
|
@@ -12114,6 +12122,7 @@ class FhirSocketClient {
|
|
|
12114
12122
|
return new Promise((resolve, reject) => {
|
|
12115
12123
|
this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("updateFhirResources", resource, request, (err, res) => {
|
|
12116
12124
|
if (err) {
|
|
12125
|
+
__privateGet$1(this, _error).call(this, `FhirSocketClient:UpdateResources(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
|
|
12117
12126
|
reject(err);
|
|
12118
12127
|
} else {
|
|
12119
12128
|
resolve(res);
|
|
@@ -12139,6 +12148,7 @@ class FhirSocketClient {
|
|
|
12139
12148
|
return new Promise((resolve, reject) => {
|
|
12140
12149
|
this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("patchFhirResource", resource, request, (err, res) => {
|
|
12141
12150
|
if (err) {
|
|
12151
|
+
__privateGet$1(this, _error).call(this, `FhirSocketClient:PatchResource(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
|
|
12142
12152
|
reject(err);
|
|
12143
12153
|
} else {
|
|
12144
12154
|
resolve(res);
|
|
@@ -12162,6 +12172,7 @@ class FhirSocketClient {
|
|
|
12162
12172
|
return new Promise((resolve, reject) => {
|
|
12163
12173
|
this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("patchFhirResources", resource, request, (err, res) => {
|
|
12164
12174
|
if (err) {
|
|
12175
|
+
__privateGet$1(this, _error).call(this, `FhirSocketClient:PatchResources(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
|
|
12165
12176
|
reject(err);
|
|
12166
12177
|
} else {
|
|
12167
12178
|
resolve(res);
|
|
@@ -12187,6 +12198,7 @@ class FhirSocketClient {
|
|
|
12187
12198
|
return new Promise((resolve, reject) => {
|
|
12188
12199
|
this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("deleteFhirResource", resource, request, (err, res) => {
|
|
12189
12200
|
if (err) {
|
|
12201
|
+
__privateGet$1(this, _error).call(this, `FhirSocketClient:DeleteResource(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
|
|
12190
12202
|
reject(err);
|
|
12191
12203
|
} else {
|
|
12192
12204
|
resolve(res);
|
|
@@ -12210,6 +12222,7 @@ class FhirSocketClient {
|
|
|
12210
12222
|
return new Promise((resolve, reject) => {
|
|
12211
12223
|
this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("deleteFhirResources", resource, delRequest, (err, res) => {
|
|
12212
12224
|
if (err) {
|
|
12225
|
+
__privateGet$1(this, _error).call(this, `FhirSocketClient:DeleteResources(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
|
|
12213
12226
|
reject(err);
|
|
12214
12227
|
} else {
|
|
12215
12228
|
resolve(res);
|
|
@@ -12222,6 +12235,7 @@ class FhirSocketClient {
|
|
|
12222
12235
|
__privateSet$1(this, _options2, options);
|
|
12223
12236
|
__privateSet$1(this, _socketUtils, new SocketIoClientHelper$1(__privateGet$1(this, _options2).socketIoClientHelperOptions));
|
|
12224
12237
|
const clientName = v4$1();
|
|
12238
|
+
__privateSet$1(this, _clientName, clientName);
|
|
12225
12239
|
__privateGet$1(this, _SetupWSSClient).call(this, clientName, []);
|
|
12226
12240
|
}
|
|
12227
12241
|
get socket() {
|
|
@@ -12231,6 +12245,7 @@ class FhirSocketClient {
|
|
|
12231
12245
|
_socketUtils = /* @__PURE__ */ new WeakMap();
|
|
12232
12246
|
_id = /* @__PURE__ */ new WeakMap();
|
|
12233
12247
|
_options2 = /* @__PURE__ */ new WeakMap();
|
|
12248
|
+
_clientName = /* @__PURE__ */ new WeakMap();
|
|
12234
12249
|
_debug = /* @__PURE__ */ new WeakMap();
|
|
12235
12250
|
_error = /* @__PURE__ */ new WeakMap();
|
|
12236
12251
|
_info = /* @__PURE__ */ new WeakMap();
|
|
@@ -12836,18 +12851,21 @@ class TestCaseFhirBase {
|
|
|
12836
12851
|
__publicField(this, "StopRunner", async () => {
|
|
12837
12852
|
await __privateGet(this, _OutputLogMessage2).call(this, `StopRunner [${__privateGet(this, _runner2).id}]`);
|
|
12838
12853
|
await __privateGet(this, _ForcePublishTelemetryData2).call(this);
|
|
12854
|
+
console.log(`TestCaseFhirBase:StopRunner(): Calling: [#fhirClient.Terminate()]`);
|
|
12839
12855
|
__privateGet(this, _fhirClient).Terminate();
|
|
12840
12856
|
return true;
|
|
12841
12857
|
});
|
|
12842
12858
|
__publicField(this, "TerminateRunner", async () => {
|
|
12843
12859
|
await __privateGet(this, _OutputLogMessage2).call(this, `TerminateRunner [${__privateGet(this, _runner2).id}]`);
|
|
12844
12860
|
await __privateGet(this, _ForcePublishTelemetryData2).call(this);
|
|
12861
|
+
console.log(`TestCaseFhirBase:TerminateRunner(): Calling: [#fhirClient.Terminate()]`);
|
|
12845
12862
|
__privateGet(this, _fhirClient).Terminate();
|
|
12846
12863
|
return true;
|
|
12847
12864
|
});
|
|
12848
12865
|
__publicField(this, "Completed", async () => {
|
|
12849
12866
|
await __privateGet(this, _OutputLogMessage2).call(this, `Completed [${__privateGet(this, _runner2).id}] [${JSON.stringify(__privateGet(this, _runner2).instrumentData)}]`);
|
|
12850
12867
|
await __privateGet(this, _ForcePublishTelemetryData2).call(this);
|
|
12868
|
+
console.log(`TestCaseFhirBase:Completed(): Calling: [#fhirClient.Terminate()]`);
|
|
12851
12869
|
__privateGet(this, _fhirClient).Terminate();
|
|
12852
12870
|
return true;
|
|
12853
12871
|
});
|
|
@@ -12899,7 +12917,8 @@ class TestCaseFhirBase {
|
|
|
12899
12917
|
// `https://stscore.stsmda.org:3005/nsstsfhir/`,
|
|
12900
12918
|
socketIoCustomPath: "/stsfhirsocket/socket.io/",
|
|
12901
12919
|
socketClientName: "ststestrunner",
|
|
12902
|
-
timeout:
|
|
12920
|
+
timeout: 1e4,
|
|
12921
|
+
//@@ config option as with all options above
|
|
12903
12922
|
socketIoClientHelperOptions: {
|
|
12904
12923
|
logger: defaultLogger
|
|
12905
12924
|
}
|
|
@@ -13511,6 +13530,7 @@ class TestCaseFhir09 extends TestCaseFhirBase {
|
|
|
13511
13530
|
class StartUpDelFhirResources extends TestCaseFhirBase {
|
|
13512
13531
|
constructor(workerInstance, runner) {
|
|
13513
13532
|
super(workerInstance, runner);
|
|
13533
|
+
__privateAdd(this, _debug3, (message) => defaultLogger.debug(`StartUpDelFhirResources: ${message}`));
|
|
13514
13534
|
__publicField(this, "ExecuteRunner", async () => {
|
|
13515
13535
|
const start = performance.now();
|
|
13516
13536
|
const options = this.runner.options;
|
|
@@ -13523,18 +13543,18 @@ class StartUpDelFhirResources extends TestCaseFhirBase {
|
|
|
13523
13543
|
let complete = false;
|
|
13524
13544
|
let totalRecordsDelete = 0;
|
|
13525
13545
|
while (!complete) {
|
|
13526
|
-
|
|
13546
|
+
__privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - pre GetResources()`));
|
|
13527
13547
|
const retVal = await this.fhirClient.GetResources("Person", null, {
|
|
13528
13548
|
limit: options.batchDeleteSize,
|
|
13529
13549
|
prefix: options.personPrefix
|
|
13530
13550
|
}, (error) => {
|
|
13531
13551
|
this.LogErrorMessage(chalk$1.red(`test(POST /stsresource and query using filter): ${error}`));
|
|
13532
13552
|
});
|
|
13533
|
-
|
|
13534
|
-
|
|
13553
|
+
__privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - post GetResources()`));
|
|
13554
|
+
__privateGet(this, _debug3).call(this, retVal);
|
|
13535
13555
|
if (retVal) {
|
|
13536
|
-
|
|
13537
|
-
|
|
13556
|
+
__privateGet(this, _debug3).call(this, `Records already exist - going to delete ...`);
|
|
13557
|
+
__privateGet(this, _debug3).call(this, retVal.length);
|
|
13538
13558
|
const delRetVal = await this.fhirClient.DeleteResources("Person", retVal, (error) => {
|
|
13539
13559
|
this.LogErrorMessage(chalk$1.red(`test(POST /stsresource and query using filter): ${error}`));
|
|
13540
13560
|
});
|
|
@@ -13542,10 +13562,10 @@ class StartUpDelFhirResources extends TestCaseFhirBase {
|
|
|
13542
13562
|
if (delRetVal.length === 0) {
|
|
13543
13563
|
complete = true;
|
|
13544
13564
|
} else {
|
|
13545
|
-
|
|
13546
|
-
|
|
13565
|
+
__privateGet(this, _debug3).call(this, `Records deleted ...`);
|
|
13566
|
+
__privateGet(this, _debug3).call(this, delRetVal.length);
|
|
13547
13567
|
totalRecordsDelete += delRetVal.length;
|
|
13548
|
-
|
|
13568
|
+
__privateGet(this, _debug3).call(this, chalk$1.red(`total records delete = ${totalRecordsDelete}`));
|
|
13549
13569
|
}
|
|
13550
13570
|
} else {
|
|
13551
13571
|
complete = true;
|
|
@@ -13555,7 +13575,7 @@ class StartUpDelFhirResources extends TestCaseFhirBase {
|
|
|
13555
13575
|
}
|
|
13556
13576
|
await Sleep(1);
|
|
13557
13577
|
}
|
|
13558
|
-
|
|
13578
|
+
__privateGet(this, _debug3).call(this, chalk$1.red(`total records delete = ${totalRecordsDelete}`));
|
|
13559
13579
|
this.runner.instrumentData.activeRequestCount--;
|
|
13560
13580
|
const end = performance.now();
|
|
13561
13581
|
const diff = end - start;
|
|
@@ -13565,6 +13585,7 @@ class StartUpDelFhirResources extends TestCaseFhirBase {
|
|
|
13565
13585
|
});
|
|
13566
13586
|
}
|
|
13567
13587
|
}
|
|
13588
|
+
_debug3 = new WeakMap();
|
|
13568
13589
|
var e = [{ name: "Aegean Airlines", iataCode: "A3" }, { name: "Aeroflot", iataCode: "SU" }, { name: "Aerolineas Argentinas", iataCode: "AR" }, { name: "Aeromexico", iataCode: "AM" }, { name: "Air Algerie", iataCode: "AH" }, { name: "Air Arabia", iataCode: "G9" }, { name: "Air Canada", iataCode: "AC" }, { name: "Air China", iataCode: "CA" }, { name: "Air Europa", iataCode: "UX" }, { name: "Air France", iataCode: "AF" }, { name: "Air India", iataCode: "AI" }, { name: "Air Mauritius", iataCode: "MK" }, { name: "Air New Zealand", iataCode: "NZ" }, { name: "Air Niugini", iataCode: "PX" }, { name: "Air Tahiti", iataCode: "VT" }, { name: "Air Tahiti Nui", iataCode: "TN" }, { name: "Air Transat", iataCode: "TS" }, { name: "AirAsia X", iataCode: "D7" }, { name: "AirAsia", iataCode: "AK" }, { name: "Aircalin", iataCode: "SB" }, { name: "Alaska Airlines", iataCode: "AS" }, { name: "Alitalia", iataCode: "AZ" }, { name: "All Nippon Airways", iataCode: "NH" }, { name: "Allegiant Air", iataCode: "G4" }, { name: "American Airlines", iataCode: "AA" }, { name: "Asiana Airlines", iataCode: "OZ" }, { name: "Avianca", iataCode: "AV" }, { name: "Azul Linhas Aereas Brasileiras", iataCode: "AD" }, { name: "Azur Air", iataCode: "ZF" }, { name: "Beijing Capital Airlines", iataCode: "JD" }, { name: "Boliviana de Aviacion", iataCode: "OB" }, { name: "British Airways", iataCode: "BA" }, { name: "Cathay Pacific", iataCode: "CX" }, { name: "Cebu Pacific Air", iataCode: "5J" }, { name: "China Airlines", iataCode: "CI" }, { name: "China Eastern Airlines", iataCode: "MU" }, { name: "China Southern Airlines", iataCode: "CZ" }, { name: "Condor", iataCode: "DE" }, { name: "Copa Airlines", iataCode: "CM" }, { name: "Delta Air Lines", iataCode: "DL" }, { name: "Easyfly", iataCode: "VE" }, { name: "EasyJet", iataCode: "U2" }, { name: "EcoJet", iataCode: "8J" }, { name: "Egyptair", iataCode: "MS" }, { name: "El Al", iataCode: "LY" }, { name: "Emirates Airlines", iataCode: "EK" }, { name: "Ethiopian Airlines", iataCode: "ET" }, { name: "Etihad Airways", iataCode: "EY" }, { name: "EVA Air", iataCode: "BR" }, { name: "Fiji Airways", iataCode: "FJ" }, { name: "Finnair", iataCode: "AY" }, { name: "Flybondi", iataCode: "FO" }, { name: "Flydubai", iataCode: "FZ" }, { name: "FlySafair", iataCode: "FA" }, { name: "Frontier Airlines", iataCode: "F9" }, { name: "Garuda Indonesia", iataCode: "GA" }, { name: "Go First", iataCode: "G8" }, { name: "Gol Linhas Aereas Inteligentes", iataCode: "G3" }, { name: "Hainan Airlines", iataCode: "HU" }, { name: "Hawaiian Airlines", iataCode: "HA" }, { name: "IndiGo Airlines", iataCode: "6E" }, { name: "Japan Airlines", iataCode: "JL" }, { name: "Jeju Air", iataCode: "7C" }, { name: "Jet2", iataCode: "LS" }, { name: "JetBlue Airways", iataCode: "B6" }, { name: "JetSMART", iataCode: "JA" }, { name: "Juneyao Airlines", iataCode: "HO" }, { name: "Kenya Airways", iataCode: "KQ" }, { name: "KLM Royal Dutch Airlines", iataCode: "KL" }, { name: "Korean Air", iataCode: "KE" }, { name: "Kulula.com", iataCode: "MN" }, { name: "LATAM Airlines", iataCode: "LA" }, { name: "Lion Air", iataCode: "JT" }, { name: "LOT Polish Airlines", iataCode: "LO" }, { name: "Lufthansa", iataCode: "LH" }, { name: "Libyan Airlines", iataCode: "LN" }, { name: "Linea Aerea Amaszonas", iataCode: "Z8" }, { name: "Malaysia Airlines", iataCode: "MH" }, { name: "Nordwind Airlines", iataCode: "N4" }, { name: "Norwegian Air Shuttle", iataCode: "DY" }, { name: "Oman Air", iataCode: "WY" }, { name: "Pakistan International Airlines", iataCode: "PK" }, { name: "Pegasus Airlines", iataCode: "PC" }, { name: "Philippine Airlines", iataCode: "PR" }, { name: "Qantas Group", iataCode: "QF" }, { name: "Qatar Airways", iataCode: "QR" }, { name: "Republic Airways", iataCode: "YX" }, { name: "Royal Air Maroc", iataCode: "AT" }, { name: "Ryanair", iataCode: "FR" }, { name: "S7 Airlines", iataCode: "S7" }, { name: "SAS", iataCode: "SK" }, { name: "Satena", iataCode: "9R" }, { name: "Saudia", iataCode: "SV" }, { name: "Shandong Airlines", iataCode: "SC" }, { name: "Sichuan Airlines", iataCode: "3U" }, { name: "Singapore Airlines", iataCode: "SQ" }, { name: "Sky Airline", iataCode: "H2" }, { name: "SkyWest Airlines", iataCode: "OO" }, { name: "South African Airways", iataCode: "SA" }, { name: "Southwest Airlines", iataCode: "WN" }, { name: "SpiceJet", iataCode: "SG" }, { name: "Spirit Airlines", iataCode: "NK" }, { name: "Spring Airlines", iataCode: "9S" }, { name: "SriLankan Airlines", iataCode: "UL" }, { name: "Star Peru", iataCode: "2I" }, { name: "Sun Country Airlines", iataCode: "SY" }, { name: "SunExpress", iataCode: "XQ" }, { name: "TAP Air Portugal", iataCode: "TP" }, { name: "Thai AirAsia", iataCode: "FD" }, { name: "Thai Airways", iataCode: "TG" }, { name: "TUI Airways", iataCode: "BY" }, { name: "Tunisair", iataCode: "TU" }, { name: "Turkish Airlines", iataCode: "TK" }, { name: "Ukraine International", iataCode: "PS" }, { name: "United Airlines", iataCode: "UA" }, { name: "Ural Airlines", iataCode: "U6" }, { name: "VietJet Air", iataCode: "VJ" }, { name: "Vietnam Airlines", iataCode: "VN" }, { name: "Virgin Atlantic Airways", iataCode: "VS" }, { name: "Virgin Australia", iataCode: "VA" }, { name: "VivaAerobus", iataCode: "VB" }, { name: "VOEPASS Linhas Aereas", iataCode: "2Z" }, { name: "Volaris", iataCode: "Y4" }, { name: "WestJet", iataCode: "WS" }, { name: "Wingo", iataCode: "P5" }, { name: "Wizz Air", iataCode: "W6" }];
|
|
13569
13590
|
var a = [{ name: "Aerospatiale/BAC Concorde", iataTypeCode: "SSC" }, { name: "Airbus A300", iataTypeCode: "AB3" }, { name: "Airbus A310", iataTypeCode: "310" }, { name: "Airbus A310-200", iataTypeCode: "312" }, { name: "Airbus A310-300", iataTypeCode: "313" }, { name: "Airbus A318", iataTypeCode: "318" }, { name: "Airbus A319", iataTypeCode: "319" }, { name: "Airbus A319neo", iataTypeCode: "31N" }, { name: "Airbus A320", iataTypeCode: "320" }, { name: "Airbus A320neo", iataTypeCode: "32N" }, { name: "Airbus A321", iataTypeCode: "321" }, { name: "Airbus A321neo", iataTypeCode: "32Q" }, { name: "Airbus A330", iataTypeCode: "330" }, { name: "Airbus A330-200", iataTypeCode: "332" }, { name: "Airbus A330-300", iataTypeCode: "333" }, { name: "Airbus A330-800neo", iataTypeCode: "338" }, { name: "Airbus A330-900neo", iataTypeCode: "339" }, { name: "Airbus A340", iataTypeCode: "340" }, { name: "Airbus A340-200", iataTypeCode: "342" }, { name: "Airbus A340-300", iataTypeCode: "343" }, { name: "Airbus A340-500", iataTypeCode: "345" }, { name: "Airbus A340-600", iataTypeCode: "346" }, { name: "Airbus A350", iataTypeCode: "350" }, { name: "Airbus A350-900", iataTypeCode: "359" }, { name: "Airbus A350-1000", iataTypeCode: "351" }, { name: "Airbus A380", iataTypeCode: "380" }, { name: "Airbus A380-800", iataTypeCode: "388" }, { name: "Antonov An-12", iataTypeCode: "ANF" }, { name: "Antonov An-24", iataTypeCode: "AN4" }, { name: "Antonov An-26", iataTypeCode: "A26" }, { name: "Antonov An-28", iataTypeCode: "A28" }, { name: "Antonov An-30", iataTypeCode: "A30" }, { name: "Antonov An-32", iataTypeCode: "A32" }, { name: "Antonov An-72", iataTypeCode: "AN7" }, { name: "Antonov An-124 Ruslan", iataTypeCode: "A4F" }, { name: "Antonov An-140", iataTypeCode: "A40" }, { name: "Antonov An-148", iataTypeCode: "A81" }, { name: "Antonov An-158", iataTypeCode: "A58" }, { name: "Antonov An-225 Mriya", iataTypeCode: "A5F" }, { name: "Boeing 707", iataTypeCode: "703" }, { name: "Boeing 717", iataTypeCode: "717" }, { name: "Boeing 720B", iataTypeCode: "B72" }, { name: "Boeing 727", iataTypeCode: "727" }, { name: "Boeing 727-100", iataTypeCode: "721" }, { name: "Boeing 727-200", iataTypeCode: "722" }, { name: "Boeing 737 MAX 7", iataTypeCode: "7M7" }, { name: "Boeing 737 MAX 8", iataTypeCode: "7M8" }, { name: "Boeing 737 MAX 9", iataTypeCode: "7M9" }, { name: "Boeing 737 MAX 10", iataTypeCode: "7MJ" }, { name: "Boeing 737", iataTypeCode: "737" }, { name: "Boeing 737-100", iataTypeCode: "731" }, { name: "Boeing 737-200", iataTypeCode: "732" }, { name: "Boeing 737-300", iataTypeCode: "733" }, { name: "Boeing 737-400", iataTypeCode: "734" }, { name: "Boeing 737-500", iataTypeCode: "735" }, { name: "Boeing 737-600", iataTypeCode: "736" }, { name: "Boeing 737-700", iataTypeCode: "73G" }, { name: "Boeing 737-800", iataTypeCode: "738" }, { name: "Boeing 737-900", iataTypeCode: "739" }, { name: "Boeing 747", iataTypeCode: "747" }, { name: "Boeing 747-100", iataTypeCode: "741" }, { name: "Boeing 747-200", iataTypeCode: "742" }, { name: "Boeing 747-300", iataTypeCode: "743" }, { name: "Boeing 747-400", iataTypeCode: "744" }, { name: "Boeing 747-400D", iataTypeCode: "74J" }, { name: "Boeing 747-8", iataTypeCode: "748" }, { name: "Boeing 747SP", iataTypeCode: "74L" }, { name: "Boeing 747SR", iataTypeCode: "74R" }, { name: "Boeing 757", iataTypeCode: "757" }, { name: "Boeing 757-200", iataTypeCode: "752" }, { name: "Boeing 757-300", iataTypeCode: "753" }, { name: "Boeing 767", iataTypeCode: "767" }, { name: "Boeing 767-200", iataTypeCode: "762" }, { name: "Boeing 767-300", iataTypeCode: "763" }, { name: "Boeing 767-400", iataTypeCode: "764" }, { name: "Boeing 777", iataTypeCode: "777" }, { name: "Boeing 777-200", iataTypeCode: "772" }, { name: "Boeing 777-200LR", iataTypeCode: "77L" }, { name: "Boeing 777-300", iataTypeCode: "773" }, { name: "Boeing 777-300ER", iataTypeCode: "77W" }, { name: "Boeing 787", iataTypeCode: "787" }, { name: "Boeing 787-8", iataTypeCode: "788" }, { name: "Boeing 787-9", iataTypeCode: "789" }, { name: "Boeing 787-10", iataTypeCode: "781" }, { name: "Canadair Challenger", iataTypeCode: "CCJ" }, { name: "Canadair CL-44", iataTypeCode: "CL4" }, { name: "Canadair Regional Jet 100", iataTypeCode: "CR1" }, { name: "Canadair Regional Jet 200", iataTypeCode: "CR2" }, { name: "Canadair Regional Jet 700", iataTypeCode: "CR7" }, { name: "Canadair Regional Jet 705", iataTypeCode: "CRA" }, { name: "Canadair Regional Jet 900", iataTypeCode: "CR9" }, { name: "Canadair Regional Jet 1000", iataTypeCode: "CRK" }, { name: "De Havilland Canada DHC-2 Beaver", iataTypeCode: "DHP" }, { name: "De Havilland Canada DHC-2 Turbo-Beaver", iataTypeCode: "DHR" }, { name: "De Havilland Canada DHC-3 Otter", iataTypeCode: "DHL" }, { name: "De Havilland Canada DHC-4 Caribou", iataTypeCode: "DHC" }, { name: "De Havilland Canada DHC-6 Twin Otter", iataTypeCode: "DHT" }, { name: "De Havilland Canada DHC-7 Dash 7", iataTypeCode: "DH7" }, { name: "De Havilland Canada DHC-8-100 Dash 8 / 8Q", iataTypeCode: "DH1" }, { name: "De Havilland Canada DHC-8-200 Dash 8 / 8Q", iataTypeCode: "DH2" }, { name: "De Havilland Canada DHC-8-300 Dash 8 / 8Q", iataTypeCode: "DH3" }, { name: "De Havilland Canada DHC-8-400 Dash 8Q", iataTypeCode: "DH4" }, { name: "De Havilland DH.104 Dove", iataTypeCode: "DHD" }, { name: "De Havilland DH.114 Heron", iataTypeCode: "DHH" }, { name: "Douglas DC-3", iataTypeCode: "D3F" }, { name: "Douglas DC-6", iataTypeCode: "D6F" }, { name: "Douglas DC-8-50", iataTypeCode: "D8T" }, { name: "Douglas DC-8-62", iataTypeCode: "D8L" }, { name: "Douglas DC-8-72", iataTypeCode: "D8Q" }, { name: "Douglas DC-9-10", iataTypeCode: "D91" }, { name: "Douglas DC-9-20", iataTypeCode: "D92" }, { name: "Douglas DC-9-30", iataTypeCode: "D93" }, { name: "Douglas DC-9-40", iataTypeCode: "D94" }, { name: "Douglas DC-9-50", iataTypeCode: "D95" }, { name: "Douglas DC-10", iataTypeCode: "D10" }, { name: "Douglas DC-10-10", iataTypeCode: "D1X" }, { name: "Douglas DC-10-30", iataTypeCode: "D1Y" }, { name: "Embraer 170", iataTypeCode: "E70" }, { name: "Embraer 175", iataTypeCode: "E75" }, { name: "Embraer 190", iataTypeCode: "E90" }, { name: "Embraer 195", iataTypeCode: "E95" }, { name: "Embraer E190-E2", iataTypeCode: "290" }, { name: "Embraer E195-E2", iataTypeCode: "295" }, { name: "Embraer EMB.110 Bandeirante", iataTypeCode: "EMB" }, { name: "Embraer EMB.120 Brasilia", iataTypeCode: "EM2" }, { name: "Embraer Legacy 600", iataTypeCode: "ER3" }, { name: "Embraer Phenom 100", iataTypeCode: "EP1" }, { name: "Embraer Phenom 300", iataTypeCode: "EP3" }, { name: "Embraer RJ135", iataTypeCode: "ER3" }, { name: "Embraer RJ140", iataTypeCode: "ERD" }, { name: "Embraer RJ145 Amazon", iataTypeCode: "ER4" }, { name: "Ilyushin IL18", iataTypeCode: "IL8" }, { name: "Ilyushin IL62", iataTypeCode: "IL6" }, { name: "Ilyushin IL76", iataTypeCode: "IL7" }, { name: "Ilyushin IL86", iataTypeCode: "ILW" }, { name: "Ilyushin IL96-300", iataTypeCode: "I93" }, { name: "Ilyushin IL114", iataTypeCode: "I14" }, { name: "Lockheed L-182 / 282 / 382 (L-100) Hercules", iataTypeCode: "LOH" }, { name: "Lockheed L-188 Electra", iataTypeCode: "LOE" }, { name: "Lockheed L-1011 Tristar", iataTypeCode: "L10" }, { name: "Lockheed L-1049 Super Constellation", iataTypeCode: "L49" }, { name: "McDonnell Douglas MD11", iataTypeCode: "M11" }, { name: "McDonnell Douglas MD80", iataTypeCode: "M80" }, { name: "McDonnell Douglas MD81", iataTypeCode: "M81" }, { name: "McDonnell Douglas MD82", iataTypeCode: "M82" }, { name: "McDonnell Douglas MD83", iataTypeCode: "M83" }, { name: "McDonnell Douglas MD87", iataTypeCode: "M87" }, { name: "McDonnell Douglas MD88", iataTypeCode: "M88" }, { name: "McDonnell Douglas MD90", iataTypeCode: "M90" }, { name: "Sukhoi Superjet 100-95", iataTypeCode: "SU9" }, { name: "Tupolev Tu-134", iataTypeCode: "TU3" }, { name: "Tupolev Tu-154", iataTypeCode: "TU5" }, { name: "Tupolev Tu-204", iataTypeCode: "T20" }, { name: "Yakovlev Yak-40", iataTypeCode: "YK4" }, { name: "Yakovlev Yak-42", iataTypeCode: "YK2" }];
|
|
13570
13591
|
var r = [{ name: "Adelaide International Airport", iataCode: "ADL" }, { name: "Adolfo Suarez Madrid-Barajas Airport", iataCode: "MAD" }, { name: "Aeroparque Jorge Newbery Airport", iataCode: "AEP" }, { name: "Afonso Pena International Airport", iataCode: "CWB" }, { name: "Alfonso Bonilla Aragon International Airport", iataCode: "CLO" }, { name: "Amsterdam Airport Schiphol", iataCode: "AMS" }, { name: "Arturo Merino Benitez International Airport", iataCode: "SCL" }, { name: "Auckland International Airport", iataCode: "AKL" }, { name: "Beijing Capital International Airport", iataCode: "PEK" }, { name: "Belem Val de Cans International Airport", iataCode: "BEL" }, { name: "Belo Horizonte Tancredo Neves International Airport", iataCode: "CNF" }, { name: "Berlin-Tegel Airport", iataCode: "TXL" }, { name: "Bole International Airport", iataCode: "ADD" }, { name: "Brasilia-Presidente Juscelino Kubitschek International Airport", iataCode: "BSB" }, { name: "Brisbane International Airport", iataCode: "BNE" }, { name: "Brussels Airport", iataCode: "BRU" }, { name: "Cairns Airport", iataCode: "CNS" }, { name: "Cairo International Airport", iataCode: "CAI" }, { name: "Canberra Airport", iataCode: "CBR" }, { name: "Capetown International Airport", iataCode: "CPT" }, { name: "Charles de Gaulle International Airport", iataCode: "CDG" }, { name: "Charlotte Douglas International Airport", iataCode: "CLT" }, { name: "Chengdu Shuangliu International Airport", iataCode: "CTU" }, { name: "Chhatrapati Shivaji International Airport", iataCode: "BOM" }, { name: "Chicago O'Hare International Airport", iataCode: "ORD" }, { name: "Chongqing Jiangbei International Airport", iataCode: "CKG" }, { name: "Christchurch International Airport", iataCode: "CHC" }, { name: "Copenhagen Kastrup Airport", iataCode: "CPH" }, { name: "Dallas Fort Worth International Airport", iataCode: "DFW" }, { name: "Daniel K. Inouye International Airport", iataCode: "HNL" }, { name: "Denver International Airport", iataCode: "DEN" }, { name: "Don Mueang International Airport", iataCode: "DMK" }, { name: "Dubai International Airport", iataCode: "DXB" }, { name: "Dublin Airport", iataCode: "DUB" }, { name: "Dusseldorf Airport", iataCode: "DUS" }, { name: "El Dorado International Airport", iataCode: "BOG" }, { name: "Eleftherios Venizelos International Airport", iataCode: "ATH" }, { name: "Faa'a International Airport", iataCode: "PPT" }, { name: "Fort Lauderdale Hollywood International Airport", iataCode: "FLL" }, { name: "Fortaleza Pinto Martins International Airport", iataCode: "FOR" }, { name: "Frankfurt am Main Airport", iataCode: "FRA" }, { name: "George Bush Intercontinental Houston Airport", iataCode: "IAH" }, { name: "Gold Coast Airport", iataCode: "OOL" }, { name: "Guarulhos - Governador Andre Franco Montoro International Airport", iataCode: "GRU" }, { name: "Hartsfield-Jackson Atlanta International Airport", iataCode: "ATL" }, { name: "Helsinki Vantaa Airport", iataCode: "HEL" }, { name: "Hobart International Airport", iataCode: "HBA" }, { name: "Hong Kong International Airport", iataCode: "HKG" }, { name: "Houari Boumediene Airport", iataCode: "ALG" }, { name: "Hurgada International Airport", iataCode: "HRG" }, { name: "Incheon International Airport", iataCode: "ICN" }, { name: "Indira Gandhi International Airport", iataCode: "DEL" }, { name: "Istanbul Airport", iataCode: "IST" }, { name: "Jacksons International Airport", iataCode: "POM" }, { name: "Jeju International Airport", iataCode: "CJU" }, { name: "John F Kennedy International Airport", iataCode: "JFK" }, { name: "Jorge Chavez International Airport", iataCode: "LIM" }, { name: "Jose Maria Cordova International Airport", iataCode: "MDE" }, { name: "Josep Tarradellas Barcelona-El Prat Airport", iataCode: "BCN" }, { name: "Kahului Airport", iataCode: "OGG" }, { name: "King Abdulaziz International Airport", iataCode: "JED" }, { name: "Kuala Lumpur International Airport", iataCode: "KUL" }, { name: "Kunming Changshui International Airport", iataCode: "KMG" }, { name: "La Tontouta International Airport", iataCode: "NOU" }, { name: "Leonardo da Vinci-Fiumicino Airport", iataCode: "FCO" }, { name: "London Heathrow Airport", iataCode: "LHR" }, { name: "Los Angeles International Airport", iataCode: "LAX" }, { name: "McCarran International Airport", iataCode: "LAS" }, { name: "Melbourne International Airport", iataCode: "MEL" }, { name: "Mexico City International Airport", iataCode: "MEX" }, { name: "Miami International Airport", iataCode: "MIA" }, { name: "Ministro Pistarini International Airport", iataCode: "EZE" }, { name: "Minneapolis-St Paul International/Wold-Chamberlain Airport", iataCode: "MSP" }, { name: "Mohammed V International Airport", iataCode: "CMN" }, { name: "Moscow Domodedovo Airport", iataCode: "DME" }, { name: "Munich Airport", iataCode: "MUC" }, { name: "Murtala Muhammed International Airport", iataCode: "LOS" }, { name: "Nadi International Airport", iataCode: "NAN" }, { name: "Nairobi Jomo Kenyatta International Airport", iataCode: "NBO" }, { name: "Narita International Airport", iataCode: "NRT" }, { name: "Newark Liberty International Airport", iataCode: "EWR" }, { name: "Ninoy Aquino International Airport", iataCode: "MNL" }, { name: "Noumea Magenta Airport", iataCode: "GEA" }, { name: "O. R. Tambo International Airport", iataCode: "JNB" }, { name: "Orlando International Airport", iataCode: "MCO" }, { name: "Oslo Lufthavn", iataCode: "OSL" }, { name: "Perth Airport", iataCode: "PER" }, { name: "Phoenix Sky Harbor International Airport", iataCode: "PHX" }, { name: "Recife Guararapes-Gilberto Freyre International Airport", iataCode: "REC" }, { name: "Rio de Janeiro Galeao International Airport", iataCode: "GIG" }, { name: "Salgado Filho International Airport", iataCode: "POA" }, { name: "Salvador Deputado Luis Eduardo Magalhaes International Airport", iataCode: "SSA" }, { name: "San Francisco International Airport", iataCode: "SFO" }, { name: "Santos Dumont Airport", iataCode: "SDU" }, { name: "Sao Paulo-Congonhas Airport", iataCode: "CGH" }, { name: "Seattle Tacoma International Airport", iataCode: "SEA" }, { name: "Shanghai Hongqiao International Airport", iataCode: "SHA" }, { name: "Shanghai Pudong International Airport", iataCode: "PVG" }, { name: "Shenzhen Bao'an International Airport", iataCode: "SZX" }, { name: "Sheremetyevo International Airport", iataCode: "SVO" }, { name: "Singapore Changi Airport", iataCode: "SIN" }, { name: "Soekarno-Hatta International Airport", iataCode: "CGK" }, { name: 'Stockholm-Arlanda Airport"', iataCode: "ARN" }, { name: "Suvarnabhumi Airport", iataCode: "BKK" }, { name: "Sydney Kingsford Smith International Airport", iataCode: "SYD" }, { name: "Taiwan Taoyuan International Airport", iataCode: "TPE" }, { name: "Tan Son Nhat International Airport", iataCode: "SGN" }, { name: "Tokyo Haneda International Airport", iataCode: "HND" }, { name: "Toronto Pearson International Airport", iataCode: "YYZ" }, { name: "Tunis Carthage International Airport", iataCode: "TUN" }, { name: "Vancouver International Airport", iataCode: "YVR" }, { name: "Vienna International Airport", iataCode: "VIE" }, { name: "Viracopos International Airport", iataCode: "VCP" }, { name: "Vnukovo International Airport", iataCode: "VKO" }, { name: "Wellington International Airport", iataCode: "WLG" }, { name: "Xi'an Xianyang International Airport", iataCode: "XIY" }, { name: "Zhukovsky International Airport", iataCode: "ZIA" }, { name: "Zurich Airport", iataCode: "ZRH" }];
|
|
@@ -15567,6 +15588,8 @@ function v4(options, buf, offset) {
|
|
|
15567
15588
|
class SetupFhirTestResources extends TestCaseFhirBase {
|
|
15568
15589
|
constructor(workerInstance, runner) {
|
|
15569
15590
|
super(workerInstance, runner);
|
|
15591
|
+
__privateAdd(this, _debug4, (message) => defaultLogger.debug(`SetupFhirTestResources: ${message}`));
|
|
15592
|
+
__privateAdd(this, _error2, (message) => defaultLogger.error(`SetupFhirTestResources (error): ${message}`));
|
|
15570
15593
|
__privateAdd(this, _GetPersonRecord, (testRecordPrefix, prefix, index, blockSize) => {
|
|
15571
15594
|
const id = `${testRecordPrefix}_${index}`;
|
|
15572
15595
|
const records = [];
|
|
@@ -15612,14 +15635,14 @@ class SetupFhirTestResources extends TestCaseFhirBase {
|
|
|
15612
15635
|
}
|
|
15613
15636
|
this.runner.instrumentData.activeRequestCount++;
|
|
15614
15637
|
const personRecord = __privateGet(this, _GetPersonRecord).call(this, options.testBlocksPrefix, options.personPrefix, this.runner.iteration, options.blockSize);
|
|
15615
|
-
|
|
15638
|
+
__privateGet(this, _debug4).call(this, chalk$1.yellow(`ExecuteRunner(): Record Length: [${JSON.stringify(personRecord).length}]`));
|
|
15616
15639
|
try {
|
|
15617
15640
|
const retVal = await this.fhirClient.CreateResource("Person", personRecord, (error) => {
|
|
15618
|
-
this.LogErrorMessage(`
|
|
15641
|
+
this.LogErrorMessage(`ExecuteRunner():CreateResource: Error: [${error}]`);
|
|
15619
15642
|
});
|
|
15620
|
-
|
|
15643
|
+
__privateGet(this, _debug4).call(this, chalk$1.yellow(`ExecuteRunner():CreateResource: Return ID: [${retVal == null ? void 0 : retVal.id}]`));
|
|
15621
15644
|
} catch (error) {
|
|
15622
|
-
|
|
15645
|
+
__privateGet(this, _error2).call(this, chalk$1.red(`ExecuteRunner():CreateResource: Error: [${error}]`));
|
|
15623
15646
|
this.runner.instrumentData.errorCount++;
|
|
15624
15647
|
}
|
|
15625
15648
|
this.runner.instrumentData.coreCount = 1;
|
|
@@ -15636,6 +15659,8 @@ class SetupFhirTestResources extends TestCaseFhirBase {
|
|
|
15636
15659
|
});
|
|
15637
15660
|
}
|
|
15638
15661
|
}
|
|
15662
|
+
_debug4 = new WeakMap();
|
|
15663
|
+
_error2 = new WeakMap();
|
|
15639
15664
|
_GetPersonRecord = new WeakMap();
|
|
15640
15665
|
class TestStartUp {
|
|
15641
15666
|
constructor(workerInstance, runner) {
|
|
@@ -15658,7 +15683,7 @@ class TestStartUp {
|
|
|
15658
15683
|
const b2 = Math.floor(Math.random() * 127 + 127);
|
|
15659
15684
|
return `#${((1 << 24) + (r2 << 16) + (g2 << 8) + b2).toString(16).slice(1).toUpperCase()}`;
|
|
15660
15685
|
});
|
|
15661
|
-
__privateAdd(this,
|
|
15686
|
+
__privateAdd(this, _debug5, (message) => {
|
|
15662
15687
|
__privateGet(this, _workerInstance3).logger.debug(message);
|
|
15663
15688
|
});
|
|
15664
15689
|
__privateAdd(this, _GenLogMessage2, (runner, iteration) => {
|
|
@@ -15672,7 +15697,7 @@ class TestStartUp {
|
|
|
15672
15697
|
let message = `${" ".repeat(logMessageData.indent)} [${runner.id}] >> Hello World << ${iteration}`;
|
|
15673
15698
|
message = chalk$1.hex(__privateGet(this, _randomPastelColour2))(message);
|
|
15674
15699
|
runner.instrumentData.message.push(message);
|
|
15675
|
-
__privateGet(this,
|
|
15700
|
+
__privateGet(this, _debug5).call(this, message);
|
|
15676
15701
|
logMessageData.indent += logMessageData.adder;
|
|
15677
15702
|
if (logMessageData.indent > 20) {
|
|
15678
15703
|
logMessageData.adder = -1;
|
|
@@ -15726,13 +15751,13 @@ class TestStartUp {
|
|
|
15726
15751
|
__privateGet(this, _runner3).instrumentData.velocity++;
|
|
15727
15752
|
__privateGet(this, _runner3).instrumentData.tx += 256e3;
|
|
15728
15753
|
__privateGet(this, _runner3).instrumentData.rx += 65e5;
|
|
15729
|
-
__privateGet(this,
|
|
15730
|
-
__privateGet(this,
|
|
15754
|
+
__privateGet(this, _debug5).call(this, chalk$1.hex(__privateGet(this, _color2))(`${__privateGet(this, _runner3).iteration} - ${__privateGet(this, _runner3).instrumentData.requestCount} - ${(/* @__PURE__ */ new Date()).getTime()}`));
|
|
15755
|
+
__privateGet(this, _debug5).call(this, chalk$1.hex(__privateGet(this, _color2))(`Begin the startup process ...`));
|
|
15731
15756
|
for (let i = 0; i < 50; i++) {
|
|
15732
|
-
__privateGet(this,
|
|
15757
|
+
__privateGet(this, _debug5).call(this, chalk$1.hex(__privateGet(this, _color2))(` STARTUP --> ${performance.now()}`));
|
|
15733
15758
|
await Sleep(100);
|
|
15734
15759
|
}
|
|
15735
|
-
__privateGet(this,
|
|
15760
|
+
__privateGet(this, _debug5).call(this, chalk$1.hex(__privateGet(this, _color2))(`End the startup process ...`));
|
|
15736
15761
|
__privateGet(this, _runner3).instrumentData.activeRequestCount--;
|
|
15737
15762
|
const end = performance.now();
|
|
15738
15763
|
const diff = end - start;
|
|
@@ -15742,7 +15767,7 @@ class TestStartUp {
|
|
|
15742
15767
|
});
|
|
15743
15768
|
__privateAdd(this, _OutputLogMessage3, async (message) => {
|
|
15744
15769
|
const messageOutput = chalk$1.grey(message);
|
|
15745
|
-
__privateGet(this,
|
|
15770
|
+
__privateGet(this, _debug5).call(this, messageOutput);
|
|
15746
15771
|
__privateGet(this, _runner3).instrumentData.message.push(messageOutput);
|
|
15747
15772
|
await __privateGet(this, _PublishTelemetry2).call(this);
|
|
15748
15773
|
});
|
|
@@ -15813,7 +15838,7 @@ GetRandomHexColor_fn2 = function() {
|
|
|
15813
15838
|
return `#${hex}`;
|
|
15814
15839
|
};
|
|
15815
15840
|
_GetRandomPastelColor2 = new WeakMap();
|
|
15816
|
-
|
|
15841
|
+
_debug5 = new WeakMap();
|
|
15817
15842
|
_GenLogMessage2 = new WeakMap();
|
|
15818
15843
|
_SetupTimeout3 = new WeakMap();
|
|
15819
15844
|
_PublishTelemetryData3 = new WeakMap();
|
|
@@ -15841,7 +15866,7 @@ class TestShutDown {
|
|
|
15841
15866
|
const b2 = Math.floor(Math.random() * 127 + 127);
|
|
15842
15867
|
return `#${((1 << 24) + (r2 << 16) + (g2 << 8) + b2).toString(16).slice(1).toUpperCase()}`;
|
|
15843
15868
|
});
|
|
15844
|
-
__privateAdd(this,
|
|
15869
|
+
__privateAdd(this, _debug6, (message) => {
|
|
15845
15870
|
__privateGet(this, _workerInstance4).logger.debug(message);
|
|
15846
15871
|
});
|
|
15847
15872
|
__privateAdd(this, _GenLogMessage3, (runner, iteration) => {
|
|
@@ -15855,7 +15880,7 @@ class TestShutDown {
|
|
|
15855
15880
|
let message = `${" ".repeat(logMessageData.indent)} [${runner.id}] >> Hello World << ${iteration}`;
|
|
15856
15881
|
message = chalk$1.hex(__privateGet(this, _randomPastelColour3))(message);
|
|
15857
15882
|
runner.instrumentData.message.push(message);
|
|
15858
|
-
__privateGet(this,
|
|
15883
|
+
__privateGet(this, _debug6).call(this, message);
|
|
15859
15884
|
logMessageData.indent += logMessageData.adder;
|
|
15860
15885
|
if (logMessageData.indent > 20) {
|
|
15861
15886
|
logMessageData.adder = -1;
|
|
@@ -15909,13 +15934,13 @@ class TestShutDown {
|
|
|
15909
15934
|
__privateGet(this, _runner4).instrumentData.velocity++;
|
|
15910
15935
|
__privateGet(this, _runner4).instrumentData.tx += 256e3;
|
|
15911
15936
|
__privateGet(this, _runner4).instrumentData.rx += 65e5;
|
|
15912
|
-
__privateGet(this,
|
|
15913
|
-
__privateGet(this,
|
|
15937
|
+
__privateGet(this, _debug6).call(this, chalk$1.hex(__privateGet(this, _color3))(`${__privateGet(this, _runner4).iteration} - ${__privateGet(this, _runner4).instrumentData.requestCount} - ${(/* @__PURE__ */ new Date()).getTime()}`));
|
|
15938
|
+
__privateGet(this, _debug6).call(this, chalk$1.hex(__privateGet(this, _color3))(`Begin the shutdown process ...`));
|
|
15914
15939
|
for (let i = 0; i < 50; i++) {
|
|
15915
|
-
__privateGet(this,
|
|
15940
|
+
__privateGet(this, _debug6).call(this, chalk$1.hex(__privateGet(this, _color3))(` SHUTDOWN --> ${performance.now()}`));
|
|
15916
15941
|
await Sleep(100);
|
|
15917
15942
|
}
|
|
15918
|
-
__privateGet(this,
|
|
15943
|
+
__privateGet(this, _debug6).call(this, chalk$1.hex(__privateGet(this, _color3))(`End the startup process ...`));
|
|
15919
15944
|
__privateGet(this, _runner4).instrumentData.activeRequestCount--;
|
|
15920
15945
|
const end = performance.now();
|
|
15921
15946
|
const diff = end - start;
|
|
@@ -15925,7 +15950,7 @@ class TestShutDown {
|
|
|
15925
15950
|
});
|
|
15926
15951
|
__privateAdd(this, _OutputLogMessage4, async (message) => {
|
|
15927
15952
|
const messageOutput = chalk$1.grey(message);
|
|
15928
|
-
__privateGet(this,
|
|
15953
|
+
__privateGet(this, _debug6).call(this, messageOutput);
|
|
15929
15954
|
__privateGet(this, _runner4).instrumentData.message.push(messageOutput);
|
|
15930
15955
|
await __privateGet(this, _PublishTelemetry3).call(this);
|
|
15931
15956
|
});
|
|
@@ -15996,7 +16021,7 @@ GetRandomHexColor_fn3 = function() {
|
|
|
15996
16021
|
return `#${hex}`;
|
|
15997
16022
|
};
|
|
15998
16023
|
_GetRandomPastelColor3 = new WeakMap();
|
|
15999
|
-
|
|
16024
|
+
_debug6 = new WeakMap();
|
|
16000
16025
|
_GenLogMessage3 = new WeakMap();
|
|
16001
16026
|
_SetupTimeout4 = new WeakMap();
|
|
16002
16027
|
_PublishTelemetryData4 = new WeakMap();
|
|
@@ -20154,11 +20179,11 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20154
20179
|
super();
|
|
20155
20180
|
__privateAdd(this, _options5);
|
|
20156
20181
|
__privateAdd(this, _id2, v4());
|
|
20157
|
-
__privateAdd(this,
|
|
20182
|
+
__privateAdd(this, _clientName2, "");
|
|
20158
20183
|
__privateAdd(this, _wm);
|
|
20159
20184
|
__privateAdd(this, _socketUtils2);
|
|
20160
|
-
__privateAdd(this,
|
|
20161
|
-
__privateAdd(this,
|
|
20185
|
+
__privateAdd(this, _debug7, (message) => __privateGet(this, _options5).logger.debug(message));
|
|
20186
|
+
__privateAdd(this, _error3, (error) => __privateGet(this, _options5).logger.error(error));
|
|
20162
20187
|
__privateAdd(this, _info2, (message) => __privateGet(this, _options5).logger.info(message));
|
|
20163
20188
|
__privateAdd(this, _GetKeyPayloadData, (eventRequestCommand, eventReturnValueBaseType) => {
|
|
20164
20189
|
return {
|
|
@@ -20174,19 +20199,19 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20174
20199
|
});
|
|
20175
20200
|
__publicField(this, "Stop", async () => {
|
|
20176
20201
|
__privateGet(this, _EmitEvent).call(this, "Stopping", {});
|
|
20177
|
-
__privateGet(this,
|
|
20202
|
+
__privateGet(this, _debug7).call(this, chalk$1.magenta(`Stop(): Stopping Service.`));
|
|
20178
20203
|
const workers = await __privateGet(this, _wm).GetWorkersSmall([]);
|
|
20179
|
-
__privateGet(this,
|
|
20204
|
+
__privateGet(this, _debug7).call(this, `Stop(): Workers to terminated: [${JSON.stringify(workers, null, 2)}]`);
|
|
20180
20205
|
const workersTerminated = await __privateGet(this, _wm).TerminateWorkers(Object.values(workers).map((worker) => worker.id));
|
|
20181
|
-
__privateGet(this,
|
|
20206
|
+
__privateGet(this, _debug7).call(this, `Stop(): Workers terminated: [${JSON.stringify(workersTerminated, null, 2)}]`);
|
|
20182
20207
|
if (this.socket) {
|
|
20183
|
-
__privateGet(this,
|
|
20208
|
+
__privateGet(this, _debug7).call(this, `Stop(): Going to disconnect socket.`);
|
|
20184
20209
|
this.socket.disconnect();
|
|
20185
|
-
__privateGet(this,
|
|
20210
|
+
__privateGet(this, _debug7).call(this, `Stop(): Socket disconnected.`);
|
|
20186
20211
|
}
|
|
20187
|
-
__privateGet(this,
|
|
20212
|
+
__privateGet(this, _debug7).call(this, `Stop(): Sleeping (500ms) ...`);
|
|
20188
20213
|
await Sleep(500);
|
|
20189
|
-
__privateGet(this,
|
|
20214
|
+
__privateGet(this, _debug7).call(this, chalk$1.magenta(`Stop(): Service Stopped.`));
|
|
20190
20215
|
__privateGet(this, _EmitEvent).call(this, "Stopped", {});
|
|
20191
20216
|
});
|
|
20192
20217
|
// d.workers = JSON.parse(strFromU8(decompressSync(d.workers as any)));
|
|
@@ -20206,7 +20231,7 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20206
20231
|
return raw;
|
|
20207
20232
|
});
|
|
20208
20233
|
__privateAdd(this, _EmitStateChange, (runnerEx) => {
|
|
20209
|
-
__privateGet(this,
|
|
20234
|
+
__privateGet(this, _debug7).call(this, chalk$1.rgb(10, 50, 200)` ==>> Runner State Change: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}] State: [${runnerEx.state}]`);
|
|
20210
20235
|
const stateChangeRetVal = {
|
|
20211
20236
|
eventRequestCommand: "StateChange",
|
|
20212
20237
|
type: IEventReturnValueBaseType.runner,
|
|
@@ -20225,7 +20250,7 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20225
20250
|
const StartRunnerAndRespond = (eventRequestCommand, runnerEx, cb) => {
|
|
20226
20251
|
if (runnerEx) {
|
|
20227
20252
|
__privateGet(this, _SetupRunnerEventHandlers).call(this, runnerEx);
|
|
20228
|
-
__privateGet(this,
|
|
20253
|
+
__privateGet(this, _debug7).call(this, chalk$1.yellow(`${__privateGet(this, _clientName2)}: AddRunner: WorderId: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}]`));
|
|
20229
20254
|
cb(__privateGet(this, _EmitEvent).call(this, eventRequestCommand, __privateGet(this, _LogPayloadEventRetVal).call(this, {
|
|
20230
20255
|
...__privateGet(this, _GetKeyPayloadData).call(this, eventRequestCommand, IEventReturnValueBaseType.runner),
|
|
20231
20256
|
runner: __privateGet(this, _wm).CreateRunnerCopy(runnerEx)
|
|
@@ -20239,12 +20264,12 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20239
20264
|
};
|
|
20240
20265
|
socket.on("AddRunner", async (options, cb) => {
|
|
20241
20266
|
var _a2;
|
|
20242
|
-
__privateGet(this,
|
|
20267
|
+
__privateGet(this, _debug7).call(this, chalk$1.yellow(`${__privateGet(this, _id2)} ${__privateGet(this, _clientName2)}: --> AddRunner: [${JSON.stringify(options)}]`));
|
|
20243
20268
|
const runnerEx = await ((_a2 = __privateGet(this, _wm).GetNextAvailableWorker()) == null ? void 0 : _a2.AddRunner(options));
|
|
20244
20269
|
StartRunnerAndRespond(IEventRequestCommand.AddRunner, runnerEx, cb);
|
|
20245
20270
|
});
|
|
20246
20271
|
socket.on("AddRunnerToWorker", async (workerId, options, cb) => {
|
|
20247
|
-
__privateGet(this,
|
|
20272
|
+
__privateGet(this, _debug7).call(this, chalk$1.yellow(`${__privateGet(this, _id2)} ${__privateGet(this, _clientName2)}: --> AddRunnerToWorker: workerId: [${workerId}] options: [${JSON.stringify(options)}]`));
|
|
20248
20273
|
const workerEx = __privateGet(this, _wm).WorkersEx[workerId];
|
|
20249
20274
|
const runnerEx = await (workerEx == null ? void 0 : workerEx.AddRunner(options));
|
|
20250
20275
|
StartRunnerAndRespond(IEventRequestCommand.AddRunnerToWorker, runnerEx, cb);
|
|
@@ -20260,13 +20285,13 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20260
20285
|
// Events Registration
|
|
20261
20286
|
(socket2) => __privateGet(this, _RegisterSocketEvents).call(this, socket2, clientName),
|
|
20262
20287
|
// Error Callback
|
|
20263
|
-
(error) => __privateGet(this,
|
|
20288
|
+
(error) => __privateGet(this, _error3).call(this, `${clientName}: SetupClientSideSocket call back: [${error}]`)
|
|
20264
20289
|
);
|
|
20265
20290
|
return socket;
|
|
20266
20291
|
});
|
|
20267
20292
|
// Handle connection logic separately
|
|
20268
20293
|
__privateAdd(this, _OnSocketConnected2, (socket, clientName, joinRooms) => {
|
|
20269
|
-
__privateGet(this,
|
|
20294
|
+
__privateGet(this, _debug7).call(this, chalk$1.green(`${__privateGet(this, _id2)} ${clientName}: --> connected`));
|
|
20270
20295
|
__privateGet(this, _EmitEvent).call(this, "SocketConnected", {
|
|
20271
20296
|
id: __privateGet(this, _id2),
|
|
20272
20297
|
clientName,
|
|
@@ -20294,7 +20319,7 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20294
20319
|
const runnerEx = await ((_a2 = __privateGet(this, _wm).GetNextAvailableWorker()) == null ? void 0 : _a2.AddRunner(options));
|
|
20295
20320
|
if (runnerEx) {
|
|
20296
20321
|
__privateGet(this, _SetupRunnerEventHandlers).call(this, runnerEx);
|
|
20297
|
-
__privateGet(this,
|
|
20322
|
+
__privateGet(this, _debug7).call(this, chalk$1.yellow(`${__privateGet(this, _clientName2)}: AddRunner: WorderId: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}]`));
|
|
20298
20323
|
__privateGet(this, _EmitEvent).call(this, "AddRunnerToNextAvailableWorker", __privateGet(this, _wm).CreateRunnerCopy(runnerEx));
|
|
20299
20324
|
} else {
|
|
20300
20325
|
__privateGet(this, _EmitEvent).call(this, "AddRunnerToNextAvailableWorker", {});
|
|
@@ -20482,22 +20507,22 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20482
20507
|
// socketio and standard events
|
|
20483
20508
|
"disconnect": (reason) => {
|
|
20484
20509
|
__privateGet(this, _EmitEvent).call(this, "disconnect", reason);
|
|
20485
|
-
__privateGet(this,
|
|
20510
|
+
__privateGet(this, _error3).call(this, `#disconnect(): [${reason}]`);
|
|
20486
20511
|
},
|
|
20487
20512
|
"connect_error": (error) => {
|
|
20488
20513
|
__privateGet(this, _EmitEvent).call(this, "connect_error", error);
|
|
20489
20514
|
if (!socket.active) {
|
|
20490
|
-
__privateGet(this,
|
|
20515
|
+
__privateGet(this, _error3).call(this, error.message);
|
|
20491
20516
|
}
|
|
20492
20517
|
},
|
|
20493
20518
|
"__STSdisconnect": (reason) => {
|
|
20494
20519
|
__privateGet(this, _EmitEvent).call(this, "__STSdisconnect", reason);
|
|
20495
|
-
__privateGet(this,
|
|
20520
|
+
__privateGet(this, _debug7).call(this, chalk$1.magenta(`${logPrefix}: [${socket.id}] [${reason}]`));
|
|
20496
20521
|
this.Stop();
|
|
20497
20522
|
},
|
|
20498
20523
|
"error": (error) => {
|
|
20499
20524
|
__privateGet(this, _EmitEvent).call(this, "error", error);
|
|
20500
|
-
__privateGet(this,
|
|
20525
|
+
__privateGet(this, _error3).call(this, `#GetSocketEventHandlers(): [${error}]`);
|
|
20501
20526
|
},
|
|
20502
20527
|
// utility commands
|
|
20503
20528
|
"GetService": async (cb) => cb(await this.GetService()),
|
|
@@ -20526,7 +20551,7 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20526
20551
|
};
|
|
20527
20552
|
});
|
|
20528
20553
|
__privateSet(this, _options5, options);
|
|
20529
|
-
__privateSet(this,
|
|
20554
|
+
__privateSet(this, _clientName2, options.name);
|
|
20530
20555
|
__privateGet(this, _EmitEvent).call(this, "Starting", {});
|
|
20531
20556
|
let socketUtilsoptions = {
|
|
20532
20557
|
logger: defaultLogger
|
|
@@ -20551,7 +20576,7 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20551
20576
|
__privateGet(this, _info2).call(this, chalk$1.yellow(`Options: [${JSON.stringify(options)}]`));
|
|
20552
20577
|
__privateSet(this, _wm, __privateGet(this, _options5).CreateSTSWorkerManager());
|
|
20553
20578
|
__privateGet(this, _info2).call(this, chalk$1.yellow(`Worker Manager ID: [${__privateGet(this, _wm).id}]`));
|
|
20554
|
-
__privateGet(this, _SetupWSSClient2).call(this, __privateGet(this,
|
|
20579
|
+
__privateGet(this, _SetupWSSClient2).call(this, __privateGet(this, _clientName2), []);
|
|
20555
20580
|
const start = async () => {
|
|
20556
20581
|
for (let i = 0; i < __privateGet(this, _options5).workers; i++) {
|
|
20557
20582
|
await this.AddWorker({
|
|
@@ -20580,11 +20605,11 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
|
|
|
20580
20605
|
}
|
|
20581
20606
|
_options5 = new WeakMap();
|
|
20582
20607
|
_id2 = new WeakMap();
|
|
20583
|
-
|
|
20608
|
+
_clientName2 = new WeakMap();
|
|
20584
20609
|
_wm = new WeakMap();
|
|
20585
20610
|
_socketUtils2 = new WeakMap();
|
|
20586
|
-
|
|
20587
|
-
|
|
20611
|
+
_debug7 = new WeakMap();
|
|
20612
|
+
_error3 = new WeakMap();
|
|
20588
20613
|
_info2 = new WeakMap();
|
|
20589
20614
|
_GetKeyPayloadData = new WeakMap();
|
|
20590
20615
|
_LogPayloadEventRetVal = new WeakMap();
|