@jieyin/editor-sdk-test 1.1.158 → 1.1.160
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 +4878 -4841
- package/dist/renderWorker.js +716 -715
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
let
|
|
1
|
+
var D0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(D0 || {});
|
|
2
|
+
function Ze(r) {
|
|
3
|
+
let h = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const t =
|
|
6
|
-
return
|
|
5
|
+
const t = h;
|
|
6
|
+
return h += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Qe(r, h) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,16 +23,16 @@ function Ze(r, d) {
|
|
|
23
23
|
quiltSliceY: r.quiltSliceY,
|
|
24
24
|
layerOrder: r.layerOrder,
|
|
25
25
|
imagePath: r.imagePath,
|
|
26
|
-
vectorMask: r.vectorMask ??
|
|
26
|
+
vectorMask: r.vectorMask ?? h,
|
|
27
27
|
filterList: r.filterList,
|
|
28
28
|
opacity: r.opacity,
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
let u = r.name || "", p =
|
|
32
|
+
function Ve(r, h, t, e) {
|
|
33
|
+
let u = r.name || "", p = h[u], m = p?.partId ?? (r.type === "Group" ? t.get(u) : void 0);
|
|
34
34
|
if (r.type === "Group" && m === void 0 && (!p || p.id === void 0) && r.children && r.children.length === 1) {
|
|
35
|
-
const x = r.children[0].name, n =
|
|
35
|
+
const x = r.children[0].name, n = h[x], E = n?.partId ?? t.get(x);
|
|
36
36
|
(E !== void 0 || n?.id !== void 0) && (u = x, p = n, m = E);
|
|
37
37
|
}
|
|
38
38
|
const B = r.id ?? p?.id ?? e();
|
|
@@ -43,9 +43,9 @@ function Qe(r, d, t, e) {
|
|
|
43
43
|
name: u,
|
|
44
44
|
blendMode: r.blendMode || "normal",
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
|
-
type:
|
|
46
|
+
type: D0.Group,
|
|
47
47
|
smartObjects: (r.children ?? []).map(
|
|
48
|
-
(x) =>
|
|
48
|
+
(x) => Qe(x, r.vectorMask)
|
|
49
49
|
),
|
|
50
50
|
opacity: r.opacity,
|
|
51
51
|
clipping: r.clipping,
|
|
@@ -57,17 +57,17 @@ function Qe(r, d, t, e) {
|
|
|
57
57
|
name: r.name || "",
|
|
58
58
|
blendMode: r.blendMode || "normal",
|
|
59
59
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
60
|
-
type:
|
|
60
|
+
type: D0.Layer,
|
|
61
61
|
url: C,
|
|
62
62
|
opacity: r.opacity,
|
|
63
63
|
clipping: r.clipping,
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const t = new Map(
|
|
67
|
+
function Je(r, h) {
|
|
68
|
+
const t = new Map(h.parts.map((u) => [u.name, u.id])), e = Ze(h.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
70
|
+
parts: h.parts,
|
|
71
71
|
models: r.map((u) => {
|
|
72
72
|
const p = u.layerExtrasByName ?? {}, m = u.psdJson, B = m.layerList || m.layerList || [], C = m.canvasWidth, x = m.canvasHeight;
|
|
73
73
|
if (!C || !x)
|
|
@@ -76,25 +76,25 @@ function Ve(r, d) {
|
|
|
76
76
|
const f = [];
|
|
77
77
|
for (const v of s)
|
|
78
78
|
if (v.type === "Group" && v.children) {
|
|
79
|
-
const
|
|
80
|
-
const b = o.layerOrder ?? 0,
|
|
81
|
-
return b -
|
|
79
|
+
const l = [], g = [], i = [...v.children].sort((o, d) => {
|
|
80
|
+
const b = o.layerOrder ?? 0, D = d.layerOrder ?? 0;
|
|
81
|
+
return b - D;
|
|
82
82
|
});
|
|
83
83
|
for (const o of i)
|
|
84
|
-
o.isSmartObject === !0 ?
|
|
85
|
-
if (
|
|
86
|
-
const o = n(
|
|
84
|
+
o.isSmartObject === !0 ? l.push(o) : g.push(o);
|
|
85
|
+
if (g.length > 0) {
|
|
86
|
+
const o = n(g);
|
|
87
87
|
f.push(...o);
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
l.length > 0 && f.push({
|
|
90
90
|
...v,
|
|
91
|
-
children:
|
|
91
|
+
children: l
|
|
92
92
|
});
|
|
93
93
|
} else
|
|
94
94
|
f.push(v);
|
|
95
95
|
return f;
|
|
96
96
|
}, a = n(B).map(
|
|
97
|
-
(s) =>
|
|
97
|
+
(s) => Ve(s, p, t, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
@@ -104,32 +104,32 @@ function Ve(r, d) {
|
|
|
104
104
|
})
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function rt(r) {
|
|
108
108
|
return r ? r.vectorMask && r.vectorMask.paths && Array.isArray(r.vectorMask.paths) ? { type: "bezier", paths: r.vectorMask.paths } : Array.isArray(r.vectorMask) ? { type: "simple", points: r.vectorMask } : null : null;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function et(r) {
|
|
111
111
|
return r ? r.type === "bezier" ? {
|
|
112
112
|
type: "bezier",
|
|
113
|
-
paths: r.paths.map((
|
|
114
|
-
open: !!
|
|
115
|
-
knots:
|
|
113
|
+
paths: r.paths.map((h) => ({
|
|
114
|
+
open: !!h.open,
|
|
115
|
+
knots: h.knots.map((t) => ({
|
|
116
116
|
linked: !!t.linked,
|
|
117
117
|
points: Array.isArray(t.points) ? [...t.points] : []
|
|
118
118
|
}))
|
|
119
119
|
}))
|
|
120
120
|
} : r.type === "simple" ? {
|
|
121
121
|
type: "simple",
|
|
122
|
-
points: r.points.map((
|
|
123
|
-
x:
|
|
124
|
-
y:
|
|
125
|
-
type:
|
|
122
|
+
points: r.points.map((h) => ({
|
|
123
|
+
x: h.x,
|
|
124
|
+
y: h.y,
|
|
125
|
+
type: h.type
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
131
|
-
if (r.globalCompositeOperation = "destination-in", r.beginPath(),
|
|
132
|
-
|
|
129
|
+
function hr(r, h) {
|
|
130
|
+
if (h) {
|
|
131
|
+
if (r.globalCompositeOperation = "destination-in", r.beginPath(), h.type === "bezier" && Array.isArray(h.paths))
|
|
132
|
+
h.paths.forEach((t) => {
|
|
133
133
|
const e = t.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
135
|
const u = e[0];
|
|
@@ -146,8 +146,8 @@ function lr(r, d) {
|
|
|
146
146
|
}
|
|
147
147
|
t.open || r.closePath();
|
|
148
148
|
});
|
|
149
|
-
else if (
|
|
150
|
-
const t =
|
|
149
|
+
else if (h.type === "simple" && Array.isArray(h.points)) {
|
|
150
|
+
const t = h.points;
|
|
151
151
|
if (t.length < 3) return;
|
|
152
152
|
r.moveTo(t[0].x, t[0].y);
|
|
153
153
|
for (let e = 1; e < t.length; e++) r.lineTo(t[e].x, t[e].y);
|
|
@@ -161,10 +161,10 @@ class v0 {
|
|
|
161
161
|
/**
|
|
162
162
|
* 获取存储项
|
|
163
163
|
*/
|
|
164
|
-
static getItem(
|
|
164
|
+
static getItem(h) {
|
|
165
165
|
if (!this.hasStorage) return null;
|
|
166
166
|
try {
|
|
167
|
-
return localStorage.getItem(
|
|
167
|
+
return localStorage.getItem(h);
|
|
168
168
|
} catch {
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
@@ -172,10 +172,10 @@ class v0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(
|
|
175
|
+
static setItem(h, t) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(
|
|
178
|
+
return localStorage.setItem(h, t), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -183,10 +183,10 @@ class v0 {
|
|
|
183
183
|
/**
|
|
184
184
|
* 移除存储项
|
|
185
185
|
*/
|
|
186
|
-
static removeItem(
|
|
186
|
+
static removeItem(h) {
|
|
187
187
|
if (!this.hasStorage) return !1;
|
|
188
188
|
try {
|
|
189
|
-
return localStorage.removeItem(
|
|
189
|
+
return localStorage.removeItem(h), !0;
|
|
190
190
|
} catch {
|
|
191
191
|
return !1;
|
|
192
192
|
}
|
|
@@ -209,7 +209,7 @@ class v0 {
|
|
|
209
209
|
return this.hasStorage;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
class
|
|
212
|
+
class ur {
|
|
213
213
|
/**
|
|
214
214
|
* 是否在浏览器环境
|
|
215
215
|
*/
|
|
@@ -251,10 +251,10 @@ class h0 {
|
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(h) {
|
|
255
255
|
try {
|
|
256
|
-
const t =
|
|
257
|
-
return new URL(
|
|
256
|
+
const t = ur.getOrigin();
|
|
257
|
+
return new URL(h, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,171 +262,172 @@ class h0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const u = this.parse(
|
|
267
|
-
return !u || u.searchParams.has(t) ?
|
|
265
|
+
static addParam(h, t, e) {
|
|
266
|
+
const u = this.parse(h);
|
|
267
|
+
return !u || u.searchParams.has(t) ? h : (u.searchParams.set(t, e), this.formatUrl(h, u));
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* 移除查询参数
|
|
271
271
|
*/
|
|
272
|
-
static removeParam(
|
|
273
|
-
const e = this.parse(
|
|
274
|
-
return !e || !e.searchParams.has(t) ?
|
|
272
|
+
static removeParam(h, t) {
|
|
273
|
+
const e = this.parse(h);
|
|
274
|
+
return !e || !e.searchParams.has(t) ? h : (e.searchParams.delete(t), this.formatUrl(h, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(
|
|
280
|
-
return this.parse(
|
|
279
|
+
static hasParam(h, t) {
|
|
280
|
+
return this.parse(h)?.searchParams.has(t) ?? !1;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
|
-
static formatUrl(
|
|
286
|
-
const e = /^(https?:)?\/\//i.test(
|
|
285
|
+
static formatUrl(h, t) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(h), u = h.startsWith("//");
|
|
287
287
|
return e ? t.toString() : u ? t.toString().replace(/^https?:/, "") : `${t.pathname}${t.search}${t.hash}`;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* 检查是否为数据 URL
|
|
291
291
|
*/
|
|
292
|
-
static isDataUrl(
|
|
293
|
-
return
|
|
292
|
+
static isDataUrl(h) {
|
|
293
|
+
return h?.startsWith("data:") ?? !1;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* 检查是否为 Blob URL
|
|
297
297
|
*/
|
|
298
|
-
static isBlobUrl(
|
|
299
|
-
return
|
|
298
|
+
static isBlobUrl(h) {
|
|
299
|
+
return h?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
return r;
|
|
306
|
-
}, cr();
|
|
307
|
-
}
|
|
308
|
-
(function(r, d) {
|
|
309
|
-
const t = r0, e = r();
|
|
302
|
+
const t0 = fr;
|
|
303
|
+
(function(r, h) {
|
|
304
|
+
const t = fr, e = r();
|
|
310
305
|
for (; ; )
|
|
311
306
|
try {
|
|
312
|
-
if (-parseInt(t(
|
|
307
|
+
if (-parseInt(t(129)) / 1 * (parseInt(t(151)) / 2) + -parseInt(t(123)) / 3 * (parseInt(t(130)) / 4) + -parseInt(t(137)) / 5 + -parseInt(t(135)) / 6 * (-parseInt(t(121)) / 7) + parseInt(t(122)) / 8 * (-parseInt(t(148)) / 9) + -parseInt(t(150)) / 10 + parseInt(t(141)) / 11 === h) break;
|
|
313
308
|
e.push(e.shift());
|
|
314
309
|
} catch {
|
|
315
310
|
e.push(e.shift());
|
|
316
311
|
}
|
|
317
|
-
})(cr, -
|
|
312
|
+
})(cr, -139 * 1991 + 1094890 + 53982);
|
|
318
313
|
const A0 = /* @__PURE__ */ (function() {
|
|
319
314
|
let r = !0;
|
|
320
|
-
return function(
|
|
315
|
+
return function(h, t) {
|
|
321
316
|
const e = r ? function() {
|
|
322
317
|
if (t) {
|
|
323
|
-
const u = t.apply(
|
|
318
|
+
const u = t.apply(h, arguments);
|
|
324
319
|
return t = null, u;
|
|
325
320
|
}
|
|
326
321
|
} : function() {
|
|
327
322
|
};
|
|
328
323
|
return r = !1, e;
|
|
329
324
|
};
|
|
330
|
-
})(),
|
|
331
|
-
const r =
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
325
|
+
})(), tt = A0(void 0, function() {
|
|
326
|
+
const r = fr, h = function() {
|
|
327
|
+
const p = fr;
|
|
328
|
+
let m;
|
|
329
|
+
try {
|
|
330
|
+
m = Function("return (function() " + ("{}.co" + p(132) + 'ctor("return this")( )') + ");")();
|
|
331
|
+
} catch {
|
|
332
|
+
m = window;
|
|
333
|
+
}
|
|
334
|
+
return m;
|
|
335
|
+
}, t = h(), e = t.console = t.console || {}, u = ["log", "warn", r(153), "error", "exception", "table", "trace"];
|
|
336
|
+
for (let p = -6561 + -719 * -7 + 1528; p < u.length; p++) {
|
|
337
|
+
const m = A0.constructor[r(128) + r(127)].bind(A0), B = u[p], C = e[B] || m;
|
|
338
|
+
m.__proto__ = A0[r(131)](A0), m.toString = C.toString.bind(C), e[B] = m;
|
|
342
339
|
}
|
|
343
340
|
});
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
const Cr = "file_token", Er = "file_token_expire_time", tt = 60 * (-10361 + -1623 * -7);
|
|
349
|
-
function pr() {
|
|
350
|
-
return v0.getItem(Cr);
|
|
341
|
+
tt();
|
|
342
|
+
const Er = t0(143) + "token", Ar = "file_token_expire_time", xt = 60 * (-1861 * 4 + 7012 + 1432);
|
|
343
|
+
function Br() {
|
|
344
|
+
return v0.getItem(Er);
|
|
351
345
|
}
|
|
352
|
-
function
|
|
353
|
-
const
|
|
354
|
-
if (!
|
|
355
|
-
const e = v0.getItem(
|
|
346
|
+
function nt(r = xt) {
|
|
347
|
+
const h = t0;
|
|
348
|
+
if (!Br()) return !0;
|
|
349
|
+
const e = v0.getItem(Ar);
|
|
356
350
|
if (!e) return !1;
|
|
357
351
|
const u = Number(e);
|
|
358
|
-
return Date[
|
|
352
|
+
return Date[h(139)]() + r > u;
|
|
359
353
|
}
|
|
360
|
-
function
|
|
361
|
-
const t =
|
|
362
|
-
if (v0.setItem(
|
|
363
|
-
const e = Date
|
|
364
|
-
v0.setItem(
|
|
354
|
+
function at(r, h) {
|
|
355
|
+
const t = t0;
|
|
356
|
+
if (v0.setItem(Er, r), typeof h == t(140) + "r" && h > 0) {
|
|
357
|
+
const e = Date.now() + h * 1e3;
|
|
358
|
+
v0.setItem(Ar, String(e));
|
|
365
359
|
}
|
|
366
360
|
}
|
|
367
|
-
function
|
|
368
|
-
|
|
369
|
-
v0[r(272) + "eItem"](Cr), v0[r(272) + "eItem"](Er);
|
|
361
|
+
function ot() {
|
|
362
|
+
v0["remov" + t0(146)](Er), v0.removeItem(Ar);
|
|
370
363
|
}
|
|
371
|
-
async function
|
|
372
|
-
const
|
|
373
|
-
return t?.
|
|
364
|
+
async function Wr(r) {
|
|
365
|
+
const h = t0, t = await r(), e = t?.data?.data;
|
|
366
|
+
return t?.data?.code === -1 * -8089 + -317 * -13 + -10 * 1201 && e?.["file_" + h(124)] ? (at(e.file_token, e.expires_in), e[h(143) + h(124)]) : null;
|
|
374
367
|
}
|
|
375
|
-
let
|
|
376
|
-
function
|
|
377
|
-
const r =
|
|
378
|
-
return
|
|
368
|
+
let it = null;
|
|
369
|
+
function cr() {
|
|
370
|
+
const r = ["file_", "FileT", "parse", "eItem", "remov", "3167316CrSBuk", "statu", "306530NnyONj", "2bmczqJ", "ram", "info", "oken", "196rlHcWD", "24nbzDju", "9yYnmnJ", "token", "pathn", "wser", "type", "proto", "416089XFkiJC", "1155524nzebBO", "bind", "nstru", "inclu", "isDat", "178698acMxqO", "des", "81925NIjlmQ", "aUrl", "now", "numbe", "26661151qXzcfw", "fileT"];
|
|
371
|
+
return cr = function() {
|
|
372
|
+
return r;
|
|
373
|
+
}, cr();
|
|
379
374
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
375
|
+
function Ir() {
|
|
376
|
+
return ur.isBrowser() ? it : null;
|
|
377
|
+
}
|
|
378
|
+
async function be() {
|
|
379
|
+
const r = t0;
|
|
380
|
+
if (!ur.isBrowser()) return Br();
|
|
381
|
+
const h = Br();
|
|
382
|
+
if (h && !nt()) return h;
|
|
385
383
|
try {
|
|
386
|
-
const t = await
|
|
387
|
-
if (
|
|
388
|
-
const e = await
|
|
384
|
+
const t = await Ir();
|
|
385
|
+
if (h && t?.["fetch" + r(144) + "okenRefresh"]) {
|
|
386
|
+
const e = await Wr(t.fetchFileTokenRefresh);
|
|
389
387
|
if (e) return e;
|
|
390
388
|
}
|
|
391
389
|
} catch {
|
|
392
390
|
}
|
|
393
391
|
try {
|
|
394
|
-
const t =
|
|
395
|
-
return t?.["fetchFileToken"] ? await
|
|
392
|
+
const t = Ir();
|
|
393
|
+
return t?.["fetchFileToken"] ? await Wr(t["fetch" + r(144) + r(154)]) : null;
|
|
396
394
|
} catch {
|
|
397
395
|
return null;
|
|
398
396
|
}
|
|
399
397
|
}
|
|
400
|
-
function
|
|
401
|
-
const
|
|
402
|
-
if (!r || h0[
|
|
403
|
-
const t = h0[
|
|
404
|
-
return t ? t
|
|
398
|
+
function me(r) {
|
|
399
|
+
const h = t0;
|
|
400
|
+
if (!r || h0[h(134) + h(138)](r) || h0.isBlobUrl(r)) return !1;
|
|
401
|
+
const t = h0[h(145)](r);
|
|
402
|
+
return t ? t[h(125) + "ame"][h(133) + h(136)]("/files/") && !h0["hasPa" + h(152)](r, "fileToken") : r.includes("/files/") && !r.includes("fileToken=");
|
|
403
|
+
}
|
|
404
|
+
function fr(r, h) {
|
|
405
|
+
return r = r - (-2 * 4017 + 1818 + 1 * 6337), cr()[r];
|
|
405
406
|
}
|
|
406
|
-
function
|
|
407
|
-
const t =
|
|
408
|
-
return !
|
|
407
|
+
function _e(r, h) {
|
|
408
|
+
const t = t0;
|
|
409
|
+
return !h || !me(r) ? r : h0["addPa" + t(152)](r, t(142) + t(154), h);
|
|
409
410
|
}
|
|
410
|
-
function
|
|
411
|
-
|
|
412
|
-
return h0[d(272) + "eParam"](r, d(266) + "oken");
|
|
411
|
+
function st(r) {
|
|
412
|
+
return h0[t0(147) + "eParam"](r, "fileToken");
|
|
413
413
|
}
|
|
414
|
-
async function
|
|
415
|
-
if (!
|
|
416
|
-
const
|
|
417
|
-
return
|
|
414
|
+
async function ct(r) {
|
|
415
|
+
if (!me(r)) return r;
|
|
416
|
+
const h = await be();
|
|
417
|
+
return _e(r, h);
|
|
418
418
|
}
|
|
419
|
-
async function
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
419
|
+
async function ye(r, h) {
|
|
420
|
+
const t = t0;
|
|
421
|
+
if (!ur["isBro" + t(126)]()) return fetch(r, h);
|
|
422
|
+
const e = st(r), u = await ct(e), p = await fetch(u, h);
|
|
423
|
+
if (p[t(149) + "s"] !== -479 * -4 + -1 * 1879 + 364) return p;
|
|
424
|
+
ot();
|
|
425
|
+
const m = await be(), B = _e(e, m);
|
|
426
|
+
return fetch(B, h);
|
|
426
427
|
}
|
|
427
|
-
const
|
|
428
|
+
const we = (r, h) => {
|
|
428
429
|
if (!r) return r;
|
|
429
|
-
const t = (
|
|
430
|
+
const t = (h || "").replace(/\/$/, "");
|
|
430
431
|
if (t && r.startsWith(t))
|
|
431
432
|
return r;
|
|
432
433
|
if (typeof window < "u") {
|
|
@@ -449,22 +450,22 @@ const ye = (r, d) => {
|
|
|
449
450
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
450
451
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
451
452
|
return e ? `/oss${e[2]}` : r;
|
|
452
|
-
},
|
|
453
|
+
}, ft = (r, h) => {
|
|
453
454
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
454
|
-
return new OffscreenCanvas(r,
|
|
455
|
+
return new OffscreenCanvas(r, h);
|
|
455
456
|
const t = document.createElement("canvas");
|
|
456
|
-
return t.width = r, t.height =
|
|
457
|
-
}, _0 = async (r,
|
|
458
|
-
if (!
|
|
457
|
+
return t.width = r, t.height = h, t;
|
|
458
|
+
}, _0 = async (r, h) => {
|
|
459
|
+
if (!h || h <= 0) return r;
|
|
459
460
|
const t = Math.max(r.width, r.height);
|
|
460
|
-
if (t <=
|
|
461
|
-
const e =
|
|
461
|
+
if (t <= h) return r;
|
|
462
|
+
const e = h / t, u = Math.max(1, Math.round(r.width * e)), p = Math.max(1, Math.round(r.height * e)), m = ft(u, p), B = m.getContext("2d");
|
|
462
463
|
return B ? (B.drawImage(r, 0, 0, u, p), r.close?.(), await createImageBitmap(m)) : r;
|
|
463
464
|
};
|
|
464
|
-
async function
|
|
465
|
+
async function ut(r, h, t) {
|
|
465
466
|
if (typeof r == "string")
|
|
466
467
|
try {
|
|
467
|
-
const e =
|
|
468
|
+
const e = we(r, t), u = await ye(e);
|
|
468
469
|
if (!u.ok) {
|
|
469
470
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
470
471
|
throw new Error(m);
|
|
@@ -474,7 +475,7 @@ async function ft(r, d, t) {
|
|
|
474
475
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
475
476
|
try {
|
|
476
477
|
const m = await createImageBitmap(p);
|
|
477
|
-
return await _0(m,
|
|
478
|
+
return await _0(m, h);
|
|
478
479
|
} catch (m) {
|
|
479
480
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
480
481
|
}
|
|
@@ -488,7 +489,7 @@ async function ft(r, d, t) {
|
|
|
488
489
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
489
490
|
try {
|
|
490
491
|
const e = await createImageBitmap(r);
|
|
491
|
-
return await _0(e,
|
|
492
|
+
return await _0(e, h);
|
|
492
493
|
} catch (e) {
|
|
493
494
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
494
495
|
}
|
|
@@ -496,13 +497,13 @@ async function ft(r, d, t) {
|
|
|
496
497
|
if (r instanceof ImageBitmap) {
|
|
497
498
|
if (r.width === 0 || r.height === 0)
|
|
498
499
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
499
|
-
return await _0(r,
|
|
500
|
+
return await _0(r, h);
|
|
500
501
|
}
|
|
501
502
|
throw new Error("不支持的图片类型");
|
|
502
503
|
}
|
|
503
|
-
async function
|
|
504
|
+
async function dt(r, h, t) {
|
|
504
505
|
try {
|
|
505
|
-
const e =
|
|
506
|
+
const e = we(r, t), u = await ye(e);
|
|
506
507
|
if (!u.ok) {
|
|
507
508
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
508
509
|
throw new Error(m);
|
|
@@ -512,7 +513,7 @@ async function ut(r, d, t) {
|
|
|
512
513
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
513
514
|
try {
|
|
514
515
|
const m = await createImageBitmap(p);
|
|
515
|
-
return await _0(m,
|
|
516
|
+
return await _0(m, h);
|
|
516
517
|
} catch (m) {
|
|
517
518
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
518
519
|
}
|
|
@@ -520,9 +521,9 @@ async function ut(r, d, t) {
|
|
|
520
521
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
521
522
|
}
|
|
522
523
|
}
|
|
523
|
-
function
|
|
524
|
+
function Lr(r) {
|
|
524
525
|
if (!r) return "source-over";
|
|
525
|
-
const
|
|
526
|
+
const h = r.trim().toLowerCase();
|
|
526
527
|
return {
|
|
527
528
|
normal: "source-over",
|
|
528
529
|
multiply: "multiply",
|
|
@@ -548,22 +549,22 @@ function Ir(r) {
|
|
|
548
549
|
"linear dodge": "lighter",
|
|
549
550
|
lighter: "lighter",
|
|
550
551
|
"pass-through": "source-over"
|
|
551
|
-
}[
|
|
552
|
+
}[h] || "source-over";
|
|
552
553
|
}
|
|
553
|
-
var
|
|
554
|
-
function
|
|
554
|
+
var vr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
555
|
+
function lt(r) {
|
|
555
556
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
556
|
-
var
|
|
557
|
-
if (typeof
|
|
557
|
+
var h = r.default;
|
|
558
|
+
if (typeof h == "function") {
|
|
558
559
|
var t = function e() {
|
|
559
560
|
var u = !1;
|
|
560
561
|
try {
|
|
561
562
|
u = this instanceof e;
|
|
562
563
|
} catch {
|
|
563
564
|
}
|
|
564
|
-
return u ? Reflect.construct(
|
|
565
|
+
return u ? Reflect.construct(h, arguments, this.constructor) : h.apply(this, arguments);
|
|
565
566
|
};
|
|
566
|
-
t.prototype =
|
|
567
|
+
t.prototype = h.prototype;
|
|
567
568
|
} else t = {};
|
|
568
569
|
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
569
570
|
var u = Object.getOwnPropertyDescriptor(r, e);
|
|
@@ -576,23 +577,23 @@ function dt(r) {
|
|
|
576
577
|
}), t;
|
|
577
578
|
}
|
|
578
579
|
var y0 = { exports: {} };
|
|
579
|
-
function
|
|
580
|
+
function ht(r) {
|
|
580
581
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
581
582
|
}
|
|
582
|
-
var w0 = { exports: {} },
|
|
583
|
+
var w0 = { exports: {} }, vt = {}, pt = /* @__PURE__ */ Object.freeze({
|
|
583
584
|
__proto__: null,
|
|
584
|
-
default:
|
|
585
|
-
}),
|
|
585
|
+
default: vt
|
|
586
|
+
}), Bt = /* @__PURE__ */ lt(pt), Ct = w0.exports, Or;
|
|
586
587
|
function M() {
|
|
587
|
-
return
|
|
588
|
+
return Or || (Or = 1, (function(r, h) {
|
|
588
589
|
(function(t, e) {
|
|
589
590
|
r.exports = e();
|
|
590
|
-
})(
|
|
591
|
+
})(Ct, function() {
|
|
591
592
|
var t = t || (function(e, u) {
|
|
592
593
|
var p;
|
|
593
|
-
if (typeof window < "u" && window.crypto && (p = window.crypto), typeof self < "u" && self.crypto && (p = self.crypto), typeof globalThis < "u" && globalThis.crypto && (p = globalThis.crypto), !p && typeof window < "u" && window.msCrypto && (p = window.msCrypto), !p && typeof
|
|
594
|
+
if (typeof window < "u" && window.crypto && (p = window.crypto), typeof self < "u" && self.crypto && (p = self.crypto), typeof globalThis < "u" && globalThis.crypto && (p = globalThis.crypto), !p && typeof window < "u" && window.msCrypto && (p = window.msCrypto), !p && typeof vr < "u" && vr.crypto && (p = vr.crypto), !p && typeof ht == "function")
|
|
594
595
|
try {
|
|
595
|
-
p =
|
|
596
|
+
p = Bt;
|
|
596
597
|
} catch {
|
|
597
598
|
}
|
|
598
599
|
var m = function() {
|
|
@@ -613,8 +614,8 @@ function M() {
|
|
|
613
614
|
function i() {
|
|
614
615
|
}
|
|
615
616
|
return function(o) {
|
|
616
|
-
var
|
|
617
|
-
return i.prototype = o,
|
|
617
|
+
var d;
|
|
618
|
+
return i.prototype = o, d = new i(), i.prototype = null, d;
|
|
618
619
|
};
|
|
619
620
|
})(), C = {}, x = C.lib = {}, n = x.Base = /* @__PURE__ */ (function() {
|
|
620
621
|
return {
|
|
@@ -745,16 +746,16 @@ function M() {
|
|
|
745
746
|
* wordArray1.concat(wordArray2);
|
|
746
747
|
*/
|
|
747
748
|
concat: function(i) {
|
|
748
|
-
var o = this.words,
|
|
749
|
+
var o = this.words, d = i.words, b = this.sigBytes, D = i.sigBytes;
|
|
749
750
|
if (this.clamp(), b % 4)
|
|
750
|
-
for (var y = 0; y <
|
|
751
|
-
var k =
|
|
751
|
+
for (var y = 0; y < D; y++) {
|
|
752
|
+
var k = d[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
752
753
|
o[b + y >>> 2] |= k << 24 - (b + y) % 4 * 8;
|
|
753
754
|
}
|
|
754
755
|
else
|
|
755
|
-
for (var R = 0; R <
|
|
756
|
-
o[b + R >>> 2] =
|
|
757
|
-
return this.sigBytes +=
|
|
756
|
+
for (var R = 0; R < D; R += 4)
|
|
757
|
+
o[b + R >>> 2] = d[R >>> 2];
|
|
758
|
+
return this.sigBytes += D, this;
|
|
758
759
|
},
|
|
759
760
|
/**
|
|
760
761
|
* Removes insignificant bits.
|
|
@@ -794,7 +795,7 @@ function M() {
|
|
|
794
795
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
795
796
|
*/
|
|
796
797
|
random: function(i) {
|
|
797
|
-
for (var o = [],
|
|
798
|
+
for (var o = [], d = 0; d < i; d += 4)
|
|
798
799
|
o.push(m());
|
|
799
800
|
return new E.init(o, i);
|
|
800
801
|
}
|
|
@@ -813,8 +814,8 @@ function M() {
|
|
|
813
814
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
814
815
|
*/
|
|
815
816
|
stringify: function(i) {
|
|
816
|
-
for (var o = i.words,
|
|
817
|
-
var y = o[
|
|
817
|
+
for (var o = i.words, d = i.sigBytes, b = [], D = 0; D < d; D++) {
|
|
818
|
+
var y = o[D >>> 2] >>> 24 - D % 4 * 8 & 255;
|
|
818
819
|
b.push((y >>> 4).toString(16)), b.push((y & 15).toString(16));
|
|
819
820
|
}
|
|
820
821
|
return b.join("");
|
|
@@ -833,9 +834,9 @@ function M() {
|
|
|
833
834
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
834
835
|
*/
|
|
835
836
|
parse: function(i) {
|
|
836
|
-
for (var o = i.length,
|
|
837
|
-
|
|
838
|
-
return new E.init(
|
|
837
|
+
for (var o = i.length, d = [], b = 0; b < o; b += 2)
|
|
838
|
+
d[b >>> 3] |= parseInt(i.substr(b, 2), 16) << 24 - b % 8 * 4;
|
|
839
|
+
return new E.init(d, o / 2);
|
|
839
840
|
}
|
|
840
841
|
}, f = a.Latin1 = {
|
|
841
842
|
/**
|
|
@@ -852,8 +853,8 @@ function M() {
|
|
|
852
853
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
853
854
|
*/
|
|
854
855
|
stringify: function(i) {
|
|
855
|
-
for (var o = i.words,
|
|
856
|
-
var y = o[
|
|
856
|
+
for (var o = i.words, d = i.sigBytes, b = [], D = 0; D < d; D++) {
|
|
857
|
+
var y = o[D >>> 2] >>> 24 - D % 4 * 8 & 255;
|
|
857
858
|
b.push(String.fromCharCode(y));
|
|
858
859
|
}
|
|
859
860
|
return b.join("");
|
|
@@ -872,9 +873,9 @@ function M() {
|
|
|
872
873
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
873
874
|
*/
|
|
874
875
|
parse: function(i) {
|
|
875
|
-
for (var o = i.length,
|
|
876
|
-
|
|
877
|
-
return new E.init(
|
|
876
|
+
for (var o = i.length, d = [], b = 0; b < o; b++)
|
|
877
|
+
d[b >>> 2] |= (i.charCodeAt(b) & 255) << 24 - b % 4 * 8;
|
|
878
|
+
return new E.init(d, o);
|
|
878
879
|
}
|
|
879
880
|
}, v = a.Utf8 = {
|
|
880
881
|
/**
|
|
@@ -913,7 +914,7 @@ function M() {
|
|
|
913
914
|
parse: function(i) {
|
|
914
915
|
return f.parse(unescape(encodeURIComponent(i)));
|
|
915
916
|
}
|
|
916
|
-
},
|
|
917
|
+
}, l = x.BufferedBlockAlgorithm = n.extend({
|
|
917
918
|
/**
|
|
918
919
|
* Resets this block algorithm's data buffer to its initial state.
|
|
919
920
|
*
|
|
@@ -952,13 +953,13 @@ function M() {
|
|
|
952
953
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
953
954
|
*/
|
|
954
955
|
_process: function(i) {
|
|
955
|
-
var o,
|
|
956
|
+
var o, d = this._data, b = d.words, D = d.sigBytes, y = this.blockSize, k = y * 4, R = D / k;
|
|
956
957
|
i ? R = e.ceil(R) : R = e.max((R | 0) - this._minBufferSize, 0);
|
|
957
|
-
var F = R * y, w = e.min(F * 4,
|
|
958
|
+
var F = R * y, w = e.min(F * 4, D);
|
|
958
959
|
if (F) {
|
|
959
960
|
for (var H = 0; H < F; H += y)
|
|
960
961
|
this._doProcessBlock(b, H);
|
|
961
|
-
o = b.splice(0, F),
|
|
962
|
+
o = b.splice(0, F), d.sigBytes -= w;
|
|
962
963
|
}
|
|
963
964
|
return new E.init(o, w);
|
|
964
965
|
},
|
|
@@ -977,7 +978,7 @@ function M() {
|
|
|
977
978
|
},
|
|
978
979
|
_minBufferSize: 0
|
|
979
980
|
});
|
|
980
|
-
x.Hasher =
|
|
981
|
+
x.Hasher = l.extend({
|
|
981
982
|
/**
|
|
982
983
|
* Configuration options.
|
|
983
984
|
*/
|
|
@@ -1002,7 +1003,7 @@ function M() {
|
|
|
1002
1003
|
* hasher.reset();
|
|
1003
1004
|
*/
|
|
1004
1005
|
reset: function() {
|
|
1005
|
-
|
|
1006
|
+
l.reset.call(this), this._doReset();
|
|
1006
1007
|
},
|
|
1007
1008
|
/**
|
|
1008
1009
|
* Updates this hasher with a message.
|
|
@@ -1053,8 +1054,8 @@ function M() {
|
|
|
1053
1054
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
1054
1055
|
*/
|
|
1055
1056
|
_createHelper: function(i) {
|
|
1056
|
-
return function(o,
|
|
1057
|
-
return new i.init(
|
|
1057
|
+
return function(o, d) {
|
|
1058
|
+
return new i.init(d).finalize(o);
|
|
1058
1059
|
};
|
|
1059
1060
|
},
|
|
1060
1061
|
/**
|
|
@@ -1071,24 +1072,24 @@ function M() {
|
|
|
1071
1072
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
1072
1073
|
*/
|
|
1073
1074
|
_createHmacHelper: function(i) {
|
|
1074
|
-
return function(o,
|
|
1075
|
-
return new
|
|
1075
|
+
return function(o, d) {
|
|
1076
|
+
return new g.HMAC.init(i, d).finalize(o);
|
|
1076
1077
|
};
|
|
1077
1078
|
}
|
|
1078
1079
|
});
|
|
1079
|
-
var
|
|
1080
|
+
var g = C.algo = {};
|
|
1080
1081
|
return C;
|
|
1081
1082
|
})(Math);
|
|
1082
1083
|
return t;
|
|
1083
1084
|
});
|
|
1084
1085
|
})(w0)), w0.exports;
|
|
1085
1086
|
}
|
|
1086
|
-
var k0 = { exports: {} },
|
|
1087
|
-
function
|
|
1088
|
-
return
|
|
1087
|
+
var k0 = { exports: {} }, Et = k0.exports, qr;
|
|
1088
|
+
function dr() {
|
|
1089
|
+
return qr || (qr = 1, (function(r, h) {
|
|
1089
1090
|
(function(t, e) {
|
|
1090
1091
|
r.exports = e(M());
|
|
1091
|
-
})(
|
|
1092
|
+
})(Et, function(t) {
|
|
1092
1093
|
return (function(e) {
|
|
1093
1094
|
var u = t, p = u.lib, m = p.Base, B = p.WordArray, C = u.x64 = {};
|
|
1094
1095
|
C.Word = m.extend({
|
|
@@ -1313,12 +1314,12 @@ function ur() {
|
|
|
1313
1314
|
});
|
|
1314
1315
|
})(k0)), k0.exports;
|
|
1315
1316
|
}
|
|
1316
|
-
var S0 = { exports: {} },
|
|
1317
|
-
function
|
|
1318
|
-
return
|
|
1317
|
+
var S0 = { exports: {} }, At = S0.exports, Tr;
|
|
1318
|
+
function Ft() {
|
|
1319
|
+
return Tr || (Tr = 1, (function(r, h) {
|
|
1319
1320
|
(function(t, e) {
|
|
1320
1321
|
r.exports = e(M());
|
|
1321
|
-
})(
|
|
1322
|
+
})(At, function(t) {
|
|
1322
1323
|
return (function() {
|
|
1323
1324
|
if (typeof ArrayBuffer == "function") {
|
|
1324
1325
|
var e = t, u = e.lib, p = u.WordArray, m = p.init, B = p.init = function(C) {
|
|
@@ -1335,12 +1336,12 @@ function At() {
|
|
|
1335
1336
|
});
|
|
1336
1337
|
})(S0)), S0.exports;
|
|
1337
1338
|
}
|
|
1338
|
-
var H0 = { exports: {} },
|
|
1339
|
+
var H0 = { exports: {} }, Dt = H0.exports, Mr;
|
|
1339
1340
|
function gt() {
|
|
1340
|
-
return
|
|
1341
|
+
return Mr || (Mr = 1, (function(r, h) {
|
|
1341
1342
|
(function(t, e) {
|
|
1342
1343
|
r.exports = e(M());
|
|
1343
|
-
})(
|
|
1344
|
+
})(Dt, function(t) {
|
|
1344
1345
|
return (function() {
|
|
1345
1346
|
var e = t, u = e.lib, p = u.WordArray, m = e.enc;
|
|
1346
1347
|
m.Utf16 = m.Utf16BE = {
|
|
@@ -1429,12 +1430,12 @@ function gt() {
|
|
|
1429
1430
|
});
|
|
1430
1431
|
})(H0)), H0.exports;
|
|
1431
1432
|
}
|
|
1432
|
-
var $0 = { exports: {} },
|
|
1433
|
+
var $0 = { exports: {} }, bt = $0.exports, Nr;
|
|
1433
1434
|
function s0() {
|
|
1434
|
-
return
|
|
1435
|
+
return Nr || (Nr = 1, (function(r, h) {
|
|
1435
1436
|
(function(t, e) {
|
|
1436
1437
|
r.exports = e(M());
|
|
1437
|
-
})(
|
|
1438
|
+
})(bt, function(t) {
|
|
1438
1439
|
return (function() {
|
|
1439
1440
|
var e = t, u = e.lib, p = u.WordArray, m = e.enc;
|
|
1440
1441
|
m.Base64 = {
|
|
@@ -1455,8 +1456,8 @@ function s0() {
|
|
|
1455
1456
|
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1456
1457
|
C.clamp();
|
|
1457
1458
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1458
|
-
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, v = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255,
|
|
1459
|
-
a.push(E.charAt(
|
|
1459
|
+
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, v = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, l = x[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, g = f << 16 | v << 8 | l, i = 0; i < 4 && s + i * 0.75 < n; i++)
|
|
1460
|
+
a.push(E.charAt(g >>> 6 * (3 - i) & 63));
|
|
1460
1461
|
var o = E.charAt(64);
|
|
1461
1462
|
if (o)
|
|
1462
1463
|
for (; a.length % 4; )
|
|
@@ -1495,8 +1496,8 @@ function s0() {
|
|
|
1495
1496
|
function B(C, x, n) {
|
|
1496
1497
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1497
1498
|
if (s % 4) {
|
|
1498
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2,
|
|
1499
|
-
E[a >>> 2] |=
|
|
1499
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | v;
|
|
1500
|
+
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1500
1501
|
}
|
|
1501
1502
|
return p.create(E, a);
|
|
1502
1503
|
}
|
|
@@ -1504,12 +1505,12 @@ function s0() {
|
|
|
1504
1505
|
});
|
|
1505
1506
|
})($0)), $0.exports;
|
|
1506
1507
|
}
|
|
1507
|
-
var R0 = { exports: {} },
|
|
1508
|
-
function
|
|
1509
|
-
return
|
|
1508
|
+
var R0 = { exports: {} }, mt = R0.exports, Ur;
|
|
1509
|
+
function _t() {
|
|
1510
|
+
return Ur || (Ur = 1, (function(r, h) {
|
|
1510
1511
|
(function(t, e) {
|
|
1511
1512
|
r.exports = e(M());
|
|
1512
|
-
})(
|
|
1513
|
+
})(mt, function(t) {
|
|
1513
1514
|
return (function() {
|
|
1514
1515
|
var e = t, u = e.lib, p = u.WordArray, m = e.enc;
|
|
1515
1516
|
m.Base64url = {
|
|
@@ -1533,12 +1534,12 @@ function mt() {
|
|
|
1533
1534
|
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1534
1535
|
C.clamp();
|
|
1535
1536
|
for (var s = [], f = 0; f < E; f += 3)
|
|
1536
|
-
for (var v = n[f >>> 2] >>> 24 - f % 4 * 8 & 255,
|
|
1537
|
+
for (var v = 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 = v << 16 | l << 8 | g, o = 0; o < 4 && f + o * 0.75 < E; o++)
|
|
1537
1538
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1538
|
-
var
|
|
1539
|
-
if (
|
|
1539
|
+
var d = a.charAt(64);
|
|
1540
|
+
if (d)
|
|
1540
1541
|
for (; s.length % 4; )
|
|
1541
|
-
s.push(
|
|
1542
|
+
s.push(d);
|
|
1542
1543
|
return s.join("");
|
|
1543
1544
|
},
|
|
1544
1545
|
/**
|
|
@@ -1577,8 +1578,8 @@ function mt() {
|
|
|
1577
1578
|
function B(C, x, n) {
|
|
1578
1579
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1579
1580
|
if (s % 4) {
|
|
1580
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2,
|
|
1581
|
-
E[a >>> 2] |=
|
|
1581
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | v;
|
|
1582
|
+
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1582
1583
|
}
|
|
1583
1584
|
return p.create(E, a);
|
|
1584
1585
|
}
|
|
@@ -1586,12 +1587,12 @@ function mt() {
|
|
|
1586
1587
|
});
|
|
1587
1588
|
})(R0)), R0.exports;
|
|
1588
1589
|
}
|
|
1589
|
-
var P0 = { exports: {} },
|
|
1590
|
+
var P0 = { exports: {} }, yt = P0.exports, jr;
|
|
1590
1591
|
function c0() {
|
|
1591
|
-
return
|
|
1592
|
+
return jr || (jr = 1, (function(r, h) {
|
|
1592
1593
|
(function(t, e) {
|
|
1593
1594
|
r.exports = e(M());
|
|
1594
|
-
})(
|
|
1595
|
+
})(yt, function(t) {
|
|
1595
1596
|
return (function(e) {
|
|
1596
1597
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.algo, x = [];
|
|
1597
1598
|
(function() {
|
|
@@ -1607,22 +1608,22 @@ function c0() {
|
|
|
1607
1608
|
271733878
|
|
1608
1609
|
]);
|
|
1609
1610
|
},
|
|
1610
|
-
_doProcessBlock: function(v,
|
|
1611
|
-
for (var
|
|
1612
|
-
var i =
|
|
1611
|
+
_doProcessBlock: function(v, l) {
|
|
1612
|
+
for (var g = 0; g < 16; g++) {
|
|
1613
|
+
var i = l + g, o = v[i];
|
|
1613
1614
|
v[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1614
1615
|
}
|
|
1615
|
-
var
|
|
1616
|
-
S = E(S, c, A, _, b, 7, x[0]), _ = E(_, S, c, A,
|
|
1616
|
+
var d = this._hash.words, b = v[l + 0], D = v[l + 1], y = v[l + 2], k = v[l + 3], R = v[l + 4], F = v[l + 5], w = v[l + 6], H = v[l + 7], $ = v[l + 8], z = v[l + 9], O = v[l + 10], q = v[l + 11], U = v[l + 12], T = v[l + 13], N = v[l + 14], j = v[l + 15], S = d[0], c = d[1], A = d[2], _ = d[3];
|
|
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;
|
|
1617
1618
|
},
|
|
1618
1619
|
_doFinalize: function() {
|
|
1619
|
-
var v = this._data,
|
|
1620
|
-
|
|
1621
|
-
var o = e.floor(
|
|
1622
|
-
|
|
1623
|
-
for (var b = this._hash,
|
|
1624
|
-
var k =
|
|
1625
|
-
|
|
1620
|
+
var v = this._data, l = v.words, g = this._nDataBytes * 8, i = v.sigBytes * 8;
|
|
1621
|
+
l[i >>> 5] |= 128 << 24 - i % 32;
|
|
1622
|
+
var o = e.floor(g / 4294967296), d = g;
|
|
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, v.sigBytes = (l.length + 1) * 4, this._process();
|
|
1624
|
+
for (var b = this._hash, D = b.words, y = 0; y < 4; y++) {
|
|
1625
|
+
var k = D[y];
|
|
1626
|
+
D[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
1626
1627
|
}
|
|
1627
1628
|
return b;
|
|
1628
1629
|
},
|
|
@@ -1631,33 +1632,33 @@ function c0() {
|
|
|
1631
1632
|
return v._hash = this._hash.clone(), v;
|
|
1632
1633
|
}
|
|
1633
1634
|
});
|
|
1634
|
-
function E(v,
|
|
1635
|
-
var
|
|
1636
|
-
return (
|
|
1635
|
+
function E(v, l, g, i, o, d, b) {
|
|
1636
|
+
var D = v + (l & g | ~l & i) + o + b;
|
|
1637
|
+
return (D << d | D >>> 32 - d) + l;
|
|
1637
1638
|
}
|
|
1638
|
-
function a(v,
|
|
1639
|
-
var
|
|
1640
|
-
return (
|
|
1639
|
+
function a(v, l, g, i, o, d, b) {
|
|
1640
|
+
var D = v + (l & i | g & ~i) + o + b;
|
|
1641
|
+
return (D << d | D >>> 32 - d) + l;
|
|
1641
1642
|
}
|
|
1642
|
-
function s(v,
|
|
1643
|
-
var
|
|
1644
|
-
return (
|
|
1643
|
+
function s(v, l, g, i, o, d, b) {
|
|
1644
|
+
var D = v + (l ^ g ^ i) + o + b;
|
|
1645
|
+
return (D << d | D >>> 32 - d) + l;
|
|
1645
1646
|
}
|
|
1646
|
-
function f(v,
|
|
1647
|
-
var
|
|
1648
|
-
return (
|
|
1647
|
+
function f(v, l, g, i, o, d, b) {
|
|
1648
|
+
var D = v + (g ^ (l | ~i)) + o + b;
|
|
1649
|
+
return (D << d | D >>> 32 - d) + l;
|
|
1649
1650
|
}
|
|
1650
1651
|
u.MD5 = B._createHelper(n), u.HmacMD5 = B._createHmacHelper(n);
|
|
1651
1652
|
})(Math), t.MD5;
|
|
1652
1653
|
});
|
|
1653
1654
|
})(P0)), P0.exports;
|
|
1654
1655
|
}
|
|
1655
|
-
var z0 = { exports: {} },
|
|
1656
|
-
function
|
|
1657
|
-
return
|
|
1656
|
+
var z0 = { exports: {} }, wt = z0.exports, Gr;
|
|
1657
|
+
function ke() {
|
|
1658
|
+
return Gr || (Gr = 1, (function(r, h) {
|
|
1658
1659
|
(function(t, e) {
|
|
1659
1660
|
r.exports = e(M());
|
|
1660
|
-
})(
|
|
1661
|
+
})(wt, function(t) {
|
|
1661
1662
|
return (function() {
|
|
1662
1663
|
var e = t, u = e.lib, p = u.WordArray, m = u.Hasher, B = e.algo, C = [], x = B.SHA1 = m.extend({
|
|
1663
1664
|
_doReset: function() {
|
|
@@ -1670,17 +1671,17 @@ function we() {
|
|
|
1670
1671
|
]);
|
|
1671
1672
|
},
|
|
1672
1673
|
_doProcessBlock: function(n, E) {
|
|
1673
|
-
for (var a = this._hash.words, s = a[0], f = a[1], v = a[2],
|
|
1674
|
+
for (var a = this._hash.words, s = a[0], f = a[1], v = a[2], l = a[3], g = a[4], i = 0; i < 80; i++) {
|
|
1674
1675
|
if (i < 16)
|
|
1675
1676
|
C[i] = n[E + i] | 0;
|
|
1676
1677
|
else {
|
|
1677
1678
|
var o = C[i - 3] ^ C[i - 8] ^ C[i - 14] ^ C[i - 16];
|
|
1678
1679
|
C[i] = o << 1 | o >>> 31;
|
|
1679
1680
|
}
|
|
1680
|
-
var
|
|
1681
|
-
i < 20 ?
|
|
1681
|
+
var d = (s << 5 | s >>> 27) + g + C[i];
|
|
1682
|
+
i < 20 ? d += (f & v | ~f & l) + 1518500249 : i < 40 ? d += (f ^ v ^ l) + 1859775393 : i < 60 ? d += (f & v | f & l | v & l) - 1894007588 : d += (f ^ v ^ l) - 899497514, g = l, l = v, v = f << 30 | f >>> 2, f = s, s = d;
|
|
1682
1683
|
}
|
|
1683
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + v | 0, a[3] = a[3] +
|
|
1684
|
+
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + v | 0, a[3] = a[3] + l | 0, a[4] = a[4] + g | 0;
|
|
1684
1685
|
},
|
|
1685
1686
|
_doFinalize: function() {
|
|
1686
1687
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
@@ -1696,47 +1697,47 @@ function we() {
|
|
|
1696
1697
|
});
|
|
1697
1698
|
})(z0)), z0.exports;
|
|
1698
1699
|
}
|
|
1699
|
-
var W0 = { exports: {} },
|
|
1700
|
-
function
|
|
1701
|
-
return
|
|
1700
|
+
var W0 = { exports: {} }, kt = W0.exports, Xr;
|
|
1701
|
+
function Fr() {
|
|
1702
|
+
return Xr || (Xr = 1, (function(r, h) {
|
|
1702
1703
|
(function(t, e) {
|
|
1703
1704
|
r.exports = e(M());
|
|
1704
|
-
})(
|
|
1705
|
+
})(kt, function(t) {
|
|
1705
1706
|
return (function(e) {
|
|
1706
1707
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.algo, x = [], n = [];
|
|
1707
1708
|
(function() {
|
|
1708
|
-
function s(
|
|
1709
|
-
for (var i = e.sqrt(
|
|
1710
|
-
if (!(
|
|
1709
|
+
function s(g) {
|
|
1710
|
+
for (var i = e.sqrt(g), o = 2; o <= i; o++)
|
|
1711
|
+
if (!(g % o))
|
|
1711
1712
|
return !1;
|
|
1712
1713
|
return !0;
|
|
1713
1714
|
}
|
|
1714
|
-
function f(
|
|
1715
|
-
return (
|
|
1715
|
+
function f(g) {
|
|
1716
|
+
return (g - (g | 0)) * 4294967296 | 0;
|
|
1716
1717
|
}
|
|
1717
|
-
for (var v = 2,
|
|
1718
|
-
s(v) && (
|
|
1718
|
+
for (var v = 2, l = 0; l < 64; )
|
|
1719
|
+
s(v) && (l < 8 && (x[l] = f(e.pow(v, 1 / 2))), n[l] = f(e.pow(v, 1 / 3)), l++), v++;
|
|
1719
1720
|
})();
|
|
1720
1721
|
var E = [], a = C.SHA256 = B.extend({
|
|
1721
1722
|
_doReset: function() {
|
|
1722
1723
|
this._hash = new m.init(x.slice(0));
|
|
1723
1724
|
},
|
|
1724
1725
|
_doProcessBlock: function(s, f) {
|
|
1725
|
-
for (var v = this._hash.words,
|
|
1726
|
+
for (var v = this._hash.words, l = v[0], g = v[1], i = v[2], o = v[3], d = v[4], b = v[5], D = v[6], y = v[7], k = 0; k < 64; k++) {
|
|
1726
1727
|
if (k < 16)
|
|
1727
1728
|
E[k] = s[f + k] | 0;
|
|
1728
1729
|
else {
|
|
1729
1730
|
var R = E[k - 15], F = (R << 25 | R >>> 7) ^ (R << 14 | R >>> 18) ^ R >>> 3, w = E[k - 2], H = (w << 15 | w >>> 17) ^ (w << 13 | w >>> 19) ^ w >>> 10;
|
|
1730
1731
|
E[k] = F + E[k - 7] + H + E[k - 16];
|
|
1731
1732
|
}
|
|
1732
|
-
var $ =
|
|
1733
|
-
y =
|
|
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;
|
|
1734
|
+
y = D, D = b, b = d, d = o + U | 0, o = i, i = g, g = l, l = U + T | 0;
|
|
1734
1735
|
}
|
|
1735
|
-
v[0] = v[0] +
|
|
1736
|
+
v[0] = v[0] + l | 0, v[1] = v[1] + g | 0, v[2] = v[2] + i | 0, v[3] = v[3] + o | 0, v[4] = v[4] + d | 0, v[5] = v[5] + b | 0, v[6] = v[6] + D | 0, v[7] = v[7] + y | 0;
|
|
1736
1737
|
},
|
|
1737
1738
|
_doFinalize: function() {
|
|
1738
|
-
var s = this._data, f = s.words, v = this._nDataBytes * 8,
|
|
1739
|
-
return f[
|
|
1739
|
+
var s = this._data, f = s.words, v = this._nDataBytes * 8, l = s.sigBytes * 8;
|
|
1740
|
+
return f[l >>> 5] |= 128 << 24 - l % 32, f[(l + 64 >>> 9 << 4) + 14] = e.floor(v / 4294967296), f[(l + 64 >>> 9 << 4) + 15] = v, s.sigBytes = f.length * 4, this._process(), this._hash;
|
|
1740
1741
|
},
|
|
1741
1742
|
clone: function() {
|
|
1742
1743
|
var s = B.clone.call(this);
|
|
@@ -1748,12 +1749,12 @@ function Ar() {
|
|
|
1748
1749
|
});
|
|
1749
1750
|
})(W0)), W0.exports;
|
|
1750
1751
|
}
|
|
1751
|
-
var I0 = { exports: {} },
|
|
1752
|
-
function
|
|
1753
|
-
return Kr || (Kr = 1, (function(r,
|
|
1752
|
+
var I0 = { exports: {} }, St = I0.exports, Kr;
|
|
1753
|
+
function Ht() {
|
|
1754
|
+
return Kr || (Kr = 1, (function(r, h) {
|
|
1754
1755
|
(function(t, e, u) {
|
|
1755
|
-
r.exports = e(M(),
|
|
1756
|
-
})(
|
|
1756
|
+
r.exports = e(M(), Fr());
|
|
1757
|
+
})(St, function(t) {
|
|
1757
1758
|
return (function() {
|
|
1758
1759
|
var e = t, u = e.lib, p = u.WordArray, m = e.algo, B = m.SHA256, C = m.SHA224 = B.extend({
|
|
1759
1760
|
_doReset: function() {
|
|
@@ -1778,12 +1779,12 @@ function St() {
|
|
|
1778
1779
|
});
|
|
1779
1780
|
})(I0)), I0.exports;
|
|
1780
1781
|
}
|
|
1781
|
-
var L0 = { exports: {} },
|
|
1782
|
-
function
|
|
1783
|
-
return
|
|
1782
|
+
var L0 = { exports: {} }, $t = L0.exports, Yr;
|
|
1783
|
+
function Se() {
|
|
1784
|
+
return Yr || (Yr = 1, (function(r, h) {
|
|
1784
1785
|
(function(t, e, u) {
|
|
1785
|
-
r.exports = e(M(),
|
|
1786
|
-
})(
|
|
1786
|
+
r.exports = e(M(), dr());
|
|
1787
|
+
})($t, function(t) {
|
|
1787
1788
|
return (function() {
|
|
1788
1789
|
var e = t, u = e.lib, p = u.Hasher, m = e.x64, B = m.Word, C = m.WordArray, x = e.algo;
|
|
1789
1790
|
function n() {
|
|
@@ -1889,22 +1890,22 @@ function ke() {
|
|
|
1889
1890
|
]);
|
|
1890
1891
|
},
|
|
1891
1892
|
_doProcessBlock: function(f, v) {
|
|
1892
|
-
for (var
|
|
1893
|
-
var J, x0, b0 = a[
|
|
1894
|
-
if (
|
|
1895
|
-
x0 = b0.high = f[v +
|
|
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, X = q, G = U, Y = T, r0 = N, f0 = j, g0 = S, p0 = c, lr = A, B0 = _, e0 = 0; e0 < 80; e0++) {
|
|
1894
|
+
var J, x0, b0 = a[e0];
|
|
1895
|
+
if (e0 < 16)
|
|
1896
|
+
x0 = b0.high = f[v + e0 * 2] | 0, J = b0.low = f[v + e0 * 2 + 1] | 0;
|
|
1896
1897
|
else {
|
|
1897
|
-
var
|
|
1898
|
-
J =
|
|
1898
|
+
var br = a[e0 - 15], u0 = br.high, C0 = br.low, Ie = (u0 >>> 1 | C0 << 31) ^ (u0 >>> 8 | C0 << 24) ^ u0 >>> 7, mr = (C0 >>> 1 | u0 << 31) ^ (C0 >>> 8 | u0 << 24) ^ (C0 >>> 7 | u0 << 25), _r = a[e0 - 2], d0 = _r.high, E0 = _r.low, Le = (d0 >>> 19 | E0 << 13) ^ (d0 << 3 | E0 >>> 29) ^ d0 >>> 6, yr = (E0 >>> 19 | d0 << 13) ^ (E0 << 3 | d0 >>> 29) ^ (E0 >>> 6 | d0 << 26), wr = a[e0 - 7], Oe = wr.high, qe = wr.low, kr = a[e0 - 16], Te = kr.high, Sr = kr.low;
|
|
1899
|
+
J = mr + qe, x0 = Ie + Oe + (J >>> 0 < mr >>> 0 ? 1 : 0), J = J + yr, x0 = x0 + Le + (J >>> 0 < yr >>> 0 ? 1 : 0), J = J + Sr, x0 = x0 + Te + (J >>> 0 < Sr >>> 0 ? 1 : 0), b0.high = x0, b0.low = J;
|
|
1899
1900
|
}
|
|
1900
|
-
var
|
|
1901
|
-
|
|
1901
|
+
var Me = G & r0 ^ ~G & g0, Hr = Y & f0 ^ ~Y & p0, Ne = W & L ^ W & Z ^ L & Z, Ue = P & I ^ P & Q ^ I & Q, je = (W >>> 28 | P << 4) ^ (W << 30 | P >>> 2) ^ (W << 25 | P >>> 7), $r = (P >>> 28 | W << 4) ^ (P << 30 | W >>> 2) ^ (P << 25 | W >>> 7), Ge = (G >>> 14 | Y << 18) ^ (G >>> 18 | Y << 14) ^ (G << 23 | Y >>> 9), Xe = (Y >>> 14 | G << 18) ^ (Y >>> 18 | G << 14) ^ (Y << 23 | G >>> 9), Rr = E[e0], Ke = Rr.high, Pr = Rr.low, V = B0 + Xe, n0 = lr + Ge + (V >>> 0 < B0 >>> 0 ? 1 : 0), V = V + Hr, n0 = n0 + Me + (V >>> 0 < Hr >>> 0 ? 1 : 0), V = V + Pr, n0 = n0 + Ke + (V >>> 0 < Pr >>> 0 ? 1 : 0), V = V + J, n0 = n0 + x0 + (V >>> 0 < J >>> 0 ? 1 : 0), zr = $r + Ue, Ye = je + Ne + (zr >>> 0 < $r >>> 0 ? 1 : 0);
|
|
1902
|
+
lr = g0, B0 = p0, g0 = r0, p0 = f0, r0 = G, f0 = Y, Y = X + V | 0, G = o0 + n0 + (Y >>> 0 < X >>> 0 ? 1 : 0) | 0, o0 = Z, X = Q, Z = L, Q = I, L = W, I = P, P = V + zr | 0, W = n0 + Ye + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1902
1903
|
}
|
|
1903
|
-
F =
|
|
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 + X, d.high = O + o0 + (q >>> 0 < X >>> 0 ? 1 : 0), T = b.low = T + Y, b.high = U + G + (T >>> 0 < Y >>> 0 ? 1 : 0), j = D.low = j + f0, D.high = N + r0 + (j >>> 0 < f0 >>> 0 ? 1 : 0), c = y.low = c + p0, y.high = S + g0 + (c >>> 0 < p0 >>> 0 ? 1 : 0), _ = k.low = _ + B0, k.high = A + lr + (_ >>> 0 < B0 >>> 0 ? 1 : 0);
|
|
1904
1905
|
},
|
|
1905
1906
|
_doFinalize: function() {
|
|
1906
|
-
var f = this._data, v = f.words,
|
|
1907
|
-
v[
|
|
1907
|
+
var f = this._data, v = f.words, l = this._nDataBytes * 8, g = f.sigBytes * 8;
|
|
1908
|
+
v[g >>> 5] |= 128 << 24 - g % 32, v[(g + 128 >>> 10 << 5) + 30] = Math.floor(l / 4294967296), v[(g + 128 >>> 10 << 5) + 31] = l, f.sigBytes = v.length * 4, this._process();
|
|
1908
1909
|
var i = this._hash.toX32();
|
|
1909
1910
|
return i;
|
|
1910
1911
|
},
|
|
@@ -1919,12 +1920,12 @@ function ke() {
|
|
|
1919
1920
|
});
|
|
1920
1921
|
})(L0)), L0.exports;
|
|
1921
1922
|
}
|
|
1922
|
-
var O0 = { exports: {} },
|
|
1923
|
-
function
|
|
1924
|
-
return
|
|
1923
|
+
var O0 = { exports: {} }, Rt = O0.exports, Zr;
|
|
1924
|
+
function Pt() {
|
|
1925
|
+
return Zr || (Zr = 1, (function(r, h) {
|
|
1925
1926
|
(function(t, e, u) {
|
|
1926
|
-
r.exports = e(M(),
|
|
1927
|
-
})(
|
|
1927
|
+
r.exports = e(M(), dr(), Se());
|
|
1928
|
+
})(Rt, function(t) {
|
|
1928
1929
|
return (function() {
|
|
1929
1930
|
var e = t, u = e.x64, p = u.Word, m = u.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1930
1931
|
_doReset: function() {
|
|
@@ -1949,24 +1950,24 @@ function Rt() {
|
|
|
1949
1950
|
});
|
|
1950
1951
|
})(O0)), O0.exports;
|
|
1951
1952
|
}
|
|
1952
|
-
var q0 = { exports: {} },
|
|
1953
|
-
function
|
|
1954
|
-
return
|
|
1953
|
+
var q0 = { exports: {} }, zt = q0.exports, Qr;
|
|
1954
|
+
function Wt() {
|
|
1955
|
+
return Qr || (Qr = 1, (function(r, h) {
|
|
1955
1956
|
(function(t, e, u) {
|
|
1956
|
-
r.exports = e(M(),
|
|
1957
|
-
})(
|
|
1957
|
+
r.exports = e(M(), dr());
|
|
1958
|
+
})(zt, function(t) {
|
|
1958
1959
|
return (function(e) {
|
|
1959
1960
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.x64, x = C.Word, n = u.algo, E = [], a = [], s = [];
|
|
1960
1961
|
(function() {
|
|
1961
|
-
for (var
|
|
1962
|
-
E[
|
|
1963
|
-
var o =
|
|
1964
|
-
|
|
1962
|
+
for (var l = 1, g = 0, i = 0; i < 24; i++) {
|
|
1963
|
+
E[l + 5 * g] = (i + 1) * (i + 2) / 2 % 64;
|
|
1964
|
+
var o = g % 5, d = (2 * l + 3 * g) % 5;
|
|
1965
|
+
l = o, g = d;
|
|
1965
1966
|
}
|
|
1966
|
-
for (var
|
|
1967
|
-
for (var
|
|
1968
|
-
a[
|
|
1969
|
-
for (var b = 1,
|
|
1967
|
+
for (var l = 0; l < 5; l++)
|
|
1968
|
+
for (var g = 0; g < 5; g++)
|
|
1969
|
+
a[l + 5 * g] = g + (2 * l + 3 * g) % 5 * 5;
|
|
1970
|
+
for (var b = 1, D = 0; D < 24; D++) {
|
|
1970
1971
|
for (var y = 0, k = 0, R = 0; R < 7; R++) {
|
|
1971
1972
|
if (b & 1) {
|
|
1972
1973
|
var F = (1 << R) - 1;
|
|
@@ -1974,13 +1975,13 @@ function zt() {
|
|
|
1974
1975
|
}
|
|
1975
1976
|
b & 128 ? b = b << 1 ^ 113 : b <<= 1;
|
|
1976
1977
|
}
|
|
1977
|
-
s[
|
|
1978
|
+
s[D] = x.create(y, k);
|
|
1978
1979
|
}
|
|
1979
1980
|
})();
|
|
1980
1981
|
var f = [];
|
|
1981
1982
|
(function() {
|
|
1982
|
-
for (var
|
|
1983
|
-
f[
|
|
1983
|
+
for (var l = 0; l < 25; l++)
|
|
1984
|
+
f[l] = x.create();
|
|
1984
1985
|
})();
|
|
1985
1986
|
var v = n.SHA3 = B.extend({
|
|
1986
1987
|
/**
|
|
@@ -1995,16 +1996,16 @@ function zt() {
|
|
|
1995
1996
|
outputLength: 512
|
|
1996
1997
|
}),
|
|
1997
1998
|
_doReset: function() {
|
|
1998
|
-
for (var
|
|
1999
|
-
|
|
1999
|
+
for (var l = this._state = [], g = 0; g < 25; g++)
|
|
2000
|
+
l[g] = new x.init();
|
|
2000
2001
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2001
2002
|
},
|
|
2002
|
-
_doProcessBlock: function(
|
|
2003
|
-
for (var i = this._state, o = this.blockSize / 2,
|
|
2004
|
-
var b =
|
|
2005
|
-
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360,
|
|
2006
|
-
var y = i[
|
|
2007
|
-
y.high ^=
|
|
2003
|
+
_doProcessBlock: function(l, g) {
|
|
2004
|
+
for (var i = this._state, o = this.blockSize / 2, d = 0; d < o; d++) {
|
|
2005
|
+
var b = l[g + 2 * d], D = l[g + 2 * d + 1];
|
|
2006
|
+
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, D = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360;
|
|
2007
|
+
var y = i[d];
|
|
2008
|
+
y.high ^= D, y.low ^= b;
|
|
2008
2009
|
}
|
|
2009
2010
|
for (var k = 0; k < 24; k++) {
|
|
2010
2011
|
for (var R = 0; R < 5; R++) {
|
|
@@ -2038,20 +2039,20 @@ function zt() {
|
|
|
2038
2039
|
}
|
|
2039
2040
|
},
|
|
2040
2041
|
_doFinalize: function() {
|
|
2041
|
-
var
|
|
2042
|
+
var l = this._data, g = l.words;
|
|
2042
2043
|
this._nDataBytes * 8;
|
|
2043
|
-
var i =
|
|
2044
|
-
|
|
2045
|
-
for (var
|
|
2046
|
-
var R =
|
|
2044
|
+
var i = l.sigBytes * 8, o = this.blockSize * 32;
|
|
2045
|
+
g[i >>> 5] |= 1 << 24 - i % 32, g[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128, l.sigBytes = g.length * 4, this._process();
|
|
2046
|
+
for (var d = this._state, b = this.cfg.outputLength / 8, D = b / 8, y = [], k = 0; k < D; k++) {
|
|
2047
|
+
var R = d[k], F = R.high, w = R.low;
|
|
2047
2048
|
F = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360, w = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, y.push(w), y.push(F);
|
|
2048
2049
|
}
|
|
2049
2050
|
return new m.init(y, b);
|
|
2050
2051
|
},
|
|
2051
2052
|
clone: function() {
|
|
2052
|
-
for (var
|
|
2053
|
-
|
|
2054
|
-
return
|
|
2053
|
+
for (var l = B.clone.call(this), g = l._state = this._state.slice(0), i = 0; i < 25; i++)
|
|
2054
|
+
g[i] = g[i].clone();
|
|
2055
|
+
return l;
|
|
2055
2056
|
}
|
|
2056
2057
|
});
|
|
2057
2058
|
u.SHA3 = B._createHelper(v), u.HmacSHA3 = B._createHmacHelper(v);
|
|
@@ -2059,12 +2060,12 @@ function zt() {
|
|
|
2059
2060
|
});
|
|
2060
2061
|
})(q0)), q0.exports;
|
|
2061
2062
|
}
|
|
2062
|
-
var T0 = { exports: {} },
|
|
2063
|
-
function
|
|
2064
|
-
return
|
|
2063
|
+
var T0 = { exports: {} }, It = T0.exports, Vr;
|
|
2064
|
+
function Lt() {
|
|
2065
|
+
return Vr || (Vr = 1, (function(r, h) {
|
|
2065
2066
|
(function(t, e) {
|
|
2066
2067
|
r.exports = e(M());
|
|
2067
|
-
})(
|
|
2068
|
+
})(It, function(t) {
|
|
2068
2069
|
return (function(e) {
|
|
2069
2070
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.algo, x = m.create([
|
|
2070
2071
|
0,
|
|
@@ -2394,20 +2395,20 @@ function It() {
|
|
|
2394
2395
|
_doReset: function() {
|
|
2395
2396
|
this._hash = m.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2396
2397
|
},
|
|
2397
|
-
_doProcessBlock: function(
|
|
2398
|
+
_doProcessBlock: function(D, y) {
|
|
2398
2399
|
for (var k = 0; k < 16; k++) {
|
|
2399
|
-
var R = y + k, F =
|
|
2400
|
-
|
|
2400
|
+
var R = y + k, F = D[R];
|
|
2401
|
+
D[R] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2401
2402
|
}
|
|
2402
2403
|
var w = this._hash.words, H = s.words, $ = f.words, z = x.words, O = n.words, q = E.words, U = a.words, T, N, j, S, c, A, _, W, P, L;
|
|
2403
2404
|
A = T = w[0], _ = N = w[1], W = j = w[2], P = S = w[3], L = c = w[4];
|
|
2404
2405
|
for (var I, k = 0; k < 80; k += 1)
|
|
2405
|
-
I = T +
|
|
2406
|
+
I = T + D[y + z[k]] | 0, k < 16 ? I += l(N, j, S) + H[0] : k < 32 ? I += g(N, j, S) + H[1] : k < 48 ? I += i(N, j, S) + H[2] : k < 64 ? I += o(N, j, S) + H[3] : I += d(N, j, S) + H[4], I = I | 0, I = b(I, q[k]), I = I + c | 0, T = c, c = S, S = b(j, 10), j = N, N = I, I = A + D[y + O[k]] | 0, k < 16 ? I += d(_, W, P) + $[0] : k < 32 ? I += o(_, W, P) + $[1] : k < 48 ? I += i(_, W, P) + $[2] : k < 64 ? I += g(_, W, P) + $[3] : I += l(_, W, P) + $[4], I = I | 0, I = b(I, U[k]), I = I + L | 0, A = L, L = P, P = b(W, 10), W = _, _ = I;
|
|
2406
2407
|
I = w[1] + j + P | 0, w[1] = w[2] + S + L | 0, w[2] = w[3] + c + A | 0, w[3] = w[4] + T + _ | 0, w[4] = w[0] + N + W | 0, w[0] = I;
|
|
2407
2408
|
},
|
|
2408
2409
|
_doFinalize: function() {
|
|
2409
|
-
var
|
|
2410
|
-
y[R >>> 5] |= 128 << 24 - R % 32, y[(R + 64 >>> 9 << 4) + 14] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360,
|
|
2410
|
+
var D = this._data, y = D.words, k = this._nDataBytes * 8, R = D.sigBytes * 8;
|
|
2411
|
+
y[R >>> 5] |= 128 << 24 - R % 32, y[(R + 64 >>> 9 << 4) + 14] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, D.sigBytes = (y.length + 1) * 4, this._process();
|
|
2411
2412
|
for (var F = this._hash, w = F.words, H = 0; H < 5; H++) {
|
|
2412
2413
|
var $ = w[H];
|
|
2413
2414
|
w[H] = ($ << 8 | $ >>> 24) & 16711935 | ($ << 24 | $ >>> 8) & 4278255360;
|
|
@@ -2415,39 +2416,39 @@ function It() {
|
|
|
2415
2416
|
return F;
|
|
2416
2417
|
},
|
|
2417
2418
|
clone: function() {
|
|
2418
|
-
var
|
|
2419
|
-
return
|
|
2419
|
+
var D = B.clone.call(this);
|
|
2420
|
+
return D._hash = this._hash.clone(), D;
|
|
2420
2421
|
}
|
|
2421
2422
|
});
|
|
2422
|
-
function
|
|
2423
|
-
return
|
|
2423
|
+
function l(D, y, k) {
|
|
2424
|
+
return D ^ y ^ k;
|
|
2424
2425
|
}
|
|
2425
|
-
function D
|
|
2426
|
-
return
|
|
2426
|
+
function g(D, y, k) {
|
|
2427
|
+
return D & y | ~D & k;
|
|
2427
2428
|
}
|
|
2428
|
-
function i(
|
|
2429
|
-
return (
|
|
2429
|
+
function i(D, y, k) {
|
|
2430
|
+
return (D | ~y) ^ k;
|
|
2430
2431
|
}
|
|
2431
|
-
function o(
|
|
2432
|
-
return
|
|
2432
|
+
function o(D, y, k) {
|
|
2433
|
+
return D & k | y & ~k;
|
|
2433
2434
|
}
|
|
2434
|
-
function
|
|
2435
|
-
return
|
|
2435
|
+
function d(D, y, k) {
|
|
2436
|
+
return D ^ (y | ~k);
|
|
2436
2437
|
}
|
|
2437
|
-
function b(
|
|
2438
|
-
return
|
|
2438
|
+
function b(D, y) {
|
|
2439
|
+
return D << y | D >>> 32 - y;
|
|
2439
2440
|
}
|
|
2440
2441
|
u.RIPEMD160 = B._createHelper(v), u.HmacRIPEMD160 = B._createHmacHelper(v);
|
|
2441
2442
|
})(), t.RIPEMD160;
|
|
2442
2443
|
});
|
|
2443
2444
|
})(T0)), T0.exports;
|
|
2444
2445
|
}
|
|
2445
|
-
var M0 = { exports: {} },
|
|
2446
|
-
function
|
|
2447
|
-
return
|
|
2446
|
+
var M0 = { exports: {} }, Ot = M0.exports, Jr;
|
|
2447
|
+
function Dr() {
|
|
2448
|
+
return Jr || (Jr = 1, (function(r, h) {
|
|
2448
2449
|
(function(t, e) {
|
|
2449
2450
|
r.exports = e(M());
|
|
2450
|
-
})(
|
|
2451
|
+
})(Ot, function(t) {
|
|
2451
2452
|
(function() {
|
|
2452
2453
|
var e = t, u = e.lib, p = u.Base, m = e.enc, B = m.Utf8, C = e.algo;
|
|
2453
2454
|
C.HMAC = p.extend({
|
|
@@ -2465,8 +2466,8 @@ function Fr() {
|
|
|
2465
2466
|
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2466
2467
|
var E = x.blockSize, a = E * 4;
|
|
2467
2468
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2468
|
-
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), v = s.words,
|
|
2469
|
-
v[
|
|
2469
|
+
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), v = s.words, l = f.words, g = 0; g < E; g++)
|
|
2470
|
+
v[g] ^= 1549556828, l[g] ^= 909522486;
|
|
2470
2471
|
s.sigBytes = f.sigBytes = a, this.reset();
|
|
2471
2472
|
},
|
|
2472
2473
|
/**
|
|
@@ -2520,12 +2521,12 @@ function Fr() {
|
|
|
2520
2521
|
});
|
|
2521
2522
|
})(M0)), M0.exports;
|
|
2522
2523
|
}
|
|
2523
|
-
var N0 = { exports: {} },
|
|
2524
|
-
function
|
|
2525
|
-
return
|
|
2524
|
+
var N0 = { exports: {} }, qt = N0.exports, re;
|
|
2525
|
+
function Tt() {
|
|
2526
|
+
return re || (re = 1, (function(r, h) {
|
|
2526
2527
|
(function(t, e, u) {
|
|
2527
|
-
r.exports = e(M(),
|
|
2528
|
-
})(
|
|
2528
|
+
r.exports = e(M(), Fr(), Dr());
|
|
2529
|
+
})(qt, function(t) {
|
|
2529
2530
|
return (function() {
|
|
2530
2531
|
var e = t, u = e.lib, p = u.Base, m = u.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = p.extend({
|
|
2531
2532
|
/**
|
|
@@ -2567,13 +2568,13 @@ function qt() {
|
|
|
2567
2568
|
* var key = kdf.compute(password, salt);
|
|
2568
2569
|
*/
|
|
2569
2570
|
compute: function(E, a) {
|
|
2570
|
-
for (var s = this.cfg, f = x.create(s.hasher, E), v = m.create(),
|
|
2571
|
-
var b = f.update(a).finalize(
|
|
2571
|
+
for (var s = this.cfg, f = x.create(s.hasher, E), v = m.create(), l = m.create([1]), g = v.words, i = l.words, o = s.keySize, d = s.iterations; g.length < o; ) {
|
|
2572
|
+
var b = f.update(a).finalize(l);
|
|
2572
2573
|
f.reset();
|
|
2573
|
-
for (var
|
|
2574
|
+
for (var D = b.words, y = D.length, k = b, R = 1; R < d; R++) {
|
|
2574
2575
|
k = f.finalize(k), f.reset();
|
|
2575
2576
|
for (var F = k.words, w = 0; w < y; w++)
|
|
2576
|
-
|
|
2577
|
+
D[w] ^= F[w];
|
|
2577
2578
|
}
|
|
2578
2579
|
v.concat(b), i[0]++;
|
|
2579
2580
|
}
|
|
@@ -2587,12 +2588,12 @@ function qt() {
|
|
|
2587
2588
|
});
|
|
2588
2589
|
})(N0)), N0.exports;
|
|
2589
2590
|
}
|
|
2590
|
-
var U0 = { exports: {} },
|
|
2591
|
+
var U0 = { exports: {} }, Mt = U0.exports, ee;
|
|
2591
2592
|
function a0() {
|
|
2592
|
-
return
|
|
2593
|
+
return ee || (ee = 1, (function(r, h) {
|
|
2593
2594
|
(function(t, e, u) {
|
|
2594
|
-
r.exports = e(M(),
|
|
2595
|
-
})(
|
|
2595
|
+
r.exports = e(M(), ke(), Dr());
|
|
2596
|
+
})(Mt, function(t) {
|
|
2596
2597
|
return (function() {
|
|
2597
2598
|
var e = t, u = e.lib, p = u.Base, m = u.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = p.extend({
|
|
2598
2599
|
/**
|
|
@@ -2634,13 +2635,13 @@ function a0() {
|
|
|
2634
2635
|
* var key = kdf.compute(password, salt);
|
|
2635
2636
|
*/
|
|
2636
2637
|
compute: function(n, E) {
|
|
2637
|
-
for (var a, s = this.cfg, f = s.hasher.create(), v = m.create(),
|
|
2638
|
+
for (var a, s = this.cfg, f = s.hasher.create(), v = m.create(), l = v.words, g = s.keySize, i = s.iterations; l.length < g; ) {
|
|
2638
2639
|
a && f.update(a), a = f.update(n).finalize(E), f.reset();
|
|
2639
2640
|
for (var o = 1; o < i; o++)
|
|
2640
2641
|
a = f.finalize(a), f.reset();
|
|
2641
2642
|
v.concat(a);
|
|
2642
2643
|
}
|
|
2643
|
-
return v.sigBytes =
|
|
2644
|
+
return v.sigBytes = g * 4, v;
|
|
2644
2645
|
}
|
|
2645
2646
|
});
|
|
2646
2647
|
e.EvpKDF = function(n, E, a) {
|
|
@@ -2650,12 +2651,12 @@ function a0() {
|
|
|
2650
2651
|
});
|
|
2651
2652
|
})(U0)), U0.exports;
|
|
2652
2653
|
}
|
|
2653
|
-
var j0 = { exports: {} },
|
|
2654
|
-
function
|
|
2655
|
-
return
|
|
2654
|
+
var j0 = { exports: {} }, Nt = j0.exports, te;
|
|
2655
|
+
function K() {
|
|
2656
|
+
return te || (te = 1, (function(r, h) {
|
|
2656
2657
|
(function(t, e, u) {
|
|
2657
2658
|
r.exports = e(M(), a0());
|
|
2658
|
-
})(
|
|
2659
|
+
})(Nt, function(t) {
|
|
2659
2660
|
t.lib.Cipher || (function(e) {
|
|
2660
2661
|
var u = t, p = u.lib, m = p.Base, B = p.WordArray, C = p.BufferedBlockAlgorithm, x = u.enc;
|
|
2661
2662
|
x.Utf8;
|
|
@@ -2777,7 +2778,7 @@ function X() {
|
|
|
2777
2778
|
*/
|
|
2778
2779
|
_createHelper: /* @__PURE__ */ (function() {
|
|
2779
2780
|
function F(w) {
|
|
2780
|
-
return typeof w == "string" ? R :
|
|
2781
|
+
return typeof w == "string" ? R : D;
|
|
2781
2782
|
}
|
|
2782
2783
|
return function(w) {
|
|
2783
2784
|
return {
|
|
@@ -2842,7 +2843,7 @@ function X() {
|
|
|
2842
2843
|
init: function(F, w) {
|
|
2843
2844
|
this._cipher = F, this._iv = w;
|
|
2844
2845
|
}
|
|
2845
|
-
}),
|
|
2846
|
+
}), l = f.CBC = (function() {
|
|
2846
2847
|
var F = v.extend();
|
|
2847
2848
|
F.Encryptor = F.extend({
|
|
2848
2849
|
/**
|
|
@@ -2882,7 +2883,7 @@ function X() {
|
|
|
2882
2883
|
H[$ + U] ^= O[U];
|
|
2883
2884
|
}
|
|
2884
2885
|
return F;
|
|
2885
|
-
})(),
|
|
2886
|
+
})(), g = u.pad = {}, i = g.Pkcs7 = {
|
|
2886
2887
|
/**
|
|
2887
2888
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2888
2889
|
*
|
|
@@ -2925,7 +2926,7 @@ function X() {
|
|
|
2925
2926
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
2926
2927
|
*/
|
|
2927
2928
|
cfg: s.cfg.extend({
|
|
2928
|
-
mode:
|
|
2929
|
+
mode: l,
|
|
2929
2930
|
padding: i
|
|
2930
2931
|
}),
|
|
2931
2932
|
reset: function() {
|
|
@@ -2984,7 +2985,7 @@ function X() {
|
|
|
2984
2985
|
toString: function(F) {
|
|
2985
2986
|
return (F || this.formatter).stringify(this);
|
|
2986
2987
|
}
|
|
2987
|
-
}),
|
|
2988
|
+
}), d = u.format = {}, b = d.OpenSSL = {
|
|
2988
2989
|
/**
|
|
2989
2990
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
2990
2991
|
*
|
|
@@ -3019,7 +3020,7 @@ function X() {
|
|
|
3019
3020
|
var w, H = n.parse(F), $ = H.words;
|
|
3020
3021
|
return $[0] == 1398893684 && $[1] == 1701076831 && (w = B.create($.slice(2, 4)), $.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3021
3022
|
}
|
|
3022
|
-
},
|
|
3023
|
+
}, D = p.SerializableCipher = m.extend({
|
|
3023
3024
|
/**
|
|
3024
3025
|
* Configuration options.
|
|
3025
3026
|
*
|
|
@@ -3126,13 +3127,13 @@ function X() {
|
|
|
3126
3127
|
var q = B.create(O.words.slice(w), H * 4);
|
|
3127
3128
|
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt: $ });
|
|
3128
3129
|
}
|
|
3129
|
-
}, R = p.PasswordBasedCipher =
|
|
3130
|
+
}, R = p.PasswordBasedCipher = D.extend({
|
|
3130
3131
|
/**
|
|
3131
3132
|
* Configuration options.
|
|
3132
3133
|
*
|
|
3133
3134
|
* @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
|
|
3134
3135
|
*/
|
|
3135
|
-
cfg:
|
|
3136
|
+
cfg: D.cfg.extend({
|
|
3136
3137
|
kdf: k
|
|
3137
3138
|
}),
|
|
3138
3139
|
/**
|
|
@@ -3156,7 +3157,7 @@ function X() {
|
|
|
3156
3157
|
$ = this.cfg.extend($);
|
|
3157
3158
|
var z = $.kdf.execute(H, F.keySize, F.ivSize, $.salt, $.hasher);
|
|
3158
3159
|
$.iv = z.iv;
|
|
3159
|
-
var O =
|
|
3160
|
+
var O = D.encrypt.call(this, F, w, z.key, $);
|
|
3160
3161
|
return O.mixIn(z), O;
|
|
3161
3162
|
},
|
|
3162
3163
|
/**
|
|
@@ -3180,7 +3181,7 @@ function X() {
|
|
|
3180
3181
|
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3181
3182
|
var z = $.kdf.execute(H, F.keySize, F.ivSize, w.salt, $.hasher);
|
|
3182
3183
|
$.iv = z.iv;
|
|
3183
|
-
var O =
|
|
3184
|
+
var O = D.decrypt.call(this, F, w, z.key, $);
|
|
3184
3185
|
return O;
|
|
3185
3186
|
}
|
|
3186
3187
|
});
|
|
@@ -3188,12 +3189,12 @@ function X() {
|
|
|
3188
3189
|
});
|
|
3189
3190
|
})(j0)), j0.exports;
|
|
3190
3191
|
}
|
|
3191
|
-
var G0 = { exports: {} },
|
|
3192
|
-
function
|
|
3193
|
-
return
|
|
3192
|
+
var G0 = { exports: {} }, Ut = G0.exports, xe;
|
|
3193
|
+
function jt() {
|
|
3194
|
+
return xe || (xe = 1, (function(r, h) {
|
|
3194
3195
|
(function(t, e, u) {
|
|
3195
|
-
r.exports = e(M(),
|
|
3196
|
-
})(
|
|
3196
|
+
r.exports = e(M(), K());
|
|
3197
|
+
})(Ut, function(t) {
|
|
3197
3198
|
return t.mode.CFB = (function() {
|
|
3198
3199
|
var e = t.lib.BlockCipherMode.extend();
|
|
3199
3200
|
e.Encryptor = e.extend({
|
|
@@ -3218,12 +3219,12 @@ function Ut() {
|
|
|
3218
3219
|
});
|
|
3219
3220
|
})(G0)), G0.exports;
|
|
3220
3221
|
}
|
|
3221
|
-
var
|
|
3222
|
-
function
|
|
3223
|
-
return
|
|
3222
|
+
var X0 = { exports: {} }, Gt = X0.exports, ne;
|
|
3223
|
+
function Xt() {
|
|
3224
|
+
return ne || (ne = 1, (function(r, h) {
|
|
3224
3225
|
(function(t, e, u) {
|
|
3225
|
-
r.exports = e(M(),
|
|
3226
|
-
})(
|
|
3226
|
+
r.exports = e(M(), K());
|
|
3227
|
+
})(Gt, function(t) {
|
|
3227
3228
|
return t.mode.CTR = (function() {
|
|
3228
3229
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3229
3230
|
processBlock: function(p, m) {
|
|
@@ -3238,13 +3239,13 @@ function Gt() {
|
|
|
3238
3239
|
return e.Decryptor = u, e;
|
|
3239
3240
|
})(), t.mode.CTR;
|
|
3240
3241
|
});
|
|
3241
|
-
})(
|
|
3242
|
+
})(X0)), X0.exports;
|
|
3242
3243
|
}
|
|
3243
|
-
var
|
|
3244
|
-
function
|
|
3245
|
-
return
|
|
3244
|
+
var K0 = { exports: {} }, Kt = K0.exports, ae;
|
|
3245
|
+
function Yt() {
|
|
3246
|
+
return ae || (ae = 1, (function(r, h) {
|
|
3246
3247
|
(function(t, e, u) {
|
|
3247
|
-
r.exports = e(M(),
|
|
3248
|
+
r.exports = e(M(), K());
|
|
3248
3249
|
})(Kt, function(t) {
|
|
3249
3250
|
return t.mode.CTRGladman = (function() {
|
|
3250
3251
|
var e = t.lib.BlockCipherMode.extend();
|
|
@@ -3272,14 +3273,14 @@ function Xt() {
|
|
|
3272
3273
|
return e.Decryptor = m, e;
|
|
3273
3274
|
})(), t.mode.CTRGladman;
|
|
3274
3275
|
});
|
|
3275
|
-
})(
|
|
3276
|
+
})(K0)), K0.exports;
|
|
3276
3277
|
}
|
|
3277
|
-
var Y0 = { exports: {} },
|
|
3278
|
-
function
|
|
3279
|
-
return
|
|
3278
|
+
var Y0 = { exports: {} }, Zt = Y0.exports, oe;
|
|
3279
|
+
function Qt() {
|
|
3280
|
+
return oe || (oe = 1, (function(r, h) {
|
|
3280
3281
|
(function(t, e, u) {
|
|
3281
|
-
r.exports = e(M(),
|
|
3282
|
-
})(
|
|
3282
|
+
r.exports = e(M(), K());
|
|
3283
|
+
})(Zt, function(t) {
|
|
3283
3284
|
return t.mode.OFB = (function() {
|
|
3284
3285
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3285
3286
|
processBlock: function(p, m) {
|
|
@@ -3294,12 +3295,12 @@ function Zt() {
|
|
|
3294
3295
|
});
|
|
3295
3296
|
})(Y0)), Y0.exports;
|
|
3296
3297
|
}
|
|
3297
|
-
var Z0 = { exports: {} },
|
|
3298
|
-
function
|
|
3299
|
-
return
|
|
3298
|
+
var Z0 = { exports: {} }, Vt = Z0.exports, ie;
|
|
3299
|
+
function Jt() {
|
|
3300
|
+
return ie || (ie = 1, (function(r, h) {
|
|
3300
3301
|
(function(t, e, u) {
|
|
3301
|
-
r.exports = e(M(),
|
|
3302
|
-
})(
|
|
3302
|
+
r.exports = e(M(), K());
|
|
3303
|
+
})(Vt, function(t) {
|
|
3303
3304
|
return t.mode.ECB = (function() {
|
|
3304
3305
|
var e = t.lib.BlockCipherMode.extend();
|
|
3305
3306
|
return e.Encryptor = e.extend({
|
|
@@ -3315,12 +3316,12 @@ function Vt() {
|
|
|
3315
3316
|
});
|
|
3316
3317
|
})(Z0)), Z0.exports;
|
|
3317
3318
|
}
|
|
3318
|
-
var Q0 = { exports: {} },
|
|
3319
|
-
function
|
|
3320
|
-
return
|
|
3319
|
+
var Q0 = { exports: {} }, rx = Q0.exports, se;
|
|
3320
|
+
function ex() {
|
|
3321
|
+
return se || (se = 1, (function(r, h) {
|
|
3321
3322
|
(function(t, e, u) {
|
|
3322
|
-
r.exports = e(M(),
|
|
3323
|
-
})(
|
|
3323
|
+
r.exports = e(M(), K());
|
|
3324
|
+
})(rx, function(t) {
|
|
3324
3325
|
return t.pad.AnsiX923 = {
|
|
3325
3326
|
pad: function(e, u) {
|
|
3326
3327
|
var p = e.sigBytes, m = u * 4, B = m - p % m, C = p + B - 1;
|
|
@@ -3334,12 +3335,12 @@ function rx() {
|
|
|
3334
3335
|
});
|
|
3335
3336
|
})(Q0)), Q0.exports;
|
|
3336
3337
|
}
|
|
3337
|
-
var V0 = { exports: {} },
|
|
3338
|
-
function
|
|
3339
|
-
return
|
|
3338
|
+
var V0 = { exports: {} }, tx = V0.exports, ce;
|
|
3339
|
+
function xx() {
|
|
3340
|
+
return ce || (ce = 1, (function(r, h) {
|
|
3340
3341
|
(function(t, e, u) {
|
|
3341
|
-
r.exports = e(M(),
|
|
3342
|
-
})(
|
|
3342
|
+
r.exports = e(M(), K());
|
|
3343
|
+
})(tx, function(t) {
|
|
3343
3344
|
return t.pad.Iso10126 = {
|
|
3344
3345
|
pad: function(e, u) {
|
|
3345
3346
|
var p = u * 4, m = p - e.sigBytes % p;
|
|
@@ -3353,12 +3354,12 @@ function tx() {
|
|
|
3353
3354
|
});
|
|
3354
3355
|
})(V0)), V0.exports;
|
|
3355
3356
|
}
|
|
3356
|
-
var J0 = { exports: {} },
|
|
3357
|
-
function
|
|
3358
|
-
return
|
|
3357
|
+
var J0 = { exports: {} }, nx = J0.exports, fe;
|
|
3358
|
+
function ax() {
|
|
3359
|
+
return fe || (fe = 1, (function(r, h) {
|
|
3359
3360
|
(function(t, e, u) {
|
|
3360
|
-
r.exports = e(M(),
|
|
3361
|
-
})(
|
|
3361
|
+
r.exports = e(M(), K());
|
|
3362
|
+
})(nx, function(t) {
|
|
3362
3363
|
return t.pad.Iso97971 = {
|
|
3363
3364
|
pad: function(e, u) {
|
|
3364
3365
|
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, u);
|
|
@@ -3370,12 +3371,12 @@ function nx() {
|
|
|
3370
3371
|
});
|
|
3371
3372
|
})(J0)), J0.exports;
|
|
3372
3373
|
}
|
|
3373
|
-
var rr = { exports: {} },
|
|
3374
|
-
function
|
|
3375
|
-
return
|
|
3374
|
+
var rr = { exports: {} }, ox = rr.exports, ue;
|
|
3375
|
+
function ix() {
|
|
3376
|
+
return ue || (ue = 1, (function(r, h) {
|
|
3376
3377
|
(function(t, e, u) {
|
|
3377
|
-
r.exports = e(M(),
|
|
3378
|
-
})(
|
|
3378
|
+
r.exports = e(M(), K());
|
|
3379
|
+
})(ox, function(t) {
|
|
3379
3380
|
return t.pad.ZeroPadding = {
|
|
3380
3381
|
pad: function(e, u) {
|
|
3381
3382
|
var p = u * 4;
|
|
@@ -3392,12 +3393,12 @@ function ox() {
|
|
|
3392
3393
|
});
|
|
3393
3394
|
})(rr)), rr.exports;
|
|
3394
3395
|
}
|
|
3395
|
-
var er = { exports: {} },
|
|
3396
|
-
function
|
|
3397
|
-
return
|
|
3396
|
+
var er = { exports: {} }, sx = er.exports, de;
|
|
3397
|
+
function cx() {
|
|
3398
|
+
return de || (de = 1, (function(r, h) {
|
|
3398
3399
|
(function(t, e, u) {
|
|
3399
|
-
r.exports = e(M(),
|
|
3400
|
-
})(
|
|
3400
|
+
r.exports = e(M(), K());
|
|
3401
|
+
})(sx, function(t) {
|
|
3401
3402
|
return t.pad.NoPadding = {
|
|
3402
3403
|
pad: function() {
|
|
3403
3404
|
},
|
|
@@ -3407,12 +3408,12 @@ function sx() {
|
|
|
3407
3408
|
});
|
|
3408
3409
|
})(er)), er.exports;
|
|
3409
3410
|
}
|
|
3410
|
-
var tr = { exports: {} },
|
|
3411
|
-
function
|
|
3412
|
-
return
|
|
3411
|
+
var tr = { exports: {} }, fx = tr.exports, le;
|
|
3412
|
+
function ux() {
|
|
3413
|
+
return le || (le = 1, (function(r, h) {
|
|
3413
3414
|
(function(t, e, u) {
|
|
3414
|
-
r.exports = e(M(),
|
|
3415
|
-
})(
|
|
3415
|
+
r.exports = e(M(), K());
|
|
3416
|
+
})(fx, function(t) {
|
|
3416
3417
|
return (function(e) {
|
|
3417
3418
|
var u = t, p = u.lib, m = p.CipherParams, B = u.enc, C = B.Hex, x = u.format;
|
|
3418
3419
|
x.Hex = {
|
|
@@ -3454,58 +3455,58 @@ function fx() {
|
|
|
3454
3455
|
});
|
|
3455
3456
|
})(tr)), tr.exports;
|
|
3456
3457
|
}
|
|
3457
|
-
var xr = { exports: {} },
|
|
3458
|
-
function
|
|
3459
|
-
return
|
|
3458
|
+
var xr = { exports: {} }, dx = xr.exports, he;
|
|
3459
|
+
function lx() {
|
|
3460
|
+
return he || (he = 1, (function(r, h) {
|
|
3460
3461
|
(function(t, e, u) {
|
|
3461
|
-
r.exports = e(M(), s0(), c0(), a0(),
|
|
3462
|
-
})(
|
|
3462
|
+
r.exports = e(M(), s0(), c0(), a0(), K());
|
|
3463
|
+
})(dx, function(t) {
|
|
3463
3464
|
return (function() {
|
|
3464
|
-
var e = t, u = e.lib, p = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], v = [],
|
|
3465
|
+
var e = t, u = e.lib, p = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], v = [], l = [];
|
|
3465
3466
|
(function() {
|
|
3466
|
-
for (var o = [],
|
|
3467
|
-
|
|
3468
|
-
for (var b = 0,
|
|
3469
|
-
var y =
|
|
3467
|
+
for (var o = [], d = 0; d < 256; d++)
|
|
3468
|
+
d < 128 ? o[d] = d << 1 : o[d] = d << 1 ^ 283;
|
|
3469
|
+
for (var b = 0, D = 0, d = 0; d < 256; d++) {
|
|
3470
|
+
var y = D ^ D << 1 ^ D << 2 ^ D << 3 ^ D << 4;
|
|
3470
3471
|
y = y >>> 8 ^ y & 255 ^ 99, B[b] = y, C[y] = b;
|
|
3471
3472
|
var k = o[b], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3472
3473
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3473
3474
|
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ b * 16843008;
|
|
3474
|
-
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, v[y] = w << 8 | w >>> 24,
|
|
3475
|
+
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, v[y] = w << 8 | w >>> 24, l[y] = w, b ? (b = k ^ o[o[o[F ^ k]]], D ^= o[o[D]]) : b = D = 1;
|
|
3475
3476
|
}
|
|
3476
3477
|
})();
|
|
3477
|
-
var
|
|
3478
|
+
var g = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES = p.extend({
|
|
3478
3479
|
_doReset: function() {
|
|
3479
3480
|
var o;
|
|
3480
3481
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3481
|
-
for (var
|
|
3482
|
-
F <
|
|
3482
|
+
for (var d = this._keyPriorReset = this._key, b = d.words, D = d.sigBytes / 4, y = this._nRounds = D + 6, k = (y + 1) * 4, R = this._keySchedule = [], F = 0; F < k; F++)
|
|
3483
|
+
F < D ? R[F] = b[F] : (o = R[F - 1], F % D ? D > 6 && F % D == 4 && (o = B[o >>> 24] << 24 | B[o >>> 16 & 255] << 16 | B[o >>> 8 & 255] << 8 | B[o & 255]) : (o = o << 8 | o >>> 24, o = B[o >>> 24] << 24 | B[o >>> 16 & 255] << 16 | B[o >>> 8 & 255] << 8 | B[o & 255], o ^= g[F / D | 0] << 24), R[F] = R[F - D] ^ o);
|
|
3483
3484
|
for (var w = this._invKeySchedule = [], H = 0; H < k; H++) {
|
|
3484
3485
|
var F = k - H;
|
|
3485
3486
|
if (H % 4)
|
|
3486
3487
|
var o = R[F];
|
|
3487
3488
|
else
|
|
3488
3489
|
var o = R[F - 4];
|
|
3489
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^ v[B[o >>> 8 & 255]] ^
|
|
3490
|
+
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^ v[B[o >>> 8 & 255]] ^ l[B[o & 255]];
|
|
3490
3491
|
}
|
|
3491
3492
|
}
|
|
3492
3493
|
},
|
|
3493
|
-
encryptBlock: function(o,
|
|
3494
|
-
this._doCryptBlock(o,
|
|
3494
|
+
encryptBlock: function(o, d) {
|
|
3495
|
+
this._doCryptBlock(o, d, this._keySchedule, x, n, E, a, B);
|
|
3495
3496
|
},
|
|
3496
|
-
decryptBlock: function(o,
|
|
3497
|
-
var b = o[
|
|
3498
|
-
o[
|
|
3499
|
-
var b = o[
|
|
3500
|
-
o[
|
|
3497
|
+
decryptBlock: function(o, d) {
|
|
3498
|
+
var b = o[d + 1];
|
|
3499
|
+
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f, v, l, C);
|
|
3500
|
+
var b = o[d + 1];
|
|
3501
|
+
o[d + 1] = o[d + 3], o[d + 3] = b;
|
|
3501
3502
|
},
|
|
3502
|
-
_doCryptBlock: function(o,
|
|
3503
|
-
for (var w = this._nRounds, H = o[
|
|
3504
|
-
var T =
|
|
3503
|
+
_doCryptBlock: function(o, d, b, D, y, k, R, F) {
|
|
3504
|
+
for (var w = this._nRounds, H = o[d] ^ b[0], $ = o[d + 1] ^ b[1], z = o[d + 2] ^ b[2], O = o[d + 3] ^ b[3], q = 4, U = 1; U < w; U++) {
|
|
3505
|
+
var T = D[H >>> 24] ^ y[$ >>> 16 & 255] ^ k[z >>> 8 & 255] ^ R[O & 255] ^ b[q++], N = D[$ >>> 24] ^ y[z >>> 16 & 255] ^ k[O >>> 8 & 255] ^ R[H & 255] ^ b[q++], j = D[z >>> 24] ^ y[O >>> 16 & 255] ^ k[H >>> 8 & 255] ^ R[$ & 255] ^ b[q++], S = D[O >>> 24] ^ y[H >>> 16 & 255] ^ k[$ >>> 8 & 255] ^ R[z & 255] ^ b[q++];
|
|
3505
3506
|
H = T, $ = N, z = j, O = S;
|
|
3506
3507
|
}
|
|
3507
3508
|
var T = (F[H >>> 24] << 24 | F[$ >>> 16 & 255] << 16 | F[z >>> 8 & 255] << 8 | F[O & 255]) ^ b[q++], N = (F[$ >>> 24] << 24 | F[z >>> 16 & 255] << 16 | F[O >>> 8 & 255] << 8 | F[H & 255]) ^ b[q++], j = (F[z >>> 24] << 24 | F[O >>> 16 & 255] << 16 | F[H >>> 8 & 255] << 8 | F[$ & 255]) ^ b[q++], S = (F[O >>> 24] << 24 | F[H >>> 16 & 255] << 16 | F[$ >>> 8 & 255] << 8 | F[z & 255]) ^ b[q++];
|
|
3508
|
-
o[
|
|
3509
|
+
o[d] = T, o[d + 1] = N, o[d + 2] = j, o[d + 3] = S;
|
|
3509
3510
|
},
|
|
3510
3511
|
keySize: 256 / 32
|
|
3511
3512
|
});
|
|
@@ -3514,12 +3515,12 @@ function dx() {
|
|
|
3514
3515
|
});
|
|
3515
3516
|
})(xr)), xr.exports;
|
|
3516
3517
|
}
|
|
3517
|
-
var nr = { exports: {} },
|
|
3518
|
-
function
|
|
3519
|
-
return
|
|
3518
|
+
var nr = { exports: {} }, hx = nr.exports, ve;
|
|
3519
|
+
function vx() {
|
|
3520
|
+
return ve || (ve = 1, (function(r, h) {
|
|
3520
3521
|
(function(t, e, u) {
|
|
3521
|
-
r.exports = e(M(), s0(), c0(), a0(),
|
|
3522
|
-
})(
|
|
3522
|
+
r.exports = e(M(), s0(), c0(), a0(), K());
|
|
3523
|
+
})(hx, function(t) {
|
|
3523
3524
|
return (function() {
|
|
3524
3525
|
var e = t, u = e.lib, p = u.WordArray, m = u.BlockCipher, B = e.algo, C = [
|
|
3525
3526
|
57,
|
|
@@ -4167,87 +4168,87 @@ function hx() {
|
|
|
4167
4168
|
2147483679
|
|
4168
4169
|
], s = B.DES = m.extend({
|
|
4169
4170
|
_doReset: function() {
|
|
4170
|
-
for (var
|
|
4171
|
-
var b = C[
|
|
4172
|
-
o[
|
|
4171
|
+
for (var g = this._key, i = g.words, o = [], d = 0; d < 56; d++) {
|
|
4172
|
+
var b = C[d] - 1;
|
|
4173
|
+
o[d] = i[b >>> 5] >>> 31 - b % 32 & 1;
|
|
4173
4174
|
}
|
|
4174
|
-
for (var
|
|
4175
|
-
for (var k =
|
|
4176
|
-
k[
|
|
4175
|
+
for (var D = this._subKeys = [], y = 0; y < 16; y++) {
|
|
4176
|
+
for (var k = D[y] = [], R = n[y], d = 0; d < 24; d++)
|
|
4177
|
+
k[d / 6 | 0] |= o[(x[d] - 1 + R) % 28] << 31 - d % 6, k[4 + (d / 6 | 0)] |= o[28 + (x[d + 24] - 1 + R) % 28] << 31 - d % 6;
|
|
4177
4178
|
k[0] = k[0] << 1 | k[0] >>> 31;
|
|
4178
|
-
for (var
|
|
4179
|
-
k[
|
|
4179
|
+
for (var d = 1; d < 7; d++)
|
|
4180
|
+
k[d] = k[d] >>> (d - 1) * 4 + 3;
|
|
4180
4181
|
k[7] = k[7] << 5 | k[7] >>> 27;
|
|
4181
4182
|
}
|
|
4182
|
-
for (var F = this._invSubKeys = [],
|
|
4183
|
-
F[
|
|
4183
|
+
for (var F = this._invSubKeys = [], d = 0; d < 16; d++)
|
|
4184
|
+
F[d] = D[15 - d];
|
|
4184
4185
|
},
|
|
4185
|
-
encryptBlock: function(
|
|
4186
|
-
this._doCryptBlock(
|
|
4186
|
+
encryptBlock: function(g, i) {
|
|
4187
|
+
this._doCryptBlock(g, i, this._subKeys);
|
|
4187
4188
|
},
|
|
4188
|
-
decryptBlock: function(
|
|
4189
|
-
this._doCryptBlock(
|
|
4189
|
+
decryptBlock: function(g, i) {
|
|
4190
|
+
this._doCryptBlock(g, i, this._invSubKeys);
|
|
4190
4191
|
},
|
|
4191
|
-
_doCryptBlock: function(
|
|
4192
|
-
this._lBlock =
|
|
4193
|
-
for (var
|
|
4194
|
-
for (var b = o[
|
|
4192
|
+
_doCryptBlock: function(g, i, o) {
|
|
4193
|
+
this._lBlock = g[i], this._rBlock = g[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535), v.call(this, 2, 858993459), v.call(this, 8, 16711935), f.call(this, 1, 1431655765);
|
|
4194
|
+
for (var d = 0; d < 16; d++) {
|
|
4195
|
+
for (var b = o[d], D = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4195
4196
|
k |= E[R][((y ^ b[R]) & a[R]) >>> 0];
|
|
4196
|
-
this._lBlock = y, this._rBlock =
|
|
4197
|
+
this._lBlock = y, this._rBlock = D ^ k;
|
|
4197
4198
|
}
|
|
4198
4199
|
var F = this._lBlock;
|
|
4199
|
-
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765), v.call(this, 8, 16711935), v.call(this, 2, 858993459), f.call(this, 16, 65535), f.call(this, 4, 252645135),
|
|
4200
|
+
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765), v.call(this, 8, 16711935), v.call(this, 2, 858993459), f.call(this, 16, 65535), f.call(this, 4, 252645135), g[i] = this._lBlock, g[i + 1] = this._rBlock;
|
|
4200
4201
|
},
|
|
4201
4202
|
keySize: 64 / 32,
|
|
4202
4203
|
ivSize: 64 / 32,
|
|
4203
4204
|
blockSize: 64 / 32
|
|
4204
4205
|
});
|
|
4205
|
-
function f(
|
|
4206
|
-
var o = (this._lBlock >>>
|
|
4207
|
-
this._rBlock ^= o, this._lBlock ^= o <<
|
|
4206
|
+
function f(g, i) {
|
|
4207
|
+
var o = (this._lBlock >>> g ^ this._rBlock) & i;
|
|
4208
|
+
this._rBlock ^= o, this._lBlock ^= o << g;
|
|
4208
4209
|
}
|
|
4209
|
-
function v(
|
|
4210
|
-
var o = (this._rBlock >>>
|
|
4211
|
-
this._lBlock ^= o, this._rBlock ^= o <<
|
|
4210
|
+
function v(g, i) {
|
|
4211
|
+
var o = (this._rBlock >>> g ^ this._lBlock) & i;
|
|
4212
|
+
this._lBlock ^= o, this._rBlock ^= o << g;
|
|
4212
4213
|
}
|
|
4213
4214
|
e.DES = m._createHelper(s);
|
|
4214
|
-
var
|
|
4215
|
+
var l = B.TripleDES = m.extend({
|
|
4215
4216
|
_doReset: function() {
|
|
4216
|
-
var
|
|
4217
|
+
var g = this._key, i = g.words;
|
|
4217
4218
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
4218
4219
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4219
|
-
var o = i.slice(0, 2),
|
|
4220
|
-
this._des1 = s.createEncryptor(p.create(o)), this._des2 = s.createEncryptor(p.create(
|
|
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);
|
|
4221
|
+
this._des1 = s.createEncryptor(p.create(o)), this._des2 = s.createEncryptor(p.create(d)), this._des3 = s.createEncryptor(p.create(b));
|
|
4221
4222
|
},
|
|
4222
|
-
encryptBlock: function(
|
|
4223
|
-
this._des1.encryptBlock(
|
|
4223
|
+
encryptBlock: function(g, i) {
|
|
4224
|
+
this._des1.encryptBlock(g, i), this._des2.decryptBlock(g, i), this._des3.encryptBlock(g, i);
|
|
4224
4225
|
},
|
|
4225
|
-
decryptBlock: function(
|
|
4226
|
-
this._des3.decryptBlock(
|
|
4226
|
+
decryptBlock: function(g, i) {
|
|
4227
|
+
this._des3.decryptBlock(g, i), this._des2.encryptBlock(g, i), this._des1.decryptBlock(g, i);
|
|
4227
4228
|
},
|
|
4228
4229
|
keySize: 192 / 32,
|
|
4229
4230
|
ivSize: 64 / 32,
|
|
4230
4231
|
blockSize: 64 / 32
|
|
4231
4232
|
});
|
|
4232
|
-
e.TripleDES = m._createHelper(
|
|
4233
|
+
e.TripleDES = m._createHelper(l);
|
|
4233
4234
|
})(), t.TripleDES;
|
|
4234
4235
|
});
|
|
4235
4236
|
})(nr)), nr.exports;
|
|
4236
4237
|
}
|
|
4237
|
-
var ar = { exports: {} },
|
|
4238
|
-
function
|
|
4239
|
-
return
|
|
4238
|
+
var ar = { exports: {} }, px = ar.exports, pe;
|
|
4239
|
+
function Bx() {
|
|
4240
|
+
return pe || (pe = 1, (function(r, h) {
|
|
4240
4241
|
(function(t, e, u) {
|
|
4241
|
-
r.exports = e(M(), s0(), c0(), a0(),
|
|
4242
|
-
})(
|
|
4242
|
+
r.exports = e(M(), s0(), c0(), a0(), K());
|
|
4243
|
+
})(px, function(t) {
|
|
4243
4244
|
return (function() {
|
|
4244
4245
|
var e = t, u = e.lib, p = u.StreamCipher, m = e.algo, B = m.RC4 = p.extend({
|
|
4245
4246
|
_doReset: function() {
|
|
4246
4247
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], f = 0; f < 256; f++)
|
|
4247
4248
|
s[f] = f;
|
|
4248
4249
|
for (var f = 0, v = 0; f < 256; f++) {
|
|
4249
|
-
var
|
|
4250
|
-
v = (v + s[f] +
|
|
4250
|
+
var l = f % a, g = E[l >>> 2] >>> 24 - l % 4 * 8 & 255;
|
|
4251
|
+
v = (v + s[f] + g) % 256;
|
|
4251
4252
|
var i = s[f];
|
|
4252
4253
|
s[f] = s[v], s[v] = i;
|
|
4253
4254
|
}
|
|
@@ -4288,12 +4289,12 @@ function px() {
|
|
|
4288
4289
|
});
|
|
4289
4290
|
})(ar)), ar.exports;
|
|
4290
4291
|
}
|
|
4291
|
-
var or = { exports: {} },
|
|
4292
|
-
function
|
|
4293
|
-
return
|
|
4292
|
+
var or = { exports: {} }, Cx = or.exports, Be;
|
|
4293
|
+
function Ex() {
|
|
4294
|
+
return Be || (Be = 1, (function(r, h) {
|
|
4294
4295
|
(function(t, e, u) {
|
|
4295
|
-
r.exports = e(M(), s0(), c0(), a0(),
|
|
4296
|
-
})(
|
|
4296
|
+
r.exports = e(M(), s0(), c0(), a0(), K());
|
|
4297
|
+
})(Cx, function(t) {
|
|
4297
4298
|
return (function() {
|
|
4298
4299
|
var e = t, u = e.lib, p = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.Rabbit = p.extend({
|
|
4299
4300
|
_doReset: function() {
|
|
@@ -4308,7 +4309,7 @@ function Cx() {
|
|
|
4308
4309
|
a[1] << 16 | a[0] >>> 16,
|
|
4309
4310
|
a[3],
|
|
4310
4311
|
a[2] << 16 | a[1] >>> 16
|
|
4311
|
-
],
|
|
4312
|
+
], l = this._C = [
|
|
4312
4313
|
a[2] << 16 | a[2] >>> 16,
|
|
4313
4314
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4314
4315
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4322,10 +4323,10 @@ function Cx() {
|
|
|
4322
4323
|
for (var f = 0; f < 4; f++)
|
|
4323
4324
|
E.call(this);
|
|
4324
4325
|
for (var f = 0; f < 8; f++)
|
|
4325
|
-
|
|
4326
|
+
l[f] ^= v[f + 4 & 7];
|
|
4326
4327
|
if (s) {
|
|
4327
|
-
var
|
|
4328
|
-
|
|
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;
|
|
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;
|
|
4329
4330
|
for (var f = 0; f < 4; f++)
|
|
4330
4331
|
E.call(this);
|
|
4331
4332
|
}
|
|
@@ -4344,7 +4345,7 @@ function Cx() {
|
|
|
4344
4345
|
C[f] = s[f];
|
|
4345
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;
|
|
4346
4347
|
for (var f = 0; f < 8; f++) {
|
|
4347
|
-
var v = a[f] + s[f],
|
|
4348
|
+
var v = a[f] + s[f], l = v & 65535, g = v >>> 16, i = ((l * l >>> 17) + l * g >>> 15) + g * g, o = ((v & 4294901760) * v | 0) + ((v & 65535) * v | 0);
|
|
4348
4349
|
x[f] = i ^ o;
|
|
4349
4350
|
}
|
|
4350
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;
|
|
@@ -4354,12 +4355,12 @@ function Cx() {
|
|
|
4354
4355
|
});
|
|
4355
4356
|
})(or)), or.exports;
|
|
4356
4357
|
}
|
|
4357
|
-
var ir = { exports: {} },
|
|
4358
|
-
function
|
|
4359
|
-
return
|
|
4358
|
+
var ir = { exports: {} }, Ax = ir.exports, Ce;
|
|
4359
|
+
function Fx() {
|
|
4360
|
+
return Ce || (Ce = 1, (function(r, h) {
|
|
4360
4361
|
(function(t, e, u) {
|
|
4361
|
-
r.exports = e(M(), s0(), c0(), a0(),
|
|
4362
|
-
})(
|
|
4362
|
+
r.exports = e(M(), s0(), c0(), a0(), K());
|
|
4363
|
+
})(Ax, function(t) {
|
|
4363
4364
|
return (function() {
|
|
4364
4365
|
var e = t, u = e.lib, p = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.RabbitLegacy = p.extend({
|
|
4365
4366
|
_doReset: function() {
|
|
@@ -4383,14 +4384,14 @@ function Ax() {
|
|
|
4383
4384
|
a[3] & 4294901760 | a[0] & 65535
|
|
4384
4385
|
];
|
|
4385
4386
|
this._b = 0;
|
|
4386
|
-
for (var
|
|
4387
|
+
for (var l = 0; l < 4; l++)
|
|
4387
4388
|
E.call(this);
|
|
4388
|
-
for (var
|
|
4389
|
-
v[
|
|
4389
|
+
for (var l = 0; l < 8; l++)
|
|
4390
|
+
v[l] ^= f[l + 4 & 7];
|
|
4390
4391
|
if (s) {
|
|
4391
|
-
var
|
|
4392
|
-
v[0] ^=
|
|
4393
|
-
for (var
|
|
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;
|
|
4393
|
+
v[0] ^= d, v[1] ^= D, v[2] ^= b, v[3] ^= y, v[4] ^= d, v[5] ^= D, v[6] ^= b, v[7] ^= y;
|
|
4394
|
+
for (var l = 0; l < 4; l++)
|
|
4394
4395
|
E.call(this);
|
|
4395
4396
|
}
|
|
4396
4397
|
},
|
|
@@ -4408,7 +4409,7 @@ function Ax() {
|
|
|
4408
4409
|
C[f] = s[f];
|
|
4409
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;
|
|
4410
4411
|
for (var f = 0; f < 8; f++) {
|
|
4411
|
-
var v = a[f] + s[f],
|
|
4412
|
+
var v = a[f] + s[f], l = v & 65535, g = v >>> 16, i = ((l * l >>> 17) + l * g >>> 15) + g * g, o = ((v & 4294901760) * v | 0) + ((v & 65535) * v | 0);
|
|
4412
4413
|
x[f] = i ^ o;
|
|
4413
4414
|
}
|
|
4414
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;
|
|
@@ -4418,12 +4419,12 @@ function Ax() {
|
|
|
4418
4419
|
});
|
|
4419
4420
|
})(ir)), ir.exports;
|
|
4420
4421
|
}
|
|
4421
|
-
var sr = { exports: {} },
|
|
4422
|
+
var sr = { exports: {} }, Dx = sr.exports, Ee;
|
|
4422
4423
|
function gx() {
|
|
4423
|
-
return
|
|
4424
|
+
return Ee || (Ee = 1, (function(r, h) {
|
|
4424
4425
|
(function(t, e, u) {
|
|
4425
|
-
r.exports = e(M(), s0(), c0(), a0(),
|
|
4426
|
-
})(
|
|
4426
|
+
r.exports = e(M(), s0(), c0(), a0(), K());
|
|
4427
|
+
})(Dx, function(t) {
|
|
4427
4428
|
return (function() {
|
|
4428
4429
|
var e = t, u = e.lib, p = u.BlockCipher, m = e.algo;
|
|
4429
4430
|
const B = 16, C = [
|
|
@@ -5483,53 +5484,53 @@ function gx() {
|
|
|
5483
5484
|
pbox: [],
|
|
5484
5485
|
sbox: []
|
|
5485
5486
|
};
|
|
5486
|
-
function E(
|
|
5487
|
-
let i =
|
|
5488
|
-
return
|
|
5487
|
+
function E(l, g) {
|
|
5488
|
+
let i = g >> 24 & 255, o = g >> 16 & 255, d = g >> 8 & 255, b = g & 255, D = l.sbox[0][i] + l.sbox[1][o];
|
|
5489
|
+
return D = D ^ l.sbox[2][d], D = D + l.sbox[3][b], D;
|
|
5489
5490
|
}
|
|
5490
|
-
function a(
|
|
5491
|
-
let o =
|
|
5492
|
-
for (let
|
|
5493
|
-
o = o ^
|
|
5494
|
-
return b = o, o =
|
|
5491
|
+
function a(l, g, i) {
|
|
5492
|
+
let o = g, d = i, b;
|
|
5493
|
+
for (let D = 0; D < B; ++D)
|
|
5494
|
+
o = o ^ l.pbox[D], d = E(l, o) ^ d, b = o, o = d, d = b;
|
|
5495
|
+
return b = o, o = d, d = b, d = d ^ l.pbox[B], o = o ^ l.pbox[B + 1], { left: o, right: d };
|
|
5495
5496
|
}
|
|
5496
|
-
function s(
|
|
5497
|
-
let o =
|
|
5498
|
-
for (let
|
|
5499
|
-
o = o ^
|
|
5500
|
-
return b = o, o =
|
|
5497
|
+
function s(l, g, i) {
|
|
5498
|
+
let o = g, d = i, b;
|
|
5499
|
+
for (let D = B + 1; D > 1; --D)
|
|
5500
|
+
o = o ^ l.pbox[D], d = E(l, o) ^ d, b = o, o = d, d = b;
|
|
5501
|
+
return b = o, o = d, d = b, d = d ^ l.pbox[1], o = o ^ l.pbox[0], { left: o, right: d };
|
|
5501
5502
|
}
|
|
5502
|
-
function f(
|
|
5503
|
+
function f(l, g, i) {
|
|
5503
5504
|
for (let y = 0; y < 4; y++) {
|
|
5504
|
-
|
|
5505
|
+
l.sbox[y] = [];
|
|
5505
5506
|
for (let k = 0; k < 256; k++)
|
|
5506
|
-
|
|
5507
|
+
l.sbox[y][k] = x[y][k];
|
|
5507
5508
|
}
|
|
5508
5509
|
let o = 0;
|
|
5509
5510
|
for (let y = 0; y < B + 2; y++)
|
|
5510
|
-
|
|
5511
|
-
let
|
|
5511
|
+
l.pbox[y] = C[y] ^ g[o], o++, o >= i && (o = 0);
|
|
5512
|
+
let d = 0, b = 0, D = 0;
|
|
5512
5513
|
for (let y = 0; y < B + 2; y += 2)
|
|
5513
|
-
|
|
5514
|
+
D = a(l, d, b), d = D.left, b = D.right, l.pbox[y] = d, l.pbox[y + 1] = b;
|
|
5514
5515
|
for (let y = 0; y < 4; y++)
|
|
5515
5516
|
for (let k = 0; k < 256; k += 2)
|
|
5516
|
-
|
|
5517
|
+
D = a(l, d, b), d = D.left, b = D.right, l.sbox[y][k] = d, l.sbox[y][k + 1] = b;
|
|
5517
5518
|
return !0;
|
|
5518
5519
|
}
|
|
5519
5520
|
var v = m.Blowfish = p.extend({
|
|
5520
5521
|
_doReset: function() {
|
|
5521
5522
|
if (this._keyPriorReset !== this._key) {
|
|
5522
|
-
var
|
|
5523
|
-
f(n,
|
|
5523
|
+
var l = this._keyPriorReset = this._key, g = l.words, i = l.sigBytes / 4;
|
|
5524
|
+
f(n, g, i);
|
|
5524
5525
|
}
|
|
5525
5526
|
},
|
|
5526
|
-
encryptBlock: function(
|
|
5527
|
-
var i = a(n,
|
|
5528
|
-
|
|
5527
|
+
encryptBlock: function(l, g) {
|
|
5528
|
+
var i = a(n, l[g], l[g + 1]);
|
|
5529
|
+
l[g] = i.left, l[g + 1] = i.right;
|
|
5529
5530
|
},
|
|
5530
|
-
decryptBlock: function(
|
|
5531
|
-
var i = s(n,
|
|
5532
|
-
|
|
5531
|
+
decryptBlock: function(l, g) {
|
|
5532
|
+
var i = s(n, l[g], l[g + 1]);
|
|
5533
|
+
l[g] = i.left, l[g + 1] = i.right;
|
|
5533
5534
|
},
|
|
5534
5535
|
blockSize: 64 / 32,
|
|
5535
5536
|
keySize: 128 / 32,
|
|
@@ -5540,36 +5541,36 @@ function gx() {
|
|
|
5540
5541
|
});
|
|
5541
5542
|
})(sr)), sr.exports;
|
|
5542
5543
|
}
|
|
5543
|
-
var
|
|
5544
|
-
function
|
|
5545
|
-
return
|
|
5544
|
+
var bx = y0.exports, Ae;
|
|
5545
|
+
function mx() {
|
|
5546
|
+
return Ae || (Ae = 1, (function(r, h) {
|
|
5546
5547
|
(function(t, e, u) {
|
|
5547
|
-
r.exports = e(M(),
|
|
5548
|
-
})(
|
|
5548
|
+
r.exports = e(M(), dr(), Ft(), gt(), s0(), _t(), c0(), ke(), Fr(), Ht(), Se(), Pt(), Wt(), Lt(), Dr(), Tt(), a0(), K(), jt(), Xt(), Yt(), Qt(), Jt(), ex(), xx(), ax(), ix(), cx(), ux(), lx(), vx(), Bx(), Ex(), Fx(), gx());
|
|
5549
|
+
})(bx, function(t) {
|
|
5549
5550
|
return t;
|
|
5550
5551
|
});
|
|
5551
5552
|
})(y0)), y0.exports;
|
|
5552
5553
|
}
|
|
5553
|
-
|
|
5554
|
-
let
|
|
5554
|
+
mx();
|
|
5555
|
+
let He = null, $e = null, Re = null, Pe = null;
|
|
5555
5556
|
Math.random().toString(36).substring(7);
|
|
5556
|
-
function
|
|
5557
|
-
|
|
5557
|
+
function _x(r) {
|
|
5558
|
+
He = r.token, $e = r.apiUrl, Re = r.deviceId, Pe = r.domain;
|
|
5558
5559
|
}
|
|
5559
|
-
function
|
|
5560
|
+
function yx() {
|
|
5560
5561
|
return {
|
|
5561
|
-
token:
|
|
5562
|
-
apiUrl:
|
|
5563
|
-
deviceId:
|
|
5564
|
-
domain:
|
|
5562
|
+
token: He,
|
|
5563
|
+
apiUrl: $e,
|
|
5564
|
+
deviceId: Re,
|
|
5565
|
+
domain: Pe
|
|
5565
5566
|
};
|
|
5566
5567
|
}
|
|
5567
|
-
function
|
|
5568
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5568
|
+
function wx(r) {
|
|
5569
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.160`;
|
|
5569
5570
|
}
|
|
5570
|
-
function
|
|
5571
|
-
const t =
|
|
5572
|
-
return new Worker(t, { type: "module", ...
|
|
5571
|
+
function kx(r, h) {
|
|
5572
|
+
const t = wx(r);
|
|
5573
|
+
return new Worker(t, { type: "module", ...h });
|
|
5573
5574
|
}
|
|
5574
5575
|
const gr = () => {
|
|
5575
5576
|
try {
|
|
@@ -5579,14 +5580,14 @@ const gr = () => {
|
|
|
5579
5580
|
return !1;
|
|
5580
5581
|
}, m0 = (...r) => {
|
|
5581
5582
|
gr();
|
|
5582
|
-
},
|
|
5583
|
+
}, Fe = (...r) => {
|
|
5583
5584
|
gr();
|
|
5584
|
-
},
|
|
5585
|
-
let
|
|
5586
|
-
function
|
|
5587
|
-
const
|
|
5588
|
-
if (
|
|
5589
|
-
const t =
|
|
5585
|
+
}, De = /* @__PURE__ */ new Map(), Cr = /* @__PURE__ */ new Map();
|
|
5586
|
+
let Sx = 0;
|
|
5587
|
+
function Hx(r) {
|
|
5588
|
+
const h = De.get(r);
|
|
5589
|
+
if (h) return h;
|
|
5590
|
+
const t = kx("./deform.worker.ts");
|
|
5590
5591
|
try {
|
|
5591
5592
|
t.postMessage({ type: "SET_DEBUG", debugRender: gr() });
|
|
5592
5593
|
} catch {
|
|
@@ -5599,9 +5600,9 @@ function Sx(r) {
|
|
|
5599
5600
|
height: m?.height,
|
|
5600
5601
|
error: B
|
|
5601
5602
|
});
|
|
5602
|
-
const n =
|
|
5603
|
+
const n = Cr.get(p);
|
|
5603
5604
|
if (n) {
|
|
5604
|
-
if (
|
|
5605
|
+
if (Cr.delete(p), B) {
|
|
5605
5606
|
n.reject(new Error(B));
|
|
5606
5607
|
return;
|
|
5607
5608
|
}
|
|
@@ -5610,7 +5611,7 @@ function Sx(r) {
|
|
|
5610
5611
|
}, t.onerror = (u) => {
|
|
5611
5612
|
};
|
|
5612
5613
|
const e = () => {
|
|
5613
|
-
const u =
|
|
5614
|
+
const u = yx();
|
|
5614
5615
|
return m0("🔍 [workerManager] 检查 License Token:", {
|
|
5615
5616
|
hasToken: !!u.token,
|
|
5616
5617
|
tokenPreview: u.token ? u.token.substring(0, 20) + "..." : "undefined",
|
|
@@ -5625,21 +5626,21 @@ function Sx(r) {
|
|
|
5625
5626
|
}), !0) : !1;
|
|
5626
5627
|
};
|
|
5627
5628
|
return e() || (m0("⏳ [workerManager] License Token 未设置,等待后重试...", { faceId: r }), setTimeout(() => {
|
|
5628
|
-
e() ||
|
|
5629
|
+
e() || Fe("⚠️ [workerManager] 等待后 License Token 仍未设置", { faceId: r });
|
|
5629
5630
|
}, 200), setTimeout(() => {
|
|
5630
|
-
e() ||
|
|
5631
|
-
}, 500)),
|
|
5631
|
+
e() || Fe("⚠️ [workerManager] 第二次等待后 License Token 仍未设置", { faceId: r });
|
|
5632
|
+
}, 500)), De.set(r, t), t;
|
|
5632
5633
|
}
|
|
5633
|
-
function
|
|
5634
|
+
function $x(r) {
|
|
5634
5635
|
return {
|
|
5635
5636
|
name: r.name,
|
|
5636
5637
|
type: r.type,
|
|
5637
5638
|
blendMode: r.blendMode,
|
|
5638
5639
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5639
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5640
|
-
x:
|
|
5641
|
-
y:
|
|
5642
|
-
type:
|
|
5640
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((h) => ({
|
|
5641
|
+
x: h.x,
|
|
5642
|
+
y: h.y,
|
|
5643
|
+
type: h.type
|
|
5643
5644
|
})) : [],
|
|
5644
5645
|
bounds: r.bounds ? {
|
|
5645
5646
|
width: r.bounds.width,
|
|
@@ -5662,30 +5663,30 @@ function Hx(r) {
|
|
|
5662
5663
|
layerOrder: r.layerOrder,
|
|
5663
5664
|
imagePath: r.imagePath,
|
|
5664
5665
|
vectorMask: r.vectorMask ? {
|
|
5665
|
-
paths: r.vectorMask.paths?.map((
|
|
5666
|
-
open:
|
|
5667
|
-
knots:
|
|
5666
|
+
paths: r.vectorMask.paths?.map((h) => ({
|
|
5667
|
+
open: h.open,
|
|
5668
|
+
knots: h.knots?.map((t) => ({
|
|
5668
5669
|
linked: t.linked,
|
|
5669
5670
|
points: [...t.points]
|
|
5670
5671
|
})),
|
|
5671
|
-
fillRule:
|
|
5672
|
-
operation:
|
|
5672
|
+
fillRule: h.fillRule,
|
|
5673
|
+
operation: h.operation
|
|
5673
5674
|
})),
|
|
5674
|
-
points: r.vectorMask.points?.map((
|
|
5675
|
-
x:
|
|
5676
|
-
y:
|
|
5677
|
-
type:
|
|
5675
|
+
points: r.vectorMask.points?.map((h) => ({
|
|
5676
|
+
x: h.x,
|
|
5677
|
+
y: h.y,
|
|
5678
|
+
type: h.type
|
|
5678
5679
|
})),
|
|
5679
5680
|
invert: r.vectorMask.invert,
|
|
5680
5681
|
notLink: r.vectorMask.notLink,
|
|
5681
5682
|
disable: r.vectorMask.disable,
|
|
5682
5683
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5683
5684
|
} : void 0,
|
|
5684
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5685
|
-
type:
|
|
5686
|
-
enabled:
|
|
5687
|
-
filter:
|
|
5688
|
-
puppetShapeList:
|
|
5685
|
+
filterList: r.filterList ? r.filterList.map((h) => ({
|
|
5686
|
+
type: h.type,
|
|
5687
|
+
enabled: h.enabled,
|
|
5688
|
+
filter: h.filter ? {
|
|
5689
|
+
puppetShapeList: h.filter.puppetShapeList?.map((t) => ({
|
|
5689
5690
|
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5690
5691
|
x: e.x,
|
|
5691
5692
|
y: e.y
|
|
@@ -5702,33 +5703,33 @@ function Hx(r) {
|
|
|
5702
5703
|
clipping: r.clipping
|
|
5703
5704
|
};
|
|
5704
5705
|
}
|
|
5705
|
-
function
|
|
5706
|
-
const u = ++
|
|
5706
|
+
function Rx(r, h, t, e) {
|
|
5707
|
+
const u = ++Sx, p = Hx(t);
|
|
5707
5708
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((m, B) => {
|
|
5708
|
-
|
|
5709
|
+
Cr.set(u, {
|
|
5709
5710
|
resolve: (x) => {
|
|
5710
5711
|
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), m(x);
|
|
5711
5712
|
},
|
|
5712
5713
|
reject: B
|
|
5713
5714
|
});
|
|
5714
|
-
const C =
|
|
5715
|
+
const C = $x(h);
|
|
5715
5716
|
p.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5716
5717
|
r
|
|
5717
5718
|
]);
|
|
5718
5719
|
});
|
|
5719
5720
|
}
|
|
5720
|
-
async function
|
|
5721
|
-
const m = await
|
|
5721
|
+
async function Px(r, h, t = 0, e, u, p) {
|
|
5722
|
+
const m = await ut(r, u, p);
|
|
5722
5723
|
if (!m || m.width === 0 || m.height === 0)
|
|
5723
5724
|
throw new Error("图片无效:尺寸为 0");
|
|
5724
|
-
return await
|
|
5725
|
+
return await Rx(m, h, t, e);
|
|
5725
5726
|
}
|
|
5726
|
-
function l0(r,
|
|
5727
|
+
function l0(r, h) {
|
|
5727
5728
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5728
|
-
return new OffscreenCanvas(r,
|
|
5729
|
+
return new OffscreenCanvas(r, h);
|
|
5729
5730
|
if (typeof document < "u") {
|
|
5730
5731
|
const t = document.createElement("canvas");
|
|
5731
|
-
return t.width = r, t.height =
|
|
5732
|
+
return t.width = r, t.height = h, t;
|
|
5732
5733
|
} else
|
|
5733
5734
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5734
5735
|
}
|
|
@@ -5736,13 +5737,13 @@ function F0(r) {
|
|
|
5736
5737
|
return r.getContext("2d");
|
|
5737
5738
|
}
|
|
5738
5739
|
function ge(r) {
|
|
5739
|
-
const
|
|
5740
|
-
if (!
|
|
5740
|
+
const h = F0(r);
|
|
5741
|
+
if (!h)
|
|
5741
5742
|
throw new Error("无法创建 canvas context");
|
|
5742
|
-
return
|
|
5743
|
+
return h;
|
|
5743
5744
|
}
|
|
5744
|
-
async function
|
|
5745
|
-
const
|
|
5745
|
+
async function zx(r) {
|
|
5746
|
+
const h = performance.now(), t = () => {
|
|
5746
5747
|
try {
|
|
5747
5748
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5748
5749
|
} catch {
|
|
@@ -5810,7 +5811,7 @@ async function Px(r) {
|
|
|
5810
5811
|
hasChildren: !!c.children,
|
|
5811
5812
|
childrenCount: c.children?.length || 0
|
|
5812
5813
|
})));
|
|
5813
|
-
function
|
|
5814
|
+
function l(c, A) {
|
|
5814
5815
|
const _ = c.color || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(c.name) ? c.name : A);
|
|
5815
5816
|
if (c.type === "Layer") {
|
|
5816
5817
|
if (c.imagePath) {
|
|
@@ -5845,9 +5846,9 @@ async function Px(r) {
|
|
|
5845
5846
|
}
|
|
5846
5847
|
if (c.children)
|
|
5847
5848
|
for (const W of c.children)
|
|
5848
|
-
W &&
|
|
5849
|
+
W && l(W, _);
|
|
5849
5850
|
}
|
|
5850
|
-
function
|
|
5851
|
+
function g(c, A) {
|
|
5851
5852
|
const _ = c.id ?? A;
|
|
5852
5853
|
if (c.type === "Group" && _)
|
|
5853
5854
|
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${v.has(_)}`), v.has(_)) {
|
|
@@ -5865,15 +5866,15 @@ async function Px(r) {
|
|
|
5865
5866
|
e(`[renderByJson] ⚠️ Group id=${_}, name="${c.name}" 没有匹配的 fabricScreenshot`);
|
|
5866
5867
|
if (c.children)
|
|
5867
5868
|
for (const W of c.children)
|
|
5868
|
-
W &&
|
|
5869
|
+
W && g(W, _);
|
|
5869
5870
|
}
|
|
5870
5871
|
if (p.layerList)
|
|
5871
5872
|
for (const c of p.layerList)
|
|
5872
|
-
c &&
|
|
5873
|
+
c && l(c);
|
|
5873
5874
|
if (p.layerList)
|
|
5874
5875
|
for (const c of p.layerList)
|
|
5875
|
-
c &&
|
|
5876
|
-
const o =
|
|
5876
|
+
c && g(c);
|
|
5877
|
+
const o = Je([{
|
|
5877
5878
|
psdJson: p,
|
|
5878
5879
|
layerExtrasByName: s
|
|
5879
5880
|
}], {
|
|
@@ -5882,10 +5883,10 @@ async function Px(r) {
|
|
|
5882
5883
|
});
|
|
5883
5884
|
if (!o.models || o.models.length === 0)
|
|
5884
5885
|
throw new Error("无法解析 JSON 数据");
|
|
5885
|
-
const
|
|
5886
|
-
if (!
|
|
5886
|
+
const d = o.models[0];
|
|
5887
|
+
if (!d.psdPartData)
|
|
5887
5888
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5888
|
-
const b =
|
|
5889
|
+
const b = d.width, D = d.height, y = l0(b, D), k = ge(y), R = [], F = (c) => {
|
|
5889
5890
|
if (c.url && s[c.url])
|
|
5890
5891
|
return s[c.url];
|
|
5891
5892
|
if (c.url) {
|
|
@@ -5903,9 +5904,9 @@ async function Px(r) {
|
|
|
5903
5904
|
}
|
|
5904
5905
|
}
|
|
5905
5906
|
};
|
|
5906
|
-
for (let c = 0; c <
|
|
5907
|
-
const A =
|
|
5908
|
-
if (A.type ===
|
|
5907
|
+
for (let c = 0; c < d.psdPartData.length; c++) {
|
|
5908
|
+
const A = d.psdPartData[c], _ = F(A);
|
|
5909
|
+
if (A.type === D0.Layer) {
|
|
5909
5910
|
if (!_ || !_.url) {
|
|
5910
5911
|
u(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5911
5912
|
continue;
|
|
@@ -5919,9 +5920,9 @@ async function Px(r) {
|
|
|
5919
5920
|
index: c,
|
|
5920
5921
|
type: "layer",
|
|
5921
5922
|
partData: A,
|
|
5922
|
-
promise:
|
|
5923
|
+
promise: dt(P, E, n).catch((L) => null)
|
|
5923
5924
|
});
|
|
5924
|
-
} else if (A.type ===
|
|
5925
|
+
} else if (A.type === D0.Group) {
|
|
5925
5926
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
5926
5927
|
continue;
|
|
5927
5928
|
for (let W = 0; W < A.smartObjects.length; W++) {
|
|
@@ -5930,11 +5931,11 @@ async function Px(r) {
|
|
|
5930
5931
|
continue;
|
|
5931
5932
|
let L = s[P.name] ?? _;
|
|
5932
5933
|
if (!L && P.imagePath && (L = s[P.imagePath], !L)) {
|
|
5933
|
-
const
|
|
5934
|
-
if (L = s[
|
|
5934
|
+
const X = P.imagePath.split("/").pop() || P.imagePath;
|
|
5935
|
+
if (L = s[X], !L) {
|
|
5935
5936
|
const G = m.find((Y) => {
|
|
5936
|
-
const
|
|
5937
|
-
return !
|
|
5937
|
+
const r0 = Y.sourceName || Y.layerName;
|
|
5938
|
+
return !r0 || !P.imagePath ? !1 : (r0.split("/").pop() || r0) === X || r0 === P.imagePath || r0.endsWith(P.imagePath) || P.imagePath.endsWith(r0);
|
|
5938
5939
|
});
|
|
5939
5940
|
G && (L = { url: G.url });
|
|
5940
5941
|
}
|
|
@@ -5951,21 +5952,21 @@ async function Px(r) {
|
|
|
5951
5952
|
continue;
|
|
5952
5953
|
I = G;
|
|
5953
5954
|
}
|
|
5954
|
-
const Z = (A.partId ?? A.id) * 100 + W, Q = rt(
|
|
5955
|
+
const Z = (A.partId ?? A.id) * 100 + W, Q = et(rt(P)), o0 = { width: b, height: D };
|
|
5955
5956
|
R.push({
|
|
5956
5957
|
index: c + W * 0.01,
|
|
5957
5958
|
type: "group",
|
|
5958
5959
|
partData: A,
|
|
5959
5960
|
smartObject: P,
|
|
5960
5961
|
maskData: Q,
|
|
5961
|
-
promise:
|
|
5962
|
+
promise: Px(
|
|
5962
5963
|
I,
|
|
5963
5964
|
P,
|
|
5964
5965
|
Z,
|
|
5965
5966
|
o0,
|
|
5966
5967
|
E,
|
|
5967
5968
|
n
|
|
5968
|
-
).catch((
|
|
5969
|
+
).catch((X) => null)
|
|
5969
5970
|
});
|
|
5970
5971
|
}
|
|
5971
5972
|
}
|
|
@@ -5977,7 +5978,7 @@ async function Px(r) {
|
|
|
5977
5978
|
const _ = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index, W = A.task.type === "group" && A.task.smartObject?.layerOrder !== void 0 ? A.task.smartObject.layerOrder : A.task.partData.layerOrder ?? A.task.index;
|
|
5978
5979
|
return _ - W;
|
|
5979
5980
|
});
|
|
5980
|
-
let $ = l0(b,
|
|
5981
|
+
let $ = l0(b, D), z = F0($), O = !1, q = "normal";
|
|
5981
5982
|
for (let c = 0; c < H.length; c++) {
|
|
5982
5983
|
const { task: A, imageBitmap: _ } = H[c];
|
|
5983
5984
|
if (!_) {
|
|
@@ -5992,8 +5993,8 @@ async function Px(r) {
|
|
|
5992
5993
|
const Z = H[c + 1];
|
|
5993
5994
|
let Q = !1;
|
|
5994
5995
|
if (Z) {
|
|
5995
|
-
const
|
|
5996
|
-
Z.task.type === "group" && Z.task.smartObject ? Q = Z.task.smartObject.clipping ??
|
|
5996
|
+
const X = Z.task.partData;
|
|
5997
|
+
Z.task.type === "group" && Z.task.smartObject ? Q = Z.task.smartObject.clipping ?? X.clipping === !0 : Q = X.clipping === !0;
|
|
5997
5998
|
}
|
|
5998
5999
|
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name : W?.name || "未命名图层";
|
|
5999
6000
|
if (e(`[renderByJson] 绘制图层 "${o0}"`, {
|
|
@@ -6006,10 +6007,10 @@ async function Px(r) {
|
|
|
6006
6007
|
clipping: I
|
|
6007
6008
|
}), !I && Q) {
|
|
6008
6009
|
if (O = !0, q = W.blendMode || "normal", z) {
|
|
6009
|
-
if (z.clearRect(0, 0, b,
|
|
6010
|
+
if (z.clearRect(0, 0, b, D), z.globalCompositeOperation = "source-over", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6010
6011
|
if (A.maskData) {
|
|
6011
|
-
const
|
|
6012
|
-
G && (G.drawImage(_, 0, 0),
|
|
6012
|
+
const X = l0(b, D), G = F0(X);
|
|
6013
|
+
G && (G.drawImage(_, 0, 0), hr(G, A.maskData), z.drawImage(X, 0, 0));
|
|
6013
6014
|
} else
|
|
6014
6015
|
z.drawImage(_, 0, 0);
|
|
6015
6016
|
else A.type === "layer" && (P ? z.drawImage(
|
|
@@ -6025,8 +6026,8 @@ async function Px(r) {
|
|
|
6025
6026
|
if (z) {
|
|
6026
6027
|
if (z.globalCompositeOperation = "source-atop", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6027
6028
|
if (A.maskData) {
|
|
6028
|
-
const
|
|
6029
|
-
G && (G.drawImage(_, 0, 0),
|
|
6029
|
+
const X = l0(b, D), G = F0(X);
|
|
6030
|
+
G && (G.drawImage(_, 0, 0), hr(G, A.maskData), z.drawImage(X, 0, 0));
|
|
6030
6031
|
} else
|
|
6031
6032
|
z.drawImage(_, 0, 0);
|
|
6032
6033
|
else A.type === "layer" && (P ? z.drawImage(
|
|
@@ -6039,10 +6040,10 @@ async function Px(r) {
|
|
|
6039
6040
|
z.globalAlpha = 1, z.globalCompositeOperation = "source-over";
|
|
6040
6041
|
}
|
|
6041
6042
|
} else {
|
|
6042
|
-
if (k.globalCompositeOperation =
|
|
6043
|
+
if (k.globalCompositeOperation = Lr(W.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6043
6044
|
if (A.maskData) {
|
|
6044
|
-
const
|
|
6045
|
-
G && (G.drawImage(_, 0, 0),
|
|
6045
|
+
const X = l0(b, D), G = F0(X);
|
|
6046
|
+
G && (G.drawImage(_, 0, 0), hr(G, A.maskData), k.drawImage(X, 0, 0));
|
|
6046
6047
|
} else
|
|
6047
6048
|
k.drawImage(_, 0, 0);
|
|
6048
6049
|
else A.type === "layer" && (P ? k.drawImage(
|
|
@@ -6054,68 +6055,68 @@ async function Px(r) {
|
|
|
6054
6055
|
) : k.drawImage(_, 0, 0));
|
|
6055
6056
|
k.globalAlpha = 1, k.globalCompositeOperation = "source-over";
|
|
6056
6057
|
}
|
|
6057
|
-
O && !Q && (k.globalCompositeOperation =
|
|
6058
|
+
O && !Q && (k.globalCompositeOperation = Lr(q), k.drawImage($, 0, 0), k.globalCompositeOperation = "source-over", O = !1);
|
|
6058
6059
|
}
|
|
6059
6060
|
$ = null, z = null;
|
|
6060
|
-
let U = y, T = b, N =
|
|
6061
|
+
let U = y, T = b, N = D;
|
|
6061
6062
|
if (C !== void 0 || x !== void 0) {
|
|
6062
6063
|
if (C !== void 0 && x !== void 0)
|
|
6063
6064
|
T = C, N = x;
|
|
6064
6065
|
else if (C !== void 0) {
|
|
6065
6066
|
const A = C / b;
|
|
6066
|
-
T = C, N = Math.round(
|
|
6067
|
+
T = C, N = Math.round(D * A);
|
|
6067
6068
|
} else if (x !== void 0) {
|
|
6068
|
-
const A = x /
|
|
6069
|
+
const A = x / D;
|
|
6069
6070
|
T = Math.round(b * A), N = x;
|
|
6070
6071
|
}
|
|
6071
6072
|
U = l0(T, N);
|
|
6072
6073
|
const c = ge(U);
|
|
6073
|
-
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0, b,
|
|
6074
|
+
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0, b, D, 0, 0, T, N), e(`[renderByJson] 已缩放结果: ${b}x${D} -> ${T}x${N}`);
|
|
6074
6075
|
}
|
|
6075
|
-
const S = performance.now() -
|
|
6076
|
+
const S = performance.now() - h;
|
|
6076
6077
|
return e(`[renderByJson] 绘制完成,总渲染时间: ${Math.round(S)}ms`), {
|
|
6077
6078
|
canvas: U,
|
|
6078
6079
|
width: T,
|
|
6079
6080
|
height: N
|
|
6080
6081
|
};
|
|
6081
6082
|
}
|
|
6082
|
-
const
|
|
6083
|
-
const t = (await
|
|
6083
|
+
const ze = async (r) => {
|
|
6084
|
+
const t = (await zx(r)).canvas;
|
|
6084
6085
|
return t ? createImageBitmap(t) : null;
|
|
6085
6086
|
};
|
|
6086
|
-
let i0 = null,
|
|
6087
|
-
const
|
|
6088
|
-
if (!
|
|
6089
|
-
|
|
6087
|
+
let i0 = null, pr = !1;
|
|
6088
|
+
const We = async () => {
|
|
6089
|
+
if (!pr) {
|
|
6090
|
+
pr = !0;
|
|
6090
6091
|
try {
|
|
6091
6092
|
for (; i0; ) {
|
|
6092
6093
|
const r = i0;
|
|
6093
6094
|
i0 = null;
|
|
6094
6095
|
try {
|
|
6095
|
-
const
|
|
6096
|
+
const h = await ze(r.renderData);
|
|
6096
6097
|
if (i0) {
|
|
6097
|
-
|
|
6098
|
+
h?.close?.();
|
|
6098
6099
|
continue;
|
|
6099
6100
|
}
|
|
6100
|
-
self.postMessage({ id: r.id, bitmap:
|
|
6101
|
-
} catch (
|
|
6101
|
+
self.postMessage({ id: r.id, bitmap: h }, h ? [h] : []);
|
|
6102
|
+
} catch (h) {
|
|
6102
6103
|
if (i0) continue;
|
|
6103
6104
|
self.postMessage({
|
|
6104
6105
|
id: r.id,
|
|
6105
|
-
error:
|
|
6106
|
+
error: h instanceof Error ? h.message : String(h)
|
|
6106
6107
|
});
|
|
6107
6108
|
}
|
|
6108
6109
|
}
|
|
6109
6110
|
} finally {
|
|
6110
|
-
|
|
6111
|
+
pr = !1, i0 && We();
|
|
6111
6112
|
}
|
|
6112
6113
|
}
|
|
6113
6114
|
};
|
|
6114
6115
|
self.onmessage = async (r) => {
|
|
6115
|
-
const
|
|
6116
|
-
if (
|
|
6117
|
-
const e =
|
|
6118
|
-
|
|
6116
|
+
const h = r.data;
|
|
6117
|
+
if (h && typeof h == "object" && "type" in h && h.type === "SET_LICENSE") {
|
|
6118
|
+
const e = h;
|
|
6119
|
+
_x({
|
|
6119
6120
|
token: e.licenseToken,
|
|
6120
6121
|
apiUrl: e.licenseApiUrl,
|
|
6121
6122
|
deviceId: e.deviceId,
|
|
@@ -6123,13 +6124,13 @@ self.onmessage = async (r) => {
|
|
|
6123
6124
|
});
|
|
6124
6125
|
return;
|
|
6125
6126
|
}
|
|
6126
|
-
const t =
|
|
6127
|
+
const t = h;
|
|
6127
6128
|
if (t.coalesce === !0) {
|
|
6128
|
-
i0 = { id: t.id, renderData: t.renderData },
|
|
6129
|
+
i0 = { id: t.id, renderData: t.renderData }, We();
|
|
6129
6130
|
return;
|
|
6130
6131
|
}
|
|
6131
6132
|
try {
|
|
6132
|
-
const e = await
|
|
6133
|
+
const e = await ze(t.renderData);
|
|
6133
6134
|
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|
|
6134
6135
|
} catch (e) {
|
|
6135
6136
|
self.postMessage({
|