@react-motion-router/stack 2.0.0-beta.sha-4fafa70 → 2.0.0-beta.sha-7a69b61

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/build/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { NavigationBase as dt, resolveBaseURLFromPattern as ft, includesRoute as ut, ScreenBase as vt, matchRoute as N, RouterBase as gt, cloneAndInject as pt, useNavigationBase as mt, useRouterBase as yt, useRouteBase as wt, useParamsBase as Et } from "@react-motion-router/core";
2
- import { createRef as Pt, startTransition as U, useDebugValue as C, useEffect as Y, useState as St, useRef as $, useCallback as bt } from "react";
1
+ import { NavigationBase as ht, resolveBaseURLFromPattern as dt, matchRoute as Y, ScreenBase as ft, RouterBase as vt, cloneAndInject as gt, includesRoute as pt, useNavigationBase as mt, useRouterBase as yt, useRouteBase as wt, useParamsBase as Et } from "@react-motion-router/core";
2
+ import { createRef as Pt, startTransition as N, useDebugValue as j, useEffect as C, useState as St, useRef as $, useCallback as bt } from "react";
3
3
  import { GestureTimeline as _t, springToLinear as Lt, easingToLinear as A } from "web-animations-extension";
4
- import { jsx as lt } from "react/jsx-runtime";
4
+ import { jsx as ut } from "react/jsx-runtime";
5
5
  var g = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Tt = {}, T = {};
6
6
  Object.defineProperty(T, "__esModule", { value: !0 });
7
7
  var rt;
8
8
  (function(n) {
9
9
  n[n.tap = 0] = "tap", n[n.longpress = 1] = "longpress", n[n.pinchstart = 2] = "pinchstart", n[n.pinch = 3] = "pinch", n[n.pinchend = 4] = "pinchend", n[n.rotatestart = 5] = "rotatestart", n[n.rotate = 6] = "rotate", n[n.rotateend = 7] = "rotateend", n[n.swipestart = 8] = "swipestart", n[n.swipe = 9] = "swipe", n[n.swipeend = 10] = "swipeend", n[n.panstart = 11] = "panstart", n[n.pan = 12] = "pan", n[n.panend = 13] = "panend", n[n.doubletap = 14] = "doubletap";
10
10
  })(rt || (rt = {}));
