@peripheries/core 0.2.0 → 0.3.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 (52) hide show
  1. package/README.md +1 -1
  2. package/index.css +1 -1
  3. package/index.js +2361 -443
  4. package/package.json +1 -1
  5. package/types/core/Accordion/Accordion.d.ts +17 -0
  6. package/types/core/Card/Card.d.ts +13 -0
  7. package/types/core/Columns/Columns.d.ts +14 -0
  8. package/types/core/Disclosure/Disclosure.d.ts +11 -0
  9. package/types/core/Grid/Grid.d.ts +11 -0
  10. package/types/core/Repeat/Repeat.d.ts +14 -0
  11. package/types/core/actions/Button/Button.d.ts +21 -0
  12. package/types/core/actions/Chip/Chip.d.ts +15 -0
  13. package/types/core/actions/IconButton/IconButton.d.ts +14 -0
  14. package/types/core/actions/Link/Link.d.ts +11 -0
  15. package/types/core/actions/SegmentedControl/SegmentedControl.d.ts +19 -0
  16. package/types/core/actions/_shared/press.d.ts +18 -0
  17. package/types/core/display/DataTable/DataTable.d.ts +2 -0
  18. package/types/core/document/Contents/Contents.d.ts +1 -1
  19. package/types/core/events/EventCard/EventCard.d.ts +11 -0
  20. package/types/core/events/EventDetail/EventDetail.d.ts +29 -0
  21. package/types/core/events/EventLogForm/EventLogForm.d.ts +24 -0
  22. package/types/core/events/EventRespond/EventRespond.d.ts +13 -0
  23. package/types/core/events/EventSchedule/EventSchedule.d.ts +15 -0
  24. package/types/core/events/EventTimeline/EventTimeline.d.ts +21 -0
  25. package/types/core/events/_shared/event.d.ts +51 -0
  26. package/types/core/feedback/Badge/Badge.d.ts +10 -0
  27. package/types/core/feedback/Notice/Notice.d.ts +12 -0
  28. package/types/core/feedback/Progress/Progress.d.ts +12 -0
  29. package/types/core/feedback/Skeleton/Skeleton.d.ts +10 -0
  30. package/types/core/feedback/Spinner/Spinner.d.ts +8 -0
  31. package/types/core/feedback/Tooltip/Tooltip.d.ts +10 -0
  32. package/types/core/forms/Checkbox/Checkbox.d.ts +8 -0
  33. package/types/core/forms/CheckboxGroup/CheckboxGroup.d.ts +11 -0
  34. package/types/core/forms/DateRange/DateRange.d.ts +15 -0
  35. package/types/core/forms/FileField/FileField.d.ts +28 -0
  36. package/types/core/forms/FormField/FormField.d.ts +15 -0
  37. package/types/core/forms/RadioGroup/RadioGroup.d.ts +9 -0
  38. package/types/core/forms/SearchField/SearchField.d.ts +10 -0
  39. package/types/core/forms/Select/Select.d.ts +10 -0
  40. package/types/core/forms/Slider/Slider.d.ts +11 -0
  41. package/types/core/forms/Switch/Switch.d.ts +7 -0
  42. package/types/core/forms/TextArea/TextArea.d.ts +13 -0
  43. package/types/core/forms/TextField/TextField.d.ts +21 -0
  44. package/types/core/forms/_shared/field.d.ts +32 -0
  45. package/types/core/page/PageFrame/PageFrame.d.ts +9 -0
  46. package/types/core/page/RuleSection/RuleSection.d.ts +11 -0
  47. package/types/core/page/UnderlinedAction/UnderlinedAction.d.ts +10 -0
  48. package/types/core/text/Avatar/Avatar.d.ts +12 -0
  49. package/types/core/text/Code/Code.d.ts +9 -0
  50. package/types/core/text/Heading/Heading.d.ts +11 -0
  51. package/types/core/text/Text/Text.d.ts +17 -0
  52. package/types/index.core.d.ts +44 -0
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
2
- import { createContext as r, isValidElement as i, useCallback as a, useContext as o, useEffect as s, useId as c, useMemo as l, useReducer as u, useRef as d, useState as f } from "react";
2
+ import { Children as r, createContext as i, isValidElement as a, useCallback as o, useContext as s, useEffect as c, useId as l, useLayoutEffect as u, useMemo as d, useReducer as f, useRef as p, useState as m } from "react";
3
3
  //#region src/core/_shared/props.ts
