@voicenter-team/opensips-js 1.0.137 → 1.0.139

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.
@@ -484,8 +484,8 @@ function os() {
484
484
  DIGIT: T,
485
485
  ALPHA: E,
486
486
  HEXDIG: y,
487
- WSP: A,
488
- OCTET: C,
487
+ WSP: C,
488
+ OCTET: A,
489
489
  DQUOTE: I,
490
490
  SP: H,
491
491
  HTAB: $,
@@ -512,13 +512,13 @@ function os() {
512
512
  LPAREN: ge,
513
513
  RPAREN: be,
514
514
  RAQUOT: xe,
515
- LAQUOT: Ce,
515
+ LAQUOT: Ae,
516
516
  COMMA: le,
517
517
  SEMI: ye,
518
518
  COLON: nt,
519
519
  LDQUOT: at,
520
520
  RDQUOT: Ee,
521
- comment: Ae,
521
+ comment: Ce,
522
522
  ctext: Ie,
523
523
  quoted_string: Oe,
524
524
  quoted_string_clean: pe,
@@ -543,14 +543,14 @@ function os() {
543
543
  h16: ae,
544
544
  ls32: ot,
545
545
  IPv4address: Wt,
546
- dec_octet: Cs,
546
+ dec_octet: As,
547
547
  port: Er,
548
548
  uri_parameters: Un,
549
549
  uri_parameter: Pn,
550
550
  transport_param: Sr,
551
551
  user_param: yr,
552
- method_param: Ar,
553
- ttl_param: Cr,
552
+ method_param: Cr,
553
+ ttl_param: Ar,
554
554
  maddr_param: Rr,
555
555
  lr_param: Ir,
556
556
  other_param: br,
@@ -625,8 +625,8 @@ function os() {
625
625
  x_token: Zr,
626
626
  m_subtype: qn,
627
627
  m_parameter: Vn,
628
- m_value: Al,
629
- CSeq: Cl,
628
+ m_value: Cl,
629
+ CSeq: Al,
630
630
  CSeq_value: Rl,
631
631
  Expires: Qa,
632
632
  Event: on,
@@ -683,9 +683,9 @@ function os() {
683
683
  protocol_name: Ei,
684
684
  transport: Si,
685
685
  sent_by: yi,
686
- via_host: Ai,
686
+ via_host: Ci,
687
687
  via_port: tr,
688
- ttl: Ci,
688
+ ttl: Ai,
689
689
  WWW_Authenticate: lo,
690
690
  Session_Expires: Ol,
691
691
  s_e_expires: sr,
@@ -734,11 +734,11 @@ function os() {
734
734
  var e;
735
735
  return /^[0-9a-fA-F]/.test(a.charAt(r)) ? (e = a.charAt(r), r++) : (e = null, _("[0-9a-fA-F]")), e;
736
736
  }
737
- function A() {
737
+ function C() {
738
738
  var e;
739
739
  return e = H(), e === null && (e = $()), e;
740
740
  }
741
- function C() {
741
+ function A() {
742
742
  var e;
743
743
  return /^[\0-\xFF]/.test(a.charAt(r)) ? (e = a.charAt(r), r++) : (e = null, _("[\\0-\\xFF]")), e;
744
744
  }
@@ -778,12 +778,12 @@ function os() {
778
778
  }
779
779
  function k() {
780
780
  var e, l, u, f, p, m;
781
- for (f = r, p = r, m = r, e = [], l = A(); l !== null; )
782
- e.push(l), l = A();
781
+ for (f = r, p = r, m = r, e = [], l = C(); l !== null; )
782
+ e.push(l), l = C();
783
783
  if (e !== null ? (l = g(), l !== null ? e = [e, l] : (e = null, r = m)) : (e = null, r = m), e = e !== null ? e : "", e !== null) {
784
- if (u = A(), u !== null)
784
+ if (u = C(), u !== null)
785
785
  for (l = []; u !== null; )
786
- l.push(u), u = A();
786
+ l.push(u), u = C();
787
787
  else
788
788
  l = null;
789
789
  l !== null ? e = [e, l] : (e = null, r = p);
@@ -916,7 +916,7 @@ function os() {
916
916
  return ">";
917
917
  }()), e === null && (r = u), e;
918
918
  }
919
- function Ce() {
919
+ function Ae() {
920
920
  var e, l, u, f;
921
921
  return u = r, f = r, e = D(), e !== null ? (a.charCodeAt(r) === 60 ? (l = "<", r++) : (l = null, _('"<"')), l !== null ? e = [e, l] : (e = null, r = f)) : (e = null, r = f), e !== null && (e = function(p) {
922
922
  return "<";
@@ -952,11 +952,11 @@ function os() {
952
952
  return '"';
953
953
  }()), e === null && (r = u), e;
954
954
  }
955
- function Ae() {
955
+ function Ce() {
956
956
  var e, l, u, f;
957
957
  if (f = r, e = ge(), e !== null) {
958
- for (l = [], u = Ie(), u === null && (u = _e(), u === null && (u = Ae())); u !== null; )
959
- l.push(u), u = Ie(), u === null && (u = _e(), u === null && (u = Ae()));
958
+ for (l = [], u = Ie(), u === null && (u = _e(), u === null && (u = Ce())); u !== null; )
959
+ l.push(u), u = Ie(), u === null && (u = _e(), u === null && (u = Ce()));
960
960
  l !== null ? (u = be(), u !== null ? e = [e, l, u] : (e = null, r = f)) : (e = null, r = f);
961
961
  } else
962
962
  e = null, r = f;
@@ -1128,11 +1128,11 @@ function os() {
1128
1128
  }
1129
1129
  function Wt() {
1130
1130
  var e, l, u, f, p, m, v, S, O;
1131
- return S = r, O = r, e = Cs(), e !== null ? (a.charCodeAt(r) === 46 ? (l = ".", r++) : (l = null, _('"."')), l !== null ? (u = Cs(), u !== null ? (a.charCodeAt(r) === 46 ? (f = ".", r++) : (f = null, _('"."')), f !== null ? (p = Cs(), p !== null ? (a.charCodeAt(r) === 46 ? (m = ".", r++) : (m = null, _('"."')), m !== null ? (v = Cs(), v !== null ? e = [e, l, u, f, p, m, v] : (e = null, r = O)) : (e = null, r = O)) : (e = null, r = O)) : (e = null, r = O)) : (e = null, r = O)) : (e = null, r = O)) : (e = null, r = O), e !== null && (e = function(ie) {
1131
+ return S = r, O = r, e = As(), e !== null ? (a.charCodeAt(r) === 46 ? (l = ".", r++) : (l = null, _('"."')), l !== null ? (u = As(), u !== null ? (a.charCodeAt(r) === 46 ? (f = ".", r++) : (f = null, _('"."')), f !== null ? (p = As(), p !== null ? (a.charCodeAt(r) === 46 ? (m = ".", r++) : (m = null, _('"."')), m !== null ? (v = As(), v !== null ? e = [e, l, u, f, p, m, v] : (e = null, r = O)) : (e = null, r = O)) : (e = null, r = O)) : (e = null, r = O)) : (e = null, r = O)) : (e = null, r = O)) : (e = null, r = O), e !== null && (e = function(ie) {
1132
1132
  return w.host_type = "IPv4", a.substring(r, ie);
1133
1133
  }(S)), e === null && (r = S), e;
1134
1134
  }
1135
- function Cs() {
1135
+ function As() {
1136
1136
  var e, l, u, f;
1137
1137
  return f = r, a.substr(r, 2) === "25" ? (e = "25", r += 2) : (e = null, _('"25"')), e !== null ? (/^[0-5]/.test(a.charAt(r)) ? (l = a.charAt(r), r++) : (l = null, _("[0-5]")), l !== null ? e = [e, l] : (e = null, r = f)) : (e = null, r = f), e === null && (f = r, a.charCodeAt(r) === 50 ? (e = "2", r++) : (e = null, _('"2"')), e !== null ? (/^[0-4]/.test(a.charAt(r)) ? (l = a.charAt(r), r++) : (l = null, _("[0-4]")), l !== null ? (u = T(), u !== null ? e = [e, l, u] : (e = null, r = f)) : (e = null, r = f)) : (e = null, r = f), e === null && (f = r, a.charCodeAt(r) === 49 ? (e = "1", r++) : (e = null, _('"1"')), e !== null ? (l = T(), l !== null ? (u = T(), u !== null ? e = [e, l, u] : (e = null, r = f)) : (e = null, r = f)) : (e = null, r = f), e === null && (f = r, /^[1-9]/.test(a.charAt(r)) ? (e = a.charAt(r), r++) : (e = null, _("[1-9]")), e !== null ? (l = T(), l !== null ? e = [e, l] : (e = null, r = f)) : (e = null, r = f), e === null && (e = T())))), e;
1138
1138
  }
@@ -1150,7 +1150,7 @@ function os() {
1150
1150
  }
1151
1151
  function Pn() {
1152
1152
  var e;
1153
- return e = Sr(), e === null && (e = yr(), e === null && (e = Ar(), e === null && (e = Cr(), e === null && (e = Rr(), e === null && (e = Ir(), e === null && (e = br())))))), e;
1153
+ return e = Sr(), e === null && (e = yr(), e === null && (e = Cr(), e === null && (e = Ar(), e === null && (e = Rr(), e === null && (e = Ir(), e === null && (e = br())))))), e;
1154
1154
  }
1155
1155
  function Sr() {
1156
1156
  var e, l, u, f;
@@ -1164,15 +1164,15 @@ function os() {
1164
1164
  w.uri_params || (w.uri_params = {}), w.uri_params.user = m.toLowerCase();
1165
1165
  }(u, e[1])), e === null && (r = u), e;
1166
1166
  }
1167
- function Ar() {
1167
+ function Cr() {
1168
1168
  var e, l, u, f;
1169
1169
  return u = r, f = r, a.substr(r, 7).toLowerCase() === "method=" ? (e = a.substr(r, 7), r += 7) : (e = null, _('"method="')), e !== null ? (l = rn(), l !== null ? e = [e, l] : (e = null, r = f)) : (e = null, r = f), e !== null && (e = function(p, m) {
1170
1170
  w.uri_params || (w.uri_params = {}), w.uri_params.method = m;
1171
1171
  }(u, e[1])), e === null && (r = u), e;
1172
1172
  }
1173
- function Cr() {
1173
+ function Ar() {
1174
1174
  var e, l, u, f;
1175
- return u = r, f = r, a.substr(r, 4).toLowerCase() === "ttl=" ? (e = a.substr(r, 4), r += 4) : (e = null, _('"ttl="')), e !== null ? (l = Ci(), l !== null ? e = [e, l] : (e = null, r = f)) : (e = null, r = f), e !== null && (e = function(p, m) {
1175
+ return u = r, f = r, a.substr(r, 4).toLowerCase() === "ttl=" ? (e = a.substr(r, 4), r += 4) : (e = null, _('"ttl="')), e !== null ? (l = Ai(), l !== null ? e = [e, l] : (e = null, r = f)) : (e = null, r = f), e !== null && (e = function(p, m) {
1176
1176
  w.params || (w.params = {}), w.params.ttl = m;
1177
1177
  }(u, e[1])), e === null && (r = u), e;
1178
1178
  }
@@ -1528,7 +1528,7 @@ function os() {
1528
1528
  }
1529
1529
  function Ht() {
1530
1530
  var e, l, u, f, p;
1531
- return p = r, e = Us(), e = e !== null ? e : "", e !== null ? (l = Ce(), l !== null ? (u = Ne(), u !== null ? (f = xe(), f !== null ? e = [e, l, u, f] : (e = null, r = p)) : (e = null, r = p)) : (e = null, r = p)) : (e = null, r = p), e;
1531
+ return p = r, e = Us(), e = e !== null ? e : "", e !== null ? (l = Ae(), l !== null ? (u = Ne(), u !== null ? (f = xe(), f !== null ? e = [e, l, u, f] : (e = null, r = p)) : (e = null, r = p)) : (e = null, r = p)) : (e = null, r = p), e;
1532
1532
  }
1533
1533
  function Us() {
1534
1534
  var e, l, u, f, p, m, v;
@@ -1678,13 +1678,13 @@ function os() {
1678
1678
  }
1679
1679
  function Vn() {
1680
1680
  var e, l, u, f;
1681
- return f = r, e = P(), e !== null ? (l = re(), l !== null ? (u = Al(), u !== null ? e = [e, l, u] : (e = null, r = f)) : (e = null, r = f)) : (e = null, r = f), e;
1681
+ return f = r, e = P(), e !== null ? (l = re(), l !== null ? (u = Cl(), u !== null ? e = [e, l, u] : (e = null, r = f)) : (e = null, r = f)) : (e = null, r = f), e;
1682
1682
  }
1683
- function Al() {
1683
+ function Cl() {
1684
1684
  var e;
1685
1685
  return e = P(), e === null && (e = Oe()), e;
1686
1686
  }
1687
- function Cl() {
1687
+ function Al() {
1688
1688
  var e, l, u, f;
1689
1689
  return f = r, e = Rl(), e !== null ? (l = k(), l !== null ? (u = rn(), u !== null ? e = [e, l, u] : (e = null, r = f)) : (e = null, r = f)) : (e = null, r = f), e;
1690
1690
  }
@@ -1776,7 +1776,7 @@ function os() {
1776
1776
  for (S = r, O = r, e = [], l = Us(); l !== null; )
1777
1777
  e.push(l), l = Us();
1778
1778
  if (e !== null)
1779
- if (l = Ce(), l !== null)
1779
+ if (l = Ae(), l !== null)
1780
1780
  if (u = Ne(), u !== null)
1781
1781
  if (f = xe(), f !== null) {
1782
1782
  for (p = [], ie = r, m = ye(), m !== null ? (v = We(), v !== null ? m = [m, v] : (m = null, r = ie)) : (m = null, r = ie); m !== null; )
@@ -2157,7 +2157,7 @@ function os() {
2157
2157
  }
2158
2158
  function di() {
2159
2159
  var e, l, u, f, p;
2160
- return f = r, p = r, a.substr(r, 3).toLowerCase() === "ttl" ? (e = a.substr(r, 3), r += 3) : (e = null, _('"ttl"')), e !== null ? (l = re(), l !== null ? (u = Ci(), u !== null ? e = [e, l, u] : (e = null, r = p)) : (e = null, r = p)) : (e = null, r = p), e !== null && (e = function(m, v) {
2160
+ return f = r, p = r, a.substr(r, 3).toLowerCase() === "ttl" ? (e = a.substr(r, 3), r += 3) : (e = null, _('"ttl"')), e !== null ? (l = re(), l !== null ? (u = Ai(), u !== null ? e = [e, l, u] : (e = null, r = p)) : (e = null, r = p)) : (e = null, r = p), e !== null && (e = function(m, v) {
2161
2161
  w.ttl = v;
2162
2162
  }(f, e[2])), e === null && (r = f), e;
2163
2163
  }
@@ -2207,9 +2207,9 @@ function os() {
2207
2207
  }
2208
2208
  function yi() {
2209
2209
  var e, l, u, f, p;
2210
- return f = r, e = Ai(), e !== null ? (p = r, l = nt(), l !== null ? (u = tr(), u !== null ? l = [l, u] : (l = null, r = p)) : (l = null, r = p), l = l !== null ? l : "", l !== null ? e = [e, l] : (e = null, r = f)) : (e = null, r = f), e;
2210
+ return f = r, e = Ci(), e !== null ? (p = r, l = nt(), l !== null ? (u = tr(), u !== null ? l = [l, u] : (l = null, r = p)) : (l = null, r = p), l = l !== null ? l : "", l !== null ? e = [e, l] : (e = null, r = f)) : (e = null, r = f), e;
2211
2211
  }
2212
- function Ai() {
2212
+ function Ci() {
2213
2213
  var e, l;
2214
2214
  return l = r, e = Wt(), e === null && (e = zs(), e === null && (e = Js())), e !== null && (e = function(u) {
2215
2215
  w.host = a.substring(r, u);
@@ -2221,7 +2221,7 @@ function os() {
2221
2221
  w.port = parseInt(O.join(""));
2222
2222
  }(m, e)), e === null && (r = m), e;
2223
2223
  }
2224
- function Ci() {
2224
+ function Ai() {
2225
2225
  var e, l, u, f, p;
2226
2226
  return f = r, p = r, e = T(), e !== null ? (l = T(), l = l !== null ? l : "", l !== null ? (u = T(), u = u !== null ? u : "", u !== null ? e = [e, l, u] : (e = null, r = p)) : (e = null, r = p)) : (e = null, r = p), e !== null && (e = function(m, v) {
2227
2227
  return parseInt(v.join(""));
@@ -2269,8 +2269,8 @@ function os() {
2269
2269
  }
2270
2270
  function ao() {
2271
2271
  var e, l;
2272
- for (e = [], l = C(); l !== null; )
2273
- e.push(l), l = C();
2272
+ for (e = [], l = A(); l !== null; )
2273
+ e.push(l), l = A();
2274
2274
  return e;
2275
2275
  }
2276
2276
  function Pl() {
@@ -2418,19 +2418,19 @@ function Ks() {
2418
2418
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2419
2419
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2420
2420
  }
2421
- var A = !0, C = !1, I;
2421
+ var C = !0, A = !1, I;
2422
2422
  return { s: function() {
2423
2423
  T = _[Symbol.iterator]();
2424
2424
  }, n: function() {
2425
2425
  var $ = T.next();
2426
- return A = $.done, $;
2426
+ return C = $.done, $;
2427
2427
  }, e: function($) {
2428
- C = !0, I = $;
2428
+ A = !0, I = $;
2429
2429
  }, f: function() {
2430
2430
  try {
2431
- !A && T.return != null && T.return();
2431
+ !C && T.return != null && T.return();
2432
2432
  } finally {
2433
- if (C)
2433
+ if (A)
2434
2434
  throw I;
2435
2435
  }
2436
2436
  } };
@@ -2479,14 +2479,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2479
2479
  }
2480
2480
  }]);
2481
2481
  function _(g, T, E, y) {
2482
- var A = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {}, C = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
2482
+ var C = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {}, A = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
2483
2483
  if (a(this, _), !E)
2484
2484
  throw new TypeError('missing or invalid "host" parameter');
2485
2485
  this._parameters = {}, this._headers = {}, this._scheme = g || r.SIP, this._user = T, this._host = E, this._port = y;
2486
- for (var I in A)
2487
- Object.prototype.hasOwnProperty.call(A, I) && this.setParam(I, A[I]);
2488
- for (var H in C)
2489
- Object.prototype.hasOwnProperty.call(C, H) && this.setHeader(H, C[H]);
2486
+ for (var I in C)
2487
+ Object.prototype.hasOwnProperty.call(C, I) && this.setParam(I, C[I]);
2488
+ for (var H in A)
2489
+ Object.prototype.hasOwnProperty.call(A, H) && this.setHeader(H, A[H]);
2490
2490
  }
2491
2491
  return s(_, [{
2492
2492
  key: "setParam",
@@ -2560,18 +2560,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2560
2560
  this._user && (E += "".concat(d.escapeUser(this._user), "@")), E += this._host, (this._port || this._port === 0) && (E += ":".concat(this._port));
2561
2561
  for (var y in this._parameters)
2562
2562
  Object.prototype.hasOwnProperty.call(this._parameters, y) && (E += ";".concat(y), this._parameters[y] !== null && (E += "=".concat(this._parameters[y])));
2563
- for (var A in this._headers)
2564
- if (Object.prototype.hasOwnProperty.call(this._headers, A)) {
2565
- var C = c(this._headers[A]), I;
2563
+ for (var C in this._headers)
2564
+ if (Object.prototype.hasOwnProperty.call(this._headers, C)) {
2565
+ var A = c(this._headers[C]), I;
2566
2566
  try {
2567
- for (C.s(); !(I = C.n()).done; ) {
2567
+ for (A.s(); !(I = A.n()).done; ) {
2568
2568
  var H = I.value;
2569
- T.push("".concat(A, "=").concat(H));
2569
+ T.push("".concat(C, "=").concat(H));
2570
2570
  }
2571
2571
  } catch ($) {
2572
- C.e($);
2572
+ A.e($);
2573
2573
  } finally {
2574
- C.f();
2574
+ A.f();
2575
2575
  }
2576
2576
  }
2577
2577
  return T.length > 0 && (E += "?".concat(T.join("&"))), E;
@@ -2635,28 +2635,28 @@ function bt() {
2635
2635
  if (typeof Symbol > "u" || g[Symbol.iterator] == null) {
2636
2636
  if (Array.isArray(g) || (E = n(g)) || T && g && typeof g.length == "number") {
2637
2637
  E && (g = E);
2638
- var y = 0, A = function() {
2638
+ var y = 0, C = function() {
2639
2639
  };
2640
- return { s: A, n: function() {
2640
+ return { s: C, n: function() {
2641
2641
  return y >= g.length ? { done: !0 } : { done: !1, value: g[y++] };
2642
2642
  }, e: function(oe) {
2643
2643
  throw oe;
2644
- }, f: A };
2644
+ }, f: C };
2645
2645
  }
2646
2646
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2647
2647
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2648
2648
  }
2649
- var C = !0, I = !1, H;
2649
+ var A = !0, I = !1, H;
2650
2650
  return { s: function() {
2651
2651
  E = g[Symbol.iterator]();
2652
2652
  }, n: function() {
2653
2653
  var oe = E.next();
2654
- return C = oe.done, oe;
2654
+ return A = oe.done, oe;
2655
2655
  }, e: function(oe) {
2656
2656
  I = !0, H = oe;
2657
2657
  }, f: function() {
2658
2658
  try {
2659
- !C && E.return != null && E.return();
2659
+ !A && E.return != null && E.return();
2660
2660
  } finally {
2661
2661
  if (I)
2662
2662
  throw H;
@@ -2696,18 +2696,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2696
2696
  }, Ze.hasMethods = function(g) {
2697
2697
  for (var T = arguments.length, E = new Array(T > 1 ? T - 1 : 0), y = 1; y < T; y++)
2698
2698
  E[y - 1] = arguments[y];
2699
- for (var A = 0, C = E; A < C.length; A++) {
2700
- var I = C[A];
2699
+ for (var C = 0, A = E; C < A.length; C++) {
2700
+ var I = A[C];
2701
2701
  if (d(g[I]))
2702
2702
  return !1;
2703
2703
  }
2704
2704
  return !0;
2705
2705
  };
2706
2706
  var h = Ze.createRandomToken = function(g) {
2707
- var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 32, E, y, A = "";
2707
+ var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 32, E, y, C = "";
2708
2708
  for (E = 0; E < g; E++)
2709
- y = Math.random() * T | 0, A += y.toString(T);
2710
- return A;
2709
+ y = Math.random() * T | 0, C += y.toString(T);
2710
+ return C;
2711
2711
  };
2712
2712
  Ze.newTag = function() {
2713
2713
  return h(10);
@@ -2732,22 +2732,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2732
2732
  if (g instanceof s)
2733
2733
  return g;
2734
2734
  if (typeof g == "string") {
2735
- var E = g.split("@"), y, A;
2735
+ var E = g.split("@"), y, C;
2736
2736
  switch (E.length) {
2737
2737
  case 1:
2738
2738
  if (!T)
2739
2739
  return;
2740
- y = g, A = T;
2740
+ y = g, C = T;
2741
2741
  break;
2742
2742
  case 2:
2743
- y = E[0], A = E[1];
2743
+ y = E[0], C = E[1];
2744
2744
  break;
2745
2745
  default:
2746
- y = E.slice(0, E.length - 1).join("@"), A = E[E.length - 1];
2746
+ y = E.slice(0, E.length - 1).join("@"), C = E[E.length - 1];
2747
2747
  }
2748
- y = y.replace(/^(sips?|tel):/i, ""), /^[-.()]*\+?[0-9\-.()]+$/.test(y) && (y = y.replace(/[-.()]/g, "")), g = "".concat(o.SIP, ":").concat(_(y), "@").concat(A);
2749
- var C;
2750
- return (C = s.parse(g)) ? C : void 0;
2748
+ y = y.replace(/^(sips?|tel):/i, ""), /^[-.()]*\+?[0-9\-.()]+$/.test(y) && (y = y.replace(/[-.()]/g, "")), g = "".concat(o.SIP, ":").concat(_(y), "@").concat(C);
2749
+ var A;
2750
+ return (A = s.parse(g)) ? A : void 0;
2751
2751
  } else
2752
2752
  return;
2753
2753
  } else
@@ -2757,9 +2757,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2757
2757
  "Call-Id": "Call-ID",
2758
2758
  Cseq: "CSeq",
2759
2759
  "Www-Authenticate": "WWW-Authenticate"
2760
- }, E = g.toLowerCase().replace(/_/g, "-").split("-"), y = "", A = E.length, C;
2761
- for (C = 0; C < A; C++)
2762
- C !== 0 && (y += "-"), y += E[C].charAt(0).toUpperCase() + E[C].substring(1);
2760
+ }, E = g.toLowerCase().replace(/_/g, "-").split("-"), y = "", C = E.length, A;
2761
+ for (A = 0; A < C; A++)
2762
+ A !== 0 && (y += "-"), y += E[A].charAt(0).toUpperCase() + E[A].substring(1);
2763
2763
  return T[y] && (y = T[y]), y;
2764
2764
  }, Ze.sipErrorCause = function(g) {
2765
2765
  for (var T in o.SIP_ERROR_CAUSES)
@@ -2782,10 +2782,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2782
2782
  function y(pe, ue, _e) {
2783
2783
  return pe & ue | ~pe & _e;
2784
2784
  }
2785
- function A(pe, ue, _e) {
2785
+ function C(pe, ue, _e) {
2786
2786
  return pe & _e | ue & ~_e;
2787
2787
  }
2788
- function C(pe, ue, _e) {
2788
+ function A(pe, ue, _e) {
2789
2789
  return pe ^ ue ^ _e;
2790
2790
  }
2791
2791
  function I(pe, ue, _e) {
@@ -2795,10 +2795,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2795
2795
  return pe = E(pe, E(E(y(ue, _e, we), Ne), Le)), E(T(pe, Qe), ue);
2796
2796
  }
2797
2797
  function $(pe, ue, _e, we, Ne, Qe, Le) {
2798
- return pe = E(pe, E(E(A(ue, _e, we), Ne), Le)), E(T(pe, Qe), ue);
2798
+ return pe = E(pe, E(E(C(ue, _e, we), Ne), Le)), E(T(pe, Qe), ue);
2799
2799
  }
2800
2800
  function oe(pe, ue, _e, we, Ne, Qe, Le) {
2801
- return pe = E(pe, E(E(C(ue, _e, we), Ne), Le)), E(T(pe, Qe), ue);
2801
+ return pe = E(pe, E(E(A(ue, _e, we), Ne), Le)), E(T(pe, Qe), ue);
2802
2802
  }
2803
2803
  function N(pe, ue, _e, we, Ne, Qe, Le) {
2804
2804
  return pe = E(pe, E(E(I(ue, _e, we), Ne), Le)), E(T(pe, Qe), ue);
@@ -2821,9 +2821,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2821
2821
  }
2822
2822
  return ue;
2823
2823
  }
2824
- var k = [], D, B, V, J, F, X, U, P, se, st = 7, ee = 12, W = 17, G = 22, re = 5, ge = 9, be = 14, xe = 20, Ce = 4, le = 11, ye = 16, nt = 23, at = 6, Ee = 10, Ae = 15, Ie = 21;
2824
+ var k = [], D, B, V, J, F, X, U, P, se, st = 7, ee = 12, W = 17, G = 22, re = 5, ge = 9, be = 14, xe = 20, Ae = 4, le = 11, ye = 16, nt = 23, at = 6, Ee = 10, Ce = 15, Ie = 21;
2825
2825
  for (g = ve(g), k = j(g), X = 1732584193, U = 4023233417, P = 2562383102, se = 271733878, D = 0; D < k.length; D += 16)
2826
- B = X, V = U, J = P, F = se, X = H(X, U, P, se, k[D + 0], st, 3614090360), se = H(se, X, U, P, k[D + 1], ee, 3905402710), P = H(P, se, X, U, k[D + 2], W, 606105819), U = H(U, P, se, X, k[D + 3], G, 3250441966), X = H(X, U, P, se, k[D + 4], st, 4118548399), se = H(se, X, U, P, k[D + 5], ee, 1200080426), P = H(P, se, X, U, k[D + 6], W, 2821735955), U = H(U, P, se, X, k[D + 7], G, 4249261313), X = H(X, U, P, se, k[D + 8], st, 1770035416), se = H(se, X, U, P, k[D + 9], ee, 2336552879), P = H(P, se, X, U, k[D + 10], W, 4294925233), U = H(U, P, se, X, k[D + 11], G, 2304563134), X = H(X, U, P, se, k[D + 12], st, 1804603682), se = H(se, X, U, P, k[D + 13], ee, 4254626195), P = H(P, se, X, U, k[D + 14], W, 2792965006), U = H(U, P, se, X, k[D + 15], G, 1236535329), X = $(X, U, P, se, k[D + 1], re, 4129170786), se = $(se, X, U, P, k[D + 6], ge, 3225465664), P = $(P, se, X, U, k[D + 11], be, 643717713), U = $(U, P, se, X, k[D + 0], xe, 3921069994), X = $(X, U, P, se, k[D + 5], re, 3593408605), se = $(se, X, U, P, k[D + 10], ge, 38016083), P = $(P, se, X, U, k[D + 15], be, 3634488961), U = $(U, P, se, X, k[D + 4], xe, 3889429448), X = $(X, U, P, se, k[D + 9], re, 568446438), se = $(se, X, U, P, k[D + 14], ge, 3275163606), P = $(P, se, X, U, k[D + 3], be, 4107603335), U = $(U, P, se, X, k[D + 8], xe, 1163531501), X = $(X, U, P, se, k[D + 13], re, 2850285829), se = $(se, X, U, P, k[D + 2], ge, 4243563512), P = $(P, se, X, U, k[D + 7], be, 1735328473), U = $(U, P, se, X, k[D + 12], xe, 2368359562), X = oe(X, U, P, se, k[D + 5], Ce, 4294588738), se = oe(se, X, U, P, k[D + 8], le, 2272392833), P = oe(P, se, X, U, k[D + 11], ye, 1839030562), U = oe(U, P, se, X, k[D + 14], nt, 4259657740), X = oe(X, U, P, se, k[D + 1], Ce, 2763975236), se = oe(se, X, U, P, k[D + 4], le, 1272893353), P = oe(P, se, X, U, k[D + 7], ye, 4139469664), U = oe(U, P, se, X, k[D + 10], nt, 3200236656), X = oe(X, U, P, se, k[D + 13], Ce, 681279174), se = oe(se, X, U, P, k[D + 0], le, 3936430074), P = oe(P, se, X, U, k[D + 3], ye, 3572445317), U = oe(U, P, se, X, k[D + 6], nt, 76029189), X = oe(X, U, P, se, k[D + 9], Ce, 3654602809), se = oe(se, X, U, P, k[D + 12], le, 3873151461), P = oe(P, se, X, U, k[D + 15], ye, 530742520), U = oe(U, P, se, X, k[D + 2], nt, 3299628645), X = N(X, U, P, se, k[D + 0], at, 4096336452), se = N(se, X, U, P, k[D + 7], Ee, 1126891415), P = N(P, se, X, U, k[D + 14], Ae, 2878612391), U = N(U, P, se, X, k[D + 5], Ie, 4237533241), X = N(X, U, P, se, k[D + 12], at, 1700485571), se = N(se, X, U, P, k[D + 3], Ee, 2399980690), P = N(P, se, X, U, k[D + 10], Ae, 4293915773), U = N(U, P, se, X, k[D + 1], Ie, 2240044497), X = N(X, U, P, se, k[D + 8], at, 1873313359), se = N(se, X, U, P, k[D + 15], Ee, 4264355552), P = N(P, se, X, U, k[D + 6], Ae, 2734768916), U = N(U, P, se, X, k[D + 13], Ie, 1309151649), X = N(X, U, P, se, k[D + 4], at, 4149444226), se = N(se, X, U, P, k[D + 11], Ee, 3174756917), P = N(P, se, X, U, k[D + 2], Ae, 718787259), U = N(U, P, se, X, k[D + 9], Ie, 3951481745), X = E(X, B), U = E(U, V), P = E(P, J), se = E(se, F);
2826
+ B = X, V = U, J = P, F = se, X = H(X, U, P, se, k[D + 0], st, 3614090360), se = H(se, X, U, P, k[D + 1], ee, 3905402710), P = H(P, se, X, U, k[D + 2], W, 606105819), U = H(U, P, se, X, k[D + 3], G, 3250441966), X = H(X, U, P, se, k[D + 4], st, 4118548399), se = H(se, X, U, P, k[D + 5], ee, 1200080426), P = H(P, se, X, U, k[D + 6], W, 2821735955), U = H(U, P, se, X, k[D + 7], G, 4249261313), X = H(X, U, P, se, k[D + 8], st, 1770035416), se = H(se, X, U, P, k[D + 9], ee, 2336552879), P = H(P, se, X, U, k[D + 10], W, 4294925233), U = H(U, P, se, X, k[D + 11], G, 2304563134), X = H(X, U, P, se, k[D + 12], st, 1804603682), se = H(se, X, U, P, k[D + 13], ee, 4254626195), P = H(P, se, X, U, k[D + 14], W, 2792965006), U = H(U, P, se, X, k[D + 15], G, 1236535329), X = $(X, U, P, se, k[D + 1], re, 4129170786), se = $(se, X, U, P, k[D + 6], ge, 3225465664), P = $(P, se, X, U, k[D + 11], be, 643717713), U = $(U, P, se, X, k[D + 0], xe, 3921069994), X = $(X, U, P, se, k[D + 5], re, 3593408605), se = $(se, X, U, P, k[D + 10], ge, 38016083), P = $(P, se, X, U, k[D + 15], be, 3634488961), U = $(U, P, se, X, k[D + 4], xe, 3889429448), X = $(X, U, P, se, k[D + 9], re, 568446438), se = $(se, X, U, P, k[D + 14], ge, 3275163606), P = $(P, se, X, U, k[D + 3], be, 4107603335), U = $(U, P, se, X, k[D + 8], xe, 1163531501), X = $(X, U, P, se, k[D + 13], re, 2850285829), se = $(se, X, U, P, k[D + 2], ge, 4243563512), P = $(P, se, X, U, k[D + 7], be, 1735328473), U = $(U, P, se, X, k[D + 12], xe, 2368359562), X = oe(X, U, P, se, k[D + 5], Ae, 4294588738), se = oe(se, X, U, P, k[D + 8], le, 2272392833), P = oe(P, se, X, U, k[D + 11], ye, 1839030562), U = oe(U, P, se, X, k[D + 14], nt, 4259657740), X = oe(X, U, P, se, k[D + 1], Ae, 2763975236), se = oe(se, X, U, P, k[D + 4], le, 1272893353), P = oe(P, se, X, U, k[D + 7], ye, 4139469664), U = oe(U, P, se, X, k[D + 10], nt, 3200236656), X = oe(X, U, P, se, k[D + 13], Ae, 681279174), se = oe(se, X, U, P, k[D + 0], le, 3936430074), P = oe(P, se, X, U, k[D + 3], ye, 3572445317), U = oe(U, P, se, X, k[D + 6], nt, 76029189), X = oe(X, U, P, se, k[D + 9], Ae, 3654602809), se = oe(se, X, U, P, k[D + 12], le, 3873151461), P = oe(P, se, X, U, k[D + 15], ye, 530742520), U = oe(U, P, se, X, k[D + 2], nt, 3299628645), X = N(X, U, P, se, k[D + 0], at, 4096336452), se = N(se, X, U, P, k[D + 7], Ee, 1126891415), P = N(P, se, X, U, k[D + 14], Ce, 2878612391), U = N(U, P, se, X, k[D + 5], Ie, 4237533241), X = N(X, U, P, se, k[D + 12], at, 1700485571), se = N(se, X, U, P, k[D + 3], Ee, 2399980690), P = N(P, se, X, U, k[D + 10], Ce, 4293915773), U = N(U, P, se, X, k[D + 1], Ie, 2240044497), X = N(X, U, P, se, k[D + 8], at, 1873313359), se = N(se, X, U, P, k[D + 15], Ee, 4264355552), P = N(P, se, X, U, k[D + 6], Ce, 2734768916), U = N(U, P, se, X, k[D + 13], Ie, 1309151649), X = N(X, U, P, se, k[D + 4], at, 4149444226), se = N(se, X, U, P, k[D + 11], Ee, 3174756917), P = N(P, se, X, U, k[D + 2], Ce, 718787259), U = N(U, P, se, X, k[D + 9], Ie, 3951481745), X = E(X, B), U = E(U, V), P = E(P, J), se = E(se, F);
2827
2827
  var Oe = Se(X) + Se(U) + Se(P) + Se(se);
2828
2828
  return Oe.toLowerCase();
2829
2829
  }, Ze.closeMediaStream = function(g) {
@@ -2835,8 +2835,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2835
2835
  var E = t(T), y;
2836
2836
  try {
2837
2837
  for (E.s(); !(y = E.n()).done; ) {
2838
- var A = y.value;
2839
- A.stop();
2838
+ var C = y.value;
2839
+ C.stop();
2840
2840
  }
2841
2841
  } catch (j) {
2842
2842
  E.e(j);
@@ -2845,16 +2845,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2845
2845
  }
2846
2846
  } else {
2847
2847
  T = g.getAudioTracks();
2848
- var C = t(T), I;
2848
+ var A = t(T), I;
2849
2849
  try {
2850
- for (C.s(); !(I = C.n()).done; ) {
2850
+ for (A.s(); !(I = A.n()).done; ) {
2851
2851
  var H = I.value;
2852
2852
  H.stop();
2853
2853
  }
2854
2854
  } catch (j) {
2855
- C.e(j);
2855
+ A.e(j);
2856
2856
  } finally {
2857
- C.f();
2857
+ A.f();
2858
2858
  }
2859
2859
  T = g.getVideoTracks();
2860
2860
  var $ = t(T), oe;
@@ -3181,8 +3181,8 @@ function _d() {
3181
3181
  return T >= a ? _(g, T, a, "day") : T >= n ? _(g, T, n, "hour") : T >= t ? _(g, T, t, "minute") : T >= c ? _(g, T, c, "second") : g + " ms";
3182
3182
  }
3183
3183
  function _(g, T, E, y) {
3184
- var A = T >= E * 1.5;
3185
- return Math.round(g / E) + " " + y + (A ? "s" : "");
3184
+ var C = T >= E * 1.5;
3185
+ return Math.round(g / E) + " " + y + (C ? "s" : "");
3186
3186
  }
3187
3187
  return _o;
3188
3188
  }
@@ -3198,11 +3198,11 @@ function pd(c) {
3198
3198
  }
3199
3199
  n.selectColor = t;
3200
3200
  function n(g) {
3201
- let T, E = null, y, A;
3202
- function C(...I) {
3203
- if (!C.enabled)
3201
+ let T, E = null, y, C;
3202
+ function A(...I) {
3203
+ if (!A.enabled)
3204
3204
  return;
3205
- const H = C, $ = Number(/* @__PURE__ */ new Date()), oe = $ - (T || $);
3205
+ const H = A, $ = Number(/* @__PURE__ */ new Date()), oe = $ - (T || $);
3206
3206
  H.diff = oe, H.prev = T, H.curr = $, T = $, I[0] = n.coerce(I[0]), typeof I[0] != "string" && I.unshift("%O");
3207
3207
  let N = 0;
3208
3208
  I[0] = I[0].replace(/%([a-zA-Z%])/g, (Se, ve) => {
@@ -3217,14 +3217,14 @@ function pd(c) {
3217
3217
  return Se;
3218
3218
  }), n.formatArgs.call(H, I), (H.log || n.log).apply(H, I);
3219
3219
  }
3220
- return C.namespace = g, C.useColors = n.useColors(), C.color = n.selectColor(g), C.extend = a, C.destroy = n.destroy, Object.defineProperty(C, "enabled", {
3220
+ return A.namespace = g, A.useColors = n.useColors(), A.color = n.selectColor(g), A.extend = a, A.destroy = n.destroy, Object.defineProperty(A, "enabled", {
3221
3221
  enumerable: !0,
3222
3222
  configurable: !1,
3223
- get: () => E !== null ? E : (y !== n.namespaces && (y = n.namespaces, A = n.enabled(g)), A),
3223
+ get: () => E !== null ? E : (y !== n.namespaces && (y = n.namespaces, C = n.enabled(g)), C),
3224
3224
  set: (I) => {
3225
3225
  E = I;
3226
3226
  }
3227
- }), typeof n.init == "function" && n.init(C), C;
3227
+ }), typeof n.init == "function" && n.init(A), A;
3228
3228
  }
3229
3229
  function a(g, T) {
3230
3230
  const E = n(this.namespace + (typeof T > "u" ? ":" : T) + g);
@@ -3899,10 +3899,10 @@ var Zf = Qf.exports;
3899
3899
  return d.split(/(\r\n|\r|\n)/).filter(s).forEach(function(T) {
3900
3900
  var E = T[0], y = T.slice(2);
3901
3901
  E === "m" && (_.push({ rtp: [], fmtp: [] }), g = _[_.length - 1]);
3902
- for (var A = 0; A < (o[E] || []).length; A += 1) {
3903
- var C = o[E][A];
3904
- if (C.reg.test(y))
3905
- return a(C, g, y);
3902
+ for (var C = 0; C < (o[E] || []).length; C += 1) {
3903
+ var A = o[E][C];
3904
+ if (A.reg.test(y))
3905
+ return a(A, g, y);
3906
3906
  }
3907
3907
  }), h.media = _, h;
3908
3908
  };
@@ -3979,7 +3979,7 @@ var po = Zf, vd = /%[sdv%]/g, Ed = function(c) {
3979
3979
  "r",
3980
3980
  "z",
3981
3981
  "a"
3982
- ], yd = ["i", "c", "b", "a"], Ad = function(c, t) {
3982
+ ], yd = ["i", "c", "b", "a"], Cd = function(c, t) {
3983
3983
  t = t || {}, c.version == null && (c.version = 0), c.name == null && (c.name = " "), c.media.forEach(function(s) {
3984
3984
  s.payloads == null && (s.payloads = "");
3985
3985
  });
@@ -4001,8 +4001,8 @@ var po = Zf, vd = /%[sdv%]/g, Ed = function(c) {
4001
4001
  }), o.join(`\r
4002
4002
  `) + `\r
4003
4003
  `;
4004
- }, bn = Xf, Cd = Ad;
4005
- xt.write = Cd;
4004
+ }, bn = Xf, Ad = Cd;
4005
+ xt.write = Ad;
4006
4006
  xt.parse = bn.parse;
4007
4007
  xt.parseParams = bn.parseParams;
4008
4008
  xt.parseFmtpConfig = bn.parseFmtpConfig;
@@ -4143,8 +4143,8 @@ var eh = xt, Od = ht, Et = lt, rt = bt(), nc = Ou(), Dd = os(), mo = new Od("SIP
4143
4143
  typeof o.from_display_name < "u" ? E = o.from_display_name : a.configuration.display_name ? E = a.configuration.display_name : E = null, this.from = new nc(g, E, T), this.setHeader("from", this.from.toString());
4144
4144
  var y = o.call_id || a.configuration.jssip_id + rt.createRandomToken(15);
4145
4145
  this.call_id = y, this.setHeader("call-id", y);
4146
- var A = o.cseq || Math.floor(Math.random() * 1e4);
4147
- this.cseq = A, this.setHeader("cseq", "".concat(A, " ").concat(t));
4146
+ var C = o.cseq || Math.floor(Math.random() * 1e4);
4147
+ this.cseq = C, this.setHeader("cseq", "".concat(C, " ").concat(t));
4148
4148
  }
4149
4149
  return Ba(c, [{
4150
4150
  key: "setHeader",
@@ -4493,17 +4493,17 @@ var eh = xt, Od = ht, Et = lt, rt = bt(), nc = Ou(), Dd = os(), mo = new Od("SIP
4493
4493
  var E = "SIP/2.0 ".concat(o, " ").concat(s, `\r
4494
4494
  `);
4495
4495
  if (this.method === Et.INVITE && o > 100 && o <= 200) {
4496
- var y = this.getHeaders("record-route"), A = Bt(y), C;
4496
+ var y = this.getHeaders("record-route"), C = Bt(y), A;
4497
4497
  try {
4498
- for (A.s(); !(C = A.n()).done; ) {
4499
- var I = C.value;
4498
+ for (C.s(); !(A = C.n()).done; ) {
4499
+ var I = A.value;
4500
4500
  E += "Record-Route: ".concat(I, `\r
4501
4501
  `);
4502
4502
  }
4503
4503
  } catch (D) {
4504
- A.e(D);
4504
+ C.e(D);
4505
4505
  } finally {
4506
- A.f();
4506
+ C.f();
4507
4507
  }
4508
4508
  }
4509
4509
  var H = this.getHeaders("via"), $ = Bt(H), oe;
@@ -4581,8 +4581,8 @@ var eh = xt, Od = ht, Et = lt, rt = bt(), nc = Ou(), Dd = os(), mo = new Od("SIP
4581
4581
  d += "Via: ".concat(g, `\r
4582
4582
  `);
4583
4583
  }
4584
- } catch (C) {
4585
- h.e(C);
4584
+ } catch (A) {
4585
+ h.e(A);
4586
4586
  } finally {
4587
4587
  h.f();
4588
4588
  }
@@ -4595,12 +4595,12 @@ var eh = xt, Od = ht, Et = lt, rt = bt(), nc = Ou(), Dd = os(), mo = new Od("SIP
4595
4595
  var E = Bt(this.ua.configuration.extra_headers), y;
4596
4596
  try {
4597
4597
  for (E.s(); !(y = E.n()).done; ) {
4598
- var A = y.value;
4599
- d += "".concat(A.trim(), `\r
4598
+ var C = y.value;
4599
+ d += "".concat(C.trim(), `\r
4600
4600
  `);
4601
4601
  }
4602
- } catch (C) {
4603
- E.e(C);
4602
+ } catch (A) {
4603
+ E.e(A);
4604
4604
  } finally {
4605
4605
  E.f();
4606
4606
  }
@@ -5341,8 +5341,8 @@ var t_ = ht, vo = bt(), pn = lt, dc = Ss, _c = dl, Ni = new t_("Registrator"), j
5341
5341
  Ni.debug("no Contact header in response to REGISTER, response ignored");
5342
5342
  break;
5343
5343
  }
5344
- var h = d.headers.Contact.reduce(function(y, A) {
5345
- return y.concat(A.parsed);
5344
+ var h = d.headers.Contact.reduce(function(y, C) {
5345
+ return y.concat(C.parsed);
5346
5346
  }, []), _ = h.find(function(y) {
5347
5347
  return n._sipInstance === y.getParam("+sip.instance") && n._reg_id === parseInt(y.getParam("reg-id"));
5348
5348
  });
@@ -5538,7 +5538,7 @@ function mc(c, t) {
5538
5538
  function gc(c, t, n) {
5539
5539
  return t && mc(c.prototype, t), n && mc(c, n), c;
5540
5540
  }
5541
- var o_ = ht, Tc = Ss, Ms = lt, Ui = hl, u_ = l_, yo = bt(), Ao = new o_("Dialog"), Ls = {
5541
+ var o_ = ht, Tc = Ss, Ms = lt, Ui = hl, u_ = l_, yo = bt(), Co = new o_("Dialog"), Ls = {
5542
5542
  // Dialog states.
5543
5543
  STATUS_EARLY: 1,
5544
5544
  STATUS_CONFIRMED: 2,
@@ -5573,7 +5573,7 @@ var o_ = ht, Tc = Ss, Ms = lt, Ui = hl, u_ = l_, yo = bt(), Ao = new o_("Dialog"
5573
5573
  toString: function() {
5574
5574
  return this.call_id + this.local_tag + this.remote_tag;
5575
5575
  }
5576
- }, this._state = o, this._local_seqnum = n.cseq, this._local_uri = n.parseHeader("from").uri, this._remote_uri = n.parseHeader("to").uri, this._remote_target = s.uri, this._route_set = n.getHeaders("record-route").reverse(), this._ack_seqnum = null), this._ua.newDialog(this), Ao.debug("new ".concat(a, " dialog created with status ").concat(this._state === Ls.STATUS_EARLY ? "EARLY" : "CONFIRMED"));
5576
+ }, this._state = o, this._local_seqnum = n.cseq, this._local_uri = n.parseHeader("from").uri, this._remote_uri = n.parseHeader("to").uri, this._remote_target = s.uri, this._route_set = n.getHeaders("record-route").reverse(), this._ack_seqnum = null), this._ua.newDialog(this), Co.debug("new ".concat(a, " dialog created with status ").concat(this._state === Ls.STATUS_EARLY ? "EARLY" : "CONFIRMED"));
5577
5577
  }
5578
5578
  return gc(c, [{
5579
5579
  key: "isTerminated",
@@ -5583,12 +5583,12 @@ var o_ = ht, Tc = Ss, Ms = lt, Ui = hl, u_ = l_, yo = bt(), Ao = new o_("Dialog"
5583
5583
  }, {
5584
5584
  key: "update",
5585
5585
  value: function(n, a) {
5586
- this._state = Ls.STATUS_CONFIRMED, Ao.debug("dialog ".concat(this._id.toString(), " changed to CONFIRMED state")), a === "UAC" && (this._route_set = n.getHeaders("record-route").reverse());
5586
+ this._state = Ls.STATUS_CONFIRMED, Co.debug("dialog ".concat(this._id.toString(), " changed to CONFIRMED state")), a === "UAC" && (this._route_set = n.getHeaders("record-route").reverse());
5587
5587
  }
5588
5588
  }, {
5589
5589
  key: "terminate",
5590
5590
  value: function() {
5591
- Ao.debug("dialog ".concat(this._id.toString(), " deleted")), this._ua.destroyDialog(this), this._state = Ls.STATUS_TERMINATED;
5591
+ Co.debug("dialog ".concat(this._id.toString(), " deleted")), this._ua.destroyDialog(this), this._state = Ls.STATUS_TERMINATED;
5592
5592
  }
5593
5593
  }, {
5594
5594
  key: "sendRequest",
@@ -5855,7 +5855,7 @@ Pu.exports = /* @__PURE__ */ function(c) {
5855
5855
  }]), n;
5856
5856
  }(T_);
5857
5857
  Pu.exports.C = rh;
5858
- var A_ = Pu.exports;
5858
+ var C_ = Pu.exports;
5859
5859
  function Sa(c) {
5860
5860
  "@babel/helpers - typeof";
5861
5861
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Sa = function(n) {
@@ -5864,7 +5864,7 @@ function Sa(c) {
5864
5864
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
5865
5865
  }, Sa(c);
5866
5866
  }
5867
- function C_(c, t) {
5867
+ function A_(c, t) {
5868
5868
  if (!(c instanceof t))
5869
5869
  throw new TypeError("Cannot call a class as a function");
5870
5870
  }
@@ -5929,7 +5929,7 @@ var N_ = ft.EventEmitter, U_ = lt, P_ = Ws, x_ = bt(), k_ = /* @__PURE__ */ func
5929
5929
  var t = b_(n);
5930
5930
  function n(a) {
5931
5931
  var o;
5932
- return C_(this, n), o = t.call(this), o._session = a, o._direction = null, o._contentType = null, o._body = null, o;
5932
+ return A_(this, n), o = t.call(this), o._session = a, o._direction = null, o._contentType = null, o._body = null, o;
5933
5933
  }
5934
5934
  return R_(n, [{
5935
5935
  key: "send",
@@ -6007,22 +6007,22 @@ function yc(c, t) {
6007
6007
  function L_(c, t, n) {
6008
6008
  return t && yc(c.prototype, t), n && yc(c, n), c;
6009
6009
  }
6010
- var $_ = ht, Ac = lt, H_ = new $_("RTCSession:ReferNotifier"), Co = {
6010
+ var $_ = ht, Cc = lt, H_ = new $_("RTCSession:ReferNotifier"), Ao = {
6011
6011
  event_type: "refer",
6012
6012
  body_type: "message/sipfrag;version=2.0",
6013
6013
  expires: 300
6014
6014
  }, F_ = /* @__PURE__ */ function() {
6015
6015
  function c(t, n, a) {
6016
- M_(this, c), this._session = t, this._id = n, this._expires = a || Co.expires, this._active = !0, this.notify(100);
6016
+ M_(this, c), this._session = t, this._id = n, this._expires = a || Ao.expires, this._active = !0, this.notify(100);
6017
6017
  }
6018
6018
  return L_(c, [{
6019
6019
  key: "notify",
6020
6020
  value: function(n, a) {
6021
6021
  if (H_.debug("notify()"), this._active !== !1) {
6022
- a = a || Ac.REASON_PHRASE[n] || "";
6022
+ a = a || Cc.REASON_PHRASE[n] || "";
6023
6023
  var o;
6024
- n >= 200 ? o = "terminated;reason=noresource" : o = "active;expires=".concat(this._expires), this._session.sendRequest(Ac.NOTIFY, {
6025
- extraHeaders: ["Event: ".concat(Co.event_type, ";id=").concat(this._id), "Subscription-State: ".concat(o), "Content-Type: ".concat(Co.body_type)],
6024
+ n >= 200 ? o = "terminated;reason=noresource" : o = "active;expires=".concat(this._expires), this._session.sendRequest(Cc.NOTIFY, {
6025
+ extraHeaders: ["Event: ".concat(Ao.event_type, ";id=").concat(this._id), "Subscription-State: ".concat(o), "Content-Type: ".concat(Ao.body_type)],
6026
6026
  body: "SIP/2.0 ".concat(n, " ").concat(a),
6027
6027
  eventHandlers: {
6028
6028
  // If a negative response is received, subscription is canceled.
@@ -6047,14 +6047,14 @@ function j_(c, t) {
6047
6047
  if (!(c instanceof t))
6048
6048
  throw new TypeError("Cannot call a class as a function");
6049
6049
  }
6050
- function Cc(c, t) {
6050
+ function Ac(c, t) {
6051
6051
  for (var n = 0; n < t.length; n++) {
6052
6052
  var a = t[n];
6053
6053
  a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(c, a.key, a);
6054
6054
  }
6055
6055
  }
6056
6056
  function q_(c, t, n) {
6057
- return t && Cc(c.prototype, t), n && Cc(c, n), c;
6057
+ return t && Ac(c.prototype, t), n && Ac(c, n), c;
6058
6058
  }
6059
6059
  function V_(c, t) {
6060
6060
  if (typeof t != "function" && t !== null)
@@ -6121,8 +6121,8 @@ var Y_ = ft.EventEmitter, J_ = ht, Pi = lt, z_ = os(), Rc = bt(), mn = new J_("R
6121
6121
  var g = null;
6122
6122
  r.replaces && (g = r.replaces._request.call_id, g += ";to-tag=".concat(r.replaces._to_tag), g += ";from-tag=".concat(r.replaces._from_tag), g = encodeURIComponent(g));
6123
6123
  var T = "Refer-To: <".concat(o).concat(g ? "?Replaces=".concat(g) : "", ">");
6124
- if (d.push(T), !d.some(function(A) {
6125
- return A.toLowerCase().startsWith("referred-by:");
6124
+ if (d.push(T), !d.some(function(C) {
6125
+ return C.toLowerCase().startsWith("referred-by:");
6126
6126
  })) {
6127
6127
  var E = "Referred-By: <".concat(this._session._ua._configuration.uri._scheme, ":").concat(this._session._ua._configuration.uri._user, "@").concat(this._session._ua._configuration.uri._host, ">");
6128
6128
  d.push(E);
@@ -6131,11 +6131,11 @@ var Y_ = ft.EventEmitter, J_ = ht, Pi = lt, z_ = os(), Rc = bt(), mn = new J_("R
6131
6131
  var y = this._session.sendRequest(Pi.REFER, {
6132
6132
  extraHeaders: d,
6133
6133
  eventHandlers: {
6134
- onSuccessResponse: function(C) {
6135
- s._requestSucceeded(C);
6134
+ onSuccessResponse: function(A) {
6135
+ s._requestSucceeded(A);
6136
6136
  },
6137
- onErrorResponse: function(C) {
6138
- s._requestFailed(C, Pi.causes.REJECTED);
6137
+ onErrorResponse: function(A) {
6138
+ s._requestFailed(A, Pi.causes.REJECTED);
6139
6139
  },
6140
6140
  onTransportError: function() {
6141
6141
  s._requestFailed(null, Pi.causes.CONNECTION_ERROR);
@@ -6210,13 +6210,13 @@ var Y_ = ft.EventEmitter, J_ = ht, Pi = lt, z_ = os(), Rc = bt(), mn = new J_("R
6210
6210
  }
6211
6211
  }]), n;
6212
6212
  }(Y_);
6213
- function Aa(c) {
6213
+ function Ca(c) {
6214
6214
  "@babel/helpers - typeof";
6215
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Aa = function(n) {
6215
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ca = function(n) {
6216
6216
  return typeof n;
6217
- } : Aa = function(n) {
6217
+ } : Ca = function(n) {
6218
6218
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
6219
- }, Aa(c);
6219
+ }, Ca(c);
6220
6220
  }
6221
6221
  function _s(c, t) {
6222
6222
  var n;
@@ -6304,7 +6304,7 @@ function tp(c) {
6304
6304
  };
6305
6305
  }
6306
6306
  function sp(c, t) {
6307
- return t && (Aa(t) === "object" || typeof t == "function") ? t : np(c);
6307
+ return t && (Ca(t) === "object" || typeof t == "function") ? t : np(c);
6308
6308
  }
6309
6309
  function np(c) {
6310
6310
  if (c === void 0)
@@ -6328,7 +6328,7 @@ function xa(c) {
6328
6328
  return n.__proto__ || Object.getPrototypeOf(n);
6329
6329
  }, xa(c);
6330
6330
  }
6331
- var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt(), xi = nh, ap = Ss, Vl = c_, op = dl, kt = A_, Nc = k_, up = F_, cp = X_, Uc = Ks(), K = new lp("RTCSession"), Q = {
6331
+ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt(), xi = nh, ap = Ss, Vl = c_, op = dl, kt = C_, Nc = k_, up = F_, cp = X_, Uc = Ks(), K = new lp("RTCSession"), Q = {
6332
6332
  // RTCSession states.
6333
6333
  STATUS_NULL: 0,
6334
6334
  STATUS_INVITE_SENT: 1,
@@ -6433,8 +6433,8 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
6433
6433
  video: !0
6434
6434
  }), T = s.mediaStream || null, E = Ve.cloneObject(s.pcConfig, {
6435
6435
  iceServers: []
6436
- }), y = s.rtcConstraints || null, A = s.rtcOfferConstraints || null;
6437
- if (this._rtcOfferConstraints = A, this._rtcAnswerConstraints = s.rtcAnswerConstraints || null, this._data = s.data || this._data, o === void 0)
6436
+ }), y = s.rtcConstraints || null, C = s.rtcOfferConstraints || null;
6437
+ if (this._rtcOfferConstraints = C, this._rtcAnswerConstraints = s.rtcAnswerConstraints || null, this._data = s.data || this._data, o === void 0)
6438
6438
  throw new TypeError("Not enough arguments");
6439
6439
  if (this._status !== Q.STATUS_NULL)
6440
6440
  throw new gn.InvalidStateError(this._status);
@@ -6443,8 +6443,8 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
6443
6443
  if (o = this._ua.normalizeTarget(o), !o)
6444
6444
  throw new TypeError("Invalid target: ".concat(d));
6445
6445
  this._sessionTimers.enabled && Ve.isDecimal(s.sessionTimersExpires) && (s.sessionTimersExpires >= ce.MIN_SESSION_EXPIRES ? this._sessionTimers.defaultExpires = s.sessionTimersExpires : this._sessionTimers.defaultExpires = ce.SESSION_EXPIRES);
6446
- for (var C in h)
6447
- Object.prototype.hasOwnProperty.call(h, C) && this.on(C, h[C]);
6446
+ for (var A in h)
6447
+ Object.prototype.hasOwnProperty.call(h, A) && this.on(A, h[A]);
6448
6448
  this._from_tag = Ve.newTag();
6449
6449
  var I = s.anonymous || !1, H = {
6450
6450
  from_tag: this._from_tag
@@ -6452,7 +6452,7 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
6452
6452
  this._contact = this._ua.contact.toString({
6453
6453
  anonymous: I,
6454
6454
  outbound: !0
6455
- }), I ? (H.from_display_name = "Anonymous", H.from_uri = new Uc("sip", "anonymous", "anonymous.invalid"), _.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString())), _.push("Privacy: id")) : s.fromUserName && (H.from_uri = new Uc("sip", s.fromUserName, this._ua.configuration.uri.host), _.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))), s.fromDisplayName && (H.from_display_name = s.fromDisplayName), _.push("Contact: ".concat(this._contact)), _.push("Content-Type: application/sdp"), this._sessionTimers.enabled && _.push("Session-Expires: ".concat(this._sessionTimers.defaultExpires).concat(this._ua.configuration.session_timers_force_refresher ? ";refresher=uac" : "")), this._request = new ap.InitialOutgoingInviteRequest(o, this._ua, H, _), this._id = this._request.call_id + this._from_tag, this._createRTCConnection(E, y), this._direction = "outgoing", this._local_identity = this._request.from, this._remote_identity = this._request.to, r && r(this), this._newRTCSession("local", this._request), this._sendInitialRequest(g, A, T);
6455
+ }), I ? (H.from_display_name = "Anonymous", H.from_uri = new Uc("sip", "anonymous", "anonymous.invalid"), _.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString())), _.push("Privacy: id")) : s.fromUserName && (H.from_uri = new Uc("sip", s.fromUserName, this._ua.configuration.uri.host), _.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))), s.fromDisplayName && (H.from_display_name = s.fromDisplayName), _.push("Contact: ".concat(this._contact)), _.push("Content-Type: application/sdp"), this._sessionTimers.enabled && _.push("Session-Expires: ".concat(this._sessionTimers.defaultExpires).concat(this._ua.configuration.session_timers_force_refresher ? ";refresher=uac" : "")), this._request = new ap.InitialOutgoingInviteRequest(o, this._ua, H, _), this._id = this._request.call_id + this._from_tag, this._createRTCConnection(E, y), this._direction = "outgoing", this._local_identity = this._request.from, this._remote_identity = this._request.to, r && r(this), this._newRTCSession("local", this._request), this._sendInitialRequest(g, C, T);
6456
6456
  }
6457
6457
  }, {
6458
6458
  key: "init_incoming",
@@ -6484,7 +6484,7 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
6484
6484
  K.debug("answer()");
6485
6485
  var r = this._request, d = Ve.cloneArray(s.extraHeaders), h = Ve.cloneObject(s.mediaConstraints), _ = s.mediaStream || null, g = Ve.cloneObject(s.pcConfig, {
6486
6486
  iceServers: []
6487
- }), T = s.rtcConstraints || null, E = s.rtcAnswerConstraints || null, y = Ve.cloneObject(s.rtcOfferConstraints), A, C = !1, I = !1, H = !1, $ = !1;
6487
+ }), T = s.rtcConstraints || null, E = s.rtcAnswerConstraints || null, y = Ve.cloneObject(s.rtcOfferConstraints), C, A = !1, I = !1, H = !1, $ = !1;
6488
6488
  if (this._rtcAnswerConstraints = E, this._rtcOfferConstraints = s.rtcOfferConstraints || null, this._data = s.data || this._data, this._direction !== "incoming")
6489
6489
  throw new gn.NotSupportedError('"answer" not supported for outgoing RTCSession');
6490
6490
  if (this._status !== Q.STATUS_WAITING_FOR_ANSWER)
@@ -6500,7 +6500,7 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
6500
6500
  try {
6501
6501
  for (N.s(); !(j = N.n()).done; ) {
6502
6502
  var Se = j.value;
6503
- Se.type === "audio" && (C = !0, (!Se.direction || Se.direction === "sendrecv") && (H = !0)), Se.type === "video" && (I = !0, (!Se.direction || Se.direction === "sendrecv") && ($ = !0));
6503
+ Se.type === "audio" && (A = !0, (!Se.direction || Se.direction === "sendrecv") && (H = !0)), Se.type === "video" && (I = !0, (!Se.direction || Se.direction === "sendrecv") && ($ = !0));
6504
6504
  }
6505
6505
  } catch (F) {
6506
6506
  N.e(F);
@@ -6508,8 +6508,8 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
6508
6508
  N.f();
6509
6509
  }
6510
6510
  if (_ && h.audio === !1) {
6511
- A = _.getAudioTracks();
6512
- var ve = _s(A), k;
6511
+ C = _.getAudioTracks();
6512
+ var ve = _s(C), k;
6513
6513
  try {
6514
6514
  for (ve.s(); !(k = ve.n()).done; ) {
6515
6515
  var D = k.value;
@@ -6522,8 +6522,8 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
6522
6522
  }
6523
6523
  }
6524
6524
  if (_ && h.video === !1) {
6525
- A = _.getVideoTracks();
6526
- var B = _s(A), V;
6525
+ C = _.getVideoTracks();
6526
+ var B = _s(C), V;
6527
6527
  try {
6528
6528
  for (B.s(); !(V = B.n()).done; ) {
6529
6529
  var J = V.value;
@@ -6535,7 +6535,7 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
6535
6535
  B.f();
6536
6536
  }
6537
6537
  }
6538
- !_ && h.audio === void 0 && (h.audio = H), !_ && h.video === void 0 && (h.video = $), !_ && !C && !y.offerToReceiveAudio && (h.audio = !1), !_ && !I && !y.offerToReceiveVideo && (h.video = !1), this._createRTCConnection(g, T), Promise.resolve().then(function() {
6538
+ !_ && h.audio === void 0 && (h.audio = H), !_ && h.video === void 0 && (h.video = $), !_ && !A && !y.offerToReceiveAudio && (h.audio = !1), !_ && !I && !y.offerToReceiveVideo && (h.video = !1), this._createRTCConnection(g, T), Promise.resolve().then(function() {
6539
6539
  if (_)
6540
6540
  return _;
6541
6541
  if (h.audio || h.video)
@@ -6618,8 +6618,8 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
6618
6618
  if (g && d.push("Reason: SIP ;cause=".concat(g, '; text="').concat(T, '"')), this._status === Q.STATUS_WAITING_FOR_ACK && this._direction === "incoming" && this._request.server_transaction.state !== Dc.C.STATUS_TERMINATED) {
6619
6619
  var E = this._dialog;
6620
6620
  this.receiveRequest = function(y) {
6621
- var A = y.method;
6622
- A === ce.ACK && (o.sendRequest(ce.BYE, {
6621
+ var C = y.method;
6622
+ C === ce.ACK && (o.sendRequest(ce.BYE, {
6623
6623
  extraHeaders: d,
6624
6624
  body: h
6625
6625
  }), E.terminate());
@@ -6670,16 +6670,16 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
6670
6670
  this._tones = null;
6671
6671
  return;
6672
6672
  }
6673
- var A = this._tones[r];
6674
- if (r += 1, A === ",")
6673
+ var C = this._tones[r];
6674
+ if (r += 1, C === ",")
6675
6675
  y = 2e3;
6676
6676
  else {
6677
- var C = new kt(this);
6677
+ var A = new kt(this);
6678
6678
  s.eventHandlers = {
6679
6679
  onFailed: function() {
6680
6680
  E._tones = null;
6681
6681
  }
6682
- }, C.send(A, s), y = d + h;
6682
+ }, A.send(C, s), y = d + h;
6683
6683
  }
6684
6684
  setTimeout(T.bind(this), y);
6685
6685
  }
@@ -7066,7 +7066,7 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7066
7066
  return new Promise(function(g) {
7067
7067
  var T = !1, E, y;
7068
7068
  r._iceReady = !1;
7069
- var A = function() {
7069
+ var C = function() {
7070
7070
  d.removeEventListener("icecandidate", E), d.removeEventListener("icegatheringstatechange", y), T = !0, r._rtcReady = !0, r._iceReady = !0;
7071
7071
  var I = {
7072
7072
  originator: "local",
@@ -7079,10 +7079,10 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7079
7079
  var H = I.candidate;
7080
7080
  H ? r.emit("icecandidate", {
7081
7081
  candidate: H,
7082
- ready: A
7083
- }) : T || A();
7082
+ ready: C
7083
+ }) : T || C();
7084
7084
  }), d.addEventListener("icegatheringstatechange", y = function() {
7085
- d.iceGatheringState === "complete" && !T && A();
7085
+ d.iceGatheringState === "complete" && !T && C();
7086
7086
  });
7087
7087
  });
7088
7088
  });
@@ -7117,12 +7117,12 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7117
7117
  function _() {
7118
7118
  var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7119
7119
  h = !0;
7120
- var E = T.status_code || 403, y = T.reason_phrase || "", A = Ve.cloneArray(T.extraHeaders);
7120
+ var E = T.status_code || 403, y = T.reason_phrase || "", C = Ve.cloneArray(T.extraHeaders);
7121
7121
  if (this._status !== Q.STATUS_CONFIRMED)
7122
7122
  return !1;
7123
7123
  if (E < 300 || E >= 700)
7124
7124
  throw new TypeError("Invalid status_code: ".concat(E));
7125
- o.reply(E, y, A);
7125
+ o.reply(E, y, C);
7126
7126
  }
7127
7127
  if (this.emit("reinvite", d), h)
7128
7128
  return;
@@ -7168,12 +7168,12 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7168
7168
  function _() {
7169
7169
  var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7170
7170
  h = !0;
7171
- var E = T.status_code || 403, y = T.reason_phrase || "", A = Ve.cloneArray(T.extraHeaders);
7171
+ var E = T.status_code || 403, y = T.reason_phrase || "", C = Ve.cloneArray(T.extraHeaders);
7172
7172
  if (this._status !== Q.STATUS_CONFIRMED)
7173
7173
  return !1;
7174
7174
  if (E < 300 || E >= 700)
7175
7175
  throw new TypeError("Invalid status_code: ".concat(E));
7176
- o.reply(E, y, A);
7176
+ o.reply(E, y, C);
7177
7177
  }
7178
7178
  if (this.emit("update", d), h)
7179
7179
  return;
@@ -7214,8 +7214,8 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7214
7214
  }
7215
7215
  }
7216
7216
  }
7217
- } catch (A) {
7218
- h.e(A);
7217
+ } catch (C) {
7218
+ h.e(C);
7219
7219
  } finally {
7220
7220
  h.f();
7221
7221
  }
@@ -7232,8 +7232,8 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7232
7232
  return this._connectionPromiseQueue = this._connectionPromiseQueue.then(function() {
7233
7233
  if (s._status === Q.STATUS_TERMINATED)
7234
7234
  throw new Error("terminated");
7235
- return s._connection.setRemoteDescription(y).catch(function(A) {
7236
- throw o.reply(488), K.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]', A), s.emit("peerconnection:setremotedescriptionfailed", A), A;
7235
+ return s._connection.setRemoteDescription(y).catch(function(C) {
7236
+ throw o.reply(488), K.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]', C), s.emit("peerconnection:setremotedescriptionfailed", C), C;
7237
7237
  });
7238
7238
  }).then(function() {
7239
7239
  if (s._status === Q.STATUS_TERMINATED)
@@ -7242,11 +7242,11 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7242
7242
  }).then(function() {
7243
7243
  if (s._status === Q.STATUS_TERMINATED)
7244
7244
  throw new Error("terminated");
7245
- return s._createLocalDescription("answer", s._rtcAnswerConstraints).catch(function(A) {
7246
- throw o.reply(500), K.warn('emit "peerconnection:createtelocaldescriptionfailed" [error:%o]', A), A;
7245
+ return s._createLocalDescription("answer", s._rtcAnswerConstraints).catch(function(C) {
7246
+ throw o.reply(500), K.warn('emit "peerconnection:createtelocaldescriptionfailed" [error:%o]', C), C;
7247
7247
  });
7248
- }).catch(function(A) {
7249
- K.warn("_processInDialogSdpOffer() failed [error: %o]", A);
7248
+ }).catch(function(C) {
7249
+ K.warn("_processInDialogSdpOffer() failed [error: %o]", C);
7250
7250
  }), this._connectionPromiseQueue;
7251
7251
  }
7252
7252
  /**
@@ -7281,14 +7281,14 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7281
7281
  return !1;
7282
7282
  var T = new n(this._ua);
7283
7283
  if (T.on("progress", function(y) {
7284
- var A = y.response;
7285
- r.notify(A.status_code, A.reason_phrase);
7284
+ var C = y.response;
7285
+ r.notify(C.status_code, C.reason_phrase);
7286
7286
  }), T.on("accepted", function(y) {
7287
- var A = y.response;
7288
- r.notify(A.status_code, A.reason_phrase);
7287
+ var C = y.response;
7288
+ r.notify(C.status_code, C.reason_phrase);
7289
7289
  }), T.on("_failed", function(y) {
7290
- var A = y.message, C = y.cause;
7291
- A ? r.notify(A.status_code, A.reason_phrase) : r.notify(487, C);
7290
+ var C = y.message, A = y.cause;
7291
+ C ? r.notify(C.status_code, C.reason_phrase) : r.notify(487, A);
7292
7292
  }), o.refer_to.uri.hasHeader("replaces")) {
7293
7293
  var E = decodeURIComponent(o.refer_to.uri.getHeader("replaces"));
7294
7294
  g.extraHeaders = Ve.cloneArray(g.extraHeaders), g.extraHeaders.push("Replaces: ".concat(E));
@@ -7538,11 +7538,11 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7538
7538
  extraHeaders: r,
7539
7539
  body: E,
7540
7540
  eventHandlers: {
7541
- onSuccessResponse: function(C) {
7542
- g.call(o, C), _ = !0;
7541
+ onSuccessResponse: function(A) {
7542
+ g.call(o, A), _ = !0;
7543
7543
  },
7544
- onErrorResponse: function(C) {
7545
- T.call(o, C);
7544
+ onErrorResponse: function(A) {
7545
+ T.call(o, A);
7546
7546
  },
7547
7547
  onTransportError: function() {
7548
7548
  o.onTransportError();
@@ -7570,18 +7570,18 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7570
7570
  T.call(this);
7571
7571
  return;
7572
7572
  }
7573
- var A = {
7573
+ var C = {
7574
7574
  originator: "remote",
7575
7575
  type: "answer",
7576
7576
  sdp: E.body
7577
7577
  };
7578
- K.debug('emit "sdp"'), this.emit("sdp", A);
7579
- var C = new RTCSessionDescription({
7578
+ K.debug('emit "sdp"'), this.emit("sdp", C);
7579
+ var A = new RTCSessionDescription({
7580
7580
  type: "answer",
7581
- sdp: A.sdp
7581
+ sdp: C.sdp
7582
7582
  });
7583
7583
  this._connectionPromiseQueue = this._connectionPromiseQueue.then(function() {
7584
- return y._connection.setRemoteDescription(C);
7584
+ return y._connection.setRemoteDescription(A);
7585
7585
  }).then(function() {
7586
7586
  d.succeeded && d.succeeded(E);
7587
7587
  }).catch(function(I) {
@@ -7606,12 +7606,12 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7606
7606
  return o._createLocalDescription("offer", h);
7607
7607
  }).then(function(y) {
7608
7608
  y = o._mangleOffer(y);
7609
- var A = {
7609
+ var C = {
7610
7610
  originator: "local",
7611
7611
  type: "offer",
7612
7612
  sdp: y
7613
7613
  };
7614
- K.debug('emit "sdp"'), o.emit("sdp", A), o.sendRequest(ce.UPDATE, {
7614
+ K.debug('emit "sdp"'), o.emit("sdp", C), o.sendRequest(ce.UPDATE, {
7615
7615
  extraHeaders: r,
7616
7616
  body: y,
7617
7617
  eventHandlers: {
@@ -7637,11 +7637,11 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7637
7637
  })) : this.sendRequest(ce.UPDATE, {
7638
7638
  extraHeaders: r,
7639
7639
  eventHandlers: {
7640
- onSuccessResponse: function(A) {
7641
- T.call(o, A);
7640
+ onSuccessResponse: function(C) {
7641
+ T.call(o, C);
7642
7642
  },
7643
- onErrorResponse: function(A) {
7644
- E.call(o, A);
7643
+ onErrorResponse: function(C) {
7644
+ E.call(o, C);
7645
7645
  },
7646
7646
  onTransportError: function() {
7647
7647
  o.onTransportError();
@@ -7655,7 +7655,7 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7655
7655
  }
7656
7656
  });
7657
7657
  function T(y) {
7658
- var A = this;
7658
+ var C = this;
7659
7659
  if (this._status !== Q.STATUS_TERMINATED && !g)
7660
7660
  if (this._handleSessionTimersInIncomingResponse(y), _) {
7661
7661
  if (y.body) {
@@ -7667,22 +7667,22 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7667
7667
  E.call(this);
7668
7668
  return;
7669
7669
  }
7670
- var C = {
7670
+ var A = {
7671
7671
  originator: "remote",
7672
7672
  type: "answer",
7673
7673
  sdp: y.body
7674
7674
  };
7675
- K.debug('emit "sdp"'), this.emit("sdp", C);
7675
+ K.debug('emit "sdp"'), this.emit("sdp", A);
7676
7676
  var I = new RTCSessionDescription({
7677
7677
  type: "answer",
7678
- sdp: C.sdp
7678
+ sdp: A.sdp
7679
7679
  });
7680
7680
  this._connectionPromiseQueue = this._connectionPromiseQueue.then(function() {
7681
- return A._connection.setRemoteDescription(I);
7681
+ return C._connection.setRemoteDescription(I);
7682
7682
  }).then(function() {
7683
7683
  d.succeeded && d.succeeded(y);
7684
7684
  }).catch(function(H) {
7685
- E.call(A), K.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]', H), A.emit("peerconnection:setremotedescriptionfailed", H);
7685
+ E.call(C), K.warn('emit "peerconnection:setremotedescriptionfailed" [error:%o]', H), C.emit("peerconnection:setremotedescriptionfailed", H);
7686
7686
  });
7687
7687
  } else
7688
7688
  d.succeeded && d.succeeded(y);
@@ -7716,8 +7716,8 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7716
7716
  var d = r.value;
7717
7717
  Bl.indexOf(d.type) !== -1 && (d.direction ? d.direction === "sendrecv" ? d.direction = "sendonly" : d.direction === "recvonly" && (d.direction = "inactive") : d.direction = "sendonly");
7718
7718
  }
7719
- } catch (A) {
7720
- s.e(A);
7719
+ } catch (C) {
7720
+ s.e(C);
7721
7721
  } finally {
7722
7722
  s.f();
7723
7723
  }
@@ -7729,8 +7729,8 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7729
7729
  var g = _.value;
7730
7730
  Bl.indexOf(g.type) !== -1 && (g.direction = "inactive");
7731
7731
  }
7732
- } catch (A) {
7733
- h.e(A);
7732
+ } catch (C) {
7733
+ h.e(C);
7734
7734
  } finally {
7735
7735
  h.f();
7736
7736
  }
@@ -7742,8 +7742,8 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7742
7742
  var y = E.value;
7743
7743
  Bl.indexOf(y.type) !== -1 && (y.direction ? y.direction === "sendrecv" ? y.direction = "recvonly" : y.direction === "recvonly" && (y.direction = "inactive") : y.direction = "recvonly");
7744
7744
  }
7745
- } catch (A) {
7746
- T.e(A);
7745
+ } catch (C) {
7746
+ T.e(C);
7747
7747
  } finally {
7748
7748
  T.f();
7749
7749
  }
@@ -7989,13 +7989,13 @@ var ip = ft.EventEmitter, Oc = xt, lp = ht, ce = lt, gn = Ws, Dc = hl, Ve = bt()
7989
7989
  }
7990
7990
  }]), n;
7991
7991
  }(ip);
7992
- function Ca(c) {
7992
+ function Aa(c) {
7993
7993
  "@babel/helpers - typeof";
7994
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ca = function(n) {
7994
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Aa = function(n) {
7995
7995
  return typeof n;
7996
- } : Ca = function(n) {
7996
+ } : Aa = function(n) {
7997
7997
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
7998
- }, Ca(c);
7998
+ }, Aa(c);
7999
7999
  }
8000
8000
  function hp(c, t) {
8001
8001
  if (!(c instanceof t))
@@ -8033,7 +8033,7 @@ function pp(c) {
8033
8033
  };
8034
8034
  }
8035
8035
  function mp(c, t) {
8036
- return t && (Ca(t) === "object" || typeof t == "function") ? t : gp(c);
8036
+ return t && (Aa(t) === "object" || typeof t == "function") ? t : gp(c);
8037
8037
  }
8038
8038
  function gp(c) {
8039
8039
  if (c === void 0)
@@ -8057,7 +8057,7 @@ function ka(c) {
8057
8057
  return n.__proto__ || Object.getPrototypeOf(n);
8058
8058
  }, ka(c);
8059
8059
  }
8060
- var vp = ft.EventEmitter, Ep = ht, Ro = lt, Sp = Ss, ki = bt(), yp = dl, xc = Ws, Ap = Ks(), Gl = new Ep("Message"), Cp = /* @__PURE__ */ function(c) {
8060
+ var vp = ft.EventEmitter, Ep = ht, Ro = lt, Sp = Ss, ki = bt(), yp = dl, xc = Ws, Cp = Ks(), Gl = new Ep("Message"), Ap = /* @__PURE__ */ function(c) {
8061
8061
  _p(n, c);
8062
8062
  var t = pp(n);
8063
8063
  function n(a) {
@@ -8073,11 +8073,11 @@ var vp = ft.EventEmitter, Ep = ht, Ro = lt, Sp = Ss, ki = bt(), yp = dl, xc = Ws
8073
8073
  if (o = this._ua.normalizeTarget(o), !o)
8074
8074
  throw new TypeError("Invalid target: ".concat(h));
8075
8075
  var _ = ki.cloneArray(d.extraHeaders), g = ki.cloneObject(d.eventHandlers), T = d.contentType || "text/plain", E = {};
8076
- d.fromUserName && (E.from_uri = new Ap("sip", d.fromUserName, this._ua.configuration.uri.host), _.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))), d.fromDisplayName && (E.from_display_name = d.fromDisplayName);
8076
+ d.fromUserName && (E.from_uri = new Cp("sip", d.fromUserName, this._ua.configuration.uri.host), _.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))), d.fromDisplayName && (E.from_display_name = d.fromDisplayName);
8077
8077
  for (var y in g)
8078
8078
  Object.prototype.hasOwnProperty.call(g, y) && this.on(y, g[y]);
8079
8079
  _.push("Content-Type: ".concat(T)), this._request = new Sp.OutgoingRequest(Ro.MESSAGE, o, this._ua, E, _), s && (this._request.body = s);
8080
- var A = new yp(this._ua, this._request, {
8080
+ var C = new yp(this._ua, this._request, {
8081
8081
  onRequestTimeout: function() {
8082
8082
  r._onRequestTimeout();
8083
8083
  },
@@ -8088,7 +8088,7 @@ var vp = ft.EventEmitter, Ep = ht, Ro = lt, Sp = Ss, ki = bt(), yp = dl, xc = Ws
8088
8088
  r._receiveResponse(I);
8089
8089
  }
8090
8090
  });
8091
- this._newMessage("local", this._request), A.send();
8091
+ this._newMessage("local", this._request), C.send();
8092
8092
  }
8093
8093
  }, {
8094
8094
  key: "init_incoming",
@@ -8297,8 +8297,8 @@ var Up = ft.EventEmitter, Pp = ht, Io = lt, xp = Ss, Mi = bt(), kp = dl, Mc = Ws
8297
8297
  onTransportError: function() {
8298
8298
  r._onTransportError();
8299
8299
  },
8300
- onReceiveResponse: function(C) {
8301
- r._receiveResponse(C);
8300
+ onReceiveResponse: function(A) {
8301
+ r._receiveResponse(A);
8302
8302
  }
8303
8303
  });
8304
8304
  this._newOptions("local", this._request), y.send();
@@ -8760,8 +8760,8 @@ function Kp(c, t, n, a) {
8760
8760
  var g = _.value;
8761
8761
  c.addHeader("record-route", d.substring(g.possition, g.offset)), c.headers["Record-Route"][c.getHeaders("record-route").length - 1].parsed = g.parsed;
8762
8762
  }
8763
- } catch (A) {
8764
- h.e(A);
8763
+ } catch (C) {
8764
+ h.e(C);
8765
8765
  } finally {
8766
8766
  h.f();
8767
8767
  }
@@ -8782,8 +8782,8 @@ function Kp(c, t, n, a) {
8782
8782
  var y = E.value;
8783
8783
  c.addHeader("contact", d.substring(y.possition, y.offset)), c.headers.Contact[c.getHeaders("contact").length - 1].parsed = y.parsed;
8784
8784
  }
8785
- } catch (A) {
8786
- T.e(A);
8785
+ } catch (C) {
8786
+ T.e(C);
8787
8787
  } finally {
8788
8788
  T.f();
8789
8789
  }
@@ -8881,8 +8881,8 @@ function jc(c, t) {
8881
8881
  a[n] = c[n];
8882
8882
  return a;
8883
8883
  }
8884
- var Jp = ht, lh = lt, qc = Ss, ku = bt(), Mu = new Jp("sanityCheck"), zp = [lm], Xp = [em, tm, sm, nm], Qp = [rm, im], Fe, rs, ah, Zp = function(c, t, n) {
8885
- Fe = c, rs = t, ah = n;
8884
+ var Jp = ht, lh = lt, qc = Ss, ku = bt(), Mu = new Jp("sanityCheck"), zp = [lm], Xp = [em, tm, sm, nm], Qp = [rm, im], He, rs, ah, Zp = function(c, t, n) {
8885
+ He = c, rs = t, ah = n;
8886
8886
  var a = Ia(zp), o;
8887
8887
  try {
8888
8888
  for (a.s(); !(o = a.n()).done; ) {
@@ -8895,7 +8895,7 @@ var Jp = ht, lh = lt, qc = Ss, ku = bt(), Mu = new Jp("sanityCheck"), zp = [lm],
8895
8895
  } finally {
8896
8896
  a.f();
8897
8897
  }
8898
- if (Fe instanceof qc.IncomingRequest) {
8898
+ if (He instanceof qc.IncomingRequest) {
8899
8899
  var r = Ia(Xp), d;
8900
8900
  try {
8901
8901
  for (r.s(); !(d = r.n()).done; ) {
@@ -8908,7 +8908,7 @@ var Jp = ht, lh = lt, qc = Ss, ku = bt(), Mu = new Jp("sanityCheck"), zp = [lm],
8908
8908
  } finally {
8909
8909
  r.f();
8910
8910
  }
8911
- } else if (Fe instanceof qc.IncomingResponse) {
8911
+ } else if (He instanceof qc.IncomingResponse) {
8912
8912
  var _ = Ia(Qp), g;
8913
8913
  try {
8914
8914
  for (_.s(); !(g = _.n()).done; ) {
@@ -8925,29 +8925,29 @@ var Jp = ht, lh = lt, qc = Ss, ku = bt(), Mu = new Jp("sanityCheck"), zp = [lm],
8925
8925
  return !0;
8926
8926
  };
8927
8927
  function em() {
8928
- if (Fe.s("to").uri.scheme !== "sip")
8928
+ if (He.s("to").uri.scheme !== "sip")
8929
8929
  return tl(416), !1;
8930
8930
  }
8931
8931
  function tm() {
8932
- if (!Fe.to_tag && Fe.call_id.substr(0, 5) === rs.configuration.jssip_id)
8932
+ if (!He.to_tag && He.call_id.substr(0, 5) === rs.configuration.jssip_id)
8933
8933
  return tl(482), !1;
8934
8934
  }
8935
8935
  function sm() {
8936
- var c = ku.str_utf8_length(Fe.body), t = Fe.getHeader("content-length");
8936
+ var c = ku.str_utf8_length(He.body), t = He.getHeader("content-length");
8937
8937
  if (c < t)
8938
8938
  return tl(400), !1;
8939
8939
  }
8940
8940
  function nm() {
8941
- var c = Fe.from_tag, t = Fe.call_id, n = Fe.cseq, a;
8942
- if (!Fe.to_tag)
8943
- if (Fe.method === lh.INVITE) {
8944
- if (rs._transactions.ist[Fe.via_branch])
8941
+ var c = He.from_tag, t = He.call_id, n = He.cseq, a;
8942
+ if (!He.to_tag)
8943
+ if (He.method === lh.INVITE) {
8944
+ if (rs._transactions.ist[He.via_branch])
8945
8945
  return !1;
8946
8946
  for (var o in rs._transactions.ist)
8947
8947
  if (Object.prototype.hasOwnProperty.call(rs._transactions.ist, o) && (a = rs._transactions.ist[o], a.request.from_tag === c && a.request.call_id === t && a.request.cseq === n))
8948
8948
  return tl(482), !1;
8949
8949
  } else {
8950
- if (rs._transactions.nist[Fe.via_branch])
8950
+ if (rs._transactions.nist[He.via_branch])
8951
8951
  return !1;
8952
8952
  for (var s in rs._transactions.nist)
8953
8953
  if (Object.prototype.hasOwnProperty.call(rs._transactions.nist, s) && (a = rs._transactions.nist[s], a.request.from_tag === c && a.request.call_id === t && a.request.cseq === n))
@@ -8955,23 +8955,23 @@ function nm() {
8955
8955
  }
8956
8956
  }
8957
8957
  function rm() {
8958
- if (Fe.getHeaders("via").length > 1)
8958
+ if (He.getHeaders("via").length > 1)
8959
8959
  return Mu.debug("more than one Via header field present in the response, dropping the response"), !1;
8960
8960
  }
8961
8961
  function im() {
8962
- var c = ku.str_utf8_length(Fe.body), t = Fe.getHeader("content-length");
8962
+ var c = ku.str_utf8_length(He.body), t = He.getHeader("content-length");
8963
8963
  if (c < t)
8964
8964
  return Mu.debug("message body length is lower than the value in Content-Length header field, dropping the response"), !1;
8965
8965
  }
8966
8966
  function lm() {
8967
8967
  for (var c = ["from", "to", "call_id", "cseq", "via"], t = 0, n = c; t < n.length; t++) {
8968
8968
  var a = n[t];
8969
- if (!Fe.hasHeader(a))
8969
+ if (!He.hasHeader(a))
8970
8970
  return Mu.debug("missing mandatory header field : ".concat(a, ", dropping the response")), !1;
8971
8971
  }
8972
8972
  }
8973
8973
  function tl(c) {
8974
- var t = Fe.getHeaders("via"), n, a = "SIP/2.0 ".concat(c, " ").concat(lh.REASON_PHRASE[c], `\r
8974
+ var t = He.getHeaders("via"), n, a = "SIP/2.0 ".concat(c, " ").concat(lh.REASON_PHRASE[c], `\r
8975
8975
  `), o = Ia(t), s;
8976
8976
  try {
8977
8977
  for (o.s(); !(s = o.n()).done; ) {
@@ -8984,10 +8984,10 @@ function tl(c) {
8984
8984
  } finally {
8985
8985
  o.f();
8986
8986
  }
8987
- n = Fe.getHeader("To"), Fe.to_tag || (n += ";tag=".concat(ku.newTag())), a += "To: ".concat(n, `\r
8988
- `), a += "From: ".concat(Fe.getHeader("From"), `\r
8989
- `), a += "Call-ID: ".concat(Fe.call_id, `\r
8990
- `), a += "CSeq: ".concat(Fe.cseq, " ").concat(Fe.method, `\r
8987
+ n = He.getHeader("To"), He.to_tag || (n += ";tag=".concat(ku.newTag())), a += "To: ".concat(n, `\r
8988
+ `), a += "From: ".concat(He.getHeader("From"), `\r
8989
+ `), a += "Call-ID: ".concat(He.call_id, `\r
8990
+ `), a += "CSeq: ".concat(He.cseq, " ").concat(He.method, `\r
8991
8991
  `), a += `\r
8992
8992
  `, ah.send(a);
8993
8993
  }
@@ -9312,7 +9312,7 @@ function La(c) {
9312
9312
  return n.__proto__ || Object.getPrototypeOf(n);
9313
9313
  }, La(c);
9314
9314
  }
9315
- var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp, No = hl, mm = Vp, Jl = bt(), gm = Ws, Tm = Ks(), vm = ih, Uo = Ss, Em = Zp, Po = Lu, qe = new _m("UA"), Tt = {
9315
+ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Ap, zc = Mp, No = hl, mm = Vp, Jl = bt(), gm = Ws, Tm = Ks(), vm = ih, Uo = Ss, Em = Zp, Po = Lu, je = new _m("UA"), Tt = {
9316
9316
  // UA status codes.
9317
9317
  STATUS_INIT: 0,
9318
9318
  STATUS_READY: 1,
@@ -9333,7 +9333,7 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9333
9333
  }]);
9334
9334
  function n(a) {
9335
9335
  var o;
9336
- if (om(this, n), console.log("constructor es5"), qe.debug("new() [configuration:%o]", a), o = t.call(this), o._cache = {
9336
+ if (om(this, n), je.debug("new() [configuration:%o]", a), o = t.call(this), o._cache = {
9337
9337
  credentials: {}
9338
9338
  }, o._configuration = Object.assign({}, Po.settings), o._dynConfiguration = {}, o._dialogs = {}, o._applicants = {}, o._sessions = {}, o._transport = null, o._contact = null, o._status = Tt.STATUS_INIT, o._error = null, o._transactions = {
9339
9339
  nist: {},
@@ -9359,7 +9359,7 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9359
9359
  * Resume UA after being closed.
9360
9360
  */
9361
9361
  value: function() {
9362
- qe.debug("start()"), this._status === Tt.STATUS_INIT ? this._transport.connect() : this._status === Tt.STATUS_USER_CLOSED ? (qe.debug("restarting UA"), this._closeTimer !== null && (clearTimeout(this._closeTimer), this._closeTimer = null, this._transport.disconnect()), this._status = Tt.STATUS_INIT, this._transport.connect()) : this._status === Tt.STATUS_READY ? qe.debug("UA is in READY status, not restarted") : qe.debug("ERROR: connection is down, Auto-Recovery system is trying to reconnect"), this._dynConfiguration.register = this._configuration.register;
9362
+ je.debug("start()"), this._status === Tt.STATUS_INIT ? this._transport.connect() : this._status === Tt.STATUS_USER_CLOSED ? (je.debug("restarting UA"), this._closeTimer !== null && (clearTimeout(this._closeTimer), this._closeTimer = null, this._transport.disconnect()), this._status = Tt.STATUS_INIT, this._transport.connect()) : this._status === Tt.STATUS_READY ? je.debug("UA is in READY status, not restarted") : je.debug("ERROR: connection is down, Auto-Recovery system is trying to reconnect"), this._dynConfiguration.register = this._configuration.register;
9363
9363
  }
9364
9364
  /**
9365
9365
  * Register.
@@ -9367,7 +9367,7 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9367
9367
  }, {
9368
9368
  key: "register",
9369
9369
  value: function() {
9370
- qe.debug("register()"), this._dynConfiguration.register = !0, this._registrator.register();
9370
+ je.debug("register()"), this._dynConfiguration.register = !0, this._registrator.register();
9371
9371
  }
9372
9372
  /**
9373
9373
  * Unregister.
@@ -9375,7 +9375,7 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9375
9375
  }, {
9376
9376
  key: "unregister",
9377
9377
  value: function(o) {
9378
- qe.debug("unregister()"), this._dynConfiguration.register = !1, this._registrator.unregister(o);
9378
+ je.debug("unregister()"), this._dynConfiguration.register = !1, this._registrator.unregister(o);
9379
9379
  }
9380
9380
  /**
9381
9381
  * Get the Registrator instance.
@@ -9413,7 +9413,7 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9413
9413
  }, {
9414
9414
  key: "call",
9415
9415
  value: function(o, s) {
9416
- qe.debug("call()");
9416
+ je.debug("call()");
9417
9417
  var r = new Yc(this);
9418
9418
  return r.connect(o, s), r;
9419
9419
  }
@@ -9430,7 +9430,7 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9430
9430
  }, {
9431
9431
  key: "sendMessage",
9432
9432
  value: function(o, s, r) {
9433
- qe.debug("sendMessage()");
9433
+ je.debug("sendMessage()");
9434
9434
  var d = new Jc(this);
9435
9435
  return d.send(o, s, r), d;
9436
9436
  }
@@ -9447,7 +9447,7 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9447
9447
  }, {
9448
9448
  key: "sendOptions",
9449
9449
  value: function(o, s, r) {
9450
- qe.debug("sendOptions()");
9450
+ je.debug("sendOptions()");
9451
9451
  var d = new zc(this);
9452
9452
  return d.send(o, s, r), d;
9453
9453
  }
@@ -9457,7 +9457,7 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9457
9457
  }, {
9458
9458
  key: "terminateSessions",
9459
9459
  value: function(o) {
9460
- qe.debug("terminateSessions()");
9460
+ je.debug("terminateSessions()");
9461
9461
  for (var s in this._sessions)
9462
9462
  this._sessions[s].isEnded() || this._sessions[s].terminate(o);
9463
9463
  }
@@ -9469,15 +9469,15 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9469
9469
  key: "stop",
9470
9470
  value: function() {
9471
9471
  var o = this;
9472
- if (qe.debug("stop()"), this._dynConfiguration = {}, this._status === Tt.STATUS_USER_CLOSED) {
9473
- qe.debug("UA already closed");
9472
+ if (je.debug("stop()"), this._dynConfiguration = {}, this._status === Tt.STATUS_USER_CLOSED) {
9473
+ je.debug("UA already closed");
9474
9474
  return;
9475
9475
  }
9476
9476
  this._registrator.close();
9477
9477
  var s = Object.keys(this._sessions).length;
9478
9478
  for (var r in this._sessions)
9479
9479
  if (Object.prototype.hasOwnProperty.call(this._sessions, r)) {
9480
- qe.debug("closing session ".concat(r));
9480
+ je.debug("closing session ".concat(r));
9481
9481
  try {
9482
9482
  this._sessions[r].terminate();
9483
9483
  } catch {
@@ -9521,7 +9521,7 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9521
9521
  case "authorization_jwt":
9522
9522
  return this._configuration.authorization_jwt;
9523
9523
  default:
9524
- qe.warn('get() | cannot get "%s" parameter in runtime', o);
9524
+ je.warn('get() | cannot get "%s" parameter in runtime', o);
9525
9525
  return;
9526
9526
  }
9527
9527
  }
@@ -9558,7 +9558,7 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9558
9558
  break;
9559
9559
  }
9560
9560
  default:
9561
- return qe.warn('set() | cannot set "%s" parameter in runtime', o), !1;
9561
+ return je.warn('set() | cannot set "%s" parameter in runtime', o), !1;
9562
9562
  }
9563
9563
  return !0;
9564
9564
  }
@@ -9674,10 +9674,9 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9674
9674
  }, {
9675
9675
  key: "receiveRequest",
9676
9676
  value: function(o) {
9677
- console.log("receiveRequest");
9678
9677
  var s = o.method;
9679
9678
  if (o.ruri.user !== this._configuration.uri.user && o.ruri.user !== this._contact.uri.user) {
9680
- qe.debug("Request-URI does not point to us"), o.method !== pt.ACK && o.reply_sl(404);
9679
+ je.debug("Request-URI does not point to us"), o.method !== pt.ACK && o.reply_sl(404);
9681
9680
  return;
9682
9681
  }
9683
9682
  if (o.ruri.scheme === pt.SIPS) {
@@ -9686,7 +9685,7 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9686
9685
  }
9687
9686
  if (!No.checkTransaction(this, o)) {
9688
9687
  if (s === pt.INVITE ? new No.InviteServerTransaction(this, this._transport, o) : s !== pt.ACK && s !== pt.CANCEL && new No.NonInviteServerTransaction(this, this._transport, o), s === pt.OPTIONS) {
9689
- if (console.log("OPPP in option"), this.listeners("newOptions").length === 0) {
9688
+ if (this.listeners("newOptions").length === 0) {
9690
9689
  o.reply(200);
9691
9690
  return;
9692
9691
  }
@@ -9705,7 +9704,7 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9705
9704
  }
9706
9705
  var h, _;
9707
9706
  if (o.to_tag)
9708
- h = this._findDialog(o.call_id, o.from_tag, o.to_tag), h ? h.receiveRequest(o) : s === pt.NOTIFY ? (_ = this._findSession(o), _ ? _.receiveRequest(o) : (qe.debug("received NOTIFY request for a non existent subscription"), o.reply(481, "Subscription does not exist"))) : s !== pt.ACK && o.reply(481);
9707
+ h = this._findDialog(o.call_id, o.from_tag, o.to_tag), h ? h.receiveRequest(o) : s === pt.NOTIFY ? (_ = this._findSession(o), _ ? _.receiveRequest(o) : (je.debug("received NOTIFY request for a non existent subscription"), o.reply(481, "Subscription does not exist"))) : s !== pt.ACK && o.reply(481);
9709
9708
  else
9710
9709
  switch (s) {
9711
9710
  case pt.INVITE:
@@ -9716,13 +9715,13 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9716
9715
  } else
9717
9716
  _ = new Yc(this), _.init_incoming(o);
9718
9717
  else
9719
- qe.warn("INVITE received but WebRTC is not supported"), o.reply(488);
9718
+ je.warn("INVITE received but WebRTC is not supported"), o.reply(488);
9720
9719
  break;
9721
9720
  case pt.BYE:
9722
9721
  o.reply(481);
9723
9722
  break;
9724
9723
  case pt.CANCEL:
9725
- _ = this._findSession(o), _ ? _.receiveRequest(o) : qe.debug("received CANCEL request for a non existent session");
9724
+ _ = this._findSession(o), _ ? _.receiveRequest(o) : je.debug("received CANCEL request for a non existent session");
9726
9725
  break;
9727
9726
  case pt.ACK:
9728
9727
  break;
@@ -9775,9 +9774,9 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9775
9774
  // Recovery options.
9776
9775
  max_interval: this._configuration.connection_recovery_max_interval,
9777
9776
  min_interval: this._configuration.connection_recovery_min_interval
9778
- }), this._transport.onconnecting = ym.bind(this), this._transport.onconnect = Am.bind(this), this._transport.ondisconnect = Cm.bind(this), this._transport.ondata = Rm.bind(this);
9777
+ }), this._transport.onconnecting = ym.bind(this), this._transport.onconnect = Cm.bind(this), this._transport.ondisconnect = Am.bind(this), this._transport.ondata = Rm.bind(this);
9779
9778
  } catch (g) {
9780
- throw qe.warn(g), new gm.ConfigurationError("sockets", this._configuration.sockets);
9779
+ throw je.warn(g), new gm.ConfigurationError("sockets", this._configuration.sockets);
9781
9780
  }
9782
9781
  if (delete this._configuration.sockets, this._configuration.authorization_user || (this._configuration.authorization_user = this._configuration.uri.user), !this._configuration.registrar_server) {
9783
9782
  var r = this._configuration.uri.clone();
@@ -9790,8 +9789,8 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9790
9789
  temp_gruu: null,
9791
9790
  uri: this._configuration.contact_uri,
9792
9791
  toString: function() {
9793
- var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = T.anonymous || null, y = T.outbound || null, A = "<";
9794
- return E ? A += this.temp_gruu || "sip:anonymous@anonymous.invalid;transport=ws" : A += this.pub_gruu || this.uri.toString(), y && (E ? !this.temp_gruu : !this.pub_gruu) && (A += ";ob"), A += ">", A;
9792
+ var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = T.anonymous || null, y = T.outbound || null, C = "<";
9793
+ return E ? C += this.temp_gruu || "sip:anonymous@anonymous.invalid;transport=ws" : C += this.pub_gruu || this.uri.toString(), y && (E ? !this.temp_gruu : !this.pub_gruu) && (C += ";ob"), C += ">", C;
9795
9794
  }
9796
9795
  };
9797
9796
  var d = ["authorization_user", "password", "realm", "ha1", "authorization_jwt", "display_name", "register"];
@@ -9803,21 +9802,21 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9803
9802
  writable: !1,
9804
9803
  configurable: !1
9805
9804
  }));
9806
- qe.debug("configuration parameters after validation:");
9805
+ je.debug("configuration parameters after validation:");
9807
9806
  for (var _ in this._configuration)
9808
9807
  if (Object.prototype.hasOwnProperty.call(Po.settings, _))
9809
9808
  switch (_) {
9810
9809
  case "uri":
9811
9810
  case "registrar_server":
9812
- qe.debug("- ".concat(_, ": ").concat(this._configuration[_]));
9811
+ je.debug("- ".concat(_, ": ").concat(this._configuration[_]));
9813
9812
  break;
9814
9813
  case "password":
9815
9814
  case "ha1":
9816
9815
  case "authorization_jwt":
9817
- qe.debug("- ".concat(_, ": NOT SHOWN"));
9816
+ je.debug("- ".concat(_, ": NOT SHOWN"));
9818
9817
  break;
9819
9818
  default:
9820
- qe.debug("- ".concat(_, ": ").concat(JSON.stringify(this._configuration[_])));
9819
+ je.debug("- ".concat(_, ": ").concat(JSON.stringify(this._configuration[_])));
9821
9820
  }
9822
9821
  }
9823
9822
  }, {
@@ -9850,10 +9849,10 @@ var dm = ft.EventEmitter, _m = ht, pt = lt, pm = s_, Yc = fp, Jc = Cp, zc = Mp,
9850
9849
  function ym(c) {
9851
9850
  this.emit("connecting", c);
9852
9851
  }
9853
- function Am(c) {
9852
+ function Cm(c) {
9854
9853
  this._status !== Tt.STATUS_USER_CLOSED && (this._status = Tt.STATUS_READY, this._error = null, this.emit("connected", c), this._dynConfiguration.register && this._registrator.register());
9855
9854
  }
9856
- function Cm(c) {
9855
+ function Am(c) {
9857
9856
  for (var t = ["nict", "ict", "nist", "ist"], n = 0, a = t; n < a.length; n++) {
9858
9857
  var o = a[n];
9859
9858
  for (var s in this._transactions[o])
@@ -9862,7 +9861,6 @@ function Cm(c) {
9862
9861
  this.emit("disconnected", c), this._registrator.onTransportClosed(), this._status !== Tt.STATUS_USER_CLOSED && (this._status = Tt.STATUS_NOT_READY, this._error = Tt.NETWORK_ERROR);
9863
9862
  }
9864
9863
  function Rm(c) {
9865
- console.log("onTransportData");
9866
9864
  var t = c.transport, n = c.message;
9867
9865
  if (n = vm.parseMessage(n, this), !!n && !(this._status === Tt.STATUS_USER_CLOSED && n instanceof Uo.IncomingRequest) && Em(n, this, t)) {
9868
9866
  if (n instanceof Uo.IncomingRequest)
@@ -10287,8 +10285,8 @@ function Zt() {
10287
10285
  ALPHA: T,
10288
10286
  HEXDIG: E,
10289
10287
  WSP: y,
10290
- OCTET: A,
10291
- DQUOTE: C,
10288
+ OCTET: C,
10289
+ DQUOTE: A,
10292
10290
  SP: I,
10293
10291
  HTAB: H,
10294
10292
  alphanum: $,
@@ -10315,13 +10313,13 @@ function Zt() {
10315
10313
  RPAREN: ge,
10316
10314
  RAQUOT: be,
10317
10315
  LAQUOT: xe,
10318
- COMMA: Ce,
10316
+ COMMA: Ae,
10319
10317
  SEMI: le,
10320
10318
  COLON: ye,
10321
10319
  LDQUOT: nt,
10322
10320
  RDQUOT: at,
10323
10321
  comment: Ee,
10324
- ctext: Ae,
10322
+ ctext: Ce,
10325
10323
  quoted_string: Ie,
10326
10324
  quoted_string_clean: Oe,
10327
10325
  qdtext: pe,
@@ -10346,14 +10344,14 @@ function Zt() {
10346
10344
  ls32: ae,
10347
10345
  IPv4address: ot,
10348
10346
  dec_octet: Wt,
10349
- port: Cs,
10347
+ port: As,
10350
10348
  uri_parameters: Er,
10351
10349
  uri_parameter: Un,
10352
10350
  transport_param: Pn,
10353
10351
  user_param: Sr,
10354
10352
  method_param: yr,
10355
- ttl_param: Ar,
10356
- maddr_param: Cr,
10353
+ ttl_param: Cr,
10354
+ maddr_param: Ar,
10357
10355
  lr_param: Rr,
10358
10356
  other_param: Ir,
10359
10357
  pname: br,
@@ -10428,8 +10426,8 @@ function Zt() {
10428
10426
  m_subtype: Zr,
10429
10427
  m_parameter: qn,
10430
10428
  m_value: Vn,
10431
- CSeq: Al,
10432
- CSeq_value: Cl,
10429
+ CSeq: Cl,
10430
+ CSeq_value: Al,
10433
10431
  Expires: Rl,
10434
10432
  Event: Qa,
10435
10433
  event_type: on,
@@ -10486,9 +10484,9 @@ function Zt() {
10486
10484
  transport: Ei,
10487
10485
  sent_by: Si,
10488
10486
  via_host: yi,
10489
- via_port: Ai,
10487
+ via_port: Ci,
10490
10488
  ttl: tr,
10491
- WWW_Authenticate: Ci,
10489
+ WWW_Authenticate: Ai,
10492
10490
  Session_Expires: lo,
10493
10491
  s_e_expires: Ol,
10494
10492
  s_e_params: sr,
@@ -10540,11 +10538,11 @@ function Zt() {
10540
10538
  var i;
10541
10539
  return i = I(), i === null && (i = H()), i;
10542
10540
  }
10543
- function A() {
10541
+ function C() {
10544
10542
  var i;
10545
10543
  return /^[\0-\xFF]/.test(n.charAt(s)) ? (i = n.charAt(s), s++) : (i = null, h("[\\0-\\xFF]")), i;
10546
10544
  }
10547
- function C() {
10545
+ function A() {
10548
10546
  var i;
10549
10547
  return /^["]/.test(n.charAt(s)) ? (i = n.charAt(s), s++) : (i = null, h('["]')), i;
10550
10548
  }
@@ -10669,13 +10667,13 @@ function Zt() {
10669
10667
  }
10670
10668
  function se() {
10671
10669
  var i;
10672
- return n.charCodeAt(s) === 40 ? (i = "(", s++) : (i = null, h('"("')), i === null && (n.charCodeAt(s) === 41 ? (i = ")", s++) : (i = null, h('")"')), i === null && (n.charCodeAt(s) === 60 ? (i = "<", s++) : (i = null, h('"<"')), i === null && (n.charCodeAt(s) === 62 ? (i = ">", s++) : (i = null, h('">"')), i === null && (n.charCodeAt(s) === 64 ? (i = "@", s++) : (i = null, h('"@"')), i === null && (n.charCodeAt(s) === 44 ? (i = ",", s++) : (i = null, h('","')), i === null && (n.charCodeAt(s) === 59 ? (i = ";", s++) : (i = null, h('";"')), i === null && (n.charCodeAt(s) === 58 ? (i = ":", s++) : (i = null, h('":"')), i === null && (n.charCodeAt(s) === 92 ? (i = "\\", s++) : (i = null, h('"\\\\"')), i === null && (i = C(), i === null && (n.charCodeAt(s) === 47 ? (i = "/", s++) : (i = null, h('"/"')), i === null && (n.charCodeAt(s) === 91 ? (i = "[", s++) : (i = null, h('"["')), i === null && (n.charCodeAt(s) === 93 ? (i = "]", s++) : (i = null, h('"]"')), i === null && (n.charCodeAt(s) === 63 ? (i = "?", s++) : (i = null, h('"?"')), i === null && (n.charCodeAt(s) === 61 ? (i = "=", s++) : (i = null, h('"="')), i === null && (n.charCodeAt(s) === 123 ? (i = "{", s++) : (i = null, h('"{"')), i === null && (n.charCodeAt(s) === 125 ? (i = "}", s++) : (i = null, h('"}"')), i === null && (i = I(), i === null && (i = H())))))))))))))))))), i;
10670
+ return n.charCodeAt(s) === 40 ? (i = "(", s++) : (i = null, h('"("')), i === null && (n.charCodeAt(s) === 41 ? (i = ")", s++) : (i = null, h('")"')), i === null && (n.charCodeAt(s) === 60 ? (i = "<", s++) : (i = null, h('"<"')), i === null && (n.charCodeAt(s) === 62 ? (i = ">", s++) : (i = null, h('">"')), i === null && (n.charCodeAt(s) === 64 ? (i = "@", s++) : (i = null, h('"@"')), i === null && (n.charCodeAt(s) === 44 ? (i = ",", s++) : (i = null, h('","')), i === null && (n.charCodeAt(s) === 59 ? (i = ";", s++) : (i = null, h('";"')), i === null && (n.charCodeAt(s) === 58 ? (i = ":", s++) : (i = null, h('":"')), i === null && (n.charCodeAt(s) === 92 ? (i = "\\", s++) : (i = null, h('"\\\\"')), i === null && (i = A(), i === null && (n.charCodeAt(s) === 47 ? (i = "/", s++) : (i = null, h('"/"')), i === null && (n.charCodeAt(s) === 91 ? (i = "[", s++) : (i = null, h('"["')), i === null && (n.charCodeAt(s) === 93 ? (i = "]", s++) : (i = null, h('"]"')), i === null && (n.charCodeAt(s) === 63 ? (i = "?", s++) : (i = null, h('"?"')), i === null && (n.charCodeAt(s) === 61 ? (i = "=", s++) : (i = null, h('"="')), i === null && (n.charCodeAt(s) === 123 ? (i = "{", s++) : (i = null, h('"{"')), i === null && (n.charCodeAt(s) === 125 ? (i = "}", s++) : (i = null, h('"}"')), i === null && (i = I(), i === null && (i = H())))))))))))))))))), i;
10673
10671
  }
10674
10672
  function st() {
10675
10673
  var i, e, l;
10676
- if (l = s, e = $(), e === null && (n.charCodeAt(s) === 45 ? (e = "-", s++) : (e = null, h('"-"')), e === null && (n.charCodeAt(s) === 46 ? (e = ".", s++) : (e = null, h('"."')), e === null && (n.charCodeAt(s) === 33 ? (e = "!", s++) : (e = null, h('"!"')), e === null && (n.charCodeAt(s) === 37 ? (e = "%", s++) : (e = null, h('"%"')), e === null && (n.charCodeAt(s) === 42 ? (e = "*", s++) : (e = null, h('"*"')), e === null && (n.charCodeAt(s) === 95 ? (e = "_", s++) : (e = null, h('"_"')), e === null && (n.charCodeAt(s) === 43 ? (e = "+", s++) : (e = null, h('"+"')), e === null && (n.charCodeAt(s) === 96 ? (e = "`", s++) : (e = null, h('"`"')), e === null && (n.charCodeAt(s) === 39 ? (e = "'", s++) : (e = null, h(`"'"`)), e === null && (n.charCodeAt(s) === 126 ? (e = "~", s++) : (e = null, h('"~"')), e === null && (n.charCodeAt(s) === 40 ? (e = "(", s++) : (e = null, h('"("')), e === null && (n.charCodeAt(s) === 41 ? (e = ")", s++) : (e = null, h('")"')), e === null && (n.charCodeAt(s) === 60 ? (e = "<", s++) : (e = null, h('"<"')), e === null && (n.charCodeAt(s) === 62 ? (e = ">", s++) : (e = null, h('">"')), e === null && (n.charCodeAt(s) === 58 ? (e = ":", s++) : (e = null, h('":"')), e === null && (n.charCodeAt(s) === 92 ? (e = "\\", s++) : (e = null, h('"\\\\"')), e === null && (e = C(), e === null && (n.charCodeAt(s) === 47 ? (e = "/", s++) : (e = null, h('"/"')), e === null && (n.charCodeAt(s) === 91 ? (e = "[", s++) : (e = null, h('"["')), e === null && (n.charCodeAt(s) === 93 ? (e = "]", s++) : (e = null, h('"]"')), e === null && (n.charCodeAt(s) === 63 ? (e = "?", s++) : (e = null, h('"?"')), e === null && (n.charCodeAt(s) === 123 ? (e = "{", s++) : (e = null, h('"{"')), e === null && (n.charCodeAt(s) === 125 ? (e = "}", s++) : (e = null, h('"}"'))))))))))))))))))))))))), e !== null)
10674
+ if (l = s, e = $(), e === null && (n.charCodeAt(s) === 45 ? (e = "-", s++) : (e = null, h('"-"')), e === null && (n.charCodeAt(s) === 46 ? (e = ".", s++) : (e = null, h('"."')), e === null && (n.charCodeAt(s) === 33 ? (e = "!", s++) : (e = null, h('"!"')), e === null && (n.charCodeAt(s) === 37 ? (e = "%", s++) : (e = null, h('"%"')), e === null && (n.charCodeAt(s) === 42 ? (e = "*", s++) : (e = null, h('"*"')), e === null && (n.charCodeAt(s) === 95 ? (e = "_", s++) : (e = null, h('"_"')), e === null && (n.charCodeAt(s) === 43 ? (e = "+", s++) : (e = null, h('"+"')), e === null && (n.charCodeAt(s) === 96 ? (e = "`", s++) : (e = null, h('"`"')), e === null && (n.charCodeAt(s) === 39 ? (e = "'", s++) : (e = null, h(`"'"`)), e === null && (n.charCodeAt(s) === 126 ? (e = "~", s++) : (e = null, h('"~"')), e === null && (n.charCodeAt(s) === 40 ? (e = "(", s++) : (e = null, h('"("')), e === null && (n.charCodeAt(s) === 41 ? (e = ")", s++) : (e = null, h('")"')), e === null && (n.charCodeAt(s) === 60 ? (e = "<", s++) : (e = null, h('"<"')), e === null && (n.charCodeAt(s) === 62 ? (e = ">", s++) : (e = null, h('">"')), e === null && (n.charCodeAt(s) === 58 ? (e = ":", s++) : (e = null, h('":"')), e === null && (n.charCodeAt(s) === 92 ? (e = "\\", s++) : (e = null, h('"\\\\"')), e === null && (e = A(), e === null && (n.charCodeAt(s) === 47 ? (e = "/", s++) : (e = null, h('"/"')), e === null && (n.charCodeAt(s) === 91 ? (e = "[", s++) : (e = null, h('"["')), e === null && (n.charCodeAt(s) === 93 ? (e = "]", s++) : (e = null, h('"]"')), e === null && (n.charCodeAt(s) === 63 ? (e = "?", s++) : (e = null, h('"?"')), e === null && (n.charCodeAt(s) === 123 ? (e = "{", s++) : (e = null, h('"{"')), e === null && (n.charCodeAt(s) === 125 ? (e = "}", s++) : (e = null, h('"}"'))))))))))))))))))))))))), e !== null)
10677
10675
  for (i = []; e !== null; )
10678
- i.push(e), e = $(), e === null && (n.charCodeAt(s) === 45 ? (e = "-", s++) : (e = null, h('"-"')), e === null && (n.charCodeAt(s) === 46 ? (e = ".", s++) : (e = null, h('"."')), e === null && (n.charCodeAt(s) === 33 ? (e = "!", s++) : (e = null, h('"!"')), e === null && (n.charCodeAt(s) === 37 ? (e = "%", s++) : (e = null, h('"%"')), e === null && (n.charCodeAt(s) === 42 ? (e = "*", s++) : (e = null, h('"*"')), e === null && (n.charCodeAt(s) === 95 ? (e = "_", s++) : (e = null, h('"_"')), e === null && (n.charCodeAt(s) === 43 ? (e = "+", s++) : (e = null, h('"+"')), e === null && (n.charCodeAt(s) === 96 ? (e = "`", s++) : (e = null, h('"`"')), e === null && (n.charCodeAt(s) === 39 ? (e = "'", s++) : (e = null, h(`"'"`)), e === null && (n.charCodeAt(s) === 126 ? (e = "~", s++) : (e = null, h('"~"')), e === null && (n.charCodeAt(s) === 40 ? (e = "(", s++) : (e = null, h('"("')), e === null && (n.charCodeAt(s) === 41 ? (e = ")", s++) : (e = null, h('")"')), e === null && (n.charCodeAt(s) === 60 ? (e = "<", s++) : (e = null, h('"<"')), e === null && (n.charCodeAt(s) === 62 ? (e = ">", s++) : (e = null, h('">"')), e === null && (n.charCodeAt(s) === 58 ? (e = ":", s++) : (e = null, h('":"')), e === null && (n.charCodeAt(s) === 92 ? (e = "\\", s++) : (e = null, h('"\\\\"')), e === null && (e = C(), e === null && (n.charCodeAt(s) === 47 ? (e = "/", s++) : (e = null, h('"/"')), e === null && (n.charCodeAt(s) === 91 ? (e = "[", s++) : (e = null, h('"["')), e === null && (n.charCodeAt(s) === 93 ? (e = "]", s++) : (e = null, h('"]"')), e === null && (n.charCodeAt(s) === 63 ? (e = "?", s++) : (e = null, h('"?"')), e === null && (n.charCodeAt(s) === 123 ? (e = "{", s++) : (e = null, h('"{"')), e === null && (n.charCodeAt(s) === 125 ? (e = "}", s++) : (e = null, h('"}"')))))))))))))))))))))))));
10676
+ i.push(e), e = $(), e === null && (n.charCodeAt(s) === 45 ? (e = "-", s++) : (e = null, h('"-"')), e === null && (n.charCodeAt(s) === 46 ? (e = ".", s++) : (e = null, h('"."')), e === null && (n.charCodeAt(s) === 33 ? (e = "!", s++) : (e = null, h('"!"')), e === null && (n.charCodeAt(s) === 37 ? (e = "%", s++) : (e = null, h('"%"')), e === null && (n.charCodeAt(s) === 42 ? (e = "*", s++) : (e = null, h('"*"')), e === null && (n.charCodeAt(s) === 95 ? (e = "_", s++) : (e = null, h('"_"')), e === null && (n.charCodeAt(s) === 43 ? (e = "+", s++) : (e = null, h('"+"')), e === null && (n.charCodeAt(s) === 96 ? (e = "`", s++) : (e = null, h('"`"')), e === null && (n.charCodeAt(s) === 39 ? (e = "'", s++) : (e = null, h(`"'"`)), e === null && (n.charCodeAt(s) === 126 ? (e = "~", s++) : (e = null, h('"~"')), e === null && (n.charCodeAt(s) === 40 ? (e = "(", s++) : (e = null, h('"("')), e === null && (n.charCodeAt(s) === 41 ? (e = ")", s++) : (e = null, h('")"')), e === null && (n.charCodeAt(s) === 60 ? (e = "<", s++) : (e = null, h('"<"')), e === null && (n.charCodeAt(s) === 62 ? (e = ">", s++) : (e = null, h('">"')), e === null && (n.charCodeAt(s) === 58 ? (e = ":", s++) : (e = null, h('":"')), e === null && (n.charCodeAt(s) === 92 ? (e = "\\", s++) : (e = null, h('"\\\\"')), e === null && (e = A(), e === null && (n.charCodeAt(s) === 47 ? (e = "/", s++) : (e = null, h('"/"')), e === null && (n.charCodeAt(s) === 91 ? (e = "[", s++) : (e = null, h('"["')), e === null && (n.charCodeAt(s) === 93 ? (e = "]", s++) : (e = null, h('"]"')), e === null && (n.charCodeAt(s) === 63 ? (e = "?", s++) : (e = null, h('"?"')), e === null && (n.charCodeAt(s) === 123 ? (e = "{", s++) : (e = null, h('"{"')), e === null && (n.charCodeAt(s) === 125 ? (e = "}", s++) : (e = null, h('"}"')))))))))))))))))))))))));
10679
10677
  else
10680
10678
  i = null;
10681
10679
  return i !== null && (i = function(u) {
@@ -10724,7 +10722,7 @@ function Zt() {
10724
10722
  return "<";
10725
10723
  }()), i === null && (s = l), i;
10726
10724
  }
10727
- function Ce() {
10725
+ function Ae() {
10728
10726
  var i, e, l, u, f;
10729
10727
  return u = s, f = s, i = k(), i !== null ? (n.charCodeAt(s) === 44 ? (e = ",", s++) : (e = null, h('","')), e !== null ? (l = k(), l !== null ? i = [i, e, l] : (i = null, s = f)) : (i = null, s = f)) : (i = null, s = f), i !== null && (i = function(p) {
10730
10728
  return ",";
@@ -10744,37 +10742,37 @@ function Zt() {
10744
10742
  }
10745
10743
  function nt() {
10746
10744
  var i, e, l, u;
10747
- return l = s, u = s, i = k(), i !== null ? (e = C(), e !== null ? i = [i, e] : (i = null, s = u)) : (i = null, s = u), i !== null && (i = function(f) {
10745
+ return l = s, u = s, i = k(), i !== null ? (e = A(), e !== null ? i = [i, e] : (i = null, s = u)) : (i = null, s = u), i !== null && (i = function(f) {
10748
10746
  return '"';
10749
10747
  }()), i === null && (s = l), i;
10750
10748
  }
10751
10749
  function at() {
10752
10750
  var i, e, l, u;
10753
- return l = s, u = s, i = C(), i !== null ? (e = k(), e !== null ? i = [i, e] : (i = null, s = u)) : (i = null, s = u), i !== null && (i = function(f) {
10751
+ return l = s, u = s, i = A(), i !== null ? (e = k(), e !== null ? i = [i, e] : (i = null, s = u)) : (i = null, s = u), i !== null && (i = function(f) {
10754
10752
  return '"';
10755
10753
  }()), i === null && (s = l), i;
10756
10754
  }
10757
10755
  function Ee() {
10758
10756
  var i, e, l, u;
10759
10757
  if (u = s, i = re(), i !== null) {
10760
- for (e = [], l = Ae(), l === null && (l = ue(), l === null && (l = Ee())); l !== null; )
10761
- e.push(l), l = Ae(), l === null && (l = ue(), l === null && (l = Ee()));
10758
+ for (e = [], l = Ce(), l === null && (l = ue(), l === null && (l = Ee())); l !== null; )
10759
+ e.push(l), l = Ce(), l === null && (l = ue(), l === null && (l = Ee()));
10762
10760
  e !== null ? (l = ge(), l !== null ? i = [i, e, l] : (i = null, s = u)) : (i = null, s = u);
10763
10761
  } else
10764
10762
  i = null, s = u;
10765
10763
  return i;
10766
10764
  }
10767
- function Ae() {
10765
+ function Ce() {
10768
10766
  var i;
10769
10767
  return /^[!-']/.test(n.charAt(s)) ? (i = n.charAt(s), s++) : (i = null, h("[!-']")), i === null && (/^[*-[]/.test(n.charAt(s)) ? (i = n.charAt(s), s++) : (i = null, h("[*-[]")), i === null && (/^[\]-~]/.test(n.charAt(s)) ? (i = n.charAt(s), s++) : (i = null, h("[\\]-~]")), i === null && (i = J(), i === null && (i = ve())))), i;
10770
10768
  }
10771
10769
  function Ie() {
10772
10770
  var i, e, l, u, f, p;
10773
10771
  if (f = s, p = s, i = k(), i !== null)
10774
- if (e = C(), e !== null) {
10772
+ if (e = A(), e !== null) {
10775
10773
  for (l = [], u = pe(), u === null && (u = ue()); u !== null; )
10776
10774
  l.push(u), u = pe(), u === null && (u = ue());
10777
- l !== null ? (u = C(), u !== null ? i = [i, e, l, u] : (i = null, s = p)) : (i = null, s = p);
10775
+ l !== null ? (u = A(), u !== null ? i = [i, e, l, u] : (i = null, s = p)) : (i = null, s = p);
10778
10776
  } else
10779
10777
  i = null, s = p;
10780
10778
  else
@@ -10786,10 +10784,10 @@ function Zt() {
10786
10784
  function Oe() {
10787
10785
  var i, e, l, u, f, p;
10788
10786
  if (f = s, p = s, i = k(), i !== null)
10789
- if (e = C(), e !== null) {
10787
+ if (e = A(), e !== null) {
10790
10788
  for (l = [], u = pe(), u === null && (u = ue()); u !== null; )
10791
10789
  l.push(u), u = pe(), u === null && (u = ue());
10792
- l !== null ? (u = C(), u !== null ? i = [i, e, l, u] : (i = null, s = p)) : (i = null, s = p);
10790
+ l !== null ? (u = A(), u !== null ? i = [i, e, l, u] : (i = null, s = p)) : (i = null, s = p);
10793
10791
  } else
10794
10792
  i = null, s = p;
10795
10793
  else
@@ -10872,7 +10870,7 @@ function Zt() {
10872
10870
  }
10873
10871
  function Ys() {
10874
10872
  var i, e, l, u, f;
10875
- return u = s, i = es(), i !== null ? (f = s, n.charCodeAt(s) === 58 ? (e = ":", s++) : (e = null, h('":"')), e !== null ? (l = Cs(), l !== null ? e = [e, l] : (e = null, s = f)) : (e = null, s = f), e = e !== null ? e : "", e !== null ? i = [i, e] : (i = null, s = u)) : (i = null, s = u), i;
10873
+ return u = s, i = es(), i !== null ? (f = s, n.charCodeAt(s) === 58 ? (e = ":", s++) : (e = null, h('":"')), e !== null ? (l = As(), l !== null ? e = [e, l] : (e = null, s = f)) : (e = null, s = f), e = e !== null ? e : "", e !== null ? i = [i, e] : (i = null, s = u)) : (i = null, s = u), i;
10876
10874
  }
10877
10875
  function es() {
10878
10876
  var i, e;
@@ -10938,7 +10936,7 @@ function Zt() {
10938
10936
  var i, e, l, u;
10939
10937
  return u = s, n.substr(s, 2) === "25" ? (i = "25", s += 2) : (i = null, h('"25"')), i !== null ? (/^[0-5]/.test(n.charAt(s)) ? (e = n.charAt(s), s++) : (e = null, h("[0-5]")), e !== null ? i = [i, e] : (i = null, s = u)) : (i = null, s = u), i === null && (u = s, n.charCodeAt(s) === 50 ? (i = "2", s++) : (i = null, h('"2"')), i !== null ? (/^[0-4]/.test(n.charAt(s)) ? (e = n.charAt(s), s++) : (e = null, h("[0-4]")), e !== null ? (l = g(), l !== null ? i = [i, e, l] : (i = null, s = u)) : (i = null, s = u)) : (i = null, s = u), i === null && (u = s, n.charCodeAt(s) === 49 ? (i = "1", s++) : (i = null, h('"1"')), i !== null ? (e = g(), e !== null ? (l = g(), l !== null ? i = [i, e, l] : (i = null, s = u)) : (i = null, s = u)) : (i = null, s = u), i === null && (u = s, /^[1-9]/.test(n.charAt(s)) ? (i = n.charAt(s), s++) : (i = null, h("[1-9]")), i !== null ? (e = g(), e !== null ? i = [i, e] : (i = null, s = u)) : (i = null, s = u), i === null && (i = g())))), i;
10940
10938
  }
10941
- function Cs() {
10939
+ function As() {
10942
10940
  var i, e, l, u, f, p, m;
10943
10941
  return p = s, m = s, i = g(), i = i !== null ? i : "", i !== null ? (e = g(), e = e !== null ? e : "", e !== null ? (l = g(), l = l !== null ? l : "", l !== null ? (u = g(), u = u !== null ? u : "", u !== null ? (f = g(), f = f !== null ? f : "", f !== null ? i = [i, e, l, u, f] : (i = null, s = m)) : (i = null, s = m)) : (i = null, s = m)) : (i = null, s = m)) : (i = null, s = m), i !== null && (i = function(v, S) {
10944
10942
  return S = parseInt(S.join("")), b.port = S, S;
@@ -10952,7 +10950,7 @@ function Zt() {
10952
10950
  }
10953
10951
  function Un() {
10954
10952
  var i;
10955
- return i = Pn(), i === null && (i = Sr(), i === null && (i = yr(), i === null && (i = Ar(), i === null && (i = Cr(), i === null && (i = Rr(), i === null && (i = Ir())))))), i;
10953
+ return i = Pn(), i === null && (i = Sr(), i === null && (i = yr(), i === null && (i = Cr(), i === null && (i = Ar(), i === null && (i = Rr(), i === null && (i = Ir())))))), i;
10956
10954
  }
10957
10955
  function Pn() {
10958
10956
  var i, e, l, u;
@@ -10972,13 +10970,13 @@ function Zt() {
10972
10970
  b.uri_params || (b.uri_params = {}), b.uri_params.method = p;
10973
10971
  }(l, i[1])), i === null && (s = l), i;
10974
10972
  }
10975
- function Ar() {
10973
+ function Cr() {
10976
10974
  var i, e, l, u;
10977
10975
  return l = s, u = s, n.substr(s, 4).toLowerCase() === "ttl=" ? (i = n.substr(s, 4), s += 4) : (i = null, h('"ttl="')), i !== null ? (e = tr(), e !== null ? i = [i, e] : (i = null, s = u)) : (i = null, s = u), i !== null && (i = function(f, p) {
10978
10976
  b.params || (b.params = {}), b.params.ttl = p;
10979
10977
  }(l, i[1])), i === null && (s = l), i;
10980
10978
  }
10981
- function Cr() {
10979
+ function Ar() {
10982
10980
  var i, e, l, u;
10983
10981
  return l = s, u = s, n.substr(s, 6).toLowerCase() === "maddr=" ? (i = n.substr(s, 6), s += 6) : (i = null, h('"maddr="')), i !== null ? (e = es(), e !== null ? i = [i, e] : (i = null, s = u)) : (i = null, s = u), i !== null && (i = function(f, p) {
10984
10982
  b.uri_params || (b.uri_params = {}), b.uri_params.maddr = p;
@@ -11273,8 +11271,8 @@ function Zt() {
11273
11271
  function Tl() {
11274
11272
  var i, e, l, u, f, p;
11275
11273
  if (f = s, i = on(), i !== null) {
11276
- for (e = [], p = s, l = Ce(), l !== null ? (u = on(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11277
- e.push(l), p = s, l = Ce(), l !== null ? (u = on(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11274
+ for (e = [], p = s, l = Ae(), l !== null ? (u = on(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11275
+ e.push(l), p = s, l = Ae(), l !== null ? (u = on(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11278
11276
  e !== null ? i = [i, e] : (i = null, s = f);
11279
11277
  } else
11280
11278
  i = null, s = f;
@@ -11290,8 +11288,8 @@ function Zt() {
11290
11288
  var i, e, l, u, f, p, m;
11291
11289
  if (f = s, i = ee(), i === null)
11292
11290
  if (p = s, i = $n(), i !== null) {
11293
- for (e = [], m = s, l = Ce(), l !== null ? (u = $n(), u !== null ? l = [l, u] : (l = null, s = m)) : (l = null, s = m); l !== null; )
11294
- e.push(l), m = s, l = Ce(), l !== null ? (u = $n(), u !== null ? l = [l, u] : (l = null, s = m)) : (l = null, s = m);
11291
+ for (e = [], m = s, l = Ae(), l !== null ? (u = $n(), u !== null ? l = [l, u] : (l = null, s = m)) : (l = null, s = m); l !== null; )
11292
+ e.push(l), m = s, l = Ae(), l !== null ? (u = $n(), u !== null ? l = [l, u] : (l = null, s = m)) : (l = null, s = m);
11295
11293
  e !== null ? i = [i, e] : (i = null, s = p);
11296
11294
  } else
11297
11295
  i = null, s = p;
@@ -11414,8 +11412,8 @@ function Zt() {
11414
11412
  function Sl() {
11415
11413
  var i, e, l, u, f, p;
11416
11414
  if (f = s, i = U(), i !== null) {
11417
- for (e = [], p = s, l = Ce(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11418
- e.push(l), p = s, l = Ce(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11415
+ for (e = [], p = s, l = Ae(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11416
+ e.push(l), p = s, l = Ae(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11419
11417
  e !== null ? i = [i, e] : (i = null, s = f);
11420
11418
  } else
11421
11419
  i = null, s = f;
@@ -11486,11 +11484,11 @@ function Zt() {
11486
11484
  var i;
11487
11485
  return i = U(), i === null && (i = Ie()), i;
11488
11486
  }
11489
- function Al() {
11487
+ function Cl() {
11490
11488
  var i, e, l, u;
11491
- return u = s, i = Cl(), i !== null ? (e = ve(), e !== null ? (l = nn(), l !== null ? i = [i, e, l] : (i = null, s = u)) : (i = null, s = u)) : (i = null, s = u), i;
11489
+ return u = s, i = Al(), i !== null ? (e = ve(), e !== null ? (l = nn(), l !== null ? i = [i, e, l] : (i = null, s = u)) : (i = null, s = u)) : (i = null, s = u), i;
11492
11490
  }
11493
- function Cl() {
11491
+ function Al() {
11494
11492
  var i, e, l;
11495
11493
  if (l = s, e = g(), e !== null)
11496
11494
  for (i = []; e !== null; )
@@ -11609,8 +11607,8 @@ function Zt() {
11609
11607
  if (m = s, n.substr(s, 6).toLowerCase() === "digest" ? (i = n.substr(s, 6), s += 6) : (i = null, h('"Digest"')), i !== null)
11610
11608
  if (e = ve(), e !== null)
11611
11609
  if (l = ns(), l !== null) {
11612
- for (u = [], v = s, f = Ce(), f !== null ? (p = ns(), p !== null ? f = [f, p] : (f = null, s = v)) : (f = null, s = v); f !== null; )
11613
- u.push(f), v = s, f = Ce(), f !== null ? (p = ns(), p !== null ? f = [f, p] : (f = null, s = v)) : (f = null, s = v);
11610
+ for (u = [], v = s, f = Ae(), f !== null ? (p = ns(), p !== null ? f = [f, p] : (f = null, s = v)) : (f = null, s = v); f !== null; )
11611
+ u.push(f), v = s, f = Ae(), f !== null ? (p = ns(), p !== null ? f = [f, p] : (f = null, s = v)) : (f = null, s = v);
11614
11612
  u !== null ? i = [i, e, l, u] : (i = null, s = m);
11615
11613
  } else
11616
11614
  i = null, s = m;
@@ -11625,8 +11623,8 @@ function Zt() {
11625
11623
  if (m = s, i = U(), i !== null)
11626
11624
  if (e = ve(), e !== null)
11627
11625
  if (l = Ps(), l !== null) {
11628
- for (u = [], v = s, f = Ce(), f !== null ? (p = Ps(), p !== null ? f = [f, p] : (f = null, s = v)) : (f = null, s = v); f !== null; )
11629
- u.push(f), v = s, f = Ce(), f !== null ? (p = Ps(), p !== null ? f = [f, p] : (f = null, s = v)) : (f = null, s = v);
11626
+ for (u = [], v = s, f = Ae(), f !== null ? (p = Ps(), p !== null ? f = [f, p] : (f = null, s = v)) : (f = null, s = v); f !== null; )
11627
+ u.push(f), v = s, f = Ae(), f !== null ? (p = Ps(), p !== null ? f = [f, p] : (f = null, s = v)) : (f = null, s = v);
11630
11628
  u !== null ? i = [i, e, l, u] : (i = null, s = m);
11631
11629
  } else
11632
11630
  i = null, s = m;
@@ -11747,8 +11745,8 @@ function Zt() {
11747
11745
  function Gn() {
11748
11746
  var i, e, l, u, f, p;
11749
11747
  if (f = s, i = U(), i !== null) {
11750
- for (e = [], p = s, l = Ce(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11751
- e.push(l), p = s, l = Ce(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11748
+ for (e = [], p = s, l = Ae(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11749
+ e.push(l), p = s, l = Ae(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11752
11750
  e !== null ? i = [i, e] : (i = null, s = f);
11753
11751
  } else
11754
11752
  i = null, s = f;
@@ -11757,8 +11755,8 @@ function Zt() {
11757
11755
  function so() {
11758
11756
  var i, e, l, u, f, p, m;
11759
11757
  if (f = s, p = s, i = Wn(), i !== null) {
11760
- for (e = [], m = s, l = Ce(), l !== null ? (u = Wn(), u !== null ? l = [l, u] : (l = null, s = m)) : (l = null, s = m); l !== null; )
11761
- e.push(l), m = s, l = Ce(), l !== null ? (u = Wn(), u !== null ? l = [l, u] : (l = null, s = m)) : (l = null, s = m);
11758
+ for (e = [], m = s, l = Ae(), l !== null ? (u = Wn(), u !== null ? l = [l, u] : (l = null, s = m)) : (l = null, s = m); l !== null; )
11759
+ e.push(l), m = s, l = Ae(), l !== null ? (u = Wn(), u !== null ? l = [l, u] : (l = null, s = m)) : (l = null, s = m);
11762
11760
  e !== null ? i = [i, e] : (i = null, s = p);
11763
11761
  } else
11764
11762
  i = null, s = p;
@@ -11835,8 +11833,8 @@ function Zt() {
11835
11833
  function Il() {
11836
11834
  var i, e, l, u, f, p;
11837
11835
  if (f = s, i = U(), i !== null) {
11838
- for (e = [], p = s, l = Ce(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11839
- e.push(l), p = s, l = Ce(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11836
+ for (e = [], p = s, l = Ae(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11837
+ e.push(l), p = s, l = Ae(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11840
11838
  e !== null ? i = [i, e] : (i = null, s = f);
11841
11839
  } else
11842
11840
  i = null, s = f;
@@ -11845,8 +11843,8 @@ function Zt() {
11845
11843
  function no() {
11846
11844
  var i, e, l, u, f, p;
11847
11845
  if (f = s, i = Jn(), i !== null) {
11848
- for (e = [], p = s, l = Ce(), l !== null ? (u = Jn(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11849
- e.push(l), p = s, l = Ce(), l !== null ? (u = Jn(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11846
+ for (e = [], p = s, l = Ae(), l !== null ? (u = Jn(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11847
+ e.push(l), p = s, l = Ae(), l !== null ? (u = Jn(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11850
11848
  e !== null ? i = [i, e] : (i = null, s = f);
11851
11849
  } else
11852
11850
  i = null, s = f;
@@ -11899,8 +11897,8 @@ function Zt() {
11899
11897
  function ro() {
11900
11898
  var i, e, l, u, f, p;
11901
11899
  if (f = s, i = U(), i !== null) {
11902
- for (e = [], p = s, l = Ce(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11903
- e.push(l), p = s, l = Ce(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11900
+ for (e = [], p = s, l = Ae(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11901
+ e.push(l), p = s, l = Ae(), l !== null ? (u = U(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11904
11902
  e !== null ? i = [i, e] : (i = null, s = f);
11905
11903
  } else
11906
11904
  i = null, s = f;
@@ -11930,8 +11928,8 @@ function Zt() {
11930
11928
  function hi() {
11931
11929
  var i, e, l, u, f, p;
11932
11930
  if (f = s, i = Zn(), i !== null) {
11933
- for (e = [], p = s, l = Ce(), l !== null ? (u = Zn(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11934
- e.push(l), p = s, l = Ce(), l !== null ? (u = Zn(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11931
+ for (e = [], p = s, l = Ae(), l !== null ? (u = Zn(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p); l !== null; )
11932
+ e.push(l), p = s, l = Ae(), l !== null ? (u = Zn(), u !== null ? l = [l, u] : (l = null, s = p)) : (l = null, s = p);
11935
11933
  e !== null ? i = [i, e] : (i = null, s = f);
11936
11934
  } else
11937
11935
  i = null, s = f;
@@ -12009,7 +12007,7 @@ function Zt() {
12009
12007
  }
12010
12008
  function Si() {
12011
12009
  var i, e, l, u, f;
12012
- return u = s, i = yi(), i !== null ? (f = s, e = ye(), e !== null ? (l = Ai(), l !== null ? e = [e, l] : (e = null, s = f)) : (e = null, s = f), e = e !== null ? e : "", e !== null ? i = [i, e] : (i = null, s = u)) : (i = null, s = u), i;
12010
+ return u = s, i = yi(), i !== null ? (f = s, e = ye(), e !== null ? (l = Ci(), l !== null ? e = [e, l] : (e = null, s = f)) : (e = null, s = f), e = e !== null ? e : "", e !== null ? i = [i, e] : (i = null, s = u)) : (i = null, s = u), i;
12013
12011
  }
12014
12012
  function yi() {
12015
12013
  var i, e;
@@ -12017,7 +12015,7 @@ function Zt() {
12017
12015
  b.host = n.substring(s, l);
12018
12016
  }(e)), i === null && (s = e), i;
12019
12017
  }
12020
- function Ai() {
12018
+ function Ci() {
12021
12019
  var i, e, l, u, f, p, m;
12022
12020
  return p = s, m = s, i = g(), i = i !== null ? i : "", i !== null ? (e = g(), e = e !== null ? e : "", e !== null ? (l = g(), l = l !== null ? l : "", l !== null ? (u = g(), u = u !== null ? u : "", u !== null ? (f = g(), f = f !== null ? f : "", f !== null ? i = [i, e, l, u, f] : (i = null, s = m)) : (i = null, s = m)) : (i = null, s = m)) : (i = null, s = m)) : (i = null, s = m), i !== null && (i = function(v, S) {
12023
12021
  b.port = parseInt(S.join(""));
@@ -12029,7 +12027,7 @@ function Zt() {
12029
12027
  return parseInt(m.join(""));
12030
12028
  }(u, i)), i === null && (s = u), i;
12031
12029
  }
12032
- function Ci() {
12030
+ function Ai() {
12033
12031
  var i;
12034
12032
  return i = si(), i;
12035
12033
  }
@@ -12071,8 +12069,8 @@ function Zt() {
12071
12069
  }
12072
12070
  function Ul() {
12073
12071
  var i, e;
12074
- for (i = [], e = A(); e !== null; )
12075
- i.push(e), e = A();
12072
+ for (i = [], e = C(); e !== null; )
12073
+ i.push(e), e = C();
12076
12074
  return i;
12077
12075
  }
12078
12076
  function ao() {
@@ -12207,7 +12205,7 @@ function ys() {
12207
12205
  if (sf)
12208
12206
  return Mo;
12209
12207
  sf = 1;
12210
- const c = De, t = At(), n = Zt();
12208
+ const c = De, t = Ct(), n = Zt();
12211
12209
  return Mo = class ch {
12212
12210
  /**
12213
12211
  * Parse the given string and returns a JsSIP.URI instance or undefined if
@@ -12319,7 +12317,7 @@ function ys() {
12319
12317
  }, Mo;
12320
12318
  }
12321
12319
  var nf;
12322
- function At() {
12320
+ function Ct() {
12323
12321
  if (nf)
12324
12322
  return et;
12325
12323
  nf = 1;
@@ -12398,63 +12396,63 @@ function At() {
12398
12396
  }
12399
12397
  return `192.0.2.${r(1, 254)}`;
12400
12398
  }, et.calculateMD5 = (r) => {
12401
- function d(Ee, Ae) {
12402
- return Ee << Ae | Ee >>> 32 - Ae;
12399
+ function d(Ee, Ce) {
12400
+ return Ee << Ce | Ee >>> 32 - Ce;
12403
12401
  }
12404
- function h(Ee, Ae) {
12405
- const Ie = Ee & 2147483648, Oe = Ae & 2147483648, pe = Ee & 1073741824, ue = Ae & 1073741824, _e = (Ee & 1073741823) + (Ae & 1073741823);
12402
+ function h(Ee, Ce) {
12403
+ const Ie = Ee & 2147483648, Oe = Ce & 2147483648, pe = Ee & 1073741824, ue = Ce & 1073741824, _e = (Ee & 1073741823) + (Ce & 1073741823);
12406
12404
  return pe & ue ? _e ^ 2147483648 ^ Ie ^ Oe : pe | ue ? _e & 1073741824 ? _e ^ 3221225472 ^ Ie ^ Oe : _e ^ 1073741824 ^ Ie ^ Oe : _e ^ Ie ^ Oe;
12407
12405
  }
12408
- function _(Ee, Ae, Ie) {
12409
- return Ee & Ae | ~Ee & Ie;
12406
+ function _(Ee, Ce, Ie) {
12407
+ return Ee & Ce | ~Ee & Ie;
12410
12408
  }
12411
- function g(Ee, Ae, Ie) {
12412
- return Ee & Ie | Ae & ~Ie;
12409
+ function g(Ee, Ce, Ie) {
12410
+ return Ee & Ie | Ce & ~Ie;
12413
12411
  }
12414
- function T(Ee, Ae, Ie) {
12415
- return Ee ^ Ae ^ Ie;
12412
+ function T(Ee, Ce, Ie) {
12413
+ return Ee ^ Ce ^ Ie;
12416
12414
  }
12417
- function E(Ee, Ae, Ie) {
12418
- return Ae ^ (Ee | ~Ie);
12415
+ function E(Ee, Ce, Ie) {
12416
+ return Ce ^ (Ee | ~Ie);
12419
12417
  }
12420
- function y(Ee, Ae, Ie, Oe, pe, ue, _e) {
12421
- return Ee = h(Ee, h(h(_(Ae, Ie, Oe), pe), _e)), h(d(Ee, ue), Ae);
12418
+ function y(Ee, Ce, Ie, Oe, pe, ue, _e) {
12419
+ return Ee = h(Ee, h(h(_(Ce, Ie, Oe), pe), _e)), h(d(Ee, ue), Ce);
12422
12420
  }
12423
- function A(Ee, Ae, Ie, Oe, pe, ue, _e) {
12424
- return Ee = h(Ee, h(h(g(Ae, Ie, Oe), pe), _e)), h(d(Ee, ue), Ae);
12421
+ function C(Ee, Ce, Ie, Oe, pe, ue, _e) {
12422
+ return Ee = h(Ee, h(h(g(Ce, Ie, Oe), pe), _e)), h(d(Ee, ue), Ce);
12425
12423
  }
12426
- function C(Ee, Ae, Ie, Oe, pe, ue, _e) {
12427
- return Ee = h(Ee, h(h(T(Ae, Ie, Oe), pe), _e)), h(d(Ee, ue), Ae);
12424
+ function A(Ee, Ce, Ie, Oe, pe, ue, _e) {
12425
+ return Ee = h(Ee, h(h(T(Ce, Ie, Oe), pe), _e)), h(d(Ee, ue), Ce);
12428
12426
  }
12429
- function I(Ee, Ae, Ie, Oe, pe, ue, _e) {
12430
- return Ee = h(Ee, h(h(E(Ae, Ie, Oe), pe), _e)), h(d(Ee, ue), Ae);
12427
+ function I(Ee, Ce, Ie, Oe, pe, ue, _e) {
12428
+ return Ee = h(Ee, h(h(E(Ce, Ie, Oe), pe), _e)), h(d(Ee, ue), Ce);
12431
12429
  }
12432
12430
  function H(Ee) {
12433
- let Ae;
12431
+ let Ce;
12434
12432
  const Ie = Ee.length, Oe = Ie + 8, ue = ((Oe - Oe % 64) / 64 + 1) * 16, _e = new Array(ue - 1);
12435
12433
  let we = 0, Ne = 0;
12436
12434
  for (; Ne < Ie; )
12437
- Ae = (Ne - Ne % 4) / 4, we = Ne % 4 * 8, _e[Ae] = _e[Ae] | Ee.charCodeAt(Ne) << we, Ne++;
12438
- return Ae = (Ne - Ne % 4) / 4, we = Ne % 4 * 8, _e[Ae] = _e[Ae] | 128 << we, _e[ue - 2] = Ie << 3, _e[ue - 1] = Ie >>> 29, _e;
12435
+ Ce = (Ne - Ne % 4) / 4, we = Ne % 4 * 8, _e[Ce] = _e[Ce] | Ee.charCodeAt(Ne) << we, Ne++;
12436
+ return Ce = (Ne - Ne % 4) / 4, we = Ne % 4 * 8, _e[Ce] = _e[Ce] | 128 << we, _e[ue - 2] = Ie << 3, _e[ue - 1] = Ie >>> 29, _e;
12439
12437
  }
12440
12438
  function $(Ee) {
12441
- let Ae = "", Ie = "", Oe, pe;
12439
+ let Ce = "", Ie = "", Oe, pe;
12442
12440
  for (pe = 0; pe <= 3; pe++)
12443
- Oe = Ee >>> pe * 8 & 255, Ie = `0${Oe.toString(16)}`, Ae = Ae + Ie.substr(Ie.length - 2, 2);
12444
- return Ae;
12441
+ Oe = Ee >>> pe * 8 & 255, Ie = `0${Oe.toString(16)}`, Ce = Ce + Ie.substr(Ie.length - 2, 2);
12442
+ return Ce;
12445
12443
  }
12446
12444
  function oe(Ee) {
12447
- let Ae = "";
12445
+ let Ce = "";
12448
12446
  for (let Ie = 0; Ie < Ee.length; Ie++) {
12449
12447
  const Oe = Ee.charCodeAt(Ie);
12450
- Oe < 128 ? Ae += String.fromCharCode(Oe) : Oe > 127 && Oe < 2048 ? (Ae += String.fromCharCode(Oe >> 6 | 192), Ae += String.fromCharCode(Oe & 63 | 128)) : (Ae += String.fromCharCode(Oe >> 12 | 224), Ae += String.fromCharCode(Oe >> 6 & 63 | 128), Ae += String.fromCharCode(Oe & 63 | 128));
12448
+ Oe < 128 ? Ce += String.fromCharCode(Oe) : Oe > 127 && Oe < 2048 ? (Ce += String.fromCharCode(Oe >> 6 | 192), Ce += String.fromCharCode(Oe & 63 | 128)) : (Ce += String.fromCharCode(Oe >> 12 | 224), Ce += String.fromCharCode(Oe >> 6 & 63 | 128), Ce += String.fromCharCode(Oe & 63 | 128));
12451
12449
  }
12452
- return Ae;
12450
+ return Ce;
12453
12451
  }
12454
12452
  let N = [], j, Se, ve, k, D, B, V, J, F;
12455
- const X = 7, U = 12, P = 17, se = 22, st = 5, ee = 9, W = 14, G = 20, re = 4, ge = 11, be = 16, xe = 23, Ce = 6, le = 10, ye = 15, nt = 21;
12453
+ const X = 7, U = 12, P = 17, se = 22, st = 5, ee = 9, W = 14, G = 20, re = 4, ge = 11, be = 16, xe = 23, Ae = 6, le = 10, ye = 15, nt = 21;
12456
12454
  for (r = oe(r), N = H(r), B = 1732584193, V = 4023233417, J = 2562383102, F = 271733878, j = 0; j < N.length; j += 16)
12457
- Se = B, ve = V, k = J, D = F, B = y(B, V, J, F, N[j + 0], X, 3614090360), F = y(F, B, V, J, N[j + 1], U, 3905402710), J = y(J, F, B, V, N[j + 2], P, 606105819), V = y(V, J, F, B, N[j + 3], se, 3250441966), B = y(B, V, J, F, N[j + 4], X, 4118548399), F = y(F, B, V, J, N[j + 5], U, 1200080426), J = y(J, F, B, V, N[j + 6], P, 2821735955), V = y(V, J, F, B, N[j + 7], se, 4249261313), B = y(B, V, J, F, N[j + 8], X, 1770035416), F = y(F, B, V, J, N[j + 9], U, 2336552879), J = y(J, F, B, V, N[j + 10], P, 4294925233), V = y(V, J, F, B, N[j + 11], se, 2304563134), B = y(B, V, J, F, N[j + 12], X, 1804603682), F = y(F, B, V, J, N[j + 13], U, 4254626195), J = y(J, F, B, V, N[j + 14], P, 2792965006), V = y(V, J, F, B, N[j + 15], se, 1236535329), B = A(B, V, J, F, N[j + 1], st, 4129170786), F = A(F, B, V, J, N[j + 6], ee, 3225465664), J = A(J, F, B, V, N[j + 11], W, 643717713), V = A(V, J, F, B, N[j + 0], G, 3921069994), B = A(B, V, J, F, N[j + 5], st, 3593408605), F = A(F, B, V, J, N[j + 10], ee, 38016083), J = A(J, F, B, V, N[j + 15], W, 3634488961), V = A(V, J, F, B, N[j + 4], G, 3889429448), B = A(B, V, J, F, N[j + 9], st, 568446438), F = A(F, B, V, J, N[j + 14], ee, 3275163606), J = A(J, F, B, V, N[j + 3], W, 4107603335), V = A(V, J, F, B, N[j + 8], G, 1163531501), B = A(B, V, J, F, N[j + 13], st, 2850285829), F = A(F, B, V, J, N[j + 2], ee, 4243563512), J = A(J, F, B, V, N[j + 7], W, 1735328473), V = A(V, J, F, B, N[j + 12], G, 2368359562), B = C(B, V, J, F, N[j + 5], re, 4294588738), F = C(F, B, V, J, N[j + 8], ge, 2272392833), J = C(J, F, B, V, N[j + 11], be, 1839030562), V = C(V, J, F, B, N[j + 14], xe, 4259657740), B = C(B, V, J, F, N[j + 1], re, 2763975236), F = C(F, B, V, J, N[j + 4], ge, 1272893353), J = C(J, F, B, V, N[j + 7], be, 4139469664), V = C(V, J, F, B, N[j + 10], xe, 3200236656), B = C(B, V, J, F, N[j + 13], re, 681279174), F = C(F, B, V, J, N[j + 0], ge, 3936430074), J = C(J, F, B, V, N[j + 3], be, 3572445317), V = C(V, J, F, B, N[j + 6], xe, 76029189), B = C(B, V, J, F, N[j + 9], re, 3654602809), F = C(F, B, V, J, N[j + 12], ge, 3873151461), J = C(J, F, B, V, N[j + 15], be, 530742520), V = C(V, J, F, B, N[j + 2], xe, 3299628645), B = I(B, V, J, F, N[j + 0], Ce, 4096336452), F = I(F, B, V, J, N[j + 7], le, 1126891415), J = I(J, F, B, V, N[j + 14], ye, 2878612391), V = I(V, J, F, B, N[j + 5], nt, 4237533241), B = I(B, V, J, F, N[j + 12], Ce, 1700485571), F = I(F, B, V, J, N[j + 3], le, 2399980690), J = I(J, F, B, V, N[j + 10], ye, 4293915773), V = I(V, J, F, B, N[j + 1], nt, 2240044497), B = I(B, V, J, F, N[j + 8], Ce, 1873313359), F = I(F, B, V, J, N[j + 15], le, 4264355552), J = I(J, F, B, V, N[j + 6], ye, 2734768916), V = I(V, J, F, B, N[j + 13], nt, 1309151649), B = I(B, V, J, F, N[j + 4], Ce, 4149444226), F = I(F, B, V, J, N[j + 11], le, 3174756917), J = I(J, F, B, V, N[j + 2], ye, 718787259), V = I(V, J, F, B, N[j + 9], nt, 3951481745), B = h(B, Se), V = h(V, ve), J = h(J, k), F = h(F, D);
12455
+ Se = B, ve = V, k = J, D = F, B = y(B, V, J, F, N[j + 0], X, 3614090360), F = y(F, B, V, J, N[j + 1], U, 3905402710), J = y(J, F, B, V, N[j + 2], P, 606105819), V = y(V, J, F, B, N[j + 3], se, 3250441966), B = y(B, V, J, F, N[j + 4], X, 4118548399), F = y(F, B, V, J, N[j + 5], U, 1200080426), J = y(J, F, B, V, N[j + 6], P, 2821735955), V = y(V, J, F, B, N[j + 7], se, 4249261313), B = y(B, V, J, F, N[j + 8], X, 1770035416), F = y(F, B, V, J, N[j + 9], U, 2336552879), J = y(J, F, B, V, N[j + 10], P, 4294925233), V = y(V, J, F, B, N[j + 11], se, 2304563134), B = y(B, V, J, F, N[j + 12], X, 1804603682), F = y(F, B, V, J, N[j + 13], U, 4254626195), J = y(J, F, B, V, N[j + 14], P, 2792965006), V = y(V, J, F, B, N[j + 15], se, 1236535329), B = C(B, V, J, F, N[j + 1], st, 4129170786), F = C(F, B, V, J, N[j + 6], ee, 3225465664), J = C(J, F, B, V, N[j + 11], W, 643717713), V = C(V, J, F, B, N[j + 0], G, 3921069994), B = C(B, V, J, F, N[j + 5], st, 3593408605), F = C(F, B, V, J, N[j + 10], ee, 38016083), J = C(J, F, B, V, N[j + 15], W, 3634488961), V = C(V, J, F, B, N[j + 4], G, 3889429448), B = C(B, V, J, F, N[j + 9], st, 568446438), F = C(F, B, V, J, N[j + 14], ee, 3275163606), J = C(J, F, B, V, N[j + 3], W, 4107603335), V = C(V, J, F, B, N[j + 8], G, 1163531501), B = C(B, V, J, F, N[j + 13], st, 2850285829), F = C(F, B, V, J, N[j + 2], ee, 4243563512), J = C(J, F, B, V, N[j + 7], W, 1735328473), V = C(V, J, F, B, N[j + 12], G, 2368359562), B = A(B, V, J, F, N[j + 5], re, 4294588738), F = A(F, B, V, J, N[j + 8], ge, 2272392833), J = A(J, F, B, V, N[j + 11], be, 1839030562), V = A(V, J, F, B, N[j + 14], xe, 4259657740), B = A(B, V, J, F, N[j + 1], re, 2763975236), F = A(F, B, V, J, N[j + 4], ge, 1272893353), J = A(J, F, B, V, N[j + 7], be, 4139469664), V = A(V, J, F, B, N[j + 10], xe, 3200236656), B = A(B, V, J, F, N[j + 13], re, 681279174), F = A(F, B, V, J, N[j + 0], ge, 3936430074), J = A(J, F, B, V, N[j + 3], be, 3572445317), V = A(V, J, F, B, N[j + 6], xe, 76029189), B = A(B, V, J, F, N[j + 9], re, 3654602809), F = A(F, B, V, J, N[j + 12], ge, 3873151461), J = A(J, F, B, V, N[j + 15], be, 530742520), V = A(V, J, F, B, N[j + 2], xe, 3299628645), B = I(B, V, J, F, N[j + 0], Ae, 4096336452), F = I(F, B, V, J, N[j + 7], le, 1126891415), J = I(J, F, B, V, N[j + 14], ye, 2878612391), V = I(V, J, F, B, N[j + 5], nt, 4237533241), B = I(B, V, J, F, N[j + 12], Ae, 1700485571), F = I(F, B, V, J, N[j + 3], le, 2399980690), J = I(J, F, B, V, N[j + 10], ye, 4293915773), V = I(V, J, F, B, N[j + 1], nt, 2240044497), B = I(B, V, J, F, N[j + 8], Ae, 1873313359), F = I(F, B, V, J, N[j + 15], le, 4264355552), J = I(J, F, B, V, N[j + 6], ye, 2734768916), V = I(V, J, F, B, N[j + 13], nt, 1309151649), B = I(B, V, J, F, N[j + 4], Ae, 4149444226), F = I(F, B, V, J, N[j + 11], le, 3174756917), J = I(J, F, B, V, N[j + 2], ye, 718787259), V = I(V, J, F, B, N[j + 9], nt, 3951481745), B = h(B, Se), V = h(V, ve), J = h(J, k), F = h(F, D);
12458
12456
  return ($(B) + $(V) + $(J) + $(F)).toLowerCase();
12459
12457
  }, et.closeMediaStream = (r) => {
12460
12458
  if (r)
@@ -12477,7 +12475,7 @@ function At() {
12477
12475
  }
12478
12476
  }, et.cloneArray = (r) => r && r.slice() || [], et.cloneObject = (r, d = {}) => r && Object.assign({}, r) || d, et;
12479
12477
  }
12480
- const fh = xt, Fm = ut, St = De, it = At(), rf = $u(), jm = Zt(), Lo = new Fm("SIPMessage");
12478
+ const fh = xt, Fm = ut, St = De, it = Ct(), rf = $u(), jm = Zt(), Lo = new Fm("SIPMessage");
12481
12479
  class Wa {
12482
12480
  constructor(t, n, a, o, s, r) {
12483
12481
  if (!t || !n || !a)
@@ -12490,8 +12488,8 @@ class Wa {
12490
12488
  typeof o.from_display_name < "u" ? E = o.from_display_name : a.configuration.display_name ? E = a.configuration.display_name : E = null, this.from = new rf(g, E, T), this.setHeader("from", this.from.toString());
12491
12489
  const y = o.call_id || a.configuration.jssip_id + it.createRandomToken(15);
12492
12490
  this.call_id = y, this.setHeader("call-id", y);
12493
- const A = o.cseq || Math.floor(Math.random() * 1e4);
12494
- this.cseq = A, this.setHeader("cseq", `${A} ${t}`);
12491
+ const C = o.cseq || Math.floor(Math.random() * 1e4);
12492
+ this.cseq = C, this.setHeader("cseq", `${C} ${t}`);
12495
12493
  }
12496
12494
  /**
12497
12495
  * Replace the the given header by the given value.
@@ -12835,7 +12833,7 @@ var yt = {
12835
12833
  IncomingRequest: qm,
12836
12834
  IncomingResponse: Vm
12837
12835
  };
12838
- const pr = /* @__PURE__ */ ze(yt), Bm = ut, ps = At(), Jt = new Bm("DigestAuthentication");
12836
+ const pr = /* @__PURE__ */ ze(yt), Bm = ut, ps = Ct(), Jt = new Bm("DigestAuthentication");
12839
12837
  var dh = class {
12840
12838
  constructor(t) {
12841
12839
  this._credentials = t, this._cnonce = null, this._nc = 0, this._ncHex = "00000000", this._algorithm = null, this._realm = null, this._nonce = null, this._opaque = null, this._stale = null, this._qop = null, this._method = null, this._uri = null, this._ha1 = null, this._response = null;
@@ -13326,7 +13324,7 @@ var vr = class {
13326
13324
  this._eventHandlers.onReceiveResponse(t);
13327
13325
  }
13328
13326
  };
13329
- const sl = /* @__PURE__ */ ze(vr), ng = ut, Fo = At(), Tn = De, ff = yt, hf = vr, Hi = new ng("Registrator"), Ql = 10;
13327
+ const sl = /* @__PURE__ */ ze(vr), ng = ut, Fo = Ct(), Tn = De, ff = yt, hf = vr, Hi = new ng("Registrator"), Ql = 10;
13330
13328
  var rg = class {
13331
13329
  constructor(t, n) {
13332
13330
  this._reg_id = 1, this._ua = t, this._transport = n, this._registrar = t.configuration.registrar_server, this._expires = t.configuration.register_expires, this._call_id = Fo.createRandomToken(22), this._cseq = 0, this._to_uri = t.configuration.uri, this._registrationTimer = null, this._registering = !1, this._registered = !1, this._contact = this._ua.contact.toString(), this._contact += ";+sip.ice", this._extraHeaders = [], this._extraContactParams = "", this._sipInstance = `"<urn:uuid:${this._ua.configuration.instance_id}>"`, this._contact += `;reg-id=${this._reg_id}`, this._contact += `;+sip.instance=${this._sipInstance}`;
@@ -13497,13 +13495,13 @@ class og extends Error {
13497
13495
  super(), this.code = 4, this.name = "NOT_READY_ERROR", this.message = t;
13498
13496
  }
13499
13497
  }
13500
- var As = {
13498
+ var Cs = {
13501
13499
  ConfigurationError: ig,
13502
13500
  InvalidStateError: lg,
13503
13501
  NotSupportedError: ag,
13504
13502
  NotReadyError: og
13505
13503
  };
13506
- const qs = /* @__PURE__ */ ze(As), jo = De, Zl = Tr, ug = vr, qo = {
13504
+ const qs = /* @__PURE__ */ ze(Cs), jo = De, Zl = Tr, ug = vr, qo = {
13507
13505
  onRequestTimeout: () => {
13508
13506
  },
13509
13507
  onTransportError: () => {
@@ -13555,7 +13553,7 @@ var _h = class {
13555
13553
  }, 1e3)) : t.status_code >= 200 && t.status_code < 300 ? this._eventHandlers.onSuccessResponse(t) : t.status_code >= 300 && this._eventHandlers.onErrorResponse(t);
13556
13554
  }
13557
13555
  };
13558
- const cg = /* @__PURE__ */ ze(_h), fg = ut, df = yt, $s = De, Fi = Tr, hg = _h, Vo = At(), Bo = new fg("Dialog"), Hs = {
13556
+ const cg = /* @__PURE__ */ ze(_h), fg = ut, df = yt, $s = De, Fi = Tr, hg = _h, Vo = Ct(), Bo = new fg("Dialog"), Hs = {
13559
13557
  // Dialog states.
13560
13558
  STATUS_EARLY: 1,
13561
13559
  STATUS_CONFIRMED: 2,
@@ -13686,7 +13684,7 @@ var ph = class {
13686
13684
  };
13687
13685
  const ea = /* @__PURE__ */ ze(ph);
13688
13686
  var ju = { exports: {} };
13689
- const dg = ft.EventEmitter, _g = ut, pg = De, mg = As, _f = At(), gg = new _g("RTCSession:DTMF"), mh = {
13687
+ const dg = ft.EventEmitter, _g = ut, pg = De, mg = Cs, _f = Ct(), gg = new _g("RTCSession:DTMF"), mh = {
13690
13688
  MIN_DURATION: 70,
13691
13689
  MAX_DURATION: 6e3,
13692
13690
  DEFAULT_DURATION: 100,
@@ -13770,7 +13768,7 @@ ju.exports = class extends dg {
13770
13768
  };
13771
13769
  ju.exports.C = mh;
13772
13770
  var gh = ju.exports;
13773
- const Tg = /* @__PURE__ */ ze(gh), vg = ft.EventEmitter, Eg = De, Sg = As, yg = At();
13771
+ const Tg = /* @__PURE__ */ ze(gh), vg = ft.EventEmitter, Eg = De, Sg = Cs, yg = Ct();
13774
13772
  var Th = class extends vg {
13775
13773
  constructor(t) {
13776
13774
  super(), this._session = t, this._direction = null, this._contentType = null, this._body = null;
@@ -13828,7 +13826,7 @@ var Th = class extends vg {
13828
13826
  });
13829
13827
  }
13830
13828
  };
13831
- const yu = /* @__PURE__ */ ze(Th), Ag = ut, pf = De, Cg = new Ag("RTCSession:ReferNotifier"), Go = {
13829
+ const yu = /* @__PURE__ */ ze(Th), Cg = ut, pf = De, Ag = new Cg("RTCSession:ReferNotifier"), Go = {
13832
13830
  event_type: "refer",
13833
13831
  body_type: "message/sipfrag;version=2.0",
13834
13832
  expires: 300
@@ -13838,7 +13836,7 @@ var vh = class {
13838
13836
  this._session = t, this._id = n, this._expires = a || Go.expires, this._active = !0, this.notify(100);
13839
13837
  }
13840
13838
  notify(t, n) {
13841
- if (Cg.debug("notify()"), this._active === !1)
13839
+ if (Ag.debug("notify()"), this._active === !1)
13842
13840
  return;
13843
13841
  n = n || pf.REASON_PHRASE[t] || "";
13844
13842
  let a;
@@ -13858,7 +13856,7 @@ var vh = class {
13858
13856
  });
13859
13857
  }
13860
13858
  };
13861
- const Rg = /* @__PURE__ */ ze(vh), Ig = ft.EventEmitter, bg = ut, ji = De, wg = Zt(), mf = At(), vn = new bg("RTCSession:ReferSubscriber");
13859
+ const Rg = /* @__PURE__ */ ze(vh), Ig = ft.EventEmitter, bg = ut, ji = De, wg = Zt(), mf = Ct(), vn = new bg("RTCSession:ReferSubscriber");
13862
13860
  var Eh = class extends Ig {
13863
13861
  constructor(t) {
13864
13862
  super(), this._id = null, this._session = t;
@@ -13949,7 +13947,7 @@ var Eh = class extends Ig {
13949
13947
  });
13950
13948
  }
13951
13949
  };
13952
- const Og = /* @__PURE__ */ ze(Eh), Dg = ft.EventEmitter, gf = xt, Ng = ut, fe = De, En = As, Tf = Tr, Be = At(), qi = Fu, Ug = yt, ta = ph, Pg = vr, Mt = gh, vf = Th, xg = vh, kg = Eh, Ef = ys(), Y = new Ng("RTCSession"), Z = {
13950
+ const Og = /* @__PURE__ */ ze(Eh), Dg = ft.EventEmitter, gf = xt, Ng = ut, fe = De, En = Cs, Tf = Tr, Be = Ct(), qi = Fu, Ug = yt, ta = ph, Pg = vr, Mt = gh, vf = Th, xg = vh, kg = Eh, Ef = ys(), Y = new Ng("RTCSession"), Z = {
13953
13951
  // RTCSession states.
13954
13952
  STATUS_NULL: 0,
13955
13953
  STATUS_INVITE_SENT: 1,
@@ -13962,7 +13960,7 @@ const Og = /* @__PURE__ */ ze(Eh), Dg = ft.EventEmitter, gf = xt, Ng = ut, fe =
13962
13960
  STATUS_TERMINATED: 8,
13963
13961
  STATUS_CONFIRMED: 9
13964
13962
  }, sa = ["audio", "video"];
13965
- var Sh = class Au extends Dg {
13963
+ var Sh = class Cu extends Dg {
13966
13964
  /**
13967
13965
  * Expose C object.
13968
13966
  */
@@ -14088,8 +14086,8 @@ var Sh = class Au extends Dg {
14088
14086
  if (t = this._ua.normalizeTarget(t), !t)
14089
14087
  throw new TypeError(`Invalid target: ${o}`);
14090
14088
  this._sessionTimers.enabled && Be.isDecimal(n.sessionTimersExpires) && (n.sessionTimersExpires >= fe.MIN_SESSION_EXPIRES ? this._sessionTimers.defaultExpires = n.sessionTimersExpires : this._sessionTimers.defaultExpires = fe.SESSION_EXPIRES);
14091
- for (const A in s)
14092
- Object.prototype.hasOwnProperty.call(s, A) && this.on(A, s[A]);
14089
+ for (const C in s)
14090
+ Object.prototype.hasOwnProperty.call(s, C) && this.on(C, s[C]);
14093
14091
  this._from_tag = Be.newTag();
14094
14092
  const E = n.anonymous || !1, y = { from_tag: this._from_tag };
14095
14093
  this._contact = this._ua.contact.toString({
@@ -14132,7 +14130,7 @@ var Sh = class Au extends Dg {
14132
14130
  answer(t = {}) {
14133
14131
  Y.debug("answer()");
14134
14132
  const n = this._request, a = Be.cloneArray(t.extraHeaders), o = Be.cloneObject(t.mediaConstraints), s = t.mediaStream || null, r = Be.cloneObject(t.pcConfig, { iceServers: [] }), d = t.rtcConstraints || null, h = t.rtcAnswerConstraints || null, _ = Be.cloneObject(t.rtcOfferConstraints);
14135
- let g, T = !1, E = !1, y = !1, A = !1;
14133
+ let g, T = !1, E = !1, y = !1, C = !1;
14136
14134
  if (this._rtcAnswerConstraints = h, this._rtcOfferConstraints = t.rtcOfferConstraints || null, this._data = t.data || this._data, this._direction !== "incoming")
14137
14135
  throw new En.NotSupportedError('"answer" not supported for outgoing RTCSession');
14138
14136
  if (this._status !== Z.STATUS_WAITING_FOR_ANSWER)
@@ -14142,10 +14140,10 @@ var Sh = class Au extends Dg {
14142
14140
  return;
14143
14141
  }
14144
14142
  clearTimeout(this._timers.userNoAnswerTimer), a.unshift(`Contact: ${this._contact}`);
14145
- const C = n.parseSDP();
14146
- Array.isArray(C.media) || (C.media = [C.media]);
14147
- for (const I of C.media)
14148
- I.type === "audio" && (T = !0, (!I.direction || I.direction === "sendrecv") && (y = !0)), I.type === "video" && (E = !0, (!I.direction || I.direction === "sendrecv") && (A = !0));
14143
+ const A = n.parseSDP();
14144
+ Array.isArray(A.media) || (A.media = [A.media]);
14145
+ for (const I of A.media)
14146
+ I.type === "audio" && (T = !0, (!I.direction || I.direction === "sendrecv") && (y = !0)), I.type === "video" && (E = !0, (!I.direction || I.direction === "sendrecv") && (C = !0));
14149
14147
  if (s && o.audio === !1) {
14150
14148
  g = s.getAudioTracks();
14151
14149
  for (const I of g)
@@ -14156,7 +14154,7 @@ var Sh = class Au extends Dg {
14156
14154
  for (const I of g)
14157
14155
  s.removeTrack(I);
14158
14156
  }
14159
- !s && o.audio === void 0 && (o.audio = y), !s && o.video === void 0 && (o.video = A), !s && !T && !_.offerToReceiveAudio && (o.audio = !1), !s && !E && !_.offerToReceiveVideo && (o.video = !1), this._createRTCConnection(r, d), Promise.resolve().then(() => {
14157
+ !s && o.audio === void 0 && (o.audio = y), !s && o.video === void 0 && (o.video = C), !s && !T && !_.offerToReceiveAudio && (o.audio = !1), !s && !E && !_.offerToReceiveVideo && (o.video = !1), this._createRTCConnection(r, d), Promise.resolve().then(() => {
14160
14158
  if (s)
14161
14159
  return s;
14162
14160
  if (o.audio || o.video)
@@ -14792,7 +14790,7 @@ var Sh = class Au extends Dg {
14792
14790
  function a(s, r = {}) {
14793
14791
  if (s = typeof s == "function" ? s : null, this._status !== Z.STATUS_WAITING_FOR_ACK && this._status !== Z.STATUS_CONFIRMED)
14794
14792
  return !1;
14795
- const d = new Au(this._ua);
14793
+ const d = new Cu(this._ua);
14796
14794
  if (d.on("progress", ({ response: h }) => {
14797
14795
  n.notify(h.status_code, h.reason_phrase);
14798
14796
  }), d.on("accepted", ({ response: h }) => {
@@ -14843,7 +14841,7 @@ var Sh = class Au extends Dg {
14843
14841
  function n(o) {
14844
14842
  if (this._status !== Z.STATUS_WAITING_FOR_ACK && this._status !== Z.STATUS_CONFIRMED)
14845
14843
  return !1;
14846
- const s = new Au(this._ua);
14844
+ const s = new Cu(this._ua);
14847
14845
  s.on("confirmed", () => {
14848
14846
  this.terminate();
14849
14847
  }), s.init_incoming(t, o);
@@ -15276,7 +15274,7 @@ var Sh = class Au extends Dg {
15276
15274
  });
15277
15275
  }
15278
15276
  };
15279
- const Mg = /* @__PURE__ */ ze(Sh), Lg = ft.EventEmitter, $g = ut, Wo = De, Hg = yt, Vi = At(), Fg = vr, Sf = As, jg = ys(), na = new $g("Message");
15277
+ const Mg = /* @__PURE__ */ ze(Sh), Lg = ft.EventEmitter, $g = ut, Wo = De, Hg = yt, Vi = Ct(), Fg = vr, Sf = Cs, jg = ys(), na = new $g("Message");
15280
15278
  var qg = class extends Lg {
15281
15279
  constructor(t) {
15282
15280
  super(), this._ua = t, this._request = null, this._closed = !1, this._direction = null, this._local_identity = null, this._remote_identity = null, this._is_replied = !1, this._data = {};
@@ -15397,7 +15395,7 @@ var qg = class extends Lg {
15397
15395
  });
15398
15396
  }
15399
15397
  };
15400
- const Vg = ft.EventEmitter, Bg = ut, Ko = De, Gg = yt, Bi = At(), Wg = vr, yf = As, ra = new Bg("Options");
15398
+ const Vg = ft.EventEmitter, Bg = ut, Ko = De, Gg = yt, Bi = Ct(), Wg = vr, yf = Cs, ra = new Bg("Options");
15401
15399
  var Kg = class extends Vg {
15402
15400
  constructor(t) {
15403
15401
  super(), this._ua = t, this._request = null, this._closed = !1, this._direction = null, this._local_identity = null, this._remote_identity = null, this._is_replied = !1, this._data = {};
@@ -15517,7 +15515,7 @@ var Kg = class extends Vg {
15517
15515
  });
15518
15516
  }
15519
15517
  }, qu = {};
15520
- const Yg = ut, Yo = At(), Jg = Zt(), Gi = new Yg("Socket");
15518
+ const Yg = ut, Yo = Ct(), Jg = Zt(), Gi = new Yg("Socket");
15521
15519
  qu.isSocket = (c) => {
15522
15520
  if (Array.isArray(c))
15523
15521
  return !1;
@@ -15543,7 +15541,7 @@ qu.isSocket = (c) => {
15543
15541
  }
15544
15542
  return !0;
15545
15543
  };
15546
- const zg = ut, Xg = qu, Af = De, Ut = new zg("Transport"), Vt = {
15544
+ const zg = ut, Xg = qu, Cf = De, Ut = new zg("Transport"), Vt = {
15547
15545
  // Transport status.
15548
15546
  STATUS_CONNECTED: 0,
15549
15547
  STATUS_CONNECTING: 1,
@@ -15554,9 +15552,9 @@ const zg = ut, Xg = qu, Af = De, Ut = new zg("Transport"), Vt = {
15554
15552
  // Recovery options.
15555
15553
  recovery_options: {
15556
15554
  // minimum interval in seconds between recover attempts.
15557
- min_interval: Af.CONNECTION_RECOVERY_MIN_INTERVAL,
15555
+ min_interval: Cf.CONNECTION_RECOVERY_MIN_INTERVAL,
15558
15556
  // maximum interval in seconds between recover attempts.
15559
- max_interval: Af.CONNECTION_RECOVERY_MAX_INTERVAL
15557
+ max_interval: Cf.CONNECTION_RECOVERY_MAX_INTERVAL
15560
15558
  }
15561
15559
  };
15562
15560
  var yh = class {
@@ -15694,9 +15692,9 @@ ${t}
15694
15692
  }
15695
15693
  };
15696
15694
  const Qg = /* @__PURE__ */ ze(yh);
15697
- var Ah = {};
15698
- const Zg = ut, Cu = Zt(), Ru = yt, ia = new Zg("Parser");
15699
- Ah.parseMessage = (c, t) => {
15695
+ var Ch = {};
15696
+ const Zg = ut, Au = Zt(), Ru = yt, ia = new Zg("Parser");
15697
+ Ch.parseMessage = (c, t) => {
15700
15698
  let n, a, o = c.indexOf(`\r
15701
15699
  `);
15702
15700
  if (o === -1) {
@@ -15704,7 +15702,7 @@ Ah.parseMessage = (c, t) => {
15704
15702
  return;
15705
15703
  }
15706
15704
  const s = c.substring(0, o);
15707
- let r = Cu.parse(s, "Request_Response");
15705
+ let r = Au.parse(s, "Request_Response");
15708
15706
  if (r === -1) {
15709
15707
  ia.warn(`parseMessage() | error parsing first line of SIP message: "${s}"`);
15710
15708
  return;
@@ -15762,7 +15760,7 @@ function tT(c, t, n, a) {
15762
15760
  c.setHeader("to", d), o = c.parseHeader("to"), o && (c.to = o, c.to_tag = o.getParam("tag"));
15763
15761
  break;
15764
15762
  case "record-route":
15765
- if (o = Cu.parse(d, "Record_Route"), o === -1)
15763
+ if (o = Au.parse(d, "Record_Route"), o === -1)
15766
15764
  o = void 0;
15767
15765
  else
15768
15766
  for (const h of o)
@@ -15774,7 +15772,7 @@ function tT(c, t, n, a) {
15774
15772
  break;
15775
15773
  case "contact":
15776
15774
  case "m":
15777
- if (o = Cu.parse(d, "Contact"), o === -1)
15775
+ if (o = Au.parse(d, "Contact"), o === -1)
15778
15776
  o = void 0;
15779
15777
  else
15780
15778
  for (const h of o)
@@ -15822,7 +15820,7 @@ function tT(c, t, n, a) {
15822
15820
  error: `error parsing header "${r}"`
15823
15821
  } : !0;
15824
15822
  }
15825
- const sT = ut, Ch = De, Cf = yt, Vu = At(), Bu = new sT("sanityCheck"), nT = [hT], rT = [
15823
+ const sT = ut, Ah = De, Af = yt, Vu = Ct(), Bu = new sT("sanityCheck"), nT = [hT], rT = [
15826
15824
  lT,
15827
15825
  aT,
15828
15826
  oT,
@@ -15831,17 +15829,17 @@ const sT = ut, Ch = De, Cf = yt, Vu = At(), Bu = new sT("sanityCheck"), nT = [hT
15831
15829
  cT,
15832
15830
  fT
15833
15831
  ];
15834
- let je, is, Rh;
15832
+ let Fe, is, Rh;
15835
15833
  var Ih = (c, t, n) => {
15836
- je = c, is = t, Rh = n;
15834
+ Fe = c, is = t, Rh = n;
15837
15835
  for (const a of nT)
15838
15836
  if (a() === !1)
15839
15837
  return !1;
15840
- if (je instanceof Cf.IncomingRequest) {
15838
+ if (Fe instanceof Af.IncomingRequest) {
15841
15839
  for (const a of rT)
15842
15840
  if (a() === !1)
15843
15841
  return !1;
15844
- } else if (je instanceof Cf.IncomingResponse) {
15842
+ } else if (Fe instanceof Af.IncomingResponse) {
15845
15843
  for (const a of iT)
15846
15844
  if (a() === !1)
15847
15845
  return !1;
@@ -15849,30 +15847,30 @@ var Ih = (c, t, n) => {
15849
15847
  return !0;
15850
15848
  };
15851
15849
  function lT() {
15852
- if (je.s("to").uri.scheme !== "sip")
15850
+ if (Fe.s("to").uri.scheme !== "sip")
15853
15851
  return nl(416), !1;
15854
15852
  }
15855
15853
  function aT() {
15856
- if (!je.to_tag && je.call_id.substr(0, 5) === is.configuration.jssip_id)
15854
+ if (!Fe.to_tag && Fe.call_id.substr(0, 5) === is.configuration.jssip_id)
15857
15855
  return nl(482), !1;
15858
15856
  }
15859
15857
  function oT() {
15860
- const c = Vu.str_utf8_length(je.body), t = je.getHeader("content-length");
15858
+ const c = Vu.str_utf8_length(Fe.body), t = Fe.getHeader("content-length");
15861
15859
  if (c < t)
15862
15860
  return nl(400), !1;
15863
15861
  }
15864
15862
  function uT() {
15865
- const c = je.from_tag, t = je.call_id, n = je.cseq;
15863
+ const c = Fe.from_tag, t = Fe.call_id, n = Fe.cseq;
15866
15864
  let a;
15867
- if (!je.to_tag)
15868
- if (je.method === Ch.INVITE) {
15869
- if (is._transactions.ist[je.via_branch])
15865
+ if (!Fe.to_tag)
15866
+ if (Fe.method === Ah.INVITE) {
15867
+ if (is._transactions.ist[Fe.via_branch])
15870
15868
  return !1;
15871
15869
  for (const o in is._transactions.ist)
15872
15870
  if (Object.prototype.hasOwnProperty.call(is._transactions.ist, o) && (a = is._transactions.ist[o], a.request.from_tag === c && a.request.call_id === t && a.request.cseq === n))
15873
15871
  return nl(482), !1;
15874
15872
  } else {
15875
- if (is._transactions.nist[je.via_branch])
15873
+ if (is._transactions.nist[Fe.via_branch])
15876
15874
  return !1;
15877
15875
  for (const o in is._transactions.nist)
15878
15876
  if (Object.prototype.hasOwnProperty.call(is._transactions.nist, o) && (a = is._transactions.nist[o], a.request.from_tag === c && a.request.call_id === t && a.request.cseq === n))
@@ -15880,37 +15878,37 @@ function uT() {
15880
15878
  }
15881
15879
  }
15882
15880
  function cT() {
15883
- if (je.getHeaders("via").length > 1)
15881
+ if (Fe.getHeaders("via").length > 1)
15884
15882
  return Bu.debug("more than one Via header field present in the response, dropping the response"), !1;
15885
15883
  }
15886
15884
  function fT() {
15887
- const c = Vu.str_utf8_length(je.body), t = je.getHeader("content-length");
15885
+ const c = Vu.str_utf8_length(Fe.body), t = Fe.getHeader("content-length");
15888
15886
  if (c < t)
15889
15887
  return Bu.debug("message body length is lower than the value in Content-Length header field, dropping the response"), !1;
15890
15888
  }
15891
15889
  function hT() {
15892
15890
  const c = ["from", "to", "call_id", "cseq", "via"];
15893
15891
  for (const t of c)
15894
- if (!je.hasHeader(t))
15892
+ if (!Fe.hasHeader(t))
15895
15893
  return Bu.debug(`missing mandatory header field : ${t}, dropping the response`), !1;
15896
15894
  }
15897
15895
  function nl(c) {
15898
- const t = je.getHeaders("via");
15899
- let n, a = `SIP/2.0 ${c} ${Ch.REASON_PHRASE[c]}\r
15896
+ const t = Fe.getHeaders("via");
15897
+ let n, a = `SIP/2.0 ${c} ${Ah.REASON_PHRASE[c]}\r
15900
15898
  `;
15901
15899
  for (const o of t)
15902
15900
  a += `Via: ${o}\r
15903
15901
  `;
15904
- n = je.getHeader("To"), je.to_tag || (n += `;tag=${Vu.newTag()}`), a += `To: ${n}\r
15905
- `, a += `From: ${je.getHeader("From")}\r
15906
- `, a += `Call-ID: ${je.call_id}\r
15907
- `, a += `CSeq: ${je.cseq} ${je.method}\r
15902
+ n = Fe.getHeader("To"), Fe.to_tag || (n += `;tag=${Vu.newTag()}`), a += `To: ${n}\r
15903
+ `, a += `From: ${Fe.getHeader("From")}\r
15904
+ `, a += `Call-ID: ${Fe.call_id}\r
15905
+ `, a += `CSeq: ${Fe.cseq} ${Fe.method}\r
15908
15906
  `, a += `\r
15909
15907
  `, Rh.send(a);
15910
15908
  }
15911
15909
  const dT = /* @__PURE__ */ ze(Ih);
15912
15910
  var rl = {};
15913
- const hr = At(), An = De, Jo = Zt(), Rf = ys(), zo = qu, Xo = As;
15911
+ const hr = Ct(), Cn = De, Jo = Zt(), Rf = ys(), zo = qu, Xo = Cs;
15914
15912
  rl.settings = {
15915
15913
  // SIP authentication.
15916
15914
  authorization_user: null,
@@ -15928,7 +15926,7 @@ rl.settings = {
15928
15926
  use_preloaded_route: !1,
15929
15927
  // Session parameters.
15930
15928
  session_timers: !0,
15931
- session_timers_refresh_method: An.UPDATE,
15929
+ session_timers_refresh_method: Cn.UPDATE,
15932
15930
  session_timers_force_refresher: !1,
15933
15931
  no_answer_timeout: 60,
15934
15932
  // Registration parameters.
@@ -15937,8 +15935,8 @@ rl.settings = {
15937
15935
  registrar_server: null,
15938
15936
  // Connection options.
15939
15937
  sockets: null,
15940
- connection_recovery_max_interval: An.CONNECTION_RECOVERY_MAX_INTERVAL,
15941
- connection_recovery_min_interval: An.CONNECTION_RECOVERY_MIN_INTERVAL,
15938
+ connection_recovery_max_interval: Cn.CONNECTION_RECOVERY_MAX_INTERVAL,
15939
+ connection_recovery_min_interval: Cn.CONNECTION_RECOVERY_MIN_INTERVAL,
15942
15940
  // Global extra headers, to be added to every request and response
15943
15941
  extra_headers: null,
15944
15942
  /*
@@ -15961,7 +15959,7 @@ const la = {
15961
15959
  return t;
15962
15960
  },
15963
15961
  uri(c) {
15964
- /^sip:/i.test(c) || (c = `${An.SIP}:${c}`);
15962
+ /^sip:/i.test(c) || (c = `${Cn.SIP}:${c}`);
15965
15963
  const t = Rf.parse(c);
15966
15964
  if (t)
15967
15965
  return t.user ? t : void 0;
@@ -16020,7 +16018,7 @@ const la = {
16020
16018
  return c;
16021
16019
  },
16022
16020
  session_timers_refresh_method(c) {
16023
- if (typeof c == "string" && (c = c.toUpperCase(), c === An.INVITE || c === An.UPDATE))
16021
+ if (typeof c == "string" && (c = c.toUpperCase(), c === Cn.INVITE || c === Cn.UPDATE))
16024
16022
  return c;
16025
16023
  },
16026
16024
  session_timers_force_refresher(c) {
@@ -16048,7 +16046,7 @@ const la = {
16048
16046
  }
16049
16047
  },
16050
16048
  registrar_server(c) {
16051
- /^sip:/i.test(c) || (c = `${An.SIP}:${c}`);
16049
+ /^sip:/i.test(c) || (c = `${Cn.SIP}:${c}`);
16052
16050
  const t = Rf.parse(c);
16053
16051
  if (t)
16054
16052
  return t.user ? void 0 : t;
@@ -16090,7 +16088,7 @@ rl.load = (c, t) => {
16090
16088
  throw new Xo.ConfigurationError(n, a);
16091
16089
  }
16092
16090
  };
16093
- const _T = ft.EventEmitter, pT = ut, mt = De, mT = rg, If = Sh, bf = qg, wf = Kg, Qo = Tr, gT = yh, aa = At(), TT = As, vT = ys(), ET = Ah, Zo = yt, ST = Ih, eu = rl, He = new pT("UA"), vt = {
16091
+ const _T = ft.EventEmitter, pT = ut, mt = De, mT = rg, If = Sh, bf = qg, wf = Kg, Qo = Tr, gT = yh, aa = Ct(), TT = Cs, vT = ys(), ET = Ch, Zo = yt, ST = Ih, eu = rl, qe = new pT("UA"), vt = {
16094
16092
  // UA status codes.
16095
16093
  STATUS_INIT: 0,
16096
16094
  STATUS_READY: 1,
@@ -16106,7 +16104,7 @@ var bh = class extends _T {
16106
16104
  return vt;
16107
16105
  }
16108
16106
  constructor(t) {
16109
- if (He.debug("new() [configuration:%o]", t), super(), this._cache = {
16107
+ if (qe.debug("new() [configuration:%o]", t), super(), this._cache = {
16110
16108
  credentials: {}
16111
16109
  }, this._configuration = Object.assign({}, eu.settings), this._dynConfiguration = {}, this._dialogs = {}, this._applicants = {}, this._sessions = {}, this._transport = null, this._contact = null, this._status = vt.STATUS_INIT, this._error = null, this._transactions = {
16112
16110
  nist: {},
@@ -16145,19 +16143,19 @@ var bh = class extends _T {
16145
16143
  * Resume UA after being closed.
16146
16144
  */
16147
16145
  start() {
16148
- He.debug("start()"), this._status === vt.STATUS_INIT ? this._transport.connect() : this._status === vt.STATUS_USER_CLOSED ? (He.debug("restarting UA"), this._closeTimer !== null && (clearTimeout(this._closeTimer), this._closeTimer = null, this._transport.disconnect()), this._status = vt.STATUS_INIT, this._transport.connect()) : this._status === vt.STATUS_READY ? He.debug("UA is in READY status, not restarted") : He.debug("ERROR: connection is down, Auto-Recovery system is trying to reconnect"), this._dynConfiguration.register = this._configuration.register;
16146
+ qe.debug("start()"), this._status === vt.STATUS_INIT ? this._transport.connect() : this._status === vt.STATUS_USER_CLOSED ? (qe.debug("restarting UA"), this._closeTimer !== null && (clearTimeout(this._closeTimer), this._closeTimer = null, this._transport.disconnect()), this._status = vt.STATUS_INIT, this._transport.connect()) : this._status === vt.STATUS_READY ? qe.debug("UA is in READY status, not restarted") : qe.debug("ERROR: connection is down, Auto-Recovery system is trying to reconnect"), this._dynConfiguration.register = this._configuration.register;
16149
16147
  }
16150
16148
  /**
16151
16149
  * Register.
16152
16150
  */
16153
16151
  register() {
16154
- He.debug("register()"), this._dynConfiguration.register = !0, this._registrator.register();
16152
+ qe.debug("register()"), this._dynConfiguration.register = !0, this._registrator.register();
16155
16153
  }
16156
16154
  /**
16157
16155
  * Unregister.
16158
16156
  */
16159
16157
  unregister(t) {
16160
- He.debug("unregister()"), this._dynConfiguration.register = !1, this._registrator.unregister(t);
16158
+ qe.debug("unregister()"), this._dynConfiguration.register = !1, this._registrator.unregister(t);
16161
16159
  }
16162
16160
  /**
16163
16161
  * Get the Registrator instance.
@@ -16187,7 +16185,7 @@ var bh = class extends _T {
16187
16185
  *
16188
16186
  */
16189
16187
  call(t, n) {
16190
- He.debug("call()");
16188
+ qe.debug("call()");
16191
16189
  const a = new If(this);
16192
16190
  return a.connect(t, n), a;
16193
16191
  }
@@ -16202,7 +16200,7 @@ var bh = class extends _T {
16202
16200
  *
16203
16201
  */
16204
16202
  sendMessage(t, n, a) {
16205
- He.debug("sendMessage()");
16203
+ qe.debug("sendMessage()");
16206
16204
  const o = new bf(this);
16207
16205
  return o.send(t, n, a), o;
16208
16206
  }
@@ -16217,7 +16215,7 @@ var bh = class extends _T {
16217
16215
  *
16218
16216
  */
16219
16217
  sendOptions(t, n, a) {
16220
- He.debug("sendOptions()");
16218
+ qe.debug("sendOptions()");
16221
16219
  const o = new wf(this);
16222
16220
  return o.send(t, n, a), o;
16223
16221
  }
@@ -16225,7 +16223,7 @@ var bh = class extends _T {
16225
16223
  * Terminate ongoing sessions.
16226
16224
  */
16227
16225
  terminateSessions(t) {
16228
- He.debug("terminateSessions()");
16226
+ qe.debug("terminateSessions()");
16229
16227
  for (const n in this._sessions)
16230
16228
  this._sessions[n].isEnded() || this._sessions[n].terminate(t);
16231
16229
  }
@@ -16234,15 +16232,15 @@ var bh = class extends _T {
16234
16232
  *
16235
16233
  */
16236
16234
  stop() {
16237
- if (He.debug("stop()"), this._dynConfiguration = {}, this._status === vt.STATUS_USER_CLOSED) {
16238
- He.debug("UA already closed");
16235
+ if (qe.debug("stop()"), this._dynConfiguration = {}, this._status === vt.STATUS_USER_CLOSED) {
16236
+ qe.debug("UA already closed");
16239
16237
  return;
16240
16238
  }
16241
16239
  this._registrator.close();
16242
16240
  const t = Object.keys(this._sessions).length;
16243
16241
  for (const a in this._sessions)
16244
16242
  if (Object.prototype.hasOwnProperty.call(this._sessions, a)) {
16245
- He.debug(`closing session ${a}`);
16243
+ qe.debug(`closing session ${a}`);
16246
16244
  try {
16247
16245
  this._sessions[a].terminate();
16248
16246
  } catch {
@@ -16280,7 +16278,7 @@ var bh = class extends _T {
16280
16278
  case "authorization_jwt":
16281
16279
  return this._configuration.authorization_jwt;
16282
16280
  default:
16283
- He.warn('get() | cannot get "%s" parameter in runtime', t);
16281
+ qe.warn('get() | cannot get "%s" parameter in runtime', t);
16284
16282
  return;
16285
16283
  }
16286
16284
  }
@@ -16315,7 +16313,7 @@ var bh = class extends _T {
16315
16313
  break;
16316
16314
  }
16317
16315
  default:
16318
- return He.warn('set() | cannot set "%s" parameter in runtime', t), !1;
16316
+ return qe.warn('set() | cannot set "%s" parameter in runtime', t), !1;
16319
16317
  }
16320
16318
  return !0;
16321
16319
  }
@@ -16405,10 +16403,9 @@ var bh = class extends _T {
16405
16403
  * Request reception
16406
16404
  */
16407
16405
  receiveRequest(t) {
16408
- console.log("receiveRequest");
16409
16406
  const n = t.method;
16410
16407
  if (t.ruri.user !== this._configuration.uri.user && t.ruri.user !== this._contact.uri.user) {
16411
- He.debug("Request-URI does not point to us"), t.method !== mt.ACK && t.reply_sl(404);
16408
+ qe.debug("Request-URI does not point to us"), t.method !== mt.ACK && t.reply_sl(404);
16412
16409
  return;
16413
16410
  }
16414
16411
  if (t.ruri.scheme === mt.SIPS) {
@@ -16418,7 +16415,7 @@ var bh = class extends _T {
16418
16415
  if (Qo.checkTransaction(this, t))
16419
16416
  return;
16420
16417
  if (n === mt.INVITE ? new Qo.InviteServerTransaction(this, this._transport, t) : n !== mt.ACK && n !== mt.CANCEL && new Qo.NonInviteServerTransaction(this, this._transport, t), n === mt.OPTIONS) {
16421
- if (console.log("OPPP in option"), this.listeners("newOptions").length === 0) {
16418
+ if (this.listeners("newOptions").length === 0) {
16422
16419
  t.reply(200);
16423
16420
  return;
16424
16421
  }
@@ -16435,7 +16432,7 @@ var bh = class extends _T {
16435
16432
  }
16436
16433
  let a, o;
16437
16434
  if (t.to_tag)
16438
- a = this._findDialog(t.call_id, t.from_tag, t.to_tag), a ? a.receiveRequest(t) : n === mt.NOTIFY ? (o = this._findSession(t), o ? o.receiveRequest(t) : (He.debug("received NOTIFY request for a non existent subscription"), t.reply(481, "Subscription does not exist"))) : n !== mt.ACK && t.reply(481);
16435
+ a = this._findDialog(t.call_id, t.from_tag, t.to_tag), a ? a.receiveRequest(t) : n === mt.NOTIFY ? (o = this._findSession(t), o ? o.receiveRequest(t) : (qe.debug("received NOTIFY request for a non existent subscription"), t.reply(481, "Subscription does not exist"))) : n !== mt.ACK && t.reply(481);
16439
16436
  else
16440
16437
  switch (n) {
16441
16438
  case mt.INVITE:
@@ -16450,13 +16447,13 @@ var bh = class extends _T {
16450
16447
  } else
16451
16448
  o = new If(this), o.init_incoming(t);
16452
16449
  else
16453
- He.warn("INVITE received but WebRTC is not supported"), t.reply(488);
16450
+ qe.warn("INVITE received but WebRTC is not supported"), t.reply(488);
16454
16451
  break;
16455
16452
  case mt.BYE:
16456
16453
  t.reply(481);
16457
16454
  break;
16458
16455
  case mt.CANCEL:
16459
- o = this._findSession(t), o ? o.receiveRequest(t) : He.debug("received CANCEL request for a non existent session");
16456
+ o = this._findSession(t), o ? o.receiveRequest(t) : qe.debug("received CANCEL request for a non existent session");
16460
16457
  break;
16461
16458
  case mt.ACK:
16462
16459
  break;
@@ -16489,36 +16486,35 @@ var bh = class extends _T {
16489
16486
  return s || (o = t + a + n, s = this._dialogs[o], s || null);
16490
16487
  }
16491
16488
  _loadConfig(t) {
16492
- console.log("in _loadConfig");
16493
16489
  try {
16494
- console.log("config.load"), eu.load(this._configuration, t);
16490
+ eu.load(this._configuration, t);
16495
16491
  } catch (o) {
16496
- throw console.log("throw in _loadConfig", o), o;
16492
+ throw o;
16497
16493
  }
16498
16494
  this._configuration.display_name === 0 && (this._configuration.display_name = "0"), this._configuration.instance_id || (this._configuration.instance_id = aa.newUUID()), this._configuration.jssip_id = aa.createRandomToken(5);
16499
16495
  const n = this._configuration.uri.clone();
16500
16496
  n.user = null, this._configuration.hostport_params = n.toString().replace(/^sip:/i, "");
16501
16497
  try {
16502
- console.log("new transport"), this._transport = new gT(this._configuration.sockets, {
16498
+ this._transport = new gT(this._configuration.sockets, {
16503
16499
  // Recovery options.
16504
16500
  max_interval: this._configuration.connection_recovery_max_interval,
16505
16501
  min_interval: this._configuration.connection_recovery_min_interval
16506
- }), this._transport.onconnecting = yT.bind(this), this._transport.onconnect = AT.bind(this), this._transport.ondisconnect = CT.bind(this), this._transport.ondata = RT.bind(this);
16502
+ }), this._transport.onconnecting = yT.bind(this), this._transport.onconnect = CT.bind(this), this._transport.ondisconnect = AT.bind(this), this._transport.ondata = RT.bind(this);
16507
16503
  } catch (o) {
16508
- throw He.warn(o), new TT.ConfigurationError("sockets", this._configuration.sockets);
16504
+ throw qe.warn(o), new TT.ConfigurationError("sockets", this._configuration.sockets);
16509
16505
  }
16510
16506
  if (delete this._configuration.sockets, this._configuration.authorization_user || (this._configuration.authorization_user = this._configuration.uri.user), !this._configuration.registrar_server) {
16511
16507
  const o = this._configuration.uri.clone();
16512
16508
  o.user = null, o.clearParams(), o.clearHeaders(), this._configuration.registrar_server = o;
16513
16509
  }
16514
- this._configuration.no_answer_timeout *= 1e3, this._configuration.contact_uri ? this._configuration.via_host = this._configuration.contact_uri.host : (console.log("this._configuration.contact_uri 1"), this._configuration.contact_uri = new vT("sip", aa.createRandomToken(8), this._configuration.via_host, null, { transport: "ws" }), console.log("this._configuration.contact_uri 2", this._configuration.contact_uri)), this._contact = {
16510
+ this._configuration.no_answer_timeout *= 1e3, this._configuration.contact_uri ? this._configuration.via_host = this._configuration.contact_uri.host : this._configuration.contact_uri = new vT("sip", aa.createRandomToken(8), this._configuration.via_host, null, { transport: "ws" }), this._contact = {
16515
16511
  pub_gruu: null,
16516
16512
  temp_gruu: null,
16517
16513
  uri: this._configuration.contact_uri,
16518
16514
  toString(o = {}) {
16519
16515
  const s = o.anonymous || null, r = o.outbound || null;
16520
16516
  let d = "<";
16521
- return s ? d += this.temp_gruu || "sip:anonymous@anonymous.invalid;transport=ws" : d += this.pub_gruu || this.uri.toString(), r && (s ? !this.temp_gruu : !this.pub_gruu) && (d += ";ob"), d += ">", console.log("contact", d), d;
16517
+ return s ? d += this.temp_gruu || "sip:anonymous@anonymous.invalid;transport=ws" : d += this.pub_gruu || this.uri.toString(), r && (s ? !this.temp_gruu : !this.pub_gruu) && (d += ";ob"), d += ">", d;
16522
16518
  }
16523
16519
  };
16524
16520
  const a = [
@@ -16538,32 +16534,31 @@ var bh = class extends _T {
16538
16534
  writable: !1,
16539
16535
  configurable: !1
16540
16536
  }));
16541
- He.debug("configuration parameters after validation:"), He.debug("this._contact.toString:", this._contact.toString());
16537
+ qe.debug("configuration parameters after validation:");
16542
16538
  for (const o in this._configuration)
16543
16539
  if (Object.prototype.hasOwnProperty.call(eu.settings, o))
16544
16540
  switch (o) {
16545
16541
  case "uri":
16546
16542
  case "registrar_server":
16547
- He.debug(`- ${o}: ${this._configuration[o]}`);
16543
+ qe.debug(`- ${o}: ${this._configuration[o]}`);
16548
16544
  break;
16549
16545
  case "password":
16550
16546
  case "ha1":
16551
16547
  case "authorization_jwt":
16552
- He.debug(`- ${o}: NOT SHOWN`);
16548
+ qe.debug(`- ${o}: NOT SHOWN`);
16553
16549
  break;
16554
16550
  default:
16555
- He.debug(`- ${o}: ${JSON.stringify(this._configuration[o])}`);
16551
+ qe.debug(`- ${o}: ${JSON.stringify(this._configuration[o])}`);
16556
16552
  }
16557
- console.log("_loadConfig retun");
16558
16553
  }
16559
16554
  };
16560
16555
  function yT(c) {
16561
16556
  this.emit("connecting", c);
16562
16557
  }
16563
- function AT(c) {
16558
+ function CT(c) {
16564
16559
  this._status !== vt.STATUS_USER_CLOSED && (this._status = vt.STATUS_READY, this._error = null, this.emit("connected", c), this._dynConfiguration.register && this._registrator.register());
16565
16560
  }
16566
- function CT(c) {
16561
+ function AT(c) {
16567
16562
  const t = ["nict", "ict", "nist", "ist"];
16568
16563
  for (const n of t)
16569
16564
  for (const a in this._transactions[n])
@@ -16571,7 +16566,6 @@ function CT(c) {
16571
16566
  this.emit("disconnected", c), this._registrator.onTransportClosed(), this._status !== vt.STATUS_USER_CLOSED && (this._status = vt.STATUS_NOT_READY, this._error = vt.NETWORK_ERROR);
16572
16567
  }
16573
16568
  function RT(c) {
16574
- console.log("onTransportData", c);
16575
16569
  const t = c.transport;
16576
16570
  let n = c.message;
16577
16571
  if (n = ET.parseMessage(n, this), !!n && !(this._status === vt.STATUS_USER_CLOSED && n instanceof Zo.IncomingRequest) && ST(n, this, t)) {
@@ -16622,7 +16616,7 @@ function Df(c, t, n) {
16622
16616
  }
16623
16617
  return bT(a);
16624
16618
  }
16625
- var ke = At();
16619
+ var ke = Ct();
16626
16620
  const Ts = /* @__PURE__ */ ze(ke), su = new Ga("Dialog"), Fs = {
16627
16621
  // Dialog states.
16628
16622
  STATUS_EARLY: 1,
@@ -17072,17 +17066,17 @@ class $a extends ft.EventEmitter {
17072
17066
  if (t = this._ua.normalizeTarget(t), this.room_id = t.user, this.target = t, !t)
17073
17067
  throw new TypeError(`Invalid target: ${s}`);
17074
17068
  this._sessionTimers.enabled && ke.isDecimal(a.sessionTimersExpires) && (a.sessionTimersExpires >= L.MIN_SESSION_EXPIRES ? this._sessionTimers.defaultExpires = a.sessionTimersExpires : this._sessionTimers.defaultExpires = L.SESSION_EXPIRES);
17075
- for (const C in r)
17076
- Object.prototype.hasOwnProperty.call(r, C) && this.on(C, r[C]);
17069
+ for (const A in r)
17070
+ Object.prototype.hasOwnProperty.call(r, A) && this.on(A, r[A]);
17077
17071
  this._from_tag = ke.newTag();
17078
- const y = a.anonymous || !1, A = { from_tag: this._from_tag };
17072
+ const y = a.anonymous || !1, C = { from_tag: this._from_tag };
17079
17073
  this._contact = this._ua.contact.toString({
17080
17074
  anonymous: y,
17081
17075
  outbound: !0
17082
- }), y ? (A.from_display_name = "Anonymous", A.from_uri = new In("sip", "anonymous", "anonymous.invalid"), d.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`), d.push("Privacy: id")) : a.fromUserName && (A.from_uri = new In("sip", a.fromUserName, this._ua.configuration.uri.host), d.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`)), a.fromDisplayName && (A.from_display_name = a.fromDisplayName), d.push(`Contact: ${this._contact}`), d.push("Content-Type: application/json"), this._sessionTimers.enabled && d.push(`Session-Expires: ${this._sessionTimers.defaultExpires}${this._ua.configuration.session_timers_force_refresher ? ";refresher=uac" : ""}`), this._request = new yt.InitialOutgoingInviteRequest(
17076
+ }), y ? (C.from_display_name = "Anonymous", C.from_uri = new In("sip", "anonymous", "anonymous.invalid"), d.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`), d.push("Privacy: id")) : a.fromUserName && (C.from_uri = new In("sip", a.fromUserName, this._ua.configuration.uri.host), d.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`)), a.fromDisplayName && (C.from_display_name = a.fromDisplayName), d.push(`Contact: ${this._contact}`), d.push("Content-Type: application/json"), this._sessionTimers.enabled && d.push(`Session-Expires: ${this._sessionTimers.defaultExpires}${this._ua.configuration.session_timers_force_refresher ? ";refresher=uac" : ""}`), this._request = new yt.InitialOutgoingInviteRequest(
17083
17077
  t,
17084
17078
  this._ua,
17085
- A,
17079
+ C,
17086
17080
  d
17087
17081
  ), this._id = this._request.call_id + this._from_tag, this._createRTCConnection(g, T), this._direction = "outgoing", this._local_identity = this._request.from, this._remote_identity = this._request.to, o && o(this), this._newJanusSession("local", this._request), this._sendInitialRequest(h, E, _);
17088
17082
  }
@@ -17168,7 +17162,7 @@ class $a extends ft.EventEmitter {
17168
17162
  answer(t = {}) {
17169
17163
  z.debug("answer()");
17170
17164
  const n = this._request, a = ke.cloneArray(t.extraHeaders), o = ke.cloneObject(t.mediaConstraints), s = t.mediaStream || null, r = ke.cloneObject(t.pcConfig, { iceServers: [] }), d = t.rtcConstraints || null, h = t.rtcAnswerConstraints || null, _ = ke.cloneObject(t.rtcOfferConstraints);
17171
- let g, T = !1, E = !1, y = !1, A = !1;
17165
+ let g, T = !1, E = !1, y = !1, C = !1;
17172
17166
  if (this._rtcAnswerConstraints = h, this._rtcOfferConstraints = t.rtcOfferConstraints || null, this._data = t.data || this._data, this._direction !== "incoming")
17173
17167
  throw new qs.NotSupportedError('"answer" not supported for outgoing RTCSession');
17174
17168
  if (this._status !== te.STATUS_WAITING_FOR_ANSWER)
@@ -17178,10 +17172,10 @@ class $a extends ft.EventEmitter {
17178
17172
  return;
17179
17173
  }
17180
17174
  clearTimeout(this._timers.userNoAnswerTimer), a.unshift(`Contact: ${this._contact}`);
17181
- const C = n.parseSDP();
17182
- Array.isArray(C.media) || (C.media = [C.media]);
17183
- for (const I of C.media)
17184
- I.type === "audio" && (T = !0, (!I.direction || I.direction === "sendrecv") && (y = !0)), I.type === "video" && (E = !0, (!I.direction || I.direction === "sendrecv") && (A = !0));
17175
+ const A = n.parseSDP();
17176
+ Array.isArray(A.media) || (A.media = [A.media]);
17177
+ for (const I of A.media)
17178
+ I.type === "audio" && (T = !0, (!I.direction || I.direction === "sendrecv") && (y = !0)), I.type === "video" && (E = !0, (!I.direction || I.direction === "sendrecv") && (C = !0));
17185
17179
  if (s && o.audio === !1) {
17186
17180
  g = s.getAudioTracks();
17187
17181
  for (const I of g)
@@ -17192,7 +17186,7 @@ class $a extends ft.EventEmitter {
17192
17186
  for (const I of g)
17193
17187
  s.removeTrack(I);
17194
17188
  }
17195
- !s && o.audio === void 0 && (o.audio = y), !s && o.video === void 0 && (o.video = A), !s && !T && !_.offerToReceiveAudio && (o.audio = !1), !s && !E && !_.offerToReceiveVideo && (o.video = !1), this._createRTCConnection(r, d), Promise.resolve().then(() => {
17189
+ !s && o.audio === void 0 && (o.audio = y), !s && o.video === void 0 && (o.video = C), !s && !T && !_.offerToReceiveAudio && (o.audio = !1), !s && !E && !_.offerToReceiveVideo && (o.video = !1), this._createRTCConnection(r, d), Promise.resolve().then(() => {
17196
17190
  if (s)
17197
17191
  return s;
17198
17192
  if (o.audio || o.video)
@@ -18318,8 +18312,8 @@ class $a extends ft.EventEmitter {
18318
18312
  audio: !0,
18319
18313
  video: !0
18320
18314
  };
18321
- await new Promise((A) => {
18322
- setTimeout(A, 100);
18315
+ await new Promise((C) => {
18316
+ setTimeout(C, 100);
18323
18317
  }), a = await t.rtcpPeer.createAnswer(y), this._sendMemberStartMessage(t, a);
18324
18318
  }
18325
18319
  const _ = h.streams[0].getAudioTracks(), g = h.streams[0].getVideoTracks(), T = [];
@@ -20135,16 +20129,17 @@ function Pf(c, t) {
20135
20129
  return a.connect(s), s.connect(o), s.gain.value = t, o.stream;
20136
20130
  }
20137
20131
  function YT(c, t, n, a) {
20138
- console.log("LOG syncStream 1");
20132
+ if (wh())
20133
+ return;
20139
20134
  const o = document.createElement("audio");
20140
- console.log("LOG syncStream 2"), o.id = t._id, o.className = "audioTag", o.srcObject = c, console.log("LOG syncStream 2"), wh() || (console.log("LOG syncStream NOT MOBILE 1"), o.setSinkId(n), console.log("LOG syncStream NOT MOBILE 2"), o.volume = a), console.log("LOG syncStream 4"), o.play(), console.log("LOG syncStream 5"), t.audioTag = o, console.log("LOG syncStream 6");
20135
+ o.id = t._id, o.className = "audioTag", o.srcObject = c, o.setSinkId(n), o.volume = a, o.play(), t.audioTag = o;
20141
20136
  }
20142
20137
  function JT(c) {
20143
20138
  if (c && typeof c.log == "function" && typeof c.warn == "function" && typeof c.error == "function")
20144
20139
  return !0;
20145
20140
  }
20146
20141
  function wh() {
20147
- return console.log("LOG isMobile navigator.userAgent", navigator.userAgent), /Mobi|Android|iPhone/i.test(navigator.userAgent);
20142
+ return /Mobi|react-native|Android|iPhone/i.test(navigator.userAgent);
20148
20143
  }
20149
20144
  const zT = ut, XT = Zt(), Dt = new zT("WebSocketInterface");
20150
20145
  var QT = class {
@@ -20216,7 +20211,7 @@ var QT = class {
20216
20211
  Dt.warn(`WebSocket ${this._url} error: `, t);
20217
20212
  }
20218
20213
  };
20219
- const bu = Ha, ZT = De, ev = As, tv = At(), sv = bh, nv = ys(), rv = $u(), iv = Zt(), lv = QT, av = gr("JsSIP");
20214
+ const bu = Ha, ZT = De, ev = Cs, tv = Ct(), sv = bh, nv = ys(), rv = $u(), iv = Zt(), lv = QT, av = gr("JsSIP");
20220
20215
  av("version %s", bu.version);
20221
20216
  var ov = {
20222
20217
  C: ZT,
@@ -20251,8 +20246,8 @@ function cv(c) {
20251
20246
  formatted: o
20252
20247
  };
20253
20248
  }
20254
- var Ct = {};
20255
- Ct.forEach = async (c, t, n) => {
20249
+ var At = {};
20250
+ At.forEach = async (c, t, n) => {
20256
20251
  const a = [];
20257
20252
  for (let o = 0; o < c.length; o++)
20258
20253
  if (o in c) {
@@ -20261,23 +20256,23 @@ Ct.forEach = async (c, t, n) => {
20261
20256
  }
20262
20257
  await Promise.all(a);
20263
20258
  };
20264
- Ct.forEachSeries = async (c, t, n) => {
20259
+ At.forEachSeries = async (c, t, n) => {
20265
20260
  for (let a = 0; a < c.length; a++)
20266
20261
  a in c && await t.call(n || globalThis, await c[a], a, c);
20267
20262
  };
20268
- Ct.map = async (c, t, n) => {
20263
+ At.map = async (c, t, n) => {
20269
20264
  const a = [];
20270
20265
  for (let o = 0; o < c.length; o++)
20271
20266
  o in c && (a[o] = Promise.resolve(c[o]).then((s) => t.call(n || globalThis, s, o, c)));
20272
20267
  return Promise.all(a);
20273
20268
  };
20274
- Ct.mapSeries = async (c, t, n) => {
20269
+ At.mapSeries = async (c, t, n) => {
20275
20270
  const a = [];
20276
20271
  for (let o = 0; o < c.length; o++)
20277
20272
  o in c && (a[o] = await t.call(n || globalThis, await c[o], o, c));
20278
20273
  return a;
20279
20274
  };
20280
- Ct.find = (c, t, n) => new Promise((a, o) => {
20275
+ At.find = (c, t, n) => new Promise((a, o) => {
20281
20276
  if (c.length === 0)
20282
20277
  return a();
20283
20278
  let s = 1;
@@ -20288,12 +20283,12 @@ Ct.find = (c, t, n) => new Promise((a, o) => {
20288
20283
  Promise.resolve(c[r]).then((h) => t.call(n || globalThis, h, r, c)).then(d).catch(o);
20289
20284
  }
20290
20285
  });
20291
- Ct.findSeries = async (c, t, n) => {
20286
+ At.findSeries = async (c, t, n) => {
20292
20287
  for (let a = 0; a < c.length; a++)
20293
20288
  if (await t.call(n || globalThis, await c[a], a, c))
20294
20289
  return c[a];
20295
20290
  };
20296
- Ct.findIndex = (c, t, n) => new Promise((a, o) => {
20291
+ At.findIndex = (c, t, n) => new Promise((a, o) => {
20297
20292
  if (c.length === 0)
20298
20293
  return a(-1);
20299
20294
  let s = 1;
@@ -20304,12 +20299,12 @@ Ct.findIndex = (c, t, n) => new Promise((a, o) => {
20304
20299
  Promise.resolve(c[r]).then((h) => t.call(n || globalThis, h, r, c)).then(d).catch(o);
20305
20300
  }
20306
20301
  });
20307
- Ct.findIndexSeries = async (c, t, n) => {
20302
+ At.findIndexSeries = async (c, t, n) => {
20308
20303
  for (let a = 0; a < c.length; a++)
20309
20304
  if (await t.call(n || globalThis, await c[a], a, c))
20310
20305
  return a;
20311
20306
  };
20312
- Ct.some = (c, t, n) => new Promise((a, o) => {
20307
+ At.some = (c, t, n) => new Promise((a, o) => {
20313
20308
  if (c.length === 0)
20314
20309
  return a(!1);
20315
20310
  let s = 1;
@@ -20324,13 +20319,13 @@ Ct.some = (c, t, n) => new Promise((a, o) => {
20324
20319
  Promise.resolve(c[r]).then((h) => t.call(n || globalThis, h, r, c)).then(d).catch(o);
20325
20320
  }
20326
20321
  });
20327
- Ct.someSeries = async (c, t, n) => {
20322
+ At.someSeries = async (c, t, n) => {
20328
20323
  for (let a = 0; a < c.length; a++)
20329
20324
  if (a in c && await t.call(n || globalThis, await c[a], a, c))
20330
20325
  return !0;
20331
20326
  return !1;
20332
20327
  };
20333
- Ct.every = (c, t, n) => new Promise((a, o) => {
20328
+ At.every = (c, t, n) => new Promise((a, o) => {
20334
20329
  if (c.length === 0)
20335
20330
  return a(!0);
20336
20331
  let s = 1;
@@ -20345,13 +20340,13 @@ Ct.every = (c, t, n) => new Promise((a, o) => {
20345
20340
  Promise.resolve(c[r]).then((h) => t.call(n || globalThis, h, r, c)).then(d).catch(o);
20346
20341
  }
20347
20342
  });
20348
- Ct.everySeries = async (c, t, n) => {
20343
+ At.everySeries = async (c, t, n) => {
20349
20344
  for (let a = 0; a < c.length; a++)
20350
20345
  if (a in c && !await t.call(n || globalThis, await c[a], a, c))
20351
20346
  return !1;
20352
20347
  return !0;
20353
20348
  };
20354
- Ct.filter = (c, t, n) => new Promise(async (a, o) => {
20349
+ At.filter = (c, t, n) => new Promise(async (a, o) => {
20355
20350
  const s = [];
20356
20351
  for (let d = 0; d < c.length; d++)
20357
20352
  d in c && (s[d] = Promise.resolve(c[d]).then((h) => t.call(n || globalThis, h, d, c)).catch(o));
@@ -20360,13 +20355,13 @@ Ct.filter = (c, t, n) => new Promise(async (a, o) => {
20360
20355
  await s[d] && r.push(await c[d]);
20361
20356
  a(r);
20362
20357
  });
20363
- Ct.filterSeries = async (c, t, n) => {
20358
+ At.filterSeries = async (c, t, n) => {
20364
20359
  const a = [];
20365
20360
  for (let o = 0; o < c.length; o++)
20366
20361
  o in c && await t.call(n || globalThis, await c[o], o, c) && a.push(await c[o]);
20367
20362
  return a;
20368
20363
  };
20369
- Ct.reduce = async (c, t, n) => {
20364
+ At.reduce = async (c, t, n) => {
20370
20365
  if (c.length === 0 && n === void 0)
20371
20366
  throw TypeError("Reduce of empty array with no initial value");
20372
20367
  let a, o;
@@ -20376,7 +20371,7 @@ Ct.reduce = async (c, t, n) => {
20376
20371
  };
20377
20372
  var Oh = {};
20378
20373
  (function(c) {
20379
- const t = Ct;
20374
+ const t = At;
20380
20375
  Object.keys(t).forEach((n) => {
20381
20376
  const a = n.charAt(0).toUpperCase() + n.slice(1);
20382
20377
  c[`async${a}`] = async function(...o) {
@@ -20384,9 +20379,9 @@ var Oh = {};
20384
20379
  };
20385
20380
  });
20386
20381
  })(Oh);
20387
- const fv = Ct, hv = Oh;
20382
+ const fv = At, hv = Oh;
20388
20383
  var dv = Object.assign(fv, { instanceMethods: hv });
20389
- const Cn = new AudioContext(), Xt = {
20384
+ const An = new AudioContext(), Xt = {
20390
20385
  NEW_CALL: "new_call",
20391
20386
  CALL_CONFIRMED: "confirmed",
20392
20387
  CALL_FAILED: "failed",
@@ -20426,7 +20421,7 @@ var _v = { exports: {} };
20426
20421
  return { type: "throw", arg: re };
20427
20422
  }
20428
20423
  }
20429
- var A = "suspendedStart", C = "suspendedYield", I = "executing", H = "completed", $ = {};
20424
+ var C = "suspendedStart", A = "suspendedYield", I = "executing", H = "completed", $ = {};
20430
20425
  function oe() {
20431
20426
  }
20432
20427
  function N() {
@@ -20467,26 +20462,26 @@ var _v = { exports: {} };
20467
20462
  return { __await: ee };
20468
20463
  };
20469
20464
  function V(ee, W) {
20470
- function G(be, xe, Ce, le) {
20465
+ function G(be, xe, Ae, le) {
20471
20466
  var ye = y(ee[be], ee, xe);
20472
20467
  if (ye.type === "throw")
20473
20468
  le(ye.arg);
20474
20469
  else {
20475
20470
  var nt = ye.arg, at = nt.value;
20476
20471
  return at && typeof at == "object" && o.call(at, "__await") ? W.resolve(at.__await).then(function(Ee) {
20477
- G("next", Ee, Ce, le);
20472
+ G("next", Ee, Ae, le);
20478
20473
  }, function(Ee) {
20479
- G("throw", Ee, Ce, le);
20474
+ G("throw", Ee, Ae, le);
20480
20475
  }) : W.resolve(at).then(function(Ee) {
20481
- nt.value = Ee, Ce(nt);
20476
+ nt.value = Ee, Ae(nt);
20482
20477
  }, function(Ee) {
20483
- return G("throw", Ee, Ce, le);
20478
+ return G("throw", Ee, Ae, le);
20484
20479
  });
20485
20480
  }
20486
20481
  }
20487
20482
  var re;
20488
20483
  function ge(be, xe) {
20489
- function Ce() {
20484
+ function Ae() {
20490
20485
  return new W(function(le, ye) {
20491
20486
  G(be, xe, le, ye);
20492
20487
  });
@@ -20504,11 +20499,11 @@ var _v = { exports: {} };
20504
20499
  // async functions in terms of async generators, it is especially
20505
20500
  // important to get this right, even though it requires care.
20506
20501
  re ? re.then(
20507
- Ce,
20502
+ Ae,
20508
20503
  // Avoid propagating failures to Promises returned by later
20509
20504
  // invocations of the iterator.
20510
- Ce
20511
- ) : Ce();
20505
+ Ae
20506
+ ) : Ae();
20512
20507
  }
20513
20508
  s(this, "_invoke", { value: ge });
20514
20509
  }
@@ -20525,7 +20520,7 @@ var _v = { exports: {} };
20525
20520
  });
20526
20521
  };
20527
20522
  function J(ee, W, G) {
20528
- var re = A;
20523
+ var re = C;
20529
20524
  return function(be, xe) {
20530
20525
  if (re === I)
20531
20526
  throw new Error("Generator is already running");
@@ -20535,9 +20530,9 @@ var _v = { exports: {} };
20535
20530
  return st();
20536
20531
  }
20537
20532
  for (G.method = be, G.arg = xe; ; ) {
20538
- var Ce = G.delegate;
20539
- if (Ce) {
20540
- var le = F(Ce, G);
20533
+ var Ae = G.delegate;
20534
+ if (Ae) {
20535
+ var le = F(Ae, G);
20541
20536
  if (le) {
20542
20537
  if (le === $)
20543
20538
  continue;
@@ -20547,7 +20542,7 @@ var _v = { exports: {} };
20547
20542
  if (G.method === "next")
20548
20543
  G.sent = G._sent = G.arg;
20549
20544
  else if (G.method === "throw") {
20550
- if (re === A)
20545
+ if (re === C)
20551
20546
  throw re = H, G.arg;
20552
20547
  G.dispatchException(G.arg);
20553
20548
  } else
@@ -20555,7 +20550,7 @@ var _v = { exports: {} };
20555
20550
  re = I;
20556
20551
  var ye = y(ee, W, G);
20557
20552
  if (ye.type === "normal") {
20558
- if (re = G.done ? H : C, ye.arg === $)
20553
+ if (re = G.done ? H : A, ye.arg === $)
20559
20554
  continue;
20560
20555
  return {
20561
20556
  value: ye.arg,
@@ -20662,8 +20657,8 @@ var _v = { exports: {} };
20662
20657
  if (ge.tryLoc === "root")
20663
20658
  return G("end");
20664
20659
  if (ge.tryLoc <= this.prev) {
20665
- var xe = o.call(ge, "catchLoc"), Ce = o.call(ge, "finallyLoc");
20666
- if (xe && Ce) {
20660
+ var xe = o.call(ge, "catchLoc"), Ae = o.call(ge, "finallyLoc");
20661
+ if (xe && Ae) {
20667
20662
  if (this.prev < ge.catchLoc)
20668
20663
  return G(ge.catchLoc, !0);
20669
20664
  if (this.prev < ge.finallyLoc)
@@ -20671,7 +20666,7 @@ var _v = { exports: {} };
20671
20666
  } else if (xe) {
20672
20667
  if (this.prev < ge.catchLoc)
20673
20668
  return G(ge.catchLoc, !0);
20674
- } else if (Ce) {
20669
+ } else if (Ae) {
20675
20670
  if (this.prev < ge.finallyLoc)
20676
20671
  return G(ge.finallyLoc);
20677
20672
  } else
@@ -20751,44 +20746,44 @@ var Dh = { exports: {} };
20751
20746
  "warn",
20752
20747
  "error"
20753
20748
  ];
20754
- function s(C, I) {
20755
- var H = C[I];
20749
+ function s(A, I) {
20750
+ var H = A[I];
20756
20751
  if (typeof H.bind == "function")
20757
- return H.bind(C);
20752
+ return H.bind(A);
20758
20753
  try {
20759
- return Function.prototype.bind.call(H, C);
20754
+ return Function.prototype.bind.call(H, A);
20760
20755
  } catch {
20761
20756
  return function() {
20762
- return Function.prototype.apply.apply(H, [C, arguments]);
20757
+ return Function.prototype.apply.apply(H, [A, arguments]);
20763
20758
  };
20764
20759
  }
20765
20760
  }
20766
20761
  function r() {
20767
20762
  console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
20768
20763
  }
20769
- function d(C) {
20770
- return C === "debug" && (C = "log"), typeof console === n ? !1 : C === "trace" && a ? r : console[C] !== void 0 ? s(console, C) : console.log !== void 0 ? s(console, "log") : t;
20764
+ function d(A) {
20765
+ return A === "debug" && (A = "log"), typeof console === n ? !1 : A === "trace" && a ? r : console[A] !== void 0 ? s(console, A) : console.log !== void 0 ? s(console, "log") : t;
20771
20766
  }
20772
- function h(C, I) {
20767
+ function h(A, I) {
20773
20768
  for (var H = 0; H < o.length; H++) {
20774
20769
  var $ = o[H];
20775
- this[$] = H < C ? t : this.methodFactory($, C, I);
20770
+ this[$] = H < A ? t : this.methodFactory($, A, I);
20776
20771
  }
20777
20772
  this.log = this.debug;
20778
20773
  }
20779
- function _(C, I, H) {
20774
+ function _(A, I, H) {
20780
20775
  return function() {
20781
- typeof console !== n && (h.call(this, I, H), this[C].apply(this, arguments));
20776
+ typeof console !== n && (h.call(this, I, H), this[A].apply(this, arguments));
20782
20777
  };
20783
20778
  }
20784
- function g(C, I, H) {
20785
- return d(C) || _.apply(this, arguments);
20779
+ function g(A, I, H) {
20780
+ return d(A) || _.apply(this, arguments);
20786
20781
  }
20787
- function T(C, I, H) {
20782
+ function T(A, I, H) {
20788
20783
  var $ = this, oe;
20789
20784
  I = I ?? "WARN";
20790
20785
  var N = "loglevel";
20791
- typeof C == "string" ? N += ":" + C : typeof C == "symbol" && (N = void 0);
20786
+ typeof A == "string" ? N += ":" + A : typeof A == "symbol" && (N = void 0);
20792
20787
  function j(D) {
20793
20788
  var B = (o[D] || "silent").toUpperCase();
20794
20789
  if (!(typeof window === n || !N)) {
@@ -20834,7 +20829,7 @@ var Dh = { exports: {} };
20834
20829
  }
20835
20830
  }
20836
20831
  }
20837
- $.name = C, $.levels = {
20832
+ $.name = A, $.levels = {
20838
20833
  TRACE: 0,
20839
20834
  DEBUG: 1,
20840
20835
  INFO: 2,
@@ -20845,7 +20840,7 @@ var Dh = { exports: {} };
20845
20840
  return oe;
20846
20841
  }, $.setLevel = function(D, B) {
20847
20842
  if (typeof D == "string" && $.levels[D.toUpperCase()] !== void 0 && (D = $.levels[D.toUpperCase()]), typeof D == "number" && D >= 0 && D <= $.levels.SILENT) {
20848
- if (oe = D, B !== !1 && j(D), h.call($, D, C), typeof console === n && D < $.levels.SILENT)
20843
+ if (oe = D, B !== !1 && j(D), h.call($, D, A), typeof console === n && D < $.levels.SILENT)
20849
20844
  return "No console available for logging";
20850
20845
  } else
20851
20846
  throw "log.setLevel() called with invalid level: " + D;
@@ -20872,9 +20867,9 @@ var Dh = { exports: {} };
20872
20867
  E.methodFactory
20873
20868
  )), H;
20874
20869
  };
20875
- var A = typeof window !== n ? window.log : void 0;
20870
+ var C = typeof window !== n ? window.log : void 0;
20876
20871
  return E.noConflict = function() {
20877
- return typeof window !== n && window.log === E && (window.log = A), E;
20872
+ return typeof window !== n && window.log === E && (window.log = C), E;
20878
20873
  }, E.getLoggers = function() {
20879
20874
  return y;
20880
20875
  }, E.default = E, E;
@@ -20940,7 +20935,7 @@ const Qi = /* @__PURE__ */ ze(Ev), Sv = () => "WebRTCMetrics", yv = () => "5.0.3
20940
20935
  DISCONNECTED: "disconnected",
20941
20936
  FAILED: "failed",
20942
20937
  CLOSED: "closed"
20943
- }, Av = () => ({
20938
+ }, Cv = () => ({
20944
20939
  ...{
20945
20940
  delta_time_to_measure_probes_ms: 0,
20946
20941
  // Total time to measure all probes
@@ -21043,7 +21038,7 @@ const Qi = /* @__PURE__ */ ze(Ev), Sv = () => "WebRTCMetrics", yv = () => "5.0.3
21043
21038
  timestamp_out: null,
21044
21039
  ssrc: "",
21045
21040
  direction: $e.OUTBOUND
21046
- }, Cv = (c) => {
21041
+ }, Av = (c) => {
21047
21042
  const t = {
21048
21043
  pname: "",
21049
21044
  call_id: "",
@@ -21491,22 +21486,22 @@ class kv {
21491
21486
  x.AUDIO,
21492
21487
  "total_packets_lost_in",
21493
21488
  d
21494
- ), A = gt(
21489
+ ), C = gt(
21495
21490
  this._reports,
21496
21491
  x.AUDIO,
21497
21492
  "total_packets_in",
21498
21493
  d
21499
- ), C = {
21494
+ ), A = {
21500
21495
  lost: y,
21501
21496
  avg: Math.round(
21502
- (y / (y + A) * 100 || 0) * 100
21497
+ (y / (y + C) * 100 || 0) * 100
21503
21498
  ) / 100,
21504
21499
  _unit: {
21505
21500
  avg: "percent",
21506
21501
  lost: "number"
21507
21502
  }
21508
21503
  };
21509
- s[d].jitter = _, s[d].mos = E, s[d].traffic = T, s[d].bitrate = g, s[d].loss = C;
21504
+ s[d].jitter = _, s[d].mos = E, s[d].traffic = T, s[d].bitrate = g, s[d].loss = A;
21510
21505
  } else {
21511
21506
  const _ = {
21512
21507
  avg: Xe(
@@ -21626,15 +21621,15 @@ class kv {
21626
21621
  x.AUDIO,
21627
21622
  "total_packets_lost_out",
21628
21623
  d
21629
- ), A = gt(
21624
+ ), C = gt(
21630
21625
  this._reports,
21631
21626
  x.AUDIO,
21632
21627
  "total_packets_out",
21633
21628
  d
21634
- ), C = {
21629
+ ), A = {
21635
21630
  lost: y,
21636
21631
  avg: Math.round(
21637
- (y / (y + A) * 100 || 0) * 100
21632
+ (y / (y + C) * 100 || 0) * 100
21638
21633
  ) / 100,
21639
21634
  _unit: {
21640
21635
  avg: "percent",
@@ -21670,7 +21665,7 @@ class kv {
21670
21665
  volatility: "percent"
21671
21666
  }
21672
21667
  };
21673
- s[d].jitter = _, s[d].rtt = E, s[d].traffic = T, s[d].bitrate = g, s[d].loss = C, s[d].mos = I;
21668
+ s[d].jitter = _, s[d].rtt = E, s[d].traffic = T, s[d].bitrate = g, s[d].loss = A, s[d].mos = I;
21674
21669
  }
21675
21670
  }), Object.keys(r[x.VIDEO]).forEach((d) => {
21676
21671
  const h = r[x.VIDEO][d];
@@ -21784,7 +21779,7 @@ class kv {
21784
21779
  x.VIDEO,
21785
21780
  "total_packets_in",
21786
21781
  d
21787
- ), A = {
21782
+ ), C = {
21788
21783
  lost: E,
21789
21784
  avg: Math.round(
21790
21785
  (E / (E + y) * 100 || 0) * 100
@@ -21794,7 +21789,7 @@ class kv {
21794
21789
  lost: "number"
21795
21790
  }
21796
21791
  };
21797
- s[d].jitter = _, s[d].traffic = T, s[d].bitrate = g, s[d].loss = A;
21792
+ s[d].jitter = _, s[d].traffic = T, s[d].bitrate = g, s[d].loss = C;
21798
21793
  } else {
21799
21794
  const _ = {
21800
21795
  avg: Xe(
@@ -21913,22 +21908,22 @@ class kv {
21913
21908
  x.VIDEO,
21914
21909
  "total_packets_lost_out",
21915
21910
  d
21916
- ), A = gt(
21911
+ ), C = gt(
21917
21912
  this._reports,
21918
21913
  x.VIDEO,
21919
21914
  "total_packets_out",
21920
21915
  d
21921
- ), C = {
21916
+ ), A = {
21922
21917
  lost: y,
21923
21918
  avg: Math.round(
21924
- (y / (y + A) * 100 || 0) * 100
21919
+ (y / (y + C) * 100 || 0) * 100
21925
21920
  ) / 100,
21926
21921
  _unit: {
21927
21922
  avg: "percent",
21928
21923
  lost: "number"
21929
21924
  }
21930
21925
  };
21931
- s[d].jitter = _, s[d].rtt = E, s[d].traffic = T, s[d].bitrate = g, s[d].loss = C;
21926
+ s[d].jitter = _, s[d].rtt = E, s[d].traffic = T, s[d].bitrate = g, s[d].loss = A;
21932
21927
  }
21933
21928
  })), {
21934
21929
  version: Nv,
@@ -22175,7 +22170,7 @@ const js = "extractor ", Lf = (c, t, n, a) => {
22175
22170
  const o = Number(c[q.PACKETS_RECEIVED]) || 0 - (a ? a[t].total_packets_in : 0), s = Number(c[q.PACKETS_LOST]) || 0 - (a ? a[t].total_packets_lost_in : 0), r = s - n[t].total_packets_lost_in, d = o - n[t].total_packets_in, h = o !== n[t].total_packets_in ? r * 100 / (r + d) : 0, _ = Number(c[q.BYTES_RECEIVED]) / 1024 - (a ? a[t].total_KBytes_in : 0), g = _ - n[t].total_KBytes_in, T = c[q.TIMESTAMP] || Date.now(), E = a ? a.timestamp : null;
22176
22171
  let y = n.timestamp;
22177
22172
  !y && E && (y = E);
22178
- const A = y ? T - y : 0, C = A > 0 ? g * 8e-3 * 1024 / A * 1e3 : 0;
22173
+ const C = y ? T - y : 0, A = C > 0 ? g * 8e-3 * 1024 / C * 1e3 : 0;
22179
22174
  return {
22180
22175
  percentPacketsLost: h,
22181
22176
  packetsReceived: o,
@@ -22184,7 +22179,7 @@ const js = "extractor ", Lf = (c, t, n, a) => {
22184
22179
  deltaPacketsLost: r,
22185
22180
  KBytesReceived: _,
22186
22181
  deltaKBytesReceived: g,
22187
- kbsReceived: C
22182
+ kbsReceived: A
22188
22183
  };
22189
22184
  }, Hv = (c) => c[q.CANDIDATE_TYPE] !== "relay" ? "" : c[q.RELAY_PROTOCOL] || "", Fv = (c) => {
22190
22185
  if (!Object.prototype.hasOwnProperty.call(c, q.NETWORK_TYPE))
@@ -22472,7 +22467,7 @@ const js = "extractor ", Lf = (c, t, n, a) => {
22472
22467
  x.VIDEO,
22473
22468
  d,
22474
22469
  h
22475
- ), T = da(c, x.VIDEO, d), E = c[q.DECODER_IMPLEMENTATION] || null, y = c[q.CODEC_ID] || null, A = jf(c), C = qv(
22470
+ ), T = da(c, x.VIDEO, d), E = c[q.DECODER_IMPLEMENTATION] || null, y = c[q.CODEC_ID] || null, C = jf(c), A = qv(
22476
22471
  c,
22477
22472
  d,
22478
22473
  h
@@ -22551,27 +22546,27 @@ const js = "extractor ", Lf = (c, t, n, a) => {
22551
22546
  {
22552
22547
  ssrc: r,
22553
22548
  type: ne.VIDEO,
22554
- value: { total_nack_sent_in: C.nackCount }
22549
+ value: { total_nack_sent_in: A.nackCount }
22555
22550
  },
22556
22551
  {
22557
22552
  ssrc: r,
22558
22553
  type: ne.VIDEO,
22559
- value: { delta_nack_sent_in: C.deltaNackCount }
22554
+ value: { delta_nack_sent_in: A.deltaNackCount }
22560
22555
  },
22561
22556
  {
22562
22557
  ssrc: r,
22563
22558
  type: ne.VIDEO,
22564
- value: { total_pli_sent_in: C.pliCount }
22559
+ value: { total_pli_sent_in: A.pliCount }
22565
22560
  },
22566
22561
  {
22567
22562
  ssrc: r,
22568
22563
  type: ne.VIDEO,
22569
- value: { delta_pli_sent_in: C.deltaPliCount }
22564
+ value: { delta_pli_sent_in: A.deltaPliCount }
22570
22565
  },
22571
22566
  {
22572
22567
  ssrc: r,
22573
22568
  type: ne.VIDEO,
22574
- value: { size_in: A }
22569
+ value: { size_in: C }
22575
22570
  }
22576
22571
  ];
22577
22572
  }
@@ -22622,11 +22617,11 @@ const js = "extractor ", Lf = (c, t, n, a) => {
22622
22617
  ];
22623
22618
  }
22624
22619
  if (c[q.MEDIA_TYPE] === x.VIDEO) {
22625
- const _ = c[q.ENCODER_IMPLEMENTATION] || null, g = c[q.CODEC_ID] || null, T = $v(c, d), E = jf(c), y = jv(c), A = Vv(
22620
+ const _ = c[q.ENCODER_IMPLEMENTATION] || null, g = c[q.CODEC_ID] || null, T = $v(c, d), E = jf(c), y = jv(c), C = Vv(
22626
22621
  c,
22627
22622
  d,
22628
22623
  h
22629
- ), C = $f(c, x.VIDEO, d, h);
22624
+ ), A = $f(c, x.VIDEO, d, h);
22630
22625
  return [
22631
22626
  {
22632
22627
  ssrc: r,
@@ -22636,27 +22631,27 @@ const js = "extractor ", Lf = (c, t, n, a) => {
22636
22631
  {
22637
22632
  ssrc: r,
22638
22633
  type: ne.VIDEO,
22639
- value: { total_packets_out: C.packetsSent }
22634
+ value: { total_packets_out: A.packetsSent }
22640
22635
  },
22641
22636
  {
22642
22637
  ssrc: r,
22643
22638
  type: ne.VIDEO,
22644
- value: { delta_packets_out: C.deltaPacketsSent }
22639
+ value: { delta_packets_out: A.deltaPacketsSent }
22645
22640
  },
22646
22641
  {
22647
22642
  ssrc: r,
22648
22643
  type: ne.VIDEO,
22649
- value: { total_KBytes_out: C.KBytesSent }
22644
+ value: { total_KBytes_out: A.KBytesSent }
22650
22645
  },
22651
22646
  {
22652
22647
  ssrc: r,
22653
22648
  type: ne.VIDEO,
22654
- value: { delta_KBytes_out: C.deltaKBytesSent }
22649
+ value: { delta_KBytes_out: A.deltaKBytesSent }
22655
22650
  },
22656
22651
  {
22657
22652
  ssrc: r,
22658
22653
  type: ne.VIDEO,
22659
- value: { delta_kbs_out: C.kbsSent }
22654
+ value: { delta_kbs_out: A.kbsSent }
22660
22655
  },
22661
22656
  {
22662
22657
  ssrc: r,
@@ -22681,22 +22676,22 @@ const js = "extractor ", Lf = (c, t, n, a) => {
22681
22676
  {
22682
22677
  ssrc: r,
22683
22678
  type: ne.VIDEO,
22684
- value: { total_nack_received_out: A.nackCount }
22679
+ value: { total_nack_received_out: C.nackCount }
22685
22680
  },
22686
22681
  {
22687
22682
  ssrc: r,
22688
22683
  type: ne.VIDEO,
22689
- value: { delta_nack_received_out: A.deltaNackCount }
22684
+ value: { delta_nack_received_out: C.deltaNackCount }
22690
22685
  },
22691
22686
  {
22692
22687
  ssrc: r,
22693
22688
  type: ne.VIDEO,
22694
- value: { total_pli_received_out: A.pliCount }
22689
+ value: { total_pli_received_out: C.pliCount }
22695
22690
  },
22696
22691
  {
22697
22692
  ssrc: r,
22698
22693
  type: ne.VIDEO,
22699
- value: { delta_pli_received_out: A.deltaPliCount }
22694
+ value: { delta_pli_received_out: C.deltaPliCount }
22700
22695
  },
22701
22696
  {
22702
22697
  ssrc: r,
@@ -22865,23 +22860,23 @@ const js = "extractor ", Lf = (c, t, n, a) => {
22865
22860
  }
22866
22861
  return [];
22867
22862
  }, Ka = (c) => c < 0 ? 1 : c > 100 ? 4.5 : 1 + 0.035 * c + 7 / 1e6 * c * (c - 60) * (100 - c), Jv = (c, t = x.AUDIO, n, a, o) => {
22868
- const s = ct(o, c, $e.INBOUND), r = ct(o, n, $e.INBOUND), d = ct(o, a, $e.INBOUND), h = [], _ = [], g = s[t].percent_packets_lost_in, T = s[t].delta_jitter_ms_in, E = r && r[t].delta_jitter_ms_in || null, y = d && d[t].delta_jitter_ms_in || null, A = c.data.delta_rtt_connectivity_ms, C = n && n.data.delta_rtt_connectivity_ms || null, I = a && a.data.delta_rtt_connectivity_ms || null;
22869
- A && h.push(A), C && h.push(C), I && h.push(I), T && _.push(T), n && E && _.push(E), a && y && _.push(y);
22863
+ const s = ct(o, c, $e.INBOUND), r = ct(o, n, $e.INBOUND), d = ct(o, a, $e.INBOUND), h = [], _ = [], g = s[t].percent_packets_lost_in, T = s[t].delta_jitter_ms_in, E = r && r[t].delta_jitter_ms_in || null, y = d && d[t].delta_jitter_ms_in || null, C = c.data.delta_rtt_connectivity_ms, A = n && n.data.delta_rtt_connectivity_ms || null, I = a && a.data.delta_rtt_connectivity_ms || null;
22864
+ C && h.push(C), A && h.push(A), I && h.push(I), T && _.push(T), n && E && _.push(E), a && y && _.push(y);
22870
22865
  const H = h.length > 0 ? Gs(h) : 100, $ = _.length > 0 ? Gs(_) : 10, oe = 93.2 - g, N = 0.18 * oe * oe - 27.9 * oe + 1126.62, j = (H + $) / 2, Se = j - 177.3 < 0 ? 0 : 1, ve = 0.024 * j + 0.11 * (j - 177.3) * Se, k = N - ve;
22871
22866
  return Ka(k);
22872
22867
  }, zv = (c, t = x.AUDIO, n, a, o) => {
22873
- const s = ct(o, c, $e.OUTBOUND), r = ct(o, n, $e.OUTBOUND), d = ct(o, a, $e.OUTBOUND), h = [], _ = [], g = s[t].percent_packets_lost_out, T = s[t].delta_rtt_ms_out, E = r && r[t].delta_rtt_ms_out || null, y = d && d[t].delta_rtt_ms_out || null, A = s[t].delta_jitter_ms_out, C = r && r[t].delta_jitter_ms_out || null, I = d && d[t].delta_jitter_ms_out || null, H = c.data.delta_rtt_connectivity_ms, $ = n && n.data.delta_rtt_connectivity_ms || null, oe = a && a.data.delta_rtt_connectivity_ms || null;
22874
- T ? h.push(T) : H && h.push(H), E ? h.push(E) : $ && h.push($), y ? h.push(y) : oe && h.push(oe), A && _.push(A), n && C && _.push(C), a && I && _.push(I);
22868
+ const s = ct(o, c, $e.OUTBOUND), r = ct(o, n, $e.OUTBOUND), d = ct(o, a, $e.OUTBOUND), h = [], _ = [], g = s[t].percent_packets_lost_out, T = s[t].delta_rtt_ms_out, E = r && r[t].delta_rtt_ms_out || null, y = d && d[t].delta_rtt_ms_out || null, C = s[t].delta_jitter_ms_out, A = r && r[t].delta_jitter_ms_out || null, I = d && d[t].delta_jitter_ms_out || null, H = c.data.delta_rtt_connectivity_ms, $ = n && n.data.delta_rtt_connectivity_ms || null, oe = a && a.data.delta_rtt_connectivity_ms || null;
22869
+ T ? h.push(T) : H && h.push(H), E ? h.push(E) : $ && h.push($), y ? h.push(y) : oe && h.push(oe), C && _.push(C), n && A && _.push(A), a && I && _.push(I);
22875
22870
  const N = h.length > 0 ? Gs(h) : 100, j = _.length > 0 ? Gs(_) : 10, Se = 93.2 - g, ve = 0.18 * Se * Se - 27.9 * Se + 1126.62, k = (N + j) / 2, D = k - 177.3 < 0 ? 0 : 1, B = 0.024 * k + 0.11 * (k - 177.3) * D, V = ve - B;
22876
22871
  return Ka(V);
22877
22872
  }, Xv = (c, t = x.AUDIO, n, a, o) => {
22878
- const s = ct(o, c, $e.INBOUND), r = ct(o, n, $e.INBOUND), d = ct(o, a, $e.INBOUND), h = [], _ = [], g = s[t].percent_packets_lost_in / 100, T = s[t].delta_jitter_ms_in, E = r && r[t].delta_jitter_ms_in || null, y = d && d[t].delta_jitter_ms_in || null, A = c.data.delta_rtt_connectivity_ms, C = n && n.data.delta_rtt_connectivity_ms || null, I = a && a.data.delta_rtt_connectivity_ms || null;
22879
- A && h.push(A), C && h.push(C), I && h.push(I), T && _.push(T), r && E && _.push(E), d && y && _.push(y);
22873
+ const s = ct(o, c, $e.INBOUND), r = ct(o, n, $e.INBOUND), d = ct(o, a, $e.INBOUND), h = [], _ = [], g = s[t].percent_packets_lost_in / 100, T = s[t].delta_jitter_ms_in, E = r && r[t].delta_jitter_ms_in || null, y = d && d[t].delta_jitter_ms_in || null, C = c.data.delta_rtt_connectivity_ms, A = n && n.data.delta_rtt_connectivity_ms || null, I = a && a.data.delta_rtt_connectivity_ms || null;
22874
+ C && h.push(C), A && h.push(A), I && h.push(I), T && _.push(T), r && E && _.push(E), d && y && _.push(y);
22880
22875
  const H = h.length > 0 ? Gs(h) : 100, $ = _.length > 0 ? Gs(_) : 10, oe = 0, N = 19.8, j = 29.7, Se = 30, ve = (H + $) / 2 + Se, k = ve - 177.3 < 0 ? 0 : 1, D = 0.024 * ve + 0.11 * (ve - 177.3) * k, V = 93.2 - (oe + N * Math.log(1 + j * g) + D);
22881
22876
  return Ka(V);
22882
22877
  }, Qv = (c, t = x.AUDIO, n, a, o) => {
22883
- const s = ct(o, c, $e.OUTBOUND), r = ct(o, n, $e.OUTBOUND), d = ct(o, a, $e.OUTBOUND), h = [], _ = [], g = s[t].percent_packets_lost_out / 100, T = s[t].delta_rtt_ms_out, E = r && r[t].delta_rtt_ms_out || null, y = d && d[t].delta_rtt_ms_out || null, A = s[t].delta_jitter_ms_out, C = r && r[t].delta_jitter_ms_out || null, I = d && d[t].delta_jitter_ms_out || null, H = c.data.delta_rtt_connectivity_ms, $ = n && n.data.delta_rtt_connectivity_ms || null, oe = a && a.data.delta_rtt_connectivity_ms || null;
22884
- T ? h.push(T) : H && h.push(H), E ? h.push(E) : $ && h.push($), y ? h.push(y) : oe && h.push(oe), A && _.push(A), r && C && _.push(C), d && I && _.push(I);
22878
+ const s = ct(o, c, $e.OUTBOUND), r = ct(o, n, $e.OUTBOUND), d = ct(o, a, $e.OUTBOUND), h = [], _ = [], g = s[t].percent_packets_lost_out / 100, T = s[t].delta_rtt_ms_out, E = r && r[t].delta_rtt_ms_out || null, y = d && d[t].delta_rtt_ms_out || null, C = s[t].delta_jitter_ms_out, A = r && r[t].delta_jitter_ms_out || null, I = d && d[t].delta_jitter_ms_out || null, H = c.data.delta_rtt_connectivity_ms, $ = n && n.data.delta_rtt_connectivity_ms || null, oe = a && a.data.delta_rtt_connectivity_ms || null;
22879
+ T ? h.push(T) : H && h.push(H), E ? h.push(E) : $ && h.push($), y ? h.push(y) : oe && h.push(oe), C && _.push(C), r && A && _.push(A), d && I && _.push(I);
22885
22880
  const N = h.length > 0 ? Gs(h) : 100, j = _.length > 0 ? Gs(_) : 10, Se = 0, ve = 19.8, k = 29.7, D = 30, B = (N + j) / 2 + D, V = B - 177.3 < 0 ? 0 : 1, J = 0.024 * B + 0.11 * (B - 177.3) * V, X = 93.2 - (Se + ve * Math.log(1 + k * g) + J);
22886
22881
  return Ka(X);
22887
22882
  };
@@ -22893,7 +22888,7 @@ class Zv {
22893
22888
  }, this._id = Ov(), this._moduleName = this._id, this._probeId = n, this._config = t, this._exporter = new kv(t), this._state = gs.IDLE, this.registerToPCEvents(), Rn(this._moduleName, `new collector created for probe ${this._probeId}`);
22894
22889
  }
22895
22890
  analyze(t, n, a, o) {
22896
- const s = (h, _) => h === x.AUDIO ? _ === zt.INBOUND_RTP ? { ...Nh } : { ...Uh } : _ === zt.INBOUND_RTP ? { ...Ph } : { ...xh }, r = Cv(n);
22891
+ const s = (h, _) => h === x.AUDIO ? _ === zt.INBOUND_RTP ? { ...Nh } : { ...Uh } : _ === zt.INBOUND_RTP ? { ...Ph } : { ...xh }, r = Av(n);
22897
22892
  r.pname = this._config.pname, r.call_id = this._config.cid, r.user_id = this._config.uid, r.count = n ? n.count + 1 : 1;
22898
22893
  let d = null;
22899
22894
  return t.forEach((h) => {
@@ -23253,7 +23248,7 @@ class tE {
23253
23248
  const t = () => {
23254
23249
  this._probes.forEach((s) => s.start());
23255
23250
  }, n = async () => Promise.all(this._probes.map((s) => s.takeReferenceStats())), a = () => this.isIdle ? !1 : !this._config.stopAfter || this._config.stopAfter < 0 ? !0 : Date.now() < this._startedTime + this._config.stopAfter, o = async () => {
23256
- const s = Av(), r = this._probes.filter((d) => d.isRunning);
23251
+ const s = Cv(), r = this._probes.filter((d) => d.isRunning);
23257
23252
  for (const d of r) {
23258
23253
  const h = await d.collectStats();
23259
23254
  h && s.probes.push(h), Pe(Rt, `got probe ${d.id}`), await kf(0);
@@ -23393,8 +23388,8 @@ class lE {
23393
23388
  }
23394
23389
  beginCalculation(t, n) {
23395
23390
  this.clearVolumeInterval(n);
23396
- const a = Cn.createAnalyser(), o = Cn.createMediaStreamSource(t), s = Cn.createScriptProcessor(2048, 1, 1);
23397
- a.smoothingTimeConstant = 0.8, a.fftSize = 1024, o.connect(a), a.connect(s), s.connect(Cn.destination), this.intervals[n] = setInterval(() => {
23391
+ const a = An.createAnalyser(), o = An.createMediaStreamSource(t), s = An.createScriptProcessor(2048, 1, 1);
23392
+ a.smoothingTimeConstant = 0.8, a.fftSize = 1024, o.connect(a), a.connect(s), s.connect(An.destination), this.intervals[n] = setInterval(() => {
23398
23393
  const r = new Uint8Array(a.frequencyBinCount);
23399
23394
  a.getByteFrequencyData(r);
23400
23395
  let d = 0;
@@ -23412,7 +23407,7 @@ const _a = {
23412
23407
  }, aE = 0;
23413
23408
  class oE {
23414
23409
  constructor(t) {
23415
- this.isAutoAnswer = !1, this.muteWhenJoinEnabled = !1, this.isDNDEnabled = !1, this.muted = !1, this.microphoneInputLevelValue = 1, this.speakerVolumeValue = 1, this.activeRooms = {}, this.activeCalls = {}, this.extendedCalls = {}, this.availableMediaDevices = [], this.selectedMediaDevices = {
23410
+ this.isAutoAnswer = !1, this.muteWhenJoinEnabled = !1, this.isDNDEnabled = !1, this.isCallWaitingEnabled = !0, this.muted = !1, this.microphoneInputLevelValue = 1, this.speakerVolumeValue = 1, this.activeRooms = {}, this.activeCalls = {}, this.extendedCalls = {}, this.availableMediaDevices = [], this.selectedMediaDevices = {
23416
23411
  input: "default",
23417
23412
  output: "default"
23418
23413
  }, this.callStatus = {}, this.callTime = {}, this.callMetrics = {}, this.timeIntervals = {}, this.metricConfig = {
@@ -23513,6 +23508,20 @@ class oE {
23513
23508
  get isDND() {
23514
23509
  return this.isDNDEnabled;
23515
23510
  }
23511
+ /**
23512
+ * Gets the current state of the call waiting feature.
23513
+ *
23514
+ * When call waiting is enabled (true), incoming calls will be allowed even when
23515
+ * other calls are active.
23516
+ *
23517
+ * When call waiting is disabled (false) and there are already active calls,
23518
+ * any new incoming calls will be automatically rejected with a "busy" status.
23519
+ *
23520
+ * @returns {boolean} True if call waiting is enabled, false if disabled
23521
+ */
23522
+ get isCallWaiting() {
23523
+ return this.isCallWaitingEnabled;
23524
+ }
23516
23525
  get speakerVolume() {
23517
23526
  return this.speakerVolumeValue;
23518
23527
  }
@@ -23828,14 +23837,14 @@ class oE {
23828
23837
  var r;
23829
23838
  if (a == null)
23830
23839
  return;
23831
- const o = new MediaStream(), s = Cn.createMediaStreamDestination();
23840
+ const o = new MediaStream(), s = An.createMediaStreamDestination();
23832
23841
  if (a.connection.getReceivers().forEach((d) => {
23833
23842
  n.forEach((h) => {
23834
- o.addTrack(d.track), d.track.id !== h.id && Cn.createMediaStreamSource(new MediaStream([h])).connect(s);
23843
+ o.addTrack(d.track), d.track.id !== h.id && An.createMediaStreamSource(new MediaStream([h])).connect(s);
23835
23844
  });
23836
23845
  }), t[0].roomId === this.currentActiveRoomId) {
23837
23846
  const d = this.getActiveStream();
23838
- Cn.createMediaStreamSource(d).connect(s);
23847
+ An.createMediaStreamSource(d).connect(s);
23839
23848
  }
23840
23849
  (r = a.connection) != null && r.getSenders()[0] && (await a.connection.getSenders()[0].replaceTrack(s.stream.getTracks()[0]), this.muteReconfigure(a));
23841
23850
  });
@@ -23903,6 +23912,23 @@ class oE {
23903
23912
  setDND(t) {
23904
23913
  this.isDNDEnabled = t, this.context.emit("changeIsDND", t);
23905
23914
  }
23915
+ /**
23916
+ * Sets the call waiting feature state.
23917
+ *
23918
+ * When call waiting is disabled (false) and there are already active calls,
23919
+ * any new incoming calls will be automatically rejected with a "busy" status.
23920
+ *
23921
+ * When call waiting is enabled (true), incoming calls will be allowed even when
23922
+ * other calls are active.
23923
+ *
23924
+ * This setting is used in the shouldTerminateNewSession method to determine whether
23925
+ * to automatically terminate new incoming sessions when the user is already on a call.
23926
+ *
23927
+ * @param {boolean} value - True to enable call waiting, false to disable
23928
+ */
23929
+ setCallWaiting(t) {
23930
+ this.isCallWaitingEnabled = t, this.context.emit("changeIsCallWaiting", t);
23931
+ }
23906
23932
  startCallTimer(t) {
23907
23933
  this.removeTimeInterval(t);
23908
23934
  const n = {
@@ -23975,9 +24001,22 @@ class oE {
23975
24001
  const a = n.roomId;
23976
24002
  this.removeCall(t._id), this.roomReconfigure(a);
23977
24003
  }
24004
+ /**
24005
+ * Determines whether a new incoming session should be automatically terminated
24006
+ * based on Do Not Disturb (DND) settings and Call Waiting settings.
24007
+ *
24008
+ * @param {RTCSessionEvent} event - The event containing the new RTC session
24009
+ * @returns {boolean} True if the session should be terminated automatically, false otherwise
24010
+ */
24011
+ shouldTerminateNewSession(t) {
24012
+ if (t.session.direction === "outgoing")
24013
+ return !1;
24014
+ const a = !this.isCallWaiting && this.hasActiveCalls;
24015
+ return this.isDND || a;
24016
+ }
23978
24017
  async newRTCSessionCallback(t) {
23979
24018
  const n = t.session;
23980
- if (this.isDND) {
24019
+ if (this.shouldTerminateNewSession(t)) {
23981
24020
  n.terminate({
23982
24021
  status_code: 486,
23983
24022
  reason_phrase: "Do Not Disturb"
@@ -24061,15 +24100,12 @@ class oE {
24061
24100
  }, this.context.emit("changeCallMetrics", this.callMetrics);
24062
24101
  }
24063
24102
  getCallQuality(t) {
24064
- this.context.logger.log("LOG 1 before createProbe");
24065
24103
  const n = new nE(this.metricConfig), a = n.createProbe(t.connection, {
24066
24104
  cid: t._id
24067
- });
24068
- this.context.logger.log("LOG 2 after createProbe");
24069
- const o = [];
24105
+ }), o = [];
24070
24106
  let s;
24071
24107
  a.onreport = (r) => {
24072
- this.context.logger.log("LOG 3 in onreport"), Object.entries(r.audio).forEach(([_, g]) => {
24108
+ Object.entries(r.audio).forEach(([_, g]) => {
24073
24109
  g.direction === "inbound" && !o.includes(_) && (o.push(_), s = _);
24074
24110
  });
24075
24111
  const d = r.audio[s];
@@ -24092,11 +24128,11 @@ class oE {
24092
24128
  this.initialStreamValue && (this.initialStreamValue.getTracks().forEach((n) => n.stop()), this.initialStreamValue = null), this.initialStreamValue = t;
24093
24129
  }
24094
24130
  async triggerAddStream(t, n) {
24095
- this.context.logger.log("LOG triggerAddStream 1"), this.setIsMuted(this.muteWhenJoin || this.isMuted), this.initialStreamValue || await this.setupStream();
24131
+ this.setIsMuted(this.muteWhenJoin || this.isMuted), this.initialStreamValue || await this.setupStream();
24096
24132
  const a = Pf(this.initialStreamValue, this.microphoneInputLevel * 2), o = this.isMuted || this.muteWhenJoin;
24097
- a.getTracks().forEach((r) => r.enabled = !o), this.setActiveStream(a), await n.connection.getSenders()[0].replaceTrack(a.getTracks()[0]), this.context.logger.log("LOG triggerAddStream 2");
24133
+ a.getTracks().forEach((r) => r.enabled = !o), this.setActiveStream(a), await n.connection.getSenders()[0].replaceTrack(a.getTracks()[0]);
24098
24134
  const s = new MediaStream([t.track]);
24099
- this.context.logger.log("LOG triggerAddStream 3"), YT(s, n, this.selectedOutputDevice, this.speakerVolume), this.context.logger.log("LOG triggerAddStream 4"), this.setupVUMeter(s, n._id), this.context.logger.log("LOG triggerAddStream 5"), this.getCallQuality(n), this.updateCall(n);
24135
+ YT(s, n, this.selectedOutputDevice, this.speakerVolume), this.setupVUMeter(s, n._id), this.getCallQuality(n), this.updateCall(n);
24100
24136
  }
24101
24137
  //@requireInitialization()
24102
24138
  initCall(t, n, a = !1) {