@sheetxl/io-xlsx 0.8.0-beta.20 → 0.8.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/{Bw35-W8cnzxxvqQy.mjs → 2Tu0hkxKQVlv9Cra.mjs} +4 -4
- package/browser/esm/{CSOuRlSN9bhykqDr.mjs → B-gFy6wqDX1nS1H6.mjs} +724 -719
- package/browser/esm/{RFSuXvJ9sgsaA2LC.mjs → BksP77A3tWZz2uFZ.mjs} +4 -4
- package/browser/esm/{C16bEh6IrUpJONhS.mjs → CSeKlqJLKPdaHQnM.mjs} +2 -2
- package/browser/esm/{D7ogsrtXfjU5NW7r.mjs → Cx9ap9QP6pCr4onD.mjs} +2 -2
- package/browser/esm/{S4Uq85YdUb6O5Pz0.mjs → DEQzaCJ7RX2QoCut.mjs} +1 -1
- package/browser/esm/{PgUWs0pPSCSFYJtU.mjs → DKFJjTTJkuTmxyrC.mjs} +2 -2
- package/browser/esm/{CPK1-z95jtLOfCXG.mjs → Dm3PlbhnXRlbfwcc.mjs} +2 -2
- package/browser/esm/{DpPFQ7-tBwVyjvWr.mjs → TlUpdMxCXP6T7d5o.mjs} +1 -1
- package/browser/esm/{D2872f7aTugYxhht.mjs → fw-xerhhOIbrtjj8.mjs} +2 -2
- package/browser/esm/{D8CQKL3Y3CMFOPqD.mjs → hYm31nxQHahoYW47.mjs} +329 -319
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{D2vDZOgLcv-YiWnB.mjs → -4emwUa_cqmg0qom.mjs} +279 -274
- package/node/esm/{BSHqfcsR9hY-JB30.mjs → B1_JjHLkB9GQt41F.mjs} +1 -1
- package/node/esm/{DFw0ibBUmPyd-wey.mjs → BaRyFsg1YMFUyXd4.mjs} +4 -4
- package/node/esm/{BOAucs-qLpjtUOcZ.mjs → C1VsUbGfwY9-dlaU.mjs} +1 -1
- package/node/esm/{DGuQIj077oygCTGu.mjs → C6HiyeKhrpNGFeb3.mjs} +2 -2
- package/node/esm/{Qn2Bv4QG3mOLiJHh.mjs → CeRdSa9ObgI_mmCT.mjs} +478 -468
- package/node/esm/{C6eSWtTkyDQKbQdT.mjs → Dd0rxpiUIxg4BeeC.mjs} +2 -2
- package/node/esm/index.mjs +4 -4
- package/node/esm/{CPhiu1T7tl-leKh2.mjs → yNj0KH21rJk2rfm7.mjs} +2 -2
- package/package.json +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
8
|
-
import { $t as t, Ar as n, At as r, Br as i, Bt as a, C as o, Cn as s, Cr as c, D as l, Dn as u, Dr as d, Dt as f, Et as p, Fn as m, Fr as h, Ft as g, G as _, Gt as v, H as y, Hn as b, Hr as x, In as S, J as C, Jn as w, Jt as T, K as E, Kn as D, Kt as ee, Lr as te, Mn as O, Mr as ne, Mt as re, Nr as ie, O as ae, On as k, Or as oe, Ot as A, Pr as se, Pt as ce, Q as le, Qt as ue, Rr as de, S as j, Sr as M, Tr as fe, U as pe, Un as me, Ur as N, Vr as he, Vt as ge, W as _e, Wn as ve, Wr as ye, X as be, Xt as xe, Y as Se, Yn as Ce, Yt as we, Z as Te, Zt as Ee, _n as De, _r as P, _t as Oe, a as ke, an as Ae, ar as je, at as Me, b as Ne, bn as Pe, c as Fe, cn as Ie, d as Le, dr as Re, dt as ze, en as Be, er as Ve, et as He, fr as Ue, ft as We, g as Ge, gn as Ke, gr as qe, gt as Je, h as Ye, hn as Xe, hr as Ze, ht as Qe, i as $e, ir as et, jr as tt, kn as F, kr as nt, kt as rt, l as it, ln as at, lr as ot, lt as st, m as ct, mr as lt, mt as ut, o as dt, on as ft, pn as pt, pr as mt, pt as ht, q as gt, qt as _t, r as vt, rr as yt, rt as bt, s as xt, sn as St, sr as Ct, st as wt, tt as Tt, u as Et, un as Dt, ur as Ot, ut as kt, vn as At, vr as jt, w as Mt, wn as Nt, wr as Pt, x as Ft, xn as It, y as Lt, yr as Rt, yt as zt, zn as Bt, zt as Vt } from "./
|
|
9
|
-
import { a as Ht, c as Ut, i as Wt, l as Gt, n as Kt, t as qt } from "./
|
|
7
|
+
import { t as e } from "./2Tu0hkxKQVlv9Cra.mjs";
|
|
8
|
+
import { $t as t, Ar as n, At as r, Br as i, Bt as a, C as o, Cn as s, Cr as c, D as l, Dn as u, Dr as d, Dt as f, Et as p, Fn as m, Fr as h, Ft as g, G as _, Gt as v, H as y, Hn as b, Hr as x, In as S, J as C, Jn as w, Jt as T, K as E, Kn as D, Kt as ee, Lr as te, Mn as O, Mr as ne, Mt as re, Nr as ie, O as ae, On as k, Or as oe, Ot as A, Pr as se, Pt as ce, Q as le, Qt as ue, Rr as de, S as j, Sr as M, Tr as fe, U as pe, Un as me, Ur as N, Vr as he, Vt as ge, W as _e, Wn as ve, Wr as ye, X as be, Xt as xe, Y as Se, Yn as Ce, Yt as we, Z as Te, Zt as Ee, _n as De, _r as P, _t as Oe, a as ke, an as Ae, ar as je, at as Me, b as Ne, bn as Pe, c as Fe, cn as Ie, d as Le, dr as Re, dt as ze, en as Be, er as Ve, et as He, fr as Ue, ft as We, g as Ge, gn as Ke, gr as qe, gt as Je, h as Ye, hn as Xe, hr as Ze, ht as Qe, i as $e, ir as et, jr as tt, kn as F, kr as nt, kt as rt, l as it, ln as at, lr as ot, lt as st, m as ct, mr as lt, mt as ut, o as dt, on as ft, pn as pt, pr as mt, pt as ht, q as gt, qt as _t, r as vt, rr as yt, rt as bt, s as xt, sn as St, sr as Ct, st as wt, tt as Tt, u as Et, un as Dt, ur as Ot, ut as kt, vn as At, vr as jt, w as Mt, wn as Nt, wr as Pt, x as Ft, xn as It, y as Lt, yr as Rt, yt as zt, zn as Bt, zt as Vt } from "./Cx9ap9QP6pCr4onD.mjs";
|
|
9
|
+
import { a as Ht, c as Ut, i as Wt, l as Gt, n as Kt, t as qt } from "./Dm3PlbhnXRlbfwcc.mjs";
|
|
10
10
|
import { BufferUtils as Jt, OverlappingRange as Yt, RangeAxis as Xt } from "@sheetxl/utils";
|
|
11
11
|
import { AddressUtils as I, BufferUtils as L, Color as Zt, CommonUtils as R, CoordUtils as Qt, FormulaError as z, FormulaText as $t, Hyperlink as en, IBorders as B, ICellStyle as V, IColor as H, ICondition as U, IConditionalFormat as W, ICustomProperty as tn, IEffect as nn, IFill as G, IFont as rn, IFontCollection as an, IRange as on, IShape as sn, ISheet as cn, IStroke as ln, ITextFrame as K, IWorkbookView as un, IWorksheetView as dn, LicenseManager as fn, NumberFormat as pn, Resource as mn, RichArray as hn, RichRecord as gn, RichText as _n, Scalar as vn, ScalarType as yn, ShapeStyleUtils as bn, pivotCellFormatsOf as xn } from "@sheetxl/sdk";
|
|
12
12
|
var Sn = [
|
|
@@ -1755,7 +1755,7 @@ function Yr(e, t, n, r, i = !1, a = !1) {
|
|
|
1755
1755
|
if (n.type === G.Type.None || n.type === G.Type.Image || n.type === G.Type.Group) i ? t.empty("patternFill", { patternType: "none" }) : t.empty("noFill");
|
|
1756
1756
|
else if (n.type === G.Type.Solid) {
|
|
1757
1757
|
let e = n;
|
|
1758
|
-
i ? t.start("patternFill", { patternType: "solid" }) : t.start("solidFill"), e.color && (i ? Y(t, o, e.color, "fgColor") : J(t, o, e.color)), i ? t.end("patternFill") : t.end("solidFill");
|
|
1758
|
+
i ? t.start("patternFill", { patternType: "solid" }) : t.start("solidFill"), e.color && (i ? Y(t, o, e.color, a ? "bgColor" : "fgColor") : J(t, o, e.color)), i ? t.end("patternFill") : t.end("solidFill");
|
|
1759
1759
|
} else if (n.type === G.Type.Pattern) {
|
|
1760
1760
|
let e = n, r = e.patternType || "solid";
|
|
1761
1761
|
t.start("patternFill", { patternType: r });
|
|
@@ -2962,7 +2962,7 @@ var go = (e) => {
|
|
|
2962
2962
|
if (!t || t.max < kt) return null;
|
|
2963
2963
|
let n = t.value;
|
|
2964
2964
|
return !n?.h || n.s !== void 0 || n.l || n.cl || n.csz || n.sz !== void 0 && n.sz !== -1 ? null : kt - t.min + 1 > t.min ? t.min : null;
|
|
2965
|
-
}, _o = 1048576, vo = (e, t, n) => {
|
|
2965
|
+
}, _o = 1048576, vo = 8192, yo = (e, t, n) => {
|
|
2966
2966
|
if (!n) return [];
|
|
2967
2967
|
let r = 0;
|
|
2968
2968
|
for (let i = 0; i < n.length; i++) {
|
|
@@ -2970,8 +2970,8 @@ var go = (e) => {
|
|
|
2970
2970
|
if (r += (o.rowEnd - o.rowStart + 1) * (o.colEnd - o.colStart + 1), r > _o) return e.warn(`Direct styles cover more than ${_o} cells; not writing the styles from '${a}' on. A range that size belongs in a column or row style.`), n.slice(0, i);
|
|
2971
2971
|
}
|
|
2972
2972
|
return n;
|
|
2973
|
-
},
|
|
2974
|
-
function
|
|
2973
|
+
}, bo = /^\s*=?\s*TABLE\s*\(/i;
|
|
2974
|
+
function xo(e, t, n, r) {
|
|
2975
2975
|
let i = null, a = [];
|
|
2976
2976
|
for (let r = t.rowStart; r <= t.rowEnd; r++) for (let o = t.colStart; o <= t.colEnd; o++) {
|
|
2977
2977
|
let s = n;
|
|
@@ -2995,7 +2995,7 @@ function bo(e, t, n, r) {
|
|
|
2995
2995
|
for (let e = 0; e < a.length; e++) r.push(a[e]);
|
|
2996
2996
|
return !0;
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2998
|
+
function So(e, t) {
|
|
2999
2999
|
let n = t.type;
|
|
3000
3000
|
n === W.ColorStopType.AutoMin ? n = W.ColorStopType.Min : n === W.ColorStopType.AutoMax && (n = W.ColorStopType.Max), e.empty("cfvo", {
|
|
3001
3001
|
type: n,
|
|
@@ -3003,14 +3003,14 @@ function xo(e, t) {
|
|
|
3003
3003
|
gte: t.exclusive ? "0" : void 0
|
|
3004
3004
|
});
|
|
3005
3005
|
}
|
|
3006
|
-
function
|
|
3006
|
+
function Co(e, t) {
|
|
3007
3007
|
let n = {
|
|
3008
3008
|
type: t.type,
|
|
3009
3009
|
gte: t.exclusive ? "0" : void 0
|
|
3010
3010
|
};
|
|
3011
3011
|
t.value === void 0 ? e.empty("x14:cfvo", n) : (e.start("x14:cfvo", n), e.start("xm:f"), e.text(t.value), e.end("xm:f"), e.end("x14:cfvo"));
|
|
3012
3012
|
}
|
|
3013
|
-
var
|
|
3013
|
+
var wo = /* @__PURE__ */ new Set([
|
|
3014
3014
|
V.IconSet.Arrows3,
|
|
3015
3015
|
V.IconSet.ArrowsGray3,
|
|
3016
3016
|
V.IconSet.Flags3,
|
|
@@ -3029,10 +3029,14 @@ var Co = /* @__PURE__ */ new Set([
|
|
|
3029
3029
|
V.IconSet.Quarters5,
|
|
3030
3030
|
V.IconSet.Rating5
|
|
3031
3031
|
]);
|
|
3032
|
-
function
|
|
3033
|
-
return (e.icon?.length ?? 0) > 0 || e.iconSet !== void 0 && !
|
|
3032
|
+
function To(e) {
|
|
3033
|
+
return (e.icon?.length ?? 0) > 0 || e.iconSet !== void 0 && !wo.has(e.iconSet);
|
|
3034
3034
|
}
|
|
3035
|
-
function
|
|
3035
|
+
function Eo(e) {
|
|
3036
|
+
return [e.minPoint ?? { type: W.ColorStopType.Min }, e.maxPoint ?? { type: W.ColorStopType.Max }];
|
|
3037
|
+
}
|
|
3038
|
+
var Do = "#638EC6";
|
|
3039
|
+
function Oo(e, t, n, r, i, a, o, s, c) {
|
|
3036
3040
|
let l = r.scale;
|
|
3037
3041
|
r.ext && e.warn("Conditional format extension payload is not written to xlsx; it will be lost.");
|
|
3038
3042
|
let u = {
|
|
@@ -3051,13 +3055,7 @@ function To(e, t, n, r, i, a, o, s, c) {
|
|
|
3051
3055
|
timePeriod: i.timePeriod
|
|
3052
3056
|
}, d;
|
|
3053
3057
|
l?.type === W.ScaleType.DataBar && function(e) {
|
|
3054
|
-
|
|
3055
|
-
let t = e.stops, n = t ? t.length : 0;
|
|
3056
|
-
for (let e = 0; e < n; e++) {
|
|
3057
|
-
let n = t[e].type;
|
|
3058
|
-
if (n === W.ColorStopType.AutoMin || n === W.ColorStopType.AutoMax) return !0;
|
|
3059
|
-
}
|
|
3060
|
-
return !1;
|
|
3058
|
+
return !!(e.solidFill || e.borderColor || e.negativeFillColor || e.negativeBorderColor || e.axisColor || e.axisPosition || e.direction) || e.minPoint?.type === W.ColorStopType.AutoMin || e.maxPoint?.type === W.ColorStopType.AutoMax;
|
|
3061
3059
|
}(l) && (d = M(R.uuidV4), c.push({
|
|
3062
3060
|
guid: d,
|
|
3063
3061
|
sqref: a,
|
|
@@ -3071,18 +3069,17 @@ function To(e, t, n, r, i, a, o, s, c) {
|
|
|
3071
3069
|
if (l?.type === W.ScaleType.ColorScale) {
|
|
3072
3070
|
let e = l.stops ?? [];
|
|
3073
3071
|
t.start("colorScale");
|
|
3074
|
-
for (let n = 0; n < e.length; n++)
|
|
3072
|
+
for (let n = 0; n < e.length; n++) So(t, e[n]);
|
|
3075
3073
|
for (let r = 0; r < e.length; r++) Y(t, n, e[r].color, "color");
|
|
3076
3074
|
t.end("colorScale");
|
|
3077
3075
|
} else if (l?.type === W.ScaleType.DataBar) {
|
|
3078
|
-
let e = l.stops ?? [];
|
|
3079
3076
|
t.start("dataBar", {
|
|
3080
|
-
minLength: l.minLength,
|
|
3081
|
-
maxLength: l.maxLength,
|
|
3077
|
+
minLength: l.minLength ?? 0,
|
|
3078
|
+
maxLength: l.maxLength ?? 100,
|
|
3082
3079
|
showValue: Z(l.showValue)
|
|
3083
3080
|
});
|
|
3084
|
-
|
|
3085
|
-
|
|
3081
|
+
let [e, r] = Eo(l);
|
|
3082
|
+
So(t, e), So(t, r), Y(t, n, l.color ?? Do, "color"), t.end("dataBar");
|
|
3086
3083
|
} else if (l?.type === W.ScaleType.IconSet) {
|
|
3087
3084
|
let e = l.stops ?? [];
|
|
3088
3085
|
t.start("iconSet", {
|
|
@@ -3090,7 +3087,7 @@ function To(e, t, n, r, i, a, o, s, c) {
|
|
|
3090
3087
|
reverse: Z(l.reverse),
|
|
3091
3088
|
showValue: Z(l.showValue)
|
|
3092
3089
|
});
|
|
3093
|
-
for (let n = 0; n < e.length; n++)
|
|
3090
|
+
for (let n = 0; n < e.length; n++) So(t, e[n]);
|
|
3094
3091
|
t.end("iconSet");
|
|
3095
3092
|
}
|
|
3096
3093
|
d && (t.start("extLst"), t.start("ext", {
|
|
@@ -3099,7 +3096,7 @@ function To(e, t, n, r, i, a, o, s, c) {
|
|
|
3099
3096
|
}), t.start("x14:id"), t.text(d), t.end("x14:id"), t.end("ext"), t.end("extLst")), t.end("cfRule");
|
|
3100
3097
|
} else t.empty("cfRule", u);
|
|
3101
3098
|
}
|
|
3102
|
-
function
|
|
3099
|
+
function ko(e) {
|
|
3103
3100
|
let t = 2 ** 53 - 1, n = 2 ** 53 - 1, r = e.split(" ");
|
|
3104
3101
|
for (let e = 0; e < r.length; e++) {
|
|
3105
3102
|
if (!r[e]) continue;
|
|
@@ -3111,7 +3108,7 @@ function Eo(e) {
|
|
|
3111
3108
|
colIndex: n
|
|
3112
3109
|
});
|
|
3113
3110
|
}
|
|
3114
|
-
function
|
|
3111
|
+
function Ao(e) {
|
|
3115
3112
|
if (typeof e == "string") return e.split(",").join(" ");
|
|
3116
3113
|
if (Array.isArray(e)) {
|
|
3117
3114
|
let t = [];
|
|
@@ -3126,7 +3123,7 @@ function Do(e) {
|
|
|
3126
3123
|
function Z(e) {
|
|
3127
3124
|
if (e !== void 0) return e ? "1" : "0";
|
|
3128
3125
|
}
|
|
3129
|
-
function
|
|
3126
|
+
function jo(e) {
|
|
3130
3127
|
if (typeof e != "string") return !1;
|
|
3131
3128
|
let t = !1;
|
|
3132
3129
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -3136,12 +3133,12 @@ function Oo(e) {
|
|
|
3136
3133
|
}
|
|
3137
3134
|
return !1;
|
|
3138
3135
|
}
|
|
3139
|
-
function
|
|
3136
|
+
function Mo(e) {
|
|
3140
3137
|
let t = e.formulas, n = t ? t.length : 0;
|
|
3141
|
-
for (let e = 0; e < n; e++) if (
|
|
3138
|
+
for (let e = 0; e < n; e++) if (jo(t[e])) return !0;
|
|
3142
3139
|
return !1;
|
|
3143
3140
|
}
|
|
3144
|
-
function
|
|
3141
|
+
function No(e) {
|
|
3145
3142
|
let t = 2 ** 53 - 1, n = 2 ** 53 - 1, r = e.split(" ");
|
|
3146
3143
|
for (let e = 0; e < r.length; e++) {
|
|
3147
3144
|
if (!r[e]) continue;
|
|
@@ -3153,7 +3150,7 @@ function Ao(e) {
|
|
|
3153
3150
|
colIndex: n
|
|
3154
3151
|
};
|
|
3155
3152
|
}
|
|
3156
|
-
function
|
|
3153
|
+
function Po(e, t, n) {
|
|
3157
3154
|
if (typeof e != "string" || !e || !t || !n) return e;
|
|
3158
3155
|
try {
|
|
3159
3156
|
let r = n.parse(e, t);
|
|
@@ -3162,30 +3159,41 @@ function jo(e, t, n) {
|
|
|
3162
3159
|
return e;
|
|
3163
3160
|
}
|
|
3164
3161
|
}
|
|
3165
|
-
function
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
let
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3162
|
+
function Fo(e, t, n) {
|
|
3163
|
+
if (!e || !n) return e;
|
|
3164
|
+
let r = (e) => {
|
|
3165
|
+
let r = e?.value;
|
|
3166
|
+
if (typeof r != "string") return e;
|
|
3167
|
+
let i = Po(r, t, n);
|
|
3168
|
+
return i === r ? e : {
|
|
3169
|
+
...e,
|
|
3170
|
+
value: i
|
|
3171
|
+
};
|
|
3172
|
+
};
|
|
3173
|
+
if (e.type === W.ScaleType.DataBar) {
|
|
3174
|
+
let t = r(e.minPoint), n = r(e.maxPoint);
|
|
3175
|
+
if (t === e.minPoint && n === e.maxPoint) return e;
|
|
3176
|
+
let i = { ...e };
|
|
3177
|
+
return t && (i.minPoint = t), n && (i.maxPoint = n), i;
|
|
3178
|
+
}
|
|
3179
|
+
let i = e.stops;
|
|
3180
|
+
if (!i) return e;
|
|
3181
|
+
let a;
|
|
3182
|
+
for (let e = 0; e < i.length; e++) {
|
|
3183
|
+
let t = r(i[e]);
|
|
3184
|
+
t !== i[e] && (a ||= [...i], a[e] = t);
|
|
3177
3185
|
}
|
|
3178
|
-
return
|
|
3186
|
+
return a ? {
|
|
3179
3187
|
...e,
|
|
3180
|
-
stops:
|
|
3188
|
+
stops: a
|
|
3181
3189
|
} : e;
|
|
3182
3190
|
}
|
|
3183
|
-
function
|
|
3191
|
+
function Io(e) {
|
|
3184
3192
|
let t = e.getDataValidations().getSettings(), n = {};
|
|
3185
3193
|
return t.disablePrompts && (n.disablePrompts = "1"), t.windowX !== void 0 && (n.xWindow = t.windowX), t.windowY !== void 0 && (n.yWindow = t.windowY), n;
|
|
3186
3194
|
}
|
|
3187
|
-
var
|
|
3188
|
-
function
|
|
3195
|
+
var Lo = "application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings";
|
|
3196
|
+
function Ro(e, t, n) {
|
|
3189
3197
|
if (!n || n.length === 0) return;
|
|
3190
3198
|
let r = n.filter((e) => !e.automatic).length;
|
|
3191
3199
|
e.start(t, {
|
|
@@ -3198,12 +3206,12 @@ function Fo(e, t, n) {
|
|
|
3198
3206
|
}
|
|
3199
3207
|
e.end(t);
|
|
3200
3208
|
}
|
|
3201
|
-
function
|
|
3209
|
+
function zo(e, t, n, r) {
|
|
3202
3210
|
if (!r?.xml) return;
|
|
3203
3211
|
let i = e.addPart("legacyDrawing", r);
|
|
3204
3212
|
t.empty(n, { "r:id": i.relId });
|
|
3205
3213
|
}
|
|
3206
|
-
var
|
|
3214
|
+
var Bo = (e, t, n, r) => {
|
|
3207
3215
|
let i = (t, n) => {
|
|
3208
3216
|
let r = e.getRangeAtBounds({
|
|
3209
3217
|
x: t,
|
|
@@ -3248,11 +3256,11 @@ var Lo = (e, t, n, r) => {
|
|
|
3248
3256
|
bounds: a,
|
|
3249
3257
|
anchor: [...i(a.x, a.y), ...i(a.x + a.width, a.y + a.height)]
|
|
3250
3258
|
};
|
|
3251
|
-
},
|
|
3259
|
+
}, Vo = (e, t) => {
|
|
3252
3260
|
if (!t) return e;
|
|
3253
3261
|
let n = e?.xml ?? null, r = Mt(n ?? ""), i = [], a = t.comments;
|
|
3254
3262
|
for (let e = 0; e < a.length; e++) {
|
|
3255
|
-
let { comment: n, row: o, col: s } = a[e], c = n.isNote() ? n.toJSON() : null, { bounds: u, anchor: d } =
|
|
3263
|
+
let { comment: n, row: o, col: s } = a[e], c = n.isNote() ? n.toJSON() : null, { bounds: u, anchor: d } = Bo(t.sheet, n, o, s), f = c?.box, p = f?.fill || f?.stroke ? ae(f.xml ?? j, {
|
|
3256
3264
|
fill: f.fill,
|
|
3257
3265
|
stroke: f.stroke
|
|
3258
3266
|
}, (e) => t.sheet.getStyles().parseColor(e)) : f?.xml;
|
|
@@ -3272,7 +3280,7 @@ var Lo = (e, t, n, r) => {
|
|
|
3272
3280
|
...e,
|
|
3273
3281
|
xml: s
|
|
3274
3282
|
} : { xml: s } : e;
|
|
3275
|
-
},
|
|
3283
|
+
}, Ho = st + 1, Uo = (e, t) => {
|
|
3276
3284
|
if (t.length === 0) return;
|
|
3277
3285
|
let n = Mt(e.legacyDrawing?.xml ?? ""), r = t.length;
|
|
3278
3286
|
for (let e = 0; e < r; e++) {
|
|
@@ -3284,7 +3292,7 @@ var Lo = (e, t, n, r) => {
|
|
|
3284
3292
|
let r = t[e].jsonMovable.content, a = r.json ??= {};
|
|
3285
3293
|
(typeof a.shapeId != "number" || i.has(a.shapeId)) && (a.shapeId = ++n), i.add(a.shapeId);
|
|
3286
3294
|
}
|
|
3287
|
-
},
|
|
3295
|
+
}, Wo = (e, t, n) => {
|
|
3288
3296
|
if (n.length === 0) return t;
|
|
3289
3297
|
let r = (t, n) => e.getRange({
|
|
3290
3298
|
rowStart: n,
|
|
@@ -3322,15 +3330,15 @@ var Lo = (e, t, n, r) => {
|
|
|
3322
3330
|
...t,
|
|
3323
3331
|
xml: c
|
|
3324
3332
|
} : { xml: c } : t;
|
|
3325
|
-
},
|
|
3333
|
+
}, Go = (e, t, n) => {
|
|
3326
3334
|
e.start(t), e.start("xdr:col"), e.text(n.c ?? 0), e.end("xdr:col"), e.start("xdr:colOff"), e.text(X(n.x)), e.end("xdr:colOff"), e.start("xdr:row"), e.text(n.r ?? 0), e.end("xdr:row"), e.start("xdr:rowOff"), e.text(X(n.y)), e.end("xdr:rowOff"), e.end(t);
|
|
3327
|
-
},
|
|
3335
|
+
}, Ko = {
|
|
3328
3336
|
r: void 0,
|
|
3329
3337
|
s: void 0,
|
|
3330
3338
|
t: void 0,
|
|
3331
3339
|
cm: void 0,
|
|
3332
3340
|
vm: void 0
|
|
3333
|
-
},
|
|
3341
|
+
}, qo = {
|
|
3334
3342
|
r: void 0,
|
|
3335
3343
|
s: void 0,
|
|
3336
3344
|
customFormat: void 0,
|
|
@@ -3342,56 +3350,56 @@ var Lo = (e, t, n, r) => {
|
|
|
3342
3350
|
collapsed: void 0,
|
|
3343
3351
|
thickTop: void 0,
|
|
3344
3352
|
thickBot: void 0
|
|
3345
|
-
},
|
|
3353
|
+
}, Jo = {
|
|
3346
3354
|
t: void 0,
|
|
3347
3355
|
aca: void 0,
|
|
3348
3356
|
ref: void 0,
|
|
3349
3357
|
ca: void 0,
|
|
3350
3358
|
si: void 0
|
|
3351
|
-
},
|
|
3359
|
+
}, Yo = {
|
|
3352
3360
|
t: "shared",
|
|
3353
3361
|
aca: void 0,
|
|
3354
3362
|
ref: void 0,
|
|
3355
3363
|
ca: void 0,
|
|
3356
3364
|
si: void 0
|
|
3357
|
-
},
|
|
3365
|
+
}, Xo = {
|
|
3358
3366
|
t: "array",
|
|
3359
3367
|
aca: void 0,
|
|
3360
3368
|
ref: void 0,
|
|
3361
3369
|
ca: void 0,
|
|
3362
3370
|
si: void 0
|
|
3363
3371
|
};
|
|
3364
|
-
function
|
|
3372
|
+
function Zo(e, t) {
|
|
3365
3373
|
let n = h.test(t) ? se : void 0;
|
|
3366
3374
|
e.start("t", n), e.text(te(t)), e.end("t");
|
|
3367
3375
|
}
|
|
3368
|
-
var
|
|
3376
|
+
var Qo = (e) => String(Math.round(1e3 * e)), Q = (e) => e === void 0 ? void 0 : e ? "1" : "0", $o = /* @__PURE__ */ new Set(/* @__PURE__ */ "text.runs.paragraphs.field.color.size.kern.weight.style.b.i.spc.baseline.italic.underline.strike.font.eastAsianFont.complexScriptFont.symbolFont.language.alternateLanguage.kerning.spacing.letterSpacing.capitals.normalizeHeight.highlight.hyperlink.outline.effects.fill.stroke".split(".")), es = {
|
|
3369
3377
|
latin: "lt",
|
|
3370
3378
|
ea: "ea",
|
|
3371
3379
|
cs: "cs",
|
|
3372
3380
|
sym: "lt",
|
|
3373
3381
|
buFont: "lt"
|
|
3374
|
-
},
|
|
3382
|
+
}, ts = (e, t, n) => {
|
|
3375
3383
|
if (!n) return;
|
|
3376
|
-
let r = n.scheme !== void 0 && n.scheme !== rn.Scheme.None ? `+${n.scheme === rn.Scheme.Major ? "mj" : "mn"}-${
|
|
3384
|
+
let r = n.scheme !== void 0 && n.scheme !== rn.Scheme.None ? `+${n.scheme === rn.Scheme.Major ? "mj" : "mn"}-${es[t]}` : n.family;
|
|
3377
3385
|
r !== void 0 && e.empty(t, {
|
|
3378
3386
|
typeface: r,
|
|
3379
3387
|
panose: n.panose,
|
|
3380
3388
|
pitchFamily: n.pitch,
|
|
3381
3389
|
charset: Se(n.charset)
|
|
3382
3390
|
});
|
|
3383
|
-
},
|
|
3391
|
+
}, ns = (e, t, n, r, i = R.EmptyObject) => {
|
|
3384
3392
|
let a = e.getXMLWriter(), o = ((e, t, n = R.EmptyArray) => {
|
|
3385
3393
|
if (!t) return { ...n };
|
|
3386
3394
|
let r = { ...n };
|
|
3387
|
-
for (let e of Object.keys(t))
|
|
3395
|
+
for (let e of Object.keys(t)) $o.has(e) || t[e] === void 0 || (r[e] = t[e]);
|
|
3388
3396
|
let { size: i, kern: a, weight: o, style: s, b: c, i: l, spc: u, baseline: d } = t, f = t;
|
|
3389
|
-
return f.language !== void 0 && (r.lang = f.language), f.alternateLanguage !== void 0 && (r.altLang = f.alternateLanguage), i !== void 0 && (r.sz = "" + hi(i)), c !== void 0 && (r.b = c ? "1" : "0"), o !== void 0 && (r.b = o > 500 ? "1" : "0"), l !== void 0 && (r.i = l ? "1" : "0"), s !== void 0 && (r.i = s === "italic" ? "1" : "0"), t.italic !== void 0 && (r.i = t.italic ? "1" : "0"), f.underline !== void 0 && (r.u = C.write(f.underline)), f.strike !== void 0 && (r.strike = E.write(f.strike)), a !== void 0 && (r.kern = "" + hi(a)), f.kerning !== void 0 && (r.kern = "" + hi(f.kerning)), u !== void 0 && (r.spc = "" + hi(u)), f.letterSpacing !== void 0 && (r.spc = "" + hi(f.letterSpacing)), d !== void 0 && (r.baseline =
|
|
3397
|
+
return f.language !== void 0 && (r.lang = f.language), f.alternateLanguage !== void 0 && (r.altLang = f.alternateLanguage), i !== void 0 && (r.sz = "" + hi(i)), c !== void 0 && (r.b = c ? "1" : "0"), o !== void 0 && (r.b = o > 500 ? "1" : "0"), l !== void 0 && (r.i = l ? "1" : "0"), s !== void 0 && (r.i = s === "italic" ? "1" : "0"), t.italic !== void 0 && (r.i = t.italic ? "1" : "0"), f.underline !== void 0 && (r.u = C.write(f.underline)), f.strike !== void 0 && (r.strike = E.write(f.strike)), a !== void 0 && (r.kern = "" + hi(a)), f.kerning !== void 0 && (r.kern = "" + hi(f.kerning)), u !== void 0 && (r.spc = "" + hi(u)), f.letterSpacing !== void 0 && (r.spc = "" + hi(f.letterSpacing)), d !== void 0 && (r.baseline = Qo(d)), f.capitals !== void 0 && (r.cap = f.capitals), f.normalizeHeight !== void 0 && (r.normalizeH = Q(f.normalizeHeight)), r;
|
|
3390
3398
|
})(0, r ?? {}, i);
|
|
3391
|
-
r?.outline || r?.color || r?.effects?.length || r?.highlight || r?.font || r?.eastAsianFont || r?.complexScriptFont || r?.symbolFont || r?.hyperlink ? (a.start(n, o), r.outline && Xr(e, a, r.outline, t), r.color && Yr(e, a, r.color, t), r.effects?.length && $r(e, a, t.getTheme(), r.effects), r.highlight && (a.start("highlight"), J(a, t.getTheme(), r.highlight), a.end("highlight")),
|
|
3392
|
-
},
|
|
3393
|
-
n && (e.start(t), "percent" in n ? e.empty("spcPct", { val:
|
|
3394
|
-
},
|
|
3399
|
+
r?.outline || r?.color || r?.effects?.length || r?.highlight || r?.font || r?.eastAsianFont || r?.complexScriptFont || r?.symbolFont || r?.hyperlink ? (a.start(n, o), r.outline && Xr(e, a, r.outline, t), r.color && Yr(e, a, r.color, t), r.effects?.length && $r(e, a, t.getTheme(), r.effects), r.highlight && (a.start("highlight"), J(a, t.getTheme(), r.highlight), a.end("highlight")), ts(a, "latin", r.font), ts(a, "ea", r.eastAsianFont), ts(a, "cs", r.complexScriptFont), ts(a, "sym", r.symbolFont), Jr(e, a, "hlinkClick", r.hyperlink), a.end(n)) : a.empty(n, o);
|
|
3400
|
+
}, rs = (e, t, n) => {
|
|
3401
|
+
n && (e.start(t), "percent" in n ? e.empty("spcPct", { val: Qo(n.percent) }) : e.empty("spcPts", { val: String(Math.round(100 * n.points)) }), e.end(t));
|
|
3402
|
+
}, is = (e, t, n, r) => {
|
|
3395
3403
|
let i = e.getXMLWriter(), a = {
|
|
3396
3404
|
marL: r.marginLeft === void 0 ? void 0 : String(X(r.marginLeft)),
|
|
3397
3405
|
marR: r.marginRight === void 0 ? void 0 : String(X(r.marginRight)),
|
|
@@ -3406,7 +3414,7 @@ var Yo = (e) => String(Math.round(1e3 * e)), Q = (e) => e === void 0 ? void 0 :
|
|
|
3406
3414
|
hangingPunct: Q(r.hangingPunctuation)
|
|
3407
3415
|
}, o = r.bullet;
|
|
3408
3416
|
if (r.lineSpacing || r.spaceBefore || r.spaceAfter || o || r.tabs || r.defaultRun) {
|
|
3409
|
-
if (i.start(n, a),
|
|
3417
|
+
if (i.start(n, a), rs(i, "lnSpc", r.lineSpacing), rs(i, "spcBef", r.spaceBefore), rs(i, "spcAft", r.spaceAfter), o) switch (o.colorFollowsText ? i.empty("buClrTx") : o.color && (i.start("buClr"), J(i, t.getTheme(), o.color), i.end("buClr")), o.sizeFollowsText ? i.empty("buSzTx") : o.size && ("percent" in o.size ? i.empty("buSzPct", { val: Qo(o.size.percent) }) : i.empty("buSzPts", { val: String(Math.round(100 * o.size.points)) })), o.fontFollowsText ? i.empty("buFontTx") : ts(i, "buFont", o.font), o.type) {
|
|
3410
3418
|
case "none":
|
|
3411
3419
|
i.empty("buNone");
|
|
3412
3420
|
break;
|
|
@@ -3426,14 +3434,14 @@ var Yo = (e) => String(Math.round(1e3 * e)), Q = (e) => e === void 0 ? void 0 :
|
|
|
3426
3434
|
});
|
|
3427
3435
|
i.end("tabLst");
|
|
3428
3436
|
}
|
|
3429
|
-
r.defaultRun &&
|
|
3437
|
+
r.defaultRun && ns(e, t, "defRPr", r.defaultRun), i.end(n);
|
|
3430
3438
|
} else i.empty(n, a);
|
|
3431
|
-
},
|
|
3439
|
+
}, as = (e) => e === K.Overflow.Visible ? void 0 : _e.write(e), os = (e, t) => {
|
|
3432
3440
|
let n = t.body ?? {}, r = n.insets, i = {
|
|
3433
3441
|
rot: t.rotation === void 0 ? void 0 : String(Math.round(6e4 * t.rotation)),
|
|
3434
3442
|
spcFirstLastPara: Q(n.spaceFirstLastParagraph),
|
|
3435
|
-
vertOverflow:
|
|
3436
|
-
horzOverflow:
|
|
3443
|
+
vertOverflow: as(n.verticalOverflow ?? bn.TEXT_DEFAULTS.verticalOverflow),
|
|
3444
|
+
horzOverflow: as(n.horizontalOverflow ?? bn.TEXT_DEFAULTS.horizontalOverflow),
|
|
3437
3445
|
vert: be.write(n.vertical),
|
|
3438
3446
|
wrap: n.wrap,
|
|
3439
3447
|
lIns: r?.left === void 0 ? void 0 : String(X(r.left)),
|
|
@@ -3472,25 +3480,25 @@ var Yo = (e) => String(Math.round(1e3 * e)), Q = (e) => e === void 0 ? void 0 :
|
|
|
3472
3480
|
e.empty("spAutoFit");
|
|
3473
3481
|
break;
|
|
3474
3482
|
case K.Autofit.Normal: e.empty("normAutofit", {
|
|
3475
|
-
fontScale: n.fontScale === void 0 ? void 0 :
|
|
3476
|
-
lnSpcReduction: n.lineSpacingReduction === void 0 ? void 0 :
|
|
3483
|
+
fontScale: n.fontScale === void 0 ? void 0 : Qo(n.fontScale),
|
|
3484
|
+
lnSpcReduction: n.lineSpacingReduction === void 0 ? void 0 : Qo(n.lineSpacingReduction)
|
|
3477
3485
|
});
|
|
3478
3486
|
}
|
|
3479
3487
|
n.extLst && e.raw(n.extLst), e.end("bodyPr");
|
|
3480
3488
|
} else e.empty("bodyPr", i);
|
|
3481
|
-
},
|
|
3489
|
+
}, ss = (e, t, n) => {
|
|
3482
3490
|
let r = e.getXMLWriter();
|
|
3483
|
-
n && (n.default || n.levels?.some((e) => e)) ? (r.start("lstStyle"), n.default &&
|
|
3484
|
-
n &&
|
|
3491
|
+
n && (n.default || n.levels?.some((e) => e)) ? (r.start("lstStyle"), n.default && is(e, t, "defPPr", n.default), n.levels?.forEach((n, r) => {
|
|
3492
|
+
n && is(e, t, `lvl${r + 1}pPr`, n);
|
|
3485
3493
|
}), r.end("lstStyle")) : r.empty("lstStyle");
|
|
3486
|
-
},
|
|
3494
|
+
}, cs = (e, t, n, r) => {
|
|
3487
3495
|
let i = e.getXMLWriter();
|
|
3488
3496
|
i.pushDefaultNamespace("a"), i.start("p");
|
|
3489
3497
|
let { runs: a, endRun: o, ...s } = r, c = bn.inheritedTextSize(n, r) === void 0 ? (e) => e.size === void 0 ? {
|
|
3490
3498
|
...e,
|
|
3491
3499
|
size: bn.TEXT_DEFAULTS.size
|
|
3492
3500
|
} : e : (e) => e;
|
|
3493
|
-
((e) => !!e && Object.keys(e).some((t) => t !== "runs" && t !== "endRun" && e[t] !== void 0))(s) &&
|
|
3501
|
+
((e) => !!e && Object.keys(e).some((t) => t !== "runs" && t !== "endRun" && e[t] !== void 0))(s) && is(e, t, "pPr", s);
|
|
3494
3502
|
for (let n of a ?? []) {
|
|
3495
3503
|
if (n?.text === "\n") {
|
|
3496
3504
|
i.empty("br");
|
|
@@ -3500,22 +3508,22 @@ var Yo = (e) => String(Math.round(1e3 * e)), Q = (e) => e === void 0 ? void 0 :
|
|
|
3500
3508
|
i.start(s, a ? {
|
|
3501
3509
|
id: a.id,
|
|
3502
3510
|
type: a.type
|
|
3503
|
-
} : {}),
|
|
3511
|
+
} : {}), ns(e, t, "rPr", c(o)), i.start("t"), i.text(r ?? ""), i.end("t"), i.end(s);
|
|
3504
3512
|
}
|
|
3505
|
-
!o && a?.length ||
|
|
3506
|
-
},
|
|
3513
|
+
!o && a?.length || ns(e, t, "endParaRPr", c(o ?? {})), i.end("p"), i.popDefaultNamespace();
|
|
3514
|
+
}, ls = (e, t, n) => {
|
|
3507
3515
|
if (!n) return;
|
|
3508
3516
|
let r = e.getXMLWriter(), i = ((e) => typeof e == "string" ? { paragraphs: [{ runs: [{ text: e }] }] } : Array.isArray(e?.paragraphs) ? e : { paragraphs: [e] })(n);
|
|
3509
|
-
r.start("txBody"), r.pushDefaultNamespace("a"),
|
|
3517
|
+
r.start("txBody"), r.pushDefaultNamespace("a"), os(r, i), ss(e, t, i.listStyle);
|
|
3510
3518
|
let a = i.paragraphs.length === 0 ? [{ runs: [] }] : i.paragraphs;
|
|
3511
|
-
for (let n of a)
|
|
3519
|
+
for (let n of a) cs(e, t, i, n);
|
|
3512
3520
|
r.popDefaultNamespace(), r.end("txBody");
|
|
3513
|
-
},
|
|
3521
|
+
}, us = (e, t, n) => {
|
|
3514
3522
|
let r = e.getXMLWriter();
|
|
3515
3523
|
if (!n) return r.empty("bodyPr"), void r.empty("lstStyle");
|
|
3516
|
-
|
|
3524
|
+
os(r, n), ss(e, t, n.listStyle);
|
|
3517
3525
|
};
|
|
3518
|
-
function
|
|
3526
|
+
function ds(e, t, n, r) {
|
|
3519
3527
|
e.start(r);
|
|
3520
3528
|
let i = { typeface: t.latin || n };
|
|
3521
3529
|
t.panose && (i.panose = t.panose), e.empty("latin", i), e.empty("ea", { typeface: t.eastAsian ?? "" }), e.empty("cs", { typeface: t.complexScript ?? "" });
|
|
@@ -3526,11 +3534,11 @@ function cs(e, t, n, r) {
|
|
|
3526
3534
|
});
|
|
3527
3535
|
e.end(r);
|
|
3528
3536
|
}
|
|
3529
|
-
var
|
|
3537
|
+
var fs = [
|
|
3530
3538
|
["shape", "spDef"],
|
|
3531
3539
|
["line", "lnDef"],
|
|
3532
3540
|
["text", "txDef"]
|
|
3533
|
-
],
|
|
3541
|
+
], ps = { checkbox: "Checkbox" }, ms = [
|
|
3534
3542
|
["dc:title", "title"],
|
|
3535
3543
|
["dc:subject", "subject"],
|
|
3536
3544
|
["dc:creator", "author"],
|
|
@@ -3551,9 +3559,9 @@ var ls = [
|
|
|
3551
3559
|
["cp:category", "category"],
|
|
3552
3560
|
["cp:contentStatus", "contentStatus"],
|
|
3553
3561
|
["cp:revision", "revisionNumber"]
|
|
3554
|
-
],
|
|
3562
|
+
], hs = (e) => e.toISOString().split(".")[0] + "Z", gs = (e, t, n, r) => {
|
|
3555
3563
|
t.start(n), t.text(r), t.end(n);
|
|
3556
|
-
},
|
|
3564
|
+
}, _s = (e, t, n) => {
|
|
3557
3565
|
let r = [
|
|
3558
3566
|
{
|
|
3559
3567
|
heading: "Worksheets",
|
|
@@ -3599,13 +3607,13 @@ var ls = [
|
|
|
3599
3607
|
});
|
|
3600
3608
|
for (let e of o) for (let n of e.names) t.start("vt:lpstr"), t.text(n), t.end("vt:lpstr");
|
|
3601
3609
|
t.end("vt:vector"), t.end("TitlesOfParts");
|
|
3602
|
-
},
|
|
3610
|
+
}, vs = {
|
|
3603
3611
|
[tn.Type.String]: "vt:lpwstr",
|
|
3604
3612
|
[tn.Type.Number]: "vt:i4",
|
|
3605
3613
|
[tn.Type.Float]: "vt:r8",
|
|
3606
3614
|
[tn.Type.Boolean]: "vt:bool",
|
|
3607
3615
|
[tn.Type.Date]: "vt:filetime"
|
|
3608
|
-
},
|
|
3616
|
+
}, ys = (e) => e.split(".")[0] + "Z", bs = {
|
|
3609
3617
|
minSupportedVersion: "120000",
|
|
3610
3618
|
copy: "1",
|
|
3611
3619
|
pasteAll: "1",
|
|
@@ -3617,20 +3625,20 @@ var ls = [
|
|
|
3617
3625
|
clearComments: "1",
|
|
3618
3626
|
assign: "1",
|
|
3619
3627
|
coerce: "1"
|
|
3620
|
-
},
|
|
3628
|
+
}, xs = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", Ss = (e, t) => {
|
|
3621
3629
|
for (let [n, r] of t) e.start("v", n ? { t: n } : void 0), e.text(r), e.end("v");
|
|
3622
|
-
}, $ = (e) => e === void 0 || e === "_" ? void 0 : e,
|
|
3630
|
+
}, $ = (e) => e === void 0 || e === "_" ? void 0 : e, Cs = (e, t) => {
|
|
3623
3631
|
let n = t.indexOf(" ");
|
|
3624
3632
|
n < 0 || e.empty("gd", {
|
|
3625
3633
|
name: t.slice(0, n),
|
|
3626
3634
|
fmla: t.slice(n + 1).trim()
|
|
3627
3635
|
});
|
|
3628
|
-
},
|
|
3636
|
+
}, ws = (e, t, n) => {
|
|
3629
3637
|
e.empty("pos", {
|
|
3630
3638
|
x: t,
|
|
3631
3639
|
y: n
|
|
3632
3640
|
});
|
|
3633
|
-
},
|
|
3641
|
+
}, Ts = (e, t) => {
|
|
3634
3642
|
let n = t.split(" ");
|
|
3635
3643
|
n[0] === "xy" ? (e.start("ahXY", {
|
|
3636
3644
|
gdRefX: $(n[1]),
|
|
@@ -3639,20 +3647,20 @@ var ls = [
|
|
|
3639
3647
|
gdRefY: $(n[2]),
|
|
3640
3648
|
minY: $(n[7]),
|
|
3641
3649
|
maxY: $(n[8])
|
|
3642
|
-
}),
|
|
3650
|
+
}), ws(e, n[3], n[4]), e.end("ahXY")) : n[0] === "polar" && (e.start("ahPolar", {
|
|
3643
3651
|
gdRefR: $(n[1]),
|
|
3644
3652
|
minR: $(n[5]),
|
|
3645
3653
|
maxR: $(n[6]),
|
|
3646
3654
|
gdRefAng: $(n[2]),
|
|
3647
3655
|
minAng: $(n[7]),
|
|
3648
3656
|
maxAng: $(n[8])
|
|
3649
|
-
}),
|
|
3650
|
-
},
|
|
3657
|
+
}), ws(e, n[3], n[4]), e.end("ahPolar"));
|
|
3658
|
+
}, Es = {
|
|
3651
3659
|
M: ["moveTo", 1],
|
|
3652
3660
|
L: ["lnTo", 1],
|
|
3653
3661
|
Q: ["quadBezTo", 2],
|
|
3654
3662
|
C: ["cubicBezTo", 3]
|
|
3655
|
-
},
|
|
3663
|
+
}, Ds = (e, t) => {
|
|
3656
3664
|
e.start("path", {
|
|
3657
3665
|
w: t.w,
|
|
3658
3666
|
h: t.h,
|
|
@@ -3670,7 +3678,7 @@ var ls = [
|
|
|
3670
3678
|
swAng: n[r + 3]
|
|
3671
3679
|
}), r += 4;
|
|
3672
3680
|
else {
|
|
3673
|
-
let i =
|
|
3681
|
+
let i = Es[t];
|
|
3674
3682
|
if (!i) break;
|
|
3675
3683
|
e.start(i[0]);
|
|
3676
3684
|
for (let t = 0; t < i[1]; t++, r += 2) e.empty("pt", {
|
|
@@ -3681,32 +3689,32 @@ var ls = [
|
|
|
3681
3689
|
}
|
|
3682
3690
|
}
|
|
3683
3691
|
e.end("path");
|
|
3684
|
-
},
|
|
3692
|
+
}, Os = {
|
|
3685
3693
|
type: "http://schemas.microsoft.com/office/2011/relationships/chartStyle",
|
|
3686
3694
|
contentType: "application/vnd.ms-office.chartstyle+xml",
|
|
3687
3695
|
name: "style1.xml",
|
|
3688
3696
|
xml: "<cs:chartStyle xmlns:cs=\"http://schemas.microsoft.com/office/drawing/2012/chartStyle\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" id=\"395\"><cs:axisTitle><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:axisTitle><cs:categoryAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:categoryAxis><cs:chartArea mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"bg1\"/></a:solidFill><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"1000\"/></cs:chartArea><cs:dataLabel><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:dataLabel><cs:dataLabelCallout><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill><a:ln><a:solidFill><a:schemeClr val=\"dk1\"><a:lumMod val=\"25000\"/><a:lumOff val=\"75000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr><cs:defRPr sz=\"900\"/><cs:bodyPr rot=\"0\" spcFirstLastPara=\"1\" vertOverflow=\"clip\" horzOverflow=\"clip\" vert=\"horz\" wrap=\"square\" lIns=\"36576\" tIns=\"18288\" rIns=\"36576\" bIns=\"18288\" anchor=\"ctr\" anchorCtr=\"1\"><a:spAutoFit/></cs:bodyPr></cs:dataLabelCallout><cs:dataPoint><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill></cs:spPr></cs:dataPoint><cs:dataPoint3D><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill></cs:spPr></cs:dataPoint3D><cs:dataPointLine><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"28575\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointLine><cs:dataPointMarker><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></cs:spPr></cs:dataPointMarker><cs:dataPointMarkerLayout symbol=\"circle\" size=\"5\"/><cs:dataPointWireframe><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"28575\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointWireframe><cs:dataTable><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:dataTable><cs:downBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"dk1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:downBar><cs:dropLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"35000\"/><a:lumOff val=\"65000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:dropLine><cs:errorBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:errorBar><cs:floor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:floor><cs:gridlineMajor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMajor><cs:gridlineMinor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMinor><cs:hiLoLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"75000\"/><a:lumOff val=\"25000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:hiLoLine><cs:leaderLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"35000\"/><a:lumOff val=\"65000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:leaderLine><cs:legend><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:legend><cs:plotArea mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:plotArea><cs:plotArea3D mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:plotArea3D><cs:seriesAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:seriesAxis><cs:seriesLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\"><a:solidFill><a:srgbClr val=\"D9D9D9\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:seriesLine><cs:title><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"1400\"/></cs:title><cs:trendline><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"19050\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:prstDash val=\"sysDash\"/></a:ln></cs:spPr></cs:trendline><cs:trendlineLabel><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:trendlineLabel><cs:upBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:upBar><cs:valueAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:valueAxis><cs:wall><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:wall></cs:chartStyle>"
|
|
3689
|
-
},
|
|
3697
|
+
}, ks = {
|
|
3690
3698
|
type: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle",
|
|
3691
3699
|
contentType: "application/vnd.ms-office.chartcolorstyle+xml",
|
|
3692
3700
|
name: "colors1.xml",
|
|
3693
3701
|
xml: "<cs:colorStyle xmlns:cs=\"http://schemas.microsoft.com/office/drawing/2012/chartStyle\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" meth=\"cycle\" id=\"10\"><a:schemeClr val=\"accent1\"/><a:schemeClr val=\"accent2\"/><a:schemeClr val=\"accent3\"/><a:schemeClr val=\"accent4\"/><a:schemeClr val=\"accent5\"/><a:schemeClr val=\"accent6\"/><cs:variation/><cs:variation><a:lumMod val=\"60000\"/></cs:variation><cs:variation><a:lumMod val=\"80000\"/><a:lumOff val=\"20000\"/></cs:variation><cs:variation><a:lumMod val=\"80000\"/></cs:variation><cs:variation><a:lumMod val=\"60000\"/><a:lumOff val=\"40000\"/></cs:variation><cs:variation><a:lumMod val=\"50000\"/></cs:variation><cs:variation><a:lumMod val=\"70000\"/><a:lumOff val=\"30000\"/></cs:variation><cs:variation><a:lumMod val=\"70000\"/></cs:variation><cs:variation><a:lumMod val=\"50000\"/><a:lumOff val=\"50000\"/></cs:variation></cs:colorStyle>"
|
|
3694
|
-
},
|
|
3702
|
+
}, As = (e, t) => {
|
|
3695
3703
|
let n = {};
|
|
3696
3704
|
t.unlocked && (n.fLocksWithSheet = "0"), t.noPrint && (n.fPrintsWithSheet = "0"), e.empty("clientData", n);
|
|
3697
|
-
},
|
|
3705
|
+
}, js = (e) => e.content?.json?.members ?? [], Ms = (e) => ({
|
|
3698
3706
|
x: e.anchor?.tl?.x ?? 0,
|
|
3699
3707
|
y: e.anchor?.tl?.y ?? 0,
|
|
3700
3708
|
width: e.anchor?.br?.x ?? 0,
|
|
3701
3709
|
height: e.anchor?.br?.y ?? 0
|
|
3702
|
-
}),
|
|
3710
|
+
}), Ns = async (e, t) => {
|
|
3703
3711
|
let n = t.content;
|
|
3704
3712
|
if (n?.type !== "shape" && n?.type !== "picture" || await si(e, n.json), n?.type === "group") {
|
|
3705
3713
|
await si(e, n.json);
|
|
3706
|
-
for (let n of
|
|
3714
|
+
for (let n of js(t)) await Ns(e, n);
|
|
3707
3715
|
}
|
|
3708
|
-
},
|
|
3709
|
-
let o = await ai(e, a), s = r.content?.json, c = s?.image ?? {}, l = c.extLst ?? (o.external ? void 0 :
|
|
3716
|
+
}, Ps = async (e, t, n, r, i, a) => {
|
|
3717
|
+
let o = await ai(e, a), s = r.content?.json, c = s?.image ?? {}, l = c.extLst ?? (o.external ? void 0 : Fs), u = {
|
|
3710
3718
|
...c,
|
|
3711
3719
|
type: G.Type.Image,
|
|
3712
3720
|
extLst: l,
|
|
@@ -3716,8 +3724,8 @@ var ls = [
|
|
|
3716
3724
|
let f = {};
|
|
3717
3725
|
c.dpi !== void 0 && (f.dpi = String(c.dpi)), c.isRotatedWithShape !== void 0 && (f.rotWithShape = c.isRotatedWithShape ? "1" : "0");
|
|
3718
3726
|
let p = e.getXMLWriter();
|
|
3719
|
-
p.start("pic", d), p.start("nvPicPr"),
|
|
3720
|
-
},
|
|
3727
|
+
p.start("pic", d), p.start("nvPicPr"), Zs(e, p, n, r, t), p.start("cNvPicPr", s?.noRelativeResize ? { preferRelativeResize: "0" } : {}), p.empty("a:picLocks", tc(r)), p.end("cNvPicPr"), p.end("nvPicPr"), p.start("blipFill", f), p.pushDefaultNamespace("a"), di(p, u, o), p.popDefaultNamespace(), p.end("blipFill"), Ys(e, t, n, r, i), p.end("pic");
|
|
3728
|
+
}, Fs = "<a:extLst><a:ext uri=\"{28A0092B-C50C-407E-A947-70E740481C1C}\"><a14:useLocalDpi xmlns:a14=\"http://schemas.microsoft.com/office/drawing/2010/main\" val=\"0\"/></a:ext></a:extLst>", Is = async (e, t, n, r, i) => {
|
|
3721
3729
|
let a = r.content?.json, o = a?.model, s = a?.part, c = () => i ?? n?.getBounds() ?? {
|
|
3722
3730
|
x: 0,
|
|
3723
3731
|
y: 0,
|
|
@@ -3731,16 +3739,16 @@ var ls = [
|
|
|
3731
3739
|
});
|
|
3732
3740
|
if (n.leftOut.length > 0) {
|
|
3733
3741
|
let i = r.content?.name ?? "";
|
|
3734
|
-
if (n.leftOut.length === u.length) return e.warn(`The chart '${i}' is of a type an xlsx file cannot hold (${n.leftOut.join(", ")}); it is saved as a placeholder.`, void 0, "xlsx.chart.unplaced"),
|
|
3742
|
+
if (n.leftOut.length === u.length) return e.warn(`The chart '${i}' is of a type an xlsx file cannot hold (${n.leftOut.join(", ")}); it is saved as a placeholder.`, void 0, "xlsx.chart.unplaced"), Js(e, t, r, c());
|
|
3735
3743
|
e.warn(`The chart '${i}' combines types one xlsx chart cannot hold together; it is saved without its ${n.leftOut.join(", ")} series.`, void 0, "xlsx.chart.leftOut");
|
|
3736
3744
|
}
|
|
3737
3745
|
d = n.family, f = n.xml;
|
|
3738
3746
|
} else {
|
|
3739
|
-
if (!s?.xml || !l) return
|
|
3747
|
+
if (!s?.xml || !l) return Js(e, t, r, c());
|
|
3740
3748
|
d = l, f = s.xml;
|
|
3741
3749
|
}
|
|
3742
3750
|
let p = qt[d], m = [...s?.parts ?? []];
|
|
3743
|
-
if (d === "chartEx") for (let e of [
|
|
3751
|
+
if (d === "chartEx") for (let e of [Os, ks]) m.some((t) => t.type === e.type) || m.push({
|
|
3744
3752
|
id: "",
|
|
3745
3753
|
...e
|
|
3746
3754
|
});
|
|
@@ -3752,9 +3760,9 @@ var ls = [
|
|
|
3752
3760
|
xml: f,
|
|
3753
3761
|
parts: m
|
|
3754
3762
|
}, e, p.path);
|
|
3755
|
-
if (!h?.relId) return
|
|
3763
|
+
if (!h?.relId) return Js(e, t, r, c());
|
|
3756
3764
|
let g = e.getXMLWriter();
|
|
3757
|
-
if (d === "chart") return void
|
|
3765
|
+
if (d === "chart") return void Ls(e, t, n, r, d, h.relId, i);
|
|
3758
3766
|
let _ = ((e) => {
|
|
3759
3767
|
let t = new Set(e.map((e) => e.type));
|
|
3760
3768
|
return t.has("regionMap") ? {
|
|
@@ -3768,18 +3776,18 @@ var ls = [
|
|
|
3768
3776
|
uri: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"
|
|
3769
3777
|
};
|
|
3770
3778
|
})(u);
|
|
3771
|
-
g.start("mc:AlternateContent", { "xmlns:mc":
|
|
3779
|
+
g.start("mc:AlternateContent", { "xmlns:mc": Hs }), g.start("mc:Choice", {
|
|
3772
3780
|
[`xmlns:${_.prefix}`]: _.uri,
|
|
3773
3781
|
Requires: _.prefix
|
|
3774
|
-
}),
|
|
3775
|
-
},
|
|
3782
|
+
}), Ls(e, t, n, r, d, h.relId, i), g.end("mc:Choice"), g.start("mc:Fallback"), Ks(g, c(), "This chart isn't available in your version of Excel.\n\nEditing this shape or saving this workbook into a different file format will permanently break the chart."), g.end("mc:Fallback"), g.end("mc:AlternateContent");
|
|
3783
|
+
}, Ls = (e, t, n, r, i, a, o) => {
|
|
3776
3784
|
let s = e.getXMLWriter(), c = o ?? {
|
|
3777
3785
|
x: 0,
|
|
3778
3786
|
y: 0,
|
|
3779
3787
|
width: 0,
|
|
3780
3788
|
height: 0
|
|
3781
3789
|
}, l = i === "chartEx" ? "cx" : "c", u = qt[i].graphicUri;
|
|
3782
|
-
s.start("graphicFrame", { macro: "" }), s.start("nvGraphicFramePr"),
|
|
3790
|
+
s.start("graphicFrame", { macro: "" }), s.start("nvGraphicFramePr"), Zs(e, s, n, r, t), r.lockAspect ? (s.start("cNvGraphicFramePr"), s.empty("a:graphicFrameLocks", { noChangeAspect: "1" }), s.end("cNvGraphicFramePr")) : s.empty("cNvGraphicFramePr"), s.end("nvGraphicFramePr"), s.start("xfrm"), s.empty("a:off", {
|
|
3783
3791
|
x: X(c.x),
|
|
3784
3792
|
y: X(c.y)
|
|
3785
3793
|
}), s.empty("a:ext", {
|
|
@@ -3790,30 +3798,30 @@ var ls = [
|
|
|
3790
3798
|
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
3791
3799
|
"r:id": a
|
|
3792
3800
|
}), s.end("a:graphicData"), s.end("a:graphic"), s.end("graphicFrame");
|
|
3793
|
-
},
|
|
3801
|
+
}, Rs = async (e, t, n, r, i) => {
|
|
3794
3802
|
let a = e.getXMLWriter(), o = r.content?.json, s = t.getStyles();
|
|
3795
|
-
a.start("grpSp"), a.start("nvGrpSpPr"),
|
|
3796
|
-
let c =
|
|
3797
|
-
c ? (a.start("cNvGrpSpPr"), a.empty("a:grpSpLocks", c), a.end("cNvGrpSpPr")) : a.empty("cNvGrpSpPr"), a.end("nvGrpSpPr"), a.start("grpSpPr"), a.pushDefaultNamespace("a"),
|
|
3798
|
-
for (let n of
|
|
3803
|
+
a.start("grpSp"), a.start("nvGrpSpPr"), Zs(e, a, n, r, t);
|
|
3804
|
+
let c = $s(r);
|
|
3805
|
+
c ? (a.start("cNvGrpSpPr"), a.empty("a:grpSpLocks", c), a.end("cNvGrpSpPr")) : a.empty("cNvGrpSpPr"), a.end("nvGrpSpPr"), a.start("grpSpPr"), a.pushDefaultNamespace("a"), nc(a, i, r, o?.childBounds ?? i), Qr(e, s, o), o?.scene3d && a.raw(o.scene3d), o?.extLst?.properties && a.raw(o.extLst.properties), a.popDefaultNamespace(), a.end("grpSpPr");
|
|
3806
|
+
for (let n of js(r)) await zs(e, t, n, Ms(n));
|
|
3799
3807
|
a.end("grpSp");
|
|
3800
|
-
},
|
|
3808
|
+
}, zs = async (e, t, n, r) => {
|
|
3801
3809
|
switch (n.content?.type) {
|
|
3802
3810
|
case "picture": {
|
|
3803
3811
|
let i = oi(e, n.content.json?.resId);
|
|
3804
|
-
return i ?
|
|
3812
|
+
return i ? Ps(e, t, null, n, r, i) : void e.warn(`The picture '${n.content.name ?? ""}' in a group names no image in the workbook; the group is saved without it.`, void 0, "xlsx.drawing.group.picture");
|
|
3805
3813
|
}
|
|
3806
|
-
case "chart": return
|
|
3807
|
-
case "shape": return
|
|
3808
|
-
case "group": return
|
|
3809
|
-
default: return Ge(n.content?.type) ? void
|
|
3814
|
+
case "chart": return Is(e, t, null, n, r);
|
|
3815
|
+
case "shape": return Bs(e, t, null, n, r);
|
|
3816
|
+
case "group": return Rs(e, t, null, n, r);
|
|
3817
|
+
default: return Ge(n.content?.type) ? void ic(e.getXMLWriter(), n, r) : Js(e, t, n, r);
|
|
3810
3818
|
}
|
|
3811
|
-
},
|
|
3819
|
+
}, Bs = async (e, t, n, r, i) => {
|
|
3812
3820
|
let a = e.getXMLWriter(), o = {}, s = r.content?.json, c = s?.type ?? sn.Type.Shape, l = t.getStyles();
|
|
3813
|
-
c === sn.Type.Connector ? (s?.macro !== void 0 && (o.macro = s.macro), s?.published !== void 0 && (o.fPublished = s.published ? "1" : "0"), a.start("cxnSp", o), a.start("nvCxnSpPr"),
|
|
3814
|
-
},
|
|
3821
|
+
c === sn.Type.Connector ? (s?.macro !== void 0 && (o.macro = s.macro), s?.published !== void 0 && (o.fPublished = s.published ? "1" : "0"), a.start("cxnSp", o), a.start("nvCxnSpPr"), Zs(e, a, n, r, t), ec(e, a, n, r, t), a.end("nvCxnSpPr"), Ys(e, t, n, r, i), Xs(e, t, n, r), ls(e, l, s?.text), a.end("cxnSp")) : (s?.macro !== void 0 && (o.macro = s.macro), s?.textLink !== void 0 && (o.textlink = s.textLink), s?.locksText !== void 0 && (o.fLocksText = s.locksText ? "1" : "0"), s?.published !== void 0 && (o.fPublished = s.published ? "1" : "0"), a.start("sp", o), a.start("nvSpPr"), Zs(e, a, n, r, t), ec(e, a, n, r, t), a.end("nvSpPr"), Ys(e, t, n, r, i), Xs(e, t, n, r), ls(e, l, s?.text), a.end("sp"));
|
|
3822
|
+
}, Vs = async (e, t, n, r) => Js(e, t, r, n.getBounds()), Hs = "http://schemas.openxmlformats.org/markup-compatibility/2006", Us = "http://schemas.microsoft.com/office/drawing/2010/slicer", Ws = "http://schemas.microsoft.com/office/drawing/2012/timeslicer", Gs = async (e, t, n, r) => {
|
|
3815
3823
|
let i = e.getXMLWriter(), a = r.content?.name ?? "", o = ja(n.getContent()), s = o?.timeline !== void 0, c = s ? {
|
|
3816
|
-
"xmlns:tsle":
|
|
3824
|
+
"xmlns:tsle": Ws,
|
|
3817
3825
|
Requires: "tsle"
|
|
3818
3826
|
} : o ? {
|
|
3819
3827
|
"xmlns:a14": "http://schemas.microsoft.com/office/drawing/2010/main",
|
|
@@ -3822,20 +3830,20 @@ var ls = [
|
|
|
3822
3830
|
"xmlns:sle15": "http://schemas.microsoft.com/office/drawing/2012/slicer",
|
|
3823
3831
|
Requires: "sle15"
|
|
3824
3832
|
}, l = s ? "Timeline: Works in Excel 2013 or higher. Do not move or resize." : o ? "This shape represents a slicer. Slicers are supported in Excel 2010 or later.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2003 or earlier, the slicer cannot be used." : "This shape represents a table slicer. Table slicers are not supported in this version of Excel.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2007 or earlier, the slicer can't be used.";
|
|
3825
|
-
i.start("mc:AlternateContent", { "xmlns:mc":
|
|
3833
|
+
i.start("mc:AlternateContent", { "xmlns:mc": Hs }), i.start("mc:Choice", c), i.start("graphicFrame", { macro: "" }), i.start("nvGraphicFramePr"), Zs(e, i, n, r, t), i.empty("cNvGraphicFramePr"), i.end("nvGraphicFramePr"), i.start("xfrm"), i.empty("a:off", {
|
|
3826
3834
|
x: "0",
|
|
3827
3835
|
y: "0"
|
|
3828
3836
|
}), i.empty("a:ext", {
|
|
3829
3837
|
cx: "0",
|
|
3830
3838
|
cy: "0"
|
|
3831
|
-
}), i.end("xfrm"), i.start("a:graphic"), s ? (i.start("a:graphicData", { uri:
|
|
3832
|
-
"xmlns:tsle":
|
|
3839
|
+
}), i.end("xfrm"), i.start("a:graphic"), s ? (i.start("a:graphicData", { uri: Ws }), i.empty("tsle:timeslicer", {
|
|
3840
|
+
"xmlns:tsle": Ws,
|
|
3833
3841
|
name: a
|
|
3834
|
-
}), i.end("a:graphicData")) : (i.start("a:graphicData", { uri:
|
|
3835
|
-
"xmlns:sle":
|
|
3842
|
+
}), i.end("a:graphicData")) : (i.start("a:graphicData", { uri: Us }), i.empty("sle:slicer", {
|
|
3843
|
+
"xmlns:sle": Us,
|
|
3836
3844
|
name: a
|
|
3837
|
-
}), i.end("a:graphicData")), i.end("a:graphic"), i.end("graphicFrame"), i.end("mc:Choice"), i.start("mc:Fallback"),
|
|
3838
|
-
},
|
|
3845
|
+
}), i.end("a:graphicData")), i.end("a:graphic"), i.end("graphicFrame"), i.end("mc:Choice"), i.start("mc:Fallback"), Ks(i, n.getBounds(), l), i.end("mc:Fallback"), i.end("mc:AlternateContent");
|
|
3846
|
+
}, Ks = (e, t, n) => {
|
|
3839
3847
|
e.start("sp", {
|
|
3840
3848
|
macro: "",
|
|
3841
3849
|
textlink: ""
|
|
@@ -3855,8 +3863,8 @@ var ls = [
|
|
|
3855
3863
|
lang: "en-US",
|
|
3856
3864
|
sz: "1100"
|
|
3857
3865
|
}), e.start("a:t"), e.text(n), e.end("a:t"), e.end("a:r"), e.end("a:p"), e.end("txBody"), e.end("sp");
|
|
3858
|
-
},
|
|
3859
|
-
|
|
3866
|
+
}, qs = async (e, t, n, r) => Js(e, t, r, n.getBounds()), Js = async (e, t, n, r) => {
|
|
3867
|
+
Bs(e, t, null, {
|
|
3860
3868
|
...n,
|
|
3861
3869
|
content: {
|
|
3862
3870
|
type: "shape",
|
|
@@ -3875,19 +3883,19 @@ var ls = [
|
|
|
3875
3883
|
}
|
|
3876
3884
|
}
|
|
3877
3885
|
}, r);
|
|
3878
|
-
},
|
|
3886
|
+
}, Ys = (e, t, n, r, i) => {
|
|
3879
3887
|
let a = e.getXMLWriter(), o = r.content?.json, s = o?.geometry, c = t.getStyles();
|
|
3880
|
-
if (a.start("spPr"), a.pushDefaultNamespace("a"),
|
|
3888
|
+
if (a.start("spPr"), a.pushDefaultNamespace("a"), nc(a, i, r), typeof s == "object" && s) ((e, t) => {
|
|
3881
3889
|
e.start("custGeom"), e.start("avLst");
|
|
3882
|
-
for (let n of t.av ?? [])
|
|
3890
|
+
for (let n of t.av ?? []) Cs(e, n);
|
|
3883
3891
|
e.end("avLst"), e.start("gdLst");
|
|
3884
|
-
for (let n of t.gd ?? [])
|
|
3892
|
+
for (let n of t.gd ?? []) Cs(e, n);
|
|
3885
3893
|
e.end("gdLst"), e.start("ahLst");
|
|
3886
|
-
for (let n of t.ah ?? [])
|
|
3894
|
+
for (let n of t.ah ?? []) Ts(e, n);
|
|
3887
3895
|
e.end("ahLst"), e.start("cxnLst");
|
|
3888
3896
|
for (let n of Array.isArray(t.cxn) ? t.cxn : []) {
|
|
3889
3897
|
let t = n.split(" ");
|
|
3890
|
-
e.start("cxn", { ang: t[0] }),
|
|
3898
|
+
e.start("cxn", { ang: t[0] }), ws(e, t[1], t[2]), e.end("cxn");
|
|
3891
3899
|
}
|
|
3892
3900
|
if (e.end("cxnLst"), t.rect) {
|
|
3893
3901
|
let n = t.rect.split(" ");
|
|
@@ -3899,7 +3907,7 @@ var ls = [
|
|
|
3899
3907
|
});
|
|
3900
3908
|
}
|
|
3901
3909
|
e.start("pathLst");
|
|
3902
|
-
for (let n of t.paths)
|
|
3910
|
+
for (let n of t.paths) Ds(e, n);
|
|
3903
3911
|
e.end("pathLst"), e.end("custGeom");
|
|
3904
3912
|
})(a, s);
|
|
3905
3913
|
else {
|
|
@@ -3917,15 +3925,15 @@ var ls = [
|
|
|
3917
3925
|
a.end("prstGeom");
|
|
3918
3926
|
}
|
|
3919
3927
|
Qr(e, c, o), o?.scene3d && a.raw(o.scene3d), o?.shape3d && a.raw(o.shape3d), o?.extLst?.properties && a.raw(o.extLst.properties), a.popDefaultNamespace(), a.end("spPr");
|
|
3920
|
-
},
|
|
3928
|
+
}, Xs = (e, t, n, r) => {
|
|
3921
3929
|
let i = e.getXMLWriter(), a = r.content?.json?.style;
|
|
3922
3930
|
if (a === null) return;
|
|
3923
3931
|
let o = t.getStyles().getTheme(), s = bn.defaultStyleRefs(r.content?.json), c = (e, t) => {
|
|
3924
3932
|
t && (i.start(e, { idx: String(t.index) }), t.color && J(i, o, t.color), i.end(e));
|
|
3925
3933
|
};
|
|
3926
3934
|
i.start("style"), i.pushDefaultNamespace("a"), c("lnRef", a?.stroke ?? s.stroke), c("fillRef", a?.fill ?? s.fill), c("effectRef", a?.effect ?? s.effect), c("fontRef", a?.font ?? s.font), i.popDefaultNamespace(), i.end("style");
|
|
3927
|
-
},
|
|
3928
|
-
let a =
|
|
3935
|
+
}, Zs = (e, t, n, r, i) => {
|
|
3936
|
+
let a = Qs(e, i).assigned.get(r);
|
|
3929
3937
|
if (a === void 0) {
|
|
3930
3938
|
let t = e.getSharedStates(), n = t.get("uniqueIdCounter");
|
|
3931
3939
|
n || (n = /* @__PURE__ */ new Map(), t.set("uniqueIdCounter", n)), a = (n.get(i) ?? 1) + 1, n.set(i, a);
|
|
@@ -3935,7 +3943,7 @@ var ls = [
|
|
|
3935
3943
|
name: r.content?.name
|
|
3936
3944
|
};
|
|
3937
3945
|
r.content?.description && (s.descr = r.content.description), r.hidden && (s.hidden = "1"), o?.title && (s.title = o.title), t.start("cNvPr", s), Jr(e, t, "a:hlinkClick", o?.hyperlink), Jr(e, t, "a:hlinkHover", o?.hoverHyperlink), o?.extLst?.nonVisual && t.raw(o.extLst.nonVisual), t.end("cNvPr");
|
|
3938
|
-
},
|
|
3946
|
+
}, Qs = (e, t) => {
|
|
3939
3947
|
let n = e.getSharedStates(), r = n.get("drawingIds");
|
|
3940
3948
|
r || (r = /* @__PURE__ */ new Map(), n.set("drawingIds", r));
|
|
3941
3949
|
let i = r.get(t);
|
|
@@ -3943,18 +3951,18 @@ var ls = [
|
|
|
3943
3951
|
assigned: /* @__PURE__ */ new Map(),
|
|
3944
3952
|
bySource: /* @__PURE__ */ new Map()
|
|
3945
3953
|
}, r.set(t, i)), i;
|
|
3946
|
-
},
|
|
3954
|
+
}, $s = (e) => {
|
|
3947
3955
|
let t = { ...e.content?.json?.locks };
|
|
3948
3956
|
e.lockAspect !== void 0 && t.noChangeAspect === void 0 && (t.noChangeAspect = e.lockAspect);
|
|
3949
3957
|
let n = {};
|
|
3950
3958
|
for (let e of Object.keys(t)) t[e] && (n[e] = "1");
|
|
3951
3959
|
return Object.keys(n).length > 0 ? n : null;
|
|
3952
|
-
},
|
|
3953
|
-
let a = r.content?.json, o =
|
|
3960
|
+
}, ec = (e, t, n, r, i) => {
|
|
3961
|
+
let a = r.content?.json, o = $s(r);
|
|
3954
3962
|
if (a?.type === sn.Type.Connector) {
|
|
3955
3963
|
let n = a.connectorEnds;
|
|
3956
3964
|
if (!o && !n) return void t.empty("cNvCxnSpPr");
|
|
3957
|
-
let r =
|
|
3965
|
+
let r = Qs(e, i);
|
|
3958
3966
|
t.start("cNvCxnSpPr"), o && t.empty("a:cxnSpLocks", o), n?.start && t.empty("a:stCxn", {
|
|
3959
3967
|
id: String(r.bySource.get(n.start.id) ?? n.start.id),
|
|
3960
3968
|
idx: String(n.start.index)
|
|
@@ -3966,13 +3974,13 @@ var ls = [
|
|
|
3966
3974
|
}
|
|
3967
3975
|
let s = { txBox: a?.textBox ? "1" : void 0 };
|
|
3968
3976
|
o ? (t.start("cNvSpPr", s), t.empty("a:spLocks", o), t.end("cNvSpPr")) : t.empty("cNvSpPr", s);
|
|
3969
|
-
},
|
|
3977
|
+
}, tc = (e) => {
|
|
3970
3978
|
let t = { ...e.content?.json?.locks };
|
|
3971
3979
|
e.lockAspect === void 0 ? t.noChangeAspect ??= !0 : t.noChangeAspect = e.lockAspect;
|
|
3972
3980
|
let n = {};
|
|
3973
3981
|
for (let e of Object.keys(t)) t[e] && (n[e] = "1");
|
|
3974
3982
|
return n;
|
|
3975
|
-
},
|
|
3983
|
+
}, nc = (e, t, n, r) => {
|
|
3976
3984
|
let i = {}, a = n.rotation;
|
|
3977
3985
|
a !== void 0 && a !== 0 && (i.rot = "" + mi(a)), n.flipH && (i.flipH = "1"), n.flipV && (i.flipV = "1"), e.start("xfrm", i), e.empty("off", {
|
|
3978
3986
|
x: X(t.x),
|
|
@@ -3987,13 +3995,13 @@ var ls = [
|
|
|
3987
3995
|
cx: X(r.width),
|
|
3988
3996
|
cy: X(r.height)
|
|
3989
3997
|
})), e.end("xfrm");
|
|
3990
|
-
},
|
|
3998
|
+
}, rc = (e, t, n) => {
|
|
3991
3999
|
e.start(t), e.start("col"), e.text(n.c ?? 0), e.end("col"), e.start("colOff"), e.text(X(n.x)), e.end("colOff"), e.start("row"), e.text(n.r ?? 0), e.end("row"), e.start("rowOff"), e.text(X(n.y)), e.end("rowOff"), e.end(t);
|
|
3992
|
-
},
|
|
4000
|
+
}, ic = (e, t, n) => {
|
|
3993
4001
|
let r = t.content.json;
|
|
3994
4002
|
if (e.start("mc:AlternateContent", Et), e.start("mc:Choice", Le), n) return e.raw(Ye(t.content.type, r, t.content?.name, n)), e.end("mc:Choice"), e.empty("mc:Fallback"), void e.end("mc:AlternateContent");
|
|
3995
|
-
e.start("twoCellAnchor", { editAs: t.anchorType || "twoCell" }),
|
|
3996
|
-
},
|
|
4003
|
+
e.start("twoCellAnchor", { editAs: t.anchorType || "twoCell" }), rc(e, "from", t.anchor.tl), rc(e, "to", t.anchor.br), e.raw(Ye(t.content.type, r, t.content?.name)), e.empty("clientData", { fPrintsWithSheet: "0" }), e.end("twoCellAnchor"), e.end("mc:Choice"), e.empty("mc:Fallback"), e.end("mc:AlternateContent");
|
|
4004
|
+
}, ac = async (e, t, n) => {
|
|
3997
4005
|
let r = await n.getExternalURI();
|
|
3998
4006
|
if (r) return void e.addExternal(ni, r);
|
|
3999
4007
|
let i = e.getSharedStates(), a = i.get(ri);
|
|
@@ -4010,16 +4018,16 @@ var ls = [
|
|
|
4010
4018
|
let s = e.addBinary(o.bytes, o.type.mime, ni, `../media/image${o.index}.${o.type.ext}`, !0, t);
|
|
4011
4019
|
s.relId !== t && e.log(`Legacy drawing image '${t}' was written as '${s.relId}'; the markup will not find it.`);
|
|
4012
4020
|
};
|
|
4013
|
-
function
|
|
4021
|
+
function oc(e) {
|
|
4014
4022
|
return e.toISOString().substring(0, 22);
|
|
4015
4023
|
}
|
|
4016
|
-
function
|
|
4024
|
+
function sc(e, t, n, r, i, a, o, s, c) {
|
|
4017
4025
|
let l = {
|
|
4018
4026
|
ref: t,
|
|
4019
|
-
dT:
|
|
4020
|
-
personId: r ?
|
|
4021
|
-
id:
|
|
4022
|
-
parentId: o ?
|
|
4027
|
+
dT: oc(i ?? /* @__PURE__ */ new Date()),
|
|
4028
|
+
personId: r ? cc(r) : void 0,
|
|
4029
|
+
id: cc(n),
|
|
4030
|
+
parentId: o ? cc(o) : void 0,
|
|
4023
4031
|
done: s ? "1" : void 0
|
|
4024
4032
|
};
|
|
4025
4033
|
if (e.start("threadedComment", l), e.start("text", h.test(a) || /[\n\r]/.test(a) ? se : void 0), e.text(a), e.end("text"), c && c.length > 0) {
|
|
@@ -4027,8 +4035,8 @@ function ic(e, t, n, r, i, a, o, s, c) {
|
|
|
4027
4035
|
for (let t = 0; t < c.length; t++) {
|
|
4028
4036
|
let n = c[t];
|
|
4029
4037
|
e.empty("mention", {
|
|
4030
|
-
mentionpersonId:
|
|
4031
|
-
mentionId:
|
|
4038
|
+
mentionpersonId: cc(n.personId),
|
|
4039
|
+
mentionId: cc(n.id),
|
|
4032
4040
|
startIndex: n.startIndex ?? 0,
|
|
4033
4041
|
length: n.length ?? 0
|
|
4034
4042
|
});
|
|
@@ -4037,17 +4045,17 @@ function ic(e, t, n, r, i, a, o, s, c) {
|
|
|
4037
4045
|
}
|
|
4038
4046
|
e.end("threadedComment");
|
|
4039
4047
|
}
|
|
4040
|
-
function
|
|
4048
|
+
function cc(e) {
|
|
4041
4049
|
return `{${e.replace(/^\{|\}$/g, "").toUpperCase()}}`;
|
|
4042
4050
|
}
|
|
4043
|
-
var
|
|
4051
|
+
var lc = {
|
|
4044
4052
|
rowIndex: 0,
|
|
4045
4053
|
colIndex: 0
|
|
4046
4054
|
};
|
|
4047
|
-
function
|
|
4055
|
+
function uc(e, t, n, r) {
|
|
4048
4056
|
if (r == null) return;
|
|
4049
|
-
|
|
4050
|
-
let i = I.cellToString(
|
|
4057
|
+
lc.rowIndex = t, lc.colIndex = n;
|
|
4058
|
+
let i = I.cellToString(lc), a, o;
|
|
4051
4059
|
switch (typeof r) {
|
|
4052
4060
|
case "number":
|
|
4053
4061
|
o = "" + r;
|
|
@@ -4069,7 +4077,7 @@ function sc(e, t, n, r) {
|
|
|
4069
4077
|
t: a
|
|
4070
4078
|
} : { r: i }), e.start("v"), e.text(o), e.end("v"), e.end("cell");
|
|
4071
4079
|
}
|
|
4072
|
-
var
|
|
4080
|
+
var dc = [
|
|
4073
4081
|
new class extends q {
|
|
4074
4082
|
constructor() {
|
|
4075
4083
|
super({
|
|
@@ -4471,7 +4479,7 @@ var cc = [
|
|
|
4471
4479
|
}
|
|
4472
4480
|
async emit(e, t) {
|
|
4473
4481
|
let n = t.getXMLWriter(), r = e.model, i = e.json, o = Lt(r, i);
|
|
4474
|
-
|
|
4482
|
+
Uo(i, o), n.decl(), n.start("worksheet", {
|
|
4475
4483
|
xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
|
|
4476
4484
|
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
4477
4485
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
@@ -4669,7 +4677,7 @@ var cc = [
|
|
|
4669
4677
|
let e = n.buttons?.length ? dt(n) : null;
|
|
4670
4678
|
if (e) for (let r of n.buttons) {
|
|
4671
4679
|
let n = I.fastStringToRange(r);
|
|
4672
|
-
for (let r = n.rowStart; r <= n.rowEnd; r++) for (let i = n.colStart; i <= n.colEnd; i++) (t ??= /* @__PURE__ */ new Set()).add((e.rowStart + r) *
|
|
4680
|
+
for (let r = n.rowStart; r <= n.rowEnd; r++) for (let i = n.colStart; i <= n.colEnd; i++) (t ??= /* @__PURE__ */ new Set()).add((e.rowStart + r) * Ho + e.colStart + i);
|
|
4673
4681
|
}
|
|
4674
4682
|
}
|
|
4675
4683
|
return t;
|
|
@@ -4700,7 +4708,7 @@ var cc = [
|
|
|
4700
4708
|
})(x, b, C, n.getEntireRange().getRowEnd() + 1) : x, T = w ? w.length : 0, E = go(w), D = E === null ? w?.[T - 1]?.max ?? -1 : E - 1, ee = r.cols ? I.refsToRuns(r.cols, !0) : null, O = ee ? ee.length : 0, ne = ee?.[O - 1]?.max ?? -1;
|
|
4701
4709
|
if (v || T > 0) {
|
|
4702
4710
|
let c = .75, v = r.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * c, b = n.getStyles().getNormal().getBestFit().height * c, x = ho(n.getOutline(), on.Axis.Row), C = (e, t) => {
|
|
4703
|
-
let n =
|
|
4711
|
+
let n = qo;
|
|
4704
4712
|
if (n.r = "" + (e + 1), n.s = void 0, n.customFormat = void 0, n.hidden = void 0, n.ht = void 0, n.customHeight = void 0, n.outlineLevel = void 0, n.collapsed = void 0, n.thickTop = void 0, n.thickBot = void 0, !t) return n;
|
|
4705
4713
|
let r = t.value;
|
|
4706
4714
|
r.s !== void 0 && (n.s = "" + (o ? o.getXf(r.s, !0, !1) : r.s), n.customFormat = "1"), r.h && (n.hidden = "1");
|
|
@@ -4721,7 +4729,7 @@ var cc = [
|
|
|
4721
4729
|
};
|
|
4722
4730
|
t.setValidationDisabled(!0), t.start("sheetData");
|
|
4723
4731
|
let j = [];
|
|
4724
|
-
j.push(
|
|
4732
|
+
j.push(yo(e, n, r.directStyles));
|
|
4725
4733
|
let M = r.formulas, fe = M ? M.length : 0, pe = [];
|
|
4726
4734
|
if (fe > 0) {
|
|
4727
4735
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -4753,23 +4761,27 @@ var cc = [
|
|
|
4753
4761
|
for (let r = 0; r < fe; r++) {
|
|
4754
4762
|
let o = M[r];
|
|
4755
4763
|
try {
|
|
4756
|
-
let
|
|
4757
|
-
if (
|
|
4758
|
-
let
|
|
4759
|
-
rowIndex:
|
|
4760
|
-
colIndex:
|
|
4761
|
-
},
|
|
4762
|
-
if (
|
|
4763
|
-
else if (!Qt.isSingleCell(
|
|
4764
|
+
let u = o[0], m = n.getRange(u), h = m.getCoords(), g = o[1];
|
|
4765
|
+
if (bo.test(g) && xo(n, h, g, pe)) continue;
|
|
4766
|
+
let _ = null, v = {
|
|
4767
|
+
rowIndex: h.rowStart,
|
|
4768
|
+
colIndex: h.colStart
|
|
4769
|
+
}, b = c.parse(g, v), x = b ? c.annotate(b) : void 0, S = b ? c.spell(b, f.has(`${h.rowStart},${h.colStart}`), d(h.rowStart, h.colStart)) : null, C = S ? $t.imager(S, { entireCoords: l }) : null;
|
|
4770
|
+
if (C) g = C(v);
|
|
4771
|
+
else if (!Qt.isSingleCell(h)) {
|
|
4764
4772
|
let e = [];
|
|
4765
|
-
I.normalizeA1ToR1C1(
|
|
4766
|
-
let n = t ??
|
|
4773
|
+
I.normalizeA1ToR1C1(g, v.rowIndex, v.colIndex, e), C = (t) => {
|
|
4774
|
+
let n = t ?? v;
|
|
4767
4775
|
return I.resolveRelativeToA1(e, n.rowIndex, n.colIndex);
|
|
4768
4776
|
};
|
|
4769
4777
|
}
|
|
4770
|
-
|
|
4778
|
+
if (g.length > vo) {
|
|
4779
|
+
e.warn(`The formula at '${n.getName()}'!${I.rangeToString(h)} is ${g.length.toLocaleString()} characters as xlsx stores it; Excel allows at most ${vo.toLocaleString()}. Its cells are saved as values.`, void 0, "xlsx.formula.lengthLimit");
|
|
4780
|
+
continue;
|
|
4781
|
+
}
|
|
4782
|
+
let w = !0 === x?.cm, T = !0 === x?.ca;
|
|
4771
4783
|
if (i.affects(r)) {
|
|
4772
|
-
|
|
4784
|
+
_ = null, w = !1;
|
|
4773
4785
|
let e = (e, t, n) => {
|
|
4774
4786
|
let r = {
|
|
4775
4787
|
rowStart: e,
|
|
@@ -4785,9 +4797,9 @@ var cc = [
|
|
|
4785
4797
|
isDynamicRange: !1,
|
|
4786
4798
|
isWrapped: !0
|
|
4787
4799
|
}]);
|
|
4788
|
-
}, r = t.get(`${
|
|
4800
|
+
}, r = t.get(`${h.rowStart},${h.colStart}`), i = r !== void 0 && (r.rowEnd > r.rowStart || r.colEnd > r.colStart), o = !1;
|
|
4789
4801
|
if (i) {
|
|
4790
|
-
let t = a(
|
|
4802
|
+
let t = a(g, m.getCell().getValue());
|
|
4791
4803
|
if (t !== null) for (let i = r.rowStart; i <= r.rowEnd; i++) for (let a = r.colStart; a <= r.colEnd; a++) {
|
|
4792
4804
|
if (i === r.rowStart && a === r.colStart) {
|
|
4793
4805
|
e(i, a, t), o = !0;
|
|
@@ -4801,24 +4813,24 @@ var cc = [
|
|
|
4801
4813
|
})), c = ge(s.getCell().getValue());
|
|
4802
4814
|
c !== null && e(i, a, c);
|
|
4803
4815
|
}
|
|
4804
|
-
} else
|
|
4805
|
-
let r = n.getCoords(), i =
|
|
4816
|
+
} else m.forEach((t, n) => {
|
|
4817
|
+
let r = n.getCoords(), i = C?.(r) ?? g, s = a(i, n.getCell().getValue());
|
|
4806
4818
|
s !== null && (e(r.rowIndex, r.colIndex, s), o = !0);
|
|
4807
4819
|
}, { includeEmpty: !0 });
|
|
4808
4820
|
if (o) continue;
|
|
4809
4821
|
}
|
|
4810
|
-
let
|
|
4811
|
-
|
|
4812
|
-
let
|
|
4813
|
-
coords:
|
|
4814
|
-
formula:
|
|
4815
|
-
sharedId:
|
|
4816
|
-
ref:
|
|
4817
|
-
isDynamicRange:
|
|
4818
|
-
isExcelVolatile:
|
|
4819
|
-
memberImage:
|
|
4822
|
+
let E = g.indexOf("!") !== -1 || g.indexOf("[") !== -1;
|
|
4823
|
+
w || m.isSingleCell() || E || s(h) || (_ = "" + y++);
|
|
4824
|
+
let D = _ !== null || m.isSingleCell() ? null : C, ee = [h, {
|
|
4825
|
+
coords: h,
|
|
4826
|
+
formula: g,
|
|
4827
|
+
sharedId: _,
|
|
4828
|
+
ref: u,
|
|
4829
|
+
isDynamicRange: w,
|
|
4830
|
+
isExcelVolatile: T,
|
|
4831
|
+
memberImage: D
|
|
4820
4832
|
}];
|
|
4821
|
-
p.push(
|
|
4833
|
+
p.push(ee);
|
|
4822
4834
|
} catch (t) {
|
|
4823
4835
|
e.log(`Could not write the formula '${o[1]}' over '${o[0]}'; those cells are written as values only. ${t}`);
|
|
4824
4836
|
continue;
|
|
@@ -4876,9 +4888,9 @@ var cc = [
|
|
|
4876
4888
|
N > 0 && (b = r.getInjectedReference(2) ?? !1);
|
|
4877
4889
|
let x = null;
|
|
4878
4890
|
_e > 0 && (x = r.getInjectedReference(3) ?? null);
|
|
4879
|
-
let S = x?.kind === "error", C = x?.kind === "fixed", w =
|
|
4891
|
+
let S = x?.kind === "error", C = x?.kind === "fixed", w = Ko;
|
|
4880
4892
|
w.r = r.getAddress(), w.s = void 0, w.t = void 0, w.cm = void 0, w.vm = void 0;
|
|
4881
|
-
let T = p !== null && p.has(a *
|
|
4893
|
+
let T = p !== null && p.has(a * Ho + s), E = m === null ? null : function(e, t, n) {
|
|
4882
4894
|
for (let { table: r, coords: i, formats: a } of e) {
|
|
4883
4895
|
if (t < i.rowStart || t > i.rowEnd || n < i.colStart || n > i.colEnd) continue;
|
|
4884
4896
|
let e = r.getStyleAt(t, n), o = e.getAlignment(), s = o.getHorizontal() === "left" ? o.getIndent() : null, c = e.getNumberFormat(), l = c && c !== "General" ? c : null, u = a?.formatAt(t - i.rowStart, n - i.colStart).user ?? null;
|
|
@@ -4950,10 +4962,10 @@ var cc = [
|
|
|
4950
4962
|
}));
|
|
4951
4963
|
let r, i = null, o = y.sharedId;
|
|
4952
4964
|
if (o) {
|
|
4953
|
-
r =
|
|
4965
|
+
r = Yo;
|
|
4954
4966
|
let e = y.coords;
|
|
4955
4967
|
e.colStart === s && e.rowStart === a ? (r.ref = y.ref, r.si = o, i = y.formula) : (r.ref = void 0, r.si = o);
|
|
4956
|
-
} else M ? (r =
|
|
4968
|
+
} else M ? (r = Xo, r.aca = S ? "1" : void 0, r.ref = S ? w.r : x?.ref ?? w.r, i = n) : (r = Jo, i = n);
|
|
4957
4969
|
r.ca = b || S || y.isExcelVolatile ? "1" : void 0, i ? (t.start("f", r), t.text(i), t.end("f")) : t.empty("f", r);
|
|
4958
4970
|
} else D && t.empty("f", b ? {
|
|
4959
4971
|
...D,
|
|
@@ -5018,7 +5030,7 @@ var cc = [
|
|
|
5018
5030
|
for (let t = 0; t < a; t++) {
|
|
5019
5031
|
let n = i[t], r, a;
|
|
5020
5032
|
Array.isArray(n) ? (r = n[0], a = n[1]) : (r = n.r, a = n.v);
|
|
5021
|
-
let s =
|
|
5033
|
+
let s = Ao(r);
|
|
5022
5034
|
if (!s || !a) {
|
|
5023
5035
|
e.log("Skipping protectedRange with no range.");
|
|
5024
5036
|
continue;
|
|
@@ -5061,26 +5073,26 @@ var cc = [
|
|
|
5061
5073
|
for (let n = 0; n < s; n++) {
|
|
5062
5074
|
let r = o[n], i, s;
|
|
5063
5075
|
Array.isArray(r) ? (i = r[0], s = r[1]) : (i = r.r, s = r.v);
|
|
5064
|
-
let c =
|
|
5076
|
+
let c = Ao(i);
|
|
5065
5077
|
if (!c || !s) {
|
|
5066
5078
|
e.log("Skipping conditionalFormatting with no range.");
|
|
5067
5079
|
continue;
|
|
5068
5080
|
}
|
|
5069
|
-
let m =
|
|
5081
|
+
let m = No(c), g = Fo(s.scale, m, d);
|
|
5070
5082
|
g !== s.scale && (s = {
|
|
5071
5083
|
...s,
|
|
5072
5084
|
scale: g
|
|
5073
5085
|
});
|
|
5074
|
-
let _ = g ? { type: g.type } : wt(s.condition,
|
|
5075
|
-
_ ? (_.formulas &&= _.formulas.map((e) =>
|
|
5086
|
+
let _ = g ? { type: g.type } : wt(s.condition, ko(c), (t, n) => e.warn(t, void 0, n));
|
|
5087
|
+
_ ? (_.formulas &&= _.formulas.map((e) => Po(e, m, d)), g?.type === W.ScaleType.IconSet && To(g) ? (p++, h(s), a.push({
|
|
5076
5088
|
guid: M(R.uuidV4),
|
|
5077
5089
|
sqref: c,
|
|
5078
5090
|
priority: p,
|
|
5079
5091
|
scale: g
|
|
5080
|
-
})) : g || !
|
|
5092
|
+
})) : g || !Mo(_) ? (c !== f && (f !== null && t.end("conditionalFormatting"), t.start("conditionalFormatting", {
|
|
5081
5093
|
sqref: c,
|
|
5082
5094
|
pivot: typeof s.pivotKey == "number" ? "1" : void 0
|
|
5083
|
-
}), f = c), p++, h(s),
|
|
5095
|
+
}), f = c), p++, h(s), Oo(e, t, u, s, _, c, p, l, a)) : (p++, h(s), a.push({
|
|
5084
5096
|
guid: M(R.uuidV4),
|
|
5085
5097
|
sqref: c,
|
|
5086
5098
|
priority: p,
|
|
@@ -5097,13 +5109,13 @@ var cc = [
|
|
|
5097
5109
|
for (let t = 0; t < s; t++) {
|
|
5098
5110
|
let n = o[t], r, s;
|
|
5099
5111
|
Array.isArray(n) ? (r = n[0], s = n[1]) : (r = n.r, s = n.v);
|
|
5100
|
-
let l =
|
|
5112
|
+
let l = Ao(r);
|
|
5101
5113
|
if (!l || !s) {
|
|
5102
5114
|
e.log("Skipping dataValidation with no range.");
|
|
5103
5115
|
continue;
|
|
5104
5116
|
}
|
|
5105
5117
|
s.ext && e.warn("DataValidation extension payload is not written to xlsx; it will be lost.");
|
|
5106
|
-
let u = (t, n) => e.warn(t, void 0, n), d = Me(s.condition, u), { type: f, operator: p } = d ?? {}, m =
|
|
5118
|
+
let u = (t, n) => e.warn(t, void 0, n), d = Me(s.condition, u), { type: f, operator: p } = d ?? {}, m = No(l), h = Po(d?.formula1, m, a), g = Po(d?.formula2, m, a), _ = {
|
|
5107
5119
|
type: f,
|
|
5108
5120
|
operator: p,
|
|
5109
5121
|
allowBlank: Z(s.condition?.includeBlanks ?? !1),
|
|
@@ -5117,7 +5129,7 @@ var cc = [
|
|
|
5117
5129
|
prompt: bt(s.prompt, "prompt", u),
|
|
5118
5130
|
imeMode: s.imeMode
|
|
5119
5131
|
};
|
|
5120
|
-
|
|
5132
|
+
jo(h) || jo(g) ? i.push({
|
|
5121
5133
|
attrs: _,
|
|
5122
5134
|
formula1: h,
|
|
5123
5135
|
formula2: g,
|
|
@@ -5130,7 +5142,7 @@ var cc = [
|
|
|
5130
5142
|
}
|
|
5131
5143
|
if (c.length === 0) return i;
|
|
5132
5144
|
t.start("dataValidations", {
|
|
5133
|
-
...
|
|
5145
|
+
...Io(n),
|
|
5134
5146
|
count: c.length
|
|
5135
5147
|
});
|
|
5136
5148
|
for (let e = 0; e < c.length; e++) {
|
|
@@ -5175,7 +5187,7 @@ var cc = [
|
|
|
5175
5187
|
if (l) {
|
|
5176
5188
|
let t = await Fr({
|
|
5177
5189
|
...l,
|
|
5178
|
-
contentType: l.contentType ||
|
|
5190
|
+
contentType: l.contentType || Lo
|
|
5179
5191
|
}, e, "../printerSettings/printerSettings{n}.bin");
|
|
5180
5192
|
t?.relId && (a["r:id"] = t.relId);
|
|
5181
5193
|
}
|
|
@@ -5195,14 +5207,14 @@ var cc = [
|
|
|
5195
5207
|
t.end("headerFooter");
|
|
5196
5208
|
}
|
|
5197
5209
|
}
|
|
5198
|
-
|
|
5210
|
+
Ro(t, "rowBreaks", n.rowBreaks), Ro(t, "colBreaks", n.columnBreaks);
|
|
5199
5211
|
}(t, n, i.pageLayout), function(e, t) {
|
|
5200
5212
|
if (!t?.length) return;
|
|
5201
5213
|
let n = /* @__PURE__ */ new Map();
|
|
5202
5214
|
for (let e of t) {
|
|
5203
5215
|
let t = Array.isArray(e) ? e[0] : e.r, r = Array.isArray(e) ? e[1] : e.v, i = v.filter((e) => r?.includes(e));
|
|
5204
5216
|
if (i.length === 0) continue;
|
|
5205
|
-
let a = typeof t == "string" ? t :
|
|
5217
|
+
let a = typeof t == "string" ? t : Ao(t);
|
|
5206
5218
|
if (!a) continue;
|
|
5207
5219
|
let o = i.join(","), s = n.get(o);
|
|
5208
5220
|
s || (s = {
|
|
@@ -5257,7 +5269,7 @@ var cc = [
|
|
|
5257
5269
|
comments: n
|
|
5258
5270
|
});
|
|
5259
5271
|
}(r);
|
|
5260
|
-
|
|
5272
|
+
zo(t, n, "legacyDrawing", Vo(Wo(r, i.legacyDrawing ?? null, o), g)), zo(t, n, "legacyDrawingHF", i.legacyDrawingHF ?? null), await async function(e, t, n) {
|
|
5261
5273
|
let r = n.getPicture();
|
|
5262
5274
|
if (!r) return;
|
|
5263
5275
|
let i = r.getResource(), a = await i.getExternalURI(), o;
|
|
@@ -5317,7 +5329,7 @@ var cc = [
|
|
|
5317
5329
|
t.start("controlPr", ct(i)), t.start("anchor", {
|
|
5318
5330
|
moveWithCells: s === "absolute" ? void 0 : "1",
|
|
5319
5331
|
sizeWithCells: s === "twoCell" ? "1" : void 0
|
|
5320
|
-
}),
|
|
5332
|
+
}), Go(t, "from", n.anchor.tl), Go(t, "to", n.anchor.br), t.end("anchor"), i.xml && t.raw(i.xml), t.end("controlPr"), t.end("control"), t.end("mc:Choice"), t.end("mc:AlternateContent");
|
|
5321
5333
|
}
|
|
5322
5334
|
t.end("controls"), t.end("mc:Choice"), t.end("mc:AlternateContent");
|
|
5323
5335
|
}(t, n, o), function(e, t, n, r) {
|
|
@@ -5353,19 +5365,17 @@ var cc = [
|
|
|
5353
5365
|
type: "dataBar",
|
|
5354
5366
|
id: i
|
|
5355
5367
|
}), t.start("x14:dataBar", {
|
|
5356
|
-
minLength: s.minLength,
|
|
5357
|
-
maxLength: s.maxLength,
|
|
5358
|
-
gradient: s.
|
|
5368
|
+
minLength: s.minLength ?? 0,
|
|
5369
|
+
maxLength: s.maxLength ?? 100,
|
|
5370
|
+
gradient: s.solidFill ? "0" : void 0,
|
|
5359
5371
|
border: s.borderColor ? "1" : void 0,
|
|
5360
5372
|
direction: s.direction,
|
|
5361
5373
|
negativeBarColorSameAsPositive: s.negativeFillColor ? "0" : "1",
|
|
5362
5374
|
negativeBarBorderColorSameAsPositive: s.negativeBorderColor ? "0" : void 0,
|
|
5363
5375
|
axisPosition: s.axisPosition
|
|
5364
5376
|
});
|
|
5365
|
-
let e = s
|
|
5366
|
-
|
|
5367
|
-
else for (let n = 0; n < e.length; n++) So(t, e[n]);
|
|
5368
|
-
s.borderColor && Y(t, l, s.borderColor, "x14:borderColor"), s.negativeFillColor && Y(t, l, s.negativeFillColor, "x14:negativeFillColor"), s.negativeBorderColor && Y(t, l, s.negativeBorderColor, "x14:negativeBorderColor"), s.axisColor && Y(t, l, s.axisColor, "x14:axisColor"), t.end("x14:dataBar"), t.end("x14:cfRule");
|
|
5377
|
+
let [e, n] = Eo(s);
|
|
5378
|
+
Co(t, e), Co(t, n), s.borderColor && Y(t, l, s.borderColor, "x14:borderColor"), s.negativeFillColor && Y(t, l, s.negativeFillColor, "x14:negativeFillColor"), s.negativeBorderColor && Y(t, l, s.negativeBorderColor, "x14:negativeBorderColor"), s.axisColor && Y(t, l, s.axisColor, "x14:axisColor"), t.end("x14:dataBar"), t.end("x14:cfRule");
|
|
5369
5379
|
} else {
|
|
5370
5380
|
t.start("x14:cfRule", {
|
|
5371
5381
|
type: "iconSet",
|
|
@@ -5378,7 +5388,7 @@ var cc = [
|
|
|
5378
5388
|
custom: (s.icon?.length ?? 0) > 0 ? "1" : void 0
|
|
5379
5389
|
});
|
|
5380
5390
|
let e = s.stops ?? [];
|
|
5381
|
-
for (let n = 0; n < e.length; n++)
|
|
5391
|
+
for (let n = 0; n < e.length; n++) Co(t, e[n]);
|
|
5382
5392
|
let n = s.icon ?? [];
|
|
5383
5393
|
for (let e = 0; e < n.length; e++) t.empty("x14:cfIcon", {
|
|
5384
5394
|
iconSet: n[e].set,
|
|
@@ -5416,7 +5426,7 @@ var cc = [
|
|
|
5416
5426
|
"xmlns:x14": P
|
|
5417
5427
|
}), t.start("x14:dataValidations", {
|
|
5418
5428
|
"xmlns:xm": Rt,
|
|
5419
|
-
...
|
|
5429
|
+
...Io(n),
|
|
5420
5430
|
count: i.length
|
|
5421
5431
|
});
|
|
5422
5432
|
for (let e = 0; e < i.length; e++) {
|
|
@@ -5553,9 +5563,9 @@ var cc = [
|
|
|
5553
5563
|
let e = t.getRuns();
|
|
5554
5564
|
for (let t = 0; t < e.length; t++) {
|
|
5555
5565
|
let r = e[t];
|
|
5556
|
-
n.start("r"), r.font && o && so(n, r.font, o),
|
|
5566
|
+
n.start("r"), r.font && o && so(n, r.font, o), Zo(n, r.text), n.end("r");
|
|
5557
5567
|
}
|
|
5558
|
-
} else
|
|
5568
|
+
} else Zo(n, t);
|
|
5559
5569
|
n.end("si");
|
|
5560
5570
|
}
|
|
5561
5571
|
n.end("sst"), n.close();
|
|
@@ -5583,7 +5593,7 @@ var cc = [
|
|
|
5583
5593
|
t.end(r);
|
|
5584
5594
|
}
|
|
5585
5595
|
}(0, n, r, "clrScheme"), function(e, t, n, r) {
|
|
5586
|
-
n && (t.start(r, { name: n.getName() || "Office" }),
|
|
5596
|
+
n && (t.start(r, { name: n.getName() || "Office" }), ds(t, n.getMajor() ?? {}, "Calibri Light", "majorFont"), ds(t, n.getMinor() ?? {}, "Calibri", "minorFont"), t.end(r));
|
|
5587
5597
|
}(0, n, r.getFontScheme(), "fontScheme"), function(e, t, n, r, i) {
|
|
5588
5598
|
if (i?.formatSchemeXml) return void t.raw(i.formatSchemeXml);
|
|
5589
5599
|
(function(e, t, n, r, i) {
|
|
@@ -5600,13 +5610,13 @@ var cc = [
|
|
|
5600
5610
|
})(e, t, n, r, r.getFormatScheme());
|
|
5601
5611
|
}(t, n, "fmtScheme", r, i), n.end("themeElements"), function(e, t, n) {
|
|
5602
5612
|
let r = n.getObjectDefaults();
|
|
5603
|
-
if (!
|
|
5613
|
+
if (!fs.some(([e]) => r[e])) return void t.empty("objectDefaults");
|
|
5604
5614
|
let i = { getTheme: () => n };
|
|
5605
5615
|
t.start("objectDefaults");
|
|
5606
|
-
for (let [a, o] of
|
|
5616
|
+
for (let [a, o] of fs) {
|
|
5607
5617
|
let s = r[a];
|
|
5608
5618
|
if (!s) continue;
|
|
5609
|
-
t.start(o), t.start("spPr"), Qr(e, i, s), t.end("spPr"),
|
|
5619
|
+
t.start(o), t.start("spPr"), Qr(e, i, s), t.end("spPr"), us(e, i, s.text);
|
|
5610
5620
|
let c = s.style;
|
|
5611
5621
|
if (c) {
|
|
5612
5622
|
let e = (e, r) => {
|
|
@@ -5911,7 +5921,7 @@ var cc = [
|
|
|
5911
5921
|
let i = [], a = 0;
|
|
5912
5922
|
for (let e = 0; e < r.length; e++) {
|
|
5913
5923
|
let t = a++;
|
|
5914
|
-
n.empty("bag", { type:
|
|
5924
|
+
n.empty("bag", { type: ps[r[e].type] ?? r[e].type });
|
|
5915
5925
|
let o = a++;
|
|
5916
5926
|
n.start("bag", { type: "XFControls" }), n.start("bagId", { k: "CellControl" }), n.text(String(t)), n.end("bagId"), n.end("bag"), i.push(a++), n.start("bag", { type: "XFComplement" }), n.start("bagId", { k: "XFControls" }), n.text(String(o)), n.end("bagId"), n.end("bag");
|
|
5917
5927
|
}
|
|
@@ -5941,14 +5951,14 @@ var cc = [
|
|
|
5941
5951
|
"xmlns:dcmitype": "http://purl.org/dc/dcmitype/",
|
|
5942
5952
|
"xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance"
|
|
5943
5953
|
});
|
|
5944
|
-
let r =
|
|
5954
|
+
let r = hs(/* @__PURE__ */ new Date()), i = {
|
|
5945
5955
|
author: "SheetXL",
|
|
5946
5956
|
lastAuthor: "SheetXL",
|
|
5947
5957
|
creationDate: r,
|
|
5948
5958
|
...e.model.getProperties().toJSON(),
|
|
5949
5959
|
lastModifiedDate: r
|
|
5950
5960
|
};
|
|
5951
|
-
for (let [e, t, r] of
|
|
5961
|
+
for (let [e, t, r] of ms) {
|
|
5952
5962
|
let a = i[t];
|
|
5953
5963
|
a != null && a !== "" && (n.start(e, r ? { "xsi:type": "dcterms:W3CDTF" } : void 0), n.text(String(a)), n.end(e));
|
|
5954
5964
|
}
|
|
@@ -5969,11 +5979,11 @@ var cc = [
|
|
|
5969
5979
|
n.setValidationDisabled(!0), n.decl(), n.start("Properties", {
|
|
5970
5980
|
xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
|
|
5971
5981
|
"xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
|
|
5972
|
-
}),
|
|
5982
|
+
}), gs(t, n, "Application", "SheetXL"), gs(t, n, "DocSecurity", "0"), gs(t, n, "ScaleCrop", "false"), _s(t, n, r);
|
|
5973
5983
|
let s = o.getManager();
|
|
5974
|
-
s &&
|
|
5984
|
+
s && gs(t, n, "Manager", s);
|
|
5975
5985
|
let c = o.getCompany();
|
|
5976
|
-
c &&
|
|
5986
|
+
c && gs(t, n, "Company", c), gs(t, n, "LinksUpToDate", "false"), gs(t, n, "SharedDoc", "false"), gs(t, n, "HyperlinksChanged", "false"), gs(t, n, "AppVersion", a), n.end("Properties"), n.close();
|
|
5977
5987
|
}
|
|
5978
5988
|
}(),
|
|
5979
5989
|
new class extends q {
|
|
@@ -5999,8 +6009,8 @@ var cc = [
|
|
|
5999
6009
|
name: t
|
|
6000
6010
|
};
|
|
6001
6011
|
o && (s.linkTarget = o), n.start("property", s);
|
|
6002
|
-
let c =
|
|
6003
|
-
n.start(c), n.text(i === tn.Type.Date ?
|
|
6012
|
+
let c = vs[i];
|
|
6013
|
+
n.start(c), n.text(i === tn.Type.Date ? ys(a) : String(a)), n.end(c), n.end("property");
|
|
6004
6014
|
}
|
|
6005
6015
|
n.end("Properties"), n.close();
|
|
6006
6016
|
}
|
|
@@ -6020,11 +6030,11 @@ var cc = [
|
|
|
6020
6030
|
let d = { xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main" };
|
|
6021
6031
|
if (r && (d["xmlns:xda"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"), i && (d["xmlns:xlrd"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata"), n.decl(), n.start("metadata", d), n.start("metadataTypes", { count: u }), r && n.empty("metadataType", {
|
|
6022
6032
|
name: "XLDAPR",
|
|
6023
|
-
...
|
|
6033
|
+
...bs,
|
|
6024
6034
|
cellMeta: "1"
|
|
6025
6035
|
}), i && n.empty("metadataType", {
|
|
6026
6036
|
name: "XLRICHVALUE",
|
|
6027
|
-
...
|
|
6037
|
+
...bs
|
|
6028
6038
|
}), n.end("metadataTypes"), r) {
|
|
6029
6039
|
n.start("futureMetadata", {
|
|
6030
6040
|
name: "XLDAPR",
|
|
@@ -6239,13 +6249,13 @@ var cc = [
|
|
|
6239
6249
|
async emit(e, t) {
|
|
6240
6250
|
let n = t.getXMLWriter(), r = e.getArrays();
|
|
6241
6251
|
n.decl(), n.start("arrayData", {
|
|
6242
|
-
xmlns:
|
|
6252
|
+
xmlns: xs,
|
|
6243
6253
|
count: r.length
|
|
6244
6254
|
});
|
|
6245
6255
|
for (let e of r) n.start("a", {
|
|
6246
6256
|
r: e.rows,
|
|
6247
6257
|
c: e.columns > 1 ? e.columns : void 0
|
|
6248
|
-
}),
|
|
6258
|
+
}), Ss(n, e.items), n.end("a");
|
|
6249
6259
|
n.end("arrayData"), n.close();
|
|
6250
6260
|
}
|
|
6251
6261
|
}(),
|
|
@@ -6261,7 +6271,7 @@ var cc = [
|
|
|
6261
6271
|
async emit(e, t) {
|
|
6262
6272
|
let n = t.getXMLWriter(), { structures: r } = e.getBags();
|
|
6263
6273
|
n.decl(), n.start("spbStructures", {
|
|
6264
|
-
xmlns:
|
|
6274
|
+
xmlns: xs,
|
|
6265
6275
|
count: r.length
|
|
6266
6276
|
});
|
|
6267
6277
|
for (let e of r) {
|
|
@@ -6286,9 +6296,9 @@ var cc = [
|
|
|
6286
6296
|
}
|
|
6287
6297
|
async emit(e, t) {
|
|
6288
6298
|
let n = t.getXMLWriter(), { bags: r, arrays: i } = e.getBags();
|
|
6289
|
-
if (n.decl(), n.start("supportingPropertyBags", { xmlns:
|
|
6299
|
+
if (n.decl(), n.start("supportingPropertyBags", { xmlns: xs }), i.length > 0) {
|
|
6290
6300
|
n.start("spbArrays", { count: i.length });
|
|
6291
|
-
for (let e of i) n.start("a", { count: e.length }),
|
|
6301
|
+
for (let e of i) n.start("a", { count: e.length }), Ss(n, e), n.end("a");
|
|
6292
6302
|
n.end("spbArrays");
|
|
6293
6303
|
}
|
|
6294
6304
|
n.start("spbData", { count: r.length });
|
|
@@ -6312,7 +6322,7 @@ var cc = [
|
|
|
6312
6322
|
async emit(e, t) {
|
|
6313
6323
|
let n = t.getXMLWriter(), r = e.getRichStyles();
|
|
6314
6324
|
n.decl(), n.start("richStyleSheet", {
|
|
6315
|
-
xmlns:
|
|
6325
|
+
xmlns: xs,
|
|
6316
6326
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
6317
6327
|
"mc:Ignorable": "x",
|
|
6318
6328
|
"xmlns:x": "http://schemas.openxmlformats.org/spreadsheetml/2006/main"
|
|
@@ -6361,7 +6371,7 @@ var cc = [
|
|
|
6361
6371
|
});
|
|
6362
6372
|
let r = e.sheet, i = e.movables, a = e.jsonMovables, o = a ? a.length : 0, s = 0, c = (e) => {
|
|
6363
6373
|
let t = e.content, n = Ge(t?.type) ? t.json?.shapeId : t?.json?.sourceId;
|
|
6364
|
-
if (typeof n == "number" && n > s && (s = n), t?.type === "group") for (let t of
|
|
6374
|
+
if (typeof n == "number" && n > s && (s = n), t?.type === "group") for (let t of js(e)) c(t);
|
|
6365
6375
|
};
|
|
6366
6376
|
for (let e = 0; e < o; e++) c(a[e]);
|
|
6367
6377
|
let l = /* @__PURE__ */ new Map(), u = t.getSharedStates(), d = u.get("uniqueIdCounter");
|
|
@@ -6378,11 +6388,11 @@ var cc = [
|
|
|
6378
6388
|
}
|
|
6379
6389
|
}
|
|
6380
6390
|
}
|
|
6381
|
-
let f =
|
|
6391
|
+
let f = Qs(t, r), p = () => {
|
|
6382
6392
|
let e = (d.get(r) ?? 1) + 1;
|
|
6383
6393
|
return d.set(r, e), e;
|
|
6384
6394
|
}, m = (e) => {
|
|
6385
|
-
for (let t of
|
|
6395
|
+
for (let t of js(e)) {
|
|
6386
6396
|
let e = t.content?.json?.sourceId, n = typeof e == "number" && !f.bySource.has(e), r = n ? e : p();
|
|
6387
6397
|
f.assigned.set(t, r), n && f.bySource.set(e, r), t.content?.type === "group" && m(t);
|
|
6388
6398
|
}
|
|
@@ -6391,40 +6401,40 @@ var cc = [
|
|
|
6391
6401
|
let t = a[e], n = t.content?.json?.sourceId, r = l.get(t) ?? (typeof n == "number" ? n : void 0);
|
|
6392
6402
|
r === void 0 && (r = p()), f.assigned.set(t, r), typeof n != "number" || f.bySource.has(n) || f.bySource.set(n, r), t.content?.type === "group" && m(t);
|
|
6393
6403
|
}
|
|
6394
|
-
for (let e = 0; e < o; e++) await
|
|
6404
|
+
for (let e = 0; e < o; e++) await Ns(t, a[e]);
|
|
6395
6405
|
for (let e = 0; e < o; e++) {
|
|
6396
6406
|
let o = a[e], s = i[e], c = o.content?.type;
|
|
6397
|
-
if (Ge(c))
|
|
6407
|
+
if (Ge(c)) ic(n, o);
|
|
6398
6408
|
else {
|
|
6399
6409
|
if (c === "slicer") {
|
|
6400
6410
|
let e = s.getContent();
|
|
6401
6411
|
if (!e.getTable?.() && !ja(e)) continue;
|
|
6402
6412
|
}
|
|
6403
|
-
switch (n.start("twoCellAnchor", { editAs: o.anchorType || "twoCell" }),
|
|
6413
|
+
switch (n.start("twoCellAnchor", { editAs: o.anchorType || "twoCell" }), rc(n, "from", o.anchor.tl), rc(n, "to", o.anchor.br), c) {
|
|
6404
6414
|
case "picture":
|
|
6405
|
-
await
|
|
6415
|
+
await Ps(t, r, s, o, s.getBounds(), s.getContent().getResource());
|
|
6406
6416
|
break;
|
|
6407
6417
|
case "chart":
|
|
6408
|
-
await
|
|
6418
|
+
await Is(t, r, s, o);
|
|
6409
6419
|
break;
|
|
6410
6420
|
case "shape":
|
|
6411
|
-
await
|
|
6421
|
+
await Bs(t, r, s, o, s.getBounds());
|
|
6412
6422
|
break;
|
|
6413
6423
|
case "group":
|
|
6414
|
-
await
|
|
6424
|
+
await Rs(t, r, s, o, s.getBounds());
|
|
6415
6425
|
break;
|
|
6416
6426
|
case "smartArt":
|
|
6417
|
-
await
|
|
6427
|
+
await Vs(t, r, s, o);
|
|
6418
6428
|
break;
|
|
6419
6429
|
case "slicer":
|
|
6420
|
-
await
|
|
6430
|
+
await Gs(t, r, s, o);
|
|
6421
6431
|
break;
|
|
6422
6432
|
case "graphicFrame":
|
|
6423
|
-
await
|
|
6433
|
+
await qs(t, r, s, o);
|
|
6424
6434
|
break;
|
|
6425
|
-
default: await
|
|
6435
|
+
default: await Js(t, r, o, s.getBounds());
|
|
6426
6436
|
}
|
|
6427
|
-
|
|
6437
|
+
As(n, o), n.end("twoCellAnchor");
|
|
6428
6438
|
}
|
|
6429
6439
|
}
|
|
6430
6440
|
n.end("wsDr"), n.close();
|
|
@@ -6446,7 +6456,7 @@ var cc = [
|
|
|
6446
6456
|
for (let i = 0; i < r; i++) {
|
|
6447
6457
|
let r = n[i], a = e?.get(r.resId);
|
|
6448
6458
|
if (a) try {
|
|
6449
|
-
await
|
|
6459
|
+
await ac(t, r.id, a);
|
|
6450
6460
|
} catch (e) {
|
|
6451
6461
|
t.log(`Unable to write legacy drawing image '${r.id}'`, e);
|
|
6452
6462
|
}
|
|
@@ -6569,11 +6579,11 @@ var cc = [
|
|
|
6569
6579
|
for (let e = 0; e < r.length; e++) {
|
|
6570
6580
|
let { comment: t, ref: i } = r[e];
|
|
6571
6581
|
if (t.isNote()) continue;
|
|
6572
|
-
|
|
6582
|
+
sc(n, i, t.getId(), t.getAuthor()?.getId(), t.getCreationDate(), t.getContent(), null, t.isResolved(), t.toJSON()?.mentions);
|
|
6573
6583
|
let a = t.getReplies();
|
|
6574
6584
|
for (let e = 0; e < a.length; e++) {
|
|
6575
6585
|
let r = a[e];
|
|
6576
|
-
|
|
6586
|
+
sc(n, i, r.getId(), r.getAuthor()?.getId(), r.getCreationDate(), r.getContent(), t.getId(), !1, r.toJSON().mentions);
|
|
6577
6587
|
}
|
|
6578
6588
|
}
|
|
6579
6589
|
n.end("ThreadedComments"), n.close();
|
|
@@ -6599,7 +6609,7 @@ var cc = [
|
|
|
6599
6609
|
let t = r[e];
|
|
6600
6610
|
n.empty("person", {
|
|
6601
6611
|
displayName: t.getDisplayName(),
|
|
6602
|
-
id:
|
|
6612
|
+
id: cc(t.getId()),
|
|
6603
6613
|
userId: t.getUserId() ?? t.getDisplayName(),
|
|
6604
6614
|
providerId: t.getProviderId() ?? "None"
|
|
6605
6615
|
});
|
|
@@ -6829,7 +6839,7 @@ var cc = [
|
|
|
6829
6839
|
let i = r.length;
|
|
6830
6840
|
for (let t = 0; t < i; t++) {
|
|
6831
6841
|
let [i, a] = r[t], o = a.length;
|
|
6832
|
-
for (let t = 0; t < o; t++)
|
|
6842
|
+
for (let t = 0; t < o; t++) uc(e, n, i + t, a.at(t));
|
|
6833
6843
|
}
|
|
6834
6844
|
e.end("row");
|
|
6835
6845
|
}
|
|
@@ -6841,38 +6851,38 @@ var cc = [
|
|
|
6841
6851
|
}(n, e), n.end("externalBook"), n.end("externalLink"), n.close();
|
|
6842
6852
|
}
|
|
6843
6853
|
}()
|
|
6844
|
-
],
|
|
6854
|
+
], fc = "SheetXL Evaluation", pc = "xl/worksheets/sheetSheetXLEvaluation.xml", mc = "rIdSheetXLEvaluation", hc = [
|
|
6845
6855
|
"This workbook was exported from an unlicensed evaluation of SheetXL.",
|
|
6846
6856
|
"Your own sheets follow this one, unchanged.",
|
|
6847
6857
|
"To license SheetXL, visit https://www.sheetxl.com"
|
|
6848
|
-
],
|
|
6849
|
-
let t = [...e.matchAll(/<sheet\b[^>]*\bsheetId="(\d+)"/g)].map((e) => parseInt(e[1], 10)), n = new Set([...e.matchAll(/<sheet\b[^>]*\bname="([^"]*)"/g)].map((e) => e[1].toLowerCase())), r =
|
|
6850
|
-
for (let e = 2; n.has(r.toLowerCase()); e++) r = `${
|
|
6851
|
-
let i = `<sheet name="${r}" sheetId="${Math.max(0, ...t) + 1}" r:id="${
|
|
6858
|
+
], gc = (e) => {
|
|
6859
|
+
let t = [...e.matchAll(/<sheet\b[^>]*\bsheetId="(\d+)"/g)].map((e) => parseInt(e[1], 10)), n = new Set([...e.matchAll(/<sheet\b[^>]*\bname="([^"]*)"/g)].map((e) => e[1].toLowerCase())), r = fc;
|
|
6860
|
+
for (let e = 2; n.has(r.toLowerCase()); e++) r = `${fc} (${e})`;
|
|
6861
|
+
let i = `<sheet name="${r}" sheetId="${Math.max(0, ...t) + 1}" r:id="${mc}"/>`;
|
|
6852
6862
|
return e.replace(/<sheets>/, `<sheets>${i}`).replace(/\blocalSheetId="(\d+)"/g, (e, t) => `localSheetId="${parseInt(t, 10) + 1}"`).replace(/<workbookView\b([^>]*?)(\/?)>/, (e, t, n) => {
|
|
6853
6863
|
let r = /\bactiveTab="(\d+)"/.exec(t);
|
|
6854
6864
|
return `<workbookView${(r ? t.replace(/\bactiveTab="\d+"/, `activeTab="${parseInt(r[1], 10) + 1}"`) : `${t} activeTab="1"`).replace(/\s*\bfirstTab="\d+"/, "")}${n}>`;
|
|
6855
6865
|
});
|
|
6856
|
-
},
|
|
6866
|
+
}, _c = async (e) => {
|
|
6857
6867
|
let t = new de(new N(e)), n = new ye(), r = new ve(n, { lastModDate: new Date(1899, 11, 29, 19, 0, 0) });
|
|
6858
6868
|
try {
|
|
6859
6869
|
for (let e of await t.getEntries()) {
|
|
6860
6870
|
if (e.directory || !("getData" in e)) continue;
|
|
6861
6871
|
let t = e.filename;
|
|
6862
|
-
if (t === "xl/workbook.xml") await r.add(t, new N(new TextEncoder().encode(
|
|
6872
|
+
if (t === "xl/workbook.xml") await r.add(t, new N(new TextEncoder().encode(gc(await e.getData(new x())))));
|
|
6863
6873
|
else if (t === "xl/_rels/workbook.xml.rels") {
|
|
6864
|
-
let n = await e.getData(new x()), i = `<Relationship Id="${
|
|
6874
|
+
let n = await e.getData(new x()), i = `<Relationship Id="${mc}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="${pc.slice(3)}"/>`;
|
|
6865
6875
|
await r.add(t, new N(new TextEncoder().encode(n.replace("</Relationships>", `${i}</Relationships>`))));
|
|
6866
6876
|
} else if (t === "[Content_Types].xml") {
|
|
6867
|
-
let n = await e.getData(new x()), i = `<Override PartName="/${
|
|
6877
|
+
let n = await e.getData(new x()), i = `<Override PartName="/${pc}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`;
|
|
6868
6878
|
await r.add(t, new N(new TextEncoder().encode(n.replace("</Types>", `${i}</Types>`))));
|
|
6869
6879
|
} else await r.add(t, new N(await e.getData(new ye())));
|
|
6870
6880
|
}
|
|
6871
|
-
return await r.add(
|
|
6881
|
+
return await r.add(pc, new N(new TextEncoder().encode(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><sheetViews><sheetView workbookViewId="0"/></sheetViews><cols><col min="1" max="1" width="80" customWidth="1"/></cols><sheetData>${hc.map((e, t) => `<row r="${t + 1}"><c r="A${t + 1}" t="inlineStr"><is><t>${e}</t></is></c></row>`).join("")}</sheetData></worksheet>`))), await r.close(), await n.getData();
|
|
6872
6882
|
} finally {
|
|
6873
6883
|
await t.close();
|
|
6874
6884
|
}
|
|
6875
|
-
},
|
|
6885
|
+
}, vc = (e) => {
|
|
6876
6886
|
let t = e.getPart("xl/_rels/workbook.xml.rels");
|
|
6877
6887
|
if (!t) return null;
|
|
6878
6888
|
let n = /* @__PURE__ */ new Map();
|
|
@@ -6886,23 +6896,23 @@ var cc = [
|
|
|
6886
6896
|
});
|
|
6887
6897
|
}
|
|
6888
6898
|
return n;
|
|
6889
|
-
},
|
|
6899
|
+
}, yc = (e) => {
|
|
6890
6900
|
let t = e.getPart("xl/workbook.xml");
|
|
6891
6901
|
return t ? new TextDecoder("utf-8").decode(t.data) : null;
|
|
6892
|
-
},
|
|
6902
|
+
}, bc = (e) => {
|
|
6893
6903
|
let t = [], n = /<(\/?)ext(?=[\s/>])[^>]*?(\/?)>/g, r = 0, i = 0;
|
|
6894
6904
|
for (let a = n.exec(e); a; a = n.exec(e)) a[1] ? (r--, r === 0 && t.push(e.slice(i, a.index + a[0].length))) : a[2] ? r === 0 && t.push(a[0]) : (r === 0 && (i = a.index), r++);
|
|
6895
6905
|
return t;
|
|
6896
|
-
},
|
|
6897
|
-
let t =
|
|
6906
|
+
}, xc = (e) => {
|
|
6907
|
+
let t = Sc.get(e);
|
|
6898
6908
|
if (t !== void 0) return t;
|
|
6899
6909
|
let n = e.getPart("xl/workbook.xml"), r = n ? new TextDecoder("utf-8").decode(n.data) : null;
|
|
6900
|
-
return
|
|
6901
|
-
},
|
|
6910
|
+
return Sc.set(e, r), r;
|
|
6911
|
+
}, Sc = /* @__PURE__ */ new WeakMap(), Cc = async (t, n) => {
|
|
6902
6912
|
await $t.load();
|
|
6903
6913
|
let r = new ir();
|
|
6904
|
-
for (let e of
|
|
6905
|
-
let i =
|
|
6914
|
+
for (let e of dc) r.register(e);
|
|
6915
|
+
let i = wc, a = An.createUint8Array({
|
|
6906
6916
|
lastModDate: new Date(1899, 11, 29, 19, 0, 0),
|
|
6907
6917
|
level: i
|
|
6908
6918
|
}), o = e.includes(n?.format) ? O(t) : null, s = /* @__PURE__ */ new Map(), c = o ? ((e) => {
|
|
@@ -6916,19 +6926,19 @@ var cc = [
|
|
|
6916
6926
|
})(o) : null;
|
|
6917
6927
|
c && (n?.macroEnabled || delete c.codeName, s.set(za, c));
|
|
6918
6928
|
let l = o ? ((e) => {
|
|
6919
|
-
let t =
|
|
6929
|
+
let t = xc(e)?.match(/<calcPr\b[^>]*?\bcalcId="([^"]*)"/);
|
|
6920
6930
|
return t ? t[1] : null;
|
|
6921
6931
|
})(o) : null;
|
|
6922
6932
|
l !== null && s.set("calcId", l);
|
|
6923
6933
|
let u = o ? ((e) => {
|
|
6924
|
-
let t =
|
|
6934
|
+
let t = xc(e);
|
|
6925
6935
|
if (!t) return null;
|
|
6926
6936
|
let n = t.lastIndexOf("<extLst>");
|
|
6927
6937
|
if (n === -1) return null;
|
|
6928
6938
|
let r = t.indexOf("</extLst>", n);
|
|
6929
6939
|
if (r === -1 || !/^<\/extLst>\s*<\/workbook>/.test(t.slice(r))) return null;
|
|
6930
|
-
let i = t.slice(n + 8, r), a =
|
|
6931
|
-
for (let e of
|
|
6940
|
+
let i = t.slice(n + 8, r), a = vc(e), o = [];
|
|
6941
|
+
for (let e of bc(i)) {
|
|
6932
6942
|
let t = /^<ext\b[^>]*?\buri="([^"]*)"/.exec(e)?.[1] ?? "", n = [];
|
|
6933
6943
|
for (let t of e.matchAll(/\sr:id="([^"]*)"/g)) {
|
|
6934
6944
|
if (n.some((e) => e.id === t[1])) continue;
|
|
@@ -6950,13 +6960,13 @@ var cc = [
|
|
|
6950
6960
|
})(o) : null;
|
|
6951
6961
|
u !== null && s.set("workbookExts", u);
|
|
6952
6962
|
let d = o ? ((e) => {
|
|
6953
|
-
let t =
|
|
6963
|
+
let t = yc(e);
|
|
6954
6964
|
if (!t) return null;
|
|
6955
6965
|
let n = /<externalReferences\b[^>]*>([\s\S]*?)<\/externalReferences>/.exec(t);
|
|
6956
6966
|
if (!n) return null;
|
|
6957
6967
|
let r = [...n[1].matchAll(/<externalReference\b[^>]*\sr:id="([^"]*)"/g)].map((e) => e[1]);
|
|
6958
6968
|
if (r.length === 0) return null;
|
|
6959
|
-
let i =
|
|
6969
|
+
let i = vc(e);
|
|
6960
6970
|
return i ? r.map((e) => {
|
|
6961
6971
|
let t = i.get(e);
|
|
6962
6972
|
return t && !t.external ? t.target : null;
|
|
@@ -6964,7 +6974,7 @@ var cc = [
|
|
|
6964
6974
|
})(o) : null;
|
|
6965
6975
|
d && s.set(Wa, d);
|
|
6966
6976
|
let f = o ? ((e) => {
|
|
6967
|
-
let t =
|
|
6977
|
+
let t = yc(e), n = t ? vc(e) : null;
|
|
6968
6978
|
if (!t || !n) return null;
|
|
6969
6979
|
let r = /* @__PURE__ */ new Map();
|
|
6970
6980
|
for (let e of t.matchAll(/<sheet\b([^>]*)\/?>/g)) {
|
|
@@ -6993,7 +7003,7 @@ var cc = [
|
|
|
6993
7003
|
});
|
|
6994
7004
|
m.addPart("workbook", t, "/xl/workbook.xml"), await m.waitEmit(), m.addPart("propsCore", { model: t }), m.addPart("propsApp", { model: t }), t.getProperties().getCustom().length > 0 && m.addPart("propsCustom", { model: t });
|
|
6995
7005
|
let h = await m.build();
|
|
6996
|
-
await fn.isWatermarked() && (h = await
|
|
7006
|
+
await fn.isWatermarked() && (h = await _c(h));
|
|
6997
7007
|
let g = n?.progress?.onWarning;
|
|
6998
7008
|
if (p.length && g) {
|
|
6999
7009
|
let e = /* @__PURE__ */ new Set();
|
|
@@ -7003,5 +7013,5 @@ var cc = [
|
|
|
7003
7013
|
}
|
|
7004
7014
|
}
|
|
7005
7015
|
return h.byteOffset === 0 && h.byteLength === h.buffer.byteLength ? h.buffer : h.slice().buffer;
|
|
7006
|
-
},
|
|
7007
|
-
export {
|
|
7016
|
+
}, wc = 1;
|
|
7017
|
+
export { Cc as writeXLSX };
|