@viamrobotics/sdk 0.0.55 → 0.0.56

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/main.es.js CHANGED
@@ -8276,7 +8276,7 @@ var struct_pb = {};
8276
8276
  }.call(null), u = descriptor_pb;
8277
8277
  s.object.extend(proto, u);
8278
8278
  var g = struct_pb;
8279
- s.object.extend(proto, g), s.exportSymbol("proto.viam.common.v1.ActuatorStatus", null, i), s.exportSymbol("proto.viam.common.v1.AnalogStatus", null, i), s.exportSymbol("proto.viam.common.v1.BoardStatus", null, i), s.exportSymbol("proto.viam.common.v1.Capsule", null, i), s.exportSymbol("proto.viam.common.v1.DigitalInterruptStatus", null, i), s.exportSymbol("proto.viam.common.v1.DoCommandRequest", null, i), s.exportSymbol("proto.viam.common.v1.DoCommandResponse", null, i), s.exportSymbol("proto.viam.common.v1.GeoPoint", null, i), s.exportSymbol("proto.viam.common.v1.GeometriesInFrame", null, i), s.exportSymbol("proto.viam.common.v1.Geometry", null, i), s.exportSymbol("proto.viam.common.v1.Geometry.GeometryTypeCase", null, i), s.exportSymbol("proto.viam.common.v1.Orientation", null, i), s.exportSymbol("proto.viam.common.v1.PointCloudObject", null, i), s.exportSymbol("proto.viam.common.v1.Pose", null, i), s.exportSymbol("proto.viam.common.v1.PoseInFrame", null, i), s.exportSymbol("proto.viam.common.v1.RectangularPrism", null, i), s.exportSymbol("proto.viam.common.v1.ResourceName", null, i), s.exportSymbol("proto.viam.common.v1.Sphere", null, i), s.exportSymbol("proto.viam.common.v1.Transform", null, i), s.exportSymbol("proto.viam.common.v1.Vector3", null, i), s.exportSymbol("proto.viam.common.v1.WorldState", null, i), s.exportSymbol("proto.viam.common.v1.safetyHeartbeatMonitored", null, i), proto.viam.common.v1.ResourceName = function(p) {
8279
+ s.object.extend(proto, g), s.exportSymbol("proto.viam.common.v1.ActuatorStatus", null, i), s.exportSymbol("proto.viam.common.v1.AnalogStatus", null, i), s.exportSymbol("proto.viam.common.v1.BoardStatus", null, i), s.exportSymbol("proto.viam.common.v1.Capsule", null, i), s.exportSymbol("proto.viam.common.v1.DigitalInterruptStatus", null, i), s.exportSymbol("proto.viam.common.v1.DoCommandRequest", null, i), s.exportSymbol("proto.viam.common.v1.DoCommandResponse", null, i), s.exportSymbol("proto.viam.common.v1.GeoObstacle", null, i), s.exportSymbol("proto.viam.common.v1.GeoPoint", null, i), s.exportSymbol("proto.viam.common.v1.GeometriesInFrame", null, i), s.exportSymbol("proto.viam.common.v1.Geometry", null, i), s.exportSymbol("proto.viam.common.v1.Geometry.GeometryTypeCase", null, i), s.exportSymbol("proto.viam.common.v1.Orientation", null, i), s.exportSymbol("proto.viam.common.v1.PointCloudObject", null, i), s.exportSymbol("proto.viam.common.v1.Pose", null, i), s.exportSymbol("proto.viam.common.v1.PoseInFrame", null, i), s.exportSymbol("proto.viam.common.v1.RectangularPrism", null, i), s.exportSymbol("proto.viam.common.v1.ResourceName", null, i), s.exportSymbol("proto.viam.common.v1.Sphere", null, i), s.exportSymbol("proto.viam.common.v1.Transform", null, i), s.exportSymbol("proto.viam.common.v1.Vector3", null, i), s.exportSymbol("proto.viam.common.v1.WorldState", null, i), s.exportSymbol("proto.viam.common.v1.safetyHeartbeatMonitored", null, i), proto.viam.common.v1.ResourceName = function(p) {
8280
8280
  e.Message.initialize(this, p, 0, -1, null, null);
8281
8281
  }, s.inherits(proto.viam.common.v1.ResourceName, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.ResourceName.displayName = "proto.viam.common.v1.ResourceName"), proto.viam.common.v1.BoardStatus = function(p) {
8282
8282
  e.Message.initialize(this, p, 0, -1, null, null);
@@ -8306,7 +8306,9 @@ var struct_pb = {};
8306
8306
  e.Message.initialize(this, p, 0, -1, null, null);
8307
8307
  }, s.inherits(proto.viam.common.v1.PointCloudObject, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.PointCloudObject.displayName = "proto.viam.common.v1.PointCloudObject"), proto.viam.common.v1.GeoPoint = function(p) {
8308
8308
  e.Message.initialize(this, p, 0, -1, null, null);
8309
- }, s.inherits(proto.viam.common.v1.GeoPoint, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GeoPoint.displayName = "proto.viam.common.v1.GeoPoint"), proto.viam.common.v1.Transform = function(p) {
8309
+ }, s.inherits(proto.viam.common.v1.GeoPoint, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GeoPoint.displayName = "proto.viam.common.v1.GeoPoint"), proto.viam.common.v1.GeoObstacle = function(p) {
8310
+ e.Message.initialize(this, p, 0, -1, proto.viam.common.v1.GeoObstacle.repeatedFields_, null);
8311
+ }, s.inherits(proto.viam.common.v1.GeoObstacle, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.GeoObstacle.displayName = "proto.viam.common.v1.GeoObstacle"), proto.viam.common.v1.Transform = function(p) {
8310
8312
  e.Message.initialize(this, p, 0, -1, null, null);
8311
8313
  }, s.inherits(proto.viam.common.v1.Transform, e.Message), s.DEBUG && !COMPILED && (proto.viam.common.v1.Transform.displayName = "proto.viam.common.v1.Transform"), proto.viam.common.v1.WorldState = function(p) {
8312
8314
  e.Message.initialize(this, p, 0, -1, proto.viam.common.v1.WorldState.repeatedFields_, null);
@@ -9439,6 +9441,75 @@ var struct_pb = {};
9439
9441
  );
9440
9442
  }, proto.viam.common.v1.GeoPoint.prototype.setLongitude = function(p) {
9441
9443
  return e.Message.setProto3FloatField(this, 2, p);
9444
+ }, proto.viam.common.v1.GeoObstacle.repeatedFields_ = [2], e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.GeoObstacle.prototype.toObject = function(p) {
9445
+ return proto.viam.common.v1.GeoObstacle.toObject(p, this);
9446
+ }, proto.viam.common.v1.GeoObstacle.toObject = function(p, o) {
9447
+ var r, n = {
9448
+ location: (r = o.getLocation()) && proto.viam.common.v1.GeoPoint.toObject(p, r),
9449
+ geometriesList: e.Message.toObjectList(
9450
+ o.getGeometriesList(),
9451
+ proto.viam.common.v1.Geometry.toObject,
9452
+ p
9453
+ )
9454
+ };
9455
+ return p && (n.$jspbMessageInstance = o), n;
9456
+ }), proto.viam.common.v1.GeoObstacle.deserializeBinary = function(p) {
9457
+ var o = new e.BinaryReader(p), r = new proto.viam.common.v1.GeoObstacle();
9458
+ return proto.viam.common.v1.GeoObstacle.deserializeBinaryFromReader(r, o);
9459
+ }, proto.viam.common.v1.GeoObstacle.deserializeBinaryFromReader = function(p, o) {
9460
+ for (; o.nextField() && !o.isEndGroup(); ) {
9461
+ var r = o.getFieldNumber();
9462
+ switch (r) {
9463
+ case 1:
9464
+ var n = new proto.viam.common.v1.GeoPoint();
9465
+ o.readMessage(n, proto.viam.common.v1.GeoPoint.deserializeBinaryFromReader), p.setLocation(n);
9466
+ break;
9467
+ case 2:
9468
+ var n = new proto.viam.common.v1.Geometry();
9469
+ o.readMessage(n, proto.viam.common.v1.Geometry.deserializeBinaryFromReader), p.addGeometries(n);
9470
+ break;
9471
+ default:
9472
+ o.skipField();
9473
+ break;
9474
+ }
9475
+ }
9476
+ return p;
9477
+ }, proto.viam.common.v1.GeoObstacle.prototype.serializeBinary = function() {
9478
+ var p = new e.BinaryWriter();
9479
+ return proto.viam.common.v1.GeoObstacle.serializeBinaryToWriter(this, p), p.getResultBuffer();
9480
+ }, proto.viam.common.v1.GeoObstacle.serializeBinaryToWriter = function(p, o) {
9481
+ var r = void 0;
9482
+ r = p.getLocation(), r != null && o.writeMessage(
9483
+ 1,
9484
+ r,
9485
+ proto.viam.common.v1.GeoPoint.serializeBinaryToWriter
9486
+ ), r = p.getGeometriesList(), r.length > 0 && o.writeRepeatedMessage(
9487
+ 2,
9488
+ r,
9489
+ proto.viam.common.v1.Geometry.serializeBinaryToWriter
9490
+ );
9491
+ }, proto.viam.common.v1.GeoObstacle.prototype.getLocation = function() {
9492
+ return (
9493
+ /** @type{?proto.viam.common.v1.GeoPoint} */
9494
+ e.Message.getWrapperField(this, proto.viam.common.v1.GeoPoint, 1)
9495
+ );
9496
+ }, proto.viam.common.v1.GeoObstacle.prototype.setLocation = function(p) {
9497
+ return e.Message.setWrapperField(this, 1, p);
9498
+ }, proto.viam.common.v1.GeoObstacle.prototype.clearLocation = function() {
9499
+ return this.setLocation(void 0);
9500
+ }, proto.viam.common.v1.GeoObstacle.prototype.hasLocation = function() {
9501
+ return e.Message.getField(this, 1) != null;
9502
+ }, proto.viam.common.v1.GeoObstacle.prototype.getGeometriesList = function() {
9503
+ return (
9504
+ /** @type{!Array<!proto.viam.common.v1.Geometry>} */
9505
+ e.Message.getRepeatedWrapperField(this, proto.viam.common.v1.Geometry, 2)
9506
+ );
9507
+ }, proto.viam.common.v1.GeoObstacle.prototype.setGeometriesList = function(p) {
9508
+ return e.Message.setRepeatedWrapperField(this, 2, p);
9509
+ }, proto.viam.common.v1.GeoObstacle.prototype.addGeometries = function(p, o) {
9510
+ return e.Message.addToRepeatedWrapperField(this, 2, p, proto.viam.common.v1.Geometry, o);
9511
+ }, proto.viam.common.v1.GeoObstacle.prototype.clearGeometriesList = function() {
9512
+ return this.setGeometriesList([]);
9442
9513
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.common.v1.Transform.prototype.toObject = function(p) {
9443
9514
  return proto.viam.common.v1.Transform.toObject(p, this);
9444
9515
  }, proto.viam.common.v1.Transform.toObject = function(p, o) {
@@ -13016,8 +13087,8 @@ var __webpack_modules__ = { 37: function(t) {
13016
13087
  else if (this.position === this.buffer.byteLength)
13017
13088
  this.buffer = v, this.position = 0;
13018
13089
  else {
13019
- var M = this.buffer.byteLength - this.position, h = new Uint8Array(M + v.byteLength), O = c(this.buffer, this.position);
13020
- h.set(O, 0);
13090
+ var M = this.buffer.byteLength - this.position, h = new Uint8Array(M + v.byteLength), _ = c(this.buffer, this.position);
13091
+ h.set(_, 0);
13021
13092
  var w = new Uint8Array(v);
13022
13093
  h.set(w, M), this.buffer = h, this.position = 0;
13023
13094
  }
@@ -19561,8 +19632,8 @@ var __webpack_modules__ = { 37: function(t) {
19561
19632
  C += "".concat(q, ": ").concat(N.join(", "), `\r
19562
19633
  `);
19563
19634
  }), n(C);
19564
- }(b), O = new ArrayBuffer(h.length + 5);
19565
- 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();
19635
+ }(b), _ = new ArrayBuffer(h.length + 5);
19636
+ new DataView(_, 0, 1).setUint8(0, 128), new DataView(_, 1, 4).setUint32(0, h.length, !1), new Uint8Array(_, 5).set(h), this.opts.onChunk(new Uint8Array(_)), y !== 0 ? this.closeWithRecvError(new p.GRPCError(y, f)) : this.closeWithRecvError();
19566
19637
  } }), m;
