contour-ds 1.7.2 → 1.9.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.
Files changed (150) hide show
  1. package/README.md +244 -326
  2. package/dist/agent-cookbook.json +960 -0
  3. package/dist/agent-examples.json +65 -0
  4. package/dist/agent-map-wiring.json +152 -0
  5. package/dist/agent-rules.json +16 -0
  6. package/dist/build-manifest.json +344 -126
  7. package/dist/contour-wc-content.esm.js +1939 -0
  8. package/dist/contour-wc-content.esm.min.js +1 -0
  9. package/dist/contour-wc-core.esm.js +3724 -0
  10. package/dist/contour-wc-core.esm.min.js +1 -0
  11. package/dist/contour-wc-dashboard.esm.js +6986 -0
  12. package/dist/contour-wc-dashboard.esm.min.js +1 -0
  13. package/dist/contour-wc-data.esm.js +6572 -0
  14. package/dist/contour-wc-data.esm.min.js +1 -0
  15. package/dist/contour-wc-docs.esm.js +976 -0
  16. package/dist/contour-wc-docs.esm.min.js +1 -0
  17. package/dist/contour-wc-feedback.esm.js +1742 -0
  18. package/dist/contour-wc-feedback.esm.min.js +1 -0
  19. package/dist/contour-wc-forms.esm.js +2437 -0
  20. package/dist/contour-wc-forms.esm.min.js +1 -0
  21. package/dist/contour-wc-interaction.esm.js +1343 -0
  22. package/dist/contour-wc-interaction.esm.min.js +1 -0
  23. package/dist/contour-wc-layout.esm.js +845 -0
  24. package/dist/contour-wc-layout.esm.min.js +1 -0
  25. package/dist/contour-wc-map.esm.js +2411 -0
  26. package/dist/contour-wc-map.esm.min.js +1 -0
  27. package/dist/contour-wc-misc.esm.js +945 -0
  28. package/dist/contour-wc-misc.esm.min.js +1 -0
  29. package/dist/contour-wc-navigation.esm.js +2842 -0
  30. package/dist/contour-wc-navigation.esm.min.js +1 -0
  31. package/dist/contour-wc-ui.esm.js +6519 -0
  32. package/dist/contour-wc-ui.esm.min.js +1 -0
  33. package/dist/contour-wc.esm.js +14435 -5723
  34. package/dist/contour-wc.esm.min.js +1 -1
  35. package/dist/contour-wc.js +14436 -5725
  36. package/dist/contour-wc.min.js +1 -1
  37. package/dist/contour.a11y.json +402 -0
  38. package/dist/contour.code-snippets +4534 -0
  39. package/dist/contour.components.json +4870 -1222
  40. package/dist/contour.css +6672 -4711
  41. package/dist/contour.d.ts +753 -1085
  42. package/dist/contour.esm.js +440 -18
  43. package/dist/contour.esm.min.js +1 -1
  44. package/dist/contour.html-data.json +11343 -0
  45. package/dist/contour.js +440 -18
  46. package/dist/contour.min.css +1 -1
  47. package/dist/contour.min.js +1 -1
  48. package/dist/contour.react.d.ts +422 -0
  49. package/dist/contour.single.html +17 -0
  50. package/dist/contour.single.min.css +1 -0
  51. package/dist/contour.themes.json +56 -12
  52. package/dist/contour.tokens.json +1318 -1053
  53. package/dist/contour.vue.d.ts +420 -0
  54. package/dist/contour.web-types.json +11703 -0
  55. package/dist/custom-elements.json +36120 -0
  56. package/dist/docs/actions.md +16 -6
  57. package/dist/docs/affordances.md +21 -85
  58. package/dist/docs/apireference.md +9 -5
  59. package/dist/docs/colour.md +10 -4
  60. package/dist/docs/componentindex.md +9 -22
  61. package/dist/docs/data.md +39 -58
  62. package/dist/docs/docs.md +12 -7
  63. package/dist/docs/feedback.md +30 -12
  64. package/dist/docs/field.md +28 -13
  65. package/dist/docs/forms.md +35 -19
  66. package/dist/docs/index.json +70 -61
  67. package/dist/docs/install.md +12 -7
  68. package/dist/docs/landing.md +7 -4
  69. package/dist/docs/mapengine.md +30 -8
  70. package/dist/docs/motion.md +12 -6
  71. package/dist/docs/navigation.md +31 -7
  72. package/dist/docs/overlays.md +32 -25
  73. package/dist/docs/overview.md +3 -2
  74. package/dist/docs/patterns.md +20 -10
  75. package/dist/docs/playground.md +11 -4
  76. package/dist/docs/principles.md +8 -6
  77. package/dist/docs/recipes.md +117 -13
  78. package/dist/docs/space.md +10 -6
  79. package/dist/docs/status.md +13 -14
  80. package/dist/docs/surfaces.md +17 -22
  81. package/dist/docs/theming.md +18 -32
  82. package/dist/docs/type.md +12 -5
  83. package/dist/docs/webcomponents.md +75 -33
  84. package/dist/hljs.css +1 -20
  85. package/dist/map-chrome.mapbox.css +68 -92
  86. package/dist/map-chrome.maplibre.css +68 -92
  87. package/dist/registry/items/contour-core.json +2 -2
  88. package/dist/registry/items/contour-data.json +2 -2
  89. package/dist/registry/items/contour-docs.json +2 -2
  90. package/dist/registry/items/contour-landing.json +2 -2
  91. package/dist/registry/registry.json +8 -8
  92. package/dist/surfaces/contour-core.min.css +1 -1
  93. package/dist/surfaces/contour-data.min.css +1 -1
  94. package/dist/surfaces/contour-docs.min.css +1 -1
  95. package/dist/surfaces/contour-landing.min.css +1 -1
  96. package/dist/svg/icons.svg +367 -0
  97. package/dist/wc/behaviours.mjs +222 -192
  98. package/dist/wc/content.mjs +486 -142
  99. package/dist/wc/core.mjs +917 -395
  100. package/dist/wc/dashboard.mjs +252 -25
  101. package/dist/wc/data-chart.mjs +1333 -0
  102. package/dist/wc/data-export.mjs +391 -0
  103. package/dist/wc/data-gauge.mjs +779 -0
  104. package/dist/wc/data-geo.mjs +696 -0
  105. package/dist/wc/data-glyphs.mjs +133 -0
  106. package/dist/wc/data-legend.mjs +431 -0
  107. package/dist/wc/data-readout.mjs +227 -0
  108. package/dist/wc/data-series.mjs +1004 -0
  109. package/dist/wc/data-table.mjs +751 -0
  110. package/dist/wc/data.mjs +15 -3707
  111. package/dist/wc/docs.mjs +113 -19
  112. package/dist/wc/feedback.mjs +320 -116
  113. package/dist/wc/forms-controls.mjs +635 -0
  114. package/dist/wc/forms-field.mjs +547 -0
  115. package/dist/wc/forms-groups.mjs +347 -0
  116. package/dist/wc/forms-input.mjs +292 -0
  117. package/dist/wc/forms.mjs +10 -1122
  118. package/dist/wc/glyph.mjs +204 -0
  119. package/dist/wc/index.mjs +16 -7
  120. package/dist/wc/interaction.mjs +322 -75
  121. package/dist/wc/layout.mjs +100 -29
  122. package/dist/wc/map.mjs +888 -285
  123. package/dist/wc/misc.mjs +137 -26
  124. package/dist/wc/navigation-menu.mjs +735 -0
  125. package/dist/wc/navigation-shell.mjs +495 -0
  126. package/dist/wc/navigation-tree.mjs +995 -0
  127. package/dist/wc/navigation.mjs +9 -1636
  128. package/dist/wc/registration.mjs +1 -8
  129. package/dist/wc/shadow.mjs +285 -113
  130. package/dist/wc/states.mjs +75 -78
  131. package/dist/wc/svg.mjs +209 -34
  132. package/dist/wc/ui-atoms.mjs +608 -0
  133. package/dist/wc/ui-data.mjs +1404 -0
  134. package/dist/wc/ui-feedback.mjs +419 -0
  135. package/dist/wc/ui-inputs.mjs +1570 -0
  136. package/dist/wc/ui-menus.mjs +307 -0
  137. package/dist/wc/ui-overlays.mjs +1605 -0
  138. package/integrations/README.md +25 -5
  139. package/integrations/ai/CLAUDE.md +6 -3
  140. package/integrations/ai/COPILOT.md +14 -0
  141. package/integrations/ai/GEMINI.md +14 -0
  142. package/integrations/ai/WINDSURF.md +14 -0
  143. package/integrations/ai/v0-prompt.md +13 -1
  144. package/integrations/frameworks/README.md +235 -0
  145. package/integrations/native/README.md +0 -3
  146. package/integrations/native/style-dictionary.config.json +1 -1
  147. package/integrations/tailwind/contour-theme.css +71 -13
  148. package/integrations/validate-markup.mjs +172 -0
  149. package/package.json +103 -39
  150. package/dist/wc/ui.mjs +0 -3560
