ss-component-new 1.1.402 → 1.1.405

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.
Files changed (92) hide show
  1. package/dist/{array-8lXzP3Oa.js → array-D9MKKQmi.js} +2 -2
  2. package/dist/{array-BDS3aai0.cjs → array-Pzwccs_9.cjs} +1 -1
  3. package/dist/index-4ajMt1uY.cjs +1 -0
  4. package/dist/{index-B8GIT0hN.js → index-6RWIKYOO.js} +5 -5
  5. package/dist/{index-BagZzu6p.js → index-B0iTrB4A.js} +10 -10
  6. package/dist/index-BMAdvw1I.cjs +87 -0
  7. package/dist/{index-hnO_NhVa.cjs → index-BOo_8sQ3.cjs} +1 -1
  8. package/dist/{index-piJWl5b2.js → index-BWxSbHfr.js} +1103 -960
  9. package/dist/{index-Brwyptk1.cjs → index-BfIcf2WC.cjs} +1 -1
  10. package/dist/{index-Btp0-NR_.js → index-BgyJezGf.js} +7 -7
  11. package/dist/{index-BpPyaNFa.cjs → index-Bk37DuoM.cjs} +1 -1
  12. package/dist/{index-XhgdCXZS.cjs → index-Bl2HH9gT.cjs} +1 -1
  13. package/dist/{index-BOvltwWF.js → index-BoC890jM.js} +1 -1
  14. package/dist/{index-CxjbXK-o.cjs → index-BzM7Obtl.cjs} +1 -1
  15. package/dist/{index-wCvQNdnW.cjs → index-C7RtEOWe.cjs} +1 -1
  16. package/dist/{index-IHBVKKqf.cjs → index-C8B6zx6K.cjs} +1 -1
  17. package/dist/{index-CjNY8OSy.cjs → index-CD0Ic-22.cjs} +1 -1
  18. package/dist/{index-BePsuMkH.js → index-CDoE3M7s.js} +7 -7
  19. package/dist/{index-B-k-BnbC.cjs → index-CLQwH__o.cjs} +2 -2
  20. package/dist/{index-Kky6qk6y.js → index-COFwNurc.js} +5 -5
  21. package/dist/{index-B-WoFTYh.cjs → index-COjzBEyA.cjs} +2 -2
  22. package/dist/{index-B1GoYVQa.cjs → index-CTDatDr8.cjs} +1 -1
  23. package/dist/{index-ByZ4KsR3.js → index-CVLvz7cG.js} +6 -6
  24. package/dist/{index-DWudNkib.cjs → index-CWdjG6bV.cjs} +1 -1
  25. package/dist/{index-CLex_4Jb.cjs → index-CYrv7tDC.cjs} +1 -1
  26. package/dist/{index-BuJwn_Lt.js → index-Cfal546m.js} +4 -4
  27. package/dist/{index-bVkzb9Sy.js → index-CkYjduSB.js} +4 -4
  28. package/dist/{index-DgWGY6rU.cjs → index-Cm4vLcn3.cjs} +1 -1
  29. package/dist/{index-JYy9zyCo.cjs → index-CmlWxc3n.cjs} +1 -1
  30. package/dist/{index-DhlsCYbc.js → index-Cq8j3Vl0.js} +4 -4
  31. package/dist/{index-BtIcDHbX.js → index-CrK6Kt7N.js} +3 -3
  32. package/dist/{index-DuHEQx8F.js → index-CtK1G4vA.js} +3 -3
  33. package/dist/{index-QXZaIo5S.js → index-CwN48ZX_.js} +2 -2
  34. package/dist/{index-Bx_WaJCq.cjs → index-DAyTsyUv.cjs} +1 -1
  35. package/dist/{index-bnboWxey.js → index-DGi6xbQn.js} +1 -1
  36. package/dist/{index-DO_FH8U9.js → index-DJSxeNRD.js} +9 -9
  37. package/dist/{index-Bn95cqrG.js → index-DLX-ONAd.js} +3 -3
  38. package/dist/{index-NfgOX2R7.js → index-DM1-yw58.js} +7 -7
  39. package/dist/{index-wBJhPYQH.cjs → index-DOPVTIEe.cjs} +1 -1
  40. package/dist/{index-CNgUzVdJ.cjs → index-DVgsClbe.cjs} +1 -1
  41. package/dist/{index-N3l4V2Ph.cjs → index-DjPhILPB.cjs} +1 -1
  42. package/dist/{index-Bvys-LNm.cjs → index-DlljSyZC.cjs} +1 -1
  43. package/dist/{index-xOU_6Fdn.js → index-DmGrvkB9.js} +4 -4
  44. package/dist/{index-CH2kImo6.js → index-DoB-EL-v.js} +15 -15
  45. package/dist/{index-BochF1HQ.js → index-DrlBLRqU.js} +5 -5
  46. package/dist/{index--ph08_ZR.cjs → index-DyesVjtL.cjs} +1 -1
  47. package/dist/{index-D0u9YecS.js → index-GOdDDqyW.js} +1 -1
  48. package/dist/{index-CmOyXNOv.cjs → index-HiY9Xa2x.cjs} +1 -1
  49. package/dist/{index-CzfpInCW.js → index-HjUuaTuo.js} +6 -6
  50. package/dist/{index-DyHbztYM.cjs → index-KpAXjjU4.cjs} +1 -1
  51. package/dist/{index-BuGupwSd.cjs → index-MZorD9Ma.cjs} +1 -1
  52. package/dist/{index-BUKnaSEP.js → index-S4uikzxe.js} +5 -5
  53. package/dist/{index-DDLQ2cxG.cjs → index-ib_WHRUh.cjs} +1 -1
  54. package/dist/{index-DIynIRv_.js → index-qpmvS6LG.js} +4 -4
  55. package/dist/{index-DV1_dtPV.js → index-swJF77zy.js} +7051 -7021
  56. package/dist/{index.vue_vue_type_script_setup_true_lang-Dooh20EH.js → index.vue_vue_type_script_setup_true_lang-BUHITq6H.js} +3 -3
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-DwbA-ZQu.cjs → index.vue_vue_type_script_setup_true_lang-CNEIoL-G.cjs} +1 -1
  58. package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C97yuUK3.js +51941 -0
  59. package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CB343OKX.cjs +244 -0
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-cVwA5q5z.js → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-BVKDGx20.js} +8 -8
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-D8TOi-wA.cjs → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-DcGxIB6I.cjs} +1 -1
  62. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-RGeCv8zv.cjs +1 -0
  63. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-pl5rsLMz.js +1582 -0
  64. package/dist/{login-Bux_-K9J.js → login-CG1cMAKa.js} +1 -1
  65. package/dist/{login-zaDK0VdZ.cjs → login-CdvTfeG5.cjs} +1 -1
  66. package/dist/{main-BB-BJ6EV.cjs → main-CBtU-k6c.cjs} +1 -1
  67. package/dist/{main-28_1zDTX.js → main-D4Vhn_0J.js} +6 -6
  68. package/dist/{menu-CMFwisaq.js → menu-Dq1Flt_a.js} +3 -5
  69. package/dist/{menu-q5xpYrZn.cjs → menu-_qCM4Xsp.cjs} +3 -3
  70. package/dist/obj/model.mtl +42 -0
  71. package/dist/obj/model.obj +26110 -0
  72. package/dist/ss-component.cjs +1 -1
  73. package/dist/ss-component.css +1 -1
  74. package/dist/ss-component.js +10 -10
  75. package/dist/ss-component2.cjs +1 -1
  76. package/dist/ss-component3.cjs +1 -1
  77. package/dist/ss-component3.js +1 -1
  78. package/dist/threeModel-BFRSKK_1.cjs +1 -0
  79. package/dist/{threeModel-BxzKdpuZ.js → threeModel-D5YprdDT.js} +561 -688
  80. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-Crq9Zc_8.js → threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BZbdtyIF.js} +9176 -9962
  81. package/dist/threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-Z4LR0tCC.cjs +4207 -0
  82. package/package.json +3 -1
  83. package/public/obj/model.mtl +42 -0
  84. package/public/obj/model.obj +26110 -0
  85. package/dist/index-DRQaPnRz.cjs +0 -1
  86. package/dist/index-raQwXjkL.cjs +0 -74
  87. package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DHybSdlr.cjs +0 -15
  88. package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-GgChFXxK.js +0 -3689
  89. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-2Nz71ikS.js +0 -3902
  90. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-C-d8XN4F.cjs +0 -12
  91. package/dist/threeModel-Cwb5sw9P.cjs +0 -1
  92. package/dist/threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BYm11dA-.cjs +0 -4207
