@iota-uz/sdk 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat-ui/index.js +658 -656
- package/dist/client-host/identity.d.ts +4 -4
- package/dist/client-host/identity.js +2 -2
- package/dist/lens/{CascadePanel-BRmkM66c.js → CascadePanel-bXr7ekeZ.js} +74 -74
- package/dist/lens/{ChartDataEquivalent-CcGY9owW.js → ChartDataEquivalent-ZsncHfTF.js} +1 -1
- package/dist/lens/{ChartPanel-CdQYCwUh.js → ChartPanel-Cku9c87t.js} +105 -105
- package/dist/lens/{CoveragePanel-BdbUu97M.js → CoveragePanel-DE3fi5c7.js} +36 -36
- package/dist/lens/{GaugePanel-BPSnyl2f.js → GaugePanel-DwR4zylR.js} +8 -8
- package/dist/lens/{MapPanel-CMGzE0bO.js → MapPanel-DJSiLZSz.js} +22 -22
- package/dist/lens/{MetricFlowPanel-Qo6h8eYB.js → MetricFlowPanel-Dsp_ntas.js} +15 -15
- package/dist/lens/{MetricHierarchyPanel-M6Jj_8f3.js → MetricHierarchyPanel-BYcy4FNw.js} +19 -19
- package/dist/lens/{MetricRelationshipPanel-o1JgnNB5.js → MetricRelationshipPanel-Gh5RKIu1.js} +20 -20
- package/dist/lens/PrintReport-RnKpLle9.js +1954 -0
- package/dist/lens/QualityChip-BxAn3wh6.js +90 -0
- package/dist/lens/TablePanel-DU_ydQ1x.js +980 -0
- package/dist/lens/{adapter-LlQCVH2d.js → adapter-CZZIKpwb.js} +7 -7
- package/dist/lens/contract/schemas.d.ts +4 -0
- package/dist/lens/contract/schemas.d.ts.map +1 -1
- package/dist/lens/contract/types.d.ts +23 -0
- package/dist/lens/contract/types.d.ts.map +1 -1
- package/dist/lens/{dashboardEdit-CzTrZ9GY.js → dashboardEdit-BLzL02OH.js} +31 -31
- package/dist/lens/formula/FormulaTip.d.ts +20 -0
- package/dist/lens/formula/FormulaTip.d.ts.map +1 -0
- package/dist/lens/formula/FormulaView.d.ts +34 -0
- package/dist/lens/formula/FormulaView.d.ts.map +1 -0
- package/dist/lens/formula/PanelFormula.d.ts +17 -0
- package/dist/lens/formula/PanelFormula.d.ts.map +1 -0
- package/dist/lens/formula/element.d.ts +22 -0
- package/dist/lens/formula/element.d.ts.map +1 -0
- package/dist/lens/formula/values.d.ts +20 -0
- package/dist/lens/formula/values.d.ts.map +1 -0
- package/dist/lens/icons.d.ts +5 -0
- package/dist/lens/icons.d.ts.map +1 -1
- package/dist/lens/{index-C9_EJaLN.js → index-BJIuggdQ.js} +6232 -5521
- package/dist/lens/{index-ha5KBmiS.js → index-Dm3Y4NDq.js} +1 -1
- package/dist/lens/index.d.ts +2 -0
- package/dist/lens/index.d.ts.map +1 -1
- package/dist/lens/index.js +57 -54
- package/dist/lens/{install-B0hhW_BN.js → install-C48hgC9S.js} +1 -1
- package/dist/lens/{install-z4ugcXiK.js → install-DB0eod1K.js} +1 -1
- package/dist/lens/{install-0VKAMdaz.js → install-DCaRpfvv.js} +1 -1
- package/dist/lens/{install-D50hM31K.js → install-pvJpTP1f.js} +1 -1
- package/dist/lens/katex-B6_r1m5T.js +11681 -0
- package/dist/lens/{keys-B3RofDXR.js → keys-BAkGzg_y.js} +2 -2
- package/dist/lens/panels/PanelFrame.d.ts.map +1 -1
- package/dist/lens/panels/StatPanel.d.ts.map +1 -1
- package/dist/lens/panels/TablePanel.d.ts.map +1 -1
- package/dist/lens/{prefetch-BGXardWv.js → prefetch-j8VKR0tY.js} +2 -2
- package/dist/lens/{prefetchPanels-DXHorJDF.js → prefetchPanels-vwQqxrs4.js} +1 -1
- package/dist/lens/print/PrintReport.d.ts.map +1 -1
- package/dist/lens/print/formula.d.ts +9 -0
- package/dist/lens/print/formula.d.ts.map +1 -1
- package/dist/lens/{print-BSeT1zzv.js → print-CuBcYmVF.js} +1 -1
- package/dist/lens/runtime/messages.d.ts.map +1 -1
- package/dist/lens/runtime/provider.d.ts +1 -0
- package/dist/lens/runtime/provider.d.ts.map +1 -1
- package/dist/lens/{scales-nh-3WZ_4.js → scales-BSDq-uby.js} +3 -3
- package/dist/lens/style.css +1 -1
- package/dist/sdk-identity.cjs +3 -3
- package/dist/sdk-identity.js +3 -3
- package/dist/sdk-identity.json +2 -2
- package/package.json +1 -1
- package/dist/lens/PrintReport-xIL8mIuB.js +0 -1907
- package/dist/lens/TablePanel-DXQcrnkI.js +0 -947
- package/dist/lens/metricViews-KImVDfFt.js +0 -211
|
@@ -1,1907 +0,0 @@
|
|
|
1
|
-
import { createComponent as u, insert as r, effect as V, setAttribute as R, template as b, memo as B, style as _e, Portal as qe, setStyleProperty as ee, className as oe } from "solid-js/web";
|
|
2
|
-
import { Show as w, createMemo as q, For as L, createContext as je, useContext as Be } from "solid-js";
|
|
3
|
-
import { u as I, c as Oe, d as K, e as Ue, g as We, h as ze, F as He, j as we, k as ye, m as xe, n as ke, o as Ce, s as Ge } from "./index-C9_EJaLN.js";
|
|
4
|
-
import { W as Qe, b as Je, a as Ye } from "./CascadePanel-BRmkM66c.js";
|
|
5
|
-
import { C as Xe, m as le, f as Ze } from "./keys-B3RofDXR.js";
|
|
6
|
-
import "solid-js/store";
|
|
7
|
-
import { r as Y, a as pe, c as et, b as tt, f as me, d as nt, h as rt } from "./metricViews-KImVDfFt.js";
|
|
8
|
-
import { relationshipSentence as lt } from "./MetricRelationshipPanel-o1JgnNB5.js";
|
|
9
|
-
var it = /* @__PURE__ */ b("<span class=lens-print-chip>");
|
|
10
|
-
function at(e, t) {
|
|
11
|
-
const l = Y(e);
|
|
12
|
-
return l ? t(l.meta.labelKey, l.meta.fallback) : void 0;
|
|
13
|
-
}
|
|
14
|
-
function st(e, t) {
|
|
15
|
-
const l = Y(e);
|
|
16
|
-
if (l) {
|
|
17
|
-
if (l.axis === "availability")
|
|
18
|
-
return t("print.noteUnavailable", "Not available: the source is not calculated or not configured, so the figure is shown as a dash rather than as a zero.");
|
|
19
|
-
if (l.value === "proxy")
|
|
20
|
-
return t("print.noteProxy", "Proxy: a management estimate derived from adjacent data, not a figure taken from the accounting system.");
|
|
21
|
-
if (l.value === "requires_reconciliation")
|
|
22
|
-
return t("print.noteReconciliation", "Requires reconciliation: a known difference against the accounting system has not been resolved.");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const ge = {
|
|
26
|
-
verified: {
|
|
27
|
-
labelKey: "print.defVerified",
|
|
28
|
-
fallback: "Verified — the figure is taken from the accounting system as recorded, without derivation."
|
|
29
|
-
},
|
|
30
|
-
calculated: {
|
|
31
|
-
labelKey: "print.defCalculated",
|
|
32
|
-
fallback: "Calculated — derived from recorded data by a stated rule; the rule, not the figure, is what to check."
|
|
33
|
-
},
|
|
34
|
-
proxy: {
|
|
35
|
-
labelKey: "print.defProxy",
|
|
36
|
-
fallback: "Proxy — a management estimate from adjacent data, used where the direct source does not exist."
|
|
37
|
-
},
|
|
38
|
-
requires_reconciliation: {
|
|
39
|
-
labelKey: "print.defReconciliation",
|
|
40
|
-
fallback: "Requires reconciliation — a known difference against the accounting system is still open."
|
|
41
|
-
},
|
|
42
|
-
config_required: {
|
|
43
|
-
labelKey: "print.defConfigRequired",
|
|
44
|
-
fallback: "Configuration required — the calculation exists but its parameters have not been set for this period."
|
|
45
|
-
},
|
|
46
|
-
empty_source: {
|
|
47
|
-
labelKey: "print.defEmptySource",
|
|
48
|
-
fallback: "No source data — the source holds no rows for this period, which is not the same as a zero."
|
|
49
|
-
},
|
|
50
|
-
unavailable: {
|
|
51
|
-
labelKey: "print.defUnavailable",
|
|
52
|
-
fallback: "Unavailable — the figure could not be produced, and is shown as a dash rather than as a zero."
|
|
53
|
-
}
|
|
54
|
-
}, ot = /* @__PURE__ */ new Set(["config_required", "empty_source", "unavailable"]);
|
|
55
|
-
function ct(e, t) {
|
|
56
|
-
const l = /* @__PURE__ */ new Set(), i = Object.keys(ge);
|
|
57
|
-
for (const n of e) {
|
|
58
|
-
const a = Y(n);
|
|
59
|
-
a && l.add(a.value);
|
|
60
|
-
}
|
|
61
|
-
return i.filter((n) => l.has(n)).map((n) => {
|
|
62
|
-
const a = ge[n], c = ot.has(n) ? {
|
|
63
|
-
availability: n
|
|
64
|
-
} : {
|
|
65
|
-
confidence: n
|
|
66
|
-
};
|
|
67
|
-
return {
|
|
68
|
-
value: n,
|
|
69
|
-
label: at(c, t) ?? n,
|
|
70
|
-
definition: t(a.labelKey, a.fallback)
|
|
71
|
-
};
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function X(e) {
|
|
75
|
-
const t = I(), l = Y({
|
|
76
|
-
confidence: e.confidence,
|
|
77
|
-
availability: e.availability
|
|
78
|
-
});
|
|
79
|
-
return u(w, {
|
|
80
|
-
when: l,
|
|
81
|
-
children: (i) => (() => {
|
|
82
|
-
var n = it();
|
|
83
|
-
return r(n, () => t(i().meta.labelKey, i().meta.fallback)), V(() => R(n, "data-quality", i().value)), n;
|
|
84
|
-
})()
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
const Se = /* @__PURE__ */ new Set(["pie", "donut", "radial", "bar", "hbar", "line", "area"]), Fe = /* @__PURE__ */ new Set(["metric_flow", "metric_hierarchy", "metric_relationship"]);
|
|
88
|
-
function Q(e) {
|
|
89
|
-
if (typeof e == "number" && Number.isFinite(e)) return e;
|
|
90
|
-
if (typeof e == "string" && e.trim() !== "") {
|
|
91
|
-
const t = Number(e);
|
|
92
|
-
if (Number.isFinite(t)) return t;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
function W(e) {
|
|
96
|
-
return e == null ? "—" : typeof e == "string" ? e || "—" : typeof e == "number" || typeof e == "boolean" || typeof e == "bigint" ? String(e) : "—";
|
|
97
|
-
}
|
|
98
|
-
function A(e, t) {
|
|
99
|
-
return t ? e.columns.findIndex(({ name: l }) => l === t) : -1;
|
|
100
|
-
}
|
|
101
|
-
function ut(e, t) {
|
|
102
|
-
const l = { ...e.format };
|
|
103
|
-
for (const [i, n] of Object.entries(t)) {
|
|
104
|
-
const a = e.encoding[i];
|
|
105
|
-
n && a && e.format[a] && !l[n] && (l[n] = e.format[a]);
|
|
106
|
-
}
|
|
107
|
-
return l;
|
|
108
|
-
}
|
|
109
|
-
function dt(e, t) {
|
|
110
|
-
return e === "partition" ? ["pie", "donut", "bar", "hbar"].includes(t) ? t : "donut" : e === "reconciliation" ? "cascade" : e === "series" ? "line" : "table";
|
|
111
|
-
}
|
|
112
|
-
function E(e) {
|
|
113
|
-
var a;
|
|
114
|
-
const t = ((a = e.perspective) == null ? void 0 : a.semantics) ?? e.panel.semantics, l = e.level.encoding ?? e.panel.encoding, n = e.root || e.path.length === 0 ? e.panel.kind : e.level.view ?? dt(t, e.panel.kind);
|
|
115
|
-
return {
|
|
116
|
-
...Oe(e.panel, n),
|
|
117
|
-
title: e.level.label.trim() || e.panel.title,
|
|
118
|
-
semantics: t,
|
|
119
|
-
encoding: l,
|
|
120
|
-
format: ut(e.panel, l),
|
|
121
|
-
presentation: e.level.presentation ?? e.panel.presentation
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
function ht(e) {
|
|
125
|
-
if (!(!e || e.rows.length === 0))
|
|
126
|
-
return JSON.stringify([e.columns.map(({ name: t }) => t), e.rows]);
|
|
127
|
-
}
|
|
128
|
-
function ft(e) {
|
|
129
|
-
var i, n;
|
|
130
|
-
const t = E(e.section), l = [t];
|
|
131
|
-
for (const a of ((i = t.metricFlow) == null ? void 0 : i.stages) ?? []) l.push(a);
|
|
132
|
-
for (const a of ((n = t.metricHierarchy) == null ? void 0 : n.rows) ?? []) l.push(a);
|
|
133
|
-
return t.metricRelationship && l.push(t.metricRelationship.source, t.metricRelationship.target), l;
|
|
134
|
-
}
|
|
135
|
-
function pt(e) {
|
|
136
|
-
var n;
|
|
137
|
-
const t = E(e.section), l = e.section.frame;
|
|
138
|
-
if (!l || !((n = t.columns) != null && n.length)) return [];
|
|
139
|
-
const i = [];
|
|
140
|
-
for (const a of t.columns) {
|
|
141
|
-
const c = A(l, a.badgeField);
|
|
142
|
-
if (!(c < 0))
|
|
143
|
-
for (const s of l.rows) {
|
|
144
|
-
const o = W(s[c]).trim();
|
|
145
|
-
o && o !== "—" && i.push(o);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return i;
|
|
149
|
-
}
|
|
150
|
-
function mt(e, t) {
|
|
151
|
-
var n;
|
|
152
|
-
const l = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
153
|
-
for (const a of e) {
|
|
154
|
-
const c = E(a.section), s = [], o = (n = c.info) == null ? void 0 : n.trim();
|
|
155
|
-
o && s.push(o);
|
|
156
|
-
for (const f of ft(a)) {
|
|
157
|
-
const p = st(f, t);
|
|
158
|
-
p && s.push(p);
|
|
159
|
-
}
|
|
160
|
-
s.push(...pt(a));
|
|
161
|
-
const h = { markers: [], notes: [] };
|
|
162
|
-
for (const f of s) {
|
|
163
|
-
const p = l.get(f);
|
|
164
|
-
if (p !== void 0) {
|
|
165
|
-
h.markers.includes(p) || h.markers.push(p);
|
|
166
|
-
continue;
|
|
167
|
-
}
|
|
168
|
-
const m = l.size + 1;
|
|
169
|
-
l.set(f, m), h.markers.push(m), h.notes.push({ number: m, text: f });
|
|
170
|
-
}
|
|
171
|
-
h.markers.length > 0 && i.set(a.section.id, h);
|
|
172
|
-
}
|
|
173
|
-
return i;
|
|
174
|
-
}
|
|
175
|
-
const gt = 1e4, bt = [1e9, 1e6, 1e3];
|
|
176
|
-
function ie(e, t) {
|
|
177
|
-
if (e == null || e === "") return;
|
|
178
|
-
const l = typeof e == "number" ? e : Number(e);
|
|
179
|
-
if (Number.isFinite(l))
|
|
180
|
-
return t.minorUnits && t.kind === "money" ? l / 100 : l;
|
|
181
|
-
}
|
|
182
|
-
function vt(e, t) {
|
|
183
|
-
var n;
|
|
184
|
-
return ((n = new Intl.NumberFormat(t, { notation: "compact", compactDisplay: "short" }).formatToParts(e).find((a) => a.type === "compact")) == null ? void 0 : n.value.trim()) || void 0;
|
|
185
|
-
}
|
|
186
|
-
function $t(e, t, l, i) {
|
|
187
|
-
return K(e, {
|
|
188
|
-
...l,
|
|
189
|
-
kind: "number",
|
|
190
|
-
minorUnits: !1,
|
|
191
|
-
compact: !1,
|
|
192
|
-
currency: void 0,
|
|
193
|
-
symbol: void 0,
|
|
194
|
-
precision: i
|
|
195
|
-
}, t);
|
|
196
|
-
}
|
|
197
|
-
function ne(e, t, l) {
|
|
198
|
-
const i = { format: (p) => K(p, t, l) };
|
|
199
|
-
if (!t || t.kind !== "money" && t.kind !== "number") return i;
|
|
200
|
-
const n = e.map((p) => ie(p, t)).filter((p) => p !== void 0 && p !== 0);
|
|
201
|
-
if (n.length === 0) return i;
|
|
202
|
-
const a = t.kind === "money" ? (t.currency ?? "").trim() : "", c = n.map((p) => Math.abs(p)), s = Math.max(...c), o = Math.min(...c), h = s / o <= gt ? bt.find((p) => s >= p) : void 0, f = h ? vt(h, l) : void 0;
|
|
203
|
-
return h && f ? {
|
|
204
|
-
note: [f, a].filter(Boolean).join(" "),
|
|
205
|
-
format: (p) => {
|
|
206
|
-
const m = ie(p, t);
|
|
207
|
-
return m === void 0 ? K(p, t, l) : $t(m / h, l, t, 2);
|
|
208
|
-
}
|
|
209
|
-
} : a ? {
|
|
210
|
-
note: a,
|
|
211
|
-
format: (p) => {
|
|
212
|
-
const m = ie(p, t);
|
|
213
|
-
return m === void 0 ? K(p, t, l) : K(m, {
|
|
214
|
-
...t,
|
|
215
|
-
kind: "number",
|
|
216
|
-
minorUnits: !1,
|
|
217
|
-
currency: void 0,
|
|
218
|
-
symbol: void 0
|
|
219
|
-
}, l);
|
|
220
|
-
}
|
|
221
|
-
} : i;
|
|
222
|
-
}
|
|
223
|
-
var _t = /* @__PURE__ */ b("<p class=lens-print-formula-unit>"), wt = /* @__PURE__ */ b("<p class=lens-print-formula-note>"), yt = /* @__PURE__ */ b("<div class=lens-print-formula><ol class=lens-print-flow>"), Me = /* @__PURE__ */ b("<small>"), xt = /* @__PURE__ */ b("<li class=lens-print-flow-stage><span class=lens-print-flow-op></span><span class=lens-print-flow-label></span><span class=lens-print-flow-value>"), kt = /* @__PURE__ */ b("<div class=lens-print-formula><ul class=lens-print-hierarchy>"), Ct = /* @__PURE__ */ b("<em>"), St = /* @__PURE__ */ b("<span class=lens-print-hierarchy-reconcile>"), Ft = /* @__PURE__ */ b("<li class=lens-print-hierarchy-row><span class=lens-print-hierarchy-label></span><span class=lens-print-hierarchy-value></span><span class=lens-print-hierarchy-share>"), Mt = /* @__PURE__ */ b('<div class="lens-print-formula lens-print-relationship"><p class=lens-print-relationship-claim></p><div class=lens-print-relationship-ends></div><p class=lens-print-formula-note>'), Pt = /* @__PURE__ */ b("<span aria-hidden=true class=lens-print-relationship-glyph>"), Dt = /* @__PURE__ */ b("<div class=lens-print-relationship-end><span class=lens-print-relationship-label></span><span class=lens-print-relationship-value>");
|
|
224
|
-
function Tt(e, t) {
|
|
225
|
-
const l = I();
|
|
226
|
-
return q(() => {
|
|
227
|
-
if (t.frame)
|
|
228
|
-
return Ue(e, t.frame, {
|
|
229
|
-
missingColumn: (i) => l("panel.missingColumn", "Panel data is missing the “{column}” column.", {
|
|
230
|
-
column: i
|
|
231
|
-
}),
|
|
232
|
-
duplicateKey: (i) => l("panel.duplicateKey", "Panel data has a duplicate key “{key}”.", {
|
|
233
|
-
key: i
|
|
234
|
-
})
|
|
235
|
-
});
|
|
236
|
-
})();
|
|
237
|
-
}
|
|
238
|
-
function te(e, t, l = "value") {
|
|
239
|
-
const i = e.encoding[l];
|
|
240
|
-
return (n) => K(n, i ? e.format[i] : void 0, t);
|
|
241
|
-
}
|
|
242
|
-
function At(e) {
|
|
243
|
-
const t = I(), l = te(e.panel, e.locale), i = q(() => {
|
|
244
|
-
const c = [];
|
|
245
|
-
return me(e.panel, e.join, (s) => (c.push(s), "")), ne(c, e.panel.encoding.value ? e.panel.format[e.panel.encoding.value] : void 0, e.locale);
|
|
246
|
-
}), n = q(() => me(e.panel, e.join, (c) => i().format(c))), a = q(() => nt(e.panel, e.join));
|
|
247
|
-
return u(w, {
|
|
248
|
-
get when() {
|
|
249
|
-
return n().length > 0;
|
|
250
|
-
},
|
|
251
|
-
get children() {
|
|
252
|
-
var c = yt(), s = c.firstChild;
|
|
253
|
-
return r(c, u(w, {
|
|
254
|
-
get when() {
|
|
255
|
-
return i().note;
|
|
256
|
-
},
|
|
257
|
-
get children() {
|
|
258
|
-
var o = _t();
|
|
259
|
-
return r(o, () => i().note), o;
|
|
260
|
-
}
|
|
261
|
-
}), s), r(s, u(L, {
|
|
262
|
-
get each() {
|
|
263
|
-
return n();
|
|
264
|
-
},
|
|
265
|
-
children: (o) => (() => {
|
|
266
|
-
var h = xt(), f = h.firstChild, p = f.nextSibling, m = p.nextSibling;
|
|
267
|
-
return r(f, () => o.operator), r(p, () => o.stage.label, null), r(p, u(w, {
|
|
268
|
-
get when() {
|
|
269
|
-
return o.stage.caption;
|
|
270
|
-
},
|
|
271
|
-
get children() {
|
|
272
|
-
var x = Me();
|
|
273
|
-
return r(x, () => o.stage.caption), x;
|
|
274
|
-
}
|
|
275
|
-
}), null), r(m, (() => {
|
|
276
|
-
var x = B(() => !!o.showDash);
|
|
277
|
-
return () => x() ? "—" : o.text;
|
|
278
|
-
})(), null), r(m, u(X, {
|
|
279
|
-
get confidence() {
|
|
280
|
-
return o.confidence;
|
|
281
|
-
},
|
|
282
|
-
get availability() {
|
|
283
|
-
return o.availability;
|
|
284
|
-
}
|
|
285
|
-
}), null), V(() => R(h, "data-result", o.role === "result" || void 0)), h;
|
|
286
|
-
})()
|
|
287
|
-
})), r(c, u(w, {
|
|
288
|
-
get when() {
|
|
289
|
-
return a() !== void 0;
|
|
290
|
-
},
|
|
291
|
-
get children() {
|
|
292
|
-
var o = wt();
|
|
293
|
-
return r(o, () => t("flow.difference", "Difference: {delta}", {
|
|
294
|
-
delta: l(a())
|
|
295
|
-
})), o;
|
|
296
|
-
}
|
|
297
|
-
}), null), c;
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
function Kt(e) {
|
|
302
|
-
const t = I(), l = te(e.panel, e.locale), i = te(e.panel, e.locale, "share"), n = q(() => rt(e.panel, e.join, l, i));
|
|
303
|
-
return u(w, {
|
|
304
|
-
get when() {
|
|
305
|
-
return n().length > 0;
|
|
306
|
-
},
|
|
307
|
-
get children() {
|
|
308
|
-
var a = kt(), c = a.firstChild;
|
|
309
|
-
return r(c, u(L, {
|
|
310
|
-
get each() {
|
|
311
|
-
return n();
|
|
312
|
-
},
|
|
313
|
-
children: (s) => (() => {
|
|
314
|
-
var o = Ft(), h = o.firstChild, f = h.nextSibling, p = f.nextSibling;
|
|
315
|
-
return r(h, () => s.row.label, null), r(h, u(w, {
|
|
316
|
-
get when() {
|
|
317
|
-
return s.row.unallocated;
|
|
318
|
-
},
|
|
319
|
-
get children() {
|
|
320
|
-
var m = Ct();
|
|
321
|
-
return r(m, () => t("hierarchy.unallocated", "Unallocated")), m;
|
|
322
|
-
}
|
|
323
|
-
}), null), r(h, u(w, {
|
|
324
|
-
get when() {
|
|
325
|
-
return s.row.description;
|
|
326
|
-
},
|
|
327
|
-
get children() {
|
|
328
|
-
var m = Me();
|
|
329
|
-
return r(m, () => s.row.description), m;
|
|
330
|
-
}
|
|
331
|
-
}), null), r(f, (() => {
|
|
332
|
-
var m = B(() => !!s.showDash);
|
|
333
|
-
return () => m() ? "—" : s.valueText;
|
|
334
|
-
})(), null), r(f, u(X, {
|
|
335
|
-
get confidence() {
|
|
336
|
-
return s.confidence;
|
|
337
|
-
},
|
|
338
|
-
get availability() {
|
|
339
|
-
return s.availability;
|
|
340
|
-
}
|
|
341
|
-
}), null), r(p, () => s.shareText ?? ""), r(o, u(w, {
|
|
342
|
-
get when() {
|
|
343
|
-
return s.reconcile;
|
|
344
|
-
},
|
|
345
|
-
get children() {
|
|
346
|
-
var m = St();
|
|
347
|
-
return r(m, (() => {
|
|
348
|
-
var x = B(() => !!s.reconcile.balanced);
|
|
349
|
-
return () => x() ? t("hierarchy.allocated", "Allocated 100%") : t("hierarchy.difference", "Difference: {delta}", {
|
|
350
|
-
delta: l(s.reconcile.delta)
|
|
351
|
-
});
|
|
352
|
-
})()), m;
|
|
353
|
-
}
|
|
354
|
-
}), null), V((m) => {
|
|
355
|
-
var x = s.isParent || void 0, v = {
|
|
356
|
-
"--lens-depth": s.depth
|
|
357
|
-
};
|
|
358
|
-
return x !== m.e && R(o, "data-parent", m.e = x), m.t = _e(o, v, m.t), m;
|
|
359
|
-
}, {
|
|
360
|
-
e: void 0,
|
|
361
|
-
t: void 0
|
|
362
|
-
}), o;
|
|
363
|
-
})()
|
|
364
|
-
})), a;
|
|
365
|
-
}
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
function Nt(e) {
|
|
369
|
-
const t = I(), l = te(e.panel, e.locale), i = e.panel.metricRelationship;
|
|
370
|
-
return u(w, {
|
|
371
|
-
when: i,
|
|
372
|
-
children: (n) => {
|
|
373
|
-
const a = pe(e.panel, e.join, n().source, l), c = pe(e.panel, e.join, n().target, l), s = et(n()).horizontal;
|
|
374
|
-
return (() => {
|
|
375
|
-
var o = Mt(), h = o.firstChild, f = h.nextSibling, p = f.nextSibling;
|
|
376
|
-
return r(h, () => lt(t, n(), (a == null ? void 0 : a.end.label) ?? "", (c == null ? void 0 : c.end.label) ?? "")), r(f, u(L, {
|
|
377
|
-
each: [a, c],
|
|
378
|
-
children: (m, x) => (() => {
|
|
379
|
-
var v = Dt(), y = v.firstChild, g = y.nextSibling;
|
|
380
|
-
return r(y, () => (m == null ? void 0 : m.end.label) ?? "—"), r(g, (() => {
|
|
381
|
-
var _ = B(() => !!(!m || m.showDash));
|
|
382
|
-
return () => _() ? "—" : m.valueText;
|
|
383
|
-
})(), null), r(g, u(X, {
|
|
384
|
-
get confidence() {
|
|
385
|
-
return m == null ? void 0 : m.confidence;
|
|
386
|
-
},
|
|
387
|
-
get availability() {
|
|
388
|
-
return m == null ? void 0 : m.availability;
|
|
389
|
-
}
|
|
390
|
-
}), null), r(v, u(w, {
|
|
391
|
-
get when() {
|
|
392
|
-
return x() === 0;
|
|
393
|
-
},
|
|
394
|
-
get children() {
|
|
395
|
-
var _ = Pt();
|
|
396
|
-
return r(_, s), _;
|
|
397
|
-
}
|
|
398
|
-
}), null), v;
|
|
399
|
-
})()
|
|
400
|
-
})), r(p, () => t(`relationship.type.${n().type}`, tt[n().type]), null), r(p, (() => {
|
|
401
|
-
var m = B(() => !!n().note);
|
|
402
|
-
return () => m() ? ` · ${n().note}` : "";
|
|
403
|
-
})(), null), o;
|
|
404
|
-
})();
|
|
405
|
-
}
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
function Pe(e) {
|
|
409
|
-
const t = q(() => E(e.section)), l = Tt(t(), e.section), i = e.section.document.meta.locale;
|
|
410
|
-
return t().kind === "metric_relationship" ? u(Nt, {
|
|
411
|
-
join: l,
|
|
412
|
-
locale: i,
|
|
413
|
-
get panel() {
|
|
414
|
-
return t();
|
|
415
|
-
}
|
|
416
|
-
}) : !l || l.kind !== "ok" ? null : t().kind === "metric_flow" ? u(At, {
|
|
417
|
-
join: l,
|
|
418
|
-
locale: i,
|
|
419
|
-
get panel() {
|
|
420
|
-
return t();
|
|
421
|
-
}
|
|
422
|
-
}) : t().kind === "metric_hierarchy" ? u(Kt, {
|
|
423
|
-
join: l,
|
|
424
|
-
locale: i,
|
|
425
|
-
get panel() {
|
|
426
|
-
return t();
|
|
427
|
-
}
|
|
428
|
-
}) : null;
|
|
429
|
-
}
|
|
430
|
-
function Z(e, t, l) {
|
|
431
|
-
const i = A(t, e.encoding.label ?? e.encoding.category ?? e.encoding.id), n = A(t, e.encoding.value), a = A(t, e.encoding.series);
|
|
432
|
-
if (n < 0) return [];
|
|
433
|
-
const c = e.encoding.value ? e.format[e.encoding.value] : void 0, s = [];
|
|
434
|
-
return t.rows.forEach((o, h) => {
|
|
435
|
-
const f = Q(o[n]);
|
|
436
|
-
f !== void 0 && s.push({
|
|
437
|
-
row: h,
|
|
438
|
-
group: a >= 0 ? W(o[a]) : "",
|
|
439
|
-
label: i >= 0 ? W(o[i]) : W(o[n]),
|
|
440
|
-
value: f,
|
|
441
|
-
formatted: K(o[n], c, l)
|
|
442
|
-
});
|
|
443
|
-
}), s;
|
|
444
|
-
}
|
|
445
|
-
function G(e, t) {
|
|
446
|
-
return new Intl.NumberFormat(e, {
|
|
447
|
-
style: "percent",
|
|
448
|
-
minimumFractionDigits: t >= 0.1 ? 0 : 1,
|
|
449
|
-
maximumFractionDigits: 1
|
|
450
|
-
}).format(t);
|
|
451
|
-
}
|
|
452
|
-
function Rt(e, t, l) {
|
|
453
|
-
const i = Z(e, t, l).filter(({ value: f }) => f > 0);
|
|
454
|
-
if (i.length < 2) return;
|
|
455
|
-
const n = [...i].sort((f, p) => p.value - f.value)[0], a = i.filter(({ group: f }) => f === n.group);
|
|
456
|
-
if (a.length < 2) return;
|
|
457
|
-
const c = a.reduce((f, { value: p }) => f + p, 0);
|
|
458
|
-
if (c <= 0) return;
|
|
459
|
-
const s = [...a].sort((f, p) => p.value - f.value), o = s[0];
|
|
460
|
-
if (s.length === 2)
|
|
461
|
-
return {
|
|
462
|
-
labelKey: "print.factPair",
|
|
463
|
-
fallback: "{label} carries {share} of the total; the remainder is {rest}.",
|
|
464
|
-
vars: {
|
|
465
|
-
label: o.label,
|
|
466
|
-
share: G(l, o.value / c),
|
|
467
|
-
rest: s[1].label
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
const h = s.slice(0, 3).reduce((f, { value: p }) => f + p, 0);
|
|
471
|
-
return s.length === 3 ? {
|
|
472
|
-
labelKey: "print.factPartitionAll",
|
|
473
|
-
fallback: "{label} is the largest of the three at {share}; together they make the whole.",
|
|
474
|
-
vars: {
|
|
475
|
-
label: o.label,
|
|
476
|
-
share: G(l, o.value / c)
|
|
477
|
-
}
|
|
478
|
-
} : {
|
|
479
|
-
labelKey: "print.factPartition",
|
|
480
|
-
fallback: "{label} is the largest share at {share}; the three largest together make {top}, ahead of {rest} smaller categories.",
|
|
481
|
-
vars: {
|
|
482
|
-
label: o.label,
|
|
483
|
-
share: G(l, o.value / c),
|
|
484
|
-
top: G(l, h / c),
|
|
485
|
-
rest: s.length - 3
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
|
-
}
|
|
489
|
-
function Lt(e, t, l) {
|
|
490
|
-
var s;
|
|
491
|
-
const i = (s = e.radial) == null ? void 0 : s.max;
|
|
492
|
-
if (!i || i <= 0) return;
|
|
493
|
-
const a = Z(e, t, l).reduce((o, { value: h }) => o + Math.max(0, h), 0);
|
|
494
|
-
if (a <= 0) return;
|
|
495
|
-
const c = e.encoding.value ? e.format[e.encoding.value] : void 0;
|
|
496
|
-
return {
|
|
497
|
-
labelKey: "print.factProgress",
|
|
498
|
-
fallback: "{value} of {max} — {share} covered.",
|
|
499
|
-
vars: {
|
|
500
|
-
value: K(a, c, l),
|
|
501
|
-
max: K(i, c, l),
|
|
502
|
-
share: G(l, Math.min(a / i, 1))
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
function Et(e, t, l) {
|
|
507
|
-
const i = Z(e, t, l);
|
|
508
|
-
if (i.length < 2) return;
|
|
509
|
-
const n = A(t, e.encoding.final), a = i[0], c = i.find(({ row: h }) => {
|
|
510
|
-
var f;
|
|
511
|
-
return n >= 0 && ((f = t.rows[h]) == null ? void 0 : f[n]) === !0;
|
|
512
|
-
}) ?? i[i.length - 1], s = i.filter((h) => h !== a && h !== c && h.value < 0).sort((h, f) => h.value - f.value)[0];
|
|
513
|
-
if (!s)
|
|
514
|
-
return {
|
|
515
|
-
labelKey: "print.factBridgeEnds",
|
|
516
|
-
fallback: "{start} becomes {end}.",
|
|
517
|
-
vars: { start: a.formatted, end: c.formatted }
|
|
518
|
-
};
|
|
519
|
-
const o = {
|
|
520
|
-
start: a.formatted,
|
|
521
|
-
end: c.formatted,
|
|
522
|
-
label: s.label,
|
|
523
|
-
amount: s.formatted
|
|
524
|
-
};
|
|
525
|
-
return a.value <= 0 ? {
|
|
526
|
-
labelKey: "print.factBridgeBare",
|
|
527
|
-
fallback: "{start} becomes {end}; the largest deduction is {label} at {amount}.",
|
|
528
|
-
vars: o
|
|
529
|
-
} : {
|
|
530
|
-
labelKey: "print.factBridge",
|
|
531
|
-
fallback: "{start} becomes {end}; the largest deduction is {label} at {amount} — {share} of the opening amount.",
|
|
532
|
-
vars: { ...o, share: G(l, Math.abs(s.value) / a.value) }
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
function It(e, t, l) {
|
|
536
|
-
const i = Z(e, t, l);
|
|
537
|
-
if (i.length < 2) return;
|
|
538
|
-
const n = i[0], a = i[i.length - 1], c = [...i].sort((h, f) => f.value - h.value)[0], s = {
|
|
539
|
-
first: n.formatted,
|
|
540
|
-
firstLabel: n.label,
|
|
541
|
-
last: a.formatted,
|
|
542
|
-
lastLabel: a.label,
|
|
543
|
-
peak: c.formatted,
|
|
544
|
-
peakLabel: c.label
|
|
545
|
-
};
|
|
546
|
-
if (n.value === 0)
|
|
547
|
-
return {
|
|
548
|
-
labelKey: "print.factSeriesBare",
|
|
549
|
-
fallback: "{first} at {firstLabel}, {last} at {lastLabel}; the peak is {peak} at {peakLabel}.",
|
|
550
|
-
vars: s
|
|
551
|
-
};
|
|
552
|
-
const o = (a.value - n.value) / Math.abs(n.value);
|
|
553
|
-
return {
|
|
554
|
-
labelKey: "print.factSeries",
|
|
555
|
-
fallback: "{first} at {firstLabel} to {last} at {lastLabel} ({change}); the peak is {peak} at {peakLabel}.",
|
|
556
|
-
vars: { ...s, change: `${o >= 0 ? "+" : "−"}${G(l, Math.abs(o))}` }
|
|
557
|
-
};
|
|
558
|
-
}
|
|
559
|
-
function Vt(e, t, l) {
|
|
560
|
-
if (t.rows.length < 2) return;
|
|
561
|
-
const n = [...Z(e, t, l)].sort((a, c) => c.value - a.value)[0];
|
|
562
|
-
return n ? {
|
|
563
|
-
labelKey: "print.factTable",
|
|
564
|
-
fallback: "{rows} rows; the largest is {label} at {value}.",
|
|
565
|
-
vars: { rows: t.rows.length, label: n.label, value: n.formatted }
|
|
566
|
-
} : {
|
|
567
|
-
labelKey: "print.factRows",
|
|
568
|
-
fallback: "{rows} rows.",
|
|
569
|
-
vars: { rows: t.rows.length }
|
|
570
|
-
};
|
|
571
|
-
}
|
|
572
|
-
function qt(e, t, l = 4) {
|
|
573
|
-
var n;
|
|
574
|
-
const i = [];
|
|
575
|
-
for (const a of e) {
|
|
576
|
-
if (i.length >= l) break;
|
|
577
|
-
const { panel: c, frame: s } = a, o = c.encoding.value, h = o ? c.format[o] : void 0, f = s ? A(s, o) : -1, p = (s == null ? void 0 : s.rows.length) === 1 && f >= 0 ? (n = s.rows[0]) == null ? void 0 : n[f] : void 0, m = p !== void 0 ? K(p, h, t) : c.total !== void 0 ? K(c.total, h, t) : void 0;
|
|
578
|
-
m && i.push({ id: a.id, label: c.title, value: m });
|
|
579
|
-
}
|
|
580
|
-
return i.length >= 2 ? i : [];
|
|
581
|
-
}
|
|
582
|
-
function jt(e, t, l) {
|
|
583
|
-
var i;
|
|
584
|
-
if (!(!t || t.rows.length === 0))
|
|
585
|
-
return ((i = e.radial) == null ? void 0 : i.mode) === "progress" ? Lt(e, t, l) : e.semantics === "partition" ? Rt(e, t, l) : e.semantics === "reconciliation" ? Et(e, t, l) : e.semantics === "series" && (e.kind === "line" || e.kind === "area") ? It(e, t, l) : Vt(e, t, l);
|
|
586
|
-
}
|
|
587
|
-
function Bt(e) {
|
|
588
|
-
var l, i;
|
|
589
|
-
const t = [];
|
|
590
|
-
for (const n of e.panels) {
|
|
591
|
-
t.push(n);
|
|
592
|
-
for (const a of ((l = n.metricFlow) == null ? void 0 : l.stages) ?? []) t.push(a);
|
|
593
|
-
for (const a of ((i = n.metricHierarchy) == null ? void 0 : i.rows) ?? []) t.push(a);
|
|
594
|
-
n.metricRelationship && t.push(n.metricRelationship.source, n.metricRelationship.target);
|
|
595
|
-
}
|
|
596
|
-
return t;
|
|
597
|
-
}
|
|
598
|
-
const Ot = /* @__PURE__ */ new Set(["stat", "metric_relationship"]);
|
|
599
|
-
function Ut(e) {
|
|
600
|
-
return e.kind === "stat" || e.kind === "metric_relationship" || e.kind === "pie" || e.kind === "donut" || e.kind === "radial" ? "half" : "full";
|
|
601
|
-
}
|
|
602
|
-
function Wt(e) {
|
|
603
|
-
var n;
|
|
604
|
-
const t = [...e.groups ?? []].reverse(), l = t.find((a) => a.label || a.caption) ?? t.find((a) => a.filterContext), i = (n = t.find((a) => a.filterContext)) == null ? void 0 : n.filterContext;
|
|
605
|
-
return l ? { ...l, ...i ? { filterContext: i } : {} } : void 0;
|
|
606
|
-
}
|
|
607
|
-
function zt(e, t, l) {
|
|
608
|
-
const i = t == null ? void 0 : t.trim();
|
|
609
|
-
return i || (e === 0 ? l : "");
|
|
610
|
-
}
|
|
611
|
-
function Ht(e, t, l) {
|
|
612
|
-
const i = e.document, n = [], a = [], c = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
|
|
613
|
-
let o = 0;
|
|
614
|
-
const h = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map();
|
|
615
|
-
for (const d of e.sections) {
|
|
616
|
-
if (d.owner) {
|
|
617
|
-
const M = p.get(d.owner) ?? [];
|
|
618
|
-
M.push(d), p.set(d.owner, M);
|
|
619
|
-
continue;
|
|
620
|
-
}
|
|
621
|
-
const $ = d.root ? h : f, k = $.get(d.panel.id) ?? [];
|
|
622
|
-
k.push(d), $.set(d.panel.id, k);
|
|
623
|
-
}
|
|
624
|
-
const m = (d, $) => {
|
|
625
|
-
const k = E(d), M = ht(d.frame);
|
|
626
|
-
if (!M)
|
|
627
|
-
return a.push(k.title), !1;
|
|
628
|
-
if ($ === "owned") return !0;
|
|
629
|
-
const S = c.get(M);
|
|
630
|
-
return S !== void 0 && ($ === "detail" || S === d.panel.id) ? !1 : (S === void 0 && c.set(M, d.panel.id), !0);
|
|
631
|
-
}, x = (d, $) => {
|
|
632
|
-
const k = n[n.length - 1];
|
|
633
|
-
if (!d && k) return k;
|
|
634
|
-
if (k && k.title === d)
|
|
635
|
-
return !k.caption && $ && (k.caption = $), k;
|
|
636
|
-
const M = {
|
|
637
|
-
id: `chapter-${n.length + 1}`,
|
|
638
|
-
number: n.length + 1,
|
|
639
|
-
title: d,
|
|
640
|
-
...$ ? { caption: $ } : {},
|
|
641
|
-
figures: [],
|
|
642
|
-
details: []
|
|
643
|
-
};
|
|
644
|
-
return n.push(M), M;
|
|
645
|
-
}, v = (d, $, k) => {
|
|
646
|
-
var T;
|
|
647
|
-
if (!m($, "figure")) return;
|
|
648
|
-
const M = E($), S = (((T = $.frame) == null ? void 0 : T.rows.length) ?? 0) <= 1, D = (p.get($.panel.id) ?? []).filter((N) => m(N, "owned") ? (s.add(N), !0) : !1);
|
|
649
|
-
d.figures.push({
|
|
650
|
-
section: $,
|
|
651
|
-
number: `${d.number}.${d.figures.length + 1}`,
|
|
652
|
-
chart: Se.has(M.kind) && !S,
|
|
653
|
-
metric: S,
|
|
654
|
-
// A reading that prints its calculation needs the width to hold it; half
|
|
655
|
-
// a page beside another figure is where the two collide.
|
|
656
|
-
width: D.length > 0 ? "full" : S ? "half" : Ut(M),
|
|
657
|
-
...k && (k.label || k.caption || k.filterContext) ? { group: { id: k.id, ...k.filterContext ? { filterContext: k.filterContext } : {}, ...k.label ? { label: k.label } : {}, ...k.caption ? { caption: k.caption } : {} } } : {},
|
|
658
|
-
// The opening chapter's single-value readings are the dashboard's
|
|
659
|
-
// headline; the cover carries them so page one is already informative.
|
|
660
|
-
kpi: d.number === 1 && S && Ot.has(M.kind) && o++ < 6,
|
|
661
|
-
breakdown: D
|
|
662
|
-
});
|
|
663
|
-
}, y = (d, $) => {
|
|
664
|
-
m($, "detail") && d.details.push({
|
|
665
|
-
section: $,
|
|
666
|
-
number: `A${d.number}.${d.details.length + 1}`,
|
|
667
|
-
// The first segments of the trail repeat the appendix group's own title
|
|
668
|
-
// on every one of its nine details. What locates a detail is where it
|
|
669
|
-
// ends, not the path it shares with its neighbours.
|
|
670
|
-
trail: $.breadcrumb.filter((k, M, S) => k && k !== S[M - 1]).slice(-2).join(" › ")
|
|
671
|
-
});
|
|
672
|
-
}, g = (d, $, k) => {
|
|
673
|
-
for (const M of h.get($) ?? [])
|
|
674
|
-
s.add(M), v(d, M, k);
|
|
675
|
-
for (const M of f.get($) ?? [])
|
|
676
|
-
s.add(M), y(d, M);
|
|
677
|
-
};
|
|
678
|
-
for (const d of i.layout.rows) {
|
|
679
|
-
const $ = zt(n.length, d.heading, t), k = d.panels.flatMap((S) => S.groups ?? []).map((S) => {
|
|
680
|
-
var D;
|
|
681
|
-
return (D = S.caption) == null ? void 0 : D.trim();
|
|
682
|
-
}).find((S) => !!S), M = x($, k);
|
|
683
|
-
for (const S of d.panels) g(M, S.panelId, Wt(S));
|
|
684
|
-
}
|
|
685
|
-
const _ = e.sections.filter((d) => !s.has(d));
|
|
686
|
-
if (_.length > 0) {
|
|
687
|
-
const d = x(l, void 0);
|
|
688
|
-
for (const $ of _)
|
|
689
|
-
$.root ? v(d, $) : y(d, $);
|
|
690
|
-
}
|
|
691
|
-
const C = n.flatMap((d) => d.figures.filter(({ kpi: $ }) => $)), F = n.map((d) => ({ ...d, figures: d.figures.filter(({ kpi: $ }) => !$) })).filter((d) => d.figures.length > 0 || d.details.length > 0);
|
|
692
|
-
F.forEach((d, $) => {
|
|
693
|
-
d.number = $ + 1, d.figures.forEach((k, M) => {
|
|
694
|
-
k.number = `${d.number}.${M + 1}`;
|
|
695
|
-
}), d.details.forEach((k, M) => {
|
|
696
|
-
k.number = `A${d.number}.${M + 1}`;
|
|
697
|
-
});
|
|
698
|
-
});
|
|
699
|
-
const P = [...C, ...F.flatMap((d) => d.figures)].filter(({ section: d }) => {
|
|
700
|
-
const $ = E(d), k = Y($);
|
|
701
|
-
return k !== void 0 && k.value !== "verified";
|
|
702
|
-
});
|
|
703
|
-
return {
|
|
704
|
-
chapters: F,
|
|
705
|
-
appendix: F.filter((d) => d.details.length > 0),
|
|
706
|
-
kpis: C,
|
|
707
|
-
notes: Gt(i),
|
|
708
|
-
missing: a,
|
|
709
|
-
estimated: P.length,
|
|
710
|
-
qualities: Bt(i),
|
|
711
|
-
figureCount: F.reduce((d, $) => d + $.figures.length, 0),
|
|
712
|
-
detailCount: F.reduce((d, $) => d + $.details.length, 0)
|
|
713
|
-
};
|
|
714
|
-
}
|
|
715
|
-
function Gt(e) {
|
|
716
|
-
var n, a, c;
|
|
717
|
-
const t = [], l = /* @__PURE__ */ new Set(), i = (s, o) => {
|
|
718
|
-
const h = `${s}::${o ?? ""}`;
|
|
719
|
-
!s.trim() || l.has(h) || (l.add(h), t.push({ id: `note-${t.length + 1}`, label: s, ...o ? { detail: o } : {} }));
|
|
720
|
-
};
|
|
721
|
-
for (const s of e.panels) {
|
|
722
|
-
(n = s.status) != null && n.label && i(s.title, s.status.label), (a = s.metricRelationship) != null && a.note && i(s.title, s.metricRelationship.note);
|
|
723
|
-
for (const o of ((c = s.metricFlow) == null ? void 0 : c.stages) ?? [])
|
|
724
|
-
o.caption && i(`${s.title} · ${o.label}`, o.caption);
|
|
725
|
-
}
|
|
726
|
-
return t;
|
|
727
|
-
}
|
|
728
|
-
function Qt(e) {
|
|
729
|
-
const t = e.document.theme, l = Object.values(t.palette).filter((a) => a.trim() !== ""), i = /* @__PURE__ */ new Map();
|
|
730
|
-
if (l.length === 0) return i;
|
|
731
|
-
let n = 0;
|
|
732
|
-
for (const a of e.sections)
|
|
733
|
-
for (const c of Jt(a)) {
|
|
734
|
-
if (!c || i.has(c)) continue;
|
|
735
|
-
const s = t.series[c];
|
|
736
|
-
if (s) {
|
|
737
|
-
i.set(c, t.palette[s] ?? s);
|
|
738
|
-
continue;
|
|
739
|
-
}
|
|
740
|
-
i.set(c, l[n % l.length]), n += 1;
|
|
741
|
-
}
|
|
742
|
-
return i;
|
|
743
|
-
}
|
|
744
|
-
function Jt(e) {
|
|
745
|
-
const t = e.frame;
|
|
746
|
-
if (!t) return [];
|
|
747
|
-
const l = E(e), i = A(t, l.encoding.label ?? l.encoding.category ?? l.encoding.id);
|
|
748
|
-
return i < 0 ? [] : t.rows.map((n) => W(n[i]).trim());
|
|
749
|
-
}
|
|
750
|
-
function Yt(e, t) {
|
|
751
|
-
if (t.size === 0) return e;
|
|
752
|
-
const l = {};
|
|
753
|
-
for (const [i, n] of Object.entries(e.series))
|
|
754
|
-
i.includes(":") || (l[i] = n);
|
|
755
|
-
for (const [i, n] of t) l[i] = n;
|
|
756
|
-
return { ...e, series: l };
|
|
757
|
-
}
|
|
758
|
-
var Xt = /* @__PURE__ */ b("<div class=lens-print-chart>"), Zt = /* @__PURE__ */ b("<p class=lens-print-tone-key>"), en = /* @__PURE__ */ b('<div class="lens-print-chart lens-print-chart-waterfall">'), tn = /* @__PURE__ */ b("<span><i aria-hidden=true>"), nn = /* @__PURE__ */ b("<table class=lens-print-data><thead><tr><th></th><th data-align=right></th></tr></thead><tbody>"), J = /* @__PURE__ */ b("<small>"), rn = /* @__PURE__ */ b("<tr><td></td><td data-align=right>"), ln = /* @__PURE__ */ b("<tr data-role=split><td></td><td data-align=right>"), an = /* @__PURE__ */ b("<p class=lens-print-empty>"), sn = /* @__PURE__ */ b('<table class="lens-print-data lens-print-data-wide"><thead><tr></tr></thead><tbody>'), on = /* @__PURE__ */ b("<th>"), cn = /* @__PURE__ */ b("<tr>"), un = /* @__PURE__ */ b("<em class=lens-print-cell-secondary>"), dn = /* @__PURE__ */ b("<span aria-hidden=true class=lens-print-cell-bar>"), hn = /* @__PURE__ */ b("<td>"), fn = /* @__PURE__ */ b("<th data-align=right>"), pn = /* @__PURE__ */ b("<table><thead><tr><th></th><th data-align=right></th></tr></thead><tbody>"), mn = /* @__PURE__ */ b("<span class=lens-print-series> · "), gn = /* @__PURE__ */ b("<span aria-hidden=true class=lens-print-share-bar>"), bn = /* @__PURE__ */ b("<td class=lens-print-share data-align=right><span>"), vn = /* @__PURE__ */ b("<tr><td><span class=lens-print-swatch></span></td><td data-align=right>"), De = /* @__PURE__ */ b("<p class=lens-print-truncated>"), $n = /* @__PURE__ */ b("<span class=lens-print-figure-authored>"), _n = /* @__PURE__ */ b("<span>"), wn = /* @__PURE__ */ b("<p class=lens-print-figure-note>"), yn = /* @__PURE__ */ b("<sup class=lens-print-footnote-marker>"), xn = /* @__PURE__ */ b("<ol class=lens-print-footnotes>"), kn = /* @__PURE__ */ b("<li><span class=lens-print-footnote-index>"), Cn = /* @__PURE__ */ b("<div class=lens-print-breakdown><p class=lens-print-breakdown-head>"), Sn = /* @__PURE__ */ b("<p class=lens-print-breakdown-term><span></span><span>"), Fn = /* @__PURE__ */ b("<p class=lens-print-breakdown-title>"), Mn = /* @__PURE__ */ b("<div class=lens-print-breakdown-part>"), Pn = /* @__PURE__ */ b("<figure>"), Te = /* @__PURE__ */ b("<span class=lens-print-chip>"), Dn = /* @__PURE__ */ b("<span class=lens-print-chip data-tone=neutral>: "), Tn = /* @__PURE__ */ b("<span class=lens-print-figure-total>: "), An = /* @__PURE__ */ b("<figure><figcaption class=lens-print-figure-head><div class=lens-print-figure-title><span class=lens-print-figure-number></span><h3></h3></div><p class=lens-print-figure-meta>"), Kn = /* @__PURE__ */ b('<svg aria-hidden=true class=lens-print-sparkline preserveAspectRatio=none viewBox="0 0 100 26"><polyline fill=none stroke-linecap=round stroke-linejoin=round>'), Nn = /* @__PURE__ */ b("<span class=lens-print-figure-number>"), Rn = /* @__PURE__ */ b("<span class=lens-print-kpi-delta>"), Ln = /* @__PURE__ */ b("<p class=lens-print-kpi-trend>"), En = /* @__PURE__ */ b("<p class=lens-print-kpi-target>: "), In = /* @__PURE__ */ b("<p class=lens-print-kpi-caption>"), Vn = /* @__PURE__ */ b("<div class=lens-print-kpi><p class=lens-print-kpi-label></p><p class=lens-print-kpi-value></p><p class=lens-print-kpi-chips>"), qn = /* @__PURE__ */ b("<p class=lens-print-cover-subtitle>"), ce = /* @__PURE__ */ b("<div><dt></dt><dd>"), jn = /* @__PURE__ */ b("<div class=lens-print-kpis>"), Bn = /* @__PURE__ */ b("<p class=lens-print-cover-flag>"), On = /* @__PURE__ */ b("<header class=lens-print-cover><div class=lens-print-cover-head><p class=lens-print-kicker></p><h1></h1></div><dl class=lens-print-cover-meta><div><dt></dt><dd></dd></div><div><dt></dt><dd>"), Un = /* @__PURE__ */ b("<li><span class=lens-print-contents-number>A</span><span class=lens-print-contents-title>"), Wn = /* @__PURE__ */ b("<section class=lens-print-contents><h2></h2><ol><li><span class=lens-print-contents-number>B</span><span class=lens-print-contents-title></span></li></ol><p class=lens-print-contents-note>"), zn = /* @__PURE__ */ b("<span class=lens-print-contents-caption>"), Hn = /* @__PURE__ */ b("<li><span class=lens-print-contents-number></span><span class=lens-print-contents-title>"), Gn = /* @__PURE__ */ b("<div class=lens-print-lead-group>"), Qn = /* @__PURE__ */ b("<div class=lens-print-pair>"), Jn = /* @__PURE__ */ b("<h3>"), Yn = /* @__PURE__ */ b("<p>"), Xn = /* @__PURE__ */ b("<div class=lens-print-strip>"), Zn = /* @__PURE__ */ b("<p class=lens-print-lead>"), er = /* @__PURE__ */ b("<p class=lens-print-chapter-headline>"), tr = /* @__PURE__ */ b("<section class=lens-print-chapter><header class=lens-print-chapter-head><p class=lens-print-runninghead> · <!>. </p><h2><span class=lens-print-chapter-number></span></h2></header><div class=lens-print-grid>"), nr = /* @__PURE__ */ b("<span><span class=lens-print-chapter-headline-label>"), rr = /* @__PURE__ */ b("<p class=lens-print-detail-note>"), lr = /* @__PURE__ */ b("<article class=lens-print-detail><header><span class=lens-print-detail-number></span><h4></h4><p class=lens-print-detail-trail>"), ir = /* @__PURE__ */ b("<section class=lens-print-appendix><header class=lens-print-chapter-head><p class=lens-print-runninghead> · </p><h2><span class=lens-print-chapter-number>A</span></h2><p class=lens-print-lead>"), ar = /* @__PURE__ */ b('<div class=lens-print-appendix-chapter><h3>A<!>. </h3><div class="lens-print-grid lens-print-grid-dense">'), sr = /* @__PURE__ */ b("<div class=lens-print-glossary><h3></h3><dl>"), or = /* @__PURE__ */ b("<dl class=lens-print-notes>"), ae = /* @__PURE__ */ b("<li>"), cr = /* @__PURE__ */ b("<div class=lens-print-limits><h3></h3><p></p><ul>"), ur = /* @__PURE__ */ b("<section class=lens-print-method><header class=lens-print-chapter-head><p class=lens-print-runninghead> · </p><h2><span class=lens-print-chapter-number>B</span></h2></header><p class=lens-print-provenance>: <!> · <!> · "), dr = /* @__PURE__ */ b("<div><dt><span class=lens-print-chip></span></dt><dd>"), hr = /* @__PURE__ */ b("<article class=lens-print-report>");
|
|
759
|
-
const Ae = je(/* @__PURE__ */ new Map());
|
|
760
|
-
function Ke(e) {
|
|
761
|
-
const t = Be(Ae);
|
|
762
|
-
return q(() => Yt(e.document.theme, t))();
|
|
763
|
-
}
|
|
764
|
-
function fr(e, t, l) {
|
|
765
|
-
var M;
|
|
766
|
-
const i = e.frame;
|
|
767
|
-
if (!i) return {
|
|
768
|
-
rows: []
|
|
769
|
-
};
|
|
770
|
-
const n = E(e), a = A(i, n.encoding.label ?? n.encoding.category ?? n.encoding.id), c = A(i, n.encoding.value), s = A(i, n.encoding.series), o = A(i, n.encoding.id), h = n.encoding.value, f = h ? n.format[h] : void 0, p = i.rows.map((S) => Q(S[c])), m = /* @__PURE__ */ new Map(), x = n.encoding.series ? n.format[n.encoding.series] : void 0;
|
|
771
|
-
i.rows.forEach((S, D) => {
|
|
772
|
-
const T = s >= 0 ? W(S[s]) : "", N = p[D];
|
|
773
|
-
N !== void 0 && N >= 0 && m.set(T, (m.get(T) ?? 0) + N);
|
|
774
|
-
});
|
|
775
|
-
for (const S of ((M = n.radial) == null ? void 0 : M.mode) === "partition" ? n.radial.rings ?? [] : [])
|
|
776
|
-
m.has(S.key) && m.set(S.key, S.total);
|
|
777
|
-
const v = n.semantics === "reconciliation" && A(i, n.encoding.cut) >= 0, y = A(i, n.encoding.final), g = (S, D) => {
|
|
778
|
-
const T = c >= 0 ? S[c] : void 0;
|
|
779
|
-
if (!v || D === 0 || y >= 0 && S[y] === !0) return T;
|
|
780
|
-
const N = p[D], j = p[D - 1];
|
|
781
|
-
return N === void 0 || j === void 0 ? T : N - j;
|
|
782
|
-
}, _ = A(i, n.encoding.category), C = n.kind === "pie" || n.kind === "donut" || n.kind === "radial", F = i.rows.map((S) => {
|
|
783
|
-
var j;
|
|
784
|
-
const D = le(S[_ >= 0 ? _ : a]), T = o >= 0 ? le(S[o]) : "", N = s >= 0 ? le(S[s]) : "";
|
|
785
|
-
return {
|
|
786
|
-
category: D,
|
|
787
|
-
nodeKey: T || Ze(D, ((j = n.radial) == null ? void 0 : j.mode) === "partition" ? "" : N)
|
|
788
|
-
};
|
|
789
|
-
}), P = /* @__PURE__ */ new Map();
|
|
790
|
-
F.forEach(({
|
|
791
|
-
nodeKey: S,
|
|
792
|
-
category: D
|
|
793
|
-
}) => {
|
|
794
|
-
const T = S ?? D;
|
|
795
|
-
P.has(T) || P.set(T, P.size);
|
|
796
|
-
});
|
|
797
|
-
const d = ke(l, n, i, e.root), $ = ye(l, n, {
|
|
798
|
-
colors: i.colors,
|
|
799
|
-
positional: e.root,
|
|
800
|
-
labels: xe(i, n)
|
|
801
|
-
}), k = ne(i.rows.map((S, D) => g(S, D)), f, t);
|
|
802
|
-
return {
|
|
803
|
-
unit: k.note,
|
|
804
|
-
rows: i.rows.map((S, D) => {
|
|
805
|
-
var de, he, fe;
|
|
806
|
-
const T = g(S, D), N = p[D], j = s >= 0 ? W(S[s]) : "", H = ((de = n.radial) == null ? void 0 : de.mode) === "progress" ? n.radial.max : m.get(j), z = (n.semantics === "partition" || ((he = n.radial) == null ? void 0 : he.mode) === "progress") && N !== void 0 && N >= 0 && H && H > 0 ? N / H : void 0, U = a >= 0 ? W(S[a]) : W(S[o]), {
|
|
807
|
-
category: O,
|
|
808
|
-
nodeKey: re
|
|
809
|
-
} = F[D], Ve = ((fe = n.radial) == null ? void 0 : fe.mode) === "partition" ? P.get(re ?? O) : D;
|
|
810
|
-
return {
|
|
811
|
-
key: `${j}:${o >= 0 ? W(S[o]) : D}`,
|
|
812
|
-
...j && x ? {
|
|
813
|
-
series: K(S[s], x, t)
|
|
814
|
-
} : {},
|
|
815
|
-
label: U,
|
|
816
|
-
value: c >= 0 ? k.format(T) : "—",
|
|
817
|
-
exact: c >= 0 ? Ce(T, f, t) : void 0,
|
|
818
|
-
...z === void 0 ? {} : {
|
|
819
|
-
ratio: z,
|
|
820
|
-
// A row worth 1.5 million printed as «0,0 %» reads as nothing at all.
|
|
821
|
-
// Below the resolution of the column, the share says it is below it.
|
|
822
|
-
share: z > 0 && z < 1e-3 ? `< ${new Intl.NumberFormat(t, {
|
|
823
|
-
style: "percent",
|
|
824
|
-
minimumFractionDigits: 1
|
|
825
|
-
}).format(1e-3)}` : new Intl.NumberFormat(t, {
|
|
826
|
-
style: "percent",
|
|
827
|
-
minimumFractionDigits: 1,
|
|
828
|
-
maximumFractionDigits: 1
|
|
829
|
-
}).format(z)
|
|
830
|
-
},
|
|
831
|
-
color: C ? $(O, Ve, re) : s >= 0 ? d(j, D) : $(U, D)
|
|
832
|
-
};
|
|
833
|
-
})
|
|
834
|
-
};
|
|
835
|
-
}
|
|
836
|
-
function Ne(e) {
|
|
837
|
-
var s;
|
|
838
|
-
const t = q(() => E(e.section))(), l = Ke(e.section), i = (o, h) => K(h, t.format[o], e.section.document.meta.locale), n = (o, h) => Ge(h, t.format[o], e.section.document.meta.locale), a = e.section;
|
|
839
|
-
if (!a.frame || a.frame.rows.length <= 1 || !Se.has(t.kind)) return null;
|
|
840
|
-
const c = t.kind === "pie" || t.kind === "donut" || t.kind === "radial" ? {
|
|
841
|
-
...t.presentation,
|
|
842
|
-
sliceLabels: ((s = t.presentation) == null ? void 0 : s.sliceLabels) ?? "percent",
|
|
843
|
-
// A wider band on paper: the share is written inside the ring, and a
|
|
844
|
-
// thin ring cannot hold five characters.
|
|
845
|
-
fill: !0
|
|
846
|
-
} : t.presentation;
|
|
847
|
-
return (() => {
|
|
848
|
-
var o = Xt();
|
|
849
|
-
return r(o, u(Xe, {
|
|
850
|
-
get input() {
|
|
851
|
-
return {
|
|
852
|
-
kind: t.kind,
|
|
853
|
-
frame: a.frame,
|
|
854
|
-
encoding: t.encoding,
|
|
855
|
-
seriesColor: ke(l, t, a.frame, a.root),
|
|
856
|
-
rowColor: ye(l, t, {
|
|
857
|
-
colors: a.frame.colors,
|
|
858
|
-
positional: a.root,
|
|
859
|
-
labels: xe(a.frame, t)
|
|
860
|
-
}),
|
|
861
|
-
labels: {
|
|
862
|
-
noData: a.document.i18n["panel.empty"] ?? "No data",
|
|
863
|
-
current: a.document.i18n["chart.series.current"] ?? "Current period",
|
|
864
|
-
previous: a.document.i18n["chart.series.previous"] ?? "Previous"
|
|
865
|
-
},
|
|
866
|
-
format: i,
|
|
867
|
-
formatAxis: n,
|
|
868
|
-
locale: a.document.meta.locale,
|
|
869
|
-
theme: l,
|
|
870
|
-
presentation: c,
|
|
871
|
-
radial: t.radial
|
|
872
|
-
};
|
|
873
|
-
},
|
|
874
|
-
get label() {
|
|
875
|
-
return t.title;
|
|
876
|
-
},
|
|
877
|
-
get panelId() {
|
|
878
|
-
return `print:${a.id}`;
|
|
879
|
-
}
|
|
880
|
-
})), V((h) => ee(o, "height", `${e.height}px`)), o;
|
|
881
|
-
})();
|
|
882
|
-
}
|
|
883
|
-
function Re(e) {
|
|
884
|
-
const t = E(e), l = e.document.meta.locale;
|
|
885
|
-
return q(() => {
|
|
886
|
-
if (!e.frame) return;
|
|
887
|
-
const i = t.encoding.value ?? "value", n = t.encoding.cut ?? "cut", a = (s) => K(s, t.format[i], l), c = (s) => K(s, t.format[n] ?? t.format[i], l);
|
|
888
|
-
return Je(Ye(t, e.frame, a, c), a);
|
|
889
|
-
})();
|
|
890
|
-
}
|
|
891
|
-
function pr(e) {
|
|
892
|
-
const t = I(), l = E(e.section), i = Re(e.section), n = e.section.document.meta.locale, a = q(() => {
|
|
893
|
-
if (!i) return;
|
|
894
|
-
const s = i.ticks.length > 5 ? i.ticks.filter((h, f) => f % 2 === 0) : i.ticks, o = new Intl.NumberFormat(n, {
|
|
895
|
-
notation: "compact",
|
|
896
|
-
maximumFractionDigits: 1
|
|
897
|
-
});
|
|
898
|
-
return {
|
|
899
|
-
...i,
|
|
900
|
-
ticks: s.map((h, f) => f === 0 ? h : {
|
|
901
|
-
...h,
|
|
902
|
-
label: o.format(h.value)
|
|
903
|
-
})
|
|
904
|
-
};
|
|
905
|
-
}), c = q(() => {
|
|
906
|
-
var s;
|
|
907
|
-
return Array.from(new Set((((s = a()) == null ? void 0 : s.items) ?? []).map((o) => o.tone).filter(Boolean)));
|
|
908
|
-
});
|
|
909
|
-
return u(w, {
|
|
910
|
-
get when() {
|
|
911
|
-
return B(() => !!a())() && a().items.length > 0;
|
|
912
|
-
},
|
|
913
|
-
get children() {
|
|
914
|
-
var s = en();
|
|
915
|
-
return r(s, u(Qe, {
|
|
916
|
-
get label() {
|
|
917
|
-
return l.title;
|
|
918
|
-
},
|
|
919
|
-
get model() {
|
|
920
|
-
return a();
|
|
921
|
-
},
|
|
922
|
-
splitCallout: "always"
|
|
923
|
-
}), null), r(s, u(w, {
|
|
924
|
-
get when() {
|
|
925
|
-
return c().length > 1;
|
|
926
|
-
},
|
|
927
|
-
get children() {
|
|
928
|
-
var o = Zt();
|
|
929
|
-
return r(o, u(L, {
|
|
930
|
-
get each() {
|
|
931
|
-
return c();
|
|
932
|
-
},
|
|
933
|
-
children: (h) => (() => {
|
|
934
|
-
var f = tn(), p = f.firstChild;
|
|
935
|
-
return R(p, "data-tone", h), r(f, () => h === "positive" ? t("print.toneFavourable", "favourable") : h === "negative" ? t("print.toneAdverse", "adverse") : t("print.toneNeutral", "neutral"), null), f;
|
|
936
|
-
})()
|
|
937
|
-
})), o;
|
|
938
|
-
}
|
|
939
|
-
}), null), s;
|
|
940
|
-
}
|
|
941
|
-
});
|
|
942
|
-
}
|
|
943
|
-
function mr(e) {
|
|
944
|
-
const t = I(), l = E(e.section), i = Re(e.section), n = q(() => ne(((i == null ? void 0 : i.items) ?? []).map((a) => a.value), l.encoding.value ? l.format[l.encoding.value] : void 0, e.section.document.meta.locale));
|
|
945
|
-
return u(w, {
|
|
946
|
-
get when() {
|
|
947
|
-
return i && i.items.length > 0;
|
|
948
|
-
},
|
|
949
|
-
get children() {
|
|
950
|
-
var a = nn(), c = a.firstChild, s = c.firstChild, o = s.firstChild, h = o.nextSibling, f = c.nextSibling;
|
|
951
|
-
return r(o, () => t("print.stage", "Stage")), r(h, () => t("print.value", "Value"), null), r(h, (() => {
|
|
952
|
-
var p = B(() => !!n().note);
|
|
953
|
-
return () => p() && (() => {
|
|
954
|
-
var m = J();
|
|
955
|
-
return r(m, () => n().note), m;
|
|
956
|
-
})();
|
|
957
|
-
})(), null), r(f, u(L, {
|
|
958
|
-
get each() {
|
|
959
|
-
return i.items;
|
|
960
|
-
},
|
|
961
|
-
children: (p) => [(() => {
|
|
962
|
-
var m = rn(), x = m.firstChild, v = x.nextSibling;
|
|
963
|
-
return r(x, () => p.label), r(v, () => n().format(p.value)), V(() => R(m, "data-role", p.kind)), m;
|
|
964
|
-
})(), u(w, {
|
|
965
|
-
get when() {
|
|
966
|
-
return p.formattedSplit;
|
|
967
|
-
},
|
|
968
|
-
get children() {
|
|
969
|
-
var m = ln(), x = m.firstChild, v = x.nextSibling;
|
|
970
|
-
return r(x, () => p.splitLabel || t("print.splitPart", "of which")), r(v, () => p.formattedSplit), m;
|
|
971
|
-
}
|
|
972
|
-
})]
|
|
973
|
-
})), a;
|
|
974
|
-
}
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
function gr(e, t) {
|
|
978
|
-
return e.kind === "cascade" && !!t.frame && A(t.frame, e.encoding.cut) >= 0;
|
|
979
|
-
}
|
|
980
|
-
function ue(e) {
|
|
981
|
-
var h;
|
|
982
|
-
const t = I(), l = Ke(e.section), i = e.section, n = e.exact, a = q(() => fr(i, i.document.meta.locale, l));
|
|
983
|
-
if (!i.frame) return (() => {
|
|
984
|
-
var f = an();
|
|
985
|
-
return r(f, () => t("print.noData", "No data")), f;
|
|
986
|
-
})();
|
|
987
|
-
const c = E(i), s = i.frame;
|
|
988
|
-
if (c.kind === "table" && ((h = c.columns) != null && h.length)) {
|
|
989
|
-
const f = c.columns, p = f.map(({
|
|
990
|
-
field: g
|
|
991
|
-
}) => A(s, g)), m = i.document.meta.locale, x = f.map((g, _) => {
|
|
992
|
-
const C = p[_];
|
|
993
|
-
return ne(C >= 0 ? s.rows.map((F) => F[C]) : [], c.format[g.field], m);
|
|
994
|
-
}), v = f.map((g) => {
|
|
995
|
-
var C;
|
|
996
|
-
if (g.align) return g.align;
|
|
997
|
-
const _ = (C = c.format[g.field]) == null ? void 0 : C.kind;
|
|
998
|
-
return _ === "money" || _ === "number" || _ === "percent" ? "right" : "left";
|
|
999
|
-
}), y = /* @__PURE__ */ new Map();
|
|
1000
|
-
return f.forEach((g, _) => {
|
|
1001
|
-
if (g.cell.kind !== "bar") return;
|
|
1002
|
-
const C = p[_];
|
|
1003
|
-
C < 0 || y.set(g.field, s.rows.reduce((F, P) => {
|
|
1004
|
-
const d = Q(P[C]);
|
|
1005
|
-
return d === void 0 ? F : Math.max(F, Math.abs(d));
|
|
1006
|
-
}, 0));
|
|
1007
|
-
}), (() => {
|
|
1008
|
-
var g = sn(), _ = g.firstChild, C = _.firstChild, F = _.nextSibling;
|
|
1009
|
-
return r(C, u(L, {
|
|
1010
|
-
each: f,
|
|
1011
|
-
children: (P, d) => (() => {
|
|
1012
|
-
var $ = on();
|
|
1013
|
-
return r($, () => P.label, null), r($, u(w, {
|
|
1014
|
-
get when() {
|
|
1015
|
-
var k;
|
|
1016
|
-
return (k = x[d()]) == null ? void 0 : k.note;
|
|
1017
|
-
},
|
|
1018
|
-
get children() {
|
|
1019
|
-
var k = J();
|
|
1020
|
-
return r(k, () => {
|
|
1021
|
-
var M;
|
|
1022
|
-
return (M = x[d()]) == null ? void 0 : M.note;
|
|
1023
|
-
}), k;
|
|
1024
|
-
}
|
|
1025
|
-
}), null), V(() => R($, "data-align", v[d()])), $;
|
|
1026
|
-
})()
|
|
1027
|
-
})), r(F, u(L, {
|
|
1028
|
-
get each() {
|
|
1029
|
-
return s.rows;
|
|
1030
|
-
},
|
|
1031
|
-
children: (P) => (() => {
|
|
1032
|
-
var d = cn();
|
|
1033
|
-
return r(d, u(L, {
|
|
1034
|
-
each: f,
|
|
1035
|
-
children: ($, k) => {
|
|
1036
|
-
const M = p[k()] >= 0 ? P[p[k()]] : void 0, S = x[k()].format(M), D = n ? Ce(M, c.format[$.field], m) : void 0, T = Q(M), N = W(P[A(s, $.cell.toneField)]), j = y.get($.field), H = A(s, $.cell.secondaryField), z = H >= 0 ? Q(P[H]) : void 0;
|
|
1037
|
-
return (() => {
|
|
1038
|
-
var U = hn();
|
|
1039
|
-
return R(U, "data-negative", T !== void 0 && T < 0 ? "" : void 0), R(U, "data-tone", N === "pos" || N === "warn" || N === "neg" ? N : void 0), r(U, S, null), r(U, u(w, {
|
|
1040
|
-
when: z !== void 0,
|
|
1041
|
-
get children() {
|
|
1042
|
-
var O = un();
|
|
1043
|
-
return R(O, "data-negative", z < 0 ? "" : void 0), r(O, () => we(z) ?? `${z > 0 ? "+" : ""}${K(P[H], $.cell.secondaryField ? c.format[$.cell.secondaryField] : void 0, m)}`), O;
|
|
1044
|
-
}
|
|
1045
|
-
}), null), r(U, u(w, {
|
|
1046
|
-
when: j !== void 0 && j > 0 && T !== void 0,
|
|
1047
|
-
get children() {
|
|
1048
|
-
var O = dn();
|
|
1049
|
-
return R(O, "data-negative", T < 0 ? "" : void 0), V((re) => ee(O, "width", `${Math.min(100, Math.round(Math.abs(T) / j * 100))}%`)), O;
|
|
1050
|
-
}
|
|
1051
|
-
}), null), r(U, u(w, {
|
|
1052
|
-
when: D && D !== S,
|
|
1053
|
-
get children() {
|
|
1054
|
-
var O = J();
|
|
1055
|
-
return r(O, D), O;
|
|
1056
|
-
}
|
|
1057
|
-
}), null), V(() => R(U, "data-align", v[k()])), U;
|
|
1058
|
-
})();
|
|
1059
|
-
}
|
|
1060
|
-
})), d;
|
|
1061
|
-
})()
|
|
1062
|
-
})), g;
|
|
1063
|
-
})();
|
|
1064
|
-
}
|
|
1065
|
-
const o = a().rows.some(({
|
|
1066
|
-
share: f
|
|
1067
|
-
}) => f !== void 0);
|
|
1068
|
-
return (() => {
|
|
1069
|
-
var f = pn(), p = f.firstChild, m = p.firstChild, x = m.firstChild, v = x.nextSibling, y = p.nextSibling;
|
|
1070
|
-
return r(x, () => t("print.category", "Category")), r(v, () => t("print.value", "Value"), null), r(v, u(w, {
|
|
1071
|
-
get when() {
|
|
1072
|
-
return a().unit;
|
|
1073
|
-
},
|
|
1074
|
-
get children() {
|
|
1075
|
-
var g = J();
|
|
1076
|
-
return r(g, () => a().unit), g;
|
|
1077
|
-
}
|
|
1078
|
-
}), null), r(m, u(w, {
|
|
1079
|
-
when: o,
|
|
1080
|
-
get children() {
|
|
1081
|
-
var g = fn();
|
|
1082
|
-
return r(g, () => t("print.share", "Share")), g;
|
|
1083
|
-
}
|
|
1084
|
-
}), null), r(y, u(L, {
|
|
1085
|
-
get each() {
|
|
1086
|
-
return a().rows;
|
|
1087
|
-
},
|
|
1088
|
-
children: (g) => (() => {
|
|
1089
|
-
var _ = vn(), C = _.firstChild, F = C.firstChild, P = C.nextSibling;
|
|
1090
|
-
return r(C, u(w, {
|
|
1091
|
-
get when() {
|
|
1092
|
-
return g.series;
|
|
1093
|
-
},
|
|
1094
|
-
get children() {
|
|
1095
|
-
var d = mn(), $ = d.firstChild;
|
|
1096
|
-
return r(d, () => g.series, $), d;
|
|
1097
|
-
}
|
|
1098
|
-
}), null), r(C, () => g.label, null), r(P, () => g.value, null), r(P, u(w, {
|
|
1099
|
-
get when() {
|
|
1100
|
-
return B(() => !!(n && g.exact))() && g.exact !== g.value;
|
|
1101
|
-
},
|
|
1102
|
-
get children() {
|
|
1103
|
-
var d = J();
|
|
1104
|
-
return r(d, () => g.exact), d;
|
|
1105
|
-
}
|
|
1106
|
-
}), null), r(_, u(w, {
|
|
1107
|
-
when: o,
|
|
1108
|
-
get children() {
|
|
1109
|
-
var d = bn(), $ = d.firstChild;
|
|
1110
|
-
return r(d, u(w, {
|
|
1111
|
-
get when() {
|
|
1112
|
-
return g.ratio !== void 0;
|
|
1113
|
-
},
|
|
1114
|
-
get children() {
|
|
1115
|
-
var k = gn();
|
|
1116
|
-
return V((M) => ee(k, "width", `${Math.min(100, Math.round(g.ratio * 100))}%`)), k;
|
|
1117
|
-
}
|
|
1118
|
-
}), $), r($, () => g.share ?? "—"), d;
|
|
1119
|
-
}
|
|
1120
|
-
}), null), V((d) => ee(F, "background-color", g.color)), _;
|
|
1121
|
-
})()
|
|
1122
|
-
})), V(() => oe(f, `lens-print-data${e.dense ? " lens-print-data-dense" : ""}`)), f;
|
|
1123
|
-
})();
|
|
1124
|
-
}
|
|
1125
|
-
function Le(e) {
|
|
1126
|
-
const t = I();
|
|
1127
|
-
return u(w, {
|
|
1128
|
-
get when() {
|
|
1129
|
-
return B(() => !!e.section.hasMore)() && e.section.frame;
|
|
1130
|
-
},
|
|
1131
|
-
get children() {
|
|
1132
|
-
var l = De();
|
|
1133
|
-
return r(l, () => t("print.truncated", "First {rows} rows shown; the level continues in the dashboard.", {
|
|
1134
|
-
rows: e.section.frame.rows.length
|
|
1135
|
-
})), l;
|
|
1136
|
-
}
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
function br(e) {
|
|
1140
|
-
var a;
|
|
1141
|
-
const t = I(), l = E(e.section), i = (a = l.caption) == null ? void 0 : a.trim(), n = q(() => jt(l, e.section.frame, e.section.document.meta.locale))();
|
|
1142
|
-
return u(w, {
|
|
1143
|
-
get when() {
|
|
1144
|
-
return !!i || !!n;
|
|
1145
|
-
},
|
|
1146
|
-
get children() {
|
|
1147
|
-
var c = wn();
|
|
1148
|
-
return r(c, u(w, {
|
|
1149
|
-
when: i,
|
|
1150
|
-
get children() {
|
|
1151
|
-
var s = $n();
|
|
1152
|
-
return r(s, i), s;
|
|
1153
|
-
}
|
|
1154
|
-
}), null), r(c, u(w, {
|
|
1155
|
-
when: n,
|
|
1156
|
-
get children() {
|
|
1157
|
-
var s = _n();
|
|
1158
|
-
return r(s, () => t(n.labelKey, n.fallback, n.vars)), s;
|
|
1159
|
-
}
|
|
1160
|
-
}), null), c;
|
|
1161
|
-
}
|
|
1162
|
-
});
|
|
1163
|
-
}
|
|
1164
|
-
function Ee(e) {
|
|
1165
|
-
return u(w, {
|
|
1166
|
-
get when() {
|
|
1167
|
-
return B(() => !!e.footnotes)() && e.footnotes.markers.length > 0;
|
|
1168
|
-
},
|
|
1169
|
-
get children() {
|
|
1170
|
-
var t = yn();
|
|
1171
|
-
return r(t, () => e.footnotes.markers.join(", ")), t;
|
|
1172
|
-
}
|
|
1173
|
-
});
|
|
1174
|
-
}
|
|
1175
|
-
function be(e) {
|
|
1176
|
-
return u(w, {
|
|
1177
|
-
get when() {
|
|
1178
|
-
return B(() => !!e.footnotes)() && e.footnotes.notes.length > 0;
|
|
1179
|
-
},
|
|
1180
|
-
get children() {
|
|
1181
|
-
var t = xn();
|
|
1182
|
-
return r(t, u(L, {
|
|
1183
|
-
get each() {
|
|
1184
|
-
return e.footnotes.notes;
|
|
1185
|
-
},
|
|
1186
|
-
children: (l) => (
|
|
1187
|
-
// The number is drawn rather than left to the list marker: a marker is
|
|
1188
|
-
// the one glyph a print engine feels free to drop, and a note nobody
|
|
1189
|
-
// can tie back to its figure is a note nobody reads.
|
|
1190
|
-
(() => {
|
|
1191
|
-
var i = kn(), n = i.firstChild;
|
|
1192
|
-
return r(n, () => l.number), r(i, () => l.text, null), V(() => i.value = l.number), i;
|
|
1193
|
-
})()
|
|
1194
|
-
)
|
|
1195
|
-
})), t;
|
|
1196
|
-
}
|
|
1197
|
-
});
|
|
1198
|
-
}
|
|
1199
|
-
const se = 8;
|
|
1200
|
-
function ve(e) {
|
|
1201
|
-
const t = I();
|
|
1202
|
-
return u(w, {
|
|
1203
|
-
get when() {
|
|
1204
|
-
return e.sections.length > 0;
|
|
1205
|
-
},
|
|
1206
|
-
get children() {
|
|
1207
|
-
var l = Cn(), i = l.firstChild;
|
|
1208
|
-
return r(i, () => t("print.breakdown", "How it is calculated")), r(l, u(L, {
|
|
1209
|
-
get each() {
|
|
1210
|
-
return e.sections;
|
|
1211
|
-
},
|
|
1212
|
-
children: (n) => {
|
|
1213
|
-
var x, v, y, g, _;
|
|
1214
|
-
const a = E(n), c = n.frame, s = a.kind === "table" && ((x = a.columns) != null && x.length) ? a.columns.length : (c == null ? void 0 : c.columns.length) ?? 0;
|
|
1215
|
-
if (c && s <= 1) return null;
|
|
1216
|
-
if (Fe.has(a.kind))
|
|
1217
|
-
return u(Pe, {
|
|
1218
|
-
section: n
|
|
1219
|
-
});
|
|
1220
|
-
const o = c ? A(c, a.encoding.value) : -1;
|
|
1221
|
-
if (c && c.rows.length === 1 && o >= 0)
|
|
1222
|
-
return (() => {
|
|
1223
|
-
var C = Sn(), F = C.firstChild, P = F.nextSibling;
|
|
1224
|
-
return r(F, () => a.title), r(P, () => {
|
|
1225
|
-
var d;
|
|
1226
|
-
return K((d = c.rows[0]) == null ? void 0 : d[o], a.encoding.value ? a.format[a.encoding.value] : void 0, n.document.meta.locale);
|
|
1227
|
-
}), C;
|
|
1228
|
-
})();
|
|
1229
|
-
const h = !!(c && c.rows.length > se), f = h && c ? {
|
|
1230
|
-
...n,
|
|
1231
|
-
frame: {
|
|
1232
|
-
...c,
|
|
1233
|
-
rows: c.rows.slice(0, se)
|
|
1234
|
-
}
|
|
1235
|
-
} : n, p = ((v = n.perspective) == null ? void 0 : v.label.trim()) || a.title, m = ((_ = (g = (y = a.columns) == null ? void 0 : y[0]) == null ? void 0 : g.label) == null ? void 0 : _.trim().toLowerCase()) === p.trim().toLowerCase();
|
|
1236
|
-
return (() => {
|
|
1237
|
-
var C = Mn();
|
|
1238
|
-
return r(C, u(w, {
|
|
1239
|
-
when: !m,
|
|
1240
|
-
get children() {
|
|
1241
|
-
var F = Fn();
|
|
1242
|
-
return r(F, p), F;
|
|
1243
|
-
}
|
|
1244
|
-
}), null), r(C, u(ue, {
|
|
1245
|
-
dense: !0,
|
|
1246
|
-
section: f
|
|
1247
|
-
}), null), r(C, u(w, {
|
|
1248
|
-
when: h && c,
|
|
1249
|
-
get children() {
|
|
1250
|
-
var F = De();
|
|
1251
|
-
return r(F, () => t("print.truncatedOf", "{rows} of {total} rows shown.", {
|
|
1252
|
-
rows: se,
|
|
1253
|
-
total: c.rows.length
|
|
1254
|
-
})), F;
|
|
1255
|
-
}
|
|
1256
|
-
}), null), C;
|
|
1257
|
-
})();
|
|
1258
|
-
}
|
|
1259
|
-
}), null), l;
|
|
1260
|
-
}
|
|
1261
|
-
});
|
|
1262
|
-
}
|
|
1263
|
-
function vr(e) {
|
|
1264
|
-
const t = I(), l = e.figure, i = l.section, n = E(i), a = gr(n, i), c = Fe.has(n.kind);
|
|
1265
|
-
if (l.metric)
|
|
1266
|
-
return (() => {
|
|
1267
|
-
var o = Pn();
|
|
1268
|
-
return r(o, u(Ie, {
|
|
1269
|
-
figure: l,
|
|
1270
|
-
get footnotes() {
|
|
1271
|
-
return e.footnotes;
|
|
1272
|
-
},
|
|
1273
|
-
numbered: !0
|
|
1274
|
-
}), null), r(o, u(ve, {
|
|
1275
|
-
get sections() {
|
|
1276
|
-
return l.breakdown;
|
|
1277
|
-
}
|
|
1278
|
-
}), null), r(o, u(be, {
|
|
1279
|
-
get footnotes() {
|
|
1280
|
-
return e.footnotes;
|
|
1281
|
-
}
|
|
1282
|
-
}), null), V(() => oe(o, `lens-print-figure lens-print-figure-${l.width} lens-print-figure-metric`)), o;
|
|
1283
|
-
})();
|
|
1284
|
-
const s = n.total !== void 0 && n.encoding.value ? K(n.total, n.format[n.encoding.value], i.document.meta.locale) : void 0;
|
|
1285
|
-
return (() => {
|
|
1286
|
-
var o = An(), h = o.firstChild, f = h.firstChild, p = f.firstChild, m = p.nextSibling, x = f.nextSibling;
|
|
1287
|
-
return r(p, () => t("print.figure", "Fig. {number}", {
|
|
1288
|
-
number: l.number
|
|
1289
|
-
})), r(m, () => n.title, null), r(m, u(Ee, {
|
|
1290
|
-
get footnotes() {
|
|
1291
|
-
return e.footnotes;
|
|
1292
|
-
}
|
|
1293
|
-
}), null), r(x, u(w, {
|
|
1294
|
-
get when() {
|
|
1295
|
-
var v;
|
|
1296
|
-
return (v = n.status) == null ? void 0 : v.label;
|
|
1297
|
-
},
|
|
1298
|
-
get children() {
|
|
1299
|
-
var v = Te();
|
|
1300
|
-
return r(v, () => n.status.label), V(() => R(v, "data-tone", n.status.tone ?? "neutral")), v;
|
|
1301
|
-
}
|
|
1302
|
-
}), null), r(x, u(X, {
|
|
1303
|
-
get availability() {
|
|
1304
|
-
return n.availability;
|
|
1305
|
-
},
|
|
1306
|
-
get confidence() {
|
|
1307
|
-
return n.confidence;
|
|
1308
|
-
}
|
|
1309
|
-
}), null), r(x, u(w, {
|
|
1310
|
-
get when() {
|
|
1311
|
-
return i.perspective;
|
|
1312
|
-
},
|
|
1313
|
-
get children() {
|
|
1314
|
-
var v = Dn(), y = v.firstChild;
|
|
1315
|
-
return r(v, () => t("print.view", "View"), y), r(v, () => i.perspective.label, null), v;
|
|
1316
|
-
}
|
|
1317
|
-
}), null), r(x, u(w, {
|
|
1318
|
-
when: s,
|
|
1319
|
-
get children() {
|
|
1320
|
-
var v = Tn(), y = v.firstChild;
|
|
1321
|
-
return r(v, () => t("print.total", "Total"), y), r(v, s, null), v;
|
|
1322
|
-
}
|
|
1323
|
-
}), null), r(o, () => c ? u(Pe, {
|
|
1324
|
-
section: i
|
|
1325
|
-
}) : a ? u(pr, {
|
|
1326
|
-
section: i
|
|
1327
|
-
}) : l.chart && u(Ne, {
|
|
1328
|
-
get height() {
|
|
1329
|
-
return l.width === "half" ? 225 : 235;
|
|
1330
|
-
},
|
|
1331
|
-
section: i
|
|
1332
|
-
}), null), r(o, u(br, {
|
|
1333
|
-
section: i
|
|
1334
|
-
}), null), r(o, !c && (a ? u(mr, {
|
|
1335
|
-
section: i
|
|
1336
|
-
}) : u(ue, {
|
|
1337
|
-
section: i
|
|
1338
|
-
})), null), r(o, u(Le, {
|
|
1339
|
-
section: i
|
|
1340
|
-
}), null), r(o, u(ve, {
|
|
1341
|
-
get sections() {
|
|
1342
|
-
return l.breakdown;
|
|
1343
|
-
}
|
|
1344
|
-
}), null), r(o, u(be, {
|
|
1345
|
-
get footnotes() {
|
|
1346
|
-
return e.footnotes;
|
|
1347
|
-
}
|
|
1348
|
-
}), null), V(() => oe(o, `lens-print-figure lens-print-figure-${a || c ? "full" : l.width}`)), o;
|
|
1349
|
-
})();
|
|
1350
|
-
}
|
|
1351
|
-
function $r(e) {
|
|
1352
|
-
const t = e.values.filter((s) => Number.isFinite(s));
|
|
1353
|
-
if (t.length < 2) return null;
|
|
1354
|
-
const l = Math.min(...t), n = Math.max(...t) - l || 1, a = 100 / (t.length - 1), c = t.map((s, o) => `${(o * a).toFixed(2)},${(24 - (s - l) / n * 22).toFixed(2)}`).join(" ");
|
|
1355
|
-
return (() => {
|
|
1356
|
-
var s = Kn(), o = s.firstChild;
|
|
1357
|
-
return R(o, "points", c), s;
|
|
1358
|
-
})();
|
|
1359
|
-
}
|
|
1360
|
-
function Ie(e) {
|
|
1361
|
-
var y, g;
|
|
1362
|
-
const t = I(), l = e.figure, i = l.section, n = E(i), a = i.document.meta.locale, c = i.frame, s = c ? A(c, n.encoding.value) : -1, o = c && s >= 0 ? (y = c.rows[0]) == null ? void 0 : y[s] : void 0, h = n.encoding.value ? n.format[n.encoding.value] : void 0, f = c ? A(c, n.encoding.final) : -1, p = c && f >= 0 ? (g = c.rows[0]) == null ? void 0 : g[f] : void 0, m = Q(p), x = n.encoding.final ? n.format[n.encoding.final] : h, v = n.target;
|
|
1363
|
-
return (() => {
|
|
1364
|
-
var _ = Vn(), C = _.firstChild, F = C.nextSibling, P = F.nextSibling;
|
|
1365
|
-
return r(C, u(w, {
|
|
1366
|
-
get when() {
|
|
1367
|
-
return e.numbered;
|
|
1368
|
-
},
|
|
1369
|
-
get children() {
|
|
1370
|
-
var d = Nn();
|
|
1371
|
-
return r(d, () => t("print.figure", "Fig. {number}", {
|
|
1372
|
-
number: l.number
|
|
1373
|
-
})), d;
|
|
1374
|
-
}
|
|
1375
|
-
}), null), r(C, () => n.title, null), r(C, u(Ee, {
|
|
1376
|
-
get footnotes() {
|
|
1377
|
-
return e.footnotes;
|
|
1378
|
-
}
|
|
1379
|
-
}), null), r(F, () => K(o, h, a), null), r(F, u(w, {
|
|
1380
|
-
when: m !== void 0,
|
|
1381
|
-
get children() {
|
|
1382
|
-
var d = Rn();
|
|
1383
|
-
return R(d, "data-negative", m < 0 ? "" : void 0), r(d, m > 0 ? "+" : "", null), r(d, () => K(p, x, a), null), d;
|
|
1384
|
-
}
|
|
1385
|
-
}), null), r(_, u(w, {
|
|
1386
|
-
get when() {
|
|
1387
|
-
return n.sparkline;
|
|
1388
|
-
},
|
|
1389
|
-
get children() {
|
|
1390
|
-
return u($r, {
|
|
1391
|
-
get values() {
|
|
1392
|
-
return n.sparkline.values;
|
|
1393
|
-
}
|
|
1394
|
-
});
|
|
1395
|
-
}
|
|
1396
|
-
}), P), r(_, u(w, {
|
|
1397
|
-
get when() {
|
|
1398
|
-
return n.trend;
|
|
1399
|
-
},
|
|
1400
|
-
get children() {
|
|
1401
|
-
var d = Ln();
|
|
1402
|
-
return r(d, () => n.trend.percent > 0 ? "+" : "", null), r(d, () => we(n.trend.percent) ?? `${new Intl.NumberFormat(a, {
|
|
1403
|
-
maximumFractionDigits: 1
|
|
1404
|
-
}).format(n.trend.percent)}%`, null), r(d, (() => {
|
|
1405
|
-
var $ = B(() => !!n.trend.label);
|
|
1406
|
-
return () => $() ? ` ${n.trend.label}` : "";
|
|
1407
|
-
})(), null), V(() => R(d, "data-negative", n.trend.percent < 0 ? "" : void 0)), d;
|
|
1408
|
-
}
|
|
1409
|
-
}), P), r(_, u(w, {
|
|
1410
|
-
when: v,
|
|
1411
|
-
get children() {
|
|
1412
|
-
var d = En(), $ = d.firstChild;
|
|
1413
|
-
return r(d, () => t("print.target", "Target"), $), r(d, () => K(v.value, h, a), null), r(d, (() => {
|
|
1414
|
-
var k = B(() => !!v.label);
|
|
1415
|
-
return () => k() ? ` · ${v.label}` : "";
|
|
1416
|
-
})(), null), d;
|
|
1417
|
-
}
|
|
1418
|
-
}), P), r(_, u(w, {
|
|
1419
|
-
get when() {
|
|
1420
|
-
return n.caption;
|
|
1421
|
-
},
|
|
1422
|
-
get children() {
|
|
1423
|
-
var d = In();
|
|
1424
|
-
return r(d, () => n.caption), d;
|
|
1425
|
-
}
|
|
1426
|
-
}), P), r(P, u(w, {
|
|
1427
|
-
get when() {
|
|
1428
|
-
var d;
|
|
1429
|
-
return (d = n.status) == null ? void 0 : d.label;
|
|
1430
|
-
},
|
|
1431
|
-
get children() {
|
|
1432
|
-
var d = Te();
|
|
1433
|
-
return r(d, () => n.status.label), V(() => R(d, "data-tone", n.status.tone ?? "neutral")), d;
|
|
1434
|
-
}
|
|
1435
|
-
}), null), r(P, u(X, {
|
|
1436
|
-
get availability() {
|
|
1437
|
-
return n.availability;
|
|
1438
|
-
},
|
|
1439
|
-
get confidence() {
|
|
1440
|
-
return n.confidence;
|
|
1441
|
-
}
|
|
1442
|
-
}), null), _;
|
|
1443
|
-
})();
|
|
1444
|
-
}
|
|
1445
|
-
function _r(e, t) {
|
|
1446
|
-
var c, s;
|
|
1447
|
-
if (e.contextEditor) {
|
|
1448
|
-
const o = new Set(e.layout.rows.flatMap((f) => f.panels.flatMap((p) => p.groups ?? [])).flatMap((f) => f.filterContext ? [`${f.filterContext.period.start ?? ""} – ${f.filterContext.period.end ?? ""}`] : []));
|
|
1449
|
-
if (o.size > 1) return e.i18n["filter.context.reportPeriods"] || "Report periods";
|
|
1450
|
-
const h = [...o][0];
|
|
1451
|
-
if (h) return h.trim() === "–" ? t : h;
|
|
1452
|
-
}
|
|
1453
|
-
const l = (s = (c = e.filters) == null ? void 0 : c.find((o) => o.kind === "period")) == null ? void 0 : s.period;
|
|
1454
|
-
if (!l) return;
|
|
1455
|
-
const {
|
|
1456
|
-
start: i,
|
|
1457
|
-
end: n
|
|
1458
|
-
} = l.value;
|
|
1459
|
-
if (!i && !n) return t;
|
|
1460
|
-
const a = (o) => {
|
|
1461
|
-
const h = new Date(o);
|
|
1462
|
-
return Number.isNaN(h.getTime()) ? o : new Intl.DateTimeFormat(e.meta.locale, {
|
|
1463
|
-
dateStyle: "medium"
|
|
1464
|
-
}).format(h);
|
|
1465
|
-
};
|
|
1466
|
-
return i && n ? `${a(i)} — ${a(n)}` : a(i || n);
|
|
1467
|
-
}
|
|
1468
|
-
function wr(e) {
|
|
1469
|
-
const t = I(), l = e.outline.kpis, i = e.document, n = _r(i, t("filter.period.allTime", "All time"));
|
|
1470
|
-
return (() => {
|
|
1471
|
-
var a = On(), c = a.firstChild, s = c.firstChild, o = s.nextSibling, h = c.nextSibling, f = h.firstChild, p = f.firstChild, m = p.nextSibling, x = f.nextSibling, v = x.firstChild, y = v.nextSibling;
|
|
1472
|
-
return r(s, () => t("print.kicker", "Management audit report")), r(o, () => {
|
|
1473
|
-
var g;
|
|
1474
|
-
return ((g = i.header) == null ? void 0 : g.title) || i.meta.title;
|
|
1475
|
-
}), r(c, u(w, {
|
|
1476
|
-
get when() {
|
|
1477
|
-
var g;
|
|
1478
|
-
return (g = i.header) == null ? void 0 : g.subtitle;
|
|
1479
|
-
},
|
|
1480
|
-
get children() {
|
|
1481
|
-
var g = qn();
|
|
1482
|
-
return r(g, () => {
|
|
1483
|
-
var _;
|
|
1484
|
-
return (_ = i.header) == null ? void 0 : _.subtitle;
|
|
1485
|
-
}), g;
|
|
1486
|
-
}
|
|
1487
|
-
}), null), r(h, u(w, {
|
|
1488
|
-
when: n,
|
|
1489
|
-
get children() {
|
|
1490
|
-
var g = ce(), _ = g.firstChild, C = _.nextSibling;
|
|
1491
|
-
return r(_, () => t("print.period", "Period")), r(C, n), g;
|
|
1492
|
-
}
|
|
1493
|
-
}), f), r(p, () => t("print.generated", "Generated")), r(m, () => new Intl.DateTimeFormat(i.meta.locale, {
|
|
1494
|
-
dateStyle: "long",
|
|
1495
|
-
timeStyle: "short"
|
|
1496
|
-
}).format(new Date(i.meta.generatedAt))), r(v, () => t("print.sections", "Detailed views")), r(y, () => e.outline.figureCount + e.outline.detailCount), r(h, u(w, {
|
|
1497
|
-
get when() {
|
|
1498
|
-
return e.outline.estimated > 0 || e.outline.missing.length > 0;
|
|
1499
|
-
},
|
|
1500
|
-
get children() {
|
|
1501
|
-
var g = ce(), _ = g.firstChild, C = _.nextSibling;
|
|
1502
|
-
return r(_, () => t("print.quality", "Data quality")), r(C, () => t("print.qualityCount", "{estimated} estimated · {missing} not calculated", {
|
|
1503
|
-
estimated: e.outline.estimated,
|
|
1504
|
-
missing: e.outline.missing.length
|
|
1505
|
-
})), g;
|
|
1506
|
-
}
|
|
1507
|
-
}), null), r(a, u(w, {
|
|
1508
|
-
get when() {
|
|
1509
|
-
return l.length > 0;
|
|
1510
|
-
},
|
|
1511
|
-
get children() {
|
|
1512
|
-
var g = jn();
|
|
1513
|
-
return r(g, u(L, {
|
|
1514
|
-
each: l,
|
|
1515
|
-
children: (_) => u(Ie, {
|
|
1516
|
-
figure: _
|
|
1517
|
-
})
|
|
1518
|
-
})), g;
|
|
1519
|
-
}
|
|
1520
|
-
}), null), r(a, u(w, {
|
|
1521
|
-
get when() {
|
|
1522
|
-
return e.report.truncated || e.report.warnings.length > 0 || e.outline.missing.length > 0;
|
|
1523
|
-
},
|
|
1524
|
-
get children() {
|
|
1525
|
-
var g = Bn();
|
|
1526
|
-
return r(g, () => t("print.limitationsFlag", "This report discloses gaps in its data; see the closing appendix.")), g;
|
|
1527
|
-
}
|
|
1528
|
-
}), null), a;
|
|
1529
|
-
})();
|
|
1530
|
-
}
|
|
1531
|
-
function yr(e) {
|
|
1532
|
-
const t = I();
|
|
1533
|
-
return (() => {
|
|
1534
|
-
var l = Wn(), i = l.firstChild, n = i.nextSibling, a = n.firstChild, c = a.firstChild, s = c.nextSibling, o = n.nextSibling;
|
|
1535
|
-
return r(i, () => t("print.contents", "Contents")), r(n, u(L, {
|
|
1536
|
-
get each() {
|
|
1537
|
-
return e.outline.chapters.filter(({
|
|
1538
|
-
figures: h
|
|
1539
|
-
}) => h.length > 0);
|
|
1540
|
-
},
|
|
1541
|
-
children: (h) => (() => {
|
|
1542
|
-
var f = Hn(), p = f.firstChild, m = p.nextSibling;
|
|
1543
|
-
return r(p, () => h.number), r(m, () => h.title), r(f, u(w, {
|
|
1544
|
-
get when() {
|
|
1545
|
-
return h.caption;
|
|
1546
|
-
},
|
|
1547
|
-
get children() {
|
|
1548
|
-
var x = zn();
|
|
1549
|
-
return r(x, () => h.caption), x;
|
|
1550
|
-
}
|
|
1551
|
-
}), null), f;
|
|
1552
|
-
})()
|
|
1553
|
-
}), a), r(n, u(w, {
|
|
1554
|
-
get when() {
|
|
1555
|
-
return e.outline.appendix.length > 0;
|
|
1556
|
-
},
|
|
1557
|
-
get children() {
|
|
1558
|
-
var h = Un(), f = h.firstChild, p = f.nextSibling;
|
|
1559
|
-
return r(p, () => t("print.appendix", "Appendix A. Detailed breakdowns")), h;
|
|
1560
|
-
}
|
|
1561
|
-
}), a), r(s, () => t("print.method", "Appendix B. Sources and definitions")), r(o, () => t("print.note", "Every interactive view is expanded below. Values and shares accompany each chart so the report remains self-contained on paper.")), l;
|
|
1562
|
-
})();
|
|
1563
|
-
}
|
|
1564
|
-
function xr(e) {
|
|
1565
|
-
var x;
|
|
1566
|
-
const t = I(), l = e.chapter, i = q(() => {
|
|
1567
|
-
var v;
|
|
1568
|
-
return qt(l.figures.map((y) => ({
|
|
1569
|
-
id: y.section.id,
|
|
1570
|
-
panel: E(y.section),
|
|
1571
|
-
frame: y.section.frame
|
|
1572
|
-
})), ((v = l.figures[0]) == null ? void 0 : v.section.document.meta.locale) ?? "en");
|
|
1573
|
-
}), n = mt(l.figures, t);
|
|
1574
|
-
if (l.figures.length === 0) return null;
|
|
1575
|
-
const a = /* @__PURE__ */ new Set([l.caption ?? ""]), c = [];
|
|
1576
|
-
let s, o;
|
|
1577
|
-
const h = (v) => u(vr, {
|
|
1578
|
-
figure: v,
|
|
1579
|
-
get footnotes() {
|
|
1580
|
-
return n.get(v.section.id);
|
|
1581
|
-
}
|
|
1582
|
-
}), f = (v) => {
|
|
1583
|
-
if (!o) {
|
|
1584
|
-
c.push(v);
|
|
1585
|
-
return;
|
|
1586
|
-
}
|
|
1587
|
-
const y = o;
|
|
1588
|
-
o = void 0, c.push((() => {
|
|
1589
|
-
var g = Gn();
|
|
1590
|
-
return r(g, y, null), r(g, v, null), g;
|
|
1591
|
-
})());
|
|
1592
|
-
}, p = () => {
|
|
1593
|
-
s && (f(h(s)), s = void 0);
|
|
1594
|
-
}, m = (v) => {
|
|
1595
|
-
if (v.width !== "half") {
|
|
1596
|
-
p(), f(h(v));
|
|
1597
|
-
return;
|
|
1598
|
-
}
|
|
1599
|
-
if (!s) {
|
|
1600
|
-
s = v;
|
|
1601
|
-
return;
|
|
1602
|
-
}
|
|
1603
|
-
const y = s;
|
|
1604
|
-
s = void 0, f((() => {
|
|
1605
|
-
var g = Qn();
|
|
1606
|
-
return r(g, () => h(y), null), r(g, () => h(v), null), g;
|
|
1607
|
-
})());
|
|
1608
|
-
};
|
|
1609
|
-
for (const v of l.figures) {
|
|
1610
|
-
const y = v.group, g = `${(y == null ? void 0 : y.label) ?? ""}::${(y == null ? void 0 : y.caption) ?? ""}::${((x = y == null ? void 0 : y.filterContext) == null ? void 0 : x.identity) ?? ""}`;
|
|
1611
|
-
y && !a.has(g) && (a.add(g), p(), o = (() => {
|
|
1612
|
-
var _ = Xn();
|
|
1613
|
-
return r(_, u(w, {
|
|
1614
|
-
get when() {
|
|
1615
|
-
return y.label;
|
|
1616
|
-
},
|
|
1617
|
-
get children() {
|
|
1618
|
-
var C = Jn();
|
|
1619
|
-
return r(C, () => y.label), C;
|
|
1620
|
-
}
|
|
1621
|
-
}), null), r(_, u(w, {
|
|
1622
|
-
get when() {
|
|
1623
|
-
return B(() => !!y.caption)() && y.caption !== l.caption;
|
|
1624
|
-
},
|
|
1625
|
-
get children() {
|
|
1626
|
-
var C = Yn();
|
|
1627
|
-
return r(C, () => y.caption), C;
|
|
1628
|
-
}
|
|
1629
|
-
}), null), r(_, u(w, {
|
|
1630
|
-
get when() {
|
|
1631
|
-
return y.filterContext;
|
|
1632
|
-
},
|
|
1633
|
-
children: (C) => u(He, {
|
|
1634
|
-
get context() {
|
|
1635
|
-
return C();
|
|
1636
|
-
},
|
|
1637
|
-
get labels() {
|
|
1638
|
-
var F;
|
|
1639
|
-
return (F = v.section.document.contextEditor) == null ? void 0 : F.dimensionLabels;
|
|
1640
|
-
},
|
|
1641
|
-
get origins() {
|
|
1642
|
-
var F;
|
|
1643
|
-
return (F = v.section.document.contextEditor) == null ? void 0 : F.originLabels;
|
|
1644
|
-
},
|
|
1645
|
-
get values() {
|
|
1646
|
-
var F;
|
|
1647
|
-
return (F = v.section.document.contextEditor) == null ? void 0 : F.valueLabels;
|
|
1648
|
-
}
|
|
1649
|
-
})
|
|
1650
|
-
}), null), _;
|
|
1651
|
-
})()), m(v);
|
|
1652
|
-
}
|
|
1653
|
-
return p(), o && c.push(o), (() => {
|
|
1654
|
-
var v = tr(), y = v.firstChild, g = y.firstChild, _ = g.firstChild, C = _.nextSibling;
|
|
1655
|
-
C.nextSibling;
|
|
1656
|
-
var F = g.nextSibling, P = F.firstChild, d = y.nextSibling;
|
|
1657
|
-
return r(g, () => e.title, _), r(g, () => l.number, C), r(g, () => l.title, null), r(P, () => l.number), r(F, () => l.title, null), r(y, u(w, {
|
|
1658
|
-
get when() {
|
|
1659
|
-
return l.caption;
|
|
1660
|
-
},
|
|
1661
|
-
get children() {
|
|
1662
|
-
var $ = Zn();
|
|
1663
|
-
return r($, () => l.caption), $;
|
|
1664
|
-
}
|
|
1665
|
-
}), null), r(y, u(w, {
|
|
1666
|
-
get when() {
|
|
1667
|
-
return i().length > 0;
|
|
1668
|
-
},
|
|
1669
|
-
get children() {
|
|
1670
|
-
var $ = er();
|
|
1671
|
-
return r($, u(L, {
|
|
1672
|
-
get each() {
|
|
1673
|
-
return i();
|
|
1674
|
-
},
|
|
1675
|
-
children: (k) => (() => {
|
|
1676
|
-
var M = nr(), S = M.firstChild;
|
|
1677
|
-
return r(S, () => k.label), r(M, () => k.value, null), M;
|
|
1678
|
-
})()
|
|
1679
|
-
})), $;
|
|
1680
|
-
}
|
|
1681
|
-
}), null), r(d, c), v;
|
|
1682
|
-
})();
|
|
1683
|
-
}
|
|
1684
|
-
const kr = 12, $e = 8;
|
|
1685
|
-
function Cr(e) {
|
|
1686
|
-
var s;
|
|
1687
|
-
const t = I(), l = e.detail, i = E(l.section), n = ((s = l.section.frame) == null ? void 0 : s.rows.length) ?? 0, a = i.semantics === "series" && n > kr, c = a && l.section.frame ? {
|
|
1688
|
-
...l.section,
|
|
1689
|
-
frame: {
|
|
1690
|
-
...l.section.frame,
|
|
1691
|
-
rows: l.section.frame.rows.slice(-$e)
|
|
1692
|
-
}
|
|
1693
|
-
} : l.section;
|
|
1694
|
-
return (() => {
|
|
1695
|
-
var o = lr(), h = o.firstChild, f = h.firstChild, p = f.nextSibling, m = p.nextSibling;
|
|
1696
|
-
return r(f, () => l.number), r(p, () => i.title), r(m, () => l.trail), r(o, u(w, {
|
|
1697
|
-
when: a,
|
|
1698
|
-
get children() {
|
|
1699
|
-
return u(Ne, {
|
|
1700
|
-
height: 110,
|
|
1701
|
-
get section() {
|
|
1702
|
-
return l.section;
|
|
1703
|
-
}
|
|
1704
|
-
});
|
|
1705
|
-
}
|
|
1706
|
-
}), null), r(o, u(ue, {
|
|
1707
|
-
dense: !0,
|
|
1708
|
-
exact: !0,
|
|
1709
|
-
section: c
|
|
1710
|
-
}), null), r(o, u(Le, {
|
|
1711
|
-
get section() {
|
|
1712
|
-
return l.section;
|
|
1713
|
-
}
|
|
1714
|
-
}), null), r(o, u(w, {
|
|
1715
|
-
when: a,
|
|
1716
|
-
get children() {
|
|
1717
|
-
var x = rr();
|
|
1718
|
-
return r(x, () => t("print.seriesTail", "The chart carries all {rows} periods; the table keeps the most recent {kept}.", {
|
|
1719
|
-
rows: n,
|
|
1720
|
-
kept: $e
|
|
1721
|
-
})), x;
|
|
1722
|
-
}
|
|
1723
|
-
}), null), o;
|
|
1724
|
-
})();
|
|
1725
|
-
}
|
|
1726
|
-
function Sr(e) {
|
|
1727
|
-
const t = I();
|
|
1728
|
-
return u(w, {
|
|
1729
|
-
get when() {
|
|
1730
|
-
return e.outline.appendix.length > 0;
|
|
1731
|
-
},
|
|
1732
|
-
get children() {
|
|
1733
|
-
var l = ir(), i = l.firstChild, n = i.firstChild, a = n.firstChild, c = n.nextSibling;
|
|
1734
|
-
c.firstChild;
|
|
1735
|
-
var s = c.nextSibling;
|
|
1736
|
-
return r(n, () => e.title, a), r(n, () => t("print.appendix", "Appendix A. Detailed breakdowns"), null), r(c, () => t("print.appendix", "Appendix A. Detailed breakdowns"), null), r(s, () => t("print.appendixNote", "Each reading below is one step of the drill path printed above it, kept for verification rather than for reading in order.")), r(l, u(L, {
|
|
1737
|
-
get each() {
|
|
1738
|
-
return e.outline.appendix;
|
|
1739
|
-
},
|
|
1740
|
-
children: (o) => (() => {
|
|
1741
|
-
var h = ar(), f = h.firstChild, p = f.firstChild, m = p.nextSibling;
|
|
1742
|
-
m.nextSibling;
|
|
1743
|
-
var x = f.nextSibling;
|
|
1744
|
-
return r(f, () => o.number, m), r(f, () => o.title, null), r(x, u(L, {
|
|
1745
|
-
get each() {
|
|
1746
|
-
return o.details;
|
|
1747
|
-
},
|
|
1748
|
-
children: (v) => u(Cr, {
|
|
1749
|
-
detail: v
|
|
1750
|
-
})
|
|
1751
|
-
})), h;
|
|
1752
|
-
})()
|
|
1753
|
-
}), null), l;
|
|
1754
|
-
}
|
|
1755
|
-
});
|
|
1756
|
-
}
|
|
1757
|
-
function Fr(e) {
|
|
1758
|
-
const t = I(), l = q(() => ct(e.outline.qualities, t));
|
|
1759
|
-
return (() => {
|
|
1760
|
-
var i = ur(), n = i.firstChild, a = n.firstChild, c = a.firstChild, s = a.nextSibling;
|
|
1761
|
-
s.firstChild;
|
|
1762
|
-
var o = n.nextSibling, h = o.firstChild, f = h.nextSibling, p = f.nextSibling, m = p.nextSibling;
|
|
1763
|
-
return m.nextSibling, r(a, () => e.title, c), r(a, () => t("print.method", "Appendix B. Sources and definitions"), null), r(s, () => t("print.method", "Appendix B. Sources and definitions"), null), r(i, u(w, {
|
|
1764
|
-
get when() {
|
|
1765
|
-
return l().length > 0;
|
|
1766
|
-
},
|
|
1767
|
-
get children() {
|
|
1768
|
-
var x = sr(), v = x.firstChild, y = v.nextSibling;
|
|
1769
|
-
return r(v, () => t("print.qualityTerms", "What the quality marks mean")), r(y, u(L, {
|
|
1770
|
-
get each() {
|
|
1771
|
-
return l();
|
|
1772
|
-
},
|
|
1773
|
-
children: (g) => (() => {
|
|
1774
|
-
var _ = dr(), C = _.firstChild, F = C.firstChild, P = C.nextSibling;
|
|
1775
|
-
return r(F, () => g.label), r(P, () => g.definition), V(() => R(F, "data-quality", g.value)), _;
|
|
1776
|
-
})()
|
|
1777
|
-
})), x;
|
|
1778
|
-
}
|
|
1779
|
-
}), o), r(i, u(w, {
|
|
1780
|
-
get when() {
|
|
1781
|
-
return e.outline.notes.length > 0;
|
|
1782
|
-
},
|
|
1783
|
-
get children() {
|
|
1784
|
-
var x = or();
|
|
1785
|
-
return r(x, u(L, {
|
|
1786
|
-
get each() {
|
|
1787
|
-
return e.outline.notes;
|
|
1788
|
-
},
|
|
1789
|
-
children: (v) => (() => {
|
|
1790
|
-
var y = ce(), g = y.firstChild, _ = g.nextSibling;
|
|
1791
|
-
return r(g, () => v.label), r(_, () => v.detail), y;
|
|
1792
|
-
})()
|
|
1793
|
-
})), x;
|
|
1794
|
-
}
|
|
1795
|
-
}), o), r(i, u(w, {
|
|
1796
|
-
get when() {
|
|
1797
|
-
return e.outline.missing.length > 0 || e.report.truncated || e.report.warnings.length > 0;
|
|
1798
|
-
},
|
|
1799
|
-
get children() {
|
|
1800
|
-
var x = cr(), v = x.firstChild, y = v.nextSibling, g = y.nextSibling;
|
|
1801
|
-
return r(v, () => t("print.limitations", "Data limitations")), r(y, () => t("print.limitationsNote", "The report remains usable, but the following detail views could not be calculated and are explicitly disclosed:")), r(g, u(w, {
|
|
1802
|
-
get when() {
|
|
1803
|
-
return e.outline.missing.length > 0;
|
|
1804
|
-
},
|
|
1805
|
-
get children() {
|
|
1806
|
-
var _ = ae();
|
|
1807
|
-
return r(_, () => t("print.missing", "Not calculated: {names}", {
|
|
1808
|
-
names: e.outline.missing.join(", ")
|
|
1809
|
-
})), _;
|
|
1810
|
-
}
|
|
1811
|
-
}), null), r(g, u(w, {
|
|
1812
|
-
get when() {
|
|
1813
|
-
return e.report.truncated;
|
|
1814
|
-
},
|
|
1815
|
-
get children() {
|
|
1816
|
-
var _ = ae();
|
|
1817
|
-
return r(_, () => t("print.timeLimit", "Further detail was stopped at the preparation time limit; all sections calculated by then are included.")), _;
|
|
1818
|
-
}
|
|
1819
|
-
}), null), r(g, u(L, {
|
|
1820
|
-
get each() {
|
|
1821
|
-
return e.report.warnings;
|
|
1822
|
-
},
|
|
1823
|
-
children: (_) => (() => {
|
|
1824
|
-
var C = ae();
|
|
1825
|
-
return r(C, _), C;
|
|
1826
|
-
})()
|
|
1827
|
-
}), null), x;
|
|
1828
|
-
}
|
|
1829
|
-
}), o), r(o, () => t("print.snapshot", "Snapshot"), h), r(o, () => e.document.snapshotId, f), r(o, () => e.document.meta.dashboardId, m), r(o, () => e.document.meta.locale, null), i;
|
|
1830
|
-
})();
|
|
1831
|
-
}
|
|
1832
|
-
function Mr(e) {
|
|
1833
|
-
var c;
|
|
1834
|
-
const t = I(), l = e.report.document, i = ((c = l.header) == null ? void 0 : c.title) || l.meta.title, n = q(() => Qt(e.report))(), a = q(() => Ht(e.report, t("print.summary", "Summary"), t("print.other", "Other readings")))();
|
|
1835
|
-
return u(Ae.Provider, {
|
|
1836
|
-
value: n,
|
|
1837
|
-
get children() {
|
|
1838
|
-
return [u(wr, {
|
|
1839
|
-
document: l,
|
|
1840
|
-
outline: a,
|
|
1841
|
-
get report() {
|
|
1842
|
-
return e.report;
|
|
1843
|
-
}
|
|
1844
|
-
}), u(yr, {
|
|
1845
|
-
outline: a
|
|
1846
|
-
}), u(L, {
|
|
1847
|
-
get each() {
|
|
1848
|
-
return a.chapters;
|
|
1849
|
-
},
|
|
1850
|
-
children: (s) => u(xr, {
|
|
1851
|
-
chapter: s,
|
|
1852
|
-
title: i
|
|
1853
|
-
})
|
|
1854
|
-
}), u(Sr, {
|
|
1855
|
-
outline: a,
|
|
1856
|
-
title: i
|
|
1857
|
-
}), u(Fr, {
|
|
1858
|
-
document: l,
|
|
1859
|
-
outline: a,
|
|
1860
|
-
get report() {
|
|
1861
|
-
return e.report;
|
|
1862
|
-
},
|
|
1863
|
-
title: i
|
|
1864
|
-
})];
|
|
1865
|
-
}
|
|
1866
|
-
});
|
|
1867
|
-
}
|
|
1868
|
-
function Er() {
|
|
1869
|
-
const {
|
|
1870
|
-
document: e
|
|
1871
|
-
} = We(), t = ze();
|
|
1872
|
-
return typeof globalThis.document > "u" ? null : u(w, {
|
|
1873
|
-
get when() {
|
|
1874
|
-
return t.report;
|
|
1875
|
-
},
|
|
1876
|
-
children: (l) => {
|
|
1877
|
-
const i = e.theme.palette.accent ?? e.theme.palette.primary;
|
|
1878
|
-
return u(qe, {
|
|
1879
|
-
get mount() {
|
|
1880
|
-
return globalThis.document.body;
|
|
1881
|
-
},
|
|
1882
|
-
get children() {
|
|
1883
|
-
var n = hr();
|
|
1884
|
-
return r(n, u(Mr, {
|
|
1885
|
-
get report() {
|
|
1886
|
-
return l();
|
|
1887
|
-
}
|
|
1888
|
-
})), V((a) => {
|
|
1889
|
-
var c = !t.active, s = t.preview ? "true" : void 0, o = e.meta.locale, h = i ? {
|
|
1890
|
-
"--lens-accent-500": i
|
|
1891
|
-
} : void 0;
|
|
1892
|
-
return c !== a.e && R(n, "aria-hidden", a.e = c), s !== a.t && R(n, "data-preview", a.t = s), o !== a.a && R(n, "lang", a.a = o), a.o = _e(n, h, a.o), a;
|
|
1893
|
-
}, {
|
|
1894
|
-
e: void 0,
|
|
1895
|
-
t: void 0,
|
|
1896
|
-
a: void 0,
|
|
1897
|
-
o: void 0
|
|
1898
|
-
}), n;
|
|
1899
|
-
}
|
|
1900
|
-
});
|
|
1901
|
-
}
|
|
1902
|
-
});
|
|
1903
|
-
}
|
|
1904
|
-
export {
|
|
1905
|
-
Er as PrintReport,
|
|
1906
|
-
Mr as PrintReportView
|
|
1907
|
-
};
|