@pie-element/simple-cloze 0.1.4-next.18 → 0.1.4-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.
package/module/print.js CHANGED
@@ -2251,32 +2251,57 @@ function xi(e = {}) {
2251
2251
  await a?.startup?.promise, typeof a?.typesetPromise == "function" && (await a.typesetPromise([n]), oi(n));
2252
2252
  };
2253
2253
  }
2254
- var Si = "@pie-lib/math-rendering", Ci = "@pie-lib/math-rendering@2", wi = null;
2255
- function Ti() {
2254
+ var Si = "@pie-lib/math-rendering", Ci = "@pie-lib/math-rendering@2", wi = "pie-print", Ti = 50, Ei = 1e4, Di = null;
2255
+ function Oi() {
2256
2256
  return !!window[Ci]?.opts?.useSingleDollar;
2257
2257
  }
2258
- function Ei() {
2259
- return wi ||= xi({ useSingleDollar: Ti() }), wi;
2258
+ function ki() {
2259
+ return Di ||= xi({ useSingleDollar: Oi() }), Di;
2260
2260
  }
2261
- function Di() {
2261
+ function Ai() {
2262
2262
  if (typeof window > "u") return null;
2263
2263
  let e = window[Si];
2264
2264
  return typeof e?.renderMath == "function" ? e : null;
2265
2265
  }
2266
- var Oi = async (e) => {
2266
+ function ji(e) {
2267
+ let t = e;
2268
+ for (; t;) {
2269
+ if (t instanceof Element && t.localName === wi) return t;
2270
+ t = t instanceof ShadowRoot ? t.host : t.parentNode;
2271
+ }
2272
+ return null;
2273
+ }
2274
+ function Mi() {
2275
+ let e = window.renderMath;
2276
+ return typeof e == "function" ? e : null;
2277
+ }
2278
+ async function Ni(e) {
2279
+ let t = ji(e);
2280
+ if (!t) return null;
2281
+ let n = Mi();
2282
+ if (n || t.mathRenderingModuleUrlImported !== !0) return n;
2283
+ let r = Date.now() + Ei;
2284
+ for (; Date.now() < r;) {
2285
+ await new Promise((e) => setTimeout(e, Ti));
2286
+ let e = Mi();
2287
+ if (e) return e;
2288
+ }
2289
+ return null;
2290
+ }
2291
+ var Pi = async (e) => {
2267
2292
  if (typeof window > "u") return;
2268
2293
  let t = typeof e == "string", n;
2269
2294
  t ? (n = document.createElement("div"), n.innerHTML = e) : n = e || document.body;
2270
- let r = Di();
2271
- return r ? await r.renderMath?.(n) : await Ei()(n), t ? n.innerHTML : void 0;
2272
- }, ki = [
2295
+ let r = Ai(), i = r || t ? null : await Ni(n);
2296
+ return r ? await r.renderMath?.(n) : i ? await i(n) : await ki()(n), t ? n.innerHTML : void 0;
2297
+ }, Fi = [
2273
2298
  "nbsp iexcl cent pound curren yen brvbar sect uml copy ordf laquo not shy reg macr",
2274
2299
  "deg plusmn sup2 sup3 acute micro para middot cedil sup1 ordm raquo frac14 frac12 frac34 iquest",
2275
2300
  "Agrave Aacute Acirc Atilde Auml Aring AElig Ccedil Egrave Eacute Ecirc Euml Igrave Iacute Icirc Iuml",
2276
2301
  "ETH Ntilde Ograve Oacute Ocirc Otilde Ouml times Oslash Ugrave Uacute Ucirc Uuml Yacute THORN szlig",
2277
2302
  "agrave aacute acirc atilde auml aring aelig ccedil egrave eacute ecirc euml igrave iacute icirc iuml",
2278
2303
  "eth ntilde ograve oacute ocirc otilde ouml divide oslash ugrave uacute ucirc uuml yacute thorn yuml"
2279
- ].join(" "), Ai = "alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu nu xi omicron pi rho sigmaf sigma tau upsilon phi chi psi omega", ji = new Map(Object.entries({
2304
+ ].join(" "), Ii = "alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu nu xi omicron pi rho sigmaf sigma tau upsilon phi chi psi omega", Li = new Map(Object.entries({
2280
2305
  quot: 34,
2281
2306
  amp: 38,
2282
2307
  apos: 39,
@@ -2307,16 +2332,16 @@ var Oi = async (e) => {
2307
2332
  le: 8804,
2308
2333
  ge: 8805
2309
2334
  }));
2310
- for (let [e, t] of ki.split(" ").entries()) ji.set(t, 160 + e);
2311
- for (let [e, t] of Ai.split(" ").entries()) ji.set(t, 945 + e), t !== "sigmaf" && ji.set(t[0].toUpperCase() + t.slice(1), 913 + e);
2312
- var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<\/?[a-z][^>]*>|<!--[\s\S]*?-->/gi, Pi = /&(#[0-9]+|#x[0-9a-f]+|[a-z][a-z0-9]*);/gi, Fi = (e, t) => {
2335
+ for (let [e, t] of Fi.split(" ").entries()) Li.set(t, 160 + e);
2336
+ for (let [e, t] of Ii.split(" ").entries()) Li.set(t, 945 + e), t !== "sigmaf" && Li.set(t[0].toUpperCase() + t.slice(1), 913 + e);
2337
+ var Ri = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, zi = /<\/?[a-z][^>]*>|<!--[\s\S]*?-->/gi, Bi = /&(#[0-9]+|#x[0-9a-f]+|[a-z][a-z0-9]*);/gi, Vi = (e, t) => {
2313
2338
  if (t[0] === "#") {
2314
2339
  let e = t[1] === "x" || t[1] === "X", n = Number.parseInt(t.slice(e ? 2 : 1), e ? 16 : 10), r = n > 0 && n <= 1114111 && (n < 55296 || n > 57343);
2315
2340
  return String.fromCodePoint(r ? n : 65533);
2316
2341
  }
2317
- let n = ji.get(t);
2342
+ let n = Li.get(t);
2318
2343
  return n === void 0 ? e : String.fromCodePoint(n);
2319
- }, Ii = (e) => typeof e == "string" ? e.replace(Mi, " ").replace(Ni, "").replace(Pi, Fi).replace(/\s+/g, " ").trim() : "", Li = {
2344
+ }, Hi = (e) => typeof e == "string" ? e.replace(Ri, " ").replace(zi, "").replace(Bi, Vi).replace(/\s+/g, " ").trim() : "", Ui = {
2320
2345
  translation: {
2321
2346
  categorize: {
2322
2347
  limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
@@ -2456,7 +2481,7 @@ var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<
2456
2481
  hideNote: "Hide Note",
2457
2482
  cancel: "Cancel"
2458
2483
  }
2459
- }, Ri = {
2484
+ }, Wi = {
2460
2485
  translation: {
2461
2486
  categorize: {
2462
2487
  limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
@@ -2596,55 +2621,55 @@ var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<
2596
2621
  hideNote: "Ocultar Nota",
2597
2622
  cancel: "Cancelar"
2598
2623
  }
2599
- }, Z = (e) => typeof e == "string", zi = () => {
2624
+ }, Z = (e) => typeof e == "string", Gi = () => {
2600
2625
  let e, t, n = new Promise((n, r) => {
2601
2626
  e = n, t = r;
2602
2627
  });
2603
2628
  return n.resolve = e, n.reject = t, n;
2604
- }, Bi = (e) => e == null ? "" : "" + e, Vi = (e, t, n) => {
2629
+ }, Ki = (e) => e == null ? "" : "" + e, qi = (e, t, n) => {
2605
2630
  e.forEach((e) => {
2606
2631
  t[e] && (n[e] = t[e]);
2607
2632
  });
2608
- }, Hi = /###/g, Ui = (e) => e && e.indexOf("###") > -1 ? e.replace(Hi, ".") : e, Wi = (e) => !e || Z(e), Gi = (e, t, n) => {
2633
+ }, Ji = /###/g, Yi = (e) => e && e.indexOf("###") > -1 ? e.replace(Ji, ".") : e, Xi = (e) => !e || Z(e), Zi = (e, t, n) => {
2609
2634
  let r = Z(t) ? t.split(".") : t, i = 0;
2610
2635
  for (; i < r.length - 1;) {
2611
- if (Wi(e)) return {};
2612
- let t = Ui(r[i]);
2636
+ if (Xi(e)) return {};
2637
+ let t = Yi(r[i]);
2613
2638
  !e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
2614
2639
  }
2615
- return Wi(e) ? {} : {
2640
+ return Xi(e) ? {} : {
2616
2641
  obj: e,
2617
- k: Ui(r[i])
2642
+ k: Yi(r[i])
2618
2643
  };
2619
- }, Ki = (e, t, n) => {
2620
- let { obj: r, k: i } = Gi(e, t, Object);
2644
+ }, Qi = (e, t, n) => {
2645
+ let { obj: r, k: i } = Zi(e, t, Object);
2621
2646
  if (r !== void 0 || t.length === 1) {
2622
2647
  r[i] = n;
2623
2648
  return;
2624
2649
  }
2625
- let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = Gi(e, o, Object);
2626
- for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = Gi(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
2650
+ let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = Zi(e, o, Object);
2651
+ for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = Zi(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
2627
2652
  s.obj[`${s.k}.${a}`] = n;
2628
- }, qi = (e, t, n, r) => {
2629
- let { obj: i, k: a } = Gi(e, t, Object);
2653
+ }, $i = (e, t, n, r) => {
2654
+ let { obj: i, k: a } = Zi(e, t, Object);
2630
2655
  i[a] = i[a] || [], i[a].push(n);
2631
- }, Ji = (e, t) => {
2632
- let { obj: n, k: r } = Gi(e, t);
2656
+ }, ea = (e, t) => {
2657
+ let { obj: n, k: r } = Zi(e, t);
2633
2658
  if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
2634
- }, Yi = (e, t, n) => {
2635
- let r = Ji(e, n);
2636
- return r === void 0 ? Ji(t, n) : r;
2637
- }, Xi = (e, t, n) => {
2638
- for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? Z(e[r]) || e[r] instanceof String || Z(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : Xi(e[r], t[r], n) : e[r] = t[r]);
2659
+ }, ta = (e, t, n) => {
2660
+ let r = ea(e, n);
2661
+ return r === void 0 ? ea(t, n) : r;
2662
+ }, na = (e, t, n) => {
2663
+ for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? Z(e[r]) || e[r] instanceof String || Z(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : na(e[r], t[r], n) : e[r] = t[r]);
2639
2664
  return e;
2640
- }, Zi = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Qi = {
2665
+ }, ra = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), ia = {
2641
2666
  "&": "&amp;",
2642
2667
  "<": "&lt;",
2643
2668
  ">": "&gt;",
2644
2669
  "\"": "&quot;",
2645
2670
  "'": "&#39;",
2646
2671
  "/": "&#x2F;"
2647
- }, $i = (e) => Z(e) ? e.replace(/[&<>"'\/]/g, (e) => Qi[e]) : e, ea = class {
2672
+ }, aa = (e) => Z(e) ? e.replace(/[&<>"'\/]/g, (e) => ia[e]) : e, oa = class {
2648
2673
  constructor(e) {
2649
2674
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
2650
2675
  }
@@ -2654,23 +2679,23 @@ var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<
2654
2679
  let n = new RegExp(e);
2655
2680
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
2656
2681
  }
2657
- }, ta = [
2682
+ }, sa = [
2658
2683
  " ",
2659
2684
  ",",
2660
2685
  "?",
2661
2686
  "!",
2662
2687
  ";"
2663
- ], na = new ea(20), ra = (e, t, n) => {
2688
+ ], ca = new oa(20), la = (e, t, n) => {
2664
2689
  t ||= "", n ||= "";
2665
- let r = ta.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
2690
+ let r = sa.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
2666
2691
  if (r.length === 0) return !0;
2667
- let i = na.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
2692
+ let i = ca.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
2668
2693
  if (!a) {
2669
2694
  let t = e.indexOf(n);
2670
2695
  t > 0 && !i.test(e.substring(0, t)) && (a = !0);
2671
2696
  }
2672
2697
  return a;
2673
- }, ia = (e, t, n = ".") => {
2698
+ }, ua = (e, t, n = ".") => {
2674
2699
  if (!e) return;
2675
2700
  if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
2676
2701
  let r = t.split(n), i = e;
@@ -2689,7 +2714,7 @@ var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<
2689
2714
  i = t;
2690
2715
  }
2691
2716
  return i;
2692
- }, aa = (e) => e?.replace(/_/g, "-"), oa = {
2717
+ }, da = (e) => e?.replace(/_/g, "-"), fa = {
2693
2718
  type: "logger",
2694
2719
  log(e) {
2695
2720
  this.output("log", e);
@@ -2708,7 +2733,7 @@ var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<
2708
2733
  this.init(e, t);
2709
2734
  }
2710
2735
  init(e, t = {}) {
2711
- this.prefix = t.prefix || "i18next:", this.logger = e || oa, this.options = t, this.debug = t.debug;
2736
+ this.prefix = t.prefix || "i18next:", this.logger = e || fa, this.options = t, this.debug = t.debug;
2712
2737
  }
2713
2738
  log(...e) {
2714
2739
  return this.forward(e, "log", "", !0);
@@ -2734,7 +2759,7 @@ var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<
2734
2759
  clone(t) {
2735
2760
  return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
2736
2761
  }
2737
- }(), sa = class {
2762
+ }(), pa = class {
2738
2763
  constructor() {
2739
2764
  this.observers = {};
2740
2765
  }
@@ -2761,7 +2786,7 @@ var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<
2761
2786
  for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
2762
2787
  });
2763
2788
  }
2764
- }, ca = class extends sa {
2789
+ }, ma = class extends pa {
2765
2790
  constructor(e, t = {
2766
2791
  ns: ["translation"],
2767
2792
  defaultNS: "translation"
@@ -2778,12 +2803,12 @@ var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<
2778
2803
  getResource(e, t, n, r = {}) {
2779
2804
  let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
2780
2805
  e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : Z(n) && i ? o.push(...n.split(i)) : o.push(n)));
2781
- let s = Ji(this.data, o);
2782
- return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !Z(n) ? s : ia(this.data?.[e]?.[t], n, i);
2806
+ let s = ea(this.data, o);
2807
+ return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !Z(n) ? s : ua(this.data?.[e]?.[t], n, i);
2783
2808
  }
2784
2809
  addResource(e, t, n, r, i = { silent: !1 }) {
2785
2810
  let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
2786
- n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), Ki(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
2811
+ n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), Qi(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
2787
2812
  }
2788
2813
  addResources(e, t, n, r = { silent: !1 }) {
2789
2814
  for (let r in n) (Z(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
@@ -2795,11 +2820,11 @@ var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<
2795
2820
  }) {
2796
2821
  let o = [e, t];
2797
2822
  e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
2798
- let s = Ji(this.data, o) || {};
2799
- a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? Xi(s, n, i) : s = {
2823
+ let s = ea(this.data, o) || {};
2824
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? na(s, n, i) : s = {
2800
2825
  ...s,
2801
2826
  ...n
2802
- }, Ki(this.data, o, s), a.silent || this.emit("added", e, t, n);
2827
+ }, Qi(this.data, o, s), a.silent || this.emit("added", e, t, n);
2803
2828
  }
2804
2829
  removeResourceBundle(e, t) {
2805
2830
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2820,7 +2845,7 @@ var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<
2820
2845
  toJSON() {
2821
2846
  return this.data;
2822
2847
  }
2823
- }, la = {
2848
+ }, ha = {
2824
2849
  processors: {},
2825
2850
  addPostProcessor(e) {
2826
2851
  this.processors[e.name] = e;
@@ -2830,22 +2855,22 @@ var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<
2830
2855
  t = this.processors[e]?.process(t, n, r, i) ?? t;
2831
2856
  }), t;
2832
2857
  }
2833
- }, ua = Symbol("i18next/PATH_KEY");
2834
- function da() {
2858
+ }, ga = Symbol("i18next/PATH_KEY");
2859
+ function _a() {
2835
2860
  let e = [], t = Object.create(null), n;
2836
- return t.get = (r, i) => (n?.revoke?.(), i === ua ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2861
+ return t.get = (r, i) => (n?.revoke?.(), i === ga ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2837
2862
  }
2838
- function fa(e, t) {
2839
- let { [ua]: n } = e(da()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
2863
+ function va(e, t) {
2864
+ let { [ga]: n } = e(_a()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
2840
2865
  if (n.length > 1 && i) {
2841
2866
  let e = t?.ns, a = Array.isArray(e) ? e : null;
2842
2867
  if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
2843
2868
  }
2844
2869
  return n.join(r);
2845
2870
  }
2846
- var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number", ha = class e extends sa {
2871
+ var ya = {}, ba = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number", xa = class e extends pa {
2847
2872
  constructor(e, t = {}) {
2848
- super(), Vi([
2873
+ super(), qi([
2849
2874
  "resourceStore",
2850
2875
  "languageUtils",
2851
2876
  "pluralResolver",
@@ -2863,13 +2888,13 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2863
2888
  if (e == null) return !1;
2864
2889
  let r = this.resolve(e, n);
2865
2890
  if (r?.res === void 0) return !1;
2866
- let i = ma(r.res);
2891
+ let i = ba(r.res);
2867
2892
  return !(n.returnObjects === !1 && i);
2868
2893
  }
2869
2894
  extractFromKey(e, t) {
2870
2895
  let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
2871
2896
  n === void 0 && (n = ":");
2872
- let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !ra(e, n, r);
2897
+ let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !la(e, n, r);
2873
2898
  if (a && !o) {
2874
2899
  let t = e.match(this.interpolator.nestingRegexp);
2875
2900
  if (t && t.length > 0) return {
@@ -2887,10 +2912,10 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2887
2912
  translate(t, n, r) {
2888
2913
  let i = typeof n == "object" ? { ...n } : n;
2889
2914
  if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
2890
- typeof t == "function" && (t = fa(t, {
2915
+ typeof t == "function" && (t = va(t, {
2891
2916
  ...this.options,
2892
2917
  ...i
2893
- })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? fa(e, {
2918
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? va(e, {
2894
2919
  ...this.options,
2895
2920
  ...i
2896
2921
  }) : String(e));
@@ -2918,7 +2943,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2918
2943
  "[object RegExp]"
2919
2944
  ], _ = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, v = !this.i18nFormat || this.i18nFormat.handleAsObject, y = i.count !== void 0 && !Z(i.count), b = e.hasDefaultValue(i), te = y ? this.pluralResolver.getSuffix(d, i.count, i) : "", ne = i.ordinal && y ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", re = y && !i.ordinal && i.count === 0, x = re && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${te}`] || i[`defaultValue${ne}`] || i.defaultValue, S = m;
2920
2945
  v && !m && b && (S = x);
2921
- let ie = ma(S), ae = Object.prototype.toString.apply(S);
2946
+ let ie = ba(S), ae = Object.prototype.toString.apply(S);
2922
2947
  if (v && S && ie && ee.indexOf(ae) < 0 && !(Z(_) && Array.isArray(S))) {
2923
2948
  if (!i.returnObjects && !this.options.returnObjects) {
2924
2949
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
@@ -2934,7 +2959,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2934
2959
  let r = `${n}${o}${e}`;
2935
2960
  b && !m ? t[e] = this.translate(r, {
2936
2961
  ...i,
2937
- defaultValue: ma(x) ? x[e] : void 0,
2962
+ defaultValue: ba(x) ? x[e] : void 0,
2938
2963
  joinArrays: !1,
2939
2964
  ns: c
2940
2965
  }) : t[e] = this.translate(r, {
@@ -3005,7 +3030,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3005
3030
  !n.lng && r && r.res && (n.lng = this.language || r.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...e) => i?.[0] === e[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : this.translate(...e, t), n)), n.interpolation && this.interpolator.reset();
3006
3031
  }
3007
3032
  let a = n.postProcess || this.options.postProcess, o = Z(a) ? [a] : a;
3008
- return e != null && o?.length && n.applyPostProcessor !== !1 && (e = la.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
3033
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = ha.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
3009
3034
  i18nResolved: {
3010
3035
  ...r,
3011
3036
  usedParams: this.getUsedParamsDetails(n)
@@ -3015,7 +3040,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3015
3040
  }
3016
3041
  resolve(e, t = {}) {
3017
3042
  let n, r, i, a, o;
3018
- return Z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? fa(e, {
3043
+ return Z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? va(e, {
3019
3044
  ...this.options,
3020
3045
  ...t
3021
3046
  }) : e)), e.forEach((e) => {
@@ -3026,7 +3051,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3026
3051
  this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
3027
3052
  let u = t.count !== void 0 && !Z(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (Z(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
3028
3053
  l.forEach((e) => {
3029
- this.isValidLookup(n) || (o = e, !pa[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (pa[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
3054
+ this.isValidLookup(n) || (o = e, !ya[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (ya[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
3030
3055
  if (this.isValidLookup(n)) return;
3031
3056
  a = r;
3032
3057
  let o = [c];
@@ -3089,17 +3114,17 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3089
3114
  for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
3090
3115
  return !1;
3091
3116
  }
3092
- }, ga = class {
3117
+ }, Sa = class {
3093
3118
  constructor(e) {
3094
3119
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Q.create("languageUtils");
3095
3120
  }
3096
3121
  getScriptPartFromCode(e) {
3097
- if (e = aa(e), !e || e.indexOf("-") < 0) return null;
3122
+ if (e = da(e), !e || e.indexOf("-") < 0) return null;
3098
3123
  let t = e.split("-");
3099
3124
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
3100
3125
  }
3101
3126
  getLanguagePartFromCode(e) {
3102
- if (e = aa(e), !e || e.indexOf("-") < 0) return e;
3127
+ if (e = da(e), !e || e.indexOf("-") < 0) return e;
3103
3128
  let t = e.split("-");
3104
3129
  return this.formatLanguageCode(t[0]);
3105
3130
  }
@@ -3149,17 +3174,17 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3149
3174
  r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
3150
3175
  }), r;
3151
3176
  }
3152
- }, _a = {
3177
+ }, Ca = {
3153
3178
  zero: 0,
3154
3179
  one: 1,
3155
3180
  two: 2,
3156
3181
  few: 3,
3157
3182
  many: 4,
3158
3183
  other: 5
3159
- }, va = {
3184
+ }, wa = {
3160
3185
  select: (e) => e === 1 ? "one" : "other",
3161
3186
  resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
3162
- }, ya = class {
3187
+ }, Ta = class {
3163
3188
  constructor(e, t = {}) {
3164
3189
  this.languageUtils = e, this.options = t, this.logger = Q.create("pluralResolver"), this.pluralRulesCache = {};
3165
3190
  }
@@ -3167,7 +3192,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3167
3192
  this.pluralRulesCache = {};
3168
3193
  }
3169
3194
  getRule(e, t = {}) {
3170
- let n = aa(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
3195
+ let n = da(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
3171
3196
  cleanedCode: n,
3172
3197
  type: r
3173
3198
  });
@@ -3176,8 +3201,8 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3176
3201
  try {
3177
3202
  a = new Intl.PluralRules(n, { type: r });
3178
3203
  } catch {
3179
- if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), va;
3180
- if (!e.match(/-|_/)) return va;
3204
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), wa;
3205
+ if (!e.match(/-|_/)) return wa;
3181
3206
  let n = this.languageUtils.getLanguagePartFromCode(e);
3182
3207
  a = this.getRule(n, t);
3183
3208
  }
@@ -3192,23 +3217,23 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3192
3217
  }
3193
3218
  getSuffixes(e, t = {}) {
3194
3219
  let n = this.getRule(e, t);
3195
- return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => _a[e] - _a[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
3220
+ return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => Ca[e] - Ca[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
3196
3221
  }
3197
3222
  getSuffix(e, t, n = {}) {
3198
3223
  let r = this.getRule(e, n);
3199
3224
  return r ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${r.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
3200
3225
  }
3201
- }, ba = (e, t, n, r = ".", i = !0) => {
3202
- let a = Yi(e, t, n);
3203
- return !a && i && Z(n) && (a = ia(e, n, r), a === void 0 && (a = ia(t, n, r))), a;
3204
- }, xa = (e) => e.replace(/\$/g, "$$$$"), Sa = class {
3226
+ }, Ea = (e, t, n, r = ".", i = !0) => {
3227
+ let a = ta(e, t, n);
3228
+ return !a && i && Z(n) && (a = ua(e, n, r), a === void 0 && (a = ua(t, n, r))), a;
3229
+ }, Da = (e) => e.replace(/\$/g, "$$$$"), Oa = class {
3205
3230
  constructor(e = {}) {
3206
3231
  this.logger = Q.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
3207
3232
  }
3208
3233
  init(e = {}) {
3209
3234
  e.interpolation ||= { escapeValue: !0 };
3210
3235
  let { escape: t, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: o, suffixEscaped: s, formatSeparator: c, unescapeSuffix: l, unescapePrefix: u, nestingPrefix: d, nestingPrefixEscaped: f, nestingSuffix: p, nestingSuffixEscaped: m, nestingOptionsSeparator: h, maxReplaces: g, alwaysFormat: ee } = e.interpolation;
3211
- this.escape = t === void 0 ? $i : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? Zi(i) : a || "{{", this.suffix = o ? Zi(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? Zi(d) : f || Zi("$t("), this.nestingSuffix = p ? Zi(p) : m || Zi(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = ee !== void 0 && ee, this.resetRegExp();
3236
+ this.escape = t === void 0 ? aa : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? ra(i) : a || "{{", this.suffix = o ? ra(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? ra(d) : f || ra("$t("), this.nestingSuffix = p ? ra(p) : m || ra(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = ee !== void 0 && ee, this.resetRegExp();
3212
3237
  }
3213
3238
  reset() {
3214
3239
  this.options && this.init(this.options);
@@ -3220,7 +3245,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3220
3245
  interpolate(e, t, n, r) {
3221
3246
  let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
3222
3247
  if (e.indexOf(this.formatSeparator) < 0) {
3223
- let i = ba(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
3248
+ let i = Ea(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
3224
3249
  return this.alwaysFormat ? this.format(i, void 0, n, {
3225
3250
  ...r,
3226
3251
  ...t,
@@ -3228,7 +3253,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3228
3253
  }) : i;
3229
3254
  }
3230
3255
  let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
3231
- return this.format(ba(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
3256
+ return this.format(Ea(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
3232
3257
  ...r,
3233
3258
  ...t,
3234
3259
  interpolationkey: a
@@ -3238,10 +3263,10 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3238
3263
  let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
3239
3264
  return [{
3240
3265
  regex: this.regexpUnescape,
3241
- safeValue: (e) => xa(e)
3266
+ safeValue: (e) => Da(e)
3242
3267
  }, {
3243
3268
  regex: this.regexp,
3244
- safeValue: (e) => this.escapeValue ? xa(this.escape(e)) : xa(e)
3269
+ safeValue: (e) => this.escapeValue ? Da(this.escape(e)) : Da(e)
3245
3270
  }].forEach((t) => {
3246
3271
  for (o = 0; i = t.regex.exec(e);) {
3247
3272
  let n = i[1].trim();
@@ -3253,7 +3278,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3253
3278
  a = i[0];
3254
3279
  continue;
3255
3280
  } else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
3256
- else !Z(a) && !this.useRawValueToEscape && (a = Bi(a));
3281
+ else !Z(a) && !this.useRawValueToEscape && (a = Ki(a));
3257
3282
  let s = t.safeValue(a);
3258
3283
  if (e = e.replace(i[0], s), u ? (t.regex.lastIndex += a.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
3259
3284
  }
@@ -3263,7 +3288,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3263
3288
  let r, i, a, o = (e, t) => {
3264
3289
  let n = this.nestingOptionsSeparator;
3265
3290
  if (e.indexOf(n) < 0) return e;
3266
- let r = e.split(RegExp(`${Zi(n)}[ ]*{`)), i = `{${r[1]}`;
3291
+ let r = e.split(RegExp(`${ra(n)}[ ]*{`)), i = `{${r[1]}`;
3267
3292
  e = r[0], i = this.interpolate(i, a);
3268
3293
  let o = i.match(/'/g), s = i.match(/"/g);
3269
3294
  ((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
@@ -3282,14 +3307,14 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3282
3307
  a = { ...n }, a = a.replace && !Z(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
3283
3308
  let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
3284
3309
  if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !Z(i)) return i;
3285
- Z(i) || (i = Bi(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
3310
+ Z(i) || (i = Ki(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
3286
3311
  ...n,
3287
3312
  interpolationkey: r[1].trim()
3288
3313
  }), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
3289
3314
  }
3290
3315
  return e;
3291
3316
  }
3292
- }, Ca = (e) => {
3317
+ }, ka = (e) => {
3293
3318
  let t = e.toLowerCase().trim(), n = {};
3294
3319
  if (e.indexOf("(") > -1) {
3295
3320
  let r = e.split("(");
@@ -3306,7 +3331,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3306
3331
  formatName: t,
3307
3332
  formatOptions: n
3308
3333
  };
3309
- }, wa = (e) => {
3334
+ }, Aa = (e) => {
3310
3335
  let t = {};
3311
3336
  return (n, r, i) => {
3312
3337
  let a = i;
@@ -3315,15 +3340,15 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3315
3340
  [i.interpolationkey]: void 0
3316
3341
  });
3317
3342
  let o = r + JSON.stringify(a), s = t[o];
3318
- return s || (s = e(aa(r), i), t[o] = s), s(n);
3343
+ return s || (s = e(da(r), i), t[o] = s), s(n);
3319
3344
  };
3320
- }, Ta = (e) => (t, n, r) => e(aa(n), r)(t), Ea = class {
3345
+ }, ja = (e) => (t, n, r) => e(da(n), r)(t), Ma = class {
3321
3346
  constructor(e = {}) {
3322
3347
  this.logger = Q.create("formatter"), this.options = e, this.init(e);
3323
3348
  }
3324
3349
  init(e, t = { interpolation: {} }) {
3325
3350
  this.formatSeparator = t.interpolation.formatSeparator || ",";
3326
- let n = t.cacheInBuiltFormats ? wa : Ta;
3351
+ let n = t.cacheInBuiltFormats ? Aa : ja;
3327
3352
  this.formats = {
3328
3353
  number: n((e, t) => {
3329
3354
  let n = new Intl.NumberFormat(e, { ...t });
@@ -3354,7 +3379,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3354
3379
  this.formats[e.toLowerCase().trim()] = t;
3355
3380
  }
3356
3381
  addCached(e, t) {
3357
- this.formats[e.toLowerCase().trim()] = wa(t);
3382
+ this.formats[e.toLowerCase().trim()] = Aa(t);
3358
3383
  }
3359
3384
  format(e, t, n, r = {}) {
3360
3385
  let i = t.split(this.formatSeparator);
@@ -3363,7 +3388,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3363
3388
  i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
3364
3389
  }
3365
3390
  return i.reduce((e, t) => {
3366
- let { formatName: i, formatOptions: a } = Ca(t);
3391
+ let { formatName: i, formatOptions: a } = ka(t);
3367
3392
  if (this.formats[i]) {
3368
3393
  let t = e;
3369
3394
  try {
@@ -3381,9 +3406,9 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3381
3406
  return e;
3382
3407
  }, e);
3383
3408
  }
3384
- }, Da = (e, t) => {
3409
+ }, Na = (e, t) => {
3385
3410
  e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
3386
- }, Oa = class extends sa {
3411
+ }, Pa = class extends pa {
3387
3412
  constructor(e, t, n, r = {}) {
3388
3413
  super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = Q.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
3389
3414
  }
@@ -3413,7 +3438,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3413
3438
  t && this.emit("failedLoading", i, a, t), !t && n && this.store.addResourceBundle(i, a, n, void 0, void 0, { skipCopy: !0 }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
3414
3439
  let o = {};
3415
3440
  this.queue.forEach((n) => {
3416
- qi(n.loaded, [i], a), Da(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
3441
+ $i(n.loaded, [i], a), Na(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
3417
3442
  o[e] || (o[e] = {});
3418
3443
  let t = n.loaded[e];
3419
3444
  t.length && t.forEach((t) => {
@@ -3503,7 +3528,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3503
3528
  !e || !e[0] || this.store.addResource(e[0], t, n, r);
3504
3529
  }
3505
3530
  }
3506
- }, ka = () => ({
3531
+ }, Fa = () => ({
3507
3532
  debug: !1,
3508
3533
  initAsync: !0,
3509
3534
  ns: ["translation"],
@@ -3560,15 +3585,15 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3560
3585
  skipOnVariables: !0
3561
3586
  },
3562
3587
  cacheInBuiltFormats: !0
3563
- }), Aa = (e) => (Z(e.ns) && (e.ns = [e.ns]), Z(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Z(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), ja = () => {}, Ma = (e) => {
3588
+ }), Ia = (e) => (Z(e.ns) && (e.ns = [e.ns]), Z(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Z(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), La = () => {}, Ra = (e) => {
3564
3589
  Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
3565
3590
  typeof e[t] == "function" && (e[t] = e[t].bind(e));
3566
3591
  });
3567
- }, Na = "__i18next_supportNoticeShown", Pa = () => !!(typeof globalThis < "u" && globalThis[Na] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), Fa = () => {
3568
- typeof globalThis < "u" && (globalThis[Na] = !0);
3569
- }, Ia = (e) => !!(e?.modules?.backend?.name?.indexOf("Locize") > 0 || e?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0 || e?.options?.backend?.backends && e.options.backend.backends.some((e) => e?.name?.indexOf("Locize") > 0 || e?.constructor?.name?.indexOf("Locize") > 0) || e?.options?.backend?.projectId || e?.options?.backend?.backendOptions && e.options.backend.backendOptions.some((e) => e?.projectId)), $ = class e extends sa {
3592
+ }, za = "__i18next_supportNoticeShown", Ba = () => !!(typeof globalThis < "u" && globalThis[za] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), Va = () => {
3593
+ typeof globalThis < "u" && (globalThis[za] = !0);
3594
+ }, Ha = (e) => !!(e?.modules?.backend?.name?.indexOf("Locize") > 0 || e?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0 || e?.options?.backend?.backends && e.options.backend.backends.some((e) => e?.name?.indexOf("Locize") > 0 || e?.constructor?.name?.indexOf("Locize") > 0) || e?.options?.backend?.projectId || e?.options?.backend?.backendOptions && e.options.backend.backendOptions.some((e) => e?.projectId)), $ = class e extends pa {
3570
3595
  constructor(e = {}, t) {
3571
- if (super(), this.options = Aa(e), this.services = {}, this.logger = Q, this.modules = { external: [] }, Ma(this), t && !this.isInitialized && !e.isClone) {
3596
+ if (super(), this.options = Ia(e), this.services = {}, this.logger = Q, this.modules = { external: [] }, Ra(this), t && !this.isInitialized && !e.isClone) {
3572
3597
  if (!this.options.initAsync) return this.init(e, t), this;
3573
3598
  setTimeout(() => {
3574
3599
  this.init(e, t);
@@ -3577,35 +3602,35 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3577
3602
  }
3578
3603
  init(e = {}, t) {
3579
3604
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (Z(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
3580
- let n = ka();
3605
+ let n = Fa();
3581
3606
  this.options = {
3582
3607
  ...n,
3583
3608
  ...this.options,
3584
- ...Aa(e)
3609
+ ...Ia(e)
3585
3610
  }, this.options.interpolation = {
3586
3611
  ...n.interpolation,
3587
3612
  ...this.options.interpolation
3588
- }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !Ia(this) && !Pa() && (typeof console < "u" && console.info !== void 0 && console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), Fa());
3613
+ }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !Ha(this) && !Ba() && (typeof console < "u" && console.info !== void 0 && console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), Va());
3589
3614
  let r = (e) => e ? typeof e == "function" ? new e() : e : null;
3590
3615
  if (!this.options.isClone) {
3591
3616
  this.modules.logger ? Q.init(r(this.modules.logger), this.options) : Q.init(null, this.options);
3592
3617
  let e;
3593
- e = this.modules.formatter ? this.modules.formatter : Ea;
3594
- let t = new ga(this.options);
3595
- this.store = new ca(this.options.resources, this.options);
3618
+ e = this.modules.formatter ? this.modules.formatter : Ma;
3619
+ let t = new Sa(this.options);
3620
+ this.store = new ma(this.options.resources, this.options);
3596
3621
  let i = this.services;
3597
- i.logger = Q, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new ya(t, {
3622
+ i.logger = Q, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new Ta(t, {
3598
3623
  prepend: this.options.pluralSeparator,
3599
3624
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3600
- }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new Sa(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new Oa(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
3625
+ }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new Oa(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new Pa(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
3601
3626
  this.emit(e, ...t);
3602
- }), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new ha(this.services, this.options), this.translator.on("*", (e, ...t) => {
3627
+ }), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new xa(this.services, this.options), this.translator.on("*", (e, ...t) => {
3603
3628
  this.emit(e, ...t);
3604
3629
  }), this.modules.external.forEach((e) => {
3605
3630
  e.init && e.init(this);
3606
3631
  });
3607
3632
  }
3608
- if (this.format = this.options.interpolation.format, t ||= ja, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3633
+ if (this.format = this.options.interpolation.format, t ||= La, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3609
3634
  let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3610
3635
  e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
3611
3636
  }
@@ -3624,7 +3649,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3624
3649
  ].forEach((e) => {
3625
3650
  this[e] = (...t) => (this.store[e](...t), this);
3626
3651
  });
3627
- let i = zi(), a = () => {
3652
+ let i = Gi(), a = () => {
3628
3653
  let e = (e, n) => {
3629
3654
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(n), t(e, n);
3630
3655
  };
@@ -3633,7 +3658,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3633
3658
  };
3634
3659
  return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
3635
3660
  }
3636
- loadResources(e, t = ja) {
3661
+ loadResources(e, t = La) {
3637
3662
  let n = t, r = Z(e) ? e : this.language;
3638
3663
  if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
3639
3664
  if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
@@ -3648,15 +3673,15 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3648
3673
  } else n(null);
3649
3674
  }
3650
3675
  reloadResources(e, t, n) {
3651
- let r = zi();
3652
- return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= ja, this.services.backendConnector.reload(e, t, (e) => {
3676
+ let r = Gi();
3677
+ return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= La, this.services.backendConnector.reload(e, t, (e) => {
3653
3678
  r.resolve(), n(e);
3654
3679
  }), r;
3655
3680
  }
3656
3681
  use(e) {
3657
3682
  if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3658
3683
  if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3659
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && la.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3684
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && ha.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3660
3685
  }
3661
3686
  setResolvedLanguage(e) {
3662
3687
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -3672,7 +3697,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3672
3697
  }
3673
3698
  changeLanguage(e, t) {
3674
3699
  this.isLanguageChangingTo = e;
3675
- let n = zi();
3700
+ let n = Gi();
3676
3701
  this.emit("languageChanging", e);
3677
3702
  let r = (e) => {
3678
3703
  this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
@@ -3695,9 +3720,9 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3695
3720
  ...this.options,
3696
3721
  ...a
3697
3722
  };
3698
- typeof a.keyPrefix == "function" && (a.keyPrefix = fa(a.keyPrefix, o));
3723
+ typeof a.keyPrefix == "function" && (a.keyPrefix = va(a.keyPrefix, o));
3699
3724
  let s = this.options.keySeparator || ".", c;
3700
- return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = fa(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = fa(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
3725
+ return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = va(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = va(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
3701
3726
  };
3702
3727
  return Z(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
3703
3728
  }
@@ -3726,7 +3751,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3726
3751
  return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
3727
3752
  }
3728
3753
  loadNamespaces(e, t) {
3729
- let n = zi();
3754
+ let n = Gi();
3730
3755
  return this.options.ns ? (Z(e) && (e = [e]), e.forEach((e) => {
3731
3756
  this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
3732
3757
  }), this.loadResources((e) => {
@@ -3734,7 +3759,7 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3734
3759
  }), n) : (t && t(), Promise.resolve());
3735
3760
  }
3736
3761
  loadLanguages(e, t) {
3737
- let n = zi();
3762
+ let n = Gi();
3738
3763
  Z(e) && (e = [e]);
3739
3764
  let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
3740
3765
  return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
@@ -3750,14 +3775,14 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3750
3775
  if (e && e.direction) return e.direction;
3751
3776
  }
3752
3777
  } catch {}
3753
- let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new ga(ka());
3778
+ let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new Sa(Fa());
3754
3779
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3755
3780
  }
3756
3781
  static createInstance(t = {}, n) {
3757
3782
  let r = new e(t, n);
3758
3783
  return r.createInstance = e.createInstance, r;
3759
3784
  }
3760
- cloneInstance(t = {}, n = ja) {
3785
+ cloneInstance(t = {}, n = La) {
3761
3786
  let r = t.forkResourceStore;
3762
3787
  r && delete t.forkResourceStore;
3763
3788
  let i = {
@@ -3771,18 +3796,18 @@ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3771
3796
  "language"
3772
3797
  ].forEach((e) => {
3773
3798
  a[e] = this[e];
3774
- }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new ca(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
3799
+ }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new ma(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
3775
3800
  let e = {
3776
- ...ka().interpolation,
3801
+ ...Fa().interpolation,
3777
3802
  ...this.options.interpolation,
3778
3803
  ...t.interpolation
3779
3804
  }, n = {
3780
3805
  ...i,
3781
3806
  interpolation: e
3782
3807
  };
3783
- a.services.interpolator = new Sa(n);
3808
+ a.services.interpolator = new Oa(n);
3784
3809
  }
3785
- return a.translator = new ha(a.services, i), a.translator.on("*", (e, ...t) => {
3810
+ return a.translator = new xa(a.services, i), a.translator.on("*", (e, ...t) => {
3786
3811
  a.emit(e, ...t);
3787
3812
  }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
3788
3813
  }
@@ -3803,13 +3828,13 @@ $.createInstance, $.dir, $.init, $.loadResources, $.reloadResources, $.use, $.ch
3803
3828
  lng: "en",
3804
3829
  showSupportNotice: !1,
3805
3830
  resources: {
3806
- en: Li,
3807
- es: Ri
3831
+ en: Ui,
3832
+ es: Wi
3808
3833
  }
3809
3834
  });
3810
3835
  //#endregion
3811
3836
  //#region src/i18n.ts
3812
- var { translator: La } = {
3837
+ var { translator: Ua } = {
3813
3838
  translator: {
3814
3839
  ...$,
3815
3840
  t: (e, t) => {
@@ -3841,23 +3866,23 @@ var { translator: La } = {
3841
3866
  label: "Spanish"
3842
3867
  }]
3843
3868
  };
3844
- function Ra(e, t) {
3845
- return La.t(`translation:simpleCloze:${e}`, { lng: t });
3869
+ function Wa(e, t) {
3870
+ return Ua.t(`translation:simpleCloze:${e}`, { lng: t });
3846
3871
  }
3847
3872
  //#endregion
3848
3873
  //#region src/print/Print.svelte
3849
- var za = /* @__PURE__ */ or("<div class=\"simple-cloze-print-teacher-instructions svelte-1fx5wwa\"></div>"), Ba = /* @__PURE__ */ or("<div class=\"simple-cloze-print-prompt svelte-1fx5wwa\"></div>"), Va = /* @__PURE__ */ or("<span class=\"simple-cloze-print-key-label svelte-1fx5wwa\"> </span> <span class=\"simple-cloze-print-blank simple-cloze-print-blank--key svelte-1fx5wwa\"> </span>", 1), Ha = /* @__PURE__ */ or("<span class=\"simple-cloze-print-blank svelte-1fx5wwa\" role=\"img\"></span>"), Ua = /* @__PURE__ */ or("<div class=\"simple-cloze-print svelte-1fx5wwa\"><!> <!> <div class=\"simple-cloze-print-response svelte-1fx5wwa\"><!></div></div>"), Wa = {
3874
+ var Ga = /* @__PURE__ */ or("<div class=\"simple-cloze-print-teacher-instructions svelte-1fx5wwa\"></div>"), Ka = /* @__PURE__ */ or("<div class=\"simple-cloze-print-prompt svelte-1fx5wwa\"></div>"), qa = /* @__PURE__ */ or("<span class=\"simple-cloze-print-key-label svelte-1fx5wwa\"> </span> <span class=\"simple-cloze-print-blank simple-cloze-print-blank--key svelte-1fx5wwa\"> </span>", 1), Ja = /* @__PURE__ */ or("<span class=\"simple-cloze-print-blank svelte-1fx5wwa\" role=\"img\"></span>"), Ya = /* @__PURE__ */ or("<div class=\"simple-cloze-print svelte-1fx5wwa\"><!> <!> <div class=\"simple-cloze-print-response svelte-1fx5wwa\"><!></div></div>"), Xa = {
3850
3875
  hash: "svelte-1fx5wwa",
3851
3876
  code: "\n /* Self-contained: print players ship no Tailwind or CSS reset. */.simple-cloze-print.svelte-1fx5wwa {padding:1rem;color:var(--pie-text, black);}.simple-cloze-print-teacher-instructions.svelte-1fx5wwa,\n .simple-cloze-print-prompt.svelte-1fx5wwa {margin-bottom:1rem;}.simple-cloze-print-teacher-instructions.svelte-1fx5wwa p,\n .simple-cloze-print-prompt.svelte-1fx5wwa p {margin:0.5em 0;}.simple-cloze-print-prompt.svelte-1fx5wwa strong {font-weight:600;}.simple-cloze-print-response.svelte-1fx5wwa {display:inline-flex;align-items:baseline;gap:0.5rem;}.simple-cloze-print-key-label.svelte-1fx5wwa {font-size:0.875rem;line-height:1.25rem;font-weight:600;}.simple-cloze-print-blank.svelte-1fx5wwa {display:inline-block;min-width:12rem;min-height:1.5rem;padding:0.5rem 0.75rem;border-bottom:2px solid var(--pie-text, black);}.simple-cloze-print-blank--key.svelte-1fx5wwa {min-width:6rem;font-weight:600;}\n\n @media print {.simple-cloze-print.svelte-1fx5wwa {padding:0;}\n }"
3852
3877
  };
3853
- function Ga(e, t) {
3854
- We(t, !0), wr(e, Wa);
3855
- let n = Ir(t, "model", 7, null), r = Ir(t, "options", 7, null), i = /* @__PURE__ */ lt(() => r()?.role === "instructor"), a = /* @__PURE__ */ lt(() => n()?.promptEnabled !== !1 && typeof n()?.prompt == "string" ? n().prompt : ""), o = /* @__PURE__ */ lt(() => Ii(n()?.correctAnswer)), s = /* @__PURE__ */ lt(() => X(i) && !!X(o)), c = /* @__PURE__ */ lt(() => X(i) && n()?.teacherInstructionsEnabled !== !1 && n()?.teacherInstructions || ""), l = /* @__PURE__ */ M(null);
3878
+ function Za(e, t) {
3879
+ We(t, !0), wr(e, Xa);
3880
+ let n = Ir(t, "model", 7, null), r = Ir(t, "options", 7, null), i = /* @__PURE__ */ lt(() => r()?.role === "instructor"), a = /* @__PURE__ */ lt(() => n()?.promptEnabled !== !1 && typeof n()?.prompt == "string" ? n().prompt : ""), o = /* @__PURE__ */ lt(() => Hi(n()?.correctAnswer)), s = /* @__PURE__ */ lt(() => X(i) && !!X(o)), c = /* @__PURE__ */ lt(() => X(i) && n()?.teacherInstructionsEnabled !== !1 && n()?.teacherInstructions || ""), l = /* @__PURE__ */ M(null);
3856
3881
  dn(() => {
3857
3882
  if (!X(l) || !X(a)) return;
3858
3883
  let e = (e) => console.warn("simple-cloze: MathJax render failed", e);
3859
3884
  try {
3860
- Promise.resolve(Oi(X(l))).catch(e);
3885
+ Promise.resolve(Pi(X(l))).catch(e);
3861
3886
  } catch (t) {
3862
3887
  e(t);
3863
3888
  }
@@ -3875,41 +3900,41 @@ function Ga(e, t) {
3875
3900
  set options(e = null) {
3876
3901
  r(e), Et();
3877
3902
  }
3878
- }, d = Ua(), f = Zt(d), p = (e) => {
3879
- var t = za();
3903
+ }, d = Ya(), f = Zt(d), p = (e) => {
3904
+ var t = Ga();
3880
3905
  Cr(t, () => X(c), !0), Te(t), sr(e, t);
3881
3906
  };
3882
3907
  Sr(f, (e) => {
3883
3908
  X(c) && e(p);
3884
3909
  });
3885
3910
  var m = en(f, 2), h = (e) => {
3886
- var t = Ba();
3911
+ var t = Ka();
3887
3912
  Cr(t, () => X(a), !0), Te(t), Nr(t, (e) => N(l, e), () => X(l)), sr(e, t);
3888
3913
  };
3889
3914
  Sr(m, (e) => {
3890
3915
  X(a) && e(h);
3891
3916
  });
3892
3917
  var g = en(m, 2), ee = Zt(g), _ = (e) => {
3893
- var t = Va(), r = Qt(t), i = $t(r, !0), a = $t(en(r, 2), !0);
3918
+ var t = qa(), r = Qt(t), i = $t(r, !0), a = $t(en(r, 2), !0);
3894
3919
  vn((e) => {
3895
3920
  mr(i, e), mr(a, X(o));
3896
- }, [() => Ra("printCorrectAnswer", n()?.language)]), sr(e, t);
3921
+ }, [() => Wa("printCorrectAnswer", n()?.language)]), sr(e, t);
3897
3922
  }, v = (e) => {
3898
- var t = Ha();
3899
- vn((e) => Or(t, "aria-label", e), [() => Ra("printAnswerBlank", n()?.language)]), sr(e, t);
3923
+ var t = Ja();
3924
+ vn((e) => Or(t, "aria-label", e), [() => Wa("printAnswerBlank", n()?.language)]), sr(e, t);
3900
3925
  };
3901
3926
  return Sr(ee, (e) => {
3902
3927
  X(s) ? e(_) : e(v, -1);
3903
3928
  }), Te(g), Te(d), sr(e, d), Ge(u);
3904
3929
  }
3905
- Hr(Ga, {
3930
+ Hr(Za, {
3906
3931
  model: { type: "Object" },
3907
3932
  options: { type: "Object" }
3908
3933
  }, [], []);
3909
3934
  //#endregion
3910
3935
  //#region src/print/index.ts
3911
- var Ka = Ga.element;
3936
+ var Qa = Za.element;
3912
3937
  //#endregion
3913
- export { Ka as default };
3938
+ export { Qa as default };
3914
3939
 
3915
3940
  //# sourceMappingURL=print.js.map