@mateosuarezdev/flash 0.0.12 → 0.0.16

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/dist/index.js CHANGED
@@ -8,19 +8,19 @@
8
8
  * See LICENSE file for full terms.
9
9
  */
10
10
 
11
- import { n as H, s as w, g as I, c as m } from "./jsx-dev-runtime-dAReTOgq.js";
12
- import { F as Re } from "./jsx-dev-runtime-dAReTOgq.js";
13
- import { p as q, a as Z } from "./server-context-EvJ6E74m.js";
14
- var J = Symbol.for("preact-signals");
11
+ import { c as Ue, u as $e } from "./index-GxoBoxj9.js";
12
+ import { n as H, s as E, c as m } from "./vnode-tracking-BAFaVke9.js";
13
+ import { Fragment as We } from "./jsx-runtime.js";
14
+ var R = Symbol.for("preact-signals");
15
15
  function T() {
16
16
  if (p > 1)
17
17
  p--;
18
18
  else {
19
19
  for (var t, e = !1; S !== void 0; ) {
20
20
  var i = S;
21
- for (S = void 0, M++; i !== void 0; ) {
21
+ for (S = void 0, x++; i !== void 0; ) {
22
22
  var n = i.o;
23
- if (i.o = void 0, i.f &= -3, !(8 & i.f) && j(i)) try {
23
+ if (i.o = void 0, i.f &= -3, !(8 & i.f) && G(i)) try {
24
24
  i.c();
25
25
  } catch (r) {
26
26
  e || (t = r, e = !0);
@@ -28,10 +28,10 @@ function T() {
28
28
  i = n;
29
29
  }
30
30
  }
31
- if (M = 0, p--, e) throw t;
31
+ if (x = 0, p--, e) throw t;
32
32
  }
33
33
  }
34
- function Ne(t) {
34
+ function Ce(t) {
35
35
  if (p > 0) return t();
36
36
  p++;
37
37
  try {
@@ -41,7 +41,7 @@ function Ne(t) {
41
41
  }
42
42
  }
43
43
  var c = void 0;
44
- function K(t) {
44
+ function I(t) {
45
45
  var e = c;
46
46
  c = void 0;
47
47
  try {
@@ -50,8 +50,8 @@ function K(t) {
50
50
  c = e;
51
51
  }
52
52
  }
53
- var S = void 0, p = 0, M = 0, E = 0;
54
- function G(t) {
53
+ var S = void 0, p = 0, x = 0, w = 0;
54
+ function K(t) {
55
55
  if (c !== void 0) {
56
56
  var e = t.n;
57
57
  if (e === void 0 || e.t !== c)
@@ -63,13 +63,13 @@ function G(t) {
63
63
  function u(t, e) {
64
64
  this.v = t, this.i = 0, this.n = void 0, this.t = void 0, this.W = e?.watched, this.Z = e?.unwatched, this.name = e?.name;
65
65
  }
66
- u.prototype.brand = J;
66
+ u.prototype.brand = R;
67
67
  u.prototype.h = function() {
68
68
  return !0;
69
69
  };
70
70
  u.prototype.S = function(t) {
71
71
  var e = this, i = this.t;
72
- i !== t && t.e === void 0 && (t.x = i, this.t = t, i !== void 0 ? i.e = t : K(function() {
72
+ i !== t && t.e === void 0 && (t.x = i, this.t = t, i !== void 0 ? i.e = t : I(function() {
73
73
  var n;
74
74
  (n = e.W) == null || n.call(e);
75
75
  }));
@@ -78,7 +78,7 @@ u.prototype.U = function(t) {
78
78
  var e = this;
79
79
  if (this.t !== void 0) {
80
80
  var i = t.e, n = t.x;
81
- i !== void 0 && (i.x = n, t.e = void 0), n !== void 0 && (n.e = i, t.x = void 0), t === this.t && (this.t = n, n === void 0 && K(function() {
81
+ i !== void 0 && (i.x = n, t.e = void 0), n !== void 0 && (n.e = i, t.x = void 0), t === this.t && (this.t = n, n === void 0 && I(function() {
82
82
  var r;
83
83
  (r = e.Z) == null || r.call(e);
84
84
  }));
@@ -115,12 +115,12 @@ u.prototype.peek = function() {
115
115
  }
116
116
  };
117
117
  Object.defineProperty(u.prototype, "value", { get: function() {
118
- var t = G(this);
118
+ var t = K(this);
119
119
  return t !== void 0 && (t.i = this.i), this.v;
120
120
  }, set: function(t) {
121
121
  if (t !== this.v) {
122
- if (M > 100) throw new Error("Cycle detected");
123
- this.v = t, this.i++, E++, p++;
122
+ if (x > 100) throw new Error("Cycle detected");
123
+ this.v = t, this.i++, w++, p++;
124
124
  try {
125
125
  for (var e = this.t; e !== void 0; e = e.x) e.t.N();
126
126
  } finally {
@@ -128,14 +128,14 @@ Object.defineProperty(u.prototype, "value", { get: function() {
128
128
  }
129
129
  }
130
130
  } });
131
- function Ae(t, e) {
131
+ function Ee(t, e) {
132
132
  return new u(t, e);
133
133
  }
134
- function j(t) {
134
+ function G(t) {
135
135
  for (var e = t.s; e !== void 0; e = e.n) if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i) return !0;
136
136
  return !1;
137
137
  }
138
- function X(t) {
138
+ function j(t) {
139
139
  for (var e = t.s; e !== void 0; e = e.n) {
140
140
  var i = e.S.n;
141
141
  if (i !== void 0 && (e.r = i), e.S.n = e, e.i = -1, e.n === void 0) {
@@ -144,7 +144,7 @@ function X(t) {
144
144
  }
145
145
  }
146
146
  }
147
- function Y(t) {
147
+ function X(t) {
148
148
  for (var e = t.s, i = void 0; e !== void 0; ) {
149
149
  var n = e.p;
150
150
  e.i === -1 ? (e.S.U(e), n !== void 0 && (n.n = e.n), e.n !== void 0 && (e.n.p = n)) : i = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = n;
@@ -152,23 +152,23 @@ function Y(t) {
152
152
  t.s = i;
153
153
  }
154
154
  function y(t, e) {
155
- u.call(this, void 0), this.x = t, this.s = void 0, this.g = E - 1, this.f = 4, this.W = e?.watched, this.Z = e?.unwatched, this.name = e?.name;
155
+ u.call(this, void 0), this.x = t, this.s = void 0, this.g = w - 1, this.f = 4, this.W = e?.watched, this.Z = e?.unwatched, this.name = e?.name;
156
156
  }
157
157
  y.prototype = new u();
158
158
  y.prototype.h = function() {
159
159
  if (this.f &= -3, 1 & this.f) return !1;
160
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === E)) return !0;
161
- if (this.g = E, this.f |= 1, this.i > 0 && !j(this))
160
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === w)) return !0;
161
+ if (this.g = w, this.f |= 1, this.i > 0 && !G(this))
162
162
  return this.f &= -2, !0;
163
163
  var t = c;
164
164
  try {
165
- X(this), c = this;
165
+ j(this), c = this;
166
166
  var e = this.x();
167
167
  (16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
168
168
  } catch (i) {
169
169
  this.v = i, this.f |= 16, this.i++;
170
170
  }
171
- return c = t, Y(this), this.f &= -2, !0;
171
+ return c = t, X(this), this.f &= -2, !0;
172
172
  };
173
173
  y.prototype.S = function(t) {
174
174
  if (this.t === void 0) {
@@ -191,14 +191,14 @@ y.prototype.N = function() {
191
191
  };
192
192
  Object.defineProperty(y.prototype, "value", { get: function() {
193
193
  if (1 & this.f) throw new Error("Cycle detected");
194
- var t = G(this);
194
+ var t = K(this);
195
195
  if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f) throw this.v;
196
196
  return this.v;
197
197
  } });
198
- function Me(t, e) {
198
+ function we(t, e) {
199
199
  return new y(t, e);
200
200
  }
201
- function V(t) {
201
+ function Y(t) {
202
202
  var e = t.u;
203
203
  if (t.u = void 0, typeof e == "function") {
204
204
  p++;
@@ -207,19 +207,19 @@ function V(t) {
207
207
  try {
208
208
  e();
209
209
  } catch (n) {
210
- throw t.f &= -2, t.f |= 8, x(t), n;
210
+ throw t.f &= -2, t.f |= 8, M(t), n;
211
211
  } finally {
212
212
  c = i, T();
213
213
  }
214
214
  }
215
215
  }
216
- function x(t) {
216
+ function M(t) {
217
217
  for (var e = t.s; e !== void 0; e = e.n) e.S.U(e);
218
- t.x = void 0, t.s = void 0, V(t);
218
+ t.x = void 0, t.s = void 0, Y(t);
219
219
  }
220
- function Q(t) {
220
+ function q(t) {
221
221
  if (c !== this) throw new Error("Out-of-order effect");
222
- Y(this), c = t, this.f &= -2, 8 & this.f && x(this), T();
222
+ X(this), c = t, this.f &= -2, 8 & this.f && M(this), T();
223
223
  }
224
224
  function g(t, e) {
225
225
  this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32, this.name = e?.name;
@@ -236,15 +236,15 @@ g.prototype.c = function() {
236
236
  };
237
237
  g.prototype.S = function() {
238
238
  if (1 & this.f) throw new Error("Cycle detected");
239
- this.f |= 1, this.f &= -9, V(this), X(this), p++;
239
+ this.f |= 1, this.f &= -9, Y(this), j(this), p++;
240
240
  var t = c;
241
- return c = this, Q.bind(this, t);
241
+ return c = this, q.bind(this, t);
242
242
  };
243
243
  g.prototype.N = function() {
244
244
  2 & this.f || (this.f |= 2, this.o = S, S = this);
245
245
  };
246
246
  g.prototype.d = function() {
247
- this.f |= 8, 1 & this.f || x(this);
247
+ this.f |= 8, 1 & this.f || M(this);
248
248
  };
249
249
  g.prototype.dispose = function() {
250
250
  this.d();
@@ -259,19 +259,19 @@ function v(t, e) {
259
259
  var n = i.d.bind(i);
260
260
  return n[Symbol.dispose] = n, n;
261
261
  }
262
- function xe(t) {
262
+ function Te(t) {
263
263
  return t instanceof u ? t.peek() : t;
264
264
  }
265
- function Oe(t) {
265
+ function Ne(t) {
266
266
  return t instanceof u ? t.value : t;
267
267
  }
268
- function Pe(t, e) {
268
+ function Ae(t, e) {
269
269
  typeof e == "function" ? t.value = e() : t.value = e;
270
270
  }
271
- function De(t) {
271
+ function xe(t) {
272
272
  return t instanceof u ? () => t.value : t;
273
273
  }
274
- function ee(t, e, i = !1) {
274
+ function Z(t, e, i = !1) {
275
275
  const n = [];
276
276
  for (const [r, s] of Object.entries(e))
277
277
  if (s != null && !(r === "children" || r === "key" || r === "autoanimate" || r === "innerHTML")) {
@@ -316,7 +316,7 @@ function F(t, e, i, n) {
316
316
  }
317
317
  t.setAttribute(e, String(i));
318
318
  }
319
- function te(t, e) {
319
+ function J(t, e) {
320
320
  const i = document.createTextNode(String(e));
321
321
  t.appendChild(i);
322
322
  }
@@ -422,40 +422,40 @@ function B(t) {
422
422
  B(n);
423
423
  });
424
424
  }
425
- let ie = 0;
426
- const h = /* @__PURE__ */ new WeakMap();
425
+ let Q = 0;
426
+ const d = /* @__PURE__ */ new WeakMap();
427
427
  async function P(t, e, i) {
428
428
  const n = t._placeholder;
429
429
  if (!n?.parentNode) return;
430
430
  const r = t._currentChild, s = t._currentDom;
431
- if (ne(r, e)) {
432
- const f = h.get(t);
433
- f && (f.token.cancel(), h.delete(t)), r && "_lifecycleState" in r && (r._lifecycleState = "mounted");
431
+ if (ee(r, e)) {
432
+ const f = d.get(t);
433
+ f && (f.token.cancel(), d.delete(t)), r && "_lifecycleState" in r && (r._lifecycleState = "mounted");
434
434
  return;
435
435
  }
436
436
  if (s instanceof Text && i instanceof Text) {
437
- s.nodeValue !== i.nodeValue && (s.nodeValue = i.nodeValue), t._currentDom = s, t._currentChild = e, e && "_lifecycleState" in e && (e._lifecycleState = "mounted"), h.delete(t);
437
+ s.nodeValue !== i.nodeValue && (s.nodeValue = i.nodeValue), t._currentDom = s, t._currentChild = e, e && "_lifecycleState" in e && (e._lifecycleState = "mounted"), d.delete(t);
438
438
  return;
439
439
  }
440
- const o = ++ie, a = h.get(t);
440
+ const o = ++Q, a = d.get(t);
441
441
  a && a.token.cancel();
442
442
  const l = new O();
443
- if (h.set(t, { id: o, token: l }), r && "_lifecycleState" in r && (r._lifecycleState = "exiting"), r)
443
+ if (d.set(t, { id: o, token: l }), r && "_lifecycleState" in r && (r._lifecycleState = "exiting"), r)
444
444
  try {
445
445
  await $(r, l);
446
446
  } catch (f) {
447
447
  console.error(`ReactiveVNode ${t._id}: Unmount threw:`, f);
448
448
  }
449
- const d = h.get(t);
450
- if (!(!d || d.id !== o)) {
449
+ const h = d.get(t);
450
+ if (!(!h || h.id !== o)) {
451
451
  if (l.cancelled) {
452
- h.delete(t);
452
+ d.delete(t);
453
453
  return;
454
454
  }
455
- r && "_lifecycleState" in r && (r._lifecycleState = "exited"), s && s.remove(), i && n.parentNode.insertBefore(i, n.nextSibling), e && "_lifecycleState" in e && (e._lifecycleState = "mounted"), t._currentChild = e, t._currentDom = i, h.delete(t);
455
+ r && "_lifecycleState" in r && (r._lifecycleState = "exited"), s && s.remove(), i && n.parentNode.insertBefore(i, n.nextSibling), e && "_lifecycleState" in e && (e._lifecycleState = "mounted"), t._currentChild = e, t._currentDom = i, d.delete(t);
456
456
  }
457
457
  }
458
- function ne(t, e) {
458
+ function ee(t, e) {
459
459
  if (!t || !e || typeof t != "object" || typeof e != "object" || !("type" in t) || !("type" in e)) return !1;
460
460
  if (typeof t.type == "function" && typeof e.type == "function") {
461
461
  if (t.type !== e.type) return !1;
@@ -466,11 +466,11 @@ function ne(t, e) {
466
466
  const i = "props" in t ? t.props?.key : void 0, n = "props" in e ? e.props?.key : void 0;
467
467
  return i !== n ? !1 : "_lifecycleState" in t && t._lifecycleState === "exiting";
468
468
  }
469
- function re(t, e) {
469
+ function te(t, e) {
470
470
  const i = t._listState;
471
- i ? oe(t, e, i) : se(t, e);
471
+ i ? ne(t, e, i) : ie(t, e);
472
472
  }
473
- function se(t, e) {
473
+ function ie(t, e) {
474
474
  const i = t._placeholder;
475
475
  if (!i?.parentNode) return;
476
476
  const n = [];
@@ -480,7 +480,7 @@ function se(t, e) {
480
480
  }
481
481
  t._listState = { items: n };
482
482
  }
483
- function oe(t, e, i) {
483
+ function ne(t, e, i) {
484
484
  const n = t._placeholder;
485
485
  if (!n?.parentNode) return;
486
486
  const r = /* @__PURE__ */ new Map();
@@ -488,22 +488,22 @@ function oe(t, e, i) {
488
488
  r.set(a.key, a);
489
489
  const s = /* @__PURE__ */ new Set(), o = [];
490
490
  for (let a = 0; a < e.length; a++) {
491
- const l = e[a], d = D(l, a);
492
- s.add(d);
493
- const f = r.get(d);
494
- f ? (o.push(f), r.delete(d)) : ae(t, l, o);
491
+ const l = e[a], h = D(l, a);
492
+ s.add(h);
493
+ const f = r.get(h);
494
+ f ? (o.push(f), r.delete(h)) : re(t, l, o);
495
495
  }
496
- r.size > 0 && le(r), ce(n, o), t._listState = { items: o };
496
+ r.size > 0 && se(r), oe(n, o), t._listState = { items: o };
497
497
  }
498
- function ae(t, e, i) {
498
+ function re(t, e, i) {
499
499
  const n = D(e, i.length), { vnode: r, dom: s } = k(e, t);
500
500
  i.push({ key: n, vnode: r, dom: s });
501
501
  }
502
- function le(t) {
502
+ function se(t) {
503
503
  for (const [e, i] of t)
504
504
  i.vnode && $(i.vnode), i.dom?.parentNode && i.dom.parentNode.removeChild(i.dom);
505
505
  }
506
- function ce(t, e) {
506
+ function oe(t, e) {
507
507
  const i = t.parentNode;
508
508
  if (!i) return;
509
509
  let n = t;
@@ -518,18 +518,18 @@ function W(t, e, i = null, n = !1) {
518
518
  (Array.isArray(e) ? e : [e]).forEach((s) => {
519
519
  if (s) {
520
520
  if (Array.isArray(s) && W(t, s, i, n), typeof s == "string" || typeof s == "number")
521
- te(t, s);
521
+ J(t, s);
522
522
  else if (typeof s == "function") {
523
523
  const o = U(s);
524
524
  o._parent = i, i && i._renderedChildren.push(o);
525
525
  const a = document.createComment("reactive");
526
526
  t.appendChild(a), o._placeholder = a;
527
527
  const l = v(() => {
528
- const d = s();
529
- if (Array.isArray(d))
530
- re(o, d);
528
+ const h = s();
529
+ if (Array.isArray(h))
530
+ te(o, h);
531
531
  else {
532
- const { vnode: f, dom: N } = k(d, o);
532
+ const { vnode: f, dom: N } = k(h, o);
533
533
  P(o, f, N);
534
534
  }
535
535
  });
@@ -545,22 +545,22 @@ function W(t, e, i = null, n = !1) {
545
545
  }
546
546
  });
547
547
  }
548
- const ue = "http://www.w3.org/2000/svg";
549
- function z(t, e = !1) {
548
+ const ae = "http://www.w3.org/2000/svg";
549
+ function V(t, e = !1) {
550
550
  if (t._dom)
551
551
  return t._dom;
552
- const i = e || t.type === "svg", n = i ? document.createElementNS(ue, t.type) : document.createElement(t.type), r = ee(n, t.props, i);
552
+ const i = e || t.type === "svg", n = i ? document.createElementNS(ae, t.type) : document.createElement(t.type), r = Z(n, t.props, i);
553
553
  return t._onUnmountCallbacks.push(r), t.props.innerHTML !== void 0 ? n.innerHTML = typeof t.props.innerHTML == "object" ? JSON.stringify(t.props.innerHTML) : t.props.innerHTML : t.props.children && W(n, t.props.children, t, i), t._dom = n, t._lifecycleState = "mounted", t._onMountCallbacks.length > 0 && t._onMountCallbacks.forEach((s) => s()), n;
554
554
  }
555
555
  function _(t, e = !1) {
556
556
  if ("type" in t && t.type === "reactive")
557
557
  return t._placeholder;
558
558
  if (typeof t.type == "string")
559
- return z(t, e);
559
+ return V(t, e);
560
560
  const i = t;
561
- w(i);
561
+ E(i);
562
562
  const n = i.type(i.props);
563
- if (w(null), !n) return null;
563
+ if (E(null), !n) return null;
564
564
  let r = null;
565
565
  if (typeof n == "string" || typeof n == "number" || typeof n == "boolean")
566
566
  r = document.createTextNode(String(n));
@@ -576,25 +576,25 @@ function _(t, e = !1) {
576
576
  s();
577
577
  }), r && (i._lifecycleState = "mounted"), r;
578
578
  }
579
- function Fe(t, e) {
579
+ function Me(t, e) {
580
580
  const i = t instanceof Node ? t : _(t);
581
581
  i && e.append(i);
582
582
  }
583
- function fe(t) {
583
+ function le(t) {
584
584
  return document.createTreeWalker(
585
585
  t,
586
586
  NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT,
587
587
  null
588
588
  );
589
589
  }
590
- function de(t, e = "self") {
591
- const i = fe(t);
590
+ function ce(t, e = "self") {
591
+ const i = le(t);
592
592
  return e === "children" && i.firstChild(), {
593
593
  walker: i,
594
594
  isSVG: !1
595
595
  };
596
596
  }
597
- function he(t, e, i, n) {
597
+ function ue(t, e, i, n) {
598
598
  if (e === "class" || e === "className") {
599
599
  const r = typeof i == "string" ? i : Array.isArray(i) ? i.filter(Boolean).join(" ") : typeof i == "object" ? Object.entries(i).filter(([s, o]) => o).map(([s]) => s).join(" ") : "";
600
600
  n ? t.setAttribute("class", r) : t.className = r;
@@ -614,7 +614,7 @@ function he(t, e, i, n) {
614
614
  }
615
615
  t.setAttribute(e, String(i));
616
616
  }
617
- function pe(t, e, i = !1, n) {
617
+ function fe(t, e, i = !1, n) {
618
618
  const r = [];
619
619
  for (const [s, o] of Object.entries(e))
620
620
  if (o != null && !(s === "children" || s === "key" || s === "autoanimate")) {
@@ -631,7 +631,7 @@ function pe(t, e, i = !1, n) {
631
631
  n && console.log(`→ Reactive prop: ${s}`);
632
632
  const a = v(() => {
633
633
  const l = o();
634
- he(t, s, l, i);
634
+ ue(t, s, l, i);
635
635
  });
636
636
  r.push(a);
637
637
  continue;
@@ -639,7 +639,7 @@ function pe(t, e, i = !1, n) {
639
639
  }
640
640
  return () => r.forEach((s) => s());
641
641
  }
642
- function ye(t, e, i = null, n) {
642
+ function he(t, e, i = null, n) {
643
643
  if (!e) return;
644
644
  const r = Array.isArray(e) ? e : [e];
645
645
  if (!n.walker.firstChild() && r.length > 0) {
@@ -647,10 +647,10 @@ function ye(t, e, i = null, n) {
647
647
  return;
648
648
  }
649
649
  for (const o of r)
650
- !o && o !== 0 || me(o, t, i, n);
650
+ !o && o !== 0 || de(o, t, i, n);
651
651
  n.walker.parentNode();
652
652
  }
653
- function me(t, e, i, n) {
653
+ function de(t, e, i, n) {
654
654
  if (!(!t && t !== 0)) {
655
655
  if (typeof t == "string" || typeof t == "number" || typeof t == "boolean") {
656
656
  const r = n.walker.currentNode;
@@ -674,16 +674,16 @@ function me(t, e, i, n) {
674
674
  r._currentDom
675
675
  ), r._placeholder = a;
676
676
  let l = !0;
677
- const d = v(() => {
677
+ const h = v(() => {
678
678
  const f = t();
679
679
  if (l) {
680
680
  l = !1;
681
681
  return;
682
682
  }
683
- const { vnode: N, dom: R } = k(f, r);
684
- P(r, N, R);
683
+ const { vnode: N, dom: z } = k(f, r);
684
+ P(r, N, z);
685
685
  });
686
- r._dispose = d;
686
+ r._dispose = h;
687
687
  return;
688
688
  }
689
689
  if (t instanceof Node) {
@@ -696,7 +696,7 @@ function me(t, e, i, n) {
696
696
  }
697
697
  }
698
698
  }
699
- function be(t, e) {
699
+ function pe(t, e) {
700
700
  const i = e.walker.currentNode;
701
701
  if (i.nodeType !== Node.ELEMENT_NODE)
702
702
  return console.warn(
@@ -709,32 +709,32 @@ function be(t, e) {
709
709
  ), L(t, i, e);
710
710
  const s = e.isSVG || t.type === "svg", o = e.isSVG;
711
711
  e.isSVG = s, t._dom = n, e.debug && console.log(`→ Attached existing <${t.type}> DOM`);
712
- const a = pe(n, t.props, s, e.debug);
713
- return t._onUnmountCallbacks.push(a), t.props.children && ye(n, t.props.children, t, e), t._lifecycleState = "mounted", t._onMountCallbacks.length > 0 && t._onMountCallbacks.forEach((l) => l()), e.isSVG = o, e.walker.nextSibling(), n;
712
+ const a = fe(n, t.props, s, e.debug);
713
+ return t._onUnmountCallbacks.push(a), t.props.children && he(n, t.props.children, t, e), t._lifecycleState = "mounted", t._onMountCallbacks.length > 0 && t._onMountCallbacks.forEach((l) => l()), e.isSVG = o, e.walker.nextSibling(), n;
714
714
  }
715
715
  function L(t, e, i) {
716
716
  i.debug && console.log(`→ Fallback: rendering <${t.type}> fresh`);
717
717
  const n = e.parentNode, r = e.nextSibling;
718
718
  n?.removeChild(e);
719
- const s = z(t, i.isSVG);
719
+ const s = V(t, i.isSVG);
720
720
  return n && (r ? n.insertBefore(s, r) : n.appendChild(s)), i.walker.nextSibling(), s;
721
721
  }
722
722
  function b(t, e) {
723
723
  if ("type" in t && t.type === "reactive")
724
- return e.debug && console.log(`Hydrating ReactiveVNode #${t._id}`), ve(t, e);
724
+ return e.debug && console.log(`Hydrating ReactiveVNode #${t._id}`), me(t, e);
725
725
  if ("type" in t && t.type === "suspended")
726
726
  return e.debug && console.log(
727
727
  `Hydrating SuspendedVNode: ${t._componentName}`
728
- ), _e(t, e);
728
+ ), be(t, e);
729
729
  if (typeof t.type == "string")
730
- return e.debug && console.log(`Hydrating <${t.type}>`), be(t, e);
730
+ return e.debug && console.log(`Hydrating <${t.type}>`), pe(t, e);
731
731
  const i = t.type.name || "Anonymous";
732
- return e.debug && console.log(`Hydrating Component: ${i}`), ge(t, e);
732
+ return e.debug && console.log(`Hydrating Component: ${i}`), ye(t, e);
733
733
  }
734
- function ge(t, e) {
735
- w(t);
734
+ function ye(t, e) {
735
+ E(t);
736
736
  const i = t.type(t.props);
737
- if (w(null), !i) return null;
737
+ if (E(null), !i) return null;
738
738
  if (typeof i == "object" && "type" in i && i.type === "suspended")
739
739
  return b(i, e);
740
740
  let n = null;
@@ -753,7 +753,7 @@ function ge(t, e) {
753
753
  `→ Firing ${t._onMountCallbacks.length} onMount callback(s)`
754
754
  ), t._onMountCallbacks.forEach((r) => r())), n && (t._lifecycleState = "mounted"), n;
755
755
  }
756
- function ve(t, e) {
756
+ function me(t, e) {
757
757
  const i = t.fn(), n = e.walker.currentNode, r = document.createComment("reactive");
758
758
  if (n.parentNode?.insertBefore(r, n), t._placeholder = r, i && typeof i == "object" && "type" in i) {
759
759
  const a = i;
@@ -766,12 +766,12 @@ function ve(t, e) {
766
766
  s = !1, e.debug && console.log("→ Reactive effect setup (skipping initial)");
767
767
  return;
768
768
  }
769
- const { vnode: l, dom: d } = k(a, t);
770
- P(t, l, d);
769
+ const { vnode: l, dom: h } = k(a, t);
770
+ P(t, l, h);
771
771
  });
772
772
  return t._dispose = o, t._currentDom;
773
773
  }
774
- function _e(t, e) {
774
+ function be(t, e) {
775
775
  const i = e.walker.currentNode;
776
776
  if (i.nodeType === Node.ELEMENT_NODE && i.hasAttribute("data-suspended")) {
777
777
  const r = i;
@@ -807,11 +807,11 @@ function C(t, e) {
807
807
  e
808
808
  ) : typeof t == "function" ? C(t(), e) : null;
809
809
  }
810
- function Le(t, e, i = "self") {
811
- const n = de(e, i);
810
+ function Oe(t, e, i = "self") {
811
+ const n = ce(e, i);
812
812
  b(t, n);
813
813
  }
814
- function He(t, e = "Loading...", i = "Error") {
814
+ function Pe(t, e = "Loading...", i = "Error") {
815
815
  return (n) => ({
816
816
  type: "suspended",
817
817
  kind: "SuspendedVNode",
@@ -826,45 +826,14 @@ function He(t, e = "Loading...", i = "Error") {
826
826
  _state: "pending"
827
827
  });
828
828
  }
829
- function Ie(t) {
830
- const e = Symbol("context");
831
- return {
832
- _id: e,
833
- _defaultValue: t,
834
- provide(i) {
835
- if (typeof document > "u") {
836
- q(e, i);
837
- return;
838
- }
839
- const n = I();
840
- if (!n)
841
- throw new Error("context.provide() called outside of component render");
842
- n._contextMap || (n._contextMap = /* @__PURE__ */ new Map()), n._contextMap.set(e, i);
843
- }
844
- };
845
- }
846
- function Ke(t) {
847
- if (typeof document > "u")
848
- return Z(t._id, t._defaultValue);
849
- const e = I();
850
- if (!e)
851
- throw new Error("useContext called outside of component render");
852
- let i = e;
853
- for (; i; ) {
854
- if (i.kind === "VNode" && i._contextMap?.has(t._id))
855
- return i._contextMap.get(t._id);
856
- i = i._parent;
857
- }
858
- return t._defaultValue;
859
- }
860
- function Ge(t) {
829
+ function De(t) {
861
830
  if (!(typeof document > "u")) {
862
831
  if (m === null)
863
832
  throw new Error("onMount must be called inside a component during render");
864
833
  m._onMountCallbacks.push(t);
865
834
  }
866
835
  }
867
- function je(t) {
836
+ function Fe(t) {
868
837
  if (!(typeof document > "u")) {
869
838
  if (m === null)
870
839
  throw new Error(
@@ -873,7 +842,7 @@ function je(t) {
873
842
  m._onUnmountCallbacks.push(t);
874
843
  }
875
844
  }
876
- function Xe(t) {
845
+ function Le(t) {
877
846
  if (!(typeof document > "u")) {
878
847
  if (m === null)
879
848
  throw new Error(
@@ -882,7 +851,7 @@ function Xe(t) {
882
851
  m._onBeforeExitCallbacks.push(t);
883
852
  }
884
853
  }
885
- function Ye(t) {
854
+ function He(t) {
886
855
  if (!(typeof document > "u"))
887
856
  try {
888
857
  t();
@@ -890,7 +859,7 @@ function Ye(t) {
890
859
  console.error(e);
891
860
  }
892
861
  }
893
- class Ve {
862
+ class Ie {
894
863
  // One-time callbacks
895
864
  readCallbacks = /* @__PURE__ */ new Set();
896
865
  updateCallbacks = /* @__PURE__ */ new Set();
@@ -1071,7 +1040,7 @@ class Ve {
1071
1040
  return e === this.readKeepAlive || e === this.updateKeepAlive || e === this.renderKeepAlive;
1072
1041
  }
1073
1042
  }
1074
- class Se {
1043
+ class ge {
1075
1044
  gestureId = 0;
1076
1045
  activeGestures = /* @__PURE__ */ new Map();
1077
1046
  disabledGestures = /* @__PURE__ */ new Map();
@@ -1140,10 +1109,10 @@ class Se {
1140
1109
  */
1141
1110
  createGesture(e, i) {
1142
1111
  const n = this.newId(), r = i.name || "gesture-" + n, s = i.priority ?? 0;
1143
- return new ke(this, n, e, r, s, i);
1112
+ return new ve(this, n, e, r, s, i);
1144
1113
  }
1145
1114
  }
1146
- class ke {
1115
+ class ve {
1147
1116
  // Private members
1148
1117
  el;
1149
1118
  options;
@@ -1280,17 +1249,17 @@ class ke {
1280
1249
  }
1281
1250
  }
1282
1251
  let A;
1283
- function Ce() {
1284
- return A || (A = new Se()), A;
1252
+ function _e() {
1253
+ return A || (A = new ge()), A;
1285
1254
  }
1286
- function Ue(t, e) {
1287
- return Ce().createGesture(t, e);
1255
+ function Ke(t, e) {
1256
+ return _e().createGesture(t, e);
1288
1257
  }
1289
- function $e(t) {
1258
+ function Ge(t) {
1290
1259
  typeof document > "u" || (document.startViewTransition ? document.startViewTransition(t) : t());
1291
1260
  }
1292
- let we = 0;
1293
- function Be(t, e = [], i = {
1261
+ let Se = 0;
1262
+ function je(t, e = [], i = {
1294
1263
  duration: 500,
1295
1264
  namePrefix: "vt"
1296
1265
  }) {
@@ -1299,7 +1268,7 @@ function Be(t, e = [], i = {
1299
1268
  return;
1300
1269
  }
1301
1270
  const n = e.map(
1302
- (s, o) => `${i.namePrefix}-${++we}-${o}`
1271
+ (s, o) => `${i.namePrefix}-${++Se}-${o}`
1303
1272
  );
1304
1273
  e.forEach((s, o) => {
1305
1274
  s.style.viewTransitionName = n[o];
@@ -1317,27 +1286,27 @@ function Be(t, e = [], i = {
1317
1286
  export {
1318
1287
  y as Computed,
1319
1288
  g as Effect,
1320
- Re as Fragment,
1321
- Ve as FrameScheduler,
1289
+ We as Fragment,
1290
+ Ie as FrameScheduler,
1322
1291
  u as Signal,
1323
- Ne as batch,
1324
- Me as computed,
1325
- Ie as createContext,
1326
- Ue as createGesture,
1292
+ Ce as batch,
1293
+ we as computed,
1294
+ Ue as createContext,
1295
+ Ke as createGesture,
1327
1296
  v as effect,
1328
- Oe as get,
1329
- Le as hydrate,
1330
- De as link,
1331
- Xe as onBeforeExit,
1332
- Ye as onLoad,
1333
- Ge as onMount,
1334
- je as onUnmount,
1335
- xe as peek,
1336
- Fe as render,
1337
- Pe as set,
1338
- Ae as signal,
1339
- $e as startViewTransition,
1340
- He as suspend,
1341
- Ke as useContext,
1342
- Be as withViewTransition
1297
+ Ne as get,
1298
+ Oe as hydrate,
1299
+ xe as link,
1300
+ Le as onBeforeExit,
1301
+ He as onLoad,
1302
+ De as onMount,
1303
+ Fe as onUnmount,
1304
+ Te as peek,
1305
+ Me as render,
1306
+ Ae as set,
1307
+ Ee as signal,
1308
+ Ge as startViewTransition,
1309
+ Pe as suspend,
1310
+ $e as useContext,
1311
+ je as withViewTransition
1343
1312
  };