19567
19638
  }(g.BaseStream);
19568
19639
  function n(d) {
@@ -19593,19 +19664,19 @@ var __webpack_modules__ = { 37: function(t) {
19593
19664
  }, 512: (t, e, s) => {
19594
19665
  Object.defineProperty(e, "__esModule", { value: !0 }), e.dialWebRTC = e.dialDirect = void 0;
19595
19666
  var i = s(655), u = s(37), g = s(138), p = s(758), o = s(743), r = s(34), n = s(165), l = s(400), c = s(982), d = s(958), m = s(93);
19596
- function v(h, O) {
19667
+ function v(h, _) {
19597
19668
  return i.__awaiter(this, void 0, void 0, function() {
19598
19669
  var w, C;
19599
19670
  return i.__generator(this, function(q) {
19600
- return M(O), w = function(N) {
19671
+ return M(_), w = function(N) {
19601
19672
  return u.grpc.CrossBrowserHttpTransport({ withCredentials: !1 })(N);
19602
- }, !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(N) {
19673
+ }, !_?.accessToken || _?.externalAuthAddress && _?.externalAuthToEntity ? _ && (_?.credentials || _?.accessToken) ? [2, y(h, w, _)] : [2, w] : ((C = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(_.accessToken)), [2, function(N) {
19603
19674
  return new f(N, w, C);
19604
19675
  }]);
19605
19676
  });
19606
19677
  });
19607
19678
  }
19608
- function y(h, O, w) {
19679
+ function y(h, _, w) {
19609
19680
  return i.__awaiter(this, void 0, void 0, function() {
19610
19681
  var C, q, N, x = this;
19611
19682
  return i.__generator(this, function(U) {
@@ -19613,29 +19684,29 @@ var __webpack_modules__ = { 37: function(t) {
19613
19684
  case 0:
19614
19685
  return C = "", q = function() {
19615
19686
  return i.__awaiter(x, void 0, void 0, function() {
19616
- var G, z, k, S, R, _, E, F, P, T;
19687
+ var G, z, k, S, R, O, E, F, P, T;
19617
19688
  return i.__generator(this, function(j) {
19618
19689
  switch (j.label) {
19619
19690
  case 0:
19620
- return C != "" ? [3, 5] : (G = "", w.accessToken && w.accessToken !== "" ? [3, 2] : ((E = new n.AuthenticateRequest()).setEntity(w.authEntity ? w.authEntity : h.replace(/^(.*:\/\/)/, "")), (S = new n.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, D) {
19691
+ return C != "" ? [3, 5] : (G = "", w.accessToken && w.accessToken !== "" ? [3, 2] : ((E = new n.AuthenticateRequest()).setEntity(w.authEntity ? w.authEntity : h.replace(/^(.*:\/\/)/, "")), (S = new n.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), O = new Promise(function(A, D) {
19621
19692
  z = A, k = D;
19622
- }), u.grpc.invoke(l.AuthService.Authenticate, { request: E, host: w.externalAuthAddress ? w.externalAuthAddress : h, transport: O, onMessage: function(A) {
19693
+ }), u.grpc.invoke(l.AuthService.Authenticate, { request: E, host: w.externalAuthAddress ? w.externalAuthAddress : h, transport: _, onMessage: function(A) {
19623
19694
  G = A.getAccessToken();
19624
19695
  }, onEnd: function(A, D, B) {
19625
19696
  A == u.grpc.Code.OK ? z(F) : k(D);
19626
- } }), [4, _]));
19697
+ } }), [4, O]));
19627
19698
  case 1:
19628
19699
  return j.sent(), [3, 3];
19629
19700
  case 2:
19630
19701
  G = w.accessToken, j.label = 3;
19631
19702
  case 3:
19632
- return C = G, w.externalAuthAddress && w.externalAuthToEntity ? ((R = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(C)), _ = new Promise(function(A, D) {
19703
+ return C = G, w.externalAuthAddress && w.externalAuthToEntity ? ((R = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(C)), O = new Promise(function(A, D) {
19633
19704
  z = A, k = D;
19634
- }), G = "", (E = new n.AuthenticateToRequest()).setEntity(w.externalAuthToEntity), u.grpc.invoke(l.ExternalAuthService.AuthenticateTo, { request: E, host: w.externalAuthAddress, transport: O, metadata: R, onMessage: function(A) {
19705
+ }), G = "", (E = new n.AuthenticateToRequest()).setEntity(w.externalAuthToEntity), u.grpc.invoke(l.ExternalAuthService.AuthenticateTo, { request: E, host: w.externalAuthAddress, transport: _, metadata: R, onMessage: function(A) {
19635
19706
  G = A.getAccessToken();
19636
19707
  }, onEnd: function(A, D, B) {
19637
19708
  A == u.grpc.Code.OK ? z(R) : k(D);
19638
- } }), [4, _]) : [3, 5];
19709
+ } }), [4, O]) : [3, 5];
19639
19710
  case 4:
19640
19711
  j.sent(), C = G, j.label = 5;
19641
19712
  case 5:
@@ -19646,7 +19717,7 @@ var __webpack_modules__ = { 37: function(t) {
19646
19717
  }, [4, q()];
19647
19718
  case 1:
19648
19719
  return N = U.sent(), [2, function(G) {
19649
- return new f(G, O, N);
19720
+ return new f(G, _, N);
19650
19721
  }];
19651
19722
  }
19652
19723
  });
@@ -19654,22 +19725,22 @@ var __webpack_modules__ = { 37: function(t) {
19654
19725
  }
19655
19726
  e.dialDirect = v;
19656
19727
  var f = function() {
19657
- function h(O, w, C) {
19658
- 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);
19728
+ function h(_, w, C) {
19729
+ 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 = _, this.extraMetadata = C, this.transport = w(_);
19659
19730
  }
19660
- return Object.defineProperty(h.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(O) {
19731
+ return Object.defineProperty(h.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(_) {
19661
19732
  this.extraMetadata.forEach(function(w, C) {
19662
- O.set(w, C);
19663
- }), this.transport.start(O);
19664
- } }), Object.defineProperty(h.prototype, "sendMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(O) {
19665
- this.transport.sendMessage(O);
19733
+ _.set(w, C);
19734
+ }), this.transport.start(_);
19735
+ } }), Object.defineProperty(h.prototype, "sendMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(_) {
19736
+ this.transport.sendMessage(_);
19666
19737
  } }), Object.defineProperty(h.prototype, "finishSend", { enumerable: !1, configurable: !0, writable: !0, value: function() {
19667
19738
  this.transport.finishSend();
19668
19739
  } }), Object.defineProperty(h.prototype, "cancel", { enumerable: !1, configurable: !0, writable: !0, value: function() {
19669
19740
  this.transport.cancel();
19670
19741
  } }), h;
19671
19742
  }();
19672
- function b(h, O, w) {
19743
+ function b(h, _, w) {
19673
19744
  return i.__awaiter(this, void 0, void 0, function() {
19674
19745
  var C, q, N, x, U, G;
19675
19746
  return i.__generator(this, function(z) {
@@ -19679,10 +19750,10 @@ var __webpack_modules__ = { 37: function(t) {
19679
19750
  case 1:
19680
19751
  return q = z.sent(), G = new Promise(function(k, S) {
19681
19752
  N = k, x = S;
19682
- }), u.grpc.unary(d.SignalingService.OptionalWebRTCConfig, { request: new c.OptionalWebRTCConfigRequest(), metadata: { "rpc-host": O }, host: h, transport: q, onEnd: function(k) {
19683
- var S = k.status, R = k.statusMessage, _ = k.message;
19684
- if (S === u.grpc.Code.OK && _) {
19685
- if (!(U = _.getConfig()))
19753
+ }), u.grpc.unary(d.SignalingService.OptionalWebRTCConfig, { request: new c.OptionalWebRTCConfigRequest(), metadata: { "rpc-host": _ }, host: h, transport: q, onEnd: function(k) {
19754
+ var S = k.status, R = k.statusMessage, O = k.message;
19755
+ if (S === u.grpc.Code.OK && O) {
19756
+ if (!(U = O.getConfig()))
19686
19757
  return void N(new c.WebRTCConfig());
19687
19758
  N(U);
19688
19759
  } else
@@ -19697,7 +19768,7 @@ var __webpack_modules__ = { 37: function(t) {
19697
19768
  });
19698
19769
  }
19699
19770
  function M(h) {
19700
- var O;
19771
+ var _;
19701
19772
  if (h) {
19702
19773
  if (h.accessToken && h.accessToken.length > 0) {
19703
19774
  if (h.authEntity)
@@ -19713,7 +19784,7 @@ var __webpack_modules__ = { 37: function(t) {
19713
19784
  throw new Error("cannot set webrtcOptions.signalingCredentials with accessToken");
19714
19785
  }
19715
19786
  }
19716
- if (!((O = h?.webrtcOptions) === null || O === void 0) && O.signalingAccessToken && h.webrtcOptions.signalingAccessToken.length > 0) {
19787
+ if (!((_ = h?.webrtcOptions) === null || _ === void 0) && _.signalingAccessToken && h.webrtcOptions.signalingAccessToken.length > 0) {
19717
19788
  if (h.webrtcOptions.signalingAuthEntity)
19718
19789
  throw new Error("cannot set webrtcOptions.signalingAuthEntity with webrtcOptions.signalingAccessToken");
19719
19790
  if (h.webrtcOptions.signalingCredentials)
@@ -19721,20 +19792,20 @@ var __webpack_modules__ = { 37: function(t) {
19721
19792
  }
19722
19793
  }
19723
19794
  }
19724
- e.dialWebRTC = function(h, O, w) {
19795
+ e.dialWebRTC = function(h, _, w) {
19725
19796
  var C, q, N, x, U, G, z;
19726
19797
  return i.__awaiter(this, void 0, void 0, function() {
19727
- var k, S, R, _, E, F, P, T, j, A, D, B, W, V, Z, oe, re, ge, ae, ne, pe, ie, le, se, ce, ue, de = this;
19798
+ var k, S, R, O, E, F, P, T, j, A, D, B, W, V, Z, oe, re, ge, ae, ne, pe, ie, le, se, ce, ue, de = this;
19728
19799
  return i.__generator(this, function(J) {
19729
19800
  switch (J.label) {
19730
19801
  case 0:
19731
- return M(w), [4, b(h, O, w)];
19802
+ return M(w), [4, b(h, _, w)];
19732
19803
  case 1:
19733
19804
  return k = J.sent(), S = k.toObject().additionalIceServersList.map(function(L) {
19734
19805
  return { urls: L.urlsList, credential: L.credential, username: L.username };
19735
19806
  }), w || (w = {}), w.webrtcOptions ? (R = w.webrtcOptions).rtcConfig ? R.rtcConfig.iceServers = i.__spreadArray(i.__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)];
19736
19807
  case 2:
19737
- _ = J.sent(), E = _.pc, F = _.dc, P = !1, J.label = 3;
19808
+ O = J.sent(), E = O.pc, F = O.dc, P = !1, J.label = 3;
19738
19809
  case 3:
19739
19810
  return J.trys.push([3, , 10, 11]), T = w, w && (T = i.__assign({}, w), w.accessToken || (T.authEntity = (C = w?.webrtcOptions) === null || C === void 0 ? void 0 : C.signalingAuthEntity, T.authEntity || (T.externalAuthAddress ? T.authEntity = (q = w.externalAuthAddress) === null || q === void 0 ? void 0 : q.replace(/^(.*:\/\/)/, "") : T.authEntity = h.replace(/^(.*:\/\/)/, "")), T.credentials = (N = w?.webrtcOptions) === null || N === void 0 ? void 0 : N.signalingCredentials, T.accessToken = (x = w?.webrtcOptions) === null || x === void 0 ? void 0 : x.signalingAccessToken), T.externalAuthAddress = (U = w?.webrtcOptions) === null || U === void 0 ? void 0 : U.signalingExternalAuthAddress, T.externalAuthToEntity = (G = w?.webrtcOptions) === null || G === void 0 ? void 0 : G.signalingExternalAuthToEntity), [4, v(h, T)];
19740
19811
  case 4:
@@ -19744,7 +19815,7 @@ var __webpack_modules__ = { 37: function(t) {
19744
19815
  var I = new c.CallUpdateRequest();
19745
19816
  I.setUuid(D);
19746
19817
  var $ = new r.Status();
19747
- $.setCode(o.Code.UNKNOWN), $.setMessage(L), I.setError($), u.grpc.unary(d.SignalingService.CallUpdate, { request: I, metadata: { "rpc-host": O }, host: h, transport: j, onEnd: function(Y) {
19818
+ $.setCode(o.Code.UNKNOWN), $.setMessage(L), I.setError($), u.grpc.unary(d.SignalingService.CallUpdate, { request: I, metadata: { "rpc-host": _ }, host: h, transport: j, onEnd: function(Y) {
19748
19819
  var H = Y.status, K = Y.statusMessage, Q = Y.message;
19749
19820
  H === u.grpc.Code.OK && Q || console.error(K);
19750
19821
  } });
@@ -19753,7 +19824,7 @@ var __webpack_modules__ = { 37: function(t) {
19753
19824
  if (!B) {
19754
19825
  B = !0;
19755
19826
  var L = new c.CallUpdateRequest();
19756
- L.setUuid(D), L.setDone(!0), u.grpc.unary(d.SignalingService.CallUpdate, { request: L, metadata: { "rpc-host": O }, host: h, transport: j, onEnd: function(I) {
19827
+ L.setUuid(D), L.setDone(!0), u.grpc.unary(d.SignalingService.CallUpdate, { request: L, metadata: { "rpc-host": _ }, host: h, transport: j, onEnd: function(I) {
19757
19828
  var $ = I.status, Y = I.statusMessage, H = I.message;
19758
19829
  $ === u.grpc.Code.OK && H || console.error(Y);
19759
19830
  } });
@@ -19770,7 +19841,7 @@ var __webpack_modules__ = { 37: function(t) {
19770
19841
  case 0:
19771
19842
  return [4, oe];
19772
19843
  case 1:
19773
- return Y.sent(), re ? [2] : L.candidate === null ? (ae = !0, V(), [2]) : (H = L.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), I = K, ($ = new c.CallUpdateRequest()).setUuid(D), $.setCandidate(I), u.grpc.unary(d.SignalingService.CallUpdate, { request: $, metadata: { "rpc-host": O }, host: h, transport: j, onEnd: function(Q) {
19844
+ return Y.sent(), re ? [2] : L.candidate === null ? (ae = !0, V(), [2]) : (H = L.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), I = K, ($ = new c.CallUpdateRequest()).setUuid(D), $.setCandidate(I), u.grpc.unary(d.SignalingService.CallUpdate, { request: $, metadata: { "rpc-host": _ }, host: h, transport: j, onEnd: function(Q) {
19774
19845
  var ee = Q.status, X = Q.statusMessage, te = Q.message;
19775
19846
  ee === u.grpc.Code.OK && te || re || ae || console.error("error sending candidate", X);
19776
19847
  } }), [2]);
@@ -19788,26 +19859,28 @@ var __webpack_modules__ = { 37: function(t) {
19788
19859
  return i.__generator(this, function(ee) {
19789
19860
  switch (ee.label) {
19790
19861
  case 0:
19791
- return (I = L).hasInit() ? ne ? (W("got init stage more than once"), [2]) : ($ = I.getInit(), ne = !0, D = I.getUuid(), Y = new RTCSessionDescription(JSON.parse(atob($.getSdp()))), E.setRemoteDescription(Y), Z(!0), R?.disableTrickleICE ? (re = !0, V(), [2]) : [3, 7]) : [3, 1];
19862
+ return (I = L).hasInit() ? ne ? (W("got init stage more than once"), [2]) : ($ = I.getInit(), ne = !0, D = I.getUuid(), Y = new RTCSessionDescription(JSON.parse(atob($.getSdp()))), [4, E.setRemoteDescription(Y)]) : [3, 2];
19792
19863
  case 1:
19864
+ return ee.sent(), Z(!0), R?.disableTrickleICE ? (re = !0, V(), [2]) : [3, 8];
19865
+ case 2:
19793
19866
  if (!I.hasUpdate())
19794
- return [3, 6];
19867
+ return [3, 7];
19795
19868
  if (!ne)
19796
19869
  return W("got update stage before init stage"), [2];
19797
19870
  if (I.getUuid() !== D)
19798
19871
  return W("uuid mismatch; have=".concat(I.getUuid(), " want=").concat(D)), [2];
19799
- H = I.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;
19800
- case 2:
19801
- return ee.trys.push([2, 4, , 5]), [4, E.addIceCandidate(K)];
19872
+ H = I.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 = 3;
19802
19873
  case 3:
19803
- return ee.sent(), [3, 5];
19874
+ return ee.trys.push([3, 5, , 6]), [4, E.addIceCandidate(K)];
19804
19875
  case 4:
19805
- return Q = ee.sent(), W(JSON.stringify(Q)), [2];
19876
+ return ee.sent(), [3, 6];
19806
19877
  case 5:
19807
- return [3, 7];
19878
+ return Q = ee.sent(), W(JSON.stringify(Q)), [2];
19808
19879
  case 6:
19809
- return W("unknown CallResponse stage"), [2];
19880
+ return [3, 8];
19810
19881
  case 7:
19882
+ return W("unknown CallResponse stage"), [2];
19883
+ case 8:
19811
19884
  return [2];
19812
19885
  }
19813
19886
  var X, te;
@@ -19817,7 +19890,7 @@ var __webpack_modules__ = { 37: function(t) {
19817
19890
  pe = L, ie = I;
19818
19891
  }), A.onEnd(function(L, I, $) {
19819
19892
  L !== u.grpc.Code.OK ? I !== "Response closed without headers" ? (console.error(I), ie(I)) : ie(new p.ConnectionClosedError("failed to dial")) : pe();
19820
- }), 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() {
19893
+ }), A.start({ "rpc-host": _ }), 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() {
19821
19894
  return pe();
19822
19895
  }).catch(function(L) {
19823
19896
  return ie(L);
@@ -19929,62 +20002,62 @@ var __webpack_modules__ = { 37: function(t) {
19929
20002
  });
19930
20003
  };
19931
20004
  }, 655: (t, e, s) => {
19932
- s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => w, __asyncGenerator: () => O, __asyncValues: () => C, __await: () => h, __awaiter: () => l, __classPrivateFieldGet: () => G, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () => z, __createBinding: () => d, __decorate: () => o, __exportStar: () => m, __extends: () => u, __generator: () => c, __importDefault: () => U, __importStar: () => x, __makeTemplateObject: () => q, __metadata: () => n, __param: () => r, __read: () => y, __rest: () => p, __spread: () => f, __spreadArray: () => M, __spreadArrays: () => b, __values: () => v });
20005
+ s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => w, __asyncGenerator: () => _, __asyncValues: () => C, __await: () => h, __awaiter: () => l, __classPrivateFieldGet: () => G, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () => z, __createBinding: () => d, __decorate: () => o, __exportStar: () => m, __extends: () => u, __generator: () => c, __importDefault: () => U, __importStar: () => x, __makeTemplateObject: () => q, __metadata: () => n, __param: () => r, __read: () => y, __rest: () => p, __spread: () => f, __spreadArray: () => M, __spreadArrays: () => b, __values: () => v });
19933
20006
  var i = function(S, R) {
19934
- return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, E) {
19935
- _.__proto__ = E;
19936
- } || function(_, E) {
20007
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(O, E) {
20008
+ O.__proto__ = E;
20009
+ } || function(O, E) {
19937
20010
  for (var F in E)
19938
- Object.prototype.hasOwnProperty.call(E, F) && (_[F] = E[F]);
20011
+ Object.prototype.hasOwnProperty.call(E, F) && (O[F] = E[F]);
19939
20012
  }, i(S, R);
19940
20013
  };
19941
20014
  function u(S, R) {
19942
20015
  if (typeof R != "function" && R !== null)
19943
20016
  throw new TypeError("Class extends value " + String(R) + " is not a constructor or null");
19944
- function _() {
20017
+ function O() {
19945
20018
  this.constructor = S;
19946
20019
  }
19947
- i(S, R), S.prototype = R === null ? Object.create(R) : (_.prototype = R.prototype, new _());
20020
+ i(S, R), S.prototype = R === null ? Object.create(R) : (O.prototype = R.prototype, new O());
19948
20021
  }
19949
20022
  var g = function() {
19950
20023
  return g = Object.assign || function(S) {
19951
- for (var R, _ = 1, E = arguments.length; _ < E; _++)
19952
- for (var F in R = arguments[_])
20024
+ for (var R, O = 1, E = arguments.length; O < E; O++)
20025
+ for (var F in R = arguments[O])
19953
20026
  Object.prototype.hasOwnProperty.call(R, F) && (S[F] = R[F]);
19954
20027
  return S;
19955
20028
  }, g.apply(this, arguments);
19956
20029
  };
19957
20030
  function p(S, R) {
19958
- var _ = {};
20031
+ var O = {};
19959
20032
  for (var E in S)
19960
- Object.prototype.hasOwnProperty.call(S, E) && R.indexOf(E) < 0 && (_[E] = S[E]);
20033
+ Object.prototype.hasOwnProperty.call(S, E) && R.indexOf(E) < 0 && (O[E] = S[E]);
19961
20034
  if (S != null && typeof Object.getOwnPropertySymbols == "function") {
19962
20035
  var F = 0;
19963
20036
  for (E = Object.getOwnPropertySymbols(S); F < E.length; F++)
19964
- R.indexOf(E[F]) < 0 && Object.prototype.propertyIsEnumerable.call(S, E[F]) && (_[E[F]] = S[E[F]]);
20037
+ R.indexOf(E[F]) < 0 && Object.prototype.propertyIsEnumerable.call(S, E[F]) && (O[E[F]] = S[E[F]]);
19965
20038
  }
19966
- return _;
20039
+ return O;
19967
20040
  }
19968
- function o(S, R, _, E) {
19969
- var F, P = arguments.length, T = P < 3 ? R : E === null ? E = Object.getOwnPropertyDescriptor(R, _) : E;
20041
+ function o(S, R, O, E) {
20042
+ var F, P = arguments.length, T = P < 3 ? R : E === null ? E = Object.getOwnPropertyDescriptor(R, O) : E;
19970
20043
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
19971
- T = Reflect.decorate(S, R, _, E);
20044
+ T = Reflect.decorate(S, R, O, E);
19972
20045
  else
19973
20046
  for (var j = S.length - 1; j >= 0; j--)
19974
- (F = S[j]) && (T = (P < 3 ? F(T) : P > 3 ? F(R, _, T) : F(R, _)) || T);
19975
- return P > 3 && T && Object.defineProperty(R, _, T), T;
20047
+ (F = S[j]) && (T = (P < 3 ? F(T) : P > 3 ? F(R, O, T) : F(R, O)) || T);
20048
+ return P > 3 && T && Object.defineProperty(R, O, T), T;
19976
20049
  }
19977
20050
  function r(S, R) {
19978
- return function(_, E) {
19979
- R(_, E, S);
20051
+ return function(O, E) {
20052
+ R(O, E, S);
19980
20053
  };
19981
20054
  }
19982
20055
  function n(S, R) {
19983
20056
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
19984
20057
  return Reflect.metadata(S, R);
19985
20058
  }
19986
- function l(S, R, _, E) {
19987
- return new (_ || (_ = Promise))(function(F, P) {
20059
+ function l(S, R, O, E) {
20060
+ return new (O || (O = Promise))(function(F, P) {
19988
20061
  function T(D) {
19989
20062
  try {
19990
20063
  A(E.next(D));
@@ -20001,7 +20074,7 @@ var __webpack_modules__ = { 37: function(t) {
20001
20074
  }
20002
20075
  function A(D) {
20003
20076
  var B;
20004
- D.done ? F(D.value) : (B = D.value, B instanceof _ ? B : new _(function(W) {
20077
+ D.done ? F(D.value) : (B = D.value, B instanceof O ? B : new O(function(W) {
20005
20078
  W(B);
20006
20079
  })).then(T, j);
20007
20080
  }
@@ -20009,7 +20082,7 @@ var __webpack_modules__ = { 37: function(t) {
20009
20082
  });
20010
20083
  }
20011
20084
  function c(S, R) {
20012
- var _, E, F, P, T = { label: 0, sent: function() {
20085
+ var O, E, F, P, T = { label: 0, sent: function() {
20013
20086
  if (1 & F[0])
20014
20087
  throw F[1];
20015
20088
  return F[1];
@@ -20020,11 +20093,11 @@ var __webpack_modules__ = { 37: function(t) {
20020
20093
  function j(A) {
20021
20094
  return function(D) {
20022
20095
  return function(B) {
20023
- if (_)
20096
+ if (O)
20024
20097
  throw new TypeError("Generator is already executing.");
20025
20098
  for (; P && (P = 0, B[0] && (T = 0)), T; )
20026
20099
  try {
20027
- 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)
20100
+ if (O = 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)
20028
20101
  return F;
20029
20102
  switch (E = 0, F && (B = [2 & B[0], F.value]), B[0]) {
20030
20103
  case 0:
@@ -20063,7 +20136,7 @@ var __webpack_modules__ = { 37: function(t) {
20063
20136
  } catch (W) {
20064
20137
  B = [6, W], E = 0;
20065
20138
  } finally {
20066
- _ = F = 0;
20139
+ O = F = 0;
20067
20140
  }
20068
20141
  if (5 & B[0])
20069
20142
  throw B[1];
@@ -20072,23 +20145,23 @@ var __webpack_modules__ = { 37: function(t) {
20072
20145
  };
20073
20146
  }
20074
20147
  }
20075
- var d = Object.create ? function(S, R, _, E) {
20076
- E === void 0 && (E = _);
20077
- var F = Object.getOwnPropertyDescriptor(R, _);
20148
+ var d = Object.create ? function(S, R, O, E) {
20149
+ E === void 0 && (E = O);
20150
+ var F = Object.getOwnPropertyDescriptor(R, O);
20078
20151
  F && !("get" in F ? !R.__esModule : F.writable || F.configurable) || (F = { enumerable: !0, get: function() {
20079
- return R[_];
20152
+ return R[O];
20080
20153
  } }), Object.defineProperty(S, E, F);
20081
- } : function(S, R, _, E) {
20082
- E === void 0 && (E = _), S[E] = R[_];
20154
+ } : function(S, R, O, E) {
20155
+ E === void 0 && (E = O), S[E] = R[O];
20083
20156
  };
20084
20157
  function m(S, R) {
20085
- for (var _ in S)
20086
- _ === "default" || Object.prototype.hasOwnProperty.call(R, _) || d(R, S, _);
20158
+ for (var O in S)
20159
+ O === "default" || Object.prototype.hasOwnProperty.call(R, O) || d(R, S, O);
20087
20160
  }
20088
20161
  function v(S) {
20089
- var R = typeof Symbol == "function" && Symbol.iterator, _ = R && S[R], E = 0;
20090
- if (_)
20091
- return _.call(S);
20162
+ var R = typeof Symbol == "function" && Symbol.iterator, O = R && S[R], E = 0;
20163
+ if (O)
20164
+ return O.call(S);
20092
20165
  if (S && typeof S.length == "number")
20093
20166
  return { next: function() {
20094
20167
  return S && E >= S.length && (S = void 0), { value: S && S[E++], done: !S };
@@ -20096,10 +20169,10 @@ var __webpack_modules__ = { 37: function(t) {
20096
20169
  throw new TypeError(R ? "Object is not iterable." : "Symbol.iterator is not defined.");
20097
20170
  }
20098
20171
  function y(S, R) {
20099
- var _ = typeof Symbol == "function" && S[Symbol.iterator];
20100
- if (!_)
20172
+ var O = typeof Symbol == "function" && S[Symbol.iterator];
20173
+ if (!O)
20101
20174
  return S;
20102
- var E, F, P = _.call(S), T = [];
20175
+ var E, F, P = O.call(S), T = [];
20103
20176
  try {
20104
20177
  for (; (R === void 0 || R-- > 0) && !(E = P.next()).done; )
20105
20178
  T.push(E.value);
@@ -20107,7 +20180,7 @@ var __webpack_modules__ = { 37: function(t) {
20107
20180
  F = { error: j };
20108
20181
  } finally {
20109
20182
  try {
20110
- E && !E.done && (_ = P.return) && _.call(P);
20183
+ E && !E.done && (O = P.return) && O.call(P);
20111
20184
  } finally {
20112
20185
  if (F)
20113
20186
  throw F.error;
@@ -20121,16 +20194,16 @@ var __webpack_modules__ = { 37: function(t) {
20121
20194
  return S;
20122
20195
  }
20123
20196
  function b() {
20124
- for (var S = 0, R = 0, _ = arguments.length; R < _; R++)
20197
+ for (var S = 0, R = 0, O = arguments.length; R < O; R++)
20125
20198
  S += arguments[R].length;
20126
20199
  var E = Array(S), F = 0;
20127
- for (R = 0; R < _; R++)
20200
+ for (R = 0; R < O; R++)
20128
20201
  for (var P = arguments[R], T = 0, j = P.length; T < j; T++, F++)
20129
20202
  E[F] = P[T];
20130
20203
  return E;
20131
20204
  }
20132
- function M(S, R, _) {
20133
- if (_ || arguments.length === 2)
20205
+ function M(S, R, O) {
20206
+ if (O || arguments.length === 2)
20134
20207
  for (var E, F = 0, P = R.length; F < P; F++)
20135
20208
  !E && F in R || (E || (E = Array.prototype.slice.call(R, 0, F)), E[F] = R[F]);
20136
20209
  return S.concat(E || Array.prototype.slice.call(R));
@@ -20138,10 +20211,10 @@ var __webpack_modules__ = { 37: function(t) {
20138
20211
  function h(S) {
20139
20212
  return this instanceof h ? (this.v = S, this) : new h(S);
20140
20213
  }
20141
- function O(S, R, _) {
20214
+ function _(S, R, O) {
20142
20215
  if (!Symbol.asyncIterator)
20143
20216
  throw new TypeError("Symbol.asyncIterator is not defined.");
20144
- var E, F = _.apply(S, R || []), P = [];
20217
+ var E, F = O.apply(S, R || []), P = [];
20145
20218
  return E = {}, T("next"), T("throw"), T("return"), E[Symbol.asyncIterator] = function() {
20146
20219
  return this;
20147
20220
  }, E;
@@ -20171,7 +20244,7 @@ var __webpack_modules__ = { 37: function(t) {
20171
20244
  }
20172
20245
  }
20173
20246
  function w(S) {
20174
- var R, _;
20247
+ var R, O;
20175
20248
  return R = {}, E("next"), E("throw", function(F) {
20176
20249
  throw F;
20177
20250
  }), E("return"), R[Symbol.iterator] = function() {
@@ -20179,15 +20252,15 @@ var __webpack_modules__ = { 37: function(t) {
20179
20252
  }, R;
20180
20253
  function E(F, P) {
20181
20254
  R[F] = S[F] ? function(T) {
20182
- return (_ = !_) ? { value: h(S[F](T)), done: F === "return" } : P ? P(T) : T;
20255
+ return (O = !O) ? { value: h(S[F](T)), done: F === "return" } : P ? P(T) : T;
20183
20256
  } : P;
20184
20257
  }
20185
20258
  }
20186
20259
  function C(S) {
20187
20260
  if (!Symbol.asyncIterator)
20188
20261
  throw new TypeError("Symbol.asyncIterator is not defined.");
20189
- var R, _ = S[Symbol.asyncIterator];
20190
- return _ ? _.call(S) : (S = v(S), R = {}, E("next"), E("throw"), E("return"), R[Symbol.asyncIterator] = function() {
20262
+ var R, O = S[Symbol.asyncIterator];
20263
+ return O ? O.call(S) : (S = v(S), R = {}, E("next"), E("throw"), E("return"), R[Symbol.asyncIterator] = function() {
20191
20264
  return this;
20192
20265
  }, R);
20193
20266
  function E(F) {
@@ -20215,28 +20288,28 @@ var __webpack_modules__ = { 37: function(t) {
20215
20288
  return S;
20216
20289
  var R = {};
20217
20290
  if (S != null)
20218
- for (var _ in S)
20219
- _ !== "default" && Object.prototype.hasOwnProperty.call(S, _) && d(R, S, _);
20291
+ for (var O in S)
20292
+ O !== "default" && Object.prototype.hasOwnProperty.call(S, O) && d(R, S, O);
20220
20293
  return N(R, S), R;
20221
20294
  }
20222
20295
  function U(S) {
20223
20296
  return S && S.__esModule ? S : { default: S };
20224
20297
  }
20225
- function G(S, R, _, E) {
20226
- if (_ === "a" && !E)
20298
+ function G(S, R, O, E) {
20299
+ if (O === "a" && !E)
20227
20300
  throw new TypeError("Private accessor was defined without a getter");
20228
20301
  if (typeof R == "function" ? S !== R || !E : !R.has(S))
20229
20302
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
20230
- return _ === "m" ? E : _ === "a" ? E.call(S) : E ? E.value : R.get(S);
20303
+ return O === "m" ? E : O === "a" ? E.call(S) : E ? E.value : R.get(S);
20231
20304
  }
20232
- function z(S, R, _, E, F) {
20305
+ function z(S, R, O, E, F) {
20233
20306
  if (E === "m")
20234
20307
  throw new TypeError("Private method is not writable");
20235
20308
  if (E === "a" && !F)
20236
20309
  throw new TypeError("Private accessor was defined without a setter");
20237
20310
  if (typeof R == "function" ? S !== R || !F : !R.has(S))
20238
20311
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
20239
- return E === "a" ? F.call(S, _) : F ? F.value = _ : R.set(S, _), _;
20312
+ return E === "a" ? F.call(S, O) : F ? F.value = O : R.set(S, O), O;
20240
20313
  }
20241
20314
  function k(S, R) {
20242
20315
  if (R === null || typeof R != "object" && typeof R != "function")
@@ -22385,9 +22458,9 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
22385
22458
  return f.slice(b, M);
22386
22459
  var h = f.length;
22387
22460
  M !== void 0 && (h = M);
22388
- for (var O = new Uint8Array(h - b), w = 0, C = b; C < h; C++)
22389
- O[w++] = f[C];
22390
- return O;
22461
+ for (var _ = new Uint8Array(h - b), w = 0, C = b; C < h; C++)
22462
+ _[w++] = f[C];
22463
+ return _;
22391
22464
  }
22392
22465
  g.decodeASCII = l, g.encodeASCII = function(f) {
22393
22466
  for (var b = new Uint8Array(f.length), M = 0; M !== f.length; ++M) {
@@ -22407,7 +22480,7 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
22407
22480
  return f.prototype.parse = function(b, M) {
22408
22481
  if (b.length === 0 && M)
22409
22482
  return [];
22410
- var h, O = [];
22483
+ var h, _ = [];
22411
22484
  if (this.buffer == null)
22412
22485
  this.buffer = b, this.position = 0;
22413
22486
  else if (this.position === this.buffer.byteLength)
@@ -22420,14 +22493,14 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
22420
22493
  }
22421
22494
  for (; ; ) {
22422
22495
  if (!m(this.buffer, this.position, 5))
22423
- return O;
22496
+ return _;
22424
22497
  var x = v(this.buffer, this.position, this.position + 5), U = new DataView(x.buffer, x.byteOffset, x.byteLength), G = d(U);
22425
22498
  if (!m(this.buffer, this.position, 5 + G))
22426
- return O;
22499
+ return _;
22427
22500
  var z = v(this.buffer, this.position + 5, this.position + 5 + G);
22428
22501
  if (this.position += 5 + G, c(U))
22429
- return O.push({ chunkType: o.TRAILERS, trailers: (h = z, new r.Metadata(l(h))) }), O;
22430
- O.push({ chunkType: o.MESSAGE, data: z });
22502
+ return _.push({ chunkType: o.TRAILERS, trailers: (h = z, new r.Metadata(l(h))) }), _;
22503
+ _.push({ chunkType: o.MESSAGE, data: z });
22431
22504
  }
22432
22505
  }, f;
22433
22506
  }();
@@ -22492,9 +22565,9 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
22492
22565
  this.props.debug && l.debug("onHeaders.gRPCStatus", M);
22493
22566
  var h = M && M >= 0 ? M : n.httpStatusToCode(b);
22494
22567
  this.props.debug && l.debug("onHeaders.code", h);
22495
- var O = f.get("grpc-message") || [];
22496
- if (this.props.debug && l.debug("onHeaders.gRPCMessage", O), this.rawOnHeaders(f), h !== n.Code.OK) {
22497
- var w = this.decodeGRPCStatus(O[0]);
22568
+ var _ = f.get("grpc-message") || [];
22569
+ if (this.props.debug && l.debug("onHeaders.gRPCMessage", _), this.rawOnHeaders(f), h !== n.Code.OK) {
22570
+ var w = this.decodeGRPCStatus(_[0]);
22498
22571
  this.rawOnError(h, w, f);
22499
22572
  }
22500
22573
  }
@@ -22511,8 +22584,8 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
22511
22584
  }
22512
22585
  M.forEach(function(h) {
22513
22586
  if (h.chunkType === r.ChunkType.MESSAGE) {
22514
- var O = b.methodDefinition.responseType.deserializeBinary(h.data);
22515
- b.rawOnMessage(O);
22587
+ var _ = b.methodDefinition.responseType.deserializeBinary(h.data);
22588
+ b.rawOnMessage(_);
22516
22589
  } else
22517
22590
  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)));
22518
22591
  });
@@ -22530,10 +22603,10 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
22530
22603
  } else {
22531
22604
  if (this.responseHeaders === void 0)
22532
22605
  return void this.rawOnError(n.Code.Unknown, "Response closed without headers");
22533
- var h = v(this.responseHeaders), O = this.responseHeaders.get("grpc-message");
22534
- if (this.props.debug && l.debug("grpc.headers only response ", h, O), h === null)
22606
+ var h = v(this.responseHeaders), _ = this.responseHeaders.get("grpc-message");
22607
+ if (this.props.debug && l.debug("grpc.headers only response ", h, _), h === null)
22535
22608
  return void this.rawOnEnd(n.Code.Unknown, "Response closed without grpc-status (Headers only)", this.responseHeaders);
22536
- var w = this.decodeGRPCStatus(O[0]);
22609
+ var w = this.decodeGRPCStatus(_[0]);
22537
22610
  this.rawOnEnd(h, w, this.responseHeaders);
22538
22611
  }
22539
22612
  }, y.prototype.decodeGRPCStatus = function(f) {
@@ -22546,10 +22619,10 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
22546
22619
  }
22547
22620
  }, y.prototype.rawOnEnd = function(f, b, M) {
22548
22621
  var h = this;
22549
- this.props.debug && l.debug("rawOnEnd", f, b, M), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(O) {
22622
+ this.props.debug && l.debug("rawOnEnd", f, b, M), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(_) {
22550
22623
  if (!h.closed)
22551
22624
  try {
22552
- O(f, b, M);
22625
+ _(f, b, M);
22553
22626
  } catch (w) {
22554
22627
  setTimeout(function() {
22555
22628
  throw w;
@@ -22568,10 +22641,10 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
22568
22641
  });
22569
22642
  }, y.prototype.rawOnError = function(f, b, M) {
22570
22643
  var h = this;
22571
- 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) {
22644
+ M === void 0 && (M = new o.Metadata()), this.props.debug && l.debug("rawOnError", f, b), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(_) {
22572
22645
  if (!h.closed)
22573
22646
  try {
22574
- O(f, b, M);
22647
+ _(f, b, M);
22575
22648
  } catch (w) {
22576
22649
  setTimeout(function() {
22577
22650
  throw w;
@@ -22754,8 +22827,8 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
22754
22827
  return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(M, h) {
22755
22828
  M.__proto__ = h;
22756
22829
  } || function(M, h) {
22757
- for (var O in h)
22758
- Object.prototype.hasOwnProperty.call(h, O) && (M[O] = h[O]);
22830
+ for (var _ in h)
22831
+ Object.prototype.hasOwnProperty.call(h, _) && (M[_] = h[_]);
22759
22832
  })(f, b);
22760
22833
  }, function(f, b) {
22761
22834
  function M() {
@@ -22795,10 +22868,10 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
22795
22868
  var M = this;
22796
22869
  this.metadata = b;
22797
22870
  var h = new XMLHttpRequest();
22798
- this.xhr = h, h.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(O, w) {
22799
- h.setRequestHeader(O, w.join(", "));
22800
- }), 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) {
22801
- M.options.debug && l.debug("XHR.error", O), M.options.onEnd(O.error);
22871
+ this.xhr = h, h.open("POST", this.options.url), this.configureXhr(), this.metadata.forEach(function(_, w) {
22872
+ h.setRequestHeader(_, w.join(", "));
22873
+ }), 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(_) {
22874
+ M.options.debug && l.debug("XHR.error", _), M.options.onEnd(_.error);
22802
22875
  });
22803
22876
  }, f.prototype.configureXhr = function() {
22804
22877
  this.xhr.responseType = "text", this.xhr.overrideMimeType("text/plain; charset=x-user-defined");
@@ -22828,8 +22901,8 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
22828
22901
  }
22829
22902
  function y(f) {
22830
22903
  for (var b = new Uint8Array(f.length), M = 0, h = 0; h < f.length; h++) {
22831
- var O = String.prototype.codePointAt ? f.codePointAt(h) : v(f, h);
22832
- b[M++] = 255 & O;
22904
+ var _ = String.prototype.codePointAt ? f.codePointAt(h) : v(f, h);
22905
+ b[M++] = 255 & _;
22833
22906
  }
22834
22907
  return b;
22835
22908
  }
@@ -22896,8 +22969,8 @@ var __webpack_exports__dialDirect = __webpack_exports__.ry, __webpack_exports__d
22896
22969
  }, start: function(b) {
22897
22970
  (m = new WebSocket(v, ["grpc-websockets"])).binaryType = "arraybuffer", m.onopen = function() {
22898
22971
  var M;
22899
- d.debug && r.debug("websocketRequest.onopen"), m.send((M = "", b.forEach(function(h, O) {
22900
- M += h + ": " + O.join(", ") + `\r
22972
+ d.debug && r.debug("websocketRequest.onopen"), m.send((M = "", b.forEach(function(h, _) {
22973
+ M += h + ": " + _.join(", ") + `\r
22901
22974
  `;
22902
22975
  }), n.encodeASCII(M))), y.forEach(function(h) {
22903
22976
  f(h);
@@ -29385,7 +29458,7 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
29385
29458
  var g = annotations_pb;
29386
29459
  s.object.extend(proto, g);
29387
29460
  var p = struct_pb;
29388
- s.object.extend(proto, p), s.exportSymbol("proto.viam.service.motion.v1.CollisionSpecification", null, i), s.exportSymbol("proto.viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions", null, i), s.exportSymbol("proto.viam.service.motion.v1.Constraints", null, i), s.exportSymbol("proto.viam.service.motion.v1.GetPoseRequest", null, i), s.exportSymbol("proto.viam.service.motion.v1.GetPoseResponse", null, i), s.exportSymbol("proto.viam.service.motion.v1.LinearConstraint", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveOnMapRequest", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveOnMapResponse", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveRequest", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveResponse", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveSingleComponentRequest", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveSingleComponentResponse", null, i), s.exportSymbol("proto.viam.service.motion.v1.OrientationConstraint", null, i), proto.viam.service.motion.v1.MoveRequest = function(o) {
29461
+ s.object.extend(proto, p), s.exportSymbol("proto.viam.service.motion.v1.CollisionSpecification", null, i), s.exportSymbol("proto.viam.service.motion.v1.CollisionSpecification.AllowedFrameCollisions", null, i), s.exportSymbol("proto.viam.service.motion.v1.Constraints", null, i), s.exportSymbol("proto.viam.service.motion.v1.GetPoseRequest", null, i), s.exportSymbol("proto.viam.service.motion.v1.GetPoseResponse", null, i), s.exportSymbol("proto.viam.service.motion.v1.LinearConstraint", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveOnGlobeRequest", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveOnGlobeResponse", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveOnMapRequest", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveOnMapResponse", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveRequest", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveResponse", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveSingleComponentRequest", null, i), s.exportSymbol("proto.viam.service.motion.v1.MoveSingleComponentResponse", null, i), s.exportSymbol("proto.viam.service.motion.v1.OrientationConstraint", null, i), proto.viam.service.motion.v1.MoveRequest = function(o) {
29389
29462
  e.Message.initialize(this, o, 0, -1, null, null);
29390
29463
  }, s.inherits(proto.viam.service.motion.v1.MoveRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveRequest.displayName = "proto.viam.service.motion.v1.MoveRequest"), proto.viam.service.motion.v1.MoveResponse = function(o) {
29391
29464
  e.Message.initialize(this, o, 0, -1, null, null);
@@ -29393,7 +29466,11 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
29393
29466
  e.Message.initialize(this, o, 0, -1, null, null);
29394
29467
  }, s.inherits(proto.viam.service.motion.v1.MoveOnMapRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveOnMapRequest.displayName = "proto.viam.service.motion.v1.MoveOnMapRequest"), proto.viam.service.motion.v1.MoveOnMapResponse = function(o) {
29395
29468
  e.Message.initialize(this, o, 0, -1, null, null);
29396
- }, s.inherits(proto.viam.service.motion.v1.MoveOnMapResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveOnMapResponse.displayName = "proto.viam.service.motion.v1.MoveOnMapResponse"), proto.viam.service.motion.v1.MoveSingleComponentRequest = function(o) {
29469
+ }, s.inherits(proto.viam.service.motion.v1.MoveOnMapResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveOnMapResponse.displayName = "proto.viam.service.motion.v1.MoveOnMapResponse"), proto.viam.service.motion.v1.MoveOnGlobeRequest = function(o) {
29470
+ e.Message.initialize(this, o, 0, -1, proto.viam.service.motion.v1.MoveOnGlobeRequest.repeatedFields_, null);
29471
+ }, s.inherits(proto.viam.service.motion.v1.MoveOnGlobeRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveOnGlobeRequest.displayName = "proto.viam.service.motion.v1.MoveOnGlobeRequest"), proto.viam.service.motion.v1.MoveOnGlobeResponse = function(o) {
29472
+ e.Message.initialize(this, o, 0, -1, null, null);
29473
+ }, s.inherits(proto.viam.service.motion.v1.MoveOnGlobeResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveOnGlobeResponse.displayName = "proto.viam.service.motion.v1.MoveOnGlobeResponse"), proto.viam.service.motion.v1.MoveSingleComponentRequest = function(o) {
29397
29474
  e.Message.initialize(this, o, 0, -1, null, null);
29398
29475
  }, s.inherits(proto.viam.service.motion.v1.MoveSingleComponentRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.motion.v1.MoveSingleComponentRequest.displayName = "proto.viam.service.motion.v1.MoveSingleComponentRequest"), proto.viam.service.motion.v1.MoveSingleComponentResponse = function(o) {
29399
29476
  e.Message.initialize(this, o, 0, -1, null, null);
@@ -29763,6 +29840,265 @@ var InputControllerServiceClient_1 = InputControllerServiceClient, motion_pb = {
29763
29840
  );
29764
29841
  }, proto.viam.service.motion.v1.MoveOnMapResponse.prototype.setSuccess = function(o) {
29765
29842
  return e.Message.setProto3BooleanField(this, 1, o);
29843
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.repeatedFields_ = [6], e.Message.GENERATE_TO_OBJECT && (proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.toObject = function(o) {
29844
+ return proto.viam.service.motion.v1.MoveOnGlobeRequest.toObject(o, this);
29845
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.toObject = function(o, r) {
29846
+ var n, l = {
29847
+ name: e.Message.getFieldWithDefault(r, 1, ""),
29848
+ destination: (n = r.getDestination()) && u.GeoPoint.toObject(o, n),
29849
+ heading: e.Message.getFloatingPointFieldWithDefault(r, 3, 0),
29850
+ componentName: (n = r.getComponentName()) && u.ResourceName.toObject(o, n),
29851
+ movementSensorName: (n = r.getMovementSensorName()) && u.ResourceName.toObject(o, n),
29852
+ obstaclesList: e.Message.toObjectList(
29853
+ r.getObstaclesList(),
29854
+ u.GeoObstacle.toObject,
29855
+ o
29856
+ ),
29857
+ linearMetersPerSec: e.Message.getFloatingPointFieldWithDefault(r, 7, 0),
29858
+ angularDegPerSec: e.Message.getFloatingPointFieldWithDefault(r, 8, 0),
29859
+ extra: (n = r.getExtra()) && p.Struct.toObject(o, n)
29860
+ };
29861
+ return o && (l.$jspbMessageInstance = r), l;
29862
+ }), proto.viam.service.motion.v1.MoveOnGlobeRequest.deserializeBinary = function(o) {
29863
+ var r = new e.BinaryReader(o), n = new proto.viam.service.motion.v1.MoveOnGlobeRequest();
29864
+ return proto.viam.service.motion.v1.MoveOnGlobeRequest.deserializeBinaryFromReader(n, r);
29865
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.deserializeBinaryFromReader = function(o, r) {
29866
+ for (; r.nextField() && !r.isEndGroup(); ) {
29867
+ var n = r.getFieldNumber();
29868
+ switch (n) {
29869
+ case 1:
29870
+ var l = (
29871
+ /** @type {string} */
29872
+ r.readString()
29873
+ );
29874
+ o.setName(l);
29875
+ break;
29876
+ case 2:
29877
+ var l = new u.GeoPoint();
29878
+ r.readMessage(l, u.GeoPoint.deserializeBinaryFromReader), o.setDestination(l);
29879
+ break;
29880
+ case 3:
29881
+ var l = (
29882
+ /** @type {number} */
29883
+ r.readDouble()
29884
+ );
29885
+ o.setHeading(l);
29886
+ break;
29887
+ case 4:
29888
+ var l = new u.ResourceName();
29889
+ r.readMessage(l, u.ResourceName.deserializeBinaryFromReader), o.setComponentName(l);
29890
+ break;
29891
+ case 5:
29892
+ var l = new u.ResourceName();
29893
+ r.readMessage(l, u.ResourceName.deserializeBinaryFromReader), o.setMovementSensorName(l);
29894
+ break;
29895
+ case 6:
29896
+ var l = new u.GeoObstacle();
29897
+ r.readMessage(l, u.GeoObstacle.deserializeBinaryFromReader), o.addObstacles(l);
29898
+ break;
29899
+ case 7:
29900
+ var l = (
29901
+ /** @type {number} */
29902
+ r.readFloat()
29903
+ );
29904
+ o.setLinearMetersPerSec(l);
29905
+ break;
29906
+ case 8:
29907
+ var l = (
29908
+ /** @type {number} */
29909
+ r.readFloat()
29910
+ );
29911
+ o.setAngularDegPerSec(l);
29912
+ break;
29913
+ case 99:
29914
+ var l = new p.Struct();
29915
+ r.readMessage(l, p.Struct.deserializeBinaryFromReader), o.setExtra(l);
29916
+ break;
29917
+ default:
29918
+ r.skipField();
29919
+ break;
29920
+ }
29921
+ }
29922
+ return o;
29923
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.serializeBinary = function() {
29924
+ var o = new e.BinaryWriter();
29925
+ return proto.viam.service.motion.v1.MoveOnGlobeRequest.serializeBinaryToWriter(this, o), o.getResultBuffer();
29926
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.serializeBinaryToWriter = function(o, r) {
29927
+ var n = void 0;
29928
+ n = o.getName(), n.length > 0 && r.writeString(
29929
+ 1,
29930
+ n
29931
+ ), n = o.getDestination(), n != null && r.writeMessage(
29932
+ 2,
29933
+ n,
29934
+ u.GeoPoint.serializeBinaryToWriter
29935
+ ), n = /** @type {number} */
29936
+ e.Message.getField(o, 3), n != null && r.writeDouble(
29937
+ 3,
29938
+ n
29939
+ ), n = o.getComponentName(), n != null && r.writeMessage(
29940
+ 4,
29941
+ n,
29942
+ u.ResourceName.serializeBinaryToWriter
29943
+ ), n = o.getMovementSensorName(), n != null && r.writeMessage(
29944
+ 5,
29945
+ n,
29946
+ u.ResourceName.serializeBinaryToWriter
29947
+ ), n = o.getObstaclesList(), n.length > 0 && r.writeRepeatedMessage(
29948
+ 6,
29949
+ n,
29950
+ u.GeoObstacle.serializeBinaryToWriter
29951
+ ), n = /** @type {number} */
29952
+ e.Message.getField(o, 7), n != null && r.writeFloat(
29953
+ 7,
29954
+ n
29955
+ ), n = /** @type {number} */
29956
+ e.Message.getField(o, 8), n != null && r.writeFloat(
29957
+ 8,
29958
+ n
29959
+ ), n = o.getExtra(), n != null && r.writeMessage(
29960
+ 99,
29961
+ n,
29962
+ p.Struct.serializeBinaryToWriter
29963
+ );
29964
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getName = function() {
29965
+ return (
29966
+ /** @type {string} */
29967
+ e.Message.getFieldWithDefault(this, 1, "")
29968
+ );
29969
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setName = function(o) {
29970
+ return e.Message.setProto3StringField(this, 1, o);
29971
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getDestination = function() {
29972
+ return (
29973
+ /** @type{?proto.viam.common.v1.GeoPoint} */
29974
+ e.Message.getWrapperField(this, u.GeoPoint, 2)
29975
+ );
29976
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setDestination = function(o) {
29977
+ return e.Message.setWrapperField(this, 2, o);
29978
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.clearDestination = function() {
29979
+ return this.setDestination(void 0);
29980
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.hasDestination = function() {
29981
+ return e.Message.getField(this, 2) != null;
29982
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getHeading = function() {
29983
+ return (
29984
+ /** @type {number} */
29985
+ e.Message.getFloatingPointFieldWithDefault(this, 3, 0)
29986
+ );
29987
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setHeading = function(o) {
29988
+ return e.Message.setField(this, 3, o);
29989
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.clearHeading = function() {
29990
+ return e.Message.setField(this, 3, void 0);
29991
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.hasHeading = function() {
29992
+ return e.Message.getField(this, 3) != null;
29993
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getComponentName = function() {
29994
+ return (
29995
+ /** @type{?proto.viam.common.v1.ResourceName} */
29996
+ e.Message.getWrapperField(this, u.ResourceName, 4)
29997
+ );
29998
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setComponentName = function(o) {
29999
+ return e.Message.setWrapperField(this, 4, o);
30000
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.clearComponentName = function() {
30001
+ return this.setComponentName(void 0);
30002
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.hasComponentName = function() {
30003
+ return e.Message.getField(this, 4) != null;
30004
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getMovementSensorName = function() {
30005
+ return (
30006
+ /** @type{?proto.viam.common.v1.ResourceName} */
30007
+ e.Message.getWrapperField(this, u.ResourceName, 5)
30008
+ );
30009
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setMovementSensorName = function(o) {
30010
+ return e.Message.setWrapperField(this, 5, o);
30011
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.clearMovementSensorName = function() {
30012
+ return this.setMovementSensorName(void 0);
30013
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.hasMovementSensorName = function() {
30014
+ return e.Message.getField(this, 5) != null;
30015
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getObstaclesList = function() {
30016
+ return (
30017
+ /** @type{!Array<!proto.viam.common.v1.GeoObstacle>} */
30018
+ e.Message.getRepeatedWrapperField(this, u.GeoObstacle, 6)
30019
+ );
30020
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setObstaclesList = function(o) {
30021
+ return e.Message.setRepeatedWrapperField(this, 6, o);
30022
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.addObstacles = function(o, r) {
30023
+ return e.Message.addToRepeatedWrapperField(this, 6, o, proto.viam.common.v1.GeoObstacle, r);
30024
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.clearObstaclesList = function() {
30025
+ return this.setObstaclesList([]);
30026
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getLinearMetersPerSec = function() {
30027
+ return (
30028
+ /** @type {number} */
30029
+ e.Message.getFloatingPointFieldWithDefault(this, 7, 0)
30030
+ );
30031
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setLinearMetersPerSec = function(o) {
30032
+ return e.Message.setField(this, 7, o);
30033
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.clearLinearMetersPerSec = function() {
30034
+ return e.Message.setField(this, 7, void 0);
30035
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.hasLinearMetersPerSec = function() {
30036
+ return e.Message.getField(this, 7) != null;
30037
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getAngularDegPerSec = function() {
30038
+ return (
30039
+ /** @type {number} */
30040
+ e.Message.getFloatingPointFieldWithDefault(this, 8, 0)
30041
+ );
30042
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setAngularDegPerSec = function(o) {
30043
+ return e.Message.setField(this, 8, o);
30044
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.clearAngularDegPerSec = function() {
30045
+ return e.Message.setField(this, 8, void 0);
30046
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.hasAngularDegPerSec = function() {
30047
+ return e.Message.getField(this, 8) != null;
30048
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.getExtra = function() {
30049
+ return (
30050
+ /** @type{?proto.google.protobuf.Struct} */
30051
+ e.Message.getWrapperField(this, p.Struct, 99)
30052
+ );
30053
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.setExtra = function(o) {
30054
+ return e.Message.setWrapperField(this, 99, o);
30055
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.clearExtra = function() {
30056
+ return this.setExtra(void 0);
30057
+ }, proto.viam.service.motion.v1.MoveOnGlobeRequest.prototype.hasExtra = function() {
30058
+ return e.Message.getField(this, 99) != null;
30059
+ }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.motion.v1.MoveOnGlobeResponse.prototype.toObject = function(o) {
30060
+ return proto.viam.service.motion.v1.MoveOnGlobeResponse.toObject(o, this);
30061
+ }, proto.viam.service.motion.v1.MoveOnGlobeResponse.toObject = function(o, r) {
30062
+ var n = {
30063
+ success: e.Message.getBooleanFieldWithDefault(r, 1, !1)
30064
+ };
30065
+ return o && (n.$jspbMessageInstance = r), n;
30066
+ }), proto.viam.service.motion.v1.MoveOnGlobeResponse.deserializeBinary = function(o) {
30067
+ var r = new e.BinaryReader(o), n = new proto.viam.service.motion.v1.MoveOnGlobeResponse();
30068
+ return proto.viam.service.motion.v1.MoveOnGlobeResponse.deserializeBinaryFromReader(n, r);
30069
+ }, proto.viam.service.motion.v1.MoveOnGlobeResponse.deserializeBinaryFromReader = function(o, r) {
30070
+ for (; r.nextField() && !r.isEndGroup(); ) {
30071
+ var n = r.getFieldNumber();
30072
+ switch (n) {
30073
+ case 1:
30074
+ var l = (
30075
+ /** @type {boolean} */
30076
+ r.readBool()
30077
+ );
30078
+ o.setSuccess(l);
30079
+ break;
30080
+ default:
30081
+ r.skipField();
30082
+ break;
30083
+ }
30084
+ }
30085
+ return o;
30086
+ }, proto.viam.service.motion.v1.MoveOnGlobeResponse.prototype.serializeBinary = function() {
30087
+ var o = new e.BinaryWriter();
30088
+ return proto.viam.service.motion.v1.MoveOnGlobeResponse.serializeBinaryToWriter(this, o), o.getResultBuffer();
30089
+ }, proto.viam.service.motion.v1.MoveOnGlobeResponse.serializeBinaryToWriter = function(o, r) {
30090
+ var n = void 0;
30091
+ n = o.getSuccess(), n && r.writeBool(
30092
+ 1,
30093
+ n
30094
+ );
30095
+ }, proto.viam.service.motion.v1.MoveOnGlobeResponse.prototype.getSuccess = function() {
30096
+ return (
30097
+ /** @type {boolean} */
30098
+ e.Message.getBooleanFieldWithDefault(this, 1, !1)
30099
+ );
30100
+ }, proto.viam.service.motion.v1.MoveOnGlobeResponse.prototype.setSuccess = function(o) {
30101
+ return e.Message.setProto3BooleanField(this, 1, o);
29766
30102
  }, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.motion.v1.MoveSingleComponentRequest.prototype.toObject = function(o) {
29767
30103
  return proto.viam.service.motion.v1.MoveSingleComponentRequest.toObject(o, this);
29768
30104
  }, proto.viam.service.motion.v1.MoveSingleComponentRequest.toObject = function(o, r) {
@@ -30448,6 +30784,14 @@ MotionService.MoveOnMap = {
30448
30784
  requestType: service_motion_v1_motion_pb.MoveOnMapRequest,
30449
30785
  responseType: service_motion_v1_motion_pb.MoveOnMapResponse
30450
30786
  };
30787
+ MotionService.MoveOnGlobe = {
30788
+ methodName: "MoveOnGlobe",
30789
+ service: MotionService,
30790
+ requestStream: !1,
30791
+ responseStream: !1,
30792
+ requestType: service_motion_v1_motion_pb.MoveOnGlobeRequest,
30793
+ responseType: service_motion_v1_motion_pb.MoveOnGlobeResponse
30794
+ };
30451
30795
  MotionService.MoveSingleComponent = {
30452
30796
  methodName: "MoveSingleComponent",
30453
30797
  service: MotionService,
@@ -30521,6 +30865,29 @@ MotionServiceClient.prototype.moveOnMap = function t(e, s, i) {
30521
30865
  }
30522
30866
  };
30523
30867
  };
30868
+ MotionServiceClient.prototype.moveOnGlobe = function t(e, s, i) {
30869
+ arguments.length === 2 && (i = arguments[1]);
30870
+ var u = grpc$c.unary(MotionService.MoveOnGlobe, {
30871
+ request: e,
30872
+ host: this.serviceHost,
30873
+ metadata: s,
30874
+ transport: this.options.transport,
30875
+ debug: this.options.debug,
30876
+ onEnd: function(g) {
30877
+ if (i)
30878
+ if (g.status !== grpc$c.Code.OK) {
30879
+ var p = new Error(g.statusMessage);
30880
+ p.code = g.status, p.metadata = g.trailers, i(p, null);
30881
+ } else
30882
+ i(null, g.message);
30883
+ }
30884
+ });
30885
+ return {
30886
+ cancel: function() {
30887
+ i = null, u.close();
30888
+ }
30889
+ };
30890
+ };
30524
30891
  MotionServiceClient.prototype.moveSingleComponent = function t(e, s, i) {
30525
30892
  arguments.length === 2 && (i = arguments[1]);
30526
30893
  var u = grpc$c.unary(MotionService.MoveSingleComponent, {
@@ -40781,7 +41148,7 @@ class ServoClient {
40781
41148
  return doCommandFromClient(s, this.name, e, this.options);
40782
41149
  }
40783
41150
  }
40784
- const version = "0.0.55";
41151
+ const version = "0.0.56";
40785
41152
  export {
40786
41153
  ArmClient,
40787
41154
  BaseClient,