@pie-qti/player-elements 0.1.14 → 0.1.15

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.
@@ -15882,7 +15882,7 @@ function Rr(e) {
15882
15882
  }
15883
15883
  //#endregion
15884
15884
  //#region ../item-player/dist/element.js
15885
- var zr = /* @__PURE__ */ n({ PieQtiItemPlayerElement: () => Gp }), Br = Ar(), Vr = Array.isArray, Hr = Array.prototype.indexOf, Ur = Array.prototype.includes, Wr = Array.from, Gr = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, qr = Object.getOwnPropertyDescriptors, Jr = Object.prototype, Yr = Array.prototype, Xr = Object.getPrototypeOf, Zr = Object.isExtensible, Qr = () => {};
15885
+ var zr = /* @__PURE__ */ n({ PieQtiItemPlayerElement: () => Kp }), Br = Ar(), Vr = Array.isArray, Hr = Array.prototype.indexOf, Ur = Array.prototype.includes, Wr = Array.from, Gr = Object.defineProperty, Kr = Object.getOwnPropertyDescriptor, qr = Object.getOwnPropertyDescriptors, Jr = Object.prototype, Yr = Array.prototype, Xr = Object.getPrototypeOf, Zr = Object.isExtensible, Qr = () => {};
15886
15886
  function $r(e) {
15887
15887
  for (var t = 0; t < e.length; t++) e[t]();
15888
15888
  }
@@ -21360,97 +21360,100 @@ function Of(e, t = Df) {
21360
21360
  }
21361
21361
  function kf(e, t) {
21362
21362
  let { outcomeValues: n, applyHeuristics: r = !1, wrapWithSpan: i = !1, transforms: a } = t;
21363
- return e && e.replace(/<feedbackInline[^>]*outcomeIdentifier="([^"]+)"[^>]*identifier="([^"]+)"[^>]*showHide="([^"]+)"[^>]*>([\s\S]*?)<\/feedbackInline>/gi, (e, t, o, s) => {
21364
- let c = n[t];
21365
- if (c == null || c === "" || !(s.toLowerCase() === "show" ? c === o : c !== o)) return "";
21366
- let l = e.replace(/<feedbackInline[^>]*>/, "").replace(/<\/feedbackInline>/, "");
21367
- return r && (l = Of(l, a)), i ? ` <span class="qti-feedback-inline">${l}</span>` : l;
21363
+ return e && e.replace(/<feedbackInline\b([^>]*)>([\s\S]*?)<\/feedbackInline>/gi, (e, t, o) => {
21364
+ let s = Af(t, "outcomeIdentifier"), c = Af(t, "identifier"), l = Af(t, "showHide") ?? "show", u = s ? n[s] : void 0;
21365
+ if (s === null || c === null || u == null || u === "") return "";
21366
+ let d = Array.isArray(u) ? u.includes(c) : u === c;
21367
+ return (l.toLowerCase() === "show" ? d : !d) ? (r && (o = Of(o, a)), i ? ` <span class="qti-feedback-inline">${o}</span>` : o) : "";
21368
21368
  });
21369
21369
  }