@@ -1,3902 +0,0 @@
1
- import { a as Ze, s as We, d as He, e as Ge, f as Je, g as $e } from "./index.vue_vue_type_style_index_0_scoped_306ecd73_lang-cVwA5q5z.js";
2
- import { ref as vt, reactive as Ye, defineComponent as Ce, h as Tt, Transition as qe, withCtx as Xe, withDirectives as Ve, createVNode as Qe, vShow as tr, createApp as er, toRefs as rr, nextTick as ze, isRef as nr, defineProps as ar, computed as Xt, onMounted as sr, watch as Nt } from "vue";
3
- import { c as Lt, g as Et, d as Mt, e as Ie, u as ae, p as Yt, s as It, E as xt } from "./menu-CMFwisaq.js";
4
- import { useRouter as ir } from "vue-router";
5
- import { u as De } from "./login-Bux_-K9J.js";
6
- import { g as or } from "./index-piJWl5b2.js";
7
- import { t as lr, b as Vt, c as ur, d as oe, g as Dt, u as cr, f as fr, e as hr, h as dr, i as pr, I as St } from "./index-BochF1HQ.js";
8
- import { c as tt, a as kt, g as gr } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-GgChFXxK.js";
9
- import { g as yr, d as le } from "./crypto-BRyGpjGR.js";
10
- import { t as mr, g as ue } from "./index-ByZ4KsR3.js";
11
- import { t as _r } from "./index-bVkzb9Sy.js";
12
- import { t as vr } from "./index-DuHEQx8F.js";
13
- import { t as br } from "./index-Bn95cqrG.js";
14
- import { v as Oe } from "./index-QXZaIo5S.js";
15
- import { u as Be } from "./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-Crq9Zc_8.js";
16
- import { a as wr, b as Jt, i as kr, c as Re, g as Pt, d as ce, e as Te, h as Sr } from "./index-BagZzu6p.js";
17
- import { g as Ar } from "./index-Btp0-NR_.js";
18
- import { d as xr, m as Er, g as Cr, f as zr, p as Ir } from "./array-8lXzP3Oa.js";
19
- function Dr(g, w) {
20
- let e;
21
- const k = vt(!1), y = Ye({
22
- ...g,
23
- originalPosition: "",
24
- originalOverflow: "",
25
- visible: !1
26
- });
27
- function i(r) {
28
- y.text = r;
29
- }
30
- function o() {
31
- const r = y.parent, f = m.ns;
32
- if (!r.vLoadingAddClassList) {
33
- let l = r.getAttribute("loading-number");
34
- l = Number.parseInt(l) - 1, l ? r.setAttribute("loading-number", l.toString()) : (Jt(r, f.bm("parent", "relative")), r.removeAttribute("loading-number")), Jt(r, f.bm("parent", "hidden"));
35
- }
36
- n(), d.unmount();
37
- }
38
- function n() {
39
- var r, f;
40
- (f = (r = m.$el) == null ? void 0 : r.parentNode) == null || f.removeChild(m.$el);
41
- }
42
- function a() {
43
- var r;
44
- g.beforeClose && !g.beforeClose() || (k.value = !0, clearTimeout(e), e = setTimeout(h, 400), y.visible = !1, (r = g.closed) == null || r.call(g));
45
- }
46
- function h() {
47
- if (!k.value)
48
- return;
49
- const r = y.parent;
50
- k.value = !1, r.vLoadingAddClassList = void 0, o();
51
- }
52
- const p = Ce({
53
- name: "ElLoading",
54
- setup(r, { expose: f }) {
55
- const { ns: l, zIndex: c } = wr("loading");
56
- return f({
57
- ns: l,
58
- zIndex: c
59
- }), () => {
60
- const u = y.spinner || y.svg, b = Tt("svg", {
61
- class: "circular",
62
- viewBox: y.svgViewBox ? y.svgViewBox : "0 0 50 50",
63
- ...u ? { innerHTML: u } : {}
64
- }, [
65
- Tt("circle", {
66
- class: "path",
67
- cx: "25",
68
- cy: "25",
69
- r: "20",
70
- fill: "none"
71
- })
72
- ]), A = y.text ? Tt("p", { class: l.b("text") }, [y.text]) : void 0;
73
- return Tt(qe, {
74
- name: l.b("fade"),
75
- onAfterLeave: h
76
- }, {
77
- default: Xe(() => [
78
- Ve(Qe("div", {
79
- style: {
80
- backgroundColor: y.background || ""
81
- },
82
- class: [
83
- l.b("mask"),
84
- y.customClass,
85
- y.fullscreen ? "is-fullscreen" : ""
86
- ]
87
- }, [
88
- Tt("div", {
89
- class: l.b("spinner")
90
- }, [b, A])
91
- ]), [[tr, y.visible]])
92
- ])
93
- });
94
- };
95
- }
96
- }), d = er(p);
97
- Object.assign(d._context, w ?? {});
98
- const m = d.mount(document.createElement("div"));
99
- return {
100
- ...rr(y),
101
- setText: i,
102
- removeElLoadingChild: n,
103
- close: a,
104
- handleAfterLeave: h,
105
- vm: m,
106
- get $el() {
107
- return m.$el;
108
- }
109
- };
110
- }
111
- let Zt;
112
- const zt = function(g = {}) {
113
- if (!kr)
114
- return;
115
- const w = Or(g);
116
- if (w.fullscreen && Zt)
117
- return Zt;
118
- const e = Dr({
119
- ...w,
120
- closed: () => {
121
- var y;
122
- (y = w.closed) == null || y.call(w), w.fullscreen && (Zt = void 0);
123
- }
124
- }, zt._context);
125
- Br(w, w.parent, e), fe(w, w.parent, e), w.parent.vLoadingAddClassList = () => fe(w, w.parent, e);
126
- let k = w.parent.getAttribute("loading-number");
127
- return k ? k = `${Number.parseInt(k) + 1}` : k = "1", w.parent.setAttribute("loading-number", k), w.parent.appendChild(e.$el), ze(() => e.visible.value = w.visible), w.fullscreen && (Zt = e), e;
128
- }, Or = (g) => {
129
- var w, e, k, y;
130
- let i;
131
- return Re(g.target) ? i = (w = document.querySelector(g.target)) != null ? w : document.body : i = g.target || document.body, {
132
- parent: i === document.body || g.body ? document.body : i,
133
- background: g.background || "",
134
- svg: g.svg || "",
135
- svgViewBox: g.svgViewBox || "",
136
- spinner: g.spinner || !1,
137
- text: g.text || "",
138
- fullscreen: i === document.body && ((e = g.fullscreen) != null ? e : !0),
139
- lock: (k = g.lock) != null ? k : !1,
140
- customClass: g.customClass || "",
141
- visible: (y = g.visible) != null ? y : !0,
142
- beforeClose: g.beforeClose,
143
- closed: g.closed,
144
- target: i
145
- };
146
- }, Br = async (g, w, e) => {
147
- const { nextZIndex: k } = e.vm.zIndex || e.vm._.exposed.zIndex, y = {};
148
- if (g.fullscreen)
149
- e.originalPosition.value = Pt(document.body, "position"), e.originalOverflow.value = Pt(document.body, "overflow"), y.zIndex = k();
150
- else if (g.parent === document.body) {
151
- e.originalPosition.value = Pt(document.body, "position"), await ze();
152
- for (const i of ["top", "left"]) {
153
- const o = i === "top" ? "scrollTop" : "scrollLeft";
154
- y[i] = `${g.target.getBoundingClientRect()[i] + document.body[o] + document.documentElement[o] - Number.parseInt(Pt(document.body, `margin-${i}`), 10)}px`;
155
- }
156
- for (const i of ["height", "width"])
157
- y[i] = `${g.target.getBoundingClientRect()[i]}px`;
158
- } else
159
- e.originalPosition.value = Pt(w, "position");
160
- for (const [i, o] of Object.entries(y))
161
- e.$el.style[i] = o;
162
- }, fe = (g, w, e) => {
163
- const k = e.vm.ns || e.vm._.exposed.ns;
164
- ["absolute", "fixed", "sticky"].includes(e.originalPosition.value) ? Jt(w, k.bm("parent", "relative")) : ce(w, k.bm("parent", "relative")), g.fullscreen && g.lock ? ce(w, k.bm("parent", "hidden")) : Jt(w, k.bm("parent", "hidden"));
165
- };
166
- zt._context = null;
167
- const Ht = Symbol("ElLoading"), he = (g, w) => {
168
- var e, k, y, i;
169
- const o = w.instance, n = (r) => Te(w.value) ? w.value[r] : void 0, a = (r) => {
170
- const f = Re(r) && (o == null ? void 0 : o[r]) || r;
171
- return f && vt(f);
172
- }, h = (r) => a(n(r) || g.getAttribute(`element-loading-${Sr(r)}`)), p = (e = n("fullscreen")) != null ? e : w.modifiers.fullscreen, d = {
173
- text: h("text"),
174
- svg: h("svg"),
175
- svgViewBox: h("svgViewBox"),
176
- spinner: h("spinner"),
177
- background: h("background"),
178
- customClass: h("customClass"),
179
- fullscreen: p,
180
- target: (k = n("target")) != null ? k : p ? void 0 : g,
181
- body: (y = n("body")) != null ? y : w.modifiers.body,
182
- lock: (i = n("lock")) != null ? i : w.modifiers.lock
183
- }, m = zt(d);
184
- m._context = Ut._context, g[Ht] = {
185
- options: d,
186
- instance: m
187
- };
188
- }, Rr = (g, w) => {
189
- for (const e of Object.keys(w))
190
- nr(w[e]) && (w[e].value = g[e]);
191
- }, Ut = {
192
- mounted(g, w) {
193
- w.value && he(g, w);
194
- },
195
- updated(g, w) {
196
- const e = g[Ht];
197
- w.oldValue !== w.value && (w.value && !w.oldValue ? he(g, w) : w.value && w.oldValue ? Te(w.value) && Rr(w.value, e.options) : e == null || e.instance.close());
198
- },
199
- unmounted(g) {
200
- var w;
201
- (w = g[Ht]) == null || w.instance.close(), g[Ht] = null;
202
- }
203
- };
204
- Ut._context = null;
205
- const Tr = {
206
- install(g) {
207
- zt._context = g._context, Ut._context = g._context, g.directive("loading", Ut), g.config.globalProperties.$loading = zt;
208
- },
209
- directive: Ut,
210
- service: zt
211
- }, de = async (g) => {
212
- let w = [];
213
- g == null || g.forEach((e) => {
214
- var k;
215
- (k = e.compData) == null || k.forEach((y) => {
216
- var i;
217
- (i = y.contents) == null || i.forEach((o) => {
218
- var a, h, p, d;
219
- const n = (h = (a = o == null ? void 0 : o.compData) == null ? void 0 : a.find((m) => (m == null ? void 0 : m.key) === "extra")) == null ? void 0 : h.value;
220
- (d = (p = o.compData) == null ? void 0 : p.filter((m) => (m == null ? void 0 : m.key) !== "extra")) == null || d.forEach((m) => {
221
- var r;
222
- (r = lr(tt(m))) == null || r.forEach(async (f) => {
223
- var l, c, u, b, A, C, I, M;
224
- if (f.comp === "Table") {
225
- const U = await Lt({
226
- key: {
227
- systemKey: sessionStorage.getItem("systemKey"),
228
- pageKey: e.name,
229
- type: "method",
230
- version: 1,
231
- methodName: (u = (l = e.name) == null ? void 0 : l.split("/")) == null ? void 0 : u[((c = e.name) == null ? void 0 : c.split("/").length) - 1],
232
- methodKey: (b = Object.values(n[0])) == null ? void 0 : b[0],
233
- parentTable: (f == null ? void 0 : f.parentTableContents) ?? ""
234
- },
235
- value: {
236
- pageData: {
237
- comp: (A = Vt(tt(f))) == null ? void 0 : A.comp,
238
- compData: (C = Vt(tt(f))) == null ? void 0 : C.compData,
239
- name: (I = Vt(tt(f))) == null ? void 0 : I.name
240
- }
241
- }
242
- }), L = U.data.result, x = await ((M = ur(tt(f))) == null ? void 0 : M.map(async (F) => {
243
- var s, N;
244
- let Y;
245
- F.length !== 0 && (Y = await Lt({
246
- key: {
247
- systemKey: sessionStorage.getItem("systemKey"),
248
- pageKey: e.name,
249
- type: "methodData",
250
- methodKey: (s = Object.values(n[0])) == null ? void 0 : s[0],
251
- tableId: L
252
- },
253
- value: {
254
- tableData: F
255
- }
256
- }));
257
- const P = (N = (await Et({
258
- key: {
259
- parentTable: F,
260
- systemKey: sessionStorage.getItem("systemKey"),
261
- pageKey: e.name,
262
- type: "method"
263
- }
264
- })).data.result) == null ? void 0 : N.map(async ($) => await Mt({
265
- id: $.id,
266
- key: {
267
- systemKey: $.key.systemKey,
268
- pageKey: $.key.pageKey,
269
- type: $.key.type,
270
- methodKey: $.key.methodKey,
271
- parentTable: Y.data.result
272
- }
273
- }));
274
- return w.push(P), Y;
275
- }));
276
- w.push(U), w.push(x);
277
- }
278
- });
279
- });
280
- });
281
- });
282
- }), await Promise.all(w);
283
- }, Pe = ae(), ne = (g) => g == null ? void 0 : g.map((w) => (w.contents && (w.contents = w.contents.filter((e) => {
284
- var k;
285
- return ((k = e.comp) == null ? void 0 : k.toUpperCase()) !== "CALCULATOR";
286
- })), w.compData && (w.compData = ne(w.compData)), w)), pe = async (g) => {
287
- var w, e, k, y, i, o, n, a, h, p, d, m, r, f, l, c, u, b, A, C, I, M, U;
288
- if ((g == null ? void 0 : g.length) === 0) {
289
- const L = await Et({
290
- key: {
291
- systemKey: sessionStorage.getItem("systemKey"),
292
- layer: "superAdmin"
293
- }
294
- });
295
- if (((w = L == null ? void 0 : L.data) == null ? void 0 : w.code) === 200 && (y = (k = (e = L == null ? void 0 : L.data) == null ? void 0 : e.result) == null ? void 0 : k[0]) != null && y.id) {
296
- const x = (o = (i = L == null ? void 0 : L.data) == null ? void 0 : i.result) == null ? void 0 : o[0], F = (h = (a = (n = L == null ? void 0 : L.data) == null ? void 0 : n.result) == null ? void 0 : a[0]) == null ? void 0 : h.key;
297
- F.systemType = "管理系统", await Mt({
298
- id: x == null ? void 0 : x.id,
299
- key: F
300
- });
301
- }
302
- return;
303
- }
304
- try {
305
- const L = await Et({
306
- key: {
307
- systemKey: sessionStorage.getItem("systemKey"),
308
- layer: "superAdmin"
309
- }
310
- });
311
- if (((p = L == null ? void 0 : L.data) == null ? void 0 : p.code) === 200 && (r = (m = (d = L == null ? void 0 : L.data) == null ? void 0 : d.result) == null ? void 0 : m[0]) != null && r.id) {
312
- const x = (l = (f = L == null ? void 0 : L.data) == null ? void 0 : f.result) == null ? void 0 : l[0], F = (b = (u = (c = L == null ? void 0 : L.data) == null ? void 0 : c.result) == null ? void 0 : u[0]) == null ? void 0 : b.key, Y = (A = tt(g)) == null ? void 0 : A.map((S) => {
313
- var P;
314
- return (P = S.compData) == null ? void 0 : P[0];
315
- });
316
- F.systemType = (I = (C = Y == null ? void 0 : Y.find((S) => (S == null ? void 0 : S.key) === "type")) == null ? void 0 : C.contents) == null ? void 0 : I[0], F.name = (U = (M = Y == null ? void 0 : Y.find((S) => (S == null ? void 0 : S.key) === "name")) == null ? void 0 : M.contents) == null ? void 0 : U[0], await Mt({
317
- id: x == null ? void 0 : x.id,
318
- key: F
319
- });
320
- }
321
- } catch (L) {
322
- return Promise.reject(L);
323
- }
324
- }, Ne = (g) => g == null ? void 0 : g.map((w) => (w.contents && (w.contents = w.contents.filter((e) => {
325
- var k;
326
- return ((k = e.comp) == null ? void 0 : k.toUpperCase()) === "CALCULATOR";
327
- })), w.compData && (w.compData = Ne(w.compData)), w)), ge = (g) => {
328
- const w = Ne(g);
329
- let e = [];
330
- return w == null || w.forEach((k) => {
331
- var y;
332
- (y = k.compData) != null && y.find((i) => {
333
- var o;
334
- return (o = i == null ? void 0 : i.contents) == null ? void 0 : o.find((n) => (n == null ? void 0 : n.comp) === "calculator");
335
- }) && e.push(k);
336
- }), e;
337
- }, ye = async (g) => {
338
- var w, e, k, y;
339
- try {
340
- const i = await Lt({
341
- key: {
342
- systemKey: sessionStorage.getItem("systemKey"),
343
- pageKey: "menu",
344
- type: "structure"
345
- },
346
- value: {
347
- pageData: g
348
- }
349
- });
350
- if (((w = i == null ? void 0 : i.data) == null ? void 0 : w.code) === 200) {
351
- const o = (k = (e = g == null ? void 0 : g.compData) == null ? void 0 : e[0]) == null ? void 0 : k.contents;
352
- Pe.setRawMenus(o ?? []);
353
- }
354
- return (y = i == null ? void 0 : i.data) == null ? void 0 : y.code;
355
- } catch (i) {
356
- return Promise.reject(i);
357
- }
358
- }, Pr = async (g, w) => {
359
- var e, k, y, i;
360
- try {
361
- const o = await Mt({
362
- id: g,
363
- value: {
364
- pageData: w
365
- }
366
- });
367
- if (((e = o == null ? void 0 : o.data) == null ? void 0 : e.code) === 200) {
368
- const n = (y = (k = w == null ? void 0 : w.compData) == null ? void 0 : k[0]) == null ? void 0 : y.contents;
369
- Pe.setRawMenus(n ?? []);
370
- }
371
- return (i = o == null ? void 0 : o.data) == null ? void 0 : i.code;
372
- } catch (o) {
373
- return Promise.reject(o);
374
- }
375
- }, me = async () => {
376
- var g;
377
- try {
378
- const w = yr(), e = await Lt({
379
- key: {
380
- systemKey: sessionStorage.getItem("systemKey"),
381
- pageKey: "secret",
382
- type: "system"
383
- },
384
- value: {
385
- cryptoInfo: {
386
- publicKey: w.publicKey,
387
- privateKey: w.privateKey
388
- }
389
- }
390
- });
391
- return ((g = e == null ? void 0 : e.data) == null ? void 0 : g.code) === 200;
392
- } catch (w) {
393
- throw w;
394
- }
395
- }, Dn = async (g) => {
396
- var y, i, o, n, a, h;
397
- let w = tt(g);
398
- w = [...w, mr, _r, vr, br];
399
- const { menuExist: e, structureExist: k } = await Oe();
400
- if (sessionStorage.getItem("systemKey") && !e && !k) {
401
- const p = (y = ne(w)) == null ? void 0 : y.filter((r) => {
402
- var f, l, c;
403
- return ((f = r == null ? void 0 : r.comp) == null ? void 0 : f.toUpperCase()) !== "MENU" && ((l = r == null ? void 0 : r.comp) == null ? void 0 : l.toUpperCase()) !== "MENUTOP" && ((c = r == null ? void 0 : r.comp) == null ? void 0 : c.toUpperCase()) !== "SYSTEM";
404
- }), d = w == null ? void 0 : w.find((r) => r.comp === "Menu"), m = w == null ? void 0 : w.filter((r) => r.comp === "System");
405
- await ye(d), await pe(m), me(), await oe(p), await de((i = ge(tt(g))) == null ? void 0 : i.filter((r) => {
406
- var f;
407
- return ((f = r == null ? void 0 : r.comp) == null ? void 0 : f.toUpperCase()) !== "MENU";
408
- }));
409
- } else {
410
- const d = (n = (o = (await Et({
411
- key: {
412
- systemKey: sessionStorage.getItem("systemKey")
413
- }
414
- })).data.result) == null ? void 0 : o.filter((c) => {
415
- var u;
416
- return ((u = c == null ? void 0 : c.key) == null ? void 0 : u.layer) !== "superAdmin";
417
- })) == null ? void 0 : n.map((c) => c.id), m = d == null ? void 0 : d.map(async (c) => await Ie({
418
- id: c
419
- }));
420
- await Promise.all(m);
421
- const r = (a = ne(w)) == null ? void 0 : a.filter((c) => {
422
- var u, b, A;
423
- return ((u = c == null ? void 0 : c.comp) == null ? void 0 : u.toUpperCase()) !== "MENU" && ((b = c == null ? void 0 : c.comp) == null ? void 0 : b.toUpperCase()) !== "MENUTOP" && ((A = c == null ? void 0 : c.comp) == null ? void 0 : A.toUpperCase()) !== "SYSTEM";
424
- }), f = w == null ? void 0 : w.find((c) => c.comp === "Menu"), l = w == null ? void 0 : w.filter((c) => c.comp === "System");
425
- await ye(f), await pe(l), me(), await oe(r), await de((h = ge(tt(g))) == null ? void 0 : h.filter((c) => {
426
- var u;
427
- return ((u = c == null ? void 0 : c.comp) == null ? void 0 : u.toUpperCase()) !== "MENU";
428
- }));
429
- }
430
- }, On = Ce({
431
- name: "menu",
432
- components: {
433
- ssMenu: We,
434
- DynamicIcon: Ze
435
- },
436
- setup() {
437
- const g = ar({
438
- mode: {
439
- type: String,
440
- default: "vertical"
441
- }
442
- }), w = vt("sub-menu-more"), e = ae(), k = Be(Yt), y = vt(0), i = ir(), {
443
- rawMenus: o,
444
- activeTopMenuPath: n,
445
- isRefreshMenus: a,
446
- menuTriggerType: h,
447
- permissionSideMenus: p,
448
- platform: d,
449
- cacheInputMenu: m
450
- } = It(e), r = De(), { structureData: f } = It(r), l = vt([]), c = vt([]), u = Xt(() => g == null ? void 0 : g.mode), b = (O) => {
451
- const j = Tr.service({
452
- lock: !0,
453
- text: "Loading",
454
- background: "rgba(0, 0, 0, 0.7)"
455
- });
456
- O || j.close();
457
- }, A = (O) => {
458
- let j = [], K = [];
459
- return O == null || O.forEach((Q) => {
460
- j = C(Q, K);
461
- }), j;
462
- }, C = (O, j) => {
463
- const K = j, Q = [];
464
- O == null || O.forEach((t) => {
465
- Array.isArray(t) ? Q.push({ children: C(t, []) }) : Q.push({ title: t });
466
- });
467
- let et = Q.reduce((t, R) => (Object.entries(R).forEach(([D, _]) => {
468
- t[D] === void 0 ? _ != null && _.title ? t[D] = [_] : t[D] = _ : (Array.isArray(t[D]) || (t[D] = [{ title: t[D] }]), _ != null && _.title || Array.isArray(_) ? t[D].push(_) : t[D].push({ title: _ }));
469
- }), t), {});
470
- return et = I(tt(et)), K.push(et), Array.isArray(K) && (K == null ? void 0 : K.length) > 1 ? K : K == null ? void 0 : K[0];
471
- }, I = (O) => {
472
- var j, K, Q;
473
- return Array.isArray(O == null ? void 0 : O.title) && ((j = O == null ? void 0 : O.title) == null ? void 0 : j.length) === ((Q = (K = O == null ? void 0 : O.title) == null ? void 0 : K.filter((et) => et.title)) == null ? void 0 : Q.length) ? O == null ? void 0 : O.title : Array.isArray(O == null ? void 0 : O.children) ? M(O) : O;
474
- }, M = (O) => {
475
- var K;
476
- const j = O;
477
- return j.children = (K = j.children) == null ? void 0 : K.map((Q) => {
478
- var et;
479
- return (et = Q == null ? void 0 : Q.title) != null && et.children ? Q == null ? void 0 : Q.title : Q;
480
- }), j;
481
- }, U = vt({}), L = (O) => O == null ? void 0 : O.map((j) => j.children && j.children.length > 0 ? {
482
- ...j,
483
- // 水平菜单仅显示一层
484
- children: j.level === 0 ? [] : j.children ?? [],
485
- childMenus: L(j.children)
486
- } : j), x = (O, j) => {
487
- var K, Q;
488
- return j === 0 ? ((Q = (K = c.value) == null ? void 0 : K.find((et) => {
489
- var t;
490
- return (t = O.title) == null ? void 0 : t.includes(et.value);
491
- })) == null ? void 0 : Q.value) ?? "wenjianjia" : j === 1 ? "wenjianjia" : "wenjian";
492
- }, F = (O) => {
493
- var j, K;
494
- return (K = (j = c.value) == null ? void 0 : j.find((Q) => {
495
- var et;
496
- return (et = O.title) == null ? void 0 : et.includes(Q.value);
497
- })) == null ? void 0 : K.value;
498
- }, Y = (O, j = "", K = 0) => {
499
- var R;
500
- let Q, et = tt(O);
501
- const t = (R = f.value) == null ? void 0 : R.map((D) => {
502
- var _;
503
- return (_ = D == null ? void 0 : D.key) == null ? void 0 : _.pageKey;
504
- });
505
- return Array.isArray(et) || (et = [et]), Q = et == null ? void 0 : et.map((D) => {
506
- const _ = j ? `${j}/${D.title}` : D.title, v = {
507
- ...D,
508
- path: _,
509
- level: K,
510
- show: !0,
511
- // icon: Icon[`${level}`],
512
- icon: d.value === "client" ? x(D, K) : F(D),
513
- carryData: t == null ? void 0 : t.includes(_),
514
- //便于角色授权菜单那里给叶子节点添加按钮节点
515
- isPenultimate: !D.children,
516
- // 便于自定义新增菜单
517
- children: [],
518
- childMenus: []
519
- };
520
- return D.children && D.children.length > 0 && (v.children = Y(D.children, _, K + 1)), v;
521
- }), Q;
522
- }, S = Xt(() => {
523
- let O = tt(l.value);
524
- if (O = [...O, ...p.value], (O == null ? void 0 : O.length) === 0)
525
- return i.push("/"), [];
526
- const j = G(O, rt.value);
527
- j.isFlag || (O = j == null ? void 0 : j.data);
528
- const K = L(O);
529
- return e.setMenus(K), K;
530
- }), P = async (O) => {
531
- var Q, et, t;
532
- let j;
533
- const K = await Et({
534
- key: {
535
- type: "menuConfigData",
536
- systemKey: sessionStorage.getItem("systemKey"),
537
- pageKey: "/平台管理/菜单管理/" + (O == null ? void 0 : O.path),
538
- tableId: ""
539
- }
540
- });
541
- return ((Q = K == null ? void 0 : K.data) == null ? void 0 : Q.code) === 200 && (j = (t = (et = K.data) == null ? void 0 : et.result) == null ? void 0 : t.map((R) => {
542
- var D;
543
- return {
544
- id: R == null ? void 0 : R.id,
545
- ...(D = R == null ? void 0 : R.value) == null ? void 0 : D.tableData
546
- };
547
- })), (j == null ? void 0 : j.length) > 0 ? j : null;
548
- }, s = async (O, j) => {
549
- var K, Q, et;
550
- for (const t of j || [])
551
- if (((K = t == null ? void 0 : t.menuConfig) == null ? void 0 : K.path) === O.path)
552
- return {
553
- ...O,
554
- config: await P(O),
555
- icon: (et = (Q = t == null ? void 0 : t.data) == null ? void 0 : Q.menuConfig) == null ? void 0 : et.menuIcon
556
- };
557
- return O;
558
- }, N = vt(null), $ = (O) => {
559
- var j, K;
560
- if (O != null && O.config)
561
- return O == null ? void 0 : O.config;
562
- {
563
- const Q = (K = (j = N.value) == null ? void 0 : j.config) == null ? void 0 : K.filter((et) => et == null ? void 0 : et.allowInherit);
564
- return (Q == null ? void 0 : Q.length) === 0 ? null : Q;
565
- }
566
- }, Z = async (O) => await Promise.all(
567
- O == null ? void 0 : O.map(async (j) => {
568
- let K = await s(j, U.value);
569
- return console.log(4560, N.value), K != null && K.config ? N.value = K : N.value = null, K != null && K.childMenus && (K == null ? void 0 : K.childMenus.length) > 0 && (K = {
570
- ...K,
571
- config: N.value ? K == null ? void 0 : K.config : $(K),
572
- children: await Z(j == null ? void 0 : j.childMenus),
573
- childMenus: await Z(j == null ? void 0 : j.childMenus)
574
- }), {
575
- ...K,
576
- config: N.value ? K == null ? void 0 : K.config : $(K)
577
- };
578
- })
579
- ), st = async (O) => {
580
- var K, Q;
581
- const j = await Et({
582
- key: {
583
- systemKey: sessionStorage.getItem("systemKey"),
584
- // pageKey: '平台管理/菜单管理/' + menu?.path,
585
- type: "structure",
586
- rootNodePath: O == null ? void 0 : O.path,
587
- structureBelong: "dialogConfig",
588
- parentTable: "",
589
- version: 1
590
- }
591
- });
592
- if (((K = j == null ? void 0 : j.data) == null ? void 0 : K.code) === 200) {
593
- N.value = null;
594
- const et = tt(j.data.result);
595
- return U.value = (Q = tt(et)) == null ? void 0 : Q.map((R) => {
596
- var D;
597
- return (D = R == null ? void 0 : R.value) == null ? void 0 : D.pageData;
598
- }), console.log(7778, et), (et == null ? void 0 : et.length) === 0 ? et : await Z(O.childMenus);
599
- }
600
- }, H = async (O) => {
601
- var j, K, Q;
602
- if (e.setMenuTriggerType("click"), k.setRouteToChildPath(""), e.setActiveTopMenuPath(O == null ? void 0 : O.path), e.setActiveMainMenu(O), O != null && O.childMenus && ((j = O == null ? void 0 : O.childMenus) == null ? void 0 : j.length) > 0) {
603
- const et = (Q = (K = O == null ? void 0 : O.childMenus) == null ? void 0 : K[0]) == null ? void 0 : Q.path;
604
- e.setActiveMenuPath(et);
605
- const t = await st(O);
606
- console.log(666, t);
607
- const R = (t == null ? void 0 : t.length) === 0 ? O == null ? void 0 : O.childMenus : t;
608
- e.setAsideMenus(R);
609
- } else
610
- e.setAsideMenus([]);
611
- O.isRouter ? i.push(O.path) : i.push("/");
612
- }, at = (O) => {
613
- k.setRouteToChildPath(""), h.value === "click" ? y.value === 1 ? e.setActiveMenuPath(sessionStorage.getItem("pageKey")) : O !== w.value && e.setActiveMenuPath(O) : e.setMenuTriggerType("click"), O != null && O.startsWith("/") ? i.push(O) : i.push("/"), y.value++;
614
- }, B = (O) => {
615
- O !== w.value && e.setActiveMenuPath(O);
616
- }, E = (O) => {
617
- const j = document.documentElement;
618
- O == null || O.forEach((K) => {
619
- j.style.setProperty(K.name, K.value);
620
- });
621
- };
622
- sr(() => {
623
- y.value = 1, c.value = or();
624
- });
625
- const rt = Xt(() => {
626
- const O = sessionStorage.getItem("authority");
627
- return O ? JSON.parse(O) : [];
628
- });
629
- Nt(() => d.value, (O) => {
630
- O === "browser" ? (E(He), E(Ge)) : O === "client" && (E(Je), E($e));
631
- }, { immediate: !0 }), Nt(() => o.value, (O) => {
632
- if (O) {
633
- const j = O;
634
- l.value = Y(A(j));
635
- } else
636
- e.setActiveMenuPath("");
637
- }, {
638
- immediate: !0
639
- });
640
- const V = (O, j) => {
641
- function K(Q) {
642
- Q == null || Q.forEach((et) => {
643
- et.show = j == null ? void 0 : j.some((t) => t == null ? void 0 : t.includes(et.path)), et.children && K(et.children);
644
- });
645
- }
646
- return K(O), O;
647
- }, G = (O, j) => {
648
- if (Array.isArray(j)) {
649
- const K = Array.from(new Set(j == null ? void 0 : j.map((Q) => Q.substring(0, Q.lastIndexOf("/")))));
650
- return {
651
- data: V(O, K),
652
- isFlag: !1
653
- };
654
- } else
655
- return {
656
- isFlag: (j == null ? void 0 : j.toUpperCase()) === "SUPERADMIN"
657
- };
658
- }, ut = (O) => {
659
- var K;
660
- const j = [O == null ? void 0 : O.title];
661
- if (O != null && O.children && ((K = O == null ? void 0 : O.children) == null ? void 0 : K.length) > 0) {
662
- const Q = O.children.map((et) => ut(et));
663
- j.push(...Q);
664
- }
665
- return j;
666
- }, lt = (O, j, K, Q) => O.map((et) => {
667
- var t, R;
668
- if (et.path === K) {
669
- const D = { ...et };
670
- return console.log(7771, D, Q), Q === "create" ? D.children.push(j) : Q === "update" ? D.children = (t = D.children) == null ? void 0 : t.map((_) => (_ == null ? void 0 : _.path) === (j == null ? void 0 : j.path) ? j : _) : Q === "delete" && (D.children = (R = D.children) == null ? void 0 : R.filter((_) => (_ == null ? void 0 : _.path) !== (j == null ? void 0 : j.path))), D;
671
- } else
672
- return {
673
- ...et,
674
- children: lt(et.children, j, K, Q)
675
- // 递归更新子节点
676
- };
677
- }), ot = async (O) => {
678
- var K, Q, et, t, R, D;
679
- const j = (K = f.value) == null ? void 0 : K.find((_) => {
680
- var v;
681
- return ((v = _ == null ? void 0 : _.key) == null ? void 0 : v.pageKey) === "menu";
682
- });
683
- if (j) {
684
- const _ = {
685
- ...(Q = j.value) == null ? void 0 : Q.pageData,
686
- compData: (R = (t = (et = j.value) == null ? void 0 : et.pageData) == null ? void 0 : t.compData) == null ? void 0 : R.map((z) => z.key === "menuContents" ? {
687
- ...z,
688
- contents: O
689
- } : z)
690
- };
691
- await Pr(j == null ? void 0 : j.id, _);
692
- const v = (D = S.value) == null ? void 0 : D.find((z) => (z == null ? void 0 : z.path) === n.value);
693
- await H(v), b(!1), xt.success("响应成功");
694
- }
695
- };
696
- return Nt(() => a.value, async (O) => {
697
- var j, K, Q, et, t, R, D;
698
- if (O)
699
- try {
700
- const _ = (Q = (K = (j = m.value) == null ? void 0 : j.data) == null ? void 0 : K.path) == null ? void 0 : Q.split("/").slice(0, -1).join("/"), v = lt(l.value, (et = m.value) == null ? void 0 : et.data, _, (t = m.value) == null ? void 0 : t.type), z = (R = v == null ? void 0 : v.filter((W) => W.path !== "系统管理" && W.path !== "平台管理")) == null ? void 0 : R.map((W) => ut(W));
701
- console.log(777, v, z, (D = m.value) == null ? void 0 : D.data), b(!0), await ot(z);
702
- } catch (_) {
703
- throw xt.error(_), new Error(_);
704
- }
705
- }, { immediate: !0 }), {
706
- mode: u,
707
- renderMenuList: S,
708
- clickMenu: H,
709
- openMenu: at,
710
- closeMenu: B,
711
- changeMenuStyle: E
712
- };
713
- }
714
- });
715
- function Wt(g) {
716
- throw new Error('Could not dynamically require "' + g + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
717
- }
718
- var Qt = { exports: {} };
719
- /*!
720
-
721
- JSZip v3.10.1 - A JavaScript class for generating and reading zip files
722
- <http://stuartk.com/jszip>
723
-
724
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
725
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
726
-
727
- JSZip uses the library pako released under the MIT license :
728
- https://github.com/nodeca/pako/blob/main/LICENSE
729
- */
730
- var _e;
731
- function Nr() {
732
- return _e || (_e = 1, function(g, w) {
733
- (function(e) {
734
- g.exports = e();
735
- })(function() {
736
- return function e(k, y, i) {
737
- function o(h, p) {
738
- if (!y[h]) {
739
- if (!k[h]) {
740
- var d = typeof Wt == "function" && Wt;
741
- if (!p && d) return d(h, !0);
742
- if (n) return n(h, !0);
743
- var m = new Error("Cannot find module '" + h + "'");
744
- throw m.code = "MODULE_NOT_FOUND", m;
745
- }
746
- var r = y[h] = { exports: {} };
747
- k[h][0].call(r.exports, function(f) {
748
- var l = k[h][1][f];
749
- return o(l || f);
750
- }, r, r.exports, e, k, y, i);
751
- }
752
- return y[h].exports;
753
- }
754
- for (var n = typeof Wt == "function" && Wt, a = 0; a < i.length; a++) o(i[a]);
755
- return o;
756
- }({ 1: [function(e, k, y) {
757
- var i = e("./utils"), o = e("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
758
- y.encode = function(a) {
759
- for (var h, p, d, m, r, f, l, c = [], u = 0, b = a.length, A = b, C = i.getTypeOf(a) !== "string"; u < a.length; ) A = b - u, d = C ? (h = a[u++], p = u < b ? a[u++] : 0, u < b ? a[u++] : 0) : (h = a.charCodeAt(u++), p = u < b ? a.charCodeAt(u++) : 0, u < b ? a.charCodeAt(u++) : 0), m = h >> 2, r = (3 & h) << 4 | p >> 4, f = 1 < A ? (15 & p) << 2 | d >> 6 : 64, l = 2 < A ? 63 & d : 64, c.push(n.charAt(m) + n.charAt(r) + n.charAt(f) + n.charAt(l));
760
- return c.join("");
761
- }, y.decode = function(a) {
762
- var h, p, d, m, r, f, l = 0, c = 0, u = "data:";
763
- if (a.substr(0, u.length) === u) throw new Error("Invalid base64 input, it looks like a data url.");
764
- var b, A = 3 * (a = a.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
765
- if (a.charAt(a.length - 1) === n.charAt(64) && A--, a.charAt(a.length - 2) === n.charAt(64) && A--, A % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
766
- for (b = o.uint8array ? new Uint8Array(0 | A) : new Array(0 | A); l < a.length; ) h = n.indexOf(a.charAt(l++)) << 2 | (m = n.indexOf(a.charAt(l++))) >> 4, p = (15 & m) << 4 | (r = n.indexOf(a.charAt(l++))) >> 2, d = (3 & r) << 6 | (f = n.indexOf(a.charAt(l++))), b[c++] = h, r !== 64 && (b[c++] = p), f !== 64 && (b[c++] = d);
767
- return b;
768
- };
769
- }, { "./support": 30, "./utils": 32 }], 2: [function(e, k, y) {
770
- var i = e("./external"), o = e("./stream/DataWorker"), n = e("./stream/Crc32Probe"), a = e("./stream/DataLengthProbe");
771
- function h(p, d, m, r, f) {
772
- this.compressedSize = p, this.uncompressedSize = d, this.crc32 = m, this.compression = r, this.compressedContent = f;
773
- }
774
- h.prototype = { getContentWorker: function() {
775
- var p = new o(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")), d = this;
776
- return p.on("end", function() {
777
- if (this.streamInfo.data_length !== d.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
778
- }), p;
779
- }, getCompressedWorker: function() {
780
- return new o(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
781
- } }, h.createWorkerFrom = function(p, d, m) {
782
- return p.pipe(new n()).pipe(new a("uncompressedSize")).pipe(d.compressWorker(m)).pipe(new a("compressedSize")).withStreamInfo("compression", d);
783
- }, k.exports = h;
784
- }, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(e, k, y) {
785
- var i = e("./stream/GenericWorker");
786
- y.STORE = { magic: "\0\0", compressWorker: function() {
787
- return new i("STORE compression");
788
- }, uncompressWorker: function() {
789
- return new i("STORE decompression");
790
- } }, y.DEFLATE = e("./flate");
791
- }, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(e, k, y) {
792
- var i = e("./utils"), o = function() {
793
- for (var n, a = [], h = 0; h < 256; h++) {
794
- n = h;
795
- for (var p = 0; p < 8; p++) n = 1 & n ? 3988292384 ^ n >>> 1 : n >>> 1;
796
- a[h] = n;
797
- }
798
- return a;
799
- }();
800
- k.exports = function(n, a) {
801
- return n !== void 0 && n.length ? i.getTypeOf(n) !== "string" ? function(h, p, d, m) {
802
- var r = o, f = m + d;
803
- h ^= -1;
804
- for (var l = m; l < f; l++) h = h >>> 8 ^ r[255 & (h ^ p[l])];
805
- return -1 ^ h;
806
- }(0 | a, n, n.length, 0) : function(h, p, d, m) {
807
- var r = o, f = m + d;
808
- h ^= -1;
809
- for (var l = m; l < f; l++) h = h >>> 8 ^ r[255 & (h ^ p.charCodeAt(l))];
810
- return -1 ^ h;
811
- }(0 | a, n, n.length, 0) : 0;
812
- };
813
- }, { "./utils": 32 }], 5: [function(e, k, y) {
814
- y.base64 = !1, y.binary = !1, y.dir = !1, y.createFolders = !0, y.date = null, y.compression = null, y.compressionOptions = null, y.comment = null, y.unixPermissions = null, y.dosPermissions = null;
815
- }, {}], 6: [function(e, k, y) {
816
- var i = null;
817
- i = typeof Promise < "u" ? Promise : e("lie"), k.exports = { Promise: i };
818
- }, { lie: 37 }], 7: [function(e, k, y) {
819
- var i = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = e("pako"), n = e("./utils"), a = e("./stream/GenericWorker"), h = i ? "uint8array" : "array";
820
- function p(d, m) {
821
- a.call(this, "FlateWorker/" + d), this._pako = null, this._pakoAction = d, this._pakoOptions = m, this.meta = {};
822
- }
823
- y.magic = "\b\0", n.inherits(p, a), p.prototype.processChunk = function(d) {
824
- this.meta = d.meta, this._pako === null && this._createPako(), this._pako.push(n.transformTo(h, d.data), !1);
825
- }, p.prototype.flush = function() {
826
- a.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
827
- }, p.prototype.cleanUp = function() {
828
- a.prototype.cleanUp.call(this), this._pako = null;
829
- }, p.prototype._createPako = function() {
830
- this._pako = new o[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
831
- var d = this;
832
- this._pako.onData = function(m) {
833
- d.push({ data: m, meta: d.meta });
834
- };
835
- }, y.compressWorker = function(d) {
836
- return new p("Deflate", d);
837
- }, y.uncompressWorker = function() {
838
- return new p("Inflate", {});
839
- };
840
- }, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(e, k, y) {
841
- function i(r, f) {
842
- var l, c = "";
843
- for (l = 0; l < f; l++) c += String.fromCharCode(255 & r), r >>>= 8;
844
- return c;
845
- }
846
- function o(r, f, l, c, u, b) {
847
- var A, C, I = r.file, M = r.compression, U = b !== h.utf8encode, L = n.transformTo("string", b(I.name)), x = n.transformTo("string", h.utf8encode(I.name)), F = I.comment, Y = n.transformTo("string", b(F)), S = n.transformTo("string", h.utf8encode(F)), P = x.length !== I.name.length, s = S.length !== F.length, N = "", $ = "", Z = "", st = I.dir, H = I.date, at = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
848
- f && !l || (at.crc32 = r.crc32, at.compressedSize = r.compressedSize, at.uncompressedSize = r.uncompressedSize);
849
- var B = 0;
850
- f && (B |= 8), U || !P && !s || (B |= 2048);
851
- var E = 0, rt = 0;
852
- st && (E |= 16), u === "UNIX" ? (rt = 798, E |= function(G, ut) {
853
- var lt = G;
854
- return G || (lt = ut ? 16893 : 33204), (65535 & lt) << 16;
855
- }(I.unixPermissions, st)) : (rt = 20, E |= function(G) {
856
- return 63 & (G || 0);
857
- }(I.dosPermissions)), A = H.getUTCHours(), A <<= 6, A |= H.getUTCMinutes(), A <<= 5, A |= H.getUTCSeconds() / 2, C = H.getUTCFullYear() - 1980, C <<= 4, C |= H.getUTCMonth() + 1, C <<= 5, C |= H.getUTCDate(), P && ($ = i(1, 1) + i(p(L), 4) + x, N += "up" + i($.length, 2) + $), s && (Z = i(1, 1) + i(p(Y), 4) + S, N += "uc" + i(Z.length, 2) + Z);
858
- var V = "";
859
- return V += `
860
- \0`, V += i(B, 2), V += M.magic, V += i(A, 2), V += i(C, 2), V += i(at.crc32, 4), V += i(at.compressedSize, 4), V += i(at.uncompressedSize, 4), V += i(L.length, 2), V += i(N.length, 2), { fileRecord: d.LOCAL_FILE_HEADER + V + L + N, dirRecord: d.CENTRAL_FILE_HEADER + i(rt, 2) + V + i(Y.length, 2) + "\0\0\0\0" + i(E, 4) + i(c, 4) + L + N + Y };
861
- }
862
- var n = e("../utils"), a = e("../stream/GenericWorker"), h = e("../utf8"), p = e("../crc32"), d = e("../signature");
863
- function m(r, f, l, c) {
864
- a.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = f, this.zipPlatform = l, this.encodeFileName = c, this.streamFiles = r, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
865
- }
866
- n.inherits(m, a), m.prototype.push = function(r) {
867
- var f = r.meta.percent || 0, l = this.entriesCount, c = this._sources.length;
868
- this.accumulate ? this.contentBuffer.push(r) : (this.bytesWritten += r.data.length, a.prototype.push.call(this, { data: r.data, meta: { currentFile: this.currentFile, percent: l ? (f + 100 * (l - c - 1)) / l : 100 } }));
869
- }, m.prototype.openedSource = function(r) {
870
- this.currentSourceOffset = this.bytesWritten, this.currentFile = r.file.name;
871
- var f = this.streamFiles && !r.file.dir;
872
- if (f) {
873
- var l = o(r, f, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
874
- this.push({ data: l.fileRecord, meta: { percent: 0 } });
875
- } else this.accumulate = !0;
876
- }, m.prototype.closedSource = function(r) {
877
- this.accumulate = !1;
878
- var f = this.streamFiles && !r.file.dir, l = o(r, f, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
879
- if (this.dirRecords.push(l.dirRecord), f) this.push({ data: function(c) {
880
- return d.DATA_DESCRIPTOR + i(c.crc32, 4) + i(c.compressedSize, 4) + i(c.uncompressedSize, 4);
881
- }(r), meta: { percent: 100 } });
882
- else for (this.push({ data: l.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
883
- this.currentFile = null;
884
- }, m.prototype.flush = function() {
885
- for (var r = this.bytesWritten, f = 0; f < this.dirRecords.length; f++) this.push({ data: this.dirRecords[f], meta: { percent: 100 } });
886
- var l = this.bytesWritten - r, c = function(u, b, A, C, I) {
887
- var M = n.transformTo("string", I(C));
888
- return d.CENTRAL_DIRECTORY_END + "\0\0\0\0" + i(u, 2) + i(u, 2) + i(b, 4) + i(A, 4) + i(M.length, 2) + M;
889
- }(this.dirRecords.length, l, r, this.zipComment, this.encodeFileName);
890
- this.push({ data: c, meta: { percent: 100 } });
891
- }, m.prototype.prepareNextSource = function() {
892
- this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
893
- }, m.prototype.registerPrevious = function(r) {
894
- this._sources.push(r);
895
- var f = this;
896
- return r.on("data", function(l) {
897
- f.processChunk(l);
898
- }), r.on("end", function() {
899
- f.closedSource(f.previous.streamInfo), f._sources.length ? f.prepareNextSource() : f.end();
900
- }), r.on("error", function(l) {
901
- f.error(l);
902
- }), this;
903
- }, m.prototype.resume = function() {
904
- return !!a.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
905
- }, m.prototype.error = function(r) {
906
- var f = this._sources;
907
- if (!a.prototype.error.call(this, r)) return !1;
908
- for (var l = 0; l < f.length; l++) try {
909
- f[l].error(r);
910
- } catch {
911
- }
912
- return !0;
913
- }, m.prototype.lock = function() {
914
- a.prototype.lock.call(this);
915
- for (var r = this._sources, f = 0; f < r.length; f++) r[f].lock();
916
- }, k.exports = m;
917
- }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, k, y) {
918
- var i = e("../compressions"), o = e("./ZipFileWorker");
919
- y.generateWorker = function(n, a, h) {
920
- var p = new o(a.streamFiles, h, a.platform, a.encodeFileName), d = 0;
921
- try {
922
- n.forEach(function(m, r) {
923
- d++;
924
- var f = function(b, A) {
925
- var C = b || A, I = i[C];
926
- if (!I) throw new Error(C + " is not a valid compression method !");
927
- return I;
928
- }(r.options.compression, a.compression), l = r.options.compressionOptions || a.compressionOptions || {}, c = r.dir, u = r.date;
929
- r._compressWorker(f, l).withStreamInfo("file", { name: m, dir: c, date: u, comment: r.comment || "", unixPermissions: r.unixPermissions, dosPermissions: r.dosPermissions }).pipe(p);
930
- }), p.entriesCount = d;
931
- } catch (m) {
932
- p.error(m);
933
- }
934
- return p;
935
- };
936
- }, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(e, k, y) {
937
- function i() {
938
- if (!(this instanceof i)) return new i();
939
- if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
940
- this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
941
- var o = new i();
942
- for (var n in this) typeof this[n] != "function" && (o[n] = this[n]);
943
- return o;
944
- };
945
- }
946
- (i.prototype = e("./object")).loadAsync = e("./load"), i.support = e("./support"), i.defaults = e("./defaults"), i.version = "3.10.1", i.loadAsync = function(o, n) {
947
- return new i().loadAsync(o, n);
948
- }, i.external = e("./external"), k.exports = i;
949
- }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, k, y) {
950
- var i = e("./utils"), o = e("./external"), n = e("./utf8"), a = e("./zipEntries"), h = e("./stream/Crc32Probe"), p = e("./nodejsUtils");
951
- function d(m) {
952
- return new o.Promise(function(r, f) {
953
- var l = m.decompressed.getContentWorker().pipe(new h());
954
- l.on("error", function(c) {
955
- f(c);
956
- }).on("end", function() {
957
- l.streamInfo.crc32 !== m.decompressed.crc32 ? f(new Error("Corrupted zip : CRC32 mismatch")) : r();
958
- }).resume();
959
- });
960
- }
961
- k.exports = function(m, r) {
962
- var f = this;
963
- return r = i.extend(r || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), p.isNode && p.isStream(m) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : i.prepareContent("the loaded zip file", m, !0, r.optimizedBinaryString, r.base64).then(function(l) {
964
- var c = new a(r);
965
- return c.load(l), c;
966
- }).then(function(l) {
967
- var c = [o.Promise.resolve(l)], u = l.files;
968
- if (r.checkCRC32) for (var b = 0; b < u.length; b++) c.push(d(u[b]));
969
- return o.Promise.all(c);
970
- }).then(function(l) {
971
- for (var c = l.shift(), u = c.files, b = 0; b < u.length; b++) {
972
- var A = u[b], C = A.fileNameStr, I = i.resolve(A.fileNameStr);
973
- f.file(I, A.decompressed, { binary: !0, optimizedBinaryString: !0, date: A.date, dir: A.dir, comment: A.fileCommentStr.length ? A.fileCommentStr : null, unixPermissions: A.unixPermissions, dosPermissions: A.dosPermissions, createFolders: r.createFolders }), A.dir || (f.file(I).unsafeOriginalName = C);
974
- }
975
- return c.zipComment.length && (f.comment = c.zipComment), f;
976
- });
977
- };
978
- }, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(e, k, y) {
979
- var i = e("../utils"), o = e("../stream/GenericWorker");
980
- function n(a, h) {
981
- o.call(this, "Nodejs stream input adapter for " + a), this._upstreamEnded = !1, this._bindStream(h);
982
- }
983
- i.inherits(n, o), n.prototype._bindStream = function(a) {
984
- var h = this;
985
- (this._stream = a).pause(), a.on("data", function(p) {
986
- h.push({ data: p, meta: { percent: 0 } });
987
- }).on("error", function(p) {
988
- h.isPaused ? this.generatedError = p : h.error(p);
989
- }).on("end", function() {
990
- h.isPaused ? h._upstreamEnded = !0 : h.end();
991
- });
992
- }, n.prototype.pause = function() {
993
- return !!o.prototype.pause.call(this) && (this._stream.pause(), !0);
994
- }, n.prototype.resume = function() {
995
- return !!o.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
996
- }, k.exports = n;
997
- }, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(e, k, y) {
998
- var i = e("readable-stream").Readable;
999
- function o(n, a, h) {
1000
- i.call(this, a), this._helper = n;
1001
- var p = this;
1002
- n.on("data", function(d, m) {
1003
- p.push(d) || p._helper.pause(), h && h(m);
1004
- }).on("error", function(d) {
1005
- p.emit("error", d);
1006
- }).on("end", function() {
1007
- p.push(null);
1008
- });
1009
- }
1010
- e("../utils").inherits(o, i), o.prototype._read = function() {
1011
- this._helper.resume();
1012
- }, k.exports = o;
1013
- }, { "../utils": 32, "readable-stream": 16 }], 14: [function(e, k, y) {
1014
- k.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(i, o) {
1015
- if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(i, o);
1016
- if (typeof i == "number") throw new Error('The "data" argument must not be a number');
1017
- return new Buffer(i, o);
1018
- }, allocBuffer: function(i) {
1019
- if (Buffer.alloc) return Buffer.alloc(i);
1020
- var o = new Buffer(i);
1021
- return o.fill(0), o;
1022
- }, isBuffer: function(i) {
1023
- return Buffer.isBuffer(i);
1024
- }, isStream: function(i) {
1025
- return i && typeof i.on == "function" && typeof i.pause == "function" && typeof i.resume == "function";
1026
- } };
1027
- }, {}], 15: [function(e, k, y) {
1028
- function i(I, M, U) {
1029
- var L, x = n.getTypeOf(M), F = n.extend(U || {}, p);
1030
- F.date = F.date || /* @__PURE__ */ new Date(), F.compression !== null && (F.compression = F.compression.toUpperCase()), typeof F.unixPermissions == "string" && (F.unixPermissions = parseInt(F.unixPermissions, 8)), F.unixPermissions && 16384 & F.unixPermissions && (F.dir = !0), F.dosPermissions && 16 & F.dosPermissions && (F.dir = !0), F.dir && (I = u(I)), F.createFolders && (L = c(I)) && b.call(this, L, !0);
1031
- var Y = x === "string" && F.binary === !1 && F.base64 === !1;
1032
- U && U.binary !== void 0 || (F.binary = !Y), (M instanceof d && M.uncompressedSize === 0 || F.dir || !M || M.length === 0) && (F.base64 = !1, F.binary = !0, M = "", F.compression = "STORE", x = "string");
1033
- var S = null;
1034
- S = M instanceof d || M instanceof a ? M : f.isNode && f.isStream(M) ? new l(I, M) : n.prepareContent(I, M, F.binary, F.optimizedBinaryString, F.base64);
1035
- var P = new m(I, S, F);
1036
- this.files[I] = P;
1037
- }
1038
- var o = e("./utf8"), n = e("./utils"), a = e("./stream/GenericWorker"), h = e("./stream/StreamHelper"), p = e("./defaults"), d = e("./compressedObject"), m = e("./zipObject"), r = e("./generate"), f = e("./nodejsUtils"), l = e("./nodejs/NodejsStreamInputAdapter"), c = function(I) {
1039
- I.slice(-1) === "/" && (I = I.substring(0, I.length - 1));
1040
- var M = I.lastIndexOf("/");
1041
- return 0 < M ? I.substring(0, M) : "";
1042
- }, u = function(I) {
1043
- return I.slice(-1) !== "/" && (I += "/"), I;
1044
- }, b = function(I, M) {
1045
- return M = M !== void 0 ? M : p.createFolders, I = u(I), this.files[I] || i.call(this, I, null, { dir: !0, createFolders: M }), this.files[I];
1046
- };
1047
- function A(I) {
1048
- return Object.prototype.toString.call(I) === "[object RegExp]";
1049
- }
1050
- var C = { load: function() {
1051
- throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1052
- }, forEach: function(I) {
1053
- var M, U, L;
1054
- for (M in this.files) L = this.files[M], (U = M.slice(this.root.length, M.length)) && M.slice(0, this.root.length) === this.root && I(U, L);
1055
- }, filter: function(I) {
1056
- var M = [];
1057
- return this.forEach(function(U, L) {
1058
- I(U, L) && M.push(L);
1059
- }), M;
1060
- }, file: function(I, M, U) {
1061
- if (arguments.length !== 1) return I = this.root + I, i.call(this, I, M, U), this;
1062
- if (A(I)) {
1063
- var L = I;
1064
- return this.filter(function(F, Y) {
1065
- return !Y.dir && L.test(F);
1066
- });
1067
- }
1068
- var x = this.files[this.root + I];
1069
- return x && !x.dir ? x : null;
1070
- }, folder: function(I) {
1071
- if (!I) return this;
1072
- if (A(I)) return this.filter(function(x, F) {
1073
- return F.dir && I.test(x);
1074
- });
1075
- var M = this.root + I, U = b.call(this, M), L = this.clone();
1076
- return L.root = U.name, L;
1077
- }, remove: function(I) {
1078
- I = this.root + I;
1079
- var M = this.files[I];
1080
- if (M || (I.slice(-1) !== "/" && (I += "/"), M = this.files[I]), M && !M.dir) delete this.files[I];
1081
- else for (var U = this.filter(function(x, F) {
1082
- return F.name.slice(0, I.length) === I;
1083
- }), L = 0; L < U.length; L++) delete this.files[U[L].name];
1084
- return this;
1085
- }, generate: function() {
1086
- throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1087
- }, generateInternalStream: function(I) {
1088
- var M, U = {};
1089
- try {
1090
- if ((U = n.extend(I || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: o.utf8encode })).type = U.type.toLowerCase(), U.compression = U.compression.toUpperCase(), U.type === "binarystring" && (U.type = "string"), !U.type) throw new Error("No output type specified.");
1091
- n.checkSupport(U.type), U.platform !== "darwin" && U.platform !== "freebsd" && U.platform !== "linux" && U.platform !== "sunos" || (U.platform = "UNIX"), U.platform === "win32" && (U.platform = "DOS");
1092
- var L = U.comment || this.comment || "";
1093
- M = r.generateWorker(this, U, L);
1094
- } catch (x) {
1095
- (M = new a("error")).error(x);
1096
- }
1097
- return new h(M, U.type || "string", U.mimeType);
1098
- }, generateAsync: function(I, M) {
1099
- return this.generateInternalStream(I).accumulate(M);
1100
- }, generateNodeStream: function(I, M) {
1101
- return (I = I || {}).type || (I.type = "nodebuffer"), this.generateInternalStream(I).toNodejsStream(M);
1102
- } };
1103
- k.exports = C;
1104
- }, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(e, k, y) {
1105
- k.exports = e("stream");
1106
- }, { stream: void 0 }], 17: [function(e, k, y) {
1107
- var i = e("./DataReader");
1108
- function o(n) {
1109
- i.call(this, n);
1110
- for (var a = 0; a < this.data.length; a++) n[a] = 255 & n[a];
1111
- }
1112
- e("../utils").inherits(o, i), o.prototype.byteAt = function(n) {
1113
- return this.data[this.zero + n];
1114
- }, o.prototype.lastIndexOfSignature = function(n) {
1115
- for (var a = n.charCodeAt(0), h = n.charCodeAt(1), p = n.charCodeAt(2), d = n.charCodeAt(3), m = this.length - 4; 0 <= m; --m) if (this.data[m] === a && this.data[m + 1] === h && this.data[m + 2] === p && this.data[m + 3] === d) return m - this.zero;
1116
- return -1;
1117
- }, o.prototype.readAndCheckSignature = function(n) {
1118
- var a = n.charCodeAt(0), h = n.charCodeAt(1), p = n.charCodeAt(2), d = n.charCodeAt(3), m = this.readData(4);
1119
- return a === m[0] && h === m[1] && p === m[2] && d === m[3];
1120
- }, o.prototype.readData = function(n) {
1121
- if (this.checkOffset(n), n === 0) return [];
1122
- var a = this.data.slice(this.zero + this.index, this.zero + this.index + n);
1123
- return this.index += n, a;
1124
- }, k.exports = o;
1125
- }, { "../utils": 32, "./DataReader": 18 }], 18: [function(e, k, y) {
1126
- var i = e("../utils");
1127
- function o(n) {
1128
- this.data = n, this.length = n.length, this.index = 0, this.zero = 0;
1129
- }
1130
- o.prototype = { checkOffset: function(n) {
1131
- this.checkIndex(this.index + n);
1132
- }, checkIndex: function(n) {
1133
- if (this.length < this.zero + n || n < 0) throw new Error("End of data reached (data length = " + this.length + ", asked index = " + n + "). Corrupted zip ?");
1134
- }, setIndex: function(n) {
1135
- this.checkIndex(n), this.index = n;
1136
- }, skip: function(n) {
1137
- this.setIndex(this.index + n);
1138
- }, byteAt: function() {
1139
- }, readInt: function(n) {
1140
- var a, h = 0;
1141
- for (this.checkOffset(n), a = this.index + n - 1; a >= this.index; a--) h = (h << 8) + this.byteAt(a);
1142
- return this.index += n, h;
1143
- }, readString: function(n) {
1144
- return i.transformTo("string", this.readData(n));
1145
- }, readData: function() {
1146
- }, lastIndexOfSignature: function() {
1147
- }, readAndCheckSignature: function() {
1148
- }, readDate: function() {
1149
- var n = this.readInt(4);
1150
- return new Date(Date.UTC(1980 + (n >> 25 & 127), (n >> 21 & 15) - 1, n >> 16 & 31, n >> 11 & 31, n >> 5 & 63, (31 & n) << 1));
1151
- } }, k.exports = o;
1152
- }, { "../utils": 32 }], 19: [function(e, k, y) {
1153
- var i = e("./Uint8ArrayReader");
1154
- function o(n) {
1155
- i.call(this, n);
1156
- }
1157
- e("../utils").inherits(o, i), o.prototype.readData = function(n) {
1158
- this.checkOffset(n);
1159
- var a = this.data.slice(this.zero + this.index, this.zero + this.index + n);
1160
- return this.index += n, a;
1161
- }, k.exports = o;
1162
- }, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(e, k, y) {
1163
- var i = e("./DataReader");
1164
- function o(n) {
1165
- i.call(this, n);
1166
- }
1167
- e("../utils").inherits(o, i), o.prototype.byteAt = function(n) {
1168
- return this.data.charCodeAt(this.zero + n);
1169
- }, o.prototype.lastIndexOfSignature = function(n) {
1170
- return this.data.lastIndexOf(n) - this.zero;
1171
- }, o.prototype.readAndCheckSignature = function(n) {
1172
- return n === this.readData(4);
1173
- }, o.prototype.readData = function(n) {
1174
- this.checkOffset(n);
1175
- var a = this.data.slice(this.zero + this.index, this.zero + this.index + n);
1176
- return this.index += n, a;
1177
- }, k.exports = o;
1178
- }, { "../utils": 32, "./DataReader": 18 }], 21: [function(e, k, y) {
1179
- var i = e("./ArrayReader");
1180
- function o(n) {
1181
- i.call(this, n);
1182
- }
1183
- e("../utils").inherits(o, i), o.prototype.readData = function(n) {
1184
- if (this.checkOffset(n), n === 0) return new Uint8Array(0);
1185
- var a = this.data.subarray(this.zero + this.index, this.zero + this.index + n);
1186
- return this.index += n, a;
1187
- }, k.exports = o;
1188
- }, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(e, k, y) {
1189
- var i = e("../utils"), o = e("../support"), n = e("./ArrayReader"), a = e("./StringReader"), h = e("./NodeBufferReader"), p = e("./Uint8ArrayReader");
1190
- k.exports = function(d) {
1191
- var m = i.getTypeOf(d);
1192
- return i.checkSupport(m), m !== "string" || o.uint8array ? m === "nodebuffer" ? new h(d) : o.uint8array ? new p(i.transformTo("uint8array", d)) : new n(i.transformTo("array", d)) : new a(d);
1193
- };
1194
- }, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(e, k, y) {
1195
- y.LOCAL_FILE_HEADER = "PK", y.CENTRAL_FILE_HEADER = "PK", y.CENTRAL_DIRECTORY_END = "PK", y.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", y.ZIP64_CENTRAL_DIRECTORY_END = "PK", y.DATA_DESCRIPTOR = "PK\x07\b";
1196
- }, {}], 24: [function(e, k, y) {
1197
- var i = e("./GenericWorker"), o = e("../utils");
1198
- function n(a) {
1199
- i.call(this, "ConvertWorker to " + a), this.destType = a;
1200
- }
1201
- o.inherits(n, i), n.prototype.processChunk = function(a) {
1202
- this.push({ data: o.transformTo(this.destType, a.data), meta: a.meta });
1203
- }, k.exports = n;
1204
- }, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(e, k, y) {
1205
- var i = e("./GenericWorker"), o = e("../crc32");
1206
- function n() {
1207
- i.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
1208
- }
1209
- e("../utils").inherits(n, i), n.prototype.processChunk = function(a) {
1210
- this.streamInfo.crc32 = o(a.data, this.streamInfo.crc32 || 0), this.push(a);
1211
- }, k.exports = n;
1212
- }, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(e, k, y) {
1213
- var i = e("../utils"), o = e("./GenericWorker");
1214
- function n(a) {
1215
- o.call(this, "DataLengthProbe for " + a), this.propName = a, this.withStreamInfo(a, 0);
1216
- }
1217
- i.inherits(n, o), n.prototype.processChunk = function(a) {
1218
- if (a) {
1219
- var h = this.streamInfo[this.propName] || 0;
1220
- this.streamInfo[this.propName] = h + a.data.length;
1221
- }
1222
- o.prototype.processChunk.call(this, a);
1223
- }, k.exports = n;
1224
- }, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(e, k, y) {
1225
- var i = e("../utils"), o = e("./GenericWorker");
1226
- function n(a) {
1227
- o.call(this, "DataWorker");
1228
- var h = this;
1229
- this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, a.then(function(p) {
1230
- h.dataIsReady = !0, h.data = p, h.max = p && p.length || 0, h.type = i.getTypeOf(p), h.isPaused || h._tickAndRepeat();
1231
- }, function(p) {
1232
- h.error(p);
1233
- });
1234
- }
1235
- i.inherits(n, o), n.prototype.cleanUp = function() {
1236
- o.prototype.cleanUp.call(this), this.data = null;
1237
- }, n.prototype.resume = function() {
1238
- return !!o.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, i.delay(this._tickAndRepeat, [], this)), !0);
1239
- }, n.prototype._tickAndRepeat = function() {
1240
- this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (i.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
1241
- }, n.prototype._tick = function() {
1242
- if (this.isPaused || this.isFinished) return !1;
1243
- var a = null, h = Math.min(this.max, this.index + 16384);
1244
- if (this.index >= this.max) return this.end();
1245
- switch (this.type) {
1246
- case "string":
1247
- a = this.data.substring(this.index, h);
1248
- break;
1249
- case "uint8array":
1250
- a = this.data.subarray(this.index, h);
1251
- break;
1252
- case "array":
1253
- case "nodebuffer":
1254
- a = this.data.slice(this.index, h);
1255
- }
1256
- return this.index = h, this.push({ data: a, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
1257
- }, k.exports = n;
1258
- }, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(e, k, y) {
1259
- function i(o) {
1260
- this.name = o || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
1261
- }
1262
- i.prototype = { push: function(o) {
1263
- this.emit("data", o);
1264
- }, end: function() {
1265
- if (this.isFinished) return !1;
1266
- this.flush();
1267
- try {
1268
- this.emit("end"), this.cleanUp(), this.isFinished = !0;
1269
- } catch (o) {
1270
- this.emit("error", o);
1271
- }
1272
- return !0;
1273
- }, error: function(o) {
1274
- return !this.isFinished && (this.isPaused ? this.generatedError = o : (this.isFinished = !0, this.emit("error", o), this.previous && this.previous.error(o), this.cleanUp()), !0);
1275
- }, on: function(o, n) {
1276
- return this._listeners[o].push(n), this;
1277
- }, cleanUp: function() {
1278
- this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
1279
- }, emit: function(o, n) {
1280
- if (this._listeners[o]) for (var a = 0; a < this._listeners[o].length; a++) this._listeners[o][a].call(this, n);
1281
- }, pipe: function(o) {
1282
- return o.registerPrevious(this);
1283
- }, registerPrevious: function(o) {
1284
- if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
1285
- this.streamInfo = o.streamInfo, this.mergeStreamInfo(), this.previous = o;
1286
- var n = this;
1287
- return o.on("data", function(a) {
1288
- n.processChunk(a);
1289
- }), o.on("end", function() {
1290
- n.end();
1291
- }), o.on("error", function(a) {
1292
- n.error(a);
1293
- }), this;
1294
- }, pause: function() {
1295
- return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
1296
- }, resume: function() {
1297
- if (!this.isPaused || this.isFinished) return !1;
1298
- var o = this.isPaused = !1;
1299
- return this.generatedError && (this.error(this.generatedError), o = !0), this.previous && this.previous.resume(), !o;
1300
- }, flush: function() {
1301
- }, processChunk: function(o) {
1302
- this.push(o);
1303
- }, withStreamInfo: function(o, n) {
1304
- return this.extraStreamInfo[o] = n, this.mergeStreamInfo(), this;
1305
- }, mergeStreamInfo: function() {
1306
- for (var o in this.extraStreamInfo) Object.prototype.hasOwnProperty.call(this.extraStreamInfo, o) && (this.streamInfo[o] = this.extraStreamInfo[o]);
1307
- }, lock: function() {
1308
- if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
1309
- this.isLocked = !0, this.previous && this.previous.lock();
1310
- }, toString: function() {
1311
- var o = "Worker " + this.name;
1312
- return this.previous ? this.previous + " -> " + o : o;
1313
- } }, k.exports = i;
1314
- }, {}], 29: [function(e, k, y) {
1315
- var i = e("../utils"), o = e("./ConvertWorker"), n = e("./GenericWorker"), a = e("../base64"), h = e("../support"), p = e("../external"), d = null;
1316
- if (h.nodestream) try {
1317
- d = e("../nodejs/NodejsStreamOutputAdapter");
1318
- } catch {
1319
- }
1320
- function m(f, l) {
1321
- return new p.Promise(function(c, u) {
1322
- var b = [], A = f._internalType, C = f._outputType, I = f._mimeType;
1323
- f.on("data", function(M, U) {
1324
- b.push(M), l && l(U);
1325
- }).on("error", function(M) {
1326
- b = [], u(M);
1327
- }).on("end", function() {
1328
- try {
1329
- var M = function(U, L, x) {
1330
- switch (U) {
1331
- case "blob":
1332
- return i.newBlob(i.transformTo("arraybuffer", L), x);
1333
- case "base64":
1334
- return a.encode(L);
1335
- default:
1336
- return i.transformTo(U, L);
1337
- }
1338
- }(C, function(U, L) {
1339
- var x, F = 0, Y = null, S = 0;
1340
- for (x = 0; x < L.length; x++) S += L[x].length;
1341
- switch (U) {
1342
- case "string":
1343
- return L.join("");
1344
- case "array":
1345
- return Array.prototype.concat.apply([], L);
1346
- case "uint8array":
1347
- for (Y = new Uint8Array(S), x = 0; x < L.length; x++) Y.set(L[x], F), F += L[x].length;
1348
- return Y;
1349
- case "nodebuffer":
1350
- return Buffer.concat(L);
1351
- default:
1352
- throw new Error("concat : unsupported type '" + U + "'");
1353
- }
1354
- }(A, b), I);
1355
- c(M);
1356
- } catch (U) {
1357
- u(U);
1358
- }
1359
- b = [];
1360
- }).resume();
1361
- });
1362
- }
1363
- function r(f, l, c) {
1364
- var u = l;
1365
- switch (l) {
1366
- case "blob":
1367
- case "arraybuffer":
1368
- u = "uint8array";
1369
- break;
1370
- case "base64":
1371
- u = "string";
1372
- }
1373
- try {
1374
- this._internalType = u, this._outputType = l, this._mimeType = c, i.checkSupport(u), this._worker = f.pipe(new o(u)), f.lock();
1375
- } catch (b) {
1376
- this._worker = new n("error"), this._worker.error(b);
1377
- }
1378
- }
1379
- r.prototype = { accumulate: function(f) {
1380
- return m(this, f);
1381
- }, on: function(f, l) {
1382
- var c = this;
1383
- return f === "data" ? this._worker.on(f, function(u) {
1384
- l.call(c, u.data, u.meta);
1385
- }) : this._worker.on(f, function() {
1386
- i.delay(l, arguments, c);
1387
- }), this;
1388
- }, resume: function() {
1389
- return i.delay(this._worker.resume, [], this._worker), this;
1390
- }, pause: function() {
1391
- return this._worker.pause(), this;
1392
- }, toNodejsStream: function(f) {
1393
- if (i.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
1394
- return new d(this, { objectMode: this._outputType !== "nodebuffer" }, f);
1395
- } }, k.exports = r;
1396
- }, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(e, k, y) {
1397
- if (y.base64 = !0, y.array = !0, y.string = !0, y.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", y.nodebuffer = typeof Buffer < "u", y.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") y.blob = !1;
1398
- else {
1399
- var i = new ArrayBuffer(0);
1400
- try {
1401
- y.blob = new Blob([i], { type: "application/zip" }).size === 0;
1402
- } catch {
1403
- try {
1404
- var o = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
1405
- o.append(i), y.blob = o.getBlob("application/zip").size === 0;
1406
- } catch {
1407
- y.blob = !1;
1408
- }
1409
- }
1410
- }
1411
- try {
1412
- y.nodestream = !!e("readable-stream").Readable;
1413
- } catch {
1414
- y.nodestream = !1;
1415
- }
1416
- }, { "readable-stream": 16 }], 31: [function(e, k, y) {
1417
- for (var i = e("./utils"), o = e("./support"), n = e("./nodejsUtils"), a = e("./stream/GenericWorker"), h = new Array(256), p = 0; p < 256; p++) h[p] = 252 <= p ? 6 : 248 <= p ? 5 : 240 <= p ? 4 : 224 <= p ? 3 : 192 <= p ? 2 : 1;
1418
- h[254] = h[254] = 1;
1419
- function d() {
1420
- a.call(this, "utf-8 decode"), this.leftOver = null;
1421
- }
1422
- function m() {
1423
- a.call(this, "utf-8 encode");
1424
- }
1425
- y.utf8encode = function(r) {
1426
- return o.nodebuffer ? n.newBufferFrom(r, "utf-8") : function(f) {
1427
- var l, c, u, b, A, C = f.length, I = 0;
1428
- for (b = 0; b < C; b++) (64512 & (c = f.charCodeAt(b))) == 55296 && b + 1 < C && (64512 & (u = f.charCodeAt(b + 1))) == 56320 && (c = 65536 + (c - 55296 << 10) + (u - 56320), b++), I += c < 128 ? 1 : c < 2048 ? 2 : c < 65536 ? 3 : 4;
1429
- for (l = o.uint8array ? new Uint8Array(I) : new Array(I), b = A = 0; A < I; b++) (64512 & (c = f.charCodeAt(b))) == 55296 && b + 1 < C && (64512 & (u = f.charCodeAt(b + 1))) == 56320 && (c = 65536 + (c - 55296 << 10) + (u - 56320), b++), c < 128 ? l[A++] = c : (c < 2048 ? l[A++] = 192 | c >>> 6 : (c < 65536 ? l[A++] = 224 | c >>> 12 : (l[A++] = 240 | c >>> 18, l[A++] = 128 | c >>> 12 & 63), l[A++] = 128 | c >>> 6 & 63), l[A++] = 128 | 63 & c);
1430
- return l;
1431
- }(r);
1432
- }, y.utf8decode = function(r) {
1433
- return o.nodebuffer ? i.transformTo("nodebuffer", r).toString("utf-8") : function(f) {
1434
- var l, c, u, b, A = f.length, C = new Array(2 * A);
1435
- for (l = c = 0; l < A; ) if ((u = f[l++]) < 128) C[c++] = u;
1436
- else if (4 < (b = h[u])) C[c++] = 65533, l += b - 1;
1437
- else {
1438
- for (u &= b === 2 ? 31 : b === 3 ? 15 : 7; 1 < b && l < A; ) u = u << 6 | 63 & f[l++], b--;
1439
- 1 < b ? C[c++] = 65533 : u < 65536 ? C[c++] = u : (u -= 65536, C[c++] = 55296 | u >> 10 & 1023, C[c++] = 56320 | 1023 & u);
1440
- }
1441
- return C.length !== c && (C.subarray ? C = C.subarray(0, c) : C.length = c), i.applyFromCharCode(C);
1442
- }(r = i.transformTo(o.uint8array ? "uint8array" : "array", r));
1443
- }, i.inherits(d, a), d.prototype.processChunk = function(r) {
1444
- var f = i.transformTo(o.uint8array ? "uint8array" : "array", r.data);
1445
- if (this.leftOver && this.leftOver.length) {
1446
- if (o.uint8array) {
1447
- var l = f;
1448
- (f = new Uint8Array(l.length + this.leftOver.length)).set(this.leftOver, 0), f.set(l, this.leftOver.length);
1449
- } else f = this.leftOver.concat(f);
1450
- this.leftOver = null;
1451
- }
1452
- var c = function(b, A) {
1453
- var C;
1454
- for ((A = A || b.length) > b.length && (A = b.length), C = A - 1; 0 <= C && (192 & b[C]) == 128; ) C--;
1455
- return C < 0 || C === 0 ? A : C + h[b[C]] > A ? C : A;
1456
- }(f), u = f;
1457
- c !== f.length && (o.uint8array ? (u = f.subarray(0, c), this.leftOver = f.subarray(c, f.length)) : (u = f.slice(0, c), this.leftOver = f.slice(c, f.length))), this.push({ data: y.utf8decode(u), meta: r.meta });
1458
- }, d.prototype.flush = function() {
1459
- this.leftOver && this.leftOver.length && (this.push({ data: y.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
1460
- }, y.Utf8DecodeWorker = d, i.inherits(m, a), m.prototype.processChunk = function(r) {
1461
- this.push({ data: y.utf8encode(r.data), meta: r.meta });
1462
- }, y.Utf8EncodeWorker = m;
1463
- }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, k, y) {
1464
- var i = e("./support"), o = e("./base64"), n = e("./nodejsUtils"), a = e("./external");
1465
- function h(l) {
1466
- return l;
1467
- }
1468
- function p(l, c) {
1469
- for (var u = 0; u < l.length; ++u) c[u] = 255 & l.charCodeAt(u);
1470
- return c;
1471
- }
1472
- e("setimmediate"), y.newBlob = function(l, c) {
1473
- y.checkSupport("blob");
1474
- try {
1475
- return new Blob([l], { type: c });
1476
- } catch {
1477
- try {
1478
- var u = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
1479
- return u.append(l), u.getBlob(c);
1480
- } catch {
1481
- throw new Error("Bug : can't construct the Blob.");
1482
- }
1483
- }
1484
- };
1485
- var d = { stringifyByChunk: function(l, c, u) {
1486
- var b = [], A = 0, C = l.length;
1487
- if (C <= u) return String.fromCharCode.apply(null, l);
1488
- for (; A < C; ) c === "array" || c === "nodebuffer" ? b.push(String.fromCharCode.apply(null, l.slice(A, Math.min(A + u, C)))) : b.push(String.fromCharCode.apply(null, l.subarray(A, Math.min(A + u, C)))), A += u;
1489
- return b.join("");
1490
- }, stringifyByChar: function(l) {
1491
- for (var c = "", u = 0; u < l.length; u++) c += String.fromCharCode(l[u]);
1492
- return c;
1493
- }, applyCanBeUsed: { uint8array: function() {
1494
- try {
1495
- return i.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
1496
- } catch {
1497
- return !1;
1498
- }
1499
- }(), nodebuffer: function() {
1500
- try {
1501
- return i.nodebuffer && String.fromCharCode.apply(null, n.allocBuffer(1)).length === 1;
1502
- } catch {
1503
- return !1;
1504
- }
1505
- }() } };
1506
- function m(l) {
1507
- var c = 65536, u = y.getTypeOf(l), b = !0;
1508
- if (u === "uint8array" ? b = d.applyCanBeUsed.uint8array : u === "nodebuffer" && (b = d.applyCanBeUsed.nodebuffer), b) for (; 1 < c; ) try {
1509
- return d.stringifyByChunk(l, u, c);
1510
- } catch {
1511
- c = Math.floor(c / 2);
1512
- }
1513
- return d.stringifyByChar(l);
1514
- }
1515
- function r(l, c) {
1516
- for (var u = 0; u < l.length; u++) c[u] = l[u];
1517
- return c;
1518
- }
1519
- y.applyFromCharCode = m;
1520
- var f = {};
1521
- f.string = { string: h, array: function(l) {
1522
- return p(l, new Array(l.length));
1523
- }, arraybuffer: function(l) {
1524
- return f.string.uint8array(l).buffer;
1525
- }, uint8array: function(l) {
1526
- return p(l, new Uint8Array(l.length));
1527
- }, nodebuffer: function(l) {
1528
- return p(l, n.allocBuffer(l.length));
1529
- } }, f.array = { string: m, array: h, arraybuffer: function(l) {
1530
- return new Uint8Array(l).buffer;
1531
- }, uint8array: function(l) {
1532
- return new Uint8Array(l);
1533
- }, nodebuffer: function(l) {
1534
- return n.newBufferFrom(l);
1535
- } }, f.arraybuffer = { string: function(l) {
1536
- return m(new Uint8Array(l));
1537
- }, array: function(l) {
1538
- return r(new Uint8Array(l), new Array(l.byteLength));
1539
- }, arraybuffer: h, uint8array: function(l) {
1540
- return new Uint8Array(l);
1541
- }, nodebuffer: function(l) {
1542
- return n.newBufferFrom(new Uint8Array(l));
1543
- } }, f.uint8array = { string: m, array: function(l) {
1544
- return r(l, new Array(l.length));
1545
- }, arraybuffer: function(l) {
1546
- return l.buffer;
1547
- }, uint8array: h, nodebuffer: function(l) {
1548
- return n.newBufferFrom(l);
1549
- } }, f.nodebuffer = { string: m, array: function(l) {
1550
- return r(l, new Array(l.length));
1551
- }, arraybuffer: function(l) {
1552
- return f.nodebuffer.uint8array(l).buffer;
1553
- }, uint8array: function(l) {
1554
- return r(l, new Uint8Array(l.length));
1555
- }, nodebuffer: h }, y.transformTo = function(l, c) {
1556
- if (c = c || "", !l) return c;
1557
- y.checkSupport(l);
1558
- var u = y.getTypeOf(c);
1559
- return f[u][l](c);
1560
- }, y.resolve = function(l) {
1561
- for (var c = l.split("/"), u = [], b = 0; b < c.length; b++) {
1562
- var A = c[b];
1563
- A === "." || A === "" && b !== 0 && b !== c.length - 1 || (A === ".." ? u.pop() : u.push(A));
1564
- }
1565
- return u.join("/");
1566
- }, y.getTypeOf = function(l) {
1567
- return typeof l == "string" ? "string" : Object.prototype.toString.call(l) === "[object Array]" ? "array" : i.nodebuffer && n.isBuffer(l) ? "nodebuffer" : i.uint8array && l instanceof Uint8Array ? "uint8array" : i.arraybuffer && l instanceof ArrayBuffer ? "arraybuffer" : void 0;
1568
- }, y.checkSupport = function(l) {
1569
- if (!i[l.toLowerCase()]) throw new Error(l + " is not supported by this platform");
1570
- }, y.MAX_VALUE_16BITS = 65535, y.MAX_VALUE_32BITS = -1, y.pretty = function(l) {
1571
- var c, u, b = "";
1572
- for (u = 0; u < (l || "").length; u++) b += "\\x" + ((c = l.charCodeAt(u)) < 16 ? "0" : "") + c.toString(16).toUpperCase();
1573
- return b;
1574
- }, y.delay = function(l, c, u) {
1575
- setImmediate(function() {
1576
- l.apply(u || null, c || []);
1577
- });
1578
- }, y.inherits = function(l, c) {
1579
- function u() {
1580
- }
1581
- u.prototype = c.prototype, l.prototype = new u();
1582
- }, y.extend = function() {
1583
- var l, c, u = {};
1584
- for (l = 0; l < arguments.length; l++) for (c in arguments[l]) Object.prototype.hasOwnProperty.call(arguments[l], c) && u[c] === void 0 && (u[c] = arguments[l][c]);
1585
- return u;
1586
- }, y.prepareContent = function(l, c, u, b, A) {
1587
- return a.Promise.resolve(c).then(function(C) {
1588
- return i.blob && (C instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(C)) !== -1) && typeof FileReader < "u" ? new a.Promise(function(I, M) {
1589
- var U = new FileReader();
1590
- U.onload = function(L) {
1591
- I(L.target.result);
1592
- }, U.onerror = function(L) {
1593
- M(L.target.error);
1594
- }, U.readAsArrayBuffer(C);
1595
- }) : C;
1596
- }).then(function(C) {
1597
- var I = y.getTypeOf(C);
1598
- return I ? (I === "arraybuffer" ? C = y.transformTo("uint8array", C) : I === "string" && (A ? C = o.decode(C) : u && b !== !0 && (C = function(M) {
1599
- return p(M, i.uint8array ? new Uint8Array(M.length) : new Array(M.length));
1600
- }(C))), C) : a.Promise.reject(new Error("Can't read the data of '" + l + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
1601
- });
1602
- };
1603
- }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, k, y) {
1604
- var i = e("./reader/readerFor"), o = e("./utils"), n = e("./signature"), a = e("./zipEntry"), h = e("./support");
1605
- function p(d) {
1606
- this.files = [], this.loadOptions = d;
1607
- }
1608
- p.prototype = { checkSignature: function(d) {
1609
- if (!this.reader.readAndCheckSignature(d)) {
1610
- this.reader.index -= 4;
1611
- var m = this.reader.readString(4);
1612
- throw new Error("Corrupted zip or bug: unexpected signature (" + o.pretty(m) + ", expected " + o.pretty(d) + ")");
1613
- }
1614
- }, isSignature: function(d, m) {
1615
- var r = this.reader.index;
1616
- this.reader.setIndex(d);
1617
- var f = this.reader.readString(4) === m;
1618
- return this.reader.setIndex(r), f;
1619
- }, readBlockEndOfCentral: function() {
1620
- this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2);
1621
- var d = this.reader.readData(this.zipCommentLength), m = h.uint8array ? "uint8array" : "array", r = o.transformTo(m, d);
1622
- this.zipComment = this.loadOptions.decodeFileName(r);
1623
- }, readBlockZip64EndOfCentral: function() {
1624
- this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {};
1625
- for (var d, m, r, f = this.zip64EndOfCentralSize - 44; 0 < f; ) d = this.reader.readInt(2), m = this.reader.readInt(4), r = this.reader.readData(m), this.zip64ExtensibleData[d] = { id: d, length: m, value: r };
1626
- }, readBlockZip64EndOfCentralLocator: function() {
1627
- if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw new Error("Multi-volumes zip are not supported");
1628
- }, readLocalFiles: function() {
1629
- var d, m;
1630
- for (d = 0; d < this.files.length; d++) m = this.files[d], this.reader.setIndex(m.localHeaderOffset), this.checkSignature(n.LOCAL_FILE_HEADER), m.readLocalPart(this.reader), m.handleUTF8(), m.processAttributes();
1631
- }, readCentralDir: function() {
1632
- var d;
1633
- for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER); ) (d = new a({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(d);
1634
- if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
1635
- }, readEndOfCentral: function() {
1636
- var d = this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);
1637
- if (d < 0) throw this.isSignature(0, n.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
1638
- this.reader.setIndex(d);
1639
- var m = d;
1640
- if (this.checkSignature(n.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === o.MAX_VALUE_16BITS || this.diskWithCentralDirStart === o.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === o.MAX_VALUE_16BITS || this.centralDirRecords === o.MAX_VALUE_16BITS || this.centralDirSize === o.MAX_VALUE_32BITS || this.centralDirOffset === o.MAX_VALUE_32BITS) {
1641
- if (this.zip64 = !0, (d = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
1642
- if (this.reader.setIndex(d), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, n.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
1643
- this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
1644
- }
1645
- var r = this.centralDirOffset + this.centralDirSize;
1646
- this.zip64 && (r += 20, r += 12 + this.zip64EndOfCentralSize);
1647
- var f = m - r;
1648
- if (0 < f) this.isSignature(m, n.CENTRAL_FILE_HEADER) || (this.reader.zero = f);
1649
- else if (f < 0) throw new Error("Corrupted zip: missing " + Math.abs(f) + " bytes.");
1650
- }, prepareReader: function(d) {
1651
- this.reader = i(d);
1652
- }, load: function(d) {
1653
- this.prepareReader(d), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
1654
- } }, k.exports = p;
1655
- }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, k, y) {
1656
- var i = e("./reader/readerFor"), o = e("./utils"), n = e("./compressedObject"), a = e("./crc32"), h = e("./utf8"), p = e("./compressions"), d = e("./support");
1657
- function m(r, f) {
1658
- this.options = r, this.loadOptions = f;
1659
- }
1660
- m.prototype = { isEncrypted: function() {
1661
- return (1 & this.bitFlag) == 1;
1662
- }, useUTF8: function() {
1663
- return (2048 & this.bitFlag) == 2048;
1664
- }, readLocalPart: function(r) {
1665
- var f, l;
1666
- if (r.skip(22), this.fileNameLength = r.readInt(2), l = r.readInt(2), this.fileName = r.readData(this.fileNameLength), r.skip(l), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
1667
- if ((f = function(c) {
1668
- for (var u in p) if (Object.prototype.hasOwnProperty.call(p, u) && p[u].magic === c) return p[u];
1669
- return null;
1670
- }(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
1671
- this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, f, r.readData(this.compressedSize));
1672
- }, readCentralPart: function(r) {
1673
- this.versionMadeBy = r.readInt(2), r.skip(2), this.bitFlag = r.readInt(2), this.compressionMethod = r.readString(2), this.date = r.readDate(), this.crc32 = r.readInt(4), this.compressedSize = r.readInt(4), this.uncompressedSize = r.readInt(4);
1674
- var f = r.readInt(2);
1675
- if (this.extraFieldsLength = r.readInt(2), this.fileCommentLength = r.readInt(2), this.diskNumberStart = r.readInt(2), this.internalFileAttributes = r.readInt(2), this.externalFileAttributes = r.readInt(4), this.localHeaderOffset = r.readInt(4), this.isEncrypted()) throw new Error("Encrypted zip are not supported");
1676
- r.skip(f), this.readExtraFields(r), this.parseZIP64ExtraField(r), this.fileComment = r.readData(this.fileCommentLength);
1677
- }, processAttributes: function() {
1678
- this.unixPermissions = null, this.dosPermissions = null;
1679
- var r = this.versionMadeBy >> 8;
1680
- this.dir = !!(16 & this.externalFileAttributes), r == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), r == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
1681
- }, parseZIP64ExtraField: function() {
1682
- if (this.extraFields[1]) {
1683
- var r = i(this.extraFields[1].value);
1684
- this.uncompressedSize === o.MAX_VALUE_32BITS && (this.uncompressedSize = r.readInt(8)), this.compressedSize === o.MAX_VALUE_32BITS && (this.compressedSize = r.readInt(8)), this.localHeaderOffset === o.MAX_VALUE_32BITS && (this.localHeaderOffset = r.readInt(8)), this.diskNumberStart === o.MAX_VALUE_32BITS && (this.diskNumberStart = r.readInt(4));
1685
- }
1686
- }, readExtraFields: function(r) {
1687
- var f, l, c, u = r.index + this.extraFieldsLength;
1688
- for (this.extraFields || (this.extraFields = {}); r.index + 4 < u; ) f = r.readInt(2), l = r.readInt(2), c = r.readData(l), this.extraFields[f] = { id: f, length: l, value: c };
1689
- r.setIndex(u);
1690
- }, handleUTF8: function() {
1691
- var r = d.uint8array ? "uint8array" : "array";
1692
- if (this.useUTF8()) this.fileNameStr = h.utf8decode(this.fileName), this.fileCommentStr = h.utf8decode(this.fileComment);
1693
- else {
1694
- var f = this.findExtraFieldUnicodePath();
1695
- if (f !== null) this.fileNameStr = f;
1696
- else {
1697
- var l = o.transformTo(r, this.fileName);
1698
- this.fileNameStr = this.loadOptions.decodeFileName(l);
1699
- }
1700
- var c = this.findExtraFieldUnicodeComment();
1701
- if (c !== null) this.fileCommentStr = c;
1702
- else {
1703
- var u = o.transformTo(r, this.fileComment);
1704
- this.fileCommentStr = this.loadOptions.decodeFileName(u);
1705
- }
1706
- }
1707
- }, findExtraFieldUnicodePath: function() {
1708
- var r = this.extraFields[28789];
1709
- if (r) {
1710
- var f = i(r.value);
1711
- return f.readInt(1) !== 1 || a(this.fileName) !== f.readInt(4) ? null : h.utf8decode(f.readData(r.length - 5));
1712
- }
1713
- return null;
1714
- }, findExtraFieldUnicodeComment: function() {
1715
- var r = this.extraFields[25461];
1716
- if (r) {
1717
- var f = i(r.value);
1718
- return f.readInt(1) !== 1 || a(this.fileComment) !== f.readInt(4) ? null : h.utf8decode(f.readData(r.length - 5));
1719
- }
1720
- return null;
1721
- } }, k.exports = m;
1722
- }, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, k, y) {
1723
- function i(f, l, c) {
1724
- this.name = f, this.dir = c.dir, this.date = c.date, this.comment = c.comment, this.unixPermissions = c.unixPermissions, this.dosPermissions = c.dosPermissions, this._data = l, this._dataBinary = c.binary, this.options = { compression: c.compression, compressionOptions: c.compressionOptions };
1725
- }
1726
- var o = e("./stream/StreamHelper"), n = e("./stream/DataWorker"), a = e("./utf8"), h = e("./compressedObject"), p = e("./stream/GenericWorker");
1727
- i.prototype = { internalStream: function(f) {
1728
- var l = null, c = "string";
1729
- try {
1730
- if (!f) throw new Error("No output type specified.");
1731
- var u = (c = f.toLowerCase()) === "string" || c === "text";
1732
- c !== "binarystring" && c !== "text" || (c = "string"), l = this._decompressWorker();
1733
- var b = !this._dataBinary;
1734
- b && !u && (l = l.pipe(new a.Utf8EncodeWorker())), !b && u && (l = l.pipe(new a.Utf8DecodeWorker()));
1735
- } catch (A) {
1736
- (l = new p("error")).error(A);
1737
- }
1738
- return new o(l, c, "");
1739
- }, async: function(f, l) {
1740
- return this.internalStream(f).accumulate(l);
1741
- }, nodeStream: function(f, l) {
1742
- return this.internalStream(f || "nodebuffer").toNodejsStream(l);
1743
- }, _compressWorker: function(f, l) {
1744
- if (this._data instanceof h && this._data.compression.magic === f.magic) return this._data.getCompressedWorker();
1745
- var c = this._decompressWorker();
1746
- return this._dataBinary || (c = c.pipe(new a.Utf8EncodeWorker())), h.createWorkerFrom(c, f, l);
1747
- }, _decompressWorker: function() {
1748
- return this._data instanceof h ? this._data.getContentWorker() : this._data instanceof p ? this._data : new n(this._data);
1749
- } };
1750
- for (var d = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], m = function() {
1751
- throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1752
- }, r = 0; r < d.length; r++) i.prototype[d[r]] = m;
1753
- k.exports = i;
1754
- }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, k, y) {
1755
- (function(i) {
1756
- var o, n, a = i.MutationObserver || i.WebKitMutationObserver;
1757
- if (a) {
1758
- var h = 0, p = new a(f), d = i.document.createTextNode("");
1759
- p.observe(d, { characterData: !0 }), o = function() {
1760
- d.data = h = ++h % 2;
1761
- };
1762
- } else if (i.setImmediate || i.MessageChannel === void 0) o = "document" in i && "onreadystatechange" in i.document.createElement("script") ? function() {
1763
- var l = i.document.createElement("script");
1764
- l.onreadystatechange = function() {
1765
- f(), l.onreadystatechange = null, l.parentNode.removeChild(l), l = null;
1766
- }, i.document.documentElement.appendChild(l);
1767
- } : function() {
1768
- setTimeout(f, 0);
1769
- };
1770
- else {
1771
- var m = new i.MessageChannel();
1772
- m.port1.onmessage = f, o = function() {
1773
- m.port2.postMessage(0);
1774
- };
1775
- }
1776
- var r = [];
1777
- function f() {
1778
- var l, c;
1779
- n = !0;
1780
- for (var u = r.length; u; ) {
1781
- for (c = r, r = [], l = -1; ++l < u; ) c[l]();
1782
- u = r.length;
1783
- }
1784
- n = !1;
1785
- }
1786
- k.exports = function(l) {
1787
- r.push(l) !== 1 || n || o();
1788
- };
1789
- }).call(this, typeof kt < "u" ? kt : typeof self < "u" ? self : typeof window < "u" ? window : {});
1790
- }, {}], 37: [function(e, k, y) {
1791
- var i = e("immediate");
1792
- function o() {
1793
- }
1794
- var n = {}, a = ["REJECTED"], h = ["FULFILLED"], p = ["PENDING"];
1795
- function d(u) {
1796
- if (typeof u != "function") throw new TypeError("resolver must be a function");
1797
- this.state = p, this.queue = [], this.outcome = void 0, u !== o && l(this, u);
1798
- }
1799
- function m(u, b, A) {
1800
- this.promise = u, typeof b == "function" && (this.onFulfilled = b, this.callFulfilled = this.otherCallFulfilled), typeof A == "function" && (this.onRejected = A, this.callRejected = this.otherCallRejected);
1801
- }
1802
- function r(u, b, A) {
1803
- i(function() {
1804
- var C;
1805
- try {
1806
- C = b(A);
1807
- } catch (I) {
1808
- return n.reject(u, I);
1809
- }
1810
- C === u ? n.reject(u, new TypeError("Cannot resolve promise with itself")) : n.resolve(u, C);
1811
- });
1812
- }
1813
- function f(u) {
1814
- var b = u && u.then;
1815
- if (u && (typeof u == "object" || typeof u == "function") && typeof b == "function") return function() {
1816
- b.apply(u, arguments);
1817
- };
1818
- }
1819
- function l(u, b) {
1820
- var A = !1;
1821
- function C(U) {
1822
- A || (A = !0, n.reject(u, U));
1823
- }
1824
- function I(U) {
1825
- A || (A = !0, n.resolve(u, U));
1826
- }
1827
- var M = c(function() {
1828
- b(I, C);
1829
- });
1830
- M.status === "error" && C(M.value);
1831
- }
1832
- function c(u, b) {
1833
- var A = {};
1834
- try {
1835
- A.value = u(b), A.status = "success";
1836
- } catch (C) {
1837
- A.status = "error", A.value = C;
1838
- }
1839
- return A;
1840
- }
1841
- (k.exports = d).prototype.finally = function(u) {
1842
- if (typeof u != "function") return this;
1843
- var b = this.constructor;
1844
- return this.then(function(A) {
1845
- return b.resolve(u()).then(function() {
1846
- return A;
1847
- });
1848
- }, function(A) {
1849
- return b.resolve(u()).then(function() {
1850
- throw A;
1851
- });
1852
- });
1853
- }, d.prototype.catch = function(u) {
1854
- return this.then(null, u);
1855
- }, d.prototype.then = function(u, b) {
1856
- if (typeof u != "function" && this.state === h || typeof b != "function" && this.state === a) return this;
1857
- var A = new this.constructor(o);
1858
- return this.state !== p ? r(A, this.state === h ? u : b, this.outcome) : this.queue.push(new m(A, u, b)), A;
1859
- }, m.prototype.callFulfilled = function(u) {
1860
- n.resolve(this.promise, u);
1861
- }, m.prototype.otherCallFulfilled = function(u) {
1862
- r(this.promise, this.onFulfilled, u);
1863
- }, m.prototype.callRejected = function(u) {
1864
- n.reject(this.promise, u);
1865
- }, m.prototype.otherCallRejected = function(u) {
1866
- r(this.promise, this.onRejected, u);
1867
- }, n.resolve = function(u, b) {
1868
- var A = c(f, b);
1869
- if (A.status === "error") return n.reject(u, A.value);
1870
- var C = A.value;
1871
- if (C) l(u, C);
1872
- else {
1873
- u.state = h, u.outcome = b;
1874
- for (var I = -1, M = u.queue.length; ++I < M; ) u.queue[I].callFulfilled(b);
1875
- }
1876
- return u;
1877
- }, n.reject = function(u, b) {
1878
- u.state = a, u.outcome = b;
1879
- for (var A = -1, C = u.queue.length; ++A < C; ) u.queue[A].callRejected(b);
1880
- return u;
1881
- }, d.resolve = function(u) {
1882
- return u instanceof this ? u : n.resolve(new this(o), u);
1883
- }, d.reject = function(u) {
1884
- var b = new this(o);
1885
- return n.reject(b, u);
1886
- }, d.all = function(u) {
1887
- var b = this;
1888
- if (Object.prototype.toString.call(u) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1889
- var A = u.length, C = !1;
1890
- if (!A) return this.resolve([]);
1891
- for (var I = new Array(A), M = 0, U = -1, L = new this(o); ++U < A; ) x(u[U], U);
1892
- return L;
1893
- function x(F, Y) {
1894
- b.resolve(F).then(function(S) {
1895
- I[Y] = S, ++M !== A || C || (C = !0, n.resolve(L, I));
1896
- }, function(S) {
1897
- C || (C = !0, n.reject(L, S));
1898
- });
1899
- }
1900
- }, d.race = function(u) {
1901
- var b = this;
1902
- if (Object.prototype.toString.call(u) !== "[object Array]") return this.reject(new TypeError("must be an array"));
1903
- var A = u.length, C = !1;
1904
- if (!A) return this.resolve([]);
1905
- for (var I = -1, M = new this(o); ++I < A; ) U = u[I], b.resolve(U).then(function(L) {
1906
- C || (C = !0, n.resolve(M, L));
1907
- }, function(L) {
1908
- C || (C = !0, n.reject(M, L));
1909
- });
1910
- var U;
1911
- return M;
1912
- };
1913
- }, { immediate: 36 }], 38: [function(e, k, y) {
1914
- var i = {};
1915
- (0, e("./lib/utils/common").assign)(i, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), k.exports = i;
1916
- }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, k, y) {
1917
- var i = e("./zlib/deflate"), o = e("./utils/common"), n = e("./utils/strings"), a = e("./zlib/messages"), h = e("./zlib/zstream"), p = Object.prototype.toString, d = 0, m = -1, r = 0, f = 8;
1918
- function l(u) {
1919
- if (!(this instanceof l)) return new l(u);
1920
- this.options = o.assign({ level: m, method: f, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: r, to: "" }, u || {});
1921
- var b = this.options;
1922
- b.raw && 0 < b.windowBits ? b.windowBits = -b.windowBits : b.gzip && 0 < b.windowBits && b.windowBits < 16 && (b.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new h(), this.strm.avail_out = 0;
1923
- var A = i.deflateInit2(this.strm, b.level, b.method, b.windowBits, b.memLevel, b.strategy);
1924
- if (A !== d) throw new Error(a[A]);
1925
- if (b.header && i.deflateSetHeader(this.strm, b.header), b.dictionary) {
1926
- var C;
1927
- if (C = typeof b.dictionary == "string" ? n.string2buf(b.dictionary) : p.call(b.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(b.dictionary) : b.dictionary, (A = i.deflateSetDictionary(this.strm, C)) !== d) throw new Error(a[A]);
1928
- this._dict_set = !0;
1929
- }
1930
- }
1931
- function c(u, b) {
1932
- var A = new l(b);
1933
- if (A.push(u, !0), A.err) throw A.msg || a[A.err];
1934
- return A.result;
1935
- }
1936
- l.prototype.push = function(u, b) {
1937
- var A, C, I = this.strm, M = this.options.chunkSize;
1938
- if (this.ended) return !1;
1939
- C = b === ~~b ? b : b === !0 ? 4 : 0, typeof u == "string" ? I.input = n.string2buf(u) : p.call(u) === "[object ArrayBuffer]" ? I.input = new Uint8Array(u) : I.input = u, I.next_in = 0, I.avail_in = I.input.length;
1940
- do {
1941
- if (I.avail_out === 0 && (I.output = new o.Buf8(M), I.next_out = 0, I.avail_out = M), (A = i.deflate(I, C)) !== 1 && A !== d) return this.onEnd(A), !(this.ended = !0);
1942
- I.avail_out !== 0 && (I.avail_in !== 0 || C !== 4 && C !== 2) || (this.options.to === "string" ? this.onData(n.buf2binstring(o.shrinkBuf(I.output, I.next_out))) : this.onData(o.shrinkBuf(I.output, I.next_out)));
1943
- } while ((0 < I.avail_in || I.avail_out === 0) && A !== 1);
1944
- return C === 4 ? (A = i.deflateEnd(this.strm), this.onEnd(A), this.ended = !0, A === d) : C !== 2 || (this.onEnd(d), !(I.avail_out = 0));
1945
- }, l.prototype.onData = function(u) {
1946
- this.chunks.push(u);
1947
- }, l.prototype.onEnd = function(u) {
1948
- u === d && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = u, this.msg = this.strm.msg;
1949
- }, y.Deflate = l, y.deflate = c, y.deflateRaw = function(u, b) {
1950
- return (b = b || {}).raw = !0, c(u, b);
1951
- }, y.gzip = function(u, b) {
1952
- return (b = b || {}).gzip = !0, c(u, b);
1953
- };
1954
- }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(e, k, y) {
1955
- var i = e("./zlib/inflate"), o = e("./utils/common"), n = e("./utils/strings"), a = e("./zlib/constants"), h = e("./zlib/messages"), p = e("./zlib/zstream"), d = e("./zlib/gzheader"), m = Object.prototype.toString;
1956
- function r(l) {
1957
- if (!(this instanceof r)) return new r(l);
1958
- this.options = o.assign({ chunkSize: 16384, windowBits: 0, to: "" }, l || {});
1959
- var c = this.options;
1960
- c.raw && 0 <= c.windowBits && c.windowBits < 16 && (c.windowBits = -c.windowBits, c.windowBits === 0 && (c.windowBits = -15)), !(0 <= c.windowBits && c.windowBits < 16) || l && l.windowBits || (c.windowBits += 32), 15 < c.windowBits && c.windowBits < 48 && (15 & c.windowBits) == 0 && (c.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new p(), this.strm.avail_out = 0;
1961
- var u = i.inflateInit2(this.strm, c.windowBits);
1962
- if (u !== a.Z_OK) throw new Error(h[u]);
1963
- this.header = new d(), i.inflateGetHeader(this.strm, this.header);
1964
- }
1965
- function f(l, c) {
1966
- var u = new r(c);
1967
- if (u.push(l, !0), u.err) throw u.msg || h[u.err];
1968
- return u.result;
1969
- }
1970
- r.prototype.push = function(l, c) {
1971
- var u, b, A, C, I, M, U = this.strm, L = this.options.chunkSize, x = this.options.dictionary, F = !1;
1972
- if (this.ended) return !1;
1973
- b = c === ~~c ? c : c === !0 ? a.Z_FINISH : a.Z_NO_FLUSH, typeof l == "string" ? U.input = n.binstring2buf(l) : m.call(l) === "[object ArrayBuffer]" ? U.input = new Uint8Array(l) : U.input = l, U.next_in = 0, U.avail_in = U.input.length;
1974
- do {
1975
- if (U.avail_out === 0 && (U.output = new o.Buf8(L), U.next_out = 0, U.avail_out = L), (u = i.inflate(U, a.Z_NO_FLUSH)) === a.Z_NEED_DICT && x && (M = typeof x == "string" ? n.string2buf(x) : m.call(x) === "[object ArrayBuffer]" ? new Uint8Array(x) : x, u = i.inflateSetDictionary(this.strm, M)), u === a.Z_BUF_ERROR && F === !0 && (u = a.Z_OK, F = !1), u !== a.Z_STREAM_END && u !== a.Z_OK) return this.onEnd(u), !(this.ended = !0);
1976
- U.next_out && (U.avail_out !== 0 && u !== a.Z_STREAM_END && (U.avail_in !== 0 || b !== a.Z_FINISH && b !== a.Z_SYNC_FLUSH) || (this.options.to === "string" ? (A = n.utf8border(U.output, U.next_out), C = U.next_out - A, I = n.buf2string(U.output, A), U.next_out = C, U.avail_out = L - C, C && o.arraySet(U.output, U.output, A, C, 0), this.onData(I)) : this.onData(o.shrinkBuf(U.output, U.next_out)))), U.avail_in === 0 && U.avail_out === 0 && (F = !0);
1977
- } while ((0 < U.avail_in || U.avail_out === 0) && u !== a.Z_STREAM_END);
1978
- return u === a.Z_STREAM_END && (b = a.Z_FINISH), b === a.Z_FINISH ? (u = i.inflateEnd(this.strm), this.onEnd(u), this.ended = !0, u === a.Z_OK) : b !== a.Z_SYNC_FLUSH || (this.onEnd(a.Z_OK), !(U.avail_out = 0));
1979
- }, r.prototype.onData = function(l) {
1980
- this.chunks.push(l);
1981
- }, r.prototype.onEnd = function(l) {
1982
- l === a.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = l, this.msg = this.strm.msg;
1983
- }, y.Inflate = r, y.inflate = f, y.inflateRaw = function(l, c) {
1984
- return (c = c || {}).raw = !0, f(l, c);
1985
- }, y.ungzip = f;
1986
- }, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(e, k, y) {
1987
- var i = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
1988
- y.assign = function(a) {
1989
- for (var h = Array.prototype.slice.call(arguments, 1); h.length; ) {
1990
- var p = h.shift();
1991
- if (p) {
1992
- if (typeof p != "object") throw new TypeError(p + "must be non-object");
1993
- for (var d in p) p.hasOwnProperty(d) && (a[d] = p[d]);
1994
- }
1995
- }
1996
- return a;
1997
- }, y.shrinkBuf = function(a, h) {
1998
- return a.length === h ? a : a.subarray ? a.subarray(0, h) : (a.length = h, a);
1999
- };
2000
- var o = { arraySet: function(a, h, p, d, m) {
2001
- if (h.subarray && a.subarray) a.set(h.subarray(p, p + d), m);
2002
- else for (var r = 0; r < d; r++) a[m + r] = h[p + r];
2003
- }, flattenChunks: function(a) {
2004
- var h, p, d, m, r, f;
2005
- for (h = d = 0, p = a.length; h < p; h++) d += a[h].length;
2006
- for (f = new Uint8Array(d), h = m = 0, p = a.length; h < p; h++) r = a[h], f.set(r, m), m += r.length;
2007
- return f;
2008
- } }, n = { arraySet: function(a, h, p, d, m) {
2009
- for (var r = 0; r < d; r++) a[m + r] = h[p + r];
2010
- }, flattenChunks: function(a) {
2011
- return [].concat.apply([], a);
2012
- } };
2013
- y.setTyped = function(a) {
2014
- a ? (y.Buf8 = Uint8Array, y.Buf16 = Uint16Array, y.Buf32 = Int32Array, y.assign(y, o)) : (y.Buf8 = Array, y.Buf16 = Array, y.Buf32 = Array, y.assign(y, n));
2015
- }, y.setTyped(i);
2016
- }, {}], 42: [function(e, k, y) {
2017
- var i = e("./common"), o = !0, n = !0;
2018
- try {
2019
- String.fromCharCode.apply(null, [0]);
2020
- } catch {
2021
- o = !1;
2022
- }
2023
- try {
2024
- String.fromCharCode.apply(null, new Uint8Array(1));
2025
- } catch {
2026
- n = !1;
2027
- }
2028
- for (var a = new i.Buf8(256), h = 0; h < 256; h++) a[h] = 252 <= h ? 6 : 248 <= h ? 5 : 240 <= h ? 4 : 224 <= h ? 3 : 192 <= h ? 2 : 1;
2029
- function p(d, m) {
2030
- if (m < 65537 && (d.subarray && n || !d.subarray && o)) return String.fromCharCode.apply(null, i.shrinkBuf(d, m));
2031
- for (var r = "", f = 0; f < m; f++) r += String.fromCharCode(d[f]);
2032
- return r;
2033
- }
2034
- a[254] = a[254] = 1, y.string2buf = function(d) {
2035
- var m, r, f, l, c, u = d.length, b = 0;
2036
- for (l = 0; l < u; l++) (64512 & (r = d.charCodeAt(l))) == 55296 && l + 1 < u && (64512 & (f = d.charCodeAt(l + 1))) == 56320 && (r = 65536 + (r - 55296 << 10) + (f - 56320), l++), b += r < 128 ? 1 : r < 2048 ? 2 : r < 65536 ? 3 : 4;
2037
- for (m = new i.Buf8(b), l = c = 0; c < b; l++) (64512 & (r = d.charCodeAt(l))) == 55296 && l + 1 < u && (64512 & (f = d.charCodeAt(l + 1))) == 56320 && (r = 65536 + (r - 55296 << 10) + (f - 56320), l++), r < 128 ? m[c++] = r : (r < 2048 ? m[c++] = 192 | r >>> 6 : (r < 65536 ? m[c++] = 224 | r >>> 12 : (m[c++] = 240 | r >>> 18, m[c++] = 128 | r >>> 12 & 63), m[c++] = 128 | r >>> 6 & 63), m[c++] = 128 | 63 & r);
2038
- return m;
2039
- }, y.buf2binstring = function(d) {
2040
- return p(d, d.length);
2041
- }, y.binstring2buf = function(d) {
2042
- for (var m = new i.Buf8(d.length), r = 0, f = m.length; r < f; r++) m[r] = d.charCodeAt(r);
2043
- return m;
2044
- }, y.buf2string = function(d, m) {
2045
- var r, f, l, c, u = m || d.length, b = new Array(2 * u);
2046
- for (r = f = 0; r < u; ) if ((l = d[r++]) < 128) b[f++] = l;
2047
- else if (4 < (c = a[l])) b[f++] = 65533, r += c - 1;
2048
- else {
2049
- for (l &= c === 2 ? 31 : c === 3 ? 15 : 7; 1 < c && r < u; ) l = l << 6 | 63 & d[r++], c--;
2050
- 1 < c ? b[f++] = 65533 : l < 65536 ? b[f++] = l : (l -= 65536, b[f++] = 55296 | l >> 10 & 1023, b[f++] = 56320 | 1023 & l);
2051
- }
2052
- return p(b, f);
2053
- }, y.utf8border = function(d, m) {
2054
- var r;
2055
- for ((m = m || d.length) > d.length && (m = d.length), r = m - 1; 0 <= r && (192 & d[r]) == 128; ) r--;
2056
- return r < 0 || r === 0 ? m : r + a[d[r]] > m ? r : m;
2057
- };
2058
- }, { "./common": 41 }], 43: [function(e, k, y) {
2059
- k.exports = function(i, o, n, a) {
2060
- for (var h = 65535 & i | 0, p = i >>> 16 & 65535 | 0, d = 0; n !== 0; ) {
2061
- for (n -= d = 2e3 < n ? 2e3 : n; p = p + (h = h + o[a++] | 0) | 0, --d; ) ;
2062
- h %= 65521, p %= 65521;
2063
- }
2064
- return h | p << 16 | 0;
2065
- };
2066
- }, {}], 44: [function(e, k, y) {
2067
- k.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
2068
- }, {}], 45: [function(e, k, y) {
2069
- var i = function() {
2070
- for (var o, n = [], a = 0; a < 256; a++) {
2071
- o = a;
2072
- for (var h = 0; h < 8; h++) o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
2073
- n[a] = o;
2074
- }
2075
- return n;
2076
- }();
2077
- k.exports = function(o, n, a, h) {
2078
- var p = i, d = h + a;
2079
- o ^= -1;
2080
- for (var m = h; m < d; m++) o = o >>> 8 ^ p[255 & (o ^ n[m])];
2081
- return -1 ^ o;
2082
- };
2083
- }, {}], 46: [function(e, k, y) {
2084
- var i, o = e("../utils/common"), n = e("./trees"), a = e("./adler32"), h = e("./crc32"), p = e("./messages"), d = 0, m = 4, r = 0, f = -2, l = -1, c = 4, u = 2, b = 8, A = 9, C = 286, I = 30, M = 19, U = 2 * C + 1, L = 15, x = 3, F = 258, Y = F + x + 1, S = 42, P = 113, s = 1, N = 2, $ = 3, Z = 4;
2085
- function st(t, R) {
2086
- return t.msg = p[R], R;
2087
- }
2088
- function H(t) {
2089
- return (t << 1) - (4 < t ? 9 : 0);
2090
- }
2091
- function at(t) {
2092
- for (var R = t.length; 0 <= --R; ) t[R] = 0;
2093
- }
2094
- function B(t) {
2095
- var R = t.state, D = R.pending;
2096
- D > t.avail_out && (D = t.avail_out), D !== 0 && (o.arraySet(t.output, R.pending_buf, R.pending_out, D, t.next_out), t.next_out += D, R.pending_out += D, t.total_out += D, t.avail_out -= D, R.pending -= D, R.pending === 0 && (R.pending_out = 0));
2097
- }
2098
- function E(t, R) {
2099
- n._tr_flush_block(t, 0 <= t.block_start ? t.block_start : -1, t.strstart - t.block_start, R), t.block_start = t.strstart, B(t.strm);
2100
- }
2101
- function rt(t, R) {
2102
- t.pending_buf[t.pending++] = R;
2103
- }
2104
- function V(t, R) {
2105
- t.pending_buf[t.pending++] = R >>> 8 & 255, t.pending_buf[t.pending++] = 255 & R;
2106
- }
2107
- function G(t, R) {
2108
- var D, _, v = t.max_chain_length, z = t.strstart, W = t.prev_length, J = t.nice_match, T = t.strstart > t.w_size - Y ? t.strstart - (t.w_size - Y) : 0, q = t.window, nt = t.w_mask, X = t.prev, it = t.strstart + F, ft = q[z + W - 1], ct = q[z + W];
2109
- t.prev_length >= t.good_match && (v >>= 2), J > t.lookahead && (J = t.lookahead);
2110
- do
2111
- if (q[(D = R) + W] === ct && q[D + W - 1] === ft && q[D] === q[z] && q[++D] === q[z + 1]) {
2112
- z += 2, D++;
2113
- do
2114
- ;
2115
- while (q[++z] === q[++D] && q[++z] === q[++D] && q[++z] === q[++D] && q[++z] === q[++D] && q[++z] === q[++D] && q[++z] === q[++D] && q[++z] === q[++D] && q[++z] === q[++D] && z < it);
2116
- if (_ = F - (it - z), z = it - F, W < _) {
2117
- if (t.match_start = R, J <= (W = _)) break;
2118
- ft = q[z + W - 1], ct = q[z + W];
2119
- }
2120
- }
2121
- while ((R = X[R & nt]) > T && --v != 0);
2122
- return W <= t.lookahead ? W : t.lookahead;
2123
- }
2124
- function ut(t) {
2125
- var R, D, _, v, z, W, J, T, q, nt, X = t.w_size;
2126
- do {
2127
- if (v = t.window_size - t.lookahead - t.strstart, t.strstart >= X + (X - Y)) {
2128
- for (o.arraySet(t.window, t.window, X, X, 0), t.match_start -= X, t.strstart -= X, t.block_start -= X, R = D = t.hash_size; _ = t.head[--R], t.head[R] = X <= _ ? _ - X : 0, --D; ) ;
2129
- for (R = D = X; _ = t.prev[--R], t.prev[R] = X <= _ ? _ - X : 0, --D; ) ;
2130
- v += X;
2131
- }
2132
- if (t.strm.avail_in === 0) break;
2133
- if (W = t.strm, J = t.window, T = t.strstart + t.lookahead, q = v, nt = void 0, nt = W.avail_in, q < nt && (nt = q), D = nt === 0 ? 0 : (W.avail_in -= nt, o.arraySet(J, W.input, W.next_in, nt, T), W.state.wrap === 1 ? W.adler = a(W.adler, J, nt, T) : W.state.wrap === 2 && (W.adler = h(W.adler, J, nt, T)), W.next_in += nt, W.total_in += nt, nt), t.lookahead += D, t.lookahead + t.insert >= x) for (z = t.strstart - t.insert, t.ins_h = t.window[z], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[z + 1]) & t.hash_mask; t.insert && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[z + x - 1]) & t.hash_mask, t.prev[z & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = z, z++, t.insert--, !(t.lookahead + t.insert < x)); ) ;
2134
- } while (t.lookahead < Y && t.strm.avail_in !== 0);
2135
- }
2136
- function lt(t, R) {
2137
- for (var D, _; ; ) {
2138
- if (t.lookahead < Y) {
2139
- if (ut(t), t.lookahead < Y && R === d) return s;
2140
- if (t.lookahead === 0) break;
2141
- }
2142
- if (D = 0, t.lookahead >= x && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + x - 1]) & t.hash_mask, D = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), D !== 0 && t.strstart - D <= t.w_size - Y && (t.match_length = G(t, D)), t.match_length >= x) if (_ = n._tr_tally(t, t.strstart - t.match_start, t.match_length - x), t.lookahead -= t.match_length, t.match_length <= t.max_lazy_match && t.lookahead >= x) {
2143
- for (t.match_length--; t.strstart++, t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + x - 1]) & t.hash_mask, D = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart, --t.match_length != 0; ) ;
2144
- t.strstart++;
2145
- } else t.strstart += t.match_length, t.match_length = 0, t.ins_h = t.window[t.strstart], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + 1]) & t.hash_mask;
2146
- else _ = n._tr_tally(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++;
2147
- if (_ && (E(t, !1), t.strm.avail_out === 0)) return s;
2148
- }
2149
- return t.insert = t.strstart < x - 1 ? t.strstart : x - 1, R === m ? (E(t, !0), t.strm.avail_out === 0 ? $ : Z) : t.last_lit && (E(t, !1), t.strm.avail_out === 0) ? s : N;
2150
- }
2151
- function ot(t, R) {
2152
- for (var D, _, v; ; ) {
2153
- if (t.lookahead < Y) {
2154
- if (ut(t), t.lookahead < Y && R === d) return s;
2155
- if (t.lookahead === 0) break;
2156
- }
2157
- if (D = 0, t.lookahead >= x && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + x - 1]) & t.hash_mask, D = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), t.prev_length = t.match_length, t.prev_match = t.match_start, t.match_length = x - 1, D !== 0 && t.prev_length < t.max_lazy_match && t.strstart - D <= t.w_size - Y && (t.match_length = G(t, D), t.match_length <= 5 && (t.strategy === 1 || t.match_length === x && 4096 < t.strstart - t.match_start) && (t.match_length = x - 1)), t.prev_length >= x && t.match_length <= t.prev_length) {
2158
- for (v = t.strstart + t.lookahead - x, _ = n._tr_tally(t, t.strstart - 1 - t.prev_match, t.prev_length - x), t.lookahead -= t.prev_length - 1, t.prev_length -= 2; ++t.strstart <= v && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + x - 1]) & t.hash_mask, D = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), --t.prev_length != 0; ) ;
2159
- if (t.match_available = 0, t.match_length = x - 1, t.strstart++, _ && (E(t, !1), t.strm.avail_out === 0)) return s;
2160
- } else if (t.match_available) {
2161
- if ((_ = n._tr_tally(t, 0, t.window[t.strstart - 1])) && E(t, !1), t.strstart++, t.lookahead--, t.strm.avail_out === 0) return s;
2162
- } else t.match_available = 1, t.strstart++, t.lookahead--;
2163
- }
2164
- return t.match_available && (_ = n._tr_tally(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < x - 1 ? t.strstart : x - 1, R === m ? (E(t, !0), t.strm.avail_out === 0 ? $ : Z) : t.last_lit && (E(t, !1), t.strm.avail_out === 0) ? s : N;
2165
- }
2166
- function O(t, R, D, _, v) {
2167
- this.good_length = t, this.max_lazy = R, this.nice_length = D, this.max_chain = _, this.func = v;
2168
- }
2169
- function j() {
2170
- this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = b, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new o.Buf16(2 * U), this.dyn_dtree = new o.Buf16(2 * (2 * I + 1)), this.bl_tree = new o.Buf16(2 * (2 * M + 1)), at(this.dyn_ltree), at(this.dyn_dtree), at(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new o.Buf16(L + 1), this.heap = new o.Buf16(2 * C + 1), at(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new o.Buf16(2 * C + 1), at(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
2171
- }
2172
- function K(t) {
2173
- var R;
2174
- return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = u, (R = t.state).pending = 0, R.pending_out = 0, R.wrap < 0 && (R.wrap = -R.wrap), R.status = R.wrap ? S : P, t.adler = R.wrap === 2 ? 0 : 1, R.last_flush = d, n._tr_init(R), r) : st(t, f);
2175
- }
2176
- function Q(t) {
2177
- var R = K(t);
2178
- return R === r && function(D) {
2179
- D.window_size = 2 * D.w_size, at(D.head), D.max_lazy_match = i[D.level].max_lazy, D.good_match = i[D.level].good_length, D.nice_match = i[D.level].nice_length, D.max_chain_length = i[D.level].max_chain, D.strstart = 0, D.block_start = 0, D.lookahead = 0, D.insert = 0, D.match_length = D.prev_length = x - 1, D.match_available = 0, D.ins_h = 0;
2180
- }(t.state), R;
2181
- }
2182
- function et(t, R, D, _, v, z) {
2183
- if (!t) return f;
2184
- var W = 1;
2185
- if (R === l && (R = 6), _ < 0 ? (W = 0, _ = -_) : 15 < _ && (W = 2, _ -= 16), v < 1 || A < v || D !== b || _ < 8 || 15 < _ || R < 0 || 9 < R || z < 0 || c < z) return st(t, f);
2186
- _ === 8 && (_ = 9);
2187
- var J = new j();
2188
- return (t.state = J).strm = t, J.wrap = W, J.gzhead = null, J.w_bits = _, J.w_size = 1 << J.w_bits, J.w_mask = J.w_size - 1, J.hash_bits = v + 7, J.hash_size = 1 << J.hash_bits, J.hash_mask = J.hash_size - 1, J.hash_shift = ~~((J.hash_bits + x - 1) / x), J.window = new o.Buf8(2 * J.w_size), J.head = new o.Buf16(J.hash_size), J.prev = new o.Buf16(J.w_size), J.lit_bufsize = 1 << v + 6, J.pending_buf_size = 4 * J.lit_bufsize, J.pending_buf = new o.Buf8(J.pending_buf_size), J.d_buf = 1 * J.lit_bufsize, J.l_buf = 3 * J.lit_bufsize, J.level = R, J.strategy = z, J.method = D, Q(t);
2189
- }
2190
- i = [new O(0, 0, 0, 0, function(t, R) {
2191
- var D = 65535;
2192
- for (D > t.pending_buf_size - 5 && (D = t.pending_buf_size - 5); ; ) {
2193
- if (t.lookahead <= 1) {
2194
- if (ut(t), t.lookahead === 0 && R === d) return s;
2195
- if (t.lookahead === 0) break;
2196
- }
2197
- t.strstart += t.lookahead, t.lookahead = 0;
2198
- var _ = t.block_start + D;
2199
- if ((t.strstart === 0 || t.strstart >= _) && (t.lookahead = t.strstart - _, t.strstart = _, E(t, !1), t.strm.avail_out === 0) || t.strstart - t.block_start >= t.w_size - Y && (E(t, !1), t.strm.avail_out === 0)) return s;
2200
- }
2201
- return t.insert = 0, R === m ? (E(t, !0), t.strm.avail_out === 0 ? $ : Z) : (t.strstart > t.block_start && (E(t, !1), t.strm.avail_out), s);
2202
- }), new O(4, 4, 8, 4, lt), new O(4, 5, 16, 8, lt), new O(4, 6, 32, 32, lt), new O(4, 4, 16, 16, ot), new O(8, 16, 32, 32, ot), new O(8, 16, 128, 128, ot), new O(8, 32, 128, 256, ot), new O(32, 128, 258, 1024, ot), new O(32, 258, 258, 4096, ot)], y.deflateInit = function(t, R) {
2203
- return et(t, R, b, 15, 8, 0);
2204
- }, y.deflateInit2 = et, y.deflateReset = Q, y.deflateResetKeep = K, y.deflateSetHeader = function(t, R) {
2205
- return t && t.state ? t.state.wrap !== 2 ? f : (t.state.gzhead = R, r) : f;
2206
- }, y.deflate = function(t, R) {
2207
- var D, _, v, z;
2208
- if (!t || !t.state || 5 < R || R < 0) return t ? st(t, f) : f;
2209
- if (_ = t.state, !t.output || !t.input && t.avail_in !== 0 || _.status === 666 && R !== m) return st(t, t.avail_out === 0 ? -5 : f);
2210
- if (_.strm = t, D = _.last_flush, _.last_flush = R, _.status === S) if (_.wrap === 2) t.adler = 0, rt(_, 31), rt(_, 139), rt(_, 8), _.gzhead ? (rt(_, (_.gzhead.text ? 1 : 0) + (_.gzhead.hcrc ? 2 : 0) + (_.gzhead.extra ? 4 : 0) + (_.gzhead.name ? 8 : 0) + (_.gzhead.comment ? 16 : 0)), rt(_, 255 & _.gzhead.time), rt(_, _.gzhead.time >> 8 & 255), rt(_, _.gzhead.time >> 16 & 255), rt(_, _.gzhead.time >> 24 & 255), rt(_, _.level === 9 ? 2 : 2 <= _.strategy || _.level < 2 ? 4 : 0), rt(_, 255 & _.gzhead.os), _.gzhead.extra && _.gzhead.extra.length && (rt(_, 255 & _.gzhead.extra.length), rt(_, _.gzhead.extra.length >> 8 & 255)), _.gzhead.hcrc && (t.adler = h(t.adler, _.pending_buf, _.pending, 0)), _.gzindex = 0, _.status = 69) : (rt(_, 0), rt(_, 0), rt(_, 0), rt(_, 0), rt(_, 0), rt(_, _.level === 9 ? 2 : 2 <= _.strategy || _.level < 2 ? 4 : 0), rt(_, 3), _.status = P);
2211
- else {
2212
- var W = b + (_.w_bits - 8 << 4) << 8;
2213
- W |= (2 <= _.strategy || _.level < 2 ? 0 : _.level < 6 ? 1 : _.level === 6 ? 2 : 3) << 6, _.strstart !== 0 && (W |= 32), W += 31 - W % 31, _.status = P, V(_, W), _.strstart !== 0 && (V(_, t.adler >>> 16), V(_, 65535 & t.adler)), t.adler = 1;
2214
- }
2215
- if (_.status === 69) if (_.gzhead.extra) {
2216
- for (v = _.pending; _.gzindex < (65535 & _.gzhead.extra.length) && (_.pending !== _.pending_buf_size || (_.gzhead.hcrc && _.pending > v && (t.adler = h(t.adler, _.pending_buf, _.pending - v, v)), B(t), v = _.pending, _.pending !== _.pending_buf_size)); ) rt(_, 255 & _.gzhead.extra[_.gzindex]), _.gzindex++;
2217
- _.gzhead.hcrc && _.pending > v && (t.adler = h(t.adler, _.pending_buf, _.pending - v, v)), _.gzindex === _.gzhead.extra.length && (_.gzindex = 0, _.status = 73);
2218
- } else _.status = 73;
2219
- if (_.status === 73) if (_.gzhead.name) {
2220
- v = _.pending;
2221
- do {
2222
- if (_.pending === _.pending_buf_size && (_.gzhead.hcrc && _.pending > v && (t.adler = h(t.adler, _.pending_buf, _.pending - v, v)), B(t), v = _.pending, _.pending === _.pending_buf_size)) {
2223
- z = 1;
2224
- break;
2225
- }
2226
- z = _.gzindex < _.gzhead.name.length ? 255 & _.gzhead.name.charCodeAt(_.gzindex++) : 0, rt(_, z);
2227
- } while (z !== 0);
2228
- _.gzhead.hcrc && _.pending > v && (t.adler = h(t.adler, _.pending_buf, _.pending - v, v)), z === 0 && (_.gzindex = 0, _.status = 91);
2229
- } else _.status = 91;
2230
- if (_.status === 91) if (_.gzhead.comment) {
2231
- v = _.pending;
2232
- do {
2233
- if (_.pending === _.pending_buf_size && (_.gzhead.hcrc && _.pending > v && (t.adler = h(t.adler, _.pending_buf, _.pending - v, v)), B(t), v = _.pending, _.pending === _.pending_buf_size)) {
2234
- z = 1;
2235
- break;
2236
- }
2237
- z = _.gzindex < _.gzhead.comment.length ? 255 & _.gzhead.comment.charCodeAt(_.gzindex++) : 0, rt(_, z);
2238
- } while (z !== 0);
2239
- _.gzhead.hcrc && _.pending > v && (t.adler = h(t.adler, _.pending_buf, _.pending - v, v)), z === 0 && (_.status = 103);
2240
- } else _.status = 103;
2241
- if (_.status === 103 && (_.gzhead.hcrc ? (_.pending + 2 > _.pending_buf_size && B(t), _.pending + 2 <= _.pending_buf_size && (rt(_, 255 & t.adler), rt(_, t.adler >> 8 & 255), t.adler = 0, _.status = P)) : _.status = P), _.pending !== 0) {
2242
- if (B(t), t.avail_out === 0) return _.last_flush = -1, r;
2243
- } else if (t.avail_in === 0 && H(R) <= H(D) && R !== m) return st(t, -5);
2244
- if (_.status === 666 && t.avail_in !== 0) return st(t, -5);
2245
- if (t.avail_in !== 0 || _.lookahead !== 0 || R !== d && _.status !== 666) {
2246
- var J = _.strategy === 2 ? function(T, q) {
2247
- for (var nt; ; ) {
2248
- if (T.lookahead === 0 && (ut(T), T.lookahead === 0)) {
2249
- if (q === d) return s;
2250
- break;
2251
- }
2252
- if (T.match_length = 0, nt = n._tr_tally(T, 0, T.window[T.strstart]), T.lookahead--, T.strstart++, nt && (E(T, !1), T.strm.avail_out === 0)) return s;
2253
- }
2254
- return T.insert = 0, q === m ? (E(T, !0), T.strm.avail_out === 0 ? $ : Z) : T.last_lit && (E(T, !1), T.strm.avail_out === 0) ? s : N;
2255
- }(_, R) : _.strategy === 3 ? function(T, q) {
2256
- for (var nt, X, it, ft, ct = T.window; ; ) {
2257
- if (T.lookahead <= F) {
2258
- if (ut(T), T.lookahead <= F && q === d) return s;
2259
- if (T.lookahead === 0) break;
2260
- }
2261
- if (T.match_length = 0, T.lookahead >= x && 0 < T.strstart && (X = ct[it = T.strstart - 1]) === ct[++it] && X === ct[++it] && X === ct[++it]) {
2262
- ft = T.strstart + F;
2263
- do
2264
- ;
2265
- while (X === ct[++it] && X === ct[++it] && X === ct[++it] && X === ct[++it] && X === ct[++it] && X === ct[++it] && X === ct[++it] && X === ct[++it] && it < ft);
2266
- T.match_length = F - (ft - it), T.match_length > T.lookahead && (T.match_length = T.lookahead);
2267
- }
2268
- if (T.match_length >= x ? (nt = n._tr_tally(T, 1, T.match_length - x), T.lookahead -= T.match_length, T.strstart += T.match_length, T.match_length = 0) : (nt = n._tr_tally(T, 0, T.window[T.strstart]), T.lookahead--, T.strstart++), nt && (E(T, !1), T.strm.avail_out === 0)) return s;
2269
- }
2270
- return T.insert = 0, q === m ? (E(T, !0), T.strm.avail_out === 0 ? $ : Z) : T.last_lit && (E(T, !1), T.strm.avail_out === 0) ? s : N;
2271
- }(_, R) : i[_.level].func(_, R);
2272
- if (J !== $ && J !== Z || (_.status = 666), J === s || J === $) return t.avail_out === 0 && (_.last_flush = -1), r;
2273
- if (J === N && (R === 1 ? n._tr_align(_) : R !== 5 && (n._tr_stored_block(_, 0, 0, !1), R === 3 && (at(_.head), _.lookahead === 0 && (_.strstart = 0, _.block_start = 0, _.insert = 0))), B(t), t.avail_out === 0)) return _.last_flush = -1, r;
2274
- }
2275
- return R !== m ? r : _.wrap <= 0 ? 1 : (_.wrap === 2 ? (rt(_, 255 & t.adler), rt(_, t.adler >> 8 & 255), rt(_, t.adler >> 16 & 255), rt(_, t.adler >> 24 & 255), rt(_, 255 & t.total_in), rt(_, t.total_in >> 8 & 255), rt(_, t.total_in >> 16 & 255), rt(_, t.total_in >> 24 & 255)) : (V(_, t.adler >>> 16), V(_, 65535 & t.adler)), B(t), 0 < _.wrap && (_.wrap = -_.wrap), _.pending !== 0 ? r : 1);
2276
- }, y.deflateEnd = function(t) {
2277
- var R;
2278
- return t && t.state ? (R = t.state.status) !== S && R !== 69 && R !== 73 && R !== 91 && R !== 103 && R !== P && R !== 666 ? st(t, f) : (t.state = null, R === P ? st(t, -3) : r) : f;
2279
- }, y.deflateSetDictionary = function(t, R) {
2280
- var D, _, v, z, W, J, T, q, nt = R.length;
2281
- if (!t || !t.state || (z = (D = t.state).wrap) === 2 || z === 1 && D.status !== S || D.lookahead) return f;
2282
- for (z === 1 && (t.adler = a(t.adler, R, nt, 0)), D.wrap = 0, nt >= D.w_size && (z === 0 && (at(D.head), D.strstart = 0, D.block_start = 0, D.insert = 0), q = new o.Buf8(D.w_size), o.arraySet(q, R, nt - D.w_size, D.w_size, 0), R = q, nt = D.w_size), W = t.avail_in, J = t.next_in, T = t.input, t.avail_in = nt, t.next_in = 0, t.input = R, ut(D); D.lookahead >= x; ) {
2283
- for (_ = D.strstart, v = D.lookahead - (x - 1); D.ins_h = (D.ins_h << D.hash_shift ^ D.window[_ + x - 1]) & D.hash_mask, D.prev[_ & D.w_mask] = D.head[D.ins_h], D.head[D.ins_h] = _, _++, --v; ) ;
2284
- D.strstart = _, D.lookahead = x - 1, ut(D);
2285
- }
2286
- return D.strstart += D.lookahead, D.block_start = D.strstart, D.insert = D.lookahead, D.lookahead = 0, D.match_length = D.prev_length = x - 1, D.match_available = 0, t.next_in = J, t.input = T, t.avail_in = W, D.wrap = z, r;
2287
- }, y.deflateInfo = "pako deflate (from Nodeca project)";
2288
- }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, k, y) {
2289
- k.exports = function() {
2290
- this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
2291
- };
2292
- }, {}], 48: [function(e, k, y) {
2293
- k.exports = function(i, o) {
2294
- var n, a, h, p, d, m, r, f, l, c, u, b, A, C, I, M, U, L, x, F, Y, S, P, s, N;
2295
- n = i.state, a = i.next_in, s = i.input, h = a + (i.avail_in - 5), p = i.next_out, N = i.output, d = p - (o - i.avail_out), m = p + (i.avail_out - 257), r = n.dmax, f = n.wsize, l = n.whave, c = n.wnext, u = n.window, b = n.hold, A = n.bits, C = n.lencode, I = n.distcode, M = (1 << n.lenbits) - 1, U = (1 << n.distbits) - 1;
2296
- t: do {
2297
- A < 15 && (b += s[a++] << A, A += 8, b += s[a++] << A, A += 8), L = C[b & M];
2298
- e: for (; ; ) {
2299
- if (b >>>= x = L >>> 24, A -= x, (x = L >>> 16 & 255) === 0) N[p++] = 65535 & L;
2300
- else {
2301
- if (!(16 & x)) {
2302
- if ((64 & x) == 0) {
2303
- L = C[(65535 & L) + (b & (1 << x) - 1)];
2304
- continue e;
2305
- }
2306
- if (32 & x) {
2307
- n.mode = 12;
2308
- break t;
2309
- }
2310
- i.msg = "invalid literal/length code", n.mode = 30;
2311
- break t;
2312
- }
2313
- F = 65535 & L, (x &= 15) && (A < x && (b += s[a++] << A, A += 8), F += b & (1 << x) - 1, b >>>= x, A -= x), A < 15 && (b += s[a++] << A, A += 8, b += s[a++] << A, A += 8), L = I[b & U];
2314
- r: for (; ; ) {
2315
- if (b >>>= x = L >>> 24, A -= x, !(16 & (x = L >>> 16 & 255))) {
2316
- if ((64 & x) == 0) {
2317
- L = I[(65535 & L) + (b & (1 << x) - 1)];
2318
- continue r;
2319
- }
2320
- i.msg = "invalid distance code", n.mode = 30;
2321
- break t;
2322
- }
2323
- if (Y = 65535 & L, A < (x &= 15) && (b += s[a++] << A, (A += 8) < x && (b += s[a++] << A, A += 8)), r < (Y += b & (1 << x) - 1)) {
2324
- i.msg = "invalid distance too far back", n.mode = 30;
2325
- break t;
2326
- }
2327
- if (b >>>= x, A -= x, (x = p - d) < Y) {
2328
- if (l < (x = Y - x) && n.sane) {
2329
- i.msg = "invalid distance too far back", n.mode = 30;
2330
- break t;
2331
- }
2332
- if (P = u, (S = 0) === c) {
2333
- if (S += f - x, x < F) {
2334
- for (F -= x; N[p++] = u[S++], --x; ) ;
2335
- S = p - Y, P = N;
2336
- }
2337
- } else if (c < x) {
2338
- if (S += f + c - x, (x -= c) < F) {
2339
- for (F -= x; N[p++] = u[S++], --x; ) ;
2340
- if (S = 0, c < F) {
2341
- for (F -= x = c; N[p++] = u[S++], --x; ) ;
2342
- S = p - Y, P = N;
2343
- }
2344
- }
2345
- } else if (S += c - x, x < F) {
2346
- for (F -= x; N[p++] = u[S++], --x; ) ;
2347
- S = p - Y, P = N;
2348
- }
2349
- for (; 2 < F; ) N[p++] = P[S++], N[p++] = P[S++], N[p++] = P[S++], F -= 3;
2350
- F && (N[p++] = P[S++], 1 < F && (N[p++] = P[S++]));
2351
- } else {
2352
- for (S = p - Y; N[p++] = N[S++], N[p++] = N[S++], N[p++] = N[S++], 2 < (F -= 3); ) ;
2353
- F && (N[p++] = N[S++], 1 < F && (N[p++] = N[S++]));
2354
- }
2355
- break;
2356
- }
2357
- }
2358
- break;
2359
- }
2360
- } while (a < h && p < m);
2361
- a -= F = A >> 3, b &= (1 << (A -= F << 3)) - 1, i.next_in = a, i.next_out = p, i.avail_in = a < h ? h - a + 5 : 5 - (a - h), i.avail_out = p < m ? m - p + 257 : 257 - (p - m), n.hold = b, n.bits = A;
2362
- };
2363
- }, {}], 49: [function(e, k, y) {
2364
- var i = e("../utils/common"), o = e("./adler32"), n = e("./crc32"), a = e("./inffast"), h = e("./inftrees"), p = 1, d = 2, m = 0, r = -2, f = 1, l = 852, c = 592;
2365
- function u(S) {
2366
- return (S >>> 24 & 255) + (S >>> 8 & 65280) + ((65280 & S) << 8) + ((255 & S) << 24);
2367
- }
2368
- function b() {
2369
- this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new i.Buf16(320), this.work = new i.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
2370
- }
2371
- function A(S) {
2372
- var P;
2373
- return S && S.state ? (P = S.state, S.total_in = S.total_out = P.total = 0, S.msg = "", P.wrap && (S.adler = 1 & P.wrap), P.mode = f, P.last = 0, P.havedict = 0, P.dmax = 32768, P.head = null, P.hold = 0, P.bits = 0, P.lencode = P.lendyn = new i.Buf32(l), P.distcode = P.distdyn = new i.Buf32(c), P.sane = 1, P.back = -1, m) : r;
2374
- }
2375
- function C(S) {
2376
- var P;
2377
- return S && S.state ? ((P = S.state).wsize = 0, P.whave = 0, P.wnext = 0, A(S)) : r;
2378
- }
2379
- function I(S, P) {
2380
- var s, N;
2381
- return S && S.state ? (N = S.state, P < 0 ? (s = 0, P = -P) : (s = 1 + (P >> 4), P < 48 && (P &= 15)), P && (P < 8 || 15 < P) ? r : (N.window !== null && N.wbits !== P && (N.window = null), N.wrap = s, N.wbits = P, C(S))) : r;
2382
- }
2383
- function M(S, P) {
2384
- var s, N;
2385
- return S ? (N = new b(), (S.state = N).window = null, (s = I(S, P)) !== m && (S.state = null), s) : r;
2386
- }
2387
- var U, L, x = !0;
2388
- function F(S) {
2389
- if (x) {
2390
- var P;
2391
- for (U = new i.Buf32(512), L = new i.Buf32(32), P = 0; P < 144; ) S.lens[P++] = 8;
2392
- for (; P < 256; ) S.lens[P++] = 9;
2393
- for (; P < 280; ) S.lens[P++] = 7;
2394
- for (; P < 288; ) S.lens[P++] = 8;
2395
- for (h(p, S.lens, 0, 288, U, 0, S.work, { bits: 9 }), P = 0; P < 32; ) S.lens[P++] = 5;
2396
- h(d, S.lens, 0, 32, L, 0, S.work, { bits: 5 }), x = !1;
2397
- }
2398
- S.lencode = U, S.lenbits = 9, S.distcode = L, S.distbits = 5;
2399
- }
2400
- function Y(S, P, s, N) {
2401
- var $, Z = S.state;
2402
- return Z.window === null && (Z.wsize = 1 << Z.wbits, Z.wnext = 0, Z.whave = 0, Z.window = new i.Buf8(Z.wsize)), N >= Z.wsize ? (i.arraySet(Z.window, P, s - Z.wsize, Z.wsize, 0), Z.wnext = 0, Z.whave = Z.wsize) : (N < ($ = Z.wsize - Z.wnext) && ($ = N), i.arraySet(Z.window, P, s - N, $, Z.wnext), (N -= $) ? (i.arraySet(Z.window, P, s - N, N, 0), Z.wnext = N, Z.whave = Z.wsize) : (Z.wnext += $, Z.wnext === Z.wsize && (Z.wnext = 0), Z.whave < Z.wsize && (Z.whave += $))), 0;
2403
- }
2404
- y.inflateReset = C, y.inflateReset2 = I, y.inflateResetKeep = A, y.inflateInit = function(S) {
2405
- return M(S, 15);
2406
- }, y.inflateInit2 = M, y.inflate = function(S, P) {
2407
- var s, N, $, Z, st, H, at, B, E, rt, V, G, ut, lt, ot, O, j, K, Q, et, t, R, D, _, v = 0, z = new i.Buf8(4), W = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
2408
- if (!S || !S.state || !S.output || !S.input && S.avail_in !== 0) return r;
2409
- (s = S.state).mode === 12 && (s.mode = 13), st = S.next_out, $ = S.output, at = S.avail_out, Z = S.next_in, N = S.input, H = S.avail_in, B = s.hold, E = s.bits, rt = H, V = at, R = m;
2410
- t: for (; ; ) switch (s.mode) {
2411
- case f:
2412
- if (s.wrap === 0) {
2413
- s.mode = 13;
2414
- break;
2415
- }
2416
- for (; E < 16; ) {
2417
- if (H === 0) break t;
2418
- H--, B += N[Z++] << E, E += 8;
2419
- }
2420
- if (2 & s.wrap && B === 35615) {
2421
- z[s.check = 0] = 255 & B, z[1] = B >>> 8 & 255, s.check = n(s.check, z, 2, 0), E = B = 0, s.mode = 2;
2422
- break;
2423
- }
2424
- if (s.flags = 0, s.head && (s.head.done = !1), !(1 & s.wrap) || (((255 & B) << 8) + (B >> 8)) % 31) {
2425
- S.msg = "incorrect header check", s.mode = 30;
2426
- break;
2427
- }
2428
- if ((15 & B) != 8) {
2429
- S.msg = "unknown compression method", s.mode = 30;
2430
- break;
2431
- }
2432
- if (E -= 4, t = 8 + (15 & (B >>>= 4)), s.wbits === 0) s.wbits = t;
2433
- else if (t > s.wbits) {
2434
- S.msg = "invalid window size", s.mode = 30;
2435
- break;
2436
- }
2437
- s.dmax = 1 << t, S.adler = s.check = 1, s.mode = 512 & B ? 10 : 12, E = B = 0;
2438
- break;
2439
- case 2:
2440
- for (; E < 16; ) {
2441
- if (H === 0) break t;
2442
- H--, B += N[Z++] << E, E += 8;
2443
- }
2444
- if (s.flags = B, (255 & s.flags) != 8) {
2445
- S.msg = "unknown compression method", s.mode = 30;
2446
- break;
2447
- }
2448
- if (57344 & s.flags) {
2449
- S.msg = "unknown header flags set", s.mode = 30;
2450
- break;
2451
- }
2452
- s.head && (s.head.text = B >> 8 & 1), 512 & s.flags && (z[0] = 255 & B, z[1] = B >>> 8 & 255, s.check = n(s.check, z, 2, 0)), E = B = 0, s.mode = 3;
2453
- case 3:
2454
- for (; E < 32; ) {
2455
- if (H === 0) break t;
2456
- H--, B += N[Z++] << E, E += 8;
2457
- }
2458
- s.head && (s.head.time = B), 512 & s.flags && (z[0] = 255 & B, z[1] = B >>> 8 & 255, z[2] = B >>> 16 & 255, z[3] = B >>> 24 & 255, s.check = n(s.check, z, 4, 0)), E = B = 0, s.mode = 4;
2459
- case 4:
2460
- for (; E < 16; ) {
2461
- if (H === 0) break t;
2462
- H--, B += N[Z++] << E, E += 8;
2463
- }
2464
- s.head && (s.head.xflags = 255 & B, s.head.os = B >> 8), 512 & s.flags && (z[0] = 255 & B, z[1] = B >>> 8 & 255, s.check = n(s.check, z, 2, 0)), E = B = 0, s.mode = 5;
2465
- case 5:
2466
- if (1024 & s.flags) {
2467
- for (; E < 16; ) {
2468
- if (H === 0) break t;
2469
- H--, B += N[Z++] << E, E += 8;
2470
- }
2471
- s.length = B, s.head && (s.head.extra_len = B), 512 & s.flags && (z[0] = 255 & B, z[1] = B >>> 8 & 255, s.check = n(s.check, z, 2, 0)), E = B = 0;
2472
- } else s.head && (s.head.extra = null);
2473
- s.mode = 6;
2474
- case 6:
2475
- if (1024 & s.flags && (H < (G = s.length) && (G = H), G && (s.head && (t = s.head.extra_len - s.length, s.head.extra || (s.head.extra = new Array(s.head.extra_len)), i.arraySet(s.head.extra, N, Z, G, t)), 512 & s.flags && (s.check = n(s.check, N, G, Z)), H -= G, Z += G, s.length -= G), s.length)) break t;
2476
- s.length = 0, s.mode = 7;
2477
- case 7:
2478
- if (2048 & s.flags) {
2479
- if (H === 0) break t;
2480
- for (G = 0; t = N[Z + G++], s.head && t && s.length < 65536 && (s.head.name += String.fromCharCode(t)), t && G < H; ) ;
2481
- if (512 & s.flags && (s.check = n(s.check, N, G, Z)), H -= G, Z += G, t) break t;
2482
- } else s.head && (s.head.name = null);
2483
- s.length = 0, s.mode = 8;
2484
- case 8:
2485
- if (4096 & s.flags) {
2486
- if (H === 0) break t;
2487
- for (G = 0; t = N[Z + G++], s.head && t && s.length < 65536 && (s.head.comment += String.fromCharCode(t)), t && G < H; ) ;
2488
- if (512 & s.flags && (s.check = n(s.check, N, G, Z)), H -= G, Z += G, t) break t;
2489
- } else s.head && (s.head.comment = null);
2490
- s.mode = 9;
2491
- case 9:
2492
- if (512 & s.flags) {
2493
- for (; E < 16; ) {
2494
- if (H === 0) break t;
2495
- H--, B += N[Z++] << E, E += 8;
2496
- }
2497
- if (B !== (65535 & s.check)) {
2498
- S.msg = "header crc mismatch", s.mode = 30;
2499
- break;
2500
- }
2501
- E = B = 0;
2502
- }
2503
- s.head && (s.head.hcrc = s.flags >> 9 & 1, s.head.done = !0), S.adler = s.check = 0, s.mode = 12;
2504
- break;
2505
- case 10:
2506
- for (; E < 32; ) {
2507
- if (H === 0) break t;
2508
- H--, B += N[Z++] << E, E += 8;
2509
- }
2510
- S.adler = s.check = u(B), E = B = 0, s.mode = 11;
2511
- case 11:
2512
- if (s.havedict === 0) return S.next_out = st, S.avail_out = at, S.next_in = Z, S.avail_in = H, s.hold = B, s.bits = E, 2;
2513
- S.adler = s.check = 1, s.mode = 12;
2514
- case 12:
2515
- if (P === 5 || P === 6) break t;
2516
- case 13:
2517
- if (s.last) {
2518
- B >>>= 7 & E, E -= 7 & E, s.mode = 27;
2519
- break;
2520
- }
2521
- for (; E < 3; ) {
2522
- if (H === 0) break t;
2523
- H--, B += N[Z++] << E, E += 8;
2524
- }
2525
- switch (s.last = 1 & B, E -= 1, 3 & (B >>>= 1)) {
2526
- case 0:
2527
- s.mode = 14;
2528
- break;
2529
- case 1:
2530
- if (F(s), s.mode = 20, P !== 6) break;
2531
- B >>>= 2, E -= 2;
2532
- break t;
2533
- case 2:
2534
- s.mode = 17;
2535
- break;
2536
- case 3:
2537
- S.msg = "invalid block type", s.mode = 30;
2538
- }
2539
- B >>>= 2, E -= 2;
2540
- break;
2541
- case 14:
2542
- for (B >>>= 7 & E, E -= 7 & E; E < 32; ) {
2543
- if (H === 0) break t;
2544
- H--, B += N[Z++] << E, E += 8;
2545
- }
2546
- if ((65535 & B) != (B >>> 16 ^ 65535)) {
2547
- S.msg = "invalid stored block lengths", s.mode = 30;
2548
- break;
2549
- }
2550
- if (s.length = 65535 & B, E = B = 0, s.mode = 15, P === 6) break t;
2551
- case 15:
2552
- s.mode = 16;
2553
- case 16:
2554
- if (G = s.length) {
2555
- if (H < G && (G = H), at < G && (G = at), G === 0) break t;
2556
- i.arraySet($, N, Z, G, st), H -= G, Z += G, at -= G, st += G, s.length -= G;
2557
- break;
2558
- }
2559
- s.mode = 12;
2560
- break;
2561
- case 17:
2562
- for (; E < 14; ) {
2563
- if (H === 0) break t;
2564
- H--, B += N[Z++] << E, E += 8;
2565
- }
2566
- if (s.nlen = 257 + (31 & B), B >>>= 5, E -= 5, s.ndist = 1 + (31 & B), B >>>= 5, E -= 5, s.ncode = 4 + (15 & B), B >>>= 4, E -= 4, 286 < s.nlen || 30 < s.ndist) {
2567
- S.msg = "too many length or distance symbols", s.mode = 30;
2568
- break;
2569
- }
2570
- s.have = 0, s.mode = 18;
2571
- case 18:
2572
- for (; s.have < s.ncode; ) {
2573
- for (; E < 3; ) {
2574
- if (H === 0) break t;
2575
- H--, B += N[Z++] << E, E += 8;
2576
- }
2577
- s.lens[W[s.have++]] = 7 & B, B >>>= 3, E -= 3;
2578
- }
2579
- for (; s.have < 19; ) s.lens[W[s.have++]] = 0;
2580
- if (s.lencode = s.lendyn, s.lenbits = 7, D = { bits: s.lenbits }, R = h(0, s.lens, 0, 19, s.lencode, 0, s.work, D), s.lenbits = D.bits, R) {
2581
- S.msg = "invalid code lengths set", s.mode = 30;
2582
- break;
2583
- }
2584
- s.have = 0, s.mode = 19;
2585
- case 19:
2586
- for (; s.have < s.nlen + s.ndist; ) {
2587
- for (; O = (v = s.lencode[B & (1 << s.lenbits) - 1]) >>> 16 & 255, j = 65535 & v, !((ot = v >>> 24) <= E); ) {
2588
- if (H === 0) break t;
2589
- H--, B += N[Z++] << E, E += 8;
2590
- }
2591
- if (j < 16) B >>>= ot, E -= ot, s.lens[s.have++] = j;
2592
- else {
2593
- if (j === 16) {
2594
- for (_ = ot + 2; E < _; ) {
2595
- if (H === 0) break t;
2596
- H--, B += N[Z++] << E, E += 8;
2597
- }
2598
- if (B >>>= ot, E -= ot, s.have === 0) {
2599
- S.msg = "invalid bit length repeat", s.mode = 30;
2600
- break;
2601
- }
2602
- t = s.lens[s.have - 1], G = 3 + (3 & B), B >>>= 2, E -= 2;
2603
- } else if (j === 17) {
2604
- for (_ = ot + 3; E < _; ) {
2605
- if (H === 0) break t;
2606
- H--, B += N[Z++] << E, E += 8;
2607
- }
2608
- E -= ot, t = 0, G = 3 + (7 & (B >>>= ot)), B >>>= 3, E -= 3;
2609
- } else {
2610
- for (_ = ot + 7; E < _; ) {
2611
- if (H === 0) break t;
2612
- H--, B += N[Z++] << E, E += 8;
2613
- }
2614
- E -= ot, t = 0, G = 11 + (127 & (B >>>= ot)), B >>>= 7, E -= 7;
2615
- }
2616
- if (s.have + G > s.nlen + s.ndist) {
2617
- S.msg = "invalid bit length repeat", s.mode = 30;
2618
- break;
2619
- }
2620
- for (; G--; ) s.lens[s.have++] = t;
2621
- }
2622
- }
2623
- if (s.mode === 30) break;
2624
- if (s.lens[256] === 0) {
2625
- S.msg = "invalid code -- missing end-of-block", s.mode = 30;
2626
- break;
2627
- }
2628
- if (s.lenbits = 9, D = { bits: s.lenbits }, R = h(p, s.lens, 0, s.nlen, s.lencode, 0, s.work, D), s.lenbits = D.bits, R) {
2629
- S.msg = "invalid literal/lengths set", s.mode = 30;
2630
- break;
2631
- }
2632
- if (s.distbits = 6, s.distcode = s.distdyn, D = { bits: s.distbits }, R = h(d, s.lens, s.nlen, s.ndist, s.distcode, 0, s.work, D), s.distbits = D.bits, R) {
2633
- S.msg = "invalid distances set", s.mode = 30;
2634
- break;
2635
- }
2636
- if (s.mode = 20, P === 6) break t;
2637
- case 20:
2638
- s.mode = 21;
2639
- case 21:
2640
- if (6 <= H && 258 <= at) {
2641
- S.next_out = st, S.avail_out = at, S.next_in = Z, S.avail_in = H, s.hold = B, s.bits = E, a(S, V), st = S.next_out, $ = S.output, at = S.avail_out, Z = S.next_in, N = S.input, H = S.avail_in, B = s.hold, E = s.bits, s.mode === 12 && (s.back = -1);
2642
- break;
2643
- }
2644
- for (s.back = 0; O = (v = s.lencode[B & (1 << s.lenbits) - 1]) >>> 16 & 255, j = 65535 & v, !((ot = v >>> 24) <= E); ) {
2645
- if (H === 0) break t;
2646
- H--, B += N[Z++] << E, E += 8;
2647
- }
2648
- if (O && (240 & O) == 0) {
2649
- for (K = ot, Q = O, et = j; O = (v = s.lencode[et + ((B & (1 << K + Q) - 1) >> K)]) >>> 16 & 255, j = 65535 & v, !(K + (ot = v >>> 24) <= E); ) {
2650
- if (H === 0) break t;
2651
- H--, B += N[Z++] << E, E += 8;
2652
- }
2653
- B >>>= K, E -= K, s.back += K;
2654
- }
2655
- if (B >>>= ot, E -= ot, s.back += ot, s.length = j, O === 0) {
2656
- s.mode = 26;
2657
- break;
2658
- }
2659
- if (32 & O) {
2660
- s.back = -1, s.mode = 12;
2661
- break;
2662
- }
2663
- if (64 & O) {
2664
- S.msg = "invalid literal/length code", s.mode = 30;
2665
- break;
2666
- }
2667
- s.extra = 15 & O, s.mode = 22;
2668
- case 22:
2669
- if (s.extra) {
2670
- for (_ = s.extra; E < _; ) {
2671
- if (H === 0) break t;
2672
- H--, B += N[Z++] << E, E += 8;
2673
- }
2674
- s.length += B & (1 << s.extra) - 1, B >>>= s.extra, E -= s.extra, s.back += s.extra;
2675
- }
2676
- s.was = s.length, s.mode = 23;
2677
- case 23:
2678
- for (; O = (v = s.distcode[B & (1 << s.distbits) - 1]) >>> 16 & 255, j = 65535 & v, !((ot = v >>> 24) <= E); ) {
2679
- if (H === 0) break t;
2680
- H--, B += N[Z++] << E, E += 8;
2681
- }
2682
- if ((240 & O) == 0) {
2683
- for (K = ot, Q = O, et = j; O = (v = s.distcode[et + ((B & (1 << K + Q) - 1) >> K)]) >>> 16 & 255, j = 65535 & v, !(K + (ot = v >>> 24) <= E); ) {
2684
- if (H === 0) break t;
2685
- H--, B += N[Z++] << E, E += 8;
2686
- }
2687
- B >>>= K, E -= K, s.back += K;
2688
- }
2689
- if (B >>>= ot, E -= ot, s.back += ot, 64 & O) {
2690
- S.msg = "invalid distance code", s.mode = 30;
2691
- break;
2692
- }
2693
- s.offset = j, s.extra = 15 & O, s.mode = 24;
2694
- case 24:
2695
- if (s.extra) {
2696
- for (_ = s.extra; E < _; ) {
2697
- if (H === 0) break t;
2698
- H--, B += N[Z++] << E, E += 8;
2699
- }
2700
- s.offset += B & (1 << s.extra) - 1, B >>>= s.extra, E -= s.extra, s.back += s.extra;
2701
- }
2702
- if (s.offset > s.dmax) {
2703
- S.msg = "invalid distance too far back", s.mode = 30;
2704
- break;
2705
- }
2706
- s.mode = 25;
2707
- case 25:
2708
- if (at === 0) break t;
2709
- if (G = V - at, s.offset > G) {
2710
- if ((G = s.offset - G) > s.whave && s.sane) {
2711
- S.msg = "invalid distance too far back", s.mode = 30;
2712
- break;
2713
- }
2714
- ut = G > s.wnext ? (G -= s.wnext, s.wsize - G) : s.wnext - G, G > s.length && (G = s.length), lt = s.window;
2715
- } else lt = $, ut = st - s.offset, G = s.length;
2716
- for (at < G && (G = at), at -= G, s.length -= G; $[st++] = lt[ut++], --G; ) ;
2717
- s.length === 0 && (s.mode = 21);
2718
- break;
2719
- case 26:
2720
- if (at === 0) break t;
2721
- $[st++] = s.length, at--, s.mode = 21;
2722
- break;
2723
- case 27:
2724
- if (s.wrap) {
2725
- for (; E < 32; ) {
2726
- if (H === 0) break t;
2727
- H--, B |= N[Z++] << E, E += 8;
2728
- }
2729
- if (V -= at, S.total_out += V, s.total += V, V && (S.adler = s.check = s.flags ? n(s.check, $, V, st - V) : o(s.check, $, V, st - V)), V = at, (s.flags ? B : u(B)) !== s.check) {
2730
- S.msg = "incorrect data check", s.mode = 30;
2731
- break;
2732
- }
2733
- E = B = 0;
2734
- }
2735
- s.mode = 28;
2736
- case 28:
2737
- if (s.wrap && s.flags) {
2738
- for (; E < 32; ) {
2739
- if (H === 0) break t;
2740
- H--, B += N[Z++] << E, E += 8;
2741
- }
2742
- if (B !== (4294967295 & s.total)) {
2743
- S.msg = "incorrect length check", s.mode = 30;
2744
- break;
2745
- }
2746
- E = B = 0;
2747
- }
2748
- s.mode = 29;
2749
- case 29:
2750
- R = 1;
2751
- break t;
2752
- case 30:
2753
- R = -3;
2754
- break t;
2755
- case 31:
2756
- return -4;
2757
- case 32:
2758
- default:
2759
- return r;
2760
- }
2761
- return S.next_out = st, S.avail_out = at, S.next_in = Z, S.avail_in = H, s.hold = B, s.bits = E, (s.wsize || V !== S.avail_out && s.mode < 30 && (s.mode < 27 || P !== 4)) && Y(S, S.output, S.next_out, V - S.avail_out) ? (s.mode = 31, -4) : (rt -= S.avail_in, V -= S.avail_out, S.total_in += rt, S.total_out += V, s.total += V, s.wrap && V && (S.adler = s.check = s.flags ? n(s.check, $, V, S.next_out - V) : o(s.check, $, V, S.next_out - V)), S.data_type = s.bits + (s.last ? 64 : 0) + (s.mode === 12 ? 128 : 0) + (s.mode === 20 || s.mode === 15 ? 256 : 0), (rt == 0 && V === 0 || P === 4) && R === m && (R = -5), R);
2762
- }, y.inflateEnd = function(S) {
2763
- if (!S || !S.state) return r;
2764
- var P = S.state;
2765
- return P.window && (P.window = null), S.state = null, m;
2766
- }, y.inflateGetHeader = function(S, P) {
2767
- var s;
2768
- return S && S.state ? (2 & (s = S.state).wrap) == 0 ? r : ((s.head = P).done = !1, m) : r;
2769
- }, y.inflateSetDictionary = function(S, P) {
2770
- var s, N = P.length;
2771
- return S && S.state ? (s = S.state).wrap !== 0 && s.mode !== 11 ? r : s.mode === 11 && o(1, P, N, 0) !== s.check ? -3 : Y(S, P, N, N) ? (s.mode = 31, -4) : (s.havedict = 1, m) : r;
2772
- }, y.inflateInfo = "pako inflate (from Nodeca project)";
2773
- }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, k, y) {
2774
- var i = e("../utils/common"), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], n = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], a = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], h = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
2775
- k.exports = function(p, d, m, r, f, l, c, u) {
2776
- var b, A, C, I, M, U, L, x, F, Y = u.bits, S = 0, P = 0, s = 0, N = 0, $ = 0, Z = 0, st = 0, H = 0, at = 0, B = 0, E = null, rt = 0, V = new i.Buf16(16), G = new i.Buf16(16), ut = null, lt = 0;
2777
- for (S = 0; S <= 15; S++) V[S] = 0;
2778
- for (P = 0; P < r; P++) V[d[m + P]]++;
2779
- for ($ = Y, N = 15; 1 <= N && V[N] === 0; N--) ;
2780
- if (N < $ && ($ = N), N === 0) return f[l++] = 20971520, f[l++] = 20971520, u.bits = 1, 0;
2781
- for (s = 1; s < N && V[s] === 0; s++) ;
2782
- for ($ < s && ($ = s), S = H = 1; S <= 15; S++) if (H <<= 1, (H -= V[S]) < 0) return -1;
2783
- if (0 < H && (p === 0 || N !== 1)) return -1;
2784
- for (G[1] = 0, S = 1; S < 15; S++) G[S + 1] = G[S] + V[S];
2785
- for (P = 0; P < r; P++) d[m + P] !== 0 && (c[G[d[m + P]]++] = P);
2786
- if (U = p === 0 ? (E = ut = c, 19) : p === 1 ? (E = o, rt -= 257, ut = n, lt -= 257, 256) : (E = a, ut = h, -1), S = s, M = l, st = P = B = 0, C = -1, I = (at = 1 << (Z = $)) - 1, p === 1 && 852 < at || p === 2 && 592 < at) return 1;
2787
- for (; ; ) {
2788
- for (L = S - st, F = c[P] < U ? (x = 0, c[P]) : c[P] > U ? (x = ut[lt + c[P]], E[rt + c[P]]) : (x = 96, 0), b = 1 << S - st, s = A = 1 << Z; f[M + (B >> st) + (A -= b)] = L << 24 | x << 16 | F | 0, A !== 0; ) ;
2789
- for (b = 1 << S - 1; B & b; ) b >>= 1;
2790
- if (b !== 0 ? (B &= b - 1, B += b) : B = 0, P++, --V[S] == 0) {
2791
- if (S === N) break;
2792
- S = d[m + c[P]];
2793
- }
2794
- if ($ < S && (B & I) !== C) {
2795
- for (st === 0 && (st = $), M += s, H = 1 << (Z = S - st); Z + st < N && !((H -= V[Z + st]) <= 0); ) Z++, H <<= 1;
2796
- if (at += 1 << Z, p === 1 && 852 < at || p === 2 && 592 < at) return 1;
2797
- f[C = B & I] = $ << 24 | Z << 16 | M - l | 0;
2798
- }
2799
- }
2800
- return B !== 0 && (f[M + B] = S - st << 24 | 64 << 16 | 0), u.bits = $, 0;
2801
- };
2802
- }, { "../utils/common": 41 }], 51: [function(e, k, y) {
2803
- k.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
2804
- }, {}], 52: [function(e, k, y) {
2805
- var i = e("../utils/common"), o = 0, n = 1;
2806
- function a(v) {
2807
- for (var z = v.length; 0 <= --z; ) v[z] = 0;
2808
- }
2809
- var h = 0, p = 29, d = 256, m = d + 1 + p, r = 30, f = 19, l = 2 * m + 1, c = 15, u = 16, b = 7, A = 256, C = 16, I = 17, M = 18, U = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], L = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], F = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Y = new Array(2 * (m + 2));
2810
- a(Y);
2811
- var S = new Array(2 * r);
2812
- a(S);
2813
- var P = new Array(512);
2814
- a(P);
2815
- var s = new Array(256);
2816
- a(s);
2817
- var N = new Array(p);
2818
- a(N);
2819
- var $, Z, st, H = new Array(r);
2820
- function at(v, z, W, J, T) {
2821
- this.static_tree = v, this.extra_bits = z, this.extra_base = W, this.elems = J, this.max_length = T, this.has_stree = v && v.length;
2822
- }
2823
- function B(v, z) {
2824
- this.dyn_tree = v, this.max_code = 0, this.stat_desc = z;
2825
- }
2826
- function E(v) {
2827
- return v < 256 ? P[v] : P[256 + (v >>> 7)];
2828
- }
2829
- function rt(v, z) {
2830
- v.pending_buf[v.pending++] = 255 & z, v.pending_buf[v.pending++] = z >>> 8 & 255;
2831
- }
2832
- function V(v, z, W) {
2833
- v.bi_valid > u - W ? (v.bi_buf |= z << v.bi_valid & 65535, rt(v, v.bi_buf), v.bi_buf = z >> u - v.bi_valid, v.bi_valid += W - u) : (v.bi_buf |= z << v.bi_valid & 65535, v.bi_valid += W);
2834
- }
2835
- function G(v, z, W) {
2836
- V(v, W[2 * z], W[2 * z + 1]);
2837
- }
2838
- function ut(v, z) {
2839
- for (var W = 0; W |= 1 & v, v >>>= 1, W <<= 1, 0 < --z; ) ;
2840
- return W >>> 1;
2841
- }
2842
- function lt(v, z, W) {
2843
- var J, T, q = new Array(c + 1), nt = 0;
2844
- for (J = 1; J <= c; J++) q[J] = nt = nt + W[J - 1] << 1;
2845
- for (T = 0; T <= z; T++) {
2846
- var X = v[2 * T + 1];
2847
- X !== 0 && (v[2 * T] = ut(q[X]++, X));
2848
- }
2849
- }
2850
- function ot(v) {
2851
- var z;
2852
- for (z = 0; z < m; z++) v.dyn_ltree[2 * z] = 0;
2853
- for (z = 0; z < r; z++) v.dyn_dtree[2 * z] = 0;
2854
- for (z = 0; z < f; z++) v.bl_tree[2 * z] = 0;
2855
- v.dyn_ltree[2 * A] = 1, v.opt_len = v.static_len = 0, v.last_lit = v.matches = 0;
2856
- }
2857
- function O(v) {
2858
- 8 < v.bi_valid ? rt(v, v.bi_buf) : 0 < v.bi_valid && (v.pending_buf[v.pending++] = v.bi_buf), v.bi_buf = 0, v.bi_valid = 0;
2859
- }
2860
- function j(v, z, W, J) {
2861
- var T = 2 * z, q = 2 * W;
2862
- return v[T] < v[q] || v[T] === v[q] && J[z] <= J[W];
2863
- }
2864
- function K(v, z, W) {
2865
- for (var J = v.heap[W], T = W << 1; T <= v.heap_len && (T < v.heap_len && j(z, v.heap[T + 1], v.heap[T], v.depth) && T++, !j(z, J, v.heap[T], v.depth)); ) v.heap[W] = v.heap[T], W = T, T <<= 1;
2866
- v.heap[W] = J;
2867
- }
2868
- function Q(v, z, W) {
2869
- var J, T, q, nt, X = 0;
2870
- if (v.last_lit !== 0) for (; J = v.pending_buf[v.d_buf + 2 * X] << 8 | v.pending_buf[v.d_buf + 2 * X + 1], T = v.pending_buf[v.l_buf + X], X++, J === 0 ? G(v, T, z) : (G(v, (q = s[T]) + d + 1, z), (nt = U[q]) !== 0 && V(v, T -= N[q], nt), G(v, q = E(--J), W), (nt = L[q]) !== 0 && V(v, J -= H[q], nt)), X < v.last_lit; ) ;
2871
- G(v, A, z);
2872
- }
2873
- function et(v, z) {
2874
- var W, J, T, q = z.dyn_tree, nt = z.stat_desc.static_tree, X = z.stat_desc.has_stree, it = z.stat_desc.elems, ft = -1;
2875
- for (v.heap_len = 0, v.heap_max = l, W = 0; W < it; W++) q[2 * W] !== 0 ? (v.heap[++v.heap_len] = ft = W, v.depth[W] = 0) : q[2 * W + 1] = 0;
2876
- for (; v.heap_len < 2; ) q[2 * (T = v.heap[++v.heap_len] = ft < 2 ? ++ft : 0)] = 1, v.depth[T] = 0, v.opt_len--, X && (v.static_len -= nt[2 * T + 1]);
2877
- for (z.max_code = ft, W = v.heap_len >> 1; 1 <= W; W--) K(v, q, W);
2878
- for (T = it; W = v.heap[1], v.heap[1] = v.heap[v.heap_len--], K(v, q, 1), J = v.heap[1], v.heap[--v.heap_max] = W, v.heap[--v.heap_max] = J, q[2 * T] = q[2 * W] + q[2 * J], v.depth[T] = (v.depth[W] >= v.depth[J] ? v.depth[W] : v.depth[J]) + 1, q[2 * W + 1] = q[2 * J + 1] = T, v.heap[1] = T++, K(v, q, 1), 2 <= v.heap_len; ) ;
2879
- v.heap[--v.heap_max] = v.heap[1], function(ct, mt) {
2880
- var Ot, bt, Bt, ht, Ft, qt, wt = mt.dyn_tree, se = mt.max_code, je = mt.stat_desc.static_tree, Fe = mt.stat_desc.has_stree, Ke = mt.stat_desc.extra_bits, ie = mt.stat_desc.extra_base, Rt = mt.stat_desc.max_length, Kt = 0;
2881
- for (ht = 0; ht <= c; ht++) ct.bl_count[ht] = 0;
2882
- for (wt[2 * ct.heap[ct.heap_max] + 1] = 0, Ot = ct.heap_max + 1; Ot < l; Ot++) Rt < (ht = wt[2 * wt[2 * (bt = ct.heap[Ot]) + 1] + 1] + 1) && (ht = Rt, Kt++), wt[2 * bt + 1] = ht, se < bt || (ct.bl_count[ht]++, Ft = 0, ie <= bt && (Ft = Ke[bt - ie]), qt = wt[2 * bt], ct.opt_len += qt * (ht + Ft), Fe && (ct.static_len += qt * (je[2 * bt + 1] + Ft)));
2883
- if (Kt !== 0) {
2884
- do {
2885
- for (ht = Rt - 1; ct.bl_count[ht] === 0; ) ht--;
2886
- ct.bl_count[ht]--, ct.bl_count[ht + 1] += 2, ct.bl_count[Rt]--, Kt -= 2;
2887
- } while (0 < Kt);
2888
- for (ht = Rt; ht !== 0; ht--) for (bt = ct.bl_count[ht]; bt !== 0; ) se < (Bt = ct.heap[--Ot]) || (wt[2 * Bt + 1] !== ht && (ct.opt_len += (ht - wt[2 * Bt + 1]) * wt[2 * Bt], wt[2 * Bt + 1] = ht), bt--);
2889
- }
2890
- }(v, z), lt(q, ft, v.bl_count);
2891
- }
2892
- function t(v, z, W) {
2893
- var J, T, q = -1, nt = z[1], X = 0, it = 7, ft = 4;
2894
- for (nt === 0 && (it = 138, ft = 3), z[2 * (W + 1) + 1] = 65535, J = 0; J <= W; J++) T = nt, nt = z[2 * (J + 1) + 1], ++X < it && T === nt || (X < ft ? v.bl_tree[2 * T] += X : T !== 0 ? (T !== q && v.bl_tree[2 * T]++, v.bl_tree[2 * C]++) : X <= 10 ? v.bl_tree[2 * I]++ : v.bl_tree[2 * M]++, q = T, ft = (X = 0) === nt ? (it = 138, 3) : T === nt ? (it = 6, 3) : (it = 7, 4));
2895
- }
2896
- function R(v, z, W) {
2897
- var J, T, q = -1, nt = z[1], X = 0, it = 7, ft = 4;
2898
- for (nt === 0 && (it = 138, ft = 3), J = 0; J <= W; J++) if (T = nt, nt = z[2 * (J + 1) + 1], !(++X < it && T === nt)) {
2899
- if (X < ft) for (; G(v, T, v.bl_tree), --X != 0; ) ;
2900
- else T !== 0 ? (T !== q && (G(v, T, v.bl_tree), X--), G(v, C, v.bl_tree), V(v, X - 3, 2)) : X <= 10 ? (G(v, I, v.bl_tree), V(v, X - 3, 3)) : (G(v, M, v.bl_tree), V(v, X - 11, 7));
2901
- q = T, ft = (X = 0) === nt ? (it = 138, 3) : T === nt ? (it = 6, 3) : (it = 7, 4);
2902
- }
2903
- }
2904
- a(H);
2905
- var D = !1;
2906
- function _(v, z, W, J) {
2907
- V(v, (h << 1) + (J ? 1 : 0), 3), function(T, q, nt, X) {
2908
- O(T), rt(T, nt), rt(T, ~nt), i.arraySet(T.pending_buf, T.window, q, nt, T.pending), T.pending += nt;
2909
- }(v, z, W);
2910
- }
2911
- y._tr_init = function(v) {
2912
- D || (function() {
2913
- var z, W, J, T, q, nt = new Array(c + 1);
2914
- for (T = J = 0; T < p - 1; T++) for (N[T] = J, z = 0; z < 1 << U[T]; z++) s[J++] = T;
2915
- for (s[J - 1] = T, T = q = 0; T < 16; T++) for (H[T] = q, z = 0; z < 1 << L[T]; z++) P[q++] = T;
2916
- for (q >>= 7; T < r; T++) for (H[T] = q << 7, z = 0; z < 1 << L[T] - 7; z++) P[256 + q++] = T;
2917
- for (W = 0; W <= c; W++) nt[W] = 0;
2918
- for (z = 0; z <= 143; ) Y[2 * z + 1] = 8, z++, nt[8]++;
2919
- for (; z <= 255; ) Y[2 * z + 1] = 9, z++, nt[9]++;
2920
- for (; z <= 279; ) Y[2 * z + 1] = 7, z++, nt[7]++;
2921
- for (; z <= 287; ) Y[2 * z + 1] = 8, z++, nt[8]++;
2922
- for (lt(Y, m + 1, nt), z = 0; z < r; z++) S[2 * z + 1] = 5, S[2 * z] = ut(z, 5);
2923
- $ = new at(Y, U, d + 1, m, c), Z = new at(S, L, 0, r, c), st = new at(new Array(0), x, 0, f, b);
2924
- }(), D = !0), v.l_desc = new B(v.dyn_ltree, $), v.d_desc = new B(v.dyn_dtree, Z), v.bl_desc = new B(v.bl_tree, st), v.bi_buf = 0, v.bi_valid = 0, ot(v);
2925
- }, y._tr_stored_block = _, y._tr_flush_block = function(v, z, W, J) {
2926
- var T, q, nt = 0;
2927
- 0 < v.level ? (v.strm.data_type === 2 && (v.strm.data_type = function(X) {
2928
- var it, ft = 4093624447;
2929
- for (it = 0; it <= 31; it++, ft >>>= 1) if (1 & ft && X.dyn_ltree[2 * it] !== 0) return o;
2930
- if (X.dyn_ltree[18] !== 0 || X.dyn_ltree[20] !== 0 || X.dyn_ltree[26] !== 0) return n;
2931
- for (it = 32; it < d; it++) if (X.dyn_ltree[2 * it] !== 0) return n;
2932
- return o;
2933
- }(v)), et(v, v.l_desc), et(v, v.d_desc), nt = function(X) {
2934
- var it;
2935
- for (t(X, X.dyn_ltree, X.l_desc.max_code), t(X, X.dyn_dtree, X.d_desc.max_code), et(X, X.bl_desc), it = f - 1; 3 <= it && X.bl_tree[2 * F[it] + 1] === 0; it--) ;
2936
- return X.opt_len += 3 * (it + 1) + 5 + 5 + 4, it;
2937
- }(v), T = v.opt_len + 3 + 7 >>> 3, (q = v.static_len + 3 + 7 >>> 3) <= T && (T = q)) : T = q = W + 5, W + 4 <= T && z !== -1 ? _(v, z, W, J) : v.strategy === 4 || q === T ? (V(v, 2 + (J ? 1 : 0), 3), Q(v, Y, S)) : (V(v, 4 + (J ? 1 : 0), 3), function(X, it, ft, ct) {
2938
- var mt;
2939
- for (V(X, it - 257, 5), V(X, ft - 1, 5), V(X, ct - 4, 4), mt = 0; mt < ct; mt++) V(X, X.bl_tree[2 * F[mt] + 1], 3);
2940
- R(X, X.dyn_ltree, it - 1), R(X, X.dyn_dtree, ft - 1);
2941
- }(v, v.l_desc.max_code + 1, v.d_desc.max_code + 1, nt + 1), Q(v, v.dyn_ltree, v.dyn_dtree)), ot(v), J && O(v);
2942
- }, y._tr_tally = function(v, z, W) {
2943
- return v.pending_buf[v.d_buf + 2 * v.last_lit] = z >>> 8 & 255, v.pending_buf[v.d_buf + 2 * v.last_lit + 1] = 255 & z, v.pending_buf[v.l_buf + v.last_lit] = 255 & W, v.last_lit++, z === 0 ? v.dyn_ltree[2 * W]++ : (v.matches++, z--, v.dyn_ltree[2 * (s[W] + d + 1)]++, v.dyn_dtree[2 * E(z)]++), v.last_lit === v.lit_bufsize - 1;
2944
- }, y._tr_align = function(v) {
2945
- V(v, 2, 3), G(v, A, Y), function(z) {
2946
- z.bi_valid === 16 ? (rt(z, z.bi_buf), z.bi_buf = 0, z.bi_valid = 0) : 8 <= z.bi_valid && (z.pending_buf[z.pending++] = 255 & z.bi_buf, z.bi_buf >>= 8, z.bi_valid -= 8);
2947
- }(v);
2948
- };
2949
- }, { "../utils/common": 41 }], 53: [function(e, k, y) {
2950
- k.exports = function() {
2951
- this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
2952
- };
2953
- }, {}], 54: [function(e, k, y) {
2954
- (function(i) {
2955
- (function(o, n) {
2956
- if (!o.setImmediate) {
2957
- var a, h, p, d, m = 1, r = {}, f = !1, l = o.document, c = Object.getPrototypeOf && Object.getPrototypeOf(o);
2958
- c = c && c.setTimeout ? c : o, a = {}.toString.call(o.process) === "[object process]" ? function(C) {
2959
- process.nextTick(function() {
2960
- b(C);
2961
- });
2962
- } : function() {
2963
- if (o.postMessage && !o.importScripts) {
2964
- var C = !0, I = o.onmessage;
2965
- return o.onmessage = function() {
2966
- C = !1;
2967
- }, o.postMessage("", "*"), o.onmessage = I, C;
2968
- }
2969
- }() ? (d = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", A, !1) : o.attachEvent("onmessage", A), function(C) {
2970
- o.postMessage(d + C, "*");
2971
- }) : o.MessageChannel ? ((p = new MessageChannel()).port1.onmessage = function(C) {
2972
- b(C.data);
2973
- }, function(C) {
2974
- p.port2.postMessage(C);
2975
- }) : l && "onreadystatechange" in l.createElement("script") ? (h = l.documentElement, function(C) {
2976
- var I = l.createElement("script");
2977
- I.onreadystatechange = function() {
2978
- b(C), I.onreadystatechange = null, h.removeChild(I), I = null;
2979
- }, h.appendChild(I);
2980
- }) : function(C) {
2981
- setTimeout(b, 0, C);
2982
- }, c.setImmediate = function(C) {
2983
- typeof C != "function" && (C = new Function("" + C));
2984
- for (var I = new Array(arguments.length - 1), M = 0; M < I.length; M++) I[M] = arguments[M + 1];
2985
- var U = { callback: C, args: I };
2986
- return r[m] = U, a(m), m++;
2987
- }, c.clearImmediate = u;
2988
- }
2989
- function u(C) {
2990
- delete r[C];
2991
- }
2992
- function b(C) {
2993
- if (f) setTimeout(b, 0, C);
2994
- else {
2995
- var I = r[C];
2996
- if (I) {
2997
- f = !0;
2998
- try {
2999
- (function(M) {
3000
- var U = M.callback, L = M.args;
3001
- switch (L.length) {
3002
- case 0:
3003
- U();
3004
- break;
3005
- case 1:
3006
- U(L[0]);
3007
- break;
3008
- case 2:
3009
- U(L[0], L[1]);
3010
- break;
3011
- case 3:
3012
- U(L[0], L[1], L[2]);
3013
- break;
3014
- default:
3015
- U.apply(n, L);
3016
- }
3017
- })(I);
3018
- } finally {
3019
- u(C), f = !1;
3020
- }
3021
- }
3022
- }
3023
- }
3024
- function A(C) {
3025
- C.source === o && typeof C.data == "string" && C.data.indexOf(d) === 0 && b(+C.data.slice(d.length));
3026
- }
3027
- })(typeof self > "u" ? i === void 0 ? this : i : self);
3028
- }).call(this, typeof kt < "u" ? kt : typeof self < "u" ? self : typeof window < "u" ? window : {});
3029
- }, {}] }, {}, [10])(10);
3030
- });
3031
- }(Qt)), Qt.exports;
3032
- }
3033
- var Ur = Nr();
3034
- const Lr = /* @__PURE__ */ gr(Ur);
3035
- var Gt = { exports: {} }, Mr = Gt.exports, ve;
3036
- function jr() {
3037
- return ve || (ve = 1, function(g, w) {
3038
- (function(e, k) {
3039
- k();
3040
- })(Mr, function() {
3041
- function e(h, p) {
3042
- return typeof p > "u" ? p = { autoBom: !1 } : typeof p != "object" && (console.warn("Deprecated: Expected third argument to be a object"), p = { autoBom: !p }), p.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(h.type) ? new Blob(["\uFEFF", h], { type: h.type }) : h;
3043
- }
3044
- function k(h, p, d) {
3045
- var m = new XMLHttpRequest();
3046
- m.open("GET", h), m.responseType = "blob", m.onload = function() {
3047
- a(m.response, p, d);
3048
- }, m.onerror = function() {
3049
- console.error("could not download file");
3050
- }, m.send();
3051
- }
3052
- function y(h) {
3053
- var p = new XMLHttpRequest();
3054
- p.open("HEAD", h, !1);
3055
- try {
3056
- p.send();
3057
- } catch {
3058
- }
3059
- return 200 <= p.status && 299 >= p.status;
3060
- }
3061
- function i(h) {
3062
- try {
3063
- h.dispatchEvent(new MouseEvent("click"));
3064
- } catch {
3065
- var p = document.createEvent("MouseEvents");
3066
- p.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), h.dispatchEvent(p);
3067
- }
3068
- }
3069
- var o = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof kt == "object" && kt.global === kt ? kt : void 0, n = o.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), a = o.saveAs || (typeof window != "object" || window !== o ? function() {
3070
- } : "download" in HTMLAnchorElement.prototype && !n ? function(h, p, d) {
3071
- var m = o.URL || o.webkitURL, r = document.createElement("a");
3072
- p = p || h.name || "download", r.download = p, r.rel = "noopener", typeof h == "string" ? (r.href = h, r.origin === location.origin ? i(r) : y(r.href) ? k(h, p, d) : i(r, r.target = "_blank")) : (r.href = m.createObjectURL(h), setTimeout(function() {
3073
- m.revokeObjectURL(r.href);
3074
- }, 4e4), setTimeout(function() {
3075
- i(r);
3076
- }, 0));
3077
- } : "msSaveOrOpenBlob" in navigator ? function(h, p, d) {
3078
- if (p = p || h.name || "download", typeof h != "string") navigator.msSaveOrOpenBlob(e(h, d), p);
3079
- else if (y(h)) k(h, p, d);
3080
- else {
3081
- var m = document.createElement("a");
3082
- m.href = h, m.target = "_blank", setTimeout(function() {
3083
- i(m);
3084
- });
3085
- }
3086
- } : function(h, p, d, m) {
3087
- if (m = m || open("", "_blank"), m && (m.document.title = m.document.body.innerText = "downloading..."), typeof h == "string") return k(h, p, d);
3088
- var r = h.type === "application/octet-stream", f = /constructor/i.test(o.HTMLElement) || o.safari, l = /CriOS\/[\d]+/.test(navigator.userAgent);
3089
- if ((l || r && f || n) && typeof FileReader < "u") {
3090
- var c = new FileReader();
3091
- c.onloadend = function() {
3092
- var A = c.result;
3093
- A = l ? A : A.replace(/^data:[^;]*;/, "data:attachment/file;"), m ? m.location.href = A : location = A, m = null;
3094
- }, c.readAsDataURL(h);
3095
- } else {
3096
- var u = o.URL || o.webkitURL, b = u.createObjectURL(h);
3097
- m ? m.location = b : location.href = b, m = null, setTimeout(function() {
3098
- u.revokeObjectURL(b);
3099
- }, 4e4);
3100
- }
3101
- });
3102
- o.saveAs = a.saveAs = a, g.exports = a;
3103
- });
3104
- }(Gt)), Gt.exports;
3105
- }
3106
- var Fr = jr();
3107
- const Kr = De(), { loginUserInfo: be, cryptoInfo: Ct } = It(Kr), dt = Be(Yt), { itemData: Zr, curStructureCompIds: we, isSubmitCurStructure: Wr, isRefreshCurStructure: Hr, freshContent: ke } = It(dt), Ue = ae(Yt), { activeMenuPath: yt, activeAsideMenu: te, platform: Se, buttonTriggerType: Gr } = It(Ue), _t = cr(Yt), { selectTitle: At } = It(_t), Jr = (g, w) => {
3108
- const e = new Lr();
3109
- g.forEach((k) => {
3110
- e.file(k.name, k.content);
3111
- }), e.generateAsync({ type: "blob" }).then((k) => {
3112
- Fr.saveAs(k, `${w}.zip`);
3113
- });
3114
- }, Bn = () => {
3115
- const g = [
3116
- { name: Se.value === "browser" ? "insoftest-SSIP.exe" : "insofrobot-TubeBending.exe", content: "欢迎使用" }
3117
- ], w = Se.value === "browser" ? "insoftest-SSIP" : "insofrobot-TubeBending";
3118
- Jr(g, w);
3119
- }, Rn = () => {
3120
- dt.setIsEdit("edit"), dt.setSubmitCurStructure(yt.value !== "/平台管理/菜单管理");
3121
- }, Tn = () => {
3122
- dt.setIsEdit("view"), dt.setRefreshCurStructure(!0);
3123
- }, Pn = async (g) => {
3124
- var w;
3125
- if ((g == null ? void 0 : g.key) === "main" || At.value.length === 1)
3126
- pt.value = await Dt(yt.value, sessionStorage.getItem("systemKey")), _t.setSelectIndex(""), _t.setSelectMenu(""), _t.setSelectTitle([]);
3127
- else {
3128
- const e = [], k = (g == null ? void 0 : g.key) === "" || !(g != null && g.key) ? "" : parseInt(g == null ? void 0 : g.key);
3129
- pt.value = await Dt(yt.value, sessionStorage.getItem("systemKey"), k);
3130
- let y = -1;
3131
- (w = At.value) == null || w.forEach((i, o) => {
3132
- (i == null ? void 0 : i.key) === (g == null ? void 0 : g.key) && (y = o), (y === -1 || y >= o) && e.push(i);
3133
- }), _t.setSelectTitle(e), k !== "" ? _t.setSelectMenu(g == null ? void 0 : g.key) : (_t.setSelectIndex(""), _t.setSelectMenu(""));
3134
- }
3135
- dt.setItemData(pt.value), dt.setOriginalData(pt.value);
3136
- }, ee = async (g, w, e, k = "contentConfig") => {
3137
- var y, i, o;
3138
- try {
3139
- let n, a;
3140
- w === "create" ? (n = {
3141
- key: {
3142
- systemKey: sessionStorage.getItem("systemKey"),
3143
- pageKey: e,
3144
- type: "structure",
3145
- structureBelong: k,
3146
- parentTable: "",
3147
- version: 1
3148
- },
3149
- value: {
3150
- pageData: {
3151
- ...g,
3152
- compData: (y = g == null ? void 0 : g.compData) == null ? void 0 : y.filter((p) => (p == null ? void 0 : p.key) !== "tableContents")
3153
- }
3154
- }
3155
- }, a = Lt) : w === "update" ? (n = {
3156
- id: g == null ? void 0 : g.id,
3157
- key: {
3158
- systemKey: sessionStorage.getItem("systemKey"),
3159
- pageKey: e,
3160
- type: "structure",
3161
- structureBelong: k,
3162
- parentTable: "",
3163
- version: 1
3164
- },
3165
- value: {
3166
- pageData: {
3167
- ...g,
3168
- compData: (i = g == null ? void 0 : g.compData) == null ? void 0 : i.filter((p) => (p == null ? void 0 : p.key) !== "tableContents")
3169
- }
3170
- }
3171
- }, a = Mt) : w === "delete" && (n = {
3172
- id: g,
3173
- key: {
3174
- systemKey: sessionStorage.getItem("systemKey"),
3175
- pageKey: e,
3176
- type: "structure",
3177
- structureBelong: k,
3178
- parentTable: "",
3179
- version: 1
3180
- }
3181
- }, a = Ie);
3182
- const h = await a(n);
3183
- if (((o = h == null ? void 0 : h.data) == null ? void 0 : o.code) === 200)
3184
- return h.data.result;
3185
- throw xt.error("保存响应失败"), new Error("保存响应失败");
3186
- } catch {
3187
- xt.error("保存响应失败");
3188
- }
3189
- }, Nn = async (g) => {
3190
- var h;
3191
- const w = JSON.parse(tt(JSON.stringify(Zr.value)));
3192
- if (!Wr.value)
3193
- return Ue.setCacheStructures({
3194
- key: Gr.value,
3195
- data: w
3196
- }), xt.success("已暂存");
3197
- const e = w == null ? void 0 : w.map((p) => p.id), k = e.filter((p) => {
3198
- var d;
3199
- return !((d = we.value) != null && d.includes(p));
3200
- }), y = (h = we.value) == null ? void 0 : h.filter((p) => !e.includes(p)), i = [...k, ...y], o = w == null ? void 0 : w.filter((p) => !p.id), n = w == null ? void 0 : w.filter((p) => p.id);
3201
- let a = [];
3202
- i && (i == null ? void 0 : i.length) > 0 && (i == null || i.forEach((p) => {
3203
- p && a.push(ee(p, "delete", g));
3204
- })), o && (o == null ? void 0 : o.length) > 0 && (o == null || o.forEach((p) => {
3205
- p && a.push(ee(p, "create", g));
3206
- })), n && (n == null ? void 0 : n.length) > 0 && (n == null || n.forEach((p) => {
3207
- e != null && e.includes(p.id) && (console.log("clickSavePage5", "包含"), p && a.push(ee(p, "update", g)));
3208
- })), Promise.all(a).then(() => {
3209
- xt.success("保存成功"), dt.setRefreshCurStructure(!0);
3210
- }).catch((p) => {
3211
- xt.success(p);
3212
- });
3213
- }, Un = (g) => Ar(g), pt = vt([]), Ln = async (g, w = "data") => {
3214
- var k, y, i, o, n, a;
3215
- if ((g == null ? void 0 : g.type) === "delete")
3216
- await hr((k = g == null ? void 0 : g.singleContent) == null ? void 0 : k.id);
3217
- else if ((g == null ? void 0 : g.buttonName) === "新增") {
3218
- let h = {};
3219
- for (let p in g == null ? void 0 : g.singleContent)
3220
- p !== "id" && p !== "index" && (h[p] = g == null ? void 0 : g.singleContent[p]);
3221
- await dr(
3222
- w,
3223
- yt.value,
3224
- g == null ? void 0 : g.index,
3225
- sessionStorage.getItem("systemKey"),
3226
- Object.values(h),
3227
- g == null ? void 0 : g.column,
3228
- g
3229
- );
3230
- } else if ((g == null ? void 0 : g.buttonName) === "编辑") {
3231
- let h = {}, p = (y = g == null ? void 0 : g.singleContent) == null ? void 0 : y.id;
3232
- for (let d in g == null ? void 0 : g.singleContent)
3233
- d !== "id" && d !== "index" && (h[d] = g == null ? void 0 : g.singleContent[d]);
3234
- await pr(
3235
- w,
3236
- yt.value,
3237
- g == null ? void 0 : g.index,
3238
- p,
3239
- sessionStorage.getItem("systemKey"),
3240
- Object.values(h),
3241
- g == null ? void 0 : g.column
3242
- );
3243
- }
3244
- let e = (o = (i = At.value) == null ? void 0 : i[At.value.length - 1]) != null && o.key ? parseInt((a = (n = At.value) == null ? void 0 : n[At.value.length - 1]) == null ? void 0 : a.key) : "";
3245
- pt.value = await Dt(yt.value, sessionStorage.getItem("systemKey"), e), dt.setItemData(pt.value), dt.setOriginalData(pt.value);
3246
- }, $r = async (g) => {
3247
- var e, k, y, i, o;
3248
- const w = await Et({
3249
- id: g
3250
- });
3251
- return (o = (i = (y = (k = (e = w == null ? void 0 : w.data) == null ? void 0 : e.result) == null ? void 0 : k[0]) == null ? void 0 : y.value) == null ? void 0 : i.pageData) == null ? void 0 : o.name;
3252
- }, Mn = async (g) => {
3253
- var k, y;
3254
- const w = await $r(g == null ? void 0 : g.index);
3255
- await fr(g == null ? void 0 : g.index, {
3256
- comp: "Form",
3257
- compData: (k = tt(g == null ? void 0 : g.contents)) == null ? void 0 : k.filter((i) => i.contents),
3258
- name: w
3259
- });
3260
- const e = (y = tt(pt.value)) == null ? void 0 : y.map((i) => ((i == null ? void 0 : i.id) === (g == null ? void 0 : g.index) && (i.compData = g == null ? void 0 : g.contents), i));
3261
- dt.setItemData(e), dt.setOriginalData(e);
3262
- }, jn = (g) => {
3263
- pt.value = g, dt.setItemData(pt.value), dt.setOriginalData(pt.value);
3264
- }, Ae = (g) => {
3265
- var w, e, k;
3266
- return ((e = (w = be.value) == null ? void 0 : w.layer) == null ? void 0 : e.toUpperCase()) === "SUPERADMIN" ? !0 : ((k = be.value) == null ? void 0 : k.account) === (g == null ? void 0 : g.account);
3267
- }, xe = async (g, w, e) => {
3268
- const k = ue("/系统管理/角色管理"), y = ue("/系统管理/部门管理");
3269
- return await Promise.all([k, y]).then((o) => {
3270
- var h, p;
3271
- const n = (h = o == null ? void 0 : o[0]) == null ? void 0 : h.map((d) => ({
3272
- label: d == null ? void 0 : d.roleName,
3273
- value: d == null ? void 0 : d.roleName
3274
- })), a = (p = o == null ? void 0 : o[1]) == null ? void 0 : p.map((d) => ({
3275
- label: d == null ? void 0 : d.deptName,
3276
- value: d == null ? void 0 : d.deptName
3277
- }));
3278
- return e ? g == null ? void 0 : g.map((d) => {
3279
- var m;
3280
- return {
3281
- ...d,
3282
- compData: (m = d == null ? void 0 : d.compData) == null ? void 0 : m.map((r) => {
3283
- var f, l;
3284
- return (r == null ? void 0 : r.key) === "header" ? {
3285
- ...r,
3286
- contents: (f = r == null ? void 0 : r.contents) == null ? void 0 : f.map((c) => c.prop === "userDept" ? {
3287
- ...c,
3288
- options: a
3289
- } : c.prop === "userRoles" ? {
3290
- ...c,
3291
- options: n
3292
- } : c)
3293
- } : (r == null ? void 0 : r.key) === "tableContents" ? {
3294
- ...r,
3295
- contents: (l = r == null ? void 0 : r.contents) == null ? void 0 : l.map((c) => {
3296
- var u;
3297
- return {
3298
- ...c,
3299
- password: Ae(c) ? le(c == null ? void 0 : c.password, (u = Ct == null ? void 0 : Ct.value) == null ? void 0 : u.privateKey) : c == null ? void 0 : c.password
3300
- };
3301
- })
3302
- } : r;
3303
- })
3304
- };
3305
- }) : g == null ? void 0 : g.map((d) => {
3306
- var m;
3307
- return {
3308
- ...d,
3309
- compData: (m = d == null ? void 0 : d.compData) == null ? void 0 : m.map((r) => {
3310
- var f, l, c;
3311
- return (r == null ? void 0 : r.key) === "rowButton" || (r == null ? void 0 : r.key) === "extraButton" ? {
3312
- ...r,
3313
- contents: (f = r == null ? void 0 : r.contents) == null ? void 0 : f.filter((u) => w == null ? void 0 : w.includes(u == null ? void 0 : u.label))
3314
- } : (r == null ? void 0 : r.key) === "header" ? {
3315
- ...r,
3316
- contents: (l = r == null ? void 0 : r.contents) == null ? void 0 : l.map((u) => u.prop === "userDept" ? {
3317
- ...u,
3318
- options: a
3319
- } : u.prop === "userRoles" ? {
3320
- ...u,
3321
- options: n
3322
- } : u)
3323
- } : (r == null ? void 0 : r.key) === "tableContents" ? {
3324
- ...r,
3325
- contents: (c = r == null ? void 0 : r.contents) == null ? void 0 : c.map((u) => {
3326
- var b;
3327
- return {
3328
- ...u,
3329
- password: Ae(u) ? le(u == null ? void 0 : u.password, (b = Ct == null ? void 0 : Ct.value) == null ? void 0 : b.privateKey) : u == null ? void 0 : u.password
3330
- };
3331
- })
3332
- } : r;
3333
- })
3334
- };
3335
- });
3336
- });
3337
- };
3338
- Nt(
3339
- () => [yt.value, Hr.value],
3340
- async (g) => {
3341
- var k, y, i, o, n, a, h, p;
3342
- const w = g == null ? void 0 : g[0], e = g == null ? void 0 : g[1];
3343
- if (w || e) {
3344
- await Oe(), sessionStorage.setItem("pageKey", yt.value), console.log("当前菜单的结构0:", te.value);
3345
- let d;
3346
- if ((k = te.value) != null && k.config) {
3347
- const f = (a = (n = (o = (i = (y = te.value) == null ? void 0 : y.config) == null ? void 0 : i[0]) == null ? void 0 : o.structureIds) == null ? void 0 : n.filter((c) => (c == null ? void 0 : c.key) === "contentConfig")) == null ? void 0 : a.map((c) => c == null ? void 0 : c.id), l = await Dt(w, sessionStorage.getItem("systemKey"), "", yt.value, !0, f);
3348
- d = l == null ? void 0 : l.flatMap((c) => c == null ? void 0 : c.structure), console.log("当前菜单的结构1:", d, f);
3349
- } else
3350
- d = await Dt(w, sessionStorage.getItem("systemKey"), "", yt.value), console.log("当前菜单的结构2:", d);
3351
- dt.setExtraContents([]);
3352
- const m = sessionStorage.getItem("authority"), r = JSON.parse(m || "");
3353
- if (Array.isArray(r)) {
3354
- const f = Array.isArray(r) && (r == null ? void 0 : r.filter((c) => c == null ? void 0 : c.includes(w))), l = f == null ? void 0 : f.map((c) => {
3355
- var u;
3356
- return ((u = c == null ? void 0 : c.split("/")) == null ? void 0 : u.pop()) || "";
3357
- });
3358
- pt.value = w === "/系统管理/用户管理" ? await xe(d, l, !1) : d == null ? void 0 : d.map((c) => {
3359
- var u;
3360
- return {
3361
- ...c,
3362
- compData: (u = c == null ? void 0 : c.compData) == null ? void 0 : u.map((b) => {
3363
- var A;
3364
- return (b == null ? void 0 : b.key) === "rowButton" || (b == null ? void 0 : b.key) === "extraButton" ? {
3365
- ...b,
3366
- contents: (A = b == null ? void 0 : b.contents) == null ? void 0 : A.filter((C) => l == null ? void 0 : l.includes(C == null ? void 0 : C.label))
3367
- } : b;
3368
- })
3369
- };
3370
- });
3371
- } else typeof r == "string" && (r == null ? void 0 : r.toUpperCase()) === "SUPERADMIN" ? pt.value = w === "/系统管理/用户管理" ? await xe(d, null, !0) : d : pt.value = [];
3372
- _t.setSelectTitle([]), _t.setSelectIndex(""), _t.setSelectMenu(""), dt.setItemData(pt.value), dt.setOriginalData(pt.value), dt.setCurStructureCompIds((h = pt.value) == null ? void 0 : h.map((f) => f == null ? void 0 : f.id)), dt.setRefreshCurStructure(!1), At.value = (p = yt.value) == null ? void 0 : p.split("/").filter((f) => f !== "").map((f) => ({ value: f.trim() }));
3373
- }
3374
- },
3375
- {
3376
- immediate: !0
3377
- }
3378
- );
3379
- Nt(
3380
- () => ke.value,
3381
- async () => {
3382
- ke.value && (pt.value = await Dt(yt.value, sessionStorage.getItem("systemKey"), "", yt.value), dt.setFreshContent(!1));
3383
- },
3384
- { deep: !0 }
3385
- );
3386
- const Yr = (g) => {
3387
- var y, i, o;
3388
- const w = (y = g.map((n) => {
3389
- var h, p;
3390
- let a = (p = (h = n.key.split("(")) == null ? void 0 : h[1]) == null ? void 0 : p.trim();
3391
- return a == null ? void 0 : a.slice(0, a.length - 1);
3392
- })) == null ? void 0 : y.filter((n) => n), e = [];
3393
- w == null || w.forEach((n) => {
3394
- var h, p;
3395
- const a = [];
3396
- if ((h = xr(n)) == null || h.forEach((d) => {
3397
- var m, r, f, l, c, u, b, A, C, I, M, U, L, x;
3398
- if (d.includes("{") && d.includes("[")) {
3399
- let F = tt(d).split(":");
3400
- d = (u = (r = (m = tt(F)) == null ? void 0 : m[0]) == null ? void 0 : r.split("{")) == null ? void 0 : u[((c = (l = (f = tt(F)) == null ? void 0 : f[0]) == null ? void 0 : l.split("{")) == null ? void 0 : c.length) - 1].replaceAll("'", ""), a.push(d);
3401
- let Y = (C = (A = (b = F == null ? void 0 : F[(F == null ? void 0 : F.length) - 1]) == null ? void 0 : b.split("}")) == null ? void 0 : A[0]) == null ? void 0 : C.replaceAll("'", '"'), S = [];
3402
- (M = (I = Y.slice(1, Y.length - 1)) == null ? void 0 : I.split(",")) == null || M.forEach((P) => {
3403
- S.push(P);
3404
- }), a.push(S);
3405
- } else if (d.includes("{")) {
3406
- let F = (U = d.split(":")) == null ? void 0 : U[0];
3407
- d = (x = F == null ? void 0 : F.split("{")) == null ? void 0 : x[((L = F == null ? void 0 : F.split("{")) == null ? void 0 : L.length) - 1].replaceAll("'", ""), a.push(d);
3408
- } else
3409
- a.push(d);
3410
- }), !a.some((d) => Array.isArray(d)))
3411
- e.push(a);
3412
- else {
3413
- let d = [];
3414
- a == null || a.forEach((m, r) => {
3415
- r !== a.length - 1 && d.push(m);
3416
- }), (p = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1]) == null || p.forEach((m) => {
3417
- let r = tt(d);
3418
- r.push(m), e.push(r);
3419
- });
3420
- }
3421
- });
3422
- const k = (o = (i = e.filter((n) => n.length !== 0)) == null ? void 0 : i.filter((n) => n.length !== 0)) == null ? void 0 : o.map((n) => {
3423
- let a = "";
3424
- return n.forEach((h) => {
3425
- h.includes("{") || (a = a === "" ? a + tt(h) : a + "/" + tt(h));
3426
- }), a;
3427
- });
3428
- return Er([...new Set(k)]);
3429
- }, qr = (g) => ({
3430
- comp: "Menu",
3431
- compData: [{
3432
- contents: Yr(tt(g)),
3433
- key: "menuContents"
3434
- }],
3435
- name: ""
3436
- }), Xr = (g) => ({
3437
- comp: "MenuTop",
3438
- compData: [
3439
- {
3440
- key: "menuContents",
3441
- contents: JSON.parse(g == null ? void 0 : g.value.trim().replaceAll("'", '"'))
3442
- }
3443
- ],
3444
- name: ""
3445
- }), Vr = (g) => {
3446
- const w = g == null ? void 0 : g.filter((k) => {
3447
- var y;
3448
- return !((y = k == null ? void 0 : k.key) != null && y.includes("("));
3449
- }), e = w == null ? void 0 : w.find((k) => {
3450
- var y;
3451
- return St(k.value.replaceAll("'", '"')) && ((y = JSON.parse(k.value.replaceAll("'", '"'))) == null ? void 0 : y.every((i) => typeof i == "string"));
3452
- });
3453
- return Xr(e);
3454
- }, Qr = (g) => {
3455
- var y;
3456
- let w = [];
3457
- const e = g == null ? void 0 : g.filter((i) => {
3458
- var o;
3459
- return !((o = i == null ? void 0 : i.key) != null && o.includes("("));
3460
- }), k = e == null ? void 0 : e.find((i) => {
3461
- var o;
3462
- return St(i.value.replaceAll("'", '"')) && !((o = JSON.parse(i.value.replaceAll("'", '"'))) != null && o.every((n) => typeof n == "string"));
3463
- });
3464
- return (y = JSON.parse(k.value.replaceAll("'", '"'))) == null || y.forEach((i) => {
3465
- var o, n, a, h;
3466
- ((o = Object.keys(i)) == null ? void 0 : o[0]) === "类型" ? w.push({
3467
- comp: "System",
3468
- compData: [
3469
- {
3470
- key: "type",
3471
- contents: [(n = Object.values(i)) == null ? void 0 : n[0]]
3472
- }
3473
- ]
3474
- }) : ((a = Object.keys(i)) == null ? void 0 : a[0]) === "名称" && w.push({
3475
- comp: "System",
3476
- compData: [
3477
- {
3478
- key: "name",
3479
- contents: [(h = Object.values(i)) == null ? void 0 : h[0]]
3480
- }
3481
- ]
3482
- });
3483
- }), w;
3484
- }, Le = (g) => {
3485
- const w = [];
3486
- let e = !1;
3487
- return g.forEach((k) => {
3488
- Array.isArray(k) && (e = !0, k.forEach((y) => {
3489
- const i = g.map((o) => o === k ? y : o);
3490
- w.push(...Le(i));
3491
- }));
3492
- }), e ? w : [g];
3493
- }, tn = (g) => {
3494
- var o, n;
3495
- if (!g) return;
3496
- let w = [];
3497
- const e = Cr(g), k = tt(e).replaceAll("{", "").replaceAll("}", "").trim();
3498
- let y = [];
3499
- return k.split(":").forEach((a) => {
3500
- var h;
3501
- if (a.includes("[")) {
3502
- const p = (h = a.slice(1, a.length - 1)) == null ? void 0 : h.split(",");
3503
- y.push(p);
3504
- } else
3505
- y.push(a);
3506
- }), (o = Le(y)) == null || o.forEach((a) => {
3507
- w.push(a);
3508
- }), (n = w == null ? void 0 : w.filter((a) => a.length !== 0)) == null ? void 0 : n.map((a) => {
3509
- let h = "";
3510
- return a.forEach((p) => {
3511
- p.includes("{") || (h = h === "" ? h + tt(p).trim() : h + "/" + tt(p).trim());
3512
- }), h;
3513
- });
3514
- }, Ee = (g) => {
3515
- var n, a, h, p, d, m, r, f, l, c, u, b, A, C, I, M, U, L, x, F, Y, S, P, s;
3516
- const w = (n = jt(tt(g))) == null ? void 0 : n[0], e = "[" + ((a = jt(tt(g))) == null ? void 0 : a[2]) + "]";
3517
- let k = [], y = [], i = "";
3518
- const o = (p = (h = e == null ? void 0 : e.trim()) == null ? void 0 : h.slice(1, (e == null ? void 0 : e.trim().length) - 1)) == null ? void 0 : p.replaceAll("'", '"');
3519
- if (St(o) ? k = JSON.parse(o) : St((r = (m = (d = o == null ? void 0 : o.split("}")) == null ? void 0 : d[0]) == null ? void 0 : m.replace(":", "")) == null ? void 0 : r.replaceAll("\\", "\\\\")) && (k = JSON.parse((c = (l = (f = o == null ? void 0 : o.split("}")) == null ? void 0 : f[0]) == null ? void 0 : l.replace(":", "")) == null ? void 0 : c.replaceAll("\\", "\\\\"))), !(w != null && w.includes("(")))
3520
- w.includes("{") ? St((b = (u = w == null ? void 0 : w.split("{")) == null ? void 0 : u[1]) == null ? void 0 : b.replaceAll("'", '"')) && (y = JSON.parse((C = (A = w == null ? void 0 : w.split("{")) == null ? void 0 : A[1]) == null ? void 0 : C.replaceAll("'", '"'))) : y = JSON.parse(w == null ? void 0 : w.replaceAll("'", '"'));
3521
- else {
3522
- let N = [];
3523
- if (((M = (I = w == null ? void 0 : w.slice(1, (w == null ? void 0 : w.length) - 1)) == null ? void 0 : I.split(",")) == null ? void 0 : M.length) > 1)
3524
- (L = (U = w == null ? void 0 : w.slice(1, (w == null ? void 0 : w.length) - 1)) == null ? void 0 : U.split(",")) == null || L.forEach(($) => {
3525
- var Z, st, H, at, B, E, rt, V, G, ut, lt, ot, O, j, K, Q, et, t;
3526
- if (!($ != null && $.includes("(")))
3527
- N.push($ == null ? void 0 : $.replaceAll("'", ""));
3528
- else if ($ != null && $.includes("[")) {
3529
- let R = (j = (O = (ot = (lt = $ == null ? void 0 : $.split("[")) == null ? void 0 : lt[((ut = $ == null ? void 0 : $.split("[")) == null ? void 0 : ut.length) - 1]) == null ? void 0 : ot.split("]")) == null ? void 0 : O[0]) == null ? void 0 : j.replaceAll("'", "");
3530
- R = R + "[" + ((t = (et = (Q = $ == null ? void 0 : $.split("(")) == null ? void 0 : Q[((K = $ == null ? void 0 : $.split("(")) == null ? void 0 : K.length) - 1]) == null ? void 0 : et.split(")")) == null ? void 0 : t[0].replaceAll(":", "/").replaceAll("'", "")) + "]()", N.push(R);
3531
- } else {
3532
- let R = (B = (at = (H = (st = $ == null ? void 0 : $.split(":")) == null ? void 0 : st[((Z = $ == null ? void 0 : $.split(":")) == null ? void 0 : Z.length) - 1]) == null ? void 0 : H.split(")")) == null ? void 0 : at[0]) == null ? void 0 : B.replaceAll("'", "");
3533
- R = R + "[" + ((G = (V = (rt = $ == null ? void 0 : $.split("(")) == null ? void 0 : rt[((E = $ == null ? void 0 : $.split("(")) == null ? void 0 : E.length) - 1]) == null ? void 0 : V.split(")")) == null ? void 0 : G[0].replaceAll(":", "/").replaceAll("'", "")) + "]", N.push(R);
3534
- }
3535
- }), y = N;
3536
- else {
3537
- const $ = ((S = (Y = (F = (x = w == null ? void 0 : w.slice(1, w == null ? void 0 : w.length)) == null ? void 0 : x.split("(")) == null ? void 0 : F[1]) == null ? void 0 : Y.split(")")) == null ? void 0 : S[0]).replaceAll("{", "").replaceAll("}", "").replaceAll(":", "/").replaceAll("'", "");
3538
- i = i + $ + "[" + ((s = (P = w == null ? void 0 : w.slice(1, w == null ? void 0 : w.length)) == null ? void 0 : P.split("[")) == null ? void 0 : s[1]);
3539
- }
3540
- }
3541
- return {
3542
- tableColumns: y,
3543
- tableContents: k != null && k.every((N) => Array.isArray(N)) ? k : [k],
3544
- tablePath: i
3545
- };
3546
- };
3547
- let gt = "$R";
3548
- const en = (g) => /^'[^']+':\{.*\}$/.exec(tt(g)), rn = (g) => /^'([^']+)':.*$/.exec(tt(g)), jt = (g) => {
3549
- let w = g;
3550
- const e = [];
3551
- let k = "";
3552
- for (const y of w)
3553
- y.includes("{") || k.includes("{") || y.includes("[") || k.includes("[") || y.includes("【") || k.includes("【") || y.includes("(") || k.includes("(") || y.includes("(") || k.includes("(") || y.includes("/*") || k.includes("/*") ? (k += y.trim(), tt(k).split("{").length - 1 === tt(k).split("}").length - 1 && tt(k).split("【").length - 1 === tt(k).split("】").length - 1 && tt(k).split("[").length - 1 === tt(k).split("]").length - 1 && tt(k).split("(").length - 1 === tt(k).split(")").length - 1 && tt(k).split("(").length - 1 === tt(k).split(")").length - 1 && tt(k).split("/*").length - 1 === tt(k).split("*/").length - 1 && k[k.length - 1] !== "," && (e.push(k.replace(/\/\*[\s\S]*?\*\//g, "")), k = "")) : e.push(y.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
3554
- return e;
3555
- }, nn = (g) => /^\[.*?\]:\[.*?\]$/.exec(tt(g)), an = (g) => {
3556
- var w, e, k, y, i, o, n, a, h, p, d, m, r, f, l, c, u;
3557
- if (rn(g)) {
3558
- let b = {}, A = (k = (e = (w = g == null ? void 0 : g.replace(":", gt)) == null ? void 0 : w.split(gt)) == null ? void 0 : e[0]) == null ? void 0 : k.replaceAll("'", ""), C = "";
3559
- return C = C + ((n = (o = (i = (y = g == null ? void 0 : g.split("{")) == null ? void 0 : y[1]) == null ? void 0 : i.split("}")) == null ? void 0 : o[0]) == null ? void 0 : n.replace(":", "/").replaceAll("'", "")) + "[", C = C + ((p = (h = (a = g == null ? void 0 : g.split("[")) == null ? void 0 : a[1]) == null ? void 0 : h.split("]")) == null ? void 0 : p[0]) + "]", b[A] = C, {
3560
- groupName: "",
3561
- formContents: [[b]]
3562
- };
3563
- } else {
3564
- let b = {}, A = "", C = (r = (m = (d = g == null ? void 0 : g.split("]")) == null ? void 0 : d[0]) == null ? void 0 : m.split("[")) == null ? void 0 : r[1];
3565
- (f = C == null ? void 0 : C.split(":")) == null || f.forEach((M, U) => {
3566
- var L;
3567
- ((L = C == null ? void 0 : C.split(":")) == null ? void 0 : L.length) - 1 === U && (A = M == null ? void 0 : M.replaceAll("'", ""));
3568
- });
3569
- let I = "";
3570
- return I = (u = (c = (l = g == null ? void 0 : g.split("]")) == null ? void 0 : l[1]) == null ? void 0 : c.replace(":", gt).split(gt)) == null ? void 0 : u[1].replaceAll("'", ""), b[A] = I, {
3571
- groupName: "",
3572
- formContents: [[b]]
3573
- };
3574
- }
3575
- }, Me = (g) => {
3576
- var k, y, i, o, n, a, h, p, d, m, r, f, l, c, u, b, A, C, I, M, U, L, x, F, Y, S, P, s, N, $, Z, st, H, at;
3577
- let w = "";
3578
- g = g.replace(/:([^=]*)==/g, ":");
3579
- let e = g;
3580
- if (en(tt(g)) !== null && (w = (y = (k = tt(g).replace(":", gt).split(gt)) == null ? void 0 : k[0]) == null ? void 0 : y.replaceAll("'", ""), e = (i = tt(g).replace(":", gt).split(gt)) == null ? void 0 : i[1]), nn(tt(e).slice(1, ((o = tt(e)) == null ? void 0 : o.length) - 1)))
3581
- if (((a = tt(e).slice(1, ((n = tt(e)) == null ? void 0 : n.length) - 1)) == null ? void 0 : a[1]) !== "[") {
3582
- const B = Ee(tt(e).slice(1, ((h = tt(e)) == null ? void 0 : h.length) - 1));
3583
- return {
3584
- groupName: w,
3585
- tableColumn: B == null ? void 0 : B.tableColumns,
3586
- tableContents: B == null ? void 0 : B.tableContents,
3587
- tableColumnPath: B == null ? void 0 : B.tablePath
3588
- };
3589
- } else {
3590
- let B = tt(e).slice(1, ((p = tt(e)) == null ? void 0 : p.length) - 1), E = B.indexOf("{"), rt = B.slice(E, (B == null ? void 0 : B.length) - E);
3591
- return (m = (d = jt(rt)) == null ? void 0 : d.filter((G) => G == null ? void 0 : G.includes("{"))) == null ? void 0 : m.map((G, ut) => {
3592
- var ot;
3593
- let lt = Ee(tt(G).slice(1, ((ot = tt(G)) == null ? void 0 : ot.length) - 1));
3594
- return {
3595
- groupName: ut === 0 ? w : "",
3596
- tableColumn: lt == null ? void 0 : lt.tableColumns,
3597
- tableContents: lt == null ? void 0 : lt.tableContents,
3598
- tableColumnPath: lt == null ? void 0 : lt.tablePath
3599
- };
3600
- });
3601
- }
3602
- else {
3603
- let B = [];
3604
- if (St((r = e.slice(1, (e == null ? void 0 : e.length) - 1)) == null ? void 0 : r.replaceAll("'", '"')))
3605
- B = JSON.parse((f = e.slice(1, (e == null ? void 0 : e.length) - 1)) == null ? void 0 : f.replaceAll("'", '"'));
3606
- else if (e.includes("(")) {
3607
- if ((e == null ? void 0 : e[0]) !== "{") {
3608
- let E = (F = (x = (L = e == null ? void 0 : e.split("]")) == null ? void 0 : L[0]) == null ? void 0 : x.split("[")) == null ? void 0 : F[1], rt = "", G = ((N = (s = (P = (S = (Y = e == null ? void 0 : e.split(")")) == null ? void 0 : Y[0]) == null ? void 0 : S.split("(")) == null ? void 0 : P[1]) == null ? void 0 : s.replaceAll("[", "")) == null ? void 0 : N.replaceAll("]", "")).replaceAll("'", "").replaceAll(":", "/");
3609
- return ($ = G == null ? void 0 : G.split("/")) == null || $.forEach((ut, lt) => {
3610
- var ot;
3611
- lt !== ((ot = G == null ? void 0 : G.split("/")) == null ? void 0 : ot.length) - 1 && (rt = rt === "" ? rt + ut : rt + "/" + ut);
3612
- }), {
3613
- groupName: "",
3614
- extraButton: (st = E == null ? void 0 : E.split(":")) == null ? void 0 : st[((Z = E == null ? void 0 : E.split(":")) == null ? void 0 : Z.length) - 1].replaceAll("'", ""),
3615
- extraPath: rt
3616
- };
3617
- } else if (e = e.slice(1, (e == null ? void 0 : e.length) - 1), (e == null ? void 0 : e[0]) !== "[") {
3618
- let E = an(e);
3619
- return {
3620
- groupName: E == null ? void 0 : E.groupName,
3621
- formContents: E == null ? void 0 : E.formContents
3622
- };
3623
- } else if ((e == null ? void 0 : e[0]) === "[" && (e == null ? void 0 : e[1]) === "[") {
3624
- e = e.slice(1, (e == null ? void 0 : e.length) - 1);
3625
- let E = [];
3626
- return (at = (H = jt(e)) == null ? void 0 : H.filter((rt) => rt !== ",")) == null || at.forEach((rt) => {
3627
- var V;
3628
- Array.isArray($t(rt)) || E.push((V = $t(rt)) == null ? void 0 : V.formContents);
3629
- }), {
3630
- groupName: w,
3631
- formContents: E
3632
- };
3633
- }
3634
- } else if (e = "[[" + e + "]]", St((l = e.slice(1, (e == null ? void 0 : e.length) - 1)) == null ? void 0 : l.replaceAll("'", '"')))
3635
- B = JSON.parse((c = e.slice(1, (e == null ? void 0 : e.length) - 1)) == null ? void 0 : c.replaceAll("'", '"'));
3636
- else if (e = e.slice(2, e.length - 2), ((A = (b = (u = e == null ? void 0 : e.replace(":", gt)) == null ? void 0 : u.split(gt)) == null ? void 0 : b[1]) == null ? void 0 : A[0]) !== "{") {
3637
- e = ((I = (C = e == null ? void 0 : e.replace(":", gt)) == null ? void 0 : C.split(gt)) == null ? void 0 : I[0]) + ":{[" + ((U = (M = e == null ? void 0 : e.replace(":", gt)) == null ? void 0 : M.split(gt)) == null ? void 0 : U[1]) + "]}";
3638
- const E = Me(e);
3639
- return E != null && E.tableColumn ? {
3640
- groupName: E == null ? void 0 : E.groupName,
3641
- tableColumn: E == null ? void 0 : E.tableColumn,
3642
- tableContents: E == null ? void 0 : E.tableContents
3643
- } : {
3644
- groupName: E == null ? void 0 : E.groupName,
3645
- formContents: E == null ? void 0 : E.formContents
3646
- };
3647
- }
3648
- return {
3649
- groupName: w,
3650
- formContents: B
3651
- };
3652
- }
3653
- }, $t = (g) => Me(tt(g).slice(1, tt(g).length - 1)), sn = (g) => {
3654
- var e;
3655
- let w = [];
3656
- if (!((g == null ? void 0 : g[0]) === "[" && (g == null ? void 0 : g[1]) === "[")) {
3657
- let k = (e = jt(g)) == null ? void 0 : e.filter((y) => y !== ",");
3658
- k == null || k.forEach((y) => {
3659
- w.push($t(y));
3660
- });
3661
- }
3662
- return w;
3663
- };
3664
- vt(0);
3665
- const on = (g) => {
3666
- const w = [];
3667
- let e = [];
3668
- return g == null || g.forEach((k, y) => {
3669
- var i;
3670
- (e == null ? void 0 : e.length) === 0 ? e.push(k) : (e.push(k), ((i = g[y + 1]) == null ? void 0 : i.key) === "groupName" && (w.push(e), e = []));
3671
- }), w.push(e), w;
3672
- }, re = vt(0), ln = (g, w) => {
3673
- var y;
3674
- let e = [], k = w == null ? void 0 : w.length;
3675
- return (y = tt(w)) == null || y.forEach((i, o) => {
3676
- let n = [];
3677
- i == null || i.forEach((a) => {
3678
- var h, p, d, m, r;
3679
- if (St(tt(g).replaceAll("'", '"')))
3680
- (h = JSON.parse(tt(g).replaceAll("'", '"'))) == null || h.forEach((f) => {
3681
- e.push([{
3682
- key: a == null ? void 0 : a.key,
3683
- value: (a == null ? void 0 : a.value) + "/" + f
3684
- }]);
3685
- });
3686
- else {
3687
- n.push(a);
3688
- let f = [];
3689
- if (((p = tt(g)) == null ? void 0 : p[0]) === "[" && ((d = tt(g)) == null ? void 0 : d[1]) === "[") {
3690
- let l = g.slice(1, (g == null ? void 0 : g.length) - 1);
3691
- const c = sn(l.trim());
3692
- c == null || c.forEach((u) => {
3693
- var b;
3694
- u != null && u.tableColumn ? (n.push({
3695
- key: "groupName",
3696
- value: u == null ? void 0 : u.groupName
3697
- }), n.push({
3698
- key: "tableColumn",
3699
- value: u == null ? void 0 : u.tableColumn
3700
- }), n.push({
3701
- key: "tableContents",
3702
- value: u == null ? void 0 : u.tableContents
3703
- }), n.push({
3704
- key: "tablePath",
3705
- value: (u == null ? void 0 : u.tableColumnPath) ?? ""
3706
- })) : u != null && u.extraButton ? (n.push({
3707
- key: "groupName",
3708
- value: u == null ? void 0 : u.groupName
3709
- }), n.push({
3710
- key: "extraButton",
3711
- value: u == null ? void 0 : u.extraButton,
3712
- path: u == null ? void 0 : u.extraPath
3713
- })) : (n.push({
3714
- key: "groupName",
3715
- value: u == null ? void 0 : u.groupName
3716
- }), n.push({
3717
- key: "formContent",
3718
- value: k === 1 ? u == null ? void 0 : u.formContents : (b = u == null ? void 0 : u.formContents) == null ? void 0 : b[o]
3719
- }));
3720
- });
3721
- } else
3722
- f = $t(tt(g.trim())), f != null && f.tableColumn ? (n.push({
3723
- key: "groupName",
3724
- value: f == null ? void 0 : f.groupName
3725
- }), n.push({
3726
- key: "tableColumn",
3727
- value: f == null ? void 0 : f.tableColumn
3728
- }), n.push({
3729
- key: "tableContents",
3730
- value: k !== 1 ? [(m = f == null ? void 0 : f.tableContents) == null ? void 0 : m[o]] : f == null ? void 0 : f.tableContents
3731
- })) : (n.push({
3732
- key: "groupName",
3733
- value: f == null ? void 0 : f.groupName
3734
- }), n.push({
3735
- key: "formContent",
3736
- value: k !== 1 ? [(r = f == null ? void 0 : f.formContents) == null ? void 0 : r[o]] : f == null ? void 0 : f.formContents
3737
- }));
3738
- }
3739
- }), e.push(n);
3740
- }), e;
3741
- }, un = (g) => {
3742
- var y, i;
3743
- const w = [], e = tn((y = tt(g)) == null ? void 0 : y.key);
3744
- return e && (e == null ? void 0 : e.length) > 0 && (e == null || e.forEach((o) => {
3745
- w.push([{
3746
- key: "contentPath",
3747
- value: o
3748
- }]);
3749
- })), ln((i = tt(g)) == null ? void 0 : i.value, w);
3750
- }, cn = (g) => {
3751
- var e;
3752
- return (e = tt(g)) == null ? void 0 : e.map((k) => {
3753
- var o, n;
3754
- let y = [];
3755
- return (o = on(k == null ? void 0 : k.filter((a) => (a == null ? void 0 : a.key) !== "contentPath"))) == null || o.forEach((a) => {
3756
- var d, m, r, f, l, c, u, b, A, C, I, M, U, L;
3757
- let h = [];
3758
- if (a.length === 0)
3759
- return;
3760
- let p = (m = (d = a.find((x) => (x == null ? void 0 : x.key) === "tableColumn")) == null ? void 0 : d.value) == null ? void 0 : m.map((x) => ({
3761
- label: x
3762
- }));
3763
- if (Array.isArray(p) && ((r = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.key) === "tablePath")) != null && r.value && ((f = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.key) === "tablePath")) == null ? void 0 : f.value) !== "" && p.push({
3764
- columnPath: (l = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.key) === "tablePath")) == null ? void 0 : l.value
3765
- }), p = (c = tt(p)) == null ? void 0 : c.map((x) => {
3766
- var F, Y, S, P, s, N, $, Z, st;
3767
- return x != null && x.label && !((F = x == null ? void 0 : x.label) != null && F.includes("[")) ? x : {
3768
- label: (S = (Y = tt(x == null ? void 0 : x.label)) == null ? void 0 : Y.split("[")) == null ? void 0 : S[0],
3769
- formMenuSelect: (Z = ($ = (N = (s = (P = tt(x == null ? void 0 : x.label)) == null ? void 0 : P.split("[")) == null ? void 0 : s[1]) == null ? void 0 : N.split("]")) == null ? void 0 : $[0]) == null ? void 0 : Z.split("/"),
3770
- columnPath: (x == null ? void 0 : x.columnPath) ?? "",
3771
- isRoute: (st = x == null ? void 0 : x.label) == null ? void 0 : st.includes("(")
3772
- };
3773
- }), p.length !== 0 && p.push({
3774
- label: "操作"
3775
- })), a != null && a.find((x) => (x == null ? void 0 : x.key) === "formContent")) {
3776
- const x = (u = a.find((Y) => (Y == null ? void 0 : Y.key) === "formContent")) == null ? void 0 : u.value;
3777
- let F = [];
3778
- Array.isArray(x) && x.forEach((Y) => {
3779
- let S = 1;
3780
- Array.isArray(Y) && (Y != null && Y.every((P) => !Array.isArray(P))) && (S = Y.length), Array.isArray(Y) || (Y = [Y]), Y.forEach((P) => {
3781
- Array.isArray(P) || (P = [P]);
3782
- let s = [];
3783
- P == null || P.forEach((N) => {
3784
- var $, Z, st, H, at, B, E, rt, V, G, ut, lt, ot, O, j, K;
3785
- if (re.value++, !((Z = ($ = Object.values(N)) == null ? void 0 : $[0]) != null && Z.includes("/") && ((H = (st = Object.values(N)) == null ? void 0 : st[0]) != null && H.includes("["))))
3786
- s.push({
3787
- id: re.value,
3788
- key: (at = Object.keys(N)) == null ? void 0 : at[0],
3789
- value: (B = Object.values(N)) == null ? void 0 : B[0],
3790
- width: Math.max(S, P.length)
3791
- });
3792
- else {
3793
- let Q = (G = (V = (rt = (E = Object.values(N)) == null ? void 0 : E[0]) == null ? void 0 : rt.split("[")) == null ? void 0 : V[0]) == null ? void 0 : G.split("/"), et = (ot = (lt = (ut = Object.values(N)) == null ? void 0 : ut[0]) == null ? void 0 : lt.split("[")) == null ? void 0 : ot[1], t = (j = (O = et == null ? void 0 : et.slice(0, et.length - 1)) == null ? void 0 : O.split(":")) == null ? void 0 : j.map((D) => D.replaceAll("'", "")), R = t;
3794
- (t == null ? void 0 : t.length) === 1 && R.unshift(""), s.push({
3795
- id: re.value,
3796
- key: (K = Object.keys(N)) == null ? void 0 : K[0],
3797
- value: "",
3798
- width: Math.max(S, P.length),
3799
- type: "Select",
3800
- optionUrl: {
3801
- type: "Select",
3802
- selectRelateType: "关联绑定列",
3803
- menuSelect: Q,
3804
- groupSelect: R
3805
- }
3806
- });
3807
- }
3808
- }), s == null || s.forEach((N) => {
3809
- F.push(N);
3810
- });
3811
- });
3812
- }), h.push({
3813
- key: "formFlex",
3814
- contents: ""
3815
- }), h.push({
3816
- key: "formContent",
3817
- contents: F
3818
- }), y.push({
3819
- comp: "Form",
3820
- compData: tt(h),
3821
- name: (A = (b = a.find((Y) => (Y == null ? void 0 : Y.key) === "groupName")) == null ? void 0 : b.value) == null ? void 0 : A.replaceAll("'", "")
3822
- });
3823
- } else a != null && a.find((x) => (x == null ? void 0 : x.key) === "extraButton") ? y.push({
3824
- key: "extraButton",
3825
- value: {
3826
- method: (C = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.key) === "extraButton")) == null ? void 0 : C.value,
3827
- value: [],
3828
- path: (I = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.key) === "extraButton")) == null ? void 0 : I.path
3829
- }
3830
- }) : (p == null ? void 0 : p.length) !== 0 && (h.push({
3831
- key: "header",
3832
- contents: p
3833
- }), h.push({
3834
- key: "tableContents",
3835
- contents: (M = a.find((x) => (x == null ? void 0 : x.key) === "tableContents")) == null ? void 0 : M.value
3836
- }), h.push({
3837
- key: "extraButton",
3838
- contents: [{ label: "新增" }]
3839
- }), h.push({
3840
- key: "rowButton",
3841
- contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
3842
- }), y.push({
3843
- comp: "Table",
3844
- compData: h,
3845
- name: (L = (U = a.find((x) => (x == null ? void 0 : x.key) === "groupName")) == null ? void 0 : U.value) == null ? void 0 : L.replaceAll("'", "")
3846
- }));
3847
- }), {
3848
- comp: "Group",
3849
- compData: [{
3850
- key: "groupContents",
3851
- contents: y
3852
- }],
3853
- name: (n = k == null ? void 0 : k.find((a) => (a == null ? void 0 : a.key) === "contentPath")) == null ? void 0 : n.value
3854
- };
3855
- });
3856
- }, fn = (g) => {
3857
- var n, a;
3858
- let w = [];
3859
- const e = qr(tt(g));
3860
- w.push(e);
3861
- const k = Vr(tt(g));
3862
- w.push(k);
3863
- const y = Qr(tt(g));
3864
- (n = tt(y)) == null || n.forEach((h) => {
3865
- w.push(h);
3866
- });
3867
- const i = (a = tt(g)) == null ? void 0 : a.filter((h) => {
3868
- var p;
3869
- return (p = h == null ? void 0 : h.key) == null ? void 0 : p.includes("(");
3870
- }).map((h) => un(h)).filter((h) => (h == null ? void 0 : h.length) !== 0);
3871
- let o = [];
3872
- return i == null || i.forEach((h) => {
3873
- h == null || h.forEach((p) => {
3874
- o != null && o.find((d) => {
3875
- var m, r;
3876
- return ((m = d == null ? void 0 : d.find((f) => (f == null ? void 0 : f.key) === "contentPath")) == null ? void 0 : m.value) === ((r = p == null ? void 0 : p.find((f) => (f == null ? void 0 : f.key) === "contentPath")) == null ? void 0 : r.value);
3877
- }) ? o = o == null ? void 0 : o.map((d) => {
3878
- var r, f;
3879
- return ((r = d == null ? void 0 : d.find((l) => (l == null ? void 0 : l.key) === "contentPath")) == null ? void 0 : r.value) === ((f = p == null ? void 0 : p.find((l) => (l == null ? void 0 : l.key) === "contentPath")) == null ? void 0 : f.value) && (d = [...d, ...p.filter((l) => (l == null ? void 0 : l.key) !== "contentPath")]), d;
3880
- }) : o.push(p);
3881
- });
3882
- }), w = [...w, ...cn(o)], w;
3883
- }, Fn = (g) => {
3884
- var y, i, o;
3885
- const w = (i = (y = zr(tt(g))) == null ? void 0 : y.filter((n) => n !== "")) == null ? void 0 : i.map((n) => n.replaceAll("<", "[").replaceAll(">", "]")), e = (o = w == null ? void 0 : w.filter((n) => !n.includes("/*"))) == null ? void 0 : o.map((n) => Ir(n));
3886
- return fn(e);
3887
- };
3888
- export {
3889
- On as _,
3890
- Pn as a,
3891
- Bn as b,
3892
- Nn as c,
3893
- Rn as d,
3894
- jn as e,
3895
- Mn as f,
3896
- Un as g,
3897
- Ln as h,
3898
- Fn as i,
3899
- Dn as j,
3900
- Tn as o,
3901
- pt as s
3902
- };