4
- var p = /* @__PURE__ */ new Set([
4
+ var h = /* @__PURE__ */ new Set([
5
5
  "baseProps",
6
6
  "data",
7
7
  "status",
@@ -14,13 +14,13 @@ var p = /* @__PURE__ */ new Set([
14
14
  "size",
15
15
  "store"
16
16
  ]);
17
- function m(e) {
17
+ function g(e) {
18
18
  let t = {};
19
- for (let n in e) p.has(n) || (t[n] = e[n]);
19
+ for (let n in e) h.has(n) || (t[n] = e[n]);
20
20
  return t;
21
21
  }
22
- var h = (...e) => e.filter(Boolean).join(" ") || void 0, g = (e) => e === void 0 ? void 0 : typeof e == "number" ? `${e}px` : e;
23
- function _(e, t) {
22
+ var _ = (...e) => e.filter(Boolean).join(" ") || void 0, v = (e) => e === void 0 ? void 0 : typeof e == "number" ? `${e}px` : e;
23
+ function y(e, t) {
24
24
  let n = Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0));
25
25
  return Object.keys(n).length || t ? {
26
26
  ...n,
@@ -29,41 +29,41 @@ function _(e, t) {
29
29
  }
30
30
  //#endregion
31
31
  //#region src/core/Box/Box.tsx
32
- function v({ as: e, className: n, children: r, ...i }) {
32
+ function b({ as: e, className: n, children: r, ...i }) {
33
33
  return /* @__PURE__ */ t(e ?? "div", {
34
- className: h("core-box", n),
35
- ...m(i),
34
+ className: _("core-box", n),
35
+ ...g(i),
36
36
  children: r
37
37
  });
38
38
  }
39
39
  //#endregion
40
40
  //#region src/core/Center/Center.tsx
41
- function y({ minHeight: e, className: n, style: r, children: i, ...a }) {
42
- return /* @__PURE__ */ t(v, {
41
+ function x({ minHeight: e, className: n, style: r, children: i, ...a }) {
42
+ return /* @__PURE__ */ t(b, {
43
43
  ...a,
44
- className: h("core-center", n),
45
- style: _({ "--core-center-min-height": g(e) }, r),
44
+ className: _("core-center", n),
45
+ style: y({ "--core-center-min-height": v(e) }, r),
46
46
  children: i
47
47
  });
48
48
  }
49
49
  //#endregion
50
50
  //#region src/core/Container/Container.tsx
51
- function b({ name: e, className: n, style: r, children: i, ...a }) {
52
- return /* @__PURE__ */ t(v, {
51
+ function S({ name: e, className: n, style: r, children: i, ...a }) {
52
+ return /* @__PURE__ */ t(b, {
53
53
  ...a,
54
- className: h("core-container", n),
55
- style: _({ "--core-container-name": e }, r),
54
+ className: _("core-container", n),
55
+ style: y({ "--core-container-name": e }, r),
56
56
  children: i
57
57
  });
58
58
  }
59
59
  //#endregion
60
60
  //#region src/core/Divider/Divider.tsx
61
- function x({ orientation: e = "horizontal", weight: n = "subtle", spacing: r, className: i, style: a, ref: o, ...s }) {
61
+ function C({ orientation: e = "horizontal", weight: n = "subtle", spacing: r, className: i, style: a, ref: o, ...s }) {
62
62
  let c = {
63
- className: h("core-divider", i),
63
+ className: _("core-divider", i),
64
64
  "data-weight": n,
65
65
  "data-orientation": e,
66
- style: _({ "--core-divider-spacing": g(r) }, a)
66
+ style: y({ "--core-divider-spacing": v(r) }, a)
67
67
  };
68
68
  return e === "vertical" ? /* @__PURE__ */ t("span", {
69
69
  role: "separator",
@@ -71,13 +71,13 @@ function x({ orientation: e = "horizontal", weight: n = "subtle", spacing: r, cl
71
71
  ...c
72
72
  }) : /* @__PURE__ */ t("hr", {
73
73
  ref: o,
74
- ...m(s),
74
+ ...g(s),
75
75
  ...c
76
76
  });
77
77
  }
78
78
  //#endregion
79
79
  //#region src/core/Hide/Hide.tsx
80
- function S({ when: e, children: n, as: r = "span" }) {
80
+ function w({ when: e, children: n, as: r = "span" }) {
81
81
  return /* @__PURE__ */ t(r, {
82
82
  className: "core-hide",
83
83
  "data-when": e,
@@ -86,21 +86,21 @@ function S({ when: e, children: n, as: r = "span" }) {
86
86
  }
87
87
  //#endregion
88
88
  //#region src/core/Inline/Inline.tsx
89
- function C({ gap: e, align: n = "center", justify: r = "start", wrap: i = !0, stackWhen: a, className: o, style: s, children: c, ...l }) {
90
- return /* @__PURE__ */ t(v, {
89
+ function T({ gap: e, align: n = "center", justify: r = "start", wrap: i = !0, stackWhen: a, className: o, style: s, children: c, ...l }) {
90
+ return /* @__PURE__ */ t(b, {
91
91
  ...l,
92
- className: h("core-inline", o),
92
+ className: _("core-inline", o),
93
93
  "data-align": n,
94
94
  "data-justify": r,
95
95
  "data-wrap": i ? "true" : "false",
96
96
  "data-stack-when": a,
97
- style: _({ "--core-inline-gap": g(e) }, s),
97
+ style: y({ "--core-inline-gap": v(e) }, s),
98
98
  children: c
99
99
  });
100
100
  }
101
101
  //#endregion
102
102
  //#region src/core/Show/Show.tsx
103
- function w({ when: e, children: n, as: r = "span" }) {
103
+ function E({ when: e, children: n, as: r = "span" }) {
104
104
  return /* @__PURE__ */ t(r, {
105
105
  className: "core-show",
106
106
  "data-when": e,
@@ -109,38 +109,1411 @@ function w({ when: e, children: n, as: r = "span" }) {
109
109
  }
110
110
  //#endregion
111
111
  //#region src/core/Spacer/Spacer.tsx
112
- function T({ size: e, className: n, style: r }) {
112
+ function D({ size: e, className: n, style: r }) {
113
113
  return /* @__PURE__ */ t("span", {
114
114
  "aria-hidden": !0,
115
- className: h("core-spacer", n),
116
- style: _({ "--core-spacer-size": g(e) }, r)
115
+ className: _("core-spacer", n),
116
+ style: y({ "--core-spacer-size": v(e) }, r)
117
117
  });
118
118
  }
119
119
  //#endregion
120
120
  //#region src/core/Stack/Stack.tsx
121
- function ee({ gap: e, align: n = "stretch", justify: r = "start", className: i, style: a, children: o, ...s }) {
122
- return /* @__PURE__ */ t(v, {
121
+ function O({ gap: e, align: n = "stretch", justify: r = "start", className: i, style: a, children: o, ...s }) {
122
+ return /* @__PURE__ */ t(b, {
123
123
  ...s,
124
- className: h("core-stack", i),
124
+ className: _("core-stack", i),
125
125
  "data-align": n,
126
126
  "data-justify": r,
127
- style: _({ "--core-stack-gap": g(e) }, a),
127
+ style: y({ "--core-stack-gap": v(e) }, a),
128
128
  children: o
129
129
  });
130
130
  }
131
131
  //#endregion
132
+ //#region src/core/page/PageFrame/PageFrame.tsx
133
+ function k({ header: e, children: r, measure: i = "page", className: a, ...o }) {
134
+ return /* @__PURE__ */ t("div", {
135
+ ...g(o),
136
+ className: _("core-page-frame", a),
137
+ "data-measure": i,
138
+ children: /* @__PURE__ */ n("div", {
139
+ className: "core-page-frame__column",
140
+ children: [e != null && /* @__PURE__ */ t("header", {
141
+ className: "core-page-frame__header",
142
+ children: e
143
+ }), r]
144
+ })
145
+ });
146
+ }
147
+ //#endregion
132
148
  //#region src/core/_shared/warn-once.ts
133
- var E = /* @__PURE__ */ new Set();
134
- function D(e, t) {
135
- E.has(e) || (E.add(e), typeof console < "u" && console.warn(t));
149
+ var A = /* @__PURE__ */ new Set();
150
+ function j(e, t) {
151
+ A.has(e) || (A.add(e), typeof console < "u" && console.warn(t));
152
+ }
153
+ //#endregion
154
+ //#region src/core/display/_shared/tone.ts
155
+ var M = [
156
+ "neutral",
157
+ "strong",
158
+ "accent",
159
+ "info",
160
+ "success",
161
+ "warning",
162
+ "danger"
163
+ ], N = () => typeof process > "u" || !1;
164
+ function P(e, t = "neutral") {
165
+ return typeof e == "string" && M.includes(e) ? e : (typeof e == "string" && e && N() && j(`unknown-tone:${e}`, `[core] "${e}" is not a tone (${M.join(", ")}); using "${t}".`), t);
166
+ }
167
+ //#endregion
168
+ //#region src/core/display/Eyebrow/Eyebrow.tsx
169
+ var F = [
170
+ "subtle",
171
+ "on-dark",
172
+ "inherit"
173
+ ];
174
+ function I(e, t) {
175
+ return typeof e == "string" && (F.includes(e) || M.includes(e)) ? e : t;
176
+ }
177
+ function L(e) {
178
+ return {
179
+ "data-tone": e,
180
+ toned: !F.includes(e)
181
+ };
182
+ }
183
+ function R({ children: e, as: n = "span", tone: r, tabular: i = !1, className: a, style: o }) {
184
+ let { toned: s, ...c } = L(I(r, "subtle"));
185
+ return /* @__PURE__ */ t(n, {
186
+ className: _("core-eyebrow", s && "core-toned", a),
187
+ ...c,
188
+ "data-tabular": i ? "true" : void 0,
189
+ style: o,
190
+ children: e
191
+ });
192
+ }
193
+ //#endregion
194
+ //#region src/core/page/RuleSection/RuleSection.tsx
195
+ function z({ label: e, actions: r, children: i, rail: a = !1, anchor: o, className: s, ...c }) {
196
+ return /* @__PURE__ */ t("section", {
197
+ ...g(c),
198
+ id: o,
199
+ "aria-label": e,
200
+ className: _("core-rule-section", s),
201
+ "data-rail": a || void 0,
202
+ children: /* @__PURE__ */ n("div", {
203
+ className: "core-rule-section__grid",
204
+ children: [/* @__PURE__ */ n("div", {
205
+ className: "core-rule-section__head",
206
+ children: [e && /* @__PURE__ */ t(R, {
207
+ as: "p",
208
+ children: e
209
+ }), r != null && /* @__PURE__ */ t("div", {
210
+ className: "core-rule-section__actions",
211
+ children: r
212
+ })]
213
+ }), /* @__PURE__ */ t("div", {
214
+ className: "core-rule-section__body",
215
+ children: i
216
+ })]
217
+ })
218
+ });
219
+ }
220
+ //#endregion
221
+ //#region src/core/actions/_shared/press.ts
222
+ var B = (e) => e.startsWith("/") && !e.startsWith("//") && !e.includes("\\"), ee = (e) => /^#[A-Za-z][\w:.-]*$/.test(e);
223
+ function V({ href: e, action: t, input: n, actions: r, navigate: i, onClick: a }) {
224
+ let [o, s] = m(!1), c = r && t ? r[t] : void 0;
225
+ return {
226
+ busy: o,
227
+ onClick: (t) => {
228
+ if (a) return a(t);
229
+ if (c) {
230
+ t.preventDefault(), s(!0), c(n).finally(() => s(!1));
231
+ return;
232
+ }
233
+ e && i && B(e) && t.button === 0 && !t.metaKey && !t.ctrlKey && !t.shiftKey && !t.altKey && (t.preventDefault(), i(e));
234
+ },
235
+ external: !!e && !B(e) && !ee(e)
236
+ };
237
+ }
238
+ //#endregion
239
+ //#region src/core/page/UnderlinedAction/UnderlinedAction.tsx
240
+ function te({ label: r, children: i, arrow: a = !0, className: o, href: s, action: c, input: l, actions: u, navigate: d, onClick: f, ...p }) {
241
+ let m = V({
242
+ href: s,
243
+ action: c,
244
+ input: l,
245
+ actions: u,
246
+ navigate: d,
247
+ onClick: f
248
+ }), h = /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
249
+ className: "core-underlined-action__label",
250
+ children: i ?? r
251
+ }), a && /* @__PURE__ */ t("svg", {
252
+ className: "core-underlined-action__arrow",
253
+ viewBox: "0 0 24 24",
254
+ fill: "none",
255
+ stroke: "currentColor",
256
+ strokeWidth: "1.6",
257
+ strokeLinecap: "round",
258
+ strokeLinejoin: "round",
259
+ "aria-hidden": "true",
260
+ focusable: "false",
261
+ children: /* @__PURE__ */ t("path", { d: "M5 12h14M13 6l6 6-6 6" })
262
+ })] }), v = {
263
+ ...g(p),
264
+ className: _("core-underlined-action", o)
265
+ };
266
+ return s ? /* @__PURE__ */ t("a", {
267
+ ...v,
268
+ href: s,
269
+ onClick: m.onClick,
270
+ ...m.external ? {
271
+ target: "_blank",
272
+ rel: "noopener noreferrer"
273
+ } : {},
274
+ children: h
275
+ }) : /* @__PURE__ */ t("button", {
276
+ ...v,
277
+ type: "button",
278
+ onClick: m.onClick,
279
+ disabled: m.busy,
280
+ children: h
281
+ });
282
+ }
283
+ //#endregion
284
+ //#region src/core/text/Avatar/Avatar.tsx
285
+ var ne = (e = "") => e.trim().split(/\s+/).filter(Boolean).map((e) => e[0].toUpperCase()).filter((e, t, n) => t === 0 || t === n.length - 1).join("").slice(0, 2);
286
+ function re({ name: e, initials: n, src: r, alt: i, size: a = "md", className: o, ...s }) {
287
+ let [c, l] = m(!1), u = i ?? e ?? "";
288
+ return /* @__PURE__ */ t("span", {
289
+ ...g(s),
290
+ className: _("core-avatar", o),
291
+ "data-size": a,
292
+ role: "img",
293
+ "aria-label": u || void 0,
294
+ children: r && !c ? /* @__PURE__ */ t("img", {
295
+ src: r,
296
+ alt: "",
297
+ onError: () => l(!0)
298
+ }) : /* @__PURE__ */ t("span", {
299
+ "aria-hidden": "true",
300
+ children: n ?? ne(e)
301
+ })
302
+ });
303
+ }
304
+ //#endregion
305
+ //#region src/core/text/Code/Code.tsx
306
+ function ie({ code: e, children: n, block: r = !1, className: i, ...a }) {
307
+ let o = n ?? e;
308
+ return r ? /* @__PURE__ */ t("pre", {
309
+ ...g(a),
310
+ className: _("core-code", i),
311
+ "data-block": "",
312
+ children: /* @__PURE__ */ t("code", { children: o })
313
+ }) : /* @__PURE__ */ t("code", {
314
+ ...g(a),
315
+ className: _("core-code", i),
316
+ children: o
317
+ });
318
+ }
319
+ //#endregion
320
+ //#region src/core/text/Heading/Heading.tsx
321
+ var ae = {
322
+ 1: "lg",
323
+ 2: "md",
324
+ 3: "sm",
325
+ 4: "xs",
326
+ 5: "xs",
327
+ 6: "xs"
328
+ };
329
+ function oe({ text: e, children: n, level: r = 2, size: i, anchor: a, className: o, ...s }) {
330
+ let c = Math.min(6, Math.max(1, Math.round(r))), l = `h${c}`;
331
+ return /* @__PURE__ */ t(l, {
332
+ ...g(s),
333
+ id: a,
334
+ className: _("core-heading", o),
335
+ "data-size": i ?? ae[c],
336
+ children: n ?? e
337
+ });
338
+ }
339
+ //#endregion
340
+ //#region src/core/text/Text/Text.tsx
341
+ var se = {
342
+ xs: "eyebrow",
343
+ sm: "body-sm",
344
+ md: "body",
345
+ lg: "title-sm",
346
+ xl: "title-md"
347
+ };
348
+ function ce({ text: e, children: n, as: r = "span", size: i = "md", weight: a = "normal", tone: o = "default", align: s = "start", truncate: c = !1, lines: l, className: u, ...d }) {
349
+ let f = r, p = l && l > 0 ? Math.min(6, Math.round(l)) : void 0;
350
+ return /* @__PURE__ */ t(f, {
351
+ ...g(d),
352
+ className: _("core-text", u),
353
+ "data-role": se[i] ?? "body",
354
+ "data-weight": a,
355
+ "data-tone": o,
356
+ "data-align": s,
357
+ "data-truncate": c || void 0,
358
+ "data-lines": p,
359
+ children: n ?? e
360
+ });
361
+ }
362
+ //#endregion
363
+ //#region src/core/forms/FormField/FormField.tsx
364
+ function H({ label: e, hint: r, error: i, required: a, htmlFor: o, hintId: s, errorId: c, as: u = "div", children: d, className: f, style: p }) {
365
+ let m = l().replace(/:/g, ""), h = s ?? (r ? `${o ?? m}-hint` : void 0), g = c ?? (i ? `${o ?? m}-error` : void 0), v = u, y = u === "fieldset" ? "legend" : "label";
366
+ return /* @__PURE__ */ n(v, {
367
+ className: _("core-field", f),
368
+ style: p,
369
+ "data-invalid": i ? "" : void 0,
370
+ children: [
371
+ e && /* @__PURE__ */ n(y, {
372
+ className: "core-field__label",
373
+ ...y === "label" && o ? { htmlFor: o } : {},
374
+ children: [e, a && /* @__PURE__ */ n("span", {
375
+ className: "core-field__required",
376
+ "aria-hidden": "true",
377
+ children: [" ", "*"]
378
+ })]
379
+ }),
380
+ r && /* @__PURE__ */ t("p", {
381
+ className: "core-field__hint",
382
+ id: h,
383
+ children: r
384
+ }),
385
+ d,
386
+ i && /* @__PURE__ */ t("p", {
387
+ className: "core-field__error",
388
+ id: g,
389
+ children: i
390
+ })
391
+ ]
392
+ });
393
+ }
394
+ //#endregion
395
+ //#region src/core/forms/_shared/field.tsx
396
+ function U(e, t, n) {
397
+ let r = l(), i = e ?? `f${r.replace(/:/g, "")}`, a = t ? `${i}-hint` : void 0, o = n ? `${i}-error` : void 0;
398
+ return {
399
+ control: i,
400
+ hintId: a,
401
+ errorId: o,
402
+ aria: {
403
+ "aria-describedby": [a, o].filter(Boolean).join(" ") || void 0,
404
+ "aria-invalid": n ? !0 : void 0
405
+ }
406
+ };
407
+ }
408
+ function W(e, t) {
409
+ return (n) => {
410
+ e?.(n), t?.(n);
411
+ };
412
+ }
413
+ //#endregion
414
+ //#region src/core/forms/Checkbox/Checkbox.tsx
415
+ function le({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name: s, label: c, children: l, hint: u, error: d, required: f, disabled: p, readOnly: h, className: g, style: v, ref: y }) {
416
+ let b = U(o, u, d), [x, S] = m(r ?? !1), C = e ?? x, w = W(i, a);
417
+ return /* @__PURE__ */ t(H, {
418
+ className: _("core-checkbox", g),
419
+ style: v,
420
+ hint: u,
421
+ error: d,
422
+ hintId: b.hintId,
423
+ errorId: b.errorId,
424
+ children: /* @__PURE__ */ n("label", {
425
+ className: "core-choices__option",
426
+ "data-disabled": p ? "" : void 0,
427
+ children: [/* @__PURE__ */ t("input", {
428
+ ref: y,
429
+ id: b.control,
430
+ type: "checkbox",
431
+ name: s,
432
+ checked: C,
433
+ required: f,
434
+ "aria-required": f || void 0,
435
+ disabled: p,
436
+ "aria-readonly": h || void 0,
437
+ onChange: (t) => {
438
+ h || (e === void 0 && S(t.target.checked), w(t.target.checked));
439
+ },
440
+ ...b.aria
441
+ }), /* @__PURE__ */ n("span", { children: [l ?? c, f && /* @__PURE__ */ t("span", {
442
+ className: "core-field__required",
443
+ "aria-hidden": "true",
444
+ children: " *"
445
+ })] })]
446
+ })
447
+ });
448
+ }
449
+ //#endregion
450
+ //#region src/core/forms/CheckboxGroup/CheckboxGroup.tsx
451
+ function ue({ options: e, value: r, defaultValue: i, onChange: a, setValue: o, id: s, name: c, label: l, hint: u, error: d, required: f, disabled: p, readOnly: h, orientation: g = "vertical", min: v, max: y, className: b, style: x, ref: S }) {
452
+ let C = [v === void 0 ? "" : `at least ${v}`, y === void 0 ? "" : `at most ${y}`].filter(Boolean).join(", "), w = [u, C ? `Choose ${C}.` : ""].filter(Boolean).join(" ") || void 0, T = U(s, w, d), [E, D] = m(i ?? []), O = r ?? E, k = W(a, o), A = y !== void 0 && O.length >= y;
453
+ return /* @__PURE__ */ t(H, {
454
+ as: "fieldset",
455
+ className: _("core-choices", b),
456
+ style: x,
457
+ label: l,
458
+ hint: w,
459
+ error: d,
460
+ required: f,
461
+ hintId: T.hintId,
462
+ errorId: T.errorId,
463
+ children: /* @__PURE__ */ t("div", {
464
+ className: "core-choices__list",
465
+ "data-orientation": g,
466
+ role: "group",
467
+ ...T.aria,
468
+ children: e.map((i, a) => {
469
+ let o = O.includes(i.value);
470
+ return /* @__PURE__ */ n("label", {
471
+ className: "core-choices__option",
472
+ "data-disabled": i.disabled || p ? "" : void 0,
473
+ children: [/* @__PURE__ */ t("input", {
474
+ ref: a === 0 ? S : void 0,
475
+ id: a === 0 ? T.control : void 0,
476
+ type: "checkbox",
477
+ name: c,
478
+ value: i.value,
479
+ checked: o,
480
+ disabled: i.disabled || p || !o && A || h && !o,
481
+ "aria-readonly": h || void 0,
482
+ onChange: () => {
483
+ if (h) return;
484
+ let t = e.map((e) => e.value).filter((e) => e === i.value ? !o : O.includes(e));
485
+ r === void 0 && D(t), k(t);
486
+ }
487
+ }), /* @__PURE__ */ t("span", { children: i.label })]
488
+ }, i.value);
489
+ })
490
+ })
491
+ });
492
+ }
493
+ //#endregion
494
+ //#region src/core/forms/DateRange/DateRange.tsx
495
+ function de({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name: s, label: c, hint: l, error: u, required: d, disabled: f, readOnly: p, min: h, max: g, fromLabel: v = "From", toLabel: y = "To", className: b, style: x, ref: S }) {
496
+ let C = U(o, l, u), [w, T] = m(r ?? {
497
+ from: null,
498
+ to: null
499
+ }), E = e ?? w, D = W(i, a), O = (t, n) => {
500
+ if (p) return;
501
+ let r = {
502
+ ...E,
503
+ [t]: n === "" ? null : n
504
+ };
505
+ e === void 0 && T(r), D(r);
506
+ }, k = {
507
+ disabled: f,
508
+ readOnly: p,
509
+ required: d,
510
+ "aria-required": d || void 0,
511
+ className: "core-input",
512
+ ...C.aria
513
+ };
514
+ return /* @__PURE__ */ t(H, {
515
+ as: "fieldset",
516
+ className: _("core-date-range", b),
517
+ style: x,
518
+ label: c,
519
+ hint: l,
520
+ error: u,
521
+ required: d,
522
+ hintId: C.hintId,
523
+ errorId: C.errorId,
524
+ children: /* @__PURE__ */ n("div", {
525
+ className: "core-date-range__row",
526
+ children: [/* @__PURE__ */ n("label", {
527
+ className: "core-date-range__part",
528
+ children: [/* @__PURE__ */ t("span", {
529
+ className: "core-date-range__label",
530
+ children: v
531
+ }), /* @__PURE__ */ t("input", {
532
+ ref: S,
533
+ id: C.control,
534
+ type: "date",
535
+ name: s ? `${s}.from` : void 0,
536
+ value: E.from ?? "",
537
+ min: h,
538
+ max: E.to ?? g,
539
+ onChange: (e) => O("from", e.target.value),
540
+ ...k
541
+ })]
542
+ }), /* @__PURE__ */ n("label", {
543
+ className: "core-date-range__part",
544
+ children: [/* @__PURE__ */ t("span", {
545
+ className: "core-date-range__label",
546
+ children: y
547
+ }), /* @__PURE__ */ t("input", {
548
+ type: "date",
549
+ name: s ? `${s}.to` : void 0,
550
+ value: E.to ?? "",
551
+ min: E.from ?? h,
552
+ max: g,
553
+ onChange: (e) => O("to", e.target.value),
554
+ ...k
555
+ })]
556
+ })]
557
+ })
558
+ });
559
+ }
560
+ //#endregion
561
+ //#region src/core/forms/FileField/FileField.tsx
562
+ function fe(e) {
563
+ return !Number.isFinite(e) || e < 0 ? "" : e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(+(e < 10240))} KB` : `${(e / 1048576).toFixed(1)} MB`;
564
+ }
565
+ function pe({ value: r, defaultValue: i, onChange: a, setValue: o, id: s, name: c, label: l, hint: u, error: d, required: f, disabled: h, readOnly: g, upload: v, accept: y, hash: b = !1, className: x, style: S, ref: C }) {
566
+ let w = U(s, u, d), [T, E] = m(i ?? null), D = r === void 0 ? T : r, O = W(a, o), [k, A] = m({
567
+ busy: !1,
568
+ dragging: !1
569
+ }), j = p(null), M = (e) => {
570
+ r === void 0 && E(e), O(e);
571
+ }, N = async (e) => {
572
+ if (e && v && !g && !h) {
573
+ A({
574
+ busy: !0,
575
+ dragging: !1
576
+ });
577
+ try {
578
+ let t = await v(e, { hash: b });
579
+ "error" in t ? A({
580
+ busy: !1,
581
+ failed: t.error,
582
+ dragging: !1
583
+ }) : (A({
584
+ busy: !1,
585
+ dragging: !1
586
+ }), M(t));
587
+ } catch {
588
+ A({
589
+ busy: !1,
590
+ failed: "That file couldn’t be stored. Try again.",
591
+ dragging: !1
592
+ });
593
+ }
594
+ }
595
+ }, P = (e) => {
596
+ e.preventDefault(), N(e.dataTransfer.files?.[0]);
597
+ }, F = d ?? k.failed;
598
+ return /* @__PURE__ */ t(H, {
599
+ className: _("core-file-field", x),
600
+ style: S,
601
+ label: l,
602
+ hint: u,
603
+ error: F,
604
+ required: f,
605
+ htmlFor: w.control,
606
+ hintId: w.hintId,
607
+ errorId: F ? `${w.control}-error` : void 0,
608
+ children: /* @__PURE__ */ n("div", {
609
+ className: "core-file-field__box",
610
+ "data-dragging": k.dragging ? "" : void 0,
611
+ "data-busy": k.busy ? "" : void 0,
612
+ onDragOver: (e) => {
613
+ g || h || !v || (e.preventDefault(), k.dragging || A((e) => ({
614
+ ...e,
615
+ dragging: !0
616
+ })));
617
+ },
618
+ onDragLeave: () => A((e) => ({
619
+ ...e,
620
+ dragging: !1
621
+ })),
622
+ onDrop: P,
623
+ children: [D ? /* @__PURE__ */ n("div", {
624
+ className: "core-file-field__file",
625
+ children: [
626
+ /* @__PURE__ */ t("span", {
627
+ className: "core-file-field__name",
628
+ children: D.file.name
629
+ }),
630
+ /* @__PURE__ */ t("span", {
631
+ className: "core-file-field__size",
632
+ children: fe(D.file.size)
633
+ }),
634
+ !g && !h && /* @__PURE__ */ t("button", {
635
+ type: "button",
636
+ className: "core-file-field__button",
637
+ onClick: () => M(null),
638
+ "aria-label": `Remove ${D.file.name}`,
639
+ children: "Remove"
640
+ })
641
+ ]
642
+ }) : k.busy ? /* @__PURE__ */ t("span", {
643
+ className: "core-file-field__status",
644
+ role: "status",
645
+ children: "Uploading…"
646
+ }) : /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("button", {
647
+ ref: C,
648
+ id: w.control,
649
+ type: "button",
650
+ className: "core-file-field__button",
651
+ disabled: h || g || !v,
652
+ "aria-required": f || void 0,
653
+ "aria-describedby": [w.hintId, F ? `${w.control}-error` : void 0].filter(Boolean).join(" ") || void 0,
654
+ "aria-invalid": F ? !0 : void 0,
655
+ onClick: () => j.current?.click(),
656
+ children: "Choose file"
657
+ }), /* @__PURE__ */ t("span", {
658
+ className: "core-file-field__drop",
659
+ children: "or drop it here"
660
+ })] }), /* @__PURE__ */ t("input", {
661
+ ref: j,
662
+ type: "file",
663
+ name: c,
664
+ accept: y,
665
+ hidden: !0,
666
+ tabIndex: -1,
667
+ onChange: (e) => void N(e.target.files?.[0])
668
+ })]
669
+ })
670
+ });
671
+ }
672
+ //#endregion
673
+ //#region src/core/forms/RadioGroup/RadioGroup.tsx
674
+ function me({ options: e, value: r, defaultValue: i, onChange: a, setValue: o, id: s, name: c, label: l, hint: u, error: d, required: f, disabled: p, readOnly: h, orientation: g = "vertical", className: v, style: y, ref: b }) {
675
+ let x = U(s, u, d), [S, C] = m(i ?? null), w = r === void 0 ? S : r, T = W(a, o), E = c ?? x.control;
676
+ return /* @__PURE__ */ t(H, {
677
+ as: "fieldset",
678
+ className: _("core-choices", v),
679
+ style: y,
680
+ label: l,
681
+ hint: u,
682
+ error: d,
683
+ required: f,
684
+ hintId: x.hintId,
685
+ errorId: x.errorId,
686
+ children: /* @__PURE__ */ t("div", {
687
+ className: "core-choices__list",
688
+ "data-orientation": g,
689
+ role: "radiogroup",
690
+ "aria-required": f || void 0,
691
+ ...x.aria,
692
+ children: e.map((e, i) => /* @__PURE__ */ n("label", {
693
+ className: "core-choices__option",
694
+ "data-disabled": e.disabled || p ? "" : void 0,
695
+ children: [/* @__PURE__ */ t("input", {
696
+ ref: i === 0 ? b : void 0,
697
+ id: i === 0 ? x.control : void 0,
698
+ type: "radio",
699
+ name: E,
700
+ value: e.value,
701
+ checked: w === e.value,
702
+ disabled: e.disabled || p || h && w !== e.value,
703
+ onChange: () => {
704
+ h || (r === void 0 && C(e.value), T(e.value));
705
+ }
706
+ }), /* @__PURE__ */ t("span", { children: e.label })]
707
+ }, e.value))
708
+ })
709
+ });
710
+ }
711
+ //#endregion
712
+ //#region src/core/forms/TextField/TextField.tsx
713
+ var he = (e) => {
714
+ if (e.trim() === "") return null;
715
+ let t = Number(e);
716
+ return Number.isFinite(t) ? t : null;
717
+ };
718
+ function ge({ type: e = "text", value: r, defaultValue: i, onChange: a, setValue: o, id: s, name: l, label: u, hint: d, error: f, required: p, disabled: h, readOnly: g, placeholder: v, inputMode: y, autoComplete: b, min: x, max: S, step: C, prefix: w, suffix: T, onEnter: E, onKeyDown: D, onBlur: O, className: k, style: A, ref: j }) {
719
+ let M = U(s, d, f), [N, P] = m(i), F = r === void 0 ? N : r, I = W(a, o), L = (e) => e == null ? "" : String(e), [R, z] = m(L(F));
720
+ c(() => {
721
+ e === "number" && he(R) !== (F ?? null) && z(L(F));
722
+ }, [F]);
723
+ let B = /* @__PURE__ */ t("input", {
724
+ ref: j,
725
+ id: M.control,
726
+ name: l,
727
+ type: e === "number" ? "text" : e,
728
+ className: "core-input core-text-field__input",
729
+ value: e === "number" ? R : L(F),
730
+ onChange: (t) => {
731
+ let n = t.target.value, i = e === "number" ? he(n) : n;
732
+ e === "number" && z(n), r === void 0 && P(i), I(i);
733
+ },
734
+ onKeyDown: (e) => {
735
+ D?.(e), !e.defaultPrevented && E && e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && e.keyCode !== 229 && E(e);
736
+ },
737
+ onBlur: O,
738
+ placeholder: v,
739
+ inputMode: y ?? (e === "number" ? "decimal" : void 0),
740
+ autoComplete: b,
741
+ min: e === "number" ? void 0 : x,
742
+ max: e === "number" ? void 0 : S,
743
+ step: e === "number" ? void 0 : C,
744
+ required: p,
745
+ "aria-required": p || void 0,
746
+ disabled: h,
747
+ readOnly: g,
748
+ ...M.aria
749
+ }), ee = w || T ? /* @__PURE__ */ n("div", {
750
+ className: "core-text-field__affixed",
751
+ children: [
752
+ w && /* @__PURE__ */ t("span", {
753
+ className: "core-text-field__affix",
754
+ "aria-hidden": "true",
755
+ children: w
756
+ }),
757
+ B,
758
+ T && /* @__PURE__ */ t("span", {
759
+ className: "core-text-field__affix",
760
+ "aria-hidden": "true",
761
+ children: T
762
+ })
763
+ ]
764
+ }) : B;
765
+ return /* @__PURE__ */ t(H, {
766
+ className: _("core-text-field", k),
767
+ style: A,
768
+ label: u,
769
+ hint: d,
770
+ error: f,
771
+ required: p,
772
+ htmlFor: M.control,
773
+ hintId: M.hintId,
774
+ errorId: M.errorId,
775
+ children: ee
776
+ });
777
+ }
778
+ //#endregion
779
+ //#region src/core/forms/SearchField/SearchField.tsx
780
+ function _e({ value: e, defaultValue: r, onChange: i, setValue: a, label: o = "Search", onSearch: s, size: c = "md", className: l, ...u }) {
781
+ let [d, f] = m(r ?? ""), p = e ?? d, h = (t) => {
782
+ e === void 0 && f(t), i?.(t), a?.(t);
783
+ };
784
+ return /* @__PURE__ */ n("div", {
785
+ className: _("core-search-field", l),
786
+ "data-filled": p ? "" : void 0,
787
+ "data-size": c,
788
+ children: [
789
+ /* @__PURE__ */ t(ge, {
790
+ ...u,
791
+ label: o,
792
+ value: p,
793
+ onChange: (e) => h(typeof e == "string" ? e : ""),
794
+ onEnter: () => s?.(p),
795
+ inputMode: "search",
796
+ className: "core-search-field__field"
797
+ }),
798
+ /* @__PURE__ */ n("svg", {
799
+ className: "core-search-field__icon",
800
+ viewBox: "0 0 24 24",
801
+ fill: "none",
802
+ stroke: "currentColor",
803
+ strokeWidth: "1.6",
804
+ strokeLinecap: "round",
805
+ "aria-hidden": "true",
806
+ focusable: "false",
807
+ children: [/* @__PURE__ */ t("circle", {
808
+ cx: "11",
809
+ cy: "11",
810
+ r: "6.5"
811
+ }), /* @__PURE__ */ t("path", { d: "M16 16l4 4" })]
812
+ }),
813
+ p && !u.disabled && !u.readOnly && /* @__PURE__ */ t("button", {
814
+ type: "button",
815
+ className: "core-search-field__clear",
816
+ "aria-label": "Clear search",
817
+ onClick: () => h(""),
818
+ children: /* @__PURE__ */ t("svg", {
819
+ viewBox: "0 0 24 24",
820
+ fill: "none",
821
+ stroke: "currentColor",
822
+ strokeWidth: "1.6",
823
+ strokeLinecap: "round",
824
+ "aria-hidden": "true",
825
+ focusable: "false",
826
+ children: /* @__PURE__ */ t("path", { d: "M6 6l12 12M18 6L6 18" })
827
+ })
828
+ })
829
+ ]
830
+ });
831
+ }
832
+ //#endregion
833
+ //#region src/core/forms/Select/Select.tsx
834
+ function ve({ options: e, value: r, defaultValue: i, onChange: a, setValue: o, id: s, name: c, label: l, hint: u, error: d, required: f, disabled: p, readOnly: h, placeholder: g = "Choose…", className: v, style: y, ref: b }) {
835
+ let x = U(s, u, d), [S, C] = m(i ?? null), w = r === void 0 ? S : r, T = W(a, o);
836
+ return /* @__PURE__ */ t(H, {
837
+ className: _("core-select", v),
838
+ style: y,
839
+ label: l,
840
+ hint: u,
841
+ error: d,
842
+ required: f,
843
+ htmlFor: x.control,
844
+ hintId: x.hintId,
845
+ errorId: x.errorId,
846
+ children: /* @__PURE__ */ n("select", {
847
+ ref: b,
848
+ id: x.control,
849
+ name: c,
850
+ className: "core-input core-select__input",
851
+ value: w ?? "",
852
+ onChange: (e) => {
853
+ let t = e.target.value === "" ? null : e.target.value;
854
+ r === void 0 && C(t), T(t);
855
+ },
856
+ required: f,
857
+ "aria-required": f || void 0,
858
+ disabled: p || h,
859
+ "aria-readonly": h || void 0,
860
+ ...x.aria,
861
+ children: [/* @__PURE__ */ t("option", {
862
+ value: "",
863
+ children: g
864
+ }), e.map((e) => /* @__PURE__ */ t("option", {
865
+ value: e.value,
866
+ disabled: e.disabled,
867
+ children: e.label
868
+ }, e.value))]
869
+ })
870
+ });
871
+ }
872
+ //#endregion
873
+ //#region src/core/forms/Slider/Slider.tsx
874
+ function ye({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name: s, label: c, hint: l, error: u, required: d, disabled: f, readOnly: p, min: h = 0, max: g = 100, step: v = 1, format: y = String, className: b, style: x, ref: S }) {
875
+ let C = U(o, l, u), [w, T] = m(r ?? h), E = e ?? w, D = W(i, a);
876
+ return /* @__PURE__ */ t(H, {
877
+ className: _("core-slider", b),
878
+ style: x,
879
+ label: c,
880
+ hint: l,
881
+ error: u,
882
+ required: d,
883
+ htmlFor: C.control,
884
+ hintId: C.hintId,
885
+ errorId: C.errorId,
886
+ children: /* @__PURE__ */ n("div", {
887
+ className: "core-slider__row",
888
+ children: [/* @__PURE__ */ t("input", {
889
+ ref: S,
890
+ id: C.control,
891
+ name: s,
892
+ type: "range",
893
+ className: "core-slider__input",
894
+ min: h,
895
+ max: g,
896
+ step: v,
897
+ value: E,
898
+ disabled: f,
899
+ "aria-readonly": p || void 0,
900
+ "aria-valuetext": y(E),
901
+ onChange: (t) => {
902
+ if (p) return;
903
+ let n = Number(t.target.value);
904
+ e === void 0 && T(n), D(n);
905
+ },
906
+ ...C.aria
907
+ }), /* @__PURE__ */ t("output", {
908
+ className: "core-slider__value",
909
+ htmlFor: C.control,
910
+ children: y(E)
911
+ })]
912
+ })
913
+ });
914
+ }
915
+ //#endregion
916
+ //#region src/core/forms/Switch/Switch.tsx
917
+ function be({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name: s, label: c, hint: l, error: u, disabled: d, readOnly: f, className: p, style: h, ref: g }) {
918
+ let v = U(o, l, u), [y, b] = m(r ?? !1), x = e ?? y, S = W(i, a);
919
+ return /* @__PURE__ */ n("div", {
920
+ className: _("core-switch", p),
921
+ style: h,
922
+ children: [
923
+ /* @__PURE__ */ n("button", {
924
+ ref: g,
925
+ id: v.control,
926
+ name: s,
927
+ type: "button",
928
+ role: "switch",
929
+ "aria-checked": x,
930
+ "aria-readonly": f || void 0,
931
+ disabled: d,
932
+ className: "core-switch__control",
933
+ onClick: () => {
934
+ f || (e === void 0 && b(!x), S(!x));
935
+ },
936
+ ...v.aria,
937
+ children: [/* @__PURE__ */ t("span", {
938
+ className: "core-switch__track",
939
+ "aria-hidden": "true",
940
+ children: /* @__PURE__ */ t("span", { className: "core-switch__thumb" })
941
+ }), /* @__PURE__ */ t("span", {
942
+ className: "core-switch__label",
943
+ children: c
944
+ })]
945
+ }),
946
+ l && /* @__PURE__ */ t("p", {
947
+ className: "core-field__hint",
948
+ id: v.hintId,
949
+ children: l
950
+ }),
951
+ u && /* @__PURE__ */ t("p", {
952
+ className: "core-field__error",
953
+ id: v.errorId,
954
+ children: u
955
+ })
956
+ ]
957
+ });
958
+ }
959
+ //#endregion
960
+ //#region src/core/forms/TextArea/TextArea.tsx
961
+ function xe({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name: s, label: c, hint: l, error: d, required: f, disabled: h, readOnly: g, placeholder: v, rows: y = 3, autoGrow: b = !0, maxLength: x, onKeyDown: S, onBlur: C, className: w, style: T, ref: E }) {
962
+ let D = U(o, l, d), [O, k] = m(r ?? ""), A = e ?? O, j = W(i, a), M = p(null);
963
+ return u(() => {
964
+ let e = M.current;
965
+ b && e && (e.style.height = "auto", e.style.height = `${e.scrollHeight + 2}px`);
966
+ }, [A, b]), /* @__PURE__ */ n(H, {
967
+ className: _("core-text-area", w),
968
+ style: T,
969
+ label: c,
970
+ hint: l,
971
+ error: d,
972
+ required: f,
973
+ htmlFor: D.control,
974
+ hintId: D.hintId,
975
+ errorId: D.errorId,
976
+ children: [/* @__PURE__ */ t("textarea", {
977
+ ref: (e) => {
978
+ M.current = e, typeof E == "function" ? E(e) : E && (E.current = e);
979
+ },
980
+ id: D.control,
981
+ name: s,
982
+ className: "core-input core-text-area__input",
983
+ rows: y,
984
+ value: A,
985
+ onChange: (t) => {
986
+ e === void 0 && k(t.target.value), j(t.target.value);
987
+ },
988
+ onKeyDown: S,
989
+ onBlur: C,
990
+ placeholder: v,
991
+ maxLength: x,
992
+ required: f,
993
+ "aria-required": f || void 0,
994
+ disabled: h,
995
+ readOnly: g,
996
+ ...D.aria
997
+ }), x !== void 0 && /* @__PURE__ */ n("span", {
998
+ className: "core-field__hint",
999
+ "aria-live": "polite",
1000
+ children: [
1001
+ A.length,
1002
+ " / ",
1003
+ x
1004
+ ]
1005
+ })]
1006
+ });
1007
+ }
1008
+ //#endregion
1009
+ //#region src/core/feedback/Badge/Badge.tsx
1010
+ function Se({ label: e, children: n, tone: r, variant: i = "soft", className: a, ...o }) {
1011
+ return /* @__PURE__ */ t("span", {
1012
+ ...g(o),
1013
+ className: _("core-badge", "core-toned", a),
1014
+ "data-tone": P(r),
1015
+ "data-variant": i,
1016
+ children: n ?? e
1017
+ });
1018
+ }
1019
+ //#endregion
1020
+ //#region src/core/feedback/Notice/Notice.tsx
1021
+ var Ce = {
1022
+ info: "M12 16v-5M12 8h.01M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z",
1023
+ success: "M8 12.5l2.5 2.5L16 9.5M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z",
1024
+ warning: "M12 9v4M12 17h.01M10.3 3.9L2.2 18a2 2 0 0 0 1.7 3h16.2a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z",
1025
+ danger: "M12 8v5M12 16h.01M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z"
1026
+ };
1027
+ function we({ title: e, message: r, children: i, tone: a, action: o, onDismiss: s, className: c, ...l }) {
1028
+ let u = P(a, "info"), d = u === "warning" || u === "danger";
1029
+ return /* @__PURE__ */ n("div", {
1030
+ ...g(l),
1031
+ role: d ? "alert" : "status",
1032
+ className: _("core-notice", "core-toned", c),
1033
+ "data-tone": u,
1034
+ children: [
1035
+ /* @__PURE__ */ t("svg", {
1036
+ className: "core-notice__icon",
1037
+ viewBox: "0 0 24 24",
1038
+ fill: "none",
1039
+ stroke: "currentColor",
1040
+ strokeWidth: "1.6",
1041
+ strokeLinecap: "round",
1042
+ strokeLinejoin: "round",
1043
+ "aria-hidden": "true",
1044
+ focusable: "false",
1045
+ children: /* @__PURE__ */ t("path", { d: Ce[u] ?? Ce.info })
1046
+ }),
1047
+ /* @__PURE__ */ n("div", {
1048
+ className: "core-notice__body",
1049
+ children: [e && /* @__PURE__ */ t("p", {
1050
+ className: "core-notice__title",
1051
+ children: e
1052
+ }), /* @__PURE__ */ t("div", {
1053
+ className: "core-notice__message",
1054
+ children: i ?? r
1055
+ })]
1056
+ }),
1057
+ o && /* @__PURE__ */ t("div", {
1058
+ className: "core-notice__action",
1059
+ children: o
1060
+ }),
1061
+ s && /* @__PURE__ */ t("button", {
1062
+ type: "button",
1063
+ className: "core-notice__dismiss",
1064
+ "aria-label": "Dismiss",
1065
+ onClick: s,
1066
+ children: /* @__PURE__ */ t("svg", {
1067
+ viewBox: "0 0 24 24",
1068
+ fill: "none",
1069
+ stroke: "currentColor",
1070
+ strokeWidth: "1.6",
1071
+ strokeLinecap: "round",
1072
+ "aria-hidden": "true",
1073
+ focusable: "false",
1074
+ children: /* @__PURE__ */ t("path", { d: "M6 6l12 12M18 6L6 18" })
1075
+ })
1076
+ })
1077
+ ]
1078
+ });
1079
+ }
1080
+ //#endregion
1081
+ //#region src/core/feedback/Progress/Progress.tsx
1082
+ function Te({ value: e, max: r = 100, label: i, showValue: a = !1, tone: o, size: s = "md", className: c, style: l, ...u }) {
1083
+ let d = typeof e == "number" && Number.isFinite(e) && r > 0, f = d ? Math.max(0, Math.min(100, e / r * 100)) : 0;
1084
+ return /* @__PURE__ */ n("div", {
1085
+ ...g(u),
1086
+ className: _("core-progress", "core-toned", c),
1087
+ "data-tone": P(o, "accent"),
1088
+ "data-size": s,
1089
+ style: l,
1090
+ children: [(i || a && d) && /* @__PURE__ */ n("div", {
1091
+ className: "core-progress__head",
1092
+ children: [i && /* @__PURE__ */ t("span", {
1093
+ className: "core-progress__label",
1094
+ children: i
1095
+ }), a && d && /* @__PURE__ */ n("span", {
1096
+ className: "core-progress__value",
1097
+ children: [Math.round(f), "%"]
1098
+ })]
1099
+ }), /* @__PURE__ */ t("div", {
1100
+ className: "core-progress__track",
1101
+ role: "progressbar",
1102
+ "aria-label": i,
1103
+ "aria-valuemin": 0,
1104
+ "aria-valuemax": d ? r : void 0,
1105
+ "aria-valuenow": d ? e : void 0,
1106
+ "data-indeterminate": d ? void 0 : "",
1107
+ style: y({ "--core-progress-fill": `${f}%` }),
1108
+ children: /* @__PURE__ */ t("div", { className: "core-progress__fill" })
1109
+ })]
1110
+ });
1111
+ }
1112
+ //#endregion
1113
+ //#region src/core/feedback/Skeleton/Skeleton.tsx
1114
+ function Ee({ shape: e = "text", lines: n = 3, width: r, height: i, className: a, style: o, ...s }) {
1115
+ let c = y({
1116
+ "--core-skeleton-w": v(r),
1117
+ "--core-skeleton-h": v(i)
1118
+ }, o);
1119
+ if (e !== "text") return /* @__PURE__ */ t("span", {
1120
+ ...g(s),
1121
+ "aria-hidden": "true",
1122
+ className: _("core-skeleton", a),
1123
+ "data-shape": e,
1124
+ style: c
1125
+ });
1126
+ let l = Math.max(1, Math.min(12, Math.round(n)));
1127
+ return /* @__PURE__ */ t("span", {
1128
+ ...g(s),
1129
+ "aria-hidden": "true",
1130
+ className: _("core-skeleton-lines", a),
1131
+ style: c,
1132
+ children: Array.from({ length: l }, (e, n) => /* @__PURE__ */ t("span", {
1133
+ className: "core-skeleton",
1134
+ "data-shape": "line",
1135
+ "data-last": n === l - 1 && l > 1 ? "" : void 0
1136
+ }, n))
1137
+ });
1138
+ }
1139
+ //#endregion
1140
+ //#region src/core/feedback/Spinner/Spinner.tsx
1141
+ function De({ label: e = "Loading", size: n = "md", className: r, ...i }) {
1142
+ return /* @__PURE__ */ t("span", {
1143
+ ...g(i),
1144
+ role: "status",
1145
+ "aria-label": e,
1146
+ className: _("core-spinner", r),
1147
+ "data-size": n
1148
+ });
1149
+ }
1150
+ //#endregion
1151
+ //#region src/core/feedback/Tooltip/Tooltip.tsx
1152
+ function Oe({ content: e, text: r, children: i, side: a = "top", className: o, ...s }) {
1153
+ let [u, d] = m(!1), f = l();
1154
+ return c(() => {
1155
+ if (!u) return;
1156
+ let e = (e) => {
1157
+ e.key === "Escape" && d(!1);
1158
+ };
1159
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
1160
+ }, [u]), /* @__PURE__ */ n("span", {
1161
+ ...g(s),
1162
+ className: _("core-tooltip", o),
1163
+ "aria-describedby": f,
1164
+ onMouseEnter: () => d(!0),
1165
+ onMouseLeave: () => d(!1),
1166
+ onFocus: () => d(!0),
1167
+ onBlur: () => d(!1),
1168
+ children: [i, /* @__PURE__ */ t("span", {
1169
+ id: f,
1170
+ role: "tooltip",
1171
+ className: "core-tooltip__bubble",
1172
+ "data-side": a,
1173
+ "data-open": u ? "" : void 0,
1174
+ children: e ?? r
1175
+ })]
1176
+ });
1177
+ }
1178
+ //#endregion
1179
+ //#region src/core/actions/Button/Button.tsx
1180
+ function ke({ children: r, label: i, variant: a = "primary", size: o = "md", tone: s = "neutral", iconLeft: c, iconRight: l, loading: u = !1, disabled: d = !1, type: f = "button", fullWidth: p = !1, className: m, href: h, action: v, input: y, actions: b, navigate: x, onClick: S, ...C }) {
1181
+ let w = V({
1182
+ href: h,
1183
+ action: v,
1184
+ input: y,
1185
+ actions: b,
1186
+ navigate: x,
1187
+ onClick: S
1188
+ }), T = u || w.busy, E = {
1189
+ ...g(C),
1190
+ className: _("core-button", m),
1191
+ "data-variant": a,
1192
+ "data-size": o,
1193
+ "data-tone": s,
1194
+ "data-full": p || void 0,
1195
+ "data-busy": T || void 0
1196
+ }, D = /* @__PURE__ */ n(e, { children: [
1197
+ T ? /* @__PURE__ */ t("span", {
1198
+ className: "core-button__spinner",
1199
+ "aria-hidden": "true"
1200
+ }) : c,
1201
+ /* @__PURE__ */ t("span", {
1202
+ className: "core-button__label",
1203
+ children: r ?? i
1204
+ }),
1205
+ l
1206
+ ] });
1207
+ return h && !d ? /* @__PURE__ */ t("a", {
1208
+ ...E,
1209
+ href: h,
1210
+ onClick: w.onClick,
1211
+ "aria-busy": T || void 0,
1212
+ ...w.external ? {
1213
+ target: "_blank",
1214
+ rel: "noopener noreferrer"
1215
+ } : {},
1216
+ children: D
1217
+ }) : /* @__PURE__ */ t("button", {
1218
+ ...E,
1219
+ type: f,
1220
+ disabled: d || T,
1221
+ "aria-busy": T || void 0,
1222
+ onClick: w.onClick,
1223
+ children: D
1224
+ });
1225
+ }
1226
+ //#endregion
1227
+ //#region src/core/actions/Chip/Chip.tsx
1228
+ function Ae({ children: e, label: r, variant: i = "prompt", size: a = "md", selected: o, onToggle: s, iconLeft: c, disabled: l = !1, className: u, href: d, action: f, input: p, actions: m, navigate: h, onClick: v, ...y }) {
1229
+ let b = o !== void 0 || s !== void 0, x = V({
1230
+ href: d,
1231
+ action: f,
1232
+ input: p,
1233
+ actions: m,
1234
+ navigate: h,
1235
+ onClick: v ?? (s ? () => s(!o) : void 0)
1236
+ });
1237
+ return /* @__PURE__ */ n("button", {
1238
+ ...g(y),
1239
+ type: "button",
1240
+ className: _("core-chip", u),
1241
+ "data-variant": i,
1242
+ "data-size": a,
1243
+ "aria-pressed": b ? !!o : void 0,
1244
+ disabled: l || x.busy,
1245
+ onClick: x.onClick,
1246
+ children: [c, /* @__PURE__ */ t("span", {
1247
+ className: "core-chip__label",
1248
+ children: e ?? r
1249
+ })]
1250
+ });
1251
+ }
1252
+ //#endregion
1253
+ //#region src/core/actions/IconButton/IconButton.tsx
1254
+ function je({ icon: e, children: n, label: r, size: i = "md", variant: a = "ghost", pressed: o, disabled: s = !1, className: c, href: l, action: u, input: d, actions: f, navigate: p, onClick: m, ...h }) {
1255
+ let v = V({
1256
+ href: l,
1257
+ action: u,
1258
+ input: d,
1259
+ actions: f,
1260
+ navigate: p,
1261
+ onClick: m
1262
+ }), y = {
1263
+ ...g(h),
1264
+ className: _("core-icon-button", c),
1265
+ "data-size": i,
1266
+ "data-variant": a,
1267
+ "aria-label": r,
1268
+ title: r
1269
+ }, b = /* @__PURE__ */ t("span", {
1270
+ className: "core-icon-button__glyph",
1271
+ "aria-hidden": "true",
1272
+ children: e ?? n
1273
+ });
1274
+ return l && !s ? /* @__PURE__ */ t("a", {
1275
+ ...y,
1276
+ href: l,
1277
+ onClick: v.onClick,
1278
+ ...v.external ? {
1279
+ target: "_blank",
1280
+ rel: "noopener noreferrer"
1281
+ } : {},
1282
+ children: b
1283
+ }) : /* @__PURE__ */ t("button", {
1284
+ ...y,
1285
+ type: "button",
1286
+ "aria-pressed": o,
1287
+ disabled: s || v.busy,
1288
+ onClick: v.onClick,
1289
+ children: b
1290
+ });
1291
+ }
1292
+ //#endregion
1293
+ //#region src/core/actions/Link/Link.tsx
1294
+ function Me({ href: r, children: i, label: a, variant: o = "default", className: s, navigate: c, onClick: l, ...u }) {
1295
+ let d = V({
1296
+ href: r,
1297
+ navigate: c,
1298
+ onClick: l
1299
+ });
1300
+ return B(r) || ee(r) || /^(https?:|mailto:)/i.test(r) ? /* @__PURE__ */ n("a", {
1301
+ ...g(u),
1302
+ className: _("core-link", s),
1303
+ "data-variant": o,
1304
+ href: r,
1305
+ onClick: d.onClick,
1306
+ ...d.external ? {
1307
+ target: "_blank",
1308
+ rel: "noopener noreferrer"
1309
+ } : {},
1310
+ children: [i ?? a, d.external && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("svg", {
1311
+ className: "core-link__away",
1312
+ viewBox: "0 0 24 24",
1313
+ fill: "none",
1314
+ stroke: "currentColor",
1315
+ strokeWidth: "1.6",
1316
+ strokeLinecap: "round",
1317
+ strokeLinejoin: "round",
1318
+ "aria-hidden": "true",
1319
+ focusable: "false",
1320
+ children: /* @__PURE__ */ t("path", { d: "M7 17L17 7M8 7h9v9" })
1321
+ }), /* @__PURE__ */ t("span", {
1322
+ className: "core-link__note",
1323
+ children: " (opens in a new tab)"
1324
+ })] })]
1325
+ }) : /* @__PURE__ */ t("span", {
1326
+ className: _("core-link", s),
1327
+ children: i ?? a
1328
+ });
1329
+ }
1330
+ //#endregion
1331
+ //#region src/core/actions/SegmentedControl/SegmentedControl.tsx
1332
+ function Ne({ options: e, value: n, defaultValue: r, onChange: i, label: a, fullWidth: o = !1, size: s = "md", className: c, setValue: u, ...d }) {
1333
+ let [f, h] = m(r ?? e[0]?.value), v = n ?? f, y = l(), b = p([]), x = (e) => {
1334
+ n === void 0 && h(e), i?.(e), u?.(e);
1335
+ }, S = e.map((e, t) => e.disabled ? -1 : t).filter((e) => e >= 0), C = (t, n) => {
1336
+ let r = t.key === "ArrowRight" || t.key === "ArrowDown" ? 1 : t.key === "ArrowLeft" || t.key === "ArrowUp" ? -1 : 0;
1337
+ if (!r || !S.length) return;
1338
+ t.preventDefault();
1339
+ let i = S.indexOf(n), a = S[(i + r + S.length) % S.length];
1340
+ b.current[a]?.focus(), x(e[a].value);
1341
+ };
1342
+ return /* @__PURE__ */ t("div", {
1343
+ ...g(d),
1344
+ role: "radiogroup",
1345
+ "aria-label": a,
1346
+ className: _("core-segmented", c),
1347
+ "data-full": o || void 0,
1348
+ "data-size": s,
1349
+ children: e.map((e, n) => {
1350
+ let r = e.value === v;
1351
+ return /* @__PURE__ */ t("button", {
1352
+ ref: (e) => {
1353
+ b.current[n] = e;
1354
+ },
1355
+ type: "button",
1356
+ role: "radio",
1357
+ name: y,
1358
+ "aria-checked": r,
1359
+ tabIndex: r || v === void 0 && n === S[0] ? 0 : -1,
1360
+ disabled: e.disabled,
1361
+ className: "core-segmented__option",
1362
+ onClick: () => x(e.value),
1363
+ onKeyDown: (e) => C(e, n),
1364
+ children: e.label
1365
+ }, e.value);
1366
+ })
1367
+ });
1368
+ }
1369
+ //#endregion
1370
+ //#region src/core/Accordion/Accordion.tsx
1371
+ function Pe({ items: e = [], children: r, numbered: i = !1, single: a = !1, rules: o = "subtle", className: s, ...c }) {
1372
+ let u = l(), d = i ? "ol" : "ul";
1373
+ return /* @__PURE__ */ n("div", {
1374
+ ...g(c),
1375
+ className: _("core-accordion", s),
1376
+ "data-rules": o,
1377
+ children: [e.length > 0 && /* @__PURE__ */ t(d, {
1378
+ className: "core-accordion__list",
1379
+ "data-numbered": i || void 0,
1380
+ children: e.map((e, r) => /* @__PURE__ */ t("li", {
1381
+ className: "core-accordion__item",
1382
+ children: /* @__PURE__ */ n("details", {
1383
+ className: "core-disclosure",
1384
+ name: a ? u : void 0,
1385
+ open: e.open || void 0,
1386
+ children: [/* @__PURE__ */ n("summary", {
1387
+ className: "core-disclosure__summary",
1388
+ children: [i && /* @__PURE__ */ t("span", {
1389
+ className: "core-accordion__number",
1390
+ children: r + 1
1391
+ }), e.question]
1392
+ }), /* @__PURE__ */ t("div", {
1393
+ className: "core-disclosure__content",
1394
+ children: e.answer
1395
+ })]
1396
+ })
1397
+ }, e.id ?? r))
1398
+ }), r]
1399
+ });
1400
+ }
1401
+ //#endregion
1402
+ //#region src/core/Card/Card.tsx
1403
+ function Fe({ media: e, header: r, body: i, footer: a, children: o, tone: s = "plain", className: c, ...l }) {
1404
+ return /* @__PURE__ */ n("article", {
1405
+ ...g(l),
1406
+ className: _("core-card", c),
1407
+ "data-tone": s,
1408
+ children: [
1409
+ e != null && /* @__PURE__ */ t("div", {
1410
+ className: "core-card__media",
1411
+ children: e
1412
+ }),
1413
+ r != null && /* @__PURE__ */ t("header", {
1414
+ className: "core-card__header",
1415
+ children: r
1416
+ }),
1417
+ (i != null || o != null) && /* @__PURE__ */ n("div", {
1418
+ className: "core-card__body",
1419
+ children: [i, o]
1420
+ }),
1421
+ a != null && /* @__PURE__ */ t("footer", {
1422
+ className: "core-card__footer",
1423
+ children: a
1424
+ })
1425
+ ]
1426
+ });
1427
+ }
1428
+ //#endregion
1429
+ //#region src/core/Columns/Columns.tsx
1430
+ var Ie = {
1431
+ "1:1": "1fr 1fr",
1432
+ "2:1": "2fr 1fr",
1433
+ "1:2": "1fr 2fr",
1434
+ "3:1": "3fr 1fr",
1435
+ "1:3": "1fr 3fr"
1436
+ };
1437
+ function Le({ start: e, end: r, children: i, ratio: a = "1:1", gap: o, stackBelow: s = "compact", className: c, ...l }) {
1438
+ return /* @__PURE__ */ n("div", {
1439
+ ...g(l),
1440
+ className: _("core-columns", c),
1441
+ "data-stack": s,
1442
+ children: [/* @__PURE__ */ n("div", {
1443
+ className: "core-columns__grid",
1444
+ style: y({
1445
+ "--core-columns-template": Ie[a] ?? Ie["1:1"],
1446
+ "--core-columns-gap": v(o)
1447
+ }),
1448
+ children: [/* @__PURE__ */ t("div", {
1449
+ className: "core-columns__start",
1450
+ children: e
1451
+ }), /* @__PURE__ */ t("div", {
1452
+ className: "core-columns__end",
1453
+ children: r
1454
+ })]
1455
+ }), i]
1456
+ });
1457
+ }
1458
+ var Re = Le;
1459
+ //#endregion
1460
+ //#region src/core/Disclosure/Disclosure.tsx
1461
+ function ze({ summary: e, content: r, children: i, open: a = !1, onToggle: o, className: s, ...c }) {
1462
+ return /* @__PURE__ */ n("details", {
1463
+ ...g(c),
1464
+ className: _("core-disclosure", s),
1465
+ open: a || void 0,
1466
+ onToggle: o ? (e) => o(e.currentTarget.open) : void 0,
1467
+ children: [/* @__PURE__ */ t("summary", {
1468
+ className: "core-disclosure__summary",
1469
+ children: e
1470
+ }), /* @__PURE__ */ n("div", {
1471
+ className: "core-disclosure__content",
1472
+ children: [r, i]
1473
+ })]
1474
+ });
1475
+ }
1476
+ //#endregion
1477
+ //#region src/core/Grid/Grid.tsx
1478
+ function Be({ items: e, children: n, min: i, columns: a, gap: o, className: s, style: c, ...l }) {
1479
+ let u = [...r.toArray(e), ...r.toArray(n)];
1480
+ return /* @__PURE__ */ t("div", {
1481
+ ...g(l),
1482
+ className: _("core-grid", s),
1483
+ "data-capped": a && a > 0 ? "" : void 0,
1484
+ style: y({
1485
+ "--core-grid-min": v(i),
1486
+ "--core-grid-gap": v(o),
1487
+ "--core-grid-cols": a && a > 0 ? String(Math.round(a)) : void 0
1488
+ }, c),
1489
+ children: u
1490
+ });
1491
+ }
1492
+ //#endregion
1493
+ //#region src/core/Repeat/Repeat.tsx
1494
+ function Ve({ item: e, each: n, as: i, layout: a = "stack", gap: o, min: s, empty: c, className: l, style: u, ...d }) {
1495
+ let f = r.toArray(e);
1496
+ return f.length ? /* @__PURE__ */ t("div", {
1497
+ ...g(d),
1498
+ className: _("core-repeat", l),
1499
+ "data-layout": a,
1500
+ style: y({
1501
+ "--core-repeat-gap": v(o),
1502
+ "--core-repeat-min": v(s)
1503
+ }, u),
1504
+ children: f
1505
+ }) : c ? /* @__PURE__ */ t("p", {
1506
+ className: "core-repeat__empty",
1507
+ children: c
1508
+ }) : null;
136
1509
  }
137
1510
  //#endregion
138
1511
  //#region src/core/document/profiles/profile.ts
139
- var O = [
1512
+ var He = [
140
1513
  "page-x-of-y",
141
1514
  "page-number",
142
1515
  "page-count"
143
- ], k = {
1516
+ ], Ue = {
144
1517
  display: {
145
1518
  size: 46,
146
1519
  lineHeight: .98,
@@ -196,7 +1569,7 @@ var O = [
196
1569
  tracking: "0.14em",
197
1570
  uppercase: !0
198
1571
  }
199
- }, A = {
1572
+ }, We = {
200
1573
  full: "var(--color-text)",
201
1574
  muted: "var(--color-text-muted)",
202
1575
  subtle: "var(--color-text-subtle)",
@@ -204,7 +1577,7 @@ var O = [
204
1577
  accent: "var(--color-accent)",
205
1578
  accentText: "var(--color-link)",
206
1579
  sunken: "var(--color-surface-sunken)"
207
- }, j = [
1580
+ }, Ge = [
208
1581
  "cover",
209
1582
  "what-this-is",
210
1583
  "told-us",
@@ -213,7 +1586,7 @@ var O = [
213
1586
  "talk-it-through",
214
1587
  "notes",
215
1588
  "footer"
216
- ], te = [
1589
+ ], Ke = [
217
1590
  {
218
1591
  id: "workbook",
219
1592
  label: "Workbook",
@@ -230,14 +1603,14 @@ var O = [
230
1603
  measure: "6.85in",
231
1604
  bodyMeasureCh: 64,
232
1605
  rail: { placement: "strip" },
233
- ink: A,
1606
+ ink: We,
234
1607
  rules: {
235
1608
  head: "2px",
236
1609
  structural: "1px",
237
1610
  row: "1px",
238
1611
  hairline: "1px"
239
1612
  },
240
- type: k,
1613
+ type: Ue,
241
1614
  floorPx: 11,
242
1615
  depth: {
243
1616
  max: 1,
@@ -251,7 +1624,7 @@ var O = [
251
1624
  right: "page-x-of-y"
252
1625
  } },
253
1626
  sections: {
254
- known: j,
1627
+ known: Ge,
255
1628
  required: ["next-steps", "talk-it-through"]
256
1629
  }
257
1630
  },
@@ -262,7 +1635,7 @@ var O = [
262
1635
  regions: { "page-footer": { right: "page-x-of-y" } },
263
1636
  requiredBindings: [],
264
1637
  sections: {
265
- known: j,
1638
+ known: Ge,
266
1639
  required: ["next-steps", "talk-it-through"]
267
1640
  }
268
1641
  },
@@ -302,9 +1675,9 @@ var O = [
302
1675
  hairline: "0.25pt"
303
1676
  },
304
1677
  type: {
305
- ...k,
1678
+ ...Ue,
306
1679
  eyebrow: {
307
- ...k.eyebrow,
1680
+ ...Ue.eyebrow,
308
1681
  tracking: "0.08em"
309
1682
  }
310
1683
  },
@@ -325,19 +1698,19 @@ var O = [
325
1698
  requiredBindings: ["execution-state"],
326
1699
  sections: { required: [] }
327
1700
  }
328
- ], M = /* @__PURE__ */ new Map();
329
- function ne(e) {
330
- M.set(e.id, e);
1701
+ ], G = /* @__PURE__ */ new Map();
1702
+ function qe(e) {
1703
+ G.set(e.id, e);
331
1704
  }
332
- for (let e of te) ne(e);
333
- function N() {
334
- return [...M.keys()].sort();
1705
+ for (let e of Ke) qe(e);
1706
+ function Je() {
1707
+ return [...G.keys()].sort();
335
1708
  }
336
- function P(e) {
337
- let t = M.get(e);
338
- if (!t) throw Error(`[document-profile] unknown profile "${e}". Registered: ${N().join(", ")}`);
1709
+ function Ye(e) {
1710
+ let t = G.get(e);
1711
+ if (!t) throw Error(`[document-profile] unknown profile "${e}". Registered: ${Je().join(", ")}`);
339
1712
  if (!t.extends) return t;
340
- let n = M.get(t.extends);
1713
+ let n = G.get(t.extends);
341
1714
  if (!n) throw Error(`[document-profile] "${e}" extends unknown profile "${t.extends}"`);
342
1715
  if (n.extends) throw Error(`[document-profile] "${e}" extends "${n.id}", which extends "${n.extends}": inheritance is one level deep.`);
343
1716
  return {
@@ -347,29 +1720,29 @@ function P(e) {
347
1720
  extends: t.extends
348
1721
  };
349
1722
  }
350
- function re() {
1723
+ function Xe() {
351
1724
  let e = {};
352
- for (let t of N()) try {
353
- e[t] = P(t);
1725
+ for (let t of Je()) try {
1726
+ e[t] = Ye(t);
354
1727
  } catch (e) {
355
1728
  console.warn(`[document-profile] skipping "${t}": ${e instanceof Error ? e.message : String(e)}`);
356
1729
  }
357
1730
  return e;
358
1731
  }
359
- var ie = Object.freeze(re()), F = "workbook";
360
- function ae(e, t) {
1732
+ var Ze = Object.freeze(Xe()), Qe = "workbook";
1733
+ function $e(e, t) {
361
1734
  try {
362
- return P(e);
1735
+ return Ye(e);
363
1736
  } catch {
364
- return D(`unknown-profile:${e}`, `[document-profile] unknown profile "${e}" (first seen in ${t}): rendering with fallback values.`), null;
1737
+ return j(`unknown-profile:${e}`, `[document-profile] unknown profile "${e}" (first seen in ${t}): rendering with fallback values.`), null;
365
1738
  }
366
1739
  }
367
- function I(e, t) {
368
- return e === void 0 ? (D("no-profile", `[document-profile] no profileId supplied (first seen in ${t}): falling back to "${F}". If this document is an instrument, its numbering and depth are being dropped.`), ae(F, t)) : ae(e, t);
1740
+ function K(e, t) {
1741
+ return e === void 0 ? (j("no-profile", `[document-profile] no profileId supplied (first seen in ${t}): falling back to "${Qe}". If this document is an instrument, its numbering and depth are being dropped.`), $e(Qe, t)) : $e(e, t);
369
1742
  }
370
1743
  //#endregion
371
1744
  //#region src/core/document/profiles/tokens.ts
372
- var oe = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), se = [
1745
+ var et = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), tt = [
373
1746
  "full",
374
1747
  "muted",
375
1748
  "subtle",
@@ -377,12 +1750,12 @@ var oe = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), se = [
377
1750
  "accent",
378
1751
  "accentText",
379
1752
  "sunken"
380
- ], ce = [
1753
+ ], nt = [
381
1754
  "structural",
382
1755
  "hairline",
383
1756
  "head",
384
1757
  "row"
385
- ], le = [
1758
+ ], rt = [
386
1759
  "display",
387
1760
  "heading",
388
1761
  "subhead",
@@ -392,8 +1765,8 @@ var oe = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), se = [
392
1765
  "label",
393
1766
  "note",
394
1767
  "eyebrow"
395
- ], ue = 3, L = "initial";
396
- function de(e) {
1768
+ ], it = 3, q = "initial";
1769
+ function at(e) {
397
1770
  let t = {
398
1771
  "--doc-sheet-width": e.sheet.width,
399
1772
  "--doc-sheet-height": e.sheet.height,
@@ -403,27 +1776,27 @@ function de(e) {
403
1776
  "--doc-margin-left": e.margins.left,
404
1777
  "--doc-measure": e.measure,
405
1778
  "--doc-body-measure": e.bodyMeasureCh ? `${e.bodyMeasureCh}ch` : "none",
406
- "--doc-rail-axis": e.rail.axis ?? L,
407
- "--doc-rail-width": e.rail.width ?? L,
408
- "--doc-rail-gutter": e.rail.gutter ?? L,
1779
+ "--doc-rail-axis": e.rail.axis ?? q,
1780
+ "--doc-rail-width": e.rail.width ?? q,
1781
+ "--doc-rail-gutter": e.rail.gutter ?? q,
409
1782
  "--doc-floor": `${e.floorPx}px`
410
1783
  };
411
- for (let n of se) t[`--doc-ink-${oe(n)}`] = e.ink[n];
412
- for (let n of ce) t[`--doc-rule-${n}`] = e.rules[n] ?? L;
413
- for (let n of le) {
414
- let r = e.type[n], i = `--doc-type-${oe(n)}`;
1784
+ for (let n of tt) t[`--doc-ink-${et(n)}`] = e.ink[n];
1785
+ for (let n of nt) t[`--doc-rule-${n}`] = e.rules[n] ?? q;
1786
+ for (let n of rt) {
1787
+ let r = e.type[n], i = `--doc-type-${et(n)}`;
415
1788
  t[`${i}-size`] = `${r.size}px`, t[`${i}-leading`] = String(r.lineHeight), t[`${i}-weight`] = String(r.weight), t[`${i}-tracking`] = r.tracking, t[`${i}-case`] = r.uppercase ? "uppercase" : "none";
416
1789
  }
417
- for (let n = 1; n <= ue; n++) t[`--doc-indent-${n}`] = e.depth.indent[n - 1] ?? L;
1790
+ for (let n = 1; n <= it; n++) t[`--doc-indent-${n}`] = e.depth.indent[n - 1] ?? q;
418
1791
  return t;
419
1792
  }
420
- var fe = (e, t) => `${e} {\n${Object.entries(t).map(([e, t]) => ` ${e}: ${t};`).join("\n")}\n}`;
421
- function pe(e, t) {
422
- return e.map((e) => fe(e.id === t ? `:root,\n[data-profile='${e.id}']` : `[data-profile='${e.id}']`, de(e))).join("\n\n");
1793
+ var ot = (e, t) => `${e} {\n${Object.entries(t).map(([e, t]) => ` ${e}: ${t};`).join("\n")}\n}`;
1794
+ function st(e, t) {
1795
+ return e.map((e) => ot(e.id === t ? `:root,\n[data-profile='${e.id}']` : `[data-profile='${e.id}']`, at(e))).join("\n\n");
423
1796
  }
424
1797
  //#endregion
425
1798
  //#region src/core/document/_shared/blocks.ts
426
- var me = [
1799
+ var ct = [
427
1800
  "prose",
428
1801
  "clause",
429
1802
  "definitions",
@@ -431,10 +1804,10 @@ var me = [
431
1804
  "notice",
432
1805
  "figure",
433
1806
  "execution"
434
- ], he = /\{\{ref:([^}|]+?)(?:\|(title|full|number))?\}\}/g, R = "[a-z0-9][a-z0-9_-]*", ge = RegExp(`^(?:(${R}):)?(${R}(?:\\.${R})*)(?:#(${R}))?$`);
435
- RegExp(`^${R}$`);
436
- function _e(e, t) {
437
- let n = e.trim(), r = ge.exec(n);
1807
+ ], lt = /\{\{ref:([^}|]+?)(?:\|(title|full|number))?\}\}/g, J = "[a-z0-9][a-z0-9_-]*", ut = RegExp(`^(?:(${J}):)?(${J}(?:\\.${J})*)(?:#(${J}))?$`);
1808
+ RegExp(`^${J}$`);
1809
+ function dt(e, t) {
1810
+ let n = e.trim(), r = ut.exec(n);
438
1811
  return r ? {
439
1812
  key: n,
440
1813
  ...r[1] ? { doc: r[1] } : {},
@@ -443,14 +1816,14 @@ function _e(e, t) {
443
1816
  ...t ? { form: t } : {}
444
1817
  } : null;
445
1818
  }
446
- function ve(e) {
1819
+ function ft(e) {
447
1820
  let t = e.lastIndexOf(".");
448
1821
  return t < 0 ? e : e.slice(t + 1);
449
1822
  }
450
- function ye(e) {
1823
+ function pt(e) {
451
1824
  let t = [], n = 0;
452
- for (let r of e.matchAll(new RegExp(he.source, "g"))) {
453
- let i = _e(r[1], r[2]);
1825
+ for (let r of e.matchAll(new RegExp(lt.source, "g"))) {
1826
+ let i = dt(r[1], r[2]);
454
1827
  i && (r.index > n && t.push({
455
1828
  kind: "text",
456
1829
  text: e.slice(n, r.index)
@@ -464,29 +1837,29 @@ function ye(e) {
464
1837
  text: e.slice(n)
465
1838
  }), t;
466
1839
  }
467
- function be(e) {
1840
+ function mt(e) {
468
1841
  return e.includes("{{ref:");
469
1842
  }
470
1843
  //#endregion
471
1844
  //#region src/core/document/_shared/profile.ts
472
- var z = (e) => e ? { "data-profile": e } : {}, xe = (e) => e?.fills === !1 ? { "data-fills": "none" } : {}, Se = {
1845
+ var Y = (e) => e ? { "data-profile": e } : {}, ht = (e) => e?.fills === !1 ? { "data-fills": "none" } : {}, gt = {
473
1846
  note: "ⓘ",
474
1847
  tip: "💡",
475
1848
  warning: "⚠️",
476
1849
  important: "❗"
477
1850
  };
478
- function Ce({ children: e, tone: r = "note", title: i, profileId: a, profile: o, className: s, style: c }) {
479
- let l = o ?? I(a, "Aside"), u = l?.fills === !1;
1851
+ function _t({ children: e, tone: r = "note", title: i, profileId: a, profile: o, className: s, style: c }) {
1852
+ let l = o ?? K(a, "Aside"), u = l?.fills === !1;
480
1853
  return /* @__PURE__ */ n("aside", {
481
- className: h("core-aside", s),
1854
+ className: _("core-aside", s),
482
1855
  "data-tone": r,
483
- ...z(o?.id ?? a),
484
- ...xe(l),
1856
+ ...Y(o?.id ?? a),
1857
+ ...ht(l),
485
1858
  style: c,
486
1859
  children: [u ? null : /* @__PURE__ */ t("span", {
487
1860
  className: "core-aside__icon",
488
1861
  "aria-hidden": !0,
489
- children: Se[r]
1862
+ children: gt[r]
490
1863
  }), /* @__PURE__ */ n("div", {
491
1864
  className: "core-aside__body",
492
1865
  children: [i && /* @__PURE__ */ t("div", {
@@ -501,20 +1874,20 @@ function Ce({ children: e, tone: r = "note", title: i, profileId: a, profile: o,
501
1874
  }
502
1875
  //#endregion
503
1876
  //#region src/core/document/Prose/Prose.tsx
504
- function we({ children: e, profileId: n, profile: r, full: i = !1, className: a, style: o }) {
505
- return r || I(n, "Prose"), /* @__PURE__ */ t("div", {
506
- className: h("core-prose", a),
1877
+ function vt({ children: e, profileId: n, profile: r, full: i = !1, className: a, style: o }) {
1878
+ return r || K(n, "Prose"), /* @__PURE__ */ t("div", {
1879
+ className: _("core-prose", a),
507
1880
  "data-full": i ? "" : void 0,
508
- ...z(r?.id ?? n),
1881
+ ...Y(r?.id ?? n),
509
1882
  style: o,
510
1883
  children: e
511
1884
  });
512
1885
  }
513
1886
  //#endregion
514
1887
  //#region src/core/document/Quote/Quote.tsx
515
- function Te({ children: e, citation: r, className: i, style: a }) {
1888
+ function yt({ children: e, citation: r, className: i, style: a }) {
516
1889
  return /* @__PURE__ */ n("figure", {
517
- className: h("core-quote", i),
1890
+ className: _("core-quote", i),
518
1891
  style: a,
519
1892
  children: [/* @__PURE__ */ t("blockquote", {
520
1893
  className: "core-quote__body",
@@ -527,15 +1900,15 @@ function Te({ children: e, citation: r, className: i, style: a }) {
527
1900
  }
528
1901
  //#endregion
529
1902
  //#region src/core/document/Definition/Definition.tsx
530
- function Ee({ term: e, description: r, pairs: i, profileId: a, profile: o, className: s, style: c }) {
531
- o || I(a, "Definition");
1903
+ function bt({ term: e, description: r, pairs: i, profileId: a, profile: o, className: s, style: c }) {
1904
+ o || K(a, "Definition");
532
1905
  let l = i ?? (e === void 0 ? [] : [{
533
1906
  term: e,
534
1907
  description: r
535
1908
  }]);
536
1909
  return /* @__PURE__ */ t("dl", {
537
- className: h("core-definition", s),
538
- ...z(o?.id ?? a),
1910
+ className: _("core-definition", s),
1911
+ ...Y(o?.id ?? a),
539
1912
  style: c,
540
1913
  children: l.map((e, r) => /* @__PURE__ */ n("div", {
541
1914
  className: "core-definition__item",
@@ -551,35 +1924,35 @@ function Ee({ term: e, description: r, pairs: i, profileId: a, profile: o, class
551
1924
  }
552
1925
  //#endregion
553
1926
  //#region src/core/document/Math/Math.tsx
554
- var B = "katex";
555
- function De(e) {
1927
+ var xt = "katex";
1928
+ function St(e) {
556
1929
  if (typeof document > "u") return !1;
557
1930
  for (let t of document.querySelectorAll("script[type=\"importmap\"]")) try {
558
1931
  if (JSON.parse(t.textContent ?? "").imports?.[e]) return !0;
559
1932
  } catch {}
560
1933
  return !1;
561
1934
  }
562
- var Oe = (e) => import(
1935
+ var Ct = (e) => import(
563
1936
  /* @vite-ignore */
564
1937
  e
565
- ), V;
566
- function ke() {
567
- return V ??= De(B) ? Oe(B).then((e) => {
1938
+ ), wt;
1939
+ function Tt() {
1940
+ return wt ??= St(xt) ? Ct(xt).then((e) => {
568
1941
  let t = e, n = t.default ?? t;
569
1942
  return typeof n.render == "function" ? n : null;
570
- }, () => null) : Promise.resolve(null), V;
1943
+ }, () => null) : Promise.resolve(null), wt;
571
1944
  }
572
- function Ae({ children: e = "", mode: n = "inline", className: r }) {
573
- let i = d(null), [a, o] = f(null), [c, l] = f(null), u = `${n}:${e}`;
574
- return s(() => {
1945
+ function Et({ children: e = "", mode: n = "inline", className: r }) {
1946
+ let i = p(null), [a, o] = m(null), [s, l] = m(null), u = `${n}:${e}`;
1947
+ return c(() => {
575
1948
  let e = !0;
576
- return ke().then((t) => {
1949
+ return Tt().then((t) => {
577
1950
  e && t && o(() => t);
578
1951
  }), () => {
579
1952
  e = !1;
580
1953
  };
581
- }, []), s(() => {
582
- if (a && i.current && c !== u) try {
1954
+ }, []), c(() => {
1955
+ if (a && i.current && s !== u) try {
583
1956
  a.render(e, i.current, {
584
1957
  displayMode: n === "block",
585
1958
  throwOnError: !1
@@ -592,34 +1965,34 @@ function Ae({ children: e = "", mode: n = "inline", className: r }) {
592
1965
  e,
593
1966
  n,
594
1967
  u,
595
- c
596
- ]), !a || c === u ? /* @__PURE__ */ t("span", {
597
- className: h("core-math", r),
1968
+ s
1969
+ ]), !a || s === u ? /* @__PURE__ */ t("span", {
1970
+ className: _("core-math", r),
598
1971
  "data-mode": n,
599
1972
  "data-fallback": "",
600
1973
  title: "KaTeX not available — showing TeX source",
601
1974
  children: e
602
1975
  }) : /* @__PURE__ */ t("span", {
603
1976
  ref: i,
604
- className: h("core-math", r),
1977
+ className: _("core-math", r),
605
1978
  "data-mode": n
606
1979
  });
607
1980
  }
608
1981
  //#endregion
609
1982
  //#region src/core/document/_shared/footnote-context.tsx
610
- function je(e, t) {
1983
+ function Dt(e, t) {
611
1984
  switch (t.type) {
612
1985
  case "register": return e.footnotes.some((e) => e.id === t.entry.id) ? e : { footnotes: [...e.footnotes, t.entry] };
613
1986
  case "unregister": return { footnotes: e.footnotes.filter((e) => e.id !== t.id) };
614
1987
  default: return e;
615
1988
  }
616
1989
  }
617
- var H = r(null);
618
- function Me() {
619
- return o(H);
1990
+ var Ot = i(null);
1991
+ function kt() {
1992
+ return s(Ot);
620
1993
  }
621
- function Ne({ children: e }) {
622
- let [n, r] = u(je, { footnotes: [] }), i = d(0), o = a((e) => {
1994
+ function At({ children: e }) {
1995
+ let [n, r] = f(Dt, { footnotes: [] }), i = p(0), a = o((e) => {
623
1996
  i.current += 1;
624
1997
  let t = i.current;
625
1998
  return r({
@@ -629,28 +2002,28 @@ function Ne({ children: e }) {
629
2002
  number: t
630
2003
  }
631
2004
  }), t;
632
- }, []), s = a((e) => r({
2005
+ }, []), s = o((e) => r({
633
2006
  type: "unregister",
634
2007
  id: e
635
- }), []), c = l(() => ({
2008
+ }), []), c = d(() => ({
636
2009
  state: n,
637
- registerFootnote: o,
2010
+ registerFootnote: a,
638
2011
  unregisterFootnote: s
639
2012
  }), [
640
2013
  n,
641
- o,
2014
+ a,
642
2015
  s
643
2016
  ]);
644
- return /* @__PURE__ */ t(H.Provider, {
2017
+ return /* @__PURE__ */ t(Ot.Provider, {
645
2018
  value: c,
646
2019
  children: e
647
2020
  });
648
2021
  }
649
2022
  //#endregion
650
2023
  //#region src/core/document/Footnote/Footnote.tsx
651
- function Pe({ children: e }) {
652
- let r = c(), i = Me(), [a, o] = f(null);
653
- return s(() => {
2024
+ function jt({ children: e }) {
2025
+ let r = l(), i = kt(), [a, o] = m(null);
2026
+ return c(() => {
654
2027
  if (!i) return;
655
2028
  let t = i.registerFootnote({
656
2029
  id: r,
@@ -682,10 +2055,10 @@ function Pe({ children: e }) {
682
2055
  }
683
2056
  //#endregion
684
2057
  //#region src/core/document/Figure/Figure.tsx
685
- function U({ children: e, caption: r, profileId: i, profile: a, className: o, style: s }) {
686
- return a || I(i, "Figure"), /* @__PURE__ */ n("figure", {
687
- className: h("core-figure", o),
688
- ...z(a?.id ?? i),
2058
+ function Mt({ children: e, caption: r, profileId: i, profile: a, className: o, style: s }) {
2059
+ return a || K(i, "Figure"), /* @__PURE__ */ n("figure", {
2060
+ className: _("core-figure", o),
2061
+ ...Y(a?.id ?? i),
689
2062
  style: s,
690
2063
  children: [/* @__PURE__ */ t("div", {
691
2064
  className: "core-figure__body",
@@ -698,26 +2071,26 @@ function U({ children: e, caption: r, profileId: i, profile: a, className: o, st
698
2071
  }
699
2072
  //#endregion
700
2073
  //#region src/core/document/PageBreak/PageBreak.tsx
701
- function Fe({ className: e }) {
2074
+ function Nt({ className: e }) {
702
2075
  return /* @__PURE__ */ t("div", {
703
- className: h("core-page-break", e),
2076
+ className: _("core-page-break", e),
704
2077
  "aria-hidden": !0
705
2078
  });
706
2079
  }
707
2080
  //#endregion
708
2081
  //#region src/core/document/DocumentLabel/DocumentLabel.tsx
709
- function Ie({ children: e, as: n = "div", profileId: r, profile: i, tone: a = "subtle", className: o, style: s }) {
710
- return i || I(r, "DocumentLabel"), /* @__PURE__ */ t(n, {
711
- className: h("core-document-label", o),
2082
+ function Pt({ children: e, as: n = "div", profileId: r, profile: i, tone: a = "subtle", className: o, style: s }) {
2083
+ return i || K(r, "DocumentLabel"), /* @__PURE__ */ t(n, {
2084
+ className: _("core-document-label", o),
712
2085
  "data-tone": a,
713
- ...z(i?.id ?? r),
2086
+ ...Y(i?.id ?? r),
714
2087
  style: s,
715
2088
  children: e
716
2089
  });
717
2090
  }
718
2091
  //#endregion
719
2092
  //#region src/core/document/_shared/ordinal-format.ts
720
- var Le = [
2093
+ var Ft = [
721
2094
  "one",
722
2095
  "two",
723
2096
  "three",
@@ -729,15 +2102,15 @@ var Le = [
729
2102
  "nine",
730
2103
  "ten"
731
2104
  ];
732
- function Re(e) {
2105
+ function It(e) {
733
2106
  if (e.length !== 1) return null;
734
- let t = e[0], n = Le[t - 1];
2107
+ let t = e[0], n = Ft[t - 1];
735
2108
  return n ? `Article ${n}` : `Article ${t}`;
736
2109
  }
737
- function ze(e) {
2110
+ function Lt(e) {
738
2111
  return e.length === 0 ? null : e.length === 1 ? `Article ${e[0]}` : e.join(".");
739
2112
  }
740
- function Be(e, t, n) {
2113
+ function Rt(e, t, n) {
741
2114
  let r = n === "ladder" && e !== void 0 && e.length > 0, i = [];
742
2115
  return t.map(({ level: t, marker: n }) => {
743
2116
  let a = Math.min(Number.isInteger(t) && t >= 1 ? t : 1, i.length + 1);
@@ -746,25 +2119,25 @@ function Be(e, t, n) {
746
2119
  }
747
2120
  //#endregion
748
2121
  //#region src/core/document/_shared/section-anchors.ts
749
- function Ve(e, t) {
2122
+ function zt(e, t) {
750
2123
  return e?.[t] ?? t;
751
2124
  }
752
2125
  //#endregion
753
2126
  //#region src/core/document/Reference/Reference.tsx
754
- function He({ target: e, form: n, sectionReferences: r, sectionNumbers: i, sectionTitles: a, sectionAnchors: o, profileId: s, profile: c, className: l, style: u }) {
755
- let d = c ?? I(s, "Reference"), f = _e(e), p = r?.[e], m = p?.openable === !1, g = f !== null && f.doc === void 0, _ = f ? ve(f.unit) : e, v = p?.number ?? (g && f.element === void 0 ? i?.[_] : void 0), y = p?.title ?? (g && f.element === void 0 ? a?.[_] : void 0), b = null;
2127
+ function Bt({ target: e, form: n, sectionReferences: r, sectionNumbers: i, sectionTitles: a, sectionAnchors: o, profileId: s, profile: c, className: l, style: u }) {
2128
+ let d = c ?? K(s, "Reference"), f = dt(e), p = r?.[e], m = p?.openable === !1, h = f !== null && f.doc === void 0, g = f ? ft(f.unit) : e, v = p?.number ?? (h && f.element === void 0 ? i?.[g] : void 0), y = p?.title ?? (h && f.element === void 0 ? a?.[g] : void 0), b = null;
756
2129
  if (f?.element !== void 0) {
757
2130
  let e = p?.element;
758
- b = e ? Be(p.number, e.shape, d?.depth.numbering)[e.index] ?? null : null;
759
- } else v && (b = ze(v));
2131
+ b = e ? Rt(p.number, e.shape, d?.depth.numbering)[e.index] ?? null : null;
2132
+ } else v && (b = Lt(v));
760
2133
  let x = n === "full" || f?.doc !== void 0 && n !== "title", S;
761
2134
  S = m ? null : n === "title" ? y ?? b : x && b && y && f?.element === void 0 ? `${b} (${y})` : b ?? y ?? null;
762
- let C = S !== null, w = C ? p ? p.href : `#${Ve(o, _)}` : void 0, T = {
763
- className: h("core-reference", l),
2135
+ let C = S !== null, w = C ? p ? p.href : `#${zt(o, g)}` : void 0, T = {
2136
+ className: _("core-reference", l),
764
2137
  "data-target": e,
765
2138
  "data-unresolved": C || m ? void 0 : "",
766
2139
  "data-closed": m ? "" : void 0,
767
- ...z(c?.id ?? s),
2140
+ ...Y(c?.id ?? s),
768
2141
  style: u
769
2142
  };
770
2143
  return w ? /* @__PURE__ */ t("a", {
@@ -778,10 +2151,10 @@ function He({ target: e, form: n, sectionReferences: r, sectionNumbers: i, secti
778
2151
  }
779
2152
  //#endregion
780
2153
  //#region src/core/document/DocumentTable/DocumentTable.tsx
781
- function Ue({ columns: e, rows: r, caption: i, profileId: a, profile: o, className: s, style: c }) {
782
- return o || I(a, "DocumentTable"), e.length === 0 ? null : /* @__PURE__ */ n("div", {
783
- className: h("core-document-table", s),
784
- ...z(o?.id ?? a),
2154
+ function Vt({ columns: e, rows: r, caption: i, profileId: a, profile: o, className: s, style: c }) {
2155
+ return o || K(a, "DocumentTable"), e.length === 0 ? null : /* @__PURE__ */ n("div", {
2156
+ className: _("core-document-table", s),
2157
+ ...Y(o?.id ?? a),
785
2158
  style: c,
786
2159
  children: [i === void 0 ? null : /* @__PURE__ */ t("div", {
787
2160
  className: "core-document-table__caption",
@@ -803,13 +2176,13 @@ function Ue({ columns: e, rows: r, caption: i, profileId: a, profile: o, classNa
803
2176
  }
804
2177
  //#endregion
805
2178
  //#region src/core/document/RowList/RowList.tsx
806
- function W({ items: e, profileId: r, profile: i, markerWidth: a = 44, secondaryWidth: o = 190, missingLabel: s = "Not answered yet", className: c, style: l }) {
807
- return i || I(r, "RowList"), e.length === 0 ? null : /* @__PURE__ */ t("div", {
808
- className: h("core-row-list", c),
809
- ...z(i?.id ?? r),
810
- style: _({
811
- "--core-row-list-marker-width": g(a),
812
- "--core-row-list-secondary-width": g(o)
2179
+ function Ht({ items: e, profileId: r, profile: i, markerWidth: a = 44, secondaryWidth: o = 190, missingLabel: s = "Not answered yet", className: c, style: l }) {
2180
+ return i || K(r, "RowList"), e.length === 0 ? null : /* @__PURE__ */ t("div", {
2181
+ className: _("core-row-list", c),
2182
+ ...Y(i?.id ?? r),
2183
+ style: y({
2184
+ "--core-row-list-marker-width": v(a),
2185
+ "--core-row-list-secondary-width": v(o)
813
2186
  }, l),
814
2187
  children: e.map((e, r) => /* @__PURE__ */ n("div", {
815
2188
  className: "core-row-list__row",
@@ -833,8 +2206,8 @@ function W({ items: e, profileId: r, profile: i, markerWidth: a = 44, secondaryW
833
2206
  }
834
2207
  //#endregion
835
2208
  //#region src/core/document/AnswerRows/AnswerRows.tsx
836
- var We = 190;
837
- function Ge({ items: e, profileId: n, profile: r, missingLabel: i = "Not answered yet", answerWidth: a = 190, className: o, style: s }) {
2209
+ var Ut = 190;
2210
+ function Wt({ items: e, profileId: n, profile: r, missingLabel: i = "Not answered yet", answerWidth: a = 190, className: o, style: s }) {
838
2211
  let c = e.map((e) => {
839
2212
  let t = typeof e.answer == "string" && e.answer.trim().length > 0;
840
2213
  return {
@@ -845,10 +2218,10 @@ function Ge({ items: e, profileId: n, profile: r, missingLabel: i = "Not answere
845
2218
  };
846
2219
  });
847
2220
  return /* @__PURE__ */ t("div", {
848
- className: h("core-answer-rows", o),
849
- ...z(r?.id ?? n),
2221
+ className: _("core-answer-rows", o),
2222
+ ...Y(r?.id ?? n),
850
2223
  style: s,
851
- children: /* @__PURE__ */ t(W, {
2224
+ children: /* @__PURE__ */ t(Ht, {
852
2225
  items: c,
853
2226
  profileId: n,
854
2227
  profile: r,
@@ -859,21 +2232,21 @@ function Ge({ items: e, profileId: n, profile: r, missingLabel: i = "Not answere
859
2232
  }
860
2233
  //#endregion
861
2234
  //#region src/core/_shared/formatters.ts
862
- function G(e) {
2235
+ function X(e) {
863
2236
  if (e == null) return "";
864
2237
  if (typeof e == "string") return e;
865
- let t = e.precision ?? (e.format === "number" ? Ke(e.value) : void 0), n = qe(e.format, e.value, {
2238
+ let t = e.precision ?? (e.format === "number" ? Gt(e.value) : void 0), n = Kt(e.format, e.value, {
866
2239
  precision: t,
867
2240
  signed: e.signed
868
2241
  });
869
2242
  return e.unit && n !== "—" ? `${n}\u00a0${e.unit}` : n;
870
2243
  }
871
- function Ke(e) {
2244
+ function Gt(e) {
872
2245
  if (typeof e != "number" || !Number.isFinite(e)) return 0;
873
2246
  let t = String(Number(e.toFixed(3))), n = t.indexOf(".");
874
2247
  return n === -1 || t.includes("e") ? 0 : t.length - n - 1;
875
2248
  }
876
- function qe(e, t, n = {}) {
2249
+ function Kt(e, t, n = {}) {
877
2250
  if (!Number.isFinite(t)) return "—";
878
2251
  let r = n.signed === !0, i = t < 0, a = Math.abs(t), o = i ? "-" : r ? "+" : "";
879
2252
  switch (e) {
@@ -939,35 +2312,35 @@ function qe(e, t, n = {}) {
939
2312
  }
940
2313
  //#endregion
941
2314
  //#region src/core/document/ComparisonBars/ComparisonBars.tsx
942
- var Je = 40;
943
- function Ye({ bars: e, target: r, targetLabel: i, max: a, profileId: o, profile: s, className: c, style: l }) {
944
- let u = s ?? I(o, "ComparisonBars");
2315
+ var qt = 40;
2316
+ function Jt({ bars: e, target: r, targetLabel: i, max: a, profileId: o, profile: s, className: c, style: l }) {
2317
+ let u = s ?? K(o, "ComparisonBars");
945
2318
  if (e.length === 0) return null;
946
2319
  let d = e.map((e) => e.value), f = a ?? Math.max(...d, r ?? 0);
947
- if (!Number.isFinite(f) || f <= 0) return D("ComparisonBars:no-scale", "[ComparisonBars] every value is zero or negative, so there is no scale to draw against. Rendering nothing rather than a full-width or zero-width bar, either of which reads as a chart and is not one."), null;
2320
+ if (!Number.isFinite(f) || f <= 0) return j("ComparisonBars:no-scale", "[ComparisonBars] every value is zero or negative, so there is no scale to draw against. Rendering nothing rather than a full-width or zero-width bar, either of which reads as a chart and is not one."), null;
948
2321
  let p = r !== void 0 && r > 0 && r <= f ? r / f * 100 : void 0;
949
2322
  return /* @__PURE__ */ n("figure", {
950
- className: h("core-comparison-bars", c),
951
- ...z(s?.id ?? o),
952
- ...xe(u),
2323
+ className: _("core-comparison-bars", c),
2324
+ ...Y(s?.id ?? o),
2325
+ ...ht(u),
953
2326
  style: l,
954
2327
  children: [e.map((e) => {
955
2328
  let r = Math.max(0, Math.min(100, e.value / f * 100));
956
2329
  return /* @__PURE__ */ n("div", {
957
2330
  className: "core-comparison-bars__bar",
958
- style: _({ "--core-comparison-bars-value": `${r}%` }),
2331
+ style: y({ "--core-comparison-bars-value": `${r}%` }),
959
2332
  children: [/* @__PURE__ */ t("div", {
960
2333
  className: "core-comparison-bars__label",
961
2334
  children: e.label
962
2335
  }), /* @__PURE__ */ n("div", {
963
2336
  className: "core-comparison-bars__track",
964
- style: _({ "--core-comparison-bars-target": p === void 0 ? void 0 : `${p}%` }),
2337
+ style: y({ "--core-comparison-bars-target": p === void 0 ? void 0 : `${p}%` }),
965
2338
  children: [
966
2339
  /* @__PURE__ */ t("div", { className: "core-comparison-bars__fill" }),
967
2340
  /* @__PURE__ */ t("span", {
968
2341
  className: "core-comparison-bars__value",
969
- "data-placement": r > Je ? "inside" : "outside",
970
- children: G(e.display)
2342
+ "data-placement": r > qt ? "inside" : "outside",
2343
+ children: X(e.display)
971
2344
  }),
972
2345
  p !== void 0 && /* @__PURE__ */ t("div", {
973
2346
  className: "core-comparison-bars__target",
@@ -984,11 +2357,11 @@ function Ye({ bars: e, target: r, targetLabel: i, max: a, profileId: o, profile:
984
2357
  }
985
2358
  //#endregion
986
2359
  //#region src/core/document/NextSteps/NextSteps.tsx
987
- var Xe = 3, Ze = 5;
988
- function Qe({ items: e, profileId: r, profile: i, checkboxes: a = !0, className: o, style: s }) {
989
- return i || I(r, "NextSteps"), e.length === 0 ? null : ((e.length < Xe || e.length > Ze) && D(`NextSteps:count:${e.length}`, `[NextSteps] ${e.length} step(s). A next-steps list takes three to five: fewer reads as an afterthought, more stops being a list a reader acts on this week. Rendering anyway — a document with six steps is far better than one with none.`), /* @__PURE__ */ t("ol", {
990
- className: h("core-next-steps", o),
991
- ...z(i?.id ?? r),
2360
+ var Yt = 3, Xt = 5;
2361
+ function Zt({ items: e, profileId: r, profile: i, checkboxes: a = !0, className: o, style: s }) {
2362
+ return i || K(r, "NextSteps"), e.length === 0 ? null : ((e.length < Yt || e.length > Xt) && j(`NextSteps:count:${e.length}`, `[NextSteps] ${e.length} step(s). A next-steps list takes three to five: fewer reads as an afterthought, more stops being a list a reader acts on this week. Rendering anyway — a document with six steps is far better than one with none.`), /* @__PURE__ */ t("ol", {
2363
+ className: _("core-next-steps", o),
2364
+ ...Y(i?.id ?? r),
992
2365
  style: s,
993
2366
  children: e.map((e, r) => /* @__PURE__ */ n("li", {
994
2367
  className: "core-next-steps__step",
@@ -1011,11 +2384,11 @@ function Qe({ items: e, profileId: r, profile: i, checkboxes: a = !0, className:
1011
2384
  }
1012
2385
  //#endregion
1013
2386
  //#region src/core/document/Notes/Notes.tsx
1014
- var $e = 38;
1015
- function et({ title: e = "Notes", lines: r = 4, profileId: i, profile: a, className: o, style: s }) {
1016
- return a || I(i, "Notes"), r < 1 ? null : /* @__PURE__ */ n("section", {
1017
- className: h("core-notes", o),
1018
- ...z(a?.id ?? i),
2387
+ var Qt = 38;
2388
+ function $t({ title: e = "Notes", lines: r = 4, profileId: i, profile: a, className: o, style: s }) {
2389
+ return a || K(i, "Notes"), r < 1 ? null : /* @__PURE__ */ n("section", {
2390
+ className: _("core-notes", o),
2391
+ ...Y(a?.id ?? i),
1019
2392
  style: s,
1020
2393
  children: [/* @__PURE__ */ t("div", {
1021
2394
  className: "core-notes__title",
@@ -1029,11 +2402,11 @@ function et({ title: e = "Notes", lines: r = 4, profileId: i, profile: a, classN
1029
2402
  }
1030
2403
  //#endregion
1031
2404
  //#region src/core/document/SkippedSection/SkippedSection.tsx
1032
- var tt = "You left this section open, so it is not covered here.";
1033
- function nt({ wouldTell: e, openingLine: r = tt, profileId: i, profile: a, className: o, style: s }) {
1034
- return a || I(i, "SkippedSection"), /* @__PURE__ */ n("div", {
1035
- className: h("core-skipped-section", o),
1036
- ...z(a?.id ?? i),
2405
+ var en = "You left this section open, so it is not covered here.";
2406
+ function tn({ wouldTell: e, openingLine: r = en, profileId: i, profile: a, className: o, style: s }) {
2407
+ return a || K(i, "SkippedSection"), /* @__PURE__ */ n("div", {
2408
+ className: _("core-skipped-section", o),
2409
+ ...Y(a?.id ?? i),
1037
2410
  style: s,
1038
2411
  children: [
1039
2412
  /* @__PURE__ */ t("span", {
@@ -1050,13 +2423,13 @@ function nt({ wouldTell: e, openingLine: r = tt, profileId: i, profile: a, class
1050
2423
  }
1051
2424
  //#endregion
1052
2425
  //#region src/core/document/TalkItThrough/TalkItThrough.tsx
1053
- var rt = "Nothing here is settled. If a number looks wrong, or a step does not fit your situation, say so and we will work through it together.";
1054
- function it({ advisor: e, title: r = "Talk it through", invitation: i = rt, profileId: a, profile: o, className: s, style: c }) {
1055
- if (o || I(a, "TalkItThrough"), !e?.name?.trim()) return D("TalkItThrough:no-advisor", "[TalkItThrough] no advisor name — rendering NOTHING rather than an empty box. This section is mandatory in an approved output because it is the door to a human; a door with nobody behind it passes a structural check and fails the reader."), null;
2426
+ var nn = "Nothing here is settled. If a number looks wrong, or a step does not fit your situation, say so and we will work through it together.";
2427
+ function rn({ advisor: e, title: r = "Talk it through", invitation: i = nn, profileId: a, profile: o, className: s, style: c }) {
2428
+ if (o || K(a, "TalkItThrough"), !e?.name?.trim()) return j("TalkItThrough:no-advisor", "[TalkItThrough] no advisor name — rendering NOTHING rather than an empty box. This section is mandatory in an approved output because it is the door to a human; a door with nobody behind it passes a structural check and fails the reader."), null;
1056
2429
  let l = [e.phone, e.email].filter((e) => typeof e == "string" && e.trim().length > 0);
1057
- return l.length === 0 && D("TalkItThrough:no-contact", `[TalkItThrough] "${e.name}" has no phone and no email. The section is the advisor's name, HOW TO REACH THEM, and an open invitation — a name alone is not a route. Rendering, because a named advisor is still better than a dropped section.`), /* @__PURE__ */ n("section", {
1058
- className: h("core-talk-it-through", s),
1059
- ...z(o?.id ?? a),
2430
+ return l.length === 0 && j("TalkItThrough:no-contact", `[TalkItThrough] "${e.name}" has no phone and no email. The section is the advisor's name, HOW TO REACH THEM, and an open invitation — a name alone is not a route. Rendering, because a named advisor is still better than a dropped section.`), /* @__PURE__ */ n("section", {
2431
+ className: _("core-talk-it-through", s),
2432
+ ...Y(o?.id ?? a),
1060
2433
  style: c,
1061
2434
  children: [
1062
2435
  /* @__PURE__ */ t("h3", {
@@ -1089,14 +2462,14 @@ function it({ advisor: e, title: r = "Talk it through", invitation: i = rt, prof
1089
2462
  }
1090
2463
  //#endregion
1091
2464
  //#region src/core/document/WriteInField/WriteInField.tsx
1092
- var at = 38;
1093
- function ot({ question: e, answer: r, lines: i = 1, profileId: a, profile: o, className: s, style: c }) {
1094
- o || I(a, "WriteInField");
2465
+ var an = 38;
2466
+ function on({ question: e, answer: r, lines: i = 1, profileId: a, profile: o, className: s, style: c }) {
2467
+ o || K(a, "WriteInField");
1095
2468
  let l = typeof r == "string" && r.trim().length > 0, u = Math.max(1, i);
1096
2469
  return /* @__PURE__ */ n("div", {
1097
- className: h("core-write-in-field", s),
2470
+ className: _("core-write-in-field", s),
1098
2471
  "data-answered": l ? "" : void 0,
1099
- ...z(o?.id ?? a),
2472
+ ...Y(o?.id ?? a),
1100
2473
  style: c,
1101
2474
  children: [e && /* @__PURE__ */ t("div", {
1102
2475
  className: "core-write-in-field__question",
@@ -1112,11 +2485,11 @@ function ot({ question: e, answer: r, lines: i = 1, profileId: a, profile: o, cl
1112
2485
  }
1113
2486
  //#endregion
1114
2487
  //#region src/core/document/Masthead/Masthead.tsx
1115
- function st({ mark: e, identity: r, codes: i, profileId: a, profile: o, className: s, style: c }) {
1116
- return o || I(a, "Masthead"), e === void 0 && r === void 0 && i === void 0 ? null : /* @__PURE__ */ n("header", {
1117
- className: h("core-masthead", s),
2488
+ function sn({ mark: e, identity: r, codes: i, profileId: a, profile: o, className: s, style: c }) {
2489
+ return o || K(a, "Masthead"), e === void 0 && r === void 0 && i === void 0 ? null : /* @__PURE__ */ n("header", {
2490
+ className: _("core-masthead", s),
1118
2491
  "data-page-region": "page-header",
1119
- ...z(o?.id ?? a),
2492
+ ...Y(o?.id ?? a),
1120
2493
  style: c,
1121
2494
  children: [
1122
2495
  e !== void 0 && /* @__PURE__ */ t("div", {
@@ -1139,13 +2512,13 @@ function st({ mark: e, identity: r, codes: i, profileId: a, profile: o, classNam
1139
2512
  }
1140
2513
  //#endregion
1141
2514
  //#region src/core/document/MetaRail/MetaRail.tsx
1142
- var ct = 4;
1143
- function lt({ fields: e, profileId: r, profile: i, className: a, style: o }) {
1144
- let s = (i ?? I(r, "MetaRail"))?.rail.placement ?? "strip";
1145
- return s === "none" || e.length === 0 ? null : (s !== "column" && e.length > ct && typeof console < "u" && console.warn(`[MetaRail] ${e.length} fields in a strip; the spec allows ${ct}. Rendering all of them — check the layout.`), /* @__PURE__ */ t("div", {
1146
- className: h("core-meta-rail", a),
2515
+ var cn = 4;
2516
+ function ln({ fields: e, profileId: r, profile: i, className: a, style: o }) {
2517
+ let s = (i ?? K(r, "MetaRail"))?.rail.placement ?? "strip";
2518
+ return s === "none" || e.length === 0 ? null : (s !== "column" && e.length > cn && typeof console < "u" && console.warn(`[MetaRail] ${e.length} fields in a strip; the spec allows ${cn}. Rendering all of them — check the layout.`), /* @__PURE__ */ t("div", {
2519
+ className: _("core-meta-rail", a),
1147
2520
  "data-placement": s,
1148
- ...z(i?.id ?? r),
2521
+ ...Y(i?.id ?? r),
1149
2522
  style: o,
1150
2523
  children: e.map((e) => /* @__PURE__ */ n("div", {
1151
2524
  className: "core-meta-rail__field",
@@ -1161,38 +2534,38 @@ function lt({ fields: e, profileId: r, profile: i, className: a, style: o }) {
1161
2534
  }
1162
2535
  //#endregion
1163
2536
  //#region src/core/document/RunningFooter/RunningFooter.tsx
1164
- var ut = {
2537
+ var un = {
1165
2538
  left: "bottom-left",
1166
2539
  centre: "bottom-center",
1167
2540
  right: "bottom-right"
1168
2541
  };
1169
- function dt({ left: e, centre: n, right: r, profileId: i, profile: a, className: o, style: s }) {
1170
- a || I(i, "RunningFooter");
2542
+ function dn({ left: e, centre: n, right: r, profileId: i, profile: a, className: o, style: s }) {
2543
+ a || K(i, "RunningFooter");
1171
2544
  let c = [
1172
2545
  ["left", e],
1173
2546
  ["centre", n],
1174
2547
  ["right", r]
1175
2548
  ].filter(([, e]) => e != null);
1176
2549
  return c.length === 0 ? null : /* @__PURE__ */ t("footer", {
1177
- className: h("core-running-footer", o),
2550
+ className: _("core-running-footer", o),
1178
2551
  "data-page-region": "page-footer",
1179
- ...z(a?.id ?? i),
2552
+ ...Y(a?.id ?? i),
1180
2553
  style: s,
1181
2554
  children: c.map(([e, n]) => /* @__PURE__ */ t("span", {
1182
2555
  className: "core-running-footer__slot",
1183
2556
  "data-region-slot": e,
1184
- "data-margin-box": ut[e],
2557
+ "data-margin-box": un[e],
1185
2558
  children: n
1186
2559
  }, e))
1187
2560
  });
1188
2561
  }
1189
2562
  //#endregion
1190
2563
  //#region src/core/document/DocumentShell/DocumentShell.tsx
1191
- function ft({ children: r, rail: i, profileId: a, profile: o, className: s, style: c }) {
1192
- let l = o ?? I(a, "DocumentShell"), u = l?.rail.placement === "column" && i !== void 0;
1193
- return /* @__PURE__ */ t(Ne, { children: /* @__PURE__ */ n("div", {
1194
- className: h("core-document-shell", s),
1195
- ...z(l?.id ?? a),
2564
+ function fn({ children: r, rail: i, profileId: a, profile: o, className: s, style: c }) {
2565
+ let l = o ?? K(a, "DocumentShell"), u = l?.rail.placement === "column" && i !== void 0;
2566
+ return /* @__PURE__ */ t(At, { children: /* @__PURE__ */ n("div", {
2567
+ className: _("core-document-shell", s),
2568
+ ...Y(l?.id ?? a),
1196
2569
  "data-has-rail": u ? "" : void 0,
1197
2570
  style: c,
1198
2571
  children: [/* @__PURE__ */ t("div", {
@@ -1209,30 +2582,30 @@ function ft({ children: r, rail: i, profileId: a, profile: o, className: s, styl
1209
2582
  }
1210
2583
  //#endregion
1211
2584
  //#region src/core/document/Contents/Contents.tsx
1212
- function pt(e, t) {
2585
+ function pn(e, t) {
1213
2586
  return !e || e.length === 0 ? null : t === 0 ? String(e[0]).padStart(2, "0") : e.join(".");
1214
2587
  }
1215
- function mt({ entries: e, depth: r, title: i, profileId: a, profile: o, className: s, style: c }) {
1216
- let l = o ?? I(a, "Contents"), u = l?.depth.max ?? Infinity, d = r === void 0 ? e : e.filter((e) => e.level < r);
1217
- if (d.length === 0) return null;
1218
- let f = l?.depth.numbering ?? "none", p = d.some((e) => e.page !== void 0);
2588
+ function mn({ entries: e, depth: r, title: i, profileId: a, profile: o, className: s, style: c }) {
2589
+ let l = o ?? K(a, "Contents"), u = l?.depth.max ?? Infinity, d = e ?? [], f = r === void 0 ? d : d.filter((e) => e.level < r);
2590
+ if (f.length === 0) return null;
2591
+ let p = l?.depth.numbering ?? "none", m = f.some((e) => e.page !== void 0);
1219
2592
  return /* @__PURE__ */ n("nav", {
1220
2593
  "aria-label": "Table of contents",
1221
- className: h("core-contents", s),
1222
- ...z(o?.id ?? a),
2594
+ className: _("core-contents", s),
2595
+ ...Y(o?.id ?? a),
1223
2596
  style: c,
1224
2597
  children: [i && /* @__PURE__ */ t("div", {
1225
2598
  className: "core-contents__title",
1226
2599
  children: i
1227
2600
  }), /* @__PURE__ */ t("ol", {
1228
2601
  className: "core-contents__list",
1229
- children: d.map((e) => {
1230
- let r = f === "none" ? null : pt(e.ordinal, e.level);
2602
+ children: f.map((e) => {
2603
+ let r = p === "none" ? null : pn(e.ordinal, e.level);
1231
2604
  return /* @__PURE__ */ n("li", {
1232
2605
  className: "core-contents__entry",
1233
2606
  "data-level": e.level,
1234
2607
  "data-overdeep": e.level >= u ? "" : void 0,
1235
- style: _({ "--core-contents-level": String(e.level) }),
2608
+ style: y({ "--core-contents-level": String(e.level) }),
1236
2609
  children: [
1237
2610
  r && /* @__PURE__ */ t("span", {
1238
2611
  className: "core-contents__ordinal",
@@ -1243,7 +2616,7 @@ function mt({ entries: e, depth: r, title: i, profileId: a, profile: o, classNam
1243
2616
  className: "core-contents__link",
1244
2617
  children: e.title
1245
2618
  }),
1246
- p && /* @__PURE__ */ t("span", {
2619
+ m && /* @__PURE__ */ t("span", {
1247
2620
  className: "core-contents__page",
1248
2621
  children: e.page ?? ""
1249
2622
  })
@@ -1255,7 +2628,7 @@ function mt({ entries: e, depth: r, title: i, profileId: a, profile: o, classNam
1255
2628
  }
1256
2629
  //#endregion
1257
2630
  //#region src/core/document/ExecutionBlock/ExecutionBlock.tsx
1258
- function ht({ s: e, dated: r }) {
2631
+ function hn({ s: e, dated: r }) {
1259
2632
  return /* @__PURE__ */ n("div", {
1260
2633
  className: "core-execution-block__signature",
1261
2634
  children: [/* @__PURE__ */ n("div", {
@@ -1292,12 +2665,12 @@ function ht({ s: e, dated: r }) {
1292
2665
  })]
1293
2666
  });
1294
2667
  }
1295
- function gt({ attestation: e, label: r, signatories: i, columns: a = 1, note: o, profileId: s, profile: c, className: l, style: u }) {
1296
- c || I(s, "ExecutionBlock");
2668
+ function gn({ attestation: e, label: r, signatories: i, columns: a = 1, note: o, profileId: s, profile: c, className: l, style: u }) {
2669
+ c || K(s, "ExecutionBlock");
1297
2670
  let d = Array.isArray(i) ? i : [];
1298
2671
  return /* @__PURE__ */ n("section", {
1299
- className: h("core-execution-block", l),
1300
- ...z(c?.id ?? s),
2672
+ className: _("core-execution-block", l),
2673
+ ...Y(c?.id ?? s),
1301
2674
  style: u,
1302
2675
  children: [
1303
2676
  r ? /* @__PURE__ */ t("div", {
@@ -1311,7 +2684,7 @@ function gt({ attestation: e, label: r, signatories: i, columns: a = 1, note: o,
1311
2684
  /* @__PURE__ */ t("div", {
1312
2685
  className: "core-execution-block__signatories",
1313
2686
  "data-columns": a,
1314
- children: d.map((e, n) => /* @__PURE__ */ t(ht, {
2687
+ children: d.map((e, n) => /* @__PURE__ */ t(hn, {
1315
2688
  s: e,
1316
2689
  dated: e.dated === !0
1317
2690
  }, n))
@@ -1325,7 +2698,7 @@ function gt({ attestation: e, label: r, signatories: i, columns: a = 1, note: o,
1325
2698
  }
1326
2699
  //#endregion
1327
2700
  //#region src/core/document/DocumentBlocks/DocumentBlocks.tsx
1328
- function _t({ kind: e }) {
2701
+ function _n({ kind: e }) {
1329
2702
  return /* @__PURE__ */ n("div", {
1330
2703
  className: "core-document-blocks__unrenderable",
1331
2704
  "data-unrenderable-block": e,
@@ -1338,10 +2711,10 @@ function _t({ kind: e }) {
1338
2711
  ]
1339
2712
  });
1340
2713
  }
1341
- function vt({ blocks: e, profileId: n, sectionNumbers: r, sectionAnchors: i, sectionTitles: a, sectionReferences: o, sectionOrdinal: s, className: c, style: l }) {
1342
- let u = I(n, "DocumentBlocks");
2714
+ function vn({ blocks: e, profileId: n, sectionNumbers: r, sectionAnchors: i, sectionTitles: a, sectionReferences: o, sectionOrdinal: s, className: c, style: l }) {
2715
+ let u = K(n, "DocumentBlocks");
1343
2716
  if (e.length === 0) return null;
1344
- let d = Be(s, e.flatMap((e) => e.kind === "clause" ? e.items : []), u?.depth.numbering), f = 0, p = (e, s) => be(e) ? ye(e).map((e, c) => e.kind === "text" ? e.text : /* @__PURE__ */ t(He, {
2717
+ let d = Rt(s, e.flatMap((e) => e.kind === "clause" ? e.items : []), u?.depth.numbering), f = 0, p = (e, s) => mt(e) ? pt(e).map((e, c) => e.kind === "text" ? e.text : /* @__PURE__ */ t(Bt, {
1345
2718
  target: e.key,
1346
2719
  form: e.form,
1347
2720
  sectionReferences: o,
@@ -1351,19 +2724,19 @@ function vt({ blocks: e, profileId: n, sectionNumbers: r, sectionAnchors: i, sec
1351
2724
  profileId: n
1352
2725
  }, `${s}-ref-${c}`)) : e, m = e.some((e) => e.kind === "execution");
1353
2726
  return /* @__PURE__ */ t("div", {
1354
- className: h("core-document-blocks", c),
2727
+ className: _("core-document-blocks", c),
1355
2728
  "data-pinned": m ? "execution" : void 0,
1356
- ...z(n),
2729
+ ...Y(n),
1357
2730
  style: l,
1358
2731
  children: e.map((e, r) => {
1359
2732
  let i = `${e.kind}-${r}`;
1360
2733
  switch (e.kind) {
1361
- case "prose": return /* @__PURE__ */ t(we, {
2734
+ case "prose": return /* @__PURE__ */ t(vt, {
1362
2735
  profileId: n,
1363
2736
  full: e.full,
1364
2737
  children: p(e.text, i)
1365
2738
  }, i);
1366
- case "clause": return /* @__PURE__ */ t(W, {
2739
+ case "clause": return /* @__PURE__ */ t(Ht, {
1367
2740
  profileId: n,
1368
2741
  items: e.items.map((e, t) => ({
1369
2742
  marker: d[f++],
@@ -1372,31 +2745,31 @@ function vt({ blocks: e, profileId: n, sectionNumbers: r, sectionAnchors: i, sec
1372
2745
  missing: e.missing
1373
2746
  }))
1374
2747
  }, i);
1375
- case "definitions": return /* @__PURE__ */ t(Ee, {
2748
+ case "definitions": return /* @__PURE__ */ t(bt, {
1376
2749
  profileId: n,
1377
2750
  pairs: e.pairs.map((e, t) => ({
1378
2751
  term: e.term,
1379
2752
  description: p(e.description, `${i}-${t}`)
1380
2753
  }))
1381
2754
  }, i);
1382
- case "table": return /* @__PURE__ */ t(Ue, {
2755
+ case "table": return /* @__PURE__ */ t(Vt, {
1383
2756
  profileId: n,
1384
2757
  caption: e.caption ? p(e.caption, `${i}-cap`) : void 0,
1385
2758
  columns: e.columns,
1386
2759
  rows: e.rows.map((e, t) => e.map((e, n) => p(e, `${i}-${t}-${n}`)))
1387
2760
  }, i);
1388
- case "notice": return /* @__PURE__ */ t(Ce, {
2761
+ case "notice": return /* @__PURE__ */ t(_t, {
1389
2762
  profileId: n,
1390
2763
  tone: e.tone,
1391
2764
  title: e.title,
1392
2765
  children: p(e.text, i)
1393
2766
  }, i);
1394
- case "figure": return /* @__PURE__ */ t(U, {
2767
+ case "figure": return /* @__PURE__ */ t(Mt, {
1395
2768
  profileId: n,
1396
2769
  caption: p(e.caption, i),
1397
2770
  children: e.placeholder ?? null
1398
2771
  }, i);
1399
- case "execution": return /* @__PURE__ */ t(gt, {
2772
+ case "execution": return /* @__PURE__ */ t(gn, {
1400
2773
  profileId: n,
1401
2774
  label: e.label,
1402
2775
  attestation: e.attestation,
@@ -1404,41 +2777,41 @@ function vt({ blocks: e, profileId: n, sectionNumbers: r, sectionAnchors: i, sec
1404
2777
  columns: e.columns,
1405
2778
  note: e.note
1406
2779
  }, i);
1407
- default: return /* @__PURE__ */ t(_t, { kind: String(e.kind) }, i);
2780
+ default: return /* @__PURE__ */ t(_n, { kind: String(e.kind) }, i);
1408
2781
  }
1409
2782
  })
1410
2783
  });
1411
2784
  }
1412
2785
  //#endregion
1413
2786
  //#region src/core/document/DocumentSection/DocumentSection.tsx
1414
- var yt = [
2787
+ var yn = [
1415
2788
  "h2",
1416
2789
  "h3",
1417
2790
  "h4",
1418
2791
  "h5",
1419
2792
  "h6"
1420
2793
  ];
1421
- function bt({ sectionId: e, title: r, level: i = 0, ordinal: a, sectionNumbers: o, sectionAnchors: s, sectionTitles: c, sectionReferences: l, sectionLevels: u, continued: d = !1, continuedCount: f, children: p, blocks: m, profileId: g, profile: v, className: y, style: b }) {
1422
- let x = v ?? I(g, "DocumentSection"), S = o?.[e], C = u?.[e], w = S ?? a, T = C === void 0 ? i : Math.max(0, C - 1), ee = T >= (x?.depth.max ?? Infinity), E = Math.min(T, (x?.depth.indent.length ?? 1) - 1) + 1, D = x?.depth.numbering === "ladder" && w !== void 0 && w.length > 0, O = D ? Re(w) : null, k = yt[Math.min(T, yt.length - 1)], A = Ve(s, e), j = `${A}-doc-heading`;
2794
+ function bn({ sectionId: e, title: r, level: i = 0, ordinal: a, sectionNumbers: o, sectionAnchors: s, sectionTitles: c, sectionReferences: l, sectionLevels: u, continued: d = !1, continuedCount: f, children: p, blocks: m, profileId: h, profile: g, className: v, style: b }) {
2795
+ let x = g ?? K(h, "DocumentSection"), S = o?.[e], C = u?.[e], w = S ?? a, T = C === void 0 ? i : Math.max(0, C - 1), E = T >= (x?.depth.max ?? Infinity), D = Math.min(T, (x?.depth.indent.length ?? 1) - 1) + 1, O = x?.depth.numbering === "ladder" && w !== void 0 && w.length > 0, k = O ? It(w) : null, A = yn[Math.min(T, yn.length - 1)], j = zt(s, e), M = `${j}-doc-heading`;
1423
2796
  return /* @__PURE__ */ n("section", {
1424
- id: A,
1425
- className: h("core-document-section", y),
2797
+ id: j,
2798
+ className: _("core-document-section", v),
1426
2799
  "data-level": T,
1427
2800
  "data-ordinal-source": w ? S ? "derived" : "baked" : void 0,
1428
- "data-overdeep": ee ? "" : void 0,
1429
- "aria-labelledby": j,
1430
- ...z(v?.id ?? g),
1431
- style: _({ "--core-document-section-indent": `var(--doc-indent-${E}, 0)` }, b),
2801
+ "data-overdeep": E ? "" : void 0,
2802
+ "aria-labelledby": M,
2803
+ ...Y(g?.id ?? h),
2804
+ style: y({ "--core-document-section-indent": `var(--doc-indent-${D}, 0)` }, b),
1432
2805
  children: [
1433
- O && /* @__PURE__ */ t("div", {
2806
+ k && /* @__PURE__ */ t("div", {
1434
2807
  className: "core-document-section__article",
1435
- children: O
2808
+ children: k
1436
2809
  }),
1437
- /* @__PURE__ */ n(k, {
1438
- id: j,
2810
+ /* @__PURE__ */ n(A, {
2811
+ id: M,
1439
2812
  className: "core-document-section__heading",
1440
2813
  children: [
1441
- D && !O && /* @__PURE__ */ t("span", {
2814
+ O && !k && /* @__PURE__ */ t("span", {
1442
2815
  className: "core-document-section__ordinal",
1443
2816
  children: w.join(".")
1444
2817
  }),
@@ -1455,20 +2828,20 @@ function bt({ sectionId: e, title: r, level: i = 0, ordinal: a, sectionNumbers:
1455
2828
  }),
1456
2829
  /* @__PURE__ */ t("div", {
1457
2830
  className: "core-document-section__body",
1458
- children: p ?? (m ? /* @__PURE__ */ t(vt, {
2831
+ children: p ?? (m ? /* @__PURE__ */ t(vn, {
1459
2832
  blocks: m,
1460
- profileId: g,
2833
+ profileId: h,
1461
2834
  sectionNumbers: o,
1462
2835
  sectionAnchors: s,
1463
2836
  sectionTitles: c,
1464
2837
  sectionReferences: l,
1465
- sectionOrdinal: D ? w : void 0
2838
+ sectionOrdinal: O ? w : void 0
1466
2839
  }) : null)
1467
2840
  })
1468
2841
  ]
1469
2842
  });
1470
2843
  }
1471
- var xt = {
2844
+ var xn = {
1472
2845
  prose: {
1473
2846
  type: "object",
1474
2847
  required: ["kind", "text"],
@@ -1667,65 +3040,25 @@ var xt = {
1667
3040
  note: { type: "string" }
1668
3041
  }
1669
3042
  }
1670
- }, K = [
1671
- "neutral",
1672
- "strong",
1673
- "accent",
1674
- "info",
1675
- "success",
1676
- "warning",
1677
- "danger"
1678
- ];
1679
- function q(e, t = "neutral") {
1680
- return typeof e == "string" && K.includes(e) ? e : t;
1681
- }
1682
- //#endregion
1683
- //#region src/core/display/Eyebrow/Eyebrow.tsx
1684
- var J = [
1685
- "subtle",
1686
- "on-dark",
1687
- "inherit"
1688
- ];
1689
- function Y(e, t) {
1690
- return typeof e == "string" && (J.includes(e) || K.includes(e)) ? e : t;
1691
- }
1692
- function St(e) {
1693
- return {
1694
- "data-tone": e,
1695
- toned: !J.includes(e)
1696
- };
1697
- }
1698
- function X({ children: e, as: n = "span", tone: r, tabular: i = !1, className: a, style: o }) {
1699
- let { toned: s, ...c } = St(Y(r, "subtle"));
1700
- return /* @__PURE__ */ t(n, {
1701
- className: h("core-eyebrow", s && "core-toned", a),
1702
- ...c,
1703
- "data-tabular": i ? "true" : void 0,
1704
- style: o,
1705
- children: e
1706
- });
1707
- }
1708
- //#endregion
1709
- //#region src/core/display/Stat/Stat.tsx
1710
- var Ct = [
3043
+ }, Sn = [
1711
3044
  "md",
1712
3045
  "lg",
1713
3046
  "xl"
1714
- ], wt = 5;
1715
- function Tt(e) {
1716
- let t = Ct.indexOf(e);
1717
- return t > 0 ? Ct[t - 1] : e;
3047
+ ], Cn = 5;
3048
+ function wn(e) {
3049
+ let t = Sn.indexOf(e);
3050
+ return t > 0 ? Sn[t - 1] : e;
1718
3051
  }
1719
- var Et = (e) => typeof e == "object" && !!e && "format" in e && "value" in e;
1720
- function Dt(e) {
3052
+ var Tn = (e) => typeof e == "object" && !!e && "format" in e && "value" in e;
3053
+ function En(e) {
1721
3054
  let t = Number(e);
1722
3055
  return Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0;
1723
3056
  }
1724
- function Ot({ value: e, label: r, size: i = "lg", tone: a, progress: o, progressLabel: s, autoStepDown: c = !0, className: l, style: u }) {
1725
- let d = Et(e) ? G(e) : e, f = typeof d == "string" || typeof d == "number" ? String(d).length : 0, p = c && f > wt ? Tt(i) : i, m = Y(a, "strong"), { toned: g, ...v } = St(m), y = o == null ? null : Dt(o);
3057
+ function Dn({ value: e, label: r, size: i = "lg", tone: a, progress: o, progressLabel: s, autoStepDown: c = !0, className: l, style: u }) {
3058
+ let d = Tn(e) ? X(e) : e, f = typeof d == "string" || typeof d == "number" ? String(d).length : 0, p = c && f > Cn ? wn(i) : i, m = I(a, "strong"), { toned: h, ...g } = L(m), v = o == null ? null : En(o);
1726
3059
  return /* @__PURE__ */ n("div", {
1727
- className: h("core-stat", g && "core-toned", l),
1728
- ...v,
3060
+ className: _("core-stat", h && "core-toned", l),
3061
+ ...g,
1729
3062
  "data-size": p,
1730
3063
  style: u,
1731
3064
  children: [
@@ -1733,28 +3066,28 @@ function Ot({ value: e, label: r, size: i = "lg", tone: a, progress: o, progress
1733
3066
  className: "core-stat__value",
1734
3067
  children: d
1735
3068
  }),
1736
- r != null && /* @__PURE__ */ t(X, {
3069
+ r != null && /* @__PURE__ */ t(R, {
1737
3070
  className: "core-stat__label",
1738
3071
  tone: m === "on-dark" || m === "inherit" ? m : "subtle",
1739
3072
  children: r
1740
3073
  }),
1741
- y !== null && /* @__PURE__ */ t("div", {
3074
+ v !== null && /* @__PURE__ */ t("div", {
1742
3075
  className: "core-stat__progress",
1743
3076
  role: "progressbar",
1744
3077
  "aria-label": s ?? (typeof r == "string" ? r : "Progress"),
1745
3078
  "aria-valuemin": 0,
1746
3079
  "aria-valuemax": 100,
1747
- "aria-valuenow": y,
1748
- style: _({ "--core-stat-progress": `${y}%` }),
3080
+ "aria-valuenow": v,
3081
+ style: y({ "--core-stat-progress": `${v}%` }),
1749
3082
  children: /* @__PURE__ */ t("div", { className: "core-stat__progress-fill" })
1750
3083
  })
1751
3084
  ]
1752
3085
  });
1753
3086
  }
1754
- function kt({ children: e, minColumnWidth: n = 200, maxColumns: r = 4, gap: i = 32, className: a, style: o }) {
3087
+ function On({ children: e, minColumnWidth: n = 200, maxColumns: r = 4, gap: i = 32, className: a, style: o }) {
1755
3088
  return /* @__PURE__ */ t("div", {
1756
- className: h("core-stat-group", a),
1757
- style: _({
3089
+ className: _("core-stat-group", a),
3090
+ style: y({
1758
3091
  "--core-stat-group-min": `${n}px`,
1759
3092
  "--core-stat-group-max": String(Math.max(1, r)),
1760
3093
  "--core-stat-group-gap": `${i}px`
@@ -1764,48 +3097,48 @@ function kt({ children: e, minColumnWidth: n = 200, maxColumns: r = 4, gap: i =
1764
3097
  }
1765
3098
  //#endregion
1766
3099
  //#region src/core/display/_shared/Reveal.tsx
1767
- var At = {
3100
+ var kn = {
1768
3101
  up: [0, 28],
1769
3102
  left: [-40, 0],
1770
3103
  right: [40, 0],
1771
3104
  none: [0, 0]
1772
3105
  };
1773
- function Z({ direction: e = "up", delay: n = 0, duration: r = .5, threshold: i = .15, once: a = !0, className: o, style: c, children: l }) {
1774
- let u = d(null), [p, m] = f(!1);
1775
- s(() => {
3106
+ function An({ direction: e = "up", delay: n = 0, duration: r = .5, threshold: i = .15, once: a = !0, className: o, style: s, children: l }) {
3107
+ let u = p(null), [d, f] = m(!1);
3108
+ c(() => {
1776
3109
  let e = u.current;
1777
3110
  if (!e) return;
1778
3111
  if (typeof IntersectionObserver > "u") {
1779
- m(!0);
3112
+ f(!0);
1780
3113
  return;
1781
3114
  }
1782
3115
  let t = new IntersectionObserver((e) => {
1783
3116
  let n = e[e.length - 1];
1784
- n && (n.isIntersecting ? (m(!0), a && t.disconnect()) : a || m(!1));
3117
+ n && (n.isIntersecting ? (f(!0), a && t.disconnect()) : a || f(!1));
1785
3118
  }, { threshold: Math.min(1, Math.max(0, i)) });
1786
3119
  return t.observe(e), () => t.disconnect();
1787
3120
  }, [a, i]);
1788
- let [g, v] = At[e];
3121
+ let [h, g] = kn[e];
1789
3122
  return /* @__PURE__ */ t("div", {
1790
3123
  ref: u,
1791
- className: h("core-reveal", o),
1792
- "data-revealed": p ? "true" : "false",
1793
- style: _({
1794
- "--core-reveal-x": `${g}px`,
1795
- "--core-reveal-y": `${v}px`,
3124
+ className: _("core-reveal", o),
3125
+ "data-revealed": d ? "true" : "false",
3126
+ style: y({
3127
+ "--core-reveal-x": `${h}px`,
3128
+ "--core-reveal-y": `${g}px`,
1796
3129
  "--core-reveal-duration": `${r}s`,
1797
3130
  "--core-reveal-delay": `${n}s`
1798
- }, c),
3131
+ }, s),
1799
3132
  children: l
1800
3133
  });
1801
3134
  }
1802
3135
  //#endregion
1803
3136
  //#region src/core/display/SectionHeader/SectionHeader.tsx
1804
- function jt({ eyebrow: e, title: r, description: i, trailing: a, revealDelay: o = 0, className: s, style: c }) {
1805
- return /* @__PURE__ */ t(Z, {
3137
+ function jn({ eyebrow: e, title: r, description: i, trailing: a, revealDelay: o = 0, className: s, style: c }) {
3138
+ return /* @__PURE__ */ t(An, {
1806
3139
  direction: "up",
1807
3140
  delay: o,
1808
- className: h("core-section-header", s),
3141
+ className: _("core-section-header", s),
1809
3142
  style: c,
1810
3143
  children: /* @__PURE__ */ n("div", {
1811
3144
  className: "core-section-header__inner",
@@ -1813,7 +3146,7 @@ function jt({ eyebrow: e, title: r, description: i, trailing: a, revealDelay: o
1813
3146
  children: [/* @__PURE__ */ n("div", {
1814
3147
  className: "core-section-header__text",
1815
3148
  children: [
1816
- e ? /* @__PURE__ */ t(X, {
3149
+ e ? /* @__PURE__ */ t(R, {
1817
3150
  className: "core-section-header__eyebrow",
1818
3151
  children: e
1819
3152
  }) : null,
@@ -1835,10 +3168,10 @@ function jt({ eyebrow: e, title: r, description: i, trailing: a, revealDelay: o
1835
3168
  }
1836
3169
  //#endregion
1837
3170
  //#region src/core/display/HighlightBox/HighlightBox.tsx
1838
- function Mt({ tone: e, label: r, headline: i, children: a, trailing: o, className: s, style: c }) {
1839
- let l = q(e, "accent"), u = o != null && o !== "";
3171
+ function Mn({ tone: e, label: r, headline: i, children: a, trailing: o, className: s, style: c }) {
3172
+ let l = P(e, "accent"), u = o != null && o !== "";
1840
3173
  return /* @__PURE__ */ n("div", {
1841
- className: h("core-highlight-box", "core-toned", s),
3174
+ className: _("core-highlight-box", "core-toned", s),
1842
3175
  "data-tone": l,
1843
3176
  style: c,
1844
3177
  children: [/* @__PURE__ */ n("div", {
@@ -1865,9 +3198,9 @@ function Mt({ tone: e, label: r, headline: i, children: a, trailing: o, classNam
1865
3198
  }
1866
3199
  //#endregion
1867
3200
  //#region src/core/display/DisclaimerBlock/DisclaimerBlock.tsx
1868
- function Nt({ label: r, children: i, className: a, style: o }) {
3201
+ function Nn({ label: r, children: i, className: a, style: o }) {
1869
3202
  return /* @__PURE__ */ n("div", {
1870
- className: h("core-disclaimer-block", a),
3203
+ className: _("core-disclaimer-block", a),
1871
3204
  style: o,
1872
3205
  children: [r ? /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("strong", {
1873
3206
  className: "core-disclaimer-block__label",
@@ -1877,16 +3210,16 @@ function Nt({ label: r, children: i, className: a, style: o }) {
1877
3210
  }
1878
3211
  //#endregion
1879
3212
  //#region src/core/display/StatStrip/StatStrip.tsx
1880
- function Pt(e) {
3213
+ function Pn(e) {
1881
3214
  let t = Number(e);
1882
3215
  return Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0;
1883
3216
  }
1884
- function Ft({ label: e, value: r, fillPercent: i, subtitle: a, tone: o, className: s, style: c }) {
1885
- let l = Pt(i);
3217
+ function Fn({ label: e, value: r, fillPercent: i, subtitle: a, tone: o, className: s, style: c }) {
3218
+ let l = Pn(i);
1886
3219
  return /* @__PURE__ */ n("div", {
1887
- className: h("core-stat-strip", "core-toned", s),
1888
- "data-tone": q(o, "info"),
1889
- style: _({ "--core-stat-strip-fill": `${l}%` }, c),
3220
+ className: _("core-stat-strip", "core-toned", s),
3221
+ "data-tone": P(o, "info"),
3222
+ style: y({ "--core-stat-strip-fill": `${l}%` }, c),
1890
3223
  children: [
1891
3224
  /* @__PURE__ */ n("div", {
1892
3225
  className: "core-stat-strip__row",
@@ -1895,7 +3228,7 @@ function Ft({ label: e, value: r, fillPercent: i, subtitle: a, tone: o, classNam
1895
3228
  children: e
1896
3229
  }), /* @__PURE__ */ t("span", {
1897
3230
  className: "core-stat-strip__value",
1898
- children: G(r)
3231
+ children: X(r)
1899
3232
  })]
1900
3233
  }),
1901
3234
  /* @__PURE__ */ t("div", {
@@ -1904,37 +3237,37 @@ function Ft({ label: e, value: r, fillPercent: i, subtitle: a, tone: o, classNam
1904
3237
  }),
1905
3238
  a ? /* @__PURE__ */ t("div", {
1906
3239
  className: "core-stat-strip__subtitle",
1907
- children: G(a)
3240
+ children: X(a)
1908
3241
  }) : null
1909
3242
  ]
1910
3243
  });
1911
3244
  }
1912
3245
  //#endregion
1913
3246
  //#region src/core/display/_shared/ValueBadge.tsx
1914
- function Q({ text: e, tone: n, className: r }) {
3247
+ function In({ text: e, tone: n, className: r }) {
1915
3248
  return /* @__PURE__ */ t("span", {
1916
- className: h("core-value-badge", "core-toned", r),
1917
- "data-tone": q(n),
1918
- children: G(e)
3249
+ className: _("core-value-badge", "core-toned", r),
3250
+ "data-tone": P(n),
3251
+ children: X(e)
1919
3252
  });
1920
3253
  }
1921
3254
  //#endregion
1922
3255
  //#region src/core/display/OptionCard/OptionCard.tsx
1923
- var It = 8, Lt = {
3256
+ var Ln = 8, Rn = {
1924
3257
  good: "success",
1925
3258
  warn: "warning",
1926
3259
  critical: "danger"
1927
3260
  };
1928
- function Rt(e, t, n) {
1929
- let r = { series: String(n % It + 1) }, i = e ?? t;
3261
+ function zn(e, t, n) {
3262
+ let r = { series: String(n % Ln + 1) }, i = e ?? t;
1930
3263
  if (typeof i != "string" || i === "") return r;
1931
3264
  if (i === "muted") return { series: "muted" };
1932
3265
  let a = /^series-([1-9]\d*)$/.exec(i);
1933
- if (a) return { series: String((Number(a[1]) - 1) % It + 1) };
1934
- let o = Lt[i];
1935
- return o ? { tone: o } : K.includes(i) ? { tone: i } : (D("OptionCard:colour", `[OptionCard] bar fill "${i}" is not a tone or a series slot; using the chart series by position. Name a tone (success, danger, …) or a slot (series-1…series-8).`), r);
3266
+ if (a) return { series: String((Number(a[1]) - 1) % Ln + 1) };
3267
+ let o = Rn[i];
3268
+ return o ? { tone: o } : M.includes(i) ? { tone: i } : (j("OptionCard:colour", `[OptionCard] bar fill "${i}" is not a tone or a series slot; using the chart series by position. Name a tone (success, danger, …) or a slot (series-1…series-8).`), r);
1936
3269
  }
1937
- function zt(e) {
3270
+ function Bn(e) {
1938
3271
  return typeof e == "number" && Number.isFinite(e) ? {
1939
3272
  text: String(e).padStart(2, "0"),
1940
3273
  kind: "numeral"
@@ -1946,10 +3279,10 @@ function zt(e) {
1946
3279
  kind: "label"
1947
3280
  };
1948
3281
  }
1949
- function Bt(e) {
1950
- let { number: r, title: i, description: a, badgeText: o, badgeTone: s, bars: c, tone: l, isSelected: u = !1, className: d, style: f } = e, p = Array.isArray(c) ? c : [], m = zt(r);
3282
+ function Vn(e) {
3283
+ let { number: r, title: i, description: a, badgeText: o, badgeTone: s, bars: c, tone: l, isSelected: u = !1, className: d, style: f } = e, p = Array.isArray(c) ? c : [], m = Bn(r);
1951
3284
  return /* @__PURE__ */ n("div", {
1952
- className: h("core-option-card", d),
3285
+ className: _("core-option-card", d),
1953
3286
  "data-selected": u ? "true" : void 0,
1954
3287
  "data-described": a ? "true" : void 0,
1955
3288
  style: f,
@@ -1960,9 +3293,9 @@ function Bt(e) {
1960
3293
  className: "core-option-card__number",
1961
3294
  "data-kind": m.kind,
1962
3295
  children: m.text
1963
- }) : /* @__PURE__ */ t("span", {}), o != null && o !== "" ? /* @__PURE__ */ t(Q, {
3296
+ }) : /* @__PURE__ */ t("span", {}), o != null && o !== "" ? /* @__PURE__ */ t(In, {
1964
3297
  text: o,
1965
- tone: q(s)
3298
+ tone: P(s)
1966
3299
  }) : null]
1967
3300
  }),
1968
3301
  i ? /* @__PURE__ */ t("div", {
@@ -1974,7 +3307,7 @@ function Bt(e) {
1974
3307
  children: a
1975
3308
  }) : null,
1976
3309
  p.map((e, r) => {
1977
- let i = Rt(e.tone, l, r), a = Math.min(100, Math.max(0, Number(e.fillPercent) || 0)), o = e.valueTone === void 0 || e.valueTone === "default" ? void 0 : q(e.valueTone);
3310
+ let i = zn(e.tone, l, r), a = Math.min(100, Math.max(0, Number(e.fillPercent) || 0)), o = e.valueTone === void 0 || e.valueTone === "default" ? void 0 : P(e.valueTone);
1978
3311
  return /* @__PURE__ */ n("div", {
1979
3312
  className: "core-option-card__bar",
1980
3313
  children: [/* @__PURE__ */ n("div", {
@@ -1983,17 +3316,17 @@ function Bt(e) {
1983
3316
  className: "core-option-card__bar-label",
1984
3317
  children: e.label
1985
3318
  }), /* @__PURE__ */ t("span", {
1986
- className: h("core-option-card__bar-value", o && "core-toned"),
3319
+ className: _("core-option-card__bar-value", o && "core-toned"),
1987
3320
  "data-tone": o,
1988
- children: G(e.value)
3321
+ children: X(e.value)
1989
3322
  })]
1990
3323
  }), /* @__PURE__ */ t("div", {
1991
3324
  className: "core-option-card__track",
1992
3325
  children: /* @__PURE__ */ t("div", {
1993
- className: h("core-option-card__fill", "tone" in i && "core-toned"),
3326
+ className: _("core-option-card__fill", "tone" in i && "core-toned"),
1994
3327
  "data-tone": "tone" in i ? i.tone : void 0,
1995
3328
  "data-series": "series" in i ? i.series : void 0,
1996
- style: _({ "--core-option-card-fill": `${a}%` })
3329
+ style: y({ "--core-option-card-fill": `${a}%` })
1997
3330
  })
1998
3331
  })]
1999
3332
  }, r);
@@ -2003,11 +3336,11 @@ function Bt(e) {
2003
3336
  }
2004
3337
  //#endregion
2005
3338
  //#region src/core/display/ProfileCard/ProfileCard.tsx
2006
- function Vt(e) {
3339
+ function Hn(e) {
2007
3340
  let { title: r, subtitle: i, rows: a, className: o, style: s } = e, c = e.tone ?? "info", l = c === "none", u = Array.isArray(a) ? a : [];
2008
3341
  return /* @__PURE__ */ n("div", {
2009
- className: h("core-profile-card", !l && "core-toned", o),
2010
- "data-tone": l ? void 0 : q(c, "info"),
3342
+ className: _("core-profile-card", !l && "core-toned", o),
3343
+ "data-tone": l ? void 0 : P(c, "info"),
2011
3344
  "data-marker": l ? "none" : void 0,
2012
3345
  style: s,
2013
3346
  children: [/* @__PURE__ */ n("div", {
@@ -2028,10 +3361,10 @@ function Vt(e) {
2028
3361
  className: "core-profile-card__end",
2029
3362
  children: [/* @__PURE__ */ t("span", {
2030
3363
  className: "core-profile-card__value",
2031
- children: G(e.value)
2032
- }), e.badge ? /* @__PURE__ */ t(Q, {
3364
+ children: X(e.value)
3365
+ }), e.badge ? /* @__PURE__ */ t(In, {
2033
3366
  text: e.badge.text,
2034
- tone: q(e.badge.tone)
3367
+ tone: P(e.badge.tone)
2035
3368
  }) : null]
2036
3369
  })]
2037
3370
  }, r))]
@@ -2039,39 +3372,39 @@ function Vt(e) {
2039
3372
  }
2040
3373
  //#endregion
2041
3374
  //#region src/core/display/KpiCardGrid/KpiCardGrid.tsx
2042
- function Ht(e) {
3375
+ function Un(e) {
2043
3376
  if (typeof e == "string") {
2044
3377
  let t = e.trim();
2045
3378
  return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
2046
3379
  }
2047
3380
  return e && typeof e == "object" && typeof e.value == "number" ? e.value > 0 ? "up" : e.value < 0 ? "down" : "flat" : "flat";
2048
3381
  }
2049
- var Ut = {
3382
+ var Wn = {
2050
3383
  up: "▲",
2051
3384
  down: "▼",
2052
3385
  flat: "—"
2053
- }, Wt = {
3386
+ }, Gn = {
2054
3387
  up: "success",
2055
3388
  down: "danger",
2056
3389
  flat: void 0
2057
- }, $ = (e) => e != null && e !== "";
2058
- function Gt(e) {
3390
+ }, Z = (e) => e != null && e !== "";
3391
+ function Kn(e) {
2059
3392
  let { columns: r = 4, gap: i = "tight", minColumnWidth: a, className: o, style: s } = e, c = Array.isArray(e.cards) ? e.cards : [], l = Math.max(1, Math.min(6, Math.round(Number(r)) || 4));
2060
3393
  return /* @__PURE__ */ t("div", {
2061
- className: h("core-kpi-card-grid", o),
3394
+ className: _("core-kpi-card-grid", o),
2062
3395
  "data-gap": i === "normal" ? "normal" : "tight",
2063
- style: _({
3396
+ style: y({
2064
3397
  "--core-kpi-card-grid-columns": String(l),
2065
3398
  "--core-kpi-card-grid-min": typeof a == "number" && a > 0 ? `${a}px` : void 0
2066
3399
  }, s),
2067
3400
  children: c.map((e, r) => {
2068
- let { subtitle: i, badge: a } = e, o = $(e.tone) ? q(e.tone) : void 0, s = $(e.delta) ? Ht(e.delta) : void 0, c = s ? Wt[s] : void 0;
2069
- return /* @__PURE__ */ t(Z, {
3401
+ let { subtitle: i, badge: a } = e, o = Z(e.tone) ? P(e.tone) : void 0, s = Z(e.delta) ? Un(e.delta) : void 0, c = s ? Gn[s] : void 0;
3402
+ return /* @__PURE__ */ t(An, {
2070
3403
  direction: "up",
2071
3404
  delay: r * .06,
2072
3405
  className: "core-kpi-card-grid__item",
2073
3406
  children: /* @__PURE__ */ n("div", {
2074
- className: h("core-kpi-card-grid__card", o && "core-toned"),
3407
+ className: _("core-kpi-card-grid__card", o && "core-toned"),
2075
3408
  "data-tone": o,
2076
3409
  children: [
2077
3410
  /* @__PURE__ */ n("div", {
@@ -2079,31 +3412,31 @@ function Gt(e) {
2079
3412
  children: [/* @__PURE__ */ t("div", {
2080
3413
  className: "core-kpi-card-grid__label",
2081
3414
  children: e.label
2082
- }), a && $(a.text) ? /* @__PURE__ */ t(Q, {
3415
+ }), a && Z(a.text) ? /* @__PURE__ */ t(In, {
2083
3416
  text: a.text,
2084
- tone: q(a.tone)
3417
+ tone: P(a.tone)
2085
3418
  }) : null]
2086
3419
  }),
2087
3420
  /* @__PURE__ */ t("div", {
2088
3421
  className: "core-kpi-card-grid__value",
2089
- children: G(e.value)
3422
+ children: X(e.value)
2090
3423
  }),
2091
3424
  s ? /* @__PURE__ */ n("div", {
2092
- className: h("core-kpi-card-grid__delta", c && "core-toned"),
3425
+ className: _("core-kpi-card-grid__delta", c && "core-toned"),
2093
3426
  "data-tone": c,
2094
3427
  "data-direction": s,
2095
3428
  children: [
2096
3429
  /* @__PURE__ */ t("span", {
2097
3430
  "aria-hidden": "true",
2098
- children: Ut[s]
3431
+ children: Wn[s]
2099
3432
  }),
2100
3433
  " ",
2101
- G(e.delta)
3434
+ X(e.delta)
2102
3435
  ]
2103
3436
  }) : null,
2104
- $(i) ? /* @__PURE__ */ t("div", {
3437
+ Z(i) ? /* @__PURE__ */ t("div", {
2105
3438
  className: "core-kpi-card-grid__subtitle",
2106
- children: G(i)
3439
+ children: X(i)
2107
3440
  }) : null
2108
3441
  ]
2109
3442
  })
@@ -2113,27 +3446,42 @@ function Gt(e) {
2113
3446
  }
2114
3447
  //#endregion
2115
3448
  //#region src/core/display/DataTable/DataTable.tsx
2116
- function Kt(e) {
2117
- if (typeof e == "string" && e !== "" && e !== "default") return q(e);
3449
+ function qn(e) {
3450
+ if (typeof e == "string" && e !== "" && e !== "default") return P(e);
2118
3451
  }
2119
- var qt = (e) => !!(e && typeof e == "object" && "value" in e && "format" in e), Jt = (e) => !!(e && typeof e == "object" && !Array.isArray(e) && !i(e) && "value" in e && !("format" in e));
2120
- function Yt(e) {
2121
- return Jt(e) ? e : { value: e };
3452
+ var Jn = (e) => !!(e && typeof e == "object" && "value" in e && "format" in e), Yn = (e) => !!(e && typeof e == "object" && !Array.isArray(e) && !a(e) && "value" in e && !("format" in e));
3453
+ function Xn(e) {
3454
+ return Yn(e) ? e : { value: e };
2122
3455
  }
2123
- function Xt(e) {
2124
- return typeof e == "string" || qt(e) ? G(e) : typeof e == "number" ? String(e) : i(e) ? e : null;
3456
+ var Zn = /^\d{4}-\d{2}-\d{2}$/, Qn = /^\d{4}-\d{2}-\d{2}(?:[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}(?::?\d{2})?)?)?$/;
3457
+ function $n(e, t) {
3458
+ if (!Qn.test(e)) return e;
3459
+ let n = Zn.test(e), r = new Date(n ? `${e}T00:00:00Z` : e.replace(" ", "T"));
3460
+ return Number.isNaN(r.getTime()) ? e : r.toLocaleString("en-CA", {
3461
+ year: "numeric",
3462
+ month: "short",
3463
+ day: "numeric",
3464
+ ...t === "datetime" && !n ? {
3465
+ hour: "numeric",
3466
+ minute: "2-digit"
3467
+ } : {},
3468
+ ...n ? { timeZone: "UTC" } : {}
3469
+ });
2125
3470
  }
2126
- function Zt({ title: e, subtitle: r, columns: i, rows: a, className: o, style: s }) {
2127
- let l = `${c()}-title`, u = Array.isArray(i) ? i : [], d = Array.isArray(a) ? a : [], f = (e) => u[e]?.align ?? (e === 0 ? "left" : "right");
2128
- return /* @__PURE__ */ t(Z, {
3471
+ function er(e, t) {
3472
+ return typeof e == "string" && t ? $n(e, t) : typeof e == "string" || Jn(e) ? X(e) : typeof e == "number" ? String(e) : a(e) ? e : null;
3473
+ }
3474
+ function tr({ title: e, subtitle: r, columns: i, rows: a, className: o, style: s }) {
3475
+ let c = `${l()}-title`, u = Array.isArray(i) ? i : [], d = Array.isArray(a) ? a : [], f = (e) => u[e]?.align ?? (e === 0 ? "left" : "right");
3476
+ return /* @__PURE__ */ t(An, {
2129
3477
  direction: "up",
2130
3478
  children: /* @__PURE__ */ n("div", {
2131
- className: h("core-data-table", o),
3479
+ className: _("core-data-table", o),
2132
3480
  style: s,
2133
3481
  children: [e || r ? /* @__PURE__ */ n("div", {
2134
3482
  className: "core-data-table__head",
2135
3483
  children: [e ? /* @__PURE__ */ t("div", {
2136
- id: l,
3484
+ id: c,
2137
3485
  className: "core-data-table__title",
2138
3486
  children: e
2139
3487
  }) : null, r ? /* @__PURE__ */ t("div", {
@@ -2144,7 +3492,7 @@ function Zt({ title: e, subtitle: r, columns: i, rows: a, className: o, style: s
2144
3492
  className: "core-data-table__scroll",
2145
3493
  role: "region",
2146
3494
  "aria-label": e ? void 0 : "Data table, scrollable",
2147
- "aria-labelledby": e ? l : void 0,
3495
+ "aria-labelledby": e ? c : void 0,
2148
3496
  tabIndex: 0,
2149
3497
  children: /* @__PURE__ */ n("table", {
2150
3498
  className: "core-data-table__table",
@@ -2152,7 +3500,7 @@ function Zt({ title: e, subtitle: r, columns: i, rows: a, className: o, style: s
2152
3500
  scope: "col",
2153
3501
  className: "core-data-table__col",
2154
3502
  "data-align": f(r),
2155
- style: _({ "--core-data-table-min": typeof e.minWidth == "number" && e.minWidth > 0 ? `${e.minWidth}px` : void 0 }),
3503
+ style: y({ "--core-data-table-min": typeof e.minWidth == "number" && e.minWidth > 0 ? `${e.minWidth}px` : void 0 }),
2156
3504
  children: [e.header, e.sublabel ? /* @__PURE__ */ t("span", {
2157
3505
  className: "core-data-table__sublabel",
2158
3506
  children: e.sublabel
@@ -2164,18 +3512,18 @@ function Zt({ title: e, subtitle: r, columns: i, rows: a, className: o, style: s
2164
3512
  "data-highlighted": r ? "true" : void 0,
2165
3513
  "data-total": i ? "true" : void 0,
2166
3514
  children: o.map((e, n) => {
2167
- let r = Yt(e), i = Kt(r.tone), a = {
2168
- className: h("core-data-table__cell", i && "core-toned"),
3515
+ let r = Xn(e), i = qn(r.tone), a = {
3516
+ className: _("core-data-table__cell", i && "core-toned"),
2169
3517
  "data-align": f(n),
2170
3518
  "data-tone": i
2171
3519
  };
2172
3520
  return n === 0 ? /* @__PURE__ */ t("th", {
2173
3521
  scope: "row",
2174
3522
  ...a,
2175
- children: Xt(r.value)
3523
+ children: er(r.value, u[n]?.format)
2176
3524
  }, n) : /* @__PURE__ */ t("td", {
2177
3525
  ...a,
2178
- children: Xt(r.value)
3526
+ children: er(r.value, u[n]?.format)
2179
3527
  }, n);
2180
3528
  })
2181
3529
  }, n);
@@ -2186,6 +3534,576 @@ function Zt({ title: e, subtitle: r, columns: i, rows: a, className: o, style: s
2186
3534
  });
2187
3535
  }
2188
3536
  //#endregion
2189
- export { We as ANSWER_COLUMN_PX, Ge as AnswerRows, Ce as Aside, me as BLOCK_KINDS, xt as BLOCK_SCHEMAS, v as Box, y as Center, Ye as ComparisonBars, b as Container, mt as Contents, F as DEFAULT_PROFILE_ID, Zt as DataTable, Ee as Definition, Nt as DisclaimerBlock, x as Divider, vt as DocumentBlocks, Ie as DocumentLabel, bt as DocumentSection, ft as DocumentShell, Ue as DocumentTable, gt as ExecutionBlock, X as Eyebrow, U as Figure, Pe as Footnote, S as Hide, Mt as HighlightBox, C as Inline, Gt as KpiCardGrid, st as Masthead, Ae as Math, lt as MetaRail, Qe as NextSteps, et as Notes, Bt as OptionCard, O as PAGINATOR_BINDINGS, Fe as PageBreak, Vt as ProfileCard, we as Prose, Te as Quote, He as Reference, W as RowList, dt as RunningFooter, jt as SectionHeader, w as Show, nt as SkippedSection, T as Spacer, ee as Stack, Ot as Stat, kt as StatGroup, Ft as StatStrip, K as TONES, it as TalkItThrough, at as WRITE_HEIGHT_PX, $e as WRITE_LINE_HEIGHT_PX, ot as WriteInField, h as cx, ie as documentProfiles, qe as formatValue, Y as inkToneOf, g as length, pe as profileCss, N as profileIds, de as profileTokens, ne as registerProfile, G as renderFormatted, P as resolveProfile, re as resolvedProfiles, q as toneOf, _ as vars };
3537
+ //#region src/core/events/_shared/event.ts
3538
+ function nr(e, t, n) {
3539
+ return e.cardComponent && typeof t == "function" ? t(e.cardComponent, {
3540
+ ...n,
3541
+ event: e
3542
+ }) ?? null : null;
3543
+ }
3544
+ var rr = [
3545
+ "accepted",
3546
+ "tentative",
3547
+ "declined"
3548
+ ], ir = (e, t) => new Intl.DateTimeFormat(e, {
3549
+ weekday: "short",
3550
+ month: "short",
3551
+ day: "numeric",
3552
+ timeZone: t
3553
+ }), ar = (e, t) => new Intl.DateTimeFormat(e, {
3554
+ hour: "numeric",
3555
+ minute: "2-digit",
3556
+ timeZone: t
3557
+ });
3558
+ function or(e, t, n) {
3559
+ if (e.startOn) {
3560
+ let n = /* @__PURE__ */ new Date(`${e.startOn}T00:00:00Z`), r = ir(t, "UTC").format(n);
3561
+ if (!e.endOn) return `${r} (all day)`;
3562
+ let i = /* @__PURE__ */ new Date((/* @__PURE__ */ new Date(`${e.endOn}T00:00:00Z`)).getTime() - 864e5);
3563
+ return i.getTime() <= n.getTime() ? `${r} (all day)` : `${r} – ${ir(t, "UTC").format(i)}`;
3564
+ }
3565
+ if (!e.startsAt) return "";
3566
+ let r = new Date(e.startsAt);
3567
+ if (Number.isNaN(r.getTime())) return "";
3568
+ let i = ir(t, n).format(r), a = ar(t, n).format(r);
3569
+ if (!e.endsAt) return `${i} · ${a}`;
3570
+ let o = new Date(e.endsAt);
3571
+ return Number.isNaN(o.getTime()) || o.getTime() === r.getTime() ? `${i} · ${a}` : `${i} · ${a} – ${ar(t, n).format(o)}`;
3572
+ }
3573
+ var sr = () => Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
3574
+ function cr(e) {
3575
+ if (!e) return;
3576
+ let t = new Date(e);
3577
+ return Number.isNaN(t.getTime()) ? void 0 : t.toISOString();
3578
+ }
3579
+ function lr() {
3580
+ let e = /* @__PURE__ */ new Date();
3581
+ return e.setMinutes(e.getMinutes() - e.getTimezoneOffset()), e.toISOString().slice(0, 16);
3582
+ }
3583
+ function ur(e) {
3584
+ return e.success ? "" : e.code === "DENIED" ? "You can't do that here." : e.code === "CONFLICT" ? "Someone changed this first. Reload and try again." : e.code === "INVALID" ? e.errors || "Some details are missing or not valid." : e.errors || "Something went wrong. Try again.";
3585
+ }
3586
+ function dr(e, t) {
3587
+ let n = typeof e == "string" ? new Date(e) : e;
3588
+ return new Intl.DateTimeFormat("en-CA", {
3589
+ timeZone: t,
3590
+ year: "numeric",
3591
+ month: "2-digit",
3592
+ day: "2-digit"
3593
+ }).format(n);
3594
+ }
3595
+ function Q(e, t) {
3596
+ let n = /* @__PURE__ */ new Date(`${e}T00:00:00Z`);
3597
+ return n.setUTCDate(n.getUTCDate() + t), n.toISOString().slice(0, 10);
3598
+ }
3599
+ function fr(e) {
3600
+ return Q(e, -(((/* @__PURE__ */ new Date(`${e}T00:00:00Z`)).getUTCDay() + 6) % 7));
3601
+ }
3602
+ function pr(e, t) {
3603
+ if (e.startOn) {
3604
+ let t = e.endOn && e.endOn > e.startOn ? e.endOn : Q(e.startOn, 1), n = [];
3605
+ for (let r = e.startOn; r < t && n.length < 62; r = Q(r, 1)) n.push(r);
3606
+ return n;
3607
+ }
3608
+ return e.startsAt ? [dr(e.startsAt, t)] : [];
3609
+ }
3610
+ var $ = (e, t) => e && t ? e.split("{id}").join(encodeURIComponent(t)) : void 0;
3611
+ //#endregion
3612
+ //#region src/core/events/EventCard/EventCard.tsx
3613
+ function mr(r) {
3614
+ let { event: i, href: a, locale: o, timeZone: s, className: c, style: l } = r, u = i && typeof i == "object" ? i : { name: "" }, d = or(u, o, s), f = u.status && u.status !== "confirmed" ? u.status : void 0, p = /* @__PURE__ */ n(e, { children: [
3615
+ /* @__PURE__ */ n("div", {
3616
+ className: "core-event-card__top",
3617
+ children: [u.typeName ? /* @__PURE__ */ t("span", {
3618
+ className: "core-event-card__type",
3619
+ children: u.typeName
3620
+ }) : null, f ? /* @__PURE__ */ t("span", {
3621
+ className: "core-event-card__status",
3622
+ "data-status": f,
3623
+ children: f
3624
+ }) : null]
3625
+ }),
3626
+ /* @__PURE__ */ t("div", {
3627
+ className: "core-event-card__name",
3628
+ children: u.name
3629
+ }),
3630
+ d ? /* @__PURE__ */ t("div", {
3631
+ className: "core-event-card__when",
3632
+ children: d
3633
+ }) : null,
3634
+ u.location ? /* @__PURE__ */ t("div", {
3635
+ className: "core-event-card__where",
3636
+ children: u.location
3637
+ }) : null
3638
+ ] });
3639
+ return /* @__PURE__ */ t("div", {
3640
+ className: _("core-event-card", c),
3641
+ "data-kind": u.kind,
3642
+ "data-status": u.status,
3643
+ style: l,
3644
+ children: a ? /* @__PURE__ */ t("a", {
3645
+ className: "core-event-card__link",
3646
+ href: a,
3647
+ children: p
3648
+ }) : p
3649
+ });
3650
+ }
3651
+ //#endregion
3652
+ //#region src/core/events/EventRespond/EventRespond.tsx
3653
+ var hr = {
3654
+ accepted: "Accept",
3655
+ tentative: "Maybe",
3656
+ declined: "Decline"
3657
+ };
3658
+ function gr(e) {
3659
+ let { actions: r, className: i, style: a } = e, [o, s] = m(e.response), [c, l] = m(!1), [u, d] = m(""), f = r?.respond, p = async (e) => {
3660
+ if (!f || c) return;
3661
+ l(!0), d("");
3662
+ let t = await f({ response: e });
3663
+ l(!1), t.success ? s(e) : d(ur(t));
3664
+ };
3665
+ return /* @__PURE__ */ n("div", {
3666
+ className: _("core-event-respond", i),
3667
+ style: a,
3668
+ children: [/* @__PURE__ */ t("div", {
3669
+ className: "core-event-respond__choices",
3670
+ role: "group",
3671
+ "aria-label": "Your response",
3672
+ children: rr.map((e) => /* @__PURE__ */ t("button", {
3673
+ type: "button",
3674
+ className: "core-event-respond__choice",
3675
+ "aria-pressed": o === e,
3676
+ disabled: !f || c,
3677
+ onClick: () => void p(e),
3678
+ children: hr[e]
3679
+ }, e))
3680
+ }), u ? /* @__PURE__ */ t("p", {
3681
+ className: "core-event-respond__message",
3682
+ role: "alert",
3683
+ children: u
3684
+ }) : null]
3685
+ });
3686
+ }
3687
+ //#endregion
3688
+ //#region src/core/events/EventDetail/EventDetail.tsx
3689
+ function _r(e) {
3690
+ let { event: r, actions: i, viewerResponse: a, locale: o, timeZone: s, className: c, style: l } = e, u = r && typeof r == "object" ? r : { name: "" }, d = Array.isArray(e.notes) ? e.notes : [], f = Array.isArray(e.participants) ? e.participants : [], p = or(u, o, s);
3691
+ return /* @__PURE__ */ n("article", {
3692
+ className: _("core-event-detail", c),
3693
+ "data-status": u.status,
3694
+ style: l,
3695
+ children: [
3696
+ /* @__PURE__ */ n("header", {
3697
+ className: "core-event-detail__head",
3698
+ children: [
3699
+ u.typeName ? /* @__PURE__ */ t("div", {
3700
+ className: "core-event-detail__type",
3701
+ children: u.typeName
3702
+ }) : null,
3703
+ /* @__PURE__ */ t("h2", {
3704
+ className: "core-event-detail__name",
3705
+ children: u.name
3706
+ }),
3707
+ p ? /* @__PURE__ */ t("div", {
3708
+ className: "core-event-detail__meta",
3709
+ children: p
3710
+ }) : null,
3711
+ u.location ? /* @__PURE__ */ t("div", {
3712
+ className: "core-event-detail__meta",
3713
+ children: u.location
3714
+ }) : null,
3715
+ u.status && u.status !== "confirmed" ? /* @__PURE__ */ t("div", {
3716
+ className: "core-event-detail__status",
3717
+ children: u.status
3718
+ }) : null
3719
+ ]
3720
+ }),
3721
+ a === void 0 ? null : /* @__PURE__ */ t(gr, {
3722
+ response: a,
3723
+ actions: i,
3724
+ className: "core-event-detail__respond"
3725
+ }),
3726
+ f.length ? /* @__PURE__ */ n("section", {
3727
+ className: "core-event-detail__section",
3728
+ "aria-label": "Participants",
3729
+ children: [/* @__PURE__ */ t("h3", {
3730
+ className: "core-event-detail__heading",
3731
+ children: "Participants"
3732
+ }), /* @__PURE__ */ t("ul", {
3733
+ className: "core-event-detail__list",
3734
+ children: f.map((e, r) => /* @__PURE__ */ n("li", {
3735
+ className: "core-event-detail__person",
3736
+ children: [/* @__PURE__ */ t("span", { children: e.name }), /* @__PURE__ */ t("span", {
3737
+ className: "core-event-detail__muted",
3738
+ children: [e.role, e.response && e.response !== "needs_action" ? e.response : void 0].filter(Boolean).join(" · ")
3739
+ })]
3740
+ }, r))
3741
+ })]
3742
+ }) : null,
3743
+ d.length ? /* @__PURE__ */ n("section", {
3744
+ className: "core-event-detail__section",
3745
+ "aria-label": "Notes",
3746
+ children: [/* @__PURE__ */ t("h3", {
3747
+ className: "core-event-detail__heading",
3748
+ children: "Notes"
3749
+ }), d.map((e, r) => /* @__PURE__ */ n("div", {
3750
+ className: "core-event-detail__note",
3751
+ "data-audience": e.audience,
3752
+ children: [
3753
+ e.audience === "staff" ? /* @__PURE__ */ t("div", {
3754
+ className: "core-event-detail__badge",
3755
+ children: "Staff only"
3756
+ }) : null,
3757
+ /* @__PURE__ */ t("p", {
3758
+ className: "core-event-detail__body",
3759
+ children: e.body
3760
+ }),
3761
+ e.author || e.createdAt ? /* @__PURE__ */ t("div", {
3762
+ className: "core-event-detail__muted",
3763
+ children: [e.author, e.createdAt ? new Date(e.createdAt).toLocaleString(o, { timeZone: s }) : void 0].filter(Boolean).join(" · ")
3764
+ }) : null
3765
+ ]
3766
+ }, r))]
3767
+ }) : null
3768
+ ]
3769
+ });
3770
+ }
3771
+ //#endregion
3772
+ //#region src/core/events/EventLogForm/EventLogForm.tsx
3773
+ var vr = (e) => {
3774
+ let t = e?.dataSchema?.properties ?? {}, n = new Set(e?.dataSchema?.required ?? []);
3775
+ return Object.entries(t).map(([e, t]) => [
3776
+ e,
3777
+ t,
3778
+ n.has(e)
3779
+ ]);
3780
+ };
3781
+ function yr(e) {
3782
+ let { orgId: r, projectId: i, actions: a, onDone: o, canWriteStaffNotes: s, className: c, style: u } = e, f = Array.isArray(e.types) ? e.types : [], p = l(), [h, g] = m(e.defaultTypeId ?? f[0]?.id ?? ""), v = f.find((e) => e.id === h), y = v?.kind === "scheduled", [b, x] = m(""), [S, C] = m(lr()), [w, T] = m(""), [E, D] = m(""), [O, k] = m({}), [A, j] = m(""), [M, N] = m(!!s), [P, F] = m(!1), [I, L] = m(""), R = d(() => vr(v), [v]);
3783
+ if (!f.length) return /* @__PURE__ */ t("p", {
3784
+ className: _("core-event-log", "core-event-log__empty", c),
3785
+ style: u,
3786
+ children: "There's nothing you can log here."
3787
+ });
3788
+ let z = async (t) => {
3789
+ if (t.preventDefault(), !a?.logEvent || P || !v) return;
3790
+ F(!0), L("");
3791
+ let n = cr(S), c = {
3792
+ event_type_id: v.id,
3793
+ org_id: r,
3794
+ name: b.trim() || v.name,
3795
+ starts_at: n,
3796
+ tzid: sr(),
3797
+ data: O,
3798
+ subjects: e.subjects ? [...e.subjects] : []
3799
+ };
3800
+ i && (c.project_id = i), y && w && (c.ends_at = cr(w)), E.trim() && (c.location = E.trim());
3801
+ let l = A.trim() ? [{
3802
+ body: A.trim(),
3803
+ audience: s && M ? "staff" : "shared"
3804
+ }] : void 0, u = await a.logEvent(l ? {
3805
+ event: c,
3806
+ notes: l
3807
+ } : { event: c });
3808
+ F(!1), u.success ? (x(""), j(""), k({}), o?.(u)) : L(ur(u));
3809
+ }, B = (e, t) => k((n) => ({
3810
+ ...n,
3811
+ [e]: t
3812
+ }));
3813
+ return /* @__PURE__ */ n("form", {
3814
+ className: _("core-event-log", c),
3815
+ style: u,
3816
+ onSubmit: (e) => void z(e),
3817
+ children: [
3818
+ /* @__PURE__ */ n("label", {
3819
+ className: "core-event-log__field",
3820
+ children: [/* @__PURE__ */ t("span", {
3821
+ className: "core-event-log__label",
3822
+ children: "Type"
3823
+ }), /* @__PURE__ */ t("select", {
3824
+ value: h,
3825
+ onChange: (e) => {
3826
+ g(e.target.value), k({});
3827
+ },
3828
+ children: f.map((e) => /* @__PURE__ */ t("option", {
3829
+ value: e.id,
3830
+ children: e.name
3831
+ }, e.id))
3832
+ })]
3833
+ }),
3834
+ /* @__PURE__ */ n("label", {
3835
+ className: "core-event-log__field",
3836
+ children: [/* @__PURE__ */ t("span", {
3837
+ className: "core-event-log__label",
3838
+ children: "Title"
3839
+ }), /* @__PURE__ */ t("input", {
3840
+ value: b,
3841
+ onChange: (e) => x(e.target.value),
3842
+ placeholder: v?.name
3843
+ })]
3844
+ }),
3845
+ /* @__PURE__ */ n("div", {
3846
+ className: "core-event-log__row",
3847
+ children: [/* @__PURE__ */ n("label", {
3848
+ className: "core-event-log__field",
3849
+ children: [/* @__PURE__ */ t("span", {
3850
+ className: "core-event-log__label",
3851
+ children: y ? "Starts" : "When"
3852
+ }), /* @__PURE__ */ t("input", {
3853
+ type: "datetime-local",
3854
+ required: !0,
3855
+ value: S,
3856
+ onChange: (e) => C(e.target.value)
3857
+ })]
3858
+ }), y ? /* @__PURE__ */ n("label", {
3859
+ className: "core-event-log__field",
3860
+ children: [/* @__PURE__ */ t("span", {
3861
+ className: "core-event-log__label",
3862
+ children: "Ends"
3863
+ }), /* @__PURE__ */ t("input", {
3864
+ type: "datetime-local",
3865
+ value: w,
3866
+ min: S,
3867
+ onChange: (e) => T(e.target.value)
3868
+ })]
3869
+ }) : null]
3870
+ }),
3871
+ /* @__PURE__ */ n("label", {
3872
+ className: "core-event-log__field",
3873
+ children: [/* @__PURE__ */ t("span", {
3874
+ className: "core-event-log__label",
3875
+ children: "Where"
3876
+ }), /* @__PURE__ */ t("input", {
3877
+ value: E,
3878
+ onChange: (e) => D(e.target.value)
3879
+ })]
3880
+ }),
3881
+ R.map(([e, r, i]) => {
3882
+ let a = r.title ?? e;
3883
+ if (r.enum) return /* @__PURE__ */ n("label", {
3884
+ className: "core-event-log__field",
3885
+ children: [/* @__PURE__ */ t("span", {
3886
+ className: "core-event-log__label",
3887
+ children: a
3888
+ }), /* @__PURE__ */ n("select", {
3889
+ required: i,
3890
+ value: String(O[e] ?? ""),
3891
+ onChange: (t) => B(e, t.target.value || void 0),
3892
+ children: [/* @__PURE__ */ t("option", {
3893
+ value: "",
3894
+ children: "—"
3895
+ }), r.enum.map((e) => /* @__PURE__ */ t("option", {
3896
+ value: e,
3897
+ children: e
3898
+ }, e))]
3899
+ })]
3900
+ }, e);
3901
+ if (r.type === "boolean") return /* @__PURE__ */ n("label", {
3902
+ className: "core-event-log__check",
3903
+ children: [/* @__PURE__ */ t("input", {
3904
+ type: "checkbox",
3905
+ checked: !!O[e],
3906
+ onChange: (t) => B(e, t.target.checked)
3907
+ }), /* @__PURE__ */ t("span", { children: a })]
3908
+ }, e);
3909
+ let o = r.type === "number" || r.type === "integer";
3910
+ return /* @__PURE__ */ n("label", {
3911
+ className: "core-event-log__field",
3912
+ children: [/* @__PURE__ */ t("span", {
3913
+ className: "core-event-log__label",
3914
+ children: a
3915
+ }), /* @__PURE__ */ t("input", {
3916
+ type: o ? "number" : "text",
3917
+ step: r.type === "integer" ? 1 : "any",
3918
+ required: i,
3919
+ value: O[e] === void 0 ? "" : String(O[e]),
3920
+ onChange: (t) => B(e, t.target.value === "" ? void 0 : o ? Number(t.target.value) : t.target.value)
3921
+ })]
3922
+ }, e);
3923
+ }),
3924
+ /* @__PURE__ */ n("label", {
3925
+ className: "core-event-log__field",
3926
+ children: [/* @__PURE__ */ t("span", {
3927
+ className: "core-event-log__label",
3928
+ children: "Note"
3929
+ }), /* @__PURE__ */ t("textarea", {
3930
+ rows: 3,
3931
+ value: A,
3932
+ onChange: (e) => j(e.target.value)
3933
+ })]
3934
+ }),
3935
+ s && A.trim() ? /* @__PURE__ */ n("label", {
3936
+ className: "core-event-log__check",
3937
+ children: [/* @__PURE__ */ t("input", {
3938
+ type: "checkbox",
3939
+ checked: M,
3940
+ onChange: (e) => N(e.target.checked)
3941
+ }), /* @__PURE__ */ t("span", { children: "Staff only: the client won't see this note" })]
3942
+ }) : null,
3943
+ I ? /* @__PURE__ */ t("p", {
3944
+ id: `${p}-error`,
3945
+ className: "core-event-log__message",
3946
+ role: "alert",
3947
+ children: I
3948
+ }) : null,
3949
+ /* @__PURE__ */ t("div", {
3950
+ className: "core-event-log__actions",
3951
+ children: /* @__PURE__ */ t("button", {
3952
+ type: "submit",
3953
+ className: "core-event-log__submit",
3954
+ disabled: P || !a?.logEvent,
3955
+ children: P ? "Saving…" : y ? "Schedule" : "Log"
3956
+ })
3957
+ })
3958
+ ]
3959
+ });
3960
+ }
3961
+ //#endregion
3962
+ //#region src/core/events/EventSchedule/EventSchedule.tsx
3963
+ var br = (e, t) => new Intl.DateTimeFormat(t, {
3964
+ weekday: "short",
3965
+ month: "short",
3966
+ day: "numeric",
3967
+ timeZone: "UTC"
3968
+ }).format(/* @__PURE__ */ new Date(`${e}T00:00:00Z`));
3969
+ function xr(e) {
3970
+ let { view: r = "week", weekParam: i = "week", eventHref: a = "?panel=event:{id}", locale: o, timeZone: s, renderComponent: c, className: l, style: u } = e, d = Array.isArray(e.occurrences) ? e.occurrences : [], f = dr(/* @__PURE__ */ new Date(), s), p = fr(/^\d{4}-\d{2}-\d{2}$/.test(e.weekOf ?? "") ? e.weekOf : f), m = Array.from({ length: 7 }, (e, t) => Q(p, t)), h = new Map(m.map((e) => [e, []]));
3971
+ for (let e of d) for (let t of pr(e, s)) h.get(t)?.push(e);
3972
+ for (let e of h.values()) e.sort((e, t) => +!e.startOn - !t.startOn || (e.startsAt ?? "").localeCompare(t.startsAt ?? ""));
3973
+ let g = r === "agenda" ? m.filter((e) => h.get(e).length) : m;
3974
+ return /* @__PURE__ */ n("section", {
3975
+ className: _("core-event-schedule", l),
3976
+ "data-view": r,
3977
+ style: u,
3978
+ "aria-label": "Schedule",
3979
+ children: [
3980
+ /* @__PURE__ */ n("div", {
3981
+ className: "core-event-schedule__nav",
3982
+ children: [
3983
+ /* @__PURE__ */ t("a", {
3984
+ className: "core-event-schedule__step",
3985
+ href: `?${i}=${Q(p, -7)}`,
3986
+ "aria-label": "Previous week",
3987
+ children: "‹"
3988
+ }),
3989
+ /* @__PURE__ */ t("span", {
3990
+ className: "core-event-schedule__range",
3991
+ children: `${br(m[0], o)} – ${br(m[6], o)}`
3992
+ }),
3993
+ /* @__PURE__ */ t("a", {
3994
+ className: "core-event-schedule__step",
3995
+ href: `?${i}=${Q(p, 7)}`,
3996
+ "aria-label": "Next week",
3997
+ children: "›"
3998
+ })
3999
+ ]
4000
+ }),
4001
+ g.length === 0 ? /* @__PURE__ */ t("p", {
4002
+ className: "core-event-schedule__empty",
4003
+ children: "Nothing scheduled this week."
4004
+ }) : null,
4005
+ /* @__PURE__ */ t("ol", {
4006
+ className: "core-event-schedule__days",
4007
+ children: g.map((e) => {
4008
+ let r = h.get(e);
4009
+ return /* @__PURE__ */ n("li", {
4010
+ className: "core-event-schedule__day",
4011
+ "data-today": e === f || void 0,
4012
+ children: [/* @__PURE__ */ t("h3", {
4013
+ className: "core-event-schedule__date",
4014
+ children: br(e, o)
4015
+ }), r.length ? /* @__PURE__ */ t("ul", {
4016
+ className: "core-event-schedule__events",
4017
+ children: r.map((e, n) => /* @__PURE__ */ t("li", { children: nr(e, c, {
4018
+ href: $(a, e.id),
4019
+ locale: o,
4020
+ timeZone: s
4021
+ }) ?? /* @__PURE__ */ t(mr, {
4022
+ event: e,
4023
+ href: $(a, e.id),
4024
+ locale: o,
4025
+ timeZone: s
4026
+ }) }, `${e.id ?? n}-${e.startsAt ?? e.startOn ?? n}`))
4027
+ }) : /* @__PURE__ */ t("p", {
4028
+ className: "core-event-schedule__none",
4029
+ children: "—"
4030
+ })]
4031
+ }, e);
4032
+ })
4033
+ })
4034
+ ]
4035
+ });
4036
+ }
4037
+ //#endregion
4038
+ //#region src/core/events/EventTimeline/EventTimeline.tsx
4039
+ var Sr = (e, t) => new Intl.DateTimeFormat(t, {
4040
+ weekday: "long",
4041
+ month: "long",
4042
+ day: "numeric",
4043
+ year: "numeric",
4044
+ timeZone: "UTC"
4045
+ }).format(/* @__PURE__ */ new Date(`${e}T00:00:00Z`));
4046
+ function Cr(e) {
4047
+ let { eventHref: r = "?panel=event:{id}", emptyText: i = "No activity yet.", locale: a, timeZone: o, renderComponent: s, className: c, style: l } = e, u = [...(Array.isArray(e.items) ? e.items : []).filter((e) => e && !Number.isNaN(new Date(e.at).getTime()))].sort((e, t) => new Date(t.at).getTime() - new Date(e.at).getTime()), d = [];
4048
+ for (let e of u) {
4049
+ let t = dr(e.at, o), n = d[d.length - 1];
4050
+ n && n[0] === t ? n[1].push(e) : d.push([t, [e]]);
4051
+ }
4052
+ let f = new Intl.DateTimeFormat(a, {
4053
+ hour: "numeric",
4054
+ minute: "2-digit",
4055
+ timeZone: o
4056
+ });
4057
+ return /* @__PURE__ */ n("section", {
4058
+ className: _("core-event-timeline", c),
4059
+ style: l,
4060
+ "aria-label": "Activity",
4061
+ children: [d.length === 0 ? /* @__PURE__ */ t("p", {
4062
+ className: "core-event-timeline__empty",
4063
+ children: i
4064
+ }) : null, d.map(([e, i]) => /* @__PURE__ */ n("section", {
4065
+ className: "core-event-timeline__day",
4066
+ children: [/* @__PURE__ */ t("h3", {
4067
+ className: "core-event-timeline__date",
4068
+ children: Sr(e, a)
4069
+ }), /* @__PURE__ */ t("ol", {
4070
+ className: "core-event-timeline__items",
4071
+ children: i.map((e, i) => /* @__PURE__ */ n("li", {
4072
+ className: "core-event-timeline__item",
4073
+ "data-op": e.op || void 0,
4074
+ children: [/* @__PURE__ */ n("div", {
4075
+ className: "core-event-timeline__line",
4076
+ children: [
4077
+ /* @__PURE__ */ t("time", {
4078
+ className: "core-event-timeline__time",
4079
+ dateTime: e.at,
4080
+ children: f.format(new Date(e.at))
4081
+ }),
4082
+ e.summary ? /* @__PURE__ */ t("span", {
4083
+ className: "core-event-timeline__summary",
4084
+ children: e.summary
4085
+ }) : null,
4086
+ e.actor ? /* @__PURE__ */ t("span", {
4087
+ className: "core-event-timeline__actor",
4088
+ children: e.actor
4089
+ }) : null
4090
+ ]
4091
+ }), e.event ? nr(e.event, s, {
4092
+ href: $(r, e.event.id),
4093
+ locale: a,
4094
+ timeZone: o
4095
+ }) ?? /* @__PURE__ */ t(mr, {
4096
+ event: e.event,
4097
+ href: $(r, e.event.id),
4098
+ locale: a,
4099
+ timeZone: o
4100
+ }) : null]
4101
+ }, e.id ?? `${e.at}-${i}`))
4102
+ })]
4103
+ }, e))]
4104
+ });
4105
+ }
4106
+ //#endregion
4107
+ export { Ut as ANSWER_COLUMN_PX, Pe as Accordion, Wt as AnswerRows, _t as Aside, re as Avatar, ct as BLOCK_KINDS, xn as BLOCK_SCHEMAS, Se as Badge, b as Box, ke as Button, Fe as Card, x as Center, le as Checkbox, ue as CheckboxGroup, Ae as Chip, ie as Code, Le as Columns, Jt as ComparisonBars, S as Container, mn as Contents, Qe as DEFAULT_PROFILE_ID, tr as DataTable, de as DateRange, bt as Definition, Nn as DisclaimerBlock, ze as Disclosure, C as Divider, vn as DocumentBlocks, Pt as DocumentLabel, bn as DocumentSection, fn as DocumentShell, Vt as DocumentTable, mr as EventCard, _r as EventDetail, yr as EventLogForm, gr as EventRespond, xr as EventSchedule, Cr as EventTimeline, gn as ExecutionBlock, R as Eyebrow, Mt as Figure, pe as FileField, jt as Footnote, H as FormField, Be as Grid, oe as Heading, w as Hide, Mn as HighlightBox, je as IconButton, T as Inline, Kn as KpiCardGrid, Me as Link, sn as Masthead, Et as Math, ln as MetaRail, Zt as NextSteps, $t as Notes, we as Notice, Vn as OptionCard, He as PAGINATOR_BINDINGS, Nt as PageBreak, k as PageFrame, Hn as ProfileCard, Te as Progress, vt as Prose, yt as Quote, me as RadioGroup, Bt as Reference, Ve as Repeat, Ht as RowList, z as RuleSection, dn as RunningFooter, _e as SearchField, jn as SectionHeader, Ne as SegmentedControl, ve as Select, E as Show, Ee as Skeleton, tn as SkippedSection, ye as Slider, D as Spacer, De as Spinner, Re as Split, O as Stack, Dn as Stat, On as StatGroup, Fn as StatStrip, be as Switch, M as TONES, rn as TalkItThrough, ce as Text, xe as TextArea, ge as TextField, Oe as Tooltip, te as UnderlinedAction, an as WRITE_HEIGHT_PX, Qt as WRITE_LINE_HEIGHT_PX, on as WriteInField, _ as cx, Ze as documentProfiles, or as eventWhen, fe as fileSize, Kt as formatValue, ne as initialsOf, I as inkToneOf, v as length, st as profileCss, Je as profileIds, at as profileTokens, qe as registerProfile, X as renderFormatted, Ye as resolveProfile, Xe as resolvedProfiles, he as toNumber, P as toneOf, nr as typeCard, y as vars };
2190
4108
 
2191
4109
  //# sourceMappingURL=index.js.map