@airalogy/aimd-recorder 1.24.4 → 1.24.5

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 (66) hide show
  1. package/dist/{AimdDnaSequenceField-Opgy07Gt.js → AimdDnaSequenceField-CxFtD5Au.js} +1 -1
  2. package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-DHckC0bq.js → AimdEditor.vue_vue_type_style_index_0_lang-B0n0inzY.js} +1 -1
  3. package/dist/{AimdEntityRefField-GA6-mhGU.js → AimdEntityRefField-DCE79vca.js} +1 -1
  4. package/dist/{AimdMarkdownField-jagZIbKc.js → AimdMarkdownField-Du0Fh5sG.js} +3 -3
  5. package/dist/{AimdMarkdownNoteField-BUq4fRcZ.js → AimdMarkdownNoteField-YnyNmBvM.js} +2 -2
  6. package/dist/aimd-recorder.css +1 -1
  7. package/dist/{arc-CR1cpc2k.js → arc-B0vwJ3nm.js} +1 -1
  8. package/dist/{architectureDiagram-3BPJPVTR-B8OoiHF6.js → architectureDiagram-3BPJPVTR-B5niz6cr.js} +2 -2
  9. package/dist/{blockDiagram-GPEHLZMM-Ddq40SrW.js → blockDiagram-GPEHLZMM-Qtk9HFm8.js} +4 -4
  10. package/dist/{c4Diagram-AAUBKEIU-Cf3cjJMq.js → c4Diagram-AAUBKEIU-DfTlAW2e.js} +2 -2
  11. package/dist/{channel-C8Vd7nOK.js → channel-CTIJccfL.js} +1 -1
  12. package/dist/{chunk-2J33WTMH-Ck31ftjD.js → chunk-2J33WTMH-9xMy_Pgx.js} +1 -1
  13. package/dist/{chunk-4BX2VUAB-BJOkbq4i.js → chunk-4BX2VUAB-BYosfXC9.js} +1 -1
  14. package/dist/{chunk-55IACEB6-lNZxrJyO.js → chunk-55IACEB6-B8fHTImy.js} +1 -1
  15. package/dist/{chunk-727SXJPM-mEDRtdd4.js → chunk-727SXJPM-C83DIicG.js} +5 -5
  16. package/dist/{chunk-AQP2D5EJ-C1MU-m_K.js → chunk-AQP2D5EJ-C-IOiRzH.js} +3 -3
  17. package/dist/{chunk-FMBD7UC4-Pmfg_1nq.js → chunk-FMBD7UC4-BtkEX_DM.js} +1 -1
  18. package/dist/{chunk-ND2GUHAM-CipPchY0.js → chunk-ND2GUHAM-DIB3ib7j.js} +1 -1
  19. package/dist/{chunk-QZHKN3VN-BvE9EC7r.js → chunk-QZHKN3VN-BRsoqg2B.js} +1 -1
  20. package/dist/{classDiagram-v2-Q7XG4LA2-BM5OaktU.js → classDiagram-4FO5ZUOK-D39GKFwR.js} +2 -2
  21. package/dist/{classDiagram-4FO5ZUOK-BM5OaktU.js → classDiagram-v2-Q7XG4LA2-D39GKFwR.js} +2 -2
  22. package/dist/components.js +568 -568
  23. package/dist/composables.js +2 -2
  24. package/dist/{cose-bilkent-S5V4N54A-nmO7LFhz.js → cose-bilkent-S5V4N54A-CyRaJD1S.js} +1 -1
  25. package/dist/{dagre-BM42HDAG-D3xhjRxX.js → dagre-BM42HDAG-K85xJEFU.js} +3 -3
  26. package/dist/{diagram-2AECGRRQ-kCJcuZOT.js → diagram-2AECGRRQ-DET7fuM5.js} +2 -2
  27. package/dist/{diagram-5GNKFQAL-Bdr1oGkv.js → diagram-5GNKFQAL-Dlba-FRw.js} +3 -3
  28. package/dist/{diagram-KO2AKTUF-CeBpcrbw.js → diagram-KO2AKTUF-J4PMcx3F.js} +2 -2
  29. package/dist/{diagram-LMA3HP47-C5oYYzCp.js → diagram-LMA3HP47-ldR5Az83.js} +2 -2
  30. package/dist/{diagram-OG6HWLK6-CNzZuxZL.js → diagram-OG6HWLK6-UM1_l5na.js} +3 -3
  31. package/dist/{erDiagram-TEJ5UH35-MWNh4yWB.js → erDiagram-TEJ5UH35-eGmNSbi1.js} +4 -4
  32. package/dist/{flowDiagram-I6XJVG4X-DcREbXha.js → flowDiagram-I6XJVG4X-rHTJn3LZ.js} +6 -6
  33. package/dist/{ganttDiagram-6RSMTGT7-DGZUsfa4.js → ganttDiagram-6RSMTGT7-DKmi_hWM.js} +2 -2
  34. package/dist/{gitGraphDiagram-PVQCEYII-DhpcTOAS.js → gitGraphDiagram-PVQCEYII-DpQ1cu5h.js} +3 -3
  35. package/dist/{graph-CXU7Rv38.js → graph-CSRKgcbg.js} +1 -1
  36. package/dist/index.js +4 -4
  37. package/dist/{infoDiagram-5YYISTIA-CVZBlZ8R.js → infoDiagram-5YYISTIA-v8jIxUL5.js} +1 -1
  38. package/dist/{ishikawaDiagram-YF4QCWOH-Bjyc47Lv.js → ishikawaDiagram-YF4QCWOH-BaV5bCe8.js} +1 -1
  39. package/dist/{journeyDiagram-JHISSGLW-e2G_PVGF.js → journeyDiagram-JHISSGLW-DeU65SpU.js} +4 -4
  40. package/dist/{kanban-definition-UN3LZRKU-CKOBjcK9.js → kanban-definition-UN3LZRKU-TGHAcp6_.js} +2 -2
  41. package/dist/{layout-CBS27QDo.js → layout-D_sj0Eed.js} +2 -2
  42. package/dist/{linear-UyXZcrYY.js → linear-TldV7C5w.js} +1 -1
  43. package/dist/{mermaid.core-BeKK51C9.js → mermaid.core-CRSTqrrD.js} +34 -34
  44. package/dist/{mindmap-definition-RKZ34NQL-T6_bnhal.js → mindmap-definition-RKZ34NQL-CejyEBat.js} +3 -3
  45. package/dist/{pieDiagram-4H26LBE5-GGANuPvf.js → pieDiagram-4H26LBE5-CWLZWcAW.js} +3 -3
  46. package/dist/{quadrantDiagram-W4KKPZXB-BAtVKEgW.js → quadrantDiagram-W4KKPZXB-CYidUieH.js} +2 -2
  47. package/dist/record.js +2 -2
  48. package/dist/{requirementDiagram-4Y6WPE33-C2oozBsJ.js → requirementDiagram-4Y6WPE33-Cw4ko-tB.js} +3 -3
  49. package/dist/{sankeyDiagram-5OEKKPKP-Bfc4Y-JM.js → sankeyDiagram-5OEKKPKP-BnX4Evuh.js} +1 -1
  50. package/dist/{sequenceDiagram-3UESZ5HK-e9yMBU3K.js → sequenceDiagram-3UESZ5HK-BiGVMmS5.js} +3 -3
  51. package/dist/{stateDiagram-AJRCARHV-D1vciiPs.js → stateDiagram-AJRCARHV-DIaBI1Uq.js} +4 -4
  52. package/dist/{stateDiagram-v2-BHNVJYJU-DMXm3rUm.js → stateDiagram-v2-BHNVJYJU-BgfV-ldT.js} +2 -2
  53. package/dist/{timeline-definition-PNZ67QCA-Cg7TL_0Q.js → timeline-definition-PNZ67QCA-C0_5OwxD.js} +2 -2
  54. package/dist/{useFieldRendering-JFnqNEWH.js → useFieldRendering-B2iMfsEA.js} +1 -1
  55. package/dist/{useVarHelpers-CQQ-zhL0.js → useVarHelpers-CSogsd1T.js} +121 -116
  56. package/dist/{validation-DSn_Ttx_.js → validation-BYjlufCM.js} +1 -1
  57. package/dist/{vennDiagram-CIIHVFJN-BEJdgPK5.js → vennDiagram-CIIHVFJN-_ktbUOEm.js} +1 -1
  58. package/dist/{wardleyDiagram-YWT4CUSO-DLxpx6Lm.js → wardleyDiagram-YWT4CUSO-iwftOr4-.js} +2 -2
  59. package/dist/{xychartDiagram-2RQKCTM6-CG-K6knD.js → xychartDiagram-2RQKCTM6-C_h9QW07.js} +2 -2
  60. package/package.json +3 -3
  61. package/src/__tests__/required-marker.test.ts +10 -0
  62. package/src/__tests__/var-field-render.test.ts +48 -0
  63. package/src/components/AimdVarField.vue +2 -1
  64. package/src/composables/__tests__/useVarHelpers.test.ts +47 -0
  65. package/src/composables/useVarHelpers.ts +9 -1
  66. package/src/styles/recorder.css +1 -0
@@ -1,25 +1,25 @@
1
1
  import { defineComponent as Ye, ref as O, getCurrentInstance as In, computed as k, watch as Se, nextTick as je, onMounted as Ya, onBeforeUnmount as Mt, openBlock as _, createElementBlock as w, normalizeStyle as Rt, normalizeClass as Oe, createElementVNode as g, toDisplayString as C, createTextVNode as nt, createCommentVNode as re, withModifiers as yt, Fragment as Be, renderList as Ue, withKeys as Ba, unref as Ve, createBlock as ft, withDirectives as Nt, vModelText as ba, defineAsyncComponent as Ht, h as l, Transition as Jn, vModelRadio as an, reactive as Oa, createVNode as ea, render as nn, watchEffect as Xn, mergeProps as Zn } from "vue";
2
2
  import { a as kt, _ as bt } from "./AimdRequiredMarker.vue_vue_type_script_setup_true_lang-B5qDiOZn.js";
3
- import { aN as Ut, aR as Ln, ao as ei, au as Na, aX as ti, b8 as ta, B as rn, _ as aa, z as va, a4 as ga, u as da, b1 as Xt, t as ln, b9 as ai, ba as ni, b4 as sn, E as Pn, b7 as Ka, F as Bn, c as gt, ae as ii, bb as ri, b5 as _a, b6 as xa, bc as ja, bd as On, a5 as li, n as si, ad as Nn, be as ha, C as oi, r as ht, a9 as di, L as ka, I as ci, D as ui, M as fi, aq as Ja, a$ as mi, w as vi, x as gi, aE as Kt, a as Ha, f as Ua, o as hi, y as pi, h as yi, l as bi, a8 as _i, a6 as ki, ac as wi, ab as Si, aV as Ci, ap as xi, H as $i, S as Ai, Y as pa, $ as Ei, Q as Fi, Z as Ti, a2 as Ri } from "./useVarHelpers-CQQ-zhL0.js";
4
- import { g as Wt, a as Wa, c as Xa, b as Mi, r as zi, P as qi, d as Vi, $ as Di, e as Ii, h as Li, f as Pi, i as Bi, j as Oi, k as on, l as Ni, m as dn, N as Ki, n as ji, o as Hi, p as Ui, u as Wi, q as Gi, s as Qi, t as Yi, v as Ji, _ as Xi } from "./AimdEditor.vue_vue_type_style_index_0_lang-DHckC0bq.js";
5
- import { l as Zi, s as er, n as cn, t as tr, o as ar, r as ca, y as nr, x as ir, d as rr, b as un, A as lr, e as sr, a as or, w as dr, z as cr, v as ur, m as fr, u as mr, j as vr } from "./useFieldRendering-JFnqNEWH.js";
6
- import { renderToVue as gr, parseAndExtract as Ot } from "@airalogy/aimd-renderer";
7
- import { g as hr, m as wa, b as Sa, a as za } from "./validation-DSn_Ttx_.js";
8
- import { u as pr } from "./useCodeBlockRendering-D2viVPtA.js";
9
- import { isScaleQuizAnswerComplete as yr, gradeScaleQuizLocally as br } from "@airalogy/aimd-core";
10
- const _r = {
3
+ import { aN as Ut, aR as Ln, ao as ei, au as Na, aX as ti, b8 as ta, B as rn, _ as aa, z as va, a4 as ga, u as da, b1 as Xt, t as ln, b9 as ai, ba as ni, bb as ii, b4 as sn, E as Pn, b7 as Ka, F as Bn, c as gt, ae as ri, bc as li, b5 as _a, b6 as xa, bd as ja, be as On, a5 as si, n as oi, ad as Nn, bf as ha, C as di, r as ht, a9 as ci, L as ka, I as ui, D as fi, M as mi, aq as Ja, a$ as vi, w as gi, x as hi, aE as Kt, a as Ha, f as Ua, o as pi, y as yi, h as bi, l as _i, a8 as ki, a6 as wi, ac as Si, ab as Ci, aV as xi, ap as $i, H as Ai, S as Ei, Y as pa, $ as Fi, Q as Ti, Z as Ri, a2 as Mi } from "./useVarHelpers-CSogsd1T.js";
4
+ import { g as Wt, a as Wa, c as Xa, b as zi, r as qi, P as Vi, d as Di, $ as Ii, e as Li, h as Pi, f as Bi, i as Oi, j as Ni, k as on, l as Ki, m as dn, N as ji, n as Hi, o as Ui, p as Wi, u as Gi, q as Qi, s as Yi, t as Ji, v as Xi, _ as Zi } from "./AimdEditor.vue_vue_type_style_index_0_lang-B0n0inzY.js";
5
+ import { l as er, s as tr, n as cn, t as ar, o as nr, r as ca, y as ir, x as rr, d as lr, b as un, A as sr, e as or, a as dr, w as cr, z as ur, v as fr, m as mr, u as vr, j as gr } from "./useFieldRendering-B2iMfsEA.js";
6
+ import { renderToVue as hr, parseAndExtract as Ot } from "@airalogy/aimd-renderer";
7
+ import { g as pr, m as wa, b as Sa, a as za } from "./validation-BYjlufCM.js";
8
+ import { u as yr } from "./useCodeBlockRendering-D2viVPtA.js";
9
+ import { isScaleQuizAnswerComplete as br, gradeScaleQuizLocally as _r } from "@airalogy/aimd-core";
10
+ const kr = {
11
11
  key: 0,
12
12
  class: "aimd-assigner-graph__toolbar"
13
- }, kr = { class: "aimd-assigner-graph__toolbar-group" }, wr = ["title", "aria-label"], Sr = ["title", "aria-label"], Cr = ["title", "aria-label"], xr = { class: "aimd-assigner-graph__zoom" }, $r = {
13
+ }, wr = { class: "aimd-assigner-graph__toolbar-group" }, Sr = ["title", "aria-label"], Cr = ["title", "aria-label"], xr = ["title", "aria-label"], $r = { class: "aimd-assigner-graph__zoom" }, Ar = {
14
14
  key: 1,
15
15
  class: "aimd-assigner-graph__legend"
16
- }, Ar = { class: "aimd-assigner-graph__legend-item" }, Er = { class: "aimd-assigner-graph__legend-item" }, Fr = { class: "aimd-assigner-graph__legend-item" }, Tr = {
16
+ }, Er = { class: "aimd-assigner-graph__legend-item" }, Fr = { class: "aimd-assigner-graph__legend-item" }, Tr = { class: "aimd-assigner-graph__legend-item" }, Rr = {
17
17
  key: 0,
18
18
  class: "aimd-assigner-graph__state"
19
- }, Rr = {
19
+ }, Mr = {
20
20
  key: 1,
21
21
  class: "aimd-assigner-graph__state"
22
- }, Mr = ["width", "height", "viewBox", "aria-label"], zr = { class: "aimd-assigner-graph__edges" }, qr = ["d", "marker-end"], Vr = { class: "aimd-assigner-graph__nodes" }, Dr = ["transform", "aria-label", "onClick", "onKeydown"], Ir = ["width", "height", "rx"], Lr = ["x", "y"], fn = 48, mn = 260, vn = 86, ua = 36, Pr = 132, gn = 232, hn = 28, Br = /* @__PURE__ */ Ye({
22
+ }, zr = ["width", "height", "viewBox", "aria-label"], qr = { class: "aimd-assigner-graph__edges" }, Vr = ["d", "marker-end"], Dr = { class: "aimd-assigner-graph__nodes" }, Ir = ["transform", "aria-label", "onClick", "onKeydown"], Lr = ["width", "height", "rx"], Pr = ["x", "y"], fn = 48, mn = 260, vn = 86, ua = 36, Br = 132, gn = 232, hn = 28, Or = /* @__PURE__ */ Ye({
23
23
  name: "AimdAssignerGraph",
24
24
  __name: "AimdAssignerGraph",
25
25
  props: {
@@ -53,7 +53,7 @@ const _r = {
53
53
  const E = k(() => ({
54
54
  ...h,
55
55
  ...a.labels
56
- })), H = k(() => {
56
+ })), U = k(() => {
57
57
  const x = a.assignerGraph;
58
58
  if (!x) return [];
59
59
  const $ = /* @__PURE__ */ new Map();
@@ -64,14 +64,14 @@ const _r = {
64
64
  return [...$.values()];
65
65
  }), R = k(() => {
66
66
  const x = /* @__PURE__ */ new Map();
67
- for (const $ of H.value)
67
+ for (const $ of U.value)
68
68
  x.set($.name, { inputs: [], outputs: [] });
69
69
  for (const [$, v] of a.assignerGraph?.edges ?? [])
70
70
  x.get($)?.outputs.push(v), x.get(v)?.inputs.push($);
71
71
  return x;
72
72
  }), ne = k(() => {
73
73
  if (!m.value) return /* @__PURE__ */ new Set();
74
- const x = m.value, $ = H.value.find((I) => I.name === x), v = /* @__PURE__ */ new Set();
74
+ const x = m.value, $ = U.value.find((I) => I.name === x), v = /* @__PURE__ */ new Set();
75
75
  if (!$) return v;
76
76
  if ($.type === "assigner") {
77
77
  v.add(x);
@@ -80,7 +80,7 @@ const _r = {
80
80
  }
81
81
  return W(x, v), de(x, v), v;
82
82
  }), ge = k(() => {
83
- const x = H.value;
83
+ const x = U.value;
84
84
  if (!x.length)
85
85
  return { nodes: [], edges: [], width: 480, height: 320 };
86
86
  const $ = le(x, a.assignerGraph?.edges ?? []), v = /* @__PURE__ */ new Map();
@@ -125,7 +125,7 @@ const _r = {
125
125
  width: ua * 2 + j * mn + gn,
126
126
  height: ua * 2 + (p - 1) * vn + fn
127
127
  };
128
- }), U = k(() => `${Math.round(c.value * 100)}%`), ie = k(() => ({
128
+ }), H = k(() => `${Math.round(c.value * 100)}%`), ie = k(() => ({
129
129
  "--aimd-assigner-graph-height": P.value ? "100vh" : a.height
130
130
  })), ye = k(() => Math.max(ge.value.width * c.value, 1)), oe = k(() => Math.max(ge.value.height * c.value, 1));
131
131
  function N(x) {
@@ -160,7 +160,7 @@ const _r = {
160
160
  }
161
161
  function q(x) {
162
162
  const $ = x.length * 8.5 + 36;
163
- return Math.max(Pr, Math.min(gn, $));
163
+ return Math.max(Br, Math.min(gn, $));
164
164
  }
165
165
  function X(x, $) {
166
166
  const v = x.x + x.width, I = x.y + x.height / 2, j = $.x, p = $.y + $.height / 2, D = Math.max(54, Math.min(110, Math.abs(j - v) / 2));
@@ -240,8 +240,8 @@ const _r = {
240
240
  class: Oe(["aimd-assigner-graph", { "aimd-assigner-graph--fullscreen": P.value }]),
241
241
  style: Rt(ie.value)
242
242
  }, [
243
- e.showToolbar ? (_(), w("div", _r, [
244
- g("div", kr, [
243
+ e.showToolbar ? (_(), w("div", kr, [
244
+ g("div", wr, [
245
245
  g("button", {
246
246
  type: "button",
247
247
  class: "aimd-assigner-graph__icon-btn",
@@ -261,7 +261,7 @@ const _r = {
261
261
  }),
262
262
  g("path", { d: "M16.5 16.5 21 21" })
263
263
  ], -1)
264
- ])], 8, wr),
264
+ ])], 8, Sr),
265
265
  g("button", {
266
266
  type: "button",
267
267
  class: "aimd-assigner-graph__icon-btn",
@@ -275,7 +275,7 @@ const _r = {
275
275
  }, [
276
276
  g("path", { d: "M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5" })
277
277
  ], -1)
278
- ])], 8, Sr),
278
+ ])], 8, Cr),
279
279
  g("button", {
280
280
  type: "button",
281
281
  class: "aimd-assigner-graph__icon-btn",
@@ -295,8 +295,8 @@ const _r = {
295
295
  }),
296
296
  g("path", { d: "M16.5 16.5 21 21" })
297
297
  ], -1)
298
- ])], 8, Cr),
299
- g("span", xr, C(U.value), 1)
298
+ ])], 8, xr),
299
+ g("span", $r, C(H.value), 1)
300
300
  ]),
301
301
  g("button", {
302
302
  type: "button",
@@ -326,16 +326,16 @@ const _r = {
326
326
  nt(" " + C(P.value ? E.value.close : E.value.fullscreen), 1)
327
327
  ])) : re("", !0)
328
328
  ])) : re("", !0),
329
- e.showLegend ? (_(), w("div", $r, [
330
- g("span", Ar, [
329
+ e.showLegend ? (_(), w("div", Ar, [
330
+ g("span", Er, [
331
331
  $[5] || ($[5] = g("span", { class: "aimd-assigner-graph__legend-swatch aimd-assigner-graph__legend-swatch--dependent-field" }, null, -1)),
332
332
  nt(" " + C(E.value.dependentField), 1)
333
333
  ]),
334
- g("span", Er, [
334
+ g("span", Fr, [
335
335
  $[6] || ($[6] = g("span", { class: "aimd-assigner-graph__legend-swatch aimd-assigner-graph__legend-swatch--assigner" }, null, -1)),
336
336
  nt(" " + C(E.value.assigner), 1)
337
337
  ]),
338
- g("span", Fr, [
338
+ g("span", Tr, [
339
339
  $[7] || ($[7] = g("span", { class: "aimd-assigner-graph__legend-swatch aimd-assigner-graph__legend-swatch--assigned-field" }, null, -1)),
340
340
  nt(" " + C(E.value.assignedField), 1)
341
341
  ])
@@ -346,13 +346,13 @@ const _r = {
346
346
  class: "aimd-assigner-graph__canvas",
347
347
  onClick: yt(be, ["self"])
348
348
  }, [
349
- e.loading ? (_(), w("div", Tr, [
349
+ e.loading ? (_(), w("div", Rr, [
350
350
  $[8] || ($[8] = g("span", {
351
351
  class: "aimd-assigner-graph__spinner",
352
352
  "aria-hidden": "true"
353
353
  }, null, -1)),
354
354
  nt(" " + C(E.value.loading), 1)
355
- ])) : ge.value.nodes.length === 0 ? (_(), w("div", Rr, C(E.value.empty), 1)) : (_(), w("svg", {
355
+ ])) : ge.value.nodes.length === 0 ? (_(), w("div", Mr, C(E.value.empty), 1)) : (_(), w("svg", {
356
356
  key: 2,
357
357
  class: "aimd-assigner-graph__svg",
358
358
  width: ye.value,
@@ -391,7 +391,7 @@ const _r = {
391
391
  }, null, -1)
392
392
  ])])
393
393
  ]),
394
- g("g", zr, [
394
+ g("g", qr, [
395
395
  (_(!0), w(Be, null, Ue(ge.value.edges, (v) => (_(), w("path", {
396
396
  key: `${v.from}->${v.to}`,
397
397
  class: Oe(["aimd-assigner-graph__edge", {
@@ -401,9 +401,9 @@ const _r = {
401
401
  d: v.path,
402
402
  fill: "none",
403
403
  "marker-end": `url(#${v.highlighted ? J : ue})`
404
- }, null, 10, qr))), 128))
404
+ }, null, 10, Vr))), 128))
405
405
  ]),
406
- g("g", Vr, [
406
+ g("g", Dr, [
407
407
  (_(!0), w(Be, null, Ue(ge.value.nodes, (v) => (_(), w("g", {
408
408
  key: v.name,
409
409
  class: Oe(["aimd-assigner-graph__node", [
@@ -429,22 +429,22 @@ const _r = {
429
429
  width: v.width,
430
430
  height: v.height,
431
431
  rx: v.type === "assigner" ? v.height / 2 : 8
432
- }, null, 8, Ir),
432
+ }, null, 8, Lr),
433
433
  g("text", {
434
434
  class: "aimd-assigner-graph__node-label",
435
435
  x: v.width / 2,
436
436
  y: v.height / 2,
437
437
  "dominant-baseline": "middle",
438
438
  "text-anchor": "middle"
439
- }, C(v.label), 9, Lr)
440
- ], 42, Dr))), 128))
439
+ }, C(v.label), 9, Pr)
440
+ ], 42, Ir))), 128))
441
441
  ])
442
- ], 8, Mr))
442
+ ], 8, zr))
443
443
  ], 512)
444
444
  ], 6));
445
445
  }
446
- }), Uc = /* @__PURE__ */ kt(Br, [["__scopeId", "data-v-091ecc08"]]), Or = ["checked", "annotation", "elapsed_ms", "started_at_ms", "ended_at_ms"], Nr = ["checked", "annotation"];
447
- function Kr(e) {
446
+ }), Wc = /* @__PURE__ */ kt(Or, [["__scopeId", "data-v-091ecc08"]]), Nr = ["checked", "annotation", "elapsed_ms", "started_at_ms", "ended_at_ms"], Kr = ["checked", "annotation"];
447
+ function jr(e) {
448
448
  return Array.isArray(e) && e.every((t) => t && typeof t == "object" && typeof t.key == "string");
449
449
  }
