telecop 0.1.28 → 0.1.31

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.mjs CHANGED
@@ -1,48 +1,48 @@
1
1
  "use client";
2
- import { jsx as r, jsxs as g, Fragment as N } from "react/jsx-runtime";
3
- import C, { useState as $ } from "react";
4
- const S = ({
5
- children: a,
6
- variant: e = "primary",
7
- size: d = "md",
8
- onClick: n,
9
- disabled: t = !1,
10
- className: o = ""
2
+ import { jsx as n, jsxs as u, Fragment as T } from "react/jsx-runtime";
3
+ import q, { useState as G, useRef as f, useEffect as v } from "react";
4
+ const ja = ({
5
+ children: e,
6
+ variant: a = "primary",
7
+ size: t = "md",
8
+ onClick: r,
9
+ disabled: o = !1,
10
+ className: i = ""
11
11
  }) => {
12
- const s = "font-semibold rounded-lg transition-all duration-200 cursor-pointer", l = {
12
+ const s = "font-semibold rounded-lg transition-all duration-200 cursor-pointer", d = {
13
13
  primary: "bg-blue-600 hover:bg-blue-700 text-white shadow-md hover:shadow-lg",
14
14
  secondary: "bg-gray-600 hover:bg-gray-700 text-white shadow-md hover:shadow-lg",
15
15
  danger: "bg-red-600 hover:bg-red-700 text-white shadow-md hover:shadow-lg"
16
- }, i = {
16
+ }, l = {
17
17
  sm: "px-3 py-1.5 text-sm",
18
18
  md: "px-4 py-2 text-base",
19
19
  lg: "px-6 py-3 text-lg"
20
- }, p = t ? "opacity-50 cursor-not-allowed" : "";
21
- return /* @__PURE__ */ r(
20
+ }, c = o ? "opacity-50 cursor-not-allowed" : "";
21
+ return /* @__PURE__ */ n(
22
22
  "button",
23
23
  {
24
- className: `${s} ${l[e]} ${i[d]} ${p} ${o}`,
25
- onClick: n,
26
- disabled: t,
27
- children: a
24
+ className: `${s} ${d[a]} ${l[t]} ${c} ${i}`,
25
+ onClick: r,
26
+ disabled: o,
27
+ children: e
28
28
  }
29
29
  );
30
- }, x = ({
31
- children: a,
32
- variant: e = "blur",
33
- size: d = "md",
34
- onClick: n,
35
- disabled: t = !1,
36
- className: o = ""
30
+ }, O = ({
31
+ children: e,
32
+ variant: a = "blur",
33
+ size: t = "md",
34
+ onClick: r,
35
+ disabled: o = !1,
36
+ className: i = ""
37
37
  }) => {
38
- const [s, l] = $([]), i = (b) => {
39
- if (!t && n) {
40
- const h = b.currentTarget.getBoundingClientRect(), f = b.clientX - h.left, w = b.clientY - h.top, v = Date.now();
41
- l([...s, { x: f, y: w, id: v }]), setTimeout(() => {
42
- l((y) => y.filter((k) => k.id !== v));
43
- }, 800), n();
44
- }
45
- }, p = `
38
+ const [s, d] = G([]), l = (p) => {
39
+ if (!o && r) {
40
+ const h = p.currentTarget.getBoundingClientRect(), x = p.clientX - h.left, N = p.clientY - h.top, k = Date.now();
41
+ d([...s, { x, y: N, id: k }]), setTimeout(() => {
42
+ d((P) => P.filter((R) => R.id !== k));
43
+ }, 800), r();
44
+ }
45
+ }, c = `
46
46
  relative overflow-hidden
47
47
  backdrop-blur-xl
48
48
  border border-white/30
@@ -52,11 +52,11 @@ const S = ({
52
52
  cursor-pointer
53
53
  shadow-xl
54
54
  group
55
- `, c = {
55
+ `, g = {
56
56
  sm: "px-5 py-2.5 text-sm",
57
57
  md: "px-7 py-3.5 text-base",
58
58
  lg: "px-9 py-4.5 text-lg"
59
- }, u = {
59
+ }, b = {
60
60
  blur: `
61
61
  bg-white/5
62
62
  hover:bg-white/15
@@ -82,83 +82,83 @@ const S = ({
82
82
  hover:before:translate-x-[200%]
83
83
  before:transition-transform before:duration-1000
84
84
  `
85
- }, m = t ? "opacity-40 cursor-not-allowed hover:scale-100 hover:shadow-xl" : "";
86
- return /* @__PURE__ */ g(
85
+ }, m = o ? "opacity-40 cursor-not-allowed hover:scale-100 hover:shadow-xl" : "";
86
+ return /* @__PURE__ */ u(
87
87
  "button",
88
88
  {
89
- className: `${p} ${c[d]} ${u[e]} ${m} ${o}`,
90
- onClick: i,
91
- disabled: t,
89
+ className: `${c} ${g[t]} ${b[a]} ${m} ${i}`,
90
+ onClick: l,
91
+ disabled: o,
92
92
  children: [
93
- e === "waves" && !t && /* @__PURE__ */ g(N, { children: [
94
- /* @__PURE__ */ r("span", { className: "absolute inset-0 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-pink-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-700" }),
95
- /* @__PURE__ */ r("span", { className: "absolute inset-0 bg-gradient-to-br from-transparent via-white/10 to-transparent animate-pulse" })
93
+ a === "waves" && !o && /* @__PURE__ */ u(T, { children: [
94
+ /* @__PURE__ */ n("span", { className: "absolute inset-0 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-pink-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-700" }),
95
+ /* @__PURE__ */ n("span", { className: "absolute inset-0 bg-gradient-to-br from-transparent via-white/10 to-transparent animate-pulse" })
96
96
  ] }),
97
- e === "blur" && !t && /* @__PURE__ */ r("span", { className: "absolute inset-0 bg-white/5 blur-xl opacity-0 group-hover:opacity-100 transition-opacity duration-500" }),
98
- /* @__PURE__ */ r("span", { className: "absolute inset-0 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none", children: /* @__PURE__ */ r("span", { className: "absolute inset-[-2px] rounded-2xl bg-gradient-to-r from-transparent via-white/40 to-transparent blur-sm animate-shimmer" }) }),
99
- s.map((b) => /* @__PURE__ */ r(
97
+ a === "blur" && !o && /* @__PURE__ */ n("span", { className: "absolute inset-0 bg-white/5 blur-xl opacity-0 group-hover:opacity-100 transition-opacity duration-500" }),
98
+ /* @__PURE__ */ n("span", { className: "absolute inset-0 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none", children: /* @__PURE__ */ n("span", { className: "absolute inset-[-2px] rounded-2xl bg-gradient-to-r from-transparent via-white/40 to-transparent blur-sm animate-shimmer" }) }),
99
+ s.map((p) => /* @__PURE__ */ n(
100
100
  "span",
101
101
  {
102
102
  className: "absolute rounded-full bg-white/30 pointer-events-none animate-ripple",
103
103
  style: {
104
- left: b.x,
105
- top: b.y,
104
+ left: p.x,
105
+ top: p.y,
106
106
  width: "20px",
107
107
  height: "20px",
108
108
  transform: "translate(-50%, -50%)"
109
109
  }
110
110
  },
111
- b.id
111
+ p.id
112
112
  )),
113
- /* @__PURE__ */ r("span", { className: "relative z-10 drop-shadow-lg", children: a })
113
+ /* @__PURE__ */ n("span", { className: "relative z-10 drop-shadow-lg", children: e })
114
114
  ]
115
115
  }
116
116
  );
117
- }, M = ({
118
- name: a,
119
- title: e,
120
- description: d = "Welcome to my portfolio",
121
- primaryButtonText: n = "Get Started",
122
- primaryButtonLink: t,
123
- primaryButtonOnClick: o,
117
+ }, Fa = ({
118
+ name: e,
119
+ title: a,
120
+ description: t = "Welcome to my portfolio",
121
+ primaryButtonText: r = "Get Started",
122
+ primaryButtonLink: o,
123
+ primaryButtonOnClick: i,
124
124
  secondaryButtonText: s = "Learn More",
125
- secondaryButtonLink: l,
126
- secondaryButtonOnClick: i,
127
- backgroundGradient: p = "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
128
- animationType: c,
129
- className: u = ""
125
+ secondaryButtonLink: d,
126
+ secondaryButtonOnClick: l,
127
+ backgroundGradient: c = "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
128
+ animationType: g,
129
+ className: b = ""
130
130
  }) => {
131
131
  const m = () => {
132
- t ? window.location.href = t : o && o();
133
- }, b = () => {
134
- l ? window.location.href = l : i && i();
135
- }, h = t ? /* @__PURE__ */ r("a", { href: t, style: { textDecoration: "none" }, children: /* @__PURE__ */ r(x, { variant: "waves", size: "lg", children: n }) }) : /* @__PURE__ */ r(
136
- x,
132
+ o ? window.location.href = o : i && i();
133
+ }, p = () => {
134
+ d ? window.location.href = d : l && l();
135
+ }, h = o ? /* @__PURE__ */ n("a", { href: o, style: { textDecoration: "none" }, children: /* @__PURE__ */ n(O, { variant: "waves", size: "lg", children: r }) }) : /* @__PURE__ */ n(
136
+ O,
137
137
  {
138
138
  variant: "waves",
139
139
  size: "lg",
140
- onClick: o || m,
141
- children: n
140
+ onClick: i || m,
141
+ children: r
142
142
  }
143
- ), f = l ? /* @__PURE__ */ r("a", { href: l, style: { textDecoration: "none" }, children: /* @__PURE__ */ r(x, { variant: "blur", size: "lg", children: s }) }) : /* @__PURE__ */ r(
144
- x,
143
+ ), x = d ? /* @__PURE__ */ n("a", { href: d, style: { textDecoration: "none" }, children: /* @__PURE__ */ n(O, { variant: "blur", size: "lg", children: s }) }) : /* @__PURE__ */ n(
144
+ O,
145
145
  {
146
146
  variant: "blur",
147
147
  size: "lg",
148
- onClick: i || b,
148
+ onClick: l || p,
149
149
  children: s
150
150
  }
151
151
  );
152
- return /* @__PURE__ */ r(
152
+ return /* @__PURE__ */ n(
153
153
  "div",
154
154
  {
155
- className: c ? `animate-gradient-${c}` : "",
155
+ className: g ? `animate-gradient-${g}` : "",
156
156
  style: {
157
- background: p,
157
+ background: c,
158
158
  minHeight: "100vh"
159
159
  },
160
- children: /* @__PURE__ */ r("div", { className: `min-h-screen flex items-center justify-center p-8 ${u}`, children: /* @__PURE__ */ g("div", { className: "max-w-4xl w-full text-center space-y-8", children: [
161
- /* @__PURE__ */ r(
160
+ children: /* @__PURE__ */ n("div", { className: `min-h-screen flex items-center justify-center p-8 ${b}`, children: /* @__PURE__ */ u("div", { className: "max-w-4xl w-full text-center space-y-8", children: [
161
+ /* @__PURE__ */ n(
162
162
  "h1",
163
163
  {
164
164
  className: "text-6xl md:text-8xl font-bold text-white mb-4",
@@ -166,10 +166,10 @@ const S = ({
166
166
  textShadow: "0 0 40px rgba(0,0,0,0.3)",
167
167
  animation: "fadeInUp 0.8s ease-out"
168
168
  },
169
- children: a
169
+ children: e
170
170
  }
171
171
  ),
172
- /* @__PURE__ */ r(
172
+ /* @__PURE__ */ n(
173
173
  "h2",
174
174
  {
175
175
  className: "text-3xl md:text-5xl font-semibold text-white/90",
@@ -177,10 +177,10 @@ const S = ({
177
177
  textShadow: "0 0 30px rgba(0,0,0,0.2)",
178
178
  animation: "fadeInUp 1s ease-out 0.2s backwards"
179
179
  },
180
- children: e
180
+ children: a
181
181
  }
182
182
  ),
183
- /* @__PURE__ */ r(
183
+ /* @__PURE__ */ n(
184
184
  "p",
185
185
  {
186
186
  className: "text-xl md:text-2xl text-white/80 max-w-2xl mx-auto",
@@ -188,10 +188,10 @@ const S = ({
188
188
  textShadow: "0 0 20px rgba(0,0,0,0.2)",
189
189
  animation: "fadeInUp 1.2s ease-out 0.4s backwards"
190
190
  },
191
- children: d
191
+ children: t
192
192
  }
193
193
  ),
194
- /* @__PURE__ */ g(
194
+ /* @__PURE__ */ u(
195
195
  "div",
196
196
  {
197
197
  className: "flex flex-wrap gap-6 justify-center mt-12",
@@ -200,11 +200,11 @@ const S = ({
200
200
  },
201
201
  children: [
202
202
  h,
203
- f
203
+ x
204
204
  ]
205
205
  }
206
206
  ),
207
- /* @__PURE__ */ r(
207
+ /* @__PURE__ */ n(
208
208
  "div",
209
209
  {
210
210
  className: "mt-16 mx-auto w-32 h-1 rounded-full",
@@ -217,7 +217,7 @@ const S = ({
217
217
  ] }) })
218
218
  }
219
219
  );
220
- }, B = [
220
+ }, Wa = [
221
221
  // ========== PREMIUM THEMES (NEW) ==========
222
222
  {
223
223
  id: "glass-morphism",
@@ -682,10 +682,10 @@ const S = ({
682
682
  category: "animated",
683
683
  animation: "zoom"
684
684
  }
685
- ], D = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-blue-600 hover:bg-blue-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: a }), z = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-red-600 hover:bg-red-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: a }), R = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-green-600 hover:bg-green-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: a }), I = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-purple-600 hover:bg-purple-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: a }), j = ({ children: a = "Pill Button", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-8 py-3 rounded-full font-semibold text-white bg-indigo-600 hover:bg-indigo-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: a }), A = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-purple-500/50", children: a }), E = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-blue-600 to-green-600 hover:from-blue-700 hover:to-green-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-blue-500/50", children: a }), F = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-orange-600 to-red-600 hover:from-orange-700 hover:to-red-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-orange-500/50", children: a }), H = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-br from-cyan-400 to-blue-600 hover:from-cyan-500 hover:to-blue-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-cyan-500/50", children: a }), q = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-yellow-500 via-orange-500 to-red-600 hover:from-yellow-600 hover:via-orange-600 hover:to-red-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-orange-500/50", children: a }), U = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-blue-500/20 backdrop-blur-xl border border-blue-400/30 hover:bg-blue-500/30 hover:border-blue-400/50 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-blue-500/20", children: a }), W = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-purple-500/20 backdrop-blur-xl border border-purple-400/30 hover:bg-purple-500/30 hover:border-purple-400/50 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-purple-500/20", children: a }), O = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-white/10 backdrop-blur-xl border border-white/30 hover:bg-white/20 hover:border-white/50 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-white/20", children: a }), Y = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-pink-500/20 backdrop-blur-xl border border-pink-400/30 hover:bg-pink-500/30 hover:border-pink-400/50 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-pink-500/20", children: a }), T = ({ children: a = "Shimmer Effect", onClick: e }) => /* @__PURE__ */ g("button", { onClick: e, className: "relative px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-purple-600 to-blue-600 overflow-hidden group transition-all duration-300 hover:scale-105", children: [
686
- /* @__PURE__ */ r("span", { className: "relative z-10", children: a }),
687
- /* @__PURE__ */ r("span", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/30 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000" })
688
- ] }), V = ({ children: a = "Pulse Button", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-red-600 hover:bg-red-700 transition-all duration-300 animate-pulse hover:animate-none hover:scale-105", children: a }), X = ({ children: a = "Bounce Button", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-green-600 hover:bg-green-700 transition-all duration-300 hover:animate-bounce", children: a }), Z = ({ children: a = "Glow Effect", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-purple-600 hover:bg-purple-700 transition-all duration-300 hover:shadow-[0_0_30px_rgba(168,85,247,0.8)] hover:scale-105", children: a }), J = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-blue-500 border-2 border-blue-500 hover:bg-blue-500 hover:text-white transition-all duration-300 hover:scale-105", children: a }), K = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-purple-500 border-2 border-purple-500 hover:bg-purple-500 hover:text-white transition-all duration-300 hover:scale-105", children: a }), Q = ({ children: a = "Gradient Border", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-transparent bg-clip-text bg-gradient-to-r from-purple-500 to-pink-500 border-2 border-transparent hover:text-white transition-all duration-300 hover:scale-105", style: { borderImage: "linear-gradient(to right, rgb(168, 85, 247), rgb(236, 72, 153)) 1" }, children: a }), L = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-blue-500 hover:bg-blue-500/10 transition-all duration-300 hover:scale-105", children: a }), ee = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-red-500 hover:bg-red-500/10 transition-all duration-300 hover:scale-105", children: a }), ae = ({ children: a = "Click Me", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-purple-500 hover:bg-purple-500/10 transition-all duration-300 hover:scale-105", children: a }), re = ({ children: a = "3D Button", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-blue-600 shadow-[0_6px_0_rgb(37,99,235)] hover:shadow-[0_4px_0_rgb(37,99,235)] hover:translate-y-[2px] transition-all duration-150", children: a }), te = ({ children: a = "3D Button", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-pink-600 shadow-[0_6px_0_rgb(219,39,119)] hover:shadow-[0_4px_0_rgb(219,39,119)] hover:translate-y-[2px] transition-all duration-150", children: a }), ne = ({ children: a = "3D Button", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-white bg-green-600 shadow-[0_6px_0_rgb(22,163,74)] hover:shadow-[0_4px_0_rgb(22,163,74)] hover:translate-y-[2px] transition-all duration-150", children: a }), ie = ({ children: a = "Neon Blue", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-blue-400 border-2 border-blue-400 hover:bg-blue-400 hover:text-black transition-all duration-300 hover:shadow-[0_0_20px_rgba(59,130,246,0.8)] hover:scale-105", children: a }), de = ({ children: a = "Neon Pink", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-pink-400 border-2 border-pink-400 hover:bg-pink-400 hover:text-black transition-all duration-300 hover:shadow-[0_0_20px_rgba(236,72,153,0.8)] hover:scale-105", children: a }), oe = ({ children: a = "Neon Green", onClick: e }) => /* @__PURE__ */ r("button", { onClick: e, className: "px-6 py-3 rounded-lg font-semibold text-green-400 border-2 border-green-400 hover:bg-green-400 hover:text-black transition-all duration-300 hover:shadow-[0_0_20px_rgba(34,197,94,0.8)] hover:scale-105", children: a }), G = {
685
+ ], Qa = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-blue-600 hover:bg-blue-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: e }), Va = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-red-600 hover:bg-red-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: e }), Za = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-green-600 hover:bg-green-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: e }), Ja = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-purple-600 hover:bg-purple-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: e }), Ka = ({ children: e = "Pill Button", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-8 py-3 rounded-full font-semibold text-white bg-indigo-600 hover:bg-indigo-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: e }), et = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-purple-500/50", children: e }), at = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-blue-600 to-green-600 hover:from-blue-700 hover:to-green-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-blue-500/50", children: e }), tt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-orange-600 to-red-600 hover:from-orange-700 hover:to-red-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-orange-500/50", children: e }), rt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-br from-cyan-400 to-blue-600 hover:from-cyan-500 hover:to-blue-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-cyan-500/50", children: e }), nt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-yellow-500 via-orange-500 to-red-600 hover:from-yellow-600 hover:via-orange-600 hover:to-red-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-orange-500/50", children: e }), ot = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-blue-500/20 backdrop-blur-xl border border-blue-400/30 hover:bg-blue-500/30 hover:border-blue-400/50 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-blue-500/20", children: e }), it = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-purple-500/20 backdrop-blur-xl border border-purple-400/30 hover:bg-purple-500/30 hover:border-purple-400/50 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-purple-500/20", children: e }), st = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-white/10 backdrop-blur-xl border border-white/30 hover:bg-white/20 hover:border-white/50 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-white/20", children: e }), lt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-pink-500/20 backdrop-blur-xl border border-pink-400/30 hover:bg-pink-500/30 hover:border-pink-400/50 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-pink-500/20", children: e }), dt = ({ children: e = "Shimmer Effect", onClick: a }) => /* @__PURE__ */ u("button", { onClick: a, className: "relative px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-purple-600 to-blue-600 overflow-hidden group transition-all duration-300 hover:scale-105", children: [
686
+ /* @__PURE__ */ n("span", { className: "relative z-10", children: e }),
687
+ /* @__PURE__ */ n("span", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/30 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000" })
688
+ ] }), ct = ({ children: e = "Pulse Button", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-red-600 hover:bg-red-700 transition-all duration-300 animate-pulse hover:animate-none hover:scale-105", children: e }), gt = ({ children: e = "Bounce Button", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-green-600 hover:bg-green-700 transition-all duration-300 hover:animate-bounce", children: e }), pt = ({ children: e = "Glow Effect", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-purple-600 hover:bg-purple-700 transition-all duration-300 hover:shadow-[0_0_30px_rgba(168,85,247,0.8)] hover:scale-105", children: e }), ft = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-blue-500 border-2 border-blue-500 hover:bg-blue-500 hover:text-white transition-all duration-300 hover:scale-105", children: e }), ut = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-purple-500 border-2 border-purple-500 hover:bg-purple-500 hover:text-white transition-all duration-300 hover:scale-105", children: e }), mt = ({ children: e = "Gradient Border", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-transparent bg-clip-text bg-gradient-to-r from-purple-500 to-pink-500 border-2 border-transparent hover:text-white transition-all duration-300 hover:scale-105", style: { borderImage: "linear-gradient(to right, rgb(168, 85, 247), rgb(236, 72, 153)) 1" }, children: e }), bt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-blue-500 hover:bg-blue-500/10 transition-all duration-300 hover:scale-105", children: e }), ht = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-red-500 hover:bg-red-500/10 transition-all duration-300 hover:scale-105", children: e }), xt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-purple-500 hover:bg-purple-500/10 transition-all duration-300 hover:scale-105", children: e }), yt = ({ children: e = "3D Button", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-blue-600 shadow-[0_6px_0_rgb(37,99,235)] hover:shadow-[0_4px_0_rgb(37,99,235)] hover:translate-y-[2px] transition-all duration-150", children: e }), wt = ({ children: e = "3D Button", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-pink-600 shadow-[0_6px_0_rgb(219,39,119)] hover:shadow-[0_4px_0_rgb(219,39,119)] hover:translate-y-[2px] transition-all duration-150", children: e }), vt = ({ children: e = "3D Button", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-green-600 shadow-[0_6px_0_rgb(22,163,74)] hover:shadow-[0_4px_0_rgb(22,163,74)] hover:translate-y-[2px] transition-all duration-150", children: e }), kt = ({ children: e = "Neon Blue", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-blue-400 border-2 border-blue-400 hover:bg-blue-400 hover:text-black transition-all duration-300 hover:shadow-[0_0_20px_rgba(59,130,246,0.8)] hover:scale-105", children: e }), It = ({ children: e = "Neon Pink", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-pink-400 border-2 border-pink-400 hover:bg-pink-400 hover:text-black transition-all duration-300 hover:shadow-[0_0_20px_rgba(236,72,153,0.8)] hover:scale-105", children: e }), Nt = ({ children: e = "Neon Green", onClick: a }) => /* @__PURE__ */ n("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-green-400 border-2 border-green-400 hover:bg-green-400 hover:text-black transition-all duration-300 hover:shadow-[0_0_20px_rgba(34,197,94,0.8)] hover:scale-105", children: e }), H = {
689
689
  "glass-morphism": `
690
690
  radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
691
691
  radial-gradient(circle at 80% 80%, rgba(255, 128, 171, 0.3), transparent 50%),
@@ -711,81 +711,81 @@ const S = ({
711
711
  linear-gradient(180deg, #000000 0%, #0a0a1a 50%, #000000 100%)
712
712
  `,
713
713
  none: "transparent"
714
- }, le = ({
715
- children: a,
716
- layout: e = "center",
717
- size: d = "lg",
718
- theme: n = "none",
719
- padding: t = !0,
720
- gap: o = "md",
714
+ }, Mt = ({
715
+ children: e,
716
+ layout: a = "center",
717
+ size: t = "lg",
718
+ theme: r = "none",
719
+ padding: o = !0,
720
+ gap: i = "md",
721
721
  className: s = ""
722
722
  }) => {
723
- const l = {
723
+ const d = {
724
724
  sm: "max-w-3xl",
725
725
  md: "max-w-5xl",
726
726
  lg: "max-w-7xl",
727
727
  xl: "max-w-[1400px]",
728
728
  full: "max-w-full"
729
- }[d], i = {
729
+ }[t], l = {
730
730
  sm: "gap-4",
731
731
  md: "gap-8",
732
732
  lg: "gap-12"
733
- }[o], p = {
734
- "image-right": `grid md:grid-cols-2 ${i} items-center`,
735
- "image-left": `grid md:grid-cols-2 ${i} items-center`,
736
- "button-right": `grid md:grid-cols-2 ${i} items-center`,
737
- "button-left": `grid md:grid-cols-2 ${i} items-center`,
733
+ }[i], c = {
734
+ "image-right": `grid md:grid-cols-2 ${l} items-center`,
735
+ "image-left": `grid md:grid-cols-2 ${l} items-center`,
736
+ "button-right": `grid md:grid-cols-2 ${l} items-center`,
737
+ "button-left": `grid md:grid-cols-2 ${l} items-center`,
738
738
  center: "flex flex-col items-center justify-center text-center",
739
- "two-columns": `grid md:grid-cols-2 ${i}`,
740
- "three-columns": `grid md:grid-cols-3 ${i}`
741
- }[e], c = t ? "px-6 py-8" : "", u = n !== "none" ? {
742
- background: G[n],
739
+ "two-columns": `grid md:grid-cols-2 ${l}`,
740
+ "three-columns": `grid md:grid-cols-3 ${l}`
741
+ }[a], g = o ? "px-6 py-8" : "", b = r !== "none" ? {
742
+ background: H[r],
743
743
  backgroundSize: "200% 200%"
744
- } : {}, m = C.Children.toArray(a);
745
- let b = m;
746
- return (e === "image-left" || e === "button-left") && (b = m.reverse()), /* @__PURE__ */ r(
744
+ } : {}, m = q.Children.toArray(e);
745
+ let p = m;
746
+ return (a === "image-left" || a === "button-left") && (p = m.reverse()), /* @__PURE__ */ n(
747
747
  "div",
748
748
  {
749
- className: `${l} mx-auto ${c} ${s}`,
750
- style: u,
751
- children: /* @__PURE__ */ r("div", { className: p, children: b })
749
+ className: `${d} mx-auto ${g} ${s}`,
750
+ style: b,
751
+ children: /* @__PURE__ */ n("div", { className: c, children: p })
752
752
  }
753
753
  );
754
- }, se = ({
755
- src: a,
756
- alt: e,
757
- className: d = "",
758
- width: n,
759
- height: t
760
- }) => /* @__PURE__ */ r("div", { className: `w-full ${d}`, children: /* @__PURE__ */ r(
754
+ }, Ot = ({
755
+ src: e,
756
+ alt: a,
757
+ className: t = "",
758
+ width: r,
759
+ height: o
760
+ }) => /* @__PURE__ */ n("div", { className: `w-full ${t}`, children: /* @__PURE__ */ n(
761
761
  "img",
762
762
  {
763
- src: a,
764
- alt: e,
765
- width: n,
766
- height: t,
763
+ src: e,
764
+ alt: a,
765
+ width: r,
766
+ height: o,
767
767
  className: "w-full h-auto rounded-2xl shadow-2xl object-cover"
768
768
  }
769
- ) }), ge = ({
770
- children: a,
771
- className: e = ""
772
- }) => /* @__PURE__ */ r("div", { className: `space-y-4 ${e}`, children: a }), be = ({
773
- children: a,
774
- className: e = ""
775
- }) => /* @__PURE__ */ r("div", { className: `flex gap-4 ${e}`, children: a }), pe = ({
776
- icon: a,
777
- title: e,
778
- description: d,
779
- variant: n = "solid",
780
- theme: t = "blue",
781
- hoverable: o = !0,
769
+ ) }), Ct = ({
770
+ children: e,
771
+ className: a = ""
772
+ }) => /* @__PURE__ */ n("div", { className: `space-y-4 ${a}`, children: e }), Yt = ({
773
+ children: e,
774
+ className: a = ""
775
+ }) => /* @__PURE__ */ n("div", { className: `flex gap-4 ${a}`, children: e }), Xt = ({
776
+ icon: e,
777
+ title: a,
778
+ description: t,
779
+ variant: r = "solid",
780
+ theme: o = "blue",
781
+ hoverable: i = !0,
782
782
  className: s = ""
783
783
  }) => {
784
- const i = `
784
+ const l = `
785
785
  rounded-2xl p-6
786
786
  max-w-sm
787
787
  transition-all duration-300
788
- ${o ? "hover:scale-[1.02] hover:shadow-2xl" : ""}
788
+ ${i ? "hover:scale-[1.02] hover:shadow-2xl" : ""}
789
789
  ${{
790
790
  blue: {
791
791
  solid: "bg-blue-600 text-white",
@@ -823,25 +823,25 @@ const S = ({
823
823
  gradient: "bg-gradient-to-br from-orange-600 to-red-600 text-white",
824
824
  outlined: "bg-transparent border-2 border-orange-500 text-orange-500"
825
825
  }
826
- }[t][n]}
826
+ }[o][r]}
827
827
  ${s}
828
828
  `;
829
- return /* @__PURE__ */ g("div", { className: i, children: [
830
- a && /* @__PURE__ */ r("div", { className: "text-4xl mb-4", children: a }),
831
- /* @__PURE__ */ r("h3", { className: "text-xl font-bold mb-2", children: e }),
832
- /* @__PURE__ */ r("p", { className: `text-sm ${n === "outlined" ? "text-gray-600" : "opacity-90"}`, children: d })
829
+ return /* @__PURE__ */ u("div", { className: l, children: [
830
+ e && /* @__PURE__ */ n("div", { className: "text-4xl mb-4", children: e }),
831
+ /* @__PURE__ */ n("h3", { className: "text-xl font-bold mb-2", children: a }),
832
+ /* @__PURE__ */ n("p", { className: `text-sm ${r === "outlined" ? "text-gray-600" : "opacity-90"}`, children: t })
833
833
  ] });
834
- }, ce = ({
835
- image: a,
836
- title: e,
837
- description: d,
838
- price: n,
839
- oldPrice: t,
840
- badge: o,
834
+ }, Pt = ({
835
+ image: e,
836
+ title: a,
837
+ description: t,
838
+ price: r,
839
+ oldPrice: o,
840
+ badge: i,
841
841
  variant: s = "solid",
842
- children: l,
843
- className: i = ""
844
- }) => /* @__PURE__ */ g("div", { className: `
842
+ children: d,
843
+ className: l = ""
844
+ }) => /* @__PURE__ */ u("div", { className: `
845
845
  rounded-2xl overflow-hidden
846
846
  max-w-sm
847
847
  transition-all duration-300
@@ -852,45 +852,45 @@ const S = ({
852
852
  gradient: "bg-gradient-to-br from-gray-900 to-gray-800 border border-gray-700",
853
853
  outlined: "bg-transparent border-2 border-gray-700"
854
854
  }[s]}
855
- ${i}
855
+ ${l}
856
856
  `, children: [
857
- /* @__PURE__ */ g("div", { className: "relative", children: [
858
- /* @__PURE__ */ r(
857
+ /* @__PURE__ */ u("div", { className: "relative", children: [
858
+ /* @__PURE__ */ n(
859
859
  "img",
860
860
  {
861
- src: a,
862
- alt: e,
861
+ src: e,
862
+ alt: a,
863
863
  className: "w-full h-48 object-cover"
864
864
  }
865
865
  ),
866
- o && /* @__PURE__ */ r("span", { className: "absolute top-3 right-3 px-3 py-1 bg-red-500 text-white text-xs font-bold rounded-full", children: o })
866
+ i && /* @__PURE__ */ n("span", { className: "absolute top-3 right-3 px-3 py-1 bg-red-500 text-white text-xs font-bold rounded-full", children: i })
867
867
  ] }),
868
- /* @__PURE__ */ g("div", { className: "p-5 space-y-3", children: [
869
- /* @__PURE__ */ r("h3", { className: "text-xl font-bold text-white", children: e }),
870
- d && /* @__PURE__ */ r("p", { className: "text-gray-400 text-sm", children: d }),
871
- /* @__PURE__ */ g("div", { className: "flex items-center gap-2", children: [
872
- /* @__PURE__ */ g("span", { className: "text-2xl font-bold text-white", children: [
868
+ /* @__PURE__ */ u("div", { className: "p-5 space-y-3", children: [
869
+ /* @__PURE__ */ n("h3", { className: "text-xl font-bold text-white", children: a }),
870
+ t && /* @__PURE__ */ n("p", { className: "text-gray-400 text-sm", children: t }),
871
+ /* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: [
872
+ /* @__PURE__ */ u("span", { className: "text-2xl font-bold text-white", children: [
873
873
  "$",
874
- n
874
+ r
875
875
  ] }),
876
- t && /* @__PURE__ */ g("span", { className: "text-sm text-gray-500 line-through", children: [
876
+ o && /* @__PURE__ */ u("span", { className: "text-sm text-gray-500 line-through", children: [
877
877
  "$",
878
- t
878
+ o
879
879
  ] })
880
880
  ] }),
881
- l
881
+ d
882
882
  ] })
883
- ] }), me = ({
884
- icon: a,
885
- label: e,
886
- value: d,
887
- change: n,
888
- trend: t = "neutral",
889
- variant: o = "solid",
883
+ ] }), Rt = ({
884
+ icon: e,
885
+ label: a,
886
+ value: t,
887
+ change: r,
888
+ trend: o = "neutral",
889
+ variant: i = "solid",
890
890
  theme: s = "blue",
891
- className: l = ""
891
+ className: d = ""
892
892
  }) => {
893
- const i = {
893
+ const l = {
894
894
  blue: {
895
895
  solid: "bg-blue-600/10 border-blue-500/20",
896
896
  glass: "bg-blue-500/20 backdrop-blur-xl border-blue-400/30",
@@ -927,75 +927,1625 @@ const S = ({
927
927
  gradient: "bg-gradient-to-br from-orange-600/20 to-red-600/20 border-orange-500/30",
928
928
  outlined: "bg-transparent border-2 border-orange-500"
929
929
  }
930
- }, p = {
930
+ }, c = {
931
931
  up: "text-green-400",
932
932
  down: "text-red-400",
933
933
  neutral: "text-gray-400"
934
- }, c = {
934
+ }, g = {
935
935
  up: "↑",
936
936
  down: "↓",
937
937
  neutral: "→"
938
938
  };
939
- return /* @__PURE__ */ g("div", { className: `
939
+ return /* @__PURE__ */ u("div", { className: `
940
940
  rounded-2xl p-6 border
941
941
  max-w-sm
942
942
  transition-all duration-300
943
943
  hover:scale-[1.02] hover:shadow-xl
944
- ${i[s][o]}
945
- ${l}
944
+ ${l[s][i]}
945
+ ${d}
946
946
  `, children: [
947
- /* @__PURE__ */ g("div", { className: "flex items-start justify-between mb-4", children: [
948
- a && /* @__PURE__ */ r("div", { className: "text-3xl", children: a }),
949
- n && /* @__PURE__ */ g("span", { className: `text-sm font-semibold ${p[t]}`, children: [
950
- c[t],
947
+ /* @__PURE__ */ u("div", { className: "flex items-start justify-between mb-4", children: [
948
+ e && /* @__PURE__ */ n("div", { className: "text-3xl", children: e }),
949
+ r && /* @__PURE__ */ u("span", { className: `text-sm font-semibold ${c[o]}`, children: [
950
+ g[o],
951
951
  " ",
952
- n
952
+ r
953
953
  ] })
954
954
  ] }),
955
- /* @__PURE__ */ r("p", { className: "text-gray-400 text-sm mb-1", children: e }),
956
- /* @__PURE__ */ r("p", { className: "text-3xl font-bold text-white", children: d })
955
+ /* @__PURE__ */ n("p", { className: "text-gray-400 text-sm mb-1", children: a }),
956
+ /* @__PURE__ */ n("p", { className: "text-3xl font-bold text-white", children: t })
957
957
  ] });
958
958
  };
959
+ class y {
960
+ constructor(a) {
961
+ this.animation = null, this.element = a;
962
+ }
963
+ /**
964
+ * تشغيل animation باستخدام keyframes
965
+ */
966
+ animate(a, t = {}) {
967
+ const {
968
+ duration: r = 600,
969
+ delay: o = 0,
970
+ easing: i = "ease",
971
+ iterations: s = 1,
972
+ direction: d = "normal",
973
+ fill: l = "both"
974
+ } = t;
975
+ return this.animation && this.animation.cancel(), this.animation = this.element.animate(a, {
976
+ duration: r,
977
+ delay: o,
978
+ easing: typeof i == "string" ? i : "linear",
979
+ iterations: s,
980
+ direction: d,
981
+ fill: l
982
+ }), this.animation.finished;
983
+ }
984
+ /**
985
+ * إيقاف الـ animation
986
+ */
987
+ stop() {
988
+ this.animation && (this.animation.cancel(), this.animation = null);
989
+ }
990
+ /**
991
+ * Pause الـ animation
992
+ */
993
+ pause() {
994
+ this.animation && this.animation.pause();
995
+ }
996
+ /**
997
+ * Resume الـ animation
998
+ */
999
+ resume() {
1000
+ this.animation && this.animation.play();
1001
+ }
1002
+ /**
1003
+ * Reverse الـ animation
1004
+ */
1005
+ reverse() {
1006
+ this.animation && this.animation.reverse();
1007
+ }
1008
+ /**
1009
+ * Get current progress (0 to 1)
1010
+ */
1011
+ getProgress() {
1012
+ return !this.animation || !this.animation.effect ? 0 : this.animation.effect.getComputedTiming().progress || 0;
1013
+ }
1014
+ /**
1015
+ * Check if animation is running
1016
+ */
1017
+ isRunning() {
1018
+ var a;
1019
+ return ((a = this.animation) == null ? void 0 : a.playState) === "running";
1020
+ }
1021
+ }
1022
+ function St(e) {
1023
+ return new y(e);
1024
+ }
1025
+ async function zt(e, a, t = {}) {
1026
+ const r = t.stagger ?? 0, o = {
1027
+ duration: t.duration,
1028
+ delay: t.delay,
1029
+ easing: t.easing,
1030
+ iterations: t.iterations,
1031
+ direction: t.direction,
1032
+ fill: t.fill
1033
+ }, i = e.map((s, d) => new y(s).animate(a, {
1034
+ ...o,
1035
+ delay: (o.delay || 0) + r * d
1036
+ }));
1037
+ return Promise.all(i);
1038
+ }
1039
+ async function Bt(e) {
1040
+ const a = [];
1041
+ for (const { element: t, keyframes: r, config: o } of e) {
1042
+ const s = await new y(t).animate(r, o);
1043
+ a.push(s);
1044
+ }
1045
+ return a;
1046
+ }
1047
+ async function $t(e) {
1048
+ const a = e.map(({ element: t, keyframes: r, config: o }) => new y(t).animate(r, o));
1049
+ return Promise.all(a);
1050
+ }
1051
+ const E = (e) => e, j = (e) => e * e * e, F = (e) => 1 - Math.pow(1 - e, 3), W = (e) => e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2, Q = (e) => e * e, V = (e) => 1 - (1 - e) * (1 - e), Z = (e) => e < 0.5 ? 2 * e * e : 1 - Math.pow(-2 * e + 2, 2) / 2, J = (e) => e * e * e * e, K = (e) => 1 - Math.pow(1 - e, 4), ee = (e) => e < 0.5 ? 8 * e * e * e * e : 1 - Math.pow(-2 * e + 2, 4) / 2, ae = (e) => e * e * e * e * e, te = (e) => 1 - Math.pow(1 - e, 5), re = (e) => e < 0.5 ? 16 * e * e * e * e * e : 1 - Math.pow(-2 * e + 2, 5) / 2, ne = (e) => e === 0 ? 0 : Math.pow(2, 10 * e - 10), oe = (e) => e === 1 ? 1 : 1 - Math.pow(2, -10 * e), ie = (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? Math.pow(2, 20 * e - 10) / 2 : (2 - Math.pow(2, -20 * e + 10)) / 2, X = 1.70158, C = X * 1.525, _ = X + 1, se = (e) => _ * e * e * e - X * e * e, le = (e) => 1 + _ * Math.pow(e - 1, 3) + X * Math.pow(e - 1, 2), de = (e) => e < 0.5 ? Math.pow(2 * e, 2) * ((C + 1) * 2 * e - C) / 2 : (Math.pow(2 * e - 2, 2) * ((C + 1) * (e * 2 - 2) + C) + 2) / 2, U = 2 * Math.PI / 3, D = 2 * Math.PI / 4.5, ce = (e) => e === 0 ? 0 : e === 1 ? 1 : -Math.pow(2, 10 * e - 10) * Math.sin((e * 10 - 10.75) * U), ge = (e) => e === 0 ? 0 : e === 1 ? 1 : Math.pow(2, -10 * e) * Math.sin((e * 10 - 0.75) * U) + 1, pe = (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? -(Math.pow(2, 20 * e - 10) * Math.sin((20 * e - 11.125) * D)) / 2 : Math.pow(2, -20 * e + 10) * Math.sin((20 * e - 11.125) * D) / 2 + 1, Y = (e) => e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375 : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375, fe = (e) => 1 - Y(1 - e), ue = (e) => e < 0.5 ? (1 - Y(1 - 2 * e)) / 2 : (1 + Y(2 * e - 1)) / 2, me = (e) => 1 - Math.cos(e * Math.PI / 2), be = (e) => Math.sin(e * Math.PI / 2), he = (e) => -(Math.cos(Math.PI * e) - 1) / 2, xe = (e) => 1 - Math.sqrt(1 - Math.pow(e, 2)), ye = (e) => Math.sqrt(1 - Math.pow(e - 1, 2)), we = (e) => e < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * e, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * e + 2, 2)) + 1) / 2, ve = {
1052
+ linear: E,
1053
+ easeInCubic: j,
1054
+ easeOutCubic: F,
1055
+ easeInOutCubic: W,
1056
+ easeInQuad: Q,
1057
+ easeOutQuad: V,
1058
+ easeInOutQuad: Z,
1059
+ easeInQuart: J,
1060
+ easeOutQuart: K,
1061
+ easeInOutQuart: ee,
1062
+ easeInQuint: ae,
1063
+ easeOutQuint: te,
1064
+ easeInOutQuint: re,
1065
+ easeInExpo: ne,
1066
+ easeOutExpo: oe,
1067
+ easeInOutExpo: ie,
1068
+ easeInBack: se,
1069
+ easeOutBack: le,
1070
+ easeInOutBack: de,
1071
+ easeInElastic: ce,
1072
+ easeOutElastic: ge,
1073
+ easeInOutElastic: pe,
1074
+ easeInBounce: fe,
1075
+ easeOutBounce: Y,
1076
+ easeInOutBounce: ue,
1077
+ easeInSine: me,
1078
+ easeOutSine: be,
1079
+ easeInOutSine: he,
1080
+ easeInCirc: xe,
1081
+ easeOutCirc: ye,
1082
+ easeInOutCirc: we
1083
+ };
1084
+ function Dt(e) {
1085
+ return typeof e == "function" ? e : ve[e] || E;
1086
+ }
1087
+ function Gt(e = 100, a = 10, t = 1) {
1088
+ return (r) => {
1089
+ const o = Math.sqrt(e / t), i = a / (2 * Math.sqrt(e * t));
1090
+ if (i < 1) {
1091
+ const s = o * Math.sqrt(1 - i * i);
1092
+ return 1 - Math.exp(-i * o * r) * Math.cos(s * r);
1093
+ } else
1094
+ return 1 - Math.exp(-o * r);
1095
+ };
1096
+ }
1097
+ function Et(e, a, t, r) {
1098
+ return (o) => {
1099
+ const i = 3 * a, s = 3 * (r - a) - i, d = 1 - i - s;
1100
+ return ((c) => ((d * c + s) * c + i) * c)(o);
1101
+ };
1102
+ }
1103
+ class L {
1104
+ constructor() {
1105
+ if (this.observer = null, this.elements = /* @__PURE__ */ new Map(), typeof window > "u" || !("IntersectionObserver" in window)) {
1106
+ console.warn("IntersectionObserver not supported");
1107
+ return;
1108
+ }
1109
+ }
1110
+ /**
1111
+ * مراقبة عنصر
1112
+ */
1113
+ observe(a, t = {}) {
1114
+ const {
1115
+ threshold: r = 0.1,
1116
+ rootMargin: o = "0px",
1117
+ triggerOnce: i = !1,
1118
+ onEnter: s,
1119
+ onExit: d
1120
+ } = t;
1121
+ this.elements.set(a, t), this.observer || (this.observer = new IntersectionObserver(
1122
+ (l) => {
1123
+ l.forEach((c) => {
1124
+ var b, m;
1125
+ const g = this.elements.get(c.target);
1126
+ g && (c.isIntersecting ? ((b = g.onEnter) == null || b.call(g, c), g.triggerOnce && this.unobserve(c.target)) : (m = g.onExit) == null || m.call(g, c));
1127
+ });
1128
+ },
1129
+ { threshold: r, rootMargin: o }
1130
+ )), this.observer.observe(a);
1131
+ }
1132
+ /**
1133
+ * إيقاف مراقبة عنصر
1134
+ */
1135
+ unobserve(a) {
1136
+ this.observer && (this.observer.unobserve(a), this.elements.delete(a));
1137
+ }
1138
+ /**
1139
+ * إيقاف كل المراقبة
1140
+ */
1141
+ disconnect() {
1142
+ this.observer && (this.observer.disconnect(), this.elements.clear(), this.observer = null);
1143
+ }
1144
+ }
1145
+ function ke(e, a) {
1146
+ const t = new L();
1147
+ return t.observe(e, a), () => t.disconnect();
1148
+ }
1149
+ function _t(e, a) {
1150
+ const t = new L();
1151
+ return e.forEach((r) => t.observe(r, a)), () => t.disconnect();
1152
+ }
1153
+ function Ut(e, a, t = {}) {
1154
+ return ke(e, {
1155
+ ...t,
1156
+ onEnter: a
1157
+ });
1158
+ }
1159
+ function Lt(e) {
1160
+ const a = e.getBoundingClientRect(), t = window.innerHeight, r = a.top, o = a.height, i = 1 - (r + o) / (t + o);
1161
+ return Math.max(0, Math.min(1, i));
1162
+ }
1163
+ function At(e, a = 0) {
1164
+ const t = e.getBoundingClientRect(), r = window.innerHeight, o = window.innerWidth, i = t.top + t.height * a <= r && t.bottom - t.height * a >= 0, s = t.left + t.width * a <= o && t.right - t.width * a >= 0;
1165
+ return i && s;
1166
+ }
1167
+ const Ie = {
1168
+ keyframes: [
1169
+ { opacity: 0 },
1170
+ { opacity: 1 }
1171
+ ],
1172
+ config: {
1173
+ duration: 600,
1174
+ easing: "ease-out",
1175
+ fill: "both"
1176
+ }
1177
+ }, Ne = {
1178
+ keyframes: [
1179
+ {
1180
+ opacity: 0,
1181
+ transform: "translateY(30px)"
1182
+ },
1183
+ {
1184
+ opacity: 1,
1185
+ transform: "translateY(0)"
1186
+ }
1187
+ ],
1188
+ config: {
1189
+ duration: 800,
1190
+ easing: "ease-out",
1191
+ fill: "both"
1192
+ }
1193
+ }, Me = {
1194
+ keyframes: [
1195
+ {
1196
+ opacity: 0,
1197
+ transform: "translateY(-30px)"
1198
+ },
1199
+ {
1200
+ opacity: 1,
1201
+ transform: "translateY(0)"
1202
+ }
1203
+ ],
1204
+ config: {
1205
+ duration: 800,
1206
+ easing: "ease-out",
1207
+ fill: "both"
1208
+ }
1209
+ }, Oe = {
1210
+ keyframes: [
1211
+ {
1212
+ opacity: 0,
1213
+ transform: "translateX(-30px)"
1214
+ },
1215
+ {
1216
+ opacity: 1,
1217
+ transform: "translateX(0)"
1218
+ }
1219
+ ],
1220
+ config: {
1221
+ duration: 800,
1222
+ easing: "ease-out",
1223
+ fill: "both"
1224
+ }
1225
+ }, Ce = {
1226
+ keyframes: [
1227
+ {
1228
+ opacity: 0,
1229
+ transform: "translateX(30px)"
1230
+ },
1231
+ {
1232
+ opacity: 1,
1233
+ transform: "translateX(0)"
1234
+ }
1235
+ ],
1236
+ config: {
1237
+ duration: 800,
1238
+ easing: "ease-out",
1239
+ fill: "both"
1240
+ }
1241
+ }, Ye = {
1242
+ keyframes: [
1243
+ { opacity: 1 },
1244
+ { opacity: 0 }
1245
+ ],
1246
+ config: {
1247
+ duration: 600,
1248
+ easing: "ease-in",
1249
+ fill: "both"
1250
+ }
1251
+ }, Xe = {
1252
+ keyframes: [
1253
+ {
1254
+ opacity: 1,
1255
+ transform: "translateY(0)"
1256
+ },
1257
+ {
1258
+ opacity: 0,
1259
+ transform: "translateY(-30px)"
1260
+ }
1261
+ ],
1262
+ config: {
1263
+ duration: 800,
1264
+ easing: "ease-in",
1265
+ fill: "both"
1266
+ }
1267
+ }, Pe = {
1268
+ keyframes: [
1269
+ {
1270
+ opacity: 1,
1271
+ transform: "translateY(0)"
1272
+ },
1273
+ {
1274
+ opacity: 0,
1275
+ transform: "translateY(30px)"
1276
+ }
1277
+ ],
1278
+ config: {
1279
+ duration: 800,
1280
+ easing: "ease-in",
1281
+ fill: "both"
1282
+ }
1283
+ }, Re = {
1284
+ keyframes: [
1285
+ {
1286
+ opacity: 1,
1287
+ transform: "translateX(0)"
1288
+ },
1289
+ {
1290
+ opacity: 0,
1291
+ transform: "translateX(-30px)"
1292
+ }
1293
+ ],
1294
+ config: {
1295
+ duration: 800,
1296
+ easing: "ease-in",
1297
+ fill: "both"
1298
+ }
1299
+ }, Se = {
1300
+ keyframes: [
1301
+ {
1302
+ opacity: 1,
1303
+ transform: "translateX(0)"
1304
+ },
1305
+ {
1306
+ opacity: 0,
1307
+ transform: "translateX(30px)"
1308
+ }
1309
+ ],
1310
+ config: {
1311
+ duration: 800,
1312
+ easing: "ease-in",
1313
+ fill: "both"
1314
+ }
1315
+ }, ze = {
1316
+ keyframes: [
1317
+ {
1318
+ opacity: 0,
1319
+ transform: "translateY(100%)"
1320
+ },
1321
+ {
1322
+ opacity: 1,
1323
+ transform: "translateY(0)"
1324
+ }
1325
+ ],
1326
+ config: {
1327
+ duration: 800,
1328
+ easing: "ease-out",
1329
+ fill: "both"
1330
+ }
1331
+ }, Be = {
1332
+ keyframes: [
1333
+ {
1334
+ opacity: 0,
1335
+ transform: "translateY(-100%)"
1336
+ },
1337
+ {
1338
+ opacity: 1,
1339
+ transform: "translateY(0)"
1340
+ }
1341
+ ],
1342
+ config: {
1343
+ duration: 800,
1344
+ easing: "ease-out",
1345
+ fill: "both"
1346
+ }
1347
+ }, $e = {
1348
+ keyframes: [
1349
+ {
1350
+ opacity: 0,
1351
+ transform: "translateX(-100%)"
1352
+ },
1353
+ {
1354
+ opacity: 1,
1355
+ transform: "translateX(0)"
1356
+ }
1357
+ ],
1358
+ config: {
1359
+ duration: 800,
1360
+ easing: "ease-out",
1361
+ fill: "both"
1362
+ }
1363
+ }, De = {
1364
+ keyframes: [
1365
+ {
1366
+ opacity: 0,
1367
+ transform: "translateX(100%)"
1368
+ },
1369
+ {
1370
+ opacity: 1,
1371
+ transform: "translateX(0)"
1372
+ }
1373
+ ],
1374
+ config: {
1375
+ duration: 800,
1376
+ easing: "ease-out",
1377
+ fill: "both"
1378
+ }
1379
+ }, Ge = {
1380
+ keyframes: [
1381
+ {
1382
+ opacity: 1,
1383
+ transform: "translateY(0)"
1384
+ },
1385
+ {
1386
+ opacity: 0,
1387
+ transform: "translateY(-100%)"
1388
+ }
1389
+ ],
1390
+ config: {
1391
+ duration: 800,
1392
+ easing: "ease-in",
1393
+ fill: "both"
1394
+ }
1395
+ }, Ee = {
1396
+ keyframes: [
1397
+ {
1398
+ opacity: 1,
1399
+ transform: "translateY(0)"
1400
+ },
1401
+ {
1402
+ opacity: 0,
1403
+ transform: "translateY(100%)"
1404
+ }
1405
+ ],
1406
+ config: {
1407
+ duration: 800,
1408
+ easing: "ease-in",
1409
+ fill: "both"
1410
+ }
1411
+ }, _e = {
1412
+ keyframes: [
1413
+ {
1414
+ opacity: 1,
1415
+ transform: "translateX(0)"
1416
+ },
1417
+ {
1418
+ opacity: 0,
1419
+ transform: "translateX(-100%)"
1420
+ }
1421
+ ],
1422
+ config: {
1423
+ duration: 800,
1424
+ easing: "ease-in",
1425
+ fill: "both"
1426
+ }
1427
+ }, Ue = {
1428
+ keyframes: [
1429
+ {
1430
+ opacity: 1,
1431
+ transform: "translateX(0)"
1432
+ },
1433
+ {
1434
+ opacity: 0,
1435
+ transform: "translateX(100%)"
1436
+ }
1437
+ ],
1438
+ config: {
1439
+ duration: 800,
1440
+ easing: "ease-in",
1441
+ fill: "both"
1442
+ }
1443
+ }, Le = {
1444
+ keyframes: [
1445
+ {
1446
+ opacity: 0,
1447
+ transform: "scale(0.5)"
1448
+ },
1449
+ {
1450
+ opacity: 1,
1451
+ transform: "scale(1)"
1452
+ }
1453
+ ],
1454
+ config: {
1455
+ duration: 600,
1456
+ easing: "ease-out",
1457
+ fill: "both"
1458
+ }
1459
+ }, Ae = {
1460
+ keyframes: [
1461
+ {
1462
+ opacity: 0,
1463
+ transform: "scale(0.5) translateY(50px)"
1464
+ },
1465
+ {
1466
+ opacity: 1,
1467
+ transform: "scale(1) translateY(0)"
1468
+ }
1469
+ ],
1470
+ config: {
1471
+ duration: 800,
1472
+ easing: "ease-out",
1473
+ fill: "both"
1474
+ }
1475
+ }, Te = {
1476
+ keyframes: [
1477
+ {
1478
+ opacity: 0,
1479
+ transform: "scale(0.5) translateY(-50px)"
1480
+ },
1481
+ {
1482
+ opacity: 1,
1483
+ transform: "scale(1) translateY(0)"
1484
+ }
1485
+ ],
1486
+ config: {
1487
+ duration: 800,
1488
+ easing: "ease-out",
1489
+ fill: "both"
1490
+ }
1491
+ }, qe = {
1492
+ keyframes: [
1493
+ {
1494
+ opacity: 0,
1495
+ transform: "scale(0.5) translateX(-50px)"
1496
+ },
1497
+ {
1498
+ opacity: 1,
1499
+ transform: "scale(1) translateX(0)"
1500
+ }
1501
+ ],
1502
+ config: {
1503
+ duration: 800,
1504
+ easing: "ease-out",
1505
+ fill: "both"
1506
+ }
1507
+ }, He = {
1508
+ keyframes: [
1509
+ {
1510
+ opacity: 0,
1511
+ transform: "scale(0.5) translateX(50px)"
1512
+ },
1513
+ {
1514
+ opacity: 1,
1515
+ transform: "scale(1) translateX(0)"
1516
+ }
1517
+ ],
1518
+ config: {
1519
+ duration: 800,
1520
+ easing: "ease-out",
1521
+ fill: "both"
1522
+ }
1523
+ }, je = {
1524
+ keyframes: [
1525
+ {
1526
+ opacity: 1,
1527
+ transform: "scale(1)"
1528
+ },
1529
+ {
1530
+ opacity: 0,
1531
+ transform: "scale(0.5)"
1532
+ }
1533
+ ],
1534
+ config: {
1535
+ duration: 600,
1536
+ easing: "ease-in",
1537
+ fill: "both"
1538
+ }
1539
+ }, Fe = {
1540
+ keyframes: [
1541
+ {
1542
+ opacity: 1,
1543
+ transform: "scale(1) translateY(0)"
1544
+ },
1545
+ {
1546
+ opacity: 0,
1547
+ transform: "scale(0.5) translateY(-50px)"
1548
+ }
1549
+ ],
1550
+ config: {
1551
+ duration: 800,
1552
+ easing: "ease-in",
1553
+ fill: "both"
1554
+ }
1555
+ }, We = {
1556
+ keyframes: [
1557
+ {
1558
+ opacity: 1,
1559
+ transform: "scale(1) translateY(0)"
1560
+ },
1561
+ {
1562
+ opacity: 0,
1563
+ transform: "scale(0.5) translateY(50px)"
1564
+ }
1565
+ ],
1566
+ config: {
1567
+ duration: 800,
1568
+ easing: "ease-in",
1569
+ fill: "both"
1570
+ }
1571
+ }, Qe = {
1572
+ keyframes: [
1573
+ {
1574
+ opacity: 0,
1575
+ transform: "scale(0)"
1576
+ },
1577
+ {
1578
+ opacity: 1,
1579
+ transform: "scale(1)"
1580
+ }
1581
+ ],
1582
+ config: {
1583
+ duration: 1e3,
1584
+ easing: "ease-out",
1585
+ fill: "both"
1586
+ }
1587
+ }, Ve = {
1588
+ keyframes: [
1589
+ {
1590
+ opacity: 0,
1591
+ transform: "scale(0)"
1592
+ },
1593
+ {
1594
+ opacity: 1,
1595
+ transform: "scale(1.1)"
1596
+ },
1597
+ {
1598
+ transform: "scale(0.9)"
1599
+ },
1600
+ {
1601
+ transform: "scale(1)"
1602
+ }
1603
+ ],
1604
+ config: {
1605
+ duration: 800,
1606
+ easing: "ease-out",
1607
+ fill: "both"
1608
+ }
1609
+ }, Ze = {
1610
+ keyframes: [
1611
+ {
1612
+ opacity: 0,
1613
+ transform: "rotate(-180deg) scale(0.5)"
1614
+ },
1615
+ {
1616
+ opacity: 1,
1617
+ transform: "rotate(0deg) scale(1)"
1618
+ }
1619
+ ],
1620
+ config: {
1621
+ duration: 800,
1622
+ easing: "ease-out",
1623
+ fill: "both"
1624
+ }
1625
+ }, Je = {
1626
+ keyframes: [
1627
+ {
1628
+ opacity: 0,
1629
+ transform: "rotate(-45deg) translate(-50px, -50px) scale(0.5)",
1630
+ transformOrigin: "left bottom"
1631
+ },
1632
+ {
1633
+ opacity: 1,
1634
+ transform: "rotate(0deg) translate(0, 0) scale(1)",
1635
+ transformOrigin: "left bottom"
1636
+ }
1637
+ ],
1638
+ config: {
1639
+ duration: 800,
1640
+ easing: "ease-out",
1641
+ fill: "both"
1642
+ }
1643
+ }, Ke = {
1644
+ keyframes: [
1645
+ {
1646
+ opacity: 0,
1647
+ transform: "rotate(45deg) translate(50px, -50px) scale(0.5)",
1648
+ transformOrigin: "right bottom"
1649
+ },
1650
+ {
1651
+ opacity: 1,
1652
+ transform: "rotate(0deg) translate(0, 0) scale(1)",
1653
+ transformOrigin: "right bottom"
1654
+ }
1655
+ ],
1656
+ config: {
1657
+ duration: 800,
1658
+ easing: "ease-out",
1659
+ fill: "both"
1660
+ }
1661
+ }, ea = {
1662
+ keyframes: [
1663
+ {
1664
+ opacity: 0,
1665
+ transform: "rotate(45deg) translate(-50px, 50px) scale(0.5)",
1666
+ transformOrigin: "left top"
1667
+ },
1668
+ {
1669
+ opacity: 1,
1670
+ transform: "rotate(0deg) translate(0, 0) scale(1)",
1671
+ transformOrigin: "left top"
1672
+ }
1673
+ ],
1674
+ config: {
1675
+ duration: 800,
1676
+ easing: "ease-out",
1677
+ fill: "both"
1678
+ }
1679
+ }, aa = {
1680
+ keyframes: [
1681
+ {
1682
+ opacity: 0,
1683
+ transform: "rotate(-45deg) translate(50px, 50px) scale(0.5)",
1684
+ transformOrigin: "right top"
1685
+ },
1686
+ {
1687
+ opacity: 1,
1688
+ transform: "rotate(0deg) translate(0, 0) scale(1)",
1689
+ transformOrigin: "right top"
1690
+ }
1691
+ ],
1692
+ config: {
1693
+ duration: 800,
1694
+ easing: "ease-out",
1695
+ fill: "both"
1696
+ }
1697
+ }, ta = {
1698
+ keyframes: [
1699
+ {
1700
+ opacity: 1,
1701
+ transform: "rotate(0deg) scale(1)"
1702
+ },
1703
+ {
1704
+ opacity: 0,
1705
+ transform: "rotate(180deg) scale(0.5)"
1706
+ }
1707
+ ],
1708
+ config: {
1709
+ duration: 800,
1710
+ easing: "ease-in",
1711
+ fill: "both"
1712
+ }
1713
+ }, ra = {
1714
+ keyframes: [
1715
+ { transform: "rotate(0deg)" },
1716
+ { transform: "rotate(360deg)" }
1717
+ ],
1718
+ config: {
1719
+ duration: 1e3,
1720
+ easing: "linear",
1721
+ iterations: 1 / 0,
1722
+ fill: "both"
1723
+ }
1724
+ }, na = {
1725
+ keyframes: [
1726
+ { transform: "rotate(360deg)" },
1727
+ { transform: "rotate(0deg)" }
1728
+ ],
1729
+ config: {
1730
+ duration: 1e3,
1731
+ easing: "linear",
1732
+ iterations: 1 / 0,
1733
+ fill: "both"
1734
+ }
1735
+ }, oa = {
1736
+ keyframes: [
1737
+ { transform: "rotate(0deg)" },
1738
+ { transform: "rotate(360deg)" }
1739
+ ],
1740
+ config: {
1741
+ duration: 3e3,
1742
+ easing: "linear",
1743
+ iterations: 1 / 0,
1744
+ fill: "both"
1745
+ }
1746
+ }, ia = {
1747
+ keyframes: [
1748
+ { transform: "rotate(0deg)" },
1749
+ { transform: "rotate(360deg)" }
1750
+ ],
1751
+ config: {
1752
+ duration: 500,
1753
+ easing: "linear",
1754
+ iterations: 1 / 0,
1755
+ fill: "both"
1756
+ }
1757
+ }, sa = {
1758
+ keyframes: [
1759
+ {
1760
+ opacity: 0,
1761
+ transform: "scale(0.3)"
1762
+ },
1763
+ {
1764
+ opacity: 1,
1765
+ transform: "scale(1.05)"
1766
+ },
1767
+ {
1768
+ transform: "scale(0.9)"
1769
+ },
1770
+ {
1771
+ transform: "scale(1)"
1772
+ }
1773
+ ],
1774
+ config: {
1775
+ duration: 800,
1776
+ easing: "ease-out",
1777
+ fill: "both"
1778
+ }
1779
+ }, la = {
1780
+ keyframes: [
1781
+ {
1782
+ opacity: 0,
1783
+ transform: "translateY(100%) scale(0.7)"
1784
+ },
1785
+ {
1786
+ opacity: 1,
1787
+ transform: "translateY(-20px) scale(1.05)"
1788
+ },
1789
+ {
1790
+ transform: "translateY(10px) scale(0.95)"
1791
+ },
1792
+ {
1793
+ transform: "translateY(0) scale(1)"
1794
+ }
1795
+ ],
1796
+ config: {
1797
+ duration: 1e3,
1798
+ easing: "ease-out",
1799
+ fill: "both"
1800
+ }
1801
+ }, da = {
1802
+ keyframes: [
1803
+ {
1804
+ opacity: 0,
1805
+ transform: "translateY(-100%) scale(0.7)"
1806
+ },
1807
+ {
1808
+ opacity: 1,
1809
+ transform: "translateY(20px) scale(1.05)"
1810
+ },
1811
+ {
1812
+ transform: "translateY(-10px) scale(0.95)"
1813
+ },
1814
+ {
1815
+ transform: "translateY(0) scale(1)"
1816
+ }
1817
+ ],
1818
+ config: {
1819
+ duration: 1e3,
1820
+ easing: "ease-out",
1821
+ fill: "both"
1822
+ }
1823
+ }, ca = {
1824
+ keyframes: [
1825
+ {
1826
+ opacity: 0,
1827
+ transform: "translateX(-100%) scale(0.7)"
1828
+ },
1829
+ {
1830
+ opacity: 1,
1831
+ transform: "translateX(20px) scale(1.05)"
1832
+ },
1833
+ {
1834
+ transform: "translateX(-10px) scale(0.95)"
1835
+ },
1836
+ {
1837
+ transform: "translateX(0) scale(1)"
1838
+ }
1839
+ ],
1840
+ config: {
1841
+ duration: 1e3,
1842
+ easing: "ease-out",
1843
+ fill: "both"
1844
+ }
1845
+ }, ga = {
1846
+ keyframes: [
1847
+ {
1848
+ opacity: 0,
1849
+ transform: "translateX(100%) scale(0.7)"
1850
+ },
1851
+ {
1852
+ opacity: 1,
1853
+ transform: "translateX(-20px) scale(1.05)"
1854
+ },
1855
+ {
1856
+ transform: "translateX(10px) scale(0.95)"
1857
+ },
1858
+ {
1859
+ transform: "translateX(0) scale(1)"
1860
+ }
1861
+ ],
1862
+ config: {
1863
+ duration: 1e3,
1864
+ easing: "ease-out",
1865
+ fill: "both"
1866
+ }
1867
+ }, pa = {
1868
+ keyframes: [
1869
+ {
1870
+ transform: "scale(1)"
1871
+ },
1872
+ {
1873
+ transform: "scale(1.1)"
1874
+ },
1875
+ {
1876
+ opacity: 1,
1877
+ transform: "scale(0.3)"
1878
+ },
1879
+ {
1880
+ opacity: 0,
1881
+ transform: "scale(0)"
1882
+ }
1883
+ ],
1884
+ config: {
1885
+ duration: 800,
1886
+ easing: "ease-in",
1887
+ fill: "both"
1888
+ }
1889
+ }, fa = {
1890
+ keyframes: [
1891
+ { transform: "translateY(0)" },
1892
+ { transform: "translateY(-30px)" },
1893
+ { transform: "translateY(0)" }
1894
+ ],
1895
+ config: {
1896
+ duration: 600,
1897
+ easing: "ease-out",
1898
+ fill: "both"
1899
+ }
1900
+ }, ua = {
1901
+ keyframes: [
1902
+ { transform: "translateY(0)", offset: 0 },
1903
+ { transform: "translateY(-20px)", offset: 0.4 },
1904
+ { transform: "translateY(0)", offset: 0.5 },
1905
+ { transform: "translateY(-10px)", offset: 0.7 },
1906
+ { transform: "translateY(0)", offset: 1 }
1907
+ ],
1908
+ config: {
1909
+ duration: 1e3,
1910
+ easing: "ease-out",
1911
+ iterations: 1 / 0,
1912
+ fill: "both"
1913
+ }
1914
+ }, ma = {
1915
+ keyframes: [
1916
+ { transform: "translateX(0)" },
1917
+ { transform: "translateX(-10px)" },
1918
+ { transform: "translateX(10px)" },
1919
+ { transform: "translateX(-10px)" },
1920
+ { transform: "translateX(10px)" },
1921
+ { transform: "translateX(0)" }
1922
+ ],
1923
+ config: {
1924
+ duration: 500,
1925
+ easing: "ease-in-out",
1926
+ fill: "both"
1927
+ }
1928
+ }, ba = {
1929
+ keyframes: [
1930
+ { transform: "translateY(0)" },
1931
+ { transform: "translateY(-10px)" },
1932
+ { transform: "translateY(10px)" },
1933
+ { transform: "translateY(-10px)" },
1934
+ { transform: "translateY(10px)" },
1935
+ { transform: "translateY(0)" }
1936
+ ],
1937
+ config: {
1938
+ duration: 500,
1939
+ easing: "ease-in-out",
1940
+ fill: "both"
1941
+ }
1942
+ }, ha = {
1943
+ keyframes: [
1944
+ { transform: "scale(1)" },
1945
+ { transform: "scale(1.05)" },
1946
+ { transform: "scale(1)" }
1947
+ ],
1948
+ config: {
1949
+ duration: 500,
1950
+ easing: "ease-in-out",
1951
+ fill: "both"
1952
+ }
1953
+ }, xa = {
1954
+ keyframes: [
1955
+ { transform: "scale(1)" },
1956
+ { transform: "scale(1.05)" },
1957
+ { transform: "scale(1)" }
1958
+ ],
1959
+ config: {
1960
+ duration: 1e3,
1961
+ easing: "ease-in-out",
1962
+ iterations: 1 / 0,
1963
+ fill: "both"
1964
+ }
1965
+ }, ya = {
1966
+ keyframes: [
1967
+ { transform: "scale(1)" },
1968
+ { transform: "scale(1.3)" },
1969
+ { transform: "scale(1)" },
1970
+ { transform: "scale(1.3)" },
1971
+ { transform: "scale(1)" }
1972
+ ],
1973
+ config: {
1974
+ duration: 1300,
1975
+ easing: "ease-in-out",
1976
+ fill: "both"
1977
+ }
1978
+ }, wa = {
1979
+ keyframes: [
1980
+ { opacity: 1 },
1981
+ { opacity: 0 },
1982
+ { opacity: 1 },
1983
+ { opacity: 0 },
1984
+ { opacity: 1 }
1985
+ ],
1986
+ config: {
1987
+ duration: 750,
1988
+ easing: "linear",
1989
+ fill: "both"
1990
+ }
1991
+ }, va = {
1992
+ keyframes: [
1993
+ { transform: "scaleX(1) scaleY(1)" },
1994
+ { transform: "scaleX(1.25) scaleY(0.75)" },
1995
+ { transform: "scaleX(0.75) scaleY(1.25)" },
1996
+ { transform: "scaleX(1.15) scaleY(0.85)" },
1997
+ { transform: "scaleX(0.95) scaleY(1.05)" },
1998
+ { transform: "scaleX(1) scaleY(1)" }
1999
+ ],
2000
+ config: {
2001
+ duration: 1e3,
2002
+ easing: "ease-in-out",
2003
+ fill: "both"
2004
+ }
2005
+ }, ka = {
2006
+ keyframes: [
2007
+ { transform: "skewX(0deg) skewY(0deg)" },
2008
+ { transform: "skewX(-12.5deg) skewY(-12.5deg)" },
2009
+ { transform: "skewX(6.25deg) skewY(6.25deg)" },
2010
+ { transform: "skewX(-3.125deg) skewY(-3.125deg)" },
2011
+ { transform: "skewX(1.5625deg) skewY(1.5625deg)" },
2012
+ { transform: "skewX(0deg) skewY(0deg)" }
2013
+ ],
2014
+ config: {
2015
+ duration: 1e3,
2016
+ easing: "ease-in-out",
2017
+ fill: "both"
2018
+ }
2019
+ }, Ia = {
2020
+ keyframes: [
2021
+ { transform: "rotate(0deg)", transformOrigin: "top center" },
2022
+ { transform: "rotate(15deg)", transformOrigin: "top center" },
2023
+ { transform: "rotate(-10deg)", transformOrigin: "top center" },
2024
+ { transform: "rotate(5deg)", transformOrigin: "top center" },
2025
+ { transform: "rotate(-5deg)", transformOrigin: "top center" },
2026
+ { transform: "rotate(0deg)", transformOrigin: "top center" }
2027
+ ],
2028
+ config: {
2029
+ duration: 1e3,
2030
+ easing: "ease-in-out",
2031
+ fill: "both"
2032
+ }
2033
+ }, Na = {
2034
+ keyframes: [
2035
+ { transform: "translateX(0%) rotate(0deg)" },
2036
+ { transform: "translateX(-25%) rotate(-5deg)" },
2037
+ { transform: "translateX(20%) rotate(3deg)" },
2038
+ { transform: "translateX(-15%) rotate(-3deg)" },
2039
+ { transform: "translateX(10%) rotate(2deg)" },
2040
+ { transform: "translateX(-5%) rotate(-1deg)" },
2041
+ { transform: "translateX(0%) rotate(0deg)" }
2042
+ ],
2043
+ config: {
2044
+ duration: 1e3,
2045
+ easing: "ease-in-out",
2046
+ fill: "both"
2047
+ }
2048
+ }, Ma = {
2049
+ keyframes: [
2050
+ { transform: "scale(1) rotate(0deg)" },
2051
+ { transform: "scale(0.9) rotate(-3deg)" },
2052
+ { transform: "scale(0.9) rotate(-3deg)" },
2053
+ { transform: "scale(1.1) rotate(3deg)" },
2054
+ { transform: "scale(1.1) rotate(-3deg)" },
2055
+ { transform: "scale(1.1) rotate(3deg)" },
2056
+ { transform: "scale(1.1) rotate(-3deg)" },
2057
+ { transform: "scale(1.1) rotate(3deg)" },
2058
+ { transform: "scale(1.1) rotate(-3deg)" },
2059
+ { transform: "scale(1) rotate(0deg)" }
2060
+ ],
2061
+ config: {
2062
+ duration: 1e3,
2063
+ easing: "ease-in-out",
2064
+ fill: "both"
2065
+ }
2066
+ }, Oa = {
2067
+ keyframes: [
2068
+ { width: "0", opacity: 0 },
2069
+ { width: "0", opacity: 1, offset: 0.01 },
2070
+ { width: "100%", opacity: 1 }
2071
+ ],
2072
+ config: { duration: 2e3, easing: "steps(40, end)" }
2073
+ }, Ca = {
2074
+ keyframes: [
2075
+ { transform: "translate(0)", offset: 0 },
2076
+ { transform: "translate(-2px, 2px)", offset: 0.2 },
2077
+ { transform: "translate(-2px, -2px)", offset: 0.4 },
2078
+ { transform: "translate(2px, 2px)", offset: 0.6 },
2079
+ { transform: "translate(2px, -2px)", offset: 0.8 },
2080
+ { transform: "translate(0)", offset: 1 }
2081
+ ],
2082
+ config: { duration: 500, easing: "linear" }
2083
+ }, Ya = {
2084
+ keyframes: [
2085
+ { transform: "translateY(0)", offset: 0 },
2086
+ { transform: "translateY(-10px)", offset: 0.5 },
2087
+ { transform: "translateY(0)", offset: 1 }
2088
+ ],
2089
+ config: { duration: 600, easing: "ease-in-out" }
2090
+ }, Xa = {
2091
+ keyframes: [
2092
+ { filter: "blur(12px)", opacity: 0 },
2093
+ { filter: "blur(0)", opacity: 1 }
2094
+ ],
2095
+ config: { duration: 800, easing: "ease-out" }
2096
+ }, Pa = {
2097
+ keyframes: [
2098
+ { letterSpacing: "-0.5em", opacity: 0 },
2099
+ { letterSpacing: "-0.5em", opacity: 0.6, offset: 0.4 },
2100
+ { letterSpacing: "normal", opacity: 1 }
2101
+ ],
2102
+ config: { duration: 700, easing: "cubic-bezier(0.215, 0.610, 0.355, 1.000)" }
2103
+ }, Ra = {
2104
+ keyframes: [
2105
+ { letterSpacing: "normal", opacity: 1 },
2106
+ { letterSpacing: "0em", opacity: 0.6, offset: 0.5 },
2107
+ { letterSpacing: "-0.5em", opacity: 0 }
2108
+ ],
2109
+ config: { duration: 700, easing: "cubic-bezier(0.550, 0.085, 0.680, 0.530)" }
2110
+ }, Sa = {
2111
+ keyframes: [
2112
+ { filter: "blur(12px)", opacity: 0 },
2113
+ { filter: "blur(0)", opacity: 1 }
2114
+ ],
2115
+ config: { duration: 800, easing: "cubic-bezier(0.550, 0.085, 0.680, 0.530)" }
2116
+ }, za = {
2117
+ keyframes: [
2118
+ { textShadow: "0 0 #555, 0 0 #555, 0 0 #555, 0 0 #555" },
2119
+ { textShadow: "1px 1px #555, 2px 2px #555, 3px 3px #555, 4px 4px #555" }
2120
+ ],
2121
+ config: { duration: 600, easing: "ease-out" }
2122
+ }, Ba = {
2123
+ keyframes: [
2124
+ { opacity: 1, offset: 0 },
2125
+ { opacity: 1, offset: 0.4199 },
2126
+ { opacity: 0, offset: 0.42 },
2127
+ { opacity: 0, offset: 0.43 },
2128
+ { opacity: 1, offset: 0.4301 },
2129
+ { opacity: 1, offset: 0.4799 },
2130
+ { opacity: 0, offset: 0.48 },
2131
+ { opacity: 0, offset: 0.49 },
2132
+ { opacity: 1, offset: 0.4901 },
2133
+ { opacity: 1, offset: 1 }
2134
+ ],
2135
+ config: { duration: 1e3, easing: "linear" }
2136
+ }, $a = {
2137
+ keyframes: [
2138
+ { transform: "scale(0)", transformOrigin: "50% 50%", opacity: 0 },
2139
+ { transform: "scale(1)", transformOrigin: "50% 50%", opacity: 1 }
2140
+ ],
2141
+ config: { duration: 500, easing: "cubic-bezier(0.250, 0.460, 0.450, 0.940)" }
2142
+ }, Da = {
2143
+ keyframes: [
2144
+ { transform: "rotate(-360deg)", opacity: 0 },
2145
+ { transform: "rotate(0)", opacity: 1 }
2146
+ ],
2147
+ config: { duration: 600, easing: "ease-out" }
2148
+ }, Ga = {
2149
+ keyframes: [
2150
+ { transform: "scale(0.5)", opacity: 0 },
2151
+ { transform: "scale(1)", opacity: 1 }
2152
+ ],
2153
+ config: { duration: 400, easing: "cubic-bezier(0.390, 0.575, 0.565, 1.000)" }
2154
+ }, Ea = {
2155
+ keyframes: [
2156
+ { transform: "translateX(0) rotate(0)", offset: 0 },
2157
+ { transform: "translateX(-25px) rotate(-5deg)", offset: 0.15 },
2158
+ { transform: "translateX(20px) rotate(3deg)", offset: 0.3 },
2159
+ { transform: "translateX(-15px) rotate(-3deg)", offset: 0.45 },
2160
+ { transform: "translateX(10px) rotate(2deg)", offset: 0.6 },
2161
+ { transform: "translateX(-5px) rotate(-1deg)", offset: 0.75 },
2162
+ { transform: "translateX(0) rotate(0)", offset: 1 }
2163
+ ],
2164
+ config: { duration: 1e3, easing: "ease-in-out" }
2165
+ }, _a = {
2166
+ keyframes: [
2167
+ {
2168
+ transform: "rotateX(-100deg)",
2169
+ transformOrigin: "top",
2170
+ opacity: 0
2171
+ },
2172
+ {
2173
+ transform: "rotateX(0deg)",
2174
+ transformOrigin: "top",
2175
+ opacity: 1
2176
+ }
2177
+ ],
2178
+ config: { duration: 600, easing: "cubic-bezier(0.175, 0.885, 0.320, 1.275)" }
2179
+ }, Ua = {
2180
+ keyframes: [
2181
+ {
2182
+ transform: "translateX(-1000px) scaleX(2.5) scaleY(0.2)",
2183
+ filter: "blur(40px)",
2184
+ opacity: 0
2185
+ },
2186
+ {
2187
+ transform: "translateX(0) scaleY(1) scaleX(1)",
2188
+ filter: "blur(0)",
2189
+ opacity: 1
2190
+ }
2191
+ ],
2192
+ config: { duration: 800, easing: "cubic-bezier(0.230, 1.000, 0.320, 1.000)" }
2193
+ }, La = {
2194
+ keyframes: [
2195
+ {
2196
+ transform: "scale(1) translateX(0) translateY(0)"
2197
+ },
2198
+ {
2199
+ transform: "scale(1.2) translateX(15px) translateY(15px)"
2200
+ }
2201
+ ],
2202
+ config: { duration: 5e3, easing: "ease-out" }
2203
+ }, I = {
2204
+ // Fade (10)
2205
+ fadeIn: Ie,
2206
+ fadeInUp: Ne,
2207
+ fadeInDown: Me,
2208
+ fadeInLeft: Oe,
2209
+ fadeInRight: Ce,
2210
+ fadeOut: Ye,
2211
+ fadeOutUp: Xe,
2212
+ fadeOutDown: Pe,
2213
+ fadeOutLeft: Re,
2214
+ fadeOutRight: Se,
2215
+ // Slide (8)
2216
+ slideInUp: ze,
2217
+ slideInDown: Be,
2218
+ slideInLeft: $e,
2219
+ slideInRight: De,
2220
+ slideOutUp: Ge,
2221
+ slideOutDown: Ee,
2222
+ slideOutLeft: _e,
2223
+ slideOutRight: Ue,
2224
+ // Zoom (10)
2225
+ zoomIn: Le,
2226
+ zoomInUp: Ae,
2227
+ zoomInDown: Te,
2228
+ zoomInLeft: qe,
2229
+ zoomInRight: He,
2230
+ zoomOut: je,
2231
+ zoomOutUp: Fe,
2232
+ zoomOutDown: We,
2233
+ zoomInBig: Qe,
2234
+ zoomInBounce: Ve,
2235
+ // Rotate (10)
2236
+ rotateIn: Ze,
2237
+ rotateInUpLeft: Je,
2238
+ rotateInUpRight: Ke,
2239
+ rotateInDownLeft: ea,
2240
+ rotateInDownRight: aa,
2241
+ rotateOut: ta,
2242
+ spin: ra,
2243
+ spinReverse: na,
2244
+ spinSlow: oa,
2245
+ spinFast: ia,
2246
+ // Bounce (8)
2247
+ bounceIn: sa,
2248
+ bounceInUp: la,
2249
+ bounceInDown: da,
2250
+ bounceInLeft: ca,
2251
+ bounceInRight: ga,
2252
+ bounceOut: pa,
2253
+ bounce: fa,
2254
+ bounceLoop: ua,
2255
+ // Attention (11)
2256
+ shake: ma,
2257
+ shakeY: ba,
2258
+ pulse: ha,
2259
+ pulseLoop: xa,
2260
+ heartbeat: ya,
2261
+ flash: wa,
2262
+ rubberBand: va,
2263
+ jello: ka,
2264
+ swing: Ia,
2265
+ wobble: Na,
2266
+ tada: Ma,
2267
+ // ✅ Text (16) - NEW!
2268
+ typing: Oa,
2269
+ glitch: Ca,
2270
+ waveText: Ya,
2271
+ blurIn: Xa,
2272
+ trackingInExpand: Pa,
2273
+ trackingOutContract: Ra,
2274
+ focusIn: Sa,
2275
+ textShadowPop: za,
2276
+ flicker: Ba,
2277
+ textPopUp: $a,
2278
+ textRotateIn: Da,
2279
+ textScaleUp: Ga,
2280
+ textWobble: Ea,
2281
+ swingInTop: _a,
2282
+ slideInBlurred: Ua,
2283
+ kenburns: La
2284
+ };
2285
+ function Tt(e) {
2286
+ return I[e];
2287
+ }
2288
+ function Aa() {
2289
+ return Object.keys(I);
2290
+ }
2291
+ function qt(e) {
2292
+ return e === "text" ? [
2293
+ "typing",
2294
+ "glitch",
2295
+ "waveText",
2296
+ "blurIn",
2297
+ "trackingInExpand",
2298
+ "trackingOutContract",
2299
+ "focusIn",
2300
+ "textShadowPop",
2301
+ "flicker",
2302
+ "textPopUp",
2303
+ "textRotateIn",
2304
+ "textScaleUp",
2305
+ "textWobble",
2306
+ "swingInTop",
2307
+ "slideInBlurred",
2308
+ "kenburns"
2309
+ ] : Aa().filter((a) => a.startsWith(e));
2310
+ }
2311
+ const Ta = ({
2312
+ children: e,
2313
+ preset: a = "fadeIn",
2314
+ duration: t,
2315
+ delay: r,
2316
+ easing: o,
2317
+ iterations: i,
2318
+ trigger: s = "mount",
2319
+ threshold: d = 0.1,
2320
+ triggerOnce: l = !0,
2321
+ onAnimationStart: c,
2322
+ onAnimationEnd: g,
2323
+ className: b = "",
2324
+ style: m = {}
2325
+ }) => {
2326
+ const p = f(null), h = f(null), x = f(null), N = f(!1), k = async () => {
2327
+ var S, z, B, $;
2328
+ if (!p.current || l && N.current) return;
2329
+ const w = I[a];
2330
+ if (!w) {
2331
+ console.warn(`[TeleMotion] Preset "${a}" not found`);
2332
+ return;
2333
+ }
2334
+ h.current || (h.current = new y(p.current)), c == null || c();
2335
+ const M = {
2336
+ ...w.config,
2337
+ duration: t ?? ((S = w.config) == null ? void 0 : S.duration),
2338
+ delay: r ?? ((z = w.config) == null ? void 0 : z.delay),
2339
+ easing: o ?? ((B = w.config) == null ? void 0 : B.easing),
2340
+ iterations: i ?? (($ = w.config) == null ? void 0 : $.iterations)
2341
+ };
2342
+ try {
2343
+ await h.current.animate(w.keyframes, M), N.current = !0, g == null || g();
2344
+ } catch (A) {
2345
+ console.error("[TeleMotion] Animation error:", A);
2346
+ }
2347
+ };
2348
+ v(() => {
2349
+ s === "mount" && k();
2350
+ }, [a, t, r, o, i]), v(() => {
2351
+ if (!(s !== "scroll" || !p.current))
2352
+ return x.current = new IntersectionObserver(
2353
+ (w) => {
2354
+ w.forEach((M) => {
2355
+ M.isIntersecting && (k(), l && x.current && x.current.unobserve(M.target));
2356
+ });
2357
+ },
2358
+ { threshold: d }
2359
+ ), x.current.observe(p.current), () => {
2360
+ x.current && x.current.disconnect();
2361
+ };
2362
+ }, [s, d, l, a]);
2363
+ const P = () => {
2364
+ s === "hover" && k();
2365
+ }, R = () => {
2366
+ s === "click" && k();
2367
+ };
2368
+ return v(() => () => {
2369
+ h.current && h.current.stop();
2370
+ }, []), /* @__PURE__ */ n(
2371
+ "div",
2372
+ {
2373
+ ref: p,
2374
+ className: b,
2375
+ style: m,
2376
+ onMouseEnter: s === "hover" ? P : void 0,
2377
+ onClick: s === "click" ? R : void 0,
2378
+ children: e
2379
+ }
2380
+ );
2381
+ };
2382
+ Ta.displayName = "TeleMotion";
2383
+ function Ht() {
2384
+ const e = f(null), a = f(null), t = async (r, o) => {
2385
+ e.current && (a.current || (a.current = new y(e.current)), await a.current.animate(r, o));
2386
+ };
2387
+ return v(() => () => {
2388
+ a.current && a.current.stop();
2389
+ }, []), [e, t];
2390
+ }
2391
+ function jt(e, a) {
2392
+ const t = f(null), r = f(null), o = async () => {
2393
+ if (!t.current) return;
2394
+ const i = I[e];
2395
+ if (!i) {
2396
+ console.warn(`[usePresetAnimation] Preset "${e}" not found`);
2397
+ return;
2398
+ }
2399
+ r.current || (r.current = new y(t.current));
2400
+ const s = {
2401
+ ...i.config,
2402
+ ...a
2403
+ };
2404
+ await r.current.animate(i.keyframes, s);
2405
+ };
2406
+ return v(() => {
2407
+ (a == null ? void 0 : a.trigger) !== "manual" && o();
2408
+ }, [e]), v(() => () => {
2409
+ r.current && r.current.stop();
2410
+ }, []), [t, o];
2411
+ }
2412
+ function Ft(e, a) {
2413
+ const t = f(null), r = f(null), o = f(null), i = f(!1);
2414
+ return v(() => {
2415
+ if (!t.current) return;
2416
+ const s = I[e];
2417
+ if (!s) {
2418
+ console.warn(`[useScrollAnimation] Preset "${e}" not found`);
2419
+ return;
2420
+ }
2421
+ return r.current = new y(t.current), o.current = new IntersectionObserver(
2422
+ (d) => {
2423
+ d.forEach((l) => {
2424
+ if (l.isIntersecting && !i.current && r.current) {
2425
+ const c = {
2426
+ ...s.config,
2427
+ ...a == null ? void 0 : a.config
2428
+ };
2429
+ r.current.animate(s.keyframes, c), i.current = !0, (a == null ? void 0 : a.triggerOnce) !== !1 && o.current && o.current.unobserve(l.target);
2430
+ }
2431
+ });
2432
+ },
2433
+ { threshold: (a == null ? void 0 : a.threshold) ?? 0.1 }
2434
+ ), o.current.observe(t.current), () => {
2435
+ o.current && o.current.disconnect(), r.current && r.current.stop();
2436
+ };
2437
+ }, [e, a == null ? void 0 : a.threshold, a == null ? void 0 : a.triggerOnce]), t;
2438
+ }
2439
+ function Wt(e, a = 100, t) {
2440
+ const r = f(null);
2441
+ return [r, async () => {
2442
+ if (!r.current) return;
2443
+ const i = I[e];
2444
+ if (!i) return;
2445
+ const d = Array.from(r.current.children).map((l, c) => new y(l).animate(i.keyframes, {
2446
+ ...i.config,
2447
+ ...t,
2448
+ delay: ((t == null ? void 0 : t.delay) ?? 0) + a * c
2449
+ }));
2450
+ await Promise.all(d);
2451
+ }];
2452
+ }
2453
+ function Qt(e, a) {
2454
+ const t = f(null), r = f(null);
2455
+ return [t, { onMouseEnter: async () => {
2456
+ if (!t.current) return;
2457
+ const s = I[e];
2458
+ s && (r.current || (r.current = new y(t.current)), await r.current.animate(s.keyframes, {
2459
+ ...s.config,
2460
+ ...a
2461
+ }));
2462
+ }, onMouseLeave: () => {
2463
+ r.current && r.current.stop();
2464
+ } }];
2465
+ }
2466
+ function Vt(e = 0.1) {
2467
+ const a = f(null), [t, r] = G(!1);
2468
+ return v(() => {
2469
+ if (!a.current) return;
2470
+ const o = new IntersectionObserver(
2471
+ (i) => {
2472
+ i.forEach((s) => {
2473
+ r(s.isIntersecting);
2474
+ });
2475
+ },
2476
+ { threshold: e }
2477
+ );
2478
+ return o.observe(a.current), () => {
2479
+ o.disconnect();
2480
+ };
2481
+ }, [e]), [a, t];
2482
+ }
959
2483
  export {
960
- X as AnimatedBounce,
961
- Z as AnimatedGlow,
962
- V as AnimatedPulse,
963
- T as AnimatedShimmer,
964
- S as Button,
965
- re as Button3DBlue,
966
- ne as Button3DGreen,
967
- te as Button3DPink,
968
- le as Container,
969
- be as ContainerButton,
970
- ge as ContainerContent,
971
- se as ContainerImage,
972
- pe as FeatureCard,
973
- L as GhostBlue,
974
- ae as GhostPurple,
975
- ee as GhostRed,
976
- U as GlassBlue,
977
- x as GlassButton,
978
- Y as GlassPink,
979
- W as GlassPurple,
980
- O as GlassWhite,
981
- E as GradientBlueGreen,
982
- H as GradientCyan,
983
- F as GradientOrangeRed,
984
- A as GradientPurplePink,
985
- q as GradientSunset,
986
- M as Home,
987
- ie as NeonBlue,
988
- oe as NeonGreen,
989
- de as NeonPink,
990
- J as OutlinedBlue,
991
- Q as OutlinedGradient,
992
- K as OutlinedPurple,
993
- ce as ProductCard,
994
- D as SolidBlue,
995
- R as SolidGreen,
996
- j as SolidPill,
997
- I as SolidPurple,
998
- z as SolidRed,
999
- me as StatCard,
1000
- B as gradients
2484
+ gt as AnimatedBounce,
2485
+ pt as AnimatedGlow,
2486
+ ct as AnimatedPulse,
2487
+ dt as AnimatedShimmer,
2488
+ y as Animator,
2489
+ ja as Button,
2490
+ yt as Button3DBlue,
2491
+ vt as Button3DGreen,
2492
+ wt as Button3DPink,
2493
+ Mt as Container,
2494
+ Yt as ContainerButton,
2495
+ Ct as ContainerContent,
2496
+ Ot as ContainerImage,
2497
+ Xt as FeatureCard,
2498
+ bt as GhostBlue,
2499
+ xt as GhostPurple,
2500
+ ht as GhostRed,
2501
+ ot as GlassBlue,
2502
+ O as GlassButton,
2503
+ lt as GlassPink,
2504
+ it as GlassPurple,
2505
+ st as GlassWhite,
2506
+ at as GradientBlueGreen,
2507
+ rt as GradientCyan,
2508
+ tt as GradientOrangeRed,
2509
+ et as GradientPurplePink,
2510
+ nt as GradientSunset,
2511
+ Fa as Home,
2512
+ kt as NeonBlue,
2513
+ Nt as NeonGreen,
2514
+ It as NeonPink,
2515
+ ft as OutlinedBlue,
2516
+ mt as OutlinedGradient,
2517
+ ut as OutlinedPurple,
2518
+ Pt as ProductCard,
2519
+ L as ScrollObserver,
2520
+ Qa as SolidBlue,
2521
+ Za as SolidGreen,
2522
+ Ka as SolidPill,
2523
+ Ja as SolidPurple,
2524
+ Va as SolidRed,
2525
+ Rt as StatCard,
2526
+ Ta as TeleMotion,
2527
+ zt as animateGroup,
2528
+ Ut as animateOnScroll,
2529
+ Et as bezier,
2530
+ St as createAnimator,
2531
+ ve as easings,
2532
+ Dt as getEasing,
2533
+ Tt as getPreset,
2534
+ Aa as getPresetNames,
2535
+ qt as getPresetsByCategory,
2536
+ Lt as getScrollProgress,
2537
+ Wa as gradients,
2538
+ At as isInViewport,
2539
+ ke as observeElement,
2540
+ _t as observeElements,
2541
+ $t as parallel,
2542
+ I as presets,
2543
+ Bt as sequence,
2544
+ Gt as spring,
2545
+ Ht as useAnimator,
2546
+ Qt as useHoverAnimation,
2547
+ Vt as useInView,
2548
+ jt as usePresetAnimation,
2549
+ Ft as useScrollAnimation,
2550
+ Wt as useStagger
1001
2551
  };