@spacex110/core 0.1.13 → 0.1.14

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
@@ -488,7 +488,7 @@ function le(p) {
488
488
  const e = p.capabilities;
489
489
  if (e && ((e.vision || e.image) && (r.add("vision"), r.add("text")), e.audio && r.add("audio"), e.video && r.add("video"), e.embeddings && r.add("embedding"), r.size > 0))
490
490
  return Array.from(r);
491
- const o = (p.id || "").toLowerCase(), c = (p.name || "").toLowerCase(), b = `${o} ${c}`;
491
+ const s = (p.id || "").toLowerCase(), c = (p.name || "").toLowerCase(), b = `${s} ${c}`;
492
492
  return r.add("text"), /vision|image|visual|multimodal|vl|pixtral|llava|bakllava/.test(b) && r.add("vision"), /audio|speech|whisper|tts|stt/.test(b) && r.add("audio"), /video/.test(b) && r.add("video"), /embedding|embed/.test(b) && r.add("embedding"), /reasoner|reasoning|thinking|qwq/.test(b) && r.add("reasoning"), Array.from(r);
493
493
  }
494
494
  const Sr = (p) => Array.isArray(p == null ? void 0 : p.data) ? p.data.filter((r) => r.id).map((r) => {
@@ -507,17 +507,17 @@ const Sr = (p) => Array.isArray(p == null ? void 0 : p.data) ? p.data.filter((r)
507
507
  format: "openai",
508
508
  getModelsEndpoint: (p) => `${p}/models`,
509
509
  getChatEndpoint: (p) => `${p}/chat/completions`,
510
- buildHeaders: (p) => {
511
- const r = {
510
+ buildHeaders: (p, r) => {
511
+ const t = {
512
512
  "Content-Type": "application/json",
513
513
  Authorization: `Bearer ${p}`
514
514
  };
515
- if (typeof window < "u" && window.location) {
516
- r["HTTP-Referer"] = window.location.origin;
517
- const t = document.title ? document.title.replace(/[^\x20-\x7E]/g, "").slice(0, 80) : "AI Selector";
518
- r["X-Title"] = t || "AI Selector";
515
+ if (!!r && /openrouter\.ai/i.test(r) && typeof window < "u" && window.location) {
516
+ t["HTTP-Referer"] = window.location.origin;
517
+ const s = document.title ? document.title.replace(/[^\x20-\x7E]/g, "").slice(0, 80) : "AI Selector";
518
+ t["X-Title"] = s || "AI Selector";
519
519
  }
520
- return r;
520
+ return t;
521
521
  },
522
522
  buildChatPayload: (p, r, t) => {
523
523
  const e = {
@@ -574,19 +574,19 @@ const Sr = (p) => Array.isArray(p == null ? void 0 : p.data) ? p.data.filter((r)
574
574
  "Content-Type": "application/json"
575
575
  }),
576
576
  buildChatPayload: (p, r, t) => {
577
- const o = { contents: r.map((c) => ({
577
+ const s = { contents: r.map((c) => ({
578
578
  role: c.role === "assistant" ? "model" : "user",
579
579
  parts: [{ text: c.content }]
580
580
  })) };
581
- return t && (o.generationConfig = { maxOutputTokens: t }), o;
581
+ return t && (s.generationConfig = { maxOutputTokens: t }), s;
582
582
  },
583
583
  parseChatResponse: (p) => {
584
- var r, t, e, o, c;
585
- return ((c = (o = (e = (t = (r = p.candidates) == null ? void 0 : r[0]) == null ? void 0 : t.content) == null ? void 0 : e.parts) == null ? void 0 : o[0]) == null ? void 0 : c.text) || "";
584
+ var r, t, e, s, c;
585
+ return ((c = (s = (e = (t = (r = p.candidates) == null ? void 0 : r[0]) == null ? void 0 : t.content) == null ? void 0 : e.parts) == null ? void 0 : s[0]) == null ? void 0 : c.text) || "";
586
586
  },
587
587
  parseStreamChunk: (p) => {
588
- var r, t, e, o, c;
589
- return ((c = (o = (e = (t = (r = p.candidates) == null ? void 0 : r[0]) == null ? void 0 : t.content) == null ? void 0 : e.parts) == null ? void 0 : o[0]) == null ? void 0 : c.text) || "";
588
+ var r, t, e, s, c;
589
+ return ((c = (s = (e = (t = (r = p.candidates) == null ? void 0 : r[0]) == null ? void 0 : t.content) == null ? void 0 : e.parts) == null ? void 0 : s[0]) == null ? void 0 : c.text) || "";
590
590
  },
591
591
  // Gemini 返回格式: { models: [{ name: "models/gemini-pro", ... }] }
592
592
  parseModelsResponse: (p) => Array.isArray(p.models) ? p.models.filter((r) => {
@@ -619,8 +619,8 @@ const Sr = (p) => Array.isArray(p == null ? void 0 : p.data) ? p.data.filter((r)
619
619
  return ((e = (t = (r = p.message) == null ? void 0 : r.content) == null ? void 0 : t[0]) == null ? void 0 : e.text) || "";
620
620
  },
621
621
  parseStreamChunk: (p) => {
622
- var r, t, e, o;
623
- return p.type === "content-delta" && ((o = (e = (t = (r = p.delta) == null ? void 0 : r.message) == null ? void 0 : t.content) == null ? void 0 : e[0]) == null ? void 0 : o.text) || "";
622
+ var r, t, e, s;
623
+ return p.type === "content-delta" && ((s = (e = (t = (r = p.delta) == null ? void 0 : r.message) == null ? void 0 : t.content) == null ? void 0 : e[0]) == null ? void 0 : s.text) || "";
624
624
  }
625
625
  }, Hr = {
626
626
  openai: xr,
@@ -633,7 +633,7 @@ function ae(p) {
633
633
  }
634
634
  async function cr(p) {
635
635
  var i;
636
- const { apiFormat: r, baseUrl: t, apiKey: e, model: o, messages: c, maxTokens: b } = p, u = ae(r), f = u.getChatEndpoint(t, e, o), a = u.buildHeaders(e), n = u.buildChatPayload(o, c, b), B = performance.now();
636
+ const { apiFormat: r, baseUrl: t, apiKey: e, model: s, messages: c, maxTokens: b } = p, u = ae(r), f = u.getChatEndpoint(t, e, s), a = u.buildHeaders(e, t), n = u.buildChatPayload(s, c, b), B = performance.now();
637
637
  try {
638
638
  const l = await fetch(f, {
639
639
  method: "POST",
@@ -661,10 +661,10 @@ async function cr(p) {
661
661
  }
662
662
  async function Mr(p) {
663
663
  var d;
664
- const { apiFormat: r, baseUrl: t, apiKey: e, model: o, messages: c, maxTokens: b, onDelta: u, signal: f } = p, a = ae(r);
665
- let n = a.getChatEndpoint(t, e, o);
666
- r === "gemini" && (n = `${t}/models/${o}:streamGenerateContent?alt=sse&key=${encodeURIComponent(e)}`);
667
- const B = a.buildHeaders(e), i = a.buildChatPayload(o, c, b);
664
+ const { apiFormat: r, baseUrl: t, apiKey: e, model: s, messages: c, maxTokens: b, onDelta: u, signal: f } = p, a = ae(r);
665
+ let n = a.getChatEndpoint(t, e, s);
666
+ r === "gemini" && (n = `${t}/models/${s}:streamGenerateContent?alt=sse&key=${encodeURIComponent(e)}`);
667
+ const B = a.buildHeaders(e, t), i = a.buildChatPayload(s, c, b);
668
668
  i.stream = !0;
669
669
  const l = performance.now();
670
670
  try {
@@ -686,14 +686,14 @@ async function Mr(p) {
686
686
  return { success: !1, message: F, latencyMs: Math.round(performance.now() - l) };
687
687
  }
688
688
  const h = C.body.getReader(), A = new TextDecoder();
689
- let s = "", x = "";
689
+ let o = "", x = "";
690
690
  for (; ; ) {
691
691
  const { done: v, value: F } = await h.read();
692
692
  if (v) break;
693
- s += A.decode(F, { stream: !0 });
694
- const E = s.split(`
693
+ o += A.decode(F, { stream: !0 });
694
+ const E = o.split(`
695
695
  `);
696
- s = E.pop() || "";
696
+ o = E.pop() || "";
697
697
  for (const g of E) {
698
698
  const y = g.trim();
699
699
  if (!y.startsWith("data:") && !y.startsWith("event:") || y.startsWith("event:")) continue;
@@ -730,7 +730,7 @@ async function Or(p) {
730
730
  };
731
731
  }
732
732
  async function sa(p) {
733
- const { provider: r, apiKey: t, model: e, baseUrl: o, proxyUrl: c } = p, b = o || r.baseUrl, u = Date.now();
733
+ const { provider: r, apiKey: t, model: e, baseUrl: s, proxyUrl: c } = p, b = s || r.baseUrl, u = Date.now();
734
734
  try {
735
735
  if (c) {
736
736
  const h = await (await fetch(`${c}/test`, {
@@ -740,7 +740,7 @@ async function sa(p) {
740
740
  provider_id: r.id,
741
741
  api_key: t,
742
742
  model: e || "",
743
- base_url: o || r.baseUrl,
743
+ base_url: s || r.baseUrl,
744
744
  api_format: r.apiFormat
745
745
  })
746
746
  })).json();
@@ -757,7 +757,7 @@ async function sa(p) {
757
757
  latencyMs: 0,
758
758
  message: "请先选择模型 (Please select a model)"
759
759
  };
760
- const n = f.buildHeaders(t), B = f.buildChatPayload(a, [{ role: "user", content: "Hi" }]), i = f.getChatEndpoint(b, t, a), l = await fetch(i, {
760
+ const n = f.buildHeaders(t, b), B = f.buildChatPayload(a, [{ role: "user", content: "Hi" }]), i = f.getChatEndpoint(b, t, a), l = await fetch(i, {
761
761
  method: "POST",
762
762
  headers: n,
763
763
  body: JSON.stringify(B)
@@ -782,10 +782,10 @@ async function sa(p) {
782
782
  }
783
783
  async function $r(p) {
784
784
  var b, u;
785
- const { provider: r, apiKey: t, baseUrl: e, proxyUrl: o, fallbackToStatic: c = !0 } = p;
786
- if (o)
785
+ const { provider: r, apiKey: t, baseUrl: e, proxyUrl: s, fallbackToStatic: c = !0 } = p;
786
+ if (s)
787
787
  try {
788
- const a = await (await fetch(`${o}/models`, {
788
+ const a = await (await fetch(`${s}/models`, {
789
789
  method: "POST",
790
790
  headers: { "Content-Type": "application/json" },
791
791
  body: JSON.stringify({
@@ -799,11 +799,11 @@ async function $r(p) {
799
799
  } catch (f) {
800
800
  if (console.warn("Failed to fetch models via proxy:", f), !c) throw f;
801
801
  }
802
- if (!o && r.supportsModelsApi)
802
+ if (!s && r.supportsModelsApi)
803
803
  try {
804
804
  const f = ae(r.apiFormat);
805
805
  if (f.getModelsEndpoint) {
806
- const a = f.getModelsEndpoint(e || r.baseUrl, t || ""), n = f.buildHeaders(t || ""), B = await fetch(a, {
806
+ const a = f.getModelsEndpoint(e || r.baseUrl, t || ""), n = f.buildHeaders(t || "", e || r.baseUrl), B = await fetch(a, {
807
807
  method: "GET",
808
808
  headers: n
809
809
  });
@@ -836,8 +836,8 @@ function Lr(p) {
836
836
  t.prototype = r.prototype;
837
837
  } else t = {};
838
838
  return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(p).forEach(function(e) {
839
- var o = Object.getOwnPropertyDescriptor(p, e);
840
- Object.defineProperty(t, e, o.get ? o : {
839
+ var s = Object.getOwnPropertyDescriptor(p, e);
840
+ Object.defineProperty(t, e, s.get ? s : {
841
841
  enumerable: !0,
842
842
  get: function() {
843
843
  return p[e];
@@ -860,7 +860,7 @@ function L() {
860
860
  (function(t, e) {
861
861
  p.exports = e();
862
862
  })(Nr, function() {
863
- var t = t || (function(e, o) {
863
+ var t = t || (function(e, s) {
864
864
  var c;
865
865
  if (typeof window < "u" && window.crypto && (c = window.crypto), typeof self < "u" && self.crypto && (c = self.crypto), typeof globalThis < "u" && globalThis.crypto && (c = globalThis.crypto), !c && typeof window < "u" && window.msCrypto && (c = window.msCrypto), !c && typeof oe < "u" && oe.crypto && (c = oe.crypto), !c && typeof Kr == "function")
866
866
  try {
@@ -882,11 +882,11 @@ function L() {
882
882
  }
883
883
  throw new Error("Native crypto module could not be used to get secure random number.");
884
884
  }, u = Object.create || /* @__PURE__ */ (function() {
885
- function s() {
885
+ function o() {
886
886
  }
887
887
  return function(x) {
888
888
  var v;
889
- return s.prototype = x, v = new s(), s.prototype = null, v;
889
+ return o.prototype = x, v = new o(), o.prototype = null, v;
890
890
  };
891
891
  })(), f = {}, a = f.lib = {}, n = a.Base = /* @__PURE__ */ (function() {
892
892
  return {
@@ -908,9 +908,9 @@ function L() {
908
908
  * }
909
909
  * });
910
910
  */
911
- extend: function(s) {
911
+ extend: function(o) {
912
912
  var x = u(this);
913
- return s && x.mixIn(s), (!x.hasOwnProperty("init") || this.init === x.init) && (x.init = function() {
913
+ return o && x.mixIn(o), (!x.hasOwnProperty("init") || this.init === x.init) && (x.init = function() {
914
914
  x.$super.init.apply(this, arguments);
915
915
  }), x.init.prototype = x, x.$super = this, x;
916
916
  },
@@ -927,8 +927,8 @@ function L() {
927
927
  * var instance = MyType.create();
928
928
  */
929
929
  create: function() {
930
- var s = this.extend();
931
- return s.init.apply(s, arguments), s;
930
+ var o = this.extend();
931
+ return o.init.apply(o, arguments), o;
932
932
  },
933
933
  /**
934
934
  * Initializes a newly created object.
@@ -955,10 +955,10 @@ function L() {
955
955
  * field: 'value'
956
956
  * });
957
957
  */
958
- mixIn: function(s) {
959
- for (var x in s)
960
- s.hasOwnProperty(x) && (this[x] = s[x]);
961
- s.hasOwnProperty("toString") && (this.toString = s.toString);
958
+ mixIn: function(o) {
959
+ for (var x in o)
960
+ o.hasOwnProperty(x) && (this[x] = o[x]);
961
+ o.hasOwnProperty("toString") && (this.toString = o.toString);
962
962
  },
963
963
  /**
964
964
  * Creates a copy of this object.
@@ -986,8 +986,8 @@ function L() {
986
986
  * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
987
987
  * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
988
988
  */
989
- init: function(s, x) {
990
- s = this.words = s || [], x != o ? this.sigBytes = x : this.sigBytes = s.length * 4;
989
+ init: function(o, x) {
990
+ o = this.words = o || [], x != s ? this.sigBytes = x : this.sigBytes = o.length * 4;
991
991
  },
992
992
  /**
993
993
  * Converts this word array to a string.
@@ -1002,8 +1002,8 @@ function L() {
1002
1002
  * var string = wordArray.toString();
1003
1003
  * var string = wordArray.toString(CryptoJS.enc.Utf8);
1004
1004
  */
1005
- toString: function(s) {
1006
- return (s || l).stringify(this);
1005
+ toString: function(o) {
1006
+ return (o || l).stringify(this);
1007
1007
  },
1008
1008
  /**
1009
1009
  * Concatenates a word array to this word array.
@@ -1016,8 +1016,8 @@ function L() {
1016
1016
  *
1017
1017
  * wordArray1.concat(wordArray2);
1018
1018
  */
1019
- concat: function(s) {
1020
- var x = this.words, v = s.words, F = this.sigBytes, E = s.sigBytes;
1019
+ concat: function(o) {
1020
+ var x = this.words, v = o.words, F = this.sigBytes, E = o.sigBytes;
1021
1021
  if (this.clamp(), F % 4)
1022
1022
  for (var g = 0; g < E; g++) {
1023
1023
  var y = v[g >>> 2] >>> 24 - g % 4 * 8 & 255;
@@ -1036,8 +1036,8 @@ function L() {
1036
1036
  * wordArray.clamp();
1037
1037
  */
1038
1038
  clamp: function() {
1039
- var s = this.words, x = this.sigBytes;
1040
- s[x >>> 2] &= 4294967295 << 32 - x % 4 * 8, s.length = e.ceil(x / 4);
1039
+ var o = this.words, x = this.sigBytes;
1040
+ o[x >>> 2] &= 4294967295 << 32 - x % 4 * 8, o.length = e.ceil(x / 4);
1041
1041
  },
1042
1042
  /**
1043
1043
  * Creates a copy of this word array.
@@ -1049,8 +1049,8 @@ function L() {
1049
1049
  * var clone = wordArray.clone();
1050
1050
  */
1051
1051
  clone: function() {
1052
- var s = n.clone.call(this);
1053
- return s.words = this.words.slice(0), s;
1052
+ var o = n.clone.call(this);
1053
+ return o.words = this.words.slice(0), o;
1054
1054
  },
1055
1055
  /**
1056
1056
  * Creates a word array filled with random bytes.
@@ -1065,10 +1065,10 @@ function L() {
1065
1065
  *
1066
1066
  * var wordArray = CryptoJS.lib.WordArray.random(16);
1067
1067
  */
1068
- random: function(s) {
1069
- for (var x = [], v = 0; v < s; v += 4)
1068
+ random: function(o) {
1069
+ for (var x = [], v = 0; v < o; v += 4)
1070
1070
  x.push(b());
1071
- return new B.init(x, s);
1071
+ return new B.init(x, o);
1072
1072
  }
1073
1073
  }), i = f.enc = {}, l = i.Hex = {
1074
1074
  /**
@@ -1084,8 +1084,8 @@ function L() {
1084
1084
  *
1085
1085
  * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
1086
1086
  */
1087
- stringify: function(s) {
1088
- for (var x = s.words, v = s.sigBytes, F = [], E = 0; E < v; E++) {
1087
+ stringify: function(o) {
1088
+ for (var x = o.words, v = o.sigBytes, F = [], E = 0; E < v; E++) {
1089
1089
  var g = x[E >>> 2] >>> 24 - E % 4 * 8 & 255;
1090
1090
  F.push((g >>> 4).toString(16)), F.push((g & 15).toString(16));
1091
1091
  }
@@ -1104,9 +1104,9 @@ function L() {
1104
1104
  *
1105
1105
  * var wordArray = CryptoJS.enc.Hex.parse(hexString);
1106
1106
  */
1107
- parse: function(s) {
1108
- for (var x = s.length, v = [], F = 0; F < x; F += 2)
1109
- v[F >>> 3] |= parseInt(s.substr(F, 2), 16) << 24 - F % 8 * 4;
1107
+ parse: function(o) {
1108
+ for (var x = o.length, v = [], F = 0; F < x; F += 2)
1109
+ v[F >>> 3] |= parseInt(o.substr(F, 2), 16) << 24 - F % 8 * 4;
1110
1110
  return new B.init(v, x / 2);
1111
1111
  }
1112
1112
  }, d = i.Latin1 = {
@@ -1123,8 +1123,8 @@ function L() {
1123
1123
  *
1124
1124
  * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
1125
1125
  */
1126
- stringify: function(s) {
1127
- for (var x = s.words, v = s.sigBytes, F = [], E = 0; E < v; E++) {
1126
+ stringify: function(o) {
1127
+ for (var x = o.words, v = o.sigBytes, F = [], E = 0; E < v; E++) {
1128
1128
  var g = x[E >>> 2] >>> 24 - E % 4 * 8 & 255;
1129
1129
  F.push(String.fromCharCode(g));
1130
1130
  }
@@ -1143,9 +1143,9 @@ function L() {
1143
1143
  *
1144
1144
  * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
1145
1145
  */
1146
- parse: function(s) {
1147
- for (var x = s.length, v = [], F = 0; F < x; F++)
1148
- v[F >>> 2] |= (s.charCodeAt(F) & 255) << 24 - F % 4 * 8;
1146
+ parse: function(o) {
1147
+ for (var x = o.length, v = [], F = 0; F < x; F++)
1148
+ v[F >>> 2] |= (o.charCodeAt(F) & 255) << 24 - F % 4 * 8;
1149
1149
  return new B.init(v, x);
1150
1150
  }
1151
1151
  }, C = i.Utf8 = {
@@ -1162,9 +1162,9 @@ function L() {
1162
1162
  *
1163
1163
  * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
1164
1164
  */
1165
- stringify: function(s) {
1165
+ stringify: function(o) {
1166
1166
  try {
1167
- return decodeURIComponent(escape(d.stringify(s)));
1167
+ return decodeURIComponent(escape(d.stringify(o)));
1168
1168
  } catch {
1169
1169
  throw new Error("Malformed UTF-8 data");
1170
1170
  }
@@ -1182,8 +1182,8 @@ function L() {
1182
1182
  *
1183
1183
  * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
1184
1184
  */
1185
- parse: function(s) {
1186
- return d.parse(unescape(encodeURIComponent(s)));
1185
+ parse: function(o) {
1186
+ return d.parse(unescape(encodeURIComponent(o)));
1187
1187
  }
1188
1188
  }, h = a.BufferedBlockAlgorithm = n.extend({
1189
1189
  /**
@@ -1206,8 +1206,8 @@ function L() {
1206
1206
  * bufferedBlockAlgorithm._append('data');
1207
1207
  * bufferedBlockAlgorithm._append(wordArray);
1208
1208
  */
1209
- _append: function(s) {
1210
- typeof s == "string" && (s = C.parse(s)), this._data.concat(s), this._nDataBytes += s.sigBytes;
1209
+ _append: function(o) {
1210
+ typeof o == "string" && (o = C.parse(o)), this._data.concat(o), this._nDataBytes += o.sigBytes;
1211
1211
  },
1212
1212
  /**
1213
1213
  * Processes available data blocks.
@@ -1223,9 +1223,9 @@ function L() {
1223
1223
  * var processedData = bufferedBlockAlgorithm._process();
1224
1224
  * var processedData = bufferedBlockAlgorithm._process(!!'flush');
1225
1225
  */
1226
- _process: function(s) {
1226
+ _process: function(o) {
1227
1227
  var x, v = this._data, F = v.words, E = v.sigBytes, g = this.blockSize, y = g * 4, R = E / y;
1228
- s ? R = e.ceil(R) : R = e.max((R | 0) - this._minBufferSize, 0);
1228
+ o ? R = e.ceil(R) : R = e.max((R | 0) - this._minBufferSize, 0);
1229
1229
  var m = R * g, D = e.min(m * 4, E);
1230
1230
  if (m) {
1231
1231
  for (var w = 0; w < m; w += g)
@@ -1244,8 +1244,8 @@ function L() {
1244
1244
  * var clone = bufferedBlockAlgorithm.clone();
1245
1245
  */
1246
1246
  clone: function() {
1247
- var s = n.clone.call(this);
1248
- return s._data = this._data.clone(), s;
1247
+ var o = n.clone.call(this);
1248
+ return o._data = this._data.clone(), o;
1249
1249
  },
1250
1250
  _minBufferSize: 0
1251
1251
  });
@@ -1263,8 +1263,8 @@ function L() {
1263
1263
  *
1264
1264
  * var hasher = CryptoJS.algo.SHA256.create();
1265
1265
  */
1266
- init: function(s) {
1267
- this.cfg = this.cfg.extend(s), this.reset();
1266
+ init: function(o) {
1267
+ this.cfg = this.cfg.extend(o), this.reset();
1268
1268
  },
1269
1269
  /**
1270
1270
  * Resets this hasher to its initial state.
@@ -1288,8 +1288,8 @@ function L() {
1288
1288
  * hasher.update('message');
1289
1289
  * hasher.update(wordArray);
1290
1290
  */
1291
- update: function(s) {
1292
- return this._append(s), this._process(), this;
1291
+ update: function(o) {
1292
+ return this._append(o), this._process(), this;
1293
1293
  },
1294
1294
  /**
1295
1295
  * Finalizes the hash computation.
@@ -1305,8 +1305,8 @@ function L() {
1305
1305
  * var hash = hasher.finalize('message');
1306
1306
  * var hash = hasher.finalize(wordArray);
1307
1307
  */
1308
- finalize: function(s) {
1309
- s && this._append(s);
1308
+ finalize: function(o) {
1309
+ o && this._append(o);
1310
1310
  var x = this._doFinalize();
1311
1311
  return x;
1312
1312
  },
@@ -1324,9 +1324,9 @@ function L() {
1324
1324
  *
1325
1325
  * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
1326
1326
  */
1327
- _createHelper: function(s) {
1327
+ _createHelper: function(o) {
1328
1328
  return function(x, v) {
1329
- return new s.init(v).finalize(x);
1329
+ return new o.init(v).finalize(x);
1330
1330
  };
1331
1331
  },
1332
1332
  /**
@@ -1342,9 +1342,9 @@ function L() {
1342
1342
  *
1343
1343
  * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
1344
1344
  */
1345
- _createHmacHelper: function(s) {
1345
+ _createHmacHelper: function(o) {
1346
1346
  return function(x, v) {
1347
- return new A.HMAC.init(s, v).finalize(x);
1347
+ return new A.HMAC.init(o, v).finalize(x);
1348
1348
  };
1349
1349
  }
1350
1350
  });
@@ -1362,7 +1362,7 @@ function ne() {
1362
1362
  p.exports = e(L());
1363
1363
  })(Wr, function(t) {
1364
1364
  return (function(e) {
1365
- var o = t, c = o.lib, b = c.Base, u = c.WordArray, f = o.x64 = {};
1365
+ var s = t, c = s.lib, b = c.Base, u = c.WordArray, f = s.x64 = {};
1366
1366
  f.Word = b.extend({
1367
1367
  /**
1368
1368
  * Initializes a newly created 64-bit word.
@@ -1593,7 +1593,7 @@ function Qr() {
1593
1593
  })(Gr, function(t) {
1594
1594
  return (function() {
1595
1595
  if (typeof ArrayBuffer == "function") {
1596
- var e = t, o = e.lib, c = o.WordArray, b = c.init, u = c.init = function(f) {
1596
+ var e = t, s = e.lib, c = s.WordArray, b = c.init, u = c.init = function(f) {
1597
1597
  if (f instanceof ArrayBuffer && (f = new Uint8Array(f)), (f instanceof Int8Array || typeof Uint8ClampedArray < "u" && f instanceof Uint8ClampedArray || f instanceof Int16Array || f instanceof Uint16Array || f instanceof Int32Array || f instanceof Uint32Array || f instanceof Float32Array || f instanceof Float64Array) && (f = new Uint8Array(f.buffer, f.byteOffset, f.byteLength)), f instanceof Uint8Array) {
1598
1598
  for (var a = f.byteLength, n = [], B = 0; B < a; B++)
1599
1599
  n[B >>> 2] |= f[B] << 24 - B % 4 * 8;
@@ -1614,7 +1614,7 @@ function Vr() {
1614
1614
  p.exports = e(L());
1615
1615
  })(Xr, function(t) {
1616
1616
  return (function() {
1617
- var e = t, o = e.lib, c = o.WordArray, b = e.enc;
1617
+ var e = t, s = e.lib, c = s.WordArray, b = e.enc;
1618
1618
  b.Utf16 = b.Utf16BE = {
1619
1619
  /**
1620
1620
  * Converts a word array to a UTF-16 BE string.
@@ -1708,7 +1708,7 @@ function n0() {
1708
1708
  p.exports = e(L());
1709
1709
  })(jr, function(t) {
1710
1710
  return (function() {
1711
- var e = t, o = e.lib, c = o.WordArray, b = e.enc;
1711
+ var e = t, s = e.lib, c = s.WordArray, b = e.enc;
1712
1712
  b.Base64 = {
1713
1713
  /**
1714
1714
  * Converts a word array to a Base64 string.
@@ -1727,8 +1727,8 @@ function n0() {
1727
1727
  var a = f.words, n = f.sigBytes, B = this._map;
1728
1728
  f.clamp();
1729
1729
  for (var i = [], l = 0; l < n; l += 3)
1730
- for (var d = a[l >>> 2] >>> 24 - l % 4 * 8 & 255, C = a[l + 1 >>> 2] >>> 24 - (l + 1) % 4 * 8 & 255, h = a[l + 2 >>> 2] >>> 24 - (l + 2) % 4 * 8 & 255, A = d << 16 | C << 8 | h, s = 0; s < 4 && l + s * 0.75 < n; s++)
1731
- i.push(B.charAt(A >>> 6 * (3 - s) & 63));
1730
+ for (var d = a[l >>> 2] >>> 24 - l % 4 * 8 & 255, C = a[l + 1 >>> 2] >>> 24 - (l + 1) % 4 * 8 & 255, h = a[l + 2 >>> 2] >>> 24 - (l + 2) % 4 * 8 & 255, A = d << 16 | C << 8 | h, o = 0; o < 4 && l + o * 0.75 < n; o++)
1731
+ i.push(B.charAt(A >>> 6 * (3 - o) & 63));
1732
1732
  var x = B.charAt(64);
1733
1733
  if (x)
1734
1734
  for (; i.length % 4; )
@@ -1783,7 +1783,7 @@ function Yr() {
1783
1783
  p.exports = e(L());
1784
1784
  })(Zr, function(t) {
1785
1785
  return (function() {
1786
- var e = t, o = e.lib, c = o.WordArray, b = e.enc;
1786
+ var e = t, s = e.lib, c = s.WordArray, b = e.enc;
1787
1787
  b.Base64url = {
1788
1788
  /**
1789
1789
  * Converts a word array to a Base64url string.
@@ -1805,8 +1805,8 @@ function Yr() {
1805
1805
  var n = f.words, B = f.sigBytes, i = a ? this._safe_map : this._map;
1806
1806
  f.clamp();
1807
1807
  for (var l = [], d = 0; d < B; d += 3)
1808
- for (var C = n[d >>> 2] >>> 24 - d % 4 * 8 & 255, h = n[d + 1 >>> 2] >>> 24 - (d + 1) % 4 * 8 & 255, A = n[d + 2 >>> 2] >>> 24 - (d + 2) % 4 * 8 & 255, s = C << 16 | h << 8 | A, x = 0; x < 4 && d + x * 0.75 < B; x++)
1809
- l.push(i.charAt(s >>> 6 * (3 - x) & 63));
1808
+ for (var C = n[d >>> 2] >>> 24 - d % 4 * 8 & 255, h = n[d + 1 >>> 2] >>> 24 - (d + 1) % 4 * 8 & 255, A = n[d + 2 >>> 2] >>> 24 - (d + 2) % 4 * 8 & 255, o = C << 16 | h << 8 | A, x = 0; x < 4 && d + x * 0.75 < B; x++)
1809
+ l.push(i.charAt(o >>> 6 * (3 - x) & 63));
1810
1810
  var v = i.charAt(64);
1811
1811
  if (v)
1812
1812
  for (; l.length % 4; )
@@ -1865,7 +1865,7 @@ function i0() {
1865
1865
  p.exports = e(L());
1866
1866
  })(Jr, function(t) {
1867
1867
  return (function(e) {
1868
- var o = t, c = o.lib, b = c.WordArray, u = c.Hasher, f = o.algo, a = [];
1868
+ var s = t, c = s.lib, b = c.WordArray, u = c.Hasher, f = s.algo, a = [];
1869
1869
  (function() {
1870
1870
  for (var C = 0; C < 64; C++)
1871
1871
  a[C] = e.abs(e.sin(C + 1)) * 4294967296 | 0;
@@ -1881,17 +1881,17 @@ function i0() {
1881
1881
  },
1882
1882
  _doProcessBlock: function(C, h) {
1883
1883
  for (var A = 0; A < 16; A++) {
1884
- var s = h + A, x = C[s];
1885
- C[s] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360;
1884
+ var o = h + A, x = C[o];
1885
+ C[o] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360;
1886
1886
  }
1887
1887
  var v = this._hash.words, F = C[h + 0], E = C[h + 1], g = C[h + 2], y = C[h + 3], R = C[h + 4], m = C[h + 5], D = C[h + 6], w = C[h + 7], k = C[h + 8], M = C[h + 9], O = C[h + 10], $ = C[h + 11], N = C[h + 12], K = C[h + 13], q = C[h + 14], U = C[h + 15], _ = v[0], P = v[1], I = v[2], S = v[3];
1888
1888
  _ = B(_, P, I, S, F, 7, a[0]), S = B(S, _, P, I, E, 12, a[1]), I = B(I, S, _, P, g, 17, a[2]), P = B(P, I, S, _, y, 22, a[3]), _ = B(_, P, I, S, R, 7, a[4]), S = B(S, _, P, I, m, 12, a[5]), I = B(I, S, _, P, D, 17, a[6]), P = B(P, I, S, _, w, 22, a[7]), _ = B(_, P, I, S, k, 7, a[8]), S = B(S, _, P, I, M, 12, a[9]), I = B(I, S, _, P, O, 17, a[10]), P = B(P, I, S, _, $, 22, a[11]), _ = B(_, P, I, S, N, 7, a[12]), S = B(S, _, P, I, K, 12, a[13]), I = B(I, S, _, P, q, 17, a[14]), P = B(P, I, S, _, U, 22, a[15]), _ = i(_, P, I, S, E, 5, a[16]), S = i(S, _, P, I, D, 9, a[17]), I = i(I, S, _, P, $, 14, a[18]), P = i(P, I, S, _, F, 20, a[19]), _ = i(_, P, I, S, m, 5, a[20]), S = i(S, _, P, I, O, 9, a[21]), I = i(I, S, _, P, U, 14, a[22]), P = i(P, I, S, _, R, 20, a[23]), _ = i(_, P, I, S, M, 5, a[24]), S = i(S, _, P, I, q, 9, a[25]), I = i(I, S, _, P, y, 14, a[26]), P = i(P, I, S, _, k, 20, a[27]), _ = i(_, P, I, S, K, 5, a[28]), S = i(S, _, P, I, g, 9, a[29]), I = i(I, S, _, P, w, 14, a[30]), P = i(P, I, S, _, N, 20, a[31]), _ = l(_, P, I, S, m, 4, a[32]), S = l(S, _, P, I, k, 11, a[33]), I = l(I, S, _, P, $, 16, a[34]), P = l(P, I, S, _, q, 23, a[35]), _ = l(_, P, I, S, E, 4, a[36]), S = l(S, _, P, I, R, 11, a[37]), I = l(I, S, _, P, w, 16, a[38]), P = l(P, I, S, _, O, 23, a[39]), _ = l(_, P, I, S, K, 4, a[40]), S = l(S, _, P, I, F, 11, a[41]), I = l(I, S, _, P, y, 16, a[42]), P = l(P, I, S, _, D, 23, a[43]), _ = l(_, P, I, S, M, 4, a[44]), S = l(S, _, P, I, N, 11, a[45]), I = l(I, S, _, P, U, 16, a[46]), P = l(P, I, S, _, g, 23, a[47]), _ = d(_, P, I, S, F, 6, a[48]), S = d(S, _, P, I, w, 10, a[49]), I = d(I, S, _, P, q, 15, a[50]), P = d(P, I, S, _, m, 21, a[51]), _ = d(_, P, I, S, N, 6, a[52]), S = d(S, _, P, I, y, 10, a[53]), I = d(I, S, _, P, O, 15, a[54]), P = d(P, I, S, _, E, 21, a[55]), _ = d(_, P, I, S, k, 6, a[56]), S = d(S, _, P, I, U, 10, a[57]), I = d(I, S, _, P, D, 15, a[58]), P = d(P, I, S, _, K, 21, a[59]), _ = d(_, P, I, S, R, 6, a[60]), S = d(S, _, P, I, $, 10, a[61]), I = d(I, S, _, P, g, 15, a[62]), P = d(P, I, S, _, M, 21, a[63]), v[0] = v[0] + _ | 0, v[1] = v[1] + P | 0, v[2] = v[2] + I | 0, v[3] = v[3] + S | 0;
1889
1889
  },
1890
1890
  _doFinalize: function() {
1891
- var C = this._data, h = C.words, A = this._nDataBytes * 8, s = C.sigBytes * 8;
1892
- h[s >>> 5] |= 128 << 24 - s % 32;
1891
+ var C = this._data, h = C.words, A = this._nDataBytes * 8, o = C.sigBytes * 8;
1892
+ h[o >>> 5] |= 128 << 24 - o % 32;
1893
1893
  var x = e.floor(A / 4294967296), v = A;
1894
- h[(s + 64 >>> 9 << 4) + 15] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, h[(s + 64 >>> 9 << 4) + 14] = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360, C.sigBytes = (h.length + 1) * 4, this._process();
1894
+ h[(o + 64 >>> 9 << 4) + 15] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, h[(o + 64 >>> 9 << 4) + 14] = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360, C.sigBytes = (h.length + 1) * 4, this._process();
1895
1895
  for (var F = this._hash, E = F.words, g = 0; g < 4; g++) {
1896
1896
  var y = E[g];
1897
1897
  E[g] = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360;
@@ -1903,23 +1903,23 @@ function i0() {
1903
1903
  return C._hash = this._hash.clone(), C;
1904
1904
  }
1905
1905
  });
1906
- function B(C, h, A, s, x, v, F) {
1907
- var E = C + (h & A | ~h & s) + x + F;
1906
+ function B(C, h, A, o, x, v, F) {
1907
+ var E = C + (h & A | ~h & o) + x + F;
1908
1908
  return (E << v | E >>> 32 - v) + h;
1909
1909
  }
1910
- function i(C, h, A, s, x, v, F) {
1911
- var E = C + (h & s | A & ~s) + x + F;
1910
+ function i(C, h, A, o, x, v, F) {
1911
+ var E = C + (h & o | A & ~o) + x + F;
1912
1912
  return (E << v | E >>> 32 - v) + h;
1913
1913
  }
1914
- function l(C, h, A, s, x, v, F) {
1915
- var E = C + (h ^ A ^ s) + x + F;
1914
+ function l(C, h, A, o, x, v, F) {
1915
+ var E = C + (h ^ A ^ o) + x + F;
1916
1916
  return (E << v | E >>> 32 - v) + h;
1917
1917
  }
1918
- function d(C, h, A, s, x, v, F) {
1919
- var E = C + (A ^ (h | ~s)) + x + F;
1918
+ function d(C, h, A, o, x, v, F) {
1919
+ var E = C + (A ^ (h | ~o)) + x + F;
1920
1920
  return (E << v | E >>> 32 - v) + h;
1921
1921
  }
1922
- o.MD5 = u._createHelper(n), o.HmacMD5 = u._createHmacHelper(n);
1922
+ s.MD5 = u._createHelper(n), s.HmacMD5 = u._createHmacHelper(n);
1923
1923
  })(Math), t.MD5;
1924
1924
  });
1925
1925
  })(y0)), y0.exports;
@@ -1931,7 +1931,7 @@ function lr() {
1931
1931
  p.exports = e(L());
1932
1932
  })(et, function(t) {
1933
1933
  return (function() {
1934
- var e = t, o = e.lib, c = o.WordArray, b = o.Hasher, u = e.algo, f = [], a = u.SHA1 = b.extend({
1934
+ var e = t, s = e.lib, c = s.WordArray, b = s.Hasher, u = e.algo, f = [], a = u.SHA1 = b.extend({
1935
1935
  _doReset: function() {
1936
1936
  this._hash = new c.init([
1937
1937
  1732584193,
@@ -1942,15 +1942,15 @@ function lr() {
1942
1942
  ]);
1943
1943
  },
1944
1944
  _doProcessBlock: function(n, B) {
1945
- for (var i = this._hash.words, l = i[0], d = i[1], C = i[2], h = i[3], A = i[4], s = 0; s < 80; s++) {
1946
- if (s < 16)
1947
- f[s] = n[B + s] | 0;
1945
+ for (var i = this._hash.words, l = i[0], d = i[1], C = i[2], h = i[3], A = i[4], o = 0; o < 80; o++) {
1946
+ if (o < 16)
1947
+ f[o] = n[B + o] | 0;
1948
1948
  else {
1949
- var x = f[s - 3] ^ f[s - 8] ^ f[s - 14] ^ f[s - 16];
1950
- f[s] = x << 1 | x >>> 31;
1949
+ var x = f[o - 3] ^ f[o - 8] ^ f[o - 14] ^ f[o - 16];
1950
+ f[o] = x << 1 | x >>> 31;
1951
1951
  }
1952
- var v = (l << 5 | l >>> 27) + A + f[s];
1953
- s < 20 ? v += (d & C | ~d & h) + 1518500249 : s < 40 ? v += (d ^ C ^ h) + 1859775393 : s < 60 ? v += (d & C | d & h | C & h) - 1894007588 : v += (d ^ C ^ h) - 899497514, A = h, h = C, C = d << 30 | d >>> 2, d = l, l = v;
1952
+ var v = (l << 5 | l >>> 27) + A + f[o];
1953
+ o < 20 ? v += (d & C | ~d & h) + 1518500249 : o < 40 ? v += (d ^ C ^ h) + 1859775393 : o < 60 ? v += (d & C | d & h | C & h) - 1894007588 : v += (d ^ C ^ h) - 899497514, A = h, h = C, C = d << 30 | d >>> 2, d = l, l = v;
1954
1954
  }
1955
1955
  i[0] = i[0] + l | 0, i[1] = i[1] + d | 0, i[2] = i[2] + C | 0, i[3] = i[3] + h | 0, i[4] = i[4] + A | 0;
1956
1956
  },
@@ -1975,10 +1975,10 @@ function de() {
1975
1975
  p.exports = e(L());
1976
1976
  })(rt, function(t) {
1977
1977
  return (function(e) {
1978
- var o = t, c = o.lib, b = c.WordArray, u = c.Hasher, f = o.algo, a = [], n = [];
1978
+ var s = t, c = s.lib, b = c.WordArray, u = c.Hasher, f = s.algo, a = [], n = [];
1979
1979
  (function() {
1980
1980
  function l(A) {
1981
- for (var s = e.sqrt(A), x = 2; x <= s; x++)
1981
+ for (var o = e.sqrt(A), x = 2; x <= o; x++)
1982
1982
  if (!(A % x))
1983
1983
  return !1;
1984
1984
  return !0;
@@ -1994,17 +1994,17 @@ function de() {
1994
1994
  this._hash = new b.init(a.slice(0));
1995
1995
  },
1996
1996
  _doProcessBlock: function(l, d) {
1997
- for (var C = this._hash.words, h = C[0], A = C[1], s = C[2], x = C[3], v = C[4], F = C[5], E = C[6], g = C[7], y = 0; y < 64; y++) {
1997
+ for (var C = this._hash.words, h = C[0], A = C[1], o = C[2], x = C[3], v = C[4], F = C[5], E = C[6], g = C[7], y = 0; y < 64; y++) {
1998
1998
  if (y < 16)
1999
1999
  B[y] = l[d + y] | 0;
2000
2000
  else {
2001
2001
  var R = B[y - 15], m = (R << 25 | R >>> 7) ^ (R << 14 | R >>> 18) ^ R >>> 3, D = B[y - 2], w = (D << 15 | D >>> 17) ^ (D << 13 | D >>> 19) ^ D >>> 10;
2002
2002
  B[y] = m + B[y - 7] + w + B[y - 16];
2003
2003
  }
2004
- var k = v & F ^ ~v & E, M = h & A ^ h & s ^ A & s, O = (h << 30 | h >>> 2) ^ (h << 19 | h >>> 13) ^ (h << 10 | h >>> 22), $ = (v << 26 | v >>> 6) ^ (v << 21 | v >>> 11) ^ (v << 7 | v >>> 25), N = g + $ + k + n[y] + B[y], K = O + M;
2005
- g = E, E = F, F = v, v = x + N | 0, x = s, s = A, A = h, h = N + K | 0;
2004
+ var k = v & F ^ ~v & E, M = h & A ^ h & o ^ A & o, O = (h << 30 | h >>> 2) ^ (h << 19 | h >>> 13) ^ (h << 10 | h >>> 22), $ = (v << 26 | v >>> 6) ^ (v << 21 | v >>> 11) ^ (v << 7 | v >>> 25), N = g + $ + k + n[y] + B[y], K = O + M;
2005
+ g = E, E = F, F = v, v = x + N | 0, x = o, o = A, A = h, h = N + K | 0;
2006
2006
  }
2007
- C[0] = C[0] + h | 0, C[1] = C[1] + A | 0, C[2] = C[2] + s | 0, C[3] = C[3] + x | 0, C[4] = C[4] + v | 0, C[5] = C[5] + F | 0, C[6] = C[6] + E | 0, C[7] = C[7] + g | 0;
2007
+ C[0] = C[0] + h | 0, C[1] = C[1] + A | 0, C[2] = C[2] + o | 0, C[3] = C[3] + x | 0, C[4] = C[4] + v | 0, C[5] = C[5] + F | 0, C[6] = C[6] + E | 0, C[7] = C[7] + g | 0;
2008
2008
  },
2009
2009
  _doFinalize: function() {
2010
2010
  var l = this._data, d = l.words, C = this._nDataBytes * 8, h = l.sigBytes * 8;
@@ -2015,7 +2015,7 @@ function de() {
2015
2015
  return l._hash = this._hash.clone(), l;
2016
2016
  }
2017
2017
  });
2018
- o.SHA256 = u._createHelper(i), o.HmacSHA256 = u._createHmacHelper(i);
2018
+ s.SHA256 = u._createHelper(i), s.HmacSHA256 = u._createHmacHelper(i);
2019
2019
  })(Math), t.SHA256;
2020
2020
  });
2021
2021
  })(w0)), w0.exports;
@@ -2023,11 +2023,11 @@ function de() {
2023
2023
  var k0 = { exports: {} }, tt = k0.exports, He;
2024
2024
  function at() {
2025
2025
  return He || (He = 1, (function(p, r) {
2026
- (function(t, e, o) {
2026
+ (function(t, e, s) {
2027
2027
  p.exports = e(L(), de());
2028
2028
  })(tt, function(t) {
2029
2029
  return (function() {
2030
- var e = t, o = e.lib, c = o.WordArray, b = e.algo, u = b.SHA256, f = b.SHA224 = u.extend({
2030
+ var e = t, s = e.lib, c = s.WordArray, b = e.algo, u = b.SHA256, f = b.SHA224 = u.extend({
2031
2031
  _doReset: function() {
2032
2032
  this._hash = new c.init([
2033
2033
  3238371032,
@@ -2053,11 +2053,11 @@ function at() {
2053
2053
  var S0 = { exports: {} }, nt = S0.exports, Me;
2054
2054
  function dr() {
2055
2055
  return Me || (Me = 1, (function(p, r) {
2056
- (function(t, e, o) {
2056
+ (function(t, e, s) {
2057
2057
  p.exports = e(L(), ne());
2058
2058
  })(nt, function(t) {
2059
2059
  return (function() {
2060
- var e = t, o = e.lib, c = o.Hasher, b = e.x64, u = b.Word, f = b.WordArray, a = e.algo;
2060
+ var e = t, s = e.lib, c = s.Hasher, b = e.x64, u = b.Word, f = b.WordArray, a = e.algo;
2061
2061
  function n() {
2062
2062
  return u.create.apply(u, arguments);
2063
2063
  }
@@ -2161,7 +2161,7 @@ function dr() {
2161
2161
  ]);
2162
2162
  },
2163
2163
  _doProcessBlock: function(d, C) {
2164
- for (var h = this._hash.words, A = h[0], s = h[1], x = h[2], v = h[3], F = h[4], E = h[5], g = h[6], y = h[7], R = A.high, m = A.low, D = s.high, w = s.low, k = x.high, M = x.low, O = v.high, $ = v.low, N = F.high, K = F.low, q = E.high, U = E.low, _ = g.high, P = g.low, I = y.high, S = y.low, W = R, z = m, X = D, T = w, c0 = k, s0 = M, ie = O, l0 = $, Y = N, V = K, p0 = q, d0 = U, C0 = _, f0 = P, se = I, u0 = S, J = 0; J < 80; J++) {
2164
+ for (var h = this._hash.words, A = h[0], o = h[1], x = h[2], v = h[3], F = h[4], E = h[5], g = h[6], y = h[7], R = A.high, m = A.low, D = o.high, w = o.low, k = x.high, M = x.low, O = v.high, $ = v.low, N = F.high, K = F.low, q = E.high, U = E.low, _ = g.high, P = g.low, I = y.high, S = y.low, W = R, z = m, X = D, T = w, c0 = k, s0 = M, ie = O, l0 = $, Y = N, V = K, p0 = q, d0 = U, C0 = _, f0 = P, se = I, u0 = S, J = 0; J < 80; J++) {
2165
2165
  var Z, e0, B0 = i[J];
2166
2166
  if (J < 16)
2167
2167
  e0 = B0.high = d[C + J * 2] | 0, Z = B0.low = d[C + J * 2 + 1] | 0;
@@ -2172,13 +2172,13 @@ function dr() {
2172
2172
  var mr = Y & p0 ^ ~Y & C0, Ae = V & d0 ^ ~V & f0, Ar = W & X ^ W & c0 ^ X & c0, Er = z & T ^ z & s0 ^ T & s0, Fr = (W >>> 28 | z << 4) ^ (W << 30 | z >>> 2) ^ (W << 25 | z >>> 7), Ee = (z >>> 28 | W << 4) ^ (z << 30 | W >>> 2) ^ (z << 25 | W >>> 7), Dr = (Y >>> 14 | V << 18) ^ (Y >>> 18 | V << 14) ^ (Y << 23 | V >>> 9), gr = (V >>> 14 | Y << 18) ^ (V >>> 18 | Y << 14) ^ (V << 23 | Y >>> 9), Fe = B[J], br = Fe.high, De = Fe.low, j = u0 + gr, r0 = se + Dr + (j >>> 0 < u0 >>> 0 ? 1 : 0), j = j + Ae, r0 = r0 + mr + (j >>> 0 < Ae >>> 0 ? 1 : 0), j = j + De, r0 = r0 + br + (j >>> 0 < De >>> 0 ? 1 : 0), j = j + Z, r0 = r0 + e0 + (j >>> 0 < Z >>> 0 ? 1 : 0), ge = Ee + Er, yr = Fr + Ar + (ge >>> 0 < Ee >>> 0 ? 1 : 0);
2173
2173
  se = C0, u0 = f0, C0 = p0, f0 = d0, p0 = Y, d0 = V, V = l0 + j | 0, Y = ie + r0 + (V >>> 0 < l0 >>> 0 ? 1 : 0) | 0, ie = c0, l0 = s0, c0 = X, s0 = T, X = W, T = z, z = j + ge | 0, W = r0 + yr + (z >>> 0 < j >>> 0 ? 1 : 0) | 0;
2174
2174
  }
2175
- m = A.low = m + z, A.high = R + W + (m >>> 0 < z >>> 0 ? 1 : 0), w = s.low = w + T, s.high = D + X + (w >>> 0 < T >>> 0 ? 1 : 0), M = x.low = M + s0, x.high = k + c0 + (M >>> 0 < s0 >>> 0 ? 1 : 0), $ = v.low = $ + l0, v.high = O + ie + ($ >>> 0 < l0 >>> 0 ? 1 : 0), K = F.low = K + V, F.high = N + Y + (K >>> 0 < V >>> 0 ? 1 : 0), U = E.low = U + d0, E.high = q + p0 + (U >>> 0 < d0 >>> 0 ? 1 : 0), P = g.low = P + f0, g.high = _ + C0 + (P >>> 0 < f0 >>> 0 ? 1 : 0), S = y.low = S + u0, y.high = I + se + (S >>> 0 < u0 >>> 0 ? 1 : 0);
2175
+ m = A.low = m + z, A.high = R + W + (m >>> 0 < z >>> 0 ? 1 : 0), w = o.low = w + T, o.high = D + X + (w >>> 0 < T >>> 0 ? 1 : 0), M = x.low = M + s0, x.high = k + c0 + (M >>> 0 < s0 >>> 0 ? 1 : 0), $ = v.low = $ + l0, v.high = O + ie + ($ >>> 0 < l0 >>> 0 ? 1 : 0), K = F.low = K + V, F.high = N + Y + (K >>> 0 < V >>> 0 ? 1 : 0), U = E.low = U + d0, E.high = q + p0 + (U >>> 0 < d0 >>> 0 ? 1 : 0), P = g.low = P + f0, g.high = _ + C0 + (P >>> 0 < f0 >>> 0 ? 1 : 0), S = y.low = S + u0, y.high = I + se + (S >>> 0 < u0 >>> 0 ? 1 : 0);
2176
2176
  },
2177
2177
  _doFinalize: function() {
2178
2178
  var d = this._data, C = d.words, h = this._nDataBytes * 8, A = d.sigBytes * 8;
2179
2179
  C[A >>> 5] |= 128 << 24 - A % 32, C[(A + 128 >>> 10 << 5) + 30] = Math.floor(h / 4294967296), C[(A + 128 >>> 10 << 5) + 31] = h, d.sigBytes = C.length * 4, this._process();
2180
- var s = this._hash.toX32();
2181
- return s;
2180
+ var o = this._hash.toX32();
2181
+ return o;
2182
2182
  },
2183
2183
  clone: function() {
2184
2184
  var d = c.clone.call(this);
@@ -2194,11 +2194,11 @@ function dr() {
2194
2194
  var P0 = { exports: {} }, it = P0.exports, Oe;
2195
2195
  function st() {
2196
2196
  return Oe || (Oe = 1, (function(p, r) {
2197
- (function(t, e, o) {
2197
+ (function(t, e, s) {
2198
2198
  p.exports = e(L(), ne(), dr());
2199
2199
  })(it, function(t) {
2200
2200
  return (function() {
2201
- var e = t, o = e.x64, c = o.Word, b = o.WordArray, u = e.algo, f = u.SHA512, a = u.SHA384 = f.extend({
2201
+ var e = t, s = e.x64, c = s.Word, b = s.WordArray, u = e.algo, f = u.SHA512, a = u.SHA384 = f.extend({
2202
2202
  _doReset: function() {
2203
2203
  this._hash = new b.init([
2204
2204
  new c.init(3418070365, 3238371032),
@@ -2224,14 +2224,14 @@ function st() {
2224
2224
  var I0 = { exports: {} }, ot = I0.exports, $e;
2225
2225
  function xt() {
2226
2226
  return $e || ($e = 1, (function(p, r) {
2227
- (function(t, e, o) {
2227
+ (function(t, e, s) {
2228
2228
  p.exports = e(L(), ne());
2229
2229
  })(ot, function(t) {
2230
2230
  return (function(e) {
2231
- var o = t, c = o.lib, b = c.WordArray, u = c.Hasher, f = o.x64, a = f.Word, n = o.algo, B = [], i = [], l = [];
2231
+ var s = t, c = s.lib, b = c.WordArray, u = c.Hasher, f = s.x64, a = f.Word, n = s.algo, B = [], i = [], l = [];
2232
2232
  (function() {
2233
- for (var h = 1, A = 0, s = 0; s < 24; s++) {
2234
- B[h + 5 * A] = (s + 1) * (s + 2) / 2 % 64;
2233
+ for (var h = 1, A = 0, o = 0; o < 24; o++) {
2234
+ B[h + 5 * A] = (o + 1) * (o + 2) / 2 % 64;
2235
2235
  var x = A % 5, v = (2 * h + 3 * A) % 5;
2236
2236
  h = x, A = v;
2237
2237
  }
@@ -2272,16 +2272,16 @@ function xt() {
2272
2272
  this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
2273
2273
  },
2274
2274
  _doProcessBlock: function(h, A) {
2275
- for (var s = this._state, x = this.blockSize / 2, v = 0; v < x; v++) {
2275
+ for (var o = this._state, x = this.blockSize / 2, v = 0; v < x; v++) {
2276
2276
  var F = h[A + 2 * v], E = h[A + 2 * v + 1];
2277
2277
  F = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360, E = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360;
2278
- var g = s[v];
2278
+ var g = o[v];
2279
2279
  g.high ^= E, g.low ^= F;
2280
2280
  }
2281
2281
  for (var y = 0; y < 24; y++) {
2282
2282
  for (var R = 0; R < 5; R++) {
2283
2283
  for (var m = 0, D = 0, w = 0; w < 5; w++) {
2284
- var g = s[R + 5 * w];
2284
+ var g = o[R + 5 * w];
2285
2285
  m ^= g.high, D ^= g.low;
2286
2286
  }
2287
2287
  var k = d[R];
@@ -2289,31 +2289,31 @@ function xt() {
2289
2289
  }
2290
2290
  for (var R = 0; R < 5; R++)
2291
2291
  for (var M = d[(R + 4) % 5], O = d[(R + 1) % 5], $ = O.high, N = O.low, m = M.high ^ ($ << 1 | N >>> 31), D = M.low ^ (N << 1 | $ >>> 31), w = 0; w < 5; w++) {
2292
- var g = s[R + 5 * w];
2292
+ var g = o[R + 5 * w];
2293
2293
  g.high ^= m, g.low ^= D;
2294
2294
  }
2295
2295
  for (var K = 1; K < 25; K++) {
2296
- var m, D, g = s[K], q = g.high, U = g.low, _ = B[K];
2296
+ var m, D, g = o[K], q = g.high, U = g.low, _ = B[K];
2297
2297
  _ < 32 ? (m = q << _ | U >>> 32 - _, D = U << _ | q >>> 32 - _) : (m = U << _ - 32 | q >>> 64 - _, D = q << _ - 32 | U >>> 64 - _);
2298
2298
  var P = d[i[K]];
2299
2299
  P.high = m, P.low = D;
2300
2300
  }
2301
- var I = d[0], S = s[0];
2301
+ var I = d[0], S = o[0];
2302
2302
  I.high = S.high, I.low = S.low;
2303
2303
  for (var R = 0; R < 5; R++)
2304
2304
  for (var w = 0; w < 5; w++) {
2305
- var K = R + 5 * w, g = s[K], W = d[K], z = d[(R + 1) % 5 + 5 * w], X = d[(R + 2) % 5 + 5 * w];
2305
+ var K = R + 5 * w, g = o[K], W = d[K], z = d[(R + 1) % 5 + 5 * w], X = d[(R + 2) % 5 + 5 * w];
2306
2306
  g.high = W.high ^ ~z.high & X.high, g.low = W.low ^ ~z.low & X.low;
2307
2307
  }
2308
- var g = s[0], T = l[y];
2308
+ var g = o[0], T = l[y];
2309
2309
  g.high ^= T.high, g.low ^= T.low;
2310
2310
  }
2311
2311
  },
2312
2312
  _doFinalize: function() {
2313
2313
  var h = this._data, A = h.words;
2314
2314
  this._nDataBytes * 8;
2315
- var s = h.sigBytes * 8, x = this.blockSize * 32;
2316
- A[s >>> 5] |= 1 << 24 - s % 32, A[(e.ceil((s + 1) / x) * x >>> 5) - 1] |= 128, h.sigBytes = A.length * 4, this._process();
2315
+ var o = h.sigBytes * 8, x = this.blockSize * 32;
2316
+ A[o >>> 5] |= 1 << 24 - o % 32, A[(e.ceil((o + 1) / x) * x >>> 5) - 1] |= 128, h.sigBytes = A.length * 4, this._process();
2317
2317
  for (var v = this._state, F = this.cfg.outputLength / 8, E = F / 8, g = [], y = 0; y < E; y++) {
2318
2318
  var R = v[y], m = R.high, D = R.low;
2319
2319
  m = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360, D = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360, g.push(D), g.push(m);
@@ -2321,12 +2321,12 @@ function xt() {
2321
2321
  return new b.init(g, F);
2322
2322
  },
2323
2323
  clone: function() {
2324
- for (var h = u.clone.call(this), A = h._state = this._state.slice(0), s = 0; s < 25; s++)
2325
- A[s] = A[s].clone();
2324
+ for (var h = u.clone.call(this), A = h._state = this._state.slice(0), o = 0; o < 25; o++)
2325
+ A[o] = A[o].clone();
2326
2326
  return h;
2327
2327
  }
2328
2328
  });
2329
- o.SHA3 = u._createHelper(C), o.HmacSHA3 = u._createHmacHelper(C);
2329
+ s.SHA3 = u._createHelper(C), s.HmacSHA3 = u._createHmacHelper(C);
2330
2330
  })(Math), t.SHA3;
2331
2331
  });
2332
2332
  })(I0)), I0.exports;
@@ -2348,7 +2348,7 @@ function lt() {
2348
2348
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2349
2349
  */
2350
2350
  return (function(e) {
2351
- var o = t, c = o.lib, b = c.WordArray, u = c.Hasher, f = o.algo, a = b.create([
2351
+ var s = t, c = s.lib, b = c.WordArray, u = c.Hasher, f = s.algo, a = b.create([
2352
2352
  0,
2353
2353
  1,
2354
2354
  2,
@@ -2684,7 +2684,7 @@ function lt() {
2684
2684
  var D = this._hash.words, w = l.words, k = d.words, M = a.words, O = n.words, $ = B.words, N = i.words, K, q, U, _, P, I, S, W, z, X;
2685
2685
  I = K = D[0], S = q = D[1], W = U = D[2], z = _ = D[3], X = P = D[4];
2686
2686
  for (var T, y = 0; y < 80; y += 1)
2687
- T = K + E[g + M[y]] | 0, y < 16 ? T += h(q, U, _) + w[0] : y < 32 ? T += A(q, U, _) + w[1] : y < 48 ? T += s(q, U, _) + w[2] : y < 64 ? T += x(q, U, _) + w[3] : T += v(q, U, _) + w[4], T = T | 0, T = F(T, $[y]), T = T + P | 0, K = P, P = _, _ = F(U, 10), U = q, q = T, T = I + E[g + O[y]] | 0, y < 16 ? T += v(S, W, z) + k[0] : y < 32 ? T += x(S, W, z) + k[1] : y < 48 ? T += s(S, W, z) + k[2] : y < 64 ? T += A(S, W, z) + k[3] : T += h(S, W, z) + k[4], T = T | 0, T = F(T, N[y]), T = T + X | 0, I = X, X = z, z = F(W, 10), W = S, S = T;
2687
+ T = K + E[g + M[y]] | 0, y < 16 ? T += h(q, U, _) + w[0] : y < 32 ? T += A(q, U, _) + w[1] : y < 48 ? T += o(q, U, _) + w[2] : y < 64 ? T += x(q, U, _) + w[3] : T += v(q, U, _) + w[4], T = T | 0, T = F(T, $[y]), T = T + P | 0, K = P, P = _, _ = F(U, 10), U = q, q = T, T = I + E[g + O[y]] | 0, y < 16 ? T += v(S, W, z) + k[0] : y < 32 ? T += x(S, W, z) + k[1] : y < 48 ? T += o(S, W, z) + k[2] : y < 64 ? T += A(S, W, z) + k[3] : T += h(S, W, z) + k[4], T = T | 0, T = F(T, N[y]), T = T + X | 0, I = X, X = z, z = F(W, 10), W = S, S = T;
2688
2688
  T = D[1] + U + z | 0, D[1] = D[2] + _ + X | 0, D[2] = D[3] + P + I | 0, D[3] = D[4] + K + S | 0, D[4] = D[0] + q + W | 0, D[0] = T;
2689
2689
  },
2690
2690
  _doFinalize: function() {
@@ -2707,7 +2707,7 @@ function lt() {
2707
2707
  function A(E, g, y) {
2708
2708
  return E & g | ~E & y;
2709
2709
  }
2710
- function s(E, g, y) {
2710
+ function o(E, g, y) {
2711
2711
  return (E | ~g) ^ y;
2712
2712
  }
2713
2713
  function x(E, g, y) {
@@ -2719,7 +2719,7 @@ function lt() {
2719
2719
  function F(E, g) {
2720
2720
  return E << g | E >>> 32 - g;
2721
2721
  }
2722
- o.RIPEMD160 = u._createHelper(C), o.HmacRIPEMD160 = u._createHmacHelper(C);
2722
+ s.RIPEMD160 = u._createHelper(C), s.HmacRIPEMD160 = u._createHmacHelper(C);
2723
2723
  })(), t.RIPEMD160;
2724
2724
  });
2725
2725
  })(R0)), R0.exports;
@@ -2731,7 +2731,7 @@ function fe() {
2731
2731
  p.exports = e(L());
2732
2732
  })(dt, function(t) {
2733
2733
  (function() {
2734
- var e = t, o = e.lib, c = o.Base, b = e.enc, u = b.Utf8, f = e.algo;
2734
+ var e = t, s = e.lib, c = s.Base, b = e.enc, u = b.Utf8, f = e.algo;
2735
2735
  f.HMAC = c.extend({
2736
2736
  /**
2737
2737
  * Initializes a newly created HMAC.
@@ -2805,11 +2805,11 @@ function fe() {
2805
2805
  var M0 = { exports: {} }, ft = M0.exports, Ke;
2806
2806
  function ut() {
2807
2807
  return Ke || (Ke = 1, (function(p, r) {
2808
- (function(t, e, o) {
2808
+ (function(t, e, s) {
2809
2809
  p.exports = e(L(), de(), fe());
2810
2810
  })(ft, function(t) {
2811
2811
  return (function() {
2812
- var e = t, o = e.lib, c = o.Base, b = o.WordArray, u = e.algo, f = u.SHA256, a = u.HMAC, n = u.PBKDF2 = c.extend({
2812
+ var e = t, s = e.lib, c = s.Base, b = s.WordArray, u = e.algo, f = u.SHA256, a = u.HMAC, n = u.PBKDF2 = c.extend({
2813
2813
  /**
2814
2814
  * Configuration options.
2815
2815
  *
@@ -2849,7 +2849,7 @@ function ut() {
2849
2849
  * var key = kdf.compute(password, salt);
2850
2850
  */
2851
2851
  compute: function(B, i) {
2852
- for (var l = this.cfg, d = a.create(l.hasher, B), C = b.create(), h = b.create([1]), A = C.words, s = h.words, x = l.keySize, v = l.iterations; A.length < x; ) {
2852
+ for (var l = this.cfg, d = a.create(l.hasher, B), C = b.create(), h = b.create([1]), A = C.words, o = h.words, x = l.keySize, v = l.iterations; A.length < x; ) {
2853
2853
  var F = d.update(i).finalize(h);
2854
2854
  d.reset();
2855
2855
  for (var E = F.words, g = E.length, y = F, R = 1; R < v; R++) {
@@ -2857,7 +2857,7 @@ function ut() {
2857
2857
  for (var m = y.words, D = 0; D < g; D++)
2858
2858
  E[D] ^= m[D];
2859
2859
  }
2860
- C.concat(F), s[0]++;
2860
+ C.concat(F), o[0]++;
2861
2861
  }
2862
2862
  return C.sigBytes = x * 4, C;
2863
2863
  }
@@ -2872,11 +2872,11 @@ function ut() {
2872
2872
  var O0 = { exports: {} }, ht = O0.exports, Ue;
2873
2873
  function a0() {
2874
2874
  return Ue || (Ue = 1, (function(p, r) {
2875
- (function(t, e, o) {
2875
+ (function(t, e, s) {
2876
2876
  p.exports = e(L(), lr(), fe());
2877
2877
  })(ht, function(t) {
2878
2878
  return (function() {
2879
- var e = t, o = e.lib, c = o.Base, b = o.WordArray, u = e.algo, f = u.MD5, a = u.EvpKDF = c.extend({
2879
+ var e = t, s = e.lib, c = s.Base, b = s.WordArray, u = e.algo, f = u.MD5, a = u.EvpKDF = c.extend({
2880
2880
  /**
2881
2881
  * Configuration options.
2882
2882
  *
@@ -2916,9 +2916,9 @@ function a0() {
2916
2916
  * var key = kdf.compute(password, salt);
2917
2917
  */
2918
2918
  compute: function(n, B) {
2919
- for (var i, l = this.cfg, d = l.hasher.create(), C = b.create(), h = C.words, A = l.keySize, s = l.iterations; h.length < A; ) {
2919
+ for (var i, l = this.cfg, d = l.hasher.create(), C = b.create(), h = C.words, A = l.keySize, o = l.iterations; h.length < A; ) {
2920
2920
  i && d.update(i), i = d.update(n).finalize(B), d.reset();
2921
- for (var x = 1; x < s; x++)
2921
+ for (var x = 1; x < o; x++)
2922
2922
  i = d.finalize(i), d.reset();
2923
2923
  C.concat(i);
2924
2924
  }
@@ -2935,13 +2935,13 @@ function a0() {
2935
2935
  var $0 = { exports: {} }, vt = $0.exports, qe;
2936
2936
  function Q() {
2937
2937
  return qe || (qe = 1, (function(p, r) {
2938
- (function(t, e, o) {
2938
+ (function(t, e, s) {
2939
2939
  p.exports = e(L(), a0());
2940
2940
  })(vt, function(t) {
2941
2941
  t.lib.Cipher || (function(e) {
2942
- var o = t, c = o.lib, b = c.Base, u = c.WordArray, f = c.BufferedBlockAlgorithm, a = o.enc;
2942
+ var s = t, c = s.lib, b = c.Base, u = c.WordArray, f = c.BufferedBlockAlgorithm, a = s.enc;
2943
2943
  a.Utf8;
2944
- var n = a.Base64, B = o.algo, i = B.EvpKDF, l = c.Cipher = f.extend({
2944
+ var n = a.Base64, B = s.algo, i = B.EvpKDF, l = c.Cipher = f.extend({
2945
2945
  /**
2946
2946
  * Configuration options.
2947
2947
  *
@@ -3080,7 +3080,7 @@ function Q() {
3080
3080
  },
3081
3081
  blockSize: 1
3082
3082
  });
3083
- var d = o.mode = {}, C = c.BlockCipherMode = b.extend({
3083
+ var d = s.mode = {}, C = c.BlockCipherMode = b.extend({
3084
3084
  /**
3085
3085
  * Creates this mode for encryption.
3086
3086
  *
@@ -3164,7 +3164,7 @@ function Q() {
3164
3164
  w[k + N] ^= O[N];
3165
3165
  }
3166
3166
  return m;
3167
- })(), A = o.pad = {}, s = A.Pkcs7 = {
3167
+ })(), A = s.pad = {}, o = A.Pkcs7 = {
3168
3168
  /**
3169
3169
  * Pads data using the algorithm defined in PKCS #5/7.
3170
3170
  *
@@ -3208,7 +3208,7 @@ function Q() {
3208
3208
  */
3209
3209
  cfg: l.cfg.extend({
3210
3210
  mode: h,
3211
- padding: s
3211
+ padding: o
3212
3212
  }),
3213
3213
  reset: function() {
3214
3214
  var m;
@@ -3266,7 +3266,7 @@ function Q() {
3266
3266
  toString: function(m) {
3267
3267
  return (m || this.formatter).stringify(this);
3268
3268
  }
3269
- }), v = o.format = {}, F = v.OpenSSL = {
3269
+ }), v = s.format = {}, F = v.OpenSSL = {
3270
3270
  /**
3271
3271
  * Converts a cipher params object to an OpenSSL-compatible string.
3272
3272
  *
@@ -3382,7 +3382,7 @@ function Q() {
3382
3382
  _parse: function(m, D) {
3383
3383
  return typeof m == "string" ? D.parse(m, this) : m;
3384
3384
  }
3385
- }), g = o.kdf = {}, y = g.OpenSSL = {
3385
+ }), g = s.kdf = {}, y = g.OpenSSL = {
3386
3386
  /**
3387
3387
  * Derives a key and IV from a password.
3388
3388
  *
@@ -3473,7 +3473,7 @@ function Q() {
3473
3473
  var T0 = { exports: {} }, pt = T0.exports, ze;
3474
3474
  function Ct() {
3475
3475
  return ze || (ze = 1, (function(p, r) {
3476
- (function(t, e, o) {
3476
+ (function(t, e, s) {
3477
3477
  p.exports = e(L(), Q());
3478
3478
  })(pt, function(t) {
3479
3479
  return t.mode.CFB = (function() {
@@ -3481,15 +3481,15 @@ function Ct() {
3481
3481
  e.Encryptor = e.extend({
3482
3482
  processBlock: function(c, b) {
3483
3483
  var u = this._cipher, f = u.blockSize;
3484
- o.call(this, c, b, f, u), this._prevBlock = c.slice(b, b + f);
3484
+ s.call(this, c, b, f, u), this._prevBlock = c.slice(b, b + f);
3485
3485
  }
3486
3486
  }), e.Decryptor = e.extend({
3487
3487
  processBlock: function(c, b) {
3488
3488
  var u = this._cipher, f = u.blockSize, a = c.slice(b, b + f);
3489
- o.call(this, c, b, f, u), this._prevBlock = a;
3489
+ s.call(this, c, b, f, u), this._prevBlock = a;
3490
3490
  }
3491
3491
  });
3492
- function o(c, b, u, f) {
3492
+ function s(c, b, u, f) {
3493
3493
  var a, n = this._iv;
3494
3494
  n ? (a = n.slice(0), this._iv = void 0) : a = this._prevBlock, f.encryptBlock(a, 0);
3495
3495
  for (var B = 0; B < u; B++)
@@ -3503,11 +3503,11 @@ function Ct() {
3503
3503
  var L0 = { exports: {} }, Bt = L0.exports, Ne;
3504
3504
  function mt() {
3505
3505
  return Ne || (Ne = 1, (function(p, r) {
3506
- (function(t, e, o) {
3506
+ (function(t, e, s) {
3507
3507
  p.exports = e(L(), Q());
3508
3508
  })(Bt, function(t) {
3509
3509
  return t.mode.CTR = (function() {
3510
- var e = t.lib.BlockCipherMode.extend(), o = e.Encryptor = e.extend({
3510
+ var e = t.lib.BlockCipherMode.extend(), s = e.Encryptor = e.extend({
3511
3511
  processBlock: function(c, b) {
3512
3512
  var u = this._cipher, f = u.blockSize, a = this._iv, n = this._counter;
3513
3513
  a && (n = this._counter = a.slice(0), this._iv = void 0);
@@ -3517,7 +3517,7 @@ function mt() {
3517
3517
  c[b + i] ^= B[i];
3518
3518
  }
3519
3519
  });
3520
- return e.Decryptor = o, e;
3520
+ return e.Decryptor = s, e;
3521
3521
  })(), t.mode.CTR;
3522
3522
  });
3523
3523
  })(L0)), L0.exports;
@@ -3525,7 +3525,7 @@ function mt() {
3525
3525
  var K0 = { exports: {} }, At = K0.exports, We;
3526
3526
  function Et() {
3527
3527
  return We || (We = 1, (function(p, r) {
3528
- (function(t, e, o) {
3528
+ (function(t, e, s) {
3529
3529
  p.exports = e(L(), Q());
3530
3530
  })(At, function(t) {
3531
3531
  /** @preserve
@@ -3535,7 +3535,7 @@ function Et() {
3535
3535
  */
3536
3536
  return t.mode.CTRGladman = (function() {
3537
3537
  var e = t.lib.BlockCipherMode.extend();
3538
- function o(u) {
3538
+ function s(u) {
3539
3539
  if ((u >> 24 & 255) === 255) {
3540
3540
  var f = u >> 16 & 255, a = u >> 8 & 255, n = u & 255;
3541
3541
  f === 255 ? (f = 0, a === 255 ? (a = 0, n === 255 ? n = 0 : ++n) : ++a) : ++f, u = 0, u += f << 16, u += a << 8, u += n;
@@ -3544,7 +3544,7 @@ function Et() {
3544
3544
  return u;
3545
3545
  }
3546
3546
  function c(u) {
3547
- return (u[0] = o(u[0])) === 0 && (u[1] = o(u[1])), u;
3547
+ return (u[0] = s(u[0])) === 0 && (u[1] = s(u[1])), u;
3548
3548
  }
3549
3549
  var b = e.Encryptor = e.extend({
3550
3550
  processBlock: function(u, f) {
@@ -3564,11 +3564,11 @@ function Et() {
3564
3564
  var U0 = { exports: {} }, Ft = U0.exports, Ge;
3565
3565
  function Dt() {
3566
3566
  return Ge || (Ge = 1, (function(p, r) {
3567
- (function(t, e, o) {
3567
+ (function(t, e, s) {
3568
3568
  p.exports = e(L(), Q());
3569
3569
  })(Ft, function(t) {
3570
3570
  return t.mode.OFB = (function() {
3571
- var e = t.lib.BlockCipherMode.extend(), o = e.Encryptor = e.extend({
3571
+ var e = t.lib.BlockCipherMode.extend(), s = e.Encryptor = e.extend({
3572
3572
  processBlock: function(c, b) {
3573
3573
  var u = this._cipher, f = u.blockSize, a = this._iv, n = this._keystream;
3574
3574
  a && (n = this._keystream = a.slice(0), this._iv = void 0), u.encryptBlock(n, 0);
@@ -3576,7 +3576,7 @@ function Dt() {
3576
3576
  c[b + B] ^= n[B];
3577
3577
  }
3578
3578
  });
3579
- return e.Decryptor = o, e;
3579
+ return e.Decryptor = s, e;
3580
3580
  })(), t.mode.OFB;
3581
3581
  });
3582
3582
  })(U0)), U0.exports;
@@ -3584,18 +3584,18 @@ function Dt() {
3584
3584
  var q0 = { exports: {} }, gt = q0.exports, Qe;
3585
3585
  function bt() {
3586
3586
  return Qe || (Qe = 1, (function(p, r) {
3587
- (function(t, e, o) {
3587
+ (function(t, e, s) {
3588
3588
  p.exports = e(L(), Q());
3589
3589
  })(gt, function(t) {
3590
3590
  return t.mode.ECB = (function() {
3591
3591
  var e = t.lib.BlockCipherMode.extend();
3592
3592
  return e.Encryptor = e.extend({
3593
- processBlock: function(o, c) {
3594
- this._cipher.encryptBlock(o, c);
3593
+ processBlock: function(s, c) {
3594
+ this._cipher.encryptBlock(s, c);
3595
3595
  }
3596
3596
  }), e.Decryptor = e.extend({
3597
- processBlock: function(o, c) {
3598
- this._cipher.decryptBlock(o, c);
3597
+ processBlock: function(s, c) {
3598
+ this._cipher.decryptBlock(s, c);
3599
3599
  }
3600
3600
  }), e;
3601
3601
  })(), t.mode.ECB;
@@ -3605,17 +3605,17 @@ function bt() {
3605
3605
  var z0 = { exports: {} }, yt = z0.exports, Xe;
3606
3606
  function _t() {
3607
3607
  return Xe || (Xe = 1, (function(p, r) {
3608
- (function(t, e, o) {
3608
+ (function(t, e, s) {
3609
3609
  p.exports = e(L(), Q());
3610
3610
  })(yt, function(t) {
3611
3611
  return t.pad.AnsiX923 = {
3612
- pad: function(e, o) {
3613
- var c = e.sigBytes, b = o * 4, u = b - c % b, f = c + u - 1;
3612
+ pad: function(e, s) {
3613
+ var c = e.sigBytes, b = s * 4, u = b - c % b, f = c + u - 1;
3614
3614
  e.clamp(), e.words[f >>> 2] |= u << 24 - f % 4 * 8, e.sigBytes += u;
3615
3615
  },
3616
3616
  unpad: function(e) {
3617
- var o = e.words[e.sigBytes - 1 >>> 2] & 255;
3618
- e.sigBytes -= o;
3617
+ var s = e.words[e.sigBytes - 1 >>> 2] & 255;
3618
+ e.sigBytes -= s;
3619
3619
  }
3620
3620
  }, t.pad.Ansix923;
3621
3621
  });
@@ -3624,17 +3624,17 @@ function _t() {
3624
3624
  var N0 = { exports: {} }, wt = N0.exports, Ve;
3625
3625
  function kt() {
3626
3626
  return Ve || (Ve = 1, (function(p, r) {
3627
- (function(t, e, o) {
3627
+ (function(t, e, s) {
3628
3628
  p.exports = e(L(), Q());
3629
3629
  })(wt, function(t) {
3630
3630
  return t.pad.Iso10126 = {
3631
- pad: function(e, o) {
3632
- var c = o * 4, b = c - e.sigBytes % c;
3631
+ pad: function(e, s) {
3632
+ var c = s * 4, b = c - e.sigBytes % c;
3633
3633
  e.concat(t.lib.WordArray.random(b - 1)).concat(t.lib.WordArray.create([b << 24], 1));
3634
3634
  },
3635
3635
  unpad: function(e) {
3636
- var o = e.words[e.sigBytes - 1 >>> 2] & 255;
3637
- e.sigBytes -= o;
3636
+ var s = e.words[e.sigBytes - 1 >>> 2] & 255;
3637
+ e.sigBytes -= s;
3638
3638
  }
3639
3639
  }, t.pad.Iso10126;
3640
3640
  });
@@ -3643,12 +3643,12 @@ function kt() {
3643
3643
  var W0 = { exports: {} }, St = W0.exports, je;
3644
3644
  function Pt() {
3645
3645
  return je || (je = 1, (function(p, r) {
3646
- (function(t, e, o) {
3646
+ (function(t, e, s) {
3647
3647
  p.exports = e(L(), Q());
3648
3648
  })(St, function(t) {
3649
3649
  return t.pad.Iso97971 = {
3650
- pad: function(e, o) {
3651
- e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, o);
3650
+ pad: function(e, s) {
3651
+ e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, s);
3652
3652
  },
3653
3653
  unpad: function(e) {
3654
3654
  t.pad.ZeroPadding.unpad(e), e.sigBytes--;
@@ -3660,17 +3660,17 @@ function Pt() {
3660
3660
  var G0 = { exports: {} }, It = G0.exports, Ze;
3661
3661
  function Rt() {
3662
3662
  return Ze || (Ze = 1, (function(p, r) {
3663
- (function(t, e, o) {
3663
+ (function(t, e, s) {
3664
3664
  p.exports = e(L(), Q());
3665
3665
  })(It, function(t) {
3666
3666
  return t.pad.ZeroPadding = {
3667
- pad: function(e, o) {
3668
- var c = o * 4;
3667
+ pad: function(e, s) {
3668
+ var c = s * 4;
3669
3669
  e.clamp(), e.sigBytes += c - (e.sigBytes % c || c);
3670
3670
  },
3671
3671
  unpad: function(e) {
3672
- for (var o = e.words, c = e.sigBytes - 1, c = e.sigBytes - 1; c >= 0; c--)
3673
- if (o[c >>> 2] >>> 24 - c % 4 * 8 & 255) {
3672
+ for (var s = e.words, c = e.sigBytes - 1, c = e.sigBytes - 1; c >= 0; c--)
3673
+ if (s[c >>> 2] >>> 24 - c % 4 * 8 & 255) {
3674
3674
  e.sigBytes = c + 1;
3675
3675
  break;
3676
3676
  }
@@ -3682,7 +3682,7 @@ function Rt() {
3682
3682
  var Q0 = { exports: {} }, Ht = Q0.exports, Ye;
3683
3683
  function Mt() {
3684
3684
  return Ye || (Ye = 1, (function(p, r) {
3685
- (function(t, e, o) {
3685
+ (function(t, e, s) {
3686
3686
  p.exports = e(L(), Q());
3687
3687
  })(Ht, function(t) {
3688
3688
  return t.pad.NoPadding = {
@@ -3697,11 +3697,11 @@ function Mt() {
3697
3697
  var X0 = { exports: {} }, Ot = X0.exports, Je;
3698
3698
  function $t() {
3699
3699
  return Je || (Je = 1, (function(p, r) {
3700
- (function(t, e, o) {
3700
+ (function(t, e, s) {
3701
3701
  p.exports = e(L(), Q());
3702
3702
  })(Ot, function(t) {
3703
3703
  return (function(e) {
3704
- var o = t, c = o.lib, b = c.CipherParams, u = o.enc, f = u.Hex, a = o.format;
3704
+ var s = t, c = s.lib, b = c.CipherParams, u = s.enc, f = u.Hex, a = s.format;
3705
3705
  a.Hex = {
3706
3706
  /**
3707
3707
  * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
@@ -3744,11 +3744,11 @@ function $t() {
3744
3744
  var V0 = { exports: {} }, Tt = V0.exports, er;
3745
3745
  function Lt() {
3746
3746
  return er || (er = 1, (function(p, r) {
3747
- (function(t, e, o) {
3747
+ (function(t, e, s) {
3748
3748
  p.exports = e(L(), n0(), i0(), a0(), Q());
3749
3749
  })(Tt, function(t) {
3750
3750
  return (function() {
3751
- var e = t, o = e.lib, c = o.BlockCipher, b = e.algo, u = [], f = [], a = [], n = [], B = [], i = [], l = [], d = [], C = [], h = [];
3751
+ var e = t, s = e.lib, c = s.BlockCipher, b = e.algo, u = [], f = [], a = [], n = [], B = [], i = [], l = [], d = [], C = [], h = [];
3752
3752
  (function() {
3753
3753
  for (var x = [], v = 0; v < 256; v++)
3754
3754
  v < 128 ? x[v] = v << 1 : x[v] = v << 1 ^ 283;
@@ -3761,7 +3761,7 @@ function Lt() {
3761
3761
  l[g] = D << 24 | D >>> 8, d[g] = D << 16 | D >>> 16, C[g] = D << 8 | D >>> 24, h[g] = D, F ? (F = y ^ x[x[x[m ^ y]]], E ^= x[x[E]]) : F = E = 1;
3762
3762
  }
3763
3763
  })();
3764
- var A = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], s = b.AES = c.extend({
3764
+ var A = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], o = b.AES = c.extend({
3765
3765
  _doReset: function() {
3766
3766
  var x;
3767
3767
  if (!(this._nRounds && this._keyPriorReset === this._key)) {
@@ -3796,7 +3796,7 @@ function Lt() {
3796
3796
  },
3797
3797
  keySize: 256 / 32
3798
3798
  });
3799
- e.AES = c._createHelper(s);
3799
+ e.AES = c._createHelper(o);
3800
3800
  })(), t.AES;
3801
3801
  });
3802
3802
  })(V0)), V0.exports;
@@ -3804,11 +3804,11 @@ function Lt() {
3804
3804
  var j0 = { exports: {} }, Kt = j0.exports, rr;
3805
3805
  function Ut() {
3806
3806
  return rr || (rr = 1, (function(p, r) {
3807
- (function(t, e, o) {
3807
+ (function(t, e, s) {
3808
3808
  p.exports = e(L(), n0(), i0(), a0(), Q());
3809
3809
  })(Kt, function(t) {
3810
3810
  return (function() {
3811
- var e = t, o = e.lib, c = o.WordArray, b = o.BlockCipher, u = e.algo, f = [
3811
+ var e = t, s = e.lib, c = s.WordArray, b = s.BlockCipher, u = e.algo, f = [
3812
3812
  57,
3813
3813
  49,
3814
3814
  41,
@@ -4454,9 +4454,9 @@ function Ut() {
4454
4454
  2147483679
4455
4455
  ], l = u.DES = b.extend({
4456
4456
  _doReset: function() {
4457
- for (var A = this._key, s = A.words, x = [], v = 0; v < 56; v++) {
4457
+ for (var A = this._key, o = A.words, x = [], v = 0; v < 56; v++) {
4458
4458
  var F = f[v] - 1;
4459
- x[v] = s[F >>> 5] >>> 31 - F % 32 & 1;
4459
+ x[v] = o[F >>> 5] >>> 31 - F % 32 & 1;
4460
4460
  }
4461
4461
  for (var E = this._subKeys = [], g = 0; g < 16; g++) {
4462
4462
  for (var y = E[g] = [], R = n[g], v = 0; v < 24; v++)
@@ -4469,48 +4469,48 @@ function Ut() {
4469
4469
  for (var m = this._invSubKeys = [], v = 0; v < 16; v++)
4470
4470
  m[v] = E[15 - v];
4471
4471
  },
4472
- encryptBlock: function(A, s) {
4473
- this._doCryptBlock(A, s, this._subKeys);
4472
+ encryptBlock: function(A, o) {
4473
+ this._doCryptBlock(A, o, this._subKeys);
4474
4474
  },
4475
- decryptBlock: function(A, s) {
4476
- this._doCryptBlock(A, s, this._invSubKeys);
4475
+ decryptBlock: function(A, o) {
4476
+ this._doCryptBlock(A, o, this._invSubKeys);
4477
4477
  },
4478
- _doCryptBlock: function(A, s, x) {
4479
- this._lBlock = A[s], this._rBlock = A[s + 1], d.call(this, 4, 252645135), d.call(this, 16, 65535), C.call(this, 2, 858993459), C.call(this, 8, 16711935), d.call(this, 1, 1431655765);
4478
+ _doCryptBlock: function(A, o, x) {
4479
+ this._lBlock = A[o], this._rBlock = A[o + 1], d.call(this, 4, 252645135), d.call(this, 16, 65535), C.call(this, 2, 858993459), C.call(this, 8, 16711935), d.call(this, 1, 1431655765);
4480
4480
  for (var v = 0; v < 16; v++) {
4481
4481
  for (var F = x[v], E = this._lBlock, g = this._rBlock, y = 0, R = 0; R < 8; R++)
4482
4482
  y |= B[R][((g ^ F[R]) & i[R]) >>> 0];
4483
4483
  this._lBlock = g, this._rBlock = E ^ y;
4484
4484
  }
4485
4485
  var m = this._lBlock;
4486
- this._lBlock = this._rBlock, this._rBlock = m, d.call(this, 1, 1431655765), C.call(this, 8, 16711935), C.call(this, 2, 858993459), d.call(this, 16, 65535), d.call(this, 4, 252645135), A[s] = this._lBlock, A[s + 1] = this._rBlock;
4486
+ this._lBlock = this._rBlock, this._rBlock = m, d.call(this, 1, 1431655765), C.call(this, 8, 16711935), C.call(this, 2, 858993459), d.call(this, 16, 65535), d.call(this, 4, 252645135), A[o] = this._lBlock, A[o + 1] = this._rBlock;
4487
4487
  },
4488
4488
  keySize: 64 / 32,
4489
4489
  ivSize: 64 / 32,
4490
4490
  blockSize: 64 / 32
4491
4491
  });
4492
- function d(A, s) {
4493
- var x = (this._lBlock >>> A ^ this._rBlock) & s;
4492
+ function d(A, o) {
4493
+ var x = (this._lBlock >>> A ^ this._rBlock) & o;
4494
4494
  this._rBlock ^= x, this._lBlock ^= x << A;
4495
4495
  }
4496
- function C(A, s) {
4497
- var x = (this._rBlock >>> A ^ this._lBlock) & s;
4496
+ function C(A, o) {
4497
+ var x = (this._rBlock >>> A ^ this._lBlock) & o;
4498
4498
  this._lBlock ^= x, this._rBlock ^= x << A;
4499
4499
  }
4500
4500
  e.DES = b._createHelper(l);
4501
4501
  var h = u.TripleDES = b.extend({
4502
4502
  _doReset: function() {
4503
- var A = this._key, s = A.words;
4504
- if (s.length !== 2 && s.length !== 4 && s.length < 6)
4503
+ var A = this._key, o = A.words;
4504
+ if (o.length !== 2 && o.length !== 4 && o.length < 6)
4505
4505
  throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
4506
- var x = s.slice(0, 2), v = s.length < 4 ? s.slice(0, 2) : s.slice(2, 4), F = s.length < 6 ? s.slice(0, 2) : s.slice(4, 6);
4506
+ var x = o.slice(0, 2), v = o.length < 4 ? o.slice(0, 2) : o.slice(2, 4), F = o.length < 6 ? o.slice(0, 2) : o.slice(4, 6);
4507
4507
  this._des1 = l.createEncryptor(c.create(x)), this._des2 = l.createEncryptor(c.create(v)), this._des3 = l.createEncryptor(c.create(F));
4508
4508
  },
4509
- encryptBlock: function(A, s) {
4510
- this._des1.encryptBlock(A, s), this._des2.decryptBlock(A, s), this._des3.encryptBlock(A, s);
4509
+ encryptBlock: function(A, o) {
4510
+ this._des1.encryptBlock(A, o), this._des2.decryptBlock(A, o), this._des3.encryptBlock(A, o);
4511
4511
  },
4512
- decryptBlock: function(A, s) {
4513
- this._des3.decryptBlock(A, s), this._des2.encryptBlock(A, s), this._des1.decryptBlock(A, s);
4512
+ decryptBlock: function(A, o) {
4513
+ this._des3.decryptBlock(A, o), this._des2.encryptBlock(A, o), this._des1.decryptBlock(A, o);
4514
4514
  },
4515
4515
  keySize: 192 / 32,
4516
4516
  ivSize: 64 / 32,
@@ -4524,19 +4524,19 @@ function Ut() {
4524
4524
  var Z0 = { exports: {} }, qt = Z0.exports, tr;
4525
4525
  function zt() {
4526
4526
  return tr || (tr = 1, (function(p, r) {
4527
- (function(t, e, o) {
4527
+ (function(t, e, s) {
4528
4528
  p.exports = e(L(), n0(), i0(), a0(), Q());
4529
4529
  })(qt, function(t) {
4530
4530
  return (function() {
4531
- var e = t, o = e.lib, c = o.StreamCipher, b = e.algo, u = b.RC4 = c.extend({
4531
+ var e = t, s = e.lib, c = s.StreamCipher, b = e.algo, u = b.RC4 = c.extend({
4532
4532
  _doReset: function() {
4533
4533
  for (var n = this._key, B = n.words, i = n.sigBytes, l = this._S = [], d = 0; d < 256; d++)
4534
4534
  l[d] = d;
4535
4535
  for (var d = 0, C = 0; d < 256; d++) {
4536
4536
  var h = d % i, A = B[h >>> 2] >>> 24 - h % 4 * 8 & 255;
4537
4537
  C = (C + l[d] + A) % 256;
4538
- var s = l[d];
4539
- l[d] = l[C], l[C] = s;
4538
+ var o = l[d];
4539
+ l[d] = l[C], l[C] = o;
4540
4540
  }
4541
4541
  this._i = this._j = 0;
4542
4542
  },
@@ -4578,11 +4578,11 @@ function zt() {
4578
4578
  var Y0 = { exports: {} }, Nt = Y0.exports, ar;
4579
4579
  function Wt() {
4580
4580
  return ar || (ar = 1, (function(p, r) {
4581
- (function(t, e, o) {
4581
+ (function(t, e, s) {
4582
4582
  p.exports = e(L(), n0(), i0(), a0(), Q());
4583
4583
  })(Nt, function(t) {
4584
4584
  return (function() {
4585
- var e = t, o = e.lib, c = o.StreamCipher, b = e.algo, u = [], f = [], a = [], n = b.Rabbit = c.extend({
4585
+ var e = t, s = e.lib, c = s.StreamCipher, b = e.algo, u = [], f = [], a = [], n = b.Rabbit = c.extend({
4586
4586
  _doReset: function() {
4587
4587
  for (var i = this._key.words, l = this.cfg.iv, d = 0; d < 4; d++)
4588
4588
  i[d] = (i[d] << 8 | i[d] >>> 24) & 16711935 | (i[d] << 24 | i[d] >>> 8) & 4278255360;
@@ -4611,7 +4611,7 @@ function Wt() {
4611
4611
  for (var d = 0; d < 8; d++)
4612
4612
  h[d] ^= C[d + 4 & 7];
4613
4613
  if (l) {
4614
- var A = l.words, s = A[0], x = A[1], v = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360, F = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, E = v >>> 16 | F & 4294901760, g = F << 16 | v & 65535;
4614
+ var A = l.words, o = A[0], x = A[1], v = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, F = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, E = v >>> 16 | F & 4294901760, g = F << 16 | v & 65535;
4615
4615
  h[0] ^= v, h[1] ^= E, h[2] ^= F, h[3] ^= g, h[4] ^= v, h[5] ^= E, h[6] ^= F, h[7] ^= g;
4616
4616
  for (var d = 0; d < 4; d++)
4617
4617
  B.call(this);
@@ -4631,8 +4631,8 @@ function Wt() {
4631
4631
  f[d] = l[d];
4632
4632
  l[0] = l[0] + 1295307597 + this._b | 0, l[1] = l[1] + 3545052371 + (l[0] >>> 0 < f[0] >>> 0 ? 1 : 0) | 0, l[2] = l[2] + 886263092 + (l[1] >>> 0 < f[1] >>> 0 ? 1 : 0) | 0, l[3] = l[3] + 1295307597 + (l[2] >>> 0 < f[2] >>> 0 ? 1 : 0) | 0, l[4] = l[4] + 3545052371 + (l[3] >>> 0 < f[3] >>> 0 ? 1 : 0) | 0, l[5] = l[5] + 886263092 + (l[4] >>> 0 < f[4] >>> 0 ? 1 : 0) | 0, l[6] = l[6] + 1295307597 + (l[5] >>> 0 < f[5] >>> 0 ? 1 : 0) | 0, l[7] = l[7] + 3545052371 + (l[6] >>> 0 < f[6] >>> 0 ? 1 : 0) | 0, this._b = l[7] >>> 0 < f[7] >>> 0 ? 1 : 0;
4633
4633
  for (var d = 0; d < 8; d++) {
4634
- var C = i[d] + l[d], h = C & 65535, A = C >>> 16, s = ((h * h >>> 17) + h * A >>> 15) + A * A, x = ((C & 4294901760) * C | 0) + ((C & 65535) * C | 0);
4635
- a[d] = s ^ x;
4634
+ var C = i[d] + l[d], h = C & 65535, A = C >>> 16, o = ((h * h >>> 17) + h * A >>> 15) + A * A, x = ((C & 4294901760) * C | 0) + ((C & 65535) * C | 0);
4635
+ a[d] = o ^ x;
4636
4636
  }
4637
4637
  i[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, i[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, i[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, i[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, i[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, i[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, i[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, i[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
4638
4638
  }
@@ -4644,11 +4644,11 @@ function Wt() {
4644
4644
  var J0 = { exports: {} }, Gt = J0.exports, nr;
4645
4645
  function Qt() {
4646
4646
  return nr || (nr = 1, (function(p, r) {
4647
- (function(t, e, o) {
4647
+ (function(t, e, s) {
4648
4648
  p.exports = e(L(), n0(), i0(), a0(), Q());
4649
4649
  })(Gt, function(t) {
4650
4650
  return (function() {
4651
- var e = t, o = e.lib, c = o.StreamCipher, b = e.algo, u = [], f = [], a = [], n = b.RabbitLegacy = c.extend({
4651
+ var e = t, s = e.lib, c = s.StreamCipher, b = e.algo, u = [], f = [], a = [], n = b.RabbitLegacy = c.extend({
4652
4652
  _doReset: function() {
4653
4653
  var i = this._key.words, l = this.cfg.iv, d = this._X = [
4654
4654
  i[0],
@@ -4675,7 +4675,7 @@ function Qt() {
4675
4675
  for (var h = 0; h < 8; h++)
4676
4676
  C[h] ^= d[h + 4 & 7];
4677
4677
  if (l) {
4678
- var A = l.words, s = A[0], x = A[1], v = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360, F = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, E = v >>> 16 | F & 4294901760, g = F << 16 | v & 65535;
4678
+ var A = l.words, o = A[0], x = A[1], v = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, F = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, E = v >>> 16 | F & 4294901760, g = F << 16 | v & 65535;
4679
4679
  C[0] ^= v, C[1] ^= E, C[2] ^= F, C[3] ^= g, C[4] ^= v, C[5] ^= E, C[6] ^= F, C[7] ^= g;
4680
4680
  for (var h = 0; h < 4; h++)
4681
4681
  B.call(this);
@@ -4695,8 +4695,8 @@ function Qt() {
4695
4695
  f[d] = l[d];
4696
4696
  l[0] = l[0] + 1295307597 + this._b | 0, l[1] = l[1] + 3545052371 + (l[0] >>> 0 < f[0] >>> 0 ? 1 : 0) | 0, l[2] = l[2] + 886263092 + (l[1] >>> 0 < f[1] >>> 0 ? 1 : 0) | 0, l[3] = l[3] + 1295307597 + (l[2] >>> 0 < f[2] >>> 0 ? 1 : 0) | 0, l[4] = l[4] + 3545052371 + (l[3] >>> 0 < f[3] >>> 0 ? 1 : 0) | 0, l[5] = l[5] + 886263092 + (l[4] >>> 0 < f[4] >>> 0 ? 1 : 0) | 0, l[6] = l[6] + 1295307597 + (l[5] >>> 0 < f[5] >>> 0 ? 1 : 0) | 0, l[7] = l[7] + 3545052371 + (l[6] >>> 0 < f[6] >>> 0 ? 1 : 0) | 0, this._b = l[7] >>> 0 < f[7] >>> 0 ? 1 : 0;
4697
4697
  for (var d = 0; d < 8; d++) {
4698
- var C = i[d] + l[d], h = C & 65535, A = C >>> 16, s = ((h * h >>> 17) + h * A >>> 15) + A * A, x = ((C & 4294901760) * C | 0) + ((C & 65535) * C | 0);
4699
- a[d] = s ^ x;
4698
+ var C = i[d] + l[d], h = C & 65535, A = C >>> 16, o = ((h * h >>> 17) + h * A >>> 15) + A * A, x = ((C & 4294901760) * C | 0) + ((C & 65535) * C | 0);
4699
+ a[d] = o ^ x;
4700
4700
  }
4701
4701
  i[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, i[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, i[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, i[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, i[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, i[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, i[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, i[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0;
4702
4702
  }
@@ -4708,11 +4708,11 @@ function Qt() {
4708
4708
  var ee = { exports: {} }, Xt = ee.exports, ir;
4709
4709
  function Vt() {
4710
4710
  return ir || (ir = 1, (function(p, r) {
4711
- (function(t, e, o) {
4711
+ (function(t, e, s) {
4712
4712
  p.exports = e(L(), n0(), i0(), a0(), Q());
4713
4713
  })(Xt, function(t) {
4714
4714
  return (function() {
4715
- var e = t, o = e.lib, c = o.BlockCipher, b = e.algo;
4715
+ var e = t, s = e.lib, c = s.BlockCipher, b = e.algo;
4716
4716
  const u = 16, f = [
4717
4717
  608135816,
4718
4718
  2242054355,
@@ -5771,22 +5771,22 @@ function Vt() {
5771
5771
  sbox: []
5772
5772
  };
5773
5773
  function B(h, A) {
5774
- let s = A >> 24 & 255, x = A >> 16 & 255, v = A >> 8 & 255, F = A & 255, E = h.sbox[0][s] + h.sbox[1][x];
5774
+ let o = A >> 24 & 255, x = A >> 16 & 255, v = A >> 8 & 255, F = A & 255, E = h.sbox[0][o] + h.sbox[1][x];
5775
5775
  return E = E ^ h.sbox[2][v], E = E + h.sbox[3][F], E;
5776
5776
  }
5777
- function i(h, A, s) {
5778
- let x = A, v = s, F;
5777
+ function i(h, A, o) {
5778
+ let x = A, v = o, F;
5779
5779
  for (let E = 0; E < u; ++E)
5780
5780
  x = x ^ h.pbox[E], v = B(h, x) ^ v, F = x, x = v, v = F;
5781
5781
  return F = x, x = v, v = F, v = v ^ h.pbox[u], x = x ^ h.pbox[u + 1], { left: x, right: v };
5782
5782
  }
5783
- function l(h, A, s) {
5784
- let x = A, v = s, F;
5783
+ function l(h, A, o) {
5784
+ let x = A, v = o, F;
5785
5785
  for (let E = u + 1; E > 1; --E)
5786
5786
  x = x ^ h.pbox[E], v = B(h, x) ^ v, F = x, x = v, v = F;
5787
5787
  return F = x, x = v, v = F, v = v ^ h.pbox[1], x = x ^ h.pbox[0], { left: x, right: v };
5788
5788
  }
5789
- function d(h, A, s) {
5789
+ function d(h, A, o) {
5790
5790
  for (let g = 0; g < 4; g++) {
5791
5791
  h.sbox[g] = [];
5792
5792
  for (let y = 0; y < 256; y++)
@@ -5794,7 +5794,7 @@ function Vt() {
5794
5794
  }
5795
5795
  let x = 0;
5796
5796
  for (let g = 0; g < u + 2; g++)
5797
- h.pbox[g] = f[g] ^ A[x], x++, x >= s && (x = 0);
5797
+ h.pbox[g] = f[g] ^ A[x], x++, x >= o && (x = 0);
5798
5798
  let v = 0, F = 0, E = 0;
5799
5799
  for (let g = 0; g < u + 2; g += 2)
5800
5800
  E = i(h, v, F), v = E.left, F = E.right, h.pbox[g] = v, h.pbox[g + 1] = F;
@@ -5806,17 +5806,17 @@ function Vt() {
5806
5806
  var C = b.Blowfish = c.extend({
5807
5807
  _doReset: function() {
5808
5808
  if (this._keyPriorReset !== this._key) {
5809
- var h = this._keyPriorReset = this._key, A = h.words, s = h.sigBytes / 4;
5810
- d(n, A, s);
5809
+ var h = this._keyPriorReset = this._key, A = h.words, o = h.sigBytes / 4;
5810
+ d(n, A, o);
5811
5811
  }
5812
5812
  },
5813
5813
  encryptBlock: function(h, A) {
5814
- var s = i(n, h[A], h[A + 1]);
5815
- h[A] = s.left, h[A + 1] = s.right;
5814
+ var o = i(n, h[A], h[A + 1]);
5815
+ h[A] = o.left, h[A + 1] = o.right;
5816
5816
  },
5817
5817
  decryptBlock: function(h, A) {
5818
- var s = l(n, h[A], h[A + 1]);
5819
- h[A] = s.left, h[A + 1] = s.right;
5818
+ var o = l(n, h[A], h[A + 1]);
5819
+ h[A] = o.left, h[A + 1] = o.right;
5820
5820
  },
5821
5821
  blockSize: 64 / 32,
5822
5822
  keySize: 128 / 32,
@@ -5830,7 +5830,7 @@ function Vt() {
5830
5830
  var jt = m0.exports, sr;
5831
5831
  function Zt() {
5832
5832
  return sr || (sr = 1, (function(p, r) {
5833
- (function(t, e, o) {
5833
+ (function(t, e, s) {
5834
5834
  p.exports = e(L(), ne(), Qr(), Vr(), n0(), Yr(), i0(), lr(), de(), at(), dr(), st(), xt(), lt(), fe(), ut(), a0(), Q(), Ct(), mt(), Et(), Dt(), bt(), _t(), kt(), Pt(), Rt(), Mt(), $t(), Lt(), Ut(), zt(), Wt(), Qt(), Vt());
5835
5835
  })(jt, function(t) {
5836
5836
  return t;
@@ -5888,9 +5888,9 @@ function xa(p = ur, r = {}) {
5888
5888
  /**
5889
5889
  * Save AI config
5890
5890
  */
5891
- save(o) {
5891
+ save(s) {
5892
5892
  try {
5893
- const c = t(o);
5893
+ const c = t(s);
5894
5894
  p.set(xe, c);
5895
5895
  } catch (c) {
5896
5896
  console.error("Failed to save config:", c);
@@ -5900,10 +5900,10 @@ function xa(p = ur, r = {}) {
5900
5900
  * Load AI config
5901
5901
  */
5902
5902
  load() {
5903
- const o = p.get(xe);
5904
- if (!o) return null;
5903
+ const s = p.get(xe);
5904
+ if (!s) return null;
5905
5905
  try {
5906
- return e(o);
5906
+ return e(s);
5907
5907
  } catch (c) {
5908
5908
  return console.error("Failed to load config:", c), null;
5909
5909
  }
@@ -5922,15 +5922,15 @@ function aa(p) {
5922
5922
  providers: Object.values(re),
5923
5923
  getModels: (f) => te(f)
5924
5924
  };
5925
- const { mode: r, include: t, exclude: e, custom: o } = p;
5925
+ const { mode: r, include: t, exclude: e, custom: s } = p;
5926
5926
  let c = [];
5927
5927
  if (r === "default") {
5928
5928
  let f = Object.values(re);
5929
5929
  t && t.length > 0 && (f = f.filter((a) => t.includes(a.id))), e && e.length > 0 && (f = f.filter((a) => !e.includes(a.id))), c = [...f];
5930
5930
  }
5931
5931
  const b = {};
5932
- if (o)
5933
- for (const [f, a] of Object.entries(o)) {
5932
+ if (s)
5933
+ for (const [f, a] of Object.entries(s)) {
5934
5934
  const n = {
5935
5935
  id: f,
5936
5936
  name: a.name,
@@ -5968,7 +5968,7 @@ class la {
5968
5968
  }
5969
5969
  emit(r, t) {
5970
5970
  var e;
5971
- (e = this.listeners.get(r)) == null || e.forEach((o) => o(t));
5971
+ (e = this.listeners.get(r)) == null || e.forEach((s) => s(t));
5972
5972
  }
5973
5973
  // ==================== 存储相关 ====================
5974
5974
  getStorageKey(r) {
@@ -6049,10 +6049,10 @@ class la {
6049
6049
  const e = t0(r.providerId);
6050
6050
  if (!e)
6051
6051
  throw new Error(`Provider not found: ${r.providerId}`);
6052
- let o = r.modelName || r.model, c = [], b;
6052
+ let s = r.modelName || r.model, c = [], b;
6053
6053
  try {
6054
6054
  const n = (await this.getProviderModels(r.providerId, r.apiKey, r.baseUrl)).find((B) => B.id === r.model);
6055
- n && (o = n.name, c = n.capabilities || [], b = n.contextLength);
6055
+ n && (s = n.name, c = n.capabilities || [], b = n.contextLength);
6056
6056
  } catch (a) {
6057
6057
  console.warn("Failed to fetch models, using static info:", a);
6058
6058
  }
@@ -6061,7 +6061,7 @@ class la {
6061
6061
  providerId: r.providerId,
6062
6062
  providerName: e.name,
6063
6063
  model: r.model,
6064
- modelName: o,
6064
+ modelName: s,
6065
6065
  apiKey: r.apiKey,
6066
6066
  baseUrl: r.baseUrl,
6067
6067
  apiFormat: e.apiFormat,
@@ -6082,10 +6082,10 @@ class la {
6082
6082
  }
6083
6083
  /** 更新通道 */
6084
6084
  async updateChannel(r, t, e) {
6085
- const o = this.channels.find((u) => u.id === r);
6086
- if (!o)
6085
+ const s = this.channels.find((u) => u.id === r);
6086
+ if (!s)
6087
6087
  throw new Error(`Channel not found: ${r}`);
6088
- const c = { ...o, ...t };
6088
+ const c = { ...s, ...t };
6089
6089
  if (e !== void 0 && (c.name = e), t.providerId || t.model || t.baseUrl) {
6090
6090
  const u = t0(c.providerId);
6091
6091
  if (u) {
@@ -6135,8 +6135,8 @@ class la {
6135
6135
  var e;
6136
6136
  if (r.providerId && t.providerId !== r.providerId || r.apiFormat && t.apiFormat !== r.apiFormat || r.capability && !((e = t.capabilities) != null && e.includes(r.capability)) || r.status && t.status !== r.status) return !1;
6137
6137
  if (r.keyword) {
6138
- const o = r.keyword.toLowerCase();
6139
- if (!`${t.name || ""} ${t.modelName} ${t.providerName} ${t.model}`.toLowerCase().includes(o)) return !1;
6138
+ const s = r.keyword.toLowerCase();
6139
+ if (!`${t.name || ""} ${t.modelName} ${t.providerName} ${t.model}`.toLowerCase().includes(s)) return !1;
6140
6140
  }
6141
6141
  return !0;
6142
6142
  });
@@ -6157,7 +6157,7 @@ class la {
6157
6157
  if (!t)
6158
6158
  throw new Error(`Channel not found: ${r}`);
6159
6159
  this.activeChannelId = r, this.saveActiveChannel();
6160
- const e = this.channels.findIndex((o) => o.id === r);
6160
+ const e = this.channels.findIndex((s) => s.id === r);
6161
6161
  this.channels[e].lastUsedAt = Date.now(), this.saveChannel(this.channels[e]), this.emit("activate", t);
6162
6162
  }
6163
6163
  /** 清除当前激活的通道 */
@@ -6211,27 +6211,27 @@ class la {
6211
6211
  }
6212
6212
  const e = this.getChannelsByCapability(r).filter((c) => c.lastUsedAt).sort((c, b) => (b.lastUsedAt || 0) - (c.lastUsedAt || 0));
6213
6213
  if (e.length > 0) return e[0];
6214
- const o = this.getActiveChannel();
6215
- return o || this.channels[0];
6214
+ const s = this.getActiveChannel();
6215
+ return s || this.channels[0];
6216
6216
  }
6217
6217
  /**
6218
6218
  * 使用指定能力类型的默认通道发送聊天请求
6219
6219
  * 自动选择合适的通道,无需手动指定 channelId
6220
6220
  */
6221
6221
  async chatForCapability(r, t, e) {
6222
- const o = this.getChannelForCapability(r);
6223
- if (!o)
6222
+ const s = this.getChannelForCapability(r);
6223
+ if (!s)
6224
6224
  throw new Error(`No available channel for capability: ${r}`);
6225
- return this.chatWith(o.id, t, e);
6225
+ return this.chatWith(s.id, t, e);
6226
6226
  }
6227
6227
  /**
6228
6228
  * 使用指定能力类型的默认通道发送流式聊天请求
6229
6229
  */
6230
6230
  async chatStreamForCapability(r, t, e) {
6231
- const o = this.getChannelForCapability(r);
6232
- if (!o)
6231
+ const s = this.getChannelForCapability(r);
6232
+ if (!s)
6233
6233
  throw new Error(`No available channel for capability: ${r}`);
6234
- return this.chatWithStream(o.id, t, {
6234
+ return this.chatWithStream(s.id, t, {
6235
6235
  ...e,
6236
6236
  onDelta: (e == null ? void 0 : e.onDelta) || ((c) => {
6237
6237
  })
@@ -6240,11 +6240,11 @@ class la {
6240
6240
  // ==================== 模型查询 ====================
6241
6241
  /** 获取 Provider 的可用模型列表(动态获取 + 静态兜底) */
6242
6242
  async getProviderModels(r, t, e) {
6243
- const o = t0(r);
6244
- if (!o)
6243
+ const s = t0(r);
6244
+ if (!s)
6245
6245
  throw new Error(`Provider not found: ${r}`);
6246
6246
  return $r({
6247
- provider: o,
6247
+ provider: s,
6248
6248
  apiKey: t,
6249
6249
  baseUrl: e,
6250
6250
  proxyUrl: this.proxyUrl,
@@ -6265,8 +6265,8 @@ class la {
6265
6265
  /** 按能力过滤模型列表 */
6266
6266
  getModelsByCapability(r, t) {
6267
6267
  return r.filter((e) => {
6268
- var o;
6269
- return (o = e.capabilities) == null ? void 0 : o.includes(t);
6268
+ var s;
6269
+ return (s = e.capabilities) == null ? void 0 : s.includes(t);
6270
6270
  });
6271
6271
  }
6272
6272
  /** 获取所有已配置的模型摘要列表 */
@@ -6311,29 +6311,29 @@ class la {
6311
6311
  }
6312
6312
  /** 使用指定通道发送聊天请求 */
6313
6313
  async chatWith(r, t, e) {
6314
- const o = this.getChannel(r);
6315
- if (!o)
6314
+ const s = this.getChannel(r);
6315
+ if (!s)
6316
6316
  throw new Error(`Channel not found: ${r}`);
6317
- const c = t0(o.providerId);
6317
+ const c = t0(s.providerId);
6318
6318
  if (!c)
6319
- throw new Error(`Provider not found: ${o.providerId}`);
6319
+ throw new Error(`Provider not found: ${s.providerId}`);
6320
6320
  const b = (e == null ? void 0 : e.messages) || [{ role: "user", content: t }], u = await cr({
6321
- apiFormat: o.apiFormat,
6322
- baseUrl: o.baseUrl || c.baseUrl,
6323
- apiKey: o.apiKey,
6324
- model: o.model,
6321
+ apiFormat: s.apiFormat,
6322
+ baseUrl: s.baseUrl || c.baseUrl,
6323
+ apiKey: s.apiKey,
6324
+ model: s.model,
6325
6325
  messages: b,
6326
6326
  maxTokens: e == null ? void 0 : e.maxTokens
6327
6327
  }), f = {
6328
6328
  ...u,
6329
- channelId: o.id,
6330
- model: o.model
6329
+ channelId: s.id,
6330
+ model: s.model
6331
6331
  };
6332
6332
  if (u.success) {
6333
- const a = this.channels.findIndex((n) => n.id === o.id);
6333
+ const a = this.channels.findIndex((n) => n.id === s.id);
6334
6334
  this.channels[a].lastUsedAt = Date.now(), this.channels[a].status = "connected", this.channels[a].lastError = void 0, this.saveChannel(this.channels[a]);
6335
6335
  } else {
6336
- const a = this.channels.findIndex((n) => n.id === o.id);
6336
+ const a = this.channels.findIndex((n) => n.id === s.id);
6337
6337
  this.channels[a].status = "error", this.channels[a].lastError = u.message, this.saveChannel(this.channels[a]);
6338
6338
  }
6339
6339
  return this.emit("chat", f), f;
@@ -6347,26 +6347,26 @@ class la {
6347
6347
  }
6348
6348
  /** 使用指定通道发送流式聊天。onDelta 每次收到「累计完整文本」。 */
6349
6349
  async chatWithStream(r, t, e) {
6350
- const o = this.getChannel(r);
6351
- if (!o)
6350
+ const s = this.getChannel(r);
6351
+ if (!s)
6352
6352
  throw new Error(`Channel not found: ${r}`);
6353
- const c = t0(o.providerId);
6353
+ const c = t0(s.providerId);
6354
6354
  if (!c)
6355
- throw new Error(`Provider not found: ${o.providerId}`);
6355
+ throw new Error(`Provider not found: ${s.providerId}`);
6356
6356
  const b = e.messages || [{ role: "user", content: t }], u = await Mr({
6357
- apiFormat: o.apiFormat,
6358
- baseUrl: o.baseUrl || c.baseUrl,
6359
- apiKey: o.apiKey,
6360
- model: o.model,
6357
+ apiFormat: s.apiFormat,
6358
+ baseUrl: s.baseUrl || c.baseUrl,
6359
+ apiKey: s.apiKey,
6360
+ model: s.model,
6361
6361
  messages: b,
6362
6362
  maxTokens: e.maxTokens,
6363
6363
  onDelta: e.onDelta,
6364
6364
  signal: e.signal
6365
6365
  }), f = {
6366
6366
  ...u,
6367
- channelId: o.id,
6368
- model: o.model
6369
- }, a = this.channels.findIndex((n) => n.id === o.id);
6367
+ channelId: s.id,
6368
+ model: s.model
6369
+ }, a = this.channels.findIndex((n) => n.id === s.id);
6370
6370
  return u.success ? (this.channels[a].lastUsedAt = Date.now(), this.channels[a].status = "connected", this.channels[a].lastError = void 0) : (this.channels[a].status = "error", this.channels[a].lastError = u.message), this.saveChannel(this.channels[a]), this.emit("chat", f), f;
6371
6371
  }
6372
6372
  /** 测试指定通道的连接 */
@@ -6377,13 +6377,13 @@ class la {
6377
6377
  const e = t0(t.providerId);
6378
6378
  if (!e)
6379
6379
  throw new Error(`Provider not found: ${t.providerId}`);
6380
- const o = await Or({
6380
+ const s = await Or({
6381
6381
  apiFormat: t.apiFormat,
6382
6382
  baseUrl: t.baseUrl || e.baseUrl,
6383
6383
  apiKey: t.apiKey,
6384
6384
  model: t.model
6385
6385
  }), c = this.channels.findIndex((b) => b.id === r);
6386
- return o.success ? (this.channels[c].status = "connected", this.channels[c].lastError = void 0) : (this.channels[c].status = "error", this.channels[c].lastError = o.message), this.saveChannel(this.channels[c]), this.emit("test", { id: r, ...o }), o;
6386
+ return s.success ? (this.channels[c].status = "connected", this.channels[c].lastError = void 0) : (this.channels[c].status = "error", this.channels[c].lastError = s.message), this.saveChannel(this.channels[c]), this.emit("test", { id: r, ...s }), s;
6387
6387
  }
6388
6388
  /** 测试所有通道连接 */
6389
6389
  async testAllChannels() {
@@ -6416,8 +6416,8 @@ class la {
6416
6416
  exportChannels(r) {
6417
6417
  const t = this.channels.map((e) => {
6418
6418
  if (r) return e;
6419
- const { apiKey: o, ...c } = e;
6420
- return { ...c, apiKey: this.maskApiKey(o) };
6419
+ const { apiKey: s, ...c } = e;
6420
+ return { ...c, apiKey: this.maskApiKey(s) };
6421
6421
  });
6422
6422
  return JSON.stringify({
6423
6423
  version: 1,
@@ -6431,7 +6431,7 @@ class la {
6431
6431
  if (!e.channels || !Array.isArray(e.channels))
6432
6432
  throw new Error("Invalid import format: missing channels array");
6433
6433
  t || this.clearAllChannels();
6434
- const o = [];
6434
+ const s = [];
6435
6435
  for (const c of e.channels) {
6436
6436
  if (c.apiKey && c.apiKey.includes("••••")) {
6437
6437
  console.warn(`Skipping channel ${c.modelName}: API Key is masked`);
@@ -6444,9 +6444,9 @@ class la {
6444
6444
  modelName: c.modelName,
6445
6445
  baseUrl: c.baseUrl
6446
6446
  }, u = await this.addChannel(b, c.name);
6447
- o.push(u);
6447
+ s.push(u);
6448
6448
  }
6449
- return o;
6449
+ return s;
6450
6450
  }
6451
6451
  // ==================== 批量操作 ====================
6452
6452
  /** 清空所有通道 */
@@ -6471,8 +6471,8 @@ class la {
6471
6471
  for (const t of this.channels) {
6472
6472
  const e = t.status || "untested";
6473
6473
  r.byStatus[e] = (r.byStatus[e] || 0) + 1, r.byFormat[t.apiFormat] = (r.byFormat[t.apiFormat] || 0) + 1, r.byProvider[t.providerId] = (r.byProvider[t.providerId] || 0) + 1;
6474
- for (const o of t.capabilities || [])
6475
- r.byCapability[o] = (r.byCapability[o] || 0) + 1;
6474
+ for (const s of t.capabilities || [])
6475
+ r.byCapability[s] = (r.byCapability[s] || 0) + 1;
6476
6476
  }
6477
6477
  return r;
6478
6478
  }