@@ -0,0 +1,696 @@
1
+ import { setHTML, ContourBase, define, onDispose, formatValue, contourId, navKey, isRtl, cssLength , safeColor, warnBadJson, labelText } from './core.mjs';
2
+ import { loadRemote, remoteData, renderStates, renderEmpty, wireStates, remoteInvalidate, watchViewport, parseArrayAttr, stateLabel } from './states.mjs';
3
+ import { donutSlices, barRects, smoothPath, polylinePoints, contourPaths } from './svg.mjs';
4
+ import { paintDonutGlyph, paintSparklineGlyph, paintPurityRing } from './glyph.mjs';
5
+
6
+ /**
7
+ * Measure: web component wrapper.
8
+ * Attributes: `label`, `value`, `point`, `line`, `empty`, `loading`, `error`, `retry`, `src`, `lazy`, `refresh`, `timeout`, `skeleton`.
9
+ */
10
+ class ContourMeasure extends ContourBase {
11
+ static get observed() { return ["label", "value", "point", "line", "unit", "empty", "loading", "error", "retry", "src", "lazy", "refresh", "timeout", "skeleton", "cache-key", "no-cache"]; }
12
+ static get properties() { return { label: { attribute: "label" }, value: { attribute: "value" }, point: { attribute: "point" }, line: { attribute: "line" }, unit: { attribute: "unit" }, src: { attribute: "src" } }; }
13
+ render() {
14
+ this.classList.add("c-measure");
15
+ this.setAttribute("role", "group");
16
+ this.setAttribute("aria-label", labelText(this, "measure", "Measure"));
17
+ wireStates(this);
18
+ loadRemote(this, ["label", "value", "point", "line"]);
19
+ if (renderStates(this, "measure")) return;
20
+ const rLabel = remoteData(this, "label");
21
+ const rValue = remoteData(this, "value");
22
+ const rPoint = remoteData(this, "point");
23
+ const rLine = remoteData(this, "line");
24
+ if (!rLabel && !rValue && !rPoint && !rLine) {
25
+ renderEmpty(this, "measure");
26
+ return;
27
+ }
28
+ if (rLabel) {
29
+ const l = this.ensure(".c-measure__label", () => { const el = document.createElement("span"); el.className = "c-measure__label"; return el; });
30
+ l.textContent = rLabel;
31
+ } else {
32
+ const l = this.querySelector(".c-measure__label");
33
+ if (l) l.remove();
34
+ }
35
+ if (rValue) {
36
+ const r = this.ensure(".c-measure__readout", () => { const el = document.createElement("span"); el.className = "c-measure__readout"; return el; });
37
+ r.textContent = rValue;
38
+ } else {
39
+ const r = this.querySelector(".c-measure__readout");
40
+ if (r) r.remove();
41
+ }
42
+ // unit selector
43
+ let sel = this.querySelector(".c-measure__unit-select");
44
+ if (!sel) { sel = document.createElement("select"); sel.className = "c-measure__unit-select"; sel.setAttribute("aria-label", labelText(this, "unit", "Unit")); sel.setAttribute("data-contour-label", "true"); this.appendChild(sel); }
45
+ ["m","km","mi","ft"].forEach((u) => {
46
+ if (!sel.querySelector('option[value="' + u + '"]')) { const o = document.createElement("option"); o.value = u; o.textContent = u; sel.appendChild(o); }
47
+ });
48
+ const curUnit = this._measureUnit !== undefined ? this._measureUnit : this.getAttribute("unit");
49
+ if (curUnit && sel.querySelector('option[value="' + curUnit + '"]')) sel.value = curUnit;
50
+ if (rPoint) {
51
+ const p = this.ensure(".c-measure__point", () => { const el = document.createElement("span"); el.className = "c-measure__point"; return el; });
52
+ p.textContent = rPoint;
53
+ } else {
54
+ const p = this.querySelector(".c-measure__point");
55
+ if (p) p.remove();
56
+ }
57
+ if (!rLine) {
58
+ const svg = this.querySelector("svg");
59
+ if (svg) svg.remove();
60
+ return;
61
+ }
62
+ if (rLine) {
63
+ const ln = this.ensure(".c-measure__line", () => { const el = document.createElement("span"); el.className = "c-measure__line"; return el; });
64
+ ln.style.inlineSize = rLine;
65
+ } else {
66
+ const ln = this.querySelector(".c-measure__line");
67
+ if (ln) ln.remove();
68
+ }
69
+ }
70
+ enhance() {
71
+ if (this._wiredMeasure) return;
72
+ this._wiredMeasure = true;
73
+ this.addEventListener("change", (e) => {
74
+ const sel = e.target && e.target.closest ? e.target.closest(".c-measure__unit-select") : null;
75
+ if (sel && this.contains(sel)) {
76
+ // Hold choice in private field (not observed `unit` attr): writing observed attr re-enters render; select already shows value, render reads field.
77
+ this._measureUnit = sel.value;
78
+ this.dispatchEvent(new CustomEvent("contour:change", { bubbles: true, composed: true, detail: { unit: sel.value } }));
79
+ }
80
+ });
81
+ }
82
+ }
83
+ define("contour-measure", ContourMeasure);
84
+ /**
85
+ * Timeline: web component wrapper.
86
+ * Attributes: `items`, `empty`, `loading`, `error`, `retry`, `src`, `lazy`, `refresh`, `timeout`, `skeleton`.
87
+ */
88
+ class ContourTimeline extends ContourBase {
89
+ static get observed() { return ["items", "empty", "loading", "error", "retry", "src", "lazy", "refresh", "timeout", "skeleton", "cache-key", "no-cache"]; }
90
+ static get properties() { return { items: { attribute: "items" }, src: { attribute: "src" } }; }
91
+ render() {
92
+ this.classList.add("c-timeline");
93
+ // Native list semantics: an <ol> with <li> items, not a role="list" on a
94
+ // <div> recreating the platform's list numbering and association.
95
+ let list = this.querySelector(".c-timeline__list");
96
+ if (!list) { list = document.createElement("ol"); list.className = "c-timeline__list"; list.setAttribute("aria-label", this.getAttribute("aria-label") || "Timeline"); this.appendChild(list); }
97
+ wireStates(this);
98
+ loadRemote(this, "items");
99
+ if (renderStates(this, "timeline")) return;
100
+ const authored = Array.from(this.children).filter((n) => n.classList && n.classList.contains("c-timeline__item"));
101
+ const items = remoteData(this, "items");
102
+ if (items && !authored.length) {
103
+ Array.from(list.querySelectorAll(".c-timeline__item")).forEach((n) => n.remove());
104
+ try {
105
+ const parsed = JSON.parse(items);
106
+ parsed.forEach((it, idx) => {
107
+ const item = document.createElement("li");
108
+ item.className = "c-timeline__item";
109
+ item.setAttribute("tabindex", idx === 0 ? "0" : "-1");
110
+ if (it.time) {
111
+ const t = document.createElement("time");
112
+ t.className = "c-timeline__time";
113
+ t.setAttribute("datetime", String(it.time));
114
+ t.textContent = it.time;
115
+ item.appendChild(t);
116
+ }
117
+ if (it.title) {
118
+ const ti = document.createElement("div");
119
+ ti.className = "c-timeline__title";
120
+ ti.textContent = it.title;
121
+ item.appendChild(ti);
122
+ }
123
+ if (it.text) {
124
+ const tx = document.createElement("div");
125
+ tx.className = "c-timeline__text";
126
+ tx.textContent = it.text;
127
+ item.appendChild(tx);
128
+ }
129
+ list.appendChild(item);
130
+ });
131
+ } catch (e) { warnBadJson(this, "attribute", e); }
132
+ } else if (!authored.length) {
133
+ renderEmpty(this, "timeline");
134
+ }
135
+ }
136
+ enhance() {
137
+ if (this._wiredTimeline) return;
138
+ this._wiredTimeline = true;
139
+ const items = Array.from(this.querySelectorAll(".c-timeline__item"));
140
+ items.forEach((it, i) => it.setAttribute("tabindex", i === 0 ? "0" : "-1"));
141
+ this.addEventListener("click", (e) => {
142
+ const item = e.target && e.target.closest ? e.target.closest(".c-timeline__item") : null;
143
+ if (!item || !this.contains(item)) return;
144
+ const items = Array.from(this.querySelectorAll(".c-timeline__item"));
145
+ const idx = items.indexOf(item);
146
+ this.dispatchEvent(new CustomEvent("contour:select", { bubbles: true, composed: true, detail: { index: idx } }));
147
+ });
148
+ this.addEventListener("keydown", (e) => {
149
+ const items = Array.from(this.querySelectorAll(".c-timeline__item"));
150
+ if (!items.length) return;
151
+ navKey(e, items, { wrap: false, homeEnd: true, onNavigate: (i) => items.forEach((it, j) => it.setAttribute("tabindex", j === i ? "0" : "-1")), onKey: () => { if (e.key === "Enter" || e.key === " ") this.dispatchEvent(new CustomEvent("contour:select", { bubbles: true, composed: true, detail: { index: items.indexOf(document.activeElement) } })); } });
152
+ });
153
+ }
154
+ }
155
+ define("contour-timeline", ContourTimeline);
156
+ /**
157
+ * Heatmap: web component wrapper.
158
+ * Attributes: `cells`, `count`, `legend`, `empty`, `loading`, `values`, `error`, `retry`, `src`, `lazy`, `refresh`, `timeout`, `skeleton`.
159
+ */
160
+ class ContourHeatmap extends ContourBase {
161
+ static get observed() { return ["cells", "count", "legend", "brownout", "brownout-level", "empty", "loading", "values", "error", "retry", "src", "lazy", "refresh", "timeout", "skeleton", "cache-key", "dir", "no-cache"]; }
162
+ static get properties() { return { cells: { attribute: "cells" }, count: { attribute: "count" }, legend: { attribute: "legend" }, src: { attribute: "src" } }; }
163
+ render() {
164
+ this.classList.add("c-heatmap");
165
+ if (!this.hasAttribute("role")) this.setAttribute("role", "grid");
166
+ if (!this.hasAttribute("aria-label")) this.setAttribute("aria-label", labelText(this, "heatmap", "Heatmap"));
167
+ wireStates(this);
168
+ loadRemote(this, "cells");
169
+ if (renderStates(this, "heatmap")) return;
170
+ // Slotted content support: authored .c-heatmap__cell children take
171
+ // precedence over the generated grid.
172
+ const authoredCells = Array.from(this.querySelectorAll(":scope > .c-heatmap__cell"));
173
+ if (authoredCells.length) {
174
+ const cols = Math.ceil(Math.sqrt(authoredCells.length));
175
+ this.style.gridTemplateColumns = "repeat(" + cols + ", 1fr)";
176
+ this.style.inlineSize = "16rem";
177
+ // Wrap authored cells in rows so gridcells have a required row parent
178
+ let row = null;
179
+ let col = 0;
180
+ const newRow = () => { row = document.createElement("div"); row.setAttribute("role", "row"); this.appendChild(row); col = 0; };
181
+ newRow();
182
+ authoredCells.forEach((cell) => {
183
+ cell.setAttribute("role", "gridcell");
184
+ row.appendChild(cell);
185
+ col++;
186
+ if (col === cols) newRow();
187
+ });
188
+ } else {
189
+ Array.from(this.querySelectorAll(".c-heatmap__cell")).forEach((n) => n.remove());
190
+ const count = Math.min(200, Math.max(0, parseInt(this.getAttribute("cells") || this.getAttribute("count") || "0", 10) || 0));
191
+ const cols = count > 0 ? Math.ceil(Math.sqrt(count)) : 1;
192
+ this.style.gridTemplateColumns = "repeat(" + cols + ", 1fr)";
193
+ this.style.inlineSize = "16rem";
194
+ if (count > 0) {
195
+ let values = [];
196
+ try { values = JSON.parse(this.getAttribute("values") || "[]"); } catch (e) { values = []; }
197
+ // Value→colour (DC-2): cells were all `--color-surface-1` (white boxes); now normalised to --chart-seq-1..7 ramp via --c; non-numeric falls back to empty surface.
198
+ const nums = values.map((v) => {
199
+ const n = Number(v);
200
+ return Number.isFinite(n) ? n : null;
201
+ });
202
+ const present = nums.filter((n) => n !== null);
203
+ const dMin = present.length ? Math.min.apply(null, present) : 0;
204
+ const dMax = present.length ? Math.max.apply(null, present) : 0;
205
+ const dRange = dMax - dMin;
206
+ const bandFor = (n) => {
207
+ if (n === null) return 0;
208
+ if (dRange <= 0) return 4; // every value equal: one mid band
209
+ return Math.min(7, 1 + Math.floor(((n - dMin) / dRange) * 7));
210
+ };
211
+ let row = null;
212
+ let col = 0;
213
+ const newRow = () => { row = document.createElement("div"); row.setAttribute("role", "row"); this.appendChild(row); col = 0; };
214
+ newRow();
215
+ for (let i = 0; i < count; i++) {
216
+ const cell = document.createElement("div");
217
+ cell.className = "c-heatmap__cell";
218
+ cell.setAttribute("role", "gridcell");
219
+ cell.setAttribute("tabindex", i === 0 ? "0" : "-1");
220
+ cell.dataset.index = String(i);
221
+ const band = bandFor(nums[i]);
222
+ if (band) {
223
+ cell.style.setProperty("--c", "var(--chart-seq-" + band + ")");
224
+ cell.dataset.band = String(band);
225
+ }
226
+ if (values[i] !== undefined) cell.setAttribute("data-title", String(values[i]));
227
+ row.appendChild(cell);
228
+ col++;
229
+ if (col === cols && i < count - 1) newRow();
230
+ }
231
+ // Tooltip shed ≥2; handlers re-query per event (no-op when absent); cells are marks (survive all levels).
232
+ if (this.shed("tooltip", 2)) {
233
+ const oldTip = this.querySelector(".c-heatmap__tooltip");
234
+ if (oldTip) oldTip.remove();
235
+ } else {
236
+ const tip = this.ensure(".c-heatmap__tooltip", () => { const el = document.createElement("div"); el.className = "c-heatmap__tooltip"; el.setAttribute("role", "tooltip"); el.setAttribute("hidden", ""); el.id = contourId("heatmap-tip"); return el; });
237
+ tip.setAttribute("hidden", "");
238
+ }
239
+ } else if (!authoredCells.length) {
240
+ renderEmpty(this, "heatmap");
241
+ }
242
+ }
243
+ // R25-03: the legend bar is chrome — shed at level ≥2.
244
+ if (this.hasAttribute("legend") && !this.shed("legend", 2)) {
245
+ const leg = this.ensure(".c-heatmap__legend", () => {
246
+ const el = document.createElement("div");
247
+ el.className = "c-heatmap__legend";
248
+ const bar = document.createElement("div");
249
+ bar.className = "c-heatmap__legend-bar";
250
+ el.appendChild(bar);
251
+ return el;
252
+ });
253
+ } else {
254
+ const leg = this.querySelector(".c-heatmap__legend");
255
+ if (leg) leg.remove();
256
+ }
257
+ }
258
+ enhance() {
259
+ if (this._wiredHeatmap) return;
260
+ this._wiredHeatmap = true;
261
+ const cells = () => Array.from(this.querySelectorAll(".c-heatmap__cell"));
262
+ // Tip rebuilt each render (base wipes generated); handlers re-query per event (rule 12) — captured node would detach after first re-render, tooltip dies silently.
263
+ const showTip = (e) => {
264
+ const tip = this.querySelector(".c-heatmap__tooltip");
265
+ if (!tip) return;
266
+ const cell = e.target && e.target.closest ? e.target.closest(".c-heatmap__cell") : null;
267
+ if (!cell || !this.contains(cell)) { tip.setAttribute("hidden", ""); return; }
268
+ const title = cell.getAttribute("data-title") || cell.getAttribute("title");
269
+ if (title) tip.textContent = title;
270
+ else tip.textContent = labelText(this, "cell", "Cell") + " " + (cell.dataset.index || "");
271
+ const rect = this.getBoundingClientRect();
272
+ const cr = cell.getBoundingClientRect();
273
+ this.style.position = this.style.position || "relative";
274
+ // Logical positioning (BY-48): CSS uses --chart-tip-* tokens (like chart tooltip); block flips in RTL instead of pinning to physical left.
275
+ tip.style.setProperty("--chart-tip-inline-start", (cr.left - rect.left + cr.width / 2) + "px");
276
+ tip.style.setProperty("--chart-tip-block-start", (cr.top - rect.top) + "px");
277
+ tip.removeAttribute("hidden");
278
+ };
279
+ const hideTip = () => {
280
+ const tip = this.querySelector(".c-heatmap__tooltip");
281
+ if (tip) tip.setAttribute("hidden", "");
282
+ };
283
+ this.addEventListener("mouseover", showTip);
284
+ this.addEventListener("mouseout", (e) => {
285
+ if (!e.relatedTarget || !this.contains(e.relatedTarget)) hideTip();
286
+ });
287
+ this.addEventListener("focusin", (e) => {
288
+ const cell = e.target && e.target.closest ? e.target.closest(".c-heatmap__cell") : null;
289
+ if (cell && this.contains(cell)) {
290
+ showTip({ target: cell });
291
+ const tip = this.querySelector(".c-heatmap__tooltip");
292
+ if (tip && tip.id) cell.setAttribute("aria-describedby", tip.id);
293
+ }
294
+ });
295
+ this.addEventListener("focusout", (e) => {
296
+ const cell = e.target && e.target.closest ? e.target.closest(".c-heatmap__cell") : null;
297
+ if (cell && this.contains(cell)) cell.removeAttribute("aria-describedby");
298
+ if (!this.contains(e.relatedTarget)) hideTip();
299
+ });
300
+ this.addEventListener("keydown", (e) => {
301
+ const cell = e.target && e.target.closest ? e.target.closest(".c-heatmap__cell") : null;
302
+ if (!cell || !this.contains(cell)) return;
303
+ const list = cells();
304
+ const idx = list.indexOf(cell);
305
+ let next = -1;
306
+ const rtl = (this.getAttribute("dir") || document.documentElement.getAttribute("dir") || "").toLowerCase() === "rtl";
307
+ if (e.key === "ArrowRight") next = rtl ? Math.max(idx - 1, 0) : Math.min(idx + 1, list.length - 1);
308
+ else if (e.key === "ArrowLeft") next = rtl ? Math.min(idx + 1, list.length - 1) : Math.max(idx - 1, 0);
309
+ else if (e.key === "ArrowDown") next = Math.min(idx + Math.ceil(Math.sqrt(list.length)), list.length - 1);
310
+ else if (e.key === "ArrowUp") next = Math.max(idx - Math.ceil(Math.sqrt(list.length)), 0);
311
+ else if (e.key === "Home") next = 0;
312
+ else if (e.key === "End") next = list.length - 1;
313
+ else if (e.key === "Enter" || e.key === " ") {
314
+ e.preventDefault();
315
+ this.dispatchEvent(new CustomEvent("contour:select", { bubbles: true, composed: true, detail: { series: 1, index: idx } }));
316
+ return;
317
+ }
318
+ if (next >= 0 && next !== idx) {
319
+ e.preventDefault();
320
+ list.forEach((c, i) => c.setAttribute("tabindex", i === next ? "0" : "-1"));
321
+ try { list[next].focus(); } catch (e) {}
322
+ }
323
+ });
324
+ this.addEventListener("click", (e) => {
325
+ const cell = e.target && e.target.closest ? e.target.closest(".c-heatmap__cell") : null;
326
+ if (!cell || !this.contains(cell)) return;
327
+ const idx = cells().indexOf(cell);
328
+ if (idx >= 0) this.dispatchEvent(new CustomEvent("contour:select", { bubbles: true, composed: true, detail: { series: 1, index: idx } }));
329
+ });
330
+ }
331
+ }
332
+ define("contour-heatmap", ContourHeatmap);
333
+ /**
334
+ * Compare: web component wrapper.
335
+ * Attributes: `no`, `text`, `yes`, `empty`, `loading`, `error`, `retry`, `src`, `lazy`, `refresh`, `timeout`, `skeleton`.
336
+ */
337
+ class ContourCompare extends ContourBase {
338
+ static get observed() { return ["no", "text", "yes", "empty", "loading", "error", "retry", "src", "lazy", "refresh", "timeout", "skeleton", "cache-key", "no-cache"]; }
339
+ static get properties() { return { no: { attribute: "no" }, text: { attribute: "text" }, yes: { attribute: "yes" }, src: { attribute: "src" } }; }
340
+ render() {
341
+ this.classList.add("c-compare");
342
+ this.setAttribute("role", "group");
343
+ // R24-36: avoid clobbering author-provided aria-label; track auto-set value
344
+ const name = "Comparison";
345
+ const currentAria = this.getAttribute("aria-label");
346
+ if (currentAria === null || currentAria === this._lastAutoAria) {
347
+ this.setAttribute("aria-label", name);
348
+ this._lastAutoAria = name;
349
+ }
350
+
351
+ wireStates(this);
352
+ loadRemote(this, ["no", "text", "yes"]);
353
+ if (renderStates(this, "compare")) return;
354
+ const rYes = remoteData(this, "yes") || (this._remoteData && this._remoteData.yes);
355
+ const rNo = remoteData(this, "no") || (this._remoteData && this._remoteData.no);
356
+ const rText = remoteData(this, "text") || (this._remoteData && this._remoteData.text);
357
+ Array.from(this.querySelectorAll(".c-compare__yes, .c-compare__no, .c-compare__text")).forEach((n) => n.remove());
358
+ if (rYes) {
359
+ const y = document.createElement("span");
360
+ y.className = "c-compare__yes";
361
+ setHTML(y, '<svg aria-hidden="true" viewBox="0 0 24 24"><use href="#i-check" /></svg>');
362
+ this.appendChild(y);
363
+ }
364
+ if (rNo) {
365
+ const n = document.createElement("div");
366
+ n.className = "c-compare__no";
367
+ n.textContent = rNo;
368
+ this.appendChild(n);
369
+ }
370
+ if (rText) {
371
+ const t = document.createElement("p");
372
+ t.className = "c-compare__text";
373
+ t.textContent = rText;
374
+ this.appendChild(t);
375
+ }
376
+ if (!rYes && !rNo && !rText) {
377
+ renderEmpty(this, "compare");
378
+ }
379
+ }
380
+ }
381
+ define("contour-compare", ContourCompare);
382
+ /**
383
+ * Sparkline: web component wrapper.
384
+ * Attributes: `points`, `empty`, `loading`, `error`, `retry`, `src`, `lazy`, `refresh`, `timeout`, `skeleton`.
385
+ */
386
+ class ContourSparkline extends ContourBase {
387
+ static get observed() { return ["points", "empty", "loading", "error", "retry", "src", "lazy", "refresh", "timeout", "skeleton", "cache-key", "no-cache"]; }
388
+ static get properties() { return { points: { attribute: "points" }, src: { attribute: "src" } }; }
389
+ render() {
390
+ this.classList.add("c-sparkline");
391
+ if (!this.hasAttribute("role")) this.setAttribute("role", "img");
392
+ if (!this.hasAttribute("aria-label")) this.setAttribute("aria-label", labelText(this, "sparkline", "Sparkline"));
393
+ wireStates(this);
394
+ loadRemote(this, "points");
395
+ if (renderStates(this, "sparkline")) return;
396
+ const points = remoteData(this, "points");
397
+ if (points) {
398
+ try {
399
+ const parsed = JSON.parse(points);
400
+ // R24-26: filter to finite numbers so NaN/Infinity don't produce
401
+ // off-canvas coordinates.
402
+ const vals = Array.isArray(parsed) ? parsed.filter(Number.isFinite) : [];
403
+ if (vals.length === 0) throw new Error("empty");
404
+ Array.from(this.querySelectorAll(".c-sparkline__dot, .c-sparkline__line, .c-sparkline__area")).forEach((n) => n.remove());
405
+ const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
406
+ svg.setAttribute("class", "c-sparkline__line");
407
+ svg.setAttribute("viewBox", "0 0 100 30");
408
+ svg.setAttribute("preserveAspectRatio", "none");
409
+ svg.style.inlineSize = "100%";
410
+ svg.style.blockSize = "100%";
411
+ svg.setAttribute("width", "100%");
412
+ svg.setAttribute("height", "100%");
413
+ svg.setAttribute("title", this.getAttribute("aria-label") || "Sparkline");
414
+ // R24-26: domain auto-scaling. Find min/max of the data and scale
415
+ // to 0-30 so values outside 0-1 don't go off-canvas.
416
+ const dMin = Math.min(...vals);
417
+ const dMax = Math.max(...vals);
418
+ const dRange = dMax - dMin || 1;
419
+ const scale = (v) => 30 - ((v - dMin) / dRange) * 30;
420
+ // R31-52: the hover dot must use the SAME min/max mapping as the
421
+ // line. It used `30 - val*30` (raw value), so a mid hover on
422
+ // [100,200,300,400] placed the dot at cy -8970, far off-canvas.
423
+ this._sparkScale = { min: dMin, range: dRange };
424
+ const n = vals.length;
425
+ const path = document.createElementNS("http://www.w3.org/2000/svg", "path");
426
+ path.setAttribute("d", vals.map((p, i) => (i === 0 ? "M" : "L") + " " + (n === 1 ? 50 : i * 100 / (n - 1)) + " " + scale(p)).join(" "));
427
+ svg.appendChild(path);
428
+ // R24-26: dot visibility via class, not hidden attribute.
429
+ const dot = document.createElementNS("http://www.w3.org/2000/svg", "circle");
430
+ dot.setAttribute("class", "c-sparkline__dot");
431
+ dot.setAttribute("r", "2");
432
+ dot.setAttribute("cx", "0");
433
+ dot.setAttribute("cy", "15");
434
+ svg.appendChild(dot);
435
+ this.appendChild(svg);
436
+ this._sparkPoints = parsed;
437
+ const tip = this.ensure(".c-sparkline__tooltip", () => { const el = document.createElement("div"); el.className = "c-sparkline__tooltip"; el.setAttribute("role", "tooltip"); el.setAttribute("hidden", ""); el.id = contourId("sparkline-tip"); return el; });
438
+ tip.setAttribute("hidden", "");
439
+ } catch (e) {
440
+ Array.from(this.querySelectorAll("svg")).forEach((n) => n.remove());
441
+ renderEmpty(this, "sparkline");
442
+ }
443
+ } else {
444
+ renderEmpty(this, "sparkline");
445
+ }
446
+ }
447
+ enhance() {
448
+ if (this._wiredSparkline) return;
449
+ this._wiredSparkline = true;
450
+ if (!this.hasAttribute("tabindex")) this.setAttribute("tabindex", "0");
451
+ // SVG/dot/tip rebuilt every render (base wipes generated children); handlers re-query per event (rule 12) — captured node detaches on first attr change.
452
+ const showTip = (e) => {
453
+ const svg = this.querySelector("svg");
454
+ const tip = this.querySelector(".c-sparkline__tooltip");
455
+ const dot = this.querySelector(".c-sparkline__dot");
456
+ if (!tip || !svg) return;
457
+ const rect = svg.getBoundingClientRect();
458
+ const x = e.clientX - rect.left;
459
+ const pct = Math.max(0, Math.min(1, x / rect.width));
460
+ const pts = this._sparkPoints || [];
461
+ if (pts.length === 0) return;
462
+ const idx = Math.round(pct * (pts.length - 1));
463
+ const val = pts[idx];
464
+ const cx = pts.length === 1 ? 50 : (idx * 100 / (pts.length - 1));
465
+ // R31-52: map through the line's own domain, not the raw value.
466
+ const sc = this._sparkScale || { min: Math.min(...pts), range: (Math.max(...pts) - Math.min(...pts)) || 1 };
467
+ const cy = 30 - ((val - sc.min) / sc.range) * 30;
468
+ if (dot) {
469
+ dot.setAttribute("cx", String(cx));
470
+ dot.setAttribute("cy", String(cy));
471
+ dot.removeAttribute("hidden");
472
+ }
473
+ tip.textContent = String(val);
474
+ const tipX = (cx / 100) * rect.width;
475
+ // Logical positioning (BY-48): same --chart-tip-* token contract as heatmap/chart; tip stays inside block in RTL.
476
+ tip.style.setProperty("--chart-tip-inline-start", tipX + "px");
477
+ tip.style.setProperty("--chart-tip-block-start", "0px");
478
+ tip.removeAttribute("hidden");
479
+ };
480
+ const hideTip = () => {
481
+ const tip = this.querySelector(".c-sparkline__tooltip");
482
+ const dot = this.querySelector(".c-sparkline__dot");
483
+ if (tip) tip.setAttribute("hidden", "");
484
+ if (dot) dot.setAttribute("hidden", "");
485
+ };
486
+ this.addEventListener("mousemove", showTip);
487
+ this.addEventListener("mouseleave", hideTip);
488
+ // Keyboard path (BY-39): the host carries tabindex; a focused sparkline
489
+ // shows its last value, which is the point a keyboard reader can reach.
490
+ this.addEventListener("focusin", () => {
491
+ const pts = this._sparkPoints || [];
492
+ if (!pts.length) return;
493
+ const svg = this.querySelector("svg");
494
+ if (!svg) return;
495
+ const r = svg.getBoundingClientRect();
496
+ showTip({ clientX: r.left + r.width - 1 });
497
+ const tip = this.querySelector(".c-sparkline__tooltip");
498
+ if (tip && tip.id) this.setAttribute("aria-describedby", tip.id);
499
+ });
500
+ this.addEventListener("focusout", () => {
501
+ this.removeAttribute("aria-describedby");
502
+ hideTip();
503
+ });
504
+ this.addEventListener("keydown", (e) => {
505
+ if (e.key === "Enter" || e.key === " ") {
506
+ e.preventDefault();
507
+ this.dispatchEvent(new CustomEvent("contour:select", { bubbles: true, composed: true, detail: { series: 1 } }));
508
+ }
509
+ });
510
+ }
511
+ }
512
+ define("contour-sparkline", ContourSparkline);
513
+ /**
514
+ * Chart Grid: web component wrapper.
515
+ * Attributes: `title`, `series`, `empty`, `loading`, `error`, `retry`, `src`, `lazy`, `refresh`, `timeout`, `skeleton`.
516
+ */
517
+ class ContourChartGrid extends ContourBase {
518
+ static get updateMode() { return "keyed"; }
519
+ static get observed() { return ["title", "series", "empty", "loading", "error", "retry", "src", "lazy", "refresh", "timeout", "skeleton", "cache-key", "no-cache"]; }
520
+ static get properties() { return { title: { attribute: "title" }, series: { attribute: "series" }, src: { attribute: "src" } }; }
521
+ render() {
522
+ this.classList.add("c-chart-grid");
523
+ this.setAttribute("role", "group");
524
+ // R24-36: avoid clobbering author-provided aria-label; track auto-set value
525
+ const name = "Chart grid";
526
+ const currentAria = this.getAttribute("aria-label");
527
+ if (currentAria === null || currentAria === this._lastAutoAria) {
528
+ this.setAttribute("aria-label", name);
529
+ this._lastAutoAria = name;
530
+ }
531
+ wireStates(this);
532
+ loadRemote(this, "series");
533
+ if (renderStates(this, "chart-grid")) return;
534
+ const title = this.getAttribute("title");
535
+ if (title) {
536
+ const t = this.ensure(".c-chart-grid__title", () => { const el = document.createElement("div"); el.className = "c-chart-grid__title"; return el; });
537
+ t.textContent = title;
538
+ }
539
+ const series = remoteData(this, "series");
540
+ // R31-54: the element read `series` and drew only a title — a grid with
541
+ // no cells. Render one mini-sparkline cell per series so the data is
542
+ // actually shown. Accepts [{label,values}] or [[…],[…]].
543
+ let parsedSeries = [];
544
+ if (series) { try { const p = JSON.parse(series); if (Array.isArray(p)) parsedSeries = p; } catch (e) { /* keep empty */ } }
545
+ Array.from(this.querySelectorAll(".c-chart-grid__cell")).forEach((n) => n.remove());
546
+ parsedSeries.forEach((s, i) => {
547
+ const values = Array.isArray(s) ? s : (s && Array.isArray(s.values) ? s.values : []);
548
+ const label = (!Array.isArray(s) && s && s.label) ? s.label : labelText(this, "series", "Series") + " " + (i + 1);
549
+ const nums = values.map(Number).filter(Number.isFinite);
550
+ const cell = document.createElement("div");
551
+ cell.className = "c-chart-grid__cell";
552
+ const lbl = document.createElement("span");
553
+ lbl.className = "c-chart-grid__label";
554
+ lbl.textContent = label;
555
+ cell.appendChild(lbl);
556
+ if (nums.length > 1) {
557
+ const lo = Math.min(...nums), hi = Math.max(...nums), range = (hi - lo) || 1;
558
+ const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
559
+ svg.setAttribute("class", "c-chart-grid__spark");
560
+ svg.setAttribute("viewBox", "0 0 100 30");
561
+ svg.setAttribute("preserveAspectRatio", "none");
562
+ svg.setAttribute("aria-hidden", "true");
563
+ const path = document.createElementNS("http://www.w3.org/2000/svg", "path");
564
+ path.setAttribute("d", nums.map((v, idx) => (idx === 0 ? "M" : "L") + " " + (idx * 100 / (nums.length - 1)) + " " + (30 - ((v - lo) / range) * 30)).join(" "));
565
+ path.style.stroke = "var(--chart-" + ((i % 8) + 1) + ")";
566
+ path.style.fill = "none";
567
+ path.style.strokeWidth = "2";
568
+ svg.appendChild(path);
569
+ cell.appendChild(svg);
570
+ }
571
+ this.appendChild(cell);
572
+ });
573
+ if (!parsedSeries.length && !title) renderEmpty(this, "chart-grid");
574
+ }
575
+ }
576
+ define("contour-chart-grid", ContourChartGrid);
577
+ /**
578
+ * Contour Plot: web component wrapper.
579
+ * Attributes: `values` (row-major 2D field), `levels`, `label`, `empty`.
580
+ *
581
+ * Mark contract (R25-10, decision D4): each isoline is a focusable, named
582
+ * mark (role=button, roving tabindex, arrows/Home/End via navKey). Click or
583
+ * Enter/Space emits `contour:select {level, value, index}` — level is the
584
+ * 1-based isoline ordinal, value the iso-level the path was drawn at. The
585
+ * host is role=group (author-set role wins); handlers are host-delegated so
586
+ * ResizeObserver redraws cannot strand them. NOTE: `level` needs adding to
587
+ * the CONTOUR_EVENTS contour:select payload union (core.mjs) — outside this
588
+ * pass's write scope; tracked in the agent report.
589
+ */
590
+ class ContourContourPlot extends ContourBase {
591
+ static get observed() { return ["values", "levels", "label", "empty"]; }
592
+ static get properties() { return { values: { attribute: "values" }, levels: { attribute: "levels" }, label: { attribute: "label" } }; }
593
+ render() {
594
+ this.classList.add("c-contour-plot");
595
+ // Isolines are focusable selection targets; role=img forbids this — named group exposes them (author role wins).
596
+ if (!this.hasAttribute("role")) this.setAttribute("role", "group");
597
+ const label = this.getAttribute("label");
598
+ if (label || !this.hasAttribute("aria-label")) this.setAttribute("aria-label", label || "Contour plot");
599
+ const valuesAttr = this.getAttribute("values");
600
+ const levelsAttr = this.getAttribute("levels");
601
+ let grid = null;
602
+ if (valuesAttr) { try { grid = JSON.parse(valuesAttr); } catch (e) { grid = null; } }
603
+ let levels = [0.3, 0.5, 0.7];
604
+ if (levelsAttr) { try { const l = JSON.parse(levelsAttr); if (Array.isArray(l) && l.length) levels = l; } catch (e) { /* keep defaults */ } }
605
+
606
+ let svg = this.querySelector("svg");
607
+ if (!svg) {
608
+ svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
609
+ svg.setAttribute("class", "c-contour-plot__svg");
610
+ this.appendChild(svg);
611
+ }
612
+ // R25-10: the paths inside are named, focusable marks — the svg must
613
+ // not hide them from the accessibility tree (also on a reused svg).
614
+ svg.removeAttribute("aria-hidden");
615
+ // Clear previous contours so a re-render cannot stack a second set.
616
+ Array.from(svg.querySelectorAll(".c-contour-plot__contour")).forEach((n) => n.remove());
617
+
618
+ // R24-24: degenerate grid (empty or malformed) → empty branch, not a blank SVG.
619
+ if (!Array.isArray(grid) || grid.length === 0 || !Array.isArray(grid[0]) || grid[0].length === 0) {
620
+ const empty = document.createElement("div");
621
+ empty.className = "c-contour-plot__empty";
622
+ empty.textContent = this.getAttribute("empty") || stateLabel(this, "contour");
623
+ this.appendChild(empty);
624
+ return;
625
+ }
626
+ if (Array.isArray(grid) && grid.length > 1 && Array.isArray(grid[0]) && grid[0].length > 1) {
627
+ const draw = () => {
628
+ const w = this.clientWidth || 300;
629
+ const h = this.clientHeight || 300;
630
+ svg.setAttribute("viewBox", `0 0 ${w} ${h}`);
631
+ svg.querySelectorAll(".c-contour-plot__contour").forEach((n) => n.remove());
632
+ // Regenerated paths are named focusable marks; identity on data-level/data-value so HOST-DELEGATED handlers survive ResizeObserver redraw (rule 12).
633
+ let drawn = 0;
634
+ contourPaths(grid, levels, w, h).forEach((line, li) => {
635
+ if (!line.d) return;
636
+ const path = document.createElementNS("http://www.w3.org/2000/svg", "path");
637
+ path.setAttribute("d", line.d);
638
+ path.setAttribute("class", "c-contour-plot__contour" + (li > 0 ? " c-contour-plot__contour--level-" + (li + 1) : ""));
639
+ path.setAttribute("tabindex", drawn === 0 ? "0" : "-1");
640
+ path.setAttribute("role", "button");
641
+ path.setAttribute("aria-label", labelText(this, "level", "Level") + " " + (li + 1) + ": " + line.level);
642
+ path.dataset.level = String(li + 1);
643
+ path.dataset.value = String(line.level);
644
+ drawn += 1;
645
+ svg.appendChild(path);
646
+ });
647
+ };
648
+ draw();
649
+ // Re-render on resize so pixel-space paths track the container.
650
+ if (typeof ResizeObserver !== "undefined" && !this._contourResize) {
651
+ this._contourResize = new ResizeObserver(() => draw());
652
+ this._contourResize.observe(this);
653
+ onDispose(this, () => { this._contourResize.disconnect(); this._contourResize = null; });
654
+ }
655
+ } else if (!Array.isArray(grid)) {
656
+ const empty = document.createElement("div");
657
+ empty.className = "c-contour-plot__empty";
658
+ empty.textContent = this.getAttribute("empty") || "No field";
659
+ this.appendChild(empty);
660
+ }
661
+ }
662
+ enhance() {
663
+ // Mark contract (D4): host-delegated like wireMapItems so ResizeObserver redraw (regenerates paths) can't strand listeners.
664
+ if (this._wiredContourPlot) return;
665
+ this._wiredContourPlot = true;
666
+ const paths = () => Array.from(this.querySelectorAll(".c-contour-plot__contour"));
667
+ const activate = (path) => {
668
+ const all = paths();
669
+ const index = all.indexOf(path);
670
+ if (index < 0) return;
671
+ const level = Number(path.dataset.level);
672
+ const value = Number(path.dataset.value);
673
+ this.dispatchEvent(new CustomEvent("contour:select", {
674
+ bubbles: true,
675
+ composed: true,
676
+ detail: { level, value, index },
677
+ }));
678
+ };
679
+ this.addEventListener("click", (e) => {
680
+ const path = e.target && e.target.closest ? e.target.closest(".c-contour-plot__contour") : null;
681
+ if (path && this.contains(path)) activate(path);
682
+ });
683
+ this.addEventListener("keydown", (e) => {
684
+ const path = e.target && e.target.closest ? e.target.closest(".c-contour-plot__contour") : null;
685
+ if (!path || !this.contains(path)) return;
686
+ if (e.key === "Enter" || e.key === " ") {
687
+ e.preventDefault();
688
+ activate(path);
689
+ } else {
690
+ const all = paths();
691
+ navKey(e, all, { wrap: false, homeEnd: true, rtl: isRtl(this), onNavigate: (i) => all.forEach((c, j) => c.setAttribute("tabindex", j === i ? "0" : "-1")) });
692
+ }
693
+ });
694
+ }
695
+ }
696
+ define("contour-contour-plot", ContourContourPlot);