11
- class kt extends TouchEvent {
11
+ class Rt extends TouchEvent {
12
12
  constructor(t, e) {
13
13
  if (super(t, {
14
14
  touches: Array.from(e.touches),
@@ -27,12 +27,12 @@ class kt extends TouchEvent {
27
27
  this.gestureTarget = e.touches[0].target, this.x = e.touches[0].clientX, this.y = e.touches[0].clientY;
28
28
  }
29
29
  }
30
- T.default = kt;
31
- var W = {}, Rt = g && g.__importDefault || function(n) {
30
+ T.default = Rt;
31
+ var W = {}, kt = g && g.__importDefault || function(n) {
32
32
  return n && n.__esModule ? n : { default: n };
33
33
  };
34
34
  Object.defineProperty(W, "__esModule", { value: !0 });
35
- const It = Rt(T);
35
+ const It = kt(T);
36
36
  class xt extends It.default {
37
37
  constructor(t, e) {
38
38
  super("longpress", t), this.duration = 0, this.duration = e;
@@ -43,13 +43,13 @@ var q = {}, Ft = g && g.__importDefault || function(n) {
43
43
  return n && n.__esModule ? n : { default: n };
44
44
  };
45
45
  Object.defineProperty(q, "__esModule", { value: !0 });
46
- const Dt = Ft(T);
47
- class Ot extends Dt.default {
46
+ const Ot = Ft(T);
47
+ class Dt extends Ot.default {
48
48
  constructor(t) {
49
49
  super("tap", t), this.duration = 0;
50
50
  }
51
51
  }
52
- q.default = Ot;
52
+ q.default = Dt;
53
53
  var G = {}, Kt = g && g.__importDefault || function(n) {
54
54
  return n && n.__esModule ? n : { default: n };
55
55
  };
@@ -66,12 +66,12 @@ var F = {}, Yt = g && g.__importDefault || function(n) {
66
66
  };
67
67
  Object.defineProperty(F, "__esModule", { value: !0 });
68
68
  F.SwipeEndEvent = F.SwipeStartEvent = void 0;
69
- const Xt = Yt(T);
69
+ const Ct = Yt(T);
70
70
  var st;
71
71
  (function(n) {
72
72
  n[n.start = 0] = "start", n[n.end = 1] = "end";
73
73
  })(st || (st = {}));
74
- class z extends Xt.default {
74
+ class z extends Ct.default {
75
75
  constructor(t, e, r) {
76
76
  let s;
77
77
  switch (r) {
@@ -87,12 +87,12 @@ class z extends Xt.default {
87
87
  super(s, t), this.velocity = e.velocity, this.direction = e.direction;
88
88
  }
89
89
  }
90
- class Ct extends z {
90
+ class Xt extends z {
91
91
  constructor(t, e) {
92
92
  super(t, e);
93
93
  }
94
94
  }
95
- F.default = Ct;
95
+ F.default = Xt;
96
96
  class jt extends z {
97
97
  constructor(t, e) {
98
98
  super(t, e, "start");
@@ -105,11 +105,11 @@ class Ht extends z {
105
105
  }
106
106
  }
107
107
  F.SwipeEndEvent = Ht;
108
- var D = {}, Ut = g && g.__importDefault || function(n) {
108
+ var O = {}, Ut = g && g.__importDefault || function(n) {
109
109
  return n && n.__esModule ? n : { default: n };
110
110
  };
111
- Object.defineProperty(D, "__esModule", { value: !0 });
112
- D.PanEndEvent = D.PanStartEvent = void 0;
111
+ Object.defineProperty(O, "__esModule", { value: !0 });
112
+ O.PanEndEvent = O.PanStartEvent = void 0;
113
113
  const Nt = Ut(T);
114
114
  var it;
115
115
  (function(n) {
@@ -143,24 +143,24 @@ class Vt extends Z {
143
143
  super(t, e);
144
144
  }
145
145
  }
146
- D.default = Vt;
146
+ O.default = Vt;
147
147
  class $t extends Z {
148
148
  constructor(t, e) {
149
149
  super(t, e, "start");
150
150
  }
151
151
  }
152
- D.PanStartEvent = $t;
152
+ O.PanStartEvent = $t;
153
153
  class At extends Z {
154
154
  constructor(t, e) {
155
155
  super(t, e, "end");
156
156
  }
157
157
  }
158
- D.PanEndEvent = At;
159
- var O = {}, Wt = g && g.__importDefault || function(n) {
158
+ O.PanEndEvent = At;
159
+ var D = {}, Wt = g && g.__importDefault || function(n) {
160
160
  return n && n.__esModule ? n : { default: n };
161
161
  };
162
- Object.defineProperty(O, "__esModule", { value: !0 });
163
- O.PinchEndEvent = O.PinchStartEvent = void 0;
162
+ Object.defineProperty(D, "__esModule", { value: !0 });
163
+ D.PinchEndEvent = D.PinchStartEvent = void 0;
164
164
  const qt = Wt(T);
165
165
  var at;
166
166
  (function(n) {
@@ -190,19 +190,19 @@ class Gt extends J {
190
190
  super(t, e);
191
191
  }
192
192
  }
193
- O.default = Gt;
193
+ D.default = Gt;
194
194
  class zt extends J {
195
195
  constructor(t, e) {
196
196
  super(t, e, "start");
197
197
  }
198
198
  }
199
- O.PinchStartEvent = zt;
199
+ D.PinchStartEvent = zt;
200
200
  class Zt extends J {
201
201
  constructor(t, e) {
202
202
  super(t, e, "end");
203
203
  }
204
204
  }
205
- O.PinchEndEvent = Zt;
205
+ D.PinchEndEvent = Zt;
206
206
  var K = {}, Jt = g && g.__importDefault || function(n) {
207
207
  return n && n.__esModule ? n : { default: n };
208
208
  };
@@ -255,14 +255,14 @@ class ne extends Q {
255
255
  }
256
256
  }
257
257
  K.RotateEndEvent = ne;
258
- var k = {};
259
- Object.defineProperty(k, "__esModule", { value: !0 });
260
- k.closest = k.Vec2 = k.assert = void 0;
258
+ var R = {};
259
+ Object.defineProperty(R, "__esModule", { value: !0 });
260
+ R.closest = R.Vec2 = R.assert = void 0;
261
261
  function re(n, t) {
262
262
  if (!n)
263
263
  throw new Error(t);
264
264
  }
265
- k.assert = re;
265
+ R.assert = re;
266
266
  class se {
267
267
  constructor(t, e) {
268
268
  this._x = 0, this._y = 0, this._clientX = 0, this._clientY = 0, this._clientX = t, this._clientY = e, this._x = this.translateX(t), this._y = this.translateY(e);
@@ -307,58 +307,58 @@ class se {
307
307
  return Math.sqrt(Math.pow(this._clientX, 2) + Math.pow(this._clientY, 2));
308
308
  }
309
309
  }
310
- k.Vec2 = se;
310
+ R.Vec2 = se;
311
311
  function ie(n, t) {
312
312
  return t.reduce((e, r) => {
313
313
  let s = Math.abs(e - n), i = Math.abs(r - n);
314
314
  return s === i ? e > r ? e : r : i < s ? r : e;
315
315
  });
316
316
  }
317
- k.closest = ie;
317
+ R.closest = ie;
318
318
  (function(n) {
319
- var t = g && g.__createBinding || (Object.create ? function(c, a, l, m) {
320
- m === void 0 && (m = l), Object.defineProperty(c, m, { enumerable: !0, get: function() {
321
- return a[l];
319
+ var t = g && g.__createBinding || (Object.create ? function(u, a, h, m) {
320
+ m === void 0 && (m = h), Object.defineProperty(u, m, { enumerable: !0, get: function() {
321
+ return a[h];
322
322
  } });
323
- } : function(c, a, l, m) {
324
- m === void 0 && (m = l), c[m] = a[l];
325
- }), e = g && g.__setModuleDefault || (Object.create ? function(c, a) {
326
- Object.defineProperty(c, "default", { enumerable: !0, value: a });
327
- } : function(c, a) {
328
- c.default = a;
329
- }), r = g && g.__importStar || function(c) {
330
- if (c && c.__esModule)
331
- return c;
323
+ } : function(u, a, h, m) {
324
+ m === void 0 && (m = h), u[m] = a[h];
325
+ }), e = g && g.__setModuleDefault || (Object.create ? function(u, a) {
326
+ Object.defineProperty(u, "default", { enumerable: !0, value: a });
327
+ } : function(u, a) {
328
+ u.default = a;
329
+ }), r = g && g.__importStar || function(u) {
330
+ if (u && u.__esModule)
331
+ return u;
332
332
  var a = {};
333
- if (c != null)
334
- for (var l in c)
335
- l !== "default" && Object.prototype.hasOwnProperty.call(c, l) && t(a, c, l);
336
- return e(a, c), a;
337
- }, s = g && g.__importDefault || function(c) {
338
- return c && c.__esModule ? c : { default: c };
333
+ if (u != null)
334
+ for (var h in u)
335
+ h !== "default" && Object.prototype.hasOwnProperty.call(u, h) && t(a, u, h);
336
+ return e(a, u), a;
337
+ }, s = g && g.__importDefault || function(u) {
338
+ return u && u.__esModule ? u : { default: u };
339
339
  };
340
340
  Object.defineProperty(n, "__esModule", { value: !0 }), n.RotateEndEvent = n.RotateEvent = n.RotateStartEvent = n.PinchEndEvent = n.PinchEvent = n.PinchStartEvent = n.PanEndEvent = n.PanEvent = n.PanStartEvent = n.SwipeEndEvent = n.SwipeEvent = n.SwipeStartEvent = n.DoubleTapEvent = n.LongPressEvent = n.GestureEvent = n.TapEvent = void 0;
341
341
  const i = s(T);
342
342
  n.GestureEvent = i.default;
343
343
  const o = s(W);
344
344
  n.LongPressEvent = o.default;
345
- const u = s(q);
346
- n.TapEvent = u.default;
347
- const h = s(G);
348
- n.DoubleTapEvent = h.default;
345
+ const c = s(q);
346
+ n.TapEvent = c.default;
347
+ const l = s(G);
348
+ n.DoubleTapEvent = l.default;
349
349
  const f = r(F);
350
350
  n.SwipeEvent = f.default, Object.defineProperty(n, "SwipeEndEvent", { enumerable: !0, get: function() {
351
351
  return f.SwipeEndEvent;
352
352
  } }), Object.defineProperty(n, "SwipeStartEvent", { enumerable: !0, get: function() {
353
353
  return f.SwipeStartEvent;
354
354
  } });
355
- const d = r(D);
355
+ const d = r(O);
356
356
  n.PanEvent = d.default, Object.defineProperty(n, "PanEndEvent", { enumerable: !0, get: function() {
357
357
  return d.PanEndEvent;
358
358
  } }), Object.defineProperty(n, "PanStartEvent", { enumerable: !0, get: function() {
359
359
  return d.PanStartEvent;
360
360
  } });
361
- const P = r(O);
361
+ const P = r(D);
362
362
  n.PinchEvent = P.default, Object.defineProperty(n, "PinchEndEvent", { enumerable: !0, get: function() {
363
363
  return P.PinchEndEvent;
364
364
  } }), Object.defineProperty(n, "PinchStartEvent", { enumerable: !0, get: function() {
@@ -370,10 +370,10 @@ k.closest = ie;
370
370
  } }), Object.defineProperty(n, "RotateStartEvent", { enumerable: !0, get: function() {
371
371
  return w.RotateStartEvent;
372
372
  } });
373
- const v = k;
373
+ const v = R;
374
374
  var p;
375
- (function(c) {
376
- c[c.right = 0] = "right", c[c.up = 1] = "up", c[c.left = 2] = "left", c[c.down = 3] = "down";
375
+ (function(u) {
376
+ u[u.right = 0] = "right", u[u.up = 1] = "up", u[u.left = 2] = "left", u[u.down = 3] = "down";
377
377
  })(p || (p = {}));
378
378
  class y {
379
379
  constructor() {
@@ -396,34 +396,34 @@ k.closest = ie;
396
396
  onPointerLeave(a) {
397
397
  if (!a.touches.length) {
398
398
  if (this.isSwiping) {
399
- const l = new f.SwipeEndEvent(a, {
399
+ const h = new f.SwipeEndEvent(a, {
400
400
  velocity: this.velocity,
401
401
  direction: p[(0, v.closest)(this.octant, [0, 1, 2, 3])]
402
402
  });
403
- this.dispatchEvent(l), this.isSwiping = !1;
403
+ this.dispatchEvent(h), this.isSwiping = !1;
404
404
  }
405
405
  if (this.isPanning) {
406
- const l = new d.PanEndEvent(a, {
406
+ const h = new d.PanEndEvent(a, {
407
407
  translation: this.dxDy,
408
408
  velocity: this.velocity
409
409
  });
410
- this.dispatchEvent(l), this.isPanning = !1;
410
+ this.dispatchEvent(h), this.isPanning = !1;
411
411
  }
412
412
  }
413
413
  if (a.touches.length === 1) {
414
414
  if (this.scaleBase = 0, this.isPinching) {
415
- const l = new P.PinchEndEvent(a, {
415
+ const h = new P.PinchEndEvent(a, {
416
416
  scale: this.scale
417
417
  });
418
- this.dispatchEvent(l), this.isPinching = !1;
418
+ this.dispatchEvent(h), this.isPinching = !1;
419
419
  }
420
420
  if (this.isRotating) {
421
- const l = new w.RotateEndEvent(a, {
421
+ const h = new w.RotateEndEvent(a, {
422
422
  rotation: this.rotation,
423
423
  rotationDeg: this.rotationDeg,
424
424
  anchor: this.anchor
425
425
  });
426
- this.dispatchEvent(l), this.isRotating = !1;
426
+ this.dispatchEvent(h), this.isRotating = !1;
427
427
  }
428
428
  }
429
429
  }
@@ -434,8 +434,8 @@ k.closest = ie;
434
434
  }
435
435
  onTouchStart(a) {
436
436
  this.currentTarget !== a.touches[0].target && (this.clean(), this.unbind(this.currentTarget), this.pointers = this.touchEnd.touches.length, this.taps = 0), this.touchStart = a;
437
- const l = parseInt(a.touches[0].target.dataset.minpointers || "0") || this.config.minPointers;
438
- if (this.touchStart.touches.length < l) {
437
+ const h = parseInt(a.touches[0].target.dataset.minpointers || "0") || this.config.minPointers;
438
+ if (this.touchStart.touches.length < h) {
439
439
  this.shouldFire = !1;
440
440
  return;
441
441
  }
@@ -456,23 +456,23 @@ k.closest = ie;
456
456
  if (!this.shouldFire)
457
457
  return;
458
458
  if (this.touchMoved = !0, this.touchMove = a, a.touches.length > 1 && this.touchStart.touches.length > 1 && (a.touches[1].clientX !== this.touchStart.touches[1].clientX || a.touches[1].clientY !== this.touchStart.touches[1].clientY)) {
459
- const _ = new v.Vec2(this.touchMove.touches[0].clientX, this.touchMove.touches[0].clientY), j = new v.Vec2(this.touchMove.touches[1].clientX, this.touchMove.touches[1].clientY), et = new v.Vec2(this.touchStart.touches[0].clientX, this.touchStart.touches[0].clientY), nt = _.substract(j);
459
+ const _ = new v.Vec2(this.touchMove.touches[0].clientX, this.touchMove.touches[0].clientY), H = new v.Vec2(this.touchMove.touches[1].clientX, this.touchMove.touches[1].clientY), et = new v.Vec2(this.touchStart.touches[0].clientX, this.touchStart.touches[0].clientY), nt = _.substract(H);
460
460
  if (this.scaleBase && Math.abs(this.scaleBase - nt.magnitude) > 10) {
461
461
  const I = nt.magnitude / this.scaleBase;
462
462
  if (this.scale = I, this.isPinching) {
463
- const H = new P.default(a, {
463
+ const U = new P.default(a, {
464
464
  scale: I
465
465
  });
466
- this.dispatchEvent(H);
466
+ this.dispatchEvent(U);
467
467
  } else {
468
- const H = new P.PinchStartEvent(a, {
468
+ const U = new P.PinchStartEvent(a, {
469
469
  scale: I
470
470
  });
471
- this.dispatchEvent(H), this.isPinching = !0;
471
+ this.dispatchEvent(U), this.isPinching = !0;
472
472
  }
473
473
  }
474
474
  this.anchor = _;
475
- let B = Math.atan2(et.clientY - j.clientY, et.clientX - j.clientX);
475
+ let B = Math.atan2(et.clientY - H.clientY, et.clientX - H.clientX);
476
476
  if (B < 0 ? B += 1.5708 : B -= 1.5708, this.rotation = B, this.rotationDeg = B * 180 / Math.PI, this.anchor = this.anchor, this.isRotating) {
477
477
  const I = new w.default(a, {
478
478
  anchor: this.anchor,
@@ -489,10 +489,10 @@ k.closest = ie;
489
489
  this.dispatchEvent(I), this.isRotating = !0;
490
490
  }
491
491
  }
492
- const l = new v.Vec2(this.touchStart.touches[0].clientX, this.touchStart.touches[0].clientY), E = new v.Vec2(this.touchMove.touches[0].clientX, this.touchMove.touches[0].clientY).substract(l), b = E.magnitude, R = {
492
+ const h = new v.Vec2(this.touchStart.touches[0].clientX, this.touchStart.touches[0].clientY), E = new v.Vec2(this.touchMove.touches[0].clientX, this.touchMove.touches[0].clientY).substract(h), b = E.magnitude, k = {
493
493
  x: E.x / b,
494
494
  y: E.y / b
495
- }, S = Math.atan2(R.y, R.x);
495
+ }, S = Math.atan2(k.y, k.x);
496
496
  this.octant = Math.round(4 * S / (2 * Math.PI) + 4) % 4;
497
497
  const X = (a.timeStamp - this.touchStart.timeStamp) / 1e3, M = E.magnitude / X;
498
498
  if (this.isSwiping) {
@@ -523,17 +523,17 @@ k.closest = ie;
523
523
  }
524
524
  }
525
525
  onTouchEnd(a) {
526
- const l = parseInt(this.currentTarget.dataset.numberoftaps || "0") || this.config.numberOfTaps;
527
- if (this.taps++, this.shouldFire = this.taps > l, this.shouldFire) {
526
+ const h = parseInt(this.currentTarget.dataset.numberoftaps || "0") || this.config.numberOfTaps;
527
+ if (this.taps++, this.shouldFire = this.taps > h, this.shouldFire) {
528
528
  this.touchEnd = a, this.touchEndTime = a.timeStamp;
529
529
  const m = parseFloat(this.currentTarget.dataset.tapdelay || "0") || this.config.tapDelay;
530
530
  if (!this.touchMoved && !this.isLongPress)
531
531
  if (this.taps === 1 || this.touchEndTime - this.lastTouchTime < m) {
532
- if (this.taps % 2 === l) {
533
- const b = new h.default(a);
532
+ if (this.taps % 2 === h) {
533
+ const b = new l.default(a);
534
534
  this.dispatchEvent(b), this.taps = 0;
535
535
  }
536
- const E = new u.default(a);
536
+ const E = new c.default(a);
537
537
  this.dispatchEvent(E);
538
538
  } else
539
539
  this.taps = 0;
@@ -554,8 +554,8 @@ class ae extends Event {
554
554
  signal;
555
555
  committed;
556
556
  transition;
557
- constructor(t, e, r, s, i, o, u) {
558
- super("navigate"), this.routerId = t, this.route = e, this.props = r, this.navigationType = s ?? "push", this.signal = i, this.committed = o, this.transition = u;
557
+ constructor(t, e, r, s, i, o, c) {
558
+ super("navigate"), this.routerId = t, this.route = e, this.props = r, this.navigationType = s ?? "push", this.signal = i, this.committed = o, this.transition = c;
559
559
  }
560
560
  }
561
561
  class oe extends Event {
@@ -634,7 +634,7 @@ class de {
634
634
  return this.#t.getState();
635
635
  }
636
636
  }
637
- class fe extends dt {
637
+ class fe extends ht {
638
638
  router;
639
639
  constructor(t) {
640
640
  super(), this.router = t;
@@ -652,15 +652,15 @@ class fe extends dt {
652
652
  return window.navigation.reload({ state: t });
653
653
  }
654
654
  traverseTo(t, e = {}) {
655
- const r = window.navigation.traverseTo(t), s = window.navigation.transition, i = s.from.index, o = window.navigation.entries().findIndex((f) => f.key === t), u = new AbortController();
656
- u.signal.addEventListener("abort", () => this.traverseTo(s.from.key), { once: !0 }), e.signal?.addEventListener("abort", u.abort, { once: !0 });
657
- let h;
658
- return i > o ? h = this.createBackEvent(u.signal, r.committed, s) : h = this.createForwardEvent(u.signal, r.committed, s), this.dispatchEvent?.(h), r;
655
+ const r = window.navigation.traverseTo(t), s = window.navigation.transition, i = s.from.index, o = window.navigation.entries().findIndex((f) => f.key === t), c = new AbortController();
656
+ c.signal.addEventListener("abort", () => this.traverseTo(s.from.key), { once: !0 }), e.signal?.addEventListener("abort", c.abort, { once: !0 });
657
+ let l;
658
+ return i > o ? l = this.createBackEvent(c.signal, r.committed, s) : l = this.createForwardEvent(c.signal, r.committed, s), this.dispatchEvent?.(l), r;
659
659
  }
660
660
  navigate(t, e = {}, r = {}) {
661
- const { type: s = "push" } = r, i = new URL(t, this.baseURL), o = window.navigation.navigate(i.href, { history: s, state: e }), u = window.navigation.transition, h = new AbortController();
662
- h.signal.addEventListener("abort", () => this.goBack(), { once: !0 }), r.signal?.addEventListener("abort", h.abort, { once: !0 });
663
- const f = this.createNavigateEvent(t, e, s, h.signal, o.committed, u);
661
+ const { type: s = "push" } = r, i = new URL(t, this.baseURL), o = window.navigation.navigate(i.href, { history: s, state: e }), c = window.navigation.transition, l = new AbortController();
662
+ l.signal.addEventListener("abort", () => this.goBack(), { once: !0 }), r.signal?.addEventListener("abort", l.abort, { once: !0 });
663
+ const f = this.createNavigateEvent(t, e, s, l.signal, o.committed, c);
664
664
  return this.dispatchEvent?.(f), o;
665
665
  }
666
666
  goBack(t = {}) {
@@ -712,14 +712,33 @@ class fe extends dt {
712
712
  return window.navigation.entries();
713
713
  }
714
714
  get entries() {
715
- const t = this.router.pathPatterns.filter(({ pattern: r }) => r.endsWith("**"));
716
- let e = !1;
717
- return this.globalEntries.filter((r) => {
718
- if (!r.url)
715
+ const t = this.router.pathPatterns.filter(({ pattern: s }) => s.endsWith("**"));
716
+ let e = null, r = !1;
717
+ return this.globalEntries.filter((s) => {
718
+ if (!s.url)
719
+ return !1;
720
+ const i = new URL(s.url), o = dt(this.baseURLPattern.pathname, i.pathname);
721
+ if (!o)
719
722
  return !1;
720
- const s = new URL(r.url);
721
- return ft(this.baseURLPattern.pathname, s.pathname) ? ut(t, s.pathname, this.baseURLPattern.pathname) ? e ? !1 : e = !0 : (e = !1, !0) : !1;
722
- }).map((r, s) => new de(r, this.routerId, s));
723
+ if (e) {
724
+ const c = new URLPattern(e.pattern, o.href);
725
+ if (Y(
726
+ i.pathname,
727
+ i.pathname,
728
+ c.pathname,
729
+ e.caseSensitive
730
+ ) || r)
731
+ return r = !0, !1;
732
+ }
733
+ return e = t.find(
734
+ ({ pattern: c, caseSensitive: l }) => Y(
735
+ c,
736
+ i.pathname,
737
+ this.baseURLPattern.pathname,
738
+ l
739
+ )
740
+ ) ?? null, !0;
741
+ }).map((s, i) => new de(s, this.routerId, i));
723
742
  }
724
743
  get index() {
725
744
  const t = window.navigation.currentEntry?.index ?? -1, e = this.entries.at(0)?.globalIndex ?? -1, r = this.entries.at(-1)?.globalIndex ?? -1;
@@ -773,7 +792,7 @@ function V(n, t) {
773
792
  return !1;
774
793
  return !0;
775
794
  }
776
- class Je extends vt {
795
+ class Je extends ft {
777
796
  #t;
778
797
  constructor(t, e) {
779
798
  super(t, e);
@@ -789,7 +808,26 @@ class Je extends vt {
789
808
  super.setParams(t), this.setHistoryState(({ params: e }) => ({ params: { ...e, ...t } }));
790
809
  }
791
810
  setConfig(t) {
792
- super.setConfig(t), delete t.footer, delete t.header, delete t.onEnter, delete t.onEntered, delete t.onExit, delete t.onExited, this.setHistoryState(({ config: e }) => ({ config: { ...e, ...t } }));
811
+ super.setConfig(t), this.setHistoryState(({ config: e }) => {
812
+ const r = /* @__PURE__ */ new Set([
813
+ "footer",
814
+ "header",
815
+ "onEnter",
816
+ "onEntered",
817
+ "onExit",
818
+ "onExited",
819
+ "onLoad",
820
+ "animation"
821
+ ]);
822
+ return {
823
+ config: {
824
+ ...e,
825
+ ...Object.fromEntries(
826
+ Object.entries(t).filter(([s]) => !r.has(s))
827
+ )
828
+ }
829
+ };
830
+ });
793
831
  }
794
832
  get router() {
795
833
  return this.context;
@@ -803,7 +841,7 @@ class Je extends vt {
803
841
  get historyEntryState() {
804
842
  const t = this.#t;
805
843
  if (t?.url) {
806
- const e = t.getState() ?? {}, r = ve(t.url.searchParams), s = N(
844
+ const e = t.getState() ?? {}, r = ve(t.url.searchParams), s = Y(
807
845
  this.props.path,
808
846
  t.url.pathname,
809
847
  this.context.baseURLPattern.pathname,
@@ -835,12 +873,12 @@ class Je extends vt {
835
873
  };
836
874
  }
837
875
  get routeProp() {
838
- const t = this.setParams.bind(this), e = this.setConfig.bind(this), { path: r } = this.props, { focused: s } = this.state, { params: i, config: o, resolvedPathname: u } = this;
876
+ const t = this.setParams.bind(this), e = this.setConfig.bind(this), { path: r } = this.props, { focused: s } = this.state, { params: i, config: o, resolvedPathname: c } = this;
839
877
  return {
840
878
  setParams: t,
841
879
  setConfig: e,
842
880
  path: r,
843
- resolvedPathname: u,
881
+ resolvedPathname: c,
844
882
  focused: s,
845
883
  params: i,
846
884
  config: o
@@ -924,7 +962,7 @@ class be {
924
962
  }), this.nativeReject?.(t);
925
963
  }
926
964
  }
927
- class Qe extends gt {
965
+ class Qe extends vt {
928
966
  navigation = new fe(this);
929
967
  #t = null;
930
968
  constructor(t, e) {
@@ -934,7 +972,7 @@ class Qe extends gt {
934
972
  gestureDirection: s = L.gestureDirection,
935
973
  gestureDisabled: i = L.gestureDisabled,
936
974
  gestureHysteresis: o = L.gestureHysteresis,
937
- gestureMinFlingVelocity: u = L.gestureMinFlingVelocity
975
+ gestureMinFlingVelocity: c = L.gestureMinFlingVelocity
938
976
  } = t.config?.screenConfig ?? {};
939
977
  this.state = {
940
978
  screenStack: [],
@@ -942,7 +980,7 @@ class Qe extends gt {
942
980
  gestureAreaWidth: r,
943
981
  gestureHysteresis: o,
944
982
  gestureDisabled: i,
945
- gestureMinFlingVelocity: u,
983
+ gestureMinFlingVelocity: c,
946
984
  transition: null,
947
985
  documentTitle: document.title,
948
986
  fromKey: null,
@@ -1080,16 +1118,16 @@ class Qe extends gt {
1080
1118
  const { child: s, matchInfo: i } = this.screenChildFromPathname(t) ?? {};
1081
1119
  if (!s)
1082
1120
  return Promise.resolve(!1);
1083
- const { navigation: o } = this, { signal: u } = r, { path: h } = s.props;
1121
+ const { navigation: o } = this, { signal: c } = r, { path: l } = s.props;
1084
1122
  return await Promise.all([
1085
1123
  this.preloadScreen(s),
1086
1124
  s.props.config?.onLoad?.({
1087
1125
  navigation: o,
1088
- signal: u,
1126
+ signal: c,
1089
1127
  preloading: !0,
1090
1128
  route: {
1091
1129
  focused: !1,
1092
- path: h,
1130
+ path: l,
1093
1131
  resolvedPathname: t,
1094
1132
  config: {
1095
1133
  ...this.props.config?.screenConfig,
@@ -1107,7 +1145,7 @@ class Qe extends gt {
1107
1145
  }
1108
1146
  cloneScreenChildFromPathname(t, e) {
1109
1147
  const { child: r } = this.screenChildFromPathname(t) ?? {};
1110
- return r ? (e ??= crypto.randomUUID(), pt(r, {
1148
+ return r ? (e ??= crypto.randomUUID(), gt(r, {
1111
1149
  config: {
1112
1150
  title: document.title,
1113
1151
  ...this.props.config?.screenConfig,
@@ -1127,7 +1165,7 @@ class Qe extends gt {
1127
1165
  }
1128
1166
  canIntercept(t) {
1129
1167
  const e = new URL(t.destination.url).pathname, r = this.baseURLPattern.pathname;
1130
- return this.mounted && this.shouldIntercept(t) && ut(this.pathPatterns, e, r);
1168
+ return this.mounted && this.shouldIntercept(t) && pt(this.pathPatterns, e, r);
1131
1169
  }
1132
1170
  shouldIntercept(t) {
1133
1171
  return t.canIntercept && !t.formData && !t.hashChange && !t.downloadRequest || !!this.props.config?.shouldIntercept?.(t);
@@ -1149,24 +1187,24 @@ class Qe extends gt {
1149
1187
  }
1150
1188
  handleLoad(t) {
1151
1189
  const e = () => {
1152
- const r = t.transition?.from?.key ?? null, s = t.destination.key, i = t.transition, o = [], u = this.navigation.entries;
1153
- return u.forEach((h) => {
1154
- if (!h.url)
1190
+ const r = t.transition?.from?.key ?? null, s = t.destination.key, i = t.transition, o = [], c = this.navigation.entries;
1191
+ return c.forEach((l) => {
1192
+ if (!l.url)
1155
1193
  return null;
1156
1194
  const f = this.cloneScreenChildFromPathname(
1157
- h.url.pathname,
1158
- h.key
1195
+ l.url.pathname,
1196
+ l.key
1159
1197
  );
1160
1198
  if (!f)
1161
1199
  return null;
1162
1200
  o.push(f);
1163
1201
  }), new Promise(
1164
- (h, f) => U(() => {
1202
+ (l, f) => N(() => {
1165
1203
  this.setState(
1166
1204
  { screenStack: o, fromKey: r, transition: i, destinationKey: s },
1167
1205
  async () => {
1168
- const { initialPathname: d } = this.props.config ?? {}, [P] = u;
1169
- if (d && u.length === 1 && P.url && !N(
1206
+ const { initialPathname: d } = this.props.config ?? {}, [P] = c;
1207
+ if (d && c.length === 1 && P.url && !Y(
1170
1208
  d,
1171
1209
  P.url.pathname,
1172
1210
  this.baseURLPattern.pathname
@@ -1176,7 +1214,7 @@ class Qe extends gt {
1176
1214
  const y = t.destination.getState() ?? {};
1177
1215
  this.navigation.push(t.destination.url, y);
1178
1216
  });
1179
- }), h();
1217
+ }), l();
1180
1218
  const w = t.signal;
1181
1219
  this.navigation.current?.key === void 0 && f(new Error("Current key is undefined"));
1182
1220
  const v = this.getScreenRefByKey(
@@ -1188,7 +1226,7 @@ class Qe extends gt {
1188
1226
  w
1189
1227
  ).catch(f), this.setState(
1190
1228
  { destinationKey: null, fromKey: null, transition: null },
1191
- h
1229
+ l
1192
1230
  );
1193
1231
  }
1194
1232
  );
@@ -1204,30 +1242,30 @@ class Qe extends gt {
1204
1242
  );
1205
1243
  if (!o)
1206
1244
  return t.preventDefault();
1207
- const u = () => {
1208
- const h = this.state.transition !== null, f = this.state.transition ?? window.navigation.transition, d = f?.from?.key ?? null, P = e.findIndex(
1245
+ const c = () => {
1246
+ const l = this.state.transition !== null, f = this.state.transition ?? window.navigation.transition, d = f?.from?.key ?? null, P = e.findIndex(
1209
1247
  (w) => w.key === this.navigation.current?.key
1210
1248
  );
1211
1249
  return e.splice(P, 1, o), new Promise(
1212
- (w, v) => U(() => {
1250
+ (w, v) => N(() => {
1213
1251
  this.setState(
1214
1252
  { destinationKey: i, fromKey: d, transition: f, screenStack: e },
1215
1253
  async () => {
1216
- const p = t.signal, y = this.getScreenRefByKey(String(d)), c = this.getScreenRefByKey(
1254
+ const p = t.signal, y = this.getScreenRefByKey(String(d)), u = this.getScreenRefByKey(
1217
1255
  String(i)
1218
1256
  ), a = this.dispatchLifecycleHandlers(
1219
- c,
1257
+ u,
1220
1258
  null,
1221
1259
  p
1222
1260
  ).catch(v);
1223
- if (h) {
1224
- const l = this.screenTransitionLayer.current?.animation.currentTime ?? 0;
1261
+ if (l) {
1262
+ const h = this.screenTransitionLayer.current?.animation.currentTime ?? 0;
1225
1263
  this.screenTransitionLayer.current?.animation.cancel(), await new Promise(requestAnimationFrame);
1226
1264
  const m = this.screenTransition(
1227
- c,
1265
+ u,
1228
1266
  y
1229
1267
  );
1230
- m && (m.currentTime = l), m?.updatePlaybackRate(1), await m?.finished.catch(v);
1268
+ m && (m.currentTime = h), m?.updatePlaybackRate(1), await m?.finished.catch(v);
1231
1269
  }
1232
1270
  await a, this.setState(
1233
1271
  { destinationKey: null, fromKey: null, transition: null },
@@ -1238,7 +1276,7 @@ class Qe extends gt {
1238
1276
  })
1239
1277
  );
1240
1278
  };
1241
- t.intercept({ handler: u });
1279
+ t.intercept({ handler: c });
1242
1280
  }
1243
1281
  handleDefault(t) {
1244
1282
  const e = this.state.screenStack, r = t.destination, s = new URL(r.url).pathname;
@@ -1247,17 +1285,17 @@ class Qe extends gt {
1247
1285
  const i = () => {
1248
1286
  if (me(t.info))
1249
1287
  return Promise.resolve();
1250
- const h = window.navigation.transition;
1288
+ const l = window.navigation.transition;
1251
1289
  let f = e.findIndex(
1252
- (p) => p.key === h?.from.key
1290
+ (p) => p.key === l?.from.key
1253
1291
  );
1254
- f === -1 && t.navigationType === "traverse" && (f = e.findIndex((p) => h?.from.url ? N(
1292
+ f === -1 && t.navigationType === "traverse" && (f = e.findIndex((p) => l?.from.url ? Y(
1255
1293
  p.props.path,
1256
- new URL(h.from.url).pathname,
1294
+ new URL(l.from.url).pathname,
1257
1295
  this.baseURLPattern.pathname,
1258
1296
  p.props.caseSensitive
1259
1297
  ) : !1));
1260
- const d = (e[f]?.key || h?.from.key) ?? null, P = e.findIndex(
1298
+ const d = (e[f]?.key || l?.from.key) ?? null, P = e.findIndex(
1261
1299
  (p) => p.key === t.destination.key
1262
1300
  ), w = (e[P]?.key || window.navigation.currentEntry?.key) ?? null;
1263
1301
  if (t.navigationType === "push") {
@@ -1276,19 +1314,19 @@ class Qe extends gt {
1276
1314
  }
1277
1315
  const v = new AbortController();
1278
1316
  return new Promise(
1279
- (p, y) => U(() => {
1317
+ (p, y) => N(() => {
1280
1318
  this.setState(
1281
- { controller: v, destinationKey: w, fromKey: d, transition: h, screenStack: e },
1319
+ { controller: v, destinationKey: w, fromKey: d, transition: l, screenStack: e },
1282
1320
  async () => {
1283
1321
  v.signal.onabort = y;
1284
- const c = t.signal, a = this.getScreenRefByKey(String(d)), l = this.getScreenRefByKey(
1322
+ const u = t.signal, a = this.getScreenRefByKey(String(d)), h = this.getScreenRefByKey(
1285
1323
  String(w)
1286
1324
  ), m = this.dispatchLifecycleHandlers(
1287
- l,
1325
+ h,
1288
1326
  a,
1289
- c
1327
+ u
1290
1328
  ).catch(y), E = this.screenTransition(
1291
- l,
1329
+ h,
1292
1330
  a
1293
1331
  );
1294
1332
  E?.updatePlaybackRate(1), E?.finished.catch(y), await m, this.setState(
@@ -1309,8 +1347,8 @@ class Qe extends gt {
1309
1347
  pe(t.info) ? (o = "after-transition", this.addEventListener("gesture-end", () => t.commit?.(), { once: !0 }), this.addEventListener("gesture-cancel", this.onGestureCancel, {
1310
1348
  once: !0
1311
1349
  })) : o = "immediate";
1312
- const u = { handler: i, commit: o };
1313
- t.intercept(u);
1350
+ const c = { handler: i, commit: o };
1351
+ t.intercept(c);
1314
1352
  }
1315
1353
  async dispatchLifecycleHandlers(t, e, r) {
1316
1354
  let s = !1;
@@ -1339,16 +1377,16 @@ class Qe extends gt {
1339
1377
  }
1340
1378
  }
1341
1379
  function _e() {
1342
- return C("Stack.Navigation"), mt();
1380
+ return j("Stack.Navigation"), mt();
1343
1381
  }
1344
1382
  function tn() {
1345
- return C("Stack.Router"), yt();
1383
+ return j("Stack.Router"), yt();
1346
1384
  }
1347
1385
  function en() {
1348
- return C("Stack.Route"), wt();
1386
+ return j("Stack.Route"), wt();
1349
1387
  }
1350
1388
  function nn(n, t) {
1351
- return C("Stack.Params"), Et(n, t);
1389
+ return j("Stack.Params"), Et(n, t);
1352
1390
  }
1353
1391
  function Le(n) {
1354
1392
  const t = _e();
@@ -1363,7 +1401,7 @@ function Te(n, t = {}) {
1363
1401
  },
1364
1402
  [n]
1365
1403
  );
1366
- return Y(() => {
1404
+ return C(() => {
1367
1405
  const s = new IntersectionObserver(r, t), i = e.current;
1368
1406
  return i && s.observe(i), () => {
1369
1407
  i && s.unobserve(i);
@@ -1371,7 +1409,7 @@ function Te(n, t = {}) {
1371
1409
  }, [r, t]), e;
1372
1410
  }
1373
1411
  function ct(n, t, e, r) {
1374
- Y(() => {
1412
+ C(() => {
1375
1413
  const s = n.current;
1376
1414
  if (s)
1377
1415
  return s.addEventListener(t, e, r), () => {
@@ -1379,7 +1417,7 @@ function ct(n, t, e, r) {
1379
1417
  };
1380
1418
  }, [n, t, e, r]);
1381
1419
  }
1382
- function ke(n, { forceThreshold: t = Se } = {}) {
1420
+ function Re(n, { forceThreshold: t = Se } = {}) {
1383
1421
  const e = $(null), r = () => n(!0), s = (i) => {
1384
1422
  const o = i.touches[0];
1385
1423
  o && o.force >= t && n(!0);
@@ -1394,28 +1432,28 @@ function rn({
1394
1432
  href: s,
1395
1433
  navigation: i,
1396
1434
  onClick: o,
1397
- preloadBehaviour: u = {
1435
+ preloadBehaviour: c = {
1398
1436
  type: "onsight"
1399
1437
  },
1400
- children: h,
1438
+ children: l,
1401
1439
  ...f
1402
1440
  }) {
1403
- const d = Le(i), P = u?.type === "onsight", w = u?.type === "onhover", v = u?.type === "force", p = Te(
1441
+ const d = Le(i), P = c?.type === "onsight", w = c?.type === "onhover", v = c?.type === "force", p = Te(
1404
1442
  (S) => {
1405
1443
  !S.isIntersecting || !n || d.preload(s, { params: e });
1406
1444
  },
1407
- P ? u : {}
1408
- ), y = ke(
1445
+ P ? c : {}
1446
+ ), y = Re(
1409
1447
  (S) => {
1410
1448
  !S || !n || d.preload(s, { params: e });
1411
1449
  },
1412
- w ? u : {}
1450
+ w ? c : {}
1413
1451
  );
1414
- Y(() => {
1452
+ C(() => {
1415
1453
  !n || !v || d.preload(s, { params: e });
1416
1454
  }, [n, s, d, v, e]);
1417
- const [c, a] = St(void 0), l = d?.routerId, E = !c?.includes(window.location.origin) ? "noopener noreferrer" : t ? "prev" : "next";
1418
- Y(() => {
1455
+ const [u, a] = St(void 0), h = d?.routerId, E = !u?.includes(window.location.origin) ? "noopener noreferrer" : t ? "prev" : "next";
1456
+ C(() => {
1419
1457
  if (t && d.canGoBack())
1420
1458
  a(d.previous.url?.href);
1421
1459
  else if (s) {
@@ -1426,27 +1464,27 @@ function rn({
1426
1464
  const b = (S) => {
1427
1465
  t ? (S.preventDefault(), d.goBack()) : r === "replace" && s && (S.preventDefault(), d.replace(s)), o?.(S);
1428
1466
  };
1429
- let R;
1430
- switch (u?.type) {
1467
+ let k;
1468
+ switch (c?.type) {
1431
1469
  case "onhover":
1432
- R = y;
1470
+ k = y;
1433
1471
  break;
1434
1472
  case "onsight":
1435
- R = p;
1473
+ k = p;
1436
1474
  break;
1437
1475
  default:
1438
- R = null;
1476
+ k = null;
1439
1477
  }
1440
- return /* @__PURE__ */ lt(
1478
+ return /* @__PURE__ */ ut(
1441
1479
  "a",
1442
1480
  {
1443
- href: c,
1444
- "data-router-id": l,
1481
+ href: u,
1482
+ "data-router-id": h,
1445
1483
  onClick: b,
1446
1484
  rel: E,
1447
- ref: R,
1485
+ ref: k,
1448
1486
  ...f,
1449
- children: h
1487
+ children: l
1450
1488
  }
1451
1489
  );
1452
1490
  }
@@ -1457,7 +1495,7 @@ const sn = [
1457
1495
  {
1458
1496
  transform: "translateX(0vw)"
1459
1497
  }
1460
- ], Re = [
1498
+ ], ke = [
1461
1499
  {
1462
1500
  transform: "translateX(100vw)"
1463
1501
  },
@@ -1513,7 +1551,7 @@ const sn = [
1513
1551
  {
1514
1552
  transform: "translateY(0vh)"
1515
1553
  }
1516
- ], De = [
1554
+ ], Oe = [
1517
1555
  {
1518
1556
  transform: "translateY(100vh)"
1519
1557
  },
@@ -1573,7 +1611,7 @@ const sn = [
1573
1611
  {
1574
1612
  opacity: 0
1575
1613
  }
1576
- ], Oe = [
1614
+ ], De = [
1577
1615
  {
1578
1616
  opacity: 0,
1579
1617
  transform: "translateY(calc(100vh * 0.08))"
@@ -1622,7 +1660,7 @@ const sn = [
1622
1660
  {
1623
1661
  transform: "translateY(-2vh)"
1624
1662
  }
1625
- ], Xe = [
1663
+ ], Ce = [
1626
1664
  {
1627
1665
  transform: "scale(0.85)",
1628
1666
  opacity: 0
@@ -1639,7 +1677,7 @@ const sn = [
1639
1677
  transform: "scale(1)",
1640
1678
  opacity: 1
1641
1679
  }
1642
- ], Ce = [
1680
+ ], Xe = [
1643
1681
  {
1644
1682
  transform: "scale(1)",
1645
1683
  opacity: 1
@@ -1680,7 +1718,7 @@ const tt = {
1680
1718
  velocity: 0,
1681
1719
  steps: 200
1682
1720
  })
1683
- }, ht = {
1721
+ }, lt = {
1684
1722
  duration: 350,
1685
1723
  easing: A(He(Ue(5)))
1686
1724
  }, Ne = {
@@ -1702,7 +1740,7 @@ const tt = {
1702
1740
  function mn({ ref: n, direction: t, playbackRate: e, index: r }) {
1703
1741
  let i = [
1704
1742
  Ie,
1705
- Re
1743
+ ke
1706
1744
  ][r];
1707
1745
  const o = {
1708
1746
  playbackRate: e,
@@ -1724,7 +1762,7 @@ function yn({ ref: n, direction: t, playbackRate: e, index: r }) {
1724
1762
  return t === "reverse" && (i = i.toReversed()), new KeyframeEffect(n, i, o);
1725
1763
  }
1726
1764
  function wn({ ref: n, direction: t, playbackRate: e }) {
1727
- let r = De;
1765
+ let r = Oe;
1728
1766
  const s = {
1729
1767
  playbackRate: e,
1730
1768
  fill: "forwards",
@@ -1733,11 +1771,11 @@ function wn({ ref: n, direction: t, playbackRate: e }) {
1733
1771
  return t === "reverse" && (r = r.toReversed()), new KeyframeEffect(n, r, s);
1734
1772
  }
1735
1773
  function En({ ref: n, direction: t, playbackRate: e }) {
1736
- let r = Oe;
1774
+ let r = De;
1737
1775
  const s = {
1738
1776
  playbackRate: e,
1739
1777
  fill: "forwards",
1740
- ...ht
1778
+ ...lt
1741
1779
  };
1742
1780
  return t === "reverse" && (r = r.toReversed()), new KeyframeEffect(n, r, s);
1743
1781
  }
@@ -1764,23 +1802,24 @@ function Sn({ ref: n, direction: t, index: e, playbackRate: r }) {
1764
1802
  return new KeyframeEffect(n, i, o);
1765
1803
  }
1766
1804
  function bn({ ref: n, direction: t, index: e, playbackRate: r }) {
1767
- let s = [
1805
+ const s = [
1768
1806
  Me,
1769
1807
  Ke
1770
- ], i;
1771
- e === 0 ? i = Ne : i = ht;
1808
+ ];
1809
+ let i;
1810
+ e === 0 ? i = Ne : i = lt;
1772
1811
  let o = s[e];
1773
- const u = {
1812
+ const c = {
1774
1813
  playbackRate: r,
1775
1814
  fill: "forwards",
1776
1815
  ...i
1777
1816
  };
1778
- return t === "reverse" && (o = o.toReversed()), new KeyframeEffect(n, o, u);
1817
+ return t === "reverse" && (o = o.toReversed()), new KeyframeEffect(n, o, c);
1779
1818
  }
1780
1819
  function _n({ ref: n, direction: t, index: e, playbackRate: r }) {
1781
1820
  const i = [
1782
- Ce,
1783
- Xe
1821
+ Xe,
1822
+ Ce
1784
1823
  ][e], o = {
1785
1824
  direction: t,
1786
1825
  playbackRate: r,
@@ -1791,7 +1830,7 @@ function _n({ ref: n, direction: t, index: e, playbackRate: r }) {
1791
1830
  }
1792
1831
  function Ln({ disabled: n, children: t, ...e }) {
1793
1832
  const r = $(null);
1794
- return Y(() => {
1833
+ return C(() => {
1795
1834
  if (n)
1796
1835
  return;
1797
1836
  const s = (i) => {
@@ -1800,7 +1839,7 @@ function Ln({ disabled: n, children: t, ...e }) {
1800
1839
  return r.current?.addEventListener("swipestart", s), () => {
1801
1840
  r.current?.removeEventListener("swipestart", s);
1802
1841
  };
1803
- }, [r, n]), /* @__PURE__ */ lt(
1842
+ }, [r, n]), /* @__PURE__ */ ut(
1804
1843
  "div",
1805
1844
  {
1806
1845
  ref: r,
@@ -1835,8 +1874,8 @@ export {
1835
1874
  We as androidBottomSheetSlideOutOptions,
1836
1875
  Ye as androidConcealToBottomKeyframes,
1837
1876
  En as androidFadeInFromBottom,
1838
- Oe as androidFadeInFromBottomKeyframes,
1839
- ht as androidFadeInFromBottomOptions,
1877
+ De as androidFadeInFromBottomKeyframes,
1878
+ lt as androidFadeInFromBottomOptions,
1840
1879
  Pn as androidFadeInFromBottomSheet,
1841
1880
  je as androidFadeInFromBottomSheetKeyframes,
1842
1881
  bn as androidFadeInFromRight,
@@ -1847,16 +1886,16 @@ export {
1847
1886
  Be as androidRevealFromBottomKeyframes,
1848
1887
  Ve as androidRevealFromBottomOptions,
1849
1888
  _n as androidScaleFromCentre,
1850
- Xe as androidScaleFromCentreKeyframes,
1889
+ Ce as androidScaleFromCentreKeyframes,
1851
1890
  $e as androidScaleFromCentreOptions,
1852
- Ce as androidScaleToCentreKeyframes,
1891
+ Xe as androidScaleToCentreKeyframes,
1853
1892
  tt as iOSKeyframeOptions,
1854
1893
  wn as iOSSlideInFromBottom,
1855
- De as iOSSlideInFromBottomKeyframes,
1894
+ Oe as iOSSlideInFromBottomKeyframes,
1856
1895
  yn as iOSSlideInFromLeft,
1857
1896
  xe as iOSSlideInFromLeftKeyframes,
1858
1897
  mn as iOSSlideInFromRight,
1859
- Re as iOSSlideInFromRightKeyframes,
1898
+ ke as iOSSlideInFromRightKeyframes,
1860
1899
  Ie as iOSSlideOutToLeftKeyframes,
1861
1900
  Fe as iOSSlideOutToRightKeyframes,
1862
1901
  _e as useNavigation,