@kernelift/ai-chat 2.1.2 → 2.1.3

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/index.js CHANGED
@@ -3067,7 +3067,7 @@ function Jt() {
3067
3067
  }
3068
3068
  var a = [16843776, 0, 65536, 16843780, 16842756, 66564, 4, 65536, 1024, 16843776, 16843780, 1024, 16778244, 16842756, 16777216, 4, 1028, 16778240, 16778240, 66560, 66560, 16842752, 16842752, 16778244, 65540, 16777220, 16777220, 65540, 0, 1028, 66564, 16777216, 65536, 16843780, 4, 16842752, 16843776, 16777216, 16777216, 1024, 16842756, 65536, 66560, 16777220, 1024, 4, 16778244, 66564, 16843780, 65540, 16842752, 16778244, 16777220, 1028, 66564, 16843776, 1028, 16778240, 16778240, 0, 65540, 66560, 0, 16842756], p = [-2146402272, -2147450880, 32768, 1081376, 1048576, 32, -2146435040, -2147450848, -2147483616, -2146402272, -2146402304, -2147483648, -2147450880, 1048576, 32, -2146435040, 1081344, 1048608, -2147450848, 0, -2147483648, 32768, 1081376, -2146435072, 1048608, -2147483616, 0, 1081344, 32800, -2146402304, -2146435072, 32800, 0, 1081376, -2146435040, 1048576, -2147450848, -2146435072, -2146402304, 32768, -2146435072, -2147450880, 32, -2146402272, 1081376, 32, 32768, -2147483648, 32800, -2146402304, 1048576, -2147483616, 1048608, -2147450848, -2147483616, 1048608, 1081344, 0, -2147450880, 32800, -2147483648, -2146435040, -2146402272, 1081344], S = [520, 134349312, 0, 134348808, 134218240, 0, 131592, 134218240, 131080, 134217736, 134217736, 131072, 134349320, 131080, 134348800, 520, 134217728, 8, 134349312, 512, 131584, 134348800, 134348808, 131592, 134218248, 131584, 131072, 134218248, 8, 134349320, 512, 134217728, 134349312, 134217728, 131080, 520, 131072, 134349312, 134218240, 0, 512, 131080, 134349320, 134218240, 134217736, 512, 0, 134348808, 134218248, 131072, 134217728, 134349320, 8, 131592, 131584, 134217736, 134348800, 134218248, 520, 134348800, 131592, 8, 134348808, 131584], C = [8396801, 8321, 8321, 128, 8396928, 8388737, 8388609, 8193, 0, 8396800, 8396800, 8396929, 129, 0, 8388736, 8388609, 1, 8192, 8388608, 8396801, 128, 8388608, 8193, 8320, 8388737, 1, 8320, 8388736, 8192, 8396928, 8396929, 129, 8388736, 8388609, 8396800, 8396929, 129, 0, 0, 8396800, 8320, 8388736, 8388737, 1, 8396801, 8321, 8321, 128, 8396929, 129, 1, 8192, 8388609, 8193, 8396928, 8388737, 8193, 8320, 8388608, 8396801, 128, 8388608, 8192, 8396928], c = [256, 34078976, 34078720, 1107296512, 524288, 256, 1073741824, 34078720, 1074266368, 524288, 33554688, 1074266368, 1107296512, 1107820544, 524544, 1073741824, 33554432, 1074266112, 1074266112, 0, 1073742080, 1107820800, 1107820800, 33554688, 1107820544, 1073742080, 0, 1107296256, 34078976, 33554432, 1107296256, 524544, 524288, 1107296512, 256, 33554432, 1073741824, 34078720, 1107296512, 1074266368, 33554688, 1073741824, 1107820544, 34078976, 1074266368, 256, 33554432, 1107820544, 1107820800, 524544, 1107296256, 1107820800, 34078720, 0, 1074266112, 1107296256, 524544, 33554688, 1073742080, 524288, 0, 1074266112, 34078976, 1073742080], r = [536870928, 541065216, 16384, 541081616, 541065216, 16, 541081616, 4194304, 536887296, 4210704, 4194304, 536870928, 4194320, 536887296, 536870912, 16400, 0, 4194320, 536887312, 16384, 4210688, 536887312, 16, 541065232, 541065232, 0, 4210704, 541081600, 16400, 4210688, 541081600, 536870912, 536887296, 16, 541065232, 4210688, 541081616, 4194304, 16400, 536870928, 4194304, 536887296, 536870912, 16400, 536870928, 541081616, 4210688, 541065216, 4210704, 541081600, 0, 541065232, 16, 16384, 541065216, 4210704, 16384, 4194320, 536887312, 0, 541081600, 536870912, 4194320, 536887312], g = [2097152, 69206018, 67110914, 0, 2048, 67110914, 2099202, 69208064, 69208066, 2097152, 0, 67108866, 2, 67108864, 69206018, 2050, 67110912, 2099202, 2097154, 67110912, 67108866, 69206016, 69208064, 2097154, 69206016, 2048, 2050, 69208066, 2099200, 2, 67108864, 2099200, 67108864, 2099200, 2097152, 67110914, 67110914, 69206018, 69206018, 2, 2097154, 67108864, 67110912, 2097152, 69208064, 2050, 2099202, 69208064, 2050, 67108866, 69208066, 69206016, 2099200, 0, 2, 69208066, 0, 2099202, 69206016, 2048, 67108866, 67110912, 2048, 2097154], u = [268439616, 4096, 262144, 268701760, 268435456, 268439616, 64, 268435456, 262208, 268697600, 268701760, 266240, 268701696, 266304, 4096, 64, 268697600, 268435520, 268439552, 4160, 266240, 262208, 268697664, 268701696, 4160, 0, 0, 268697664, 268435520, 268439552, 266304, 262144, 266304, 262144, 268701696, 4096, 64, 268697664, 4096, 266304, 268439552, 64, 268435520, 268697600, 268697664, 268435456, 262144, 268439616, 0, 268701760, 262208, 268435520, 268697600, 268439552, 268439616, 0, 268701760, 266240, 266240, 4160, 4160, 262208, 268435456, 268701696];
