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