@pie-players/pie-tool-calculator-desmos 0.3.65 → 0.3.67

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.
@@ -1,10 +1,10 @@
1
1
  import { connectToolRuntimeContext as $i } from "@pie-players/pie-assessment-toolkit";
2
2
  if (typeof window < "u") {
3
- var zr, Fr;
4
- ((zr = (Fr = window).__svelte ?? (Fr.__svelte = {})).v ?? (zr.v = /* @__PURE__ */ new Set())).add("5");
3
+ var Fr, zr;
4
+ ((Fr = (zr = window).__svelte ?? (zr.__svelte = {})).v ?? (Fr.v = /* @__PURE__ */ new Set())).add("5");
5
5
  }
6
6
  var Je = {}, j = /* @__PURE__ */ Symbol("uninitialized");
7
- var ki = Array.isArray, Ei = Array.prototype.indexOf, Ft = Array.prototype.includes, Ti = Array.from, qt = Object.keys, Dt = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, Si = Object.getOwnPropertyDescriptors, xi = Object.prototype, Ci = Array.prototype, cn = Object.getPrototypeOf, qr = Object.isExtensible, Mi = () => {
7
+ var ki = Array.isArray, Ei = Array.prototype.indexOf, zt = Array.prototype.includes, Ti = Array.from, Dt = Object.keys, qt = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, Si = Object.getOwnPropertyDescriptors, xi = Object.prototype, Ci = Array.prototype, cn = Object.getPrototypeOf, Dr = Object.isExtensible, Mi = () => {
8
8
  };
9
9
  function Ai(e) {
10
10
  for (var t = 0; t < e.length; t++) e[t]();
@@ -49,16 +49,16 @@ function M(e, t, r) {
49
49
  writable: !0
50
50
  }) : e[t] = r, e;
51
51
  }
