@pie-element/venn-classification 0.1.1-next.18 → 0.1.1-next.19

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.
@@ -2519,22 +2519,29 @@ function na() {
2519
2519
  return window.MathJax;
2520
2520
  }
2521
2521
  function ra(e) {
2522
- let t = e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e;
2523
- for (let [e, n] of Yi) if (t.startsWith(e) && t.endsWith(n)) return t.substring(e.length, t.length - n.length);
2524
- return t;
2522
+ for (let [t, n] of Yi) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
2523
+ return e;
2525
2524
  }
2526
2525
  function ia(e) {
2526
+ return ra(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
2527
+ }
2528
+ var aa = "mathjax_ignore", oa = "mathjax_process";
2529
+ function sa(e, t) {
2530
+ let n = e.closest(`.${aa}, .${oa}`);
2531
+ return n !== null && t.contains(n) && !n.classList.contains(oa);
2532
+ }
2533
+ function ca(e) {
2527
2534
  for (let t of e.querySelectorAll("[data-latex]")) {
2528
- if (t.dataset.mathHandled || t.closest("mjx-container")) continue;
2529
- let e = t.textContent;
2530
- e && (t.textContent = `\\(${ra(e)}\\)`.replace(Ji, "\\newline "), t.dataset.mathHandled = "true");
2535
+ if (t.dataset.mathHandled || t.closest("mjx-container") || sa(t, e)) continue;
2536
+ let n = t.textContent;
2537
+ n && (t.textContent = `\\(${ia(n)}\\)`.replace(Ji, "\\newline "), t.dataset.mathHandled = "true");
2531
2538
  }
2532
2539
  }
2533
- function aa(e, t) {
2540
+ function la(e, t) {
2534
2541
  for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
2535
2542
  return (t ? qi : Ki).test(e.textContent ?? "");
2536
2543
  }
2537
- function oa(e) {
2544
+ function ua(e) {
2538
2545
  return new Promise((t, n) => {
2539
2546
  let { useSingleDollar: r = !1, accessibility: i = !0, loadFonts: a = !0, srcUrl: o } = e, s = {
2540
2547
  loader: {
@@ -2545,7 +2552,7 @@ function oa(e) {
2545
2552
  typeset: !1,
2546
2553
  ready: () => {
2547
2554
  let e = na(), r = e?.startup, i = !!e?.version?.startsWith("4.");
2548
- i && sa(e), r?.defaultReady?.(), i && ca(r?.document), Promise.resolve(r?.promise).then(() => t(), n);
2555
+ i && da(e), r?.defaultReady?.(), i && fa(r?.document), Promise.resolve(r?.promise).then(() => t(), n);
2549
2556
  }
2550
2557
  },
2551
2558
  tex: { macros: { ...Wi } },
@@ -2563,11 +2570,11 @@ function oa(e) {
2563
2570
  c.src = o || Ui, c.async = !0, c.onerror = () => n(/* @__PURE__ */ Error("Failed to load MathJax")), document.head.appendChild(c);
2564
2571
  });
2565
2572
  }
2566
- function sa(e) {
2573
+ function da(e) {
2567
2574
  let t = e?._?.output?.chtml_ts?.CHTML;
2568
2575
  t && (t.STYLESHEETID = Zi);
2569
2576
  }
2570
- function ca(e) {
2577
+ function fa(e) {
2571
2578
  if (!e) return;
2572
2579
  let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
2573
2580
  let n = e.typesetRoot;
@@ -2581,32 +2588,32 @@ function ca(e) {
2581
2588
  return t && ta(t), !1;
2582
2589
  });
2583
2590
  let r = e.outputJax?.chtmlStyles;
2584
- r?.id === Qi && (r.id = Zi), da();
2591
+ r?.id === Qi && (r.id = Zi), ha();
2585
2592
  }
2586
- function la(e) {
2593
+ function pa(e) {
2587
2594
  return e instanceof HTMLStyleElement && $i.includes(e.id);
2588
2595
  }
2589
- function ua(e) {
2596
+ function ma(e) {
2590
2597
  Vi("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
2591
2598
  }
2592
- function da() {
2593
- let e = document.head, t = [...e.children].find(la);
2599
+ function ha() {
2600
+ let e = document.head, t = [...e.children].find(pa);
2594
2601
  if (t) {
2595
- ua(t);
2602
+ ma(t);
2596
2603
  return;
2597
2604
  }
2598
2605
  let n = new MutationObserver((e) => {
2599
2606
  for (let t of e) {
2600
- let e = [...t.addedNodes].find(la);
2607
+ let e = [...t.addedNodes].find(pa);
2601
2608
  if (e) {
2602
- ua(e), n.disconnect();
2609
+ ma(e), n.disconnect();
2603
2610
  return;
2604
2611
  }
2605
2612
  }
2606
2613
  });
2607
2614
  n.observe(e, { childList: !0 });
2608
2615
  }
2609
- function fa(e) {
2616
+ function ga(e) {
2610
2617
  return new Promise((t, n) => {
2611
2618
  let r = e.startup ?? {};
2612
2619
  e.startup = r;
@@ -2617,27 +2624,27 @@ function fa(e) {
2617
2624
  };
2618
2625
  });
2619
2626
  }
2620
- function pa(e) {
2627
+ function _a(e) {
2621
2628
  let t = na();
2622
- return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : fa(t) : oa(e);
2629
+ return t ? t.version ? t.startup?.promise ? Promise.resolve(t.startup.promise).then(() => void 0) : Promise.resolve() : ga(t) : ua(e);
2623
2630
  }
2624
- function ma(e) {
2625
- return pa(e).then(() => {
2631
+ function va(e) {
2632
+ return _a(e).then(() => {
2626
2633
  typeof na()?.typesetPromise != "function" && console.warn("[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.");
2627
2634
  });
2628
2635
  }
2629
- function ha(e) {
2636
+ function ya(e) {
2630
2637
  let t = globalThis, n = t[Xi];
2631
- return n || (n = ma(e), t[Xi] = n), n;
2638
+ return n || (n = va(e), t[Xi] = n), n;
2632
2639
  }
2633
- function ga(e = {}) {
2640
+ function ba(e = {}) {
2634
2641
  let t = e.useSingleDollar ?? !1;
2635
2642
  return async (n) => {
2636
2643
  if (typeof window > "u") return;
2637
2644
  let r = Hi();
2638
- r && Vi("mathjax-3-global", `window.MathJax is MathJax ${r}`), ia(n);
2639
- let i = ha(e);
2640
- if (!aa(n, t)) {
2645
+ r && Vi("mathjax-3-global", `window.MathJax is MathJax ${r}`), ca(n);
2646
+ let i = ya(e);
2647
+ if (!la(n, t)) {
2641
2648
  i.catch(() => {});
2642
2649
  return;
2643
2650
  }
@@ -2646,72 +2653,72 @@ function ga(e = {}) {
2646
2653
  await a?.startup?.promise, typeof a?.typesetPromise == "function" && (await a.typesetPromise([n]), ta(n));
2647
2654
  };
2648
2655
  }
2649
- var _a = "@pie-lib/math-rendering", va = "@pie-lib/math-rendering@2", ya = "pie-print", ba = 50, xa = 1e4, Sa = null;
2650
- function Ca() {
2651
- return !!window[va]?.opts?.useSingleDollar;
2656
+ var xa = "@pie-lib/math-rendering", Sa = "@pie-lib/math-rendering@2", Ca = "pie-print", wa = 50, Ta = 1e4, Ea = null;
2657
+ function Da() {
2658
+ return !!window[Sa]?.opts?.useSingleDollar;
2652
2659
  }
2653
- function wa() {
2654
- return Sa ||= ga({ useSingleDollar: Ca() }), Sa;
2660
+ function Oa() {
2661
+ return Ea ||= ba({ useSingleDollar: Da() }), Ea;
2655
2662
  }
2656
- function Ta() {
2663
+ function ka() {
2657
2664
  if (typeof window > "u") return null;
2658
- let e = window[_a];
2659
- return typeof e?.renderMath == "function" ? e : null;
2665
+ let e = window[xa];
2666
+ return typeof e?.renderMath == "function" && e.renderMath !== Na ? e : null;
2660
2667
  }
2661
- function Ea(e) {
2668
+ function Aa(e) {
2662
2669
  let t = e;
2663
2670
  for (; t;) {
2664
- if (t instanceof Element && t.localName === ya) return t;
2671
+ if (t instanceof Element && t.localName === Ca) return t;
2665
2672
  t = t instanceof ShadowRoot ? t.host : t.parentNode;
2666
2673
  }
2667
2674
  return null;
2668
2675
  }
2669
- function Da() {
2676
+ function ja() {
2670
2677
  let e = window.renderMath;
2671
2678
  return typeof e == "function" ? e : null;
2672
2679
  }
2673
- async function Oa(e) {
2674
- let t = Ea(e);
2680
+ async function Ma(e) {
2681
+ let t = Aa(e);
2675
2682
  if (!t) return null;
2676
- let n = Da();
2683
+ let n = ja();
2677
2684
  if (n || t.mathRenderingModuleUrlImported !== !0) return n;
2678
- let r = Date.now() + xa;
2685
+ let r = Date.now() + Ta;
2679
2686
  for (; Date.now() < r;) {
2680
- await new Promise((e) => setTimeout(e, ba));
2681
- let e = Da();
2687
+ await new Promise((e) => setTimeout(e, wa));
2688
+ let e = ja();
2682
2689
  if (e) return e;
2683
2690
  }
2684
2691
  return null;
2685
2692
  }
2686
- var ka = async (e) => {
2693
+ var Na = async (e) => {
2687
2694
  if (typeof window > "u") return;
2688
2695
  let t = typeof e == "string", n;
2689
2696
  t ? (n = document.createElement("div"), n.innerHTML = e) : n = e || document.body;
2690
- let r = Ta(), i = r || t ? null : await Oa(n);
2691
- return r ? await r.renderMath?.(n) : i ? await i(n) : await wa()(n), t ? n.innerHTML : void 0;
2697
+ let r = ka(), i = r || t ? null : await Ma(n);
2698
+ return r ? await r.renderMath?.(n) : i && i !== Na ? await i(n) : await Oa()(n), t ? n.innerHTML : void 0;
2692
2699
  };
2693
2700
  //#endregion
2694
2701
  //#region src/delivery/tile-accessible-name.ts
2695
- function Aa(e) {
2702
+ function Pa(e) {
2696
2703
  return (e || "").replace(/<[^>]+>/g, " ").replace(/\s+/g, " ").trim();
2697
2704
  }
2698
- function ja(e, n) {
2705
+ function Fa(e, n) {
2699
2706
  let r = (e.imageAlt ?? "").trim();
2700
- return (e.imageUrl ?? "").trim() && r ? r : Aa(e.label ?? "") || t("tileFallbackName", n);
2707
+ return (e.imageUrl ?? "").trim() && r ? r : Pa(e.label ?? "") || t("tileFallbackName", n);
2701
2708
  }
2702
- function Ma(e, n, r, i) {
2703
- let a = [ja(e, i), n === null ? t("tileNotPlaced", i) : t("tileInRegion", i, { region: n })];
2709
+ function Ia(e, n, r, i) {
2710
+ let a = [Fa(e, i), n === null ? t("tileNotPlaced", i) : t("tileInRegion", i, { region: n })];
2704
2711
  return r === "correct" && a.push(t("tileCorrect", i)), r === "incorrect" && a.push(t("tileIncorrect", i)), a.join(", ");
2705
2712
  }
2706
2713
  //#endregion
2707
2714
  //#region src/delivery/Tile.svelte
2708
- var Na = /* @__PURE__ */ Y("<img alt=\"\" class=\"tile-img svelte-1hgaksk\" aria-hidden=\"true\" draggable=\"false\"/>"), Pa = /* @__PURE__ */ Y("<span></span>"), Fa = /* @__PURE__ */ Y("<span class=\"venn-badge venn-badge-correct svelte-1hgaksk\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"currentColor\"><path d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z\"></path></svg></span>"), Ia = /* @__PURE__ */ Y("<span class=\"venn-badge venn-badge-incorrect svelte-1hgaksk\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"currentColor\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z\"></path></svg></span>"), La = /* @__PURE__ */ Y("<button type=\"button\"><span><!> <!></span> <!></button>"), Ra = {
2715
+ var La = /* @__PURE__ */ Y("<img alt=\"\" class=\"tile-img svelte-1hgaksk\" aria-hidden=\"true\" draggable=\"false\"/>"), Ra = /* @__PURE__ */ Y("<span></span>"), za = /* @__PURE__ */ Y("<span class=\"venn-badge venn-badge-correct svelte-1hgaksk\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"currentColor\"><path d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z\"></path></svg></span>"), Ba = /* @__PURE__ */ Y("<span class=\"venn-badge venn-badge-incorrect svelte-1hgaksk\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"currentColor\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z\"></path></svg></span>"), Va = /* @__PURE__ */ Y("<button type=\"button\"><span><!> <!></span> <!></button>"), Ha = {
2709
2716
  hash: "svelte-1hgaksk",
2710
2717
  code: ".venn-tile.svelte-1hgaksk {position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:44px;padding:8px 14px;border:1.5px solid #334155;border-radius:10px;background:#ffffff;color:#0f172a;font-size:14px;font-weight:500;box-shadow:0 1px 2px rgba(15, 23, 42, 0.06);cursor:grab;touch-action:none;user-select:none;transition:box-shadow 120ms ease, transform 120ms ease, background 120ms ease;}.venn-tile.svelte-1hgaksk:focus-visible,\n .venn-tile.focused.svelte-1hgaksk {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;}.venn-tile.svelte-1hgaksk:hover:not(:disabled) {background:#f8fafc;}.venn-tile.held.svelte-1hgaksk {cursor:grabbing;box-shadow:0 6px 18px rgba(15, 23, 42, 0.18);transform:translateY(-1px);background:#eef2ff;}.venn-tile.invisible.svelte-1hgaksk {visibility:hidden;}.venn-tile.ghost.svelte-1hgaksk {pointer-events:none;cursor:grabbing;box-shadow:0 10px 24px rgba(15, 23, 42, 0.22);transform:rotate(-1.5deg);background:#ffffff;opacity:0.96;}.venn-tile.correct.svelte-1hgaksk {border-color:#0ea449;}.venn-tile.incorrect.svelte-1hgaksk {border-color:#bf0d00;}.venn-tile.svelte-1hgaksk:disabled {cursor:default;}.tile-body.svelte-1hgaksk {display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;pointer-events:none;max-width:220px;}.tile-body-image.svelte-1hgaksk {flex-direction:column;gap:4px;}.tile-img.svelte-1hgaksk {width:40px;height:40px;object-fit:contain;flex-shrink:0;}.tile-label.svelte-1hgaksk {pointer-events:none;text-align:center;line-height:1.25;word-break:break-word;}.tile-label-below.svelte-1hgaksk {font-size:12px;font-weight:600;}.venn-tile.fit.svelte-1hgaksk {box-sizing:border-box;width:100%;height:100%;min-width:0;min-height:0;padding:6px 10px;}.fit.svelte-1hgaksk .tile-body:where(.svelte-1hgaksk) {max-width:100%;max-height:100%;overflow:hidden;}.fit.svelte-1hgaksk .tile-label:where(.svelte-1hgaksk) {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;}.fit.svelte-1hgaksk .tile-label-below:where(.svelte-1hgaksk) {-webkit-line-clamp:1;line-clamp:1;}.venn-badge.svelte-1hgaksk {position:absolute;top:-8px;right:-8px;width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#ffffff;}.venn-badge-correct.svelte-1hgaksk {background:#0ea449;}.venn-badge-incorrect.svelte-1hgaksk {background:#bf0d00;}\n @media (prefers-reduced-motion: reduce) {.venn-tile.svelte-1hgaksk {transition:none;}\n }"
2711
2718
  };
2712
- function za(e, t) {
2713
- Xe(t, !0), si(e, Ra);
2714
- let n = $(t, "id", 7), r = $(t, "label", 7), i = $(t, "imageUrl", 7), a = $(t, "imageAlt", 7), o = $(t, "name", 7), s = $(t, "language", 7), c = $(t, "correctness", 7, "neutral"), l = $(t, "held", 7, !1), u = $(t, "invisible", 7, !1), d = $(t, "ghost", 7, !1), f = $(t, "disabled", 7, !1), p = $(t, "focused", 7, !1), m = $(t, "fit", 7, !1), h = $(t, "onpointerdown", 7), g = $(t, "onkeydown", 7), _ = $(t, "onkeyup", 7), v = $(t, "onfocus", 7), y = $(t, "onclick", 7), b = /* @__PURE__ */ I(() => o() ?? ja({
2719
+ function Ua(e, t) {
2720
+ Xe(t, !0), si(e, Ha);
2721
+ let n = $(t, "id", 7), r = $(t, "label", 7), i = $(t, "imageUrl", 7), a = $(t, "imageAlt", 7), o = $(t, "name", 7), s = $(t, "language", 7), c = $(t, "correctness", 7, "neutral"), l = $(t, "held", 7, !1), u = $(t, "invisible", 7, !1), d = $(t, "ghost", 7, !1), f = $(t, "disabled", 7, !1), p = $(t, "focused", 7, !1), m = $(t, "fit", 7, !1), h = $(t, "onpointerdown", 7), g = $(t, "onkeydown", 7), _ = $(t, "onkeyup", 7), v = $(t, "onfocus", 7), y = $(t, "onclick", 7), b = /* @__PURE__ */ I(() => o() ?? Fa({
2715
2722
  label: r(),
2716
2723
  imageUrl: i(),
2717
2724
  imageAlt: a()
@@ -2825,19 +2832,19 @@ function za(e, t) {
2825
2832
  set onclick(e) {
2826
2833
  y(e), R();
2827
2834
  }
2828
- }, C = La();
2835
+ }, C = Va();
2829
2836
  let w;
2830
2837
  var te = H(C);
2831
2838
  let ne;
2832
2839
  var re = H(te), ie = (e) => {
2833
- var t = Na();
2840
+ var t = La();
2834
2841
  W(() => Q(t, "src", i())), X(e, t);
2835
2842
  };
2836
2843
  Z(re, (e) => {
2837
2844
  J(x) && e(ie);
2838
2845
  });
2839
2846
  var T = U(re, 2), E = (e) => {
2840
- var t = Pa();
2847
+ var t = Ra();
2841
2848
  let n;
2842
2849
  oi(t, r, !0), N(t), W(() => n = pi(t, 1, "tile-label svelte-1hgaksk", null, n, { "tile-label-below": J(x) })), X(e, t);
2843
2850
  };
@@ -2845,9 +2852,9 @@ function za(e, t) {
2845
2852
  J(S) && e(E);
2846
2853
  }), N(te);
2847
2854
  var ae = U(te, 2), oe = (e) => {
2848
- X(e, Fa());
2855
+ X(e, za());
2849
2856
  }, se = (e) => {
2850
- X(e, Ia());
2857
+ X(e, Ba());
2851
2858
  };
2852
2859
  return Z(ae, (e) => {
2853
2860
  c() === "correct" ? e(oe) : c() === "incorrect" && e(se, 1);
@@ -2878,7 +2885,7 @@ Sr([
2878
2885
  "keydown",
2879
2886
  "keyup",
2880
2887
  "click"
2881
- ]), Li(za, {
2888
+ ]), Li(Ua, {
2882
2889
  id: {},
2883
2890
  label: {},
2884
2891
  imageUrl: {},
@@ -2900,12 +2907,12 @@ Sr([
2900
2907
  }, [], [], { mode: "open" });
2901
2908
  //#endregion
2902
2909
  //#region src/delivery/Tray.svelte
2903
- var Ba = /* @__PURE__ */ Y("<div role=\"region\" data-region-key=\"tray\"><div class=\"tray-label svelte-1ogsh8s\"> </div> <div class=\"tray-items svelte-1ogsh8s\"><!></div></div>"), Va = {
2910
+ var Wa = /* @__PURE__ */ Y("<div role=\"region\" data-region-key=\"tray\"><div class=\"tray-label svelte-1ogsh8s\"> </div> <div class=\"tray-items svelte-1ogsh8s\"><!></div></div>"), Ga = {
2904
2911
  hash: "svelte-1ogsh8s",
2905
2912
  code: ".venn-tray.svelte-1ogsh8s {border:1.5px dashed #94a3b8;border-radius:12px;padding:14px 16px;background:#f8fafc;min-height:120px;transition:background 120ms ease, border-color 120ms ease;}.venn-tray.drop-target.svelte-1ogsh8s {background:#e0f2fe;border-color:#0ea5e9;}.venn-tray.focused.svelte-1ogsh8s {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;}.tray-label.svelte-1ogsh8s {font-size:12px;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:0.05em;margin-bottom:8px;}.tray-items.svelte-1ogsh8s {display:flex;flex-wrap:wrap;gap:10px;}\n @media (prefers-reduced-motion: reduce) {.venn-tray.svelte-1ogsh8s {transition:none;}\n }"
2906
2913
  };
2907
- function Ha(e, t) {
2908
- Xe(t, !0), si(e, Va);
2914
+ function Ka(e, t) {
2915
+ Xe(t, !0), si(e, Ga);
2909
2916
  let n = $(t, "isDropTarget", 7, !1), r = $(t, "focused", 7, !1), i = $(t, "label", 7), a = $(t, "onpointerenter", 7), o = $(t, "onpointerleave", 7), s = $(t, "children", 7);
2910
2917
  var c = {
2911
2918
  get isDropTarget() {
@@ -2944,7 +2951,7 @@ function Ha(e, t) {
2944
2951
  set children(e) {
2945
2952
  s(e), R();
2946
2953
  }
2947
- }, l = Ba();
2954
+ }, l = Wa();
2948
2955
  let u;
2949
2956
  var d = H(l), f = ln(d, !0), p = U(d, 2), m = H(p), h = (e) => {
2950
2957
  var t = Mr();
@@ -2963,7 +2970,7 @@ function Ha(e, t) {
2963
2970
  o()?.apply(this, e);
2964
2971
  }), X(e, l), Ze(c);
2965
2972
  }
2966
- Li(Ha, {
2973
+ Li(Ka, {
2967
2974
  isDropTarget: {},
2968
2975
  focused: {},
2969
2976
  label: {},
@@ -2973,12 +2980,12 @@ Li(Ha, {
2973
2980
  }, [], [], { mode: "open" });
2974
2981
  //#endregion
2975
2982
  //#region src/delivery/TeacherInstructions.svelte
2976
- var Ua = /* @__PURE__ */ Y("<div class=\"teacher-instructions pie-teacher-instructions svelte-1jhejbv\"><button type=\"button\" class=\"teacher-instructions-toggle pie-teacher-instructions-toggle svelte-1jhejbv\"> </button> <div class=\"teacher-instructions-content pie-teacher-instructions-content svelte-1jhejbv\"></div></div>"), Wa = {
2983
+ var qa = /* @__PURE__ */ Y("<div class=\"teacher-instructions pie-teacher-instructions svelte-1jhejbv\"><button type=\"button\" class=\"teacher-instructions-toggle pie-teacher-instructions-toggle svelte-1jhejbv\"> </button> <div class=\"teacher-instructions-content pie-teacher-instructions-content svelte-1jhejbv\"></div></div>"), Ja = {
2977
2984
  hash: "svelte-1jhejbv",
2978
2985
  code: ".teacher-instructions.svelte-1jhejbv {margin-bottom:1rem;}.teacher-instructions-toggle.svelte-1jhejbv {padding:0;border:0;border-bottom:1px dotted currentColor;background:transparent;font:inherit;color:var(--pie-primary, #3f51b5);cursor:pointer;}.teacher-instructions-toggle.svelte-1jhejbv:focus-visible {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;}.teacher-instructions-content.svelte-1jhejbv {padding-top:1rem;}"
2979
2986
  };
2980
- function Ga(e, t) {
2981
- Xe(t, !0), si(e, Wa);
2987
+ function Ya(e, t) {
2988
+ Xe(t, !0), si(e, Ja);
2982
2989
  let n = $(t, "html", 7), r = $(t, "language", 7), i = /* @__PURE__ */ z(!1), a = `venn-teacher-instructions-${Math.random().toString(36).slice(2, 10)}`;
2983
2990
  var o = {
2984
2991
  get html() {
@@ -2993,37 +3000,37 @@ function Ga(e, t) {
2993
3000
  set language(e) {
2994
3001
  r(e), R();
2995
3002
  }
2996
- }, c = Ua(), l = H(c), u = ln(l, !0), d = U(l, 2);
3003
+ }, c = qa(), l = H(c), u = ln(l, !0), d = U(l, 2);
2997
3004
  return oi(d, n, !0), N(d), N(c), W((e) => {
2998
3005
  Q(l, "aria-expanded", J(i)), Q(l, "aria-controls", a), zr(u, e), Q(d, "id", a), Q(d, "hidden", !J(i));
2999
3006
  }, [() => s(J(i) ? "hideTeacherInstructions" : "showTeacherInstructions", r())]), xr("click", l, () => B(i, !J(i))), X(e, c), Ze(o);
3000
3007
  }
3001
- Sr(["click"]), Li(Ga, {
3008
+ Sr(["click"]), Li(Ya, {
3002
3009
  html: {},
3003
3010
  language: {}
3004
3011
  }, [], [], { mode: "open" });
3005
3012
  //#endregion
3006
3013
  //#region src/delivery/layout.ts
3007
- var Ka = {
3014
+ var Xa = {
3008
3015
  w: 120,
3009
3016
  h: 52
3010
- }, qa = {
3017
+ }, Za = {
3011
3018
  w: 120,
3012
3019
  h: 84
3013
- }, Ja = .6;
3014
- function Ya(e) {
3020
+ }, Qa = .6;
3021
+ function $a(e) {
3015
3022
  return Math.min(1, 44 / Math.min(e.w, e.h));
3016
3023
  }
3017
- var Xa = {
3024
+ var eo = {
3018
3025
  side: 24,
3019
3026
  top: 40,
3020
3027
  radius: 236,
3021
3028
  centerDistance: 200,
3022
3029
  outsideGap: 12,
3023
3030
  outsideStripHeight: 136
3024
- }, Za = .05;
3025
- function Qa(e = 1, t = 0) {
3026
- let n = Xa.side * e, r = Xa.radius * e, i = Xa.centerDistance * e, a = Xa.top * e + r, o = Xa.outsideGap * e, s = Math.max(Xa.outsideStripHeight * e, t);
3031
+ }, to = .05;
3032
+ function no(e = 1, t = 0) {
3033
+ let n = eo.side * e, r = eo.radius * e, i = eo.centerDistance * e, a = eo.top * e + r, o = eo.outsideGap * e, s = Math.max(eo.outsideStripHeight * e, t);
3027
3034
  return {
3028
3035
  width: 2 * n + 2 * r + i,
3029
3036
  height: a + r + o + s,
@@ -3041,37 +3048,37 @@ function Qa(e = 1, t = 0) {
3041
3048
  }]
3042
3049
  };
3043
3050
  }
3044
- function $a() {
3045
- return Qa();
3051
+ function ro() {
3052
+ return no();
3046
3053
  }
3047
- function eo(e, t) {
3048
- return `min(100%, max(min(720px, ${Ja * 100 * e.width / e.height}vh), ${e.width * Ya(t)}px))`;
3054
+ function io(e, t) {
3055
+ return `min(100%, max(min(720px, ${Qa * 100 * e.width / e.height}vh), ${e.width * $a(t)}px))`;
3049
3056
  }
3050
- function to(e, t, n) {
3051
- return e > 0 ? Math.max(Ya(n), Math.min(1, e / t.width)) : 1;
3057
+ function ao(e, t, n) {
3058
+ return e > 0 ? Math.max($a(n), Math.min(1, e / t.width)) : 1;
3052
3059
  }
3053
- function no(e, t) {
3060
+ function oo(e, t) {
3054
3061
  return Math.max(0, Math.floor((e + 8) / (t.w + 8) + 1e-9));
3055
3062
  }
3056
- function ro(e, t) {
3063
+ function so(e, t) {
3057
3064
  return t > e.r ? -1 : Math.sqrt(e.r * e.r - t * t);
3058
3065
  }
3059
- function io(e, t, n) {
3060
- let r = ro(e, Math.max(Math.abs(t - e.cy), Math.abs(n - e.cy)));
3066
+ function co(e, t, n) {
3067
+ let r = so(e, Math.max(Math.abs(t - e.cy), Math.abs(n - e.cy)));
3061
3068
  return r < 0 ? null : [e.cx - r, e.cx + r];
3062
3069
  }
3063
- function ao(e, t, n) {
3064
- return ro(e, t <= e.cy && e.cy <= n ? 0 : Math.min(Math.abs(t - e.cy), Math.abs(n - e.cy)));
3070
+ function lo(e, t, n) {
3071
+ return so(e, t <= e.cy && e.cy <= n ? 0 : Math.min(Math.abs(t - e.cy), Math.abs(n - e.cy)));
3065
3072
  }
3066
- function oo(e, t, n, r, i) {
3067
- let a = io(t, r, i), o = io(n, r, i), s, c;
3073
+ function uo(e, t, n, r, i) {
3074
+ let a = co(t, r, i), o = co(n, r, i), s, c;
3068
3075
  if (e === "0") {
3069
3076
  if (!a) return null;
3070
- let e = ao(n, r, i);
3077
+ let e = lo(n, r, i);
3071
3078
  [s, c] = [a[0], e < 0 ? a[1] : Math.min(a[1], n.cx - e)];
3072
3079
  } else if (e === "1") {
3073
3080
  if (!o) return null;
3074
- let e = ao(t, r, i);
3081
+ let e = lo(t, r, i);
3075
3082
  [s, c] = [e < 0 ? o[0] : Math.max(o[0], t.cx + e), o[1]];
3076
3083
  } else {
3077
3084
  if (!a || !o) return null;
@@ -3079,14 +3086,14 @@ function oo(e, t, n, r, i) {
3079
3086
  }
3080
3087
  return c > s ? [s, c] : null;
3081
3088
  }
3082
- function so(e, t, n, r) {
3089
+ function fo(e, t, n, r) {
3083
3090
  let i = r.h + 8, a = t.cy, o = Math.max(t.r, n.r);
3084
3091
  return [0, .5].map((s) => {
3085
3092
  let c = [], l = Math.ceil(o / i) + 1;
3086
3093
  for (let o = -l; o <= l; o++) {
3087
- let l = a + (o + s) * i, u = oo(e, t, n, l - r.h / 2 - 6, l + r.h / 2 + 6);
3094
+ let l = a + (o + s) * i, u = uo(e, t, n, l - r.h / 2 - 6, l + r.h / 2 + 6);
3088
3095
  if (!u) continue;
3089
- let d = u[0] + 6, f = u[1] - 6, p = no(f - d, r);
3096
+ let d = u[0] + 6, f = u[1] - 6, p = oo(f - d, r);
3090
3097
  p > 0 && c.push({
3091
3098
  y: l,
3092
3099
  lo: d,
@@ -3097,11 +3104,11 @@ function so(e, t, n, r) {
3097
3104
  return c;
3098
3105
  });
3099
3106
  }
3100
- function co(e) {
3107
+ function po(e) {
3101
3108
  return e.reduce((e, t) => e + t.n, 0);
3102
3109
  }
3103
- function lo(e, t, n) {
3104
- let r = e.width - 6, i = no(r - 6, n), a = n.h + 8, o = e.height - t, s = i * Math.max(0, Math.floor((o - 12 + 8) / a + 1e-9)), c = {
3110
+ function mo(e, t, n) {
3111
+ let r = e.width - 6, i = oo(r - 6, n), a = n.h + 8, o = e.height - t, s = i * Math.max(0, Math.floor((o - 12 + 8) / a + 1e-9)), c = {
3105
3112
  x: e.width / 2,
3106
3113
  y: t + o / 2
3107
3114
  };
@@ -3110,7 +3117,7 @@ function lo(e, t, n) {
3110
3117
  slots: (e) => {
3111
3118
  if (e <= 0) return [];
3112
3119
  let l = Math.min(e, s), u = i > 0 ? Math.ceil(l / i) : 0, d = t + (o - (u * a - 8)) / 2;
3113
- return ho(mo(Array.from({ length: u }, (e, t) => ({
3120
+ return yo(vo(Array.from({ length: u }, (e, t) => ({
3114
3121
  y: d + n.h / 2 + t * a,
3115
3122
  lo: 6,
3116
3123
  hi: r,
@@ -3119,20 +3126,20 @@ function lo(e, t, n) {
3119
3126
  }
3120
3127
  };
3121
3128
  }
3122
- function uo(e) {
3129
+ function ho(e) {
3123
3130
  return {
3124
3131
  x: e.x + e.w / 2,
3125
3132
  y: e.y + e.h / 2
3126
3133
  };
3127
3134
  }
3128
- function fo(e, t, n) {
3135
+ function go(e, t, n) {
3129
3136
  let r = t * n.w + (t - 1) * 8, i = (e.lo + e.hi) / 2 - r / 2 + n.w / 2;
3130
3137
  return Array.from({ length: t }, (t, r) => ({
3131
3138
  x: i + r * (n.w + 8),
3132
3139
  y: e.y
3133
3140
  }));
3134
3141
  }
3135
- function po(e, t, n) {
3142
+ function _o(e, t, n) {
3136
3143
  let r = [...e].sort((e, n) => Math.abs(e.y - t) - Math.abs(n.y - t) || e.y - n.y), i = [], a = 0;
3137
3144
  for (let e of r) {
3138
3145
  if (a >= n) break;
@@ -3140,39 +3147,39 @@ function po(e, t, n) {
3140
3147
  }
3141
3148
  return i.sort((e, t) => e.y - t.y);
3142
3149
  }
3143
- function mo(e, t, n) {
3150
+ function vo(e, t, n) {
3144
3151
  let r = [], i = t;
3145
3152
  for (let t of e) {
3146
3153
  let e = Math.min(t.n, i);
3147
- r.push(...fo(t, e, n)), i -= e;
3154
+ r.push(...go(t, e, n)), i -= e;
3148
3155
  }
3149
3156
  return r;
3150
3157
  }
3151
- function ho(e, t, n) {
3158
+ function yo(e, t, n) {
3152
3159
  let r = e[e.length - 1] ?? n;
3153
3160
  for (; e.length < t;) e.push({ ...r });
3154
3161
  return e;
3155
3162
  }
3156
- function go(e, t, n, r) {
3157
- let i = Math.max(...e.map(co));
3163
+ function bo(e, t, n, r) {
3164
+ let i = Math.max(...e.map(po));
3158
3165
  return (a) => {
3159
3166
  if (a <= 0) return [];
3160
3167
  let o = Math.min(a, i), s = null, c = [Infinity, Infinity];
3161
3168
  for (let n of e) {
3162
- if (co(n) < o) continue;
3163
- let e = po(n, t, o), r = Math.abs(e.reduce((e, t) => e + t.y, 0) / e.length - t), i = [e.length, r];
3169
+ if (po(n) < o) continue;
3170
+ let e = _o(n, t, o), r = Math.abs(e.reduce((e, t) => e + t.y, 0) / e.length - t), i = [e.length, r];
3164
3171
  (i[0] < c[0] || i[0] === c[0] && i[1] < c[1] - 1e-9) && (s = e, c = i);
3165
3172
  }
3166
- return ho(s ? mo(s, o, n) : [], a, r);
3173
+ return yo(s ? vo(s, o, n) : [], a, r);
3167
3174
  };
3168
3175
  }
3169
- function _o(e, t, n) {
3176
+ function xo(e, t, n) {
3170
3177
  let r = t.cy, i = 0, a = Math.min(t.r, n.r);
3171
3178
  for (let o = 0; o < 40; o++) {
3172
- let o = (i + a) / 2, s = oo(e, t, n, r - o, r + o);
3179
+ let o = (i + a) / 2, s = uo(e, t, n, r - o, r + o);
3173
3180
  s && s[1] - s[0] >= 2 * o ? i = o : a = o;
3174
3181
  }
3175
- let o = oo(e, t, n, r - i, r + i) ?? [0, 0];
3182
+ let o = uo(e, t, n, r - i, r + i) ?? [0, 0];
3176
3183
  return {
3177
3184
  x: o[0] + 1,
3178
3185
  y: r - i + 1,
@@ -3180,26 +3187,26 @@ function _o(e, t, n) {
3180
3187
  h: 2 * i - 2
3181
3188
  };
3182
3189
  }
3183
- function vo(e, t, n) {
3190
+ function So(e, t, n) {
3184
3191
  let [r, i] = t.circles;
3185
- return Math.max(...so(e, r, i, n).map(co));
3192
+ return Math.max(...fo(e, r, i, n).map(po));
3186
3193
  }
3187
- var yo = [
3194
+ var Co = [
3188
3195
  "0",
3189
3196
  "0,1",
3190
3197
  "1"
3191
3198
  ];
3192
- function bo(e, t = Ka) {
3193
- let n = Qa();
3199
+ function wo(e, t = Xa) {
3200
+ let n = no();
3194
3201
  for (let r = 1;; r++) {
3195
3202
  let i = n;
3196
- if (yo.every((n) => vo(n, i, t) >= (e[n] ?? 0))) break;
3197
- n = Qa(1 + r * Za);
3203
+ if (Co.every((n) => So(n, i, t) >= (e[n] ?? 0))) break;
3204
+ n = no(1 + r * to);
3198
3205
  }
3199
- let r = e[""] ?? 0, i = no(n.width - 12, t), a = Math.ceil(r / i) * (t.h + 8) - 8 + 12;
3200
- return a > n.outsideStripHeight ? Qa(n.scale, a) : n;
3206
+ let r = e[""] ?? 0, i = oo(n.width - 12, t), a = Math.ceil(r / i) * (t.h + 8) - 8 + 12;
3207
+ return a > n.outsideStripHeight ? no(n.scale, a) : n;
3201
3208
  }
3202
- function xo(e, t = $a(), n = Ka) {
3209
+ function To(e, t = ro(), n = Xa) {
3203
3210
  if (e.circles?.length !== 2) throw Error(`buildLayout2Set requires exactly 2 circles (got ${e.circles?.length ?? 0})`);
3204
3211
  let [a, s] = t.circles, c = i(2), l = Math.max(a.cy + a.r, s.cy + s.r), u = Math.min(t.height - t.outsideStripHeight, l + t.outsideGap), d = (e, t, n) => (r, i) => {
3205
3212
  let a = r - e, o = i - t;
@@ -3215,11 +3222,11 @@ function xo(e, t = $a(), n = Ka) {
3215
3222
  y: u,
3216
3223
  w: t.width,
3217
3224
  h: t.height - u
3218
- }, {capacity: g, slots: _} = lo(t, u, n);
3225
+ }, {capacity: g, slots: _} = mo(t, u, n);
3219
3226
  else if (c === "0" || c === "1" || c === "0,1") {
3220
- d = c === "0" ? (e, t) => f(e, t) && !p(e, t) : c === "1" ? (e, t) => p(e, t) && !f(e, t) : (e, t) => f(e, t) && p(e, t), h = _o(c, a, s);
3221
- let e = so(c, a, s, n);
3222
- g = Math.max(...e.map(co)), _ = go(e, a.cy, n, uo(h));
3227
+ d = c === "0" ? (e, t) => f(e, t) && !p(e, t) : c === "1" ? (e, t) => p(e, t) && !f(e, t) : (e, t) => f(e, t) && p(e, t), h = xo(c, a, s);
3228
+ let e = fo(c, a, s, n);
3229
+ g = Math.max(...e.map(po)), _ = bo(e, a.cy, n, ho(h));
3223
3230
  } else d = () => !1, h = {
3224
3231
  x: 0,
3225
3232
  y: 0,
@@ -3241,7 +3248,7 @@ function xo(e, t = $a(), n = Ka) {
3241
3248
  outsideStripTop: u
3242
3249
  };
3243
3250
  }
3244
- function So(e, t, n) {
3251
+ function Eo(e, t, n) {
3245
3252
  for (let r of [
3246
3253
  "0,1",
3247
3254
  "0",
@@ -3255,7 +3262,7 @@ function So(e, t, n) {
3255
3262
  }
3256
3263
  //#endregion
3257
3264
  //#region src/delivery/dnd.ts
3258
- function Co({ model: t, session: r, tileId: i, placement: o }) {
3265
+ function Do({ model: t, session: r, tileId: i, placement: o }) {
3259
3266
  let s = a(r, t), c = {
3260
3267
  ...s,
3261
3268
  placements: {
@@ -3265,19 +3272,19 @@ function Co({ model: t, session: r, tileId: i, placement: o }) {
3265
3272
  };
3266
3273
  return c.completed = n(t, c), c;
3267
3274
  }
3268
- function wo(t, n) {
3275
+ function Oo(t, n) {
3269
3276
  let r = t?.placements?.[n];
3270
3277
  return Array.isArray(r) ? e(r) : null;
3271
3278
  }
3272
- function To(e, t, n) {
3273
- let r = wo(e, t);
3279
+ function ko(e, t, n) {
3280
+ let r = Oo(e, t);
3274
3281
  return r === null || n === null ? r === n : c(r, n);
3275
3282
  }
3276
- function Eo(e, t) {
3283
+ function Ao(e, t) {
3277
3284
  let n = t?.placements ?? {};
3278
3285
  return (e.tiles || []).filter((e) => n[e.id] == null);
3279
3286
  }
3280
- function Do(t, n) {
3287
+ function jo(t, n) {
3281
3288
  let r = n?.placements ?? {}, i = {};
3282
3289
  for (let n of t.tiles || []) {
3283
3290
  let t = r[n.id];
@@ -3289,12 +3296,12 @@ function Do(t, n) {
3289
3296
  }
3290
3297
  //#endregion
3291
3298
  //#region src/delivery/VennClassification.svelte
3292
- var Oo = /* @__PURE__ */ Y("<div class=\"venn-prompt svelte-gkcqor\"></div>"), ko = /* @__PURE__ */ jr("<svg class=\"toggle-icon svelte-gkcqor\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-283 359 34 35\" aria-hidden=\"true\"><circle cx=\"-266\" cy=\"375.9\" r=\"14\" fill=\"#bce2ff\"></circle><path d=\"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z\" fill=\"#bce2ff\"></path><polygon points=\"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\" fill=\"#1a9cff\"></polygon></svg>"), Ao = /* @__PURE__ */ jr("<svg class=\"toggle-icon svelte-gkcqor\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-129.5 127 34 35\" aria-hidden=\"true\"><path style=\"fill: #D0CAC5; stroke: #E6E3E0; stroke-width: 0.75; stroke-miterlimit: 10;\" d=\"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z\"></path><path style=\"fill: #B3ABA4; stroke: #CDC7C2; stroke-width: 0.5; stroke-miterlimit: 10;\" d=\"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z\"></path><circle cx=\"-114.2\" cy=\"143.5\" r=\"14\" fill=\"white\"></circle><path d=\"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z\" fill=\"#bce2ff\"></path><polygon points=\"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\" fill=\"#1a9cff\"></polygon></svg>"), jo = /* @__PURE__ */ Y("<button type=\"button\" class=\"toggle-correct svelte-gkcqor\"><!> <span class=\"toggle-label svelte-gkcqor\"> </span></button>"), Mo = /* @__PURE__ */ Y("<div class=\"venn-error svelte-gkcqor\" role=\"alert\"> </div>"), No = /* @__PURE__ */ jr("<circle fill=\"rgba(14, 165, 233, 0.12)\"></circle>"), Po = /* @__PURE__ */ jr("<rect x=\"0\" y=\"0\"></rect>"), Fo = /* @__PURE__ */ jr("<circle></circle>"), Io = /* @__PURE__ */ jr("<circle fill=\"none\" stroke=\"#1e293b\"></circle>"), Lo = /* @__PURE__ */ jr("<text font-weight=\"600\" fill=\"#0f172a\"> </text>"), Ro = /* @__PURE__ */ Y("<div class=\"region-aria svelte-gkcqor\" role=\"region\"></div>"), zo = /* @__PURE__ */ Y("<div class=\"tile-wrapper svelte-gkcqor\"><!></div>"), Bo = /* @__PURE__ */ Y("<div class=\"venn-diagram svelte-gkcqor\"><svg preserveAspectRatio=\"xMidYMid meet\" aria-hidden=\"true\" class=\"svelte-gkcqor\"><defs><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"black\"></rect><circle fill=\"white\"></circle><circle fill=\"black\"></circle></mask><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"black\"></rect><circle fill=\"white\"></circle><circle fill=\"black\"></circle></mask><clipPath clipPathUnits=\"userSpaceOnUse\"><circle></circle></clipPath><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"white\"></rect><circle fill=\"black\"></circle><circle fill=\"black\"></circle></mask></defs><rect fill=\"#ffffff\" stroke=\"#cbd5e1\"></rect><!><!><!><!><!><!><!><line stroke=\"#cbd5e1\"></line></svg> <div class=\"region-labels svelte-gkcqor\" aria-hidden=\"false\"></div> <div class=\"placed-tiles svelte-gkcqor\"></div></div> <!>", 1), Vo = /* @__PURE__ */ Y("<div class=\"drag-ghost svelte-gkcqor\"><!></div>"), Ho = /* @__PURE__ */ Y("<div class=\"venn-root svelte-gkcqor\"><!> <!> <!> <!> <!> <div class=\"sr-only svelte-gkcqor\" aria-live=\"polite\" aria-atomic=\"true\"></div></div>"), Uo = {
3299
+ var Mo = /* @__PURE__ */ Y("<div class=\"venn-prompt svelte-gkcqor\"></div>"), No = /* @__PURE__ */ jr("<svg class=\"toggle-icon svelte-gkcqor\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-283 359 34 35\" aria-hidden=\"true\"><circle cx=\"-266\" cy=\"375.9\" r=\"14\" fill=\"#bce2ff\"></circle><path d=\"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z\" fill=\"#bce2ff\"></path><polygon points=\"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\" fill=\"#1a9cff\"></polygon></svg>"), Po = /* @__PURE__ */ jr("<svg class=\"toggle-icon svelte-gkcqor\" preserveAspectRatio=\"xMinYMin meet\" version=\"1.1\" viewBox=\"-129.5 127 34 35\" aria-hidden=\"true\"><path style=\"fill: #D0CAC5; stroke: #E6E3E0; stroke-width: 0.75; stroke-miterlimit: 10;\" d=\"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z\"></path><path style=\"fill: #B3ABA4; stroke: #CDC7C2; stroke-width: 0.5; stroke-miterlimit: 10;\" d=\"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z\"></path><circle cx=\"-114.2\" cy=\"143.5\" r=\"14\" fill=\"white\"></circle><path d=\"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z\" fill=\"#bce2ff\"></path><polygon points=\"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\" fill=\"#1a9cff\"></polygon></svg>"), Fo = /* @__PURE__ */ Y("<button type=\"button\" class=\"toggle-correct svelte-gkcqor\"><!> <span class=\"toggle-label svelte-gkcqor\"> </span></button>"), Io = /* @__PURE__ */ Y("<div class=\"venn-error svelte-gkcqor\" role=\"alert\"> </div>"), Lo = /* @__PURE__ */ jr("<circle fill=\"rgba(14, 165, 233, 0.12)\"></circle>"), Ro = /* @__PURE__ */ jr("<rect x=\"0\" y=\"0\"></rect>"), zo = /* @__PURE__ */ jr("<circle></circle>"), Bo = /* @__PURE__ */ jr("<circle fill=\"none\" stroke=\"#1e293b\"></circle>"), Vo = /* @__PURE__ */ jr("<text font-weight=\"600\" fill=\"#0f172a\"> </text>"), Ho = /* @__PURE__ */ Y("<div class=\"region-aria svelte-gkcqor\" role=\"region\"></div>"), Uo = /* @__PURE__ */ Y("<div class=\"tile-wrapper svelte-gkcqor\"><!></div>"), Wo = /* @__PURE__ */ Y("<div class=\"venn-diagram svelte-gkcqor\"><svg preserveAspectRatio=\"xMidYMid meet\" aria-hidden=\"true\" class=\"svelte-gkcqor\"><defs><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"black\"></rect><circle fill=\"white\"></circle><circle fill=\"black\"></circle></mask><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"black\"></rect><circle fill=\"white\"></circle><circle fill=\"black\"></circle></mask><clipPath clipPathUnits=\"userSpaceOnUse\"><circle></circle></clipPath><mask maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\"><rect x=\"0\" y=\"0\" fill=\"white\"></rect><circle fill=\"black\"></circle><circle fill=\"black\"></circle></mask></defs><rect fill=\"#ffffff\" stroke=\"#cbd5e1\"></rect><!><!><!><!><!><!><!><line stroke=\"#cbd5e1\"></line></svg> <div class=\"region-labels svelte-gkcqor\" aria-hidden=\"false\"></div> <div class=\"placed-tiles svelte-gkcqor\"></div></div> <!>", 1), Go = /* @__PURE__ */ Y("<div class=\"drag-ghost svelte-gkcqor\"><!></div>"), Ko = /* @__PURE__ */ Y("<div class=\"venn-root svelte-gkcqor\"><!> <!> <!> <!> <!> <div class=\"sr-only svelte-gkcqor\" aria-live=\"polite\" aria-atomic=\"true\"></div></div>"), qo = {
3293
3300
  hash: "svelte-gkcqor",
3294
3301
  code: ".venn-root.svelte-gkcqor {display:flex;flex-direction:column;gap:16px;padding:16px;color:#0f172a;font-family:system-ui, -apple-system, Segoe UI, Roboto, sans-serif;--vc-focus-ring: var(\n --pie-focus-outline,\n var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565c0))\n );}.venn-prompt.svelte-gkcqor {font-size:16px;line-height:1.5;}.venn-prompt.svelte-gkcqor p {margin:0 0 8px 0;}.toggle-correct.svelte-gkcqor {align-self:center;display:inline-flex;align-items:center;gap:8px;margin:0 0 4px 0;padding:0;background:transparent;border:0;color:inherit;font:inherit;font-size:14px;cursor:pointer;user-select:none;}.toggle-correct.svelte-gkcqor:focus-visible {outline:2px solid var(--vc-focus-ring, #1565c0);outline-offset:2px;border-radius:2px;}.toggle-icon.svelte-gkcqor {width:25px;height:25px;flex-shrink:0;}.toggle-label.svelte-gkcqor {line-height:1.2;}.toggle-correct.svelte-gkcqor:hover .toggle-label:where(.svelte-gkcqor),\n .toggle-correct.svelte-gkcqor:focus-visible .toggle-label:where(.svelte-gkcqor) {text-decoration:underline;}.venn-diagram.svelte-gkcqor {\n /*\n * Width and aspect ratio come from the geometry, inline. The width cap\n * keeps the diagram from dominating wide layouts, and the viewport-height\n * share keeps the prompt, toggle and tray in view in short windows, down\n * to the width that keeps tiles at 44 px (`diagramCssWidth`).\n */position:relative;margin:0 auto;}.venn-diagram.svelte-gkcqor svg:where(.svelte-gkcqor) {width:100%;height:100%;display:block;}.placed-tiles.svelte-gkcqor,\n .region-labels.svelte-gkcqor {position:absolute;inset:0;pointer-events:none;}.tile-wrapper.svelte-gkcqor {position:absolute;display:flex;pointer-events:auto;}.region-aria.svelte-gkcqor {position:absolute;width:1px;height:1px;transform:translate(-50%, -50%);opacity:0;pointer-events:none;}.venn-error.svelte-gkcqor {padding:12px 16px;border:1.5px solid #bf0d00;border-radius:8px;background:#fef2f2;color:#7f1d1d;font-size:14px;}\n /* Tailwind's `sr-only`, scoped: PIE players ship no Tailwind. */.sr-only.svelte-gkcqor {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}.drag-ghost.svelte-gkcqor {position:fixed;top:0;left:0;transform:translate(-50%, -50%);pointer-events:none;z-index:1000;}"
3295
3302
  };
3296
- function Wo(e, n) {
3297
- Xe(n, !0), si(e, Uo);
3303
+ function Jo(e, n) {
3304
+ Xe(n, !0), si(e, qo);
3298
3305
  let r = [{ label: "Set A" }, { label: "Set B" }], i = `venn-${Math.random().toString(36).slice(2, 10)}`, a = `${i}-mask-left-only`, c = `${i}-mask-right-only`, l = `${i}-mask-outside`, u = `${i}-clip-left`, d = null, f = /* @__PURE__ */ z(null), p = null, m = /* @__PURE__ */ z(!1), h = /* @__PURE__ */ z(null), g = /* @__PURE__ */ z(null), _ = /* @__PURE__ */ z(null), v = /* @__PURE__ */ z(null), y = /* @__PURE__ */ z(0), b = null, x = null, S = /* @__PURE__ */ I(() => n?.model?.circles ?? r), ee = /* @__PURE__ */ I(() => J(S).length === 2), C = /* @__PURE__ */ I(() => n?.model?.language), w = /* @__PURE__ */ I(() => ({
3299
3306
  circles: J(S),
3300
3307
  tiles: n?.model?.tiles ?? [],
@@ -3302,7 +3309,7 @@ function Wo(e, n) {
3302
3309
  language: J(C),
3303
3310
  scoringPolicy: "partialPerTile",
3304
3311
  promptEnabled: !0
3305
- })), te = /* @__PURE__ */ I(() => n?.model?.env?.mode === "evaluate"), ne = /* @__PURE__ */ I(() => n?.model?.disabled === !0), re = /* @__PURE__ */ I(() => n?.model?.prompt ?? null), T = /* @__PURE__ */ I(() => de(n?.session, n?.model, J(m))), E = /* @__PURE__ */ I(() => ({ placements: J(T) })), ae = /* @__PURE__ */ I(() => Do(J(w), J(E))), oe = /* @__PURE__ */ I(() => Eo(J(w), J(E))), se = /* @__PURE__ */ I(() => (J(w).tiles ?? []).some((e) => (e.imageUrl ?? "").trim()) ? qa : Ka), D = /* @__PURE__ */ I(() => bo(Object.fromEntries(Object.entries(J(ae)).map(([e, t]) => [e, t.length])), J(se))), ce = /* @__PURE__ */ I(() => J(ee) ? xo(J(w), J(D), J(se)) : null), le = /* @__PURE__ */ I(() => to(J(y), J(D), J(se))), O = /* @__PURE__ */ I(() => [
3312
+ })), te = /* @__PURE__ */ I(() => n?.model?.env?.mode === "evaluate"), ne = /* @__PURE__ */ I(() => n?.model?.disabled === !0), re = /* @__PURE__ */ I(() => n?.model?.prompt ?? null), T = /* @__PURE__ */ I(() => de(n?.session, n?.model, J(m))), E = /* @__PURE__ */ I(() => ({ placements: J(T) })), ae = /* @__PURE__ */ I(() => jo(J(w), J(E))), oe = /* @__PURE__ */ I(() => Ao(J(w), J(E))), se = /* @__PURE__ */ I(() => (J(w).tiles ?? []).some((e) => (e.imageUrl ?? "").trim()) ? Za : Xa), D = /* @__PURE__ */ I(() => wo(Object.fromEntries(Object.entries(J(ae)).map(([e, t]) => [e, t.length])), J(se))), ce = /* @__PURE__ */ I(() => J(ee) ? To(J(w), J(D), J(se)) : null), le = /* @__PURE__ */ I(() => ao(J(y), J(D), J(se))), O = /* @__PURE__ */ I(() => [
3306
3313
  "0",
3307
3314
  "0,1",
3308
3315
  "1",
@@ -3346,7 +3353,7 @@ function Wo(e, n) {
3346
3353
  };
3347
3354
  }
3348
3355
  function me(e, t) {
3349
- let r = Co({
3356
+ let r = Do({
3350
3357
  model: J(w),
3351
3358
  session: n?.session,
3352
3359
  tileId: e,
@@ -3370,8 +3377,8 @@ function Wo(e, n) {
3370
3377
  b?.(), J(h) !== null && ve();
3371
3378
  }
3372
3379
  function be(e, r) {
3373
- let i = ja(e, J(C)), a = r === "tray" ? null : r === null ? void 0 : ge(r)?.region;
3374
- if (a === void 0 || To(n?.session, e.id, a)) {
3380
+ let i = Fa(e, J(C)), a = r === "tray" ? null : r === null ? void 0 : ge(r)?.region;
3381
+ if (a === void 0 || ko(n?.session, e.id, a)) {
3375
3382
  k(t("cancelled", J(C)));
3376
3383
  return;
3377
3384
  }
@@ -3385,7 +3392,7 @@ function Wo(e, n) {
3385
3392
  n.preventDefault(), b?.(), n.currentTarget.setPointerCapture?.(n.pointerId), B(h, e.id, !0), B(_, null), B(v, {
3386
3393
  x: n.clientX,
3387
3394
  y: n.clientY
3388
- }, !0), B(g, Se(n.clientX, n.clientY), !0), k(t("pickedUp", J(C), { name: ja(e, J(C)) }));
3395
+ }, !0), B(g, Se(n.clientX, n.clientY), !0), k(t("pickedUp", J(C), { name: Fa(e, J(C)) }));
3389
3396
  let r = (e) => {
3390
3397
  B(v, {
3391
3398
  x: e.clientX,
@@ -3406,7 +3413,7 @@ function Wo(e, n) {
3406
3413
  if (Ce(e, t)) return "tray";
3407
3414
  let n = pe(e, t);
3408
3415
  if (!n || !J(ce)) return null;
3409
- let r = So(J(ce), n.x, n.y);
3416
+ let r = Eo(J(ce), n.x, n.y);
3410
3417
  return r ? r.key : null;
3411
3418
  }
3412
3419
  function Ce(e, t) {
@@ -3428,9 +3435,9 @@ function Wo(e, n) {
3428
3435
  let t = J(_);
3429
3436
  ve(), be(e, t), we(e.id);
3430
3437
  } else {
3431
- let n = wo(J(E), e.id), r = n === null ? J(O)[0] ?? null : o(n);
3438
+ let n = Oo(J(E), e.id), r = n === null ? J(O)[0] ?? null : o(n);
3432
3439
  B(h, e.id, !0), B(_, r, !0), k(t("pickedUpWithKeyboard", J(C), {
3433
- name: ja(e, J(C)),
3440
+ name: Fa(e, J(C)),
3434
3441
  target: _e(r ?? "")
3435
3442
  }));
3436
3443
  }
@@ -3482,7 +3489,7 @@ function Wo(e, n) {
3482
3489
  if (!d) return;
3483
3490
  let e = (e) => console.warn("venn-classification: MathJax render failed", e);
3484
3491
  try {
3485
- Promise.resolve(ka(d)).catch(e);
3492
+ Promise.resolve(Na(d)).catch(e);
3486
3493
  } catch (t) {
3487
3494
  e(t);
3488
3495
  }
@@ -3493,8 +3500,8 @@ function Wo(e, n) {
3493
3500
  J(T), J(w).tiles?.length, fr().then(M);
3494
3501
  });
3495
3502
  let ke = /* @__PURE__ */ I(() => J(te) ? Object.values(n?.model?.correctness ?? {}).filter((e) => e === "incorrect" || e === "unanswered").length : 0), Ae = /* @__PURE__ */ I(() => J(h) === null ? J(g) ?? null : J(g) ?? J(_) ?? null), je = /* @__PURE__ */ I(() => J(Ae) === "0"), Me = /* @__PURE__ */ I(() => J(Ae) === "1"), Ne = /* @__PURE__ */ I(() => J(Ae) === "0,1"), Pe = /* @__PURE__ */ I(() => J(Ae) === ""), Fe = "rgba(37, 99, 235, 0.18)", Ie = /* @__PURE__ */ I(() => J(h) !== null && J(v) !== null ? he(J(h)) : null);
3496
- var Le = Ho(), Re = H(Le), ze = (e) => {
3497
- Ga(e, {
3503
+ var Le = Ko(), Re = H(Le), ze = (e) => {
3504
+ Ya(e, {
3498
3505
  get html() {
3499
3506
  return n.model.teacherInstructions;
3500
3507
  },
@@ -3507,17 +3514,17 @@ function Wo(e, n) {
3507
3514
  n?.model?.teacherInstructions && e(ze);
3508
3515
  });
3509
3516
  var Be = U(Re, 2), Ve = (e) => {
3510
- var t = Oo();
3517
+ var t = Mo();
3511
3518
  oi(t, () => J(re), !0), N(t), X(e, t);
3512
3519
  };
3513
3520
  Z(Be, (e) => {
3514
3521
  J(re) && e(Ve);
3515
3522
  });
3516
3523
  var He = U(Be, 2), Ue = (e) => {
3517
- var t = jo(), n = H(t), r = (e) => {
3518
- X(e, ko());
3524
+ var t = Fo(), n = H(t), r = (e) => {
3525
+ X(e, No());
3519
3526
  }, i = (e) => {
3520
- X(e, Ao());
3527
+ X(e, Po());
3521
3528
  };
3522
3529
  Z(n, (e) => {
3523
3530
  J(m) ? e(r) : e(i, -1);
@@ -3531,13 +3538,13 @@ function Wo(e, n) {
3531
3538
  J(te) && J(ke) > 0 && e(Ue);
3532
3539
  });
3533
3540
  var We = U(He, 2), Ge = (e) => {
3534
- var n = Mo(), r = ln(n, !0);
3541
+ var n = Io(), r = ln(n, !0);
3535
3542
  W((e) => zr(r, e), [() => t("unsupportedCircles", J(C), {
3536
3543
  count: J(S).length,
3537
3544
  supported: 2
3538
3545
  })]), X(e, n);
3539
3546
  }, Ke = (e) => {
3540
- var n = Bo(), r = cn(n);
3547
+ var n = Wo(), r = cn(n);
3541
3548
  let i;
3542
3549
  var o = H(r), s = H(o), d = H(s), p = H(d), m = U(p), b = U(m);
3543
3550
  N(d);
@@ -3547,13 +3554,13 @@ function Wo(e, n) {
3547
3554
  N(E), N(s);
3548
3555
  var k = U(s), pe = U(k);
3549
3556
  ei(pe, 17, () => J(D).circles, Xr, (e, t) => {
3550
- var n = No();
3557
+ var n = Lo();
3551
3558
  W(() => {
3552
3559
  Q(n, "cx", J(t).cx), Q(n, "cy", J(t).cy), Q(n, "r", J(t).r);
3553
3560
  }), X(e, n);
3554
3561
  });
3555
3562
  var me = U(pe), he = (e) => {
3556
- var t = Po();
3563
+ var t = Ro();
3557
3564
  Q(t, "fill", Fe), W(() => {
3558
3565
  Q(t, "width", J(D).width), Q(t, "height", J(D).height), Q(t, "mask", `url(#${a})`);
3559
3566
  }), X(e, t);
@@ -3562,7 +3569,7 @@ function Wo(e, n) {
3562
3569
  J(je) && e(he);
3563
3570
  });
3564
3571
  var ge = U(me), _e = (e) => {
3565
- var t = Po();
3572
+ var t = Ro();
3566
3573
  Q(t, "fill", Fe), W(() => {
3567
3574
  Q(t, "width", J(D).width), Q(t, "height", J(D).height), Q(t, "mask", `url(#${c})`);
3568
3575
  }), X(e, t);
@@ -3571,7 +3578,7 @@ function Wo(e, n) {
3571
3578
  J(Me) && e(_e);
3572
3579
  });
3573
3580
  var ve = U(ge), ye = (e) => {
3574
- var t = Fo();
3581
+ var t = zo();
3575
3582
  Q(t, "fill", Fe), W(() => {
3576
3583
  Q(t, "cx", J(D).circles[1].cx), Q(t, "cy", J(D).circles[1].cy), Q(t, "r", J(D).circles[1].r), Q(t, "clip-path", `url(#${u})`);
3577
3584
  }), X(e, t);
@@ -3580,7 +3587,7 @@ function Wo(e, n) {
3580
3587
  J(Ne) && e(ye);
3581
3588
  });
3582
3589
  var be = U(ve), Se = (e) => {
3583
- var t = Po();
3590
+ var t = Ro();
3584
3591
  Q(t, "fill", Fe), W(() => {
3585
3592
  Q(t, "width", J(D).width), Q(t, "height", J(D).height), Q(t, "mask", `url(#${l})`);
3586
3593
  }), X(e, t);
@@ -3590,14 +3597,14 @@ function Wo(e, n) {
3590
3597
  });
3591
3598
  var Ce = U(be);
3592
3599
  ei(Ce, 17, () => J(D).circles, Xr, (e, t) => {
3593
- var n = Io();
3600
+ var n = Bo();
3594
3601
  W(() => {
3595
3602
  Q(n, "cx", J(t).cx), Q(n, "cy", J(t).cy), Q(n, "r", J(t).r), Q(n, "stroke-width", 2 * J(D).scale);
3596
3603
  }), X(e, n);
3597
3604
  });
3598
3605
  var we = U(Ce);
3599
3606
  ei(we, 17, () => J(D).circles, Xr, (e, t, n) => {
3600
- var r = Lo();
3607
+ var r = Vo();
3601
3608
  Q(r, "text-anchor", n === 0 ? "start" : "end");
3602
3609
  var i = ln(r, !0);
3603
3610
  W((e, t) => {
@@ -3609,7 +3616,7 @@ function Wo(e, n) {
3609
3616
  var Oe = U(o, 2);
3610
3617
  ei(Oe, 21, () => J(ce).regions, Xr, (e, t) => {
3611
3618
  let n = /* @__PURE__ */ I(() => fe(J(t).hitRect.x + J(t).hitRect.w / 2, J(t).hitRect.y + J(t).hitRect.h / 2));
3612
- var r = Ro();
3619
+ var r = Ho();
3613
3620
  W(() => {
3614
3621
  Q(r, "aria-label", J(t).label), Q(r, "data-region-key", J(t).key), hi(r, `left: ${J(n).left ?? ""}%; top: ${J(n).top ?? ""}%;`);
3615
3622
  }), X(e, r);
@@ -3623,10 +3630,10 @@ function Wo(e, n) {
3623
3630
  var n = Mr();
3624
3631
  ei(cn(n), 19, i, (e) => e.id, (e, n, r) => {
3625
3632
  let i = /* @__PURE__ */ I(() => fe(J(t)[J(r)].x, J(t)[J(r)].y));
3626
- var o = zo(), s = H(o);
3633
+ var o = Uo(), s = H(o);
3627
3634
  {
3628
- let e = /* @__PURE__ */ I(() => Ma(J(n), J(a).label, j(J(n).id), J(C))), t = /* @__PURE__ */ I(() => j(J(n).id) ?? "neutral"), r = /* @__PURE__ */ I(() => J(h) === J(n).id), i = /* @__PURE__ */ I(() => J(h) === J(n).id && J(v) !== null);
3629
- za(s, {
3635
+ let e = /* @__PURE__ */ I(() => Ia(J(n), J(a).label, j(J(n).id), J(C))), t = /* @__PURE__ */ I(() => j(J(n).id) ?? "neutral"), r = /* @__PURE__ */ I(() => J(h) === J(n).id), i = /* @__PURE__ */ I(() => J(h) === J(n).id && J(v) !== null);
3636
+ Ua(s, {
3630
3637
  fit: !0,
3631
3638
  get id() {
3632
3639
  return J(n).id;
@@ -3671,7 +3678,7 @@ function Wo(e, n) {
3671
3678
  var ke = U(r, 2);
3672
3679
  {
3673
3680
  let e = /* @__PURE__ */ I(() => J(g) === "tray" || J(h) !== null && J(_) === "tray"), n = /* @__PURE__ */ I(() => t("tray", J(C)));
3674
- Ha(ke, {
3681
+ Ka(ke, {
3675
3682
  get isDropTarget() {
3676
3683
  return J(e);
3677
3684
  },
@@ -3682,8 +3689,8 @@ function Wo(e, n) {
3682
3689
  var n = Mr();
3683
3690
  ei(cn(n), 17, () => J(oe), (e) => e.id, (e, t) => {
3684
3691
  {
3685
- let n = /* @__PURE__ */ I(() => Ma(J(t), null, j(J(t).id), J(C))), r = /* @__PURE__ */ I(() => j(J(t).id) ?? "neutral"), i = /* @__PURE__ */ I(() => J(h) === J(t).id), a = /* @__PURE__ */ I(() => J(h) === J(t).id && J(v) !== null);
3686
- za(e, {
3692
+ let n = /* @__PURE__ */ I(() => Ia(J(t), null, j(J(t).id), J(C))), r = /* @__PURE__ */ I(() => j(J(t).id) ?? "neutral"), i = /* @__PURE__ */ I(() => J(h) === J(t).id), a = /* @__PURE__ */ I(() => J(h) === J(t).id && J(v) !== null);
3693
+ Ua(e, {
3687
3694
  get id() {
3688
3695
  return J(t).id;
3689
3696
  },
@@ -3727,14 +3734,14 @@ function Wo(e, n) {
3727
3734
  width: e,
3728
3735
  "aspect-ratio": `${J(D).width ?? ""} / ${J(D).height ?? ""}`
3729
3736
  }), Q(o, "viewBox", `0 0 ${J(D).width ?? ""} ${J(D).height ?? ""}`), Q(d, "id", a), Q(d, "width", J(D).width), Q(d, "height", J(D).height), Q(p, "width", J(D).width), Q(p, "height", J(D).height), Q(m, "cx", J(D).circles[0].cx), Q(m, "cy", J(D).circles[0].cy), Q(m, "r", J(D).circles[0].r), Q(b, "cx", J(D).circles[1].cx), Q(b, "cy", J(D).circles[1].cy), Q(b, "r", J(D).circles[1].r), Q(x, "id", c), Q(x, "width", J(D).width), Q(x, "height", J(D).height), Q(S, "width", J(D).width), Q(S, "height", J(D).height), Q(ee, "cx", J(D).circles[1].cx), Q(ee, "cy", J(D).circles[1].cy), Q(ee, "r", J(D).circles[1].r), Q(te, "cx", J(D).circles[0].cx), Q(te, "cy", J(D).circles[0].cy), Q(te, "r", J(D).circles[0].r), Q(re, "id", u), Q(T, "cx", J(D).circles[0].cx), Q(T, "cy", J(D).circles[0].cy), Q(T, "r", J(D).circles[0].r), Q(E, "id", l), Q(E, "width", J(D).width), Q(E, "height", J(D).height), Q(O, "width", J(D).width), Q(O, "height", J(D).height), Q(ue, "cx", J(D).circles[0].cx), Q(ue, "cy", J(D).circles[0].cy), Q(ue, "r", J(D).circles[0].r), Q(de, "cx", J(D).circles[1].cx), Q(de, "cy", J(D).circles[1].cy), Q(de, "r", J(D).circles[1].r), Q(k, "x", J(D).scale), Q(k, "y", J(D).scale), Q(k, "width", J(D).width - 2 * J(D).scale), Q(k, "height", J(D).height - 2 * J(D).scale), Q(k, "stroke-width", 1.5 * J(D).scale), Q(k, "rx", 12 * J(D).scale), Q(Te, "x1", 16 * J(D).scale), Q(Te, "x2", J(D).width - 16 * J(D).scale), Q(Te, "y1", J(ce).outsideStripTop), Q(Te, "y2", J(ce).outsideStripTop), Q(Te, "stroke-width", J(D).scale), Q(Te, "stroke-dasharray", `${4 * J(D).scale} ${6 * J(D).scale}`);
3730
- }, [() => eo(J(D), J(se))]), Di(r, "clientWidth", (e) => B(y, e)), X(e, n);
3737
+ }, [() => io(J(D), J(se))]), Di(r, "clientWidth", (e) => B(y, e)), X(e, n);
3731
3738
  };
3732
3739
  Z(We, (e) => {
3733
3740
  J(ce) ? e(Ke, -1) : e(Ge);
3734
3741
  });
3735
3742
  var qe = U(We, 2), Je = (e) => {
3736
- var t = Vo();
3737
- za(H(t), {
3743
+ var t = Go();
3744
+ Ua(H(t), {
3738
3745
  get id() {
3739
3746
  return J(Ie).id;
3740
3747
  },
@@ -3758,12 +3765,12 @@ function Wo(e, n) {
3758
3765
  J(Ie) && J(v) && e(Je);
3759
3766
  }), ki(U(qe, 2), (e) => p = e, () => p), N(Le), ki(Le, (e) => d = e, () => d), xr("focusout", Le, Oe), X(e, Le), Ze();
3760
3767
  }
3761
- Sr(["focusout", "click"]), Li(Wo, {
3768
+ Sr(["focusout", "click"]), Li(Jo, {
3762
3769
  model: { type: "Object" },
3763
3770
  session: { type: "Object" },
3764
3771
  onSessionChange: {}
3765
3772
  }, [], []);
3766
3773
  //#endregion
3767
- export { H as A, Xe as B, Mr as C, J as D, xr as E, B as F, N as H, z as I, R as L, ln as M, U as N, W as O, $t as P, I as R, X as S, Sr as T, ie as U, Ae as V, Z as _, ki as a, qr as b, Q as c, hi as d, pi as f, Xr as g, ei as h, $ as i, cn as j, xn as k, Si as l, oi as m, Aa as n, Di as o, si as p, Li as r, bi as s, Wo as t, xi as u, Yr as v, Y as w, zr as x, Jr as y, Ze as z };
3774
+ export { H as A, Xe as B, Mr as C, J as D, xr as E, B as F, N as H, z as I, R as L, ln as M, U as N, W as O, $t as P, I as R, X as S, Sr as T, ie as U, Ae as V, Z as _, ki as a, qr as b, Q as c, hi as d, pi as f, Xr as g, ei as h, $ as i, cn as j, xn as k, Si as l, oi as m, Pa as n, Di as o, si as p, Li as r, bi as s, Jo as t, xi as u, Yr as v, Y as w, zr as x, Jr as y, Ze as z };
3768
3775
 
3769
- //# sourceMappingURL=VennClassification-F4mRKoc5.js.map
3776
+ //# sourceMappingURL=VennClassification-Dh-jgyW3.js.map