450
450
  function Ze(e) {
@@ -456,7 +456,7 @@ function qa(e) {
456
456
  if (Ut(e))
457
457
  return Ze(e.id) ?? Ze(e.name);
458
458
  }
459
- function jr(e) {
459
+ function Hr(e) {
460
460
  const t = /* @__PURE__ */ new Set(), n = [];
461
461
  for (const a of e)
462
462
  t.has(a.key) || (t.add(a.key), n.push(a));
@@ -465,10 +465,10 @@ function jr(e) {
465
465
  function Ca(e, t) {
466
466
  return Ze(t) ?? e;
467
467
  }
468
- function Hr(e, t) {
468
+ function Ur(e, t) {
469
469
  return `${Ca(e.id, e.title)}.${Ca(t.id, t.title)}`;
470
470
  }
471
- function Ur(e) {
471
+ function Wr(e) {
472
472
  const t = `quiz:${e.id}`;
473
473
  if (e.type === "blank") {
474
474
  const n = e.blanks?.[0]?.key;
@@ -490,11 +490,11 @@ function Ur(e) {
490
490
  }
491
491
  return `${t}:open`;
492
492
  }
493
- function Wr(e) {
494
- return e ? Kr(e) ? [...e] : Kn(e) : [];
493
+ function Gr(e) {
494
+ return e ? jr(e) ? [...e] : Kn(e) : [];
495
495
  }
496
496
  function pt(e, t, n) {
497
- const a = n, i = Ze(a?.title), h = Ze(a?.type), o = `${e}:${t}`, m = e === "var" ? o : e === "step" ? `${o}:checked` : e === "check" ? `${o}:checked` : Ur({ id: t, type: "open", ...n });
497
+ const a = n, i = Ze(a?.title), h = Ze(a?.type), o = `${e}:${t}`, m = e === "var" ? o : e === "step" ? `${o}:checked` : e === "check" ? `${o}:checked` : Wr({ id: t, type: "open", ...n });
498
498
  return {
499
499
  key: o,
500
500
  scope: e,
@@ -509,7 +509,7 @@ function pt(e, t, n) {
509
509
  focusKey: m
510
510
  };
511
511
  }
512
- function Gr(e) {
512
+ function Qr(e) {
513
513
  const t = Ln(e), n = [];
514
514
  for (const a of ei) {
515
515
  const i = t[a];
@@ -551,7 +551,7 @@ function Kn(e) {
551
551
  key: `var_table:${i.id}:${c.id}`,
552
552
  scope: "var_table",
553
553
  id: c.id,
554
- label: Hr(i, c),
554
+ label: Ur(i, c),
555
555
  title: Ze(c.title),
556
556
  type: Ze(c.type),
557
557
  description: Ze(c.description),
@@ -577,9 +577,9 @@ function Kn(e) {
577
577
  }
578
578
  for (const i of e.quiz || [])
579
579
  i?.id && t.push(pt("quiz", i.id, i));
580
- return jr(t);
580
+ return Hr(t);
581
581
  }
582
- function Qr(e) {
582
+ function Yr(e) {
583
583
  const t = e.split(":"), n = t[0], a = t[1];
584
584
  if (a) {
585
585
  if (n === "var" || n === "step" || n === "check" || n === "quiz")
@@ -610,7 +610,7 @@ function Qr(e) {
610
610
  }
611
611
  }
612
612
  }
613
- function Yr(e, t) {
613
+ function Jr(e, t) {
614
614
  const n = e[t];
615
615
  return Ut(n) ? n : {};
616
616
  }
@@ -624,11 +624,11 @@ function pn(e, t) {
624
624
  }
625
625
  return n.join(" ");
626
626
  }
627
- function Jr(e, t) {
628
- const n = typeof t == "string" ? Qr(t) : t;
627
+ function Xr(e, t) {
628
+ const n = typeof t == "string" ? Yr(t) : t;
629
629
  if (!n)
630
630
  return;
631
- const a = Ln(e), h = Yr(a, n.storageScope)[n.storageKey];
631
+ const a = Ln(e), h = Jr(a, n.storageScope)[n.storageKey];
632
632
  return n.scope === "var_table" && n.columnId ? (Array.isArray(h) ? h : []).map((m) => {
633
633
  if (Ut(m))
634
634
  return Na(m[n.columnId]);
@@ -638,44 +638,44 @@ function jt(e) {
638
638
  const t = Na(e);
639
639
  return t == null ? "" : Array.isArray(t) ? t.map((n) => jt(n)).filter(Boolean).join(" ") : Ut(t) ? Object.entries(t).filter(([n]) => !n.startsWith("__")).map(([, n]) => jt(n)).filter(Boolean).join(" ") : ti(t);
640
640
  }
641
- function Xr(e, t) {
641
+ function Zr(e, t) {
642
642
  const n = e == null ? "" : String(e);
643
643
  return t ? n : n.toLocaleLowerCase();
644
644
  }
645
- function Zr(e, t, n, a = {}) {
646
- const i = Xr(t, a.caseSensitive).trim();
645
+ function el(e, t, n, a = {}) {
646
+ const i = Zr(t, a.caseSensitive).trim();
647
647
  if (!i)
648
648
  return [];
649
- const h = a.fieldKeys ? new Set(a.fieldKeys) : null, o = Wr(n), m = o.length > 0 ? o : Gr(e), c = [];
649
+ const h = a.fieldKeys ? new Set(a.fieldKeys) : null, o = Gr(n), m = o.length > 0 ? o : Qr(e), c = [];
650
650
  for (const z of m) {
651
651
  if (h && !h.has(z.key))
652
652
  continue;
653
- const P = Jr(e, z), ae = z.scope === "step" ? pn(P, Or) : z.scope === "check" ? pn(P, Nr) : jt(P), ue = a.includeFieldLabels ? ` ${z.label} ${z.key}` : "";
653
+ const P = Xr(e, z), ae = z.scope === "step" ? pn(P, Nr) : z.scope === "check" ? pn(P, Kr) : jt(P), ue = a.includeFieldLabels ? ` ${z.label} ${z.key}` : "";
654
654
  (a.caseSensitive ? `${ae}${ue}` : `${ae}${ue}`.toLocaleLowerCase()).includes(i) && c.push({ field: z, value: P, text: ae });
655
655
  }
656
656
  return c;
657
657
  }
658
- const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" }, al = { class: "aimd-field__scope aimd-field__scope--var" }, nl = { class: "aimd-rec-collector__identity" }, il = { class: "aimd-rec-collector__title" }, rl = {
658
+ const tl = ["data-rec-collector"], al = { class: "aimd-rec-collector__header" }, nl = { class: "aimd-field__scope aimd-field__scope--var" }, il = { class: "aimd-rec-collector__identity" }, rl = { class: "aimd-rec-collector__title" }, ll = {
659
659
  key: 1,
660
660
  class: "aimd-rec-collector__key"
661
- }, ll = ["title"], sl = { class: "aimd-rec-collector__body" }, ol = { class: "aimd-rec-collector__reading" }, dl = ["title"], cl = {
661
+ }, sl = ["title"], ol = { class: "aimd-rec-collector__body" }, dl = { class: "aimd-rec-collector__reading" }, cl = ["title"], ul = {
662
662
  key: 1,
663
663
  class: "aimd-rec-collector__empty"
664
- }, ul = {
664
+ }, fl = {
665
665
  key: 2,
666
666
  class: "aimd-rec-collector__unit"
667
- }, fl = { class: "aimd-rec-collector__meta" }, ml = { key: 0 }, vl = { key: 1 }, gl = { class: "aimd-rec-collector__actions" }, hl = ["disabled"], pl = ["disabled"], yl = ["disabled", "aria-expanded"], bl = {
667
+ }, ml = { class: "aimd-rec-collector__meta" }, vl = { key: 0 }, gl = { key: 1 }, hl = { class: "aimd-rec-collector__actions" }, pl = ["disabled"], yl = ["disabled"], bl = ["disabled", "aria-expanded"], _l = {
668
668
  key: 0,
669
669
  class: "aimd-rec-collector__message",
670
670
  role: "status"
671
- }, _l = {
671
+ }, kl = {
672
672
  key: 1,
673
673
  class: "aimd-rec-collector__manual"
674
- }, kl = ["data-rec-focus-key", "placeholder", "disabled"], wl = ["placeholder", "disabled"], Sl = ["disabled"], Cl = {
674
+ }, wl = ["data-rec-focus-key", "placeholder", "disabled"], Sl = ["placeholder", "disabled"], Cl = ["disabled"], xl = {
675
675
  key: 0,
676
676
  class: "aimd-rec-collector__message aimd-rec-collector__message--error",
677
677
  role: "alert"
678
- }, xl = /* @__PURE__ */ Ye({
678
+ }, $l = /* @__PURE__ */ Ye({
679
679
  __name: "AimdCollectorField",
680
680
  props: {
681
681
  node: {},
@@ -691,7 +691,7 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
691
691
  },
692
692
  emits: ["start", "stop", "manual", "blur"],
693
693
  setup(e, { emit: t }) {
694
- const n = e, a = t, i = O(!1), h = O(""), o = O(""), m = O(""), c = k(() => n.node.definition?.type || "Observation[str]"), z = k(() => Zi(c.value)), P = k(() => n.fieldMeta?.title || ta(n.node.id, n.node.definition)), ae = k(() => ["waiting_for_permission", "connecting", "collecting", "stopping"].includes(n.state.status)), ue = k(() => !n.disabled && n.providerAvailable && !ae.value && n.state.status !== "unsupported" && !n.binding.isSeries && n.binding.collector.mode !== "stream"), J = k(() => !n.disabled && ["connecting", "collecting"].includes(n.state.status)), K = k(() => (Array.isArray(n.value) ? n.value : [n.value]).filter((B) => !!(B && typeof B == "object" && !Array.isArray(B) && Object.prototype.hasOwnProperty.call(B, "value")))), E = k(() => K.value[K.value.length - 1]), H = k(() => U(E.value?.value)), R = k(() => E.value?.unit || String(n.node.definition?.kwargs?.unit ?? "")), ne = k(() => {
694
+ const n = e, a = t, i = O(!1), h = O(""), o = O(""), m = O(""), c = k(() => n.node.definition?.type || "Observation[str]"), z = k(() => er(c.value)), P = k(() => n.fieldMeta?.title || ta(n.node.id, n.node.definition)), ae = k(() => ["waiting_for_permission", "connecting", "collecting", "stopping"].includes(n.state.status)), ue = k(() => !n.disabled && n.providerAvailable && !ae.value && n.state.status !== "unsupported" && !n.binding.isSeries && n.binding.collector.mode !== "stream"), J = k(() => !n.disabled && ["connecting", "collecting"].includes(n.state.status)), K = k(() => (Array.isArray(n.value) ? n.value : [n.value]).filter((B) => !!(B && typeof B == "object" && !Array.isArray(B) && Object.prototype.hasOwnProperty.call(B, "value")))), E = k(() => K.value[K.value.length - 1]), U = k(() => H(E.value?.value)), R = k(() => E.value?.unit || String(n.node.definition?.kwargs?.unit ?? "")), ne = k(() => {
695
695
  const N = E.value?.observed_at || n.state.lastObservedAt;
696
696
  if (!N) return "";
697
697
  const B = new Date(N);
@@ -703,7 +703,7 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
703
703
  N && (i.value = !1);
704
704
  }
705
705
  );
706
- function U(N) {
706
+ function H(N) {
707
707
  if (N == null) return "";
708
708
  if (typeof N == "string") return N;
709
709
  if (["number", "boolean", "bigint"].includes(typeof N)) return String(N);
@@ -724,7 +724,7 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
724
724
  m.value = n.messages.collector.reasonRequired;
725
725
  return;
726
726
  }
727
- const N = er(c.value, h.value);
727
+ const N = tr(c.value, h.value);
728
728
  if (!N.ok) {
729
729
  m.value = n.messages.collector.invalidValue;
730
730
  return;
@@ -738,20 +738,20 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
738
738
  ]]),
739
739
  "data-rec-collector": e.binding.collector.id
740
740
  }, [
741
- g("span", tl, [
742
- g("span", al, C(Ve(Wt)("var", e.messages)), 1),
743
- g("span", nl, [
744
- g("span", il, C(P.value), 1),
741
+ g("span", al, [
742
+ g("span", nl, C(Ve(Wt)("var", e.messages)), 1),
743
+ g("span", il, [
744
+ g("span", rl, C(P.value), 1),
745
745
  e.required ? (_(), ft(bt, {
746
746
  key: 0,
747
747
  label: e.messages.common.required
748
748
  }, null, 8, ["label"])) : re("", !0),
749
- P.value !== e.node.id ? (_(), w("span", rl, C(e.node.id), 1)) : re("", !0)
749
+ P.value !== e.node.id ? (_(), w("span", ll, C(e.node.id), 1)) : re("", !0)
750
750
  ]),
751
751
  g("span", {
752
752
  class: "aimd-rec-collector__source",
753
753
  title: e.binding.connector.id
754
- }, C(e.binding.collector.title || e.binding.collector.id), 9, ll),
754
+ }, C(e.binding.collector.title || e.binding.collector.id), 9, sl),
755
755
  g("span", {
756
756
  class: Oe(["aimd-rec-collector__status", `aimd-rec-collector__status--${e.state.status}`])
757
757
  }, [
@@ -762,33 +762,33 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
762
762
  nt(" " + C(e.messages.collector.status[e.state.status]), 1)
763
763
  ], 2)
764
764
  ]),
765
- g("span", sl, [
766
- g("span", ol, [
767
- H.value ? (_(), w("span", {
765
+ g("span", ol, [
766
+ g("span", dl, [
767
+ U.value ? (_(), w("span", {
768
768
  key: 0,
769
769
  class: "aimd-rec-collector__value",
770
- title: H.value
771
- }, C(H.value), 9, dl)) : (_(), w("span", cl, C(e.messages.common.emptyValue), 1)),
772
- R.value ? (_(), w("span", ul, C(R.value), 1)) : re("", !0)
770
+ title: U.value
771
+ }, C(U.value), 9, cl)) : (_(), w("span", ul, C(e.messages.common.emptyValue), 1)),
772
+ R.value ? (_(), w("span", fl, C(R.value), 1)) : re("", !0)
773
773
  ]),
774
- g("span", fl, [
775
- e.binding.isList ? (_(), w("span", ml, C(e.messages.collector.sampleCount(K.value.length)), 1)) : re("", !0),
776
- ne.value ? (_(), w("span", vl, C(e.messages.collector.lastObserved(ne.value)), 1)) : re("", !0)
774
+ g("span", ml, [
775
+ e.binding.isList ? (_(), w("span", vl, C(e.messages.collector.sampleCount(K.value.length)), 1)) : re("", !0),
776
+ ne.value ? (_(), w("span", gl, C(e.messages.collector.lastObserved(ne.value)), 1)) : re("", !0)
777
777
  ]),
778
- g("span", gl, [
778
+ g("span", hl, [
779
779
  J.value ? (_(), w("button", {
780
780
  key: 0,
781
781
  type: "button",
782
782
  class: "aimd-rec-collector__button aimd-rec-collector__button--danger",
783
783
  disabled: e.disabled,
784
784
  onClick: B[0] || (B[0] = (le) => a("stop"))
785
- }, C(e.messages.collector.stop), 9, hl)) : (_(), w("button", {
785
+ }, C(e.messages.collector.stop), 9, pl)) : (_(), w("button", {
786
786
  key: 1,
787
787
  type: "button",
788
788
  class: "aimd-rec-collector__button aimd-rec-collector__button--primary",
789
789
  disabled: !ue.value,
790
790
  onClick: ie
791
- }, C(e.state.status === "error" ? e.messages.collector.retry : e.binding.collector.mode === "snapshot" ? e.messages.collector.snapshot : e.messages.collector.start), 9, pl)),
791
+ }, C(e.state.status === "error" ? e.messages.collector.retry : e.binding.collector.mode === "snapshot" ? e.messages.collector.snapshot : e.messages.collector.start), 9, yl)),
792
792
  e.binding.collector.manual_fallback ? (_(), w("button", {
793
793
  key: 2,
794
794
  type: "button",
@@ -796,11 +796,11 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
796
796
  disabled: e.disabled || ae.value,
797
797
  "aria-expanded": i.value,
798
798
  onClick: ye
799
- }, C(i.value ? e.messages.collector.cancelManual : e.messages.collector.manualEntry), 9, yl)) : re("", !0)
799
+ }, C(i.value ? e.messages.collector.cancelManual : e.messages.collector.manualEntry), 9, bl)) : re("", !0)
800
800
  ])
801
801
  ]),
802
- ge.value ? (_(), w("span", bl, C(ge.value), 1)) : re("", !0),
803
- i.value ? (_(), w("span", _l, [
802
+ ge.value ? (_(), w("span", _l, C(ge.value), 1)) : re("", !0),
803
+ i.value ? (_(), w("span", kl, [
804
804
  Nt(g("textarea", {
805
805
  "onUpdate:modelValue": B[1] || (B[1] = (le) => h.value = le),
806
806
  "data-rec-focus-key": `var:${e.node.id}`,
@@ -809,7 +809,7 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
809
809
  placeholder: `${e.messages.collector.valuePlaceholder} (${z.value})`,
810
810
  disabled: e.disabled,
811
811
  onBlur: B[2] || (B[2] = (le) => a("blur"))
812
- }, null, 40, kl), [
812
+ }, null, 40, wl), [
813
813
  [ba, h.value]
814
814
  ]),
815
815
  Nt(g("input", {
@@ -819,7 +819,7 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
819
819
  placeholder: e.messages.collector.reasonPlaceholder,
820
820
  disabled: e.disabled,
821
821
  onBlur: B[4] || (B[4] = (le) => a("blur"))
822
- }, null, 40, wl), [
822
+ }, null, 40, Sl), [
823
823
  [ba, o.value]
824
824
  ]),
825
825
  g("button", {
@@ -827,28 +827,28 @@ const el = ["data-rec-collector"], tl = { class: "aimd-rec-collector__header" },
827
827
  class: "aimd-rec-collector__button aimd-rec-collector__button--primary",
828
828
  disabled: e.disabled,
829
829
  onClick: oe
830
- }, C(e.messages.collector.saveManual), 9, Sl),
831
- m.value ? (_(), w("span", Cl, C(m.value), 1)) : re("", !0)
830
+ }, C(e.messages.collector.saveManual), 9, Cl),
831
+ m.value ? (_(), w("span", xl, C(m.value), 1)) : re("", !0)
832
832
  ])) : re("", !0)
833
- ], 10, el));
833
+ ], 10, tl));
834
834
  }
835
835
  });
836
836
  function Va(e) {
837
837
  return e.field.parentKey ? [e.field.key, e.field.parentKey] : [e.field.key];
838
838
  }
839
- function $l(e) {
840
- return typeof HTMLInputElement < "u" && e instanceof HTMLInputElement || typeof HTMLTextAreaElement < "u" && e instanceof HTMLTextAreaElement;
841
- }
842
839
  function Al(e) {
843
- return e.matches("input, textarea, select, button, [tabindex]:not([tabindex='-1'])") ? e : e.querySelector("input, textarea, select, button, [tabindex]:not([tabindex='-1'])") ?? e;
840
+ return typeof HTMLInputElement < "u" && e instanceof HTMLInputElement || typeof HTMLTextAreaElement < "u" && e instanceof HTMLTextAreaElement;
844
841
  }
845
842
  function El(e) {
846
- return $l(e) ? e : e.querySelector("textarea, input");
843
+ return e.matches("input, textarea, select, button, [tabindex]:not([tabindex='-1'])") ? e : e.querySelector("input, textarea, select, button, [tabindex]:not([tabindex='-1'])") ?? e;
847
844
  }
848
845
  function Fl(e) {
846
+ return Al(e) ? e : e.querySelector("textarea, input");
847
+ }
848
+ function Tl(e) {
849
849
  const t = O(""), n = O(""), a = O(0), i = O(e.defaultExpanded), h = O(/* @__PURE__ */ new Set());
850
850
  let o = null;
851
- const m = k(() => Kn(e.fields.value)), c = k(() => !!(t.value.trim() || n.value)), z = k(() => i.value || c.value), P = k(() => Zr(
851
+ const m = k(() => Kn(e.fields.value)), c = k(() => !!(t.value.trim() || n.value)), z = k(() => i.value || c.value), P = k(() => el(
852
852
  e.record,
853
853
  t.value,
854
854
  m.value,
@@ -883,7 +883,7 @@ function Fl(e) {
883
883
  const le = [];
884
884
  return ue.value.has(B) && le.push("aimd-field--record-search-match"), J.value.has(B) && le.push("aimd-field--record-search-active"), h.value.has(B) && le.push("aimd-field--record-search-pulse"), le;
885
885
  }
886
- function H(B) {
886
+ function U(B) {
887
887
  if (!e.contentRoot.value)
888
888
  return null;
889
889
  const le = e.contentRoot.value.querySelectorAll("[data-rec-focus-key]");
@@ -896,7 +896,7 @@ function Fl(e) {
896
896
  return null;
897
897
  }
898
898
  function R(B, le) {
899
- const se = El(B);
899
+ const se = Fl(B);
900
900
  if (!se)
901
901
  return;
902
902
  const F = t.value.trim();
@@ -924,11 +924,11 @@ function Fl(e) {
924
924
  const se = P.value[a.value];
925
925
  if (!se)
926
926
  return;
927
- const F = H(se.field.focusKey);
927
+ const F = U(se.field.focusKey);
928
928
  if (ne(se), !F)
929
929
  return;
930
930
  F.scrollIntoView?.({ block: "center", inline: "nearest", behavior: "smooth" });
931
- const q = Al(F);
931
+ const q = El(F);
932
932
  try {
933
933
  q.focus({ preventScroll: !0 });
934
934
  } catch {
@@ -936,7 +936,7 @@ function Fl(e) {
936
936
  }
937
937
  R(q, se);
938
938
  }
939
- function U() {
939
+ function H() {
940
940
  i.value = !0;
941
941
  }
942
942
  function ie() {
@@ -971,7 +971,7 @@ function Fl(e) {
971
971
  activeMatchIndex: a,
972
972
  clear: N,
973
973
  collapse: ie,
974
- expand: U,
974
+ expand: H,
975
975
  fieldKey: n,
976
976
  fieldRefs: m,
977
977
  focusNextMatch: oe,
@@ -983,7 +983,7 @@ function Fl(e) {
983
983
  resultLabel: K
984
984
  };
985
985
  }
986
- const yn = Ht(() => import("./AimdCodeField-lUbFTqiD.js")), Tl = Ht(() => import("./AimdEntityRefField-GA6-mhGU.js"));
986
+ const yn = Ht(() => import("./AimdCodeField-lUbFTqiD.js")), Rl = Ht(() => import("./AimdEntityRefField-DCE79vca.js"));
987
987
  function bn(e) {
988
988
  return typeof e == "string" && e.trim() ? e.trim() : void 0;
989
989
  }
@@ -994,7 +994,7 @@ function jn(e) {
994
994
  const t = e.example;
995
995
  return t == null ? [] : [t];
996
996
  }
997
- function Rl(e) {
997
+ function Ml(e) {
998
998
  const t = [];
999
999
  let n = "", a = !1;
1000
1000
  for (let i = 0; i < e.length; i += 1) {
@@ -1003,8 +1003,8 @@ function Rl(e) {
1003
1003
  }
1004
1004
  return t.push(n.trim()), t;
1005
1005
  }
1006
- function Ml(e) {
1007
- return e.split(/\r?\n/).map((t) => t.trim()).filter(Boolean).slice(0, 4).map(Rl);
1006
+ function zl(e) {
1007
+ return e.split(/\r?\n/).map((t) => t.trim()).filter(Boolean).slice(0, 4).map(Ml);
1008
1008
  }
1009
1009
  function Bt(e, t) {
1010
1010
  if (!e || typeof e != "object" || Array.isArray(e))
@@ -1040,7 +1040,7 @@ function _n(e, t = {}) {
1040
1040
  size: Hn(e, ["size", "byteSize", "byte_size"]) ?? t.size
1041
1041
  };
1042
1042
  }
1043
- function zl(e) {
1043
+ function ql(e) {
1044
1044
  if (!Number.isFinite(e) || e === void 0 || e < 0)
1045
1045
  return "";
1046
1046
  if (e < 1024)
@@ -1054,28 +1054,28 @@ function zl(e) {
1054
1054
  function kn(e, t) {
1055
1055
  return e.length === t.length && e.every((n, a) => Object.is(n, t[a]));
1056
1056
  }
1057
- const ql = 50, Vl = 8, Dl = 42;
1057
+ const Vl = 50, Dl = 8, Il = 42;
1058
1058
  let Ft;
1059
- function Il(e) {
1059
+ function Ll(e) {
1060
1060
  return Array.from(e).reduce((t, n) => (n.codePointAt(0) ?? 0) >= 4352 ? t + 1 : /\s/.test(n) ? t + 0.35 : /[ilI|.,'`!:;]/.test(n) ? t + 0.3 : /[mwMW@#%&]/.test(n) ? t + 0.82 : /[A-Z0-9]/.test(n) ? t + 0.62 : /[a-z]/.test(n) ? t + 0.56 : t + 0.65, 0);
1061
1061
  }
1062
1062
  function wn(e) {
1063
- return e.split(/\r\n|\r|\n/).reduce((t, n) => Math.max(t, Il(n)), 0);
1063
+ return e.split(/\r\n|\r|\n/).reduce((t, n) => Math.max(t, Ll(n)), 0);
1064
1064
  }
1065
- function Ll(e) {
1065
+ function Pl(e) {
1066
1066
  return /\r|\n/.test(e);
1067
1067
  }
1068
1068
  function Un(e, t) {
1069
1069
  const n = e.trim();
1070
1070
  return n.length > 0 ? Math.ceil(Math.max(2.4, wn(n) + 0.75) * 10) / 10 : Math.ceil(Math.max(3.4, wn(t ?? "") + 0.75) * 10) / 10;
1071
1071
  }
1072
- function Pl(e, t) {
1072
+ function Bl(e, t) {
1073
1073
  return Math.ceil(Un(e, t) * 14 + 16);
1074
1074
  }
1075
- function Bl(e, t) {
1076
- return e.trim().length > 0 && Un(e, t) > Dl;
1075
+ function Ol(e, t) {
1076
+ return e.trim().length > 0 && Un(e, t) > Il;
1077
1077
  }
1078
- function Ol() {
1078
+ function Nl() {
1079
1079
  if (Ft !== void 0)
1080
1080
  return Ft;
1081
1081
  if (typeof document > "u")
@@ -1088,32 +1088,32 @@ function Ol() {
1088
1088
  }
1089
1089
  return Ft;
1090
1090
  }
1091
- function Nl(e) {
1091
+ function Kl(e) {
1092
1092
  return e.font && e.font !== "" ? e.font : `${e.fontStyle} ${e.fontVariant} ${e.fontWeight} ${e.fontSize} ${e.fontFamily}`;
1093
1093
  }
1094
1094
  function fa(e) {
1095
1095
  const t = Number.parseFloat(e);
1096
1096
  return Number.isFinite(t) ? t : 0;
1097
1097
  }
1098
- function Kl(e) {
1098
+ function jl(e) {
1099
1099
  return e.boxSizing !== "border-box" ? 0 : fa(e.paddingLeft) + fa(e.paddingRight) + fa(e.borderLeftWidth) + fa(e.borderRightWidth);
1100
1100
  }
1101
- function jl(e) {
1101
+ function Hl(e) {
1102
1102
  if (typeof window > "u" || typeof window.getComputedStyle != "function")
1103
1103
  return null;
1104
- const t = Ol();
1104
+ const t = Nl();
1105
1105
  if (!t)
1106
1106
  return null;
1107
1107
  const n = window.getComputedStyle(e);
1108
- t.font = Nl(n);
1108
+ t.font = Kl(n);
1109
1109
  const i = (e.value.length > 0 ? e.value : e.placeholder).split(/\r\n|\r|\n/).reduce((h, o) => Math.max(h, t.measureText(o).width), 0);
1110
1110
  return Math.ceil(Math.max(
1111
- ql,
1112
- i + Kl(n) + Vl
1111
+ Vl,
1112
+ i + jl(n) + Dl
1113
1113
  ));
1114
1114
  }
1115
1115
  function ya(e) {
1116
- const t = jl(e);
1116
+ const t = Hl(e);
1117
1117
  t !== null && e.style.setProperty("--aimd-rec-scalar-list-input-width", `${t}px`);
1118
1118
  }
1119
1119
  function Da(e) {
@@ -1122,7 +1122,7 @@ function Da(e) {
1122
1122
  function Sn(e, t) {
1123
1123
  return JSON.stringify(aa(va(e), t), null, 2);
1124
1124
  }
1125
- function Hl(e, t) {
1125
+ function Ul(e, t) {
1126
1126
  if (e === null || Array.isArray(e) || typeof e == "object")
1127
1127
  return !1;
1128
1128
  if (t === "string")
@@ -1145,9 +1145,9 @@ function Cn(e, t) {
1145
1145
  } catch {
1146
1146
  return { ok: !1, error: "syntax" };
1147
1147
  }
1148
- return Array.isArray(a) ? a.every((i) => Hl(i, t)) ? { ok: !0, value: aa(a, t) } : { ok: !1, error: "item" } : { ok: !1, error: "array" };
1148
+ return Array.isArray(a) ? a.every((i) => Ul(i, t)) ? { ok: !0, value: aa(a, t) } : { ok: !1, error: "item" } : { ok: !1, error: "array" };
1149
1149
  }
1150
- function Ul(e) {
1150
+ function Wl(e) {
1151
1151
  return e === "int" ? "[1, 2]" : e === "float" ? "[1.2, 3.4]" : '["alpha", "beta"]';
1152
1152
  }
1153
1153
  function Tt(e) {
@@ -1196,7 +1196,7 @@ function Tt(e) {
1196
1196
  l("path", { d: "M14 11v5" })
1197
1197
  ]);
1198
1198
  }
1199
- function Wl(e, t) {
1199
+ function Gl(e, t) {
1200
1200
  const n = t.map(xa).map((h) => h.trim()).filter(Boolean), a = n.length > 0 ? `e.g. ${n.join(", ")}` : void 0;
1201
1201
  return {
1202
1202
  tooltip: [e, a].filter((h) => !!h).join(`
@@ -1205,7 +1205,7 @@ function Wl(e, t) {
1205
1205
  examples: n
1206
1206
  };
1207
1207
  }
1208
- function Gl(e) {
1208
+ function Ql(e) {
1209
1209
  if (!e.description && e.examples.length === 0)
1210
1210
  return null;
1211
1211
  const t = [];
@@ -1222,7 +1222,7 @@ function Gl(e) {
1222
1222
  role: "tooltip"
1223
1223
  }, t);
1224
1224
  }
1225
- const Ql = Ye({
1225
+ const Yl = Ye({
1226
1226
  name: "AimdVarField",
1227
1227
  props: {
1228
1228
  node: { type: Object, required: !0 },
@@ -1259,29 +1259,29 @@ const Ql = Ye({
1259
1259
  o.value = null, m.value = "items", c.value = null, z.value = "", P.value = null, ae.value = null;
1260
1260
  return;
1261
1261
  }
1262
- const E = rn(e.node.definition?.type || "str") ?? "string", H = aa(va(K), E);
1262
+ const E = rn(e.node.definition?.type || "str") ?? "string", U = aa(va(K), E);
1263
1263
  if (o.value) {
1264
1264
  const R = aa(o.value, E);
1265
- kn(H, R) || (o.value = null);
1265
+ kn(U, R) || (o.value = null);
1266
1266
  }
1267
1267
  if (c.value !== null) {
1268
1268
  const R = Cn(c.value, E);
1269
- R.ok && !kn(H, R.value) && (c.value = null, z.value = "");
1269
+ R.ok && !kn(U, R.value) && (c.value = null, z.value = "");
1270
1270
  }
1271
1271
  },
1272
1272
  { immediate: !0 }
1273
1273
  ), Se(
1274
1274
  () => {
1275
- const J = e.node.definition?.type || "str", K = ga(J), E = da(J, e.node.definition?.kwargs, e.fieldMeta), H = Xt(e.value), R = i.value?.url || (H && e.resolveFile ? e.resolveFile(H) : null);
1275
+ const J = e.node.definition?.type || "str", K = ga(J), E = da(J, e.node.definition?.kwargs, e.fieldMeta), U = Xt(e.value), R = i.value?.url || (U && e.resolveFile ? e.resolveFile(U) : null);
1276
1276
  return E.kind === "csv" && R ? `${K}
1277
1277
  ${R}` : "";
1278
1278
  },
1279
1279
  (J) => {
1280
1280
  const K = ++ue, [, E] = J.split(`
1281
1281
  `);
1282
- a.value = null, !(!E || typeof fetch != "function") && fetch(E).then((H) => H.ok ? H.text() : "").then((H) => {
1283
- if (K !== ue || !H) return;
1284
- const R = Ml(H);
1282
+ a.value = null, !(!E || typeof fetch != "function") && fetch(E).then((U) => U.ok ? U.text() : "").then((U) => {
1283
+ if (K !== ue || !U) return;
1284
+ const R = zl(U);
1285
1285
  R.length > 0 && (a.value = { url: E, rows: R });
1286
1286
  }).catch(() => {
1287
1287
  });
@@ -1289,16 +1289,16 @@ ${R}` : "";
1289
1289
  { immediate: !0 }
1290
1290
  ), Se(
1291
1291
  () => {
1292
- const J = e.node.definition?.type || "str", K = ga(J), E = da(J, e.node.definition?.kwargs, e.fieldMeta), H = Xt(e.value), R = H && e.resolveFile ? e.resolveFile(H) : null;
1292
+ const J = e.node.definition?.type || "str", K = ga(J), E = da(J, e.node.definition?.kwargs, e.fieldMeta), U = Xt(e.value), R = U && e.resolveFile ? e.resolveFile(U) : null;
1293
1293
  return {
1294
- fileId: H ?? "",
1294
+ fileId: U ?? "",
1295
1295
  fallbackUrl: R ?? "",
1296
1296
  kind: E.kind,
1297
1297
  type: J,
1298
1298
  normalizedType: K
1299
1299
  };
1300
1300
  },
1301
- async ({ fileId: J, fallbackUrl: K, kind: E, type: H, normalizedType: R }) => {
1301
+ async ({ fileId: J, fallbackUrl: K, kind: E, type: U, normalizedType: R }) => {
1302
1302
  if (!J) {
1303
1303
  i.value = null;
1304
1304
  return;
@@ -1316,8 +1316,8 @@ ${R}` : "";
1316
1316
  ge
1317
1317
  ), !e.resolveFileInfo)
1318
1318
  return;
1319
- const U = {
1320
- type: H,
1319
+ const H = {
1320
+ type: U,
1321
1321
  normalizedType: R,
1322
1322
  fieldKey: `var:${e.node.id}`,
1323
1323
  node: e.node,
@@ -1325,7 +1325,7 @@ ${R}` : "";
1325
1325
  kind: E
1326
1326
  };
1327
1327
  try {
1328
- const ie = await e.resolveFileInfo(J, U);
1328
+ const ie = await e.resolveFileInfo(J, H);
1329
1329
  if (Xt(e.value) !== J)
1330
1330
  return;
1331
1331
  i.value = _n(ie, i.value ?? ge);
@@ -1334,9 +1334,9 @@ ${R}` : "";
1334
1334
  },
1335
1335
  { immediate: !0 }
1336
1336
  ), () => {
1337
- const J = e.node, K = J.id, E = J.definition?.type || "str", H = ga(E), R = e.inputKind, ne = H === "int" || H === "integer", ge = R === "number" && !ne, U = e.fieldMeta, ie = e.disabled, ye = e.extraClasses, oe = U?.placeholder ?? Yl(J, U), N = e.displayValue, B = ai(E, U) ?? "plaintext", le = R === "number" ? ni(E, J.definition?.kwargs) : {}, se = R === "number" ? sn(N, E, J.definition?.kwargs) : null;
1337
+ const J = e.node, K = J.id, E = J.definition?.type || "str", U = ga(E), R = e.inputKind, ne = ai(E), ge = R === "number" && !ne, H = e.fieldMeta, ie = e.disabled, ye = e.extraClasses, oe = H?.placeholder ?? Jl(J, H), N = e.displayValue, B = ni(E, H) ?? "plaintext", le = R === "number" ? ii(E, J.definition?.kwargs) : {}, se = R === "number" ? sn(N, E, J.definition?.kwargs) : null;
1338
1338
  function F(A) {
1339
- const L = li(A, E, R, {
1339
+ const L = si(A, E, R, {
1340
1340
  typePlugin: e.typePlugin
1341
1341
  });
1342
1342
  t("change", { id: K, value: L, type: E, inputKind: R });
@@ -1355,16 +1355,16 @@ ${R}` : "";
1355
1355
  if (L.value = "", !x)
1356
1356
  return;
1357
1357
  n.value = "";
1358
- const $ = da(E, J.definition?.kwargs, U);
1358
+ const $ = da(E, J.definition?.kwargs, H);
1359
1359
  try {
1360
1360
  const I = (e.uploadFile ? await e.uploadFile(x, {
1361
1361
  type: E,
1362
- normalizedType: H,
1362
+ normalizedType: U,
1363
1363
  fieldKey: `var:${K}`,
1364
1364
  node: J,
1365
- fieldMeta: U,
1365
+ fieldMeta: H,
1366
1366
  accept: $.accept
1367
- }) : void 0) ?? si(x), j = Xt(I);
1367
+ }) : void 0) ?? oi(x), j = Xt(I);
1368
1368
  h.value = {
1369
1369
  id: j,
1370
1370
  name: x.name,
@@ -1389,7 +1389,7 @@ ${R}` : "";
1389
1389
  e.assignerStatus ? l("span", { class: "aimd-rec-inline__header-assigner-state" }, [e.assignerStatus]) : null
1390
1390
  ]);
1391
1391
  }, he = (A) => {
1392
- const L = bn(U?.title), x = ja(J.definition), $ = L ?? ta(K, J.definition), v = (L ?? x) !== void 0 && $ !== K, I = bn(U?.description) ?? On(J.definition), j = jn(U), p = j.length > 0 ? j : _a(J.definition), D = Wl(I, p), b = !!D.description || D.examples.length > 0;
1392
+ const L = bn(H?.title), x = ja(J.definition), $ = L ?? ta(K, J.definition), v = (L ?? x) !== void 0 && $ !== K, I = bn(H?.description) ?? On(J.definition), j = jn(H), p = j.length > 0 ? j : _a(J.definition), D = Gl(I, p), b = !!D.description || D.examples.length > 0;
1393
1393
  return l("span", {
1394
1394
  class: [
1395
1395
  "aimd-field",
@@ -1411,7 +1411,7 @@ ${R}` : "";
1411
1411
  l("span", { class: "aimd-field__title", title: $ }, $),
1412
1412
  e.required ? l(bt, { label: e.messages.common.required }) : null,
1413
1413
  v ? l("span", { class: "aimd-field__key", title: K }, K) : null,
1414
- Gl(D)
1414
+ Ql(D)
1415
1415
  ]),
1416
1416
  me(A)
1417
1417
  ]);
@@ -1419,7 +1419,7 @@ ${R}` : "";
1419
1419
  e.assignerControl ? l("span", { class: "aimd-rec-inline__assigner-prefix" }, [e.assignerControl]) : null,
1420
1420
  l("span", { class: "aimd-rec-inline__control-main" }, [A]),
1421
1421
  e.assignerStatus ? l("span", { class: "aimd-rec-inline__assigner-status" }, [e.assignerStatus]) : null
1422
- ]), be = () => e.assignerError ? l("span", { class: "aimd-rec-inline__assigner-error" }, e.assignerError) : null, G = U?.enumOptions ?? [];
1422
+ ]), be = () => e.assignerError ? l("span", { class: "aimd-rec-inline__assigner-error" }, e.assignerError) : null, G = H?.enumOptions ?? [];
1423
1423
  if (G.length) {
1424
1424
  const A = Pn(G, e.value), L = Ka(E) ? null : "", x = L === null || A === "", $ = L === null ? Wa(e.messages) : oe ?? "";
1425
1425
  return l("span", {
@@ -1467,7 +1467,7 @@ ${R}` : "";
1467
1467
  "data-rec-focus-key": `var:${K}`,
1468
1468
  type: "checkbox",
1469
1469
  disabled: ie,
1470
- checked: ii(e.value),
1470
+ checked: ri(e.value),
1471
1471
  onVnodeMounted: (A) => gt(A.el, R),
1472
1472
  onVnodeUpdated: (A) => gt(A.el, R),
1473
1473
  onChange: (A) => {
@@ -1525,14 +1525,14 @@ ${R}` : "";
1525
1525
  { controlRow: !1 }
1526
1526
  );
1527
1527
  if (R === "entity-ref") {
1528
- const A = ri(E, J.definition?.kwargs, U) ?? { multiple: !1 };
1528
+ const A = li(E, J.definition?.kwargs, H) ?? { multiple: !1 };
1529
1529
  return Q(
1530
- l(Tl, {
1530
+ l(Rl, {
1531
1531
  node: J,
1532
1532
  value: e.value,
1533
1533
  disabled: ie,
1534
1534
  messages: e.messages,
1535
- fieldMeta: U,
1535
+ fieldMeta: H,
1536
1536
  type: E,
1537
1537
  entityConfig: A,
1538
1538
  entityResolvers: e.entityResolvers,
@@ -1549,7 +1549,7 @@ ${R}` : "";
1549
1549
  );
1550
1550
  }
1551
1551
  if (R === "file") {
1552
- const A = da(E, J.definition?.kwargs, U), L = Xt(e.value), x = i.value, $ = x?.name || ln(e.value), v = !!(L || $), I = $ || (v ? e.messages.file.selected : oe || e.messages.file.choose), j = x?.url || (L && e.resolveFile ? e.resolveFile(L) : null), p = x?.thumbnailUrl || j, D = zl(x?.size), b = [A.badge, D].filter(Boolean).join(" · "), M = l("input", {
1552
+ const A = da(E, J.definition?.kwargs, H), L = Xt(e.value), x = i.value, $ = x?.name || ln(e.value), v = !!(L || $), I = $ || (v ? e.messages.file.selected : oe || e.messages.file.choose), j = x?.url || (L && e.resolveFile ? e.resolveFile(L) : null), p = x?.thumbnailUrl || j, D = ql(x?.size), b = [A.badge, D].filter(Boolean).join(" · "), M = l("input", {
1553
1553
  "data-rec-focus-key": `var:${K}`,
1554
1554
  class: "aimd-rec-file-field__input",
1555
1555
  type: "file",
@@ -1739,7 +1739,7 @@ ${R}` : "";
1739
1739
  it("json", e.messages.scalarList.jsonMode)
1740
1740
  ])
1741
1741
  ]), ee = l("span", { class: "aimd-rec-scalar-list__rows" }, $.map((Y, fe) => {
1742
- const ke = !ie && ($.length > 1 || Y.trim().length > 0), ot = !ie && $.length > 1, wt = ae.value === fe, St = wt && P.value !== null && P.value < fe ? "after" : "before", Ke = e.messages.scalarList.itemIndex(fe + 1), Le = oe ?? e.messages.scalarList.itemPlaceholder, dt = !L && Ll(Y), Ct = !L && Bl(Y, Le), xt = {
1742
+ const ke = !ie && ($.length > 1 || Y.trim().length > 0), ot = !ie && $.length > 1, wt = ae.value === fe, St = wt && P.value !== null && P.value < fe ? "after" : "before", Ke = e.messages.scalarList.itemIndex(fe + 1), Le = oe ?? e.messages.scalarList.itemPlaceholder, dt = !L && Pl(Y), Ct = !L && Ol(Y, Le), xt = {
1743
1743
  "data-rec-focus-key": fe === 0 ? `var:${K}` : `var:${K}:${fe}`,
1744
1744
  class: [
1745
1745
  "aimd-rec-scalar-list__input",
@@ -1750,7 +1750,7 @@ ${R}` : "";
1750
1750
  title: Y.trim().length > 0 ? Y : void 0,
1751
1751
  value: Y,
1752
1752
  style: {
1753
- "--aimd-rec-scalar-list-input-width": `${Pl(Y, Le)}px`
1753
+ "--aimd-rec-scalar-list-input-width": `${Bl(Y, Le)}px`
1754
1754
  },
1755
1755
  onBlur: q
1756
1756
  };
@@ -1853,7 +1853,7 @@ ${R}` : "";
1853
1853
  language: "json",
1854
1854
  disabled: ie,
1855
1855
  compact: !0,
1856
- "aria-label": Ul(A),
1856
+ "aria-label": Wl(A),
1857
1857
  "onUpdate:modelValue": (Y) => Ce(Y),
1858
1858
  onBlur: q
1859
1859
  }),
@@ -1934,7 +1934,7 @@ ${R}` : "";
1934
1934
  };
1935
1935
  }
1936
1936
  });
1937
- function Yl(e, t) {
1937
+ function Jl(e, t) {
1938
1938
  const n = e.definition?.kwargs?.placeholder;
1939
1939
  if (typeof n == "string" && n.trim())
1940
1940
  return n.trim();
@@ -1978,7 +1978,7 @@ function Pt(e, t = e) {
1978
1978
  function ma(e) {
1979
1979
  return typeof e == "string" && e.trim() ? e.trim() : void 0;
1980
1980
  }
1981
- function Jl(e) {
1981
+ function Xl(e) {
1982
1982
  return e.map((t) => ({
1983
1983
  label: String(t),
1984
1984
  value: t
@@ -1991,7 +1991,7 @@ function An(e) {
1991
1991
  const t = e.example;
1992
1992
  return t == null ? [] : [t];
1993
1993
  }
1994
- function Xl(e, t) {
1994
+ function Zl(e, t) {
1995
1995
  const n = t.map(xa).map((h) => h.trim()).filter(Boolean), a = n.length > 0 ? `e.g. ${n.join(", ")}` : void 0;
1996
1996
  return {
1997
1997
  tooltip: [e, a].filter((h) => !!h).join(`
@@ -2017,7 +2017,7 @@ function En(e) {
2017
2017
  role: "tooltip"
2018
2018
  }, t);
2019
2019
  }
2020
- const Zl = Ye({
2020
+ const es = Ye({
2021
2021
  name: "AimdVarTableField",
2022
2022
  props: {
2023
2023
  node: { type: Object, required: !0 },
@@ -2080,7 +2080,7 @@ const Zl = Ye({
2080
2080
  }
2081
2081
  m === X ? c += 1 : (m = X, c = 1), c >= 2 && (a.value = X, m = null, c = 0);
2082
2082
  }
2083
- function H() {
2083
+ function U() {
2084
2084
  o !== null && cancelAnimationFrame(o), o = requestAnimationFrame(() => {
2085
2085
  o = null, E();
2086
2086
  });
@@ -2088,11 +2088,11 @@ const Zl = Ye({
2088
2088
  function R() {
2089
2089
  let F = 4;
2090
2090
  const q = () => {
2091
- if (H(), F -= 1, F > 0) {
2091
+ if (U(), F -= 1, F > 0) {
2092
2092
  requestAnimationFrame(q);
2093
2093
  return;
2094
2094
  }
2095
- i.value = !0, H();
2095
+ i.value = !0, U();
2096
2096
  };
2097
2097
  requestAnimationFrame(q);
2098
2098
  }
@@ -2102,22 +2102,22 @@ const Zl = Ye({
2102
2102
  function ge() {
2103
2103
  return e.fieldMeta?.[`var_table:${e.node.id}`];
2104
2104
  }
2105
- function U(F) {
2105
+ function H(F) {
2106
2106
  const q = e.fieldMeta?.[`var_table:${e.node.id}:${F}`], X = ha(ne(F));
2107
2107
  return X.length > 0 && !q?.enumOptions ? {
2108
2108
  ...q ?? {},
2109
- enumOptions: Jl(X)
2109
+ enumOptions: Xl(X)
2110
2110
  } : q;
2111
2111
  }
2112
2112
  function ie(F, q) {
2113
2113
  const X = ma(q?.description) ?? On(F), W = An(q), de = W.length > 0 ? W : _a(F);
2114
- return Xl(X, de);
2114
+ return Zl(X, de);
2115
2115
  }
2116
2116
  function ye(F) {
2117
- return ma(U(F)?.title) ?? ta(F, ne(F));
2117
+ return ma(H(F)?.title) ?? ta(F, ne(F));
2118
2118
  }
2119
2119
  function oe(F) {
2120
- const q = ne(F), X = U(F);
2120
+ const q = ne(F), X = H(F);
2121
2121
  if (typeof X?.placeholder == "string" && X.placeholder.trim())
2122
2122
  return X.placeholder.trim();
2123
2123
  const W = q?.kwargs?.placeholder;
@@ -2127,7 +2127,7 @@ const Zl = Ye({
2127
2127
  return me != null && typeof me != "object" ? xa(me) : "";
2128
2128
  }
2129
2129
  function N(F, q, X, W, de) {
2130
- const me = U(q)?.enumOptions ?? [], he = `var_table:${F}:${X}:${q}`, V = P(q), be = oe(q);
2130
+ const me = H(q)?.enumOptions ?? [], he = `var_table:${F}:${X}:${q}`, V = P(q), be = oe(q);
2131
2131
  if (me.length > 0) {
2132
2132
  const G = Pn(me, W[q]), Q = Ka(ne(q)?.type) ? null : "", Ae = Q === null || G === "", pe = Q === null ? Wa(e.messages) : be;
2133
2133
  return l("select", {
@@ -2249,24 +2249,24 @@ const Zl = Ye({
2249
2249
  }, [xn()])
2250
2250
  ]),
2251
2251
  be ? l("div", { class: "aimd-rec-card__field aimd-rec-card__field--title" }, [
2252
- le(be, ne(be), "aimd-rec-card__label", U(be), e.requiredColumns.includes(be)),
2252
+ le(be, ne(be), "aimd-rec-card__label", H(be), e.requiredColumns.includes(be)),
2253
2253
  B(F, be, he, me, "aimd-rec-card__input")
2254
2254
  ]) : null,
2255
2255
  l("div", { class: "aimd-rec-card__body" }, G.map((Q) => l("div", {
2256
2256
  key: `${F}-${V}-${Q}`,
2257
2257
  class: "aimd-rec-card__field"
2258
2258
  }, [
2259
- le(Q, ne(Q), "aimd-rec-card__label", U(Q), e.requiredColumns.includes(Q)),
2259
+ le(Q, ne(Q), "aimd-rec-card__label", H(Q), e.requiredColumns.includes(Q)),
2260
2260
  B(F, Q, he, me, "aimd-rec-card__input")
2261
2261
  ])))
2262
2262
  ]);
2263
2263
  });
2264
2264
  }
2265
2265
  return Ya(() => {
2266
- n.value && (h = new ResizeObserver(() => H()), h.observe(n.value), je(() => R()));
2266
+ n.value && (h = new ResizeObserver(() => U()), h.observe(n.value), je(() => R()));
2267
2267
  }), Mt(() => {
2268
2268
  h?.disconnect(), o !== null && cancelAnimationFrame(o);
2269
- }), Se(() => e.columns, () => je(() => H())), Se(() => e.rows, () => je(() => H()), { deep: !0 }), () => {
2269
+ }), Se(() => e.columns, () => je(() => U())), Se(() => e.rows, () => je(() => U()), { deep: !0 }), () => {
2270
2270
  const F = e.node.id, q = e.columns, X = e.rows, W = e.disabled, de = e.messages, me = ge(), he = ma(me?.title), V = ja(e.node.definition), be = ie(e.node.definition, me), G = he ?? ta(F, e.node.definition), Q = (he ?? V) !== void 0 && G !== F, Ae = !!be.description || be.examples.length > 0;
2271
2271
  return l("div", {
2272
2272
  ref: n,
@@ -2329,7 +2329,7 @@ const Zl = Ye({
2329
2329
  "data-column-kind": Pt(pe, ye(pe)),
2330
2330
  "data-column-id": pe
2331
2331
  }, [
2332
- le(pe, ne(pe), "aimd-rec-inline-table__column-label", U(pe), e.requiredColumns.includes(pe))
2332
+ le(pe, ne(pe), "aimd-rec-inline-table__column-label", H(pe), e.requiredColumns.includes(pe))
2333
2333
  ])),
2334
2334
  l("th", { class: "aimd-rec-inline-table__action-head" }, de.table.actionColumn)
2335
2335
  ])
@@ -2406,13 +2406,13 @@ const Zl = Ye({
2406
2406
  ]);
2407
2407
  };
2408
2408
  }
2409
- }), es = ["aria-label"], ts = {
2409
+ }), ts = ["aria-label"], as = {
2410
2410
  key: 1,
2411
2411
  class: "aimd-protocol-recorder__search"
2412
- }, as = ["aria-label", "value"], ns = { value: "" }, is = ["value"], rs = ["value", "placeholder", "aria-label"], ls = {
2412
+ }, ns = ["aria-label", "value"], is = { value: "" }, rs = ["value"], ls = ["value", "placeholder", "aria-label"], ss = {
2413
2413
  key: 0,
2414
2414
  class: "aimd-protocol-recorder__search-count"
2415
- }, ss = ["disabled", "aria-label", "title"], os = ["disabled", "aria-label", "title"], ds = ["aria-label", "title"], cs = ["aria-label", "title"], us = /* @__PURE__ */ Ye({
2415
+ }, os = ["disabled", "aria-label", "title"], ds = ["disabled", "aria-label", "title"], cs = ["aria-label", "title"], us = ["aria-label", "title"], fs = /* @__PURE__ */ Ye({
2416
2416
  __name: "AimdRecorderSearchToolbar",
2417
2417
  props: {
2418
2418
  fieldKey: {},
@@ -2434,19 +2434,19 @@ const Zl = Ye({
2434
2434
  ), (h, o) => (_(), w("div", {
2435
2435
  class: Oe(["aimd-protocol-recorder__search-shell", { "aimd-protocol-recorder__search-shell--expanded": e.panelVisible }])
2436
2436
  }, [
2437
- e.panelVisible ? (_(), w("div", ts, [
2437
+ e.panelVisible ? (_(), w("div", as, [
2438
2438
  g("select", {
2439
2439
  class: "aimd-protocol-recorder__search-field",
2440
2440
  "aria-label": e.messages.search.fieldLabel,
2441
2441
  value: e.fieldKey,
2442
2442
  onChange: o[1] || (o[1] = (m) => a("update:fieldKey", m.target.value))
2443
2443
  }, [
2444
- g("option", ns, C(e.messages.search.allFields), 1),
2444
+ g("option", is, C(e.messages.search.allFields), 1),
2445
2445
  (_(!0), w(Be, null, Ue(e.fieldRefs, (m) => (_(), w("option", {
2446
2446
  key: m.key,
2447
2447
  value: m.key
2448
- }, C(m.label), 9, is))), 128))
2449
- ], 40, as),
2448
+ }, C(m.label), 9, rs))), 128))
2449
+ ], 40, ns),
2450
2450
  g("input", {
2451
2451
  ref_key: "searchInputRef",
2452
2452
  ref: i,
@@ -2457,8 +2457,8 @@ const Zl = Ye({
2457
2457
  "aria-label": e.messages.search.label,
2458
2458
  onInput: o[2] || (o[2] = (m) => a("update:query", m.target.value)),
2459
2459
  onKeydown: o[3] || (o[3] = Ba(yt((m) => a("next"), ["prevent"]), ["enter"]))
2460
- }, null, 40, rs),
2461
- e.resultLabel ? (_(), w("span", ls, C(e.resultLabel), 1)) : re("", !0),
2460
+ }, null, 40, ls),
2461
+ e.resultLabel ? (_(), w("span", ss, C(e.resultLabel), 1)) : re("", !0),
2462
2462
  g("button", {
2463
2463
  type: "button",
2464
2464
  class: "aimd-protocol-recorder__search-button",
@@ -2466,7 +2466,7 @@ const Zl = Ye({
2466
2466
  "aria-label": e.messages.search.previous,
2467
2467
  title: e.messages.search.previous,
2468
2468
  onClick: o[4] || (o[4] = (m) => a("previous"))
2469
- }, " < ", 8, ss),
2469
+ }, " < ", 8, os),
2470
2470
  g("button", {
2471
2471
  type: "button",
2472
2472
  class: "aimd-protocol-recorder__search-button",
@@ -2474,7 +2474,7 @@ const Zl = Ye({
2474
2474
  "aria-label": e.messages.search.next,
2475
2475
  title: e.messages.search.next,
2476
2476
  onClick: o[5] || (o[5] = (m) => a("next"))
2477
- }, " > ", 8, os),
2477
+ }, " > ", 8, ds),
2478
2478
  e.query || e.fieldKey ? (_(), w("button", {
2479
2479
  key: 1,
2480
2480
  type: "button",
@@ -2482,7 +2482,7 @@ const Zl = Ye({
2482
2482
  "aria-label": e.messages.search.clear,
2483
2483
  title: e.messages.search.clear,
2484
2484
  onClick: o[6] || (o[6] = (m) => a("clear"))
2485
- }, " x ", 8, ds)) : (_(), w("button", {
2485
+ }, " x ", 8, cs)) : (_(), w("button", {
2486
2486
  key: 2,
2487
2487
  type: "button",
2488
2488
  class: "aimd-protocol-recorder__search-button aimd-protocol-recorder__search-button--collapse",
@@ -2490,7 +2490,7 @@ const Zl = Ye({
2490
2490
  "aria-label": e.messages.search.collapse,
2491
2491
  title: e.messages.search.collapse,
2492
2492
  onClick: o[7] || (o[7] = (m) => a("collapse"))
2493
- }, C(e.messages.search.collapse), 9, cs))
2493
+ }, C(e.messages.search.collapse), 9, us))
2494
2494
  ])) : (_(), w("button", {
2495
2495
  key: 0,
2496
2496
  type: "button",
@@ -2498,10 +2498,10 @@ const Zl = Ye({
2498
2498
  "data-rec-search-toggle": "",
2499
2499
  "aria-label": e.messages.search.label,
2500
2500
  onClick: o[0] || (o[0] = (m) => a("expand"))
2501
- }, C(e.messages.search.label), 9, es))
2501
+ }, C(e.messages.search.label), 9, ts))
2502
2502
  ], 2));
2503
2503
  }
2504
- }), fs = /* @__PURE__ */ kt(us, [["__scopeId", "data-v-11b82720"]]), Wn = Ht(() => import("./AimdMarkdownNoteField-BUq4fRcZ.js")), ms = Ye({
2504
+ }), ms = /* @__PURE__ */ kt(fs, [["__scopeId", "data-v-11b82720"]]), Wn = Ht(() => import("./AimdMarkdownNoteField-YnyNmBvM.js")), vs = Ye({
2505
2505
  name: "AimdStepField",
2506
2506
  props: {
2507
2507
  node: { type: Object, required: !0 },
@@ -2528,12 +2528,12 @@ const Zl = Ye({
2528
2528
  }, { immediate: !0 }), Mt(() => {
2529
2529
  m && clearInterval(m), c && clearTimeout(c);
2530
2530
  });
2531
- const P = k(() => e.detailDisplay === "always"), ae = k(() => oi(e.state, n.value)), ue = k(() => ht(ae.value, e.locale)), J = k(() => typeof e.node.estimated_duration_ms == "number" ? ht(e.node.estimated_duration_ms, e.locale) : ""), K = k(() => di(e.node)), E = k(() => ka(e.state)), H = k(() => ci(e.state)), R = k(() => !!e.state.annotation?.trim()), ne = k(() => ui(e.state, e.node.estimated_duration_ms, n.value)), ge = k(() => K.value === "countdown" || K.value === "both"), U = k(() => K.value === "elapsed" || K.value === "both"), ie = k(() => (E.value || H.value) && fi(ne.value, e.node.estimated_duration_ms)), ye = k(() => typeof ne.value == "number" && ne.value < 0), oe = k(() => ne.value == null ? "" : ye.value ? e.messages.step.overtimeBadge(ht(Math.abs(ne.value), e.locale)) : e.messages.step.remainingBadge(ht(Math.max(0, ne.value), e.locale))), N = k(() => ne.value == null ? "" : ye.value ? e.messages.step.overtimeDuration(ht(Math.abs(ne.value), e.locale)) : e.messages.step.remainingDuration(ht(Math.max(0, ne.value), e.locale))), B = k(() => ge.value), le = k(() => P.value || R.value || h.value), se = k(() => P.value || B.value || E.value || H.value || o.value), F = k(() => !se.value && (E.value || H.value));
2531
+ const P = k(() => e.detailDisplay === "always"), ae = k(() => di(e.state, n.value)), ue = k(() => ht(ae.value, e.locale)), J = k(() => typeof e.node.estimated_duration_ms == "number" ? ht(e.node.estimated_duration_ms, e.locale) : ""), K = k(() => ci(e.node)), E = k(() => ka(e.state)), U = k(() => ui(e.state)), R = k(() => !!e.state.annotation?.trim()), ne = k(() => fi(e.state, e.node.estimated_duration_ms, n.value)), ge = k(() => K.value === "countdown" || K.value === "both"), H = k(() => K.value === "elapsed" || K.value === "both"), ie = k(() => (E.value || U.value) && mi(ne.value, e.node.estimated_duration_ms)), ye = k(() => typeof ne.value == "number" && ne.value < 0), oe = k(() => ne.value == null ? "" : ye.value ? e.messages.step.overtimeBadge(ht(Math.abs(ne.value), e.locale)) : e.messages.step.remainingBadge(ht(Math.max(0, ne.value), e.locale))), N = k(() => ne.value == null ? "" : ye.value ? e.messages.step.overtimeDuration(ht(Math.abs(ne.value), e.locale)) : e.messages.step.remainingDuration(ht(Math.max(0, ne.value), e.locale))), B = k(() => ge.value), le = k(() => P.value || R.value || h.value), se = k(() => P.value || B.value || E.value || U.value || o.value), F = k(() => !se.value && (E.value || U.value));
2532
2532
  function q() {
2533
2533
  c && (clearTimeout(c), c = null);
2534
2534
  }
2535
2535
  function X() {
2536
- R.value || (h.value = !1), !B.value && !E.value && !H.value && (o.value = !1);
2536
+ R.value || (h.value = !1), !B.value && !E.value && !U.value && (o.value = !1);
2537
2537
  }
2538
2538
  function W() {
2539
2539
  q();
@@ -2566,7 +2566,7 @@ const Zl = Ye({
2566
2566
  });
2567
2567
  }
2568
2568
  return () => {
2569
- const G = e.node, Q = G.id, Ae = e.state, pe = G.step || "?", ce = !!G.check, A = e.bodyNodes.length > 0, L = e.disabled, x = e.extraClasses, $ = H.value || E.value, v = E.value ? e.messages.step.pauseTimer : H.value ? e.messages.step.resumeTimer : e.messages.step.startTimer, I = [], j = [], p = [], D = [];
2569
+ const G = e.node, Q = G.id, Ae = e.state, pe = G.step || "?", ce = !!G.check, A = e.bodyNodes.length > 0, L = e.disabled, x = e.extraClasses, $ = U.value || E.value, v = E.value ? e.messages.step.pauseTimer : U.value ? e.messages.step.resumeTimer : e.messages.step.startTimer, I = [], j = [], p = [], D = [];
2570
2570
  if (se.value) {
2571
2571
  const Te = [];
2572
2572
  ge.value && oe.value && Te.push(
@@ -2577,7 +2577,7 @@ const Zl = Ye({
2577
2577
  ],
2578
2578
  title: N.value
2579
2579
  }, oe.value)
2580
- ), U.value && Te.push(
2580
+ ), H.value && Te.push(
2581
2581
  l("span", {
2582
2582
  class: [
2583
2583
  "aimd-step-timer__pill",
@@ -2723,7 +2723,7 @@ const Zl = Ye({
2723
2723
  ]);
2724
2724
  };
2725
2725
  }
2726
- }), vs = Ye({
2726
+ }), gs = Ye({
2727
2727
  name: "AimdCheckField",
2728
2728
  props: {
2729
2729
  node: { type: Object, required: !0 },
@@ -2750,8 +2750,8 @@ const Zl = Ye({
2750
2750
  c();
2751
2751
  }
2752
2752
  function ae(E) {
2753
- const H = E.relatedTarget;
2754
- H instanceof Node && n.value?.contains(H) || (c(), h = setTimeout(() => {
2753
+ const U = E.relatedTarget;
2754
+ U instanceof Node && n.value?.contains(U) || (c(), h = setTimeout(() => {
2755
2755
  h = null;
2756
2756
  const R = typeof document < "u" ? document.activeElement : null;
2757
2757
  R instanceof Node && n.value?.contains(R) || z();
@@ -2776,7 +2776,7 @@ const Zl = Ye({
2776
2776
  return Mt(() => {
2777
2777
  c();
2778
2778
  }), () => {
2779
- const E = e.node, H = E.id, R = e.state, ne = e.disabled, ge = e.extraClasses, U = e.bodyNodes.length > 0, ie = !!(R.checked && E.checked_message), ye = E.label || H, oe = R.checked ? "aimd-rec-inline--check-passed" : "aimd-rec-inline--check-open", N = U ? "aimd-rec-inline--check-with-body" : "aimd-rec-inline--check-bodyless", B = !ne && !m.value ? [
2779
+ const E = e.node, U = E.id, R = e.state, ne = e.disabled, ge = e.extraClasses, H = e.bodyNodes.length > 0, ie = !!(R.checked && E.checked_message), ye = E.label || U, oe = R.checked ? "aimd-rec-inline--check-passed" : "aimd-rec-inline--check-open", N = H ? "aimd-rec-inline--check-with-body" : "aimd-rec-inline--check-bodyless", B = !ne && !m.value ? [
2780
2780
  l("button", {
2781
2781
  type: "button",
2782
2782
  class: "aimd-step-timer__btn aimd-step-timer__btn--ghost aimd-check-field__toggle-btn",
@@ -2794,14 +2794,14 @@ const Zl = Ye({
2794
2794
  modelValue: R.annotation || "",
2795
2795
  "onUpdate:modelValue": (se) => {
2796
2796
  t("annotation-change", {
2797
- id: H,
2797
+ id: U,
2798
2798
  value: se
2799
2799
  });
2800
2800
  },
2801
2801
  onClose: () => {
2802
- i.value = !1, t("blur", { id: H });
2802
+ i.value = !1, t("blur", { id: U });
2803
2803
  },
2804
- onBlur: () => t("blur", { id: H })
2804
+ onBlur: () => t("blur", { id: U })
2805
2805
  })
2806
2806
  ])
2807
2807
  ] : [];
@@ -2815,29 +2815,29 @@ const Zl = Ye({
2815
2815
  l("div", { class: "aimd-check-field__header" }, [
2816
2816
  l("label", { class: "aimd-rec-inline__check-wrap aimd-check-field__toggle" }, [
2817
2817
  l("input", {
2818
- "data-rec-focus-key": `check:${H}:checked`,
2818
+ "data-rec-focus-key": `check:${U}:checked`,
2819
2819
  type: "checkbox",
2820
2820
  class: "aimd-checkbox",
2821
2821
  disabled: ne,
2822
2822
  checked: !!R.checked,
2823
2823
  onChange: (se) => {
2824
2824
  t("check-change", {
2825
- id: H,
2825
+ id: U,
2826
2826
  value: se.target.checked
2827
2827
  });
2828
2828
  },
2829
- onBlur: () => t("blur", { id: H })
2829
+ onBlur: () => t("blur", { id: U })
2830
2830
  }),
2831
2831
  l("span", { class: "aimd-field__scope" }, Wt("check", e.messages)),
2832
- U ? null : l("span", { class: "aimd-field__name aimd-check-field__key" }, [
2832
+ H ? null : l("span", { class: "aimd-field__name aimd-check-field__key" }, [
2833
2833
  ye,
2834
2834
  e.required ? l(bt, { label: e.messages.common.required }) : null
2835
2835
  ]),
2836
- U && e.required ? l(bt, { label: e.messages.common.required }) : null
2836
+ H && e.required ? l(bt, { label: e.messages.common.required }) : null
2837
2837
  ]),
2838
2838
  B.length > 0 ? l("div", { class: "aimd-check-field__actions" }, B) : null
2839
2839
  ]),
2840
- U ? l("div", {
2840
+ H ? l("div", {
2841
2841
  class: [
2842
2842
  "aimd-check-field__body",
2843
2843
  R.checked ? "aimd-check-field__body--checked" : ""
@@ -2849,10 +2849,10 @@ const Zl = Ye({
2849
2849
  ]);
2850
2850
  };
2851
2851
  }
2852
- }), gs = { class: "aimd-quiz-recorder__followups" }, hs = { class: "aimd-quiz-recorder__followup-label" }, ps = ["data-rec-focus-key", "checked", "disabled", "onChange"], ys = ["type", "step", "data-rec-focus-key", "value", "readonly", "onInput"], bs = {
2852
+ }), hs = { class: "aimd-quiz-recorder__followups" }, ps = { class: "aimd-quiz-recorder__followup-label" }, ys = ["data-rec-focus-key", "checked", "disabled", "onChange"], bs = ["type", "step", "data-rec-focus-key", "value", "readonly", "onInput"], _s = {
2853
2853
  key: 2,
2854
2854
  class: "aimd-quiz-recorder__followup-unit"
2855
- }, _s = /* @__PURE__ */ Ye({
2855
+ }, ks = /* @__PURE__ */ Ye({
2856
2856
  __name: "AimdQuizOptionFollowups",
2857
2857
  props: {
2858
2858
  quizId: {},
@@ -2876,12 +2876,12 @@ const Zl = Ye({
2876
2876
  function o(m) {
2877
2877
  return n.values[m.key] === !0;
2878
2878
  }
2879
- return (m, c) => (_(), w("div", gs, [
2879
+ return (m, c) => (_(), w("div", hs, [
2880
2880
  (_(!0), w(Be, null, Ue(e.followups, (z) => (_(), w("label", {
2881
2881
  key: `${e.quizId}-${e.inputScope}-${e.optionKey}-followup-${z.key}`,
2882
2882
  class: "aimd-quiz-recorder__followup"
2883
2883
  }, [
2884
- g("span", hs, C(i(z)), 1),
2884
+ g("span", ps, C(i(z)), 1),
2885
2885
  z.type === "bool" ? (_(), w("input", {
2886
2886
  key: 0,
2887
2887
  type: "checkbox",
@@ -2890,7 +2890,7 @@ const Zl = Ye({
2890
2890
  checked: o(z),
2891
2891
  disabled: e.readonly,
2892
2892
  onChange: (P) => a("update", z, P.target.checked)
2893
- }, null, 40, ps)) : (_(), w("input", {
2893
+ }, null, 40, ys)) : (_(), w("input", {
2894
2894
  key: 1,
2895
2895
  type: z.type === "str" ? "text" : "number",
2896
2896
  step: z.type === "int" ? "1" : void 0,
@@ -2899,69 +2899,69 @@ const Zl = Ye({
2899
2899
  value: h(z),
2900
2900
  readonly: e.readonly,
2901
2901
  onInput: (P) => a("update", z, P.target.value)
2902
- }, null, 40, ys)),
2903
- z.unit ? (_(), w("span", bs, C(z.unit), 1)) : re("", !0)
2902
+ }, null, 40, bs)),
2903
+ z.unit ? (_(), w("span", _s, C(z.unit), 1)) : re("", !0)
2904
2904
  ]))), 128))
2905
2905
  ]));
2906
2906
  }
2907
- }), La = /* @__PURE__ */ kt(_s, [["__scopeId", "data-v-1f7a8e4f"]]), ks = { class: "aimd-quiz__meta" }, ws = { class: "aimd-field__scope" }, Ss = { class: "aimd-field__name" }, Cs = { class: "aimd-field__type" }, xs = {
2907
+ }), La = /* @__PURE__ */ kt(ks, [["__scopeId", "data-v-1f7a8e4f"]]), ws = { class: "aimd-quiz__meta" }, Ss = { class: "aimd-field__scope" }, Cs = { class: "aimd-field__name" }, xs = { class: "aimd-field__type" }, $s = {
2908
2908
  key: 1,
2909
2909
  class: "aimd-quiz__score"
2910
- }, $s = {
2910
+ }, As = {
2911
2911
  key: 0,
2912
2912
  class: "aimd-quiz__title"
2913
- }, As = { class: "aimd-quiz__stem" }, Es = {
2913
+ }, Es = { class: "aimd-quiz__stem" }, Fs = {
2914
2914
  key: 0,
2915
2915
  class: "aimd-quiz-recorder__stem-text"
2916
- }, Fs = ["data-rec-focus-key", "placeholder", "readonly", "value", "onInput"], Ts = {
2916
+ }, Ts = ["data-rec-focus-key", "placeholder", "readonly", "value", "onInput"], Rs = {
2917
2917
  key: 1,
2918
2918
  class: "aimd-quiz__description"
2919
- }, Rs = {
2919
+ }, Ms = {
2920
2920
  key: 2,
2921
2921
  class: "aimd-quiz-recorder__options"
2922
- }, Ms = { class: "aimd-quiz-recorder__option" }, zs = ["data-rec-focus-key", "name", "value", "disabled"], qs = { class: "aimd-quiz-recorder__option-content" }, Vs = { class: "aimd-quiz-recorder__option-label" }, Ds = {
2922
+ }, zs = { class: "aimd-quiz-recorder__option" }, qs = ["data-rec-focus-key", "name", "value", "disabled"], Vs = { class: "aimd-quiz-recorder__option-content" }, Ds = { class: "aimd-quiz-recorder__option-label" }, Is = {
2923
2923
  key: 0,
2924
2924
  class: "aimd-quiz-recorder__option-explanation"
2925
- }, Is = {
2925
+ }, Ls = {
2926
2926
  key: 3,
2927
2927
  class: "aimd-quiz-recorder__options"
2928
- }, Ls = { class: "aimd-quiz-recorder__option" }, Ps = ["data-rec-focus-key", "name", "value", "disabled"], Bs = { class: "aimd-quiz-recorder__option-content" }, Os = { class: "aimd-quiz-recorder__option-label" }, Ns = {
2928
+ }, Ps = { class: "aimd-quiz-recorder__option" }, Bs = ["data-rec-focus-key", "name", "value", "disabled"], Os = { class: "aimd-quiz-recorder__option-content" }, Ns = { class: "aimd-quiz-recorder__option-label" }, Ks = {
2929
2929
  key: 0,
2930
2930
  class: "aimd-quiz-recorder__option-explanation"
2931
- }, Ks = {
2931
+ }, js = {
2932
2932
  key: 4,
2933
2933
  class: "aimd-quiz-recorder__options"
2934
- }, js = { class: "aimd-quiz-recorder__option" }, Hs = ["data-rec-focus-key", "disabled", "checked", "onChange"], Us = { class: "aimd-quiz-recorder__option-content" }, Ws = { class: "aimd-quiz-recorder__option-label" }, Gs = {
2934
+ }, Hs = { class: "aimd-quiz-recorder__option" }, Us = ["data-rec-focus-key", "disabled", "checked", "onChange"], Ws = { class: "aimd-quiz-recorder__option-content" }, Gs = { class: "aimd-quiz-recorder__option-label" }, Qs = {
2935
2935
  key: 0,
2936
2936
  class: "aimd-quiz-recorder__option-explanation"
2937
- }, Qs = ["data-rec-focus-key", "placeholder", "readonly"], Ys = {
2937
+ }, Ys = ["data-rec-focus-key", "placeholder", "readonly"], Js = {
2938
2938
  key: 6,
2939
2939
  class: "aimd-scale"
2940
- }, Js = { class: "aimd-scale__item-stem" }, Xs = { class: "aimd-scale__item-options" }, Zs = ["data-rec-focus-key", "name", "value", "checked", "disabled", "onChange"], eo = {
2940
+ }, Xs = { class: "aimd-scale__item-stem" }, Zs = { class: "aimd-scale__item-options" }, eo = ["data-rec-focus-key", "name", "value", "checked", "disabled", "onChange"], to = {
2941
2941
  key: 7,
2942
2942
  class: "aimd-scale"
2943
- }, to = { class: "aimd-scale__table" }, ao = {
2943
+ }, ao = { class: "aimd-scale__table" }, no = {
2944
2944
  class: "aimd-scale__item-stem",
2945
2945
  scope: "row"
2946
- }, no = { class: "aimd-scale__cell-label" }, io = ["data-rec-focus-key", "name", "value", "checked", "disabled", "onChange"], ro = { class: "aimd-quiz__grade-meta" }, lo = {
2946
+ }, io = { class: "aimd-scale__cell-label" }, ro = ["data-rec-focus-key", "name", "value", "checked", "disabled", "onChange"], lo = { class: "aimd-quiz__grade-meta" }, so = {
2947
2947
  key: 0,
2948
2948
  class: "aimd-quiz__grade-band"
2949
- }, so = {
2949
+ }, oo = {
2950
2950
  key: 1,
2951
2951
  class: "aimd-quiz__grade-band"
2952
- }, oo = {
2952
+ }, co = {
2953
2953
  key: 2,
2954
2954
  class: "aimd-quiz__grade-review"
2955
- }, co = {
2955
+ }, uo = {
2956
2956
  key: 3,
2957
2957
  class: "aimd-quiz__grade-feedback"
2958
- }, uo = {
2958
+ }, fo = {
2959
2959
  key: 4,
2960
2960
  class: "aimd-quiz__grade-list"
2961
- }, fo = {
2961
+ }, mo = {
2962
2962
  key: 5,
2963
2963
  class: "aimd-quiz__grade-list"
2964
- }, mo = /* @__PURE__ */ Ye({
2964
+ }, vo = /* @__PURE__ */ Ye({
2965
2965
  __name: "AimdQuizRecorder",
2966
2966
  props: {
2967
2967
  quiz: {},
@@ -3066,10 +3066,10 @@ const Zl = Ye({
3066
3066
  set(p) {
3067
3067
  K(p);
3068
3068
  }
3069
- }), H = k(() => {
3069
+ }), U = k(() => {
3070
3070
  const p = c();
3071
3071
  return Array.isArray(p) ? p.filter((D) => typeof D == "string") : [];
3072
- }), R = k(() => n.quiz.type !== "choice" ? [] : n.quiz.mode === "single" ? E.value ? [E.value] : [] : H.value), ne = k({
3072
+ }), R = k(() => n.quiz.type !== "choice" ? [] : n.quiz.mode === "single" ? E.value ? [E.value] : [] : U.value), ne = k({
3073
3073
  get() {
3074
3074
  const p = c();
3075
3075
  return typeof p == "boolean" ? p : null;
@@ -3084,16 +3084,16 @@ const Zl = Ye({
3084
3084
  }), ge = k(() => n.quiz.type !== "true_false" ? [] : (Array.isArray(n.quiz.options) && n.quiz.options.length > 0 ? n.quiz.options : [
3085
3085
  { key: "true", text: "True" },
3086
3086
  { key: "false", text: "False" }
3087
- ]).filter((D) => D.key === "true" || D.key === "false")), U = k(() => n.quiz.type === "true_false" ? typeof ne.value == "boolean" ? [String(ne.value)] : [] : R.value);
3087
+ ]).filter((D) => D.key === "true" || D.key === "false")), H = k(() => n.quiz.type === "true_false" ? typeof ne.value == "boolean" ? [String(ne.value)] : [] : R.value);
3088
3088
  function ie(p) {
3089
- return H.value.includes(p);
3089
+ return U.value.includes(p);
3090
3090
  }
3091
3091
  function ye(p, D) {
3092
- const b = H.value, M = D ? [.../* @__PURE__ */ new Set([...b, p])] : b.filter((Z) => Z !== p);
3092
+ const b = U.value, M = D ? [.../* @__PURE__ */ new Set([...b, p])] : b.filter((Z) => Z !== p);
3093
3093
  K(M);
3094
3094
  }
3095
3095
  function oe(p) {
3096
- return Array.isArray(p.followups) && p.followups.length > 0 && U.value.includes(p.key);
3096
+ return Array.isArray(p.followups) && p.followups.length > 0 && H.value.includes(p.key);
3097
3097
  }
3098
3098
  function N(p) {
3099
3099
  return ae()[p] || {};
@@ -3162,7 +3162,7 @@ const Zl = Ye({
3162
3162
  function he(p) {
3163
3163
  return typeof p.points == "number" && Number.isFinite(p.points) ? `${p.text} (${p.points})` : p.text;
3164
3164
  }
3165
- const V = k(() => Xa(n.locale, n.messages)), be = k(() => Mi(n.quiz.type, V.value, n.quiz.mode)), G = k(() => n.quiz.type === "scale" && Array.isArray(n.quiz.items) ? n.quiz.items : []), Q = k(() => n.quiz.type === "scale" && Array.isArray(n.quiz.options) ? n.quiz.options : []), Ae = k(() => n.quiz.type === "scale" && yr(n.quiz, n.modelValue)), pe = k(() => n.quiz.type !== "scale" || !Ae.value ? null : br(n.quiz, n.modelValue)), ce = k(() => {
3165
+ const V = k(() => Xa(n.locale, n.messages)), be = k(() => zi(n.quiz.type, V.value, n.quiz.mode)), G = k(() => n.quiz.type === "scale" && Array.isArray(n.quiz.items) ? n.quiz.items : []), Q = k(() => n.quiz.type === "scale" && Array.isArray(n.quiz.options) ? n.quiz.options : []), Ae = k(() => n.quiz.type === "scale" && br(n.quiz, n.modelValue)), pe = k(() => n.quiz.type !== "scale" || !Ae.value ? null : _r(n.quiz, n.modelValue)), ce = k(() => {
3166
3166
  if (n.grade)
3167
3167
  return n.grade;
3168
3168
  if (n.quiz.type !== "scale")
@@ -3214,27 +3214,27 @@ const Zl = Ye({
3214
3214
  }
3215
3215
  }), x = k(() => Array.isArray(ce.value?.blank_results) ? ce.value.blank_results : []), $ = k(() => Array.isArray(ce.value?.rubric_results) ? ce.value.rubric_results : []), v = k(() => !!(ce.value && ce.value.status !== "ungraded")), I = k(() => !(!ce.value || ce.value.status === "ungraded" && !ce.value.feedback && !ce.value.review_required && !ce.value.band && x.value.length === 0 && $.value.length === 0));
3216
3216
  function j(p, D) {
3217
- return !D?.trim() || !U.value.includes(p) ? !1 : n.choiceOptionExplanationMode === "selected" ? !0 : n.choiceOptionExplanationMode === "submitted" ? n.submitted : n.choiceOptionExplanationMode === "graded" ? v.value : !1;
3217
+ return !D?.trim() || !H.value.includes(p) ? !1 : n.choiceOptionExplanationMode === "selected" ? !0 : n.choiceOptionExplanationMode === "submitted" ? n.submitted : n.choiceOptionExplanationMode === "graded" ? v.value : !1;
3218
3218
  }
3219
3219
  return (p, D) => (_(), w("div", {
3220
3220
  class: Oe(["aimd-quiz-recorder aimd-field aimd-field--quiz", ...e.extraClasses])
3221
3221
  }, [
3222
- g("div", ks, [
3223
- g("span", ws, C(Ve(Wt)("quiz", V.value)), 1),
3224
- g("span", Ss, C(e.quiz.id), 1),
3222
+ g("div", ws, [
3223
+ g("span", Ss, C(Ve(Wt)("quiz", V.value)), 1),
3224
+ g("span", Cs, C(e.quiz.id), 1),
3225
3225
  e.required ? (_(), ft(bt, {
3226
3226
  key: 0,
3227
3227
  label: V.value.common.required
3228
3228
  }, null, 8, ["label"])) : re("", !0),
3229
- g("span", Cs, "(" + C(be.value) + ")", 1),
3230
- typeof e.quiz.score == "number" ? (_(), w("span", xs, C(V.value.quiz.score(e.quiz.score)), 1)) : re("", !0)
3229
+ g("span", xs, "(" + C(be.value) + ")", 1),
3230
+ typeof e.quiz.score == "number" ? (_(), w("span", $s, C(V.value.quiz.score(e.quiz.score)), 1)) : re("", !0)
3231
3231
  ]),
3232
- e.quiz.title ? (_(), w("div", $s, C(e.quiz.title), 1)) : re("", !0),
3233
- g("div", As, [
3232
+ e.quiz.title ? (_(), w("div", As, C(e.quiz.title), 1)) : re("", !0),
3233
+ g("div", Es, [
3234
3234
  (_(!0), w(Be, null, Ue(h.value, (b, M) => (_(), w(Be, {
3235
3235
  key: `${e.quiz.id}-stem-${M}`
3236
3236
  }, [
3237
- b.type === "text" ? (_(), w("span", Es, C(b.value), 1)) : (_(), w("input", {
3237
+ b.type === "text" ? (_(), w("span", Fs, C(b.value), 1)) : (_(), w("input", {
3238
3238
  key: 1,
3239
3239
  class: "aimd-quiz-recorder__blank-input",
3240
3240
  type: "text",
@@ -3243,16 +3243,16 @@ const Zl = Ye({
3243
3243
  readonly: e.readonly,
3244
3244
  value: F(b.key),
3245
3245
  onInput: (Z) => q(b.key, Z.target.value)
3246
- }, null, 40, Fs))
3246
+ }, null, 40, Ts))
3247
3247
  ], 64))), 128))
3248
3248
  ]),
3249
- e.quiz.description ? (_(), w("div", Ts, C(e.quiz.description), 1)) : re("", !0),
3250
- e.quiz.type === "true_false" && ge.value.length ? (_(), w("div", Rs, [
3249
+ e.quiz.description ? (_(), w("div", Rs, C(e.quiz.description), 1)) : re("", !0),
3250
+ e.quiz.type === "true_false" && ge.value.length ? (_(), w("div", Ms, [
3251
3251
  (_(!0), w(Be, null, Ue(ge.value, (b) => (_(), w("div", {
3252
3252
  key: `${e.quiz.id}-true-false-${b.key}`,
3253
3253
  class: "aimd-quiz-recorder__option-frame"
3254
3254
  }, [
3255
- g("label", Ms, [
3255
+ g("label", zs, [
3256
3256
  Nt(g("input", {
3257
3257
  "onUpdate:modelValue": D[0] || (D[0] = (M) => ne.value = M),
3258
3258
  type: "radio",
@@ -3261,12 +3261,12 @@ const Zl = Ye({
3261
3261
  name: `${e.quiz.id}-true-false`,
3262
3262
  value: b.key === "true",
3263
3263
  disabled: e.readonly
3264
- }, null, 8, zs), [
3264
+ }, null, 8, qs), [
3265
3265
  [an, ne.value]
3266
3266
  ]),
3267
- g("span", qs, [
3268
- g("span", Vs, C(b.text), 1),
3269
- j(b.key, b.explanation) ? (_(), w("span", Ds, C(b.explanation), 1)) : re("", !0)
3267
+ g("span", Vs, [
3268
+ g("span", Ds, C(b.text), 1),
3269
+ j(b.key, b.explanation) ? (_(), w("span", Is, C(b.explanation), 1)) : re("", !0)
3270
3270
  ])
3271
3271
  ]),
3272
3272
  oe(b) ? (_(), ft(La, {
@@ -3282,12 +3282,12 @@ const Zl = Ye({
3282
3282
  }, null, 8, ["quiz-id", "option-key", "followups", "values", "readonly", "focus-key-prefix", "onUpdate"])) : re("", !0)
3283
3283
  ]))), 128))
3284
3284
  ])) : re("", !0),
3285
- e.quiz.type === "choice" && e.quiz.mode === "single" && e.quiz.options?.length ? (_(), w("div", Is, [
3285
+ e.quiz.type === "choice" && e.quiz.mode === "single" && e.quiz.options?.length ? (_(), w("div", Ls, [
3286
3286
  (_(!0), w(Be, null, Ue(e.quiz.options, (b) => (_(), w("div", {
3287
3287
  key: `${e.quiz.id}-single-${b.key}`,
3288
3288
  class: "aimd-quiz-recorder__option-frame"
3289
3289
  }, [
3290
- g("label", Ls, [
3290
+ g("label", Ps, [
3291
3291
  Nt(g("input", {
3292
3292
  "onUpdate:modelValue": D[1] || (D[1] = (M) => E.value = M),
3293
3293
  type: "radio",
@@ -3296,12 +3296,12 @@ const Zl = Ye({
3296
3296
  name: `${e.quiz.id}-single`,
3297
3297
  value: b.key,
3298
3298
  disabled: e.readonly
3299
- }, null, 8, Ps), [
3299
+ }, null, 8, Bs), [
3300
3300
  [an, E.value]
3301
3301
  ]),
3302
- g("span", Bs, [
3303
- g("span", Os, C(b.key) + ". " + C(b.text), 1),
3304
- j(b.key, b.explanation) ? (_(), w("span", Ns, C(b.explanation), 1)) : re("", !0)
3302
+ g("span", Os, [
3303
+ g("span", Ns, C(b.key) + ". " + C(b.text), 1),
3304
+ j(b.key, b.explanation) ? (_(), w("span", Ks, C(b.explanation), 1)) : re("", !0)
3305
3305
  ])
3306
3306
  ]),
3307
3307
  oe(b) ? (_(), ft(La, {
@@ -3317,12 +3317,12 @@ const Zl = Ye({
3317
3317
  }, null, 8, ["quiz-id", "option-key", "followups", "values", "readonly", "focus-key-prefix", "onUpdate"])) : re("", !0)
3318
3318
  ]))), 128))
3319
3319
  ])) : re("", !0),
3320
- e.quiz.type === "choice" && e.quiz.mode === "multiple" && e.quiz.options?.length ? (_(), w("div", Ks, [
3320
+ e.quiz.type === "choice" && e.quiz.mode === "multiple" && e.quiz.options?.length ? (_(), w("div", js, [
3321
3321
  (_(!0), w(Be, null, Ue(e.quiz.options, (b) => (_(), w("div", {
3322
3322
  key: `${e.quiz.id}-multiple-${b.key}`,
3323
3323
  class: "aimd-quiz-recorder__option-frame"
3324
3324
  }, [
3325
- g("label", js, [
3325
+ g("label", Hs, [
3326
3326
  g("input", {
3327
3327
  type: "checkbox",
3328
3328
  class: "aimd-quiz-recorder__choice-input",
@@ -3330,10 +3330,10 @@ const Zl = Ye({
3330
3330
  disabled: e.readonly,
3331
3331
  checked: ie(b.key),
3332
3332
  onChange: (M) => ye(b.key, M.target.checked)
3333
- }, null, 40, Hs),
3334
- g("span", Us, [
3335
- g("span", Ws, C(b.key) + ". " + C(b.text), 1),
3336
- j(b.key, b.explanation) ? (_(), w("span", Gs, C(b.explanation), 1)) : re("", !0)
3333
+ }, null, 40, Us),
3334
+ g("span", Ws, [
3335
+ g("span", Gs, C(b.key) + ". " + C(b.text), 1),
3336
+ j(b.key, b.explanation) ? (_(), w("span", Qs, C(b.explanation), 1)) : re("", !0)
3337
3337
  ])
3338
3338
  ]),
3339
3339
  oe(b) ? (_(), ft(La, {
@@ -3357,16 +3357,16 @@ const Zl = Ye({
3357
3357
  placeholder: V.value.quiz.openPlaceholder,
3358
3358
  rows: "4",
3359
3359
  readonly: e.readonly
3360
- }, null, 8, Qs)), [
3360
+ }, null, 8, Ys)), [
3361
3361
  [ba, me.value]
3362
3362
  ]) : re("", !0),
3363
- e.quiz.type === "scale" && G.value.length && Q.value.length && e.quiz.display === "list" ? (_(), w("div", Ys, [
3363
+ e.quiz.type === "scale" && G.value.length && Q.value.length && e.quiz.display === "list" ? (_(), w("div", Js, [
3364
3364
  (_(!0), w(Be, null, Ue(G.value, (b) => (_(), w("div", {
3365
3365
  key: `${e.quiz.id}-scale-list-${b.key}`,
3366
3366
  class: "aimd-scale__list-item"
3367
3367
  }, [
3368
- g("div", Js, C(b.stem), 1),
3369
- g("div", Xs, [
3368
+ g("div", Xs, C(b.stem), 1),
3369
+ g("div", Zs, [
3370
3370
  (_(!0), w(Be, null, Ue(Q.value, (M) => (_(), w("label", {
3371
3371
  key: `${e.quiz.id}-scale-list-${b.key}-${M.key}`,
3372
3372
  class: "aimd-scale__option"
@@ -3380,14 +3380,14 @@ const Zl = Ye({
3380
3380
  checked: W(b.key) === M.key,
3381
3381
  disabled: e.readonly,
3382
3382
  onChange: (Z) => de(b.key, M.key)
3383
- }, null, 40, Zs),
3383
+ }, null, 40, eo),
3384
3384
  g("span", null, C(he(M)), 1)
3385
3385
  ]))), 128))
3386
3386
  ])
3387
3387
  ]))), 128))
3388
3388
  ])) : re("", !0),
3389
- e.quiz.type === "scale" && G.value.length && Q.value.length && e.quiz.display !== "list" ? (_(), w("div", eo, [
3390
- g("table", to, [
3389
+ e.quiz.type === "scale" && G.value.length && Q.value.length && e.quiz.display !== "list" ? (_(), w("div", to, [
3390
+ g("table", ao, [
3391
3391
  g("thead", null, [
3392
3392
  g("tr", null, [
3393
3393
  D[3] || (D[3] = g("th", { class: "aimd-scale__item-header" }, "Item", -1)),
@@ -3400,12 +3400,12 @@ const Zl = Ye({
3400
3400
  (_(!0), w(Be, null, Ue(G.value, (b) => (_(), w("tr", {
3401
3401
  key: `${e.quiz.id}-scale-row-${b.key}`
3402
3402
  }, [
3403
- g("th", ao, C(b.stem), 1),
3403
+ g("th", no, C(b.stem), 1),
3404
3404
  (_(!0), w(Be, null, Ue(Q.value, (M) => (_(), w("td", {
3405
3405
  key: `${e.quiz.id}-scale-cell-${b.key}-${M.key}`,
3406
3406
  class: "aimd-scale__cell"
3407
3407
  }, [
3408
- g("label", no, [
3408
+ g("label", io, [
3409
3409
  g("input", {
3410
3410
  type: "radio",
3411
3411
  class: "aimd-quiz-recorder__choice-input",
@@ -3415,7 +3415,7 @@ const Zl = Ye({
3415
3415
  checked: W(b.key) === M.key,
3416
3416
  disabled: e.readonly,
3417
3417
  onChange: (Z) => de(b.key, M.key)
3418
- }, null, 40, io)
3418
+ }, null, 40, ro)
3419
3419
  ])
3420
3420
  ]))), 128))
3421
3421
  ]))), 128))
@@ -3426,7 +3426,7 @@ const Zl = Ye({
3426
3426
  key: 8,
3427
3427
  class: Oe(["aimd-quiz__grade-panel", `aimd-quiz__grade-panel--${A.value}`])
3428
3428
  }, [
3429
- g("div", ro, [
3429
+ g("div", lo, [
3430
3430
  g("span", {
3431
3431
  class: Oe(["aimd-quiz__grade-status", `aimd-quiz__grade-status--${A.value}`])
3432
3432
  }, C(L.value), 3),
@@ -3434,25 +3434,25 @@ const Zl = Ye({
3434
3434
  class: Oe(["aimd-quiz__grade-score", `aimd-quiz__grade-score--${A.value}`])
3435
3435
  }, C(V.value.quiz.gradedScore(ce.value.earned_score, ce.value.max_score)), 3)
3436
3436
  ]),
3437
- ce.value.band ? (_(), w("div", lo, [
3437
+ ce.value.band ? (_(), w("div", so, [
3438
3438
  g("strong", null, C(V.value.quiz.classification) + ":", 1),
3439
3439
  nt(" " + C(ce.value.band.label), 1)
3440
3440
  ])) : re("", !0),
3441
- ce.value.band?.interpretation ? (_(), w("div", so, [
3441
+ ce.value.band?.interpretation ? (_(), w("div", oo, [
3442
3442
  g("strong", null, C(V.value.quiz.interpretation) + ":", 1),
3443
3443
  nt(" " + C(ce.value.band.interpretation), 1)
3444
3444
  ])) : re("", !0),
3445
- ce.value.review_required ? (_(), w("div", oo, C(V.value.quiz.reviewRequired), 1)) : re("", !0),
3446
- ce.value.feedback ? (_(), w("div", co, [
3445
+ ce.value.review_required ? (_(), w("div", co, C(V.value.quiz.reviewRequired), 1)) : re("", !0),
3446
+ ce.value.feedback ? (_(), w("div", uo, [
3447
3447
  g("strong", null, C(V.value.quiz.feedback) + ":", 1),
3448
3448
  nt(" " + C(ce.value.feedback), 1)
3449
3449
  ])) : re("", !0),
3450
- x.value.length ? (_(), w("ul", uo, [
3450
+ x.value.length ? (_(), w("ul", fo, [
3451
3451
  (_(!0), w(Be, null, Ue(x.value, (b) => (_(), w("li", {
3452
3452
  key: `${e.quiz.id}-grade-blank-${b.key}`
3453
3453
  }, C(b.key) + " · " + C(V.value.quiz.gradedScore(b.earned_score, b.max_score)), 1))), 128))
3454
3454
  ])) : re("", !0),
3455
- $.value.length ? (_(), w("ul", fo, [
3455
+ $.value.length ? (_(), w("ul", mo, [
3456
3456
  (_(!0), w(Be, null, Ue($.value, (b) => (_(), w("li", {
3457
3457
  key: `${e.quiz.id}-grade-rubric-${b.id}`
3458
3458
  }, C(b.id) + " · " + C(V.value.quiz.gradedScore(b.earned_score, b.max_score)), 1))), 128))
@@ -3460,15 +3460,15 @@ const Zl = Ye({
3460
3460
  ], 2)) : re("", !0)
3461
3461
  ], 2));
3462
3462
  }
3463
- }), vo = /* @__PURE__ */ kt(mo, [["__scopeId", "data-v-b59dec34"]]), go = {}, ho = {
3463
+ }), go = /* @__PURE__ */ kt(vo, [["__scopeId", "data-v-b59dec34"]]), ho = {}, po = {
3464
3464
  class: "aimd-rec-assigner-field__icon",
3465
3465
  width: "1em",
3466
3466
  height: "1em",
3467
3467
  viewBox: "0 0 24 24",
3468
3468
  "aria-hidden": "true"
3469
3469
  };
3470
- function po(e, t) {
3471
- return _(), w("svg", ho, [...t[0] || (t[0] = [
3470
+ function yo(e, t) {
3471
+ return _(), w("svg", po, [...t[0] || (t[0] = [
3472
3472
  g("g", {
3473
3473
  fill: "currentColor",
3474
3474
  "fill-rule": "evenodd",
@@ -3479,39 +3479,39 @@ function po(e, t) {
3479
3479
  ], -1)
3480
3480
  ])]);
3481
3481
  }
3482
- const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3482
+ const bo = /* @__PURE__ */ kt(ho, [["render", yo]]), _o = {
3483
3483
  class: "aimd-rec-assigner-field__status-icon",
3484
3484
  viewBox: "0 0 24 24",
3485
3485
  width: "1em",
3486
3486
  height: "1em",
3487
3487
  "aria-hidden": "true"
3488
- }, _o = ["d"], ko = "M19.35 10.04C18.67 6.59 15.64 4 12 4C9.11 4 6.6 5.64 5.35 8.04C2.34 8.36 0 10.91 0 14C0 17.31 2.69 20 6 20H18C20.76 20 23 17.76 23 15C23 12.36 20.95 10.22 18.35 10.04H19.35ZM10.2 17.2L6.7 13.7L8.1 12.3L10.2 14.4L15.9 8.7L17.3 10.1L10.2 17.2Z", wo = "M12 18.5c0 .5.07 1 .18 1.5H6.5c-1.5 0-2.81-.5-3.89-1.57C1.54 17.38 1 16.09 1 14.58q0-1.95 1.17-3.48C3.34 9.57 4 9.43 5.25 9.15c.42-1.53 1.25-2.77 2.5-3.72S10.42 4 12 4c1.95 0 3.6.68 4.96 2.04S19 9.05 19 11c1.15.13 2.1.63 2.86 1.5c.24.26.43.55.6.86A6.37 6.37 0 0 0 18.5 12c-.5 0-1 .07-1.5.18V11c0-1.38-.5-2.56-1.46-3.54C14.56 6.5 13.38 6 12 6s-2.56.5-3.54 1.46C7.5 8.44 7 9.62 7 11h-.5c-.97 0-1.79.34-2.47 1.03c-.69.68-1.03 1.5-1.03 2.47s.34 1.79 1.03 2.5c.68.66 1.5 1 2.47 1h5.53c-.03.17-.03.33-.03.5m11 0c0 2.5-2 4.5-4.5 4.5S14 21 14 18.5s2-4.5 4.5-4.5s4.5 2 4.5 4.5m-3 2.58L15.92 17c-.27.42-.42.94-.42 1.5c0 1.66 1.34 3 3 3c.56 0 1.08-.15 1.5-.42m1.5-2.58c0-1.66-1.34-3-3-3c-.56 0-1.08.15-1.5.42L21.08 20c.27-.42.42-.94.42-1.5", So = /* @__PURE__ */ Ye({
3488
+ }, ko = ["d"], wo = "M19.35 10.04C18.67 6.59 15.64 4 12 4C9.11 4 6.6 5.64 5.35 8.04C2.34 8.36 0 10.91 0 14C0 17.31 2.69 20 6 20H18C20.76 20 23 17.76 23 15C23 12.36 20.95 10.22 18.35 10.04H19.35ZM10.2 17.2L6.7 13.7L8.1 12.3L10.2 14.4L15.9 8.7L17.3 10.1L10.2 17.2Z", So = "M12 18.5c0 .5.07 1 .18 1.5H6.5c-1.5 0-2.81-.5-3.89-1.57C1.54 17.38 1 16.09 1 14.58q0-1.95 1.17-3.48C3.34 9.57 4 9.43 5.25 9.15c.42-1.53 1.25-2.77 2.5-3.72S10.42 4 12 4c1.95 0 3.6.68 4.96 2.04S19 9.05 19 11c1.15.13 2.1.63 2.86 1.5c.24.26.43.55.6.86A6.37 6.37 0 0 0 18.5 12c-.5 0-1 .07-1.5.18V11c0-1.38-.5-2.56-1.46-3.54C14.56 6.5 13.38 6 12 6s-2.56.5-3.54 1.46C7.5 8.44 7 9.62 7 11h-.5c-.97 0-1.79.34-2.47 1.03c-.69.68-1.03 1.5-1.03 2.47s.34 1.79 1.03 2.5c.68.66 1.5 1 2.47 1h5.53c-.03.17-.03.33-.03.5m11 0c0 2.5-2 4.5-4.5 4.5S14 21 14 18.5s2-4.5 4.5-4.5s4.5 2 4.5 4.5m-3 2.58L15.92 17c-.27.42-.42.94-.42 1.5c0 1.66 1.34 3 3 3c.56 0 1.08-.15 1.5-.42m1.5-2.58c0-1.66-1.34-3-3-3c-.56 0-1.08.15-1.5.42L21.08 20c.27-.42.42-.94.42-1.5", Co = /* @__PURE__ */ Ye({
3489
3489
  __name: "AimdAssignerCloudStatusIcon",
3490
3490
  props: {
3491
3491
  variant: { default: "idle" }
3492
3492
  },
3493
3493
  setup(e) {
3494
3494
  const t = e;
3495
- return (n, a) => (_(), w("svg", bo, [
3495
+ return (n, a) => (_(), w("svg", _o, [
3496
3496
  g("path", {
3497
3497
  fill: "currentColor",
3498
- d: t.variant === "done" ? ko : wo
3499
- }, null, 8, _o)
3498
+ d: t.variant === "done" ? wo : So
3499
+ }, null, 8, ko)
3500
3500
  ]));
3501
3501
  }
3502
- }), Co = { class: "aimd-protocol-recorder" }, xo = {
3502
+ }), xo = { class: "aimd-protocol-recorder" }, $o = {
3503
3503
  key: 0,
3504
3504
  class: "aimd-protocol-recorder__error"
3505
- }, $o = {
3505
+ }, Ao = {
3506
3506
  key: 1,
3507
3507
  class: "aimd-protocol-recorder__timing"
3508
- }, Ao = {
3508
+ }, Eo = {
3509
3509
  key: 0,
3510
3510
  class: "aimd-protocol-recorder__timing-pill aimd-protocol-recorder__timing-pill--estimate"
3511
- }, Eo = {
3511
+ }, Fo = {
3512
3512
  key: 1,
3513
3513
  class: "aimd-protocol-recorder__timing-pill"
3514
- }, Fo = {
3514
+ }, To = {
3515
3515
  key: 3,
3516
3516
  class: "aimd-protocol-recorder__empty"
3517
3517
  }, Za = /* @__PURE__ */ Ye({
@@ -3556,12 +3556,12 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3556
3556
  emits: ["update:modelValue", "fields-change", "error", "validation", "field-change", "field-blur", "assigner-request", "assigner-cancel", "table-add-row", "table-remove-row"],
3557
3557
  setup(e, { expose: t, emit: n }) {
3558
3558
  const a = e, i = n, h = O([]), o = O(""), m = O(null), c = Oa(Ja()), z = O({});
3559
- let P = 0, ae = 0, ue = !1, J = !1, K = Promise.resolve(), E = !1, H = null, R = null;
3559
+ let P = 0, ae = 0, ue = !1, J = !1, K = Promise.resolve(), E = !1, U = null, R = null;
3560
3560
  const ne = O(Date.now());
3561
3561
  let ge = null;
3562
- const U = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map();
3562
+ const H = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map();
3563
3563
  let ye = !1;
3564
- const oe = k(() => zi(a.locale)), N = k(() => Xa(oe.value, a.messages)), B = k(() => mi(a.typePlugins)), le = k(() => a.serverAssigners ?? a.assigners), se = k(() => a.runServerAssigner ?? a.assignerRunner), F = Ye({
3564
+ const oe = k(() => qi(a.locale)), N = k(() => Xa(oe.value, a.messages)), B = k(() => vi(a.typePlugins)), le = k(() => a.serverAssigners ?? a.assigners), se = k(() => a.runServerAssigner ?? a.assignerRunner), F = Ye({
3565
3565
  name: "AimdRecorderInlineNodesOutlet",
3566
3566
  props: {
3567
3567
  nodes: {
@@ -3581,7 +3581,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3581
3581
  T,
3582
3582
  ve ? l("span", { class: "aimd-rec-validation-message", role: "alert" }, ve) : null
3583
3583
  ]);
3584
- return mr(r, s, f, S, $e, {
3584
+ return vr(r, s, f, S, $e, {
3585
3585
  fieldAdapters: a.fieldAdapters,
3586
3586
  wrapField: a.wrapField,
3587
3587
  readonly: a.readonly,
@@ -3593,7 +3593,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3593
3593
  });
3594
3594
  }
3595
3595
  function X(r, s) {
3596
- return vr(r, s);
3596
+ return gr(r, s);
3597
3597
  }
3598
3598
  function W(r, s) {
3599
3599
  if (r === "var")
@@ -3603,7 +3603,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3603
3603
  const f = p.value[s], S = X(r, s), T = L.value[s] ?? x.value[S], ve = f?.assigner || T ? void 0 : W(r, S);
3604
3604
  if (!f?.assigner && !ve && !T || a.readonly)
3605
3605
  return null;
3606
- const $e = b.value[s], xe = T ? At(T) : void 0, Pe = !!(xe && U.has(xe)), qe = $e?.loading === !0 || Pe, we = !!(T && se.value && xe && U.has(xe)), te = qe && !we || $e?.disabled === !0, Xe = we ? N.value.assigner.cancel : qe ? N.value.assigner.running : N.value.assigner.run, lt = ve?.id ?? T?.assignedField ?? S;
3606
+ const $e = b.value[s], xe = T ? At(T) : void 0, Pe = !!(xe && H.has(xe)), qe = $e?.loading === !0 || Pe, we = !!(T && se.value && xe && H.has(xe)), te = qe && !we || $e?.disabled === !0, Xe = we ? N.value.assigner.cancel : qe ? N.value.assigner.running : N.value.assigner.run, lt = ve?.id ?? T?.assignedField ?? S;
3607
3607
  return {
3608
3608
  fieldType: r,
3609
3609
  fieldKey: s,
@@ -3649,7 +3649,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3649
3649
  },
3650
3650
  title: `${N.value.assigner.run}: ${r.titleTarget}`
3651
3651
  }, [
3652
- r.loading ? l("span", { class: "aimd-rec-assigner-field__spinner", "aria-hidden": "true" }) : l(yo),
3652
+ r.loading ? l("span", { class: "aimd-rec-assigner-field__spinner", "aria-hidden": "true" }) : l(bo),
3653
3653
  l("span", { class: "aimd-rec-assigner-field__label" }, r.label)
3654
3654
  ]);
3655
3655
  }
@@ -3664,7 +3664,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3664
3664
  class: ["aimd-rec-assigner-field__status", `aimd-rec-assigner-field__status--${s}`],
3665
3665
  title: s === "done" ? r.titleTarget : r.state?.error || r.titleTarget
3666
3666
  }, [
3667
- l(So, {
3667
+ l(Co, {
3668
3668
  variant: s === "done" ? "done" : "idle"
3669
3669
  })
3670
3670
  ]);
@@ -3708,7 +3708,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3708
3708
  kwargs: s.kwargs
3709
3709
  };
3710
3710
  return r;
3711
- }), A = k(() => tr(le.value, G.value)), L = k(() => Object.fromEntries(A.value.map((r) => [r.fieldKey, r]))), x = k(() => Object.fromEntries(A.value.map((r) => [r.assignedField, r])));
3711
+ }), A = k(() => ar(le.value, G.value)), L = k(() => Object.fromEntries(A.value.map((r) => [r.fieldKey, r]))), x = k(() => Object.fromEntries(A.value.map((r) => [r.assignedField, r])));
3712
3712
  function $(r) {
3713
3713
  return r.map((s) => ({
3714
3714
  label: String(s),
@@ -3744,7 +3744,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3744
3744
  for (const s of A.value)
3745
3745
  r[s.fieldKey] = {
3746
3746
  assigner: { mode: ca(s.mode) },
3747
- disabled: ar(s.mode) || void 0
3747
+ disabled: nr(s.mode) || void 0
3748
3748
  };
3749
3749
  return r;
3750
3750
  }), p = k(() => {
@@ -3756,7 +3756,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3756
3756
  for (const [s, f] of Object.entries(a.fieldMeta ?? {}))
3757
3757
  v(r, s, f);
3758
3758
  return r;
3759
- }), D = k(() => hr(G.value, {
3759
+ }), D = k(() => pr(G.value, {
3760
3760
  fieldMeta: p.value,
3761
3761
  schema: a.validationSchema
3762
3762
  })), b = k(() => {
@@ -3777,7 +3777,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3777
3777
  };
3778
3778
  }
3779
3779
  return s;
3780
- }), M = k(() => vi(G.value.step_hierarchy ?? [])), Z = k(() => gi(c.step, ne.value)), Ee = k(() => M.value > 0 || Z.value > 0), Te = k(() => ht(M.value, oe.value)), Je = k(() => ht(Z.value, oe.value)), Fe = k(() => Object.values(c.step).some((r) => ka(r))), Ce = Fl({
3780
+ }), M = k(() => gi(G.value.step_hierarchy ?? [])), Z = k(() => hi(c.step, ne.value)), Ee = k(() => M.value > 0 || Z.value > 0), Te = k(() => ht(M.value, oe.value)), Je = k(() => ht(Z.value, oe.value)), Fe = k(() => Object.values(c.step).some((r) => ka(r))), Ce = Tl({
3781
3781
  contentRoot: m,
3782
3782
  defaultExpanded: a.searchDefaultExpanded,
3783
3783
  fields: G,
@@ -3802,13 +3802,13 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3802
3802
  ue || i("update:modelValue", Ua(c));
3803
3803
  }
3804
3804
  function Ne() {
3805
- H = rr(m.value) ?? H, R = ++ae, !J && (J = !0, K = Promise.resolve().then(async () => {
3805
+ U = lr(m.value) ?? U, R = ++ae, !J && (J = !0, K = Promise.resolve().then(async () => {
3806
3806
  J = !1;
3807
- const r = H, s = R ?? ae;
3808
- H = null, R = null, await sa(void 0, r, s);
3807
+ const r = U, s = R ?? ae;
3808
+ U = null, R = null, await sa(void 0, r, s);
3809
3809
  }));
3810
3810
  }
3811
- const { preRenderer: st } = pr(Ne);
3811
+ const { preRenderer: st } = yr(Ne);
3812
3812
  function zt(r, s) {
3813
3813
  const f = Object.keys(r), S = Object.keys(s);
3814
3814
  return f.length === S.length && f.every((T) => r[T]?.validationError === s[T]?.validationError);
@@ -3882,7 +3882,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3882
3882
  S && (pe.value = f, Ne());
3883
3883
  }
3884
3884
  function Ct(r) {
3885
- U.get(r)?.abort();
3885
+ H.get(r)?.abort();
3886
3886
  }
3887
3887
  function xt(r) {
3888
3888
  return r.startsWith("var_table:") ? "var_table" : r.startsWith("step:") ? "step" : r.startsWith("check:") ? "check" : "var";
@@ -3935,7 +3935,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3935
3935
  if (!De(s.mode))
3936
3936
  continue;
3937
3937
  const f = At(s);
3938
- if (r.has(f) || (r.add(f), U.has(f)) || !Aa(s))
3938
+ if (r.has(f) || (r.add(f), H.has(f)) || !Aa(s))
3939
3939
  continue;
3940
3940
  const S = un(c, s);
3941
3941
  if (!qt(s, S))
@@ -3992,9 +3992,9 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
3992
3992
  const S = se.value;
3993
3993
  if (!S) return;
3994
3994
  const T = At(r), ve = Fa(r, f);
3995
- U.get(T)?.abort();
3995
+ H.get(T)?.abort();
3996
3996
  const $e = new AbortController();
3997
- U.set(T, $e), dt(ve, { loading: !0, error: void 0 });
3997
+ H.set(T, $e), dt(ve, { loading: !0, error: void 0 });
3998
3998
  try {
3999
3999
  const xe = await S({
4000
4000
  section: s,
@@ -4004,23 +4004,23 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4004
4004
  record: Ua(c),
4005
4005
  assigner: r.assigner,
4006
4006
  signal: $e.signal
4007
- }), Pe = lr(xe);
4007
+ }), Pe = sr(xe);
4008
4008
  if (Pe)
4009
4009
  throw new Error(Pe);
4010
- const qe = sr(xe), we = Ta(qe, f), te = [.../* @__PURE__ */ new Set([...ve, ...we])];
4011
- Object.keys(qe).length > 0 ? (or(c, qe), Le({ rebuild: !0, runClientAssigners: !0 })) : ee(), U.get(T) === $e && dt(te, { loading: !1, error: void 0 });
4010
+ const qe = or(xe), we = Ta(qe, f), te = [.../* @__PURE__ */ new Set([...ve, ...we])];
4011
+ Object.keys(qe).length > 0 ? (dr(c, qe), Le({ rebuild: !0, runClientAssigners: !0 })) : ee(), H.get(T) === $e && dt(te, { loading: !1, error: void 0 });
4012
4012
  } catch (xe) {
4013
4013
  if ($e.signal.aborted) {
4014
- U.get(T) === $e && dt(ve, { loading: !1, error: void 0 });
4014
+ H.get(T) === $e && dt(ve, { loading: !1, error: void 0 });
4015
4015
  return;
4016
4016
  }
4017
4017
  const Pe = xe instanceof Error ? xe.message : String(xe);
4018
4018
  dt(ve, { loading: !1, error: Pe });
4019
4019
  } finally {
4020
- U.get(T) === $e && U.delete(T);
4020
+ H.get(T) === $e && H.delete(T);
4021
4021
  }
4022
4022
  }
4023
- const mt = dr({
4023
+ const mt = cr({
4024
4024
  readonly: () => a.readonly,
4025
4025
  clientAssigners: Ae,
4026
4026
  fieldDefinitions: () => ce.value,
@@ -4028,14 +4028,14 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4028
4028
  onError: (r) => i("error", r),
4029
4029
  emitRecordUpdate: ee,
4030
4030
  scheduleInlineRebuild: Ne
4031
- }), at = cr({
4031
+ }), at = ur({
4032
4032
  readonly: () => a.readonly,
4033
4033
  localRecord: c,
4034
4034
  markRecordChanged: Le,
4035
4035
  scheduleInlineRebuild: Ne,
4036
4036
  emitTableAddRow: (r) => i("table-add-row", r),
4037
4037
  emitTableRemoveRow: (r) => i("table-remove-row", r)
4038
- }), Ie = nr({
4038
+ }), Ie = ir({
4039
4039
  readonly: () => a.readonly,
4040
4040
  currentUserName: () => a.currentUserName,
4041
4041
  now: () => a.now,
@@ -4043,7 +4043,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4043
4043
  fieldState: () => b.value,
4044
4044
  typePlugins: () => B.value,
4045
4045
  wrapField: () => a.wrapField
4046
- }), We = ir({
4046
+ }), We = rr({
4047
4047
  fields: () => G.value,
4048
4048
  record: c,
4049
4049
  providers: () => a.collectorProviders,
@@ -4065,7 +4065,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4065
4065
  return q("var", f, r, c.var[s], Ge);
4066
4066
  }
4067
4067
  }
4068
- const xe = r.definition?.type || "str", Pe = Ie.getTypePlugin(f, xe), qe = $i(xe, {
4068
+ const xe = r.definition?.type || "str", Pe = Ie.getTypePlugin(f, xe), qe = Ai(xe, {
4069
4069
  inputType: $e?.inputType,
4070
4070
  codeLanguage: $e?.codeLanguage,
4071
4071
  kwargs: r.definition?.kwargs,
@@ -4085,7 +4085,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4085
4085
  }
4086
4086
  const lt = We.resolveBinding(s);
4087
4087
  if (lt) {
4088
- const Me = Ie.isFieldDisabled(f), Ge = l(xl, {
4088
+ const Me = Ie.isFieldDisabled(f), Ge = l($l, {
4089
4089
  node: r,
4090
4090
  binding: lt,
4091
4091
  value: c.var[s],
@@ -4111,7 +4111,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4111
4111
  return q("var", f, r, c.var[s], Ge);
4112
4112
  }
4113
4113
  if (qe === "datetime") {
4114
- const Me = Ai(c.var[s]);
4114
+ const Me = Ei(c.var[s]);
4115
4115
  Me !== c.var[s] && (c.var[s] = Me, E = !0);
4116
4116
  }
4117
4117
  const ct = Ie.normalizeVarValue(
@@ -4169,7 +4169,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4169
4169
  return q("var", f, r, c.var[s], ut);
4170
4170
  }
4171
4171
  }
4172
- const _e = l(Ql, {
4172
+ const _e = l(Yl, {
4173
4173
  node: r,
4174
4174
  value: c.var[s],
4175
4175
  disabled: Lt,
@@ -4197,10 +4197,10 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4197
4197
  return q("var", f, r, c.var[s], Re);
4198
4198
  }
4199
4199
  function ia(r) {
4200
- const s = r.id, f = `var_table:${s}`, S = fr(r), T = at.ensureVarTableRows(s, S), ve = Ie.isFieldDisabled(f), $e = S.filter((te) => !!p.value[`var_table:${s}:${te}`]?.disabled), xe = de("var_table", f), Pe = [
4200
+ const s = r.id, f = `var_table:${s}`, S = mr(r), T = at.ensureVarTableRows(s, S), ve = Ie.isFieldDisabled(f), $e = S.filter((te) => !!p.value[`var_table:${s}:${te}`]?.disabled), xe = de("var_table", f), Pe = [
4201
4201
  ...Ie.fieldStateClasses(f),
4202
4202
  ...Ce.getFieldClasses(f)
4203
- ], qe = l(Zl, {
4203
+ ], qe = l(es, {
4204
4204
  node: r,
4205
4205
  rows: T,
4206
4206
  columns: S,
@@ -4231,7 +4231,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4231
4231
  const Xe = S.indexOf(te.column);
4232
4232
  if (Xe < 0)
4233
4233
  return;
4234
- const lt = Ci(te.text), ct = xi(
4234
+ const lt = xi(te.text), ct = $i(
4235
4235
  T,
4236
4236
  S,
4237
4237
  te.rowIndex,
@@ -4336,11 +4336,11 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4336
4336
  }
4337
4337
  function Jt(r, s = []) {
4338
4338
  const f = r.id, S = `step:${f}`;
4339
- f in c.step || (c.step[f] = bi(), E = !0);
4339
+ f in c.step || (c.step[f] = _i(), E = !0);
4340
4340
  const T = c.step[f], ve = Ie.isFieldDisabled(S), $e = [
4341
4341
  ...Ie.fieldStateClasses(S),
4342
4342
  ...Ce.getFieldClasses(S)
4343
- ], xe = It(s), Pe = l(ms, {
4343
+ ], xe = It(s), Pe = l(vs, {
4344
4344
  node: r,
4345
4345
  state: T,
4346
4346
  bodyNodes: xe,
@@ -4352,19 +4352,19 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4352
4352
  required: D.value.has(S),
4353
4353
  onCheckChange: (we) => {
4354
4354
  const te = ka(T);
4355
- Si(T, we.value, Date.now()), ne.value = Date.now(), Le(), i("field-change", { section: "step", fieldKey: we.id, value: we.value }), Ke("change", S), te && i("field-change", { section: "step", fieldKey: `${we.id}:timer`, value: tt(T) });
4355
+ Ci(T, we.value, Date.now()), ne.value = Date.now(), Le(), i("field-change", { section: "step", fieldKey: we.id, value: we.value }), Ke("change", S), te && i("field-change", { section: "step", fieldKey: `${we.id}:timer`, value: tt(T) });
4356
4356
  },
4357
4357
  onAnnotationChange: (we) => {
4358
4358
  T.annotation = we.value, Le(), i("field-change", { section: "step", fieldKey: `${we.id}:annotation`, value: we.value });
4359
4359
  },
4360
4360
  onTimerStart: (we) => {
4361
- wi(T, Date.now()) && (ne.value = Date.now(), Le(), i("field-change", { section: "step", fieldKey: `${we.id}:timer`, value: tt(T) }));
4361
+ Si(T, Date.now()) && (ne.value = Date.now(), Le(), i("field-change", { section: "step", fieldKey: `${we.id}:timer`, value: tt(T) }));
4362
4362
  },
4363
4363
  onTimerPause: (we) => {
4364
- ki(T, Date.now()) && (ne.value = Date.now(), Le(), i("field-change", { section: "step", fieldKey: `${we.id}:timer`, value: tt(T) }));
4364
+ wi(T, Date.now()) && (ne.value = Date.now(), Le(), i("field-change", { section: "step", fieldKey: `${we.id}:timer`, value: tt(T) }));
4365
4365
  },
4366
4366
  onTimerReset: (we) => {
4367
- _i(T) && (ne.value = Date.now(), Le(), i("field-change", { section: "step", fieldKey: `${we.id}:timer`, value: tt(T) }));
4367
+ ki(T) && (ne.value = Date.now(), Le(), i("field-change", { section: "step", fieldKey: `${we.id}:timer`, value: tt(T) }));
4368
4368
  },
4369
4369
  onBlur: (we) => {
4370
4370
  i("field-blur", { section: "step", fieldKey: we.id }), Ke("blur", S);
@@ -4374,11 +4374,11 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4374
4374
  }
4375
4375
  function Ma(r, s = []) {
4376
4376
  const f = r.id, S = `check:${f}`;
4377
- f in c.check || (c.check[f] = yi(), E = !0);
4377
+ f in c.check || (c.check[f] = bi(), E = !0);
4378
4378
  const T = c.check[f], ve = Ie.isFieldDisabled(S), $e = [
4379
4379
  ...Ie.fieldStateClasses(S),
4380
4380
  ...Ce.getFieldClasses(S)
4381
- ], xe = Et(s), Pe = l(vs, {
4381
+ ], xe = Et(s), Pe = l(gs, {
4382
4382
  node: r,
4383
4383
  state: T,
4384
4384
  bodyNodes: xe,
@@ -4417,8 +4417,8 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4417
4417
  score: r.score,
4418
4418
  extra: r.extra
4419
4419
  };
4420
- s in c.quiz || (c.quiz[s] = pi(S));
4421
- const T = l(vo, {
4420
+ s in c.quiz || (c.quiz[s] = yi(S));
4421
+ const T = l(go, {
4422
4422
  class: "aimd-rec-inline aimd-rec-inline--quiz",
4423
4423
  extraClasses: Ce.getFieldClasses(f),
4424
4424
  quiz: S,
@@ -4440,7 +4440,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4440
4440
  }
4441
4441
  async function sa(r, s, f) {
4442
4442
  E = !1;
4443
- const S = await gr(a.content || "", {
4443
+ const S = await hr(a.content || "", {
4444
4444
  locale: oe.value,
4445
4445
  groupStepBodies: !0,
4446
4446
  groupCheckBodies: !0,
@@ -4463,7 +4463,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4463
4463
  quiz: (T) => la(T)
4464
4464
  }
4465
4465
  });
4466
- r !== void 0 && r !== P || f !== void 0 && f !== ae || (h.value = S.nodes, await je(), ur(m.value, s ?? null), E && ee());
4466
+ r !== void 0 && r !== P || f !== void 0 && f !== ae || (h.value = S.nodes, await je(), fr(m.value, s ?? null), E && ee());
4467
4467
  }
4468
4468
  async function oa() {
4469
4469
  const r = ++P, s = ++ae;
@@ -4481,7 +4481,7 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4481
4481
  `));
4482
4482
  if (r !== P) return;
4483
4483
  G.value = S, Ae.value = S.client_assigner || [], z.value = {}, i("fields-change", S);
4484
- const T = hi(c, S), ve = mt.applyCurrentClientAssigners();
4484
+ const T = pi(c, S), ve = mt.applyCurrentClientAssigners();
4485
4485
  (T || ve) && ee(), await sa(r, void 0, s), Vt();
4486
4486
  } catch (f) {
4487
4487
  if (r !== P)
@@ -4570,9 +4570,9 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4570
4570
  }
4571
4571
  ), Mt(() => {
4572
4572
  We.stopAll({ resetPermissions: !0 });
4573
- for (const r of U.values())
4573
+ for (const r of H.values())
4574
4574
  r.abort();
4575
- U.clear(), ge && clearInterval(ge);
4575
+ H.clear(), ge && clearInterval(ge);
4576
4576
  }), t({
4577
4577
  validate: wt,
4578
4578
  validateField: St,
@@ -4582,9 +4582,9 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4582
4582
  runManualClientAssigners: mt.triggerManualClientAssigners,
4583
4583
  startCollector: We.start,
4584
4584
  stopCollector: We.stop
4585
- }), (r, s) => (_(), w("div", Co, [
4586
- o.value ? (_(), w("div", xo, C(o.value), 1)) : (_(), w(Be, { key: 1 }, [
4587
- et.value ? (_(), ft(fs, {
4585
+ }), (r, s) => (_(), w("div", xo, [
4586
+ o.value ? (_(), w("div", $o, C(o.value), 1)) : (_(), w(Be, { key: 1 }, [
4587
+ et.value ? (_(), ft(ms, {
4588
4588
  key: 0,
4589
4589
  "field-key": Ve(Ce).fieldKey.value,
4590
4590
  "onUpdate:fieldKey": s[0] || (s[0] = (f) => Ve(Ce).fieldKey.value = f),
@@ -4601,9 +4601,9 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4601
4601
  onNext: Ve(Ce).focusNextMatch,
4602
4602
  onPrevious: Ve(Ce).focusPreviousMatch
4603
4603
  }, null, 8, ["field-key", "query", "field-refs", "match-count", "messages", "panel-visible", "result-label", "onClear", "onCollapse", "onExpand", "onNext", "onPrevious"])) : re("", !0),
4604
- Ee.value ? (_(), w("div", $o, [
4605
- M.value > 0 ? (_(), w("span", Ao, C(N.value.step.protocolEstimatedTotal(Te.value)), 1)) : re("", !0),
4606
- Z.value > 0 ? (_(), w("span", Eo, C(N.value.step.protocolRecordedTotal(Je.value)), 1)) : re("", !0)
4604
+ Ee.value ? (_(), w("div", Ao, [
4605
+ M.value > 0 ? (_(), w("span", Eo, C(N.value.step.protocolEstimatedTotal(Te.value)), 1)) : re("", !0),
4606
+ Z.value > 0 ? (_(), w("span", Fo, C(N.value.step.protocolRecordedTotal(Je.value)), 1)) : re("", !0)
4607
4607
  ])) : re("", !0),
4608
4608
  h.value.length ? (_(), w("div", {
4609
4609
  key: 2,
@@ -4612,11 +4612,11 @@ const yo = /* @__PURE__ */ kt(go, [["render", po]]), bo = {
4612
4612
  class: "aimd-protocol-recorder__content aimd-renderer"
4613
4613
  }, [
4614
4614
  ea(Ve(F), { nodes: h.value }, null, 8, ["nodes"])
4615
- ], 512)) : (_(), w("div", Fo, C(N.value.common.emptyContent), 1))
4615
+ ], 512)) : (_(), w("div", To, C(N.value.common.emptyContent), 1))
4616
4616
  ], 64))
4617
4617
  ]));
4618
4618
  }
4619
- }), To = /\{\{(var_table|var|step|check)\s*\|\s*([^}]+)\}\}/g, Ro = /```quiz[^\n]*\n[\s\S]*?\n```/g;
4619
+ }), Ro = /\{\{(var_table|var|step|check)\s*\|\s*([^}]+)\}\}/g, Mo = /```quiz[^\n]*\n[\s\S]*?\n```/g;
4620
4620
  function Fn(e) {
4621
4621
  const t = e.trim();
4622
4622
  return t.startsWith('"') && t.endsWith('"') || t.startsWith("'") && t.endsWith("'") ? t.slice(1, -1) : t;
@@ -4687,10 +4687,10 @@ function Gn(e) {
4687
4687
  const n = (e.valueType || "").trim(), a = (e.defaultPart || "").trim();
4688
4688
  return n && (t += `: ${n}`), a && (t += ` = ${a}`), t + (e.suffixRaw || "");
4689
4689
  }
4690
- function Mo(e) {
4690
+ function zo(e) {
4691
4691
  return /subvars\s*=\s*\[/.test(e) ? !0 : /^[A-Za-z_][\w-]*\s*\([^)]*\)\s*$/.test(e.trim());
4692
4692
  }
4693
- function zo(e) {
4693
+ function qo(e) {
4694
4694
  const t = e.trim();
4695
4695
  if (!t)
4696
4696
  return "";
@@ -4701,7 +4701,7 @@ function zo(e) {
4701
4701
  const n = t.indexOf(":");
4702
4702
  return n >= 0 ? t.slice(0, n).trim() : t;
4703
4703
  }
4704
- function qo(e) {
4704
+ function Vo(e) {
4705
4705
  const t = e.trim(), n = t.match(/^([A-Za-z_][\w-]*)\s*\(([^)]*)\)\s*$/);
4706
4706
  if (n) {
4707
4707
  const o = n[2].split(",").map((m) => m.trim()).filter(Boolean).join(", ");
@@ -4710,23 +4710,23 @@ function qo(e) {
4710
4710
  subvarsText: o || "col1, col2"
4711
4711
  };
4712
4712
  }
4713
- const a = t.split(",")[0]?.trim() || "my_table", h = t.match(/subvars\s*=\s*\[([\s\S]*?)\]/)?.[1]?.split(",").map((o) => zo(o)).filter(Boolean).join(", ");
4713
+ const a = t.split(",")[0]?.trim() || "my_table", h = t.match(/subvars\s*=\s*\[([\s\S]*?)\]/)?.[1]?.split(",").map((o) => qo(o)).filter(Boolean).join(", ");
4714
4714
  return {
4715
4715
  id: a,
4716
4716
  subvarsText: h || "col1, col2"
4717
4717
  };
4718
4718
  }
4719
- function Vo(e) {
4719
+ function Do(e) {
4720
4720
  return {
4721
4721
  id: e.trim().split(/,\s*/)[0]?.trim() || "my_step"
4722
4722
  };
4723
4723
  }
4724
- function Do(e) {
4724
+ function Io(e) {
4725
4725
  return {
4726
4726
  id: e.trim().split(/,\s*/)[0]?.trim() || "my_check"
4727
4727
  };
4728
4728
  }
4729
- function Io(e) {
4729
+ function Lo(e) {
4730
4730
  const t = e.match(/^\s*id:\s*(.+)\s*$/m), n = e.match(/^\s*type:\s*(.+)\s*$/m);
4731
4731
  return {
4732
4732
  id: Fn(t?.[1] || "quiz_choice_1"),
@@ -4736,10 +4736,10 @@ function Io(e) {
4736
4736
  function Ga(e, t) {
4737
4737
  return e.replace(/^(\{\{(?:var_table|var|step|check)\s*\|\s*)([\s\S]*?)(\}\})$/, `$1${t}$3`);
4738
4738
  }
4739
- function Lo(e, t) {
4739
+ function Po(e, t) {
4740
4740
  return e.replace(/^(\s*)([A-Za-z_][\w-]*)/, `$1${t}`);
4741
4741
  }
4742
- function Po(e, t, n) {
4742
+ function Bo(e, t, n) {
4743
4743
  const a = e.match(/^\{\{(?:var_table|var|step|check)\s*\|\s*([\s\S]*?)\}\}$/);
4744
4744
  if (!a)
4745
4745
  return e;
@@ -4751,9 +4751,9 @@ function Po(e, t, n) {
4751
4751
  id: n
4752
4752
  }));
4753
4753
  }
4754
- return Ga(e, Lo(i, n));
4754
+ return Ga(e, Po(i, n));
4755
4755
  }
4756
- function Bo(e, t) {
4756
+ function Oo(e, t) {
4757
4757
  const n = e.match(/^\{\{var\s*\|\s*([\s\S]*?)\}\}$/);
4758
4758
  if (!n)
4759
4759
  return e;
@@ -4763,7 +4763,7 @@ function Bo(e, t) {
4763
4763
  valueType: t
4764
4764
  }));
4765
4765
  }
4766
- function Oo(e, t) {
4766
+ function No(e, t) {
4767
4767
  return /^\s*id:\s*.+$/m.test(e) ? e.replace(/^\s*id:\s*.+$/m, `id: ${t}`) : e.replace(/^```quiz[^\n]*\n/, (n) => `${n}id: ${t}
4768
4768
  `);
4769
4769
  }
@@ -4872,11 +4872,11 @@ function tn(e, t) {
4872
4872
  function _t(e, t, n, a) {
4873
4873
  return e.slice(0, t) + a + e.slice(n);
4874
4874
  }
4875
- function No(e, t, n) {
4875
+ function Ko(e, t, n) {
4876
4876
  const a = t > 0 ? e[t - 1] : "", i = t < e.length ? e[t] : "", h = !!a && !/\s/.test(a), o = !!i && !/\s/.test(i);
4877
4877
  return `${h ? " " : ""}${n}${o ? " " : ""}`;
4878
4878
  }
4879
- function Ko(e, t, n) {
4879
+ function jo(e, t, n) {
4880
4880
  const a = e.slice(0, t), i = e.slice(t), h = a.match(/\n*$/)?.[0].length ?? 0, o = i.match(/^\n*/)?.[0].length ?? 0, m = a.length === 0 || h >= 2 ? "" : `
4881
4881
  `.repeat(2 - h), c = i.length === 0 || o >= 2 ? "" : `
4882
4882
  `.repeat(2 - o);
@@ -4884,9 +4884,9 @@ function Ko(e, t, n) {
4884
4884
  }
4885
4885
  function Qa(e) {
4886
4886
  const t = [];
4887
- for (const n of e.matchAll(To)) {
4887
+ for (const n of e.matchAll(Ro)) {
4888
4888
  const a = n[0], i = n[1], h = n[2], o = n.index ?? 0, m = o + a.length, c = Mn(e, o, m, "inline");
4889
- if (i === "var" && !Mo(h)) {
4889
+ if (i === "var" && !zo(h)) {
4890
4890
  const P = en(h);
4891
4891
  t.push({
4892
4892
  uid: `inline:${o}:${m}`,
@@ -4903,7 +4903,7 @@ function Qa(e) {
4903
4903
  continue;
4904
4904
  }
4905
4905
  if (i === "var" || i === "var_table") {
4906
- const P = qo(h);
4906
+ const P = Vo(h);
4907
4907
  t.push({
4908
4908
  uid: `inline:${o}:${m}`,
4909
4909
  fieldType: "var_table",
@@ -4919,7 +4919,7 @@ function Qa(e) {
4919
4919
  continue;
4920
4920
  }
4921
4921
  if (i === "step") {
4922
- const P = Vo(h);
4922
+ const P = Do(h);
4923
4923
  t.push({
4924
4924
  uid: `inline:${o}:${m}`,
4925
4925
  fieldType: "step",
@@ -4933,7 +4933,7 @@ function Qa(e) {
4933
4933
  });
4934
4934
  continue;
4935
4935
  }
4936
- const z = Do(h);
4936
+ const z = Io(h);
4937
4937
  t.push({
4938
4938
  uid: `inline:${o}:${m}`,
4939
4939
  fieldType: "check",
@@ -4946,8 +4946,8 @@ function Qa(e) {
4946
4946
  segmentEnd: c.segmentEnd
4947
4947
  });
4948
4948
  }
4949
- for (const n of e.matchAll(Ro)) {
4950
- const a = n[0], i = n.index ?? 0, h = i + a.length, o = Mn(e, i, h, "block"), m = Io(a);
4949
+ for (const n of e.matchAll(Mo)) {
4950
+ const a = n[0], i = n.index ?? 0, h = i + a.length, o = Mn(e, i, h, "block"), m = Lo(a);
4951
4951
  t.push({
4952
4952
  uid: `block:${i}:${h}`,
4953
4953
  fieldType: "quiz",
@@ -4978,23 +4978,23 @@ function Qn(e, t, n) {
4978
4978
 
4979
4979
  ${a}` : a;
4980
4980
  }
4981
- function jo(e, t, n, a, i) {
4981
+ function Ho(e, t, n, a, i) {
4982
4982
  if (t.length === 0)
4983
4983
  return Qn(e, a, i);
4984
- const h = tn(a, i), o = Math.max(0, Math.min(n, t.length)), m = o >= t.length ? t[t.length - 1].segmentEnd : t[o].segmentStart, z = (a === "quiz" ? "block" : "inline") === "block" ? Ko(e, m, h) : No(e, m, h);
4984
+ const h = tn(a, i), o = Math.max(0, Math.min(n, t.length)), m = o >= t.length ? t[t.length - 1].segmentEnd : t[o].segmentStart, z = (a === "quiz" ? "block" : "inline") === "block" ? jo(e, m, h) : Ko(e, m, h);
4985
4985
  return _t(e, m, m, z);
4986
4986
  }
4987
- function Ho(e, t) {
4987
+ function Uo(e, t) {
4988
4988
  return _t(e, t.segmentStart, t.segmentEnd, "");
4989
4989
  }
4990
- function Uo(e, t, n) {
4990
+ function Wo(e, t, n) {
4991
4991
  const a = n.trim();
4992
4992
  if (!a || a === t.id)
4993
4993
  return e;
4994
- const i = t.fieldType === "quiz" ? Oo(t.raw, a) : Po(t.raw, t.fieldType, a);
4994
+ const i = t.fieldType === "quiz" ? No(t.raw, a) : Bo(t.raw, t.fieldType, a);
4995
4995
  return _t(e, t.start, t.end, i);
4996
4996
  }
4997
- function Wo(e, t, n) {
4997
+ function Go(e, t, n) {
4998
4998
  if (n === t.fieldType)
4999
4999
  return e;
5000
5000
  const a = tn(n, {
@@ -5005,21 +5005,21 @@ function Wo(e, t, n) {
5005
5005
  });
5006
5006
  return _t(e, t.start, t.end, a);
5007
5007
  }
5008
- function Go(e, t, n) {
5008
+ function Qo(e, t, n) {
5009
5009
  if (t.fieldType !== "var")
5010
5010
  return e;
5011
5011
  const a = n.trim();
5012
5012
  if (a === (t.valueType || "").trim())
5013
5013
  return e;
5014
- const i = Bo(t.raw, a);
5014
+ const i = Oo(t.raw, a);
5015
5015
  return _t(e, t.start, t.end, i);
5016
5016
  }
5017
- function Qo(e, t, n) {
5017
+ function Yo(e, t, n) {
5018
5018
  const a = (t.sourceKind === "block" ? n.trimEnd() : n.trim()).replace(/\r\n?/g, `
5019
5019
  `);
5020
5020
  return !a || a === t.raw ? e : _t(e, t.start, t.end, a);
5021
5021
  }
5022
- function Yo(e, t, n, a) {
5022
+ function Jo(e, t, n, a) {
5023
5023
  const i = t.find((ue) => ue.uid === n);
5024
5024
  if (!i)
5025
5025
  return e;
@@ -5030,14 +5030,14 @@ function Yo(e, t, n, a) {
5030
5030
  })), ae = o >= P.length ? P.length === 0 ? c.length : P[P.length - 1].segmentEnd : P[o].segmentStart;
5031
5031
  return _t(c, ae, ae, m);
5032
5032
  }
5033
- function Jo(e = {}) {
5034
- return new qi({
5033
+ function Xo(e = {}) {
5034
+ return new Vi({
5035
5035
  view(t) {
5036
- return new Xo(t, e);
5036
+ return new Zo(t, e);
5037
5037
  }
5038
5038
  });
5039
5039
  }
5040
- class Xo {
5040
+ class Zo {
5041
5041
  constructor(t, n) {
5042
5042
  var a;
5043
5043
  this.editorView = t, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (a = n.width) !== null && a !== void 0 ? a : 1, this.color = n.color === !1 ? void 0 : n.color || "black", this.class = n.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((i) => {
@@ -5065,8 +5065,8 @@ class Xo {
5065
5065
  if (J) {
5066
5066
  let K = J.getBoundingClientRect(), E = ae ? K.bottom : K.top;
5067
5067
  ae && ue && (E = (E + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2);
5068
- let H = this.width / 2 * m;
5069
- a = { left: K.left, right: K.right, top: E - H, bottom: E + H };
5068
+ let U = this.width / 2 * m;
5069
+ a = { left: K.left, right: K.right, top: E - U, bottom: E + U };
5070
5070
  }
5071
5071
  }
5072
5072
  }
@@ -5095,7 +5095,7 @@ class Xo {
5095
5095
  if (n && !h) {
5096
5096
  let o = n.pos;
5097
5097
  if (this.editorView.dragging && this.editorView.dragging.slice) {
5098
- let m = Vi(this.editorView.state.doc, o, this.editorView.dragging.slice);
5098
+ let m = Di(this.editorView.state.doc, o, this.editorView.dragging.slice);
5099
5099
  m != null && (o = m);
5100
5100
  }
5101
5101
  this.setCursor(o), this.scheduleRemoval(5e3);
@@ -5111,7 +5111,7 @@ class Xo {
5111
5111
  this.editorView.dom.contains(t.relatedTarget) || this.setCursor(null);
5112
5112
  }
5113
5113
  }
5114
- const Zo = /* @__PURE__ */ Ye({
5114
+ const ed = /* @__PURE__ */ Ye({
5115
5115
  __name: "AimdRecorderWysiwygFieldHost",
5116
5116
  props: {
5117
5117
  surfaceState: {},
@@ -5171,7 +5171,7 @@ const Zo = /* @__PURE__ */ Ye({
5171
5171
  }, null, 8, ["content", "model-value", "readonly", "current-user-name", "now", "locale", "messages", "quiz-grades", "submitted", "choice-option-explanation-mode", "scale-grade-display-mode", "step-detail-display", "field-meta", "server-assigners", "assigners", "field-state", "validation-schema", "validation-triggers", "wrap-field", "custom-renderers", "field-adapters", "entity-resolvers", "collector-providers", "request-collector-permission", "collector-actor-id", "collector-record-key", "protocol-context", "resolve-file", "resolve-file-info", "upload-file", "run-server-assigner", "assigner-runner", "type-plugins", "onUpdate:modelValue"]))
5172
5172
  ], 2));
5173
5173
  }
5174
- }), ed = /* @__PURE__ */ kt(Zo, [["__scopeId", "data-v-3b94d62c"]]), Yn = "aimdRecorderQuizBlock", td = /* @__PURE__ */ new Set(["var", "var_table", "step", "check"]), ad = {
5174
+ }), td = /* @__PURE__ */ kt(ed, [["__scopeId", "data-v-3b94d62c"]]), Yn = "aimdRecorderQuizBlock", ad = /* @__PURE__ */ new Set(["var", "var_table", "step", "check"]), nd = {
5175
5175
  var: "#2563eb",
5176
5176
  var_table: "#059669",
5177
5177
  step: "#d97706",
@@ -5190,11 +5190,11 @@ const Zo = /* @__PURE__ */ Ye({
5190
5190
  ref_fig: "ref_fig",
5191
5191
  cite: "cite"
5192
5192
  };
5193
- function nd(e) {
5193
+ function id(e) {
5194
5194
  return (e || "").toLowerCase().startsWith("zh");
5195
5195
  }
5196
- function id(e) {
5197
- const t = nd(e);
5196
+ function rd(e) {
5197
+ const t = id(e);
5198
5198
  return {
5199
5199
  edit: t ? "编辑" : "Edit",
5200
5200
  editTitle: t ? "编辑字段" : "Edit field",
@@ -5203,16 +5203,16 @@ function id(e) {
5203
5203
  dragTitle: t ? "拖动字段" : "Drag field"
5204
5204
  };
5205
5205
  }
5206
- function rd(e, t) {
5206
+ function ld(e, t) {
5207
5207
  return `{{${e}|${t}}}`;
5208
5208
  }
5209
- function ld(e) {
5209
+ function sd(e) {
5210
5210
  return `\`\`\`quiz
5211
5211
  ${e.replace(/\r\n?/g, `
5212
5212
  `).replace(/\n+$/, "")}
5213
5213
  \`\`\``;
5214
5214
  }
5215
- function sd(e, t) {
5215
+ function od(e, t) {
5216
5216
  const n = Qa(e)[0];
5217
5217
  return n ? {
5218
5218
  fieldType: n.fieldType,
@@ -5225,9 +5225,9 @@ function sd(e, t) {
5225
5225
  };
5226
5226
  }
5227
5227
  function Pa(e) {
5228
- return ad[e] || "#6b7280";
5228
+ return nd[e] || "#6b7280";
5229
5229
  }
5230
- function od() {
5230
+ function dd() {
5231
5231
  function e(n) {
5232
5232
  t(n);
5233
5233
  }
@@ -5253,7 +5253,7 @@ function od() {
5253
5253
  }
5254
5254
  return e;
5255
5255
  }
5256
- const dd = Di("aimdRecorderQuizBlock", () => od()), Vn = Ii("aimd_recorder_quiz", () => ({
5256
+ const cd = Ii("aimdRecorderQuizBlock", () => dd()), Vn = Li("aimd_recorder_quiz", () => ({
5257
5257
  group: "block",
5258
5258
  atom: !0,
5259
5259
  draggable: !0,
@@ -5288,7 +5288,7 @@ const dd = Di("aimdRecorderQuizBlock", () => od()), Vn = Ii("aimd_recorder_quiz"
5288
5288
  class Dn {
5289
5289
  constructor(t, n, a, i, h) {
5290
5290
  this.node = t, this.view = n, this.getPos = a, this.options = i, this.block = h, this.editButtonEl = null, this.deleteButtonEl = null, this.dragHandleEl = null;
5291
- const o = h ? "div" : "span", m = id(this.options.surfaceState.locale);
5291
+ const o = h ? "div" : "span", m = rd(this.options.surfaceState.locale);
5292
5292
  this.dom = document.createElement(o), this.dom.className = [
5293
5293
  "aimd-recorder-wysiwyg-node",
5294
5294
  h ? "aimd-recorder-wysiwyg-node--block" : "aimd-recorder-wysiwyg-node--inline"
@@ -5319,17 +5319,17 @@ class Dn {
5319
5319
  const t = this.getPos();
5320
5320
  if (typeof t != "number")
5321
5321
  return;
5322
- const n = this.view.state.tr.setSelection(Ki.create(this.view.state.doc, t));
5322
+ const n = this.view.state.tr.setSelection(ji.create(this.view.state.doc, t));
5323
5323
  this.view.dispatch(n);
5324
5324
  }
5325
5325
  resolveIdentity() {
5326
- return sd(this.resolveRaw(), this.resolveFieldType());
5326
+ return od(this.resolveRaw(), this.resolveFieldType());
5327
5327
  }
5328
5328
  resolveFieldType() {
5329
5329
  return this.block ? "quiz" : this.node.attrs.fieldType || "var";
5330
5330
  }
5331
5331
  resolveRaw() {
5332
- return this.block ? ld(String(this.node.attrs.fieldContent || "")) : rd(
5332
+ return this.block ? sd(String(this.node.attrs.fieldContent || "")) : ld(
5333
5333
  String(this.node.attrs.fieldType || "var"),
5334
5334
  String(this.node.attrs.fieldContent || "")
5335
5335
  );
@@ -5337,7 +5337,7 @@ class Dn {
5337
5337
  renderField() {
5338
5338
  const t = this.resolveIdentity(), n = t?.id ? `${t.fieldType} ${t.id}` : this.resolveFieldType();
5339
5339
  this.summaryEl.textContent = n, this.summaryEl.title = n, this.dom.setAttribute("data-field-type", this.resolveFieldType()), this.dom.draggable = !this.options.surfaceState.readonly, this.dragHandleEl && (this.dragHandleEl.draggable = !this.options.surfaceState.readonly), this.editButtonEl && (this.editButtonEl.disabled = this.options.surfaceState.readonly), this.deleteButtonEl && (this.deleteButtonEl.disabled = this.options.surfaceState.readonly);
5340
- const a = l(ed, {
5340
+ const a = l(td, {
5341
5341
  surfaceState: this.options.surfaceState,
5342
5342
  rawContent: this.resolveRaw(),
5343
5343
  displayMode: this.block ? "block" : "inline"
@@ -5364,7 +5364,7 @@ class Dn {
5364
5364
  nn(null, this.bodyEl);
5365
5365
  }
5366
5366
  }
5367
- class cd {
5367
+ class ud {
5368
5368
  constructor(t, n, a) {
5369
5369
  this.editing = !1, this.node = t, this.view = n, this.getPos = a;
5370
5370
  const i = String(t.attrs.fieldType || "var"), h = String(t.attrs.fieldContent || ""), o = Pa(i);
@@ -5438,32 +5438,32 @@ class cd {
5438
5438
  destroy() {
5439
5439
  }
5440
5440
  }
5441
- const ud = Li.extendSchema((e) => (t) => ({
5441
+ const fd = Pi.extendSchema((e) => (t) => ({
5442
5442
  ...e(t),
5443
- toDOM: (a) => ["br", t.get(Pi.key)(a)]
5444
- })), fd = Bi(() => Jo({
5443
+ toDOM: (a) => ["br", t.get(Bi.key)(a)]
5444
+ })), md = Oi(() => Xo({
5445
5445
  class: "aimd-recorder-dropcursor",
5446
5446
  color: !1,
5447
5447
  width: 4
5448
5448
  }));
5449
- function md(e) {
5449
+ function vd(e) {
5450
5450
  const t = dn(on, () => (a, i, h) => {
5451
5451
  const o = String(a.attrs.fieldType || "var");
5452
- return td.has(o) ? new Dn(a, i, h, e, !1) : new cd(a, i, h);
5452
+ return ad.has(o) ? new Dn(a, i, h, e, !1) : new ud(a, i, h);
5453
5453
  }), n = dn(Vn, () => (a, i, h) => new Dn(a, i, h, e, !0));
5454
5454
  return [
5455
- Oi,
5456
- dd,
5455
+ Ni,
5456
+ cd,
5457
5457
  on,
5458
5458
  Vn,
5459
5459
  t,
5460
5460
  n,
5461
- ud,
5462
5461
  fd,
5463
- Ni
5462
+ md,
5463
+ Ki
5464
5464
  ].flat();
5465
5465
  }
5466
- const vd = /* @__PURE__ */ Ye({
5466
+ const gd = /* @__PURE__ */ Ye({
5467
5467
  __name: "AimdRecorderWysiwygSurface",
5468
5468
  props: {
5469
5469
  content: {},
@@ -5503,7 +5503,7 @@ const vd = /* @__PURE__ */ Ye({
5503
5503
  },
5504
5504
  emits: ["update:content", "update:modelValue", "ready", "fields-change", "error", "field-change", "field-blur", "assigner-request", "assigner-cancel", "table-add-row", "table-remove-row", "validation", "edit-field", "delete-field"],
5505
5505
  setup(e, { expose: t, emit: n }) {
5506
- const a = ["var", "var_table", "quiz", "step", "check"], i = new Set(a), h = [...a], o = e, m = n, c = k(() => ji(o.locale)), z = k(() => Hi(c.value).filter((v) => i.has(v.type))), P = k(() => Ui(c.value)), ae = k(() => (o.locale || "").toLowerCase().startsWith("zh") ? "拖到这里" : "Drop here"), ue = k(() => ({
5506
+ const a = ["var", "var_table", "quiz", "step", "check"], i = new Set(a), h = [...a], o = e, m = n, c = k(() => Hi(o.locale)), z = k(() => Ui(c.value).filter((v) => i.has(v.type))), P = k(() => Wi(c.value)), ae = k(() => (o.locale || "").toLowerCase().startsWith("zh") ? "拖到这里" : "Drop here"), ue = k(() => ({
5507
5507
  "--aimd-recorder-drop-label": JSON.stringify(ae.value)
5508
5508
  })), J = k(() => (o.typePlugins ?? []).map((v) => ({
5509
5509
  key: v.type,
@@ -5513,11 +5513,11 @@ const vd = /* @__PURE__ */ Ye({
5513
5513
  }))), {
5514
5514
  content: K,
5515
5515
  syncFromProp: E,
5516
- insertTextIntoActiveEditor: H,
5516
+ insertTextIntoActiveEditor: U,
5517
5517
  handleMdAction: R,
5518
5518
  onMilkdownMarkdownUpdated: ne,
5519
5519
  onMilkdownReady: ge
5520
- } = Wi({
5520
+ } = Gi({
5521
5521
  initialContent: o.content,
5522
5522
  initialMode: "wysiwyg",
5523
5523
  resolvedMessages: c,
@@ -5534,7 +5534,7 @@ const vd = /* @__PURE__ */ Ye({
5534
5534
  m("error", I instanceof Error ? I.message : String(I));
5535
5535
  }
5536
5536
  }, { immediate: !0 });
5537
- const U = Oa(Ja()), ie = O(null), ye = O({}), oe = O(0), N = k(() => Xa(o.locale, o.messages)), B = k(() => {
5537
+ const H = Oa(Ja()), ie = O(null), ye = O({}), oe = O(0), N = k(() => Xa(o.locale, o.messages)), B = k(() => {
5538
5538
  const v = o.fieldState ?? {}, I = ye.value;
5539
5539
  if (Object.keys(v).length === 0 && Object.keys(I).length === 0) return;
5540
5540
  const j = { ...v };
@@ -5579,7 +5579,7 @@ const vd = /* @__PURE__ */ Ye({
5579
5579
  return v ? q(v) : !1;
5580
5580
  }
5581
5581
  async function W(v = {}) {
5582
- const I = Sa(Ot(K.value), U, {
5582
+ const I = Sa(Ot(K.value), H, {
5583
5583
  fieldMeta: o.fieldMeta,
5584
5584
  schema: o.validationSchema,
5585
5585
  messages: N.value.validation
@@ -5587,7 +5587,7 @@ const vd = /* @__PURE__ */ Ye({
5587
5587
  return oe.value += 1, se(I), !I.valid && v.focus !== !1 && (await je(), X()), I;
5588
5588
  }
5589
5589
  async function de(v, I = {}) {
5590
- const j = Sa(Ot(K.value), U, {
5590
+ const j = Sa(Ot(K.value), H, {
5591
5591
  fieldMeta: o.fieldMeta,
5592
5592
  schema: o.validationSchema,
5593
5593
  fieldKeys: [v],
@@ -5608,13 +5608,13 @@ const vd = /* @__PURE__ */ Ye({
5608
5608
  }
5609
5609
  Se(() => o.modelValue, (v) => {
5610
5610
  const I = pa(v);
5611
- Kt(I) !== Kt(U) && Ha(U, I);
5611
+ Kt(I) !== Kt(H) && Ha(H, I);
5612
5612
  }, { deep: !0, immediate: !0 });
5613
5613
  function he(v) {
5614
- Ha(U, v), m("update:modelValue", Ua(U));
5614
+ Ha(H, v), m("update:modelValue", Ua(H));
5615
5615
  }
5616
5616
  const V = Oa({
5617
- record: U,
5617
+ record: H,
5618
5618
  readonly: o.readonly,
5619
5619
  currentUserName: o.currentUserName,
5620
5620
  now: o.now,
@@ -5661,7 +5661,7 @@ const vd = /* @__PURE__ */ Ye({
5661
5661
  V.readonly = o.readonly, V.currentUserName = o.currentUserName, V.now = o.now, V.locale = o.locale, V.messages = o.messages, V.quizGrades = o.quizGrades, V.submitted = o.submitted, V.choiceOptionExplanationMode = o.choiceOptionExplanationMode, V.scaleGradeDisplayMode = o.scaleGradeDisplayMode, V.stepDetailDisplay = o.stepDetailDisplay, V.fieldMeta = o.fieldMeta, V.serverAssigners = o.serverAssigners, V.assigners = o.assigners, V.fieldState = B.value, V.validationSchema = o.validationSchema, V.validationTriggers = o.validationTriggers, V.validationEpoch = oe.value, V.wrapField = o.wrapField, V.customRenderers = o.customRenderers, V.fieldAdapters = o.fieldAdapters, V.entityResolvers = o.entityResolvers, V.collectorProviders = o.collectorProviders, V.requestCollectorPermission = o.requestCollectorPermission, V.collectorActorId = o.collectorActorId, V.collectorRecordKey = o.collectorRecordKey, V.protocolContext = me(K.value), V.resolveFile = o.resolveFile, V.resolveFileInfo = o.resolveFileInfo, V.uploadFile = o.uploadFile, V.runServerAssigner = o.runServerAssigner, V.assignerRunner = o.assignerRunner, V.typePlugins = o.typePlugins;
5662
5662
  });
5663
5663
  const be = In(), G = [
5664
- ...md({
5664
+ ...vd({
5665
5665
  appContext: be?.appContext ?? null,
5666
5666
  surfaceState: V,
5667
5667
  onEditField: (v) => m("edit-field", v),
@@ -5679,10 +5679,10 @@ const vd = /* @__PURE__ */ Ye({
5679
5679
  pe.value = i.has(v) ? v : "var", Ae.value = !0;
5680
5680
  }
5681
5681
  function A(v) {
5682
- i.has(v) && H(Ji(v, c.value));
5682
+ i.has(v) && U(Xi(v, c.value));
5683
5683
  }
5684
5684
  function L(v) {
5685
- H(v);
5685
+ U(v);
5686
5686
  }
5687
5687
  function x(v) {
5688
5688
  ge(v), m("ready", { milkdown: v });
@@ -5700,7 +5700,7 @@ const vd = /* @__PURE__ */ Ye({
5700
5700
  class: "aimd-recorder-wysiwyg-surface",
5701
5701
  style: Rt(ue.value)
5702
5702
  }, [
5703
- ea(Ve(Gi), {
5703
+ ea(Ve(Qi), {
5704
5704
  "show-top-bar": !1,
5705
5705
  "show-md-toolbar": !0,
5706
5706
  "show-aimd-toolbar": !0,
@@ -5712,7 +5712,7 @@ const vd = /* @__PURE__ */ Ye({
5712
5712
  onOpenAimdDialog: ce,
5713
5713
  onQuickInsertAimd: A
5714
5714
  }, null, 8, ["resolved-messages", "localized-field-types", "localized-md-toolbar-items", "onMdAction"]),
5715
- ea(Ve(Qi), {
5715
+ ea(Ve(Yi), {
5716
5716
  ref_key: "wysiwygEditorRef",
5717
5717
  ref: $,
5718
5718
  content: Ve(K),
@@ -5727,7 +5727,7 @@ const vd = /* @__PURE__ */ Ye({
5727
5727
  onReady: x,
5728
5728
  onOpenAimdDialog: ce
5729
5729
  }, null, 8, ["content", "min-height", "enable-block-handle", "readonly", "resolved-messages", "localized-field-types", "onMarkdownUpdated"]),
5730
- ea(Ve(Yi), {
5730
+ ea(Ve(Ji), {
5731
5731
  visible: Ae.value,
5732
5732
  "initial-type": pe.value,
5733
5733
  messages: c.value,
@@ -5739,49 +5739,49 @@ const vd = /* @__PURE__ */ Ye({
5739
5739
  }, null, 8, ["visible", "initial-type", "messages", "ref-suggestions", "var-type-plugins"])
5740
5740
  ], 4));
5741
5741
  }
5742
- }), gd = /* @__PURE__ */ kt(vd, [["__scopeId", "data-v-4d0c2a8e"]]), hd = {
5742
+ }), hd = /* @__PURE__ */ kt(gd, [["__scopeId", "data-v-4d0c2a8e"]]), pd = {
5743
5743
  key: 0,
5744
5744
  class: "aimd-recorder-workbench__panel aimd-recorder-workbench__panel--source"
5745
- }, pd = { class: "aimd-recorder-workbench__panel-head-row" }, yd = { class: "aimd-recorder-workbench__panel-title" }, bd = ["aria-label", "aria-valuenow"], _d = { class: "aimd-recorder-workbench__panel-head-row" }, kd = { class: "aimd-recorder-workbench__panel-head-copy" }, wd = { class: "aimd-recorder-workbench__panel-title" }, Sd = {
5745
+ }, yd = { class: "aimd-recorder-workbench__panel-head-row" }, bd = { class: "aimd-recorder-workbench__panel-title" }, _d = ["aria-label", "aria-valuenow"], kd = { class: "aimd-recorder-workbench__panel-head-row" }, wd = { class: "aimd-recorder-workbench__panel-head-copy" }, Sd = { class: "aimd-recorder-workbench__panel-title" }, Cd = {
5746
5746
  key: 0,
5747
5747
  class: "aimd-recorder-workbench__panel-title-count"
5748
- }, Cd = {
5748
+ }, xd = {
5749
5749
  key: 0,
5750
5750
  class: "aimd-recorder-workbench__panel-head-note"
5751
- }, xd = {
5751
+ }, $d = {
5752
5752
  key: 0,
5753
5753
  class: "aimd-recorder-workbench__panel-actions"
5754
- }, $d = {
5754
+ }, Ad = {
5755
5755
  key: 1,
5756
5756
  class: "aimd-recorder-workbench__panel-actions"
5757
- }, Ad = ["aria-label"], Ed = ["onClick"], Fd = {
5757
+ }, Ed = ["aria-label"], Fd = ["onClick"], Td = {
5758
5758
  key: 0,
5759
5759
  class: "aimd-recorder-workbench__side-tab-badge"
5760
- }, Td = { class: "aimd-recorder-workbench__recorder-toolbar-note" }, Rd = { class: "aimd-recorder-workbench__structure" }, Md = { class: "aimd-recorder-workbench__structure-description" }, zd = { class: "aimd-recorder-workbench__structure-toolbar" }, qd = ["disabled"], Vd = ["disabled"], Dd = ["disabled"], Id = ["disabled"], Ld = ["disabled"], Pd = {
5760
+ }, Rd = { class: "aimd-recorder-workbench__recorder-toolbar-note" }, Md = { class: "aimd-recorder-workbench__structure" }, zd = { class: "aimd-recorder-workbench__structure-description" }, qd = { class: "aimd-recorder-workbench__structure-toolbar" }, Vd = ["disabled"], Dd = ["disabled"], Id = ["disabled"], Ld = ["disabled"], Pd = ["disabled"], Bd = {
5761
5761
  key: 0,
5762
5762
  class: "aimd-recorder-workbench__field-list"
5763
- }, Bd = {
5763
+ }, Od = {
5764
5764
  key: 0,
5765
5765
  class: "aimd-recorder-workbench__drop-zone-label"
5766
- }, Od = ["draggable", "onDragstart"], Nd = { class: "aimd-recorder-workbench__field-item-top" }, Kd = ["title"], jd = { class: "aimd-recorder-workbench__field-badge" }, Hd = ["disabled", "onClick"], Ud = { class: "aimd-recorder-workbench__field-grid" }, Wd = { class: "aimd-recorder-workbench__field-label" }, Gd = ["value", "disabled", "onChange"], Qd = { value: "var" }, Yd = { value: "var_table" }, Jd = { value: "step" }, Xd = { value: "check" }, Zd = { value: "quiz" }, ec = { class: "aimd-recorder-workbench__field-label" }, tc = ["value", "disabled", "onChange"], ac = {
5766
+ }, Nd = ["draggable", "onDragstart"], Kd = { class: "aimd-recorder-workbench__field-item-top" }, jd = ["title"], Hd = { class: "aimd-recorder-workbench__field-badge" }, Ud = ["disabled", "onClick"], Wd = { class: "aimd-recorder-workbench__field-grid" }, Gd = { class: "aimd-recorder-workbench__field-label" }, Qd = ["value", "disabled", "onChange"], Yd = { value: "var" }, Jd = { value: "var_table" }, Xd = { value: "step" }, Zd = { value: "check" }, ec = { value: "quiz" }, tc = { class: "aimd-recorder-workbench__field-label" }, ac = ["value", "disabled", "onChange"], nc = {
5767
5767
  key: 0,
5768
5768
  class: "aimd-recorder-workbench__field-label"
5769
- }, nc = ["value", "disabled", "onChange"], ic = ["onDrop"], rc = {
5769
+ }, ic = ["value", "disabled", "onChange"], rc = ["onDrop"], lc = {
5770
5770
  key: 0,
5771
5771
  class: "aimd-recorder-workbench__drop-zone-label"
5772
- }, lc = {
5772
+ }, sc = {
5773
5773
  key: 1,
5774
5774
  class: "aimd-recorder-workbench__structure-empty"
5775
- }, sc = { class: "aimd-recorder-workbench__code" }, oc = { class: "aimd-recorder-workbench__detached-description" }, dc = { class: "aimd-recorder-workbench__code aimd-recorder-workbench__code--detached" }, cc = ["aria-label"], uc = { class: "aimd-recorder-workbench__dialog-head" }, fc = { class: "aimd-recorder-workbench__dialog-title" }, mc = { class: "aimd-recorder-workbench__dialog-summary" }, vc = { class: "aimd-recorder-workbench__dialog-body" }, gc = { class: "aimd-recorder-workbench__dialog-label" }, hc = ["value", "disabled"], pc = { value: "var" }, yc = { value: "var_table" }, bc = { value: "step" }, _c = { value: "check" }, kc = { value: "quiz" }, wc = { class: "aimd-recorder-workbench__dialog-label" }, Sc = ["value", "disabled"], Cc = {
5775
+ }, oc = { class: "aimd-recorder-workbench__code" }, dc = { class: "aimd-recorder-workbench__detached-description" }, cc = { class: "aimd-recorder-workbench__code aimd-recorder-workbench__code--detached" }, uc = ["aria-label"], fc = { class: "aimd-recorder-workbench__dialog-head" }, mc = { class: "aimd-recorder-workbench__dialog-title" }, vc = { class: "aimd-recorder-workbench__dialog-summary" }, gc = { class: "aimd-recorder-workbench__dialog-body" }, hc = { class: "aimd-recorder-workbench__dialog-label" }, pc = ["value", "disabled"], yc = { value: "var" }, bc = { value: "var_table" }, _c = { value: "step" }, kc = { value: "check" }, wc = { value: "quiz" }, Sc = { class: "aimd-recorder-workbench__dialog-label" }, Cc = ["value", "disabled"], xc = {
5776
5776
  key: 0,
5777
5777
  class: "aimd-recorder-workbench__dialog-label"
5778
- }, xc = ["value", "disabled"], $c = {
5778
+ }, $c = ["value", "disabled"], Ac = {
5779
5779
  key: 1,
5780
5780
  class: "aimd-recorder-workbench__dialog-label aimd-recorder-workbench__dialog-label--wide"
5781
- }, Ac = ["disabled"], Ec = { class: "aimd-recorder-workbench__dialog-foot" }, Fc = {
5781
+ }, Ec = ["disabled"], Fc = { class: "aimd-recorder-workbench__dialog-foot" }, Tc = {
5782
5782
  key: 0,
5783
5783
  class: "aimd-recorder-workbench__dialog-hint"
5784
- }, Tc = { class: "aimd-recorder-workbench__dialog-actions" }, Rc = ["disabled"], Mc = ["disabled"], zc = 120, qc = 1600, Vc = 2e3, Dc = /* @__PURE__ */ Ye({
5784
+ }, Rc = { class: "aimd-recorder-workbench__dialog-actions" }, Mc = ["disabled"], zc = ["disabled"], qc = 120, Vc = 1600, Dc = 2e3, Ic = /* @__PURE__ */ Ye({
5785
5785
  __name: "AimdRecorderEditor",
5786
5786
  props: {
5787
5787
  content: { default: "" },
@@ -5853,7 +5853,7 @@ const vd = /* @__PURE__ */ Ye({
5853
5853
  ref_fig: [],
5854
5854
  cite: [],
5855
5855
  fig: []
5856
- }, o = O(null), m = O(null), c = O(null), z = O(null), P = O(null), ae = O(null), ue = O(null), J = O(null), K = O(null), E = O(null), H = O(h), R = O(a.content || ""), ne = O(a.content || ""), ge = O(pa(a.modelValue)), U = O(null), ie = O(a.initialVisualEditMode), ye = O(null), oe = O("recorder"), N = O(a.initialSourceCollapsed), B = O(50), le = O(!1), se = O(a.editorMinHeight), F = O(a.recorderMinHeight), q = O(Math.max(320, a.recorderMinHeight)), X = O(null), W = O(null), de = O(""), me = O(null);
5856
+ }, o = O(null), m = O(null), c = O(null), z = O(null), P = O(null), ae = O(null), ue = O(null), J = O(null), K = O(null), E = O(null), U = O(h), R = O(a.content || ""), ne = O(a.content || ""), ge = O(pa(a.modelValue)), H = O(null), ie = O(a.initialVisualEditMode), ye = O(null), oe = O("recorder"), N = O(a.initialSourceCollapsed), B = O(50), le = O(!1), se = O(a.editorMinHeight), F = O(a.recorderMinHeight), q = O(Math.max(320, a.recorderMinHeight)), X = O(null), W = O(null), de = O(""), me = O(null);
5857
5857
  let he = 0, V = null, be = null, G = [], Q = /* @__PURE__ */ new Map(), Ae = /* @__PURE__ */ new Map();
5858
5858
  const pe = /* @__PURE__ */ new Set(), ce = /* @__PURE__ */ new Set();
5859
5859
  function A(d) {
@@ -5882,7 +5882,7 @@ const vd = /* @__PURE__ */ Ye({
5882
5882
  pe,
5883
5883
  Q,
5884
5884
  d,
5885
- qc
5885
+ Vc
5886
5886
  );
5887
5887
  }
5888
5888
  function j(d) {
@@ -5890,7 +5890,7 @@ const vd = /* @__PURE__ */ Ye({
5890
5890
  ce,
5891
5891
  Ae,
5892
5892
  d,
5893
- Vc
5893
+ Dc
5894
5894
  );
5895
5895
  }
5896
5896
  function p(d) {
@@ -5899,7 +5899,7 @@ const vd = /* @__PURE__ */ Ye({
5899
5899
  function D(d) {
5900
5900
  x(), be = setTimeout(() => {
5901
5901
  be = null, j(d), ne.value = d;
5902
- }, zc);
5902
+ }, qc);
5903
5903
  }
5904
5904
  function b(d) {
5905
5905
  const u = A(d), y = G.indexOf(u);
@@ -6058,8 +6058,8 @@ const vd = /* @__PURE__ */ Ye({
6058
6058
  return d.find((_e) => _e.start === u.start) ?? d.find((_e) => _e.uid === u.uid) ?? d.find((_e) => _e.fieldType === u.fieldType && _e.id === u.id) ?? null;
6059
6059
  }
6060
6060
  function Ke(d, u) {
6061
- const y = Ja(), _e = new Set(u.var), Re = new Set(Ei(u.step).map((ze) => ze.name)), Me = new Set(Fi(u.check).map((ze) => ze.name)), Ge = new Set(Ti(u.quiz).map((ze) => ze.id));
6062
- for (const ze of Ri(u.var_table))
6061
+ const y = Ja(), _e = new Set(u.var), Re = new Set(Fi(u.step).map((ze) => ze.name)), Me = new Set(Ti(u.check).map((ze) => ze.name)), Ge = new Set(Ri(u.quiz).map((ze) => ze.id));
6062
+ for (const ze of Mi(u.var_table))
6063
6063
  _e.add(ze.id);
6064
6064
  for (const [ze, ut] of Object.entries(d.var))
6065
6065
  _e.has(ze) || (y.var[ze] = ut);
@@ -6074,7 +6074,7 @@ const vd = /* @__PURE__ */ Ye({
6074
6074
  function Le(d) {
6075
6075
  return Object.keys(d.var).length + Object.keys(d.step).length + Object.keys(d.check).length + Object.keys(d.quiz).length;
6076
6076
  }
6077
- const dt = k(() => Ke(ge.value, H.value)), Ct = k(() => Le(dt.value)), xt = k(() => Ct.value > 0), De = k(() => JSON.stringify(ge.value, null, 2)), He = k(() => JSON.stringify(dt.value, null, 2)), $a = k(() => ({
6077
+ const dt = k(() => Ke(ge.value, U.value)), Ct = k(() => Le(dt.value)), xt = k(() => Ct.value > 0), De = k(() => JSON.stringify(ge.value, null, 2)), He = k(() => JSON.stringify(dt.value, null, 2)), $a = k(() => ({
6078
6078
  ...N.value ? {} : { "--aimd-recorder-source-panel-width": `${B.value}%` },
6079
6079
  ...X.value === null ? {} : { "--aimd-recorder-workbench-main-height": `${X.value}px` }
6080
6080
  })), qt = k(() => a.fillParent ? {} : { height: `${F.value}px` }), Aa = k(() => a.fillParent ? 0 : q.value), $t = k(() => {
@@ -6199,7 +6199,7 @@ const vd = /* @__PURE__ */ Ye({
6199
6199
  }
6200
6200
  }
6201
6201
  function ra(d) {
6202
- H.value = d, i("fields-change", d);
6202
+ U.value = d, i("fields-change", d);
6203
6203
  }
6204
6204
  function Et(d) {
6205
6205
  const u = zn(ke.value, d, d === "quiz" ? "choice" : void 0);
@@ -6212,11 +6212,11 @@ const vd = /* @__PURE__ */ Ye({
6212
6212
  });
6213
6213
  }
6214
6214
  function Jt(d) {
6215
- W.value?.uid === d.uid && S(), Dt(Ho(R.value, d));
6215
+ W.value?.uid === d.uid && S(), Dt(Uo(R.value, d));
6216
6216
  }
6217
6217
  function Ma(d, u) {
6218
6218
  const y = u.trim();
6219
- y && rt(Uo(R.value, d, y), d, {
6219
+ y && rt(Wo(R.value, d, y), d, {
6220
6220
  fieldType: d.fieldType,
6221
6221
  id: y
6222
6222
  });
@@ -6225,7 +6225,7 @@ const vd = /* @__PURE__ */ Ye({
6225
6225
  Ma(d, u.target.value);
6226
6226
  }
6227
6227
  function sa(d, u) {
6228
- rt(Wo(R.value, d, u), d, {
6228
+ rt(Go(R.value, d, u), d, {
6229
6229
  fieldType: u,
6230
6230
  id: d.id
6231
6231
  });
@@ -6234,7 +6234,7 @@ const vd = /* @__PURE__ */ Ye({
6234
6234
  sa(d, u.target.value);
6235
6235
  }
6236
6236
  function r(d, u) {
6237
- rt(Go(R.value, d, u), d);
6237
+ rt(Qo(R.value, d, u), d);
6238
6238
  }
6239
6239
  function s(d, u) {
6240
6240
  r(d, u.target.value);
@@ -6250,7 +6250,7 @@ const vd = /* @__PURE__ */ Ye({
6250
6250
  }
6251
6251
  function ve(d, u) {
6252
6252
  const y = zn(ke.value, d, d === "quiz" ? "choice" : void 0);
6253
- me.value = null, rt(jo(
6253
+ me.value = null, rt(Ho(
6254
6254
  R.value,
6255
6255
  ke.value,
6256
6256
  u,
@@ -6265,7 +6265,7 @@ const vd = /* @__PURE__ */ Ye({
6265
6265
  });
6266
6266
  }
6267
6267
  function $e() {
6268
- !a.allowRawFieldSourceEditing || !W.value || rt(Qo(
6268
+ !a.allowRawFieldSourceEditing || !W.value || rt(Yo(
6269
6269
  R.value,
6270
6270
  W.value,
6271
6271
  de.value
@@ -6287,27 +6287,27 @@ const vd = /* @__PURE__ */ Ye({
6287
6287
  u.preventDefault();
6288
6288
  return;
6289
6289
  }
6290
- U.value = d.uid, me.value = null, u.dataTransfer?.setData("text/plain", d.uid), u.dataTransfer && (u.dataTransfer.effectAllowed = "move");
6290
+ H.value = d.uid, me.value = null, u.dataTransfer?.setData("text/plain", d.uid), u.dataTransfer && (u.dataTransfer.effectAllowed = "move");
6291
6291
  }
6292
6292
  function te() {
6293
- U.value = null;
6293
+ H.value = null;
6294
6294
  }
6295
6295
  function Xe(d) {
6296
6296
  a.readonly || (d.preventDefault(), d.dataTransfer && (d.dataTransfer.dropEffect = "move"));
6297
6297
  }
6298
6298
  function lt(d) {
6299
- if (a.readonly || !U.value)
6299
+ if (a.readonly || !H.value)
6300
6300
  return;
6301
- const u = ke.value.find((_e) => _e.uid === U.value), y = Yo(
6301
+ const u = ke.value.find((_e) => _e.uid === H.value), y = Jo(
6302
6302
  R.value,
6303
6303
  ke.value,
6304
- U.value,
6304
+ H.value,
6305
6305
  d
6306
6306
  );
6307
- U.value = null, rt(y, u);
6307
+ H.value = null, rt(y, u);
6308
6308
  }
6309
6309
  function ct(d) {
6310
- if (U.value)
6310
+ if (H.value)
6311
6311
  return [
6312
6312
  l("span", { class: "aimd-recorder-workbench__drop-zone-label" }, ee.value.dropHere)
6313
6313
  ];
@@ -6360,7 +6360,7 @@ const vd = /* @__PURE__ */ Ye({
6360
6360
  return l("span", {
6361
6361
  class: [
6362
6362
  "aimd-recorder-workbench__visual-drop-zone",
6363
- U.value ? "aimd-recorder-workbench__visual-drop-zone--active" : ""
6363
+ H.value ? "aimd-recorder-workbench__visual-drop-zone--active" : ""
6364
6364
  ],
6365
6365
  onDragover: Xe,
6366
6366
  onDrop: (u) => {
@@ -6378,7 +6378,7 @@ const vd = /* @__PURE__ */ Ye({
6378
6378
  class: [
6379
6379
  "aimd-recorder-workbench__visual-field",
6380
6380
  _e.sourceKind === "block" ? "aimd-recorder-workbench__visual-field--block" : "aimd-recorder-workbench__visual-field--inline",
6381
- U.value === _e.uid ? "aimd-recorder-workbench__visual-field--dragging" : ""
6381
+ H.value === _e.uid ? "aimd-recorder-workbench__visual-field--dragging" : ""
6382
6382
  ]
6383
6383
  }, [
6384
6384
  Qe(Re),
@@ -6434,14 +6434,14 @@ const vd = /* @__PURE__ */ Ye({
6434
6434
  }]),
6435
6435
  style: Rt($a.value)
6436
6436
  }, [
6437
- N.value ? re("", !0) : (_(), w("section", hd, [
6437
+ N.value ? re("", !0) : (_(), w("section", pd, [
6438
6438
  g("header", {
6439
6439
  ref_key: "editorPanelHeadRef",
6440
6440
  ref: ae,
6441
6441
  class: "aimd-recorder-workbench__panel-head"
6442
6442
  }, [
6443
- g("div", pd, [
6444
- g("h3", yd, C(Ee.value), 1),
6443
+ g("div", yd, [
6444
+ g("h3", bd, C(Ee.value), 1),
6445
6445
  g("button", {
6446
6446
  class: "aimd-recorder-workbench__panel-head-action",
6447
6447
  type: "button",
@@ -6456,7 +6456,7 @@ const vd = /* @__PURE__ */ Ye({
6456
6456
  onFocusinCapture: na,
6457
6457
  onFocusoutCapture: u[3] || (u[3] = (y) => at("source", y))
6458
6458
  }, [
6459
- ea(Ve(Xi), Zn({
6459
+ ea(Ve(Zi), Zn({
6460
6460
  ref_key: "editorRef",
6461
6461
  ref: o
6462
6462
  }, fe.value, {
@@ -6479,7 +6479,7 @@ const vd = /* @__PURE__ */ Ye({
6479
6479
  "aria-valuenow": Math.round(B.value),
6480
6480
  onPointerdown: Ra,
6481
6481
  onKeydown: Yt
6482
- }, null, 40, bd)),
6482
+ }, null, 40, _d)),
6483
6483
  g("section", {
6484
6484
  class: Oe(["aimd-recorder-workbench__panel", {
6485
6485
  "aimd-recorder-workbench__panel--structure": oe.value === "structure",
@@ -6491,15 +6491,15 @@ const vd = /* @__PURE__ */ Ye({
6491
6491
  ref: ue,
6492
6492
  class: "aimd-recorder-workbench__panel-head"
6493
6493
  }, [
6494
- g("div", _d, [
6495
- g("div", kd, [
6496
- g("h3", wd, [
6494
+ g("div", kd, [
6495
+ g("div", wd, [
6496
+ g("h3", Sd, [
6497
6497
  nt(C(Ea.value) + " ", 1),
6498
- oe.value === "detached" ? (_(), w("span", Sd, " (" + C(Ct.value) + ") ", 1)) : re("", !0)
6498
+ oe.value === "detached" ? (_(), w("span", Cd, " (" + C(Ct.value) + ") ", 1)) : re("", !0)
6499
6499
  ]),
6500
- e.showVisualEditToggle && oe.value === "recorder" ? (_(), w("p", Cd, C(tt.value), 1)) : re("", !0)
6500
+ e.showVisualEditToggle && oe.value === "recorder" ? (_(), w("p", xd, C(tt.value), 1)) : re("", !0)
6501
6501
  ]),
6502
- e.showVisualEditToggle && oe.value === "recorder" ? (_(), w("div", xd, [
6502
+ e.showVisualEditToggle && oe.value === "recorder" ? (_(), w("div", $d, [
6503
6503
  N.value ? (_(), w("button", {
6504
6504
  key: 0,
6505
6505
  class: "aimd-recorder-workbench__panel-head-action",
@@ -6511,7 +6511,7 @@ const vd = /* @__PURE__ */ Ye({
6511
6511
  type: "button",
6512
6512
  onClick: u[5] || (u[5] = (y) => ie.value = !ie.value)
6513
6513
  }, C(ie.value ? ee.value.visualEditOn : ee.value.visualEditOff), 3)
6514
- ])) : N.value ? (_(), w("div", $d, [
6514
+ ])) : N.value ? (_(), w("div", Ad, [
6515
6515
  g("button", {
6516
6516
  class: "aimd-recorder-workbench__panel-head-action",
6517
6517
  type: "button",
@@ -6531,9 +6531,9 @@ const vd = /* @__PURE__ */ Ye({
6531
6531
  onClick: (_e) => oe.value = y.key
6532
6532
  }, [
6533
6533
  g("span", null, C(y.label), 1),
6534
- typeof y.badge == "number" ? (_(), w("span", Fd, C(y.badge), 1)) : re("", !0)
6535
- ], 10, Ed))), 128))
6536
- ], 8, Ad)) : re("", !0)
6534
+ typeof y.badge == "number" ? (_(), w("span", Td, C(y.badge), 1)) : re("", !0)
6535
+ ], 10, Fd))), 128))
6536
+ ], 8, Ed)) : re("", !0)
6537
6537
  ], 512),
6538
6538
  oe.value === "recorder" ? (_(), w("div", {
6539
6539
  key: 0,
@@ -6550,9 +6550,9 @@ const vd = /* @__PURE__ */ Ye({
6550
6550
  ref: E,
6551
6551
  class: "aimd-recorder-workbench__recorder-toolbar"
6552
6552
  }, [
6553
- g("p", Td, C(ee.value.addEndHint), 1)
6553
+ g("p", Rd, C(ee.value.addEndHint), 1)
6554
6554
  ], 512)) : re("", !0),
6555
- ie.value ? (_(), ft(gd, {
6555
+ ie.value ? (_(), ft(hd, {
6556
6556
  key: 1,
6557
6557
  ref_key: "visualRecorderRef",
6558
6558
  ref: c,
@@ -6656,120 +6656,120 @@ const vd = /* @__PURE__ */ Ye({
6656
6656
  class: "aimd-recorder-workbench__panel-body aimd-recorder-workbench__panel-body--side",
6657
6657
  style: Rt(qt.value)
6658
6658
  }, [
6659
- g("div", Rd, [
6660
- g("p", Md, C(it.value), 1),
6661
- g("div", zd, [
6659
+ g("div", Md, [
6660
+ g("p", zd, C(it.value), 1),
6661
+ g("div", qd, [
6662
6662
  g("button", {
6663
6663
  class: "aimd-recorder-workbench__add-btn",
6664
6664
  disabled: e.readonly,
6665
6665
  onClick: u[25] || (u[25] = (y) => Et("var"))
6666
- }, C(ee.value.addVar), 9, qd),
6666
+ }, C(ee.value.addVar), 9, Vd),
6667
6667
  g("button", {
6668
6668
  class: "aimd-recorder-workbench__add-btn",
6669
6669
  disabled: e.readonly,
6670
6670
  onClick: u[26] || (u[26] = (y) => Et("var_table"))
6671
- }, C(ee.value.addTable), 9, Vd),
6671
+ }, C(ee.value.addTable), 9, Dd),
6672
6672
  g("button", {
6673
6673
  class: "aimd-recorder-workbench__add-btn",
6674
6674
  disabled: e.readonly,
6675
6675
  onClick: u[27] || (u[27] = (y) => Et("step"))
6676
- }, C(ee.value.addStep), 9, Dd),
6676
+ }, C(ee.value.addStep), 9, Id),
6677
6677
  g("button", {
6678
6678
  class: "aimd-recorder-workbench__add-btn",
6679
6679
  disabled: e.readonly,
6680
6680
  onClick: u[28] || (u[28] = (y) => Et("check"))
6681
- }, C(ee.value.addCheck), 9, Id),
6681
+ }, C(ee.value.addCheck), 9, Ld),
6682
6682
  g("button", {
6683
6683
  class: "aimd-recorder-workbench__add-btn",
6684
6684
  disabled: e.readonly,
6685
6685
  onClick: u[29] || (u[29] = (y) => Et("quiz"))
6686
- }, C(ee.value.addQuiz), 9, Ld)
6686
+ }, C(ee.value.addQuiz), 9, Pd)
6687
6687
  ]),
6688
- ke.value.length ? (_(), w("div", Pd, [
6688
+ ke.value.length ? (_(), w("div", Bd, [
6689
6689
  g("div", {
6690
- class: Oe(["aimd-recorder-workbench__drop-zone", { "aimd-recorder-workbench__drop-zone--active": !!U.value }]),
6690
+ class: Oe(["aimd-recorder-workbench__drop-zone", { "aimd-recorder-workbench__drop-zone--active": !!H.value }]),
6691
6691
  onDragover: Xe,
6692
6692
  onDrop: u[30] || (u[30] = yt((y) => lt(0), ["prevent"]))
6693
6693
  }, [
6694
- U.value ? (_(), w("span", Bd, C(ee.value.dropHere), 1)) : re("", !0)
6694
+ H.value ? (_(), w("span", Od, C(ee.value.dropHere), 1)) : re("", !0)
6695
6695
  ], 34),
6696
6696
  (_(!0), w(Be, null, Ue(ke.value, (y, _e) => (_(), w(Be, {
6697
6697
  key: y.uid
6698
6698
  }, [
6699
6699
  g("article", {
6700
- class: Oe(["aimd-recorder-workbench__field-item", { "aimd-recorder-workbench__field-item--dragging": U.value === y.uid }]),
6700
+ class: Oe(["aimd-recorder-workbench__field-item", { "aimd-recorder-workbench__field-item--dragging": H.value === y.uid }]),
6701
6701
  draggable: !e.readonly,
6702
6702
  onDragstart: (Re) => we(y, Re),
6703
6703
  onDragend: te
6704
6704
  }, [
6705
- g("div", Nd, [
6705
+ g("div", Kd, [
6706
6706
  g("span", {
6707
6707
  class: "aimd-recorder-workbench__drag-handle",
6708
6708
  title: ee.value.drag
6709
- }, " :: " + C(ee.value.drag), 9, Kd),
6710
- g("span", jd, C(ee.value.typeLabels[y.fieldType]), 1),
6709
+ }, " :: " + C(ee.value.drag), 9, jd),
6710
+ g("span", Hd, C(ee.value.typeLabels[y.fieldType]), 1),
6711
6711
  g("button", {
6712
6712
  class: "aimd-recorder-workbench__delete-btn",
6713
6713
  disabled: e.readonly,
6714
6714
  onClick: (Re) => Jt(y)
6715
- }, C(ee.value.delete), 9, Hd)
6715
+ }, C(ee.value.delete), 9, Ud)
6716
6716
  ]),
6717
- g("div", Ud, [
6718
- g("label", Wd, [
6717
+ g("div", Wd, [
6718
+ g("label", Gd, [
6719
6719
  g("span", null, C(ee.value.kind), 1),
6720
6720
  g("select", {
6721
6721
  value: y.fieldType,
6722
6722
  disabled: e.readonly,
6723
6723
  onChange: (Re) => oa(y, Re)
6724
6724
  }, [
6725
- g("option", Qd, C(ee.value.typeLabels.var), 1),
6726
- g("option", Yd, C(ee.value.typeLabels.var_table), 1),
6727
- g("option", Jd, C(ee.value.typeLabels.step), 1),
6728
- g("option", Xd, C(ee.value.typeLabels.check), 1),
6729
- g("option", Zd, C(ee.value.typeLabels.quiz), 1)
6730
- ], 40, Gd)
6725
+ g("option", Yd, C(ee.value.typeLabels.var), 1),
6726
+ g("option", Jd, C(ee.value.typeLabels.var_table), 1),
6727
+ g("option", Xd, C(ee.value.typeLabels.step), 1),
6728
+ g("option", Zd, C(ee.value.typeLabels.check), 1),
6729
+ g("option", ec, C(ee.value.typeLabels.quiz), 1)
6730
+ ], 40, Qd)
6731
6731
  ]),
6732
- g("label", ec, [
6732
+ g("label", tc, [
6733
6733
  g("span", null, C(ee.value.id), 1),
6734
6734
  g("input", {
6735
6735
  value: y.id,
6736
6736
  disabled: e.readonly,
6737
6737
  onChange: (Re) => la(y, Re)
6738
- }, null, 40, tc)
6738
+ }, null, 40, ac)
6739
6739
  ]),
6740
- y.fieldType === "var" ? (_(), w("label", ac, [
6740
+ y.fieldType === "var" ? (_(), w("label", nc, [
6741
6741
  g("span", null, C(ee.value.valueType), 1),
6742
6742
  g("input", {
6743
6743
  value: y.valueType || "str",
6744
6744
  disabled: e.readonly,
6745
6745
  onChange: (Re) => s(y, Re)
6746
- }, null, 40, nc)
6746
+ }, null, 40, ic)
6747
6747
  ])) : re("", !0)
6748
6748
  ])
6749
- ], 42, Od),
6749
+ ], 42, Nd),
6750
6750
  g("div", {
6751
- class: Oe(["aimd-recorder-workbench__drop-zone", { "aimd-recorder-workbench__drop-zone--active": !!U.value }]),
6751
+ class: Oe(["aimd-recorder-workbench__drop-zone", { "aimd-recorder-workbench__drop-zone--active": !!H.value }]),
6752
6752
  onDragover: Xe,
6753
6753
  onDrop: yt((Re) => lt(_e + 1), ["prevent"])
6754
6754
  }, [
6755
- U.value ? (_(), w("span", rc, C(ee.value.dropHere), 1)) : re("", !0)
6756
- ], 42, ic)
6755
+ H.value ? (_(), w("span", lc, C(ee.value.dropHere), 1)) : re("", !0)
6756
+ ], 42, rc)
6757
6757
  ], 64))), 128))
6758
- ])) : (_(), w("p", lc, C(ee.value.empty), 1))
6758
+ ])) : (_(), w("p", sc, C(ee.value.empty), 1))
6759
6759
  ])
6760
6760
  ], 4)) : oe.value === "record" ? (_(), w("div", {
6761
6761
  key: 2,
6762
6762
  class: "aimd-recorder-workbench__panel-body aimd-recorder-workbench__panel-body--code",
6763
6763
  style: Rt(qt.value)
6764
6764
  }, [
6765
- g("pre", sc, C(De.value), 1)
6765
+ g("pre", oc, C(De.value), 1)
6766
6766
  ], 4)) : oe.value === "detached" ? (_(), w("div", {
6767
6767
  key: 3,
6768
6768
  class: "aimd-recorder-workbench__panel-body aimd-recorder-workbench__panel-body--code",
6769
6769
  style: Rt(qt.value)
6770
6770
  }, [
6771
- g("p", oc, C(Ce.value), 1),
6772
- g("pre", dc, " " + C(He.value) + `
6771
+ g("p", dc, C(Ce.value), 1),
6772
+ g("pre", cc, " " + C(He.value) + `
6773
6773
  `, 1)
6774
6774
  ], 4)) : re("", !0)
6775
6775
  ], 2)
@@ -6785,10 +6785,10 @@ const vd = /* @__PURE__ */ Ye({
6785
6785
  role: "dialog",
6786
6786
  "aria-modal": "true"
6787
6787
  }, [
6788
- g("header", uc, [
6788
+ g("header", fc, [
6789
6789
  g("div", null, [
6790
- g("h4", fc, C(ee.value.visualDialogTitle), 1),
6791
- g("p", mc, C(ee.value.visualDialogSummary), 1)
6790
+ g("h4", mc, C(ee.value.visualDialogTitle), 1),
6791
+ g("p", vc, C(ee.value.visualDialogSummary), 1)
6792
6792
  ]),
6793
6793
  g("button", {
6794
6794
  class: "aimd-recorder-workbench__dialog-close",
@@ -6796,80 +6796,80 @@ const vd = /* @__PURE__ */ Ye({
6796
6796
  onClick: S
6797
6797
  }, C(ee.value.close), 1)
6798
6798
  ]),
6799
- g("div", vc, [
6800
- g("label", gc, [
6799
+ g("div", gc, [
6800
+ g("label", hc, [
6801
6801
  g("span", null, C(ee.value.kind), 1),
6802
6802
  g("select", {
6803
6803
  value: W.value.fieldType,
6804
6804
  disabled: e.readonly,
6805
6805
  onChange: u[31] || (u[31] = (y) => oa(W.value, y))
6806
6806
  }, [
6807
- g("option", pc, C(ee.value.typeLabels.var), 1),
6808
- g("option", yc, C(ee.value.typeLabels.var_table), 1),
6809
- g("option", bc, C(ee.value.typeLabels.step), 1),
6810
- g("option", _c, C(ee.value.typeLabels.check), 1),
6811
- g("option", kc, C(ee.value.typeLabels.quiz), 1)
6812
- ], 40, hc)
6807
+ g("option", yc, C(ee.value.typeLabels.var), 1),
6808
+ g("option", bc, C(ee.value.typeLabels.var_table), 1),
6809
+ g("option", _c, C(ee.value.typeLabels.step), 1),
6810
+ g("option", kc, C(ee.value.typeLabels.check), 1),
6811
+ g("option", wc, C(ee.value.typeLabels.quiz), 1)
6812
+ ], 40, pc)
6813
6813
  ]),
6814
- g("label", wc, [
6814
+ g("label", Sc, [
6815
6815
  g("span", null, C(ee.value.id), 1),
6816
6816
  g("input", {
6817
6817
  value: W.value.id,
6818
6818
  disabled: e.readonly,
6819
6819
  onChange: u[32] || (u[32] = (y) => la(W.value, y))
6820
- }, null, 40, Sc)
6820
+ }, null, 40, Cc)
6821
6821
  ]),
6822
- W.value.fieldType === "var" ? (_(), w("label", Cc, [
6822
+ W.value.fieldType === "var" ? (_(), w("label", xc, [
6823
6823
  g("span", null, C(ee.value.valueType), 1),
6824
6824
  g("input", {
6825
6825
  value: W.value.valueType || "str",
6826
6826
  disabled: e.readonly,
6827
6827
  onChange: u[33] || (u[33] = (y) => s(W.value, y))
6828
- }, null, 40, xc)
6828
+ }, null, 40, $c)
6829
6829
  ])) : re("", !0),
6830
- e.allowRawFieldSourceEditing ? (_(), w("label", $c, [
6830
+ e.allowRawFieldSourceEditing ? (_(), w("label", Ac, [
6831
6831
  g("span", null, C(ee.value.source), 1),
6832
6832
  Nt(g("textarea", {
6833
6833
  "onUpdate:modelValue": u[34] || (u[34] = (y) => de.value = y),
6834
6834
  class: "aimd-recorder-workbench__dialog-textarea",
6835
6835
  disabled: e.readonly
6836
- }, null, 8, Ac), [
6836
+ }, null, 8, Ec), [
6837
6837
  [ba, de.value]
6838
6838
  ])
6839
6839
  ])) : re("", !0)
6840
6840
  ]),
6841
- g("footer", Ec, [
6842
- e.allowRawFieldSourceEditing ? (_(), w("p", Fc, C(ee.value.sourceHint), 1)) : re("", !0),
6843
- g("div", Tc, [
6841
+ g("footer", Fc, [
6842
+ e.allowRawFieldSourceEditing ? (_(), w("p", Tc, C(ee.value.sourceHint), 1)) : re("", !0),
6843
+ g("div", Rc, [
6844
6844
  g("button", {
6845
6845
  class: "aimd-recorder-workbench__dialog-delete",
6846
6846
  type: "button",
6847
6847
  disabled: e.readonly,
6848
6848
  onClick: u[35] || (u[35] = (y) => Jt(W.value))
6849
- }, C(ee.value.delete), 9, Rc),
6849
+ }, C(ee.value.delete), 9, Mc),
6850
6850
  e.allowRawFieldSourceEditing ? (_(), w("button", {
6851
6851
  key: 0,
6852
6852
  class: "aimd-recorder-workbench__dialog-apply",
6853
6853
  type: "button",
6854
6854
  disabled: e.readonly,
6855
6855
  onClick: $e
6856
- }, C(ee.value.applySource), 9, Mc)) : re("", !0)
6856
+ }, C(ee.value.applySource), 9, zc)) : re("", !0)
6857
6857
  ])
6858
6858
  ])
6859
- ], 8, cc)
6859
+ ], 8, uc)
6860
6860
  ])) : re("", !0)
6861
6861
  ], 2));
6862
6862
  }
6863
- }), Wc = /* @__PURE__ */ kt(Dc, [["__scopeId", "data-v-061016ee"]]), Gc = Ht(() => import("./AimdDnaSequenceField-Opgy07Gt.js")), Qc = Ht(() => import("./AimdMarkdownField-jagZIbKc.js")), Yc = Ht(() => import("./AimdEntityRefField-GA6-mhGU.js")), Jc = Za;
6863
+ }), Gc = /* @__PURE__ */ kt(Ic, [["__scopeId", "data-v-061016ee"]]), Qc = Ht(() => import("./AimdDnaSequenceField-CxFtD5Au.js")), Yc = Ht(() => import("./AimdMarkdownField-Du0Fh5sG.js")), Jc = Ht(() => import("./AimdEntityRefField-DCE79vca.js")), Xc = Za;
6864
6864
  export {
6865
- Uc as AimdAssignerGraph,
6866
- xl as AimdCollectorField,
6867
- Gc as AimdDnaSequenceField,
6868
- Yc as AimdEntityRefField,
6869
- Qc as AimdMarkdownField,
6870
- Jc as AimdProtocolRecorder,
6871
- vo as AimdQuizRecorder,
6865
+ Wc as AimdAssignerGraph,
6866
+ $l as AimdCollectorField,
6867
+ Qc as AimdDnaSequenceField,
6868
+ Jc as AimdEntityRefField,
6869
+ Yc as AimdMarkdownField,
6870
+ Xc as AimdProtocolRecorder,
6871
+ go as AimdQuizRecorder,
6872
6872
  Za as AimdRecorder,
6873
- Wc as AimdRecorderEditor,
6873
+ Gc as AimdRecorderEditor,
6874
6874
  bt as AimdRequiredMarker
6875
6875
  };