@jctrans-materials/shared 1.0.38-beta.1 → 1.0.38-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1460 -1470
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,9 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var It = Object.defineProperty, kt = Object.defineProperties;
|
|
2
|
+
var St = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var xr = Object.getOwnPropertySymbols;
|
|
4
|
+
var Pt = Object.prototype.hasOwnProperty, Rt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var we = (e, t, n) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, z = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
Pt.call(t, n) && we(e, n, t[n]);
|
|
8
|
+
if (xr)
|
|
9
|
+
for (var n of xr(t))
|
|
10
|
+
Rt.call(t, n) && we(e, n, t[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, U = (e, t) => kt(e, St(t));
|
|
13
|
+
var I0 = (e, t, n) => we(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
+
var V = (e, t, n) => new Promise((r, x) => {
|
|
15
|
+
var f = (p) => {
|
|
16
|
+
try {
|
|
17
|
+
h(n.next(p));
|
|
18
|
+
} catch (i) {
|
|
19
|
+
x(i);
|
|
20
|
+
}
|
|
21
|
+
}, y = (p) => {
|
|
22
|
+
try {
|
|
23
|
+
h(n.throw(p));
|
|
24
|
+
} catch (i) {
|
|
25
|
+
x(i);
|
|
26
|
+
}
|
|
27
|
+
}, h = (p) => p.done ? r(p.value) : Promise.resolve(p.value).then(f, y);
|
|
28
|
+
h((n = n.apply(e, t)).next());
|
|
29
|
+
});
|
|
30
|
+
import zt from "mitt";
|
|
31
|
+
import ar from "axios";
|
|
32
|
+
const r0 = {
|
|
7
33
|
prefixPath: "https://cloudapi-sit2.jctrans.net.cn",
|
|
8
34
|
searchPath: "/system/dms/fr/aggr/getLocationOptions",
|
|
9
35
|
oldSearchPath: "/system/dms/fr/aggr/findPageList",
|
|
@@ -11,33 +37,33 @@ const Y = {
|
|
|
11
37
|
allLinePath: "/system/dms/fr/line/findAllListByCountry",
|
|
12
38
|
linePath: "/system/dms/fr/line/findAllList"
|
|
13
39
|
// linePath: "/system/dms/line/findAllList",
|
|
14
|
-
},
|
|
40
|
+
}, Tt = {
|
|
15
41
|
get basePath() {
|
|
16
|
-
return
|
|
42
|
+
return r0.prefixPath + r0.searchPath;
|
|
17
43
|
},
|
|
18
44
|
get carrierPath() {
|
|
19
|
-
return
|
|
45
|
+
return r0.prefixPath + r0.carrierPath;
|
|
20
46
|
},
|
|
21
47
|
get linePath() {
|
|
22
|
-
return
|
|
48
|
+
return r0.prefixPath + r0.linePath;
|
|
23
49
|
},
|
|
24
50
|
get allLinePath() {
|
|
25
|
-
return
|
|
51
|
+
return r0.prefixPath + r0.allLinePath;
|
|
26
52
|
},
|
|
27
53
|
get oldBasePath() {
|
|
28
|
-
return
|
|
54
|
+
return r0.prefixPath + r0.oldSearchPath;
|
|
29
55
|
},
|
|
30
56
|
get prefixPath() {
|
|
31
|
-
return
|
|
57
|
+
return r0.prefixPath;
|
|
32
58
|
}
|
|
33
|
-
},
|
|
34
|
-
e && (e.prefixPath !== void 0 && (
|
|
35
|
-
},
|
|
36
|
-
var t, n, r, x, f,
|
|
59
|
+
}, Ii = (e) => {
|
|
60
|
+
e && (e.prefixPath !== void 0 && (r0.prefixPath = e.prefixPath), e.searchPath !== void 0 && (r0.searchPath = e.searchPath));
|
|
61
|
+
}, a0 = () => Tt, Gr = () => {
|
|
62
|
+
var t, n, r, x, f, y;
|
|
37
63
|
let e;
|
|
38
64
|
try {
|
|
39
65
|
typeof useCookie == "function" && (e = (t = useCookie("jc-language")) == null ? void 0 : t.value);
|
|
40
|
-
} catch {
|
|
66
|
+
} catch (h) {
|
|
41
67
|
}
|
|
42
68
|
if (e)
|
|
43
69
|
return e === "en" || e === "en-US";
|
|
@@ -47,14 +73,14 @@ const Y = {
|
|
|
47
73
|
}
|
|
48
74
|
try {
|
|
49
75
|
if (typeof useNuxtApp == "function") {
|
|
50
|
-
const h = useNuxtApp(),
|
|
51
|
-
return /(^|;\s*)jc-language=en(-US)?(;|$)/.test(
|
|
76
|
+
const h = useNuxtApp(), p = ((y = (f = (x = (r = (n = h == null ? void 0 : h.ssrContext) == null ? void 0 : n.event) == null ? void 0 : r.node) == null ? void 0 : x.req) == null ? void 0 : f.headers) == null ? void 0 : y.cookie) || "";
|
|
77
|
+
return /(^|;\s*)jc-language=en(-US)?(;|$)/.test(p);
|
|
52
78
|
}
|
|
53
|
-
} catch {
|
|
79
|
+
} catch (h) {
|
|
54
80
|
}
|
|
55
81
|
return !1;
|
|
56
82
|
};
|
|
57
|
-
function
|
|
83
|
+
function H0(e) {
|
|
58
84
|
for (var t = 1; t < arguments.length; t++) {
|
|
59
85
|
var n = arguments[t];
|
|
60
86
|
for (var r in n)
|
|
@@ -62,7 +88,7 @@ function R0(e) {
|
|
|
62
88
|
}
|
|
63
89
|
return e;
|
|
64
90
|
}
|
|
65
|
-
var
|
|
91
|
+
var Ht = {
|
|
66
92
|
read: function(e) {
|
|
67
93
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
68
94
|
},
|
|
@@ -73,28 +99,28 @@ var wt = {
|
|
|
73
99
|
);
|
|
74
100
|
}
|
|
75
101
|
};
|
|
76
|
-
function
|
|
77
|
-
function n(x, f,
|
|
102
|
+
function Re(e, t) {
|
|
103
|
+
function n(x, f, y) {
|
|
78
104
|
if (typeof document != "undefined") {
|
|
79
|
-
|
|
105
|
+
y = H0({}, t, y), typeof y.expires == "number" && (y.expires = new Date(Date.now() + y.expires * 864e5)), y.expires && (y.expires = y.expires.toUTCString()), x = encodeURIComponent(x).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
80
106
|
var h = "";
|
|
81
|
-
for (var
|
|
82
|
-
|
|
107
|
+
for (var p in y)
|
|
108
|
+
y[p] && (h += "; " + p, y[p] !== !0 && (h += "=" + y[p].split(";")[0]));
|
|
83
109
|
return document.cookie = x + "=" + e.write(f, x) + h;
|
|
84
110
|
}
|
|
85
111
|
}
|
|
86
112
|
function r(x) {
|
|
87
113
|
if (!(typeof document == "undefined" || arguments.length && !x)) {
|
|
88
|
-
for (var f = document.cookie ? document.cookie.split("; ") : [],
|
|
89
|
-
var
|
|
114
|
+
for (var f = document.cookie ? document.cookie.split("; ") : [], y = {}, h = 0; h < f.length; h++) {
|
|
115
|
+
var p = f[h].split("="), i = p.slice(1).join("=");
|
|
90
116
|
try {
|
|
91
|
-
var o = decodeURIComponent(
|
|
92
|
-
if (
|
|
117
|
+
var o = decodeURIComponent(p[0]);
|
|
118
|
+
if (y[o] = e.read(i, o), x === o)
|
|
93
119
|
break;
|
|
94
|
-
} catch {
|
|
120
|
+
} catch (B) {
|
|
95
121
|
}
|
|
96
122
|
}
|
|
97
|
-
return x ?
|
|
123
|
+
return x ? y[x] : y;
|
|
98
124
|
}
|
|
99
125
|
}
|
|
100
126
|
return Object.create(
|
|
@@ -105,16 +131,16 @@ function Ie(e, t) {
|
|
|
105
131
|
n(
|
|
106
132
|
x,
|
|
107
133
|
"",
|
|
108
|
-
|
|
134
|
+
H0({}, f, {
|
|
109
135
|
expires: -1
|
|
110
136
|
})
|
|
111
137
|
);
|
|
112
138
|
},
|
|
113
139
|
withAttributes: function(x) {
|
|
114
|
-
return
|
|
140
|
+
return Re(this.converter, H0({}, this.attributes, x));
|
|
115
141
|
},
|
|
116
142
|
withConverter: function(x) {
|
|
117
|
-
return
|
|
143
|
+
return Re(H0({}, this.converter, x), this.attributes);
|
|
118
144
|
}
|
|
119
145
|
},
|
|
120
146
|
{
|
|
@@ -123,21 +149,21 @@ function Ie(e, t) {
|
|
|
123
149
|
}
|
|
124
150
|
);
|
|
125
151
|
}
|
|
126
|
-
var
|
|
127
|
-
const
|
|
128
|
-
function
|
|
152
|
+
var Z = Re(Ht, { path: "/" });
|
|
153
|
+
const qe = typeof window != "undefined";
|
|
154
|
+
function $t(e) {
|
|
129
155
|
const t = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/, n = /^((?:[a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}|::|(?:[a-fA-F0-9]{1,4}:){1,7}:|:(?::[a-fA-F0-9]{1,4}){1,7})$/;
|
|
130
156
|
return t.test(e) || n.test(e);
|
|
131
157
|
}
|
|
132
|
-
function
|
|
133
|
-
if (!
|
|
158
|
+
function Lt() {
|
|
159
|
+
if (!qe) return;
|
|
134
160
|
const e = window.location.hostname;
|
|
135
|
-
if (e === "localhost" ||
|
|
161
|
+
if (e === "localhost" || $t(e)) return;
|
|
136
162
|
const t = e.split(".");
|
|
137
163
|
if (t.length >= 2)
|
|
138
164
|
return e.endsWith(".net.cn") || e.endsWith(".com.cn") ? t.length >= 3 ? "." + t.slice(-3).join(".") : void 0 : "." + t.slice(-2).join(".");
|
|
139
165
|
}
|
|
140
|
-
const
|
|
166
|
+
const Ne = "JC-JAVA-Token-Root", jr = "hasLogin", ze = "prjId", Kr = "JC-Expires-In", Oe = "JC-Expires-Time-In", We = "JC-Refresh-Token", Xr = "JC-Refresh-Expires-In", Mr = "JC-Refresh-Expires-Time-In", Te = "JC-Remember-Account", He = "JC-Remember-Password", Vr = /* @__PURE__ */ new Set([
|
|
141
167
|
"/auth/login",
|
|
142
168
|
"/auth/register",
|
|
143
169
|
"/auth/registerAccComp",
|
|
@@ -161,325 +187,312 @@ const He = "JC-JAVA-Token-Root", Nr = "hasLogin", ke = "prjId", Or = "JC-Expires
|
|
|
161
187
|
"/auth/completeJoinCompanyRedirect",
|
|
162
188
|
"/auth/loginByFacebook",
|
|
163
189
|
"/auth/loginByLinkedin"
|
|
164
|
-
]),
|
|
165
|
-
domain:
|
|
190
|
+
]), Ue = () => ({
|
|
191
|
+
domain: Lt(),
|
|
166
192
|
path: "/",
|
|
167
193
|
sameSite: "Lax"
|
|
168
194
|
});
|
|
169
|
-
function
|
|
170
|
-
return
|
|
195
|
+
function Zr() {
|
|
196
|
+
return Z.get(ze) || window.sessionStorage.getItem(ze) || void 0;
|
|
171
197
|
}
|
|
172
|
-
function
|
|
173
|
-
return
|
|
198
|
+
function Qr() {
|
|
199
|
+
return Z.get("jc-language");
|
|
174
200
|
}
|
|
175
|
-
function
|
|
176
|
-
const r =
|
|
177
|
-
n ? (
|
|
201
|
+
function ki(e, t, n) {
|
|
202
|
+
const r = Ue();
|
|
203
|
+
n ? (Z.set(Te, e, U(z({}, r), { expires: 30 })), Z.set(He, t, U(z({}, r), { expires: 30 }))) : (Z.remove(Te, r), Z.remove(He, r));
|
|
178
204
|
}
|
|
179
|
-
function
|
|
205
|
+
function $e(e) {
|
|
180
206
|
if (!e) return;
|
|
181
|
-
const t =
|
|
182
|
-
if (e.accessToken && (
|
|
183
|
-
...t,
|
|
207
|
+
const t = Ue(), n = Date.now();
|
|
208
|
+
if (e.accessToken && (Z.set(Ne, e.accessToken, U(z({}, t), {
|
|
184
209
|
expires: e.expireIn ? e.expireIn / (3600 * 24) : 1
|
|
185
210
|
// 转换为天数
|
|
186
|
-
}),
|
|
211
|
+
})), Z.set(jr, n.toString(), t)), e.expireIn) {
|
|
187
212
|
const r = n + e.expireIn * 1e3;
|
|
188
|
-
|
|
189
|
-
...t,
|
|
213
|
+
Z.set(Kr, e.expireIn.toString(), U(z({}, t), {
|
|
190
214
|
expires: e.expireIn ? e.expireIn / (3600 * 24) : 1
|
|
191
215
|
// 转换为天数
|
|
192
|
-
}),
|
|
193
|
-
...t,
|
|
216
|
+
})), Z.set(Oe, r.toString(), U(z({}, t), {
|
|
194
217
|
expires: e.expireIn ? e.expireIn / (3600 * 24) : 1
|
|
195
218
|
// 转换为天数
|
|
196
|
-
});
|
|
219
|
+
}));
|
|
197
220
|
}
|
|
198
|
-
if (e.refreshToken &&
|
|
199
|
-
...t,
|
|
221
|
+
if (e.refreshToken && Z.set(We, e.refreshToken, U(z({}, t), {
|
|
200
222
|
expires: e.refreshTokenExpireIn ? e.refreshTokenExpireIn / (3600 * 24) : 1
|
|
201
223
|
// 转换为天数
|
|
202
|
-
}), e.refreshTokenExpireIn) {
|
|
224
|
+
})), e.refreshTokenExpireIn) {
|
|
203
225
|
const r = n + e.refreshTokenExpireIn * 1e3;
|
|
204
|
-
|
|
205
|
-
...t,
|
|
226
|
+
Z.set(Xr, e.refreshTokenExpireIn.toString(), U(z({}, t), {
|
|
206
227
|
expires: e.refreshTokenExpireIn ? e.refreshTokenExpireIn / (3600 * 24) : 1
|
|
207
228
|
// 转换为天数
|
|
208
|
-
}),
|
|
209
|
-
...t,
|
|
229
|
+
})), Z.set(Mr, r.toString(), U(z({}, t), {
|
|
210
230
|
expires: e.refreshTokenExpireIn ? e.refreshTokenExpireIn / (3600 * 24) : 1
|
|
211
231
|
// 转换为天数
|
|
212
|
-
});
|
|
232
|
+
}));
|
|
213
233
|
}
|
|
214
234
|
}
|
|
215
|
-
function
|
|
216
|
-
const e =
|
|
235
|
+
function Si() {
|
|
236
|
+
const e = Ue();
|
|
217
237
|
[
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
].forEach((n) =>
|
|
227
|
-
}
|
|
228
|
-
function
|
|
238
|
+
Ne,
|
|
239
|
+
jr,
|
|
240
|
+
Kr,
|
|
241
|
+
Oe,
|
|
242
|
+
We,
|
|
243
|
+
Xr,
|
|
244
|
+
Mr,
|
|
245
|
+
ze
|
|
246
|
+
].forEach((n) => Z.remove(n, e));
|
|
247
|
+
}
|
|
248
|
+
function Yr() {
|
|
229
249
|
let e = "";
|
|
230
250
|
try {
|
|
231
|
-
if (typeof process != "undefined" && process.env && (e = process.env.VUE_APP_ID || ""), !e &&
|
|
251
|
+
if (typeof process != "undefined" && process.env && (e = process.env.VUE_APP_ID || ""), !e && qe) {
|
|
232
252
|
const t = window.BASE_INFO;
|
|
233
253
|
e = (t == null ? void 0 : t.VUE_APP_ID) || window.VUE_APP_ID || window.sessionStorage.getItem("VUE_APP_ID") || window.sessionStorage.getItem("_GIO-appId") || "";
|
|
234
254
|
}
|
|
235
|
-
} catch {
|
|
255
|
+
} catch (t) {
|
|
236
256
|
}
|
|
237
257
|
return (e || "").trim();
|
|
238
258
|
}
|
|
239
|
-
function
|
|
259
|
+
function qt(e) {
|
|
240
260
|
var n;
|
|
241
261
|
const t = (e == null ? void 0 : e.url) || "";
|
|
242
|
-
if (!
|
|
262
|
+
if (!qe) return t;
|
|
243
263
|
try {
|
|
244
264
|
const r = ((n = window.BASE_INFO) == null ? void 0 : n.VUE_APP_BASE_API) || window.location.origin;
|
|
245
265
|
return new URL(t, r).pathname;
|
|
246
|
-
} catch {
|
|
266
|
+
} catch (r) {
|
|
247
267
|
return t;
|
|
248
268
|
}
|
|
249
269
|
}
|
|
250
|
-
function
|
|
251
|
-
return
|
|
270
|
+
function Jr() {
|
|
271
|
+
return Z.get(Ne);
|
|
252
272
|
}
|
|
253
|
-
function
|
|
254
|
-
return
|
|
273
|
+
function Nt() {
|
|
274
|
+
return Z.get(We);
|
|
255
275
|
}
|
|
256
|
-
function
|
|
257
|
-
const e =
|
|
276
|
+
function Ot() {
|
|
277
|
+
const e = Z.get(Oe);
|
|
258
278
|
return e ? Number(e) : 0;
|
|
259
279
|
}
|
|
260
|
-
function
|
|
280
|
+
function Pi() {
|
|
261
281
|
return {
|
|
262
|
-
account:
|
|
263
|
-
password:
|
|
282
|
+
account: Z.get(Te),
|
|
283
|
+
password: Z.get(He)
|
|
264
284
|
};
|
|
265
285
|
}
|
|
266
|
-
function
|
|
286
|
+
function Ee(e) {
|
|
267
287
|
var t;
|
|
268
288
|
if (typeof window == "undefined") return "";
|
|
269
289
|
try {
|
|
270
290
|
return ((t = window.sessionStorage) == null ? void 0 : t.getItem(e)) || "";
|
|
271
|
-
} catch {
|
|
291
|
+
} catch (n) {
|
|
272
292
|
return "";
|
|
273
293
|
}
|
|
274
294
|
}
|
|
275
|
-
function
|
|
295
|
+
function ge(e) {
|
|
276
296
|
const t = String(e || "").replace(/[\u0000-\u001F\u007F]+/g, " ").trim();
|
|
277
297
|
return t ? /^[\u0000-\u00FF]*$/.test(t) ? t : encodeURIComponent(t) : "";
|
|
278
298
|
}
|
|
279
|
-
function
|
|
299
|
+
function et(e = {}) {
|
|
280
300
|
const t = e.fetch || (typeof window != "undefined" ? window.fetch : void 0);
|
|
281
301
|
if (!t)
|
|
282
302
|
throw new Error(
|
|
283
303
|
"Fetch implementation is missing. Provide one in options or ensure it's available globally."
|
|
284
304
|
);
|
|
285
|
-
const { prefixPath: n } =
|
|
305
|
+
const { prefixPath: n } = a0(), r = (x, f, y, h) => V(null, null, function* () {
|
|
286
306
|
var l, D, F, _, b;
|
|
287
|
-
const
|
|
288
|
-
"Content-Type": "application/json"
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
Be("_GIO-pageCode")
|
|
307
|
+
const p = e.baseURL || n || "", i = x.startsWith("http") ? x : p + x, o = h != null && h.params ? "?" + new URLSearchParams(h.params).toString() : "", B = z({
|
|
308
|
+
"Content-Type": "application/json"
|
|
309
|
+
}, h == null ? void 0 : h.headers), a = Jr(), u = Yr(), d = Zr(), C = Qr(), E = B["app-id"] || B["APP-ID"] || u;
|
|
310
|
+
B["APP-ID"] = E, B["Accept-Language"] = C || "en-US";
|
|
311
|
+
const s = ge(
|
|
312
|
+
Ee("_GIO-registerEntry")
|
|
313
|
+
), c = ge(
|
|
314
|
+
Ee("_GIO-pageCode")
|
|
296
315
|
);
|
|
297
|
-
!
|
|
316
|
+
!B.entry && s && (B.entry = s), !B.pageCode && !B["page-code"] && c && (B.pageCode = c), localStorage.getItem("clientId") && (B["client-uid"] = localStorage.getItem("clientId")), B["app-id"] && delete B["app-id"], a && (h == null ? void 0 : h.isToken) !== !1 && (B.Authorization = `Bearer ${a}`), d && (B["popular-channel"] = String(d));
|
|
298
317
|
try {
|
|
299
|
-
const S =
|
|
318
|
+
const S = y && typeof y == "object" ? JSON.stringify(y) : y, A = yield t(i + o, {
|
|
300
319
|
method: f,
|
|
301
|
-
headers:
|
|
320
|
+
headers: B,
|
|
302
321
|
body: f !== "GET" ? S : void 0
|
|
303
322
|
});
|
|
304
323
|
let g, w;
|
|
305
|
-
|
|
324
|
+
A && typeof A.json == "function" ? (g = yield A.json(), w = A.status) : (g = A, w = 200), console.log("🍉 ~ fetch.ts:95 ~ wrapFetch ~ result:", g);
|
|
306
325
|
const I = x.split("?")[0];
|
|
307
|
-
return
|
|
326
|
+
return Vr.has(I) && ((l = g == null ? void 0 : g.data) != null && l.result) && $e(g.data.result), (D = g == null ? void 0 : g.data) != null && D.verifyCode && ((F = g == null ? void 0 : g.data) != null && F.result) && typeof window != "undefined" && typeof window.gdp == "function" && window.gdp("track", "submitAuthCode", {
|
|
308
327
|
verifyCode: (_ = g == null ? void 0 : g.data) == null ? void 0 : _.verifyCode,
|
|
309
328
|
registerEntry_var: sessionStorage.getItem("_GIO-registerEntry") || "-"
|
|
310
329
|
}), (g == null ? void 0 : g.code) === 401 && e.onUnauthorized && e.onUnauthorized(), { data: g, status: w };
|
|
311
330
|
} catch (S) {
|
|
312
|
-
const
|
|
313
|
-
return (
|
|
331
|
+
const A = ((b = S == null ? void 0 : S.response) == null ? void 0 : b._data) || (S == null ? void 0 : S.data);
|
|
332
|
+
return (A == null ? void 0 : A.code) === 401 && e.onUnauthorized && e.onUnauthorized(), Promise.reject(S);
|
|
314
333
|
}
|
|
315
|
-
};
|
|
334
|
+
});
|
|
316
335
|
return {
|
|
317
336
|
get: (x, f) => r(x, "GET", void 0, f),
|
|
318
|
-
post: (x, f,
|
|
337
|
+
post: (x, f, y) => r(x, "POST", f, y)
|
|
319
338
|
};
|
|
320
339
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
t += zt[n[e] & 63];
|
|
326
|
-
return t;
|
|
327
|
-
};
|
|
328
|
-
const Ne = "clientId", Oe = "sessionClientId";
|
|
329
|
-
function Ht() {
|
|
330
|
-
return Tt();
|
|
340
|
+
let Wt = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, n) => (n &= 63, n < 36 ? t += n.toString(36) : n < 62 ? t += (n - 26).toString(36).toUpperCase() : n > 62 ? t += "-" : t += "_", t), "");
|
|
341
|
+
const Ge = "clientId", je = "sessionClientId";
|
|
342
|
+
function Ut() {
|
|
343
|
+
return Wt();
|
|
331
344
|
}
|
|
332
|
-
function
|
|
333
|
-
return typeof localStorage == "undefined" ? null : localStorage.getItem(
|
|
345
|
+
function rt() {
|
|
346
|
+
return typeof localStorage == "undefined" ? null : localStorage.getItem(Ge);
|
|
334
347
|
}
|
|
335
|
-
function
|
|
336
|
-
return typeof sessionStorage == "undefined" ? null : sessionStorage.getItem(
|
|
348
|
+
function tt() {
|
|
349
|
+
return typeof sessionStorage == "undefined" ? null : sessionStorage.getItem(je);
|
|
337
350
|
}
|
|
338
|
-
function
|
|
339
|
-
typeof localStorage != "undefined" && localStorage.setItem(
|
|
351
|
+
function Ri(e) {
|
|
352
|
+
typeof localStorage != "undefined" && localStorage.setItem(Ge, e);
|
|
340
353
|
}
|
|
341
|
-
function
|
|
342
|
-
typeof sessionStorage != "undefined" && sessionStorage.setItem(
|
|
354
|
+
function Gt(e) {
|
|
355
|
+
typeof sessionStorage != "undefined" && sessionStorage.setItem(je, e);
|
|
343
356
|
}
|
|
344
|
-
function
|
|
345
|
-
const e =
|
|
357
|
+
function nt() {
|
|
358
|
+
const e = rt();
|
|
346
359
|
if (e)
|
|
347
360
|
return e;
|
|
348
|
-
const t =
|
|
361
|
+
const t = tt();
|
|
349
362
|
if (t)
|
|
350
363
|
return t;
|
|
351
|
-
const n =
|
|
352
|
-
return
|
|
364
|
+
const n = Ut();
|
|
365
|
+
return Gt(n), n;
|
|
353
366
|
}
|
|
354
|
-
function
|
|
355
|
-
typeof localStorage != "undefined" && localStorage.removeItem(
|
|
367
|
+
function zi() {
|
|
368
|
+
typeof localStorage != "undefined" && localStorage.removeItem(Ge), typeof sessionStorage != "undefined" && sessionStorage.removeItem(je);
|
|
356
369
|
}
|
|
357
|
-
function
|
|
358
|
-
return
|
|
370
|
+
function Ti() {
|
|
371
|
+
return rt() || tt() || null;
|
|
359
372
|
}
|
|
360
|
-
function
|
|
373
|
+
function jt(e, t = {}) {
|
|
361
374
|
const { headerName: n = "client-uid" } = t;
|
|
362
375
|
e.interceptors.request.use((r) => {
|
|
363
|
-
const x =
|
|
376
|
+
const x = nt();
|
|
364
377
|
return r.headers[n] = x, r;
|
|
365
378
|
});
|
|
366
379
|
}
|
|
367
|
-
let
|
|
368
|
-
function
|
|
369
|
-
const { prefixPath: t } =
|
|
380
|
+
let Ie = !1, ke = [];
|
|
381
|
+
function Kt(e = {}) {
|
|
382
|
+
const { prefixPath: t } = a0(), n = ar.create({
|
|
370
383
|
baseURL: e.baseURL || t || "",
|
|
371
384
|
timeout: 15e3
|
|
372
385
|
});
|
|
373
|
-
return
|
|
386
|
+
return jt(n, {
|
|
374
387
|
headerName: "client-uid"
|
|
375
|
-
}), n.interceptors.request.use(
|
|
388
|
+
}), n.interceptors.request.use((r) => V(null, null, function* () {
|
|
376
389
|
var a;
|
|
377
|
-
const x =
|
|
390
|
+
const x = Yr(), f = Zr(), y = Jr(), h = Qr(), i = r.headers["app-id"] || r.headers["APP-ID"] || x;
|
|
378
391
|
r.headers["APP-ID"] = i, r.headers["Accept-Language"] = h || "en-US";
|
|
379
|
-
const o =
|
|
380
|
-
|
|
381
|
-
),
|
|
382
|
-
|
|
392
|
+
const o = ge(
|
|
393
|
+
Ee("_GIO-registerEntry")
|
|
394
|
+
), B = ge(
|
|
395
|
+
Ee("_GIO-pageCode")
|
|
383
396
|
);
|
|
384
|
-
if (!r.headers.entry && o && (r.headers.entry = o), !r.headers.pageCode && !r.headers["page-code"] &&
|
|
385
|
-
const u =
|
|
386
|
-
if (d && u > 0 && u -
|
|
387
|
-
return
|
|
397
|
+
if (!r.headers.entry && o && (r.headers.entry = o), !r.headers.pageCode && !r.headers["page-code"] && B && (r.headers.pageCode = B), r.headers["app-id"] && delete r.headers["app-id"], f && (r.headers["popular-channel"] = f), y && ((a = r.headers) == null ? void 0 : a.isToken) !== !1) {
|
|
398
|
+
const u = Ot(), d = Nt(), C = Date.now(), v = 300 * 1e3;
|
|
399
|
+
if (d && u > 0 && u - C <= v && u - C > 0)
|
|
400
|
+
return Ie || (Ie = !0, ar.post(
|
|
388
401
|
`${n.defaults.baseURL}/auth/refreshToken`,
|
|
389
402
|
{ refreshToken: d },
|
|
390
403
|
{ headers: { "APP-ID": i } }
|
|
391
404
|
).then((E) => {
|
|
392
405
|
if (E.data.code === 0) {
|
|
393
|
-
|
|
406
|
+
$e(E.data.data);
|
|
394
407
|
const s = E.data.data.accessToken;
|
|
395
|
-
|
|
408
|
+
ke.forEach((c) => c(s)), ke = [];
|
|
396
409
|
}
|
|
397
410
|
}).finally(() => {
|
|
398
|
-
|
|
411
|
+
Ie = !1;
|
|
399
412
|
})), new Promise((E) => {
|
|
400
|
-
|
|
413
|
+
ke.push((s) => {
|
|
401
414
|
r.headers.Authorization = `Bearer ${s}`, E(r);
|
|
402
415
|
});
|
|
403
416
|
});
|
|
404
|
-
r.headers.Authorization = `Bearer ${
|
|
417
|
+
r.headers.Authorization = `Bearer ${y}`;
|
|
405
418
|
}
|
|
406
419
|
return r;
|
|
407
|
-
}), n.interceptors.response.use(
|
|
420
|
+
})), n.interceptors.response.use(
|
|
408
421
|
(r) => {
|
|
409
|
-
const { code: x, data: f } = r.data,
|
|
410
|
-
return
|
|
422
|
+
const { code: x, data: f } = r.data, y = qt(r.config);
|
|
423
|
+
return Vr.has(y) && (f != null && f.result) && $e(f.result), f.verifyCode && f.result && typeof window != "undefined" && typeof window.gdp == "function" && window.gdp("track", "submitAuthCode", {
|
|
411
424
|
verifyCode: f.verifyCode,
|
|
412
425
|
registerEntry_var: sessionStorage.getItem("_GIO-registerEntry") || "-"
|
|
413
426
|
}), x === 401 && e.onUnauthorized && e.onUnauthorized(), r;
|
|
414
427
|
},
|
|
415
428
|
(r) => Promise.reject(r)
|
|
416
429
|
), {
|
|
417
|
-
get: (r, x) => n.get(r, {
|
|
418
|
-
post: (r, x, f) => n.post(r, x, {
|
|
430
|
+
get: (r, x) => n.get(r, z({}, x)).then((f) => ({ data: f.data, status: f.status })),
|
|
431
|
+
post: (r, x, f) => n.post(r, x, z({}, f)).then((y) => ({ data: y.data, status: y.status }))
|
|
419
432
|
};
|
|
420
433
|
}
|
|
421
|
-
function
|
|
422
|
-
return
|
|
434
|
+
function it(e) {
|
|
435
|
+
return Kt(e);
|
|
423
436
|
}
|
|
424
|
-
function
|
|
437
|
+
function Xt() {
|
|
425
438
|
const e = typeof globalThis != "undefined" && typeof globalThis.fetch == "function" ? globalThis.fetch.bind(globalThis) : void 0;
|
|
426
|
-
return e ?
|
|
439
|
+
return e ? et({ fetch: e }) : it();
|
|
427
440
|
}
|
|
428
|
-
let
|
|
429
|
-
function
|
|
430
|
-
return e === "fetch" ?
|
|
441
|
+
let k0 = Xt();
|
|
442
|
+
function Hi(e, t) {
|
|
443
|
+
return e === "fetch" ? k0 = et(t) : k0 = it(t), k0;
|
|
431
444
|
}
|
|
432
|
-
const
|
|
433
|
-
get: (...e) =>
|
|
434
|
-
post: (...e) =>
|
|
435
|
-
},
|
|
445
|
+
const n0 = {
|
|
446
|
+
get: (...e) => k0.get(...e),
|
|
447
|
+
post: (...e) => k0.post(...e)
|
|
448
|
+
}, Mt = () => a0().oldBasePath, Vt = {
|
|
436
449
|
Continent: "continentId",
|
|
437
450
|
Country: "countryId",
|
|
438
451
|
City: "cityId",
|
|
439
452
|
Province: "provinceId",
|
|
440
453
|
Seaport: "seaportId",
|
|
441
454
|
Airport: "airportId"
|
|
442
|
-
},
|
|
455
|
+
}, Zt = [
|
|
443
456
|
"City",
|
|
444
457
|
"Seaport",
|
|
445
458
|
"Airport",
|
|
446
459
|
"Country",
|
|
447
460
|
"Region"
|
|
448
461
|
].filter(Boolean);
|
|
449
|
-
function
|
|
462
|
+
function A0(e, t) {
|
|
450
463
|
return e === "allCityByCountryId" ? Array.isArray(t) ? String(t[0]) : String(t) : Array.isArray(t) ? JSON.stringify(t) : JSON.stringify([Number(t)]);
|
|
451
464
|
}
|
|
452
|
-
function
|
|
465
|
+
function Qt(e) {
|
|
453
466
|
const t = [];
|
|
454
467
|
if (e.ids)
|
|
455
468
|
for (const n of e.ids) {
|
|
456
|
-
const r =
|
|
469
|
+
const r = Vt[n.type];
|
|
457
470
|
t.push({
|
|
458
471
|
name: r,
|
|
459
|
-
val:
|
|
472
|
+
val: A0(r, n.ids)
|
|
460
473
|
});
|
|
461
474
|
}
|
|
462
475
|
return e.scope && (e.scope.countryId !== void 0 && e.scope.countryId !== null && t.push({
|
|
463
476
|
name: "countryId",
|
|
464
|
-
val:
|
|
477
|
+
val: A0("countryId", [e.scope.countryId])
|
|
465
478
|
}), e.scope.cityId !== void 0 && e.scope.cityId !== null && t.push({
|
|
466
479
|
name: "cityId",
|
|
467
|
-
val:
|
|
480
|
+
val: A0("cityId", [e.scope.cityId])
|
|
468
481
|
}), e.scope.provinceId !== void 0 && e.scope.provinceId !== null && t.push({
|
|
469
482
|
name: "provinceId",
|
|
470
|
-
val:
|
|
483
|
+
val: A0("provinceId", [e.scope.provinceId])
|
|
471
484
|
})), t;
|
|
472
485
|
}
|
|
473
|
-
function
|
|
474
|
-
var r, x, f,
|
|
486
|
+
function f0(e) {
|
|
487
|
+
var r, x, f, y;
|
|
475
488
|
const t = {
|
|
476
489
|
current: (r = e.page) != null ? r : 1,
|
|
477
490
|
size: (x = e.size) != null ? x : 10,
|
|
478
491
|
level: e.level,
|
|
479
492
|
searchContent: (f = e.keyword) != null ? f : void 0,
|
|
480
|
-
displayInfo: (
|
|
493
|
+
displayInfo: (y = e.displayInfo) != null ? y : Zt,
|
|
481
494
|
sort: e.sort
|
|
482
|
-
}, n =
|
|
495
|
+
}, n = Qt({
|
|
483
496
|
ids: e.ids,
|
|
484
497
|
scope: e.scope
|
|
485
498
|
});
|
|
@@ -487,57 +500,57 @@ function a0(e) {
|
|
|
487
500
|
t[h] === void 0 && delete t[h];
|
|
488
501
|
}), t;
|
|
489
502
|
}
|
|
490
|
-
function
|
|
491
|
-
const r =
|
|
492
|
-
var u, d,
|
|
503
|
+
function Yt(e, t, n) {
|
|
504
|
+
const r = Gr(), x = (i, o) => {
|
|
505
|
+
var u, d, C;
|
|
493
506
|
if (!i) return "";
|
|
494
|
-
const
|
|
495
|
-
return r ? a ||
|
|
496
|
-
}, f = x(e, t),
|
|
507
|
+
const B = (d = (u = i.nameCn) != null ? u : i[`${o.toLowerCase()}NameCn`]) != null ? d : i.name, a = (C = i.nameEn) != null ? C : i[`${o.toLowerCase()}NameEn`];
|
|
508
|
+
return r ? a || B || "" : B || a || "";
|
|
509
|
+
}, f = x(e, t), y = x(n.country, "country"), h = x(n.city, "city"), p = x(n.continent, "continent");
|
|
497
510
|
switch (t) {
|
|
498
511
|
case "Seaport":
|
|
499
512
|
case "Airport":
|
|
500
|
-
const i = [h,
|
|
513
|
+
const i = [h, y].filter(Boolean).join(", ");
|
|
501
514
|
return i ? `${f} (${i})` : f;
|
|
502
515
|
case "City":
|
|
503
516
|
case "Province":
|
|
504
|
-
return
|
|
517
|
+
return y ? `${f} (${y})` : f;
|
|
505
518
|
case "Country":
|
|
506
|
-
return
|
|
519
|
+
return p ? `${f} (${p})` : f;
|
|
507
520
|
default:
|
|
508
521
|
return f;
|
|
509
522
|
}
|
|
510
523
|
}
|
|
511
|
-
function
|
|
512
|
-
var f,
|
|
524
|
+
function s0(e = [], t = []) {
|
|
525
|
+
var f, y, h, p;
|
|
513
526
|
const n = [];
|
|
514
|
-
function r(i, o,
|
|
515
|
-
var v, E, s, c, l, D, F, _, b, S,
|
|
527
|
+
function r(i, o, B) {
|
|
528
|
+
var v, E, s, c, l, D, F, _, b, S, A;
|
|
516
529
|
if (!i || !t.includes(o)) return;
|
|
517
530
|
const a = (E = (v = i.id) != null ? v : i[o.toLowerCase() + "Id"]) != null ? E : null;
|
|
518
531
|
if (a == null) return;
|
|
519
|
-
const u = (l = (c = (s = i.nameCn) != null ? s : i[`${o.toLowerCase()}NameCn`]) != null ? c : i.name) != null ? l : void 0, d = (F = (D = i.nameEn) != null ? D : i[`${o.toLowerCase()}NameEn`]) != null ? F : void 0,
|
|
532
|
+
const u = (l = (c = (s = i.nameCn) != null ? s : i[`${o.toLowerCase()}NameCn`]) != null ? c : i.name) != null ? l : void 0, d = (F = (D = i.nameEn) != null ? D : i[`${o.toLowerCase()}NameEn`]) != null ? F : void 0, C = Yt(i, o, B) || u || d || "";
|
|
520
533
|
n.push({
|
|
521
534
|
id: a,
|
|
522
535
|
type: o,
|
|
523
536
|
nameCn: u,
|
|
524
537
|
nameEn: d,
|
|
525
|
-
display:
|
|
526
|
-
continent: (_ =
|
|
527
|
-
country: (b =
|
|
528
|
-
city: (S =
|
|
529
|
-
province: (
|
|
538
|
+
display: C,
|
|
539
|
+
continent: (_ = B.continent) != null ? _ : void 0,
|
|
540
|
+
country: (b = B.country) != null ? b : void 0,
|
|
541
|
+
city: (S = B.city) != null ? S : void 0,
|
|
542
|
+
province: (A = B.province) != null ? A : void 0,
|
|
530
543
|
raw: i
|
|
531
544
|
});
|
|
532
545
|
}
|
|
533
546
|
for (const i of e) {
|
|
534
547
|
const o = {
|
|
535
548
|
continent: (f = i.continent) != null ? f : void 0,
|
|
536
|
-
country: (
|
|
549
|
+
country: (y = i.country) != null ? y : void 0,
|
|
537
550
|
city: (h = i.city) != null ? h : void 0,
|
|
538
|
-
province: (
|
|
551
|
+
province: (p = i.province) != null ? p : void 0
|
|
539
552
|
};
|
|
540
|
-
let
|
|
553
|
+
let B = !1;
|
|
541
554
|
if ([
|
|
542
555
|
"Continent",
|
|
543
556
|
"Country",
|
|
@@ -547,8 +560,8 @@ function o0(e = [], t = []) {
|
|
|
547
560
|
"Airport"
|
|
548
561
|
].forEach((u) => {
|
|
549
562
|
const d = u.toLowerCase();
|
|
550
|
-
i[d] && (r(i[d], u, o),
|
|
551
|
-
}), !
|
|
563
|
+
i[d] && (r(i[d], u, o), B = !0);
|
|
564
|
+
}), !B && i.id !== void 0) {
|
|
552
565
|
let u;
|
|
553
566
|
i.type && t.includes(i.type) ? u = i.type : t.length === 1 && (u = t[0]), u && r(i, u, o);
|
|
554
567
|
}
|
|
@@ -559,120 +572,131 @@ function o0(e = [], t = []) {
|
|
|
559
572
|
return x.has(o) ? !1 : (x.add(o), !0);
|
|
560
573
|
});
|
|
561
574
|
}
|
|
562
|
-
|
|
563
|
-
return (
|
|
575
|
+
function c0(e) {
|
|
576
|
+
return V(this, null, function* () {
|
|
577
|
+
return (yield n0.post(Mt(), e)).data;
|
|
578
|
+
});
|
|
564
579
|
}
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
580
|
+
function Fe(e) {
|
|
581
|
+
return V(this, null, function* () {
|
|
582
|
+
var x;
|
|
583
|
+
const t = f0({
|
|
584
|
+
keyword: e.keyword,
|
|
585
|
+
displayInfo: e.displayInfo,
|
|
586
|
+
page: e.page,
|
|
587
|
+
size: e.size,
|
|
588
|
+
level: e.level,
|
|
589
|
+
sort: e.sort,
|
|
590
|
+
ids: e.ids,
|
|
591
|
+
scope: e.scope,
|
|
592
|
+
extraAppoint: e.extraAppoint
|
|
593
|
+
}), n = yield c0(t), r = s0(
|
|
594
|
+
((x = n.data) == null ? void 0 : x.records) || [],
|
|
595
|
+
t.displayInfo || []
|
|
596
|
+
);
|
|
597
|
+
return U(z({}, n), {
|
|
598
|
+
records: r
|
|
599
|
+
});
|
|
600
|
+
});
|
|
585
601
|
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
602
|
+
function ot(e) {
|
|
603
|
+
return V(this, null, function* () {
|
|
604
|
+
var n;
|
|
605
|
+
if (!((n = e.keyword) != null && n.trim()))
|
|
606
|
+
throw new Error("searchByName: keyword 不能为空");
|
|
607
|
+
const t = e.types && e.types.length > 0 ? e.types : ["Continent", "Country", "City", "Province", "Seaport", "Airport"];
|
|
608
|
+
return Fe({
|
|
609
|
+
keyword: e.keyword.trim(),
|
|
610
|
+
displayInfo: t,
|
|
611
|
+
page: e.page,
|
|
612
|
+
size: e.size,
|
|
613
|
+
level: e.level,
|
|
614
|
+
sort: e.sort
|
|
615
|
+
});
|
|
598
616
|
});
|
|
599
617
|
}
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
var r;
|
|
612
|
-
return (r = (await Kt(e, [t]))[0]) != null ? r : null;
|
|
613
|
-
}
|
|
614
|
-
async function Si(e, t) {
|
|
615
|
-
var f, A;
|
|
616
|
-
const n = ["City"], r = a0({
|
|
617
|
-
displayInfo: n,
|
|
618
|
-
page: (f = t == null ? void 0 : t.page) != null ? f : 1,
|
|
619
|
-
size: (A = t == null ? void 0 : t.size) != null ? A : 1e3,
|
|
620
|
-
extraAppoint: [
|
|
621
|
-
{
|
|
622
|
-
name: "allCityByCountryId",
|
|
623
|
-
val: p0("allCityByCountryId", e)
|
|
624
|
-
}
|
|
625
|
-
]
|
|
626
|
-
}), x = await x0(r);
|
|
627
|
-
return {
|
|
628
|
-
...x,
|
|
629
|
-
records: o0(x.records || [], n)
|
|
630
|
-
};
|
|
618
|
+
function Jt(e, t) {
|
|
619
|
+
return V(this, null, function* () {
|
|
620
|
+
const n = Array.isArray(t) ? t : [t], r = [e], x = f0({
|
|
621
|
+
displayInfo: r,
|
|
622
|
+
ids: [{ type: e, ids: n }]
|
|
623
|
+
}), f = yield c0(x);
|
|
624
|
+
return s0(
|
|
625
|
+
f.records || [],
|
|
626
|
+
r
|
|
627
|
+
).filter((h) => h.type === e);
|
|
628
|
+
});
|
|
631
629
|
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
displayInfo: r,
|
|
638
|
-
page: (A = n == null ? void 0 : n.page) != null ? A : 1,
|
|
639
|
-
size: (h = n == null ? void 0 : n.size) != null ? h : 1e3,
|
|
640
|
-
extraAppoint: [
|
|
641
|
-
{
|
|
642
|
-
name: "cityId",
|
|
643
|
-
val: p0("cityId", [e])
|
|
644
|
-
}
|
|
645
|
-
]
|
|
646
|
-
}), f = await x0(x);
|
|
647
|
-
return {
|
|
648
|
-
...f,
|
|
649
|
-
records: o0(f.records || [], r)
|
|
650
|
-
};
|
|
630
|
+
function $i(e, t) {
|
|
631
|
+
return V(this, null, function* () {
|
|
632
|
+
var r;
|
|
633
|
+
return (r = (yield Jt(e, [t]))[0]) != null ? r : null;
|
|
634
|
+
});
|
|
651
635
|
}
|
|
652
|
-
function
|
|
653
|
-
return
|
|
636
|
+
function Li(e, t) {
|
|
637
|
+
return V(this, null, function* () {
|
|
638
|
+
var f, y;
|
|
639
|
+
const n = ["City"], r = f0({
|
|
640
|
+
displayInfo: n,
|
|
641
|
+
page: (f = t == null ? void 0 : t.page) != null ? f : 1,
|
|
642
|
+
size: (y = t == null ? void 0 : t.size) != null ? y : 1e3,
|
|
643
|
+
extraAppoint: [
|
|
644
|
+
{
|
|
645
|
+
name: "allCityByCountryId",
|
|
646
|
+
val: A0("allCityByCountryId", e)
|
|
647
|
+
}
|
|
648
|
+
]
|
|
649
|
+
}), x = yield c0(r);
|
|
650
|
+
return U(z({}, x), {
|
|
651
|
+
records: s0(x.records || [], n)
|
|
652
|
+
});
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
function qi(e, t, n) {
|
|
656
|
+
return V(this, null, function* () {
|
|
657
|
+
var y, h;
|
|
658
|
+
if (!t || t.length === 0)
|
|
659
|
+
throw new Error("childTypes 必须至少包含一个:Seaport | Airport");
|
|
660
|
+
const r = t, x = f0({
|
|
661
|
+
displayInfo: r,
|
|
662
|
+
page: (y = n == null ? void 0 : n.page) != null ? y : 1,
|
|
663
|
+
size: (h = n == null ? void 0 : n.size) != null ? h : 1e3,
|
|
664
|
+
extraAppoint: [
|
|
665
|
+
{
|
|
666
|
+
name: "cityId",
|
|
667
|
+
val: A0("cityId", [e])
|
|
668
|
+
}
|
|
669
|
+
]
|
|
670
|
+
}), f = yield c0(x);
|
|
671
|
+
return U(z({}, f), {
|
|
672
|
+
records: s0(f.records || [], r)
|
|
673
|
+
});
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
function Ni(e, t) {
|
|
677
|
+
return ot({
|
|
654
678
|
keyword: e,
|
|
655
679
|
types: ["Country"],
|
|
656
680
|
page: t == null ? void 0 : t.page,
|
|
657
681
|
size: t == null ? void 0 : t.size
|
|
658
682
|
});
|
|
659
683
|
}
|
|
660
|
-
function
|
|
661
|
-
return t != null && t.countryId ?
|
|
684
|
+
function Oi(e, t) {
|
|
685
|
+
return t != null && t.countryId ? Fe({
|
|
662
686
|
keyword: e,
|
|
663
687
|
displayInfo: ["City"],
|
|
664
688
|
scope: { countryId: t.countryId },
|
|
665
689
|
page: t.page,
|
|
666
690
|
size: t.size
|
|
667
|
-
}) :
|
|
691
|
+
}) : ot({
|
|
668
692
|
keyword: e,
|
|
669
693
|
types: ["City"],
|
|
670
694
|
page: t == null ? void 0 : t.page,
|
|
671
695
|
size: t == null ? void 0 : t.size
|
|
672
696
|
});
|
|
673
697
|
}
|
|
674
|
-
function
|
|
675
|
-
return
|
|
698
|
+
function Wi(e, t) {
|
|
699
|
+
return Fe({
|
|
676
700
|
keyword: e,
|
|
677
701
|
displayInfo: ["Seaport"],
|
|
678
702
|
scope: t != null && t.cityId ? { cityId: t.cityId } : void 0,
|
|
@@ -680,8 +704,8 @@ function Ti(e, t) {
|
|
|
680
704
|
size: t == null ? void 0 : t.size
|
|
681
705
|
});
|
|
682
706
|
}
|
|
683
|
-
function
|
|
684
|
-
return
|
|
707
|
+
function Ui(e, t) {
|
|
708
|
+
return Fe({
|
|
685
709
|
keyword: e,
|
|
686
710
|
displayInfo: ["Airport"],
|
|
687
711
|
scope: t != null && t.cityId ? { cityId: t.cityId } : void 0,
|
|
@@ -689,93 +713,99 @@ function Hi(e, t) {
|
|
|
689
713
|
size: t == null ? void 0 : t.size
|
|
690
714
|
});
|
|
691
715
|
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
716
|
+
function Gi() {
|
|
717
|
+
return V(this, arguments, function* (e = {}) {
|
|
718
|
+
var r, x;
|
|
719
|
+
const t = ["Continent"], n = yield c0({
|
|
720
|
+
current: (r = e.page) != null ? r : 1,
|
|
721
|
+
size: (x = e.size) != null ? x : 10,
|
|
722
|
+
level: 1,
|
|
723
|
+
displayInfo: t
|
|
724
|
+
});
|
|
725
|
+
return U(z({}, n), {
|
|
726
|
+
records: s0(n.records || [], t)
|
|
727
|
+
});
|
|
699
728
|
});
|
|
700
|
-
return {
|
|
701
|
-
...n,
|
|
702
|
-
records: o0(n.records || [], t)
|
|
703
|
-
};
|
|
704
729
|
}
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
730
|
+
function ji() {
|
|
731
|
+
return V(this, arguments, function* (e = {}) {
|
|
732
|
+
var x, f;
|
|
733
|
+
const t = ["Country"], n = f0({
|
|
734
|
+
displayInfo: t,
|
|
735
|
+
page: (x = e.page) != null ? x : 1,
|
|
736
|
+
size: (f = e.size) != null ? f : 10,
|
|
737
|
+
ids: e.ids ? [{ type: "Country", ids: e.ids }] : void 0
|
|
738
|
+
}), r = yield c0(n);
|
|
739
|
+
return U(z({}, r), {
|
|
740
|
+
records: s0(r.records || [], t)
|
|
741
|
+
});
|
|
742
|
+
});
|
|
717
743
|
}
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
744
|
+
function Ki() {
|
|
745
|
+
return V(this, arguments, function* (e = {}) {
|
|
746
|
+
var x, f;
|
|
747
|
+
const t = ["City"], n = f0({
|
|
748
|
+
displayInfo: t,
|
|
749
|
+
page: (x = e.page) != null ? x : 1,
|
|
750
|
+
size: (f = e.size) != null ? f : 10,
|
|
751
|
+
ids: e.ids ? [{ type: "City", ids: e.ids }] : void 0,
|
|
752
|
+
scope: e.countryId ? { countryId: e.countryId } : void 0
|
|
753
|
+
}), r = yield c0(n);
|
|
754
|
+
return U(z({}, r), {
|
|
755
|
+
records: s0(r.records || [], t)
|
|
756
|
+
});
|
|
757
|
+
});
|
|
731
758
|
}
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
759
|
+
function Xi() {
|
|
760
|
+
return V(this, arguments, function* (e = {}) {
|
|
761
|
+
var x, f;
|
|
762
|
+
const t = ["Province"], n = f0({
|
|
763
|
+
displayInfo: t,
|
|
764
|
+
page: (x = e.page) != null ? x : 1,
|
|
765
|
+
size: (f = e.size) != null ? f : 10,
|
|
766
|
+
ids: e.ids ? [{ type: "Province", ids: e.ids }] : void 0,
|
|
767
|
+
scope: e.countryId ? { countryId: e.countryId } : void 0
|
|
768
|
+
}), r = yield c0(n);
|
|
769
|
+
return U(z({}, r), {
|
|
770
|
+
records: s0(r.records || [], t)
|
|
771
|
+
});
|
|
772
|
+
});
|
|
745
773
|
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
774
|
+
function Mi() {
|
|
775
|
+
return V(this, arguments, function* (e = {}) {
|
|
776
|
+
var x, f;
|
|
777
|
+
const t = ["Seaport"], n = f0({
|
|
778
|
+
displayInfo: t,
|
|
779
|
+
page: (x = e.page) != null ? x : 1,
|
|
780
|
+
size: (f = e.size) != null ? f : 10,
|
|
781
|
+
ids: e.ids ? [{ type: "Seaport", ids: e.ids }] : void 0,
|
|
782
|
+
scope: e.cityId ? { cityId: e.cityId } : e.countryId ? { countryId: e.countryId } : void 0
|
|
783
|
+
}), r = yield c0(n);
|
|
784
|
+
return U(z({}, r), {
|
|
785
|
+
records: s0(r.records || [], t)
|
|
786
|
+
});
|
|
787
|
+
});
|
|
759
788
|
}
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
789
|
+
function Vi() {
|
|
790
|
+
return V(this, arguments, function* (e = {}) {
|
|
791
|
+
var x, f;
|
|
792
|
+
const t = ["Airport"], n = f0({
|
|
793
|
+
displayInfo: t,
|
|
794
|
+
page: (x = e.page) != null ? x : 1,
|
|
795
|
+
size: (f = e.size) != null ? f : 10,
|
|
796
|
+
ids: e.ids ? [{ type: "Airport", ids: e.ids }] : void 0,
|
|
797
|
+
scope: e.cityId ? { cityId: e.cityId } : e.countryId ? { countryId: e.countryId } : void 0
|
|
798
|
+
}), r = yield c0(n);
|
|
799
|
+
return U(z({}, r), {
|
|
800
|
+
records: s0(r.records || [], t)
|
|
801
|
+
});
|
|
802
|
+
});
|
|
773
803
|
}
|
|
774
|
-
var
|
|
775
|
-
function
|
|
804
|
+
var Se = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
805
|
+
function en(e) {
|
|
776
806
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
777
807
|
}
|
|
778
|
-
function
|
|
808
|
+
function rn(e) {
|
|
779
809
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
780
810
|
var t = e.default;
|
|
781
811
|
if (typeof t == "function") {
|
|
@@ -783,7 +813,7 @@ function Mt(e) {
|
|
|
783
813
|
var x = !1;
|
|
784
814
|
try {
|
|
785
815
|
x = this instanceof r;
|
|
786
|
-
} catch {
|
|
816
|
+
} catch (f) {
|
|
787
817
|
}
|
|
788
818
|
return x ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
|
|
789
819
|
};
|
|
@@ -799,39 +829,39 @@ function Mt(e) {
|
|
|
799
829
|
});
|
|
800
830
|
}), n;
|
|
801
831
|
}
|
|
802
|
-
var
|
|
803
|
-
function
|
|
832
|
+
var q0 = { exports: {} };
|
|
833
|
+
function tn(e) {
|
|
804
834
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
805
835
|
}
|
|
806
|
-
var
|
|
807
|
-
const
|
|
836
|
+
var N0 = { exports: {} };
|
|
837
|
+
const nn = {}, on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
808
838
|
__proto__: null,
|
|
809
|
-
default:
|
|
810
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
811
|
-
var
|
|
812
|
-
function
|
|
813
|
-
return
|
|
839
|
+
default: nn
|
|
840
|
+
}, Symbol.toStringTag, { value: "Module" })), xn = /* @__PURE__ */ rn(on);
|
|
841
|
+
var an = N0.exports, sr;
|
|
842
|
+
function q() {
|
|
843
|
+
return sr || (sr = 1, (function(e, t) {
|
|
814
844
|
(function(n, r) {
|
|
815
845
|
e.exports = r();
|
|
816
|
-
})(
|
|
846
|
+
})(an, function() {
|
|
817
847
|
var n = n || (function(r, x) {
|
|
818
848
|
var f;
|
|
819
|
-
if (typeof window != "undefined" && window.crypto && (f = window.crypto), typeof self != "undefined" && self.crypto && (f = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (f = globalThis.crypto), !f && typeof window != "undefined" && window.msCrypto && (f = window.msCrypto), !f && typeof
|
|
849
|
+
if (typeof window != "undefined" && window.crypto && (f = window.crypto), typeof self != "undefined" && self.crypto && (f = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (f = globalThis.crypto), !f && typeof window != "undefined" && window.msCrypto && (f = window.msCrypto), !f && typeof Se != "undefined" && Se.crypto && (f = Se.crypto), !f && typeof tn == "function")
|
|
820
850
|
try {
|
|
821
|
-
f =
|
|
822
|
-
} catch {
|
|
851
|
+
f = xn;
|
|
852
|
+
} catch (s) {
|
|
823
853
|
}
|
|
824
|
-
var
|
|
854
|
+
var y = function() {
|
|
825
855
|
if (f) {
|
|
826
856
|
if (typeof f.getRandomValues == "function")
|
|
827
857
|
try {
|
|
828
858
|
return f.getRandomValues(new Uint32Array(1))[0];
|
|
829
|
-
} catch {
|
|
859
|
+
} catch (s) {
|
|
830
860
|
}
|
|
831
861
|
if (typeof f.randomBytes == "function")
|
|
832
862
|
try {
|
|
833
863
|
return f.randomBytes(4).readInt32LE();
|
|
834
|
-
} catch {
|
|
864
|
+
} catch (s) {
|
|
835
865
|
}
|
|
836
866
|
}
|
|
837
867
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
@@ -842,7 +872,7 @@ function L() {
|
|
|
842
872
|
var l;
|
|
843
873
|
return s.prototype = c, l = new s(), s.prototype = null, l;
|
|
844
874
|
};
|
|
845
|
-
})(),
|
|
875
|
+
})(), p = {}, i = p.lib = {}, o = i.Base = /* @__PURE__ */ (function() {
|
|
846
876
|
return {
|
|
847
877
|
/**
|
|
848
878
|
* Creates a new object that inherits from this object.
|
|
@@ -927,7 +957,7 @@ function L() {
|
|
|
927
957
|
return this.init.prototype.extend(this);
|
|
928
958
|
}
|
|
929
959
|
};
|
|
930
|
-
})(),
|
|
960
|
+
})(), B = i.WordArray = o.extend({
|
|
931
961
|
/**
|
|
932
962
|
* Initializes a newly created word array.
|
|
933
963
|
*
|
|
@@ -1021,10 +1051,10 @@ function L() {
|
|
|
1021
1051
|
*/
|
|
1022
1052
|
random: function(s) {
|
|
1023
1053
|
for (var c = [], l = 0; l < s; l += 4)
|
|
1024
|
-
c.push(
|
|
1025
|
-
return new
|
|
1054
|
+
c.push(y());
|
|
1055
|
+
return new B.init(c, s);
|
|
1026
1056
|
}
|
|
1027
|
-
}), a =
|
|
1057
|
+
}), a = p.enc = {}, u = a.Hex = {
|
|
1028
1058
|
/**
|
|
1029
1059
|
* Converts a word array to a hex string.
|
|
1030
1060
|
*
|
|
@@ -1061,7 +1091,7 @@ function L() {
|
|
|
1061
1091
|
parse: function(s) {
|
|
1062
1092
|
for (var c = s.length, l = [], D = 0; D < c; D += 2)
|
|
1063
1093
|
l[D >>> 3] |= parseInt(s.substr(D, 2), 16) << 24 - D % 8 * 4;
|
|
1064
|
-
return new
|
|
1094
|
+
return new B.init(l, c / 2);
|
|
1065
1095
|
}
|
|
1066
1096
|
}, d = a.Latin1 = {
|
|
1067
1097
|
/**
|
|
@@ -1100,9 +1130,9 @@ function L() {
|
|
|
1100
1130
|
parse: function(s) {
|
|
1101
1131
|
for (var c = s.length, l = [], D = 0; D < c; D++)
|
|
1102
1132
|
l[D >>> 2] |= (s.charCodeAt(D) & 255) << 24 - D % 4 * 8;
|
|
1103
|
-
return new
|
|
1133
|
+
return new B.init(l, c);
|
|
1104
1134
|
}
|
|
1105
|
-
},
|
|
1135
|
+
}, C = a.Utf8 = {
|
|
1106
1136
|
/**
|
|
1107
1137
|
* Converts a word array to a UTF-8 string.
|
|
1108
1138
|
*
|
|
@@ -1119,7 +1149,7 @@ function L() {
|
|
|
1119
1149
|
stringify: function(s) {
|
|
1120
1150
|
try {
|
|
1121
1151
|
return decodeURIComponent(escape(d.stringify(s)));
|
|
1122
|
-
} catch {
|
|
1152
|
+
} catch (c) {
|
|
1123
1153
|
throw new Error("Malformed UTF-8 data");
|
|
1124
1154
|
}
|
|
1125
1155
|
},
|
|
@@ -1148,7 +1178,7 @@ function L() {
|
|
|
1148
1178
|
* bufferedBlockAlgorithm.reset();
|
|
1149
1179
|
*/
|
|
1150
1180
|
reset: function() {
|
|
1151
|
-
this._data = new
|
|
1181
|
+
this._data = new B.init(), this._nDataBytes = 0;
|
|
1152
1182
|
},
|
|
1153
1183
|
/**
|
|
1154
1184
|
* Adds new data to this block algorithm's buffer.
|
|
@@ -1161,7 +1191,7 @@ function L() {
|
|
|
1161
1191
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
1162
1192
|
*/
|
|
1163
1193
|
_append: function(s) {
|
|
1164
|
-
typeof s == "string" && (s =
|
|
1194
|
+
typeof s == "string" && (s = C.parse(s)), this._data.concat(s), this._nDataBytes += s.sigBytes;
|
|
1165
1195
|
},
|
|
1166
1196
|
/**
|
|
1167
1197
|
* Processes available data blocks.
|
|
@@ -1180,13 +1210,13 @@ function L() {
|
|
|
1180
1210
|
_process: function(s) {
|
|
1181
1211
|
var c, l = this._data, D = l.words, F = l.sigBytes, _ = this.blockSize, b = _ * 4, S = F / b;
|
|
1182
1212
|
s ? S = r.ceil(S) : S = r.max((S | 0) - this._minBufferSize, 0);
|
|
1183
|
-
var
|
|
1184
|
-
if (
|
|
1185
|
-
for (var w = 0; w <
|
|
1213
|
+
var A = S * _, g = r.min(A * 4, F);
|
|
1214
|
+
if (A) {
|
|
1215
|
+
for (var w = 0; w < A; w += _)
|
|
1186
1216
|
this._doProcessBlock(D, w);
|
|
1187
|
-
c = D.splice(0,
|
|
1217
|
+
c = D.splice(0, A), l.sigBytes -= g;
|
|
1188
1218
|
}
|
|
1189
|
-
return new
|
|
1219
|
+
return new B.init(c, g);
|
|
1190
1220
|
},
|
|
1191
1221
|
/**
|
|
1192
1222
|
* Creates a copy of this object.
|
|
@@ -1302,22 +1332,22 @@ function L() {
|
|
|
1302
1332
|
};
|
|
1303
1333
|
}
|
|
1304
1334
|
});
|
|
1305
|
-
var E =
|
|
1306
|
-
return
|
|
1335
|
+
var E = p.algo = {};
|
|
1336
|
+
return p;
|
|
1307
1337
|
})(Math);
|
|
1308
1338
|
return n;
|
|
1309
1339
|
});
|
|
1310
|
-
})(
|
|
1340
|
+
})(N0)), N0.exports;
|
|
1311
1341
|
}
|
|
1312
|
-
var
|
|
1313
|
-
function
|
|
1314
|
-
return
|
|
1342
|
+
var O0 = { exports: {} }, sn = O0.exports, cr;
|
|
1343
|
+
function De() {
|
|
1344
|
+
return cr || (cr = 1, (function(e, t) {
|
|
1315
1345
|
(function(n, r) {
|
|
1316
|
-
e.exports = r(
|
|
1317
|
-
})(
|
|
1346
|
+
e.exports = r(q());
|
|
1347
|
+
})(sn, function(n) {
|
|
1318
1348
|
return (function(r) {
|
|
1319
|
-
var x = n, f = x.lib,
|
|
1320
|
-
|
|
1349
|
+
var x = n, f = x.lib, y = f.Base, h = f.WordArray, p = x.x64 = {};
|
|
1350
|
+
p.Word = y.extend({
|
|
1321
1351
|
/**
|
|
1322
1352
|
* Initializes a newly created 64-bit word.
|
|
1323
1353
|
*
|
|
@@ -1480,7 +1510,7 @@ function Ee() {
|
|
|
1480
1510
|
// var high = (this.high + word.high + carry) | 0;
|
|
1481
1511
|
// return X64Word.create(high, low);
|
|
1482
1512
|
// }
|
|
1483
|
-
}),
|
|
1513
|
+
}), p.WordArray = y.extend({
|
|
1484
1514
|
/**
|
|
1485
1515
|
* Initializes a newly created word array.
|
|
1486
1516
|
*
|
|
@@ -1514,11 +1544,11 @@ function Ee() {
|
|
|
1514
1544
|
* var x32WordArray = x64WordArray.toX32();
|
|
1515
1545
|
*/
|
|
1516
1546
|
toX32: function() {
|
|
1517
|
-
for (var i = this.words, o = i.length,
|
|
1547
|
+
for (var i = this.words, o = i.length, B = [], a = 0; a < o; a++) {
|
|
1518
1548
|
var u = i[a];
|
|
1519
|
-
|
|
1549
|
+
B.push(u.high), B.push(u.low);
|
|
1520
1550
|
}
|
|
1521
|
-
return h.create(
|
|
1551
|
+
return h.create(B, this.sigBytes);
|
|
1522
1552
|
},
|
|
1523
1553
|
/**
|
|
1524
1554
|
* Creates a copy of this word array.
|
|
@@ -1530,46 +1560,46 @@ function Ee() {
|
|
|
1530
1560
|
* var clone = x64WordArray.clone();
|
|
1531
1561
|
*/
|
|
1532
1562
|
clone: function() {
|
|
1533
|
-
for (var i =
|
|
1563
|
+
for (var i = y.clone.call(this), o = i.words = this.words.slice(0), B = o.length, a = 0; a < B; a++)
|
|
1534
1564
|
o[a] = o[a].clone();
|
|
1535
1565
|
return i;
|
|
1536
1566
|
}
|
|
1537
1567
|
});
|
|
1538
1568
|
})(), n;
|
|
1539
1569
|
});
|
|
1540
|
-
})(
|
|
1570
|
+
})(O0)), O0.exports;
|
|
1541
1571
|
}
|
|
1542
|
-
var
|
|
1543
|
-
function
|
|
1544
|
-
return
|
|
1572
|
+
var W0 = { exports: {} }, cn = W0.exports, fr;
|
|
1573
|
+
function fn() {
|
|
1574
|
+
return fr || (fr = 1, (function(e, t) {
|
|
1545
1575
|
(function(n, r) {
|
|
1546
|
-
e.exports = r(
|
|
1547
|
-
})(
|
|
1576
|
+
e.exports = r(q());
|
|
1577
|
+
})(cn, function(n) {
|
|
1548
1578
|
return (function() {
|
|
1549
1579
|
if (typeof ArrayBuffer == "function") {
|
|
1550
|
-
var r = n, x = r.lib, f = x.WordArray,
|
|
1551
|
-
if (
|
|
1552
|
-
for (var i =
|
|
1553
|
-
o[
|
|
1554
|
-
|
|
1580
|
+
var r = n, x = r.lib, f = x.WordArray, y = f.init, h = f.init = function(p) {
|
|
1581
|
+
if (p instanceof ArrayBuffer && (p = new Uint8Array(p)), (p instanceof Int8Array || typeof Uint8ClampedArray != "undefined" && p instanceof Uint8ClampedArray || p instanceof Int16Array || p instanceof Uint16Array || p instanceof Int32Array || p instanceof Uint32Array || p instanceof Float32Array || p instanceof Float64Array) && (p = new Uint8Array(p.buffer, p.byteOffset, p.byteLength)), p instanceof Uint8Array) {
|
|
1582
|
+
for (var i = p.byteLength, o = [], B = 0; B < i; B++)
|
|
1583
|
+
o[B >>> 2] |= p[B] << 24 - B % 4 * 8;
|
|
1584
|
+
y.call(this, o, i);
|
|
1555
1585
|
} else
|
|
1556
|
-
|
|
1586
|
+
y.apply(this, arguments);
|
|
1557
1587
|
};
|
|
1558
1588
|
h.prototype = f;
|
|
1559
1589
|
}
|
|
1560
1590
|
})(), n.lib.WordArray;
|
|
1561
1591
|
});
|
|
1562
|
-
})(
|
|
1592
|
+
})(W0)), W0.exports;
|
|
1563
1593
|
}
|
|
1564
|
-
var
|
|
1565
|
-
function
|
|
1566
|
-
return
|
|
1594
|
+
var U0 = { exports: {} }, dn = U0.exports, dr;
|
|
1595
|
+
function un() {
|
|
1596
|
+
return dr || (dr = 1, (function(e, t) {
|
|
1567
1597
|
(function(n, r) {
|
|
1568
|
-
e.exports = r(
|
|
1569
|
-
})(
|
|
1598
|
+
e.exports = r(q());
|
|
1599
|
+
})(dn, function(n) {
|
|
1570
1600
|
return (function() {
|
|
1571
|
-
var r = n, x = r.lib, f = x.WordArray,
|
|
1572
|
-
|
|
1601
|
+
var r = n, x = r.lib, f = x.WordArray, y = r.enc;
|
|
1602
|
+
y.Utf16 = y.Utf16BE = {
|
|
1573
1603
|
/**
|
|
1574
1604
|
* Converts a word array to a UTF-16 BE string.
|
|
1575
1605
|
*
|
|
@@ -1583,12 +1613,12 @@ function on() {
|
|
|
1583
1613
|
*
|
|
1584
1614
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
1585
1615
|
*/
|
|
1586
|
-
stringify: function(
|
|
1587
|
-
for (var i =
|
|
1616
|
+
stringify: function(p) {
|
|
1617
|
+
for (var i = p.words, o = p.sigBytes, B = [], a = 0; a < o; a += 2) {
|
|
1588
1618
|
var u = i[a >>> 2] >>> 16 - a % 4 * 8 & 65535;
|
|
1589
|
-
|
|
1619
|
+
B.push(String.fromCharCode(u));
|
|
1590
1620
|
}
|
|
1591
|
-
return
|
|
1621
|
+
return B.join("");
|
|
1592
1622
|
},
|
|
1593
1623
|
/**
|
|
1594
1624
|
* Converts a UTF-16 BE string to a word array.
|
|
@@ -1603,12 +1633,12 @@ function on() {
|
|
|
1603
1633
|
*
|
|
1604
1634
|
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
1605
1635
|
*/
|
|
1606
|
-
parse: function(
|
|
1607
|
-
for (var i =
|
|
1608
|
-
o[
|
|
1636
|
+
parse: function(p) {
|
|
1637
|
+
for (var i = p.length, o = [], B = 0; B < i; B++)
|
|
1638
|
+
o[B >>> 1] |= p.charCodeAt(B) << 16 - B % 2 * 16;
|
|
1609
1639
|
return f.create(o, i * 2);
|
|
1610
1640
|
}
|
|
1611
|
-
},
|
|
1641
|
+
}, y.Utf16LE = {
|
|
1612
1642
|
/**
|
|
1613
1643
|
* Converts a word array to a UTF-16 LE string.
|
|
1614
1644
|
*
|
|
@@ -1622,12 +1652,12 @@ function on() {
|
|
|
1622
1652
|
*
|
|
1623
1653
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
1624
1654
|
*/
|
|
1625
|
-
stringify: function(
|
|
1626
|
-
for (var i =
|
|
1655
|
+
stringify: function(p) {
|
|
1656
|
+
for (var i = p.words, o = p.sigBytes, B = [], a = 0; a < o; a += 2) {
|
|
1627
1657
|
var u = h(i[a >>> 2] >>> 16 - a % 4 * 8 & 65535);
|
|
1628
|
-
|
|
1658
|
+
B.push(String.fromCharCode(u));
|
|
1629
1659
|
}
|
|
1630
|
-
return
|
|
1660
|
+
return B.join("");
|
|
1631
1661
|
},
|
|
1632
1662
|
/**
|
|
1633
1663
|
* Converts a UTF-16 LE string to a word array.
|
|
@@ -1642,28 +1672,28 @@ function on() {
|
|
|
1642
1672
|
*
|
|
1643
1673
|
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
1644
1674
|
*/
|
|
1645
|
-
parse: function(
|
|
1646
|
-
for (var i =
|
|
1647
|
-
o[
|
|
1675
|
+
parse: function(p) {
|
|
1676
|
+
for (var i = p.length, o = [], B = 0; B < i; B++)
|
|
1677
|
+
o[B >>> 1] |= h(p.charCodeAt(B) << 16 - B % 2 * 16);
|
|
1648
1678
|
return f.create(o, i * 2);
|
|
1649
1679
|
}
|
|
1650
1680
|
};
|
|
1651
|
-
function h(
|
|
1652
|
-
return
|
|
1681
|
+
function h(p) {
|
|
1682
|
+
return p << 8 & 4278255360 | p >>> 8 & 16711935;
|
|
1653
1683
|
}
|
|
1654
1684
|
})(), n.enc.Utf16;
|
|
1655
1685
|
});
|
|
1656
|
-
})(
|
|
1686
|
+
})(U0)), U0.exports;
|
|
1657
1687
|
}
|
|
1658
|
-
var
|
|
1659
|
-
function
|
|
1660
|
-
return
|
|
1688
|
+
var G0 = { exports: {} }, hn = G0.exports, ur;
|
|
1689
|
+
function l0() {
|
|
1690
|
+
return ur || (ur = 1, (function(e, t) {
|
|
1661
1691
|
(function(n, r) {
|
|
1662
|
-
e.exports = r(
|
|
1663
|
-
})(
|
|
1692
|
+
e.exports = r(q());
|
|
1693
|
+
})(hn, function(n) {
|
|
1664
1694
|
return (function() {
|
|
1665
|
-
var r = n, x = r.lib, f = x.WordArray,
|
|
1666
|
-
|
|
1695
|
+
var r = n, x = r.lib, f = x.WordArray, y = r.enc;
|
|
1696
|
+
y.Base64 = {
|
|
1667
1697
|
/**
|
|
1668
1698
|
* Converts a word array to a Base64 string.
|
|
1669
1699
|
*
|
|
@@ -1677,13 +1707,13 @@ function d0() {
|
|
|
1677
1707
|
*
|
|
1678
1708
|
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
1679
1709
|
*/
|
|
1680
|
-
stringify: function(
|
|
1681
|
-
var i =
|
|
1682
|
-
|
|
1710
|
+
stringify: function(p) {
|
|
1711
|
+
var i = p.words, o = p.sigBytes, B = this._map;
|
|
1712
|
+
p.clamp();
|
|
1683
1713
|
for (var a = [], u = 0; u < o; u += 3)
|
|
1684
|
-
for (var d = i[u >>> 2] >>> 24 - u % 4 * 8 & 255,
|
|
1685
|
-
a.push(
|
|
1686
|
-
var c =
|
|
1714
|
+
for (var d = i[u >>> 2] >>> 24 - u % 4 * 8 & 255, C = i[u + 1 >>> 2] >>> 24 - (u + 1) % 4 * 8 & 255, v = i[u + 2 >>> 2] >>> 24 - (u + 2) % 4 * 8 & 255, E = d << 16 | C << 8 | v, s = 0; s < 4 && u + s * 0.75 < o; s++)
|
|
1715
|
+
a.push(B.charAt(E >>> 6 * (3 - s) & 63));
|
|
1716
|
+
var c = B.charAt(64);
|
|
1687
1717
|
if (c)
|
|
1688
1718
|
for (; a.length % 4; )
|
|
1689
1719
|
a.push(c);
|
|
@@ -1702,43 +1732,43 @@ function d0() {
|
|
|
1702
1732
|
*
|
|
1703
1733
|
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
1704
1734
|
*/
|
|
1705
|
-
parse: function(
|
|
1706
|
-
var i =
|
|
1707
|
-
if (!
|
|
1708
|
-
|
|
1735
|
+
parse: function(p) {
|
|
1736
|
+
var i = p.length, o = this._map, B = this._reverseMap;
|
|
1737
|
+
if (!B) {
|
|
1738
|
+
B = this._reverseMap = [];
|
|
1709
1739
|
for (var a = 0; a < o.length; a++)
|
|
1710
|
-
|
|
1740
|
+
B[o.charCodeAt(a)] = a;
|
|
1711
1741
|
}
|
|
1712
1742
|
var u = o.charAt(64);
|
|
1713
1743
|
if (u) {
|
|
1714
|
-
var d =
|
|
1744
|
+
var d = p.indexOf(u);
|
|
1715
1745
|
d !== -1 && (i = d);
|
|
1716
1746
|
}
|
|
1717
|
-
return h(
|
|
1747
|
+
return h(p, i, B);
|
|
1718
1748
|
},
|
|
1719
1749
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1720
1750
|
};
|
|
1721
|
-
function h(
|
|
1722
|
-
for (var
|
|
1751
|
+
function h(p, i, o) {
|
|
1752
|
+
for (var B = [], a = 0, u = 0; u < i; u++)
|
|
1723
1753
|
if (u % 4) {
|
|
1724
|
-
var d = o[
|
|
1725
|
-
|
|
1754
|
+
var d = o[p.charCodeAt(u - 1)] << u % 4 * 2, C = o[p.charCodeAt(u)] >>> 6 - u % 4 * 2, v = d | C;
|
|
1755
|
+
B[a >>> 2] |= v << 24 - a % 4 * 8, a++;
|
|
1726
1756
|
}
|
|
1727
|
-
return f.create(
|
|
1757
|
+
return f.create(B, a);
|
|
1728
1758
|
}
|
|
1729
1759
|
})(), n.enc.Base64;
|
|
1730
1760
|
});
|
|
1731
|
-
})(
|
|
1761
|
+
})(G0)), G0.exports;
|
|
1732
1762
|
}
|
|
1733
|
-
var
|
|
1734
|
-
function
|
|
1735
|
-
return
|
|
1763
|
+
var j0 = { exports: {} }, ln = j0.exports, hr;
|
|
1764
|
+
function vn() {
|
|
1765
|
+
return hr || (hr = 1, (function(e, t) {
|
|
1736
1766
|
(function(n, r) {
|
|
1737
|
-
e.exports = r(
|
|
1738
|
-
})(
|
|
1767
|
+
e.exports = r(q());
|
|
1768
|
+
})(ln, function(n) {
|
|
1739
1769
|
return (function() {
|
|
1740
|
-
var r = n, x = r.lib, f = x.WordArray,
|
|
1741
|
-
|
|
1770
|
+
var r = n, x = r.lib, f = x.WordArray, y = r.enc;
|
|
1771
|
+
y.Base64url = {
|
|
1742
1772
|
/**
|
|
1743
1773
|
* Converts a word array to a Base64url string.
|
|
1744
1774
|
*
|
|
@@ -1754,12 +1784,12 @@ function sn() {
|
|
|
1754
1784
|
*
|
|
1755
1785
|
* var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
|
|
1756
1786
|
*/
|
|
1757
|
-
stringify: function(
|
|
1787
|
+
stringify: function(p, i) {
|
|
1758
1788
|
i === void 0 && (i = !0);
|
|
1759
|
-
var o =
|
|
1760
|
-
|
|
1761
|
-
for (var u = [], d = 0; d <
|
|
1762
|
-
for (var
|
|
1789
|
+
var o = p.words, B = p.sigBytes, a = i ? this._safe_map : this._map;
|
|
1790
|
+
p.clamp();
|
|
1791
|
+
for (var u = [], d = 0; d < B; d += 3)
|
|
1792
|
+
for (var C = o[d >>> 2] >>> 24 - d % 4 * 8 & 255, v = o[d + 1 >>> 2] >>> 24 - (d + 1) % 4 * 8 & 255, E = o[d + 2 >>> 2] >>> 24 - (d + 2) % 4 * 8 & 255, s = C << 16 | v << 8 | E, c = 0; c < 4 && d + c * 0.75 < B; c++)
|
|
1763
1793
|
u.push(a.charAt(s >>> 6 * (3 - c) & 63));
|
|
1764
1794
|
var l = a.charAt(64);
|
|
1765
1795
|
if (l)
|
|
@@ -1782,70 +1812,70 @@ function sn() {
|
|
|
1782
1812
|
*
|
|
1783
1813
|
* var wordArray = CryptoJS.enc.Base64url.parse(base64String);
|
|
1784
1814
|
*/
|
|
1785
|
-
parse: function(
|
|
1815
|
+
parse: function(p, i) {
|
|
1786
1816
|
i === void 0 && (i = !0);
|
|
1787
|
-
var o =
|
|
1817
|
+
var o = p.length, B = i ? this._safe_map : this._map, a = this._reverseMap;
|
|
1788
1818
|
if (!a) {
|
|
1789
1819
|
a = this._reverseMap = [];
|
|
1790
|
-
for (var u = 0; u <
|
|
1791
|
-
a[
|
|
1820
|
+
for (var u = 0; u < B.length; u++)
|
|
1821
|
+
a[B.charCodeAt(u)] = u;
|
|
1792
1822
|
}
|
|
1793
|
-
var d =
|
|
1823
|
+
var d = B.charAt(64);
|
|
1794
1824
|
if (d) {
|
|
1795
|
-
var
|
|
1796
|
-
|
|
1825
|
+
var C = p.indexOf(d);
|
|
1826
|
+
C !== -1 && (o = C);
|
|
1797
1827
|
}
|
|
1798
|
-
return h(
|
|
1828
|
+
return h(p, o, a);
|
|
1799
1829
|
},
|
|
1800
1830
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
1801
1831
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
1802
1832
|
};
|
|
1803
|
-
function h(
|
|
1804
|
-
for (var
|
|
1833
|
+
function h(p, i, o) {
|
|
1834
|
+
for (var B = [], a = 0, u = 0; u < i; u++)
|
|
1805
1835
|
if (u % 4) {
|
|
1806
|
-
var d = o[
|
|
1807
|
-
|
|
1836
|
+
var d = o[p.charCodeAt(u - 1)] << u % 4 * 2, C = o[p.charCodeAt(u)] >>> 6 - u % 4 * 2, v = d | C;
|
|
1837
|
+
B[a >>> 2] |= v << 24 - a % 4 * 8, a++;
|
|
1808
1838
|
}
|
|
1809
|
-
return f.create(
|
|
1839
|
+
return f.create(B, a);
|
|
1810
1840
|
}
|
|
1811
1841
|
})(), n.enc.Base64url;
|
|
1812
1842
|
});
|
|
1813
|
-
})(
|
|
1843
|
+
})(j0)), j0.exports;
|
|
1814
1844
|
}
|
|
1815
|
-
var
|
|
1816
|
-
function
|
|
1817
|
-
return
|
|
1845
|
+
var K0 = { exports: {} }, pn = K0.exports, lr;
|
|
1846
|
+
function v0() {
|
|
1847
|
+
return lr || (lr = 1, (function(e, t) {
|
|
1818
1848
|
(function(n, r) {
|
|
1819
|
-
e.exports = r(
|
|
1820
|
-
})(
|
|
1849
|
+
e.exports = r(q());
|
|
1850
|
+
})(pn, function(n) {
|
|
1821
1851
|
return (function(r) {
|
|
1822
|
-
var x = n, f = x.lib,
|
|
1852
|
+
var x = n, f = x.lib, y = f.WordArray, h = f.Hasher, p = x.algo, i = [];
|
|
1823
1853
|
(function() {
|
|
1824
|
-
for (var
|
|
1825
|
-
i[
|
|
1854
|
+
for (var C = 0; C < 64; C++)
|
|
1855
|
+
i[C] = r.abs(r.sin(C + 1)) * 4294967296 | 0;
|
|
1826
1856
|
})();
|
|
1827
|
-
var o =
|
|
1857
|
+
var o = p.MD5 = h.extend({
|
|
1828
1858
|
_doReset: function() {
|
|
1829
|
-
this._hash = new
|
|
1859
|
+
this._hash = new y.init([
|
|
1830
1860
|
1732584193,
|
|
1831
1861
|
4023233417,
|
|
1832
1862
|
2562383102,
|
|
1833
1863
|
271733878
|
|
1834
1864
|
]);
|
|
1835
1865
|
},
|
|
1836
|
-
_doProcessBlock: function(
|
|
1866
|
+
_doProcessBlock: function(C, v) {
|
|
1837
1867
|
for (var E = 0; E < 16; E++) {
|
|
1838
|
-
var s = v + E, c =
|
|
1839
|
-
|
|
1868
|
+
var s = v + E, c = C[s];
|
|
1869
|
+
C[s] = (c << 8 | c >>> 24) & 16711935 | (c << 24 | c >>> 8) & 4278255360;
|
|
1840
1870
|
}
|
|
1841
|
-
var l = this._hash.words, D =
|
|
1842
|
-
m =
|
|
1871
|
+
var l = this._hash.words, D = C[v + 0], F = C[v + 1], _ = C[v + 2], b = C[v + 3], S = C[v + 4], A = C[v + 5], g = C[v + 6], w = C[v + 7], I = C[v + 8], T = C[v + 9], H = C[v + 10], $ = C[v + 11], K = C[v + 12], O = C[v + 13], G = C[v + 14], W = C[v + 15], m = l[0], P = l[1], R = l[2], k = l[3];
|
|
1872
|
+
m = B(m, P, R, k, D, 7, i[0]), k = B(k, m, P, R, F, 12, i[1]), R = B(R, k, m, P, _, 17, i[2]), P = B(P, R, k, m, b, 22, i[3]), m = B(m, P, R, k, S, 7, i[4]), k = B(k, m, P, R, A, 12, i[5]), R = B(R, k, m, P, g, 17, i[6]), P = B(P, R, k, m, w, 22, i[7]), m = B(m, P, R, k, I, 7, i[8]), k = B(k, m, P, R, T, 12, i[9]), R = B(R, k, m, P, H, 17, i[10]), P = B(P, R, k, m, $, 22, i[11]), m = B(m, P, R, k, K, 7, i[12]), k = B(k, m, P, R, O, 12, i[13]), R = B(R, k, m, P, G, 17, i[14]), P = B(P, R, k, m, W, 22, i[15]), m = a(m, P, R, k, F, 5, i[16]), k = a(k, m, P, R, g, 9, i[17]), R = a(R, k, m, P, $, 14, i[18]), P = a(P, R, k, m, D, 20, i[19]), m = a(m, P, R, k, A, 5, i[20]), k = a(k, m, P, R, H, 9, i[21]), R = a(R, k, m, P, W, 14, i[22]), P = a(P, R, k, m, S, 20, i[23]), m = a(m, P, R, k, T, 5, i[24]), k = a(k, m, P, R, G, 9, i[25]), R = a(R, k, m, P, b, 14, i[26]), P = a(P, R, k, m, I, 20, i[27]), m = a(m, P, R, k, O, 5, i[28]), k = a(k, m, P, R, _, 9, i[29]), R = a(R, k, m, P, w, 14, i[30]), P = a(P, R, k, m, K, 20, i[31]), m = u(m, P, R, k, A, 4, i[32]), k = u(k, m, P, R, I, 11, i[33]), R = u(R, k, m, P, $, 16, i[34]), P = u(P, R, k, m, G, 23, i[35]), m = u(m, P, R, k, F, 4, i[36]), k = u(k, m, P, R, S, 11, i[37]), R = u(R, k, m, P, w, 16, i[38]), P = u(P, R, k, m, H, 23, i[39]), m = u(m, P, R, k, O, 4, i[40]), k = u(k, m, P, R, D, 11, i[41]), R = u(R, k, m, P, b, 16, i[42]), P = u(P, R, k, m, g, 23, i[43]), m = u(m, P, R, k, T, 4, i[44]), k = u(k, m, P, R, K, 11, i[45]), R = u(R, k, m, P, W, 16, i[46]), P = u(P, R, k, m, _, 23, i[47]), m = d(m, P, R, k, D, 6, i[48]), k = d(k, m, P, R, w, 10, i[49]), R = d(R, k, m, P, G, 15, i[50]), P = d(P, R, k, m, A, 21, i[51]), m = d(m, P, R, k, K, 6, i[52]), k = d(k, m, P, R, b, 10, i[53]), R = d(R, k, m, P, H, 15, i[54]), P = d(P, R, k, m, F, 21, i[55]), m = d(m, P, R, k, I, 6, i[56]), k = d(k, m, P, R, W, 10, i[57]), R = d(R, k, m, P, g, 15, i[58]), P = d(P, R, k, m, O, 21, i[59]), m = d(m, P, R, k, S, 6, i[60]), k = d(k, m, P, R, $, 10, i[61]), R = d(R, k, m, P, _, 15, i[62]), P = d(P, R, k, m, T, 21, i[63]), l[0] = l[0] + m | 0, l[1] = l[1] + P | 0, l[2] = l[2] + R | 0, l[3] = l[3] + k | 0;
|
|
1843
1873
|
},
|
|
1844
1874
|
_doFinalize: function() {
|
|
1845
|
-
var
|
|
1875
|
+
var C = this._data, v = C.words, E = this._nDataBytes * 8, s = C.sigBytes * 8;
|
|
1846
1876
|
v[s >>> 5] |= 128 << 24 - s % 32;
|
|
1847
1877
|
var c = r.floor(E / 4294967296), l = E;
|
|
1848
|
-
v[(s + 64 >>> 9 << 4) + 15] = (c << 8 | c >>> 24) & 16711935 | (c << 24 | c >>> 8) & 4278255360, v[(s + 64 >>> 9 << 4) + 14] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360,
|
|
1878
|
+
v[(s + 64 >>> 9 << 4) + 15] = (c << 8 | c >>> 24) & 16711935 | (c << 24 | c >>> 8) & 4278255360, v[(s + 64 >>> 9 << 4) + 14] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360, C.sigBytes = (v.length + 1) * 4, this._process();
|
|
1849
1879
|
for (var D = this._hash, F = D.words, _ = 0; _ < 4; _++) {
|
|
1850
1880
|
var b = F[_];
|
|
1851
1881
|
F[_] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
|
|
@@ -1853,39 +1883,39 @@ function u0() {
|
|
|
1853
1883
|
return D;
|
|
1854
1884
|
},
|
|
1855
1885
|
clone: function() {
|
|
1856
|
-
var
|
|
1857
|
-
return
|
|
1886
|
+
var C = h.clone.call(this);
|
|
1887
|
+
return C._hash = this._hash.clone(), C;
|
|
1858
1888
|
}
|
|
1859
1889
|
});
|
|
1860
|
-
function C
|
|
1861
|
-
var F =
|
|
1890
|
+
function B(C, v, E, s, c, l, D) {
|
|
1891
|
+
var F = C + (v & E | ~v & s) + c + D;
|
|
1862
1892
|
return (F << l | F >>> 32 - l) + v;
|
|
1863
1893
|
}
|
|
1864
|
-
function a(
|
|
1865
|
-
var F =
|
|
1894
|
+
function a(C, v, E, s, c, l, D) {
|
|
1895
|
+
var F = C + (v & s | E & ~s) + c + D;
|
|
1866
1896
|
return (F << l | F >>> 32 - l) + v;
|
|
1867
1897
|
}
|
|
1868
|
-
function u(
|
|
1869
|
-
var F =
|
|
1898
|
+
function u(C, v, E, s, c, l, D) {
|
|
1899
|
+
var F = C + (v ^ E ^ s) + c + D;
|
|
1870
1900
|
return (F << l | F >>> 32 - l) + v;
|
|
1871
1901
|
}
|
|
1872
|
-
function d(
|
|
1873
|
-
var F =
|
|
1902
|
+
function d(C, v, E, s, c, l, D) {
|
|
1903
|
+
var F = C + (E ^ (v | ~s)) + c + D;
|
|
1874
1904
|
return (F << l | F >>> 32 - l) + v;
|
|
1875
1905
|
}
|
|
1876
1906
|
x.MD5 = h._createHelper(o), x.HmacMD5 = h._createHmacHelper(o);
|
|
1877
1907
|
})(Math), n.MD5;
|
|
1878
1908
|
});
|
|
1879
|
-
})(
|
|
1909
|
+
})(K0)), K0.exports;
|
|
1880
1910
|
}
|
|
1881
|
-
var
|
|
1882
|
-
function
|
|
1883
|
-
return
|
|
1911
|
+
var X0 = { exports: {} }, Cn = X0.exports, vr;
|
|
1912
|
+
function xt() {
|
|
1913
|
+
return vr || (vr = 1, (function(e, t) {
|
|
1884
1914
|
(function(n, r) {
|
|
1885
|
-
e.exports = r(
|
|
1886
|
-
})(
|
|
1915
|
+
e.exports = r(q());
|
|
1916
|
+
})(Cn, function(n) {
|
|
1887
1917
|
return (function() {
|
|
1888
|
-
var r = n, x = r.lib, f = x.WordArray,
|
|
1918
|
+
var r = n, x = r.lib, f = x.WordArray, y = x.Hasher, h = r.algo, p = [], i = h.SHA1 = y.extend({
|
|
1889
1919
|
_doReset: function() {
|
|
1890
1920
|
this._hash = new f.init([
|
|
1891
1921
|
1732584193,
|
|
@@ -1895,41 +1925,41 @@ function rt() {
|
|
|
1895
1925
|
3285377520
|
|
1896
1926
|
]);
|
|
1897
1927
|
},
|
|
1898
|
-
_doProcessBlock: function(o,
|
|
1899
|
-
for (var a = this._hash.words, u = a[0], d = a[1],
|
|
1928
|
+
_doProcessBlock: function(o, B) {
|
|
1929
|
+
for (var a = this._hash.words, u = a[0], d = a[1], C = a[2], v = a[3], E = a[4], s = 0; s < 80; s++) {
|
|
1900
1930
|
if (s < 16)
|
|
1901
|
-
|
|
1931
|
+
p[s] = o[B + s] | 0;
|
|
1902
1932
|
else {
|
|
1903
|
-
var c =
|
|
1904
|
-
|
|
1933
|
+
var c = p[s - 3] ^ p[s - 8] ^ p[s - 14] ^ p[s - 16];
|
|
1934
|
+
p[s] = c << 1 | c >>> 31;
|
|
1905
1935
|
}
|
|
1906
|
-
var l = (u << 5 | u >>> 27) + E +
|
|
1907
|
-
s < 20 ? l += (d &
|
|
1936
|
+
var l = (u << 5 | u >>> 27) + E + p[s];
|
|
1937
|
+
s < 20 ? l += (d & C | ~d & v) + 1518500249 : s < 40 ? l += (d ^ C ^ v) + 1859775393 : s < 60 ? l += (d & C | d & v | C & v) - 1894007588 : l += (d ^ C ^ v) - 899497514, E = v, v = C, C = d << 30 | d >>> 2, d = u, u = l;
|
|
1908
1938
|
}
|
|
1909
|
-
a[0] = a[0] + u | 0, a[1] = a[1] + d | 0, a[2] = a[2] +
|
|
1939
|
+
a[0] = a[0] + u | 0, a[1] = a[1] + d | 0, a[2] = a[2] + C | 0, a[3] = a[3] + v | 0, a[4] = a[4] + E | 0;
|
|
1910
1940
|
},
|
|
1911
1941
|
_doFinalize: function() {
|
|
1912
|
-
var o = this._data,
|
|
1913
|
-
return
|
|
1942
|
+
var o = this._data, B = o.words, a = this._nDataBytes * 8, u = o.sigBytes * 8;
|
|
1943
|
+
return B[u >>> 5] |= 128 << 24 - u % 32, B[(u + 64 >>> 9 << 4) + 14] = Math.floor(a / 4294967296), B[(u + 64 >>> 9 << 4) + 15] = a, o.sigBytes = B.length * 4, this._process(), this._hash;
|
|
1914
1944
|
},
|
|
1915
1945
|
clone: function() {
|
|
1916
|
-
var o =
|
|
1946
|
+
var o = y.clone.call(this);
|
|
1917
1947
|
return o._hash = this._hash.clone(), o;
|
|
1918
1948
|
}
|
|
1919
1949
|
});
|
|
1920
|
-
r.SHA1 =
|
|
1950
|
+
r.SHA1 = y._createHelper(i), r.HmacSHA1 = y._createHmacHelper(i);
|
|
1921
1951
|
})(), n.SHA1;
|
|
1922
1952
|
});
|
|
1923
|
-
})(
|
|
1953
|
+
})(X0)), X0.exports;
|
|
1924
1954
|
}
|
|
1925
|
-
var
|
|
1926
|
-
function
|
|
1927
|
-
return
|
|
1955
|
+
var M0 = { exports: {} }, Bn = M0.exports, pr;
|
|
1956
|
+
function Ke() {
|
|
1957
|
+
return pr || (pr = 1, (function(e, t) {
|
|
1928
1958
|
(function(n, r) {
|
|
1929
|
-
e.exports = r(
|
|
1930
|
-
})(
|
|
1959
|
+
e.exports = r(q());
|
|
1960
|
+
})(Bn, function(n) {
|
|
1931
1961
|
return (function(r) {
|
|
1932
|
-
var x = n, f = x.lib,
|
|
1962
|
+
var x = n, f = x.lib, y = f.WordArray, h = f.Hasher, p = x.algo, i = [], o = [];
|
|
1933
1963
|
(function() {
|
|
1934
1964
|
function u(E) {
|
|
1935
1965
|
for (var s = r.sqrt(E), c = 2; c <= s; c++)
|
|
@@ -1940,29 +1970,29 @@ function We() {
|
|
|
1940
1970
|
function d(E) {
|
|
1941
1971
|
return (E - (E | 0)) * 4294967296 | 0;
|
|
1942
1972
|
}
|
|
1943
|
-
for (var
|
|
1944
|
-
u(
|
|
1973
|
+
for (var C = 2, v = 0; v < 64; )
|
|
1974
|
+
u(C) && (v < 8 && (i[v] = d(r.pow(C, 1 / 2))), o[v] = d(r.pow(C, 1 / 3)), v++), C++;
|
|
1945
1975
|
})();
|
|
1946
|
-
var
|
|
1976
|
+
var B = [], a = p.SHA256 = h.extend({
|
|
1947
1977
|
_doReset: function() {
|
|
1948
|
-
this._hash = new
|
|
1978
|
+
this._hash = new y.init(i.slice(0));
|
|
1949
1979
|
},
|
|
1950
1980
|
_doProcessBlock: function(u, d) {
|
|
1951
|
-
for (var
|
|
1981
|
+
for (var C = this._hash.words, v = C[0], E = C[1], s = C[2], c = C[3], l = C[4], D = C[5], F = C[6], _ = C[7], b = 0; b < 64; b++) {
|
|
1952
1982
|
if (b < 16)
|
|
1953
|
-
|
|
1983
|
+
B[b] = u[d + b] | 0;
|
|
1954
1984
|
else {
|
|
1955
|
-
var S =
|
|
1956
|
-
|
|
1985
|
+
var S = B[b - 15], A = (S << 25 | S >>> 7) ^ (S << 14 | S >>> 18) ^ S >>> 3, g = B[b - 2], w = (g << 15 | g >>> 17) ^ (g << 13 | g >>> 19) ^ g >>> 10;
|
|
1986
|
+
B[b] = A + B[b - 7] + w + B[b - 16];
|
|
1957
1987
|
}
|
|
1958
|
-
var I = l & D ^ ~l & F,
|
|
1959
|
-
_ = F, F = D, D = l, l = c +
|
|
1988
|
+
var I = l & D ^ ~l & F, T = v & E ^ v & s ^ E & s, H = (v << 30 | v >>> 2) ^ (v << 19 | v >>> 13) ^ (v << 10 | v >>> 22), $ = (l << 26 | l >>> 6) ^ (l << 21 | l >>> 11) ^ (l << 7 | l >>> 25), K = _ + $ + I + o[b] + B[b], O = H + T;
|
|
1989
|
+
_ = F, F = D, D = l, l = c + K | 0, c = s, s = E, E = v, v = K + O | 0;
|
|
1960
1990
|
}
|
|
1961
|
-
|
|
1991
|
+
C[0] = C[0] + v | 0, C[1] = C[1] + E | 0, C[2] = C[2] + s | 0, C[3] = C[3] + c | 0, C[4] = C[4] + l | 0, C[5] = C[5] + D | 0, C[6] = C[6] + F | 0, C[7] = C[7] + _ | 0;
|
|
1962
1992
|
},
|
|
1963
1993
|
_doFinalize: function() {
|
|
1964
|
-
var u = this._data, d = u.words,
|
|
1965
|
-
return d[v >>> 5] |= 128 << 24 - v % 32, d[(v + 64 >>> 9 << 4) + 14] = r.floor(
|
|
1994
|
+
var u = this._data, d = u.words, C = this._nDataBytes * 8, v = u.sigBytes * 8;
|
|
1995
|
+
return d[v >>> 5] |= 128 << 24 - v % 32, d[(v + 64 >>> 9 << 4) + 14] = r.floor(C / 4294967296), d[(v + 64 >>> 9 << 4) + 15] = C, u.sigBytes = d.length * 4, this._process(), this._hash;
|
|
1966
1996
|
},
|
|
1967
1997
|
clone: function() {
|
|
1968
1998
|
var u = h.clone.call(this);
|
|
@@ -1972,16 +2002,16 @@ function We() {
|
|
|
1972
2002
|
x.SHA256 = h._createHelper(a), x.HmacSHA256 = h._createHmacHelper(a);
|
|
1973
2003
|
})(Math), n.SHA256;
|
|
1974
2004
|
});
|
|
1975
|
-
})(
|
|
2005
|
+
})(M0)), M0.exports;
|
|
1976
2006
|
}
|
|
1977
|
-
var
|
|
1978
|
-
function
|
|
1979
|
-
return
|
|
2007
|
+
var V0 = { exports: {} }, An = V0.exports, Cr;
|
|
2008
|
+
function yn() {
|
|
2009
|
+
return Cr || (Cr = 1, (function(e, t) {
|
|
1980
2010
|
(function(n, r, x) {
|
|
1981
|
-
e.exports = r(
|
|
1982
|
-
})(
|
|
2011
|
+
e.exports = r(q(), Ke());
|
|
2012
|
+
})(An, function(n) {
|
|
1983
2013
|
return (function() {
|
|
1984
|
-
var r = n, x = r.lib, f = x.WordArray,
|
|
2014
|
+
var r = n, x = r.lib, f = x.WordArray, y = r.algo, h = y.SHA256, p = y.SHA224 = h.extend({
|
|
1985
2015
|
_doReset: function() {
|
|
1986
2016
|
this._hash = new f.init([
|
|
1987
2017
|
3238371032,
|
|
@@ -1999,23 +2029,23 @@ function hn() {
|
|
|
1999
2029
|
return i.sigBytes -= 4, i;
|
|
2000
2030
|
}
|
|
2001
2031
|
});
|
|
2002
|
-
r.SHA224 = h._createHelper(
|
|
2032
|
+
r.SHA224 = h._createHelper(p), r.HmacSHA224 = h._createHmacHelper(p);
|
|
2003
2033
|
})(), n.SHA224;
|
|
2004
2034
|
});
|
|
2005
|
-
})(
|
|
2035
|
+
})(V0)), V0.exports;
|
|
2006
2036
|
}
|
|
2007
|
-
var
|
|
2008
|
-
function
|
|
2009
|
-
return
|
|
2037
|
+
var Z0 = { exports: {} }, En = Z0.exports, Br;
|
|
2038
|
+
function at() {
|
|
2039
|
+
return Br || (Br = 1, (function(e, t) {
|
|
2010
2040
|
(function(n, r, x) {
|
|
2011
|
-
e.exports = r(
|
|
2012
|
-
})(
|
|
2041
|
+
e.exports = r(q(), De());
|
|
2042
|
+
})(En, function(n) {
|
|
2013
2043
|
return (function() {
|
|
2014
|
-
var r = n, x = r.lib, f = x.Hasher,
|
|
2044
|
+
var r = n, x = r.lib, f = x.Hasher, y = r.x64, h = y.Word, p = y.WordArray, i = r.algo;
|
|
2015
2045
|
function o() {
|
|
2016
2046
|
return h.create.apply(h, arguments);
|
|
2017
2047
|
}
|
|
2018
|
-
var
|
|
2048
|
+
var B = [
|
|
2019
2049
|
o(1116352408, 3609767458),
|
|
2020
2050
|
o(1899447441, 602891725),
|
|
2021
2051
|
o(3049323471, 3964484399),
|
|
@@ -2103,7 +2133,7 @@ function tt() {
|
|
|
2103
2133
|
})();
|
|
2104
2134
|
var u = i.SHA512 = f.extend({
|
|
2105
2135
|
_doReset: function() {
|
|
2106
|
-
this._hash = new
|
|
2136
|
+
this._hash = new p.init([
|
|
2107
2137
|
new h.init(1779033703, 4089235720),
|
|
2108
2138
|
new h.init(3144134277, 2227873595),
|
|
2109
2139
|
new h.init(1013904242, 4271175723),
|
|
@@ -2114,23 +2144,23 @@ function tt() {
|
|
|
2114
2144
|
new h.init(1541459225, 327033209)
|
|
2115
2145
|
]);
|
|
2116
2146
|
},
|
|
2117
|
-
_doProcessBlock: function(d,
|
|
2118
|
-
for (var v = this._hash.words, E = v[0], s = v[1], c = v[2], l = v[3], D = v[4], F = v[5], _ = v[6], b = v[7], S = E.high,
|
|
2119
|
-
var
|
|
2120
|
-
if (
|
|
2121
|
-
|
|
2147
|
+
_doProcessBlock: function(d, C) {
|
|
2148
|
+
for (var v = this._hash.words, E = v[0], s = v[1], c = v[2], l = v[3], D = v[4], F = v[5], _ = v[6], b = v[7], S = E.high, A = E.low, g = s.high, w = s.low, I = c.high, T = c.low, H = l.high, $ = l.low, K = D.high, O = D.low, G = F.high, W = F.low, m = _.high, P = _.low, R = b.high, k = b.low, X = S, j = A, Y = g, L = w, g0 = I, p0 = T, be = H, F0 = $, i0 = K, J = O, R0 = G, D0 = W, z0 = m, _0 = P, me = R, b0 = k, o0 = 0; o0 < 80; o0++) {
|
|
2149
|
+
var t0, d0, T0 = a[o0];
|
|
2150
|
+
if (o0 < 16)
|
|
2151
|
+
d0 = T0.high = d[C + o0 * 2] | 0, t0 = T0.low = d[C + o0 * 2 + 1] | 0;
|
|
2122
2152
|
else {
|
|
2123
|
-
var
|
|
2124
|
-
|
|
2153
|
+
var Me = a[o0 - 15], C0 = Me.high, m0 = Me.low, pt = (C0 >>> 1 | m0 << 31) ^ (C0 >>> 8 | m0 << 24) ^ C0 >>> 7, Ve = (m0 >>> 1 | C0 << 31) ^ (m0 >>> 8 | C0 << 24) ^ (m0 >>> 7 | C0 << 25), Ze = a[o0 - 2], B0 = Ze.high, w0 = Ze.low, Ct = (B0 >>> 19 | w0 << 13) ^ (B0 << 3 | w0 >>> 29) ^ B0 >>> 6, Qe = (w0 >>> 19 | B0 << 13) ^ (w0 << 3 | B0 >>> 29) ^ (w0 >>> 6 | B0 << 26), Ye = a[o0 - 7], Bt = Ye.high, At = Ye.low, Je = a[o0 - 16], yt = Je.high, er = Je.low;
|
|
2154
|
+
t0 = Ve + At, d0 = pt + Bt + (t0 >>> 0 < Ve >>> 0 ? 1 : 0), t0 = t0 + Qe, d0 = d0 + Ct + (t0 >>> 0 < Qe >>> 0 ? 1 : 0), t0 = t0 + er, d0 = d0 + yt + (t0 >>> 0 < er >>> 0 ? 1 : 0), T0.high = d0, T0.low = t0;
|
|
2125
2155
|
}
|
|
2126
|
-
var
|
|
2127
|
-
|
|
2156
|
+
var Et = i0 & R0 ^ ~i0 & z0, rr = J & D0 ^ ~J & _0, gt = X & Y ^ X & g0 ^ Y & g0, Ft = j & L ^ j & p0 ^ L & p0, Dt = (X >>> 28 | j << 4) ^ (X << 30 | j >>> 2) ^ (X << 25 | j >>> 7), tr = (j >>> 28 | X << 4) ^ (j << 30 | X >>> 2) ^ (j << 25 | X >>> 7), _t = (i0 >>> 14 | J << 18) ^ (i0 >>> 18 | J << 14) ^ (i0 << 23 | J >>> 9), bt = (J >>> 14 | i0 << 18) ^ (J >>> 18 | i0 << 14) ^ (J << 23 | i0 >>> 9), nr = B[o0], mt = nr.high, ir = nr.low, e0 = b0 + bt, u0 = me + _t + (e0 >>> 0 < b0 >>> 0 ? 1 : 0), e0 = e0 + rr, u0 = u0 + Et + (e0 >>> 0 < rr >>> 0 ? 1 : 0), e0 = e0 + ir, u0 = u0 + mt + (e0 >>> 0 < ir >>> 0 ? 1 : 0), e0 = e0 + t0, u0 = u0 + d0 + (e0 >>> 0 < t0 >>> 0 ? 1 : 0), or = tr + Ft, wt = Dt + gt + (or >>> 0 < tr >>> 0 ? 1 : 0);
|
|
2157
|
+
me = z0, b0 = _0, z0 = R0, _0 = D0, R0 = i0, D0 = J, J = F0 + e0 | 0, i0 = be + u0 + (J >>> 0 < F0 >>> 0 ? 1 : 0) | 0, be = g0, F0 = p0, g0 = Y, p0 = L, Y = X, L = j, j = e0 + or | 0, X = u0 + wt + (j >>> 0 < e0 >>> 0 ? 1 : 0) | 0;
|
|
2128
2158
|
}
|
|
2129
|
-
|
|
2159
|
+
A = E.low = A + j, E.high = S + X + (A >>> 0 < j >>> 0 ? 1 : 0), w = s.low = w + L, s.high = g + Y + (w >>> 0 < L >>> 0 ? 1 : 0), T = c.low = T + p0, c.high = I + g0 + (T >>> 0 < p0 >>> 0 ? 1 : 0), $ = l.low = $ + F0, l.high = H + be + ($ >>> 0 < F0 >>> 0 ? 1 : 0), O = D.low = O + J, D.high = K + i0 + (O >>> 0 < J >>> 0 ? 1 : 0), W = F.low = W + D0, F.high = G + R0 + (W >>> 0 < D0 >>> 0 ? 1 : 0), P = _.low = P + _0, _.high = m + z0 + (P >>> 0 < _0 >>> 0 ? 1 : 0), k = b.low = k + b0, b.high = R + me + (k >>> 0 < b0 >>> 0 ? 1 : 0);
|
|
2130
2160
|
},
|
|
2131
2161
|
_doFinalize: function() {
|
|
2132
|
-
var d = this._data,
|
|
2133
|
-
|
|
2162
|
+
var d = this._data, C = d.words, v = this._nDataBytes * 8, E = d.sigBytes * 8;
|
|
2163
|
+
C[E >>> 5] |= 128 << 24 - E % 32, C[(E + 128 >>> 10 << 5) + 30] = Math.floor(v / 4294967296), C[(E + 128 >>> 10 << 5) + 31] = v, d.sigBytes = C.length * 4, this._process();
|
|
2134
2164
|
var s = this._hash.toX32();
|
|
2135
2165
|
return s;
|
|
2136
2166
|
},
|
|
@@ -2143,18 +2173,18 @@ function tt() {
|
|
|
2143
2173
|
r.SHA512 = f._createHelper(u), r.HmacSHA512 = f._createHmacHelper(u);
|
|
2144
2174
|
})(), n.SHA512;
|
|
2145
2175
|
});
|
|
2146
|
-
})(
|
|
2176
|
+
})(Z0)), Z0.exports;
|
|
2147
2177
|
}
|
|
2148
|
-
var
|
|
2149
|
-
function
|
|
2150
|
-
return
|
|
2178
|
+
var Q0 = { exports: {} }, gn = Q0.exports, Ar;
|
|
2179
|
+
function Fn() {
|
|
2180
|
+
return Ar || (Ar = 1, (function(e, t) {
|
|
2151
2181
|
(function(n, r, x) {
|
|
2152
|
-
e.exports = r(
|
|
2153
|
-
})(
|
|
2182
|
+
e.exports = r(q(), De(), at());
|
|
2183
|
+
})(gn, function(n) {
|
|
2154
2184
|
return (function() {
|
|
2155
|
-
var r = n, x = r.x64, f = x.Word,
|
|
2185
|
+
var r = n, x = r.x64, f = x.Word, y = x.WordArray, h = r.algo, p = h.SHA512, i = h.SHA384 = p.extend({
|
|
2156
2186
|
_doReset: function() {
|
|
2157
|
-
this._hash = new
|
|
2187
|
+
this._hash = new y.init([
|
|
2158
2188
|
new f.init(3418070365, 3238371032),
|
|
2159
2189
|
new f.init(1654270250, 914150663),
|
|
2160
2190
|
new f.init(2438529370, 812702999),
|
|
@@ -2166,26 +2196,26 @@ function pn() {
|
|
|
2166
2196
|
]);
|
|
2167
2197
|
},
|
|
2168
2198
|
_doFinalize: function() {
|
|
2169
|
-
var o =
|
|
2199
|
+
var o = p._doFinalize.call(this);
|
|
2170
2200
|
return o.sigBytes -= 16, o;
|
|
2171
2201
|
}
|
|
2172
2202
|
});
|
|
2173
|
-
r.SHA384 =
|
|
2203
|
+
r.SHA384 = p._createHelper(i), r.HmacSHA384 = p._createHmacHelper(i);
|
|
2174
2204
|
})(), n.SHA384;
|
|
2175
2205
|
});
|
|
2176
|
-
})(
|
|
2206
|
+
})(Q0)), Q0.exports;
|
|
2177
2207
|
}
|
|
2178
|
-
var
|
|
2179
|
-
function
|
|
2180
|
-
return
|
|
2208
|
+
var Y0 = { exports: {} }, Dn = Y0.exports, yr;
|
|
2209
|
+
function _n() {
|
|
2210
|
+
return yr || (yr = 1, (function(e, t) {
|
|
2181
2211
|
(function(n, r, x) {
|
|
2182
|
-
e.exports = r(
|
|
2183
|
-
})(
|
|
2212
|
+
e.exports = r(q(), De());
|
|
2213
|
+
})(Dn, function(n) {
|
|
2184
2214
|
return (function(r) {
|
|
2185
|
-
var x = n, f = x.lib,
|
|
2215
|
+
var x = n, f = x.lib, y = f.WordArray, h = f.Hasher, p = x.x64, i = p.Word, o = x.algo, B = [], a = [], u = [];
|
|
2186
2216
|
(function() {
|
|
2187
2217
|
for (var v = 1, E = 0, s = 0; s < 24; s++) {
|
|
2188
|
-
|
|
2218
|
+
B[v + 5 * E] = (s + 1) * (s + 2) / 2 % 64;
|
|
2189
2219
|
var c = E % 5, l = (2 * v + 3 * E) % 5;
|
|
2190
2220
|
v = c, E = l;
|
|
2191
2221
|
}
|
|
@@ -2195,8 +2225,8 @@ function Bn() {
|
|
|
2195
2225
|
for (var D = 1, F = 0; F < 24; F++) {
|
|
2196
2226
|
for (var _ = 0, b = 0, S = 0; S < 7; S++) {
|
|
2197
2227
|
if (D & 1) {
|
|
2198
|
-
var
|
|
2199
|
-
|
|
2228
|
+
var A = (1 << S) - 1;
|
|
2229
|
+
A < 32 ? b ^= 1 << A : _ ^= 1 << A - 32;
|
|
2200
2230
|
}
|
|
2201
2231
|
D & 128 ? D = D << 1 ^ 113 : D <<= 1;
|
|
2202
2232
|
}
|
|
@@ -2208,7 +2238,7 @@ function Bn() {
|
|
|
2208
2238
|
for (var v = 0; v < 25; v++)
|
|
2209
2239
|
d[v] = i.create();
|
|
2210
2240
|
})();
|
|
2211
|
-
var
|
|
2241
|
+
var C = o.SHA3 = h.extend({
|
|
2212
2242
|
/**
|
|
2213
2243
|
* Configuration options.
|
|
2214
2244
|
*
|
|
@@ -2234,33 +2264,33 @@ function Bn() {
|
|
|
2234
2264
|
}
|
|
2235
2265
|
for (var b = 0; b < 24; b++) {
|
|
2236
2266
|
for (var S = 0; S < 5; S++) {
|
|
2237
|
-
for (var
|
|
2267
|
+
for (var A = 0, g = 0, w = 0; w < 5; w++) {
|
|
2238
2268
|
var _ = s[S + 5 * w];
|
|
2239
|
-
|
|
2269
|
+
A ^= _.high, g ^= _.low;
|
|
2240
2270
|
}
|
|
2241
2271
|
var I = d[S];
|
|
2242
|
-
I.high =
|
|
2272
|
+
I.high = A, I.low = g;
|
|
2243
2273
|
}
|
|
2244
2274
|
for (var S = 0; S < 5; S++)
|
|
2245
|
-
for (var
|
|
2275
|
+
for (var T = d[(S + 4) % 5], H = d[(S + 1) % 5], $ = H.high, K = H.low, A = T.high ^ ($ << 1 | K >>> 31), g = T.low ^ (K << 1 | $ >>> 31), w = 0; w < 5; w++) {
|
|
2246
2276
|
var _ = s[S + 5 * w];
|
|
2247
|
-
_.high ^=
|
|
2277
|
+
_.high ^= A, _.low ^= g;
|
|
2248
2278
|
}
|
|
2249
|
-
for (var
|
|
2250
|
-
var
|
|
2251
|
-
m < 32 ? (
|
|
2252
|
-
var P = d[a[
|
|
2253
|
-
P.high =
|
|
2279
|
+
for (var O = 1; O < 25; O++) {
|
|
2280
|
+
var A, g, _ = s[O], G = _.high, W = _.low, m = B[O];
|
|
2281
|
+
m < 32 ? (A = G << m | W >>> 32 - m, g = W << m | G >>> 32 - m) : (A = W << m - 32 | G >>> 64 - m, g = G << m - 32 | W >>> 64 - m);
|
|
2282
|
+
var P = d[a[O]];
|
|
2283
|
+
P.high = A, P.low = g;
|
|
2254
2284
|
}
|
|
2255
2285
|
var R = d[0], k = s[0];
|
|
2256
2286
|
R.high = k.high, R.low = k.low;
|
|
2257
2287
|
for (var S = 0; S < 5; S++)
|
|
2258
2288
|
for (var w = 0; w < 5; w++) {
|
|
2259
|
-
var
|
|
2260
|
-
_.high =
|
|
2289
|
+
var O = S + 5 * w, _ = s[O], X = d[O], j = d[(S + 1) % 5 + 5 * w], Y = d[(S + 2) % 5 + 5 * w];
|
|
2290
|
+
_.high = X.high ^ ~j.high & Y.high, _.low = X.low ^ ~j.low & Y.low;
|
|
2261
2291
|
}
|
|
2262
|
-
var _ = s[0],
|
|
2263
|
-
_.high ^=
|
|
2292
|
+
var _ = s[0], L = u[b];
|
|
2293
|
+
_.high ^= L.high, _.low ^= L.low;
|
|
2264
2294
|
}
|
|
2265
2295
|
},
|
|
2266
2296
|
_doFinalize: function() {
|
|
@@ -2269,10 +2299,10 @@ function Bn() {
|
|
|
2269
2299
|
var s = v.sigBytes * 8, c = this.blockSize * 32;
|
|
2270
2300
|
E[s >>> 5] |= 1 << 24 - s % 32, E[(r.ceil((s + 1) / c) * c >>> 5) - 1] |= 128, v.sigBytes = E.length * 4, this._process();
|
|
2271
2301
|
for (var l = this._state, D = this.cfg.outputLength / 8, F = D / 8, _ = [], b = 0; b < F; b++) {
|
|
2272
|
-
var S = l[b],
|
|
2273
|
-
|
|
2302
|
+
var S = l[b], A = S.high, g = S.low;
|
|
2303
|
+
A = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360, g = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360, _.push(g), _.push(A);
|
|
2274
2304
|
}
|
|
2275
|
-
return new
|
|
2305
|
+
return new y.init(_, D);
|
|
2276
2306
|
},
|
|
2277
2307
|
clone: function() {
|
|
2278
2308
|
for (var v = h.clone.call(this), E = v._state = this._state.slice(0), s = 0; s < 25; s++)
|
|
@@ -2280,19 +2310,19 @@ function Bn() {
|
|
|
2280
2310
|
return v;
|
|
2281
2311
|
}
|
|
2282
2312
|
});
|
|
2283
|
-
x.SHA3 = h._createHelper(
|
|
2313
|
+
x.SHA3 = h._createHelper(C), x.HmacSHA3 = h._createHmacHelper(C);
|
|
2284
2314
|
})(Math), n.SHA3;
|
|
2285
2315
|
});
|
|
2286
|
-
})(
|
|
2316
|
+
})(Y0)), Y0.exports;
|
|
2287
2317
|
}
|
|
2288
|
-
var
|
|
2289
|
-
function
|
|
2290
|
-
return
|
|
2318
|
+
var J0 = { exports: {} }, bn = J0.exports, Er;
|
|
2319
|
+
function mn() {
|
|
2320
|
+
return Er || (Er = 1, (function(e, t) {
|
|
2291
2321
|
(function(n, r) {
|
|
2292
|
-
e.exports = r(
|
|
2293
|
-
})(
|
|
2322
|
+
e.exports = r(q());
|
|
2323
|
+
})(bn, function(n) {
|
|
2294
2324
|
return (function(r) {
|
|
2295
|
-
var x = n, f = x.lib,
|
|
2325
|
+
var x = n, f = x.lib, y = f.WordArray, h = f.Hasher, p = x.algo, i = y.create([
|
|
2296
2326
|
0,
|
|
2297
2327
|
1,
|
|
2298
2328
|
2,
|
|
@@ -2373,7 +2403,7 @@ function An() {
|
|
|
2373
2403
|
6,
|
|
2374
2404
|
15,
|
|
2375
2405
|
13
|
|
2376
|
-
]), o =
|
|
2406
|
+
]), o = y.create([
|
|
2377
2407
|
5,
|
|
2378
2408
|
14,
|
|
2379
2409
|
7,
|
|
@@ -2454,7 +2484,7 @@ function An() {
|
|
|
2454
2484
|
3,
|
|
2455
2485
|
9,
|
|
2456
2486
|
11
|
|
2457
|
-
]),
|
|
2487
|
+
]), B = y.create([
|
|
2458
2488
|
11,
|
|
2459
2489
|
14,
|
|
2460
2490
|
15,
|
|
@@ -2535,7 +2565,7 @@ function An() {
|
|
|
2535
2565
|
8,
|
|
2536
2566
|
5,
|
|
2537
2567
|
6
|
|
2538
|
-
]), a =
|
|
2568
|
+
]), a = y.create([
|
|
2539
2569
|
8,
|
|
2540
2570
|
9,
|
|
2541
2571
|
9,
|
|
@@ -2616,29 +2646,29 @@ function An() {
|
|
|
2616
2646
|
13,
|
|
2617
2647
|
11,
|
|
2618
2648
|
11
|
|
2619
|
-
]), u =
|
|
2649
|
+
]), u = y.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), d = y.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), C = p.RIPEMD160 = h.extend({
|
|
2620
2650
|
_doReset: function() {
|
|
2621
|
-
this._hash =
|
|
2651
|
+
this._hash = y.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2622
2652
|
},
|
|
2623
2653
|
_doProcessBlock: function(F, _) {
|
|
2624
2654
|
for (var b = 0; b < 16; b++) {
|
|
2625
|
-
var S = _ + b,
|
|
2626
|
-
F[S] = (
|
|
2655
|
+
var S = _ + b, A = F[S];
|
|
2656
|
+
F[S] = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360;
|
|
2627
2657
|
}
|
|
2628
|
-
var g = this._hash.words, w = u.words, I = d.words,
|
|
2629
|
-
R =
|
|
2630
|
-
for (var
|
|
2631
|
-
|
|
2632
|
-
|
|
2658
|
+
var g = this._hash.words, w = u.words, I = d.words, T = i.words, H = o.words, $ = B.words, K = a.words, O, G, W, m, P, R, k, X, j, Y;
|
|
2659
|
+
R = O = g[0], k = G = g[1], X = W = g[2], j = m = g[3], Y = P = g[4];
|
|
2660
|
+
for (var L, b = 0; b < 80; b += 1)
|
|
2661
|
+
L = O + F[_ + T[b]] | 0, b < 16 ? L += v(G, W, m) + w[0] : b < 32 ? L += E(G, W, m) + w[1] : b < 48 ? L += s(G, W, m) + w[2] : b < 64 ? L += c(G, W, m) + w[3] : L += l(G, W, m) + w[4], L = L | 0, L = D(L, $[b]), L = L + P | 0, O = P, P = m, m = D(W, 10), W = G, G = L, L = R + F[_ + H[b]] | 0, b < 16 ? L += l(k, X, j) + I[0] : b < 32 ? L += c(k, X, j) + I[1] : b < 48 ? L += s(k, X, j) + I[2] : b < 64 ? L += E(k, X, j) + I[3] : L += v(k, X, j) + I[4], L = L | 0, L = D(L, K[b]), L = L + Y | 0, R = Y, Y = j, j = D(X, 10), X = k, k = L;
|
|
2662
|
+
L = g[1] + W + j | 0, g[1] = g[2] + m + Y | 0, g[2] = g[3] + P + R | 0, g[3] = g[4] + O + k | 0, g[4] = g[0] + G + X | 0, g[0] = L;
|
|
2633
2663
|
},
|
|
2634
2664
|
_doFinalize: function() {
|
|
2635
2665
|
var F = this._data, _ = F.words, b = this._nDataBytes * 8, S = F.sigBytes * 8;
|
|
2636
2666
|
_[S >>> 5] |= 128 << 24 - S % 32, _[(S + 64 >>> 9 << 4) + 14] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, F.sigBytes = (_.length + 1) * 4, this._process();
|
|
2637
|
-
for (var
|
|
2667
|
+
for (var A = this._hash, g = A.words, w = 0; w < 5; w++) {
|
|
2638
2668
|
var I = g[w];
|
|
2639
2669
|
g[w] = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360;
|
|
2640
2670
|
}
|
|
2641
|
-
return
|
|
2671
|
+
return A;
|
|
2642
2672
|
},
|
|
2643
2673
|
clone: function() {
|
|
2644
2674
|
var F = h.clone.call(this);
|
|
@@ -2663,20 +2693,20 @@ function An() {
|
|
|
2663
2693
|
function D(F, _) {
|
|
2664
2694
|
return F << _ | F >>> 32 - _;
|
|
2665
2695
|
}
|
|
2666
|
-
x.RIPEMD160 = h._createHelper(
|
|
2696
|
+
x.RIPEMD160 = h._createHelper(C), x.HmacRIPEMD160 = h._createHmacHelper(C);
|
|
2667
2697
|
})(), n.RIPEMD160;
|
|
2668
2698
|
});
|
|
2669
|
-
})(
|
|
2699
|
+
})(J0)), J0.exports;
|
|
2670
2700
|
}
|
|
2671
|
-
var
|
|
2672
|
-
function
|
|
2673
|
-
return
|
|
2701
|
+
var ee = { exports: {} }, wn = ee.exports, gr;
|
|
2702
|
+
function Xe() {
|
|
2703
|
+
return gr || (gr = 1, (function(e, t) {
|
|
2674
2704
|
(function(n, r) {
|
|
2675
|
-
e.exports = r(
|
|
2676
|
-
})(
|
|
2705
|
+
e.exports = r(q());
|
|
2706
|
+
})(wn, function(n) {
|
|
2677
2707
|
(function() {
|
|
2678
|
-
var r = n, x = r.lib, f = x.Base,
|
|
2679
|
-
|
|
2708
|
+
var r = n, x = r.lib, f = x.Base, y = r.enc, h = y.Utf8, p = r.algo;
|
|
2709
|
+
p.HMAC = f.extend({
|
|
2680
2710
|
/**
|
|
2681
2711
|
* Initializes a newly created HMAC.
|
|
2682
2712
|
*
|
|
@@ -2689,10 +2719,10 @@ function Ue() {
|
|
|
2689
2719
|
*/
|
|
2690
2720
|
init: function(i, o) {
|
|
2691
2721
|
i = this._hasher = new i.init(), typeof o == "string" && (o = h.parse(o));
|
|
2692
|
-
var
|
|
2722
|
+
var B = i.blockSize, a = B * 4;
|
|
2693
2723
|
o.sigBytes > a && (o = i.finalize(o)), o.clamp();
|
|
2694
|
-
for (var u = this._oKey = o.clone(), d = this._iKey = o.clone(),
|
|
2695
|
-
|
|
2724
|
+
for (var u = this._oKey = o.clone(), d = this._iKey = o.clone(), C = u.words, v = d.words, E = 0; E < B; E++)
|
|
2725
|
+
C[E] ^= 1549556828, v[E] ^= 909522486;
|
|
2696
2726
|
u.sigBytes = d.sigBytes = a, this.reset();
|
|
2697
2727
|
},
|
|
2698
2728
|
/**
|
|
@@ -2736,24 +2766,24 @@ function Ue() {
|
|
|
2736
2766
|
* var hmac = hmacHasher.finalize(wordArray);
|
|
2737
2767
|
*/
|
|
2738
2768
|
finalize: function(i) {
|
|
2739
|
-
var o = this._hasher,
|
|
2769
|
+
var o = this._hasher, B = o.finalize(i);
|
|
2740
2770
|
o.reset();
|
|
2741
|
-
var a = o.finalize(this._oKey.clone().concat(
|
|
2771
|
+
var a = o.finalize(this._oKey.clone().concat(B));
|
|
2742
2772
|
return a;
|
|
2743
2773
|
}
|
|
2744
2774
|
});
|
|
2745
2775
|
})();
|
|
2746
2776
|
});
|
|
2747
|
-
})(
|
|
2777
|
+
})(ee)), ee.exports;
|
|
2748
2778
|
}
|
|
2749
|
-
var
|
|
2750
|
-
function
|
|
2751
|
-
return
|
|
2779
|
+
var re = { exports: {} }, In = re.exports, Fr;
|
|
2780
|
+
function kn() {
|
|
2781
|
+
return Fr || (Fr = 1, (function(e, t) {
|
|
2752
2782
|
(function(n, r, x) {
|
|
2753
|
-
e.exports = r(
|
|
2754
|
-
})(
|
|
2783
|
+
e.exports = r(q(), Ke(), Xe());
|
|
2784
|
+
})(In, function(n) {
|
|
2755
2785
|
return (function() {
|
|
2756
|
-
var r = n, x = r.lib, f = x.Base,
|
|
2786
|
+
var r = n, x = r.lib, f = x.Base, y = x.WordArray, h = r.algo, p = h.SHA256, i = h.HMAC, o = h.PBKDF2 = f.extend({
|
|
2757
2787
|
/**
|
|
2758
2788
|
* Configuration options.
|
|
2759
2789
|
*
|
|
@@ -2763,7 +2793,7 @@ function Fn() {
|
|
|
2763
2793
|
*/
|
|
2764
2794
|
cfg: f.extend({
|
|
2765
2795
|
keySize: 128 / 32,
|
|
2766
|
-
hasher:
|
|
2796
|
+
hasher: p,
|
|
2767
2797
|
iterations: 25e4
|
|
2768
2798
|
}),
|
|
2769
2799
|
/**
|
|
@@ -2777,8 +2807,8 @@ function Fn() {
|
|
|
2777
2807
|
* var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
|
|
2778
2808
|
* var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
|
|
2779
2809
|
*/
|
|
2780
|
-
init: function(
|
|
2781
|
-
this.cfg = this.cfg.extend(
|
|
2810
|
+
init: function(B) {
|
|
2811
|
+
this.cfg = this.cfg.extend(B);
|
|
2782
2812
|
},
|
|
2783
2813
|
/**
|
|
2784
2814
|
* Computes the Password-Based Key Derivation Function 2.
|
|
@@ -2792,35 +2822,35 @@ function Fn() {
|
|
|
2792
2822
|
*
|
|
2793
2823
|
* var key = kdf.compute(password, salt);
|
|
2794
2824
|
*/
|
|
2795
|
-
compute: function(
|
|
2796
|
-
for (var u = this.cfg, d = i.create(u.hasher,
|
|
2825
|
+
compute: function(B, a) {
|
|
2826
|
+
for (var u = this.cfg, d = i.create(u.hasher, B), C = y.create(), v = y.create([1]), E = C.words, s = v.words, c = u.keySize, l = u.iterations; E.length < c; ) {
|
|
2797
2827
|
var D = d.update(a).finalize(v);
|
|
2798
2828
|
d.reset();
|
|
2799
2829
|
for (var F = D.words, _ = F.length, b = D, S = 1; S < l; S++) {
|
|
2800
2830
|
b = d.finalize(b), d.reset();
|
|
2801
|
-
for (var
|
|
2802
|
-
F[g] ^=
|
|
2831
|
+
for (var A = b.words, g = 0; g < _; g++)
|
|
2832
|
+
F[g] ^= A[g];
|
|
2803
2833
|
}
|
|
2804
|
-
|
|
2834
|
+
C.concat(D), s[0]++;
|
|
2805
2835
|
}
|
|
2806
|
-
return
|
|
2836
|
+
return C.sigBytes = c * 4, C;
|
|
2807
2837
|
}
|
|
2808
2838
|
});
|
|
2809
|
-
r.PBKDF2 = function(
|
|
2810
|
-
return o.create(u).compute(
|
|
2839
|
+
r.PBKDF2 = function(B, a, u) {
|
|
2840
|
+
return o.create(u).compute(B, a);
|
|
2811
2841
|
};
|
|
2812
2842
|
})(), n.PBKDF2;
|
|
2813
2843
|
});
|
|
2814
|
-
})(
|
|
2844
|
+
})(re)), re.exports;
|
|
2815
2845
|
}
|
|
2816
|
-
var
|
|
2817
|
-
function
|
|
2818
|
-
return
|
|
2846
|
+
var te = { exports: {} }, Sn = te.exports, Dr;
|
|
2847
|
+
function h0() {
|
|
2848
|
+
return Dr || (Dr = 1, (function(e, t) {
|
|
2819
2849
|
(function(n, r, x) {
|
|
2820
|
-
e.exports = r(
|
|
2821
|
-
})(
|
|
2850
|
+
e.exports = r(q(), xt(), Xe());
|
|
2851
|
+
})(Sn, function(n) {
|
|
2822
2852
|
return (function() {
|
|
2823
|
-
var r = n, x = r.lib, f = x.Base,
|
|
2853
|
+
var r = n, x = r.lib, f = x.Base, y = x.WordArray, h = r.algo, p = h.MD5, i = h.EvpKDF = f.extend({
|
|
2824
2854
|
/**
|
|
2825
2855
|
* Configuration options.
|
|
2826
2856
|
*
|
|
@@ -2830,7 +2860,7 @@ function f0() {
|
|
|
2830
2860
|
*/
|
|
2831
2861
|
cfg: f.extend({
|
|
2832
2862
|
keySize: 128 / 32,
|
|
2833
|
-
hasher:
|
|
2863
|
+
hasher: p,
|
|
2834
2864
|
iterations: 1
|
|
2835
2865
|
}),
|
|
2836
2866
|
/**
|
|
@@ -2859,39 +2889,39 @@ function f0() {
|
|
|
2859
2889
|
*
|
|
2860
2890
|
* var key = kdf.compute(password, salt);
|
|
2861
2891
|
*/
|
|
2862
|
-
compute: function(o,
|
|
2863
|
-
for (var a, u = this.cfg, d = u.hasher.create(),
|
|
2864
|
-
a && d.update(a), a = d.update(o).finalize(
|
|
2892
|
+
compute: function(o, B) {
|
|
2893
|
+
for (var a, u = this.cfg, d = u.hasher.create(), C = y.create(), v = C.words, E = u.keySize, s = u.iterations; v.length < E; ) {
|
|
2894
|
+
a && d.update(a), a = d.update(o).finalize(B), d.reset();
|
|
2865
2895
|
for (var c = 1; c < s; c++)
|
|
2866
2896
|
a = d.finalize(a), d.reset();
|
|
2867
|
-
|
|
2897
|
+
C.concat(a);
|
|
2868
2898
|
}
|
|
2869
|
-
return
|
|
2899
|
+
return C.sigBytes = E * 4, C;
|
|
2870
2900
|
}
|
|
2871
2901
|
});
|
|
2872
|
-
r.EvpKDF = function(o,
|
|
2873
|
-
return i.create(a).compute(o,
|
|
2902
|
+
r.EvpKDF = function(o, B, a) {
|
|
2903
|
+
return i.create(a).compute(o, B);
|
|
2874
2904
|
};
|
|
2875
2905
|
})(), n.EvpKDF;
|
|
2876
2906
|
});
|
|
2877
|
-
})(
|
|
2907
|
+
})(te)), te.exports;
|
|
2878
2908
|
}
|
|
2879
|
-
var
|
|
2880
|
-
function
|
|
2881
|
-
return
|
|
2909
|
+
var ne = { exports: {} }, Pn = ne.exports, _r;
|
|
2910
|
+
function Q() {
|
|
2911
|
+
return _r || (_r = 1, (function(e, t) {
|
|
2882
2912
|
(function(n, r, x) {
|
|
2883
|
-
e.exports = r(
|
|
2884
|
-
})(
|
|
2913
|
+
e.exports = r(q(), h0());
|
|
2914
|
+
})(Pn, function(n) {
|
|
2885
2915
|
n.lib.Cipher || (function(r) {
|
|
2886
|
-
var x = n, f = x.lib,
|
|
2916
|
+
var x = n, f = x.lib, y = f.Base, h = f.WordArray, p = f.BufferedBlockAlgorithm, i = x.enc;
|
|
2887
2917
|
i.Utf8;
|
|
2888
|
-
var o = i.Base64,
|
|
2918
|
+
var o = i.Base64, B = x.algo, a = B.EvpKDF, u = f.Cipher = p.extend({
|
|
2889
2919
|
/**
|
|
2890
2920
|
* Configuration options.
|
|
2891
2921
|
*
|
|
2892
2922
|
* @property {WordArray} iv The IV to use for this operation.
|
|
2893
2923
|
*/
|
|
2894
|
-
cfg:
|
|
2924
|
+
cfg: y.extend(),
|
|
2895
2925
|
/**
|
|
2896
2926
|
* Creates this cipher in encryption mode.
|
|
2897
2927
|
*
|
|
@@ -2906,8 +2936,8 @@ function M() {
|
|
|
2906
2936
|
*
|
|
2907
2937
|
* var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
|
|
2908
2938
|
*/
|
|
2909
|
-
createEncryptor: function(
|
|
2910
|
-
return this.create(this._ENC_XFORM_MODE,
|
|
2939
|
+
createEncryptor: function(A, g) {
|
|
2940
|
+
return this.create(this._ENC_XFORM_MODE, A, g);
|
|
2911
2941
|
},
|
|
2912
2942
|
/**
|
|
2913
2943
|
* Creates this cipher in decryption mode.
|
|
@@ -2923,8 +2953,8 @@ function M() {
|
|
|
2923
2953
|
*
|
|
2924
2954
|
* var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
|
|
2925
2955
|
*/
|
|
2926
|
-
createDecryptor: function(
|
|
2927
|
-
return this.create(this._DEC_XFORM_MODE,
|
|
2956
|
+
createDecryptor: function(A, g) {
|
|
2957
|
+
return this.create(this._DEC_XFORM_MODE, A, g);
|
|
2928
2958
|
},
|
|
2929
2959
|
/**
|
|
2930
2960
|
* Initializes a newly created cipher.
|
|
@@ -2937,8 +2967,8 @@ function M() {
|
|
|
2937
2967
|
*
|
|
2938
2968
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
2939
2969
|
*/
|
|
2940
|
-
init: function(
|
|
2941
|
-
this.cfg = this.cfg.extend(w), this._xformMode =
|
|
2970
|
+
init: function(A, g, w) {
|
|
2971
|
+
this.cfg = this.cfg.extend(w), this._xformMode = A, this._key = g, this.reset();
|
|
2942
2972
|
},
|
|
2943
2973
|
/**
|
|
2944
2974
|
* Resets this cipher to its initial state.
|
|
@@ -2948,7 +2978,7 @@ function M() {
|
|
|
2948
2978
|
* cipher.reset();
|
|
2949
2979
|
*/
|
|
2950
2980
|
reset: function() {
|
|
2951
|
-
|
|
2981
|
+
p.reset.call(this), this._doReset();
|
|
2952
2982
|
},
|
|
2953
2983
|
/**
|
|
2954
2984
|
* Adds data to be encrypted or decrypted.
|
|
@@ -2962,8 +2992,8 @@ function M() {
|
|
|
2962
2992
|
* var encrypted = cipher.process('data');
|
|
2963
2993
|
* var encrypted = cipher.process(wordArray);
|
|
2964
2994
|
*/
|
|
2965
|
-
process: function(
|
|
2966
|
-
return this._append(
|
|
2995
|
+
process: function(A) {
|
|
2996
|
+
return this._append(A), this._process();
|
|
2967
2997
|
},
|
|
2968
2998
|
/**
|
|
2969
2999
|
* Finalizes the encryption or decryption process.
|
|
@@ -2979,8 +3009,8 @@ function M() {
|
|
|
2979
3009
|
* var encrypted = cipher.finalize('data');
|
|
2980
3010
|
* var encrypted = cipher.finalize(wordArray);
|
|
2981
3011
|
*/
|
|
2982
|
-
finalize: function(
|
|
2983
|
-
|
|
3012
|
+
finalize: function(A) {
|
|
3013
|
+
A && this._append(A);
|
|
2984
3014
|
var g = this._doFinalize();
|
|
2985
3015
|
return g;
|
|
2986
3016
|
},
|
|
@@ -3002,16 +3032,16 @@ function M() {
|
|
|
3002
3032
|
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
|
|
3003
3033
|
*/
|
|
3004
3034
|
_createHelper: /* @__PURE__ */ (function() {
|
|
3005
|
-
function
|
|
3035
|
+
function A(g) {
|
|
3006
3036
|
return typeof g == "string" ? S : F;
|
|
3007
3037
|
}
|
|
3008
3038
|
return function(g) {
|
|
3009
3039
|
return {
|
|
3010
|
-
encrypt: function(w, I,
|
|
3011
|
-
return
|
|
3040
|
+
encrypt: function(w, I, T) {
|
|
3041
|
+
return A(I).encrypt(g, w, I, T);
|
|
3012
3042
|
},
|
|
3013
|
-
decrypt: function(w, I,
|
|
3014
|
-
return
|
|
3043
|
+
decrypt: function(w, I, T) {
|
|
3044
|
+
return A(I).decrypt(g, w, I, T);
|
|
3015
3045
|
}
|
|
3016
3046
|
};
|
|
3017
3047
|
};
|
|
@@ -3019,12 +3049,12 @@ function M() {
|
|
|
3019
3049
|
});
|
|
3020
3050
|
f.StreamCipher = u.extend({
|
|
3021
3051
|
_doFinalize: function() {
|
|
3022
|
-
var
|
|
3023
|
-
return
|
|
3052
|
+
var A = this._process(!0);
|
|
3053
|
+
return A;
|
|
3024
3054
|
},
|
|
3025
3055
|
blockSize: 1
|
|
3026
3056
|
});
|
|
3027
|
-
var d = x.mode = {},
|
|
3057
|
+
var d = x.mode = {}, C = f.BlockCipherMode = y.extend({
|
|
3028
3058
|
/**
|
|
3029
3059
|
* Creates this mode for encryption.
|
|
3030
3060
|
*
|
|
@@ -3037,8 +3067,8 @@ function M() {
|
|
|
3037
3067
|
*
|
|
3038
3068
|
* var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
|
|
3039
3069
|
*/
|
|
3040
|
-
createEncryptor: function(
|
|
3041
|
-
return this.Encryptor.create(
|
|
3070
|
+
createEncryptor: function(A, g) {
|
|
3071
|
+
return this.Encryptor.create(A, g);
|
|
3042
3072
|
},
|
|
3043
3073
|
/**
|
|
3044
3074
|
* Creates this mode for decryption.
|
|
@@ -3052,8 +3082,8 @@ function M() {
|
|
|
3052
3082
|
*
|
|
3053
3083
|
* var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
|
|
3054
3084
|
*/
|
|
3055
|
-
createDecryptor: function(
|
|
3056
|
-
return this.Decryptor.create(
|
|
3085
|
+
createDecryptor: function(A, g) {
|
|
3086
|
+
return this.Decryptor.create(A, g);
|
|
3057
3087
|
},
|
|
3058
3088
|
/**
|
|
3059
3089
|
* Initializes a newly created mode.
|
|
@@ -3065,12 +3095,12 @@ function M() {
|
|
|
3065
3095
|
*
|
|
3066
3096
|
* var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
|
|
3067
3097
|
*/
|
|
3068
|
-
init: function(
|
|
3069
|
-
this._cipher =
|
|
3098
|
+
init: function(A, g) {
|
|
3099
|
+
this._cipher = A, this._iv = g;
|
|
3070
3100
|
}
|
|
3071
3101
|
}), v = d.CBC = (function() {
|
|
3072
|
-
var
|
|
3073
|
-
|
|
3102
|
+
var A = C.extend();
|
|
3103
|
+
A.Encryptor = A.extend({
|
|
3074
3104
|
/**
|
|
3075
3105
|
* Processes the data block at offset.
|
|
3076
3106
|
*
|
|
@@ -3082,10 +3112,10 @@ function M() {
|
|
|
3082
3112
|
* mode.processBlock(data.words, offset);
|
|
3083
3113
|
*/
|
|
3084
3114
|
processBlock: function(w, I) {
|
|
3085
|
-
var
|
|
3086
|
-
g.call(this, w, I,
|
|
3115
|
+
var T = this._cipher, H = T.blockSize;
|
|
3116
|
+
g.call(this, w, I, H), T.encryptBlock(w, I), this._prevBlock = w.slice(I, I + H);
|
|
3087
3117
|
}
|
|
3088
|
-
}),
|
|
3118
|
+
}), A.Decryptor = A.extend({
|
|
3089
3119
|
/**
|
|
3090
3120
|
* Processes the data block at offset.
|
|
3091
3121
|
*
|
|
@@ -3097,17 +3127,17 @@ function M() {
|
|
|
3097
3127
|
* mode.processBlock(data.words, offset);
|
|
3098
3128
|
*/
|
|
3099
3129
|
processBlock: function(w, I) {
|
|
3100
|
-
var
|
|
3101
|
-
|
|
3130
|
+
var T = this._cipher, H = T.blockSize, $ = w.slice(I, I + H);
|
|
3131
|
+
T.decryptBlock(w, I), g.call(this, w, I, H), this._prevBlock = $;
|
|
3102
3132
|
}
|
|
3103
3133
|
});
|
|
3104
|
-
function g(w, I,
|
|
3105
|
-
var
|
|
3106
|
-
|
|
3107
|
-
for (var
|
|
3108
|
-
w[I +
|
|
3134
|
+
function g(w, I, T) {
|
|
3135
|
+
var H, $ = this._iv;
|
|
3136
|
+
$ ? (H = $, this._iv = r) : H = this._prevBlock;
|
|
3137
|
+
for (var K = 0; K < T; K++)
|
|
3138
|
+
w[I + K] ^= H[K];
|
|
3109
3139
|
}
|
|
3110
|
-
return
|
|
3140
|
+
return A;
|
|
3111
3141
|
})(), E = x.pad = {}, s = E.Pkcs7 = {
|
|
3112
3142
|
/**
|
|
3113
3143
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
@@ -3121,11 +3151,11 @@ function M() {
|
|
|
3121
3151
|
*
|
|
3122
3152
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
3123
3153
|
*/
|
|
3124
|
-
pad: function(
|
|
3125
|
-
for (var w = g * 4, I = w -
|
|
3126
|
-
|
|
3127
|
-
var
|
|
3128
|
-
|
|
3154
|
+
pad: function(A, g) {
|
|
3155
|
+
for (var w = g * 4, I = w - A.sigBytes % w, T = I << 24 | I << 16 | I << 8 | I, H = [], $ = 0; $ < I; $ += 4)
|
|
3156
|
+
H.push(T);
|
|
3157
|
+
var K = h.create(H, I);
|
|
3158
|
+
A.concat(K);
|
|
3129
3159
|
},
|
|
3130
3160
|
/**
|
|
3131
3161
|
* Unpads data that had been padded using the algorithm defined in PKCS #5/7.
|
|
@@ -3138,9 +3168,9 @@ function M() {
|
|
|
3138
3168
|
*
|
|
3139
3169
|
* CryptoJS.pad.Pkcs7.unpad(wordArray);
|
|
3140
3170
|
*/
|
|
3141
|
-
unpad: function(
|
|
3142
|
-
var g =
|
|
3143
|
-
|
|
3171
|
+
unpad: function(A) {
|
|
3172
|
+
var g = A.words[A.sigBytes - 1 >>> 2] & 255;
|
|
3173
|
+
A.sigBytes -= g;
|
|
3144
3174
|
}
|
|
3145
3175
|
};
|
|
3146
3176
|
f.BlockCipher = u.extend({
|
|
@@ -3155,21 +3185,21 @@ function M() {
|
|
|
3155
3185
|
padding: s
|
|
3156
3186
|
}),
|
|
3157
3187
|
reset: function() {
|
|
3158
|
-
var
|
|
3188
|
+
var A;
|
|
3159
3189
|
u.reset.call(this);
|
|
3160
3190
|
var g = this.cfg, w = g.iv, I = g.mode;
|
|
3161
|
-
this._xformMode == this._ENC_XFORM_MODE ?
|
|
3191
|
+
this._xformMode == this._ENC_XFORM_MODE ? A = I.createEncryptor : (A = I.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == A ? this._mode.init(this, w && w.words) : (this._mode = A.call(I, this, w && w.words), this._mode.__creator = A);
|
|
3162
3192
|
},
|
|
3163
|
-
_doProcessBlock: function(
|
|
3164
|
-
this._mode.processBlock(
|
|
3193
|
+
_doProcessBlock: function(A, g) {
|
|
3194
|
+
this._mode.processBlock(A, g);
|
|
3165
3195
|
},
|
|
3166
3196
|
_doFinalize: function() {
|
|
3167
|
-
var
|
|
3168
|
-
return this._xformMode == this._ENC_XFORM_MODE ? (g.pad(this._data, this.blockSize),
|
|
3197
|
+
var A, g = this.cfg.padding;
|
|
3198
|
+
return this._xformMode == this._ENC_XFORM_MODE ? (g.pad(this._data, this.blockSize), A = this._process(!0)) : (A = this._process(!0), g.unpad(A)), A;
|
|
3169
3199
|
},
|
|
3170
3200
|
blockSize: 128 / 32
|
|
3171
3201
|
});
|
|
3172
|
-
var c = f.CipherParams =
|
|
3202
|
+
var c = f.CipherParams = y.extend({
|
|
3173
3203
|
/**
|
|
3174
3204
|
* Initializes a newly created cipher params object.
|
|
3175
3205
|
*
|
|
@@ -3189,8 +3219,8 @@ function M() {
|
|
|
3189
3219
|
* formatter: CryptoJS.format.OpenSSL
|
|
3190
3220
|
* });
|
|
3191
3221
|
*/
|
|
3192
|
-
init: function(
|
|
3193
|
-
this.mixIn(
|
|
3222
|
+
init: function(A) {
|
|
3223
|
+
this.mixIn(A);
|
|
3194
3224
|
},
|
|
3195
3225
|
/**
|
|
3196
3226
|
* Converts this cipher params object to a string.
|
|
@@ -3207,8 +3237,8 @@ function M() {
|
|
|
3207
3237
|
* var string = cipherParams.toString();
|
|
3208
3238
|
* var string = cipherParams.toString(CryptoJS.format.OpenSSL);
|
|
3209
3239
|
*/
|
|
3210
|
-
toString: function(
|
|
3211
|
-
return (
|
|
3240
|
+
toString: function(A) {
|
|
3241
|
+
return (A || this.formatter).stringify(this);
|
|
3212
3242
|
}
|
|
3213
3243
|
}), l = x.format = {}, D = l.OpenSSL = {
|
|
3214
3244
|
/**
|
|
@@ -3224,8 +3254,8 @@ function M() {
|
|
|
3224
3254
|
*
|
|
3225
3255
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
3226
3256
|
*/
|
|
3227
|
-
stringify: function(
|
|
3228
|
-
var g, w =
|
|
3257
|
+
stringify: function(A) {
|
|
3258
|
+
var g, w = A.ciphertext, I = A.salt;
|
|
3229
3259
|
return I ? g = h.create([1398893684, 1701076831]).concat(I).concat(w) : g = w, g.toString(o);
|
|
3230
3260
|
},
|
|
3231
3261
|
/**
|
|
@@ -3241,17 +3271,17 @@ function M() {
|
|
|
3241
3271
|
*
|
|
3242
3272
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
3243
3273
|
*/
|
|
3244
|
-
parse: function(
|
|
3245
|
-
var g, w = o.parse(
|
|
3274
|
+
parse: function(A) {
|
|
3275
|
+
var g, w = o.parse(A), I = w.words;
|
|
3246
3276
|
return I[0] == 1398893684 && I[1] == 1701076831 && (g = h.create(I.slice(2, 4)), I.splice(0, 4), w.sigBytes -= 16), c.create({ ciphertext: w, salt: g });
|
|
3247
3277
|
}
|
|
3248
|
-
}, F = f.SerializableCipher =
|
|
3278
|
+
}, F = f.SerializableCipher = y.extend({
|
|
3249
3279
|
/**
|
|
3250
3280
|
* Configuration options.
|
|
3251
3281
|
*
|
|
3252
3282
|
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
3253
3283
|
*/
|
|
3254
|
-
cfg:
|
|
3284
|
+
cfg: y.extend({
|
|
3255
3285
|
format: D
|
|
3256
3286
|
}),
|
|
3257
3287
|
/**
|
|
@@ -3272,17 +3302,17 @@ function M() {
|
|
|
3272
3302
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
3273
3303
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3274
3304
|
*/
|
|
3275
|
-
encrypt: function(
|
|
3305
|
+
encrypt: function(A, g, w, I) {
|
|
3276
3306
|
I = this.cfg.extend(I);
|
|
3277
|
-
var
|
|
3307
|
+
var T = A.createEncryptor(w, I), H = T.finalize(g), $ = T.cfg;
|
|
3278
3308
|
return c.create({
|
|
3279
|
-
ciphertext:
|
|
3309
|
+
ciphertext: H,
|
|
3280
3310
|
key: w,
|
|
3281
|
-
iv:
|
|
3282
|
-
algorithm:
|
|
3283
|
-
mode:
|
|
3284
|
-
padding:
|
|
3285
|
-
blockSize:
|
|
3311
|
+
iv: $.iv,
|
|
3312
|
+
algorithm: A,
|
|
3313
|
+
mode: $.mode,
|
|
3314
|
+
padding: $.padding,
|
|
3315
|
+
blockSize: A.blockSize,
|
|
3286
3316
|
formatter: I.format
|
|
3287
3317
|
});
|
|
3288
3318
|
},
|
|
@@ -3303,10 +3333,10 @@ function M() {
|
|
|
3303
3333
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3304
3334
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3305
3335
|
*/
|
|
3306
|
-
decrypt: function(
|
|
3336
|
+
decrypt: function(A, g, w, I) {
|
|
3307
3337
|
I = this.cfg.extend(I), g = this._parse(g, I.format);
|
|
3308
|
-
var
|
|
3309
|
-
return
|
|
3338
|
+
var T = A.createDecryptor(w, I).finalize(g.ciphertext);
|
|
3339
|
+
return T;
|
|
3310
3340
|
},
|
|
3311
3341
|
/**
|
|
3312
3342
|
* Converts serialized ciphertext to CipherParams,
|
|
@@ -3323,8 +3353,8 @@ function M() {
|
|
|
3323
3353
|
*
|
|
3324
3354
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
|
|
3325
3355
|
*/
|
|
3326
|
-
_parse: function(
|
|
3327
|
-
return typeof
|
|
3356
|
+
_parse: function(A, g) {
|
|
3357
|
+
return typeof A == "string" ? g.parse(A, this) : A;
|
|
3328
3358
|
}
|
|
3329
3359
|
}), _ = x.kdf = {}, b = _.OpenSSL = {
|
|
3330
3360
|
/**
|
|
@@ -3344,13 +3374,13 @@ function M() {
|
|
|
3344
3374
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3345
3375
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3346
3376
|
*/
|
|
3347
|
-
execute: function(
|
|
3348
|
-
if (I || (I = h.random(64 / 8)),
|
|
3349
|
-
var
|
|
3377
|
+
execute: function(A, g, w, I, T) {
|
|
3378
|
+
if (I || (I = h.random(64 / 8)), T)
|
|
3379
|
+
var H = a.create({ keySize: g + w, hasher: T }).compute(A, I);
|
|
3350
3380
|
else
|
|
3351
|
-
var
|
|
3352
|
-
var
|
|
3353
|
-
return
|
|
3381
|
+
var H = a.create({ keySize: g + w }).compute(A, I);
|
|
3382
|
+
var $ = h.create(H.words.slice(g), w * 4);
|
|
3383
|
+
return H.sigBytes = g * 4, c.create({ key: H, iv: $, salt: I });
|
|
3354
3384
|
}
|
|
3355
3385
|
}, S = f.PasswordBasedCipher = F.extend({
|
|
3356
3386
|
/**
|
|
@@ -3378,12 +3408,12 @@ function M() {
|
|
|
3378
3408
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
3379
3409
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3380
3410
|
*/
|
|
3381
|
-
encrypt: function(
|
|
3411
|
+
encrypt: function(A, g, w, I) {
|
|
3382
3412
|
I = this.cfg.extend(I);
|
|
3383
|
-
var
|
|
3384
|
-
I.iv =
|
|
3385
|
-
var
|
|
3386
|
-
return
|
|
3413
|
+
var T = I.kdf.execute(w, A.keySize, A.ivSize, I.salt, I.hasher);
|
|
3414
|
+
I.iv = T.iv;
|
|
3415
|
+
var H = F.encrypt.call(this, A, g, T.key, I);
|
|
3416
|
+
return H.mixIn(T), H;
|
|
3387
3417
|
},
|
|
3388
3418
|
/**
|
|
3389
3419
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -3402,82 +3432,82 @@ function M() {
|
|
|
3402
3432
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3403
3433
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3404
3434
|
*/
|
|
3405
|
-
decrypt: function(
|
|
3435
|
+
decrypt: function(A, g, w, I) {
|
|
3406
3436
|
I = this.cfg.extend(I), g = this._parse(g, I.format);
|
|
3407
|
-
var
|
|
3408
|
-
I.iv =
|
|
3409
|
-
var
|
|
3410
|
-
return
|
|
3437
|
+
var T = I.kdf.execute(w, A.keySize, A.ivSize, g.salt, I.hasher);
|
|
3438
|
+
I.iv = T.iv;
|
|
3439
|
+
var H = F.decrypt.call(this, A, g, T.key, I);
|
|
3440
|
+
return H;
|
|
3411
3441
|
}
|
|
3412
3442
|
});
|
|
3413
3443
|
})();
|
|
3414
3444
|
});
|
|
3415
|
-
})(
|
|
3445
|
+
})(ne)), ne.exports;
|
|
3416
3446
|
}
|
|
3417
|
-
var
|
|
3418
|
-
function
|
|
3419
|
-
return
|
|
3447
|
+
var ie = { exports: {} }, Rn = ie.exports, br;
|
|
3448
|
+
function zn() {
|
|
3449
|
+
return br || (br = 1, (function(e, t) {
|
|
3420
3450
|
(function(n, r, x) {
|
|
3421
|
-
e.exports = r(
|
|
3422
|
-
})(
|
|
3451
|
+
e.exports = r(q(), Q());
|
|
3452
|
+
})(Rn, function(n) {
|
|
3423
3453
|
return n.mode.CFB = (function() {
|
|
3424
3454
|
var r = n.lib.BlockCipherMode.extend();
|
|
3425
3455
|
r.Encryptor = r.extend({
|
|
3426
|
-
processBlock: function(f,
|
|
3427
|
-
var h = this._cipher,
|
|
3428
|
-
x.call(this, f,
|
|
3456
|
+
processBlock: function(f, y) {
|
|
3457
|
+
var h = this._cipher, p = h.blockSize;
|
|
3458
|
+
x.call(this, f, y, p, h), this._prevBlock = f.slice(y, y + p);
|
|
3429
3459
|
}
|
|
3430
3460
|
}), r.Decryptor = r.extend({
|
|
3431
|
-
processBlock: function(f,
|
|
3432
|
-
var h = this._cipher,
|
|
3433
|
-
x.call(this, f,
|
|
3461
|
+
processBlock: function(f, y) {
|
|
3462
|
+
var h = this._cipher, p = h.blockSize, i = f.slice(y, y + p);
|
|
3463
|
+
x.call(this, f, y, p, h), this._prevBlock = i;
|
|
3434
3464
|
}
|
|
3435
3465
|
});
|
|
3436
|
-
function x(f,
|
|
3466
|
+
function x(f, y, h, p) {
|
|
3437
3467
|
var i, o = this._iv;
|
|
3438
|
-
o ? (i = o.slice(0), this._iv = void 0) : i = this._prevBlock,
|
|
3439
|
-
for (var
|
|
3440
|
-
f[
|
|
3468
|
+
o ? (i = o.slice(0), this._iv = void 0) : i = this._prevBlock, p.encryptBlock(i, 0);
|
|
3469
|
+
for (var B = 0; B < h; B++)
|
|
3470
|
+
f[y + B] ^= i[B];
|
|
3441
3471
|
}
|
|
3442
3472
|
return r;
|
|
3443
3473
|
})(), n.mode.CFB;
|
|
3444
3474
|
});
|
|
3445
|
-
})(
|
|
3475
|
+
})(ie)), ie.exports;
|
|
3446
3476
|
}
|
|
3447
|
-
var
|
|
3448
|
-
function
|
|
3449
|
-
return
|
|
3477
|
+
var oe = { exports: {} }, Tn = oe.exports, mr;
|
|
3478
|
+
function Hn() {
|
|
3479
|
+
return mr || (mr = 1, (function(e, t) {
|
|
3450
3480
|
(function(n, r, x) {
|
|
3451
|
-
e.exports = r(
|
|
3452
|
-
})(
|
|
3481
|
+
e.exports = r(q(), Q());
|
|
3482
|
+
})(Tn, function(n) {
|
|
3453
3483
|
return n.mode.CTR = (function() {
|
|
3454
3484
|
var r = n.lib.BlockCipherMode.extend(), x = r.Encryptor = r.extend({
|
|
3455
|
-
processBlock: function(f,
|
|
3456
|
-
var h = this._cipher,
|
|
3485
|
+
processBlock: function(f, y) {
|
|
3486
|
+
var h = this._cipher, p = h.blockSize, i = this._iv, o = this._counter;
|
|
3457
3487
|
i && (o = this._counter = i.slice(0), this._iv = void 0);
|
|
3458
|
-
var
|
|
3459
|
-
h.encryptBlock(
|
|
3460
|
-
for (var a = 0; a <
|
|
3461
|
-
f[
|
|
3488
|
+
var B = o.slice(0);
|
|
3489
|
+
h.encryptBlock(B, 0), o[p - 1] = o[p - 1] + 1 | 0;
|
|
3490
|
+
for (var a = 0; a < p; a++)
|
|
3491
|
+
f[y + a] ^= B[a];
|
|
3462
3492
|
}
|
|
3463
3493
|
});
|
|
3464
3494
|
return r.Decryptor = x, r;
|
|
3465
3495
|
})(), n.mode.CTR;
|
|
3466
3496
|
});
|
|
3467
|
-
})(
|
|
3497
|
+
})(oe)), oe.exports;
|
|
3468
3498
|
}
|
|
3469
|
-
var
|
|
3470
|
-
function
|
|
3471
|
-
return
|
|
3499
|
+
var xe = { exports: {} }, $n = xe.exports, wr;
|
|
3500
|
+
function Ln() {
|
|
3501
|
+
return wr || (wr = 1, (function(e, t) {
|
|
3472
3502
|
(function(n, r, x) {
|
|
3473
|
-
e.exports = r(
|
|
3474
|
-
})(
|
|
3503
|
+
e.exports = r(q(), Q());
|
|
3504
|
+
})($n, function(n) {
|
|
3475
3505
|
return n.mode.CTRGladman = (function() {
|
|
3476
3506
|
var r = n.lib.BlockCipherMode.extend();
|
|
3477
3507
|
function x(h) {
|
|
3478
3508
|
if ((h >> 24 & 255) === 255) {
|
|
3479
|
-
var
|
|
3480
|
-
|
|
3509
|
+
var p = h >> 16 & 255, i = h >> 8 & 255, o = h & 255;
|
|
3510
|
+
p === 255 ? (p = 0, i === 255 ? (i = 0, o === 255 ? o = 0 : ++o) : ++i) : ++p, h = 0, h += p << 16, h += i << 8, h += o;
|
|
3481
3511
|
} else
|
|
3482
3512
|
h += 1 << 24;
|
|
3483
3513
|
return h;
|
|
@@ -3485,47 +3515,47 @@ function Sn() {
|
|
|
3485
3515
|
function f(h) {
|
|
3486
3516
|
return (h[0] = x(h[0])) === 0 && (h[1] = x(h[1])), h;
|
|
3487
3517
|
}
|
|
3488
|
-
var
|
|
3489
|
-
processBlock: function(h,
|
|
3490
|
-
var i = this._cipher, o = i.blockSize,
|
|
3491
|
-
|
|
3518
|
+
var y = r.Encryptor = r.extend({
|
|
3519
|
+
processBlock: function(h, p) {
|
|
3520
|
+
var i = this._cipher, o = i.blockSize, B = this._iv, a = this._counter;
|
|
3521
|
+
B && (a = this._counter = B.slice(0), this._iv = void 0), f(a);
|
|
3492
3522
|
var u = a.slice(0);
|
|
3493
3523
|
i.encryptBlock(u, 0);
|
|
3494
3524
|
for (var d = 0; d < o; d++)
|
|
3495
|
-
h[
|
|
3525
|
+
h[p + d] ^= u[d];
|
|
3496
3526
|
}
|
|
3497
3527
|
});
|
|
3498
|
-
return r.Decryptor =
|
|
3528
|
+
return r.Decryptor = y, r;
|
|
3499
3529
|
})(), n.mode.CTRGladman;
|
|
3500
3530
|
});
|
|
3501
|
-
})(
|
|
3531
|
+
})(xe)), xe.exports;
|
|
3502
3532
|
}
|
|
3503
|
-
var
|
|
3504
|
-
function
|
|
3505
|
-
return
|
|
3533
|
+
var ae = { exports: {} }, qn = ae.exports, Ir;
|
|
3534
|
+
function Nn() {
|
|
3535
|
+
return Ir || (Ir = 1, (function(e, t) {
|
|
3506
3536
|
(function(n, r, x) {
|
|
3507
|
-
e.exports = r(
|
|
3508
|
-
})(
|
|
3537
|
+
e.exports = r(q(), Q());
|
|
3538
|
+
})(qn, function(n) {
|
|
3509
3539
|
return n.mode.OFB = (function() {
|
|
3510
3540
|
var r = n.lib.BlockCipherMode.extend(), x = r.Encryptor = r.extend({
|
|
3511
|
-
processBlock: function(f,
|
|
3512
|
-
var h = this._cipher,
|
|
3541
|
+
processBlock: function(f, y) {
|
|
3542
|
+
var h = this._cipher, p = h.blockSize, i = this._iv, o = this._keystream;
|
|
3513
3543
|
i && (o = this._keystream = i.slice(0), this._iv = void 0), h.encryptBlock(o, 0);
|
|
3514
|
-
for (var
|
|
3515
|
-
f[
|
|
3544
|
+
for (var B = 0; B < p; B++)
|
|
3545
|
+
f[y + B] ^= o[B];
|
|
3516
3546
|
}
|
|
3517
3547
|
});
|
|
3518
3548
|
return r.Decryptor = x, r;
|
|
3519
3549
|
})(), n.mode.OFB;
|
|
3520
3550
|
});
|
|
3521
|
-
})(
|
|
3551
|
+
})(ae)), ae.exports;
|
|
3522
3552
|
}
|
|
3523
|
-
var
|
|
3524
|
-
function
|
|
3525
|
-
return
|
|
3553
|
+
var se = { exports: {} }, On = se.exports, kr;
|
|
3554
|
+
function Wn() {
|
|
3555
|
+
return kr || (kr = 1, (function(e, t) {
|
|
3526
3556
|
(function(n, r, x) {
|
|
3527
|
-
e.exports = r(
|
|
3528
|
-
})(
|
|
3557
|
+
e.exports = r(q(), Q());
|
|
3558
|
+
})(On, function(n) {
|
|
3529
3559
|
return n.mode.ECB = (function() {
|
|
3530
3560
|
var r = n.lib.BlockCipherMode.extend();
|
|
3531
3561
|
return r.Encryptor = r.extend({
|
|
@@ -3539,18 +3569,18 @@ function Tn() {
|
|
|
3539
3569
|
}), r;
|
|
3540
3570
|
})(), n.mode.ECB;
|
|
3541
3571
|
});
|
|
3542
|
-
})(
|
|
3572
|
+
})(se)), se.exports;
|
|
3543
3573
|
}
|
|
3544
|
-
var
|
|
3545
|
-
function
|
|
3546
|
-
return
|
|
3574
|
+
var ce = { exports: {} }, Un = ce.exports, Sr;
|
|
3575
|
+
function Gn() {
|
|
3576
|
+
return Sr || (Sr = 1, (function(e, t) {
|
|
3547
3577
|
(function(n, r, x) {
|
|
3548
|
-
e.exports = r(
|
|
3549
|
-
})(
|
|
3578
|
+
e.exports = r(q(), Q());
|
|
3579
|
+
})(Un, function(n) {
|
|
3550
3580
|
return n.pad.AnsiX923 = {
|
|
3551
3581
|
pad: function(r, x) {
|
|
3552
|
-
var f = r.sigBytes,
|
|
3553
|
-
r.clamp(), r.words[
|
|
3582
|
+
var f = r.sigBytes, y = x * 4, h = y - f % y, p = f + h - 1;
|
|
3583
|
+
r.clamp(), r.words[p >>> 2] |= h << 24 - p % 4 * 8, r.sigBytes += h;
|
|
3554
3584
|
},
|
|
3555
3585
|
unpad: function(r) {
|
|
3556
3586
|
var x = r.words[r.sigBytes - 1 >>> 2] & 255;
|
|
@@ -3558,18 +3588,18 @@ function $n() {
|
|
|
3558
3588
|
}
|
|
3559
3589
|
}, n.pad.Ansix923;
|
|
3560
3590
|
});
|
|
3561
|
-
})(
|
|
3591
|
+
})(ce)), ce.exports;
|
|
3562
3592
|
}
|
|
3563
|
-
var
|
|
3564
|
-
function
|
|
3565
|
-
return
|
|
3593
|
+
var fe = { exports: {} }, jn = fe.exports, Pr;
|
|
3594
|
+
function Kn() {
|
|
3595
|
+
return Pr || (Pr = 1, (function(e, t) {
|
|
3566
3596
|
(function(n, r, x) {
|
|
3567
|
-
e.exports = r(
|
|
3568
|
-
})(
|
|
3597
|
+
e.exports = r(q(), Q());
|
|
3598
|
+
})(jn, function(n) {
|
|
3569
3599
|
return n.pad.Iso10126 = {
|
|
3570
3600
|
pad: function(r, x) {
|
|
3571
|
-
var f = x * 4,
|
|
3572
|
-
r.concat(n.lib.WordArray.random(
|
|
3601
|
+
var f = x * 4, y = f - r.sigBytes % f;
|
|
3602
|
+
r.concat(n.lib.WordArray.random(y - 1)).concat(n.lib.WordArray.create([y << 24], 1));
|
|
3573
3603
|
},
|
|
3574
3604
|
unpad: function(r) {
|
|
3575
3605
|
var x = r.words[r.sigBytes - 1 >>> 2] & 255;
|
|
@@ -3577,14 +3607,14 @@ function qn() {
|
|
|
3577
3607
|
}
|
|
3578
3608
|
}, n.pad.Iso10126;
|
|
3579
3609
|
});
|
|
3580
|
-
})(
|
|
3610
|
+
})(fe)), fe.exports;
|
|
3581
3611
|
}
|
|
3582
|
-
var
|
|
3583
|
-
function
|
|
3584
|
-
return
|
|
3612
|
+
var de = { exports: {} }, Xn = de.exports, Rr;
|
|
3613
|
+
function Mn() {
|
|
3614
|
+
return Rr || (Rr = 1, (function(e, t) {
|
|
3585
3615
|
(function(n, r, x) {
|
|
3586
|
-
e.exports = r(
|
|
3587
|
-
})(
|
|
3616
|
+
e.exports = r(q(), Q());
|
|
3617
|
+
})(Xn, function(n) {
|
|
3588
3618
|
return n.pad.Iso97971 = {
|
|
3589
3619
|
pad: function(r, x) {
|
|
3590
3620
|
r.concat(n.lib.WordArray.create([2147483648], 1)), n.pad.ZeroPadding.pad(r, x);
|
|
@@ -3594,14 +3624,14 @@ function On() {
|
|
|
3594
3624
|
}
|
|
3595
3625
|
}, n.pad.Iso97971;
|
|
3596
3626
|
});
|
|
3597
|
-
})(
|
|
3627
|
+
})(de)), de.exports;
|
|
3598
3628
|
}
|
|
3599
|
-
var
|
|
3600
|
-
function
|
|
3601
|
-
return
|
|
3629
|
+
var ue = { exports: {} }, Vn = ue.exports, zr;
|
|
3630
|
+
function Zn() {
|
|
3631
|
+
return zr || (zr = 1, (function(e, t) {
|
|
3602
3632
|
(function(n, r, x) {
|
|
3603
|
-
e.exports = r(
|
|
3604
|
-
})(
|
|
3633
|
+
e.exports = r(q(), Q());
|
|
3634
|
+
})(Vn, function(n) {
|
|
3605
3635
|
return n.pad.ZeroPadding = {
|
|
3606
3636
|
pad: function(r, x) {
|
|
3607
3637
|
var f = x * 4;
|
|
@@ -3616,14 +3646,14 @@ function Un() {
|
|
|
3616
3646
|
}
|
|
3617
3647
|
}, n.pad.ZeroPadding;
|
|
3618
3648
|
});
|
|
3619
|
-
})(
|
|
3649
|
+
})(ue)), ue.exports;
|
|
3620
3650
|
}
|
|
3621
|
-
var
|
|
3622
|
-
function
|
|
3623
|
-
return
|
|
3651
|
+
var he = { exports: {} }, Qn = he.exports, Tr;
|
|
3652
|
+
function Yn() {
|
|
3653
|
+
return Tr || (Tr = 1, (function(e, t) {
|
|
3624
3654
|
(function(n, r, x) {
|
|
3625
|
-
e.exports = r(
|
|
3626
|
-
})(
|
|
3655
|
+
e.exports = r(q(), Q());
|
|
3656
|
+
})(Qn, function(n) {
|
|
3627
3657
|
return n.pad.NoPadding = {
|
|
3628
3658
|
pad: function() {
|
|
3629
3659
|
},
|
|
@@ -3631,16 +3661,16 @@ function jn() {
|
|
|
3631
3661
|
}
|
|
3632
3662
|
}, n.pad.NoPadding;
|
|
3633
3663
|
});
|
|
3634
|
-
})(
|
|
3664
|
+
})(he)), he.exports;
|
|
3635
3665
|
}
|
|
3636
|
-
var
|
|
3637
|
-
function
|
|
3638
|
-
return
|
|
3666
|
+
var le = { exports: {} }, Jn = le.exports, Hr;
|
|
3667
|
+
function ei() {
|
|
3668
|
+
return Hr || (Hr = 1, (function(e, t) {
|
|
3639
3669
|
(function(n, r, x) {
|
|
3640
|
-
e.exports = r(
|
|
3641
|
-
})(
|
|
3670
|
+
e.exports = r(q(), Q());
|
|
3671
|
+
})(Jn, function(n) {
|
|
3642
3672
|
return (function(r) {
|
|
3643
|
-
var x = n, f = x.lib,
|
|
3673
|
+
var x = n, f = x.lib, y = f.CipherParams, h = x.enc, p = h.Hex, i = x.format;
|
|
3644
3674
|
i.Hex = {
|
|
3645
3675
|
/**
|
|
3646
3676
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3656,7 +3686,7 @@ function Xn() {
|
|
|
3656
3686
|
* var hexString = CryptoJS.format.Hex.stringify(cipherParams);
|
|
3657
3687
|
*/
|
|
3658
3688
|
stringify: function(o) {
|
|
3659
|
-
return o.ciphertext.toString(
|
|
3689
|
+
return o.ciphertext.toString(p);
|
|
3660
3690
|
},
|
|
3661
3691
|
/**
|
|
3662
3692
|
* Converts a hexadecimally encoded ciphertext string to a cipher params object.
|
|
@@ -3672,82 +3702,82 @@ function Xn() {
|
|
|
3672
3702
|
* var cipherParams = CryptoJS.format.Hex.parse(hexString);
|
|
3673
3703
|
*/
|
|
3674
3704
|
parse: function(o) {
|
|
3675
|
-
var
|
|
3676
|
-
return
|
|
3705
|
+
var B = p.parse(o);
|
|
3706
|
+
return y.create({ ciphertext: B });
|
|
3677
3707
|
}
|
|
3678
3708
|
};
|
|
3679
3709
|
})(), n.format.Hex;
|
|
3680
3710
|
});
|
|
3681
|
-
})(
|
|
3711
|
+
})(le)), le.exports;
|
|
3682
3712
|
}
|
|
3683
|
-
var
|
|
3684
|
-
function
|
|
3685
|
-
return
|
|
3713
|
+
var ve = { exports: {} }, ri = ve.exports, $r;
|
|
3714
|
+
function ti() {
|
|
3715
|
+
return $r || ($r = 1, (function(e, t) {
|
|
3686
3716
|
(function(n, r, x) {
|
|
3687
|
-
e.exports = r(
|
|
3688
|
-
})(
|
|
3717
|
+
e.exports = r(q(), l0(), v0(), h0(), Q());
|
|
3718
|
+
})(ri, function(n) {
|
|
3689
3719
|
return (function() {
|
|
3690
|
-
var r = n, x = r.lib, f = x.BlockCipher,
|
|
3720
|
+
var r = n, x = r.lib, f = x.BlockCipher, y = r.algo, h = [], p = [], i = [], o = [], B = [], a = [], u = [], d = [], C = [], v = [];
|
|
3691
3721
|
(function() {
|
|
3692
3722
|
for (var c = [], l = 0; l < 256; l++)
|
|
3693
3723
|
l < 128 ? c[l] = l << 1 : c[l] = l << 1 ^ 283;
|
|
3694
3724
|
for (var D = 0, F = 0, l = 0; l < 256; l++) {
|
|
3695
3725
|
var _ = F ^ F << 1 ^ F << 2 ^ F << 3 ^ F << 4;
|
|
3696
|
-
_ = _ >>> 8 ^ _ & 255 ^ 99, h[D] = _,
|
|
3697
|
-
var b = c[D], S = c[b],
|
|
3698
|
-
i[D] = g << 24 | g >>> 8, o[D] = g << 16 | g >>> 16,
|
|
3699
|
-
var g =
|
|
3700
|
-
u[_] = g << 24 | g >>> 8, d[_] = g << 16 | g >>> 16,
|
|
3726
|
+
_ = _ >>> 8 ^ _ & 255 ^ 99, h[D] = _, p[_] = D;
|
|
3727
|
+
var b = c[D], S = c[b], A = c[S], g = c[_] * 257 ^ _ * 16843008;
|
|
3728
|
+
i[D] = g << 24 | g >>> 8, o[D] = g << 16 | g >>> 16, B[D] = g << 8 | g >>> 24, a[D] = g;
|
|
3729
|
+
var g = A * 16843009 ^ S * 65537 ^ b * 257 ^ D * 16843008;
|
|
3730
|
+
u[_] = g << 24 | g >>> 8, d[_] = g << 16 | g >>> 16, C[_] = g << 8 | g >>> 24, v[_] = g, D ? (D = b ^ c[c[c[A ^ b]]], F ^= c[c[F]]) : D = F = 1;
|
|
3701
3731
|
}
|
|
3702
3732
|
})();
|
|
3703
|
-
var E = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], s =
|
|
3733
|
+
var E = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], s = y.AES = f.extend({
|
|
3704
3734
|
_doReset: function() {
|
|
3705
3735
|
var c;
|
|
3706
3736
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3707
|
-
for (var l = this._keyPriorReset = this._key, D = l.words, F = l.sigBytes / 4, _ = this._nRounds = F + 6, b = (_ + 1) * 4, S = this._keySchedule = [],
|
|
3708
|
-
|
|
3737
|
+
for (var l = this._keyPriorReset = this._key, D = l.words, F = l.sigBytes / 4, _ = this._nRounds = F + 6, b = (_ + 1) * 4, S = this._keySchedule = [], A = 0; A < b; A++)
|
|
3738
|
+
A < F ? S[A] = D[A] : (c = S[A - 1], A % F ? F > 6 && A % F == 4 && (c = h[c >>> 24] << 24 | h[c >>> 16 & 255] << 16 | h[c >>> 8 & 255] << 8 | h[c & 255]) : (c = c << 8 | c >>> 24, c = h[c >>> 24] << 24 | h[c >>> 16 & 255] << 16 | h[c >>> 8 & 255] << 8 | h[c & 255], c ^= E[A / F | 0] << 24), S[A] = S[A - F] ^ c);
|
|
3709
3739
|
for (var g = this._invKeySchedule = [], w = 0; w < b; w++) {
|
|
3710
|
-
var
|
|
3740
|
+
var A = b - w;
|
|
3711
3741
|
if (w % 4)
|
|
3712
|
-
var c = S[
|
|
3742
|
+
var c = S[A];
|
|
3713
3743
|
else
|
|
3714
|
-
var c = S[
|
|
3715
|
-
w < 4 ||
|
|
3744
|
+
var c = S[A - 4];
|
|
3745
|
+
w < 4 || A <= 4 ? g[w] = c : g[w] = u[h[c >>> 24]] ^ d[h[c >>> 16 & 255]] ^ C[h[c >>> 8 & 255]] ^ v[h[c & 255]];
|
|
3716
3746
|
}
|
|
3717
3747
|
}
|
|
3718
3748
|
},
|
|
3719
3749
|
encryptBlock: function(c, l) {
|
|
3720
|
-
this._doCryptBlock(c, l, this._keySchedule, i, o,
|
|
3750
|
+
this._doCryptBlock(c, l, this._keySchedule, i, o, B, a, h);
|
|
3721
3751
|
},
|
|
3722
3752
|
decryptBlock: function(c, l) {
|
|
3723
3753
|
var D = c[l + 1];
|
|
3724
|
-
c[l + 1] = c[l + 3], c[l + 3] = D, this._doCryptBlock(c, l, this._invKeySchedule, u, d,
|
|
3754
|
+
c[l + 1] = c[l + 3], c[l + 3] = D, this._doCryptBlock(c, l, this._invKeySchedule, u, d, C, v, p);
|
|
3725
3755
|
var D = c[l + 1];
|
|
3726
3756
|
c[l + 1] = c[l + 3], c[l + 3] = D;
|
|
3727
3757
|
},
|
|
3728
|
-
_doCryptBlock: function(c, l, D, F, _, b, S,
|
|
3729
|
-
for (var g = this._nRounds, w = c[l] ^ D[0], I = c[l + 1] ^ D[1],
|
|
3730
|
-
var
|
|
3731
|
-
w =
|
|
3758
|
+
_doCryptBlock: function(c, l, D, F, _, b, S, A) {
|
|
3759
|
+
for (var g = this._nRounds, w = c[l] ^ D[0], I = c[l + 1] ^ D[1], T = c[l + 2] ^ D[2], H = c[l + 3] ^ D[3], $ = 4, K = 1; K < g; K++) {
|
|
3760
|
+
var O = F[w >>> 24] ^ _[I >>> 16 & 255] ^ b[T >>> 8 & 255] ^ S[H & 255] ^ D[$++], G = F[I >>> 24] ^ _[T >>> 16 & 255] ^ b[H >>> 8 & 255] ^ S[w & 255] ^ D[$++], W = F[T >>> 24] ^ _[H >>> 16 & 255] ^ b[w >>> 8 & 255] ^ S[I & 255] ^ D[$++], m = F[H >>> 24] ^ _[w >>> 16 & 255] ^ b[I >>> 8 & 255] ^ S[T & 255] ^ D[$++];
|
|
3761
|
+
w = O, I = G, T = W, H = m;
|
|
3732
3762
|
}
|
|
3733
|
-
var
|
|
3734
|
-
c[l] =
|
|
3763
|
+
var O = (A[w >>> 24] << 24 | A[I >>> 16 & 255] << 16 | A[T >>> 8 & 255] << 8 | A[H & 255]) ^ D[$++], G = (A[I >>> 24] << 24 | A[T >>> 16 & 255] << 16 | A[H >>> 8 & 255] << 8 | A[w & 255]) ^ D[$++], W = (A[T >>> 24] << 24 | A[H >>> 16 & 255] << 16 | A[w >>> 8 & 255] << 8 | A[I & 255]) ^ D[$++], m = (A[H >>> 24] << 24 | A[w >>> 16 & 255] << 16 | A[I >>> 8 & 255] << 8 | A[T & 255]) ^ D[$++];
|
|
3764
|
+
c[l] = O, c[l + 1] = G, c[l + 2] = W, c[l + 3] = m;
|
|
3735
3765
|
},
|
|
3736
3766
|
keySize: 256 / 32
|
|
3737
3767
|
});
|
|
3738
3768
|
r.AES = f._createHelper(s);
|
|
3739
3769
|
})(), n.AES;
|
|
3740
3770
|
});
|
|
3741
|
-
})(
|
|
3771
|
+
})(ve)), ve.exports;
|
|
3742
3772
|
}
|
|
3743
|
-
var
|
|
3744
|
-
function
|
|
3745
|
-
return
|
|
3773
|
+
var pe = { exports: {} }, ni = pe.exports, Lr;
|
|
3774
|
+
function ii() {
|
|
3775
|
+
return Lr || (Lr = 1, (function(e, t) {
|
|
3746
3776
|
(function(n, r, x) {
|
|
3747
|
-
e.exports = r(
|
|
3748
|
-
})(
|
|
3777
|
+
e.exports = r(q(), l0(), v0(), h0(), Q());
|
|
3778
|
+
})(ni, function(n) {
|
|
3749
3779
|
return (function() {
|
|
3750
|
-
var r = n, x = r.lib, f = x.WordArray,
|
|
3780
|
+
var r = n, x = r.lib, f = x.WordArray, y = x.BlockCipher, h = r.algo, p = [
|
|
3751
3781
|
57,
|
|
3752
3782
|
49,
|
|
3753
3783
|
41,
|
|
@@ -3853,7 +3883,7 @@ function Qn() {
|
|
|
3853
3883
|
36,
|
|
3854
3884
|
29,
|
|
3855
3885
|
32
|
|
3856
|
-
], o = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28],
|
|
3886
|
+
], o = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], B = [
|
|
3857
3887
|
{
|
|
3858
3888
|
0: 8421888,
|
|
3859
3889
|
268435456: 32768,
|
|
@@ -4391,10 +4421,10 @@ function Qn() {
|
|
|
4391
4421
|
8064,
|
|
4392
4422
|
504,
|
|
4393
4423
|
2147483679
|
|
4394
|
-
], u = h.DES =
|
|
4424
|
+
], u = h.DES = y.extend({
|
|
4395
4425
|
_doReset: function() {
|
|
4396
4426
|
for (var E = this._key, s = E.words, c = [], l = 0; l < 56; l++) {
|
|
4397
|
-
var D =
|
|
4427
|
+
var D = p[l] - 1;
|
|
4398
4428
|
c[l] = s[D >>> 5] >>> 31 - D % 32 & 1;
|
|
4399
4429
|
}
|
|
4400
4430
|
for (var F = this._subKeys = [], _ = 0; _ < 16; _++) {
|
|
@@ -4405,8 +4435,8 @@ function Qn() {
|
|
|
4405
4435
|
b[l] = b[l] >>> (l - 1) * 4 + 3;
|
|
4406
4436
|
b[7] = b[7] << 5 | b[7] >>> 27;
|
|
4407
4437
|
}
|
|
4408
|
-
for (var
|
|
4409
|
-
|
|
4438
|
+
for (var A = this._invSubKeys = [], l = 0; l < 16; l++)
|
|
4439
|
+
A[l] = F[15 - l];
|
|
4410
4440
|
},
|
|
4411
4441
|
encryptBlock: function(E, s) {
|
|
4412
4442
|
this._doCryptBlock(E, s, this._subKeys);
|
|
@@ -4415,14 +4445,14 @@ function Qn() {
|
|
|
4415
4445
|
this._doCryptBlock(E, s, this._invSubKeys);
|
|
4416
4446
|
},
|
|
4417
4447
|
_doCryptBlock: function(E, s, c) {
|
|
4418
|
-
this._lBlock = E[s], this._rBlock = E[s + 1], d.call(this, 4, 252645135), d.call(this, 16, 65535),
|
|
4448
|
+
this._lBlock = E[s], this._rBlock = E[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);
|
|
4419
4449
|
for (var l = 0; l < 16; l++) {
|
|
4420
4450
|
for (var D = c[l], F = this._lBlock, _ = this._rBlock, b = 0, S = 0; S < 8; S++)
|
|
4421
|
-
b |=
|
|
4451
|
+
b |= B[S][((_ ^ D[S]) & a[S]) >>> 0];
|
|
4422
4452
|
this._lBlock = _, this._rBlock = F ^ b;
|
|
4423
4453
|
}
|
|
4424
|
-
var
|
|
4425
|
-
this._lBlock = this._rBlock, this._rBlock =
|
|
4454
|
+
var A = this._lBlock;
|
|
4455
|
+
this._lBlock = this._rBlock, this._rBlock = A, 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), E[s] = this._lBlock, E[s + 1] = this._rBlock;
|
|
4426
4456
|
},
|
|
4427
4457
|
keySize: 64 / 32,
|
|
4428
4458
|
ivSize: 64 / 32,
|
|
@@ -4432,12 +4462,12 @@ function Qn() {
|
|
|
4432
4462
|
var c = (this._lBlock >>> E ^ this._rBlock) & s;
|
|
4433
4463
|
this._rBlock ^= c, this._lBlock ^= c << E;
|
|
4434
4464
|
}
|
|
4435
|
-
function
|
|
4465
|
+
function C(E, s) {
|
|
4436
4466
|
var c = (this._rBlock >>> E ^ this._lBlock) & s;
|
|
4437
4467
|
this._lBlock ^= c, this._rBlock ^= c << E;
|
|
4438
4468
|
}
|
|
4439
|
-
r.DES =
|
|
4440
|
-
var v = h.TripleDES =
|
|
4469
|
+
r.DES = y._createHelper(u);
|
|
4470
|
+
var v = h.TripleDES = y.extend({
|
|
4441
4471
|
_doReset: function() {
|
|
4442
4472
|
var E = this._key, s = E.words;
|
|
4443
4473
|
if (s.length !== 2 && s.length !== 4 && s.length < 6)
|
|
@@ -4455,46 +4485,46 @@ function Qn() {
|
|
|
4455
4485
|
ivSize: 64 / 32,
|
|
4456
4486
|
blockSize: 64 / 32
|
|
4457
4487
|
});
|
|
4458
|
-
r.TripleDES =
|
|
4488
|
+
r.TripleDES = y._createHelper(v);
|
|
4459
4489
|
})(), n.TripleDES;
|
|
4460
4490
|
});
|
|
4461
|
-
})(
|
|
4491
|
+
})(pe)), pe.exports;
|
|
4462
4492
|
}
|
|
4463
|
-
var
|
|
4464
|
-
function
|
|
4465
|
-
return
|
|
4493
|
+
var Ce = { exports: {} }, oi = Ce.exports, qr;
|
|
4494
|
+
function xi() {
|
|
4495
|
+
return qr || (qr = 1, (function(e, t) {
|
|
4466
4496
|
(function(n, r, x) {
|
|
4467
|
-
e.exports = r(
|
|
4468
|
-
})(
|
|
4497
|
+
e.exports = r(q(), l0(), v0(), h0(), Q());
|
|
4498
|
+
})(oi, function(n) {
|
|
4469
4499
|
return (function() {
|
|
4470
|
-
var r = n, x = r.lib, f = x.StreamCipher,
|
|
4500
|
+
var r = n, x = r.lib, f = x.StreamCipher, y = r.algo, h = y.RC4 = f.extend({
|
|
4471
4501
|
_doReset: function() {
|
|
4472
|
-
for (var o = this._key,
|
|
4502
|
+
for (var o = this._key, B = o.words, a = o.sigBytes, u = this._S = [], d = 0; d < 256; d++)
|
|
4473
4503
|
u[d] = d;
|
|
4474
|
-
for (var d = 0,
|
|
4475
|
-
var v = d % a, E =
|
|
4476
|
-
|
|
4504
|
+
for (var d = 0, C = 0; d < 256; d++) {
|
|
4505
|
+
var v = d % a, E = B[v >>> 2] >>> 24 - v % 4 * 8 & 255;
|
|
4506
|
+
C = (C + u[d] + E) % 256;
|
|
4477
4507
|
var s = u[d];
|
|
4478
|
-
u[d] = u[
|
|
4508
|
+
u[d] = u[C], u[C] = s;
|
|
4479
4509
|
}
|
|
4480
4510
|
this._i = this._j = 0;
|
|
4481
4511
|
},
|
|
4482
|
-
_doProcessBlock: function(o,
|
|
4483
|
-
o[
|
|
4512
|
+
_doProcessBlock: function(o, B) {
|
|
4513
|
+
o[B] ^= p.call(this);
|
|
4484
4514
|
},
|
|
4485
4515
|
keySize: 256 / 32,
|
|
4486
4516
|
ivSize: 0
|
|
4487
4517
|
});
|
|
4488
|
-
function
|
|
4489
|
-
for (var o = this._S,
|
|
4490
|
-
|
|
4491
|
-
var
|
|
4492
|
-
o[
|
|
4518
|
+
function p() {
|
|
4519
|
+
for (var o = this._S, B = this._i, a = this._j, u = 0, d = 0; d < 4; d++) {
|
|
4520
|
+
B = (B + 1) % 256, a = (a + o[B]) % 256;
|
|
4521
|
+
var C = o[B];
|
|
4522
|
+
o[B] = o[a], o[a] = C, u |= o[(o[B] + o[a]) % 256] << 24 - d * 8;
|
|
4493
4523
|
}
|
|
4494
|
-
return this._i =
|
|
4524
|
+
return this._i = B, this._j = a, u;
|
|
4495
4525
|
}
|
|
4496
4526
|
r.RC4 = f._createHelper(h);
|
|
4497
|
-
var i =
|
|
4527
|
+
var i = y.RC4Drop = h.extend({
|
|
4498
4528
|
/**
|
|
4499
4529
|
* Configuration options.
|
|
4500
4530
|
*
|
|
@@ -4506,26 +4536,26 @@ function Jn() {
|
|
|
4506
4536
|
_doReset: function() {
|
|
4507
4537
|
h._doReset.call(this);
|
|
4508
4538
|
for (var o = this.cfg.drop; o > 0; o--)
|
|
4509
|
-
|
|
4539
|
+
p.call(this);
|
|
4510
4540
|
}
|
|
4511
4541
|
});
|
|
4512
4542
|
r.RC4Drop = f._createHelper(i);
|
|
4513
4543
|
})(), n.RC4;
|
|
4514
4544
|
});
|
|
4515
|
-
})(
|
|
4545
|
+
})(Ce)), Ce.exports;
|
|
4516
4546
|
}
|
|
4517
|
-
var
|
|
4518
|
-
function
|
|
4519
|
-
return
|
|
4547
|
+
var Be = { exports: {} }, ai = Be.exports, Nr;
|
|
4548
|
+
function si() {
|
|
4549
|
+
return Nr || (Nr = 1, (function(e, t) {
|
|
4520
4550
|
(function(n, r, x) {
|
|
4521
|
-
e.exports = r(
|
|
4522
|
-
})(
|
|
4551
|
+
e.exports = r(q(), l0(), v0(), h0(), Q());
|
|
4552
|
+
})(ai, function(n) {
|
|
4523
4553
|
return (function() {
|
|
4524
|
-
var r = n, x = r.lib, f = x.StreamCipher,
|
|
4554
|
+
var r = n, x = r.lib, f = x.StreamCipher, y = r.algo, h = [], p = [], i = [], o = y.Rabbit = f.extend({
|
|
4525
4555
|
_doReset: function() {
|
|
4526
4556
|
for (var a = this._key.words, u = this.cfg.iv, d = 0; d < 4; d++)
|
|
4527
4557
|
a[d] = (a[d] << 8 | a[d] >>> 24) & 16711935 | (a[d] << 24 | a[d] >>> 8) & 4278255360;
|
|
4528
|
-
var
|
|
4558
|
+
var C = this._X = [
|
|
4529
4559
|
a[0],
|
|
4530
4560
|
a[3] << 16 | a[2] >>> 16,
|
|
4531
4561
|
a[1],
|
|
@@ -4546,31 +4576,31 @@ function ri() {
|
|
|
4546
4576
|
];
|
|
4547
4577
|
this._b = 0;
|
|
4548
4578
|
for (var d = 0; d < 4; d++)
|
|
4549
|
-
|
|
4579
|
+
B.call(this);
|
|
4550
4580
|
for (var d = 0; d < 8; d++)
|
|
4551
|
-
v[d] ^=
|
|
4581
|
+
v[d] ^= C[d + 4 & 7];
|
|
4552
4582
|
if (u) {
|
|
4553
4583
|
var E = u.words, s = E[0], c = E[1], l = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360, D = (c << 8 | c >>> 24) & 16711935 | (c << 24 | c >>> 8) & 4278255360, F = l >>> 16 | D & 4294901760, _ = D << 16 | l & 65535;
|
|
4554
4584
|
v[0] ^= l, v[1] ^= F, v[2] ^= D, v[3] ^= _, v[4] ^= l, v[5] ^= F, v[6] ^= D, v[7] ^= _;
|
|
4555
4585
|
for (var d = 0; d < 4; d++)
|
|
4556
|
-
|
|
4586
|
+
B.call(this);
|
|
4557
4587
|
}
|
|
4558
4588
|
},
|
|
4559
4589
|
_doProcessBlock: function(a, u) {
|
|
4560
4590
|
var d = this._X;
|
|
4561
|
-
|
|
4562
|
-
for (var
|
|
4563
|
-
h[
|
|
4591
|
+
B.call(this), h[0] = d[0] ^ d[5] >>> 16 ^ d[3] << 16, h[1] = d[2] ^ d[7] >>> 16 ^ d[5] << 16, h[2] = d[4] ^ d[1] >>> 16 ^ d[7] << 16, h[3] = d[6] ^ d[3] >>> 16 ^ d[1] << 16;
|
|
4592
|
+
for (var C = 0; C < 4; C++)
|
|
4593
|
+
h[C] = (h[C] << 8 | h[C] >>> 24) & 16711935 | (h[C] << 24 | h[C] >>> 8) & 4278255360, a[u + C] ^= h[C];
|
|
4564
4594
|
},
|
|
4565
4595
|
blockSize: 128 / 32,
|
|
4566
4596
|
ivSize: 64 / 32
|
|
4567
4597
|
});
|
|
4568
|
-
function
|
|
4598
|
+
function B() {
|
|
4569
4599
|
for (var a = this._X, u = this._C, d = 0; d < 8; d++)
|
|
4570
|
-
|
|
4571
|
-
u[0] = u[0] + 1295307597 + this._b | 0, u[1] = u[1] + 3545052371 + (u[0] >>> 0 <
|
|
4600
|
+
p[d] = u[d];
|
|
4601
|
+
u[0] = u[0] + 1295307597 + this._b | 0, u[1] = u[1] + 3545052371 + (u[0] >>> 0 < p[0] >>> 0 ? 1 : 0) | 0, u[2] = u[2] + 886263092 + (u[1] >>> 0 < p[1] >>> 0 ? 1 : 0) | 0, u[3] = u[3] + 1295307597 + (u[2] >>> 0 < p[2] >>> 0 ? 1 : 0) | 0, u[4] = u[4] + 3545052371 + (u[3] >>> 0 < p[3] >>> 0 ? 1 : 0) | 0, u[5] = u[5] + 886263092 + (u[4] >>> 0 < p[4] >>> 0 ? 1 : 0) | 0, u[6] = u[6] + 1295307597 + (u[5] >>> 0 < p[5] >>> 0 ? 1 : 0) | 0, u[7] = u[7] + 3545052371 + (u[6] >>> 0 < p[6] >>> 0 ? 1 : 0) | 0, this._b = u[7] >>> 0 < p[7] >>> 0 ? 1 : 0;
|
|
4572
4602
|
for (var d = 0; d < 8; d++) {
|
|
4573
|
-
var
|
|
4603
|
+
var C = a[d] + u[d], v = C & 65535, E = C >>> 16, s = ((v * v >>> 17) + v * E >>> 15) + E * E, c = ((C & 4294901760) * C | 0) + ((C & 65535) * C | 0);
|
|
4574
4604
|
i[d] = s ^ c;
|
|
4575
4605
|
}
|
|
4576
4606
|
a[0] = i[0] + (i[7] << 16 | i[7] >>> 16) + (i[6] << 16 | i[6] >>> 16) | 0, a[1] = i[1] + (i[0] << 8 | i[0] >>> 24) + i[7] | 0, a[2] = i[2] + (i[1] << 16 | i[1] >>> 16) + (i[0] << 16 | i[0] >>> 16) | 0, a[3] = i[3] + (i[2] << 8 | i[2] >>> 24) + i[1] | 0, a[4] = i[4] + (i[3] << 16 | i[3] >>> 16) + (i[2] << 16 | i[2] >>> 16) | 0, a[5] = i[5] + (i[4] << 8 | i[4] >>> 24) + i[3] | 0, a[6] = i[6] + (i[5] << 16 | i[5] >>> 16) + (i[4] << 16 | i[4] >>> 16) | 0, a[7] = i[7] + (i[6] << 8 | i[6] >>> 24) + i[5] | 0;
|
|
@@ -4578,16 +4608,16 @@ function ri() {
|
|
|
4578
4608
|
r.Rabbit = f._createHelper(o);
|
|
4579
4609
|
})(), n.Rabbit;
|
|
4580
4610
|
});
|
|
4581
|
-
})(
|
|
4611
|
+
})(Be)), Be.exports;
|
|
4582
4612
|
}
|
|
4583
|
-
var
|
|
4584
|
-
function
|
|
4585
|
-
return
|
|
4613
|
+
var Ae = { exports: {} }, ci = Ae.exports, Or;
|
|
4614
|
+
function fi() {
|
|
4615
|
+
return Or || (Or = 1, (function(e, t) {
|
|
4586
4616
|
(function(n, r, x) {
|
|
4587
|
-
e.exports = r(
|
|
4588
|
-
})(
|
|
4617
|
+
e.exports = r(q(), l0(), v0(), h0(), Q());
|
|
4618
|
+
})(ci, function(n) {
|
|
4589
4619
|
return (function() {
|
|
4590
|
-
var r = n, x = r.lib, f = x.StreamCipher,
|
|
4620
|
+
var r = n, x = r.lib, f = x.StreamCipher, y = r.algo, h = [], p = [], i = [], o = y.RabbitLegacy = f.extend({
|
|
4591
4621
|
_doReset: function() {
|
|
4592
4622
|
var a = this._key.words, u = this.cfg.iv, d = this._X = [
|
|
4593
4623
|
a[0],
|
|
@@ -4598,7 +4628,7 @@ function ni() {
|
|
|
4598
4628
|
a[1] << 16 | a[0] >>> 16,
|
|
4599
4629
|
a[3],
|
|
4600
4630
|
a[2] << 16 | a[1] >>> 16
|
|
4601
|
-
],
|
|
4631
|
+
], C = this._C = [
|
|
4602
4632
|
a[2] << 16 | a[2] >>> 16,
|
|
4603
4633
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4604
4634
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4610,31 +4640,31 @@ function ni() {
|
|
|
4610
4640
|
];
|
|
4611
4641
|
this._b = 0;
|
|
4612
4642
|
for (var v = 0; v < 4; v++)
|
|
4613
|
-
|
|
4643
|
+
B.call(this);
|
|
4614
4644
|
for (var v = 0; v < 8; v++)
|
|
4615
|
-
|
|
4645
|
+
C[v] ^= d[v + 4 & 7];
|
|
4616
4646
|
if (u) {
|
|
4617
4647
|
var E = u.words, s = E[0], c = E[1], l = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360, D = (c << 8 | c >>> 24) & 16711935 | (c << 24 | c >>> 8) & 4278255360, F = l >>> 16 | D & 4294901760, _ = D << 16 | l & 65535;
|
|
4618
|
-
|
|
4648
|
+
C[0] ^= l, C[1] ^= F, C[2] ^= D, C[3] ^= _, C[4] ^= l, C[5] ^= F, C[6] ^= D, C[7] ^= _;
|
|
4619
4649
|
for (var v = 0; v < 4; v++)
|
|
4620
|
-
|
|
4650
|
+
B.call(this);
|
|
4621
4651
|
}
|
|
4622
4652
|
},
|
|
4623
4653
|
_doProcessBlock: function(a, u) {
|
|
4624
4654
|
var d = this._X;
|
|
4625
|
-
|
|
4626
|
-
for (var
|
|
4627
|
-
h[
|
|
4655
|
+
B.call(this), h[0] = d[0] ^ d[5] >>> 16 ^ d[3] << 16, h[1] = d[2] ^ d[7] >>> 16 ^ d[5] << 16, h[2] = d[4] ^ d[1] >>> 16 ^ d[7] << 16, h[3] = d[6] ^ d[3] >>> 16 ^ d[1] << 16;
|
|
4656
|
+
for (var C = 0; C < 4; C++)
|
|
4657
|
+
h[C] = (h[C] << 8 | h[C] >>> 24) & 16711935 | (h[C] << 24 | h[C] >>> 8) & 4278255360, a[u + C] ^= h[C];
|
|
4628
4658
|
},
|
|
4629
4659
|
blockSize: 128 / 32,
|
|
4630
4660
|
ivSize: 64 / 32
|
|
4631
4661
|
});
|
|
4632
|
-
function
|
|
4662
|
+
function B() {
|
|
4633
4663
|
for (var a = this._X, u = this._C, d = 0; d < 8; d++)
|
|
4634
|
-
|
|
4635
|
-
u[0] = u[0] + 1295307597 + this._b | 0, u[1] = u[1] + 3545052371 + (u[0] >>> 0 <
|
|
4664
|
+
p[d] = u[d];
|
|
4665
|
+
u[0] = u[0] + 1295307597 + this._b | 0, u[1] = u[1] + 3545052371 + (u[0] >>> 0 < p[0] >>> 0 ? 1 : 0) | 0, u[2] = u[2] + 886263092 + (u[1] >>> 0 < p[1] >>> 0 ? 1 : 0) | 0, u[3] = u[3] + 1295307597 + (u[2] >>> 0 < p[2] >>> 0 ? 1 : 0) | 0, u[4] = u[4] + 3545052371 + (u[3] >>> 0 < p[3] >>> 0 ? 1 : 0) | 0, u[5] = u[5] + 886263092 + (u[4] >>> 0 < p[4] >>> 0 ? 1 : 0) | 0, u[6] = u[6] + 1295307597 + (u[5] >>> 0 < p[5] >>> 0 ? 1 : 0) | 0, u[7] = u[7] + 3545052371 + (u[6] >>> 0 < p[6] >>> 0 ? 1 : 0) | 0, this._b = u[7] >>> 0 < p[7] >>> 0 ? 1 : 0;
|
|
4636
4666
|
for (var d = 0; d < 8; d++) {
|
|
4637
|
-
var
|
|
4667
|
+
var C = a[d] + u[d], v = C & 65535, E = C >>> 16, s = ((v * v >>> 17) + v * E >>> 15) + E * E, c = ((C & 4294901760) * C | 0) + ((C & 65535) * C | 0);
|
|
4638
4668
|
i[d] = s ^ c;
|
|
4639
4669
|
}
|
|
4640
4670
|
a[0] = i[0] + (i[7] << 16 | i[7] >>> 16) + (i[6] << 16 | i[6] >>> 16) | 0, a[1] = i[1] + (i[0] << 8 | i[0] >>> 24) + i[7] | 0, a[2] = i[2] + (i[1] << 16 | i[1] >>> 16) + (i[0] << 16 | i[0] >>> 16) | 0, a[3] = i[3] + (i[2] << 8 | i[2] >>> 24) + i[1] | 0, a[4] = i[4] + (i[3] << 16 | i[3] >>> 16) + (i[2] << 16 | i[2] >>> 16) | 0, a[5] = i[5] + (i[4] << 8 | i[4] >>> 24) + i[3] | 0, a[6] = i[6] + (i[5] << 16 | i[5] >>> 16) + (i[4] << 16 | i[4] >>> 16) | 0, a[7] = i[7] + (i[6] << 8 | i[6] >>> 24) + i[5] | 0;
|
|
@@ -4642,17 +4672,17 @@ function ni() {
|
|
|
4642
4672
|
r.RabbitLegacy = f._createHelper(o);
|
|
4643
4673
|
})(), n.RabbitLegacy;
|
|
4644
4674
|
});
|
|
4645
|
-
})(
|
|
4675
|
+
})(Ae)), Ae.exports;
|
|
4646
4676
|
}
|
|
4647
|
-
var
|
|
4648
|
-
function
|
|
4649
|
-
return
|
|
4677
|
+
var ye = { exports: {} }, di = ye.exports, Wr;
|
|
4678
|
+
function ui() {
|
|
4679
|
+
return Wr || (Wr = 1, (function(e, t) {
|
|
4650
4680
|
(function(n, r, x) {
|
|
4651
|
-
e.exports = r(
|
|
4652
|
-
})(
|
|
4681
|
+
e.exports = r(q(), l0(), v0(), h0(), Q());
|
|
4682
|
+
})(di, function(n) {
|
|
4653
4683
|
return (function() {
|
|
4654
|
-
var r = n, x = r.lib, f = x.BlockCipher,
|
|
4655
|
-
const h = 16,
|
|
4684
|
+
var r = n, x = r.lib, f = x.BlockCipher, y = r.algo;
|
|
4685
|
+
const h = 16, p = [
|
|
4656
4686
|
608135816,
|
|
4657
4687
|
2242054355,
|
|
4658
4688
|
320440878,
|
|
@@ -5709,20 +5739,20 @@ function oi() {
|
|
|
5709
5739
|
pbox: [],
|
|
5710
5740
|
sbox: []
|
|
5711
5741
|
};
|
|
5712
|
-
function
|
|
5742
|
+
function B(v, E) {
|
|
5713
5743
|
let s = E >> 24 & 255, c = E >> 16 & 255, l = E >> 8 & 255, D = E & 255, F = v.sbox[0][s] + v.sbox[1][c];
|
|
5714
5744
|
return F = F ^ v.sbox[2][l], F = F + v.sbox[3][D], F;
|
|
5715
5745
|
}
|
|
5716
5746
|
function a(v, E, s) {
|
|
5717
5747
|
let c = E, l = s, D;
|
|
5718
5748
|
for (let F = 0; F < h; ++F)
|
|
5719
|
-
c = c ^ v.pbox[F], l =
|
|
5749
|
+
c = c ^ v.pbox[F], l = B(v, c) ^ l, D = c, c = l, l = D;
|
|
5720
5750
|
return D = c, c = l, l = D, l = l ^ v.pbox[h], c = c ^ v.pbox[h + 1], { left: c, right: l };
|
|
5721
5751
|
}
|
|
5722
5752
|
function u(v, E, s) {
|
|
5723
5753
|
let c = E, l = s, D;
|
|
5724
5754
|
for (let F = h + 1; F > 1; --F)
|
|
5725
|
-
c = c ^ v.pbox[F], l =
|
|
5755
|
+
c = c ^ v.pbox[F], l = B(v, c) ^ l, D = c, c = l, l = D;
|
|
5726
5756
|
return D = c, c = l, l = D, l = l ^ v.pbox[1], c = c ^ v.pbox[0], { left: c, right: l };
|
|
5727
5757
|
}
|
|
5728
5758
|
function d(v, E, s) {
|
|
@@ -5733,7 +5763,7 @@ function oi() {
|
|
|
5733
5763
|
}
|
|
5734
5764
|
let c = 0;
|
|
5735
5765
|
for (let _ = 0; _ < h + 2; _++)
|
|
5736
|
-
v.pbox[_] =
|
|
5766
|
+
v.pbox[_] = p[_] ^ E[c], c++, c >= s && (c = 0);
|
|
5737
5767
|
let l = 0, D = 0, F = 0;
|
|
5738
5768
|
for (let _ = 0; _ < h + 2; _ += 2)
|
|
5739
5769
|
F = a(v, l, D), l = F.left, D = F.right, v.pbox[_] = l, v.pbox[_ + 1] = D;
|
|
@@ -5742,7 +5772,7 @@ function oi() {
|
|
|
5742
5772
|
F = a(v, l, D), l = F.left, D = F.right, v.sbox[_][b] = l, v.sbox[_][b + 1] = D;
|
|
5743
5773
|
return !0;
|
|
5744
5774
|
}
|
|
5745
|
-
var
|
|
5775
|
+
var C = y.Blowfish = f.extend({
|
|
5746
5776
|
_doReset: function() {
|
|
5747
5777
|
if (this._keyPriorReset !== this._key) {
|
|
5748
5778
|
var v = this._keyPriorReset = this._key, E = v.words, s = v.sigBytes / 4;
|
|
@@ -5761,63 +5791,62 @@ function oi() {
|
|
|
5761
5791
|
keySize: 128 / 32,
|
|
5762
5792
|
ivSize: 64 / 32
|
|
5763
5793
|
});
|
|
5764
|
-
r.Blowfish = f._createHelper(
|
|
5794
|
+
r.Blowfish = f._createHelper(C);
|
|
5765
5795
|
})(), n.Blowfish;
|
|
5766
5796
|
});
|
|
5767
|
-
})(
|
|
5797
|
+
})(ye)), ye.exports;
|
|
5768
5798
|
}
|
|
5769
|
-
var
|
|
5770
|
-
function
|
|
5771
|
-
return
|
|
5799
|
+
var hi = q0.exports, Ur;
|
|
5800
|
+
function li() {
|
|
5801
|
+
return Ur || (Ur = 1, (function(e, t) {
|
|
5772
5802
|
(function(n, r, x) {
|
|
5773
|
-
e.exports = r(
|
|
5774
|
-
})(
|
|
5803
|
+
e.exports = r(q(), De(), fn(), un(), l0(), vn(), v0(), xt(), Ke(), yn(), at(), Fn(), _n(), mn(), Xe(), kn(), h0(), Q(), zn(), Hn(), Ln(), Nn(), Wn(), Gn(), Kn(), Mn(), Zn(), Yn(), ei(), ti(), ii(), xi(), si(), fi(), ui());
|
|
5804
|
+
})(hi, function(n) {
|
|
5775
5805
|
return n;
|
|
5776
5806
|
});
|
|
5777
|
-
})(
|
|
5807
|
+
})(q0)), q0.exports;
|
|
5778
5808
|
}
|
|
5779
|
-
var
|
|
5780
|
-
const
|
|
5781
|
-
function
|
|
5809
|
+
var vi = li();
|
|
5810
|
+
const x0 = /* @__PURE__ */ en(vi), st = "jctrans2003Z!2@#";
|
|
5811
|
+
function Zi(e) {
|
|
5782
5812
|
if (!e)
|
|
5783
5813
|
return e;
|
|
5784
|
-
const t =
|
|
5785
|
-
mode:
|
|
5786
|
-
padding:
|
|
5814
|
+
const t = x0.enc.Utf8.parse(st), n = x0.AES.decrypt(e, t, {
|
|
5815
|
+
mode: x0.mode.ECB,
|
|
5816
|
+
padding: x0.pad.Pkcs7
|
|
5787
5817
|
});
|
|
5788
|
-
return
|
|
5818
|
+
return x0.enc.Utf8.stringify(n).toString();
|
|
5789
5819
|
}
|
|
5790
|
-
function
|
|
5820
|
+
function S0(e) {
|
|
5791
5821
|
if (!e)
|
|
5792
5822
|
return e;
|
|
5793
|
-
var t =
|
|
5794
|
-
mode:
|
|
5795
|
-
padding:
|
|
5823
|
+
var t = x0.enc.Utf8.parse(st), n = x0.enc.Utf8.parse(e), r = x0.AES.encrypt(n, t, {
|
|
5824
|
+
mode: x0.mode.ECB,
|
|
5825
|
+
padding: x0.pad.Pkcs7
|
|
5796
5826
|
});
|
|
5797
5827
|
return r.toString();
|
|
5798
5828
|
}
|
|
5799
|
-
function
|
|
5829
|
+
function pi(e = {}) {
|
|
5800
5830
|
const { headerName: t = "client-uid", injectRequest: n = !0 } = e;
|
|
5801
5831
|
return ((r, x = {}) => {
|
|
5802
5832
|
if (!n)
|
|
5803
5833
|
return globalThis.fetch(r, x);
|
|
5804
|
-
const f =
|
|
5805
|
-
return
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
});
|
|
5834
|
+
const f = nt(), y = new Headers(x.headers || {});
|
|
5835
|
+
return y.set(t, f), globalThis.fetch(r, U(z({}, x), {
|
|
5836
|
+
headers: y
|
|
5837
|
+
}));
|
|
5809
5838
|
});
|
|
5810
5839
|
}
|
|
5811
|
-
function
|
|
5840
|
+
function Qi(e = {}) {
|
|
5812
5841
|
if (typeof globalThis == "undefined" || typeof globalThis.fetch == "undefined") {
|
|
5813
5842
|
console.warn("[ClientId] fetch is not available in this environment");
|
|
5814
5843
|
return;
|
|
5815
5844
|
}
|
|
5816
|
-
const t =
|
|
5845
|
+
const t = pi(e);
|
|
5817
5846
|
globalThis.fetch = t;
|
|
5818
5847
|
}
|
|
5819
|
-
const
|
|
5820
|
-
function
|
|
5848
|
+
const Ci = "2.1", Bi = () => a0().basePath, $0 = () => a0().carrierPath, L0 = () => a0().linePath, Ai = () => a0().allLinePath;
|
|
5849
|
+
function ct(e, t) {
|
|
5821
5850
|
if (t)
|
|
5822
5851
|
return { target: e, finalType: t };
|
|
5823
5852
|
let n = e.type;
|
|
@@ -5830,43 +5859,43 @@ function it(e, t) {
|
|
|
5830
5859
|
// 兜底
|
|
5831
5860
|
};
|
|
5832
5861
|
}
|
|
5833
|
-
function
|
|
5834
|
-
const { target: r, finalType: x } =
|
|
5862
|
+
function Pe(e, t, n) {
|
|
5863
|
+
const { target: r, finalType: x } = ct(e, n), f = (o) => {
|
|
5835
5864
|
if (!o) return "";
|
|
5836
|
-
const
|
|
5865
|
+
const B = o.nameCn || o.displayNameCn || o.name || o.carrierNameCn || // 兼容 Carrier
|
|
5837
5866
|
o.lineNameCn || "", a = o.nameEn || o.displayNameEn || o.nameEnShow || o.carrierNameEn || // 兼容 Carrier
|
|
5838
5867
|
o.lineNameEn || // 兼容 Line
|
|
5839
5868
|
"";
|
|
5840
|
-
return t ? a ||
|
|
5841
|
-
},
|
|
5869
|
+
return t ? a || B : B || a;
|
|
5870
|
+
}, y = f(r);
|
|
5842
5871
|
if (x === "Carrier") {
|
|
5843
5872
|
const o = r.scac || r.scacCode || r.carrierCode || r.code || "";
|
|
5844
|
-
return o ? `${
|
|
5873
|
+
return o ? `${y} (${o})` : y;
|
|
5845
5874
|
}
|
|
5846
5875
|
if (x === "Line") {
|
|
5847
5876
|
const o = t ? r.countryNameEn || "" : r.countryNameCn || "";
|
|
5848
|
-
return o ? `${
|
|
5877
|
+
return o ? `${y} (${o})` : y;
|
|
5849
5878
|
}
|
|
5850
|
-
const h = e.country || e.region,
|
|
5879
|
+
const h = e.country || e.region, p = f(h), i = f(e.city);
|
|
5851
5880
|
if (["Seaport", "Airport", "Wharf"].includes(x)) {
|
|
5852
|
-
const o = [i,
|
|
5853
|
-
return o ? `${
|
|
5881
|
+
const o = [i, p].filter(Boolean).join(", ");
|
|
5882
|
+
return o ? `${y} (${o})` : y;
|
|
5854
5883
|
}
|
|
5855
|
-
return ["City", "Province"].includes(x) &&
|
|
5884
|
+
return ["City", "Province"].includes(x) && p ? `${y} (${p})` : y;
|
|
5856
5885
|
}
|
|
5857
|
-
function
|
|
5886
|
+
function yi(e = [], t) {
|
|
5858
5887
|
return e.map((n) => {
|
|
5859
5888
|
var o;
|
|
5860
|
-
const { target: r, finalType: x } =
|
|
5889
|
+
const { target: r, finalType: x } = ct(n, t), f = r.nameCn || r.name || r.carrierNameCn || r.lineNameCn, y = r.nameEn || r.nameEnShow || r.carrierNameEn || r.lineNameEn, h = r.scacCode || r.scac || r.carrierCode || r.code, p = {
|
|
5861
5890
|
id: (o = r.id) != null ? o : n.id,
|
|
5862
5891
|
type: x,
|
|
5863
5892
|
nameCn: f,
|
|
5864
|
-
nameEn:
|
|
5893
|
+
nameEn: y,
|
|
5865
5894
|
code: h,
|
|
5866
5895
|
// 通用展示代码字段
|
|
5867
|
-
display:
|
|
5868
|
-
displayEn:
|
|
5869
|
-
displayCn:
|
|
5896
|
+
display: Pe(n, Gr(), t),
|
|
5897
|
+
displayEn: Pe(n, !0, t),
|
|
5898
|
+
displayCn: Pe(n, !1, t),
|
|
5870
5899
|
raw: n
|
|
5871
5900
|
};
|
|
5872
5901
|
let i = {};
|
|
@@ -5880,70 +5909,67 @@ function hi(e = [], t) {
|
|
|
5880
5909
|
lineType: r.lineType
|
|
5881
5910
|
// Line 也有 lineType
|
|
5882
5911
|
// 如果 Line 还有其他特有字段,可以在这里加
|
|
5883
|
-
}), {
|
|
5884
|
-
...B,
|
|
5885
|
-
...i
|
|
5886
|
-
};
|
|
5912
|
+
}), z(z({}, p), i);
|
|
5887
5913
|
});
|
|
5888
5914
|
}
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
};
|
|
5915
|
+
function M(n) {
|
|
5916
|
+
return V(this, arguments, function* (e, t = {}) {
|
|
5917
|
+
const r = z({
|
|
5918
|
+
current: 1,
|
|
5919
|
+
size: 10
|
|
5920
|
+
}, e), x = t.path || Bi(), y = (yield n0.post(x, r)).data.data || {};
|
|
5921
|
+
return U(z({}, y), {
|
|
5922
|
+
// 传入 forcedType 以正确处理非 Location 结构的 Carrier/Line 数据
|
|
5923
|
+
records: yi(y.records || [], t.forcedType)
|
|
5924
|
+
});
|
|
5925
|
+
});
|
|
5900
5926
|
}
|
|
5901
|
-
const
|
|
5902
|
-
searchByName: (e) =>
|
|
5927
|
+
const ft = {
|
|
5928
|
+
searchByName: (e) => M(U(z({
|
|
5903
5929
|
searchContent: e.keyword,
|
|
5904
|
-
searchMode: e.searchMode
|
|
5905
|
-
|
|
5930
|
+
searchMode: e.searchMode
|
|
5931
|
+
}, e), {
|
|
5906
5932
|
displayInfo: ["Country"]
|
|
5907
|
-
}),
|
|
5908
|
-
getByIds: (e) =>
|
|
5909
|
-
},
|
|
5910
|
-
searchByName: (e) =>
|
|
5933
|
+
})),
|
|
5934
|
+
getByIds: (e) => M({ countryIds: e, displayInfo: ["Country"] })
|
|
5935
|
+
}, dt = {
|
|
5936
|
+
searchByName: (e) => M(U(z({
|
|
5911
5937
|
searchContent: e.keyword,
|
|
5912
|
-
searchMode: e.searchMode
|
|
5913
|
-
|
|
5938
|
+
searchMode: e.searchMode
|
|
5939
|
+
}, e), {
|
|
5914
5940
|
displayInfo: ["Country"]
|
|
5915
5941
|
// Region 往往复用 Country 逻辑
|
|
5916
|
-
}),
|
|
5917
|
-
getByIds: (e) =>
|
|
5918
|
-
},
|
|
5919
|
-
searchByName: (e) =>
|
|
5942
|
+
})),
|
|
5943
|
+
getByIds: (e) => M({ countryIds: e, displayInfo: ["Country"] })
|
|
5944
|
+
}, Le = {
|
|
5945
|
+
searchByName: (e) => M(U(z({
|
|
5920
5946
|
searchContent: e.keyword,
|
|
5921
|
-
countryIds: e.countryId ? [e.countryId] : void 0
|
|
5922
|
-
|
|
5947
|
+
countryIds: e.countryId ? [e.countryId] : void 0
|
|
5948
|
+
}, e), {
|
|
5923
5949
|
displayInfo: ["City"]
|
|
5924
|
-
}),
|
|
5925
|
-
getByIds: (e) =>
|
|
5926
|
-
getCitiesByCountry: (e, t) =>
|
|
5927
|
-
},
|
|
5928
|
-
searchByName: (e) =>
|
|
5950
|
+
})),
|
|
5951
|
+
getByIds: (e) => M({ cityIds: e, displayInfo: ["City"] }),
|
|
5952
|
+
getCitiesByCountry: (e, t) => M(z({ countryIds: [e], displayInfo: ["City"] }, t))
|
|
5953
|
+
}, ut = {
|
|
5954
|
+
searchByName: (e) => M(U(z({
|
|
5929
5955
|
searchContent: e.keyword,
|
|
5930
5956
|
cityIds: e.cityId ? [e.cityId] : void 0,
|
|
5931
|
-
countryIds: e.countryId ? [e.countryId] : void 0
|
|
5932
|
-
|
|
5957
|
+
countryIds: e.countryId ? [e.countryId] : void 0
|
|
5958
|
+
}, e), {
|
|
5933
5959
|
displayInfo: ["Seaport"]
|
|
5934
|
-
}),
|
|
5935
|
-
getByIds: (e) =>
|
|
5936
|
-
},
|
|
5937
|
-
searchByName: (e) =>
|
|
5960
|
+
})),
|
|
5961
|
+
getByIds: (e) => M({ seaportIds: e, displayInfo: ["Seaport"] })
|
|
5962
|
+
}, ht = {
|
|
5963
|
+
searchByName: (e) => M(U(z({
|
|
5938
5964
|
searchContent: e.keyword,
|
|
5939
|
-
countryIds: e.countryId ? [e.countryId] : void 0
|
|
5940
|
-
|
|
5965
|
+
countryIds: e.countryId ? [e.countryId] : void 0
|
|
5966
|
+
}, e), {
|
|
5941
5967
|
displayInfo: ["Airport"]
|
|
5942
|
-
}),
|
|
5943
|
-
getByIds: (e) =>
|
|
5944
|
-
},
|
|
5945
|
-
getByIds: (e) =>
|
|
5946
|
-
},
|
|
5968
|
+
})),
|
|
5969
|
+
getByIds: (e) => M({ airportIds: e, displayInfo: ["Airport"] })
|
|
5970
|
+
}, lt = {
|
|
5971
|
+
getByIds: (e) => M({ wharfIds: e, displayInfo: ["Wharf"] })
|
|
5972
|
+
}, y0 = {
|
|
5947
5973
|
/**
|
|
5948
5974
|
* 内部私有方法:构建符合 Carrier 接口要求的 payload
|
|
5949
5975
|
*/
|
|
@@ -5958,23 +5984,23 @@ const ot = {
|
|
|
5958
5984
|
/**
|
|
5959
5985
|
* 搜索船公司 (Shipping Line)
|
|
5960
5986
|
*/
|
|
5961
|
-
searchShipping: (e) =>
|
|
5962
|
-
path:
|
|
5987
|
+
searchShipping: (e) => M(y0._buildPayload(e, "shipping"), {
|
|
5988
|
+
path: $0(),
|
|
5963
5989
|
forcedType: "Carrier"
|
|
5964
5990
|
}),
|
|
5965
5991
|
/**
|
|
5966
5992
|
* 搜索航空公司 (Airline)
|
|
5967
5993
|
*/
|
|
5968
|
-
searchAir: (e) =>
|
|
5969
|
-
path:
|
|
5994
|
+
searchAir: (e) => M(y0._buildPayload(e, "air"), {
|
|
5995
|
+
path: $0(),
|
|
5970
5996
|
forcedType: "Carrier"
|
|
5971
5997
|
}),
|
|
5972
5998
|
/**
|
|
5973
5999
|
* 通用搜索 (需要手动传入 type)
|
|
5974
6000
|
* 场景:如果前端有一个下拉框让用户选类型,则调用此方法
|
|
5975
6001
|
*/
|
|
5976
|
-
search: (e, t) =>
|
|
5977
|
-
path:
|
|
6002
|
+
search: (e, t) => M(y0._buildPayload(e, t), {
|
|
6003
|
+
path: $0(),
|
|
5978
6004
|
forcedType: "Carrier"
|
|
5979
6005
|
}),
|
|
5980
6006
|
/**
|
|
@@ -5982,11 +6008,11 @@ const ot = {
|
|
|
5982
6008
|
* 注意:根据你的 Interface,ID 查询可能也需要传 lineType,
|
|
5983
6009
|
* 默认设为 shipping,或者你需要拆分成两个 ID 方法
|
|
5984
6010
|
*/
|
|
5985
|
-
getByIds: (e, t = "shipping") =>
|
|
5986
|
-
path:
|
|
6011
|
+
getByIds: (e, t = "shipping") => M(y0._buildPayload({ ids: e }, t), {
|
|
6012
|
+
path: $0(),
|
|
5987
6013
|
forcedType: "Carrier"
|
|
5988
6014
|
})
|
|
5989
|
-
},
|
|
6015
|
+
}, E0 = {
|
|
5990
6016
|
/**
|
|
5991
6017
|
* 内部私有方法:构建符合后端要求的 Payload
|
|
5992
6018
|
*/
|
|
@@ -5998,7 +6024,7 @@ const ot = {
|
|
|
5998
6024
|
searchkey: e.keyword,
|
|
5999
6025
|
ids: e.ids
|
|
6000
6026
|
}),
|
|
6001
|
-
searchAllByCountry: (e, t) =>
|
|
6027
|
+
searchAllByCountry: (e, t) => M(
|
|
6002
6028
|
{
|
|
6003
6029
|
countryId: t,
|
|
6004
6030
|
lineType: e,
|
|
@@ -6006,292 +6032,254 @@ const ot = {
|
|
|
6006
6032
|
size: 999
|
|
6007
6033
|
// 大小根据实际情况调整,或者后端提供专门接口
|
|
6008
6034
|
},
|
|
6009
|
-
{ path:
|
|
6035
|
+
{ path: Ai(), forcedType: "Line" }
|
|
6010
6036
|
),
|
|
6011
6037
|
/**
|
|
6012
6038
|
* 搜索海运航线 (Shipping Line)
|
|
6013
6039
|
* 例如:AE1, TP9
|
|
6014
6040
|
*/
|
|
6015
|
-
searchShipping: (e) =>
|
|
6016
|
-
path:
|
|
6041
|
+
searchShipping: (e) => M(E0._buildPayload(e, "shipping"), {
|
|
6042
|
+
path: L0(),
|
|
6017
6043
|
forcedType: "Line"
|
|
6018
6044
|
}),
|
|
6019
6045
|
/**
|
|
6020
6046
|
* 搜索空运航线 (Air Line)
|
|
6021
6047
|
* 业务上较少见,但接口支持
|
|
6022
6048
|
*/
|
|
6023
|
-
searchAir: (e) =>
|
|
6024
|
-
path:
|
|
6049
|
+
searchAir: (e) => M(E0._buildPayload(e, "air"), {
|
|
6050
|
+
path: L0(),
|
|
6025
6051
|
forcedType: "Line"
|
|
6026
6052
|
}),
|
|
6027
6053
|
/**
|
|
6028
6054
|
* 通用搜索 (需要手动传 lineType)
|
|
6029
6055
|
*/
|
|
6030
|
-
search: (e, t) =>
|
|
6031
|
-
path:
|
|
6056
|
+
search: (e, t) => M(E0._buildPayload(e, t), {
|
|
6057
|
+
path: L0(),
|
|
6032
6058
|
forcedType: "Line"
|
|
6033
6059
|
}),
|
|
6034
6060
|
/**
|
|
6035
6061
|
* 根据 ID 获取航线详情
|
|
6036
6062
|
* 默认默认为 shipping,如需查空运航线需显式传入
|
|
6037
6063
|
*/
|
|
6038
|
-
getByIds: (e, t = "shipping") =>
|
|
6039
|
-
path:
|
|
6064
|
+
getByIds: (e, t = "shipping") => M(E0._buildPayload({ ids: e }, t), {
|
|
6065
|
+
path: L0(),
|
|
6040
6066
|
forcedType: "Line"
|
|
6041
6067
|
})
|
|
6042
|
-
},
|
|
6043
|
-
searchContent: e.keyword
|
|
6044
|
-
|
|
6045
|
-
}), vi = (e, t, n) => {
|
|
6068
|
+
}, Ei = (e) => M(z({
|
|
6069
|
+
searchContent: e.keyword
|
|
6070
|
+
}, e)), gi = (e, t, n) => {
|
|
6046
6071
|
const r = Array.isArray(e) ? e : [e], x = (n == null ? void 0 : n.lineType) || "shipping";
|
|
6047
6072
|
switch (t) {
|
|
6048
6073
|
case "Country":
|
|
6049
|
-
return
|
|
6074
|
+
return ft.getByIds(r);
|
|
6050
6075
|
case "Region":
|
|
6051
|
-
return
|
|
6076
|
+
return dt.getByIds(r);
|
|
6052
6077
|
case "City":
|
|
6053
|
-
return
|
|
6078
|
+
return Le.getByIds(r);
|
|
6054
6079
|
case "Seaport":
|
|
6055
|
-
return
|
|
6080
|
+
return ut.getByIds(r);
|
|
6056
6081
|
case "Airport":
|
|
6057
|
-
return
|
|
6082
|
+
return ht.getByIds(r);
|
|
6058
6083
|
case "Wharf":
|
|
6059
|
-
return
|
|
6084
|
+
return lt.getByIds(r);
|
|
6060
6085
|
case "Carrier":
|
|
6061
|
-
return
|
|
6086
|
+
return y0.getByIds(r, x);
|
|
6062
6087
|
case "Line":
|
|
6063
|
-
return
|
|
6088
|
+
return E0.getByIds(r, x);
|
|
6064
6089
|
default:
|
|
6065
|
-
return
|
|
6090
|
+
return M({
|
|
6066
6091
|
[`${t.toLowerCase()}Ids`]: r,
|
|
6067
6092
|
displayInfo: [t]
|
|
6068
6093
|
});
|
|
6069
6094
|
}
|
|
6070
|
-
},
|
|
6071
|
-
SEARCH_VERSION:
|
|
6072
|
-
searchByName:
|
|
6073
|
-
searchByIdWithType:
|
|
6074
|
-
country:
|
|
6075
|
-
region:
|
|
6076
|
-
city:
|
|
6077
|
-
seaport:
|
|
6078
|
-
airport:
|
|
6079
|
-
wharf:
|
|
6080
|
-
carrier:
|
|
6095
|
+
}, Yi = {
|
|
6096
|
+
SEARCH_VERSION: Ci,
|
|
6097
|
+
searchByName: Ei,
|
|
6098
|
+
searchByIdWithType: gi,
|
|
6099
|
+
country: ft,
|
|
6100
|
+
region: dt,
|
|
6101
|
+
city: Le,
|
|
6102
|
+
seaport: ut,
|
|
6103
|
+
airport: ht,
|
|
6104
|
+
wharf: lt,
|
|
6105
|
+
carrier: y0,
|
|
6081
6106
|
// 导出 carrier
|
|
6082
|
-
line:
|
|
6107
|
+
line: E0,
|
|
6083
6108
|
// 导出 line
|
|
6084
6109
|
/** 获取某个国家下的所有城市 */
|
|
6085
|
-
getCitiesByCountry:
|
|
6110
|
+
getCitiesByCountry: Le.getCitiesByCountry,
|
|
6086
6111
|
/** 获取某个城市下的子实体 */
|
|
6087
|
-
getChildrenByCity: (e, t, n) =>
|
|
6088
|
-
},
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
return {
|
|
6094
|
-
...(await e0.post(
|
|
6095
|
-
pi() + "/system/dms/fr/dmsReport/report",
|
|
6112
|
+
getChildrenByCity: (e, t, n) => M(z({ cityIds: [e], displayInfo: t }, n))
|
|
6113
|
+
}, Fi = () => a0().prefixPath;
|
|
6114
|
+
function Ji(e) {
|
|
6115
|
+
return V(this, null, function* () {
|
|
6116
|
+
const t = z({}, e), r = (yield n0.post(
|
|
6117
|
+
Fi() + "/system/dms/fr/dmsReport/report",
|
|
6096
6118
|
t
|
|
6097
|
-
)).data || {}
|
|
6098
|
-
|
|
6119
|
+
)).data || {};
|
|
6120
|
+
return z({}, r);
|
|
6121
|
+
});
|
|
6099
6122
|
}
|
|
6100
|
-
const
|
|
6101
|
-
|
|
6123
|
+
const P0 = () => a0().prefixPath, eo = (e) => V(null, null, function* () {
|
|
6124
|
+
return yield n0.post(P0() + "/auth/getKqCompanyPage", z({}, e));
|
|
6102
6125
|
});
|
|
6103
|
-
function
|
|
6104
|
-
return
|
|
6126
|
+
function ro(e) {
|
|
6127
|
+
return n0.post(P0() + "/code", z({}, e));
|
|
6105
6128
|
}
|
|
6106
|
-
function
|
|
6107
|
-
return
|
|
6129
|
+
function to(e) {
|
|
6130
|
+
return n0.post(P0() + "/check", z({}, e));
|
|
6108
6131
|
}
|
|
6109
|
-
function
|
|
6132
|
+
function no(e = {
|
|
6110
6133
|
size: -1
|
|
6111
6134
|
}) {
|
|
6112
|
-
return
|
|
6113
|
-
...e
|
|
6114
|
-
});
|
|
6135
|
+
return n0.post(P0() + "/system/dms/fr/country/findPageCountry", z({}, e));
|
|
6115
6136
|
}
|
|
6116
|
-
const
|
|
6117
|
-
|
|
6118
|
-
});
|
|
6119
|
-
function Qi(e = {
|
|
6137
|
+
const vt = (e, t) => n0.post(P0() + e, z({}, t));
|
|
6138
|
+
function io(e = {
|
|
6120
6139
|
size: -1
|
|
6121
6140
|
}) {
|
|
6122
|
-
return
|
|
6123
|
-
...e
|
|
6124
|
-
});
|
|
6141
|
+
return vt("/system/admin/dict/data/type/dictType", z({}, e));
|
|
6125
6142
|
}
|
|
6126
|
-
|
|
6127
|
-
return
|
|
6143
|
+
function oo(e) {
|
|
6144
|
+
return V(this, null, function* () {
|
|
6145
|
+
return yield vt("/common/ip/get", z({}, e));
|
|
6146
|
+
});
|
|
6128
6147
|
}
|
|
6129
|
-
const
|
|
6148
|
+
const _e = () => a0().prefixPath, Di = (e) => {
|
|
6130
6149
|
var t, n;
|
|
6131
6150
|
if (e != null && e.redirectPath) return e.redirectPath;
|
|
6132
6151
|
if (typeof window == "undefined")
|
|
6133
6152
|
return "/";
|
|
6134
6153
|
try {
|
|
6135
6154
|
return ((t = window.sessionStorage) == null ? void 0 : t.getItem("jc-auth-path")) || ((n = window.location) == null ? void 0 : n.pathname) || "/";
|
|
6136
|
-
} catch {
|
|
6155
|
+
} catch (r) {
|
|
6137
6156
|
return "/";
|
|
6138
6157
|
}
|
|
6139
|
-
},
|
|
6140
|
-
|
|
6141
|
-
{
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
},
|
|
6158
|
+
}, N = (e, t) => n0.post(
|
|
6159
|
+
_e() + e,
|
|
6160
|
+
U(z({}, t), {
|
|
6161
|
+
redirectPath: Di(t)
|
|
6162
|
+
}),
|
|
6145
6163
|
{
|
|
6146
6164
|
headers: {
|
|
6147
6165
|
"app-id": "ERA"
|
|
6148
6166
|
}
|
|
6149
6167
|
}
|
|
6150
6168
|
);
|
|
6151
|
-
function Ji(e) {
|
|
6152
|
-
return e.target = w0(e == null ? void 0 : e.target), q("/auth/validateAccountExist", e);
|
|
6153
|
-
}
|
|
6154
|
-
function eo(e) {
|
|
6155
|
-
return e.target = w0(e == null ? void 0 : e.target), q("/auth/emailCode", e);
|
|
6156
|
-
}
|
|
6157
|
-
function ro(e) {
|
|
6158
|
-
return e.target = w0(e == null ? void 0 : e.target), q("/auth/mobileCodeAnon", e);
|
|
6159
|
-
}
|
|
6160
|
-
function to(e) {
|
|
6161
|
-
return e.target = w0(e == null ? void 0 : e.target), e0.post(ge() + "/auth/verifyEmailCode", {
|
|
6162
|
-
...e
|
|
6163
|
-
});
|
|
6164
|
-
}
|
|
6165
|
-
function no(e) {
|
|
6166
|
-
return e.target = w0(e == null ? void 0 : e.target), e0.post(ge() + "/auth/verifyMobileCode", {
|
|
6167
|
-
...e
|
|
6168
|
-
});
|
|
6169
|
-
}
|
|
6170
|
-
function io(e) {
|
|
6171
|
-
return e0.post(ge() + "/auth/validateCompany", {
|
|
6172
|
-
...e
|
|
6173
|
-
});
|
|
6174
|
-
}
|
|
6175
|
-
function oo(e) {
|
|
6176
|
-
return q("/auth/registerJoinCompany", e);
|
|
6177
|
-
}
|
|
6178
6169
|
function xo(e) {
|
|
6179
|
-
return
|
|
6170
|
+
return e.target = S0(e == null ? void 0 : e.target), N("/auth/validateAccountExist", e);
|
|
6180
6171
|
}
|
|
6181
6172
|
function ao(e) {
|
|
6182
|
-
return
|
|
6173
|
+
return e.target = S0(e == null ? void 0 : e.target), N("/auth/emailCode", e);
|
|
6183
6174
|
}
|
|
6184
|
-
function so(e
|
|
6185
|
-
return
|
|
6186
|
-
toSys: e,
|
|
6187
|
-
path: t
|
|
6188
|
-
});
|
|
6175
|
+
function so(e) {
|
|
6176
|
+
return e.target = S0(e == null ? void 0 : e.target), N("/auth/mobileCodeAnon", e);
|
|
6189
6177
|
}
|
|
6190
6178
|
function co(e) {
|
|
6191
|
-
return
|
|
6179
|
+
return e.target = S0(e == null ? void 0 : e.target), n0.post(_e() + "/auth/verifyEmailCode", z({}, e));
|
|
6192
6180
|
}
|
|
6193
6181
|
function fo(e) {
|
|
6194
|
-
return
|
|
6182
|
+
return e.target = S0(e == null ? void 0 : e.target), n0.post(_e() + "/auth/verifyMobileCode", z({}, e));
|
|
6195
6183
|
}
|
|
6196
6184
|
function uo(e) {
|
|
6197
|
-
return
|
|
6185
|
+
return n0.post(_e() + "/auth/validateCompany", z({}, e));
|
|
6198
6186
|
}
|
|
6199
6187
|
function ho(e) {
|
|
6200
|
-
return
|
|
6188
|
+
return N("/auth/registerJoinCompany", e);
|
|
6201
6189
|
}
|
|
6202
6190
|
function lo(e) {
|
|
6203
|
-
return
|
|
6191
|
+
return N("/auth/registerJoinCompByThirdParty", e);
|
|
6204
6192
|
}
|
|
6205
6193
|
function vo(e) {
|
|
6206
|
-
|
|
6207
|
-
...e
|
|
6208
|
-
};
|
|
6209
|
-
return q("/auth/login", {
|
|
6210
|
-
...t
|
|
6211
|
-
});
|
|
6194
|
+
return N("/auth/getJoinCompany", e);
|
|
6212
6195
|
}
|
|
6213
|
-
function po(e) {
|
|
6214
|
-
return
|
|
6215
|
-
|
|
6196
|
+
function po(e, t) {
|
|
6197
|
+
return N("/auth/redirect", {
|
|
6198
|
+
toSys: e,
|
|
6199
|
+
path: t
|
|
6216
6200
|
});
|
|
6217
6201
|
}
|
|
6218
6202
|
function Co(e) {
|
|
6219
|
-
return
|
|
6220
|
-
}
|
|
6221
|
-
function Bo(e = {}) {
|
|
6222
|
-
return q("/auth/getLoginQrCode", { ...e });
|
|
6203
|
+
return N("/auth/registerAccComp", e);
|
|
6223
6204
|
}
|
|
6224
|
-
function
|
|
6225
|
-
return
|
|
6205
|
+
function Bo(e) {
|
|
6206
|
+
return N("/auth/registerUserCompBindWechat", e);
|
|
6226
6207
|
}
|
|
6227
6208
|
function Ao(e) {
|
|
6228
|
-
return
|
|
6209
|
+
return N("/auth/registerJoinCompanyBindWechat", e);
|
|
6210
|
+
}
|
|
6211
|
+
function yo(e) {
|
|
6212
|
+
return N("/auth/loginPwdBindWechat", e);
|
|
6229
6213
|
}
|
|
6230
6214
|
function Eo(e) {
|
|
6231
|
-
return
|
|
6215
|
+
return N("/auth/loginCodeBindWechat", e);
|
|
6232
6216
|
}
|
|
6233
6217
|
function go(e) {
|
|
6234
|
-
|
|
6218
|
+
const t = z({}, e);
|
|
6219
|
+
return N("/auth/login", z({}, t));
|
|
6235
6220
|
}
|
|
6236
6221
|
function Fo(e) {
|
|
6237
|
-
return
|
|
6222
|
+
return N("/auth/loginRegisterByAccount", z({}, e));
|
|
6238
6223
|
}
|
|
6239
6224
|
function Do(e) {
|
|
6240
|
-
return
|
|
6225
|
+
return N("/auth/loginByQrCode", z({}, e));
|
|
6241
6226
|
}
|
|
6242
|
-
function _o(e) {
|
|
6243
|
-
return
|
|
6244
|
-
...e
|
|
6245
|
-
});
|
|
6227
|
+
function _o(e = {}) {
|
|
6228
|
+
return N("/auth/getLoginQrCode", z({}, e));
|
|
6246
6229
|
}
|
|
6247
6230
|
function bo(e) {
|
|
6248
|
-
return
|
|
6249
|
-
...e
|
|
6250
|
-
});
|
|
6231
|
+
return N("/auth/autoLogin", z({}, e));
|
|
6251
6232
|
}
|
|
6252
6233
|
function mo(e) {
|
|
6253
|
-
return
|
|
6254
|
-
...e
|
|
6255
|
-
});
|
|
6234
|
+
return N("/auth/completeCompRedirect", z({}, e));
|
|
6256
6235
|
}
|
|
6257
6236
|
function wo(e) {
|
|
6258
|
-
return
|
|
6259
|
-
...e,
|
|
6260
|
-
businessCode: "WINDOW_LOGIN"
|
|
6261
|
-
});
|
|
6237
|
+
return N("/auth/userCompPerms", z({}, e));
|
|
6262
6238
|
}
|
|
6263
6239
|
function Io(e) {
|
|
6264
|
-
return
|
|
6265
|
-
...e,
|
|
6266
|
-
businessCode: "WINDOW_LOGIN"
|
|
6267
|
-
});
|
|
6240
|
+
return N("/auth/getLoginUserMobileEmail", z({}, e));
|
|
6268
6241
|
}
|
|
6269
6242
|
function ko(e) {
|
|
6270
|
-
return
|
|
6271
|
-
...e
|
|
6272
|
-
});
|
|
6243
|
+
return N("/auth/getMobileEmail", z({}, e));
|
|
6273
6244
|
}
|
|
6274
6245
|
function So(e) {
|
|
6275
|
-
return
|
|
6276
|
-
...e
|
|
6277
|
-
});
|
|
6246
|
+
return N("/auth/completeJoinCompanyRedirect", z({}, e));
|
|
6278
6247
|
}
|
|
6279
6248
|
function Po(e) {
|
|
6280
|
-
return
|
|
6281
|
-
...e
|
|
6282
|
-
});
|
|
6249
|
+
return N("/auth/forgotPwdAccount", z({}, e));
|
|
6283
6250
|
}
|
|
6284
6251
|
function Ro(e) {
|
|
6285
|
-
return
|
|
6286
|
-
...e
|
|
6287
|
-
});
|
|
6252
|
+
return N("/auth/forgotPwdVerifyCode", z({}, e));
|
|
6288
6253
|
}
|
|
6289
6254
|
function zo(e) {
|
|
6290
|
-
return
|
|
6291
|
-
...e
|
|
6292
|
-
});
|
|
6255
|
+
return N("/auth/forgotPwd", z({}, e));
|
|
6293
6256
|
}
|
|
6294
6257
|
function To(e) {
|
|
6258
|
+
return N("/auth/loginByFacebook", U(z({}, e), {
|
|
6259
|
+
businessCode: "WINDOW_LOGIN"
|
|
6260
|
+
}));
|
|
6261
|
+
}
|
|
6262
|
+
function Ho(e) {
|
|
6263
|
+
return N("/auth/loginByLinkedin", U(z({}, e), {
|
|
6264
|
+
businessCode: "WINDOW_LOGIN"
|
|
6265
|
+
}));
|
|
6266
|
+
}
|
|
6267
|
+
function $o(e) {
|
|
6268
|
+
return N("/auth/bindThirdPartyByPwd", z({}, e));
|
|
6269
|
+
}
|
|
6270
|
+
function Lo(e) {
|
|
6271
|
+
return N("/auth/bindThirdPartyByCode", z({}, e));
|
|
6272
|
+
}
|
|
6273
|
+
function qo(e) {
|
|
6274
|
+
return N("/auth/registerByThirdParty", z({}, e));
|
|
6275
|
+
}
|
|
6276
|
+
function No(e) {
|
|
6277
|
+
return N("/auth/findListByMobileEmail", z({}, e));
|
|
6278
|
+
}
|
|
6279
|
+
function Oo(e) {
|
|
6280
|
+
return N("/auth/inviteJoinGetComp", z({}, e));
|
|
6281
|
+
}
|
|
6282
|
+
function Wo(e) {
|
|
6295
6283
|
if (typeof window == "undefined" || !window.sessionStorage)
|
|
6296
6284
|
return;
|
|
6297
6285
|
const {
|
|
@@ -6300,17 +6288,17 @@ function To(e) {
|
|
|
6300
6288
|
empNo: r,
|
|
6301
6289
|
uniqueCode: x,
|
|
6302
6290
|
path: f,
|
|
6303
|
-
clickSource:
|
|
6291
|
+
clickSource: y,
|
|
6304
6292
|
registerEvent: h,
|
|
6305
|
-
registerType:
|
|
6293
|
+
registerType: p,
|
|
6306
6294
|
compKey: i
|
|
6307
6295
|
} = e;
|
|
6308
|
-
t && sessionStorage.setItem("jc-auth-activityCode", t), n && sessionStorage.setItem("jc-auth-referenceUserId", n), r && sessionStorage.setItem("jc-auth-empNo", r), x && sessionStorage.setItem("jc-auth-uniqueCode", x), f && sessionStorage.setItem("jc-auth-path", f),
|
|
6296
|
+
t && sessionStorage.setItem("jc-auth-activityCode", t), n && sessionStorage.setItem("jc-auth-referenceUserId", n), r && sessionStorage.setItem("jc-auth-empNo", r), x && sessionStorage.setItem("jc-auth-uniqueCode", x), f && sessionStorage.setItem("jc-auth-path", f), y && sessionStorage.setItem("jc-auth-clickSource", y), h && sessionStorage.setItem("jc-auth-registerEvent", h), p && sessionStorage.setItem("jc-auth-registerType", p), i && sessionStorage.setItem("jc-auth-compKey", i);
|
|
6309
6297
|
}
|
|
6310
|
-
function
|
|
6298
|
+
function Uo() {
|
|
6311
6299
|
typeof window == "undefined" || !window.sessionStorage || (sessionStorage.removeItem("jc-auth-activityCode"), sessionStorage.removeItem("jc-auth-referenceUserId"), sessionStorage.removeItem("jc-auth-empNo"), sessionStorage.removeItem("jc-auth-uniqueCode"), sessionStorage.removeItem("jc-auth-path"), sessionStorage.removeItem("jc-auth-clickSource"), sessionStorage.removeItem("jc-auth-registerEvent"), sessionStorage.removeItem("jc-auth-registerType"), sessionStorage.removeItem("jc-auth-compKey"));
|
|
6312
6300
|
}
|
|
6313
|
-
function
|
|
6301
|
+
function Go() {
|
|
6314
6302
|
return typeof window == "undefined" || !window.sessionStorage ? {
|
|
6315
6303
|
activityCode: null,
|
|
6316
6304
|
referenceUserId: null,
|
|
@@ -6333,28 +6321,28 @@ function $o() {
|
|
|
6333
6321
|
compKey: sessionStorage.getItem("jc-auth-compKey")
|
|
6334
6322
|
};
|
|
6335
6323
|
}
|
|
6336
|
-
function
|
|
6324
|
+
function jo(e) {
|
|
6337
6325
|
if (typeof window == "undefined" || !window.sessionStorage)
|
|
6338
6326
|
return;
|
|
6339
6327
|
const { registerEntry: t } = e;
|
|
6340
6328
|
t && sessionStorage.setItem("_GIO-registerEntry", t);
|
|
6341
6329
|
}
|
|
6342
|
-
function
|
|
6330
|
+
function Ko() {
|
|
6343
6331
|
return typeof window == "undefined" || !window.sessionStorage ? {
|
|
6344
6332
|
registerEntry: null
|
|
6345
6333
|
} : {
|
|
6346
6334
|
registerEntry: sessionStorage.getItem("_GIO-registerEntry")
|
|
6347
6335
|
};
|
|
6348
6336
|
}
|
|
6349
|
-
function
|
|
6337
|
+
function Xo() {
|
|
6350
6338
|
typeof window == "undefined" || !window.sessionStorage || sessionStorage.removeItem("_GIO-registerEntry");
|
|
6351
6339
|
}
|
|
6352
|
-
class
|
|
6340
|
+
class _i {
|
|
6353
6341
|
constructor() {
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6342
|
+
I0(this, "hasInitCalled", !1);
|
|
6343
|
+
I0(this, "dispatcher", null);
|
|
6344
|
+
I0(this, "dispatcherLoading", null);
|
|
6345
|
+
I0(this, "pendingActions", []);
|
|
6358
6346
|
}
|
|
6359
6347
|
get shouldValidateAttributes() {
|
|
6360
6348
|
return typeof process != "undefined" && process.env && process.env.NODE_ENV !== "production";
|
|
@@ -6366,17 +6354,19 @@ class Bi {
|
|
|
6366
6354
|
for (const n of t)
|
|
6367
6355
|
this.dispatcher(n.action, ...n.args);
|
|
6368
6356
|
}
|
|
6369
|
-
|
|
6370
|
-
return
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6357
|
+
ensureDispatcher() {
|
|
6358
|
+
return V(this, null, function* () {
|
|
6359
|
+
return typeof window == "undefined" ? null : typeof window.gdp == "function" ? (this.dispatcher = window.gdp, this.flushPendingActions(), this.dispatcher) : this.dispatcher ? this.dispatcher : this.dispatcherLoading ? this.dispatcherLoading : (this.dispatcherLoading = V(this, null, function* () {
|
|
6360
|
+
try {
|
|
6361
|
+
const t = yield import("gio-webjs-sdk"), n = (t == null ? void 0 : t.default) || t;
|
|
6362
|
+
return typeof n != "function" ? (console.warn("[GIO] gdp 函数未就绪或引入失败"), null) : (this.dispatcher = n, this.flushPendingActions(), this.dispatcher);
|
|
6363
|
+
} catch (t) {
|
|
6364
|
+
return console.warn("[GIO] gio-webjs-sdk 加载失败", t), null;
|
|
6365
|
+
} finally {
|
|
6366
|
+
this.dispatcherLoading = null;
|
|
6367
|
+
}
|
|
6368
|
+
}), this.dispatcherLoading);
|
|
6369
|
+
});
|
|
6380
6370
|
}
|
|
6381
6371
|
dispatch(t, ...n) {
|
|
6382
6372
|
if (typeof window != "undefined") {
|
|
@@ -6406,12 +6396,12 @@ class Bi {
|
|
|
6406
6396
|
console.warn("[GIO] init accountId/dataSourceId 不能为空");
|
|
6407
6397
|
return;
|
|
6408
6398
|
}
|
|
6409
|
-
let
|
|
6410
|
-
typeof r == "string" ? (
|
|
6399
|
+
let y, h = {}, p;
|
|
6400
|
+
typeof r == "string" ? (y = r, typeof x == "function" ? p = x : (h = x || {}, p = f)) : (h = r || {}, typeof x == "function" && (p = x));
|
|
6411
6401
|
const i = [t, n];
|
|
6412
|
-
|
|
6413
|
-
const o = {
|
|
6414
|
-
i.push(o),
|
|
6402
|
+
y && i.push(y);
|
|
6403
|
+
const o = z({}, h);
|
|
6404
|
+
i.push(o), p && i.push(p), typeof window != "undefined" && (process.env.NODE_ENV === "development" && (window._gr_ignore_local_rule = !0), this.dispatch("init", ...i), this.hasInitCalled = !0);
|
|
6415
6405
|
}
|
|
6416
6406
|
/**
|
|
6417
6407
|
* 动态修改配置
|
|
@@ -6652,129 +6642,129 @@ class Bi {
|
|
|
6652
6642
|
}
|
|
6653
6643
|
}
|
|
6654
6644
|
}
|
|
6655
|
-
const
|
|
6656
|
-
function
|
|
6645
|
+
const Mo = new _i();
|
|
6646
|
+
function Vo(e) {
|
|
6657
6647
|
return !e || !e.isBrowser() ? null : e;
|
|
6658
6648
|
}
|
|
6659
|
-
function
|
|
6649
|
+
function Zo(e) {
|
|
6660
6650
|
return e ? e.isBrowser() && e.isInitialized() : !1;
|
|
6661
6651
|
}
|
|
6662
|
-
const
|
|
6652
|
+
const Qo = {
|
|
6663
6653
|
Open: "GLOBAL_MODAL_OPEN",
|
|
6664
6654
|
Close: "GLOBAL_MODAL_CLOSE",
|
|
6665
6655
|
Submit: "GLOBAL_MODAL_SUBMIT"
|
|
6666
|
-
},
|
|
6656
|
+
}, Yo = zt();
|
|
6667
6657
|
export {
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6658
|
+
Zi as Decrypt,
|
|
6659
|
+
S0 as Encrypt,
|
|
6660
|
+
Kr as ExpiresInKey,
|
|
6661
|
+
Oe as ExpiresInTimeKey,
|
|
6662
|
+
jr as HasLoginKey,
|
|
6663
|
+
Qo as MODAL_ACTION,
|
|
6664
|
+
ze as PrjId,
|
|
6665
|
+
Xr as RefreshExpiresInKey,
|
|
6666
|
+
Mr as RefreshExpiresInTimeKey,
|
|
6667
|
+
We as RefreshTokenKey,
|
|
6668
|
+
Te as RememberMeAccountKey,
|
|
6669
|
+
He as RememberMePasswordKey,
|
|
6670
|
+
Vr as TOKEN_ENDPOINTS,
|
|
6671
|
+
Ne as TokenKey,
|
|
6672
|
+
bo as autoLoginByTGC,
|
|
6673
|
+
Lo as bindThirdPartyByCodeApi,
|
|
6674
|
+
$o as bindThirdPartyByPwdApi,
|
|
6675
|
+
Po as checkAccountExistsFPApi,
|
|
6676
|
+
co as checkEmailCodeApi,
|
|
6677
|
+
fo as checkMobileCodeApi,
|
|
6678
|
+
Si as clearAllAuth,
|
|
6679
|
+
zi as clearClientId,
|
|
6680
|
+
mo as completeCompRedirectApi,
|
|
6681
|
+
So as completeJoinCompanyRedirectApi,
|
|
6682
|
+
pi as createFetchWithClientId,
|
|
6683
|
+
Hi as createRequest,
|
|
6684
|
+
Tt as currentConfig,
|
|
6685
|
+
Yo as emitter,
|
|
6686
|
+
io as findDictAPi,
|
|
6687
|
+
No as findListByMobileEmailApi,
|
|
6688
|
+
no as findPAreaCodeAPi,
|
|
6689
|
+
Ut as generateClientId,
|
|
6690
|
+
Vi as getAirport,
|
|
6691
|
+
Yr as getAppId,
|
|
6692
|
+
Go as getAuthSessionItems,
|
|
6693
|
+
$i as getById,
|
|
6694
|
+
Jt as getByIds,
|
|
6695
|
+
qi as getChildrenByCity,
|
|
6696
|
+
Li as getCitiesByCountry,
|
|
6697
|
+
Ki as getCity,
|
|
6698
|
+
eo as getCompanyOptionApi,
|
|
6699
|
+
Gi as getContinent,
|
|
6700
|
+
ji as getCountry,
|
|
6701
|
+
Ti as getCurrentClientId,
|
|
6702
|
+
Ot as getExpiresTimeIn,
|
|
6703
|
+
Lt as getFirstDomain,
|
|
6704
|
+
Ko as getGioSessionItems,
|
|
6705
|
+
Gr as getIsEn,
|
|
6706
|
+
vo as getJoinCompanyApi,
|
|
6707
|
+
Qr as getLanguage,
|
|
6708
|
+
oo as getLocalIpDataApi,
|
|
6709
|
+
_o as getLoginQrCode,
|
|
6710
|
+
Ro as getMEVCodeApi,
|
|
6711
|
+
ko as getMobileEmailApi,
|
|
6712
|
+
nt as getOrCreateClientId,
|
|
6713
|
+
qt as getPathFromConfig,
|
|
6714
|
+
Zr as getProjectId,
|
|
6715
|
+
Xi as getProvince,
|
|
6716
|
+
po as getRedirectPathApi,
|
|
6717
|
+
Nt as getRefreshToken,
|
|
6718
|
+
Pi as getRememberAccount,
|
|
6719
|
+
Mi as getSeaport,
|
|
6720
|
+
Ee as getSessionHeaderValue,
|
|
6721
|
+
a0 as getSharedConfig,
|
|
6722
|
+
Jr as getToken,
|
|
6723
|
+
Vo as getTracker,
|
|
6724
|
+
Io as getUserInfoApi,
|
|
6725
|
+
Ii as initSharedConfig,
|
|
6726
|
+
jt as installClientIdPlugin,
|
|
6727
|
+
Qi as installFetchClientId,
|
|
6728
|
+
Oo as inviteJoinGetCompApi,
|
|
6729
|
+
Zo as isGioAvailable,
|
|
6730
|
+
$t as isIpAddress,
|
|
6731
|
+
Yi as locationSearchV2,
|
|
6732
|
+
go as loginApi,
|
|
6733
|
+
Fo as loginByEmailOrMobileCodeApi,
|
|
6734
|
+
To as loginByFacebookApi,
|
|
6735
|
+
Ho as loginByLinkedinApi,
|
|
6736
|
+
Do as loginByQrCode,
|
|
6737
|
+
Eo as loginCodeBindWechatApi,
|
|
6738
|
+
yo as loginPwdBindWechatApi,
|
|
6739
|
+
Co as registerApi,
|
|
6740
|
+
qo as registerByThirdPartyApi,
|
|
6741
|
+
lo as registerJoinCompByThirdPartyApi,
|
|
6742
|
+
ho as registerJoinCompanyApi,
|
|
6743
|
+
Ao as registerJoinCompanyBindWechatApi,
|
|
6744
|
+
Bo as registerUserCompBindWechatApi,
|
|
6745
|
+
Ji as reportNewTypeDataApi,
|
|
6746
|
+
Uo as resetAuthSessionItems,
|
|
6747
|
+
Xo as resetGioSessionItems,
|
|
6748
|
+
zo as resetPasswordApi,
|
|
6749
|
+
Ri as saveClientIdToLocalStorage,
|
|
6750
|
+
Gt as saveClientIdToSessionStorage,
|
|
6751
|
+
Fe as search,
|
|
6752
|
+
Ui as searchAirportByName,
|
|
6753
|
+
ot as searchByName,
|
|
6754
|
+
Oi as searchCityByName,
|
|
6755
|
+
Ni as searchCountryByName,
|
|
6756
|
+
Wi as searchSeaportByName,
|
|
6757
|
+
ao as sendEmailCodeApi,
|
|
6758
|
+
so as sendMobileCodeApi,
|
|
6759
|
+
Wo as setAuthSessionItems,
|
|
6760
|
+
jo as setGioSessionItems,
|
|
6761
|
+
ki as setRememberMe,
|
|
6762
|
+
$e as setTokenAll,
|
|
6763
|
+
to as slideCheckApi,
|
|
6764
|
+
ro as slideGetApi,
|
|
6765
|
+
ge as toSafeHeaderValue,
|
|
6766
|
+
Mo as tracker,
|
|
6767
|
+
wo as userCompPermsApi,
|
|
6768
|
+
xo as validateAccountExistApi,
|
|
6769
|
+
uo as validateCompanyApi
|
|
6780
6770
|
};
|