@formant/data-sdk 1.81.7 → 1.82.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/dist/data-sdk.cjs.js +7 -7
- package/dist/data-sdk.cjs.js.map +1 -1
- package/dist/data-sdk.es.js +186 -160
- package/dist/data-sdk.es.js.map +1 -1
- package/dist/data-sdk.es6.js +186 -160
- package/dist/data-sdk.umd.js +13 -13
- package/dist/types/data-sdk/src/Fleet.d.ts +20 -0
- package/package.json +3 -3
package/dist/data-sdk.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Qn = Object.defineProperty;
|
|
2
2
|
var Rn = (e, t, n) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var Ne = (e, t, n) => (Rn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
const DEFAULT_FORMANT_API_URL = "https://api.formant.io";
|
|
5
5
|
function whichFormantApiUrl(e, t, n) {
|
|
6
6
|
try {
|
|
@@ -134,14 +134,14 @@ var base64Exports = base64.exports;
|
|
|
134
134
|
class LoginFailureError extends Error {
|
|
135
135
|
constructor(n) {
|
|
136
136
|
super("login failed");
|
|
137
|
-
|
|
137
|
+
Ne(this, "reason");
|
|
138
138
|
this.reason = n, this.name = "LoginFailureError", Object.setPrototypeOf(this, new.target.prototype);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
class LoginChallengedError extends Error {
|
|
142
142
|
constructor(n) {
|
|
143
143
|
super("login challenged");
|
|
144
|
-
|
|
144
|
+
Ne(this, "challenge");
|
|
145
145
|
this.challenge = n, this.name = "LoginChallengedError", Object.setPrototypeOf(this, new.target.prototype);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -151,17 +151,17 @@ class AuthenticationStore {
|
|
|
151
151
|
refreshAuthToken: n,
|
|
152
152
|
addAccessTokenRefreshListener: r
|
|
153
153
|
}) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
154
|
+
Ne(this, "_refreshToken");
|
|
155
|
+
Ne(this, "_isShareToken", !1);
|
|
156
|
+
Ne(this, "_currentOrganization");
|
|
157
|
+
Ne(this, "_currentUser");
|
|
158
|
+
Ne(this, "_defaultDeviceId");
|
|
159
|
+
Ne(this, "_token");
|
|
160
|
+
Ne(this, "_waitingForAuth", /* @__PURE__ */ new Set());
|
|
161
|
+
Ne(this, "_refreshTimer");
|
|
162
|
+
Ne(this, "_apiUrl");
|
|
163
|
+
Ne(this, "_refreshAuthToken");
|
|
164
|
+
Ne(this, "_addAccessTokenRefreshListener");
|
|
165
165
|
this._apiUrl = t, this._refreshAuthToken = n, this._addAccessTokenRefreshListener = r;
|
|
166
166
|
}
|
|
167
167
|
set apiUrl(t) {
|
|
@@ -972,10 +972,10 @@ let StoreCache$1 = class {
|
|
|
972
972
|
capacity: t,
|
|
973
973
|
timeout: n
|
|
974
974
|
} = {}) {
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
975
|
+
Ne(this, "entries", /* @__PURE__ */ new Map());
|
|
976
|
+
Ne(this, "metadata", /* @__PURE__ */ new Map());
|
|
977
|
+
Ne(this, "capacity");
|
|
978
|
+
Ne(this, "staleIntervalMs");
|
|
979
979
|
this.capacity = t || 1e4, this.staleIntervalMs = n || duration$2.minute;
|
|
980
980
|
}
|
|
981
981
|
get(t, n) {
|
|
@@ -1044,11 +1044,11 @@ async function queryTelemetry(e) {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
let QueryStore$1 = class {
|
|
1046
1046
|
constructor() {
|
|
1047
|
-
|
|
1047
|
+
Ne(this, "queryStoreCache", new StoreCache$1({
|
|
1048
1048
|
capacity: 1e4,
|
|
1049
1049
|
timeout: 20 * duration$2.second
|
|
1050
1050
|
}));
|
|
1051
|
-
|
|
1051
|
+
Ne(this, "liveQueryStoreCache", new StoreCache$1({
|
|
1052
1052
|
capacity: 1e4,
|
|
1053
1053
|
timeout: 200 * duration$2.millisecond
|
|
1054
1054
|
}));
|
|
@@ -1189,10 +1189,10 @@ const gt = class gt {
|
|
|
1189
1189
|
return Promise.race([r, s()]);
|
|
1190
1190
|
}
|
|
1191
1191
|
};
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1192
|
+
Ne(gt, "getCurrentModuleContext", getCurrentModuleContext), // senders
|
|
1193
|
+
Ne(gt, "disableAnalyticsBottomBar", disableAnalyticsBottomBar), Ne(gt, "goToDevice", goToDevice), Ne(gt, "goToTime", goToTime), Ne(gt, "refreshAuthToken", refreshAuthToken), Ne(gt, "requestModuleData", requestModuleData), Ne(gt, "sendChannelData", sendChannelData), Ne(gt, "setModuleDateTimeRange", setModuleDateTimeRange), Ne(gt, "setupModuleMenus", setupModuleMenus), Ne(gt, "showMessage", showMessage), // listeners
|
|
1194
|
+
Ne(gt, "addAccessTokenRefreshListener", addAccessTokenRefreshListener), Ne(gt, "addChannelDataListener", addChannelDataListener), Ne(gt, "addMenuListener", addMenuListener), Ne(gt, "addModuleConfigurationListener", addModuleConfigurationListener), Ne(gt, "addModuleDataListener", addModuleDataListener), Ne(gt, "addOverviewDeviceListener", addOverviewDeviceListener), Ne(gt, "addStreamListener", addStreamListener), // bidirectional
|
|
1195
|
+
Ne(gt, "getDate", getDate), Ne(gt, "prompt", prompt), Ne(gt, "_isOnline", null);
|
|
1196
1196
|
let App = gt;
|
|
1197
1197
|
function stringToArrayBuffer(e) {
|
|
1198
1198
|
return Uint8Array.from(base64Exports.decode(e), (t) => t.charCodeAt(0));
|
|
@@ -1206,15 +1206,15 @@ function browser() {
|
|
|
1206
1206
|
const rtcAudioChunkStreamType = "audio-chunk";
|
|
1207
1207
|
class AudioPlayer {
|
|
1208
1208
|
constructor(t, n) {
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1209
|
+
Ne(this, "muted", !1);
|
|
1210
|
+
Ne(this, "hasReceivedData", !1);
|
|
1211
|
+
Ne(this, "audioContext");
|
|
1212
|
+
Ne(this, "chunks", []);
|
|
1213
|
+
Ne(this, "isPlaying", !1);
|
|
1214
|
+
Ne(this, "startTime", 0);
|
|
1215
|
+
Ne(this, "lastChunkOffset", 0);
|
|
1216
|
+
Ne(this, "bufferSize", 3);
|
|
1217
|
+
Ne(this, "receive", async (t) => {
|
|
1218
1218
|
var c;
|
|
1219
1219
|
const n = (c = t.payload.audioChunk) == null ? void 0 : c.chunk_data;
|
|
1220
1220
|
if (!n)
|
|
@@ -1236,7 +1236,7 @@ class AudioPlayer {
|
|
|
1236
1236
|
), this.changeAudioWireFormat("wav");
|
|
1237
1237
|
}
|
|
1238
1238
|
});
|
|
1239
|
-
|
|
1239
|
+
Ne(this, "scheduleChunk", (t) => {
|
|
1240
1240
|
const { audioContext: n } = this;
|
|
1241
1241
|
if (!n)
|
|
1242
1242
|
return;
|
|
@@ -1293,7 +1293,7 @@ function toArrayBuffer(e) {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
class CaptureStream {
|
|
1295
1295
|
constructor(t) {
|
|
1296
|
-
|
|
1296
|
+
Ne(this, "token");
|
|
1297
1297
|
this.captureSession = t;
|
|
1298
1298
|
}
|
|
1299
1299
|
async ingestJSON(t) {
|
|
@@ -1323,14 +1323,14 @@ class CaptureStream {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
class DataChannel {
|
|
1325
1325
|
constructor(t) {
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1326
|
+
Ne(this, "ready", !1);
|
|
1327
|
+
Ne(this, "listeners", []);
|
|
1328
|
+
Ne(this, "openListeners", []);
|
|
1329
|
+
Ne(this, "closeListeners", []);
|
|
1330
|
+
Ne(this, "errorListeners", []);
|
|
1331
|
+
Ne(this, "binaryListeners", []);
|
|
1332
|
+
Ne(this, "error");
|
|
1333
|
+
Ne(this, "decoder", new TextDecoder());
|
|
1334
1334
|
this.dataChannel = t, this.dataChannel.binaryType = "arraybuffer", this.dataChannel.onopen = () => {
|
|
1335
1335
|
this.setReady();
|
|
1336
1336
|
}, this.dataChannel.onclose = () => {
|
|
@@ -4665,7 +4665,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4665
4665
|
}
|
|
4666
4666
|
if (ye !== null) {
|
|
4667
4667
|
for (var pt = u(ae), vt = 0; vt < pt.length; vt++) {
|
|
4668
|
-
var
|
|
4668
|
+
var _e = r(pt[vt], 2), ft = _e[0], Ft = _e[1];
|
|
4669
4669
|
if (s(ft) === "object" && ft !== null) {
|
|
4670
4670
|
if (!oe(ye, I, ft, Ft, ge, Fe))
|
|
4671
4671
|
return !1;
|
|
@@ -12307,10 +12307,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12307
12307
|
}
|
|
12308
12308
|
ge = qe;
|
|
12309
12309
|
}
|
|
12310
|
-
var
|
|
12310
|
+
var _e = {};
|
|
12311
12311
|
function ft() {
|
|
12312
12312
|
return function(D) {
|
|
12313
|
-
var K =
|
|
12313
|
+
var K = _e;
|
|
12314
12314
|
return Object.prototype.hasOwnProperty.call(K, 9) ? K[9] : K[9] = D(9);
|
|
12315
12315
|
}(function() {
|
|
12316
12316
|
for (var D = 0, K = me(String(ge)).split("."), le = me("9").split("."), Be = Math.max(K.length, le.length), we = 0; D == 0 && we < Be; we++) {
|
|
@@ -14348,8 +14348,8 @@ Found: ${r.toString().split(`
|
|
|
14348
14348
|
return Ze.name;
|
|
14349
14349
|
var et = b.call(U.call(Ze), /^function\s*([\w$]+)/);
|
|
14350
14350
|
return et ? et[1] : null;
|
|
14351
|
-
}(I),
|
|
14352
|
-
return "[Function" + (vt ? ": " + vt : " (anonymous)") + "]" + (
|
|
14351
|
+
}(I), _e = J(I, pt);
|
|
14352
|
+
return "[Function" + (vt ? ": " + vt : " (anonymous)") + "]" + (_e.length > 0 ? " { " + L.call(_e, ", ") + " }" : "");
|
|
14353
14353
|
}
|
|
14354
14354
|
if (oe(I)) {
|
|
14355
14355
|
var ft = k ? F.call(String(I), /^(Symbol\(.*\))_[^)]*$/, "$1") : v.call(I);
|
|
@@ -23232,9 +23232,9 @@ ${j}`), E.pop(), `{${te}}`;
|
|
|
23232
23232
|
}
|
|
23233
23233
|
Ie.grpcCallDeadlineSlopMs = 500 * r.p.millisecond;
|
|
23234
23234
|
var Pe = __webpack_require__(8311);
|
|
23235
|
-
const ze = { ordered: !1, maxPacketLifeTime: 300 * r.p.millisecond }, qe = { ordered: !0 }, ut = { ordered: !0 }, pt = { ordered: !1, maxRetransmits: 0 }, vt = { ordered: !1, maxRetransmits: 0 },
|
|
23235
|
+
const ze = { ordered: !1, maxPacketLifeTime: 300 * r.p.millisecond }, qe = { ordered: !0 }, ut = { ordered: !0 }, pt = { ordered: !1, maxRetransmits: 0 }, vt = { ordered: !1, maxRetransmits: 0 }, _e = (Ee) => "received" in Ee && Ee.received !== void 0, ft = (Ee) => !("received" in Ee) || Ee.received === void 0, Ft = 2 * r.p.second, de = 10 * r.p.second;
|
|
23236
23236
|
function ht(Ee, N = {}) {
|
|
23237
|
-
const C = Array.from(Ee.values()), G = C.filter(
|
|
23237
|
+
const C = Array.from(Ee.values()), G = C.filter(_e), Z = G.length > 0, pe = Math.max(...C.map((fe) => fe.sent)), Ue = Math.max(...G.map((fe) => fe.received));
|
|
23238
23238
|
let ve;
|
|
23239
23239
|
if (Z) {
|
|
23240
23240
|
const fe = Date.now() - pe <= r.p.millisecond ? C.length - 1 : C.length, p = G.length > fe ? fe : G.length, g = G.map((Le) => Le.received - Le.sent), { standardDeviation: V, mean: X, jitter: ue } = function(Le) {
|
|
@@ -24934,13 +24934,13 @@ const SessionTypes = {
|
|
|
24934
24934
|
var Bn;
|
|
24935
24935
|
class RtcClientPool {
|
|
24936
24936
|
constructor(t) {
|
|
24937
|
-
|
|
24938
|
-
|
|
24939
|
-
|
|
24940
|
-
|
|
24941
|
-
|
|
24942
|
-
|
|
24943
|
-
|
|
24937
|
+
Ne(this, Bn, null);
|
|
24938
|
+
Ne(this, "createClient");
|
|
24939
|
+
Ne(this, "ttlMs");
|
|
24940
|
+
Ne(this, "proxyHandler");
|
|
24941
|
+
Ne(this, "proxyReceivers", /* @__PURE__ */ new Map());
|
|
24942
|
+
Ne(this, "teardownTimeout", null);
|
|
24943
|
+
Ne(this, "dispatch", (t, n) => {
|
|
24944
24944
|
this.proxyReceivers.forEach((r) => r == null ? void 0 : r(t, n));
|
|
24945
24945
|
});
|
|
24946
24946
|
const { createClient: n, ttlMs: r = 0 } = t;
|
|
@@ -25227,8 +25227,8 @@ var eventemitter3Exports = eventemitter3.exports;
|
|
|
25227
25227
|
const EventEmitter = /* @__PURE__ */ getDefaultExportFromCjs(eventemitter3Exports);
|
|
25228
25228
|
class Manipulator {
|
|
25229
25229
|
constructor(t, n) {
|
|
25230
|
-
|
|
25231
|
-
|
|
25230
|
+
Ne(this, "currentListeners", []);
|
|
25231
|
+
Ne(this, "onRealtimeMessage", (t, n) => {
|
|
25232
25232
|
n.payload.jointState && this.currentListeners.forEach((r) => {
|
|
25233
25233
|
n.payload.jointState && r(n.payload.jointState);
|
|
25234
25234
|
});
|
|
@@ -25251,8 +25251,8 @@ class Manipulator {
|
|
|
25251
25251
|
}
|
|
25252
25252
|
class RequestDataChannel {
|
|
25253
25253
|
constructor(t, n, r) {
|
|
25254
|
-
|
|
25255
|
-
|
|
25254
|
+
Ne(this, "channel");
|
|
25255
|
+
Ne(this, "requestIdToResponseMap", /* @__PURE__ */ new Map());
|
|
25256
25256
|
this.device = t, this.channel_name = n, this.timeout = r;
|
|
25257
25257
|
}
|
|
25258
25258
|
addOpenListener(t) {
|
|
@@ -25283,8 +25283,8 @@ class RequestDataChannel {
|
|
|
25283
25283
|
class BinaryRequestDataChannel extends RequestDataChannel {
|
|
25284
25284
|
constructor() {
|
|
25285
25285
|
super(...arguments);
|
|
25286
|
-
|
|
25287
|
-
|
|
25286
|
+
Ne(this, "RESPONSE_SUCCESS_BYTE", 0);
|
|
25287
|
+
Ne(this, "decoder", new TextDecoder());
|
|
25288
25288
|
}
|
|
25289
25289
|
/*
|
|
25290
25290
|
Request binary payload layout:
|
|
@@ -25391,11 +25391,11 @@ class TextRequestDataChannel extends RequestDataChannel {
|
|
|
25391
25391
|
class BaseDevice extends EventEmitter {
|
|
25392
25392
|
constructor() {
|
|
25393
25393
|
super(...arguments);
|
|
25394
|
-
|
|
25395
|
-
|
|
25396
|
-
|
|
25397
|
-
|
|
25398
|
-
|
|
25394
|
+
Ne(this, "rtcClient");
|
|
25395
|
+
Ne(this, "remoteDevicePeerId", null);
|
|
25396
|
+
Ne(this, "realtimeListeners", []);
|
|
25397
|
+
Ne(this, "connectionMonitorInterval");
|
|
25398
|
+
Ne(this, "handleMessage", (n, r) => {
|
|
25399
25399
|
this.realtimeListeners.forEach((o) => o(n, r));
|
|
25400
25400
|
});
|
|
25401
25401
|
}
|
|
@@ -25609,8 +25609,8 @@ class Device extends BaseDevice {
|
|
|
25609
25609
|
* On Firefox and iOS Safari, those conditions can be transient immediately after ICE reports "connected".
|
|
25610
25610
|
* That creates the "connect then disconnect after ~1s" pattern.
|
|
25611
25611
|
*/
|
|
25612
|
-
|
|
25613
|
-
|
|
25612
|
+
Ne(this, "connectionMonitorStartedAtMs", 0);
|
|
25613
|
+
Ne(this, "connectionMonitorConsecutiveFailures", 0);
|
|
25614
25614
|
this.id = n, this.name = r, this.organizationId = o, this.tags = s;
|
|
25615
25615
|
}
|
|
25616
25616
|
async getLatestTelemetry() {
|
|
@@ -26009,13 +26009,13 @@ class Device extends BaseDevice {
|
|
|
26009
26009
|
return n.scope.deviceIds = [this.id], await createShareLink(n, r);
|
|
26010
26010
|
}
|
|
26011
26011
|
}
|
|
26012
|
-
|
|
26012
|
+
Ne(Device, "createDevice", createDevice), Ne(Device, "patchDevice", patchDevice), Ne(Device, "getDevicesData", getDevicesData), Ne(Device, "queryDevicesData", queryDevicesData), Ne(Device, "disableDevice", disableDevice);
|
|
26013
26013
|
class PeerDevice extends BaseDevice {
|
|
26014
26014
|
constructor(n) {
|
|
26015
26015
|
super();
|
|
26016
|
-
|
|
26017
|
-
|
|
26018
|
-
|
|
26016
|
+
Ne(this, "id");
|
|
26017
|
+
Ne(this, "telemetryStreamActive", !1);
|
|
26018
|
+
Ne(this, "streamTelemetry", {});
|
|
26019
26019
|
this.peerUrl = n;
|
|
26020
26020
|
}
|
|
26021
26021
|
async getLatestTelemetry() {
|
|
@@ -26675,8 +26675,32 @@ const Ye = class Ye {
|
|
|
26675
26675
|
const n = await getDevice(t);
|
|
26676
26676
|
return Ye.knownContext.push(new WeakRef(n)), n;
|
|
26677
26677
|
}
|
|
26678
|
+
/**
|
|
26679
|
+
* Sets the group devices for multi-device (coherence group) contexts.
|
|
26680
|
+
* This is typically called automatically when overview_devices message is received.
|
|
26681
|
+
* @param devices Array of device information from the host container
|
|
26682
|
+
*/
|
|
26683
|
+
static setGroupDevices(t) {
|
|
26684
|
+
Ye.groupDevices = t, t.length > 0 && !Ye.defaultDeviceId && Ye.setDefaultDevice(t[0].id);
|
|
26685
|
+
}
|
|
26686
|
+
/**
|
|
26687
|
+
* Gets the group devices for multi-device contexts.
|
|
26688
|
+
* Returns undefined if not in a group context (single device view).
|
|
26689
|
+
* @returns Array of device information or undefined
|
|
26690
|
+
*/
|
|
26691
|
+
static getGroupDevices() {
|
|
26692
|
+
return Ye.groupDevices;
|
|
26693
|
+
}
|
|
26694
|
+
/**
|
|
26695
|
+
* Gets all group devices as Device instances.
|
|
26696
|
+
* Useful for modules that need full Device objects rather than just IDevice info.
|
|
26697
|
+
* @returns Promise resolving to array of Device instances
|
|
26698
|
+
*/
|
|
26699
|
+
static async getGroupDevicesAsDeviceInstances() {
|
|
26700
|
+
return !Ye.groupDevices || Ye.groupDevices.length === 0 ? [] : Promise.all(Ye.groupDevices.map((t) => Ye.getDevice(t.id)));
|
|
26701
|
+
}
|
|
26678
26702
|
};
|
|
26679
|
-
|
|
26703
|
+
Ne(Ye, "defaultDeviceId"), Ne(Ye, "knownContext", []), Ne(Ye, "groupDevices"), Ne(Ye, "createFleet", createFleet), Ne(Ye, "listFleets", listFleets), Ne(Ye, "getFleet", getFleet), Ne(Ye, "patchFleet", patchFleet), Ne(Ye, "deleteFleet", deleteFleet), Ne(Ye, "addDeviceToFleet", addDeviceToFleet), Ne(Ye, "getFleetDevices", getFleetDevices), Ne(Ye, "aggregateTelemetry", aggregateTelemetry), Ne(Ye, "createShareLink", createShareLink), Ne(Ye, "eventsCounter", eventsCounter), Ne(Ye, "getAnalyticStreams", getAnalyticStreams), Ne(Ye, "getAnalyticsModules", getAnalyticsModules), Ne(Ye, "getAnalyticsRows", getAnalyticsRows), Ne(Ye, "getAnnotationCount", getAnnotationCount), Ne(Ye, "getAnnotationCountByIntervals", getAnnotationCountByIntervals), Ne(Ye, "getCurrentGroup", getCurrentGroup), Ne(Ye, "getDevices", getDevices), Ne(Ye, "getEvent", getEvent), Ne(Ye, "getFileUrl", getFileUrl), Ne(Ye, "getInterventions", getInterventions), Ne(Ye, "getLatestTelemetry", getLatestTelemetry), Ne(Ye, "getOnlineDevices", getOnlineDevices), Ne(Ye, "getPeers", getPeers), Ne(Ye, "getRealtimeDevices", getRealtimeDevices), Ne(Ye, "getRealtimeSessions", getRealtimeSessions), Ne(Ye, "getStreams", getStreams), Ne(Ye, "getTaskReportRows", getTaskReportRows), Ne(Ye, "getTaskReportTables", getTaskReportTables), Ne(Ye, "getTelemetry", getTelemetry), Ne(Ye, "getViews", getViews), Ne(Ye, "patchStream", patchStream), Ne(Ye, "patchView", patchView), Ne(Ye, "queryAnalytics", queryAnalytics), Ne(Ye, "queryDevices", queryDevices), Ne(Ye, "queryEvents", queryEvents), Ne(Ye, "queryTelemetry", queryTelemetry), Ne(Ye, "getAllEventTriggerGroup", getAllEventTriggerGroup), Ne(Ye, "getEventTriggerGroup", getEventTriggerGroup), Ne(Ye, "patchEventTriggergroup", patchEventTriggerGroup);
|
|
26680
26704
|
let Fleet = Ye;
|
|
26681
26705
|
class KeyValue {
|
|
26682
26706
|
static async set(t, n, r) {
|
|
@@ -26935,7 +26959,7 @@ class Views {
|
|
|
26935
26959
|
constructor() {
|
|
26936
26960
|
}
|
|
26937
26961
|
}
|
|
26938
|
-
|
|
26962
|
+
Ne(Views, "createTeleopView", createTeleopView), Ne(Views, "updateTeleopView", updateTeleopView), Ne(Views, "deleteTeleopView", deleteTeleopView), Ne(Views, "getTeleopView", getTeleopView), Ne(Views, "fetchTeleopViews", fetchTeleopViews);
|
|
26939
26963
|
const viewer = "viewer", operator = "operator", administrator = "administrator", accessLevels = ["viewer", "operator", "administrator"], aggregateLevels = [
|
|
26940
26964
|
"year",
|
|
26941
26965
|
"month",
|
|
@@ -26971,7 +26995,9 @@ try {
|
|
|
26971
26995
|
const e = typeof window != "undefined" && window.location ? new URLSearchParams(window.location.search) : new URLSearchParams(""), t = e.get("device");
|
|
26972
26996
|
t && Fleet.setDefaultDevice(t);
|
|
26973
26997
|
const n = e.get("auth");
|
|
26974
|
-
n && Authentication.loginWithToken(n), e.get("module") && Authentication.listenForRefresh(),
|
|
26998
|
+
n && Authentication.loginWithToken(n), e.get("module") && (Authentication.listenForRefresh(), App.addOverviewDeviceListener((o) => {
|
|
26999
|
+
o && o.length > 0 && Fleet.setGroupDevices(o);
|
|
27000
|
+
})), typeof window != "undefined" && App.listenForConnectionEvents();
|
|
26975
27001
|
} catch (e) {
|
|
26976
27002
|
}
|
|
26977
27003
|
var __defProp = Object.defineProperty, __defProps = Object.defineProperties, __getOwnPropDescs = Object.getOwnPropertyDescriptors, __getOwnPropSymbols = Object.getOwnPropertySymbols, __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable, __defNormalProp = (e, t, n) => t in e ? __defProp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, __spreadValues = (e, t) => {
|
|
@@ -27965,12 +27991,12 @@ var signaling_pb = {}, googleProtobuf = {};
|
|
|
27965
27991
|
return p.constructor === Uint8Array ? p : p.constructor === ArrayBuffer ? new Uint8Array(p) : p.constructor === Array ? new Uint8Array(p) : p.constructor === String ? x(p) : p instanceof Uint8Array ? new Uint8Array(p.buffer, p.byteOffset, p.byteLength) : (H("Type not convertible to Uint8Array."), new Uint8Array(0));
|
|
27966
27992
|
}
|
|
27967
27993
|
y("jspb.utils.byteSourceToUint8Array", vt, void 0);
|
|
27968
|
-
function
|
|
27994
|
+
function _e(p, g, V) {
|
|
27969
27995
|
this.b = null, this.a = this.c = this.h = 0, this.v = !1, p && this.H(p, g, V);
|
|
27970
27996
|
}
|
|
27971
|
-
y("jspb.BinaryDecoder",
|
|
27997
|
+
y("jspb.BinaryDecoder", _e, void 0);
|
|
27972
27998
|
var ft = [];
|
|
27973
|
-
|
|
27999
|
+
_e.getInstanceCacheLength = function() {
|
|
27974
28000
|
return ft.length;
|
|
27975
28001
|
};
|
|
27976
28002
|
function Ft(p, g, V) {
|
|
@@ -27978,37 +28004,37 @@ var signaling_pb = {}, googleProtobuf = {};
|
|
|
27978
28004
|
var X = ft.pop();
|
|
27979
28005
|
return p && X.H(p, g, V), X;
|
|
27980
28006
|
}
|
|
27981
|
-
return new
|
|
28007
|
+
return new _e(p, g, V);
|
|
27982
28008
|
}
|
|
27983
|
-
|
|
28009
|
+
_e.alloc = Ft, _e.prototype.Ca = function() {
|
|
27984
28010
|
this.clear(), 100 > ft.length && ft.push(this);
|
|
27985
|
-
},
|
|
28011
|
+
}, _e.prototype.free = _e.prototype.Ca, _e.prototype.clone = function() {
|
|
27986
28012
|
return Ft(this.b, this.h, this.c - this.h);
|
|
27987
|
-
},
|
|
28013
|
+
}, _e.prototype.clone = _e.prototype.clone, _e.prototype.clear = function() {
|
|
27988
28014
|
this.b = null, this.a = this.c = this.h = 0, this.v = !1;
|
|
27989
|
-
},
|
|
28015
|
+
}, _e.prototype.clear = _e.prototype.clear, _e.prototype.Y = function() {
|
|
27990
28016
|
return this.b;
|
|
27991
|
-
},
|
|
28017
|
+
}, _e.prototype.getBuffer = _e.prototype.Y, _e.prototype.H = function(p, g, V) {
|
|
27992
28018
|
this.b = vt(p), this.h = g !== void 0 ? g : 0, this.c = V !== void 0 ? this.h + V : this.b.length, this.a = this.h;
|
|
27993
|
-
},
|
|
28019
|
+
}, _e.prototype.setBlock = _e.prototype.H, _e.prototype.Db = function() {
|
|
27994
28020
|
return this.c;
|
|
27995
|
-
},
|
|
28021
|
+
}, _e.prototype.getEnd = _e.prototype.Db, _e.prototype.setEnd = function(p) {
|
|
27996
28022
|
this.c = p;
|
|
27997
|
-
},
|
|
28023
|
+
}, _e.prototype.setEnd = _e.prototype.setEnd, _e.prototype.reset = function() {
|
|
27998
28024
|
this.a = this.h;
|
|
27999
|
-
},
|
|
28025
|
+
}, _e.prototype.reset = _e.prototype.reset, _e.prototype.B = function() {
|
|
28000
28026
|
return this.a;
|
|
28001
|
-
},
|
|
28027
|
+
}, _e.prototype.getCursor = _e.prototype.B, _e.prototype.Ma = function(p) {
|
|
28002
28028
|
this.a = p;
|
|
28003
|
-
},
|
|
28029
|
+
}, _e.prototype.setCursor = _e.prototype.Ma, _e.prototype.advance = function(p) {
|
|
28004
28030
|
this.a += p, A(this.a <= this.c);
|
|
28005
|
-
},
|
|
28031
|
+
}, _e.prototype.advance = _e.prototype.advance, _e.prototype.ya = function() {
|
|
28006
28032
|
return this.a == this.c;
|
|
28007
|
-
},
|
|
28033
|
+
}, _e.prototype.atEnd = _e.prototype.ya, _e.prototype.Qb = function() {
|
|
28008
28034
|
return this.a > this.c;
|
|
28009
|
-
},
|
|
28035
|
+
}, _e.prototype.pastEnd = _e.prototype.Qb, _e.prototype.getError = function() {
|
|
28010
28036
|
return this.v || 0 > this.a || this.a > this.c;
|
|
28011
|
-
},
|
|
28037
|
+
}, _e.prototype.getError = _e.prototype.getError, _e.prototype.w = function(p) {
|
|
28012
28038
|
for (var g = 128, V = 0, X = 0, ue = 0; 4 > ue && 128 <= g; ue++)
|
|
28013
28039
|
g = this.b[this.a++], V |= (g & 127) << 7 * ue;
|
|
28014
28040
|
if (128 <= g && (g = this.b[this.a++], V |= (g & 127) << 28, X |= (g & 127) >> 4), 128 <= g)
|
|
@@ -28017,91 +28043,91 @@ var signaling_pb = {}, googleProtobuf = {};
|
|
|
28017
28043
|
if (128 > g)
|
|
28018
28044
|
return p(V >>> 0, X >>> 0);
|
|
28019
28045
|
H("Failed to read varint, encoding is invalid."), this.v = !0;
|
|
28020
|
-
},
|
|
28046
|
+
}, _e.prototype.readSplitVarint64 = _e.prototype.w, _e.prototype.ea = function(p) {
|
|
28021
28047
|
return this.w(function(g, V) {
|
|
28022
28048
|
return ae(g, V, p);
|
|
28023
28049
|
});
|
|
28024
|
-
},
|
|
28050
|
+
}, _e.prototype.readSplitZigzagVarint64 = _e.prototype.ea, _e.prototype.ta = function(p) {
|
|
28025
28051
|
var g = this.b, V = this.a;
|
|
28026
28052
|
this.a += 8;
|
|
28027
28053
|
for (var X = 0, ue = 0, be = V + 7; be >= V; be--)
|
|
28028
28054
|
X = X << 8 | g[be], ue = ue << 8 | g[be + 4];
|
|
28029
28055
|
return p(X, ue);
|
|
28030
|
-
},
|
|
28056
|
+
}, _e.prototype.readSplitFixed64 = _e.prototype.ta, _e.prototype.kb = function() {
|
|
28031
28057
|
for (; this.b[this.a] & 128; )
|
|
28032
28058
|
this.a++;
|
|
28033
28059
|
this.a++;
|
|
28034
|
-
},
|
|
28060
|
+
}, _e.prototype.skipVarint = _e.prototype.kb, _e.prototype.mb = function(p) {
|
|
28035
28061
|
for (; 128 < p; )
|
|
28036
28062
|
this.a--, p >>>= 7;
|
|
28037
28063
|
this.a--;
|
|
28038
|
-
},
|
|
28064
|
+
}, _e.prototype.unskipVarint = _e.prototype.mb, _e.prototype.o = function() {
|
|
28039
28065
|
var p = this.b, g = p[this.a], V = g & 127;
|
|
28040
28066
|
return 128 > g ? (this.a += 1, A(this.a <= this.c), V) : (g = p[this.a + 1], V |= (g & 127) << 7, 128 > g ? (this.a += 2, A(this.a <= this.c), V) : (g = p[this.a + 2], V |= (g & 127) << 14, 128 > g ? (this.a += 3, A(this.a <= this.c), V) : (g = p[this.a + 3], V |= (g & 127) << 21, 128 > g ? (this.a += 4, A(this.a <= this.c), V) : (g = p[this.a + 4], V |= (g & 15) << 28, 128 > g ? (this.a += 5, A(this.a <= this.c), V >>> 0) : (this.a += 5, 128 <= p[this.a++] && 128 <= p[this.a++] && 128 <= p[this.a++] && 128 <= p[this.a++] && 128 <= p[this.a++] && A(!1), A(this.a <= this.c), V)))));
|
|
28041
|
-
},
|
|
28067
|
+
}, _e.prototype.readUnsignedVarint32 = _e.prototype.o, _e.prototype.da = function() {
|
|
28042
28068
|
return ~~this.o();
|
|
28043
|
-
},
|
|
28069
|
+
}, _e.prototype.readSignedVarint32 = _e.prototype.da, _e.prototype.O = function() {
|
|
28044
28070
|
return this.o().toString();
|
|
28045
|
-
},
|
|
28071
|
+
}, _e.prototype.Ea = function() {
|
|
28046
28072
|
return this.da().toString();
|
|
28047
|
-
},
|
|
28073
|
+
}, _e.prototype.readSignedVarint32String = _e.prototype.Ea, _e.prototype.Ia = function() {
|
|
28048
28074
|
var p = this.o();
|
|
28049
28075
|
return p >>> 1 ^ -(p & 1);
|
|
28050
|
-
},
|
|
28076
|
+
}, _e.prototype.readZigzagVarint32 = _e.prototype.Ia, _e.prototype.Ga = function() {
|
|
28051
28077
|
return this.w(We);
|
|
28052
|
-
},
|
|
28078
|
+
}, _e.prototype.readUnsignedVarint64 = _e.prototype.Ga, _e.prototype.Ha = function() {
|
|
28053
28079
|
return this.w(Oe);
|
|
28054
|
-
},
|
|
28080
|
+
}, _e.prototype.readUnsignedVarint64String = _e.prototype.Ha, _e.prototype.sa = function() {
|
|
28055
28081
|
return this.w(J);
|
|
28056
|
-
},
|
|
28082
|
+
}, _e.prototype.readSignedVarint64 = _e.prototype.sa, _e.prototype.Fa = function() {
|
|
28057
28083
|
return this.w(Ie);
|
|
28058
|
-
},
|
|
28084
|
+
}, _e.prototype.readSignedVarint64String = _e.prototype.Fa, _e.prototype.Ja = function() {
|
|
28059
28085
|
return this.w(I);
|
|
28060
|
-
},
|
|
28086
|
+
}, _e.prototype.readZigzagVarint64 = _e.prototype.Ja, _e.prototype.fb = function() {
|
|
28061
28087
|
return this.ea(ye);
|
|
28062
|
-
},
|
|
28088
|
+
}, _e.prototype.readZigzagVarintHash64 = _e.prototype.fb, _e.prototype.Ka = function() {
|
|
28063
28089
|
return this.ea(Ie);
|
|
28064
|
-
},
|
|
28090
|
+
}, _e.prototype.readZigzagVarint64String = _e.prototype.Ka, _e.prototype.Gc = function() {
|
|
28065
28091
|
var p = this.b[this.a];
|
|
28066
28092
|
return this.a += 1, A(this.a <= this.c), p;
|
|
28067
|
-
},
|
|
28093
|
+
}, _e.prototype.readUint8 = _e.prototype.Gc, _e.prototype.Ec = function() {
|
|
28068
28094
|
var p = this.b[this.a], g = this.b[this.a + 1];
|
|
28069
28095
|
return this.a += 2, A(this.a <= this.c), p << 0 | g << 8;
|
|
28070
|
-
},
|
|
28096
|
+
}, _e.prototype.readUint16 = _e.prototype.Ec, _e.prototype.m = function() {
|
|
28071
28097
|
var p = this.b[this.a], g = this.b[this.a + 1], V = this.b[this.a + 2], X = this.b[this.a + 3];
|
|
28072
28098
|
return this.a += 4, A(this.a <= this.c), (p << 0 | g << 8 | V << 16 | X << 24) >>> 0;
|
|
28073
|
-
},
|
|
28099
|
+
}, _e.prototype.readUint32 = _e.prototype.m, _e.prototype.ga = function() {
|
|
28074
28100
|
var p = this.m(), g = this.m();
|
|
28075
28101
|
return We(p, g);
|
|
28076
|
-
},
|
|
28102
|
+
}, _e.prototype.readUint64 = _e.prototype.ga, _e.prototype.ha = function() {
|
|
28077
28103
|
var p = this.m(), g = this.m();
|
|
28078
28104
|
return Oe(p, g);
|
|
28079
|
-
},
|
|
28105
|
+
}, _e.prototype.readUint64String = _e.prototype.ha, _e.prototype.Xb = function() {
|
|
28080
28106
|
var p = this.b[this.a];
|
|
28081
28107
|
return this.a += 1, A(this.a <= this.c), p << 24 >> 24;
|
|
28082
|
-
},
|
|
28108
|
+
}, _e.prototype.readInt8 = _e.prototype.Xb, _e.prototype.Vb = function() {
|
|
28083
28109
|
var p = this.b[this.a], g = this.b[this.a + 1];
|
|
28084
28110
|
return this.a += 2, A(this.a <= this.c), (p << 0 | g << 8) << 16 >> 16;
|
|
28085
|
-
},
|
|
28111
|
+
}, _e.prototype.readInt16 = _e.prototype.Vb, _e.prototype.P = function() {
|
|
28086
28112
|
var p = this.b[this.a], g = this.b[this.a + 1], V = this.b[this.a + 2], X = this.b[this.a + 3];
|
|
28087
28113
|
return this.a += 4, A(this.a <= this.c), p << 0 | g << 8 | V << 16 | X << 24;
|
|
28088
|
-
},
|
|
28114
|
+
}, _e.prototype.readInt32 = _e.prototype.P, _e.prototype.ba = function() {
|
|
28089
28115
|
var p = this.m(), g = this.m();
|
|
28090
28116
|
return J(p, g);
|
|
28091
|
-
},
|
|
28117
|
+
}, _e.prototype.readInt64 = _e.prototype.ba, _e.prototype.ca = function() {
|
|
28092
28118
|
var p = this.m(), g = this.m();
|
|
28093
28119
|
return Ie(p, g);
|
|
28094
|
-
},
|
|
28120
|
+
}, _e.prototype.readInt64String = _e.prototype.ca, _e.prototype.aa = function() {
|
|
28095
28121
|
var p = this.m();
|
|
28096
28122
|
return ge(p);
|
|
28097
|
-
},
|
|
28123
|
+
}, _e.prototype.readFloat = _e.prototype.aa, _e.prototype.Z = function() {
|
|
28098
28124
|
var p = this.m(), g = this.m();
|
|
28099
28125
|
return Fe(p, g);
|
|
28100
|
-
},
|
|
28126
|
+
}, _e.prototype.readDouble = _e.prototype.Z, _e.prototype.pa = function() {
|
|
28101
28127
|
return !!this.b[this.a++];
|
|
28102
|
-
},
|
|
28128
|
+
}, _e.prototype.readBool = _e.prototype.pa, _e.prototype.ra = function() {
|
|
28103
28129
|
return this.da();
|
|
28104
|
-
},
|
|
28130
|
+
}, _e.prototype.readEnum = _e.prototype.ra, _e.prototype.fa = function(p) {
|
|
28105
28131
|
var g = this.b, V = this.a;
|
|
28106
28132
|
p = V + p;
|
|
28107
28133
|
for (var X = [], ue = ""; V < p; ) {
|
|
@@ -28127,20 +28153,20 @@ var signaling_pb = {}, googleProtobuf = {};
|
|
|
28127
28153
|
8192 <= X.length && (ue += String.fromCharCode.apply(null, X), X.length = 0);
|
|
28128
28154
|
}
|
|
28129
28155
|
return ue += $(X), this.a = V, ue;
|
|
28130
|
-
},
|
|
28156
|
+
}, _e.prototype.readString = _e.prototype.fa, _e.prototype.Dc = function() {
|
|
28131
28157
|
var p = this.o();
|
|
28132
28158
|
return this.fa(p);
|
|
28133
|
-
},
|
|
28159
|
+
}, _e.prototype.readStringWithLength = _e.prototype.Dc, _e.prototype.qa = function(p) {
|
|
28134
28160
|
if (0 > p || this.a + p > this.b.length)
|
|
28135
28161
|
return this.v = !0, H("Invalid byte length!"), new Uint8Array(0);
|
|
28136
28162
|
var g = this.b.subarray(this.a, this.a + p);
|
|
28137
28163
|
return this.a += p, A(this.a <= this.c), g;
|
|
28138
|
-
},
|
|
28164
|
+
}, _e.prototype.readBytes = _e.prototype.qa, _e.prototype.ia = function() {
|
|
28139
28165
|
return this.w(ye);
|
|
28140
|
-
},
|
|
28166
|
+
}, _e.prototype.readVarintHash64 = _e.prototype.ia, _e.prototype.$ = function() {
|
|
28141
28167
|
var p = this.b, g = this.a, V = p[g], X = p[g + 1], ue = p[g + 2], be = p[g + 3], Ce = p[g + 4], Ae = p[g + 5], Le = p[g + 6];
|
|
28142
28168
|
return p = p[g + 7], this.a += 8, String.fromCharCode(V, X, ue, be, Ce, Ae, Le, p);
|
|
28143
|
-
},
|
|
28169
|
+
}, _e.prototype.readFixedHash64 = _e.prototype.$;
|
|
28144
28170
|
function de(p, g, V) {
|
|
28145
28171
|
this.a = Ft(p, g, V), this.O = this.a.B(), this.b = this.c = -1, this.h = !1, this.v = null;
|
|
28146
28172
|
}
|
|
@@ -31634,8 +31660,8 @@ class LRUCache {
|
|
|
31634
31660
|
const BaseLruCache = LRUCache;
|
|
31635
31661
|
class LruCache {
|
|
31636
31662
|
constructor(t) {
|
|
31637
|
-
|
|
31638
|
-
|
|
31663
|
+
Ne(this, "cache");
|
|
31664
|
+
Ne(this, "stringify");
|
|
31639
31665
|
this.cache = new BaseLruCache({
|
|
31640
31666
|
// if using the dispose callback,
|
|
31641
31667
|
// by default automatically prune expired entries so
|
|
@@ -31685,8 +31711,8 @@ class LruCache {
|
|
|
31685
31711
|
class PromiseLruCache extends LruCache {
|
|
31686
31712
|
constructor(n) {
|
|
31687
31713
|
super(n);
|
|
31688
|
-
|
|
31689
|
-
|
|
31714
|
+
Ne(this, "expireRejectedPromiseValues");
|
|
31715
|
+
Ne(this, "rejectedPromiseValueTtl");
|
|
31690
31716
|
if (this.expireRejectedPromiseValues = n.expireRejectedPromiseValues !== void 0 ? n.expireRejectedPromiseValues : !0, this.rejectedPromiseValueTtl = n.rejectedPromiseValueTtl !== void 0 ? n.rejectedPromiseValueTtl : duration.second, this.rejectedPromiseValueTtl < 0)
|
|
31691
31717
|
throw new Error("rejectedPromiseValueTtl must not be negative");
|
|
31692
31718
|
}
|
|
@@ -31698,14 +31724,14 @@ class PromiseLruCache extends LruCache {
|
|
|
31698
31724
|
}
|
|
31699
31725
|
const range = (e, t) => t <= e ? [] : new Array(t - e).fill(0).map((n, r) => r + e), workerCount = 4, St = class St {
|
|
31700
31726
|
constructor() {
|
|
31701
|
-
|
|
31702
|
-
|
|
31727
|
+
Ne(this, "workers");
|
|
31728
|
+
Ne(this, "cache", new PromiseLruCache({
|
|
31703
31729
|
name: "DataLoader-cache",
|
|
31704
31730
|
max: 5e3
|
|
31705
31731
|
}));
|
|
31706
|
-
|
|
31707
|
-
|
|
31708
|
-
|
|
31732
|
+
Ne(this, "nextWorkerIndex", -1);
|
|
31733
|
+
Ne(this, "resolveMap", {});
|
|
31734
|
+
Ne(this, "rejectMap", {});
|
|
31709
31735
|
}
|
|
31710
31736
|
static get() {
|
|
31711
31737
|
return St.references++, St.instance || (St.instance = new St()), St.instance;
|
|
@@ -31751,7 +31777,7 @@ const range = (e, t) => t <= e ? [] : new Array(t - e).fill(0).map((n, r) => r +
|
|
|
31751
31777
|
})), this.nextWorkerIndex = (this.nextWorkerIndex + 1) % workerCount, this.workers[this.nextWorkerIndex];
|
|
31752
31778
|
}
|
|
31753
31779
|
};
|
|
31754
|
-
|
|
31780
|
+
Ne(St, "references", 0), Ne(St, "instance", null);
|
|
31755
31781
|
let DataLoader = St;
|
|
31756
31782
|
function filterDataByTime(e, t, n) {
|
|
31757
31783
|
const r = t.getTime(), o = n.getTime();
|
|
@@ -31772,10 +31798,10 @@ class StoreCache {
|
|
|
31772
31798
|
capacity: t,
|
|
31773
31799
|
timeout: n
|
|
31774
31800
|
} = {}) {
|
|
31775
|
-
|
|
31776
|
-
|
|
31777
|
-
|
|
31778
|
-
|
|
31801
|
+
Ne(this, "entries", /* @__PURE__ */ new Map());
|
|
31802
|
+
Ne(this, "metadata", /* @__PURE__ */ new Map());
|
|
31803
|
+
Ne(this, "capacity");
|
|
31804
|
+
Ne(this, "timeout");
|
|
31779
31805
|
this.capacity = t || 1e4, this.timeout = n || duration.minute;
|
|
31780
31806
|
}
|
|
31781
31807
|
get(t, n) {
|
|
@@ -31826,11 +31852,11 @@ function roundToNearestSecond(e) {
|
|
|
31826
31852
|
}
|
|
31827
31853
|
class QueryStore {
|
|
31828
31854
|
constructor() {
|
|
31829
|
-
|
|
31855
|
+
Ne(this, "queryStoreCache", new StoreCache({
|
|
31830
31856
|
capacity: 1e4,
|
|
31831
31857
|
timeout: 20 * duration.second
|
|
31832
31858
|
}));
|
|
31833
|
-
|
|
31859
|
+
Ne(this, "liveQueryStoreCache", new StoreCache({
|
|
31834
31860
|
capacity: 1e4,
|
|
31835
31861
|
timeout: 1 * duration.second
|
|
31836
31862
|
}));
|
|
@@ -31881,15 +31907,15 @@ class QueryStore {
|
|
|
31881
31907
|
const debug = new URLSearchParams(window.location.search).get("debug") === "true";
|
|
31882
31908
|
class BasicUniverseDataConnector {
|
|
31883
31909
|
constructor() {
|
|
31884
|
-
|
|
31885
|
-
|
|
31886
|
-
|
|
31887
|
-
|
|
31888
|
-
|
|
31889
|
-
|
|
31890
|
-
|
|
31891
|
-
|
|
31892
|
-
|
|
31910
|
+
Ne(this, "subscriberSources", /* @__PURE__ */ new Map());
|
|
31911
|
+
Ne(this, "subscriberLoaders", /* @__PURE__ */ new Map());
|
|
31912
|
+
Ne(this, "subscriberDistributorsLoaders", /* @__PURE__ */ new Map());
|
|
31913
|
+
Ne(this, "mapRealtimeConnections", /* @__PURE__ */ new Map());
|
|
31914
|
+
Ne(this, "lastQueriedHistoricTime");
|
|
31915
|
+
Ne(this, "time");
|
|
31916
|
+
Ne(this, "timeChangeListeners", []);
|
|
31917
|
+
Ne(this, "queryStore", new QueryStore());
|
|
31918
|
+
Ne(this, "dataLoader");
|
|
31893
31919
|
this.time = "live", this.dataLoader = DataLoader.get();
|
|
31894
31920
|
const t = async () => {
|
|
31895
31921
|
if (Array.from(this.subscriberLoaders.keys()).length > 0) {
|
|
@@ -32655,9 +32681,9 @@ const NoData = Symbol("no_data"), LoadingData = Symbol("loading_data"), FailedDa
|
|
|
32655
32681
|
class TelemetryUniverseData extends BasicUniverseDataConnector {
|
|
32656
32682
|
constructor() {
|
|
32657
32683
|
super();
|
|
32658
|
-
|
|
32659
|
-
|
|
32660
|
-
|
|
32684
|
+
Ne(this, "liveIntervalHandle");
|
|
32685
|
+
Ne(this, "timeFinders", []);
|
|
32686
|
+
Ne(this, "videoCache", new StoreCache({
|
|
32661
32687
|
capacity: 50
|
|
32662
32688
|
}));
|
|
32663
32689
|
this.timeChangeListeners.push(this.onTimeChange.bind(this)), this.onTimeChange("live");
|