@flowengage/react-chatbot 1.0.1 → 1.0.2

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.
@@ -3839,7 +3839,8 @@ function Ln({ input: e, setInput: t, onSubmit: n, isConversationEnded: r, callUi
3839
3839
  cursor: "pointer"
3840
3840
  },
3841
3841
  onClick: a,
3842
- title: "Start voice call",
3842
+ title: "Voice assistant",
3843
+ "aria-label": "Voice assistant",
3843
3844
  disabled: r || i,
3844
3845
  onMouseEnter: (e) => {
3845
3846
  e.currentTarget.style.background = "#f3f4f6";
@@ -3847,7 +3848,10 @@ function Ln({ input: e, setInput: t, onSubmit: n, isConversationEnded: r, callUi
3847
3848
  onMouseLeave: (e) => {
3848
3849
  e.currentTarget.style.background = "transparent";
3849
3850
  },
3850
- children: /* @__PURE__ */ l(xn, {})
3851
+ children: /* @__PURE__ */ l(_n, {
3852
+ size: 18,
3853
+ color: "currentColor"
3854
+ })
3851
3855
  }),
3852
3856
  /* @__PURE__ */ l("input", {
3853
3857
  style: {
@@ -4493,11 +4497,11 @@ function wr(e, t) {
4493
4497
  default: return t == 0;
4494
4498
  }
4495
4499
  }
4496
- var Tr;
4500
+ var A;
4497
4501
  (function(e) {
4498
4502
  e[e.Varint = 0] = "Varint", e[e.Bit64 = 1] = "Bit64", e[e.LengthDelimited = 2] = "LengthDelimited", e[e.StartGroup = 3] = "StartGroup", e[e.EndGroup = 4] = "EndGroup", e[e.Bit32 = 5] = "Bit32";
4499
- })(Tr ||= {});
4500
- var Er = class {
4503
+ })(A ||= {});
4504
+ var Tr = class {
4501
4505
  constructor(e) {
4502
4506
  this.stack = [], this.textEncoder = e ?? new TextEncoder(), this.chunks = [], this.buf = [];
4503
4507
  }
@@ -4585,7 +4589,7 @@ var Er = class {
4585
4589
  let t = O.uEnc(e);
4586
4590
  return lr(t.lo, t.hi, this.buf), this;
4587
4591
  }
4588
- }, Dr = class {
4592
+ }, Er = class {
4589
4593
  constructor(e, t) {
4590
4594
  this.varint64 = cr, this.uint32 = yr, this.buf = e, this.len = e.length, this.pos = 0, this.view = new DataView(e.buffer, e.byteOffset, e.byteLength), this.textDecoder = t ?? new TextDecoder();
4591
4595
  }
@@ -4597,21 +4601,21 @@ var Er = class {
4597
4601
  skip(e, t) {
4598
4602
  let n = this.pos;
4599
4603
  switch (e) {
4600
- case Tr.Varint:
4604
+ case A.Varint:
4601
4605
  for (; this.buf[this.pos++] & 128;);
4602
4606
  break;
4603
- case Tr.Bit64: this.pos += 4;
4604
- case Tr.Bit32:
4607
+ case A.Bit64: this.pos += 4;
4608
+ case A.Bit32:
4605
4609
  this.pos += 4;
4606
4610
  break;
4607
- case Tr.LengthDelimited:
4611
+ case A.LengthDelimited:
4608
4612
  let n = this.uint32();
4609
4613
  this.pos += n;
4610
4614
  break;
4611
- case Tr.StartGroup:
4615
+ case A.StartGroup:
4612
4616
  for (;;) {
4613
4617
  let [e, n] = this.tag();
4614
- if (n === Tr.EndGroup) {
4618
+ if (n === A.EndGroup) {
4615
4619
  if (t !== void 0 && e !== t) throw Error("invalid end group tag");
4616
4620
  break;
4617
4621
  }
@@ -4672,7 +4676,7 @@ var Er = class {
4672
4676
  return this.textDecoder.decode(this.bytes());
4673
4677
  }
4674
4678
  };
4675
- function Or(e, t, n, r) {
4679
+ function Dr(e, t, n, r) {
4676
4680
  let i;
4677
4681
  return {
4678
4682
  typeName: t,
@@ -4687,11 +4691,11 @@ function Or(e, t, n, r) {
4687
4691
  runtime: e
4688
4692
  };
4689
4693
  }
4690
- function kr(e) {
4694
+ function Or(e) {
4691
4695
  let t = e.field.localName, n = Object.create(null);
4692
- return n[t] = Ar(e), [n, () => n[t]];
4696
+ return n[t] = kr(e), [n, () => n[t]];
4693
4697
  }
4694
- function Ar(e) {
4698
+ function kr(e) {
4695
4699
  let t = e.field;
4696
4700
  if (t.repeated) return [];
4697
4701
  if (t.default !== void 0) return t.default;
@@ -4704,23 +4708,23 @@ function Ar(e) {
4704
4708
  case "map": throw "map fields are not allowed to be extensions";
4705
4709
  }
4706
4710
  }
4707
- function jr(e, t) {
4711
+ function Ar(e, t) {
4708
4712
  if (!t.repeated && (t.kind == "enum" || t.kind == "scalar")) {
4709
4713
  for (let n = e.length - 1; n >= 0; --n) if (e[n].no == t.no) return [e[n]];
4710
4714
  return [];
4711
4715
  }
4712
4716
  return e.filter((e) => e.no === t.no);
4713
4717
  }
4714
- var Mr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), Nr = [];
4715
- for (let e = 0; e < Mr.length; e++) Nr[Mr[e].charCodeAt(0)] = e;
4716
- Nr[45] = Mr.indexOf("+"), Nr[95] = Mr.indexOf("/");
4717
- var Pr = {
4718
+ var jr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), Mr = [];
4719
+ for (let e = 0; e < jr.length; e++) Mr[jr[e].charCodeAt(0)] = e;
4720
+ Mr[45] = jr.indexOf("+"), Mr[95] = jr.indexOf("/");
4721
+ var Nr = {
4718
4722
  dec(e) {
4719
4723
  let t = e.length * 3 / 4;
4720
4724
  e[e.length - 2] == "=" ? t -= 2 : e[e.length - 1] == "=" && --t;
4721
4725
  let n = new Uint8Array(t), r = 0, i = 0, a, o = 0;
4722
4726
  for (let t = 0; t < e.length; t++) {
4723
- if (a = Nr[e.charCodeAt(t)], a === void 0) switch (e[t]) {
4727
+ if (a = Mr[e.charCodeAt(t)], a === void 0) switch (e[t]) {
4724
4728
  case "=": i = 0;
4725
4729
  case "\n":
4726
4730
  case "\r":
@@ -4750,28 +4754,28 @@ var Pr = {
4750
4754
  let t = "", n = 0, r, i = 0;
4751
4755
  for (let a = 0; a < e.length; a++) switch (r = e[a], n) {
4752
4756
  case 0:
4753
- t += Mr[r >> 2], i = (r & 3) << 4, n = 1;
4757
+ t += jr[r >> 2], i = (r & 3) << 4, n = 1;
4754
4758
  break;
4755
4759
  case 1:
4756
- t += Mr[i | r >> 4], i = (r & 15) << 2, n = 2;
4760
+ t += jr[i | r >> 4], i = (r & 15) << 2, n = 2;
4757
4761
  break;
4758
4762
  case 2:
4759
- t += Mr[i | r >> 6], t += Mr[r & 63], n = 0;
4763
+ t += jr[i | r >> 6], t += jr[r & 63], n = 0;
4760
4764
  break;
4761
4765
  }
4762
- return n && (t += Mr[i], t += "=", n == 1 && (t += "=")), t;
4766
+ return n && (t += jr[i], t += "=", n == 1 && (t += "=")), t;
4763
4767
  }
4764
4768
  };
4765
- function Fr(e, t, n) {
4766
- Rr(t, e);
4767
- let r = t.runtime.bin.makeReadOptions(n), i = jr(e.getType().runtime.bin.listUnknownFields(e), t.field), [a, o] = kr(t);
4769
+ function Pr(e, t, n) {
4770
+ Lr(t, e);
4771
+ let r = t.runtime.bin.makeReadOptions(n), i = Ar(e.getType().runtime.bin.listUnknownFields(e), t.field), [a, o] = Or(t);
4768
4772
  for (let e of i) t.runtime.bin.readField(a, r.readerFactory(e.data), t.field, e.wireType, r);
4769
4773
  return o();
4770
4774
  }
4771
- function Ir(e, t, n, r) {
4772
- Rr(t, e);
4775
+ function Fr(e, t, n, r) {
4776
+ Lr(t, e);
4773
4777
  let i = t.runtime.bin.makeReadOptions(r), a = t.runtime.bin.makeWriteOptions(r);
4774
- if (Lr(e, t)) {
4778
+ if (Ir(e, t)) {
4775
4779
  let n = e.getType().runtime.bin.listUnknownFields(e).filter((e) => e.no != t.field.no);
4776
4780
  e.getType().runtime.bin.discardUnknownFields(e);
4777
4781
  for (let t of n) e.getType().runtime.bin.onUnknownField(e, t.no, t.wireType, t.data);
@@ -4784,14 +4788,14 @@ function Ir(e, t, n, r) {
4784
4788
  e.getType().runtime.bin.onUnknownField(e, t, n, r);
4785
4789
  }
4786
4790
  }
4787
- function Lr(e, t) {
4791
+ function Ir(e, t) {
4788
4792
  let n = e.getType();
4789
4793
  return t.extendee.typeName === n.typeName && !!n.runtime.bin.listUnknownFields(e).find((e) => e.no == t.field.no);
4790
4794
  }
4791
- function Rr(e, t) {
4795
+ function Lr(e, t) {
4792
4796
  D(e.extendee.typeName == t.getType().typeName, `extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`);
4793
4797
  }
4794
- function zr(e, t) {
4798
+ function Rr(e, t) {
4795
4799
  let n = e.localName;
4796
4800
  if (e.repeated) return t[n].length > 0;
4797
4801
  if (e.oneof) return t[e.oneof.localName].case === n;
@@ -4802,7 +4806,7 @@ function zr(e, t) {
4802
4806
  case "map": return Object.keys(t[n]).length > 0;
4803
4807
  }
4804
4808
  }
4805
- function Br(e, t) {
4809
+ function zr(e, t) {
4806
4810
  let n = e.localName, r = !e.opt && !e.req;
4807
4811
  if (e.repeated) t[n] = [];
4808
4812
  else if (e.oneof) t[e.oneof.localName] = { case: void 0 };
@@ -4821,34 +4825,34 @@ function Br(e, t) {
4821
4825
  break;
4822
4826
  }
4823
4827
  }
4824
- function Vr(e, t) {
4828
+ function Br(e, t) {
4825
4829
  if (typeof e != "object" || !e || !Object.getOwnPropertyNames(or.prototype).every((t) => t in e && typeof e[t] == "function")) return !1;
4826
4830
  let n = e.getType();
4827
4831
  return n === null || typeof n != "function" || !("typeName" in n) || typeof n.typeName != "string" ? !1 : t === void 0 ? !0 : n.typeName == t.typeName;
4828
4832
  }
4829
- function Hr(e, t) {
4830
- return Vr(t) || !e.fieldWrapper ? t : e.fieldWrapper.wrapField(t);
4833
+ function Vr(e, t) {
4834
+ return Br(t) || !e.fieldWrapper ? t : e.fieldWrapper.wrapField(t);
4831
4835
  }
4832
4836
  k.DOUBLE, k.FLOAT, k.INT64, k.UINT64, k.INT32, k.UINT32, k.BOOL, k.STRING, k.BYTES;
4833
- var Ur = { ignoreUnknownFields: !1 }, Wr = {
4837
+ var Hr = { ignoreUnknownFields: !1 }, Ur = {
4834
4838
  emitDefaultValues: !1,
4835
4839
  enumAsInteger: !1,
4836
4840
  useProtoFieldName: !1,
4837
4841
  prettySpaces: 0
4838
4842
  };
4843
+ function Wr(e) {
4844
+ return e ? Object.assign(Object.assign({}, Hr), e) : Hr;
4845
+ }
4839
4846
  function Gr(e) {
4840
4847
  return e ? Object.assign(Object.assign({}, Ur), e) : Ur;
4841
4848
  }
4842
- function Kr(e) {
4843
- return e ? Object.assign(Object.assign({}, Wr), e) : Wr;
4844
- }
4845
- var qr = Symbol(), Jr = Symbol();
4846
- function Yr() {
4849
+ var Kr = Symbol(), qr = Symbol();
4850
+ function Jr() {
4847
4851
  return {
4848
- makeReadOptions: Gr,
4849
- makeWriteOptions: Kr,
4852
+ makeReadOptions: Wr,
4853
+ makeWriteOptions: Gr,
4850
4854
  readMessage(e, t, n, r) {
4851
- if (t == null || Array.isArray(t) || typeof t != "object") throw Error(`cannot decode message ${e.typeName} from JSON: ${Xr(t)}`);
4855
+ if (t == null || Array.isArray(t) || typeof t != "object") throw Error(`cannot decode message ${e.typeName} from JSON: ${Yr(t)}`);
4852
4856
  r ??= new e();
4853
4857
  let i = /* @__PURE__ */ new Map(), a = n.typeRegistry;
4854
4858
  for (let [o, s] of Object.entries(t)) {
@@ -4860,15 +4864,15 @@ function Yr() {
4860
4864
  if (n !== void 0) throw Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${t.oneof.name}" present: "${n}", "${o}"`);
4861
4865
  i.set(t.oneof, o);
4862
4866
  }
4863
- Zr(r, s, t, n, e);
4867
+ Xr(r, s, t, n, e);
4864
4868
  } else {
4865
4869
  let t = !1;
4866
4870
  if (a?.findExtension && o.startsWith("[") && o.endsWith("]")) {
4867
4871
  let i = a.findExtension(o.substring(1, o.length - 1));
4868
4872
  if (i && i.extendee.typeName == e.typeName) {
4869
4873
  t = !0;
4870
- let [e, a] = kr(i);
4871
- Zr(e, s, i.field, n, i), Ir(r, i, a(), n);
4874
+ let [e, a] = Or(i);
4875
+ Xr(e, s, i.field, n, i), Fr(r, i, a(), n);
4872
4876
  }
4873
4877
  }
4874
4878
  if (!t && !n.ignoreUnknownFields) throw Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`);
@@ -4880,18 +4884,18 @@ function Yr() {
4880
4884
  let n = e.getType(), r = {}, i;
4881
4885
  try {
4882
4886
  for (i of n.fields.byNumber()) {
4883
- if (!zr(i, e)) {
4887
+ if (!Rr(i, e)) {
4884
4888
  if (i.req) throw "required field not set";
4885
- if (!t.emitDefaultValues || !ti(i)) continue;
4889
+ if (!t.emitDefaultValues || !ei(i)) continue;
4886
4890
  }
4887
- let n = i.oneof ? e[i.oneof.localName].value : e[i.localName], a = ni(i, n, t);
4891
+ let n = i.oneof ? e[i.oneof.localName].value : e[i.localName], a = ti(i, n, t);
4888
4892
  a !== void 0 && (r[t.useProtoFieldName ? i.name : i.jsonName] = a);
4889
4893
  }
4890
4894
  let a = t.typeRegistry;
4891
4895
  if (a?.findExtensionFor) for (let i of n.runtime.bin.listUnknownFields(e)) {
4892
4896
  let o = a.findExtensionFor(n.typeName, i.no);
4893
- if (o && Lr(e, o)) {
4894
- let n = Fr(e, o, t), i = ni(o.field, n, t);
4897
+ if (o && Ir(e, o)) {
4898
+ let n = Pr(e, o, t), i = ti(o.field, n, t);
4895
4899
  i !== void 0 && (r[o.field.jsonName] = i);
4896
4900
  }
4897
4901
  }
@@ -4902,15 +4906,15 @@ function Yr() {
4902
4906
  return r;
4903
4907
  },
4904
4908
  readScalar(e, t, n) {
4905
- return $r(e, t, n ?? xr.BIGINT, !0);
4909
+ return Qr(e, t, n ?? xr.BIGINT, !0);
4906
4910
  },
4907
4911
  writeScalar(e, t, n) {
4908
- if (t !== void 0 && (n || wr(e, t))) return ii(e, t);
4912
+ if (t !== void 0 && (n || wr(e, t))) return ri(e, t);
4909
4913
  },
4910
- debug: Xr
4914
+ debug: Yr
4911
4915
  };
4912
4916
  }
4913
- function Xr(e) {
4917
+ function Yr(e) {
4914
4918
  if (e === null) return "null";
4915
4919
  switch (typeof e) {
4916
4920
  case "object": return Array.isArray(e) ? "array" : "object";
@@ -4918,27 +4922,27 @@ function Xr(e) {
4918
4922
  default: return String(e);
4919
4923
  }
4920
4924
  }
4921
- function Zr(e, t, n, r, i) {
4925
+ function Xr(e, t, n, r, i) {
4922
4926
  let a = n.localName;
4923
4927
  if (n.repeated) {
4924
4928
  if (D(n.kind != "map"), t === null) return;
4925
- if (!Array.isArray(t)) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Xr(t)}`);
4929
+ if (!Array.isArray(t)) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Yr(t)}`);
4926
4930
  let o = e[a];
4927
4931
  for (let e of t) {
4928
- if (e === null) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Xr(e)}`);
4932
+ if (e === null) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Yr(e)}`);
4929
4933
  switch (n.kind) {
4930
4934
  case "message":
4931
4935
  o.push(n.T.fromJson(e, r));
4932
4936
  break;
4933
4937
  case "enum":
4934
- let t = ei(n.T, e, r.ignoreUnknownFields, !0);
4935
- t !== Jr && o.push(t);
4938
+ let t = $r(n.T, e, r.ignoreUnknownFields, !0);
4939
+ t !== qr && o.push(t);
4936
4940
  break;
4937
4941
  case "scalar":
4938
4942
  try {
4939
- o.push($r(n.T, e, n.L, !0));
4943
+ o.push(Qr(n.T, e, n.L, !0));
4940
4944
  } catch (t) {
4941
- let r = `cannot decode field ${i.typeName}.${n.name} from JSON: ${Xr(e)}`;
4945
+ let r = `cannot decode field ${i.typeName}.${n.name} from JSON: ${Yr(e)}`;
4942
4946
  throw t instanceof Error && t.message.length > 0 && (r += `: ${t.message}`), Error(r);
4943
4947
  }
4944
4948
  break;
@@ -4946,15 +4950,15 @@ function Zr(e, t, n, r, i) {
4946
4950
  }
4947
4951
  } else if (n.kind == "map") {
4948
4952
  if (t === null) return;
4949
- if (typeof t != "object" || Array.isArray(t)) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Xr(t)}`);
4953
+ if (typeof t != "object" || Array.isArray(t)) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Yr(t)}`);
4950
4954
  let o = e[a];
4951
4955
  for (let [e, a] of Object.entries(t)) {
4952
4956
  if (a === null) throw Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);
4953
4957
  let s;
4954
4958
  try {
4955
- s = Qr(n.K, e);
4959
+ s = Zr(n.K, e);
4956
4960
  } catch (e) {
4957
- let r = `cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${Xr(t)}`;
4961
+ let r = `cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${Yr(t)}`;
4958
4962
  throw e instanceof Error && e.message.length > 0 && (r += `: ${e.message}`), Error(r);
4959
4963
  }
4960
4964
  switch (n.V.kind) {
@@ -4962,14 +4966,14 @@ function Zr(e, t, n, r, i) {
4962
4966
  o[s] = n.V.T.fromJson(a, r);
4963
4967
  break;
4964
4968
  case "enum":
4965
- let e = ei(n.V.T, a, r.ignoreUnknownFields, !0);
4966
- e !== Jr && (o[s] = e);
4969
+ let e = $r(n.V.T, a, r.ignoreUnknownFields, !0);
4970
+ e !== qr && (o[s] = e);
4967
4971
  break;
4968
4972
  case "scalar":
4969
4973
  try {
4970
- o[s] = $r(n.V.T, a, xr.BIGINT, !0);
4974
+ o[s] = Qr(n.V.T, a, xr.BIGINT, !0);
4971
4975
  } catch (e) {
4972
- let r = `cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${Xr(t)}`;
4976
+ let r = `cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${Yr(t)}`;
4973
4977
  throw e instanceof Error && e.message.length > 0 && (r += `: ${e.message}`), Error(r);
4974
4978
  }
4975
4979
  break;
@@ -4980,15 +4984,15 @@ function Zr(e, t, n, r, i) {
4980
4984
  let o = n.T;
4981
4985
  if (t === null && o.typeName != "google.protobuf.Value") return;
4982
4986
  let s = e[a];
4983
- Vr(s) ? s.fromJson(t, r) : (e[a] = s = o.fromJson(t, r), o.fieldWrapper && !n.oneof && (e[a] = o.fieldWrapper.unwrapField(s)));
4987
+ Br(s) ? s.fromJson(t, r) : (e[a] = s = o.fromJson(t, r), o.fieldWrapper && !n.oneof && (e[a] = o.fieldWrapper.unwrapField(s)));
4984
4988
  break;
4985
4989
  case "enum":
4986
- let c = ei(n.T, t, r.ignoreUnknownFields, !1);
4990
+ let c = $r(n.T, t, r.ignoreUnknownFields, !1);
4987
4991
  switch (c) {
4988
- case qr:
4989
- Br(n, e);
4992
+ case Kr:
4993
+ zr(n, e);
4990
4994
  break;
4991
- case Jr: break;
4995
+ case qr: break;
4992
4996
  default:
4993
4997
  e[a] = c;
4994
4998
  break;
@@ -4996,23 +5000,23 @@ function Zr(e, t, n, r, i) {
4996
5000
  break;
4997
5001
  case "scalar":
4998
5002
  try {
4999
- let r = $r(n.T, t, n.L, !1);
5003
+ let r = Qr(n.T, t, n.L, !1);
5000
5004
  switch (r) {
5001
- case qr:
5002
- Br(n, e);
5005
+ case Kr:
5006
+ zr(n, e);
5003
5007
  break;
5004
5008
  default:
5005
5009
  e[a] = r;
5006
5010
  break;
5007
5011
  }
5008
5012
  } catch (e) {
5009
- let r = `cannot decode field ${i.typeName}.${n.name} from JSON: ${Xr(t)}`;
5013
+ let r = `cannot decode field ${i.typeName}.${n.name} from JSON: ${Yr(t)}`;
5010
5014
  throw e instanceof Error && e.message.length > 0 && (r += `: ${e.message}`), Error(r);
5011
5015
  }
5012
5016
  break;
5013
5017
  }
5014
5018
  }
5015
- function Qr(e, t) {
5019
+ function Zr(e, t) {
5016
5020
  if (e === k.BOOL) switch (t) {
5017
5021
  case "true":
5018
5022
  t = !0;
@@ -5021,10 +5025,10 @@ function Qr(e, t) {
5021
5025
  t = !1;
5022
5026
  break;
5023
5027
  }
5024
- return $r(e, t, xr.BIGINT, !0).toString();
5028
+ return Qr(e, t, xr.BIGINT, !0).toString();
5025
5029
  }
5026
- function $r(e, t, n, r) {
5027
- if (t === null) return r ? Cr(e, n) : qr;
5030
+ function Qr(e, t, n, r) {
5031
+ if (t === null) return r ? Cr(e, n) : Kr;
5028
5032
  switch (e) {
5029
5033
  case k.DOUBLE:
5030
5034
  case k.FLOAT:
@@ -5063,12 +5067,12 @@ function $r(e, t, n, r) {
5063
5067
  case k.BYTES:
5064
5068
  if (t === "") return new Uint8Array();
5065
5069
  if (typeof t != "string") break;
5066
- return Pr.dec(t);
5070
+ return Nr.dec(t);
5067
5071
  }
5068
5072
  throw Error();
5069
5073
  }
5070
- function ei(e, t, n, r) {
5071
- if (t === null) return e.typeName == "google.protobuf.NullValue" ? 0 : r ? e.values[0].no : qr;
5074
+ function $r(e, t, n, r) {
5075
+ if (t === null) return e.typeName == "google.protobuf.NullValue" ? 0 : r ? e.values[0].no : Kr;
5072
5076
  switch (typeof t) {
5073
5077
  case "number":
5074
5078
  if (Number.isInteger(t)) return t;
@@ -5076,28 +5080,28 @@ function ei(e, t, n, r) {
5076
5080
  case "string":
5077
5081
  let r = e.findName(t);
5078
5082
  if (r !== void 0) return r.no;
5079
- if (n) return Jr;
5083
+ if (n) return qr;
5080
5084
  break;
5081
5085
  }
5082
- throw Error(`cannot decode enum ${e.typeName} from JSON: ${Xr(t)}`);
5086
+ throw Error(`cannot decode enum ${e.typeName} from JSON: ${Yr(t)}`);
5083
5087
  }
5084
- function ti(e) {
5088
+ function ei(e) {
5085
5089
  return e.repeated || e.kind == "map" ? !0 : !(e.oneof || e.kind == "message" || e.opt || e.req);
5086
5090
  }
5087
- function ni(e, t, n) {
5091
+ function ti(e, t, n) {
5088
5092
  if (e.kind == "map") {
5089
5093
  D(typeof t == "object" && !!t);
5090
5094
  let r = {}, i = Object.entries(t);
5091
5095
  switch (e.V.kind) {
5092
5096
  case "scalar":
5093
- for (let [t, n] of i) r[t.toString()] = ii(e.V.T, n);
5097
+ for (let [t, n] of i) r[t.toString()] = ri(e.V.T, n);
5094
5098
  break;
5095
5099
  case "message":
5096
5100
  for (let [e, t] of i) r[e.toString()] = t.toJson(n);
5097
5101
  break;
5098
5102
  case "enum":
5099
5103
  let t = e.V.T;
5100
- for (let [e, a] of i) r[e.toString()] = ri(t, a, n.enumAsInteger);
5104
+ for (let [e, a] of i) r[e.toString()] = ni(t, a, n.enumAsInteger);
5101
5105
  break;
5102
5106
  }
5103
5107
  return n.emitDefaultValues || i.length > 0 ? r : void 0;
@@ -5107,10 +5111,10 @@ function ni(e, t, n) {
5107
5111
  let r = [];
5108
5112
  switch (e.kind) {
5109
5113
  case "scalar":
5110
- for (let n = 0; n < t.length; n++) r.push(ii(e.T, t[n]));
5114
+ for (let n = 0; n < t.length; n++) r.push(ri(e.T, t[n]));
5111
5115
  break;
5112
5116
  case "enum":
5113
- for (let i = 0; i < t.length; i++) r.push(ri(e.T, t[i], n.enumAsInteger));
5117
+ for (let i = 0; i < t.length; i++) r.push(ni(e.T, t[i], n.enumAsInteger));
5114
5118
  break;
5115
5119
  case "message":
5116
5120
  for (let e = 0; e < t.length; e++) r.push(t[e].toJson(n));
@@ -5119,15 +5123,15 @@ function ni(e, t, n) {
5119
5123
  return n.emitDefaultValues || r.length > 0 ? r : void 0;
5120
5124
  }
5121
5125
  switch (e.kind) {
5122
- case "scalar": return ii(e.T, t);
5123
- case "enum": return ri(e.T, t, n.enumAsInteger);
5124
- case "message": return Hr(e.T, t).toJson(n);
5126
+ case "scalar": return ri(e.T, t);
5127
+ case "enum": return ni(e.T, t, n.enumAsInteger);
5128
+ case "message": return Vr(e.T, t).toJson(n);
5125
5129
  }
5126
5130
  }
5127
- function ri(e, t, n) {
5131
+ function ni(e, t, n) {
5128
5132
  return D(typeof t == "number"), e.typeName == "google.protobuf.NullValue" ? null : n ? t : e.findNumber(t)?.name ?? t;
5129
5133
  }
5130
- function ii(e, t) {
5134
+ function ri(e, t) {
5131
5135
  switch (e) {
5132
5136
  case k.INT32:
5133
5137
  case k.SFIXED32:
@@ -5143,39 +5147,39 @@ function ii(e, t) {
5143
5147
  case k.INT64:
5144
5148
  case k.SFIXED64:
5145
5149
  case k.SINT64: return D(typeof t == "bigint" || typeof t == "string" || typeof t == "number"), t.toString();
5146
- case k.BYTES: return D(t instanceof Uint8Array), Pr.enc(t);
5150
+ case k.BYTES: return D(t instanceof Uint8Array), Nr.enc(t);
5147
5151
  }
5148
5152
  }
5149
- var ai = Symbol("@bufbuild/protobuf/unknown-fields"), oi = {
5153
+ var ii = Symbol("@bufbuild/protobuf/unknown-fields"), ai = {
5150
5154
  readUnknownFields: !0,
5151
- readerFactory: (e) => new Dr(e)
5152
- }, si = {
5155
+ readerFactory: (e) => new Er(e)
5156
+ }, oi = {
5153
5157
  writeUnknownFields: !0,
5154
- writerFactory: () => new Er()
5158
+ writerFactory: () => new Tr()
5155
5159
  };
5160
+ function si(e) {
5161
+ return e ? Object.assign(Object.assign({}, ai), e) : ai;
5162
+ }
5156
5163
  function ci(e) {
5157
5164
  return e ? Object.assign(Object.assign({}, oi), e) : oi;
5158
5165
  }
5159
- function li(e) {
5160
- return e ? Object.assign(Object.assign({}, si), e) : si;
5161
- }
5162
- function ui() {
5166
+ function li() {
5163
5167
  return {
5164
- makeReadOptions: ci,
5165
- makeWriteOptions: li,
5168
+ makeReadOptions: si,
5169
+ makeWriteOptions: ci,
5166
5170
  listUnknownFields(e) {
5167
- return e[ai] ?? [];
5171
+ return e[ii] ?? [];
5168
5172
  },
5169
5173
  discardUnknownFields(e) {
5170
- delete e[ai];
5174
+ delete e[ii];
5171
5175
  },
5172
5176
  writeUnknownFields(e, t) {
5173
- let n = e[ai];
5177
+ let n = e[ii];
5174
5178
  if (n) for (let e of n) t.tag(e.no, e.wireType).raw(e.data);
5175
5179
  },
5176
5180
  onUnknownField(e, t, n, r) {
5177
5181
  let i = e;
5178
- Array.isArray(i[ai]) || (i[ai] = []), i[ai].push({
5182
+ Array.isArray(i[ii]) || (i[ii] = []), i[ii].push({
5179
5183
  no: t,
5180
5184
  wireType: n,
5181
5185
  data: r
@@ -5183,43 +5187,43 @@ function ui() {
5183
5187
  },
5184
5188
  readMessage(e, t, n, r, i) {
5185
5189
  let a = e.getType(), o = i ? t.len : t.pos + n, s, c;
5186
- for (; t.pos < o && ([s, c] = t.tag(), !(i === !0 && c == Tr.EndGroup));) {
5190
+ for (; t.pos < o && ([s, c] = t.tag(), !(i === !0 && c == A.EndGroup));) {
5187
5191
  let n = a.fields.find(s);
5188
5192
  if (!n) {
5189
5193
  let n = t.skip(c, s);
5190
5194
  r.readUnknownFields && this.onUnknownField(e, s, c, n);
5191
5195
  continue;
5192
5196
  }
5193
- di(e, t, n, c, r);
5197
+ ui(e, t, n, c, r);
5194
5198
  }
5195
- if (i && (c != Tr.EndGroup || s !== n)) throw Error("invalid end group tag");
5199
+ if (i && (c != A.EndGroup || s !== n)) throw Error("invalid end group tag");
5196
5200
  },
5197
- readField: di,
5201
+ readField: ui,
5198
5202
  writeMessage(e, t, n) {
5199
5203
  let r = e.getType();
5200
5204
  for (let i of r.fields.byNumber()) {
5201
- if (!zr(i, e)) {
5205
+ if (!Rr(i, e)) {
5202
5206
  if (i.req) throw Error(`cannot encode field ${r.typeName}.${i.name} to binary: required field not set`);
5203
5207
  continue;
5204
5208
  }
5205
- gi(i, i.oneof ? e[i.oneof.localName].value : e[i.localName], t, n);
5209
+ hi(i, i.oneof ? e[i.oneof.localName].value : e[i.localName], t, n);
5206
5210
  }
5207
5211
  return n.writeUnknownFields && this.writeUnknownFields(e, t), t;
5208
5212
  },
5209
5213
  writeField(e, t, n, r) {
5210
- t !== void 0 && gi(e, t, n, r);
5214
+ t !== void 0 && hi(e, t, n, r);
5211
5215
  }
5212
5216
  };
5213
5217
  }
5214
- function di(e, t, n, r, i) {
5218
+ function ui(e, t, n, r, i) {
5215
5219
  let { repeated: a, localName: o } = n;
5216
5220
  switch (n.oneof && (e = e[n.oneof.localName], e.case != o && delete e.value, e.case = o, o = "value"), n.kind) {
5217
5221
  case "scalar":
5218
5222
  case "enum":
5219
- let s = n.kind == "enum" ? k.INT32 : n.T, c = hi;
5220
- if (n.kind == "scalar" && n.L > 0 && (c = mi), a) {
5223
+ let s = n.kind == "enum" ? k.INT32 : n.T, c = mi;
5224
+ if (n.kind == "scalar" && n.L > 0 && (c = pi), a) {
5221
5225
  let n = e[o];
5222
- if (r == Tr.LengthDelimited && s != k.STRING && s != k.BYTES) {
5226
+ if (r == A.LengthDelimited && s != k.STRING && s != k.BYTES) {
5223
5227
  let e = t.uint32() + t.pos;
5224
5228
  for (; t.pos < e;) n.push(c(t, s));
5225
5229
  } else n.push(c(t, s));
@@ -5227,36 +5231,36 @@ function di(e, t, n, r, i) {
5227
5231
  break;
5228
5232
  case "message":
5229
5233
  let l = n.T;
5230
- a ? e[o].push(fi(t, new l(), i, n)) : Vr(e[o]) ? fi(t, e[o], i, n) : (e[o] = fi(t, new l(), i, n), l.fieldWrapper && !n.oneof && !n.repeated && (e[o] = l.fieldWrapper.unwrapField(e[o])));
5234
+ a ? e[o].push(di(t, new l(), i, n)) : Br(e[o]) ? di(t, e[o], i, n) : (e[o] = di(t, new l(), i, n), l.fieldWrapper && !n.oneof && !n.repeated && (e[o] = l.fieldWrapper.unwrapField(e[o])));
5231
5235
  break;
5232
5236
  case "map":
5233
- let [u, d] = pi(n, t, i);
5237
+ let [u, d] = fi(n, t, i);
5234
5238
  e[o][u] = d;
5235
5239
  break;
5236
5240
  }
5237
5241
  }
5238
- function fi(e, t, n, r) {
5242
+ function di(e, t, n, r) {
5239
5243
  let i = t.getType().runtime.bin, a = r?.delimited;
5240
5244
  return i.readMessage(t, e, a ? r.no : e.uint32(), n, a), t;
5241
5245
  }
5242
- function pi(e, t, n) {
5246
+ function fi(e, t, n) {
5243
5247
  let r = t.uint32(), i = t.pos + r, a, o;
5244
5248
  for (; t.pos < i;) {
5245
5249
  let [r] = t.tag();
5246
5250
  switch (r) {
5247
5251
  case 1:
5248
- a = hi(t, e.K);
5252
+ a = mi(t, e.K);
5249
5253
  break;
5250
5254
  case 2:
5251
5255
  switch (e.V.kind) {
5252
5256
  case "scalar":
5253
- o = hi(t, e.V.T);
5257
+ o = mi(t, e.V.T);
5254
5258
  break;
5255
5259
  case "enum":
5256
5260
  o = t.int32();
5257
5261
  break;
5258
5262
  case "message":
5259
- o = fi(t, new e.V.T(), n, void 0);
5263
+ o = di(t, new e.V.T(), n, void 0);
5260
5264
  break;
5261
5265
  }
5262
5266
  break;
@@ -5275,11 +5279,11 @@ function pi(e, t, n) {
5275
5279
  }
5276
5280
  return [a, o];
5277
5281
  }
5278
- function mi(e, t) {
5279
- let n = hi(e, t);
5282
+ function pi(e, t) {
5283
+ let n = mi(e, t);
5280
5284
  return typeof n == "bigint" ? n.toString() : n;
5281
5285
  }
5282
- function hi(e, t) {
5286
+ function mi(e, t) {
5283
5287
  switch (t) {
5284
5288
  case k.STRING: return e.string();
5285
5289
  case k.BOOL: return e.bool();
@@ -5298,31 +5302,31 @@ function hi(e, t) {
5298
5302
  case k.SINT32: return e.sint32();
5299
5303
  }
5300
5304
  }
5301
- function gi(e, t, n, r) {
5305
+ function hi(e, t, n, r) {
5302
5306
  D(t !== void 0);
5303
5307
  let i = e.repeated;
5304
5308
  switch (e.kind) {
5305
5309
  case "scalar":
5306
5310
  case "enum":
5307
5311
  let a = e.kind == "enum" ? k.INT32 : e.T;
5308
- if (i) if (D(Array.isArray(t)), e.packed) bi(n, a, e.no, t);
5309
- else for (let r of t) yi(n, a, e.no, r);
5310
- else yi(n, a, e.no, t);
5312
+ if (i) if (D(Array.isArray(t)), e.packed) yi(n, a, e.no, t);
5313
+ else for (let r of t) vi(n, a, e.no, r);
5314
+ else vi(n, a, e.no, t);
5311
5315
  break;
5312
5316
  case "message":
5313
5317
  if (i) {
5314
5318
  D(Array.isArray(t));
5315
- for (let i of t) vi(n, r, e, i);
5316
- } else vi(n, r, e, t);
5319
+ for (let i of t) _i(n, r, e, i);
5320
+ } else _i(n, r, e, t);
5317
5321
  break;
5318
5322
  case "map":
5319
5323
  D(typeof t == "object" && !!t);
5320
- for (let [i, a] of Object.entries(t)) _i(n, r, e, i, a);
5324
+ for (let [i, a] of Object.entries(t)) gi(n, r, e, i, a);
5321
5325
  break;
5322
5326
  }
5323
5327
  }
5324
- function _i(e, t, n, r, i) {
5325
- e.tag(n.no, Tr.LengthDelimited), e.fork();
5328
+ function gi(e, t, n, r, i) {
5329
+ e.tag(n.no, A.LengthDelimited), e.fork();
5326
5330
  let a = r;
5327
5331
  switch (n.K) {
5328
5332
  case k.INT32:
@@ -5336,57 +5340,57 @@ function _i(e, t, n, r, i) {
5336
5340
  D(r == "true" || r == "false"), a = r == "true";
5337
5341
  break;
5338
5342
  }
5339
- switch (yi(e, n.K, 1, a), n.V.kind) {
5343
+ switch (vi(e, n.K, 1, a), n.V.kind) {
5340
5344
  case "scalar":
5341
- yi(e, n.V.T, 2, i);
5345
+ vi(e, n.V.T, 2, i);
5342
5346
  break;
5343
5347
  case "enum":
5344
- yi(e, k.INT32, 2, i);
5348
+ vi(e, k.INT32, 2, i);
5345
5349
  break;
5346
5350
  case "message":
5347
- D(i !== void 0), e.tag(2, Tr.LengthDelimited).bytes(i.toBinary(t));
5351
+ D(i !== void 0), e.tag(2, A.LengthDelimited).bytes(i.toBinary(t));
5348
5352
  break;
5349
5353
  }
5350
5354
  e.join();
5351
5355
  }
5352
- function vi(e, t, n, r) {
5353
- let i = Hr(n.T, r);
5354
- n.delimited ? e.tag(n.no, Tr.StartGroup).raw(i.toBinary(t)).tag(n.no, Tr.EndGroup) : e.tag(n.no, Tr.LengthDelimited).bytes(i.toBinary(t));
5356
+ function _i(e, t, n, r) {
5357
+ let i = Vr(n.T, r);
5358
+ n.delimited ? e.tag(n.no, A.StartGroup).raw(i.toBinary(t)).tag(n.no, A.EndGroup) : e.tag(n.no, A.LengthDelimited).bytes(i.toBinary(t));
5355
5359
  }
5356
- function yi(e, t, n, r) {
5360
+ function vi(e, t, n, r) {
5357
5361
  D(r !== void 0);
5358
- let [i, a] = xi(t);
5362
+ let [i, a] = bi(t);
5359
5363
  e.tag(n, i)[a](r);
5360
5364
  }
5361
- function bi(e, t, n, r) {
5365
+ function yi(e, t, n, r) {
5362
5366
  if (!r.length) return;
5363
- e.tag(n, Tr.LengthDelimited).fork();
5364
- let [, i] = xi(t);
5367
+ e.tag(n, A.LengthDelimited).fork();
5368
+ let [, i] = bi(t);
5365
5369
  for (let t = 0; t < r.length; t++) e[i](r[t]);
5366
5370
  e.join();
5367
5371
  }
5368
- function xi(e) {
5369
- let t = Tr.Varint;
5372
+ function bi(e) {
5373
+ let t = A.Varint;
5370
5374
  switch (e) {
5371
5375
  case k.BYTES:
5372
5376
  case k.STRING:
5373
- t = Tr.LengthDelimited;
5377
+ t = A.LengthDelimited;
5374
5378
  break;
5375
5379
  case k.DOUBLE:
5376
5380
  case k.FIXED64:
5377
5381
  case k.SFIXED64:
5378
- t = Tr.Bit64;
5382
+ t = A.Bit64;
5379
5383
  break;
5380
5384
  case k.FIXED32:
5381
5385
  case k.SFIXED32:
5382
5386
  case k.FLOAT:
5383
- t = Tr.Bit32;
5387
+ t = A.Bit32;
5384
5388
  break;
5385
5389
  }
5386
5390
  let n = k[e].toLowerCase();
5387
5391
  return [t, n];
5388
5392
  }
5389
- function Si() {
5393
+ function xi() {
5390
5394
  return {
5391
5395
  setEnumType: nr,
5392
5396
  initPartial(e, t) {
@@ -5399,7 +5403,7 @@ function Si() {
5399
5403
  let e = a[n].case;
5400
5404
  if (e === void 0) continue;
5401
5405
  let t = r.findField(e), o = a[n].value;
5402
- t && t.kind == "message" && !Vr(o, t.T) ? o = new t.T(o) : t && t.kind === "scalar" && t.T === k.BYTES && (o = wi(o)), i[n] = {
5406
+ t && t.kind == "message" && !Br(o, t.T) ? o = new t.T(o) : t && t.kind === "scalar" && t.T === k.BYTES && (o = Ci(o)), i[n] = {
5403
5407
  case: e,
5404
5408
  value: o
5405
5409
  };
@@ -5407,13 +5411,13 @@ function Si() {
5407
5411
  case "scalar":
5408
5412
  case "enum":
5409
5413
  let s = a[n];
5410
- r.T === k.BYTES && (s = r.repeated ? s.map(wi) : wi(s)), i[n] = s;
5414
+ r.T === k.BYTES && (s = r.repeated ? s.map(Ci) : Ci(s)), i[n] = s;
5411
5415
  break;
5412
5416
  case "map":
5413
5417
  switch (r.V.kind) {
5414
5418
  case "scalar":
5415
5419
  case "enum":
5416
- if (r.V.T === k.BYTES) for (let [e, t] of Object.entries(a[n])) i[n][e] = wi(t);
5420
+ if (r.V.T === k.BYTES) for (let [e, t] of Object.entries(a[n])) i[n][e] = Ci(t);
5417
5421
  else Object.assign(i[n], a[n]);
5418
5422
  break;
5419
5423
  case "message":
@@ -5427,10 +5431,10 @@ function Si() {
5427
5431
  break;
5428
5432
  case "message":
5429
5433
  let c = r.T;
5430
- if (r.repeated) i[n] = a[n].map((e) => Vr(e, c) ? e : new c(e));
5434
+ if (r.repeated) i[n] = a[n].map((e) => Br(e, c) ? e : new c(e));
5431
5435
  else {
5432
5436
  let e = a[n];
5433
- c.fieldWrapper ? c.typeName === "google.protobuf.BytesValue" ? i[n] = wi(e) : i[n] = e : i[n] = Vr(e, c) ? e : new c(e);
5437
+ c.fieldWrapper ? c.typeName === "google.protobuf.BytesValue" ? i[n] = Ci(e) : i[n] = e : i[n] = Br(e, c) ? e : new c(e);
5434
5438
  }
5435
5439
  break;
5436
5440
  }
@@ -5451,7 +5455,7 @@ function Si() {
5451
5455
  switch (e.kind) {
5452
5456
  case "message":
5453
5457
  let t = r, n = i;
5454
- return e.T.fieldWrapper && (t !== void 0 && !Vr(t) && (t = e.T.fieldWrapper.wrapField(t)), n !== void 0 && !Vr(n) && (n = e.T.fieldWrapper.wrapField(n))), e.T.equals(t, n);
5458
+ return e.T.fieldWrapper && (t !== void 0 && !Br(t) && (t = e.T.fieldWrapper.wrapField(t)), n !== void 0 && !Br(n) && (n = e.T.fieldWrapper.wrapField(n))), e.T.equals(t, n);
5455
5459
  case "enum": return Sr(k.INT32, r, i);
5456
5460
  case "scalar": return Sr(e.T, r, i);
5457
5461
  case "oneof":
@@ -5483,14 +5487,14 @@ function Si() {
5483
5487
  let t = e.getType(), n = new t(), r = n;
5484
5488
  for (let n of t.fields.byMember()) {
5485
5489
  let t = e[n.localName], i;
5486
- if (n.repeated) i = t.map(Ci);
5490
+ if (n.repeated) i = t.map(Si);
5487
5491
  else if (n.kind == "map") {
5488
5492
  i = r[n.localName];
5489
- for (let [e, n] of Object.entries(t)) i[e] = Ci(n);
5493
+ for (let [e, n] of Object.entries(t)) i[e] = Si(n);
5490
5494
  } else i = n.kind == "oneof" ? n.findField(t.case) ? {
5491
5495
  case: t.case,
5492
- value: Ci(t.value)
5493
- } : { case: void 0 } : Ci(t);
5496
+ value: Si(t.value)
5497
+ } : { case: void 0 } : Si(t);
5494
5498
  r[n.localName] = i;
5495
5499
  }
5496
5500
  for (let n of t.runtime.bin.listUnknownFields(e)) t.runtime.bin.onUnknownField(r, n.no, n.wireType, n.data);
@@ -5498,24 +5502,24 @@ function Si() {
5498
5502
  }
5499
5503
  };
5500
5504
  }
5501
- function Ci(e) {
5505
+ function Si(e) {
5502
5506
  if (e === void 0) return e;
5503
- if (Vr(e)) return e.clone();
5507
+ if (Br(e)) return e.clone();
5504
5508
  if (e instanceof Uint8Array) {
5505
5509
  let t = new Uint8Array(e.byteLength);
5506
5510
  return t.set(e), t;
5507
5511
  }
5508
5512
  return e;
5509
5513
  }
5510
- function wi(e) {
5514
+ function Ci(e) {
5511
5515
  return e instanceof Uint8Array ? e : new Uint8Array(e);
5512
5516
  }
5513
- function Ti(e, t, n) {
5517
+ function wi(e, t, n) {
5514
5518
  return {
5515
5519
  syntax: e,
5516
- json: Yr(),
5517
- bin: ui(),
5518
- util: Object.assign(Object.assign({}, Si()), {
5520
+ json: Jr(),
5521
+ bin: li(),
5522
+ util: Object.assign(Object.assign({}, xi()), {
5519
5523
  newFieldList: t,
5520
5524
  initFields: n
5521
5525
  }),
@@ -5526,11 +5530,11 @@ function Ti(e, t, n) {
5526
5530
  makeEnumType: rr,
5527
5531
  getEnumType: tr,
5528
5532
  makeExtension(e, t, n) {
5529
- return Or(this, e, t, n);
5533
+ return Dr(this, e, t, n);
5530
5534
  }
5531
5535
  };
5532
5536
  }
5533
- var Ei = class {
5537
+ var Ti = class {
5534
5538
  constructor(e, t) {
5535
5539
  this._fields = e, this._normalizer = t;
5536
5540
  }
@@ -5565,15 +5569,15 @@ var Ei = class {
5565
5569
  return this.members;
5566
5570
  }
5567
5571
  };
5568
- function Di(e, t) {
5569
- let n = Ai(e);
5570
- return t ? n : Fi(Pi(n));
5572
+ function Ei(e, t) {
5573
+ let n = ki(e);
5574
+ return t ? n : Pi(Ni(n));
5571
5575
  }
5572
- function Oi(e) {
5573
- return Di(e, !1);
5576
+ function Di(e) {
5577
+ return Ei(e, !1);
5574
5578
  }
5575
- var ki = Ai;
5576
- function Ai(e) {
5579
+ var Oi = ki;
5580
+ function ki(e) {
5577
5581
  let t = !1, n = [];
5578
5582
  for (let r = 0; r < e.length; r++) {
5579
5583
  let i = e.charAt(r);
@@ -5600,12 +5604,12 @@ function Ai(e) {
5600
5604
  }
5601
5605
  return n.join("");
5602
5606
  }
5603
- var ji = new Set([
5607
+ var Ai = new Set([
5604
5608
  "constructor",
5605
5609
  "toString",
5606
5610
  "toJSON",
5607
5611
  "valueOf"
5608
- ]), Mi = new Set([
5612
+ ]), ji = new Set([
5609
5613
  "getType",
5610
5614
  "clone",
5611
5615
  "equals",
@@ -5616,9 +5620,9 @@ var ji = new Set([
5616
5620
  "toJson",
5617
5621
  "toJsonString",
5618
5622
  "toObject"
5619
- ]), Ni = (e) => `${e}\$`, Pi = (e) => Mi.has(e) ? Ni(e) : e, Fi = (e) => ji.has(e) ? Ni(e) : e, Ii = class {
5623
+ ]), Mi = (e) => `${e}\$`, Ni = (e) => ji.has(e) ? Mi(e) : e, Pi = (e) => Ai.has(e) ? Mi(e) : e, Fi = class {
5620
5624
  constructor(e) {
5621
- this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.req = !1, this.default = void 0, this.fields = [], this.name = e, this.localName = Oi(e);
5625
+ this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.req = !1, this.default = void 0, this.fields = [], this.name = e, this.localName = Di(e);
5622
5626
  }
5623
5627
  addField(e) {
5624
5628
  D(e.oneof === this, `field ${e.name} not one of ${this.name}`), this.fields.push(e);
@@ -5631,19 +5635,19 @@ var ji = new Set([
5631
5635
  return this._lookup[e];
5632
5636
  }
5633
5637
  };
5634
- function Li(e, t) {
5638
+ function Ii(e, t) {
5635
5639
  let n = [], r;
5636
5640
  for (let t of typeof e == "function" ? e() : e) {
5637
5641
  let e = t;
5638
- if (e.localName = Di(t.name, t.oneof !== void 0), e.jsonName = t.jsonName ?? ki(t.name), e.repeated = t.repeated ?? !1, t.kind == "scalar" && (e.L = t.L ?? xr.BIGINT), e.delimited = t.delimited ?? !1, e.req = t.req ?? !1, e.opt = t.opt ?? !1, t.packed === void 0 && (e.packed = t.kind == "enum" || t.kind == "scalar" && t.T != k.BYTES && t.T != k.STRING), t.oneof !== void 0) {
5642
+ if (e.localName = Ei(t.name, t.oneof !== void 0), e.jsonName = t.jsonName ?? Oi(t.name), e.repeated = t.repeated ?? !1, t.kind == "scalar" && (e.L = t.L ?? xr.BIGINT), e.delimited = t.delimited ?? !1, e.req = t.req ?? !1, e.opt = t.opt ?? !1, t.packed === void 0 && (e.packed = t.kind == "enum" || t.kind == "scalar" && t.T != k.BYTES && t.T != k.STRING), t.oneof !== void 0) {
5639
5643
  let n = typeof t.oneof == "string" ? t.oneof : t.oneof.name;
5640
- (!r || r.name != n) && (r = new Ii(n)), e.oneof = r, r.addField(e);
5644
+ (!r || r.name != n) && (r = new Fi(n)), e.oneof = r, r.addField(e);
5641
5645
  }
5642
5646
  n.push(e);
5643
5647
  }
5644
5648
  return n;
5645
5649
  }
5646
- var A = Ti("proto3", (e) => new Ei(e, (e) => Li(e)), (e) => {
5650
+ var j = wi("proto3", (e) => new Ti(e, (e) => Ii(e)), (e) => {
5647
5651
  for (let t of e.getType().fields.byMember()) {
5648
5652
  if (t.opt) continue;
5649
5653
  let n = t.localName, r = e;
@@ -5666,12 +5670,12 @@ var A = Ti("proto3", (e) => new Ei(e, (e) => Li(e)), (e) => {
5666
5670
  break;
5667
5671
  }
5668
5672
  }
5669
- }), Ri = class e extends or {
5673
+ }), Li = class e extends or {
5670
5674
  constructor(e) {
5671
- super(), this.seconds = O.zero, this.nanos = 0, A.util.initPartial(e, this);
5675
+ super(), this.seconds = O.zero, this.nanos = 0, j.util.initPartial(e, this);
5672
5676
  }
5673
5677
  fromJson(e, t) {
5674
- if (typeof e != "string") throw Error(`cannot decode google.protobuf.Timestamp from JSON: ${A.json.debug(e)}`);
5678
+ if (typeof e != "string") throw Error(`cannot decode google.protobuf.Timestamp from JSON: ${j.json.debug(e)}`);
5675
5679
  let n = e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
5676
5680
  if (!n) throw Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");
5677
5681
  let r = Date.parse(n[1] + "-" + n[2] + "-" + n[3] + "T" + n[4] + ":" + n[5] + ":" + n[6] + (n[8] ? n[8] : "Z"));
@@ -5713,10 +5717,10 @@ var A = Ti("proto3", (e) => new Ei(e, (e) => Li(e)), (e) => {
5713
5717
  return new e().fromJsonString(t, n);
5714
5718
  }
5715
5719
  static equals(t, n) {
5716
- return A.util.equals(e, t, n);
5720
+ return j.util.equals(e, t, n);
5717
5721
  }
5718
5722
  };
5719
- Ri.runtime = A, Ri.typeName = "google.protobuf.Timestamp", Ri.fields = A.util.newFieldList(() => [{
5723
+ Li.runtime = j, Li.typeName = "google.protobuf.Timestamp", Li.fields = j.util.newFieldList(() => [{
5720
5724
  no: 1,
5721
5725
  name: "seconds",
5722
5726
  kind: "scalar",
@@ -5727,7 +5731,7 @@ Ri.runtime = A, Ri.typeName = "google.protobuf.Timestamp", Ri.fields = A.util.ne
5727
5731
  kind: "scalar",
5728
5732
  T: 5
5729
5733
  }]);
5730
- var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5734
+ var Ri = /* @__PURE__ */ j.makeMessageType("livekit.MetricsBatch", () => [
5731
5735
  {
5732
5736
  no: 1,
5733
5737
  name: "timestamp_ms",
@@ -5738,7 +5742,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5738
5742
  no: 2,
5739
5743
  name: "normalized_timestamp",
5740
5744
  kind: "message",
5741
- T: Ri
5745
+ T: Li
5742
5746
  },
5743
5747
  {
5744
5748
  no: 3,
@@ -5751,17 +5755,17 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5751
5755
  no: 4,
5752
5756
  name: "time_series",
5753
5757
  kind: "message",
5754
- T: Bi,
5758
+ T: zi,
5755
5759
  repeated: !0
5756
5760
  },
5757
5761
  {
5758
5762
  no: 5,
5759
5763
  name: "events",
5760
5764
  kind: "message",
5761
- T: Hi,
5765
+ T: Vi,
5762
5766
  repeated: !0
5763
5767
  }
5764
- ]), Bi = /* @__PURE__ */ A.makeMessageType("livekit.TimeSeriesMetric", () => [
5768
+ ]), zi = /* @__PURE__ */ j.makeMessageType("livekit.TimeSeriesMetric", () => [
5765
5769
  {
5766
5770
  no: 1,
5767
5771
  name: "label",
@@ -5784,7 +5788,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5784
5788
  no: 4,
5785
5789
  name: "samples",
5786
5790
  kind: "message",
5787
- T: Vi,
5791
+ T: Bi,
5788
5792
  repeated: !0
5789
5793
  },
5790
5794
  {
@@ -5793,7 +5797,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5793
5797
  kind: "scalar",
5794
5798
  T: 13
5795
5799
  }
5796
- ]), Vi = /* @__PURE__ */ A.makeMessageType("livekit.MetricSample", () => [
5800
+ ]), Bi = /* @__PURE__ */ j.makeMessageType("livekit.MetricSample", () => [
5797
5801
  {
5798
5802
  no: 1,
5799
5803
  name: "timestamp_ms",
@@ -5804,7 +5808,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5804
5808
  no: 2,
5805
5809
  name: "normalized_timestamp",
5806
5810
  kind: "message",
5807
- T: Ri
5811
+ T: Li
5808
5812
  },
5809
5813
  {
5810
5814
  no: 3,
@@ -5812,7 +5816,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5812
5816
  kind: "scalar",
5813
5817
  T: 2
5814
5818
  }
5815
- ]), Hi = /* @__PURE__ */ A.makeMessageType("livekit.EventMetric", () => [
5819
+ ]), Vi = /* @__PURE__ */ j.makeMessageType("livekit.EventMetric", () => [
5816
5820
  {
5817
5821
  no: 1,
5818
5822
  name: "label",
@@ -5848,13 +5852,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5848
5852
  no: 6,
5849
5853
  name: "normalized_start_timestamp",
5850
5854
  kind: "message",
5851
- T: Ri
5855
+ T: Li
5852
5856
  },
5853
5857
  {
5854
5858
  no: 7,
5855
5859
  name: "normalized_end_timestamp",
5856
5860
  kind: "message",
5857
- T: Ri,
5861
+ T: Li,
5858
5862
  opt: !0
5859
5863
  },
5860
5864
  {
@@ -5869,7 +5873,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5869
5873
  kind: "scalar",
5870
5874
  T: 13
5871
5875
  }
5872
- ]), Ui = /* @__PURE__ */ A.makeEnum("livekit.BackupCodecPolicy", [
5876
+ ]), Hi = /* @__PURE__ */ j.makeEnum("livekit.BackupCodecPolicy", [
5873
5877
  {
5874
5878
  no: 0,
5875
5879
  name: "PREFER_REGRESSION"
@@ -5882,7 +5886,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5882
5886
  no: 2,
5883
5887
  name: "REGRESSION"
5884
5888
  }
5885
- ]), Wi = /* @__PURE__ */ A.makeEnum("livekit.TrackType", [
5889
+ ]), Ui = /* @__PURE__ */ j.makeEnum("livekit.TrackType", [
5886
5890
  {
5887
5891
  no: 0,
5888
5892
  name: "AUDIO"
@@ -5895,7 +5899,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5895
5899
  no: 2,
5896
5900
  name: "DATA"
5897
5901
  }
5898
- ]), j = /* @__PURE__ */ A.makeEnum("livekit.TrackSource", [
5902
+ ]), Wi = /* @__PURE__ */ j.makeEnum("livekit.TrackSource", [
5899
5903
  {
5900
5904
  no: 0,
5901
5905
  name: "UNKNOWN"
@@ -5916,7 +5920,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5916
5920
  no: 4,
5917
5921
  name: "SCREEN_SHARE_AUDIO"
5918
5922
  }
5919
- ]), Gi = /* @__PURE__ */ A.makeEnum("livekit.VideoQuality", [
5923
+ ]), Gi = /* @__PURE__ */ j.makeEnum("livekit.VideoQuality", [
5920
5924
  {
5921
5925
  no: 0,
5922
5926
  name: "LOW"
@@ -5933,7 +5937,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5933
5937
  no: 3,
5934
5938
  name: "OFF"
5935
5939
  }
5936
- ]), Ki = /* @__PURE__ */ A.makeEnum("livekit.ConnectionQuality", [
5940
+ ]), Ki = /* @__PURE__ */ j.makeEnum("livekit.ConnectionQuality", [
5937
5941
  {
5938
5942
  no: 0,
5939
5943
  name: "POOR"
@@ -5950,7 +5954,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5950
5954
  no: 3,
5951
5955
  name: "LOST"
5952
5956
  }
5953
- ]), qi = /* @__PURE__ */ A.makeEnum("livekit.ClientConfigSetting", [
5957
+ ]), qi = /* @__PURE__ */ j.makeEnum("livekit.ClientConfigSetting", [
5954
5958
  {
5955
5959
  no: 0,
5956
5960
  name: "UNSET"
@@ -5963,7 +5967,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
5963
5967
  no: 2,
5964
5968
  name: "ENABLED"
5965
5969
  }
5966
- ]), Ji = /* @__PURE__ */ A.makeEnum("livekit.DisconnectReason", [
5970
+ ]), Ji = /* @__PURE__ */ j.makeEnum("livekit.DisconnectReason", [
5967
5971
  {
5968
5972
  no: 0,
5969
5973
  name: "UNKNOWN_REASON"
@@ -6028,7 +6032,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6028
6032
  no: 15,
6029
6033
  name: "MEDIA_FAILURE"
6030
6034
  }
6031
- ]), Yi = /* @__PURE__ */ A.makeEnum("livekit.ReconnectReason", [
6035
+ ]), Yi = /* @__PURE__ */ j.makeEnum("livekit.ReconnectReason", [
6032
6036
  {
6033
6037
  no: 0,
6034
6038
  name: "RR_UNKNOWN"
@@ -6049,7 +6053,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6049
6053
  no: 4,
6050
6054
  name: "RR_SWITCH_CANDIDATE"
6051
6055
  }
6052
- ]), Xi = /* @__PURE__ */ A.makeEnum("livekit.SubscriptionError", [
6056
+ ]), Xi = /* @__PURE__ */ j.makeEnum("livekit.SubscriptionError", [
6053
6057
  {
6054
6058
  no: 0,
6055
6059
  name: "SE_UNKNOWN"
@@ -6062,7 +6066,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6062
6066
  no: 2,
6063
6067
  name: "SE_TRACK_NOTFOUND"
6064
6068
  }
6065
- ]), Zi = /* @__PURE__ */ A.makeEnum("livekit.AudioTrackFeature", [
6069
+ ]), Zi = /* @__PURE__ */ j.makeEnum("livekit.AudioTrackFeature", [
6066
6070
  {
6067
6071
  no: 0,
6068
6072
  name: "TF_STEREO"
@@ -6091,7 +6095,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6091
6095
  no: 6,
6092
6096
  name: "TF_PRECONNECT_BUFFER"
6093
6097
  }
6094
- ]), Qi = /* @__PURE__ */ A.makeMessageType("livekit.Room", () => [
6098
+ ]), Qi = /* @__PURE__ */ j.makeMessageType("livekit.Room", () => [
6095
6099
  {
6096
6100
  no: 1,
6097
6101
  name: "sid",
@@ -6177,7 +6181,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6177
6181
  kind: "message",
6178
6182
  T: Pa
6179
6183
  }
6180
- ]), $i = /* @__PURE__ */ A.makeMessageType("livekit.Codec", () => [{
6184
+ ]), $i = /* @__PURE__ */ j.makeMessageType("livekit.Codec", () => [{
6181
6185
  no: 1,
6182
6186
  name: "mime",
6183
6187
  kind: "scalar",
@@ -6187,7 +6191,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6187
6191
  name: "fmtp_line",
6188
6192
  kind: "scalar",
6189
6193
  T: 9
6190
- }]), ea = /* @__PURE__ */ A.makeMessageType("livekit.ParticipantPermission", () => [
6194
+ }]), ea = /* @__PURE__ */ j.makeMessageType("livekit.ParticipantPermission", () => [
6191
6195
  {
6192
6196
  no: 1,
6193
6197
  name: "can_subscribe",
@@ -6210,7 +6214,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6210
6214
  no: 9,
6211
6215
  name: "can_publish_sources",
6212
6216
  kind: "enum",
6213
- T: A.getEnumType(j),
6217
+ T: j.getEnumType(Wi),
6214
6218
  repeated: !0
6215
6219
  },
6216
6220
  {
@@ -6243,7 +6247,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6243
6247
  kind: "scalar",
6244
6248
  T: 8
6245
6249
  }
6246
- ]), ta = /* @__PURE__ */ A.makeMessageType("livekit.ParticipantInfo", () => [
6250
+ ]), ta = /* @__PURE__ */ j.makeMessageType("livekit.ParticipantInfo", () => [
6247
6251
  {
6248
6252
  no: 1,
6249
6253
  name: "sid",
@@ -6260,7 +6264,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6260
6264
  no: 3,
6261
6265
  name: "state",
6262
6266
  kind: "enum",
6263
- T: A.getEnumType(na)
6267
+ T: j.getEnumType(na)
6264
6268
  },
6265
6269
  {
6266
6270
  no: 4,
@@ -6321,7 +6325,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6321
6325
  no: 14,
6322
6326
  name: "kind",
6323
6327
  kind: "enum",
6324
- T: A.getEnumType(ra)
6328
+ T: j.getEnumType(ra)
6325
6329
  },
6326
6330
  {
6327
6331
  no: 15,
@@ -6337,13 +6341,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6337
6341
  no: 16,
6338
6342
  name: "disconnect_reason",
6339
6343
  kind: "enum",
6340
- T: A.getEnumType(Ji)
6344
+ T: j.getEnumType(Ji)
6341
6345
  },
6342
6346
  {
6343
6347
  no: 18,
6344
6348
  name: "kind_details",
6345
6349
  kind: "enum",
6346
- T: A.getEnumType(ia),
6350
+ T: j.getEnumType(ia),
6347
6351
  repeated: !0
6348
6352
  },
6349
6353
  {
@@ -6353,7 +6357,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6353
6357
  T: sa,
6354
6358
  repeated: !0
6355
6359
  }
6356
- ]), na = /* @__PURE__ */ A.makeEnum("livekit.ParticipantInfo.State", [
6360
+ ]), na = /* @__PURE__ */ j.makeEnum("livekit.ParticipantInfo.State", [
6357
6361
  {
6358
6362
  no: 0,
6359
6363
  name: "JOINING"
@@ -6370,7 +6374,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6370
6374
  no: 3,
6371
6375
  name: "DISCONNECTED"
6372
6376
  }
6373
- ]), ra = /* @__PURE__ */ A.makeEnum("livekit.ParticipantInfo.Kind", [
6377
+ ]), ra = /* @__PURE__ */ j.makeEnum("livekit.ParticipantInfo.Kind", [
6374
6378
  {
6375
6379
  no: 0,
6376
6380
  name: "STANDARD"
@@ -6399,7 +6403,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6399
6403
  no: 8,
6400
6404
  name: "BRIDGE"
6401
6405
  }
6402
- ]), ia = /* @__PURE__ */ A.makeEnum("livekit.ParticipantInfo.KindDetail", [
6406
+ ]), ia = /* @__PURE__ */ j.makeEnum("livekit.ParticipantInfo.KindDetail", [
6403
6407
  {
6404
6408
  no: 0,
6405
6409
  name: "CLOUD_AGENT"
@@ -6420,7 +6424,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6420
6424
  no: 4,
6421
6425
  name: "BRIDGE_RTSP"
6422
6426
  }
6423
- ]), M = /* @__PURE__ */ A.makeEnum("livekit.Encryption.Type", [
6427
+ ]), M = /* @__PURE__ */ j.makeEnum("livekit.Encryption.Type", [
6424
6428
  {
6425
6429
  no: 0,
6426
6430
  name: "NONE"
@@ -6433,7 +6437,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6433
6437
  no: 2,
6434
6438
  name: "CUSTOM"
6435
6439
  }
6436
- ]), aa = /* @__PURE__ */ A.makeMessageType("livekit.SimulcastCodecInfo", () => [
6440
+ ]), aa = /* @__PURE__ */ j.makeMessageType("livekit.SimulcastCodecInfo", () => [
6437
6441
  {
6438
6442
  no: 1,
6439
6443
  name: "mime_type",
@@ -6463,7 +6467,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6463
6467
  no: 5,
6464
6468
  name: "video_layer_mode",
6465
6469
  kind: "enum",
6466
- T: A.getEnumType(ua)
6470
+ T: j.getEnumType(ua)
6467
6471
  },
6468
6472
  {
6469
6473
  no: 6,
@@ -6471,7 +6475,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6471
6475
  kind: "scalar",
6472
6476
  T: 9
6473
6477
  }
6474
- ]), oa = /* @__PURE__ */ A.makeMessageType("livekit.TrackInfo", () => [
6478
+ ]), oa = /* @__PURE__ */ j.makeMessageType("livekit.TrackInfo", () => [
6475
6479
  {
6476
6480
  no: 1,
6477
6481
  name: "sid",
@@ -6482,7 +6486,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6482
6486
  no: 2,
6483
6487
  name: "type",
6484
6488
  kind: "enum",
6485
- T: A.getEnumType(Wi)
6489
+ T: j.getEnumType(Ui)
6486
6490
  },
6487
6491
  {
6488
6492
  no: 3,
@@ -6524,7 +6528,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6524
6528
  no: 9,
6525
6529
  name: "source",
6526
6530
  kind: "enum",
6527
- T: A.getEnumType(j)
6531
+ T: j.getEnumType(Wi)
6528
6532
  },
6529
6533
  {
6530
6534
  no: 10,
@@ -6568,7 +6572,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6568
6572
  no: 16,
6569
6573
  name: "encryption",
6570
6574
  kind: "enum",
6571
- T: A.getEnumType(M)
6575
+ T: j.getEnumType(M)
6572
6576
  },
6573
6577
  {
6574
6578
  no: 17,
@@ -6586,16 +6590,16 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6586
6590
  no: 19,
6587
6591
  name: "audio_features",
6588
6592
  kind: "enum",
6589
- T: A.getEnumType(Zi),
6593
+ T: j.getEnumType(Zi),
6590
6594
  repeated: !0
6591
6595
  },
6592
6596
  {
6593
6597
  no: 20,
6594
6598
  name: "backup_codec_policy",
6595
6599
  kind: "enum",
6596
- T: A.getEnumType(Ui)
6600
+ T: j.getEnumType(Hi)
6597
6601
  }
6598
- ]), sa = /* @__PURE__ */ A.makeMessageType("livekit.DataTrackInfo", () => [
6602
+ ]), sa = /* @__PURE__ */ j.makeMessageType("livekit.DataTrackInfo", () => [
6599
6603
  {
6600
6604
  no: 1,
6601
6605
  name: "pub_handle",
@@ -6618,20 +6622,20 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6618
6622
  no: 4,
6619
6623
  name: "encryption",
6620
6624
  kind: "enum",
6621
- T: A.getEnumType(M)
6625
+ T: j.getEnumType(M)
6622
6626
  }
6623
- ]), ca = /* @__PURE__ */ A.makeMessageType("livekit.DataTrackSubscriptionOptions", () => [{
6627
+ ]), ca = /* @__PURE__ */ j.makeMessageType("livekit.DataTrackSubscriptionOptions", () => [{
6624
6628
  no: 1,
6625
6629
  name: "target_fps",
6626
6630
  kind: "scalar",
6627
6631
  T: 13,
6628
6632
  opt: !0
6629
- }]), la = /* @__PURE__ */ A.makeMessageType("livekit.VideoLayer", () => [
6633
+ }]), la = /* @__PURE__ */ j.makeMessageType("livekit.VideoLayer", () => [
6630
6634
  {
6631
6635
  no: 1,
6632
6636
  name: "quality",
6633
6637
  kind: "enum",
6634
- T: A.getEnumType(Gi)
6638
+ T: j.getEnumType(Gi)
6635
6639
  },
6636
6640
  {
6637
6641
  no: 2,
@@ -6675,7 +6679,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6675
6679
  kind: "scalar",
6676
6680
  T: 13
6677
6681
  }
6678
- ]), ua = /* @__PURE__ */ A.makeEnum("livekit.VideoLayer.Mode", [
6682
+ ]), ua = /* @__PURE__ */ j.makeEnum("livekit.VideoLayer.Mode", [
6679
6683
  {
6680
6684
  no: 0,
6681
6685
  name: "MODE_UNUSED"
@@ -6692,12 +6696,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6692
6696
  no: 3,
6693
6697
  name: "ONE_SPATIAL_LAYER_PER_STREAM_INCOMPLETE_RTCP_SR"
6694
6698
  }
6695
- ]), da = /* @__PURE__ */ A.makeMessageType("livekit.DataPacket", () => [
6699
+ ]), da = /* @__PURE__ */ j.makeMessageType("livekit.DataPacket", () => [
6696
6700
  {
6697
6701
  no: 1,
6698
6702
  name: "kind",
6699
6703
  kind: "enum",
6700
- T: A.getEnumType(fa)
6704
+ T: j.getEnumType(fa)
6701
6705
  },
6702
6706
  {
6703
6707
  no: 4,
@@ -6744,7 +6748,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6744
6748
  no: 8,
6745
6749
  name: "metrics",
6746
6750
  kind: "message",
6747
- T: zi,
6751
+ T: Ri,
6748
6752
  oneof: "value"
6749
6753
  },
6750
6754
  {
@@ -6815,18 +6819,18 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6815
6819
  kind: "scalar",
6816
6820
  T: 9
6817
6821
  }
6818
- ]), fa = /* @__PURE__ */ A.makeEnum("livekit.DataPacket.Kind", [{
6822
+ ]), fa = /* @__PURE__ */ j.makeEnum("livekit.DataPacket.Kind", [{
6819
6823
  no: 0,
6820
6824
  name: "RELIABLE"
6821
6825
  }, {
6822
6826
  no: 1,
6823
6827
  name: "LOSSY"
6824
- }]), pa = /* @__PURE__ */ A.makeMessageType("livekit.EncryptedPacket", () => [
6828
+ }]), pa = /* @__PURE__ */ j.makeMessageType("livekit.EncryptedPacket", () => [
6825
6829
  {
6826
6830
  no: 1,
6827
6831
  name: "encryption_type",
6828
6832
  kind: "enum",
6829
- T: A.getEnumType(M)
6833
+ T: j.getEnumType(M)
6830
6834
  },
6831
6835
  {
6832
6836
  no: 2,
@@ -6846,7 +6850,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6846
6850
  kind: "scalar",
6847
6851
  T: 12
6848
6852
  }
6849
- ]), ma = /* @__PURE__ */ A.makeMessageType("livekit.EncryptedPacketPayload", () => [
6853
+ ]), ma = /* @__PURE__ */ j.makeMessageType("livekit.EncryptedPacketPayload", () => [
6850
6854
  {
6851
6855
  no: 1,
6852
6856
  name: "user",
@@ -6903,13 +6907,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6903
6907
  T: Ba,
6904
6908
  oneof: "value"
6905
6909
  }
6906
- ]), ha = /* @__PURE__ */ A.makeMessageType("livekit.ActiveSpeakerUpdate", () => [{
6910
+ ]), ha = /* @__PURE__ */ j.makeMessageType("livekit.ActiveSpeakerUpdate", () => [{
6907
6911
  no: 1,
6908
6912
  name: "speakers",
6909
6913
  kind: "message",
6910
6914
  T: ga,
6911
6915
  repeated: !0
6912
- }]), ga = /* @__PURE__ */ A.makeMessageType("livekit.SpeakerInfo", () => [
6916
+ }]), ga = /* @__PURE__ */ j.makeMessageType("livekit.SpeakerInfo", () => [
6913
6917
  {
6914
6918
  no: 1,
6915
6919
  name: "sid",
@@ -6928,7 +6932,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6928
6932
  kind: "scalar",
6929
6933
  T: 8
6930
6934
  }
6931
- ]), _a = /* @__PURE__ */ A.makeMessageType("livekit.UserPacket", () => [
6935
+ ]), _a = /* @__PURE__ */ j.makeMessageType("livekit.UserPacket", () => [
6932
6936
  {
6933
6937
  no: 1,
6934
6938
  name: "participant_sid",
@@ -6995,7 +6999,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
6995
6999
  kind: "scalar",
6996
7000
  T: 12
6997
7001
  }
6998
- ]), va = /* @__PURE__ */ A.makeMessageType("livekit.SipDTMF", () => [{
7002
+ ]), va = /* @__PURE__ */ j.makeMessageType("livekit.SipDTMF", () => [{
6999
7003
  no: 3,
7000
7004
  name: "code",
7001
7005
  kind: "scalar",
@@ -7005,7 +7009,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7005
7009
  name: "digit",
7006
7010
  kind: "scalar",
7007
7011
  T: 9
7008
- }]), ya = /* @__PURE__ */ A.makeMessageType("livekit.Transcription", () => [
7012
+ }]), ya = /* @__PURE__ */ j.makeMessageType("livekit.Transcription", () => [
7009
7013
  {
7010
7014
  no: 2,
7011
7015
  name: "transcribed_participant_identity",
@@ -7025,7 +7029,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7025
7029
  T: ba,
7026
7030
  repeated: !0
7027
7031
  }
7028
- ]), ba = /* @__PURE__ */ A.makeMessageType("livekit.TranscriptionSegment", () => [
7032
+ ]), ba = /* @__PURE__ */ j.makeMessageType("livekit.TranscriptionSegment", () => [
7029
7033
  {
7030
7034
  no: 1,
7031
7035
  name: "id",
@@ -7062,7 +7066,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7062
7066
  kind: "scalar",
7063
7067
  T: 9
7064
7068
  }
7065
- ]), xa = /* @__PURE__ */ A.makeMessageType("livekit.ChatMessage", () => [
7069
+ ]), xa = /* @__PURE__ */ j.makeMessageType("livekit.ChatMessage", () => [
7066
7070
  {
7067
7071
  no: 1,
7068
7072
  name: "id",
@@ -7100,7 +7104,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7100
7104
  kind: "scalar",
7101
7105
  T: 8
7102
7106
  }
7103
- ]), Sa = /* @__PURE__ */ A.makeMessageType("livekit.RpcRequest", () => [
7107
+ ]), Sa = /* @__PURE__ */ j.makeMessageType("livekit.RpcRequest", () => [
7104
7108
  {
7105
7109
  no: 1,
7106
7110
  name: "id",
@@ -7131,12 +7135,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7131
7135
  kind: "scalar",
7132
7136
  T: 13
7133
7137
  }
7134
- ]), Ca = /* @__PURE__ */ A.makeMessageType("livekit.RpcAck", () => [{
7138
+ ]), Ca = /* @__PURE__ */ j.makeMessageType("livekit.RpcAck", () => [{
7135
7139
  no: 1,
7136
7140
  name: "request_id",
7137
7141
  kind: "scalar",
7138
7142
  T: 9
7139
- }]), wa = /* @__PURE__ */ A.makeMessageType("livekit.RpcResponse", () => [
7143
+ }]), wa = /* @__PURE__ */ j.makeMessageType("livekit.RpcResponse", () => [
7140
7144
  {
7141
7145
  no: 1,
7142
7146
  name: "request_id",
@@ -7157,7 +7161,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7157
7161
  T: Ta,
7158
7162
  oneof: "value"
7159
7163
  }
7160
- ]), Ta = /* @__PURE__ */ A.makeMessageType("livekit.RpcError", () => [
7164
+ ]), Ta = /* @__PURE__ */ j.makeMessageType("livekit.RpcError", () => [
7161
7165
  {
7162
7166
  no: 1,
7163
7167
  name: "code",
@@ -7176,7 +7180,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7176
7180
  kind: "scalar",
7177
7181
  T: 9
7178
7182
  }
7179
- ]), Ea = /* @__PURE__ */ A.makeMessageType("livekit.ParticipantTracks", () => [{
7183
+ ]), Ea = /* @__PURE__ */ j.makeMessageType("livekit.ParticipantTracks", () => [{
7180
7184
  no: 1,
7181
7185
  name: "participant_sid",
7182
7186
  kind: "scalar",
@@ -7187,12 +7191,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7187
7191
  kind: "scalar",
7188
7192
  T: 9,
7189
7193
  repeated: !0
7190
- }]), Da = /* @__PURE__ */ A.makeMessageType("livekit.ServerInfo", () => [
7194
+ }]), Da = /* @__PURE__ */ j.makeMessageType("livekit.ServerInfo", () => [
7191
7195
  {
7192
7196
  no: 1,
7193
7197
  name: "edition",
7194
7198
  kind: "enum",
7195
- T: A.getEnumType(Oa)
7199
+ T: j.getEnumType(Oa)
7196
7200
  },
7197
7201
  {
7198
7202
  no: 2,
@@ -7230,18 +7234,18 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7230
7234
  kind: "scalar",
7231
7235
  T: 5
7232
7236
  }
7233
- ]), Oa = /* @__PURE__ */ A.makeEnum("livekit.ServerInfo.Edition", [{
7237
+ ]), Oa = /* @__PURE__ */ j.makeEnum("livekit.ServerInfo.Edition", [{
7234
7238
  no: 0,
7235
7239
  name: "Standard"
7236
7240
  }, {
7237
7241
  no: 1,
7238
7242
  name: "Cloud"
7239
- }]), ka = /* @__PURE__ */ A.makeMessageType("livekit.ClientInfo", () => [
7243
+ }]), ka = /* @__PURE__ */ j.makeMessageType("livekit.ClientInfo", () => [
7240
7244
  {
7241
7245
  no: 1,
7242
7246
  name: "sdk",
7243
7247
  kind: "enum",
7244
- T: A.getEnumType(Aa)
7248
+ T: j.getEnumType(Aa)
7245
7249
  },
7246
7250
  {
7247
7251
  no: 2,
@@ -7303,7 +7307,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7303
7307
  kind: "scalar",
7304
7308
  T: 9
7305
7309
  }
7306
- ]), Aa = /* @__PURE__ */ A.makeEnum("livekit.ClientInfo.SDK", [
7310
+ ]), Aa = /* @__PURE__ */ j.makeEnum("livekit.ClientInfo.SDK", [
7307
7311
  {
7308
7312
  no: 0,
7309
7313
  name: "UNKNOWN"
@@ -7364,7 +7368,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7364
7368
  no: 14,
7365
7369
  name: "ESP32"
7366
7370
  }
7367
- ]), ja = /* @__PURE__ */ A.makeMessageType("livekit.ClientConfiguration", () => [
7371
+ ]), ja = /* @__PURE__ */ j.makeMessageType("livekit.ClientConfiguration", () => [
7368
7372
  {
7369
7373
  no: 1,
7370
7374
  name: "video",
@@ -7381,7 +7385,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7381
7385
  no: 3,
7382
7386
  name: "resume_connection",
7383
7387
  kind: "enum",
7384
- T: A.getEnumType(qi)
7388
+ T: j.getEnumType(qi)
7385
7389
  },
7386
7390
  {
7387
7391
  no: 4,
@@ -7393,14 +7397,14 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7393
7397
  no: 5,
7394
7398
  name: "force_relay",
7395
7399
  kind: "enum",
7396
- T: A.getEnumType(qi)
7400
+ T: j.getEnumType(qi)
7397
7401
  }
7398
- ]), Ma = /* @__PURE__ */ A.makeMessageType("livekit.VideoConfiguration", () => [{
7402
+ ]), Ma = /* @__PURE__ */ j.makeMessageType("livekit.VideoConfiguration", () => [{
7399
7403
  no: 1,
7400
7404
  name: "hardware_encoder",
7401
7405
  kind: "enum",
7402
- T: A.getEnumType(qi)
7403
- }]), Na = /* @__PURE__ */ A.makeMessageType("livekit.DisabledCodecs", () => [{
7406
+ T: j.getEnumType(qi)
7407
+ }]), Na = /* @__PURE__ */ j.makeMessageType("livekit.DisabledCodecs", () => [{
7404
7408
  no: 1,
7405
7409
  name: "codecs",
7406
7410
  kind: "message",
@@ -7412,7 +7416,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7412
7416
  kind: "message",
7413
7417
  T: $i,
7414
7418
  repeated: !0
7415
- }]), Pa = /* @__PURE__ */ A.makeMessageType("livekit.TimedVersion", () => [{
7419
+ }]), Pa = /* @__PURE__ */ j.makeMessageType("livekit.TimedVersion", () => [{
7416
7420
  no: 1,
7417
7421
  name: "unix_micro",
7418
7422
  kind: "scalar",
@@ -7422,7 +7426,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7422
7426
  name: "ticks",
7423
7427
  kind: "scalar",
7424
7428
  T: 5
7425
- }]), Fa = /* @__PURE__ */ A.makeEnum("livekit.DataStream.OperationType", [
7429
+ }]), Fa = /* @__PURE__ */ j.makeEnum("livekit.DataStream.OperationType", [
7426
7430
  {
7427
7431
  no: 0,
7428
7432
  name: "CREATE"
@@ -7439,12 +7443,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7439
7443
  no: 3,
7440
7444
  name: "REACTION"
7441
7445
  }
7442
- ]), Ia = /* @__PURE__ */ A.makeMessageType("livekit.DataStream.TextHeader", () => [
7446
+ ]), Ia = /* @__PURE__ */ j.makeMessageType("livekit.DataStream.TextHeader", () => [
7443
7447
  {
7444
7448
  no: 1,
7445
7449
  name: "operation_type",
7446
7450
  kind: "enum",
7447
- T: A.getEnumType(Fa)
7451
+ T: j.getEnumType(Fa)
7448
7452
  },
7449
7453
  {
7450
7454
  no: 2,
@@ -7471,12 +7475,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7471
7475
  kind: "scalar",
7472
7476
  T: 8
7473
7477
  }
7474
- ], { localName: "DataStream_TextHeader" }), La = /* @__PURE__ */ A.makeMessageType("livekit.DataStream.ByteHeader", () => [{
7478
+ ], { localName: "DataStream_TextHeader" }), La = /* @__PURE__ */ j.makeMessageType("livekit.DataStream.ByteHeader", () => [{
7475
7479
  no: 1,
7476
7480
  name: "name",
7477
7481
  kind: "scalar",
7478
7482
  T: 9
7479
- }], { localName: "DataStream_ByteHeader" }), Ra = /* @__PURE__ */ A.makeMessageType("livekit.DataStream.Header", () => [
7483
+ }], { localName: "DataStream_ByteHeader" }), Ra = /* @__PURE__ */ j.makeMessageType("livekit.DataStream.Header", () => [
7480
7484
  {
7481
7485
  no: 1,
7482
7486
  name: "stream_id",
@@ -7512,7 +7516,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7512
7516
  no: 7,
7513
7517
  name: "encryption_type",
7514
7518
  kind: "enum",
7515
- T: A.getEnumType(M)
7519
+ T: j.getEnumType(M)
7516
7520
  },
7517
7521
  {
7518
7522
  no: 8,
@@ -7538,7 +7542,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7538
7542
  T: La,
7539
7543
  oneof: "content_header"
7540
7544
  }
7541
- ], { localName: "DataStream_Header" }), za = /* @__PURE__ */ A.makeMessageType("livekit.DataStream.Chunk", () => [
7545
+ ], { localName: "DataStream_Header" }), za = /* @__PURE__ */ j.makeMessageType("livekit.DataStream.Chunk", () => [
7542
7546
  {
7543
7547
  no: 1,
7544
7548
  name: "stream_id",
@@ -7570,7 +7574,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7570
7574
  T: 12,
7571
7575
  opt: !0
7572
7576
  }
7573
- ], { localName: "DataStream_Chunk" }), Ba = /* @__PURE__ */ A.makeMessageType("livekit.DataStream.Trailer", () => [
7577
+ ], { localName: "DataStream_Chunk" }), Ba = /* @__PURE__ */ j.makeMessageType("livekit.DataStream.Trailer", () => [
7574
7578
  {
7575
7579
  no: 1,
7576
7580
  name: "stream_id",
@@ -7593,7 +7597,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7593
7597
  T: 9
7594
7598
  }
7595
7599
  }
7596
- ], { localName: "DataStream_Trailer" }), Va = /* @__PURE__ */ A.makeMessageType("livekit.SubscribedAudioCodec", () => [{
7600
+ ], { localName: "DataStream_Trailer" }), Va = /* @__PURE__ */ j.makeMessageType("livekit.SubscribedAudioCodec", () => [{
7597
7601
  no: 1,
7598
7602
  name: "codec",
7599
7603
  kind: "scalar",
@@ -7603,19 +7607,19 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7603
7607
  name: "enabled",
7604
7608
  kind: "scalar",
7605
7609
  T: 8
7606
- }]), Ha = /* @__PURE__ */ A.makeEnum("livekit.SignalTarget", [{
7610
+ }]), Ha = /* @__PURE__ */ j.makeEnum("livekit.SignalTarget", [{
7607
7611
  no: 0,
7608
7612
  name: "PUBLISHER"
7609
7613
  }, {
7610
7614
  no: 1,
7611
7615
  name: "SUBSCRIBER"
7612
- }]), Ua = /* @__PURE__ */ A.makeEnum("livekit.StreamState", [{
7616
+ }]), Ua = /* @__PURE__ */ j.makeEnum("livekit.StreamState", [{
7613
7617
  no: 0,
7614
7618
  name: "ACTIVE"
7615
7619
  }, {
7616
7620
  no: 1,
7617
7621
  name: "PAUSED"
7618
- }]), Wa = /* @__PURE__ */ A.makeEnum("livekit.CandidateProtocol", [
7622
+ }]), Wa = /* @__PURE__ */ j.makeEnum("livekit.CandidateProtocol", [
7619
7623
  {
7620
7624
  no: 0,
7621
7625
  name: "UDP"
@@ -7628,7 +7632,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7628
7632
  no: 2,
7629
7633
  name: "TLS"
7630
7634
  }
7631
- ]), Ga = /* @__PURE__ */ A.makeMessageType("livekit.SignalRequest", () => [
7635
+ ]), Ga = /* @__PURE__ */ j.makeMessageType("livekit.SignalRequest", () => [
7632
7636
  {
7633
7637
  no: 1,
7634
7638
  name: "offer",
@@ -7769,7 +7773,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7769
7773
  T: uo,
7770
7774
  oneof: "message"
7771
7775
  }
7772
- ]), Ka = /* @__PURE__ */ A.makeMessageType("livekit.SignalResponse", () => [
7776
+ ]), Ka = /* @__PURE__ */ j.makeMessageType("livekit.SignalResponse", () => [
7773
7777
  {
7774
7778
  no: 1,
7775
7779
  name: "join",
@@ -7966,7 +7970,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7966
7970
  T: $a,
7967
7971
  oneof: "message"
7968
7972
  }
7969
- ]), qa = /* @__PURE__ */ A.makeMessageType("livekit.SimulcastCodec", () => [
7973
+ ]), qa = /* @__PURE__ */ j.makeMessageType("livekit.SimulcastCodec", () => [
7970
7974
  {
7971
7975
  no: 1,
7972
7976
  name: "codec",
@@ -7990,9 +7994,9 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
7990
7994
  no: 5,
7991
7995
  name: "video_layer_mode",
7992
7996
  kind: "enum",
7993
- T: A.getEnumType(ua)
7997
+ T: j.getEnumType(ua)
7994
7998
  }
7995
- ]), Ja = /* @__PURE__ */ A.makeMessageType("livekit.AddTrackRequest", () => [
7999
+ ]), Ja = /* @__PURE__ */ j.makeMessageType("livekit.AddTrackRequest", () => [
7996
8000
  {
7997
8001
  no: 1,
7998
8002
  name: "cid",
@@ -8009,7 +8013,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8009
8013
  no: 3,
8010
8014
  name: "type",
8011
8015
  kind: "enum",
8012
- T: A.getEnumType(Wi)
8016
+ T: j.getEnumType(Ui)
8013
8017
  },
8014
8018
  {
8015
8019
  no: 4,
@@ -8039,7 +8043,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8039
8043
  no: 8,
8040
8044
  name: "source",
8041
8045
  kind: "enum",
8042
- T: A.getEnumType(j)
8046
+ T: j.getEnumType(Wi)
8043
8047
  },
8044
8048
  {
8045
8049
  no: 9,
@@ -8077,7 +8081,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8077
8081
  no: 14,
8078
8082
  name: "encryption",
8079
8083
  kind: "enum",
8080
- T: A.getEnumType(M)
8084
+ T: j.getEnumType(M)
8081
8085
  },
8082
8086
  {
8083
8087
  no: 15,
@@ -8089,16 +8093,16 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8089
8093
  no: 16,
8090
8094
  name: "backup_codec_policy",
8091
8095
  kind: "enum",
8092
- T: A.getEnumType(Ui)
8096
+ T: j.getEnumType(Hi)
8093
8097
  },
8094
8098
  {
8095
8099
  no: 17,
8096
8100
  name: "audio_features",
8097
8101
  kind: "enum",
8098
- T: A.getEnumType(Zi),
8102
+ T: j.getEnumType(Zi),
8099
8103
  repeated: !0
8100
8104
  }
8101
- ]), Ya = /* @__PURE__ */ A.makeMessageType("livekit.PublishDataTrackRequest", () => [
8105
+ ]), Ya = /* @__PURE__ */ j.makeMessageType("livekit.PublishDataTrackRequest", () => [
8102
8106
  {
8103
8107
  no: 1,
8104
8108
  name: "pub_handle",
@@ -8115,24 +8119,24 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8115
8119
  no: 3,
8116
8120
  name: "encryption",
8117
8121
  kind: "enum",
8118
- T: A.getEnumType(M)
8122
+ T: j.getEnumType(M)
8119
8123
  }
8120
- ]), Xa = /* @__PURE__ */ A.makeMessageType("livekit.PublishDataTrackResponse", () => [{
8124
+ ]), Xa = /* @__PURE__ */ j.makeMessageType("livekit.PublishDataTrackResponse", () => [{
8121
8125
  no: 1,
8122
8126
  name: "info",
8123
8127
  kind: "message",
8124
8128
  T: sa
8125
- }]), Za = /* @__PURE__ */ A.makeMessageType("livekit.UnpublishDataTrackRequest", () => [{
8129
+ }]), Za = /* @__PURE__ */ j.makeMessageType("livekit.UnpublishDataTrackRequest", () => [{
8126
8130
  no: 1,
8127
8131
  name: "pub_handle",
8128
8132
  kind: "scalar",
8129
8133
  T: 13
8130
- }]), Qa = /* @__PURE__ */ A.makeMessageType("livekit.UnpublishDataTrackResponse", () => [{
8134
+ }]), Qa = /* @__PURE__ */ j.makeMessageType("livekit.UnpublishDataTrackResponse", () => [{
8131
8135
  no: 1,
8132
8136
  name: "info",
8133
8137
  kind: "message",
8134
8138
  T: sa
8135
- }]), $a = /* @__PURE__ */ A.makeMessageType("livekit.DataTrackSubscriberHandles", () => [{
8139
+ }]), $a = /* @__PURE__ */ j.makeMessageType("livekit.DataTrackSubscriberHandles", () => [{
8136
8140
  no: 1,
8137
8141
  name: "sub_handles",
8138
8142
  kind: "map",
@@ -8141,7 +8145,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8141
8145
  kind: "message",
8142
8146
  T: eo
8143
8147
  }
8144
- }]), eo = /* @__PURE__ */ A.makeMessageType("livekit.DataTrackSubscriberHandles.PublishedDataTrack", () => [
8148
+ }]), eo = /* @__PURE__ */ j.makeMessageType("livekit.DataTrackSubscriberHandles.PublishedDataTrack", () => [
8145
8149
  {
8146
8150
  no: 1,
8147
8151
  name: "publisher_identity",
@@ -8160,7 +8164,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8160
8164
  kind: "scalar",
8161
8165
  T: 9
8162
8166
  }
8163
- ], { localName: "DataTrackSubscriberHandles_PublishedDataTrack" }), to = /* @__PURE__ */ A.makeMessageType("livekit.TrickleRequest", () => [
8167
+ ], { localName: "DataTrackSubscriberHandles_PublishedDataTrack" }), to = /* @__PURE__ */ j.makeMessageType("livekit.TrickleRequest", () => [
8164
8168
  {
8165
8169
  no: 1,
8166
8170
  name: "candidateInit",
@@ -8171,7 +8175,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8171
8175
  no: 2,
8172
8176
  name: "target",
8173
8177
  kind: "enum",
8174
- T: A.getEnumType(Ha)
8178
+ T: j.getEnumType(Ha)
8175
8179
  },
8176
8180
  {
8177
8181
  no: 3,
@@ -8179,7 +8183,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8179
8183
  kind: "scalar",
8180
8184
  T: 8
8181
8185
  }
8182
- ]), no = /* @__PURE__ */ A.makeMessageType("livekit.MuteTrackRequest", () => [{
8186
+ ]), no = /* @__PURE__ */ j.makeMessageType("livekit.MuteTrackRequest", () => [{
8183
8187
  no: 1,
8184
8188
  name: "sid",
8185
8189
  kind: "scalar",
@@ -8189,7 +8193,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8189
8193
  name: "muted",
8190
8194
  kind: "scalar",
8191
8195
  T: 8
8192
- }]), ro = /* @__PURE__ */ A.makeMessageType("livekit.JoinResponse", () => [
8196
+ }]), ro = /* @__PURE__ */ j.makeMessageType("livekit.JoinResponse", () => [
8193
8197
  {
8194
8198
  no: 1,
8195
8199
  name: "room",
@@ -8283,7 +8287,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8283
8287
  kind: "scalar",
8284
8288
  T: 8
8285
8289
  }
8286
- ]), io = /* @__PURE__ */ A.makeMessageType("livekit.ReconnectResponse", () => [
8290
+ ]), io = /* @__PURE__ */ j.makeMessageType("livekit.ReconnectResponse", () => [
8287
8291
  {
8288
8292
  no: 1,
8289
8293
  name: "ice_servers",
@@ -8309,7 +8313,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8309
8313
  kind: "scalar",
8310
8314
  T: 13
8311
8315
  }
8312
- ]), ao = /* @__PURE__ */ A.makeMessageType("livekit.TrackPublishedResponse", () => [{
8316
+ ]), ao = /* @__PURE__ */ j.makeMessageType("livekit.TrackPublishedResponse", () => [{
8313
8317
  no: 1,
8314
8318
  name: "cid",
8315
8319
  kind: "scalar",
@@ -8319,12 +8323,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8319
8323
  name: "track",
8320
8324
  kind: "message",
8321
8325
  T: oa
8322
- }]), oo = /* @__PURE__ */ A.makeMessageType("livekit.TrackUnpublishedResponse", () => [{
8326
+ }]), oo = /* @__PURE__ */ j.makeMessageType("livekit.TrackUnpublishedResponse", () => [{
8323
8327
  no: 1,
8324
8328
  name: "track_sid",
8325
8329
  kind: "scalar",
8326
8330
  T: 9
8327
- }]), so = /* @__PURE__ */ A.makeMessageType("livekit.SessionDescription", () => [
8331
+ }]), so = /* @__PURE__ */ j.makeMessageType("livekit.SessionDescription", () => [
8328
8332
  {
8329
8333
  no: 1,
8330
8334
  name: "type",
@@ -8353,13 +8357,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8353
8357
  T: 9
8354
8358
  }
8355
8359
  }
8356
- ]), co = /* @__PURE__ */ A.makeMessageType("livekit.ParticipantUpdate", () => [{
8360
+ ]), co = /* @__PURE__ */ j.makeMessageType("livekit.ParticipantUpdate", () => [{
8357
8361
  no: 1,
8358
8362
  name: "participants",
8359
8363
  kind: "message",
8360
8364
  T: ta,
8361
8365
  repeated: !0
8362
- }]), lo = /* @__PURE__ */ A.makeMessageType("livekit.UpdateSubscription", () => [
8366
+ }]), lo = /* @__PURE__ */ j.makeMessageType("livekit.UpdateSubscription", () => [
8363
8367
  {
8364
8368
  no: 1,
8365
8369
  name: "track_sids",
@@ -8380,13 +8384,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8380
8384
  T: Ea,
8381
8385
  repeated: !0
8382
8386
  }
8383
- ]), uo = /* @__PURE__ */ A.makeMessageType("livekit.UpdateDataSubscription", () => [{
8387
+ ]), uo = /* @__PURE__ */ j.makeMessageType("livekit.UpdateDataSubscription", () => [{
8384
8388
  no: 1,
8385
8389
  name: "updates",
8386
8390
  kind: "message",
8387
8391
  T: fo,
8388
8392
  repeated: !0
8389
- }]), fo = /* @__PURE__ */ A.makeMessageType("livekit.UpdateDataSubscription.Update", () => [
8393
+ }]), fo = /* @__PURE__ */ j.makeMessageType("livekit.UpdateDataSubscription.Update", () => [
8390
8394
  {
8391
8395
  no: 1,
8392
8396
  name: "track_sid",
@@ -8405,7 +8409,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8405
8409
  kind: "message",
8406
8410
  T: ca
8407
8411
  }
8408
- ], { localName: "UpdateDataSubscription_Update" }), po = /* @__PURE__ */ A.makeMessageType("livekit.UpdateTrackSettings", () => [
8412
+ ], { localName: "UpdateDataSubscription_Update" }), po = /* @__PURE__ */ j.makeMessageType("livekit.UpdateTrackSettings", () => [
8409
8413
  {
8410
8414
  no: 1,
8411
8415
  name: "track_sids",
@@ -8423,7 +8427,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8423
8427
  no: 4,
8424
8428
  name: "quality",
8425
8429
  kind: "enum",
8426
- T: A.getEnumType(Gi)
8430
+ T: j.getEnumType(Gi)
8427
8431
  },
8428
8432
  {
8429
8433
  no: 5,
@@ -8449,7 +8453,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8449
8453
  kind: "scalar",
8450
8454
  T: 13
8451
8455
  }
8452
- ]), mo = /* @__PURE__ */ A.makeMessageType("livekit.UpdateLocalAudioTrack", () => [{
8456
+ ]), mo = /* @__PURE__ */ j.makeMessageType("livekit.UpdateLocalAudioTrack", () => [{
8453
8457
  no: 1,
8454
8458
  name: "track_sid",
8455
8459
  kind: "scalar",
@@ -8458,9 +8462,9 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8458
8462
  no: 2,
8459
8463
  name: "features",
8460
8464
  kind: "enum",
8461
- T: A.getEnumType(Zi),
8465
+ T: j.getEnumType(Zi),
8462
8466
  repeated: !0
8463
- }]), ho = /* @__PURE__ */ A.makeMessageType("livekit.UpdateLocalVideoTrack", () => [
8467
+ }]), ho = /* @__PURE__ */ j.makeMessageType("livekit.UpdateLocalVideoTrack", () => [
8464
8468
  {
8465
8469
  no: 1,
8466
8470
  name: "track_sid",
@@ -8479,7 +8483,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8479
8483
  kind: "scalar",
8480
8484
  T: 13
8481
8485
  }
8482
- ]), go = /* @__PURE__ */ A.makeMessageType("livekit.LeaveRequest", () => [
8486
+ ]), go = /* @__PURE__ */ j.makeMessageType("livekit.LeaveRequest", () => [
8483
8487
  {
8484
8488
  no: 1,
8485
8489
  name: "can_reconnect",
@@ -8490,13 +8494,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8490
8494
  no: 2,
8491
8495
  name: "reason",
8492
8496
  kind: "enum",
8493
- T: A.getEnumType(Ji)
8497
+ T: j.getEnumType(Ji)
8494
8498
  },
8495
8499
  {
8496
8500
  no: 3,
8497
8501
  name: "action",
8498
8502
  kind: "enum",
8499
- T: A.getEnumType(_o)
8503
+ T: j.getEnumType(_o)
8500
8504
  },
8501
8505
  {
8502
8506
  no: 4,
@@ -8504,7 +8508,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8504
8508
  kind: "message",
8505
8509
  T: Vo
8506
8510
  }
8507
- ]), _o = /* @__PURE__ */ A.makeEnum("livekit.LeaveRequest.Action", [
8511
+ ]), _o = /* @__PURE__ */ j.makeEnum("livekit.LeaveRequest.Action", [
8508
8512
  {
8509
8513
  no: 0,
8510
8514
  name: "DISCONNECT"
@@ -8517,7 +8521,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8517
8521
  no: 2,
8518
8522
  name: "RECONNECT"
8519
8523
  }
8520
- ]), vo = /* @__PURE__ */ A.makeMessageType("livekit.UpdateVideoLayers", () => [{
8524
+ ]), vo = /* @__PURE__ */ j.makeMessageType("livekit.UpdateVideoLayers", () => [{
8521
8525
  no: 1,
8522
8526
  name: "track_sid",
8523
8527
  kind: "scalar",
@@ -8528,7 +8532,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8528
8532
  kind: "message",
8529
8533
  T: la,
8530
8534
  repeated: !0
8531
- }]), yo = /* @__PURE__ */ A.makeMessageType("livekit.UpdateParticipantMetadata", () => [
8535
+ }]), yo = /* @__PURE__ */ j.makeMessageType("livekit.UpdateParticipantMetadata", () => [
8532
8536
  {
8533
8537
  no: 1,
8534
8538
  name: "metadata",
@@ -8557,7 +8561,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8557
8561
  kind: "scalar",
8558
8562
  T: 13
8559
8563
  }
8560
- ]), bo = /* @__PURE__ */ A.makeMessageType("livekit.ICEServer", () => [
8564
+ ]), bo = /* @__PURE__ */ j.makeMessageType("livekit.ICEServer", () => [
8561
8565
  {
8562
8566
  no: 1,
8563
8567
  name: "urls",
@@ -8577,18 +8581,18 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8577
8581
  kind: "scalar",
8578
8582
  T: 9
8579
8583
  }
8580
- ]), xo = /* @__PURE__ */ A.makeMessageType("livekit.SpeakersChanged", () => [{
8584
+ ]), xo = /* @__PURE__ */ j.makeMessageType("livekit.SpeakersChanged", () => [{
8581
8585
  no: 1,
8582
8586
  name: "speakers",
8583
8587
  kind: "message",
8584
8588
  T: ga,
8585
8589
  repeated: !0
8586
- }]), So = /* @__PURE__ */ A.makeMessageType("livekit.RoomUpdate", () => [{
8590
+ }]), So = /* @__PURE__ */ j.makeMessageType("livekit.RoomUpdate", () => [{
8587
8591
  no: 1,
8588
8592
  name: "room",
8589
8593
  kind: "message",
8590
8594
  T: Qi
8591
- }]), Co = /* @__PURE__ */ A.makeMessageType("livekit.ConnectionQualityInfo", () => [
8595
+ }]), Co = /* @__PURE__ */ j.makeMessageType("livekit.ConnectionQualityInfo", () => [
8592
8596
  {
8593
8597
  no: 1,
8594
8598
  name: "participant_sid",
@@ -8599,7 +8603,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8599
8603
  no: 2,
8600
8604
  name: "quality",
8601
8605
  kind: "enum",
8602
- T: A.getEnumType(Ki)
8606
+ T: j.getEnumType(Ki)
8603
8607
  },
8604
8608
  {
8605
8609
  no: 3,
@@ -8607,13 +8611,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8607
8611
  kind: "scalar",
8608
8612
  T: 2
8609
8613
  }
8610
- ]), wo = /* @__PURE__ */ A.makeMessageType("livekit.ConnectionQualityUpdate", () => [{
8614
+ ]), wo = /* @__PURE__ */ j.makeMessageType("livekit.ConnectionQualityUpdate", () => [{
8611
8615
  no: 1,
8612
8616
  name: "updates",
8613
8617
  kind: "message",
8614
8618
  T: Co,
8615
8619
  repeated: !0
8616
- }]), To = /* @__PURE__ */ A.makeMessageType("livekit.StreamStateInfo", () => [
8620
+ }]), To = /* @__PURE__ */ j.makeMessageType("livekit.StreamStateInfo", () => [
8617
8621
  {
8618
8622
  no: 1,
8619
8623
  name: "participant_sid",
@@ -8630,25 +8634,25 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8630
8634
  no: 3,
8631
8635
  name: "state",
8632
8636
  kind: "enum",
8633
- T: A.getEnumType(Ua)
8637
+ T: j.getEnumType(Ua)
8634
8638
  }
8635
- ]), Eo = /* @__PURE__ */ A.makeMessageType("livekit.StreamStateUpdate", () => [{
8639
+ ]), Eo = /* @__PURE__ */ j.makeMessageType("livekit.StreamStateUpdate", () => [{
8636
8640
  no: 1,
8637
8641
  name: "stream_states",
8638
8642
  kind: "message",
8639
8643
  T: To,
8640
8644
  repeated: !0
8641
- }]), Do = /* @__PURE__ */ A.makeMessageType("livekit.SubscribedQuality", () => [{
8645
+ }]), Do = /* @__PURE__ */ j.makeMessageType("livekit.SubscribedQuality", () => [{
8642
8646
  no: 1,
8643
8647
  name: "quality",
8644
8648
  kind: "enum",
8645
- T: A.getEnumType(Gi)
8649
+ T: j.getEnumType(Gi)
8646
8650
  }, {
8647
8651
  no: 2,
8648
8652
  name: "enabled",
8649
8653
  kind: "scalar",
8650
8654
  T: 8
8651
- }]), Oo = /* @__PURE__ */ A.makeMessageType("livekit.SubscribedCodec", () => [{
8655
+ }]), Oo = /* @__PURE__ */ j.makeMessageType("livekit.SubscribedCodec", () => [{
8652
8656
  no: 1,
8653
8657
  name: "codec",
8654
8658
  kind: "scalar",
@@ -8659,7 +8663,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8659
8663
  kind: "message",
8660
8664
  T: Do,
8661
8665
  repeated: !0
8662
- }]), ko = /* @__PURE__ */ A.makeMessageType("livekit.SubscribedQualityUpdate", () => [
8666
+ }]), ko = /* @__PURE__ */ j.makeMessageType("livekit.SubscribedQualityUpdate", () => [
8663
8667
  {
8664
8668
  no: 1,
8665
8669
  name: "track_sid",
@@ -8680,7 +8684,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8680
8684
  T: Oo,
8681
8685
  repeated: !0
8682
8686
  }
8683
- ]), Ao = /* @__PURE__ */ A.makeMessageType("livekit.SubscribedAudioCodecUpdate", () => [{
8687
+ ]), Ao = /* @__PURE__ */ j.makeMessageType("livekit.SubscribedAudioCodecUpdate", () => [{
8684
8688
  no: 1,
8685
8689
  name: "track_sid",
8686
8690
  kind: "scalar",
@@ -8691,7 +8695,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8691
8695
  kind: "message",
8692
8696
  T: Va,
8693
8697
  repeated: !0
8694
- }]), jo = /* @__PURE__ */ A.makeMessageType("livekit.TrackPermission", () => [
8698
+ }]), jo = /* @__PURE__ */ j.makeMessageType("livekit.TrackPermission", () => [
8695
8699
  {
8696
8700
  no: 1,
8697
8701
  name: "participant_sid",
@@ -8717,7 +8721,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8717
8721
  kind: "scalar",
8718
8722
  T: 9
8719
8723
  }
8720
- ]), Mo = /* @__PURE__ */ A.makeMessageType("livekit.SubscriptionPermission", () => [{
8724
+ ]), Mo = /* @__PURE__ */ j.makeMessageType("livekit.SubscriptionPermission", () => [{
8721
8725
  no: 1,
8722
8726
  name: "all_participants",
8723
8727
  kind: "scalar",
@@ -8728,7 +8732,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8728
8732
  kind: "message",
8729
8733
  T: jo,
8730
8734
  repeated: !0
8731
- }]), No = /* @__PURE__ */ A.makeMessageType("livekit.SubscriptionPermissionUpdate", () => [
8735
+ }]), No = /* @__PURE__ */ j.makeMessageType("livekit.SubscriptionPermissionUpdate", () => [
8732
8736
  {
8733
8737
  no: 1,
8734
8738
  name: "participant_sid",
@@ -8747,7 +8751,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8747
8751
  kind: "scalar",
8748
8752
  T: 8
8749
8753
  }
8750
- ]), Po = /* @__PURE__ */ A.makeMessageType("livekit.RoomMovedResponse", () => [
8754
+ ]), Po = /* @__PURE__ */ j.makeMessageType("livekit.RoomMovedResponse", () => [
8751
8755
  {
8752
8756
  no: 1,
8753
8757
  name: "room",
@@ -8773,7 +8777,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8773
8777
  T: ta,
8774
8778
  repeated: !0
8775
8779
  }
8776
- ]), Fo = /* @__PURE__ */ A.makeMessageType("livekit.SyncState", () => [
8780
+ ]), Fo = /* @__PURE__ */ j.makeMessageType("livekit.SyncState", () => [
8777
8781
  {
8778
8782
  no: 1,
8779
8783
  name: "answer",
@@ -8827,7 +8831,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8827
8831
  T: Xa,
8828
8832
  repeated: !0
8829
8833
  }
8830
- ]), Io = /* @__PURE__ */ A.makeMessageType("livekit.DataChannelReceiveState", () => [{
8834
+ ]), Io = /* @__PURE__ */ j.makeMessageType("livekit.DataChannelReceiveState", () => [{
8831
8835
  no: 1,
8832
8836
  name: "publisher_sid",
8833
8837
  kind: "scalar",
@@ -8837,7 +8841,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8837
8841
  name: "last_seq",
8838
8842
  kind: "scalar",
8839
8843
  T: 13
8840
- }]), Lo = /* @__PURE__ */ A.makeMessageType("livekit.DataChannelInfo", () => [
8844
+ }]), Lo = /* @__PURE__ */ j.makeMessageType("livekit.DataChannelInfo", () => [
8841
8845
  {
8842
8846
  no: 1,
8843
8847
  name: "label",
@@ -8854,9 +8858,9 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8854
8858
  no: 3,
8855
8859
  name: "target",
8856
8860
  kind: "enum",
8857
- T: A.getEnumType(Ha)
8861
+ T: j.getEnumType(Ha)
8858
8862
  }
8859
- ]), Ro = /* @__PURE__ */ A.makeMessageType("livekit.SimulateScenario", () => [
8863
+ ]), Ro = /* @__PURE__ */ j.makeMessageType("livekit.SimulateScenario", () => [
8860
8864
  {
8861
8865
  no: 1,
8862
8866
  name: "speaker_update",
@@ -8889,7 +8893,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8889
8893
  no: 5,
8890
8894
  name: "switch_candidate_protocol",
8891
8895
  kind: "enum",
8892
- T: A.getEnumType(Wa),
8896
+ T: j.getEnumType(Wa),
8893
8897
  oneof: "scenario"
8894
8898
  },
8895
8899
  {
@@ -8920,7 +8924,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8920
8924
  T: 8,
8921
8925
  oneof: "scenario"
8922
8926
  }
8923
- ]), zo = /* @__PURE__ */ A.makeMessageType("livekit.Ping", () => [{
8927
+ ]), zo = /* @__PURE__ */ j.makeMessageType("livekit.Ping", () => [{
8924
8928
  no: 1,
8925
8929
  name: "timestamp",
8926
8930
  kind: "scalar",
@@ -8930,7 +8934,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8930
8934
  name: "rtt",
8931
8935
  kind: "scalar",
8932
8936
  T: 3
8933
- }]), Bo = /* @__PURE__ */ A.makeMessageType("livekit.Pong", () => [{
8937
+ }]), Bo = /* @__PURE__ */ j.makeMessageType("livekit.Pong", () => [{
8934
8938
  no: 1,
8935
8939
  name: "last_ping_timestamp",
8936
8940
  kind: "scalar",
@@ -8940,13 +8944,13 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8940
8944
  name: "timestamp",
8941
8945
  kind: "scalar",
8942
8946
  T: 3
8943
- }]), Vo = /* @__PURE__ */ A.makeMessageType("livekit.RegionSettings", () => [{
8947
+ }]), Vo = /* @__PURE__ */ j.makeMessageType("livekit.RegionSettings", () => [{
8944
8948
  no: 1,
8945
8949
  name: "regions",
8946
8950
  kind: "message",
8947
8951
  T: Ho,
8948
8952
  repeated: !0
8949
- }]), Ho = /* @__PURE__ */ A.makeMessageType("livekit.RegionInfo", () => [
8953
+ }]), Ho = /* @__PURE__ */ j.makeMessageType("livekit.RegionInfo", () => [
8950
8954
  {
8951
8955
  no: 1,
8952
8956
  name: "region",
@@ -8965,7 +8969,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8965
8969
  kind: "scalar",
8966
8970
  T: 3
8967
8971
  }
8968
- ]), Uo = /* @__PURE__ */ A.makeMessageType("livekit.SubscriptionResponse", () => [{
8972
+ ]), Uo = /* @__PURE__ */ j.makeMessageType("livekit.SubscriptionResponse", () => [{
8969
8973
  no: 1,
8970
8974
  name: "track_sid",
8971
8975
  kind: "scalar",
@@ -8974,8 +8978,8 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8974
8978
  no: 2,
8975
8979
  name: "err",
8976
8980
  kind: "enum",
8977
- T: A.getEnumType(Xi)
8978
- }]), Wo = /* @__PURE__ */ A.makeMessageType("livekit.RequestResponse", () => [
8981
+ T: j.getEnumType(Xi)
8982
+ }]), Wo = /* @__PURE__ */ j.makeMessageType("livekit.RequestResponse", () => [
8979
8983
  {
8980
8984
  no: 1,
8981
8985
  name: "request_id",
@@ -8986,7 +8990,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
8986
8990
  no: 2,
8987
8991
  name: "reason",
8988
8992
  kind: "enum",
8989
- T: A.getEnumType(Go)
8993
+ T: j.getEnumType(Go)
8990
8994
  },
8991
8995
  {
8992
8996
  no: 3,
@@ -9050,7 +9054,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
9050
9054
  T: Za,
9051
9055
  oneof: "request"
9052
9056
  }
9053
- ]), Go = /* @__PURE__ */ A.makeEnum("livekit.RequestResponse.Reason", [
9057
+ ]), Go = /* @__PURE__ */ j.makeEnum("livekit.RequestResponse.Reason", [
9054
9058
  {
9055
9059
  no: 0,
9056
9060
  name: "OK"
@@ -9095,12 +9099,12 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
9095
9099
  no: 10,
9096
9100
  name: "DUPLICATE_NAME"
9097
9101
  }
9098
- ]), Ko = /* @__PURE__ */ A.makeMessageType("livekit.TrackSubscribed", () => [{
9102
+ ]), Ko = /* @__PURE__ */ j.makeMessageType("livekit.TrackSubscribed", () => [{
9099
9103
  no: 1,
9100
9104
  name: "track_sid",
9101
9105
  kind: "scalar",
9102
9106
  T: 9
9103
- }]), qo = /* @__PURE__ */ A.makeMessageType("livekit.ConnectionSettings", () => [
9107
+ }]), qo = /* @__PURE__ */ j.makeMessageType("livekit.ConnectionSettings", () => [
9104
9108
  {
9105
9109
  no: 1,
9106
9110
  name: "auto_subscribe",
@@ -9133,7 +9137,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
9133
9137
  T: 8,
9134
9138
  opt: !0
9135
9139
  }
9136
- ]), Jo = /* @__PURE__ */ A.makeMessageType("livekit.JoinRequest", () => [
9140
+ ]), Jo = /* @__PURE__ */ j.makeMessageType("livekit.JoinRequest", () => [
9137
9141
  {
9138
9142
  no: 1,
9139
9143
  name: "client_info",
@@ -9185,7 +9189,7 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
9185
9189
  no: 8,
9186
9190
  name: "reconnect_reason",
9187
9191
  kind: "enum",
9188
- T: A.getEnumType(Yi)
9192
+ T: j.getEnumType(Yi)
9189
9193
  },
9190
9194
  {
9191
9195
  no: 9,
@@ -9199,23 +9203,23 @@ var zi = /* @__PURE__ */ A.makeMessageType("livekit.MetricsBatch", () => [
9199
9203
  kind: "message",
9200
9204
  T: Fo
9201
9205
  }
9202
- ]), Yo = /* @__PURE__ */ A.makeMessageType("livekit.WrappedJoinRequest", () => [{
9206
+ ]), Yo = /* @__PURE__ */ j.makeMessageType("livekit.WrappedJoinRequest", () => [{
9203
9207
  no: 1,
9204
9208
  name: "compression",
9205
9209
  kind: "enum",
9206
- T: A.getEnumType(Xo)
9210
+ T: j.getEnumType(Xo)
9207
9211
  }, {
9208
9212
  no: 2,
9209
9213
  name: "join_request",
9210
9214
  kind: "scalar",
9211
9215
  T: 12
9212
- }]), Xo = /* @__PURE__ */ A.makeEnum("livekit.WrappedJoinRequest.Compression", [{
9216
+ }]), Xo = /* @__PURE__ */ j.makeEnum("livekit.WrappedJoinRequest.Compression", [{
9213
9217
  no: 0,
9214
9218
  name: "NONE"
9215
9219
  }, {
9216
9220
  no: 1,
9217
9221
  name: "GZIP"
9218
- }]), Zo = /* @__PURE__ */ A.makeMessageType("livekit.MediaSectionsRequirement", () => [{
9222
+ }]), Zo = /* @__PURE__ */ j.makeMessageType("livekit.MediaSectionsRequirement", () => [{
9219
9223
  no: 1,
9220
9224
  name: "num_audios",
9221
9225
  kind: "scalar",
@@ -11420,10 +11424,10 @@ function xl(e) {
11420
11424
  }
11421
11425
  function Sl(e) {
11422
11426
  switch (e) {
11423
- case j.CAMERA: return W.Source.Camera;
11424
- case j.MICROPHONE: return W.Source.Microphone;
11425
- case j.SCREEN_SHARE: return W.Source.ScreenShare;
11426
- case j.SCREEN_SHARE_AUDIO: return W.Source.ScreenShareAudio;
11427
+ case Wi.CAMERA: return W.Source.Camera;
11428
+ case Wi.MICROPHONE: return W.Source.Microphone;
11429
+ case Wi.SCREEN_SHARE: return W.Source.ScreenShare;
11430
+ case Wi.SCREEN_SHARE_AUDIO: return W.Source.ScreenShareAudio;
11427
11431
  default: return W.Source.Unknown;
11428
11432
  }
11429
11433
  }
@@ -11555,36 +11559,36 @@ function kl(e, t) {
11555
11559
  })(r = e.StreamState ||= {});
11556
11560
  function i(e) {
11557
11561
  switch (e) {
11558
- case t.Audio: return Wi.AUDIO;
11559
- case t.Video: return Wi.VIDEO;
11560
- default: return Wi.DATA;
11562
+ case t.Audio: return Ui.AUDIO;
11563
+ case t.Video: return Ui.VIDEO;
11564
+ default: return Ui.DATA;
11561
11565
  }
11562
11566
  }
11563
11567
  e.kindToProto = i;
11564
11568
  function a(e) {
11565
11569
  switch (e) {
11566
- case Wi.AUDIO: return t.Audio;
11567
- case Wi.VIDEO: return t.Video;
11570
+ case Ui.AUDIO: return t.Audio;
11571
+ case Ui.VIDEO: return t.Video;
11568
11572
  default: return t.Unknown;
11569
11573
  }
11570
11574
  }
11571
11575
  e.kindFromProto = a;
11572
11576
  function o(e) {
11573
11577
  switch (e) {
11574
- case n.Camera: return j.CAMERA;
11575
- case n.Microphone: return j.MICROPHONE;
11576
- case n.ScreenShare: return j.SCREEN_SHARE;
11577
- case n.ScreenShareAudio: return j.SCREEN_SHARE_AUDIO;
11578
- default: return j.UNKNOWN;
11578
+ case n.Camera: return Wi.CAMERA;
11579
+ case n.Microphone: return Wi.MICROPHONE;
11580
+ case n.ScreenShare: return Wi.SCREEN_SHARE;
11581
+ case n.ScreenShareAudio: return Wi.SCREEN_SHARE_AUDIO;
11582
+ default: return Wi.UNKNOWN;
11579
11583
  }
11580
11584
  }
11581
11585
  e.sourceToProto = o;
11582
11586
  function s(e) {
11583
11587
  switch (e) {
11584
- case j.CAMERA: return n.Camera;
11585
- case j.MICROPHONE: return n.Microphone;
11586
- case j.SCREEN_SHARE: return n.ScreenShare;
11587
- case j.SCREEN_SHARE_AUDIO: return n.ScreenShareAudio;
11588
+ case Wi.CAMERA: return n.Camera;
11589
+ case Wi.MICROPHONE: return n.Microphone;
11590
+ case Wi.SCREEN_SHARE: return n.ScreenShare;
11591
+ case Wi.SCREEN_SHARE_AUDIO: return n.ScreenShareAudio;
11588
11592
  default: return n.Unknown;
11589
11593
  }
11590
11594
  }
@@ -20482,9 +20486,9 @@ var Bm = 4 * 1e3, Vm = class e extends bs.EventEmitter {
20482
20486
  name: "local-name"
20483
20487
  })), this.setupLocalParticipantEvents(), this.emit(R.SignalConnected), this.emit(R.Connected), this.setAndEmitConnectionState(X.Connected), t.video) {
20484
20488
  let e = new Om(W.Kind.Video, new oa({
20485
- source: j.CAMERA,
20489
+ source: Wi.CAMERA,
20486
20490
  sid: Math.floor(Math.random() * 1e4).toString(),
20487
- type: Wi.AUDIO,
20491
+ type: Ui.AUDIO,
20488
20492
  name: "video-dummy"
20489
20493
  }), new Bf(t.useRealTracks && window.navigator.mediaDevices?.getUserMedia ? (yield window.navigator.mediaDevices.getUserMedia({ video: !0 })).getVideoTracks()[0] : uu(160 * (n.aspectRatios[0] ?? 1), 160, !0, !0), void 0, !1, {
20490
20494
  loggerName: this.options.loggerName,
@@ -20497,9 +20501,9 @@ var Bm = 4 * 1e3, Vm = class e extends bs.EventEmitter {
20497
20501
  }
20498
20502
  if (t.audio) {
20499
20503
  let e = new Om(W.Kind.Audio, new oa({
20500
- source: j.MICROPHONE,
20504
+ source: Wi.MICROPHONE,
20501
20505
  sid: Math.floor(Math.random() * 1e4).toString(),
20502
- type: Wi.AUDIO
20506
+ type: Ui.AUDIO
20503
20507
  }), new xf(t.useRealTracks && navigator.mediaDevices?.getUserMedia ? (yield navigator.mediaDevices.getUserMedia({ audio: !0 })).getAudioTracks()[0] : fu(), void 0, !1, this.audioContext, {
20504
20508
  loggerName: this.options.loggerName,
20505
20509
  loggerContextCb: () => this.logContext
@@ -20519,17 +20523,17 @@ var Bm = 4 * 1e3, Vm = class e extends bs.EventEmitter {
20519
20523
  }), r = this.getOrCreateParticipant(t.identity, t);
20520
20524
  if (n.video) {
20521
20525
  let i = uu(160 * (n.aspectRatios[e % n.aspectRatios.length] ?? 1), 160, !1, !0), a = new oa({
20522
- source: j.CAMERA,
20526
+ source: Wi.CAMERA,
20523
20527
  sid: Math.floor(Math.random() * 1e4).toString(),
20524
- type: Wi.AUDIO
20528
+ type: Ui.AUDIO
20525
20529
  });
20526
20530
  r.addSubscribedMediaTrack(i, a.sid, new MediaStream([i]), new RTCRtpReceiver()), t.tracks = [...t.tracks, a];
20527
20531
  }
20528
20532
  if (n.audio) {
20529
20533
  let e = fu(), n = new oa({
20530
- source: j.MICROPHONE,
20534
+ source: Wi.MICROPHONE,
20531
20535
  sid: Math.floor(Math.random() * 1e4).toString(),
20532
- type: Wi.AUDIO
20536
+ type: Ui.AUDIO
20533
20537
  });
20534
20538
  r.addSubscribedMediaTrack(e, n.sid, new MediaStream([e]), new RTCRtpReceiver()), t.tracks = [...t.tracks, n];
20535
20539
  }
@@ -22670,136 +22674,139 @@ var cg = [
22670
22674
  })
22671
22675
  });
22672
22676
  function ug() {
22673
- let { status: e, runtimeConfig: t, resolvedConfig: n, chatId: r, chatHistory: a, isOpen: o, activeScreen: c, isHumanHandled: d, agentName: f, agentHeadshot: p, visitorEmail: m, isAgentTyping: h, isAiTyping: g, isLoading: ee, isVoiceMode: te, isRateLimited: _, rateLimitMessage: ne, isConversationEnded: re, incomingCall: ie, activeCallId: ae, callConnectionState: oe, callConnectedAt: se, isCallMuted: v, webRTCError: ce, language: le, historyRef: ue, onMessageSync: y, endConversation: b, acceptCall: de, rejectCall: fe, endWebRTCCall: pe, toggleCallMute: me, dismissCallError: he, captureVisitorEmail: ge, openWidget: _e, closeWidget: ve, sendMessage: ye, setVoiceMode: be, startTyping: xe, stopTyping: Se, updateTypingDraft: Ce } = Xt(), [we, Te] = s(""), [Ee, De] = s(null), [Oe, ke] = s(null), [Ae, je] = s(null), [Me, Ne] = s(0), [Pe, x] = s(m || ""), [Fe, Ie] = s(""), Le = t?.widgetSettings || {}, S = n?.widgetSettings || {}, Re = {
22674
- ...Le.branding || {},
22675
- ...S.branding || {}
22676
- }, ze = {
22677
- ...Le.theme || {},
22678
- ...S.theme || {}
22679
- }, Be = ze.primaryColor || "#3B82F6", Ve = ze.accentColor || "#1D4ED8", He = (ze.position || "bottom-right") === "bottom-left" ? {
22677
+ let { status: e, runtimeConfig: t, resolvedConfig: n, chatId: r, chatHistory: o, isOpen: c, activeScreen: d, isHumanHandled: f, agentName: p, agentHeadshot: m, visitorEmail: h, isAgentTyping: g, isAiTyping: ee, isLoading: te, isVoiceMode: _, isRateLimited: ne, rateLimitMessage: re, isConversationEnded: ie, incomingCall: ae, activeCallId: oe, callConnectionState: se, callConnectedAt: v, isCallMuted: ce, webRTCError: le, language: ue, historyRef: y, onMessageSync: b, endConversation: de, acceptCall: fe, rejectCall: pe, endWebRTCCall: me, toggleCallMute: he, dismissCallError: ge, captureVisitorEmail: _e, openWidget: ve, closeWidget: ye, sendMessage: be, setVoiceMode: xe, startTyping: Se, stopTyping: Ce, updateTypingDraft: we } = Xt(), [Te, Ee] = s(""), [De, Oe] = s(null), [ke, Ae] = s(null), [je, Me] = s(null), [Ne, Pe] = s(0), [x, Fe] = s(h || ""), [Ie, Le] = s(""), S = t?.widgetSettings || {}, Re = n?.widgetSettings || {}, ze = {
22678
+ ...S.branding || {},
22679
+ ...Re.branding || {}
22680
+ }, Be = {
22681
+ ...S.theme || {},
22682
+ ...Re.theme || {}
22683
+ }, Ve = Be.primaryColor || "#3B82F6", He = Be.accentColor || "#1D4ED8", Ue = (Be.position || "bottom-right") === "bottom-left" ? {
22680
22684
  left: "1.5rem",
22681
22685
  bottom: "1.5rem"
22682
22686
  } : {
22683
22687
  right: "1.5rem",
22684
22688
  bottom: "1.5rem"
22685
- }, Ue = {
22686
- "--flowengage-primary": Be,
22687
- "--flowengage-accent": Ve,
22689
+ }, We = {
22690
+ "--flowengage-primary": Ve,
22691
+ "--flowengage-accent": He,
22688
22692
  position: "fixed",
22689
22693
  zIndex: 999999,
22690
22694
  border: "none",
22691
22695
  outline: "none",
22692
22696
  fontFamily: "ui-sans-serif, system-ui, sans-serif",
22693
- ...o ? {} : He
22694
- }, We = S.recommendations?.[le] || Le.recommendations?.[le] || cg, Ge = S.greetings?.[le] || Le.greetings?.[le], Ke = Re.chatButtonText || "Chat with us", qe = Re.headerName || t?.websiteName || "OpenSense Labs", Je = Re.logoUrl || null, C = Re.hideWatermark || !1, w = S.elevenLabsAgentId || t?.elevenLabsAgentId || null, T = t?.siteId || n?.siteId || null, Ye = t?.apiBaseUrl || "", Xe = Re.fallbackAgentName || "Agent", Ze = Re.botLabel || "AI", Qe = p && String(p).trim() || t?.ownerProfileImageUrl && String(t.ownerProfileImageUrl).trim() || null, $e = ie?.agentName || f || Xe, et = a.some((e) => e.sender === "user"), tt = !m && et;
22697
+ ...c ? {} : Ue
22698
+ }, Ge = Re.recommendations?.[ue] || S.recommendations?.[ue] || cg, Ke = Re.greetings?.[ue] || S.greetings?.[ue], qe = ze.chatButtonText || "Chat with us", Je = ze.headerName || t?.websiteName || "OpenSense Labs", C = ze.logoUrl || null, w = ze.hideWatermark || !1, T = Re.elevenLabsAgentId || t?.elevenLabsAgentId || null, Ye = t?.siteId || n?.siteId || null, Xe = t?.apiBaseUrl || "", Ze = ze.fallbackAgentName || "Agent", Qe = ze.botLabel || "AI", $e = m && String(m).trim() || t?.ownerProfileImageUrl && String(t.ownerProfileImageUrl).trim() || null, et = ae?.agentName || p || Ze, tt = o.some((e) => e.sender === "user"), nt = a(() => {
22699
+ let e = o.findIndex((e) => e.sender === "user");
22700
+ return e === -1 ? !1 : o.slice(e + 1).some((e) => e.sender === "bot" || e.sender === "ai" || e.sender === "agent");
22701
+ }, [o]), rt = !h && tt && nt;
22695
22702
  i(() => {
22696
- x(m || ""), m && Ie("");
22697
- }, [m]), i(() => {
22698
- if (!se || oe !== "connected") {
22699
- Ne(0);
22703
+ Fe(h || ""), h && Le("");
22704
+ }, [h]), i(() => {
22705
+ if (!v || se !== "connected") {
22706
+ Pe(0);
22700
22707
  return;
22701
22708
  }
22702
22709
  let e = () => {
22703
- let e = new Date(se).getTime();
22704
- isNaN(e) || Ne(Math.max(0, Math.floor((Date.now() - e) / 1e3)));
22710
+ let e = new Date(v).getTime();
22711
+ isNaN(e) || Pe(Math.max(0, Math.floor((Date.now() - e) / 1e3)));
22705
22712
  };
22706
22713
  e();
22707
22714
  let t = window.setInterval(e, 1e3);
22708
22715
  return () => window.clearInterval(t);
22709
- }, [se, oe]), i(() => {
22710
- if (!d || te || re) {
22711
- Ce(""), Se();
22716
+ }, [v, se]), i(() => {
22717
+ if (!f || _ || ie) {
22718
+ we(""), Ce();
22712
22719
  return;
22713
22720
  }
22714
- if (!we.trim()) {
22715
- Ce(""), Se();
22721
+ if (!Te.trim()) {
22722
+ we(""), Ce();
22716
22723
  return;
22717
22724
  }
22718
- xe();
22725
+ Se();
22719
22726
  let e = window.setTimeout(() => {
22720
- Ce(we);
22727
+ we(Te);
22721
22728
  }, 120), t = window.setTimeout(() => {
22722
- Se();
22729
+ Ce();
22723
22730
  }, 1200);
22724
22731
  return () => {
22725
22732
  window.clearTimeout(e), window.clearTimeout(t);
22726
22733
  };
22727
22734
  }, [
22728
- we,
22729
- d,
22730
- te,
22731
- re,
22732
- xe,
22735
+ Te,
22736
+ f,
22737
+ _,
22738
+ ie,
22733
22739
  Se,
22734
- Ce
22740
+ Ce,
22741
+ we
22735
22742
  ]);
22736
- let nt = (e) => e ? {
22743
+ let it = (e) => e ? {
22737
22744
  replyTo: e.messageId || e.id || null,
22738
22745
  replyToContent: (e.replyToContent || e.message || "").replace(/<[^>]+>/g, "").trim().slice(0, 200),
22739
22746
  replyToSender: e.sender || null
22740
- } : null, rt = async (e) => {
22741
- if (e.preventDefault(), re) return;
22742
- if (tt) {
22743
- let e = Pe.trim().toLowerCase();
22747
+ } : null, at = async (e) => {
22748
+ if (e.preventDefault(), ie) return;
22749
+ if (rt) {
22750
+ let e = x.trim().toLowerCase();
22744
22751
  if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)) {
22745
- Ie("Please enter a valid email so we can continue helping you.");
22752
+ Le("Please enter a valid email so we can continue helping you.");
22746
22753
  return;
22747
22754
  }
22748
- await ge(e), Ie("");
22755
+ await _e(e), Le("");
22749
22756
  return;
22750
22757
  }
22751
- if (!we.trim()) return;
22752
- let t = we.trim(), n = nt(Ae);
22753
- Te(""), je(null), await ye(t, "", n);
22754
- }, it = async () => {
22755
- if (tt) {
22756
- Ie("Please share your email before starting a call.");
22758
+ if (!Te.trim()) return;
22759
+ let t = Te.trim(), n = it(je);
22760
+ Ee(""), Me(null), await be(t, "", n);
22761
+ }, ot = async () => {
22762
+ if (rt) {
22763
+ Le("Please share your email before starting a call.");
22757
22764
  return;
22758
22765
  }
22759
- if (te) {
22760
- be(!1);
22766
+ if (_) {
22767
+ xe(!1);
22761
22768
  return;
22762
22769
  }
22763
- ke(null);
22770
+ Ae(null);
22764
22771
  try {
22765
- De(await navigator.mediaDevices.getUserMedia({ audio: !0 })), be(!0);
22772
+ Oe(await navigator.mediaDevices.getUserMedia({ audio: !0 })), xe(!0);
22766
22773
  } catch (e) {
22767
- ke(e.message || "Could not access microphone.");
22774
+ Ae(e.message || "Could not access microphone.");
22768
22775
  }
22769
- }, at = () => {
22770
- Ee && (Ee.getTracks().forEach((e) => e.stop()), De(null)), be(!1);
22771
- }, ot = (e) => {
22776
+ }, st = () => {
22777
+ De && (De.getTracks().forEach((e) => e.stop()), Oe(null)), xe(!1);
22778
+ }, ct = (e) => {
22772
22779
  let t = Math.floor(e / 60), n = e % 60;
22773
22780
  return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
22774
22781
  };
22775
22782
  return e === "ready" ? /* @__PURE__ */ u("div", {
22776
22783
  className: "flowengage-shell",
22777
- "data-open": o ? "true" : "false",
22778
- style: Ue,
22784
+ "data-open": c ? "true" : "false",
22785
+ style: We,
22779
22786
  children: [/* @__PURE__ */ l(Tn, {
22780
- isOpen: o,
22781
- openWidget: _e,
22782
- launcherText: Ke,
22783
- primaryColor: Be,
22784
- posInline: He
22785
- }), o && /* @__PURE__ */ u("div", {
22787
+ isOpen: c,
22788
+ openWidget: ve,
22789
+ launcherText: qe,
22790
+ primaryColor: Ve,
22791
+ posInline: Ue
22792
+ }), c && /* @__PURE__ */ u("div", {
22786
22793
  className: "flowengage-chat-panel",
22787
- style: { background: a.length === 0 && !te ? `linear-gradient(to bottom, ${Be} 0%, ${Be} 70%, white 85%)` : "white" },
22794
+ style: { background: o.length === 0 && !_ ? `linear-gradient(to bottom, ${Ve} 0%, ${Ve} 70%, white 85%)` : "white" },
22788
22795
  children: [
22789
22796
  /* @__PURE__ */ l(kn, {
22790
- logoUrl: Je,
22791
- brandName: qe,
22792
- agentName: f,
22793
- fallbackAgentName: Xe,
22794
- activeScreen: c,
22795
- branding: Re,
22796
- isConversationEnded: re,
22797
- endConversation: b,
22798
- closeWidget: ve,
22799
- isInitial: a.length === 0 && !te,
22800
- botLabel: Ze,
22801
- agentAvatarUrl: c === "agent" ? Qe : null,
22802
- primaryColor: Be
22797
+ logoUrl: C,
22798
+ brandName: Je,
22799
+ agentName: p,
22800
+ fallbackAgentName: Ze,
22801
+ activeScreen: d,
22802
+ branding: ze,
22803
+ isConversationEnded: ie,
22804
+ endConversation: de,
22805
+ closeWidget: ye,
22806
+ isInitial: o.length === 0 && !_,
22807
+ botLabel: Qe,
22808
+ agentAvatarUrl: d === "agent" ? $e : null,
22809
+ primaryColor: Ve
22803
22810
  }),
22804
22811
  /* @__PURE__ */ l("div", {
22805
22812
  style: {
@@ -22809,7 +22816,7 @@ function ug() {
22809
22816
  flexDirection: "column"
22810
22817
  },
22811
22818
  className: "flowengage-content-wrapper",
22812
- children: te ? /* @__PURE__ */ l("div", {
22819
+ children: _ ? /* @__PURE__ */ l("div", {
22813
22820
  style: {
22814
22821
  flex: 1,
22815
22822
  display: "flex",
@@ -22817,15 +22824,15 @@ function ug() {
22817
22824
  },
22818
22825
  className: "fe-screen-fade-in",
22819
22826
  children: /* @__PURE__ */ l(sg, {
22820
- agentId: w,
22827
+ agentId: T,
22821
22828
  chatId: r,
22822
- siteId: T,
22823
- apiBaseUrl: Ye,
22824
- historyRef: ue,
22825
- onMessageSync: y,
22826
- onEnd: at
22829
+ siteId: Ye,
22830
+ apiBaseUrl: Xe,
22831
+ historyRef: y,
22832
+ onMessageSync: b,
22833
+ onEnd: st
22827
22834
  })
22828
- }, "voice") : a.length === 0 ? /* @__PURE__ */ l("div", {
22835
+ }, "voice") : o.length === 0 ? /* @__PURE__ */ l("div", {
22829
22836
  style: {
22830
22837
  flex: 1,
22831
22838
  display: "flex",
@@ -22833,9 +22840,9 @@ function ug() {
22833
22840
  },
22834
22841
  className: "fe-screen-fade-in",
22835
22842
  children: /* @__PURE__ */ l(In, {
22836
- greetings: Ge,
22837
- recommendations: We,
22838
- onSendMessage: ye
22843
+ greetings: Ke,
22844
+ recommendations: Ge,
22845
+ onSendMessage: be
22839
22846
  })
22840
22847
  }, "welcome") : /* @__PURE__ */ l("div", {
22841
22848
  style: {
@@ -22845,60 +22852,60 @@ function ug() {
22845
22852
  },
22846
22853
  className: "fe-screen-fade-in",
22847
22854
  children: /* @__PURE__ */ l(Nn, {
22848
- chatHistory: a,
22849
- isAiTyping: g,
22850
- isAgentTyping: h,
22851
- setReplyContext: je,
22855
+ chatHistory: o,
22856
+ isAiTyping: ee,
22857
+ isAgentTyping: g,
22858
+ setReplyContext: Me,
22852
22859
  TypingDots: lg,
22853
- primaryColor: Be,
22854
- agentHeadshot: Qe,
22855
- agentDisplayName: f || Xe
22860
+ primaryColor: Ve,
22861
+ agentHeadshot: $e,
22862
+ agentDisplayName: p || Ze
22856
22863
  })
22857
22864
  }, "history")
22858
22865
  }),
22859
22866
  /* @__PURE__ */ l(Bn, {
22860
- webRTCError: ce,
22861
- micError: Oe,
22862
- setMicError: ke,
22863
- dismissCallError: he,
22864
- incomingCall: ie,
22865
- rejectCall: fe,
22866
- acceptCall: de,
22867
- activeCallId: ae,
22868
- callConnectionState: oe,
22869
- formatCallDuration: ot,
22870
- callDurationSeconds: Me,
22871
- endWebRTCCall: pe,
22872
- isCallMuted: v,
22873
- toggleCallMute: me,
22874
- isAIVoiceActive: te,
22875
- currentCallAgentName: $e,
22876
- isRateLimited: _,
22877
- rateLimitMessage: ne
22867
+ webRTCError: le,
22868
+ micError: ke,
22869
+ setMicError: Ae,
22870
+ dismissCallError: ge,
22871
+ incomingCall: ae,
22872
+ rejectCall: pe,
22873
+ acceptCall: fe,
22874
+ activeCallId: oe,
22875
+ callConnectionState: se,
22876
+ formatCallDuration: ct,
22877
+ callDurationSeconds: Ne,
22878
+ endWebRTCCall: me,
22879
+ isCallMuted: ce,
22880
+ toggleCallMute: he,
22881
+ isAIVoiceActive: _,
22882
+ currentCallAgentName: et,
22883
+ isRateLimited: ne,
22884
+ rateLimitMessage: re
22878
22885
  }),
22879
- !te && /* @__PURE__ */ l("div", {
22886
+ !_ && /* @__PURE__ */ l("div", {
22880
22887
  style: {
22881
22888
  position: "relative",
22882
22889
  zIndex: 1
22883
22890
  },
22884
22891
  children: /* @__PURE__ */ l(Ln, {
22885
- input: we,
22886
- setInput: Te,
22887
- onSubmit: rt,
22888
- isConversationEnded: re,
22889
- callUiActive: !!(ie || ae),
22890
- handleToggleVoice: it,
22891
- activeScreen: c,
22892
- inputDisabled: ee || _ || re,
22893
- replyContext: Ae,
22894
- clearReplyContext: () => je(null),
22895
- requiresEmail: tt,
22896
- emailInput: Pe,
22897
- setEmailInput: x,
22898
- emailError: Fe
22892
+ input: Te,
22893
+ setInput: Ee,
22894
+ onSubmit: at,
22895
+ isConversationEnded: ie,
22896
+ callUiActive: !!(ae || oe),
22897
+ handleToggleVoice: ot,
22898
+ activeScreen: d,
22899
+ inputDisabled: te || ne || ie,
22900
+ replyContext: je,
22901
+ clearReplyContext: () => Me(null),
22902
+ requiresEmail: rt,
22903
+ emailInput: x,
22904
+ setEmailInput: Fe,
22905
+ emailError: Ie
22899
22906
  })
22900
22907
  }),
22901
- !C && /* @__PURE__ */ l("div", {
22908
+ !w && /* @__PURE__ */ l("div", {
22902
22909
  style: {
22903
22910
  position: "relative",
22904
22911
  zIndex: 1,