@sheetxl/io-xlsx 1.0.4 → 1.0.6
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/{Ck5-R8xrLh89G56Q.mjs → 8twPAx0iXVOHQF7M.mjs} +2 -2
- package/browser/esm/{BQw8xcZ6k06Tq6lY.mjs → AUzndO_dXq2uXAQy.mjs} +804 -788
- package/browser/esm/{lqWdqDnIKZxyet1d.mjs → AcInC71T9-1ULEU5.mjs} +2 -2
- package/browser/esm/{CzWmtWMV9HfkBne5.mjs → Bo6e8oAgFD2iY-YI.mjs} +4 -4
- package/browser/esm/{BDkqo2SKzINJJB0-.mjs → C-J26ZzIvck2JVIY.mjs} +8 -8
- package/browser/esm/{vlyPCdsYGtutUTnn.mjs → C3HFqaXGZmnvvgXu.mjs} +2 -2
- package/browser/esm/{CvaZql_oqszNei5v.mjs → CEaaCkM0LqK8VtxS.mjs} +1 -1
- package/browser/esm/{BP2eZDr6dZ7gP02Z.mjs → CRHs2mV0YZpM01kC.mjs} +4 -4
- package/browser/esm/{Di9ttuWnx0eCbSUA.mjs → CT6OmL58l1HESEBl.mjs} +2 -2
- package/browser/esm/{BUaKY12tmPZDwfZx.mjs → CeKec9Li8QnIzTOK.mjs} +1 -1
- package/browser/esm/{B7FIgKFyHincEoTQ.mjs → Dxmf_-Qe4ZEgmdJo.mjs} +7 -7
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{CtKLRPHWl5-_lwfr.mjs → 2311buWetucn9hiZ.mjs} +1 -1
- package/node/esm/{BO3IZgkfKGIGMKYd.mjs → Bk9BEJSwXlHj8fbL.mjs} +6 -6
- package/node/esm/{CLdbYG5SCBndfk-q.mjs → BlRZtxAC9VsylR-4.mjs} +928 -912
- package/node/esm/{D4thYKlDAXXgB-tC.mjs → BnBif62UoI48SS79.mjs} +2 -2
- package/node/esm/{CzEwnjXK_YIWXQQh.mjs → DNhkyiLSEHh9Bgu_.mjs} +2 -2
- package/node/esm/{bUN-BbKU7oHGJmVh.mjs → DTEwOiyesylYXv6G.mjs} +1 -1
- package/node/esm/{B2uSae_kN-7PrVjI.mjs → DuA_b1khVjfcKaUx.mjs} +6 -6
- package/node/esm/index.mjs +4 -4
- package/node/esm/{DmYe7T4XtIyt-qdA.mjs → ybG-XNic24pCv4CN.mjs} +4 -4
- package/package.json +3 -3
- package/types/src/chart/_codec.d.ts +1 -1
- package/types/src/chart/_xml.d.ts +4 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v1.0.
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v1.0.6
|
|
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 { En as t, Sn as e, Tn as n, wn as r } from "./
|
|
7
|
+
import { En as t, Sn as e, Tn as n, wn as r } from "./2311buWetucn9hiZ.mjs";
|
|
8
8
|
import { Color as s, FormulaError as o, IFill as i, IFontStyle as a } from "@sheetxl/sdk";
|
|
9
9
|
var l = [
|
|
10
10
|
"customMenu",
|
|
@@ -64,14 +64,14 @@ var l = [
|
|
|
64
64
|
const e = g[t];
|
|
65
65
|
e.hasDate && e.hasNumber ? e.json.dateItems = e.dateItems : e.hasDate && (e.json.dates = !0), e.items.length > 0 && P.push([t, [[0, e.items]]]), e.records && e.records.length > 0 && C.push([t, [[0, e.records]]]);
|
|
66
66
|
}
|
|
67
|
-
const I = k ? i.substring(0, k.start) + i.substring(k.end) : i,
|
|
68
|
-
let
|
|
67
|
+
const I = k ? i.substring(0, k.start) + i.substring(k.end) : i, N = r(I, "cacheFields") ?? p();
|
|
68
|
+
let D = I.substring(0, N.start) + I.substring(N.end);
|
|
69
69
|
const T = i.substring(m.start, m.start + m.attributes.length + 16);
|
|
70
|
-
|
|
70
|
+
D = D.replace(T, () => "<worksheetSource" + t(m.attributes, [
|
|
71
71
|
"ref",
|
|
72
72
|
"sheet",
|
|
73
73
|
"name"
|
|
74
|
-
])),
|
|
74
|
+
])), D = D.replace(a.tag, () => "<pivotCacheDefinition" + t(a.attributes, [
|
|
75
75
|
"r:id",
|
|
76
76
|
"recordCount",
|
|
77
77
|
"refreshOnLoad"
|
|
@@ -81,7 +81,7 @@ var l = [
|
|
|
81
81
|
fields: g.map((t) => t.json),
|
|
82
82
|
items: P,
|
|
83
83
|
recordCount: L,
|
|
84
|
-
rest:
|
|
84
|
+
rest: D
|
|
85
85
|
};
|
|
86
86
|
null !== c && (F.records = C);
|
|
87
87
|
const $ = l.get("refreshOnLoad");
|
|
@@ -243,10 +243,10 @@ var l = [
|
|
|
243
243
|
if ("#" !== e[0]) return C[e] ?? t;
|
|
244
244
|
const n = "x" === e[1] ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
245
245
|
return Number.isFinite(n) ? String.fromCodePoint(n) : t;
|
|
246
|
-
}),
|
|
246
|
+
}), N = (t) => {
|
|
247
247
|
const e = t.indexOf(":");
|
|
248
248
|
return -1 === e ? t : t.slice(e + 1);
|
|
249
|
-
},
|
|
249
|
+
}, D = (t) => {
|
|
250
250
|
const e = {
|
|
251
251
|
name: "",
|
|
252
252
|
qname: "",
|
|
@@ -271,7 +271,7 @@ var l = [
|
|
|
271
271
|
continue;
|
|
272
272
|
}
|
|
273
273
|
const r = e.index + e[0].length, s = {
|
|
274
|
-
name:
|
|
274
|
+
name: N(e[3]),
|
|
275
275
|
qname: e[3],
|
|
276
276
|
attrs: e[4] ?? "",
|
|
277
277
|
children: [],
|
|
@@ -288,31 +288,32 @@ var l = [
|
|
|
288
288
|
let e = "";
|
|
289
289
|
for (const n of t.children) "string" == typeof n && (e += n);
|
|
290
290
|
return e;
|
|
291
|
-
}, $ = "http://schemas.openxmlformats.org/drawingml/2006/chart", j = "http://purl.oclc.org/ooxml/drawingml/chart", O = "http://schemas.openxmlformats.org/drawingml/2006/main",
|
|
291
|
+
}, $ = "http://schemas.openxmlformats.org/drawingml/2006/chart", j = "http://purl.oclc.org/ooxml/drawingml/chart", O = "http://schemas.openxmlformats.org/drawingml/2006/main", A = "http://purl.oclc.org/ooxml/drawingml/main", R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", M = "http://schemas.microsoft.com/office/drawing/2012/chart", E = "http://schemas.microsoft.com/office/drawing/2017/03/chart", B = "http://schemas.microsoft.com/office/drawing/2014/chartex", U = "http://www.w3.org/XML/1998/namespace", W = {
|
|
292
292
|
c: "c",
|
|
293
293
|
a: "a",
|
|
294
294
|
r: "r",
|
|
295
295
|
c15: "c15",
|
|
296
|
+
c16r3: "c16r3",
|
|
296
297
|
cx: "cx"
|
|
297
|
-
},
|
|
298
|
+
}, z = (t) => t === $ || t === j, V = (t) => t === O || t === A, H = (t) => t === B, G = Object.freeze({ xml: U }), q = /([^\s=]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g, J = (t) => {
|
|
298
299
|
const e = [];
|
|
299
|
-
|
|
300
|
-
for (let n =
|
|
300
|
+
q.lastIndex = 0;
|
|
301
|
+
for (let n = q.exec(t.attrs); n; n = q.exec(t.attrs)) e.push([n[1], I(n[2] ?? n[3] ?? "")]);
|
|
301
302
|
return e;
|
|
302
|
-
},
|
|
303
|
+
}, _ = (t, e) => {
|
|
303
304
|
let n = null;
|
|
304
|
-
for (const [r, s] of
|
|
305
|
+
for (const [r, s] of J(t)) "xmlns" === r ? (n ??= { ...e })[""] = s : r.startsWith("xmlns:") && ((n ??= { ...e })[r.slice(6)] = s);
|
|
305
306
|
return n ?? e;
|
|
306
|
-
},
|
|
307
|
+
}, K = (t, e) => e[((t) => {
|
|
307
308
|
const e = t.indexOf(":");
|
|
308
309
|
return -1 === e ? "" : t.slice(0, e);
|
|
309
|
-
})(t.qname)],
|
|
310
|
+
})(t.qname)], X = class {
|
|
310
311
|
constructor() {
|
|
311
312
|
this._parts = [];
|
|
312
313
|
}
|
|
313
314
|
open(t, e, n = !1) {
|
|
314
315
|
let r = "<" + t;
|
|
315
|
-
if (e) for (const [t, n] of e) r += ` ${t}="${
|
|
316
|
+
if (e) for (const [t, n] of e) r += ` ${t}="${Y(n)}"`;
|
|
316
317
|
return this._parts.push(r + (n ? "/>" : ">")), this;
|
|
317
318
|
}
|
|
318
319
|
close(t) {
|
|
@@ -330,10 +331,10 @@ var l = [
|
|
|
330
331
|
toString() {
|
|
331
332
|
return this._parts.join("");
|
|
332
333
|
}
|
|
333
|
-
},
|
|
334
|
-
const e =
|
|
335
|
-
return null !== e ?
|
|
336
|
-
},
|
|
334
|
+
}, Y = (t) => t.replace(/&/g, "&").replace(/</g, "<").replace(/"/g, """), Q = (t) => "1" === t || "true" === t || "0" !== t && "false" !== t && null, Z = (t) => t ? "1" : "0", tt = /^[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?$/, et = (t) => {
|
|
335
|
+
const e = Q(t);
|
|
336
|
+
return null !== e ? Z(e) : tt.test(t) ? String(Number(t)) : t;
|
|
337
|
+
}, nt = /* @__PURE__ */ new Set([
|
|
337
338
|
"date1904",
|
|
338
339
|
"roundedCorners",
|
|
339
340
|
"autoTitleDeleted",
|
|
@@ -371,37 +372,37 @@ var l = [
|
|
|
371
372
|
"formatting",
|
|
372
373
|
"selection",
|
|
373
374
|
"userInterface"
|
|
374
|
-
]),
|
|
375
|
-
const r =
|
|
376
|
-
for (const [e, n] of
|
|
375
|
+
]), rt = (t, e, n = !1) => {
|
|
376
|
+
const r = _(t, e), s = K(t, r) ?? "", o = [];
|
|
377
|
+
for (const [e, n] of J(t)) {
|
|
377
378
|
if ("xmlns" === e || e.startsWith("xmlns:")) continue;
|
|
378
379
|
const t = e.indexOf(":"), s = -1 === t ? e : `{${r[e.slice(0, t)] ?? e.slice(0, t)}}${e.slice(t + 1)}`;
|
|
379
|
-
o.push(`${s}=${JSON.stringify(
|
|
380
|
+
o.push(`${s}=${JSON.stringify(et(n))}`);
|
|
380
381
|
}
|
|
381
382
|
const i = T(t), a = 0 === i.length ? t.children.join("") : "";
|
|
382
|
-
0 === o.length && 0 === i.length && "" === a &&
|
|
383
|
+
0 === o.length && 0 === i.length && "" === a && z(s) && nt.has(t.name) && o.push("val=\"1\""), o.sort();
|
|
383
384
|
let l = `<{${s}}${t.name}${o.length ? " " + o.join(" ") : ""}>`;
|
|
384
385
|
if (i.length > 0) {
|
|
385
386
|
const e = [];
|
|
386
|
-
for (const s of t.children) "string" == typeof s ? "" !== s.trim() && e.push(JSON.stringify(s)) : e.push(
|
|
387
|
+
for (const s of t.children) "string" == typeof s ? "" !== s.trim() && e.push(JSON.stringify(s)) : e.push(rt(s, r, n));
|
|
387
388
|
n && e.sort(), l += e.join("");
|
|
388
389
|
} else "" !== a && (l += JSON.stringify(a));
|
|
389
390
|
return l + "</>";
|
|
390
|
-
},
|
|
391
|
+
}, st = class {
|
|
391
392
|
constructor(t, e) {
|
|
392
393
|
this.xml = t, this.rootScope = e, this.kept = 0, this.reordered = 0;
|
|
393
|
-
const n = Object.values(e).find(
|
|
394
|
+
const n = Object.values(e).find(z) ?? $, r = V(e[W.a]) ? e[W.a] : O;
|
|
394
395
|
this.writeScope = {
|
|
395
396
|
...e,
|
|
396
|
-
[
|
|
397
|
-
[
|
|
398
|
-
[
|
|
399
|
-
[
|
|
397
|
+
[W.c]: n,
|
|
398
|
+
[W.cx]: B,
|
|
399
|
+
[W.a]: r,
|
|
400
|
+
[W.r]: e[W.r] ?? R
|
|
400
401
|
};
|
|
401
402
|
}
|
|
402
403
|
markupOf(t, e) {
|
|
403
404
|
let n = this.xml.slice(t.start, t.end);
|
|
404
|
-
const r = new Set(
|
|
405
|
+
const r = new Set(J(t).map(([t]) => t).filter((t) => "xmlns" === t || t.startsWith("xmlns:")));
|
|
405
406
|
let s = "";
|
|
406
407
|
for (const t of Object.keys(e)) "xml" !== t && e[t] !== this.rootScope[t] && (r.has("" === t ? "xmlns" : `xmlns:${t}`) || (s += "" === t ? ` xmlns="${e[t]}"` : ` xmlns:${t}="${e[t]}"`));
|
|
407
408
|
if (s) {
|
|
@@ -410,24 +411,25 @@ var l = [
|
|
|
410
411
|
}
|
|
411
412
|
return n;
|
|
412
413
|
}
|
|
413
|
-
},
|
|
414
|
+
}, ot = (t, e) => {
|
|
414
415
|
switch (t) {
|
|
415
|
-
case "c": return
|
|
416
|
-
case "c15": return e ===
|
|
417
|
-
case "
|
|
418
|
-
|
|
416
|
+
case "c": return z(e);
|
|
417
|
+
case "c15": return e === M;
|
|
418
|
+
case "c16r3": return e === E;
|
|
419
|
+
case "cx": return H(e);
|
|
420
|
+
default: return V(e);
|
|
419
421
|
}
|
|
420
|
-
},
|
|
421
|
-
const s =
|
|
422
|
+
}, it = (t, e, n, r) => {
|
|
423
|
+
const s = _(t, n), o = {};
|
|
422
424
|
let i, a;
|
|
423
|
-
for (const [n, r] of
|
|
425
|
+
for (const [n, r] of J(t)) {
|
|
424
426
|
const t = e.attributes?.find((t) => t.name === n), s = t ? t.read(r) : void 0;
|
|
425
|
-
t && void 0 !== s &&
|
|
427
|
+
t && void 0 !== s && et(t.write(s)) === et(r) ? o[t.key] = s : (i ??= {})[n] = r;
|
|
426
428
|
}
|
|
427
429
|
let l = -1, d = "";
|
|
428
430
|
const c = {};
|
|
429
431
|
for (const n of T(t)) {
|
|
430
|
-
const t =
|
|
432
|
+
const t = _(n, s), i = K(n, t), u = e.fields.findIndex((t) => t.tags.includes(n.name) && ot(t.ns, i)), p = -1 === u ? null : e.fields[u], f = p && !p.many ? p.get ? p.get(o) : o[p.key] : void 0, m = u > l || u === l && !!p?.many;
|
|
431
433
|
if (p && void 0 === f && (m || !p.many)) {
|
|
432
434
|
const e = p.read(n, t, r);
|
|
433
435
|
if (void 0 !== e) {
|
|
@@ -442,7 +444,7 @@ var l = [
|
|
|
442
444
|
h?.many && (b.at = c[h.key]), (a ??= []).push(b);
|
|
443
445
|
}
|
|
444
446
|
return (i || a) && (o.unknown = {}, a && (o.unknown.elements = a), i && (o.unknown.attributes = i)), e.afterRead?.(o, t, s, r), o;
|
|
445
|
-
},
|
|
447
|
+
}, at = (t, e, n, r) => {
|
|
446
448
|
const s = [];
|
|
447
449
|
for (const t of r.attributes ?? []) {
|
|
448
450
|
const e = n[t.key];
|
|
@@ -451,7 +453,7 @@ var l = [
|
|
|
451
453
|
const o = n.unknown;
|
|
452
454
|
if (o?.attributes) for (const t of Object.keys(o.attributes)) s.push([t, o.attributes[t]]);
|
|
453
455
|
for (const t of r.declares?.(n) ?? []) s.some(([e]) => e === t[0]) || s.push(t);
|
|
454
|
-
const i = new
|
|
456
|
+
const i = new X(), a = o?.elements ? [...o.elements] : [], l = (t) => {
|
|
455
457
|
for (let e = 0; e < a.length; e++) t(a[e]) && (i.raw(a[e].xml), a.splice(e--, 1));
|
|
456
458
|
};
|
|
457
459
|
l((t) => "" === t.after);
|
|
@@ -466,7 +468,7 @@ var l = [
|
|
|
466
468
|
l(() => !0);
|
|
467
469
|
const d = i.toString();
|
|
468
470
|
"" === d ? t.open(e, s, !0) : t.open(e, s).raw(d).close(e);
|
|
469
|
-
},
|
|
471
|
+
}, lt = (t, e) => `${W[t]}:${e}`, dt = (t, e, n = t, r = "c") => ({
|
|
470
472
|
tags: [t],
|
|
471
473
|
key: n,
|
|
472
474
|
ns: r,
|
|
@@ -474,72 +476,72 @@ var l = [
|
|
|
474
476
|
const n = ((t) => {
|
|
475
477
|
if (T(t).length > 0) return;
|
|
476
478
|
let e = null;
|
|
477
|
-
for (const [n, r] of
|
|
479
|
+
for (const [n, r] of J(t)) {
|
|
478
480
|
if ("val" !== n) return;
|
|
479
481
|
e = r;
|
|
480
482
|
}
|
|
481
483
|
return e;
|
|
482
484
|
})(t);
|
|
483
485
|
if (void 0 === n) return;
|
|
484
|
-
if ("bool" === e) return null === n || (
|
|
486
|
+
if ("bool" === e) return null === n || (Q(n) ?? void 0);
|
|
485
487
|
if (null === n) return;
|
|
486
488
|
if ("str" === e) return n;
|
|
487
489
|
const r = Number(n);
|
|
488
|
-
return Number.isFinite(r) && ("int" !== e || Number.isInteger(r)) &&
|
|
490
|
+
return Number.isFinite(r) && ("int" !== e || Number.isInteger(r)) && et(String(r)) === et(n) ? r : void 0;
|
|
489
491
|
},
|
|
490
492
|
write: (n, s) => {
|
|
491
|
-
n.val(
|
|
493
|
+
n.val(lt(r, t), "bool" === e ? Z(s) : String(s));
|
|
492
494
|
}
|
|
493
|
-
}),
|
|
495
|
+
}), ct = (t, e = t, n = "c") => ({
|
|
494
496
|
tags: [t],
|
|
495
497
|
key: e,
|
|
496
498
|
ns: n,
|
|
497
499
|
read: (t) => {
|
|
498
|
-
if (!(T(t).length > 0 ||
|
|
500
|
+
if (!(T(t).length > 0 || J(t).some(([t]) => !t.startsWith("xmlns")))) return F(t);
|
|
499
501
|
},
|
|
500
502
|
write: (e, r) => {
|
|
501
|
-
const s =
|
|
503
|
+
const s = lt(n, t);
|
|
502
504
|
"" === r ? e.open(s, null, !0) : e.open(s).text(r).close(s);
|
|
503
505
|
}
|
|
504
|
-
}),
|
|
506
|
+
}), ut = (t, e, n = t, r) => {
|
|
505
507
|
const s = r?.ns ?? "c", o = "function" == typeof e ? e : () => e;
|
|
506
508
|
return {
|
|
507
509
|
tags: [t],
|
|
508
510
|
key: n,
|
|
509
511
|
ns: s,
|
|
510
512
|
many: r?.many,
|
|
511
|
-
read: (t, e, n) =>
|
|
512
|
-
write: (e, n) =>
|
|
513
|
+
read: (t, e, n) => it(t, o(), e, n),
|
|
514
|
+
write: (e, n) => at(e, lt(s, t), n, o())
|
|
513
515
|
};
|
|
514
|
-
},
|
|
516
|
+
}, pt = (t, e, n = t, r = 1) => ({
|
|
515
517
|
name: t,
|
|
516
518
|
key: n,
|
|
517
519
|
read: (t) => {
|
|
518
520
|
if ("str" === e) return t;
|
|
519
|
-
if ("bool" === e) return
|
|
521
|
+
if ("bool" === e) return Q(t) ?? void 0;
|
|
520
522
|
const n = Number(t);
|
|
521
523
|
return Number.isFinite(n) && ("int" !== e || Number.isInteger(n)) ? 1 === r ? n : n / r : void 0;
|
|
522
524
|
},
|
|
523
|
-
write: (t) => "bool" === e ?
|
|
524
|
-
}),
|
|
525
|
+
write: (t) => "bool" === e ? Z(t) : "str" === e ? t : String(1 === r ? t : Math.round(t * r))
|
|
526
|
+
}), ft = (t, e, n, r) => ({
|
|
525
527
|
name: t,
|
|
526
528
|
key: e,
|
|
527
529
|
read: n,
|
|
528
530
|
write: r
|
|
529
|
-
}),
|
|
531
|
+
}), mt = (t) => ({
|
|
530
532
|
...t,
|
|
531
533
|
read: (e, n, r) => {
|
|
532
534
|
const s = t.read(e, n, r);
|
|
533
535
|
if (void 0 === s) return;
|
|
534
|
-
const o = new
|
|
536
|
+
const o = new X();
|
|
535
537
|
t.write(o, s);
|
|
536
538
|
const i = ((t, e) => {
|
|
537
|
-
const n =
|
|
538
|
-
return n ?
|
|
539
|
-
})(o.toString(), r.writeScope) ===
|
|
539
|
+
const n = D(t);
|
|
540
|
+
return n ? rt(n, e) : null;
|
|
541
|
+
})(o.toString(), r.writeScope) === rt(e, n);
|
|
540
542
|
return i || r.kept++, i ? s : void 0;
|
|
541
543
|
}
|
|
542
|
-
}),
|
|
544
|
+
}), ht = (t) => `a:${t}`, bt = /* @__PURE__ */ new Set([
|
|
543
545
|
"bg1",
|
|
544
546
|
"tx1",
|
|
545
547
|
"bg2",
|
|
@@ -557,7 +559,7 @@ var l = [
|
|
|
557
559
|
"lt1",
|
|
558
560
|
"dk2",
|
|
559
561
|
"lt2"
|
|
560
|
-
]),
|
|
562
|
+
]), gt = /* @__PURE__ */ new Set([
|
|
561
563
|
"scrollBar",
|
|
562
564
|
"background",
|
|
563
565
|
"activeCaption",
|
|
@@ -588,70 +590,70 @@ var l = [
|
|
|
588
590
|
"gradientInactiveCaption",
|
|
589
591
|
"menuHighlight",
|
|
590
592
|
"menuBar"
|
|
591
|
-
]),
|
|
593
|
+
]), yt = [
|
|
592
594
|
"scrgbClr",
|
|
593
595
|
"srgbClr",
|
|
594
596
|
"hslClr",
|
|
595
597
|
"sysClr",
|
|
596
598
|
"schemeClr",
|
|
597
599
|
"prstClr"
|
|
598
|
-
],
|
|
600
|
+
], vt = (t) => "hue" === t || "hueOff" === t || "hueMod" === t ? 6e4 : "alpha" === t || "alphaOff" === t || "alphaMod" === t ? 1e5 : 1e3, xt = (t, e) => {
|
|
599
601
|
const n = {};
|
|
600
|
-
for (const [r, s] of
|
|
602
|
+
for (const [r, s] of J(t)) {
|
|
601
603
|
if (!e.includes(r)) return null;
|
|
602
604
|
n[r] = s;
|
|
603
605
|
}
|
|
604
606
|
return n;
|
|
605
|
-
},
|
|
607
|
+
}, wt = /^-?\d+$/, kt = (t) => {
|
|
606
608
|
const e = T(t);
|
|
607
|
-
return 0 === e.length ? null : e.length > 1 || !
|
|
609
|
+
return 0 === e.length ? null : e.length > 1 || !yt.includes(e[0].name) ? void 0 : ((t) => {
|
|
608
610
|
let e;
|
|
609
611
|
switch (t.name) {
|
|
610
612
|
case "scrgbClr": {
|
|
611
|
-
const n =
|
|
613
|
+
const n = xt(t, [
|
|
612
614
|
"r",
|
|
613
615
|
"g",
|
|
614
616
|
"b"
|
|
615
617
|
]);
|
|
616
|
-
if (!(n &&
|
|
618
|
+
if (!(n && wt.test(n.r ?? "") && wt.test(n.g ?? "") && wt.test(n.b ?? ""))) return;
|
|
617
619
|
e = `lrgb(${Number(n.r) / 1e3},${Number(n.g) / 1e3},${Number(n.b) / 1e3})`;
|
|
618
620
|
break;
|
|
619
621
|
}
|
|
620
622
|
case "hslClr": {
|
|
621
|
-
const n =
|
|
623
|
+
const n = xt(t, [
|
|
622
624
|
"hue",
|
|
623
625
|
"sat",
|
|
624
626
|
"lum"
|
|
625
627
|
]);
|
|
626
|
-
if (!(n &&
|
|
628
|
+
if (!(n && wt.test(n.hue ?? "") && wt.test(n.sat ?? "") && wt.test(n.lum ?? ""))) return;
|
|
627
629
|
e = `hsl(${Number(n.hue) / 6e4},${Number(n.sat) / 1e3},${Number(n.lum) / 1e3})`;
|
|
628
630
|
break;
|
|
629
631
|
}
|
|
630
632
|
case "sysClr": {
|
|
631
|
-
const n =
|
|
632
|
-
if (!n?.val || !
|
|
633
|
+
const n = xt(t, ["val", "lastClr"]);
|
|
634
|
+
if (!n?.val || !gt.has(n.val)) return;
|
|
633
635
|
e = void 0 !== n.lastClr ? `${n.val} lastClr ${n.lastClr}` : n.val;
|
|
634
636
|
break;
|
|
635
637
|
}
|
|
636
638
|
default: {
|
|
637
|
-
const n =
|
|
639
|
+
const n = xt(t, ["val"]);
|
|
638
640
|
if (!n?.val || /\s/.test(n.val)) return;
|
|
639
|
-
if ((
|
|
641
|
+
if ((bt.has(n.val) ? "schemeClr" : /^[0-9A-Fa-f]{6}$/.test(n.val) ? "srgbClr" : "prstClr") !== t.name) return;
|
|
640
642
|
e = n.val;
|
|
641
643
|
}
|
|
642
644
|
}
|
|
643
645
|
for (const n of T(t)) {
|
|
644
646
|
if (T(n).length > 0) return;
|
|
645
|
-
const t =
|
|
647
|
+
const t = xt(n, ["val"]);
|
|
646
648
|
if (!t) return;
|
|
647
649
|
if (void 0 !== t.val) {
|
|
648
|
-
if (!
|
|
649
|
-
e += ` ${n.name} ${Number(t.val) /
|
|
650
|
+
if (!wt.test(t.val)) return;
|
|
651
|
+
e += ` ${n.name} ${Number(t.val) / vt(n.name)}`;
|
|
650
652
|
} else e += ` ${n.name}`;
|
|
651
653
|
}
|
|
652
654
|
return e;
|
|
653
655
|
})(e[0]);
|
|
654
|
-
},
|
|
656
|
+
}, St = /^-?(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?$/i, Lt = (t, e) => {
|
|
655
657
|
const n = ((t) => {
|
|
656
658
|
const e = t.trim(), n = /^[a-z]+\([^)]*\)|^[^\s,]+/i.exec(e)?.[0] ?? e, r = e.slice(n.length).split(/\s*,\s*|\s+/).filter((t) => "" !== t);
|
|
657
659
|
return [n.replace(/\s+/g, ""), ...r];
|
|
@@ -668,10 +670,10 @@ var l = [
|
|
|
668
670
|
["sat", String(Math.round(1e3 * Number(a[3])))],
|
|
669
671
|
["lum", String(Math.round(1e3 * Number(a[4])))]
|
|
670
672
|
];
|
|
671
|
-
else if ("lastClr" === n[0] ||
|
|
673
|
+
else if ("lastClr" === n[0] || gt.has(r)) o = "sysClr", i = [["val", r]], "lastClr" === n[0] && (n.shift(), i.push(["lastClr", n.shift()]));
|
|
672
674
|
else {
|
|
673
675
|
const t = ((t) => {
|
|
674
|
-
if (
|
|
676
|
+
if (bt.has(t) || /^[0-9A-Fa-f]{6}$/.test(t) || /^[a-z]+$/i.test(t)) return null;
|
|
675
677
|
let e;
|
|
676
678
|
try {
|
|
677
679
|
e = new s(t);
|
|
@@ -681,26 +683,26 @@ var l = [
|
|
|
681
683
|
const n = e.getType();
|
|
682
684
|
return "hex" === n || "rgb" === n || "hsl" === n ? e.toHex().toString(!1).replace("#", "").toUpperCase() : null;
|
|
683
685
|
})(r);
|
|
684
|
-
o = t ? "srgbClr" :
|
|
686
|
+
o = t ? "srgbClr" : bt.has(r) ? "schemeClr" : /^[0-9A-Fa-f]{6}$/.test(r) ? "srgbClr" : "prstClr", i = [["val", t ?? r]];
|
|
685
687
|
}
|
|
686
688
|
if (0 !== n.length) {
|
|
687
|
-
t.open(
|
|
689
|
+
t.open(ht(o), i);
|
|
688
690
|
for (let e = 0; e < n.length; e++) {
|
|
689
691
|
const r = n[e];
|
|
690
|
-
e + 1 < n.length &&
|
|
692
|
+
e + 1 < n.length && St.test(n[e + 1]) ? t.val(ht(r), String(Math.round(Number(n[++e]) * vt(r)))) : t.open(ht(r), null, !0);
|
|
691
693
|
}
|
|
692
|
-
t.close(
|
|
693
|
-
} else t.open(
|
|
694
|
-
},
|
|
695
|
-
void 0 === n ? t.open(
|
|
696
|
-
},
|
|
694
|
+
t.close(ht(o));
|
|
695
|
+
} else t.open(ht(o), i, !0);
|
|
696
|
+
}, Pt = (t, e, n, r) => {
|
|
697
|
+
void 0 === n ? t.open(ht(e), r, !0) : (t.open(ht(e), r), Lt(t, n), t.close(ht(e)));
|
|
698
|
+
}, Ct = [
|
|
697
699
|
"noFill",
|
|
698
700
|
"solidFill",
|
|
699
701
|
"gradFill",
|
|
700
702
|
"pattFill",
|
|
701
703
|
"grpFill"
|
|
702
|
-
],
|
|
703
|
-
const e =
|
|
704
|
+
], It = (t) => {
|
|
705
|
+
const e = xt(t, [
|
|
704
706
|
"l",
|
|
705
707
|
"t",
|
|
706
708
|
"r",
|
|
@@ -709,16 +711,16 @@ var l = [
|
|
|
709
711
|
if (!e) return;
|
|
710
712
|
const n = {};
|
|
711
713
|
return void 0 !== e.l && (n.left = Number(e.l) / 1e3), void 0 !== e.t && (n.top = Number(e.t) / 1e3), void 0 !== e.r && (n.right = Number(e.r) / 1e3), void 0 !== e.b && (n.bottom = Number(e.b) / 1e3), n;
|
|
712
|
-
},
|
|
714
|
+
}, Nt = (t, e, n) => {
|
|
713
715
|
const r = [];
|
|
714
|
-
void 0 !== n.left && r.push(["l", String(Math.round(1e3 * n.left))]), void 0 !== n.top && r.push(["t", String(Math.round(1e3 * n.top))]), void 0 !== n.right && r.push(["r", String(Math.round(1e3 * n.right))]), void 0 !== n.bottom && r.push(["b", String(Math.round(1e3 * n.bottom))]), t.open(
|
|
716
|
+
void 0 !== n.left && r.push(["l", String(Math.round(1e3 * n.left))]), void 0 !== n.top && r.push(["t", String(Math.round(1e3 * n.top))]), void 0 !== n.right && r.push(["r", String(Math.round(1e3 * n.right))]), void 0 !== n.bottom && r.push(["b", String(Math.round(1e3 * n.bottom))]), t.open(ht(e), r, !0);
|
|
715
717
|
}, Dt = (t) => {
|
|
716
718
|
switch (t.name) {
|
|
717
|
-
case "noFill": return 0 === T(t).length && 0 ===
|
|
718
|
-
case "grpFill": return 0 === T(t).length && 0 ===
|
|
719
|
+
case "noFill": return 0 === T(t).length && 0 === J(t).length ? { type: i.Type.None } : void 0;
|
|
720
|
+
case "grpFill": return 0 === T(t).length && 0 === J(t).length ? { type: i.Type.Group } : void 0;
|
|
719
721
|
case "solidFill": {
|
|
720
|
-
if (
|
|
721
|
-
const e =
|
|
722
|
+
if (J(t).length > 0) return;
|
|
723
|
+
const e = kt(t);
|
|
722
724
|
if (void 0 === e) return;
|
|
723
725
|
return null === e ? { type: i.Type.Solid } : {
|
|
724
726
|
type: i.Type.Solid,
|
|
@@ -726,11 +728,11 @@ var l = [
|
|
|
726
728
|
};
|
|
727
729
|
}
|
|
728
730
|
case "gradFill": return ((t) => {
|
|
729
|
-
const e =
|
|
731
|
+
const e = xt(t, ["rotWithShape", "flip"]);
|
|
730
732
|
if (!e) return;
|
|
731
733
|
const n = { type: i.Type.Gradient };
|
|
732
734
|
if (void 0 !== e.rotWithShape) {
|
|
733
|
-
const t =
|
|
735
|
+
const t = Q(e.rotWithShape);
|
|
734
736
|
if (null === t) return;
|
|
735
737
|
n.isRotatedWithShape = t;
|
|
736
738
|
}
|
|
@@ -738,7 +740,7 @@ var l = [
|
|
|
738
740
|
for (const e of T(t)) if ("gsLst" === e.name) {
|
|
739
741
|
const t = [];
|
|
740
742
|
for (const n of T(e)) {
|
|
741
|
-
const e = "gs" === n.name ?
|
|
743
|
+
const e = "gs" === n.name ? xt(n, ["pos"]) : null, r = e && wt.test(e.pos ?? "") ? kt(n) : void 0;
|
|
742
744
|
if (!r) return;
|
|
743
745
|
t.push({
|
|
744
746
|
offset: Number(e.pos) / 1e5,
|
|
@@ -747,25 +749,25 @@ var l = [
|
|
|
747
749
|
}
|
|
748
750
|
n.stops = t;
|
|
749
751
|
} else if ("lin" === e.name) {
|
|
750
|
-
const t =
|
|
752
|
+
const t = xt(e, ["ang", "scaled"]);
|
|
751
753
|
if (!t || T(e).length > 0) return;
|
|
752
754
|
if (n.gradientType = i.GradientType.Linear, void 0 !== t.ang) {
|
|
753
|
-
if (!
|
|
755
|
+
if (!wt.test(t.ang)) return;
|
|
754
756
|
n.angle = (Number(t.ang) / 6e4 + 90) % 360;
|
|
755
757
|
}
|
|
756
758
|
if (void 0 !== t.scaled) {
|
|
757
|
-
const e =
|
|
759
|
+
const e = Q(t.scaled);
|
|
758
760
|
if (null === e) return;
|
|
759
761
|
n.scaled = e;
|
|
760
762
|
}
|
|
761
763
|
} else if ("path" === e.name) {
|
|
762
|
-
const t =
|
|
764
|
+
const t = xt(e, ["path"]);
|
|
763
765
|
if (!t) return;
|
|
764
766
|
n.gradientType = "circle" === t.path ? i.GradientType.Path : t.path;
|
|
765
767
|
const r = T(e);
|
|
766
768
|
if (r.length > 1 || 1 === r.length && "fillToRect" !== r[0].name) return;
|
|
767
769
|
if (1 === r.length) {
|
|
768
|
-
const t =
|
|
770
|
+
const t = It(r[0]);
|
|
769
771
|
if (!t) return;
|
|
770
772
|
n.focus = {
|
|
771
773
|
left: (t.left ?? 0) / 100,
|
|
@@ -777,7 +779,7 @@ var l = [
|
|
|
777
779
|
} else {
|
|
778
780
|
if ("tileRect" !== e.name) return;
|
|
779
781
|
{
|
|
780
|
-
const t =
|
|
782
|
+
const t = It(e);
|
|
781
783
|
if (!t) return;
|
|
782
784
|
n.tileRect = t;
|
|
783
785
|
}
|
|
@@ -785,90 +787,90 @@ var l = [
|
|
|
785
787
|
return n;
|
|
786
788
|
})(t);
|
|
787
789
|
case "pattFill": {
|
|
788
|
-
const e =
|
|
790
|
+
const e = xt(t, ["prst"]);
|
|
789
791
|
if (!e) return;
|
|
790
792
|
const n = { type: i.Type.Pattern };
|
|
791
793
|
void 0 !== e.prst && (n.patternType = e.prst);
|
|
792
794
|
for (const e of T(t)) {
|
|
793
|
-
const t = "fgClr" === e.name || "bgClr" === e.name ?
|
|
795
|
+
const t = "fgClr" === e.name || "bgClr" === e.name ? kt(e) : void 0;
|
|
794
796
|
if (!t) return;
|
|
795
797
|
"fgClr" === e.name ? n.foreground = t : n.background = t;
|
|
796
798
|
}
|
|
797
799
|
return n;
|
|
798
800
|
}
|
|
799
801
|
}
|
|
800
|
-
},
|
|
802
|
+
}, Tt = (t, e) => {
|
|
801
803
|
switch (e.type) {
|
|
802
804
|
case i.Type.None:
|
|
803
|
-
t.open(
|
|
805
|
+
t.open(ht("noFill"), null, !0);
|
|
804
806
|
return;
|
|
805
807
|
case i.Type.Group:
|
|
806
|
-
t.open(
|
|
808
|
+
t.open(ht("grpFill"), null, !0);
|
|
807
809
|
return;
|
|
808
810
|
case i.Type.Solid:
|
|
809
|
-
|
|
811
|
+
Pt(t, "solidFill", e.color);
|
|
810
812
|
return;
|
|
811
813
|
case i.Type.Gradient:
|
|
812
814
|
((t, e) => {
|
|
813
815
|
const n = [];
|
|
814
|
-
if (void 0 !== e.flip && n.push(["flip", e.flip]), void 0 !== e.isRotatedWithShape && n.push(["rotWithShape",
|
|
815
|
-
t.open(
|
|
816
|
+
if (void 0 !== e.flip && n.push(["flip", e.flip]), void 0 !== e.isRotatedWithShape && n.push(["rotWithShape", Z(e.isRotatedWithShape)]), t.open(ht("gradFill"), n), e.stops) {
|
|
817
|
+
t.open(ht("gsLst"));
|
|
816
818
|
for (const n of e.stops) {
|
|
817
819
|
const { offset: e, color: r } = "string" == typeof n ? {
|
|
818
820
|
offset: 0,
|
|
819
821
|
color: n
|
|
820
822
|
} : n;
|
|
821
|
-
|
|
823
|
+
Pt(t, "gs", r, [["pos", String(Math.round(1e5 * (e ?? 0)))]]);
|
|
822
824
|
}
|
|
823
|
-
t.close(
|
|
825
|
+
t.close(ht("gsLst"));
|
|
824
826
|
}
|
|
825
827
|
if (e.gradientType === i.GradientType.Linear) {
|
|
826
828
|
const n = [];
|
|
827
|
-
void 0 !== e.angle && n.push(["ang", String(Math.round((e.angle - 90 + 360) % 360 * 6e4))]), void 0 !== e.scaled && n.push(["scaled",
|
|
829
|
+
void 0 !== e.angle && n.push(["ang", String(Math.round((e.angle - 90 + 360) % 360 * 6e4))]), void 0 !== e.scaled && n.push(["scaled", Z(e.scaled)]), t.open(ht("lin"), n, !0);
|
|
828
830
|
} else if (void 0 !== e.gradientType) {
|
|
829
831
|
const n = e.gradientType === i.GradientType.Path ? "circle" : e.gradientType;
|
|
830
|
-
e.focus ? (t.open(
|
|
832
|
+
e.focus ? (t.open(ht("path"), [["path", n]]), Nt(t, "fillToRect", {
|
|
831
833
|
left: 100 * e.focus.left,
|
|
832
834
|
top: 100 * e.focus.top,
|
|
833
835
|
right: 100 * (1 - e.focus.right),
|
|
834
836
|
bottom: 100 * (1 - e.focus.bottom)
|
|
835
|
-
}), t.close(
|
|
837
|
+
}), t.close(ht("path"))) : t.open(ht("path"), [["path", n]], !0);
|
|
836
838
|
}
|
|
837
|
-
e.tileRect &&
|
|
839
|
+
e.tileRect && Nt(t, "tileRect", e.tileRect), t.close(ht("gradFill"));
|
|
838
840
|
})(t, e);
|
|
839
841
|
return;
|
|
840
842
|
case i.Type.Pattern: {
|
|
841
843
|
const n = e, r = void 0 !== n.patternType ? [["prst", n.patternType]] : [];
|
|
842
|
-
void 0 === n.foreground && void 0 === n.background ? t.open(
|
|
844
|
+
void 0 === n.foreground && void 0 === n.background ? t.open(ht("pattFill"), r, !0) : (t.open(ht("pattFill"), r), void 0 !== n.foreground && Pt(t, "fgClr", n.foreground), void 0 !== n.background && Pt(t, "bgClr", n.background), t.close(ht("pattFill")));
|
|
843
845
|
return;
|
|
844
846
|
}
|
|
845
847
|
}
|
|
846
848
|
throw new Error(`A chart cannot write a fill of type '${e.type}'.`);
|
|
847
|
-
},
|
|
848
|
-
tags:
|
|
849
|
+
}, Ft = (t) => mt({
|
|
850
|
+
tags: Ct,
|
|
849
851
|
key: t,
|
|
850
852
|
ns: "a",
|
|
851
853
|
read: (t) => Dt(t),
|
|
852
|
-
write: (t, e) =>
|
|
853
|
-
}),
|
|
854
|
+
write: (t, e) => Tt(t, e)
|
|
855
|
+
}), $t = {
|
|
854
856
|
tags: ["effectLst"],
|
|
855
857
|
key: "effects",
|
|
856
858
|
ns: "a",
|
|
857
|
-
read: (t) => 0 === T(t).length && 0 ===
|
|
859
|
+
read: (t) => 0 === T(t).length && 0 === J(t).length ? [] : void 0,
|
|
858
860
|
write: (t, e) => {
|
|
859
861
|
if (e.length > 0) throw new Error("A chart cannot write effects yet.");
|
|
860
|
-
t.open(
|
|
862
|
+
t.open(ht("effectLst"), null, !0);
|
|
861
863
|
}
|
|
862
|
-
},
|
|
864
|
+
}, jt = {
|
|
863
865
|
rnd: "round",
|
|
864
866
|
flat: "butt",
|
|
865
867
|
sq: "square"
|
|
866
|
-
},
|
|
868
|
+
}, Ot = (t, e) => ({
|
|
867
869
|
tags: [t],
|
|
868
870
|
key: `${e}Type`,
|
|
869
871
|
ns: "a",
|
|
870
872
|
read: (t) => {
|
|
871
|
-
const e =
|
|
873
|
+
const e = xt(t, [
|
|
872
874
|
"type",
|
|
873
875
|
"w",
|
|
874
876
|
"len"
|
|
@@ -882,7 +884,7 @@ var l = [
|
|
|
882
884
|
"w",
|
|
883
885
|
"len"
|
|
884
886
|
]) void 0 !== n[t] && r.push([t, n[t]]);
|
|
885
|
-
e.open(
|
|
887
|
+
e.open(ht(t), r, !0);
|
|
886
888
|
},
|
|
887
889
|
get: (t) => {
|
|
888
890
|
const n = {};
|
|
@@ -891,39 +893,39 @@ var l = [
|
|
|
891
893
|
set: (t, n) => {
|
|
892
894
|
void 0 !== n.type && (t[`${e}Type`] = n.type), void 0 !== n.w && (t[`${e}Width`] = n.w), void 0 !== n.len && (t[`${e}Length`] = n.len);
|
|
893
895
|
}
|
|
894
|
-
}),
|
|
896
|
+
}), At = {
|
|
895
897
|
attributes: [
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
898
|
+
pt("w", "int", "width", 12700),
|
|
899
|
+
ft("cap", "lineCap", (t) => jt[t], (t) => Object.keys(jt).find((e) => jt[e] === t)),
|
|
900
|
+
pt("cmpd", "str", "compound"),
|
|
901
|
+
pt("algn", "str", "align")
|
|
900
902
|
],
|
|
901
903
|
fields: [
|
|
902
|
-
|
|
904
|
+
Ft("fill"),
|
|
903
905
|
{
|
|
904
906
|
tags: ["prstDash", "custDash"],
|
|
905
907
|
key: "dash",
|
|
906
908
|
ns: "a",
|
|
907
909
|
read: (t) => {
|
|
908
910
|
if ("prstDash" === t.name) {
|
|
909
|
-
const e =
|
|
911
|
+
const e = xt(t, ["val"]);
|
|
910
912
|
return void 0 !== e?.val && 0 === T(t).length ? e.val : void 0;
|
|
911
913
|
}
|
|
912
|
-
if (
|
|
914
|
+
if (J(t).length > 0) return;
|
|
913
915
|
const e = [];
|
|
914
916
|
for (const n of T(t)) {
|
|
915
|
-
const t = "ds" === n.name ?
|
|
916
|
-
if (!t || !
|
|
917
|
+
const t = "ds" === n.name ? xt(n, ["d", "sp"]) : null;
|
|
918
|
+
if (!t || !wt.test(t.d ?? "") || !wt.test(t.sp ?? "")) return;
|
|
917
919
|
e.push(Number(t.d) / 1e3, Number(t.sp) / 1e3);
|
|
918
920
|
}
|
|
919
921
|
return e;
|
|
920
922
|
},
|
|
921
923
|
write: (t, e) => {
|
|
922
924
|
if ("string" != typeof e) {
|
|
923
|
-
t.open(
|
|
924
|
-
for (let n = 0; n < e.length; n += 2) t.open(
|
|
925
|
-
t.close(
|
|
926
|
-
} else t.val(
|
|
925
|
+
t.open(ht("custDash"));
|
|
926
|
+
for (let n = 0; n < e.length; n += 2) t.open(ht("ds"), [["d", String(Math.round(1e3 * e[n]))], ["sp", String(Math.round(1e3 * e[n + 1]))]], !0);
|
|
927
|
+
t.close(ht("custDash"));
|
|
928
|
+
} else t.val(ht("prstDash"), e);
|
|
927
929
|
}
|
|
928
930
|
},
|
|
929
931
|
{
|
|
@@ -935,14 +937,14 @@ var l = [
|
|
|
935
937
|
key: "lineJoin",
|
|
936
938
|
ns: "a",
|
|
937
939
|
read: (t) => {
|
|
938
|
-
const e =
|
|
939
|
-
if (e && !(T(t).length > 0) && (void 0 === e.lim ||
|
|
940
|
+
const e = xt(t, "miter" === t.name ? ["lim"] : []);
|
|
941
|
+
if (e && !(T(t).length > 0) && (void 0 === e.lim || wt.test(e.lim))) return {
|
|
940
942
|
join: t.name,
|
|
941
943
|
limit: void 0 !== e.lim ? Number(e.lim) / 1e5 : void 0
|
|
942
944
|
};
|
|
943
945
|
},
|
|
944
946
|
write: (t, e) => {
|
|
945
|
-
t.open(
|
|
947
|
+
t.open(ht(e.join), void 0 !== e.limit ? [["lim", String(Math.round(1e5 * e.limit))]] : null, !0);
|
|
946
948
|
},
|
|
947
949
|
get: (t) => t.lineJoin ? {
|
|
948
950
|
join: t.lineJoin,
|
|
@@ -952,42 +954,42 @@ var l = [
|
|
|
952
954
|
t.lineJoin = e.join, void 0 !== e.limit && (t.miterLimit = e.limit);
|
|
953
955
|
}
|
|
954
956
|
},
|
|
955
|
-
|
|
956
|
-
|
|
957
|
+
Ot("headEnd", "head"),
|
|
958
|
+
Ot("tailEnd", "tail")
|
|
957
959
|
]
|
|
958
|
-
}, Rt = (t) =>
|
|
959
|
-
|
|
960
|
+
}, Rt = (t) => mt(ut("ln", At, t, { ns: "a" })), Mt = { fields: [
|
|
961
|
+
Ft("fill"),
|
|
960
962
|
Rt("stroke"),
|
|
961
|
-
|
|
962
|
-
] },
|
|
963
|
+
$t
|
|
964
|
+
] }, Et = (t, e, n) => ({
|
|
963
965
|
tags: [t],
|
|
964
966
|
key: e,
|
|
965
967
|
ns: "a",
|
|
966
968
|
read: (t) => {
|
|
967
|
-
const e =
|
|
969
|
+
const e = xt(t, ["typeface"]);
|
|
968
970
|
if (!(void 0 === e?.typeface || T(t).length > 0)) return n && e.typeface === `+mn-${n}` ? a.ThemeFamily.Body : n && e.typeface === `+mj-${n}` ? a.ThemeFamily.Heading : e.typeface;
|
|
969
971
|
},
|
|
970
972
|
write: (e, r) => {
|
|
971
973
|
const s = n ? r === a.ThemeFamily.Body ? `+mn-${n}` : r === a.ThemeFamily.Heading ? `+mj-${n}` : r : r;
|
|
972
|
-
e.open(
|
|
974
|
+
e.open(ht(t), [["typeface", s]], !0);
|
|
973
975
|
}
|
|
974
|
-
}),
|
|
976
|
+
}), Bt = (t, e, n) => {
|
|
975
977
|
const r = Object.fromEntries(Object.entries(n).map(([t, e]) => [e, t]));
|
|
976
|
-
return
|
|
978
|
+
return ft(t, e, (t) => r[t], (t) => n[t] ?? t);
|
|
977
979
|
}, Ut = {
|
|
978
980
|
attributes: [
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
const e =
|
|
981
|
+
pt("lang", "str", "language"),
|
|
982
|
+
pt("altLang", "str", "alternateLanguage"),
|
|
983
|
+
pt("sz", "int", "size", 100),
|
|
984
|
+
ft("b", "weight", (t) => {
|
|
985
|
+
const e = Q(t);
|
|
984
986
|
return null === e ? void 0 : e ? 700 : 400;
|
|
985
|
-
}, (t) =>
|
|
986
|
-
|
|
987
|
-
const e =
|
|
987
|
+
}, (t) => Z(t >= 600)),
|
|
988
|
+
ft("i", "style", (t) => {
|
|
989
|
+
const e = Q(t);
|
|
988
990
|
return null === e ? void 0 : e ? "italic" : "normal";
|
|
989
|
-
}, (t) =>
|
|
990
|
-
|
|
991
|
+
}, (t) => Z("italic" === t)),
|
|
992
|
+
Bt("u", "underline", {
|
|
991
993
|
none: "none",
|
|
992
994
|
words: "words",
|
|
993
995
|
single: "sng",
|
|
@@ -1007,41 +1009,41 @@ var l = [
|
|
|
1007
1009
|
wavyHeavy: "wavyHeavy",
|
|
1008
1010
|
wavyDouble: "wavyDbl"
|
|
1009
1011
|
}),
|
|
1010
|
-
|
|
1012
|
+
Bt("strike", "strike", {
|
|
1011
1013
|
none: "noStrike",
|
|
1012
1014
|
single: "sngStrike",
|
|
1013
1015
|
double: "dblStrike"
|
|
1014
1016
|
}),
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
+
pt("kern", "int", "kerning", 100),
|
|
1018
|
+
Bt("cap", "capitals", {
|
|
1017
1019
|
none: "none",
|
|
1018
1020
|
small: "small",
|
|
1019
1021
|
all: "all"
|
|
1020
1022
|
}),
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1023
|
+
pt("spc", "int", "letterSpacing", 100),
|
|
1024
|
+
pt("normalizeH", "bool", "normalizeHeight"),
|
|
1025
|
+
pt("baseline", "int", "baseline", 1e3)
|
|
1024
1026
|
],
|
|
1025
1027
|
fields: [
|
|
1026
1028
|
Rt("outline"),
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1029
|
+
Ft("color"),
|
|
1030
|
+
$t,
|
|
1031
|
+
Et("latin", "latin", "lt"),
|
|
1032
|
+
Et("ea", "eastAsian", "ea"),
|
|
1033
|
+
Et("cs", "complexScript", "cs"),
|
|
1034
|
+
Et("sym", "symbol")
|
|
1033
1035
|
]
|
|
1034
|
-
},
|
|
1035
|
-
attributes: [
|
|
1036
|
-
fields: [
|
|
1037
|
-
},
|
|
1036
|
+
}, Wt = {
|
|
1037
|
+
attributes: [pt("algn", "str", "align"), pt("rtl", "bool", "rtl")],
|
|
1038
|
+
fields: [ut("defRPr", Ut, "defaultRun", { ns: "a" })]
|
|
1039
|
+
}, zt = { fields: [ut("rPr", Ut, "rPr", { ns: "a" }), {
|
|
1038
1040
|
tags: ["t"],
|
|
1039
1041
|
key: "text",
|
|
1040
1042
|
ns: "a",
|
|
1041
1043
|
read: (t) => {
|
|
1042
1044
|
if (T(t).length > 0) return;
|
|
1043
1045
|
let e = !1;
|
|
1044
|
-
for (const [n, r] of
|
|
1046
|
+
for (const [n, r] of J(t)) if ("xmlns" !== n && !n.startsWith("xmlns:")) {
|
|
1045
1047
|
if ("xml:space" !== n || "preserve" !== r) return;
|
|
1046
1048
|
e = !0;
|
|
1047
1049
|
}
|
|
@@ -1058,14 +1060,14 @@ var l = [
|
|
|
1058
1060
|
t.text = e.text, e.preserve && (t.preserveSpace = !0);
|
|
1059
1061
|
},
|
|
1060
1062
|
write: (t, e) => {
|
|
1061
|
-
const n =
|
|
1063
|
+
const n = ht("t"), r = e.preserve ? [["xml:space", "preserve"]] : null;
|
|
1062
1064
|
"" === e.text ? t.open(n, r, !0) : t.open(n, r).text(e.text).close(n);
|
|
1063
1065
|
}
|
|
1064
|
-
}] },
|
|
1065
|
-
attributes: [
|
|
1066
|
-
fields:
|
|
1067
|
-
},
|
|
1068
|
-
|
|
1066
|
+
}] }, Vt = {
|
|
1067
|
+
attributes: [pt("id", "str", "id"), pt("type", "str", "type")],
|
|
1068
|
+
fields: zt.fields
|
|
1069
|
+
}, Ht = { fields: [ut("rPr", Ut, "rPr", { ns: "a" })] }, Gt = { fields: [
|
|
1070
|
+
ut("pPr", Wt, "pPr", { ns: "a" }),
|
|
1069
1071
|
{
|
|
1070
1072
|
tags: [
|
|
1071
1073
|
"r",
|
|
@@ -1077,15 +1079,15 @@ var l = [
|
|
|
1077
1079
|
many: !0,
|
|
1078
1080
|
read: (t, e, n) => {
|
|
1079
1081
|
if ("br" === t.name) return {
|
|
1080
|
-
...
|
|
1082
|
+
...it(t, Ht, e, n),
|
|
1081
1083
|
text: "\n",
|
|
1082
1084
|
break: !0
|
|
1083
1085
|
};
|
|
1084
1086
|
if ("r" === t.name) {
|
|
1085
|
-
const r =
|
|
1087
|
+
const r = it(t, zt, e, n);
|
|
1086
1088
|
return void 0 === r.text ? void 0 : r;
|
|
1087
1089
|
}
|
|
1088
|
-
const { id: r, type: s, ...o } =
|
|
1090
|
+
const { id: r, type: s, ...o } = it(t, Vt, e, n);
|
|
1089
1091
|
return void 0 !== r ? (o.text ??= "", o.field = void 0 === s ? { id: r } : {
|
|
1090
1092
|
id: r,
|
|
1091
1093
|
type: s
|
|
@@ -1094,467 +1096,480 @@ var l = [
|
|
|
1094
1096
|
write: (t, e) => {
|
|
1095
1097
|
if (e.break) {
|
|
1096
1098
|
const { text: n, break: r, ...s } = e;
|
|
1097
|
-
|
|
1099
|
+
at(t, ht("br"), s, Ht);
|
|
1098
1100
|
} else if (e.field) {
|
|
1099
1101
|
const { field: n, ...r } = e;
|
|
1100
|
-
|
|
1102
|
+
at(t, ht("fld"), {
|
|
1101
1103
|
...r,
|
|
1102
1104
|
id: n.id,
|
|
1103
1105
|
type: n.type
|
|
1104
|
-
},
|
|
1105
|
-
} else
|
|
1106
|
+
}, Vt);
|
|
1107
|
+
} else at(t, ht("r"), e, zt);
|
|
1106
1108
|
}
|
|
1107
1109
|
},
|
|
1108
|
-
|
|
1109
|
-
] },
|
|
1110
|
-
|
|
1110
|
+
ut("endParaRPr", Ut, "endRun", { ns: "a" })
|
|
1111
|
+
] }, Jt = { fields: [
|
|
1112
|
+
ut("bodyPr", {
|
|
1111
1113
|
attributes: [
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1114
|
+
pt("rot", "int", "rotation", 6e4),
|
|
1115
|
+
pt("spcFirstLastPara", "bool", "spcFirstLastPara"),
|
|
1116
|
+
pt("vertOverflow", "str", "vertOverflow"),
|
|
1117
|
+
pt("horzOverflow", "str", "horzOverflow"),
|
|
1118
|
+
pt("vert", "str", "vert"),
|
|
1119
|
+
pt("wrap", "str", "wrap"),
|
|
1120
|
+
pt("lIns", "int", "lIns"),
|
|
1121
|
+
pt("tIns", "int", "tIns"),
|
|
1122
|
+
pt("rIns", "int", "rIns"),
|
|
1123
|
+
pt("bIns", "int", "bIns"),
|
|
1124
|
+
pt("anchor", "str", "anchor"),
|
|
1125
|
+
pt("anchorCtr", "bool", "anchorCtr")
|
|
1124
1126
|
],
|
|
1125
1127
|
fields: []
|
|
1126
1128
|
}, "bodyPr", { ns: "a" }),
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
+
ut("lstStyle", { fields: [] }, "lstStyle", { ns: "a" }),
|
|
1130
|
+
ut("p", Gt, "paragraphs", {
|
|
1129
1131
|
ns: "a",
|
|
1130
1132
|
many: !0
|
|
1131
1133
|
})
|
|
1132
|
-
] },
|
|
1133
|
-
attributes: [
|
|
1134
|
-
fields: [
|
|
1135
|
-
},
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
] },
|
|
1140
|
-
...
|
|
1141
|
-
read: (t, e, n) => e[
|
|
1142
|
-
},
|
|
1143
|
-
...
|
|
1144
|
-
read: (t, e, n) => e[
|
|
1145
|
-
}, ae = { fields: [
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1134
|
+
] }, _t = () => ut("spPr", Mt), Kt = () => ut("txPr", Jt), Xt = {
|
|
1135
|
+
attributes: [pt("idx", "int"), pt("formatCode", "str")],
|
|
1136
|
+
fields: [ct("v")]
|
|
1137
|
+
}, Yt = { fields: [
|
|
1138
|
+
ct("formatCode"),
|
|
1139
|
+
dt("ptCount", "int"),
|
|
1140
|
+
ut("pt", Xt, "points", { many: !0 })
|
|
1141
|
+
] }, Qt = { fields: [dt("ptCount", "int"), ut("pt", Xt, "points", { many: !0 })] }, Zt = { fields: [dt("ptCount", "int"), ut("lvl", { fields: [ut("pt", Xt, "points", { many: !0 })] }, "levels", { many: !0 })] }, te = { fields: [ct("f"), ut("numCache", Yt, "cache")] }, ee = { fields: [ct("f"), ut("strCache", Qt, "cache")] }, ne = { fields: [ct("f"), ut("multiLvlStrCache", Zt, "cache")] }, re = ut("datalabelsRange", { fields: [ct("f", "f", "c15"), ut("dlblRangeCache", Qt, "cache", { ns: "c15" })] }, "datalabelsRange", { ns: "c15" }), se = {
|
|
1142
|
+
...re,
|
|
1143
|
+
read: (t, e, n) => e[W.c15] === M ? re.read(t, e, n) : void 0
|
|
1144
|
+
}, oe = dt("showDataLabelsRange", "bool", "showDataLabelsRange", "c15"), ie = {
|
|
1145
|
+
...oe,
|
|
1146
|
+
read: (t, e, n) => e[W.c15] === M ? oe.read(t, e, n) : void 0
|
|
1147
|
+
}, ae = ut("dataDisplayOptions16", { fields: [dt("dispNaAsBlank", "bool", "dispNaAsBlank", "c16r3")] }, "dataDisplayOptions16", { ns: "c16r3" }), le = {
|
|
1148
|
+
...ae,
|
|
1149
|
+
key: "dispNaAsBlank",
|
|
1150
|
+
read: (t, e, n) => {
|
|
1151
|
+
if (e[W.c16r3] !== E) return;
|
|
1152
|
+
const r = ae.read(t, e, n);
|
|
1153
|
+
return void 0 === r.unknown ? r.dispNaAsBlank : void 0;
|
|
1154
|
+
},
|
|
1155
|
+
write: (t, e) => ae.write(t, { dispNaAsBlank: e })
|
|
1156
|
+
}, ce = { fields: [ut("ext", {
|
|
1157
|
+
attributes: [pt("uri", "str")],
|
|
1158
|
+
fields: [
|
|
1159
|
+
se,
|
|
1160
|
+
ie,
|
|
1161
|
+
le
|
|
1162
|
+
],
|
|
1163
|
+
declares: (t) => void 0 !== t.datalabelsRange || void 0 !== t.showDataLabelsRange ? [[`xmlns:${W.c15}`, M]] : void 0 !== t.dispNaAsBlank ? [[`xmlns:${W.c16r3}`, E]] : []
|
|
1164
|
+
}, "extensions", { many: !0 })] }, ue = { fields: [
|
|
1165
|
+
ut("multiLvlStrRef", ne),
|
|
1166
|
+
ut("numRef", te),
|
|
1167
|
+
ut("numLit", Yt),
|
|
1168
|
+
ut("strRef", ee),
|
|
1169
|
+
ut("strLit", Qt)
|
|
1170
|
+
] }, pe = { fields: [ut("strRef", ee), ct("v")] }, fe = { fields: [ut("strRef", ee), ut("rich", Jt)] }, me = {
|
|
1171
|
+
attributes: [pt("formatCode", "str"), pt("sourceLinked", "bool")],
|
|
1157
1172
|
fields: []
|
|
1158
|
-
},
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
] })] },
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
+
}, be = { fields: [ut("manualLayout", { fields: [
|
|
1174
|
+
dt("layoutTarget", "str"),
|
|
1175
|
+
dt("xMode", "str"),
|
|
1176
|
+
dt("yMode", "str"),
|
|
1177
|
+
dt("wMode", "str"),
|
|
1178
|
+
dt("hMode", "str"),
|
|
1179
|
+
dt("x", "num"),
|
|
1180
|
+
dt("y", "num"),
|
|
1181
|
+
dt("w", "num"),
|
|
1182
|
+
dt("h", "num")
|
|
1183
|
+
] })] }, ge = { fields: [
|
|
1184
|
+
ut("tx", fe),
|
|
1185
|
+
ut("layout", be),
|
|
1186
|
+
dt("overlay", "bool"),
|
|
1187
|
+
_t(),
|
|
1188
|
+
Kt()
|
|
1189
|
+
] }, ye = { fields: [_t()] }, ve = { fields: [
|
|
1190
|
+
dt("symbol", "str"),
|
|
1191
|
+
dt("size", "int"),
|
|
1173
1192
|
_t()
|
|
1174
|
-
] },
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
lt("explosion", "int"),
|
|
1184
|
-
Jt()
|
|
1185
|
-
] }, ye = () => [
|
|
1186
|
-
ct("numFmt", ue),
|
|
1187
|
-
Jt(),
|
|
1193
|
+
] }, xe = { fields: [
|
|
1194
|
+
dt("idx", "int"),
|
|
1195
|
+
dt("invertIfNegative", "bool"),
|
|
1196
|
+
ut("marker", ve),
|
|
1197
|
+
dt("bubble3D", "bool"),
|
|
1198
|
+
dt("explosion", "int"),
|
|
1199
|
+
_t()
|
|
1200
|
+
] }, we = () => [
|
|
1201
|
+
ut("numFmt", me),
|
|
1188
1202
|
_t(),
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
dt("
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1203
|
+
Kt(),
|
|
1204
|
+
dt("dLblPos", "str"),
|
|
1205
|
+
dt("showLegendKey", "bool"),
|
|
1206
|
+
dt("showVal", "bool"),
|
|
1207
|
+
dt("showCatName", "bool"),
|
|
1208
|
+
dt("showSerName", "bool"),
|
|
1209
|
+
dt("showPercent", "bool"),
|
|
1210
|
+
dt("showBubbleSize", "bool"),
|
|
1211
|
+
ct("separator")
|
|
1212
|
+
], Se = { fields: [
|
|
1213
|
+
ut("dLbl", { fields: [
|
|
1214
|
+
dt("idx", "int"),
|
|
1215
|
+
dt("delete", "bool"),
|
|
1216
|
+
ut("layout", be),
|
|
1217
|
+
ut("tx", fe),
|
|
1218
|
+
...we(),
|
|
1219
|
+
ut("extLst", ce)
|
|
1205
1220
|
] }, "labels", { many: !0 }),
|
|
1206
|
-
|
|
1207
|
-
...
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
] }, we = { fields: [
|
|
1212
|
-
ct("layout", fe),
|
|
1213
|
-
ct("tx", ce),
|
|
1214
|
-
ct("numFmt", ue),
|
|
1215
|
-
Jt(),
|
|
1216
|
-
_t()
|
|
1217
|
-
] }, ke = { fields: [
|
|
1218
|
-
dt("name"),
|
|
1219
|
-
Jt(),
|
|
1220
|
-
lt("trendlineType", "str"),
|
|
1221
|
-
lt("order", "int"),
|
|
1222
|
-
lt("period", "int"),
|
|
1223
|
-
lt("forward", "num"),
|
|
1224
|
-
lt("backward", "num"),
|
|
1225
|
-
lt("intercept", "num"),
|
|
1226
|
-
lt("dispRSqr", "bool"),
|
|
1227
|
-
lt("dispEq", "bool"),
|
|
1228
|
-
ct("trendlineLbl", we)
|
|
1229
|
-
] }, Se = { fields: [
|
|
1230
|
-
lt("errDir", "str"),
|
|
1231
|
-
lt("errBarType", "str"),
|
|
1232
|
-
lt("errValType", "str"),
|
|
1233
|
-
lt("noEndCap", "bool"),
|
|
1234
|
-
ct("plus", le),
|
|
1235
|
-
ct("minus", le),
|
|
1236
|
-
lt("val", "num"),
|
|
1237
|
-
Jt(),
|
|
1238
|
-
ct("extLst", ae)
|
|
1221
|
+
dt("delete", "bool"),
|
|
1222
|
+
...we(),
|
|
1223
|
+
dt("showLeaderLines", "bool"),
|
|
1224
|
+
ut("leaderLines", ye),
|
|
1225
|
+
ut("extLst", ce)
|
|
1239
1226
|
] }, Le = { fields: [
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
ct("
|
|
1247
|
-
|
|
1248
|
-
|
|
1227
|
+
ut("layout", be),
|
|
1228
|
+
ut("tx", fe),
|
|
1229
|
+
ut("numFmt", me),
|
|
1230
|
+
_t(),
|
|
1231
|
+
Kt()
|
|
1232
|
+
] }, Pe = { fields: [
|
|
1233
|
+
ct("name"),
|
|
1234
|
+
_t(),
|
|
1235
|
+
dt("trendlineType", "str"),
|
|
1236
|
+
dt("order", "int"),
|
|
1237
|
+
dt("period", "int"),
|
|
1238
|
+
dt("forward", "num"),
|
|
1239
|
+
dt("backward", "num"),
|
|
1240
|
+
dt("intercept", "num"),
|
|
1241
|
+
dt("dispRSqr", "bool"),
|
|
1242
|
+
dt("dispEq", "bool"),
|
|
1243
|
+
ut("trendlineLbl", Le)
|
|
1244
|
+
] }, Ce = { fields: [
|
|
1245
|
+
dt("errDir", "str"),
|
|
1246
|
+
dt("errBarType", "str"),
|
|
1247
|
+
dt("errValType", "str"),
|
|
1248
|
+
dt("noEndCap", "bool"),
|
|
1249
|
+
ut("plus", ue),
|
|
1250
|
+
ut("minus", ue),
|
|
1251
|
+
dt("val", "num"),
|
|
1252
|
+
_t(),
|
|
1253
|
+
ut("extLst", ce)
|
|
1254
|
+
] }, Ie = { fields: [
|
|
1255
|
+
dt("gapWidth", "int"),
|
|
1256
|
+
ut("upBars", ye),
|
|
1257
|
+
ut("downBars", ye)
|
|
1258
|
+
] }, Ne = () => [
|
|
1259
|
+
dt("idx", "int"),
|
|
1260
|
+
dt("order", "int"),
|
|
1261
|
+
ut("tx", pe),
|
|
1262
|
+
_t()
|
|
1263
|
+
], De = () => ut("dPt", xe, "points", { many: !0 }), Te = () => ut("dLbls", Se), Fe = () => ut("trendline", Pe, "trendlines", { many: !0 }), $e = () => ut("errBars", Ce, "errBars", { many: !0 }), je = (t) => ut(t, ue), Oe = () => ut("extLst", ce), Ae = {
|
|
1249
1264
|
bar: { fields: [
|
|
1250
|
-
...
|
|
1251
|
-
|
|
1252
|
-
Ce(),
|
|
1253
|
-
Ie(),
|
|
1265
|
+
...Ne(),
|
|
1266
|
+
dt("invertIfNegative", "bool"),
|
|
1254
1267
|
De(),
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1268
|
+
Te(),
|
|
1269
|
+
Fe(),
|
|
1270
|
+
$e(),
|
|
1271
|
+
je("cat"),
|
|
1272
|
+
je("val"),
|
|
1273
|
+
dt("shape", "str"),
|
|
1274
|
+
Oe()
|
|
1260
1275
|
] },
|
|
1261
1276
|
line: { fields: [
|
|
1262
|
-
...
|
|
1263
|
-
|
|
1264
|
-
Ce(),
|
|
1265
|
-
Ie(),
|
|
1277
|
+
...Ne(),
|
|
1278
|
+
ut("marker", ve),
|
|
1266
1279
|
De(),
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1280
|
+
Te(),
|
|
1281
|
+
Fe(),
|
|
1282
|
+
$e(),
|
|
1283
|
+
je("cat"),
|
|
1284
|
+
je("val"),
|
|
1285
|
+
dt("smooth", "bool"),
|
|
1286
|
+
Oe()
|
|
1272
1287
|
] },
|
|
1273
1288
|
area: { fields: [
|
|
1274
|
-
...
|
|
1275
|
-
Ce(),
|
|
1276
|
-
Ie(),
|
|
1289
|
+
...Ne(),
|
|
1277
1290
|
De(),
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1291
|
+
Te(),
|
|
1292
|
+
Fe(),
|
|
1293
|
+
$e(),
|
|
1294
|
+
je("cat"),
|
|
1295
|
+
je("val"),
|
|
1296
|
+
Oe()
|
|
1282
1297
|
] },
|
|
1283
1298
|
pie: { fields: [
|
|
1284
|
-
...
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1299
|
+
...Ne(),
|
|
1300
|
+
dt("explosion", "int"),
|
|
1301
|
+
De(),
|
|
1302
|
+
Te(),
|
|
1303
|
+
je("cat"),
|
|
1304
|
+
je("val"),
|
|
1305
|
+
Oe()
|
|
1291
1306
|
] },
|
|
1292
1307
|
scatter: { fields: [
|
|
1293
|
-
...
|
|
1294
|
-
|
|
1295
|
-
Ce(),
|
|
1296
|
-
Ie(),
|
|
1308
|
+
...Ne(),
|
|
1309
|
+
ut("marker", ve),
|
|
1297
1310
|
De(),
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1311
|
+
Te(),
|
|
1312
|
+
Fe(),
|
|
1313
|
+
$e(),
|
|
1314
|
+
je("xVal"),
|
|
1315
|
+
je("yVal"),
|
|
1316
|
+
dt("smooth", "bool"),
|
|
1317
|
+
Oe()
|
|
1303
1318
|
] },
|
|
1304
1319
|
bubble: { fields: [
|
|
1305
|
-
...
|
|
1306
|
-
|
|
1307
|
-
Ce(),
|
|
1308
|
-
Ie(),
|
|
1320
|
+
...Ne(),
|
|
1321
|
+
dt("invertIfNegative", "bool"),
|
|
1309
1322
|
De(),
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1323
|
+
Te(),
|
|
1324
|
+
Fe(),
|
|
1325
|
+
$e(),
|
|
1326
|
+
je("xVal"),
|
|
1327
|
+
je("yVal"),
|
|
1328
|
+
je("bubbleSize"),
|
|
1329
|
+
dt("bubble3D", "bool"),
|
|
1330
|
+
Oe()
|
|
1316
1331
|
] },
|
|
1317
1332
|
radar: { fields: [
|
|
1318
|
-
...
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1333
|
+
...Ne(),
|
|
1334
|
+
ut("marker", ve),
|
|
1335
|
+
De(),
|
|
1336
|
+
Te(),
|
|
1337
|
+
je("cat"),
|
|
1338
|
+
je("val"),
|
|
1339
|
+
Oe()
|
|
1325
1340
|
] },
|
|
1326
1341
|
surface: { fields: [
|
|
1327
|
-
...
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1342
|
+
...Ne(),
|
|
1343
|
+
je("cat"),
|
|
1344
|
+
je("val"),
|
|
1345
|
+
Oe()
|
|
1331
1346
|
] }
|
|
1332
|
-
},
|
|
1333
|
-
...
|
|
1347
|
+
}, Re = (t) => ut("ser", Ae[t], "series", { many: !0 }), Me = () => ({
|
|
1348
|
+
...dt("axId", "int", "axIds"),
|
|
1334
1349
|
many: !0
|
|
1335
|
-
}),
|
|
1350
|
+
}), Ee = (t, e) => ut(t, ye, t, { many: e }), Be = {
|
|
1336
1351
|
tags: ["custSplit"],
|
|
1337
1352
|
key: "custSplit",
|
|
1338
1353
|
ns: "c",
|
|
1339
1354
|
read: (t, e, n) => {
|
|
1340
|
-
const r =
|
|
1341
|
-
...
|
|
1355
|
+
const r = it(t, { fields: [{
|
|
1356
|
+
...dt("secondPiePt", "int", "points"),
|
|
1342
1357
|
many: !0
|
|
1343
1358
|
}] }, e, n);
|
|
1344
1359
|
return r.unknown ? void 0 : r.points ?? [];
|
|
1345
1360
|
},
|
|
1346
1361
|
write: (t, e) => {
|
|
1347
|
-
|
|
1348
|
-
...
|
|
1362
|
+
at(t, "c:custSplit", { points: e }, { fields: [{
|
|
1363
|
+
...dt("secondPiePt", "int", "points"),
|
|
1349
1364
|
many: !0
|
|
1350
1365
|
}] });
|
|
1351
1366
|
}
|
|
1352
|
-
},
|
|
1367
|
+
}, Ue = { fields: [dt("idx", "int"), _t()] }, We = {
|
|
1353
1368
|
tags: ["bandFmts"],
|
|
1354
1369
|
key: "bandFmts",
|
|
1355
1370
|
ns: "c",
|
|
1356
1371
|
read: (t, e, n) => {
|
|
1357
|
-
const r =
|
|
1372
|
+
const r = it(t, { fields: [ut("bandFmt", Ue, "formats", { many: !0 })] }, e, n);
|
|
1358
1373
|
return r.unknown ? void 0 : r.formats ?? [];
|
|
1359
1374
|
},
|
|
1360
1375
|
write: (t, e) => {
|
|
1361
|
-
|
|
1376
|
+
at(t, "c:bandFmts", { formats: e }, { fields: [ut("bandFmt", Ue, "formats", { many: !0 })] });
|
|
1362
1377
|
}
|
|
1363
|
-
},
|
|
1378
|
+
}, ze = {
|
|
1364
1379
|
areaChart: {
|
|
1365
1380
|
type: "area",
|
|
1366
1381
|
codec: { fields: [
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1382
|
+
dt("grouping", "str"),
|
|
1383
|
+
dt("varyColors", "bool"),
|
|
1384
|
+
Re("area"),
|
|
1385
|
+
Te(),
|
|
1386
|
+
Ee("dropLines"),
|
|
1387
|
+
Me()
|
|
1373
1388
|
] }
|
|
1374
1389
|
},
|
|
1375
1390
|
area3DChart: {
|
|
1376
1391
|
type: "area",
|
|
1377
1392
|
is3D: !0,
|
|
1378
1393
|
codec: { fields: [
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1394
|
+
dt("grouping", "str"),
|
|
1395
|
+
dt("varyColors", "bool"),
|
|
1396
|
+
Re("area"),
|
|
1397
|
+
Te(),
|
|
1398
|
+
Ee("dropLines"),
|
|
1399
|
+
dt("gapDepth", "int"),
|
|
1400
|
+
Me()
|
|
1386
1401
|
] }
|
|
1387
1402
|
},
|
|
1388
1403
|
lineChart: {
|
|
1389
1404
|
type: "line",
|
|
1390
1405
|
codec: { fields: [
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1406
|
+
dt("grouping", "str"),
|
|
1407
|
+
dt("varyColors", "bool"),
|
|
1408
|
+
Re("line"),
|
|
1409
|
+
Te(),
|
|
1410
|
+
Ee("dropLines"),
|
|
1411
|
+
Ee("hiLowLines"),
|
|
1412
|
+
ut("upDownBars", Ie),
|
|
1413
|
+
dt("marker", "bool"),
|
|
1414
|
+
dt("smooth", "bool"),
|
|
1415
|
+
Me()
|
|
1401
1416
|
] }
|
|
1402
1417
|
},
|
|
1403
1418
|
line3DChart: {
|
|
1404
1419
|
type: "line",
|
|
1405
1420
|
is3D: !0,
|
|
1406
1421
|
codec: { fields: [
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1422
|
+
dt("grouping", "str"),
|
|
1423
|
+
dt("varyColors", "bool"),
|
|
1424
|
+
Re("line"),
|
|
1425
|
+
Te(),
|
|
1426
|
+
Ee("dropLines"),
|
|
1427
|
+
dt("gapDepth", "int"),
|
|
1428
|
+
Me()
|
|
1414
1429
|
] }
|
|
1415
1430
|
},
|
|
1416
1431
|
stockChart: {
|
|
1417
1432
|
type: "stock",
|
|
1418
1433
|
codec: { fields: [
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1434
|
+
Re("line"),
|
|
1435
|
+
Te(),
|
|
1436
|
+
Ee("dropLines"),
|
|
1437
|
+
Ee("hiLowLines"),
|
|
1438
|
+
ut("upDownBars", Ie),
|
|
1439
|
+
Me()
|
|
1425
1440
|
] }
|
|
1426
1441
|
},
|
|
1427
1442
|
radarChart: {
|
|
1428
1443
|
type: "radar",
|
|
1429
1444
|
codec: { fields: [
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1445
|
+
dt("radarStyle", "str"),
|
|
1446
|
+
dt("varyColors", "bool"),
|
|
1447
|
+
Re("radar"),
|
|
1448
|
+
Te(),
|
|
1449
|
+
Me()
|
|
1435
1450
|
] }
|
|
1436
1451
|
},
|
|
1437
1452
|
scatterChart: {
|
|
1438
1453
|
type: "scatter",
|
|
1439
1454
|
codec: { fields: [
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1455
|
+
dt("scatterStyle", "str"),
|
|
1456
|
+
dt("varyColors", "bool"),
|
|
1457
|
+
Re("scatter"),
|
|
1458
|
+
Te(),
|
|
1459
|
+
Me()
|
|
1445
1460
|
] }
|
|
1446
1461
|
},
|
|
1447
1462
|
pieChart: {
|
|
1448
1463
|
type: "pie",
|
|
1449
1464
|
codec: { fields: [
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1465
|
+
dt("varyColors", "bool"),
|
|
1466
|
+
Re("pie"),
|
|
1467
|
+
Te(),
|
|
1468
|
+
dt("firstSliceAng", "int")
|
|
1454
1469
|
] }
|
|
1455
1470
|
},
|
|
1456
1471
|
pie3DChart: {
|
|
1457
1472
|
type: "pie",
|
|
1458
1473
|
is3D: !0,
|
|
1459
1474
|
codec: { fields: [
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1475
|
+
dt("varyColors", "bool"),
|
|
1476
|
+
Re("pie"),
|
|
1477
|
+
Te()
|
|
1463
1478
|
] }
|
|
1464
1479
|
},
|
|
1465
1480
|
doughnutChart: {
|
|
1466
1481
|
type: "doughnut",
|
|
1467
1482
|
codec: { fields: [
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1483
|
+
dt("varyColors", "bool"),
|
|
1484
|
+
Re("pie"),
|
|
1485
|
+
Te(),
|
|
1486
|
+
dt("firstSliceAng", "int"),
|
|
1487
|
+
dt("holeSize", "int")
|
|
1473
1488
|
] }
|
|
1474
1489
|
},
|
|
1475
1490
|
barChart: {
|
|
1476
1491
|
type: "bar",
|
|
1477
1492
|
codec: { fields: [
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1493
|
+
dt("barDir", "str"),
|
|
1494
|
+
dt("grouping", "str"),
|
|
1495
|
+
dt("varyColors", "bool"),
|
|
1496
|
+
Re("bar"),
|
|
1497
|
+
Te(),
|
|
1498
|
+
dt("gapWidth", "int"),
|
|
1499
|
+
dt("overlap", "int"),
|
|
1500
|
+
Ee("serLines", !0),
|
|
1501
|
+
Me()
|
|
1487
1502
|
] }
|
|
1488
1503
|
},
|
|
1489
1504
|
bar3DChart: {
|
|
1490
1505
|
type: "bar",
|
|
1491
1506
|
is3D: !0,
|
|
1492
1507
|
codec: { fields: [
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1508
|
+
dt("barDir", "str"),
|
|
1509
|
+
dt("grouping", "str"),
|
|
1510
|
+
dt("varyColors", "bool"),
|
|
1511
|
+
Re("bar"),
|
|
1512
|
+
Te(),
|
|
1513
|
+
dt("gapWidth", "int"),
|
|
1514
|
+
dt("gapDepth", "int"),
|
|
1515
|
+
dt("shape", "str"),
|
|
1516
|
+
Me()
|
|
1502
1517
|
] }
|
|
1503
1518
|
},
|
|
1504
1519
|
ofPieChart: {
|
|
1505
1520
|
type: "ofPie",
|
|
1506
1521
|
codec: { fields: [
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1522
|
+
dt("ofPieType", "str"),
|
|
1523
|
+
dt("varyColors", "bool"),
|
|
1524
|
+
Re("pie"),
|
|
1525
|
+
Te(),
|
|
1526
|
+
dt("gapWidth", "int"),
|
|
1527
|
+
dt("splitType", "str"),
|
|
1528
|
+
dt("splitPos", "num"),
|
|
1529
|
+
Be,
|
|
1530
|
+
dt("secondPieSize", "int"),
|
|
1531
|
+
Ee("serLines", !0)
|
|
1517
1532
|
] }
|
|
1518
1533
|
},
|
|
1519
1534
|
surfaceChart: {
|
|
1520
1535
|
type: "surface",
|
|
1521
1536
|
codec: { fields: [
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1537
|
+
dt("wireframe", "bool"),
|
|
1538
|
+
Re("surface"),
|
|
1539
|
+
We,
|
|
1540
|
+
Me()
|
|
1526
1541
|
] }
|
|
1527
1542
|
},
|
|
1528
1543
|
surface3DChart: {
|
|
1529
1544
|
type: "surface",
|
|
1530
1545
|
is3D: !0,
|
|
1531
1546
|
codec: { fields: [
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1547
|
+
dt("wireframe", "bool"),
|
|
1548
|
+
Re("surface"),
|
|
1549
|
+
We,
|
|
1550
|
+
Me()
|
|
1536
1551
|
] }
|
|
1537
1552
|
},
|
|
1538
1553
|
bubbleChart: {
|
|
1539
1554
|
type: "bubble",
|
|
1540
1555
|
codec: { fields: [
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1556
|
+
dt("varyColors", "bool"),
|
|
1557
|
+
Re("bubble"),
|
|
1558
|
+
Te(),
|
|
1559
|
+
dt("bubble3D", "bool"),
|
|
1560
|
+
dt("bubbleScale", "int"),
|
|
1561
|
+
dt("showNegBubbles", "bool"),
|
|
1562
|
+
dt("sizeRepresents", "str"),
|
|
1563
|
+
Me()
|
|
1549
1564
|
] }
|
|
1550
1565
|
}
|
|
1551
|
-
},
|
|
1552
|
-
tags: Object.keys(
|
|
1566
|
+
}, Ve = {
|
|
1567
|
+
tags: Object.keys(ze),
|
|
1553
1568
|
key: "groups",
|
|
1554
1569
|
ns: "c",
|
|
1555
1570
|
many: !0,
|
|
1556
1571
|
read: (t, e, n) => {
|
|
1557
|
-
const { type: r, is3D: s, codec: o } =
|
|
1572
|
+
const { type: r, is3D: s, codec: o } = ze[t.name], i = it(t, o, e, n);
|
|
1558
1573
|
return i.series ??= [], i.axIds ??= [], s ? {
|
|
1559
1574
|
type: r,
|
|
1560
1575
|
is3D: s,
|
|
@@ -1565,16 +1580,16 @@ var l = [
|
|
|
1565
1580
|
};
|
|
1566
1581
|
},
|
|
1567
1582
|
write: (t, e) => {
|
|
1568
|
-
const n = ((t) => `${t.type}${t.is3D ? "3D" : ""}Chart`)(e), { type: r, is3D: s, ...o } =
|
|
1569
|
-
|
|
1583
|
+
const n = ((t) => `${t.type}${t.is3D ? "3D" : ""}Chart`)(e), { type: r, is3D: s, ...o } = Je(e);
|
|
1584
|
+
at(t, `c:${n}`, o, ze[n].codec);
|
|
1570
1585
|
}
|
|
1571
|
-
},
|
|
1586
|
+
}, He = [
|
|
1572
1587
|
"ctr",
|
|
1573
1588
|
"l",
|
|
1574
1589
|
"r",
|
|
1575
1590
|
"t",
|
|
1576
1591
|
"b"
|
|
1577
|
-
],
|
|
1592
|
+
], Ge = (t) => {
|
|
1578
1593
|
switch (t.type) {
|
|
1579
1594
|
case "bar": return t.is3D ? [] : "stacked" === t.grouping || "percentStacked" === t.grouping ? [
|
|
1580
1595
|
"ctr",
|
|
@@ -1586,10 +1601,10 @@ var l = [
|
|
|
1586
1601
|
"inBase",
|
|
1587
1602
|
"outEnd"
|
|
1588
1603
|
];
|
|
1589
|
-
case "line": return t.is3D ? [] :
|
|
1604
|
+
case "line": return t.is3D ? [] : He;
|
|
1590
1605
|
case "stock":
|
|
1591
1606
|
case "scatter":
|
|
1592
|
-
case "bubble": return
|
|
1607
|
+
case "bubble": return He;
|
|
1593
1608
|
case "pie":
|
|
1594
1609
|
case "ofPie": return [
|
|
1595
1610
|
"ctr",
|
|
@@ -1599,9 +1614,9 @@ var l = [
|
|
|
1599
1614
|
];
|
|
1600
1615
|
default: return [];
|
|
1601
1616
|
}
|
|
1602
|
-
},
|
|
1603
|
-
const e =
|
|
1604
|
-
if (!
|
|
1617
|
+
}, qe = (t, e) => void 0 !== e?.dLblPos && !t.includes(e.dLblPos), Je = (t) => {
|
|
1618
|
+
const e = Ge(t), n = (t) => {
|
|
1619
|
+
if (!qe(e, t)) return t;
|
|
1605
1620
|
const { dLblPos: n, ...r } = t;
|
|
1606
1621
|
return r;
|
|
1607
1622
|
}, r = (t) => t.labels ? {
|
|
@@ -1616,170 +1631,171 @@ var l = [
|
|
|
1616
1631
|
dLbls: r(t.dLbls)
|
|
1617
1632
|
} : t)
|
|
1618
1633
|
};
|
|
1619
|
-
},
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
] },
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
Jt(),
|
|
1628
|
-
_t()
|
|
1629
|
-
] }, Je = { fields: [
|
|
1630
|
-
lt("custUnit", "num"),
|
|
1631
|
-
lt("builtInUnit", "str"),
|
|
1632
|
-
ct("dispUnitsLbl", qe)
|
|
1633
|
-
] }, _e = () => [
|
|
1634
|
-
lt("axId", "int"),
|
|
1635
|
-
ct("scaling", Ge),
|
|
1636
|
-
lt("delete", "bool"),
|
|
1637
|
-
lt("axPos", "str"),
|
|
1638
|
-
Re("majorGridlines"),
|
|
1639
|
-
Re("minorGridlines"),
|
|
1640
|
-
ct("title", me),
|
|
1641
|
-
ct("numFmt", ue),
|
|
1642
|
-
lt("majorTickMark", "str"),
|
|
1643
|
-
lt("minorTickMark", "str"),
|
|
1644
|
-
lt("tickLblPos", "str"),
|
|
1645
|
-
Jt(),
|
|
1634
|
+
}, _e = { fields: [
|
|
1635
|
+
dt("logBase", "num"),
|
|
1636
|
+
dt("orientation", "str"),
|
|
1637
|
+
dt("max", "num"),
|
|
1638
|
+
dt("min", "num")
|
|
1639
|
+
] }, Ke = { fields: [
|
|
1640
|
+
ut("layout", be),
|
|
1641
|
+
ut("tx", fe),
|
|
1646
1642
|
_t(),
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1643
|
+
Kt()
|
|
1644
|
+
] }, Xe = { fields: [
|
|
1645
|
+
dt("custUnit", "num"),
|
|
1646
|
+
dt("builtInUnit", "str"),
|
|
1647
|
+
ut("dispUnitsLbl", Ke)
|
|
1648
|
+
] }, Ye = () => [
|
|
1649
|
+
dt("axId", "int"),
|
|
1650
|
+
ut("scaling", _e),
|
|
1651
|
+
dt("delete", "bool"),
|
|
1652
|
+
dt("axPos", "str"),
|
|
1653
|
+
Ee("majorGridlines"),
|
|
1654
|
+
Ee("minorGridlines"),
|
|
1655
|
+
ut("title", ge),
|
|
1656
|
+
ut("numFmt", me),
|
|
1657
|
+
dt("majorTickMark", "str"),
|
|
1658
|
+
dt("minorTickMark", "str"),
|
|
1659
|
+
dt("tickLblPos", "str"),
|
|
1660
|
+
_t(),
|
|
1661
|
+
Kt(),
|
|
1662
|
+
dt("crossAx", "int"),
|
|
1663
|
+
dt("crosses", "str"),
|
|
1664
|
+
dt("crossesAt", "num")
|
|
1665
|
+
], Qe = {
|
|
1651
1666
|
valAx: {
|
|
1652
1667
|
type: "val",
|
|
1653
1668
|
codec: { fields: [
|
|
1654
|
-
...
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1669
|
+
...Ye(),
|
|
1670
|
+
dt("crossBetween", "str"),
|
|
1671
|
+
dt("majorUnit", "num"),
|
|
1672
|
+
dt("minorUnit", "num"),
|
|
1673
|
+
ut("dispUnits", Xe)
|
|
1659
1674
|
] }
|
|
1660
1675
|
},
|
|
1661
1676
|
catAx: {
|
|
1662
1677
|
type: "cat",
|
|
1663
1678
|
codec: { fields: [
|
|
1664
|
-
...
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1679
|
+
...Ye(),
|
|
1680
|
+
dt("auto", "bool"),
|
|
1681
|
+
dt("lblAlgn", "str"),
|
|
1682
|
+
dt("lblOffset", "int"),
|
|
1683
|
+
dt("tickLblSkip", "int"),
|
|
1684
|
+
dt("tickMarkSkip", "int"),
|
|
1685
|
+
dt("noMultiLvlLbl", "bool")
|
|
1671
1686
|
] }
|
|
1672
1687
|
},
|
|
1673
1688
|
dateAx: {
|
|
1674
1689
|
type: "date",
|
|
1675
1690
|
codec: { fields: [
|
|
1676
|
-
...
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1691
|
+
...Ye(),
|
|
1692
|
+
dt("auto", "bool"),
|
|
1693
|
+
dt("lblOffset", "int"),
|
|
1694
|
+
dt("baseTimeUnit", "str"),
|
|
1695
|
+
dt("majorUnit", "num"),
|
|
1696
|
+
dt("majorTimeUnit", "str"),
|
|
1697
|
+
dt("minorUnit", "num"),
|
|
1698
|
+
dt("minorTimeUnit", "str")
|
|
1684
1699
|
] }
|
|
1685
1700
|
},
|
|
1686
1701
|
serAx: {
|
|
1687
1702
|
type: "ser",
|
|
1688
1703
|
codec: { fields: [
|
|
1689
|
-
...
|
|
1690
|
-
|
|
1691
|
-
|
|
1704
|
+
...Ye(),
|
|
1705
|
+
dt("tickLblSkip", "int"),
|
|
1706
|
+
dt("tickMarkSkip", "int")
|
|
1692
1707
|
] }
|
|
1693
1708
|
}
|
|
1694
|
-
},
|
|
1695
|
-
tags: Object.keys(
|
|
1709
|
+
}, Ze = {
|
|
1710
|
+
tags: Object.keys(Qe),
|
|
1696
1711
|
key: "axes",
|
|
1697
1712
|
ns: "c",
|
|
1698
1713
|
many: !0,
|
|
1699
1714
|
read: (t, e, n) => ({
|
|
1700
|
-
type:
|
|
1701
|
-
...
|
|
1715
|
+
type: Qe[t.name].type,
|
|
1716
|
+
...it(t, Qe[t.name].codec, e, n)
|
|
1702
1717
|
}),
|
|
1703
1718
|
write: (t, e) => {
|
|
1704
1719
|
const { type: n, ...r } = e, s = `${n}Ax`;
|
|
1705
|
-
|
|
1720
|
+
at(t, `c:${s}`, r, Qe[s].codec);
|
|
1706
1721
|
}
|
|
1707
|
-
},
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
] },
|
|
1722
|
+
}, tn = { fields: [
|
|
1723
|
+
dt("showHorzBorder", "bool"),
|
|
1724
|
+
dt("showVertBorder", "bool"),
|
|
1725
|
+
dt("showOutline", "bool"),
|
|
1726
|
+
dt("showKeys", "bool"),
|
|
1727
|
+
_t(),
|
|
1728
|
+
Kt()
|
|
1729
|
+
] }, en = {
|
|
1715
1730
|
fields: [
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1731
|
+
ut("layout", be),
|
|
1732
|
+
Ve,
|
|
1733
|
+
Ze,
|
|
1734
|
+
ut("dTable", tn),
|
|
1735
|
+
_t()
|
|
1721
1736
|
],
|
|
1722
1737
|
afterRead: (t) => {
|
|
1723
1738
|
t.groups ??= [], t.axes ??= [];
|
|
1724
1739
|
}
|
|
1725
|
-
},
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
] },
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
] },
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
] },
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
_t()
|
|
1764
|
-
|
|
1765
|
-
|
|
1740
|
+
}, nn = { fields: [
|
|
1741
|
+
dt("rotX", "int"),
|
|
1742
|
+
dt("hPercent", "int"),
|
|
1743
|
+
dt("rotY", "int"),
|
|
1744
|
+
dt("depthPercent", "int"),
|
|
1745
|
+
dt("rAngAx", "bool"),
|
|
1746
|
+
dt("perspective", "int")
|
|
1747
|
+
] }, rn = { fields: [dt("thickness", "int"), _t()] }, sn = { fields: [
|
|
1748
|
+
dt("idx", "int"),
|
|
1749
|
+
dt("delete", "bool"),
|
|
1750
|
+
Kt()
|
|
1751
|
+
] }, on = { fields: [
|
|
1752
|
+
dt("legendPos", "str"),
|
|
1753
|
+
ut("legendEntry", sn, "entries", { many: !0 }),
|
|
1754
|
+
ut("layout", be),
|
|
1755
|
+
dt("overlay", "bool"),
|
|
1756
|
+
_t(),
|
|
1757
|
+
Kt()
|
|
1758
|
+
] }, an = { fields: [
|
|
1759
|
+
ut("title", ge),
|
|
1760
|
+
dt("autoTitleDeleted", "bool"),
|
|
1761
|
+
ut("view3D", nn),
|
|
1762
|
+
ut("floor", rn),
|
|
1763
|
+
ut("sideWall", rn),
|
|
1764
|
+
ut("backWall", rn),
|
|
1765
|
+
ut("plotArea", en),
|
|
1766
|
+
ut("legend", on),
|
|
1767
|
+
dt("plotVisOnly", "bool"),
|
|
1768
|
+
dt("dispBlanksAs", "str"),
|
|
1769
|
+
dt("showDLblsOverMax", "bool"),
|
|
1770
|
+
ut("extLst", ce)
|
|
1771
|
+
] }, ln = { fields: [ct("name"), dt("fmtId", "int")] }, dn = { fields: [
|
|
1772
|
+
dt("date1904", "bool"),
|
|
1773
|
+
dt("lang", "str"),
|
|
1774
|
+
dt("roundedCorners", "bool"),
|
|
1775
|
+
dt("style", "int"),
|
|
1776
|
+
ut("pivotSource", ln),
|
|
1777
|
+
ut("chart", an),
|
|
1778
|
+
_t(),
|
|
1779
|
+
Kt()
|
|
1780
|
+
] }, cn = (t) => {
|
|
1781
|
+
const e = D(t);
|
|
1766
1782
|
if (!e || "chartSpace" !== e.name) return null;
|
|
1767
|
-
const n =
|
|
1768
|
-
if (!
|
|
1769
|
-
const r = new
|
|
1783
|
+
const n = _(e, G);
|
|
1784
|
+
if (!z(K(e, n))) return null;
|
|
1785
|
+
const r = new st(t, n);
|
|
1770
1786
|
return {
|
|
1771
|
-
model:
|
|
1787
|
+
model: it(e, dn, G, r),
|
|
1772
1788
|
kept: r.kept,
|
|
1773
1789
|
reordered: r.reordered
|
|
1774
1790
|
};
|
|
1775
|
-
},
|
|
1791
|
+
}, un = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n", pn = (t) => {
|
|
1776
1792
|
const e = { ...t.unknown?.attributes }, n = (t, n) => {
|
|
1777
1793
|
e[`xmlns:${t}`] ??= n;
|
|
1778
1794
|
};
|
|
1779
|
-
n(
|
|
1780
|
-
const r = new
|
|
1795
|
+
n(W.c, $), n(W.a, O), n(W.r, R);
|
|
1796
|
+
const r = new X().raw(un);
|
|
1781
1797
|
return ((t, e) => {
|
|
1782
|
-
|
|
1798
|
+
at(t, "c:chartSpace", e, dn);
|
|
1783
1799
|
})(r, {
|
|
1784
1800
|
...t,
|
|
1785
1801
|
unknown: {
|
|
@@ -1787,20 +1803,20 @@ var l = [
|
|
|
1787
1803
|
attributes: e
|
|
1788
1804
|
}
|
|
1789
1805
|
}), r.toString();
|
|
1790
|
-
},
|
|
1806
|
+
}, fn = (t, e) => {
|
|
1791
1807
|
if (e && (n = t, !(n.chart?.plotArea?.groups ?? []).some((t) => {
|
|
1792
|
-
const e =
|
|
1808
|
+
const e = Ge(t), n = (t) => qe(e, t) || !!t?.labels?.some((t) => qe(e, t));
|
|
1793
1809
|
return n(t.dLbls) || t.series.some((t) => n(t.dLbls));
|
|
1794
1810
|
}))) {
|
|
1795
|
-
const n =
|
|
1811
|
+
const n = cn(e);
|
|
1796
1812
|
if (n && JSON.stringify(n.model) === JSON.stringify(t)) return e;
|
|
1797
1813
|
}
|
|
1798
1814
|
var n;
|
|
1799
|
-
return
|
|
1800
|
-
},
|
|
1815
|
+
return pn(t);
|
|
1816
|
+
}, mn = (t, e, n = t, r) => ut(t, e, n, {
|
|
1801
1817
|
ns: "cx",
|
|
1802
1818
|
many: r
|
|
1803
|
-
}),
|
|
1819
|
+
}), hn = () => mn("spPr", Mt), bn = () => mn("txPr", Jt), gn = () => mn("numFmt", me), yn = (t) => ({
|
|
1804
1820
|
name: t,
|
|
1805
1821
|
key: t,
|
|
1806
1822
|
read: (t) => {
|
|
@@ -1809,28 +1825,28 @@ var l = [
|
|
|
1809
1825
|
return "" !== t.trim() && Number.isFinite(e) ? e : void 0;
|
|
1810
1826
|
},
|
|
1811
1827
|
write: (t) => String(t)
|
|
1812
|
-
}),
|
|
1828
|
+
}), vn = (t) => J(t).filter(([t]) => "xmlns" !== t && !t.startsWith("xmlns:")), xn = (t) => ({
|
|
1813
1829
|
tags: [t],
|
|
1814
1830
|
key: t,
|
|
1815
1831
|
ns: "cx",
|
|
1816
1832
|
read: (t) => {
|
|
1817
1833
|
if (T(t).length > 0) return;
|
|
1818
1834
|
const e = { f: F(t) };
|
|
1819
|
-
for (const [n, r] of
|
|
1835
|
+
for (const [n, r] of vn(t)) {
|
|
1820
1836
|
if ("dir" !== n || "col" !== r && "row" !== r) return;
|
|
1821
1837
|
e.dir = r;
|
|
1822
1838
|
}
|
|
1823
1839
|
return "" === e.f ? void 0 : e;
|
|
1824
1840
|
},
|
|
1825
1841
|
write: (e, n) => {
|
|
1826
|
-
const r =
|
|
1842
|
+
const r = lt("cx", t);
|
|
1827
1843
|
e.open(r, n.dir ? [["dir", n.dir]] : null).text(n.f).close(r);
|
|
1828
1844
|
}
|
|
1829
|
-
}),
|
|
1845
|
+
}), wn = {
|
|
1830
1846
|
attributes: [
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1847
|
+
pt("ptCount", "int"),
|
|
1848
|
+
pt("formatCode", "str"),
|
|
1849
|
+
pt("name", "str")
|
|
1834
1850
|
],
|
|
1835
1851
|
fields: [{
|
|
1836
1852
|
tags: ["pt"],
|
|
@@ -1839,50 +1855,50 @@ var l = [
|
|
|
1839
1855
|
many: !0,
|
|
1840
1856
|
read: (t) => {
|
|
1841
1857
|
if (T(t).length > 0) return;
|
|
1842
|
-
const e =
|
|
1858
|
+
const e = vn(t);
|
|
1843
1859
|
if (1 !== e.length || "idx" !== e[0][0]) return;
|
|
1844
1860
|
const n = Number(e[0][1]);
|
|
1845
|
-
return Number.isInteger(n) &&
|
|
1861
|
+
return Number.isInteger(n) && et(String(n)) === et(e[0][1]) ? {
|
|
1846
1862
|
idx: n,
|
|
1847
1863
|
v: F(t)
|
|
1848
1864
|
} : void 0;
|
|
1849
1865
|
},
|
|
1850
1866
|
write: (t, e) => {
|
|
1851
|
-
const n =
|
|
1867
|
+
const n = lt("cx", "pt");
|
|
1852
1868
|
"" === e.v ? t.open(n, [["idx", String(e.idx)]], !0) : t.open(n, [["idx", String(e.idx)]]).text(e.v).close(n);
|
|
1853
1869
|
}
|
|
1854
1870
|
}]
|
|
1855
|
-
},
|
|
1856
|
-
attributes: [
|
|
1871
|
+
}, kn = {
|
|
1872
|
+
attributes: [pt("type", "str")],
|
|
1857
1873
|
fields: [
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1874
|
+
xn("f"),
|
|
1875
|
+
xn("nf"),
|
|
1876
|
+
mn("lvl", wn, "levels", !0)
|
|
1861
1877
|
]
|
|
1862
|
-
},
|
|
1878
|
+
}, Sn = /* @__PURE__ */ new Set([
|
|
1863
1879
|
"val",
|
|
1864
1880
|
"x",
|
|
1865
1881
|
"y",
|
|
1866
1882
|
"size",
|
|
1867
1883
|
"colorVal"
|
|
1868
|
-
]),
|
|
1884
|
+
]), Ln = /* @__PURE__ */ new Set([
|
|
1869
1885
|
"cat",
|
|
1870
1886
|
"colorStr",
|
|
1871
1887
|
"entityId"
|
|
1872
|
-
]),
|
|
1873
|
-
fields: [
|
|
1874
|
-
attributes: [
|
|
1888
|
+
]), Pn = {
|
|
1889
|
+
fields: [mn("data", {
|
|
1890
|
+
attributes: [pt("id", "int")],
|
|
1875
1891
|
fields: [{
|
|
1876
1892
|
tags: ["numDim", "strDim"],
|
|
1877
1893
|
key: "dimensions",
|
|
1878
1894
|
ns: "cx",
|
|
1879
1895
|
many: !0,
|
|
1880
1896
|
read: (t, e, n) => {
|
|
1881
|
-
const r =
|
|
1882
|
-
return ("numDim" === t.name ?
|
|
1897
|
+
const r = it(t, kn, e, n);
|
|
1898
|
+
return ("numDim" === t.name ? Sn : Ln).has(r.type) ? r : void 0;
|
|
1883
1899
|
},
|
|
1884
1900
|
write: (t, e) => {
|
|
1885
|
-
|
|
1901
|
+
at(t, lt("cx", Sn.has(e.type) ? "numDim" : "strDim"), e, kn);
|
|
1886
1902
|
}
|
|
1887
1903
|
}],
|
|
1888
1904
|
afterRead: (t) => {
|
|
@@ -1892,76 +1908,76 @@ var l = [
|
|
|
1892
1908
|
afterRead: (t) => {
|
|
1893
1909
|
t.data ??= [];
|
|
1894
1910
|
}
|
|
1895
|
-
},
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
],
|
|
1900
|
-
attributes:
|
|
1911
|
+
}, Cn = { fields: [mn("txData", { fields: [xn("f"), ct("v", "v", "cx")] }), mn("rich", Jt)] }, In = () => [
|
|
1912
|
+
pt("pos", "str"),
|
|
1913
|
+
pt("align", "str"),
|
|
1914
|
+
pt("overlay", "bool")
|
|
1915
|
+
], Nn = {
|
|
1916
|
+
attributes: In(),
|
|
1901
1917
|
fields: [
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1918
|
+
mn("tx", Cn),
|
|
1919
|
+
hn(),
|
|
1920
|
+
bn()
|
|
1905
1921
|
]
|
|
1906
|
-
},
|
|
1907
|
-
attributes:
|
|
1908
|
-
fields: [
|
|
1909
|
-
},
|
|
1922
|
+
}, Dn = {
|
|
1923
|
+
attributes: In(),
|
|
1924
|
+
fields: [hn(), bn()]
|
|
1925
|
+
}, Tn = {
|
|
1910
1926
|
attributes: [
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1927
|
+
pt("seriesName", "bool"),
|
|
1928
|
+
pt("categoryName", "bool"),
|
|
1929
|
+
pt("value", "bool")
|
|
1914
1930
|
],
|
|
1915
1931
|
fields: []
|
|
1916
|
-
},
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
],
|
|
1923
|
-
attributes: [
|
|
1924
|
-
fields:
|
|
1925
|
-
},
|
|
1926
|
-
attributes: [
|
|
1932
|
+
}, Fn = () => [
|
|
1933
|
+
gn(),
|
|
1934
|
+
hn(),
|
|
1935
|
+
bn(),
|
|
1936
|
+
mn("visibility", Tn),
|
|
1937
|
+
ct("separator", "separator", "cx")
|
|
1938
|
+
], $n = {
|
|
1939
|
+
attributes: [pt("idx", "int"), pt("pos", "str")],
|
|
1940
|
+
fields: Fn()
|
|
1941
|
+
}, jn = {
|
|
1942
|
+
attributes: [pt("idx", "int")],
|
|
1927
1943
|
fields: []
|
|
1928
|
-
},
|
|
1929
|
-
attributes: [
|
|
1944
|
+
}, On = {
|
|
1945
|
+
attributes: [pt("pos", "str")],
|
|
1930
1946
|
fields: [
|
|
1931
|
-
...
|
|
1932
|
-
|
|
1933
|
-
|
|
1947
|
+
...Fn(),
|
|
1948
|
+
mn("dataLabel", $n, "labels", !0),
|
|
1949
|
+
mn("dataLabelHidden", jn, "hiddenLabels", !0)
|
|
1934
1950
|
]
|
|
1935
|
-
},
|
|
1936
|
-
attributes: [
|
|
1937
|
-
fields: [
|
|
1938
|
-
},
|
|
1951
|
+
}, An = {
|
|
1952
|
+
attributes: [pt("idx", "int")],
|
|
1953
|
+
fields: [hn()]
|
|
1954
|
+
}, Rn = {
|
|
1939
1955
|
attributes: [
|
|
1940
1956
|
"connectorLines",
|
|
1941
1957
|
"meanLine",
|
|
1942
1958
|
"meanMarker",
|
|
1943
1959
|
"nonoutliers",
|
|
1944
1960
|
"outliers"
|
|
1945
|
-
].map((t) =>
|
|
1961
|
+
].map((t) => pt(t, "bool")),
|
|
1946
1962
|
fields: []
|
|
1947
|
-
},
|
|
1963
|
+
}, Mn = {
|
|
1948
1964
|
attributes: [
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1965
|
+
pt("intervalClosed", "str"),
|
|
1966
|
+
yn("underflow"),
|
|
1967
|
+
yn("overflow")
|
|
1952
1968
|
],
|
|
1953
|
-
fields: [
|
|
1954
|
-
},
|
|
1955
|
-
...
|
|
1969
|
+
fields: [dt("binSize", "num", "binSize", "cx"), dt("binCount", "int", "binCount", "cx")]
|
|
1970
|
+
}, En = { fields: [{
|
|
1971
|
+
...dt("idx", "int", "indexes", "cx"),
|
|
1956
1972
|
many: !0
|
|
1957
|
-
}] },
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
attributes: [
|
|
1973
|
+
}] }, Bn = { fields: [
|
|
1974
|
+
dt("parentLabelLayout", "str", "parentLabelLayout", "cx"),
|
|
1975
|
+
dt("regionLabelLayout", "str", "regionLabelLayout", "cx"),
|
|
1976
|
+
mn("visibility", Rn),
|
|
1977
|
+
mn("aggregation", { fields: [] }),
|
|
1978
|
+
mn("binning", Mn),
|
|
1979
|
+
mn("statistics", {
|
|
1980
|
+
attributes: [pt("quartileMethod", "str")],
|
|
1965
1981
|
fields: []
|
|
1966
1982
|
}),
|
|
1967
1983
|
{
|
|
@@ -1969,94 +1985,94 @@ var l = [
|
|
|
1969
1985
|
key: "subtotals",
|
|
1970
1986
|
ns: "cx",
|
|
1971
1987
|
read: (t, e, n) => {
|
|
1972
|
-
const r =
|
|
1988
|
+
const r = it(t, En, e, n);
|
|
1973
1989
|
return r.unknown ? void 0 : r.indexes ?? [];
|
|
1974
1990
|
},
|
|
1975
1991
|
write: (t, e) => {
|
|
1976
|
-
|
|
1992
|
+
at(t, lt("cx", "subtotals"), { indexes: e }, En);
|
|
1977
1993
|
}
|
|
1978
1994
|
}
|
|
1979
|
-
] },
|
|
1995
|
+
] }, Un = {
|
|
1980
1996
|
attributes: [
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1997
|
+
pt("layoutId", "str"),
|
|
1998
|
+
pt("hidden", "bool"),
|
|
1999
|
+
pt("ownerIdx", "int"),
|
|
2000
|
+
pt("uniqueId", "str"),
|
|
2001
|
+
pt("formatIdx", "int")
|
|
1986
2002
|
],
|
|
1987
2003
|
fields: [
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
2004
|
+
mn("tx", Cn),
|
|
2005
|
+
hn(),
|
|
2006
|
+
mn("dataPt", An, "points", !0),
|
|
2007
|
+
mn("dataLabels", On),
|
|
2008
|
+
dt("dataId", "int", "dataId", "cx"),
|
|
2009
|
+
mn("layoutPr", Bn),
|
|
1994
2010
|
{
|
|
1995
|
-
...
|
|
2011
|
+
...dt("axisId", "int", "axisIds", "cx"),
|
|
1996
2012
|
many: !0
|
|
1997
2013
|
}
|
|
1998
2014
|
]
|
|
1999
|
-
},
|
|
2000
|
-
fields: [
|
|
2015
|
+
}, Wn = {
|
|
2016
|
+
fields: [mn("plotSurface", { fields: [hn()] }), mn("series", Un, "series", !0)],
|
|
2001
2017
|
afterRead: (t) => {
|
|
2002
2018
|
t.series ??= [];
|
|
2003
2019
|
}
|
|
2004
|
-
},
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
] },
|
|
2009
|
-
attributes: [
|
|
2020
|
+
}, zn = { fields: [
|
|
2021
|
+
mn("tx", Cn),
|
|
2022
|
+
hn(),
|
|
2023
|
+
bn()
|
|
2024
|
+
] }, Vn = { fields: [hn()] }, Hn = {
|
|
2025
|
+
attributes: [pt("type", "str")],
|
|
2010
2026
|
fields: []
|
|
2011
|
-
},
|
|
2012
|
-
attributes: [
|
|
2027
|
+
}, Gn = {
|
|
2028
|
+
attributes: [pt("id", "int"), pt("hidden", "bool")],
|
|
2013
2029
|
fields: [
|
|
2014
|
-
|
|
2015
|
-
attributes: [
|
|
2030
|
+
mn("catScaling", {
|
|
2031
|
+
attributes: [pt("gapWidth", "num")],
|
|
2016
2032
|
fields: []
|
|
2017
2033
|
}),
|
|
2018
|
-
|
|
2034
|
+
mn("valScaling", {
|
|
2019
2035
|
attributes: [
|
|
2020
2036
|
"max",
|
|
2021
2037
|
"min",
|
|
2022
2038
|
"majorUnit",
|
|
2023
2039
|
"minorUnit"
|
|
2024
|
-
].map((t) =>
|
|
2040
|
+
].map((t) => pt(t, "num")),
|
|
2025
2041
|
fields: []
|
|
2026
2042
|
}),
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
attributes: [
|
|
2030
|
-
fields: [
|
|
2043
|
+
mn("title", zn),
|
|
2044
|
+
mn("units", {
|
|
2045
|
+
attributes: [pt("unit", "str")],
|
|
2046
|
+
fields: [mn("unitsLabel", zn)]
|
|
2031
2047
|
}),
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2048
|
+
mn("majorGridlines", Vn),
|
|
2049
|
+
mn("minorGridlines", Vn),
|
|
2050
|
+
mn("majorTickMarks", Hn),
|
|
2051
|
+
mn("minorTickMarks", Hn),
|
|
2052
|
+
mn("tickLabels", { fields: [] }),
|
|
2053
|
+
gn(),
|
|
2054
|
+
hn(),
|
|
2055
|
+
bn()
|
|
2040
2056
|
]
|
|
2041
|
-
},
|
|
2057
|
+
}, qn = {
|
|
2042
2058
|
fields: [
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2059
|
+
mn("plotAreaRegion", Wn),
|
|
2060
|
+
mn("axis", Gn, "axes", !0),
|
|
2061
|
+
hn()
|
|
2046
2062
|
],
|
|
2047
2063
|
afterRead: (t) => {
|
|
2048
2064
|
t.axes ??= [];
|
|
2049
2065
|
}
|
|
2050
|
-
},
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
] },
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
] },
|
|
2066
|
+
}, Jn = { fields: [
|
|
2067
|
+
mn("title", Nn),
|
|
2068
|
+
mn("plotArea", qn),
|
|
2069
|
+
mn("legend", Dn)
|
|
2070
|
+
] }, _n = { fields: [
|
|
2071
|
+
mn("chartData", Pn),
|
|
2072
|
+
mn("chart", Jn),
|
|
2073
|
+
hn(),
|
|
2074
|
+
bn()
|
|
2075
|
+
] }, Kn = {
|
|
2060
2076
|
waterfall: "waterfall",
|
|
2061
2077
|
clusteredColumn: "histogram",
|
|
2062
2078
|
boxWhisker: "boxWhisker",
|
|
@@ -2064,7 +2080,7 @@ var l = [
|
|
|
2064
2080
|
sunburst: "sunburst",
|
|
2065
2081
|
funnel: "funnel",
|
|
2066
2082
|
regionMap: "regionMap"
|
|
2067
|
-
},
|
|
2083
|
+
}, Xn = Object.fromEntries(Object.entries(Kn).map(([t, e]) => [e, t])), Yn = new Set(Object.values(Kn)), Qn = "paretoLine", Zn = {
|
|
2068
2084
|
cat: "cat",
|
|
2069
2085
|
val: "val",
|
|
2070
2086
|
x: "xVal",
|
|
@@ -2073,13 +2089,13 @@ var l = [
|
|
|
2073
2089
|
colorVal: "color",
|
|
2074
2090
|
colorStr: "color",
|
|
2075
2091
|
entityId: "entityId"
|
|
2076
|
-
},
|
|
2092
|
+
}, tr = /* @__PURE__ */ new Set([
|
|
2077
2093
|
"val",
|
|
2078
2094
|
"x",
|
|
2079
2095
|
"y",
|
|
2080
2096
|
"size",
|
|
2081
2097
|
"colorVal"
|
|
2082
|
-
]),
|
|
2098
|
+
]), er = [
|
|
2083
2099
|
"cat",
|
|
2084
2100
|
"colorStr",
|
|
2085
2101
|
"entityId",
|
|
@@ -2088,26 +2104,26 @@ var l = [
|
|
|
2088
2104
|
"val",
|
|
2089
2105
|
"size",
|
|
2090
2106
|
"colorVal"
|
|
2091
|
-
],
|
|
2107
|
+
], nr = (t) => {
|
|
2092
2108
|
for (const e of Object.keys(t)) void 0 === t[e] && delete t[e];
|
|
2093
2109
|
return t;
|
|
2094
|
-
},
|
|
2110
|
+
}, rr = (t) => nr({
|
|
2095
2111
|
f: t.f,
|
|
2096
2112
|
dir: t.dir
|
|
2097
|
-
}),
|
|
2098
|
-
strRef: t.txData?.f ?
|
|
2113
|
+
}), sr = (t) => t && nr({
|
|
2114
|
+
strRef: t.txData?.f ? rr(t.txData.f) : void 0,
|
|
2099
2115
|
v: t.txData?.v,
|
|
2100
2116
|
rich: t.rich,
|
|
2101
2117
|
unknown: t.unknown
|
|
2102
|
-
}),
|
|
2103
|
-
tx:
|
|
2118
|
+
}), or = (t) => t && nr({
|
|
2119
|
+
tx: sr(t.tx),
|
|
2104
2120
|
overlay: t.overlay,
|
|
2105
2121
|
spPr: t.spPr,
|
|
2106
2122
|
txPr: t.txPr,
|
|
2107
2123
|
pos: t.pos,
|
|
2108
2124
|
align: t.align,
|
|
2109
2125
|
unknown: t.unknown
|
|
2110
|
-
}),
|
|
2126
|
+
}), ir = (t) => nr({
|
|
2111
2127
|
numFmt: t.numFmt,
|
|
2112
2128
|
spPr: t.spPr,
|
|
2113
2129
|
txPr: t.txPr,
|
|
@@ -2117,17 +2133,17 @@ var l = [
|
|
|
2117
2133
|
showVal: t.visibility?.value,
|
|
2118
2134
|
separator: t.separator,
|
|
2119
2135
|
unknown: t.unknown
|
|
2120
|
-
}),
|
|
2136
|
+
}), ar = (t) => {
|
|
2121
2137
|
if (!t) return;
|
|
2122
|
-
const e =
|
|
2138
|
+
const e = ir(t), n = [...(t.labels ?? []).map((t) => ({
|
|
2123
2139
|
idx: t.idx,
|
|
2124
|
-
...
|
|
2140
|
+
...ir(t)
|
|
2125
2141
|
})), ...(t.hiddenLabels ?? []).map((t) => ({
|
|
2126
2142
|
idx: t.idx,
|
|
2127
2143
|
delete: !0
|
|
2128
2144
|
}))];
|
|
2129
2145
|
return n.length > 0 && (e.labels = n), e;
|
|
2130
|
-
},
|
|
2146
|
+
}, lr = (t, e) => {
|
|
2131
2147
|
const n = (t ?? []).map((t) => ({ ...t }));
|
|
2132
2148
|
for (const t of [...e ?? []].sort((t, e) => t - e)) {
|
|
2133
2149
|
const e = n.find((e) => e.idx === t);
|
|
@@ -2137,11 +2153,11 @@ var l = [
|
|
|
2137
2153
|
});
|
|
2138
2154
|
}
|
|
2139
2155
|
return n.length > 0 ? n : void 0;
|
|
2140
|
-
},
|
|
2156
|
+
}, dr = (t) => {
|
|
2141
2157
|
if (!t) return;
|
|
2142
2158
|
const { subtotals: e, ...n } = t;
|
|
2143
2159
|
return Object.keys(n).length > 0 ? n : void 0;
|
|
2144
|
-
},
|
|
2160
|
+
}, cr = (t) => nr({
|
|
2145
2161
|
ptCount: t.ptCount,
|
|
2146
2162
|
formatCode: t.formatCode,
|
|
2147
2163
|
name: t.name,
|
|
@@ -2150,65 +2166,65 @@ var l = [
|
|
|
2150
2166
|
v: t.v
|
|
2151
2167
|
})),
|
|
2152
2168
|
unknown: t.unknown
|
|
2153
|
-
}),
|
|
2154
|
-
const e =
|
|
2155
|
-
return t.f ? r[e ? "numRef" : "strRef"] =
|
|
2156
|
-
...
|
|
2169
|
+
}), ur = (t) => {
|
|
2170
|
+
const e = tr.has(t.type), n = t.levels?.map(cr), r = {};
|
|
2171
|
+
return t.f ? r[e ? "numRef" : "strRef"] = nr({
|
|
2172
|
+
...rr(t.f),
|
|
2157
2173
|
cache: n ? { levels: n } : void 0
|
|
2158
|
-
}) : r[e ? "numLit" : "strLit"] =
|
|
2159
|
-
},
|
|
2160
|
-
const n =
|
|
2174
|
+
}) : r[e ? "numLit" : "strLit"] = nr({ levels: n }), t.nf && (r.nf = rr(t.nf)), t.unknown && (r.unknown = t.unknown), r;
|
|
2175
|
+
}, pr = (t, e) => {
|
|
2176
|
+
const n = nr({
|
|
2161
2177
|
idx: t.formatIdx,
|
|
2162
2178
|
hidden: t.hidden,
|
|
2163
2179
|
uniqueId: t.uniqueId,
|
|
2164
|
-
tx:
|
|
2180
|
+
tx: sr(t.tx),
|
|
2165
2181
|
spPr: t.spPr,
|
|
2166
|
-
points:
|
|
2167
|
-
dLbls:
|
|
2168
|
-
layoutPr:
|
|
2182
|
+
points: lr(t.points, t.layoutPr?.subtotals),
|
|
2183
|
+
dLbls: ar(t.dataLabels),
|
|
2184
|
+
layoutPr: dr(t.layoutPr),
|
|
2169
2185
|
unknown: t.unknown
|
|
2170
2186
|
});
|
|
2171
2187
|
for (const t of e?.dimensions ?? []) {
|
|
2172
|
-
const e =
|
|
2173
|
-
e && !n[e] && (n[e] =
|
|
2188
|
+
const e = Zn[t.type];
|
|
2189
|
+
e && !n[e] && (n[e] = ur(t));
|
|
2174
2190
|
}
|
|
2175
2191
|
return n;
|
|
2176
|
-
},
|
|
2192
|
+
}, fr = (t) => nr({
|
|
2177
2193
|
idx: t.formatIdx,
|
|
2178
2194
|
hidden: t.hidden,
|
|
2179
2195
|
uniqueId: t.uniqueId,
|
|
2180
|
-
tx:
|
|
2196
|
+
tx: sr(t.tx),
|
|
2181
2197
|
spPr: t.spPr,
|
|
2182
|
-
points:
|
|
2183
|
-
dLbls:
|
|
2184
|
-
layoutPr:
|
|
2198
|
+
points: lr(t.points, t.layoutPr?.subtotals),
|
|
2199
|
+
dLbls: ar(t.dataLabels),
|
|
2200
|
+
layoutPr: dr(t.layoutPr),
|
|
2185
2201
|
axIds: t.axisIds,
|
|
2186
2202
|
unknown: t.unknown
|
|
2187
|
-
}),
|
|
2203
|
+
}), mr = (t, e) => {
|
|
2188
2204
|
const n = new Map(e.map((t) => [t.id, t])), r = [], s = [];
|
|
2189
2205
|
let o = null;
|
|
2190
2206
|
for (const e of t?.series ?? []) {
|
|
2191
|
-
if (e.layoutId ===
|
|
2207
|
+
if (e.layoutId === Qn) {
|
|
2192
2208
|
const t = void 0 === e.ownerIdx ? null : s[e.ownerIdx];
|
|
2193
|
-
t && !t.cumulativeLine && (t.cumulativeLine =
|
|
2209
|
+
t && !t.cumulativeLine && (t.cumulativeLine = fr(e)), s.push(null);
|
|
2194
2210
|
continue;
|
|
2195
2211
|
}
|
|
2196
|
-
const t =
|
|
2212
|
+
const t = Kn[e.layoutId] ?? e.layoutId, i = e.axisIds ?? [];
|
|
2197
2213
|
o && o.type === t && JSON.stringify(o.axIds) === JSON.stringify(i) || (o = {
|
|
2198
2214
|
type: t,
|
|
2199
2215
|
series: [],
|
|
2200
2216
|
axIds: i
|
|
2201
2217
|
}, r.push(o));
|
|
2202
|
-
const a =
|
|
2218
|
+
const a = pr(e, void 0 === e.dataId ? void 0 : n.get(e.dataId));
|
|
2203
2219
|
o.series.push(a), s.push(a);
|
|
2204
2220
|
}
|
|
2205
2221
|
return r;
|
|
2206
|
-
},
|
|
2222
|
+
}, hr = (t) => {
|
|
2207
2223
|
const e = t.catScaling ?? t.valScaling;
|
|
2208
|
-
return
|
|
2224
|
+
return nr({
|
|
2209
2225
|
type: t.catScaling || !t.valScaling ? "cat" : "val",
|
|
2210
2226
|
axId: t.id,
|
|
2211
|
-
scaling:
|
|
2227
|
+
scaling: nr({
|
|
2212
2228
|
max: t.valScaling?.max,
|
|
2213
2229
|
min: t.valScaling?.min,
|
|
2214
2230
|
gapWidth: t.catScaling?.gapWidth,
|
|
@@ -2217,7 +2233,7 @@ var l = [
|
|
|
2217
2233
|
delete: t.hidden,
|
|
2218
2234
|
majorGridlines: t.majorGridlines,
|
|
2219
2235
|
minorGridlines: t.minorGridlines,
|
|
2220
|
-
title:
|
|
2236
|
+
title: or(t.title),
|
|
2221
2237
|
numFmt: t.numFmt,
|
|
2222
2238
|
majorTickMark: t.majorTickMarks?.type,
|
|
2223
2239
|
minorTickMark: t.minorTickMarks?.type,
|
|
@@ -2226,33 +2242,33 @@ var l = [
|
|
|
2226
2242
|
txPr: t.txPr,
|
|
2227
2243
|
majorUnit: t.valScaling?.majorUnit,
|
|
2228
2244
|
minorUnit: t.valScaling?.minorUnit,
|
|
2229
|
-
dispUnits: t.units &&
|
|
2245
|
+
dispUnits: t.units && nr({
|
|
2230
2246
|
builtInUnit: t.units.unit,
|
|
2231
|
-
dispUnitsLbl:
|
|
2247
|
+
dispUnitsLbl: or(t.units.unitsLabel),
|
|
2232
2248
|
unknown: t.units.unknown
|
|
2233
2249
|
}),
|
|
2234
2250
|
unknown: t.unknown
|
|
2235
2251
|
});
|
|
2236
|
-
},
|
|
2237
|
-
txData: t.strRef || void 0 !== t.v ?
|
|
2238
|
-
f: t.strRef ?
|
|
2252
|
+
}, br = (t) => t && nr({
|
|
2253
|
+
txData: t.strRef || void 0 !== t.v ? nr({
|
|
2254
|
+
f: t.strRef ? rr(t.strRef) : void 0,
|
|
2239
2255
|
v: t.v
|
|
2240
2256
|
}) : void 0,
|
|
2241
2257
|
rich: t.rich,
|
|
2242
2258
|
unknown: t.unknown
|
|
2243
|
-
}),
|
|
2244
|
-
tx:
|
|
2259
|
+
}), gr = (t) => t && nr({
|
|
2260
|
+
tx: br(t.tx),
|
|
2245
2261
|
spPr: t.spPr,
|
|
2246
2262
|
txPr: t.txPr,
|
|
2247
2263
|
unknown: t.unknown
|
|
2248
|
-
}),
|
|
2264
|
+
}), yr = (t) => {
|
|
2249
2265
|
const e = void 0 !== t.showSerName || void 0 !== t.showCatName || void 0 !== t.showVal;
|
|
2250
|
-
return
|
|
2266
|
+
return nr({
|
|
2251
2267
|
pos: t.dLblPos,
|
|
2252
2268
|
numFmt: t.numFmt,
|
|
2253
2269
|
spPr: t.spPr,
|
|
2254
2270
|
txPr: t.txPr,
|
|
2255
|
-
visibility: e ?
|
|
2271
|
+
visibility: e ? nr({
|
|
2256
2272
|
seriesName: t.showSerName,
|
|
2257
2273
|
categoryName: t.showCatName,
|
|
2258
2274
|
value: t.showVal
|
|
@@ -2260,23 +2276,23 @@ var l = [
|
|
|
2260
2276
|
separator: t.separator,
|
|
2261
2277
|
unknown: t.unknown
|
|
2262
2278
|
});
|
|
2263
|
-
},
|
|
2279
|
+
}, vr = (t) => !0 === t.delete && Object.keys(t).every((t) => "idx" === t || "delete" === t), xr = (t) => {
|
|
2264
2280
|
if (!t) return;
|
|
2265
|
-
const e =
|
|
2281
|
+
const e = yr(t), n = (t.labels ?? []).filter((t) => !vr(t)).map((t) => ({
|
|
2266
2282
|
idx: t.idx,
|
|
2267
|
-
...
|
|
2268
|
-
})), r = (t.labels ?? []).filter(
|
|
2283
|
+
...yr(t)
|
|
2284
|
+
})), r = (t.labels ?? []).filter(vr).map((t) => ({ idx: t.idx }));
|
|
2269
2285
|
return n.length > 0 && (e.labels = n), r.length > 0 && (e.hiddenLabels = r), e;
|
|
2270
|
-
},
|
|
2286
|
+
}, wr = (t) => {
|
|
2271
2287
|
const e = (t ?? []).filter((t) => Object.keys(t).some((t) => "idx" !== t && "subtotal" !== t)).map(({ subtotal: t, ...e }) => e);
|
|
2272
2288
|
return e.length > 0 ? e : void 0;
|
|
2273
|
-
},
|
|
2289
|
+
}, kr = (t, e, n) => {
|
|
2274
2290
|
const r = (e ?? []).filter((t) => t.subtotal).map((t) => t.idx).sort((t, e) => t - e);
|
|
2275
2291
|
return 0 !== r.length || n ? {
|
|
2276
2292
|
...t,
|
|
2277
2293
|
subtotals: r
|
|
2278
2294
|
} : t;
|
|
2279
|
-
},
|
|
2295
|
+
}, Sr = (t) => nr({
|
|
2280
2296
|
ptCount: t.ptCount,
|
|
2281
2297
|
formatCode: t.formatCode,
|
|
2282
2298
|
name: t.name,
|
|
@@ -2285,7 +2301,7 @@ var l = [
|
|
|
2285
2301
|
v: t.v
|
|
2286
2302
|
})) : void 0,
|
|
2287
2303
|
unknown: t.unknown
|
|
2288
|
-
}),
|
|
2304
|
+
}), Lr = (t, e) => "color" === t ? e.strRef || e.strLit ? "colorStr" : "colorVal" : Object.keys(Zn).find((e) => Zn[e] === t), Pr = (t) => {
|
|
2289
2305
|
const e = [];
|
|
2290
2306
|
for (const n of [
|
|
2291
2307
|
"cat",
|
|
@@ -2299,35 +2315,35 @@ var l = [
|
|
|
2299
2315
|
const r = t[n];
|
|
2300
2316
|
if (!r) continue;
|
|
2301
2317
|
const s = r.numRef ?? r.strRef, o = (s ? s.cache : r.numLit ?? r.strLit)?.levels;
|
|
2302
|
-
e.push(
|
|
2303
|
-
type:
|
|
2304
|
-
f: s ?
|
|
2305
|
-
nf: r.nf ?
|
|
2306
|
-
levels: o && o.length > 0 ? o.map(
|
|
2318
|
+
e.push(nr({
|
|
2319
|
+
type: Lr(n, r),
|
|
2320
|
+
f: s ? rr(s) : void 0,
|
|
2321
|
+
nf: r.nf ? rr(r.nf) : void 0,
|
|
2322
|
+
levels: o && o.length > 0 ? o.map(Sr) : void 0,
|
|
2307
2323
|
unknown: r.unknown
|
|
2308
2324
|
}));
|
|
2309
2325
|
}
|
|
2310
|
-
return e.sort((t, e) =>
|
|
2311
|
-
},
|
|
2326
|
+
return e.sort((t, e) => er.indexOf(t.type) - er.indexOf(e.type));
|
|
2327
|
+
}, Cr = (t) => {
|
|
2312
2328
|
const e = t.scaling ?? {}, n = "cat" === t.type || "date" === t.type;
|
|
2313
|
-
return
|
|
2329
|
+
return nr({
|
|
2314
2330
|
id: t.axId,
|
|
2315
2331
|
hidden: t.delete,
|
|
2316
|
-
catScaling: n ?
|
|
2332
|
+
catScaling: n ? nr({
|
|
2317
2333
|
gapWidth: e.gapWidth,
|
|
2318
2334
|
unknown: e.unknown
|
|
2319
2335
|
}) : void 0,
|
|
2320
|
-
valScaling: n ? void 0 :
|
|
2336
|
+
valScaling: n ? void 0 : nr({
|
|
2321
2337
|
max: e.max,
|
|
2322
2338
|
min: e.min,
|
|
2323
2339
|
majorUnit: t.majorUnit,
|
|
2324
2340
|
minorUnit: t.minorUnit,
|
|
2325
2341
|
unknown: e.unknown
|
|
2326
2342
|
}),
|
|
2327
|
-
title:
|
|
2328
|
-
units: t.dispUnits &&
|
|
2343
|
+
title: gr(t.title),
|
|
2344
|
+
units: t.dispUnits && nr({
|
|
2329
2345
|
unit: t.dispUnits.builtInUnit,
|
|
2330
|
-
unitsLabel:
|
|
2346
|
+
unitsLabel: gr(t.dispUnits.dispUnitsLbl),
|
|
2331
2347
|
unknown: t.dispUnits.unknown
|
|
2332
2348
|
}),
|
|
2333
2349
|
majorGridlines: t.majorGridlines,
|
|
@@ -2340,12 +2356,12 @@ var l = [
|
|
|
2340
2356
|
txPr: t.txPr,
|
|
2341
2357
|
unknown: t.unknown
|
|
2342
2358
|
});
|
|
2343
|
-
},
|
|
2359
|
+
}, Ir = (t) => {
|
|
2344
2360
|
const e = t.chart, n = e?.plotArea, r = [], s = [], o = [];
|
|
2345
2361
|
for (const t of n?.groups ?? []) {
|
|
2346
|
-
const e =
|
|
2362
|
+
const e = Xn[t.type];
|
|
2347
2363
|
if (e) for (const n of t.series) {
|
|
2348
|
-
const i =
|
|
2364
|
+
const i = Pr(n);
|
|
2349
2365
|
let a;
|
|
2350
2366
|
if (i.length > 0) {
|
|
2351
2367
|
const t = JSON.stringify(i);
|
|
@@ -2355,60 +2371,60 @@ var l = [
|
|
|
2355
2371
|
}), o.push(t));
|
|
2356
2372
|
}
|
|
2357
2373
|
const l = r.length;
|
|
2358
|
-
r.push(
|
|
2374
|
+
r.push(nr({
|
|
2359
2375
|
layoutId: e,
|
|
2360
2376
|
hidden: n.hidden,
|
|
2361
2377
|
uniqueId: n.uniqueId,
|
|
2362
2378
|
formatIdx: n.idx,
|
|
2363
|
-
tx:
|
|
2379
|
+
tx: br(n.tx),
|
|
2364
2380
|
spPr: n.spPr,
|
|
2365
|
-
points:
|
|
2366
|
-
dataLabels:
|
|
2381
|
+
points: wr(n.points),
|
|
2382
|
+
dataLabels: xr(n.dLbls),
|
|
2367
2383
|
dataId: a,
|
|
2368
|
-
layoutPr:
|
|
2384
|
+
layoutPr: kr(n.layoutPr, n.points, "waterfall" === t.type),
|
|
2369
2385
|
axisIds: t.axIds.length > 0 ? t.axIds : void 0,
|
|
2370
2386
|
unknown: n.unknown
|
|
2371
2387
|
}));
|
|
2372
2388
|
const d = n.cumulativeLine;
|
|
2373
|
-
d && r.push(
|
|
2374
|
-
layoutId:
|
|
2389
|
+
d && r.push(nr({
|
|
2390
|
+
layoutId: Qn,
|
|
2375
2391
|
hidden: d.hidden,
|
|
2376
2392
|
ownerIdx: l,
|
|
2377
2393
|
uniqueId: d.uniqueId,
|
|
2378
2394
|
formatIdx: d.idx,
|
|
2379
|
-
tx:
|
|
2395
|
+
tx: br(d.tx),
|
|
2380
2396
|
spPr: d.spPr,
|
|
2381
|
-
points:
|
|
2382
|
-
dataLabels:
|
|
2383
|
-
layoutPr:
|
|
2397
|
+
points: wr(d.points),
|
|
2398
|
+
dataLabels: xr(d.dLbls),
|
|
2399
|
+
layoutPr: kr(d.layoutPr, d.points, !1),
|
|
2384
2400
|
axisIds: d.axIds,
|
|
2385
2401
|
unknown: d.unknown
|
|
2386
2402
|
}));
|
|
2387
2403
|
}
|
|
2388
2404
|
}
|
|
2389
2405
|
const i = e?.legend;
|
|
2390
|
-
return
|
|
2406
|
+
return nr({
|
|
2391
2407
|
chartData: { data: s },
|
|
2392
|
-
chart:
|
|
2393
|
-
title: (a = e?.title, a &&
|
|
2408
|
+
chart: nr({
|
|
2409
|
+
title: (a = e?.title, a && nr({
|
|
2394
2410
|
pos: a.pos,
|
|
2395
2411
|
align: a.align,
|
|
2396
2412
|
overlay: a.overlay,
|
|
2397
|
-
tx:
|
|
2413
|
+
tx: br(a.tx),
|
|
2398
2414
|
spPr: a.spPr,
|
|
2399
2415
|
txPr: a.txPr,
|
|
2400
2416
|
unknown: a.unknown
|
|
2401
2417
|
})),
|
|
2402
|
-
plotArea:
|
|
2403
|
-
plotAreaRegion:
|
|
2418
|
+
plotArea: nr({
|
|
2419
|
+
plotAreaRegion: nr({
|
|
2404
2420
|
plotSurface: n?.plotSurface,
|
|
2405
2421
|
series: r
|
|
2406
2422
|
}),
|
|
2407
|
-
axes: (n?.axes ?? []).map(
|
|
2423
|
+
axes: (n?.axes ?? []).map(Cr),
|
|
2408
2424
|
spPr: n?.spPr,
|
|
2409
2425
|
unknown: n?.unknown
|
|
2410
2426
|
}),
|
|
2411
|
-
legend: i &&
|
|
2427
|
+
legend: i && nr({
|
|
2412
2428
|
pos: "tr" === i.legendPos ? "r" : i.legendPos,
|
|
2413
2429
|
align: i.align,
|
|
2414
2430
|
overlay: i.overlay,
|
|
@@ -2423,30 +2439,30 @@ var l = [
|
|
|
2423
2439
|
unknown: t.unknown
|
|
2424
2440
|
});
|
|
2425
2441
|
var a;
|
|
2426
|
-
},
|
|
2442
|
+
}, Nr = (t, e) => {
|
|
2427
2443
|
if (t === e) return !0;
|
|
2428
2444
|
if ("object" != typeof t || "object" != typeof e || null === t || null === e) return !1;
|
|
2429
2445
|
if (Array.isArray(t) !== Array.isArray(e)) return !1;
|
|
2430
2446
|
const n = (t) => Object.keys(t).filter((e) => void 0 !== t[e]), r = n(t), s = n(e);
|
|
2431
|
-
return r.length === s.length && r.every((n) =>
|
|
2432
|
-
},
|
|
2433
|
-
const e =
|
|
2447
|
+
return r.length === s.length && r.every((n) => Nr(t[n], e[n]));
|
|
2448
|
+
}, Dr = (t, e) => Nr(t, Ir(e)), Tr = (t) => {
|
|
2449
|
+
const e = D(t);
|
|
2434
2450
|
if (!e || "chartSpace" !== e.name) return null;
|
|
2435
|
-
const n =
|
|
2436
|
-
if (!
|
|
2437
|
-
const r = new
|
|
2451
|
+
const n = _(e, G);
|
|
2452
|
+
if (!H(K(e, n))) return null;
|
|
2453
|
+
const r = new st(t, n), s = it(e, _n, G, r), o = ((t) => {
|
|
2438
2454
|
const e = t.chart, n = e?.plotArea, r = e?.legend;
|
|
2439
|
-
return
|
|
2440
|
-
chart:
|
|
2441
|
-
title:
|
|
2442
|
-
plotArea:
|
|
2443
|
-
groups:
|
|
2444
|
-
axes: (n?.axes ?? []).map(
|
|
2455
|
+
return nr({
|
|
2456
|
+
chart: nr({
|
|
2457
|
+
title: or(e?.title),
|
|
2458
|
+
plotArea: nr({
|
|
2459
|
+
groups: mr(n?.plotAreaRegion, t.chartData?.data ?? []),
|
|
2460
|
+
axes: (n?.axes ?? []).map(hr),
|
|
2445
2461
|
spPr: n?.spPr,
|
|
2446
2462
|
plotSurface: n?.plotAreaRegion?.plotSurface,
|
|
2447
2463
|
unknown: n?.unknown
|
|
2448
2464
|
}),
|
|
2449
|
-
legend: r &&
|
|
2465
|
+
legend: r && nr({
|
|
2450
2466
|
legendPos: r.pos,
|
|
2451
2467
|
align: r.align,
|
|
2452
2468
|
overlay: r.overlay,
|
|
@@ -2465,16 +2481,16 @@ var l = [
|
|
|
2465
2481
|
model: o,
|
|
2466
2482
|
kept: r.kept,
|
|
2467
2483
|
reordered: r.reordered,
|
|
2468
|
-
lossy: !
|
|
2484
|
+
lossy: !Dr(s, o)
|
|
2469
2485
|
};
|
|
2470
|
-
},
|
|
2486
|
+
}, Fr = (t) => {
|
|
2471
2487
|
const e = { ...t.unknown?.attributes }, n = (t, n) => {
|
|
2472
2488
|
e[`xmlns:${t}`] ??= n;
|
|
2473
2489
|
};
|
|
2474
|
-
n(
|
|
2475
|
-
const r =
|
|
2490
|
+
n(W.a, O), n(W.r, R), n(W.cx, B);
|
|
2491
|
+
const r = Ir(t), s = new X().raw(un);
|
|
2476
2492
|
return ((t, e) => {
|
|
2477
|
-
|
|
2493
|
+
at(t, lt("cx", "chartSpace"), e, _n);
|
|
2478
2494
|
})(s, {
|
|
2479
2495
|
...r,
|
|
2480
2496
|
unknown: {
|
|
@@ -2482,13 +2498,13 @@ var l = [
|
|
|
2482
2498
|
attributes: e
|
|
2483
2499
|
}
|
|
2484
2500
|
}), s.toString();
|
|
2485
|
-
},
|
|
2501
|
+
}, $r = (t, e) => {
|
|
2486
2502
|
if (e) {
|
|
2487
|
-
const n =
|
|
2503
|
+
const n = Tr(e);
|
|
2488
2504
|
if (n && JSON.stringify(n.model) === JSON.stringify(t)) return e;
|
|
2489
2505
|
}
|
|
2490
|
-
return
|
|
2491
|
-
},
|
|
2506
|
+
return Fr(t);
|
|
2507
|
+
}, jr = {
|
|
2492
2508
|
chart: {
|
|
2493
2509
|
relType: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",
|
|
2494
2510
|
contentType: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml",
|
|
@@ -2499,9 +2515,9 @@ var l = [
|
|
|
2499
2515
|
relType: "http://schemas.microsoft.com/office/2014/relationships/chartEx",
|
|
2500
2516
|
contentType: "application/vnd.ms-office.chartex+xml",
|
|
2501
2517
|
path: "../charts/chartEx{n}.xml",
|
|
2502
|
-
graphicUri:
|
|
2518
|
+
graphicUri: B
|
|
2503
2519
|
}
|
|
2504
|
-
},
|
|
2520
|
+
}, Or = /* @__PURE__ */ new Set([
|
|
2505
2521
|
"area",
|
|
2506
2522
|
"bar",
|
|
2507
2523
|
"line",
|
|
@@ -2513,34 +2529,34 @@ var l = [
|
|
|
2513
2529
|
"radar",
|
|
2514
2530
|
"stock",
|
|
2515
2531
|
"surface"
|
|
2516
|
-
]),
|
|
2517
|
-
const e =
|
|
2532
|
+
]), Ar = (t) => t === jr.chartEx.relType ? "chartEx" : t === jr.chart.relType ? "chart" : null, Rr = (t) => Or.has(t) ? "chart" : Yn.has(t) ? "chartEx" : null, Mr = (t) => {
|
|
2533
|
+
const e = cn(t);
|
|
2518
2534
|
if (e) return {
|
|
2519
2535
|
model: e.model,
|
|
2520
2536
|
family: "chart",
|
|
2521
2537
|
kept: e.kept,
|
|
2522
2538
|
lossy: !1
|
|
2523
2539
|
};
|
|
2524
|
-
const n =
|
|
2540
|
+
const n = Tr(t);
|
|
2525
2541
|
return n ? {
|
|
2526
2542
|
model: n.model,
|
|
2527
2543
|
family: "chartEx",
|
|
2528
2544
|
kept: n.kept,
|
|
2529
2545
|
lossy: n.lossy
|
|
2530
2546
|
} : null;
|
|
2531
|
-
},
|
|
2532
|
-
if (Array.isArray(t)) return t.map(
|
|
2547
|
+
}, Er = (t) => {
|
|
2548
|
+
if (Array.isArray(t)) return t.map(Er);
|
|
2533
2549
|
if ("object" != typeof t || null === t) return t;
|
|
2534
2550
|
const e = {};
|
|
2535
|
-
for (const [n, r] of Object.entries(t)) "unknown" !== n && (e[n] =
|
|
2551
|
+
for (const [n, r] of Object.entries(t)) "unknown" !== n && (e[n] = Er(r));
|
|
2536
2552
|
return e;
|
|
2537
|
-
},
|
|
2538
|
-
const n = t.chart?.plotArea?.groups ?? [], r = n.map((t) =>
|
|
2553
|
+
}, Br = (t, e) => {
|
|
2554
|
+
const n = t.chart?.plotArea?.groups ?? [], r = n.map((t) => Rr(t.type)).find((t) => null !== t) ?? e?.family ?? "chart", s = n.filter((t) => Rr(t.type) !== r).map((t) => t.type);
|
|
2539
2555
|
let o = t;
|
|
2540
2556
|
if (s.length > 0) {
|
|
2541
2557
|
const e = {
|
|
2542
2558
|
...t.chart.plotArea,
|
|
2543
|
-
groups: n.filter((t) =>
|
|
2559
|
+
groups: n.filter((t) => Rr(t.type) === r)
|
|
2544
2560
|
};
|
|
2545
2561
|
o = {
|
|
2546
2562
|
...t,
|
|
@@ -2551,12 +2567,12 @@ var l = [
|
|
|
2551
2567
|
};
|
|
2552
2568
|
}
|
|
2553
2569
|
const i = (e?.family ?? r) === r;
|
|
2554
|
-
i || (o =
|
|
2570
|
+
i || (o = Er(o));
|
|
2555
2571
|
const a = i ? e?.xml : void 0;
|
|
2556
2572
|
return {
|
|
2557
2573
|
family: r,
|
|
2558
2574
|
leftOut: s,
|
|
2559
|
-
xml: "chartEx" === r ?
|
|
2575
|
+
xml: "chartEx" === r ? $r(o, a) : fn(o, a)
|
|
2560
2576
|
};
|
|
2561
2577
|
};
|
|
2562
|
-
export { c as a, d as c,
|
|
2578
|
+
export { c as a, d as c, Br as i, l, Ar as n, h as o, Mr as r, b as s, jr as t };
|