21370
- function Af(e, t = "[data-qti-item-body-scope]") {
21371
- return e ? e.stylesheets.map((e) => jf(e, t)).filter(Boolean).join("\n") : "";
21370
+ function Af(e, t) {
21371
+ return (RegExp(`\\b${t}\\s*=\\s*"([^"]*)"`, "i").exec(e) ?? RegExp(`\\b${t}\\s*=\\s*'([^']*)'`, "i").exec(e))?.[1] ?? null;
21372
21372
  }
21373
- function jf(e, t) {
21373
+ function jf(e, t = "[data-qti-item-body-scope]") {
21374
+ return e ? e.stylesheets.map((e) => Mf(e, t)).filter(Boolean).join("\n") : "";
21375
+ }
21376
+ function Mf(e, t) {
21374
21377
  let n = e.cssText?.trim();
21375
- return !n || Ir(n) ? "" : Mf(n, Nf(e, t)) || "";
21378
+ return !n || Ir(n) ? "" : Nf(n, Pf(e, t)) || "";
21376
21379
  }
21377
- function Mf(e, t = "[data-qti-item-body-scope]") {
21380
+ function Nf(e, t = "[data-qti-item-body-scope]") {
21378
21381
  let n = e.replace(/\/\*[\s\S]*?\*\//g, ""), r = "";
21379
21382
  for (let e of n.matchAll(/([^{}@]+)\{([^{}]*)\}/g)) {
21380
21383
  let n = e[1]?.trim(), i = e[2]?.trim();
21381
21384
  if (!n || !i) continue;
21382
- let a = n.split(",").map((e) => Pf(e.trim(), t)).filter(Boolean);
21385
+ let a = n.split(",").map((e) => Ff(e.trim(), t)).filter(Boolean);
21383
21386
  a.length !== 0 && (r += `${a.join(", ")} { ${i} }\n`);
21384
21387
  }
21385
21388
  return r.trim();
21386
21389
  }
21387
- function Nf(e, t) {
21388
- return e.source !== "stimulus" || !e.stimulusIdentifier ? t : `${t} [data-stimulus-idref="${Ff(e.stimulusIdentifier)}"]`;
21389
- }
21390
21390
  function Pf(e, t) {
21391
+ return e.source !== "stimulus" || !e.stimulusIdentifier ? t : `${t} [data-stimulus-idref="${If(e.stimulusIdentifier)}"]`;
21392
+ }
21393
+ function Ff(e, t) {
21391
21394
  return e ? e.startsWith(t) ? e : e === ":root" || e === "html" || e === "body" ? t : e.startsWith(":") ? `${t}${e}` : `${t} ${e}` : "";
21392
21395
  }
21393
- function Ff(e) {
21396
+ function If(e) {
21394
21397
  return e.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/\n|\r|\f/g, " ");
21395
21398
  }
21396
- function If(e, t, n) {
21399
+ function Lf(e, t, n) {
21397
21400
  let r = Object.fromEntries(Object.entries(e?.stimuli ?? {}).map(([e, t]) => [e, n(t.bodyHtml)])), i = Object.fromEntries(Object.entries(t).map(([e, t]) => [e, n(t)]));
21398
21401
  return {
21399
21402
  ...r,
21400
21403
  ...i
21401
21404
  };
21402
21405
  }
21403
- function Lf(e, t) {
21406
+ function Rf(e, t) {
21404
21407
  if (Object.keys(t).length === 0) return e;
21405
21408
  let n = /* @__PURE__ */ new Set(), r = e.replace(/<([a-z][\w:-]*)([^>]*\bdata-stimulus-idref=(["'])([^"']+)\3[^>]*)>\s*<\/\1>/gi, (e, r, i, a, o) => {
21406
21409
  let s = t[o];
21407
- return s ? (n.add(o), `<${r}${zf(i, "qti-stimulus-dock")}>${s}</${r}>`) : e;
21410
+ return s ? (n.add(o), `<${r}${Bf(i, "qti-stimulus-dock")}>${s}</${r}>`) : e;
21408
21411
  });
21409
21412
  r = r.replace(/<qti-assessment-stimulus-ref\b([^>]*)\/?>\s*(?:<\/qti-assessment-stimulus-ref>)?/gi, (e, r) => {
21410
- let i = Rf(r, "identifier");
21413
+ let i = zf(r, "identifier");
21411
21414
  if (!i) return e;
21412
21415
  if (n.has(i)) return "";
21413
21416
  let a = t[i];
21414
- return a ? (n.add(i), `<div data-stimulus-idref="${Bf(i)}" class="qti-stimulus-dock">${a}</div>`) : e;
21417
+ return a ? (n.add(i), `<div data-stimulus-idref="${Vf(i)}" class="qti-stimulus-dock">${a}</div>`) : e;
21415
21418
  });
21416
- let i = Object.entries(t).filter(([e]) => !n.has(e)).map(([e, t]) => `<div data-stimulus-idref="${Bf(e)}" class="qti-stimulus-block">${t}</div>`).join("");
21419
+ let i = Object.entries(t).filter(([e]) => !n.has(e)).map(([e, t]) => `<div data-stimulus-idref="${Vf(e)}" class="qti-stimulus-block">${t}</div>`).join("");
21417
21420
  return i ? i + r : r;
21418
21421
  }
21419
- function Rf(e, t) {
21422
+ function zf(e, t) {
21420
21423
  return e.match(RegExp(`\\b${t}\\s*=\\s*["']([^"']+)["']`, "i"))?.[1] ?? null;
21421
21424
  }
21422
- function zf(e, t) {
21425
+ function Bf(e, t) {
21423
21426
  let n = e.match(/\bclass\s*=\s*(["'])([^"']*)\1/i);
21424
21427
  if (!n) return `${e} class="${t}"`;
21425
21428
  let r = n[1], i = n[2] ?? "", a = new Set(i.split(/\s+/).filter(Boolean));
21426
21429
  return a.add(t), e.replace(n[0], `class=${r}${Array.from(a).join(" ")}${r}`);
21427
21430
  }
21428
- function Bf(e) {
21431
+ function Vf(e) {
21429
21432
  return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
21430
21433
  }
21431
- function Vf(e) {
21434
+ function Hf(e) {
21432
21435
  return Xu(e);
21433
21436
  }
21434
- function Hf(e) {
21437
+ function Uf(e) {
21435
21438
  return Zu(e);
21436
21439
  }
21437
- function Uf(e, t) {
21438
- return e.replace(/<textEntryInteraction[^>]*responseIdentifier="([^"]+)"[^>]*?(?:\/>|><\/textEntryInteraction>)/gi, (e, n) => Kf(t, n, "textEntryInteraction") ? Gf("textEntry", n) : e).replace(/<qti-text-entry-interaction[^>]*response-identifier="([^"]+)"[^>]*?(?:\/>|><\/qti-text-entry-interaction>)/gi, (e, n) => Kf(t, n, "textEntryInteraction") ? Gf("textEntry", n) : e).replace(/<inlineChoiceInteraction[^>]*responseIdentifier="([^"]+)"[^>]*>[\s\S]*?<\/inlineChoiceInteraction>/gi, (e, n) => Kf(t, n, "inlineChoiceInteraction") ? Gf("inlineChoice", n) : e).replace(/<qti-inline-choice-interaction[^>]*response-identifier="([^"]+)"[^>]*>[\s\S]*?<\/qti-inline-choice-interaction>/gi, (e, n) => Kf(t, n, "inlineChoiceInteraction") ? Gf("inlineChoice", n) : e);
21439
- }
21440
21440
  function Wf(e, t) {
21441
- let n = Uf(e, t), r = [], i = /\[TEXTENTRY:([^\]]+)\]|\[INLINECHOICE:([^\]]+)\]/g, a = 0, o;
21441
+ return e.replace(/<textEntryInteraction[^>]*responseIdentifier="([^"]+)"[^>]*?(?:\/>|><\/textEntryInteraction>)/gi, (e, n) => qf(t, n, "textEntryInteraction") ? Kf("textEntry", n) : e).replace(/<qti-text-entry-interaction[^>]*response-identifier="([^"]+)"[^>]*?(?:\/>|><\/qti-text-entry-interaction>)/gi, (e, n) => qf(t, n, "textEntryInteraction") ? Kf("textEntry", n) : e).replace(/<inlineChoiceInteraction[^>]*responseIdentifier="([^"]+)"[^>]*>[\s\S]*?<\/inlineChoiceInteraction>/gi, (e, n) => qf(t, n, "inlineChoiceInteraction") ? Kf("inlineChoice", n) : e).replace(/<qti-inline-choice-interaction[^>]*response-identifier="([^"]+)"[^>]*>[\s\S]*?<\/qti-inline-choice-interaction>/gi, (e, n) => qf(t, n, "inlineChoiceInteraction") ? Kf("inlineChoice", n) : e);
21442
+ }
21443
+ function Gf(e, t) {
21444
+ let n = Wf(e, t), r = [], i = /\[TEXTENTRY:([^\]]+)\]|\[INLINECHOICE:([^\]]+)\]/g, a = 0, o;
21442
21445
  for (; (o = i.exec(n)) !== null;) {
21443
21446
  if (o.index > a && r.push({
21444
21447
  type: "html",
21445
21448
  content: n.substring(a, o.index)
21446
21449
  }), o[0].startsWith("[TEXTENTRY:")) {
21447
- let e = qf(t, o[1], "textEntryInteraction");
21450
+ let e = Jf(t, o[1], "textEntryInteraction");
21448
21451
  e && r.push({
21449
21452
  type: "textEntry",
21450
21453
  interaction: e
21451
21454
  });
21452
21455
  } else {
21453
- let e = qf(t, o[2], "inlineChoiceInteraction");
21456
+ let e = Jf(t, o[2], "inlineChoiceInteraction");
21454
21457
  e && r.push({
21455
21458
  type: "inlineChoice",
21456
21459
  interaction: e
@@ -21466,17 +21469,17 @@ function Wf(e, t) {
21466
21469
  content: n
21467
21470
  }];
21468
21471
  }
21469
- function Gf(e, t) {
21472
+ function Kf(e, t) {
21470
21473
  return e === "textEntry" ? `[TEXTENTRY:${t}]` : `[INLINECHOICE:${t}]`;
21471
21474
  }
21472
- function Kf(e, t, n) {
21473
- return !!qf(e, t, n);
21474
- }
21475
21475
  function qf(e, t, n) {
21476
+ return !!Jf(e, t, n);
21477
+ }
21478
+ function Jf(e, t, n) {
21476
21479
  return e.find((e) => e.responseId === t && e.type === n) ?? null;
21477
21480
  }
21478
- function Jf({ player: e, responses: t = {}, disabled: n = !1, role: r = "candidate", outcomeValues: i = {}, heuristicsConfig: a, stimulusContent: o = {}, deliveryContext: s, itemBodyScopeSelector: c = "[data-qti-item-body-scope]", renderItemBodyRubrics: l = !0, onComponentError: u }) {
21479
- let d = e.getInteractionData(), f = Ef(r), p = n || f.isReadOnly, m = f.canViewCorrectResponses ? e.getCorrectResponses() : {}, h = Yf({
21481
+ function Yf({ player: e, responses: t = {}, disabled: n = !1, role: r = "candidate", outcomeValues: i = {}, heuristicsConfig: a, stimulusContent: o = {}, deliveryContext: s, itemBodyScopeSelector: c = "[data-qti-item-body-scope]", renderItemBodyRubrics: l = !0, onComponentError: u }) {
21482
+ let d = e.getInteractionData(), f = Ef(r), p = n || f.isReadOnly, m = f.canViewCorrectResponses ? e.getCorrectResponses() : {}, h = Xf({
21480
21483
  player: e,
21481
21484
  role: r,
21482
21485
  outcomeValues: i,
@@ -21491,8 +21494,8 @@ function Jf({ player: e, responses: t = {}, disabled: n = !1, role: r = "candida
21491
21494
  effectiveDisabled: p,
21492
21495
  correctResponses: m,
21493
21496
  itemBodyHtml: h,
21494
- inlineSegments: Wf(h, d),
21495
- blockInteractions: ap({
21497
+ inlineSegments: Gf(h, d),
21498
+ blockInteractions: op({
21496
21499
  interactions: d,
21497
21500
  player: e,
21498
21501
  responses: t,
@@ -21503,74 +21506,74 @@ function Jf({ player: e, responses: t = {}, disabled: n = !1, role: r = "candida
21503
21506
  })
21504
21507
  };
21505
21508
  }
21506
- function Yf({ player: e, role: t, outcomeValues: n, heuristicsConfig: r, stimulusContent: i, deliveryContext: a, itemBodyScopeSelector: o, renderItemBodyRubrics: s }) {
21507
- let c = String(e.getItemBodyHtml()), l = a ?? e.getDeliveryContext(), u = Af(l, o), d = If(l, i, (t) => e.sanitizeHtmlContent(t));
21508
- c = Lf(c, d), u && (c = `<style data-qti-stylesheets="resolved">${u}</style>${c}`), c = Xf(c, t, { renderRubrics: s });
21509
+ function Xf({ player: e, role: t, outcomeValues: n, heuristicsConfig: r, stimulusContent: i, deliveryContext: a, itemBodyScopeSelector: o, renderItemBodyRubrics: s }) {
21510
+ let c = String(e.getItemBodyHtml()), l = a ?? e.getDeliveryContext(), u = jf(l, o), d = Lf(l, i, (t) => e.sanitizeHtmlContent(t));
21511
+ c = Rf(c, d), u && (c = `<style data-qti-stylesheets="resolved">${u}</style>${c}`), c = Zf(c, t, { renderRubrics: s });
21509
21512
  let f = Nr(r);
21510
21513
  return c = kf(c, {
21511
21514
  outcomeValues: n,
21512
21515
  applyHeuristics: f.feedbackTextFormatting,
21513
21516
  wrapWithSpan: !1
21514
- }), ip(c);
21517
+ }), ap(c);
21515
21518
  }
21516
- function Xf(e, t, { renderRubrics: n }) {
21519
+ function Zf(e, t, { renderRubrics: n }) {
21517
21520
  if (!e || !/rubric-?block/i.test(e)) return e;
21518
21521
  try {
21519
21522
  let r = (0, Br.parse)(e, {
21520
21523
  lowerCaseTagName: !1,
21521
21524
  comment: !1
21522
21525
  });
21523
- return Zf(r, t, { renderRubrics: n }), r.toString();
21526
+ return Qf(r, t, { renderRubrics: n }), r.toString();
21524
21527
  } catch {
21525
21528
  return e;
21526
21529
  }
21527
21530
  }
21528
- function Zf(e, t, { renderRubrics: n }) {
21531
+ function Qf(e, t, { renderRubrics: n }) {
21529
21532
  let r = [...e.childNodes];
21530
21533
  for (let e of r) {
21531
21534
  let r = e.rawTagName?.toLowerCase();
21532
- if (r && Qf(r) && (!n || !$f(e, t))) {
21535
+ if (r && $f(r) && (!n || !ep(e, t))) {
21533
21536
  e.remove();
21534
21537
  continue;
21535
21538
  }
21536
- e.childNodes?.length && Zf(e, t, { renderRubrics: n }), r && Qf(r) && e.replaceWith(ep(e));
21539
+ e.childNodes?.length && Qf(e, t, { renderRubrics: n }), r && $f(r) && e.replaceWith(tp(e));
21537
21540
  }
21538
21541
  }
21539
- function Qf(e) {
21542
+ function $f(e) {
21540
21543
  return e === "rubricblock" || e === "qti-rubric-block";
21541
21544
  }
21542
- function $f(e, t) {
21545
+ function ep(e, t) {
21543
21546
  let n = e.getAttribute("view")?.trim();
21544
- return n ? tp(n).includes(t) : !0;
21547
+ return n ? np(n).includes(t) : !0;
21545
21548
  }
21546
- function ep(e) {
21549
+ function tp(e) {
21547
21550
  let t = e.getAttribute("view")?.trim(), n = e.getAttribute("use")?.trim();
21548
21551
  return `<div ${[
21549
21552
  "class=\"qti-rubric-block\"",
21550
- t ? `data-qti-rubric-view="${rp(t)}"` : "",
21551
- n ? `data-qti-rubric-use="${rp(n)}"` : ""
21552
- ].filter(Boolean).join(" ")}>${np(e)}</div>`;
21553
+ t ? `data-qti-rubric-view="${ip(t)}"` : "",
21554
+ n ? `data-qti-rubric-use="${ip(n)}"` : ""
21555
+ ].filter(Boolean).join(" ")}>${rp(e)}</div>`;
21553
21556
  }
21554
- function tp(e) {
21557
+ function np(e) {
21555
21558
  return e.split(/[\s,]+/).filter(Boolean);
21556
21559
  }
21557
- function np(e) {
21560
+ function rp(e) {
21558
21561
  return [...e.childNodes].map((e) => e.toString()).join("");
21559
21562
  }
21560
- function rp(e) {
21563
+ function ip(e) {
21561
21564
  return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
21562
21565
  }
21563
- function ip(e) {
21564
- return e.replace(/<(\w+Interaction|qti-[\w-]+-interaction)(\s[^>]*)?>[\s\S]*?<\/\1>/gi, (e, t) => Hf(t.toLowerCase()) ? e : `<span class="qti-hidden-interaction">${e}</span>`);
21566
+ function ap(e) {
21567
+ return e.replace(/<(\w+Interaction|qti-[\w-]+-interaction)(\s[^>]*)?>[\s\S]*?<\/\1>/gi, (e, t) => Uf(t.toLowerCase()) ? e : `<span class="qti-hidden-interaction">${e}</span>`);
21565
21568
  }
21566
- function ap({ interactions: e, player: t, responses: n, correctResponses: r, roleCapabilities: i, effectiveDisabled: a, onComponentError: o }) {
21569
+ function op({ interactions: e, player: t, responses: n, correctResponses: r, roleCapabilities: i, effectiveDisabled: a, onComponentError: o }) {
21567
21570
  let s = t.getComponentRegistry();
21568
- return e.filter((e) => !Vf(e.type)).map((e) => {
21571
+ return e.filter((e) => !Hf(e.type)).map((e) => {
21569
21572
  try {
21570
21573
  return {
21571
21574
  interaction: e,
21572
21575
  tagName: s.getTagName(e),
21573
- key: op(e),
21576
+ key: sp(e),
21574
21577
  response: n[e.responseId] ?? null,
21575
21578
  correctResponse: i.canViewCorrectResponses ? r[e.responseId] ?? null : null,
21576
21579
  pnp: t.getPnp(),
@@ -21583,17 +21586,17 @@ function ap({ interactions: e, player: t, responses: n, correctResponses: r, rol
21583
21586
  }
21584
21587
  }).filter((e) => e !== null);
21585
21588
  }
21586
- function op(e) {
21589
+ function sp(e) {
21587
21590
  let t = e, n = Array.isArray(t?.choices) && t.choices.length > 0 ? t.choices.map((e) => e?.identifier).filter(Boolean).join(",") : "", r = typeof t?.prompt == "string" ? t.prompt : "";
21588
21591
  return `${e.type}|${e.responseId}|${n}|${r}`;
21589
21592
  }
21590
- var sp = 0, cp = /* @__PURE__ */ Bc("<div class=\"qti-item-body svelte-11qbngh\"><div class=\"qti-item-body-content svelte-11qbngh\"><div class=\"inline-interaction-container svelte-11qbngh\"></div></div> <!></div>"), lp = {
21593
+ var cp = 0, lp = /* @__PURE__ */ Bc("<div class=\"qti-item-body svelte-11qbngh\"><div class=\"qti-item-body-content svelte-11qbngh\"><div class=\"inline-interaction-container svelte-11qbngh\"></div></div> <!></div>"), up = {
21591
21594
  hash: "svelte-11qbngh",
21592
21595
  code: "\n /* Allow the whole item body to shrink inside flex/grid layouts (prevents overflow). */.qti-item-body.svelte-11qbngh {max-width:100%;min-width:0;}.qti-item-body-content.svelte-11qbngh {max-width:none;margin-bottom:1rem;}\n\n /*\n * Custom elements default to inline; force them to be block-level and width-contained.\n * This prevents wide interactions (SVGs, tables, canvases) from spilling outside panels.\n */.qti-item-body :is(\n pie-qti-choice,\n pie-qti-slider,\n pie-qti-order,\n pie-qti-match,\n pie-qti-associate,\n pie-qti-gap-match,\n pie-qti-hotspot,\n pie-qti-hottext,\n pie-qti-media,\n pie-qti-custom,\n pie-qti-end-attempt,\n pie-qti-position-object,\n pie-qti-graphic-gap-match,\n pie-qti-graphic-order,\n pie-qti-graphic-associate,\n pie-qti-select-point,\n pie-qti-extended-text\n ) {display:block;max-width:100%;min-width:0;}\n\n /* Keep inline interactions from breaking paragraph flow */.inline-interaction-container.svelte-11qbngh p {display:inline;}\n\n /*\n * Hide all QTI interaction elements wrapped with qti-hidden-interaction.\n * These are rendered separately as web components above.\n * Keeping them in the HTML (but hidden) makes debugging easier and is fully extensible.\n * Any *Interaction element will be automatically wrapped and hidden - no hardcoded list needed!\n */.qti-item-body .qti-hidden-interaction {display:none !important;}\n\n /*\n * Style for inline feedback elements that appear within choice text or other content.\n * Provides visual distinction and spacing for feedback that appears inline with content.\n */.qti-feedback-inline {display:inline-block;margin-left:0.5rem;padding-left:0.5rem;border-left:2px solid var(--pie-qti-base-content, currentColor);opacity:0.8;}\n\n /* QTI 3.0 Shared Stimulus: stimulus blocks that were prepended before the item body */.qti-stimulus-block {margin-bottom:1rem;}\n\n /* QTI rubricBlock / qti-rubric-block content rendered in item-body source order. */.qti-item-body .qti-rubric-block {display:block;max-width:100%;min-width:0;margin:1rem 0;padding:1rem;overflow-x:auto;border:1px solid var(--pie-qti-base-300, #d1d5db);border-inline-start:4px solid var(--pie-qti-primary, #2563eb);border-radius:0.5rem;background:var(--pie-qti-base-200, #f8fafc);}.qti-item-body .qti-rubric-block > :first-child {margin-top:0;}.qti-item-body .qti-rubric-block > :last-child {margin-bottom:0;}.qti-item-body .qti-rubric-block table {max-width:100%;border-collapse:collapse;}.qti-item-body .qti-rubric-block th,\n .qti-item-body .qti-rubric-block td {padding:0.5rem;border:1px solid var(--pie-qti-base-300, #d1d5db);vertical-align:top;}\n\n /* QTI 3.0 Shared Vocabulary: qti-input-width-N sets minimum input width in character units. */.qti-input-width-1 {min-width:1ch;}.qti-input-width-2 {min-width:2ch;}.qti-input-width-3 {min-width:3ch;}.qti-input-width-4 {min-width:4ch;}.qti-input-width-5 {min-width:5ch;}.qti-input-width-6 {min-width:6ch;}.qti-input-width-10 {min-width:10ch;}.qti-input-width-15 {min-width:15ch;}.qti-input-width-20 {min-width:20ch;}.qti-input-width-25 {min-width:25ch;}.qti-input-width-30 {min-width:30ch;}.qti-input-width-35 {min-width:35ch;}.qti-input-width-40 {min-width:40ch;}.qti-input-width-45 {min-width:45ch;}.qti-input-width-50 {min-width:50ch;}.qti-input-width-72 {min-width:72ch;}"
21593
21596
  };
21594
- function up(e, t) {
21595
- ra(t, !0), gl(e, lp);
21596
- let n = Zl(t, "responses", 19, () => ({})), r = Zl(t, "disabled", 3, !1), i = Zl(t, "role", 3, "candidate"), a = Zl(t, "onResponseChange", 3, () => {}), o = Zl(t, "outcomeValues", 19, () => ({})), s = Zl(t, "stimulusContent", 19, () => ({})), c = Zl(t, "renderItemBodyRubrics", 3, !0), l = `qti-item-body-${++sp}`, u = `[data-qti-item-body-scope="${l}"]`, d = /* @__PURE__ */ Ro(() => Jf({
21597
+ function dp(e, t) {
21598
+ ra(t, !0), gl(e, up);
21599
+ let n = Zl(t, "responses", 19, () => ({})), r = Zl(t, "disabled", 3, !1), i = Zl(t, "role", 3, "candidate"), a = Zl(t, "onResponseChange", 3, () => {}), o = Zl(t, "outcomeValues", 19, () => ({})), s = Zl(t, "stimulusContent", 19, () => ({})), c = Zl(t, "renderItemBodyRubrics", 3, !0), l = `qti-item-body-${++cp}`, u = `[data-qti-item-body-scope="${l}"]`, d = /* @__PURE__ */ Ro(() => Yf({
21597
21600
  player: t.player,
21598
21601
  responses: n(),
21599
21602
  disabled: r(),
@@ -21636,7 +21639,7 @@ function up(e, t) {
21636
21639
  destroy() {}
21637
21640
  };
21638
21641
  }
21639
- var _ = cp(), v = ps(_), y = ps(v);
21642
+ var _ = lp(), v = ps(_), y = ps(v);
21640
21643
  cl(y, 21, () => $(d).inlineSegments, il, (e, n) => {
21641
21644
  var r = Vc(), i = ms(r), a = (e) => {
21642
21645
  var t = Vc();
@@ -21708,12 +21711,12 @@ function up(e, t) {
21708
21711
  }), Hc(e, r);
21709
21712
  }), Ki(_), Xl(_, (e) => X(h, e), () => $(h)), _l(_, (e, t) => Jd?.(e, t), () => ({ typeset: t.typeset })), _l(_, (e, t) => hf?.(e, t), () => ({ player: t.player })), Ps(() => Rl(_, "data-qti-item-body-scope", l)), Hc(e, _), ia();
21710
21713
  }
21711
- var dp = /* @__PURE__ */ Bc("<h3 class=\"qti-feedback-title svelte-i66ia0\"> </h3>"), fp = /* @__PURE__ */ Bc("<div class=\"qti-feedback-content svelte-i66ia0\"></div>"), pp = /* @__PURE__ */ Bc("<div class=\"qti-feedback-content svelte-i66ia0\"></div>"), mp = /* @__PURE__ */ Bc("<div><!> <!></div>"), hp = /* @__PURE__ */ Bc("<dialog open=\"\" class=\"qti-feedback-modal svelte-i66ia0\" aria-modal=\"true\"><div class=\"qti-feedback-modal-box svelte-i66ia0\"><button class=\"qti-feedback-close-button svelte-i66ia0\" type=\"button\">✕</button> <!> <div class=\"qti-feedback-actions svelte-i66ia0\"><button class=\"qti-feedback-primary-button svelte-i66ia0\" type=\"button\"> </button></div></div></dialog>"), gp = {
21714
+ var fp = /* @__PURE__ */ Bc("<h3 class=\"qti-feedback-title svelte-i66ia0\"> </h3>"), pp = /* @__PURE__ */ Bc("<div class=\"qti-feedback-content svelte-i66ia0\"></div>"), mp = /* @__PURE__ */ Bc("<div class=\"qti-feedback-content svelte-i66ia0\"></div>"), hp = /* @__PURE__ */ Bc("<div><!> <!></div>"), gp = /* @__PURE__ */ Bc("<dialog open=\"\" class=\"qti-feedback-modal svelte-i66ia0\" aria-modal=\"true\"><div class=\"qti-feedback-modal-box svelte-i66ia0\"><button class=\"qti-feedback-close-button svelte-i66ia0\" type=\"button\">✕</button> <!> <div class=\"qti-feedback-actions svelte-i66ia0\"><button class=\"qti-feedback-primary-button svelte-i66ia0\" type=\"button\"> </button></div></div></dialog>"), _p = {
21712
21715
  hash: "svelte-i66ia0",
21713
21716
  code: ".qti-feedback-modal.svelte-i66ia0 {box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background-color:rgba(0, 0, 0, 0.5);color:var(--pie-qti-base-content, oklch(21% 0 0));}.qti-feedback-modal[open].svelte-i66ia0 {display:grid;place-items:center;}.qti-feedback-modal-box.svelte-i66ia0 {position:relative;box-sizing:border-box;width:min(48rem, calc(100vw - 2rem));max-height:80vh;overflow-y:auto;padding:1.5rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:1rem;background:var(--pie-qti-base-100, oklch(100% 0 0));box-shadow:0 20px 45px rgba(0, 0, 0, 0.2);}.qti-feedback-close-button.svelte-i66ia0,\n .qti-feedback-primary-button.svelte-i66ia0 {display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));background:var(--pie-qti-base-100, oklch(100% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));font:inherit;cursor:pointer;}.qti-feedback-close-button.svelte-i66ia0 {position:absolute;top:0.5rem;right:0.5rem;width:2rem;height:2rem;padding:0;border-radius:9999px;background:transparent;border-color:transparent;}.qti-feedback-close-button.svelte-i66ia0:hover {background:var(--pie-qti-base-200, oklch(98% 0 0));border-color:var(--pie-qti-base-300, oklch(95% 0 0));}.qti-feedback-primary-button.svelte-i66ia0 {gap:0.5rem;padding:0.5rem 0.75rem;border-radius:0.75rem;border-color:var(--pie-qti-primary, oklch(45% 0.24 277));background:color-mix(in oklch, var(--pie-qti-primary, oklch(45% 0.24 277)) 12%, transparent);}.qti-feedback-close-button.svelte-i66ia0:focus-visible,\n .qti-feedback-primary-button.svelte-i66ia0:focus-visible {outline:2px solid var(--pie-qti-focus, var(--pie-qti-primary, oklch(45% 0.24 277)));outline-offset:2px;}.qti-feedback-item.svelte-i66ia0 {margin-bottom:1rem;}.qti-feedback-item-bordered.svelte-i66ia0 {padding-bottom:1rem;border-bottom:1px solid var(--pie-qti-base-300, oklch(95% 0 0));}.qti-feedback-title.svelte-i66ia0 {margin:0 0 0.5rem;font-size:1.125rem;font-weight:700;}.qti-feedback-content.svelte-i66ia0 {max-width:none;}.qti-feedback-actions.svelte-i66ia0 {display:flex;justify-content:flex-end;margin-top:1rem;}"
21714
21717
  };
21715
- function _p(e, t) {
21716
- ra(t, !0), gl(e, gp);
21718
+ function vp(e, t) {
21719
+ ra(t, !0), gl(e, _p);
21717
21720
  let n = Zl(t, "feedback", 19, () => []), r = /* @__PURE__ */ Ro(() => n().length > 0), i = "item-player-modal-feedback-title", a = /* @__PURE__ */ Ro(() => n().find((e) => e.title)?.title);
21718
21721
  function o() {
21719
21722
  t.onClose?.();
@@ -21722,12 +21725,12 @@ function _p(e, t) {
21722
21725
  e.target === e.currentTarget && o();
21723
21726
  }
21724
21727
  var c = Vc(), l = ms(c), u = (e) => {
21725
- var r = hp(), c = ps(r), l = ps(c), u = hs(l, 2);
21728
+ var r = gp(), c = ps(r), l = ps(c), u = hs(l, 2);
21726
21729
  cl(u, 17, n, il, (e, r, a) => {
21727
- var o = mp();
21730
+ var o = hp();
21728
21731
  let s;
21729
21732
  var c = ps(o), l = (e) => {
21730
- var t = dp();
21733
+ var t = fp();
21731
21734
  Rl(t, "id", a === 0 ? i : void 0);
21732
21735
  var n = ps(t, !0);
21733
21736
  Ki(t), Ps(() => Uc(n, $(r).title)), Hc(e, t);
@@ -21736,10 +21739,10 @@ function _p(e, t) {
21736
21739
  $(r).title && e(l);
21737
21740
  });
21738
21741
  var u = hs(c, 2), d = (e) => {
21739
- var n = fp();
21742
+ var n = pp();
21740
21743
  ml(n, () => $(r).content, !0), Ki(n), _l(n, (e, t) => Jd?.(e, t), () => ({ typeset: t.typeset })), Hc(e, n);
21741
21744
  }, f = (e) => {
21742
- var t = pp();
21745
+ var t = mp();
21743
21746
  ml(t, () => $(r).content, !0), Ki(t), Hc(e, t);
21744
21747
  };
21745
21748
  rl(u, (e) => {
@@ -21763,12 +21766,12 @@ function _p(e, t) {
21763
21766
  }), Hc(e, c), ia();
21764
21767
  }
21765
21768
  Nc(["click"]);
21766
- var vp = /* @__PURE__ */ Bc("<div class=\"qti-player-alert qti-player-alert-error svelte-129urwy\"><span> </span></div>"), yp = /* @__PURE__ */ Bc("<span class=\"qti-player-badge qti-player-badge-success svelte-129urwy\"> </span>"), bp = /* @__PURE__ */ Bc("<span> </span>"), xp = /* @__PURE__ */ Bc("<div class=\"qti-player-attempt-status svelte-129urwy\"><!></div>"), Sp = /* @__PURE__ */ Bc("<div class=\"qti-player-actions svelte-129urwy\"><button class=\"qti-player-button qti-player-button-primary svelte-129urwy\"> </button> <!></div>"), Cp = /* @__PURE__ */ Bc("<!> <!> <!>", 1), wp = /* @__PURE__ */ Bc("<div class=\"qti-player-alert qti-player-alert-info svelte-129urwy\"><span> </span></div>"), Tp = /* @__PURE__ */ Bc("<div class=\"qti-item-player svelte-129urwy\"><!></div>"), Ep = {
21769
+ var yp = /* @__PURE__ */ Bc("<div class=\"qti-player-alert qti-player-alert-error svelte-129urwy\"><span> </span></div>"), bp = /* @__PURE__ */ Bc("<span class=\"qti-player-badge qti-player-badge-success svelte-129urwy\"> </span>"), xp = /* @__PURE__ */ Bc("<span> </span>"), Sp = /* @__PURE__ */ Bc("<div class=\"qti-player-attempt-status svelte-129urwy\"><!></div>"), Cp = /* @__PURE__ */ Bc("<div class=\"qti-player-actions svelte-129urwy\"><button class=\"qti-player-button qti-player-button-primary svelte-129urwy\"> </button> <!></div>"), wp = /* @__PURE__ */ Bc("<!> <!> <!>", 1), Tp = /* @__PURE__ */ Bc("<div class=\"qti-player-alert qti-player-alert-info svelte-129urwy\"><span> </span></div>"), Ep = /* @__PURE__ */ Bc("<div class=\"qti-item-player svelte-129urwy\"><!></div>"), Dp = {
21767
21770
  hash: "svelte-129urwy",
21768
21771
  code: ".qti-item-player.svelte-129urwy {color:var(--pie-qti-base-content, oklch(21% 0 0));}.qti-player-alert.svelte-129urwy {display:flex;align-items:center;gap:0.5rem;padding:0.75rem 1rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:0.75rem;background:var(--pie-qti-base-200, oklch(98% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));}.qti-player-alert-error.svelte-129urwy {border-color:var(--pie-qti-error, oklch(71% 0.194 13.428));background:color-mix(in oklch, var(--pie-qti-error, oklch(71% 0.194 13.428)) 8%, transparent);}.qti-player-alert-info.svelte-129urwy {border-color:var(--pie-qti-info, oklch(74% 0.16 232.661));background:color-mix(in oklch, var(--pie-qti-info, oklch(74% 0.16 232.661)) 8%, transparent);}.qti-player-actions.svelte-129urwy {display:flex;align-items:center;gap:1rem;margin-top:1.5rem;}.qti-player-button.svelte-129urwy {display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;padding:0.5rem 0.75rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:0.75rem;background:var(--pie-qti-base-200, oklch(98% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));font:inherit;line-height:1.1;cursor:pointer;}.qti-player-button-primary.svelte-129urwy {border-color:var(--pie-qti-primary, oklch(45% 0.24 277));background:color-mix(in oklch, var(--pie-qti-primary, oklch(45% 0.24 277)) 12%, transparent);}.qti-player-button.svelte-129urwy:disabled {opacity:0.55;cursor:not-allowed;}.qti-player-button.svelte-129urwy:focus-visible {outline:2px solid var(--pie-qti-focus, var(--pie-qti-primary, oklch(45% 0.24 277)));outline-offset:2px;}.qti-player-attempt-status.svelte-129urwy {color:color-mix(in oklch, var(--pie-qti-base-content, oklch(21% 0 0)) 70%, transparent);font-size:0.875rem;}.qti-player-badge.svelte-129urwy {display:inline-flex;align-items:center;justify-content:center;min-height:1.25rem;padding:0 0.5rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:9999px;font-size:0.75rem;font-weight:600;}.qti-player-badge-success.svelte-129urwy {border-color:var(--pie-qti-success, oklch(76% 0.177 163.223));background:color-mix(in oklch, var(--pie-qti-success, oklch(76% 0.177 163.223)) 12%, transparent);}"
21769
21772
  };
21770
- function Dp(e, t) {
21771
- ra(t, !0), gl(e, Ep);
21773
+ function Op(e, t) {
21774
+ ra(t, !0), gl(e, Dp);
21772
21775
  let n = Zl(t, "role", 3, "candidate"), r = Zl(t, "responses", 19, () => ({})), i = Zl(t, "disabled", 3, !1), a = Zl(t, "renderItemBodyRubrics", 3, !0), o = /* @__PURE__ */ Xo(null), s = /* @__PURE__ */ Xo(ns({})), c = /* @__PURE__ */ Xo(null), l = /* @__PURE__ */ Xo(ns([])), u = /* @__PURE__ */ Xo(ns({})), d = /* @__PURE__ */ Xo(!1), f = /* @__PURE__ */ Xo(!1), p = /* @__PURE__ */ Xo(0);
21773
21776
  Os(() => {
21774
21777
  try {
@@ -21808,12 +21811,12 @@ function Dp(e, t) {
21808
21811
  function g() {
21809
21812
  X(l, [], !0);
21810
21813
  }
21811
- var _ = Tp(), v = ps(_), y = (e) => {
21812
- var t = vp(), n = ps(t), r = ps(n, !0);
21814
+ var _ = Ep(), v = ps(_), y = (e) => {
21815
+ var t = yp(), n = ps(t), r = ps(n, !0);
21813
21816
  Ki(n), Ki(t), Ps(() => Uc(r, $(c))), Hc(e, t);
21814
21817
  }, b = (e) => {
21815
- var r = Cp(), c = ms(r);
21816
- up(c, {
21818
+ var r = wp(), c = ms(r);
21819
+ dp(c, {
21817
21820
  get player() {
21818
21821
  return $(o);
21819
21822
  },
@@ -21845,14 +21848,14 @@ function Dp(e, t) {
21845
21848
  });
21846
21849
  var _ = hs(c, 2), v = (e) => {
21847
21850
  let n = /* @__PURE__ */ Ro(() => $(o).canSubmitResponses($(s)));
21848
- var r = Sp(), i = ps(r), a = ps(i, !0);
21851
+ var r = Cp(), i = ps(r), a = ps(i, !0);
21849
21852
  Ki(i);
21850
21853
  var c = hs(i, 2), l = (e) => {
21851
- var n = xp(), r = ps(n), i = (e) => {
21852
- var n = yp(), r = ps(n, !0);
21854
+ var n = Sp(), r = ps(n), i = (e) => {
21855
+ var n = bp(), r = ps(n, !0);
21853
21856
  Ki(n), Ps((e) => Uc(r, e), [() => t.i18n?.t("item.complete") ?? "item.complete"]), Hc(e, n);
21854
21857
  }, a = (e) => {
21855
- var n = bp(), r = ps(n, !0);
21858
+ var n = xp(), r = ps(n, !0);
21856
21859
  Ki(n), Ps((e) => Uc(r, e), [() => t.i18n?.t("item.attempt", { numAttempts: $(p) + 1 }) ?? `item.attempt (${$(p) + 1})`]), Hc(e, n);
21857
21860
  };
21858
21861
  rl(r, (e) => {
@@ -21867,7 +21870,7 @@ function Dp(e, t) {
21867
21870
  };
21868
21871
  rl(_, (e) => {
21869
21872
  n() === "candidate" && !i() && t.onSubmit && e(v);
21870
- }), _p(hs(_, 2), {
21873
+ }), vp(hs(_, 2), {
21871
21874
  get feedback() {
21872
21875
  return $(l);
21873
21876
  },
@@ -21880,7 +21883,7 @@ function Dp(e, t) {
21880
21883
  }
21881
21884
  }), Hc(e, r);
21882
21885
  }, x = (e) => {
21883
- var n = wp(), r = ps(n), i = ps(r, !0);
21886
+ var n = Tp(), r = ps(n), i = ps(r, !0);
21884
21887
  Ki(r), Ki(n), Ps((e) => Uc(i, e), [() => t.i18n?.t("item.loading") ?? "item.loading"]), Hc(e, n);
21885
21888
  };
21886
21889
  rl(v, (e) => {
@@ -21888,16 +21891,16 @@ function Dp(e, t) {
21888
21891
  }), Ki(_), Hc(e, _), ia();
21889
21892
  }
21890
21893
  Nc(["click"]);
21891
- var Op = "pie-qti-item-player", kp = globalThis.HTMLElement ?? class {}, Ap = /* @__PURE__ */ new WeakMap(), jp = /* @__PURE__ */ new WeakMap(), Mp = /* @__PURE__ */ new WeakMap(), Np = /* @__PURE__ */ new WeakMap(), Pp = /* @__PURE__ */ new WeakMap(), Fp = /* @__PURE__ */ new WeakMap(), Ip = /* @__PURE__ */ new WeakMap(), Lp = /* @__PURE__ */ new WeakMap(), Rp = /* @__PURE__ */ new WeakMap(), zp = /* @__PURE__ */ new WeakMap(), Bp = /* @__PURE__ */ new WeakMap(), Vp = /* @__PURE__ */ new WeakMap(), Hp = /* @__PURE__ */ new WeakMap(), Up = /* @__PURE__ */ new WeakMap(), Wp = /* @__PURE__ */ new WeakSet(), Gp = class extends kp {
21894
+ var kp = "pie-qti-item-player", Ap = globalThis.HTMLElement ?? class {}, jp = /* @__PURE__ */ new WeakMap(), Mp = /* @__PURE__ */ new WeakMap(), Np = /* @__PURE__ */ new WeakMap(), Pp = /* @__PURE__ */ new WeakMap(), Fp = /* @__PURE__ */ new WeakMap(), Ip = /* @__PURE__ */ new WeakMap(), Lp = /* @__PURE__ */ new WeakMap(), Rp = /* @__PURE__ */ new WeakMap(), zp = /* @__PURE__ */ new WeakMap(), Bp = /* @__PURE__ */ new WeakMap(), Vp = /* @__PURE__ */ new WeakMap(), Hp = /* @__PURE__ */ new WeakMap(), Up = /* @__PURE__ */ new WeakMap(), Wp = /* @__PURE__ */ new WeakMap(), Gp = /* @__PURE__ */ new WeakSet(), Kp = class extends Ap {
21892
21895
  constructor(...e) {
21893
- super(...e), ba(this, Wp), K(this, Ap, ee({
21896
+ super(...e), ba(this, Gp), K(this, jp, ee({
21894
21897
  host: this,
21895
- mount: (e, t) => Wc(Dp, {
21898
+ mount: (e, t) => Wc(Op, {
21896
21899
  target: e,
21897
21900
  props: t
21898
21901
  }),
21899
21902
  unmount: Jc
21900
- })), K(this, jp, ""), K(this, Mp, "candidate"), K(this, Np, !1), K(this, Pp, !0), K(this, Fp, void 0), K(this, Ip, void 0), K(this, Lp, void 0), K(this, Rp, void 0), K(this, zp, void 0), K(this, Bp, void 0), K(this, Vp, void 0), K(this, Hp, void 0), K(this, Up, void 0);
21903
+ })), K(this, Mp, ""), K(this, Np, "candidate"), K(this, Pp, !1), K(this, Fp, !0), K(this, Ip, void 0), K(this, Lp, void 0), K(this, Rp, void 0), K(this, zp, void 0), K(this, Bp, void 0), K(this, Vp, void 0), K(this, Hp, void 0), K(this, Up, void 0), K(this, Wp, void 0);
21901
21904
  }
21902
21905
  static get observedAttributes() {
21903
21906
  return [
@@ -21907,115 +21910,115 @@ var Op = "pie-qti-item-player", kp = globalThis.HTMLElement ?? class {}, Ap = /*
21907
21910
  ];
21908
21911
  }
21909
21912
  get itemXml() {
21910
- return J(jp, this);
21913
+ return J(Mp, this);
21911
21914
  }
21912
21915
  set itemXml(e) {
21913
- Y(jp, this, e ?? ""), q(Wp, this, qp).call(this);
21916
+ Y(Mp, this, e ?? ""), q(Gp, this, Jp).call(this);
21914
21917
  }
21915
21918
  get role() {
21916
- return J(Mp, this);
21919
+ return J(Np, this);
21917
21920
  }
21918
21921
  set role(e) {
21919
- Y(Mp, this, e ?? "candidate"), q(Wp, this, qp).call(this);
21922
+ Y(Np, this, e ?? "candidate"), q(Gp, this, Jp).call(this);
21920
21923
  }
21921
21924
  get disabled() {
21922
- return J(Np, this);
21925
+ return J(Pp, this);
21923
21926
  }
21924
21927
  set disabled(e) {
21925
- Y(Np, this, !!e), q(Wp, this, qp).call(this);
21928
+ Y(Pp, this, !!e), q(Gp, this, Jp).call(this);
21926
21929
  }
21927
21930
  get renderItemBodyRubrics() {
21928
- return J(Pp, this);
21931
+ return J(Fp, this);
21929
21932
  }
21930
21933
  set renderItemBodyRubrics(e) {
21931
- Y(Pp, this, e !== !1), q(Wp, this, qp).call(this);
21934
+ Y(Fp, this, e !== !1), q(Gp, this, Jp).call(this);
21932
21935
  }
21933
21936
  get typeset() {
21934
- return J(Fp, this);
21937
+ return J(Ip, this);
21935
21938
  }
21936
21939
  set typeset(e) {
21937
- Y(Fp, this, e), q(Wp, this, qp).call(this);
21940
+ Y(Ip, this, e), q(Gp, this, Jp).call(this);
21938
21941
  }
21939
21942
  get i18n() {
21940
- return J(Ip, this);
21943
+ return J(Lp, this);
21941
21944
  }
21942
21945
  set i18n(e) {
21943
- Y(Ip, this, e), q(Wp, this, qp).call(this);
21946
+ Y(Lp, this, e), q(Gp, this, Jp).call(this);
21944
21947
  }
21945
21948
  get security() {
21946
- return J(Lp, this);
21949
+ return J(Rp, this);
21947
21950
  }
21948
21951
  set security(e) {
21949
- Y(Lp, this, e), q(Wp, this, qp).call(this);
21952
+ Y(Rp, this, e), q(Gp, this, Jp).call(this);
21950
21953
  }
21951
21954
  get pnp() {
21952
- return J(Rp, this);
21955
+ return J(zp, this);
21953
21956
  }
21954
21957
  set pnp(e) {
21955
- Y(Rp, this, e), q(Wp, this, qp).call(this);
21958
+ Y(zp, this, e), q(Gp, this, Jp).call(this);
21956
21959
  }
21957
21960
  get deliveryContext() {
21958
- return J(zp, this);
21961
+ return J(Bp, this);
21959
21962
  }
21960
21963
  set deliveryContext(e) {
21961
- Y(zp, this, e), q(Wp, this, qp).call(this);
21964
+ Y(Bp, this, e), q(Gp, this, Jp).call(this);
21962
21965
  }
21963
21966
  get responses() {
21964
- return J(Bp, this);
21967
+ return J(Vp, this);
21965
21968
  }
21966
21969
  set responses(e) {
21967
- Y(Bp, this, e), q(Wp, this, qp).call(this);
21970
+ Y(Vp, this, e), q(Gp, this, Jp).call(this);
21968
21971
  }
21969
21972
  get onResponseChange() {
21970
- return J(Vp, this);
21973
+ return J(Hp, this);
21971
21974
  }
21972
21975
  set onResponseChange(e) {
21973
- Y(Vp, this, e), q(Wp, this, qp).call(this);
21976
+ Y(Hp, this, e), q(Gp, this, Jp).call(this);
21974
21977
  }
21975
21978
  get onSubmit() {
21976
- return J(Hp, this);
21979
+ return J(Up, this);
21977
21980
  }
21978
21981
  set onSubmit(e) {
21979
- Y(Hp, this, e), q(Wp, this, qp).call(this);
21982
+ Y(Up, this, e), q(Gp, this, Jp).call(this);
21980
21983
  }
21981
21984
  get onComplete() {
21982
- return J(Up, this);
21985
+ return J(Wp, this);
21983
21986
  }
21984
21987
  set onComplete(e) {
21985
- Y(Up, this, e), q(Wp, this, qp).call(this);
21988
+ Y(Wp, this, e), q(Gp, this, Jp).call(this);
21986
21989
  }
21987
21990
  connectedCallback() {
21988
- J(Ap, this).mountOrUpdate(q(Wp, this, Kp).call(this));
21991
+ J(jp, this).mountOrUpdate(q(Gp, this, qp).call(this));
21989
21992
  }
21990
21993
  disconnectedCallback() {
21991
- J(Ap, this).teardown({ removeContainer: !0 });
21994
+ J(jp, this).teardown({ removeContainer: !0 });
21992
21995
  }
21993
21996
  attributeChangedCallback(e, t, n) {
21994
- e === "item-xml" ? Y(jp, this, n ?? "") : e === "role" ? Y(Mp, this, n ?? "candidate") : e === "disabled" && Y(Np, this, n !== null), q(Wp, this, qp).call(this);
21997
+ e === "item-xml" ? Y(Mp, this, n ?? "") : e === "role" ? Y(Np, this, n ?? "candidate") : e === "disabled" && Y(Pp, this, n !== null), q(Gp, this, Jp).call(this);
21995
21998
  }
21996
21999
  };
21997
- function Kp() {
22000
+ function qp() {
21998
22001
  return {
21999
- itemXml: J(jp, this),
22000
- role: J(Mp, this),
22001
- disabled: J(Np, this),
22002
- renderItemBodyRubrics: J(Pp, this),
22003
- typeset: J(Fp, this),
22004
- i18n: J(Ip, this),
22005
- security: J(Lp, this),
22006
- pnp: J(Rp, this),
22007
- deliveryContext: J(zp, this),
22008
- responses: J(Bp, this),
22009
- onResponseChange: J(Vp, this),
22010
- onSubmit: J(Hp, this),
22011
- onComplete: J(Up, this)
22002
+ itemXml: J(Mp, this),
22003
+ role: J(Np, this),
22004
+ disabled: J(Pp, this),
22005
+ renderItemBodyRubrics: J(Fp, this),
22006
+ typeset: J(Ip, this),
22007
+ i18n: J(Lp, this),
22008
+ security: J(Rp, this),
22009
+ pnp: J(zp, this),
22010
+ deliveryContext: J(Bp, this),
22011
+ responses: J(Vp, this),
22012
+ onResponseChange: J(Hp, this),
22013
+ onSubmit: J(Up, this),
22014
+ onComplete: J(Wp, this)
22012
22015
  };
22013
22016
  }
22014
- function qp() {
22015
- J(Ap, this).update(q(Wp, this, Kp).call(this));
22017
+ function Jp() {
22018
+ J(jp, this).update(q(Gp, this, qp).call(this));
22016
22019
  }
22017
- globalThis.customElements && !customElements.get(Op) && customElements.define(Op, Gp);
22020
+ globalThis.customElements && !customElements.get(kp) && customElements.define(kp, Kp);
22018
22021
  //#endregion
22019
- export { T as A, d as B, R as C, zt as D, V as E, v as F, l as H, g as I, h as L, ee as M, S as N, j as O, y as P, m as R, Vt as S, Rt as T, c as U, u as V, sn as _, Fr as a, Wt as b, Ar as c, Hn as d, Fn as f, on as g, cn as h, Ir as i, w as j, te as k, Sr as l, Nn as m, Gp as n, jr as o, U as p, Pr as r, Nr as s, zr as t, lr as u, Zt as v, B as w, H as x, qt as y, o as z };
22022
+ export { T as A, d as B, R as C, zt as D, V as E, v as F, l as H, g as I, h as L, ee as M, S as N, j as O, y as P, m as R, Vt as S, Rt as T, c as U, u as V, sn as _, Fr as a, Wt as b, Ar as c, Hn as d, Fn as f, on as g, cn as h, Ir as i, w as j, te as k, Sr as l, Nn as m, zr as n, jr as o, U as p, Pr as r, Nr as s, Kp as t, lr as u, Zt as v, B as w, H as x, qt as y, o as z };
22020
22023
 
22021
- //# sourceMappingURL=element-TO8a6VNu.js.map
22024
+ //# sourceMappingURL=element-Cqn2b4ur.js.map