@viamrobotics/sdk 0.0.45 → 0.0.47-alpha.1
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/components/base/Base.d.ts +3 -3
- package/dist/components/base/Client.d.ts +3 -3
- package/dist/components/movementsensor/Client.d.ts +8 -23
- package/dist/components/movementsensor/MovementSensor.d.ts +9 -20
- package/dist/components/movementsensor.d.ts +1 -1
- package/dist/gen/component/movementsensor/v1/movementsensor_pb.d.ts +6 -6
- package/dist/main.d.ts +2 -2
- package/dist/main.es.js +499 -496
- package/dist/main.umd.js +7 -7
- package/dist/services/motion/Client.d.ts +2 -2
- package/dist/services/motion/Motion.d.ts +2 -2
- package/dist/services/motion/types.d.ts +5 -2
- package/dist/services/motion.d.ts +1 -1
- package/dist/types.d.ts +8 -11
- package/dist/utils.d.ts +3 -5
- package/package.json +2 -2
package/dist/main.es.js
CHANGED
|
@@ -12484,8 +12484,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12484
12484
|
y.append(b, f);
|
|
12485
12485
|
}) : typeof d == "string" ? this.appendFromString(d) : typeof d == "object" && Object.getOwnPropertyNames(d).forEach(function(f) {
|
|
12486
12486
|
var b = d[f];
|
|
12487
|
-
Array.isArray(b) ? b.forEach(function(
|
|
12488
|
-
y.append(f,
|
|
12487
|
+
Array.isArray(b) ? b.forEach(function(M) {
|
|
12488
|
+
y.append(f, M);
|
|
12489
12489
|
}) : y.append(f, b);
|
|
12490
12490
|
}));
|
|
12491
12491
|
}
|
|
@@ -12494,8 +12494,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12494
12494
|
`), v = 0; v < m.length; v++) {
|
|
12495
12495
|
var y = m[v], f = y.indexOf(":");
|
|
12496
12496
|
if (f > 0) {
|
|
12497
|
-
var b = y.substring(0, f).trim(),
|
|
12498
|
-
this.append(b,
|
|
12497
|
+
var b = y.substring(0, f).trim(), M = y.substring(f + 1).trim();
|
|
12498
|
+
this.append(b, M);
|
|
12499
12499
|
}
|
|
12500
12500
|
}
|
|
12501
12501
|
}, c.prototype.delete = function(d, m) {
|
|
@@ -12618,24 +12618,24 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12618
12618
|
function d(f) {
|
|
12619
12619
|
return f.getUint32(1, !1);
|
|
12620
12620
|
}
|
|
12621
|
-
function m(f, b,
|
|
12622
|
-
return f.byteLength - b >=
|
|
12621
|
+
function m(f, b, M) {
|
|
12622
|
+
return f.byteLength - b >= M;
|
|
12623
12623
|
}
|
|
12624
|
-
function v(f, b,
|
|
12624
|
+
function v(f, b, M) {
|
|
12625
12625
|
if (f.slice)
|
|
12626
|
-
return f.slice(b,
|
|
12627
|
-
var
|
|
12628
|
-
|
|
12629
|
-
for (var
|
|
12630
|
-
|
|
12631
|
-
return
|
|
12626
|
+
return f.slice(b, M);
|
|
12627
|
+
var h = f.length;
|
|
12628
|
+
M !== void 0 && (h = M);
|
|
12629
|
+
for (var O = new Uint8Array(h - b), w = 0, C = b; C < h; C++)
|
|
12630
|
+
O[w++] = f[C];
|
|
12631
|
+
return O;
|
|
12632
12632
|
}
|
|
12633
12633
|
g.decodeASCII = l, g.encodeASCII = function(f) {
|
|
12634
|
-
for (var b = new Uint8Array(f.length),
|
|
12635
|
-
var
|
|
12636
|
-
if (!i(
|
|
12634
|
+
for (var b = new Uint8Array(f.length), M = 0; M !== f.length; ++M) {
|
|
12635
|
+
var h = f.charCodeAt(M);
|
|
12636
|
+
if (!i(h))
|
|
12637
12637
|
throw new Error("Metadata contains invalid ASCII");
|
|
12638
|
-
b[
|
|
12638
|
+
b[M] = h;
|
|
12639
12639
|
}
|
|
12640
12640
|
return b;
|
|
12641
12641
|
}, function(f) {
|
|
@@ -12645,30 +12645,30 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12645
12645
|
function f() {
|
|
12646
12646
|
this.buffer = null, this.position = 0;
|
|
12647
12647
|
}
|
|
12648
|
-
return f.prototype.parse = function(b,
|
|
12649
|
-
if (b.length === 0 &&
|
|
12648
|
+
return f.prototype.parse = function(b, M) {
|
|
12649
|
+
if (b.length === 0 && M)
|
|
12650
12650
|
return [];
|
|
12651
|
-
var
|
|
12651
|
+
var h, O = [];
|
|
12652
12652
|
if (this.buffer == null)
|
|
12653
12653
|
this.buffer = b, this.position = 0;
|
|
12654
12654
|
else if (this.position === this.buffer.byteLength)
|
|
12655
12655
|
this.buffer = b, this.position = 0;
|
|
12656
12656
|
else {
|
|
12657
|
-
var
|
|
12658
|
-
|
|
12659
|
-
var
|
|
12660
|
-
|
|
12657
|
+
var w = this.buffer.byteLength - this.position, C = new Uint8Array(w + b.byteLength), L = v(this.buffer, this.position);
|
|
12658
|
+
C.set(L, 0);
|
|
12659
|
+
var W = new Uint8Array(b);
|
|
12660
|
+
C.set(W, w), this.buffer = C, this.position = 0;
|
|
12661
12661
|
}
|
|
12662
12662
|
for (; ; ) {
|
|
12663
12663
|
if (!m(this.buffer, this.position, 5))
|
|
12664
|
-
return
|
|
12665
|
-
var
|
|
12666
|
-
if (!m(this.buffer, this.position, 5 +
|
|
12667
|
-
return
|
|
12668
|
-
var
|
|
12669
|
-
if (this.position += 5 +
|
|
12670
|
-
return
|
|
12671
|
-
|
|
12664
|
+
return O;
|
|
12665
|
+
var z = v(this.buffer, this.position, this.position + 5), U = new DataView(z.buffer, z.byteOffset, z.byteLength), I = d(U);
|
|
12666
|
+
if (!m(this.buffer, this.position, 5 + I))
|
|
12667
|
+
return O;
|
|
12668
|
+
var x = v(this.buffer, this.position + 5, this.position + 5 + I);
|
|
12669
|
+
if (this.position += 5 + I, c(U))
|
|
12670
|
+
return O.push({ chunkType: o.TRAILERS, trailers: (h = x, new r.Metadata(l(h))) }), O;
|
|
12671
|
+
O.push({ chunkType: o.MESSAGE, data: x });
|
|
12672
12672
|
}
|
|
12673
12673
|
}, f;
|
|
12674
12674
|
}();
|
|
@@ -12729,14 +12729,14 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12729
12729
|
this.props.debug && l.debug("grpc.onHeaders received after request was closed - ignoring");
|
|
12730
12730
|
else if (b !== 0) {
|
|
12731
12731
|
this.responseHeaders = f, this.props.debug && l.debug("onHeaders.responseHeaders", JSON.stringify(this.responseHeaders, null, 2));
|
|
12732
|
-
var
|
|
12733
|
-
this.props.debug && l.debug("onHeaders.gRPCStatus",
|
|
12734
|
-
var
|
|
12735
|
-
this.props.debug && l.debug("onHeaders.code",
|
|
12736
|
-
var
|
|
12737
|
-
if (this.props.debug && l.debug("onHeaders.gRPCMessage",
|
|
12738
|
-
var
|
|
12739
|
-
this.rawOnError(
|
|
12732
|
+
var M = v(f);
|
|
12733
|
+
this.props.debug && l.debug("onHeaders.gRPCStatus", M);
|
|
12734
|
+
var h = M && M >= 0 ? M : i.httpStatusToCode(b);
|
|
12735
|
+
this.props.debug && l.debug("onHeaders.code", h);
|
|
12736
|
+
var O = f.get("grpc-message") || [];
|
|
12737
|
+
if (this.props.debug && l.debug("onHeaders.gRPCMessage", O), this.rawOnHeaders(f), h !== i.Code.OK) {
|
|
12738
|
+
var w = this.decodeGRPCStatus(O[0]);
|
|
12739
|
+
this.rawOnError(h, w, f);
|
|
12740
12740
|
}
|
|
12741
12741
|
}
|
|
12742
12742
|
}, y.prototype.onTransportChunk = function(f) {
|
|
@@ -12744,18 +12744,18 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12744
12744
|
if (this.closed)
|
|
12745
12745
|
this.props.debug && l.debug("grpc.onChunk received after request was closed - ignoring");
|
|
12746
12746
|
else {
|
|
12747
|
-
var
|
|
12747
|
+
var M = [];
|
|
12748
12748
|
try {
|
|
12749
|
-
|
|
12750
|
-
} catch (
|
|
12751
|
-
return this.props.debug && l.debug("onChunk.parsing error",
|
|
12749
|
+
M = this.parser.parse(f);
|
|
12750
|
+
} catch (h) {
|
|
12751
|
+
return this.props.debug && l.debug("onChunk.parsing error", h, h.message), void this.rawOnError(i.Code.Internal, "parsing error: " + h.message);
|
|
12752
12752
|
}
|
|
12753
|
-
|
|
12754
|
-
if (
|
|
12755
|
-
var
|
|
12756
|
-
b.rawOnMessage(
|
|
12753
|
+
M.forEach(function(h) {
|
|
12754
|
+
if (h.chunkType === r.ChunkType.MESSAGE) {
|
|
12755
|
+
var O = b.methodDefinition.responseType.deserializeBinary(h.data);
|
|
12756
|
+
b.rawOnMessage(O);
|
|
12757
12757
|
} else
|
|
12758
|
-
|
|
12758
|
+
h.chunkType === r.ChunkType.TRAILERS && (b.responseHeaders ? (b.responseTrailers = new o.Metadata(h.trailers), b.props.debug && l.debug("onChunk.trailers", b.responseTrailers)) : (b.responseHeaders = new o.Metadata(h.trailers), b.rawOnHeaders(b.responseHeaders)));
|
|
12759
12759
|
});
|
|
12760
12760
|
}
|
|
12761
12761
|
}, y.prototype.onTransportEnd = function() {
|
|
@@ -12764,18 +12764,18 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12764
12764
|
else if (this.responseTrailers !== void 0) {
|
|
12765
12765
|
var f = v(this.responseTrailers);
|
|
12766
12766
|
if (f !== null) {
|
|
12767
|
-
var b = this.responseTrailers.get("grpc-message"),
|
|
12768
|
-
this.rawOnEnd(f,
|
|
12767
|
+
var b = this.responseTrailers.get("grpc-message"), M = this.decodeGRPCStatus(b[0]);
|
|
12768
|
+
this.rawOnEnd(f, M, this.responseTrailers);
|
|
12769
12769
|
} else
|
|
12770
12770
|
this.rawOnError(i.Code.Internal, "Response closed without grpc-status (Trailers provided)");
|
|
12771
12771
|
} else {
|
|
12772
12772
|
if (this.responseHeaders === void 0)
|
|
12773
12773
|
return void this.rawOnError(i.Code.Unknown, "Response closed without headers");
|
|
12774
|
-
var
|
|
12775
|
-
if (this.props.debug && l.debug("grpc.headers only response ",
|
|
12774
|
+
var h = v(this.responseHeaders), O = this.responseHeaders.get("grpc-message");
|
|
12775
|
+
if (this.props.debug && l.debug("grpc.headers only response ", h, O), h === null)
|
|
12776
12776
|
return void this.rawOnEnd(i.Code.Unknown, "Response closed without grpc-status (Headers only)", this.responseHeaders);
|
|
12777
|
-
var
|
|
12778
|
-
this.rawOnEnd(
|
|
12777
|
+
var w = this.decodeGRPCStatus(O[0]);
|
|
12778
|
+
this.rawOnEnd(h, w, this.responseHeaders);
|
|
12779
12779
|
}
|
|
12780
12780
|
}, y.prototype.decodeGRPCStatus = function(f) {
|
|
12781
12781
|
if (!f)
|
|
@@ -12785,15 +12785,15 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12785
12785
|
} catch {
|
|
12786
12786
|
return f;
|
|
12787
12787
|
}
|
|
12788
|
-
}, y.prototype.rawOnEnd = function(f, b,
|
|
12789
|
-
var
|
|
12790
|
-
this.props.debug && l.debug("rawOnEnd", f, b,
|
|
12791
|
-
if (!
|
|
12788
|
+
}, y.prototype.rawOnEnd = function(f, b, M) {
|
|
12789
|
+
var h = this;
|
|
12790
|
+
this.props.debug && l.debug("rawOnEnd", f, b, M), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(O) {
|
|
12791
|
+
if (!h.closed)
|
|
12792
12792
|
try {
|
|
12793
|
-
|
|
12794
|
-
} catch (
|
|
12793
|
+
O(f, b, M);
|
|
12794
|
+
} catch (w) {
|
|
12795
12795
|
setTimeout(function() {
|
|
12796
|
-
throw
|
|
12796
|
+
throw w;
|
|
12797
12797
|
}, 0);
|
|
12798
12798
|
}
|
|
12799
12799
|
}));
|
|
@@ -12801,33 +12801,33 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12801
12801
|
this.props.debug && l.debug("rawOnHeaders", f), this.completed || this.onHeadersCallbacks.forEach(function(b) {
|
|
12802
12802
|
try {
|
|
12803
12803
|
b(f);
|
|
12804
|
-
} catch (
|
|
12804
|
+
} catch (M) {
|
|
12805
12805
|
setTimeout(function() {
|
|
12806
|
-
throw
|
|
12806
|
+
throw M;
|
|
12807
12807
|
}, 0);
|
|
12808
12808
|
}
|
|
12809
12809
|
});
|
|
12810
|
-
}, y.prototype.rawOnError = function(f, b,
|
|
12811
|
-
var
|
|
12812
|
-
|
|
12813
|
-
if (!
|
|
12810
|
+
}, y.prototype.rawOnError = function(f, b, M) {
|
|
12811
|
+
var h = this;
|
|
12812
|
+
M === void 0 && (M = new o.Metadata()), this.props.debug && l.debug("rawOnError", f, b), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(O) {
|
|
12813
|
+
if (!h.closed)
|
|
12814
12814
|
try {
|
|
12815
|
-
|
|
12816
|
-
} catch (
|
|
12815
|
+
O(f, b, M);
|
|
12816
|
+
} catch (w) {
|
|
12817
12817
|
setTimeout(function() {
|
|
12818
|
-
throw
|
|
12818
|
+
throw w;
|
|
12819
12819
|
}, 0);
|
|
12820
12820
|
}
|
|
12821
12821
|
}));
|
|
12822
12822
|
}, y.prototype.rawOnMessage = function(f) {
|
|
12823
12823
|
var b = this;
|
|
12824
|
-
this.props.debug && l.debug("rawOnMessage", f.toObject()), this.completed || this.closed || this.onMessageCallbacks.forEach(function(
|
|
12824
|
+
this.props.debug && l.debug("rawOnMessage", f.toObject()), this.completed || this.closed || this.onMessageCallbacks.forEach(function(M) {
|
|
12825
12825
|
if (!b.closed)
|
|
12826
12826
|
try {
|
|
12827
|
-
|
|
12828
|
-
} catch (
|
|
12827
|
+
M(f);
|
|
12828
|
+
} catch (h) {
|
|
12829
12829
|
setTimeout(function() {
|
|
12830
|
-
throw
|
|
12830
|
+
throw h;
|
|
12831
12831
|
}, 0);
|
|
12832
12832
|
}
|
|
12833
12833
|
});
|
|
@@ -12891,8 +12891,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12891
12891
|
}, 607: function(u, g, p) {
|
|
12892
12892
|
Object.defineProperty(g, "__esModule", { value: !0 }), g.grpc = void 0;
|
|
12893
12893
|
var o, r = p(418), i = p(57), l = p(229), c = p(540), d = p(210), m = p(859), v = p(8), y = p(938), f = p(35), b = p(934);
|
|
12894
|
-
(o = g.grpc || (g.grpc = {})).setDefaultTransport = i.setDefaultTransportFactory, o.CrossBrowserHttpTransport = m.CrossBrowserHttpTransport, o.FetchReadableStreamTransport = l.FetchReadableStreamTransport, o.XhrTransport = d.XhrTransport, o.WebsocketTransport = c.WebsocketTransport, o.Code = v.Code, o.Metadata = r.BrowserHeaders, o.client = function(
|
|
12895
|
-
return b.client(
|
|
12894
|
+
(o = g.grpc || (g.grpc = {})).setDefaultTransport = i.setDefaultTransportFactory, o.CrossBrowserHttpTransport = m.CrossBrowserHttpTransport, o.FetchReadableStreamTransport = l.FetchReadableStreamTransport, o.XhrTransport = d.XhrTransport, o.WebsocketTransport = c.WebsocketTransport, o.Code = v.Code, o.Metadata = r.BrowserHeaders, o.client = function(M, h) {
|
|
12895
|
+
return b.client(M, h);
|
|
12896
12896
|
}, o.invoke = y.invoke, o.unary = f.unary;
|
|
12897
12897
|
}, 938: function(u, g, p) {
|
|
12898
12898
|
Object.defineProperty(g, "__esModule", { value: !0 }), g.invoke = void 0;
|
|
@@ -12992,17 +12992,17 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
12992
12992
|
};
|
|
12993
12993
|
}, 210: function(u, g, p) {
|
|
12994
12994
|
var o, r = this && this.__extends || (o = function(f, b) {
|
|
12995
|
-
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
12996
|
-
|
|
12997
|
-
} || function(
|
|
12998
|
-
for (var
|
|
12999
|
-
Object.prototype.hasOwnProperty.call(
|
|
12995
|
+
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(M, h) {
|
|
12996
|
+
M.__proto__ = h;
|
|
12997
|
+
} || function(M, h) {
|
|
12998
|
+
for (var O in h)
|
|
12999
|
+
Object.prototype.hasOwnProperty.call(h, O) && (M[O] = h[O]);
|
|
13000
13000
|
})(f, b);
|
|
13001
13001
|
}, function(f, b) {
|
|
13002
|
-
function
|
|
13002
|
+
function M() {
|
|
13003
13003
|
this.constructor = f;
|
|
13004
13004
|
}
|
|
13005
|
-
o(f, b), f.prototype = b === null ? Object.create(b) : (
|
|
13005
|
+
o(f, b), f.prototype = b === null ? Object.create(b) : (M.prototype = b.prototype, new M());
|
|
13006
13006
|
});
|
|
13007
13007
|
Object.defineProperty(g, "__esModule", { value: !0 }), g.stringToArrayBuffer = g.MozChunkedArrayBufferXHR = g.XHR = g.XhrTransport = void 0;
|
|
13008
13008
|
var i = p(65), l = p(346), c = p(849);
|
|
@@ -13016,15 +13016,15 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13016
13016
|
};
|
|
13017
13017
|
};
|
|
13018
13018
|
var d = function() {
|
|
13019
|
-
function f(b,
|
|
13020
|
-
this.options = b, this.init =
|
|
13019
|
+
function f(b, M) {
|
|
13020
|
+
this.options = b, this.init = M;
|
|
13021
13021
|
}
|
|
13022
13022
|
return f.prototype.onProgressEvent = function() {
|
|
13023
13023
|
this.options.debug && l.debug("XHR.onProgressEvent.length: ", this.xhr.response.length);
|
|
13024
13024
|
var b = this.xhr.response.substr(this.index);
|
|
13025
13025
|
this.index = this.xhr.response.length;
|
|
13026
|
-
var
|
|
13027
|
-
this.options.onChunk(
|
|
13026
|
+
var M = y(b);
|
|
13027
|
+
this.options.onChunk(M);
|
|
13028
13028
|
}, f.prototype.onLoadEvent = function() {
|
|
13029
13029
|
this.options.debug && l.debug("XHR.onLoadEvent"), this.options.onEnd();
|
|
13030
13030
|
}, f.prototype.onStateChange = function() {
|
|
@@ -13033,13 +13033,13 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13033
13033
|
this.xhr.send(b);
|
|
13034
13034
|
}, f.prototype.finishSend = function() {
|
|
13035
13035
|
}, f.prototype.start = function(b) {
|
|
13036
|
-
var
|
|
13036
|
+
var M = this;
|
|
13037
13037
|
this.metadata = b;
|
|
13038
|
-
var
|
|
13039
|
-
this.xhr =
|
|
13040
|
-
|
|
13041
|
-
}),
|
|
13042
|
-
|
|
13038
|
+
var h = new XMLHttpRequest();
|
|
13039
|
+
this.xhr = h, h.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(O, w) {
|
|
13040
|
+
h.setRequestHeader(O, w.join(", "));
|
|
13041
|
+
}), h.withCredentials = !!this.init.withCredentials, h.addEventListener("readystatechange", this.onStateChange.bind(this)), h.addEventListener("progress", this.onProgressEvent.bind(this)), h.addEventListener("loadend", this.onLoadEvent.bind(this)), h.addEventListener("error", function(O) {
|
|
13042
|
+
M.options.debug && l.debug("XHR.error", O), M.options.onEnd(O.error);
|
|
13043
13043
|
});
|
|
13044
13044
|
}, f.prototype.configureXhr = function() {
|
|
13045
13045
|
this.xhr.responseType = "text", this.xhr.overrideMimeType("text/plain; charset=x-user-defined");
|
|
@@ -13055,22 +13055,22 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13055
13055
|
return r(b, f), b.prototype.configureXhr = function() {
|
|
13056
13056
|
this.options.debug && l.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"), this.xhr.responseType = "moz-chunked-arraybuffer";
|
|
13057
13057
|
}, b.prototype.onProgressEvent = function() {
|
|
13058
|
-
var
|
|
13059
|
-
this.options.debug && l.debug("MozXHR.onProgressEvent: ", new Uint8Array(
|
|
13058
|
+
var M = this.xhr.response;
|
|
13059
|
+
this.options.debug && l.debug("MozXHR.onProgressEvent: ", new Uint8Array(M)), this.options.onChunk(new Uint8Array(M));
|
|
13060
13060
|
}, b;
|
|
13061
13061
|
}(d);
|
|
13062
13062
|
function v(f, b) {
|
|
13063
|
-
var
|
|
13064
|
-
if (
|
|
13065
|
-
var
|
|
13066
|
-
|
|
13063
|
+
var M = f.charCodeAt(b);
|
|
13064
|
+
if (M >= 55296 && M <= 56319) {
|
|
13065
|
+
var h = f.charCodeAt(b + 1);
|
|
13066
|
+
h >= 56320 && h <= 57343 && (M = 65536 + (M - 55296 << 10) + (h - 56320));
|
|
13067
13067
|
}
|
|
13068
|
-
return
|
|
13068
|
+
return M;
|
|
13069
13069
|
}
|
|
13070
13070
|
function y(f) {
|
|
13071
|
-
for (var b = new Uint8Array(f.length),
|
|
13072
|
-
var
|
|
13073
|
-
b[
|
|
13071
|
+
for (var b = new Uint8Array(f.length), M = 0, h = 0; h < f.length; h++) {
|
|
13072
|
+
var O = String.prototype.codePointAt ? f.codePointAt(h) : v(f, h);
|
|
13073
|
+
b[M++] = 255 & O;
|
|
13074
13074
|
}
|
|
13075
13075
|
return b;
|
|
13076
13076
|
}
|
|
@@ -13126,8 +13126,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13126
13126
|
if (b === o.FINISH_SEND)
|
|
13127
13127
|
m.send(l);
|
|
13128
13128
|
else {
|
|
13129
|
-
var
|
|
13130
|
-
|
|
13129
|
+
var M = b, h = new Int8Array(M.byteLength + 1);
|
|
13130
|
+
h.set(new Uint8Array([0])), h.set(M, 1), m.send(h);
|
|
13131
13131
|
}
|
|
13132
13132
|
}
|
|
13133
13133
|
return { sendMessage: function(b) {
|
|
@@ -13136,19 +13136,19 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
13136
13136
|
m && m.readyState !== m.CONNECTING ? f(o.FINISH_SEND) : y.push(o.FINISH_SEND);
|
|
13137
13137
|
}, start: function(b) {
|
|
13138
13138
|
(m = new WebSocket(v, ["grpc-websockets"])).binaryType = "arraybuffer", m.onopen = function() {
|
|
13139
|
-
var
|
|
13140
|
-
d.debug && r.debug("websocketRequest.onopen"), m.send((
|
|
13141
|
-
|
|
13139
|
+
var M;
|
|
13140
|
+
d.debug && r.debug("websocketRequest.onopen"), m.send((M = "", b.forEach(function(h, O) {
|
|
13141
|
+
M += h + ": " + O.join(", ") + `\r
|
|
13142
13142
|
`;
|
|
13143
|
-
}), i.encodeASCII(
|
|
13144
|
-
f(
|
|
13143
|
+
}), i.encodeASCII(M))), y.forEach(function(h) {
|
|
13144
|
+
f(h);
|
|
13145
13145
|
});
|
|
13146
|
-
}, m.onclose = function(
|
|
13147
|
-
d.debug && r.debug("websocketRequest.onclose",
|
|
13148
|
-
}, m.onerror = function(
|
|
13149
|
-
d.debug && r.debug("websocketRequest.onerror",
|
|
13150
|
-
}, m.onmessage = function(
|
|
13151
|
-
d.onChunk(new Uint8Array(
|
|
13146
|
+
}, m.onclose = function(M) {
|
|
13147
|
+
d.debug && r.debug("websocketRequest.onclose", M), d.onEnd();
|
|
13148
|
+
}, m.onerror = function(M) {
|
|
13149
|
+
d.debug && r.debug("websocketRequest.onerror", M);
|
|
13150
|
+
}, m.onmessage = function(M) {
|
|
13151
|
+
d.onChunk(new Uint8Array(M.data));
|
|
13152
13152
|
};
|
|
13153
13153
|
}, cancel: function() {
|
|
13154
13154
|
d.debug && r.debug("websocket.abort"), m.close();
|
|
@@ -13193,15 +13193,9 @@ const promisify = function(t, e) {
|
|
|
13193
13193
|
return new Promise((s, n) => {
|
|
13194
13194
|
t(e, new grpcWebClient_umdExports.grpc.Metadata(), (u, g) => u ? n(u) : g ? s(g) : n(new Error("no response")));
|
|
13195
13195
|
});
|
|
13196
|
-
},
|
|
13196
|
+
}, encodeVector3 = function(t) {
|
|
13197
13197
|
const e = new common_pb.Vector3();
|
|
13198
13198
|
return e.setX(t.x), e.setY(t.y), e.setZ(t.z), e;
|
|
13199
|
-
}, decodeVector3D = function(t) {
|
|
13200
|
-
return {
|
|
13201
|
-
x: t.getX(),
|
|
13202
|
-
y: t.getY(),
|
|
13203
|
-
z: t.getZ()
|
|
13204
|
-
};
|
|
13205
13199
|
}, encodePose = (t) => {
|
|
13206
13200
|
const e = new common_pb.Pose();
|
|
13207
13201
|
return e.setX(t.x), e.setY(t.y), e.setZ(t.z), e.setOX(t.oX), e.setOY(t.oY), e.setOZ(t.oZ), e.setTheta(t.theta), e;
|
|
@@ -13221,7 +13215,7 @@ const promisify = function(t, e) {
|
|
|
13221
13215
|
}
|
|
13222
13216
|
if (t.box !== void 0) {
|
|
13223
13217
|
const s = new common_pb.RectangularPrism();
|
|
13224
|
-
t.box.dimsMm !== void 0 && s.setDimsMm(
|
|
13218
|
+
t.box.dimsMm !== void 0 && s.setDimsMm(encodeVector3(t.box.dimsMm)), e.setBox(s);
|
|
13225
13219
|
}
|
|
13226
13220
|
if (t.capsule !== void 0) {
|
|
13227
13221
|
const s = new common_pb.Capsule();
|
|
@@ -13307,8 +13301,8 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13307
13301
|
this.props.debug && o.debug("onHeaders.code", f);
|
|
13308
13302
|
var b = m.get("grpc-message") || [];
|
|
13309
13303
|
if (this.props.debug && o.debug("onHeaders.gRPCMessage", b), this.rawOnHeaders(m), f !== p.Code.OK) {
|
|
13310
|
-
var
|
|
13311
|
-
this.rawOnError(f,
|
|
13304
|
+
var M = this.decodeGRPCStatus(b[0]);
|
|
13305
|
+
this.rawOnError(f, M, m);
|
|
13312
13306
|
}
|
|
13313
13307
|
}
|
|
13314
13308
|
}, d.prototype.onTransportChunk = function(m) {
|
|
@@ -13346,8 +13340,8 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13346
13340
|
var f = c(this.responseHeaders), b = this.responseHeaders.get("grpc-message");
|
|
13347
13341
|
if (this.props.debug && o.debug("grpc.headers only response ", f, b), f === null)
|
|
13348
13342
|
return void this.rawOnEnd(p.Code.Unknown, "Response closed without grpc-status (Headers only)", this.responseHeaders);
|
|
13349
|
-
var
|
|
13350
|
-
this.rawOnEnd(f,
|
|
13343
|
+
var M = this.decodeGRPCStatus(b[0]);
|
|
13344
|
+
this.rawOnEnd(f, M, this.responseHeaders);
|
|
13351
13345
|
}
|
|
13352
13346
|
}, d.prototype.decodeGRPCStatus = function(m) {
|
|
13353
13347
|
if (!m)
|
|
@@ -13363,9 +13357,9 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13363
13357
|
if (!f.closed)
|
|
13364
13358
|
try {
|
|
13365
13359
|
b(m, v, y);
|
|
13366
|
-
} catch (
|
|
13360
|
+
} catch (M) {
|
|
13367
13361
|
setTimeout(function() {
|
|
13368
|
-
throw
|
|
13362
|
+
throw M;
|
|
13369
13363
|
});
|
|
13370
13364
|
}
|
|
13371
13365
|
}));
|
|
@@ -13385,9 +13379,9 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13385
13379
|
if (!f.closed)
|
|
13386
13380
|
try {
|
|
13387
13381
|
b(m, v, y);
|
|
13388
|
-
} catch (
|
|
13382
|
+
} catch (M) {
|
|
13389
13383
|
setTimeout(function() {
|
|
13390
|
-
throw
|
|
13384
|
+
throw M;
|
|
13391
13385
|
});
|
|
13392
13386
|
}
|
|
13393
13387
|
}));
|
|
@@ -13731,8 +13725,8 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13731
13725
|
var y = this;
|
|
13732
13726
|
this.metadata = v;
|
|
13733
13727
|
var f = new XMLHttpRequest();
|
|
13734
|
-
this.xhr = f, f.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(b,
|
|
13735
|
-
f.setRequestHeader(b,
|
|
13728
|
+
this.xhr = f, f.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(b, M) {
|
|
13729
|
+
f.setRequestHeader(b, M.join(", "));
|
|
13736
13730
|
}), f.withCredentials = !!this.init.withCredentials, f.addEventListener("readystatechange", this.onStateChange.bind(this)), f.addEventListener("progress", this.onProgressEvent.bind(this)), f.addEventListener("loadend", this.onLoadEvent.bind(this)), f.addEventListener("error", function(b) {
|
|
13737
13731
|
y.options.debug && o.debug("XHR.error", b), y.options.onEnd(b.error);
|
|
13738
13732
|
});
|
|
@@ -13798,8 +13792,8 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13798
13792
|
return m.slice(v, y);
|
|
13799
13793
|
var f = m.length;
|
|
13800
13794
|
y !== void 0 && (f = y);
|
|
13801
|
-
for (var b = new Uint8Array(f - v),
|
|
13802
|
-
b[
|
|
13795
|
+
for (var b = new Uint8Array(f - v), M = 0, h = v; h < f; h++)
|
|
13796
|
+
b[M++] = m[h];
|
|
13803
13797
|
return b;
|
|
13804
13798
|
}
|
|
13805
13799
|
s.decodeASCII = o, s.encodeASCII = function(m) {
|
|
@@ -13826,21 +13820,21 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
13826
13820
|
else if (this.position === this.buffer.byteLength)
|
|
13827
13821
|
this.buffer = v, this.position = 0;
|
|
13828
13822
|
else {
|
|
13829
|
-
var
|
|
13830
|
-
|
|
13831
|
-
var
|
|
13832
|
-
|
|
13823
|
+
var M = this.buffer.byteLength - this.position, h = new Uint8Array(M + v.byteLength), O = c(this.buffer, this.position);
|
|
13824
|
+
h.set(O, 0);
|
|
13825
|
+
var w = new Uint8Array(v);
|
|
13826
|
+
h.set(w, M), this.buffer = h, this.position = 0;
|
|
13833
13827
|
}
|
|
13834
13828
|
for (; ; ) {
|
|
13835
13829
|
if (!l(this.buffer, this.position, 5))
|
|
13836
13830
|
return b;
|
|
13837
|
-
var
|
|
13838
|
-
if (!l(this.buffer, this.position, 5 +
|
|
13831
|
+
var C = c(this.buffer, this.position, this.position + 5), L = new DataView(C.buffer, C.byteOffset, C.byteLength), W = i(L);
|
|
13832
|
+
if (!l(this.buffer, this.position, 5 + W))
|
|
13839
13833
|
return b;
|
|
13840
|
-
var
|
|
13841
|
-
if (this.position += 5 +
|
|
13842
|
-
return b.push({ chunkType: u.TRAILERS, trailers: (f =
|
|
13843
|
-
b.push({ chunkType: u.MESSAGE, data:
|
|
13834
|
+
var z = c(this.buffer, this.position + 5, this.position + 5 + W);
|
|
13835
|
+
if (this.position += 5 + W, r(L))
|
|
13836
|
+
return b.push({ chunkType: u.TRAILERS, trailers: (f = z, new g.Metadata(o(f))) }), b;
|
|
13837
|
+
b.push({ chunkType: u.MESSAGE, data: z });
|
|
13844
13838
|
}
|
|
13845
13839
|
}, m;
|
|
13846
13840
|
}();
|
|
@@ -20157,7 +20151,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20157
20151
|
var n = s(758), u = function() {
|
|
20158
20152
|
function g(p, o) {
|
|
20159
20153
|
var r = this;
|
|
20160
|
-
Object.defineProperty(this, "ready", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "peerConn", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "dataChannel", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "pResolve", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "pReject", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "closed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "closedReason", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "maxDataChannelSize", { enumerable: !0, configurable: !0, writable: !0, value:
|
|
20154
|
+
Object.defineProperty(this, "ready", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "peerConn", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "dataChannel", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "pResolve", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "pReject", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "closed", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(this, "closedReason", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "maxDataChannelSize", { enumerable: !0, configurable: !0, writable: !0, value: 65535 }), this.peerConn = p, this.dataChannel = o, this.ready = new Promise(function(i, l) {
|
|
20161
20155
|
r.pResolve = i, r.pReject = l;
|
|
20162
20156
|
}), o.onopen = function() {
|
|
20163
20157
|
return r.onChannelOpen();
|
|
@@ -20297,8 +20291,8 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20297
20291
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.encodeASCII = e.ClientStream = void 0;
|
|
20298
20292
|
var n = s(655), u = s(37), g = s(370), p = s(758), o = s(210), r = function(d) {
|
|
20299
20293
|
function m(v, y, f, b) {
|
|
20300
|
-
var
|
|
20301
|
-
return Object.defineProperty(
|
|
20294
|
+
var M = d.call(this, y, f, b) || this;
|
|
20295
|
+
return Object.defineProperty(M, "channel", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(M, "headersReceived", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(M, "trailersReceived", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), M.channel = v, M;
|
|
20302
20296
|
}
|
|
20303
20297
|
return n.__extends(m, d), Object.defineProperty(m.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
|
|
20304
20298
|
var y = "/".concat(this.opts.methodDefinition.service.serviceName, "/").concat(this.opts.methodDefinition.methodName), f = new o.RequestHeaders();
|
|
@@ -20325,11 +20319,11 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20325
20319
|
if (!y || y.length == 0)
|
|
20326
20320
|
return (f = new o.PacketMessage()).setEom(!0), (b = new o.RequestMessage()).setHasMessage(!!y), b.setPacketMessage(f), b.setEos(v), void this.channel.writeMessage(this.stream, b);
|
|
20327
20321
|
for (; y.length !== 0; ) {
|
|
20328
|
-
var f, b,
|
|
20329
|
-
(f = new o.PacketMessage()).setData(y.slice(0,
|
|
20322
|
+
var f, b, M = Math.min(y.length, 16373);
|
|
20323
|
+
(f = new o.PacketMessage()).setData(y.slice(0, M)), (y = y.slice(M)).length === 0 && f.setEom(!0), (b = new o.RequestMessage()).setHasMessage(!!y), b.setPacketMessage(f), b.setEos(v), this.channel.writeMessage(this.stream, b);
|
|
20330
20324
|
}
|
|
20331
|
-
} catch (
|
|
20332
|
-
console.error("error writing message",
|
|
20325
|
+
} catch (h) {
|
|
20326
|
+
console.error("error writing message", h), this.closeWithRecvError(h);
|
|
20333
20327
|
}
|
|
20334
20328
|
} }), Object.defineProperty(m.prototype, "onResponse", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
|
|
20335
20329
|
switch (v.getTypeCase()) {
|
|
@@ -20363,16 +20357,16 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20363
20357
|
}
|
|
20364
20358
|
} }), Object.defineProperty(m.prototype, "processTrailers", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
|
|
20365
20359
|
this.trailersReceived = !0;
|
|
20366
|
-
var y, f, b = c(v.getMetadata()),
|
|
20367
|
-
|
|
20368
|
-
var
|
|
20369
|
-
var
|
|
20370
|
-
return
|
|
20371
|
-
|
|
20360
|
+
var y, f, b = c(v.getMetadata()), M = v.getStatus();
|
|
20361
|
+
M ? (y = M.getCode(), f = M.getMessage(), b.set("grpc-status", "".concat(M.getCode())), f !== void 0 && b.set("grpc-message", M.getMessage())) : (y = 0, b.set("grpc-status", "0"), f = "");
|
|
20362
|
+
var h = function(w) {
|
|
20363
|
+
var C = "";
|
|
20364
|
+
return w.forEach(function(L, W) {
|
|
20365
|
+
C += "".concat(L, ": ").concat(W.join(", "), `\r
|
|
20372
20366
|
`);
|
|
20373
|
-
}), i(
|
|
20374
|
-
}(b),
|
|
20375
|
-
new DataView(
|
|
20367
|
+
}), i(C);
|
|
20368
|
+
}(b), O = new ArrayBuffer(h.length + 5);
|
|
20369
|
+
new DataView(O, 0, 1).setUint8(0, 128), new DataView(O, 1, 4).setUint32(0, h.length, !1), new Uint8Array(O, 5).set(h), this.opts.onChunk(new Uint8Array(O)), y !== 0 ? this.closeWithRecvError(new p.GRPCError(y, f)) : this.closeWithRecvError();
|
|
20376
20370
|
} }), m;
|
|
20377
20371
|
}(g.BaseStream);
|
|
20378
20372
|
function i(d) {
|
|
@@ -20403,60 +20397,60 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20403
20397
|
}, 512: (t, e, s) => {
|
|
20404
20398
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.dialWebRTC = e.dialDirect = void 0;
|
|
20405
20399
|
var n = s(655), u = s(37), g = s(138), p = s(758), o = s(743), r = s(34), i = s(165), l = s(400), c = s(982), d = s(958), m = s(93);
|
|
20406
|
-
function v(h,
|
|
20400
|
+
function v(h, O) {
|
|
20407
20401
|
return n.__awaiter(this, void 0, void 0, function() {
|
|
20408
|
-
var
|
|
20409
|
-
return n.__generator(this, function(
|
|
20410
|
-
return
|
|
20411
|
-
return u.grpc.CrossBrowserHttpTransport({ withCredentials: !1 })(
|
|
20412
|
-
}, !
|
|
20413
|
-
return new f(
|
|
20402
|
+
var w, C;
|
|
20403
|
+
return n.__generator(this, function(L) {
|
|
20404
|
+
return M(O), w = function(W) {
|
|
20405
|
+
return u.grpc.CrossBrowserHttpTransport({ withCredentials: !1 })(W);
|
|
20406
|
+
}, !O?.accessToken || O?.externalAuthAddress && O?.externalAuthToEntity ? O && (O?.credentials || O?.accessToken) ? [2, y(h, w, O)] : [2, w] : ((C = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(O.accessToken)), [2, function(W) {
|
|
20407
|
+
return new f(W, w, C);
|
|
20414
20408
|
}]);
|
|
20415
20409
|
});
|
|
20416
20410
|
});
|
|
20417
20411
|
}
|
|
20418
|
-
function y(h,
|
|
20412
|
+
function y(h, O, w) {
|
|
20419
20413
|
return n.__awaiter(this, void 0, void 0, function() {
|
|
20420
|
-
var
|
|
20421
|
-
return n.__generator(this, function(
|
|
20422
|
-
switch (
|
|
20414
|
+
var C, L, W, z = this;
|
|
20415
|
+
return n.__generator(this, function(U) {
|
|
20416
|
+
switch (U.label) {
|
|
20423
20417
|
case 0:
|
|
20424
|
-
return
|
|
20418
|
+
return C = "", L = function() {
|
|
20425
20419
|
return n.__awaiter(z, void 0, void 0, function() {
|
|
20426
|
-
var
|
|
20427
|
-
return n.__generator(this, function(
|
|
20428
|
-
switch (
|
|
20420
|
+
var I, x, k, S, R, _, E, F, P, T;
|
|
20421
|
+
return n.__generator(this, function(D) {
|
|
20422
|
+
switch (D.label) {
|
|
20429
20423
|
case 0:
|
|
20430
|
-
return
|
|
20431
|
-
|
|
20432
|
-
}), u.grpc.invoke(l.AuthService.Authenticate, { request:
|
|
20433
|
-
|
|
20434
|
-
}, onEnd: function(
|
|
20435
|
-
|
|
20436
|
-
} }), [4,
|
|
20424
|
+
return C != "" ? [3, 5] : (I = "", w.accessToken && w.accessToken !== "" ? [3, 2] : ((E = new i.AuthenticateRequest()).setEntity(w.authEntity ? w.authEntity : h.replace(/^(.*:\/\/)/, "")), (S = new i.Credentials()).setType((P = w.credentials) === null || P === void 0 ? void 0 : P.type), S.setPayload((T = w.credentials) === null || T === void 0 ? void 0 : T.payload), E.setCredentials(S), _ = new Promise(function(A, j) {
|
|
20425
|
+
x = A, k = j;
|
|
20426
|
+
}), u.grpc.invoke(l.AuthService.Authenticate, { request: E, host: w.externalAuthAddress ? w.externalAuthAddress : h, transport: O, onMessage: function(A) {
|
|
20427
|
+
I = A.getAccessToken();
|
|
20428
|
+
}, onEnd: function(A, j, B) {
|
|
20429
|
+
A == u.grpc.Code.OK ? x(F) : k(j);
|
|
20430
|
+
} }), [4, _]));
|
|
20437
20431
|
case 1:
|
|
20438
|
-
return
|
|
20432
|
+
return D.sent(), [3, 3];
|
|
20439
20433
|
case 2:
|
|
20440
|
-
|
|
20434
|
+
I = w.accessToken, D.label = 3;
|
|
20441
20435
|
case 3:
|
|
20442
|
-
return
|
|
20443
|
-
|
|
20444
|
-
}),
|
|
20445
|
-
|
|
20446
|
-
}, onEnd: function(
|
|
20447
|
-
|
|
20448
|
-
} }), [4,
|
|
20436
|
+
return C = I, w.externalAuthAddress && w.externalAuthToEntity ? ((R = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(C)), _ = new Promise(function(A, j) {
|
|
20437
|
+
x = A, k = j;
|
|
20438
|
+
}), I = "", (E = new i.AuthenticateToRequest()).setEntity(w.externalAuthToEntity), u.grpc.invoke(l.ExternalAuthService.AuthenticateTo, { request: E, host: w.externalAuthAddress, transport: O, metadata: R, onMessage: function(A) {
|
|
20439
|
+
I = A.getAccessToken();
|
|
20440
|
+
}, onEnd: function(A, j, B) {
|
|
20441
|
+
A == u.grpc.Code.OK ? x(R) : k(j);
|
|
20442
|
+
} }), [4, _]) : [3, 5];
|
|
20449
20443
|
case 4:
|
|
20450
|
-
|
|
20444
|
+
D.sent(), C = I, D.label = 5;
|
|
20451
20445
|
case 5:
|
|
20452
|
-
return (
|
|
20446
|
+
return (F = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(C)), [2, F];
|
|
20453
20447
|
}
|
|
20454
20448
|
});
|
|
20455
20449
|
});
|
|
20456
|
-
}, [4,
|
|
20450
|
+
}, [4, L()];
|
|
20457
20451
|
case 1:
|
|
20458
|
-
return
|
|
20459
|
-
return new f(
|
|
20452
|
+
return W = U.sent(), [2, function(I) {
|
|
20453
|
+
return new f(I, O, W);
|
|
20460
20454
|
}];
|
|
20461
20455
|
}
|
|
20462
20456
|
});
|
|
@@ -20464,23 +20458,50 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20464
20458
|
}
|
|
20465
20459
|
e.dialDirect = v;
|
|
20466
20460
|
var f = function() {
|
|
20467
|
-
function h(
|
|
20468
|
-
Object.defineProperty(this, "opts", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "transport", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "extraMetadata", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.opts =
|
|
20469
|
-
}
|
|
20470
|
-
return Object.defineProperty(h.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(
|
|
20471
|
-
this.extraMetadata.forEach(function(
|
|
20472
|
-
|
|
20473
|
-
}), this.transport.start(
|
|
20474
|
-
} }), Object.defineProperty(h.prototype, "sendMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(
|
|
20475
|
-
this.transport.sendMessage(
|
|
20461
|
+
function h(O, w, C) {
|
|
20462
|
+
Object.defineProperty(this, "opts", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "transport", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "extraMetadata", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.opts = O, this.extraMetadata = C, this.transport = w(O);
|
|
20463
|
+
}
|
|
20464
|
+
return Object.defineProperty(h.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(O) {
|
|
20465
|
+
this.extraMetadata.forEach(function(w, C) {
|
|
20466
|
+
O.set(w, C);
|
|
20467
|
+
}), this.transport.start(O);
|
|
20468
|
+
} }), Object.defineProperty(h.prototype, "sendMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(O) {
|
|
20469
|
+
this.transport.sendMessage(O);
|
|
20476
20470
|
} }), Object.defineProperty(h.prototype, "finishSend", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20477
20471
|
this.transport.finishSend();
|
|
20478
20472
|
} }), Object.defineProperty(h.prototype, "cancel", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20479
20473
|
this.transport.cancel();
|
|
20480
20474
|
} }), h;
|
|
20481
20475
|
}();
|
|
20482
|
-
function b(h) {
|
|
20483
|
-
|
|
20476
|
+
function b(h, O, w) {
|
|
20477
|
+
return n.__awaiter(this, void 0, void 0, function() {
|
|
20478
|
+
var C, L, W, z, U, I;
|
|
20479
|
+
return n.__generator(this, function(x) {
|
|
20480
|
+
switch (x.label) {
|
|
20481
|
+
case 0:
|
|
20482
|
+
return C = n.__assign({}, w), [4, v(h, C)];
|
|
20483
|
+
case 1:
|
|
20484
|
+
return L = x.sent(), I = new Promise(function(k, S) {
|
|
20485
|
+
W = k, z = S;
|
|
20486
|
+
}), u.grpc.unary(d.SignalingService.OptionalWebRTCConfig, { request: new c.OptionalWebRTCConfigRequest(), metadata: { "rpc-host": O }, host: h, transport: L, onEnd: function(k) {
|
|
20487
|
+
var S = k.status, R = k.statusMessage, _ = k.message;
|
|
20488
|
+
if (S === u.grpc.Code.OK && _) {
|
|
20489
|
+
if (!(U = _.getConfig()))
|
|
20490
|
+
return void W(new c.WebRTCConfig());
|
|
20491
|
+
W(U);
|
|
20492
|
+
} else
|
|
20493
|
+
z(R);
|
|
20494
|
+
} }), [4, I];
|
|
20495
|
+
case 2:
|
|
20496
|
+
if (x.sent(), !U)
|
|
20497
|
+
throw new Error("no config");
|
|
20498
|
+
return [2, U];
|
|
20499
|
+
}
|
|
20500
|
+
});
|
|
20501
|
+
});
|
|
20502
|
+
}
|
|
20503
|
+
function M(h) {
|
|
20504
|
+
var O;
|
|
20484
20505
|
if (h) {
|
|
20485
20506
|
if (h.accessToken && h.accessToken.length > 0) {
|
|
20486
20507
|
if (h.authEntity)
|
|
@@ -20496,7 +20517,7 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20496
20517
|
throw new Error("cannot set webrtcOptions.signalingCredentials with accessToken");
|
|
20497
20518
|
}
|
|
20498
20519
|
}
|
|
20499
|
-
if (!((
|
|
20520
|
+
if (!((O = h?.webrtcOptions) === null || O === void 0) && O.signalingAccessToken && h.webrtcOptions.signalingAccessToken.length > 0) {
|
|
20500
20521
|
if (h.webrtcOptions.signalingAuthEntity)
|
|
20501
20522
|
throw new Error("cannot set webrtcOptions.signalingAuthEntity with webrtcOptions.signalingAccessToken");
|
|
20502
20523
|
if (h.webrtcOptions.signalingCredentials)
|
|
@@ -20504,110 +20525,114 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20504
20525
|
}
|
|
20505
20526
|
}
|
|
20506
20527
|
}
|
|
20507
|
-
e.dialWebRTC = function(h,
|
|
20508
|
-
var
|
|
20528
|
+
e.dialWebRTC = function(h, O, w) {
|
|
20529
|
+
var C, L, W, z, U, I, x;
|
|
20509
20530
|
return n.__awaiter(this, void 0, void 0, function() {
|
|
20510
|
-
var
|
|
20531
|
+
var k, S, R, _, E, F, P, T, D, A, j, B, N, V, Z, oe, re, ge, ae, ie, pe, ne, le, se, ce, ue, de = this;
|
|
20511
20532
|
return n.__generator(this, function(J) {
|
|
20512
20533
|
switch (J.label) {
|
|
20513
20534
|
case 0:
|
|
20514
|
-
return
|
|
20535
|
+
return M(w), [4, b(h, O, w)];
|
|
20515
20536
|
case 1:
|
|
20516
|
-
|
|
20537
|
+
return k = J.sent(), S = k.toObject().additionalIceServersList.map(function(q) {
|
|
20538
|
+
return { urls: q.urlsList, credential: q.credential, username: q.username };
|
|
20539
|
+
}), w || (w = {}), w.webrtcOptions ? (R = w.webrtcOptions).rtcConfig ? R.rtcConfig.iceServers = n.__spreadArray(n.__spreadArray([], R.rtcConfig.iceServers || [], !0), S, !0) : R.rtcConfig = { iceServers: S } : R = { disableTrickleICE: k.getDisableTrickle(), rtcConfig: { iceServers: S } }, [4, (0, m.newPeerConnectionForClient)(R !== void 0 && R.disableTrickleICE, R?.rtcConfig)];
|
|
20517
20540
|
case 2:
|
|
20518
|
-
|
|
20541
|
+
_ = J.sent(), E = _.pc, F = _.dc, P = !1, J.label = 3;
|
|
20519
20542
|
case 3:
|
|
20520
|
-
return
|
|
20521
|
-
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
var
|
|
20526
|
-
|
|
20527
|
-
|
|
20528
|
-
|
|
20543
|
+
return J.trys.push([3, , 10, 11]), T = w, w && (T = n.__assign({}, w), w.accessToken || (T.authEntity = (C = w?.webrtcOptions) === null || C === void 0 ? void 0 : C.signalingAuthEntity, T.authEntity || (T.externalAuthAddress ? T.authEntity = (L = w.externalAuthAddress) === null || L === void 0 ? void 0 : L.replace(/^(.*:\/\/)/, "") : T.authEntity = h.replace(/^(.*:\/\/)/, "")), T.credentials = (W = w?.webrtcOptions) === null || W === void 0 ? void 0 : W.signalingCredentials, T.accessToken = (z = w?.webrtcOptions) === null || z === void 0 ? void 0 : z.signalingAccessToken), T.externalAuthAddress = (U = w?.webrtcOptions) === null || U === void 0 ? void 0 : U.signalingExternalAuthAddress, T.externalAuthToEntity = (I = w?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingExternalAuthToEntity), [4, v(h, T)];
|
|
20544
|
+
case 4:
|
|
20545
|
+
return D = J.sent(), A = u.grpc.client(d.SignalingService.Call, { host: h, transport: D }), j = "", B = !1, N = function(q) {
|
|
20546
|
+
if (!B) {
|
|
20547
|
+
B = !0;
|
|
20548
|
+
var G = new c.CallUpdateRequest();
|
|
20549
|
+
G.setUuid(j);
|
|
20550
|
+
var $ = new r.Status();
|
|
20551
|
+
$.setCode(o.Code.UNKNOWN), $.setMessage(q), G.setError($), u.grpc.unary(d.SignalingService.CallUpdate, { request: G, metadata: { "rpc-host": O }, host: h, transport: D, onEnd: function(Y) {
|
|
20552
|
+
var H = Y.status, K = Y.statusMessage, Q = Y.message;
|
|
20553
|
+
H === u.grpc.Code.OK && Q || console.error(K);
|
|
20529
20554
|
} });
|
|
20530
20555
|
}
|
|
20531
|
-
},
|
|
20532
|
-
if (!
|
|
20533
|
-
|
|
20534
|
-
var
|
|
20535
|
-
|
|
20536
|
-
var
|
|
20537
|
-
|
|
20556
|
+
}, V = function() {
|
|
20557
|
+
if (!B) {
|
|
20558
|
+
B = !0;
|
|
20559
|
+
var q = new c.CallUpdateRequest();
|
|
20560
|
+
q.setUuid(j), q.setDone(!0), u.grpc.unary(d.SignalingService.CallUpdate, { request: q, metadata: { "rpc-host": O }, host: h, transport: D, onEnd: function(G) {
|
|
20561
|
+
var $ = G.status, Y = G.statusMessage, H = G.message;
|
|
20562
|
+
$ === u.grpc.Code.OK && H || console.error(Y);
|
|
20538
20563
|
} });
|
|
20539
20564
|
}
|
|
20540
|
-
},
|
|
20541
|
-
|
|
20542
|
-
}),
|
|
20543
|
-
case
|
|
20544
|
-
return
|
|
20545
|
-
return n.__awaiter(
|
|
20546
|
-
var
|
|
20547
|
-
return n.__generator(this, function(
|
|
20548
|
-
switch (
|
|
20565
|
+
}, oe = new Promise(function(q) {
|
|
20566
|
+
Z = q;
|
|
20567
|
+
}), re = !1, R?.disableTrickleICE ? [3, 7] : [4, E.createOffer()];
|
|
20568
|
+
case 5:
|
|
20569
|
+
return ge = J.sent(), ae = !1, E.onicecandidate = function(q) {
|
|
20570
|
+
return n.__awaiter(de, void 0, void 0, function() {
|
|
20571
|
+
var G, $;
|
|
20572
|
+
return n.__generator(this, function(Y) {
|
|
20573
|
+
switch (Y.label) {
|
|
20549
20574
|
case 0:
|
|
20550
|
-
return [4,
|
|
20575
|
+
return [4, oe];
|
|
20551
20576
|
case 1:
|
|
20552
|
-
return
|
|
20553
|
-
var
|
|
20554
|
-
|
|
20577
|
+
return Y.sent(), re ? [2] : q.candidate === null ? (ae = !0, V(), [2]) : (H = q.candidate, (K = new c.ICECandidate()).setCandidate(H.candidate), H.sdpMid && K.setSdpMid(H.sdpMid), H.sdpMLineIndex && K.setSdpmLineIndex(H.sdpMLineIndex), H.usernameFragment && K.setUsernameFragment(H.usernameFragment), G = K, ($ = new c.CallUpdateRequest()).setUuid(j), $.setCandidate(G), u.grpc.unary(d.SignalingService.CallUpdate, { request: $, metadata: { "rpc-host": O }, host: h, transport: D, onEnd: function(Q) {
|
|
20578
|
+
var ee = Q.status, X = Q.statusMessage, te = Q.message;
|
|
20579
|
+
ee === u.grpc.Code.OK && te || re || ae || console.error("error sending candidate", X);
|
|
20555
20580
|
} }), [2]);
|
|
20556
20581
|
}
|
|
20557
|
-
var
|
|
20582
|
+
var H, K;
|
|
20558
20583
|
});
|
|
20559
20584
|
});
|
|
20560
|
-
}, [4,
|
|
20561
|
-
case 5:
|
|
20562
|
-
J.sent(), J.label = 6;
|
|
20585
|
+
}, [4, E.setLocalDescription(ge)];
|
|
20563
20586
|
case 6:
|
|
20564
|
-
|
|
20565
|
-
|
|
20566
|
-
|
|
20567
|
-
|
|
20568
|
-
|
|
20587
|
+
J.sent(), J.label = 7;
|
|
20588
|
+
case 7:
|
|
20589
|
+
return ie = !1, A.onMessage(function(q) {
|
|
20590
|
+
return n.__awaiter(de, void 0, void 0, function() {
|
|
20591
|
+
var G, $, Y, H, K, Q;
|
|
20592
|
+
return n.__generator(this, function(ee) {
|
|
20593
|
+
switch (ee.label) {
|
|
20569
20594
|
case 0:
|
|
20570
|
-
return (
|
|
20595
|
+
return (G = q).hasInit() ? ie ? (N("got init stage more than once"), [2]) : ($ = G.getInit(), ie = !0, j = G.getUuid(), Y = new RTCSessionDescription(JSON.parse(atob($.getSdp()))), E.setRemoteDescription(Y), Z(!0), R?.disableTrickleICE ? (re = !0, V(), [2]) : [3, 7]) : [3, 1];
|
|
20571
20596
|
case 1:
|
|
20572
|
-
if (!
|
|
20597
|
+
if (!G.hasUpdate())
|
|
20573
20598
|
return [3, 6];
|
|
20574
|
-
if (!
|
|
20575
|
-
return
|
|
20576
|
-
if (
|
|
20577
|
-
return
|
|
20578
|
-
|
|
20599
|
+
if (!ie)
|
|
20600
|
+
return N("got update stage before init stage"), [2];
|
|
20601
|
+
if (G.getUuid() !== j)
|
|
20602
|
+
return N("uuid mismatch; have=".concat(G.getUuid(), " want=").concat(j)), [2];
|
|
20603
|
+
H = G.getUpdate(), X = H.getCandidate(), te = { candidate: X.getCandidate() }, X.hasSdpMid() && (te.sdpMid = X.getSdpMid()), X.hasSdpmLineIndex() && (te.sdpMLineIndex = X.getSdpmLineIndex()), X.hasUsernameFragment() && (te.usernameFragment = X.getUsernameFragment()), K = te, ee.label = 2;
|
|
20579
20604
|
case 2:
|
|
20580
|
-
return
|
|
20605
|
+
return ee.trys.push([2, 4, , 5]), [4, E.addIceCandidate(K)];
|
|
20581
20606
|
case 3:
|
|
20582
|
-
return
|
|
20607
|
+
return ee.sent(), [3, 5];
|
|
20583
20608
|
case 4:
|
|
20584
|
-
return Q =
|
|
20609
|
+
return Q = ee.sent(), N(JSON.stringify(Q)), [2];
|
|
20585
20610
|
case 5:
|
|
20586
20611
|
return [3, 7];
|
|
20587
20612
|
case 6:
|
|
20588
|
-
return
|
|
20613
|
+
return N("unknown CallResponse stage"), [2];
|
|
20589
20614
|
case 7:
|
|
20590
20615
|
return [2];
|
|
20591
20616
|
}
|
|
20592
|
-
var
|
|
20617
|
+
var X, te;
|
|
20593
20618
|
});
|
|
20594
20619
|
});
|
|
20595
|
-
}),
|
|
20596
|
-
|
|
20597
|
-
}),
|
|
20598
|
-
|
|
20599
|
-
}),
|
|
20600
|
-
return
|
|
20601
|
-
}).catch(function(
|
|
20602
|
-
return
|
|
20603
|
-
}), [4,
|
|
20604
|
-
case 7:
|
|
20605
|
-
return J.sent(), [4, ae.ready];
|
|
20620
|
+
}), le = new Promise(function(q, G) {
|
|
20621
|
+
pe = q, ne = G;
|
|
20622
|
+
}), A.onEnd(function(q, G, $) {
|
|
20623
|
+
q !== u.grpc.Code.OK ? G !== "Response closed without headers" ? (console.error(G), ne(G)) : ne(new p.ConnectionClosedError("failed to dial")) : pe();
|
|
20624
|
+
}), A.start({ "rpc-host": O }), se = new c.CallRequest(), ce = btoa(JSON.stringify(E.localDescription)), se.setSdp(ce), R && R.disableTrickleICE && se.setDisableTrickle(R.disableTrickleICE), A.send(se), (ue = new g.ClientChannel(E, F)).ready.then(function() {
|
|
20625
|
+
return pe();
|
|
20626
|
+
}).catch(function(q) {
|
|
20627
|
+
return ne(q);
|
|
20628
|
+
}), [4, le];
|
|
20606
20629
|
case 8:
|
|
20607
|
-
return J.sent(),
|
|
20630
|
+
return J.sent(), [4, ue.ready];
|
|
20608
20631
|
case 9:
|
|
20609
|
-
return
|
|
20632
|
+
return J.sent(), re = !0, V(), w?.externalAuthAddress || (x = w?.credentials) === null || x === void 0 || x.type, P = !0, [2, { transportFactory: ue.transportFactory(), peerConnection: E }];
|
|
20610
20633
|
case 10:
|
|
20634
|
+
return P || E.close(), [7];
|
|
20635
|
+
case 11:
|
|
20611
20636
|
return [2];
|
|
20612
20637
|
}
|
|
20613
20638
|
});
|
|
@@ -20648,19 +20673,19 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20648
20673
|
c = !0;
|
|
20649
20674
|
}, l.onmessage = function(f) {
|
|
20650
20675
|
return n.__awaiter(v, void 0, void 0, function() {
|
|
20651
|
-
var b,
|
|
20652
|
-
return n.__generator(this, function(
|
|
20653
|
-
switch (
|
|
20676
|
+
var b, M;
|
|
20677
|
+
return n.__generator(this, function(h) {
|
|
20678
|
+
switch (h.label) {
|
|
20654
20679
|
case 0:
|
|
20655
|
-
return
|
|
20680
|
+
return h.trys.push([0, 4, , 5]), (b = new RTCSessionDescription(JSON.parse(atob(f.data)))).type === "offer" && (b || p.signalingState), [4, p.setRemoteDescription(b)];
|
|
20656
20681
|
case 1:
|
|
20657
|
-
return
|
|
20682
|
+
return h.sent(), b.type !== "offer" ? [3, 3] : [4, p.setLocalDescription()];
|
|
20658
20683
|
case 2:
|
|
20659
|
-
|
|
20684
|
+
h.sent(), l.send(btoa(JSON.stringify(p.localDescription))), h.label = 3;
|
|
20660
20685
|
case 3:
|
|
20661
20686
|
return [3, 5];
|
|
20662
20687
|
case 4:
|
|
20663
|
-
return
|
|
20688
|
+
return M = h.sent(), console.error(M), [3, 5];
|
|
20664
20689
|
case 5:
|
|
20665
20690
|
return [2];
|
|
20666
20691
|
}
|
|
@@ -20708,102 +20733,102 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20708
20733
|
});
|
|
20709
20734
|
};
|
|
20710
20735
|
}, 655: (t, e, s) => {
|
|
20711
|
-
s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () =>
|
|
20712
|
-
var n = function(S,
|
|
20713
|
-
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
20714
|
-
|
|
20715
|
-
} || function(
|
|
20736
|
+
s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => w, __asyncGenerator: () => O, __asyncValues: () => C, __await: () => h, __awaiter: () => l, __classPrivateFieldGet: () => I, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () => x, __createBinding: () => d, __decorate: () => o, __exportStar: () => m, __extends: () => u, __generator: () => c, __importDefault: () => U, __importStar: () => z, __makeTemplateObject: () => L, __metadata: () => i, __param: () => r, __read: () => y, __rest: () => p, __spread: () => f, __spreadArray: () => M, __spreadArrays: () => b, __values: () => v });
|
|
20737
|
+
var n = function(S, R) {
|
|
20738
|
+
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, E) {
|
|
20739
|
+
_.__proto__ = E;
|
|
20740
|
+
} || function(_, E) {
|
|
20716
20741
|
for (var F in E)
|
|
20717
|
-
Object.prototype.hasOwnProperty.call(E, F) && (
|
|
20718
|
-
}, n(S,
|
|
20742
|
+
Object.prototype.hasOwnProperty.call(E, F) && (_[F] = E[F]);
|
|
20743
|
+
}, n(S, R);
|
|
20719
20744
|
};
|
|
20720
|
-
function u(S,
|
|
20721
|
-
if (typeof
|
|
20722
|
-
throw new TypeError("Class extends value " + String(
|
|
20723
|
-
function
|
|
20745
|
+
function u(S, R) {
|
|
20746
|
+
if (typeof R != "function" && R !== null)
|
|
20747
|
+
throw new TypeError("Class extends value " + String(R) + " is not a constructor or null");
|
|
20748
|
+
function _() {
|
|
20724
20749
|
this.constructor = S;
|
|
20725
20750
|
}
|
|
20726
|
-
n(S,
|
|
20751
|
+
n(S, R), S.prototype = R === null ? Object.create(R) : (_.prototype = R.prototype, new _());
|
|
20727
20752
|
}
|
|
20728
20753
|
var g = function() {
|
|
20729
20754
|
return g = Object.assign || function(S) {
|
|
20730
|
-
for (var
|
|
20731
|
-
for (var F in
|
|
20732
|
-
Object.prototype.hasOwnProperty.call(
|
|
20755
|
+
for (var R, _ = 1, E = arguments.length; _ < E; _++)
|
|
20756
|
+
for (var F in R = arguments[_])
|
|
20757
|
+
Object.prototype.hasOwnProperty.call(R, F) && (S[F] = R[F]);
|
|
20733
20758
|
return S;
|
|
20734
20759
|
}, g.apply(this, arguments);
|
|
20735
20760
|
};
|
|
20736
|
-
function p(S,
|
|
20737
|
-
var
|
|
20761
|
+
function p(S, R) {
|
|
20762
|
+
var _ = {};
|
|
20738
20763
|
for (var E in S)
|
|
20739
|
-
Object.prototype.hasOwnProperty.call(S, E) &&
|
|
20764
|
+
Object.prototype.hasOwnProperty.call(S, E) && R.indexOf(E) < 0 && (_[E] = S[E]);
|
|
20740
20765
|
if (S != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
20741
20766
|
var F = 0;
|
|
20742
20767
|
for (E = Object.getOwnPropertySymbols(S); F < E.length; F++)
|
|
20743
|
-
|
|
20768
|
+
R.indexOf(E[F]) < 0 && Object.prototype.propertyIsEnumerable.call(S, E[F]) && (_[E[F]] = S[E[F]]);
|
|
20744
20769
|
}
|
|
20745
|
-
return
|
|
20770
|
+
return _;
|
|
20746
20771
|
}
|
|
20747
|
-
function o(S,
|
|
20748
|
-
var F,
|
|
20772
|
+
function o(S, R, _, E) {
|
|
20773
|
+
var F, P = arguments.length, T = P < 3 ? R : E === null ? E = Object.getOwnPropertyDescriptor(R, _) : E;
|
|
20749
20774
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
20750
|
-
|
|
20775
|
+
T = Reflect.decorate(S, R, _, E);
|
|
20751
20776
|
else
|
|
20752
|
-
for (var
|
|
20753
|
-
(F = S[
|
|
20754
|
-
return
|
|
20777
|
+
for (var D = S.length - 1; D >= 0; D--)
|
|
20778
|
+
(F = S[D]) && (T = (P < 3 ? F(T) : P > 3 ? F(R, _, T) : F(R, _)) || T);
|
|
20779
|
+
return P > 3 && T && Object.defineProperty(R, _, T), T;
|
|
20755
20780
|
}
|
|
20756
|
-
function r(S,
|
|
20757
|
-
return function(
|
|
20758
|
-
|
|
20781
|
+
function r(S, R) {
|
|
20782
|
+
return function(_, E) {
|
|
20783
|
+
R(_, E, S);
|
|
20759
20784
|
};
|
|
20760
20785
|
}
|
|
20761
|
-
function i(S,
|
|
20786
|
+
function i(S, R) {
|
|
20762
20787
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
20763
|
-
return Reflect.metadata(S,
|
|
20788
|
+
return Reflect.metadata(S, R);
|
|
20764
20789
|
}
|
|
20765
|
-
function l(S,
|
|
20766
|
-
return new (
|
|
20767
|
-
function
|
|
20790
|
+
function l(S, R, _, E) {
|
|
20791
|
+
return new (_ || (_ = Promise))(function(F, P) {
|
|
20792
|
+
function T(j) {
|
|
20768
20793
|
try {
|
|
20769
|
-
|
|
20794
|
+
A(E.next(j));
|
|
20770
20795
|
} catch (B) {
|
|
20771
|
-
|
|
20796
|
+
P(B);
|
|
20772
20797
|
}
|
|
20773
20798
|
}
|
|
20774
|
-
function
|
|
20799
|
+
function D(j) {
|
|
20775
20800
|
try {
|
|
20776
|
-
|
|
20801
|
+
A(E.throw(j));
|
|
20777
20802
|
} catch (B) {
|
|
20778
|
-
|
|
20803
|
+
P(B);
|
|
20779
20804
|
}
|
|
20780
20805
|
}
|
|
20781
|
-
function j
|
|
20806
|
+
function A(j) {
|
|
20782
20807
|
var B;
|
|
20783
|
-
|
|
20784
|
-
|
|
20785
|
-
})).then(
|
|
20808
|
+
j.done ? F(j.value) : (B = j.value, B instanceof _ ? B : new _(function(N) {
|
|
20809
|
+
N(B);
|
|
20810
|
+
})).then(T, D);
|
|
20786
20811
|
}
|
|
20787
|
-
|
|
20812
|
+
A((E = E.apply(S, R || [])).next());
|
|
20788
20813
|
});
|
|
20789
20814
|
}
|
|
20790
|
-
function c(S,
|
|
20791
|
-
var
|
|
20815
|
+
function c(S, R) {
|
|
20816
|
+
var _, E, F, P, T = { label: 0, sent: function() {
|
|
20792
20817
|
if (1 & F[0])
|
|
20793
20818
|
throw F[1];
|
|
20794
20819
|
return F[1];
|
|
20795
20820
|
}, trys: [], ops: [] };
|
|
20796
|
-
return
|
|
20821
|
+
return P = { next: D(0), throw: D(1), return: D(2) }, typeof Symbol == "function" && (P[Symbol.iterator] = function() {
|
|
20797
20822
|
return this;
|
|
20798
|
-
}),
|
|
20799
|
-
function
|
|
20800
|
-
return function(
|
|
20823
|
+
}), P;
|
|
20824
|
+
function D(A) {
|
|
20825
|
+
return function(j) {
|
|
20801
20826
|
return function(B) {
|
|
20802
|
-
if (
|
|
20827
|
+
if (_)
|
|
20803
20828
|
throw new TypeError("Generator is already executing.");
|
|
20804
|
-
for (;
|
|
20829
|
+
for (; P && (P = 0, B[0] && (T = 0)), T; )
|
|
20805
20830
|
try {
|
|
20806
|
-
if (
|
|
20831
|
+
if (_ = 1, E && (F = 2 & B[0] ? E.return : B[0] ? E.throw || ((F = E.return) && F.call(E), 0) : E.next) && !(F = F.call(E, B[1])).done)
|
|
20807
20832
|
return F;
|
|
20808
20833
|
switch (E = 0, F && (B = [2 & B[0], F.value]), B[0]) {
|
|
20809
20834
|
case 0:
|
|
@@ -20811,216 +20836,216 @@ var __webpack_modules__ = { 37: function(t) {
|
|
|
20811
20836
|
F = B;
|
|
20812
20837
|
break;
|
|
20813
20838
|
case 4:
|
|
20814
|
-
return
|
|
20839
|
+
return T.label++, { value: B[1], done: !1 };
|
|
20815
20840
|
case 5:
|
|
20816
|
-
|
|
20841
|
+
T.label++, E = B[1], B = [0];
|
|
20817
20842
|
continue;
|
|
20818
20843
|
case 7:
|
|
20819
|
-
B =
|
|
20844
|
+
B = T.ops.pop(), T.trys.pop();
|
|
20820
20845
|
continue;
|
|
20821
20846
|
default:
|
|
20822
|
-
if (!((F = (F =
|
|
20823
|
-
|
|
20847
|
+
if (!((F = (F = T.trys).length > 0 && F[F.length - 1]) || B[0] !== 6 && B[0] !== 2)) {
|
|
20848
|
+
T = 0;
|
|
20824
20849
|
continue;
|
|
20825
20850
|
}
|
|
20826
20851
|
if (B[0] === 3 && (!F || B[1] > F[0] && B[1] < F[3])) {
|
|
20827
|
-
|
|
20852
|
+
T.label = B[1];
|
|
20828
20853
|
break;
|
|
20829
20854
|
}
|
|
20830
|
-
if (B[0] === 6 &&
|
|
20831
|
-
|
|
20855
|
+
if (B[0] === 6 && T.label < F[1]) {
|
|
20856
|
+
T.label = F[1], F = B;
|
|
20832
20857
|
break;
|
|
20833
20858
|
}
|
|
20834
|
-
if (F &&
|
|
20835
|
-
|
|
20859
|
+
if (F && T.label < F[2]) {
|
|
20860
|
+
T.label = F[2], T.ops.push(B);
|
|
20836
20861
|
break;
|
|
20837
20862
|
}
|
|
20838
|
-
F[2] &&
|
|
20863
|
+
F[2] && T.ops.pop(), T.trys.pop();
|
|
20839
20864
|
continue;
|
|
20840
20865
|
}
|
|
20841
|
-
B =
|
|
20842
|
-
} catch (
|
|
20843
|
-
B = [6,
|
|
20866
|
+
B = R.call(S, T);
|
|
20867
|
+
} catch (N) {
|
|
20868
|
+
B = [6, N], E = 0;
|
|
20844
20869
|
} finally {
|
|
20845
|
-
|
|
20870
|
+
_ = F = 0;
|
|
20846
20871
|
}
|
|
20847
20872
|
if (5 & B[0])
|
|
20848
20873
|
throw B[1];
|
|
20849
20874
|
return { value: B[0] ? B[1] : void 0, done: !0 };
|
|
20850
|
-
}([
|
|
20875
|
+
}([A, j]);
|
|
20851
20876
|
};
|
|
20852
20877
|
}
|
|
20853
20878
|
}
|
|
20854
|
-
var d = Object.create ? function(S,
|
|
20855
|
-
E === void 0 && (E =
|
|
20856
|
-
var F = Object.getOwnPropertyDescriptor(
|
|
20857
|
-
F && !("get" in F ? !
|
|
20858
|
-
return
|
|
20879
|
+
var d = Object.create ? function(S, R, _, E) {
|
|
20880
|
+
E === void 0 && (E = _);
|
|
20881
|
+
var F = Object.getOwnPropertyDescriptor(R, _);
|
|
20882
|
+
F && !("get" in F ? !R.__esModule : F.writable || F.configurable) || (F = { enumerable: !0, get: function() {
|
|
20883
|
+
return R[_];
|
|
20859
20884
|
} }), Object.defineProperty(S, E, F);
|
|
20860
|
-
} : function(S,
|
|
20861
|
-
E === void 0 && (E =
|
|
20885
|
+
} : function(S, R, _, E) {
|
|
20886
|
+
E === void 0 && (E = _), S[E] = R[_];
|
|
20862
20887
|
};
|
|
20863
|
-
function m(S,
|
|
20864
|
-
for (var
|
|
20865
|
-
|
|
20888
|
+
function m(S, R) {
|
|
20889
|
+
for (var _ in S)
|
|
20890
|
+
_ === "default" || Object.prototype.hasOwnProperty.call(R, _) || d(R, S, _);
|
|
20866
20891
|
}
|
|
20867
20892
|
function v(S) {
|
|
20868
|
-
var
|
|
20869
|
-
if (
|
|
20870
|
-
return
|
|
20893
|
+
var R = typeof Symbol == "function" && Symbol.iterator, _ = R && S[R], E = 0;
|
|
20894
|
+
if (_)
|
|
20895
|
+
return _.call(S);
|
|
20871
20896
|
if (S && typeof S.length == "number")
|
|
20872
20897
|
return { next: function() {
|
|
20873
20898
|
return S && E >= S.length && (S = void 0), { value: S && S[E++], done: !S };
|
|
20874
20899
|
} };
|
|
20875
|
-
throw new TypeError(
|
|
20900
|
+
throw new TypeError(R ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
20876
20901
|
}
|
|
20877
|
-
function y(S,
|
|
20878
|
-
var
|
|
20879
|
-
if (!
|
|
20902
|
+
function y(S, R) {
|
|
20903
|
+
var _ = typeof Symbol == "function" && S[Symbol.iterator];
|
|
20904
|
+
if (!_)
|
|
20880
20905
|
return S;
|
|
20881
|
-
var E, F,
|
|
20906
|
+
var E, F, P = _.call(S), T = [];
|
|
20882
20907
|
try {
|
|
20883
|
-
for (; (
|
|
20884
|
-
|
|
20885
|
-
} catch (
|
|
20886
|
-
F = { error:
|
|
20908
|
+
for (; (R === void 0 || R-- > 0) && !(E = P.next()).done; )
|
|
20909
|
+
T.push(E.value);
|
|
20910
|
+
} catch (D) {
|
|
20911
|
+
F = { error: D };
|
|
20887
20912
|
} finally {
|
|
20888
20913
|
try {
|
|
20889
|
-
E && !E.done && (
|
|
20914
|
+
E && !E.done && (_ = P.return) && _.call(P);
|
|
20890
20915
|
} finally {
|
|
20891
20916
|
if (F)
|
|
20892
20917
|
throw F.error;
|
|
20893
20918
|
}
|
|
20894
20919
|
}
|
|
20895
|
-
return
|
|
20920
|
+
return T;
|
|
20896
20921
|
}
|
|
20897
20922
|
function f() {
|
|
20898
|
-
for (var S = [],
|
|
20899
|
-
S = S.concat(y(arguments[
|
|
20923
|
+
for (var S = [], R = 0; R < arguments.length; R++)
|
|
20924
|
+
S = S.concat(y(arguments[R]));
|
|
20900
20925
|
return S;
|
|
20901
20926
|
}
|
|
20902
20927
|
function b() {
|
|
20903
|
-
for (var S = 0,
|
|
20904
|
-
S += arguments[
|
|
20928
|
+
for (var S = 0, R = 0, _ = arguments.length; R < _; R++)
|
|
20929
|
+
S += arguments[R].length;
|
|
20905
20930
|
var E = Array(S), F = 0;
|
|
20906
|
-
for (
|
|
20907
|
-
for (var
|
|
20908
|
-
E[F] = T
|
|
20931
|
+
for (R = 0; R < _; R++)
|
|
20932
|
+
for (var P = arguments[R], T = 0, D = P.length; T < D; T++, F++)
|
|
20933
|
+
E[F] = P[T];
|
|
20909
20934
|
return E;
|
|
20910
20935
|
}
|
|
20911
|
-
function
|
|
20912
|
-
if (
|
|
20913
|
-
for (var E, F = 0,
|
|
20914
|
-
!E && F in
|
|
20915
|
-
return S.concat(E || Array.prototype.slice.call(
|
|
20936
|
+
function M(S, R, _) {
|
|
20937
|
+
if (_ || arguments.length === 2)
|
|
20938
|
+
for (var E, F = 0, P = R.length; F < P; F++)
|
|
20939
|
+
!E && F in R || (E || (E = Array.prototype.slice.call(R, 0, F)), E[F] = R[F]);
|
|
20940
|
+
return S.concat(E || Array.prototype.slice.call(R));
|
|
20916
20941
|
}
|
|
20917
|
-
function
|
|
20918
|
-
return this instanceof
|
|
20942
|
+
function h(S) {
|
|
20943
|
+
return this instanceof h ? (this.v = S, this) : new h(S);
|
|
20919
20944
|
}
|
|
20920
|
-
function
|
|
20945
|
+
function O(S, R, _) {
|
|
20921
20946
|
if (!Symbol.asyncIterator)
|
|
20922
20947
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
20923
|
-
var E, F =
|
|
20924
|
-
return E = {},
|
|
20948
|
+
var E, F = _.apply(S, R || []), P = [];
|
|
20949
|
+
return E = {}, T("next"), T("throw"), T("return"), E[Symbol.asyncIterator] = function() {
|
|
20925
20950
|
return this;
|
|
20926
20951
|
}, E;
|
|
20927
|
-
function
|
|
20928
|
-
F[
|
|
20929
|
-
return new Promise(function(Z,
|
|
20930
|
-
|
|
20952
|
+
function T(N) {
|
|
20953
|
+
F[N] && (E[N] = function(V) {
|
|
20954
|
+
return new Promise(function(Z, oe) {
|
|
20955
|
+
P.push([N, V, Z, oe]) > 1 || D(N, V);
|
|
20931
20956
|
});
|
|
20932
20957
|
});
|
|
20933
20958
|
}
|
|
20934
|
-
function
|
|
20959
|
+
function D(N, V) {
|
|
20935
20960
|
try {
|
|
20936
|
-
(Z = F[
|
|
20937
|
-
} catch (
|
|
20938
|
-
B(
|
|
20961
|
+
(Z = F[N](V)).value instanceof h ? Promise.resolve(Z.value.v).then(A, j) : B(P[0][2], Z);
|
|
20962
|
+
} catch (oe) {
|
|
20963
|
+
B(P[0][3], oe);
|
|
20939
20964
|
}
|
|
20940
20965
|
var Z;
|
|
20941
20966
|
}
|
|
20942
|
-
function
|
|
20943
|
-
|
|
20967
|
+
function A(N) {
|
|
20968
|
+
D("next", N);
|
|
20944
20969
|
}
|
|
20945
|
-
function
|
|
20946
|
-
|
|
20970
|
+
function j(N) {
|
|
20971
|
+
D("throw", N);
|
|
20947
20972
|
}
|
|
20948
|
-
function B(
|
|
20949
|
-
|
|
20973
|
+
function B(N, V) {
|
|
20974
|
+
N(V), P.shift(), P.length && D(P[0][0], P[0][1]);
|
|
20950
20975
|
}
|
|
20951
20976
|
}
|
|
20952
|
-
function
|
|
20953
|
-
var
|
|
20954
|
-
return
|
|
20977
|
+
function w(S) {
|
|
20978
|
+
var R, _;
|
|
20979
|
+
return R = {}, E("next"), E("throw", function(F) {
|
|
20955
20980
|
throw F;
|
|
20956
|
-
}), E("return"),
|
|
20981
|
+
}), E("return"), R[Symbol.iterator] = function() {
|
|
20957
20982
|
return this;
|
|
20958
|
-
},
|
|
20959
|
-
function E(F,
|
|
20960
|
-
|
|
20961
|
-
return (
|
|
20962
|
-
} :
|
|
20983
|
+
}, R;
|
|
20984
|
+
function E(F, P) {
|
|
20985
|
+
R[F] = S[F] ? function(T) {
|
|
20986
|
+
return (_ = !_) ? { value: h(S[F](T)), done: F === "return" } : P ? P(T) : T;
|
|
20987
|
+
} : P;
|
|
20963
20988
|
}
|
|
20964
20989
|
}
|
|
20965
|
-
function
|
|
20990
|
+
function C(S) {
|
|
20966
20991
|
if (!Symbol.asyncIterator)
|
|
20967
20992
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
20968
|
-
var
|
|
20969
|
-
return
|
|
20993
|
+
var R, _ = S[Symbol.asyncIterator];
|
|
20994
|
+
return _ ? _.call(S) : (S = v(S), R = {}, E("next"), E("throw"), E("return"), R[Symbol.asyncIterator] = function() {
|
|
20970
20995
|
return this;
|
|
20971
|
-
},
|
|
20996
|
+
}, R);
|
|
20972
20997
|
function E(F) {
|
|
20973
|
-
|
|
20974
|
-
return new Promise(function(
|
|
20975
|
-
(function(
|
|
20976
|
-
Promise.resolve(
|
|
20977
|
-
|
|
20978
|
-
},
|
|
20979
|
-
})(
|
|
20998
|
+
R[F] = S[F] && function(P) {
|
|
20999
|
+
return new Promise(function(T, D) {
|
|
21000
|
+
(function(A, j, B, N) {
|
|
21001
|
+
Promise.resolve(N).then(function(V) {
|
|
21002
|
+
A({ value: V, done: B });
|
|
21003
|
+
}, j);
|
|
21004
|
+
})(T, D, (P = S[F](P)).done, P.value);
|
|
20980
21005
|
});
|
|
20981
21006
|
};
|
|
20982
21007
|
}
|
|
20983
21008
|
}
|
|
20984
|
-
function
|
|
20985
|
-
return Object.defineProperty ? Object.defineProperty(S, "raw", { value:
|
|
21009
|
+
function L(S, R) {
|
|
21010
|
+
return Object.defineProperty ? Object.defineProperty(S, "raw", { value: R }) : S.raw = R, S;
|
|
20986
21011
|
}
|
|
20987
|
-
var
|
|
20988
|
-
Object.defineProperty(S, "default", { enumerable: !0, value:
|
|
20989
|
-
} : function(S,
|
|
20990
|
-
S.default =
|
|
21012
|
+
var W = Object.create ? function(S, R) {
|
|
21013
|
+
Object.defineProperty(S, "default", { enumerable: !0, value: R });
|
|
21014
|
+
} : function(S, R) {
|
|
21015
|
+
S.default = R;
|
|
20991
21016
|
};
|
|
20992
|
-
function
|
|
21017
|
+
function z(S) {
|
|
20993
21018
|
if (S && S.__esModule)
|
|
20994
21019
|
return S;
|
|
20995
|
-
var
|
|
21020
|
+
var R = {};
|
|
20996
21021
|
if (S != null)
|
|
20997
|
-
for (var
|
|
20998
|
-
|
|
20999
|
-
return
|
|
21022
|
+
for (var _ in S)
|
|
21023
|
+
_ !== "default" && Object.prototype.hasOwnProperty.call(S, _) && d(R, S, _);
|
|
21024
|
+
return W(R, S), R;
|
|
21000
21025
|
}
|
|
21001
|
-
function
|
|
21026
|
+
function U(S) {
|
|
21002
21027
|
return S && S.__esModule ? S : { default: S };
|
|
21003
21028
|
}
|
|
21004
|
-
function
|
|
21005
|
-
if (
|
|
21029
|
+
function I(S, R, _, E) {
|
|
21030
|
+
if (_ === "a" && !E)
|
|
21006
21031
|
throw new TypeError("Private accessor was defined without a getter");
|
|
21007
|
-
if (typeof
|
|
21032
|
+
if (typeof R == "function" ? S !== R || !E : !R.has(S))
|
|
21008
21033
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
21009
|
-
return
|
|
21034
|
+
return _ === "m" ? E : _ === "a" ? E.call(S) : E ? E.value : R.get(S);
|
|
21010
21035
|
}
|
|
21011
|
-
function
|
|
21036
|
+
function x(S, R, _, E, F) {
|
|
21012
21037
|
if (E === "m")
|
|
21013
21038
|
throw new TypeError("Private method is not writable");
|
|
21014
21039
|
if (E === "a" && !F)
|
|
21015
21040
|
throw new TypeError("Private accessor was defined without a setter");
|
|
21016
|
-
if (typeof
|
|
21041
|
+
if (typeof R == "function" ? S !== R || !F : !R.has(S))
|
|
21017
21042
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
21018
|
-
return E === "a" ? F.call(S,
|
|
21043
|
+
return E === "a" ? F.call(S, _) : F ? F.value = _ : R.set(S, _), _;
|
|
21019
21044
|
}
|
|
21020
|
-
function
|
|
21021
|
-
if (
|
|
21045
|
+
function k(S, R) {
|
|
21046
|
+
if (R === null || typeof R != "object" && typeof R != "function")
|
|
21022
21047
|
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
21023
|
-
return typeof S == "function" ?
|
|
21048
|
+
return typeof S == "function" ? R === S : S.has(R);
|
|
21024
21049
|
}
|
|
21025
21050
|
}, 80: (t, e, s) => {
|
|
21026
21051
|
var n = s(19), u = n, g = function() {
|
|
@@ -32502,7 +32527,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
32502
32527
|
}, proto.viam.component.movementsensor.v1.GetPositionResponse.toObject = function(o, r) {
|
|
32503
32528
|
var i, l = {
|
|
32504
32529
|
coordinate: (i = r.getCoordinate()) && u.GeoPoint.toObject(o, i),
|
|
32505
|
-
|
|
32530
|
+
altitudeM: e.Message.getFloatingPointFieldWithDefault(r, 2, 0)
|
|
32506
32531
|
};
|
|
32507
32532
|
return o && (l.$jspbMessageInstance = r), l;
|
|
32508
32533
|
}), proto.viam.component.movementsensor.v1.GetPositionResponse.deserializeBinary = function(o) {
|
|
@@ -32521,7 +32546,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
32521
32546
|
/** @type {number} */
|
|
32522
32547
|
r.readFloat()
|
|
32523
32548
|
);
|
|
32524
|
-
o.
|
|
32549
|
+
o.setAltitudeM(l);
|
|
32525
32550
|
break;
|
|
32526
32551
|
default:
|
|
32527
32552
|
r.skipField();
|
|
@@ -32538,7 +32563,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
32538
32563
|
1,
|
|
32539
32564
|
i,
|
|
32540
32565
|
u.GeoPoint.serializeBinaryToWriter
|
|
32541
|
-
), i = o.
|
|
32566
|
+
), i = o.getAltitudeM(), i !== 0 && r.writeFloat(
|
|
32542
32567
|
2,
|
|
32543
32568
|
i
|
|
32544
32569
|
);
|
|
@@ -32553,12 +32578,12 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
32553
32578
|
return this.setCoordinate(void 0);
|
|
32554
32579
|
}, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.hasCoordinate = function() {
|
|
32555
32580
|
return e.Message.getField(this, 1) != null;
|
|
32556
|
-
}, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.
|
|
32581
|
+
}, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.getAltitudeM = function() {
|
|
32557
32582
|
return (
|
|
32558
32583
|
/** @type {number} */
|
|
32559
32584
|
e.Message.getFloatingPointFieldWithDefault(this, 2, 0)
|
|
32560
32585
|
);
|
|
32561
|
-
}, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.
|
|
32586
|
+
}, proto.viam.component.movementsensor.v1.GetPositionResponse.prototype.setAltitudeM = function(o) {
|
|
32562
32587
|
return e.Message.setProto3FloatField(this, 2, o);
|
|
32563
32588
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetPropertiesRequest.prototype.toObject = function(o) {
|
|
32564
32589
|
return proto.viam.component.movementsensor.v1.GetPropertiesRequest.toObject(o, this);
|
|
@@ -32823,7 +32848,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
32823
32848
|
return proto.viam.component.movementsensor.v1.GetAccuracyResponse.toObject(o, this);
|
|
32824
32849
|
}, proto.viam.component.movementsensor.v1.GetAccuracyResponse.toObject = function(o, r) {
|
|
32825
32850
|
var i, l = {
|
|
32826
|
-
|
|
32851
|
+
accuracyMap: (i = r.getAccuracyMap()) ? i.toObject(o, void 0) : []
|
|
32827
32852
|
};
|
|
32828
32853
|
return o && (l.$jspbMessageInstance = r), l;
|
|
32829
32854
|
}), proto.viam.component.movementsensor.v1.GetAccuracyResponse.deserializeBinary = function(o) {
|
|
@@ -32834,7 +32859,7 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
32834
32859
|
var i = r.getFieldNumber();
|
|
32835
32860
|
switch (i) {
|
|
32836
32861
|
case 1:
|
|
32837
|
-
var l = o.
|
|
32862
|
+
var l = o.getAccuracyMap();
|
|
32838
32863
|
r.readMessage(l, function(c, d) {
|
|
32839
32864
|
e.Map.deserializeBinary(c, d, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readFloat, null, "", 0);
|
|
32840
32865
|
});
|
|
@@ -32850,8 +32875,8 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
32850
32875
|
return proto.viam.component.movementsensor.v1.GetAccuracyResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
|
|
32851
32876
|
}, proto.viam.component.movementsensor.v1.GetAccuracyResponse.serializeBinaryToWriter = function(o, r) {
|
|
32852
32877
|
var i = void 0;
|
|
32853
|
-
i = o.
|
|
32854
|
-
}, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.
|
|
32878
|
+
i = o.getAccuracyMap(!0), i && i.getLength() > 0 && i.serializeBinary(1, r, e.BinaryWriter.prototype.writeString, e.BinaryWriter.prototype.writeFloat);
|
|
32879
|
+
}, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.getAccuracyMap = function(o) {
|
|
32855
32880
|
return (
|
|
32856
32881
|
/** @type {!jspb.Map<string,number>} */
|
|
32857
32882
|
e.Message.getMapField(
|
|
@@ -32861,8 +32886,8 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
32861
32886
|
null
|
|
32862
32887
|
)
|
|
32863
32888
|
);
|
|
32864
|
-
}, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.
|
|
32865
|
-
return this.
|
|
32889
|
+
}, proto.viam.component.movementsensor.v1.GetAccuracyResponse.prototype.clearAccuracyMap = function() {
|
|
32890
|
+
return this.getAccuracyMap().clear(), this;
|
|
32866
32891
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.prototype.toObject = function(o) {
|
|
32867
32892
|
return proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.toObject(o, this);
|
|
32868
32893
|
}, proto.viam.component.movementsensor.v1.GetLinearAccelerationRequest.toObject = function(o, r) {
|
|
@@ -39810,14 +39835,14 @@ class BaseClient {
|
|
|
39810
39835
|
}
|
|
39811
39836
|
async setPower(e, s, n = {}) {
|
|
39812
39837
|
const u = this.baseService, g = new base_pb.SetPowerRequest();
|
|
39813
|
-
g.setName(this.name), g.setLinear(
|
|
39838
|
+
g.setName(this.name), g.setLinear(encodeVector3(e)), g.setAngular(encodeVector3(s)), g.setExtra(struct_pb.Struct.fromJavaScript(n)), this.options.requestLogger?.(g), await promisify(
|
|
39814
39839
|
u.setPower.bind(u),
|
|
39815
39840
|
g
|
|
39816
39841
|
);
|
|
39817
39842
|
}
|
|
39818
39843
|
async setVelocity(e, s, n = {}) {
|
|
39819
39844
|
const u = this.baseService, g = new base_pb.SetVelocityRequest();
|
|
39820
|
-
g.setName(this.name), g.setLinear(
|
|
39845
|
+
g.setName(this.name), g.setLinear(encodeVector3(e)), g.setAngular(encodeVector3(s)), g.setExtra(struct_pb.Struct.fromJavaScript(n)), this.options.requestLogger?.(g), await promisify(
|
|
39821
39846
|
u.setVelocity.bind(u),
|
|
39822
39847
|
g
|
|
39823
39848
|
);
|
|
@@ -41578,7 +41603,7 @@ class MovementSensorClient {
|
|
|
41578
41603
|
)).getLinearVelocity();
|
|
41579
41604
|
if (!g)
|
|
41580
41605
|
throw new Error("no linear velocity");
|
|
41581
|
-
return
|
|
41606
|
+
return g.toObject();
|
|
41582
41607
|
}
|
|
41583
41608
|
async getAngularVelocity(e = {}) {
|
|
41584
41609
|
const s = this.movementsensorService, n = new movementsensor_pb.GetAngularVelocityRequest();
|
|
@@ -41589,7 +41614,7 @@ class MovementSensorClient {
|
|
|
41589
41614
|
)).getAngularVelocity();
|
|
41590
41615
|
if (!g)
|
|
41591
41616
|
throw new Error("no angular velocity");
|
|
41592
|
-
return
|
|
41617
|
+
return g.toObject();
|
|
41593
41618
|
}
|
|
41594
41619
|
async getCompassHeading(e = {}) {
|
|
41595
41620
|
const s = this.movementsensorService, n = new movementsensor_pb.GetCompassHeadingRequest();
|
|
@@ -41607,42 +41632,20 @@ class MovementSensorClient {
|
|
|
41607
41632
|
)).getOrientation();
|
|
41608
41633
|
if (!g)
|
|
41609
41634
|
throw new Error("no orientation");
|
|
41610
|
-
return
|
|
41611
|
-
ox: g.getOX(),
|
|
41612
|
-
oy: g.getOY(),
|
|
41613
|
-
oz: g.getOZ(),
|
|
41614
|
-
theta: g.getTheta()
|
|
41615
|
-
};
|
|
41635
|
+
return g.toObject();
|
|
41616
41636
|
}
|
|
41617
41637
|
async getPosition(e = {}) {
|
|
41618
41638
|
const s = this.movementsensorService, n = new movementsensor_pb.GetPositionRequest();
|
|
41619
|
-
n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n);
|
|
41620
|
-
const u = await promisify(s.getPosition.bind(s), n), g = u.getCoordinate();
|
|
41621
|
-
if (!g)
|
|
41622
|
-
throw new Error("no coordinate");
|
|
41623
|
-
return {
|
|
41624
|
-
latitude: g.getLatitude(),
|
|
41625
|
-
longitude: g.getLongitude(),
|
|
41626
|
-
altitudeMM: u.getAltitudeMm()
|
|
41627
|
-
};
|
|
41639
|
+
return n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n), (await promisify(s.getPosition.bind(s), n)).toObject();
|
|
41628
41640
|
}
|
|
41629
41641
|
async getProperties(e = {}) {
|
|
41630
41642
|
const s = this.movementsensorService, n = new movementsensor_pb.GetPropertiesRequest();
|
|
41631
|
-
n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n);
|
|
41632
|
-
const u = await promisify(s.getProperties.bind(s), n);
|
|
41633
|
-
return {
|
|
41634
|
-
linearVelocitySupported: u.getLinearVelocitySupported(),
|
|
41635
|
-
angularVelocitySupported: u.getAngularVelocitySupported(),
|
|
41636
|
-
orientationSupported: u.getOrientationSupported(),
|
|
41637
|
-
positionSupported: u.getPositionSupported(),
|
|
41638
|
-
compassHeadingSupported: u.getCompassHeadingSupported(),
|
|
41639
|
-
linearAccelerationSupported: u.getLinearAccelerationSupported()
|
|
41640
|
-
};
|
|
41643
|
+
return n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n), (await promisify(s.getProperties.bind(s), n)).toObject();
|
|
41641
41644
|
}
|
|
41642
41645
|
async getAccuracy(e = {}) {
|
|
41643
41646
|
const s = this.movementsensorService, n = new movementsensor_pb.GetAccuracyRequest();
|
|
41644
41647
|
n.setName(this.name), n.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(n);
|
|
41645
|
-
const g = (await promisify(s.getAccuracy.bind(s), n)).
|
|
41648
|
+
const g = (await promisify(s.getAccuracy.bind(s), n)).getAccuracyMap(), p = {};
|
|
41646
41649
|
for (const [o, r] of g.entries())
|
|
41647
41650
|
p[o] = r;
|
|
41648
41651
|
return p;
|
|
@@ -41656,7 +41659,7 @@ class MovementSensorClient {
|
|
|
41656
41659
|
)).getLinearAcceleration();
|
|
41657
41660
|
if (!g)
|
|
41658
41661
|
throw new Error("no linear acceleration");
|
|
41659
|
-
return
|
|
41662
|
+
return g.toObject();
|
|
41660
41663
|
}
|
|
41661
41664
|
getReadings(e = {}) {
|
|
41662
41665
|
return this.sensorclient.getReadings(e);
|
|
@@ -42319,7 +42322,7 @@ class DataManagerClient {
|
|
|
42319
42322
|
);
|
|
42320
42323
|
}
|
|
42321
42324
|
}
|
|
42322
|
-
const version = "0.0.
|
|
42325
|
+
const version = "0.0.47-alpha.1";
|
|
42323
42326
|
export {
|
|
42324
42327
|
ArmClient,
|
|
42325
42328
|
BaseClient,
|