@jieyin/editor-sdk-test 1.1.149 → 1.1.151
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 +2469 -2463
- package/dist/renderWorker.js +294 -292
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -30,12 +30,12 @@ function Ke(r, h) {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
function Xe(r, h, t, e) {
|
|
33
|
-
let u = r.name || "",
|
|
34
|
-
if (r.type === "Group" && m === void 0 && (!
|
|
33
|
+
let u = r.name || "", v = h[u], m = v?.partId ?? (r.type === "Group" ? t.get(u) : void 0);
|
|
34
|
+
if (r.type === "Group" && m === void 0 && (!v || v.id === void 0) && r.children && r.children.length === 1) {
|
|
35
35
|
const x = r.children[0].name, n = h[x], E = n?.partId ?? t.get(x);
|
|
36
|
-
(E !== void 0 || n?.id !== void 0) && (u = x,
|
|
36
|
+
(E !== void 0 || n?.id !== void 0) && (u = x, v = n, m = E);
|
|
37
37
|
}
|
|
38
|
-
const B = r.id ??
|
|
38
|
+
const B = r.id ?? v?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
40
40
|
return {
|
|
41
41
|
id: B,
|
|
@@ -51,7 +51,7 @@ function Xe(r, h, t, e) {
|
|
|
51
51
|
clipping: r.clipping,
|
|
52
52
|
layerOrder: r.layerOrder
|
|
53
53
|
};
|
|
54
|
-
let C =
|
|
54
|
+
let C = v?.url;
|
|
55
55
|
return !C && r.imagePath && (C = r.imagePath), {
|
|
56
56
|
id: B,
|
|
57
57
|
name: r.name || "",
|
|
@@ -69,14 +69,14 @@ function Ye(r, h) {
|
|
|
69
69
|
return {
|
|
70
70
|
parts: h.parts,
|
|
71
71
|
models: r.map((u) => {
|
|
72
|
-
const
|
|
72
|
+
const v = 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 = [], g = [], i = [...
|
|
77
|
+
for (const p of s)
|
|
78
|
+
if (p.type === "Group" && p.children) {
|
|
79
|
+
const l = [], g = [], i = [...p.children].sort((o, d) => {
|
|
80
80
|
const b = o.layerOrder ?? 0, D = d.layerOrder ?? 0;
|
|
81
81
|
return b - D;
|
|
82
82
|
});
|
|
@@ -87,14 +87,14 @@ function Ye(r, h) {
|
|
|
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) => Xe(s,
|
|
97
|
+
(s) => Xe(s, v, t, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
@@ -126,7 +126,7 @@ function Qe(r) {
|
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function lr(r, h) {
|
|
130
130
|
if (h) {
|
|
131
131
|
if (r.globalCompositeOperation = "destination-in", r.beginPath(), h.type === "bezier" && Array.isArray(h.paths))
|
|
132
132
|
h.paths.forEach((t) => {
|
|
@@ -134,12 +134,12 @@ function dr(r, h) {
|
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
135
|
const u = e[0];
|
|
136
136
|
r.moveTo(u.points[2], u.points[3]);
|
|
137
|
-
for (let
|
|
138
|
-
const m = e[
|
|
139
|
-
let B = (
|
|
140
|
-
if (!t.open &&
|
|
137
|
+
for (let v = 0; v < e.length; v++) {
|
|
138
|
+
const m = e[v];
|
|
139
|
+
let B = (v + 1) % e.length;
|
|
140
|
+
if (!t.open && v === e.length - 1)
|
|
141
141
|
B = 0;
|
|
142
|
-
else if (t.open &&
|
|
142
|
+
else if (t.open && v === 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);
|
|
@@ -299,115 +299,118 @@ class l0 {
|
|
|
299
299
|
return h?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
|
|
304
|
-
return sr = function() {
|
|
305
|
-
return r;
|
|
306
|
-
}, sr();
|
|
302
|
+
function fr(r, h) {
|
|
303
|
+
return r = r - 322, sr()[r];
|
|
307
304
|
}
|
|
308
|
-
const
|
|
305
|
+
const r0 = fr;
|
|
309
306
|
(function(r, h) {
|
|
310
|
-
const t =
|
|
307
|
+
const t = fr, e = r();
|
|
311
308
|
for (; ; )
|
|
312
309
|
try {
|
|
313
|
-
if (
|
|
310
|
+
if (parseInt(t(351)) / 1 * (parseInt(t(335)) / 2) + parseInt(t(339)) / 3 + -parseInt(t(331)) / 4 * (parseInt(t(327)) / 5) + parseInt(t(360)) / 6 * (-parseInt(t(329)) / 7) + -parseInt(t(356)) / 8 * (-parseInt(t(344)) / 9) + -parseInt(t(332)) / 10 + -parseInt(t(328)) / 11 * (parseInt(t(342)) / 12) === h) break;
|
|
314
311
|
e.push(e.shift());
|
|
315
312
|
} catch {
|
|
316
313
|
e.push(e.shift());
|
|
317
314
|
}
|
|
318
|
-
})(sr,
|
|
315
|
+
})(sr, -230408 + -116998 * 2 + -4 * -150217);
|
|
319
316
|
const E0 = /* @__PURE__ */ (function() {
|
|
320
317
|
let r = !0;
|
|
321
318
|
return function(h, t) {
|
|
322
319
|
const e = r ? function() {
|
|
320
|
+
const u = fr;
|
|
323
321
|
if (t) {
|
|
324
|
-
const
|
|
325
|
-
return t = null,
|
|
322
|
+
const v = t[u(349)](h, arguments);
|
|
323
|
+
return t = null, v;
|
|
326
324
|
}
|
|
327
325
|
} : function() {
|
|
328
326
|
};
|
|
329
327
|
return r = !1, e;
|
|
330
328
|
};
|
|
331
329
|
})(), Ve = E0(void 0, function() {
|
|
332
|
-
const r =
|
|
330
|
+
const r = fr;
|
|
333
331
|
let h;
|
|
334
332
|
try {
|
|
335
|
-
h = Function("retur" + r(
|
|
333
|
+
h = Function("retur" + r(340) + "nction() " + ('{}.constructor("retu' + r(324) + 'is")( )') + ");")();
|
|
336
334
|
} catch {
|
|
337
335
|
h = window;
|
|
338
336
|
}
|
|
339
|
-
const t = h[r(
|
|
340
|
-
for (let u = -
|
|
341
|
-
const
|
|
342
|
-
|
|
337
|
+
const t = h.console = h[r(341) + "le"] || {}, e = ["log", "warn", "info", "error", "excep" + r(353), "table", "trace"];
|
|
338
|
+
for (let u = 6910 + -1 * -1117 + 1 * -8027; u < e.length; u++) {
|
|
339
|
+
const v = E0[r(323) + "ructor"][r(343) + "type"][r(334)](E0), m = e[u], B = t[m] || v;
|
|
340
|
+
v.__proto__ = E0.bind(E0), v.toString = B[r(336) + r(358)].bind(B), t[m] = v;
|
|
343
341
|
}
|
|
344
342
|
});
|
|
345
343
|
Ve();
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
return
|
|
344
|
+
function sr() {
|
|
345
|
+
const r = ["now", "1HVGFSH", "okenR", "tion", "eItem", "efres", "95448mSLwqi", "isBro", "ing", "_expi", "1012302oTDSgj", "pathn", "remov", "fileT", "const", "rn th", "des", "wser", "15vliAem", "11yEdnXQ", "7MtmEUI", "setIt", "52844TWYrsS", "506570YobTzz", "re_ti", "bind", "484586ulvrfA", "toStr", "getIt", "FileT", "504747yomkvz", "n (fu", "conso", "2471604dfAqrT", "proto", "144ziTCFJ", "code", "ram", "token", "oken", "apply"];
|
|
346
|
+
return sr = function() {
|
|
347
|
+
return r;
|
|
348
|
+
}, sr();
|
|
349
|
+
}
|
|
350
|
+
const Br = "file_token", Cr = "file_token" + r0(359) + r0(333) + "me", Je = (-1 * -2680 + 1715 + -4335) * (1923 * -1 + -5 * 1171 + 8778);
|
|
351
|
+
function vr() {
|
|
352
|
+
return h0.getItem(Br);
|
|
349
353
|
}
|
|
350
354
|
function rt(r = Je) {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
355
|
+
const h = r0;
|
|
356
|
+
if (!vr()) return !0;
|
|
357
|
+
const e = h0[h(337) + "em"](Cr);
|
|
358
|
+
if (!e) return !1;
|
|
359
|
+
const u = Number(e);
|
|
360
|
+
return Date[h(350)]() + r > u;
|
|
356
361
|
}
|
|
357
362
|
function et(r, h) {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
h0.setItem(Br, String(e));
|
|
363
|
+
if (h0[r0(330) + "em"](Br, r), typeof h == "number" && h > 8 * 287 + -8418 + 1 * 6122) {
|
|
364
|
+
const e = Date.now() + h * 1e3;
|
|
365
|
+
h0.setItem(Cr, String(e));
|
|
362
366
|
}
|
|
363
367
|
}
|
|
364
368
|
function tt() {
|
|
365
|
-
|
|
369
|
+
const r = r0;
|
|
370
|
+
h0["remov" + r(354)](Br), h0["remov" + r(354)](Cr);
|
|
366
371
|
}
|
|
367
372
|
async function Pr(r) {
|
|
368
|
-
const h =
|
|
369
|
-
return t?.[h(
|
|
373
|
+
const h = r0, t = await r(), e = t?.data?.data;
|
|
374
|
+
return t?.data?.[h(345)] === -7789 + -640 * 13 + 1 * 16309 && e?.["file_" + h(347)] ? (et(e.file_token, e.expires_in), e.file_token) : null;
|
|
370
375
|
}
|
|
371
376
|
let xt = null;
|
|
372
377
|
function zr() {
|
|
373
|
-
|
|
378
|
+
const r = r0;
|
|
379
|
+
return cr[r(357) + r(326)]() ? xt : null;
|
|
374
380
|
}
|
|
375
381
|
async function De() {
|
|
376
|
-
const r =
|
|
377
|
-
if (!cr
|
|
378
|
-
const h =
|
|
382
|
+
const r = r0;
|
|
383
|
+
if (!cr["isBro" + r(326)]()) return vr();
|
|
384
|
+
const h = vr();
|
|
379
385
|
if (h && !rt()) return h;
|
|
380
386
|
try {
|
|
381
387
|
const t = await zr();
|
|
382
|
-
if (h && t?.[r(
|
|
383
|
-
const e = await Pr(t["
|
|
388
|
+
if (h && t?.["fetch" + r(338) + r(352) + r(355) + "h"]) {
|
|
389
|
+
const e = await Pr(t["fetch" + r(338) + "okenRefresh"]);
|
|
384
390
|
if (e) return e;
|
|
385
391
|
}
|
|
386
392
|
} catch {
|
|
387
393
|
}
|
|
388
394
|
try {
|
|
389
395
|
const t = zr();
|
|
390
|
-
return t?.["
|
|
396
|
+
return t?.["fetchFileT" + r(348)] ? await Pr(t["fetchFileT" + r(348)]) : null;
|
|
391
397
|
} catch {
|
|
392
398
|
return null;
|
|
393
399
|
}
|
|
394
400
|
}
|
|
395
401
|
function ge(r) {
|
|
396
|
-
const h =
|
|
397
|
-
if (!r || l0
|
|
402
|
+
const h = r0;
|
|
403
|
+
if (!r || l0.isDataUrl(r) || l0.isBlobUrl(r)) return !1;
|
|
398
404
|
const t = l0.parse(r);
|
|
399
|
-
return t ? t[h(
|
|
405
|
+
return t ? t[h(361) + "ame"].includes("/files/") && !l0["hasPa" + h(346)](r, "fileT" + h(348)) : r.includes("/files/") && !r["inclu" + h(325)](h(322) + "oken=");
|
|
400
406
|
}
|
|
401
407
|
function be(r, h) {
|
|
402
|
-
const t =
|
|
403
|
-
return !h || !ge(r) ? r : l0[t(
|
|
404
|
-
}
|
|
405
|
-
function Cr(r, h) {
|
|
406
|
-
return r = r - (1534 + -1 * 2929 + 1878), sr()[r];
|
|
408
|
+
const t = r0;
|
|
409
|
+
return !h || !ge(r) ? r : l0["addPa" + t(346)](r, "fileToken", h);
|
|
407
410
|
}
|
|
408
411
|
function nt(r) {
|
|
409
|
-
const h =
|
|
410
|
-
return l0
|
|
412
|
+
const h = r0;
|
|
413
|
+
return l0[h(362) + "eParam"](r, "fileT" + h(348));
|
|
411
414
|
}
|
|
412
415
|
async function at(r) {
|
|
413
416
|
if (!ge(r)) return r;
|
|
@@ -415,10 +418,9 @@ async function at(r) {
|
|
|
415
418
|
return be(r, h);
|
|
416
419
|
}
|
|
417
420
|
async function me(r, h) {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
if (p.status !== -3642 + 13 * 311) return p;
|
|
421
|
+
if (!cr["isBro" + r0(326)]()) return fetch(r, h);
|
|
422
|
+
const e = nt(r), u = await at(e), v = await fetch(u, h);
|
|
423
|
+
if (v.status !== 401) return v;
|
|
422
424
|
tt();
|
|
423
425
|
const m = await De(), B = be(e, m);
|
|
424
426
|
return fetch(B, h);
|
|
@@ -432,16 +434,16 @@ const _e = (r, h) => {
|
|
|
432
434
|
const u = window.location.hostname;
|
|
433
435
|
if (u === "localhost" || u === "127.0.0.1")
|
|
434
436
|
try {
|
|
435
|
-
const
|
|
437
|
+
const v = new URL(r);
|
|
436
438
|
if (t)
|
|
437
439
|
try {
|
|
438
440
|
const m = new URL(t).origin;
|
|
439
|
-
if (
|
|
441
|
+
if (v.origin === m)
|
|
440
442
|
return r;
|
|
441
443
|
} catch {
|
|
442
444
|
}
|
|
443
|
-
if (
|
|
444
|
-
return t ? `${t}${
|
|
445
|
+
if (v.pathname.startsWith("/files/"))
|
|
446
|
+
return t ? `${t}${v.pathname}${v.search}${v.hash}` : `${v.pathname}${v.search}${v.hash}`;
|
|
445
447
|
} catch {
|
|
446
448
|
}
|
|
447
449
|
}
|
|
@@ -457,8 +459,8 @@ const _e = (r, h) => {
|
|
|
457
459
|
if (!h || h <= 0) return r;
|
|
458
460
|
const t = Math.max(r.width, r.height);
|
|
459
461
|
if (t <= h) return r;
|
|
460
|
-
const e = h / t, u = Math.max(1, Math.round(r.width * e)),
|
|
461
|
-
return B ? (B.drawImage(r, 0, 0, u,
|
|
462
|
+
const e = h / t, u = Math.max(1, Math.round(r.width * e)), v = Math.max(1, Math.round(r.height * e)), m = ot(u, v), B = m.getContext("2d");
|
|
463
|
+
return B ? (B.drawImage(r, 0, 0, u, v), r.close?.(), await createImageBitmap(m)) : r;
|
|
462
464
|
};
|
|
463
465
|
async function it(r, h, t) {
|
|
464
466
|
if (typeof r == "string")
|
|
@@ -468,11 +470,11 @@ async function it(r, h, t) {
|
|
|
468
470
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
469
471
|
throw new Error(m);
|
|
470
472
|
}
|
|
471
|
-
const
|
|
472
|
-
if (!
|
|
473
|
+
const v = await u.blob();
|
|
474
|
+
if (!v.type.startsWith("image/") && v.size === 0)
|
|
473
475
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
474
476
|
try {
|
|
475
|
-
const m = await createImageBitmap(
|
|
477
|
+
const m = await createImageBitmap(v);
|
|
476
478
|
return await m0(m, h);
|
|
477
479
|
} catch (m) {
|
|
478
480
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
@@ -506,11 +508,11 @@ async function st(r, h, t) {
|
|
|
506
508
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
507
509
|
throw new Error(m);
|
|
508
510
|
}
|
|
509
|
-
const
|
|
510
|
-
if (!
|
|
511
|
+
const v = await u.blob();
|
|
512
|
+
if (!v.type.startsWith("image/") && v.size === 0)
|
|
511
513
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
512
514
|
try {
|
|
513
|
-
const m = await createImageBitmap(
|
|
515
|
+
const m = await createImageBitmap(v);
|
|
514
516
|
return await m0(m, h);
|
|
515
517
|
} catch (m) {
|
|
516
518
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
@@ -549,7 +551,7 @@ function Wr(r) {
|
|
|
549
551
|
"pass-through": "source-over"
|
|
550
552
|
}[h] || "source-over";
|
|
551
553
|
}
|
|
552
|
-
var
|
|
554
|
+
var hr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
553
555
|
function ct(r) {
|
|
554
556
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
555
557
|
var h = r.default;
|
|
@@ -588,22 +590,22 @@ function M() {
|
|
|
588
590
|
r.exports = e();
|
|
589
591
|
})(ht, function() {
|
|
590
592
|
var t = t || (function(e, u) {
|
|
591
|
-
var
|
|
592
|
-
if (typeof window < "u" && window.crypto && (
|
|
593
|
+
var v;
|
|
594
|
+
if (typeof window < "u" && window.crypto && (v = window.crypto), typeof self < "u" && self.crypto && (v = self.crypto), typeof globalThis < "u" && globalThis.crypto && (v = globalThis.crypto), !v && typeof window < "u" && window.msCrypto && (v = window.msCrypto), !v && typeof hr < "u" && hr.crypto && (v = hr.crypto), !v && typeof ft == "function")
|
|
593
595
|
try {
|
|
594
|
-
|
|
596
|
+
v = lt;
|
|
595
597
|
} catch {
|
|
596
598
|
}
|
|
597
599
|
var m = function() {
|
|
598
|
-
if (
|
|
599
|
-
if (typeof
|
|
600
|
+
if (v) {
|
|
601
|
+
if (typeof v.getRandomValues == "function")
|
|
600
602
|
try {
|
|
601
|
-
return
|
|
603
|
+
return v.getRandomValues(new Uint32Array(1))[0];
|
|
602
604
|
} catch {
|
|
603
605
|
}
|
|
604
|
-
if (typeof
|
|
606
|
+
if (typeof v.randomBytes == "function")
|
|
605
607
|
try {
|
|
606
|
-
return
|
|
608
|
+
return v.randomBytes(4).readInt32LE();
|
|
607
609
|
} catch {
|
|
608
610
|
}
|
|
609
611
|
}
|
|
@@ -875,7 +877,7 @@ function M() {
|
|
|
875
877
|
d[b >>> 2] |= (i.charCodeAt(b) & 255) << 24 - b % 4 * 8;
|
|
876
878
|
return new E.init(d, o);
|
|
877
879
|
}
|
|
878
|
-
},
|
|
880
|
+
}, p = a.Utf8 = {
|
|
879
881
|
/**
|
|
880
882
|
* Converts a word array to a UTF-8 string.
|
|
881
883
|
*
|
|
@@ -934,7 +936,7 @@ function M() {
|
|
|
934
936
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
935
937
|
*/
|
|
936
938
|
_append: function(i) {
|
|
937
|
-
typeof i == "string" && (i =
|
|
939
|
+
typeof i == "string" && (i = p.parse(i)), this._data.concat(i), this._nDataBytes += i.sigBytes;
|
|
938
940
|
},
|
|
939
941
|
/**
|
|
940
942
|
* Processes available data blocks.
|
|
@@ -1083,13 +1085,13 @@ function M() {
|
|
|
1083
1085
|
})(y0)), y0.exports;
|
|
1084
1086
|
}
|
|
1085
1087
|
var w0 = { exports: {} }, vt = w0.exports, Lr;
|
|
1086
|
-
function
|
|
1088
|
+
function ur() {
|
|
1087
1089
|
return Lr || (Lr = 1, (function(r, h) {
|
|
1088
1090
|
(function(t, e) {
|
|
1089
1091
|
r.exports = e(M());
|
|
1090
1092
|
})(vt, function(t) {
|
|
1091
1093
|
return (function(e) {
|
|
1092
|
-
var u = t,
|
|
1094
|
+
var u = t, v = u.lib, m = v.Base, B = v.WordArray, C = u.x64 = {};
|
|
1093
1095
|
C.Word = m.extend({
|
|
1094
1096
|
/**
|
|
1095
1097
|
* Initializes a newly created 64-bit word.
|
|
@@ -1320,7 +1322,7 @@ function Bt() {
|
|
|
1320
1322
|
})(pt, function(t) {
|
|
1321
1323
|
return (function() {
|
|
1322
1324
|
if (typeof ArrayBuffer == "function") {
|
|
1323
|
-
var e = t, u = e.lib,
|
|
1325
|
+
var e = t, u = e.lib, v = u.WordArray, m = v.init, B = v.init = function(C) {
|
|
1324
1326
|
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) {
|
|
1325
1327
|
for (var x = C.byteLength, n = [], E = 0; E < x; E++)
|
|
1326
1328
|
n[E >>> 2] |= C[E] << 24 - E % 4 * 8;
|
|
@@ -1328,7 +1330,7 @@ function Bt() {
|
|
|
1328
1330
|
} else
|
|
1329
1331
|
m.apply(this, arguments);
|
|
1330
1332
|
};
|
|
1331
|
-
B.prototype =
|
|
1333
|
+
B.prototype = v;
|
|
1332
1334
|
}
|
|
1333
1335
|
})(), t.lib.WordArray;
|
|
1334
1336
|
});
|
|
@@ -1341,7 +1343,7 @@ function Et() {
|
|
|
1341
1343
|
r.exports = e(M());
|
|
1342
1344
|
})(Ct, function(t) {
|
|
1343
1345
|
return (function() {
|
|
1344
|
-
var e = t, u = e.lib,
|
|
1346
|
+
var e = t, u = e.lib, v = u.WordArray, m = e.enc;
|
|
1345
1347
|
m.Utf16 = m.Utf16BE = {
|
|
1346
1348
|
/**
|
|
1347
1349
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1379,7 +1381,7 @@ function Et() {
|
|
|
1379
1381
|
parse: function(C) {
|
|
1380
1382
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1381
1383
|
n[E >>> 1] |= C.charCodeAt(E) << 16 - E % 2 * 16;
|
|
1382
|
-
return
|
|
1384
|
+
return v.create(n, x * 2);
|
|
1383
1385
|
}
|
|
1384
1386
|
}, m.Utf16LE = {
|
|
1385
1387
|
/**
|
|
@@ -1418,7 +1420,7 @@ function Et() {
|
|
|
1418
1420
|
parse: function(C) {
|
|
1419
1421
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1420
1422
|
n[E >>> 1] |= B(C.charCodeAt(E) << 16 - E % 2 * 16);
|
|
1421
|
-
return
|
|
1423
|
+
return v.create(n, x * 2);
|
|
1422
1424
|
}
|
|
1423
1425
|
};
|
|
1424
1426
|
function B(C) {
|
|
@@ -1435,7 +1437,7 @@ function i0() {
|
|
|
1435
1437
|
r.exports = e(M());
|
|
1436
1438
|
})(At, function(t) {
|
|
1437
1439
|
return (function() {
|
|
1438
|
-
var e = t, u = e.lib,
|
|
1440
|
+
var e = t, u = e.lib, v = u.WordArray, m = e.enc;
|
|
1439
1441
|
m.Base64 = {
|
|
1440
1442
|
/**
|
|
1441
1443
|
* Converts a word array to a Base64 string.
|
|
@@ -1454,7 +1456,7 @@ function i0() {
|
|
|
1454
1456
|
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1455
1457
|
C.clamp();
|
|
1456
1458
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1457
|
-
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255,
|
|
1459
|
+
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, g = f << 16 | p << 8 | l, i = 0; i < 4 && s + i * 0.75 < n; i++)
|
|
1458
1460
|
a.push(E.charAt(g >>> 6 * (3 - i) & 63));
|
|
1459
1461
|
var o = E.charAt(64);
|
|
1460
1462
|
if (o)
|
|
@@ -1494,10 +1496,10 @@ function i0() {
|
|
|
1494
1496
|
function B(C, x, n) {
|
|
1495
1497
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1496
1498
|
if (s % 4) {
|
|
1497
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1499
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | p;
|
|
1498
1500
|
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1499
1501
|
}
|
|
1500
|
-
return
|
|
1502
|
+
return v.create(E, a);
|
|
1501
1503
|
}
|
|
1502
1504
|
})(), t.enc.Base64;
|
|
1503
1505
|
});
|
|
@@ -1510,7 +1512,7 @@ function Dt() {
|
|
|
1510
1512
|
r.exports = e(M());
|
|
1511
1513
|
})(Ft, function(t) {
|
|
1512
1514
|
return (function() {
|
|
1513
|
-
var e = t, u = e.lib,
|
|
1515
|
+
var e = t, u = e.lib, v = u.WordArray, m = e.enc;
|
|
1514
1516
|
m.Base64url = {
|
|
1515
1517
|
/**
|
|
1516
1518
|
* Converts a word array to a Base64url string.
|
|
@@ -1532,7 +1534,7 @@ function Dt() {
|
|
|
1532
1534
|
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1533
1535
|
C.clamp();
|
|
1534
1536
|
for (var s = [], f = 0; f < E; f += 3)
|
|
1535
|
-
for (var
|
|
1537
|
+
for (var p = n[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = n[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, g = n[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, i = p << 16 | l << 8 | g, o = 0; o < 4 && f + o * 0.75 < E; o++)
|
|
1536
1538
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1537
1539
|
var d = a.charAt(64);
|
|
1538
1540
|
if (d)
|
|
@@ -1565,8 +1567,8 @@ function Dt() {
|
|
|
1565
1567
|
}
|
|
1566
1568
|
var f = E.charAt(64);
|
|
1567
1569
|
if (f) {
|
|
1568
|
-
var
|
|
1569
|
-
|
|
1570
|
+
var p = C.indexOf(f);
|
|
1571
|
+
p !== -1 && (n = p);
|
|
1570
1572
|
}
|
|
1571
1573
|
return B(C, n, a);
|
|
1572
1574
|
},
|
|
@@ -1576,10 +1578,10 @@ function Dt() {
|
|
|
1576
1578
|
function B(C, x, n) {
|
|
1577
1579
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1578
1580
|
if (s % 4) {
|
|
1579
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1581
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | p;
|
|
1580
1582
|
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1581
1583
|
}
|
|
1582
|
-
return
|
|
1584
|
+
return v.create(E, a);
|
|
1583
1585
|
}
|
|
1584
1586
|
})(), t.enc.Base64url;
|
|
1585
1587
|
});
|
|
@@ -1592,10 +1594,10 @@ function s0() {
|
|
|
1592
1594
|
r.exports = e(M());
|
|
1593
1595
|
})(gt, function(t) {
|
|
1594
1596
|
return (function(e) {
|
|
1595
|
-
var u = t,
|
|
1597
|
+
var u = t, v = u.lib, m = v.WordArray, B = v.Hasher, C = u.algo, x = [];
|
|
1596
1598
|
(function() {
|
|
1597
|
-
for (var
|
|
1598
|
-
x[
|
|
1599
|
+
for (var p = 0; p < 64; p++)
|
|
1600
|
+
x[p] = e.abs(e.sin(p + 1)) * 4294967296 | 0;
|
|
1599
1601
|
})();
|
|
1600
1602
|
var n = C.MD5 = B.extend({
|
|
1601
1603
|
_doReset: function() {
|
|
@@ -1606,19 +1608,19 @@ function s0() {
|
|
|
1606
1608
|
271733878
|
|
1607
1609
|
]);
|
|
1608
1610
|
},
|
|
1609
|
-
_doProcessBlock: function(
|
|
1611
|
+
_doProcessBlock: function(p, l) {
|
|
1610
1612
|
for (var g = 0; g < 16; g++) {
|
|
1611
|
-
var i = l + g, o =
|
|
1612
|
-
|
|
1613
|
+
var i = l + g, o = p[i];
|
|
1614
|
+
p[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1613
1615
|
}
|
|
1614
|
-
var d = this._hash.words, b =
|
|
1616
|
+
var d = this._hash.words, b = p[l + 0], D = 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];
|
|
1615
1617
|
S = E(S, c, A, _, b, 7, x[0]), _ = E(_, S, c, A, D, 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, _, D, 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, _, D, 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, D, 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;
|
|
1616
1618
|
},
|
|
1617
1619
|
_doFinalize: function() {
|
|
1618
|
-
var
|
|
1620
|
+
var p = this._data, l = p.words, g = this._nDataBytes * 8, i = p.sigBytes * 8;
|
|
1619
1621
|
l[i >>> 5] |= 128 << 24 - i % 32;
|
|
1620
1622
|
var o = e.floor(g / 4294967296), d = g;
|
|
1621
|
-
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,
|
|
1623
|
+
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();
|
|
1622
1624
|
for (var b = this._hash, D = b.words, y = 0; y < 4; y++) {
|
|
1623
1625
|
var k = D[y];
|
|
1624
1626
|
D[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
@@ -1626,24 +1628,24 @@ function s0() {
|
|
|
1626
1628
|
return b;
|
|
1627
1629
|
},
|
|
1628
1630
|
clone: function() {
|
|
1629
|
-
var
|
|
1630
|
-
return
|
|
1631
|
+
var p = B.clone.call(this);
|
|
1632
|
+
return p._hash = this._hash.clone(), p;
|
|
1631
1633
|
}
|
|
1632
1634
|
});
|
|
1633
|
-
function E(
|
|
1634
|
-
var D =
|
|
1635
|
+
function E(p, l, g, i, o, d, b) {
|
|
1636
|
+
var D = p + (l & g | ~l & i) + o + b;
|
|
1635
1637
|
return (D << d | D >>> 32 - d) + l;
|
|
1636
1638
|
}
|
|
1637
|
-
function a(
|
|
1638
|
-
var D =
|
|
1639
|
+
function a(p, l, g, i, o, d, b) {
|
|
1640
|
+
var D = p + (l & i | g & ~i) + o + b;
|
|
1639
1641
|
return (D << d | D >>> 32 - d) + l;
|
|
1640
1642
|
}
|
|
1641
|
-
function s(
|
|
1642
|
-
var D =
|
|
1643
|
+
function s(p, l, g, i, o, d, b) {
|
|
1644
|
+
var D = p + (l ^ g ^ i) + o + b;
|
|
1643
1645
|
return (D << d | D >>> 32 - d) + l;
|
|
1644
1646
|
}
|
|
1645
|
-
function f(
|
|
1646
|
-
var D =
|
|
1647
|
+
function f(p, l, g, i, o, d, b) {
|
|
1648
|
+
var D = p + (g ^ (l | ~i)) + o + b;
|
|
1647
1649
|
return (D << d | D >>> 32 - d) + l;
|
|
1648
1650
|
}
|
|
1649
1651
|
u.MD5 = B._createHelper(n), u.HmacMD5 = B._createHmacHelper(n);
|
|
@@ -1658,9 +1660,9 @@ function ye() {
|
|
|
1658
1660
|
r.exports = e(M());
|
|
1659
1661
|
})(bt, function(t) {
|
|
1660
1662
|
return (function() {
|
|
1661
|
-
var e = t, u = e.lib,
|
|
1663
|
+
var e = t, u = e.lib, v = u.WordArray, m = u.Hasher, B = e.algo, C = [], x = B.SHA1 = m.extend({
|
|
1662
1664
|
_doReset: function() {
|
|
1663
|
-
this._hash = new
|
|
1665
|
+
this._hash = new v.init([
|
|
1664
1666
|
1732584193,
|
|
1665
1667
|
4023233417,
|
|
1666
1668
|
2562383102,
|
|
@@ -1669,7 +1671,7 @@ function ye() {
|
|
|
1669
1671
|
]);
|
|
1670
1672
|
},
|
|
1671
1673
|
_doProcessBlock: function(n, E) {
|
|
1672
|
-
for (var a = this._hash.words, s = a[0], f = a[1],
|
|
1674
|
+
for (var a = this._hash.words, s = a[0], f = a[1], p = a[2], l = a[3], g = a[4], i = 0; i < 80; i++) {
|
|
1673
1675
|
if (i < 16)
|
|
1674
1676
|
C[i] = n[E + i] | 0;
|
|
1675
1677
|
else {
|
|
@@ -1677,9 +1679,9 @@ function ye() {
|
|
|
1677
1679
|
C[i] = o << 1 | o >>> 31;
|
|
1678
1680
|
}
|
|
1679
1681
|
var d = (s << 5 | s >>> 27) + g + C[i];
|
|
1680
|
-
i < 20 ? d += (f &
|
|
1682
|
+
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, g = l, l = p, p = f << 30 | f >>> 2, f = s, s = d;
|
|
1681
1683
|
}
|
|
1682
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] +
|
|
1684
|
+
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] + g | 0;
|
|
1683
1685
|
},
|
|
1684
1686
|
_doFinalize: function() {
|
|
1685
1687
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
@@ -1702,7 +1704,7 @@ function Er() {
|
|
|
1702
1704
|
r.exports = e(M());
|
|
1703
1705
|
})(mt, function(t) {
|
|
1704
1706
|
return (function(e) {
|
|
1705
|
-
var u = t,
|
|
1707
|
+
var u = t, v = u.lib, m = v.WordArray, B = v.Hasher, C = u.algo, x = [], n = [];
|
|
1706
1708
|
(function() {
|
|
1707
1709
|
function s(g) {
|
|
1708
1710
|
for (var i = e.sqrt(g), o = 2; o <= i; o++)
|
|
@@ -1713,15 +1715,15 @@ function Er() {
|
|
|
1713
1715
|
function f(g) {
|
|
1714
1716
|
return (g - (g | 0)) * 4294967296 | 0;
|
|
1715
1717
|
}
|
|
1716
|
-
for (var
|
|
1717
|
-
s(
|
|
1718
|
+
for (var p = 2, l = 0; l < 64; )
|
|
1719
|
+
s(p) && (l < 8 && (x[l] = f(e.pow(p, 1 / 2))), n[l] = f(e.pow(p, 1 / 3)), l++), p++;
|
|
1718
1720
|
})();
|
|
1719
1721
|
var E = [], a = C.SHA256 = B.extend({
|
|
1720
1722
|
_doReset: function() {
|
|
1721
1723
|
this._hash = new m.init(x.slice(0));
|
|
1722
1724
|
},
|
|
1723
1725
|
_doProcessBlock: function(s, f) {
|
|
1724
|
-
for (var
|
|
1726
|
+
for (var p = this._hash.words, l = p[0], g = p[1], i = p[2], o = p[3], d = p[4], b = p[5], D = p[6], y = p[7], k = 0; k < 64; k++) {
|
|
1725
1727
|
if (k < 16)
|
|
1726
1728
|
E[k] = s[f + k] | 0;
|
|
1727
1729
|
else {
|
|
@@ -1731,11 +1733,11 @@ function Er() {
|
|
|
1731
1733
|
var $ = d & b ^ ~d & D, z = l & g ^ l & i ^ g & 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;
|
|
1732
1734
|
y = D, D = b, b = d, d = o + U | 0, o = i, i = g, g = l, l = U + T | 0;
|
|
1733
1735
|
}
|
|
1734
|
-
|
|
1736
|
+
p[0] = p[0] + l | 0, p[1] = p[1] + g | 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] + D | 0, p[7] = p[7] + y | 0;
|
|
1735
1737
|
},
|
|
1736
1738
|
_doFinalize: function() {
|
|
1737
|
-
var s = this._data, f = s.words,
|
|
1738
|
-
return f[l >>> 5] |= 128 << 24 - l % 32, f[(l + 64 >>> 9 << 4) + 14] = e.floor(
|
|
1739
|
+
var s = this._data, f = s.words, p = this._nDataBytes * 8, l = s.sigBytes * 8;
|
|
1740
|
+
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;
|
|
1739
1741
|
},
|
|
1740
1742
|
clone: function() {
|
|
1741
1743
|
var s = B.clone.call(this);
|
|
@@ -1754,9 +1756,9 @@ function yt() {
|
|
|
1754
1756
|
r.exports = e(M(), Er());
|
|
1755
1757
|
})(_t, function(t) {
|
|
1756
1758
|
return (function() {
|
|
1757
|
-
var e = t, u = e.lib,
|
|
1759
|
+
var e = t, u = e.lib, v = u.WordArray, m = e.algo, B = m.SHA256, C = m.SHA224 = B.extend({
|
|
1758
1760
|
_doReset: function() {
|
|
1759
|
-
this._hash = new
|
|
1761
|
+
this._hash = new v.init([
|
|
1760
1762
|
3238371032,
|
|
1761
1763
|
914150663,
|
|
1762
1764
|
812702999,
|
|
@@ -1781,10 +1783,10 @@ var I0 = { exports: {} }, wt = I0.exports, Kr;
|
|
|
1781
1783
|
function we() {
|
|
1782
1784
|
return Kr || (Kr = 1, (function(r, h) {
|
|
1783
1785
|
(function(t, e, u) {
|
|
1784
|
-
r.exports = e(M(),
|
|
1786
|
+
r.exports = e(M(), ur());
|
|
1785
1787
|
})(wt, function(t) {
|
|
1786
1788
|
return (function() {
|
|
1787
|
-
var e = t, u = e.lib,
|
|
1789
|
+
var e = t, u = e.lib, v = u.Hasher, m = e.x64, B = m.Word, C = m.WordArray, x = e.algo;
|
|
1788
1790
|
function n() {
|
|
1789
1791
|
return B.create.apply(B, arguments);
|
|
1790
1792
|
}
|
|
@@ -1874,7 +1876,7 @@ function we() {
|
|
|
1874
1876
|
for (var f = 0; f < 80; f++)
|
|
1875
1877
|
a[f] = n();
|
|
1876
1878
|
})();
|
|
1877
|
-
var s = x.SHA512 =
|
|
1879
|
+
var s = x.SHA512 = v.extend({
|
|
1878
1880
|
_doReset: function() {
|
|
1879
1881
|
this._hash = new C.init([
|
|
1880
1882
|
new B.init(1779033703, 4089235720),
|
|
@@ -1887,33 +1889,33 @@ function we() {
|
|
|
1887
1889
|
new B.init(1541459225, 327033209)
|
|
1888
1890
|
]);
|
|
1889
1891
|
},
|
|
1890
|
-
_doProcessBlock: function(f,
|
|
1891
|
-
for (var l = this._hash.words, g = l[0], i = l[1], o = l[2], d = l[3], b = l[4], D = l[5], y = l[6], k = l[7], R = g.high, F = g.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 = D.high, j = D.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,
|
|
1892
|
-
var J, x0, g0 = a[
|
|
1893
|
-
if (
|
|
1894
|
-
x0 = g0.high = f[
|
|
1892
|
+
_doProcessBlock: function(f, p) {
|
|
1893
|
+
for (var l = this._hash.words, g = l[0], i = l[1], o = l[2], d = l[3], b = l[4], D = l[5], y = l[6], k = l[7], R = g.high, F = g.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 = D.high, j = D.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++) {
|
|
1894
|
+
var J, x0, g0 = a[t0];
|
|
1895
|
+
if (t0 < 16)
|
|
1896
|
+
x0 = g0.high = f[p + t0 * 2] | 0, J = g0.low = f[p + t0 * 2 + 1] | 0;
|
|
1895
1897
|
else {
|
|
1896
|
-
var Dr = a[
|
|
1898
|
+
var Dr = a[t0 - 15], f0 = Dr.high, B0 = Dr.low, Re = (f0 >>> 1 | B0 << 31) ^ (f0 >>> 8 | B0 << 24) ^ f0 >>> 7, gr = (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;
|
|
1897
1899
|
J = gr + We, x0 = Re + ze + (J >>> 0 < gr >>> 0 ? 1 : 0), J = J + mr, x0 = x0 + Pe + (J >>> 0 < mr >>> 0 ? 1 : 0), J = J + wr, x0 = x0 + Ie + (J >>> 0 < wr >>> 0 ? 1 : 0), g0.high = x0, g0.low = J;
|
|
1898
1900
|
}
|
|
1899
|
-
var Le = G &
|
|
1900
|
-
|
|
1901
|
+
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 + J, n0 = n0 + x0 + (V >>> 0 < J >>> 0 ? 1 : 0), Rr = Sr + qe, je = Te + Oe + (Rr >>> 0 < Sr >>> 0 ? 1 : 0);
|
|
1902
|
+
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;
|
|
1901
1903
|
}
|
|
1902
|
-
F = g.low = F + P, g.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 = D.low = j + c0, D.high = N +
|
|
1904
|
+
F = g.low = F + P, g.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 = D.low = j + c0, D.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);
|
|
1903
1905
|
},
|
|
1904
1906
|
_doFinalize: function() {
|
|
1905
|
-
var f = this._data,
|
|
1906
|
-
|
|
1907
|
+
var f = this._data, p = f.words, l = this._nDataBytes * 8, g = f.sigBytes * 8;
|
|
1908
|
+
p[g >>> 5] |= 128 << 24 - g % 32, p[(g + 128 >>> 10 << 5) + 30] = Math.floor(l / 4294967296), p[(g + 128 >>> 10 << 5) + 31] = l, f.sigBytes = p.length * 4, this._process();
|
|
1907
1909
|
var i = this._hash.toX32();
|
|
1908
1910
|
return i;
|
|
1909
1911
|
},
|
|
1910
1912
|
clone: function() {
|
|
1911
|
-
var f =
|
|
1913
|
+
var f = v.clone.call(this);
|
|
1912
1914
|
return f._hash = this._hash.clone(), f;
|
|
1913
1915
|
},
|
|
1914
1916
|
blockSize: 1024 / 32
|
|
1915
1917
|
});
|
|
1916
|
-
e.SHA512 =
|
|
1918
|
+
e.SHA512 = v._createHelper(s), e.HmacSHA512 = v._createHmacHelper(s);
|
|
1917
1919
|
})(), t.SHA512;
|
|
1918
1920
|
});
|
|
1919
1921
|
})(I0)), I0.exports;
|
|
@@ -1922,20 +1924,20 @@ var L0 = { exports: {} }, kt = L0.exports, Xr;
|
|
|
1922
1924
|
function St() {
|
|
1923
1925
|
return Xr || (Xr = 1, (function(r, h) {
|
|
1924
1926
|
(function(t, e, u) {
|
|
1925
|
-
r.exports = e(M(),
|
|
1927
|
+
r.exports = e(M(), ur(), we());
|
|
1926
1928
|
})(kt, function(t) {
|
|
1927
1929
|
return (function() {
|
|
1928
|
-
var e = t, u = e.x64,
|
|
1930
|
+
var e = t, u = e.x64, v = u.Word, m = u.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1929
1931
|
_doReset: function() {
|
|
1930
1932
|
this._hash = new m.init([
|
|
1931
|
-
new
|
|
1932
|
-
new
|
|
1933
|
-
new
|
|
1934
|
-
new
|
|
1935
|
-
new
|
|
1936
|
-
new
|
|
1937
|
-
new
|
|
1938
|
-
new
|
|
1933
|
+
new v.init(3418070365, 3238371032),
|
|
1934
|
+
new v.init(1654270250, 914150663),
|
|
1935
|
+
new v.init(2438529370, 812702999),
|
|
1936
|
+
new v.init(355462360, 4144912697),
|
|
1937
|
+
new v.init(1731405415, 4290775857),
|
|
1938
|
+
new v.init(2394180231, 1750603025),
|
|
1939
|
+
new v.init(3675008525, 1694076839),
|
|
1940
|
+
new v.init(1203062813, 3204075428)
|
|
1939
1941
|
]);
|
|
1940
1942
|
},
|
|
1941
1943
|
_doFinalize: function() {
|
|
@@ -1952,10 +1954,10 @@ var O0 = { exports: {} }, Ht = O0.exports, Yr;
|
|
|
1952
1954
|
function $t() {
|
|
1953
1955
|
return Yr || (Yr = 1, (function(r, h) {
|
|
1954
1956
|
(function(t, e, u) {
|
|
1955
|
-
r.exports = e(M(),
|
|
1957
|
+
r.exports = e(M(), ur());
|
|
1956
1958
|
})(Ht, function(t) {
|
|
1957
1959
|
return (function(e) {
|
|
1958
|
-
var u = t,
|
|
1960
|
+
var u = t, v = u.lib, m = v.WordArray, B = v.Hasher, C = u.x64, x = C.Word, n = u.algo, E = [], a = [], s = [];
|
|
1959
1961
|
(function() {
|
|
1960
1962
|
for (var l = 1, g = 0, i = 0; i < 24; i++) {
|
|
1961
1963
|
E[l + 5 * g] = (i + 1) * (i + 2) / 2 % 64;
|
|
@@ -1981,7 +1983,7 @@ function $t() {
|
|
|
1981
1983
|
for (var l = 0; l < 25; l++)
|
|
1982
1984
|
f[l] = x.create();
|
|
1983
1985
|
})();
|
|
1984
|
-
var
|
|
1986
|
+
var p = n.SHA3 = B.extend({
|
|
1985
1987
|
/**
|
|
1986
1988
|
* Configuration options.
|
|
1987
1989
|
*
|
|
@@ -2053,7 +2055,7 @@ function $t() {
|
|
|
2053
2055
|
return l;
|
|
2054
2056
|
}
|
|
2055
2057
|
});
|
|
2056
|
-
u.SHA3 = B._createHelper(
|
|
2058
|
+
u.SHA3 = B._createHelper(p), u.HmacSHA3 = B._createHmacHelper(p);
|
|
2057
2059
|
})(Math), t.SHA3;
|
|
2058
2060
|
});
|
|
2059
2061
|
})(O0)), O0.exports;
|
|
@@ -2065,7 +2067,7 @@ function Pt() {
|
|
|
2065
2067
|
r.exports = e(M());
|
|
2066
2068
|
})(Rt, function(t) {
|
|
2067
2069
|
return (function(e) {
|
|
2068
|
-
var u = t,
|
|
2070
|
+
var u = t, v = u.lib, m = v.WordArray, B = v.Hasher, C = u.algo, x = m.create([
|
|
2069
2071
|
0,
|
|
2070
2072
|
1,
|
|
2071
2073
|
2,
|
|
@@ -2389,7 +2391,7 @@ function Pt() {
|
|
|
2389
2391
|
13,
|
|
2390
2392
|
11,
|
|
2391
2393
|
11
|
|
2392
|
-
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
|
|
2394
|
+
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), p = C.RIPEMD160 = B.extend({
|
|
2393
2395
|
_doReset: function() {
|
|
2394
2396
|
this._hash = m.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2395
2397
|
},
|
|
@@ -2436,7 +2438,7 @@ function Pt() {
|
|
|
2436
2438
|
function b(D, y) {
|
|
2437
2439
|
return D << y | D >>> 32 - y;
|
|
2438
2440
|
}
|
|
2439
|
-
u.RIPEMD160 = B._createHelper(
|
|
2441
|
+
u.RIPEMD160 = B._createHelper(p), u.HmacRIPEMD160 = B._createHmacHelper(p);
|
|
2440
2442
|
})(), t.RIPEMD160;
|
|
2441
2443
|
});
|
|
2442
2444
|
})(q0)), q0.exports;
|
|
@@ -2448,8 +2450,8 @@ function Ar() {
|
|
|
2448
2450
|
r.exports = e(M());
|
|
2449
2451
|
})(zt, function(t) {
|
|
2450
2452
|
(function() {
|
|
2451
|
-
var e = t, u = e.lib,
|
|
2452
|
-
C.HMAC =
|
|
2453
|
+
var e = t, u = e.lib, v = u.Base, m = e.enc, B = m.Utf8, C = e.algo;
|
|
2454
|
+
C.HMAC = v.extend({
|
|
2453
2455
|
/**
|
|
2454
2456
|
* Initializes a newly created HMAC.
|
|
2455
2457
|
*
|
|
@@ -2464,8 +2466,8 @@ function Ar() {
|
|
|
2464
2466
|
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2465
2467
|
var E = x.blockSize, a = E * 4;
|
|
2466
2468
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2467
|
-
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(),
|
|
2468
|
-
|
|
2469
|
+
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), p = s.words, l = f.words, g = 0; g < E; g++)
|
|
2470
|
+
p[g] ^= 1549556828, l[g] ^= 909522486;
|
|
2469
2471
|
s.sigBytes = f.sigBytes = a, this.reset();
|
|
2470
2472
|
},
|
|
2471
2473
|
/**
|
|
@@ -2526,7 +2528,7 @@ function It() {
|
|
|
2526
2528
|
r.exports = e(M(), Er(), Ar());
|
|
2527
2529
|
})(Wt, function(t) {
|
|
2528
2530
|
return (function() {
|
|
2529
|
-
var e = t, u = e.lib,
|
|
2531
|
+
var e = t, u = e.lib, v = u.Base, m = u.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = v.extend({
|
|
2530
2532
|
/**
|
|
2531
2533
|
* Configuration options.
|
|
2532
2534
|
*
|
|
@@ -2534,7 +2536,7 @@ function It() {
|
|
|
2534
2536
|
* @property {Hasher} hasher The hasher to use. Default: SHA256
|
|
2535
2537
|
* @property {number} iterations The number of iterations to perform. Default: 250000
|
|
2536
2538
|
*/
|
|
2537
|
-
cfg:
|
|
2539
|
+
cfg: v.extend({
|
|
2538
2540
|
keySize: 128 / 32,
|
|
2539
2541
|
hasher: C,
|
|
2540
2542
|
iterations: 25e4
|
|
@@ -2566,7 +2568,7 @@ function It() {
|
|
|
2566
2568
|
* var key = kdf.compute(password, salt);
|
|
2567
2569
|
*/
|
|
2568
2570
|
compute: function(E, a) {
|
|
2569
|
-
for (var s = this.cfg, f = x.create(s.hasher, E),
|
|
2571
|
+
for (var s = this.cfg, f = x.create(s.hasher, E), p = m.create(), l = m.create([1]), g = p.words, i = l.words, o = s.keySize, d = s.iterations; g.length < o; ) {
|
|
2570
2572
|
var b = f.update(a).finalize(l);
|
|
2571
2573
|
f.reset();
|
|
2572
2574
|
for (var D = b.words, y = D.length, k = b, R = 1; R < d; R++) {
|
|
@@ -2574,9 +2576,9 @@ function It() {
|
|
|
2574
2576
|
for (var F = k.words, w = 0; w < y; w++)
|
|
2575
2577
|
D[w] ^= F[w];
|
|
2576
2578
|
}
|
|
2577
|
-
|
|
2579
|
+
p.concat(b), i[0]++;
|
|
2578
2580
|
}
|
|
2579
|
-
return
|
|
2581
|
+
return p.sigBytes = o * 4, p;
|
|
2580
2582
|
}
|
|
2581
2583
|
});
|
|
2582
2584
|
e.PBKDF2 = function(E, a, s) {
|
|
@@ -2593,7 +2595,7 @@ function a0() {
|
|
|
2593
2595
|
r.exports = e(M(), ye(), Ar());
|
|
2594
2596
|
})(Lt, function(t) {
|
|
2595
2597
|
return (function() {
|
|
2596
|
-
var e = t, u = e.lib,
|
|
2598
|
+
var e = t, u = e.lib, v = u.Base, m = u.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = v.extend({
|
|
2597
2599
|
/**
|
|
2598
2600
|
* Configuration options.
|
|
2599
2601
|
*
|
|
@@ -2601,7 +2603,7 @@ function a0() {
|
|
|
2601
2603
|
* @property {Hasher} hasher The hash algorithm to use. Default: MD5
|
|
2602
2604
|
* @property {number} iterations The number of iterations to perform. Default: 1
|
|
2603
2605
|
*/
|
|
2604
|
-
cfg:
|
|
2606
|
+
cfg: v.extend({
|
|
2605
2607
|
keySize: 128 / 32,
|
|
2606
2608
|
hasher: C,
|
|
2607
2609
|
iterations: 1
|
|
@@ -2633,13 +2635,13 @@ function a0() {
|
|
|
2633
2635
|
* var key = kdf.compute(password, salt);
|
|
2634
2636
|
*/
|
|
2635
2637
|
compute: function(n, E) {
|
|
2636
|
-
for (var a, s = this.cfg, f = s.hasher.create(),
|
|
2638
|
+
for (var a, s = this.cfg, f = s.hasher.create(), p = m.create(), l = p.words, g = s.keySize, i = s.iterations; l.length < g; ) {
|
|
2637
2639
|
a && f.update(a), a = f.update(n).finalize(E), f.reset();
|
|
2638
2640
|
for (var o = 1; o < i; o++)
|
|
2639
2641
|
a = f.finalize(a), f.reset();
|
|
2640
|
-
|
|
2642
|
+
p.concat(a);
|
|
2641
2643
|
}
|
|
2642
|
-
return
|
|
2644
|
+
return p.sigBytes = g * 4, p;
|
|
2643
2645
|
}
|
|
2644
2646
|
});
|
|
2645
2647
|
e.EvpKDF = function(n, E, a) {
|
|
@@ -2656,9 +2658,9 @@ function X() {
|
|
|
2656
2658
|
r.exports = e(M(), a0());
|
|
2657
2659
|
})(Ot, function(t) {
|
|
2658
2660
|
t.lib.Cipher || (function(e) {
|
|
2659
|
-
var u = t,
|
|
2661
|
+
var u = t, v = u.lib, m = v.Base, B = v.WordArray, C = v.BufferedBlockAlgorithm, x = u.enc;
|
|
2660
2662
|
x.Utf8;
|
|
2661
|
-
var n = x.Base64, E = u.algo, a = E.EvpKDF, s =
|
|
2663
|
+
var n = x.Base64, E = u.algo, a = E.EvpKDF, s = v.Cipher = C.extend({
|
|
2662
2664
|
/**
|
|
2663
2665
|
* Configuration options.
|
|
2664
2666
|
*
|
|
@@ -2790,14 +2792,14 @@ function X() {
|
|
|
2790
2792
|
};
|
|
2791
2793
|
})()
|
|
2792
2794
|
});
|
|
2793
|
-
|
|
2795
|
+
v.StreamCipher = s.extend({
|
|
2794
2796
|
_doFinalize: function() {
|
|
2795
2797
|
var F = this._process(!0);
|
|
2796
2798
|
return F;
|
|
2797
2799
|
},
|
|
2798
2800
|
blockSize: 1
|
|
2799
2801
|
});
|
|
2800
|
-
var f = u.mode = {},
|
|
2802
|
+
var f = u.mode = {}, p = v.BlockCipherMode = m.extend({
|
|
2801
2803
|
/**
|
|
2802
2804
|
* Creates this mode for encryption.
|
|
2803
2805
|
*
|
|
@@ -2842,7 +2844,7 @@ function X() {
|
|
|
2842
2844
|
this._cipher = F, this._iv = w;
|
|
2843
2845
|
}
|
|
2844
2846
|
}), l = f.CBC = (function() {
|
|
2845
|
-
var F =
|
|
2847
|
+
var F = p.extend();
|
|
2846
2848
|
F.Encryptor = F.extend({
|
|
2847
2849
|
/**
|
|
2848
2850
|
* Processes the data block at offset.
|
|
@@ -2916,7 +2918,7 @@ function X() {
|
|
|
2916
2918
|
F.sigBytes -= w;
|
|
2917
2919
|
}
|
|
2918
2920
|
};
|
|
2919
|
-
|
|
2921
|
+
v.BlockCipher = s.extend({
|
|
2920
2922
|
/**
|
|
2921
2923
|
* Configuration options.
|
|
2922
2924
|
*
|
|
@@ -2942,7 +2944,7 @@ function X() {
|
|
|
2942
2944
|
},
|
|
2943
2945
|
blockSize: 128 / 32
|
|
2944
2946
|
});
|
|
2945
|
-
var o =
|
|
2947
|
+
var o = v.CipherParams = m.extend({
|
|
2946
2948
|
/**
|
|
2947
2949
|
* Initializes a newly created cipher params object.
|
|
2948
2950
|
*
|
|
@@ -3018,7 +3020,7 @@ function X() {
|
|
|
3018
3020
|
var w, H = n.parse(F), $ = H.words;
|
|
3019
3021
|
return $[0] == 1398893684 && $[1] == 1701076831 && (w = B.create($.slice(2, 4)), $.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3020
3022
|
}
|
|
3021
|
-
}, D =
|
|
3023
|
+
}, D = v.SerializableCipher = m.extend({
|
|
3022
3024
|
/**
|
|
3023
3025
|
* Configuration options.
|
|
3024
3026
|
*
|
|
@@ -3125,7 +3127,7 @@ function X() {
|
|
|
3125
3127
|
var q = B.create(O.words.slice(w), H * 4);
|
|
3126
3128
|
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt: $ });
|
|
3127
3129
|
}
|
|
3128
|
-
}, R =
|
|
3130
|
+
}, R = v.PasswordBasedCipher = D.extend({
|
|
3129
3131
|
/**
|
|
3130
3132
|
* Configuration options.
|
|
3131
3133
|
*
|
|
@@ -3196,21 +3198,21 @@ function Tt() {
|
|
|
3196
3198
|
return t.mode.CFB = (function() {
|
|
3197
3199
|
var e = t.lib.BlockCipherMode.extend();
|
|
3198
3200
|
e.Encryptor = e.extend({
|
|
3199
|
-
processBlock: function(
|
|
3201
|
+
processBlock: function(v, m) {
|
|
3200
3202
|
var B = this._cipher, C = B.blockSize;
|
|
3201
|
-
u.call(this,
|
|
3203
|
+
u.call(this, v, m, C, B), this._prevBlock = v.slice(m, m + C);
|
|
3202
3204
|
}
|
|
3203
3205
|
}), e.Decryptor = e.extend({
|
|
3204
|
-
processBlock: function(
|
|
3205
|
-
var B = this._cipher, C = B.blockSize, x =
|
|
3206
|
-
u.call(this,
|
|
3206
|
+
processBlock: function(v, m) {
|
|
3207
|
+
var B = this._cipher, C = B.blockSize, x = v.slice(m, m + C);
|
|
3208
|
+
u.call(this, v, m, C, B), this._prevBlock = x;
|
|
3207
3209
|
}
|
|
3208
3210
|
});
|
|
3209
|
-
function u(
|
|
3211
|
+
function u(v, m, B, C) {
|
|
3210
3212
|
var x, n = this._iv;
|
|
3211
3213
|
n ? (x = n.slice(0), this._iv = void 0) : x = this._prevBlock, C.encryptBlock(x, 0);
|
|
3212
3214
|
for (var E = 0; E < B; E++)
|
|
3213
|
-
|
|
3215
|
+
v[m + E] ^= x[E];
|
|
3214
3216
|
}
|
|
3215
3217
|
return e;
|
|
3216
3218
|
})(), t.mode.CFB;
|
|
@@ -3225,13 +3227,13 @@ function Nt() {
|
|
|
3225
3227
|
})(Mt, function(t) {
|
|
3226
3228
|
return t.mode.CTR = (function() {
|
|
3227
3229
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3228
|
-
processBlock: function(
|
|
3230
|
+
processBlock: function(v, m) {
|
|
3229
3231
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._counter;
|
|
3230
3232
|
x && (n = this._counter = x.slice(0), this._iv = void 0);
|
|
3231
3233
|
var E = n.slice(0);
|
|
3232
3234
|
B.encryptBlock(E, 0), n[C - 1] = n[C - 1] + 1 | 0;
|
|
3233
3235
|
for (var a = 0; a < C; a++)
|
|
3234
|
-
|
|
3236
|
+
v[m + a] ^= E[a];
|
|
3235
3237
|
}
|
|
3236
3238
|
});
|
|
3237
3239
|
return e.Decryptor = u, e;
|
|
@@ -3255,13 +3257,13 @@ function jt() {
|
|
|
3255
3257
|
B += 1 << 24;
|
|
3256
3258
|
return B;
|
|
3257
3259
|
}
|
|
3258
|
-
function
|
|
3260
|
+
function v(B) {
|
|
3259
3261
|
return (B[0] = u(B[0])) === 0 && (B[1] = u(B[1])), B;
|
|
3260
3262
|
}
|
|
3261
3263
|
var m = e.Encryptor = e.extend({
|
|
3262
3264
|
processBlock: function(B, C) {
|
|
3263
3265
|
var x = this._cipher, n = x.blockSize, E = this._iv, a = this._counter;
|
|
3264
|
-
E && (a = this._counter = E.slice(0), this._iv = void 0),
|
|
3266
|
+
E && (a = this._counter = E.slice(0), this._iv = void 0), v(a);
|
|
3265
3267
|
var s = a.slice(0);
|
|
3266
3268
|
x.encryptBlock(s, 0);
|
|
3267
3269
|
for (var f = 0; f < n; f++)
|
|
@@ -3281,11 +3283,11 @@ function Kt() {
|
|
|
3281
3283
|
})(Gt, function(t) {
|
|
3282
3284
|
return t.mode.OFB = (function() {
|
|
3283
3285
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3284
|
-
processBlock: function(
|
|
3286
|
+
processBlock: function(v, m) {
|
|
3285
3287
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._keystream;
|
|
3286
3288
|
x && (n = this._keystream = x.slice(0), this._iv = void 0), B.encryptBlock(n, 0);
|
|
3287
3289
|
for (var E = 0; E < C; E++)
|
|
3288
|
-
|
|
3290
|
+
v[m + E] ^= n[E];
|
|
3289
3291
|
}
|
|
3290
3292
|
});
|
|
3291
3293
|
return e.Decryptor = u, e;
|
|
@@ -3302,12 +3304,12 @@ function Yt() {
|
|
|
3302
3304
|
return t.mode.ECB = (function() {
|
|
3303
3305
|
var e = t.lib.BlockCipherMode.extend();
|
|
3304
3306
|
return e.Encryptor = e.extend({
|
|
3305
|
-
processBlock: function(u,
|
|
3306
|
-
this._cipher.encryptBlock(u,
|
|
3307
|
+
processBlock: function(u, v) {
|
|
3308
|
+
this._cipher.encryptBlock(u, v);
|
|
3307
3309
|
}
|
|
3308
3310
|
}), e.Decryptor = e.extend({
|
|
3309
|
-
processBlock: function(u,
|
|
3310
|
-
this._cipher.decryptBlock(u,
|
|
3311
|
+
processBlock: function(u, v) {
|
|
3312
|
+
this._cipher.decryptBlock(u, v);
|
|
3311
3313
|
}
|
|
3312
3314
|
}), e;
|
|
3313
3315
|
})(), t.mode.ECB;
|
|
@@ -3322,7 +3324,7 @@ function Qt() {
|
|
|
3322
3324
|
})(Zt, function(t) {
|
|
3323
3325
|
return t.pad.AnsiX923 = {
|
|
3324
3326
|
pad: function(e, u) {
|
|
3325
|
-
var
|
|
3327
|
+
var v = e.sigBytes, m = u * 4, B = m - v % m, C = v + B - 1;
|
|
3326
3328
|
e.clamp(), e.words[C >>> 2] |= B << 24 - C % 4 * 8, e.sigBytes += B;
|
|
3327
3329
|
},
|
|
3328
3330
|
unpad: function(e) {
|
|
@@ -3341,7 +3343,7 @@ function Jt() {
|
|
|
3341
3343
|
})(Vt, function(t) {
|
|
3342
3344
|
return t.pad.Iso10126 = {
|
|
3343
3345
|
pad: function(e, u) {
|
|
3344
|
-
var
|
|
3346
|
+
var v = u * 4, m = v - e.sigBytes % v;
|
|
3345
3347
|
e.concat(t.lib.WordArray.random(m - 1)).concat(t.lib.WordArray.create([m << 24], 1));
|
|
3346
3348
|
},
|
|
3347
3349
|
unpad: function(e) {
|
|
@@ -3377,13 +3379,13 @@ function xx() {
|
|
|
3377
3379
|
})(tx, function(t) {
|
|
3378
3380
|
return t.pad.ZeroPadding = {
|
|
3379
3381
|
pad: function(e, u) {
|
|
3380
|
-
var
|
|
3381
|
-
e.clamp(), e.sigBytes +=
|
|
3382
|
+
var v = u * 4;
|
|
3383
|
+
e.clamp(), e.sigBytes += v - (e.sigBytes % v || v);
|
|
3382
3384
|
},
|
|
3383
3385
|
unpad: function(e) {
|
|
3384
|
-
for (var u = e.words,
|
|
3385
|
-
if (u[
|
|
3386
|
-
e.sigBytes =
|
|
3386
|
+
for (var u = e.words, v = e.sigBytes - 1, v = e.sigBytes - 1; v >= 0; v--)
|
|
3387
|
+
if (u[v >>> 2] >>> 24 - v % 4 * 8 & 255) {
|
|
3388
|
+
e.sigBytes = v + 1;
|
|
3387
3389
|
break;
|
|
3388
3390
|
}
|
|
3389
3391
|
}
|
|
@@ -3413,7 +3415,7 @@ function ix() {
|
|
|
3413
3415
|
r.exports = e(M(), X());
|
|
3414
3416
|
})(ox, function(t) {
|
|
3415
3417
|
return (function(e) {
|
|
3416
|
-
var u = t,
|
|
3418
|
+
var u = t, v = u.lib, m = v.CipherParams, B = u.enc, C = B.Hex, x = u.format;
|
|
3417
3419
|
x.Hex = {
|
|
3418
3420
|
/**
|
|
3419
3421
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3460,7 +3462,7 @@ function cx() {
|
|
|
3460
3462
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
3461
3463
|
})(sx, function(t) {
|
|
3462
3464
|
return (function() {
|
|
3463
|
-
var e = t, u = e.lib,
|
|
3465
|
+
var e = t, u = e.lib, v = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], p = [], l = [];
|
|
3464
3466
|
(function() {
|
|
3465
3467
|
for (var o = [], d = 0; d < 256; d++)
|
|
3466
3468
|
d < 128 ? o[d] = d << 1 : o[d] = d << 1 ^ 283;
|
|
@@ -3470,10 +3472,10 @@ function cx() {
|
|
|
3470
3472
|
var k = o[b], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3471
3473
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3472
3474
|
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ b * 16843008;
|
|
3473
|
-
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16,
|
|
3475
|
+
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]]], D ^= o[o[D]]) : b = D = 1;
|
|
3474
3476
|
}
|
|
3475
3477
|
})();
|
|
3476
|
-
var g = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES =
|
|
3478
|
+
var g = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES = v.extend({
|
|
3477
3479
|
_doReset: function() {
|
|
3478
3480
|
var o;
|
|
3479
3481
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
@@ -3485,7 +3487,7 @@ function cx() {
|
|
|
3485
3487
|
var o = R[F];
|
|
3486
3488
|
else
|
|
3487
3489
|
var o = R[F - 4];
|
|
3488
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^
|
|
3490
|
+
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]];
|
|
3489
3491
|
}
|
|
3490
3492
|
}
|
|
3491
3493
|
},
|
|
@@ -3494,7 +3496,7 @@ function cx() {
|
|
|
3494
3496
|
},
|
|
3495
3497
|
decryptBlock: function(o, d) {
|
|
3496
3498
|
var b = o[d + 1];
|
|
3497
|
-
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f,
|
|
3499
|
+
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f, p, l, C);
|
|
3498
3500
|
var b = o[d + 1];
|
|
3499
3501
|
o[d + 1] = o[d + 3], o[d + 3] = b;
|
|
3500
3502
|
},
|
|
@@ -3508,7 +3510,7 @@ function cx() {
|
|
|
3508
3510
|
},
|
|
3509
3511
|
keySize: 256 / 32
|
|
3510
3512
|
});
|
|
3511
|
-
e.AES =
|
|
3513
|
+
e.AES = v._createHelper(i);
|
|
3512
3514
|
})(), t.AES;
|
|
3513
3515
|
});
|
|
3514
3516
|
})(tr)), tr.exports;
|
|
@@ -3520,7 +3522,7 @@ function ux() {
|
|
|
3520
3522
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
3521
3523
|
})(fx, function(t) {
|
|
3522
3524
|
return (function() {
|
|
3523
|
-
var e = t, u = e.lib,
|
|
3525
|
+
var e = t, u = e.lib, v = u.WordArray, m = u.BlockCipher, B = e.algo, C = [
|
|
3524
3526
|
57,
|
|
3525
3527
|
49,
|
|
3526
3528
|
41,
|
|
@@ -4188,14 +4190,14 @@ function ux() {
|
|
|
4188
4190
|
this._doCryptBlock(g, i, this._invSubKeys);
|
|
4189
4191
|
},
|
|
4190
4192
|
_doCryptBlock: function(g, i, o) {
|
|
4191
|
-
this._lBlock = g[i], this._rBlock = g[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535),
|
|
4193
|
+
this._lBlock = g[i], this._rBlock = g[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);
|
|
4192
4194
|
for (var d = 0; d < 16; d++) {
|
|
4193
4195
|
for (var b = o[d], D = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4194
4196
|
k |= E[R][((y ^ b[R]) & a[R]) >>> 0];
|
|
4195
4197
|
this._lBlock = y, this._rBlock = D ^ k;
|
|
4196
4198
|
}
|
|
4197
4199
|
var F = this._lBlock;
|
|
4198
|
-
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765),
|
|
4200
|
+
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), g[i] = this._lBlock, g[i + 1] = this._rBlock;
|
|
4199
4201
|
},
|
|
4200
4202
|
keySize: 64 / 32,
|
|
4201
4203
|
ivSize: 64 / 32,
|
|
@@ -4205,7 +4207,7 @@ function ux() {
|
|
|
4205
4207
|
var o = (this._lBlock >>> g ^ this._rBlock) & i;
|
|
4206
4208
|
this._rBlock ^= o, this._lBlock ^= o << g;
|
|
4207
4209
|
}
|
|
4208
|
-
function
|
|
4210
|
+
function p(g, i) {
|
|
4209
4211
|
var o = (this._rBlock >>> g ^ this._lBlock) & i;
|
|
4210
4212
|
this._lBlock ^= o, this._rBlock ^= o << g;
|
|
4211
4213
|
}
|
|
@@ -4216,7 +4218,7 @@ function ux() {
|
|
|
4216
4218
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
4217
4219
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4218
4220
|
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);
|
|
4219
|
-
this._des1 = s.createEncryptor(
|
|
4221
|
+
this._des1 = s.createEncryptor(v.create(o)), this._des2 = s.createEncryptor(v.create(d)), this._des3 = s.createEncryptor(v.create(b));
|
|
4220
4222
|
},
|
|
4221
4223
|
encryptBlock: function(g, i) {
|
|
4222
4224
|
this._des1.encryptBlock(g, i), this._des2.decryptBlock(g, i), this._des3.encryptBlock(g, i);
|
|
@@ -4240,15 +4242,15 @@ function lx() {
|
|
|
4240
4242
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4241
4243
|
})(dx, function(t) {
|
|
4242
4244
|
return (function() {
|
|
4243
|
-
var e = t, u = e.lib,
|
|
4245
|
+
var e = t, u = e.lib, v = u.StreamCipher, m = e.algo, B = m.RC4 = v.extend({
|
|
4244
4246
|
_doReset: function() {
|
|
4245
4247
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], f = 0; f < 256; f++)
|
|
4246
4248
|
s[f] = f;
|
|
4247
|
-
for (var f = 0,
|
|
4249
|
+
for (var f = 0, p = 0; f < 256; f++) {
|
|
4248
4250
|
var l = f % a, g = E[l >>> 2] >>> 24 - l % 4 * 8 & 255;
|
|
4249
|
-
|
|
4251
|
+
p = (p + s[f] + g) % 256;
|
|
4250
4252
|
var i = s[f];
|
|
4251
|
-
s[f] = s[
|
|
4253
|
+
s[f] = s[p], s[p] = i;
|
|
4252
4254
|
}
|
|
4253
4255
|
this._i = this._j = 0;
|
|
4254
4256
|
},
|
|
@@ -4261,12 +4263,12 @@ function lx() {
|
|
|
4261
4263
|
function C() {
|
|
4262
4264
|
for (var n = this._S, E = this._i, a = this._j, s = 0, f = 0; f < 4; f++) {
|
|
4263
4265
|
E = (E + 1) % 256, a = (a + n[E]) % 256;
|
|
4264
|
-
var
|
|
4265
|
-
n[E] = n[a], n[a] =
|
|
4266
|
+
var p = n[E];
|
|
4267
|
+
n[E] = n[a], n[a] = p, s |= n[(n[E] + n[a]) % 256] << 24 - f * 8;
|
|
4266
4268
|
}
|
|
4267
4269
|
return this._i = E, this._j = a, s;
|
|
4268
4270
|
}
|
|
4269
|
-
e.RC4 =
|
|
4271
|
+
e.RC4 = v._createHelper(B);
|
|
4270
4272
|
var x = m.RC4Drop = B.extend({
|
|
4271
4273
|
/**
|
|
4272
4274
|
* Configuration options.
|
|
@@ -4282,7 +4284,7 @@ function lx() {
|
|
|
4282
4284
|
C.call(this);
|
|
4283
4285
|
}
|
|
4284
4286
|
});
|
|
4285
|
-
e.RC4Drop =
|
|
4287
|
+
e.RC4Drop = v._createHelper(x);
|
|
4286
4288
|
})(), t.RC4;
|
|
4287
4289
|
});
|
|
4288
4290
|
})(nr)), nr.exports;
|
|
@@ -4294,11 +4296,11 @@ function vx() {
|
|
|
4294
4296
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4295
4297
|
})(hx, function(t) {
|
|
4296
4298
|
return (function() {
|
|
4297
|
-
var e = t, u = e.lib,
|
|
4299
|
+
var e = t, u = e.lib, v = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.Rabbit = v.extend({
|
|
4298
4300
|
_doReset: function() {
|
|
4299
4301
|
for (var a = this._key.words, s = this.cfg.iv, f = 0; f < 4; f++)
|
|
4300
4302
|
a[f] = (a[f] << 8 | a[f] >>> 24) & 16711935 | (a[f] << 24 | a[f] >>> 8) & 4278255360;
|
|
4301
|
-
var
|
|
4303
|
+
var p = this._X = [
|
|
4302
4304
|
a[0],
|
|
4303
4305
|
a[3] << 16 | a[2] >>> 16,
|
|
4304
4306
|
a[1],
|
|
@@ -4321,7 +4323,7 @@ function vx() {
|
|
|
4321
4323
|
for (var f = 0; f < 4; f++)
|
|
4322
4324
|
E.call(this);
|
|
4323
4325
|
for (var f = 0; f < 8; f++)
|
|
4324
|
-
l[f] ^=
|
|
4326
|
+
l[f] ^= p[f + 4 & 7];
|
|
4325
4327
|
if (s) {
|
|
4326
4328
|
var g = s.words, i = g[0], o = g[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, D = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4327
4329
|
l[0] ^= d, l[1] ^= D, l[2] ^= b, l[3] ^= y, l[4] ^= d, l[5] ^= D, l[6] ^= b, l[7] ^= y;
|
|
@@ -4332,8 +4334,8 @@ function vx() {
|
|
|
4332
4334
|
_doProcessBlock: function(a, s) {
|
|
4333
4335
|
var f = this._X;
|
|
4334
4336
|
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;
|
|
4335
|
-
for (var
|
|
4336
|
-
B[
|
|
4337
|
+
for (var p = 0; p < 4; p++)
|
|
4338
|
+
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4337
4339
|
},
|
|
4338
4340
|
blockSize: 128 / 32,
|
|
4339
4341
|
ivSize: 64 / 32
|
|
@@ -4343,12 +4345,12 @@ function vx() {
|
|
|
4343
4345
|
C[f] = s[f];
|
|
4344
4346
|
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;
|
|
4345
4347
|
for (var f = 0; f < 8; f++) {
|
|
4346
|
-
var
|
|
4348
|
+
var p = a[f] + s[f], l = p & 65535, g = p >>> 16, i = ((l * l >>> 17) + l * g >>> 15) + g * g, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4347
4349
|
x[f] = i ^ o;
|
|
4348
4350
|
}
|
|
4349
4351
|
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;
|
|
4350
4352
|
}
|
|
4351
|
-
e.Rabbit =
|
|
4353
|
+
e.Rabbit = v._createHelper(n);
|
|
4352
4354
|
})(), t.Rabbit;
|
|
4353
4355
|
});
|
|
4354
4356
|
})(ar)), ar.exports;
|
|
@@ -4360,7 +4362,7 @@ function Bx() {
|
|
|
4360
4362
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4361
4363
|
})(px, function(t) {
|
|
4362
4364
|
return (function() {
|
|
4363
|
-
var e = t, u = e.lib,
|
|
4365
|
+
var e = t, u = e.lib, v = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.RabbitLegacy = v.extend({
|
|
4364
4366
|
_doReset: function() {
|
|
4365
4367
|
var a = this._key.words, s = this.cfg.iv, f = this._X = [
|
|
4366
4368
|
a[0],
|
|
@@ -4371,7 +4373,7 @@ function Bx() {
|
|
|
4371
4373
|
a[1] << 16 | a[0] >>> 16,
|
|
4372
4374
|
a[3],
|
|
4373
4375
|
a[2] << 16 | a[1] >>> 16
|
|
4374
|
-
],
|
|
4376
|
+
], p = this._C = [
|
|
4375
4377
|
a[2] << 16 | a[2] >>> 16,
|
|
4376
4378
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4377
4379
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4385,10 +4387,10 @@ function Bx() {
|
|
|
4385
4387
|
for (var l = 0; l < 4; l++)
|
|
4386
4388
|
E.call(this);
|
|
4387
4389
|
for (var l = 0; l < 8; l++)
|
|
4388
|
-
|
|
4390
|
+
p[l] ^= f[l + 4 & 7];
|
|
4389
4391
|
if (s) {
|
|
4390
4392
|
var g = s.words, i = g[0], o = g[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, D = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4391
|
-
|
|
4393
|
+
p[0] ^= d, p[1] ^= D, p[2] ^= b, p[3] ^= y, p[4] ^= d, p[5] ^= D, p[6] ^= b, p[7] ^= y;
|
|
4392
4394
|
for (var l = 0; l < 4; l++)
|
|
4393
4395
|
E.call(this);
|
|
4394
4396
|
}
|
|
@@ -4396,8 +4398,8 @@ function Bx() {
|
|
|
4396
4398
|
_doProcessBlock: function(a, s) {
|
|
4397
4399
|
var f = this._X;
|
|
4398
4400
|
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;
|
|
4399
|
-
for (var
|
|
4400
|
-
B[
|
|
4401
|
+
for (var p = 0; p < 4; p++)
|
|
4402
|
+
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4401
4403
|
},
|
|
4402
4404
|
blockSize: 128 / 32,
|
|
4403
4405
|
ivSize: 64 / 32
|
|
@@ -4407,12 +4409,12 @@ function Bx() {
|
|
|
4407
4409
|
C[f] = s[f];
|
|
4408
4410
|
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;
|
|
4409
4411
|
for (var f = 0; f < 8; f++) {
|
|
4410
|
-
var
|
|
4412
|
+
var p = a[f] + s[f], l = p & 65535, g = p >>> 16, i = ((l * l >>> 17) + l * g >>> 15) + g * g, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4411
4413
|
x[f] = i ^ o;
|
|
4412
4414
|
}
|
|
4413
4415
|
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;
|
|
4414
4416
|
}
|
|
4415
|
-
e.RabbitLegacy =
|
|
4417
|
+
e.RabbitLegacy = v._createHelper(n);
|
|
4416
4418
|
})(), t.RabbitLegacy;
|
|
4417
4419
|
});
|
|
4418
4420
|
})(or)), or.exports;
|
|
@@ -4424,7 +4426,7 @@ function Ex() {
|
|
|
4424
4426
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4425
4427
|
})(Cx, function(t) {
|
|
4426
4428
|
return (function() {
|
|
4427
|
-
var e = t, u = e.lib,
|
|
4429
|
+
var e = t, u = e.lib, v = u.BlockCipher, m = e.algo;
|
|
4428
4430
|
const B = 16, C = [
|
|
4429
4431
|
608135816,
|
|
4430
4432
|
2242054355,
|
|
@@ -5515,7 +5517,7 @@ function Ex() {
|
|
|
5515
5517
|
D = a(l, d, b), d = D.left, b = D.right, l.sbox[y][k] = d, l.sbox[y][k + 1] = b;
|
|
5516
5518
|
return !0;
|
|
5517
5519
|
}
|
|
5518
|
-
var
|
|
5520
|
+
var p = m.Blowfish = v.extend({
|
|
5519
5521
|
_doReset: function() {
|
|
5520
5522
|
if (this._keyPriorReset !== this._key) {
|
|
5521
5523
|
var l = this._keyPriorReset = this._key, g = l.words, i = l.sigBytes / 4;
|
|
@@ -5534,7 +5536,7 @@ function Ex() {
|
|
|
5534
5536
|
keySize: 128 / 32,
|
|
5535
5537
|
ivSize: 64 / 32
|
|
5536
5538
|
});
|
|
5537
|
-
e.Blowfish =
|
|
5539
|
+
e.Blowfish = v._createHelper(p);
|
|
5538
5540
|
})(), t.Blowfish;
|
|
5539
5541
|
});
|
|
5540
5542
|
})(ir)), ir.exports;
|
|
@@ -5543,7 +5545,7 @@ var Ax = _0.exports, Ce;
|
|
|
5543
5545
|
function Fx() {
|
|
5544
5546
|
return Ce || (Ce = 1, (function(r, h) {
|
|
5545
5547
|
(function(t, e, u) {
|
|
5546
|
-
r.exports = e(M(),
|
|
5548
|
+
r.exports = e(M(), ur(), Bt(), Et(), i0(), Dt(), 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());
|
|
5547
5549
|
})(Ax, function(t) {
|
|
5548
5550
|
return t;
|
|
5549
5551
|
});
|
|
@@ -5564,7 +5566,7 @@ function gx() {
|
|
|
5564
5566
|
};
|
|
5565
5567
|
}
|
|
5566
5568
|
function bx(r) {
|
|
5567
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5569
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.151`;
|
|
5568
5570
|
}
|
|
5569
5571
|
function mx(r, h) {
|
|
5570
5572
|
const t = bx(r);
|
|
@@ -5580,7 +5582,7 @@ const Fr = () => {
|
|
|
5580
5582
|
Fr();
|
|
5581
5583
|
}, Ee = (...r) => {
|
|
5582
5584
|
Fr();
|
|
5583
|
-
}, Ae = /* @__PURE__ */ new Map(),
|
|
5585
|
+
}, Ae = /* @__PURE__ */ new Map(), pr = /* @__PURE__ */ new Map();
|
|
5584
5586
|
let _x = 0;
|
|
5585
5587
|
function yx(r) {
|
|
5586
5588
|
const h = Ae.get(r);
|
|
@@ -5591,16 +5593,16 @@ function yx(r) {
|
|
|
5591
5593
|
} catch {
|
|
5592
5594
|
}
|
|
5593
5595
|
t.onmessage = (u) => {
|
|
5594
|
-
const { id:
|
|
5595
|
-
b0(`[renderService] deform worker 响应 id=${
|
|
5596
|
+
const { id: v, imageBitmap: m, error: B, duration: C } = u.data ?? {}, x = C ? ` worker耗时=${Math.round(C)}ms` : "";
|
|
5597
|
+
b0(`[renderService] deform worker 响应 id=${v}${x}`, {
|
|
5596
5598
|
hasImageBitmap: !!m,
|
|
5597
5599
|
width: m?.width,
|
|
5598
5600
|
height: m?.height,
|
|
5599
5601
|
error: B
|
|
5600
5602
|
});
|
|
5601
|
-
const n =
|
|
5603
|
+
const n = pr.get(v);
|
|
5602
5604
|
if (n) {
|
|
5603
|
-
if (
|
|
5605
|
+
if (pr.delete(v), B) {
|
|
5604
5606
|
n.reject(new Error(B));
|
|
5605
5607
|
return;
|
|
5606
5608
|
}
|
|
@@ -5702,22 +5704,22 @@ function wx(r) {
|
|
|
5702
5704
|
};
|
|
5703
5705
|
}
|
|
5704
5706
|
function kx(r, h, t, e) {
|
|
5705
|
-
const u = ++_x,
|
|
5707
|
+
const u = ++_x, v = yx(t);
|
|
5706
5708
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((m, B) => {
|
|
5707
|
-
|
|
5709
|
+
pr.set(u, {
|
|
5708
5710
|
resolve: (x) => {
|
|
5709
5711
|
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), m(x);
|
|
5710
5712
|
},
|
|
5711
5713
|
reject: B
|
|
5712
5714
|
});
|
|
5713
5715
|
const C = wx(h);
|
|
5714
|
-
|
|
5716
|
+
v.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5715
5717
|
r
|
|
5716
5718
|
]);
|
|
5717
5719
|
});
|
|
5718
5720
|
}
|
|
5719
|
-
async function Sx(r, h, t = 0, e, u,
|
|
5720
|
-
const m = await it(r, u,
|
|
5721
|
+
async function Sx(r, h, t = 0, e, u, v) {
|
|
5722
|
+
const m = await it(r, u, v);
|
|
5721
5723
|
if (!m || m.width === 0 || m.height === 0)
|
|
5722
5724
|
throw new Error("图片无效:尺寸为 0");
|
|
5723
5725
|
return await kx(m, h, t, e);
|
|
@@ -5752,7 +5754,7 @@ async function Hx(r) {
|
|
|
5752
5754
|
}, u = (...c) => {
|
|
5753
5755
|
t();
|
|
5754
5756
|
}, {
|
|
5755
|
-
psdJson:
|
|
5757
|
+
psdJson: v,
|
|
5756
5758
|
materialList: m,
|
|
5757
5759
|
fabricScreenshotList: B,
|
|
5758
5760
|
width: C,
|
|
@@ -5760,8 +5762,8 @@ async function Hx(r) {
|
|
|
5760
5762
|
baseUrl: n
|
|
5761
5763
|
} = r, E = r.maxImageSize;
|
|
5762
5764
|
e("[renderByJson] 接收到的数据:", {
|
|
5763
|
-
psdJsonLayerCount:
|
|
5764
|
-
psdJsonLayers:
|
|
5765
|
+
psdJsonLayerCount: v.layerList?.length || 0,
|
|
5766
|
+
psdJsonLayers: v.layerList?.map((c) => ({
|
|
5765
5767
|
name: c.name,
|
|
5766
5768
|
type: c.type,
|
|
5767
5769
|
id: c.id,
|
|
@@ -5799,10 +5801,10 @@ async function Hx(r) {
|
|
|
5799
5801
|
url: c.url
|
|
5800
5802
|
}), f.set(c.layerName, c.url));
|
|
5801
5803
|
}
|
|
5802
|
-
const
|
|
5804
|
+
const p = /* @__PURE__ */ new Map();
|
|
5803
5805
|
for (const c of B)
|
|
5804
|
-
|
|
5805
|
-
e("[renderByJson] fabricScreenshotMap:", Array.from(
|
|
5806
|
+
p.set(c.id, c.url);
|
|
5807
|
+
e("[renderByJson] fabricScreenshotMap:", Array.from(p.entries())), e("[renderByJson] psdJson.layerList 结构:", v.layerList?.map((c) => ({
|
|
5806
5808
|
name: c.name,
|
|
5807
5809
|
type: c.type,
|
|
5808
5810
|
id: c.id,
|
|
@@ -5849,8 +5851,8 @@ async function Hx(r) {
|
|
|
5849
5851
|
function g(c, A) {
|
|
5850
5852
|
const _ = c.id ?? A;
|
|
5851
5853
|
if (c.type === "Group" && _)
|
|
5852
|
-
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${
|
|
5853
|
-
const W =
|
|
5854
|
+
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${p.has(_)}`), p.has(_)) {
|
|
5855
|
+
const W = p.get(_);
|
|
5854
5856
|
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${W.substring(0, 50)}...`), c.children) {
|
|
5855
5857
|
e(`[renderByJson] Group "${c.name}" 有 ${c.children.length} 个子图层`);
|
|
5856
5858
|
for (const P of c.children)
|
|
@@ -5866,14 +5868,14 @@ async function Hx(r) {
|
|
|
5866
5868
|
for (const W of c.children)
|
|
5867
5869
|
W && g(W, _);
|
|
5868
5870
|
}
|
|
5869
|
-
if (
|
|
5870
|
-
for (const c of
|
|
5871
|
+
if (v.layerList)
|
|
5872
|
+
for (const c of v.layerList)
|
|
5871
5873
|
c && l(c);
|
|
5872
|
-
if (
|
|
5873
|
-
for (const c of
|
|
5874
|
+
if (v.layerList)
|
|
5875
|
+
for (const c of v.layerList)
|
|
5874
5876
|
c && g(c);
|
|
5875
5877
|
const o = Ye([{
|
|
5876
|
-
psdJson:
|
|
5878
|
+
psdJson: v,
|
|
5877
5879
|
layerExtrasByName: s
|
|
5878
5880
|
}], {
|
|
5879
5881
|
parts: [],
|
|
@@ -5932,8 +5934,8 @@ async function Hx(r) {
|
|
|
5932
5934
|
const K = P.imagePath.split("/").pop() || P.imagePath;
|
|
5933
5935
|
if (L = s[K], !L) {
|
|
5934
5936
|
const G = m.find((Y) => {
|
|
5935
|
-
const
|
|
5936
|
-
return !
|
|
5937
|
+
const e0 = Y.sourceName || Y.layerName;
|
|
5938
|
+
return !e0 || !P.imagePath ? !1 : (e0.split("/").pop() || e0) === K || e0 === P.imagePath || e0.endsWith(P.imagePath) || P.imagePath.endsWith(e0);
|
|
5937
5939
|
});
|
|
5938
5940
|
G && (L = { url: G.url });
|
|
5939
5941
|
}
|
|
@@ -6008,7 +6010,7 @@ async function Hx(r) {
|
|
|
6008
6010
|
if (z.clearRect(0, 0, b, D), z.globalCompositeOperation = "source-over", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6009
6011
|
if (A.maskData) {
|
|
6010
6012
|
const K = d0(b, D), G = A0(K);
|
|
6011
|
-
G && (G.drawImage(_, 0, 0),
|
|
6013
|
+
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), z.drawImage(K, 0, 0));
|
|
6012
6014
|
} else
|
|
6013
6015
|
z.drawImage(_, 0, 0);
|
|
6014
6016
|
else A.type === "layer" && (P ? z.drawImage(
|
|
@@ -6025,7 +6027,7 @@ async function Hx(r) {
|
|
|
6025
6027
|
if (z.globalCompositeOperation = "source-atop", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6026
6028
|
if (A.maskData) {
|
|
6027
6029
|
const K = d0(b, D), G = A0(K);
|
|
6028
|
-
G && (G.drawImage(_, 0, 0),
|
|
6030
|
+
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), z.drawImage(K, 0, 0));
|
|
6029
6031
|
} else
|
|
6030
6032
|
z.drawImage(_, 0, 0);
|
|
6031
6033
|
else A.type === "layer" && (P ? z.drawImage(
|
|
@@ -6041,7 +6043,7 @@ async function Hx(r) {
|
|
|
6041
6043
|
if (k.globalCompositeOperation = Wr(W.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6042
6044
|
if (A.maskData) {
|
|
6043
6045
|
const K = d0(b, D), G = A0(K);
|
|
6044
|
-
G && (G.drawImage(_, 0, 0),
|
|
6046
|
+
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), k.drawImage(K, 0, 0));
|
|
6045
6047
|
} else
|
|
6046
6048
|
k.drawImage(_, 0, 0);
|
|
6047
6049
|
else A.type === "layer" && (P ? k.drawImage(
|