52
- var ka = 1 << 24, J = 1024, G = 2048, qe = 4096, br = 8192, Pi = 16384, $r = 32768, Dr = 1 << 25, kr = 65536, Ea = 1 << 17, Ta = 1 << 18, tt = 1 << 19, Ii = 1 << 20, gt = 65536, Hr = 1 << 21, Ni = 1 << 22, Ht = 1 << 23, ft = /* @__PURE__ */ Symbol("$state"), hn = /* @__PURE__ */ Symbol("legacy props"), Wi = /* @__PURE__ */ Symbol(""), ji = /* @__PURE__ */ Symbol("proxy path"), dr = /* @__PURE__ */ Symbol("attributes"), Li = /* @__PURE__ */ Symbol("class"), zi = /* @__PURE__ */ Symbol("style"), Nt = /* @__PURE__ */ Symbol("text");
52
+ var ka = 1 << 24, J = 1024, G = 2048, De = 4096, br = 8192, Pi = 16384, $r = 32768, qr = 1 << 25, kr = 65536, Ea = 1 << 17, Ta = 1 << 18, tt = 1 << 19, Ii = 1 << 20, gt = 65536, Hr = 1 << 21, Ni = 1 << 22, Ht = 1 << 23, ft = /* @__PURE__ */ Symbol("$state"), hn = /* @__PURE__ */ Symbol("legacy props"), Wi = /* @__PURE__ */ Symbol(""), ji = /* @__PURE__ */ Symbol("proxy path"), dr = /* @__PURE__ */ Symbol("attributes"), Li = /* @__PURE__ */ Symbol("class"), Fi = /* @__PURE__ */ Symbol("style"), Nt = /* @__PURE__ */ Symbol("text");
53
53
  var wt = new class extends Error {
54
54
  constructor(...t) {
55
55
  super(...t), M(this, "name", "StaleReactionError"), M(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
56
56
  }
57
- }(), Fi = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
58
- function qi(e) {
57
+ }(), zi = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
58
+ function Di(e) {
59
59
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
60
60
  }
61
- function Di() {
61
+ function qi() {
62
62
  throw new Error("https://svelte.dev/e/async_derived_orphan");
63
63
  }
64
64
  function Hi(e) {
@@ -100,9 +100,9 @@ function er(e) {
100
100
  function es() {
101
101
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
102
102
  }
103
- var z = !1;
103
+ var F = !1;
104
104
  function Xe(e) {
105
- z = e;
105
+ F = e;
106
106
  }
107
107
  var P;
108
108
  function fe(e) {
@@ -114,14 +114,14 @@ function Er() {
114
114
  return fe(/* @__PURE__ */ ke(P));
115
115
  }
116
116
  function xt(e) {
117
- if (z) {
117
+ if (F) {
118
118
  if (/* @__PURE__ */ ke(P) !== null)
119
119
  throw er(), Je;
120
120
  P = e;
121
121
  }
122
122
  }
123
123
  function ts(e = 1) {
124
- if (z) {
124
+ if (F) {
125
125
  for (var t = e, r = P; t--; ) r = /* @__PURE__ */ ke(r);
126
126
  P = r;
127
127
  }
@@ -233,12 +233,12 @@ function $e(e, t) {
233
233
  throw e;
234
234
  }
235
235
  }
236
- var as = ~(G | qe | J);
236
+ var as = ~(G | De | J);
237
237
  function I(e, t) {
238
238
  e.f = e.f & as | t;
239
239
  }
240
240
  function Tr(e) {
241
- (e.f & 512) !== 0 || e.deps === null ? I(e, J) : I(e, qe);
241
+ (e.f & 512) !== 0 || e.deps === null ? I(e, J) : I(e, De);
242
242
  }
243
243
  function bn(e) {
244
244
  if (e !== null)
@@ -299,24 +299,24 @@ var us = kr | tt;
299
299
  function cs(e, t, r, n) {
300
300
  new ds(e, t, r, n);
301
301
  }
302
- var re = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), ds = class {
302
+ var re = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakSet(), ds = class {
303
303
  constructor(e, t, r, n) {
304
- Sr(this, F), M(this, "parent", void 0), M(this, "is_pending", !1), M(this, "transform_error", void 0), m(this, re, void 0), m(this, hr, z ? P : null), m(this, le, void 0), m(this, ht, void 0), m(this, X, void 0), m(this, oe, null), m(this, Y, null), m(this, ee, null), m(this, Pe, null), m(this, He, 0), m(this, Ie, 0), m(this, Mt, !1), m(this, vr, /* @__PURE__ */ new Set()), m(this, _r, /* @__PURE__ */ new Set()), m(this, Te, null), m(this, Ur, fs(() => (y(Te, this, bt(s(He, this))), () => {
304
+ Sr(this, z), M(this, "parent", void 0), M(this, "is_pending", !1), M(this, "transform_error", void 0), m(this, re, void 0), m(this, hr, F ? P : null), m(this, le, void 0), m(this, ht, void 0), m(this, X, void 0), m(this, oe, null), m(this, Y, null), m(this, ee, null), m(this, Pe, null), m(this, He, 0), m(this, Ie, 0), m(this, Mt, !1), m(this, vr, /* @__PURE__ */ new Set()), m(this, _r, /* @__PURE__ */ new Set()), m(this, Te, null), m(this, Ur, fs(() => (y(Te, this, bt(s(He, this))), () => {
305
305
  y(Te, this, null);
306
306
  }))), y(re, this, e), y(le, this, t), y(ht, this, (i) => {
307
307
  var a = $;
308
308
  a.b = this, a.f |= 128, r(i);
309
309
  }), this.parent = $.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), y(X, this, Yn(() => {
310
- if (z) {
310
+ if (F) {
311
311
  const i = s(hr, this);
312
312
  Er();
313
313
  const a = i.data === "[!";
314
314
  if (i.data.startsWith("[?")) {
315
315
  const l = JSON.parse(i.data.slice(2));
316
- b(F, this, vs).call(this, l);
317
- } else a ? b(F, this, _s).call(this) : b(F, this, hs).call(this);
318
- } else b(F, this, Tn).call(this);
319
- }, us)), z && y(re, this, P);
316
+ b(z, this, vs).call(this, l);
317
+ } else a ? b(z, this, _s).call(this) : b(z, this, hs).call(this);
318
+ } else b(z, this, Tn).call(this);
319
+ }, us)), F && y(re, this, P);
320
320
  }
321
321
  defer_effect(e) {
322
322
  $n(e, s(vr, this), s(_r, this));
@@ -328,7 +328,7 @@ var re = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), le =
328
328
  return !!s(le, this).pending;
329
329
  }
330
330
  update_pending_count(e, t) {
331
- b(F, this, Sn).call(this, e, t), y(He, this, s(He, this) + e), !(!s(Te, this) || s(Mt, this)) && (y(Mt, this, !0), Le(() => {
331
+ b(z, this, Sn).call(this, e, t), y(He, this, s(He, this) + e), !(!s(Te, this) || s(Mt, this)) && (y(Mt, this, !0), Le(() => {
332
332
  y(Mt, this, !1), s(Te, this) && Zt(s(Te, this), s(He, this));
333
333
  }));
334
334
  }
@@ -338,8 +338,8 @@ var re = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), le =
338
338
  error(e) {
339
339
  if (!s(le, this).onerror && !s(le, this).failed) throw e;
340
340
  E?.is_fork ? (s(oe, this) && E.skip_effect(s(oe, this)), s(Y, this) && E.skip_effect(s(Y, this)), s(ee, this) && E.skip_effect(s(ee, this)), E.oncommit(() => {
341
- b(F, this, Yr).call(this, e);
342
- })) : b(F, this, Yr).call(this, e);
341
+ b(z, this, Yr).call(this, e);
342
+ })) : b(z, this, Yr).call(this, e);
343
343
  }
344
344
  };
345
345
  function hs() {
@@ -350,7 +350,7 @@ function hs() {
350
350
  }
351
351
  }
352
352
  function vs(e) {
353
- const t = s(le, this).failed, { reset: r, invoke_onerror: n } = b(F, this, En).call(this, e);
353
+ const t = s(le, this).failed, { reset: r, invoke_onerror: n } = b(z, this, En).call(this, e);
354
354
  Le(n), t && y(ee, this, we(() => {
355
355
  t(s(re, this), () => e, () => r);
356
356
  }));
@@ -364,8 +364,8 @@ function En(e) {
364
364
  }
365
365
  t = !0, r && Zi(), s(ee, this) !== null && $t(s(ee, this), () => {
366
366
  y(ee, this, null);
367
- }), b(F, this, Cr).call(this, () => {
368
- b(F, this, Tn).call(this);
367
+ }), b(z, this, Cr).call(this, () => {
368
+ b(z, this, Tn).call(this);
369
369
  });
370
370
  };
371
371
  return {
@@ -382,10 +382,10 @@ function En(e) {
382
382
  function _s() {
383
383
  const e = s(le, this).pending;
384
384
  e && (this.is_pending = !0, y(Y, this, we(() => e(s(re, this)))), Le(() => {
385
- var t = y(Pe, this, document.createDocumentFragment()), r = Fe();
386
- t.append(r), y(oe, this, b(F, this, Cr).call(this, () => we(() => s(ht, this).call(this, r)))), s(Ie, this) === 0 && (s(re, this).before(t), y(Pe, this, null), $t(s(Y, this), () => {
385
+ var t = y(Pe, this, document.createDocumentFragment()), r = ze();
386
+ t.append(r), y(oe, this, b(z, this, Cr).call(this, () => we(() => s(ht, this).call(this, r)))), s(Ie, this) === 0 && (s(re, this).before(t), y(Pe, this, null), $t(s(Y, this), () => {
387
387
  y(Y, this, null);
388
- }), b(F, this, xr).call(this, E));
388
+ }), b(z, this, xr).call(this, E));
389
389
  }));
390
390
  }
391
391
  function Tn() {
@@ -397,7 +397,7 @@ function Tn() {
397
397
  Jn(s(oe, this), e);
398
398
  const t = s(le, this).pending;
399
399
  y(Y, this, we(() => t(s(re, this))));
400
- } else b(F, this, xr).call(this, E);
400
+ } else b(z, this, xr).call(this, E);
401
401
  } catch (t) {
402
402
  this.error(t);
403
403
  }
@@ -409,7 +409,7 @@ function Cr(e) {
409
409
  var t = $, r = T, n = R;
410
410
  ue(s(X, this)), Z(s(X, this)), Ze(s(X, this).ctx);
411
411
  try {
412
- return De.ensure(), e();
412
+ return qe.ensure(), e();
413
413
  } catch (i) {
414
414
  return mn(i), null;
415
415
  } finally {
@@ -420,20 +420,20 @@ function Sn(e, t) {
420
420
  if (!this.has_pending_snippet()) {
421
421
  if (this.parent) {
422
422
  var r;
423
- b(F, r = this.parent, Sn).call(r, e, t);
423
+ b(z, r = this.parent, Sn).call(r, e, t);
424
424
  }
425
425
  return;
426
426
  }
427
- y(Ie, this, s(Ie, this) + e), s(Ie, this) === 0 && (b(F, this, xr).call(this, t), s(Y, this) && $t(s(Y, this), () => {
427
+ y(Ie, this, s(Ie, this) + e), s(Ie, this) === 0 && (b(z, this, xr).call(this, t), s(Y, this) && $t(s(Y, this), () => {
428
428
  y(Y, this, null);
429
429
  }), s(Pe, this) && (s(re, this).before(s(Pe, this)), y(Pe, this, null)));
430
430
  }
431
431
  function Yr(e) {
432
- s(oe, this) && (B(s(oe, this)), y(oe, this, null)), s(Y, this) && (B(s(Y, this)), y(Y, this, null)), s(ee, this) && (B(s(ee, this)), y(ee, this, null)), z && (fe(s(hr, this)), ts(), fe(vn()));
432
+ s(oe, this) && (B(s(oe, this)), y(oe, this, null)), s(Y, this) && (B(s(Y, this)), y(Y, this, null)), s(ee, this) && (B(s(ee, this)), y(ee, this, null)), F && (fe(s(hr, this)), ts(), fe(vn()));
433
433
  let t = s(le, this).failed;
434
434
  const r = (n) => {
435
- const { reset: i, invoke_onerror: a } = b(F, this, En).call(this, n);
436
- a(), t && y(ee, this, b(F, this, Cr).call(this, () => {
435
+ const { reset: i, invoke_onerror: a } = b(z, this, En).call(this, n);
436
+ a(), t && y(ee, this, b(z, this, Cr).call(this, () => {
437
437
  try {
438
438
  return we(() => {
439
439
  var l = $;
@@ -524,7 +524,7 @@ var st = /* @__PURE__ */ Symbol("obsolete");
524
524
  // @__NO_SIDE_EFFECTS__
525
525
  function ws(e, t, r) {
526
526
  let n = $;
527
- n === null && Di();
527
+ n === null && qi();
528
528
  var i = void 0, a = bt(j), l = !T, o = /* @__PURE__ */ new Set();
529
529
  return Ls(() => {
530
530
  var h = $, p = dn();
@@ -594,7 +594,7 @@ function Mn(e) {
594
594
  I(e, J);
595
595
  return;
596
596
  }
597
- ye || (q !== null ? (Pr() || E?.is_fork) && q.set(e, t) : Tr(e));
597
+ ye || (D !== null ? (Pr() || E?.is_fork) && D.set(e, t) : Tr(e));
598
598
  }
599
599
  function ms(e) {
600
600
  if (e.effects !== null)
@@ -606,10 +606,10 @@ function An(e) {
606
606
  if (e.effects !== null)
607
607
  for (const t of e.effects) t.teardown && t.fn !== null && et(t);
608
608
  }
609
- var Rn, Ut = null, Be = null, E = null, pr = null, q = null, gr = null, ut = !1, ar = !1, Qe = null, Yt = null, On = 0;
610
- var bs = 1, Gt = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), De = class Pn {
609
+ var Rn, Ut = null, Be = null, E = null, pr = null, D = null, gr = null, ut = !1, ar = !1, Qe = null, Yt = null, On = 0;
610
+ var bs = 1, Gt = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), qe = class Pn {
611
611
  constructor() {
612
- Sr(this, N), M(this, "id", bs++), m(this, Gt, !1), M(this, "linked", !0), m(this, Ne, null), m(this, Me, null), M(this, "async_deriveds", /* @__PURE__ */ new Map()), M(this, "current", /* @__PURE__ */ new Map()), M(this, "previous", /* @__PURE__ */ new Map()), m(this, Vt, /* @__PURE__ */ new Set()), m(this, At, /* @__PURE__ */ new Set()), m(this, Ue, 0), m(this, xe, /* @__PURE__ */ new Map()), m(this, at, null), m(this, K, []), m(this, wr, []), m(this, ze, /* @__PURE__ */ new Set()), m(this, pe, /* @__PURE__ */ new Set()), m(this, be, /* @__PURE__ */ new Map()), m(this, Wt, /* @__PURE__ */ new Set()), M(this, "is_fork", !1), m(this, lt, !1), Be === null ? Ut = Be = this : (y(Me, Be, this), y(Ne, this, Be)), Be = this;
612
+ Sr(this, N), M(this, "id", bs++), m(this, Gt, !1), M(this, "linked", !0), m(this, Ne, null), m(this, Me, null), M(this, "async_deriveds", /* @__PURE__ */ new Map()), M(this, "current", /* @__PURE__ */ new Map()), M(this, "previous", /* @__PURE__ */ new Map()), m(this, Vt, /* @__PURE__ */ new Set()), m(this, At, /* @__PURE__ */ new Set()), m(this, Ue, 0), m(this, xe, /* @__PURE__ */ new Map()), m(this, at, null), m(this, K, []), m(this, wr, []), m(this, Fe, /* @__PURE__ */ new Set()), m(this, pe, /* @__PURE__ */ new Set()), m(this, be, /* @__PURE__ */ new Map()), m(this, Wt, /* @__PURE__ */ new Set()), M(this, "is_fork", !1), m(this, lt, !1), Be === null ? Ut = Be = this : (y(Me, Be, this), y(Ne, this, Be)), Be = this;
613
613
  }
614
614
  skip_effect(t) {
615
615
  s(be, this).has(t) || s(be, this).set(t, {
@@ -624,24 +624,24 @@ var bs = 1, Gt = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap
624
624
  for (var i of n.d)
625
625
  I(i, G), r(i);
626
626
  for (i of n.m)
627
- I(i, qe), r(i);
627
+ I(i, De), r(i);
628
628
  }
629
629
  s(Wt, this).add(t);
630
630
  }
631
631
  capture(t, r, n = !1) {
632
- t.v !== j && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), q?.set(t, r)), this.is_fork || (t.v = r);
632
+ t.v !== j && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), D?.set(t, r)), this.is_fork || (t.v = r);
633
633
  }
634
634
  activate() {
635
635
  E = this;
636
636
  }
637
637
  deactivate() {
638
- E = null, q = null;
638
+ E = null, D = null;
639
639
  }
640
640
  flush() {
641
641
  try {
642
642
  ar = !0, E = this, b(N, this, Kt).call(this);
643
643
  } finally {
644
- On = 0, gr = null, Qe = null, Yt = null, ar = !1, E = null, q = null, We.clear();
644
+ On = 0, gr = null, Qe = null, Yt = null, ar = !1, E = null, D = null, We.clear();
645
645
  }
646
646
  }
647
647
  discard() {
@@ -669,7 +669,7 @@ var bs = 1, Gt = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap
669
669
  }));
670
670
  }
671
671
  transfer_effects(t, r) {
672
- for (const n of t) s(ze, this).add(n);
672
+ for (const n of t) s(Fe, this).add(n);
673
673
  for (const n of r) s(pe, this).add(n);
674
674
  t.clear(), r.clear();
675
675
  }
@@ -693,11 +693,11 @@ var bs = 1, Gt = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap
693
693
  }
694
694
  apply() {
695
695
  if (!ge || !this.is_fork && s(Ne, this) === null && s(Me, this) === null) {
696
- q = null;
696
+ D = null;
697
697
  return;
698
698
  }
699
- q = /* @__PURE__ */ new Map();
700
- for (const [r, [n]] of this.current) q.set(r, n);
699
+ D = /* @__PURE__ */ new Map();
700
+ for (const [r, [n]] of this.current) D.set(r, n);
701
701
  for (let r = Ut; r !== null; r = s(Me, r))
702
702
  if (!(r === this || r.is_fork)) {
703
703
  var t = !1;
@@ -709,7 +709,7 @@ var bs = 1, Gt = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap
709
709
  }
710
710
  }
711
711
  if (!t)
712
- for (const [n, i] of r.previous) q.has(n) || q.set(n, i);
712
+ for (const [n, i] of r.previous) D.has(n) || D.set(n, i);
713
713
  }
714
714
  }
715
715
  schedule(t) {
@@ -730,7 +730,7 @@ var bs = 1, Gt = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap
730
730
  s(K, this).push(r);
731
731
  }
732
732
  };
733
- Rn = De;
733
+ Rn = qe;
734
734
  function Vr() {
735
735
  if (this.is_fork) return !0;
736
736
  for (const r of s(xe, this).keys()) {
@@ -747,10 +747,10 @@ function Vr() {
747
747
  }
748
748
  function Kt() {
749
749
  y(Gt, this, !0), On++ > 1e3 && (b(N, this, Xt).call(this), Ts());
750
- for (const o of s(ze, this))
750
+ for (const o of s(Fe, this))
751
751
  s(pe, this).delete(o), I(o, G), this.schedule(o);
752
752
  for (const o of s(pe, this))
753
- I(o, qe), this.schedule(o);
753
+ I(o, De), this.schedule(o);
754
754
  const e = s(K, this);
755
755
  y(K, this, []), this.apply();
756
756
  var t = Qe = [], r = [], n = Yt = [];
@@ -774,7 +774,7 @@ function Kt() {
774
774
  b(N, this, ot).call(this, r), b(N, this, ot).call(this, t), b(N, a, ks).call(a, this);
775
775
  return;
776
776
  }
777
- s(ze, this).clear(), s(pe, this).clear();
777
+ s(Fe, this).clear(), s(pe, this).clear();
778
778
  for (const o of s(Vt, this)) o(this);
779
779
  s(Vt, this).clear(), pr = this, Kr(r), Kr(t), pr = null, s(at, this)?.resolve();
780
780
  var l = E;
@@ -822,7 +822,7 @@ function ks(e) {
822
822
  const i = this.async_deriveds.get(r);
823
823
  i && n.promise.then(i.resolve).catch(i.reject);
824
824
  }
825
- e.async_deriveds.clear(), this.transfer_effects(s(ze, e), s(pe, e));
825
+ e.async_deriveds.clear(), this.transfer_effects(s(Fe, e), s(pe, e));
826
826
  const t = (r) => {
827
827
  var n = r.reactions;
828
828
  if (n !== null && !((r.f & 2) !== 0 && (r.f & 6144) === 0))
@@ -839,7 +839,7 @@ function ks(e) {
839
839
  this.oncommit(() => e.discard()), b(N, e, Xt).call(e), E = this, b(N, this, Kt).call(this);
840
840
  }
841
841
  function ot(e) {
842
- for (var t = 0; t < e.length; t += 1) $n(e[t], s(ze, this), s(pe, this));
842
+ for (var t = 0; t < e.length; t += 1) $n(e[t], s(Fe, this), s(pe, this));
843
843
  }
844
844
  function Es() {
845
845
  for (let v = Ut; v !== null; v = s(Me, v)) {
@@ -874,7 +874,7 @@ function Es() {
874
874
  return f ? f[0] !== u[0] || f[1] !== u[1] : !0;
875
875
  }).map(([c]) => c);
876
876
  if (h.length > 0)
877
- for (const c of s(wr, this)) (c.f & 155648) === 0 && Ar(c, h, l) && ((c.f & 4194320) !== 0 ? (I(c, G), v.schedule(c)) : s(ze, v).add(c));
877
+ for (const c of s(wr, this)) (c.f & 155648) === 0 && Ar(c, h, l) && ((c.f & 4194320) !== 0 ? (I(c, G), v.schedule(c)) : s(Fe, v).add(c));
878
878
  if (s(K, v).length > 0 && !s(lt, v)) {
879
879
  v.apply();
880
880
  for (var p of s(K, v)) b(N, v, In).call(v, p, [], []);
@@ -952,7 +952,7 @@ function Ar(e, t, r) {
952
952
  const n = r.get(e);
953
953
  if (n !== void 0) return n;
954
954
  if (e.deps !== null) for (const i of e.deps) {
955
- if (Ft.call(t, i)) return !0;
955
+ if (zt.call(t, i)) return !0;
956
956
  if ((i.f & 2) !== 0 && Ar(i, t, r))
957
957
  return r.set(i, !0), !0;
958
958
  }
@@ -1008,19 +1008,19 @@ function x(e, t, r = !1) {
1008
1008
  function Zt(e, t, r = null) {
1009
1009
  if (!e.equals(t)) {
1010
1010
  We.set(e, ye ? t : e.v);
1011
- var n = De.ensure();
1011
+ var n = qe.ensure();
1012
1012
  if (n.capture(e, t), (e.f & 2) !== 0) {
1013
1013
  const i = e;
1014
- (e.f & 2048) !== 0 && Mr(i), q === null && Tr(i);
1014
+ (e.f & 2048) !== 0 && Mr(i), D === null && Tr(i);
1015
1015
  }
1016
- e.wv = ei(), zn(e, G, r), mt() && $ !== null && ($.f & 1024) !== 0 && ($.f & 96) === 0 && (V === null ? Ds([e]) : V.push(e)), !n.is_fork && Jt.size > 0 && !Ln && xs();
1016
+ e.wv = ei(), Fn(e, G, r), mt() && $ !== null && ($.f & 1024) !== 0 && ($.f & 96) === 0 && (V === null ? qs([e]) : V.push(e)), !n.is_fork && Jt.size > 0 && !Ln && xs();
1017
1017
  }
1018
1018
  return t;
1019
1019
  }
1020
1020
  function xs() {
1021
1021
  Ln = !1;
1022
1022
  for (const e of Jt) {
1023
- (e.f & 1024) !== 0 && I(e, qe);
1023
+ (e.f & 1024) !== 0 && I(e, De);
1024
1024
  let t;
1025
1025
  try {
1026
1026
  t = kt(e);
@@ -1034,7 +1034,7 @@ function xs() {
1034
1034
  function ct(e) {
1035
1035
  x(e, e.v + 1);
1036
1036
  }
1037
- function zn(e, t, r) {
1037
+ function Fn(e, t, r) {
1038
1038
  var n = e.reactions;
1039
1039
  if (n !== null)
1040
1040
  for (var i = mt(), a = n.length, l = 0; l < a; l++) {
@@ -1044,7 +1044,7 @@ function zn(e, t, r) {
1044
1044
  if (p && I(o, t), (h & 131072) !== 0) Jt.add(o);
1045
1045
  else if ((h & 2) !== 0) {
1046
1046
  var v = o;
1047
- q?.delete(v), (h & 65536) === 0 && (h & 512 && ($ === null || ($.f & 2097152) === 0) && (o.f |= gt), zn(v, qe, r));
1047
+ D?.delete(v), (h & 65536) === 0 && (h & 512 && ($ === null || ($.f & 2097152) === 0) && (o.f |= gt), Fn(v, De, r));
1048
1048
  } else if (p) {
1049
1049
  var c = o;
1050
1050
  (h & 16) !== 0 && ae !== null && ae.add(c), r !== null ? r.push(c) : Rr(c);
@@ -1170,43 +1170,43 @@ function Ae(e) {
1170
1170
  function Ms(e, t) {
1171
1171
  return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Cs.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1172
1172
  }
1173
- var Xr, As, Fn, qn, Dn;
1173
+ var Xr, As, zn, Dn, qn;
1174
1174
  function yr() {
1175
1175
  if (Xr === void 0) {
1176
- Xr = window, As = document, Fn = /Firefox/.test(navigator.userAgent);
1176
+ Xr = window, As = document, zn = /Firefox/.test(navigator.userAgent);
1177
1177
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1178
- qn = Oe(t, "firstChild").get, Dn = Oe(t, "nextSibling").get, qr(e) && (e[Li] = void 0, e[dr] = null, e[zi] = void 0, e.__e = void 0), qr(r) && (r[Nt] = void 0);
1178
+ Dn = Oe(t, "firstChild").get, qn = Oe(t, "nextSibling").get, Dr(e) && (e[Li] = void 0, e[dr] = null, e[Fi] = void 0, e.__e = void 0), Dr(r) && (r[Nt] = void 0);
1179
1179
  }
1180
1180
  }
1181
- function Fe(e = "") {
1181
+ function ze(e = "") {
1182
1182
  return document.createTextNode(e);
1183
1183
  }
1184
1184
  // @__NO_SIDE_EFFECTS__
1185
1185
  function _t(e) {
1186
- return qn.call(e);
1186
+ return Dn.call(e);
1187
1187
  }
1188
1188
  // @__NO_SIDE_EFFECTS__
1189
1189
  function ke(e) {
1190
- return Dn.call(e);
1190
+ return qn.call(e);
1191
1191
  }
1192
1192
  function Rt(e, t) {
1193
- if (!z) return /* @__PURE__ */ _t(e);
1193
+ if (!F) return /* @__PURE__ */ _t(e);
1194
1194
  var r = /* @__PURE__ */ _t(P);
1195
- if (r === null) r = P.appendChild(Fe());
1195
+ if (r === null) r = P.appendChild(ze());
1196
1196
  else if (t && r.nodeType !== 3) {
1197
- var n = Fe();
1197
+ var n = ze();
1198
1198
  return r?.before(n), fe(n), n;
1199
1199
  }
1200
1200
  return t && Hn(r), fe(r), r;
1201
1201
  }
1202
1202
  function lr(e, t = 1, r = !1) {
1203
- let n = z ? P : e;
1203
+ let n = F ? P : e;
1204
1204
  for (var i; t--; )
1205
1205
  i = n, n = /* @__PURE__ */ ke(n);
1206
- if (!z) return n;
1206
+ if (!F) return n;
1207
1207
  if (r) {
1208
1208
  if (n?.nodeType !== 3) {
1209
- var a = Fe();
1209
+ var a = ze();
1210
1210
  return n === null ? i?.after(a) : n.before(a), fe(a), a;
1211
1211
  }
1212
1212
  Hn(n);
@@ -1256,7 +1256,7 @@ function ce(e, t) {
1256
1256
  };
1257
1257
  E?.register_created_effect(n);
1258
1258
  var i = n;
1259
- if ((e & 4) !== 0) Qe !== null ? Qe.push(n) : De.ensure().schedule(n);
1259
+ if ((e & 4) !== 0) Qe !== null ? Qe.push(n) : qe.ensure().schedule(n);
1260
1260
  else if (t !== null) {
1261
1261
  try {
1262
1262
  et(n);
@@ -1290,14 +1290,14 @@ function Bn(e) {
1290
1290
  return ce(4 | Ii, e);
1291
1291
  }
1292
1292
  function Ws(e) {
1293
- De.ensure();
1293
+ qe.ensure();
1294
1294
  const t = ce(64 | tt, e);
1295
1295
  return () => {
1296
1296
  B(t);
1297
1297
  };
1298
1298
  }
1299
1299
  function js(e) {
1300
- De.ensure();
1300
+ qe.ensure();
1301
1301
  const t = ce(64 | tt, e);
1302
1302
  return (r = {}) => new Promise((n) => {
1303
1303
  r.outro ? $t(t, () => {
@@ -1351,7 +1351,7 @@ function Nr(e, t = !1) {
1351
1351
  (r.f & 64) !== 0 ? r.parent = null : B(r, t), r = n;
1352
1352
  }
1353
1353
  }
1354
- function zs(e) {
1354
+ function Fs(e) {
1355
1355
  for (var t = e.first; t !== null; ) {
1356
1356
  var r = t.next;
1357
1357
  (t.f & 32) === 0 && B(t), t = r;
@@ -1359,14 +1359,14 @@ function zs(e) {
1359
1359
  }
1360
1360
  function B(e, t = !0) {
1361
1361
  var r = !1;
1362
- (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Fs(e.nodes.start, e.nodes.end), r = !0), e.f |= Dr, Nr(e, t && !r), pt(e, 0);
1362
+ (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (zs(e.nodes.start, e.nodes.end), r = !0), e.f |= qr, Nr(e, t && !r), pt(e, 0);
1363
1363
  var n = e.nodes && e.nodes.t;
1364
1364
  if (n !== null) for (const a of n) a.stop();
1365
- Gn(e), e.f ^= Dr, e.f |= Pi;
1365
+ Gn(e), e.f ^= qr, e.f |= Pi;
1366
1366
  var i = e.parent;
1367
1367
  i !== null && i.first !== null && Vn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1368
1368
  }
1369
- function Fs(e, t) {
1369
+ function zs(e, t) {
1370
1370
  for (; e !== null; ) {
1371
1371
  var r = e === t ? null : /* @__PURE__ */ ke(e);
1372
1372
  e.remove(), e = r;
@@ -1408,7 +1408,7 @@ function Zr(e) {
1408
1408
  }
1409
1409
  function Xn(e, t) {
1410
1410
  if ((e.f & 8192) !== 0) {
1411
- e.f ^= br, (e.f & 1024) === 0 && (I(e, G), De.ensure().schedule(e));
1411
+ e.f ^= br, (e.f & 1024) === 0 && (I(e, G), qe.ensure().schedule(e));
1412
1412
  for (var r = e.first; r !== null; ) {
1413
1413
  var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
1414
1414
  Xn(r, i ? t : !1), r = n;
@@ -1425,7 +1425,7 @@ function Jn(e, t) {
1425
1425
  t.append(r), r = i;
1426
1426
  }
1427
1427
  }
1428
- var qs = null, jt = !1, ye = !1;
1428
+ var Ds = null, jt = !1, ye = !1;
1429
1429
  function Qr(e) {
1430
1430
  ye = e;
1431
1431
  }
@@ -1442,7 +1442,7 @@ function Zn(e) {
1442
1442
  T !== null && (!ge || (T.f & 2) !== 0) && (ne ?? (ne = /* @__PURE__ */ new Set())).add(e);
1443
1443
  }
1444
1444
  var H = null, U = 0, V = null;
1445
- function Ds(e) {
1445
+ function qs(e) {
1446
1446
  V = e;
1447
1447
  }
1448
1448
  var Qn = 1, Re = 0, je = Re;
@@ -1460,7 +1460,7 @@ function kt(e) {
1460
1460
  var a = r[i];
1461
1461
  if (kt(a) && Mn(a), a.wv > e.wv) return !0;
1462
1462
  }
1463
- (t & 512) !== 0 && q === null && I(e, J);
1463
+ (t & 512) !== 0 && D === null && I(e, J);
1464
1464
  }
1465
1465
  return !1;
1466
1466
  }
@@ -1469,7 +1469,7 @@ function ti(e, t, r = !0) {
1469
1469
  if (n !== null && !(!ge && ne !== null && ne.has(e)))
1470
1470
  for (var i = 0; i < n.length; i++) {
1471
1471
  var a = n[i];
1472
- (a.f & 2) !== 0 ? ti(a, t, !1) : t === a && (r ? I(a, G) : (a.f & 1024) !== 0 && I(a, qe), Rr(a));
1472
+ (a.f & 2) !== 0 ? ti(a, t, !1) : t === a && (r ? I(a, G) : (a.f & 1024) !== 0 && I(a, De), Rr(a));
1473
1473
  }
1474
1474
  }
1475
1475
  function ri(e) {
@@ -1514,7 +1514,7 @@ function Hs(e, t) {
1514
1514
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
1515
1515
  }
1516
1516
  }
1517
- if (r === null && (t.f & 2) !== 0 && (H === null || !Ft.call(H, t))) {
1517
+ if (r === null && (t.f & 2) !== 0 && (H === null || !zt.call(H, t))) {
1518
1518
  var a = t;
1519
1519
  (a.f & 512) !== 0 && (a.f ^= 512, a.f &= ~gt), a.v !== j && Tr(a), a.ac !== null && tr(() => {
1520
1520
  a.ac.abort(wt), a.ac = null, I(a, G);
@@ -1534,7 +1534,7 @@ function et(e) {
1534
1534
  if ($ = e, jt = (t & 96) === 0, 0)
1535
1535
  var i, a;
1536
1536
  try {
1537
- (t & 16777232) !== 0 ? zs(e) : Nr(e), Gn(e);
1537
+ (t & 16777232) !== 0 ? Fs(e) : Nr(e), Gn(e);
1538
1538
  var l = ri(e);
1539
1539
  if (e.teardown = typeof l == "function" ? l : null, e.wv = Qn, 0)
1540
1540
  for (var o of e.deps) ;
@@ -1545,15 +1545,15 @@ function et(e) {
1545
1545
  }
1546
1546
  function d(e) {
1547
1547
  var t = (e.f & 2) !== 0;
1548
- if (qs?.add(e), T !== null && !te && !($ !== null && ($.f & 16384) !== 0) && (ne === null || !ne.has(e))) {
1548
+ if (Ds?.add(e), T !== null && !te && !($ !== null && ($.f & 16384) !== 0) && (ne === null || !ne.has(e))) {
1549
1549
  var r = T.deps;
1550
1550
  if ((T.f & 2097152) !== 0)
1551
1551
  e.rv < Re && (e.rv = Re, H === null && r !== null && r[U] === e ? U++ : H === null ? H = [e] : H.push(e));
1552
1552
  else {
1553
1553
  var n;
1554
- (n = T).deps ?? (n.deps = []), Ft.call(T.deps, e) || T.deps.push(e);
1554
+ (n = T).deps ?? (n.deps = []), zt.call(T.deps, e) || T.deps.push(e);
1555
1555
  var i = e.reactions;
1556
- i === null ? e.reactions = [T] : Ft.call(i, T) || i.push(T);
1556
+ i === null ? e.reactions = [T] : zt.call(i, T) || i.push(T);
1557
1557
  }
1558
1558
  }
1559
1559
  if (0) {
@@ -1574,7 +1574,7 @@ function d(e) {
1574
1574
  var v = (h.f & 512) === 0 && !te && T !== null && (jt || (T.f & 512) !== 0), c = (h.f & $r) === 0;
1575
1575
  kt(h) && (v && (h.f |= 512), Mn(h)), v && !c && (An(h), ni(h));
1576
1576
  }
1577
- if (q?.has(e)) return q.get(e);
1577
+ if (D?.has(e)) return D.get(e);
1578
1578
  if ((e.f & 8388608) !== 0) throw e.v;
1579
1579
  return e.v;
1580
1580
  }
@@ -1614,7 +1614,7 @@ function nn(e) {
1614
1614
  h <= p && (l = h);
1615
1615
  }
1616
1616
  if (a = i[l] || e.target, a !== t) {
1617
- Dt(e, "currentTarget", {
1617
+ qt(e, "currentTarget", {
1618
1618
  configurable: !0,
1619
1619
  get() {
1620
1620
  return a || r;
@@ -1665,10 +1665,10 @@ function Lt(e, t) {
1665
1665
  function Et(e, t) {
1666
1666
  var r = (t & 1) !== 0, n = (t & 2) !== 0, i, a = !e.startsWith("<!>");
1667
1667
  return () => {
1668
- if (z)
1668
+ if (F)
1669
1669
  return Lt(P, null), P;
1670
1670
  i === void 0 && (i = Gs(a ? e : "<!>" + e), r || (i = /* @__PURE__ */ _t(i)));
1671
- var l = n || Fn ? document.importNode(i, !0) : i.cloneNode(!0);
1671
+ var l = n || zn ? document.importNode(i, !0) : i.cloneNode(!0);
1672
1672
  if (r) {
1673
1673
  var o = /* @__PURE__ */ _t(l), h = l.lastChild;
1674
1674
  Lt(o, h);
@@ -1677,7 +1677,7 @@ function Et(e, t) {
1677
1677
  };
1678
1678
  }
1679
1679
  function Ve(e, t) {
1680
- if (z) {
1680
+ if (F) {
1681
1681
  var r = $;
1682
1682
  ((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = P), Er();
1683
1683
  return;
@@ -1764,7 +1764,7 @@ function si(e, t) {
1764
1764
  }
1765
1765
  function Qs(e, t) {
1766
1766
  yr(), t.intro = t.intro ?? !1;
1767
- const r = t.target, n = z, i = P;
1767
+ const r = t.target, n = F, i = P;
1768
1768
  try {
1769
1769
  for (var a = /* @__PURE__ */ _t(r); a && (a.nodeType !== 8 || a.data !== "["); ) a = /* @__PURE__ */ ke(a);
1770
1770
  if (!a) throw Je;
@@ -1786,12 +1786,12 @@ var Pt = /* @__PURE__ */ new Map();
1786
1786
  function ai(e, { target: t, anchor: r, props: n = {}, events: i, context: a, intro: l = !0, transformError: o }) {
1787
1787
  yr();
1788
1788
  var h = void 0, p = js(() => {
1789
- var v = r ?? t.appendChild(Fe());
1789
+ var v = r ?? t.appendChild(ze());
1790
1790
  cs(v, { pending: () => {
1791
1791
  } }, (f) => {
1792
1792
  gn({});
1793
1793
  var _ = R;
1794
- if (a && (_.c = a), i && (n.$$events = i), z && Lt(f, null), sn = l, h = e(f, n) || {}, sn = !0, z && ($.nodes.end = P, P === null || P.nodeType !== 8 || P.data !== "]"))
1794
+ if (a && (_.c = a), i && (n.$$events = i), F && Lt(f, null), sn = l, h = e(f, n) || {}, sn = !0, F && ($.nodes.end = P, P === null || P.nodeType !== 8 || P.data !== "]"))
1795
1795
  throw er(), Je;
1796
1796
  wn();
1797
1797
  }, o);
@@ -1846,7 +1846,7 @@ var _e = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Q =
1846
1846
  const h = () => {
1847
1847
  if (Array.from(s(_e, this).values()).includes(l)) {
1848
1848
  var p = document.createDocumentFragment();
1849
- Jn(o, p), p.append(Fe()), s(Q, this).set(l, {
1849
+ Jn(o, p), p.append(ze()), s(Q, this).set(l, {
1850
1850
  effect: o,
1851
1851
  fragment: p
1852
1852
  });
@@ -1865,7 +1865,7 @@ var _e = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Q =
1865
1865
  ensure(e, t) {
1866
1866
  var r = E, n = Os();
1867
1867
  if (t && !s(me, this).has(e) && !s(Q, this).has(e)) if (n) {
1868
- var i = document.createDocumentFragment(), a = Fe();
1868
+ var i = document.createDocumentFragment(), a = ze();
1869
1869
  i.append(a), s(Q, this).set(e, {
1870
1870
  effect: we(() => t(a)),
1871
1871
  fragment: i
@@ -1876,11 +1876,11 @@ var _e = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Q =
1876
1876
  for (const [l, o] of s(Q, this)) l === e ? r.unskip_effect(o.effect) : r.skip_effect(o.effect);
1877
1877
  r.oncommit(s(fr, this)), r.ondiscard(s(an, this));
1878
1878
  } else
1879
- z && (this.anchor = P), s(fr, this).call(this, r);
1879
+ F && (this.anchor = P), s(fr, this).call(this, r);
1880
1880
  }
1881
1881
  };
1882
1882
  function ra(e) {
1883
- R === null && qi("onMount"), yt && R.l !== null ? na(R).m.push(e) : Ge(() => {
1883
+ R === null && Di("onMount"), yt && R.l !== null ? na(R).m.push(e) : Ge(() => {
1884
1884
  const t = rr(e);
1885
1885
  if (typeof t == "function") return t;
1886
1886
  });
@@ -1895,10 +1895,10 @@ function na(e) {
1895
1895
  }
1896
1896
  function It(e, t, r = !1) {
1897
1897
  var n;
1898
- z && (n = P, Er());
1898
+ F && (n = P, Er());
1899
1899
  var i = new ta(e), a = r ? kr : 0;
1900
1900
  function l(o, h) {
1901
- if (z) {
1901
+ if (F) {
1902
1902
  var p = rs(n);
1903
1903
  if (o !== parseInt(p.substring(1))) {
1904
1904
  var v = vn();
@@ -1924,10 +1924,10 @@ function ia(e, t) {
1924
1924
  }
1925
1925
  });
1926
1926
  }
1927
- var sa = /* @__PURE__ */ Symbol("is custom element"), aa = /* @__PURE__ */ Symbol("is html"), la = Fi ? "link" : "LINK";
1927
+ var sa = /* @__PURE__ */ Symbol("is custom element"), aa = /* @__PURE__ */ Symbol("is html"), la = zi ? "link" : "LINK";
1928
1928
  function ln(e, t, r, n) {
1929
1929
  var i = oa(e);
1930
- if (z && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === la)) {
1930
+ if (F && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === la)) {
1931
1931
  n || void 0;
1932
1932
  return;
1933
1933
  }
@@ -2065,7 +2065,7 @@ var Se = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), da =
2065
2065
  transformError: e.transformError
2066
2066
  })), !ge && (!e?.props?.$$host || e.sync === !1) && Ye(), y(Se, this, n.$$events);
2067
2067
  for (const i of Object.keys(s(se, this)))
2068
- i === "$set" || i === "$destroy" || i === "$on" || Dt(this, i, {
2068
+ i === "$set" || i === "$destroy" || i === "$on" || qt(this, i, {
2069
2069
  get() {
2070
2070
  return s(se, this)[i];
2071
2071
  },
@@ -2124,7 +2124,7 @@ typeof HTMLElement == "function" && (fi = class extends HTMLElement {
2124
2124
  for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
2125
2125
  for (const n of this.attributes) {
2126
2126
  const i = this.$$g_p(n.name);
2127
- i in this.$$d || (this.$$d[i] = zt(i, n.value, this.$$p_d, "toProp"));
2127
+ i in this.$$d || (this.$$d[i] = Ft(i, n.value, this.$$p_d, "toProp"));
2128
2128
  }
2129
2129
  for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2130
2130
  this.$$c = ca({
@@ -2138,10 +2138,10 @@ typeof HTMLElement == "function" && (fi = class extends HTMLElement {
2138
2138
  }), this.$$me = Ws(() => {
2139
2139
  Ir(() => {
2140
2140
  this.$$r = !0;
2141
- for (const n of qt(this.$$c)) {
2141
+ for (const n of Dt(this.$$c)) {
2142
2142
  if (!this.$$p_d[n]?.reflect) continue;
2143
2143
  this.$$d[n] = this.$$c[n];
2144
- const i = zt(n, this.$$d[n], this.$$p_d, "toAttribute");
2144
+ const i = Ft(n, this.$$d[n], this.$$p_d, "toAttribute");
2145
2145
  i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
2146
2146
  }
2147
2147
  this.$$r = !1;
@@ -2155,7 +2155,7 @@ typeof HTMLElement == "function" && (fi = class extends HTMLElement {
2155
2155
  }
2156
2156
  }
2157
2157
  attributeChangedCallback(e, t, r) {
2158
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = zt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2158
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ft(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2159
2159
  }
2160
2160
  disconnectedCallback() {
2161
2161
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2163,10 +2163,10 @@ typeof HTMLElement == "function" && (fi = class extends HTMLElement {
2163
2163
  });
2164
2164
  }
2165
2165
  $$g_p(e) {
2166
- return qt(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2166
+ return Dt(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2167
2167
  }
2168
2168
  });
2169
- function zt(e, t, r, n) {
2169
+ function Ft(e, t, r, n) {
2170
2170
  const i = r[e]?.type;
2171
2171
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
2172
2172
  if (n === "toAttribute") switch (i) {
@@ -2204,29 +2204,33 @@ function va(e, t, r, n, i, a) {
2204
2204
  super(e, r, i), this.$$p_d = t;
2205
2205
  }
2206
2206
  static get observedAttributes() {
2207
- return qt(t).map((o) => (t[o].attribute || o).toLowerCase());
2207
+ return Dt(t).map((o) => (t[o].attribute || o).toLowerCase());
2208
2208
  }
2209
2209
  };
2210
- return qt(t).forEach((o) => {
2211
- Dt(l.prototype, o, {
2210
+ return Dt(t).forEach((o) => {
2211
+ qt(l.prototype, o, {
2212
2212
  get() {
2213
2213
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
2214
2214
  },
2215
2215
  set(h) {
2216
- h = zt(o, h, t), this.$$d[o] = h;
2216
+ h = Ft(o, h, t), this.$$d[o] = h;
2217
2217
  var p = this.$$c;
2218
2218
  p && (Oe(p, o)?.get ? p[o] = h : p.$set({ [o]: h }));
2219
2219
  }
2220
2220
  });
2221
2221
  }), n.forEach((o) => {
2222
- Dt(l.prototype, o, { get() {
2222
+ qt(l.prototype, o, { get() {
2223
2223
  return this.$$c?.[o];
2224
2224
  } });
2225
2225
  }), a && (l = a(l)), e.element = l, l;
2226
2226
  }
2227
2227
  var _a = /* @__PURE__ */ Et('<div class="pie-tool-calculator__loading svelte-sun9kf">Loading calculator...</div>'), pa = /* @__PURE__ */ Et('<div class="pie-tool-calculator__error-details svelte-sun9kf"> </div>'), ga = /* @__PURE__ */ Et('<div class="pie-tool-calculator__loading pie-tool-calculator__loading--error svelte-sun9kf">Calculator failed to initialize. <!></div>'), wa = /* @__PURE__ */ Et('<div class="pie-tool-calculator notranslate svelte-sun9kf" role="region" tabindex="-1" aria-label="Calculator tool" translate="no" style="width: 100%; height: 100%;"><div class="pie-tool-calculator__container svelte-sun9kf"></div> <!> <!></div>'), ya = /* @__PURE__ */ Et('<div class="pie-tool-calculator__context-host svelte-sun9kf"><!></div>'), ma = {
2228
2228
  hash: "svelte-sun9kf",
2229
- code: ".pie-tool-calculator__context-host.svelte-sun9kf {width:100%;height:100%;display:flex;min-height:0;}.pie-tool-calculator.svelte-sun9kf {position:relative;background:white;overflow:hidden;min-width:100%;min-height:0;display:flex;flex-direction:column;flex:1 1 auto;}.pie-tool-calculator__container.svelte-sun9kf {background:white;width:100%;height:100%;min-width:100%;min-height:100%;position:relative;overflow:hidden;}.pie-tool-calculator__loading.svelte-sun9kf {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255, 255, 255, 0.9);color:#334155;font-size:0.9rem;z-index:2;}.pie-tool-calculator__loading--error.svelte-sun9kf {color:#b91c1c;flex-direction:column;gap:0.5rem;padding:0.75rem;text-align:center;}.pie-tool-calculator__error-details.svelte-sun9kf {font-size:0.8rem;line-height:1.2;color:#7f1d1d;max-width:95%;word-break:break-word;}.pie-tool-calculator__container .dcg-container {width:100% !important;height:100% !important;}"
2229
+ code: `.pie-tool-calculator__context-host.svelte-sun9kf {width:100%;height:100%;display:flex;min-height:0;}.pie-tool-calculator.svelte-sun9kf {position:relative;
2230
+ /* Frame follows the theme; the Desmos mount below keeps its own white,
2231
+ because the third-party calculator paints a white UI and a themed mount
2232
+ would only band it. */background:var(--pie-white, white);overflow:hidden;min-width:100%;min-height:0;display:flex;flex-direction:column;flex:1 1 auto;}.pie-tool-calculator__container.svelte-sun9kf {
2233
+ /* Desmos paints its own white UI here — deliberately not themed. */background:white;width:100%;height:100%;min-width:100%;min-height:100%;position:relative;overflow:hidden;}.pie-tool-calculator__loading.svelte-sun9kf {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb, var(--pie-white, #fff) 90%, transparent);color:var(--pie-text, #334155);font-size:0.9rem;z-index:2;}.pie-tool-calculator__loading--error.svelte-sun9kf {color:var(--pie-incorrect, #b91c1c);flex-direction:column;gap:0.5rem;padding:0.75rem;text-align:center;}.pie-tool-calculator__error-details.svelte-sun9kf {font-size:0.8rem;line-height:1.2;color:var(--pie-incorrect, #7f1d1d);max-width:95%;word-break:break-word;}.pie-tool-calculator__container .dcg-container {width:100% !important;height:100% !important;}`
2230
2234
  };
2231
2235
  function ba(e, t) {
2232
2236
  gn(t, !0), ia(e, ma);
@@ -2413,23 +2417,23 @@ function ba(e, t) {
2413
2417
  }), Ge(() => {
2414
2418
  r() && d(u) && d(O) && jr();
2415
2419
  });
2416
- let D = null;
2420
+ let q = null;
2417
2421
  Ge(() => {
2418
2422
  if (r() && d(c) && d(u) && d(c).isConnected)
2419
- return D || (D = new ResizeObserver((g) => {
2423
+ return q || (q = new ResizeObserver((g) => {
2420
2424
  for (const S of g) if (!S.target.isConnected) {
2421
- D?.unobserve(S.target);
2425
+ q?.unobserve(S.target);
2422
2426
  return;
2423
2427
  }
2424
2428
  if (d(u)?.resize && d(c)?.isConnected && r()) try {
2425
2429
  d(u).resize();
2426
2430
  } catch (S) {
2427
- console.warn("[ToolCalculator] Error during resize:", S), D && d(c) && D.unobserve(d(c));
2431
+ console.warn("[ToolCalculator] Error during resize:", S), q && d(c) && q.unobserve(d(c));
2428
2432
  }
2429
- })), D.observe(d(c)), () => {
2430
- D && d(c) && D.unobserve(d(c)), D?.disconnect(), D = null;
2433
+ })), q.observe(d(c)), () => {
2434
+ q && d(c) && q.unobserve(d(c)), q?.disconnect(), q = null;
2431
2435
  };
2432
- D && (d(c) && D.unobserve(d(c)), D.disconnect(), D = null);
2436
+ q && (d(c) && q.unobserve(d(c)), q.disconnect(), q = null);
2433
2437
  });
2434
2438
  var vi = {
2435
2439
  get visible() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-players/pie-tool-calculator-desmos",
3
- "version": "0.3.65",
3
+ "version": "0.3.67",
4
4
  "type": "module",
5
5
  "description": "Calculator tool for PIE assessment player",
6
6
  "repository": {
@@ -40,9 +40,9 @@
40
40
  "unpkg": "./dist/pie-tool-calculator.js",
41
41
  "jsdelivr": "./dist/pie-tool-calculator.js",
42
42
  "dependencies": {
43
- "@pie-players/pie-assessment-toolkit": "0.3.65",
44
- "@pie-players/pie-context": "0.3.65",
45
- "@pie-players/pie-players-shared": "0.3.65"
43
+ "@pie-players/pie-assessment-toolkit": "0.3.67",
44
+ "@pie-players/pie-context": "0.3.67",
45
+ "@pie-players/pie-players-shared": "0.3.67"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@biomejs/biome": "^2.5.7",