voxnix 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/voxnix.iife.js +52 -52
- package/dist/voxnix.js +481 -488
- package/dist/voxnix.umd.cjs +21 -21
- package/package.json +1 -1
package/dist/voxnix.js
CHANGED
|
@@ -40,11 +40,11 @@ function Xo() {
|
|
|
40
40
|
In = 1;
|
|
41
41
|
var r = on, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
42
42
|
function a(o, d, c) {
|
|
43
|
-
var l, g = {},
|
|
44
|
-
c !== void 0 && (
|
|
43
|
+
var l, g = {}, f = null, y = null;
|
|
44
|
+
c !== void 0 && (f = "" + c), d.key !== void 0 && (f = "" + d.key), d.ref !== void 0 && (y = d.ref);
|
|
45
45
|
for (l in d) s.call(d, l) && !n.hasOwnProperty(l) && (g[l] = d[l]);
|
|
46
46
|
if (o && o.defaultProps) for (l in d = o.defaultProps, d) g[l] === void 0 && (g[l] = d[l]);
|
|
47
|
-
return { $$typeof: e, type: o, key:
|
|
47
|
+
return { $$typeof: e, type: o, key: f, ref: y, props: g, _owner: i.current };
|
|
48
48
|
}
|
|
49
49
|
return qr.Fragment = t, qr.jsx = a, qr.jsxs = a, qr;
|
|
50
50
|
}
|
|
@@ -61,7 +61,7 @@ var jr = {};
|
|
|
61
61
|
var $n;
|
|
62
62
|
function Jo() {
|
|
63
63
|
return $n || ($n = 1, process.env.NODE_ENV !== "production" && function() {
|
|
64
|
-
var r = on, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), o = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"),
|
|
64
|
+
var r = on, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), o = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), w = Symbol.iterator, b = "@@iterator";
|
|
65
65
|
function C(D) {
|
|
66
66
|
if (D === null || typeof D != "object")
|
|
67
67
|
return null;
|
|
@@ -89,13 +89,13 @@ function Jo() {
|
|
|
89
89
|
var _ = !1, S = !1, T = !1, R = !1, h = !1, N;
|
|
90
90
|
N = Symbol.for("react.module.reference");
|
|
91
91
|
function A(D) {
|
|
92
|
-
return !!(typeof D == "string" || typeof D == "function" || D === s || D === n || h || D === i || D === c || D === l || R || D === y || _ || S || T || typeof D == "object" && D !== null && (D.$$typeof ===
|
|
92
|
+
return !!(typeof D == "string" || typeof D == "function" || D === s || D === n || h || D === i || D === c || D === l || R || D === y || _ || S || T || typeof D == "object" && D !== null && (D.$$typeof === f || D.$$typeof === g || D.$$typeof === a || D.$$typeof === o || D.$$typeof === d || // This needs to include all possible module reference object
|
|
93
93
|
// types supported by any Flight configuration anywhere since
|
|
94
94
|
// we don't know which Flight build this will end up being used
|
|
95
95
|
// with.
|
|
96
96
|
D.$$typeof === N || D.getModuleId !== void 0));
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function u(D, O, G) {
|
|
99
99
|
var ee = D.displayName;
|
|
100
100
|
if (ee)
|
|
101
101
|
return ee;
|
|
@@ -135,11 +135,11 @@ function Jo() {
|
|
|
135
135
|
var G = D;
|
|
136
136
|
return v(G._context) + ".Provider";
|
|
137
137
|
case d:
|
|
138
|
-
return
|
|
138
|
+
return u(D, D.render, "ForwardRef");
|
|
139
139
|
case g:
|
|
140
140
|
var ee = D.displayName || null;
|
|
141
141
|
return ee !== null ? ee : m(D.type) || "Memo";
|
|
142
|
-
case
|
|
142
|
+
case f: {
|
|
143
143
|
var me = D, Ee = me._payload, ce = me._init;
|
|
144
144
|
try {
|
|
145
145
|
return m(ce(Ee));
|
|
@@ -328,7 +328,7 @@ function Jo() {
|
|
|
328
328
|
return qe(D.render);
|
|
329
329
|
case g:
|
|
330
330
|
return it(D.type, O, G);
|
|
331
|
-
case
|
|
331
|
+
case f: {
|
|
332
332
|
var ee = D, me = ee._payload, Ee = ee._init;
|
|
333
333
|
try {
|
|
334
334
|
return it(Ee(me), O, G);
|
|
@@ -696,7 +696,7 @@ const e0 = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(),
|
|
|
696
696
|
...c
|
|
697
697
|
},
|
|
698
698
|
[
|
|
699
|
-
...e.map(([g,
|
|
699
|
+
...e.map(([g, f]) => Bn(g, f)),
|
|
700
700
|
...Array.isArray(d) ? d : [d]
|
|
701
701
|
]
|
|
702
702
|
)
|
|
@@ -1178,7 +1178,7 @@ function oe() {
|
|
|
1178
1178
|
E.push(a());
|
|
1179
1179
|
return new g.init(E, p);
|
|
1180
1180
|
}
|
|
1181
|
-
}),
|
|
1181
|
+
}), f = d.enc = {}, y = f.Hex = {
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Converts a word array to a hex string.
|
|
1184
1184
|
*
|
|
@@ -1217,7 +1217,7 @@ function oe() {
|
|
|
1217
1217
|
_[S >>> 3] |= parseInt(p.substr(S, 2), 16) << 24 - S % 8 * 4;
|
|
1218
1218
|
return new g.init(_, E / 2);
|
|
1219
1219
|
}
|
|
1220
|
-
}, w =
|
|
1220
|
+
}, w = f.Latin1 = {
|
|
1221
1221
|
/**
|
|
1222
1222
|
* Converts a word array to a Latin1 string.
|
|
1223
1223
|
*
|
|
@@ -1256,7 +1256,7 @@ function oe() {
|
|
|
1256
1256
|
_[S >>> 2] |= (p.charCodeAt(S) & 255) << 24 - S % 4 * 8;
|
|
1257
1257
|
return new g.init(_, E);
|
|
1258
1258
|
}
|
|
1259
|
-
}, b =
|
|
1259
|
+
}, b = f.Utf8 = {
|
|
1260
1260
|
/**
|
|
1261
1261
|
* Converts a word array to a UTF-8 string.
|
|
1262
1262
|
*
|
|
@@ -1334,13 +1334,13 @@ function oe() {
|
|
|
1334
1334
|
_process: function(p) {
|
|
1335
1335
|
var E, _ = this._data, S = _.words, T = _.sigBytes, R = this.blockSize, h = R * 4, N = T / h;
|
|
1336
1336
|
p ? N = s.ceil(N) : N = s.max((N | 0) - this._minBufferSize, 0);
|
|
1337
|
-
var A = N * R,
|
|
1337
|
+
var A = N * R, u = s.min(A * 4, T);
|
|
1338
1338
|
if (A) {
|
|
1339
1339
|
for (var v = 0; v < A; v += R)
|
|
1340
1340
|
this._doProcessBlock(S, v);
|
|
1341
|
-
E = S.splice(0, A), _.sigBytes -=
|
|
1341
|
+
E = S.splice(0, A), _.sigBytes -= u;
|
|
1342
1342
|
}
|
|
1343
|
-
return new g.init(E,
|
|
1343
|
+
return new g.init(E, u);
|
|
1344
1344
|
},
|
|
1345
1345
|
/**
|
|
1346
1346
|
* Creates a copy of this object.
|
|
@@ -1668,8 +1668,8 @@ function Bs() {
|
|
|
1668
1668
|
* var x32WordArray = x64WordArray.toX32();
|
|
1669
1669
|
*/
|
|
1670
1670
|
toX32: function() {
|
|
1671
|
-
for (var c = this.words, l = c.length, g = [],
|
|
1672
|
-
var y = c[
|
|
1671
|
+
for (var c = this.words, l = c.length, g = [], f = 0; f < l; f++) {
|
|
1672
|
+
var y = c[f];
|
|
1673
1673
|
g.push(y.high), g.push(y.low);
|
|
1674
1674
|
}
|
|
1675
1675
|
return o.create(g, this.sigBytes);
|
|
@@ -1684,8 +1684,8 @@ function Bs() {
|
|
|
1684
1684
|
* var clone = x64WordArray.clone();
|
|
1685
1685
|
*/
|
|
1686
1686
|
clone: function() {
|
|
1687
|
-
for (var c = a.clone.call(this), l = c.words = this.words.slice(0), g = l.length,
|
|
1688
|
-
l[
|
|
1687
|
+
for (var c = a.clone.call(this), l = c.words = this.words.slice(0), g = l.length, f = 0; f < g; f++)
|
|
1688
|
+
l[f] = l[f].clone();
|
|
1689
1689
|
return c;
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
@@ -1738,8 +1738,8 @@ function y0() {
|
|
|
1738
1738
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
1739
1739
|
*/
|
|
1740
1740
|
stringify: function(d) {
|
|
1741
|
-
for (var c = d.words, l = d.sigBytes, g = [],
|
|
1742
|
-
var y = c[
|
|
1741
|
+
for (var c = d.words, l = d.sigBytes, g = [], f = 0; f < l; f += 2) {
|
|
1742
|
+
var y = c[f >>> 2] >>> 16 - f % 4 * 8 & 65535;
|
|
1743
1743
|
g.push(String.fromCharCode(y));
|
|
1744
1744
|
}
|
|
1745
1745
|
return g.join("");
|
|
@@ -1777,8 +1777,8 @@ function y0() {
|
|
|
1777
1777
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
1778
1778
|
*/
|
|
1779
1779
|
stringify: function(d) {
|
|
1780
|
-
for (var c = d.words, l = d.sigBytes, g = [],
|
|
1781
|
-
var y = o(c[
|
|
1780
|
+
for (var c = d.words, l = d.sigBytes, g = [], f = 0; f < l; f += 2) {
|
|
1781
|
+
var y = o(c[f >>> 2] >>> 16 - f % 4 * 8 & 65535);
|
|
1782
1782
|
g.push(String.fromCharCode(y));
|
|
1783
1783
|
}
|
|
1784
1784
|
return g.join("");
|
|
@@ -1834,14 +1834,14 @@ function fr() {
|
|
|
1834
1834
|
stringify: function(d) {
|
|
1835
1835
|
var c = d.words, l = d.sigBytes, g = this._map;
|
|
1836
1836
|
d.clamp();
|
|
1837
|
-
for (var
|
|
1837
|
+
for (var f = [], y = 0; y < l; y += 3)
|
|
1838
1838
|
for (var w = c[y >>> 2] >>> 24 - y % 4 * 8 & 255, b = c[y + 1 >>> 2] >>> 24 - (y + 1) % 4 * 8 & 255, C = c[y + 2 >>> 2] >>> 24 - (y + 2) % 4 * 8 & 255, x = w << 16 | b << 8 | C, p = 0; p < 4 && y + p * 0.75 < l; p++)
|
|
1839
|
-
|
|
1839
|
+
f.push(g.charAt(x >>> 6 * (3 - p) & 63));
|
|
1840
1840
|
var E = g.charAt(64);
|
|
1841
1841
|
if (E)
|
|
1842
|
-
for (;
|
|
1843
|
-
|
|
1844
|
-
return
|
|
1842
|
+
for (; f.length % 4; )
|
|
1843
|
+
f.push(E);
|
|
1844
|
+
return f.join("");
|
|
1845
1845
|
},
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Converts a Base64 string to a word array.
|
|
@@ -1860,8 +1860,8 @@ function fr() {
|
|
|
1860
1860
|
var c = d.length, l = this._map, g = this._reverseMap;
|
|
1861
1861
|
if (!g) {
|
|
1862
1862
|
g = this._reverseMap = [];
|
|
1863
|
-
for (var
|
|
1864
|
-
g[l.charCodeAt(
|
|
1863
|
+
for (var f = 0; f < l.length; f++)
|
|
1864
|
+
g[l.charCodeAt(f)] = f;
|
|
1865
1865
|
}
|
|
1866
1866
|
var y = l.charAt(64);
|
|
1867
1867
|
if (y) {
|
|
@@ -1873,12 +1873,12 @@ function fr() {
|
|
|
1873
1873
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1874
1874
|
};
|
|
1875
1875
|
function o(d, c, l) {
|
|
1876
|
-
for (var g = [],
|
|
1876
|
+
for (var g = [], f = 0, y = 0; y < c; y++)
|
|
1877
1877
|
if (y % 4) {
|
|
1878
1878
|
var w = l[d.charCodeAt(y - 1)] << y % 4 * 2, b = l[d.charCodeAt(y)] >>> 6 - y % 4 * 2, C = w | b;
|
|
1879
|
-
g[
|
|
1879
|
+
g[f >>> 2] |= C << 24 - f % 4 * 8, f++;
|
|
1880
1880
|
}
|
|
1881
|
-
return n.create(g,
|
|
1881
|
+
return n.create(g, f);
|
|
1882
1882
|
}
|
|
1883
1883
|
}(), t.enc.Base64;
|
|
1884
1884
|
});
|
|
@@ -1910,12 +1910,12 @@ function w0() {
|
|
|
1910
1910
|
*/
|
|
1911
1911
|
stringify: function(d, c) {
|
|
1912
1912
|
c === void 0 && (c = !0);
|
|
1913
|
-
var l = d.words, g = d.sigBytes,
|
|
1913
|
+
var l = d.words, g = d.sigBytes, f = c ? this._safe_map : this._map;
|
|
1914
1914
|
d.clamp();
|
|
1915
1915
|
for (var y = [], w = 0; w < g; w += 3)
|
|
1916
1916
|
for (var b = l[w >>> 2] >>> 24 - w % 4 * 8 & 255, C = l[w + 1 >>> 2] >>> 24 - (w + 1) % 4 * 8 & 255, x = l[w + 2 >>> 2] >>> 24 - (w + 2) % 4 * 8 & 255, p = b << 16 | C << 8 | x, E = 0; E < 4 && w + E * 0.75 < g; E++)
|
|
1917
|
-
y.push(
|
|
1918
|
-
var _ =
|
|
1917
|
+
y.push(f.charAt(p >>> 6 * (3 - E) & 63));
|
|
1918
|
+
var _ = f.charAt(64);
|
|
1919
1919
|
if (_)
|
|
1920
1920
|
for (; y.length % 4; )
|
|
1921
1921
|
y.push(_);
|
|
@@ -1938,29 +1938,29 @@ function w0() {
|
|
|
1938
1938
|
*/
|
|
1939
1939
|
parse: function(d, c) {
|
|
1940
1940
|
c === void 0 && (c = !0);
|
|
1941
|
-
var l = d.length, g = c ? this._safe_map : this._map,
|
|
1942
|
-
if (!
|
|
1943
|
-
|
|
1941
|
+
var l = d.length, g = c ? this._safe_map : this._map, f = this._reverseMap;
|
|
1942
|
+
if (!f) {
|
|
1943
|
+
f = this._reverseMap = [];
|
|
1944
1944
|
for (var y = 0; y < g.length; y++)
|
|
1945
|
-
|
|
1945
|
+
f[g.charCodeAt(y)] = y;
|
|
1946
1946
|
}
|
|
1947
1947
|
var w = g.charAt(64);
|
|
1948
1948
|
if (w) {
|
|
1949
1949
|
var b = d.indexOf(w);
|
|
1950
1950
|
b !== -1 && (l = b);
|
|
1951
1951
|
}
|
|
1952
|
-
return o(d, l,
|
|
1952
|
+
return o(d, l, f);
|
|
1953
1953
|
},
|
|
1954
1954
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
1955
1955
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
1956
1956
|
};
|
|
1957
1957
|
function o(d, c, l) {
|
|
1958
|
-
for (var g = [],
|
|
1958
|
+
for (var g = [], f = 0, y = 0; y < c; y++)
|
|
1959
1959
|
if (y % 4) {
|
|
1960
1960
|
var w = l[d.charCodeAt(y - 1)] << y % 4 * 2, b = l[d.charCodeAt(y)] >>> 6 - y % 4 * 2, C = w | b;
|
|
1961
|
-
g[
|
|
1961
|
+
g[f >>> 2] |= C << 24 - f % 4 * 8, f++;
|
|
1962
1962
|
}
|
|
1963
|
-
return n.create(g,
|
|
1963
|
+
return n.create(g, f);
|
|
1964
1964
|
}
|
|
1965
1965
|
}(), t.enc.Base64url;
|
|
1966
1966
|
});
|
|
@@ -1992,8 +1992,8 @@ function gr() {
|
|
|
1992
1992
|
var p = C + x, E = b[p];
|
|
1993
1993
|
b[p] = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360;
|
|
1994
1994
|
}
|
|
1995
|
-
var _ = this._hash.words, S = b[C + 0], T = b[C + 1], R = b[C + 2], h = b[C + 3], N = b[C + 4], A = b[C + 5],
|
|
1996
|
-
I = g(I, H, P, $, S, 7, c[0]), $ = g($, I, H, P, T, 12, c[1]), P = g(P, $, I, H, R, 17, c[2]), H = g(H, P, $, I, h, 22, c[3]), I = g(I, H, P, $, N, 7, c[4]), $ = g($, I, H, P, A, 12, c[5]), P = g(P, $, I, H,
|
|
1995
|
+
var _ = this._hash.words, S = b[C + 0], T = b[C + 1], R = b[C + 2], h = b[C + 3], N = b[C + 4], A = b[C + 5], u = b[C + 6], v = b[C + 7], m = b[C + 8], U = b[C + 9], q = b[C + 10], X = b[C + 11], W = b[C + 12], se = b[C + 13], de = b[C + 14], he = b[C + 15], I = _[0], H = _[1], P = _[2], $ = _[3];
|
|
1996
|
+
I = g(I, H, P, $, S, 7, c[0]), $ = g($, I, H, P, T, 12, c[1]), P = g(P, $, I, H, R, 17, c[2]), H = g(H, P, $, I, h, 22, c[3]), I = g(I, H, P, $, N, 7, c[4]), $ = g($, I, H, P, A, 12, c[5]), P = g(P, $, I, H, u, 17, c[6]), H = g(H, P, $, I, v, 22, c[7]), I = g(I, H, P, $, m, 7, c[8]), $ = g($, I, H, P, U, 12, c[9]), P = g(P, $, I, H, q, 17, c[10]), H = g(H, P, $, I, X, 22, c[11]), I = g(I, H, P, $, W, 7, c[12]), $ = g($, I, H, P, se, 12, c[13]), P = g(P, $, I, H, de, 17, c[14]), H = g(H, P, $, I, he, 22, c[15]), I = f(I, H, P, $, T, 5, c[16]), $ = f($, I, H, P, u, 9, c[17]), P = f(P, $, I, H, X, 14, c[18]), H = f(H, P, $, I, S, 20, c[19]), I = f(I, H, P, $, A, 5, c[20]), $ = f($, I, H, P, q, 9, c[21]), P = f(P, $, I, H, he, 14, c[22]), H = f(H, P, $, I, N, 20, c[23]), I = f(I, H, P, $, U, 5, c[24]), $ = f($, I, H, P, de, 9, c[25]), P = f(P, $, I, H, h, 14, c[26]), H = f(H, P, $, I, m, 20, c[27]), I = f(I, H, P, $, se, 5, c[28]), $ = f($, I, H, P, R, 9, c[29]), P = f(P, $, I, H, v, 14, c[30]), H = f(H, P, $, I, W, 20, c[31]), I = y(I, H, P, $, A, 4, c[32]), $ = y($, I, H, P, m, 11, c[33]), P = y(P, $, I, H, X, 16, c[34]), H = y(H, P, $, I, de, 23, c[35]), I = y(I, H, P, $, T, 4, c[36]), $ = y($, I, H, P, N, 11, c[37]), P = y(P, $, I, H, v, 16, c[38]), H = y(H, P, $, I, q, 23, c[39]), I = y(I, H, P, $, se, 4, c[40]), $ = y($, I, H, P, S, 11, c[41]), P = y(P, $, I, H, h, 16, c[42]), H = y(H, P, $, I, u, 23, c[43]), I = y(I, H, P, $, U, 4, c[44]), $ = y($, I, H, P, W, 11, c[45]), P = y(P, $, I, H, he, 16, c[46]), H = y(H, P, $, I, R, 23, c[47]), I = w(I, H, P, $, S, 6, c[48]), $ = w($, I, H, P, v, 10, c[49]), P = w(P, $, I, H, de, 15, c[50]), H = w(H, P, $, I, A, 21, c[51]), I = w(I, H, P, $, W, 6, c[52]), $ = w($, I, H, P, h, 10, c[53]), P = w(P, $, I, H, q, 15, c[54]), H = w(H, P, $, I, T, 21, c[55]), I = w(I, H, P, $, m, 6, c[56]), $ = w($, I, H, P, he, 10, c[57]), P = w(P, $, I, H, u, 15, c[58]), H = w(H, P, $, I, se, 21, c[59]), I = w(I, H, P, $, N, 6, c[60]), $ = w($, I, H, P, X, 10, c[61]), P = w(P, $, I, H, R, 15, c[62]), H = w(H, P, $, I, U, 21, c[63]), _[0] = _[0] + I | 0, _[1] = _[1] + H | 0, _[2] = _[2] + P | 0, _[3] = _[3] + $ | 0;
|
|
1997
1997
|
},
|
|
1998
1998
|
_doFinalize: function() {
|
|
1999
1999
|
var b = this._data, C = b.words, x = this._nDataBytes * 8, p = b.sigBytes * 8;
|
|
@@ -2015,7 +2015,7 @@ function gr() {
|
|
|
2015
2015
|
var T = b + (C & x | ~C & p) + E + S;
|
|
2016
2016
|
return (T << _ | T >>> 32 - _) + C;
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function f(b, C, x, p, E, _, S) {
|
|
2019
2019
|
var T = b + (C & p | x & ~p) + E + S;
|
|
2020
2020
|
return (T << _ | T >>> 32 - _) + C;
|
|
2021
2021
|
}
|
|
@@ -2050,7 +2050,7 @@ function Pa() {
|
|
|
2050
2050
|
]);
|
|
2051
2051
|
},
|
|
2052
2052
|
_doProcessBlock: function(l, g) {
|
|
2053
|
-
for (var
|
|
2053
|
+
for (var f = this._hash.words, y = f[0], w = f[1], b = f[2], C = f[3], x = f[4], p = 0; p < 80; p++) {
|
|
2054
2054
|
if (p < 16)
|
|
2055
2055
|
d[p] = l[g + p] | 0;
|
|
2056
2056
|
else {
|
|
@@ -2060,11 +2060,11 @@ function Pa() {
|
|
|
2060
2060
|
var _ = (y << 5 | y >>> 27) + x + d[p];
|
|
2061
2061
|
p < 20 ? _ += (w & b | ~w & C) + 1518500249 : p < 40 ? _ += (w ^ b ^ C) + 1859775393 : p < 60 ? _ += (w & b | w & C | b & C) - 1894007588 : _ += (w ^ b ^ C) - 899497514, x = C, C = b, b = w << 30 | w >>> 2, w = y, y = _;
|
|
2062
2062
|
}
|
|
2063
|
-
|
|
2063
|
+
f[0] = f[0] + y | 0, f[1] = f[1] + w | 0, f[2] = f[2] + b | 0, f[3] = f[3] + C | 0, f[4] = f[4] + x | 0;
|
|
2064
2064
|
},
|
|
2065
2065
|
_doFinalize: function() {
|
|
2066
|
-
var l = this._data, g = l.words,
|
|
2067
|
-
return g[y >>> 5] |= 128 << 24 - y % 32, g[(y + 64 >>> 9 << 4) + 14] = Math.floor(
|
|
2066
|
+
var l = this._data, g = l.words, f = this._nDataBytes * 8, y = l.sigBytes * 8;
|
|
2067
|
+
return g[y >>> 5] |= 128 << 24 - y % 32, g[(y + 64 >>> 9 << 4) + 14] = Math.floor(f / 4294967296), g[(y + 64 >>> 9 << 4) + 15] = f, l.sigBytes = g.length * 4, this._process(), this._hash;
|
|
2068
2068
|
},
|
|
2069
2069
|
clone: function() {
|
|
2070
2070
|
var l = a.clone.call(this);
|
|
@@ -2097,7 +2097,7 @@ function cn() {
|
|
|
2097
2097
|
for (var b = 2, C = 0; C < 64; )
|
|
2098
2098
|
y(b) && (C < 8 && (c[C] = w(s.pow(b, 1 / 2))), l[C] = w(s.pow(b, 1 / 3)), C++), b++;
|
|
2099
2099
|
})();
|
|
2100
|
-
var g = [],
|
|
2100
|
+
var g = [], f = d.SHA256 = o.extend({
|
|
2101
2101
|
_doReset: function() {
|
|
2102
2102
|
this._hash = new a.init(c.slice(0));
|
|
2103
2103
|
},
|
|
@@ -2106,7 +2106,7 @@ function cn() {
|
|
|
2106
2106
|
if (h < 16)
|
|
2107
2107
|
g[h] = y[w + h] | 0;
|
|
2108
2108
|
else {
|
|
2109
|
-
var N = g[h - 15], A = (N << 25 | N >>> 7) ^ (N << 14 | N >>> 18) ^ N >>> 3,
|
|
2109
|
+
var N = g[h - 15], A = (N << 25 | N >>> 7) ^ (N << 14 | N >>> 18) ^ N >>> 3, u = g[h - 2], v = (u << 15 | u >>> 17) ^ (u << 13 | u >>> 19) ^ u >>> 10;
|
|
2110
2110
|
g[h] = A + g[h - 7] + v + g[h - 16];
|
|
2111
2111
|
}
|
|
2112
2112
|
var m = _ & S ^ ~_ & T, U = C & x ^ C & p ^ x & p, q = (C << 30 | C >>> 2) ^ (C << 19 | C >>> 13) ^ (C << 10 | C >>> 22), X = (_ << 26 | _ >>> 6) ^ (_ << 21 | _ >>> 11) ^ (_ << 7 | _ >>> 25), W = R + X + m + l[h] + g[h], se = q + U;
|
|
@@ -2123,7 +2123,7 @@ function cn() {
|
|
|
2123
2123
|
return y._hash = this._hash.clone(), y;
|
|
2124
2124
|
}
|
|
2125
2125
|
});
|
|
2126
|
-
i.SHA256 = o._createHelper(
|
|
2126
|
+
i.SHA256 = o._createHelper(f), i.HmacSHA256 = o._createHmacHelper(f);
|
|
2127
2127
|
}(Math), t.SHA256;
|
|
2128
2128
|
});
|
|
2129
2129
|
}(di)), di.exports;
|
|
@@ -2250,10 +2250,10 @@ function Oa() {
|
|
|
2250
2250
|
l(1501505948, 4234509866),
|
|
2251
2251
|
l(1607167915, 987167468),
|
|
2252
2252
|
l(1816402316, 1246189591)
|
|
2253
|
-
],
|
|
2253
|
+
], f = [];
|
|
2254
2254
|
(function() {
|
|
2255
2255
|
for (var w = 0; w < 80; w++)
|
|
2256
|
-
|
|
2256
|
+
f[w] = l();
|
|
2257
2257
|
})();
|
|
2258
2258
|
var y = c.SHA512 = n.extend({
|
|
2259
2259
|
_doReset: function() {
|
|
@@ -2269,18 +2269,18 @@ function Oa() {
|
|
|
2269
2269
|
]);
|
|
2270
2270
|
},
|
|
2271
2271
|
_doProcessBlock: function(w, b) {
|
|
2272
|
-
for (var C = this._hash.words, x = C[0], p = C[1], E = C[2], _ = C[3], S = C[4], T = C[5], R = C[6], h = C[7], N = x.high, A = x.low,
|
|
2273
|
-
var je, wt, mr =
|
|
2272
|
+
for (var C = this._hash.words, x = C[0], p = C[1], E = C[2], _ = C[3], S = C[4], T = C[5], R = C[6], h = C[7], N = x.high, A = x.low, u = p.high, v = p.low, m = E.high, U = E.low, q = _.high, X = _.low, W = S.high, se = S.low, de = T.high, he = T.low, I = R.high, H = R.low, P = h.high, $ = h.low, ve = N, ue = A, Re = u, j = v, z = m, we = U, st = q, ht = X, qe = W, He = se, it = de, ze = he, yt = I, ut = H, ft = P, rr = $, Qe = 0; Qe < 80; Qe++) {
|
|
2273
|
+
var je, wt, mr = f[Qe];
|
|
2274
2274
|
if (Qe < 16)
|
|
2275
2275
|
wt = mr.high = w[b + Qe * 2] | 0, je = mr.low = w[b + Qe * 2 + 1] | 0;
|
|
2276
2276
|
else {
|
|
2277
|
-
var $r =
|
|
2277
|
+
var $r = f[Qe - 15], kt = $r.high, Yt = $r.low, zs = (kt >>> 1 | Yt << 31) ^ (kt >>> 8 | Yt << 24) ^ kt >>> 7, Hr = (Yt >>> 1 | kt << 31) ^ (Yt >>> 8 | kt << 24) ^ (Yt >>> 7 | kt << 25), Pr = f[Qe - 2], Wt = Pr.high, sr = Pr.low, Ks = (Wt >>> 19 | sr << 13) ^ (Wt << 3 | sr >>> 29) ^ Wt >>> 6, ns = (sr >>> 19 | Wt << 13) ^ (sr << 3 | Wt >>> 29) ^ (sr >>> 6 | Wt << 26), as = f[Qe - 7], Zs = as.high, Xs = as.low, vr = f[Qe - 16], os = vr.high, Bt = vr.low;
|
|
2278
2278
|
je = Hr + Xs, wt = zs + Zs + (je >>> 0 < Hr >>> 0 ? 1 : 0), je = je + ns, wt = wt + Ks + (je >>> 0 < ns >>> 0 ? 1 : 0), je = je + Bt, wt = wt + os + (je >>> 0 < Bt >>> 0 ? 1 : 0), mr.high = wt, mr.low = je;
|
|
2279
2279
|
}
|
|
2280
2280
|
var Or = qe & it ^ ~qe & yt, yr = He & ze ^ ~He & ut, cs = ve & Re ^ ve & z ^ Re & z, Js = ue & j ^ ue & we ^ j & we, ls = (ve >>> 28 | ue << 4) ^ (ve << 30 | ue >>> 2) ^ (ve << 25 | ue >>> 7), ds = (ue >>> 28 | ve << 4) ^ (ue << 30 | ve >>> 2) ^ (ue << 25 | ve >>> 7), hs = (qe >>> 14 | He << 18) ^ (qe >>> 18 | He << 14) ^ (qe << 23 | He >>> 9), us = (He >>> 14 | qe << 18) ^ (He >>> 18 | qe << 14) ^ (He << 23 | qe >>> 9), fs = g[Qe], Qs = fs.high, Nr = fs.low, Ue = rr + us, Et = ft + hs + (Ue >>> 0 < rr >>> 0 ? 1 : 0), Ue = Ue + yr, Et = Et + Or + (Ue >>> 0 < yr >>> 0 ? 1 : 0), Ue = Ue + Nr, Et = Et + Qs + (Ue >>> 0 < Nr >>> 0 ? 1 : 0), Ue = Ue + je, Et = Et + wt + (Ue >>> 0 < je >>> 0 ? 1 : 0), gs = ds + Js, ei = ls + cs + (gs >>> 0 < ds >>> 0 ? 1 : 0);
|
|
2281
2281
|
ft = yt, rr = ut, yt = it, ut = ze, it = qe, ze = He, He = ht + Ue | 0, qe = st + Et + (He >>> 0 < ht >>> 0 ? 1 : 0) | 0, st = z, ht = we, z = Re, we = j, Re = ve, j = ue, ue = Ue + gs | 0, ve = Et + ei + (ue >>> 0 < Ue >>> 0 ? 1 : 0) | 0;
|
|
2282
2282
|
}
|
|
2283
|
-
A = x.low = A + ue, x.high = N + ve + (A >>> 0 < ue >>> 0 ? 1 : 0), v = p.low = v + j, p.high =
|
|
2283
|
+
A = x.low = A + ue, x.high = N + ve + (A >>> 0 < ue >>> 0 ? 1 : 0), v = p.low = v + j, p.high = u + Re + (v >>> 0 < j >>> 0 ? 1 : 0), U = E.low = U + we, E.high = m + z + (U >>> 0 < we >>> 0 ? 1 : 0), X = _.low = X + ht, _.high = q + st + (X >>> 0 < ht >>> 0 ? 1 : 0), se = S.low = se + He, S.high = W + qe + (se >>> 0 < He >>> 0 ? 1 : 0), he = T.low = he + ze, T.high = de + it + (he >>> 0 < ze >>> 0 ? 1 : 0), H = R.low = H + ut, R.high = I + yt + (H >>> 0 < ut >>> 0 ? 1 : 0), $ = h.low = $ + rr, h.high = P + ft + ($ >>> 0 < rr >>> 0 ? 1 : 0);
|
|
2284
2284
|
},
|
|
2285
2285
|
_doFinalize: function() {
|
|
2286
2286
|
var w = this._data, b = w.words, C = this._nDataBytes * 8, x = w.sigBytes * 8;
|
|
@@ -2336,7 +2336,7 @@ function C0() {
|
|
|
2336
2336
|
r.exports = s(oe(), Bs());
|
|
2337
2337
|
})(re, function(t) {
|
|
2338
2338
|
return function(s) {
|
|
2339
|
-
var i = t, n = i.lib, a = n.WordArray, o = n.Hasher, d = i.x64, c = d.Word, l = i.algo, g = [],
|
|
2339
|
+
var i = t, n = i.lib, a = n.WordArray, o = n.Hasher, d = i.x64, c = d.Word, l = i.algo, g = [], f = [], y = [];
|
|
2340
2340
|
(function() {
|
|
2341
2341
|
for (var C = 1, x = 0, p = 0; p < 24; p++) {
|
|
2342
2342
|
g[C + 5 * x] = (p + 1) * (p + 2) / 2 % 64;
|
|
@@ -2345,7 +2345,7 @@ function C0() {
|
|
|
2345
2345
|
}
|
|
2346
2346
|
for (var C = 0; C < 5; C++)
|
|
2347
2347
|
for (var x = 0; x < 5; x++)
|
|
2348
|
-
|
|
2348
|
+
f[C + 5 * x] = x + (2 * C + 3 * x) % 5 * 5;
|
|
2349
2349
|
for (var S = 1, T = 0; T < 24; T++) {
|
|
2350
2350
|
for (var R = 0, h = 0, N = 0; N < 7; N++) {
|
|
2351
2351
|
if (S & 1) {
|
|
@@ -2388,23 +2388,23 @@ function C0() {
|
|
|
2388
2388
|
}
|
|
2389
2389
|
for (var h = 0; h < 24; h++) {
|
|
2390
2390
|
for (var N = 0; N < 5; N++) {
|
|
2391
|
-
for (var A = 0,
|
|
2391
|
+
for (var A = 0, u = 0, v = 0; v < 5; v++) {
|
|
2392
2392
|
var R = p[N + 5 * v];
|
|
2393
|
-
A ^= R.high,
|
|
2393
|
+
A ^= R.high, u ^= R.low;
|
|
2394
2394
|
}
|
|
2395
2395
|
var m = w[N];
|
|
2396
|
-
m.high = A, m.low =
|
|
2396
|
+
m.high = A, m.low = u;
|
|
2397
2397
|
}
|
|
2398
2398
|
for (var N = 0; N < 5; N++)
|
|
2399
|
-
for (var U = w[(N + 4) % 5], q = w[(N + 1) % 5], X = q.high, W = q.low, A = U.high ^ (X << 1 | W >>> 31),
|
|
2399
|
+
for (var U = w[(N + 4) % 5], q = w[(N + 1) % 5], X = q.high, W = q.low, A = U.high ^ (X << 1 | W >>> 31), u = U.low ^ (W << 1 | X >>> 31), v = 0; v < 5; v++) {
|
|
2400
2400
|
var R = p[N + 5 * v];
|
|
2401
|
-
R.high ^= A, R.low ^=
|
|
2401
|
+
R.high ^= A, R.low ^= u;
|
|
2402
2402
|
}
|
|
2403
2403
|
for (var se = 1; se < 25; se++) {
|
|
2404
|
-
var A,
|
|
2405
|
-
I < 32 ? (A = de << I | he >>> 32 - I,
|
|
2406
|
-
var H = w[
|
|
2407
|
-
H.high = A, H.low =
|
|
2404
|
+
var A, u, R = p[se], de = R.high, he = R.low, I = g[se];
|
|
2405
|
+
I < 32 ? (A = de << I | he >>> 32 - I, u = he << I | de >>> 32 - I) : (A = he << I - 32 | de >>> 64 - I, u = de << I - 32 | he >>> 64 - I);
|
|
2406
|
+
var H = w[f[se]];
|
|
2407
|
+
H.high = A, H.low = u;
|
|
2408
2408
|
}
|
|
2409
2409
|
var P = w[0], $ = p[0];
|
|
2410
2410
|
P.high = $.high, P.low = $.low;
|
|
@@ -2423,8 +2423,8 @@ function C0() {
|
|
|
2423
2423
|
var p = C.sigBytes * 8, E = this.blockSize * 32;
|
|
2424
2424
|
x[p >>> 5] |= 1 << 24 - p % 32, x[(s.ceil((p + 1) / E) * E >>> 5) - 1] |= 128, C.sigBytes = x.length * 4, this._process();
|
|
2425
2425
|
for (var _ = this._state, S = this.cfg.outputLength / 8, T = S / 8, R = [], h = 0; h < T; h++) {
|
|
2426
|
-
var N = _[h], A = N.high,
|
|
2427
|
-
A = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360,
|
|
2426
|
+
var N = _[h], A = N.high, u = N.low;
|
|
2427
|
+
A = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360, u = (u << 8 | u >>> 24) & 16711935 | (u << 24 | u >>> 8) & 4278255360, R.push(u), R.push(A);
|
|
2428
2428
|
}
|
|
2429
2429
|
return new a.init(R, S);
|
|
2430
2430
|
},
|
|
@@ -2699,7 +2699,7 @@ function _0() {
|
|
|
2699
2699
|
8,
|
|
2700
2700
|
5,
|
|
2701
2701
|
6
|
|
2702
|
-
]),
|
|
2702
|
+
]), f = a.create([
|
|
2703
2703
|
8,
|
|
2704
2704
|
9,
|
|
2705
2705
|
9,
|
|
@@ -2789,18 +2789,18 @@ function _0() {
|
|
|
2789
2789
|
var N = R + h, A = T[N];
|
|
2790
2790
|
T[N] = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360;
|
|
2791
2791
|
}
|
|
2792
|
-
var
|
|
2793
|
-
P = se =
|
|
2792
|
+
var u = this._hash.words, v = y.words, m = w.words, U = c.words, q = l.words, X = g.words, W = f.words, se, de, he, I, H, P, $, ve, ue, Re;
|
|
2793
|
+
P = se = u[0], $ = de = u[1], ve = he = u[2], ue = I = u[3], Re = H = u[4];
|
|
2794
2794
|
for (var j, h = 0; h < 80; h += 1)
|
|
2795
2795
|
j = se + T[R + U[h]] | 0, h < 16 ? j += C(de, he, I) + v[0] : h < 32 ? j += x(de, he, I) + v[1] : h < 48 ? j += p(de, he, I) + v[2] : h < 64 ? j += E(de, he, I) + v[3] : j += _(de, he, I) + v[4], j = j | 0, j = S(j, X[h]), j = j + H | 0, se = H, H = I, I = S(he, 10), he = de, de = j, j = P + T[R + q[h]] | 0, h < 16 ? j += _($, ve, ue) + m[0] : h < 32 ? j += E($, ve, ue) + m[1] : h < 48 ? j += p($, ve, ue) + m[2] : h < 64 ? j += x($, ve, ue) + m[3] : j += C($, ve, ue) + m[4], j = j | 0, j = S(j, W[h]), j = j + Re | 0, P = Re, Re = ue, ue = S(ve, 10), ve = $, $ = j;
|
|
2796
|
-
j =
|
|
2796
|
+
j = u[1] + he + ue | 0, u[1] = u[2] + I + Re | 0, u[2] = u[3] + H + P | 0, u[3] = u[4] + se + $ | 0, u[4] = u[0] + de + ve | 0, u[0] = j;
|
|
2797
2797
|
},
|
|
2798
2798
|
_doFinalize: function() {
|
|
2799
2799
|
var T = this._data, R = T.words, h = this._nDataBytes * 8, N = T.sigBytes * 8;
|
|
2800
2800
|
R[N >>> 5] |= 128 << 24 - N % 32, R[(N + 64 >>> 9 << 4) + 14] = (h << 8 | h >>> 24) & 16711935 | (h << 24 | h >>> 8) & 4278255360, T.sigBytes = (R.length + 1) * 4, this._process();
|
|
2801
|
-
for (var A = this._hash,
|
|
2802
|
-
var m =
|
|
2803
|
-
|
|
2801
|
+
for (var A = this._hash, u = A.words, v = 0; v < 5; v++) {
|
|
2802
|
+
var m = u[v];
|
|
2803
|
+
u[v] = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360;
|
|
2804
2804
|
}
|
|
2805
2805
|
return A;
|
|
2806
2806
|
},
|
|
@@ -2853,11 +2853,11 @@ function ln() {
|
|
|
2853
2853
|
*/
|
|
2854
2854
|
init: function(c, l) {
|
|
2855
2855
|
c = this._hasher = new c.init(), typeof l == "string" && (l = o.parse(l));
|
|
2856
|
-
var g = c.blockSize,
|
|
2857
|
-
l.sigBytes >
|
|
2856
|
+
var g = c.blockSize, f = g * 4;
|
|
2857
|
+
l.sigBytes > f && (l = c.finalize(l)), l.clamp();
|
|
2858
2858
|
for (var y = this._oKey = l.clone(), w = this._iKey = l.clone(), b = y.words, C = w.words, x = 0; x < g; x++)
|
|
2859
2859
|
b[x] ^= 1549556828, C[x] ^= 909522486;
|
|
2860
|
-
y.sigBytes = w.sigBytes =
|
|
2860
|
+
y.sigBytes = w.sigBytes = f, this.reset();
|
|
2861
2861
|
},
|
|
2862
2862
|
/**
|
|
2863
2863
|
* Resets this HMAC to its initial state.
|
|
@@ -2902,8 +2902,8 @@ function ln() {
|
|
|
2902
2902
|
finalize: function(c) {
|
|
2903
2903
|
var l = this._hasher, g = l.finalize(c);
|
|
2904
2904
|
l.reset();
|
|
2905
|
-
var
|
|
2906
|
-
return
|
|
2905
|
+
var f = l.finalize(this._oKey.clone().concat(g));
|
|
2906
|
+
return f;
|
|
2907
2907
|
}
|
|
2908
2908
|
});
|
|
2909
2909
|
})();
|
|
@@ -2956,22 +2956,22 @@ function D0() {
|
|
|
2956
2956
|
*
|
|
2957
2957
|
* var key = kdf.compute(password, salt);
|
|
2958
2958
|
*/
|
|
2959
|
-
compute: function(g,
|
|
2959
|
+
compute: function(g, f) {
|
|
2960
2960
|
for (var y = this.cfg, w = c.create(y.hasher, g), b = a.create(), C = a.create([1]), x = b.words, p = C.words, E = y.keySize, _ = y.iterations; x.length < E; ) {
|
|
2961
|
-
var S = w.update(
|
|
2961
|
+
var S = w.update(f).finalize(C);
|
|
2962
2962
|
w.reset();
|
|
2963
2963
|
for (var T = S.words, R = T.length, h = S, N = 1; N < _; N++) {
|
|
2964
2964
|
h = w.finalize(h), w.reset();
|
|
2965
|
-
for (var A = h.words,
|
|
2966
|
-
T[
|
|
2965
|
+
for (var A = h.words, u = 0; u < R; u++)
|
|
2966
|
+
T[u] ^= A[u];
|
|
2967
2967
|
}
|
|
2968
2968
|
b.concat(S), p[0]++;
|
|
2969
2969
|
}
|
|
2970
2970
|
return b.sigBytes = E * 4, b;
|
|
2971
2971
|
}
|
|
2972
2972
|
});
|
|
2973
|
-
s.PBKDF2 = function(g,
|
|
2974
|
-
return l.create(y).compute(g,
|
|
2973
|
+
s.PBKDF2 = function(g, f, y) {
|
|
2974
|
+
return l.create(y).compute(g, f);
|
|
2975
2975
|
};
|
|
2976
2976
|
}(), t.PBKDF2;
|
|
2977
2977
|
});
|
|
@@ -3024,17 +3024,17 @@ function tr() {
|
|
|
3024
3024
|
* var key = kdf.compute(password, salt);
|
|
3025
3025
|
*/
|
|
3026
3026
|
compute: function(l, g) {
|
|
3027
|
-
for (var
|
|
3028
|
-
|
|
3027
|
+
for (var f, y = this.cfg, w = y.hasher.create(), b = a.create(), C = b.words, x = y.keySize, p = y.iterations; C.length < x; ) {
|
|
3028
|
+
f && w.update(f), f = w.update(l).finalize(g), w.reset();
|
|
3029
3029
|
for (var E = 1; E < p; E++)
|
|
3030
|
-
|
|
3031
|
-
b.concat(
|
|
3030
|
+
f = w.finalize(f), w.reset();
|
|
3031
|
+
b.concat(f);
|
|
3032
3032
|
}
|
|
3033
3033
|
return b.sigBytes = x * 4, b;
|
|
3034
3034
|
}
|
|
3035
3035
|
});
|
|
3036
|
-
s.EvpKDF = function(l, g,
|
|
3037
|
-
return c.create(
|
|
3036
|
+
s.EvpKDF = function(l, g, f) {
|
|
3037
|
+
return c.create(f).compute(l, g);
|
|
3038
3038
|
};
|
|
3039
3039
|
}(), t.EvpKDF;
|
|
3040
3040
|
});
|
|
@@ -3049,7 +3049,7 @@ function Ne() {
|
|
|
3049
3049
|
t.lib.Cipher || function(s) {
|
|
3050
3050
|
var i = t, n = i.lib, a = n.Base, o = n.WordArray, d = n.BufferedBlockAlgorithm, c = i.enc;
|
|
3051
3051
|
c.Utf8;
|
|
3052
|
-
var l = c.Base64, g = i.algo,
|
|
3052
|
+
var l = c.Base64, g = i.algo, f = g.EvpKDF, y = n.Cipher = d.extend({
|
|
3053
3053
|
/**
|
|
3054
3054
|
* Configuration options.
|
|
3055
3055
|
*
|
|
@@ -3070,8 +3070,8 @@ function Ne() {
|
|
|
3070
3070
|
*
|
|
3071
3071
|
* var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
|
|
3072
3072
|
*/
|
|
3073
|
-
createEncryptor: function(A,
|
|
3074
|
-
return this.create(this._ENC_XFORM_MODE, A,
|
|
3073
|
+
createEncryptor: function(A, u) {
|
|
3074
|
+
return this.create(this._ENC_XFORM_MODE, A, u);
|
|
3075
3075
|
},
|
|
3076
3076
|
/**
|
|
3077
3077
|
* Creates this cipher in decryption mode.
|
|
@@ -3087,8 +3087,8 @@ function Ne() {
|
|
|
3087
3087
|
*
|
|
3088
3088
|
* var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
|
|
3089
3089
|
*/
|
|
3090
|
-
createDecryptor: function(A,
|
|
3091
|
-
return this.create(this._DEC_XFORM_MODE, A,
|
|
3090
|
+
createDecryptor: function(A, u) {
|
|
3091
|
+
return this.create(this._DEC_XFORM_MODE, A, u);
|
|
3092
3092
|
},
|
|
3093
3093
|
/**
|
|
3094
3094
|
* Initializes a newly created cipher.
|
|
@@ -3101,8 +3101,8 @@ function Ne() {
|
|
|
3101
3101
|
*
|
|
3102
3102
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
3103
3103
|
*/
|
|
3104
|
-
init: function(A,
|
|
3105
|
-
this.cfg = this.cfg.extend(v), this._xformMode = A, this._key =
|
|
3104
|
+
init: function(A, u, v) {
|
|
3105
|
+
this.cfg = this.cfg.extend(v), this._xformMode = A, this._key = u, this.reset();
|
|
3106
3106
|
},
|
|
3107
3107
|
/**
|
|
3108
3108
|
* Resets this cipher to its initial state.
|
|
@@ -3145,8 +3145,8 @@ function Ne() {
|
|
|
3145
3145
|
*/
|
|
3146
3146
|
finalize: function(A) {
|
|
3147
3147
|
A && this._append(A);
|
|
3148
|
-
var
|
|
3149
|
-
return
|
|
3148
|
+
var u = this._doFinalize();
|
|
3149
|
+
return u;
|
|
3150
3150
|
},
|
|
3151
3151
|
keySize: 128 / 32,
|
|
3152
3152
|
ivSize: 128 / 32,
|
|
@@ -3166,16 +3166,16 @@ function Ne() {
|
|
|
3166
3166
|
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
|
|
3167
3167
|
*/
|
|
3168
3168
|
_createHelper: /* @__PURE__ */ function() {
|
|
3169
|
-
function A(
|
|
3170
|
-
return typeof
|
|
3169
|
+
function A(u) {
|
|
3170
|
+
return typeof u == "string" ? N : T;
|
|
3171
3171
|
}
|
|
3172
|
-
return function(
|
|
3172
|
+
return function(u) {
|
|
3173
3173
|
return {
|
|
3174
3174
|
encrypt: function(v, m, U) {
|
|
3175
|
-
return A(m).encrypt(
|
|
3175
|
+
return A(m).encrypt(u, v, m, U);
|
|
3176
3176
|
},
|
|
3177
3177
|
decrypt: function(v, m, U) {
|
|
3178
|
-
return A(m).decrypt(
|
|
3178
|
+
return A(m).decrypt(u, v, m, U);
|
|
3179
3179
|
}
|
|
3180
3180
|
};
|
|
3181
3181
|
};
|
|
@@ -3201,8 +3201,8 @@ function Ne() {
|
|
|
3201
3201
|
*
|
|
3202
3202
|
* var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
|
|
3203
3203
|
*/
|
|
3204
|
-
createEncryptor: function(A,
|
|
3205
|
-
return this.Encryptor.create(A,
|
|
3204
|
+
createEncryptor: function(A, u) {
|
|
3205
|
+
return this.Encryptor.create(A, u);
|
|
3206
3206
|
},
|
|
3207
3207
|
/**
|
|
3208
3208
|
* Creates this mode for decryption.
|
|
@@ -3216,8 +3216,8 @@ function Ne() {
|
|
|
3216
3216
|
*
|
|
3217
3217
|
* var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
|
|
3218
3218
|
*/
|
|
3219
|
-
createDecryptor: function(A,
|
|
3220
|
-
return this.Decryptor.create(A,
|
|
3219
|
+
createDecryptor: function(A, u) {
|
|
3220
|
+
return this.Decryptor.create(A, u);
|
|
3221
3221
|
},
|
|
3222
3222
|
/**
|
|
3223
3223
|
* Initializes a newly created mode.
|
|
@@ -3229,8 +3229,8 @@ function Ne() {
|
|
|
3229
3229
|
*
|
|
3230
3230
|
* var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
|
|
3231
3231
|
*/
|
|
3232
|
-
init: function(A,
|
|
3233
|
-
this._cipher = A, this._iv =
|
|
3232
|
+
init: function(A, u) {
|
|
3233
|
+
this._cipher = A, this._iv = u;
|
|
3234
3234
|
}
|
|
3235
3235
|
}), C = w.CBC = function() {
|
|
3236
3236
|
var A = b.extend();
|
|
@@ -3247,7 +3247,7 @@ function Ne() {
|
|
|
3247
3247
|
*/
|
|
3248
3248
|
processBlock: function(v, m) {
|
|
3249
3249
|
var U = this._cipher, q = U.blockSize;
|
|
3250
|
-
|
|
3250
|
+
u.call(this, v, m, q), U.encryptBlock(v, m), this._prevBlock = v.slice(m, m + q);
|
|
3251
3251
|
}
|
|
3252
3252
|
}), A.Decryptor = A.extend({
|
|
3253
3253
|
/**
|
|
@@ -3262,10 +3262,10 @@ function Ne() {
|
|
|
3262
3262
|
*/
|
|
3263
3263
|
processBlock: function(v, m) {
|
|
3264
3264
|
var U = this._cipher, q = U.blockSize, X = v.slice(m, m + q);
|
|
3265
|
-
U.decryptBlock(v, m),
|
|
3265
|
+
U.decryptBlock(v, m), u.call(this, v, m, q), this._prevBlock = X;
|
|
3266
3266
|
}
|
|
3267
3267
|
});
|
|
3268
|
-
function
|
|
3268
|
+
function u(v, m, U) {
|
|
3269
3269
|
var q, X = this._iv;
|
|
3270
3270
|
X ? (q = X, this._iv = s) : q = this._prevBlock;
|
|
3271
3271
|
for (var W = 0; W < U; W++)
|
|
@@ -3285,8 +3285,8 @@ function Ne() {
|
|
|
3285
3285
|
*
|
|
3286
3286
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
3287
3287
|
*/
|
|
3288
|
-
pad: function(A,
|
|
3289
|
-
for (var v =
|
|
3288
|
+
pad: function(A, u) {
|
|
3289
|
+
for (var v = u * 4, m = v - A.sigBytes % v, U = m << 24 | m << 16 | m << 8 | m, q = [], X = 0; X < m; X += 4)
|
|
3290
3290
|
q.push(U);
|
|
3291
3291
|
var W = o.create(q, m);
|
|
3292
3292
|
A.concat(W);
|
|
@@ -3303,8 +3303,8 @@ function Ne() {
|
|
|
3303
3303
|
* CryptoJS.pad.Pkcs7.unpad(wordArray);
|
|
3304
3304
|
*/
|
|
3305
3305
|
unpad: function(A) {
|
|
3306
|
-
var
|
|
3307
|
-
A.sigBytes -=
|
|
3306
|
+
var u = A.words[A.sigBytes - 1 >>> 2] & 255;
|
|
3307
|
+
A.sigBytes -= u;
|
|
3308
3308
|
}
|
|
3309
3309
|
};
|
|
3310
3310
|
n.BlockCipher = y.extend({
|
|
@@ -3321,15 +3321,15 @@ function Ne() {
|
|
|
3321
3321
|
reset: function() {
|
|
3322
3322
|
var A;
|
|
3323
3323
|
y.reset.call(this);
|
|
3324
|
-
var
|
|
3324
|
+
var u = this.cfg, v = u.iv, m = u.mode;
|
|
3325
3325
|
this._xformMode == this._ENC_XFORM_MODE ? A = m.createEncryptor : (A = m.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == A ? this._mode.init(this, v && v.words) : (this._mode = A.call(m, this, v && v.words), this._mode.__creator = A);
|
|
3326
3326
|
},
|
|
3327
|
-
_doProcessBlock: function(A,
|
|
3328
|
-
this._mode.processBlock(A,
|
|
3327
|
+
_doProcessBlock: function(A, u) {
|
|
3328
|
+
this._mode.processBlock(A, u);
|
|
3329
3329
|
},
|
|
3330
3330
|
_doFinalize: function() {
|
|
3331
|
-
var A,
|
|
3332
|
-
return this._xformMode == this._ENC_XFORM_MODE ? (
|
|
3331
|
+
var A, u = this.cfg.padding;
|
|
3332
|
+
return this._xformMode == this._ENC_XFORM_MODE ? (u.pad(this._data, this.blockSize), A = this._process(!0)) : (A = this._process(!0), u.unpad(A)), A;
|
|
3333
3333
|
},
|
|
3334
3334
|
blockSize: 128 / 32
|
|
3335
3335
|
});
|
|
@@ -3389,8 +3389,8 @@ function Ne() {
|
|
|
3389
3389
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
3390
3390
|
*/
|
|
3391
3391
|
stringify: function(A) {
|
|
3392
|
-
var
|
|
3393
|
-
return m ?
|
|
3392
|
+
var u, v = A.ciphertext, m = A.salt;
|
|
3393
|
+
return m ? u = o.create([1398893684, 1701076831]).concat(m).concat(v) : u = v, u.toString(l);
|
|
3394
3394
|
},
|
|
3395
3395
|
/**
|
|
3396
3396
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3406,8 +3406,8 @@ function Ne() {
|
|
|
3406
3406
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
3407
3407
|
*/
|
|
3408
3408
|
parse: function(A) {
|
|
3409
|
-
var
|
|
3410
|
-
return m[0] == 1398893684 && m[1] == 1701076831 && (
|
|
3409
|
+
var u, v = l.parse(A), m = v.words;
|
|
3410
|
+
return m[0] == 1398893684 && m[1] == 1701076831 && (u = o.create(m.slice(2, 4)), m.splice(0, 4), v.sigBytes -= 16), E.create({ ciphertext: v, salt: u });
|
|
3411
3411
|
}
|
|
3412
3412
|
}, T = n.SerializableCipher = a.extend({
|
|
3413
3413
|
/**
|
|
@@ -3436,9 +3436,9 @@ function Ne() {
|
|
|
3436
3436
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
3437
3437
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3438
3438
|
*/
|
|
3439
|
-
encrypt: function(A,
|
|
3439
|
+
encrypt: function(A, u, v, m) {
|
|
3440
3440
|
m = this.cfg.extend(m);
|
|
3441
|
-
var U = A.createEncryptor(v, m), q = U.finalize(
|
|
3441
|
+
var U = A.createEncryptor(v, m), q = U.finalize(u), X = U.cfg;
|
|
3442
3442
|
return E.create({
|
|
3443
3443
|
ciphertext: q,
|
|
3444
3444
|
key: v,
|
|
@@ -3467,9 +3467,9 @@ function Ne() {
|
|
|
3467
3467
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3468
3468
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3469
3469
|
*/
|
|
3470
|
-
decrypt: function(A,
|
|
3471
|
-
m = this.cfg.extend(m),
|
|
3472
|
-
var U = A.createDecryptor(v, m).finalize(
|
|
3470
|
+
decrypt: function(A, u, v, m) {
|
|
3471
|
+
m = this.cfg.extend(m), u = this._parse(u, m.format);
|
|
3472
|
+
var U = A.createDecryptor(v, m).finalize(u.ciphertext);
|
|
3473
3473
|
return U;
|
|
3474
3474
|
},
|
|
3475
3475
|
/**
|
|
@@ -3487,8 +3487,8 @@ function Ne() {
|
|
|
3487
3487
|
*
|
|
3488
3488
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
|
|
3489
3489
|
*/
|
|
3490
|
-
_parse: function(A,
|
|
3491
|
-
return typeof A == "string" ?
|
|
3490
|
+
_parse: function(A, u) {
|
|
3491
|
+
return typeof A == "string" ? u.parse(A, this) : A;
|
|
3492
3492
|
}
|
|
3493
3493
|
}), R = i.kdf = {}, h = R.OpenSSL = {
|
|
3494
3494
|
/**
|
|
@@ -3508,13 +3508,13 @@ function Ne() {
|
|
|
3508
3508
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3509
3509
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3510
3510
|
*/
|
|
3511
|
-
execute: function(A,
|
|
3511
|
+
execute: function(A, u, v, m, U) {
|
|
3512
3512
|
if (m || (m = o.random(64 / 8)), U)
|
|
3513
|
-
var q =
|
|
3513
|
+
var q = f.create({ keySize: u + v, hasher: U }).compute(A, m);
|
|
3514
3514
|
else
|
|
3515
|
-
var q =
|
|
3516
|
-
var X = o.create(q.words.slice(
|
|
3517
|
-
return q.sigBytes =
|
|
3515
|
+
var q = f.create({ keySize: u + v }).compute(A, m);
|
|
3516
|
+
var X = o.create(q.words.slice(u), v * 4);
|
|
3517
|
+
return q.sigBytes = u * 4, E.create({ key: q, iv: X, salt: m });
|
|
3518
3518
|
}
|
|
3519
3519
|
}, N = n.PasswordBasedCipher = T.extend({
|
|
3520
3520
|
/**
|
|
@@ -3542,11 +3542,11 @@ function Ne() {
|
|
|
3542
3542
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
3543
3543
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3544
3544
|
*/
|
|
3545
|
-
encrypt: function(A,
|
|
3545
|
+
encrypt: function(A, u, v, m) {
|
|
3546
3546
|
m = this.cfg.extend(m);
|
|
3547
3547
|
var U = m.kdf.execute(v, A.keySize, A.ivSize, m.salt, m.hasher);
|
|
3548
3548
|
m.iv = U.iv;
|
|
3549
|
-
var q = T.encrypt.call(this, A,
|
|
3549
|
+
var q = T.encrypt.call(this, A, u, U.key, m);
|
|
3550
3550
|
return q.mixIn(U), q;
|
|
3551
3551
|
},
|
|
3552
3552
|
/**
|
|
@@ -3566,11 +3566,11 @@ function Ne() {
|
|
|
3566
3566
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3567
3567
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3568
3568
|
*/
|
|
3569
|
-
decrypt: function(A,
|
|
3570
|
-
m = this.cfg.extend(m),
|
|
3571
|
-
var U = m.kdf.execute(v, A.keySize, A.ivSize,
|
|
3569
|
+
decrypt: function(A, u, v, m) {
|
|
3570
|
+
m = this.cfg.extend(m), u = this._parse(u, m.format);
|
|
3571
|
+
var U = m.kdf.execute(v, A.keySize, A.ivSize, u.salt, m.hasher);
|
|
3572
3572
|
m.iv = U.iv;
|
|
3573
|
-
var q = T.decrypt.call(this, A,
|
|
3573
|
+
var q = T.decrypt.call(this, A, u, U.key, m);
|
|
3574
3574
|
return q;
|
|
3575
3575
|
}
|
|
3576
3576
|
});
|
|
@@ -3621,8 +3621,8 @@ function T0() {
|
|
|
3621
3621
|
c && (l = this._counter = c.slice(0), this._iv = void 0);
|
|
3622
3622
|
var g = l.slice(0);
|
|
3623
3623
|
o.encryptBlock(g, 0), l[d - 1] = l[d - 1] + 1 | 0;
|
|
3624
|
-
for (var
|
|
3625
|
-
n[a +
|
|
3624
|
+
for (var f = 0; f < d; f++)
|
|
3625
|
+
n[a + f] ^= g[f];
|
|
3626
3626
|
}
|
|
3627
3627
|
});
|
|
3628
3628
|
return s.Decryptor = i, s;
|
|
@@ -3656,9 +3656,9 @@ function S0() {
|
|
|
3656
3656
|
}
|
|
3657
3657
|
var a = s.Encryptor = s.extend({
|
|
3658
3658
|
processBlock: function(o, d) {
|
|
3659
|
-
var c = this._cipher, l = c.blockSize, g = this._iv,
|
|
3660
|
-
g && (
|
|
3661
|
-
var y =
|
|
3659
|
+
var c = this._cipher, l = c.blockSize, g = this._iv, f = this._counter;
|
|
3660
|
+
g && (f = this._counter = g.slice(0), this._iv = void 0), n(f);
|
|
3661
|
+
var y = f.slice(0);
|
|
3662
3662
|
c.encryptBlock(y, 0);
|
|
3663
3663
|
for (var w = 0; w < l; w++)
|
|
3664
3664
|
o[d + w] ^= y[w];
|
|
@@ -3856,17 +3856,17 @@ function O0() {
|
|
|
3856
3856
|
r.exports = s(oe(), fr(), gr(), tr(), Ne());
|
|
3857
3857
|
})(re, function(t) {
|
|
3858
3858
|
return function() {
|
|
3859
|
-
var s = t, i = s.lib, n = i.BlockCipher, a = s.algo, o = [], d = [], c = [], l = [], g = [],
|
|
3859
|
+
var s = t, i = s.lib, n = i.BlockCipher, a = s.algo, o = [], d = [], c = [], l = [], g = [], f = [], y = [], w = [], b = [], C = [];
|
|
3860
3860
|
(function() {
|
|
3861
3861
|
for (var E = [], _ = 0; _ < 256; _++)
|
|
3862
3862
|
_ < 128 ? E[_] = _ << 1 : E[_] = _ << 1 ^ 283;
|
|
3863
3863
|
for (var S = 0, T = 0, _ = 0; _ < 256; _++) {
|
|
3864
3864
|
var R = T ^ T << 1 ^ T << 2 ^ T << 3 ^ T << 4;
|
|
3865
3865
|
R = R >>> 8 ^ R & 255 ^ 99, o[S] = R, d[R] = S;
|
|
3866
|
-
var h = E[S], N = E[h], A = E[N],
|
|
3867
|
-
c[S] =
|
|
3868
|
-
var
|
|
3869
|
-
y[R] =
|
|
3866
|
+
var h = E[S], N = E[h], A = E[N], u = E[R] * 257 ^ R * 16843008;
|
|
3867
|
+
c[S] = u << 24 | u >>> 8, l[S] = u << 16 | u >>> 16, g[S] = u << 8 | u >>> 24, f[S] = u;
|
|
3868
|
+
var u = A * 16843009 ^ N * 65537 ^ h * 257 ^ S * 16843008;
|
|
3869
|
+
y[R] = u << 24 | u >>> 8, w[R] = u << 16 | u >>> 16, b[R] = u << 8 | u >>> 24, C[R] = u, S ? (S = h ^ E[E[E[A ^ h]]], T ^= E[E[T]]) : S = T = 1;
|
|
3870
3870
|
}
|
|
3871
3871
|
})();
|
|
3872
3872
|
var x = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], p = a.AES = n.extend({
|
|
@@ -3875,18 +3875,18 @@ function O0() {
|
|
|
3875
3875
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3876
3876
|
for (var _ = this._keyPriorReset = this._key, S = _.words, T = _.sigBytes / 4, R = this._nRounds = T + 6, h = (R + 1) * 4, N = this._keySchedule = [], A = 0; A < h; A++)
|
|
3877
3877
|
A < T ? N[A] = S[A] : (E = N[A - 1], A % T ? T > 6 && A % T == 4 && (E = o[E >>> 24] << 24 | o[E >>> 16 & 255] << 16 | o[E >>> 8 & 255] << 8 | o[E & 255]) : (E = E << 8 | E >>> 24, E = o[E >>> 24] << 24 | o[E >>> 16 & 255] << 16 | o[E >>> 8 & 255] << 8 | o[E & 255], E ^= x[A / T | 0] << 24), N[A] = N[A - T] ^ E);
|
|
3878
|
-
for (var
|
|
3878
|
+
for (var u = this._invKeySchedule = [], v = 0; v < h; v++) {
|
|
3879
3879
|
var A = h - v;
|
|
3880
3880
|
if (v % 4)
|
|
3881
3881
|
var E = N[A];
|
|
3882
3882
|
else
|
|
3883
3883
|
var E = N[A - 4];
|
|
3884
|
-
v < 4 || A <= 4 ?
|
|
3884
|
+
v < 4 || A <= 4 ? u[v] = E : u[v] = y[o[E >>> 24]] ^ w[o[E >>> 16 & 255]] ^ b[o[E >>> 8 & 255]] ^ C[o[E & 255]];
|
|
3885
3885
|
}
|
|
3886
3886
|
}
|
|
3887
3887
|
},
|
|
3888
3888
|
encryptBlock: function(E, _) {
|
|
3889
|
-
this._doCryptBlock(E, _, this._keySchedule, c, l, g,
|
|
3889
|
+
this._doCryptBlock(E, _, this._keySchedule, c, l, g, f, o);
|
|
3890
3890
|
},
|
|
3891
3891
|
decryptBlock: function(E, _) {
|
|
3892
3892
|
var S = E[_ + 1];
|
|
@@ -3895,7 +3895,7 @@ function O0() {
|
|
|
3895
3895
|
E[_ + 1] = E[_ + 3], E[_ + 3] = S;
|
|
3896
3896
|
},
|
|
3897
3897
|
_doCryptBlock: function(E, _, S, T, R, h, N, A) {
|
|
3898
|
-
for (var
|
|
3898
|
+
for (var u = this._nRounds, v = E[_] ^ S[0], m = E[_ + 1] ^ S[1], U = E[_ + 2] ^ S[2], q = E[_ + 3] ^ S[3], X = 4, W = 1; W < u; W++) {
|
|
3899
3899
|
var se = T[v >>> 24] ^ R[m >>> 16 & 255] ^ h[U >>> 8 & 255] ^ N[q & 255] ^ S[X++], de = T[m >>> 24] ^ R[U >>> 16 & 255] ^ h[q >>> 8 & 255] ^ N[v & 255] ^ S[X++], he = T[U >>> 24] ^ R[q >>> 16 & 255] ^ h[v >>> 8 & 255] ^ N[m & 255] ^ S[X++], I = T[q >>> 24] ^ R[v >>> 16 & 255] ^ h[m >>> 8 & 255] ^ N[U & 255] ^ S[X++];
|
|
3900
3900
|
v = se, m = de, U = he, q = I;
|
|
3901
3901
|
}
|
|
@@ -4551,7 +4551,7 @@ function N0() {
|
|
|
4551
4551
|
2147483678: 131104,
|
|
4552
4552
|
2147483679: 134350848
|
|
4553
4553
|
}
|
|
4554
|
-
],
|
|
4554
|
+
], f = [
|
|
4555
4555
|
4160749569,
|
|
4556
4556
|
528482304,
|
|
4557
4557
|
33030144,
|
|
@@ -4587,7 +4587,7 @@ function N0() {
|
|
|
4587
4587
|
this._lBlock = x[p], this._rBlock = x[p + 1], w.call(this, 4, 252645135), w.call(this, 16, 65535), b.call(this, 2, 858993459), b.call(this, 8, 16711935), w.call(this, 1, 1431655765);
|
|
4588
4588
|
for (var _ = 0; _ < 16; _++) {
|
|
4589
4589
|
for (var S = E[_], T = this._lBlock, R = this._rBlock, h = 0, N = 0; N < 8; N++)
|
|
4590
|
-
h |= g[N][((R ^ S[N]) &
|
|
4590
|
+
h |= g[N][((R ^ S[N]) & f[N]) >>> 0];
|
|
4591
4591
|
this._lBlock = R, this._rBlock = T ^ h;
|
|
4592
4592
|
}
|
|
4593
4593
|
var A = this._lBlock;
|
|
@@ -4638,10 +4638,10 @@ function M0() {
|
|
|
4638
4638
|
return function() {
|
|
4639
4639
|
var s = t, i = s.lib, n = i.StreamCipher, a = s.algo, o = a.RC4 = n.extend({
|
|
4640
4640
|
_doReset: function() {
|
|
4641
|
-
for (var l = this._key, g = l.words,
|
|
4641
|
+
for (var l = this._key, g = l.words, f = l.sigBytes, y = this._S = [], w = 0; w < 256; w++)
|
|
4642
4642
|
y[w] = w;
|
|
4643
4643
|
for (var w = 0, b = 0; w < 256; w++) {
|
|
4644
|
-
var C = w %
|
|
4644
|
+
var C = w % f, x = g[C >>> 2] >>> 24 - C % 4 * 8 & 255;
|
|
4645
4645
|
b = (b + y[w] + x) % 256;
|
|
4646
4646
|
var p = y[w];
|
|
4647
4647
|
y[w] = y[b], y[b] = p;
|
|
@@ -4655,12 +4655,12 @@ function M0() {
|
|
|
4655
4655
|
ivSize: 0
|
|
4656
4656
|
});
|
|
4657
4657
|
function d() {
|
|
4658
|
-
for (var l = this._S, g = this._i,
|
|
4659
|
-
g = (g + 1) % 256,
|
|
4658
|
+
for (var l = this._S, g = this._i, f = this._j, y = 0, w = 0; w < 4; w++) {
|
|
4659
|
+
g = (g + 1) % 256, f = (f + l[g]) % 256;
|
|
4660
4660
|
var b = l[g];
|
|
4661
|
-
l[g] = l[
|
|
4661
|
+
l[g] = l[f], l[f] = b, y |= l[(l[g] + l[f]) % 256] << 24 - w * 8;
|
|
4662
4662
|
}
|
|
4663
|
-
return this._i = g, this._j =
|
|
4663
|
+
return this._i = g, this._j = f, y;
|
|
4664
4664
|
}
|
|
4665
4665
|
s.RC4 = n._createHelper(o);
|
|
4666
4666
|
var c = a.RC4Drop = o.extend({
|
|
@@ -4692,26 +4692,26 @@ function q0() {
|
|
|
4692
4692
|
return function() {
|
|
4693
4693
|
var s = t, i = s.lib, n = i.StreamCipher, a = s.algo, o = [], d = [], c = [], l = a.Rabbit = n.extend({
|
|
4694
4694
|
_doReset: function() {
|
|
4695
|
-
for (var
|
|
4696
|
-
|
|
4695
|
+
for (var f = this._key.words, y = this.cfg.iv, w = 0; w < 4; w++)
|
|
4696
|
+
f[w] = (f[w] << 8 | f[w] >>> 24) & 16711935 | (f[w] << 24 | f[w] >>> 8) & 4278255360;
|
|
4697
4697
|
var b = this._X = [
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4698
|
+
f[0],
|
|
4699
|
+
f[3] << 16 | f[2] >>> 16,
|
|
4700
|
+
f[1],
|
|
4701
|
+
f[0] << 16 | f[3] >>> 16,
|
|
4702
|
+
f[2],
|
|
4703
|
+
f[1] << 16 | f[0] >>> 16,
|
|
4704
|
+
f[3],
|
|
4705
|
+
f[2] << 16 | f[1] >>> 16
|
|
4706
4706
|
], C = this._C = [
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4707
|
+
f[2] << 16 | f[2] >>> 16,
|
|
4708
|
+
f[0] & 4294901760 | f[1] & 65535,
|
|
4709
|
+
f[3] << 16 | f[3] >>> 16,
|
|
4710
|
+
f[1] & 4294901760 | f[2] & 65535,
|
|
4711
|
+
f[0] << 16 | f[0] >>> 16,
|
|
4712
|
+
f[2] & 4294901760 | f[3] & 65535,
|
|
4713
|
+
f[1] << 16 | f[1] >>> 16,
|
|
4714
|
+
f[3] & 4294901760 | f[0] & 65535
|
|
4715
4715
|
];
|
|
4716
4716
|
this._b = 0;
|
|
4717
4717
|
for (var w = 0; w < 4; w++)
|
|
@@ -4725,24 +4725,24 @@ function q0() {
|
|
|
4725
4725
|
g.call(this);
|
|
4726
4726
|
}
|
|
4727
4727
|
},
|
|
4728
|
-
_doProcessBlock: function(
|
|
4728
|
+
_doProcessBlock: function(f, y) {
|
|
4729
4729
|
var w = this._X;
|
|
4730
4730
|
g.call(this), o[0] = w[0] ^ w[5] >>> 16 ^ w[3] << 16, o[1] = w[2] ^ w[7] >>> 16 ^ w[5] << 16, o[2] = w[4] ^ w[1] >>> 16 ^ w[7] << 16, o[3] = w[6] ^ w[3] >>> 16 ^ w[1] << 16;
|
|
4731
4731
|
for (var b = 0; b < 4; b++)
|
|
4732
|
-
o[b] = (o[b] << 8 | o[b] >>> 24) & 16711935 | (o[b] << 24 | o[b] >>> 8) & 4278255360,
|
|
4732
|
+
o[b] = (o[b] << 8 | o[b] >>> 24) & 16711935 | (o[b] << 24 | o[b] >>> 8) & 4278255360, f[y + b] ^= o[b];
|
|
4733
4733
|
},
|
|
4734
4734
|
blockSize: 128 / 32,
|
|
4735
4735
|
ivSize: 64 / 32
|
|
4736
4736
|
});
|
|
4737
4737
|
function g() {
|
|
4738
|
-
for (var
|
|
4738
|
+
for (var f = this._X, y = this._C, w = 0; w < 8; w++)
|
|
4739
4739
|
d[w] = y[w];
|
|
4740
4740
|
y[0] = y[0] + 1295307597 + this._b | 0, y[1] = y[1] + 3545052371 + (y[0] >>> 0 < d[0] >>> 0 ? 1 : 0) | 0, y[2] = y[2] + 886263092 + (y[1] >>> 0 < d[1] >>> 0 ? 1 : 0) | 0, y[3] = y[3] + 1295307597 + (y[2] >>> 0 < d[2] >>> 0 ? 1 : 0) | 0, y[4] = y[4] + 3545052371 + (y[3] >>> 0 < d[3] >>> 0 ? 1 : 0) | 0, y[5] = y[5] + 886263092 + (y[4] >>> 0 < d[4] >>> 0 ? 1 : 0) | 0, y[6] = y[6] + 1295307597 + (y[5] >>> 0 < d[5] >>> 0 ? 1 : 0) | 0, y[7] = y[7] + 3545052371 + (y[6] >>> 0 < d[6] >>> 0 ? 1 : 0) | 0, this._b = y[7] >>> 0 < d[7] >>> 0 ? 1 : 0;
|
|
4741
4741
|
for (var w = 0; w < 8; w++) {
|
|
4742
|
-
var b =
|
|
4742
|
+
var b = f[w] + y[w], C = b & 65535, x = b >>> 16, p = ((C * C >>> 17) + C * x >>> 15) + x * x, E = ((b & 4294901760) * b | 0) + ((b & 65535) * b | 0);
|
|
4743
4743
|
c[w] = p ^ E;
|
|
4744
4744
|
}
|
|
4745
|
-
|
|
4745
|
+
f[0] = c[0] + (c[7] << 16 | c[7] >>> 16) + (c[6] << 16 | c[6] >>> 16) | 0, f[1] = c[1] + (c[0] << 8 | c[0] >>> 24) + c[7] | 0, f[2] = c[2] + (c[1] << 16 | c[1] >>> 16) + (c[0] << 16 | c[0] >>> 16) | 0, f[3] = c[3] + (c[2] << 8 | c[2] >>> 24) + c[1] | 0, f[4] = c[4] + (c[3] << 16 | c[3] >>> 16) + (c[2] << 16 | c[2] >>> 16) | 0, f[5] = c[5] + (c[4] << 8 | c[4] >>> 24) + c[3] | 0, f[6] = c[6] + (c[5] << 16 | c[5] >>> 16) + (c[4] << 16 | c[4] >>> 16) | 0, f[7] = c[7] + (c[6] << 8 | c[6] >>> 24) + c[5] | 0;
|
|
4746
4746
|
}
|
|
4747
4747
|
s.Rabbit = n._createHelper(l);
|
|
4748
4748
|
}(), t.Rabbit;
|
|
@@ -4758,24 +4758,24 @@ function j0() {
|
|
|
4758
4758
|
return function() {
|
|
4759
4759
|
var s = t, i = s.lib, n = i.StreamCipher, a = s.algo, o = [], d = [], c = [], l = a.RabbitLegacy = n.extend({
|
|
4760
4760
|
_doReset: function() {
|
|
4761
|
-
var
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4761
|
+
var f = this._key.words, y = this.cfg.iv, w = this._X = [
|
|
4762
|
+
f[0],
|
|
4763
|
+
f[3] << 16 | f[2] >>> 16,
|
|
4764
|
+
f[1],
|
|
4765
|
+
f[0] << 16 | f[3] >>> 16,
|
|
4766
|
+
f[2],
|
|
4767
|
+
f[1] << 16 | f[0] >>> 16,
|
|
4768
|
+
f[3],
|
|
4769
|
+
f[2] << 16 | f[1] >>> 16
|
|
4770
4770
|
], b = this._C = [
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4771
|
+
f[2] << 16 | f[2] >>> 16,
|
|
4772
|
+
f[0] & 4294901760 | f[1] & 65535,
|
|
4773
|
+
f[3] << 16 | f[3] >>> 16,
|
|
4774
|
+
f[1] & 4294901760 | f[2] & 65535,
|
|
4775
|
+
f[0] << 16 | f[0] >>> 16,
|
|
4776
|
+
f[2] & 4294901760 | f[3] & 65535,
|
|
4777
|
+
f[1] << 16 | f[1] >>> 16,
|
|
4778
|
+
f[3] & 4294901760 | f[0] & 65535
|
|
4779
4779
|
];
|
|
4780
4780
|
this._b = 0;
|
|
4781
4781
|
for (var C = 0; C < 4; C++)
|
|
@@ -4789,24 +4789,24 @@ function j0() {
|
|
|
4789
4789
|
g.call(this);
|
|
4790
4790
|
}
|
|
4791
4791
|
},
|
|
4792
|
-
_doProcessBlock: function(
|
|
4792
|
+
_doProcessBlock: function(f, y) {
|
|
4793
4793
|
var w = this._X;
|
|
4794
4794
|
g.call(this), o[0] = w[0] ^ w[5] >>> 16 ^ w[3] << 16, o[1] = w[2] ^ w[7] >>> 16 ^ w[5] << 16, o[2] = w[4] ^ w[1] >>> 16 ^ w[7] << 16, o[3] = w[6] ^ w[3] >>> 16 ^ w[1] << 16;
|
|
4795
4795
|
for (var b = 0; b < 4; b++)
|
|
4796
|
-
o[b] = (o[b] << 8 | o[b] >>> 24) & 16711935 | (o[b] << 24 | o[b] >>> 8) & 4278255360,
|
|
4796
|
+
o[b] = (o[b] << 8 | o[b] >>> 24) & 16711935 | (o[b] << 24 | o[b] >>> 8) & 4278255360, f[y + b] ^= o[b];
|
|
4797
4797
|
},
|
|
4798
4798
|
blockSize: 128 / 32,
|
|
4799
4799
|
ivSize: 64 / 32
|
|
4800
4800
|
});
|
|
4801
4801
|
function g() {
|
|
4802
|
-
for (var
|
|
4802
|
+
for (var f = this._X, y = this._C, w = 0; w < 8; w++)
|
|
4803
4803
|
d[w] = y[w];
|
|
4804
4804
|
y[0] = y[0] + 1295307597 + this._b | 0, y[1] = y[1] + 3545052371 + (y[0] >>> 0 < d[0] >>> 0 ? 1 : 0) | 0, y[2] = y[2] + 886263092 + (y[1] >>> 0 < d[1] >>> 0 ? 1 : 0) | 0, y[3] = y[3] + 1295307597 + (y[2] >>> 0 < d[2] >>> 0 ? 1 : 0) | 0, y[4] = y[4] + 3545052371 + (y[3] >>> 0 < d[3] >>> 0 ? 1 : 0) | 0, y[5] = y[5] + 886263092 + (y[4] >>> 0 < d[4] >>> 0 ? 1 : 0) | 0, y[6] = y[6] + 1295307597 + (y[5] >>> 0 < d[5] >>> 0 ? 1 : 0) | 0, y[7] = y[7] + 3545052371 + (y[6] >>> 0 < d[6] >>> 0 ? 1 : 0) | 0, this._b = y[7] >>> 0 < d[7] >>> 0 ? 1 : 0;
|
|
4805
4805
|
for (var w = 0; w < 8; w++) {
|
|
4806
|
-
var b =
|
|
4806
|
+
var b = f[w] + y[w], C = b & 65535, x = b >>> 16, p = ((C * C >>> 17) + C * x >>> 15) + x * x, E = ((b & 4294901760) * b | 0) + ((b & 65535) * b | 0);
|
|
4807
4807
|
c[w] = p ^ E;
|
|
4808
4808
|
}
|
|
4809
|
-
|
|
4809
|
+
f[0] = c[0] + (c[7] << 16 | c[7] >>> 16) + (c[6] << 16 | c[6] >>> 16) | 0, f[1] = c[1] + (c[0] << 8 | c[0] >>> 24) + c[7] | 0, f[2] = c[2] + (c[1] << 16 | c[1] >>> 16) + (c[0] << 16 | c[0] >>> 16) | 0, f[3] = c[3] + (c[2] << 8 | c[2] >>> 24) + c[1] | 0, f[4] = c[4] + (c[3] << 16 | c[3] >>> 16) + (c[2] << 16 | c[2] >>> 16) | 0, f[5] = c[5] + (c[4] << 8 | c[4] >>> 24) + c[3] | 0, f[6] = c[6] + (c[5] << 16 | c[5] >>> 16) + (c[4] << 16 | c[4] >>> 16) | 0, f[7] = c[7] + (c[6] << 8 | c[6] >>> 24) + c[5] | 0;
|
|
4810
4810
|
}
|
|
4811
4811
|
s.RabbitLegacy = n._createHelper(l);
|
|
4812
4812
|
}(), t.RabbitLegacy;
|
|
@@ -5882,7 +5882,7 @@ function U0() {
|
|
|
5882
5882
|
let p = x >> 24 & 255, E = x >> 16 & 255, _ = x >> 8 & 255, S = x & 255, T = C.sbox[0][p] + C.sbox[1][E];
|
|
5883
5883
|
return T = T ^ C.sbox[2][_], T = T + C.sbox[3][S], T;
|
|
5884
5884
|
}
|
|
5885
|
-
function
|
|
5885
|
+
function f(C, x, p) {
|
|
5886
5886
|
let E = x, _ = p, S;
|
|
5887
5887
|
for (let T = 0; T < o; ++T)
|
|
5888
5888
|
E = E ^ C.pbox[T], _ = g(C, E) ^ _, S = E, E = _, _ = S;
|
|
@@ -5905,10 +5905,10 @@ function U0() {
|
|
|
5905
5905
|
C.pbox[R] = d[R] ^ x[E], E++, E >= p && (E = 0);
|
|
5906
5906
|
let _ = 0, S = 0, T = 0;
|
|
5907
5907
|
for (let R = 0; R < o + 2; R += 2)
|
|
5908
|
-
T =
|
|
5908
|
+
T = f(C, _, S), _ = T.left, S = T.right, C.pbox[R] = _, C.pbox[R + 1] = S;
|
|
5909
5909
|
for (let R = 0; R < 4; R++)
|
|
5910
5910
|
for (let h = 0; h < 256; h += 2)
|
|
5911
|
-
T =
|
|
5911
|
+
T = f(C, _, S), _ = T.left, S = T.right, C.sbox[R][h] = _, C.sbox[R][h + 1] = S;
|
|
5912
5912
|
return !0;
|
|
5913
5913
|
}
|
|
5914
5914
|
var b = a.Blowfish = n.extend({
|
|
@@ -5919,7 +5919,7 @@ function U0() {
|
|
|
5919
5919
|
}
|
|
5920
5920
|
},
|
|
5921
5921
|
encryptBlock: function(C, x) {
|
|
5922
|
-
var p =
|
|
5922
|
+
var p = f(l, C[x], C[x + 1]);
|
|
5923
5923
|
C[x] = p.left, C[x + 1] = p.right;
|
|
5924
5924
|
},
|
|
5925
5925
|
decryptBlock: function(C, x) {
|
|
@@ -6058,7 +6058,7 @@ function Y0({
|
|
|
6058
6058
|
showAuxButton: t = !1,
|
|
6059
6059
|
auxOptions: s = []
|
|
6060
6060
|
}) {
|
|
6061
|
-
const [i, n] = Be(""), [a, o] = Be("Idle"), [d, c] = Be("00:00"), [l, g] = Be(!1), [
|
|
6061
|
+
const [i, n] = Be(""), [a, o] = Be("Idle"), [d, c] = Be("00:00"), [l, g] = Be(!1), [f, y] = Be(!1), [w, b] = Be(!1), [C, x] = Be(""), [p, E] = Be(""), [_, S] = Be(""), [T, R] = Be(r), [h, N] = Be(""), [A, u] = Be(
|
|
6062
6062
|
e && r === "REGISTERED" ? "READY" : "NOT_READY"
|
|
6063
6063
|
), [v, m] = Be(!1), [U, q] = Be(null), X = zo((j) => {
|
|
6064
6064
|
E(j), setTimeout(() => E(""), 4e3);
|
|
@@ -6076,10 +6076,10 @@ function Y0({
|
|
|
6076
6076
|
}),
|
|
6077
6077
|
Z.on("register_status", (z) => {
|
|
6078
6078
|
const we = typeof z == "string" ? z : (z == null ? void 0 : z.status) ?? "FAILED", st = typeof z == "object" ? z == null ? void 0 : z.reason : "";
|
|
6079
|
-
R(we), N(we === "FAILED" ? st || "Failed to connect to Voice Platform" : ""), we !== "REGISTERED" &&
|
|
6079
|
+
R(we), N(we === "FAILED" ? st || "Failed to connect to Voice Platform" : ""), we !== "REGISTERED" && u("NOT_READY");
|
|
6080
6080
|
}),
|
|
6081
6081
|
Z.on("agent_status", (z) => {
|
|
6082
|
-
|
|
6082
|
+
u(z), z !== "AUX" && q(null);
|
|
6083
6083
|
}),
|
|
6084
6084
|
Z.on("call_failed", (z) => X(z || "Call Failed"))
|
|
6085
6085
|
];
|
|
@@ -6099,12 +6099,12 @@ function Y0({
|
|
|
6099
6099
|
const st = await Ve.updateExtensionStatus(we, j, z);
|
|
6100
6100
|
return m(!1), st;
|
|
6101
6101
|
}, se = async () => {
|
|
6102
|
-
await W("Ready", "ready") && (
|
|
6102
|
+
await W("Ready", "ready") && (u("READY"), q(null), Z.emitLocal("agent_status", "READY"));
|
|
6103
6103
|
}, de = async () => {
|
|
6104
|
-
await W("Logout", "not_ready") && (
|
|
6104
|
+
await W("Logout", "not_ready") && (u("NOT_READY"), q(null), Z.emitLocal("agent_status", "NOT_READY"));
|
|
6105
6105
|
}, he = async (j = null) => {
|
|
6106
6106
|
const z = (j == null ? void 0 : j.code) || "AUX", we = (j == null ? void 0 : j.label) || "AUX";
|
|
6107
|
-
await W("AUX", z) && (
|
|
6107
|
+
await W("AUX", z) && (u("AUX"), q({ code: z, label: we }), Z.emitLocal("agent_status", "AUX")), setShowAuxMenu(!1);
|
|
6108
6108
|
}, I = () => {
|
|
6109
6109
|
const j = i.trim();
|
|
6110
6110
|
j && Z.emitLocal("local_dial", { number: j });
|
|
@@ -6114,7 +6114,7 @@ function Y0({
|
|
|
6114
6114
|
const j = !l;
|
|
6115
6115
|
g(j), Z.emitLocal("local_toggle_mute", { muted: j });
|
|
6116
6116
|
}, Re = () => {
|
|
6117
|
-
Z.emitLocal("local_toggle_hold", { isOnHold:
|
|
6117
|
+
Z.emitLocal("local_toggle_hold", { isOnHold: f, setIsOnHold: y });
|
|
6118
6118
|
};
|
|
6119
6119
|
return a === "Ringing" ? /* @__PURE__ */ F.jsxs(Ur, { error: p, children: [
|
|
6120
6120
|
/* @__PURE__ */ F.jsxs("div", { className: "flex flex-col items-center justify-center px-6 py-10 gap-7 min-h-[300px] animate-fadeIn", children: [
|
|
@@ -6158,20 +6158,20 @@ function Y0({
|
|
|
6158
6158
|
) : (
|
|
6159
6159
|
/* Active call view */
|
|
6160
6160
|
/* @__PURE__ */ F.jsxs("div", { className: "flex flex-col items-center justify-center px-6 py-10 gap-7 min-h-[300px] animate-fadeIn", children: [
|
|
6161
|
-
/* @__PURE__ */ F.jsx(Oi, { color:
|
|
6161
|
+
/* @__PURE__ */ F.jsx(Oi, { color: f ? "primary" : "green", pulse: !f, children: f ? /* @__PURE__ */ F.jsx(Pn, { className: "w-9 h-9 text-primary" }) : /* @__PURE__ */ F.jsx(On, { className: "w-9 h-9 text-green-600" }) }),
|
|
6162
6162
|
/* @__PURE__ */ F.jsxs("div", { className: "text-center space-y-1", children: [
|
|
6163
6163
|
/* @__PURE__ */ F.jsx("p", { className: "text-base font-bold text-gray-800 leading-tight", children: _ || i || "Connected" }),
|
|
6164
6164
|
_ && /* @__PURE__ */ F.jsx("p", { className: "text-xs font-mono text-gray-400 tracking-wider", children: i }),
|
|
6165
6165
|
/* @__PURE__ */ F.jsxs("div", { className: "flex items-center justify-center gap-2 mt-1", children: [
|
|
6166
|
-
!
|
|
6167
|
-
/* @__PURE__ */ F.jsx("span", { className: `text-sm font-mono font-semibold ${
|
|
6166
|
+
!f && /* @__PURE__ */ F.jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse" }),
|
|
6167
|
+
/* @__PURE__ */ F.jsx("span", { className: `text-sm font-mono font-semibold ${f ? "text-primary" : "text-green-600"}`, children: f ? "On Hold" : d })
|
|
6168
6168
|
] })
|
|
6169
6169
|
] })
|
|
6170
6170
|
] })
|
|
6171
6171
|
),
|
|
6172
6172
|
/* @__PURE__ */ F.jsx("div", { className: "border-t border-gray-100 bg-gray-50/60 px-6 py-4", children: /* @__PURE__ */ F.jsxs("div", { className: "flex items-center justify-between gap-2 max-w-[260px] mx-auto", children: [
|
|
6173
6173
|
/* @__PURE__ */ F.jsx(Mi, { onClick: ue, active: l, activeColor: "red", title: l ? "Unmute" : "Mute", children: l ? /* @__PURE__ */ F.jsx(o0, { className: "w-[18px] h-[18px]" }) : /* @__PURE__ */ F.jsx(c0, { className: "w-[18px] h-[18px]" }) }),
|
|
6174
|
-
/* @__PURE__ */ F.jsx(Mi, { onClick: Re, active:
|
|
6174
|
+
/* @__PURE__ */ F.jsx(Mi, { onClick: Re, active: f, activeColor: "primary", title: f ? "Resume" : "Hold", children: f ? /* @__PURE__ */ F.jsx(d0, { className: "w-[18px] h-[18px]" }) : /* @__PURE__ */ F.jsx(Pn, { className: "w-[18px] h-[18px]" }) }),
|
|
6175
6175
|
/* @__PURE__ */ F.jsx(
|
|
6176
6176
|
Mi,
|
|
6177
6177
|
{
|
|
@@ -6338,7 +6338,7 @@ function W0({
|
|
|
6338
6338
|
};
|
|
6339
6339
|
return document.addEventListener("mousedown", p), () => document.removeEventListener("mousedown", p);
|
|
6340
6340
|
}, []);
|
|
6341
|
-
const
|
|
6341
|
+
const f = Ea[r] || Ea.NOT_READY, y = r === "AUX" && e ? `AUX: ${e.label}` : f.label, w = !s || i, b = () => {
|
|
6342
6342
|
l(!1), a();
|
|
6343
6343
|
}, C = () => {
|
|
6344
6344
|
l(!1), o();
|
|
@@ -6346,8 +6346,8 @@ function W0({
|
|
|
6346
6346
|
l(!1), d(p);
|
|
6347
6347
|
};
|
|
6348
6348
|
return /* @__PURE__ */ F.jsx("div", { className: "border-t border-gray-100 bg-gray-50/70 px-4 py-3", children: /* @__PURE__ */ F.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
6349
|
-
/* @__PURE__ */ F.jsxs("div", { className: `flex items-center gap-1.5 px-2.5 py-1 rounded-full border text-xs font-semibold ${
|
|
6350
|
-
/* @__PURE__ */ F.jsx("span", { className: `w-1.5 h-1.5 rounded-full ${
|
|
6349
|
+
/* @__PURE__ */ F.jsxs("div", { className: `flex items-center gap-1.5 px-2.5 py-1 rounded-full border text-xs font-semibold ${f.bg} ${f.text}`, children: [
|
|
6350
|
+
/* @__PURE__ */ F.jsx("span", { className: `w-1.5 h-1.5 rounded-full ${f.dot}` }),
|
|
6351
6351
|
y
|
|
6352
6352
|
] }),
|
|
6353
6353
|
w && /* @__PURE__ */ F.jsxs("div", { className: "relative", ref: g, children: [
|
|
@@ -6835,11 +6835,11 @@ class Dr extends Error {
|
|
|
6835
6835
|
}
|
|
6836
6836
|
function o(c) {
|
|
6837
6837
|
const l = c.map(a);
|
|
6838
|
-
let g,
|
|
6838
|
+
let g, f;
|
|
6839
6839
|
if (l.sort(), l.length > 0) {
|
|
6840
|
-
for (g = 1,
|
|
6841
|
-
l[g - 1] !== l[g] && (l[
|
|
6842
|
-
l.length =
|
|
6840
|
+
for (g = 1, f = 1; g < l.length; g++)
|
|
6841
|
+
l[g - 1] !== l[g] && (l[f] = l[g], f++);
|
|
6842
|
+
l.length = f;
|
|
6843
6843
|
}
|
|
6844
6844
|
switch (l.length) {
|
|
6845
6845
|
case 1:
|
|
@@ -7013,8 +7013,8 @@ function J0(r, e) {
|
|
|
7013
7013
|
p([["*", "["]], !1, !1),
|
|
7014
7014
|
/^[\]-~]/,
|
|
7015
7015
|
p([["]", "~"]], !1, !1),
|
|
7016
|
-
function(
|
|
7017
|
-
return
|
|
7016
|
+
function(u) {
|
|
7017
|
+
return u;
|
|
7018
7018
|
},
|
|
7019
7019
|
/^[#-[]/,
|
|
7020
7020
|
p([["#", "["]], !1, !1),
|
|
@@ -7034,8 +7034,8 @@ function J0(r, e) {
|
|
|
7034
7034
|
x("sips", !0),
|
|
7035
7035
|
"sip",
|
|
7036
7036
|
x("sip", !0),
|
|
7037
|
-
function(
|
|
7038
|
-
e = e || { data: {} }, e.data.scheme =
|
|
7037
|
+
function(u) {
|
|
7038
|
+
e = e || { data: {} }, e.data.scheme = u;
|
|
7039
7039
|
},
|
|
7040
7040
|
function() {
|
|
7041
7041
|
e = e || { data: {} }, e.data.user = decodeURIComponent(b().slice(0, -1));
|
|
@@ -7076,8 +7076,8 @@ function J0(r, e) {
|
|
|
7076
7076
|
x("1", !1),
|
|
7077
7077
|
/^[1-9]/,
|
|
7078
7078
|
p([["1", "9"]], !1, !1),
|
|
7079
|
-
function(
|
|
7080
|
-
return e = e || { data: {} },
|
|
7079
|
+
function(u) {
|
|
7080
|
+
return e = e || { data: {} }, u = parseInt(u.join("")), e.data.port = u, u;
|
|
7081
7081
|
},
|
|
7082
7082
|
"transport=",
|
|
7083
7083
|
x("transport=", !0),
|
|
@@ -7089,8 +7089,8 @@ function J0(r, e) {
|
|
|
7089
7089
|
x("sctp", !0),
|
|
7090
7090
|
"tls",
|
|
7091
7091
|
x("tls", !0),
|
|
7092
|
-
function(
|
|
7093
|
-
e = e || { data: {} }, e.data.uri_params || (e.data.uri_params = {}), e.data.uri_params.transport =
|
|
7092
|
+
function(u) {
|
|
7093
|
+
e = e || { data: {} }, e.data.uri_params || (e.data.uri_params = {}), e.data.uri_params.transport = u.toLowerCase();
|
|
7094
7094
|
},
|
|
7095
7095
|
"user=",
|
|
7096
7096
|
x("user=", !0),
|
|
@@ -7098,34 +7098,34 @@ function J0(r, e) {
|
|
|
7098
7098
|
x("phone", !0),
|
|
7099
7099
|
"ip",
|
|
7100
7100
|
x("ip", !0),
|
|
7101
|
-
function(
|
|
7102
|
-
e = e || { data: {} }, e.data.uri_params || (e.data.uri_params = {}), e.data.uri_params.user =
|
|
7101
|
+
function(u) {
|
|
7102
|
+
e = e || { data: {} }, e.data.uri_params || (e.data.uri_params = {}), e.data.uri_params.user = u.toLowerCase();
|
|
7103
7103
|
},
|
|
7104
7104
|
"method=",
|
|
7105
7105
|
x("method=", !0),
|
|
7106
|
-
function(
|
|
7107
|
-
e = e || { data: {} }, e.data.uri_params || (e.data.uri_params = {}), e.data.uri_params.method =
|
|
7106
|
+
function(u) {
|
|
7107
|
+
e = e || { data: {} }, e.data.uri_params || (e.data.uri_params = {}), e.data.uri_params.method = u;
|
|
7108
7108
|
},
|
|
7109
7109
|
"ttl=",
|
|
7110
7110
|
x("ttl=", !0),
|
|
7111
|
-
function(
|
|
7112
|
-
e = e || { data: {} }, e.data.params || (e.data.params = {}), e.data.params.ttl =
|
|
7111
|
+
function(u) {
|
|
7112
|
+
e = e || { data: {} }, e.data.params || (e.data.params = {}), e.data.params.ttl = u;
|
|
7113
7113
|
},
|
|
7114
7114
|
"maddr=",
|
|
7115
7115
|
x("maddr=", !0),
|
|
7116
|
-
function(
|
|
7117
|
-
e = e || { data: {} }, e.data.uri_params || (e.data.uri_params = {}), e.data.uri_params.maddr =
|
|
7116
|
+
function(u) {
|
|
7117
|
+
e = e || { data: {} }, e.data.uri_params || (e.data.uri_params = {}), e.data.uri_params.maddr = u;
|
|
7118
7118
|
},
|
|
7119
7119
|
"lr",
|
|
7120
7120
|
x("lr", !0),
|
|
7121
7121
|
function() {
|
|
7122
7122
|
e = e || { data: {} }, e.data.uri_params || (e.data.uri_params = {}), e.data.uri_params.lr = void 0;
|
|
7123
7123
|
},
|
|
7124
|
-
function(
|
|
7125
|
-
e = e || { data: {} }, e.data.uri_params || (e.data.uri_params = {}), v === null ? v = void 0 : v = v[1], e.data.uri_params[
|
|
7124
|
+
function(u, v) {
|
|
7125
|
+
e = e || { data: {} }, e.data.uri_params || (e.data.uri_params = {}), v === null ? v = void 0 : v = v[1], e.data.uri_params[u.toLowerCase()] = v;
|
|
7126
7126
|
},
|
|
7127
|
-
function(
|
|
7128
|
-
|
|
7127
|
+
function(u, v) {
|
|
7128
|
+
u = u.join("").toLowerCase(), v = v.join(""), e = e || { data: {} }, e.data.uri_headers || (e.data.uri_headers = {}), e.data.uri_headers[u] ? e.data.uri_headers[u].push(v) : e.data.uri_headers[u] = [v];
|
|
7129
7129
|
},
|
|
7130
7130
|
function() {
|
|
7131
7131
|
e = e || { data: {} }, e.startRule === "Refer_To" && (e.data.uri = new At(e.data.scheme, e.data.user, e.data.host, e.data.port, e.data.uri_params, e.data.uri_headers), delete e.data.scheme, delete e.data.user, delete e.data.host, delete e.data.host_type, delete e.data.port, delete e.data.uri_params);
|
|
@@ -7164,8 +7164,8 @@ function J0(r, e) {
|
|
|
7164
7164
|
function() {
|
|
7165
7165
|
return e = e || { data: {} }, e.data.method = b(), e.data.method;
|
|
7166
7166
|
},
|
|
7167
|
-
function(
|
|
7168
|
-
e = e || { data: {} }, e.data.status_code = parseInt(
|
|
7167
|
+
function(u) {
|
|
7168
|
+
e = e || { data: {} }, e.data.status_code = parseInt(u.join(""));
|
|
7169
7169
|
},
|
|
7170
7170
|
function() {
|
|
7171
7171
|
e = e || { data: {} }, e.data.reason_phrase = b();
|
|
@@ -7174,51 +7174,51 @@ function J0(r, e) {
|
|
|
7174
7174
|
e = e || { data: {} }, e.data = b();
|
|
7175
7175
|
},
|
|
7176
7176
|
function() {
|
|
7177
|
-
var
|
|
7178
|
-
for (e = e || { data: {} }, v = e.data.multi_header.length,
|
|
7179
|
-
if (e.data.multi_header[
|
|
7177
|
+
var u, v;
|
|
7178
|
+
for (e = e || { data: {} }, v = e.data.multi_header.length, u = 0; u < v; u++)
|
|
7179
|
+
if (e.data.multi_header[u].parsed === null) {
|
|
7180
7180
|
e.data = null;
|
|
7181
7181
|
break;
|
|
7182
7182
|
}
|
|
7183
7183
|
e.data !== null ? e.data = e.data.multi_header : e.data = -1;
|
|
7184
7184
|
},
|
|
7185
7185
|
function() {
|
|
7186
|
-
var
|
|
7186
|
+
var u;
|
|
7187
7187
|
e = e || { data: {} }, e.data.multi_header || (e.data.multi_header = []);
|
|
7188
7188
|
try {
|
|
7189
|
-
|
|
7189
|
+
u = new Xe(e.data.uri, e.data.displayName, e.data.params), delete e.data.uri, delete e.data.displayName, delete e.data.params;
|
|
7190
7190
|
} catch {
|
|
7191
|
-
|
|
7191
|
+
u = null;
|
|
7192
7192
|
}
|
|
7193
7193
|
e.data.multi_header.push({
|
|
7194
7194
|
position: d,
|
|
7195
7195
|
offset: C().start.offset,
|
|
7196
|
-
parsed:
|
|
7196
|
+
parsed: u
|
|
7197
7197
|
});
|
|
7198
7198
|
},
|
|
7199
|
-
function(
|
|
7200
|
-
|
|
7199
|
+
function(u) {
|
|
7200
|
+
u = b().trim(), u[0] === '"' && (u = u.substring(1, u.length - 1)), e = e || { data: {} }, e.data.displayName = u;
|
|
7201
7201
|
},
|
|
7202
7202
|
"q",
|
|
7203
7203
|
x("q", !0),
|
|
7204
|
-
function(
|
|
7205
|
-
e = e || { data: {} }, e.data.params || (e.data.params = {}), e.data.params.q =
|
|
7204
|
+
function(u) {
|
|
7205
|
+
e = e || { data: {} }, e.data.params || (e.data.params = {}), e.data.params.q = u;
|
|
7206
7206
|
},
|
|
7207
7207
|
"expires",
|
|
7208
7208
|
x("expires", !0),
|
|
7209
|
-
function(
|
|
7210
|
-
e = e || { data: {} }, e.data.params || (e.data.params = {}), e.data.params.expires =
|
|
7209
|
+
function(u) {
|
|
7210
|
+
e = e || { data: {} }, e.data.params || (e.data.params = {}), e.data.params.expires = u;
|
|
7211
7211
|
},
|
|
7212
|
-
function(
|
|
7213
|
-
return parseInt(
|
|
7212
|
+
function(u) {
|
|
7213
|
+
return parseInt(u.join(""));
|
|
7214
7214
|
},
|
|
7215
7215
|
"0",
|
|
7216
7216
|
x("0", !1),
|
|
7217
7217
|
function() {
|
|
7218
7218
|
return parseFloat(b());
|
|
7219
7219
|
},
|
|
7220
|
-
function(
|
|
7221
|
-
e = e || { data: {} }, e.data.params || (e.data.params = {}), v === null ? v = void 0 : v = v[1], e.data.params[
|
|
7220
|
+
function(u, v) {
|
|
7221
|
+
e = e || { data: {} }, e.data.params || (e.data.params = {}), v === null ? v = void 0 : v = v[1], e.data.params[u.toLowerCase()] = v;
|
|
7222
7222
|
},
|
|
7223
7223
|
"render",
|
|
7224
7224
|
x("render", !0),
|
|
@@ -7237,8 +7237,8 @@ function J0(r, e) {
|
|
|
7237
7237
|
x("optional", !0),
|
|
7238
7238
|
"required",
|
|
7239
7239
|
x("required", !0),
|
|
7240
|
-
function(
|
|
7241
|
-
e = e || { data: {} }, e.data = parseInt(
|
|
7240
|
+
function(u) {
|
|
7241
|
+
e = e || { data: {} }, e.data = parseInt(u.join(""));
|
|
7242
7242
|
},
|
|
7243
7243
|
function() {
|
|
7244
7244
|
e = e || { data: {} }, e.data = b();
|
|
@@ -7259,30 +7259,30 @@ function J0(r, e) {
|
|
|
7259
7259
|
x("multipart", !0),
|
|
7260
7260
|
"x-",
|
|
7261
7261
|
x("x-", !0),
|
|
7262
|
-
function(
|
|
7263
|
-
e = e || { data: {} }, e.data.value = parseInt(
|
|
7262
|
+
function(u) {
|
|
7263
|
+
e = e || { data: {} }, e.data.value = parseInt(u.join(""));
|
|
7264
7264
|
},
|
|
7265
|
-
function(
|
|
7266
|
-
e = e || { data: {} }, e.data =
|
|
7265
|
+
function(u) {
|
|
7266
|
+
e = e || { data: {} }, e.data = u;
|
|
7267
7267
|
},
|
|
7268
|
-
function(
|
|
7269
|
-
e = e || { data: {} }, e.data.event =
|
|
7268
|
+
function(u) {
|
|
7269
|
+
e = e || { data: {} }, e.data.event = u.toLowerCase();
|
|
7270
7270
|
},
|
|
7271
7271
|
function() {
|
|
7272
7272
|
e = e || { data: {} };
|
|
7273
|
-
var
|
|
7274
|
-
e.data = new Xe(e.data.uri, e.data.displayName, e.data.params),
|
|
7273
|
+
var u = e.data.tag;
|
|
7274
|
+
e.data = new Xe(e.data.uri, e.data.displayName, e.data.params), u && e.data.setParam("tag", u);
|
|
7275
7275
|
},
|
|
7276
7276
|
"tag",
|
|
7277
7277
|
x("tag", !0),
|
|
7278
|
-
function(
|
|
7279
|
-
e = e || { data: {} }, e.data.tag =
|
|
7278
|
+
function(u) {
|
|
7279
|
+
e = e || { data: {} }, e.data.tag = u;
|
|
7280
7280
|
},
|
|
7281
|
-
function(
|
|
7282
|
-
e = e || { data: {} }, e.data = parseInt(
|
|
7281
|
+
function(u) {
|
|
7282
|
+
e = e || { data: {} }, e.data = parseInt(u.join(""));
|
|
7283
7283
|
},
|
|
7284
|
-
function(
|
|
7285
|
-
e = e || { data: {} }, e.data =
|
|
7284
|
+
function(u) {
|
|
7285
|
+
e = e || { data: {} }, e.data = u;
|
|
7286
7286
|
},
|
|
7287
7287
|
function() {
|
|
7288
7288
|
e = e || { data: {} }, e.data = new Xe(e.data.uri, e.data.displayName, e.data.params);
|
|
@@ -7291,20 +7291,20 @@ function J0(r, e) {
|
|
|
7291
7291
|
x("Digest", !0),
|
|
7292
7292
|
"realm",
|
|
7293
7293
|
x("realm", !0),
|
|
7294
|
-
function(
|
|
7295
|
-
e = e || { data: {} }, e.data.realm =
|
|
7294
|
+
function(u) {
|
|
7295
|
+
e = e || { data: {} }, e.data.realm = u;
|
|
7296
7296
|
},
|
|
7297
7297
|
"domain",
|
|
7298
7298
|
x("domain", !0),
|
|
7299
7299
|
"nonce",
|
|
7300
7300
|
x("nonce", !0),
|
|
7301
|
-
function(
|
|
7302
|
-
e = e || { data: {} }, e.data.nonce =
|
|
7301
|
+
function(u) {
|
|
7302
|
+
e = e || { data: {} }, e.data.nonce = u;
|
|
7303
7303
|
},
|
|
7304
7304
|
"opaque",
|
|
7305
7305
|
x("opaque", !0),
|
|
7306
|
-
function(
|
|
7307
|
-
e = e || { data: {} }, e.data.opaque =
|
|
7306
|
+
function(u) {
|
|
7307
|
+
e = e || { data: {} }, e.data.opaque = u;
|
|
7308
7308
|
},
|
|
7309
7309
|
"stale",
|
|
7310
7310
|
x("stale", !0),
|
|
@@ -7324,8 +7324,8 @@ function J0(r, e) {
|
|
|
7324
7324
|
x("MD5", !0),
|
|
7325
7325
|
"md5-sess",
|
|
7326
7326
|
x("MD5-sess", !0),
|
|
7327
|
-
function(
|
|
7328
|
-
e = e || { data: {} }, e.data.algorithm =
|
|
7327
|
+
function(u) {
|
|
7328
|
+
e = e || { data: {} }, e.data.algorithm = u.toUpperCase();
|
|
7329
7329
|
},
|
|
7330
7330
|
"qop",
|
|
7331
7331
|
x("qop", !0),
|
|
@@ -7333,33 +7333,33 @@ function J0(r, e) {
|
|
|
7333
7333
|
x("auth-int", !0),
|
|
7334
7334
|
"auth",
|
|
7335
7335
|
x("auth", !0),
|
|
7336
|
-
function(
|
|
7337
|
-
e = e || { data: {} }, e.data.qop || (e.data.qop = []), e.data.qop.push(
|
|
7336
|
+
function(u) {
|
|
7337
|
+
e = e || { data: {} }, e.data.qop || (e.data.qop = []), e.data.qop.push(u.toLowerCase());
|
|
7338
7338
|
},
|
|
7339
|
-
function(
|
|
7340
|
-
e = e || { data: {} }, e.data.value = parseInt(
|
|
7339
|
+
function(u) {
|
|
7340
|
+
e = e || { data: {} }, e.data.value = parseInt(u.join(""));
|
|
7341
7341
|
},
|
|
7342
7342
|
function() {
|
|
7343
|
-
var
|
|
7344
|
-
for (e = e || { data: {} }, v = e.data.multi_header.length,
|
|
7345
|
-
if (e.data.multi_header[
|
|
7343
|
+
var u, v;
|
|
7344
|
+
for (e = e || { data: {} }, v = e.data.multi_header.length, u = 0; u < v; u++)
|
|
7345
|
+
if (e.data.multi_header[u].parsed === null) {
|
|
7346
7346
|
e.data = null;
|
|
7347
7347
|
break;
|
|
7348
7348
|
}
|
|
7349
7349
|
e.data !== null ? e.data = e.data.multi_header : e.data = -1;
|
|
7350
7350
|
},
|
|
7351
7351
|
function() {
|
|
7352
|
-
var
|
|
7352
|
+
var u;
|
|
7353
7353
|
e = e || { data: {} }, e.data.multi_header || (e.data.multi_header = []);
|
|
7354
7354
|
try {
|
|
7355
|
-
|
|
7355
|
+
u = new Xe(e.data.uri, e.data.displayName, e.data.params), delete e.data.uri, delete e.data.displayName, delete e.data.params;
|
|
7356
7356
|
} catch {
|
|
7357
|
-
|
|
7357
|
+
u = null;
|
|
7358
7358
|
}
|
|
7359
7359
|
e.data.multi_header.push({
|
|
7360
7360
|
position: d,
|
|
7361
7361
|
offset: C().start.offset,
|
|
7362
|
-
parsed:
|
|
7362
|
+
parsed: u
|
|
7363
7363
|
});
|
|
7364
7364
|
},
|
|
7365
7365
|
function() {
|
|
@@ -7375,30 +7375,30 @@ function J0(r, e) {
|
|
|
7375
7375
|
},
|
|
7376
7376
|
"from-tag",
|
|
7377
7377
|
x("from-tag", !0),
|
|
7378
|
-
function(
|
|
7379
|
-
e = e || { data: {} }, e.data.replaces_from_tag =
|
|
7378
|
+
function(u) {
|
|
7379
|
+
e = e || { data: {} }, e.data.replaces_from_tag = u;
|
|
7380
7380
|
},
|
|
7381
7381
|
"to-tag",
|
|
7382
7382
|
x("to-tag", !0),
|
|
7383
|
-
function(
|
|
7384
|
-
e = e || { data: {} }, e.data.replaces_to_tag =
|
|
7383
|
+
function(u) {
|
|
7384
|
+
e = e || { data: {} }, e.data.replaces_to_tag = u;
|
|
7385
7385
|
},
|
|
7386
7386
|
"early-only",
|
|
7387
7387
|
x("early-only", !0),
|
|
7388
7388
|
function() {
|
|
7389
7389
|
e = e || { data: {} }, e.data.early_only = !0;
|
|
7390
7390
|
},
|
|
7391
|
-
function(
|
|
7391
|
+
function(u, v) {
|
|
7392
7392
|
return v;
|
|
7393
7393
|
},
|
|
7394
|
-
function(
|
|
7395
|
-
return A(
|
|
7394
|
+
function(u, v) {
|
|
7395
|
+
return A(u, v);
|
|
7396
7396
|
},
|
|
7397
|
-
function(
|
|
7398
|
-
e = e || { data: {} }, e.startRule === "Require" && (e.data =
|
|
7397
|
+
function(u) {
|
|
7398
|
+
e = e || { data: {} }, e.startRule === "Require" && (e.data = u || []);
|
|
7399
7399
|
},
|
|
7400
|
-
function(
|
|
7401
|
-
e = e || { data: {} }, e.data.value = parseInt(
|
|
7400
|
+
function(u) {
|
|
7401
|
+
e = e || { data: {} }, e.data.value = parseInt(u.join(""));
|
|
7402
7402
|
},
|
|
7403
7403
|
"active",
|
|
7404
7404
|
x("active", !0),
|
|
@@ -7411,16 +7411,16 @@ function J0(r, e) {
|
|
|
7411
7411
|
},
|
|
7412
7412
|
"reason",
|
|
7413
7413
|
x("reason", !0),
|
|
7414
|
-
function(
|
|
7415
|
-
e = e || { data: {} }, typeof
|
|
7414
|
+
function(u) {
|
|
7415
|
+
e = e || { data: {} }, typeof u < "u" && (e.data.reason = u);
|
|
7416
7416
|
},
|
|
7417
|
-
function(
|
|
7418
|
-
e = e || { data: {} }, typeof
|
|
7417
|
+
function(u) {
|
|
7418
|
+
e = e || { data: {} }, typeof u < "u" && (e.data.expires = u);
|
|
7419
7419
|
},
|
|
7420
7420
|
"retry_after",
|
|
7421
7421
|
x("retry_after", !0),
|
|
7422
|
-
function(
|
|
7423
|
-
e = e || { data: {} }, typeof
|
|
7422
|
+
function(u) {
|
|
7423
|
+
e = e || { data: {} }, typeof u < "u" && (e.data.retry_after = u);
|
|
7424
7424
|
},
|
|
7425
7425
|
"deactivated",
|
|
7426
7426
|
x("deactivated", !0),
|
|
@@ -7436,60 +7436,60 @@ function J0(r, e) {
|
|
|
7436
7436
|
x("noresource", !0),
|
|
7437
7437
|
"invariant",
|
|
7438
7438
|
x("invariant", !0),
|
|
7439
|
-
function(
|
|
7440
|
-
e = e || { data: {} }, e.startRule === "Supported" && (e.data =
|
|
7439
|
+
function(u) {
|
|
7440
|
+
e = e || { data: {} }, e.startRule === "Supported" && (e.data = u || []);
|
|
7441
7441
|
},
|
|
7442
7442
|
function() {
|
|
7443
7443
|
e = e || { data: {} };
|
|
7444
|
-
var
|
|
7445
|
-
e.data = new Xe(e.data.uri, e.data.displayName, e.data.params),
|
|
7444
|
+
var u = e.data.tag;
|
|
7445
|
+
e.data = new Xe(e.data.uri, e.data.displayName, e.data.params), u && e.data.setParam("tag", u);
|
|
7446
7446
|
},
|
|
7447
7447
|
"ttl",
|
|
7448
7448
|
x("ttl", !0),
|
|
7449
|
-
function(
|
|
7450
|
-
e = e || { data: {} }, e.data.ttl =
|
|
7449
|
+
function(u) {
|
|
7450
|
+
e = e || { data: {} }, e.data.ttl = u;
|
|
7451
7451
|
},
|
|
7452
7452
|
"maddr",
|
|
7453
7453
|
x("maddr", !0),
|
|
7454
|
-
function(
|
|
7455
|
-
e = e || { data: {} }, e.data.maddr =
|
|
7454
|
+
function(u) {
|
|
7455
|
+
e = e || { data: {} }, e.data.maddr = u;
|
|
7456
7456
|
},
|
|
7457
7457
|
"received",
|
|
7458
7458
|
x("received", !0),
|
|
7459
|
-
function(
|
|
7460
|
-
e = e || { data: {} }, e.data.received =
|
|
7459
|
+
function(u) {
|
|
7460
|
+
e = e || { data: {} }, e.data.received = u;
|
|
7461
7461
|
},
|
|
7462
7462
|
"branch",
|
|
7463
7463
|
x("branch", !0),
|
|
7464
|
-
function(
|
|
7465
|
-
e = e || { data: {} }, e.data.branch =
|
|
7464
|
+
function(u) {
|
|
7465
|
+
e = e || { data: {} }, e.data.branch = u;
|
|
7466
7466
|
},
|
|
7467
7467
|
"rport",
|
|
7468
7468
|
x("rport", !0),
|
|
7469
|
-
function(
|
|
7470
|
-
e = e || { data: {} }, typeof
|
|
7469
|
+
function(u) {
|
|
7470
|
+
e = e || { data: {} }, typeof u < "u" && (e.data.rport = u.join(""));
|
|
7471
7471
|
},
|
|
7472
|
-
function(
|
|
7473
|
-
e = e || { data: {} }, e.data.protocol =
|
|
7472
|
+
function(u) {
|
|
7473
|
+
e = e || { data: {} }, e.data.protocol = u;
|
|
7474
7474
|
},
|
|
7475
7475
|
x("UDP", !0),
|
|
7476
7476
|
x("TCP", !0),
|
|
7477
7477
|
x("TLS", !0),
|
|
7478
7478
|
x("SCTP", !0),
|
|
7479
|
-
function(
|
|
7480
|
-
e = e || { data: {} }, e.data.transport =
|
|
7479
|
+
function(u) {
|
|
7480
|
+
e = e || { data: {} }, e.data.transport = u;
|
|
7481
7481
|
},
|
|
7482
7482
|
function() {
|
|
7483
7483
|
e = e || { data: {} }, e.data.host = b();
|
|
7484
7484
|
},
|
|
7485
|
-
function(
|
|
7486
|
-
e = e || { data: {} }, e.data.port = parseInt(
|
|
7485
|
+
function(u) {
|
|
7486
|
+
e = e || { data: {} }, e.data.port = parseInt(u.join(""));
|
|
7487
7487
|
},
|
|
7488
|
-
function(
|
|
7489
|
-
return parseInt(
|
|
7488
|
+
function(u) {
|
|
7489
|
+
return parseInt(u.join(""));
|
|
7490
7490
|
},
|
|
7491
|
-
function(
|
|
7492
|
-
e = e || { data: {} }, e.startRule === "Session_Expires" && (e.data.deltaSeconds =
|
|
7491
|
+
function(u) {
|
|
7492
|
+
e = e || { data: {} }, e.startRule === "Session_Expires" && (e.data.deltaSeconds = u);
|
|
7493
7493
|
},
|
|
7494
7494
|
"refresher",
|
|
7495
7495
|
x("refresher", !1),
|
|
@@ -7497,21 +7497,21 @@ function J0(r, e) {
|
|
|
7497
7497
|
x("uas", !1),
|
|
7498
7498
|
"uac",
|
|
7499
7499
|
x("uac", !1),
|
|
7500
|
-
function(
|
|
7501
|
-
e = e || { data: {} }, e.startRule === "Session_Expires" && (e.data.refresher =
|
|
7500
|
+
function(u) {
|
|
7501
|
+
e = e || { data: {} }, e.startRule === "Session_Expires" && (e.data.refresher = u);
|
|
7502
7502
|
},
|
|
7503
|
-
function(
|
|
7504
|
-
e = e || { data: {} }, e.startRule === "Min_SE" && (e.data =
|
|
7503
|
+
function(u) {
|
|
7504
|
+
e = e || { data: {} }, e.startRule === "Min_SE" && (e.data = u);
|
|
7505
7505
|
},
|
|
7506
7506
|
"stuns",
|
|
7507
7507
|
x("stuns", !0),
|
|
7508
7508
|
"stun",
|
|
7509
7509
|
x("stun", !0),
|
|
7510
|
-
function(
|
|
7511
|
-
e = e || { data: {} }, e.data.scheme =
|
|
7510
|
+
function(u) {
|
|
7511
|
+
e = e || { data: {} }, e.data.scheme = u;
|
|
7512
7512
|
},
|
|
7513
|
-
function(
|
|
7514
|
-
e = e || { data: {} }, e.data.host =
|
|
7513
|
+
function(u) {
|
|
7514
|
+
e = e || { data: {} }, e.data.host = u;
|
|
7515
7515
|
},
|
|
7516
7516
|
"?transport=",
|
|
7517
7517
|
x("?transport=", !1),
|
|
@@ -7519,8 +7519,8 @@ function J0(r, e) {
|
|
|
7519
7519
|
x("turns", !0),
|
|
7520
7520
|
"turn",
|
|
7521
7521
|
x("turn", !0),
|
|
7522
|
-
function(
|
|
7523
|
-
e = e || { data: {} }, e.data.transport =
|
|
7522
|
+
function(u) {
|
|
7523
|
+
e = e || { data: {} }, e.data.transport = u;
|
|
7524
7524
|
},
|
|
7525
7525
|
function() {
|
|
7526
7526
|
e = e || { data: {} }, e.data = b();
|
|
@@ -7770,7 +7770,7 @@ function J0(r, e) {
|
|
|
7770
7770
|
];
|
|
7771
7771
|
let d = 0, c = 0;
|
|
7772
7772
|
const l = [{ line: 1, column: 1 }];
|
|
7773
|
-
let g = 0,
|
|
7773
|
+
let g = 0, f = [], y = 0, w;
|
|
7774
7774
|
if (e.startRule !== void 0) {
|
|
7775
7775
|
if (!(e.startRule in i))
|
|
7776
7776
|
throw new Error(`Can't start parsing from rule "` + e.startRule + '".');
|
|
@@ -7782,34 +7782,34 @@ function J0(r, e) {
|
|
|
7782
7782
|
function C() {
|
|
7783
7783
|
return S(c, d);
|
|
7784
7784
|
}
|
|
7785
|
-
function x(
|
|
7786
|
-
return { type: "literal", text:
|
|
7785
|
+
function x(u, v) {
|
|
7786
|
+
return { type: "literal", text: u, ignoreCase: v };
|
|
7787
7787
|
}
|
|
7788
|
-
function p(
|
|
7789
|
-
return { type: "class", parts:
|
|
7788
|
+
function p(u, v, m) {
|
|
7789
|
+
return { type: "class", parts: u, inverted: v, ignoreCase: m };
|
|
7790
7790
|
}
|
|
7791
7791
|
function E() {
|
|
7792
7792
|
return { type: "end" };
|
|
7793
7793
|
}
|
|
7794
|
-
function _(
|
|
7795
|
-
let v = l[
|
|
7794
|
+
function _(u) {
|
|
7795
|
+
let v = l[u], m;
|
|
7796
7796
|
if (v)
|
|
7797
7797
|
return v;
|
|
7798
|
-
for (m =
|
|
7798
|
+
for (m = u - 1; !l[m]; )
|
|
7799
7799
|
m--;
|
|
7800
7800
|
for (v = l[m], v = {
|
|
7801
7801
|
line: v.line,
|
|
7802
7802
|
column: v.column
|
|
7803
|
-
}; m <
|
|
7803
|
+
}; m < u; )
|
|
7804
7804
|
r.charCodeAt(m) === 10 ? (v.line++, v.column = 1) : v.column++, m++;
|
|
7805
|
-
return l[
|
|
7805
|
+
return l[u] = v, v;
|
|
7806
7806
|
}
|
|
7807
|
-
function S(
|
|
7808
|
-
const m = _(
|
|
7807
|
+
function S(u, v) {
|
|
7808
|
+
const m = _(u), U = _(v);
|
|
7809
7809
|
return {
|
|
7810
7810
|
source: s,
|
|
7811
7811
|
start: {
|
|
7812
|
-
offset:
|
|
7812
|
+
offset: u,
|
|
7813
7813
|
line: m.line,
|
|
7814
7814
|
column: m.column
|
|
7815
7815
|
},
|
|
@@ -7820,17 +7820,17 @@ function J0(r, e) {
|
|
|
7820
7820
|
}
|
|
7821
7821
|
};
|
|
7822
7822
|
}
|
|
7823
|
-
function T(
|
|
7824
|
-
d < g || (d > g && (g = d,
|
|
7823
|
+
function T(u) {
|
|
7824
|
+
d < g || (d > g && (g = d, f = []), f.push(u));
|
|
7825
7825
|
}
|
|
7826
|
-
function R(
|
|
7827
|
-
return new Dr(Dr.buildMessage(
|
|
7826
|
+
function R(u, v, m) {
|
|
7827
|
+
return new Dr(Dr.buildMessage(u, v), u, v, m);
|
|
7828
7828
|
}
|
|
7829
|
-
function h(
|
|
7830
|
-
return
|
|
7829
|
+
function h(u) {
|
|
7830
|
+
return u.split("").map((v) => v.charCodeAt(0) - 32);
|
|
7831
7831
|
}
|
|
7832
|
-
function N(
|
|
7833
|
-
const v = o[
|
|
7832
|
+
function N(u) {
|
|
7833
|
+
const v = o[u];
|
|
7834
7834
|
let m = 0;
|
|
7835
7835
|
const U = [];
|
|
7836
7836
|
let q = v.length;
|
|
@@ -7942,12 +7942,12 @@ function J0(r, e) {
|
|
|
7942
7942
|
return W[0];
|
|
7943
7943
|
}
|
|
7944
7944
|
e.data = {};
|
|
7945
|
-
function A(
|
|
7946
|
-
return [
|
|
7945
|
+
function A(u, v) {
|
|
7946
|
+
return [u].concat(v);
|
|
7947
7947
|
}
|
|
7948
7948
|
if (w = N(n), w !== t && d === r.length)
|
|
7949
7949
|
return w;
|
|
7950
|
-
throw w !== t && d < r.length && T(E()), R(
|
|
7950
|
+
throw w !== t && d < r.length && T(E()), R(f, g < r.length ? r.charAt(g) : null, g < r.length ? S(g, g + 1) : S(g, g));
|
|
7951
7951
|
}
|
|
7952
7952
|
const Q0 = J0;
|
|
7953
7953
|
var Ie;
|
|
@@ -10094,12 +10094,12 @@ class La extends Zr {
|
|
|
10094
10094
|
{
|
|
10095
10095
|
const l = this.sessionDescriptionHandlerFactory(this, this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions || {});
|
|
10096
10096
|
return !((t = this.delegate) === null || t === void 0) && t.onSessionDescriptionHandler && this.delegate.onSessionDescriptionHandler(l, !0), this.earlyMediaSessionDescriptionHandlers.set(i.id, l), l.setDescription(s.body, this.sessionDescriptionHandlerOptions, this.sessionDescriptionHandlerModifiers).then(() => l.getDescription(this.sessionDescriptionHandlerOptions, this.sessionDescriptionHandlerModifiers)).then((g) => {
|
|
10097
|
-
const
|
|
10097
|
+
const f = {
|
|
10098
10098
|
contentDisposition: "session",
|
|
10099
10099
|
contentType: g.contentType,
|
|
10100
10100
|
content: g.body
|
|
10101
10101
|
};
|
|
10102
|
-
e.prack({ extraHeaders: c, body:
|
|
10102
|
+
e.prack({ extraHeaders: c, body: f });
|
|
10103
10103
|
}).catch((g) => {
|
|
10104
10104
|
throw this.stateTransition(B.Terminated), g;
|
|
10105
10105
|
});
|
|
@@ -10114,8 +10114,8 @@ class La extends Zr {
|
|
|
10114
10114
|
sessionDescriptionHandlerModifiers: this.sessionDescriptionHandlerModifiers,
|
|
10115
10115
|
sessionDescriptionHandlerOptions: this.sessionDescriptionHandlerOptions
|
|
10116
10116
|
};
|
|
10117
|
-
return this.setAnswer(l, g).catch((
|
|
10118
|
-
throw this.stateTransition(B.Terminated),
|
|
10117
|
+
return this.setAnswer(l, g).catch((f) => {
|
|
10118
|
+
throw this.stateTransition(B.Terminated), f;
|
|
10119
10119
|
});
|
|
10120
10120
|
}
|
|
10121
10121
|
return Promise.resolve();
|
|
@@ -10814,8 +10814,8 @@ var ys;
|
|
|
10814
10814
|
g = void 0;
|
|
10815
10815
|
break;
|
|
10816
10816
|
}
|
|
10817
|
-
g.forEach((
|
|
10818
|
-
i.addHeader("record-route", l.substring(
|
|
10817
|
+
g.forEach((f) => {
|
|
10818
|
+
i.addHeader("record-route", l.substring(f.position, f.offset)), i.headers["Record-Route"][i.getHeaders("record-route").length - 1].parsed = f.parsed;
|
|
10819
10819
|
});
|
|
10820
10820
|
break;
|
|
10821
10821
|
case "call-id":
|
|
@@ -10832,8 +10832,8 @@ var ys;
|
|
|
10832
10832
|
g = void 0;
|
|
10833
10833
|
break;
|
|
10834
10834
|
}
|
|
10835
|
-
g.forEach((
|
|
10836
|
-
i.addHeader("contact", l.substring(
|
|
10835
|
+
g.forEach((f) => {
|
|
10836
|
+
i.addHeader("contact", l.substring(f.position, f.offset)), i.headers.Contact[i.getHeaders("contact").length - 1].parsed = f.parsed;
|
|
10837
10837
|
});
|
|
10838
10838
|
break;
|
|
10839
10839
|
case "content-length":
|
|
@@ -10891,9 +10891,9 @@ var ys;
|
|
|
10891
10891
|
n.error("malformed message");
|
|
10892
10892
|
return;
|
|
10893
10893
|
}
|
|
10894
|
-
const
|
|
10895
|
-
if (
|
|
10896
|
-
n.error(
|
|
10894
|
+
const f = t(l, i, a, o);
|
|
10895
|
+
if (f && f !== !0) {
|
|
10896
|
+
n.error(f.error);
|
|
10897
10897
|
return;
|
|
10898
10898
|
}
|
|
10899
10899
|
a = o + 2;
|
|
@@ -10921,8 +10921,8 @@ function Ya(r, e) {
|
|
|
10921
10921
|
e.supported && (l = "Supported: " + e.supported.join(", ") + t);
|
|
10922
10922
|
let g = "";
|
|
10923
10923
|
e.userAgent && (g = "User-Agent: " + e.userAgent + t);
|
|
10924
|
-
let
|
|
10925
|
-
return e.extraHeaders && (
|
|
10924
|
+
let f = "";
|
|
10925
|
+
return e.extraHeaders && (f = e.extraHeaders.reduce((y, w) => y + w.trim() + t, "")), i += d, i += n, i += c, i += o, i += a, i += l, i += g, i += f, e.body ? (i += "Content-Type: " + e.body.contentType + t, i += "Content-Length: " + Kr(e.body.content) + t + t, i += e.body.content) : i += "Content-Length: 0" + t + t, { message: i };
|
|
10926
10926
|
}
|
|
10927
10927
|
class Ui extends xr {
|
|
10928
10928
|
constructor(e) {
|
|
@@ -11452,7 +11452,7 @@ class Fr {
|
|
|
11452
11452
|
throw new Error("From undefined.");
|
|
11453
11453
|
if (!e.to)
|
|
11454
11454
|
throw new Error("To undefined.");
|
|
11455
|
-
const
|
|
11455
|
+
const f = e.from.uri, y = e.to.uri;
|
|
11456
11456
|
if (!t.statusCode)
|
|
11457
11457
|
throw new Error("Incoming response status code undefined.");
|
|
11458
11458
|
const w = t.statusCode < 200;
|
|
@@ -11464,7 +11464,7 @@ class Fr {
|
|
|
11464
11464
|
remoteTag: g,
|
|
11465
11465
|
localSequenceNumber: o,
|
|
11466
11466
|
remoteSequenceNumber: d,
|
|
11467
|
-
localURI:
|
|
11467
|
+
localURI: f,
|
|
11468
11468
|
remoteURI: y,
|
|
11469
11469
|
remoteTarget: a,
|
|
11470
11470
|
routeSet: i,
|
|
@@ -11484,13 +11484,13 @@ class Fr {
|
|
|
11484
11484
|
throw new Error("Contact undefined.");
|
|
11485
11485
|
if (!(a instanceof Xe))
|
|
11486
11486
|
throw new Error("Contact not instance of NameAddrHeader.");
|
|
11487
|
-
const o = a.uri, d = e.cseq, c = void 0, l = e.callId, g = t,
|
|
11487
|
+
const o = a.uri, d = e.cseq, c = void 0, l = e.callId, g = t, f = e.fromTag, y = e.from.uri, w = e.to.uri;
|
|
11488
11488
|
return {
|
|
11489
|
-
id: l + g +
|
|
11489
|
+
id: l + g + f,
|
|
11490
11490
|
early: s,
|
|
11491
11491
|
callId: l,
|
|
11492
11492
|
localTag: g,
|
|
11493
|
-
remoteTag:
|
|
11493
|
+
remoteTag: f,
|
|
11494
11494
|
localSequenceNumber: c,
|
|
11495
11495
|
remoteSequenceNumber: d,
|
|
11496
11496
|
localURI: w,
|
|
@@ -11641,14 +11641,14 @@ class Fr {
|
|
|
11641
11641
|
const s = this.remoteURI, i = this.remoteTag, n = this.localURI, a = this.localTag, o = this.callId;
|
|
11642
11642
|
let d;
|
|
11643
11643
|
t && t.cseq ? d = t.cseq : this.dialogState.localSequenceNumber ? d = this.dialogState.localSequenceNumber += 1 : d = this.dialogState.localSequenceNumber = 1;
|
|
11644
|
-
const c = this.remoteTarget, l = this.routeSet, g = t && t.extraHeaders,
|
|
11644
|
+
const c = this.remoteTarget, l = this.routeSet, g = t && t.extraHeaders, f = t && t.body;
|
|
11645
11645
|
return this.userAgentCore.makeOutgoingRequestMessage(e, c, n, s, {
|
|
11646
11646
|
callId: o,
|
|
11647
11647
|
cseq: d,
|
|
11648
11648
|
fromTag: a,
|
|
11649
11649
|
toTag: i,
|
|
11650
11650
|
routeSet: l
|
|
11651
|
-
}, g,
|
|
11651
|
+
}, g, f);
|
|
11652
11652
|
}
|
|
11653
11653
|
/**
|
|
11654
11654
|
* Increment the local sequence number by one.
|
|
@@ -13275,7 +13275,7 @@ class Da extends Fr {
|
|
|
13275
13275
|
throw new Error("From undefined.");
|
|
13276
13276
|
if (!e.to)
|
|
13277
13277
|
throw new Error("To undefined.");
|
|
13278
|
-
const
|
|
13278
|
+
const f = e.from.uri, y = e.to.uri;
|
|
13279
13279
|
return {
|
|
13280
13280
|
id: c + l + g,
|
|
13281
13281
|
early: !1,
|
|
@@ -13284,7 +13284,7 @@ class Da extends Fr {
|
|
|
13284
13284
|
remoteTag: g,
|
|
13285
13285
|
localSequenceNumber: o,
|
|
13286
13286
|
remoteSequenceNumber: d,
|
|
13287
|
-
localURI:
|
|
13287
|
+
localURI: f,
|
|
13288
13288
|
remoteURI: y,
|
|
13289
13289
|
remoteTarget: a,
|
|
13290
13290
|
routeSet: i,
|
|
@@ -13699,14 +13699,14 @@ class Ac {
|
|
|
13699
13699
|
* @param body - Message body.
|
|
13700
13700
|
*/
|
|
13701
13701
|
makeOutgoingRequestMessage(e, t, s, i, n, a, o) {
|
|
13702
|
-
const d = this.configuration.sipjsId, c = this.configuration.displayName, l = this.configuration.viaForceRport, g = this.configuration.hackViaTcp,
|
|
13703
|
-
e === V.REGISTER &&
|
|
13702
|
+
const d = this.configuration.sipjsId, c = this.configuration.displayName, l = this.configuration.viaForceRport, g = this.configuration.hackViaTcp, f = this.configuration.supportedOptionTags.slice();
|
|
13703
|
+
e === V.REGISTER && f.push("path", "gruu"), e === V.INVITE && (this.configuration.contact.pubGruu || this.configuration.contact.tempGruu) && f.push("gruu");
|
|
13704
13704
|
const y = this.configuration.routeSet, w = this.configuration.userAgentHeaderFieldValue, b = this.configuration.viaHost, x = Object.assign(Object.assign({}, {
|
|
13705
13705
|
callIdPrefix: d,
|
|
13706
13706
|
forceRport: l,
|
|
13707
13707
|
fromDisplayName: c,
|
|
13708
13708
|
hackViaTcp: g,
|
|
13709
|
-
optionTags:
|
|
13709
|
+
optionTags: f,
|
|
13710
13710
|
routeSet: y,
|
|
13711
13711
|
userAgentString: w,
|
|
13712
13712
|
viaHost: b
|
|
@@ -14289,7 +14289,7 @@ class Ht {
|
|
|
14289
14289
|
l ? i.push(new Promise((g) => {
|
|
14290
14290
|
this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - replacing sender ${c} track`), g();
|
|
14291
14291
|
}).then(() => l.replaceTrack(d).then(() => {
|
|
14292
|
-
const g = s.getTracks().find((
|
|
14292
|
+
const g = s.getTracks().find((f) => f.kind === c);
|
|
14293
14293
|
g && (g.stop(), s.removeTrack(g), Ht.dispatchRemoveTrackEvent(s, g)), s.addTrack(d), Ht.dispatchAddTrackEvent(s, d);
|
|
14294
14294
|
}).catch((g) => {
|
|
14295
14295
|
throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to replace sender ${c} track`), g;
|
|
@@ -15279,10 +15279,10 @@ class hr {
|
|
|
15279
15279
|
const g = c.replaces_to_tag;
|
|
15280
15280
|
if (typeof g != "string")
|
|
15281
15281
|
throw new Error("Type of to tag is not string");
|
|
15282
|
-
const
|
|
15283
|
-
if (typeof
|
|
15282
|
+
const f = c.replaces_from_tag;
|
|
15283
|
+
if (typeof f != "string")
|
|
15284
15284
|
throw new Error("type of from tag is not string");
|
|
15285
|
-
const y = l + g +
|
|
15285
|
+
const y = l + g + f, w = this.userAgentCore.dialogs.get(y);
|
|
15286
15286
|
if (!w) {
|
|
15287
15287
|
o.reject({ statusCode: 481 });
|
|
15288
15288
|
return;
|
|
@@ -15291,7 +15291,7 @@ class hr {
|
|
|
15291
15291
|
o.reject({ statusCode: 486 });
|
|
15292
15292
|
return;
|
|
15293
15293
|
}
|
|
15294
|
-
const b = this._sessions[l +
|
|
15294
|
+
const b = this._sessions[l + f] || this._sessions[l + g] || void 0;
|
|
15295
15295
|
if (!b)
|
|
15296
15296
|
throw new Error("Session does not exist.");
|
|
15297
15297
|
o._replacee = b;
|
|
@@ -17881,8 +17881,8 @@ function Du(r, e, t, s, i) {
|
|
|
17881
17881
|
return i.relativeTime(e || 1, !!t, r, s);
|
|
17882
17882
|
}
|
|
17883
17883
|
function Au(r, e, t, s) {
|
|
17884
|
-
var i = vt(r).abs(), n = Pt(i.as("s")), a = Pt(i.as("m")), o = Pt(i.as("h")), d = Pt(i.as("d")), c = Pt(i.as("M")), l = Pt(i.as("w")), g = Pt(i.as("y")),
|
|
17885
|
-
return t.w != null && (
|
|
17884
|
+
var i = vt(r).abs(), n = Pt(i.as("s")), a = Pt(i.as("m")), o = Pt(i.as("h")), d = Pt(i.as("d")), c = Pt(i.as("M")), l = Pt(i.as("w")), g = Pt(i.as("y")), f = n <= t.ss && ["s", n] || n < t.s && ["ss", n] || a <= 1 && ["m"] || a < t.m && ["mm", a] || o <= 1 && ["h"] || o < t.h && ["hh", o] || d <= 1 && ["d"] || d < t.d && ["dd", d];
|
|
17885
|
+
return t.w != null && (f = f || l <= 1 && ["w"] || l < t.w && ["ww", l]), f = f || c <= 1 && ["M"] || c < t.M && ["MM", c] || g <= 1 && ["y"] || ["yy", g], f[2] = e, f[3] = +r > 0, f[4] = s, Du.apply(null, f);
|
|
17886
17886
|
}
|
|
17887
17887
|
function Tu(r) {
|
|
17888
17888
|
return r === void 0 ? Pt : typeof r == "function" ? (Pt = r, !0) : !1;
|
|
@@ -18036,15 +18036,15 @@ function Uo(r) {
|
|
|
18036
18036
|
const g = [];
|
|
18037
18037
|
for (const y of d)
|
|
18038
18038
|
y.startsWith("m=") && (c++, l = c > a), l || g.push(y);
|
|
18039
|
-
let
|
|
18039
|
+
let f = g.join(`\r
|
|
18040
18040
|
`);
|
|
18041
|
-
|
|
18042
|
-
`) || (
|
|
18041
|
+
f.endsWith(`\r
|
|
18042
|
+
`) || (f += `\r
|
|
18043
18043
|
`), console.log(
|
|
18044
18044
|
"[RTC Patch] filtered to",
|
|
18045
|
-
(
|
|
18045
|
+
(f.match(/^m=/gm) || []).length,
|
|
18046
18046
|
"m-lines. Applying to Chrome."
|
|
18047
|
-
), i = { type: "answer", sdp:
|
|
18047
|
+
), i = { type: "answer", sdp: f };
|
|
18048
18048
|
}
|
|
18049
18049
|
}
|
|
18050
18050
|
return s(i);
|
|
@@ -18103,18 +18103,18 @@ const ku = () => {
|
|
|
18103
18103
|
Ae && Ae.sessionDescriptionHandler && Ae.sessionDescriptionHandler.sendDtmf(r);
|
|
18104
18104
|
});
|
|
18105
18105
|
}, Bu = async (r) => {
|
|
18106
|
-
var
|
|
18106
|
+
var n, a;
|
|
18107
18107
|
window.__sipjsEventsBound || (ku(), window.__sipjsEventsBound = !0);
|
|
18108
18108
|
const { auth: e } = r;
|
|
18109
18109
|
if (!e) return;
|
|
18110
|
-
const t = e.user_pbx || e.username, s = e.pwd_pbx || e.secret, i = ((
|
|
18111
|
-
if (!(!t || !i))
|
|
18110
|
+
const t = e.user_pbx || e.username, s = e.pwd_pbx || e.secret, i = ((a = (n = e.pabx_host) == null ? void 0 : n.replace("http://", "")) == null ? void 0 : a.replace("https://", "")) || e.pbxurl;
|
|
18111
|
+
if (e.port, !(!t || !i))
|
|
18112
18112
|
try {
|
|
18113
|
-
const
|
|
18114
|
-
if (!
|
|
18115
|
-
|
|
18116
|
-
uri:
|
|
18117
|
-
transportOptions: { server:
|
|
18113
|
+
const o = hr.makeURI(`sip:${t}@${i}`);
|
|
18114
|
+
if (!o) throw new Error("Failed to create SIP URI");
|
|
18115
|
+
const d = new hr({
|
|
18116
|
+
uri: o,
|
|
18117
|
+
transportOptions: { server: wssUrl },
|
|
18118
18118
|
authorizationUsername: t,
|
|
18119
18119
|
authorizationPassword: s,
|
|
18120
18120
|
sessionDescriptionHandlerFactoryOptions: {
|
|
@@ -18123,52 +18123,45 @@ const ku = () => {
|
|
|
18123
18123
|
},
|
|
18124
18124
|
logLevel: "warn"
|
|
18125
18125
|
});
|
|
18126
|
-
|
|
18127
|
-
|
|
18128
|
-
|
|
18129
|
-
|
|
18130
|
-
|
|
18131
|
-
|
|
18132
|
-
|
|
18133
|
-
|
|
18134
|
-
|
|
18135
|
-
logLevel: "warn"
|
|
18136
|
-
});
|
|
18137
|
-
Cs = l;
|
|
18138
|
-
const g = new _t(l);
|
|
18139
|
-
g.stateChange.addListener(async (u) => {
|
|
18140
|
-
var y;
|
|
18141
|
-
u === pe.Registered ? ((y = Ve.getConfig()) == null ? void 0 : y.autoReady) !== !1 ? await Ve.updateExtensionStatus(t, "Ready", "ready") ? (Z.emitLocal("register_status", "REGISTERED"), Z.emitLocal("agent_status", "READY")) : Z.emitLocal("register_status", {
|
|
18126
|
+
Cs = d;
|
|
18127
|
+
const c = new _t(d);
|
|
18128
|
+
c.stateChange.addListener(async (l) => {
|
|
18129
|
+
var g;
|
|
18130
|
+
l === pe.Registered ? ((g = Ve.getConfig()) == null ? void 0 : g.autoReady) !== !1 ? await Ve.updateExtensionStatus(
|
|
18131
|
+
t,
|
|
18132
|
+
"Ready",
|
|
18133
|
+
"ready"
|
|
18134
|
+
) ? (Z.emitLocal("register_status", "REGISTERED"), Z.emitLocal("agent_status", "READY")) : Z.emitLocal("register_status", {
|
|
18142
18135
|
status: "FAILED",
|
|
18143
18136
|
reason: "Failed to hit extension ready API"
|
|
18144
|
-
}) : (Z.emitLocal("register_status", "REGISTERED"), Z.emitLocal("agent_status", "NOT_READY")) : (
|
|
18137
|
+
}) : (Z.emitLocal("register_status", "REGISTERED"), Z.emitLocal("agent_status", "NOT_READY")) : (l === pe.Unregistered || l === pe.Terminated) && Z.emitLocal("register_status", {
|
|
18145
18138
|
status: "FAILED",
|
|
18146
18139
|
reason: "SIP Unregistered or Terminated"
|
|
18147
18140
|
});
|
|
18148
|
-
}),
|
|
18149
|
-
onInvite(
|
|
18150
|
-
let
|
|
18151
|
-
Ae =
|
|
18152
|
-
`New incoming call from ${
|
|
18153
|
-
), Z.emitLocal("incoming_call",
|
|
18154
|
-
if (
|
|
18155
|
-
Uo(
|
|
18156
|
-
const
|
|
18141
|
+
}), d.delegate = {
|
|
18142
|
+
onInvite(l) {
|
|
18143
|
+
let g = !1;
|
|
18144
|
+
Ae = l, Z.emitLocal("sipjsSession", l), Ve.pushSound(), Ve.pushNotification(
|
|
18145
|
+
`New incoming call from ${l.remoteIdentity.uri.user}`
|
|
18146
|
+
), Z.emitLocal("incoming_call", l), Z.emitToParent("sync_incoming_call", l), l.stateChange.addListener((f) => {
|
|
18147
|
+
if (f === B.Established) {
|
|
18148
|
+
Uo(l), g = !0, Z.emitLocal("call_status", "InCall"), Z.emitToParent("sync_call_answered", l);
|
|
18149
|
+
const y = Y();
|
|
18157
18150
|
Ia = setInterval(() => {
|
|
18158
|
-
const
|
|
18151
|
+
const w = Y.duration(Y().diff(y));
|
|
18159
18152
|
Z.emitLocal(
|
|
18160
18153
|
"call_duration",
|
|
18161
|
-
Ve.toHHMMSS(
|
|
18154
|
+
Ve.toHHMMSS(w.asSeconds())
|
|
18162
18155
|
);
|
|
18163
18156
|
}, 1e3);
|
|
18164
|
-
} else
|
|
18157
|
+
} else f === B.Terminated && (Lo(), clearInterval(Ia), Ve.stopSound(), Z.emitLocal("call_duration", "00:00"), Z.emitLocal("call_status", "Idle"), g ? Z.emitToParent("sync_call_ended", l) : Z.emitToParent("sync_call_unanswered"), Ae = null);
|
|
18165
18158
|
});
|
|
18166
18159
|
}
|
|
18167
|
-
}, await
|
|
18168
|
-
} catch (
|
|
18169
|
-
console.error("SipJS init error:",
|
|
18160
|
+
}, await d.start(), await c.register();
|
|
18161
|
+
} catch (o) {
|
|
18162
|
+
console.error("SipJS init error:", o), Z.emitLocal("register_status", {
|
|
18170
18163
|
status: "FAILED",
|
|
18171
|
-
reason:
|
|
18164
|
+
reason: o.message || "Failed to connect to SIP server"
|
|
18172
18165
|
});
|
|
18173
18166
|
}
|
|
18174
18167
|
}, $a = {
|
|
@@ -18188,7 +18181,7 @@ function Iu({
|
|
|
18188
18181
|
onRegisterStatus: o,
|
|
18189
18182
|
onAgentStatus: d
|
|
18190
18183
|
}) {
|
|
18191
|
-
const [c, l] = Be(!1), [g,
|
|
18184
|
+
const [c, l] = Be(!1), [g, f] = Be("CONNECTING"), [y, w] = Be("NOT_READY"), [b, C] = Be(!1), x = zi(!1), p = zi({}), E = (r == null ? void 0 : r.autoReady) !== !1, _ = (r == null ? void 0 : r.showAuxButton) === !0, S = (r == null ? void 0 : r.auxOptions) || [];
|
|
18192
18185
|
lr(() => {
|
|
18193
18186
|
p.current = {
|
|
18194
18187
|
onIncomingCall: s,
|
|
@@ -18199,42 +18192,42 @@ function Iu({
|
|
|
18199
18192
|
onAgentStatus: d
|
|
18200
18193
|
};
|
|
18201
18194
|
}), lr(() => {
|
|
18202
|
-
var
|
|
18195
|
+
var u;
|
|
18203
18196
|
r && Ve.setConfig(r);
|
|
18204
|
-
const A = (r == null ? void 0 : r.auth) || ((
|
|
18197
|
+
const A = (r == null ? void 0 : r.auth) || ((u = r == null ? void 0 : r.pabxConfig) == null ? void 0 : u.auth) || {};
|
|
18205
18198
|
!x.current && (A.username || A.user_pbx) && (A.pwd_pbx || A.secret) && (A.pabx_host || A.pbxurl || A.host) && (x.current = !0, Bu({ auth: A }));
|
|
18206
18199
|
}, [r]), lr(() => {
|
|
18207
18200
|
const A = [
|
|
18208
|
-
Z.on("register_status", (
|
|
18201
|
+
Z.on("register_status", (u) => {
|
|
18209
18202
|
var m, U;
|
|
18210
|
-
const v = typeof
|
|
18211
|
-
|
|
18203
|
+
const v = typeof u == "string" ? u : (u == null ? void 0 : u.status) ?? "FAILED";
|
|
18204
|
+
f(v), v === "REGISTERED" && l(!0), (U = (m = p.current).onRegisterStatus) == null || U.call(
|
|
18212
18205
|
m,
|
|
18213
|
-
v === "FAILED" ?
|
|
18206
|
+
v === "FAILED" ? u : v
|
|
18214
18207
|
);
|
|
18215
18208
|
}),
|
|
18216
|
-
Z.on("agent_status", (
|
|
18209
|
+
Z.on("agent_status", (u) => {
|
|
18217
18210
|
var v, m;
|
|
18218
|
-
w(
|
|
18211
|
+
w(u), (m = (v = p.current).onAgentStatus) == null || m.call(v, u);
|
|
18219
18212
|
}),
|
|
18220
|
-
Z.on("sync_incoming_call", (
|
|
18213
|
+
Z.on("sync_incoming_call", (u) => {
|
|
18221
18214
|
var v, m;
|
|
18222
|
-
C(!0), l(!0), (m = (v = p.current).onIncomingCall) == null || m.call(v,
|
|
18215
|
+
C(!0), l(!0), (m = (v = p.current).onIncomingCall) == null || m.call(v, u);
|
|
18223
18216
|
}),
|
|
18224
|
-
Z.on("sync_call_answered", (
|
|
18217
|
+
Z.on("sync_call_answered", (u) => {
|
|
18225
18218
|
var v, m;
|
|
18226
|
-
C(!1), (m = (v = p.current).onCallAnswered) == null || m.call(v,
|
|
18219
|
+
C(!1), (m = (v = p.current).onCallAnswered) == null || m.call(v, u);
|
|
18227
18220
|
}),
|
|
18228
|
-
Z.on("sync_call_ended", (
|
|
18221
|
+
Z.on("sync_call_ended", (u) => {
|
|
18229
18222
|
var v, m;
|
|
18230
|
-
C(!1), (m = (v = p.current).onCallEnded) == null || m.call(v,
|
|
18223
|
+
C(!1), (m = (v = p.current).onCallEnded) == null || m.call(v, u);
|
|
18231
18224
|
}),
|
|
18232
|
-
Z.on("sync_call_unanswered", (
|
|
18225
|
+
Z.on("sync_call_unanswered", (u) => {
|
|
18233
18226
|
var v, m;
|
|
18234
|
-
C(!1), (m = (v = p.current).onCallUnanswered) == null || m.call(v,
|
|
18227
|
+
C(!1), (m = (v = p.current).onCallUnanswered) == null || m.call(v, u);
|
|
18235
18228
|
})
|
|
18236
18229
|
];
|
|
18237
|
-
return () => A.forEach((
|
|
18230
|
+
return () => A.forEach((u) => u());
|
|
18238
18231
|
}, []);
|
|
18239
18232
|
const T = $a[e] || $a["bottom-left"], R = g !== "REGISTERED" ? g === "FAILED" ? "bg-red-500" : "bg-blue-400" : y === "READY" ? "bg-green-500" : y === "AUX" ? "bg-amber-400" : (
|
|
18240
18233
|
/* NOT_READY */
|
|
@@ -18344,7 +18337,7 @@ const Pu = {
|
|
|
18344
18337
|
// Callbacks
|
|
18345
18338
|
onIncomingCall: l,
|
|
18346
18339
|
onCallAnswered: g,
|
|
18347
|
-
onCallEnded:
|
|
18340
|
+
onCallEnded: f,
|
|
18348
18341
|
onCallUnanswered: y,
|
|
18349
18342
|
onRegisterStatus: w,
|
|
18350
18343
|
onAgentStatus: b,
|
|
@@ -18357,7 +18350,7 @@ const Pu = {
|
|
|
18357
18350
|
offset: s,
|
|
18358
18351
|
onIncomingCall: l,
|
|
18359
18352
|
onCallAnswered: g,
|
|
18360
|
-
onCallEnded:
|
|
18353
|
+
onCallEnded: f,
|
|
18361
18354
|
onCallUnanswered: y,
|
|
18362
18355
|
onRegisterStatus: w,
|
|
18363
18356
|
onAgentStatus: b
|