@farris/ui-vue 1.2.8 → 1.2.9
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/components/accordion/index.esm.js +129 -129
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +166 -157
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.esm.js +343 -325
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +338 -338
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +182 -182
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +326 -317
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +118 -118
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.esm.js +338 -325
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +62 -62
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +382 -270
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.esm.js +1018 -895
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +285 -212
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +4761 -4319
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.esm.js +2901 -2664
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.esm.js +1502 -1488
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +27 -27
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +241 -241
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.esm.js +1074 -885
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +99 -94
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +577 -522
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +70 -70
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +2938 -2619
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +4766 -4325
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1231 -1215
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +373 -373
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +398 -394
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +268 -268
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +234 -161
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2288 -2048
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +5776 -5305
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5496 -5036
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +383 -322
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +273 -269
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +292 -283
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1008 -925
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +98 -98
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +949 -847
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +464 -403
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +226 -226
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.esm.js +1110 -1092
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +520 -513
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +1714 -1575
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +67 -67
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +298 -289
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +195 -190
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +112 -112
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.esm.js +902 -877
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +874 -778
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4594 -4289
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +126 -126
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +645 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +120 -120
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +421 -348
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +219 -219
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +232 -222
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.esm.js +1823 -1744
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +399 -401
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +164 -164
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +220 -215
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.esm.js +693 -666
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +422 -413
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +4799 -4358
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.esm.js +2448 -2215
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +164 -164
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +143 -143
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +410 -331
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +901 -901
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +12305 -11403
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -6
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
|
@@ -4,43 +4,43 @@ import { cloneDeep as Zr } from "lodash-es";
|
|
|
4
4
|
import * as f0 from "echarts";
|
|
5
5
|
import Kr from "../progress/index.esm.js";
|
|
6
6
|
const yr = {}, Er = {};
|
|
7
|
-
function Be(
|
|
8
|
-
const { properties: C, title:
|
|
9
|
-
return r.id = `${
|
|
7
|
+
function Be(o) {
|
|
8
|
+
const { properties: C, title: i, ignore: r } = o, f = r && Array.isArray(r), g = Object.keys(C).reduce((m, p) => ((!f || !r.find((B) => B == p)) && (m[p] = C[p].type === "object" && C[p].properties ? Be(C[p]) : Zr(C[p].default)), m), {});
|
|
9
|
+
return (!f || !r.find((m) => m == "id")) && (g.id = `${i}-${Date.now()}`), g;
|
|
10
10
|
}
|
|
11
|
-
function de(
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
return
|
|
11
|
+
function de(o, C = {}, i) {
|
|
12
|
+
const r = yr[o];
|
|
13
|
+
if (r) {
|
|
14
|
+
let f = Be(r);
|
|
15
|
+
const g = Er[o];
|
|
16
|
+
return f = g ? g({ getSchemaByType: de }, f, C, i) : f, f;
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
|
-
function Vr(
|
|
21
|
-
const
|
|
22
|
-
return Object.keys(
|
|
20
|
+
function Vr(o, C) {
|
|
21
|
+
const i = Be(C);
|
|
22
|
+
return Object.keys(o).reduce((r, f) => (r[f] && typeof r[f] == "object" ? Object.assign(r[f], o[f]) : r[f] = o[f], r), i), i;
|
|
23
23
|
}
|
|
24
|
-
function Yr(
|
|
25
|
-
return Object.keys(
|
|
24
|
+
function Yr(o, C) {
|
|
25
|
+
return Object.keys(o).filter((r) => o[r] != null).reduce((r, f) => {
|
|
26
26
|
if (C.has(f)) {
|
|
27
27
|
const g = C.get(f);
|
|
28
28
|
if (typeof g == "string")
|
|
29
|
-
r[g] =
|
|
29
|
+
r[g] = o[f];
|
|
30
30
|
else {
|
|
31
|
-
const
|
|
32
|
-
Object.assign(r,
|
|
31
|
+
const m = g(f, o[f], o);
|
|
32
|
+
Object.assign(r, m);
|
|
33
33
|
}
|
|
34
34
|
} else
|
|
35
|
-
r[f] =
|
|
35
|
+
r[f] = o[f];
|
|
36
36
|
return r;
|
|
37
37
|
}, {});
|
|
38
38
|
}
|
|
39
|
-
function Qr(
|
|
40
|
-
const r = Vr(
|
|
41
|
-
return Yr(r,
|
|
39
|
+
function Qr(o, C, i = /* @__PURE__ */ new Map()) {
|
|
40
|
+
const r = Vr(o, C);
|
|
41
|
+
return Yr(r, i);
|
|
42
42
|
}
|
|
43
|
-
function Jr(
|
|
43
|
+
function Jr(o = {}) {
|
|
44
44
|
function C(e, t, l, n) {
|
|
45
45
|
if (typeof l == "number")
|
|
46
46
|
return n[e].length === l;
|
|
@@ -55,14 +55,14 @@ function Jr(i = {}) {
|
|
|
55
55
|
}
|
|
56
56
|
return !1;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function i(e, t, l, n) {
|
|
59
59
|
return n[e] && n[e].propertyValue && String(n[e].propertyValue.value) === String(l);
|
|
60
60
|
}
|
|
61
61
|
const r = /* @__PURE__ */ new Map([
|
|
62
62
|
["length", C],
|
|
63
|
-
["getProperty",
|
|
63
|
+
["getProperty", i]
|
|
64
64
|
]);
|
|
65
|
-
Object.keys(
|
|
65
|
+
Object.keys(o).reduce((e, t) => (e.set(t, o[t]), e), r);
|
|
66
66
|
function f(e, t) {
|
|
67
67
|
const l = e;
|
|
68
68
|
return typeof t == "number" ? [{ target: l, operator: "length", param: null, value: Number(t) }] : typeof t == "boolean" ? [{ target: l, operator: "getProperty", param: e, value: !!t }] : typeof t == "object" ? Object.keys(t).map((n) => {
|
|
@@ -78,37 +78,37 @@ function Jr(i = {}) {
|
|
|
78
78
|
return l.push(...s), l;
|
|
79
79
|
}, []);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function m(e, t) {
|
|
82
82
|
if (r.has(e.operator)) {
|
|
83
83
|
const l = r.get(e.operator);
|
|
84
84
|
return l && l(e.target, e.param, e.value, t) || !1;
|
|
85
85
|
}
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
|
-
function B(e, t) {
|
|
89
|
-
return g(e).reduce((s, c) => s && F(c, t), !0);
|
|
90
|
-
}
|
|
91
88
|
function p(e, t) {
|
|
92
|
-
|
|
89
|
+
return g(e).reduce((s, c) => s && m(c, t), !0);
|
|
90
|
+
}
|
|
91
|
+
function B(e, t) {
|
|
92
|
+
const l = Object.keys(e), n = l.includes("allOf"), s = l.includes("anyOf"), c = n || s, d = (c ? e[c ? n ? "allOf" : "anyOf" : "allOf"] : [e]).map((x) => p(x, t));
|
|
93
93
|
return n ? !d.includes(!1) : d.includes(!0);
|
|
94
94
|
}
|
|
95
|
-
return { parseValueSchema:
|
|
95
|
+
return { parseValueSchema: B };
|
|
96
96
|
}
|
|
97
97
|
const et = {}, rt = {};
|
|
98
98
|
Jr();
|
|
99
|
-
function
|
|
100
|
-
return yr[C.title] = C, Er[C.title] = r, et[C.title] = f, rt[C.title] = g, (
|
|
101
|
-
const
|
|
102
|
-
return Object.assign(
|
|
99
|
+
function Ar(o, C, i = /* @__PURE__ */ new Map(), r = (m, p, B) => p, f = {}, g = (m) => m) {
|
|
100
|
+
return yr[C.title] = C, Er[C.title] = r, et[C.title] = f, rt[C.title] = g, (m = {}) => {
|
|
101
|
+
const p = Qr(m, C, i), B = Object.keys(o).reduce((e, t) => (e[t] = o[t].default, e), {});
|
|
102
|
+
return Object.assign(B, p);
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function mr(o, C) {
|
|
106
106
|
return { customClass: C.class, customStyle: C.style };
|
|
107
107
|
}
|
|
108
108
|
const tt = /* @__PURE__ */ new Map([
|
|
109
|
-
["appearance",
|
|
109
|
+
["appearance", mr]
|
|
110
110
|
]);
|
|
111
|
-
function nt(
|
|
111
|
+
function nt(o, C, i) {
|
|
112
112
|
return C;
|
|
113
113
|
}
|
|
114
114
|
const at = "https://json-schema.org/draft/2020-12/schema", ot = "https://farris-design.gitee.io/weather.schema.json", it = "weather", xt = "A Farris Input Component", st = "object", ct = {
|
|
@@ -430,23 +430,23 @@ const at = "https://json-schema.org/draft/2020-12/schema", ot = "https://farris-
|
|
|
430
430
|
data: { type: Object, default: Bt },
|
|
431
431
|
/** 主题参数 */
|
|
432
432
|
theme: { type: Number, default: 1 }
|
|
433
|
-
}, Te =
|
|
434
|
-
function Fr(
|
|
435
|
-
function
|
|
433
|
+
}, Te = Ar(Ce, ft, tt, nt, pt);
|
|
434
|
+
function Fr(o, C) {
|
|
435
|
+
function i(r) {
|
|
436
436
|
return r < 10 ? "0" + r : r;
|
|
437
437
|
}
|
|
438
438
|
return {
|
|
439
|
-
addZero:
|
|
439
|
+
addZero: i
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
function _0(
|
|
443
|
-
const
|
|
442
|
+
function _0(o, C) {
|
|
443
|
+
const i = j(o.data.data);
|
|
444
444
|
return {
|
|
445
|
-
colorTheme: L(() => (/* @__PURE__ */ new Date()).getTime() -
|
|
445
|
+
colorTheme: L(() => (/* @__PURE__ */ new Date()).getTime() - i.value.default.sunriseTime.getTime() < 0 || i.value.default.sunsetTime.getTime() - (/* @__PURE__ */ new Date()).getTime() < 0 ? ["#151276", "#7939e0", "#332396", "#814ca7"] : (/* @__PURE__ */ new Date()).getTime() - i.value.default.sunriseTime.getTime() < 36e5 ? ["#49417b", "#f1b655", "#b1785b", "#d99877"] : i.value.default.sunsetTime.getTime() - (/* @__PURE__ */ new Date()).getTime() < 36e5 ? ["#9e2e2e", "#f59b0b", "#c15334", "#ff7361"] : ["#0273D7", "#76BAFF", "#388FFF", "#75C6FE"])
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
function ge(
|
|
449
|
-
const
|
|
448
|
+
function ge(o, C) {
|
|
449
|
+
const i = j(o.data.data), r = _0(o);
|
|
450
450
|
function f() {
|
|
451
451
|
let e = f0.getInstanceByDom(document.getElementById("sunset"));
|
|
452
452
|
e || (e = f0.init(document.getElementById("sunset"), null, {
|
|
@@ -455,7 +455,7 @@ function ge(i, C) {
|
|
|
455
455
|
})), e.setOption({
|
|
456
456
|
series: [{
|
|
457
457
|
data: [{
|
|
458
|
-
value: (/* @__PURE__ */ new Date()).getTime() -
|
|
458
|
+
value: (/* @__PURE__ */ new Date()).getTime() - i.value.default.sunriseTime.getTime(),
|
|
459
459
|
itemStyle: {
|
|
460
460
|
borderRadius: 10,
|
|
461
461
|
color: {
|
|
@@ -474,7 +474,7 @@ function ge(i, C) {
|
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
}, {
|
|
477
|
-
value:
|
|
477
|
+
value: i.value.default.sunsetTime.getTime() - (/* @__PURE__ */ new Date()).getTime(),
|
|
478
478
|
itemStyle: {
|
|
479
479
|
opacity: 0
|
|
480
480
|
}
|
|
@@ -539,7 +539,7 @@ function ge(i, C) {
|
|
|
539
539
|
show: !1
|
|
540
540
|
},
|
|
541
541
|
series: [{
|
|
542
|
-
data:
|
|
542
|
+
data: i.value.default.dayItemsSet[e].map((l) => l.temp),
|
|
543
543
|
type: "line",
|
|
544
544
|
itemStyle: {
|
|
545
545
|
color: "white"
|
|
@@ -547,7 +547,7 @@ function ge(i, C) {
|
|
|
547
547
|
}]
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function m() {
|
|
551
551
|
const e = document.getElementById("background");
|
|
552
552
|
if (e) {
|
|
553
553
|
const t = e.getBoundingClientRect().width, l = Math.max(t, 400) * 1.11;
|
|
@@ -571,13 +571,13 @@ function ge(i, C) {
|
|
|
571
571
|
show: !1
|
|
572
572
|
},
|
|
573
573
|
series: [{
|
|
574
|
-
data:
|
|
574
|
+
data: i.value.default.weekItems.map((s) => s.min),
|
|
575
575
|
type: "line",
|
|
576
576
|
itemStyle: {
|
|
577
577
|
color: "#5C90F9"
|
|
578
578
|
}
|
|
579
579
|
}, {
|
|
580
|
-
data:
|
|
580
|
+
data: i.value.default.weekItems.map((s) => s.max),
|
|
581
581
|
type: "line",
|
|
582
582
|
itemStyle: {
|
|
583
583
|
color: "#FC9657"
|
|
@@ -586,25 +586,25 @@ function ge(i, C) {
|
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function p() {
|
|
590
590
|
const e = document.getElementById("airPoint"), t = document.getElementById("background");
|
|
591
|
-
e && t && (e.style.marginLeft =
|
|
591
|
+
e && t && (e.style.marginLeft = i.value.default.air / 500 * (t.getBoundingClientRect().width - 50) - 5 + "px");
|
|
592
592
|
}
|
|
593
|
-
function
|
|
594
|
-
f(), g(e),
|
|
593
|
+
function B(e) {
|
|
594
|
+
f(), g(e), m(), p();
|
|
595
595
|
}
|
|
596
596
|
return {
|
|
597
597
|
renderChart24h: g,
|
|
598
|
-
renderChart7d:
|
|
599
|
-
renderCharts:
|
|
598
|
+
renderChart7d: m,
|
|
599
|
+
renderCharts: B
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
|
-
function Ct(
|
|
603
|
-
const
|
|
604
|
-
function
|
|
602
|
+
function Ct(o, C) {
|
|
603
|
+
const i = j(), r = j(o.data.data), f = j(0), g = Fr(), m = ge(o);
|
|
604
|
+
function p(u) {
|
|
605
605
|
f.value = u;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function B(u) {
|
|
608
608
|
switch (u) {
|
|
609
609
|
case 0:
|
|
610
610
|
return "今天";
|
|
@@ -636,11 +636,11 @@ function Ct(i, C) {
|
|
|
636
636
|
return g.addZero(d.getMonth() + 1) + "/" + g.addZero(d.getDate());
|
|
637
637
|
}
|
|
638
638
|
function t() {
|
|
639
|
-
const d =
|
|
639
|
+
const d = i.value.getBoundingClientRect().width - 120, a = document.getElementById("f-weather-24h-content");
|
|
640
640
|
a && (a.offsetLeft + d > -32 ? a.style.marginLeft = "-32px" : a.style.marginLeft = a.offsetLeft + d + "px");
|
|
641
641
|
}
|
|
642
642
|
function l() {
|
|
643
|
-
const u =
|
|
643
|
+
const u = i.value.getBoundingClientRect().width, d = u - 120, a = document.getElementById("f-weather-24h-content");
|
|
644
644
|
if (a) {
|
|
645
645
|
const x = a.scrollWidth - u - 130;
|
|
646
646
|
a.offsetLeft - d < -x ? a.style.marginLeft = "-" + x + "px" : a.style.marginLeft = a.offsetLeft - d + "px";
|
|
@@ -655,7 +655,7 @@ function Ct(i, C) {
|
|
|
655
655
|
}
|
|
656
656
|
Cr(f, () => {
|
|
657
657
|
const u = document.getElementById("f-weather-24h-content");
|
|
658
|
-
u.style.marginLeft = "-32px",
|
|
658
|
+
u.style.marginLeft = "-32px", m.renderChart24h(f.value);
|
|
659
659
|
});
|
|
660
660
|
function s() {
|
|
661
661
|
return k("div", {
|
|
@@ -700,10 +700,10 @@ function Ct(i, C) {
|
|
|
700
700
|
id: "day" + d,
|
|
701
701
|
class: "f-weather-7d-td",
|
|
702
702
|
style: "background-color: " + (d === f.value ? "rgba(0, 0, 0, 0.05)" : "none"),
|
|
703
|
-
onClick: () =>
|
|
703
|
+
onClick: () => p(d)
|
|
704
704
|
}, [k("div", {
|
|
705
705
|
class: "f-weather-7d-td-title"
|
|
706
|
-
}, [
|
|
706
|
+
}, [B(d)]), k("div", {
|
|
707
707
|
class: "f-weather-7d-td-date"
|
|
708
708
|
}, [e(d)]), k("img", {
|
|
709
709
|
src: "http://mat1.gtimg.com/pingjs/ext2020/weather/pc/icon/weather/day/" + u.icon + ".png",
|
|
@@ -717,17 +717,17 @@ function Ct(i, C) {
|
|
|
717
717
|
}
|
|
718
718
|
function v() {
|
|
719
719
|
return k("div", {
|
|
720
|
-
ref:
|
|
720
|
+
ref: i
|
|
721
721
|
}, [s(), c()]);
|
|
722
722
|
}
|
|
723
723
|
return {
|
|
724
724
|
renderWeatherReport: v
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
function gt(
|
|
728
|
-
const
|
|
727
|
+
function gt(o, C) {
|
|
728
|
+
const i = j(o.data.data);
|
|
729
729
|
function r() {
|
|
730
|
-
return k("div", null, [
|
|
730
|
+
return k("div", null, [i.value.default.proindexItemsSet.map((f) => k("tr", {
|
|
731
731
|
class: "f-weather-proindex-tr"
|
|
732
732
|
}, [f.map((g) => k("td", {
|
|
733
733
|
class: "f-weather-proindex-td"
|
|
@@ -754,27 +754,27 @@ function gt(i, C) {
|
|
|
754
754
|
renderWeatherProindex: r
|
|
755
755
|
};
|
|
756
756
|
}
|
|
757
|
-
function yt(
|
|
758
|
-
const
|
|
757
|
+
function yt(o, C) {
|
|
758
|
+
const i = j(!0), r = _0(o), {
|
|
759
759
|
renderWeatherReport: f
|
|
760
|
-
} = Ct(
|
|
760
|
+
} = Ct(o), {
|
|
761
761
|
renderWeatherProindex: g
|
|
762
|
-
} = gt(
|
|
763
|
-
"background-color":
|
|
764
|
-
color:
|
|
765
|
-
})), B = L(() => ({
|
|
766
|
-
"background-color": o.value ? "" : r.colorTheme.value[2],
|
|
767
|
-
color: o.value ? "" : "white"
|
|
762
|
+
} = gt(o), m = L(() => ({
|
|
763
|
+
"background-color": i.value ? r.colorTheme.value[2] : "",
|
|
764
|
+
color: i.value ? "white" : ""
|
|
768
765
|
})), p = L(() => ({
|
|
769
|
-
|
|
766
|
+
"background-color": i.value ? "" : r.colorTheme.value[2],
|
|
767
|
+
color: i.value ? "" : "white"
|
|
768
|
+
})), B = L(() => ({
|
|
769
|
+
display: i.value ? "block" : "none"
|
|
770
770
|
})), e = L(() => ({
|
|
771
|
-
display:
|
|
771
|
+
display: i.value ? "none" : "block"
|
|
772
772
|
}));
|
|
773
773
|
function t() {
|
|
774
|
-
|
|
774
|
+
i.value = !0;
|
|
775
775
|
}
|
|
776
776
|
function l() {
|
|
777
|
-
|
|
777
|
+
i.value = !1;
|
|
778
778
|
}
|
|
779
779
|
function n() {
|
|
780
780
|
return k("div", {
|
|
@@ -783,14 +783,14 @@ function yt(i, C) {
|
|
|
783
783
|
style: "display:flex"
|
|
784
784
|
}, [k("button", {
|
|
785
785
|
class: "f-weather-button f-weather-button-report",
|
|
786
|
-
style:
|
|
786
|
+
style: m.value,
|
|
787
787
|
onClick: t
|
|
788
788
|
}, [t0("天气预报")]), k("button", {
|
|
789
789
|
class: "f-weather-button f-weather-button-proindex",
|
|
790
|
-
style:
|
|
790
|
+
style: p.value,
|
|
791
791
|
onClick: l
|
|
792
792
|
}, [t0("其它参数")])]), k("div", {
|
|
793
|
-
style:
|
|
793
|
+
style: B.value
|
|
794
794
|
}, [f()]), k("div", {
|
|
795
795
|
style: e.value
|
|
796
796
|
}, [g()])]);
|
|
@@ -800,100 +800,100 @@ function yt(i, C) {
|
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
802
|
var O = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
803
|
-
function Dr(
|
|
804
|
-
return
|
|
803
|
+
function Dr(o) {
|
|
804
|
+
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
805
805
|
}
|
|
806
|
-
function Et(
|
|
807
|
-
if (
|
|
808
|
-
var C =
|
|
806
|
+
function Et(o) {
|
|
807
|
+
if (o.__esModule) return o;
|
|
808
|
+
var C = o.default;
|
|
809
809
|
if (typeof C == "function") {
|
|
810
|
-
var
|
|
810
|
+
var i = function r() {
|
|
811
811
|
return this instanceof r ? Reflect.construct(C, arguments, this.constructor) : C.apply(this, arguments);
|
|
812
812
|
};
|
|
813
|
-
|
|
814
|
-
} else
|
|
815
|
-
return Object.defineProperty(
|
|
816
|
-
var f = Object.getOwnPropertyDescriptor(
|
|
817
|
-
Object.defineProperty(
|
|
813
|
+
i.prototype = C.prototype;
|
|
814
|
+
} else i = {};
|
|
815
|
+
return Object.defineProperty(i, "__esModule", { value: !0 }), Object.keys(o).forEach(function(r) {
|
|
816
|
+
var f = Object.getOwnPropertyDescriptor(o, r);
|
|
817
|
+
Object.defineProperty(i, r, f.get ? f : {
|
|
818
818
|
enumerable: !0,
|
|
819
819
|
get: function() {
|
|
820
|
-
return
|
|
820
|
+
return o[r];
|
|
821
821
|
}
|
|
822
822
|
});
|
|
823
|
-
}),
|
|
823
|
+
}), i;
|
|
824
824
|
}
|
|
825
|
-
var ve = { exports: {} }, he = { exports: {} }, g0 = 1e3, y0 = g0 * 60, E0 = y0 * 60,
|
|
825
|
+
var ve = { exports: {} }, he = { exports: {} }, g0 = 1e3, y0 = g0 * 60, E0 = y0 * 60, A0 = E0 * 24, At = A0 * 365.25, mt = function(o, C) {
|
|
826
826
|
C = C || {};
|
|
827
|
-
var
|
|
828
|
-
if (
|
|
829
|
-
return Ft(
|
|
830
|
-
if (
|
|
831
|
-
return C.long ? bt(
|
|
827
|
+
var i = typeof o;
|
|
828
|
+
if (i === "string" && o.length > 0)
|
|
829
|
+
return Ft(o);
|
|
830
|
+
if (i === "number" && isNaN(o) === !1)
|
|
831
|
+
return C.long ? bt(o) : Dt(o);
|
|
832
832
|
throw new Error(
|
|
833
|
-
"val is not a non-empty string or a valid number. val=" + JSON.stringify(
|
|
833
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(o)
|
|
834
834
|
);
|
|
835
835
|
};
|
|
836
|
-
function Ft(
|
|
837
|
-
if (
|
|
836
|
+
function Ft(o) {
|
|
837
|
+
if (o = String(o), !(o.length > 100)) {
|
|
838
838
|
var C = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
|
|
839
|
-
|
|
839
|
+
o
|
|
840
840
|
);
|
|
841
841
|
if (C) {
|
|
842
|
-
var
|
|
842
|
+
var i = parseFloat(C[1]), r = (C[2] || "ms").toLowerCase();
|
|
843
843
|
switch (r) {
|
|
844
844
|
case "years":
|
|
845
845
|
case "year":
|
|
846
846
|
case "yrs":
|
|
847
847
|
case "yr":
|
|
848
848
|
case "y":
|
|
849
|
-
return
|
|
849
|
+
return i * At;
|
|
850
850
|
case "days":
|
|
851
851
|
case "day":
|
|
852
852
|
case "d":
|
|
853
|
-
return
|
|
853
|
+
return i * A0;
|
|
854
854
|
case "hours":
|
|
855
855
|
case "hour":
|
|
856
856
|
case "hrs":
|
|
857
857
|
case "hr":
|
|
858
858
|
case "h":
|
|
859
|
-
return
|
|
859
|
+
return i * E0;
|
|
860
860
|
case "minutes":
|
|
861
861
|
case "minute":
|
|
862
862
|
case "mins":
|
|
863
863
|
case "min":
|
|
864
864
|
case "m":
|
|
865
|
-
return
|
|
865
|
+
return i * y0;
|
|
866
866
|
case "seconds":
|
|
867
867
|
case "second":
|
|
868
868
|
case "secs":
|
|
869
869
|
case "sec":
|
|
870
870
|
case "s":
|
|
871
|
-
return
|
|
871
|
+
return i * g0;
|
|
872
872
|
case "milliseconds":
|
|
873
873
|
case "millisecond":
|
|
874
874
|
case "msecs":
|
|
875
875
|
case "msec":
|
|
876
876
|
case "ms":
|
|
877
|
-
return
|
|
877
|
+
return i;
|
|
878
878
|
default:
|
|
879
879
|
return;
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
function Dt(
|
|
885
|
-
return
|
|
884
|
+
function Dt(o) {
|
|
885
|
+
return o >= A0 ? Math.round(o / A0) + "d" : o >= E0 ? Math.round(o / E0) + "h" : o >= y0 ? Math.round(o / y0) + "m" : o >= g0 ? Math.round(o / g0) + "s" : o + "ms";
|
|
886
886
|
}
|
|
887
|
-
function bt(
|
|
888
|
-
return b0(
|
|
887
|
+
function bt(o) {
|
|
888
|
+
return b0(o, A0, "day") || b0(o, E0, "hour") || b0(o, y0, "minute") || b0(o, g0, "second") || o + " ms";
|
|
889
889
|
}
|
|
890
|
-
function b0(
|
|
891
|
-
if (!(
|
|
892
|
-
return
|
|
890
|
+
function b0(o, C, i) {
|
|
891
|
+
if (!(o < C))
|
|
892
|
+
return o < C * 1.5 ? Math.floor(o / C) + " " + i : Math.ceil(o / C) + " " + i + "s";
|
|
893
893
|
}
|
|
894
|
-
(function(
|
|
895
|
-
C =
|
|
896
|
-
var
|
|
894
|
+
(function(o, C) {
|
|
895
|
+
C = o.exports = f.debug = f.default = f, C.coerce = B, C.disable = m, C.enable = g, C.enabled = p, C.humanize = mt, C.names = [], C.skips = [], C.formatters = {};
|
|
896
|
+
var i;
|
|
897
897
|
function r(e) {
|
|
898
898
|
var t = 0, l;
|
|
899
899
|
for (l in e)
|
|
@@ -903,8 +903,8 @@ function b0(i, C, o) {
|
|
|
903
903
|
function f(e) {
|
|
904
904
|
function t() {
|
|
905
905
|
if (t.enabled) {
|
|
906
|
-
var l = t, n = +/* @__PURE__ */ new Date(), s = n - (
|
|
907
|
-
l.diff = s, l.prev =
|
|
906
|
+
var l = t, n = +/* @__PURE__ */ new Date(), s = n - (i || n);
|
|
907
|
+
l.diff = s, l.prev = i, l.curr = n, i = n;
|
|
908
908
|
for (var c = new Array(arguments.length), v = 0; v < c.length; v++)
|
|
909
909
|
c[v] = arguments[v];
|
|
910
910
|
c[0] = C.coerce(c[0]), typeof c[0] != "string" && c.unshift("%O");
|
|
@@ -914,8 +914,8 @@ function b0(i, C, o) {
|
|
|
914
914
|
u++;
|
|
915
915
|
var h = C.formatters[x];
|
|
916
916
|
if (typeof h == "function") {
|
|
917
|
-
var
|
|
918
|
-
a = h.call(l,
|
|
917
|
+
var A = c[u];
|
|
918
|
+
a = h.call(l, A), c.splice(u, 1), u--;
|
|
919
919
|
}
|
|
920
920
|
return a;
|
|
921
921
|
}), C.formatArgs.call(l, c);
|
|
@@ -930,10 +930,10 @@ function b0(i, C, o) {
|
|
|
930
930
|
for (var t = (typeof e == "string" ? e : "").split(/[\s,]+/), l = t.length, n = 0; n < l; n++)
|
|
931
931
|
t[n] && (e = t[n].replace(/\*/g, ".*?"), e[0] === "-" ? C.skips.push(new RegExp("^" + e.substr(1) + "$")) : C.names.push(new RegExp("^" + e + "$")));
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function m() {
|
|
934
934
|
C.enable("");
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function p(e) {
|
|
937
937
|
var t, l;
|
|
938
938
|
for (t = 0, l = C.skips.length; t < l; t++)
|
|
939
939
|
if (C.skips[t].test(e))
|
|
@@ -943,13 +943,13 @@ function b0(i, C, o) {
|
|
|
943
943
|
return !0;
|
|
944
944
|
return !1;
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function B(e) {
|
|
947
947
|
return e instanceof Error ? e.stack || e.message : e;
|
|
948
948
|
}
|
|
949
949
|
})(he, he.exports);
|
|
950
950
|
var wt = he.exports;
|
|
951
|
-
(function(
|
|
952
|
-
C =
|
|
951
|
+
(function(o, C) {
|
|
952
|
+
C = o.exports = wt, C.log = f, C.formatArgs = r, C.save = g, C.load = m, C.useColors = i, C.storage = typeof chrome < "u" && typeof chrome.storage < "u" ? chrome.storage.local : p(), C.colors = [
|
|
953
953
|
"lightseagreen",
|
|
954
954
|
"forestgreen",
|
|
955
955
|
"goldenrod",
|
|
@@ -957,50 +957,50 @@ var wt = he.exports;
|
|
|
957
957
|
"darkorchid",
|
|
958
958
|
"crimson"
|
|
959
959
|
];
|
|
960
|
-
function
|
|
960
|
+
function i() {
|
|
961
961
|
return typeof window < "u" && window.process && window.process.type === "renderer" ? !0 : typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // is firebug? http://stackoverflow.com/a/398120/376773
|
|
962
962
|
typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // is firefox >= v31?
|
|
963
963
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
964
964
|
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // double check webkit in userAgent just in case we are in a worker
|
|
965
965
|
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
966
966
|
}
|
|
967
|
-
C.formatters.j = function(
|
|
967
|
+
C.formatters.j = function(B) {
|
|
968
968
|
try {
|
|
969
|
-
return JSON.stringify(
|
|
969
|
+
return JSON.stringify(B);
|
|
970
970
|
} catch (e) {
|
|
971
971
|
return "[UnexpectedJSONParseError]: " + e.message;
|
|
972
972
|
}
|
|
973
973
|
};
|
|
974
|
-
function r(
|
|
974
|
+
function r(B) {
|
|
975
975
|
var e = this.useColors;
|
|
976
|
-
if (
|
|
976
|
+
if (B[0] = (e ? "%c" : "") + this.namespace + (e ? " %c" : " ") + B[0] + (e ? "%c " : " ") + "+" + C.humanize(this.diff), !!e) {
|
|
977
977
|
var t = "color: " + this.color;
|
|
978
|
-
|
|
978
|
+
B.splice(1, 0, t, "color: inherit");
|
|
979
979
|
var l = 0, n = 0;
|
|
980
|
-
|
|
980
|
+
B[0].replace(/%[a-zA-Z%]/g, function(s) {
|
|
981
981
|
s !== "%%" && (l++, s === "%c" && (n = l));
|
|
982
|
-
}),
|
|
982
|
+
}), B.splice(n, 0, t);
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
function f() {
|
|
986
986
|
return typeof console == "object" && console.log && Function.prototype.apply.call(console.log, console, arguments);
|
|
987
987
|
}
|
|
988
|
-
function g(
|
|
988
|
+
function g(B) {
|
|
989
989
|
try {
|
|
990
|
-
|
|
990
|
+
B == null ? C.storage.removeItem("debug") : C.storage.debug = B;
|
|
991
991
|
} catch {
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
|
-
function
|
|
995
|
-
var
|
|
994
|
+
function m() {
|
|
995
|
+
var B;
|
|
996
996
|
try {
|
|
997
|
-
|
|
997
|
+
B = C.storage.debug;
|
|
998
998
|
} catch {
|
|
999
999
|
}
|
|
1000
|
-
return !
|
|
1000
|
+
return !B && typeof process < "u" && "env" in process && (B = process.env.DEBUG), B;
|
|
1001
1001
|
}
|
|
1002
|
-
C.enable(
|
|
1003
|
-
function
|
|
1002
|
+
C.enable(m());
|
|
1003
|
+
function p() {
|
|
1004
1004
|
try {
|
|
1005
1005
|
return window.localStorage;
|
|
1006
1006
|
} catch {
|
|
@@ -1010,12 +1010,12 @@ var wt = he.exports;
|
|
|
1010
1010
|
var _t = ve.exports, We = _t("jsonp"), kt = Ht, St = 0;
|
|
1011
1011
|
function Pt() {
|
|
1012
1012
|
}
|
|
1013
|
-
function Ht(
|
|
1014
|
-
typeof C == "function" && (
|
|
1015
|
-
var r = C.prefix || "__jp", f = C.name || r + St++, g = C.param || "callback",
|
|
1016
|
-
|
|
1017
|
-
l(),
|
|
1018
|
-
},
|
|
1013
|
+
function Ht(o, C, i) {
|
|
1014
|
+
typeof C == "function" && (i = C, C = {}), C || (C = {});
|
|
1015
|
+
var r = C.prefix || "__jp", f = C.name || r + St++, g = C.param || "callback", m = C.timeout != null ? C.timeout : 6e4, p = encodeURIComponent, B = document.getElementsByTagName("script")[0] || document.head, e, t;
|
|
1016
|
+
m && (t = setTimeout(function() {
|
|
1017
|
+
l(), i && i(new Error("Timeout"));
|
|
1018
|
+
}, m));
|
|
1019
1019
|
function l() {
|
|
1020
1020
|
e.parentNode && e.parentNode.removeChild(e), window[f] = Pt, t && clearTimeout(t);
|
|
1021
1021
|
}
|
|
@@ -1023,13 +1023,13 @@ function Ht(i, C, o) {
|
|
|
1023
1023
|
window[f] && l();
|
|
1024
1024
|
}
|
|
1025
1025
|
return window[f] = function(s) {
|
|
1026
|
-
We("jsonp got", s), l(),
|
|
1027
|
-
},
|
|
1026
|
+
We("jsonp got", s), l(), i && i(null, s);
|
|
1027
|
+
}, o += (~o.indexOf("?") ? "&" : "?") + g + "=" + p(f), o = o.replace("?&", "?"), We('jsonp req "%s"', o), e = document.createElement("script"), e.src = o, B.parentNode.insertBefore(e, B), n;
|
|
1028
1028
|
}
|
|
1029
1029
|
const Rt = /* @__PURE__ */ Dr(kt);
|
|
1030
1030
|
var br = { exports: {} };
|
|
1031
|
-
function Tt(
|
|
1032
|
-
throw new Error('Could not dynamically require "' +
|
|
1031
|
+
function Tt(o) {
|
|
1032
|
+
throw new Error('Could not dynamically require "' + o + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1033
1033
|
}
|
|
1034
1034
|
var H0 = { exports: {} };
|
|
1035
1035
|
const Wt = {}, zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1038,18 +1038,18 @@ const Wt = {}, zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1038
1038
|
}, Symbol.toStringTag, { value: "Module" })), qt = /* @__PURE__ */ Et(zt);
|
|
1039
1039
|
var ze;
|
|
1040
1040
|
function $() {
|
|
1041
|
-
return ze || (ze = 1, function(
|
|
1042
|
-
(function(
|
|
1043
|
-
|
|
1041
|
+
return ze || (ze = 1, function(o, C) {
|
|
1042
|
+
(function(i, r) {
|
|
1043
|
+
o.exports = r();
|
|
1044
1044
|
})(O, function() {
|
|
1045
|
-
var
|
|
1045
|
+
var i = i || function(r, f) {
|
|
1046
1046
|
var g;
|
|
1047
1047
|
if (typeof window < "u" && window.crypto && (g = window.crypto), typeof self < "u" && self.crypto && (g = self.crypto), typeof globalThis < "u" && globalThis.crypto && (g = globalThis.crypto), !g && typeof window < "u" && window.msCrypto && (g = window.msCrypto), !g && typeof O < "u" && O.crypto && (g = O.crypto), !g && typeof Tt == "function")
|
|
1048
1048
|
try {
|
|
1049
1049
|
g = qt;
|
|
1050
1050
|
} catch {
|
|
1051
1051
|
}
|
|
1052
|
-
var
|
|
1052
|
+
var m = function() {
|
|
1053
1053
|
if (g) {
|
|
1054
1054
|
if (typeof g.getRandomValues == "function")
|
|
1055
1055
|
try {
|
|
@@ -1063,14 +1063,14 @@ function $() {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
1065
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
1066
|
-
},
|
|
1066
|
+
}, p = Object.create || /* @__PURE__ */ function() {
|
|
1067
1067
|
function a() {
|
|
1068
1068
|
}
|
|
1069
1069
|
return function(x) {
|
|
1070
1070
|
var h;
|
|
1071
1071
|
return a.prototype = x, h = new a(), a.prototype = null, h;
|
|
1072
1072
|
};
|
|
1073
|
-
}(),
|
|
1073
|
+
}(), B = {}, e = B.lib = {}, t = e.Base = /* @__PURE__ */ function() {
|
|
1074
1074
|
return {
|
|
1075
1075
|
/**
|
|
1076
1076
|
* Creates a new object that inherits from this object.
|
|
@@ -1091,7 +1091,7 @@ function $() {
|
|
|
1091
1091
|
* });
|
|
1092
1092
|
*/
|
|
1093
1093
|
extend: function(a) {
|
|
1094
|
-
var x =
|
|
1094
|
+
var x = p(this);
|
|
1095
1095
|
return a && x.mixIn(a), (!x.hasOwnProperty("init") || this.init === x.init) && (x.init = function() {
|
|
1096
1096
|
x.$super.init.apply(this, arguments);
|
|
1097
1097
|
}), x.init.prototype = x, x.$super = this, x;
|
|
@@ -1199,15 +1199,15 @@ function $() {
|
|
|
1199
1199
|
* wordArray1.concat(wordArray2);
|
|
1200
1200
|
*/
|
|
1201
1201
|
concat: function(a) {
|
|
1202
|
-
var x = this.words, h = a.words,
|
|
1203
|
-
if (this.clamp(),
|
|
1204
|
-
for (var
|
|
1205
|
-
var b = h[
|
|
1206
|
-
x[
|
|
1202
|
+
var x = this.words, h = a.words, A = this.sigBytes, y = a.sigBytes;
|
|
1203
|
+
if (this.clamp(), A % 4)
|
|
1204
|
+
for (var F = 0; F < y; F++) {
|
|
1205
|
+
var b = h[F >>> 2] >>> 24 - F % 4 * 8 & 255;
|
|
1206
|
+
x[A + F >>> 2] |= b << 24 - (A + F) % 4 * 8;
|
|
1207
1207
|
}
|
|
1208
1208
|
else
|
|
1209
|
-
for (var
|
|
1210
|
-
x[
|
|
1209
|
+
for (var H = 0; H < y; H += 4)
|
|
1210
|
+
x[A + H >>> 2] = h[H >>> 2];
|
|
1211
1211
|
return this.sigBytes += y, this;
|
|
1212
1212
|
},
|
|
1213
1213
|
/**
|
|
@@ -1249,10 +1249,10 @@ function $() {
|
|
|
1249
1249
|
*/
|
|
1250
1250
|
random: function(a) {
|
|
1251
1251
|
for (var x = [], h = 0; h < a; h += 4)
|
|
1252
|
-
x.push(
|
|
1252
|
+
x.push(m());
|
|
1253
1253
|
return new l.init(x, a);
|
|
1254
1254
|
}
|
|
1255
|
-
}), n =
|
|
1255
|
+
}), n = B.enc = {}, s = n.Hex = {
|
|
1256
1256
|
/**
|
|
1257
1257
|
* Converts a word array to a hex string.
|
|
1258
1258
|
*
|
|
@@ -1267,11 +1267,11 @@ function $() {
|
|
|
1267
1267
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
1268
1268
|
*/
|
|
1269
1269
|
stringify: function(a) {
|
|
1270
|
-
for (var x = a.words, h = a.sigBytes,
|
|
1271
|
-
var
|
|
1272
|
-
|
|
1270
|
+
for (var x = a.words, h = a.sigBytes, A = [], y = 0; y < h; y++) {
|
|
1271
|
+
var F = x[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
1272
|
+
A.push((F >>> 4).toString(16)), A.push((F & 15).toString(16));
|
|
1273
1273
|
}
|
|
1274
|
-
return
|
|
1274
|
+
return A.join("");
|
|
1275
1275
|
},
|
|
1276
1276
|
/**
|
|
1277
1277
|
* Converts a hex string to a word array.
|
|
@@ -1287,8 +1287,8 @@ function $() {
|
|
|
1287
1287
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
1288
1288
|
*/
|
|
1289
1289
|
parse: function(a) {
|
|
1290
|
-
for (var x = a.length, h = [],
|
|
1291
|
-
h[
|
|
1290
|
+
for (var x = a.length, h = [], A = 0; A < x; A += 2)
|
|
1291
|
+
h[A >>> 3] |= parseInt(a.substr(A, 2), 16) << 24 - A % 8 * 4;
|
|
1292
1292
|
return new l.init(h, x / 2);
|
|
1293
1293
|
}
|
|
1294
1294
|
}, c = n.Latin1 = {
|
|
@@ -1306,11 +1306,11 @@ function $() {
|
|
|
1306
1306
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
1307
1307
|
*/
|
|
1308
1308
|
stringify: function(a) {
|
|
1309
|
-
for (var x = a.words, h = a.sigBytes,
|
|
1310
|
-
var
|
|
1311
|
-
|
|
1309
|
+
for (var x = a.words, h = a.sigBytes, A = [], y = 0; y < h; y++) {
|
|
1310
|
+
var F = x[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
1311
|
+
A.push(String.fromCharCode(F));
|
|
1312
1312
|
}
|
|
1313
|
-
return
|
|
1313
|
+
return A.join("");
|
|
1314
1314
|
},
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Converts a Latin1 string to a word array.
|
|
@@ -1326,8 +1326,8 @@ function $() {
|
|
|
1326
1326
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
1327
1327
|
*/
|
|
1328
1328
|
parse: function(a) {
|
|
1329
|
-
for (var x = a.length, h = [],
|
|
1330
|
-
h[
|
|
1329
|
+
for (var x = a.length, h = [], A = 0; A < x; A++)
|
|
1330
|
+
h[A >>> 2] |= (a.charCodeAt(A) & 255) << 24 - A % 4 * 8;
|
|
1331
1331
|
return new l.init(h, x);
|
|
1332
1332
|
}
|
|
1333
1333
|
}, v = n.Utf8 = {
|
|
@@ -1406,13 +1406,13 @@ function $() {
|
|
|
1406
1406
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
1407
1407
|
*/
|
|
1408
1408
|
_process: function(a) {
|
|
1409
|
-
var x, h = this._data,
|
|
1410
|
-
a ?
|
|
1411
|
-
var E =
|
|
1409
|
+
var x, h = this._data, A = h.words, y = h.sigBytes, F = this.blockSize, b = F * 4, H = y / b;
|
|
1410
|
+
a ? H = r.ceil(H) : H = r.max((H | 0) - this._minBufferSize, 0);
|
|
1411
|
+
var E = H * F, D = r.min(E * 4, y);
|
|
1412
1412
|
if (E) {
|
|
1413
|
-
for (var S = 0; S < E; S +=
|
|
1414
|
-
this._doProcessBlock(
|
|
1415
|
-
x =
|
|
1413
|
+
for (var S = 0; S < E; S += F)
|
|
1414
|
+
this._doProcessBlock(A, S);
|
|
1415
|
+
x = A.splice(0, E), h.sigBytes -= D;
|
|
1416
1416
|
}
|
|
1417
1417
|
return new l.init(x, D);
|
|
1418
1418
|
},
|
|
@@ -1530,22 +1530,22 @@ function $() {
|
|
|
1530
1530
|
};
|
|
1531
1531
|
}
|
|
1532
1532
|
});
|
|
1533
|
-
var d =
|
|
1534
|
-
return
|
|
1533
|
+
var d = B.algo = {};
|
|
1534
|
+
return B;
|
|
1535
1535
|
}(Math);
|
|
1536
|
-
return
|
|
1536
|
+
return i;
|
|
1537
1537
|
});
|
|
1538
1538
|
}(H0)), H0.exports;
|
|
1539
1539
|
}
|
|
1540
1540
|
var R0 = { exports: {} }, qe;
|
|
1541
1541
|
function k0() {
|
|
1542
|
-
return qe || (qe = 1, function(
|
|
1543
|
-
(function(
|
|
1544
|
-
|
|
1545
|
-
})(O, function(
|
|
1542
|
+
return qe || (qe = 1, function(o, C) {
|
|
1543
|
+
(function(i, r) {
|
|
1544
|
+
o.exports = r($());
|
|
1545
|
+
})(O, function(i) {
|
|
1546
1546
|
return function(r) {
|
|
1547
|
-
var f =
|
|
1548
|
-
|
|
1547
|
+
var f = i, g = f.lib, m = g.Base, p = g.WordArray, B = f.x64 = {};
|
|
1548
|
+
B.Word = m.extend({
|
|
1549
1549
|
/**
|
|
1550
1550
|
* Initializes a newly created 64-bit word.
|
|
1551
1551
|
*
|
|
@@ -1708,7 +1708,7 @@ function k0() {
|
|
|
1708
1708
|
// var high = (this.high + word.high + carry) | 0;
|
|
1709
1709
|
// return X64Word.create(high, low);
|
|
1710
1710
|
// }
|
|
1711
|
-
}),
|
|
1711
|
+
}), B.WordArray = m.extend({
|
|
1712
1712
|
/**
|
|
1713
1713
|
* Initializes a newly created word array.
|
|
1714
1714
|
*
|
|
@@ -1746,7 +1746,7 @@ function k0() {
|
|
|
1746
1746
|
var s = e[n];
|
|
1747
1747
|
l.push(s.high), l.push(s.low);
|
|
1748
1748
|
}
|
|
1749
|
-
return
|
|
1749
|
+
return p.create(l, this.sigBytes);
|
|
1750
1750
|
},
|
|
1751
1751
|
/**
|
|
1752
1752
|
* Creates a copy of this word array.
|
|
@@ -1758,46 +1758,46 @@ function k0() {
|
|
|
1758
1758
|
* var clone = x64WordArray.clone();
|
|
1759
1759
|
*/
|
|
1760
1760
|
clone: function() {
|
|
1761
|
-
for (var e =
|
|
1761
|
+
for (var e = m.clone.call(this), t = e.words = this.words.slice(0), l = t.length, n = 0; n < l; n++)
|
|
1762
1762
|
t[n] = t[n].clone();
|
|
1763
1763
|
return e;
|
|
1764
1764
|
}
|
|
1765
1765
|
});
|
|
1766
|
-
}(),
|
|
1766
|
+
}(), i;
|
|
1767
1767
|
});
|
|
1768
1768
|
}(R0)), R0.exports;
|
|
1769
1769
|
}
|
|
1770
1770
|
var T0 = { exports: {} }, Oe;
|
|
1771
1771
|
function Ot() {
|
|
1772
|
-
return Oe || (Oe = 1, function(
|
|
1773
|
-
(function(
|
|
1774
|
-
|
|
1775
|
-
})(O, function(
|
|
1772
|
+
return Oe || (Oe = 1, function(o, C) {
|
|
1773
|
+
(function(i, r) {
|
|
1774
|
+
o.exports = r($());
|
|
1775
|
+
})(O, function(i) {
|
|
1776
1776
|
return function() {
|
|
1777
1777
|
if (typeof ArrayBuffer == "function") {
|
|
1778
|
-
var r =
|
|
1779
|
-
if (
|
|
1780
|
-
for (var e =
|
|
1781
|
-
t[l >>> 2] |=
|
|
1782
|
-
|
|
1778
|
+
var r = i, f = r.lib, g = f.WordArray, m = g.init, p = g.init = function(B) {
|
|
1779
|
+
if (B instanceof ArrayBuffer && (B = new Uint8Array(B)), (B instanceof Int8Array || typeof Uint8ClampedArray < "u" && B instanceof Uint8ClampedArray || B instanceof Int16Array || B instanceof Uint16Array || B instanceof Int32Array || B instanceof Uint32Array || B instanceof Float32Array || B instanceof Float64Array) && (B = new Uint8Array(B.buffer, B.byteOffset, B.byteLength)), B instanceof Uint8Array) {
|
|
1780
|
+
for (var e = B.byteLength, t = [], l = 0; l < e; l++)
|
|
1781
|
+
t[l >>> 2] |= B[l] << 24 - l % 4 * 8;
|
|
1782
|
+
m.call(this, t, e);
|
|
1783
1783
|
} else
|
|
1784
|
-
|
|
1784
|
+
m.apply(this, arguments);
|
|
1785
1785
|
};
|
|
1786
|
-
|
|
1786
|
+
p.prototype = g;
|
|
1787
1787
|
}
|
|
1788
|
-
}(),
|
|
1788
|
+
}(), i.lib.WordArray;
|
|
1789
1789
|
});
|
|
1790
1790
|
}(T0)), T0.exports;
|
|
1791
1791
|
}
|
|
1792
1792
|
var W0 = { exports: {} }, Ie;
|
|
1793
1793
|
function It() {
|
|
1794
|
-
return Ie || (Ie = 1, function(
|
|
1795
|
-
(function(
|
|
1796
|
-
|
|
1797
|
-
})(O, function(
|
|
1794
|
+
return Ie || (Ie = 1, function(o, C) {
|
|
1795
|
+
(function(i, r) {
|
|
1796
|
+
o.exports = r($());
|
|
1797
|
+
})(O, function(i) {
|
|
1798
1798
|
return function() {
|
|
1799
|
-
var r =
|
|
1800
|
-
|
|
1799
|
+
var r = i, f = r.lib, g = f.WordArray, m = r.enc;
|
|
1800
|
+
m.Utf16 = m.Utf16BE = {
|
|
1801
1801
|
/**
|
|
1802
1802
|
* Converts a word array to a UTF-16 BE string.
|
|
1803
1803
|
*
|
|
@@ -1811,8 +1811,8 @@ function It() {
|
|
|
1811
1811
|
*
|
|
1812
1812
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
1813
1813
|
*/
|
|
1814
|
-
stringify: function(
|
|
1815
|
-
for (var e =
|
|
1814
|
+
stringify: function(B) {
|
|
1815
|
+
for (var e = B.words, t = B.sigBytes, l = [], n = 0; n < t; n += 2) {
|
|
1816
1816
|
var s = e[n >>> 2] >>> 16 - n % 4 * 8 & 65535;
|
|
1817
1817
|
l.push(String.fromCharCode(s));
|
|
1818
1818
|
}
|
|
@@ -1831,12 +1831,12 @@ function It() {
|
|
|
1831
1831
|
*
|
|
1832
1832
|
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
1833
1833
|
*/
|
|
1834
|
-
parse: function(
|
|
1835
|
-
for (var e =
|
|
1836
|
-
t[l >>> 1] |=
|
|
1834
|
+
parse: function(B) {
|
|
1835
|
+
for (var e = B.length, t = [], l = 0; l < e; l++)
|
|
1836
|
+
t[l >>> 1] |= B.charCodeAt(l) << 16 - l % 2 * 16;
|
|
1837
1837
|
return g.create(t, e * 2);
|
|
1838
1838
|
}
|
|
1839
|
-
},
|
|
1839
|
+
}, m.Utf16LE = {
|
|
1840
1840
|
/**
|
|
1841
1841
|
* Converts a word array to a UTF-16 LE string.
|
|
1842
1842
|
*
|
|
@@ -1850,9 +1850,9 @@ function It() {
|
|
|
1850
1850
|
*
|
|
1851
1851
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
1852
1852
|
*/
|
|
1853
|
-
stringify: function(
|
|
1854
|
-
for (var e =
|
|
1855
|
-
var s =
|
|
1853
|
+
stringify: function(B) {
|
|
1854
|
+
for (var e = B.words, t = B.sigBytes, l = [], n = 0; n < t; n += 2) {
|
|
1855
|
+
var s = p(e[n >>> 2] >>> 16 - n % 4 * 8 & 65535);
|
|
1856
1856
|
l.push(String.fromCharCode(s));
|
|
1857
1857
|
}
|
|
1858
1858
|
return l.join("");
|
|
@@ -1870,28 +1870,28 @@ function It() {
|
|
|
1870
1870
|
*
|
|
1871
1871
|
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
1872
1872
|
*/
|
|
1873
|
-
parse: function(
|
|
1874
|
-
for (var e =
|
|
1875
|
-
t[l >>> 1] |= B
|
|
1873
|
+
parse: function(B) {
|
|
1874
|
+
for (var e = B.length, t = [], l = 0; l < e; l++)
|
|
1875
|
+
t[l >>> 1] |= p(B.charCodeAt(l) << 16 - l % 2 * 16);
|
|
1876
1876
|
return g.create(t, e * 2);
|
|
1877
1877
|
}
|
|
1878
1878
|
};
|
|
1879
|
-
function B
|
|
1880
|
-
return
|
|
1879
|
+
function p(B) {
|
|
1880
|
+
return B << 8 & 4278255360 | B >>> 8 & 16711935;
|
|
1881
1881
|
}
|
|
1882
|
-
}(),
|
|
1882
|
+
}(), i.enc.Utf16;
|
|
1883
1883
|
});
|
|
1884
1884
|
}(W0)), W0.exports;
|
|
1885
1885
|
}
|
|
1886
1886
|
var z0 = { exports: {} }, $e;
|
|
1887
1887
|
function i0() {
|
|
1888
|
-
return $e || ($e = 1, function(
|
|
1889
|
-
(function(
|
|
1890
|
-
|
|
1891
|
-
})(O, function(
|
|
1888
|
+
return $e || ($e = 1, function(o, C) {
|
|
1889
|
+
(function(i, r) {
|
|
1890
|
+
o.exports = r($());
|
|
1891
|
+
})(O, function(i) {
|
|
1892
1892
|
return function() {
|
|
1893
|
-
var r =
|
|
1894
|
-
|
|
1893
|
+
var r = i, f = r.lib, g = f.WordArray, m = r.enc;
|
|
1894
|
+
m.Base64 = {
|
|
1895
1895
|
/**
|
|
1896
1896
|
* Converts a word array to a Base64 string.
|
|
1897
1897
|
*
|
|
@@ -1905,9 +1905,9 @@ function i0() {
|
|
|
1905
1905
|
*
|
|
1906
1906
|
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
1907
1907
|
*/
|
|
1908
|
-
stringify: function(
|
|
1909
|
-
var e =
|
|
1910
|
-
|
|
1908
|
+
stringify: function(B) {
|
|
1909
|
+
var e = B.words, t = B.sigBytes, l = this._map;
|
|
1910
|
+
B.clamp();
|
|
1911
1911
|
for (var n = [], s = 0; s < t; s += 3)
|
|
1912
1912
|
for (var c = e[s >>> 2] >>> 24 - s % 4 * 8 & 255, v = e[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, u = e[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, d = c << 16 | v << 8 | u, a = 0; a < 4 && s + a * 0.75 < t; a++)
|
|
1913
1913
|
n.push(l.charAt(d >>> 6 * (3 - a) & 63));
|
|
@@ -1930,8 +1930,8 @@ function i0() {
|
|
|
1930
1930
|
*
|
|
1931
1931
|
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
1932
1932
|
*/
|
|
1933
|
-
parse: function(
|
|
1934
|
-
var e =
|
|
1933
|
+
parse: function(B) {
|
|
1934
|
+
var e = B.length, t = this._map, l = this._reverseMap;
|
|
1935
1935
|
if (!l) {
|
|
1936
1936
|
l = this._reverseMap = [];
|
|
1937
1937
|
for (var n = 0; n < t.length; n++)
|
|
@@ -1939,34 +1939,34 @@ function i0() {
|
|
|
1939
1939
|
}
|
|
1940
1940
|
var s = t.charAt(64);
|
|
1941
1941
|
if (s) {
|
|
1942
|
-
var c =
|
|
1942
|
+
var c = B.indexOf(s);
|
|
1943
1943
|
c !== -1 && (e = c);
|
|
1944
1944
|
}
|
|
1945
|
-
return B
|
|
1945
|
+
return p(B, e, l);
|
|
1946
1946
|
},
|
|
1947
1947
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1948
1948
|
};
|
|
1949
|
-
function B
|
|
1949
|
+
function p(B, e, t) {
|
|
1950
1950
|
for (var l = [], n = 0, s = 0; s < e; s++)
|
|
1951
1951
|
if (s % 4) {
|
|
1952
|
-
var c = t[
|
|
1952
|
+
var c = t[B.charCodeAt(s - 1)] << s % 4 * 2, v = t[B.charCodeAt(s)] >>> 6 - s % 4 * 2, u = c | v;
|
|
1953
1953
|
l[n >>> 2] |= u << 24 - n % 4 * 8, n++;
|
|
1954
1954
|
}
|
|
1955
1955
|
return g.create(l, n);
|
|
1956
1956
|
}
|
|
1957
|
-
}(),
|
|
1957
|
+
}(), i.enc.Base64;
|
|
1958
1958
|
});
|
|
1959
1959
|
}(z0)), z0.exports;
|
|
1960
1960
|
}
|
|
1961
1961
|
var q0 = { exports: {} }, je;
|
|
1962
1962
|
function $t() {
|
|
1963
|
-
return je || (je = 1, function(
|
|
1964
|
-
(function(
|
|
1965
|
-
|
|
1966
|
-
})(O, function(
|
|
1963
|
+
return je || (je = 1, function(o, C) {
|
|
1964
|
+
(function(i, r) {
|
|
1965
|
+
o.exports = r($());
|
|
1966
|
+
})(O, function(i) {
|
|
1967
1967
|
return function() {
|
|
1968
|
-
var r =
|
|
1969
|
-
|
|
1968
|
+
var r = i, f = r.lib, g = f.WordArray, m = r.enc;
|
|
1969
|
+
m.Base64url = {
|
|
1970
1970
|
/**
|
|
1971
1971
|
* Converts a word array to a Base64url string.
|
|
1972
1972
|
*
|
|
@@ -1982,10 +1982,10 @@ function $t() {
|
|
|
1982
1982
|
*
|
|
1983
1983
|
* var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
|
|
1984
1984
|
*/
|
|
1985
|
-
stringify: function(
|
|
1985
|
+
stringify: function(B, e) {
|
|
1986
1986
|
e === void 0 && (e = !0);
|
|
1987
|
-
var t =
|
|
1988
|
-
|
|
1987
|
+
var t = B.words, l = B.sigBytes, n = e ? this._safe_map : this._map;
|
|
1988
|
+
B.clamp();
|
|
1989
1989
|
for (var s = [], c = 0; c < l; c += 3)
|
|
1990
1990
|
for (var v = t[c >>> 2] >>> 24 - c % 4 * 8 & 255, u = t[c + 1 >>> 2] >>> 24 - (c + 1) % 4 * 8 & 255, d = t[c + 2 >>> 2] >>> 24 - (c + 2) % 4 * 8 & 255, a = v << 16 | u << 8 | d, x = 0; x < 4 && c + x * 0.75 < l; x++)
|
|
1991
1991
|
s.push(n.charAt(a >>> 6 * (3 - x) & 63));
|
|
@@ -2010,9 +2010,9 @@ function $t() {
|
|
|
2010
2010
|
*
|
|
2011
2011
|
* var wordArray = CryptoJS.enc.Base64url.parse(base64String);
|
|
2012
2012
|
*/
|
|
2013
|
-
parse: function(
|
|
2013
|
+
parse: function(B, e) {
|
|
2014
2014
|
e === void 0 && (e = !0);
|
|
2015
|
-
var t =
|
|
2015
|
+
var t = B.length, l = e ? this._safe_map : this._map, n = this._reverseMap;
|
|
2016
2016
|
if (!n) {
|
|
2017
2017
|
n = this._reverseMap = [];
|
|
2018
2018
|
for (var s = 0; s < l.length; s++)
|
|
@@ -2020,41 +2020,41 @@ function $t() {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
var c = l.charAt(64);
|
|
2022
2022
|
if (c) {
|
|
2023
|
-
var v =
|
|
2023
|
+
var v = B.indexOf(c);
|
|
2024
2024
|
v !== -1 && (t = v);
|
|
2025
2025
|
}
|
|
2026
|
-
return B
|
|
2026
|
+
return p(B, t, n);
|
|
2027
2027
|
},
|
|
2028
2028
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
2029
2029
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
2030
2030
|
};
|
|
2031
|
-
function B
|
|
2031
|
+
function p(B, e, t) {
|
|
2032
2032
|
for (var l = [], n = 0, s = 0; s < e; s++)
|
|
2033
2033
|
if (s % 4) {
|
|
2034
|
-
var c = t[
|
|
2034
|
+
var c = t[B.charCodeAt(s - 1)] << s % 4 * 2, v = t[B.charCodeAt(s)] >>> 6 - s % 4 * 2, u = c | v;
|
|
2035
2035
|
l[n >>> 2] |= u << 24 - n % 4 * 8, n++;
|
|
2036
2036
|
}
|
|
2037
2037
|
return g.create(l, n);
|
|
2038
2038
|
}
|
|
2039
|
-
}(),
|
|
2039
|
+
}(), i.enc.Base64url;
|
|
2040
2040
|
});
|
|
2041
2041
|
}(q0)), q0.exports;
|
|
2042
2042
|
}
|
|
2043
2043
|
var O0 = { exports: {} }, Le;
|
|
2044
2044
|
function x0() {
|
|
2045
|
-
return Le || (Le = 1, function(
|
|
2046
|
-
(function(
|
|
2047
|
-
|
|
2048
|
-
})(O, function(
|
|
2045
|
+
return Le || (Le = 1, function(o, C) {
|
|
2046
|
+
(function(i, r) {
|
|
2047
|
+
o.exports = r($());
|
|
2048
|
+
})(O, function(i) {
|
|
2049
2049
|
return function(r) {
|
|
2050
|
-
var f =
|
|
2050
|
+
var f = i, g = f.lib, m = g.WordArray, p = g.Hasher, B = f.algo, e = [];
|
|
2051
2051
|
(function() {
|
|
2052
2052
|
for (var v = 0; v < 64; v++)
|
|
2053
2053
|
e[v] = r.abs(r.sin(v + 1)) * 4294967296 | 0;
|
|
2054
2054
|
})();
|
|
2055
|
-
var t =
|
|
2055
|
+
var t = B.MD5 = p.extend({
|
|
2056
2056
|
_doReset: function() {
|
|
2057
|
-
this._hash = new
|
|
2057
|
+
this._hash = new m.init([
|
|
2058
2058
|
1732584193,
|
|
2059
2059
|
4023233417,
|
|
2060
2060
|
2562383102,
|
|
@@ -2066,54 +2066,54 @@ function x0() {
|
|
|
2066
2066
|
var a = u + d, x = v[a];
|
|
2067
2067
|
v[a] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360;
|
|
2068
2068
|
}
|
|
2069
|
-
var h = this._hash.words,
|
|
2070
|
-
_ = l(_,
|
|
2069
|
+
var h = this._hash.words, A = v[u + 0], y = v[u + 1], F = v[u + 2], b = v[u + 3], H = v[u + 4], E = v[u + 5], D = v[u + 6], S = v[u + 7], w = v[u + 8], W = v[u + 9], z = v[u + 10], q = v[u + 11], X = v[u + 12], N = v[u + 13], G = v[u + 14], M = v[u + 15], _ = h[0], R = h[1], T = h[2], P = h[3];
|
|
2070
|
+
_ = l(_, R, T, P, A, 7, e[0]), P = l(P, _, R, T, y, 12, e[1]), T = l(T, P, _, R, F, 17, e[2]), R = l(R, T, P, _, b, 22, e[3]), _ = l(_, R, T, P, H, 7, e[4]), P = l(P, _, R, T, E, 12, e[5]), T = l(T, P, _, R, D, 17, e[6]), R = l(R, T, P, _, S, 22, e[7]), _ = l(_, R, T, P, w, 7, e[8]), P = l(P, _, R, T, W, 12, e[9]), T = l(T, P, _, R, z, 17, e[10]), R = l(R, T, P, _, q, 22, e[11]), _ = l(_, R, T, P, X, 7, e[12]), P = l(P, _, R, T, N, 12, e[13]), T = l(T, P, _, R, G, 17, e[14]), R = l(R, T, P, _, M, 22, e[15]), _ = n(_, R, T, P, y, 5, e[16]), P = n(P, _, R, T, D, 9, e[17]), T = n(T, P, _, R, q, 14, e[18]), R = n(R, T, P, _, A, 20, e[19]), _ = n(_, R, T, P, E, 5, e[20]), P = n(P, _, R, T, z, 9, e[21]), T = n(T, P, _, R, M, 14, e[22]), R = n(R, T, P, _, H, 20, e[23]), _ = n(_, R, T, P, W, 5, e[24]), P = n(P, _, R, T, G, 9, e[25]), T = n(T, P, _, R, b, 14, e[26]), R = n(R, T, P, _, w, 20, e[27]), _ = n(_, R, T, P, N, 5, e[28]), P = n(P, _, R, T, F, 9, e[29]), T = n(T, P, _, R, S, 14, e[30]), R = n(R, T, P, _, X, 20, e[31]), _ = s(_, R, T, P, E, 4, e[32]), P = s(P, _, R, T, w, 11, e[33]), T = s(T, P, _, R, q, 16, e[34]), R = s(R, T, P, _, G, 23, e[35]), _ = s(_, R, T, P, y, 4, e[36]), P = s(P, _, R, T, H, 11, e[37]), T = s(T, P, _, R, S, 16, e[38]), R = s(R, T, P, _, z, 23, e[39]), _ = s(_, R, T, P, N, 4, e[40]), P = s(P, _, R, T, A, 11, e[41]), T = s(T, P, _, R, b, 16, e[42]), R = s(R, T, P, _, D, 23, e[43]), _ = s(_, R, T, P, W, 4, e[44]), P = s(P, _, R, T, X, 11, e[45]), T = s(T, P, _, R, M, 16, e[46]), R = s(R, T, P, _, F, 23, e[47]), _ = c(_, R, T, P, A, 6, e[48]), P = c(P, _, R, T, S, 10, e[49]), T = c(T, P, _, R, G, 15, e[50]), R = c(R, T, P, _, E, 21, e[51]), _ = c(_, R, T, P, X, 6, e[52]), P = c(P, _, R, T, b, 10, e[53]), T = c(T, P, _, R, z, 15, e[54]), R = c(R, T, P, _, y, 21, e[55]), _ = c(_, R, T, P, w, 6, e[56]), P = c(P, _, R, T, M, 10, e[57]), T = c(T, P, _, R, D, 15, e[58]), R = c(R, T, P, _, N, 21, e[59]), _ = c(_, R, T, P, H, 6, e[60]), P = c(P, _, R, T, q, 10, e[61]), T = c(T, P, _, R, F, 15, e[62]), R = c(R, T, P, _, W, 21, e[63]), h[0] = h[0] + _ | 0, h[1] = h[1] + R | 0, h[2] = h[2] + T | 0, h[3] = h[3] + P | 0;
|
|
2071
2071
|
},
|
|
2072
2072
|
_doFinalize: function() {
|
|
2073
2073
|
var v = this._data, u = v.words, d = this._nDataBytes * 8, a = v.sigBytes * 8;
|
|
2074
2074
|
u[a >>> 5] |= 128 << 24 - a % 32;
|
|
2075
2075
|
var x = r.floor(d / 4294967296), h = d;
|
|
2076
2076
|
u[(a + 64 >>> 9 << 4) + 15] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, u[(a + 64 >>> 9 << 4) + 14] = (h << 8 | h >>> 24) & 16711935 | (h << 24 | h >>> 8) & 4278255360, v.sigBytes = (u.length + 1) * 4, this._process();
|
|
2077
|
-
for (var
|
|
2078
|
-
var b = y[
|
|
2079
|
-
y[
|
|
2077
|
+
for (var A = this._hash, y = A.words, F = 0; F < 4; F++) {
|
|
2078
|
+
var b = y[F];
|
|
2079
|
+
y[F] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
|
|
2080
2080
|
}
|
|
2081
|
-
return
|
|
2081
|
+
return A;
|
|
2082
2082
|
},
|
|
2083
2083
|
clone: function() {
|
|
2084
|
-
var v =
|
|
2084
|
+
var v = p.clone.call(this);
|
|
2085
2085
|
return v._hash = this._hash.clone(), v;
|
|
2086
2086
|
}
|
|
2087
2087
|
});
|
|
2088
|
-
function l(v, u, d, a, x, h,
|
|
2089
|
-
var y = v + (u & d | ~u & a) + x +
|
|
2088
|
+
function l(v, u, d, a, x, h, A) {
|
|
2089
|
+
var y = v + (u & d | ~u & a) + x + A;
|
|
2090
2090
|
return (y << h | y >>> 32 - h) + u;
|
|
2091
2091
|
}
|
|
2092
|
-
function n(v, u, d, a, x, h,
|
|
2093
|
-
var y = v + (u & a | d & ~a) + x +
|
|
2092
|
+
function n(v, u, d, a, x, h, A) {
|
|
2093
|
+
var y = v + (u & a | d & ~a) + x + A;
|
|
2094
2094
|
return (y << h | y >>> 32 - h) + u;
|
|
2095
2095
|
}
|
|
2096
|
-
function s(v, u, d, a, x, h,
|
|
2097
|
-
var y = v + (u ^ d ^ a) + x +
|
|
2096
|
+
function s(v, u, d, a, x, h, A) {
|
|
2097
|
+
var y = v + (u ^ d ^ a) + x + A;
|
|
2098
2098
|
return (y << h | y >>> 32 - h) + u;
|
|
2099
2099
|
}
|
|
2100
|
-
function c(v, u, d, a, x, h,
|
|
2101
|
-
var y = v + (d ^ (u | ~a)) + x +
|
|
2100
|
+
function c(v, u, d, a, x, h, A) {
|
|
2101
|
+
var y = v + (d ^ (u | ~a)) + x + A;
|
|
2102
2102
|
return (y << h | y >>> 32 - h) + u;
|
|
2103
2103
|
}
|
|
2104
|
-
f.MD5 =
|
|
2105
|
-
}(Math),
|
|
2104
|
+
f.MD5 = p._createHelper(t), f.HmacMD5 = p._createHmacHelper(t);
|
|
2105
|
+
}(Math), i.MD5;
|
|
2106
2106
|
});
|
|
2107
2107
|
}(O0)), O0.exports;
|
|
2108
2108
|
}
|
|
2109
2109
|
var I0 = { exports: {} }, Ne;
|
|
2110
2110
|
function wr() {
|
|
2111
|
-
return Ne || (Ne = 1, function(
|
|
2112
|
-
(function(
|
|
2113
|
-
|
|
2114
|
-
})(O, function(
|
|
2111
|
+
return Ne || (Ne = 1, function(o, C) {
|
|
2112
|
+
(function(i, r) {
|
|
2113
|
+
o.exports = r($());
|
|
2114
|
+
})(O, function(i) {
|
|
2115
2115
|
return function() {
|
|
2116
|
-
var r =
|
|
2116
|
+
var r = i, f = r.lib, g = f.WordArray, m = f.Hasher, p = r.algo, B = [], e = p.SHA1 = m.extend({
|
|
2117
2117
|
_doReset: function() {
|
|
2118
2118
|
this._hash = new g.init([
|
|
2119
2119
|
1732584193,
|
|
@@ -2126,12 +2126,12 @@ function wr() {
|
|
|
2126
2126
|
_doProcessBlock: function(t, l) {
|
|
2127
2127
|
for (var n = this._hash.words, s = n[0], c = n[1], v = n[2], u = n[3], d = n[4], a = 0; a < 80; a++) {
|
|
2128
2128
|
if (a < 16)
|
|
2129
|
-
|
|
2129
|
+
B[a] = t[l + a] | 0;
|
|
2130
2130
|
else {
|
|
2131
|
-
var x =
|
|
2132
|
-
|
|
2131
|
+
var x = B[a - 3] ^ B[a - 8] ^ B[a - 14] ^ B[a - 16];
|
|
2132
|
+
B[a] = x << 1 | x >>> 31;
|
|
2133
2133
|
}
|
|
2134
|
-
var h = (s << 5 | s >>> 27) + d +
|
|
2134
|
+
var h = (s << 5 | s >>> 27) + d + B[a];
|
|
2135
2135
|
a < 20 ? h += (c & v | ~c & u) + 1518500249 : a < 40 ? h += (c ^ v ^ u) + 1859775393 : a < 60 ? h += (c & v | c & u | v & u) - 1894007588 : h += (c ^ v ^ u) - 899497514, d = u, u = v, v = c << 30 | c >>> 2, c = s, s = h;
|
|
2136
2136
|
}
|
|
2137
2137
|
n[0] = n[0] + s | 0, n[1] = n[1] + c | 0, n[2] = n[2] + v | 0, n[3] = n[3] + u | 0, n[4] = n[4] + d | 0;
|
|
@@ -2141,23 +2141,23 @@ function wr() {
|
|
|
2141
2141
|
return l[s >>> 5] |= 128 << 24 - s % 32, l[(s + 64 >>> 9 << 4) + 14] = Math.floor(n / 4294967296), l[(s + 64 >>> 9 << 4) + 15] = n, t.sigBytes = l.length * 4, this._process(), this._hash;
|
|
2142
2142
|
},
|
|
2143
2143
|
clone: function() {
|
|
2144
|
-
var t =
|
|
2144
|
+
var t = m.clone.call(this);
|
|
2145
2145
|
return t._hash = this._hash.clone(), t;
|
|
2146
2146
|
}
|
|
2147
2147
|
});
|
|
2148
|
-
r.SHA1 =
|
|
2149
|
-
}(),
|
|
2148
|
+
r.SHA1 = m._createHelper(e), r.HmacSHA1 = m._createHmacHelper(e);
|
|
2149
|
+
}(), i.SHA1;
|
|
2150
2150
|
});
|
|
2151
2151
|
}(I0)), I0.exports;
|
|
2152
2152
|
}
|
|
2153
2153
|
var $0 = { exports: {} }, Me;
|
|
2154
2154
|
function ye() {
|
|
2155
|
-
return Me || (Me = 1, function(
|
|
2156
|
-
(function(
|
|
2157
|
-
|
|
2158
|
-
})(O, function(
|
|
2155
|
+
return Me || (Me = 1, function(o, C) {
|
|
2156
|
+
(function(i, r) {
|
|
2157
|
+
o.exports = r($());
|
|
2158
|
+
})(O, function(i) {
|
|
2159
2159
|
return function(r) {
|
|
2160
|
-
var f =
|
|
2160
|
+
var f = i, g = f.lib, m = g.WordArray, p = g.Hasher, B = f.algo, e = [], t = [];
|
|
2161
2161
|
(function() {
|
|
2162
2162
|
function s(d) {
|
|
2163
2163
|
for (var a = r.sqrt(d), x = 2; x <= a; x++)
|
|
@@ -2171,45 +2171,45 @@ function ye() {
|
|
|
2171
2171
|
for (var v = 2, u = 0; u < 64; )
|
|
2172
2172
|
s(v) && (u < 8 && (e[u] = c(r.pow(v, 1 / 2))), t[u] = c(r.pow(v, 1 / 3)), u++), v++;
|
|
2173
2173
|
})();
|
|
2174
|
-
var l = [], n =
|
|
2174
|
+
var l = [], n = B.SHA256 = p.extend({
|
|
2175
2175
|
_doReset: function() {
|
|
2176
|
-
this._hash = new
|
|
2176
|
+
this._hash = new m.init(e.slice(0));
|
|
2177
2177
|
},
|
|
2178
2178
|
_doProcessBlock: function(s, c) {
|
|
2179
|
-
for (var v = this._hash.words, u = v[0], d = v[1], a = v[2], x = v[3], h = v[4],
|
|
2179
|
+
for (var v = this._hash.words, u = v[0], d = v[1], a = v[2], x = v[3], h = v[4], A = v[5], y = v[6], F = v[7], b = 0; b < 64; b++) {
|
|
2180
2180
|
if (b < 16)
|
|
2181
2181
|
l[b] = s[c + b] | 0;
|
|
2182
2182
|
else {
|
|
2183
|
-
var
|
|
2183
|
+
var H = l[b - 15], E = (H << 25 | H >>> 7) ^ (H << 14 | H >>> 18) ^ H >>> 3, D = l[b - 2], S = (D << 15 | D >>> 17) ^ (D << 13 | D >>> 19) ^ D >>> 10;
|
|
2184
2184
|
l[b] = E + l[b - 7] + S + l[b - 16];
|
|
2185
2185
|
}
|
|
2186
|
-
var w = h &
|
|
2187
|
-
|
|
2186
|
+
var w = h & A ^ ~h & y, W = u & d ^ u & a ^ d & a, z = (u << 30 | u >>> 2) ^ (u << 19 | u >>> 13) ^ (u << 10 | u >>> 22), q = (h << 26 | h >>> 6) ^ (h << 21 | h >>> 11) ^ (h << 7 | h >>> 25), X = F + q + w + t[b] + l[b], N = z + W;
|
|
2187
|
+
F = y, y = A, A = h, h = x + X | 0, x = a, a = d, d = u, u = X + N | 0;
|
|
2188
2188
|
}
|
|
2189
|
-
v[0] = v[0] + u | 0, v[1] = v[1] + d | 0, v[2] = v[2] + a | 0, v[3] = v[3] + x | 0, v[4] = v[4] + h | 0, v[5] = v[5] +
|
|
2189
|
+
v[0] = v[0] + u | 0, v[1] = v[1] + d | 0, v[2] = v[2] + a | 0, v[3] = v[3] + x | 0, v[4] = v[4] + h | 0, v[5] = v[5] + A | 0, v[6] = v[6] + y | 0, v[7] = v[7] + F | 0;
|
|
2190
2190
|
},
|
|
2191
2191
|
_doFinalize: function() {
|
|
2192
2192
|
var s = this._data, c = s.words, v = this._nDataBytes * 8, u = s.sigBytes * 8;
|
|
2193
2193
|
return c[u >>> 5] |= 128 << 24 - u % 32, c[(u + 64 >>> 9 << 4) + 14] = r.floor(v / 4294967296), c[(u + 64 >>> 9 << 4) + 15] = v, s.sigBytes = c.length * 4, this._process(), this._hash;
|
|
2194
2194
|
},
|
|
2195
2195
|
clone: function() {
|
|
2196
|
-
var s =
|
|
2196
|
+
var s = p.clone.call(this);
|
|
2197
2197
|
return s._hash = this._hash.clone(), s;
|
|
2198
2198
|
}
|
|
2199
2199
|
});
|
|
2200
|
-
f.SHA256 =
|
|
2201
|
-
}(Math),
|
|
2200
|
+
f.SHA256 = p._createHelper(n), f.HmacSHA256 = p._createHmacHelper(n);
|
|
2201
|
+
}(Math), i.SHA256;
|
|
2202
2202
|
});
|
|
2203
2203
|
}($0)), $0.exports;
|
|
2204
2204
|
}
|
|
2205
2205
|
var j0 = { exports: {} }, Ge;
|
|
2206
2206
|
function jt() {
|
|
2207
|
-
return Ge || (Ge = 1, function(
|
|
2208
|
-
(function(
|
|
2209
|
-
|
|
2210
|
-
})(O, function(
|
|
2207
|
+
return Ge || (Ge = 1, function(o, C) {
|
|
2208
|
+
(function(i, r, f) {
|
|
2209
|
+
o.exports = r($(), ye());
|
|
2210
|
+
})(O, function(i) {
|
|
2211
2211
|
return function() {
|
|
2212
|
-
var r =
|
|
2212
|
+
var r = i, f = r.lib, g = f.WordArray, m = r.algo, p = m.SHA256, B = m.SHA224 = p.extend({
|
|
2213
2213
|
_doReset: function() {
|
|
2214
2214
|
this._hash = new g.init([
|
|
2215
2215
|
3238371032,
|
|
@@ -2223,25 +2223,25 @@ function jt() {
|
|
|
2223
2223
|
]);
|
|
2224
2224
|
},
|
|
2225
2225
|
_doFinalize: function() {
|
|
2226
|
-
var e =
|
|
2226
|
+
var e = p._doFinalize.call(this);
|
|
2227
2227
|
return e.sigBytes -= 4, e;
|
|
2228
2228
|
}
|
|
2229
2229
|
});
|
|
2230
|
-
r.SHA224 =
|
|
2231
|
-
}(),
|
|
2230
|
+
r.SHA224 = p._createHelper(B), r.HmacSHA224 = p._createHmacHelper(B);
|
|
2231
|
+
}(), i.SHA224;
|
|
2232
2232
|
});
|
|
2233
2233
|
}(j0)), j0.exports;
|
|
2234
2234
|
}
|
|
2235
2235
|
var L0 = { exports: {} }, Ue;
|
|
2236
2236
|
function _r() {
|
|
2237
|
-
return Ue || (Ue = 1, function(
|
|
2238
|
-
(function(
|
|
2239
|
-
|
|
2240
|
-
})(O, function(
|
|
2237
|
+
return Ue || (Ue = 1, function(o, C) {
|
|
2238
|
+
(function(i, r, f) {
|
|
2239
|
+
o.exports = r($(), k0());
|
|
2240
|
+
})(O, function(i) {
|
|
2241
2241
|
return function() {
|
|
2242
|
-
var r =
|
|
2242
|
+
var r = i, f = r.lib, g = f.Hasher, m = r.x64, p = m.Word, B = m.WordArray, e = r.algo;
|
|
2243
2243
|
function t() {
|
|
2244
|
-
return
|
|
2244
|
+
return p.create.apply(p, arguments);
|
|
2245
2245
|
}
|
|
2246
2246
|
var l = [
|
|
2247
2247
|
t(1116352408, 3609767458),
|
|
@@ -2331,30 +2331,30 @@ function _r() {
|
|
|
2331
2331
|
})();
|
|
2332
2332
|
var s = e.SHA512 = g.extend({
|
|
2333
2333
|
_doReset: function() {
|
|
2334
|
-
this._hash = new
|
|
2335
|
-
new
|
|
2336
|
-
new
|
|
2337
|
-
new
|
|
2338
|
-
new
|
|
2339
|
-
new
|
|
2340
|
-
new
|
|
2341
|
-
new
|
|
2342
|
-
new
|
|
2334
|
+
this._hash = new B.init([
|
|
2335
|
+
new p.init(1779033703, 4089235720),
|
|
2336
|
+
new p.init(3144134277, 2227873595),
|
|
2337
|
+
new p.init(1013904242, 4271175723),
|
|
2338
|
+
new p.init(2773480762, 1595750129),
|
|
2339
|
+
new p.init(1359893119, 2917565137),
|
|
2340
|
+
new p.init(2600822924, 725511199),
|
|
2341
|
+
new p.init(528734635, 4215389547),
|
|
2342
|
+
new p.init(1541459225, 327033209)
|
|
2343
2343
|
]);
|
|
2344
2344
|
},
|
|
2345
2345
|
_doProcessBlock: function(c, v) {
|
|
2346
|
-
for (var u = this._hash.words, d = u[0], a = u[1], x = u[2], h = u[3],
|
|
2346
|
+
for (var u = this._hash.words, d = u[0], a = u[1], x = u[2], h = u[3], A = u[4], y = u[5], F = u[6], b = u[7], H = d.high, E = d.low, D = a.high, S = a.low, w = x.high, W = x.low, z = h.high, q = h.low, X = A.high, N = A.low, G = y.high, M = y.low, _ = F.high, R = F.low, T = b.high, P = b.low, Z = H, U = E, V = D, I = S, l0 = w, s0 = W, S0 = z, d0 = q, e0 = X, Y = N, m0 = G, v0 = M, F0 = _, h0 = R, P0 = T, p0 = P, r0 = 0; r0 < 80; r0++) {
|
|
2347
2347
|
var J, n0, D0 = n[r0];
|
|
2348
2348
|
if (r0 < 16)
|
|
2349
2349
|
n0 = D0.high = c[v + r0 * 2] | 0, J = D0.low = c[v + r0 * 2 + 1] | 0;
|
|
2350
2350
|
else {
|
|
2351
|
-
var
|
|
2352
|
-
J =
|
|
2351
|
+
var Ae = n[r0 - 15], c0 = Ae.high, B0 = Ae.low, Pr = (c0 >>> 1 | B0 << 31) ^ (c0 >>> 8 | B0 << 24) ^ c0 >>> 7, me = (B0 >>> 1 | c0 << 31) ^ (B0 >>> 8 | c0 << 24) ^ (B0 >>> 7 | c0 << 25), Fe = n[r0 - 2], u0 = Fe.high, C0 = Fe.low, Hr = (u0 >>> 19 | C0 << 13) ^ (u0 << 3 | C0 >>> 29) ^ u0 >>> 6, De = (C0 >>> 19 | u0 << 13) ^ (C0 << 3 | u0 >>> 29) ^ (C0 >>> 6 | u0 << 26), be = n[r0 - 7], Rr = be.high, Tr = be.low, we = n[r0 - 16], Wr = we.high, _e = we.low;
|
|
2352
|
+
J = me + Tr, n0 = Pr + Rr + (J >>> 0 < me >>> 0 ? 1 : 0), J = J + De, n0 = n0 + Hr + (J >>> 0 < De >>> 0 ? 1 : 0), J = J + _e, n0 = n0 + Wr + (J >>> 0 < _e >>> 0 ? 1 : 0), D0.high = n0, D0.low = J;
|
|
2353
2353
|
}
|
|
2354
|
-
var zr = e0 &
|
|
2355
|
-
P0 = F0, p0 = h0, F0 =
|
|
2354
|
+
var zr = e0 & m0 ^ ~e0 & F0, ke = Y & v0 ^ ~Y & h0, qr = Z & V ^ Z & l0 ^ V & l0, Or = U & I ^ U & s0 ^ I & s0, Ir = (Z >>> 28 | U << 4) ^ (Z << 30 | U >>> 2) ^ (Z << 25 | U >>> 7), Se = (U >>> 28 | Z << 4) ^ (U << 30 | Z >>> 2) ^ (U << 25 | Z >>> 7), $r = (e0 >>> 14 | Y << 18) ^ (e0 >>> 18 | Y << 14) ^ (e0 << 23 | Y >>> 9), jr = (Y >>> 14 | e0 << 18) ^ (Y >>> 18 | e0 << 14) ^ (Y << 23 | e0 >>> 9), Pe = l[r0], Lr = Pe.high, He = Pe.low, Q = p0 + jr, a0 = P0 + $r + (Q >>> 0 < p0 >>> 0 ? 1 : 0), Q = Q + ke, a0 = a0 + zr + (Q >>> 0 < ke >>> 0 ? 1 : 0), Q = Q + He, a0 = a0 + Lr + (Q >>> 0 < He >>> 0 ? 1 : 0), Q = Q + J, a0 = a0 + n0 + (Q >>> 0 < J >>> 0 ? 1 : 0), Re = Se + Or, Nr = Ir + qr + (Re >>> 0 < Se >>> 0 ? 1 : 0);
|
|
2355
|
+
P0 = F0, p0 = h0, F0 = m0, h0 = v0, m0 = e0, v0 = Y, Y = d0 + Q | 0, e0 = S0 + a0 + (Y >>> 0 < d0 >>> 0 ? 1 : 0) | 0, S0 = l0, d0 = s0, l0 = V, s0 = I, V = Z, I = U, U = Q + Re | 0, Z = a0 + Nr + (U >>> 0 < Q >>> 0 ? 1 : 0) | 0;
|
|
2356
2356
|
}
|
|
2357
|
-
E = d.low = E + U, d.high =
|
|
2357
|
+
E = d.low = E + U, d.high = H + Z + (E >>> 0 < U >>> 0 ? 1 : 0), S = a.low = S + I, a.high = D + V + (S >>> 0 < I >>> 0 ? 1 : 0), W = x.low = W + s0, x.high = w + l0 + (W >>> 0 < s0 >>> 0 ? 1 : 0), q = h.low = q + d0, h.high = z + S0 + (q >>> 0 < d0 >>> 0 ? 1 : 0), N = A.low = N + Y, A.high = X + e0 + (N >>> 0 < Y >>> 0 ? 1 : 0), M = y.low = M + v0, y.high = G + m0 + (M >>> 0 < v0 >>> 0 ? 1 : 0), R = F.low = R + h0, F.high = _ + F0 + (R >>> 0 < h0 >>> 0 ? 1 : 0), P = b.low = P + p0, b.high = T + P0 + (P >>> 0 < p0 >>> 0 ? 1 : 0);
|
|
2358
2358
|
},
|
|
2359
2359
|
_doFinalize: function() {
|
|
2360
2360
|
var c = this._data, v = c.words, u = this._nDataBytes * 8, d = c.sigBytes * 8;
|
|
@@ -2369,20 +2369,20 @@ function _r() {
|
|
|
2369
2369
|
blockSize: 1024 / 32
|
|
2370
2370
|
});
|
|
2371
2371
|
r.SHA512 = g._createHelper(s), r.HmacSHA512 = g._createHmacHelper(s);
|
|
2372
|
-
}(),
|
|
2372
|
+
}(), i.SHA512;
|
|
2373
2373
|
});
|
|
2374
2374
|
}(L0)), L0.exports;
|
|
2375
2375
|
}
|
|
2376
2376
|
var N0 = { exports: {} }, Xe;
|
|
2377
2377
|
function Lt() {
|
|
2378
|
-
return Xe || (Xe = 1, function(
|
|
2379
|
-
(function(
|
|
2380
|
-
|
|
2381
|
-
})(O, function(
|
|
2378
|
+
return Xe || (Xe = 1, function(o, C) {
|
|
2379
|
+
(function(i, r, f) {
|
|
2380
|
+
o.exports = r($(), k0(), _r());
|
|
2381
|
+
})(O, function(i) {
|
|
2382
2382
|
return function() {
|
|
2383
|
-
var r =
|
|
2383
|
+
var r = i, f = r.x64, g = f.Word, m = f.WordArray, p = r.algo, B = p.SHA512, e = p.SHA384 = B.extend({
|
|
2384
2384
|
_doReset: function() {
|
|
2385
|
-
this._hash = new
|
|
2385
|
+
this._hash = new m.init([
|
|
2386
2386
|
new g.init(3418070365, 3238371032),
|
|
2387
2387
|
new g.init(1654270250, 914150663),
|
|
2388
2388
|
new g.init(2438529370, 812702999),
|
|
@@ -2394,23 +2394,23 @@ function Lt() {
|
|
|
2394
2394
|
]);
|
|
2395
2395
|
},
|
|
2396
2396
|
_doFinalize: function() {
|
|
2397
|
-
var t =
|
|
2397
|
+
var t = B._doFinalize.call(this);
|
|
2398
2398
|
return t.sigBytes -= 16, t;
|
|
2399
2399
|
}
|
|
2400
2400
|
});
|
|
2401
|
-
r.SHA384 =
|
|
2402
|
-
}(),
|
|
2401
|
+
r.SHA384 = B._createHelper(e), r.HmacSHA384 = B._createHmacHelper(e);
|
|
2402
|
+
}(), i.SHA384;
|
|
2403
2403
|
});
|
|
2404
2404
|
}(N0)), N0.exports;
|
|
2405
2405
|
}
|
|
2406
2406
|
var M0 = { exports: {} }, Ze;
|
|
2407
2407
|
function Nt() {
|
|
2408
|
-
return Ze || (Ze = 1, function(
|
|
2409
|
-
(function(
|
|
2410
|
-
|
|
2411
|
-
})(O, function(
|
|
2408
|
+
return Ze || (Ze = 1, function(o, C) {
|
|
2409
|
+
(function(i, r, f) {
|
|
2410
|
+
o.exports = r($(), k0());
|
|
2411
|
+
})(O, function(i) {
|
|
2412
2412
|
return function(r) {
|
|
2413
|
-
var f =
|
|
2413
|
+
var f = i, g = f.lib, m = g.WordArray, p = g.Hasher, B = f.x64, e = B.Word, t = f.algo, l = [], n = [], s = [];
|
|
2414
2414
|
(function() {
|
|
2415
2415
|
for (var u = 1, d = 0, a = 0; a < 24; a++) {
|
|
2416
2416
|
l[u + 5 * d] = (a + 1) * (a + 2) / 2 % 64;
|
|
@@ -2420,15 +2420,15 @@ function Nt() {
|
|
|
2420
2420
|
for (var u = 0; u < 5; u++)
|
|
2421
2421
|
for (var d = 0; d < 5; d++)
|
|
2422
2422
|
n[u + 5 * d] = d + (2 * u + 3 * d) % 5 * 5;
|
|
2423
|
-
for (var
|
|
2424
|
-
for (var
|
|
2425
|
-
if (
|
|
2426
|
-
var E = (1 <<
|
|
2427
|
-
E < 32 ? b ^= 1 << E :
|
|
2423
|
+
for (var A = 1, y = 0; y < 24; y++) {
|
|
2424
|
+
for (var F = 0, b = 0, H = 0; H < 7; H++) {
|
|
2425
|
+
if (A & 1) {
|
|
2426
|
+
var E = (1 << H) - 1;
|
|
2427
|
+
E < 32 ? b ^= 1 << E : F ^= 1 << E - 32;
|
|
2428
2428
|
}
|
|
2429
|
-
|
|
2429
|
+
A & 128 ? A = A << 1 ^ 113 : A <<= 1;
|
|
2430
2430
|
}
|
|
2431
|
-
s[y] = e.create(
|
|
2431
|
+
s[y] = e.create(F, b);
|
|
2432
2432
|
}
|
|
2433
2433
|
})();
|
|
2434
2434
|
var c = [];
|
|
@@ -2436,7 +2436,7 @@ function Nt() {
|
|
|
2436
2436
|
for (var u = 0; u < 25; u++)
|
|
2437
2437
|
c[u] = e.create();
|
|
2438
2438
|
})();
|
|
2439
|
-
var v = t.SHA3 =
|
|
2439
|
+
var v = t.SHA3 = p.extend({
|
|
2440
2440
|
/**
|
|
2441
2441
|
* Configuration options.
|
|
2442
2442
|
*
|
|
@@ -2445,7 +2445,7 @@ function Nt() {
|
|
|
2445
2445
|
* Only values permitted are: 224, 256, 384, 512.
|
|
2446
2446
|
* Default: 512
|
|
2447
2447
|
*/
|
|
2448
|
-
cfg:
|
|
2448
|
+
cfg: p.cfg.extend({
|
|
2449
2449
|
outputLength: 512
|
|
2450
2450
|
}),
|
|
2451
2451
|
_doReset: function() {
|
|
@@ -2455,40 +2455,40 @@ function Nt() {
|
|
|
2455
2455
|
},
|
|
2456
2456
|
_doProcessBlock: function(u, d) {
|
|
2457
2457
|
for (var a = this._state, x = this.blockSize / 2, h = 0; h < x; h++) {
|
|
2458
|
-
var
|
|
2459
|
-
|
|
2460
|
-
var
|
|
2461
|
-
|
|
2458
|
+
var A = u[d + 2 * h], y = u[d + 2 * h + 1];
|
|
2459
|
+
A = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360, y = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360;
|
|
2460
|
+
var F = a[h];
|
|
2461
|
+
F.high ^= y, F.low ^= A;
|
|
2462
2462
|
}
|
|
2463
2463
|
for (var b = 0; b < 24; b++) {
|
|
2464
|
-
for (var
|
|
2464
|
+
for (var H = 0; H < 5; H++) {
|
|
2465
2465
|
for (var E = 0, D = 0, S = 0; S < 5; S++) {
|
|
2466
|
-
var
|
|
2467
|
-
E ^=
|
|
2466
|
+
var F = a[H + 5 * S];
|
|
2467
|
+
E ^= F.high, D ^= F.low;
|
|
2468
2468
|
}
|
|
2469
|
-
var w = c[
|
|
2469
|
+
var w = c[H];
|
|
2470
2470
|
w.high = E, w.low = D;
|
|
2471
2471
|
}
|
|
2472
|
-
for (var
|
|
2473
|
-
for (var W = c[(
|
|
2474
|
-
var
|
|
2475
|
-
|
|
2472
|
+
for (var H = 0; H < 5; H++)
|
|
2473
|
+
for (var W = c[(H + 4) % 5], z = c[(H + 1) % 5], q = z.high, X = z.low, E = W.high ^ (q << 1 | X >>> 31), D = W.low ^ (X << 1 | q >>> 31), S = 0; S < 5; S++) {
|
|
2474
|
+
var F = a[H + 5 * S];
|
|
2475
|
+
F.high ^= E, F.low ^= D;
|
|
2476
2476
|
}
|
|
2477
2477
|
for (var N = 1; N < 25; N++) {
|
|
2478
|
-
var E, D,
|
|
2478
|
+
var E, D, F = a[N], G = F.high, M = F.low, _ = l[N];
|
|
2479
2479
|
_ < 32 ? (E = G << _ | M >>> 32 - _, D = M << _ | G >>> 32 - _) : (E = M << _ - 32 | G >>> 64 - _, D = G << _ - 32 | M >>> 64 - _);
|
|
2480
|
-
var
|
|
2481
|
-
|
|
2480
|
+
var R = c[n[N]];
|
|
2481
|
+
R.high = E, R.low = D;
|
|
2482
2482
|
}
|
|
2483
|
-
var
|
|
2484
|
-
|
|
2485
|
-
for (var
|
|
2483
|
+
var T = c[0], P = a[0];
|
|
2484
|
+
T.high = P.high, T.low = P.low;
|
|
2485
|
+
for (var H = 0; H < 5; H++)
|
|
2486
2486
|
for (var S = 0; S < 5; S++) {
|
|
2487
|
-
var N =
|
|
2488
|
-
|
|
2487
|
+
var N = H + 5 * S, F = a[N], Z = c[N], U = c[(H + 1) % 5 + 5 * S], V = c[(H + 2) % 5 + 5 * S];
|
|
2488
|
+
F.high = Z.high ^ ~U.high & V.high, F.low = Z.low ^ ~U.low & V.low;
|
|
2489
2489
|
}
|
|
2490
|
-
var
|
|
2491
|
-
|
|
2490
|
+
var F = a[0], I = s[b];
|
|
2491
|
+
F.high ^= I.high, F.low ^= I.low;
|
|
2492
2492
|
}
|
|
2493
2493
|
},
|
|
2494
2494
|
_doFinalize: function() {
|
|
@@ -2496,29 +2496,29 @@ function Nt() {
|
|
|
2496
2496
|
this._nDataBytes * 8;
|
|
2497
2497
|
var a = u.sigBytes * 8, x = this.blockSize * 32;
|
|
2498
2498
|
d[a >>> 5] |= 1 << 24 - a % 32, d[(r.ceil((a + 1) / x) * x >>> 5) - 1] |= 128, u.sigBytes = d.length * 4, this._process();
|
|
2499
|
-
for (var h = this._state,
|
|
2500
|
-
var
|
|
2501
|
-
E = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360, D = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360,
|
|
2499
|
+
for (var h = this._state, A = this.cfg.outputLength / 8, y = A / 8, F = [], b = 0; b < y; b++) {
|
|
2500
|
+
var H = h[b], E = H.high, D = H.low;
|
|
2501
|
+
E = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360, D = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360, F.push(D), F.push(E);
|
|
2502
2502
|
}
|
|
2503
|
-
return new
|
|
2503
|
+
return new m.init(F, A);
|
|
2504
2504
|
},
|
|
2505
2505
|
clone: function() {
|
|
2506
|
-
for (var u =
|
|
2506
|
+
for (var u = p.clone.call(this), d = u._state = this._state.slice(0), a = 0; a < 25; a++)
|
|
2507
2507
|
d[a] = d[a].clone();
|
|
2508
2508
|
return u;
|
|
2509
2509
|
}
|
|
2510
2510
|
});
|
|
2511
|
-
f.SHA3 =
|
|
2512
|
-
}(Math),
|
|
2511
|
+
f.SHA3 = p._createHelper(v), f.HmacSHA3 = p._createHmacHelper(v);
|
|
2512
|
+
}(Math), i.SHA3;
|
|
2513
2513
|
});
|
|
2514
2514
|
}(M0)), M0.exports;
|
|
2515
2515
|
}
|
|
2516
2516
|
var G0 = { exports: {} }, Ke;
|
|
2517
2517
|
function Mt() {
|
|
2518
|
-
return Ke || (Ke = 1, function(
|
|
2519
|
-
(function(
|
|
2520
|
-
|
|
2521
|
-
})(O, function(
|
|
2518
|
+
return Ke || (Ke = 1, function(o, C) {
|
|
2519
|
+
(function(i, r) {
|
|
2520
|
+
o.exports = r($());
|
|
2521
|
+
})(O, function(i) {
|
|
2522
2522
|
/** @preserve
|
|
2523
2523
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
2524
2524
|
|
|
@@ -2530,7 +2530,7 @@ function Mt() {
|
|
|
2530
2530
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2531
2531
|
*/
|
|
2532
2532
|
return function(r) {
|
|
2533
|
-
var f =
|
|
2533
|
+
var f = i, g = f.lib, m = g.WordArray, p = g.Hasher, B = f.algo, e = m.create([
|
|
2534
2534
|
0,
|
|
2535
2535
|
1,
|
|
2536
2536
|
2,
|
|
@@ -2611,7 +2611,7 @@ function Mt() {
|
|
|
2611
2611
|
6,
|
|
2612
2612
|
15,
|
|
2613
2613
|
13
|
|
2614
|
-
]), t =
|
|
2614
|
+
]), t = m.create([
|
|
2615
2615
|
5,
|
|
2616
2616
|
14,
|
|
2617
2617
|
7,
|
|
@@ -2692,7 +2692,7 @@ function Mt() {
|
|
|
2692
2692
|
3,
|
|
2693
2693
|
9,
|
|
2694
2694
|
11
|
|
2695
|
-
]), l =
|
|
2695
|
+
]), l = m.create([
|
|
2696
2696
|
11,
|
|
2697
2697
|
14,
|
|
2698
2698
|
15,
|
|
@@ -2773,7 +2773,7 @@ function Mt() {
|
|
|
2773
2773
|
8,
|
|
2774
2774
|
5,
|
|
2775
2775
|
6
|
|
2776
|
-
]), n =
|
|
2776
|
+
]), n = m.create([
|
|
2777
2777
|
8,
|
|
2778
2778
|
9,
|
|
2779
2779
|
9,
|
|
@@ -2854,24 +2854,24 @@ function Mt() {
|
|
|
2854
2854
|
13,
|
|
2855
2855
|
11,
|
|
2856
2856
|
11
|
|
2857
|
-
]), s =
|
|
2857
|
+
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), c = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), v = B.RIPEMD160 = p.extend({
|
|
2858
2858
|
_doReset: function() {
|
|
2859
|
-
this._hash =
|
|
2859
|
+
this._hash = m.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2860
2860
|
},
|
|
2861
|
-
_doProcessBlock: function(y,
|
|
2861
|
+
_doProcessBlock: function(y, F) {
|
|
2862
2862
|
for (var b = 0; b < 16; b++) {
|
|
2863
|
-
var
|
|
2864
|
-
y[
|
|
2863
|
+
var H = F + b, E = y[H];
|
|
2864
|
+
y[H] = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360;
|
|
2865
2865
|
}
|
|
2866
|
-
var D = this._hash.words, S = s.words, w = c.words, W = e.words, z = t.words, q = l.words, X = n.words, N, G, M, _,
|
|
2867
|
-
|
|
2866
|
+
var D = this._hash.words, S = s.words, w = c.words, W = e.words, z = t.words, q = l.words, X = n.words, N, G, M, _, R, T, P, Z, U, V;
|
|
2867
|
+
T = N = D[0], P = G = D[1], Z = M = D[2], U = _ = D[3], V = R = D[4];
|
|
2868
2868
|
for (var I, b = 0; b < 80; b += 1)
|
|
2869
|
-
I = N + y[
|
|
2870
|
-
I = D[1] + M + U | 0, D[1] = D[2] + _ + V | 0, D[2] = D[3] +
|
|
2869
|
+
I = N + y[F + W[b]] | 0, b < 16 ? I += u(G, M, _) + S[0] : b < 32 ? I += d(G, M, _) + S[1] : b < 48 ? I += a(G, M, _) + S[2] : b < 64 ? I += x(G, M, _) + S[3] : I += h(G, M, _) + S[4], I = I | 0, I = A(I, q[b]), I = I + R | 0, N = R, R = _, _ = A(M, 10), M = G, G = I, I = T + y[F + z[b]] | 0, b < 16 ? I += h(P, Z, U) + w[0] : b < 32 ? I += x(P, Z, U) + w[1] : b < 48 ? I += a(P, Z, U) + w[2] : b < 64 ? I += d(P, Z, U) + w[3] : I += u(P, Z, U) + w[4], I = I | 0, I = A(I, X[b]), I = I + V | 0, T = V, V = U, U = A(Z, 10), Z = P, P = I;
|
|
2870
|
+
I = D[1] + M + U | 0, D[1] = D[2] + _ + V | 0, D[2] = D[3] + R + T | 0, D[3] = D[4] + N + P | 0, D[4] = D[0] + G + Z | 0, D[0] = I;
|
|
2871
2871
|
},
|
|
2872
2872
|
_doFinalize: function() {
|
|
2873
|
-
var y = this._data,
|
|
2874
|
-
|
|
2873
|
+
var y = this._data, F = y.words, b = this._nDataBytes * 8, H = y.sigBytes * 8;
|
|
2874
|
+
F[H >>> 5] |= 128 << 24 - H % 32, F[(H + 64 >>> 9 << 4) + 14] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, y.sigBytes = (F.length + 1) * 4, this._process();
|
|
2875
2875
|
for (var E = this._hash, D = E.words, S = 0; S < 5; S++) {
|
|
2876
2876
|
var w = D[S];
|
|
2877
2877
|
D[S] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360;
|
|
@@ -2879,42 +2879,42 @@ function Mt() {
|
|
|
2879
2879
|
return E;
|
|
2880
2880
|
},
|
|
2881
2881
|
clone: function() {
|
|
2882
|
-
var y =
|
|
2882
|
+
var y = p.clone.call(this);
|
|
2883
2883
|
return y._hash = this._hash.clone(), y;
|
|
2884
2884
|
}
|
|
2885
2885
|
});
|
|
2886
|
-
function u(y,
|
|
2887
|
-
return y ^
|
|
2886
|
+
function u(y, F, b) {
|
|
2887
|
+
return y ^ F ^ b;
|
|
2888
2888
|
}
|
|
2889
|
-
function d(y,
|
|
2890
|
-
return y &
|
|
2889
|
+
function d(y, F, b) {
|
|
2890
|
+
return y & F | ~y & b;
|
|
2891
2891
|
}
|
|
2892
|
-
function a(y,
|
|
2893
|
-
return (y | ~
|
|
2892
|
+
function a(y, F, b) {
|
|
2893
|
+
return (y | ~F) ^ b;
|
|
2894
2894
|
}
|
|
2895
|
-
function x(y,
|
|
2896
|
-
return y & b |
|
|
2895
|
+
function x(y, F, b) {
|
|
2896
|
+
return y & b | F & ~b;
|
|
2897
2897
|
}
|
|
2898
|
-
function h(y,
|
|
2899
|
-
return y ^ (
|
|
2898
|
+
function h(y, F, b) {
|
|
2899
|
+
return y ^ (F | ~b);
|
|
2900
2900
|
}
|
|
2901
|
-
function
|
|
2902
|
-
return y <<
|
|
2901
|
+
function A(y, F) {
|
|
2902
|
+
return y << F | y >>> 32 - F;
|
|
2903
2903
|
}
|
|
2904
|
-
f.RIPEMD160 =
|
|
2905
|
-
}(),
|
|
2904
|
+
f.RIPEMD160 = p._createHelper(v), f.HmacRIPEMD160 = p._createHmacHelper(v);
|
|
2905
|
+
}(), i.RIPEMD160;
|
|
2906
2906
|
});
|
|
2907
2907
|
}(G0)), G0.exports;
|
|
2908
2908
|
}
|
|
2909
2909
|
var U0 = { exports: {} }, Ve;
|
|
2910
2910
|
function Ee() {
|
|
2911
|
-
return Ve || (Ve = 1, function(
|
|
2912
|
-
(function(
|
|
2913
|
-
|
|
2914
|
-
})(O, function(
|
|
2911
|
+
return Ve || (Ve = 1, function(o, C) {
|
|
2912
|
+
(function(i, r) {
|
|
2913
|
+
o.exports = r($());
|
|
2914
|
+
})(O, function(i) {
|
|
2915
2915
|
(function() {
|
|
2916
|
-
var r =
|
|
2917
|
-
|
|
2916
|
+
var r = i, f = r.lib, g = f.Base, m = r.enc, p = m.Utf8, B = r.algo;
|
|
2917
|
+
B.HMAC = g.extend({
|
|
2918
2918
|
/**
|
|
2919
2919
|
* Initializes a newly created HMAC.
|
|
2920
2920
|
*
|
|
@@ -2926,7 +2926,7 @@ function Ee() {
|
|
|
2926
2926
|
* var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
|
|
2927
2927
|
*/
|
|
2928
2928
|
init: function(e, t) {
|
|
2929
|
-
e = this._hasher = new e.init(), typeof t == "string" && (t =
|
|
2929
|
+
e = this._hasher = new e.init(), typeof t == "string" && (t = p.parse(t));
|
|
2930
2930
|
var l = e.blockSize, n = l * 4;
|
|
2931
2931
|
t.sigBytes > n && (t = e.finalize(t)), t.clamp();
|
|
2932
2932
|
for (var s = this._oKey = t.clone(), c = this._iKey = t.clone(), v = s.words, u = c.words, d = 0; d < l; d++)
|
|
@@ -2986,12 +2986,12 @@ function Ee() {
|
|
|
2986
2986
|
}
|
|
2987
2987
|
var X0 = { exports: {} }, Ye;
|
|
2988
2988
|
function Gt() {
|
|
2989
|
-
return Ye || (Ye = 1, function(
|
|
2990
|
-
(function(
|
|
2991
|
-
|
|
2992
|
-
})(O, function(
|
|
2989
|
+
return Ye || (Ye = 1, function(o, C) {
|
|
2990
|
+
(function(i, r, f) {
|
|
2991
|
+
o.exports = r($(), ye(), Ee());
|
|
2992
|
+
})(O, function(i) {
|
|
2993
2993
|
return function() {
|
|
2994
|
-
var r =
|
|
2994
|
+
var r = i, f = r.lib, g = f.Base, m = f.WordArray, p = r.algo, B = p.SHA256, e = p.HMAC, t = p.PBKDF2 = g.extend({
|
|
2995
2995
|
/**
|
|
2996
2996
|
* Configuration options.
|
|
2997
2997
|
*
|
|
@@ -3001,7 +3001,7 @@ function Gt() {
|
|
|
3001
3001
|
*/
|
|
3002
3002
|
cfg: g.extend({
|
|
3003
3003
|
keySize: 128 / 32,
|
|
3004
|
-
hasher:
|
|
3004
|
+
hasher: B,
|
|
3005
3005
|
iterations: 25e4
|
|
3006
3006
|
}),
|
|
3007
3007
|
/**
|
|
@@ -3031,15 +3031,15 @@ function Gt() {
|
|
|
3031
3031
|
* var key = kdf.compute(password, salt);
|
|
3032
3032
|
*/
|
|
3033
3033
|
compute: function(l, n) {
|
|
3034
|
-
for (var s = this.cfg, c = e.create(s.hasher, l), v =
|
|
3035
|
-
var
|
|
3034
|
+
for (var s = this.cfg, c = e.create(s.hasher, l), v = m.create(), u = m.create([1]), d = v.words, a = u.words, x = s.keySize, h = s.iterations; d.length < x; ) {
|
|
3035
|
+
var A = c.update(n).finalize(u);
|
|
3036
3036
|
c.reset();
|
|
3037
|
-
for (var y =
|
|
3037
|
+
for (var y = A.words, F = y.length, b = A, H = 1; H < h; H++) {
|
|
3038
3038
|
b = c.finalize(b), c.reset();
|
|
3039
|
-
for (var E = b.words, D = 0; D <
|
|
3039
|
+
for (var E = b.words, D = 0; D < F; D++)
|
|
3040
3040
|
y[D] ^= E[D];
|
|
3041
3041
|
}
|
|
3042
|
-
v.concat(
|
|
3042
|
+
v.concat(A), a[0]++;
|
|
3043
3043
|
}
|
|
3044
3044
|
return v.sigBytes = x * 4, v;
|
|
3045
3045
|
}
|
|
@@ -3047,18 +3047,18 @@ function Gt() {
|
|
|
3047
3047
|
r.PBKDF2 = function(l, n, s) {
|
|
3048
3048
|
return t.create(s).compute(l, n);
|
|
3049
3049
|
};
|
|
3050
|
-
}(),
|
|
3050
|
+
}(), i.PBKDF2;
|
|
3051
3051
|
});
|
|
3052
3052
|
}(X0)), X0.exports;
|
|
3053
3053
|
}
|
|
3054
3054
|
var Z0 = { exports: {} }, Qe;
|
|
3055
3055
|
function o0() {
|
|
3056
|
-
return Qe || (Qe = 1, function(
|
|
3057
|
-
(function(
|
|
3058
|
-
|
|
3059
|
-
})(O, function(
|
|
3056
|
+
return Qe || (Qe = 1, function(o, C) {
|
|
3057
|
+
(function(i, r, f) {
|
|
3058
|
+
o.exports = r($(), wr(), Ee());
|
|
3059
|
+
})(O, function(i) {
|
|
3060
3060
|
return function() {
|
|
3061
|
-
var r =
|
|
3061
|
+
var r = i, f = r.lib, g = f.Base, m = f.WordArray, p = r.algo, B = p.MD5, e = p.EvpKDF = g.extend({
|
|
3062
3062
|
/**
|
|
3063
3063
|
* Configuration options.
|
|
3064
3064
|
*
|
|
@@ -3068,7 +3068,7 @@ function o0() {
|
|
|
3068
3068
|
*/
|
|
3069
3069
|
cfg: g.extend({
|
|
3070
3070
|
keySize: 128 / 32,
|
|
3071
|
-
hasher:
|
|
3071
|
+
hasher: B,
|
|
3072
3072
|
iterations: 1
|
|
3073
3073
|
}),
|
|
3074
3074
|
/**
|
|
@@ -3098,7 +3098,7 @@ function o0() {
|
|
|
3098
3098
|
* var key = kdf.compute(password, salt);
|
|
3099
3099
|
*/
|
|
3100
3100
|
compute: function(t, l) {
|
|
3101
|
-
for (var n, s = this.cfg, c = s.hasher.create(), v =
|
|
3101
|
+
for (var n, s = this.cfg, c = s.hasher.create(), v = m.create(), u = v.words, d = s.keySize, a = s.iterations; u.length < d; ) {
|
|
3102
3102
|
n && c.update(n), n = c.update(t).finalize(l), c.reset();
|
|
3103
3103
|
for (var x = 1; x < a; x++)
|
|
3104
3104
|
n = c.finalize(n), c.reset();
|
|
@@ -3110,26 +3110,26 @@ function o0() {
|
|
|
3110
3110
|
r.EvpKDF = function(t, l, n) {
|
|
3111
3111
|
return e.create(n).compute(t, l);
|
|
3112
3112
|
};
|
|
3113
|
-
}(),
|
|
3113
|
+
}(), i.EvpKDF;
|
|
3114
3114
|
});
|
|
3115
3115
|
}(Z0)), Z0.exports;
|
|
3116
3116
|
}
|
|
3117
3117
|
var K0 = { exports: {} }, Je;
|
|
3118
3118
|
function K() {
|
|
3119
|
-
return Je || (Je = 1, function(
|
|
3120
|
-
(function(
|
|
3121
|
-
|
|
3122
|
-
})(O, function(
|
|
3123
|
-
|
|
3124
|
-
var f =
|
|
3119
|
+
return Je || (Je = 1, function(o, C) {
|
|
3120
|
+
(function(i, r, f) {
|
|
3121
|
+
o.exports = r($(), o0());
|
|
3122
|
+
})(O, function(i) {
|
|
3123
|
+
i.lib.Cipher || function(r) {
|
|
3124
|
+
var f = i, g = f.lib, m = g.Base, p = g.WordArray, B = g.BufferedBlockAlgorithm, e = f.enc;
|
|
3125
3125
|
e.Utf8;
|
|
3126
|
-
var t = e.Base64, l = f.algo, n = l.EvpKDF, s = g.Cipher =
|
|
3126
|
+
var t = e.Base64, l = f.algo, n = l.EvpKDF, s = g.Cipher = B.extend({
|
|
3127
3127
|
/**
|
|
3128
3128
|
* Configuration options.
|
|
3129
3129
|
*
|
|
3130
3130
|
* @property {WordArray} iv The IV to use for this operation.
|
|
3131
3131
|
*/
|
|
3132
|
-
cfg:
|
|
3132
|
+
cfg: m.extend(),
|
|
3133
3133
|
/**
|
|
3134
3134
|
* Creates this cipher in encryption mode.
|
|
3135
3135
|
*
|
|
@@ -3186,7 +3186,7 @@ function K() {
|
|
|
3186
3186
|
* cipher.reset();
|
|
3187
3187
|
*/
|
|
3188
3188
|
reset: function() {
|
|
3189
|
-
|
|
3189
|
+
B.reset.call(this), this._doReset();
|
|
3190
3190
|
},
|
|
3191
3191
|
/**
|
|
3192
3192
|
* Adds data to be encrypted or decrypted.
|
|
@@ -3241,7 +3241,7 @@ function K() {
|
|
|
3241
3241
|
*/
|
|
3242
3242
|
_createHelper: /* @__PURE__ */ function() {
|
|
3243
3243
|
function E(D) {
|
|
3244
|
-
return typeof D == "string" ?
|
|
3244
|
+
return typeof D == "string" ? H : y;
|
|
3245
3245
|
}
|
|
3246
3246
|
return function(D) {
|
|
3247
3247
|
return {
|
|
@@ -3262,7 +3262,7 @@ function K() {
|
|
|
3262
3262
|
},
|
|
3263
3263
|
blockSize: 1
|
|
3264
3264
|
});
|
|
3265
|
-
var c = f.mode = {}, v = g.BlockCipherMode =
|
|
3265
|
+
var c = f.mode = {}, v = g.BlockCipherMode = m.extend({
|
|
3266
3266
|
/**
|
|
3267
3267
|
* Creates this mode for encryption.
|
|
3268
3268
|
*
|
|
@@ -3362,7 +3362,7 @@ function K() {
|
|
|
3362
3362
|
pad: function(E, D) {
|
|
3363
3363
|
for (var S = D * 4, w = S - E.sigBytes % S, W = w << 24 | w << 16 | w << 8 | w, z = [], q = 0; q < w; q += 4)
|
|
3364
3364
|
z.push(W);
|
|
3365
|
-
var X =
|
|
3365
|
+
var X = p.create(z, w);
|
|
3366
3366
|
E.concat(X);
|
|
3367
3367
|
},
|
|
3368
3368
|
/**
|
|
@@ -3407,7 +3407,7 @@ function K() {
|
|
|
3407
3407
|
},
|
|
3408
3408
|
blockSize: 128 / 32
|
|
3409
3409
|
});
|
|
3410
|
-
var x = g.CipherParams =
|
|
3410
|
+
var x = g.CipherParams = m.extend({
|
|
3411
3411
|
/**
|
|
3412
3412
|
* Initializes a newly created cipher params object.
|
|
3413
3413
|
*
|
|
@@ -3448,7 +3448,7 @@ function K() {
|
|
|
3448
3448
|
toString: function(E) {
|
|
3449
3449
|
return (E || this.formatter).stringify(this);
|
|
3450
3450
|
}
|
|
3451
|
-
}), h = f.format = {},
|
|
3451
|
+
}), h = f.format = {}, A = h.OpenSSL = {
|
|
3452
3452
|
/**
|
|
3453
3453
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
3454
3454
|
*
|
|
@@ -3464,7 +3464,7 @@ function K() {
|
|
|
3464
3464
|
*/
|
|
3465
3465
|
stringify: function(E) {
|
|
3466
3466
|
var D, S = E.ciphertext, w = E.salt;
|
|
3467
|
-
return w ? D =
|
|
3467
|
+
return w ? D = p.create([1398893684, 1701076831]).concat(w).concat(S) : D = S, D.toString(t);
|
|
3468
3468
|
},
|
|
3469
3469
|
/**
|
|
3470
3470
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3481,16 +3481,16 @@ function K() {
|
|
|
3481
3481
|
*/
|
|
3482
3482
|
parse: function(E) {
|
|
3483
3483
|
var D, S = t.parse(E), w = S.words;
|
|
3484
|
-
return w[0] == 1398893684 && w[1] == 1701076831 && (D =
|
|
3484
|
+
return w[0] == 1398893684 && w[1] == 1701076831 && (D = p.create(w.slice(2, 4)), w.splice(0, 4), S.sigBytes -= 16), x.create({ ciphertext: S, salt: D });
|
|
3485
3485
|
}
|
|
3486
|
-
}, y = g.SerializableCipher =
|
|
3486
|
+
}, y = g.SerializableCipher = m.extend({
|
|
3487
3487
|
/**
|
|
3488
3488
|
* Configuration options.
|
|
3489
3489
|
*
|
|
3490
3490
|
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
3491
3491
|
*/
|
|
3492
|
-
cfg:
|
|
3493
|
-
format:
|
|
3492
|
+
cfg: m.extend({
|
|
3493
|
+
format: A
|
|
3494
3494
|
}),
|
|
3495
3495
|
/**
|
|
3496
3496
|
* Encrypts a message.
|
|
@@ -3564,7 +3564,7 @@ function K() {
|
|
|
3564
3564
|
_parse: function(E, D) {
|
|
3565
3565
|
return typeof E == "string" ? D.parse(E, this) : E;
|
|
3566
3566
|
}
|
|
3567
|
-
}),
|
|
3567
|
+
}), F = f.kdf = {}, b = F.OpenSSL = {
|
|
3568
3568
|
/**
|
|
3569
3569
|
* Derives a key and IV from a password.
|
|
3570
3570
|
*
|
|
@@ -3583,14 +3583,14 @@ function K() {
|
|
|
3583
3583
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3584
3584
|
*/
|
|
3585
3585
|
execute: function(E, D, S, w, W) {
|
|
3586
|
-
if (w || (w =
|
|
3586
|
+
if (w || (w = p.random(64 / 8)), W)
|
|
3587
3587
|
var z = n.create({ keySize: D + S, hasher: W }).compute(E, w);
|
|
3588
3588
|
else
|
|
3589
3589
|
var z = n.create({ keySize: D + S }).compute(E, w);
|
|
3590
|
-
var q =
|
|
3590
|
+
var q = p.create(z.words.slice(D), S * 4);
|
|
3591
3591
|
return z.sigBytes = D * 4, x.create({ key: z, iv: q, salt: w });
|
|
3592
3592
|
}
|
|
3593
|
-
},
|
|
3593
|
+
}, H = g.PasswordBasedCipher = y.extend({
|
|
3594
3594
|
/**
|
|
3595
3595
|
* Configuration options.
|
|
3596
3596
|
*
|
|
@@ -3654,123 +3654,123 @@ function K() {
|
|
|
3654
3654
|
}
|
|
3655
3655
|
var V0 = { exports: {} }, er;
|
|
3656
3656
|
function Ut() {
|
|
3657
|
-
return er || (er = 1, function(
|
|
3658
|
-
(function(
|
|
3659
|
-
|
|
3660
|
-
})(O, function(
|
|
3661
|
-
return
|
|
3662
|
-
var r =
|
|
3657
|
+
return er || (er = 1, function(o, C) {
|
|
3658
|
+
(function(i, r, f) {
|
|
3659
|
+
o.exports = r($(), K());
|
|
3660
|
+
})(O, function(i) {
|
|
3661
|
+
return i.mode.CFB = function() {
|
|
3662
|
+
var r = i.lib.BlockCipherMode.extend();
|
|
3663
3663
|
r.Encryptor = r.extend({
|
|
3664
|
-
processBlock: function(g,
|
|
3665
|
-
var
|
|
3666
|
-
f.call(this, g,
|
|
3664
|
+
processBlock: function(g, m) {
|
|
3665
|
+
var p = this._cipher, B = p.blockSize;
|
|
3666
|
+
f.call(this, g, m, B, p), this._prevBlock = g.slice(m, m + B);
|
|
3667
3667
|
}
|
|
3668
3668
|
}), r.Decryptor = r.extend({
|
|
3669
|
-
processBlock: function(g,
|
|
3670
|
-
var
|
|
3671
|
-
f.call(this, g,
|
|
3669
|
+
processBlock: function(g, m) {
|
|
3670
|
+
var p = this._cipher, B = p.blockSize, e = g.slice(m, m + B);
|
|
3671
|
+
f.call(this, g, m, B, p), this._prevBlock = e;
|
|
3672
3672
|
}
|
|
3673
3673
|
});
|
|
3674
|
-
function f(g,
|
|
3674
|
+
function f(g, m, p, B) {
|
|
3675
3675
|
var e, t = this._iv;
|
|
3676
|
-
t ? (e = t.slice(0), this._iv = void 0) : e = this._prevBlock,
|
|
3677
|
-
for (var l = 0; l <
|
|
3678
|
-
g[
|
|
3676
|
+
t ? (e = t.slice(0), this._iv = void 0) : e = this._prevBlock, B.encryptBlock(e, 0);
|
|
3677
|
+
for (var l = 0; l < p; l++)
|
|
3678
|
+
g[m + l] ^= e[l];
|
|
3679
3679
|
}
|
|
3680
3680
|
return r;
|
|
3681
|
-
}(),
|
|
3681
|
+
}(), i.mode.CFB;
|
|
3682
3682
|
});
|
|
3683
3683
|
}(V0)), V0.exports;
|
|
3684
3684
|
}
|
|
3685
3685
|
var Y0 = { exports: {} }, rr;
|
|
3686
3686
|
function Xt() {
|
|
3687
|
-
return rr || (rr = 1, function(
|
|
3688
|
-
(function(
|
|
3689
|
-
|
|
3690
|
-
})(O, function(
|
|
3691
|
-
return
|
|
3692
|
-
var r =
|
|
3693
|
-
processBlock: function(g,
|
|
3694
|
-
var
|
|
3687
|
+
return rr || (rr = 1, function(o, C) {
|
|
3688
|
+
(function(i, r, f) {
|
|
3689
|
+
o.exports = r($(), K());
|
|
3690
|
+
})(O, function(i) {
|
|
3691
|
+
return i.mode.CTR = function() {
|
|
3692
|
+
var r = i.lib.BlockCipherMode.extend(), f = r.Encryptor = r.extend({
|
|
3693
|
+
processBlock: function(g, m) {
|
|
3694
|
+
var p = this._cipher, B = p.blockSize, e = this._iv, t = this._counter;
|
|
3695
3695
|
e && (t = this._counter = e.slice(0), this._iv = void 0);
|
|
3696
3696
|
var l = t.slice(0);
|
|
3697
|
-
|
|
3698
|
-
for (var n = 0; n <
|
|
3699
|
-
g[
|
|
3697
|
+
p.encryptBlock(l, 0), t[B - 1] = t[B - 1] + 1 | 0;
|
|
3698
|
+
for (var n = 0; n < B; n++)
|
|
3699
|
+
g[m + n] ^= l[n];
|
|
3700
3700
|
}
|
|
3701
3701
|
});
|
|
3702
3702
|
return r.Decryptor = f, r;
|
|
3703
|
-
}(),
|
|
3703
|
+
}(), i.mode.CTR;
|
|
3704
3704
|
});
|
|
3705
3705
|
}(Y0)), Y0.exports;
|
|
3706
3706
|
}
|
|
3707
3707
|
var Q0 = { exports: {} }, tr;
|
|
3708
3708
|
function Zt() {
|
|
3709
|
-
return tr || (tr = 1, function(
|
|
3710
|
-
(function(
|
|
3711
|
-
|
|
3712
|
-
})(O, function(
|
|
3709
|
+
return tr || (tr = 1, function(o, C) {
|
|
3710
|
+
(function(i, r, f) {
|
|
3711
|
+
o.exports = r($(), K());
|
|
3712
|
+
})(O, function(i) {
|
|
3713
3713
|
/** @preserve
|
|
3714
3714
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
3715
3715
|
* derived from CryptoJS.mode.CTR
|
|
3716
3716
|
* Jan Hruby jhruby.web@gmail.com
|
|
3717
3717
|
*/
|
|
3718
|
-
return
|
|
3719
|
-
var r =
|
|
3720
|
-
function f(
|
|
3721
|
-
if ((
|
|
3722
|
-
var
|
|
3723
|
-
|
|
3718
|
+
return i.mode.CTRGladman = function() {
|
|
3719
|
+
var r = i.lib.BlockCipherMode.extend();
|
|
3720
|
+
function f(p) {
|
|
3721
|
+
if ((p >> 24 & 255) === 255) {
|
|
3722
|
+
var B = p >> 16 & 255, e = p >> 8 & 255, t = p & 255;
|
|
3723
|
+
B === 255 ? (B = 0, e === 255 ? (e = 0, t === 255 ? t = 0 : ++t) : ++e) : ++B, p = 0, p += B << 16, p += e << 8, p += t;
|
|
3724
3724
|
} else
|
|
3725
|
-
|
|
3726
|
-
return
|
|
3725
|
+
p += 1 << 24;
|
|
3726
|
+
return p;
|
|
3727
3727
|
}
|
|
3728
|
-
function g(
|
|
3729
|
-
return (
|
|
3728
|
+
function g(p) {
|
|
3729
|
+
return (p[0] = f(p[0])) === 0 && (p[1] = f(p[1])), p;
|
|
3730
3730
|
}
|
|
3731
|
-
var
|
|
3732
|
-
processBlock: function(
|
|
3731
|
+
var m = r.Encryptor = r.extend({
|
|
3732
|
+
processBlock: function(p, B) {
|
|
3733
3733
|
var e = this._cipher, t = e.blockSize, l = this._iv, n = this._counter;
|
|
3734
3734
|
l && (n = this._counter = l.slice(0), this._iv = void 0), g(n);
|
|
3735
3735
|
var s = n.slice(0);
|
|
3736
3736
|
e.encryptBlock(s, 0);
|
|
3737
3737
|
for (var c = 0; c < t; c++)
|
|
3738
|
-
B
|
|
3738
|
+
p[B + c] ^= s[c];
|
|
3739
3739
|
}
|
|
3740
3740
|
});
|
|
3741
|
-
return r.Decryptor =
|
|
3742
|
-
}(),
|
|
3741
|
+
return r.Decryptor = m, r;
|
|
3742
|
+
}(), i.mode.CTRGladman;
|
|
3743
3743
|
});
|
|
3744
3744
|
}(Q0)), Q0.exports;
|
|
3745
3745
|
}
|
|
3746
3746
|
var J0 = { exports: {} }, nr;
|
|
3747
3747
|
function Kt() {
|
|
3748
|
-
return nr || (nr = 1, function(
|
|
3749
|
-
(function(
|
|
3750
|
-
|
|
3751
|
-
})(O, function(
|
|
3752
|
-
return
|
|
3753
|
-
var r =
|
|
3754
|
-
processBlock: function(g,
|
|
3755
|
-
var
|
|
3756
|
-
e && (t = this._keystream = e.slice(0), this._iv = void 0),
|
|
3757
|
-
for (var l = 0; l <
|
|
3758
|
-
g[
|
|
3748
|
+
return nr || (nr = 1, function(o, C) {
|
|
3749
|
+
(function(i, r, f) {
|
|
3750
|
+
o.exports = r($(), K());
|
|
3751
|
+
})(O, function(i) {
|
|
3752
|
+
return i.mode.OFB = function() {
|
|
3753
|
+
var r = i.lib.BlockCipherMode.extend(), f = r.Encryptor = r.extend({
|
|
3754
|
+
processBlock: function(g, m) {
|
|
3755
|
+
var p = this._cipher, B = p.blockSize, e = this._iv, t = this._keystream;
|
|
3756
|
+
e && (t = this._keystream = e.slice(0), this._iv = void 0), p.encryptBlock(t, 0);
|
|
3757
|
+
for (var l = 0; l < B; l++)
|
|
3758
|
+
g[m + l] ^= t[l];
|
|
3759
3759
|
}
|
|
3760
3760
|
});
|
|
3761
3761
|
return r.Decryptor = f, r;
|
|
3762
|
-
}(),
|
|
3762
|
+
}(), i.mode.OFB;
|
|
3763
3763
|
});
|
|
3764
3764
|
}(J0)), J0.exports;
|
|
3765
3765
|
}
|
|
3766
3766
|
var ee = { exports: {} }, ar;
|
|
3767
3767
|
function Vt() {
|
|
3768
|
-
return ar || (ar = 1, function(
|
|
3769
|
-
(function(
|
|
3770
|
-
|
|
3771
|
-
})(O, function(
|
|
3772
|
-
return
|
|
3773
|
-
var r =
|
|
3768
|
+
return ar || (ar = 1, function(o, C) {
|
|
3769
|
+
(function(i, r, f) {
|
|
3770
|
+
o.exports = r($(), K());
|
|
3771
|
+
})(O, function(i) {
|
|
3772
|
+
return i.mode.ECB = function() {
|
|
3773
|
+
var r = i.lib.BlockCipherMode.extend();
|
|
3774
3774
|
return r.Encryptor = r.extend({
|
|
3775
3775
|
processBlock: function(f, g) {
|
|
3776
3776
|
this._cipher.encryptBlock(f, g);
|
|
@@ -3780,72 +3780,72 @@ function Vt() {
|
|
|
3780
3780
|
this._cipher.decryptBlock(f, g);
|
|
3781
3781
|
}
|
|
3782
3782
|
}), r;
|
|
3783
|
-
}(),
|
|
3783
|
+
}(), i.mode.ECB;
|
|
3784
3784
|
});
|
|
3785
3785
|
}(ee)), ee.exports;
|
|
3786
3786
|
}
|
|
3787
3787
|
var re = { exports: {} }, or;
|
|
3788
3788
|
function Yt() {
|
|
3789
|
-
return or || (or = 1, function(
|
|
3790
|
-
(function(
|
|
3791
|
-
|
|
3792
|
-
})(O, function(
|
|
3793
|
-
return
|
|
3789
|
+
return or || (or = 1, function(o, C) {
|
|
3790
|
+
(function(i, r, f) {
|
|
3791
|
+
o.exports = r($(), K());
|
|
3792
|
+
})(O, function(i) {
|
|
3793
|
+
return i.pad.AnsiX923 = {
|
|
3794
3794
|
pad: function(r, f) {
|
|
3795
|
-
var g = r.sigBytes,
|
|
3796
|
-
r.clamp(), r.words[
|
|
3795
|
+
var g = r.sigBytes, m = f * 4, p = m - g % m, B = g + p - 1;
|
|
3796
|
+
r.clamp(), r.words[B >>> 2] |= p << 24 - B % 4 * 8, r.sigBytes += p;
|
|
3797
3797
|
},
|
|
3798
3798
|
unpad: function(r) {
|
|
3799
3799
|
var f = r.words[r.sigBytes - 1 >>> 2] & 255;
|
|
3800
3800
|
r.sigBytes -= f;
|
|
3801
3801
|
}
|
|
3802
|
-
},
|
|
3802
|
+
}, i.pad.Ansix923;
|
|
3803
3803
|
});
|
|
3804
3804
|
}(re)), re.exports;
|
|
3805
3805
|
}
|
|
3806
3806
|
var te = { exports: {} }, ir;
|
|
3807
3807
|
function Qt() {
|
|
3808
|
-
return ir || (ir = 1, function(
|
|
3809
|
-
(function(
|
|
3810
|
-
|
|
3811
|
-
})(O, function(
|
|
3812
|
-
return
|
|
3808
|
+
return ir || (ir = 1, function(o, C) {
|
|
3809
|
+
(function(i, r, f) {
|
|
3810
|
+
o.exports = r($(), K());
|
|
3811
|
+
})(O, function(i) {
|
|
3812
|
+
return i.pad.Iso10126 = {
|
|
3813
3813
|
pad: function(r, f) {
|
|
3814
|
-
var g = f * 4,
|
|
3815
|
-
r.concat(
|
|
3814
|
+
var g = f * 4, m = g - r.sigBytes % g;
|
|
3815
|
+
r.concat(i.lib.WordArray.random(m - 1)).concat(i.lib.WordArray.create([m << 24], 1));
|
|
3816
3816
|
},
|
|
3817
3817
|
unpad: function(r) {
|
|
3818
3818
|
var f = r.words[r.sigBytes - 1 >>> 2] & 255;
|
|
3819
3819
|
r.sigBytes -= f;
|
|
3820
3820
|
}
|
|
3821
|
-
},
|
|
3821
|
+
}, i.pad.Iso10126;
|
|
3822
3822
|
});
|
|
3823
3823
|
}(te)), te.exports;
|
|
3824
3824
|
}
|
|
3825
3825
|
var ne = { exports: {} }, xr;
|
|
3826
3826
|
function Jt() {
|
|
3827
|
-
return xr || (xr = 1, function(
|
|
3828
|
-
(function(
|
|
3829
|
-
|
|
3830
|
-
})(O, function(
|
|
3831
|
-
return
|
|
3827
|
+
return xr || (xr = 1, function(o, C) {
|
|
3828
|
+
(function(i, r, f) {
|
|
3829
|
+
o.exports = r($(), K());
|
|
3830
|
+
})(O, function(i) {
|
|
3831
|
+
return i.pad.Iso97971 = {
|
|
3832
3832
|
pad: function(r, f) {
|
|
3833
|
-
r.concat(
|
|
3833
|
+
r.concat(i.lib.WordArray.create([2147483648], 1)), i.pad.ZeroPadding.pad(r, f);
|
|
3834
3834
|
},
|
|
3835
3835
|
unpad: function(r) {
|
|
3836
|
-
|
|
3836
|
+
i.pad.ZeroPadding.unpad(r), r.sigBytes--;
|
|
3837
3837
|
}
|
|
3838
|
-
},
|
|
3838
|
+
}, i.pad.Iso97971;
|
|
3839
3839
|
});
|
|
3840
3840
|
}(ne)), ne.exports;
|
|
3841
3841
|
}
|
|
3842
3842
|
var ae = { exports: {} }, sr;
|
|
3843
3843
|
function en() {
|
|
3844
|
-
return sr || (sr = 1, function(
|
|
3845
|
-
(function(
|
|
3846
|
-
|
|
3847
|
-
})(O, function(
|
|
3848
|
-
return
|
|
3844
|
+
return sr || (sr = 1, function(o, C) {
|
|
3845
|
+
(function(i, r, f) {
|
|
3846
|
+
o.exports = r($(), K());
|
|
3847
|
+
})(O, function(i) {
|
|
3848
|
+
return i.pad.ZeroPadding = {
|
|
3849
3849
|
pad: function(r, f) {
|
|
3850
3850
|
var g = f * 4;
|
|
3851
3851
|
r.clamp(), r.sigBytes += g - (r.sigBytes % g || g);
|
|
@@ -3857,33 +3857,33 @@ function en() {
|
|
|
3857
3857
|
break;
|
|
3858
3858
|
}
|
|
3859
3859
|
}
|
|
3860
|
-
},
|
|
3860
|
+
}, i.pad.ZeroPadding;
|
|
3861
3861
|
});
|
|
3862
3862
|
}(ae)), ae.exports;
|
|
3863
3863
|
}
|
|
3864
3864
|
var oe = { exports: {} }, cr;
|
|
3865
3865
|
function rn() {
|
|
3866
|
-
return cr || (cr = 1, function(
|
|
3867
|
-
(function(
|
|
3868
|
-
|
|
3869
|
-
})(O, function(
|
|
3870
|
-
return
|
|
3866
|
+
return cr || (cr = 1, function(o, C) {
|
|
3867
|
+
(function(i, r, f) {
|
|
3868
|
+
o.exports = r($(), K());
|
|
3869
|
+
})(O, function(i) {
|
|
3870
|
+
return i.pad.NoPadding = {
|
|
3871
3871
|
pad: function() {
|
|
3872
3872
|
},
|
|
3873
3873
|
unpad: function() {
|
|
3874
3874
|
}
|
|
3875
|
-
},
|
|
3875
|
+
}, i.pad.NoPadding;
|
|
3876
3876
|
});
|
|
3877
3877
|
}(oe)), oe.exports;
|
|
3878
3878
|
}
|
|
3879
3879
|
var ie = { exports: {} }, ur;
|
|
3880
3880
|
function tn() {
|
|
3881
|
-
return ur || (ur = 1, function(
|
|
3882
|
-
(function(
|
|
3883
|
-
|
|
3884
|
-
})(O, function(
|
|
3881
|
+
return ur || (ur = 1, function(o, C) {
|
|
3882
|
+
(function(i, r, f) {
|
|
3883
|
+
o.exports = r($(), K());
|
|
3884
|
+
})(O, function(i) {
|
|
3885
3885
|
return function(r) {
|
|
3886
|
-
var f =
|
|
3886
|
+
var f = i, g = f.lib, m = g.CipherParams, p = f.enc, B = p.Hex, e = f.format;
|
|
3887
3887
|
e.Hex = {
|
|
3888
3888
|
/**
|
|
3889
3889
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3899,7 +3899,7 @@ function tn() {
|
|
|
3899
3899
|
* var hexString = CryptoJS.format.Hex.stringify(cipherParams);
|
|
3900
3900
|
*/
|
|
3901
3901
|
stringify: function(t) {
|
|
3902
|
-
return t.ciphertext.toString(
|
|
3902
|
+
return t.ciphertext.toString(B);
|
|
3903
3903
|
},
|
|
3904
3904
|
/**
|
|
3905
3905
|
* Converts a hexadecimally encoded ciphertext string to a cipher params object.
|
|
@@ -3915,82 +3915,82 @@ function tn() {
|
|
|
3915
3915
|
* var cipherParams = CryptoJS.format.Hex.parse(hexString);
|
|
3916
3916
|
*/
|
|
3917
3917
|
parse: function(t) {
|
|
3918
|
-
var l =
|
|
3919
|
-
return
|
|
3918
|
+
var l = B.parse(t);
|
|
3919
|
+
return m.create({ ciphertext: l });
|
|
3920
3920
|
}
|
|
3921
3921
|
};
|
|
3922
|
-
}(),
|
|
3922
|
+
}(), i.format.Hex;
|
|
3923
3923
|
});
|
|
3924
3924
|
}(ie)), ie.exports;
|
|
3925
3925
|
}
|
|
3926
3926
|
var xe = { exports: {} }, fr;
|
|
3927
3927
|
function nn() {
|
|
3928
|
-
return fr || (fr = 1, function(
|
|
3929
|
-
(function(
|
|
3930
|
-
|
|
3931
|
-
})(O, function(
|
|
3928
|
+
return fr || (fr = 1, function(o, C) {
|
|
3929
|
+
(function(i, r, f) {
|
|
3930
|
+
o.exports = r($(), i0(), x0(), o0(), K());
|
|
3931
|
+
})(O, function(i) {
|
|
3932
3932
|
return function() {
|
|
3933
|
-
var r =
|
|
3933
|
+
var r = i, f = r.lib, g = f.BlockCipher, m = r.algo, p = [], B = [], e = [], t = [], l = [], n = [], s = [], c = [], v = [], u = [];
|
|
3934
3934
|
(function() {
|
|
3935
3935
|
for (var x = [], h = 0; h < 256; h++)
|
|
3936
3936
|
h < 128 ? x[h] = h << 1 : x[h] = h << 1 ^ 283;
|
|
3937
|
-
for (var
|
|
3938
|
-
var
|
|
3939
|
-
|
|
3940
|
-
var b = x[
|
|
3941
|
-
e[
|
|
3942
|
-
var D = E * 16843009 ^
|
|
3943
|
-
s[
|
|
3937
|
+
for (var A = 0, y = 0, h = 0; h < 256; h++) {
|
|
3938
|
+
var F = y ^ y << 1 ^ y << 2 ^ y << 3 ^ y << 4;
|
|
3939
|
+
F = F >>> 8 ^ F & 255 ^ 99, p[A] = F, B[F] = A;
|
|
3940
|
+
var b = x[A], H = x[b], E = x[H], D = x[F] * 257 ^ F * 16843008;
|
|
3941
|
+
e[A] = D << 24 | D >>> 8, t[A] = D << 16 | D >>> 16, l[A] = D << 8 | D >>> 24, n[A] = D;
|
|
3942
|
+
var D = E * 16843009 ^ H * 65537 ^ b * 257 ^ A * 16843008;
|
|
3943
|
+
s[F] = D << 24 | D >>> 8, c[F] = D << 16 | D >>> 16, v[F] = D << 8 | D >>> 24, u[F] = D, A ? (A = b ^ x[x[x[E ^ b]]], y ^= x[x[y]]) : A = y = 1;
|
|
3944
3944
|
}
|
|
3945
3945
|
})();
|
|
3946
|
-
var d = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], a =
|
|
3946
|
+
var d = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], a = m.AES = g.extend({
|
|
3947
3947
|
_doReset: function() {
|
|
3948
3948
|
var x;
|
|
3949
3949
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3950
|
-
for (var h = this._keyPriorReset = this._key,
|
|
3951
|
-
E < y ?
|
|
3950
|
+
for (var h = this._keyPriorReset = this._key, A = h.words, y = h.sigBytes / 4, F = this._nRounds = y + 6, b = (F + 1) * 4, H = this._keySchedule = [], E = 0; E < b; E++)
|
|
3951
|
+
E < y ? H[E] = A[E] : (x = H[E - 1], E % y ? y > 6 && E % y == 4 && (x = p[x >>> 24] << 24 | p[x >>> 16 & 255] << 16 | p[x >>> 8 & 255] << 8 | p[x & 255]) : (x = x << 8 | x >>> 24, x = p[x >>> 24] << 24 | p[x >>> 16 & 255] << 16 | p[x >>> 8 & 255] << 8 | p[x & 255], x ^= d[E / y | 0] << 24), H[E] = H[E - y] ^ x);
|
|
3952
3952
|
for (var D = this._invKeySchedule = [], S = 0; S < b; S++) {
|
|
3953
3953
|
var E = b - S;
|
|
3954
3954
|
if (S % 4)
|
|
3955
|
-
var x =
|
|
3955
|
+
var x = H[E];
|
|
3956
3956
|
else
|
|
3957
|
-
var x =
|
|
3958
|
-
S < 4 || E <= 4 ? D[S] = x : D[S] = s[
|
|
3957
|
+
var x = H[E - 4];
|
|
3958
|
+
S < 4 || E <= 4 ? D[S] = x : D[S] = s[p[x >>> 24]] ^ c[p[x >>> 16 & 255]] ^ v[p[x >>> 8 & 255]] ^ u[p[x & 255]];
|
|
3959
3959
|
}
|
|
3960
3960
|
}
|
|
3961
3961
|
},
|
|
3962
3962
|
encryptBlock: function(x, h) {
|
|
3963
|
-
this._doCryptBlock(x, h, this._keySchedule, e, t, l, n,
|
|
3963
|
+
this._doCryptBlock(x, h, this._keySchedule, e, t, l, n, p);
|
|
3964
3964
|
},
|
|
3965
3965
|
decryptBlock: function(x, h) {
|
|
3966
|
-
var
|
|
3967
|
-
x[h + 1] = x[h + 3], x[h + 3] =
|
|
3968
|
-
var
|
|
3969
|
-
x[h + 1] = x[h + 3], x[h + 3] =
|
|
3966
|
+
var A = x[h + 1];
|
|
3967
|
+
x[h + 1] = x[h + 3], x[h + 3] = A, this._doCryptBlock(x, h, this._invKeySchedule, s, c, v, u, B);
|
|
3968
|
+
var A = x[h + 1];
|
|
3969
|
+
x[h + 1] = x[h + 3], x[h + 3] = A;
|
|
3970
3970
|
},
|
|
3971
|
-
_doCryptBlock: function(x, h,
|
|
3972
|
-
for (var D = this._nRounds, S = x[h] ^
|
|
3973
|
-
var N = y[S >>> 24] ^
|
|
3971
|
+
_doCryptBlock: function(x, h, A, y, F, b, H, E) {
|
|
3972
|
+
for (var D = this._nRounds, S = x[h] ^ A[0], w = x[h + 1] ^ A[1], W = x[h + 2] ^ A[2], z = x[h + 3] ^ A[3], q = 4, X = 1; X < D; X++) {
|
|
3973
|
+
var N = y[S >>> 24] ^ F[w >>> 16 & 255] ^ b[W >>> 8 & 255] ^ H[z & 255] ^ A[q++], G = y[w >>> 24] ^ F[W >>> 16 & 255] ^ b[z >>> 8 & 255] ^ H[S & 255] ^ A[q++], M = y[W >>> 24] ^ F[z >>> 16 & 255] ^ b[S >>> 8 & 255] ^ H[w & 255] ^ A[q++], _ = y[z >>> 24] ^ F[S >>> 16 & 255] ^ b[w >>> 8 & 255] ^ H[W & 255] ^ A[q++];
|
|
3974
3974
|
S = N, w = G, W = M, z = _;
|
|
3975
3975
|
}
|
|
3976
|
-
var N = (E[S >>> 24] << 24 | E[w >>> 16 & 255] << 16 | E[W >>> 8 & 255] << 8 | E[z & 255]) ^
|
|
3976
|
+
var N = (E[S >>> 24] << 24 | E[w >>> 16 & 255] << 16 | E[W >>> 8 & 255] << 8 | E[z & 255]) ^ A[q++], G = (E[w >>> 24] << 24 | E[W >>> 16 & 255] << 16 | E[z >>> 8 & 255] << 8 | E[S & 255]) ^ A[q++], M = (E[W >>> 24] << 24 | E[z >>> 16 & 255] << 16 | E[S >>> 8 & 255] << 8 | E[w & 255]) ^ A[q++], _ = (E[z >>> 24] << 24 | E[S >>> 16 & 255] << 16 | E[w >>> 8 & 255] << 8 | E[W & 255]) ^ A[q++];
|
|
3977
3977
|
x[h] = N, x[h + 1] = G, x[h + 2] = M, x[h + 3] = _;
|
|
3978
3978
|
},
|
|
3979
3979
|
keySize: 256 / 32
|
|
3980
3980
|
});
|
|
3981
3981
|
r.AES = g._createHelper(a);
|
|
3982
|
-
}(),
|
|
3982
|
+
}(), i.AES;
|
|
3983
3983
|
});
|
|
3984
3984
|
}(xe)), xe.exports;
|
|
3985
3985
|
}
|
|
3986
3986
|
var se = { exports: {} }, lr;
|
|
3987
3987
|
function an() {
|
|
3988
|
-
return lr || (lr = 1, function(
|
|
3989
|
-
(function(
|
|
3990
|
-
|
|
3991
|
-
})(O, function(
|
|
3988
|
+
return lr || (lr = 1, function(o, C) {
|
|
3989
|
+
(function(i, r, f) {
|
|
3990
|
+
o.exports = r($(), i0(), x0(), o0(), K());
|
|
3991
|
+
})(O, function(i) {
|
|
3992
3992
|
return function() {
|
|
3993
|
-
var r =
|
|
3993
|
+
var r = i, f = r.lib, g = f.WordArray, m = f.BlockCipher, p = r.algo, B = [
|
|
3994
3994
|
57,
|
|
3995
3995
|
49,
|
|
3996
3996
|
41,
|
|
@@ -4634,15 +4634,15 @@ function an() {
|
|
|
4634
4634
|
8064,
|
|
4635
4635
|
504,
|
|
4636
4636
|
2147483679
|
|
4637
|
-
], s =
|
|
4637
|
+
], s = p.DES = m.extend({
|
|
4638
4638
|
_doReset: function() {
|
|
4639
4639
|
for (var d = this._key, a = d.words, x = [], h = 0; h < 56; h++) {
|
|
4640
|
-
var
|
|
4641
|
-
x[h] = a[
|
|
4640
|
+
var A = B[h] - 1;
|
|
4641
|
+
x[h] = a[A >>> 5] >>> 31 - A % 32 & 1;
|
|
4642
4642
|
}
|
|
4643
|
-
for (var y = this._subKeys = [],
|
|
4644
|
-
for (var b = y[
|
|
4645
|
-
b[h / 6 | 0] |= x[(e[h] - 1 +
|
|
4643
|
+
for (var y = this._subKeys = [], F = 0; F < 16; F++) {
|
|
4644
|
+
for (var b = y[F] = [], H = t[F], h = 0; h < 24; h++)
|
|
4645
|
+
b[h / 6 | 0] |= x[(e[h] - 1 + H) % 28] << 31 - h % 6, b[4 + (h / 6 | 0)] |= x[28 + (e[h + 24] - 1 + H) % 28] << 31 - h % 6;
|
|
4646
4646
|
b[0] = b[0] << 1 | b[0] >>> 31;
|
|
4647
4647
|
for (var h = 1; h < 7; h++)
|
|
4648
4648
|
b[h] = b[h] >>> (h - 1) * 4 + 3;
|
|
@@ -4660,9 +4660,9 @@ function an() {
|
|
|
4660
4660
|
_doCryptBlock: function(d, a, x) {
|
|
4661
4661
|
this._lBlock = d[a], this._rBlock = d[a + 1], c.call(this, 4, 252645135), c.call(this, 16, 65535), v.call(this, 2, 858993459), v.call(this, 8, 16711935), c.call(this, 1, 1431655765);
|
|
4662
4662
|
for (var h = 0; h < 16; h++) {
|
|
4663
|
-
for (var
|
|
4664
|
-
b |= l[
|
|
4665
|
-
this._lBlock =
|
|
4663
|
+
for (var A = x[h], y = this._lBlock, F = this._rBlock, b = 0, H = 0; H < 8; H++)
|
|
4664
|
+
b |= l[H][((F ^ A[H]) & n[H]) >>> 0];
|
|
4665
|
+
this._lBlock = F, this._rBlock = y ^ b;
|
|
4666
4666
|
}
|
|
4667
4667
|
var E = this._lBlock;
|
|
4668
4668
|
this._lBlock = this._rBlock, this._rBlock = E, c.call(this, 1, 1431655765), v.call(this, 8, 16711935), v.call(this, 2, 858993459), c.call(this, 16, 65535), c.call(this, 4, 252645135), d[a] = this._lBlock, d[a + 1] = this._rBlock;
|
|
@@ -4679,14 +4679,14 @@ function an() {
|
|
|
4679
4679
|
var x = (this._rBlock >>> d ^ this._lBlock) & a;
|
|
4680
4680
|
this._lBlock ^= x, this._rBlock ^= x << d;
|
|
4681
4681
|
}
|
|
4682
|
-
r.DES =
|
|
4683
|
-
var u =
|
|
4682
|
+
r.DES = m._createHelper(s);
|
|
4683
|
+
var u = p.TripleDES = m.extend({
|
|
4684
4684
|
_doReset: function() {
|
|
4685
4685
|
var d = this._key, a = d.words;
|
|
4686
4686
|
if (a.length !== 2 && a.length !== 4 && a.length < 6)
|
|
4687
4687
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4688
|
-
var x = a.slice(0, 2), h = a.length < 4 ? a.slice(0, 2) : a.slice(2, 4),
|
|
4689
|
-
this._des1 = s.createEncryptor(g.create(x)), this._des2 = s.createEncryptor(g.create(h)), this._des3 = s.createEncryptor(g.create(
|
|
4688
|
+
var x = a.slice(0, 2), h = a.length < 4 ? a.slice(0, 2) : a.slice(2, 4), A = a.length < 6 ? a.slice(0, 2) : a.slice(4, 6);
|
|
4689
|
+
this._des1 = s.createEncryptor(g.create(x)), this._des2 = s.createEncryptor(g.create(h)), this._des3 = s.createEncryptor(g.create(A));
|
|
4690
4690
|
},
|
|
4691
4691
|
encryptBlock: function(d, a) {
|
|
4692
4692
|
this._des1.encryptBlock(d, a), this._des2.decryptBlock(d, a), this._des3.encryptBlock(d, a);
|
|
@@ -4698,19 +4698,19 @@ function an() {
|
|
|
4698
4698
|
ivSize: 64 / 32,
|
|
4699
4699
|
blockSize: 64 / 32
|
|
4700
4700
|
});
|
|
4701
|
-
r.TripleDES =
|
|
4702
|
-
}(),
|
|
4701
|
+
r.TripleDES = m._createHelper(u);
|
|
4702
|
+
}(), i.TripleDES;
|
|
4703
4703
|
});
|
|
4704
4704
|
}(se)), se.exports;
|
|
4705
4705
|
}
|
|
4706
4706
|
var ce = { exports: {} }, dr;
|
|
4707
4707
|
function on() {
|
|
4708
|
-
return dr || (dr = 1, function(
|
|
4709
|
-
(function(
|
|
4710
|
-
|
|
4711
|
-
})(O, function(
|
|
4708
|
+
return dr || (dr = 1, function(o, C) {
|
|
4709
|
+
(function(i, r, f) {
|
|
4710
|
+
o.exports = r($(), i0(), x0(), o0(), K());
|
|
4711
|
+
})(O, function(i) {
|
|
4712
4712
|
return function() {
|
|
4713
|
-
var r =
|
|
4713
|
+
var r = i, f = r.lib, g = f.StreamCipher, m = r.algo, p = m.RC4 = g.extend({
|
|
4714
4714
|
_doReset: function() {
|
|
4715
4715
|
for (var t = this._key, l = t.words, n = t.sigBytes, s = this._S = [], c = 0; c < 256; c++)
|
|
4716
4716
|
s[c] = c;
|
|
@@ -4723,12 +4723,12 @@ function on() {
|
|
|
4723
4723
|
this._i = this._j = 0;
|
|
4724
4724
|
},
|
|
4725
4725
|
_doProcessBlock: function(t, l) {
|
|
4726
|
-
t[l] ^=
|
|
4726
|
+
t[l] ^= B.call(this);
|
|
4727
4727
|
},
|
|
4728
4728
|
keySize: 256 / 32,
|
|
4729
4729
|
ivSize: 0
|
|
4730
4730
|
});
|
|
4731
|
-
function
|
|
4731
|
+
function B() {
|
|
4732
4732
|
for (var t = this._S, l = this._i, n = this._j, s = 0, c = 0; c < 4; c++) {
|
|
4733
4733
|
l = (l + 1) % 256, n = (n + t[l]) % 256;
|
|
4734
4734
|
var v = t[l];
|
|
@@ -4736,35 +4736,35 @@ function on() {
|
|
|
4736
4736
|
}
|
|
4737
4737
|
return this._i = l, this._j = n, s;
|
|
4738
4738
|
}
|
|
4739
|
-
r.RC4 = g._createHelper(
|
|
4740
|
-
var e =
|
|
4739
|
+
r.RC4 = g._createHelper(p);
|
|
4740
|
+
var e = m.RC4Drop = p.extend({
|
|
4741
4741
|
/**
|
|
4742
4742
|
* Configuration options.
|
|
4743
4743
|
*
|
|
4744
4744
|
* @property {number} drop The number of keystream words to drop. Default 192
|
|
4745
4745
|
*/
|
|
4746
|
-
cfg:
|
|
4746
|
+
cfg: p.cfg.extend({
|
|
4747
4747
|
drop: 192
|
|
4748
4748
|
}),
|
|
4749
4749
|
_doReset: function() {
|
|
4750
|
-
|
|
4750
|
+
p._doReset.call(this);
|
|
4751
4751
|
for (var t = this.cfg.drop; t > 0; t--)
|
|
4752
|
-
|
|
4752
|
+
B.call(this);
|
|
4753
4753
|
}
|
|
4754
4754
|
});
|
|
4755
4755
|
r.RC4Drop = g._createHelper(e);
|
|
4756
|
-
}(),
|
|
4756
|
+
}(), i.RC4;
|
|
4757
4757
|
});
|
|
4758
4758
|
}(ce)), ce.exports;
|
|
4759
4759
|
}
|
|
4760
4760
|
var ue = { exports: {} }, vr;
|
|
4761
4761
|
function xn() {
|
|
4762
|
-
return vr || (vr = 1, function(
|
|
4763
|
-
(function(
|
|
4764
|
-
|
|
4765
|
-
})(O, function(
|
|
4762
|
+
return vr || (vr = 1, function(o, C) {
|
|
4763
|
+
(function(i, r, f) {
|
|
4764
|
+
o.exports = r($(), i0(), x0(), o0(), K());
|
|
4765
|
+
})(O, function(i) {
|
|
4766
4766
|
return function() {
|
|
4767
|
-
var r =
|
|
4767
|
+
var r = i, f = r.lib, g = f.StreamCipher, m = r.algo, p = [], B = [], e = [], t = m.Rabbit = g.extend({
|
|
4768
4768
|
_doReset: function() {
|
|
4769
4769
|
for (var n = this._key.words, s = this.cfg.iv, c = 0; c < 4; c++)
|
|
4770
4770
|
n[c] = (n[c] << 8 | n[c] >>> 24) & 16711935 | (n[c] << 24 | n[c] >>> 8) & 4278255360;
|
|
@@ -4793,25 +4793,25 @@ function xn() {
|
|
|
4793
4793
|
for (var c = 0; c < 8; c++)
|
|
4794
4794
|
u[c] ^= v[c + 4 & 7];
|
|
4795
4795
|
if (s) {
|
|
4796
|
-
var d = s.words, a = d[0], x = d[1], h = (a << 8 | a >>> 24) & 16711935 | (a << 24 | a >>> 8) & 4278255360,
|
|
4797
|
-
u[0] ^= h, u[1] ^= y, u[2] ^=
|
|
4796
|
+
var d = s.words, a = d[0], x = d[1], h = (a << 8 | a >>> 24) & 16711935 | (a << 24 | a >>> 8) & 4278255360, A = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, y = h >>> 16 | A & 4294901760, F = A << 16 | h & 65535;
|
|
4797
|
+
u[0] ^= h, u[1] ^= y, u[2] ^= A, u[3] ^= F, u[4] ^= h, u[5] ^= y, u[6] ^= A, u[7] ^= F;
|
|
4798
4798
|
for (var c = 0; c < 4; c++)
|
|
4799
4799
|
l.call(this);
|
|
4800
4800
|
}
|
|
4801
4801
|
},
|
|
4802
4802
|
_doProcessBlock: function(n, s) {
|
|
4803
4803
|
var c = this._X;
|
|
4804
|
-
l.call(this),
|
|
4804
|
+
l.call(this), p[0] = c[0] ^ c[5] >>> 16 ^ c[3] << 16, p[1] = c[2] ^ c[7] >>> 16 ^ c[5] << 16, p[2] = c[4] ^ c[1] >>> 16 ^ c[7] << 16, p[3] = c[6] ^ c[3] >>> 16 ^ c[1] << 16;
|
|
4805
4805
|
for (var v = 0; v < 4; v++)
|
|
4806
|
-
|
|
4806
|
+
p[v] = (p[v] << 8 | p[v] >>> 24) & 16711935 | (p[v] << 24 | p[v] >>> 8) & 4278255360, n[s + v] ^= p[v];
|
|
4807
4807
|
},
|
|
4808
4808
|
blockSize: 128 / 32,
|
|
4809
4809
|
ivSize: 64 / 32
|
|
4810
4810
|
});
|
|
4811
4811
|
function l() {
|
|
4812
4812
|
for (var n = this._X, s = this._C, c = 0; c < 8; c++)
|
|
4813
|
-
|
|
4814
|
-
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 <
|
|
4813
|
+
B[c] = s[c];
|
|
4814
|
+
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < B[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < B[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < B[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < B[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < B[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < B[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < B[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < B[7] >>> 0 ? 1 : 0;
|
|
4815
4815
|
for (var c = 0; c < 8; c++) {
|
|
4816
4816
|
var v = n[c] + s[c], u = v & 65535, d = v >>> 16, a = ((u * u >>> 17) + u * d >>> 15) + d * d, x = ((v & 4294901760) * v | 0) + ((v & 65535) * v | 0);
|
|
4817
4817
|
e[c] = a ^ x;
|
|
@@ -4819,18 +4819,18 @@ function xn() {
|
|
|
4819
4819
|
n[0] = e[0] + (e[7] << 16 | e[7] >>> 16) + (e[6] << 16 | e[6] >>> 16) | 0, n[1] = e[1] + (e[0] << 8 | e[0] >>> 24) + e[7] | 0, n[2] = e[2] + (e[1] << 16 | e[1] >>> 16) + (e[0] << 16 | e[0] >>> 16) | 0, n[3] = e[3] + (e[2] << 8 | e[2] >>> 24) + e[1] | 0, n[4] = e[4] + (e[3] << 16 | e[3] >>> 16) + (e[2] << 16 | e[2] >>> 16) | 0, n[5] = e[5] + (e[4] << 8 | e[4] >>> 24) + e[3] | 0, n[6] = e[6] + (e[5] << 16 | e[5] >>> 16) + (e[4] << 16 | e[4] >>> 16) | 0, n[7] = e[7] + (e[6] << 8 | e[6] >>> 24) + e[5] | 0;
|
|
4820
4820
|
}
|
|
4821
4821
|
r.Rabbit = g._createHelper(t);
|
|
4822
|
-
}(),
|
|
4822
|
+
}(), i.Rabbit;
|
|
4823
4823
|
});
|
|
4824
4824
|
}(ue)), ue.exports;
|
|
4825
4825
|
}
|
|
4826
4826
|
var fe = { exports: {} }, hr;
|
|
4827
4827
|
function sn() {
|
|
4828
|
-
return hr || (hr = 1, function(
|
|
4829
|
-
(function(
|
|
4830
|
-
|
|
4831
|
-
})(O, function(
|
|
4828
|
+
return hr || (hr = 1, function(o, C) {
|
|
4829
|
+
(function(i, r, f) {
|
|
4830
|
+
o.exports = r($(), i0(), x0(), o0(), K());
|
|
4831
|
+
})(O, function(i) {
|
|
4832
4832
|
return function() {
|
|
4833
|
-
var r =
|
|
4833
|
+
var r = i, f = r.lib, g = f.StreamCipher, m = r.algo, p = [], B = [], e = [], t = m.RabbitLegacy = g.extend({
|
|
4834
4834
|
_doReset: function() {
|
|
4835
4835
|
var n = this._key.words, s = this.cfg.iv, c = this._X = [
|
|
4836
4836
|
n[0],
|
|
@@ -4857,25 +4857,25 @@ function sn() {
|
|
|
4857
4857
|
for (var u = 0; u < 8; u++)
|
|
4858
4858
|
v[u] ^= c[u + 4 & 7];
|
|
4859
4859
|
if (s) {
|
|
4860
|
-
var d = s.words, a = d[0], x = d[1], h = (a << 8 | a >>> 24) & 16711935 | (a << 24 | a >>> 8) & 4278255360,
|
|
4861
|
-
v[0] ^= h, v[1] ^= y, v[2] ^=
|
|
4860
|
+
var d = s.words, a = d[0], x = d[1], h = (a << 8 | a >>> 24) & 16711935 | (a << 24 | a >>> 8) & 4278255360, A = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, y = h >>> 16 | A & 4294901760, F = A << 16 | h & 65535;
|
|
4861
|
+
v[0] ^= h, v[1] ^= y, v[2] ^= A, v[3] ^= F, v[4] ^= h, v[5] ^= y, v[6] ^= A, v[7] ^= F;
|
|
4862
4862
|
for (var u = 0; u < 4; u++)
|
|
4863
4863
|
l.call(this);
|
|
4864
4864
|
}
|
|
4865
4865
|
},
|
|
4866
4866
|
_doProcessBlock: function(n, s) {
|
|
4867
4867
|
var c = this._X;
|
|
4868
|
-
l.call(this),
|
|
4868
|
+
l.call(this), p[0] = c[0] ^ c[5] >>> 16 ^ c[3] << 16, p[1] = c[2] ^ c[7] >>> 16 ^ c[5] << 16, p[2] = c[4] ^ c[1] >>> 16 ^ c[7] << 16, p[3] = c[6] ^ c[3] >>> 16 ^ c[1] << 16;
|
|
4869
4869
|
for (var v = 0; v < 4; v++)
|
|
4870
|
-
|
|
4870
|
+
p[v] = (p[v] << 8 | p[v] >>> 24) & 16711935 | (p[v] << 24 | p[v] >>> 8) & 4278255360, n[s + v] ^= p[v];
|
|
4871
4871
|
},
|
|
4872
4872
|
blockSize: 128 / 32,
|
|
4873
4873
|
ivSize: 64 / 32
|
|
4874
4874
|
});
|
|
4875
4875
|
function l() {
|
|
4876
4876
|
for (var n = this._X, s = this._C, c = 0; c < 8; c++)
|
|
4877
|
-
|
|
4878
|
-
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 <
|
|
4877
|
+
B[c] = s[c];
|
|
4878
|
+
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < B[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < B[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < B[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < B[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < B[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < B[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < B[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < B[7] >>> 0 ? 1 : 0;
|
|
4879
4879
|
for (var c = 0; c < 8; c++) {
|
|
4880
4880
|
var v = n[c] + s[c], u = v & 65535, d = v >>> 16, a = ((u * u >>> 17) + u * d >>> 15) + d * d, x = ((v & 4294901760) * v | 0) + ((v & 65535) * v | 0);
|
|
4881
4881
|
e[c] = a ^ x;
|
|
@@ -4883,19 +4883,19 @@ function sn() {
|
|
|
4883
4883
|
n[0] = e[0] + (e[7] << 16 | e[7] >>> 16) + (e[6] << 16 | e[6] >>> 16) | 0, n[1] = e[1] + (e[0] << 8 | e[0] >>> 24) + e[7] | 0, n[2] = e[2] + (e[1] << 16 | e[1] >>> 16) + (e[0] << 16 | e[0] >>> 16) | 0, n[3] = e[3] + (e[2] << 8 | e[2] >>> 24) + e[1] | 0, n[4] = e[4] + (e[3] << 16 | e[3] >>> 16) + (e[2] << 16 | e[2] >>> 16) | 0, n[5] = e[5] + (e[4] << 8 | e[4] >>> 24) + e[3] | 0, n[6] = e[6] + (e[5] << 16 | e[5] >>> 16) + (e[4] << 16 | e[4] >>> 16) | 0, n[7] = e[7] + (e[6] << 8 | e[6] >>> 24) + e[5] | 0;
|
|
4884
4884
|
}
|
|
4885
4885
|
r.RabbitLegacy = g._createHelper(t);
|
|
4886
|
-
}(),
|
|
4886
|
+
}(), i.RabbitLegacy;
|
|
4887
4887
|
});
|
|
4888
4888
|
}(fe)), fe.exports;
|
|
4889
4889
|
}
|
|
4890
4890
|
var le = { exports: {} }, pr;
|
|
4891
4891
|
function cn() {
|
|
4892
|
-
return pr || (pr = 1, function(
|
|
4893
|
-
(function(
|
|
4894
|
-
|
|
4895
|
-
})(O, function(
|
|
4892
|
+
return pr || (pr = 1, function(o, C) {
|
|
4893
|
+
(function(i, r, f) {
|
|
4894
|
+
o.exports = r($(), i0(), x0(), o0(), K());
|
|
4895
|
+
})(O, function(i) {
|
|
4896
4896
|
return function() {
|
|
4897
|
-
var r =
|
|
4898
|
-
const
|
|
4897
|
+
var r = i, f = r.lib, g = f.BlockCipher, m = r.algo;
|
|
4898
|
+
const p = 16, B = [
|
|
4899
4899
|
608135816,
|
|
4900
4900
|
2242054355,
|
|
4901
4901
|
320440878,
|
|
@@ -5953,39 +5953,39 @@ function cn() {
|
|
|
5953
5953
|
sbox: []
|
|
5954
5954
|
};
|
|
5955
5955
|
function l(u, d) {
|
|
5956
|
-
let a = d >> 24 & 255, x = d >> 16 & 255, h = d >> 8 & 255,
|
|
5957
|
-
return y = y ^ u.sbox[2][h], y = y + u.sbox[3][
|
|
5956
|
+
let a = d >> 24 & 255, x = d >> 16 & 255, h = d >> 8 & 255, A = d & 255, y = u.sbox[0][a] + u.sbox[1][x];
|
|
5957
|
+
return y = y ^ u.sbox[2][h], y = y + u.sbox[3][A], y;
|
|
5958
5958
|
}
|
|
5959
5959
|
function n(u, d, a) {
|
|
5960
|
-
let x = d, h = a,
|
|
5961
|
-
for (let y = 0; y <
|
|
5962
|
-
x = x ^ u.pbox[y], h = l(u, x) ^ h,
|
|
5963
|
-
return
|
|
5960
|
+
let x = d, h = a, A;
|
|
5961
|
+
for (let y = 0; y < p; ++y)
|
|
5962
|
+
x = x ^ u.pbox[y], h = l(u, x) ^ h, A = x, x = h, h = A;
|
|
5963
|
+
return A = x, x = h, h = A, h = h ^ u.pbox[p], x = x ^ u.pbox[p + 1], { left: x, right: h };
|
|
5964
5964
|
}
|
|
5965
5965
|
function s(u, d, a) {
|
|
5966
|
-
let x = d, h = a,
|
|
5967
|
-
for (let y =
|
|
5968
|
-
x = x ^ u.pbox[y], h = l(u, x) ^ h,
|
|
5969
|
-
return
|
|
5966
|
+
let x = d, h = a, A;
|
|
5967
|
+
for (let y = p + 1; y > 1; --y)
|
|
5968
|
+
x = x ^ u.pbox[y], h = l(u, x) ^ h, A = x, x = h, h = A;
|
|
5969
|
+
return A = x, x = h, h = A, h = h ^ u.pbox[1], x = x ^ u.pbox[0], { left: x, right: h };
|
|
5970
5970
|
}
|
|
5971
5971
|
function c(u, d, a) {
|
|
5972
|
-
for (let
|
|
5973
|
-
u.sbox[
|
|
5972
|
+
for (let F = 0; F < 4; F++) {
|
|
5973
|
+
u.sbox[F] = [];
|
|
5974
5974
|
for (let b = 0; b < 256; b++)
|
|
5975
|
-
u.sbox[
|
|
5975
|
+
u.sbox[F][b] = e[F][b];
|
|
5976
5976
|
}
|
|
5977
5977
|
let x = 0;
|
|
5978
|
-
for (let
|
|
5979
|
-
u.pbox[
|
|
5980
|
-
let h = 0,
|
|
5981
|
-
for (let
|
|
5982
|
-
y = n(u, h,
|
|
5983
|
-
for (let
|
|
5978
|
+
for (let F = 0; F < p + 2; F++)
|
|
5979
|
+
u.pbox[F] = B[F] ^ d[x], x++, x >= a && (x = 0);
|
|
5980
|
+
let h = 0, A = 0, y = 0;
|
|
5981
|
+
for (let F = 0; F < p + 2; F += 2)
|
|
5982
|
+
y = n(u, h, A), h = y.left, A = y.right, u.pbox[F] = h, u.pbox[F + 1] = A;
|
|
5983
|
+
for (let F = 0; F < 4; F++)
|
|
5984
5984
|
for (let b = 0; b < 256; b += 2)
|
|
5985
|
-
y = n(u, h,
|
|
5985
|
+
y = n(u, h, A), h = y.left, A = y.right, u.sbox[F][b] = h, u.sbox[F][b + 1] = A;
|
|
5986
5986
|
return !0;
|
|
5987
5987
|
}
|
|
5988
|
-
var v =
|
|
5988
|
+
var v = m.Blowfish = g.extend({
|
|
5989
5989
|
_doReset: function() {
|
|
5990
5990
|
if (this._keyPriorReset !== this._key) {
|
|
5991
5991
|
var u = this._keyPriorReset = this._key, d = u.words, a = u.sigBytes / 4;
|
|
@@ -6005,24 +6005,24 @@ function cn() {
|
|
|
6005
6005
|
ivSize: 64 / 32
|
|
6006
6006
|
});
|
|
6007
6007
|
r.Blowfish = g._createHelper(v);
|
|
6008
|
-
}(),
|
|
6008
|
+
}(), i.Blowfish;
|
|
6009
6009
|
});
|
|
6010
6010
|
}(le)), le.exports;
|
|
6011
6011
|
}
|
|
6012
|
-
(function(
|
|
6013
|
-
(function(
|
|
6014
|
-
|
|
6015
|
-
})(O, function(
|
|
6016
|
-
return
|
|
6012
|
+
(function(o, C) {
|
|
6013
|
+
(function(i, r, f) {
|
|
6014
|
+
o.exports = r($(), k0(), Ot(), It(), i0(), $t(), x0(), wr(), ye(), jt(), _r(), Lt(), Nt(), Mt(), Ee(), Gt(), o0(), K(), Ut(), Xt(), Zt(), Kt(), Vt(), Yt(), Qt(), Jt(), en(), rn(), tn(), nn(), an(), on(), xn(), sn(), cn());
|
|
6015
|
+
})(O, function(i) {
|
|
6016
|
+
return i;
|
|
6017
6017
|
});
|
|
6018
6018
|
})(br);
|
|
6019
6019
|
var un = br.exports;
|
|
6020
6020
|
const Br = /* @__PURE__ */ Dr(un);
|
|
6021
|
-
function kr(
|
|
6022
|
-
const
|
|
6023
|
-
function g(
|
|
6024
|
-
const
|
|
6025
|
-
Rt(
|
|
6021
|
+
function kr(o, C) {
|
|
6022
|
+
const i = o.data.cityItems.default, r = j(o.data.data), f = ge(o);
|
|
6023
|
+
function g(m, p) {
|
|
6024
|
+
const B = "https://wis.qq.com/weather/common?source=pc&weather_type=observe|forecast_1h|forecast_24h|index|rise|air&province=" + i[m].province + "&city=" + i[m].city[p];
|
|
6025
|
+
Rt(B, (v, u) => {
|
|
6026
6026
|
if (v)
|
|
6027
6027
|
console.error("Error fetching data:", v);
|
|
6028
6028
|
else {
|
|
@@ -6044,7 +6044,7 @@ function kr(i, C) {
|
|
|
6044
6044
|
});
|
|
6045
6045
|
const e = new Headers();
|
|
6046
6046
|
e.append("User-Agent", "Win64");
|
|
6047
|
-
const t = "location=" +
|
|
6047
|
+
const t = "location=" + i[m].city[m] + "&public_key=P2yFGyRckTUNG9rFt&ts=" + (/* @__PURE__ */ new Date()).getTime() + "&ttl=3000", n = Br.HmacSHA1(t, "Sh3s--_vh1BWqUb_w"), s = encodeURIComponent(n.toString(Br.enc.Base64)), c = "https://api.seniverse.com/v3/weather/now.json?" + t + "&sig=" + s;
|
|
6048
6048
|
fetch(c, {
|
|
6049
6049
|
method: "GET",
|
|
6050
6050
|
headers: e
|
|
@@ -6065,9 +6065,9 @@ function kr(i, C) {
|
|
|
6065
6065
|
fetchData: g
|
|
6066
6066
|
};
|
|
6067
6067
|
}
|
|
6068
|
-
function fn(
|
|
6069
|
-
const
|
|
6070
|
-
"background-color":
|
|
6068
|
+
function fn(o, C) {
|
|
6069
|
+
const i = o.data.cityItems.default, r = j(!1), f = j(0), g = j(0), m = j(0), p = kr(o), B = _0(o), e = L(() => ({
|
|
6070
|
+
"background-color": B.colorTheme.value[2]
|
|
6071
6071
|
}));
|
|
6072
6072
|
function t() {
|
|
6073
6073
|
r.value = !r.value, f.value = 0;
|
|
@@ -6078,9 +6078,9 @@ function fn(i, C) {
|
|
|
6078
6078
|
}
|
|
6079
6079
|
function n() {
|
|
6080
6080
|
const v = document.getElementById("provinceSelect"), u = document.getElementById("citySelect");
|
|
6081
|
-
g.value = v.selectedIndex,
|
|
6081
|
+
g.value = v.selectedIndex, m.value = u.selectedIndex;
|
|
6082
6082
|
const d = document.getElementById("f-weather-24h-content");
|
|
6083
|
-
d.style.marginLeft = "-32px",
|
|
6083
|
+
d.style.marginLeft = "-32px", p.fetchData(g.value, m.value), r.value = !1, f.value = 0;
|
|
6084
6084
|
}
|
|
6085
6085
|
function s() {
|
|
6086
6086
|
return r.value ? k("div", {
|
|
@@ -6088,9 +6088,9 @@ function fn(i, C) {
|
|
|
6088
6088
|
}, [k("select", {
|
|
6089
6089
|
id: "provinceSelect",
|
|
6090
6090
|
onChange: l
|
|
6091
|
-
}, [
|
|
6091
|
+
}, [i.map((v) => k("option", null, [v.province]))]), k("select", {
|
|
6092
6092
|
id: "citySelect"
|
|
6093
|
-
}, [
|
|
6093
|
+
}, [i[f.value].city.map((v) => k("option", null, [v]))]), k("button", {
|
|
6094
6094
|
class: "f-weather-button f-weather-button-city",
|
|
6095
6095
|
style: e.value,
|
|
6096
6096
|
onClick: n
|
|
@@ -6101,7 +6101,7 @@ function fn(i, C) {
|
|
|
6101
6101
|
class: "f-weather-city"
|
|
6102
6102
|
}, [k("span", {
|
|
6103
6103
|
class: "f-weather-city-title"
|
|
6104
|
-
}, [
|
|
6104
|
+
}, [i[g.value].city[m.value] + "市"]), k("img", {
|
|
6105
6105
|
src: "/components/weather/src/image/choose.png",
|
|
6106
6106
|
class: "f-weather-city-icon",
|
|
6107
6107
|
onClick: t
|
|
@@ -6111,8 +6111,8 @@ function fn(i, C) {
|
|
|
6111
6111
|
renderWeatherCity: c
|
|
6112
6112
|
};
|
|
6113
6113
|
}
|
|
6114
|
-
function ln(
|
|
6115
|
-
const
|
|
6114
|
+
function ln(o, C) {
|
|
6115
|
+
const i = j(o.data.data), r = Fr();
|
|
6116
6116
|
function f() {
|
|
6117
6117
|
return k("div", null, [k("div", {
|
|
6118
6118
|
id: "sunset",
|
|
@@ -6127,20 +6127,20 @@ function ln(i, C) {
|
|
|
6127
6127
|
class: "f-weather-sunset-img"
|
|
6128
6128
|
}, null), k("div", null, [k("span", {
|
|
6129
6129
|
class: "f-weather-sunrise-text"
|
|
6130
|
-
}, [r.addZero(
|
|
6130
|
+
}, [r.addZero(i.value.default.sunriseTime.getHours()) + ":" + r.addZero(i.value.default.sunriseTime.getMinutes())]), k("span", {
|
|
6131
6131
|
class: "f-weather-sunset-text"
|
|
6132
|
-
}, [r.addZero(
|
|
6132
|
+
}, [r.addZero(i.value.default.sunsetTime.getHours()) + ":" + r.addZero(i.value.default.sunsetTime.getMinutes())])])])]);
|
|
6133
6133
|
}
|
|
6134
6134
|
return {
|
|
6135
6135
|
renderWeatherSunset: f
|
|
6136
6136
|
};
|
|
6137
6137
|
}
|
|
6138
|
-
function dn(
|
|
6139
|
-
const
|
|
6138
|
+
function dn(o, C) {
|
|
6139
|
+
const i = o.data.themeItems.default, r = j(o.theme), f = j(o.data.data), g = L(() => ({
|
|
6140
6140
|
"animation-name": "icon",
|
|
6141
6141
|
"animation-duration": "0.8s",
|
|
6142
6142
|
"animation-iteration-count": "infinite"
|
|
6143
|
-
})),
|
|
6143
|
+
})), m = L(() => f.value.default.air <= 50 ? "优" : f.value.default.air <= 100 ? "良" : f.value.default.air <= 150 ? "轻度污染" : f.value.default.air <= 200 ? "中度污染" : f.value.default.air <= 300 ? "重度污染" : "严重污染"), p = L(() => f.value.default.air > 300 ? {
|
|
6144
6144
|
type: "smog",
|
|
6145
6145
|
color: "red",
|
|
6146
6146
|
title: "雾霾红色预警"
|
|
@@ -6183,25 +6183,25 @@ function dn(i, C) {
|
|
|
6183
6183
|
} : null
|
|
6184
6184
|
)
|
|
6185
6185
|
));
|
|
6186
|
-
function
|
|
6187
|
-
return
|
|
6186
|
+
function B() {
|
|
6187
|
+
return p.value ? k("span", {
|
|
6188
6188
|
class: "f-weather-warning-container"
|
|
6189
6189
|
}, [k("span", {
|
|
6190
6190
|
class: "f-weather-warning"
|
|
6191
6191
|
}, [k("img", {
|
|
6192
|
-
src: "/components/weather/src/image/warningImage/" + (
|
|
6192
|
+
src: "/components/weather/src/image/warningImage/" + (p.value.type + "-" + p.value.color) + ".png",
|
|
6193
6193
|
class: "f-weather-warning-icon",
|
|
6194
|
-
style:
|
|
6194
|
+
style: p.value ? g.value : ""
|
|
6195
6195
|
}, null), k("span", {
|
|
6196
6196
|
class: "f-weather-warning-text"
|
|
6197
|
-
}, [t0(" "),
|
|
6197
|
+
}, [t0(" "), p.value.title])])]) : "";
|
|
6198
6198
|
}
|
|
6199
6199
|
function e() {
|
|
6200
6200
|
return k("div", {
|
|
6201
6201
|
class: "f-weather-information-text f-weather-advice-container"
|
|
6202
|
-
}, [f.value.default.adviceItems.map((n) =>
|
|
6202
|
+
}, [f.value.default.adviceItems.map((n) => i[r.value].adviceItems.includes(n.key) ? k("span", {
|
|
6203
6203
|
class: "f-weather-advice"
|
|
6204
|
-
}, [k("span", null, [n.value.name, t0(":"), n.value.info]),
|
|
6204
|
+
}, [k("span", null, [n.value.name, t0(":"), n.value.info]), i[r.value].adviceItems.indexOf(n.key) !== 2 ? k("span", {
|
|
6205
6205
|
class: "f-weather-advice-line"
|
|
6206
6206
|
}, null) : "", k("span", {
|
|
6207
6207
|
class: "f-weather-advice-text"
|
|
@@ -6212,7 +6212,7 @@ function dn(i, C) {
|
|
|
6212
6212
|
class: "f-weather-air"
|
|
6213
6213
|
}, [k("div", {
|
|
6214
6214
|
class: "f-weather-air-title"
|
|
6215
|
-
}, [t0("空气质量:"), f.value.default.air + " - " +
|
|
6215
|
+
}, [t0("空气质量:"), f.value.default.air + " - " + m.value]), k("div", {
|
|
6216
6216
|
class: "f-weather-air-progress"
|
|
6217
6217
|
}, [k(Mr("f-progress"), {
|
|
6218
6218
|
percent: 100,
|
|
@@ -6237,7 +6237,7 @@ function dn(i, C) {
|
|
|
6237
6237
|
class: "f-weather-weather"
|
|
6238
6238
|
}, [f.value.default.weather])]), k("div", {
|
|
6239
6239
|
class: "f-weather-information-row2"
|
|
6240
|
-
}, [
|
|
6240
|
+
}, [B()])]), k("div", {
|
|
6241
6241
|
class: "f-weather-information-text f-weather-maxmin"
|
|
6242
6242
|
}, [f.value.default.min + "° ~ " + f.value.default.max + "°"]), e(), t()]);
|
|
6243
6243
|
}
|
|
@@ -6245,23 +6245,23 @@ function dn(i, C) {
|
|
|
6245
6245
|
renderWeatherInformation: l
|
|
6246
6246
|
};
|
|
6247
6247
|
}
|
|
6248
|
-
function vn(
|
|
6249
|
-
const
|
|
6248
|
+
function vn(o, C) {
|
|
6249
|
+
const i = j(!1), {
|
|
6250
6250
|
renderWeatherDetail: r
|
|
6251
|
-
} = yt(
|
|
6251
|
+
} = yt(o), {
|
|
6252
6252
|
renderWeatherCity: f
|
|
6253
|
-
} = fn(
|
|
6253
|
+
} = fn(o), {
|
|
6254
6254
|
renderWeatherSunset: g
|
|
6255
|
-
} = ln(
|
|
6256
|
-
renderWeatherInformation:
|
|
6257
|
-
} = dn(
|
|
6258
|
-
"border-bottom-left-radius":
|
|
6259
|
-
"border-bottom-right-radius":
|
|
6260
|
-
})),
|
|
6261
|
-
display:
|
|
6255
|
+
} = ln(o), {
|
|
6256
|
+
renderWeatherInformation: m
|
|
6257
|
+
} = dn(o), p = L(() => ({
|
|
6258
|
+
"border-bottom-left-radius": i.value ? "0px" : null,
|
|
6259
|
+
"border-bottom-right-radius": i.value ? "0px" : null
|
|
6260
|
+
})), B = L(() => ({
|
|
6261
|
+
display: i.value ? "block" : "none"
|
|
6262
6262
|
}));
|
|
6263
6263
|
function e() {
|
|
6264
|
-
|
|
6264
|
+
i.value = !i.value;
|
|
6265
6265
|
}
|
|
6266
6266
|
function t() {
|
|
6267
6267
|
return k("div", {
|
|
@@ -6269,14 +6269,14 @@ function vn(i, C) {
|
|
|
6269
6269
|
}, [f(), k("button", {
|
|
6270
6270
|
class: "f-weather-button f-weather-button-detail",
|
|
6271
6271
|
onClick: e
|
|
6272
|
-
}, [
|
|
6272
|
+
}, [i.value ? k("div", null, [t0("隐藏详细信息")]) : k("div", null, [t0("显示详细信息")])])]);
|
|
6273
6273
|
}
|
|
6274
6274
|
function l() {
|
|
6275
6275
|
return k("div", null, [k("div", {
|
|
6276
6276
|
class: "f-weather-container",
|
|
6277
|
-
style: B.value
|
|
6278
|
-
}, [t(), g(), F()]), k("div", {
|
|
6279
6277
|
style: p.value
|
|
6278
|
+
}, [t(), g(), m()]), k("div", {
|
|
6279
|
+
style: B.value
|
|
6280
6280
|
}, [r()])]);
|
|
6281
6281
|
}
|
|
6282
6282
|
return {
|
|
@@ -6290,14 +6290,14 @@ const w0 = /* @__PURE__ */ pe({
|
|
|
6290
6290
|
},
|
|
6291
6291
|
props: Ce,
|
|
6292
6292
|
emits: [],
|
|
6293
|
-
setup(
|
|
6294
|
-
const
|
|
6295
|
-
renderWeatherHome:
|
|
6296
|
-
} = vn(
|
|
6293
|
+
setup(o, C) {
|
|
6294
|
+
const i = j(), r = j(o.data.data), f = _0(o), g = ge(o), m = kr(o), {
|
|
6295
|
+
renderWeatherHome: p
|
|
6296
|
+
} = vn(o), B = L(() => ({
|
|
6297
6297
|
"background-image": "linear-gradient(132deg, " + f.colorTheme.value[0] + " 0%, " + f.colorTheme.value[1] + " 100%)"
|
|
6298
6298
|
}));
|
|
6299
6299
|
function e() {
|
|
6300
|
-
const t =
|
|
6300
|
+
const t = i.value.getBoundingClientRect().width, l = document.getElementById("airPoint"), n = Math.max(i.value.getBoundingClientRect().width, 400);
|
|
6301
6301
|
l && (l.style.marginLeft = r.value.default.air / 500 * (n - 50) - 5 + "px");
|
|
6302
6302
|
const s = document.getElementById("f-weather-24h-content");
|
|
6303
6303
|
if (s) {
|
|
@@ -6307,21 +6307,21 @@ const w0 = /* @__PURE__ */ pe({
|
|
|
6307
6307
|
g.renderChart7d();
|
|
6308
6308
|
}
|
|
6309
6309
|
return gr(() => {
|
|
6310
|
-
Xr(
|
|
6310
|
+
Xr(i.value, e), m.fetchData(0, 0);
|
|
6311
6311
|
}), () => k("div", {
|
|
6312
|
-
ref:
|
|
6312
|
+
ref: i,
|
|
6313
6313
|
id: "background",
|
|
6314
6314
|
class: "f-weather-background",
|
|
6315
|
-
style:
|
|
6316
|
-
}, [
|
|
6315
|
+
style: B.value
|
|
6316
|
+
}, [p()]);
|
|
6317
6317
|
}
|
|
6318
6318
|
}), hn = /* @__PURE__ */ new Map([
|
|
6319
|
-
["appearance",
|
|
6319
|
+
["appearance", mr]
|
|
6320
6320
|
]);
|
|
6321
|
-
function pn(
|
|
6321
|
+
function pn(o, C, i) {
|
|
6322
6322
|
return C;
|
|
6323
6323
|
}
|
|
6324
|
-
const Bn = "https://json-schema.org/draft/2020-12/schema", Cn = "https://farris-design.gitee.io/progress.schema.json", gn = "progress", yn = "A Farris Component", En = "object",
|
|
6324
|
+
const Bn = "https://json-schema.org/draft/2020-12/schema", Cn = "https://farris-design.gitee.io/progress.schema.json", gn = "progress", yn = "A Farris Component", En = "object", An = {
|
|
6325
6325
|
id: {
|
|
6326
6326
|
description: "The unique identifier for progress",
|
|
6327
6327
|
type: "string"
|
|
@@ -6383,7 +6383,7 @@ const Bn = "https://json-schema.org/draft/2020-12/schema", Cn = "https://farris-
|
|
|
6383
6383
|
type: "boolean",
|
|
6384
6384
|
default: !0
|
|
6385
6385
|
}
|
|
6386
|
-
},
|
|
6386
|
+
}, mn = [
|
|
6387
6387
|
"id",
|
|
6388
6388
|
"type"
|
|
6389
6389
|
], Fn = {
|
|
@@ -6392,8 +6392,8 @@ const Bn = "https://json-schema.org/draft/2020-12/schema", Cn = "https://farris-
|
|
|
6392
6392
|
title: gn,
|
|
6393
6393
|
description: yn,
|
|
6394
6394
|
type: En,
|
|
6395
|
-
properties:
|
|
6396
|
-
required:
|
|
6395
|
+
properties: An,
|
|
6396
|
+
required: mn
|
|
6397
6397
|
}, Dn = "progress", bn = "A Farris Component", wn = "object", _n = {
|
|
6398
6398
|
basic: {
|
|
6399
6399
|
description: "Basic Infomation",
|
|
@@ -6451,108 +6451,108 @@ const Bn = "https://json-schema.org/draft/2020-12/schema", Cn = "https://farris-
|
|
|
6451
6451
|
/**
|
|
6452
6452
|
* 格式化进度信息
|
|
6453
6453
|
*/
|
|
6454
|
-
format: { type: Function, default: (
|
|
6454
|
+
format: { type: Function, default: (o, C) => `${o}%` }
|
|
6455
6455
|
};
|
|
6456
|
-
|
|
6457
|
-
function Sn(
|
|
6458
|
-
function C(
|
|
6459
|
-
return +
|
|
6456
|
+
Ar(Sr, Fn, hn, pn, kn);
|
|
6457
|
+
function Sn(o) {
|
|
6458
|
+
function C(m) {
|
|
6459
|
+
return +m.replace("%", "");
|
|
6460
6460
|
}
|
|
6461
|
-
function
|
|
6462
|
-
let
|
|
6463
|
-
return Object.keys(
|
|
6464
|
-
const e =
|
|
6465
|
-
isNaN(t) ||
|
|
6461
|
+
function i(m) {
|
|
6462
|
+
let p = [];
|
|
6463
|
+
return Object.keys(m).forEach((B) => {
|
|
6464
|
+
const e = m[B], t = C(B);
|
|
6465
|
+
isNaN(t) || p.push({
|
|
6466
6466
|
key: t,
|
|
6467
6467
|
value: e
|
|
6468
6468
|
});
|
|
6469
|
-
}),
|
|
6469
|
+
}), p = p.sort((B, e) => B.key - e.key), p;
|
|
6470
6470
|
}
|
|
6471
|
-
const r = L(() => !!
|
|
6472
|
-
const { from:
|
|
6471
|
+
const r = L(() => !!o.strokeColor && typeof o.strokeColor != "string"), f = L(() => {
|
|
6472
|
+
const { from: m = "#59a1ff", to: p = "#59a1ff", direction: B = "to right", ...e } = o.strokeColor;
|
|
6473
6473
|
if (Object.keys(e).length !== 0) {
|
|
6474
|
-
const t =
|
|
6475
|
-
return `linear-gradient(${
|
|
6474
|
+
const t = i(e).map(({ key: l, value: n }) => `${n} ${l}%`).join(", ");
|
|
6475
|
+
return `linear-gradient(${B}, ${t})`;
|
|
6476
6476
|
}
|
|
6477
|
-
return `linear-gradient(${
|
|
6478
|
-
}), g = L(() => o
|
|
6477
|
+
return `linear-gradient(${B}, ${m}, ${p})`;
|
|
6478
|
+
}), g = L(() => i(o.strokeColor).map(({ key: m, value: p }) => ({ offset: `${m}%`, color: p })));
|
|
6479
6479
|
return {
|
|
6480
6480
|
isGradient: r,
|
|
6481
6481
|
linearGradient: f,
|
|
6482
6482
|
circleGradient: g
|
|
6483
6483
|
};
|
|
6484
6484
|
}
|
|
6485
|
-
function Pn(
|
|
6486
|
-
return { strokeWidth: L(() =>
|
|
6485
|
+
function Pn(o) {
|
|
6486
|
+
return { strokeWidth: L(() => o.strokeWidth || (o.progressType === "line" && o.size !== "small" ? 8 : 6)) };
|
|
6487
6487
|
}
|
|
6488
|
-
function Hn(
|
|
6489
|
-
return { formatPercentageText: L(() =>
|
|
6488
|
+
function Hn(o) {
|
|
6489
|
+
return { formatPercentageText: L(() => o.format(o.percent, o.successPercent)) };
|
|
6490
6490
|
}
|
|
6491
|
-
function Rn(
|
|
6492
|
-
const { isCircleStyle: f } = C, { isGradient: g, linearGradient:
|
|
6491
|
+
function Rn(o, C, i, r) {
|
|
6492
|
+
const { isCircleStyle: f } = C, { isGradient: g, linearGradient: m } = i, { strokeWidth: p } = r, B = L(() => {
|
|
6493
6493
|
const d = {
|
|
6494
6494
|
"f-progress": !0,
|
|
6495
|
-
"f-progress-line":
|
|
6496
|
-
"ant-progress-small":
|
|
6497
|
-
"f-progress-show-info":
|
|
6495
|
+
"f-progress-line": o.progressType === "line",
|
|
6496
|
+
"ant-progress-small": o.size === "small",
|
|
6497
|
+
"f-progress-show-info": o.showInfo,
|
|
6498
6498
|
"f-progress-circle": f.value
|
|
6499
|
-
}, a = `f-progress-status-${
|
|
6499
|
+
}, a = `f-progress-status-${o.progressStatus}`;
|
|
6500
6500
|
return d[a] = !0, d;
|
|
6501
6501
|
}), e = L(() => ({
|
|
6502
|
-
width: `${
|
|
6503
|
-
height: `${
|
|
6504
|
-
"font-size": `${
|
|
6502
|
+
width: `${o.width}px`,
|
|
6503
|
+
height: `${o.width}px`,
|
|
6504
|
+
"font-size": `${o.width * 0.15 + 6}px`,
|
|
6505
6505
|
"f-progress-circle-gradient": g.value
|
|
6506
6506
|
})), t = L(() => ({
|
|
6507
6507
|
"f-progress-inner": !0,
|
|
6508
6508
|
"f-progress-circle-gradient": g.value
|
|
6509
6509
|
})), l = 0, n = L(() => l + 1), s = L(() => {
|
|
6510
|
-
const d = 50 -
|
|
6511
|
-
let x = 0, h = -d,
|
|
6510
|
+
const d = 50 - p.value / 2, a = o.gapPosition || (o.progressType === "circle" ? "top" : "bottom");
|
|
6511
|
+
let x = 0, h = -d, A = 0, y = d * -2;
|
|
6512
6512
|
switch (a) {
|
|
6513
6513
|
case "left":
|
|
6514
|
-
x = -d, h = 0,
|
|
6514
|
+
x = -d, h = 0, A = d * 2, y = 0;
|
|
6515
6515
|
break;
|
|
6516
6516
|
case "right":
|
|
6517
|
-
x = d, h = 0,
|
|
6517
|
+
x = d, h = 0, A = d * -2, y = 0;
|
|
6518
6518
|
break;
|
|
6519
6519
|
case "bottom":
|
|
6520
6520
|
h = d, y = d * 2;
|
|
6521
6521
|
break;
|
|
6522
6522
|
}
|
|
6523
6523
|
return `M 50,50 m ${x},${h}
|
|
6524
|
-
a ${d},${d} 0 1 1 ${
|
|
6525
|
-
a ${d},${d} 0 1 1 ${-
|
|
6524
|
+
a ${d},${d} 0 1 1 ${A},${-y}
|
|
6525
|
+
a ${d},${d} 0 1 1 ${-A},${y}`;
|
|
6526
6526
|
}), c = L(() => {
|
|
6527
|
-
const d = 50 -
|
|
6527
|
+
const d = 50 - p.value / 2, a = Math.PI * 2 * d, x = o.gapDegree || (o.progressType === "circle" ? 0 : 75);
|
|
6528
6528
|
return {
|
|
6529
6529
|
strokeDasharray: `${a - x}px ${a}px`,
|
|
6530
6530
|
strokeDashoffset: `-${x / 2}px`,
|
|
6531
6531
|
transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
|
|
6532
6532
|
};
|
|
6533
6533
|
}), v = L(() => {
|
|
6534
|
-
const d = 50 -
|
|
6535
|
-
return h.map((
|
|
6536
|
-
const
|
|
6534
|
+
const d = 50 - p.value / 2, a = Math.PI * 2 * d, x = o.gapDegree || (o.progressType === "circle" ? 0 : 75), h = o.successPercent !== void 0 && o.successPercent !== null ? [o.successPercent, o.percent] : [o.percent];
|
|
6535
|
+
return h.map((A, y) => {
|
|
6536
|
+
const F = h.length === 2 && y === 0;
|
|
6537
6537
|
return {
|
|
6538
|
-
stroke: g.value && !
|
|
6538
|
+
stroke: g.value && !F ? `url(#gradient-${n.value})` : null,
|
|
6539
6539
|
strokePathStyle: {
|
|
6540
|
-
stroke: g.value ? null :
|
|
6540
|
+
stroke: g.value ? null : F ? "default" : o.strokeColor,
|
|
6541
6541
|
transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",
|
|
6542
|
-
strokeDasharray: `${(
|
|
6542
|
+
strokeDasharray: `${(A || 0) / 100 * (a - x)}px ${a}px`,
|
|
6543
6543
|
strokeDashoffset: `-${x / 2}px`
|
|
6544
6544
|
}
|
|
6545
6545
|
};
|
|
6546
6546
|
}).reverse();
|
|
6547
6547
|
}), u = L(() => ({
|
|
6548
|
-
width: `${
|
|
6549
|
-
"border-radius":
|
|
6550
|
-
background: g.value ? null :
|
|
6551
|
-
"background-image": g.value ?
|
|
6552
|
-
height: `${
|
|
6548
|
+
width: `${o.percent}%`,
|
|
6549
|
+
"border-radius": o.strokeLinecap === "round" ? "100px" : "0",
|
|
6550
|
+
background: g.value ? null : o.strokeColor,
|
|
6551
|
+
"background-image": g.value ? m.value : null,
|
|
6552
|
+
height: `${p.value}px`
|
|
6553
6553
|
}));
|
|
6554
6554
|
return {
|
|
6555
|
-
progressClass:
|
|
6555
|
+
progressClass: B,
|
|
6556
6556
|
inCircleProgressBarStyle: e,
|
|
6557
6557
|
inCircleProgressBarClass: t,
|
|
6558
6558
|
pathString: s,
|
|
@@ -6562,51 +6562,51 @@ function Rn(i, C, o, r) {
|
|
|
6562
6562
|
inlineProgressBackgroundStyle: u
|
|
6563
6563
|
};
|
|
6564
6564
|
}
|
|
6565
|
-
function Tn(
|
|
6566
|
-
return { isCircleStyle: L(() =>
|
|
6565
|
+
function Tn(o) {
|
|
6566
|
+
return { isCircleStyle: L(() => o.progressType === "circle" || o.progressType === "dashboard") };
|
|
6567
6567
|
}
|
|
6568
|
-
function Wn(
|
|
6568
|
+
function Wn(o) {
|
|
6569
6569
|
const C = L(() => {
|
|
6570
6570
|
const f = {
|
|
6571
6571
|
"f-progress-text-icon": !0,
|
|
6572
6572
|
"f-icon": !0
|
|
6573
|
-
}, g = `f-icon-${
|
|
6573
|
+
}, g = `f-icon-${o.progressStatus}`;
|
|
6574
6574
|
return f[g] = !0, f;
|
|
6575
|
-
}),
|
|
6575
|
+
}), i = L(() => {
|
|
6576
6576
|
const f = {
|
|
6577
6577
|
"f-progress-text-icon": !0,
|
|
6578
6578
|
"f-icon": !0
|
|
6579
|
-
}, g =
|
|
6579
|
+
}, g = o.progressStatus === "success" ? "f-icon-checkmark" : "f-icon-x";
|
|
6580
6580
|
return f[g] = !0, f;
|
|
6581
|
-
}), r = L(() =>
|
|
6581
|
+
}), r = L(() => o.progressStatus === "error" || o.progressStatus === "success");
|
|
6582
6582
|
return {
|
|
6583
6583
|
inlineProgrssStatusClass: C,
|
|
6584
|
-
circleProgrssStatusClass:
|
|
6584
|
+
circleProgrssStatusClass: i,
|
|
6585
6585
|
shouldShowStatus: r
|
|
6586
6586
|
};
|
|
6587
6587
|
}
|
|
6588
|
-
function zn(
|
|
6588
|
+
function zn(o) {
|
|
6589
6589
|
const C = L(() => ({
|
|
6590
|
-
width: `${
|
|
6591
|
-
"border-radius":
|
|
6592
|
-
height: `${
|
|
6593
|
-
"background-image":
|
|
6594
|
-
})),
|
|
6595
|
-
return { inlineProgressSuccessBackgroundStyle: C, shouldShowSuccessInlineProgressBackground:
|
|
6590
|
+
width: `${o.successPercent}%`,
|
|
6591
|
+
"border-radius": o.strokeLinecap === "round" ? "100px" : "0",
|
|
6592
|
+
height: `${o.strokeWidth}px`,
|
|
6593
|
+
"background-image": o.enableBackgroundImg ? `url(${o.backgroundImg})` : null
|
|
6594
|
+
})), i = L(() => o.successPercent || o.successPercent === 0);
|
|
6595
|
+
return { inlineProgressSuccessBackgroundStyle: C, shouldShowSuccessInlineProgressBackground: i };
|
|
6596
6596
|
}
|
|
6597
6597
|
const qn = /* @__PURE__ */ pe({
|
|
6598
6598
|
name: "FProgress",
|
|
6599
6599
|
props: Sr,
|
|
6600
6600
|
emits: [],
|
|
6601
|
-
setup(
|
|
6602
|
-
const C = j(
|
|
6603
|
-
isGradient:
|
|
6604
|
-
circleGradient:
|
|
6605
|
-
} = g,
|
|
6601
|
+
setup(o) {
|
|
6602
|
+
const C = j(o.progressType), i = j(o.showInfo), r = j(o.percent), f = j(o.strokeLinecap), g = Sn(o), {
|
|
6603
|
+
isGradient: m,
|
|
6604
|
+
circleGradient: p
|
|
6605
|
+
} = g, B = Pn(o), {
|
|
6606
6606
|
strokeWidth: e
|
|
6607
|
-
} =
|
|
6607
|
+
} = B, {
|
|
6608
6608
|
formatPercentageText: t
|
|
6609
|
-
} = Hn(
|
|
6609
|
+
} = Hn(o), l = Tn(o), {
|
|
6610
6610
|
isCircleStyle: n
|
|
6611
6611
|
} = l, {
|
|
6612
6612
|
progressClass: s,
|
|
@@ -6617,22 +6617,22 @@ const qn = /* @__PURE__ */ pe({
|
|
|
6617
6617
|
progressCirclePaths: a,
|
|
6618
6618
|
gradientId: x,
|
|
6619
6619
|
inlineProgressBackgroundStyle: h
|
|
6620
|
-
} = Rn(
|
|
6621
|
-
inlineProgrssStatusClass:
|
|
6620
|
+
} = Rn(o, l, g, B), {
|
|
6621
|
+
inlineProgrssStatusClass: A,
|
|
6622
6622
|
circleProgrssStatusClass: y,
|
|
6623
|
-
shouldShowStatus:
|
|
6624
|
-
} = Wn(
|
|
6623
|
+
shouldShowStatus: F
|
|
6624
|
+
} = Wn(o), {
|
|
6625
6625
|
inlineProgressSuccessBackgroundStyle: b,
|
|
6626
|
-
shouldShowSuccessInlineProgressBackground:
|
|
6627
|
-
} = zn(
|
|
6628
|
-
Cr(() =>
|
|
6626
|
+
shouldShowSuccessInlineProgressBackground: H
|
|
6627
|
+
} = zn(o);
|
|
6628
|
+
Cr(() => o.percent, (w) => {
|
|
6629
6629
|
r.value = w || 0;
|
|
6630
6630
|
});
|
|
6631
6631
|
function E() {
|
|
6632
|
-
return
|
|
6632
|
+
return i.value && k("span", {
|
|
6633
6633
|
class: "f-progress-text"
|
|
6634
|
-
}, [
|
|
6635
|
-
class: n.value ? y.value :
|
|
6634
|
+
}, [F.value ? k("span", {
|
|
6635
|
+
class: n.value ? y.value : A.value
|
|
6636
6636
|
}, null) : t.value]);
|
|
6637
6637
|
}
|
|
6638
6638
|
function D() {
|
|
@@ -6643,7 +6643,7 @@ const qn = /* @__PURE__ */ pe({
|
|
|
6643
6643
|
}, [k("div", {
|
|
6644
6644
|
class: "f-progress-bg",
|
|
6645
6645
|
style: h.value
|
|
6646
|
-
}, null),
|
|
6646
|
+
}, null), H.value && k("div", {
|
|
6647
6647
|
class: "f-progress-success-bg",
|
|
6648
6648
|
style: b.value
|
|
6649
6649
|
}, null)])]), E()]);
|
|
@@ -6655,13 +6655,13 @@ const qn = /* @__PURE__ */ pe({
|
|
|
6655
6655
|
}, [k("svg", {
|
|
6656
6656
|
class: "f-progress-circle",
|
|
6657
6657
|
viewBox: "0 0 100 100"
|
|
6658
|
-
}, [
|
|
6658
|
+
}, [m.value && k("defs", null, [k("linearGradient", {
|
|
6659
6659
|
id: "gradient-" + x.value,
|
|
6660
6660
|
x1: "100%",
|
|
6661
6661
|
y1: "0%",
|
|
6662
6662
|
x2: "0%",
|
|
6663
6663
|
y2: "0%"
|
|
6664
|
-
}, [
|
|
6664
|
+
}, [p.value.map((w) => k("stop", {
|
|
6665
6665
|
offset: w.offset,
|
|
6666
6666
|
"stop-color": w.color
|
|
6667
6667
|
}, null))])]), k("path", {
|
|
@@ -6686,15 +6686,15 @@ const qn = /* @__PURE__ */ pe({
|
|
|
6686
6686
|
}, [C.value === "line" && D(), n.value && S()]);
|
|
6687
6687
|
}
|
|
6688
6688
|
});
|
|
6689
|
-
function On(
|
|
6690
|
-
var
|
|
6689
|
+
function On(o, C, i) {
|
|
6690
|
+
var A;
|
|
6691
6691
|
function r() {
|
|
6692
6692
|
}
|
|
6693
|
-
const f = "", g = "",
|
|
6694
|
-
function
|
|
6693
|
+
const f = "", g = "", m = j();
|
|
6694
|
+
function p() {
|
|
6695
6695
|
return (C == null ? void 0 : C.schema.componentType) !== "frame";
|
|
6696
6696
|
}
|
|
6697
|
-
function
|
|
6697
|
+
function B() {
|
|
6698
6698
|
return !1;
|
|
6699
6699
|
}
|
|
6700
6700
|
function e() {
|
|
@@ -6708,32 +6708,32 @@ function On(i, C, o) {
|
|
|
6708
6708
|
return null;
|
|
6709
6709
|
if (y.value.schema && y.value.schema.type === "component")
|
|
6710
6710
|
return y.value;
|
|
6711
|
-
const
|
|
6711
|
+
const F = j(y == null ? void 0 : y.value.parent), b = l(F);
|
|
6712
6712
|
return b || null;
|
|
6713
6713
|
}
|
|
6714
6714
|
function n(y = C) {
|
|
6715
|
-
const { componentInstance:
|
|
6716
|
-
return !
|
|
6715
|
+
const { componentInstance: F, designerItemElementRef: b } = y;
|
|
6716
|
+
return !F || !F.value ? null : F.value.canMove ? b : n(y.parent);
|
|
6717
6717
|
}
|
|
6718
6718
|
function s(y) {
|
|
6719
|
-
return !!
|
|
6719
|
+
return !!i;
|
|
6720
6720
|
}
|
|
6721
6721
|
function c() {
|
|
6722
6722
|
return (C == null ? void 0 : C.schema.label) || (C == null ? void 0 : C.schema.title) || (C == null ? void 0 : C.schema.name);
|
|
6723
6723
|
}
|
|
6724
6724
|
function v() {
|
|
6725
6725
|
}
|
|
6726
|
-
function u(y,
|
|
6726
|
+
function u(y, F) {
|
|
6727
6727
|
}
|
|
6728
|
-
function d(y) {
|
|
6729
|
-
const { componentType:
|
|
6730
|
-
let
|
|
6731
|
-
const
|
|
6732
|
-
return
|
|
6728
|
+
function d(y, F) {
|
|
6729
|
+
const { componentType: b } = y;
|
|
6730
|
+
let H = de(b, y, F);
|
|
6731
|
+
const E = b.toLowerCase().replace("-", "_");
|
|
6732
|
+
return H && !H.id && H.type === b && (H.id = `${E}_${Math.random().toString().slice(2, 6)}`), H;
|
|
6733
6733
|
}
|
|
6734
|
-
function a(y,
|
|
6735
|
-
const b = String(y.getAttribute("data-controltype")),
|
|
6736
|
-
E.parentComponentInstance =
|
|
6734
|
+
function a(y, F) {
|
|
6735
|
+
const b = String(y.getAttribute("data-controltype")), H = y.getAttribute("data-feature"), E = H ? JSON.parse(H) : {};
|
|
6736
|
+
E.parentComponentInstance = m.value;
|
|
6737
6737
|
let D = de(b, E);
|
|
6738
6738
|
const S = b.toLowerCase().replace("-", "_");
|
|
6739
6739
|
return D && !D.id && D.type === b && (D.id = `${S}_${Math.random().toString().slice(2, 6)}`), D;
|
|
@@ -6742,14 +6742,14 @@ function On(i, C, o) {
|
|
|
6742
6742
|
}
|
|
6743
6743
|
function h(...y) {
|
|
6744
6744
|
}
|
|
6745
|
-
return
|
|
6746
|
-
canMove:
|
|
6747
|
-
canSelectParent:
|
|
6745
|
+
return m.value = {
|
|
6746
|
+
canMove: p(),
|
|
6747
|
+
canSelectParent: B(),
|
|
6748
6748
|
canDelete: e(),
|
|
6749
6749
|
canNested: !t(),
|
|
6750
6750
|
contents: C == null ? void 0 : C.schema.contents,
|
|
6751
|
-
elementRef:
|
|
6752
|
-
parent: (
|
|
6751
|
+
elementRef: o,
|
|
6752
|
+
parent: (A = C == null ? void 0 : C.parent) == null ? void 0 : A.componentInstance,
|
|
6753
6753
|
schema: C == null ? void 0 : C.schema,
|
|
6754
6754
|
styles: f,
|
|
6755
6755
|
designerClass: g,
|
|
@@ -6766,7 +6766,7 @@ function On(i, C, o) {
|
|
|
6766
6766
|
updateDragAndDropRules: r,
|
|
6767
6767
|
triggerBelongedComponentToMoveWhenMoved: j(!1),
|
|
6768
6768
|
triggerBelongedComponentToDeleteWhenDeleted: j(!1)
|
|
6769
|
-
},
|
|
6769
|
+
}, m;
|
|
6770
6770
|
}
|
|
6771
6771
|
const In = /* @__PURE__ */ pe({
|
|
6772
6772
|
name: "FWeatherDesign",
|
|
@@ -6775,23 +6775,23 @@ const In = /* @__PURE__ */ pe({
|
|
|
6775
6775
|
},
|
|
6776
6776
|
props: Ce,
|
|
6777
6777
|
emits: [],
|
|
6778
|
-
setup(
|
|
6779
|
-
const
|
|
6778
|
+
setup(o, C) {
|
|
6779
|
+
const i = j(), r = Ur("design-item-context"), f = On(i, r);
|
|
6780
6780
|
return gr(() => {
|
|
6781
|
-
|
|
6781
|
+
i.value.componentInstance = f;
|
|
6782
6782
|
}), C.expose(f.value), () => k(w0, {
|
|
6783
|
-
ref:
|
|
6783
|
+
ref: i
|
|
6784
6784
|
}, null);
|
|
6785
6785
|
}
|
|
6786
6786
|
}), Mn = {
|
|
6787
|
-
install(
|
|
6788
|
-
|
|
6787
|
+
install(o) {
|
|
6788
|
+
o.component(w0.name, w0);
|
|
6789
6789
|
},
|
|
6790
|
-
register(
|
|
6791
|
-
|
|
6790
|
+
register(o, C, i, r) {
|
|
6791
|
+
o.weather = w0, C.weather = Te;
|
|
6792
6792
|
},
|
|
6793
|
-
registerDesigner(
|
|
6794
|
-
|
|
6793
|
+
registerDesigner(o, C, i) {
|
|
6794
|
+
o.weather = In, C.weather = Te;
|
|
6795
6795
|
}
|
|
6796
6796
|
};
|
|
6797
6797
|
export {
|