3069
3069
  function I(l) {
3070
- for (var v = [0, 4, 536870912, 536870916, 65536, 65540, 536936448, 536936452, 512, 516, 536871424, 536871428, 66048, 66052, 536936960, 536936964], A = [0, 1, 1048576, 1048577, 67108864, 67108865, 68157440, 68157441, 256, 257, 1048832, 1048833, 67109120, 67109121, 68157696, 68157697], m = [0, 8, 2048, 2056, 16777216, 16777224, 16779264, 16779272, 0, 8, 2048, 2056, 16777216, 16777224, 16779264, 16779272], s = [0, 2097152, 134217728, 136314880, 8192, 2105344, 134225920, 136323072, 131072, 2228224, 134348800, 136445952, 139264, 2236416, 134356992, 136454144], h = [0, 262144, 16, 262160, 0, 262144, 16, 262160, 4096, 266240, 4112, 266256, 4096, 266240, 4112, 266256], y = [0, 1024, 32, 1056, 0, 1024, 32, 1056, 33554432, 33555456, 33554464, 33555488, 33554432, 33555456, 33554464, 33555488], b = [0, 268435456, 524288, 268959744, 2, 268435458, 524290, 268959746, 0, 268435456, 524288, 268959744, 2, 268435458, 524290, 268959746], N = [0, 65536, 2048, 67584, 536870912, 536936448, 536872960, 536938496, 131072, 196608, 133120, 198656, 537001984, 537067520, 537004032, 537069568], d = [0, 262144, 0, 262144, 2, 262146, 2, 262146, 33554432, 33816576, 33554432, 33816576, 33554434, 33816578, 33554434, 33816578], i = [0, 268435456, 8, 268435464, 0, 268435456, 8, 268435464, 1024, 268436480, 1032, 268436488, 1024, 268436480, 1032, 268436488], n = [0, 32, 0, 32, 1048576, 1048608, 1048576, 1048608, 8192, 8224, 8192, 8224, 1056768, 1056800, 1056768, 1056800], k = [0, 16777216, 512, 16777728, 2097152, 18874368, 2097664, 18874880, 67108864, 83886080, 67109376, 83886592, 69206016, 85983232, 69206528, 85983744], P = [0, 4096, 134217728, 134221824, 524288, 528384, 134742016, 134746112, 16, 4112, 134217744, 134221840, 524304, 528400, 134742032, 134746128], V = [0, 4, 256, 260, 0, 4, 256, 260, 1, 5, 257, 261, 1, 5, 257, 261], O = l.length() > 8 ? 3 : 1, M = [], Q = [0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0], G = 0, z, X = 0; X < O; X++) {
3070
+ for (var v = [0, 4, 536870912, 536870916, 65536, 65540, 536936448, 536936452, 512, 516, 536871424, 536871428, 66048, 66052, 536936960, 536936964], A = [0, 1, 1048576, 1048577, 67108864, 67108865, 68157440, 68157441, 256, 257, 1048832, 1048833, 67109120, 67109121, 68157696, 68157697], m = [0, 8, 2048, 2056, 16777216, 16777224, 16779264, 16779272, 0, 8, 2048, 2056, 16777216, 16777224, 16779264, 16779272], s = [0, 2097152, 134217728, 136314880, 8192, 2105344, 134225920, 136323072, 131072, 2228224, 134348800, 136445952, 139264, 2236416, 134356992, 136454144], h = [0, 262144, 16, 262160, 0, 262144, 16, 262160, 4096, 266240, 4112, 266256, 4096, 266240, 4112, 266256], y = [0, 1024, 32, 1056, 0, 1024, 32, 1056, 33554432, 33555456, 33554464, 33555488, 33554432, 33555456, 33554464, 33555488], b = [0, 268435456, 524288, 268959744, 2, 268435458, 524290, 268959746, 0, 268435456, 524288, 268959744, 2, 268435458, 524290, 268959746], N = [0, 65536, 2048, 67584, 536870912, 536936448, 536872960, 536938496, 131072, 196608, 133120, 198656, 537001984, 537067520, 537004032, 537069568], d = [0, 262144, 0, 262144, 2, 262146, 2, 262146, 33554432, 33816576, 33554432, 33816576, 33554434, 33816578, 33554434, 33816578], i = [0, 268435456, 8, 268435464, 0, 268435456, 8, 268435464, 1024, 268436480, 1032, 268436488, 1024, 268436480, 1032, 268436488], n = [0, 32, 0, 32, 1048576, 1048608, 1048576, 1048608, 8192, 8224, 8192, 8224, 1056768, 1056800, 1056768, 1056800], k = [0, 16777216, 512, 16777728, 2097152, 18874368, 2097664, 18874880, 67108864, 83886080, 67109376, 83886592, 69206016, 85983232, 69206528, 85983744], P = [0, 4096, 134217728, 134221824, 524288, 528384, 134742016, 134746112, 16, 4112, 134217744, 134221840, 524304, 528400, 134742032, 134746128], V = [0, 4, 256, 260, 0, 4, 256, 260, 1, 5, 257, 261, 1, 5, 257, 261], O = l.length() > 8 ? 3 : 1, M = [], Q = [0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0], G = 0, z, J = 0; J < O; J++) {
3071
3071
  var $ = l.getInt32(), re = l.getInt32();
3072
3072
  z = ($ >>> 4 ^ re) & 252645135, re ^= z, $ ^= z << 4, z = (re >>> -16 ^ $) & 65535, $ ^= z, re ^= z << -16, z = ($ >>> 2 ^ re) & 858993459, re ^= z, $ ^= z << 2, z = (re >>> -16 ^ $) & 65535, $ ^= z, re ^= z << -16, z = ($ >>> 1 ^ re) & 1431655765, re ^= z, $ ^= z << 1, z = (re >>> 8 ^ $) & 16711935, $ ^= z, re ^= z << 8, z = ($ >>> 1 ^ re) & 1431655765, re ^= z, $ ^= z << 1, z = $ << 8 | re >>> 20 & 240, $ = re << 24 | re << 8 & 16711680 | re >>> 8 & 65280 | re >>> 24 & 240, re = z;
3073
3073
  for (var W = 0; W < Q.length; ++W) {
@@ -4094,7 +4094,7 @@ function Zt() {
4094
4094
  }
4095
4095
  }
4096
4096
  }
4097
- function X(B) {
4097
+ function J(B) {
4098
4098
  var R = p();
4099
4099
  return this.abs().divRemTo(B, null, R), this.s < 0 && R.compareTo(a.ZERO) > 0 && B.subTo(R, R), R;
4100
4100
  }
@@ -4170,7 +4170,7 @@ function Zt() {
4170
4170
  var L;
4171
4171
  return B < 256 || R.isEven() ? L = new $(R) : L = new ue(R), this.exp(B, L);
4172
4172
  }
4173
- a.prototype.copyTo = v, a.prototype.fromInt = A, a.prototype.fromString = s, a.prototype.clamp = h, a.prototype.dlShiftTo = k, a.prototype.drShiftTo = P, a.prototype.lShiftTo = V, a.prototype.rShiftTo = O, a.prototype.subTo = M, a.prototype.multiplyTo = Q, a.prototype.squareTo = G, a.prototype.divRemTo = z, a.prototype.invDigit = _, a.prototype.isEven = U, a.prototype.exp = o, a.prototype.toString = y, a.prototype.negate = b, a.prototype.abs = N, a.prototype.compareTo = d, a.prototype.bitLength = n, a.prototype.mod = X, a.prototype.modPowInt = T, a.ZERO = m(0), a.ONE = m(1);
4173
+ a.prototype.copyTo = v, a.prototype.fromInt = A, a.prototype.fromString = s, a.prototype.clamp = h, a.prototype.dlShiftTo = k, a.prototype.drShiftTo = P, a.prototype.lShiftTo = V, a.prototype.rShiftTo = O, a.prototype.subTo = M, a.prototype.multiplyTo = Q, a.prototype.squareTo = G, a.prototype.divRemTo = z, a.prototype.invDigit = _, a.prototype.isEven = U, a.prototype.exp = o, a.prototype.toString = y, a.prototype.negate = b, a.prototype.abs = N, a.prototype.compareTo = d, a.prototype.bitLength = n, a.prototype.mod = J, a.prototype.modPowInt = T, a.ZERO = m(0), a.ONE = m(1);
4174
4174
  function j() {
4175
4175
  var B = p();
4176
4176
  return this.copyTo(B), B;
@@ -4191,7 +4191,7 @@ function Zt() {
4191
4191
  function F() {
4192
4192
  return this.t == 0 ? this.s : this.data[0] << 16 >> 16;
4193
4193
  }
4194
- function J(B) {
4194
+ function X(B) {
4195
4195
  return Math.floor(Math.LN2 * this.DB / Math.log(B));
4196
4196
  }
4197
4197
  function x() {
@@ -4537,7 +4537,7 @@ function Zt() {
4537
4537
  }
4538
4538
  };
4539
4539
  }
4540
- return a.prototype.chunkSize = J, a.prototype.toRadix = ee, a.prototype.fromRadix = oe, a.prototype.fromNumber = ge, a.prototype.bitwiseTo = Se, a.prototype.changeBit = Gt, a.prototype.addTo = De, a.prototype.dMultiply = Qe, a.prototype.dAddOffset = je, a.prototype.multiplyLowerTo = pn, a.prototype.multiplyUpperTo = dn, a.prototype.modInt = En, a.prototype.millerRabin = bn, a.prototype.clone = j, a.prototype.intValue = K, a.prototype.byteValue = q, a.prototype.shortValue = F, a.prototype.signum = x, a.prototype.toByteArray = le, a.prototype.equals = Ie, a.prototype.min = Te, a.prototype.max = be, a.prototype.and = Ee, a.prototype.or = Fe, a.prototype.xor = Xe, a.prototype.andNot = tt, a.prototype.not = nt, a.prototype.shiftLeft = ut, a.prototype.shiftRight = ht, a.prototype.getLowestSetBit = Et, a.prototype.bitCount = Nt, a.prototype.testBit = Pt, a.prototype.setBit = Ue, a.prototype.clearBit = Ne, a.prototype.flipBit = we, a.prototype.add = Oe, a.prototype.subtract = Pe, a.prototype.multiply = Le, a.prototype.divide = Ke, a.prototype.remainder = Ve, a.prototype.divideAndRemainder = Me, a.prototype.modPow = An, a.prototype.modInverse = In, a.prototype.pow = fn, a.prototype.gcd = Cn, a.prototype.isProbablePrime = Bn, Cr;
4540
+ return a.prototype.chunkSize = X, a.prototype.toRadix = ee, a.prototype.fromRadix = oe, a.prototype.fromNumber = ge, a.prototype.bitwiseTo = Se, a.prototype.changeBit = Gt, a.prototype.addTo = De, a.prototype.dMultiply = Qe, a.prototype.dAddOffset = je, a.prototype.multiplyLowerTo = pn, a.prototype.multiplyUpperTo = dn, a.prototype.modInt = En, a.prototype.millerRabin = bn, a.prototype.clone = j, a.prototype.intValue = K, a.prototype.byteValue = q, a.prototype.shortValue = F, a.prototype.signum = x, a.prototype.toByteArray = le, a.prototype.equals = Ie, a.prototype.min = Te, a.prototype.max = be, a.prototype.and = Ee, a.prototype.or = Fe, a.prototype.xor = Xe, a.prototype.andNot = tt, a.prototype.not = nt, a.prototype.shiftLeft = ut, a.prototype.shiftRight = ht, a.prototype.getLowestSetBit = Et, a.prototype.bitCount = Nt, a.prototype.testBit = Pt, a.prototype.setBit = Ue, a.prototype.clearBit = Ne, a.prototype.flipBit = we, a.prototype.add = Oe, a.prototype.subtract = Pe, a.prototype.multiply = Le, a.prototype.divide = Ke, a.prototype.remainder = Ve, a.prototype.divideAndRemainder = Me, a.prototype.modPow = An, a.prototype.modInverse = In, a.prototype.pow = fn, a.prototype.gcd = Cn, a.prototype.isProbablePrime = Bn, Cr;
4541
4541
  }
4542
4542
  var Er = { exports: {} }, Ir = { exports: {} }, ma;
4543
4543
  function jt() {
@@ -5037,8 +5037,8 @@ function Wt() {
5037
5037
  C.rsa.encrypt = function(i, n, k) {
5038
5038
  var P = k, V, O = Math.ceil(n.n.bitLength() / 8);
5039
5039
  k !== !1 && k !== !0 ? (P = k === 2, V = v(i, n, k)) : (V = t.util.createBuffer(), V.putBytes(i));
5040
- for (var M = new e(V.toHex(), 16), Q = l(M, n, P), G = Q.toString(16), z = t.util.createBuffer(), X = O - Math.ceil(G.length / 2); X > 0; )
5041
- z.putByte(0), --X;
5040
+ for (var M = new e(V.toHex(), 16), Q = l(M, n, P), G = Q.toString(16), z = t.util.createBuffer(), J = O - Math.ceil(G.length / 2); J > 0; )
5041
+ z.putByte(0), --J;
5042
5042
  return z.putBytes(t.util.hexToBytes(G)), z.getBytes();
5043
5043
  }, C.rsa.decrypt = function(i, n, k, P) {
5044
5044
  var V = Math.ceil(n.n.bitLength() / 8);
@@ -5049,8 +5049,8 @@ function Wt() {
5049
5049
  var M = new e(t.util.createBuffer(i).toHex(), 16);
5050
5050
  if (M.compareTo(n.n) >= 0)
5051
5051
  throw new Error("Encrypted message is invalid.");
5052
- for (var Q = l(M, n, k), G = Q.toString(16), z = t.util.createBuffer(), X = V - Math.ceil(G.length / 2); X > 0; )
5053
- z.putByte(0), --X;
5052
+ for (var Q = l(M, n, k), G = Q.toString(16), z = t.util.createBuffer(), J = V - Math.ceil(G.length / 2); J > 0; )
5053
+ z.putByte(0), --J;
5054
5054
  return z.putBytes(t.util.hexToBytes(G)), P !== !1 ? A(z.getBytes(), n, k) : z.getBytes();
5055
5055
  }, C.rsa.createKeyPairGenerationState = function(i, n, k) {
5056
5056
  typeof i == "string" && (i = parseInt(i, 10)), i = i || 2048, k = k || {};
@@ -5105,16 +5105,16 @@ function Wt() {
5105
5105
  else if (i.state === 4)
5106
5106
  i.n = i.p.multiply(i.q), i.n.bitLength() === i.bits ? ++i.state : (i.q = null, i.state = 0);
5107
5107
  else if (i.state === 5) {
5108
- var X = i.e.modInverse(i.phi);
5108
+ var J = i.e.modInverse(i.phi);
5109
5109
  i.keys = {
5110
5110
  privateKey: C.rsa.setPrivateKey(
5111
5111
  i.n,
5112
5112
  i.e,
5113
- X,
5113
+ J,
5114
5114
  i.p,
5115
5115
  i.q,
5116
- X.mod(i.p1),
5117
- X.mod(i.q1),
5116
+ J.mod(i.p1),
5117
+ J.mod(i.q1),
5118
5118
  i.q.modInverse(i.p)
5119
5119
  ),
5120
5120
  publicKey: C.rsa.setPublicKey(i.n, i.e)
@@ -5182,16 +5182,16 @@ function Wt() {
5182
5182
  "pkcs8",
5183
5183
  G.privateKey
5184
5184
  );
5185
- z.oncomplete = function(X) {
5186
- var $ = X.target.result, re = C.privateKeyFromAsn1(
5185
+ z.oncomplete = function(J) {
5186
+ var $ = J.target.result, re = C.privateKeyFromAsn1(
5187
5187
  p.fromDer(t.util.createBuffer($))
5188
5188
  );
5189
5189
  P(null, {
5190
5190
  privateKey: re,
5191
5191
  publicKey: C.setRsaPublicKey(re.n, re.e)
5192
5192
  });
5193
- }, z.onerror = function(X) {
5194
- P(X);
5193
+ }, z.onerror = function(J) {
5194
+ P(J);
5195
5195
  };
5196
5196
  }, V.onerror = function(Q) {
5197
5197
  P(Q);
@@ -5253,10 +5253,10 @@ function Wt() {
5253
5253
  }), "_parseAllDigestBytes" in M || (M._parseAllDigestBytes = !0), O === "RSASSA-PKCS1-V1_5" ? O = {
5254
5254
  verify: function(G, z) {
5255
5255
  z = A(z, k, !0);
5256
- var X = p.fromDer(z, {
5256
+ var J = p.fromDer(z, {
5257
5257
  parseAllBytes: M._parseAllDigestBytes
5258
5258
  }), $ = {}, re = [];
5259
- if (!p.validate(X, D, $, re)) {
5259
+ if (!p.validate(J, D, $, re)) {
5260
5260
  var W = new Error(
5261
5261
  "ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value."
5262
5262
  );
@@ -5294,30 +5294,30 @@ function Wt() {
5294
5294
  dQ: M,
5295
5295
  qInv: Q
5296
5296
  };
5297
- return G.decrypt = function(z, X, $) {
5298
- typeof X == "string" ? X = X.toUpperCase() : X === void 0 && (X = "RSAES-PKCS1-V1_5");
5297
+ return G.decrypt = function(z, J, $) {
5298
+ typeof J == "string" ? J = J.toUpperCase() : J === void 0 && (J = "RSAES-PKCS1-V1_5");
5299
5299
  var re = C.rsa.decrypt(z, G, !1, !1);
5300
- if (X === "RSAES-PKCS1-V1_5")
5301
- X = { decode: A };
5302
- else if (X === "RSA-OAEP" || X === "RSAES-OAEP")
5303
- X = {
5300
+ if (J === "RSAES-PKCS1-V1_5")
5301
+ J = { decode: A };
5302
+ else if (J === "RSA-OAEP" || J === "RSAES-OAEP")
5303
+ J = {
5304
5304
  decode: function(W, se) {
5305
5305
  return t.pkcs1.decode_rsa_oaep(se, W, $);
5306
5306
  }
5307
5307
  };
5308
- else if (["RAW", "NONE", "NULL", null].indexOf(X) !== -1)
5309
- X = { decode: function(W) {
5308
+ else if (["RAW", "NONE", "NULL", null].indexOf(J) !== -1)
5309
+ J = { decode: function(W) {
5310
5310
  return W;
5311
5311
  } };
5312
5312
  else
5313
- throw new Error('Unsupported encryption scheme: "' + X + '".');
5314
- return X.decode(re, G, !1);
5315
- }, G.sign = function(z, X) {
5313
+ throw new Error('Unsupported encryption scheme: "' + J + '".');
5314
+ return J.decode(re, G, !1);
5315
+ }, G.sign = function(z, J) {
5316
5316
  var $ = !1;
5317
- typeof X == "string" && (X = X.toUpperCase()), X === void 0 || X === "RSASSA-PKCS1-V1_5" ? (X = { encode: E }, $ = 1) : (X === "NONE" || X === "NULL" || X === null) && (X = { encode: function() {
5317
+ typeof J == "string" && (J = J.toUpperCase()), J === void 0 || J === "RSASSA-PKCS1-V1_5" ? (J = { encode: E }, $ = 1) : (J === "NONE" || J === "NULL" || J === null) && (J = { encode: function() {
5318
5318
  return z;
5319
5319
  } }, $ = 1);
5320
- var re = X.encode(z, G.n.bitLength());
5320
+ var re = J.encode(z, G.n.bitLength());
5321
5321
  return C.rsa.encrypt(re, G, $);
5322
5322
  }, G;
5323
5323
  }, C.wrapRsaPrivateKey = function(i) {
@@ -5353,15 +5353,15 @@ function Wt() {
5353
5353
  var P = new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");
5354
5354
  throw P.errors = k, P;
5355
5355
  }
5356
- var V, O, M, Q, G, z, X, $;
5357
- return V = t.util.createBuffer(n.privateKeyModulus).toHex(), O = t.util.createBuffer(n.privateKeyPublicExponent).toHex(), M = t.util.createBuffer(n.privateKeyPrivateExponent).toHex(), Q = t.util.createBuffer(n.privateKeyPrime1).toHex(), G = t.util.createBuffer(n.privateKeyPrime2).toHex(), z = t.util.createBuffer(n.privateKeyExponent1).toHex(), X = t.util.createBuffer(n.privateKeyExponent2).toHex(), $ = t.util.createBuffer(n.privateKeyCoefficient).toHex(), C.setRsaPrivateKey(
5356
+ var V, O, M, Q, G, z, J, $;
5357
+ return V = t.util.createBuffer(n.privateKeyModulus).toHex(), O = t.util.createBuffer(n.privateKeyPublicExponent).toHex(), M = t.util.createBuffer(n.privateKeyPrivateExponent).toHex(), Q = t.util.createBuffer(n.privateKeyPrime1).toHex(), G = t.util.createBuffer(n.privateKeyPrime2).toHex(), z = t.util.createBuffer(n.privateKeyExponent1).toHex(), J = t.util.createBuffer(n.privateKeyExponent2).toHex(), $ = t.util.createBuffer(n.privateKeyCoefficient).toHex(), C.setRsaPrivateKey(
5358
5358
  new e(V, 16),
5359
5359
  new e(O, 16),
5360
5360
  new e(M, 16),
5361
5361
  new e(Q, 16),
5362
5362
  new e(G, 16),
5363
5363
  new e(z, 16),
5364
- new e(X, 16),
5364
+ new e(J, 16),
5365
5365
  new e($, 16)
5366
5366
  );
5367
5367
  }, C.privateKeyToAsn1 = C.privateKeyToRSAPrivateKey = function(i) {
@@ -5500,8 +5500,8 @@ function Wt() {
5500
5500
  P.putByte(Q);
5501
5501
  } else
5502
5502
  for (; M > 0; ) {
5503
- for (var z = 0, X = t.random.getBytes(M), G = 0; G < M; ++G)
5504
- Q = X.charCodeAt(G), Q === 0 ? ++z : P.putByte(Q);
5503
+ for (var z = 0, J = t.random.getBytes(M), G = 0; G < M; ++G)
5504
+ Q = J.charCodeAt(G), Q === 0 ? ++z : P.putByte(Q);
5505
5505
  M = z;
5506
5506
  }
5507
5507
  return P.putByte(0), P.putBytes(i), P;
@@ -5532,8 +5532,8 @@ function Wt() {
5532
5532
  }
5533
5533
  ++G;
5534
5534
  }
5535
- var X = O.getByte();
5536
- if (X !== 0 || G !== V - 3 - O.length())
5535
+ var J = O.getByte();
5536
+ if (J !== 0 || G !== V - 3 - O.length())
5537
5537
  throw new Error("Encryption block is invalid.");
5538
5538
  return O.getBytes();
5539
5539
  }
@@ -5585,16 +5585,16 @@ function Wt() {
5585
5585
  i.q = null, O(i.qBits, M);
5586
5586
  return;
5587
5587
  }
5588
- var X = i.e.modInverse(i.phi);
5588
+ var J = i.e.modInverse(i.phi);
5589
5589
  i.keys = {
5590
5590
  privateKey: C.rsa.setPrivateKey(
5591
5591
  i.n,
5592
5592
  i.e,
5593
- X,
5593
+ J,
5594
5594
  i.p,
5595
5595
  i.q,
5596
- X.mod(i.p1),
5597
- X.mod(i.q1),
5596
+ J.mod(i.p1),
5597
+ J.mod(i.q1),
5598
5598
  i.q.modInverse(i.p)
5599
5599
  ),
5600
5600
  publicKey: C.rsa.setPublicKey(i.n, i.e)
@@ -6011,7 +6011,7 @@ function rn() {
6011
6011
  Q.putByte(i.at(y % n));
6012
6012
  var G = O;
6013
6013
  G.putBuffer(Q);
6014
- for (var z = Math.ceil(m / b), X = 1; X <= z; X++) {
6014
+ for (var z = Math.ceil(m / b), J = 1; J <= z; J++) {
6015
6015
  var $ = new t.util.ByteBuffer();
6016
6016
  $.putBytes(P.bytes()), $.putBytes(G.bytes());
6017
6017
  for (var re = 0; re < A; re++)
@@ -7266,8 +7266,8 @@ function Yr() {
7266
7266
  var G = e.toDer(O.tbsCertificate);
7267
7267
  O.md.update(G.getBytes());
7268
7268
  }
7269
- var z = t.md.sha1.create(), X = e.toDer(n.certIssuer);
7270
- z.update(X.getBytes()), O.issuer.getField = function(W) {
7269
+ var z = t.md.sha1.create(), J = e.toDer(n.certIssuer);
7270
+ z.update(J.getBytes()), O.issuer.getField = function(W) {
7271
7271
  return I(O.issuer, W);
7272
7272
  }, O.issuer.addField = function(W) {
7273
7273
  A([W]), O.issuer.attributes.push(W);
@@ -7560,12 +7560,12 @@ function Yr() {
7560
7560
  d.comment
7561
7561
  );
7562
7562
  } else if (d.name === "subjectKeyIdentifier" && i.cert) {
7563
- var X = i.cert.generateSubjectKeyIdentifier();
7564
- d.subjectKeyIdentifier = X.toHex(), d.value = e.create(
7563
+ var J = i.cert.generateSubjectKeyIdentifier();
7564
+ d.subjectKeyIdentifier = J.toHex(), d.value = e.create(
7565
7565
  e.Class.UNIVERSAL,
7566
7566
  e.Type.OCTETSTRING,
7567
7567
  !1,
7568
- X.getBytes()
7568
+ J.getBytes()
7569
7569
  );
7570
7570
  } else if (d.name === "authorityKeyIdentifier" && i.cert) {
7571
7571
  d.value = e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, []);
@@ -7933,8 +7933,8 @@ function Yr() {
7933
7933
  if (!t.util.isArray(Q))
7934
7934
  return M = i.certs[O.subject.hash], delete i.certs[O.subject.hash], M;
7935
7935
  for (var G = e.toDer(a.certificateToAsn1(O)).getBytes(), z = 0; z < Q.length; ++z) {
7936
- var X = e.toDer(a.certificateToAsn1(Q[z])).getBytes();
7937
- G === X && (M = Q[z], Q.splice(z, 1));
7936
+ var J = e.toDer(a.certificateToAsn1(Q[z])).getBytes();
7937
+ G === J && (M = Q[z], Q.splice(z, 1));
7938
7938
  }
7939
7939
  return Q.length === 0 && delete i.certs[O.subject.hash], M;
7940
7940
  };
@@ -7977,10 +7977,10 @@ function Yr() {
7977
7977
  now: P
7978
7978
  }), O === null) {
7979
7979
  if (G = i[0] || d.getIssuer(Q), G === null && Q.isIssuer(Q) && (z = !0, G = Q), G) {
7980
- var X = G;
7981
- t.util.isArray(X) || (X = [X]);
7982
- for (var $ = !1; !$ && X.length > 0; ) {
7983
- G = X.shift();
7980
+ var J = G;
7981
+ t.util.isArray(J) || (J = [J]);
7982
+ for (var $ = !1; !$ && J.length > 0; ) {
7983
+ G = J.shift();
7984
7984
  try {
7985
7985
  $ = G.verify(Q);
7986
7986
  } catch {
@@ -8236,16 +8236,16 @@ function sn() {
8236
8236
  * bag type.
8237
8237
  */
8238
8238
  getBags: function(G) {
8239
- var z = {}, X;
8240
- return "localKeyId" in G ? X = G.localKeyId : "localKeyIdHex" in G && (X = t.util.hexToBytes(G.localKeyIdHex)), X === void 0 && !("friendlyName" in G) && "bagType" in G && (z[G.bagType] = u(
8239
+ var z = {}, J;
8240
+ return "localKeyId" in G ? J = G.localKeyId : "localKeyIdHex" in G && (J = t.util.hexToBytes(G.localKeyIdHex)), J === void 0 && !("friendlyName" in G) && "bagType" in G && (z[G.bagType] = u(
8241
8241
  N.safeContents,
8242
8242
  null,
8243
8243
  null,
8244
8244
  G.bagType
8245
- )), X !== void 0 && (z.localKeyId = u(
8245
+ )), J !== void 0 && (z.localKeyId = u(
8246
8246
  N.safeContents,
8247
8247
  "localKeyId",
8248
- X,
8248
+ J,
8249
8249
  G.bagType
8250
8250
  )), "friendlyName" in G && (z.friendlyName = u(
8251
8251
  N.safeContents,
@@ -8602,10 +8602,10 @@ function sn() {
8602
8602
  );
8603
8603
  n.push(z);
8604
8604
  }
8605
- var X = null;
8605
+ var J = null;
8606
8606
  if (A !== null) {
8607
8607
  var $ = a.wrapRsaPrivateKey(a.privateKeyToAsn1(A));
8608
- s === null ? X = e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [
8608
+ s === null ? J = e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [
8609
8609
  // bagId
8610
8610
  e.create(
8611
8611
  e.Class.UNIVERSAL,
@@ -8620,7 +8620,7 @@ function sn() {
8620
8620
  ]),
8621
8621
  // bagAttributes (OPTIONAL)
8622
8622
  b
8623
- ]) : X = e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [
8623
+ ]) : J = e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [
8624
8624
  // bagId
8625
8625
  e.create(
8626
8626
  e.Class.UNIVERSAL,
@@ -8636,7 +8636,7 @@ function sn() {
8636
8636
  // bagAttributes (OPTIONAL)
8637
8637
  b
8638
8638
  ]);
8639
- var re = e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [X]), W = (
8639
+ var re = e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [J]), W = (
8640
8640
  // PKCS#7 ContentInfo
8641
8641
  e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [
8642
8642
  // contentType
@@ -8786,19 +8786,19 @@ function un() {
8786
8786
  var t = pe();
8787
8787
  yt(), Qt(), xr(), Ot(), on(), dt(), jt(), ve();
8788
8788
  var e = function(f, w, U, o) {
8789
- var T = t.util.createBuffer(), j = f.length >> 1, K = j + (f.length & 1), q = f.substr(0, K), F = f.substr(j, K), J = t.util.createBuffer(), x = t.hmac.create();
8789
+ var T = t.util.createBuffer(), j = f.length >> 1, K = j + (f.length & 1), q = f.substr(0, K), F = f.substr(j, K), X = t.util.createBuffer(), x = t.hmac.create();
8790
8790
  U = w + U;
8791
8791
  var ee = Math.ceil(o / 16), oe = Math.ceil(o / 20);
8792
8792
  x.start("MD5", q);
8793
8793
  var ge = t.util.createBuffer();
8794
- J.putBytes(U);
8794
+ X.putBytes(U);
8795
8795
  for (var le = 0; le < ee; ++le)
8796
- x.start(null, null), x.update(J.getBytes()), J.putBuffer(x.digest()), x.start(null, null), x.update(J.bytes() + U), ge.putBuffer(x.digest());
8796
+ x.start(null, null), x.update(X.getBytes()), X.putBuffer(x.digest()), x.start(null, null), x.update(X.bytes() + U), ge.putBuffer(x.digest());
8797
8797
  x.start("SHA1", F);
8798
8798
  var Ie = t.util.createBuffer();
8799
- J.clear(), J.putBytes(U);
8799
+ X.clear(), X.putBytes(U);
8800
8800
  for (var le = 0; le < oe; ++le)
8801
- x.start(null, null), x.update(J.getBytes()), J.putBuffer(x.digest()), x.start(null, null), x.update(J.bytes() + U), Ie.putBuffer(x.digest());
8801
+ x.start(null, null), x.update(X.getBytes()), X.putBuffer(x.digest()), x.start(null, null), x.update(X.bytes() + U), Ie.putBuffer(x.digest());
8802
8802
  return T.putBytes(t.util.xorBytes(
8803
8803
  ge.getBytes(),
8804
8804
  Ie.getBytes(),
@@ -8977,9 +8977,9 @@ function un() {
8977
8977
  });
8978
8978
  if (!T)
8979
8979
  for (var F = 0; F < o.extensions.length; ++F) {
8980
- var J = o.extensions[F];
8981
- if (J.type[0] === 0 && J.type[1] === 0)
8982
- for (var x = C(J.data, 2); x.length() > 0; ) {
8980
+ var X = o.extensions[F];
8981
+ if (X.type[0] === 0 && X.type[1] === 0)
8982
+ for (var x = C(X.data, 2); x.length() > 0; ) {
8983
8983
  var ee = x.getByte();
8984
8984
  if (ee !== 0)
8985
8985
  break;
@@ -9104,10 +9104,10 @@ function un() {
9104
9104
  try {
9105
9105
  for (; T.certificate_list.length() > 0; )
9106
9106
  j = C(T.certificate_list, 3), K = t.asn1.fromDer(j), j = t.pki.certificateFromAsn1(K, !0), q.push(j);
9107
- } catch (J) {
9107
+ } catch (X) {
9108
9108
  return f.error(f, {
9109
9109
  message: "Could not parse certificate list.",
9110
- cause: J,
9110
+ cause: X,
9111
9111
  send: !0,
9112
9112
  alert: {
9113
9113
  level: r.Alert.Level.fatal,
@@ -9293,8 +9293,8 @@ function un() {
9293
9293
  o.read += 4;
9294
9294
  var j = w.fragment.getBytes();
9295
9295
  o = t.util.createBuffer(), o.putBuffer(f.session.md5.digest()), o.putBuffer(f.session.sha1.digest());
9296
- var K = f.entity === r.ConnectionEnd.client, q = K ? "server finished" : "client finished", F = f.session.sp, J = 12, x = e;
9297
- if (o = x(F.master_secret, q, o.getBytes(), J), o.getBytes() !== j)
9296
+ var K = f.entity === r.ConnectionEnd.client, q = K ? "server finished" : "client finished", F = f.session.sp, X = 12, x = e;
9297
+ if (o = x(F.master_secret, q, o.getBytes(), X), o.getBytes() !== j)
9298
9298
  return f.error(f, {
9299
9299
  message: "Invalid verify_data in Finished message.",
9300
9300
  send: !0,
@@ -9479,13 +9479,13 @@ function un() {
9479
9479
  /*CER*/
9480
9480
  [n, P, V, n, M]
9481
9481
  ];
9482
- var G = r.handleHelloRequest, z = r.handleServerHello, X = r.handleCertificate, $ = r.handleServerKeyExchange, re = r.handleCertificateRequest, W = r.handleServerHelloDone, se = r.handleFinished, de = [];
9482
+ var G = r.handleHelloRequest, z = r.handleServerHello, J = r.handleCertificate, $ = r.handleServerKeyExchange, re = r.handleCertificateRequest, W = r.handleServerHelloDone, se = r.handleFinished, de = [];
9483
9483
  de[r.ConnectionEnd.client] = [
9484
9484
  // HR,01,SH,03,04,05,06,07,08,09,10,SC,SK,CR,HD,15,CK,17,18,19,FI
9485
9485
  /*SHE*/
9486
9486
  [n, n, z, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n],
9487
9487
  /*SCE*/
9488
- [G, n, n, n, n, n, n, n, n, n, n, X, $, re, W, n, n, n, n, n, n],
9488
+ [G, n, n, n, n, n, n, n, n, n, n, J, $, re, W, n, n, n, n, n, n],
9489
9489
  /*SKE*/
9490
9490
  [G, n, n, n, n, n, n, n, n, n, n, n, $, re, W, n, n, n, n, n, n],
9491
9491
  /*SCR*/
@@ -9507,7 +9507,7 @@ function un() {
9507
9507
  /*CHE*/
9508
9508
  [n, me, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n],
9509
9509
  /*CCE*/
9510
- [n, n, n, n, n, n, n, n, n, n, n, X, n, n, n, n, n, n, n, n, n],
9510
+ [n, n, n, n, n, n, n, n, n, n, n, J, n, n, n, n, n, n, n, n, n],
9511
9511
  /*CKE*/
9512
9512
  [n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, _, n, n, n, n],
9513
9513
  /*CCV*/
@@ -9647,10 +9647,10 @@ function un() {
9647
9647
  if (f.virtualHost) {
9648
9648
  var F = t.util.createBuffer();
9649
9649
  F.putByte(0), F.putByte(0);
9650
- var J = t.util.createBuffer();
9651
- J.putByte(0), c(J, 2, t.util.createBuffer(f.virtualHost));
9650
+ var X = t.util.createBuffer();
9651
+ X.putByte(0), c(X, 2, t.util.createBuffer(f.virtualHost));
9652
9652
  var x = t.util.createBuffer();
9653
- c(x, 2, J), c(F, 2, x), q.putBuffer(F);
9653
+ c(x, 2, X), c(F, 2, x), q.putBuffer(F);
9654
9654
  }
9655
9655
  var ee = q.length();
9656
9656
  ee > 0 && (ee += 2);
@@ -9686,10 +9686,10 @@ function un() {
9686
9686
  }
9687
9687
  if (q.procType && q.procType.type === "ENCRYPTED")
9688
9688
  throw new Error("Could not convert certificate from PEM; PEM is encrypted.");
9689
- var J = t.util.createBuffer(q.body);
9690
- j === null && (j = t.asn1.fromDer(J.bytes(), !1));
9689
+ var X = t.util.createBuffer(q.body);
9690
+ j === null && (j = t.asn1.fromDer(X.bytes(), !1));
9691
9691
  var x = t.util.createBuffer();
9692
- c(x, 3, J), T.putBuffer(x);
9692
+ c(x, 3, X), T.putBuffer(x);
9693
9693
  }
9694
9694
  U = t.pki.certificateFromAsn1(j), w ? f.session.clientCertificate = U : f.session.serverCertificate = U;
9695
9695
  } catch (ge) {
@@ -9854,18 +9854,18 @@ function un() {
9854
9854
  for (var o in f.verifyOptions)
9855
9855
  U[o] = f.verifyOptions[o];
9856
9856
  U.verify = function(j, K, q) {
9857
- var F = te(j), J = f.verify(f, j, K, q);
9858
- if (J !== !0) {
9859
- if (typeof J == "object" && !t.util.isArray(J)) {
9857
+ var F = te(j), X = f.verify(f, j, K, q);
9858
+ if (X !== !0) {
9859
+ if (typeof X == "object" && !t.util.isArray(X)) {
9860
9860
  var x = new Error("The application rejected the certificate.");
9861
9861
  throw x.send = !0, x.alert = {
9862
9862
  level: r.Alert.Level.fatal,
9863
9863
  description: r.Alert.Description.bad_certificate
9864
- }, J.message && (x.message = J.message), J.alert && (x.alert.description = J.alert), x;
9864
+ }, X.message && (x.message = X.message), X.alert && (x.alert.description = X.alert), x;
9865
9865
  }
9866
- J !== j && (J = ze(J));
9866
+ X !== j && (X = ze(X));
9867
9867
  }
9868
- return J;
9868
+ return X;
9869
9869
  }, t.pki.verifyCertificateChain(f.caStore, w, U);
9870
9870
  } catch (j) {
9871
9871
  var T = j;
@@ -9986,7 +9986,7 @@ function un() {
9986
9986
  });
9987
9987
  }
9988
9988
  return ee;
9989
- }, J = function(x) {
9989
+ }, X = function(x) {
9990
9990
  var ee = 0, oe = x.input, ge = oe.length();
9991
9991
  if (ge < x.record.length)
9992
9992
  ee = x.record.length - ge;
@@ -10036,7 +10036,7 @@ function un() {
10036
10036
  }
10037
10037
  }, K.process = function(x) {
10038
10038
  var ee = 0;
10039
- return x && K.input.putBytes(x), K.fail || (K.record !== null && K.record.ready && K.record.fragment.isEmpty() && (K.record = null), K.record === null && (ee = F(K)), !K.fail && K.record !== null && !K.record.ready && (ee = J(K)), !K.fail && K.record !== null && K.record.ready && q(K, K.record)), ee;
10039
+ return x && K.input.putBytes(x), K.fail || (K.record !== null && K.record.ready && K.record.fragment.isEmpty() && (K.record = null), K.record === null && (ee = F(K)), !K.fail && K.record !== null && !K.record.ready && (ee = X(K)), !K.fail && K.record !== null && K.record.ready && q(K, K.record)), ee;
10040
10040
  }, K.prepare = function(x) {
10041
10041
  return r.queue(K, r.createRecord(K, {
10042
10042
  type: r.ContentType.application_data,
@@ -10347,7 +10347,7 @@ function ln() {
10347
10347
  ], S = !0;
10348
10348
  }
10349
10349
  function g(u, I, D) {
10350
- for (var E, l, v, A, m, s, h, y, b, N, d, i, n, k, P, V, O, M, Q, G, z, X, $, re, W, se, de, me, _, ue, te, ze, fe, f, w, U = D.length(); U >= 128; ) {
10350
+ for (var E, l, v, A, m, s, h, y, b, N, d, i, n, k, P, V, O, M, Q, G, z, J, $, re, W, se, de, me, _, ue, te, ze, fe, f, w, U = D.length(); U >= 128; ) {
10351
10351
  for (_ = 0; _ < 16; ++_)
10352
10352
  I[_][0] = D.getInt32() >>> 0, I[_][1] = D.getInt32() >>> 0;
10353
10353
  for (; _ < 80; ++_)
@@ -10360,17 +10360,17 @@ function ln() {
10360
10360
  ue >>> 7) >>> 0, A = ((ue << 31 | te >>> 1) ^ // ROTR 1
10361
10361
  (ue << 24 | te >>> 8) ^ // ROTR 8
10362
10362
  (ue << 25 | te >>> 7)) >>> 0, fe = I[_ - 7], w = I[_ - 16], te = l + fe[1] + A + w[1], I[_][0] = E + fe[0] + v + w[0] + (te / 4294967296 >>> 0) >>> 0, I[_][1] = te >>> 0;
10363
- for (n = u[0][0], k = u[0][1], P = u[1][0], V = u[1][1], O = u[2][0], M = u[2][1], Q = u[3][0], G = u[3][1], z = u[4][0], X = u[4][1], $ = u[5][0], re = u[5][1], W = u[6][0], se = u[6][1], de = u[7][0], me = u[7][1], _ = 0; _ < 80; ++_)
10364
- h = ((z >>> 14 | X << 18) ^ // ROTR 14
10365
- (z >>> 18 | X << 14) ^ // ROTR 18
10366
- (X >>> 9 | z << 23)) >>> 0, y = ((z << 18 | X >>> 14) ^ // ROTR 14
10367
- (z << 14 | X >>> 18) ^ // ROTR 18
10368
- (X << 23 | z >>> 9)) >>> 0, b = (W ^ z & ($ ^ W)) >>> 0, N = (se ^ X & (re ^ se)) >>> 0, m = ((n >>> 28 | k << 4) ^ // ROTR 28
10363
+ for (n = u[0][0], k = u[0][1], P = u[1][0], V = u[1][1], O = u[2][0], M = u[2][1], Q = u[3][0], G = u[3][1], z = u[4][0], J = u[4][1], $ = u[5][0], re = u[5][1], W = u[6][0], se = u[6][1], de = u[7][0], me = u[7][1], _ = 0; _ < 80; ++_)
10364
+ h = ((z >>> 14 | J << 18) ^ // ROTR 14
10365
+ (z >>> 18 | J << 14) ^ // ROTR 18
10366
+ (J >>> 9 | z << 23)) >>> 0, y = ((z << 18 | J >>> 14) ^ // ROTR 14
10367
+ (z << 14 | J >>> 18) ^ // ROTR 18
10368
+ (J << 23 | z >>> 9)) >>> 0, b = (W ^ z & ($ ^ W)) >>> 0, N = (se ^ J & (re ^ se)) >>> 0, m = ((n >>> 28 | k << 4) ^ // ROTR 28
10369
10369
  (k >>> 2 | n << 30) ^ // ROTR 34/(swap + ROTR 2)
10370
10370
  (k >>> 7 | n << 25)) >>> 0, s = ((n << 4 | k >>> 28) ^ // ROTR 28
10371
10371
  (k << 30 | n >>> 2) ^ // ROTR 34/(swap + ROTR 2)
10372
- (k << 25 | n >>> 7)) >>> 0, d = (n & P | O & (n ^ P)) >>> 0, i = (k & V | M & (k ^ V)) >>> 0, te = me + y + N + C[_][1] + I[_][1], E = de + h + b + C[_][0] + I[_][0] + (te / 4294967296 >>> 0) >>> 0, l = te >>> 0, te = s + i, v = m + d + (te / 4294967296 >>> 0) >>> 0, A = te >>> 0, de = W, me = se, W = $, se = re, $ = z, re = X, te = G + l, z = Q + E + (te / 4294967296 >>> 0) >>> 0, X = te >>> 0, Q = O, G = M, O = P, M = V, P = n, V = k, te = l + A, n = E + v + (te / 4294967296 >>> 0) >>> 0, k = te >>> 0;
10373
- te = u[0][1] + k, u[0][0] = u[0][0] + n + (te / 4294967296 >>> 0) >>> 0, u[0][1] = te >>> 0, te = u[1][1] + V, u[1][0] = u[1][0] + P + (te / 4294967296 >>> 0) >>> 0, u[1][1] = te >>> 0, te = u[2][1] + M, u[2][0] = u[2][0] + O + (te / 4294967296 >>> 0) >>> 0, u[2][1] = te >>> 0, te = u[3][1] + G, u[3][0] = u[3][0] + Q + (te / 4294967296 >>> 0) >>> 0, u[3][1] = te >>> 0, te = u[4][1] + X, u[4][0] = u[4][0] + z + (te / 4294967296 >>> 0) >>> 0, u[4][1] = te >>> 0, te = u[5][1] + re, u[5][0] = u[5][0] + $ + (te / 4294967296 >>> 0) >>> 0, u[5][1] = te >>> 0, te = u[6][1] + se, u[6][0] = u[6][0] + W + (te / 4294967296 >>> 0) >>> 0, u[6][1] = te >>> 0, te = u[7][1] + me, u[7][0] = u[7][0] + de + (te / 4294967296 >>> 0) >>> 0, u[7][1] = te >>> 0, U -= 128;
10372
+ (k << 25 | n >>> 7)) >>> 0, d = (n & P | O & (n ^ P)) >>> 0, i = (k & V | M & (k ^ V)) >>> 0, te = me + y + N + C[_][1] + I[_][1], E = de + h + b + C[_][0] + I[_][0] + (te / 4294967296 >>> 0) >>> 0, l = te >>> 0, te = s + i, v = m + d + (te / 4294967296 >>> 0) >>> 0, A = te >>> 0, de = W, me = se, W = $, se = re, $ = z, re = J, te = G + l, z = Q + E + (te / 4294967296 >>> 0) >>> 0, J = te >>> 0, Q = O, G = M, O = P, M = V, P = n, V = k, te = l + A, n = E + v + (te / 4294967296 >>> 0) >>> 0, k = te >>> 0;
10373
+ te = u[0][1] + k, u[0][0] = u[0][0] + n + (te / 4294967296 >>> 0) >>> 0, u[0][1] = te >>> 0, te = u[1][1] + V, u[1][0] = u[1][0] + P + (te / 4294967296 >>> 0) >>> 0, u[1][1] = te >>> 0, te = u[2][1] + M, u[2][0] = u[2][0] + O + (te / 4294967296 >>> 0) >>> 0, u[2][1] = te >>> 0, te = u[3][1] + G, u[3][0] = u[3][0] + Q + (te / 4294967296 >>> 0) >>> 0, u[3][1] = te >>> 0, te = u[4][1] + J, u[4][0] = u[4][0] + z + (te / 4294967296 >>> 0) >>> 0, u[4][1] = te >>> 0, te = u[5][1] + re, u[5][0] = u[5][0] + $ + (te / 4294967296 >>> 0) >>> 0, u[5][1] = te >>> 0, te = u[6][1] + se, u[6][0] = u[6][0] + W + (te / 4294967296 >>> 0) >>> 0, u[6][1] = te >>> 0, te = u[7][1] + me, u[7][0] = u[7][0] + de + (te / 4294967296 >>> 0) >>> 0, u[7][1] = te >>> 0, U -= 128;
10374
10374
  }
10375
10375
  }
10376
10376
  return Dr.exports;
@@ -10750,7 +10750,7 @@ function ps() {
10750
10750
  function y(f, w, U, o) {
10751
10751
  var T, j, K = new Float64Array(64), q = [_(), _(), _(), _()], F = s(o, 32);
10752
10752
  F[0] &= 248, F[31] &= 127, F[31] |= 64;
10753
- var J = U + 64;
10753
+ var X = U + 64;
10754
10754
  for (T = 0; T < U; ++T)
10755
10755
  f[64 + T] = w[T];
10756
10756
  for (T = 0; T < 32; ++T)
@@ -10766,7 +10766,7 @@ function ps() {
10766
10766
  for (T = 0; T < 32; ++T)
10767
10767
  for (j = 0; j < 32; j++)
10768
10768
  K[T + j] += ee[T] * F[j];
10769
- return N(f.subarray(32), K), J;
10769
+ return N(f.subarray(32), K), X;
10770
10770
  }
10771
10771
  function b(f, w, U, o) {
10772
10772
  var T, j, K = new c(32), q = [_(), _(), _(), _()], F = [_(), _(), _(), _()];
@@ -10776,8 +10776,8 @@ function ps() {
10776
10776
  f[T] = w[T];
10777
10777
  for (T = 0; T < 32; ++T)
10778
10778
  f[T + 32] = o[T];
10779
- var J = s(f, U);
10780
- if (d(J), $(q, F, J), re(F, w.subarray(32)), i(q, F), k(K, q), U -= 64, G(w, 0, K, 0)) {
10779
+ var X = s(f, U);
10780
+ if (d(X), $(q, F, X), re(F, w.subarray(32)), i(q, F), k(K, q), U -= 64, G(w, 0, K, 0)) {
10781
10781
  for (T = 0; T < U; ++T)
10782
10782
  f[T] = 0;
10783
10783
  return -1;
@@ -10806,8 +10806,8 @@ function ps() {
10806
10806
  N(f, w);
10807
10807
  }
10808
10808
  function i(f, w) {
10809
- var U = _(), o = _(), T = _(), j = _(), K = _(), q = _(), F = _(), J = _(), x = _();
10810
- te(U, f[1], f[0]), te(x, w[1], w[0]), fe(U, U, x), ue(o, f[0], f[1]), ue(x, w[0], w[1]), fe(o, o, x), fe(T, f[3], w[3]), fe(T, T, E), fe(j, f[2], w[2]), ue(j, j, j), te(K, o, U), te(q, j, T), ue(F, j, T), ue(J, o, U), fe(f[0], K, q), fe(f[1], J, F), fe(f[2], F, q), fe(f[3], K, J);
10809
+ var U = _(), o = _(), T = _(), j = _(), K = _(), q = _(), F = _(), X = _(), x = _();
10810
+ te(U, f[1], f[0]), te(x, w[1], w[0]), fe(U, U, x), ue(o, f[0], f[1]), ue(x, w[0], w[1]), fe(o, o, x), fe(T, f[3], w[3]), fe(T, T, E), fe(j, f[2], w[2]), ue(j, j, j), te(K, o, U), te(q, j, T), ue(F, j, T), ue(X, o, U), fe(f[0], K, q), fe(f[1], X, F), fe(f[2], F, q), fe(f[3], K, X);
10811
10811
  }
10812
10812
  function n(f, w, U) {
10813
10813
  for (var o = 0; o < 4; ++o)
@@ -10815,7 +10815,7 @@ function ps() {
10815
10815
  }
10816
10816
  function k(f, w) {
10817
10817
  var U = _(), o = _(), T = _();
10818
- se(T, w[2]), fe(U, w[0], T), fe(o, w[1], T), P(f, o), f[31] ^= X(U) << 7;
10818
+ se(T, w[2]), fe(U, w[0], T), fe(o, w[1], T), P(f, o), f[31] ^= J(U) << 7;
10819
10819
  }
10820
10820
  function P(f, w) {
10821
10821
  var U, o, T, j = _(), K = _();
@@ -10831,7 +10831,7 @@ function ps() {
10831
10831
  }
10832
10832
  function V(f, w) {
10833
10833
  var U = _(), o = _(), T = _(), j = _(), K = _(), q = _(), F = _();
10834
- return W(f[2], I), O(f[1], w), ze(T, f[1]), fe(j, T, D), te(T, T, f[2]), ue(j, f[2], j), ze(K, j), ze(q, K), fe(F, q, K), fe(U, F, T), fe(U, U, j), M(U, U), fe(U, U, T), fe(U, U, j), fe(U, U, j), fe(f[0], U, j), ze(o, f[0]), fe(o, o, j), Q(o, T) && fe(f[0], f[0], m), ze(o, f[0]), fe(o, o, j), Q(o, T) ? -1 : (X(f[0]) === w[31] >> 7 && te(f[0], u, f[0]), fe(f[3], f[0], f[1]), 0);
10834
+ return W(f[2], I), O(f[1], w), ze(T, f[1]), fe(j, T, D), te(T, T, f[2]), ue(j, f[2], j), ze(K, j), ze(q, K), fe(F, q, K), fe(U, F, T), fe(U, U, j), M(U, U), fe(U, U, T), fe(U, U, j), fe(U, U, j), fe(f[0], U, j), ze(o, f[0]), fe(o, o, j), Q(o, T) && fe(f[0], f[0], m), ze(o, f[0]), fe(o, o, j), Q(o, T) ? -1 : (J(f[0]) === w[31] >> 7 && te(f[0], u, f[0]), fe(f[3], f[0], f[1]), 0);
10835
10835
  }
10836
10836
  function O(f, w) {
10837
10837
  var U;
@@ -10861,7 +10861,7 @@ function ps() {
10861
10861
  K |= f[w + j] ^ U[o + j];
10862
10862
  return (1 & K - 1 >>> 8) - 1;
10863
10863
  }
10864
- function X(f) {
10864
+ function J(f) {
10865
10865
  var w = new c(32);
10866
10866
  return P(w, f), w[0] & 1;
10867
10867
  }
@@ -10917,8 +10917,8 @@ function ps() {
10917
10917
  fe(f, w, w);
10918
10918
  }
10919
10919
  function fe(f, w, U) {
10920
- var o, T, j = 0, K = 0, q = 0, F = 0, J = 0, x = 0, ee = 0, oe = 0, ge = 0, le = 0, Ie = 0, Te = 0, be = 0, Se = 0, Ce = 0, Ee = 0, ke = 0, Fe = 0, qe = 0, Xe = 0, Je = 0, tt = 0, nt = 0, ut = 0, ht = 0, vt = 0, Et = 0, St = 0, Nt = 0, Pt = 0, Gt = 0, Ue = U[0], Ne = U[1], we = U[2], De = U[3], Oe = U[4], Pe = U[5], Le = U[6], Ke = U[7], Ve = U[8], Me = U[9], Qe = U[10], je = U[11], Be = U[12], Re = U[13], Ge = U[14], He = U[15];
10921
- o = w[0], j += o * Ue, K += o * Ne, q += o * we, F += o * De, J += o * Oe, x += o * Pe, ee += o * Le, oe += o * Ke, ge += o * Ve, le += o * Me, Ie += o * Qe, Te += o * je, be += o * Be, Se += o * Re, Ce += o * Ge, Ee += o * He, o = w[1], K += o * Ue, q += o * Ne, F += o * we, J += o * De, x += o * Oe, ee += o * Pe, oe += o * Le, ge += o * Ke, le += o * Ve, Ie += o * Me, Te += o * Qe, be += o * je, Se += o * Be, Ce += o * Re, Ee += o * Ge, ke += o * He, o = w[2], q += o * Ue, F += o * Ne, J += o * we, x += o * De, ee += o * Oe, oe += o * Pe, ge += o * Le, le += o * Ke, Ie += o * Ve, Te += o * Me, be += o * Qe, Se += o * je, Ce += o * Be, Ee += o * Re, ke += o * Ge, Fe += o * He, o = w[3], F += o * Ue, J += o * Ne, x += o * we, ee += o * De, oe += o * Oe, ge += o * Pe, le += o * Le, Ie += o * Ke, Te += o * Ve, be += o * Me, Se += o * Qe, Ce += o * je, Ee += o * Be, ke += o * Re, Fe += o * Ge, qe += o * He, o = w[4], J += o * Ue, x += o * Ne, ee += o * we, oe += o * De, ge += o * Oe, le += o * Pe, Ie += o * Le, Te += o * Ke, be += o * Ve, Se += o * Me, Ce += o * Qe, Ee += o * je, ke += o * Be, Fe += o * Re, qe += o * Ge, Xe += o * He, o = w[5], x += o * Ue, ee += o * Ne, oe += o * we, ge += o * De, le += o * Oe, Ie += o * Pe, Te += o * Le, be += o * Ke, Se += o * Ve, Ce += o * Me, Ee += o * Qe, ke += o * je, Fe += o * Be, qe += o * Re, Xe += o * Ge, Je += o * He, o = w[6], ee += o * Ue, oe += o * Ne, ge += o * we, le += o * De, Ie += o * Oe, Te += o * Pe, be += o * Le, Se += o * Ke, Ce += o * Ve, Ee += o * Me, ke += o * Qe, Fe += o * je, qe += o * Be, Xe += o * Re, Je += o * Ge, tt += o * He, o = w[7], oe += o * Ue, ge += o * Ne, le += o * we, Ie += o * De, Te += o * Oe, be += o * Pe, Se += o * Le, Ce += o * Ke, Ee += o * Ve, ke += o * Me, Fe += o * Qe, qe += o * je, Xe += o * Be, Je += o * Re, tt += o * Ge, nt += o * He, o = w[8], ge += o * Ue, le += o * Ne, Ie += o * we, Te += o * De, be += o * Oe, Se += o * Pe, Ce += o * Le, Ee += o * Ke, ke += o * Ve, Fe += o * Me, qe += o * Qe, Xe += o * je, Je += o * Be, tt += o * Re, nt += o * Ge, ut += o * He, o = w[9], le += o * Ue, Ie += o * Ne, Te += o * we, be += o * De, Se += o * Oe, Ce += o * Pe, Ee += o * Le, ke += o * Ke, Fe += o * Ve, qe += o * Me, Xe += o * Qe, Je += o * je, tt += o * Be, nt += o * Re, ut += o * Ge, ht += o * He, o = w[10], Ie += o * Ue, Te += o * Ne, be += o * we, Se += o * De, Ce += o * Oe, Ee += o * Pe, ke += o * Le, Fe += o * Ke, qe += o * Ve, Xe += o * Me, Je += o * Qe, tt += o * je, nt += o * Be, ut += o * Re, ht += o * Ge, vt += o * He, o = w[11], Te += o * Ue, be += o * Ne, Se += o * we, Ce += o * De, Ee += o * Oe, ke += o * Pe, Fe += o * Le, qe += o * Ke, Xe += o * Ve, Je += o * Me, tt += o * Qe, nt += o * je, ut += o * Be, ht += o * Re, vt += o * Ge, Et += o * He, o = w[12], be += o * Ue, Se += o * Ne, Ce += o * we, Ee += o * De, ke += o * Oe, Fe += o * Pe, qe += o * Le, Xe += o * Ke, Je += o * Ve, tt += o * Me, nt += o * Qe, ut += o * je, ht += o * Be, vt += o * Re, Et += o * Ge, St += o * He, o = w[13], Se += o * Ue, Ce += o * Ne, Ee += o * we, ke += o * De, Fe += o * Oe, qe += o * Pe, Xe += o * Le, Je += o * Ke, tt += o * Ve, nt += o * Me, ut += o * Qe, ht += o * je, vt += o * Be, Et += o * Re, St += o * Ge, Nt += o * He, o = w[14], Ce += o * Ue, Ee += o * Ne, ke += o * we, Fe += o * De, qe += o * Oe, Xe += o * Pe, Je += o * Le, tt += o * Ke, nt += o * Ve, ut += o * Me, ht += o * Qe, vt += o * je, Et += o * Be, St += o * Re, Nt += o * Ge, Pt += o * He, o = w[15], Ee += o * Ue, ke += o * Ne, Fe += o * we, qe += o * De, Xe += o * Oe, Je += o * Pe, tt += o * Le, nt += o * Ke, ut += o * Ve, ht += o * Me, vt += o * Qe, Et += o * je, St += o * Be, Nt += o * Re, Pt += o * Ge, Gt += o * He, j += 38 * ke, K += 38 * Fe, q += 38 * qe, F += 38 * Xe, J += 38 * Je, x += 38 * tt, ee += 38 * nt, oe += 38 * ut, ge += 38 * ht, le += 38 * vt, Ie += 38 * Et, Te += 38 * St, be += 38 * Nt, Se += 38 * Pt, Ce += 38 * Gt, T = 1, o = j + T + 65535, T = Math.floor(o / 65536), j = o - T * 65536, o = K + T + 65535, T = Math.floor(o / 65536), K = o - T * 65536, o = q + T + 65535, T = Math.floor(o / 65536), q = o - T * 65536, o = F + T + 65535, T = Math.floor(o / 65536), F = o - T * 65536, o = J + T + 65535, T = Math.floor(o / 65536), J = o - T * 65536, o = x + T + 65535, T = Math.floor(o / 65536), x = o - T * 65536, o = ee + T + 65535, T = Math.floor(o / 65536), ee = o - T * 65536, o = oe + T + 65535, T = Math.floor(o / 65536), oe = o - T * 65536, o = ge + T + 65535, T = Math.floor(o / 65536), ge = o - T * 65536, o = le + T + 65535, T = Math.floor(o / 65536), le = o - T * 65536, o = Ie + T + 65535, T = Math.floor(o / 65536), Ie = o - T * 65536, o = Te + T + 65535, T = Math.floor(o / 65536), Te = o - T * 65536, o = be + T + 65535, T = Math.floor(o / 65536), be = o - T * 65536, o = Se + T + 65535, T = Math.floor(o / 65536), Se = o - T * 65536, o = Ce + T + 65535, T = Math.floor(o / 65536), Ce = o - T * 65536, o = Ee + T + 65535, T = Math.floor(o / 65536), Ee = o - T * 65536, j += T - 1 + 37 * (T - 1), T = 1, o = j + T + 65535, T = Math.floor(o / 65536), j = o - T * 65536, o = K + T + 65535, T = Math.floor(o / 65536), K = o - T * 65536, o = q + T + 65535, T = Math.floor(o / 65536), q = o - T * 65536, o = F + T + 65535, T = Math.floor(o / 65536), F = o - T * 65536, o = J + T + 65535, T = Math.floor(o / 65536), J = o - T * 65536, o = x + T + 65535, T = Math.floor(o / 65536), x = o - T * 65536, o = ee + T + 65535, T = Math.floor(o / 65536), ee = o - T * 65536, o = oe + T + 65535, T = Math.floor(o / 65536), oe = o - T * 65536, o = ge + T + 65535, T = Math.floor(o / 65536), ge = o - T * 65536, o = le + T + 65535, T = Math.floor(o / 65536), le = o - T * 65536, o = Ie + T + 65535, T = Math.floor(o / 65536), Ie = o - T * 65536, o = Te + T + 65535, T = Math.floor(o / 65536), Te = o - T * 65536, o = be + T + 65535, T = Math.floor(o / 65536), be = o - T * 65536, o = Se + T + 65535, T = Math.floor(o / 65536), Se = o - T * 65536, o = Ce + T + 65535, T = Math.floor(o / 65536), Ce = o - T * 65536, o = Ee + T + 65535, T = Math.floor(o / 65536), Ee = o - T * 65536, j += T - 1 + 37 * (T - 1), f[0] = j, f[1] = K, f[2] = q, f[3] = F, f[4] = J, f[5] = x, f[6] = ee, f[7] = oe, f[8] = ge, f[9] = le, f[10] = Ie, f[11] = Te, f[12] = be, f[13] = Se, f[14] = Ce, f[15] = Ee;
10920
+ var o, T, j = 0, K = 0, q = 0, F = 0, X = 0, x = 0, ee = 0, oe = 0, ge = 0, le = 0, Ie = 0, Te = 0, be = 0, Se = 0, Ce = 0, Ee = 0, ke = 0, Fe = 0, qe = 0, Xe = 0, Je = 0, tt = 0, nt = 0, ut = 0, ht = 0, vt = 0, Et = 0, St = 0, Nt = 0, Pt = 0, Gt = 0, Ue = U[0], Ne = U[1], we = U[2], De = U[3], Oe = U[4], Pe = U[5], Le = U[6], Ke = U[7], Ve = U[8], Me = U[9], Qe = U[10], je = U[11], Be = U[12], Re = U[13], Ge = U[14], He = U[15];
10921
+ o = w[0], j += o * Ue, K += o * Ne, q += o * we, F += o * De, X += o * Oe, x += o * Pe, ee += o * Le, oe += o * Ke, ge += o * Ve, le += o * Me, Ie += o * Qe, Te += o * je, be += o * Be, Se += o * Re, Ce += o * Ge, Ee += o * He, o = w[1], K += o * Ue, q += o * Ne, F += o * we, X += o * De, x += o * Oe, ee += o * Pe, oe += o * Le, ge += o * Ke, le += o * Ve, Ie += o * Me, Te += o * Qe, be += o * je, Se += o * Be, Ce += o * Re, Ee += o * Ge, ke += o * He, o = w[2], q += o * Ue, F += o * Ne, X += o * we, x += o * De, ee += o * Oe, oe += o * Pe, ge += o * Le, le += o * Ke, Ie += o * Ve, Te += o * Me, be += o * Qe, Se += o * je, Ce += o * Be, Ee += o * Re, ke += o * Ge, Fe += o * He, o = w[3], F += o * Ue, X += o * Ne, x += o * we, ee += o * De, oe += o * Oe, ge += o * Pe, le += o * Le, Ie += o * Ke, Te += o * Ve, be += o * Me, Se += o * Qe, Ce += o * je, Ee += o * Be, ke += o * Re, Fe += o * Ge, qe += o * He, o = w[4], X += o * Ue, x += o * Ne, ee += o * we, oe += o * De, ge += o * Oe, le += o * Pe, Ie += o * Le, Te += o * Ke, be += o * Ve, Se += o * Me, Ce += o * Qe, Ee += o * je, ke += o * Be, Fe += o * Re, qe += o * Ge, Xe += o * He, o = w[5], x += o * Ue, ee += o * Ne, oe += o * we, ge += o * De, le += o * Oe, Ie += o * Pe, Te += o * Le, be += o * Ke, Se += o * Ve, Ce += o * Me, Ee += o * Qe, ke += o * je, Fe += o * Be, qe += o * Re, Xe += o * Ge, Je += o * He, o = w[6], ee += o * Ue, oe += o * Ne, ge += o * we, le += o * De, Ie += o * Oe, Te += o * Pe, be += o * Le, Se += o * Ke, Ce += o * Ve, Ee += o * Me, ke += o * Qe, Fe += o * je, qe += o * Be, Xe += o * Re, Je += o * Ge, tt += o * He, o = w[7], oe += o * Ue, ge += o * Ne, le += o * we, Ie += o * De, Te += o * Oe, be += o * Pe, Se += o * Le, Ce += o * Ke, Ee += o * Ve, ke += o * Me, Fe += o * Qe, qe += o * je, Xe += o * Be, Je += o * Re, tt += o * Ge, nt += o * He, o = w[8], ge += o * Ue, le += o * Ne, Ie += o * we, Te += o * De, be += o * Oe, Se += o * Pe, Ce += o * Le, Ee += o * Ke, ke += o * Ve, Fe += o * Me, qe += o * Qe, Xe += o * je, Je += o * Be, tt += o * Re, nt += o * Ge, ut += o * He, o = w[9], le += o * Ue, Ie += o * Ne, Te += o * we, be += o * De, Se += o * Oe, Ce += o * Pe, Ee += o * Le, ke += o * Ke, Fe += o * Ve, qe += o * Me, Xe += o * Qe, Je += o * je, tt += o * Be, nt += o * Re, ut += o * Ge, ht += o * He, o = w[10], Ie += o * Ue, Te += o * Ne, be += o * we, Se += o * De, Ce += o * Oe, Ee += o * Pe, ke += o * Le, Fe += o * Ke, qe += o * Ve, Xe += o * Me, Je += o * Qe, tt += o * je, nt += o * Be, ut += o * Re, ht += o * Ge, vt += o * He, o = w[11], Te += o * Ue, be += o * Ne, Se += o * we, Ce += o * De, Ee += o * Oe, ke += o * Pe, Fe += o * Le, qe += o * Ke, Xe += o * Ve, Je += o * Me, tt += o * Qe, nt += o * je, ut += o * Be, ht += o * Re, vt += o * Ge, Et += o * He, o = w[12], be += o * Ue, Se += o * Ne, Ce += o * we, Ee += o * De, ke += o * Oe, Fe += o * Pe, qe += o * Le, Xe += o * Ke, Je += o * Ve, tt += o * Me, nt += o * Qe, ut += o * je, ht += o * Be, vt += o * Re, Et += o * Ge, St += o * He, o = w[13], Se += o * Ue, Ce += o * Ne, Ee += o * we, ke += o * De, Fe += o * Oe, qe += o * Pe, Xe += o * Le, Je += o * Ke, tt += o * Ve, nt += o * Me, ut += o * Qe, ht += o * je, vt += o * Be, Et += o * Re, St += o * Ge, Nt += o * He, o = w[14], Ce += o * Ue, Ee += o * Ne, ke += o * we, Fe += o * De, qe += o * Oe, Xe += o * Pe, Je += o * Le, tt += o * Ke, nt += o * Ve, ut += o * Me, ht += o * Qe, vt += o * je, Et += o * Be, St += o * Re, Nt += o * Ge, Pt += o * He, o = w[15], Ee += o * Ue, ke += o * Ne, Fe += o * we, qe += o * De, Xe += o * Oe, Je += o * Pe, tt += o * Le, nt += o * Ke, ut += o * Ve, ht += o * Me, vt += o * Qe, Et += o * je, St += o * Be, Nt += o * Re, Pt += o * Ge, Gt += o * He, j += 38 * ke, K += 38 * Fe, q += 38 * qe, F += 38 * Xe, X += 38 * Je, x += 38 * tt, ee += 38 * nt, oe += 38 * ut, ge += 38 * ht, le += 38 * vt, Ie += 38 * Et, Te += 38 * St, be += 38 * Nt, Se += 38 * Pt, Ce += 38 * Gt, T = 1, o = j + T + 65535, T = Math.floor(o / 65536), j = o - T * 65536, o = K + T + 65535, T = Math.floor(o / 65536), K = o - T * 65536, o = q + T + 65535, T = Math.floor(o / 65536), q = o - T * 65536, o = F + T + 65535, T = Math.floor(o / 65536), F = o - T * 65536, o = X + T + 65535, T = Math.floor(o / 65536), X = o - T * 65536, o = x + T + 65535, T = Math.floor(o / 65536), x = o - T * 65536, o = ee + T + 65535, T = Math.floor(o / 65536), ee = o - T * 65536, o = oe + T + 65535, T = Math.floor(o / 65536), oe = o - T * 65536, o = ge + T + 65535, T = Math.floor(o / 65536), ge = o - T * 65536, o = le + T + 65535, T = Math.floor(o / 65536), le = o - T * 65536, o = Ie + T + 65535, T = Math.floor(o / 65536), Ie = o - T * 65536, o = Te + T + 65535, T = Math.floor(o / 65536), Te = o - T * 65536, o = be + T + 65535, T = Math.floor(o / 65536), be = o - T * 65536, o = Se + T + 65535, T = Math.floor(o / 65536), Se = o - T * 65536, o = Ce + T + 65535, T = Math.floor(o / 65536), Ce = o - T * 65536, o = Ee + T + 65535, T = Math.floor(o / 65536), Ee = o - T * 65536, j += T - 1 + 37 * (T - 1), T = 1, o = j + T + 65535, T = Math.floor(o / 65536), j = o - T * 65536, o = K + T + 65535, T = Math.floor(o / 65536), K = o - T * 65536, o = q + T + 65535, T = Math.floor(o / 65536), q = o - T * 65536, o = F + T + 65535, T = Math.floor(o / 65536), F = o - T * 65536, o = X + T + 65535, T = Math.floor(o / 65536), X = o - T * 65536, o = x + T + 65535, T = Math.floor(o / 65536), x = o - T * 65536, o = ee + T + 65535, T = Math.floor(o / 65536), ee = o - T * 65536, o = oe + T + 65535, T = Math.floor(o / 65536), oe = o - T * 65536, o = ge + T + 65535, T = Math.floor(o / 65536), ge = o - T * 65536, o = le + T + 65535, T = Math.floor(o / 65536), le = o - T * 65536, o = Ie + T + 65535, T = Math.floor(o / 65536), Ie = o - T * 65536, o = Te + T + 65535, T = Math.floor(o / 65536), Te = o - T * 65536, o = be + T + 65535, T = Math.floor(o / 65536), be = o - T * 65536, o = Se + T + 65535, T = Math.floor(o / 65536), Se = o - T * 65536, o = Ce + T + 65535, T = Math.floor(o / 65536), Ce = o - T * 65536, o = Ee + T + 65535, T = Math.floor(o / 65536), Ee = o - T * 65536, j += T - 1 + 37 * (T - 1), f[0] = j, f[1] = K, f[2] = q, f[3] = F, f[4] = X, f[5] = x, f[6] = ee, f[7] = oe, f[8] = ge, f[9] = le, f[10] = Ie, f[11] = Te, f[12] = be, f[13] = Se, f[14] = Ce, f[15] = Ee;
10922
10922
  }
10923
10923
  return Or;
10924
10924
  }
@@ -12051,26 +12051,27 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12051
12051
  "record-id": {},
12052
12052
  "record-idModifiers": {}
12053
12053
  }),
12054
- emits: /* @__PURE__ */ At(["send", "cancel", "clear", "create-record", "change-record", "change-collapse", "change-theme", "change-aside-width", "click-logo", "bubble-event", "close-workspace", "scroll-bottom"], ["update:messages", "update:modelValue", "update:loading", "update:record-id"]),
12054
+ emits: /* @__PURE__ */ At(["send", "cancel", "clear", "change-record", "change-collapse", "change-theme", "change-aside-width", "click-logo", "bubble-event", "close-workspace", "scroll-bottom"], ["update:messages", "update:modelValue", "update:loading", "update:record-id"]),
12055
12055
  setup(t, { expose: e, emit: a }) {
12056
12056
  Fa((F) => ({
12057
- b835820e: F.primaryColor,
12058
- c6ea943a: r.value,
12059
- v9e1deb4c: C.value[0],
12060
- v9e1deb0e: C.value[1],
12061
- v9e1dead0: C.value[2],
12062
- v9e1dea92: C.value[3],
12063
- v9e1dea54: C.value[4],
12064
- v734db40b: j.value
12057
+ v0c1372f8: F.primaryColor,
12058
+ v71be242e: r.value,
12059
+ v724349b6: C.value[0],
12060
+ v72434978: C.value[1],
12061
+ v7243493a: C.value[2],
12062
+ v724348fc: C.value[3],
12063
+ v724348be: C.value[4],
12064
+ ed89f654: j.value
12065
12065
  }));
12066
12066
  const p = t, S = parseFloat(getComputedStyle(document.documentElement).fontSize), C = _e(() => as(p.primaryColor, 5, 0.8, 4));
12067
12067
  function c(F) {
12068
12068
  if (!F || !F.startsWith("#")) return "0, 0, 0";
12069
- const J = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(F);
12070
- return J ? `${parseInt(J[1] ?? "0", 16)}, ${parseInt(J[2] ?? "0", 16)}, ${parseInt(J[3] ?? "0", 16)}` : "0, 0, 0";
12069
+ const X = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(F);
12070
+ return X ? `${parseInt(X[1] ?? "0", 16)}, ${parseInt(X[2] ?? "0", 16)}, ${parseInt(X[3] ?? "0", 16)}` : "0, 0, 0";
12071
12071
  }
12072
12072
  const r = _e(() => c(p.primaryColor)), g = _e(() => p.records || []), u = gt(t, "messages"), I = gt(t, "modelValue"), D = gt(t, "loading"), E = pt(null), l = gt(t, "record-id"), v = Lt(p.uuid + "__kl-ai-chat_enable-chat", p.enableNet), A = Lt(p.uuid + "__kl-ai-chat_enable-think", p.enableThink), m = a, s = (F) => {
12073
- D.value = !0, m("send", F, A.value, v.value), E.value || m("create-record", u.value);
12073
+ const X = !E.value;
12074
+ D.value = !0, m("send", F, A.value, v.value, X);
12074
12075
  }, h = () => {
12075
12076
  D.value = !1, m("cancel");
12076
12077
  };
@@ -12080,7 +12081,7 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12080
12081
  bt(
12081
12082
  () => l.value,
12082
12083
  (F) => {
12083
- F ? E.value = p.records.find((J) => J.id === F) : E.value = null;
12084
+ F ? E.value = p.records.find((X) => X.id === F) : E.value = null;
12084
12085
  },
12085
12086
  {
12086
12087
  immediate: !0
@@ -12101,17 +12102,17 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12101
12102
  if (!p.autoScroll || !D.value) return;
12102
12103
  const F = N.value;
12103
12104
  if (!F) return;
12104
- const J = F.scrollHeight - F.scrollTop - F.clientHeight < 50;
12105
- !J && !n ? (n = !0, d.value = !0, i && clearTimeout(i), i = setTimeout(() => {
12105
+ const X = F.scrollHeight - F.scrollTop - F.clientHeight < 50;
12106
+ !X && !n ? (n = !0, d.value = !0, i && clearTimeout(i), i = setTimeout(() => {
12106
12107
  d.value = !1, n = !1, D.value && P();
12107
- }, p.autoScrollPauseTime)) : J && (n = !1, d.value = !1, i && (clearTimeout(i), i = null));
12108
+ }, p.autoScrollPauseTime)) : X && (n = !1, d.value = !1, i && (clearTimeout(i), i = null));
12108
12109
  };
12109
12110
  bt([() => D.value, () => p.isGenerateLoading, () => u.value.length], () => {
12110
12111
  k();
12111
12112
  }), bt(
12112
12113
  () => D.value ? u.value[u.value.length - 1]?.content : null,
12113
- (F, J) => {
12114
- F !== J && k();
12114
+ (F, X) => {
12115
+ F !== X && k();
12115
12116
  }
12116
12117
  );
12117
12118
  const O = Lt(p.uuid + "__kl-ai-chat_aside-width", p.defaultAsideWidth), M = pt(!1), Q = pt(0), G = pt(0);
@@ -12123,10 +12124,10 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12123
12124
  );
12124
12125
  const z = (F) => {
12125
12126
  M.value = !0, Q.value = F.clientX, G.value = O.value, document.body.style.userSelect = "none";
12126
- }, X = (F) => {
12127
+ }, J = (F) => {
12127
12128
  if (!M.value) return;
12128
- const J = F.clientX - Q.value;
12129
- let x = G.value + J;
12129
+ const X = F.clientX - Q.value;
12130
+ let x = G.value + X;
12130
12131
  const ee = Math.max(15.6 * S, 250);
12131
12132
  x = Math.max(ee, Math.min(700, window.innerWidth - ee, x)), O.value = x;
12132
12133
  }, $ = () => {
@@ -12139,23 +12140,23 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12139
12140
  jr(() => {
12140
12141
  p.defaultRecordId && y(
12141
12142
  g.value.find((F) => F.id === p.defaultRecordId)
12142
- ), re(), document.addEventListener("mousemove", X), document.addEventListener("mouseup", $), window.addEventListener("resize", re);
12143
+ ), re(), document.addEventListener("mousemove", J), document.addEventListener("mouseup", $), window.addEventListener("resize", re);
12143
12144
  }), za(() => {
12144
- document.removeEventListener("mousemove", X), document.removeEventListener("mouseup", $), window.removeEventListener("resize", re), i && (clearTimeout(i), i = null);
12145
+ document.removeEventListener("mousemove", J), document.removeEventListener("mouseup", $), window.removeEventListener("resize", re), i && (clearTimeout(i), i = null);
12145
12146
  });
12146
12147
  const W = pt(!1), se = Lt(p.uuid + "__kl-ai-chat_collapse", p.defaultCollapse), de = Lt(p.uuid + "__kl-ai-chat_show-aside", !0), me = pt(!1);
12147
12148
  function _(F) {
12148
12149
  if (F === se.value) return;
12149
12150
  me.value = !0, se.value = F, de.value = !F, m("change-collapse", F);
12150
- const J = setTimeout(() => {
12151
- me.value = !1, clearTimeout(J);
12151
+ const X = setTimeout(() => {
12152
+ me.value = !1, clearTimeout(X);
12152
12153
  }, 200);
12153
12154
  }
12154
12155
  function ue(F) {
12155
12156
  m("change-theme", F);
12156
12157
  }
12157
- function te(F, J) {
12158
- m("bubble-event", F, J);
12158
+ function te(F, X) {
12159
+ m("bubble-event", F, X);
12159
12160
  }
12160
12161
  function ze() {
12161
12162
  m("close-workspace");
@@ -12190,7 +12191,7 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12190
12191
  }), j = _e(() => `calc(100% - ${(p.showSender ? p.inputHeight + 52 : 0) / S}rem - ${(p.showSender && p.hasSenderTools ? 40 : 0) / S}rem - 2rem)`), K = _e(() => ((p.showSender ? p.inputHeight + 52 : 0) + (p.showSender && p.hasSenderTools ? 40 : 0)) / S + "rem"), q = _e(() => (p.markdownClassName || "") + (p.themeMode === "dark" ? " dark" : ""));
12191
12192
  return e({
12192
12193
  scrollToBottom: P
12193
- }), (F, J) => (he(), ye("div", {
12194
+ }), (F, X) => (he(), ye("div", {
12194
12195
  class: $e(["kernelift-chat-container", {
12195
12196
  dark: t.themeMode === "dark"
12196
12197
  }])
@@ -12208,7 +12209,7 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12208
12209
  }, () => [
12209
12210
  Tt(Gi, {
12210
12211
  modelValue: E.value,
12211
- "onUpdate:modelValue": J[0] || (J[0] = (x) => E.value = x),
12212
+ "onUpdate:modelValue": X[0] || (X[0] = (x) => E.value = x),
12212
12213
  style: Vt(T.value),
12213
12214
  data: t.records,
12214
12215
  "theme-mode": t.themeMode,
@@ -12218,8 +12219,8 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12218
12219
  "has-theme-mode": t.hasThemeMode,
12219
12220
  onClear: f,
12220
12221
  onChange: y,
12221
- onClickLogo: J[1] || (J[1] = (x) => m("click-logo")),
12222
- onScrollBottom: J[2] || (J[2] = (x) => m("scroll-bottom")),
12222
+ onClickLogo: X[1] || (X[1] = (x) => m("click-logo")),
12223
+ onScrollBottom: X[2] || (X[2] = (x) => m("scroll-bottom")),
12223
12224
  onChangeCollapse: _,
12224
12225
  onChangeTheme: ue
12225
12226
  }, {
@@ -12273,10 +12274,10 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12273
12274
  st(se) ? (he(), ye("div", Is, [
12274
12275
  ie("div", {
12275
12276
  class: "kernelift-chat-container__logo",
12276
- onClick: J[3] || (J[3] = (x) => m("click-logo"))
12277
+ onClick: X[3] || (X[3] = (x) => m("click-logo"))
12277
12278
  }, [
12278
12279
  ce(F.$slots, "header-logo", { mobile: W.value }, () => [
12279
- J[10] || (J[10] = ie("img", {
12280
+ X[10] || (X[10] = ie("img", {
12280
12281
  src: Xa,
12281
12282
  class: "kernelift-chat-container__logo-img"
12282
12283
  }, null, -1))
@@ -12286,7 +12287,7 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12286
12287
  t.hasThemeMode ? (he(), ye("div", {
12287
12288
  key: 0,
12288
12289
  class: "kernelift-chat-container__header-action",
12289
- onClick: J[4] || (J[4] = (x) => ue(t.themeMode === "light" ? "dark" : "light"))
12290
+ onClick: X[4] || (X[4] = (x) => ue(t.themeMode === "light" ? "dark" : "light"))
12290
12291
  }, [
12291
12292
  at(ie("i", Bs, null, 512), [
12292
12293
  [ot, t.themeMode === "light"]
@@ -12297,8 +12298,8 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12297
12298
  ])) : Ze("", !0),
12298
12299
  at(ie("div", {
12299
12300
  class: "kernelift-chat-container__header-action",
12300
- onClick: J[5] || (J[5] = (x) => _(!1))
12301
- }, [...J[11] || (J[11] = [
12301
+ onClick: X[5] || (X[5] = (x) => _(!1))
12302
+ }, [...X[11] || (X[11] = [
12302
12303
  ie("i", { class: "material-symbols--left-panel-open-outline" }, null, -1)
12303
12304
  ])], 512), [
12304
12305
  [ot, st(se)]
@@ -12416,11 +12417,11 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12416
12417
  t.showSender ? (he(), $t(_i, {
12417
12418
  key: 1,
12418
12419
  modelValue: I.value,
12419
- "onUpdate:modelValue": J[6] || (J[6] = (x) => I.value = x),
12420
+ "onUpdate:modelValue": X[6] || (X[6] = (x) => I.value = x),
12420
12421
  "enable-net": st(v),
12421
- "onUpdate:enableNet": J[7] || (J[7] = (x) => Xr(v) ? v.value = x : null),
12422
+ "onUpdate:enableNet": X[7] || (X[7] = (x) => Xr(v) ? v.value = x : null),
12422
12423
  "enable-think": st(A),
12423
- "onUpdate:enableThink": J[8] || (J[8] = (x) => Xr(A) ? A.value = x : null),
12424
+ "onUpdate:enableThink": X[8] || (X[8] = (x) => Xr(A) ? A.value = x : null),
12424
12425
  "has-net-search": t.hasNetSearch,
12425
12426
  "has-thinking": t.hasThinking,
12426
12427
  "input-height": t.inputHeight,
@@ -12486,7 +12487,7 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12486
12487
  ie("div", Ks, [
12487
12488
  ie("i", {
12488
12489
  class: "material-symbols--close",
12489
- onClick: J[9] || (J[9] = (x) => ze())
12490
+ onClick: X[9] || (X[9] = (x) => ze())
12490
12491
  })
12491
12492
  ]),
12492
12493
  ce(F.$slots, "workspace", {
@@ -12498,7 +12499,7 @@ const As = { button: { think: "深度思考", net: "联网搜索", copy: "复制
12498
12499
  ])
12499
12500
  ], 2));
12500
12501
  }
12501
- }), Hs = /* @__PURE__ */ kt(Vs, [["__scopeId", "data-v-511ffeb4"]]);
12502
+ }), Hs = /* @__PURE__ */ kt(Vs, [["__scopeId", "data-v-4559e041"]]);
12502
12503
  class xs {
12503
12504
  controller;
12504
12505
  buffer;