@jieyin/editor-sdk-test 1.1.142 → 1.1.143
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/editor-sdk.es.js +3202 -3186
- package/dist/renderWorker.js +820 -815
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var F0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(F0 || {});
|
|
2
|
-
function
|
|
3
|
-
let
|
|
2
|
+
function Ge(r) {
|
|
3
|
+
let v = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const t =
|
|
6
|
-
return
|
|
5
|
+
const t = v;
|
|
6
|
+
return v += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Ke(r, v) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,35 +23,35 @@ function Ge(r, p) {
|
|
|
23
23
|
quiltSliceY: r.quiltSliceY,
|
|
24
24
|
layerOrder: r.layerOrder,
|
|
25
25
|
imagePath: r.imagePath,
|
|
26
|
-
vectorMask: r.vectorMask ??
|
|
26
|
+
vectorMask: r.vectorMask ?? v,
|
|
27
27
|
filterList: r.filterList,
|
|
28
28
|
opacity: r.opacity,
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
let
|
|
34
|
-
if (r.type === "Group" && m === void 0 && (!
|
|
35
|
-
const x = r.children[0].name, n =
|
|
36
|
-
(E !== void 0 || n?.id !== void 0) && (
|
|
32
|
+
function Xe(r, v, t, e) {
|
|
33
|
+
let u = r.name || "", h = v[u], m = h?.partId ?? (r.type === "Group" ? t.get(u) : void 0);
|
|
34
|
+
if (r.type === "Group" && m === void 0 && (!h || h.id === void 0) && r.children && r.children.length === 1) {
|
|
35
|
+
const x = r.children[0].name, n = v[x], E = n?.partId ?? t.get(x);
|
|
36
|
+
(E !== void 0 || n?.id !== void 0) && (u = x, h = n, m = E);
|
|
37
37
|
}
|
|
38
|
-
const B = r.id ??
|
|
38
|
+
const B = r.id ?? h?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
40
40
|
return {
|
|
41
41
|
id: B,
|
|
42
42
|
partId: m,
|
|
43
|
-
name:
|
|
43
|
+
name: u,
|
|
44
44
|
blendMode: r.blendMode || "normal",
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
46
|
type: F0.Group,
|
|
47
47
|
smartObjects: (r.children ?? []).map(
|
|
48
|
-
(x) =>
|
|
48
|
+
(x) => Ke(x, r.vectorMask)
|
|
49
49
|
),
|
|
50
50
|
opacity: r.opacity,
|
|
51
51
|
clipping: r.clipping,
|
|
52
52
|
layerOrder: r.layerOrder
|
|
53
53
|
};
|
|
54
|
-
let C =
|
|
54
|
+
let C = h?.url;
|
|
55
55
|
return !C && r.imagePath && (C = r.imagePath), {
|
|
56
56
|
id: B,
|
|
57
57
|
name: r.name || "",
|
|
@@ -64,20 +64,20 @@ function Ke(r, p, t, e) {
|
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const t = new Map(
|
|
67
|
+
function Ye(r, v) {
|
|
68
|
+
const t = new Map(v.parts.map((u) => [u.name, u.id])), e = Ge(v.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
71
|
-
models: r.map((
|
|
72
|
-
const
|
|
70
|
+
parts: v.parts,
|
|
71
|
+
models: r.map((u) => {
|
|
72
|
+
const h = u.layerExtrasByName ?? {}, m = u.psdJson, B = m.layerList || m.layerList || [], C = m.canvasWidth, x = m.canvasHeight;
|
|
73
73
|
if (!C || !x)
|
|
74
74
|
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${x}。请确保 jsonurl 中的 canvasWidth 和 canvasHeight 存在`);
|
|
75
75
|
const n = (s) => {
|
|
76
76
|
const f = [];
|
|
77
|
-
for (const
|
|
78
|
-
if (
|
|
79
|
-
const l = [], D = [], i = [...
|
|
80
|
-
const b = o.layerOrder ?? 0, g =
|
|
77
|
+
for (const p of s)
|
|
78
|
+
if (p.type === "Group" && p.children) {
|
|
79
|
+
const l = [], D = [], i = [...p.children].sort((o, d) => {
|
|
80
|
+
const b = o.layerOrder ?? 0, g = d.layerOrder ?? 0;
|
|
81
81
|
return b - g;
|
|
82
82
|
});
|
|
83
83
|
for (const o of i)
|
|
@@ -87,14 +87,14 @@ function Xe(r, p) {
|
|
|
87
87
|
f.push(...o);
|
|
88
88
|
}
|
|
89
89
|
l.length > 0 && f.push({
|
|
90
|
-
...
|
|
90
|
+
...p,
|
|
91
91
|
children: l
|
|
92
92
|
});
|
|
93
93
|
} else
|
|
94
|
-
f.push(
|
|
94
|
+
f.push(p);
|
|
95
95
|
return f;
|
|
96
96
|
}, a = n(B).map(
|
|
97
|
-
(s) =>
|
|
97
|
+
(s) => Xe(s, h, t, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
@@ -104,50 +104,50 @@ function Xe(r, p) {
|
|
|
104
104
|
})
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Ze(r) {
|
|
108
108
|
return r ? r.vectorMask && r.vectorMask.paths && Array.isArray(r.vectorMask.paths) ? { type: "bezier", paths: r.vectorMask.paths } : Array.isArray(r.vectorMask) ? { type: "simple", points: r.vectorMask } : null : null;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Qe(r) {
|
|
111
111
|
return r ? r.type === "bezier" ? {
|
|
112
112
|
type: "bezier",
|
|
113
|
-
paths: r.paths.map((
|
|
114
|
-
open: !!
|
|
115
|
-
knots:
|
|
113
|
+
paths: r.paths.map((v) => ({
|
|
114
|
+
open: !!v.open,
|
|
115
|
+
knots: v.knots.map((t) => ({
|
|
116
116
|
linked: !!t.linked,
|
|
117
117
|
points: Array.isArray(t.points) ? [...t.points] : []
|
|
118
118
|
}))
|
|
119
119
|
}))
|
|
120
120
|
} : r.type === "simple" ? {
|
|
121
121
|
type: "simple",
|
|
122
|
-
points: r.points.map((
|
|
123
|
-
x:
|
|
124
|
-
y:
|
|
125
|
-
type:
|
|
122
|
+
points: r.points.map((v) => ({
|
|
123
|
+
x: v.x,
|
|
124
|
+
y: v.y,
|
|
125
|
+
type: v.type
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
131
|
-
if (r.globalCompositeOperation = "destination-in", r.beginPath(),
|
|
132
|
-
|
|
129
|
+
function lr(r, v) {
|
|
130
|
+
if (v) {
|
|
131
|
+
if (r.globalCompositeOperation = "destination-in", r.beginPath(), v.type === "bezier" && Array.isArray(v.paths))
|
|
132
|
+
v.paths.forEach((t) => {
|
|
133
133
|
const e = t.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
|
-
const
|
|
136
|
-
r.moveTo(
|
|
137
|
-
for (let
|
|
138
|
-
const m = e[
|
|
139
|
-
let B = (
|
|
140
|
-
if (!t.open &&
|
|
135
|
+
const u = e[0];
|
|
136
|
+
r.moveTo(u.points[2], u.points[3]);
|
|
137
|
+
for (let h = 0; h < e.length; h++) {
|
|
138
|
+
const m = e[h];
|
|
139
|
+
let B = (h + 1) % e.length;
|
|
140
|
+
if (!t.open && h === e.length - 1)
|
|
141
141
|
B = 0;
|
|
142
|
-
else if (t.open &&
|
|
142
|
+
else if (t.open && h === e.length - 1)
|
|
143
143
|
break;
|
|
144
144
|
const C = e[B], x = m.points[4], n = m.points[5], E = C.points[0], a = C.points[1], s = C.points[2], f = C.points[3];
|
|
145
145
|
r.bezierCurveTo(x, n, E, a, s, f);
|
|
146
146
|
}
|
|
147
147
|
t.open || r.closePath();
|
|
148
148
|
});
|
|
149
|
-
else if (
|
|
150
|
-
const t =
|
|
149
|
+
else if (v.type === "simple" && Array.isArray(v.points)) {
|
|
150
|
+
const t = v.points;
|
|
151
151
|
if (t.length < 3) return;
|
|
152
152
|
r.moveTo(t[0].x, t[0].y);
|
|
153
153
|
for (let e = 1; e < t.length; e++) r.lineTo(t[e].x, t[e].y);
|
|
@@ -161,10 +161,10 @@ class h0 {
|
|
|
161
161
|
/**
|
|
162
162
|
* 获取存储项
|
|
163
163
|
*/
|
|
164
|
-
static getItem(
|
|
164
|
+
static getItem(v) {
|
|
165
165
|
if (!this.hasStorage) return null;
|
|
166
166
|
try {
|
|
167
|
-
return localStorage.getItem(
|
|
167
|
+
return localStorage.getItem(v);
|
|
168
168
|
} catch {
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
@@ -172,10 +172,10 @@ class h0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(
|
|
175
|
+
static setItem(v, t) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(
|
|
178
|
+
return localStorage.setItem(v, t), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -183,10 +183,10 @@ class h0 {
|
|
|
183
183
|
/**
|
|
184
184
|
* 移除存储项
|
|
185
185
|
*/
|
|
186
|
-
static removeItem(
|
|
186
|
+
static removeItem(v) {
|
|
187
187
|
if (!this.hasStorage) return !1;
|
|
188
188
|
try {
|
|
189
|
-
return localStorage.removeItem(
|
|
189
|
+
return localStorage.removeItem(v), !0;
|
|
190
190
|
} catch {
|
|
191
191
|
return !1;
|
|
192
192
|
}
|
|
@@ -209,7 +209,7 @@ class h0 {
|
|
|
209
209
|
return this.hasStorage;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
class
|
|
212
|
+
class fr {
|
|
213
213
|
/**
|
|
214
214
|
* 是否在浏览器环境
|
|
215
215
|
*/
|
|
@@ -251,10 +251,10 @@ class l0 {
|
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(v) {
|
|
255
255
|
try {
|
|
256
|
-
const t =
|
|
257
|
-
return new URL(
|
|
256
|
+
const t = fr.getOrigin();
|
|
257
|
+
return new URL(v, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,217 +262,222 @@ class l0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const
|
|
267
|
-
return !
|
|
265
|
+
static addParam(v, t, e) {
|
|
266
|
+
const u = this.parse(v);
|
|
267
|
+
return !u || u.searchParams.has(t) ? v : (u.searchParams.set(t, e), this.formatUrl(v, u));
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* 移除查询参数
|
|
271
271
|
*/
|
|
272
|
-
static removeParam(
|
|
273
|
-
const e = this.parse(
|
|
274
|
-
return !e || !e.searchParams.has(t) ?
|
|
272
|
+
static removeParam(v, t) {
|
|
273
|
+
const e = this.parse(v);
|
|
274
|
+
return !e || !e.searchParams.has(t) ? v : (e.searchParams.delete(t), this.formatUrl(v, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(
|
|
280
|
-
return this.parse(
|
|
279
|
+
static hasParam(v, t) {
|
|
280
|
+
return this.parse(v)?.searchParams.has(t) ?? !1;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
|
-
static formatUrl(
|
|
286
|
-
const e = /^(https?:)?\/\//i.test(
|
|
287
|
-
return e ? t.toString() :
|
|
285
|
+
static formatUrl(v, t) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(v), u = v.startsWith("//");
|
|
287
|
+
return e ? t.toString() : u ? t.toString().replace(/^https?:/, "") : `${t.pathname}${t.search}${t.hash}`;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* 检查是否为数据 URL
|
|
291
291
|
*/
|
|
292
|
-
static isDataUrl(
|
|
293
|
-
return
|
|
292
|
+
static isDataUrl(v) {
|
|
293
|
+
return v?.startsWith("data:") ?? !1;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* 检查是否为 Blob URL
|
|
297
297
|
*/
|
|
298
|
-
static isBlobUrl(
|
|
299
|
-
return
|
|
298
|
+
static isBlobUrl(v) {
|
|
299
|
+
return v?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
const J = g0;
|
|
303
|
+
(function(r, v) {
|
|
304
|
+
const t = g0, e = r();
|
|
304
305
|
for (; ; )
|
|
305
306
|
try {
|
|
306
|
-
if (
|
|
307
|
+
if (parseInt(t(504)) / 1 + -parseInt(t(500)) / 2 * (parseInt(t(490)) / 3) + -parseInt(t(480)) / 4 + parseInt(t(498)) / 5 + parseInt(t(469)) / 6 + -parseInt(t(497)) / 7 + -parseInt(t(477)) / 8 * (-parseInt(t(473)) / 9) === v) break;
|
|
307
308
|
e.push(e.shift());
|
|
308
309
|
} catch {
|
|
309
310
|
e.push(e.shift());
|
|
310
311
|
}
|
|
311
|
-
})(
|
|
312
|
+
})(cr, 2 * -37093 + 156194 + 71530);
|
|
312
313
|
const E0 = /* @__PURE__ */ (function() {
|
|
313
314
|
let r = !0;
|
|
314
|
-
return function(
|
|
315
|
+
return function(v, t) {
|
|
315
316
|
const e = r ? function() {
|
|
317
|
+
const u = g0;
|
|
316
318
|
if (t) {
|
|
317
|
-
const
|
|
318
|
-
return t = null,
|
|
319
|
+
const h = t[u(484)](v, arguments);
|
|
320
|
+
return t = null, h;
|
|
319
321
|
}
|
|
320
322
|
} : function() {
|
|
321
323
|
};
|
|
322
324
|
return r = !1, e;
|
|
323
325
|
};
|
|
324
|
-
})(),
|
|
325
|
-
const r =
|
|
326
|
-
const
|
|
326
|
+
})(), Ve = E0(void 0, function() {
|
|
327
|
+
const r = g0, v = function() {
|
|
328
|
+
const h = g0;
|
|
327
329
|
let m;
|
|
328
330
|
try {
|
|
329
|
-
m = Function("return (
|
|
331
|
+
m = Function("return (functio" + h(494) + ("{}.constructor(" + h(506) + 'rn this")( )') + ");")();
|
|
330
332
|
} catch {
|
|
331
333
|
m = window;
|
|
332
334
|
}
|
|
333
335
|
return m;
|
|
334
|
-
}, t =
|
|
335
|
-
for (let
|
|
336
|
-
const m = E0
|
|
337
|
-
m
|
|
336
|
+
}, t = v(), e = t.console = t.console || {}, u = ["log", "warn", "info", "error", r(478) + "tion", "table", r(488)];
|
|
337
|
+
for (let h = -8064 + 18 * 448; h < u.length; h++) {
|
|
338
|
+
const m = E0["const" + r(495) + "r"].prototype.bind(E0), B = u[h], C = e[B] || m;
|
|
339
|
+
m[r(496) + "to__"] = E0.bind(E0), m.toString = C["toStr" + r(486)].bind(C), e[B] = m;
|
|
338
340
|
}
|
|
339
341
|
});
|
|
340
|
-
|
|
341
|
-
|
|
342
|
+
Ve();
|
|
343
|
+
const Br = "file_" + J(483), Cr = J(492) + "token" + J(491) + J(499) + "me", Je = 60 * (269 * -17 + -3985 + 9558);
|
|
344
|
+
function vr() {
|
|
345
|
+
return h0.getItem(Br);
|
|
342
346
|
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
function hr() {
|
|
346
|
-
return h0[t0(211) + "em"](pr);
|
|
347
|
+
function g0(r, v) {
|
|
348
|
+
return r = r - (-4070 + -2 * -314 + 1 * 3911), cr()[r];
|
|
347
349
|
}
|
|
348
|
-
function
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
350
|
+
function rt(r = Je) {
|
|
351
|
+
const v = J;
|
|
352
|
+
if (!vr()) return !0;
|
|
353
|
+
const e = h0[v(485) + "em"](Cr);
|
|
354
|
+
if (!e) return !1;
|
|
355
|
+
const u = Number(e);
|
|
356
|
+
return Date.now() + r > u;
|
|
354
357
|
}
|
|
355
|
-
function
|
|
356
|
-
const t =
|
|
357
|
-
if (h0.setItem(
|
|
358
|
-
const e = Date
|
|
359
|
-
h0
|
|
358
|
+
function et(r, v) {
|
|
359
|
+
const t = J;
|
|
360
|
+
if (h0.setItem(Br, r), typeof v == t(487) + "r" && v > 0) {
|
|
361
|
+
const e = Date[t(476)]() + v * 1e3;
|
|
362
|
+
h0[t(479) + "em"](Cr, String(e));
|
|
360
363
|
}
|
|
361
364
|
}
|
|
362
|
-
function
|
|
363
|
-
|
|
365
|
+
function cr() {
|
|
366
|
+
const r = ["isBro", "token", "apply", "getIt", "ing", "numbe", "trace", "pathn", "39ZFVgQJ", "_expi", "file_", "oken", "n() ", "ructo", "__pro", "1025227dbIUQn", "470630UUqfLg", "re_ti", "42542xqwVIm", "inclu", "remov", "code", "147983sckYzK", "/file", '"retu', "1020936AdlqcR", "wser", "hasPa", "FileT", "976293XXekms", "parse", "data", "now", "24AHlqrk", "excep", "setIt", "644696uuWxhN", "des"];
|
|
367
|
+
return cr = function() {
|
|
368
|
+
return r;
|
|
369
|
+
}, cr();
|
|
370
|
+
}
|
|
371
|
+
function tt() {
|
|
372
|
+
const r = J;
|
|
373
|
+
h0.removeItem(Br), h0[r(502) + "eItem"](Cr);
|
|
364
374
|
}
|
|
365
|
-
async function
|
|
366
|
-
const
|
|
367
|
-
return t?.[
|
|
375
|
+
async function Pr(r) {
|
|
376
|
+
const v = J, t = await r(), e = t?.data?.data;
|
|
377
|
+
return t?.[v(475)]?.[v(503)] === -9 * -613 + -6720 + 1403 && e?.["file_token"] ? (et(e.file_token, e.expires_in), e["file_" + v(483)]) : null;
|
|
368
378
|
}
|
|
369
|
-
let
|
|
370
|
-
function
|
|
371
|
-
return
|
|
379
|
+
let xt = null;
|
|
380
|
+
function zr() {
|
|
381
|
+
return fr.isBrowser() ? xt : null;
|
|
372
382
|
}
|
|
373
|
-
async function
|
|
374
|
-
const r =
|
|
375
|
-
if (!
|
|
376
|
-
const
|
|
377
|
-
if (
|
|
383
|
+
async function ge() {
|
|
384
|
+
const r = J;
|
|
385
|
+
if (!fr["isBro" + r(470)]()) return vr();
|
|
386
|
+
const v = vr();
|
|
387
|
+
if (v && !rt()) return v;
|
|
378
388
|
try {
|
|
379
|
-
const t = await
|
|
380
|
-
if (
|
|
381
|
-
const e = await
|
|
389
|
+
const t = await zr();
|
|
390
|
+
if (v && t?.["fetch" + r(472) + "okenRefresh"]) {
|
|
391
|
+
const e = await Pr(t["fetch" + r(472) + "okenRefresh"]);
|
|
382
392
|
if (e) return e;
|
|
383
393
|
}
|
|
384
394
|
} catch {
|
|
385
395
|
}
|
|
386
396
|
try {
|
|
387
|
-
const t =
|
|
388
|
-
return t?.["
|
|
397
|
+
const t = zr();
|
|
398
|
+
return t?.["fetchFileToken"] ? await Pr(t.fetchFileToken) : null;
|
|
389
399
|
} catch {
|
|
390
400
|
return null;
|
|
391
401
|
}
|
|
392
402
|
}
|
|
393
|
-
function
|
|
394
|
-
const
|
|
403
|
+
function De(r) {
|
|
404
|
+
const v = J;
|
|
395
405
|
if (!r || l0.isDataUrl(r) || l0.isBlobUrl(r)) return !1;
|
|
396
|
-
const t = l0
|
|
397
|
-
return t ? t
|
|
406
|
+
const t = l0[v(474)](r);
|
|
407
|
+
return t ? t[v(489) + "ame"][v(501) + "des"](v(505) + "s/") && !l0[v(471) + "ram"](r, "fileToken") : r.includes(v(505) + "s/") && !r[v(501) + v(481)]("fileToken=");
|
|
398
408
|
}
|
|
399
|
-
function
|
|
400
|
-
|
|
409
|
+
function be(r, v) {
|
|
410
|
+
const t = J;
|
|
411
|
+
return !v || !De(r) ? r : l0.addParam(r, "fileT" + t(493), v);
|
|
401
412
|
}
|
|
402
|
-
function
|
|
403
|
-
const
|
|
404
|
-
return l0.removeParam(r,
|
|
413
|
+
function nt(r) {
|
|
414
|
+
const v = J;
|
|
415
|
+
return l0.removeParam(r, "fileT" + v(493));
|
|
405
416
|
}
|
|
406
|
-
async function
|
|
407
|
-
if (!
|
|
408
|
-
const
|
|
409
|
-
return
|
|
417
|
+
async function at(r) {
|
|
418
|
+
if (!De(r)) return r;
|
|
419
|
+
const v = await ge();
|
|
420
|
+
return be(r, v);
|
|
410
421
|
}
|
|
411
|
-
function
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
if (!cr.isBrowser()) return fetch(r, p);
|
|
419
|
-
const t = xt(r), e = await nt(t), d = await fetch(e, p);
|
|
420
|
-
if (d.status !== 2481 + -1807 * 5 + 5 * 1391) return d;
|
|
421
|
-
et();
|
|
422
|
-
const v = await Fe(), m = De(t, v);
|
|
423
|
-
return fetch(m, p);
|
|
422
|
+
async function me(r, v) {
|
|
423
|
+
if (!fr[J(482) + "wser"]()) return fetch(r, v);
|
|
424
|
+
const e = nt(r), u = await at(e), h = await fetch(u, v);
|
|
425
|
+
if (h.status !== 401) return h;
|
|
426
|
+
tt();
|
|
427
|
+
const m = await ge(), B = be(e, m);
|
|
428
|
+
return fetch(B, v);
|
|
424
429
|
}
|
|
425
|
-
const
|
|
430
|
+
const _e = (r, v) => {
|
|
426
431
|
if (!r) return r;
|
|
427
|
-
const t = (
|
|
432
|
+
const t = (v || "").replace(/\/$/, "");
|
|
428
433
|
if (t && r.startsWith(t))
|
|
429
434
|
return r;
|
|
430
435
|
if (typeof window < "u") {
|
|
431
|
-
const
|
|
432
|
-
if (
|
|
436
|
+
const u = window.location.hostname;
|
|
437
|
+
if (u === "localhost" || u === "127.0.0.1")
|
|
433
438
|
try {
|
|
434
|
-
const
|
|
439
|
+
const h = new URL(r);
|
|
435
440
|
if (t)
|
|
436
441
|
try {
|
|
437
442
|
const m = new URL(t).origin;
|
|
438
|
-
if (
|
|
443
|
+
if (h.origin === m)
|
|
439
444
|
return r;
|
|
440
445
|
} catch {
|
|
441
446
|
}
|
|
442
|
-
if (
|
|
443
|
-
return t ? `${t}${
|
|
447
|
+
if (h.pathname.startsWith("/files/"))
|
|
448
|
+
return t ? `${t}${h.pathname}${h.search}${h.hash}` : `${h.pathname}${h.search}${h.hash}`;
|
|
444
449
|
} catch {
|
|
445
450
|
}
|
|
446
451
|
}
|
|
447
452
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
448
453
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
449
454
|
return e ? `/oss${e[2]}` : r;
|
|
450
|
-
},
|
|
455
|
+
}, ot = (r, v) => {
|
|
451
456
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
452
|
-
return new OffscreenCanvas(r,
|
|
457
|
+
return new OffscreenCanvas(r, v);
|
|
453
458
|
const t = document.createElement("canvas");
|
|
454
|
-
return t.width = r, t.height =
|
|
455
|
-
},
|
|
456
|
-
if (!
|
|
459
|
+
return t.width = r, t.height = v, t;
|
|
460
|
+
}, _0 = async (r, v) => {
|
|
461
|
+
if (!v || v <= 0) return r;
|
|
457
462
|
const t = Math.max(r.width, r.height);
|
|
458
|
-
if (t <=
|
|
459
|
-
const e =
|
|
460
|
-
return B ? (B.drawImage(r, 0, 0,
|
|
463
|
+
if (t <= v) return r;
|
|
464
|
+
const e = v / t, u = Math.max(1, Math.round(r.width * e)), h = Math.max(1, Math.round(r.height * e)), m = ot(u, h), B = m.getContext("2d");
|
|
465
|
+
return B ? (B.drawImage(r, 0, 0, u, h), r.close?.(), await createImageBitmap(m)) : r;
|
|
461
466
|
};
|
|
462
|
-
async function
|
|
467
|
+
async function it(r, v, t) {
|
|
463
468
|
if (typeof r == "string")
|
|
464
469
|
try {
|
|
465
|
-
const e =
|
|
466
|
-
if (!
|
|
467
|
-
const m =
|
|
470
|
+
const e = _e(r, t), u = await me(e);
|
|
471
|
+
if (!u.ok) {
|
|
472
|
+
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
468
473
|
throw new Error(m);
|
|
469
474
|
}
|
|
470
|
-
const
|
|
471
|
-
if (!
|
|
475
|
+
const h = await u.blob();
|
|
476
|
+
if (!h.type.startsWith("image/") && h.size === 0)
|
|
472
477
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
473
478
|
try {
|
|
474
|
-
const m = await createImageBitmap(
|
|
475
|
-
return await
|
|
479
|
+
const m = await createImageBitmap(h);
|
|
480
|
+
return await _0(m, v);
|
|
476
481
|
} catch (m) {
|
|
477
482
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
478
483
|
}
|
|
@@ -480,13 +485,13 @@ async function ot(r, p, t) {
|
|
|
480
485
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
481
486
|
}
|
|
482
487
|
if (r instanceof HTMLImageElement) {
|
|
483
|
-
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e,
|
|
484
|
-
r.onload = e, r.onerror = () =>
|
|
488
|
+
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e, u) => {
|
|
489
|
+
r.onload = e, r.onerror = () => u(new Error(`图片加载失败: src=${r.src}`)), r.complete && e(null);
|
|
485
490
|
}), r.naturalWidth === 0 || r.naturalHeight === 0)
|
|
486
491
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
487
492
|
try {
|
|
488
493
|
const e = await createImageBitmap(r);
|
|
489
|
-
return await
|
|
494
|
+
return await _0(e, v);
|
|
490
495
|
} catch (e) {
|
|
491
496
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
492
497
|
}
|
|
@@ -494,23 +499,23 @@ async function ot(r, p, t) {
|
|
|
494
499
|
if (r instanceof ImageBitmap) {
|
|
495
500
|
if (r.width === 0 || r.height === 0)
|
|
496
501
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
497
|
-
return await
|
|
502
|
+
return await _0(r, v);
|
|
498
503
|
}
|
|
499
504
|
throw new Error("不支持的图片类型");
|
|
500
505
|
}
|
|
501
|
-
async function
|
|
506
|
+
async function st(r, v, t) {
|
|
502
507
|
try {
|
|
503
|
-
const e =
|
|
504
|
-
if (!
|
|
505
|
-
const m =
|
|
508
|
+
const e = _e(r, t), u = await me(e);
|
|
509
|
+
if (!u.ok) {
|
|
510
|
+
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
506
511
|
throw new Error(m);
|
|
507
512
|
}
|
|
508
|
-
const
|
|
509
|
-
if (!
|
|
513
|
+
const h = await u.blob();
|
|
514
|
+
if (!h.type.startsWith("image/") && h.size === 0)
|
|
510
515
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
511
516
|
try {
|
|
512
|
-
const m = await createImageBitmap(
|
|
513
|
-
return await
|
|
517
|
+
const m = await createImageBitmap(h);
|
|
518
|
+
return await _0(m, v);
|
|
514
519
|
} catch (m) {
|
|
515
520
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
516
521
|
}
|
|
@@ -518,9 +523,9 @@ async function it(r, p, t) {
|
|
|
518
523
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
519
524
|
}
|
|
520
525
|
}
|
|
521
|
-
function
|
|
526
|
+
function Wr(r) {
|
|
522
527
|
if (!r) return "source-over";
|
|
523
|
-
const
|
|
528
|
+
const v = r.trim().toLowerCase();
|
|
524
529
|
return {
|
|
525
530
|
normal: "source-over",
|
|
526
531
|
multiply: "multiply",
|
|
@@ -546,26 +551,26 @@ function zr(r) {
|
|
|
546
551
|
"linear dodge": "lighter",
|
|
547
552
|
lighter: "lighter",
|
|
548
553
|
"pass-through": "source-over"
|
|
549
|
-
}[
|
|
554
|
+
}[v] || "source-over";
|
|
550
555
|
}
|
|
551
|
-
var
|
|
552
|
-
function
|
|
556
|
+
var hr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
557
|
+
function ct(r) {
|
|
553
558
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
554
|
-
var
|
|
555
|
-
if (typeof
|
|
559
|
+
var v = r.default;
|
|
560
|
+
if (typeof v == "function") {
|
|
556
561
|
var t = function e() {
|
|
557
|
-
var
|
|
562
|
+
var u = !1;
|
|
558
563
|
try {
|
|
559
|
-
|
|
564
|
+
u = this instanceof e;
|
|
560
565
|
} catch {
|
|
561
566
|
}
|
|
562
|
-
return
|
|
567
|
+
return u ? Reflect.construct(v, arguments, this.constructor) : v.apply(this, arguments);
|
|
563
568
|
};
|
|
564
|
-
t.prototype =
|
|
569
|
+
t.prototype = v.prototype;
|
|
565
570
|
} else t = {};
|
|
566
571
|
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
567
|
-
var
|
|
568
|
-
Object.defineProperty(t, e,
|
|
572
|
+
var u = Object.getOwnPropertyDescriptor(r, e);
|
|
573
|
+
Object.defineProperty(t, e, u.get ? u : {
|
|
569
574
|
enumerable: !0,
|
|
570
575
|
get: function() {
|
|
571
576
|
return r[e];
|
|
@@ -573,36 +578,36 @@ function st(r) {
|
|
|
573
578
|
});
|
|
574
579
|
}), t;
|
|
575
580
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
581
|
+
var y0 = { exports: {} };
|
|
582
|
+
function ft(r) {
|
|
578
583
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
579
584
|
}
|
|
580
|
-
var
|
|
585
|
+
var w0 = { exports: {} }, ut = {}, dt = /* @__PURE__ */ Object.freeze({
|
|
581
586
|
__proto__: null,
|
|
582
|
-
default:
|
|
583
|
-
}),
|
|
587
|
+
default: ut
|
|
588
|
+
}), lt = /* @__PURE__ */ ct(dt), ht = w0.exports, Ir;
|
|
584
589
|
function M() {
|
|
585
|
-
return
|
|
590
|
+
return Ir || (Ir = 1, (function(r, v) {
|
|
586
591
|
(function(t, e) {
|
|
587
592
|
r.exports = e();
|
|
588
|
-
})(
|
|
589
|
-
var t = t || (function(e,
|
|
590
|
-
var
|
|
591
|
-
if (typeof window < "u" && window.crypto && (
|
|
593
|
+
})(ht, function() {
|
|
594
|
+
var t = t || (function(e, u) {
|
|
595
|
+
var h;
|
|
596
|
+
if (typeof window < "u" && window.crypto && (h = window.crypto), typeof self < "u" && self.crypto && (h = self.crypto), typeof globalThis < "u" && globalThis.crypto && (h = globalThis.crypto), !h && typeof window < "u" && window.msCrypto && (h = window.msCrypto), !h && typeof hr < "u" && hr.crypto && (h = hr.crypto), !h && typeof ft == "function")
|
|
592
597
|
try {
|
|
593
|
-
|
|
598
|
+
h = lt;
|
|
594
599
|
} catch {
|
|
595
600
|
}
|
|
596
601
|
var m = function() {
|
|
597
|
-
if (
|
|
598
|
-
if (typeof
|
|
602
|
+
if (h) {
|
|
603
|
+
if (typeof h.getRandomValues == "function")
|
|
599
604
|
try {
|
|
600
|
-
return
|
|
605
|
+
return h.getRandomValues(new Uint32Array(1))[0];
|
|
601
606
|
} catch {
|
|
602
607
|
}
|
|
603
|
-
if (typeof
|
|
608
|
+
if (typeof h.randomBytes == "function")
|
|
604
609
|
try {
|
|
605
|
-
return
|
|
610
|
+
return h.randomBytes(4).readInt32LE();
|
|
606
611
|
} catch {
|
|
607
612
|
}
|
|
608
613
|
}
|
|
@@ -611,8 +616,8 @@ function M() {
|
|
|
611
616
|
function i() {
|
|
612
617
|
}
|
|
613
618
|
return function(o) {
|
|
614
|
-
var
|
|
615
|
-
return i.prototype = o,
|
|
619
|
+
var d;
|
|
620
|
+
return i.prototype = o, d = new i(), i.prototype = null, d;
|
|
616
621
|
};
|
|
617
622
|
})(), C = {}, x = C.lib = {}, n = x.Base = /* @__PURE__ */ (function() {
|
|
618
623
|
return {
|
|
@@ -713,7 +718,7 @@ function M() {
|
|
|
713
718
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
714
719
|
*/
|
|
715
720
|
init: function(i, o) {
|
|
716
|
-
i = this.words = i || [], o !=
|
|
721
|
+
i = this.words = i || [], o != u ? this.sigBytes = o : this.sigBytes = i.length * 4;
|
|
717
722
|
},
|
|
718
723
|
/**
|
|
719
724
|
* Converts this word array to a string.
|
|
@@ -743,15 +748,15 @@ function M() {
|
|
|
743
748
|
* wordArray1.concat(wordArray2);
|
|
744
749
|
*/
|
|
745
750
|
concat: function(i) {
|
|
746
|
-
var o = this.words,
|
|
751
|
+
var o = this.words, d = i.words, b = this.sigBytes, g = i.sigBytes;
|
|
747
752
|
if (this.clamp(), b % 4)
|
|
748
753
|
for (var y = 0; y < g; y++) {
|
|
749
|
-
var k =
|
|
754
|
+
var k = d[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
750
755
|
o[b + y >>> 2] |= k << 24 - (b + y) % 4 * 8;
|
|
751
756
|
}
|
|
752
757
|
else
|
|
753
758
|
for (var R = 0; R < g; R += 4)
|
|
754
|
-
o[b + R >>> 2] =
|
|
759
|
+
o[b + R >>> 2] = d[R >>> 2];
|
|
755
760
|
return this.sigBytes += g, this;
|
|
756
761
|
},
|
|
757
762
|
/**
|
|
@@ -792,7 +797,7 @@ function M() {
|
|
|
792
797
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
793
798
|
*/
|
|
794
799
|
random: function(i) {
|
|
795
|
-
for (var o = [],
|
|
800
|
+
for (var o = [], d = 0; d < i; d += 4)
|
|
796
801
|
o.push(m());
|
|
797
802
|
return new E.init(o, i);
|
|
798
803
|
}
|
|
@@ -811,7 +816,7 @@ function M() {
|
|
|
811
816
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
812
817
|
*/
|
|
813
818
|
stringify: function(i) {
|
|
814
|
-
for (var o = i.words,
|
|
819
|
+
for (var o = i.words, d = i.sigBytes, b = [], g = 0; g < d; g++) {
|
|
815
820
|
var y = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
816
821
|
b.push((y >>> 4).toString(16)), b.push((y & 15).toString(16));
|
|
817
822
|
}
|
|
@@ -831,9 +836,9 @@ function M() {
|
|
|
831
836
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
832
837
|
*/
|
|
833
838
|
parse: function(i) {
|
|
834
|
-
for (var o = i.length,
|
|
835
|
-
|
|
836
|
-
return new E.init(
|
|
839
|
+
for (var o = i.length, d = [], b = 0; b < o; b += 2)
|
|
840
|
+
d[b >>> 3] |= parseInt(i.substr(b, 2), 16) << 24 - b % 8 * 4;
|
|
841
|
+
return new E.init(d, o / 2);
|
|
837
842
|
}
|
|
838
843
|
}, f = a.Latin1 = {
|
|
839
844
|
/**
|
|
@@ -850,7 +855,7 @@ function M() {
|
|
|
850
855
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
851
856
|
*/
|
|
852
857
|
stringify: function(i) {
|
|
853
|
-
for (var o = i.words,
|
|
858
|
+
for (var o = i.words, d = i.sigBytes, b = [], g = 0; g < d; g++) {
|
|
854
859
|
var y = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
855
860
|
b.push(String.fromCharCode(y));
|
|
856
861
|
}
|
|
@@ -870,11 +875,11 @@ function M() {
|
|
|
870
875
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
871
876
|
*/
|
|
872
877
|
parse: function(i) {
|
|
873
|
-
for (var o = i.length,
|
|
874
|
-
|
|
875
|
-
return new E.init(
|
|
878
|
+
for (var o = i.length, d = [], b = 0; b < o; b++)
|
|
879
|
+
d[b >>> 2] |= (i.charCodeAt(b) & 255) << 24 - b % 4 * 8;
|
|
880
|
+
return new E.init(d, o);
|
|
876
881
|
}
|
|
877
|
-
},
|
|
882
|
+
}, p = a.Utf8 = {
|
|
878
883
|
/**
|
|
879
884
|
* Converts a word array to a UTF-8 string.
|
|
880
885
|
*
|
|
@@ -933,7 +938,7 @@ function M() {
|
|
|
933
938
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
934
939
|
*/
|
|
935
940
|
_append: function(i) {
|
|
936
|
-
typeof i == "string" && (i =
|
|
941
|
+
typeof i == "string" && (i = p.parse(i)), this._data.concat(i), this._nDataBytes += i.sigBytes;
|
|
937
942
|
},
|
|
938
943
|
/**
|
|
939
944
|
* Processes available data blocks.
|
|
@@ -950,13 +955,13 @@ function M() {
|
|
|
950
955
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
951
956
|
*/
|
|
952
957
|
_process: function(i) {
|
|
953
|
-
var o,
|
|
958
|
+
var o, d = this._data, b = d.words, g = d.sigBytes, y = this.blockSize, k = y * 4, R = g / k;
|
|
954
959
|
i ? R = e.ceil(R) : R = e.max((R | 0) - this._minBufferSize, 0);
|
|
955
960
|
var F = R * y, w = e.min(F * 4, g);
|
|
956
961
|
if (F) {
|
|
957
962
|
for (var H = 0; H < F; H += y)
|
|
958
963
|
this._doProcessBlock(b, H);
|
|
959
|
-
o = b.splice(0, F),
|
|
964
|
+
o = b.splice(0, F), d.sigBytes -= w;
|
|
960
965
|
}
|
|
961
966
|
return new E.init(o, w);
|
|
962
967
|
},
|
|
@@ -1051,8 +1056,8 @@ function M() {
|
|
|
1051
1056
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
1052
1057
|
*/
|
|
1053
1058
|
_createHelper: function(i) {
|
|
1054
|
-
return function(o,
|
|
1055
|
-
return new i.init(
|
|
1059
|
+
return function(o, d) {
|
|
1060
|
+
return new i.init(d).finalize(o);
|
|
1056
1061
|
};
|
|
1057
1062
|
},
|
|
1058
1063
|
/**
|
|
@@ -1069,8 +1074,8 @@ function M() {
|
|
|
1069
1074
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
1070
1075
|
*/
|
|
1071
1076
|
_createHmacHelper: function(i) {
|
|
1072
|
-
return function(o,
|
|
1073
|
-
return new D.HMAC.init(i,
|
|
1077
|
+
return function(o, d) {
|
|
1078
|
+
return new D.HMAC.init(i, d).finalize(o);
|
|
1074
1079
|
};
|
|
1075
1080
|
}
|
|
1076
1081
|
});
|
|
@@ -1079,16 +1084,16 @@ function M() {
|
|
|
1079
1084
|
})(Math);
|
|
1080
1085
|
return t;
|
|
1081
1086
|
});
|
|
1082
|
-
})(
|
|
1087
|
+
})(w0)), w0.exports;
|
|
1083
1088
|
}
|
|
1084
|
-
var
|
|
1085
|
-
function
|
|
1086
|
-
return
|
|
1089
|
+
var k0 = { exports: {} }, vt = k0.exports, Lr;
|
|
1090
|
+
function ur() {
|
|
1091
|
+
return Lr || (Lr = 1, (function(r, v) {
|
|
1087
1092
|
(function(t, e) {
|
|
1088
1093
|
r.exports = e(M());
|
|
1089
|
-
})(
|
|
1094
|
+
})(vt, function(t) {
|
|
1090
1095
|
return (function(e) {
|
|
1091
|
-
var
|
|
1096
|
+
var u = t, h = u.lib, m = h.Base, B = h.WordArray, C = u.x64 = {};
|
|
1092
1097
|
C.Word = m.extend({
|
|
1093
1098
|
/**
|
|
1094
1099
|
* Initializes a newly created 64-bit word.
|
|
@@ -1309,17 +1314,17 @@ function fr() {
|
|
|
1309
1314
|
});
|
|
1310
1315
|
})(), t;
|
|
1311
1316
|
});
|
|
1312
|
-
})(
|
|
1317
|
+
})(k0)), k0.exports;
|
|
1313
1318
|
}
|
|
1314
|
-
var
|
|
1315
|
-
function
|
|
1316
|
-
return
|
|
1319
|
+
var S0 = { exports: {} }, pt = S0.exports, Or;
|
|
1320
|
+
function Bt() {
|
|
1321
|
+
return Or || (Or = 1, (function(r, v) {
|
|
1317
1322
|
(function(t, e) {
|
|
1318
1323
|
r.exports = e(M());
|
|
1319
|
-
})(
|
|
1324
|
+
})(pt, function(t) {
|
|
1320
1325
|
return (function() {
|
|
1321
1326
|
if (typeof ArrayBuffer == "function") {
|
|
1322
|
-
var e = t,
|
|
1327
|
+
var e = t, u = e.lib, h = u.WordArray, m = h.init, B = h.init = function(C) {
|
|
1323
1328
|
if (C instanceof ArrayBuffer && (C = new Uint8Array(C)), (C instanceof Int8Array || typeof Uint8ClampedArray < "u" && C instanceof Uint8ClampedArray || C instanceof Int16Array || C instanceof Uint16Array || C instanceof Int32Array || C instanceof Uint32Array || C instanceof Float32Array || C instanceof Float64Array) && (C = new Uint8Array(C.buffer, C.byteOffset, C.byteLength)), C instanceof Uint8Array) {
|
|
1324
1329
|
for (var x = C.byteLength, n = [], E = 0; E < x; E++)
|
|
1325
1330
|
n[E >>> 2] |= C[E] << 24 - E % 4 * 8;
|
|
@@ -1327,20 +1332,20 @@ function pt() {
|
|
|
1327
1332
|
} else
|
|
1328
1333
|
m.apply(this, arguments);
|
|
1329
1334
|
};
|
|
1330
|
-
B.prototype =
|
|
1335
|
+
B.prototype = h;
|
|
1331
1336
|
}
|
|
1332
1337
|
})(), t.lib.WordArray;
|
|
1333
1338
|
});
|
|
1334
|
-
})(
|
|
1339
|
+
})(S0)), S0.exports;
|
|
1335
1340
|
}
|
|
1336
|
-
var
|
|
1337
|
-
function
|
|
1338
|
-
return
|
|
1341
|
+
var H0 = { exports: {} }, Ct = H0.exports, qr;
|
|
1342
|
+
function Et() {
|
|
1343
|
+
return qr || (qr = 1, (function(r, v) {
|
|
1339
1344
|
(function(t, e) {
|
|
1340
1345
|
r.exports = e(M());
|
|
1341
|
-
})(
|
|
1346
|
+
})(Ct, function(t) {
|
|
1342
1347
|
return (function() {
|
|
1343
|
-
var e = t,
|
|
1348
|
+
var e = t, u = e.lib, h = u.WordArray, m = e.enc;
|
|
1344
1349
|
m.Utf16 = m.Utf16BE = {
|
|
1345
1350
|
/**
|
|
1346
1351
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1378,7 +1383,7 @@ function Ct() {
|
|
|
1378
1383
|
parse: function(C) {
|
|
1379
1384
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1380
1385
|
n[E >>> 1] |= C.charCodeAt(E) << 16 - E % 2 * 16;
|
|
1381
|
-
return
|
|
1386
|
+
return h.create(n, x * 2);
|
|
1382
1387
|
}
|
|
1383
1388
|
}, m.Utf16LE = {
|
|
1384
1389
|
/**
|
|
@@ -1417,7 +1422,7 @@ function Ct() {
|
|
|
1417
1422
|
parse: function(C) {
|
|
1418
1423
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1419
1424
|
n[E >>> 1] |= B(C.charCodeAt(E) << 16 - E % 2 * 16);
|
|
1420
|
-
return
|
|
1425
|
+
return h.create(n, x * 2);
|
|
1421
1426
|
}
|
|
1422
1427
|
};
|
|
1423
1428
|
function B(C) {
|
|
@@ -1425,16 +1430,16 @@ function Ct() {
|
|
|
1425
1430
|
}
|
|
1426
1431
|
})(), t.enc.Utf16;
|
|
1427
1432
|
});
|
|
1428
|
-
})(
|
|
1433
|
+
})(H0)), H0.exports;
|
|
1429
1434
|
}
|
|
1430
|
-
var
|
|
1435
|
+
var $0 = { exports: {} }, At = $0.exports, Tr;
|
|
1431
1436
|
function i0() {
|
|
1432
|
-
return
|
|
1437
|
+
return Tr || (Tr = 1, (function(r, v) {
|
|
1433
1438
|
(function(t, e) {
|
|
1434
1439
|
r.exports = e(M());
|
|
1435
|
-
})(
|
|
1440
|
+
})(At, function(t) {
|
|
1436
1441
|
return (function() {
|
|
1437
|
-
var e = t,
|
|
1442
|
+
var e = t, u = e.lib, h = u.WordArray, m = e.enc;
|
|
1438
1443
|
m.Base64 = {
|
|
1439
1444
|
/**
|
|
1440
1445
|
* Converts a word array to a Base64 string.
|
|
@@ -1453,7 +1458,7 @@ function i0() {
|
|
|
1453
1458
|
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1454
1459
|
C.clamp();
|
|
1455
1460
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1456
|
-
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255,
|
|
1461
|
+
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, p = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, l = x[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, D = f << 16 | p << 8 | l, i = 0; i < 4 && s + i * 0.75 < n; i++)
|
|
1457
1462
|
a.push(E.charAt(D >>> 6 * (3 - i) & 63));
|
|
1458
1463
|
var o = E.charAt(64);
|
|
1459
1464
|
if (o)
|
|
@@ -1493,23 +1498,23 @@ function i0() {
|
|
|
1493
1498
|
function B(C, x, n) {
|
|
1494
1499
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1495
1500
|
if (s % 4) {
|
|
1496
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1501
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | p;
|
|
1497
1502
|
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1498
1503
|
}
|
|
1499
|
-
return
|
|
1504
|
+
return h.create(E, a);
|
|
1500
1505
|
}
|
|
1501
1506
|
})(), t.enc.Base64;
|
|
1502
1507
|
});
|
|
1503
|
-
})(
|
|
1508
|
+
})($0)), $0.exports;
|
|
1504
1509
|
}
|
|
1505
|
-
var
|
|
1506
|
-
function
|
|
1507
|
-
return
|
|
1510
|
+
var R0 = { exports: {} }, Ft = R0.exports, Mr;
|
|
1511
|
+
function gt() {
|
|
1512
|
+
return Mr || (Mr = 1, (function(r, v) {
|
|
1508
1513
|
(function(t, e) {
|
|
1509
1514
|
r.exports = e(M());
|
|
1510
|
-
})(
|
|
1515
|
+
})(Ft, function(t) {
|
|
1511
1516
|
return (function() {
|
|
1512
|
-
var e = t,
|
|
1517
|
+
var e = t, u = e.lib, h = u.WordArray, m = e.enc;
|
|
1513
1518
|
m.Base64url = {
|
|
1514
1519
|
/**
|
|
1515
1520
|
* Converts a word array to a Base64url string.
|
|
@@ -1531,12 +1536,12 @@ function Ft() {
|
|
|
1531
1536
|
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1532
1537
|
C.clamp();
|
|
1533
1538
|
for (var s = [], f = 0; f < E; f += 3)
|
|
1534
|
-
for (var
|
|
1539
|
+
for (var p = n[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = n[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, D = n[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, i = p << 16 | l << 8 | D, o = 0; o < 4 && f + o * 0.75 < E; o++)
|
|
1535
1540
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1536
|
-
var
|
|
1537
|
-
if (
|
|
1541
|
+
var d = a.charAt(64);
|
|
1542
|
+
if (d)
|
|
1538
1543
|
for (; s.length % 4; )
|
|
1539
|
-
s.push(
|
|
1544
|
+
s.push(d);
|
|
1540
1545
|
return s.join("");
|
|
1541
1546
|
},
|
|
1542
1547
|
/**
|
|
@@ -1564,8 +1569,8 @@ function Ft() {
|
|
|
1564
1569
|
}
|
|
1565
1570
|
var f = E.charAt(64);
|
|
1566
1571
|
if (f) {
|
|
1567
|
-
var
|
|
1568
|
-
|
|
1572
|
+
var p = C.indexOf(f);
|
|
1573
|
+
p !== -1 && (n = p);
|
|
1569
1574
|
}
|
|
1570
1575
|
return B(C, n, a);
|
|
1571
1576
|
},
|
|
@@ -1575,26 +1580,26 @@ function Ft() {
|
|
|
1575
1580
|
function B(C, x, n) {
|
|
1576
1581
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1577
1582
|
if (s % 4) {
|
|
1578
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1583
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | p;
|
|
1579
1584
|
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1580
1585
|
}
|
|
1581
|
-
return
|
|
1586
|
+
return h.create(E, a);
|
|
1582
1587
|
}
|
|
1583
1588
|
})(), t.enc.Base64url;
|
|
1584
1589
|
});
|
|
1585
|
-
})(
|
|
1590
|
+
})(R0)), R0.exports;
|
|
1586
1591
|
}
|
|
1587
|
-
var
|
|
1592
|
+
var P0 = { exports: {} }, Dt = P0.exports, Nr;
|
|
1588
1593
|
function s0() {
|
|
1589
|
-
return
|
|
1594
|
+
return Nr || (Nr = 1, (function(r, v) {
|
|
1590
1595
|
(function(t, e) {
|
|
1591
1596
|
r.exports = e(M());
|
|
1592
|
-
})(
|
|
1597
|
+
})(Dt, function(t) {
|
|
1593
1598
|
return (function(e) {
|
|
1594
|
-
var
|
|
1599
|
+
var u = t, h = u.lib, m = h.WordArray, B = h.Hasher, C = u.algo, x = [];
|
|
1595
1600
|
(function() {
|
|
1596
|
-
for (var
|
|
1597
|
-
x[
|
|
1601
|
+
for (var p = 0; p < 64; p++)
|
|
1602
|
+
x[p] = e.abs(e.sin(p + 1)) * 4294967296 | 0;
|
|
1598
1603
|
})();
|
|
1599
1604
|
var n = C.MD5 = B.extend({
|
|
1600
1605
|
_doReset: function() {
|
|
@@ -1605,19 +1610,19 @@ function s0() {
|
|
|
1605
1610
|
271733878
|
|
1606
1611
|
]);
|
|
1607
1612
|
},
|
|
1608
|
-
_doProcessBlock: function(
|
|
1613
|
+
_doProcessBlock: function(p, l) {
|
|
1609
1614
|
for (var D = 0; D < 16; D++) {
|
|
1610
|
-
var i = l + D, o =
|
|
1611
|
-
|
|
1615
|
+
var i = l + D, o = p[i];
|
|
1616
|
+
p[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1612
1617
|
}
|
|
1613
|
-
var
|
|
1614
|
-
S = E(S, c, A, _, b, 7, x[0]), _ = E(_, S, c, A, g, 12, x[1]), A = E(A, _, S, c, y, 17, x[2]), c = E(c, A, _, S, k, 22, x[3]), S = E(S, c, A, _, R, 7, x[4]), _ = E(_, S, c, A, F, 12, x[5]), A = E(A, _, S, c, w, 17, x[6]), c = E(c, A, _, S, H, 22, x[7]), S = E(S, c, A, _, $, 7, x[8]), _ = E(_, S, c, A, z, 12, x[9]), A = E(A, _, S, c, O, 17, x[10]), c = E(c, A, _, S, q, 22, x[11]), S = E(S, c, A, _, U, 7, x[12]), _ = E(_, S, c, A, T, 12, x[13]), A = E(A, _, S, c, N, 17, x[14]), c = E(c, A, _, S, j, 22, x[15]), S = a(S, c, A, _, g, 5, x[16]), _ = a(_, S, c, A, w, 9, x[17]), A = a(A, _, S, c, q, 14, x[18]), c = a(c, A, _, S, b, 20, x[19]), S = a(S, c, A, _, F, 5, x[20]), _ = a(_, S, c, A, O, 9, x[21]), A = a(A, _, S, c, j, 14, x[22]), c = a(c, A, _, S, R, 20, x[23]), S = a(S, c, A, _, z, 5, x[24]), _ = a(_, S, c, A, N, 9, x[25]), A = a(A, _, S, c, k, 14, x[26]), c = a(c, A, _, S, $, 20, x[27]), S = a(S, c, A, _, T, 5, x[28]), _ = a(_, S, c, A, y, 9, x[29]), A = a(A, _, S, c, H, 14, x[30]), c = a(c, A, _, S, U, 20, x[31]), S = s(S, c, A, _, F, 4, x[32]), _ = s(_, S, c, A, $, 11, x[33]), A = s(A, _, S, c, q, 16, x[34]), c = s(c, A, _, S, N, 23, x[35]), S = s(S, c, A, _, g, 4, x[36]), _ = s(_, S, c, A, R, 11, x[37]), A = s(A, _, S, c, H, 16, x[38]), c = s(c, A, _, S, O, 23, x[39]), S = s(S, c, A, _, T, 4, x[40]), _ = s(_, S, c, A, b, 11, x[41]), A = s(A, _, S, c, k, 16, x[42]), c = s(c, A, _, S, w, 23, x[43]), S = s(S, c, A, _, z, 4, x[44]), _ = s(_, S, c, A, U, 11, x[45]), A = s(A, _, S, c, j, 16, x[46]), c = s(c, A, _, S, y, 23, x[47]), S = f(S, c, A, _, b, 6, x[48]), _ = f(_, S, c, A, H, 10, x[49]), A = f(A, _, S, c, N, 15, x[50]), c = f(c, A, _, S, F, 21, x[51]), S = f(S, c, A, _, U, 6, x[52]), _ = f(_, S, c, A, k, 10, x[53]), A = f(A, _, S, c, O, 15, x[54]), c = f(c, A, _, S, g, 21, x[55]), S = f(S, c, A, _, $, 6, x[56]), _ = f(_, S, c, A, j, 10, x[57]), A = f(A, _, S, c, w, 15, x[58]), c = f(c, A, _, S, T, 21, x[59]), S = f(S, c, A, _, R, 6, x[60]), _ = f(_, S, c, A, q, 10, x[61]), A = f(A, _, S, c, y, 15, x[62]), c = f(c, A, _, S, z, 21, x[63]),
|
|
1618
|
+
var d = this._hash.words, b = p[l + 0], g = p[l + 1], y = p[l + 2], k = p[l + 3], R = p[l + 4], F = p[l + 5], w = p[l + 6], H = p[l + 7], $ = p[l + 8], z = p[l + 9], O = p[l + 10], q = p[l + 11], U = p[l + 12], T = p[l + 13], N = p[l + 14], j = p[l + 15], S = d[0], c = d[1], A = d[2], _ = d[3];
|
|
1619
|
+
S = E(S, c, A, _, b, 7, x[0]), _ = E(_, S, c, A, g, 12, x[1]), A = E(A, _, S, c, y, 17, x[2]), c = E(c, A, _, S, k, 22, x[3]), S = E(S, c, A, _, R, 7, x[4]), _ = E(_, S, c, A, F, 12, x[5]), A = E(A, _, S, c, w, 17, x[6]), c = E(c, A, _, S, H, 22, x[7]), S = E(S, c, A, _, $, 7, x[8]), _ = E(_, S, c, A, z, 12, x[9]), A = E(A, _, S, c, O, 17, x[10]), c = E(c, A, _, S, q, 22, x[11]), S = E(S, c, A, _, U, 7, x[12]), _ = E(_, S, c, A, T, 12, x[13]), A = E(A, _, S, c, N, 17, x[14]), c = E(c, A, _, S, j, 22, x[15]), S = a(S, c, A, _, g, 5, x[16]), _ = a(_, S, c, A, w, 9, x[17]), A = a(A, _, S, c, q, 14, x[18]), c = a(c, A, _, S, b, 20, x[19]), S = a(S, c, A, _, F, 5, x[20]), _ = a(_, S, c, A, O, 9, x[21]), A = a(A, _, S, c, j, 14, x[22]), c = a(c, A, _, S, R, 20, x[23]), S = a(S, c, A, _, z, 5, x[24]), _ = a(_, S, c, A, N, 9, x[25]), A = a(A, _, S, c, k, 14, x[26]), c = a(c, A, _, S, $, 20, x[27]), S = a(S, c, A, _, T, 5, x[28]), _ = a(_, S, c, A, y, 9, x[29]), A = a(A, _, S, c, H, 14, x[30]), c = a(c, A, _, S, U, 20, x[31]), S = s(S, c, A, _, F, 4, x[32]), _ = s(_, S, c, A, $, 11, x[33]), A = s(A, _, S, c, q, 16, x[34]), c = s(c, A, _, S, N, 23, x[35]), S = s(S, c, A, _, g, 4, x[36]), _ = s(_, S, c, A, R, 11, x[37]), A = s(A, _, S, c, H, 16, x[38]), c = s(c, A, _, S, O, 23, x[39]), S = s(S, c, A, _, T, 4, x[40]), _ = s(_, S, c, A, b, 11, x[41]), A = s(A, _, S, c, k, 16, x[42]), c = s(c, A, _, S, w, 23, x[43]), S = s(S, c, A, _, z, 4, x[44]), _ = s(_, S, c, A, U, 11, x[45]), A = s(A, _, S, c, j, 16, x[46]), c = s(c, A, _, S, y, 23, x[47]), S = f(S, c, A, _, b, 6, x[48]), _ = f(_, S, c, A, H, 10, x[49]), A = f(A, _, S, c, N, 15, x[50]), c = f(c, A, _, S, F, 21, x[51]), S = f(S, c, A, _, U, 6, x[52]), _ = f(_, S, c, A, k, 10, x[53]), A = f(A, _, S, c, O, 15, x[54]), c = f(c, A, _, S, g, 21, x[55]), S = f(S, c, A, _, $, 6, x[56]), _ = f(_, S, c, A, j, 10, x[57]), A = f(A, _, S, c, w, 15, x[58]), c = f(c, A, _, S, T, 21, x[59]), S = f(S, c, A, _, R, 6, x[60]), _ = f(_, S, c, A, q, 10, x[61]), A = f(A, _, S, c, y, 15, x[62]), c = f(c, A, _, S, z, 21, x[63]), d[0] = d[0] + S | 0, d[1] = d[1] + c | 0, d[2] = d[2] + A | 0, d[3] = d[3] + _ | 0;
|
|
1615
1620
|
},
|
|
1616
1621
|
_doFinalize: function() {
|
|
1617
|
-
var
|
|
1622
|
+
var p = this._data, l = p.words, D = this._nDataBytes * 8, i = p.sigBytes * 8;
|
|
1618
1623
|
l[i >>> 5] |= 128 << 24 - i % 32;
|
|
1619
|
-
var o = e.floor(D / 4294967296),
|
|
1620
|
-
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (
|
|
1624
|
+
var o = e.floor(D / 4294967296), d = D;
|
|
1625
|
+
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360, p.sigBytes = (l.length + 1) * 4, this._process();
|
|
1621
1626
|
for (var b = this._hash, g = b.words, y = 0; y < 4; y++) {
|
|
1622
1627
|
var k = g[y];
|
|
1623
1628
|
g[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
@@ -1625,41 +1630,41 @@ function s0() {
|
|
|
1625
1630
|
return b;
|
|
1626
1631
|
},
|
|
1627
1632
|
clone: function() {
|
|
1628
|
-
var
|
|
1629
|
-
return
|
|
1633
|
+
var p = B.clone.call(this);
|
|
1634
|
+
return p._hash = this._hash.clone(), p;
|
|
1630
1635
|
}
|
|
1631
1636
|
});
|
|
1632
|
-
function E(
|
|
1633
|
-
var g =
|
|
1634
|
-
return (g <<
|
|
1637
|
+
function E(p, l, D, i, o, d, b) {
|
|
1638
|
+
var g = p + (l & D | ~l & i) + o + b;
|
|
1639
|
+
return (g << d | g >>> 32 - d) + l;
|
|
1635
1640
|
}
|
|
1636
|
-
function a(
|
|
1637
|
-
var g =
|
|
1638
|
-
return (g <<
|
|
1641
|
+
function a(p, l, D, i, o, d, b) {
|
|
1642
|
+
var g = p + (l & i | D & ~i) + o + b;
|
|
1643
|
+
return (g << d | g >>> 32 - d) + l;
|
|
1639
1644
|
}
|
|
1640
|
-
function s(
|
|
1641
|
-
var g =
|
|
1642
|
-
return (g <<
|
|
1645
|
+
function s(p, l, D, i, o, d, b) {
|
|
1646
|
+
var g = p + (l ^ D ^ i) + o + b;
|
|
1647
|
+
return (g << d | g >>> 32 - d) + l;
|
|
1643
1648
|
}
|
|
1644
|
-
function f(
|
|
1645
|
-
var g =
|
|
1646
|
-
return (g <<
|
|
1649
|
+
function f(p, l, D, i, o, d, b) {
|
|
1650
|
+
var g = p + (D ^ (l | ~i)) + o + b;
|
|
1651
|
+
return (g << d | g >>> 32 - d) + l;
|
|
1647
1652
|
}
|
|
1648
|
-
|
|
1653
|
+
u.MD5 = B._createHelper(n), u.HmacMD5 = B._createHmacHelper(n);
|
|
1649
1654
|
})(Math), t.MD5;
|
|
1650
1655
|
});
|
|
1651
|
-
})(
|
|
1656
|
+
})(P0)), P0.exports;
|
|
1652
1657
|
}
|
|
1653
|
-
var
|
|
1654
|
-
function
|
|
1655
|
-
return
|
|
1658
|
+
var z0 = { exports: {} }, bt = z0.exports, Ur;
|
|
1659
|
+
function ye() {
|
|
1660
|
+
return Ur || (Ur = 1, (function(r, v) {
|
|
1656
1661
|
(function(t, e) {
|
|
1657
1662
|
r.exports = e(M());
|
|
1658
|
-
})(
|
|
1663
|
+
})(bt, function(t) {
|
|
1659
1664
|
return (function() {
|
|
1660
|
-
var e = t,
|
|
1665
|
+
var e = t, u = e.lib, h = u.WordArray, m = u.Hasher, B = e.algo, C = [], x = B.SHA1 = m.extend({
|
|
1661
1666
|
_doReset: function() {
|
|
1662
|
-
this._hash = new
|
|
1667
|
+
this._hash = new h.init([
|
|
1663
1668
|
1732584193,
|
|
1664
1669
|
4023233417,
|
|
1665
1670
|
2562383102,
|
|
@@ -1668,17 +1673,17 @@ function _e() {
|
|
|
1668
1673
|
]);
|
|
1669
1674
|
},
|
|
1670
1675
|
_doProcessBlock: function(n, E) {
|
|
1671
|
-
for (var a = this._hash.words, s = a[0], f = a[1],
|
|
1676
|
+
for (var a = this._hash.words, s = a[0], f = a[1], p = a[2], l = a[3], D = a[4], i = 0; i < 80; i++) {
|
|
1672
1677
|
if (i < 16)
|
|
1673
1678
|
C[i] = n[E + i] | 0;
|
|
1674
1679
|
else {
|
|
1675
1680
|
var o = C[i - 3] ^ C[i - 8] ^ C[i - 14] ^ C[i - 16];
|
|
1676
1681
|
C[i] = o << 1 | o >>> 31;
|
|
1677
1682
|
}
|
|
1678
|
-
var
|
|
1679
|
-
i < 20 ?
|
|
1683
|
+
var d = (s << 5 | s >>> 27) + D + C[i];
|
|
1684
|
+
i < 20 ? d += (f & p | ~f & l) + 1518500249 : i < 40 ? d += (f ^ p ^ l) + 1859775393 : i < 60 ? d += (f & p | f & l | p & l) - 1894007588 : d += (f ^ p ^ l) - 899497514, D = l, l = p, p = f << 30 | f >>> 2, f = s, s = d;
|
|
1680
1685
|
}
|
|
1681
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] +
|
|
1686
|
+
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + p | 0, a[3] = a[3] + l | 0, a[4] = a[4] + D | 0;
|
|
1682
1687
|
},
|
|
1683
1688
|
_doFinalize: function() {
|
|
1684
1689
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
@@ -1692,16 +1697,16 @@ function _e() {
|
|
|
1692
1697
|
e.SHA1 = m._createHelper(x), e.HmacSHA1 = m._createHmacHelper(x);
|
|
1693
1698
|
})(), t.SHA1;
|
|
1694
1699
|
});
|
|
1695
|
-
})(
|
|
1700
|
+
})(z0)), z0.exports;
|
|
1696
1701
|
}
|
|
1697
|
-
var
|
|
1698
|
-
function
|
|
1699
|
-
return
|
|
1702
|
+
var W0 = { exports: {} }, mt = W0.exports, jr;
|
|
1703
|
+
function Er() {
|
|
1704
|
+
return jr || (jr = 1, (function(r, v) {
|
|
1700
1705
|
(function(t, e) {
|
|
1701
1706
|
r.exports = e(M());
|
|
1702
|
-
})(
|
|
1707
|
+
})(mt, function(t) {
|
|
1703
1708
|
return (function(e) {
|
|
1704
|
-
var
|
|
1709
|
+
var u = t, h = u.lib, m = h.WordArray, B = h.Hasher, C = u.algo, x = [], n = [];
|
|
1705
1710
|
(function() {
|
|
1706
1711
|
function s(D) {
|
|
1707
1712
|
for (var i = e.sqrt(D), o = 2; o <= i; o++)
|
|
@@ -1712,50 +1717,50 @@ function Cr() {
|
|
|
1712
1717
|
function f(D) {
|
|
1713
1718
|
return (D - (D | 0)) * 4294967296 | 0;
|
|
1714
1719
|
}
|
|
1715
|
-
for (var
|
|
1716
|
-
s(
|
|
1720
|
+
for (var p = 2, l = 0; l < 64; )
|
|
1721
|
+
s(p) && (l < 8 && (x[l] = f(e.pow(p, 1 / 2))), n[l] = f(e.pow(p, 1 / 3)), l++), p++;
|
|
1717
1722
|
})();
|
|
1718
1723
|
var E = [], a = C.SHA256 = B.extend({
|
|
1719
1724
|
_doReset: function() {
|
|
1720
1725
|
this._hash = new m.init(x.slice(0));
|
|
1721
1726
|
},
|
|
1722
1727
|
_doProcessBlock: function(s, f) {
|
|
1723
|
-
for (var
|
|
1728
|
+
for (var p = this._hash.words, l = p[0], D = p[1], i = p[2], o = p[3], d = p[4], b = p[5], g = p[6], y = p[7], k = 0; k < 64; k++) {
|
|
1724
1729
|
if (k < 16)
|
|
1725
1730
|
E[k] = s[f + k] | 0;
|
|
1726
1731
|
else {
|
|
1727
1732
|
var R = E[k - 15], F = (R << 25 | R >>> 7) ^ (R << 14 | R >>> 18) ^ R >>> 3, w = E[k - 2], H = (w << 15 | w >>> 17) ^ (w << 13 | w >>> 19) ^ w >>> 10;
|
|
1728
1733
|
E[k] = F + E[k - 7] + H + E[k - 16];
|
|
1729
1734
|
}
|
|
1730
|
-
var $ =
|
|
1731
|
-
y = g, g = b, b =
|
|
1735
|
+
var $ = d & b ^ ~d & g, z = l & D ^ l & i ^ D & i, O = (l << 30 | l >>> 2) ^ (l << 19 | l >>> 13) ^ (l << 10 | l >>> 22), q = (d << 26 | d >>> 6) ^ (d << 21 | d >>> 11) ^ (d << 7 | d >>> 25), U = y + q + $ + n[k] + E[k], T = O + z;
|
|
1736
|
+
y = g, g = b, b = d, d = o + U | 0, o = i, i = D, D = l, l = U + T | 0;
|
|
1732
1737
|
}
|
|
1733
|
-
|
|
1738
|
+
p[0] = p[0] + l | 0, p[1] = p[1] + D | 0, p[2] = p[2] + i | 0, p[3] = p[3] + o | 0, p[4] = p[4] + d | 0, p[5] = p[5] + b | 0, p[6] = p[6] + g | 0, p[7] = p[7] + y | 0;
|
|
1734
1739
|
},
|
|
1735
1740
|
_doFinalize: function() {
|
|
1736
|
-
var s = this._data, f = s.words,
|
|
1737
|
-
return f[l >>> 5] |= 128 << 24 - l % 32, f[(l + 64 >>> 9 << 4) + 14] = e.floor(
|
|
1741
|
+
var s = this._data, f = s.words, p = this._nDataBytes * 8, l = s.sigBytes * 8;
|
|
1742
|
+
return f[l >>> 5] |= 128 << 24 - l % 32, f[(l + 64 >>> 9 << 4) + 14] = e.floor(p / 4294967296), f[(l + 64 >>> 9 << 4) + 15] = p, s.sigBytes = f.length * 4, this._process(), this._hash;
|
|
1738
1743
|
},
|
|
1739
1744
|
clone: function() {
|
|
1740
1745
|
var s = B.clone.call(this);
|
|
1741
1746
|
return s._hash = this._hash.clone(), s;
|
|
1742
1747
|
}
|
|
1743
1748
|
});
|
|
1744
|
-
|
|
1749
|
+
u.SHA256 = B._createHelper(a), u.HmacSHA256 = B._createHmacHelper(a);
|
|
1745
1750
|
})(Math), t.SHA256;
|
|
1746
1751
|
});
|
|
1747
|
-
})(
|
|
1752
|
+
})(W0)), W0.exports;
|
|
1748
1753
|
}
|
|
1749
|
-
var
|
|
1750
|
-
function
|
|
1751
|
-
return
|
|
1752
|
-
(function(t, e,
|
|
1753
|
-
r.exports = e(M(),
|
|
1754
|
-
})(
|
|
1754
|
+
var I0 = { exports: {} }, _t = I0.exports, Gr;
|
|
1755
|
+
function yt() {
|
|
1756
|
+
return Gr || (Gr = 1, (function(r, v) {
|
|
1757
|
+
(function(t, e, u) {
|
|
1758
|
+
r.exports = e(M(), Er());
|
|
1759
|
+
})(_t, function(t) {
|
|
1755
1760
|
return (function() {
|
|
1756
|
-
var e = t,
|
|
1761
|
+
var e = t, u = e.lib, h = u.WordArray, m = e.algo, B = m.SHA256, C = m.SHA224 = B.extend({
|
|
1757
1762
|
_doReset: function() {
|
|
1758
|
-
this._hash = new
|
|
1763
|
+
this._hash = new h.init([
|
|
1759
1764
|
3238371032,
|
|
1760
1765
|
914150663,
|
|
1761
1766
|
812702999,
|
|
@@ -1774,16 +1779,16 @@ function _t() {
|
|
|
1774
1779
|
e.SHA224 = B._createHelper(C), e.HmacSHA224 = B._createHmacHelper(C);
|
|
1775
1780
|
})(), t.SHA224;
|
|
1776
1781
|
});
|
|
1777
|
-
})(
|
|
1782
|
+
})(I0)), I0.exports;
|
|
1778
1783
|
}
|
|
1779
|
-
var
|
|
1780
|
-
function
|
|
1781
|
-
return
|
|
1782
|
-
(function(t, e,
|
|
1783
|
-
r.exports = e(M(),
|
|
1784
|
-
})(
|
|
1784
|
+
var L0 = { exports: {} }, wt = L0.exports, Kr;
|
|
1785
|
+
function we() {
|
|
1786
|
+
return Kr || (Kr = 1, (function(r, v) {
|
|
1787
|
+
(function(t, e, u) {
|
|
1788
|
+
r.exports = e(M(), ur());
|
|
1789
|
+
})(wt, function(t) {
|
|
1785
1790
|
return (function() {
|
|
1786
|
-
var e = t,
|
|
1791
|
+
var e = t, u = e.lib, h = u.Hasher, m = e.x64, B = m.Word, C = m.WordArray, x = e.algo;
|
|
1787
1792
|
function n() {
|
|
1788
1793
|
return B.create.apply(B, arguments);
|
|
1789
1794
|
}
|
|
@@ -1873,7 +1878,7 @@ function ye() {
|
|
|
1873
1878
|
for (var f = 0; f < 80; f++)
|
|
1874
1879
|
a[f] = n();
|
|
1875
1880
|
})();
|
|
1876
|
-
var s = x.SHA512 =
|
|
1881
|
+
var s = x.SHA512 = h.extend({
|
|
1877
1882
|
_doReset: function() {
|
|
1878
1883
|
this._hash = new C.init([
|
|
1879
1884
|
new B.init(1779033703, 4089235720),
|
|
@@ -1886,55 +1891,55 @@ function ye() {
|
|
|
1886
1891
|
new B.init(1541459225, 327033209)
|
|
1887
1892
|
]);
|
|
1888
1893
|
},
|
|
1889
|
-
_doProcessBlock: function(f,
|
|
1890
|
-
for (var l = this._hash.words, D = l[0], i = l[1], o = l[2],
|
|
1891
|
-
var
|
|
1892
|
-
if (
|
|
1893
|
-
x0 =
|
|
1894
|
+
_doProcessBlock: function(f, p) {
|
|
1895
|
+
for (var l = this._hash.words, D = l[0], i = l[1], o = l[2], d = l[3], b = l[4], g = l[5], y = l[6], k = l[7], R = D.high, F = D.low, w = i.high, H = i.low, $ = o.high, z = o.low, O = d.high, q = d.low, U = b.high, T = b.low, N = g.high, j = g.low, S = y.high, c = y.low, A = k.high, _ = k.low, W = R, P = F, L = w, I = H, Z = $, Q = z, o0 = O, K = q, G = U, Y = T, e0 = N, c0 = j, D0 = S, v0 = c, dr = A, p0 = _, t0 = 0; t0 < 80; t0++) {
|
|
1896
|
+
var r0, x0, b0 = a[t0];
|
|
1897
|
+
if (t0 < 16)
|
|
1898
|
+
x0 = b0.high = f[p + t0 * 2] | 0, r0 = b0.low = f[p + t0 * 2 + 1] | 0;
|
|
1894
1899
|
else {
|
|
1895
|
-
var
|
|
1896
|
-
|
|
1900
|
+
var gr = a[t0 - 15], f0 = gr.high, B0 = gr.low, Re = (f0 >>> 1 | B0 << 31) ^ (f0 >>> 8 | B0 << 24) ^ f0 >>> 7, Dr = (B0 >>> 1 | f0 << 31) ^ (B0 >>> 8 | f0 << 24) ^ (B0 >>> 7 | f0 << 25), br = a[t0 - 2], u0 = br.high, C0 = br.low, Pe = (u0 >>> 19 | C0 << 13) ^ (u0 << 3 | C0 >>> 29) ^ u0 >>> 6, mr = (C0 >>> 19 | u0 << 13) ^ (C0 << 3 | u0 >>> 29) ^ (C0 >>> 6 | u0 << 26), _r = a[t0 - 7], ze = _r.high, We = _r.low, yr = a[t0 - 16], Ie = yr.high, wr = yr.low;
|
|
1901
|
+
r0 = Dr + We, x0 = Re + ze + (r0 >>> 0 < Dr >>> 0 ? 1 : 0), r0 = r0 + mr, x0 = x0 + Pe + (r0 >>> 0 < mr >>> 0 ? 1 : 0), r0 = r0 + wr, x0 = x0 + Ie + (r0 >>> 0 < wr >>> 0 ? 1 : 0), b0.high = x0, b0.low = r0;
|
|
1897
1902
|
}
|
|
1898
|
-
var
|
|
1899
|
-
|
|
1903
|
+
var Le = G & e0 ^ ~G & D0, kr = Y & c0 ^ ~Y & v0, Oe = W & L ^ W & Z ^ L & Z, qe = P & I ^ P & Q ^ I & Q, Te = (W >>> 28 | P << 4) ^ (W << 30 | P >>> 2) ^ (W << 25 | P >>> 7), Sr = (P >>> 28 | W << 4) ^ (P << 30 | W >>> 2) ^ (P << 25 | W >>> 7), Me = (G >>> 14 | Y << 18) ^ (G >>> 18 | Y << 14) ^ (G << 23 | Y >>> 9), Ne = (Y >>> 14 | G << 18) ^ (Y >>> 18 | G << 14) ^ (Y << 23 | G >>> 9), Hr = E[t0], Ue = Hr.high, $r = Hr.low, V = p0 + Ne, n0 = dr + Me + (V >>> 0 < p0 >>> 0 ? 1 : 0), V = V + kr, n0 = n0 + Le + (V >>> 0 < kr >>> 0 ? 1 : 0), V = V + $r, n0 = n0 + Ue + (V >>> 0 < $r >>> 0 ? 1 : 0), V = V + r0, n0 = n0 + x0 + (V >>> 0 < r0 >>> 0 ? 1 : 0), Rr = Sr + qe, je = Te + Oe + (Rr >>> 0 < Sr >>> 0 ? 1 : 0);
|
|
1904
|
+
dr = D0, p0 = v0, D0 = e0, v0 = c0, e0 = G, c0 = Y, Y = K + V | 0, G = o0 + n0 + (Y >>> 0 < K >>> 0 ? 1 : 0) | 0, o0 = Z, K = Q, Z = L, Q = I, L = W, I = P, P = V + Rr | 0, W = n0 + je + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1900
1905
|
}
|
|
1901
|
-
F = D.low = F + P, D.high = R + W + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + I, i.high = w + L + (H >>> 0 < I >>> 0 ? 1 : 0), z = o.low = z + Q, o.high = $ + Z + (z >>> 0 < Q >>> 0 ? 1 : 0), q =
|
|
1906
|
+
F = D.low = F + P, D.high = R + W + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + I, i.high = w + L + (H >>> 0 < I >>> 0 ? 1 : 0), z = o.low = z + Q, o.high = $ + Z + (z >>> 0 < Q >>> 0 ? 1 : 0), q = d.low = q + K, d.high = O + o0 + (q >>> 0 < K >>> 0 ? 1 : 0), T = b.low = T + Y, b.high = U + G + (T >>> 0 < Y >>> 0 ? 1 : 0), j = g.low = j + c0, g.high = N + e0 + (j >>> 0 < c0 >>> 0 ? 1 : 0), c = y.low = c + v0, y.high = S + D0 + (c >>> 0 < v0 >>> 0 ? 1 : 0), _ = k.low = _ + p0, k.high = A + dr + (_ >>> 0 < p0 >>> 0 ? 1 : 0);
|
|
1902
1907
|
},
|
|
1903
1908
|
_doFinalize: function() {
|
|
1904
|
-
var f = this._data,
|
|
1905
|
-
|
|
1909
|
+
var f = this._data, p = f.words, l = this._nDataBytes * 8, D = f.sigBytes * 8;
|
|
1910
|
+
p[D >>> 5] |= 128 << 24 - D % 32, p[(D + 128 >>> 10 << 5) + 30] = Math.floor(l / 4294967296), p[(D + 128 >>> 10 << 5) + 31] = l, f.sigBytes = p.length * 4, this._process();
|
|
1906
1911
|
var i = this._hash.toX32();
|
|
1907
1912
|
return i;
|
|
1908
1913
|
},
|
|
1909
1914
|
clone: function() {
|
|
1910
|
-
var f =
|
|
1915
|
+
var f = h.clone.call(this);
|
|
1911
1916
|
return f._hash = this._hash.clone(), f;
|
|
1912
1917
|
},
|
|
1913
1918
|
blockSize: 1024 / 32
|
|
1914
1919
|
});
|
|
1915
|
-
e.SHA512 =
|
|
1920
|
+
e.SHA512 = h._createHelper(s), e.HmacSHA512 = h._createHmacHelper(s);
|
|
1916
1921
|
})(), t.SHA512;
|
|
1917
1922
|
});
|
|
1918
|
-
})(
|
|
1923
|
+
})(L0)), L0.exports;
|
|
1919
1924
|
}
|
|
1920
|
-
var
|
|
1921
|
-
function
|
|
1922
|
-
return
|
|
1923
|
-
(function(t, e,
|
|
1924
|
-
r.exports = e(M(),
|
|
1925
|
-
})(
|
|
1925
|
+
var O0 = { exports: {} }, kt = O0.exports, Xr;
|
|
1926
|
+
function St() {
|
|
1927
|
+
return Xr || (Xr = 1, (function(r, v) {
|
|
1928
|
+
(function(t, e, u) {
|
|
1929
|
+
r.exports = e(M(), ur(), we());
|
|
1930
|
+
})(kt, function(t) {
|
|
1926
1931
|
return (function() {
|
|
1927
|
-
var e = t,
|
|
1932
|
+
var e = t, u = e.x64, h = u.Word, m = u.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1928
1933
|
_doReset: function() {
|
|
1929
1934
|
this._hash = new m.init([
|
|
1930
|
-
new
|
|
1931
|
-
new
|
|
1932
|
-
new
|
|
1933
|
-
new
|
|
1934
|
-
new
|
|
1935
|
-
new
|
|
1936
|
-
new
|
|
1937
|
-
new
|
|
1935
|
+
new h.init(3418070365, 3238371032),
|
|
1936
|
+
new h.init(1654270250, 914150663),
|
|
1937
|
+
new h.init(2438529370, 812702999),
|
|
1938
|
+
new h.init(355462360, 4144912697),
|
|
1939
|
+
new h.init(1731405415, 4290775857),
|
|
1940
|
+
new h.init(2394180231, 1750603025),
|
|
1941
|
+
new h.init(3675008525, 1694076839),
|
|
1942
|
+
new h.init(1203062813, 3204075428)
|
|
1938
1943
|
]);
|
|
1939
1944
|
},
|
|
1940
1945
|
_doFinalize: function() {
|
|
@@ -1945,21 +1950,21 @@ function kt() {
|
|
|
1945
1950
|
e.SHA384 = C._createHelper(x), e.HmacSHA384 = C._createHmacHelper(x);
|
|
1946
1951
|
})(), t.SHA384;
|
|
1947
1952
|
});
|
|
1948
|
-
})(
|
|
1953
|
+
})(O0)), O0.exports;
|
|
1949
1954
|
}
|
|
1950
|
-
var
|
|
1951
|
-
function
|
|
1952
|
-
return
|
|
1953
|
-
(function(t, e,
|
|
1954
|
-
r.exports = e(M(),
|
|
1955
|
-
})(
|
|
1955
|
+
var q0 = { exports: {} }, Ht = q0.exports, Yr;
|
|
1956
|
+
function $t() {
|
|
1957
|
+
return Yr || (Yr = 1, (function(r, v) {
|
|
1958
|
+
(function(t, e, u) {
|
|
1959
|
+
r.exports = e(M(), ur());
|
|
1960
|
+
})(Ht, function(t) {
|
|
1956
1961
|
return (function(e) {
|
|
1957
|
-
var
|
|
1962
|
+
var u = t, h = u.lib, m = h.WordArray, B = h.Hasher, C = u.x64, x = C.Word, n = u.algo, E = [], a = [], s = [];
|
|
1958
1963
|
(function() {
|
|
1959
1964
|
for (var l = 1, D = 0, i = 0; i < 24; i++) {
|
|
1960
1965
|
E[l + 5 * D] = (i + 1) * (i + 2) / 2 % 64;
|
|
1961
|
-
var o = D % 5,
|
|
1962
|
-
l = o, D =
|
|
1966
|
+
var o = D % 5, d = (2 * l + 3 * D) % 5;
|
|
1967
|
+
l = o, D = d;
|
|
1963
1968
|
}
|
|
1964
1969
|
for (var l = 0; l < 5; l++)
|
|
1965
1970
|
for (var D = 0; D < 5; D++)
|
|
@@ -1980,7 +1985,7 @@ function Ht() {
|
|
|
1980
1985
|
for (var l = 0; l < 25; l++)
|
|
1981
1986
|
f[l] = x.create();
|
|
1982
1987
|
})();
|
|
1983
|
-
var
|
|
1988
|
+
var p = n.SHA3 = B.extend({
|
|
1984
1989
|
/**
|
|
1985
1990
|
* Configuration options.
|
|
1986
1991
|
*
|
|
@@ -1998,10 +2003,10 @@ function Ht() {
|
|
|
1998
2003
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
1999
2004
|
},
|
|
2000
2005
|
_doProcessBlock: function(l, D) {
|
|
2001
|
-
for (var i = this._state, o = this.blockSize / 2,
|
|
2002
|
-
var b = l[D + 2 *
|
|
2006
|
+
for (var i = this._state, o = this.blockSize / 2, d = 0; d < o; d++) {
|
|
2007
|
+
var b = l[D + 2 * d], g = l[D + 2 * d + 1];
|
|
2003
2008
|
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, g = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360;
|
|
2004
|
-
var y = i[
|
|
2009
|
+
var y = i[d];
|
|
2005
2010
|
y.high ^= g, y.low ^= b;
|
|
2006
2011
|
}
|
|
2007
2012
|
for (var k = 0; k < 24; k++) {
|
|
@@ -2040,8 +2045,8 @@ function Ht() {
|
|
|
2040
2045
|
this._nDataBytes * 8;
|
|
2041
2046
|
var i = l.sigBytes * 8, o = this.blockSize * 32;
|
|
2042
2047
|
D[i >>> 5] |= 1 << 24 - i % 32, D[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128, l.sigBytes = D.length * 4, this._process();
|
|
2043
|
-
for (var
|
|
2044
|
-
var R =
|
|
2048
|
+
for (var d = this._state, b = this.cfg.outputLength / 8, g = b / 8, y = [], k = 0; k < g; k++) {
|
|
2049
|
+
var R = d[k], F = R.high, w = R.low;
|
|
2045
2050
|
F = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360, w = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, y.push(w), y.push(F);
|
|
2046
2051
|
}
|
|
2047
2052
|
return new m.init(y, b);
|
|
@@ -2052,19 +2057,19 @@ function Ht() {
|
|
|
2052
2057
|
return l;
|
|
2053
2058
|
}
|
|
2054
2059
|
});
|
|
2055
|
-
|
|
2060
|
+
u.SHA3 = B._createHelper(p), u.HmacSHA3 = B._createHmacHelper(p);
|
|
2056
2061
|
})(Math), t.SHA3;
|
|
2057
2062
|
});
|
|
2058
|
-
})(
|
|
2063
|
+
})(q0)), q0.exports;
|
|
2059
2064
|
}
|
|
2060
|
-
var
|
|
2061
|
-
function
|
|
2062
|
-
return
|
|
2065
|
+
var T0 = { exports: {} }, Rt = T0.exports, Zr;
|
|
2066
|
+
function Pt() {
|
|
2067
|
+
return Zr || (Zr = 1, (function(r, v) {
|
|
2063
2068
|
(function(t, e) {
|
|
2064
2069
|
r.exports = e(M());
|
|
2065
|
-
})(
|
|
2070
|
+
})(Rt, function(t) {
|
|
2066
2071
|
return (function(e) {
|
|
2067
|
-
var
|
|
2072
|
+
var u = t, h = u.lib, m = h.WordArray, B = h.Hasher, C = u.algo, x = m.create([
|
|
2068
2073
|
0,
|
|
2069
2074
|
1,
|
|
2070
2075
|
2,
|
|
@@ -2388,7 +2393,7 @@ function Rt() {
|
|
|
2388
2393
|
13,
|
|
2389
2394
|
11,
|
|
2390
2395
|
11
|
|
2391
|
-
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
|
|
2396
|
+
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), p = C.RIPEMD160 = B.extend({
|
|
2392
2397
|
_doReset: function() {
|
|
2393
2398
|
this._hash = m.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2394
2399
|
},
|
|
@@ -2400,7 +2405,7 @@ function Rt() {
|
|
|
2400
2405
|
var w = this._hash.words, H = s.words, $ = f.words, z = x.words, O = n.words, q = E.words, U = a.words, T, N, j, S, c, A, _, W, P, L;
|
|
2401
2406
|
A = T = w[0], _ = N = w[1], W = j = w[2], P = S = w[3], L = c = w[4];
|
|
2402
2407
|
for (var I, k = 0; k < 80; k += 1)
|
|
2403
|
-
I = T + g[y + z[k]] | 0, k < 16 ? I += l(N, j, S) + H[0] : k < 32 ? I += D(N, j, S) + H[1] : k < 48 ? I += i(N, j, S) + H[2] : k < 64 ? I += o(N, j, S) + H[3] : I +=
|
|
2408
|
+
I = T + g[y + z[k]] | 0, k < 16 ? I += l(N, j, S) + H[0] : k < 32 ? I += D(N, j, S) + H[1] : k < 48 ? I += i(N, j, S) + H[2] : k < 64 ? I += o(N, j, S) + H[3] : I += d(N, j, S) + H[4], I = I | 0, I = b(I, q[k]), I = I + c | 0, T = c, c = S, S = b(j, 10), j = N, N = I, I = A + g[y + O[k]] | 0, k < 16 ? I += d(_, W, P) + $[0] : k < 32 ? I += o(_, W, P) + $[1] : k < 48 ? I += i(_, W, P) + $[2] : k < 64 ? I += D(_, W, P) + $[3] : I += l(_, W, P) + $[4], I = I | 0, I = b(I, U[k]), I = I + L | 0, A = L, L = P, P = b(W, 10), W = _, _ = I;
|
|
2404
2409
|
I = w[1] + j + P | 0, w[1] = w[2] + S + L | 0, w[2] = w[3] + c + A | 0, w[3] = w[4] + T + _ | 0, w[4] = w[0] + N + W | 0, w[0] = I;
|
|
2405
2410
|
},
|
|
2406
2411
|
_doFinalize: function() {
|
|
@@ -2429,26 +2434,26 @@ function Rt() {
|
|
|
2429
2434
|
function o(g, y, k) {
|
|
2430
2435
|
return g & k | y & ~k;
|
|
2431
2436
|
}
|
|
2432
|
-
function
|
|
2437
|
+
function d(g, y, k) {
|
|
2433
2438
|
return g ^ (y | ~k);
|
|
2434
2439
|
}
|
|
2435
2440
|
function b(g, y) {
|
|
2436
2441
|
return g << y | g >>> 32 - y;
|
|
2437
2442
|
}
|
|
2438
|
-
|
|
2443
|
+
u.RIPEMD160 = B._createHelper(p), u.HmacRIPEMD160 = B._createHmacHelper(p);
|
|
2439
2444
|
})(), t.RIPEMD160;
|
|
2440
2445
|
});
|
|
2441
|
-
})(
|
|
2446
|
+
})(T0)), T0.exports;
|
|
2442
2447
|
}
|
|
2443
|
-
var
|
|
2444
|
-
function
|
|
2445
|
-
return
|
|
2448
|
+
var M0 = { exports: {} }, zt = M0.exports, Qr;
|
|
2449
|
+
function Ar() {
|
|
2450
|
+
return Qr || (Qr = 1, (function(r, v) {
|
|
2446
2451
|
(function(t, e) {
|
|
2447
2452
|
r.exports = e(M());
|
|
2448
|
-
})(
|
|
2453
|
+
})(zt, function(t) {
|
|
2449
2454
|
(function() {
|
|
2450
|
-
var e = t,
|
|
2451
|
-
C.HMAC =
|
|
2455
|
+
var e = t, u = e.lib, h = u.Base, m = e.enc, B = m.Utf8, C = e.algo;
|
|
2456
|
+
C.HMAC = h.extend({
|
|
2452
2457
|
/**
|
|
2453
2458
|
* Initializes a newly created HMAC.
|
|
2454
2459
|
*
|
|
@@ -2463,8 +2468,8 @@ function Er() {
|
|
|
2463
2468
|
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2464
2469
|
var E = x.blockSize, a = E * 4;
|
|
2465
2470
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2466
|
-
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(),
|
|
2467
|
-
|
|
2471
|
+
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), p = s.words, l = f.words, D = 0; D < E; D++)
|
|
2472
|
+
p[D] ^= 1549556828, l[D] ^= 909522486;
|
|
2468
2473
|
s.sigBytes = f.sigBytes = a, this.reset();
|
|
2469
2474
|
},
|
|
2470
2475
|
/**
|
|
@@ -2516,16 +2521,16 @@ function Er() {
|
|
|
2516
2521
|
});
|
|
2517
2522
|
})();
|
|
2518
2523
|
});
|
|
2519
|
-
})(
|
|
2524
|
+
})(M0)), M0.exports;
|
|
2520
2525
|
}
|
|
2521
|
-
var
|
|
2522
|
-
function
|
|
2523
|
-
return
|
|
2524
|
-
(function(t, e,
|
|
2525
|
-
r.exports = e(M(),
|
|
2526
|
-
})(
|
|
2526
|
+
var N0 = { exports: {} }, Wt = N0.exports, Vr;
|
|
2527
|
+
function It() {
|
|
2528
|
+
return Vr || (Vr = 1, (function(r, v) {
|
|
2529
|
+
(function(t, e, u) {
|
|
2530
|
+
r.exports = e(M(), Er(), Ar());
|
|
2531
|
+
})(Wt, function(t) {
|
|
2527
2532
|
return (function() {
|
|
2528
|
-
var e = t,
|
|
2533
|
+
var e = t, u = e.lib, h = u.Base, m = u.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = h.extend({
|
|
2529
2534
|
/**
|
|
2530
2535
|
* Configuration options.
|
|
2531
2536
|
*
|
|
@@ -2533,7 +2538,7 @@ function Wt() {
|
|
|
2533
2538
|
* @property {Hasher} hasher The hasher to use. Default: SHA256
|
|
2534
2539
|
* @property {number} iterations The number of iterations to perform. Default: 250000
|
|
2535
2540
|
*/
|
|
2536
|
-
cfg:
|
|
2541
|
+
cfg: h.extend({
|
|
2537
2542
|
keySize: 128 / 32,
|
|
2538
2543
|
hasher: C,
|
|
2539
2544
|
iterations: 25e4
|
|
@@ -2565,17 +2570,17 @@ function Wt() {
|
|
|
2565
2570
|
* var key = kdf.compute(password, salt);
|
|
2566
2571
|
*/
|
|
2567
2572
|
compute: function(E, a) {
|
|
2568
|
-
for (var s = this.cfg, f = x.create(s.hasher, E),
|
|
2573
|
+
for (var s = this.cfg, f = x.create(s.hasher, E), p = m.create(), l = m.create([1]), D = p.words, i = l.words, o = s.keySize, d = s.iterations; D.length < o; ) {
|
|
2569
2574
|
var b = f.update(a).finalize(l);
|
|
2570
2575
|
f.reset();
|
|
2571
|
-
for (var g = b.words, y = g.length, k = b, R = 1; R <
|
|
2576
|
+
for (var g = b.words, y = g.length, k = b, R = 1; R < d; R++) {
|
|
2572
2577
|
k = f.finalize(k), f.reset();
|
|
2573
2578
|
for (var F = k.words, w = 0; w < y; w++)
|
|
2574
2579
|
g[w] ^= F[w];
|
|
2575
2580
|
}
|
|
2576
|
-
|
|
2581
|
+
p.concat(b), i[0]++;
|
|
2577
2582
|
}
|
|
2578
|
-
return
|
|
2583
|
+
return p.sigBytes = o * 4, p;
|
|
2579
2584
|
}
|
|
2580
2585
|
});
|
|
2581
2586
|
e.PBKDF2 = function(E, a, s) {
|
|
@@ -2583,16 +2588,16 @@ function Wt() {
|
|
|
2583
2588
|
};
|
|
2584
2589
|
})(), t.PBKDF2;
|
|
2585
2590
|
});
|
|
2586
|
-
})(
|
|
2591
|
+
})(N0)), N0.exports;
|
|
2587
2592
|
}
|
|
2588
|
-
var
|
|
2593
|
+
var U0 = { exports: {} }, Lt = U0.exports, Jr;
|
|
2589
2594
|
function a0() {
|
|
2590
|
-
return
|
|
2591
|
-
(function(t, e,
|
|
2592
|
-
r.exports = e(M(),
|
|
2593
|
-
})(
|
|
2595
|
+
return Jr || (Jr = 1, (function(r, v) {
|
|
2596
|
+
(function(t, e, u) {
|
|
2597
|
+
r.exports = e(M(), ye(), Ar());
|
|
2598
|
+
})(Lt, function(t) {
|
|
2594
2599
|
return (function() {
|
|
2595
|
-
var e = t,
|
|
2600
|
+
var e = t, u = e.lib, h = u.Base, m = u.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = h.extend({
|
|
2596
2601
|
/**
|
|
2597
2602
|
* Configuration options.
|
|
2598
2603
|
*
|
|
@@ -2600,7 +2605,7 @@ function a0() {
|
|
|
2600
2605
|
* @property {Hasher} hasher The hash algorithm to use. Default: MD5
|
|
2601
2606
|
* @property {number} iterations The number of iterations to perform. Default: 1
|
|
2602
2607
|
*/
|
|
2603
|
-
cfg:
|
|
2608
|
+
cfg: h.extend({
|
|
2604
2609
|
keySize: 128 / 32,
|
|
2605
2610
|
hasher: C,
|
|
2606
2611
|
iterations: 1
|
|
@@ -2632,13 +2637,13 @@ function a0() {
|
|
|
2632
2637
|
* var key = kdf.compute(password, salt);
|
|
2633
2638
|
*/
|
|
2634
2639
|
compute: function(n, E) {
|
|
2635
|
-
for (var a, s = this.cfg, f = s.hasher.create(),
|
|
2640
|
+
for (var a, s = this.cfg, f = s.hasher.create(), p = m.create(), l = p.words, D = s.keySize, i = s.iterations; l.length < D; ) {
|
|
2636
2641
|
a && f.update(a), a = f.update(n).finalize(E), f.reset();
|
|
2637
2642
|
for (var o = 1; o < i; o++)
|
|
2638
2643
|
a = f.finalize(a), f.reset();
|
|
2639
|
-
|
|
2644
|
+
p.concat(a);
|
|
2640
2645
|
}
|
|
2641
|
-
return
|
|
2646
|
+
return p.sigBytes = D * 4, p;
|
|
2642
2647
|
}
|
|
2643
2648
|
});
|
|
2644
2649
|
e.EvpKDF = function(n, E, a) {
|
|
@@ -2646,18 +2651,18 @@ function a0() {
|
|
|
2646
2651
|
};
|
|
2647
2652
|
})(), t.EvpKDF;
|
|
2648
2653
|
});
|
|
2649
|
-
})(
|
|
2654
|
+
})(U0)), U0.exports;
|
|
2650
2655
|
}
|
|
2651
|
-
var
|
|
2656
|
+
var j0 = { exports: {} }, Ot = j0.exports, re;
|
|
2652
2657
|
function X() {
|
|
2653
|
-
return
|
|
2654
|
-
(function(t, e,
|
|
2658
|
+
return re || (re = 1, (function(r, v) {
|
|
2659
|
+
(function(t, e, u) {
|
|
2655
2660
|
r.exports = e(M(), a0());
|
|
2656
|
-
})(
|
|
2661
|
+
})(Ot, function(t) {
|
|
2657
2662
|
t.lib.Cipher || (function(e) {
|
|
2658
|
-
var
|
|
2663
|
+
var u = t, h = u.lib, m = h.Base, B = h.WordArray, C = h.BufferedBlockAlgorithm, x = u.enc;
|
|
2659
2664
|
x.Utf8;
|
|
2660
|
-
var n = x.Base64, E =
|
|
2665
|
+
var n = x.Base64, E = u.algo, a = E.EvpKDF, s = h.Cipher = C.extend({
|
|
2661
2666
|
/**
|
|
2662
2667
|
* Configuration options.
|
|
2663
2668
|
*
|
|
@@ -2789,14 +2794,14 @@ function X() {
|
|
|
2789
2794
|
};
|
|
2790
2795
|
})()
|
|
2791
2796
|
});
|
|
2792
|
-
|
|
2797
|
+
h.StreamCipher = s.extend({
|
|
2793
2798
|
_doFinalize: function() {
|
|
2794
2799
|
var F = this._process(!0);
|
|
2795
2800
|
return F;
|
|
2796
2801
|
},
|
|
2797
2802
|
blockSize: 1
|
|
2798
2803
|
});
|
|
2799
|
-
var f =
|
|
2804
|
+
var f = u.mode = {}, p = h.BlockCipherMode = m.extend({
|
|
2800
2805
|
/**
|
|
2801
2806
|
* Creates this mode for encryption.
|
|
2802
2807
|
*
|
|
@@ -2841,7 +2846,7 @@ function X() {
|
|
|
2841
2846
|
this._cipher = F, this._iv = w;
|
|
2842
2847
|
}
|
|
2843
2848
|
}), l = f.CBC = (function() {
|
|
2844
|
-
var F =
|
|
2849
|
+
var F = p.extend();
|
|
2845
2850
|
F.Encryptor = F.extend({
|
|
2846
2851
|
/**
|
|
2847
2852
|
* Processes the data block at offset.
|
|
@@ -2880,7 +2885,7 @@ function X() {
|
|
|
2880
2885
|
H[$ + U] ^= O[U];
|
|
2881
2886
|
}
|
|
2882
2887
|
return F;
|
|
2883
|
-
})(), D =
|
|
2888
|
+
})(), D = u.pad = {}, i = D.Pkcs7 = {
|
|
2884
2889
|
/**
|
|
2885
2890
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2886
2891
|
*
|
|
@@ -2915,7 +2920,7 @@ function X() {
|
|
|
2915
2920
|
F.sigBytes -= w;
|
|
2916
2921
|
}
|
|
2917
2922
|
};
|
|
2918
|
-
|
|
2923
|
+
h.BlockCipher = s.extend({
|
|
2919
2924
|
/**
|
|
2920
2925
|
* Configuration options.
|
|
2921
2926
|
*
|
|
@@ -2941,7 +2946,7 @@ function X() {
|
|
|
2941
2946
|
},
|
|
2942
2947
|
blockSize: 128 / 32
|
|
2943
2948
|
});
|
|
2944
|
-
var o =
|
|
2949
|
+
var o = h.CipherParams = m.extend({
|
|
2945
2950
|
/**
|
|
2946
2951
|
* Initializes a newly created cipher params object.
|
|
2947
2952
|
*
|
|
@@ -2982,7 +2987,7 @@ function X() {
|
|
|
2982
2987
|
toString: function(F) {
|
|
2983
2988
|
return (F || this.formatter).stringify(this);
|
|
2984
2989
|
}
|
|
2985
|
-
}),
|
|
2990
|
+
}), d = u.format = {}, b = d.OpenSSL = {
|
|
2986
2991
|
/**
|
|
2987
2992
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
2988
2993
|
*
|
|
@@ -3017,7 +3022,7 @@ function X() {
|
|
|
3017
3022
|
var w, H = n.parse(F), $ = H.words;
|
|
3018
3023
|
return $[0] == 1398893684 && $[1] == 1701076831 && (w = B.create($.slice(2, 4)), $.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3019
3024
|
}
|
|
3020
|
-
}, g =
|
|
3025
|
+
}, g = h.SerializableCipher = m.extend({
|
|
3021
3026
|
/**
|
|
3022
3027
|
* Configuration options.
|
|
3023
3028
|
*
|
|
@@ -3098,7 +3103,7 @@ function X() {
|
|
|
3098
3103
|
_parse: function(F, w) {
|
|
3099
3104
|
return typeof F == "string" ? w.parse(F, this) : F;
|
|
3100
3105
|
}
|
|
3101
|
-
}), y =
|
|
3106
|
+
}), y = u.kdf = {}, k = y.OpenSSL = {
|
|
3102
3107
|
/**
|
|
3103
3108
|
* Derives a key and IV from a password.
|
|
3104
3109
|
*
|
|
@@ -3124,7 +3129,7 @@ function X() {
|
|
|
3124
3129
|
var q = B.create(O.words.slice(w), H * 4);
|
|
3125
3130
|
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt: $ });
|
|
3126
3131
|
}
|
|
3127
|
-
}, R =
|
|
3132
|
+
}, R = h.PasswordBasedCipher = g.extend({
|
|
3128
3133
|
/**
|
|
3129
3134
|
* Configuration options.
|
|
3130
3135
|
*
|
|
@@ -3184,69 +3189,69 @@ function X() {
|
|
|
3184
3189
|
});
|
|
3185
3190
|
})();
|
|
3186
3191
|
});
|
|
3187
|
-
})(
|
|
3192
|
+
})(j0)), j0.exports;
|
|
3188
3193
|
}
|
|
3189
|
-
var
|
|
3190
|
-
function
|
|
3191
|
-
return
|
|
3192
|
-
(function(t, e,
|
|
3194
|
+
var G0 = { exports: {} }, qt = G0.exports, ee;
|
|
3195
|
+
function Tt() {
|
|
3196
|
+
return ee || (ee = 1, (function(r, v) {
|
|
3197
|
+
(function(t, e, u) {
|
|
3193
3198
|
r.exports = e(M(), X());
|
|
3194
|
-
})(
|
|
3199
|
+
})(qt, function(t) {
|
|
3195
3200
|
return t.mode.CFB = (function() {
|
|
3196
3201
|
var e = t.lib.BlockCipherMode.extend();
|
|
3197
3202
|
e.Encryptor = e.extend({
|
|
3198
|
-
processBlock: function(
|
|
3203
|
+
processBlock: function(h, m) {
|
|
3199
3204
|
var B = this._cipher, C = B.blockSize;
|
|
3200
|
-
|
|
3205
|
+
u.call(this, h, m, C, B), this._prevBlock = h.slice(m, m + C);
|
|
3201
3206
|
}
|
|
3202
3207
|
}), e.Decryptor = e.extend({
|
|
3203
|
-
processBlock: function(
|
|
3204
|
-
var B = this._cipher, C = B.blockSize, x =
|
|
3205
|
-
|
|
3208
|
+
processBlock: function(h, m) {
|
|
3209
|
+
var B = this._cipher, C = B.blockSize, x = h.slice(m, m + C);
|
|
3210
|
+
u.call(this, h, m, C, B), this._prevBlock = x;
|
|
3206
3211
|
}
|
|
3207
3212
|
});
|
|
3208
|
-
function
|
|
3213
|
+
function u(h, m, B, C) {
|
|
3209
3214
|
var x, n = this._iv;
|
|
3210
3215
|
n ? (x = n.slice(0), this._iv = void 0) : x = this._prevBlock, C.encryptBlock(x, 0);
|
|
3211
3216
|
for (var E = 0; E < B; E++)
|
|
3212
|
-
|
|
3217
|
+
h[m + E] ^= x[E];
|
|
3213
3218
|
}
|
|
3214
3219
|
return e;
|
|
3215
3220
|
})(), t.mode.CFB;
|
|
3216
3221
|
});
|
|
3217
|
-
})(
|
|
3222
|
+
})(G0)), G0.exports;
|
|
3218
3223
|
}
|
|
3219
|
-
var
|
|
3220
|
-
function
|
|
3221
|
-
return
|
|
3222
|
-
(function(t, e,
|
|
3224
|
+
var K0 = { exports: {} }, Mt = K0.exports, te;
|
|
3225
|
+
function Nt() {
|
|
3226
|
+
return te || (te = 1, (function(r, v) {
|
|
3227
|
+
(function(t, e, u) {
|
|
3223
3228
|
r.exports = e(M(), X());
|
|
3224
|
-
})(
|
|
3229
|
+
})(Mt, function(t) {
|
|
3225
3230
|
return t.mode.CTR = (function() {
|
|
3226
|
-
var e = t.lib.BlockCipherMode.extend(),
|
|
3227
|
-
processBlock: function(
|
|
3231
|
+
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3232
|
+
processBlock: function(h, m) {
|
|
3228
3233
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._counter;
|
|
3229
3234
|
x && (n = this._counter = x.slice(0), this._iv = void 0);
|
|
3230
3235
|
var E = n.slice(0);
|
|
3231
3236
|
B.encryptBlock(E, 0), n[C - 1] = n[C - 1] + 1 | 0;
|
|
3232
3237
|
for (var a = 0; a < C; a++)
|
|
3233
|
-
|
|
3238
|
+
h[m + a] ^= E[a];
|
|
3234
3239
|
}
|
|
3235
3240
|
});
|
|
3236
|
-
return e.Decryptor =
|
|
3241
|
+
return e.Decryptor = u, e;
|
|
3237
3242
|
})(), t.mode.CTR;
|
|
3238
3243
|
});
|
|
3239
|
-
})(
|
|
3244
|
+
})(K0)), K0.exports;
|
|
3240
3245
|
}
|
|
3241
|
-
var
|
|
3242
|
-
function
|
|
3243
|
-
return
|
|
3244
|
-
(function(t, e,
|
|
3246
|
+
var X0 = { exports: {} }, Ut = X0.exports, xe;
|
|
3247
|
+
function jt() {
|
|
3248
|
+
return xe || (xe = 1, (function(r, v) {
|
|
3249
|
+
(function(t, e, u) {
|
|
3245
3250
|
r.exports = e(M(), X());
|
|
3246
|
-
})(
|
|
3251
|
+
})(Ut, function(t) {
|
|
3247
3252
|
return t.mode.CTRGladman = (function() {
|
|
3248
3253
|
var e = t.lib.BlockCipherMode.extend();
|
|
3249
|
-
function
|
|
3254
|
+
function u(B) {
|
|
3250
3255
|
if ((B >> 24 & 255) === 255) {
|
|
3251
3256
|
var C = B >> 16 & 255, x = B >> 8 & 255, n = B & 255;
|
|
3252
3257
|
C === 255 ? (C = 0, x === 255 ? (x = 0, n === 255 ? n = 0 : ++n) : ++x) : ++C, B = 0, B += C << 16, B += x << 8, B += n;
|
|
@@ -3254,13 +3259,13 @@ function Ut() {
|
|
|
3254
3259
|
B += 1 << 24;
|
|
3255
3260
|
return B;
|
|
3256
3261
|
}
|
|
3257
|
-
function
|
|
3258
|
-
return (B[0] =
|
|
3262
|
+
function h(B) {
|
|
3263
|
+
return (B[0] = u(B[0])) === 0 && (B[1] = u(B[1])), B;
|
|
3259
3264
|
}
|
|
3260
3265
|
var m = e.Encryptor = e.extend({
|
|
3261
3266
|
processBlock: function(B, C) {
|
|
3262
3267
|
var x = this._cipher, n = x.blockSize, E = this._iv, a = this._counter;
|
|
3263
|
-
E && (a = this._counter = E.slice(0), this._iv = void 0),
|
|
3268
|
+
E && (a = this._counter = E.slice(0), this._iv = void 0), h(a);
|
|
3264
3269
|
var s = a.slice(0);
|
|
3265
3270
|
x.encryptBlock(s, 0);
|
|
3266
3271
|
for (var f = 0; f < n; f++)
|
|
@@ -3270,132 +3275,132 @@ function Ut() {
|
|
|
3270
3275
|
return e.Decryptor = m, e;
|
|
3271
3276
|
})(), t.mode.CTRGladman;
|
|
3272
3277
|
});
|
|
3273
|
-
})(
|
|
3278
|
+
})(X0)), X0.exports;
|
|
3274
3279
|
}
|
|
3275
|
-
var
|
|
3276
|
-
function
|
|
3277
|
-
return
|
|
3278
|
-
(function(t, e,
|
|
3280
|
+
var Y0 = { exports: {} }, Gt = Y0.exports, ne;
|
|
3281
|
+
function Kt() {
|
|
3282
|
+
return ne || (ne = 1, (function(r, v) {
|
|
3283
|
+
(function(t, e, u) {
|
|
3279
3284
|
r.exports = e(M(), X());
|
|
3280
|
-
})(
|
|
3285
|
+
})(Gt, function(t) {
|
|
3281
3286
|
return t.mode.OFB = (function() {
|
|
3282
|
-
var e = t.lib.BlockCipherMode.extend(),
|
|
3283
|
-
processBlock: function(
|
|
3287
|
+
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3288
|
+
processBlock: function(h, m) {
|
|
3284
3289
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._keystream;
|
|
3285
3290
|
x && (n = this._keystream = x.slice(0), this._iv = void 0), B.encryptBlock(n, 0);
|
|
3286
3291
|
for (var E = 0; E < C; E++)
|
|
3287
|
-
|
|
3292
|
+
h[m + E] ^= n[E];
|
|
3288
3293
|
}
|
|
3289
3294
|
});
|
|
3290
|
-
return e.Decryptor =
|
|
3295
|
+
return e.Decryptor = u, e;
|
|
3291
3296
|
})(), t.mode.OFB;
|
|
3292
3297
|
});
|
|
3293
|
-
})(
|
|
3298
|
+
})(Y0)), Y0.exports;
|
|
3294
3299
|
}
|
|
3295
|
-
var
|
|
3296
|
-
function
|
|
3297
|
-
return
|
|
3298
|
-
(function(t, e,
|
|
3300
|
+
var Z0 = { exports: {} }, Xt = Z0.exports, ae;
|
|
3301
|
+
function Yt() {
|
|
3302
|
+
return ae || (ae = 1, (function(r, v) {
|
|
3303
|
+
(function(t, e, u) {
|
|
3299
3304
|
r.exports = e(M(), X());
|
|
3300
|
-
})(
|
|
3305
|
+
})(Xt, function(t) {
|
|
3301
3306
|
return t.mode.ECB = (function() {
|
|
3302
3307
|
var e = t.lib.BlockCipherMode.extend();
|
|
3303
3308
|
return e.Encryptor = e.extend({
|
|
3304
|
-
processBlock: function(
|
|
3305
|
-
this._cipher.encryptBlock(
|
|
3309
|
+
processBlock: function(u, h) {
|
|
3310
|
+
this._cipher.encryptBlock(u, h);
|
|
3306
3311
|
}
|
|
3307
3312
|
}), e.Decryptor = e.extend({
|
|
3308
|
-
processBlock: function(
|
|
3309
|
-
this._cipher.decryptBlock(
|
|
3313
|
+
processBlock: function(u, h) {
|
|
3314
|
+
this._cipher.decryptBlock(u, h);
|
|
3310
3315
|
}
|
|
3311
3316
|
}), e;
|
|
3312
3317
|
})(), t.mode.ECB;
|
|
3313
3318
|
});
|
|
3314
|
-
})(
|
|
3319
|
+
})(Z0)), Z0.exports;
|
|
3315
3320
|
}
|
|
3316
|
-
var
|
|
3317
|
-
function
|
|
3318
|
-
return
|
|
3319
|
-
(function(t, e,
|
|
3321
|
+
var Q0 = { exports: {} }, Zt = Q0.exports, oe;
|
|
3322
|
+
function Qt() {
|
|
3323
|
+
return oe || (oe = 1, (function(r, v) {
|
|
3324
|
+
(function(t, e, u) {
|
|
3320
3325
|
r.exports = e(M(), X());
|
|
3321
|
-
})(
|
|
3326
|
+
})(Zt, function(t) {
|
|
3322
3327
|
return t.pad.AnsiX923 = {
|
|
3323
|
-
pad: function(e,
|
|
3324
|
-
var
|
|
3328
|
+
pad: function(e, u) {
|
|
3329
|
+
var h = e.sigBytes, m = u * 4, B = m - h % m, C = h + B - 1;
|
|
3325
3330
|
e.clamp(), e.words[C >>> 2] |= B << 24 - C % 4 * 8, e.sigBytes += B;
|
|
3326
3331
|
},
|
|
3327
3332
|
unpad: function(e) {
|
|
3328
|
-
var
|
|
3329
|
-
e.sigBytes -=
|
|
3333
|
+
var u = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3334
|
+
e.sigBytes -= u;
|
|
3330
3335
|
}
|
|
3331
3336
|
}, t.pad.Ansix923;
|
|
3332
3337
|
});
|
|
3333
|
-
})(
|
|
3338
|
+
})(Q0)), Q0.exports;
|
|
3334
3339
|
}
|
|
3335
|
-
var
|
|
3336
|
-
function
|
|
3337
|
-
return
|
|
3338
|
-
(function(t, e,
|
|
3340
|
+
var V0 = { exports: {} }, Vt = V0.exports, ie;
|
|
3341
|
+
function Jt() {
|
|
3342
|
+
return ie || (ie = 1, (function(r, v) {
|
|
3343
|
+
(function(t, e, u) {
|
|
3339
3344
|
r.exports = e(M(), X());
|
|
3340
|
-
})(
|
|
3345
|
+
})(Vt, function(t) {
|
|
3341
3346
|
return t.pad.Iso10126 = {
|
|
3342
|
-
pad: function(e,
|
|
3343
|
-
var
|
|
3347
|
+
pad: function(e, u) {
|
|
3348
|
+
var h = u * 4, m = h - e.sigBytes % h;
|
|
3344
3349
|
e.concat(t.lib.WordArray.random(m - 1)).concat(t.lib.WordArray.create([m << 24], 1));
|
|
3345
3350
|
},
|
|
3346
3351
|
unpad: function(e) {
|
|
3347
|
-
var
|
|
3348
|
-
e.sigBytes -=
|
|
3352
|
+
var u = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3353
|
+
e.sigBytes -= u;
|
|
3349
3354
|
}
|
|
3350
3355
|
}, t.pad.Iso10126;
|
|
3351
3356
|
});
|
|
3352
|
-
})(
|
|
3357
|
+
})(V0)), V0.exports;
|
|
3353
3358
|
}
|
|
3354
|
-
var
|
|
3355
|
-
function
|
|
3356
|
-
return
|
|
3357
|
-
(function(t, e,
|
|
3359
|
+
var J0 = { exports: {} }, rx = J0.exports, se;
|
|
3360
|
+
function ex() {
|
|
3361
|
+
return se || (se = 1, (function(r, v) {
|
|
3362
|
+
(function(t, e, u) {
|
|
3358
3363
|
r.exports = e(M(), X());
|
|
3359
|
-
})(
|
|
3364
|
+
})(rx, function(t) {
|
|
3360
3365
|
return t.pad.Iso97971 = {
|
|
3361
|
-
pad: function(e,
|
|
3362
|
-
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e,
|
|
3366
|
+
pad: function(e, u) {
|
|
3367
|
+
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, u);
|
|
3363
3368
|
},
|
|
3364
3369
|
unpad: function(e) {
|
|
3365
3370
|
t.pad.ZeroPadding.unpad(e), e.sigBytes--;
|
|
3366
3371
|
}
|
|
3367
3372
|
}, t.pad.Iso97971;
|
|
3368
3373
|
});
|
|
3369
|
-
})(
|
|
3374
|
+
})(J0)), J0.exports;
|
|
3370
3375
|
}
|
|
3371
|
-
var
|
|
3372
|
-
function
|
|
3373
|
-
return
|
|
3374
|
-
(function(t, e,
|
|
3376
|
+
var rr = { exports: {} }, tx = rr.exports, ce;
|
|
3377
|
+
function xx() {
|
|
3378
|
+
return ce || (ce = 1, (function(r, v) {
|
|
3379
|
+
(function(t, e, u) {
|
|
3375
3380
|
r.exports = e(M(), X());
|
|
3376
|
-
})(
|
|
3381
|
+
})(tx, function(t) {
|
|
3377
3382
|
return t.pad.ZeroPadding = {
|
|
3378
|
-
pad: function(e,
|
|
3379
|
-
var
|
|
3380
|
-
e.clamp(), e.sigBytes +=
|
|
3383
|
+
pad: function(e, u) {
|
|
3384
|
+
var h = u * 4;
|
|
3385
|
+
e.clamp(), e.sigBytes += h - (e.sigBytes % h || h);
|
|
3381
3386
|
},
|
|
3382
3387
|
unpad: function(e) {
|
|
3383
|
-
for (var
|
|
3384
|
-
if (
|
|
3385
|
-
e.sigBytes =
|
|
3388
|
+
for (var u = e.words, h = e.sigBytes - 1, h = e.sigBytes - 1; h >= 0; h--)
|
|
3389
|
+
if (u[h >>> 2] >>> 24 - h % 4 * 8 & 255) {
|
|
3390
|
+
e.sigBytes = h + 1;
|
|
3386
3391
|
break;
|
|
3387
3392
|
}
|
|
3388
3393
|
}
|
|
3389
3394
|
}, t.pad.ZeroPadding;
|
|
3390
3395
|
});
|
|
3391
|
-
})(
|
|
3396
|
+
})(rr)), rr.exports;
|
|
3392
3397
|
}
|
|
3393
|
-
var
|
|
3394
|
-
function
|
|
3395
|
-
return
|
|
3396
|
-
(function(t, e,
|
|
3398
|
+
var er = { exports: {} }, nx = er.exports, fe;
|
|
3399
|
+
function ax() {
|
|
3400
|
+
return fe || (fe = 1, (function(r, v) {
|
|
3401
|
+
(function(t, e, u) {
|
|
3397
3402
|
r.exports = e(M(), X());
|
|
3398
|
-
})(
|
|
3403
|
+
})(nx, function(t) {
|
|
3399
3404
|
return t.pad.NoPadding = {
|
|
3400
3405
|
pad: function() {
|
|
3401
3406
|
},
|
|
@@ -3403,16 +3408,16 @@ function nx() {
|
|
|
3403
3408
|
}
|
|
3404
3409
|
}, t.pad.NoPadding;
|
|
3405
3410
|
});
|
|
3406
|
-
})(
|
|
3411
|
+
})(er)), er.exports;
|
|
3407
3412
|
}
|
|
3408
|
-
var
|
|
3409
|
-
function
|
|
3410
|
-
return
|
|
3411
|
-
(function(t, e,
|
|
3413
|
+
var tr = { exports: {} }, ox = tr.exports, ue;
|
|
3414
|
+
function ix() {
|
|
3415
|
+
return ue || (ue = 1, (function(r, v) {
|
|
3416
|
+
(function(t, e, u) {
|
|
3412
3417
|
r.exports = e(M(), X());
|
|
3413
|
-
})(
|
|
3418
|
+
})(ox, function(t) {
|
|
3414
3419
|
return (function(e) {
|
|
3415
|
-
var
|
|
3420
|
+
var u = t, h = u.lib, m = h.CipherParams, B = u.enc, C = B.Hex, x = u.format;
|
|
3416
3421
|
x.Hex = {
|
|
3417
3422
|
/**
|
|
3418
3423
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3450,33 +3455,33 @@ function ox() {
|
|
|
3450
3455
|
};
|
|
3451
3456
|
})(), t.format.Hex;
|
|
3452
3457
|
});
|
|
3453
|
-
})(
|
|
3458
|
+
})(tr)), tr.exports;
|
|
3454
3459
|
}
|
|
3455
|
-
var
|
|
3456
|
-
function
|
|
3457
|
-
return
|
|
3458
|
-
(function(t, e,
|
|
3460
|
+
var xr = { exports: {} }, sx = xr.exports, de;
|
|
3461
|
+
function cx() {
|
|
3462
|
+
return de || (de = 1, (function(r, v) {
|
|
3463
|
+
(function(t, e, u) {
|
|
3459
3464
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
3460
|
-
})(
|
|
3465
|
+
})(sx, function(t) {
|
|
3461
3466
|
return (function() {
|
|
3462
|
-
var e = t,
|
|
3467
|
+
var e = t, u = e.lib, h = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], p = [], l = [];
|
|
3463
3468
|
(function() {
|
|
3464
|
-
for (var o = [],
|
|
3465
|
-
|
|
3466
|
-
for (var b = 0, g = 0,
|
|
3469
|
+
for (var o = [], d = 0; d < 256; d++)
|
|
3470
|
+
d < 128 ? o[d] = d << 1 : o[d] = d << 1 ^ 283;
|
|
3471
|
+
for (var b = 0, g = 0, d = 0; d < 256; d++) {
|
|
3467
3472
|
var y = g ^ g << 1 ^ g << 2 ^ g << 3 ^ g << 4;
|
|
3468
3473
|
y = y >>> 8 ^ y & 255 ^ 99, B[b] = y, C[y] = b;
|
|
3469
3474
|
var k = o[b], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3470
3475
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3471
3476
|
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ b * 16843008;
|
|
3472
|
-
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16,
|
|
3477
|
+
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, p[y] = w << 8 | w >>> 24, l[y] = w, b ? (b = k ^ o[o[o[F ^ k]]], g ^= o[o[g]]) : b = g = 1;
|
|
3473
3478
|
}
|
|
3474
3479
|
})();
|
|
3475
|
-
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES =
|
|
3480
|
+
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES = h.extend({
|
|
3476
3481
|
_doReset: function() {
|
|
3477
3482
|
var o;
|
|
3478
3483
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3479
|
-
for (var
|
|
3484
|
+
for (var d = this._keyPriorReset = this._key, b = d.words, g = d.sigBytes / 4, y = this._nRounds = g + 6, k = (y + 1) * 4, R = this._keySchedule = [], F = 0; F < k; F++)
|
|
3480
3485
|
F < g ? R[F] = b[F] : (o = R[F - 1], F % g ? g > 6 && F % g == 4 && (o = B[o >>> 24] << 24 | B[o >>> 16 & 255] << 16 | B[o >>> 8 & 255] << 8 | B[o & 255]) : (o = o << 8 | o >>> 24, o = B[o >>> 24] << 24 | B[o >>> 16 & 255] << 16 | B[o >>> 8 & 255] << 8 | B[o & 255], o ^= D[F / g | 0] << 24), R[F] = R[F - g] ^ o);
|
|
3481
3486
|
for (var w = this._invKeySchedule = [], H = 0; H < k; H++) {
|
|
3482
3487
|
var F = k - H;
|
|
@@ -3484,42 +3489,42 @@ function sx() {
|
|
|
3484
3489
|
var o = R[F];
|
|
3485
3490
|
else
|
|
3486
3491
|
var o = R[F - 4];
|
|
3487
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^
|
|
3492
|
+
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^ p[B[o >>> 8 & 255]] ^ l[B[o & 255]];
|
|
3488
3493
|
}
|
|
3489
3494
|
}
|
|
3490
3495
|
},
|
|
3491
|
-
encryptBlock: function(o,
|
|
3492
|
-
this._doCryptBlock(o,
|
|
3496
|
+
encryptBlock: function(o, d) {
|
|
3497
|
+
this._doCryptBlock(o, d, this._keySchedule, x, n, E, a, B);
|
|
3493
3498
|
},
|
|
3494
|
-
decryptBlock: function(o,
|
|
3495
|
-
var b = o[
|
|
3496
|
-
o[
|
|
3497
|
-
var b = o[
|
|
3498
|
-
o[
|
|
3499
|
+
decryptBlock: function(o, d) {
|
|
3500
|
+
var b = o[d + 1];
|
|
3501
|
+
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f, p, l, C);
|
|
3502
|
+
var b = o[d + 1];
|
|
3503
|
+
o[d + 1] = o[d + 3], o[d + 3] = b;
|
|
3499
3504
|
},
|
|
3500
|
-
_doCryptBlock: function(o,
|
|
3501
|
-
for (var w = this._nRounds, H = o[
|
|
3505
|
+
_doCryptBlock: function(o, d, b, g, y, k, R, F) {
|
|
3506
|
+
for (var w = this._nRounds, H = o[d] ^ b[0], $ = o[d + 1] ^ b[1], z = o[d + 2] ^ b[2], O = o[d + 3] ^ b[3], q = 4, U = 1; U < w; U++) {
|
|
3502
3507
|
var T = g[H >>> 24] ^ y[$ >>> 16 & 255] ^ k[z >>> 8 & 255] ^ R[O & 255] ^ b[q++], N = g[$ >>> 24] ^ y[z >>> 16 & 255] ^ k[O >>> 8 & 255] ^ R[H & 255] ^ b[q++], j = g[z >>> 24] ^ y[O >>> 16 & 255] ^ k[H >>> 8 & 255] ^ R[$ & 255] ^ b[q++], S = g[O >>> 24] ^ y[H >>> 16 & 255] ^ k[$ >>> 8 & 255] ^ R[z & 255] ^ b[q++];
|
|
3503
3508
|
H = T, $ = N, z = j, O = S;
|
|
3504
3509
|
}
|
|
3505
3510
|
var T = (F[H >>> 24] << 24 | F[$ >>> 16 & 255] << 16 | F[z >>> 8 & 255] << 8 | F[O & 255]) ^ b[q++], N = (F[$ >>> 24] << 24 | F[z >>> 16 & 255] << 16 | F[O >>> 8 & 255] << 8 | F[H & 255]) ^ b[q++], j = (F[z >>> 24] << 24 | F[O >>> 16 & 255] << 16 | F[H >>> 8 & 255] << 8 | F[$ & 255]) ^ b[q++], S = (F[O >>> 24] << 24 | F[H >>> 16 & 255] << 16 | F[$ >>> 8 & 255] << 8 | F[z & 255]) ^ b[q++];
|
|
3506
|
-
o[
|
|
3511
|
+
o[d] = T, o[d + 1] = N, o[d + 2] = j, o[d + 3] = S;
|
|
3507
3512
|
},
|
|
3508
3513
|
keySize: 256 / 32
|
|
3509
3514
|
});
|
|
3510
|
-
e.AES =
|
|
3515
|
+
e.AES = h._createHelper(i);
|
|
3511
3516
|
})(), t.AES;
|
|
3512
3517
|
});
|
|
3513
|
-
})(
|
|
3518
|
+
})(xr)), xr.exports;
|
|
3514
3519
|
}
|
|
3515
|
-
var
|
|
3516
|
-
function
|
|
3517
|
-
return
|
|
3518
|
-
(function(t, e,
|
|
3520
|
+
var nr = { exports: {} }, fx = nr.exports, le;
|
|
3521
|
+
function ux() {
|
|
3522
|
+
return le || (le = 1, (function(r, v) {
|
|
3523
|
+
(function(t, e, u) {
|
|
3519
3524
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
3520
|
-
})(
|
|
3525
|
+
})(fx, function(t) {
|
|
3521
3526
|
return (function() {
|
|
3522
|
-
var e = t,
|
|
3527
|
+
var e = t, u = e.lib, h = u.WordArray, m = u.BlockCipher, B = e.algo, C = [
|
|
3523
3528
|
57,
|
|
3524
3529
|
49,
|
|
3525
3530
|
41,
|
|
@@ -4165,20 +4170,20 @@ function fx() {
|
|
|
4165
4170
|
2147483679
|
|
4166
4171
|
], s = B.DES = m.extend({
|
|
4167
4172
|
_doReset: function() {
|
|
4168
|
-
for (var D = this._key, i = D.words, o = [],
|
|
4169
|
-
var b = C[
|
|
4170
|
-
o[
|
|
4173
|
+
for (var D = this._key, i = D.words, o = [], d = 0; d < 56; d++) {
|
|
4174
|
+
var b = C[d] - 1;
|
|
4175
|
+
o[d] = i[b >>> 5] >>> 31 - b % 32 & 1;
|
|
4171
4176
|
}
|
|
4172
4177
|
for (var g = this._subKeys = [], y = 0; y < 16; y++) {
|
|
4173
|
-
for (var k = g[y] = [], R = n[y],
|
|
4174
|
-
k[
|
|
4178
|
+
for (var k = g[y] = [], R = n[y], d = 0; d < 24; d++)
|
|
4179
|
+
k[d / 6 | 0] |= o[(x[d] - 1 + R) % 28] << 31 - d % 6, k[4 + (d / 6 | 0)] |= o[28 + (x[d + 24] - 1 + R) % 28] << 31 - d % 6;
|
|
4175
4180
|
k[0] = k[0] << 1 | k[0] >>> 31;
|
|
4176
|
-
for (var
|
|
4177
|
-
k[
|
|
4181
|
+
for (var d = 1; d < 7; d++)
|
|
4182
|
+
k[d] = k[d] >>> (d - 1) * 4 + 3;
|
|
4178
4183
|
k[7] = k[7] << 5 | k[7] >>> 27;
|
|
4179
4184
|
}
|
|
4180
|
-
for (var F = this._invSubKeys = [],
|
|
4181
|
-
F[
|
|
4185
|
+
for (var F = this._invSubKeys = [], d = 0; d < 16; d++)
|
|
4186
|
+
F[d] = g[15 - d];
|
|
4182
4187
|
},
|
|
4183
4188
|
encryptBlock: function(D, i) {
|
|
4184
4189
|
this._doCryptBlock(D, i, this._subKeys);
|
|
@@ -4187,14 +4192,14 @@ function fx() {
|
|
|
4187
4192
|
this._doCryptBlock(D, i, this._invSubKeys);
|
|
4188
4193
|
},
|
|
4189
4194
|
_doCryptBlock: function(D, i, o) {
|
|
4190
|
-
this._lBlock = D[i], this._rBlock = D[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535),
|
|
4191
|
-
for (var
|
|
4192
|
-
for (var b = o[
|
|
4195
|
+
this._lBlock = D[i], this._rBlock = D[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535), p.call(this, 2, 858993459), p.call(this, 8, 16711935), f.call(this, 1, 1431655765);
|
|
4196
|
+
for (var d = 0; d < 16; d++) {
|
|
4197
|
+
for (var b = o[d], g = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4193
4198
|
k |= E[R][((y ^ b[R]) & a[R]) >>> 0];
|
|
4194
4199
|
this._lBlock = y, this._rBlock = g ^ k;
|
|
4195
4200
|
}
|
|
4196
4201
|
var F = this._lBlock;
|
|
4197
|
-
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765),
|
|
4202
|
+
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765), p.call(this, 8, 16711935), p.call(this, 2, 858993459), f.call(this, 16, 65535), f.call(this, 4, 252645135), D[i] = this._lBlock, D[i + 1] = this._rBlock;
|
|
4198
4203
|
},
|
|
4199
4204
|
keySize: 64 / 32,
|
|
4200
4205
|
ivSize: 64 / 32,
|
|
@@ -4204,7 +4209,7 @@ function fx() {
|
|
|
4204
4209
|
var o = (this._lBlock >>> D ^ this._rBlock) & i;
|
|
4205
4210
|
this._rBlock ^= o, this._lBlock ^= o << D;
|
|
4206
4211
|
}
|
|
4207
|
-
function
|
|
4212
|
+
function p(D, i) {
|
|
4208
4213
|
var o = (this._rBlock >>> D ^ this._lBlock) & i;
|
|
4209
4214
|
this._lBlock ^= o, this._rBlock ^= o << D;
|
|
4210
4215
|
}
|
|
@@ -4214,8 +4219,8 @@ function fx() {
|
|
|
4214
4219
|
var D = this._key, i = D.words;
|
|
4215
4220
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
4216
4221
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4217
|
-
var o = i.slice(0, 2),
|
|
4218
|
-
this._des1 = s.createEncryptor(
|
|
4222
|
+
var o = i.slice(0, 2), d = i.length < 4 ? i.slice(0, 2) : i.slice(2, 4), b = i.length < 6 ? i.slice(0, 2) : i.slice(4, 6);
|
|
4223
|
+
this._des1 = s.createEncryptor(h.create(o)), this._des2 = s.createEncryptor(h.create(d)), this._des3 = s.createEncryptor(h.create(b));
|
|
4219
4224
|
},
|
|
4220
4225
|
encryptBlock: function(D, i) {
|
|
4221
4226
|
this._des1.encryptBlock(D, i), this._des2.decryptBlock(D, i), this._des3.encryptBlock(D, i);
|
|
@@ -4230,24 +4235,24 @@ function fx() {
|
|
|
4230
4235
|
e.TripleDES = m._createHelper(l);
|
|
4231
4236
|
})(), t.TripleDES;
|
|
4232
4237
|
});
|
|
4233
|
-
})(
|
|
4238
|
+
})(nr)), nr.exports;
|
|
4234
4239
|
}
|
|
4235
|
-
var
|
|
4236
|
-
function
|
|
4237
|
-
return
|
|
4238
|
-
(function(t, e,
|
|
4240
|
+
var ar = { exports: {} }, dx = ar.exports, he;
|
|
4241
|
+
function lx() {
|
|
4242
|
+
return he || (he = 1, (function(r, v) {
|
|
4243
|
+
(function(t, e, u) {
|
|
4239
4244
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4240
|
-
})(
|
|
4245
|
+
})(dx, function(t) {
|
|
4241
4246
|
return (function() {
|
|
4242
|
-
var e = t,
|
|
4247
|
+
var e = t, u = e.lib, h = u.StreamCipher, m = e.algo, B = m.RC4 = h.extend({
|
|
4243
4248
|
_doReset: function() {
|
|
4244
4249
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], f = 0; f < 256; f++)
|
|
4245
4250
|
s[f] = f;
|
|
4246
|
-
for (var f = 0,
|
|
4251
|
+
for (var f = 0, p = 0; f < 256; f++) {
|
|
4247
4252
|
var l = f % a, D = E[l >>> 2] >>> 24 - l % 4 * 8 & 255;
|
|
4248
|
-
|
|
4253
|
+
p = (p + s[f] + D) % 256;
|
|
4249
4254
|
var i = s[f];
|
|
4250
|
-
s[f] = s[
|
|
4255
|
+
s[f] = s[p], s[p] = i;
|
|
4251
4256
|
}
|
|
4252
4257
|
this._i = this._j = 0;
|
|
4253
4258
|
},
|
|
@@ -4260,12 +4265,12 @@ function dx() {
|
|
|
4260
4265
|
function C() {
|
|
4261
4266
|
for (var n = this._S, E = this._i, a = this._j, s = 0, f = 0; f < 4; f++) {
|
|
4262
4267
|
E = (E + 1) % 256, a = (a + n[E]) % 256;
|
|
4263
|
-
var
|
|
4264
|
-
n[E] = n[a], n[a] =
|
|
4268
|
+
var p = n[E];
|
|
4269
|
+
n[E] = n[a], n[a] = p, s |= n[(n[E] + n[a]) % 256] << 24 - f * 8;
|
|
4265
4270
|
}
|
|
4266
4271
|
return this._i = E, this._j = a, s;
|
|
4267
4272
|
}
|
|
4268
|
-
e.RC4 =
|
|
4273
|
+
e.RC4 = h._createHelper(B);
|
|
4269
4274
|
var x = m.RC4Drop = B.extend({
|
|
4270
4275
|
/**
|
|
4271
4276
|
* Configuration options.
|
|
@@ -4281,23 +4286,23 @@ function dx() {
|
|
|
4281
4286
|
C.call(this);
|
|
4282
4287
|
}
|
|
4283
4288
|
});
|
|
4284
|
-
e.RC4Drop =
|
|
4289
|
+
e.RC4Drop = h._createHelper(x);
|
|
4285
4290
|
})(), t.RC4;
|
|
4286
4291
|
});
|
|
4287
|
-
})(
|
|
4292
|
+
})(ar)), ar.exports;
|
|
4288
4293
|
}
|
|
4289
|
-
var
|
|
4290
|
-
function
|
|
4291
|
-
return
|
|
4292
|
-
(function(t, e,
|
|
4294
|
+
var or = { exports: {} }, hx = or.exports, ve;
|
|
4295
|
+
function vx() {
|
|
4296
|
+
return ve || (ve = 1, (function(r, v) {
|
|
4297
|
+
(function(t, e, u) {
|
|
4293
4298
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4294
|
-
})(
|
|
4299
|
+
})(hx, function(t) {
|
|
4295
4300
|
return (function() {
|
|
4296
|
-
var e = t,
|
|
4301
|
+
var e = t, u = e.lib, h = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.Rabbit = h.extend({
|
|
4297
4302
|
_doReset: function() {
|
|
4298
4303
|
for (var a = this._key.words, s = this.cfg.iv, f = 0; f < 4; f++)
|
|
4299
4304
|
a[f] = (a[f] << 8 | a[f] >>> 24) & 16711935 | (a[f] << 24 | a[f] >>> 8) & 4278255360;
|
|
4300
|
-
var
|
|
4305
|
+
var p = this._X = [
|
|
4301
4306
|
a[0],
|
|
4302
4307
|
a[3] << 16 | a[2] >>> 16,
|
|
4303
4308
|
a[1],
|
|
@@ -4320,10 +4325,10 @@ function hx() {
|
|
|
4320
4325
|
for (var f = 0; f < 4; f++)
|
|
4321
4326
|
E.call(this);
|
|
4322
4327
|
for (var f = 0; f < 8; f++)
|
|
4323
|
-
l[f] ^=
|
|
4328
|
+
l[f] ^= p[f + 4 & 7];
|
|
4324
4329
|
if (s) {
|
|
4325
|
-
var D = s.words, i = D[0], o = D[1],
|
|
4326
|
-
l[0] ^=
|
|
4330
|
+
var D = s.words, i = D[0], o = D[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4331
|
+
l[0] ^= d, l[1] ^= g, l[2] ^= b, l[3] ^= y, l[4] ^= d, l[5] ^= g, l[6] ^= b, l[7] ^= y;
|
|
4327
4332
|
for (var f = 0; f < 4; f++)
|
|
4328
4333
|
E.call(this);
|
|
4329
4334
|
}
|
|
@@ -4331,8 +4336,8 @@ function hx() {
|
|
|
4331
4336
|
_doProcessBlock: function(a, s) {
|
|
4332
4337
|
var f = this._X;
|
|
4333
4338
|
E.call(this), B[0] = f[0] ^ f[5] >>> 16 ^ f[3] << 16, B[1] = f[2] ^ f[7] >>> 16 ^ f[5] << 16, B[2] = f[4] ^ f[1] >>> 16 ^ f[7] << 16, B[3] = f[6] ^ f[3] >>> 16 ^ f[1] << 16;
|
|
4334
|
-
for (var
|
|
4335
|
-
B[
|
|
4339
|
+
for (var p = 0; p < 4; p++)
|
|
4340
|
+
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4336
4341
|
},
|
|
4337
4342
|
blockSize: 128 / 32,
|
|
4338
4343
|
ivSize: 64 / 32
|
|
@@ -4342,24 +4347,24 @@ function hx() {
|
|
|
4342
4347
|
C[f] = s[f];
|
|
4343
4348
|
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4344
4349
|
for (var f = 0; f < 8; f++) {
|
|
4345
|
-
var
|
|
4350
|
+
var p = a[f] + s[f], l = p & 65535, D = p >>> 16, i = ((l * l >>> 17) + l * D >>> 15) + D * D, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4346
4351
|
x[f] = i ^ o;
|
|
4347
4352
|
}
|
|
4348
4353
|
a[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, a[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, a[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, a[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, a[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, a[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, a[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, a[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4349
4354
|
}
|
|
4350
|
-
e.Rabbit =
|
|
4355
|
+
e.Rabbit = h._createHelper(n);
|
|
4351
4356
|
})(), t.Rabbit;
|
|
4352
4357
|
});
|
|
4353
|
-
})(
|
|
4358
|
+
})(or)), or.exports;
|
|
4354
4359
|
}
|
|
4355
|
-
var
|
|
4356
|
-
function
|
|
4357
|
-
return
|
|
4358
|
-
(function(t, e,
|
|
4360
|
+
var ir = { exports: {} }, px = ir.exports, pe;
|
|
4361
|
+
function Bx() {
|
|
4362
|
+
return pe || (pe = 1, (function(r, v) {
|
|
4363
|
+
(function(t, e, u) {
|
|
4359
4364
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4360
|
-
})(
|
|
4365
|
+
})(px, function(t) {
|
|
4361
4366
|
return (function() {
|
|
4362
|
-
var e = t,
|
|
4367
|
+
var e = t, u = e.lib, h = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.RabbitLegacy = h.extend({
|
|
4363
4368
|
_doReset: function() {
|
|
4364
4369
|
var a = this._key.words, s = this.cfg.iv, f = this._X = [
|
|
4365
4370
|
a[0],
|
|
@@ -4370,7 +4375,7 @@ function px() {
|
|
|
4370
4375
|
a[1] << 16 | a[0] >>> 16,
|
|
4371
4376
|
a[3],
|
|
4372
4377
|
a[2] << 16 | a[1] >>> 16
|
|
4373
|
-
],
|
|
4378
|
+
], p = this._C = [
|
|
4374
4379
|
a[2] << 16 | a[2] >>> 16,
|
|
4375
4380
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4376
4381
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4384,10 +4389,10 @@ function px() {
|
|
|
4384
4389
|
for (var l = 0; l < 4; l++)
|
|
4385
4390
|
E.call(this);
|
|
4386
4391
|
for (var l = 0; l < 8; l++)
|
|
4387
|
-
|
|
4392
|
+
p[l] ^= f[l + 4 & 7];
|
|
4388
4393
|
if (s) {
|
|
4389
|
-
var D = s.words, i = D[0], o = D[1],
|
|
4390
|
-
|
|
4394
|
+
var D = s.words, i = D[0], o = D[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4395
|
+
p[0] ^= d, p[1] ^= g, p[2] ^= b, p[3] ^= y, p[4] ^= d, p[5] ^= g, p[6] ^= b, p[7] ^= y;
|
|
4391
4396
|
for (var l = 0; l < 4; l++)
|
|
4392
4397
|
E.call(this);
|
|
4393
4398
|
}
|
|
@@ -4395,8 +4400,8 @@ function px() {
|
|
|
4395
4400
|
_doProcessBlock: function(a, s) {
|
|
4396
4401
|
var f = this._X;
|
|
4397
4402
|
E.call(this), B[0] = f[0] ^ f[5] >>> 16 ^ f[3] << 16, B[1] = f[2] ^ f[7] >>> 16 ^ f[5] << 16, B[2] = f[4] ^ f[1] >>> 16 ^ f[7] << 16, B[3] = f[6] ^ f[3] >>> 16 ^ f[1] << 16;
|
|
4398
|
-
for (var
|
|
4399
|
-
B[
|
|
4403
|
+
for (var p = 0; p < 4; p++)
|
|
4404
|
+
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4400
4405
|
},
|
|
4401
4406
|
blockSize: 128 / 32,
|
|
4402
4407
|
ivSize: 64 / 32
|
|
@@ -4406,24 +4411,24 @@ function px() {
|
|
|
4406
4411
|
C[f] = s[f];
|
|
4407
4412
|
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4408
4413
|
for (var f = 0; f < 8; f++) {
|
|
4409
|
-
var
|
|
4414
|
+
var p = a[f] + s[f], l = p & 65535, D = p >>> 16, i = ((l * l >>> 17) + l * D >>> 15) + D * D, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4410
4415
|
x[f] = i ^ o;
|
|
4411
4416
|
}
|
|
4412
4417
|
a[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, a[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, a[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, a[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, a[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, a[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, a[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, a[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4413
4418
|
}
|
|
4414
|
-
e.RabbitLegacy =
|
|
4419
|
+
e.RabbitLegacy = h._createHelper(n);
|
|
4415
4420
|
})(), t.RabbitLegacy;
|
|
4416
4421
|
});
|
|
4417
|
-
})(
|
|
4422
|
+
})(ir)), ir.exports;
|
|
4418
4423
|
}
|
|
4419
|
-
var
|
|
4420
|
-
function
|
|
4421
|
-
return
|
|
4422
|
-
(function(t, e,
|
|
4424
|
+
var sr = { exports: {} }, Cx = sr.exports, Be;
|
|
4425
|
+
function Ex() {
|
|
4426
|
+
return Be || (Be = 1, (function(r, v) {
|
|
4427
|
+
(function(t, e, u) {
|
|
4423
4428
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4424
|
-
})(
|
|
4429
|
+
})(Cx, function(t) {
|
|
4425
4430
|
return (function() {
|
|
4426
|
-
var e = t,
|
|
4431
|
+
var e = t, u = e.lib, h = u.BlockCipher, m = e.algo;
|
|
4427
4432
|
const B = 16, C = [
|
|
4428
4433
|
608135816,
|
|
4429
4434
|
2242054355,
|
|
@@ -5482,20 +5487,20 @@ function Cx() {
|
|
|
5482
5487
|
sbox: []
|
|
5483
5488
|
};
|
|
5484
5489
|
function E(l, D) {
|
|
5485
|
-
let i = D >> 24 & 255, o = D >> 16 & 255,
|
|
5486
|
-
return g = g ^ l.sbox[2][
|
|
5490
|
+
let i = D >> 24 & 255, o = D >> 16 & 255, d = D >> 8 & 255, b = D & 255, g = l.sbox[0][i] + l.sbox[1][o];
|
|
5491
|
+
return g = g ^ l.sbox[2][d], g = g + l.sbox[3][b], g;
|
|
5487
5492
|
}
|
|
5488
5493
|
function a(l, D, i) {
|
|
5489
|
-
let o = D,
|
|
5494
|
+
let o = D, d = i, b;
|
|
5490
5495
|
for (let g = 0; g < B; ++g)
|
|
5491
|
-
o = o ^ l.pbox[g],
|
|
5492
|
-
return b = o, o =
|
|
5496
|
+
o = o ^ l.pbox[g], d = E(l, o) ^ d, b = o, o = d, d = b;
|
|
5497
|
+
return b = o, o = d, d = b, d = d ^ l.pbox[B], o = o ^ l.pbox[B + 1], { left: o, right: d };
|
|
5493
5498
|
}
|
|
5494
5499
|
function s(l, D, i) {
|
|
5495
|
-
let o = D,
|
|
5500
|
+
let o = D, d = i, b;
|
|
5496
5501
|
for (let g = B + 1; g > 1; --g)
|
|
5497
|
-
o = o ^ l.pbox[g],
|
|
5498
|
-
return b = o, o =
|
|
5502
|
+
o = o ^ l.pbox[g], d = E(l, o) ^ d, b = o, o = d, d = b;
|
|
5503
|
+
return b = o, o = d, d = b, d = d ^ l.pbox[1], o = o ^ l.pbox[0], { left: o, right: d };
|
|
5499
5504
|
}
|
|
5500
5505
|
function f(l, D, i) {
|
|
5501
5506
|
for (let y = 0; y < 4; y++) {
|
|
@@ -5506,15 +5511,15 @@ function Cx() {
|
|
|
5506
5511
|
let o = 0;
|
|
5507
5512
|
for (let y = 0; y < B + 2; y++)
|
|
5508
5513
|
l.pbox[y] = C[y] ^ D[o], o++, o >= i && (o = 0);
|
|
5509
|
-
let
|
|
5514
|
+
let d = 0, b = 0, g = 0;
|
|
5510
5515
|
for (let y = 0; y < B + 2; y += 2)
|
|
5511
|
-
g = a(l,
|
|
5516
|
+
g = a(l, d, b), d = g.left, b = g.right, l.pbox[y] = d, l.pbox[y + 1] = b;
|
|
5512
5517
|
for (let y = 0; y < 4; y++)
|
|
5513
5518
|
for (let k = 0; k < 256; k += 2)
|
|
5514
|
-
g = a(l,
|
|
5519
|
+
g = a(l, d, b), d = g.left, b = g.right, l.sbox[y][k] = d, l.sbox[y][k + 1] = b;
|
|
5515
5520
|
return !0;
|
|
5516
5521
|
}
|
|
5517
|
-
var
|
|
5522
|
+
var p = m.Blowfish = h.extend({
|
|
5518
5523
|
_doReset: function() {
|
|
5519
5524
|
if (this._keyPriorReset !== this._key) {
|
|
5520
5525
|
var l = this._keyPriorReset = this._key, D = l.words, i = l.sigBytes / 4;
|
|
@@ -5533,111 +5538,111 @@ function Cx() {
|
|
|
5533
5538
|
keySize: 128 / 32,
|
|
5534
5539
|
ivSize: 64 / 32
|
|
5535
5540
|
});
|
|
5536
|
-
e.Blowfish =
|
|
5541
|
+
e.Blowfish = h._createHelper(p);
|
|
5537
5542
|
})(), t.Blowfish;
|
|
5538
5543
|
});
|
|
5539
|
-
})(
|
|
5544
|
+
})(sr)), sr.exports;
|
|
5540
5545
|
}
|
|
5541
|
-
var
|
|
5542
|
-
function
|
|
5543
|
-
return
|
|
5544
|
-
(function(t, e,
|
|
5545
|
-
r.exports = e(M(),
|
|
5546
|
-
})(
|
|
5546
|
+
var Ax = y0.exports, Ce;
|
|
5547
|
+
function Fx() {
|
|
5548
|
+
return Ce || (Ce = 1, (function(r, v) {
|
|
5549
|
+
(function(t, e, u) {
|
|
5550
|
+
r.exports = e(M(), ur(), Bt(), Et(), i0(), gt(), s0(), ye(), Er(), yt(), we(), St(), $t(), Pt(), Ar(), It(), a0(), X(), Tt(), Nt(), jt(), Kt(), Yt(), Qt(), Jt(), ex(), xx(), ax(), ix(), cx(), ux(), lx(), vx(), Bx(), Ex());
|
|
5551
|
+
})(Ax, function(t) {
|
|
5547
5552
|
return t;
|
|
5548
5553
|
});
|
|
5549
|
-
})(
|
|
5554
|
+
})(y0)), y0.exports;
|
|
5550
5555
|
}
|
|
5551
|
-
|
|
5552
|
-
let
|
|
5556
|
+
Fx();
|
|
5557
|
+
let ke = null, Se = null, He = null, $e = null;
|
|
5553
5558
|
Math.random().toString(36).substring(7);
|
|
5554
|
-
function
|
|
5555
|
-
|
|
5559
|
+
function gx(r) {
|
|
5560
|
+
ke = r.token, Se = r.apiUrl, He = r.deviceId, $e = r.domain;
|
|
5556
5561
|
}
|
|
5557
|
-
function
|
|
5562
|
+
function Dx() {
|
|
5558
5563
|
return {
|
|
5559
|
-
token:
|
|
5560
|
-
apiUrl:
|
|
5561
|
-
deviceId:
|
|
5562
|
-
domain:
|
|
5564
|
+
token: ke,
|
|
5565
|
+
apiUrl: Se,
|
|
5566
|
+
deviceId: He,
|
|
5567
|
+
domain: $e
|
|
5563
5568
|
};
|
|
5564
5569
|
}
|
|
5565
|
-
function
|
|
5566
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5570
|
+
function bx(r) {
|
|
5571
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.143`;
|
|
5567
5572
|
}
|
|
5568
|
-
function
|
|
5569
|
-
const t =
|
|
5570
|
-
return new Worker(t, { type: "module", ...
|
|
5573
|
+
function mx(r, v) {
|
|
5574
|
+
const t = bx(r);
|
|
5575
|
+
return new Worker(t, { type: "module", ...v });
|
|
5571
5576
|
}
|
|
5572
|
-
const
|
|
5577
|
+
const Fr = () => {
|
|
5573
5578
|
try {
|
|
5574
5579
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5575
5580
|
} catch {
|
|
5576
5581
|
}
|
|
5577
5582
|
return !1;
|
|
5578
|
-
},
|
|
5579
|
-
|
|
5580
|
-
},
|
|
5581
|
-
|
|
5582
|
-
},
|
|
5583
|
-
let
|
|
5584
|
-
function
|
|
5585
|
-
const
|
|
5586
|
-
if (
|
|
5587
|
-
const t =
|
|
5583
|
+
}, m0 = (...r) => {
|
|
5584
|
+
Fr();
|
|
5585
|
+
}, Ee = (...r) => {
|
|
5586
|
+
Fr();
|
|
5587
|
+
}, Ae = /* @__PURE__ */ new Map(), pr = /* @__PURE__ */ new Map();
|
|
5588
|
+
let _x = 0;
|
|
5589
|
+
function yx(r) {
|
|
5590
|
+
const v = Ae.get(r);
|
|
5591
|
+
if (v) return v;
|
|
5592
|
+
const t = mx("./deform.worker.ts");
|
|
5588
5593
|
try {
|
|
5589
|
-
t.postMessage({ type: "SET_DEBUG", debugRender:
|
|
5594
|
+
t.postMessage({ type: "SET_DEBUG", debugRender: Fr() });
|
|
5590
5595
|
} catch {
|
|
5591
5596
|
}
|
|
5592
|
-
t.onmessage = (
|
|
5593
|
-
const { id:
|
|
5594
|
-
|
|
5597
|
+
t.onmessage = (u) => {
|
|
5598
|
+
const { id: h, imageBitmap: m, error: B, duration: C } = u.data ?? {}, x = C ? ` worker耗时=${Math.round(C)}ms` : "";
|
|
5599
|
+
m0(`[renderService] deform worker 响应 id=${h}${x}`, {
|
|
5595
5600
|
hasImageBitmap: !!m,
|
|
5596
5601
|
width: m?.width,
|
|
5597
5602
|
height: m?.height,
|
|
5598
5603
|
error: B
|
|
5599
5604
|
});
|
|
5600
|
-
const n =
|
|
5605
|
+
const n = pr.get(h);
|
|
5601
5606
|
if (n) {
|
|
5602
|
-
if (
|
|
5607
|
+
if (pr.delete(h), B) {
|
|
5603
5608
|
n.reject(new Error(B));
|
|
5604
5609
|
return;
|
|
5605
5610
|
}
|
|
5606
5611
|
n.resolve(m);
|
|
5607
5612
|
}
|
|
5608
|
-
}, t.onerror = (
|
|
5613
|
+
}, t.onerror = (u) => {
|
|
5609
5614
|
};
|
|
5610
5615
|
const e = () => {
|
|
5611
|
-
const
|
|
5612
|
-
return
|
|
5613
|
-
hasToken: !!
|
|
5614
|
-
tokenPreview:
|
|
5616
|
+
const u = Dx();
|
|
5617
|
+
return m0("🔍 [workerManager] 检查 License Token:", {
|
|
5618
|
+
hasToken: !!u.token,
|
|
5619
|
+
tokenPreview: u.token ? u.token.substring(0, 20) + "..." : "undefined",
|
|
5615
5620
|
faceId: r,
|
|
5616
5621
|
source: "licenseStore模块"
|
|
5617
|
-
}),
|
|
5622
|
+
}), u.token ? (m0("📤 [workerManager] 发送 License 到新创建的 Worker", { faceId: r }), t.postMessage({
|
|
5618
5623
|
type: "SET_LICENSE",
|
|
5619
|
-
licenseToken:
|
|
5620
|
-
licenseApiUrl:
|
|
5621
|
-
deviceId:
|
|
5622
|
-
domain:
|
|
5624
|
+
licenseToken: u.token,
|
|
5625
|
+
licenseApiUrl: u.apiUrl,
|
|
5626
|
+
deviceId: u.deviceId,
|
|
5627
|
+
domain: u.domain
|
|
5623
5628
|
}), !0) : !1;
|
|
5624
5629
|
};
|
|
5625
|
-
return e() || (
|
|
5626
|
-
e() ||
|
|
5630
|
+
return e() || (m0("⏳ [workerManager] License Token 未设置,等待后重试...", { faceId: r }), setTimeout(() => {
|
|
5631
|
+
e() || Ee("⚠️ [workerManager] 等待后 License Token 仍未设置", { faceId: r });
|
|
5627
5632
|
}, 200), setTimeout(() => {
|
|
5628
|
-
e() ||
|
|
5629
|
-
}, 500)),
|
|
5633
|
+
e() || Ee("⚠️ [workerManager] 第二次等待后 License Token 仍未设置", { faceId: r });
|
|
5634
|
+
}, 500)), Ae.set(r, t), t;
|
|
5630
5635
|
}
|
|
5631
|
-
function
|
|
5636
|
+
function wx(r) {
|
|
5632
5637
|
return {
|
|
5633
5638
|
name: r.name,
|
|
5634
5639
|
type: r.type,
|
|
5635
5640
|
blendMode: r.blendMode,
|
|
5636
5641
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5637
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5638
|
-
x:
|
|
5639
|
-
y:
|
|
5640
|
-
type:
|
|
5642
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((v) => ({
|
|
5643
|
+
x: v.x,
|
|
5644
|
+
y: v.y,
|
|
5645
|
+
type: v.type
|
|
5641
5646
|
})) : [],
|
|
5642
5647
|
bounds: r.bounds ? {
|
|
5643
5648
|
width: r.bounds.width,
|
|
@@ -5660,30 +5665,30 @@ function yx(r) {
|
|
|
5660
5665
|
layerOrder: r.layerOrder,
|
|
5661
5666
|
imagePath: r.imagePath,
|
|
5662
5667
|
vectorMask: r.vectorMask ? {
|
|
5663
|
-
paths: r.vectorMask.paths?.map((
|
|
5664
|
-
open:
|
|
5665
|
-
knots:
|
|
5668
|
+
paths: r.vectorMask.paths?.map((v) => ({
|
|
5669
|
+
open: v.open,
|
|
5670
|
+
knots: v.knots?.map((t) => ({
|
|
5666
5671
|
linked: t.linked,
|
|
5667
5672
|
points: [...t.points]
|
|
5668
5673
|
})),
|
|
5669
|
-
fillRule:
|
|
5670
|
-
operation:
|
|
5674
|
+
fillRule: v.fillRule,
|
|
5675
|
+
operation: v.operation
|
|
5671
5676
|
})),
|
|
5672
|
-
points: r.vectorMask.points?.map((
|
|
5673
|
-
x:
|
|
5674
|
-
y:
|
|
5675
|
-
type:
|
|
5677
|
+
points: r.vectorMask.points?.map((v) => ({
|
|
5678
|
+
x: v.x,
|
|
5679
|
+
y: v.y,
|
|
5680
|
+
type: v.type
|
|
5676
5681
|
})),
|
|
5677
5682
|
invert: r.vectorMask.invert,
|
|
5678
5683
|
notLink: r.vectorMask.notLink,
|
|
5679
5684
|
disable: r.vectorMask.disable,
|
|
5680
5685
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5681
5686
|
} : void 0,
|
|
5682
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5683
|
-
type:
|
|
5684
|
-
enabled:
|
|
5685
|
-
filter:
|
|
5686
|
-
puppetShapeList:
|
|
5687
|
+
filterList: r.filterList ? r.filterList.map((v) => ({
|
|
5688
|
+
type: v.type,
|
|
5689
|
+
enabled: v.enabled,
|
|
5690
|
+
filter: v.filter ? {
|
|
5691
|
+
puppetShapeList: v.filter.puppetShapeList?.map((t) => ({
|
|
5687
5692
|
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5688
5693
|
x: e.x,
|
|
5689
5694
|
y: e.y
|
|
@@ -5700,47 +5705,47 @@ function yx(r) {
|
|
|
5700
5705
|
clipping: r.clipping
|
|
5701
5706
|
};
|
|
5702
5707
|
}
|
|
5703
|
-
function
|
|
5704
|
-
const
|
|
5708
|
+
function kx(r, v, t, e) {
|
|
5709
|
+
const u = ++_x, h = yx(t);
|
|
5705
5710
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((m, B) => {
|
|
5706
|
-
|
|
5711
|
+
pr.set(u, {
|
|
5707
5712
|
resolve: (x) => {
|
|
5708
5713
|
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), m(x);
|
|
5709
5714
|
},
|
|
5710
5715
|
reject: B
|
|
5711
5716
|
});
|
|
5712
|
-
const C =
|
|
5713
|
-
|
|
5717
|
+
const C = wx(v);
|
|
5718
|
+
h.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5714
5719
|
r
|
|
5715
5720
|
]);
|
|
5716
5721
|
});
|
|
5717
5722
|
}
|
|
5718
|
-
async function
|
|
5719
|
-
const m = await
|
|
5723
|
+
async function Sx(r, v, t = 0, e, u, h) {
|
|
5724
|
+
const m = await it(r, u, h);
|
|
5720
5725
|
if (!m || m.width === 0 || m.height === 0)
|
|
5721
5726
|
throw new Error("图片无效:尺寸为 0");
|
|
5722
|
-
return await
|
|
5727
|
+
return await kx(m, v, t, e);
|
|
5723
5728
|
}
|
|
5724
|
-
function d0(r,
|
|
5729
|
+
function d0(r, v) {
|
|
5725
5730
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5726
|
-
return new OffscreenCanvas(r,
|
|
5731
|
+
return new OffscreenCanvas(r, v);
|
|
5727
5732
|
if (typeof document < "u") {
|
|
5728
5733
|
const t = document.createElement("canvas");
|
|
5729
|
-
return t.width = r, t.height =
|
|
5734
|
+
return t.width = r, t.height = v, t;
|
|
5730
5735
|
} else
|
|
5731
5736
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5732
5737
|
}
|
|
5733
5738
|
function A0(r) {
|
|
5734
5739
|
return r.getContext("2d");
|
|
5735
5740
|
}
|
|
5736
|
-
function
|
|
5737
|
-
const
|
|
5738
|
-
if (!
|
|
5741
|
+
function Fe(r) {
|
|
5742
|
+
const v = A0(r);
|
|
5743
|
+
if (!v)
|
|
5739
5744
|
throw new Error("无法创建 canvas context");
|
|
5740
|
-
return
|
|
5745
|
+
return v;
|
|
5741
5746
|
}
|
|
5742
|
-
async function
|
|
5743
|
-
const
|
|
5747
|
+
async function Hx(r) {
|
|
5748
|
+
const v = performance.now(), t = () => {
|
|
5744
5749
|
try {
|
|
5745
5750
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5746
5751
|
} catch {
|
|
@@ -5748,10 +5753,10 @@ async function Sx(r) {
|
|
|
5748
5753
|
return !1;
|
|
5749
5754
|
}, e = (...c) => {
|
|
5750
5755
|
t();
|
|
5751
|
-
},
|
|
5756
|
+
}, u = (...c) => {
|
|
5752
5757
|
t();
|
|
5753
5758
|
}, {
|
|
5754
|
-
psdJson:
|
|
5759
|
+
psdJson: h,
|
|
5755
5760
|
materialList: m,
|
|
5756
5761
|
fabricScreenshotList: B,
|
|
5757
5762
|
width: C,
|
|
@@ -5759,8 +5764,8 @@ async function Sx(r) {
|
|
|
5759
5764
|
baseUrl: n
|
|
5760
5765
|
} = r, E = r.maxImageSize;
|
|
5761
5766
|
e("[renderByJson] 接收到的数据:", {
|
|
5762
|
-
psdJsonLayerCount:
|
|
5763
|
-
psdJsonLayers:
|
|
5767
|
+
psdJsonLayerCount: h.layerList?.length || 0,
|
|
5768
|
+
psdJsonLayers: h.layerList?.map((c) => ({
|
|
5764
5769
|
name: c.name,
|
|
5765
5770
|
type: c.type,
|
|
5766
5771
|
id: c.id,
|
|
@@ -5786,7 +5791,7 @@ async function Sx(r) {
|
|
|
5786
5791
|
const _ = new URL(c, n).toString();
|
|
5787
5792
|
return !_.includes("http") && !_.startsWith("data:") && !_.startsWith("blob:") ? void 0 : _;
|
|
5788
5793
|
} catch (_) {
|
|
5789
|
-
|
|
5794
|
+
u(`[renderByJson] 解析图片 URL 失败: ${c}`, _);
|
|
5790
5795
|
return;
|
|
5791
5796
|
}
|
|
5792
5797
|
}, s = {}, f = /* @__PURE__ */ new Map();
|
|
@@ -5798,10 +5803,10 @@ async function Sx(r) {
|
|
|
5798
5803
|
url: c.url
|
|
5799
5804
|
}), f.set(c.layerName, c.url));
|
|
5800
5805
|
}
|
|
5801
|
-
const
|
|
5806
|
+
const p = /* @__PURE__ */ new Map();
|
|
5802
5807
|
for (const c of B)
|
|
5803
|
-
|
|
5804
|
-
e("[renderByJson] fabricScreenshotMap:", Array.from(
|
|
5808
|
+
p.set(c.id, c.url);
|
|
5809
|
+
e("[renderByJson] fabricScreenshotMap:", Array.from(p.entries())), e("[renderByJson] psdJson.layerList 结构:", h.layerList?.map((c) => ({
|
|
5805
5810
|
name: c.name,
|
|
5806
5811
|
type: c.type,
|
|
5807
5812
|
id: c.id,
|
|
@@ -5848,31 +5853,31 @@ async function Sx(r) {
|
|
|
5848
5853
|
function D(c, A) {
|
|
5849
5854
|
const _ = c.id ?? A;
|
|
5850
5855
|
if (c.type === "Group" && _)
|
|
5851
|
-
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${
|
|
5852
|
-
const W =
|
|
5856
|
+
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${p.has(_)}`), p.has(_)) {
|
|
5857
|
+
const W = p.get(_);
|
|
5853
5858
|
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${W.substring(0, 50)}...`), c.children) {
|
|
5854
5859
|
e(`[renderByJson] Group "${c.name}" 有 ${c.children.length} 个子图层`);
|
|
5855
5860
|
for (const P of c.children)
|
|
5856
5861
|
if (P && P.isSmartObject === !0) {
|
|
5857
5862
|
const L = P?.name || "";
|
|
5858
|
-
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = W, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${W.substring(0, 50)}...`)) :
|
|
5863
|
+
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = W, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${W.substring(0, 50)}...`)) : u("[renderByJson] ⚠️ 智能对象没有 name,无法设置 designImage");
|
|
5859
5864
|
}
|
|
5860
5865
|
} else
|
|
5861
|
-
|
|
5866
|
+
u(`[renderByJson] ⚠️ Group id=${_} 没有 children`);
|
|
5862
5867
|
} else
|
|
5863
5868
|
e(`[renderByJson] ⚠️ Group id=${_}, name="${c.name}" 没有匹配的 fabricScreenshot`);
|
|
5864
5869
|
if (c.children)
|
|
5865
5870
|
for (const W of c.children)
|
|
5866
5871
|
W && D(W, _);
|
|
5867
5872
|
}
|
|
5868
|
-
if (
|
|
5869
|
-
for (const c of
|
|
5873
|
+
if (h.layerList)
|
|
5874
|
+
for (const c of h.layerList)
|
|
5870
5875
|
c && l(c);
|
|
5871
|
-
if (
|
|
5872
|
-
for (const c of
|
|
5876
|
+
if (h.layerList)
|
|
5877
|
+
for (const c of h.layerList)
|
|
5873
5878
|
c && D(c);
|
|
5874
|
-
const o =
|
|
5875
|
-
psdJson:
|
|
5879
|
+
const o = Ye([{
|
|
5880
|
+
psdJson: h,
|
|
5876
5881
|
layerExtrasByName: s
|
|
5877
5882
|
}], {
|
|
5878
5883
|
parts: [],
|
|
@@ -5880,10 +5885,10 @@ async function Sx(r) {
|
|
|
5880
5885
|
});
|
|
5881
5886
|
if (!o.models || o.models.length === 0)
|
|
5882
5887
|
throw new Error("无法解析 JSON 数据");
|
|
5883
|
-
const
|
|
5884
|
-
if (!
|
|
5888
|
+
const d = o.models[0];
|
|
5889
|
+
if (!d.psdPartData)
|
|
5885
5890
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5886
|
-
const b =
|
|
5891
|
+
const b = d.width, g = d.height, y = d0(b, g), k = Fe(y), R = [], F = (c) => {
|
|
5887
5892
|
if (c.url && s[c.url])
|
|
5888
5893
|
return s[c.url];
|
|
5889
5894
|
if (c.url) {
|
|
@@ -5901,23 +5906,23 @@ async function Sx(r) {
|
|
|
5901
5906
|
}
|
|
5902
5907
|
}
|
|
5903
5908
|
};
|
|
5904
|
-
for (let c = 0; c <
|
|
5905
|
-
const A =
|
|
5909
|
+
for (let c = 0; c < d.psdPartData.length; c++) {
|
|
5910
|
+
const A = d.psdPartData[c], _ = F(A);
|
|
5906
5911
|
if (A.type === F0.Layer) {
|
|
5907
5912
|
if (!_ || !_.url) {
|
|
5908
|
-
|
|
5913
|
+
u(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5909
5914
|
continue;
|
|
5910
5915
|
}
|
|
5911
5916
|
const W = _.url, P = a(W);
|
|
5912
5917
|
if (!P) {
|
|
5913
|
-
|
|
5918
|
+
u(`图层 "${A.name}" 没有有效的 url,跳过`);
|
|
5914
5919
|
continue;
|
|
5915
5920
|
}
|
|
5916
5921
|
R.push({
|
|
5917
5922
|
index: c,
|
|
5918
5923
|
type: "layer",
|
|
5919
5924
|
partData: A,
|
|
5920
|
-
promise:
|
|
5925
|
+
promise: st(P, E, n).catch((L) => null)
|
|
5921
5926
|
});
|
|
5922
5927
|
} else if (A.type === F0.Group) {
|
|
5923
5928
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
@@ -5931,8 +5936,8 @@ async function Sx(r) {
|
|
|
5931
5936
|
const K = P.imagePath.split("/").pop() || P.imagePath;
|
|
5932
5937
|
if (L = s[K], !L) {
|
|
5933
5938
|
const G = m.find((Y) => {
|
|
5934
|
-
const
|
|
5935
|
-
return !
|
|
5939
|
+
const e0 = Y.sourceName || Y.layerName;
|
|
5940
|
+
return !e0 || !P.imagePath ? !1 : (e0.split("/").pop() || e0) === K || e0 === P.imagePath || e0.endsWith(P.imagePath) || P.imagePath.endsWith(e0);
|
|
5936
5941
|
});
|
|
5937
5942
|
G && (L = { url: G.url });
|
|
5938
5943
|
}
|
|
@@ -5949,14 +5954,14 @@ async function Sx(r) {
|
|
|
5949
5954
|
continue;
|
|
5950
5955
|
I = G;
|
|
5951
5956
|
}
|
|
5952
|
-
const Z = (A.partId ?? A.id) * 100 + W, Q = Ze(
|
|
5957
|
+
const Z = (A.partId ?? A.id) * 100 + W, Q = Qe(Ze(P)), o0 = { width: b, height: g };
|
|
5953
5958
|
R.push({
|
|
5954
5959
|
index: c + W * 0.01,
|
|
5955
5960
|
type: "group",
|
|
5956
5961
|
partData: A,
|
|
5957
5962
|
smartObject: P,
|
|
5958
5963
|
maskData: Q,
|
|
5959
|
-
promise:
|
|
5964
|
+
promise: Sx(
|
|
5960
5965
|
I,
|
|
5961
5966
|
P,
|
|
5962
5967
|
Z,
|
|
@@ -5979,7 +5984,7 @@ async function Sx(r) {
|
|
|
5979
5984
|
for (let c = 0; c < H.length; c++) {
|
|
5980
5985
|
const { task: A, imageBitmap: _ } = H[c];
|
|
5981
5986
|
if (!_) {
|
|
5982
|
-
|
|
5987
|
+
u(`[renderByJson] 图层 "${A.partData.name}" 没有 imageBitmap,跳过`);
|
|
5983
5988
|
continue;
|
|
5984
5989
|
}
|
|
5985
5990
|
const { partData: W } = A, P = W.bounds;
|
|
@@ -6007,7 +6012,7 @@ async function Sx(r) {
|
|
|
6007
6012
|
if (z.clearRect(0, 0, b, g), z.globalCompositeOperation = "source-over", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6008
6013
|
if (A.maskData) {
|
|
6009
6014
|
const K = d0(b, g), G = A0(K);
|
|
6010
|
-
G && (G.drawImage(_, 0, 0),
|
|
6015
|
+
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), z.drawImage(K, 0, 0));
|
|
6011
6016
|
} else
|
|
6012
6017
|
z.drawImage(_, 0, 0);
|
|
6013
6018
|
else A.type === "layer" && (P ? z.drawImage(
|
|
@@ -6024,7 +6029,7 @@ async function Sx(r) {
|
|
|
6024
6029
|
if (z.globalCompositeOperation = "source-atop", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6025
6030
|
if (A.maskData) {
|
|
6026
6031
|
const K = d0(b, g), G = A0(K);
|
|
6027
|
-
G && (G.drawImage(_, 0, 0),
|
|
6032
|
+
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), z.drawImage(K, 0, 0));
|
|
6028
6033
|
} else
|
|
6029
6034
|
z.drawImage(_, 0, 0);
|
|
6030
6035
|
else A.type === "layer" && (P ? z.drawImage(
|
|
@@ -6037,10 +6042,10 @@ async function Sx(r) {
|
|
|
6037
6042
|
z.globalAlpha = 1, z.globalCompositeOperation = "source-over";
|
|
6038
6043
|
}
|
|
6039
6044
|
} else {
|
|
6040
|
-
if (k.globalCompositeOperation =
|
|
6045
|
+
if (k.globalCompositeOperation = Wr(W.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6041
6046
|
if (A.maskData) {
|
|
6042
6047
|
const K = d0(b, g), G = A0(K);
|
|
6043
|
-
G && (G.drawImage(_, 0, 0),
|
|
6048
|
+
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), k.drawImage(K, 0, 0));
|
|
6044
6049
|
} else
|
|
6045
6050
|
k.drawImage(_, 0, 0);
|
|
6046
6051
|
else A.type === "layer" && (P ? k.drawImage(
|
|
@@ -6052,7 +6057,7 @@ async function Sx(r) {
|
|
|
6052
6057
|
) : k.drawImage(_, 0, 0));
|
|
6053
6058
|
k.globalAlpha = 1, k.globalCompositeOperation = "source-over";
|
|
6054
6059
|
}
|
|
6055
|
-
O && !Q && (k.globalCompositeOperation =
|
|
6060
|
+
O && !Q && (k.globalCompositeOperation = Wr(q), k.drawImage($, 0, 0), k.globalCompositeOperation = "source-over", O = !1);
|
|
6056
6061
|
}
|
|
6057
6062
|
$ = null, z = null;
|
|
6058
6063
|
let U = y, T = b, N = g;
|
|
@@ -6067,25 +6072,25 @@ async function Sx(r) {
|
|
|
6067
6072
|
T = Math.round(b * A), N = x;
|
|
6068
6073
|
}
|
|
6069
6074
|
U = d0(T, N);
|
|
6070
|
-
const c =
|
|
6075
|
+
const c = Fe(U);
|
|
6071
6076
|
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0, b, g, 0, 0, T, N), e(`[renderByJson] 已缩放结果: ${b}x${g} -> ${T}x${N}`);
|
|
6072
6077
|
}
|
|
6073
|
-
const S = performance.now() -
|
|
6078
|
+
const S = performance.now() - v;
|
|
6074
6079
|
return e(`[renderByJson] 绘制完成,总渲染时间: ${Math.round(S)}ms`), {
|
|
6075
6080
|
canvas: U,
|
|
6076
6081
|
width: T,
|
|
6077
6082
|
height: N
|
|
6078
6083
|
};
|
|
6079
6084
|
}
|
|
6080
|
-
const
|
|
6081
|
-
const t = (await
|
|
6085
|
+
const $x = async (r) => {
|
|
6086
|
+
const t = (await Hx(r)).canvas;
|
|
6082
6087
|
return t ? createImageBitmap(t) : null;
|
|
6083
6088
|
};
|
|
6084
6089
|
self.onmessage = async (r) => {
|
|
6085
|
-
const
|
|
6086
|
-
if (
|
|
6087
|
-
const e =
|
|
6088
|
-
|
|
6090
|
+
const v = r.data;
|
|
6091
|
+
if (v && typeof v == "object" && "type" in v && v.type === "SET_LICENSE") {
|
|
6092
|
+
const e = v;
|
|
6093
|
+
gx({
|
|
6089
6094
|
token: e.licenseToken,
|
|
6090
6095
|
apiUrl: e.licenseApiUrl,
|
|
6091
6096
|
deviceId: e.deviceId,
|
|
@@ -6093,9 +6098,9 @@ self.onmessage = async (r) => {
|
|
|
6093
6098
|
});
|
|
6094
6099
|
return;
|
|
6095
6100
|
}
|
|
6096
|
-
const t =
|
|
6101
|
+
const t = v;
|
|
6097
6102
|
try {
|
|
6098
|
-
const e = await
|
|
6103
|
+
const e = await $x(t.renderData);
|
|
6099
6104
|
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|
|
6100
6105
|
} catch (e) {
|
|
6101
6106
|
self.postMessage({
|