@jieyin/editor-sdk-test 1.1.146 → 1.1.148
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 +2306 -2306
- package/dist/renderWorker.js +656 -657
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var F0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(F0 || {});
|
|
2
2
|
function Ge(r) {
|
|
3
|
-
let
|
|
3
|
+
let p = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const t =
|
|
6
|
-
return
|
|
5
|
+
const t = p;
|
|
6
|
+
return p += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function Ke(r,
|
|
9
|
+
function Ke(r, p) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,19 +23,19 @@ function Ke(r, h) {
|
|
|
23
23
|
quiltSliceY: r.quiltSliceY,
|
|
24
24
|
layerOrder: r.layerOrder,
|
|
25
25
|
imagePath: r.imagePath,
|
|
26
|
-
vectorMask: r.vectorMask ??
|
|
26
|
+
vectorMask: r.vectorMask ?? p,
|
|
27
27
|
filterList: r.filterList,
|
|
28
28
|
opacity: r.opacity,
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function Xe(r,
|
|
33
|
-
let u = r.name || "",
|
|
34
|
-
if (r.type === "Group" && m === void 0 && (!
|
|
35
|
-
const x = r.children[0].name, n =
|
|
36
|
-
(E !== void 0 || n?.id !== void 0) && (u = x,
|
|
32
|
+
function Xe(r, p, t, e) {
|
|
33
|
+
let u = r.name || "", h = p[u], m = h?.partId ?? (r.type === "Group" ? t.get(u) : void 0);
|
|
34
|
+
if (r.type === "Group" && m === void 0 && (!h || h.id === void 0) && r.children && r.children.length === 1) {
|
|
35
|
+
const x = r.children[0].name, n = p[x], E = n?.partId ?? t.get(x);
|
|
36
|
+
(E !== void 0 || n?.id !== void 0) && (u = x, h = n, m = E);
|
|
37
37
|
}
|
|
38
|
-
const B = r.id ??
|
|
38
|
+
const B = r.id ?? h?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
40
40
|
return {
|
|
41
41
|
id: B,
|
|
@@ -51,7 +51,7 @@ function Xe(r, h, t, e) {
|
|
|
51
51
|
clipping: r.clipping,
|
|
52
52
|
layerOrder: r.layerOrder
|
|
53
53
|
};
|
|
54
|
-
let C =
|
|
54
|
+
let C = h?.url;
|
|
55
55
|
return !C && r.imagePath && (C = r.imagePath), {
|
|
56
56
|
id: B,
|
|
57
57
|
name: r.name || "",
|
|
@@ -64,19 +64,19 @@ function Xe(r, h, t, e) {
|
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function Ye(r,
|
|
68
|
-
const t = new Map(
|
|
67
|
+
function Ye(r, p) {
|
|
68
|
+
const t = new Map(p.parts.map((u) => [u.name, u.id])), e = Ge(p.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
70
|
+
parts: p.parts,
|
|
71
71
|
models: r.map((u) => {
|
|
72
|
-
const
|
|
72
|
+
const h = u.layerExtrasByName ?? {}, m = u.psdJson, B = m.layerList || m.layerList || [], C = m.canvasWidth, x = m.canvasHeight;
|
|
73
73
|
if (!C || !x)
|
|
74
74
|
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${x}。请确保 jsonurl 中的 canvasWidth 和 canvasHeight 存在`);
|
|
75
75
|
const n = (s) => {
|
|
76
76
|
const f = [];
|
|
77
|
-
for (const
|
|
78
|
-
if (
|
|
79
|
-
const l = [], g = [], i = [...
|
|
77
|
+
for (const v of s)
|
|
78
|
+
if (v.type === "Group" && v.children) {
|
|
79
|
+
const l = [], g = [], i = [...v.children].sort((o, d) => {
|
|
80
80
|
const b = o.layerOrder ?? 0, D = d.layerOrder ?? 0;
|
|
81
81
|
return b - D;
|
|
82
82
|
});
|
|
@@ -87,14 +87,14 @@ function Ye(r, h) {
|
|
|
87
87
|
f.push(...o);
|
|
88
88
|
}
|
|
89
89
|
l.length > 0 && f.push({
|
|
90
|
-
...
|
|
90
|
+
...v,
|
|
91
91
|
children: l
|
|
92
92
|
});
|
|
93
93
|
} else
|
|
94
|
-
f.push(
|
|
94
|
+
f.push(v);
|
|
95
95
|
return f;
|
|
96
96
|
}, a = n(B).map(
|
|
97
|
-
(s) => Xe(s,
|
|
97
|
+
(s) => Xe(s, h, t, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
@@ -110,44 +110,44 @@ function Ze(r) {
|
|
|
110
110
|
function Qe(r) {
|
|
111
111
|
return r ? r.type === "bezier" ? {
|
|
112
112
|
type: "bezier",
|
|
113
|
-
paths: r.paths.map((
|
|
114
|
-
open: !!
|
|
115
|
-
knots:
|
|
113
|
+
paths: r.paths.map((p) => ({
|
|
114
|
+
open: !!p.open,
|
|
115
|
+
knots: p.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((p) => ({
|
|
123
|
+
x: p.x,
|
|
124
|
+
y: p.y,
|
|
125
|
+
type: p.type
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function lr(r,
|
|
130
|
-
if (
|
|
131
|
-
if (r.globalCompositeOperation = "destination-in", r.beginPath(),
|
|
132
|
-
|
|
129
|
+
function lr(r, p) {
|
|
130
|
+
if (p) {
|
|
131
|
+
if (r.globalCompositeOperation = "destination-in", r.beginPath(), p.type === "bezier" && Array.isArray(p.paths))
|
|
132
|
+
p.paths.forEach((t) => {
|
|
133
133
|
const e = t.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
135
|
const u = e[0];
|
|
136
136
|
r.moveTo(u.points[2], u.points[3]);
|
|
137
|
-
for (let
|
|
138
|
-
const m = e[
|
|
139
|
-
let B = (
|
|
140
|
-
if (!t.open &&
|
|
137
|
+
for (let h = 0; h < e.length; h++) {
|
|
138
|
+
const m = e[h];
|
|
139
|
+
let B = (h + 1) % e.length;
|
|
140
|
+
if (!t.open && h === e.length - 1)
|
|
141
141
|
B = 0;
|
|
142
|
-
else if (t.open &&
|
|
142
|
+
else if (t.open && h === e.length - 1)
|
|
143
143
|
break;
|
|
144
144
|
const C = e[B], x = m.points[4], n = m.points[5], E = C.points[0], a = C.points[1], s = C.points[2], f = C.points[3];
|
|
145
145
|
r.bezierCurveTo(x, n, E, a, s, f);
|
|
146
146
|
}
|
|
147
147
|
t.open || r.closePath();
|
|
148
148
|
});
|
|
149
|
-
else if (
|
|
150
|
-
const t =
|
|
149
|
+
else if (p.type === "simple" && Array.isArray(p.points)) {
|
|
150
|
+
const t = p.points;
|
|
151
151
|
if (t.length < 3) return;
|
|
152
152
|
r.moveTo(t[0].x, t[0].y);
|
|
153
153
|
for (let e = 1; e < t.length; e++) r.lineTo(t[e].x, t[e].y);
|
|
@@ -161,10 +161,10 @@ class h0 {
|
|
|
161
161
|
/**
|
|
162
162
|
* 获取存储项
|
|
163
163
|
*/
|
|
164
|
-
static getItem(
|
|
164
|
+
static getItem(p) {
|
|
165
165
|
if (!this.hasStorage) return null;
|
|
166
166
|
try {
|
|
167
|
-
return localStorage.getItem(
|
|
167
|
+
return localStorage.getItem(p);
|
|
168
168
|
} catch {
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
@@ -172,10 +172,10 @@ class h0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(
|
|
175
|
+
static setItem(p, t) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(
|
|
178
|
+
return localStorage.setItem(p, t), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -183,10 +183,10 @@ class h0 {
|
|
|
183
183
|
/**
|
|
184
184
|
* 移除存储项
|
|
185
185
|
*/
|
|
186
|
-
static removeItem(
|
|
186
|
+
static removeItem(p) {
|
|
187
187
|
if (!this.hasStorage) return !1;
|
|
188
188
|
try {
|
|
189
|
-
return localStorage.removeItem(
|
|
189
|
+
return localStorage.removeItem(p), !0;
|
|
190
190
|
} catch {
|
|
191
191
|
return !1;
|
|
192
192
|
}
|
|
@@ -251,10 +251,10 @@ class l0 {
|
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(p) {
|
|
255
255
|
try {
|
|
256
256
|
const t = fr.getOrigin();
|
|
257
|
-
return new URL(
|
|
257
|
+
return new URL(p, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,208 +262,207 @@ class l0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const u = this.parse(
|
|
267
|
-
return !u || u.searchParams.has(t) ?
|
|
265
|
+
static addParam(p, t, e) {
|
|
266
|
+
const u = this.parse(p);
|
|
267
|
+
return !u || u.searchParams.has(t) ? p : (u.searchParams.set(t, e), this.formatUrl(p, 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(p, t) {
|
|
273
|
+
const e = this.parse(p);
|
|
274
|
+
return !e || !e.searchParams.has(t) ? p : (e.searchParams.delete(t), this.formatUrl(p, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(
|
|
280
|
-
return this.parse(
|
|
279
|
+
static hasParam(p, t) {
|
|
280
|
+
return this.parse(p)?.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(p, t) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(p), u = p.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(p) {
|
|
293
|
+
return p?.startsWith("data:") ?? !1;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* 检查是否为 Blob URL
|
|
297
297
|
*/
|
|
298
|
-
static isBlobUrl(
|
|
299
|
-
return
|
|
298
|
+
static isBlobUrl(p) {
|
|
299
|
+
return p?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
(function(r,
|
|
304
|
-
const t =
|
|
302
|
+
const n0 = D0;
|
|
303
|
+
(function(r, p) {
|
|
304
|
+
const t = D0, e = r();
|
|
305
305
|
for (; ; )
|
|
306
306
|
try {
|
|
307
|
-
if (parseInt(t(
|
|
307
|
+
if (-parseInt(t(484)) / 1 + parseInt(t(512)) / 2 * (-parseInt(t(486)) / 3) + parseInt(t(493)) / 4 * (parseInt(t(483)) / 5) + -parseInt(t(485)) / 6 * (-parseInt(t(497)) / 7) + -parseInt(t(521)) / 8 * (parseInt(t(502)) / 9) + -parseInt(t(520)) / 10 * (-parseInt(t(495)) / 11) + parseInt(t(491)) / 12 * (parseInt(t(482)) / 13) === p) break;
|
|
308
308
|
e.push(e.shift());
|
|
309
309
|
} catch {
|
|
310
310
|
e.push(e.shift());
|
|
311
311
|
}
|
|
312
|
-
})(cr,
|
|
312
|
+
})(cr, 1136727 + 1 * 364983 + 862136 * -1);
|
|
313
|
+
function D0(r, p) {
|
|
314
|
+
return r = r - (-2093 + 2 * -507 + -1 * -3589), cr()[r];
|
|
315
|
+
}
|
|
313
316
|
const E0 = /* @__PURE__ */ (function() {
|
|
314
317
|
let r = !0;
|
|
315
|
-
return function(
|
|
318
|
+
return function(p, t) {
|
|
316
319
|
const e = r ? function() {
|
|
320
|
+
const u = D0;
|
|
317
321
|
if (t) {
|
|
318
|
-
const
|
|
319
|
-
return t = null,
|
|
322
|
+
const h = t[u(511)](p, arguments);
|
|
323
|
+
return t = null, h;
|
|
320
324
|
}
|
|
321
325
|
} : function() {
|
|
322
326
|
};
|
|
323
327
|
return r = !1, e;
|
|
324
328
|
};
|
|
325
329
|
})(), Ve = E0(void 0, function() {
|
|
326
|
-
const r =
|
|
327
|
-
const
|
|
330
|
+
const r = D0, p = function() {
|
|
331
|
+
const h = D0;
|
|
328
332
|
let m;
|
|
329
333
|
try {
|
|
330
|
-
m = Function("return (
|
|
334
|
+
m = Function("return (function() " + ("{}.co" + h(488) + 'ctor("return th' + h(515) + " )") + ");")();
|
|
331
335
|
} catch {
|
|
332
336
|
m = window;
|
|
333
337
|
}
|
|
334
338
|
return m;
|
|
335
|
-
}, t =
|
|
336
|
-
for (let
|
|
337
|
-
const m = E0
|
|
338
|
-
m
|
|
339
|
+
}, t = p(), e = t.console = t.console || {}, u = ["log", r(510), r(500), "error", "exception", r(489), "trace"];
|
|
340
|
+
for (let h = 0; h < u[r(516) + "h"]; h++) {
|
|
341
|
+
const m = E0[r(507) + "ructor"].prototype[r(501)](E0), B = u[h], C = e[B] || m;
|
|
342
|
+
m["__pro" + r(496)] = E0.bind(E0), m.toString = C[r(499) + "ing"].bind(C), e[B] = m;
|
|
339
343
|
}
|
|
340
344
|
});
|
|
341
345
|
Ve();
|
|
342
|
-
const Br = "
|
|
346
|
+
const Br = "file_" + n0(508), Cr = "file_token_expire_time", Je = (-1678 + -2 * -869) * (-4881 * -1 + 461 * -17 + 3956);
|
|
343
347
|
function vr() {
|
|
344
|
-
return h0
|
|
348
|
+
return h0.getItem(Br);
|
|
345
349
|
}
|
|
346
350
|
function rt(r = Je) {
|
|
347
|
-
const
|
|
351
|
+
const p = n0;
|
|
348
352
|
if (!vr()) return !0;
|
|
349
|
-
const e = h0
|
|
353
|
+
const e = h0[p(509) + "em"](Cr);
|
|
350
354
|
if (!e) return !1;
|
|
351
355
|
const u = Number(e);
|
|
352
|
-
return Date
|
|
356
|
+
return Date.now() + r > u;
|
|
353
357
|
}
|
|
354
|
-
function et(r,
|
|
355
|
-
const t =
|
|
356
|
-
if (h0.setItem(Br, r), typeof
|
|
357
|
-
const e = Date
|
|
358
|
-
h0
|
|
358
|
+
function et(r, p) {
|
|
359
|
+
const t = n0;
|
|
360
|
+
if (h0.setItem(Br, r), typeof p == t(505) + "r" && p > -8e3 + -20 * -400) {
|
|
361
|
+
const e = Date[t(519)]() + p * 1e3;
|
|
362
|
+
h0.setItem(Cr, String(e));
|
|
359
363
|
}
|
|
360
364
|
}
|
|
361
365
|
function tt() {
|
|
362
|
-
const r =
|
|
363
|
-
h0
|
|
366
|
+
const r = n0;
|
|
367
|
+
h0.removeItem(Br), h0[r(504) + "eItem"](Cr);
|
|
364
368
|
}
|
|
365
369
|
async function Pr(r) {
|
|
366
|
-
const
|
|
367
|
-
return t?.data?.
|
|
370
|
+
const p = n0, t = await r(), e = t?.data?.[p(518)];
|
|
371
|
+
return t?.data?.[p(490)] === 8 * 350 + 8654 + -11254 && e?.["file_token"] ? (et(e.file_token, e["expir" + p(494)]), e.file_token) : null;
|
|
368
372
|
}
|
|
369
373
|
let xt = null;
|
|
370
|
-
function sr(r, h) {
|
|
371
|
-
return r = r - (-407 + 1 * 404 + -407 * -1), cr()[r];
|
|
372
|
-
}
|
|
373
374
|
function zr() {
|
|
374
|
-
return fr
|
|
375
|
+
return fr.isBrowser() ? xt : null;
|
|
376
|
+
}
|
|
377
|
+
function cr() {
|
|
378
|
+
const r = ["oken", "2561orGXul", "6226985OwNmqy", "1130017pbjzuE", "30uIrxsC", "726NDYOSF", "parse", "nstru", "table", "code", "52344oQeLIZ", "oken=", "4BNkoBO", "es_in", "143grCwwf", "to__", "674737zQKfdB", "ram", "toStr", "info", "bind", "639DsoYMf", "des", "remov", "numbe", "fetch", "const", "token", "getIt", "warn", "apply", "4046HJEbYx", "isBlo", "efres", 'is")(', "lengt", "isBro", "data", "now", "585160VxKvLg", "122616pGgRHx"];
|
|
379
|
+
return cr = function() {
|
|
380
|
+
return r;
|
|
381
|
+
}, cr();
|
|
375
382
|
}
|
|
376
383
|
async function De() {
|
|
377
|
-
const r =
|
|
384
|
+
const r = n0;
|
|
378
385
|
if (!fr.isBrowser()) return vr();
|
|
379
|
-
const
|
|
380
|
-
if (
|
|
386
|
+
const p = vr();
|
|
387
|
+
if (p && !rt()) return p;
|
|
381
388
|
try {
|
|
382
389
|
const t = await zr();
|
|
383
|
-
if (
|
|
384
|
-
const e = await Pr(t
|
|
390
|
+
if (p && t?.["fetchFileTokenRefresh"]) {
|
|
391
|
+
const e = await Pr(t["fetchFileTokenR" + r(514) + "h"]);
|
|
385
392
|
if (e) return e;
|
|
386
393
|
}
|
|
387
394
|
} catch {
|
|
388
395
|
}
|
|
389
396
|
try {
|
|
390
397
|
const t = zr();
|
|
391
|
-
return t?.["
|
|
398
|
+
return t?.[r(506) + "FileT" + r(522)] ? await Pr(t.fetchFileToken) : null;
|
|
392
399
|
} catch {
|
|
393
400
|
return null;
|
|
394
401
|
}
|
|
395
402
|
}
|
|
396
403
|
function ge(r) {
|
|
397
|
-
const
|
|
398
|
-
if (!r || l0.isDataUrl(r) || l0
|
|
399
|
-
const t = l0
|
|
400
|
-
return t ? t[
|
|
404
|
+
const p = n0;
|
|
405
|
+
if (!r || l0.isDataUrl(r) || l0[p(513) + "bUrl"](r)) return !1;
|
|
406
|
+
const t = l0[p(487)](r);
|
|
407
|
+
return t ? t.pathname["inclu" + p(503)]("/files/") && !l0["hasPa" + p(498)](r, "fileToken") : r.includes("/files/") && !r.includes("fileT" + p(492));
|
|
401
408
|
}
|
|
402
|
-
function be(r,
|
|
403
|
-
|
|
404
|
-
return !h || !ge(r) ? r : l0["addPa" + t(424)](r, t(422) + "oken", h);
|
|
409
|
+
function be(r, p) {
|
|
410
|
+
return !p || !ge(r) ? r : l0.addParam(r, "fileToken", p);
|
|
405
411
|
}
|
|
406
412
|
function nt(r) {
|
|
407
|
-
|
|
408
|
-
return l0.removeParam(r, "fileT" + h(440));
|
|
413
|
+
return l0.removeParam(r, "fileToken");
|
|
409
414
|
}
|
|
410
415
|
async function at(r) {
|
|
411
416
|
if (!ge(r)) return r;
|
|
412
|
-
const
|
|
413
|
-
return be(r,
|
|
414
|
-
}
|
|
415
|
-
function cr() {
|
|
416
|
-
const r = ["remov", "token", "{}.co", "pathn", "tion", "12621GoToUF", "bind", "re_ti", "excep", "258384MBgQvE", "2602668BRjtDG", "33BzMDbE", "6vbeouw", "10560090FmGIrA", "now", "efres", "getIt", "setIt", "848mdRhER", "3qUkCFS", "fileT", "info", "ram", "hasPa", "isBro", "type", "_expi", "279260xJPuYJ", "proto", "wser", "des", "ing", "es_in", "n() ", "eItem", "file_", "466468FbLYFP", "9190098EuZORG", "oken", "216zxrGCR"];
|
|
417
|
-
return cr = function() {
|
|
418
|
-
return r;
|
|
419
|
-
}, cr();
|
|
417
|
+
const p = await De();
|
|
418
|
+
return be(r, p);
|
|
420
419
|
}
|
|
421
|
-
async function me(r,
|
|
422
|
-
if (!fr[
|
|
423
|
-
const e = nt(r), u = await at(e),
|
|
424
|
-
if (
|
|
420
|
+
async function me(r, p) {
|
|
421
|
+
if (!fr[n0(517) + "wser"]()) return fetch(r, p);
|
|
422
|
+
const e = nt(r), u = await at(e), h = await fetch(u, p);
|
|
423
|
+
if (h.status !== 401) return h;
|
|
425
424
|
tt();
|
|
426
425
|
const m = await De(), B = be(e, m);
|
|
427
|
-
return fetch(B,
|
|
426
|
+
return fetch(B, p);
|
|
428
427
|
}
|
|
429
|
-
const _e = (r,
|
|
428
|
+
const _e = (r, p) => {
|
|
430
429
|
if (!r) return r;
|
|
431
|
-
const t = (
|
|
430
|
+
const t = (p || "").replace(/\/$/, "");
|
|
432
431
|
if (t && r.startsWith(t))
|
|
433
432
|
return r;
|
|
434
433
|
if (typeof window < "u") {
|
|
435
434
|
const u = window.location.hostname;
|
|
436
435
|
if (u === "localhost" || u === "127.0.0.1")
|
|
437
436
|
try {
|
|
438
|
-
const
|
|
437
|
+
const h = new URL(r);
|
|
439
438
|
if (t)
|
|
440
439
|
try {
|
|
441
440
|
const m = new URL(t).origin;
|
|
442
|
-
if (
|
|
441
|
+
if (h.origin === m)
|
|
443
442
|
return r;
|
|
444
443
|
} catch {
|
|
445
444
|
}
|
|
446
|
-
if (
|
|
447
|
-
return t ? `${t}${
|
|
445
|
+
if (h.pathname.startsWith("/files/"))
|
|
446
|
+
return t ? `${t}${h.pathname}${h.search}${h.hash}` : `${h.pathname}${h.search}${h.hash}`;
|
|
448
447
|
} catch {
|
|
449
448
|
}
|
|
450
449
|
}
|
|
451
450
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
452
451
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
453
452
|
return e ? `/oss${e[2]}` : r;
|
|
454
|
-
}, ot = (r,
|
|
453
|
+
}, ot = (r, p) => {
|
|
455
454
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
456
|
-
return new OffscreenCanvas(r,
|
|
455
|
+
return new OffscreenCanvas(r, p);
|
|
457
456
|
const t = document.createElement("canvas");
|
|
458
|
-
return t.width = r, t.height =
|
|
459
|
-
},
|
|
460
|
-
if (!
|
|
457
|
+
return t.width = r, t.height = p, t;
|
|
458
|
+
}, _0 = async (r, p) => {
|
|
459
|
+
if (!p || p <= 0) return r;
|
|
461
460
|
const t = Math.max(r.width, r.height);
|
|
462
|
-
if (t <=
|
|
463
|
-
const e =
|
|
464
|
-
return B ? (B.drawImage(r, 0, 0, u,
|
|
461
|
+
if (t <= p) return r;
|
|
462
|
+
const e = p / t, u = Math.max(1, Math.round(r.width * e)), h = Math.max(1, Math.round(r.height * e)), m = ot(u, h), B = m.getContext("2d");
|
|
463
|
+
return B ? (B.drawImage(r, 0, 0, u, h), r.close?.(), await createImageBitmap(m)) : r;
|
|
465
464
|
};
|
|
466
|
-
async function it(r,
|
|
465
|
+
async function it(r, p, t) {
|
|
467
466
|
if (typeof r == "string")
|
|
468
467
|
try {
|
|
469
468
|
const e = _e(r, t), u = await me(e);
|
|
@@ -471,12 +470,12 @@ async function it(r, h, t) {
|
|
|
471
470
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
472
471
|
throw new Error(m);
|
|
473
472
|
}
|
|
474
|
-
const
|
|
475
|
-
if (!
|
|
473
|
+
const h = await u.blob();
|
|
474
|
+
if (!h.type.startsWith("image/") && h.size === 0)
|
|
476
475
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
477
476
|
try {
|
|
478
|
-
const m = await createImageBitmap(
|
|
479
|
-
return await
|
|
477
|
+
const m = await createImageBitmap(h);
|
|
478
|
+
return await _0(m, p);
|
|
480
479
|
} catch (m) {
|
|
481
480
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
482
481
|
}
|
|
@@ -490,7 +489,7 @@ async function it(r, h, t) {
|
|
|
490
489
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
491
490
|
try {
|
|
492
491
|
const e = await createImageBitmap(r);
|
|
493
|
-
return await
|
|
492
|
+
return await _0(e, p);
|
|
494
493
|
} catch (e) {
|
|
495
494
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
496
495
|
}
|
|
@@ -498,23 +497,23 @@ async function it(r, h, t) {
|
|
|
498
497
|
if (r instanceof ImageBitmap) {
|
|
499
498
|
if (r.width === 0 || r.height === 0)
|
|
500
499
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
501
|
-
return await
|
|
500
|
+
return await _0(r, p);
|
|
502
501
|
}
|
|
503
502
|
throw new Error("不支持的图片类型");
|
|
504
503
|
}
|
|
505
|
-
async function st(r,
|
|
504
|
+
async function st(r, p, t) {
|
|
506
505
|
try {
|
|
507
506
|
const e = _e(r, t), u = await me(e);
|
|
508
507
|
if (!u.ok) {
|
|
509
508
|
const m = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
510
509
|
throw new Error(m);
|
|
511
510
|
}
|
|
512
|
-
const
|
|
513
|
-
if (!
|
|
511
|
+
const h = await u.blob();
|
|
512
|
+
if (!h.type.startsWith("image/") && h.size === 0)
|
|
514
513
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
515
514
|
try {
|
|
516
|
-
const m = await createImageBitmap(
|
|
517
|
-
return await
|
|
515
|
+
const m = await createImageBitmap(h);
|
|
516
|
+
return await _0(m, p);
|
|
518
517
|
} catch (m) {
|
|
519
518
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
520
519
|
}
|
|
@@ -522,9 +521,9 @@ async function st(r, h, t) {
|
|
|
522
521
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
523
522
|
}
|
|
524
523
|
}
|
|
525
|
-
function
|
|
524
|
+
function Ir(r) {
|
|
526
525
|
if (!r) return "source-over";
|
|
527
|
-
const
|
|
526
|
+
const p = r.trim().toLowerCase();
|
|
528
527
|
return {
|
|
529
528
|
normal: "source-over",
|
|
530
529
|
multiply: "multiply",
|
|
@@ -550,22 +549,22 @@ function Wr(r) {
|
|
|
550
549
|
"linear dodge": "lighter",
|
|
551
550
|
lighter: "lighter",
|
|
552
551
|
"pass-through": "source-over"
|
|
553
|
-
}[
|
|
552
|
+
}[p] || "source-over";
|
|
554
553
|
}
|
|
555
554
|
var hr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
556
555
|
function ct(r) {
|
|
557
556
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
558
|
-
var
|
|
559
|
-
if (typeof
|
|
557
|
+
var p = r.default;
|
|
558
|
+
if (typeof p == "function") {
|
|
560
559
|
var t = function e() {
|
|
561
560
|
var u = !1;
|
|
562
561
|
try {
|
|
563
562
|
u = this instanceof e;
|
|
564
563
|
} catch {
|
|
565
564
|
}
|
|
566
|
-
return u ? Reflect.construct(
|
|
565
|
+
return u ? Reflect.construct(p, arguments, this.constructor) : p.apply(this, arguments);
|
|
567
566
|
};
|
|
568
|
-
t.prototype =
|
|
567
|
+
t.prototype = p.prototype;
|
|
569
568
|
} else t = {};
|
|
570
569
|
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
571
570
|
var u = Object.getOwnPropertyDescriptor(r, e);
|
|
@@ -577,36 +576,36 @@ function ct(r) {
|
|
|
577
576
|
});
|
|
578
577
|
}), t;
|
|
579
578
|
}
|
|
580
|
-
var
|
|
579
|
+
var y0 = { exports: {} };
|
|
581
580
|
function ft(r) {
|
|
582
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.');
|
|
583
582
|
}
|
|
584
|
-
var
|
|
583
|
+
var w0 = { exports: {} }, ut = {}, dt = /* @__PURE__ */ Object.freeze({
|
|
585
584
|
__proto__: null,
|
|
586
585
|
default: ut
|
|
587
|
-
}), lt = /* @__PURE__ */ ct(dt), ht =
|
|
586
|
+
}), lt = /* @__PURE__ */ ct(dt), ht = w0.exports, Wr;
|
|
588
587
|
function M() {
|
|
589
|
-
return
|
|
588
|
+
return Wr || (Wr = 1, (function(r, p) {
|
|
590
589
|
(function(t, e) {
|
|
591
590
|
r.exports = e();
|
|
592
591
|
})(ht, function() {
|
|
593
592
|
var t = t || (function(e, u) {
|
|
594
|
-
var
|
|
595
|
-
if (typeof window < "u" && window.crypto && (
|
|
593
|
+
var h;
|
|
594
|
+
if (typeof window < "u" && window.crypto && (h = window.crypto), typeof self < "u" && self.crypto && (h = self.crypto), typeof globalThis < "u" && globalThis.crypto && (h = globalThis.crypto), !h && typeof window < "u" && window.msCrypto && (h = window.msCrypto), !h && typeof hr < "u" && hr.crypto && (h = hr.crypto), !h && typeof ft == "function")
|
|
596
595
|
try {
|
|
597
|
-
|
|
596
|
+
h = lt;
|
|
598
597
|
} catch {
|
|
599
598
|
}
|
|
600
599
|
var m = function() {
|
|
601
|
-
if (
|
|
602
|
-
if (typeof
|
|
600
|
+
if (h) {
|
|
601
|
+
if (typeof h.getRandomValues == "function")
|
|
603
602
|
try {
|
|
604
|
-
return
|
|
603
|
+
return h.getRandomValues(new Uint32Array(1))[0];
|
|
605
604
|
} catch {
|
|
606
605
|
}
|
|
607
|
-
if (typeof
|
|
606
|
+
if (typeof h.randomBytes == "function")
|
|
608
607
|
try {
|
|
609
|
-
return
|
|
608
|
+
return h.randomBytes(4).readInt32LE();
|
|
610
609
|
} catch {
|
|
611
610
|
}
|
|
612
611
|
}
|
|
@@ -754,8 +753,8 @@ function M() {
|
|
|
754
753
|
o[b + y >>> 2] |= k << 24 - (b + y) % 4 * 8;
|
|
755
754
|
}
|
|
756
755
|
else
|
|
757
|
-
for (var
|
|
758
|
-
o[b +
|
|
756
|
+
for (var R = 0; R < D; R += 4)
|
|
757
|
+
o[b + R >>> 2] = d[R >>> 2];
|
|
759
758
|
return this.sigBytes += D, this;
|
|
760
759
|
},
|
|
761
760
|
/**
|
|
@@ -878,7 +877,7 @@ function M() {
|
|
|
878
877
|
d[b >>> 2] |= (i.charCodeAt(b) & 255) << 24 - b % 4 * 8;
|
|
879
878
|
return new E.init(d, o);
|
|
880
879
|
}
|
|
881
|
-
},
|
|
880
|
+
}, v = a.Utf8 = {
|
|
882
881
|
/**
|
|
883
882
|
* Converts a word array to a UTF-8 string.
|
|
884
883
|
*
|
|
@@ -937,7 +936,7 @@ function M() {
|
|
|
937
936
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
938
937
|
*/
|
|
939
938
|
_append: function(i) {
|
|
940
|
-
typeof i == "string" && (i =
|
|
939
|
+
typeof i == "string" && (i = v.parse(i)), this._data.concat(i), this._nDataBytes += i.sigBytes;
|
|
941
940
|
},
|
|
942
941
|
/**
|
|
943
942
|
* Processes available data blocks.
|
|
@@ -954,9 +953,9 @@ function M() {
|
|
|
954
953
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
955
954
|
*/
|
|
956
955
|
_process: function(i) {
|
|
957
|
-
var o, d = this._data, b = d.words, D = d.sigBytes, y = this.blockSize, k = y * 4,
|
|
958
|
-
i ?
|
|
959
|
-
var F =
|
|
956
|
+
var o, d = this._data, b = d.words, D = d.sigBytes, y = this.blockSize, k = y * 4, R = D / k;
|
|
957
|
+
i ? R = e.ceil(R) : R = e.max((R | 0) - this._minBufferSize, 0);
|
|
958
|
+
var F = R * y, w = e.min(F * 4, D);
|
|
960
959
|
if (F) {
|
|
961
960
|
for (var H = 0; H < F; H += y)
|
|
962
961
|
this._doProcessBlock(b, H);
|
|
@@ -1083,16 +1082,16 @@ function M() {
|
|
|
1083
1082
|
})(Math);
|
|
1084
1083
|
return t;
|
|
1085
1084
|
});
|
|
1086
|
-
})(
|
|
1085
|
+
})(w0)), w0.exports;
|
|
1087
1086
|
}
|
|
1088
|
-
var
|
|
1087
|
+
var k0 = { exports: {} }, vt = k0.exports, Lr;
|
|
1089
1088
|
function ur() {
|
|
1090
|
-
return Lr || (Lr = 1, (function(r,
|
|
1089
|
+
return Lr || (Lr = 1, (function(r, p) {
|
|
1091
1090
|
(function(t, e) {
|
|
1092
1091
|
r.exports = e(M());
|
|
1093
1092
|
})(vt, function(t) {
|
|
1094
1093
|
return (function(e) {
|
|
1095
|
-
var u = t,
|
|
1094
|
+
var u = t, h = u.lib, m = h.Base, B = h.WordArray, C = u.x64 = {};
|
|
1096
1095
|
C.Word = m.extend({
|
|
1097
1096
|
/**
|
|
1098
1097
|
* Initializes a newly created 64-bit word.
|
|
@@ -1313,17 +1312,17 @@ function ur() {
|
|
|
1313
1312
|
});
|
|
1314
1313
|
})(), t;
|
|
1315
1314
|
});
|
|
1316
|
-
})(
|
|
1315
|
+
})(k0)), k0.exports;
|
|
1317
1316
|
}
|
|
1318
|
-
var
|
|
1317
|
+
var S0 = { exports: {} }, pt = S0.exports, Or;
|
|
1319
1318
|
function Bt() {
|
|
1320
|
-
return Or || (Or = 1, (function(r,
|
|
1319
|
+
return Or || (Or = 1, (function(r, p) {
|
|
1321
1320
|
(function(t, e) {
|
|
1322
1321
|
r.exports = e(M());
|
|
1323
1322
|
})(pt, function(t) {
|
|
1324
1323
|
return (function() {
|
|
1325
1324
|
if (typeof ArrayBuffer == "function") {
|
|
1326
|
-
var e = t, u = e.lib,
|
|
1325
|
+
var e = t, u = e.lib, h = u.WordArray, m = h.init, B = h.init = function(C) {
|
|
1327
1326
|
if (C instanceof ArrayBuffer && (C = new Uint8Array(C)), (C instanceof Int8Array || typeof Uint8ClampedArray < "u" && C instanceof Uint8ClampedArray || C instanceof Int16Array || C instanceof Uint16Array || C instanceof Int32Array || C instanceof Uint32Array || C instanceof Float32Array || C instanceof Float64Array) && (C = new Uint8Array(C.buffer, C.byteOffset, C.byteLength)), C instanceof Uint8Array) {
|
|
1328
1327
|
for (var x = C.byteLength, n = [], E = 0; E < x; E++)
|
|
1329
1328
|
n[E >>> 2] |= C[E] << 24 - E % 4 * 8;
|
|
@@ -1331,20 +1330,20 @@ function Bt() {
|
|
|
1331
1330
|
} else
|
|
1332
1331
|
m.apply(this, arguments);
|
|
1333
1332
|
};
|
|
1334
|
-
B.prototype =
|
|
1333
|
+
B.prototype = h;
|
|
1335
1334
|
}
|
|
1336
1335
|
})(), t.lib.WordArray;
|
|
1337
1336
|
});
|
|
1338
|
-
})(
|
|
1337
|
+
})(S0)), S0.exports;
|
|
1339
1338
|
}
|
|
1340
|
-
var
|
|
1339
|
+
var H0 = { exports: {} }, Ct = H0.exports, qr;
|
|
1341
1340
|
function Et() {
|
|
1342
|
-
return qr || (qr = 1, (function(r,
|
|
1341
|
+
return qr || (qr = 1, (function(r, p) {
|
|
1343
1342
|
(function(t, e) {
|
|
1344
1343
|
r.exports = e(M());
|
|
1345
1344
|
})(Ct, function(t) {
|
|
1346
1345
|
return (function() {
|
|
1347
|
-
var e = t, u = e.lib,
|
|
1346
|
+
var e = t, u = e.lib, h = u.WordArray, m = e.enc;
|
|
1348
1347
|
m.Utf16 = m.Utf16BE = {
|
|
1349
1348
|
/**
|
|
1350
1349
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1382,7 +1381,7 @@ function Et() {
|
|
|
1382
1381
|
parse: function(C) {
|
|
1383
1382
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1384
1383
|
n[E >>> 1] |= C.charCodeAt(E) << 16 - E % 2 * 16;
|
|
1385
|
-
return
|
|
1384
|
+
return h.create(n, x * 2);
|
|
1386
1385
|
}
|
|
1387
1386
|
}, m.Utf16LE = {
|
|
1388
1387
|
/**
|
|
@@ -1421,7 +1420,7 @@ function Et() {
|
|
|
1421
1420
|
parse: function(C) {
|
|
1422
1421
|
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1423
1422
|
n[E >>> 1] |= B(C.charCodeAt(E) << 16 - E % 2 * 16);
|
|
1424
|
-
return
|
|
1423
|
+
return h.create(n, x * 2);
|
|
1425
1424
|
}
|
|
1426
1425
|
};
|
|
1427
1426
|
function B(C) {
|
|
@@ -1429,16 +1428,16 @@ function Et() {
|
|
|
1429
1428
|
}
|
|
1430
1429
|
})(), t.enc.Utf16;
|
|
1431
1430
|
});
|
|
1432
|
-
})(
|
|
1431
|
+
})(H0)), H0.exports;
|
|
1433
1432
|
}
|
|
1434
|
-
var
|
|
1433
|
+
var $0 = { exports: {} }, At = $0.exports, Tr;
|
|
1435
1434
|
function i0() {
|
|
1436
|
-
return Tr || (Tr = 1, (function(r,
|
|
1435
|
+
return Tr || (Tr = 1, (function(r, p) {
|
|
1437
1436
|
(function(t, e) {
|
|
1438
1437
|
r.exports = e(M());
|
|
1439
1438
|
})(At, function(t) {
|
|
1440
1439
|
return (function() {
|
|
1441
|
-
var e = t, u = e.lib,
|
|
1440
|
+
var e = t, u = e.lib, h = u.WordArray, m = e.enc;
|
|
1442
1441
|
m.Base64 = {
|
|
1443
1442
|
/**
|
|
1444
1443
|
* Converts a word array to a Base64 string.
|
|
@@ -1457,7 +1456,7 @@ function i0() {
|
|
|
1457
1456
|
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1458
1457
|
C.clamp();
|
|
1459
1458
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1460
|
-
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255,
|
|
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++)
|
|
1461
1460
|
a.push(E.charAt(g >>> 6 * (3 - i) & 63));
|
|
1462
1461
|
var o = E.charAt(64);
|
|
1463
1462
|
if (o)
|
|
@@ -1497,23 +1496,23 @@ function i0() {
|
|
|
1497
1496
|
function B(C, x, n) {
|
|
1498
1497
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1499
1498
|
if (s % 4) {
|
|
1500
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1499
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | v;
|
|
1501
1500
|
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1502
1501
|
}
|
|
1503
|
-
return
|
|
1502
|
+
return h.create(E, a);
|
|
1504
1503
|
}
|
|
1505
1504
|
})(), t.enc.Base64;
|
|
1506
1505
|
});
|
|
1507
|
-
})(
|
|
1506
|
+
})($0)), $0.exports;
|
|
1508
1507
|
}
|
|
1509
1508
|
var R0 = { exports: {} }, Ft = R0.exports, Mr;
|
|
1510
1509
|
function Dt() {
|
|
1511
|
-
return Mr || (Mr = 1, (function(r,
|
|
1510
|
+
return Mr || (Mr = 1, (function(r, p) {
|
|
1512
1511
|
(function(t, e) {
|
|
1513
1512
|
r.exports = e(M());
|
|
1514
1513
|
})(Ft, function(t) {
|
|
1515
1514
|
return (function() {
|
|
1516
|
-
var e = t, u = e.lib,
|
|
1515
|
+
var e = t, u = e.lib, h = u.WordArray, m = e.enc;
|
|
1517
1516
|
m.Base64url = {
|
|
1518
1517
|
/**
|
|
1519
1518
|
* Converts a word array to a Base64url string.
|
|
@@ -1535,7 +1534,7 @@ function Dt() {
|
|
|
1535
1534
|
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1536
1535
|
C.clamp();
|
|
1537
1536
|
for (var s = [], f = 0; f < E; f += 3)
|
|
1538
|
-
for (var
|
|
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++)
|
|
1539
1538
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1540
1539
|
var d = a.charAt(64);
|
|
1541
1540
|
if (d)
|
|
@@ -1568,8 +1567,8 @@ function Dt() {
|
|
|
1568
1567
|
}
|
|
1569
1568
|
var f = E.charAt(64);
|
|
1570
1569
|
if (f) {
|
|
1571
|
-
var
|
|
1572
|
-
|
|
1570
|
+
var v = C.indexOf(f);
|
|
1571
|
+
v !== -1 && (n = v);
|
|
1573
1572
|
}
|
|
1574
1573
|
return B(C, n, a);
|
|
1575
1574
|
},
|
|
@@ -1579,26 +1578,26 @@ function Dt() {
|
|
|
1579
1578
|
function B(C, x, n) {
|
|
1580
1579
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1581
1580
|
if (s % 4) {
|
|
1582
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1581
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | v;
|
|
1583
1582
|
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1584
1583
|
}
|
|
1585
|
-
return
|
|
1584
|
+
return h.create(E, a);
|
|
1586
1585
|
}
|
|
1587
1586
|
})(), t.enc.Base64url;
|
|
1588
1587
|
});
|
|
1589
1588
|
})(R0)), R0.exports;
|
|
1590
1589
|
}
|
|
1591
|
-
var
|
|
1590
|
+
var P0 = { exports: {} }, gt = P0.exports, Nr;
|
|
1592
1591
|
function s0() {
|
|
1593
|
-
return Nr || (Nr = 1, (function(r,
|
|
1592
|
+
return Nr || (Nr = 1, (function(r, p) {
|
|
1594
1593
|
(function(t, e) {
|
|
1595
1594
|
r.exports = e(M());
|
|
1596
1595
|
})(gt, function(t) {
|
|
1597
1596
|
return (function(e) {
|
|
1598
|
-
var u = t,
|
|
1597
|
+
var u = t, h = u.lib, m = h.WordArray, B = h.Hasher, C = u.algo, x = [];
|
|
1599
1598
|
(function() {
|
|
1600
|
-
for (var
|
|
1601
|
-
x[
|
|
1599
|
+
for (var v = 0; v < 64; v++)
|
|
1600
|
+
x[v] = e.abs(e.sin(v + 1)) * 4294967296 | 0;
|
|
1602
1601
|
})();
|
|
1603
1602
|
var n = C.MD5 = B.extend({
|
|
1604
1603
|
_doReset: function() {
|
|
@@ -1609,19 +1608,19 @@ function s0() {
|
|
|
1609
1608
|
271733878
|
|
1610
1609
|
]);
|
|
1611
1610
|
},
|
|
1612
|
-
_doProcessBlock: function(
|
|
1611
|
+
_doProcessBlock: function(v, l) {
|
|
1613
1612
|
for (var g = 0; g < 16; g++) {
|
|
1614
|
-
var i = l + g, o =
|
|
1615
|
-
|
|
1613
|
+
var i = l + g, o = v[i];
|
|
1614
|
+
v[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1616
1615
|
}
|
|
1617
|
-
var d = this._hash.words, b =
|
|
1618
|
-
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, _,
|
|
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;
|
|
1619
1618
|
},
|
|
1620
1619
|
_doFinalize: function() {
|
|
1621
|
-
var
|
|
1620
|
+
var v = this._data, l = v.words, g = this._nDataBytes * 8, i = v.sigBytes * 8;
|
|
1622
1621
|
l[i >>> 5] |= 128 << 24 - i % 32;
|
|
1623
1622
|
var o = e.floor(g / 4294967296), d = g;
|
|
1624
|
-
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360,
|
|
1623
|
+
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360, v.sigBytes = (l.length + 1) * 4, this._process();
|
|
1625
1624
|
for (var b = this._hash, D = b.words, y = 0; y < 4; y++) {
|
|
1626
1625
|
var k = D[y];
|
|
1627
1626
|
D[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
@@ -1629,41 +1628,41 @@ function s0() {
|
|
|
1629
1628
|
return b;
|
|
1630
1629
|
},
|
|
1631
1630
|
clone: function() {
|
|
1632
|
-
var
|
|
1633
|
-
return
|
|
1631
|
+
var v = B.clone.call(this);
|
|
1632
|
+
return v._hash = this._hash.clone(), v;
|
|
1634
1633
|
}
|
|
1635
1634
|
});
|
|
1636
|
-
function E(
|
|
1637
|
-
var D =
|
|
1635
|
+
function E(v, l, g, i, o, d, b) {
|
|
1636
|
+
var D = v + (l & g | ~l & i) + o + b;
|
|
1638
1637
|
return (D << d | D >>> 32 - d) + l;
|
|
1639
1638
|
}
|
|
1640
|
-
function a(
|
|
1641
|
-
var D =
|
|
1639
|
+
function a(v, l, g, i, o, d, b) {
|
|
1640
|
+
var D = v + (l & i | g & ~i) + o + b;
|
|
1642
1641
|
return (D << d | D >>> 32 - d) + l;
|
|
1643
1642
|
}
|
|
1644
|
-
function s(
|
|
1645
|
-
var D =
|
|
1643
|
+
function s(v, l, g, i, o, d, b) {
|
|
1644
|
+
var D = v + (l ^ g ^ i) + o + b;
|
|
1646
1645
|
return (D << d | D >>> 32 - d) + l;
|
|
1647
1646
|
}
|
|
1648
|
-
function f(
|
|
1649
|
-
var D =
|
|
1647
|
+
function f(v, l, g, i, o, d, b) {
|
|
1648
|
+
var D = v + (g ^ (l | ~i)) + o + b;
|
|
1650
1649
|
return (D << d | D >>> 32 - d) + l;
|
|
1651
1650
|
}
|
|
1652
1651
|
u.MD5 = B._createHelper(n), u.HmacMD5 = B._createHmacHelper(n);
|
|
1653
1652
|
})(Math), t.MD5;
|
|
1654
1653
|
});
|
|
1655
|
-
})(
|
|
1654
|
+
})(P0)), P0.exports;
|
|
1656
1655
|
}
|
|
1657
|
-
var
|
|
1656
|
+
var z0 = { exports: {} }, bt = z0.exports, Ur;
|
|
1658
1657
|
function ye() {
|
|
1659
|
-
return Ur || (Ur = 1, (function(r,
|
|
1658
|
+
return Ur || (Ur = 1, (function(r, p) {
|
|
1660
1659
|
(function(t, e) {
|
|
1661
1660
|
r.exports = e(M());
|
|
1662
1661
|
})(bt, function(t) {
|
|
1663
1662
|
return (function() {
|
|
1664
|
-
var e = t, u = e.lib,
|
|
1663
|
+
var e = t, u = e.lib, h = u.WordArray, m = u.Hasher, B = e.algo, C = [], x = B.SHA1 = m.extend({
|
|
1665
1664
|
_doReset: function() {
|
|
1666
|
-
this._hash = new
|
|
1665
|
+
this._hash = new h.init([
|
|
1667
1666
|
1732584193,
|
|
1668
1667
|
4023233417,
|
|
1669
1668
|
2562383102,
|
|
@@ -1672,7 +1671,7 @@ function ye() {
|
|
|
1672
1671
|
]);
|
|
1673
1672
|
},
|
|
1674
1673
|
_doProcessBlock: function(n, E) {
|
|
1675
|
-
for (var a = this._hash.words, s = a[0], f = a[1],
|
|
1674
|
+
for (var a = this._hash.words, s = a[0], f = a[1], v = a[2], l = a[3], g = a[4], i = 0; i < 80; i++) {
|
|
1676
1675
|
if (i < 16)
|
|
1677
1676
|
C[i] = n[E + i] | 0;
|
|
1678
1677
|
else {
|
|
@@ -1680,9 +1679,9 @@ function ye() {
|
|
|
1680
1679
|
C[i] = o << 1 | o >>> 31;
|
|
1681
1680
|
}
|
|
1682
1681
|
var d = (s << 5 | s >>> 27) + g + C[i];
|
|
1683
|
-
i < 20 ? d += (f &
|
|
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;
|
|
1684
1683
|
}
|
|
1685
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] +
|
|
1684
|
+
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + v | 0, a[3] = a[3] + l | 0, a[4] = a[4] + g | 0;
|
|
1686
1685
|
},
|
|
1687
1686
|
_doFinalize: function() {
|
|
1688
1687
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
@@ -1696,16 +1695,16 @@ function ye() {
|
|
|
1696
1695
|
e.SHA1 = m._createHelper(x), e.HmacSHA1 = m._createHmacHelper(x);
|
|
1697
1696
|
})(), t.SHA1;
|
|
1698
1697
|
});
|
|
1699
|
-
})(
|
|
1698
|
+
})(z0)), z0.exports;
|
|
1700
1699
|
}
|
|
1701
|
-
var
|
|
1700
|
+
var I0 = { exports: {} }, mt = I0.exports, jr;
|
|
1702
1701
|
function Er() {
|
|
1703
|
-
return jr || (jr = 1, (function(r,
|
|
1702
|
+
return jr || (jr = 1, (function(r, p) {
|
|
1704
1703
|
(function(t, e) {
|
|
1705
1704
|
r.exports = e(M());
|
|
1706
1705
|
})(mt, function(t) {
|
|
1707
1706
|
return (function(e) {
|
|
1708
|
-
var u = t,
|
|
1707
|
+
var u = t, h = u.lib, m = h.WordArray, B = h.Hasher, C = u.algo, x = [], n = [];
|
|
1709
1708
|
(function() {
|
|
1710
1709
|
function s(g) {
|
|
1711
1710
|
for (var i = e.sqrt(g), o = 2; o <= i; o++)
|
|
@@ -1716,29 +1715,29 @@ function Er() {
|
|
|
1716
1715
|
function f(g) {
|
|
1717
1716
|
return (g - (g | 0)) * 4294967296 | 0;
|
|
1718
1717
|
}
|
|
1719
|
-
for (var
|
|
1720
|
-
s(
|
|
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++;
|
|
1721
1720
|
})();
|
|
1722
1721
|
var E = [], a = C.SHA256 = B.extend({
|
|
1723
1722
|
_doReset: function() {
|
|
1724
1723
|
this._hash = new m.init(x.slice(0));
|
|
1725
1724
|
},
|
|
1726
1725
|
_doProcessBlock: function(s, f) {
|
|
1727
|
-
for (var
|
|
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++) {
|
|
1728
1727
|
if (k < 16)
|
|
1729
1728
|
E[k] = s[f + k] | 0;
|
|
1730
1729
|
else {
|
|
1731
|
-
var
|
|
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;
|
|
1732
1731
|
E[k] = F + E[k - 7] + H + E[k - 16];
|
|
1733
1732
|
}
|
|
1734
|
-
var
|
|
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;
|
|
1735
1734
|
y = D, D = b, b = d, d = o + U | 0, o = i, i = g, g = l, l = U + T | 0;
|
|
1736
1735
|
}
|
|
1737
|
-
|
|
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;
|
|
1738
1737
|
},
|
|
1739
1738
|
_doFinalize: function() {
|
|
1740
|
-
var s = this._data, f = s.words,
|
|
1741
|
-
return f[l >>> 5] |= 128 << 24 - l % 32, f[(l + 64 >>> 9 << 4) + 14] = e.floor(
|
|
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;
|
|
1742
1741
|
},
|
|
1743
1742
|
clone: function() {
|
|
1744
1743
|
var s = B.clone.call(this);
|
|
@@ -1748,18 +1747,18 @@ function Er() {
|
|
|
1748
1747
|
u.SHA256 = B._createHelper(a), u.HmacSHA256 = B._createHmacHelper(a);
|
|
1749
1748
|
})(Math), t.SHA256;
|
|
1750
1749
|
});
|
|
1751
|
-
})(
|
|
1750
|
+
})(I0)), I0.exports;
|
|
1752
1751
|
}
|
|
1753
1752
|
var W0 = { exports: {} }, _t = W0.exports, Gr;
|
|
1754
1753
|
function yt() {
|
|
1755
|
-
return Gr || (Gr = 1, (function(r,
|
|
1754
|
+
return Gr || (Gr = 1, (function(r, p) {
|
|
1756
1755
|
(function(t, e, u) {
|
|
1757
1756
|
r.exports = e(M(), Er());
|
|
1758
1757
|
})(_t, function(t) {
|
|
1759
1758
|
return (function() {
|
|
1760
|
-
var e = t, u = e.lib,
|
|
1759
|
+
var e = t, u = e.lib, h = u.WordArray, m = e.algo, B = m.SHA256, C = m.SHA224 = B.extend({
|
|
1761
1760
|
_doReset: function() {
|
|
1762
|
-
this._hash = new
|
|
1761
|
+
this._hash = new h.init([
|
|
1763
1762
|
3238371032,
|
|
1764
1763
|
914150663,
|
|
1765
1764
|
812702999,
|
|
@@ -1780,14 +1779,14 @@ function yt() {
|
|
|
1780
1779
|
});
|
|
1781
1780
|
})(W0)), W0.exports;
|
|
1782
1781
|
}
|
|
1783
|
-
var
|
|
1782
|
+
var L0 = { exports: {} }, wt = L0.exports, Kr;
|
|
1784
1783
|
function we() {
|
|
1785
|
-
return Kr || (Kr = 1, (function(r,
|
|
1784
|
+
return Kr || (Kr = 1, (function(r, p) {
|
|
1786
1785
|
(function(t, e, u) {
|
|
1787
1786
|
r.exports = e(M(), ur());
|
|
1788
1787
|
})(wt, function(t) {
|
|
1789
1788
|
return (function() {
|
|
1790
|
-
var e = t, u = e.lib,
|
|
1789
|
+
var e = t, u = e.lib, h = u.Hasher, m = e.x64, B = m.Word, C = m.WordArray, x = e.algo;
|
|
1791
1790
|
function n() {
|
|
1792
1791
|
return B.create.apply(B, arguments);
|
|
1793
1792
|
}
|
|
@@ -1877,7 +1876,7 @@ function we() {
|
|
|
1877
1876
|
for (var f = 0; f < 80; f++)
|
|
1878
1877
|
a[f] = n();
|
|
1879
1878
|
})();
|
|
1880
|
-
var s = x.SHA512 =
|
|
1879
|
+
var s = x.SHA512 = h.extend({
|
|
1881
1880
|
_doReset: function() {
|
|
1882
1881
|
this._hash = new C.init([
|
|
1883
1882
|
new B.init(1779033703, 4089235720),
|
|
@@ -1890,55 +1889,55 @@ function we() {
|
|
|
1890
1889
|
new B.init(1541459225, 327033209)
|
|
1891
1890
|
]);
|
|
1892
1891
|
},
|
|
1893
|
-
_doProcessBlock: function(f,
|
|
1894
|
-
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],
|
|
1895
|
-
var
|
|
1896
|
-
if (
|
|
1897
|
-
|
|
1892
|
+
_doProcessBlock: function(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, I = R, P = F, L = w, W = H, Z = $, Q = z, o0 = O, K = q, G = U, Y = T, r0 = N, c0 = j, g0 = S, v0 = c, dr = A, p0 = _, e0 = 0; e0 < 80; e0++) {
|
|
1894
|
+
var J, t0, b0 = a[e0];
|
|
1895
|
+
if (e0 < 16)
|
|
1896
|
+
t0 = b0.high = f[v + e0 * 2] | 0, J = b0.low = f[v + e0 * 2 + 1] | 0;
|
|
1898
1897
|
else {
|
|
1899
|
-
var Dr = a[
|
|
1900
|
-
|
|
1898
|
+
var Dr = a[e0 - 15], f0 = Dr.high, B0 = Dr.low, Re = (f0 >>> 1 | B0 << 31) ^ (f0 >>> 8 | B0 << 24) ^ f0 >>> 7, gr = (B0 >>> 1 | f0 << 31) ^ (B0 >>> 8 | f0 << 24) ^ (B0 >>> 7 | f0 << 25), br = a[e0 - 2], u0 = br.high, C0 = br.low, Pe = (u0 >>> 19 | C0 << 13) ^ (u0 << 3 | C0 >>> 29) ^ u0 >>> 6, mr = (C0 >>> 19 | u0 << 13) ^ (C0 << 3 | u0 >>> 29) ^ (C0 >>> 6 | u0 << 26), _r = a[e0 - 7], ze = _r.high, Ie = _r.low, yr = a[e0 - 16], We = yr.high, wr = yr.low;
|
|
1899
|
+
J = gr + Ie, t0 = Re + ze + (J >>> 0 < gr >>> 0 ? 1 : 0), J = J + mr, t0 = t0 + Pe + (J >>> 0 < mr >>> 0 ? 1 : 0), J = J + wr, t0 = t0 + We + (J >>> 0 < wr >>> 0 ? 1 : 0), b0.high = t0, b0.low = J;
|
|
1901
1900
|
}
|
|
1902
|
-
var Le = G &
|
|
1903
|
-
dr =
|
|
1901
|
+
var Le = G & r0 ^ ~G & g0, kr = Y & c0 ^ ~Y & v0, Oe = I & L ^ I & Z ^ L & Z, qe = P & W ^ P & Q ^ W & Q, Te = (I >>> 28 | P << 4) ^ (I << 30 | P >>> 2) ^ (I << 25 | P >>> 7), Sr = (P >>> 28 | I << 4) ^ (P << 30 | I >>> 2) ^ (P << 25 | I >>> 7), Me = (G >>> 14 | Y << 18) ^ (G >>> 18 | Y << 14) ^ (G << 23 | Y >>> 9), Ne = (Y >>> 14 | G << 18) ^ (Y >>> 18 | G << 14) ^ (Y << 23 | G >>> 9), Hr = E[e0], Ue = Hr.high, $r = Hr.low, V = p0 + Ne, x0 = dr + Me + (V >>> 0 < p0 >>> 0 ? 1 : 0), V = V + kr, x0 = x0 + Le + (V >>> 0 < kr >>> 0 ? 1 : 0), V = V + $r, x0 = x0 + Ue + (V >>> 0 < $r >>> 0 ? 1 : 0), V = V + J, x0 = x0 + t0 + (V >>> 0 < J >>> 0 ? 1 : 0), Rr = Sr + qe, je = Te + Oe + (Rr >>> 0 < Sr >>> 0 ? 1 : 0);
|
|
1902
|
+
dr = g0, p0 = v0, g0 = r0, v0 = c0, r0 = G, c0 = Y, Y = K + V | 0, G = o0 + x0 + (Y >>> 0 < K >>> 0 ? 1 : 0) | 0, o0 = Z, K = Q, Z = L, Q = W, L = I, W = P, P = V + Rr | 0, I = x0 + je + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1904
1903
|
}
|
|
1905
|
-
F = g.low = F + P, g.high =
|
|
1904
|
+
F = g.low = F + P, g.high = R + I + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + W, i.high = w + L + (H >>> 0 < W >>> 0 ? 1 : 0), z = o.low = z + Q, o.high = $ + Z + (z >>> 0 < Q >>> 0 ? 1 : 0), q = d.low = q + K, d.high = O + o0 + (q >>> 0 < K >>> 0 ? 1 : 0), T = b.low = T + Y, b.high = U + G + (T >>> 0 < Y >>> 0 ? 1 : 0), j = D.low = j + c0, D.high = N + r0 + (j >>> 0 < c0 >>> 0 ? 1 : 0), c = y.low = c + v0, y.high = S + g0 + (c >>> 0 < v0 >>> 0 ? 1 : 0), _ = k.low = _ + p0, k.high = A + dr + (_ >>> 0 < p0 >>> 0 ? 1 : 0);
|
|
1906
1905
|
},
|
|
1907
1906
|
_doFinalize: function() {
|
|
1908
|
-
var f = this._data,
|
|
1909
|
-
|
|
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();
|
|
1910
1909
|
var i = this._hash.toX32();
|
|
1911
1910
|
return i;
|
|
1912
1911
|
},
|
|
1913
1912
|
clone: function() {
|
|
1914
|
-
var f =
|
|
1913
|
+
var f = h.clone.call(this);
|
|
1915
1914
|
return f._hash = this._hash.clone(), f;
|
|
1916
1915
|
},
|
|
1917
1916
|
blockSize: 1024 / 32
|
|
1918
1917
|
});
|
|
1919
|
-
e.SHA512 =
|
|
1918
|
+
e.SHA512 = h._createHelper(s), e.HmacSHA512 = h._createHmacHelper(s);
|
|
1920
1919
|
})(), t.SHA512;
|
|
1921
1920
|
});
|
|
1922
|
-
})(
|
|
1921
|
+
})(L0)), L0.exports;
|
|
1923
1922
|
}
|
|
1924
|
-
var
|
|
1923
|
+
var O0 = { exports: {} }, kt = O0.exports, Xr;
|
|
1925
1924
|
function St() {
|
|
1926
|
-
return Xr || (Xr = 1, (function(r,
|
|
1925
|
+
return Xr || (Xr = 1, (function(r, p) {
|
|
1927
1926
|
(function(t, e, u) {
|
|
1928
1927
|
r.exports = e(M(), ur(), we());
|
|
1929
1928
|
})(kt, function(t) {
|
|
1930
1929
|
return (function() {
|
|
1931
|
-
var e = t, u = e.x64,
|
|
1930
|
+
var e = t, u = e.x64, h = u.Word, m = u.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1932
1931
|
_doReset: function() {
|
|
1933
1932
|
this._hash = new m.init([
|
|
1934
|
-
new
|
|
1935
|
-
new
|
|
1936
|
-
new
|
|
1937
|
-
new
|
|
1938
|
-
new
|
|
1939
|
-
new
|
|
1940
|
-
new
|
|
1941
|
-
new
|
|
1933
|
+
new h.init(3418070365, 3238371032),
|
|
1934
|
+
new h.init(1654270250, 914150663),
|
|
1935
|
+
new h.init(2438529370, 812702999),
|
|
1936
|
+
new h.init(355462360, 4144912697),
|
|
1937
|
+
new h.init(1731405415, 4290775857),
|
|
1938
|
+
new h.init(2394180231, 1750603025),
|
|
1939
|
+
new h.init(3675008525, 1694076839),
|
|
1940
|
+
new h.init(1203062813, 3204075428)
|
|
1942
1941
|
]);
|
|
1943
1942
|
},
|
|
1944
1943
|
_doFinalize: function() {
|
|
@@ -1949,16 +1948,16 @@ function St() {
|
|
|
1949
1948
|
e.SHA384 = C._createHelper(x), e.HmacSHA384 = C._createHmacHelper(x);
|
|
1950
1949
|
})(), t.SHA384;
|
|
1951
1950
|
});
|
|
1952
|
-
})(
|
|
1951
|
+
})(O0)), O0.exports;
|
|
1953
1952
|
}
|
|
1954
|
-
var
|
|
1955
|
-
function
|
|
1956
|
-
return Yr || (Yr = 1, (function(r,
|
|
1953
|
+
var q0 = { exports: {} }, Ht = q0.exports, Yr;
|
|
1954
|
+
function $t() {
|
|
1955
|
+
return Yr || (Yr = 1, (function(r, p) {
|
|
1957
1956
|
(function(t, e, u) {
|
|
1958
1957
|
r.exports = e(M(), ur());
|
|
1959
1958
|
})(Ht, function(t) {
|
|
1960
1959
|
return (function(e) {
|
|
1961
|
-
var u = t,
|
|
1960
|
+
var u = t, h = u.lib, m = h.WordArray, B = h.Hasher, C = u.x64, x = C.Word, n = u.algo, E = [], a = [], s = [];
|
|
1962
1961
|
(function() {
|
|
1963
1962
|
for (var l = 1, g = 0, i = 0; i < 24; i++) {
|
|
1964
1963
|
E[l + 5 * g] = (i + 1) * (i + 2) / 2 % 64;
|
|
@@ -1969,9 +1968,9 @@ function Rt() {
|
|
|
1969
1968
|
for (var g = 0; g < 5; g++)
|
|
1970
1969
|
a[l + 5 * g] = g + (2 * l + 3 * g) % 5 * 5;
|
|
1971
1970
|
for (var b = 1, D = 0; D < 24; D++) {
|
|
1972
|
-
for (var y = 0, k = 0,
|
|
1971
|
+
for (var y = 0, k = 0, R = 0; R < 7; R++) {
|
|
1973
1972
|
if (b & 1) {
|
|
1974
|
-
var F = (1 <<
|
|
1973
|
+
var F = (1 << R) - 1;
|
|
1975
1974
|
F < 32 ? k ^= 1 << F : y ^= 1 << F - 32;
|
|
1976
1975
|
}
|
|
1977
1976
|
b & 128 ? b = b << 1 ^ 113 : b <<= 1;
|
|
@@ -1984,7 +1983,7 @@ function Rt() {
|
|
|
1984
1983
|
for (var l = 0; l < 25; l++)
|
|
1985
1984
|
f[l] = x.create();
|
|
1986
1985
|
})();
|
|
1987
|
-
var
|
|
1986
|
+
var v = n.SHA3 = B.extend({
|
|
1988
1987
|
/**
|
|
1989
1988
|
* Configuration options.
|
|
1990
1989
|
*
|
|
@@ -2009,17 +2008,17 @@ function Rt() {
|
|
|
2009
2008
|
y.high ^= D, y.low ^= b;
|
|
2010
2009
|
}
|
|
2011
2010
|
for (var k = 0; k < 24; k++) {
|
|
2012
|
-
for (var
|
|
2011
|
+
for (var R = 0; R < 5; R++) {
|
|
2013
2012
|
for (var F = 0, w = 0, H = 0; H < 5; H++) {
|
|
2014
|
-
var y = i[
|
|
2013
|
+
var y = i[R + 5 * H];
|
|
2015
2014
|
F ^= y.high, w ^= y.low;
|
|
2016
2015
|
}
|
|
2017
|
-
var
|
|
2018
|
-
|
|
2016
|
+
var $ = f[R];
|
|
2017
|
+
$.high = F, $.low = w;
|
|
2019
2018
|
}
|
|
2020
|
-
for (var
|
|
2021
|
-
for (var z = f[(
|
|
2022
|
-
var y = i[
|
|
2019
|
+
for (var R = 0; R < 5; R++)
|
|
2020
|
+
for (var z = f[(R + 4) % 5], O = f[(R + 1) % 5], q = O.high, U = O.low, F = z.high ^ (q << 1 | U >>> 31), w = z.low ^ (U << 1 | q >>> 31), H = 0; H < 5; H++) {
|
|
2021
|
+
var y = i[R + 5 * H];
|
|
2023
2022
|
y.high ^= F, y.low ^= w;
|
|
2024
2023
|
}
|
|
2025
2024
|
for (var T = 1; T < 25; T++) {
|
|
@@ -2030,13 +2029,13 @@ function Rt() {
|
|
|
2030
2029
|
}
|
|
2031
2030
|
var A = f[0], _ = i[0];
|
|
2032
2031
|
A.high = _.high, A.low = _.low;
|
|
2033
|
-
for (var
|
|
2032
|
+
for (var R = 0; R < 5; R++)
|
|
2034
2033
|
for (var H = 0; H < 5; H++) {
|
|
2035
|
-
var T =
|
|
2036
|
-
y.high =
|
|
2034
|
+
var T = R + 5 * H, y = i[T], I = f[T], P = f[(R + 1) % 5 + 5 * H], L = f[(R + 2) % 5 + 5 * H];
|
|
2035
|
+
y.high = I.high ^ ~P.high & L.high, y.low = I.low ^ ~P.low & L.low;
|
|
2037
2036
|
}
|
|
2038
|
-
var y = i[0],
|
|
2039
|
-
y.high ^=
|
|
2037
|
+
var y = i[0], W = s[k];
|
|
2038
|
+
y.high ^= W.high, y.low ^= W.low;
|
|
2040
2039
|
}
|
|
2041
2040
|
},
|
|
2042
2041
|
_doFinalize: function() {
|
|
@@ -2045,7 +2044,7 @@ function Rt() {
|
|
|
2045
2044
|
var i = l.sigBytes * 8, o = this.blockSize * 32;
|
|
2046
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();
|
|
2047
2046
|
for (var d = this._state, b = this.cfg.outputLength / 8, D = b / 8, y = [], k = 0; k < D; k++) {
|
|
2048
|
-
var
|
|
2047
|
+
var R = d[k], F = R.high, w = R.low;
|
|
2049
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);
|
|
2050
2049
|
}
|
|
2051
2050
|
return new m.init(y, b);
|
|
@@ -2056,19 +2055,19 @@ function Rt() {
|
|
|
2056
2055
|
return l;
|
|
2057
2056
|
}
|
|
2058
2057
|
});
|
|
2059
|
-
u.SHA3 = B._createHelper(
|
|
2058
|
+
u.SHA3 = B._createHelper(v), u.HmacSHA3 = B._createHmacHelper(v);
|
|
2060
2059
|
})(Math), t.SHA3;
|
|
2061
2060
|
});
|
|
2062
|
-
})(
|
|
2061
|
+
})(q0)), q0.exports;
|
|
2063
2062
|
}
|
|
2064
|
-
var
|
|
2063
|
+
var T0 = { exports: {} }, Rt = T0.exports, Zr;
|
|
2065
2064
|
function Pt() {
|
|
2066
|
-
return Zr || (Zr = 1, (function(r,
|
|
2065
|
+
return Zr || (Zr = 1, (function(r, p) {
|
|
2067
2066
|
(function(t, e) {
|
|
2068
2067
|
r.exports = e(M());
|
|
2069
|
-
})(
|
|
2068
|
+
})(Rt, function(t) {
|
|
2070
2069
|
return (function(e) {
|
|
2071
|
-
var u = t,
|
|
2070
|
+
var u = t, h = u.lib, m = h.WordArray, B = h.Hasher, C = u.algo, x = m.create([
|
|
2072
2071
|
0,
|
|
2073
2072
|
1,
|
|
2074
2073
|
2,
|
|
@@ -2392,27 +2391,27 @@ function Pt() {
|
|
|
2392
2391
|
13,
|
|
2393
2392
|
11,
|
|
2394
2393
|
11
|
|
2395
|
-
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
|
|
2394
|
+
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), v = C.RIPEMD160 = B.extend({
|
|
2396
2395
|
_doReset: function() {
|
|
2397
2396
|
this._hash = m.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2398
2397
|
},
|
|
2399
2398
|
_doProcessBlock: function(D, y) {
|
|
2400
2399
|
for (var k = 0; k < 16; k++) {
|
|
2401
|
-
var
|
|
2402
|
-
D[
|
|
2400
|
+
var R = y + k, F = D[R];
|
|
2401
|
+
D[R] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2403
2402
|
}
|
|
2404
|
-
var w = this._hash.words, H = s.words,
|
|
2405
|
-
A = T = w[0], _ = N = w[1],
|
|
2406
|
-
for (var
|
|
2407
|
-
|
|
2408
|
-
|
|
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, _, I, P, L;
|
|
2404
|
+
A = T = w[0], _ = N = w[1], I = j = w[2], P = S = w[3], L = c = w[4];
|
|
2405
|
+
for (var W, k = 0; k < 80; k += 1)
|
|
2406
|
+
W = T + D[y + z[k]] | 0, k < 16 ? W += l(N, j, S) + H[0] : k < 32 ? W += g(N, j, S) + H[1] : k < 48 ? W += i(N, j, S) + H[2] : k < 64 ? W += o(N, j, S) + H[3] : W += d(N, j, S) + H[4], W = W | 0, W = b(W, q[k]), W = W + c | 0, T = c, c = S, S = b(j, 10), j = N, N = W, W = A + D[y + O[k]] | 0, k < 16 ? W += d(_, I, P) + $[0] : k < 32 ? W += o(_, I, P) + $[1] : k < 48 ? W += i(_, I, P) + $[2] : k < 64 ? W += g(_, I, P) + $[3] : W += l(_, I, P) + $[4], W = W | 0, W = b(W, U[k]), W = W + L | 0, A = L, L = P, P = b(I, 10), I = _, _ = W;
|
|
2407
|
+
W = 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 + I | 0, w[0] = W;
|
|
2409
2408
|
},
|
|
2410
2409
|
_doFinalize: function() {
|
|
2411
|
-
var D = this._data, y = D.words, k = this._nDataBytes * 8,
|
|
2412
|
-
y[
|
|
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();
|
|
2413
2412
|
for (var F = this._hash, w = F.words, H = 0; H < 5; H++) {
|
|
2414
|
-
var
|
|
2415
|
-
w[H] = (
|
|
2413
|
+
var $ = w[H];
|
|
2414
|
+
w[H] = ($ << 8 | $ >>> 24) & 16711935 | ($ << 24 | $ >>> 8) & 4278255360;
|
|
2416
2415
|
}
|
|
2417
2416
|
return F;
|
|
2418
2417
|
},
|
|
@@ -2439,20 +2438,20 @@ function Pt() {
|
|
|
2439
2438
|
function b(D, y) {
|
|
2440
2439
|
return D << y | D >>> 32 - y;
|
|
2441
2440
|
}
|
|
2442
|
-
u.RIPEMD160 = B._createHelper(
|
|
2441
|
+
u.RIPEMD160 = B._createHelper(v), u.HmacRIPEMD160 = B._createHmacHelper(v);
|
|
2443
2442
|
})(), t.RIPEMD160;
|
|
2444
2443
|
});
|
|
2445
|
-
})(
|
|
2444
|
+
})(T0)), T0.exports;
|
|
2446
2445
|
}
|
|
2447
|
-
var
|
|
2446
|
+
var M0 = { exports: {} }, zt = M0.exports, Qr;
|
|
2448
2447
|
function Ar() {
|
|
2449
|
-
return Qr || (Qr = 1, (function(r,
|
|
2448
|
+
return Qr || (Qr = 1, (function(r, p) {
|
|
2450
2449
|
(function(t, e) {
|
|
2451
2450
|
r.exports = e(M());
|
|
2452
2451
|
})(zt, function(t) {
|
|
2453
2452
|
(function() {
|
|
2454
|
-
var e = t, u = e.lib,
|
|
2455
|
-
C.HMAC =
|
|
2453
|
+
var e = t, u = e.lib, h = u.Base, m = e.enc, B = m.Utf8, C = e.algo;
|
|
2454
|
+
C.HMAC = h.extend({
|
|
2456
2455
|
/**
|
|
2457
2456
|
* Initializes a newly created HMAC.
|
|
2458
2457
|
*
|
|
@@ -2467,8 +2466,8 @@ function Ar() {
|
|
|
2467
2466
|
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2468
2467
|
var E = x.blockSize, a = E * 4;
|
|
2469
2468
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2470
|
-
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(),
|
|
2471
|
-
|
|
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;
|
|
2472
2471
|
s.sigBytes = f.sigBytes = a, this.reset();
|
|
2473
2472
|
},
|
|
2474
2473
|
/**
|
|
@@ -2520,16 +2519,16 @@ function Ar() {
|
|
|
2520
2519
|
});
|
|
2521
2520
|
})();
|
|
2522
2521
|
});
|
|
2523
|
-
})(
|
|
2522
|
+
})(M0)), M0.exports;
|
|
2524
2523
|
}
|
|
2525
|
-
var
|
|
2526
|
-
function
|
|
2527
|
-
return Vr || (Vr = 1, (function(r,
|
|
2524
|
+
var N0 = { exports: {} }, It = N0.exports, Vr;
|
|
2525
|
+
function Wt() {
|
|
2526
|
+
return Vr || (Vr = 1, (function(r, p) {
|
|
2528
2527
|
(function(t, e, u) {
|
|
2529
2528
|
r.exports = e(M(), Er(), Ar());
|
|
2530
|
-
})(
|
|
2529
|
+
})(It, function(t) {
|
|
2531
2530
|
return (function() {
|
|
2532
|
-
var e = t, u = e.lib,
|
|
2531
|
+
var e = t, u = e.lib, h = u.Base, m = u.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = h.extend({
|
|
2533
2532
|
/**
|
|
2534
2533
|
* Configuration options.
|
|
2535
2534
|
*
|
|
@@ -2537,7 +2536,7 @@ function It() {
|
|
|
2537
2536
|
* @property {Hasher} hasher The hasher to use. Default: SHA256
|
|
2538
2537
|
* @property {number} iterations The number of iterations to perform. Default: 250000
|
|
2539
2538
|
*/
|
|
2540
|
-
cfg:
|
|
2539
|
+
cfg: h.extend({
|
|
2541
2540
|
keySize: 128 / 32,
|
|
2542
2541
|
hasher: C,
|
|
2543
2542
|
iterations: 25e4
|
|
@@ -2569,17 +2568,17 @@ function It() {
|
|
|
2569
2568
|
* var key = kdf.compute(password, salt);
|
|
2570
2569
|
*/
|
|
2571
2570
|
compute: function(E, a) {
|
|
2572
|
-
for (var s = this.cfg, f = x.create(s.hasher, E),
|
|
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; ) {
|
|
2573
2572
|
var b = f.update(a).finalize(l);
|
|
2574
2573
|
f.reset();
|
|
2575
|
-
for (var D = b.words, y = D.length, k = b,
|
|
2574
|
+
for (var D = b.words, y = D.length, k = b, R = 1; R < d; R++) {
|
|
2576
2575
|
k = f.finalize(k), f.reset();
|
|
2577
2576
|
for (var F = k.words, w = 0; w < y; w++)
|
|
2578
2577
|
D[w] ^= F[w];
|
|
2579
2578
|
}
|
|
2580
|
-
|
|
2579
|
+
v.concat(b), i[0]++;
|
|
2581
2580
|
}
|
|
2582
|
-
return
|
|
2581
|
+
return v.sigBytes = o * 4, v;
|
|
2583
2582
|
}
|
|
2584
2583
|
});
|
|
2585
2584
|
e.PBKDF2 = function(E, a, s) {
|
|
@@ -2587,16 +2586,16 @@ function It() {
|
|
|
2587
2586
|
};
|
|
2588
2587
|
})(), t.PBKDF2;
|
|
2589
2588
|
});
|
|
2590
|
-
})(
|
|
2589
|
+
})(N0)), N0.exports;
|
|
2591
2590
|
}
|
|
2592
|
-
var
|
|
2591
|
+
var U0 = { exports: {} }, Lt = U0.exports, Jr;
|
|
2593
2592
|
function a0() {
|
|
2594
|
-
return Jr || (Jr = 1, (function(r,
|
|
2593
|
+
return Jr || (Jr = 1, (function(r, p) {
|
|
2595
2594
|
(function(t, e, u) {
|
|
2596
2595
|
r.exports = e(M(), ye(), Ar());
|
|
2597
2596
|
})(Lt, function(t) {
|
|
2598
2597
|
return (function() {
|
|
2599
|
-
var e = t, u = e.lib,
|
|
2598
|
+
var e = t, u = e.lib, h = u.Base, m = u.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = h.extend({
|
|
2600
2599
|
/**
|
|
2601
2600
|
* Configuration options.
|
|
2602
2601
|
*
|
|
@@ -2604,7 +2603,7 @@ function a0() {
|
|
|
2604
2603
|
* @property {Hasher} hasher The hash algorithm to use. Default: MD5
|
|
2605
2604
|
* @property {number} iterations The number of iterations to perform. Default: 1
|
|
2606
2605
|
*/
|
|
2607
|
-
cfg:
|
|
2606
|
+
cfg: h.extend({
|
|
2608
2607
|
keySize: 128 / 32,
|
|
2609
2608
|
hasher: C,
|
|
2610
2609
|
iterations: 1
|
|
@@ -2636,13 +2635,13 @@ function a0() {
|
|
|
2636
2635
|
* var key = kdf.compute(password, salt);
|
|
2637
2636
|
*/
|
|
2638
2637
|
compute: function(n, E) {
|
|
2639
|
-
for (var a, s = this.cfg, f = s.hasher.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; ) {
|
|
2640
2639
|
a && f.update(a), a = f.update(n).finalize(E), f.reset();
|
|
2641
2640
|
for (var o = 1; o < i; o++)
|
|
2642
2641
|
a = f.finalize(a), f.reset();
|
|
2643
|
-
|
|
2642
|
+
v.concat(a);
|
|
2644
2643
|
}
|
|
2645
|
-
return
|
|
2644
|
+
return v.sigBytes = g * 4, v;
|
|
2646
2645
|
}
|
|
2647
2646
|
});
|
|
2648
2647
|
e.EvpKDF = function(n, E, a) {
|
|
@@ -2650,18 +2649,18 @@ function a0() {
|
|
|
2650
2649
|
};
|
|
2651
2650
|
})(), t.EvpKDF;
|
|
2652
2651
|
});
|
|
2653
|
-
})(
|
|
2652
|
+
})(U0)), U0.exports;
|
|
2654
2653
|
}
|
|
2655
|
-
var
|
|
2654
|
+
var j0 = { exports: {} }, Ot = j0.exports, re;
|
|
2656
2655
|
function X() {
|
|
2657
|
-
return re || (re = 1, (function(r,
|
|
2656
|
+
return re || (re = 1, (function(r, p) {
|
|
2658
2657
|
(function(t, e, u) {
|
|
2659
2658
|
r.exports = e(M(), a0());
|
|
2660
2659
|
})(Ot, function(t) {
|
|
2661
2660
|
t.lib.Cipher || (function(e) {
|
|
2662
|
-
var u = t,
|
|
2661
|
+
var u = t, h = u.lib, m = h.Base, B = h.WordArray, C = h.BufferedBlockAlgorithm, x = u.enc;
|
|
2663
2662
|
x.Utf8;
|
|
2664
|
-
var n = x.Base64, E = u.algo, a = E.EvpKDF, s =
|
|
2663
|
+
var n = x.Base64, E = u.algo, a = E.EvpKDF, s = h.Cipher = C.extend({
|
|
2665
2664
|
/**
|
|
2666
2665
|
* Configuration options.
|
|
2667
2666
|
*
|
|
@@ -2779,28 +2778,28 @@ function X() {
|
|
|
2779
2778
|
*/
|
|
2780
2779
|
_createHelper: /* @__PURE__ */ (function() {
|
|
2781
2780
|
function F(w) {
|
|
2782
|
-
return typeof w == "string" ?
|
|
2781
|
+
return typeof w == "string" ? R : D;
|
|
2783
2782
|
}
|
|
2784
2783
|
return function(w) {
|
|
2785
2784
|
return {
|
|
2786
|
-
encrypt: function(H,
|
|
2787
|
-
return F(
|
|
2785
|
+
encrypt: function(H, $, z) {
|
|
2786
|
+
return F($).encrypt(w, H, $, z);
|
|
2788
2787
|
},
|
|
2789
|
-
decrypt: function(H,
|
|
2790
|
-
return F(
|
|
2788
|
+
decrypt: function(H, $, z) {
|
|
2789
|
+
return F($).decrypt(w, H, $, z);
|
|
2791
2790
|
}
|
|
2792
2791
|
};
|
|
2793
2792
|
};
|
|
2794
2793
|
})()
|
|
2795
2794
|
});
|
|
2796
|
-
|
|
2795
|
+
h.StreamCipher = s.extend({
|
|
2797
2796
|
_doFinalize: function() {
|
|
2798
2797
|
var F = this._process(!0);
|
|
2799
2798
|
return F;
|
|
2800
2799
|
},
|
|
2801
2800
|
blockSize: 1
|
|
2802
2801
|
});
|
|
2803
|
-
var f = u.mode = {},
|
|
2802
|
+
var f = u.mode = {}, v = h.BlockCipherMode = m.extend({
|
|
2804
2803
|
/**
|
|
2805
2804
|
* Creates this mode for encryption.
|
|
2806
2805
|
*
|
|
@@ -2845,7 +2844,7 @@ function X() {
|
|
|
2845
2844
|
this._cipher = F, this._iv = w;
|
|
2846
2845
|
}
|
|
2847
2846
|
}), l = f.CBC = (function() {
|
|
2848
|
-
var F =
|
|
2847
|
+
var F = v.extend();
|
|
2849
2848
|
F.Encryptor = F.extend({
|
|
2850
2849
|
/**
|
|
2851
2850
|
* Processes the data block at offset.
|
|
@@ -2857,9 +2856,9 @@ function X() {
|
|
|
2857
2856
|
*
|
|
2858
2857
|
* mode.processBlock(data.words, offset);
|
|
2859
2858
|
*/
|
|
2860
|
-
processBlock: function(H,
|
|
2859
|
+
processBlock: function(H, $) {
|
|
2861
2860
|
var z = this._cipher, O = z.blockSize;
|
|
2862
|
-
w.call(this, H,
|
|
2861
|
+
w.call(this, H, $, O), z.encryptBlock(H, $), this._prevBlock = H.slice($, $ + O);
|
|
2863
2862
|
}
|
|
2864
2863
|
}), F.Decryptor = F.extend({
|
|
2865
2864
|
/**
|
|
@@ -2872,16 +2871,16 @@ function X() {
|
|
|
2872
2871
|
*
|
|
2873
2872
|
* mode.processBlock(data.words, offset);
|
|
2874
2873
|
*/
|
|
2875
|
-
processBlock: function(H,
|
|
2876
|
-
var z = this._cipher, O = z.blockSize, q = H.slice(
|
|
2877
|
-
z.decryptBlock(H,
|
|
2874
|
+
processBlock: function(H, $) {
|
|
2875
|
+
var z = this._cipher, O = z.blockSize, q = H.slice($, $ + O);
|
|
2876
|
+
z.decryptBlock(H, $), w.call(this, H, $, O), this._prevBlock = q;
|
|
2878
2877
|
}
|
|
2879
2878
|
});
|
|
2880
|
-
function w(H,
|
|
2879
|
+
function w(H, $, z) {
|
|
2881
2880
|
var O, q = this._iv;
|
|
2882
2881
|
q ? (O = q, this._iv = e) : O = this._prevBlock;
|
|
2883
2882
|
for (var U = 0; U < z; U++)
|
|
2884
|
-
H[
|
|
2883
|
+
H[$ + U] ^= O[U];
|
|
2885
2884
|
}
|
|
2886
2885
|
return F;
|
|
2887
2886
|
})(), g = u.pad = {}, i = g.Pkcs7 = {
|
|
@@ -2898,9 +2897,9 @@ function X() {
|
|
|
2898
2897
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
2899
2898
|
*/
|
|
2900
2899
|
pad: function(F, w) {
|
|
2901
|
-
for (var H = w * 4,
|
|
2900
|
+
for (var H = w * 4, $ = H - F.sigBytes % H, z = $ << 24 | $ << 16 | $ << 8 | $, O = [], q = 0; q < $; q += 4)
|
|
2902
2901
|
O.push(z);
|
|
2903
|
-
var U = B.create(O,
|
|
2902
|
+
var U = B.create(O, $);
|
|
2904
2903
|
F.concat(U);
|
|
2905
2904
|
},
|
|
2906
2905
|
/**
|
|
@@ -2919,7 +2918,7 @@ function X() {
|
|
|
2919
2918
|
F.sigBytes -= w;
|
|
2920
2919
|
}
|
|
2921
2920
|
};
|
|
2922
|
-
|
|
2921
|
+
h.BlockCipher = s.extend({
|
|
2923
2922
|
/**
|
|
2924
2923
|
* Configuration options.
|
|
2925
2924
|
*
|
|
@@ -2933,8 +2932,8 @@ function X() {
|
|
|
2933
2932
|
reset: function() {
|
|
2934
2933
|
var F;
|
|
2935
2934
|
s.reset.call(this);
|
|
2936
|
-
var w = this.cfg, H = w.iv,
|
|
2937
|
-
this._xformMode == this._ENC_XFORM_MODE ? F =
|
|
2935
|
+
var w = this.cfg, H = w.iv, $ = w.mode;
|
|
2936
|
+
this._xformMode == this._ENC_XFORM_MODE ? F = $.createEncryptor : (F = $.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == F ? this._mode.init(this, H && H.words) : (this._mode = F.call($, this, H && H.words), this._mode.__creator = F);
|
|
2938
2937
|
},
|
|
2939
2938
|
_doProcessBlock: function(F, w) {
|
|
2940
2939
|
this._mode.processBlock(F, w);
|
|
@@ -2945,7 +2944,7 @@ function X() {
|
|
|
2945
2944
|
},
|
|
2946
2945
|
blockSize: 128 / 32
|
|
2947
2946
|
});
|
|
2948
|
-
var o =
|
|
2947
|
+
var o = h.CipherParams = m.extend({
|
|
2949
2948
|
/**
|
|
2950
2949
|
* Initializes a newly created cipher params object.
|
|
2951
2950
|
*
|
|
@@ -3001,8 +3000,8 @@ function X() {
|
|
|
3001
3000
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
3002
3001
|
*/
|
|
3003
3002
|
stringify: function(F) {
|
|
3004
|
-
var w, H = F.ciphertext,
|
|
3005
|
-
return
|
|
3003
|
+
var w, H = F.ciphertext, $ = F.salt;
|
|
3004
|
+
return $ ? w = B.create([1398893684, 1701076831]).concat($).concat(H) : w = H, w.toString(n);
|
|
3006
3005
|
},
|
|
3007
3006
|
/**
|
|
3008
3007
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3018,10 +3017,10 @@ function X() {
|
|
|
3018
3017
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
3019
3018
|
*/
|
|
3020
3019
|
parse: function(F) {
|
|
3021
|
-
var w, H = n.parse(F),
|
|
3022
|
-
return
|
|
3020
|
+
var w, H = n.parse(F), $ = H.words;
|
|
3021
|
+
return $[0] == 1398893684 && $[1] == 1701076831 && (w = B.create($.slice(2, 4)), $.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3023
3022
|
}
|
|
3024
|
-
}, D =
|
|
3023
|
+
}, D = h.SerializableCipher = m.extend({
|
|
3025
3024
|
/**
|
|
3026
3025
|
* Configuration options.
|
|
3027
3026
|
*
|
|
@@ -3048,9 +3047,9 @@ function X() {
|
|
|
3048
3047
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
3049
3048
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3050
3049
|
*/
|
|
3051
|
-
encrypt: function(F, w, H,
|
|
3052
|
-
|
|
3053
|
-
var z = F.createEncryptor(H,
|
|
3050
|
+
encrypt: function(F, w, H, $) {
|
|
3051
|
+
$ = this.cfg.extend($);
|
|
3052
|
+
var z = F.createEncryptor(H, $), O = z.finalize(w), q = z.cfg;
|
|
3054
3053
|
return o.create({
|
|
3055
3054
|
ciphertext: O,
|
|
3056
3055
|
key: H,
|
|
@@ -3059,7 +3058,7 @@ function X() {
|
|
|
3059
3058
|
mode: q.mode,
|
|
3060
3059
|
padding: q.padding,
|
|
3061
3060
|
blockSize: F.blockSize,
|
|
3062
|
-
formatter:
|
|
3061
|
+
formatter: $.format
|
|
3063
3062
|
});
|
|
3064
3063
|
},
|
|
3065
3064
|
/**
|
|
@@ -3079,9 +3078,9 @@ function X() {
|
|
|
3079
3078
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3080
3079
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3081
3080
|
*/
|
|
3082
|
-
decrypt: function(F, w, H,
|
|
3083
|
-
|
|
3084
|
-
var z = F.createDecryptor(H,
|
|
3081
|
+
decrypt: function(F, w, H, $) {
|
|
3082
|
+
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3083
|
+
var z = F.createDecryptor(H, $).finalize(w.ciphertext);
|
|
3085
3084
|
return z;
|
|
3086
3085
|
},
|
|
3087
3086
|
/**
|
|
@@ -3120,15 +3119,15 @@ function X() {
|
|
|
3120
3119
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3121
3120
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3122
3121
|
*/
|
|
3123
|
-
execute: function(F, w, H,
|
|
3124
|
-
if (
|
|
3125
|
-
var O = a.create({ keySize: w + H, hasher: z }).compute(F,
|
|
3122
|
+
execute: function(F, w, H, $, z) {
|
|
3123
|
+
if ($ || ($ = B.random(64 / 8)), z)
|
|
3124
|
+
var O = a.create({ keySize: w + H, hasher: z }).compute(F, $);
|
|
3126
3125
|
else
|
|
3127
|
-
var O = a.create({ keySize: w + H }).compute(F,
|
|
3126
|
+
var O = a.create({ keySize: w + H }).compute(F, $);
|
|
3128
3127
|
var q = B.create(O.words.slice(w), H * 4);
|
|
3129
|
-
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt:
|
|
3128
|
+
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt: $ });
|
|
3130
3129
|
}
|
|
3131
|
-
},
|
|
3130
|
+
}, R = h.PasswordBasedCipher = D.extend({
|
|
3132
3131
|
/**
|
|
3133
3132
|
* Configuration options.
|
|
3134
3133
|
*
|
|
@@ -3154,11 +3153,11 @@ function X() {
|
|
|
3154
3153
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
3155
3154
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3156
3155
|
*/
|
|
3157
|
-
encrypt: function(F, w, H,
|
|
3158
|
-
|
|
3159
|
-
var z =
|
|
3160
|
-
|
|
3161
|
-
var O = D.encrypt.call(this, F, w, z.key,
|
|
3156
|
+
encrypt: function(F, w, H, $) {
|
|
3157
|
+
$ = this.cfg.extend($);
|
|
3158
|
+
var z = $.kdf.execute(H, F.keySize, F.ivSize, $.salt, $.hasher);
|
|
3159
|
+
$.iv = z.iv;
|
|
3160
|
+
var O = D.encrypt.call(this, F, w, z.key, $);
|
|
3162
3161
|
return O.mixIn(z), O;
|
|
3163
3162
|
},
|
|
3164
3163
|
/**
|
|
@@ -3178,73 +3177,73 @@ function X() {
|
|
|
3178
3177
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3179
3178
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3180
3179
|
*/
|
|
3181
|
-
decrypt: function(F, w, H,
|
|
3182
|
-
|
|
3183
|
-
var z =
|
|
3184
|
-
|
|
3185
|
-
var O = D.decrypt.call(this, F, w, z.key,
|
|
3180
|
+
decrypt: function(F, w, H, $) {
|
|
3181
|
+
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3182
|
+
var z = $.kdf.execute(H, F.keySize, F.ivSize, w.salt, $.hasher);
|
|
3183
|
+
$.iv = z.iv;
|
|
3184
|
+
var O = D.decrypt.call(this, F, w, z.key, $);
|
|
3186
3185
|
return O;
|
|
3187
3186
|
}
|
|
3188
3187
|
});
|
|
3189
3188
|
})();
|
|
3190
3189
|
});
|
|
3191
|
-
})(
|
|
3190
|
+
})(j0)), j0.exports;
|
|
3192
3191
|
}
|
|
3193
|
-
var
|
|
3192
|
+
var G0 = { exports: {} }, qt = G0.exports, ee;
|
|
3194
3193
|
function Tt() {
|
|
3195
|
-
return ee || (ee = 1, (function(r,
|
|
3194
|
+
return ee || (ee = 1, (function(r, p) {
|
|
3196
3195
|
(function(t, e, u) {
|
|
3197
3196
|
r.exports = e(M(), X());
|
|
3198
3197
|
})(qt, function(t) {
|
|
3199
3198
|
return t.mode.CFB = (function() {
|
|
3200
3199
|
var e = t.lib.BlockCipherMode.extend();
|
|
3201
3200
|
e.Encryptor = e.extend({
|
|
3202
|
-
processBlock: function(
|
|
3201
|
+
processBlock: function(h, m) {
|
|
3203
3202
|
var B = this._cipher, C = B.blockSize;
|
|
3204
|
-
u.call(this,
|
|
3203
|
+
u.call(this, h, m, C, B), this._prevBlock = h.slice(m, m + C);
|
|
3205
3204
|
}
|
|
3206
3205
|
}), e.Decryptor = e.extend({
|
|
3207
|
-
processBlock: function(
|
|
3208
|
-
var B = this._cipher, C = B.blockSize, x =
|
|
3209
|
-
u.call(this,
|
|
3206
|
+
processBlock: function(h, m) {
|
|
3207
|
+
var B = this._cipher, C = B.blockSize, x = h.slice(m, m + C);
|
|
3208
|
+
u.call(this, h, m, C, B), this._prevBlock = x;
|
|
3210
3209
|
}
|
|
3211
3210
|
});
|
|
3212
|
-
function u(
|
|
3211
|
+
function u(h, m, B, C) {
|
|
3213
3212
|
var x, n = this._iv;
|
|
3214
3213
|
n ? (x = n.slice(0), this._iv = void 0) : x = this._prevBlock, C.encryptBlock(x, 0);
|
|
3215
3214
|
for (var E = 0; E < B; E++)
|
|
3216
|
-
|
|
3215
|
+
h[m + E] ^= x[E];
|
|
3217
3216
|
}
|
|
3218
3217
|
return e;
|
|
3219
3218
|
})(), t.mode.CFB;
|
|
3220
3219
|
});
|
|
3221
|
-
})(
|
|
3220
|
+
})(G0)), G0.exports;
|
|
3222
3221
|
}
|
|
3223
|
-
var
|
|
3222
|
+
var K0 = { exports: {} }, Mt = K0.exports, te;
|
|
3224
3223
|
function Nt() {
|
|
3225
|
-
return te || (te = 1, (function(r,
|
|
3224
|
+
return te || (te = 1, (function(r, p) {
|
|
3226
3225
|
(function(t, e, u) {
|
|
3227
3226
|
r.exports = e(M(), X());
|
|
3228
3227
|
})(Mt, function(t) {
|
|
3229
3228
|
return t.mode.CTR = (function() {
|
|
3230
3229
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3231
|
-
processBlock: function(
|
|
3230
|
+
processBlock: function(h, m) {
|
|
3232
3231
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._counter;
|
|
3233
3232
|
x && (n = this._counter = x.slice(0), this._iv = void 0);
|
|
3234
3233
|
var E = n.slice(0);
|
|
3235
3234
|
B.encryptBlock(E, 0), n[C - 1] = n[C - 1] + 1 | 0;
|
|
3236
3235
|
for (var a = 0; a < C; a++)
|
|
3237
|
-
|
|
3236
|
+
h[m + a] ^= E[a];
|
|
3238
3237
|
}
|
|
3239
3238
|
});
|
|
3240
3239
|
return e.Decryptor = u, e;
|
|
3241
3240
|
})(), t.mode.CTR;
|
|
3242
3241
|
});
|
|
3243
|
-
})(
|
|
3242
|
+
})(K0)), K0.exports;
|
|
3244
3243
|
}
|
|
3245
|
-
var
|
|
3244
|
+
var X0 = { exports: {} }, Ut = X0.exports, xe;
|
|
3246
3245
|
function jt() {
|
|
3247
|
-
return xe || (xe = 1, (function(r,
|
|
3246
|
+
return xe || (xe = 1, (function(r, p) {
|
|
3248
3247
|
(function(t, e, u) {
|
|
3249
3248
|
r.exports = e(M(), X());
|
|
3250
3249
|
})(Ut, function(t) {
|
|
@@ -3258,13 +3257,13 @@ function jt() {
|
|
|
3258
3257
|
B += 1 << 24;
|
|
3259
3258
|
return B;
|
|
3260
3259
|
}
|
|
3261
|
-
function
|
|
3260
|
+
function h(B) {
|
|
3262
3261
|
return (B[0] = u(B[0])) === 0 && (B[1] = u(B[1])), B;
|
|
3263
3262
|
}
|
|
3264
3263
|
var m = e.Encryptor = e.extend({
|
|
3265
3264
|
processBlock: function(B, C) {
|
|
3266
3265
|
var x = this._cipher, n = x.blockSize, E = this._iv, a = this._counter;
|
|
3267
|
-
E && (a = this._counter = E.slice(0), this._iv = void 0),
|
|
3266
|
+
E && (a = this._counter = E.slice(0), this._iv = void 0), h(a);
|
|
3268
3267
|
var s = a.slice(0);
|
|
3269
3268
|
x.encryptBlock(s, 0);
|
|
3270
3269
|
for (var f = 0; f < n; f++)
|
|
@@ -3274,58 +3273,58 @@ function jt() {
|
|
|
3274
3273
|
return e.Decryptor = m, e;
|
|
3275
3274
|
})(), t.mode.CTRGladman;
|
|
3276
3275
|
});
|
|
3277
|
-
})(
|
|
3276
|
+
})(X0)), X0.exports;
|
|
3278
3277
|
}
|
|
3279
|
-
var
|
|
3278
|
+
var Y0 = { exports: {} }, Gt = Y0.exports, ne;
|
|
3280
3279
|
function Kt() {
|
|
3281
|
-
return ne || (ne = 1, (function(r,
|
|
3280
|
+
return ne || (ne = 1, (function(r, p) {
|
|
3282
3281
|
(function(t, e, u) {
|
|
3283
3282
|
r.exports = e(M(), X());
|
|
3284
3283
|
})(Gt, function(t) {
|
|
3285
3284
|
return t.mode.OFB = (function() {
|
|
3286
3285
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3287
|
-
processBlock: function(
|
|
3286
|
+
processBlock: function(h, m) {
|
|
3288
3287
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._keystream;
|
|
3289
3288
|
x && (n = this._keystream = x.slice(0), this._iv = void 0), B.encryptBlock(n, 0);
|
|
3290
3289
|
for (var E = 0; E < C; E++)
|
|
3291
|
-
|
|
3290
|
+
h[m + E] ^= n[E];
|
|
3292
3291
|
}
|
|
3293
3292
|
});
|
|
3294
3293
|
return e.Decryptor = u, e;
|
|
3295
3294
|
})(), t.mode.OFB;
|
|
3296
3295
|
});
|
|
3297
|
-
})(
|
|
3296
|
+
})(Y0)), Y0.exports;
|
|
3298
3297
|
}
|
|
3299
|
-
var
|
|
3298
|
+
var Z0 = { exports: {} }, Xt = Z0.exports, ae;
|
|
3300
3299
|
function Yt() {
|
|
3301
|
-
return ae || (ae = 1, (function(r,
|
|
3300
|
+
return ae || (ae = 1, (function(r, p) {
|
|
3302
3301
|
(function(t, e, u) {
|
|
3303
3302
|
r.exports = e(M(), X());
|
|
3304
3303
|
})(Xt, function(t) {
|
|
3305
3304
|
return t.mode.ECB = (function() {
|
|
3306
3305
|
var e = t.lib.BlockCipherMode.extend();
|
|
3307
3306
|
return e.Encryptor = e.extend({
|
|
3308
|
-
processBlock: function(u,
|
|
3309
|
-
this._cipher.encryptBlock(u,
|
|
3307
|
+
processBlock: function(u, h) {
|
|
3308
|
+
this._cipher.encryptBlock(u, h);
|
|
3310
3309
|
}
|
|
3311
3310
|
}), e.Decryptor = e.extend({
|
|
3312
|
-
processBlock: function(u,
|
|
3313
|
-
this._cipher.decryptBlock(u,
|
|
3311
|
+
processBlock: function(u, h) {
|
|
3312
|
+
this._cipher.decryptBlock(u, h);
|
|
3314
3313
|
}
|
|
3315
3314
|
}), e;
|
|
3316
3315
|
})(), t.mode.ECB;
|
|
3317
3316
|
});
|
|
3318
|
-
})(
|
|
3317
|
+
})(Z0)), Z0.exports;
|
|
3319
3318
|
}
|
|
3320
|
-
var
|
|
3319
|
+
var Q0 = { exports: {} }, Zt = Q0.exports, oe;
|
|
3321
3320
|
function Qt() {
|
|
3322
|
-
return oe || (oe = 1, (function(r,
|
|
3321
|
+
return oe || (oe = 1, (function(r, p) {
|
|
3323
3322
|
(function(t, e, u) {
|
|
3324
3323
|
r.exports = e(M(), X());
|
|
3325
3324
|
})(Zt, function(t) {
|
|
3326
3325
|
return t.pad.AnsiX923 = {
|
|
3327
3326
|
pad: function(e, u) {
|
|
3328
|
-
var
|
|
3327
|
+
var h = e.sigBytes, m = u * 4, B = m - h % m, C = h + B - 1;
|
|
3329
3328
|
e.clamp(), e.words[C >>> 2] |= B << 24 - C % 4 * 8, e.sigBytes += B;
|
|
3330
3329
|
},
|
|
3331
3330
|
unpad: function(e) {
|
|
@@ -3334,17 +3333,17 @@ function Qt() {
|
|
|
3334
3333
|
}
|
|
3335
3334
|
}, t.pad.Ansix923;
|
|
3336
3335
|
});
|
|
3337
|
-
})(
|
|
3336
|
+
})(Q0)), Q0.exports;
|
|
3338
3337
|
}
|
|
3339
|
-
var
|
|
3338
|
+
var V0 = { exports: {} }, Vt = V0.exports, ie;
|
|
3340
3339
|
function Jt() {
|
|
3341
|
-
return ie || (ie = 1, (function(r,
|
|
3340
|
+
return ie || (ie = 1, (function(r, p) {
|
|
3342
3341
|
(function(t, e, u) {
|
|
3343
3342
|
r.exports = e(M(), X());
|
|
3344
3343
|
})(Vt, function(t) {
|
|
3345
3344
|
return t.pad.Iso10126 = {
|
|
3346
3345
|
pad: function(e, u) {
|
|
3347
|
-
var
|
|
3346
|
+
var h = u * 4, m = h - e.sigBytes % h;
|
|
3348
3347
|
e.concat(t.lib.WordArray.random(m - 1)).concat(t.lib.WordArray.create([m << 24], 1));
|
|
3349
3348
|
},
|
|
3350
3349
|
unpad: function(e) {
|
|
@@ -3353,11 +3352,11 @@ function Jt() {
|
|
|
3353
3352
|
}
|
|
3354
3353
|
}, t.pad.Iso10126;
|
|
3355
3354
|
});
|
|
3356
|
-
})(
|
|
3355
|
+
})(V0)), V0.exports;
|
|
3357
3356
|
}
|
|
3358
|
-
var
|
|
3357
|
+
var J0 = { exports: {} }, rx = J0.exports, se;
|
|
3359
3358
|
function ex() {
|
|
3360
|
-
return se || (se = 1, (function(r,
|
|
3359
|
+
return se || (se = 1, (function(r, p) {
|
|
3361
3360
|
(function(t, e, u) {
|
|
3362
3361
|
r.exports = e(M(), X());
|
|
3363
3362
|
})(rx, function(t) {
|
|
@@ -3370,33 +3369,33 @@ function ex() {
|
|
|
3370
3369
|
}
|
|
3371
3370
|
}, t.pad.Iso97971;
|
|
3372
3371
|
});
|
|
3373
|
-
})(
|
|
3372
|
+
})(J0)), J0.exports;
|
|
3374
3373
|
}
|
|
3375
|
-
var
|
|
3374
|
+
var rr = { exports: {} }, tx = rr.exports, ce;
|
|
3376
3375
|
function xx() {
|
|
3377
|
-
return ce || (ce = 1, (function(r,
|
|
3376
|
+
return ce || (ce = 1, (function(r, p) {
|
|
3378
3377
|
(function(t, e, u) {
|
|
3379
3378
|
r.exports = e(M(), X());
|
|
3380
3379
|
})(tx, function(t) {
|
|
3381
3380
|
return t.pad.ZeroPadding = {
|
|
3382
3381
|
pad: function(e, u) {
|
|
3383
|
-
var
|
|
3384
|
-
e.clamp(), e.sigBytes +=
|
|
3382
|
+
var h = u * 4;
|
|
3383
|
+
e.clamp(), e.sigBytes += h - (e.sigBytes % h || h);
|
|
3385
3384
|
},
|
|
3386
3385
|
unpad: function(e) {
|
|
3387
|
-
for (var u = e.words,
|
|
3388
|
-
if (u[
|
|
3389
|
-
e.sigBytes =
|
|
3386
|
+
for (var u = e.words, h = e.sigBytes - 1, h = e.sigBytes - 1; h >= 0; h--)
|
|
3387
|
+
if (u[h >>> 2] >>> 24 - h % 4 * 8 & 255) {
|
|
3388
|
+
e.sigBytes = h + 1;
|
|
3390
3389
|
break;
|
|
3391
3390
|
}
|
|
3392
3391
|
}
|
|
3393
3392
|
}, t.pad.ZeroPadding;
|
|
3394
3393
|
});
|
|
3395
|
-
})(
|
|
3394
|
+
})(rr)), rr.exports;
|
|
3396
3395
|
}
|
|
3397
|
-
var
|
|
3396
|
+
var er = { exports: {} }, nx = er.exports, fe;
|
|
3398
3397
|
function ax() {
|
|
3399
|
-
return fe || (fe = 1, (function(r,
|
|
3398
|
+
return fe || (fe = 1, (function(r, p) {
|
|
3400
3399
|
(function(t, e, u) {
|
|
3401
3400
|
r.exports = e(M(), X());
|
|
3402
3401
|
})(nx, function(t) {
|
|
@@ -3407,16 +3406,16 @@ function ax() {
|
|
|
3407
3406
|
}
|
|
3408
3407
|
}, t.pad.NoPadding;
|
|
3409
3408
|
});
|
|
3410
|
-
})(
|
|
3409
|
+
})(er)), er.exports;
|
|
3411
3410
|
}
|
|
3412
|
-
var
|
|
3411
|
+
var tr = { exports: {} }, ox = tr.exports, ue;
|
|
3413
3412
|
function ix() {
|
|
3414
|
-
return ue || (ue = 1, (function(r,
|
|
3413
|
+
return ue || (ue = 1, (function(r, p) {
|
|
3415
3414
|
(function(t, e, u) {
|
|
3416
3415
|
r.exports = e(M(), X());
|
|
3417
3416
|
})(ox, function(t) {
|
|
3418
3417
|
return (function(e) {
|
|
3419
|
-
var u = t,
|
|
3418
|
+
var u = t, h = u.lib, m = h.CipherParams, B = u.enc, C = B.Hex, x = u.format;
|
|
3420
3419
|
x.Hex = {
|
|
3421
3420
|
/**
|
|
3422
3421
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3454,41 +3453,41 @@ function ix() {
|
|
|
3454
3453
|
};
|
|
3455
3454
|
})(), t.format.Hex;
|
|
3456
3455
|
});
|
|
3457
|
-
})(
|
|
3456
|
+
})(tr)), tr.exports;
|
|
3458
3457
|
}
|
|
3459
|
-
var
|
|
3458
|
+
var xr = { exports: {} }, sx = xr.exports, de;
|
|
3460
3459
|
function cx() {
|
|
3461
|
-
return de || (de = 1, (function(r,
|
|
3460
|
+
return de || (de = 1, (function(r, p) {
|
|
3462
3461
|
(function(t, e, u) {
|
|
3463
3462
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
3464
3463
|
})(sx, function(t) {
|
|
3465
3464
|
return (function() {
|
|
3466
|
-
var e = t, u = e.lib,
|
|
3465
|
+
var e = t, u = e.lib, h = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], v = [], l = [];
|
|
3467
3466
|
(function() {
|
|
3468
3467
|
for (var o = [], d = 0; d < 256; d++)
|
|
3469
3468
|
d < 128 ? o[d] = d << 1 : o[d] = d << 1 ^ 283;
|
|
3470
3469
|
for (var b = 0, D = 0, d = 0; d < 256; d++) {
|
|
3471
3470
|
var y = D ^ D << 1 ^ D << 2 ^ D << 3 ^ D << 4;
|
|
3472
3471
|
y = y >>> 8 ^ y & 255 ^ 99, B[b] = y, C[y] = b;
|
|
3473
|
-
var k = o[b],
|
|
3472
|
+
var k = o[b], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3474
3473
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3475
|
-
var w = F * 16843009 ^
|
|
3476
|
-
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16,
|
|
3474
|
+
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ b * 16843008;
|
|
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;
|
|
3477
3476
|
}
|
|
3478
3477
|
})();
|
|
3479
|
-
var g = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES =
|
|
3478
|
+
var g = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES = h.extend({
|
|
3480
3479
|
_doReset: function() {
|
|
3481
3480
|
var o;
|
|
3482
3481
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3483
|
-
for (var d = this._keyPriorReset = this._key, b = d.words, D = d.sigBytes / 4, y = this._nRounds = D + 6, k = (y + 1) * 4,
|
|
3484
|
-
F < D ?
|
|
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);
|
|
3485
3484
|
for (var w = this._invKeySchedule = [], H = 0; H < k; H++) {
|
|
3486
3485
|
var F = k - H;
|
|
3487
3486
|
if (H % 4)
|
|
3488
|
-
var o =
|
|
3487
|
+
var o = R[F];
|
|
3489
3488
|
else
|
|
3490
|
-
var o =
|
|
3491
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^
|
|
3489
|
+
var o = R[F - 4];
|
|
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]];
|
|
3492
3491
|
}
|
|
3493
3492
|
}
|
|
3494
3493
|
},
|
|
@@ -3497,33 +3496,33 @@ function cx() {
|
|
|
3497
3496
|
},
|
|
3498
3497
|
decryptBlock: function(o, d) {
|
|
3499
3498
|
var b = o[d + 1];
|
|
3500
|
-
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f,
|
|
3499
|
+
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f, v, l, C);
|
|
3501
3500
|
var b = o[d + 1];
|
|
3502
3501
|
o[d + 1] = o[d + 3], o[d + 3] = b;
|
|
3503
3502
|
},
|
|
3504
|
-
_doCryptBlock: function(o, d, b, D, y, k,
|
|
3505
|
-
for (var w = this._nRounds, H = o[d] ^ b[0],
|
|
3506
|
-
var T = D[H >>> 24] ^ y[
|
|
3507
|
-
H = 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++];
|
|
3506
|
+
H = T, $ = N, z = j, O = S;
|
|
3508
3507
|
}
|
|
3509
|
-
var T = (F[H >>> 24] << 24 | F[
|
|
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++];
|
|
3510
3509
|
o[d] = T, o[d + 1] = N, o[d + 2] = j, o[d + 3] = S;
|
|
3511
3510
|
},
|
|
3512
3511
|
keySize: 256 / 32
|
|
3513
3512
|
});
|
|
3514
|
-
e.AES =
|
|
3513
|
+
e.AES = h._createHelper(i);
|
|
3515
3514
|
})(), t.AES;
|
|
3516
3515
|
});
|
|
3517
|
-
})(
|
|
3516
|
+
})(xr)), xr.exports;
|
|
3518
3517
|
}
|
|
3519
|
-
var
|
|
3518
|
+
var nr = { exports: {} }, fx = nr.exports, le;
|
|
3520
3519
|
function ux() {
|
|
3521
|
-
return le || (le = 1, (function(r,
|
|
3520
|
+
return le || (le = 1, (function(r, p) {
|
|
3522
3521
|
(function(t, e, u) {
|
|
3523
3522
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
3524
3523
|
})(fx, function(t) {
|
|
3525
3524
|
return (function() {
|
|
3526
|
-
var e = t, u = e.lib,
|
|
3525
|
+
var e = t, u = e.lib, h = u.WordArray, m = u.BlockCipher, B = e.algo, C = [
|
|
3527
3526
|
57,
|
|
3528
3527
|
49,
|
|
3529
3528
|
41,
|
|
@@ -4174,8 +4173,8 @@ function ux() {
|
|
|
4174
4173
|
o[d] = i[b >>> 5] >>> 31 - b % 32 & 1;
|
|
4175
4174
|
}
|
|
4176
4175
|
for (var D = this._subKeys = [], y = 0; y < 16; y++) {
|
|
4177
|
-
for (var k = D[y] = [],
|
|
4178
|
-
k[d / 6 | 0] |= o[(x[d] - 1 +
|
|
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;
|
|
4179
4178
|
k[0] = k[0] << 1 | k[0] >>> 31;
|
|
4180
4179
|
for (var d = 1; d < 7; d++)
|
|
4181
4180
|
k[d] = k[d] >>> (d - 1) * 4 + 3;
|
|
@@ -4191,14 +4190,14 @@ function ux() {
|
|
|
4191
4190
|
this._doCryptBlock(g, i, this._invSubKeys);
|
|
4192
4191
|
},
|
|
4193
4192
|
_doCryptBlock: function(g, i, o) {
|
|
4194
|
-
this._lBlock = g[i], this._rBlock = g[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535),
|
|
4193
|
+
this._lBlock = g[i], this._rBlock = g[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535), v.call(this, 2, 858993459), v.call(this, 8, 16711935), f.call(this, 1, 1431655765);
|
|
4195
4194
|
for (var d = 0; d < 16; d++) {
|
|
4196
|
-
for (var b = o[d], D = this._lBlock, y = this._rBlock, k = 0,
|
|
4197
|
-
k |= E[
|
|
4195
|
+
for (var b = o[d], D = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4196
|
+
k |= E[R][((y ^ b[R]) & a[R]) >>> 0];
|
|
4198
4197
|
this._lBlock = y, this._rBlock = D ^ k;
|
|
4199
4198
|
}
|
|
4200
4199
|
var F = this._lBlock;
|
|
4201
|
-
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765),
|
|
4200
|
+
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765), 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;
|
|
4202
4201
|
},
|
|
4203
4202
|
keySize: 64 / 32,
|
|
4204
4203
|
ivSize: 64 / 32,
|
|
@@ -4208,7 +4207,7 @@ function ux() {
|
|
|
4208
4207
|
var o = (this._lBlock >>> g ^ this._rBlock) & i;
|
|
4209
4208
|
this._rBlock ^= o, this._lBlock ^= o << g;
|
|
4210
4209
|
}
|
|
4211
|
-
function
|
|
4210
|
+
function v(g, i) {
|
|
4212
4211
|
var o = (this._rBlock >>> g ^ this._lBlock) & i;
|
|
4213
4212
|
this._lBlock ^= o, this._rBlock ^= o << g;
|
|
4214
4213
|
}
|
|
@@ -4219,7 +4218,7 @@ function ux() {
|
|
|
4219
4218
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
4220
4219
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4221
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);
|
|
4222
|
-
this._des1 = s.createEncryptor(
|
|
4221
|
+
this._des1 = s.createEncryptor(h.create(o)), this._des2 = s.createEncryptor(h.create(d)), this._des3 = s.createEncryptor(h.create(b));
|
|
4223
4222
|
},
|
|
4224
4223
|
encryptBlock: function(g, i) {
|
|
4225
4224
|
this._des1.encryptBlock(g, i), this._des2.decryptBlock(g, i), this._des3.encryptBlock(g, i);
|
|
@@ -4234,24 +4233,24 @@ function ux() {
|
|
|
4234
4233
|
e.TripleDES = m._createHelper(l);
|
|
4235
4234
|
})(), t.TripleDES;
|
|
4236
4235
|
});
|
|
4237
|
-
})(
|
|
4236
|
+
})(nr)), nr.exports;
|
|
4238
4237
|
}
|
|
4239
|
-
var
|
|
4238
|
+
var ar = { exports: {} }, dx = ar.exports, he;
|
|
4240
4239
|
function lx() {
|
|
4241
|
-
return he || (he = 1, (function(r,
|
|
4240
|
+
return he || (he = 1, (function(r, p) {
|
|
4242
4241
|
(function(t, e, u) {
|
|
4243
4242
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4244
4243
|
})(dx, function(t) {
|
|
4245
4244
|
return (function() {
|
|
4246
|
-
var e = t, u = e.lib,
|
|
4245
|
+
var e = t, u = e.lib, h = u.StreamCipher, m = e.algo, B = m.RC4 = h.extend({
|
|
4247
4246
|
_doReset: function() {
|
|
4248
4247
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], f = 0; f < 256; f++)
|
|
4249
4248
|
s[f] = f;
|
|
4250
|
-
for (var f = 0,
|
|
4249
|
+
for (var f = 0, v = 0; f < 256; f++) {
|
|
4251
4250
|
var l = f % a, g = E[l >>> 2] >>> 24 - l % 4 * 8 & 255;
|
|
4252
|
-
|
|
4251
|
+
v = (v + s[f] + g) % 256;
|
|
4253
4252
|
var i = s[f];
|
|
4254
|
-
s[f] = s[
|
|
4253
|
+
s[f] = s[v], s[v] = i;
|
|
4255
4254
|
}
|
|
4256
4255
|
this._i = this._j = 0;
|
|
4257
4256
|
},
|
|
@@ -4264,12 +4263,12 @@ function lx() {
|
|
|
4264
4263
|
function C() {
|
|
4265
4264
|
for (var n = this._S, E = this._i, a = this._j, s = 0, f = 0; f < 4; f++) {
|
|
4266
4265
|
E = (E + 1) % 256, a = (a + n[E]) % 256;
|
|
4267
|
-
var
|
|
4268
|
-
n[E] = n[a], n[a] =
|
|
4266
|
+
var v = n[E];
|
|
4267
|
+
n[E] = n[a], n[a] = v, s |= n[(n[E] + n[a]) % 256] << 24 - f * 8;
|
|
4269
4268
|
}
|
|
4270
4269
|
return this._i = E, this._j = a, s;
|
|
4271
4270
|
}
|
|
4272
|
-
e.RC4 =
|
|
4271
|
+
e.RC4 = h._createHelper(B);
|
|
4273
4272
|
var x = m.RC4Drop = B.extend({
|
|
4274
4273
|
/**
|
|
4275
4274
|
* Configuration options.
|
|
@@ -4285,23 +4284,23 @@ function lx() {
|
|
|
4285
4284
|
C.call(this);
|
|
4286
4285
|
}
|
|
4287
4286
|
});
|
|
4288
|
-
e.RC4Drop =
|
|
4287
|
+
e.RC4Drop = h._createHelper(x);
|
|
4289
4288
|
})(), t.RC4;
|
|
4290
4289
|
});
|
|
4291
|
-
})(
|
|
4290
|
+
})(ar)), ar.exports;
|
|
4292
4291
|
}
|
|
4293
|
-
var
|
|
4292
|
+
var or = { exports: {} }, hx = or.exports, ve;
|
|
4294
4293
|
function vx() {
|
|
4295
|
-
return ve || (ve = 1, (function(r,
|
|
4294
|
+
return ve || (ve = 1, (function(r, p) {
|
|
4296
4295
|
(function(t, e, u) {
|
|
4297
4296
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4298
4297
|
})(hx, function(t) {
|
|
4299
4298
|
return (function() {
|
|
4300
|
-
var e = t, u = e.lib,
|
|
4299
|
+
var e = t, u = e.lib, h = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.Rabbit = h.extend({
|
|
4301
4300
|
_doReset: function() {
|
|
4302
4301
|
for (var a = this._key.words, s = this.cfg.iv, f = 0; f < 4; f++)
|
|
4303
4302
|
a[f] = (a[f] << 8 | a[f] >>> 24) & 16711935 | (a[f] << 24 | a[f] >>> 8) & 4278255360;
|
|
4304
|
-
var
|
|
4303
|
+
var v = this._X = [
|
|
4305
4304
|
a[0],
|
|
4306
4305
|
a[3] << 16 | a[2] >>> 16,
|
|
4307
4306
|
a[1],
|
|
@@ -4324,7 +4323,7 @@ function vx() {
|
|
|
4324
4323
|
for (var f = 0; f < 4; f++)
|
|
4325
4324
|
E.call(this);
|
|
4326
4325
|
for (var f = 0; f < 8; f++)
|
|
4327
|
-
l[f] ^=
|
|
4326
|
+
l[f] ^= v[f + 4 & 7];
|
|
4328
4327
|
if (s) {
|
|
4329
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;
|
|
4330
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;
|
|
@@ -4335,8 +4334,8 @@ function vx() {
|
|
|
4335
4334
|
_doProcessBlock: function(a, s) {
|
|
4336
4335
|
var f = this._X;
|
|
4337
4336
|
E.call(this), B[0] = f[0] ^ f[5] >>> 16 ^ f[3] << 16, B[1] = f[2] ^ f[7] >>> 16 ^ f[5] << 16, B[2] = f[4] ^ f[1] >>> 16 ^ f[7] << 16, B[3] = f[6] ^ f[3] >>> 16 ^ f[1] << 16;
|
|
4338
|
-
for (var
|
|
4339
|
-
B[
|
|
4337
|
+
for (var v = 0; v < 4; v++)
|
|
4338
|
+
B[v] = (B[v] << 8 | B[v] >>> 24) & 16711935 | (B[v] << 24 | B[v] >>> 8) & 4278255360, a[s + v] ^= B[v];
|
|
4340
4339
|
},
|
|
4341
4340
|
blockSize: 128 / 32,
|
|
4342
4341
|
ivSize: 64 / 32
|
|
@@ -4346,24 +4345,24 @@ function vx() {
|
|
|
4346
4345
|
C[f] = s[f];
|
|
4347
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;
|
|
4348
4347
|
for (var f = 0; f < 8; f++) {
|
|
4349
|
-
var
|
|
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);
|
|
4350
4349
|
x[f] = i ^ o;
|
|
4351
4350
|
}
|
|
4352
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;
|
|
4353
4352
|
}
|
|
4354
|
-
e.Rabbit =
|
|
4353
|
+
e.Rabbit = h._createHelper(n);
|
|
4355
4354
|
})(), t.Rabbit;
|
|
4356
4355
|
});
|
|
4357
|
-
})(
|
|
4356
|
+
})(or)), or.exports;
|
|
4358
4357
|
}
|
|
4359
|
-
var
|
|
4358
|
+
var ir = { exports: {} }, px = ir.exports, pe;
|
|
4360
4359
|
function Bx() {
|
|
4361
|
-
return pe || (pe = 1, (function(r,
|
|
4360
|
+
return pe || (pe = 1, (function(r, p) {
|
|
4362
4361
|
(function(t, e, u) {
|
|
4363
4362
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4364
4363
|
})(px, function(t) {
|
|
4365
4364
|
return (function() {
|
|
4366
|
-
var e = t, u = e.lib,
|
|
4365
|
+
var e = t, u = e.lib, h = u.StreamCipher, m = e.algo, B = [], C = [], x = [], n = m.RabbitLegacy = h.extend({
|
|
4367
4366
|
_doReset: function() {
|
|
4368
4367
|
var a = this._key.words, s = this.cfg.iv, f = this._X = [
|
|
4369
4368
|
a[0],
|
|
@@ -4374,7 +4373,7 @@ function Bx() {
|
|
|
4374
4373
|
a[1] << 16 | a[0] >>> 16,
|
|
4375
4374
|
a[3],
|
|
4376
4375
|
a[2] << 16 | a[1] >>> 16
|
|
4377
|
-
],
|
|
4376
|
+
], v = this._C = [
|
|
4378
4377
|
a[2] << 16 | a[2] >>> 16,
|
|
4379
4378
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4380
4379
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4388,10 +4387,10 @@ function Bx() {
|
|
|
4388
4387
|
for (var l = 0; l < 4; l++)
|
|
4389
4388
|
E.call(this);
|
|
4390
4389
|
for (var l = 0; l < 8; l++)
|
|
4391
|
-
|
|
4390
|
+
v[l] ^= f[l + 4 & 7];
|
|
4392
4391
|
if (s) {
|
|
4393
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;
|
|
4394
|
-
|
|
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;
|
|
4395
4394
|
for (var l = 0; l < 4; l++)
|
|
4396
4395
|
E.call(this);
|
|
4397
4396
|
}
|
|
@@ -4399,8 +4398,8 @@ function Bx() {
|
|
|
4399
4398
|
_doProcessBlock: function(a, s) {
|
|
4400
4399
|
var f = this._X;
|
|
4401
4400
|
E.call(this), B[0] = f[0] ^ f[5] >>> 16 ^ f[3] << 16, B[1] = f[2] ^ f[7] >>> 16 ^ f[5] << 16, B[2] = f[4] ^ f[1] >>> 16 ^ f[7] << 16, B[3] = f[6] ^ f[3] >>> 16 ^ f[1] << 16;
|
|
4402
|
-
for (var
|
|
4403
|
-
B[
|
|
4401
|
+
for (var v = 0; v < 4; v++)
|
|
4402
|
+
B[v] = (B[v] << 8 | B[v] >>> 24) & 16711935 | (B[v] << 24 | B[v] >>> 8) & 4278255360, a[s + v] ^= B[v];
|
|
4404
4403
|
},
|
|
4405
4404
|
blockSize: 128 / 32,
|
|
4406
4405
|
ivSize: 64 / 32
|
|
@@ -4410,24 +4409,24 @@ function Bx() {
|
|
|
4410
4409
|
C[f] = s[f];
|
|
4411
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;
|
|
4412
4411
|
for (var f = 0; f < 8; f++) {
|
|
4413
|
-
var
|
|
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);
|
|
4414
4413
|
x[f] = i ^ o;
|
|
4415
4414
|
}
|
|
4416
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;
|
|
4417
4416
|
}
|
|
4418
|
-
e.RabbitLegacy =
|
|
4417
|
+
e.RabbitLegacy = h._createHelper(n);
|
|
4419
4418
|
})(), t.RabbitLegacy;
|
|
4420
4419
|
});
|
|
4421
|
-
})(
|
|
4420
|
+
})(ir)), ir.exports;
|
|
4422
4421
|
}
|
|
4423
|
-
var
|
|
4422
|
+
var sr = { exports: {} }, Cx = sr.exports, Be;
|
|
4424
4423
|
function Ex() {
|
|
4425
|
-
return Be || (Be = 1, (function(r,
|
|
4424
|
+
return Be || (Be = 1, (function(r, p) {
|
|
4426
4425
|
(function(t, e, u) {
|
|
4427
4426
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4428
4427
|
})(Cx, function(t) {
|
|
4429
4428
|
return (function() {
|
|
4430
|
-
var e = t, u = e.lib,
|
|
4429
|
+
var e = t, u = e.lib, h = u.BlockCipher, m = e.algo;
|
|
4431
4430
|
const B = 16, C = [
|
|
4432
4431
|
608135816,
|
|
4433
4432
|
2242054355,
|
|
@@ -5518,7 +5517,7 @@ function Ex() {
|
|
|
5518
5517
|
D = a(l, d, b), d = D.left, b = D.right, l.sbox[y][k] = d, l.sbox[y][k + 1] = b;
|
|
5519
5518
|
return !0;
|
|
5520
5519
|
}
|
|
5521
|
-
var
|
|
5520
|
+
var v = m.Blowfish = h.extend({
|
|
5522
5521
|
_doReset: function() {
|
|
5523
5522
|
if (this._keyPriorReset !== this._key) {
|
|
5524
5523
|
var l = this._keyPriorReset = this._key, g = l.words, i = l.sigBytes / 4;
|
|
@@ -5537,41 +5536,41 @@ function Ex() {
|
|
|
5537
5536
|
keySize: 128 / 32,
|
|
5538
5537
|
ivSize: 64 / 32
|
|
5539
5538
|
});
|
|
5540
|
-
e.Blowfish =
|
|
5539
|
+
e.Blowfish = h._createHelper(v);
|
|
5541
5540
|
})(), t.Blowfish;
|
|
5542
5541
|
});
|
|
5543
|
-
})(
|
|
5542
|
+
})(sr)), sr.exports;
|
|
5544
5543
|
}
|
|
5545
|
-
var Ax =
|
|
5544
|
+
var Ax = y0.exports, Ce;
|
|
5546
5545
|
function Fx() {
|
|
5547
|
-
return Ce || (Ce = 1, (function(r,
|
|
5546
|
+
return Ce || (Ce = 1, (function(r, p) {
|
|
5548
5547
|
(function(t, e, u) {
|
|
5549
|
-
r.exports = e(M(), ur(), Bt(), Et(), i0(), Dt(), s0(), ye(), Er(), yt(), we(), St(),
|
|
5548
|
+
r.exports = e(M(), ur(), Bt(), Et(), i0(), Dt(), s0(), ye(), Er(), yt(), we(), St(), $t(), Pt(), Ar(), Wt(), a0(), X(), Tt(), Nt(), jt(), Kt(), Yt(), Qt(), Jt(), ex(), xx(), ax(), ix(), cx(), ux(), lx(), vx(), Bx(), Ex());
|
|
5550
5549
|
})(Ax, function(t) {
|
|
5551
5550
|
return t;
|
|
5552
5551
|
});
|
|
5553
|
-
})(
|
|
5552
|
+
})(y0)), y0.exports;
|
|
5554
5553
|
}
|
|
5555
5554
|
Fx();
|
|
5556
|
-
let ke = null, Se = null, He = null,
|
|
5555
|
+
let ke = null, Se = null, He = null, $e = null;
|
|
5557
5556
|
Math.random().toString(36).substring(7);
|
|
5558
5557
|
function Dx(r) {
|
|
5559
|
-
ke = r.token, Se = r.apiUrl, He = r.deviceId,
|
|
5558
|
+
ke = r.token, Se = r.apiUrl, He = r.deviceId, $e = r.domain;
|
|
5560
5559
|
}
|
|
5561
5560
|
function gx() {
|
|
5562
5561
|
return {
|
|
5563
5562
|
token: ke,
|
|
5564
5563
|
apiUrl: Se,
|
|
5565
5564
|
deviceId: He,
|
|
5566
|
-
domain:
|
|
5565
|
+
domain: $e
|
|
5567
5566
|
};
|
|
5568
5567
|
}
|
|
5569
5568
|
function bx(r) {
|
|
5570
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5569
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.148`;
|
|
5571
5570
|
}
|
|
5572
|
-
function mx(r,
|
|
5571
|
+
function mx(r, p) {
|
|
5573
5572
|
const t = bx(r);
|
|
5574
|
-
return new Worker(t, { type: "module", ...
|
|
5573
|
+
return new Worker(t, { type: "module", ...p });
|
|
5575
5574
|
}
|
|
5576
5575
|
const Fr = () => {
|
|
5577
5576
|
try {
|
|
@@ -5579,31 +5578,31 @@ const Fr = () => {
|
|
|
5579
5578
|
} catch {
|
|
5580
5579
|
}
|
|
5581
5580
|
return !1;
|
|
5582
|
-
},
|
|
5581
|
+
}, m0 = (...r) => {
|
|
5583
5582
|
Fr();
|
|
5584
5583
|
}, Ee = (...r) => {
|
|
5585
5584
|
Fr();
|
|
5586
5585
|
}, Ae = /* @__PURE__ */ new Map(), pr = /* @__PURE__ */ new Map();
|
|
5587
5586
|
let _x = 0;
|
|
5588
5587
|
function yx(r) {
|
|
5589
|
-
const
|
|
5590
|
-
if (
|
|
5588
|
+
const p = Ae.get(r);
|
|
5589
|
+
if (p) return p;
|
|
5591
5590
|
const t = mx("./deform.worker.ts");
|
|
5592
5591
|
try {
|
|
5593
5592
|
t.postMessage({ type: "SET_DEBUG", debugRender: Fr() });
|
|
5594
5593
|
} catch {
|
|
5595
5594
|
}
|
|
5596
5595
|
t.onmessage = (u) => {
|
|
5597
|
-
const { id:
|
|
5598
|
-
|
|
5596
|
+
const { id: h, imageBitmap: m, error: B, duration: C } = u.data ?? {}, x = C ? ` worker耗时=${Math.round(C)}ms` : "";
|
|
5597
|
+
m0(`[renderService] deform worker 响应 id=${h}${x}`, {
|
|
5599
5598
|
hasImageBitmap: !!m,
|
|
5600
5599
|
width: m?.width,
|
|
5601
5600
|
height: m?.height,
|
|
5602
5601
|
error: B
|
|
5603
5602
|
});
|
|
5604
|
-
const n = pr.get(
|
|
5603
|
+
const n = pr.get(h);
|
|
5605
5604
|
if (n) {
|
|
5606
|
-
if (pr.delete(
|
|
5605
|
+
if (pr.delete(h), B) {
|
|
5607
5606
|
n.reject(new Error(B));
|
|
5608
5607
|
return;
|
|
5609
5608
|
}
|
|
@@ -5613,12 +5612,12 @@ function yx(r) {
|
|
|
5613
5612
|
};
|
|
5614
5613
|
const e = () => {
|
|
5615
5614
|
const u = gx();
|
|
5616
|
-
return
|
|
5615
|
+
return m0("🔍 [workerManager] 检查 License Token:", {
|
|
5617
5616
|
hasToken: !!u.token,
|
|
5618
5617
|
tokenPreview: u.token ? u.token.substring(0, 20) + "..." : "undefined",
|
|
5619
5618
|
faceId: r,
|
|
5620
5619
|
source: "licenseStore模块"
|
|
5621
|
-
}), u.token ? (
|
|
5620
|
+
}), u.token ? (m0("📤 [workerManager] 发送 License 到新创建的 Worker", { faceId: r }), t.postMessage({
|
|
5622
5621
|
type: "SET_LICENSE",
|
|
5623
5622
|
licenseToken: u.token,
|
|
5624
5623
|
licenseApiUrl: u.apiUrl,
|
|
@@ -5626,7 +5625,7 @@ function yx(r) {
|
|
|
5626
5625
|
domain: u.domain
|
|
5627
5626
|
}), !0) : !1;
|
|
5628
5627
|
};
|
|
5629
|
-
return e() || (
|
|
5628
|
+
return e() || (m0("⏳ [workerManager] License Token 未设置,等待后重试...", { faceId: r }), setTimeout(() => {
|
|
5630
5629
|
e() || Ee("⚠️ [workerManager] 等待后 License Token 仍未设置", { faceId: r });
|
|
5631
5630
|
}, 200), setTimeout(() => {
|
|
5632
5631
|
e() || Ee("⚠️ [workerManager] 第二次等待后 License Token 仍未设置", { faceId: r });
|
|
@@ -5638,10 +5637,10 @@ function wx(r) {
|
|
|
5638
5637
|
type: r.type,
|
|
5639
5638
|
blendMode: r.blendMode,
|
|
5640
5639
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5641
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5642
|
-
x:
|
|
5643
|
-
y:
|
|
5644
|
-
type:
|
|
5640
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((p) => ({
|
|
5641
|
+
x: p.x,
|
|
5642
|
+
y: p.y,
|
|
5643
|
+
type: p.type
|
|
5645
5644
|
})) : [],
|
|
5646
5645
|
bounds: r.bounds ? {
|
|
5647
5646
|
width: r.bounds.width,
|
|
@@ -5664,30 +5663,30 @@ function wx(r) {
|
|
|
5664
5663
|
layerOrder: r.layerOrder,
|
|
5665
5664
|
imagePath: r.imagePath,
|
|
5666
5665
|
vectorMask: r.vectorMask ? {
|
|
5667
|
-
paths: r.vectorMask.paths?.map((
|
|
5668
|
-
open:
|
|
5669
|
-
knots:
|
|
5666
|
+
paths: r.vectorMask.paths?.map((p) => ({
|
|
5667
|
+
open: p.open,
|
|
5668
|
+
knots: p.knots?.map((t) => ({
|
|
5670
5669
|
linked: t.linked,
|
|
5671
5670
|
points: [...t.points]
|
|
5672
5671
|
})),
|
|
5673
|
-
fillRule:
|
|
5674
|
-
operation:
|
|
5672
|
+
fillRule: p.fillRule,
|
|
5673
|
+
operation: p.operation
|
|
5675
5674
|
})),
|
|
5676
|
-
points: r.vectorMask.points?.map((
|
|
5677
|
-
x:
|
|
5678
|
-
y:
|
|
5679
|
-
type:
|
|
5675
|
+
points: r.vectorMask.points?.map((p) => ({
|
|
5676
|
+
x: p.x,
|
|
5677
|
+
y: p.y,
|
|
5678
|
+
type: p.type
|
|
5680
5679
|
})),
|
|
5681
5680
|
invert: r.vectorMask.invert,
|
|
5682
5681
|
notLink: r.vectorMask.notLink,
|
|
5683
5682
|
disable: r.vectorMask.disable,
|
|
5684
5683
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5685
5684
|
} : void 0,
|
|
5686
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5687
|
-
type:
|
|
5688
|
-
enabled:
|
|
5689
|
-
filter:
|
|
5690
|
-
puppetShapeList:
|
|
5685
|
+
filterList: r.filterList ? r.filterList.map((p) => ({
|
|
5686
|
+
type: p.type,
|
|
5687
|
+
enabled: p.enabled,
|
|
5688
|
+
filter: p.filter ? {
|
|
5689
|
+
puppetShapeList: p.filter.puppetShapeList?.map((t) => ({
|
|
5691
5690
|
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5692
5691
|
x: e.x,
|
|
5693
5692
|
y: e.y
|
|
@@ -5704,8 +5703,8 @@ function wx(r) {
|
|
|
5704
5703
|
clipping: r.clipping
|
|
5705
5704
|
};
|
|
5706
5705
|
}
|
|
5707
|
-
function kx(r,
|
|
5708
|
-
const u = ++_x,
|
|
5706
|
+
function kx(r, p, t, e) {
|
|
5707
|
+
const u = ++_x, h = yx(t);
|
|
5709
5708
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((m, B) => {
|
|
5710
5709
|
pr.set(u, {
|
|
5711
5710
|
resolve: (x) => {
|
|
@@ -5713,24 +5712,24 @@ function kx(r, h, t, e) {
|
|
|
5713
5712
|
},
|
|
5714
5713
|
reject: B
|
|
5715
5714
|
});
|
|
5716
|
-
const C = wx(
|
|
5717
|
-
|
|
5715
|
+
const C = wx(p);
|
|
5716
|
+
h.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5718
5717
|
r
|
|
5719
5718
|
]);
|
|
5720
5719
|
});
|
|
5721
5720
|
}
|
|
5722
|
-
async function Sx(r,
|
|
5723
|
-
const m = await it(r, u,
|
|
5721
|
+
async function Sx(r, p, t = 0, e, u, h) {
|
|
5722
|
+
const m = await it(r, u, h);
|
|
5724
5723
|
if (!m || m.width === 0 || m.height === 0)
|
|
5725
5724
|
throw new Error("图片无效:尺寸为 0");
|
|
5726
|
-
return await kx(m,
|
|
5725
|
+
return await kx(m, p, t, e);
|
|
5727
5726
|
}
|
|
5728
|
-
function d0(r,
|
|
5727
|
+
function d0(r, p) {
|
|
5729
5728
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5730
|
-
return new OffscreenCanvas(r,
|
|
5729
|
+
return new OffscreenCanvas(r, p);
|
|
5731
5730
|
if (typeof document < "u") {
|
|
5732
5731
|
const t = document.createElement("canvas");
|
|
5733
|
-
return t.width = r, t.height =
|
|
5732
|
+
return t.width = r, t.height = p, t;
|
|
5734
5733
|
} else
|
|
5735
5734
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5736
5735
|
}
|
|
@@ -5738,13 +5737,13 @@ function A0(r) {
|
|
|
5738
5737
|
return r.getContext("2d");
|
|
5739
5738
|
}
|
|
5740
5739
|
function Fe(r) {
|
|
5741
|
-
const
|
|
5742
|
-
if (!
|
|
5740
|
+
const p = A0(r);
|
|
5741
|
+
if (!p)
|
|
5743
5742
|
throw new Error("无法创建 canvas context");
|
|
5744
|
-
return
|
|
5743
|
+
return p;
|
|
5745
5744
|
}
|
|
5746
5745
|
async function Hx(r) {
|
|
5747
|
-
const
|
|
5746
|
+
const p = performance.now(), t = () => {
|
|
5748
5747
|
try {
|
|
5749
5748
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5750
5749
|
} catch {
|
|
@@ -5755,7 +5754,7 @@ async function Hx(r) {
|
|
|
5755
5754
|
}, u = (...c) => {
|
|
5756
5755
|
t();
|
|
5757
5756
|
}, {
|
|
5758
|
-
psdJson:
|
|
5757
|
+
psdJson: h,
|
|
5759
5758
|
materialList: m,
|
|
5760
5759
|
fabricScreenshotList: B,
|
|
5761
5760
|
width: C,
|
|
@@ -5763,8 +5762,8 @@ async function Hx(r) {
|
|
|
5763
5762
|
baseUrl: n
|
|
5764
5763
|
} = r, E = r.maxImageSize;
|
|
5765
5764
|
e("[renderByJson] 接收到的数据:", {
|
|
5766
|
-
psdJsonLayerCount:
|
|
5767
|
-
psdJsonLayers:
|
|
5765
|
+
psdJsonLayerCount: h.layerList?.length || 0,
|
|
5766
|
+
psdJsonLayers: h.layerList?.map((c) => ({
|
|
5768
5767
|
name: c.name,
|
|
5769
5768
|
type: c.type,
|
|
5770
5769
|
id: c.id,
|
|
@@ -5802,10 +5801,10 @@ async function Hx(r) {
|
|
|
5802
5801
|
url: c.url
|
|
5803
5802
|
}), f.set(c.layerName, c.url));
|
|
5804
5803
|
}
|
|
5805
|
-
const
|
|
5804
|
+
const v = /* @__PURE__ */ new Map();
|
|
5806
5805
|
for (const c of B)
|
|
5807
|
-
|
|
5808
|
-
e("[renderByJson] fabricScreenshotMap:", Array.from(
|
|
5806
|
+
v.set(c.id, c.url);
|
|
5807
|
+
e("[renderByJson] fabricScreenshotMap:", Array.from(v.entries())), e("[renderByJson] psdJson.layerList 结构:", h.layerList?.map((c) => ({
|
|
5809
5808
|
name: c.name,
|
|
5810
5809
|
type: c.type,
|
|
5811
5810
|
id: c.id,
|
|
@@ -5816,28 +5815,28 @@ async function Hx(r) {
|
|
|
5816
5815
|
const _ = c.color || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(c.name) ? c.name : A);
|
|
5817
5816
|
if (c.type === "Layer") {
|
|
5818
5817
|
if (c.imagePath) {
|
|
5819
|
-
const
|
|
5818
|
+
const I = m.find((P) => {
|
|
5820
5819
|
const L = P.sourceName || P.layerName;
|
|
5821
5820
|
return !L || !c.imagePath ? !1 : L === c.imagePath || L.endsWith(c.imagePath) || c.imagePath.endsWith(L);
|
|
5822
5821
|
});
|
|
5823
|
-
|
|
5824
|
-
url:
|
|
5822
|
+
I && (s[c.imagePath] = {
|
|
5823
|
+
url: I.url
|
|
5825
5824
|
});
|
|
5826
5825
|
}
|
|
5827
5826
|
if (c.name) {
|
|
5828
5827
|
if (_) {
|
|
5829
|
-
const
|
|
5830
|
-
const
|
|
5831
|
-
return
|
|
5828
|
+
const I = `${_}-${c.name}`, P = m.find((L) => {
|
|
5829
|
+
const W = L.sourceName || L.layerName;
|
|
5830
|
+
return W ? (W.split("/").pop() || W).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${_}-${c.name}`) : !1;
|
|
5832
5831
|
});
|
|
5833
|
-
P && (s[
|
|
5832
|
+
P && (s[I] = {
|
|
5834
5833
|
url: P.url
|
|
5835
5834
|
});
|
|
5836
5835
|
}
|
|
5837
5836
|
if (c.imagePath && c.name) {
|
|
5838
|
-
const
|
|
5839
|
-
const
|
|
5840
|
-
return
|
|
5837
|
+
const I = c.imagePath.split("/").pop() || c.imagePath, P = m.find((L) => {
|
|
5838
|
+
const W = L.sourceName || L.layerName;
|
|
5839
|
+
return W ? (W.split("/").pop() || W) === I : !1;
|
|
5841
5840
|
});
|
|
5842
5841
|
P && (s[c.imagePath] = {
|
|
5843
5842
|
url: P.url
|
|
@@ -5846,37 +5845,37 @@ async function Hx(r) {
|
|
|
5846
5845
|
}
|
|
5847
5846
|
}
|
|
5848
5847
|
if (c.children)
|
|
5849
|
-
for (const
|
|
5850
|
-
|
|
5848
|
+
for (const I of c.children)
|
|
5849
|
+
I && l(I, _);
|
|
5851
5850
|
}
|
|
5852
5851
|
function g(c, A) {
|
|
5853
5852
|
const _ = c.id ?? A;
|
|
5854
5853
|
if (c.type === "Group" && _)
|
|
5855
|
-
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${
|
|
5856
|
-
const
|
|
5857
|
-
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${
|
|
5854
|
+
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${v.has(_)}`), v.has(_)) {
|
|
5855
|
+
const I = v.get(_);
|
|
5856
|
+
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${I.substring(0, 50)}...`), c.children) {
|
|
5858
5857
|
e(`[renderByJson] Group "${c.name}" 有 ${c.children.length} 个子图层`);
|
|
5859
5858
|
for (const P of c.children)
|
|
5860
5859
|
if (P && P.isSmartObject === !0) {
|
|
5861
5860
|
const L = P?.name || "";
|
|
5862
|
-
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage =
|
|
5861
|
+
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = I, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${I.substring(0, 50)}...`)) : u("[renderByJson] ⚠️ 智能对象没有 name,无法设置 designImage");
|
|
5863
5862
|
}
|
|
5864
5863
|
} else
|
|
5865
5864
|
u(`[renderByJson] ⚠️ Group id=${_} 没有 children`);
|
|
5866
5865
|
} else
|
|
5867
5866
|
e(`[renderByJson] ⚠️ Group id=${_}, name="${c.name}" 没有匹配的 fabricScreenshot`);
|
|
5868
5867
|
if (c.children)
|
|
5869
|
-
for (const
|
|
5870
|
-
|
|
5868
|
+
for (const I of c.children)
|
|
5869
|
+
I && g(I, _);
|
|
5871
5870
|
}
|
|
5872
|
-
if (
|
|
5873
|
-
for (const c of
|
|
5871
|
+
if (h.layerList)
|
|
5872
|
+
for (const c of h.layerList)
|
|
5874
5873
|
c && l(c);
|
|
5875
|
-
if (
|
|
5876
|
-
for (const c of
|
|
5874
|
+
if (h.layerList)
|
|
5875
|
+
for (const c of h.layerList)
|
|
5877
5876
|
c && g(c);
|
|
5878
5877
|
const o = Ye([{
|
|
5879
|
-
psdJson:
|
|
5878
|
+
psdJson: h,
|
|
5880
5879
|
layerExtrasByName: s
|
|
5881
5880
|
}], {
|
|
5882
5881
|
parts: [],
|
|
@@ -5887,21 +5886,21 @@ async function Hx(r) {
|
|
|
5887
5886
|
const d = o.models[0];
|
|
5888
5887
|
if (!d.psdPartData)
|
|
5889
5888
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5890
|
-
const b = d.width, D = d.height, y = d0(b, D), k = Fe(y),
|
|
5889
|
+
const b = d.width, D = d.height, y = d0(b, D), k = Fe(y), R = [], F = (c) => {
|
|
5891
5890
|
if (c.url && s[c.url])
|
|
5892
5891
|
return s[c.url];
|
|
5893
5892
|
if (c.url) {
|
|
5894
5893
|
const A = c.url.split("/").pop() || c.url;
|
|
5895
5894
|
if (s[A])
|
|
5896
5895
|
return s[A];
|
|
5897
|
-
const _ = m.find((
|
|
5898
|
-
const P =
|
|
5896
|
+
const _ = m.find((I) => {
|
|
5897
|
+
const P = I.sourceName || I.layerName;
|
|
5899
5898
|
return !P || !c.url ? !1 : (P.split("/").pop() || P) === A || P === c.url || P.endsWith(c.url) || c.url.endsWith(P);
|
|
5900
5899
|
});
|
|
5901
5900
|
if (_) {
|
|
5902
|
-
const
|
|
5903
|
-
if (
|
|
5904
|
-
return s[
|
|
5901
|
+
const I = _.sourceName || _.layerName;
|
|
5902
|
+
if (I)
|
|
5903
|
+
return s[I] || { url: _.url };
|
|
5905
5904
|
}
|
|
5906
5905
|
}
|
|
5907
5906
|
};
|
|
@@ -5912,12 +5911,12 @@ async function Hx(r) {
|
|
|
5912
5911
|
u(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5913
5912
|
continue;
|
|
5914
5913
|
}
|
|
5915
|
-
const
|
|
5914
|
+
const I = _.url, P = a(I);
|
|
5916
5915
|
if (!P) {
|
|
5917
5916
|
u(`图层 "${A.name}" 没有有效的 url,跳过`);
|
|
5918
5917
|
continue;
|
|
5919
5918
|
}
|
|
5920
|
-
|
|
5919
|
+
R.push({
|
|
5921
5920
|
index: c,
|
|
5922
5921
|
type: "layer",
|
|
5923
5922
|
partData: A,
|
|
@@ -5926,8 +5925,8 @@ async function Hx(r) {
|
|
|
5926
5925
|
} else if (A.type === F0.Group) {
|
|
5927
5926
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
5928
5927
|
continue;
|
|
5929
|
-
for (let
|
|
5930
|
-
const P = A.smartObjects[
|
|
5928
|
+
for (let I = 0; I < A.smartObjects.length; I++) {
|
|
5929
|
+
const P = A.smartObjects[I];
|
|
5931
5930
|
if (!P || !P.name)
|
|
5932
5931
|
continue;
|
|
5933
5932
|
let L = s[P.name] ?? _;
|
|
@@ -5935,33 +5934,33 @@ async function Hx(r) {
|
|
|
5935
5934
|
const K = P.imagePath.split("/").pop() || P.imagePath;
|
|
5936
5935
|
if (L = s[K], !L) {
|
|
5937
5936
|
const G = m.find((Y) => {
|
|
5938
|
-
const
|
|
5939
|
-
return !
|
|
5937
|
+
const r0 = Y.sourceName || Y.layerName;
|
|
5938
|
+
return !r0 || !P.imagePath ? !1 : (r0.split("/").pop() || r0) === K || r0 === P.imagePath || r0.endsWith(P.imagePath) || P.imagePath.endsWith(r0);
|
|
5940
5939
|
});
|
|
5941
5940
|
G && (L = { url: G.url });
|
|
5942
5941
|
}
|
|
5943
5942
|
}
|
|
5944
5943
|
if (!L || !L.designImage && !L.url)
|
|
5945
5944
|
continue;
|
|
5946
|
-
let
|
|
5947
|
-
if (!
|
|
5945
|
+
let W = L.designImage ?? L.url;
|
|
5946
|
+
if (!W)
|
|
5948
5947
|
continue;
|
|
5949
|
-
if (typeof
|
|
5950
|
-
/^(https?:)?\/\//i.test(
|
|
5951
|
-
const G = a(
|
|
5948
|
+
if (typeof W == "string") {
|
|
5949
|
+
/^(https?:)?\/\//i.test(W) || W.startsWith("data:") || W.startsWith("blob:") || (W = f.get(W) ?? W);
|
|
5950
|
+
const G = a(W);
|
|
5952
5951
|
if (!G)
|
|
5953
5952
|
continue;
|
|
5954
|
-
|
|
5953
|
+
W = G;
|
|
5955
5954
|
}
|
|
5956
|
-
const Z = (A.partId ?? A.id) * 100 +
|
|
5957
|
-
|
|
5958
|
-
index: c +
|
|
5955
|
+
const Z = (A.partId ?? A.id) * 100 + I, Q = Qe(Ze(P)), o0 = { width: b, height: D };
|
|
5956
|
+
R.push({
|
|
5957
|
+
index: c + I * 0.01,
|
|
5959
5958
|
type: "group",
|
|
5960
5959
|
partData: A,
|
|
5961
5960
|
smartObject: P,
|
|
5962
5961
|
maskData: Q,
|
|
5963
5962
|
promise: Sx(
|
|
5964
|
-
|
|
5963
|
+
W,
|
|
5965
5964
|
P,
|
|
5966
5965
|
Z,
|
|
5967
5966
|
o0,
|
|
@@ -5972,42 +5971,42 @@ async function Hx(r) {
|
|
|
5972
5971
|
}
|
|
5973
5972
|
}
|
|
5974
5973
|
}
|
|
5975
|
-
const w = await Promise.all(
|
|
5974
|
+
const w = await Promise.all(R.map((c) => c.promise)), H = R.map((c, A) => ({
|
|
5976
5975
|
task: c,
|
|
5977
5976
|
imageBitmap: w[A]
|
|
5978
5977
|
})).sort((c, A) => {
|
|
5979
|
-
const _ = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index,
|
|
5980
|
-
return _ -
|
|
5978
|
+
const _ = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index, I = A.task.type === "group" && A.task.smartObject?.layerOrder !== void 0 ? A.task.smartObject.layerOrder : A.task.partData.layerOrder ?? A.task.index;
|
|
5979
|
+
return _ - I;
|
|
5981
5980
|
});
|
|
5982
|
-
let
|
|
5981
|
+
let $ = d0(b, D), z = A0($), O = !1, q = "normal";
|
|
5983
5982
|
for (let c = 0; c < H.length; c++) {
|
|
5984
5983
|
const { task: A, imageBitmap: _ } = H[c];
|
|
5985
5984
|
if (!_) {
|
|
5986
5985
|
u(`[renderByJson] 图层 "${A.partData.name}" 没有 imageBitmap,跳过`);
|
|
5987
5986
|
continue;
|
|
5988
5987
|
}
|
|
5989
|
-
const { partData:
|
|
5988
|
+
const { partData: I } = A, P = I.bounds;
|
|
5990
5989
|
let L;
|
|
5991
|
-
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ??
|
|
5992
|
-
let
|
|
5993
|
-
A.type === "group" && A.smartObject ?
|
|
5990
|
+
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ?? I.opacity : L = I.opacity, (typeof L != "number" || isNaN(L)) && (L = 1);
|
|
5991
|
+
let W;
|
|
5992
|
+
A.type === "group" && A.smartObject ? W = A.smartObject.clipping ?? I.clipping === !0 : W = I.clipping === !0;
|
|
5994
5993
|
const Z = H[c + 1];
|
|
5995
5994
|
let Q = !1;
|
|
5996
5995
|
if (Z) {
|
|
5997
5996
|
const K = Z.task.partData;
|
|
5998
5997
|
Z.task.type === "group" && Z.task.smartObject ? Q = Z.task.smartObject.clipping ?? K.clipping === !0 : Q = K.clipping === !0;
|
|
5999
5998
|
}
|
|
6000
|
-
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name :
|
|
5999
|
+
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name : I?.name || "未命名图层";
|
|
6001
6000
|
if (e(`[renderByJson] 绘制图层 "${o0}"`, {
|
|
6002
6001
|
type: A.type,
|
|
6003
6002
|
bitmapSize: { width: _.width, height: _.height },
|
|
6004
6003
|
bounds: P,
|
|
6005
6004
|
hasMask: !!A.maskData,
|
|
6006
|
-
blendMode:
|
|
6005
|
+
blendMode: I.blendMode,
|
|
6007
6006
|
opacity: L,
|
|
6008
|
-
clipping:
|
|
6009
|
-
}), !
|
|
6010
|
-
if (O = !0, q =
|
|
6007
|
+
clipping: W
|
|
6008
|
+
}), !W && Q) {
|
|
6009
|
+
if (O = !0, q = I.blendMode || "normal", z) {
|
|
6011
6010
|
if (z.clearRect(0, 0, b, D), z.globalCompositeOperation = "source-over", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6012
6011
|
if (A.maskData) {
|
|
6013
6012
|
const K = d0(b, D), G = A0(K);
|
|
@@ -6023,7 +6022,7 @@ async function Hx(r) {
|
|
|
6023
6022
|
) : z.drawImage(_, 0, 0));
|
|
6024
6023
|
z.globalAlpha = 1;
|
|
6025
6024
|
}
|
|
6026
|
-
} else if (
|
|
6025
|
+
} else if (W) {
|
|
6027
6026
|
if (z) {
|
|
6028
6027
|
if (z.globalCompositeOperation = "source-atop", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6029
6028
|
if (A.maskData) {
|
|
@@ -6041,7 +6040,7 @@ async function Hx(r) {
|
|
|
6041
6040
|
z.globalAlpha = 1, z.globalCompositeOperation = "source-over";
|
|
6042
6041
|
}
|
|
6043
6042
|
} else {
|
|
6044
|
-
if (k.globalCompositeOperation =
|
|
6043
|
+
if (k.globalCompositeOperation = Ir(I.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6045
6044
|
if (A.maskData) {
|
|
6046
6045
|
const K = d0(b, D), G = A0(K);
|
|
6047
6046
|
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), k.drawImage(K, 0, 0));
|
|
@@ -6056,9 +6055,9 @@ async function Hx(r) {
|
|
|
6056
6055
|
) : k.drawImage(_, 0, 0));
|
|
6057
6056
|
k.globalAlpha = 1, k.globalCompositeOperation = "source-over";
|
|
6058
6057
|
}
|
|
6059
|
-
O && !Q && (k.globalCompositeOperation =
|
|
6058
|
+
O && !Q && (k.globalCompositeOperation = Ir(q), k.drawImage($, 0, 0), k.globalCompositeOperation = "source-over", O = !1);
|
|
6060
6059
|
}
|
|
6061
|
-
|
|
6060
|
+
$ = null, z = null;
|
|
6062
6061
|
let U = y, T = b, N = D;
|
|
6063
6062
|
if (C !== void 0 || x !== void 0) {
|
|
6064
6063
|
if (C !== void 0 && x !== void 0)
|
|
@@ -6074,21 +6073,21 @@ async function Hx(r) {
|
|
|
6074
6073
|
const c = Fe(U);
|
|
6075
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}`);
|
|
6076
6075
|
}
|
|
6077
|
-
const S = performance.now() -
|
|
6076
|
+
const S = performance.now() - p;
|
|
6078
6077
|
return e(`[renderByJson] 绘制完成,总渲染时间: ${Math.round(S)}ms`), {
|
|
6079
6078
|
canvas: U,
|
|
6080
6079
|
width: T,
|
|
6081
6080
|
height: N
|
|
6082
6081
|
};
|
|
6083
6082
|
}
|
|
6084
|
-
const
|
|
6083
|
+
const $x = async (r) => {
|
|
6085
6084
|
const t = (await Hx(r)).canvas;
|
|
6086
6085
|
return t ? createImageBitmap(t) : null;
|
|
6087
6086
|
};
|
|
6088
6087
|
self.onmessage = async (r) => {
|
|
6089
|
-
const
|
|
6090
|
-
if (
|
|
6091
|
-
const e =
|
|
6088
|
+
const p = r.data;
|
|
6089
|
+
if (p && typeof p == "object" && "type" in p && p.type === "SET_LICENSE") {
|
|
6090
|
+
const e = p;
|
|
6092
6091
|
Dx({
|
|
6093
6092
|
token: e.licenseToken,
|
|
6094
6093
|
apiUrl: e.licenseApiUrl,
|
|
@@ -6097,9 +6096,9 @@ self.onmessage = async (r) => {
|
|
|
6097
6096
|
});
|
|
6098
6097
|
return;
|
|
6099
6098
|
}
|
|
6100
|
-
const t =
|
|
6099
|
+
const t = p;
|
|
6101
6100
|
try {
|
|
6102
|
-
const e = await
|
|
6101
|
+
const e = await $x(t.renderData);
|
|
6103
6102
|
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|
|
6104
6103
|
} catch (e) {
|
|
6105
6104
|
self.postMessage({
|