@moontra/moonui-pro 3.4.24 → 3.4.26

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
@@ -37,6 +37,7 @@ import { useForm } from 'react-hook-form';
37
37
  import confetti2 from 'canvas-confetti';
38
38
  import { useReactTable, getCoreRowModel, getPaginationRowModel, getSortedRowModel, getFilteredRowModel, flexRender } from '@tanstack/react-table';
39
39
  import NProgress from 'nprogress';
40
+ import { useTheme } from 'next-themes';
40
41
 
41
42
  /**
42
43
  * @moontra/moonui-pro v2.0.9
@@ -212,7 +213,7 @@ var require_core = __commonJS({
212
213
  const pieces = name.split(".");
213
214
  return [
214
215
  `${prefix}${pieces.shift()}`,
215
- ...pieces.map((x2, i) => `${x2}${"_".repeat(i + 1)}`)
216
+ ...pieces.map((x, i) => `${x}${"_".repeat(i + 1)}`)
216
217
  ].join(" ");
217
218
  }
218
219
  return `${prefix}${name}`;
@@ -410,7 +411,7 @@ var require_core = __commonJS({
410
411
  return concat2("(?:", re, ")?");
411
412
  }
412
413
  function concat2(...args) {
413
- const joined = args.map((x2) => source2(x2)).join("");
414
+ const joined = args.map((x) => source2(x)).join("");
414
415
  return joined;
415
416
  }
416
417
  function stripOptionsFromArgs2(args) {
@@ -424,7 +425,7 @@ var require_core = __commonJS({
424
425
  }
425
426
  function either2(...args) {
426
427
  const opts = stripOptionsFromArgs2(args);
427
- const joined = "(" + (opts.capture ? "" : "?:") + args.map((x2) => source2(x2)).join("|") + ")";
428
+ const joined = "(" + (opts.capture ? "" : "?:") + args.map((x) => source2(x)).join("|") + ")";
428
429
  return joined;
429
430
  }
430
431
  function countMatchGroups(re) {
@@ -765,7 +766,7 @@ var require_core = __commonJS({
765
766
  return compiledKeywords;
766
767
  function compileList(scopeName2, keywordList) {
767
768
  if (caseInsensitive) {
768
- keywordList = keywordList.map((x2) => x2.toLowerCase());
769
+ keywordList = keywordList.map((x) => x.toLowerCase());
769
770
  }
770
771
  keywordList.forEach(function(keyword) {
771
772
  const pair = keyword.split("|");
@@ -4669,7 +4670,7 @@ function Calendar({
4669
4670
  )) }),
4670
4671
  /* @__PURE__ */ jsx("div", { className: cn(
4671
4672
  numberOfMonths > 1 && "flex flex-col sm:flex-row gap-2 sm:gap-4"
4672
- ), children: Array.from({ length: numberOfMonths }).map((_2, i) => /* @__PURE__ */ jsx("div", { className: "flex-1", children: renderCalendar(i) }, i)) })
4673
+ ), children: Array.from({ length: numberOfMonths }).map((_, i) => /* @__PURE__ */ jsx("div", { className: "flex-1", children: renderCalendar(i) }, i)) })
4673
4674
  ] });
4674
4675
  }
4675
4676
  Calendar.displayName = "Calendar";
@@ -4868,9 +4869,9 @@ var MoonUICardPro = React71.forwardRef(
4868
4869
  const rect = e.currentTarget.getBoundingClientRect();
4869
4870
  const centerX = rect.left + rect.width / 2;
4870
4871
  const centerY = rect.top + rect.height / 2;
4871
- const x2 = (e.clientX - centerX) / (rect.width / 2);
4872
+ const x = (e.clientX - centerX) / (rect.width / 2);
4872
4873
  const y = (e.clientY - centerY) / (rect.height / 2);
4873
- setMousePos({ x: x2, y });
4874
+ setMousePos({ x, y });
4874
4875
  };
4875
4876
  const handleMouseEnter = () => setIsHovered(true);
4876
4877
  const handleMouseLeave2 = () => {
@@ -9993,7 +9994,7 @@ var reducer = (state, action) => {
9993
9994
  return {
9994
9995
  ...state,
9995
9996
  toasts: state.toasts.map(
9996
- (t2) => t2.id === action.toast.id ? { ...t2, ...action.toast } : t2
9997
+ (t) => t.id === action.toast.id ? { ...t, ...action.toast } : t
9997
9998
  )
9998
9999
  };
9999
10000
  case "DISMISS_TOAST": {
@@ -10008,10 +10009,10 @@ var reducer = (state, action) => {
10008
10009
  return {
10009
10010
  ...state,
10010
10011
  toasts: state.toasts.map(
10011
- (t2) => t2.id === toastId || toastId === void 0 ? {
10012
- ...t2,
10012
+ (t) => t.id === toastId || toastId === void 0 ? {
10013
+ ...t,
10013
10014
  open: false
10014
- } : t2
10015
+ } : t
10015
10016
  )
10016
10017
  };
10017
10018
  }
@@ -10024,7 +10025,7 @@ var reducer = (state, action) => {
10024
10025
  }
10025
10026
  return {
10026
10027
  ...state,
10027
- toasts: state.toasts.filter((t2) => t2.id !== action.toastId)
10028
+ toasts: state.toasts.filter((t) => t.id !== action.toastId)
10028
10029
  };
10029
10030
  default:
10030
10031
  return state;
@@ -10498,7 +10499,7 @@ function getPaddingObject(padding) {
10498
10499
  }
10499
10500
  function rectToClientRect(rect) {
10500
10501
  const {
10501
- x: x2,
10502
+ x,
10502
10503
  y,
10503
10504
  width,
10504
10505
  height
@@ -10507,10 +10508,10 @@ function rectToClientRect(rect) {
10507
10508
  width,
10508
10509
  height,
10509
10510
  top: y,
10510
- left: x2,
10511
- right: x2 + width,
10511
+ left: x,
10512
+ right: x + width,
10512
10513
  bottom: y + height,
10513
- x: x2,
10514
+ x,
10514
10515
  y
10515
10516
  };
10516
10517
  }
@@ -10586,7 +10587,7 @@ var computePosition = async (reference, floating, config) => {
10586
10587
  strategy
10587
10588
  });
10588
10589
  let {
10589
- x: x2,
10590
+ x,
10590
10591
  y
10591
10592
  } = computeCoordsFromPlacement(rects, placement, rtl);
10592
10593
  let statefulPlacement = placement;
@@ -10603,7 +10604,7 @@ var computePosition = async (reference, floating, config) => {
10603
10604
  data,
10604
10605
  reset: reset2
10605
10606
  } = await fn({
10606
- x: x2,
10607
+ x,
10607
10608
  y,
10608
10609
  initialPlacement: placement,
10609
10610
  placement: statefulPlacement,
@@ -10616,7 +10617,7 @@ var computePosition = async (reference, floating, config) => {
10616
10617
  floating
10617
10618
  }
10618
10619
  });
10619
- x2 = nextX != null ? nextX : x2;
10620
+ x = nextX != null ? nextX : x;
10620
10621
  y = nextY != null ? nextY : y;
10621
10622
  middlewareData = {
10622
10623
  ...middlewareData,
@@ -10639,7 +10640,7 @@ var computePosition = async (reference, floating, config) => {
10639
10640
  }) : reset2.rects;
10640
10641
  }
10641
10642
  ({
10642
- x: x2,
10643
+ x,
10643
10644
  y
10644
10645
  } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
10645
10646
  }
@@ -10647,7 +10648,7 @@ var computePosition = async (reference, floating, config) => {
10647
10648
  }
10648
10649
  }
10649
10650
  return {
10650
- x: x2,
10651
+ x,
10651
10652
  y,
10652
10653
  placement: statefulPlacement,
10653
10654
  strategy,
@@ -10660,7 +10661,7 @@ async function detectOverflow(state, options) {
10660
10661
  options = {};
10661
10662
  }
10662
10663
  const {
10663
- x: x2,
10664
+ x,
10664
10665
  y,
10665
10666
  platform: platform2,
10666
10667
  rects,
@@ -10684,7 +10685,7 @@ async function detectOverflow(state, options) {
10684
10685
  strategy
10685
10686
  }));
10686
10687
  const rect = elementContext === "floating" ? {
10687
- x: x2,
10688
+ x,
10688
10689
  y,
10689
10690
  width: rects.floating.width,
10690
10691
  height: rects.floating.height
@@ -10715,7 +10716,7 @@ var arrow = (options) => ({
10715
10716
  options,
10716
10717
  async fn(state) {
10717
10718
  const {
10718
- x: x2,
10719
+ x,
10719
10720
  y,
10720
10721
  placement,
10721
10722
  rects,
@@ -10732,7 +10733,7 @@ var arrow = (options) => ({
10732
10733
  }
10733
10734
  const paddingObject = getPaddingObject(padding);
10734
10735
  const coords = {
10735
- x: x2,
10736
+ x,
10736
10737
  y
10737
10738
  };
10738
10739
  const axis = getAlignmentAxis(placement);
@@ -10989,7 +10990,7 @@ var offset = function(options) {
10989
10990
  async fn(state) {
10990
10991
  var _middlewareData$offse, _middlewareData$arrow;
10991
10992
  const {
10992
- x: x2,
10993
+ x,
10993
10994
  y,
10994
10995
  placement,
10995
10996
  middlewareData
@@ -10999,7 +11000,7 @@ var offset = function(options) {
10999
11000
  return {};
11000
11001
  }
11001
11002
  return {
11002
- x: x2 + diffCoords.x,
11003
+ x: x + diffCoords.x,
11003
11004
  y: y + diffCoords.y,
11004
11005
  data: {
11005
11006
  ...diffCoords,
@@ -11018,7 +11019,7 @@ var shift = function(options) {
11018
11019
  options,
11019
11020
  async fn(state) {
11020
11021
  const {
11021
- x: x2,
11022
+ x,
11022
11023
  y,
11023
11024
  placement
11024
11025
  } = state;
@@ -11028,11 +11029,11 @@ var shift = function(options) {
11028
11029
  limiter = {
11029
11030
  fn: (_ref) => {
11030
11031
  let {
11031
- x: x3,
11032
+ x: x2,
11032
11033
  y: y2
11033
11034
  } = _ref;
11034
11035
  return {
11035
- x: x3,
11036
+ x: x2,
11036
11037
  y: y2
11037
11038
  };
11038
11039
  }
@@ -11040,7 +11041,7 @@ var shift = function(options) {
11040
11041
  ...detectOverflowOptions
11041
11042
  } = evaluate(options, state);
11042
11043
  const coords = {
11043
- x: x2,
11044
+ x,
11044
11045
  y
11045
11046
  };
11046
11047
  const overflow = await detectOverflow(state, detectOverflowOptions);
@@ -11070,7 +11071,7 @@ var shift = function(options) {
11070
11071
  return {
11071
11072
  ...limitedCoords,
11072
11073
  data: {
11073
- x: limitedCoords.x - x2,
11074
+ x: limitedCoords.x - x,
11074
11075
  y: limitedCoords.y - y,
11075
11076
  enabled: {
11076
11077
  [mainAxis]: checkMainAxis,
@@ -11089,7 +11090,7 @@ var limitShift = function(options) {
11089
11090
  options,
11090
11091
  fn(state) {
11091
11092
  const {
11092
- x: x2,
11093
+ x,
11093
11094
  y,
11094
11095
  placement,
11095
11096
  rects,
@@ -11101,7 +11102,7 @@ var limitShift = function(options) {
11101
11102
  crossAxis: checkCrossAxis = true
11102
11103
  } = evaluate(options, state);
11103
11104
  const coords = {
11104
- x: x2,
11105
+ x,
11105
11106
  y
11106
11107
  };
11107
11108
  const crossAxis = getSideAxis(placement);
@@ -11412,16 +11413,16 @@ function getScale(element) {
11412
11413
  height,
11413
11414
  $
11414
11415
  } = getCssDimensions(domElement);
11415
- let x2 = ($ ? round(rect.width) : rect.width) / width;
11416
+ let x = ($ ? round(rect.width) : rect.width) / width;
11416
11417
  let y = ($ ? round(rect.height) : rect.height) / height;
11417
- if (!x2 || !Number.isFinite(x2)) {
11418
- x2 = 1;
11418
+ if (!x || !Number.isFinite(x)) {
11419
+ x = 1;
11419
11420
  }
11420
11421
  if (!y || !Number.isFinite(y)) {
11421
11422
  y = 1;
11422
11423
  }
11423
11424
  return {
11424
- x: x2,
11425
+ x,
11425
11426
  y
11426
11427
  };
11427
11428
  }
@@ -11465,7 +11466,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
11465
11466
  }
11466
11467
  }
11467
11468
  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
11468
- let x2 = (clientRect2.left + visualOffsets.x) / scale.x;
11469
+ let x = (clientRect2.left + visualOffsets.x) / scale.x;
11469
11470
  let y = (clientRect2.top + visualOffsets.y) / scale.y;
11470
11471
  let width = clientRect2.width / scale.x;
11471
11472
  let height = clientRect2.height / scale.y;
@@ -11480,11 +11481,11 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
11480
11481
  const css2 = getComputedStyle2(currentIFrame);
11481
11482
  const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css2.paddingLeft)) * iframeScale.x;
11482
11483
  const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css2.paddingTop)) * iframeScale.y;
11483
- x2 *= iframeScale.x;
11484
+ x *= iframeScale.x;
11484
11485
  y *= iframeScale.y;
11485
11486
  width *= iframeScale.x;
11486
11487
  height *= iframeScale.y;
11487
- x2 += left;
11488
+ x += left;
11488
11489
  y += top;
11489
11490
  currentWin = getWindow(currentIFrame);
11490
11491
  currentIFrame = getFrameElement(currentWin);
@@ -11493,7 +11494,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
11493
11494
  return rectToClientRect({
11494
11495
  width,
11495
11496
  height,
11496
- x: x2,
11497
+ x,
11497
11498
  y
11498
11499
  });
11499
11500
  }
@@ -11506,10 +11507,10 @@ function getWindowScrollBarX(element, rect) {
11506
11507
  }
11507
11508
  function getHTMLOffset(documentElement, scroll) {
11508
11509
  const htmlRect = documentElement.getBoundingClientRect();
11509
- const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
11510
+ const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
11510
11511
  const y = htmlRect.top + scroll.scrollTop;
11511
11512
  return {
11512
- x: x2,
11513
+ x,
11513
11514
  y
11514
11515
  };
11515
11516
  }
@@ -11561,15 +11562,15 @@ function getDocumentRect(element) {
11561
11562
  const body = element.ownerDocument.body;
11562
11563
  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
11563
11564
  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
11564
- let x2 = -scroll.scrollLeft + getWindowScrollBarX(element);
11565
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
11565
11566
  const y = -scroll.scrollTop;
11566
11567
  if (getComputedStyle2(body).direction === "rtl") {
11567
- x2 += max(html.clientWidth, body.clientWidth) - width;
11568
+ x += max(html.clientWidth, body.clientWidth) - width;
11568
11569
  }
11569
11570
  return {
11570
11571
  width,
11571
11572
  height,
11572
- x: x2,
11573
+ x,
11573
11574
  y
11574
11575
  };
11575
11576
  }
@@ -11580,14 +11581,14 @@ function getViewportRect(element, strategy) {
11580
11581
  const visualViewport = win.visualViewport;
11581
11582
  let width = html.clientWidth;
11582
11583
  let height = html.clientHeight;
11583
- let x2 = 0;
11584
+ let x = 0;
11584
11585
  let y = 0;
11585
11586
  if (visualViewport) {
11586
11587
  width = visualViewport.width;
11587
11588
  height = visualViewport.height;
11588
11589
  const visualViewportBased = isWebKit();
11589
11590
  if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
11590
- x2 = visualViewport.offsetLeft;
11591
+ x = visualViewport.offsetLeft;
11591
11592
  y = visualViewport.offsetTop;
11592
11593
  }
11593
11594
  }
@@ -11607,7 +11608,7 @@ function getViewportRect(element, strategy) {
11607
11608
  return {
11608
11609
  width,
11609
11610
  height,
11610
- x: x2,
11611
+ x,
11611
11612
  y
11612
11613
  };
11613
11614
  }
@@ -11619,12 +11620,12 @@ function getInnerBoundingClientRect(element, strategy) {
11619
11620
  const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
11620
11621
  const width = element.clientWidth * scale.x;
11621
11622
  const height = element.clientHeight * scale.y;
11622
- const x2 = left * scale.x;
11623
+ const x = left * scale.x;
11623
11624
  const y = top * scale.y;
11624
11625
  return {
11625
11626
  width,
11626
11627
  height,
11627
- x: x2,
11628
+ x,
11628
11629
  y
11629
11630
  };
11630
11631
  }
@@ -11744,10 +11745,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
11744
11745
  setLeftRTLScrollbarOffset();
11745
11746
  }
11746
11747
  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
11747
- const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
11748
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
11748
11749
  const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
11749
11750
  return {
11750
- x: x2,
11751
+ x,
11751
11752
  y,
11752
11753
  width: rect.width,
11753
11754
  height: rect.height
@@ -12187,12 +12188,12 @@ function useFloating(options) {
12187
12188
  if (!elements.floating) {
12188
12189
  return initialStyles;
12189
12190
  }
12190
- const x2 = roundByDPR(elements.floating, data.x);
12191
+ const x = roundByDPR(elements.floating, data.x);
12191
12192
  const y = roundByDPR(elements.floating, data.y);
12192
12193
  if (transform) {
12193
12194
  return {
12194
12195
  ...initialStyles,
12195
- transform: "translate(" + x2 + "px, " + y + "px)",
12196
+ transform: "translate(" + x + "px, " + y + "px)",
12196
12197
  ...getDPR(elements.floating) >= 1.5 && {
12197
12198
  willChange: "transform"
12198
12199
  }
@@ -12200,7 +12201,7 @@ function useFloating(options) {
12200
12201
  }
12201
12202
  return {
12202
12203
  position: strategy,
12203
- left: x2,
12204
+ left: x,
12204
12205
  top: y
12205
12206
  };
12206
12207
  }, [strategy, transform, elements.floating, data.x, data.y]);
@@ -12574,22 +12575,22 @@ var transformOrigin = (options) => ({
12574
12575
  const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
12575
12576
  const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;
12576
12577
  const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;
12577
- let x2 = "";
12578
+ let x = "";
12578
12579
  let y = "";
12579
12580
  if (placedSide === "bottom") {
12580
- x2 = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
12581
+ x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
12581
12582
  y = `${-arrowHeight}px`;
12582
12583
  } else if (placedSide === "top") {
12583
- x2 = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
12584
+ x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
12584
12585
  y = `${rects.floating.height + arrowHeight}px`;
12585
12586
  } else if (placedSide === "right") {
12586
- x2 = `${-arrowHeight}px`;
12587
+ x = `${-arrowHeight}px`;
12587
12588
  y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
12588
12589
  } else if (placedSide === "left") {
12589
- x2 = `${rects.floating.width + arrowHeight}px`;
12590
+ x = `${rects.floating.width + arrowHeight}px`;
12590
12591
  y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
12591
12592
  }
12592
- return { data: { x: x2, y } };
12593
+ return { data: { x, y } };
12593
12594
  }
12594
12595
  });
12595
12596
  function getSideAndAlignFromPlacement(placement) {
@@ -14331,9 +14332,9 @@ var MoonUIGestureDrawerProComponent = React71__default.forwardRef(({
14331
14332
  const isVertical = position === "bottom" || position === "top";
14332
14333
  useAnimation();
14333
14334
  useAnimation();
14334
- const x2 = useMotionValue(0);
14335
+ const x = useMotionValue(0);
14335
14336
  const y = useMotionValue(0);
14336
- const motionValue = isVertical ? y : x2;
14337
+ const motionValue = isVertical ? y : x;
14337
14338
  const [currentSnapPoint, setCurrentSnapPoint] = useState(
14338
14339
  defaultSnapPoint || (snapPoints.length > 0 ? snapPoints[0] : 50)
14339
14340
  );
@@ -15180,9 +15181,9 @@ var MagneticButtonInternal = React71.forwardRef(
15180
15181
  (e) => {
15181
15182
  if (enableRipple && buttonRef.current) {
15182
15183
  const rect = buttonRef.current.getBoundingClientRect();
15183
- const x2 = e.clientX - rect.left;
15184
+ const x = e.clientX - rect.left;
15184
15185
  const y = e.clientY - rect.top;
15185
- const newRipple = { id: Date.now(), x: x2, y };
15186
+ const newRipple = { id: Date.now(), x, y };
15186
15187
  setRipples((prevRipples) => [...prevRipples, newRipple]);
15187
15188
  setTimeout(() => {
15188
15189
  setRipples((prevRipples) => prevRipples.filter((r2) => r2.id !== newRipple.id));
@@ -15702,7 +15703,7 @@ var MoonUIMediaGalleryPro = React71.forwardRef(({
15702
15703
  className
15703
15704
  ),
15704
15705
  style: layout === "masonry" ? { columnGap: "1rem" } : void 0,
15705
- children: loadingState ? /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: skeletonCount }).map((_2, i) => /* @__PURE__ */ jsx(React71.Fragment, { children: renderSkeleton() }, i)) }) : sortedItems.length > 0 ? sortedItems.map((item, index2) => renderGalleryItem(item, index2)) : emptyState || /* @__PURE__ */ jsxs("div", { className: "col-span-full flex flex-col items-center justify-center py-12 text-center", children: [
15706
+ children: loadingState ? /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: skeletonCount }).map((_, i) => /* @__PURE__ */ jsx(React71.Fragment, { children: renderSkeleton() }, i)) }) : sortedItems.length > 0 ? sortedItems.map((item, index2) => renderGalleryItem(item, index2)) : emptyState || /* @__PURE__ */ jsxs("div", { className: "col-span-full flex flex-col items-center justify-center py-12 text-center", children: [
15706
15707
  /* @__PURE__ */ jsx(Image$1, { className: "h-12 w-12 text-muted-foreground mb-4" }),
15707
15708
  /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "No media items found" })
15708
15709
  ] })
@@ -16308,16 +16309,16 @@ var GlowCardInternal = forwardRef(
16308
16309
  if (!cardRef.current)
16309
16310
  return;
16310
16311
  const rect = cardRef.current.getBoundingClientRect();
16311
- const x2 = e.clientX - rect.left;
16312
+ const x = e.clientX - rect.left;
16312
16313
  const y = e.clientY - rect.top;
16313
16314
  if (mouseTrack) {
16314
- setMousePosition({ x: x2, y });
16315
+ setMousePosition({ x, y });
16315
16316
  }
16316
16317
  if (tilt && !disableAnimations) {
16317
16318
  const centerX = rect.width / 2;
16318
16319
  const centerY = rect.height / 2;
16319
16320
  const rotateX = (y - centerY) / centerY * tiltAngle;
16320
- const rotateY = (x2 - centerX) / centerX * -tiltAngle;
16321
+ const rotateY = (x - centerX) / centerX * -tiltAngle;
16321
16322
  setTiltStyle({
16322
16323
  transform: `perspective(1000px) rotateX(${rotateX}deg) rotateY(${rotateY}deg) scale3d(1.02, 1.02, 1.02)`,
16323
16324
  transformStyle: "preserve-3d"
@@ -16520,10 +16521,10 @@ var MoonUIAnimatedButtonProInternal = React71__default.forwardRef(
16520
16521
  return;
16521
16522
  if (ripple) {
16522
16523
  const rect = e.currentTarget.getBoundingClientRect();
16523
- const x2 = e.clientX - rect.left;
16524
+ const x = e.clientX - rect.left;
16524
16525
  const y = e.clientY - rect.top;
16525
16526
  const id = Date.now();
16526
- setRipples([...ripples, { x: x2, y, id }]);
16527
+ setRipples([...ripples, { x, y, id }]);
16527
16528
  setTimeout(() => {
16528
16529
  setRipples((prev) => prev.filter((r2) => r2.id !== id));
16529
16530
  }, 600);
@@ -17629,7 +17630,7 @@ var SplashCursorComponent = ({
17629
17630
  const cleanupSplash = useCallback((splashId) => {
17630
17631
  setSplashes((prev) => prev.filter((splash) => splash.id !== splashId));
17631
17632
  }, []);
17632
- const createSplash = useCallback((x2, y) => {
17633
+ const createSplash = useCallback((x, y) => {
17633
17634
  const now = Date.now();
17634
17635
  if (now - lastSplashTimeRef.current < 16) {
17635
17636
  return;
@@ -17637,7 +17638,7 @@ var SplashCursorComponent = ({
17637
17638
  lastSplashTimeRef.current = now;
17638
17639
  const newSplash = {
17639
17640
  id: now + Math.random(),
17640
- x: x2,
17641
+ x,
17641
17642
  y,
17642
17643
  timestamp: now
17643
17644
  };
@@ -17666,13 +17667,13 @@ var SplashCursorComponent = ({
17666
17667
  return;
17667
17668
  rafIdRef.current = requestAnimationFrame(() => {
17668
17669
  const container = containerRef?.current;
17669
- let x2 = e.clientX;
17670
+ let x = e.clientX;
17670
17671
  let y = e.clientY;
17671
17672
  if (container) {
17672
17673
  const rect = container.getBoundingClientRect();
17673
- x2 = e.clientX - rect.left;
17674
+ x = e.clientX - rect.left;
17674
17675
  y = e.clientY - rect.top;
17675
- if (x2 < 0 || y < 0 || x2 > rect.width || y > rect.height) {
17676
+ if (x < 0 || y < 0 || x > rect.width || y > rect.height) {
17676
17677
  rafIdRef.current = null;
17677
17678
  return;
17678
17679
  }
@@ -17683,7 +17684,7 @@ var SplashCursorComponent = ({
17683
17684
  const distance = calculateDistance(
17684
17685
  lastPosRef.current.x,
17685
17686
  lastPosRef.current.y,
17686
- x2,
17687
+ x,
17687
17688
  y
17688
17689
  );
17689
17690
  const speed = distance / timeDiff;
@@ -17691,37 +17692,37 @@ var SplashCursorComponent = ({
17691
17692
  if (targetSelector) {
17692
17693
  const target = e.target;
17693
17694
  if (target?.closest(targetSelector)) {
17694
- createSplash(x2, y);
17695
+ createSplash(x, y);
17695
17696
  }
17696
17697
  } else {
17697
- createSplash(x2, y);
17698
+ createSplash(x, y);
17698
17699
  }
17699
17700
  }
17700
17701
  }
17701
- lastPosRef.current = { x: x2, y };
17702
+ lastPosRef.current = { x, y };
17702
17703
  lastMoveTimeRef.current = now;
17703
17704
  rafIdRef.current = null;
17704
17705
  });
17705
17706
  }, [threshold, targetSelector, createSplash, containerRef]);
17706
17707
  const handleClick2 = useCallback((e) => {
17707
17708
  const container = containerRef?.current;
17708
- let x2 = e.clientX;
17709
+ let x = e.clientX;
17709
17710
  let y = e.clientY;
17710
17711
  if (container) {
17711
17712
  const rect = container.getBoundingClientRect();
17712
- x2 = e.clientX - rect.left;
17713
+ x = e.clientX - rect.left;
17713
17714
  y = e.clientY - rect.top;
17714
- if (x2 < 0 || y < 0 || x2 > rect.width || y > rect.height) {
17715
+ if (x < 0 || y < 0 || x > rect.width || y > rect.height) {
17715
17716
  return;
17716
17717
  }
17717
17718
  }
17718
17719
  if (targetSelector) {
17719
17720
  const target = e.target;
17720
17721
  if (target?.closest(targetSelector)) {
17721
- createSplash(x2, y);
17722
+ createSplash(x, y);
17722
17723
  }
17723
17724
  } else {
17724
- createSplash(x2, y);
17725
+ createSplash(x, y);
17725
17726
  }
17726
17727
  }, [targetSelector, createSplash, containerRef]);
17727
17728
  useEffect(() => {
@@ -17780,7 +17781,7 @@ var SplashCursorComponent = ({
17780
17781
  const particleAngles = useMemo(() => {
17781
17782
  if (!showParticles)
17782
17783
  return [];
17783
- return Array.from({ length: particleCount }).map((_2, i) => {
17784
+ return Array.from({ length: particleCount }).map((_, i) => {
17784
17785
  const angle = 360 / particleCount * i;
17785
17786
  const radian = angle * Math.PI / 180;
17786
17787
  return {
@@ -18007,7 +18008,7 @@ var MarqueeInternal = ({
18007
18008
  !isPlaying && "animation-paused",
18008
18009
  className
18009
18010
  ),
18010
- children: Array.from({ length: repeatCount }).map((_2, i) => /* @__PURE__ */ jsx(
18011
+ children: Array.from({ length: repeatCount }).map((_, i) => /* @__PURE__ */ jsx(
18011
18012
  "div",
18012
18013
  {
18013
18014
  ref: i === 0 ? marqueeRef : void 0,
@@ -18536,9 +18537,9 @@ var HoverCard3DInternal = React71__default.forwardRef(
18536
18537
  const [isFocused, setIsFocused] = useState(false);
18537
18538
  const [mousePosition, setMousePosition] = useState({ x: 0, y: 0 });
18538
18539
  const rotation = mergedProps.maxRotation || rotationIntensity || 15;
18539
- const x2 = useMotionValue(0);
18540
+ const x = useMotionValue(0);
18540
18541
  const y = useMotionValue(0);
18541
- const springX = useSpring(x2, {
18542
+ const springX = useSpring(x, {
18542
18543
  ...mergedProps.springConfig,
18543
18544
  stiffness: mergedProps.springConfig.stiffness * animationSpeed,
18544
18545
  damping: mergedProps.springConfig.damping / animationSpeed
@@ -18576,7 +18577,7 @@ var HoverCard3DInternal = React71__default.forwardRef(
18576
18577
  }
18577
18578
  const rotateXValue = (clientY - centerY) / (rect.height / 2);
18578
18579
  const rotateYValue = (clientX - centerX) / (rect.width / 2);
18579
- x2.set(rotateYValue);
18580
+ x.set(rotateYValue);
18580
18581
  y.set(rotateXValue);
18581
18582
  if (mergedProps.enableShine) {
18582
18583
  const normalizedX = (clientX - rect.left) / rect.width;
@@ -18586,22 +18587,22 @@ var HoverCard3DInternal = React71__default.forwardRef(
18586
18587
  if (onRotationChange) {
18587
18588
  onRotationChange(rotateX.get(), rotateY.get());
18588
18589
  }
18589
- }, [enableTouch, x2, y, rotateX, rotateY, onRotationChange, mergedProps.enableShine]);
18590
+ }, [enableTouch, x, y, rotateX, rotateY, onRotationChange, mergedProps.enableShine]);
18590
18591
  const handleMouseEnter = useCallback(() => {
18591
18592
  setIsHovered(true);
18592
18593
  onHoverStart?.();
18593
18594
  }, [onHoverStart]);
18594
18595
  const handleMouseLeave2 = useCallback(() => {
18595
18596
  setIsHovered(false);
18596
- x2.set(0);
18597
+ x.set(0);
18597
18598
  y.set(0);
18598
18599
  onHoverEnd?.();
18599
- }, [x2, y, onHoverEnd]);
18600
+ }, [x, y, onHoverEnd]);
18600
18601
  const handleKeyDown3 = useCallback((e) => {
18601
18602
  if (!enableKeyboard || !isFocused)
18602
18603
  return;
18603
18604
  const step = 0.1;
18604
- let newX = x2.get();
18605
+ let newX = x.get();
18605
18606
  let newY = y.get();
18606
18607
  switch (e.key) {
18607
18608
  case "ArrowUp":
@@ -18616,12 +18617,12 @@ var HoverCard3DInternal = React71__default.forwardRef(
18616
18617
  break;
18617
18618
  case "ArrowLeft":
18618
18619
  newX = Math.max(-0.5, newX - step);
18619
- x2.set(newX);
18620
+ x.set(newX);
18620
18621
  e.preventDefault();
18621
18622
  break;
18622
18623
  case "ArrowRight":
18623
18624
  newX = Math.min(0.5, newX + step);
18624
- x2.set(newX);
18625
+ x.set(newX);
18625
18626
  e.preventDefault();
18626
18627
  break;
18627
18628
  case "Enter":
@@ -18635,7 +18636,7 @@ var HoverCard3DInternal = React71__default.forwardRef(
18635
18636
  e.preventDefault();
18636
18637
  break;
18637
18638
  case "Escape":
18638
- x2.set(0);
18639
+ x.set(0);
18639
18640
  y.set(0);
18640
18641
  setIsHovered(false);
18641
18642
  onHoverEnd?.();
@@ -18645,7 +18646,7 @@ var HoverCard3DInternal = React71__default.forwardRef(
18645
18646
  if (onRotationChange) {
18646
18647
  onRotationChange(rotateX.get(), rotateY.get());
18647
18648
  }
18648
- }, [enableKeyboard, isFocused, x2, y, isHovered, onHoverStart, onHoverEnd, rotateX, rotateY, onRotationChange]);
18649
+ }, [enableKeyboard, isFocused, x, y, isHovered, onHoverStart, onHoverEnd, rotateX, rotateY, onRotationChange]);
18649
18650
  useEffect(() => {
18650
18651
  if (autoFocus && cardRef.current) {
18651
18652
  cardRef.current.focus();
@@ -18900,7 +18901,7 @@ var PinchZoomInternal = React71__default.forwardRef(
18900
18901
  const [isHovered, setIsHovered] = useState(false);
18901
18902
  const [isFullscreen, setIsFullscreen] = useState(false);
18902
18903
  const scale = useMotionValue(initialZoom);
18903
- const x2 = useMotionValue(0);
18904
+ const x = useMotionValue(0);
18904
18905
  const y = useMotionValue(0);
18905
18906
  const constrainedScale = useTransform(scale, (value) => {
18906
18907
  return Math.min(Math.max(value, minZoom), maxZoom);
@@ -18952,15 +18953,15 @@ var PinchZoomInternal = React71__default.forwardRef(
18952
18953
  const centerX = (event.clientX - rect.left) / rect.width - 0.5;
18953
18954
  const centerY = (event.clientY - rect.top) / rect.height - 0.5;
18954
18955
  const scaleDiff = newScale - currentScale;
18955
- const currentX = x2.get();
18956
+ const currentX = x.get();
18956
18957
  const currentY = y.get();
18957
18958
  const newX = currentX - centerX * rect.width * scaleDiff;
18958
18959
  const newY = currentY - centerY * rect.height * scaleDiff;
18959
18960
  if (smoothZoom) {
18960
- animate(x2, newX, { duration: 0.2 });
18961
+ animate(x, newX, { duration: 0.2 });
18961
18962
  animate(y, newY, { duration: 0.2 });
18962
18963
  } else {
18963
- x2.set(newX);
18964
+ x.set(newX);
18964
18965
  y.set(newY);
18965
18966
  }
18966
18967
  }
@@ -18974,7 +18975,7 @@ var PinchZoomInternal = React71__default.forwardRef(
18974
18975
  setShowZoomIndicator(true);
18975
18976
  setTimeout(() => setShowZoomIndicator(false), 1500);
18976
18977
  }
18977
- }, [scale, x2, y, minZoom, maxZoom, onZoomChange, wheelScaling, smoothZoom, showIndicator]);
18978
+ }, [scale, x, y, minZoom, maxZoom, onZoomChange, wheelScaling, smoothZoom, showIndicator]);
18978
18979
  const handleDoubleClick2 = useCallback((event) => {
18979
18980
  event.preventDefault();
18980
18981
  const currentScale = scale.get();
@@ -18989,7 +18990,7 @@ var PinchZoomInternal = React71__default.forwardRef(
18989
18990
  const centerY = (event.clientY - rect.top) / rect.height - 0.5;
18990
18991
  const targetX = -centerX * rect.width * (newScale - 1);
18991
18992
  const targetY = -centerY * rect.height * (newScale - 1);
18992
- animate(x2, targetX, {
18993
+ animate(x, targetX, {
18993
18994
  duration: 0.3,
18994
18995
  type: "spring",
18995
18996
  stiffness: 300
@@ -19007,7 +19008,7 @@ var PinchZoomInternal = React71__default.forwardRef(
19007
19008
  stiffness: 300
19008
19009
  });
19009
19010
  if (newScale === 1 || doubleTapBehavior === "reset") {
19010
- animate(x2, 0, { duration: 0.3 });
19011
+ animate(x, 0, { duration: 0.3 });
19011
19012
  animate(y, 0, { duration: 0.3 });
19012
19013
  }
19013
19014
  onZoomChange?.(newScale);
@@ -19015,7 +19016,7 @@ var PinchZoomInternal = React71__default.forwardRef(
19015
19016
  setShowZoomIndicator(true);
19016
19017
  setTimeout(() => setShowZoomIndicator(false), 1500);
19017
19018
  }
19018
- }, [scale, x2, y, minZoom, maxZoom, initialZoom, onZoomChange, doubleTapBehavior, showIndicator]);
19019
+ }, [scale, x, y, minZoom, maxZoom, initialZoom, onZoomChange, doubleTapBehavior, showIndicator]);
19019
19020
  const handleTouchEnd = useCallback((event) => {
19020
19021
  const now = Date.now();
19021
19022
  const timeSinceLastTap = now - lastTap;
@@ -19037,7 +19038,7 @@ var PinchZoomInternal = React71__default.forwardRef(
19037
19038
  type: "spring",
19038
19039
  stiffness: 300
19039
19040
  });
19040
- animate(x2, 0, {
19041
+ animate(x, 0, {
19041
19042
  duration: 0.3,
19042
19043
  type: "spring",
19043
19044
  stiffness: 300
@@ -19048,7 +19049,7 @@ var PinchZoomInternal = React71__default.forwardRef(
19048
19049
  stiffness: 300
19049
19050
  });
19050
19051
  onZoomChange?.(initialZoom);
19051
- }, [scale, x2, y, initialZoom, onZoomChange]);
19052
+ }, [scale, x, y, initialZoom, onZoomChange]);
19052
19053
  const zoomIn = useCallback(() => {
19053
19054
  const currentScale = scale.get();
19054
19055
  const newScale = Math.min(currentScale + zoomStep, maxZoom);
@@ -19073,10 +19074,10 @@ var PinchZoomInternal = React71__default.forwardRef(
19073
19074
  });
19074
19075
  if (newScale < scale.get()) {
19075
19076
  const constraints = calculateConstraints();
19076
- const currentX = x2.get();
19077
+ const currentX = x.get();
19077
19078
  const currentY = y.get();
19078
19079
  if (currentX < constraints.left || currentX > constraints.right) {
19079
- animate(x2, 0, { duration: 0.3 });
19080
+ animate(x, 0, { duration: 0.3 });
19080
19081
  }
19081
19082
  if (currentY < constraints.top || currentY > constraints.bottom) {
19082
19083
  animate(y, 0, { duration: 0.3 });
@@ -19087,7 +19088,7 @@ var PinchZoomInternal = React71__default.forwardRef(
19087
19088
  setShowZoomIndicator(true);
19088
19089
  setTimeout(() => setShowZoomIndicator(false), 1500);
19089
19090
  }
19090
- }, [scale, minZoom, zoomStep, x2, y, calculateConstraints, onZoomChange, showIndicator]);
19091
+ }, [scale, minZoom, zoomStep, x, y, calculateConstraints, onZoomChange, showIndicator]);
19091
19092
  useCallback(() => {
19092
19093
  resetZoom();
19093
19094
  }, [resetZoom]);
@@ -19149,11 +19150,11 @@ var PinchZoomInternal = React71__default.forwardRef(
19149
19150
  useEffect(() => {
19150
19151
  const unsubscribe = scale.onChange(() => {
19151
19152
  const constraints = calculateConstraints();
19152
- const currentX = x2.get();
19153
+ const currentX = x.get();
19153
19154
  const currentY = y.get();
19154
19155
  if (boundaryConstraints) {
19155
19156
  if (currentX < constraints.left || currentX > constraints.right) {
19156
- animate(x2, Math.max(constraints.left, Math.min(constraints.right, currentX)), { duration: 0.2 });
19157
+ animate(x, Math.max(constraints.left, Math.min(constraints.right, currentX)), { duration: 0.2 });
19157
19158
  }
19158
19159
  if (currentY < constraints.top || currentY > constraints.bottom) {
19159
19160
  animate(y, Math.max(constraints.top, Math.min(constraints.bottom, currentY)), { duration: 0.2 });
@@ -19161,7 +19162,7 @@ var PinchZoomInternal = React71__default.forwardRef(
19161
19162
  }
19162
19163
  });
19163
19164
  return unsubscribe;
19164
- }, [scale, x2, y, calculateConstraints, boundaryConstraints]);
19165
+ }, [scale, x, y, calculateConstraints, boundaryConstraints]);
19165
19166
  return /* @__PURE__ */ jsxs(
19166
19167
  "div",
19167
19168
  {
@@ -19191,7 +19192,7 @@ var PinchZoomInternal = React71__default.forwardRef(
19191
19192
  onDragEnd: () => setIsDragging(false),
19192
19193
  style: {
19193
19194
  scale: constrainedScale,
19194
- x: x2,
19195
+ x,
19195
19196
  y
19196
19197
  },
19197
19198
  className: cn(
@@ -19432,7 +19433,7 @@ function EventDialog({
19432
19433
  }
19433
19434
  };
19434
19435
  const handleTypeChange = (type) => {
19435
- const selectedType = EVENT_TYPES.find((t2) => t2.value === type);
19436
+ const selectedType = EVENT_TYPES.find((t) => t.value === type);
19436
19437
  setFormData((prev) => ({
19437
19438
  ...prev,
19438
19439
  type,
@@ -19946,7 +19947,7 @@ function CalendarInternal({
19946
19947
  return dayOfWeek !== 0 && dayOfWeek !== 6;
19947
19948
  });
19948
19949
  const orderedDaysOfWeek = [...DAYS_OF_WEEK.slice(firstDayOfWeek), ...DAYS_OF_WEEK.slice(0, firstDayOfWeek)];
19949
- const visibleDaysOfWeek = showWeekends ? orderedDaysOfWeek : orderedDaysOfWeek.filter((_2, index2) => {
19950
+ const visibleDaysOfWeek = showWeekends ? orderedDaysOfWeek : orderedDaysOfWeek.filter((_, index2) => {
19950
19951
  const actualDay = (index2 + firstDayOfWeek) % 7;
19951
19952
  return actualDay !== 0 && actualDay !== 6;
19952
19953
  });
@@ -19988,7 +19989,7 @@ function CalendarInternal({
19988
19989
  ] }),
19989
19990
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-7 gap-1 text-xs", children: [
19990
19991
  ["S", "M", "T", "W", "T", "F", "S"].map((day, index2) => /* @__PURE__ */ jsx("div", { className: "text-center text-muted-foreground", children: day }, `mini-day-${index2}`)),
19991
- Array.from({ length: 35 }, (_2, i) => {
19992
+ Array.from({ length: 35 }, (_, i) => {
19992
19993
  const date = new Date(miniCalendarDate.getFullYear(), miniCalendarDate.getMonth(), i - new Date(miniCalendarDate.getFullYear(), miniCalendarDate.getMonth(), 1).getDay() + 1);
19993
19994
  const isCurrentMonth2 = date.getMonth() === miniCalendarDate.getMonth();
19994
19995
  const isToday3 = date.toDateString() === today.toDateString();
@@ -20233,7 +20234,7 @@ function CalendarInternal({
20233
20234
  view === "week" && /* @__PURE__ */ jsxs("div", { className: "flex-1 flex flex-col space-y-4", children: [
20234
20235
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-8 gap-2", children: [
20235
20236
  /* @__PURE__ */ jsx("div", { className: "text-xs font-medium text-muted-foreground", children: "Time" }),
20236
- Array.from({ length: 7 }, (_2, i) => {
20237
+ Array.from({ length: 7 }, (_, i) => {
20237
20238
  const date = new Date(currentDate);
20238
20239
  date.setDate(date.getDate() - date.getDay() + i);
20239
20240
  return /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
@@ -20245,9 +20246,9 @@ function CalendarInternal({
20245
20246
  ] }, i);
20246
20247
  })
20247
20248
  ] }),
20248
- /* @__PURE__ */ jsx("div", { className: "border rounded-lg overflow-hidden flex-1 flex flex-col", children: /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto", children: Array.from({ length: 24 }, (_2, hour) => /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-8 border-b last:border-b-0", children: [
20249
+ /* @__PURE__ */ jsx("div", { className: "border rounded-lg overflow-hidden flex-1 flex flex-col", children: /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto", children: Array.from({ length: 24 }, (_, hour) => /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-8 border-b last:border-b-0", children: [
20249
20250
  /* @__PURE__ */ jsx("div", { className: "p-2 text-xs text-muted-foreground border-r", children: formatTime2(`${hour.toString().padStart(2, "0")}:00`) }),
20250
- Array.from({ length: 7 }, (_3, dayIndex) => {
20251
+ Array.from({ length: 7 }, (_2, dayIndex) => {
20251
20252
  const date = new Date(currentDate);
20252
20253
  date.setDate(date.getDate() - date.getDay() + dayIndex);
20253
20254
  const hourEvents = getEventsForDate(date).filter((event) => {
@@ -20292,7 +20293,7 @@ function CalendarInternal({
20292
20293
  month: "long",
20293
20294
  day: "numeric"
20294
20295
  }) }) }),
20295
- /* @__PURE__ */ jsx("div", { className: "border rounded-lg overflow-hidden flex-1 flex flex-col", children: /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto", children: Array.from({ length: 24 }, (_2, hour) => {
20296
+ /* @__PURE__ */ jsx("div", { className: "border rounded-lg overflow-hidden flex-1 flex flex-col", children: /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto", children: Array.from({ length: 24 }, (_, hour) => {
20296
20297
  const hourEvents = getEventsForDate(currentDate).filter((event) => {
20297
20298
  if (!event.startTime)
20298
20299
  return false;
@@ -20355,7 +20356,7 @@ function CalendarInternal({
20355
20356
  ] }, hour);
20356
20357
  }) }) })
20357
20358
  ] }),
20358
- view === "agenda" && /* @__PURE__ */ jsx("div", { className: "flex-1 flex flex-col space-y-4", children: /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto space-y-4", children: Array.from({ length: 30 }, (_2, i) => {
20359
+ view === "agenda" && /* @__PURE__ */ jsx("div", { className: "flex-1 flex flex-col space-y-4", children: /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-y-auto space-y-4", children: Array.from({ length: 30 }, (_, i) => {
20359
20360
  const date = new Date(currentDate);
20360
20361
  date.setDate(date.getDate() + i);
20361
20362
  const dayEvents = getEventsForDate(date);
@@ -21237,7 +21238,7 @@ function AddCardModal({
21237
21238
  setTagInput("");
21238
21239
  }
21239
21240
  };
21240
- [...CARD_TEMPLATES.map((t2) => ({ ...t2.template, name: t2.name, icon: t2.icon })), ...templates];
21241
+ [...CARD_TEMPLATES.map((t) => ({ ...t.template, name: t.name, icon: t.icon })), ...templates];
21241
21242
  return /* @__PURE__ */ jsx(MoonUIDialogPro, { open: isOpen, onOpenChange: onClose, children: /* @__PURE__ */ jsxs(MoonUIDialogContentPro, { className: "max-w-2xl", children: [
21242
21243
  /* @__PURE__ */ jsx(MoonUIDialogHeaderPro, { children: /* @__PURE__ */ jsxs(MoonUIDialogTitlePro, { children: [
21243
21244
  "Add Card to ",
@@ -21456,7 +21457,7 @@ function AddCardModal({
21456
21457
  {
21457
21458
  variant: "secondary",
21458
21459
  className: "cursor-pointer",
21459
- onClick: () => setTags(tags.filter((t2) => t2 !== tag)),
21460
+ onClick: () => setTags(tags.filter((t) => t !== tag)),
21460
21461
  children: [
21461
21462
  tag,
21462
21463
  /* @__PURE__ */ jsx("span", { className: "ml-1 hover:text-destructive", children: "\xD7" })
@@ -21714,7 +21715,7 @@ var KanbanCardComponent = ({
21714
21715
  "dark:shadow-[2px_0_10px_rgba(139,92,246,0.3)]"
21715
21716
  ),
21716
21717
  onPointerDown: (e) => dragControls.start(e),
21717
- children: /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-1/2 -translate-x-1/2 flex flex-col justify-center gap-1 opacity-60", children: [...Array(3)].map((_2, i) => /* @__PURE__ */ jsx("div", { className: "w-0.5 h-0.5 rounded-full bg-primary" }, i)) })
21718
+ children: /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-1/2 -translate-x-1/2 flex flex-col justify-center gap-1 opacity-60", children: [...Array(3)].map((_, i) => /* @__PURE__ */ jsx("div", { className: "w-0.5 h-0.5 rounded-full bg-primary" }, i)) })
21718
21719
  }
21719
21720
  ),
21720
21721
  cardShowCoverImage && card.coverImage && /* @__PURE__ */ jsxs("div", { className: "relative h-32 -mx-px -mt-px rounded-t-lg overflow-hidden", children: [
@@ -22049,10 +22050,10 @@ function KanbanInternal({
22049
22050
  if (!container)
22050
22051
  return;
22051
22052
  const rect = container.getBoundingClientRect();
22052
- const x2 = e.clientX;
22053
- if (x2 < rect.left + 100) {
22053
+ const x = e.clientX;
22054
+ if (x < rect.left + 100) {
22054
22055
  startAutoScroll("left");
22055
- } else if (x2 > rect.right - 100) {
22056
+ } else if (x > rect.right - 100) {
22056
22057
  startAutoScroll("right");
22057
22058
  } else {
22058
22059
  stopAutoScroll();
@@ -23502,7 +23503,7 @@ var Mark = class {
23502
23503
  */
23503
23504
  toJSON() {
23504
23505
  let obj = { type: this.type.name };
23505
- for (let _2 in this.attrs) {
23506
+ for (let _ in this.attrs) {
23506
23507
  obj.attrs = this.attrs;
23507
23508
  break;
23508
23509
  }
@@ -24450,7 +24451,7 @@ var Node2 = class {
24450
24451
  */
24451
24452
  toJSON() {
24452
24453
  let obj = { type: this.type.name };
24453
- for (let _2 in this.attrs) {
24454
+ for (let _ in this.attrs) {
24454
24455
  obj.attrs = this.attrs;
24455
24456
  break;
24456
24457
  }
@@ -25179,7 +25180,7 @@ var NodeType = class {
25179
25180
  throw new RangeError("Schema is missing its top node type ('" + topType + "')");
25180
25181
  if (!result.text)
25181
25182
  throw new RangeError("Every schema needs a 'text' type");
25182
- for (let _2 in result.text.attrs)
25183
+ for (let _ in result.text.attrs)
25183
25184
  throw new RangeError("The text node type should not have attributes");
25184
25185
  return result;
25185
25186
  }
@@ -28665,7 +28666,7 @@ var Transaction = class extends Transform {
28665
28666
  and can thus safely be extended.
28666
28667
  */
28667
28668
  get isGeneric() {
28668
- for (let _2 in this.meta)
28669
+ for (let _ in this.meta)
28669
28670
  return false;
28670
28671
  return true;
28671
28672
  }
@@ -29106,17 +29107,17 @@ function deepActiveElement(doc3) {
29106
29107
  elt = elt.shadowRoot.activeElement;
29107
29108
  return elt;
29108
29109
  }
29109
- function caretFromPoint(doc3, x2, y) {
29110
+ function caretFromPoint(doc3, x, y) {
29110
29111
  if (doc3.caretPositionFromPoint) {
29111
29112
  try {
29112
- let pos = doc3.caretPositionFromPoint(x2, y);
29113
+ let pos = doc3.caretPositionFromPoint(x, y);
29113
29114
  if (pos)
29114
29115
  return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
29115
- } catch (_2) {
29116
+ } catch (_) {
29116
29117
  }
29117
29118
  }
29118
29119
  if (doc3.caretRangeFromPoint) {
29119
- let range = doc3.caretRangeFromPoint(x2, y);
29120
+ let range = doc3.caretRangeFromPoint(x, y);
29120
29121
  if (range)
29121
29122
  return { node: range.startContainer, offset: Math.min(nodeSize(range.startContainer), range.startOffset) };
29122
29123
  }
@@ -29215,8 +29216,8 @@ function scrollRectIntoView(view, rect, startDOM) {
29215
29216
  function storeScrollPos(view) {
29216
29217
  let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
29217
29218
  let refDOM, refTop;
29218
- for (let x2 = (rect.left + rect.right) / 2, y = startY + 1; y < Math.min(innerHeight, rect.bottom); y += 5) {
29219
- let dom = view.root.elementFromPoint(x2, y);
29219
+ for (let x = (rect.left + rect.right) / 2, y = startY + 1; y < Math.min(innerHeight, rect.bottom); y += 5) {
29220
+ let dom = view.root.elementFromPoint(x, y);
29220
29221
  if (!dom || dom == view.dom || !view.dom.contains(dom))
29221
29222
  continue;
29222
29223
  let localRect = dom.getBoundingClientRect();
@@ -29512,8 +29513,8 @@ function coordsAtPos(view, pos, side) {
29512
29513
  function flattenV(rect, left) {
29513
29514
  if (rect.width == 0)
29514
29515
  return rect;
29515
- let x2 = left ? rect.left : rect.right;
29516
- return { top: rect.top, bottom: rect.bottom, left: x2, right: x2 };
29516
+ let x = left ? rect.left : rect.right;
29517
+ return { top: rect.top, bottom: rect.bottom, left: x, right: x };
29517
29518
  }
29518
29519
  function flattenH(rect, top) {
29519
29520
  if (rect.height == 0)
@@ -29591,7 +29592,7 @@ function endOfTextblockHorizontal(view, state, dir) {
29591
29592
  sel.collapse(anchorNode, anchorOffset);
29592
29593
  if (oldNode && (oldNode != anchorNode || oldOff != anchorOffset) && sel.extend)
29593
29594
  sel.extend(oldNode, oldOff);
29594
- } catch (_2) {
29595
+ } catch (_) {
29595
29596
  }
29596
29597
  if (oldBidiLevel != null)
29597
29598
  sel.caretBidiLevel = oldBidiLevel;
@@ -29932,7 +29933,7 @@ var ViewDesc = class {
29932
29933
  if (anchor != head)
29933
29934
  domSel.extend(headDOM.node, headDOM.offset);
29934
29935
  domSelExtended = true;
29935
- } catch (_2) {
29936
+ } catch (_) {
29936
29937
  }
29937
29938
  }
29938
29939
  if (!domSelExtended) {
@@ -31134,7 +31135,7 @@ function hasSelection(view) {
31134
31135
  return false;
31135
31136
  try {
31136
31137
  return view.dom.contains(sel.anchorNode.nodeType == 3 ? sel.anchorNode.parentNode : sel.anchorNode) && (view.editable || view.dom.contains(sel.focusNode.nodeType == 3 ? sel.focusNode.parentNode : sel.focusNode));
31137
- } catch (_2) {
31138
+ } catch (_) {
31138
31139
  return false;
31139
31140
  }
31140
31141
  }
@@ -32311,7 +32312,7 @@ handlers.dragend = (view) => {
32311
32312
  view.dragging = null;
32312
32313
  }, 50);
32313
32314
  };
32314
- editHandlers.dragover = editHandlers.dragenter = (_2, e) => e.preventDefault();
32315
+ editHandlers.dragover = editHandlers.dragenter = (_, e) => e.preventDefault();
32315
32316
  editHandlers.drop = (view, _event) => {
32316
32317
  let event = _event;
32317
32318
  let dragging = view.dragging;
@@ -32455,7 +32456,7 @@ var InlineType = class {
32455
32456
  let to = mapping.map(span.to + oldOffset, this.spec.inclusiveEnd ? 1 : -1) - offset4;
32456
32457
  return from2 >= to ? null : new Decoration(from2, to, this);
32457
32458
  }
32458
- valid(_2, span) {
32459
+ valid(_, span) {
32459
32460
  return span.from < span.to;
32460
32461
  }
32461
32462
  eq(other) {
@@ -34138,7 +34139,7 @@ function changedNodeViews(a, b) {
34138
34139
  return true;
34139
34140
  nA++;
34140
34141
  }
34141
- for (let _2 in b)
34142
+ for (let _ in b)
34142
34143
  nB++;
34143
34144
  return nA != nB;
34144
34145
  }
@@ -35748,7 +35749,7 @@ function removeDuplicates(array, by = JSON.stringify) {
35748
35749
  function simplifyChangedRanges(changes) {
35749
35750
  const uniqueChanges = removeDuplicates(changes);
35750
35751
  return uniqueChanges.length === 1 ? uniqueChanges : uniqueChanges.filter((change, index2) => {
35751
- const rest = uniqueChanges.filter((_2, i) => i !== index2);
35752
+ const rest = uniqueChanges.filter((_, i) => i !== index2);
35752
35753
  return !rest.some((otherChange) => {
35753
35754
  return change.oldRange.from >= otherChange.oldRange.from && change.oldRange.to <= otherChange.oldRange.to && change.newRange.from >= otherChange.newRange.from && change.newRange.to <= otherChange.newRange.to;
35754
35755
  });
@@ -38193,7 +38194,7 @@ var Drop = Extension.create({
38193
38194
  new Plugin({
38194
38195
  key: new PluginKey("tiptapDrop"),
38195
38196
  props: {
38196
- handleDrop: (_2, e, slice2, moved) => {
38197
+ handleDrop: (_, e, slice2, moved) => {
38197
38198
  this.editor.emit("drop", {
38198
38199
  editor: this.editor,
38199
38200
  event: e,
@@ -40735,7 +40736,7 @@ function registerGroup(name, groups) {
40735
40736
  }
40736
40737
  return groups[name];
40737
40738
  }
40738
- function addToGroups(t2, flags, groups) {
40739
+ function addToGroups(t, flags, groups) {
40739
40740
  if (flags[numeric]) {
40740
40741
  flags[asciinumeric] = true;
40741
40742
  flags[alphanumeric] = true;
@@ -40758,15 +40759,15 @@ function addToGroups(t2, flags, groups) {
40758
40759
  }
40759
40760
  for (const k in flags) {
40760
40761
  const group = registerGroup(k, groups);
40761
- if (group.indexOf(t2) < 0) {
40762
- group.push(t2);
40762
+ if (group.indexOf(t) < 0) {
40763
+ group.push(t);
40763
40764
  }
40764
40765
  }
40765
40766
  }
40766
- function flagsForToken(t2, groups) {
40767
+ function flagsForToken(t, groups) {
40767
40768
  const result = {};
40768
40769
  for (const c2 in groups) {
40769
- if (groups[c2].indexOf(t2) >= 0) {
40770
+ if (groups[c2].indexOf(t) >= 0) {
40770
40771
  result[c2] = true;
40771
40772
  }
40772
40773
  }
@@ -40904,7 +40905,7 @@ State.prototype = {
40904
40905
  state.j[input] = next;
40905
40906
  return next;
40906
40907
  }
40907
- const t2 = next;
40908
+ const t = next;
40908
40909
  let nextState, templateState = state.go(input);
40909
40910
  if (templateState) {
40910
40911
  nextState = new State();
@@ -40915,16 +40916,16 @@ State.prototype = {
40915
40916
  } else {
40916
40917
  nextState = new State();
40917
40918
  }
40918
- if (t2) {
40919
+ if (t) {
40919
40920
  if (groups) {
40920
40921
  if (nextState.t && typeof nextState.t === "string") {
40921
40922
  const allFlags = Object.assign(flagsForToken(nextState.t, groups), flags);
40922
- addToGroups(t2, allFlags, groups);
40923
+ addToGroups(t, allFlags, groups);
40923
40924
  } else if (flags) {
40924
- addToGroups(t2, flags, groups);
40925
+ addToGroups(t, flags, groups);
40925
40926
  }
40926
40927
  }
40927
- nextState.t = t2;
40928
+ nextState.t = t;
40928
40929
  }
40929
40930
  state.j[input] = nextState;
40930
40931
  return nextState;
@@ -41279,7 +41280,7 @@ function stringToArray(str) {
41279
41280
  }
41280
41281
  return result;
41281
41282
  }
41282
- function fastts(state, input, t2, defaultt, jr) {
41283
+ function fastts(state, input, t, defaultt, jr) {
41283
41284
  let next;
41284
41285
  const len = input.length;
41285
41286
  for (let i = 0; i < len - 1; i++) {
@@ -41293,7 +41294,7 @@ function fastts(state, input, t2, defaultt, jr) {
41293
41294
  }
41294
41295
  state = next;
41295
41296
  }
41296
- next = new State(t2);
41297
+ next = new State(t);
41297
41298
  next.jr = jr.slice();
41298
41299
  state.j[input[len - 1]] = next;
41299
41300
  return next;
@@ -41921,7 +41922,7 @@ function autolink(options) {
41921
41922
  if (!lastWordBeforeSpace) {
41922
41923
  return false;
41923
41924
  }
41924
- const linksBeforeSpace = tokenize(lastWordBeforeSpace).map((t2) => t2.toObject(options.defaultProtocol));
41925
+ const linksBeforeSpace = tokenize(lastWordBeforeSpace).map((t) => t.toObject(options.defaultProtocol));
41925
41926
  if (!isValidLinkStructure(linksBeforeSpace)) {
41926
41927
  return false;
41927
41928
  }
@@ -44181,7 +44182,7 @@ var TrailingNode = Extension.create({
44181
44182
  return [
44182
44183
  new Plugin({
44183
44184
  key: plugin,
44184
- appendTransaction: (_2, __, state) => {
44185
+ appendTransaction: (_, __, state) => {
44185
44186
  const { doc: doc3, tr: tr2, schema } = state;
44186
44187
  const shouldInsertNodeAtEnd = plugin.getState(state);
44187
44188
  const endPosition = doc3.content.size;
@@ -44192,7 +44193,7 @@ var TrailingNode = Extension.create({
44192
44193
  return tr2.insert(endPosition, type.create());
44193
44194
  },
44194
44195
  state: {
44195
- init: (_2, state) => {
44196
+ init: (_, state) => {
44196
44197
  const lastNode = state.tr.doc.lastChild;
44197
44198
  return !nodeEqualsType({ node: lastNode, types: disabledNodes });
44198
44199
  },
@@ -46266,7 +46267,7 @@ function handleTripleClick2(view, pos) {
46266
46267
  view.dispatch(view.state.tr.setSelection(new CellSelection($cell)));
46267
46268
  return true;
46268
46269
  }
46269
- function handlePaste(view, _2, slice2) {
46270
+ function handlePaste(view, _, slice2) {
46270
46271
  if (!isInTable(view.state))
46271
46272
  return false;
46272
46273
  let cells = pastedCells(slice2);
@@ -46481,7 +46482,7 @@ function columnResizing({
46481
46482
  const plugin = new Plugin({
46482
46483
  key: columnResizingPluginKey,
46483
46484
  state: {
46484
- init(_2, state) {
46485
+ init(_, state) {
46485
46486
  var _a2, _b;
46486
46487
  const nodeViews = (_b = (_a2 = plugin.spec) == null ? void 0 : _a2.props) == null ? void 0 : _b.nodeViews;
46487
46488
  const tableName = tableNodeTypes(state.schema).table.name;
@@ -46799,7 +46800,7 @@ function tableEditing({
46799
46800
  handleKeyDown: handleKeyDown2,
46800
46801
  handlePaste
46801
46802
  },
46802
- appendTransaction(_2, oldState, state) {
46803
+ appendTransaction(_, oldState, state) {
46803
46804
  return normalizeSelection(
46804
46805
  state,
46805
46806
  fixTables(state, oldState),
@@ -47834,7 +47835,7 @@ function LowlightPlugin({
47834
47835
  const lowlightPlugin = new Plugin({
47835
47836
  key: new PluginKey("lowlight"),
47836
47837
  state: {
47837
- init: (_2, { doc: doc3 }) => getDecorations({
47838
+ init: (_, { doc: doc3 }) => getDecorations({
47838
47839
  doc: doc3,
47839
47840
  name,
47840
47841
  lowlight: lowlight2,
@@ -51835,7 +51836,7 @@ var NUMERIC = {
51835
51836
  function recurRegex(re, substitution, depth) {
51836
51837
  if (depth === -1)
51837
51838
  return "";
51838
- return re.replace(substitution, (_2) => {
51839
+ return re.replace(substitution, (_) => {
51839
51840
  return recurRegex(re, substitution, depth - 1);
51840
51841
  });
51841
51842
  }
@@ -52549,7 +52550,7 @@ function javascript(hljs) {
52549
52550
  ...BUILT_IN_GLOBALS,
52550
52551
  "super",
52551
52552
  "import"
52552
- ].map((x2) => `${x2}\\s*\\(`)),
52553
+ ].map((x) => `${x}\\s*\\(`)),
52553
52554
  IDENT_RE$1,
52554
52555
  regex.lookahead(/\s*\(/)
52555
52556
  ),
@@ -58768,7 +58769,7 @@ function sql(hljs) {
58768
58769
  illegal: /[{}]|<\//,
58769
58770
  keywords: {
58770
58771
  $pattern: /\b[\w\.]+/,
58771
- keyword: reduceRelevancy(KEYWORDS3, { when: (x2) => x2.length < 3 }),
58772
+ keyword: reduceRelevancy(KEYWORDS3, { when: (x) => x.length < 3 }),
58772
58773
  literal: LITERALS3,
58773
58774
  type: TYPES3,
58774
58775
  built_in: POSSIBLE_WITHOUT_PARENS
@@ -58803,7 +58804,7 @@ function lookahead(re) {
58803
58804
  return concat("(?=", re, ")");
58804
58805
  }
58805
58806
  function concat(...args) {
58806
- const joined = args.map((x2) => source(x2)).join("");
58807
+ const joined = args.map((x) => source(x)).join("");
58807
58808
  return joined;
58808
58809
  }
58809
58810
  function stripOptionsFromArgs(args) {
@@ -58817,7 +58818,7 @@ function stripOptionsFromArgs(args) {
58817
58818
  }
58818
58819
  function either(...args) {
58819
58820
  const opts = stripOptionsFromArgs(args);
58820
- const joined = "(" + (opts.capture ? "" : "?:") + args.map((x2) => source(x2)).join("|") + ")";
58821
+ const joined = "(" + (opts.capture ? "" : "?:") + args.map((x) => source(x)).join("|") + ")";
58821
58822
  return joined;
58822
58823
  }
58823
58824
  var keywordWrapper = (keyword) => concat(
@@ -60157,7 +60158,7 @@ function javascript2(hljs) {
60157
60158
  ...BUILT_IN_GLOBALS2,
60158
60159
  "super",
60159
60160
  "import"
60160
- ].map((x2) => `${x2}\\s*\\(`)),
60161
+ ].map((x) => `${x}\\s*\\(`)),
60161
60162
  IDENT_RE$1,
60162
60163
  regex.lookahead(/\s*\(/)
60163
60164
  ),
@@ -64670,7 +64671,7 @@ function useVirtualList(items, initialConfig = {}) {
64670
64671
  });
64671
64672
  }, []);
64672
64673
  const selectAll3 = useCallback(() => {
64673
- setSelectedItems(new Set(Array.from({ length: items.length }, (_2, i) => i)));
64674
+ setSelectedItems(new Set(Array.from({ length: items.length }, (_, i) => i)));
64674
64675
  }, [items.length]);
64675
64676
  const clearSelection = useCallback(() => {
64676
64677
  setSelectedItems(/* @__PURE__ */ new Set());
@@ -64846,10 +64847,10 @@ var SwipeableCardInternal = React71__default.forwardRef(
64846
64847
  style: style2,
64847
64848
  ...props
64848
64849
  }, ref) => {
64849
- const x2 = useMotionValue(0);
64850
- const rotate = useTransform(x2, [-200, 200], [-30, 30]);
64851
- const likeOpacity = useTransform(x2, [0, threshold], [0, 1]);
64852
- const nopeOpacity = useTransform(x2, [-threshold, 0], [1, 0]);
64850
+ const x = useMotionValue(0);
64851
+ const rotate = useTransform(x, [-200, 200], [-30, 30]);
64852
+ const likeOpacity = useTransform(x, [0, threshold], [0, 1]);
64853
+ const nopeOpacity = useTransform(x, [-threshold, 0], [1, 0]);
64853
64854
  const handleDragStart = () => {
64854
64855
  if (disabled)
64855
64856
  return;
@@ -64862,14 +64863,14 @@ var SwipeableCardInternal = React71__default.forwardRef(
64862
64863
  if (Math.abs(info.offset.x) > threshold) {
64863
64864
  const direction = info.offset.x > 0 ? "right" : "left";
64864
64865
  const exitX = info.offset.x > 0 ? 400 : -400;
64865
- animate(x2, exitX, { duration: 0.3 });
64866
+ animate(x, exitX, { duration: 0.3 });
64866
64867
  if (direction === "right" && onSwipeRight) {
64867
64868
  onSwipeRight();
64868
64869
  } else if (direction === "left" && onSwipeLeft) {
64869
64870
  onSwipeLeft();
64870
64871
  }
64871
64872
  } else {
64872
- animate(x2, 0, { type: "spring", stiffness: 300, damping: 20 });
64873
+ animate(x, 0, { type: "spring", stiffness: 300, damping: 20 });
64873
64874
  }
64874
64875
  };
64875
64876
  return /* @__PURE__ */ jsxs(
@@ -64878,7 +64879,7 @@ var SwipeableCardInternal = React71__default.forwardRef(
64878
64879
  ref,
64879
64880
  drag: disabled ? false : "x",
64880
64881
  dragConstraints: { left: -300, right: 300 },
64881
- style: { x: x2, rotate, ...style2 },
64882
+ style: { x, rotate, ...style2 },
64882
64883
  onDragStart: handleDragStart,
64883
64884
  onDragEnd: handleDragEnd,
64884
64885
  className: cn(
@@ -66245,7 +66246,7 @@ var SparklinePreview = ({ data, dataKey, color }) => {
66245
66246
  }
66246
66247
  ) });
66247
66248
  };
66248
- var ChartSkeleton = ({ height }) => /* @__PURE__ */ jsx("div", { className: "w-full", style: { height }, children: /* @__PURE__ */ jsx("div", { className: "flex items-end justify-center h-full gap-2 px-8", children: [...Array(8)].map((_2, i) => /* @__PURE__ */ jsx(
66249
+ var ChartSkeleton = ({ height }) => /* @__PURE__ */ jsx("div", { className: "w-full", style: { height }, children: /* @__PURE__ */ jsx("div", { className: "flex items-end justify-center h-full gap-2 px-8", children: [...Array(8)].map((_, i) => /* @__PURE__ */ jsx(
66249
66250
  motion.div,
66250
66251
  {
66251
66252
  initial: { height: 0 },
@@ -67248,9 +67249,9 @@ function MetricCard({
67248
67249
  const min2 = Math.min(...data.sparkline);
67249
67250
  const range = max2 - min2 || 1;
67250
67251
  const points = data.sparkline.map((value, index2) => {
67251
- const x2 = index2 / (data.sparkline.length - 1) * 100;
67252
+ const x = index2 / (data.sparkline.length - 1) * 100;
67252
67253
  const y = 100 - (value - min2) / range * 100;
67253
- return `${x2},${y}`;
67254
+ return `${x},${y}`;
67254
67255
  }).join(" ");
67255
67256
  const gradientId = `gradient-${data.id}`;
67256
67257
  return /* @__PURE__ */ jsx(
@@ -68075,7 +68076,7 @@ function ActivityFeed({
68075
68076
  animate: { opacity: 1 },
68076
68077
  exit: { opacity: 0 },
68077
68078
  className: "space-y-3",
68078
- children: [...Array(5)].map((_2, i) => /* @__PURE__ */ jsxs("div", { className: "flex gap-3", children: [
68079
+ children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsxs("div", { className: "flex gap-3", children: [
68079
68080
  /* @__PURE__ */ jsx("div", { className: "h-8 w-8 rounded-full bg-muted animate-pulse" }),
68080
68081
  /* @__PURE__ */ jsxs("div", { className: "flex-1 space-y-2", children: [
68081
68082
  /* @__PURE__ */ jsx("div", { className: "h-4 bg-muted rounded animate-pulse" }),
@@ -69087,13 +69088,13 @@ function MapWidget({
69087
69088
  className: "relative w-full h-full",
69088
69089
  style: { transform: `scale(${zoom})` },
69089
69090
  children: locations.map((location, index2) => {
69090
- const x2 = (location.lng + 180) / 360 * 100;
69091
+ const x = (location.lng + 180) / 360 * 100;
69091
69092
  const y = (90 - location.lat) / 180 * 100;
69092
69093
  return /* @__PURE__ */ jsxs(
69093
69094
  motion.div,
69094
69095
  {
69095
69096
  className: "absolute",
69096
- style: { left: `${x2}%`, top: `${y}%` },
69097
+ style: { left: `${x}%`, top: `${y}%` },
69097
69098
  initial: { scale: 0 },
69098
69099
  animate: { scale: 1 },
69099
69100
  transition: { delay: index2 * 0.05 },
@@ -71182,7 +71183,7 @@ var AdvancedFormsInternal = ({
71182
71183
  [fieldName]: newFiles
71183
71184
  };
71184
71185
  });
71185
- setValue(fieldName, uploadedFiles[fieldName]?.filter((_2, i) => i !== index2) || []);
71186
+ setValue(fieldName, uploadedFiles[fieldName]?.filter((_, i) => i !== index2) || []);
71186
71187
  };
71187
71188
  const renderField = (field, index2) => {
71188
71189
  const error = errors[field.name];
@@ -72800,7 +72801,7 @@ var GitHubStarsInternal = ({
72800
72801
  ] }),
72801
72802
  /* @__PURE__ */ jsx("div", { className: cn(
72802
72803
  layout === "grid" ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4" : "space-y-4"
72803
- ), children: Array.from({ length: maxItems || 6 }).map((_2, index2) => /* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "p-4", children: /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
72804
+ ), children: Array.from({ length: maxItems || 6 }).map((_, index2) => /* @__PURE__ */ jsx(MoonUICardPro, { children: /* @__PURE__ */ jsx(MoonUICardContentPro, { className: "p-4", children: /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
72804
72805
  /* @__PURE__ */ jsx(MoonUISkeletonPro, { className: "h-5 w-3/4" }),
72805
72806
  /* @__PURE__ */ jsx(MoonUISkeletonPro, { className: "h-4 w-full" }),
72806
72807
  /* @__PURE__ */ jsx(MoonUISkeletonPro, { className: "h-4 w-2/3" }),
@@ -75531,7 +75532,7 @@ var MoonUIFileUploadPro = React71__default.forwardRef(
75531
75532
  return `File type ${file.type} is not supported`;
75532
75533
  }
75533
75534
  if (accept !== "*") {
75534
- const acceptTypes = accept.split(",").map((t2) => t2.trim());
75535
+ const acceptTypes = accept.split(",").map((t) => t.trim());
75535
75536
  const isAccepted = acceptTypes.some((acceptType) => {
75536
75537
  if (acceptType.includes("*")) {
75537
75538
  return file.type.startsWith(acceptType.replace("*", ""));
@@ -76833,7 +76834,7 @@ function DataTableFilterDrawer({
76833
76834
  setFilters(newFilters);
76834
76835
  };
76835
76836
  const removeFilter = (index2) => {
76836
- setFilters(filters.filter((_2, i) => i !== index2));
76837
+ setFilters(filters.filter((_, i) => i !== index2));
76837
76838
  };
76838
76839
  const clearAllFilters = () => {
76839
76840
  setFilters([]);
@@ -79141,8 +79142,8 @@ function NavbarInternal({
79141
79142
  const [isSearchOpen, setIsSearchOpen] = useState(false);
79142
79143
  const [isCommandOpen, setIsCommandOpen] = useState(false);
79143
79144
  const [searchValue, setSearchValue] = useState("");
79144
- const [currentTheme, setCurrentTheme] = useState(theme);
79145
- const [isDarkMode, setIsDarkMode] = useState(false);
79145
+ const { theme: currentTheme, setTheme } = useTheme();
79146
+ const isDarkMode = currentTheme === "dark";
79146
79147
  const navRef = useRef(null);
79147
79148
  const shouldPushContent = pushContent ?? (sticky && !overlayMode);
79148
79149
  const { scrolled, hidden, scrollProgress, isMinimal } = useNavbarScroll({
@@ -79177,27 +79178,6 @@ function NavbarInternal({
79177
79178
  window.addEventListener("resize", checkMobile);
79178
79179
  return () => window.removeEventListener("resize", checkMobile);
79179
79180
  }, [mobileBreakpoint]);
79180
- useEffect(() => {
79181
- if (typeof window !== "undefined") {
79182
- const root = window.document.documentElement;
79183
- const isDark = root.classList.contains("dark");
79184
- const currentDomTheme = isDark ? "dark" : "light";
79185
- setCurrentTheme(theme || currentDomTheme);
79186
- setIsDarkMode(isDark);
79187
- const observer = new MutationObserver((mutations) => {
79188
- mutations.forEach((mutation) => {
79189
- if (mutation.attributeName === "class") {
79190
- const isDark2 = root.classList.contains("dark");
79191
- setIsDarkMode(isDark2);
79192
- }
79193
- });
79194
- });
79195
- observer.observe(root, { attributes: true });
79196
- return () => observer.disconnect();
79197
- } else {
79198
- setCurrentTheme(theme);
79199
- }
79200
- }, [theme]);
79201
79181
  useEffect(() => {
79202
79182
  if (!keyboardShortcuts && !enableCommandAI)
79203
79183
  return;
@@ -79406,6 +79386,9 @@ function NavbarInternal({
79406
79386
  }
79407
79387
  };
79408
79388
  const getNavbarHeight = () => {
79389
+ if (scrollBehavior === "minimal" && minimalConfig?.heightOnScroll) {
79390
+ return minimalConfig.heightOnScroll;
79391
+ }
79409
79392
  const heightMap = {
79410
79393
  sm: "h-14",
79411
79394
  // 56px
@@ -79814,18 +79797,8 @@ function NavbarInternal({
79814
79797
  size: getSizeClasses().buttonSize,
79815
79798
  onClick: () => {
79816
79799
  const newTheme = currentTheme === "dark" ? "light" : "dark";
79817
- setCurrentTheme(newTheme);
79800
+ setTheme(newTheme);
79818
79801
  onThemeChange?.(newTheme);
79819
- if (typeof window !== "undefined") {
79820
- const root = window.document.documentElement;
79821
- root.classList.remove(
79822
- "light",
79823
- "dark"
79824
- );
79825
- root.classList.add(
79826
- newTheme
79827
- );
79828
- }
79829
79802
  },
79830
79803
  className: "relative overflow-hidden",
79831
79804
  children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: currentTheme === "dark" ? /* @__PURE__ */ jsx(
@@ -79905,12 +79878,8 @@ function NavbarInternal({
79905
79878
  MoonUIDropdownMenuItemPro,
79906
79879
  {
79907
79880
  onClick: () => {
79908
- setCurrentTheme(
79909
- "light"
79910
- );
79911
- onThemeChange?.(
79912
- "light"
79913
- );
79881
+ setTheme("light");
79882
+ onThemeChange?.("light");
79914
79883
  },
79915
79884
  children: [
79916
79885
  /* @__PURE__ */ jsx(Sun, { className: "mr-2 h-4 w-4" }),
@@ -79922,7 +79891,7 @@ function NavbarInternal({
79922
79891
  MoonUIDropdownMenuItemPro,
79923
79892
  {
79924
79893
  onClick: () => {
79925
- setCurrentTheme("dark");
79894
+ setTheme("dark");
79926
79895
  onThemeChange?.("dark");
79927
79896
  },
79928
79897
  children: [
@@ -79935,12 +79904,8 @@ function NavbarInternal({
79935
79904
  MoonUIDropdownMenuItemPro,
79936
79905
  {
79937
79906
  onClick: () => {
79938
- setCurrentTheme(
79939
- "system"
79940
- );
79941
- onThemeChange?.(
79942
- "system"
79943
- );
79907
+ setTheme("system");
79908
+ onThemeChange?.("system");
79944
79909
  },
79945
79910
  children: [
79946
79911
  /* @__PURE__ */ jsx(Monitor, { className: "mr-2 h-4 w-4" }),
@@ -80392,18 +80357,8 @@ function NavbarInternal({
80392
80357
  size: getSizeClasses().buttonSize,
80393
80358
  onClick: () => {
80394
80359
  const newTheme = currentTheme === "dark" ? "light" : "dark";
80395
- setCurrentTheme(newTheme);
80360
+ setTheme(newTheme);
80396
80361
  onThemeChange?.(newTheme);
80397
- if (typeof window !== "undefined") {
80398
- const root = window.document.documentElement;
80399
- root.classList.remove(
80400
- "light",
80401
- "dark"
80402
- );
80403
- root.classList.add(
80404
- newTheme
80405
- );
80406
- }
80407
80362
  },
80408
80363
  className: "relative overflow-hidden",
80409
80364
  children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: currentTheme === "dark" ? /* @__PURE__ */ jsx(
@@ -80476,7 +80431,7 @@ function NavbarInternal({
80476
80431
  MoonUIDropdownMenuItemPro,
80477
80432
  {
80478
80433
  onClick: () => {
80479
- setCurrentTheme("light");
80434
+ setTheme("light");
80480
80435
  onThemeChange?.("light");
80481
80436
  },
80482
80437
  children: [
@@ -80489,7 +80444,7 @@ function NavbarInternal({
80489
80444
  MoonUIDropdownMenuItemPro,
80490
80445
  {
80491
80446
  onClick: () => {
80492
- setCurrentTheme("dark");
80447
+ setTheme("dark");
80493
80448
  onThemeChange?.("dark");
80494
80449
  },
80495
80450
  children: [
@@ -80502,7 +80457,7 @@ function NavbarInternal({
80502
80457
  MoonUIDropdownMenuItemPro,
80503
80458
  {
80504
80459
  onClick: () => {
80505
- setCurrentTheme("system");
80460
+ setTheme("system");
80506
80461
  onThemeChange?.("system");
80507
80462
  },
80508
80463
  children: [
@@ -81423,7 +81378,7 @@ var FormWizardProgress = ({
81423
81378
  "flex items-center justify-center space-x-2",
81424
81379
  className
81425
81380
  ),
81426
- children: steps.map((_2, index2) => {
81381
+ children: steps.map((_, index2) => {
81427
81382
  const isActive2 = index2 === currentStep;
81428
81383
  const isCompleted = isStepCompleted(index2);
81429
81384
  return /* @__PURE__ */ jsx(
@@ -82747,7 +82702,7 @@ var MoonUIQuizFormProInternal = React71__default.forwardRef(({
82747
82702
  animate: { opacity: 1, y: 0 },
82748
82703
  className: "space-y-4",
82749
82704
  children: [
82750
- /* @__PURE__ */ jsx("div", { className: "flex justify-center gap-2", children: Array.from({ length: maxRating }, (_2, i) => i + 1).map((rating) => /* @__PURE__ */ jsx(
82705
+ /* @__PURE__ */ jsx("div", { className: "flex justify-center gap-2", children: Array.from({ length: maxRating }, (_, i) => i + 1).map((rating) => /* @__PURE__ */ jsx(
82751
82706
  "button",
82752
82707
  {
82753
82708
  onClick: () => saveAnswer(rating),
@@ -84688,9 +84643,9 @@ function ChartWidget2({
84688
84643
  const chartWidth = 100 - padding * 2;
84689
84644
  const chartHeight = 100 - padding * 2;
84690
84645
  const points = values.map((value, index2) => {
84691
- const x2 = padding + index2 / (values.length - 1) * chartWidth;
84646
+ const x = padding + index2 / (values.length - 1) * chartWidth;
84692
84647
  const y = padding + (chartHeight - value / maxValue * chartHeight);
84693
- return { x: x2, y, value, label: labels[index2] };
84648
+ return { x, y, value, label: labels[index2] };
84694
84649
  });
84695
84650
  const pathData = points.map((point, index2) => `${index2 === 0 ? "M" : "L"} ${point.x} ${point.y}`).join(" ");
84696
84651
  return /* @__PURE__ */ jsxs("div", { className: "relative h-full overflow-hidden", children: [
@@ -86745,12 +86700,12 @@ var ConfettiButtonInternal = ({
86745
86700
  }) => {
86746
86701
  const handleClick2 = (e) => {
86747
86702
  const rect = e.currentTarget.getBoundingClientRect();
86748
- const x2 = (rect.left + rect.width / 2) / window.innerWidth;
86703
+ const x = (rect.left + rect.width / 2) / window.innerWidth;
86749
86704
  const y = (rect.top + rect.height / 2) / window.innerHeight;
86750
86705
  confetti2({
86751
86706
  particleCount: 100,
86752
86707
  spread: 70,
86753
- origin: { x: x2, y },
86708
+ origin: { x, y },
86754
86709
  ...confettiOptions
86755
86710
  });
86756
86711
  onClick?.(e);
@@ -86975,11 +86930,11 @@ var CursorTrailInternal = ({
86975
86930
  const [trails, setTrails] = useState([]);
86976
86931
  const [isVisible, setIsVisible] = useState(false);
86977
86932
  const idRef = useRef(0);
86978
- const addTrailPoint = useCallback((x2, y) => {
86933
+ const addTrailPoint = useCallback((x, y) => {
86979
86934
  if (!enabled)
86980
86935
  return;
86981
86936
  const newPoint = {
86982
- x: x2,
86937
+ x,
86983
86938
  y,
86984
86939
  id: idRef.current++,
86985
86940
  timestamp: Date.now()
@@ -87109,7 +87064,7 @@ CursorTrail.displayName = "CursorTrail";
87109
87064
  var GridPatternInternal = ({
87110
87065
  width = 40,
87111
87066
  height = 40,
87112
- x: x2 = -1,
87067
+ x = -1,
87113
87068
  y = -1,
87114
87069
  squares = [],
87115
87070
  strokeDasharray = "0",
@@ -87264,7 +87219,7 @@ var GridPatternInternal = ({
87264
87219
  [hexCenterX - hexRadius, hexCenterY],
87265
87220
  [hexCenterX - hexRadius / 2, hexCenterY - hexRadius * Math.sqrt(3) / 2],
87266
87221
  [hexCenterX + hexRadius / 2, hexCenterY - hexRadius * Math.sqrt(3) / 2]
87267
- ].map(([x3, y2]) => `${x3},${y2}`).join(" L ");
87222
+ ].map(([x2, y2]) => `${x2},${y2}`).join(" L ");
87268
87223
  return /* @__PURE__ */ jsx("path", { d: `M ${hexPath} Z`, ...baseProps });
87269
87224
  case "triangle":
87270
87225
  const triSize = Math.min(width, height) / 2;
@@ -87332,7 +87287,7 @@ var GridPatternInternal = ({
87332
87287
  "pattern",
87333
87288
  {
87334
87289
  id: patternId,
87335
- x: x2,
87290
+ x,
87336
87291
  y,
87337
87292
  width,
87338
87293
  height,
@@ -87356,7 +87311,7 @@ var GridPatternInternal = ({
87356
87311
  squares.map(([squareX, squareY], index2) => /* @__PURE__ */ jsx(
87357
87312
  "rect",
87358
87313
  {
87359
- x: squareX * width + x2,
87314
+ x: squareX * width + x,
87360
87315
  y: squareY * height + y,
87361
87316
  width,
87362
87317
  height,
@@ -87659,7 +87614,7 @@ var MeteorsInternal = ({
87659
87614
  ),
87660
87615
  children: [
87661
87616
  children && /* @__PURE__ */ jsx("div", { className: "relative z-10", children }),
87662
- autoPlay && meteors.map((_2, idx) => {
87617
+ autoPlay && meteors.map((_, idx) => {
87663
87618
  const animationDelay = random(0, 5);
87664
87619
  const animationDuration = random(duration.min, duration.max) * speedMultiplier;
87665
87620
  const meteorOpacity = random(opacity.min, opacity.max);
@@ -87793,9 +87748,9 @@ var AuroraBackgroundInternal = ({
87793
87748
  if (!interactive)
87794
87749
  return;
87795
87750
  const rect = e.currentTarget.getBoundingClientRect();
87796
- const x2 = (e.clientX - rect.left) / rect.width * 100;
87751
+ const x = (e.clientX - rect.left) / rect.width * 100;
87797
87752
  const y = (e.clientY - rect.top) / rect.height * 100;
87798
- setMousePosition({ x: x2, y });
87753
+ setMousePosition({ x, y });
87799
87754
  }, [interactive]);
87800
87755
  useEffect(() => {
87801
87756
  if (!pauseWhenHidden)
@@ -87973,19 +87928,19 @@ var ParticlesInternal = ({
87973
87928
  const outerRadius = particle.size;
87974
87929
  const innerRadius = particle.size / 2;
87975
87930
  let rot = Math.PI / 2 * 3;
87976
- let x2 = 0;
87931
+ let x = 0;
87977
87932
  let y = 0;
87978
87933
  const step = Math.PI / spikes;
87979
87934
  ctx.beginPath();
87980
87935
  ctx.moveTo(0, -outerRadius);
87981
87936
  for (let i = 0; i < spikes; i++) {
87982
- x2 = Math.cos(rot) * outerRadius;
87937
+ x = Math.cos(rot) * outerRadius;
87983
87938
  y = Math.sin(rot) * outerRadius;
87984
- ctx.lineTo(x2, y);
87939
+ ctx.lineTo(x, y);
87985
87940
  rot += step;
87986
- x2 = Math.cos(rot) * innerRadius;
87941
+ x = Math.cos(rot) * innerRadius;
87987
87942
  y = Math.sin(rot) * innerRadius;
87988
- ctx.lineTo(x2, y);
87943
+ ctx.lineTo(x, y);
87989
87944
  rot += step;
87990
87945
  }
87991
87946
  ctx.lineTo(0, -outerRadius);
@@ -88369,9 +88324,9 @@ var StarfieldInternal = ({
88369
88324
  rotationRef.current += spiralSpeed;
88370
88325
  const cos = Math.cos(rotationRef.current);
88371
88326
  const sin = Math.sin(rotationRef.current);
88372
- const x2 = star.x * cos - star.y * sin;
88327
+ const x = star.x * cos - star.y * sin;
88373
88328
  const y = star.x * sin + star.y * cos;
88374
- star.x = x2;
88329
+ star.x = x;
88375
88330
  star.y = y;
88376
88331
  star.z -= speed * (star.velocity || 1);
88377
88332
  break;
@@ -88767,18 +88722,18 @@ var DotPatternInternal = ({
88767
88722
  case "hex":
88768
88723
  for (let row = 0; row < rows; row++) {
88769
88724
  for (let col = 0; col < cols; col++) {
88770
- const x2 = col * spacing + (row % 2 === 1 ? spacing / 2 : 0);
88725
+ const x = col * spacing + (row % 2 === 1 ? spacing / 2 : 0);
88771
88726
  const y = row * spacing * 0.866;
88772
- dots.push({ x: x2, y });
88727
+ dots.push({ x, y });
88773
88728
  }
88774
88729
  }
88775
88730
  break;
88776
88731
  case "diagonal":
88777
88732
  for (let row = 0; row < rows; row++) {
88778
88733
  for (let col = 0; col < cols; col++) {
88779
- const x2 = col * spacing + row * spacing * 0.5;
88734
+ const x = col * spacing + row * spacing * 0.5;
88780
88735
  const y = row * spacing;
88781
- dots.push({ x: x2, y });
88736
+ dots.push({ x, y });
88782
88737
  }
88783
88738
  }
88784
88739
  break;
@@ -88793,9 +88748,9 @@ var DotPatternInternal = ({
88793
88748
  const dotsInRing = Math.max(1, Math.floor(circumference / spacing));
88794
88749
  for (let i = 0; i < dotsInRing; i++) {
88795
88750
  const angle = i / dotsInRing * 2 * Math.PI;
88796
- const x2 = centerX + radius * Math.cos(angle);
88751
+ const x = centerX + radius * Math.cos(angle);
88797
88752
  const y = centerY + radius * Math.sin(angle);
88798
- dots.push({ x: x2, y });
88753
+ dots.push({ x, y });
88799
88754
  }
88800
88755
  }
88801
88756
  break;
@@ -88823,9 +88778,9 @@ var DotPatternInternal = ({
88823
88778
  if (patternRef.current) {
88824
88779
  const dots = patternRef.current.querySelectorAll("circle");
88825
88780
  dots.forEach((dot) => {
88826
- const x2 = parseFloat(dot.getAttribute("cx") || "0");
88781
+ const x = parseFloat(dot.getAttribute("cx") || "0");
88827
88782
  const y = parseFloat(dot.getAttribute("cy") || "0");
88828
- const dx = x2 - mouseRef.current.x;
88783
+ const dx = x - mouseRef.current.x;
88829
88784
  const dy = y - mouseRef.current.y;
88830
88785
  const distance = Math.sqrt(dx * dx + dy * dy);
88831
88786
  if (distance < hoverRadius) {
@@ -89141,12 +89096,12 @@ var GridDistortionInternal = ({
89141
89096
  for (let row = 0; row <= rows; row++) {
89142
89097
  const rowPoints = [];
89143
89098
  for (let col = 0; col <= columns; col++) {
89144
- const x2 = col / columns;
89099
+ const x = col / columns;
89145
89100
  const y = row / rows;
89146
89101
  rowPoints.push({
89147
- x: x2,
89102
+ x,
89148
89103
  y,
89149
- originalX: x2,
89104
+ originalX: x,
89150
89105
  originalY: y,
89151
89106
  offsetX: 0,
89152
89107
  offsetY: 0
@@ -89225,16 +89180,16 @@ var GridDistortionInternal = ({
89225
89180
  }
89226
89181
  }
89227
89182
  }, [distortion, distortionType, amplitude, frequency, rows, columns, interactive, mouseRadius, mouseStrength]);
89228
- const applyPerspective = useCallback((x2, y, width, height) => {
89183
+ const applyPerspective = useCallback((x, y, width, height) => {
89229
89184
  if (!perspective)
89230
- return { x: x2, y };
89185
+ return { x, y };
89231
89186
  const centerX = width / 2;
89232
89187
  const centerY = height / 2;
89233
89188
  const cosX = Math.cos(rotateX * Math.PI / 180);
89234
89189
  const sinX = Math.sin(rotateX * Math.PI / 180);
89235
89190
  const cosY = Math.cos(rotateY * Math.PI / 180);
89236
89191
  const sinY = Math.sin(rotateY * Math.PI / 180);
89237
- let px = x2 - centerX;
89192
+ let px = x - centerX;
89238
89193
  let py = y - centerY;
89239
89194
  const pz = -px * sinY;
89240
89195
  px = px * cosY;
@@ -89272,9 +89227,9 @@ var GridDistortionInternal = ({
89272
89227
  for (let row = 0; row <= rows; row++) {
89273
89228
  for (let col = 0; col <= columns; col++) {
89274
89229
  const point = points[row][col];
89275
- const x2 = point.x * width;
89230
+ const x = point.x * width;
89276
89231
  const y = point.y * height;
89277
- const transformed = applyPerspective(x2, y, width, height);
89232
+ const transformed = applyPerspective(x, y, width, height);
89278
89233
  if (col === 0) {
89279
89234
  ctx.moveTo(transformed.x, transformed.y);
89280
89235
  } else {
@@ -89285,9 +89240,9 @@ var GridDistortionInternal = ({
89285
89240
  for (let col = 0; col <= columns; col++) {
89286
89241
  for (let row = 0; row <= rows; row++) {
89287
89242
  const point = points[row][col];
89288
- const x2 = point.x * width;
89243
+ const x = point.x * width;
89289
89244
  const y = point.y * height;
89290
- const transformed = applyPerspective(x2, y, width, height);
89245
+ const transformed = applyPerspective(x, y, width, height);
89291
89246
  if (row === 0) {
89292
89247
  ctx.moveTo(transformed.x, transformed.y);
89293
89248
  } else {
@@ -89518,24 +89473,24 @@ var WavesInternal = ({
89518
89473
  }
89519
89474
  waveLayersRef.current = waveLayers;
89520
89475
  }, [layers, amplitude, frequency, speed, parallax, parallaxIntensity, colors]);
89521
- const calculateWavePoint = (x2, layer, time, mouseEffect = 0) => {
89476
+ const calculateWavePoint = (x, layer, time, mouseEffect = 0) => {
89522
89477
  let y = 0;
89523
89478
  switch (waveStyle) {
89524
89479
  case "smooth":
89525
- y = Math.sin((x2 * layer.frequency + time * layer.speed + layer.phase) * 0.01) * layer.amplitude;
89480
+ y = Math.sin((x * layer.frequency + time * layer.speed + layer.phase) * 0.01) * layer.amplitude;
89526
89481
  break;
89527
89482
  case "sharp":
89528
- const wave = (x2 * layer.frequency + time * layer.speed + layer.phase) * 0.01;
89483
+ const wave = (x * layer.frequency + time * layer.speed + layer.phase) * 0.01;
89529
89484
  y = (Math.sin(wave) > 0 ? 1 : -1) * layer.amplitude;
89530
89485
  break;
89531
89486
  case "turbulent":
89532
- y = Math.sin((x2 * layer.frequency + time * layer.speed + layer.phase) * 0.01) * layer.amplitude;
89533
- y += Math.sin((x2 * layer.frequency * 2.3 + time * layer.speed * 1.5) * 0.01) * layer.amplitude * 0.3;
89534
- y += Math.sin((x2 * layer.frequency * 3.7 + time * layer.speed * 0.7) * 0.01) * layer.amplitude * 0.2;
89487
+ y = Math.sin((x * layer.frequency + time * layer.speed + layer.phase) * 0.01) * layer.amplitude;
89488
+ y += Math.sin((x * layer.frequency * 2.3 + time * layer.speed * 1.5) * 0.01) * layer.amplitude * 0.3;
89489
+ y += Math.sin((x * layer.frequency * 3.7 + time * layer.speed * 0.7) * 0.01) * layer.amplitude * 0.2;
89535
89490
  break;
89536
89491
  case "organic":
89537
- y = Math.sin((x2 * layer.frequency + time * layer.speed + layer.phase) * 0.01) * layer.amplitude;
89538
- y *= 1 + Math.sin(x2 * 3e-3 + time * 1e-3) * 0.2;
89492
+ y = Math.sin((x * layer.frequency + time * layer.speed + layer.phase) * 0.01) * layer.amplitude;
89493
+ y *= 1 + Math.sin(x * 3e-3 + time * 1e-3) * 0.2;
89539
89494
  break;
89540
89495
  }
89541
89496
  if (interactive && mouseEffect > 0) {
@@ -89598,8 +89553,8 @@ var WavesInternal = ({
89598
89553
  ctx.moveTo(0, 0);
89599
89554
  for (let y = 0; y <= canvas.height; y += 5) {
89600
89555
  const mouseEffect = interactive ? getMouseEffect(canvas.width / 2, y) : 0;
89601
- const x2 = canvas.width / 2 + calculateWavePoint(y, layer, time, mouseEffect);
89602
- ctx.lineTo(x2, y);
89556
+ const x = canvas.width / 2 + calculateWavePoint(y, layer, time, mouseEffect);
89557
+ ctx.lineTo(x, y);
89603
89558
  }
89604
89559
  ctx.lineTo(canvas.width, canvas.height);
89605
89560
  ctx.lineTo(canvas.width, 0);
@@ -89607,20 +89562,20 @@ var WavesInternal = ({
89607
89562
  const diagonal = Math.sqrt(canvas.width * canvas.width + canvas.height * canvas.height);
89608
89563
  ctx.moveTo(0, canvas.height);
89609
89564
  for (let d = 0; d <= diagonal; d += 5) {
89610
- const x2 = d / diagonal * canvas.width;
89565
+ const x = d / diagonal * canvas.width;
89611
89566
  const baseY = d / diagonal * canvas.height;
89612
- const mouseEffect = interactive ? getMouseEffect(x2, baseY) : 0;
89567
+ const mouseEffect = interactive ? getMouseEffect(x, baseY) : 0;
89613
89568
  const waveY = calculateWavePoint(d, layer, time, mouseEffect);
89614
- ctx.lineTo(x2, canvas.height - baseY + waveY);
89569
+ ctx.lineTo(x, canvas.height - baseY + waveY);
89615
89570
  }
89616
89571
  ctx.lineTo(canvas.width, 0);
89617
89572
  ctx.lineTo(canvas.width, canvas.height);
89618
89573
  } else {
89619
89574
  ctx.moveTo(0, canvas.height);
89620
- for (let x2 = 0; x2 <= canvas.width; x2 += 5) {
89621
- const mouseEffect = interactive ? getMouseEffect(x2, canvas.height / 2) : 0;
89622
- const y = canvas.height / 2 + calculateWavePoint(x2, layer, time, mouseEffect);
89623
- ctx.lineTo(x2, y);
89575
+ for (let x = 0; x <= canvas.width; x += 5) {
89576
+ const mouseEffect = interactive ? getMouseEffect(x, canvas.height / 2) : 0;
89577
+ const y = canvas.height / 2 + calculateWavePoint(x, layer, time, mouseEffect);
89578
+ ctx.lineTo(x, y);
89624
89579
  }
89625
89580
  ctx.lineTo(canvas.width, canvas.height);
89626
89581
  }
@@ -89628,8 +89583,8 @@ var WavesInternal = ({
89628
89583
  ctx.fill();
89629
89584
  ctx.restore();
89630
89585
  };
89631
- const getMouseEffect = (x2, y) => {
89632
- const dx = x2 - mouseRef.current.x;
89586
+ const getMouseEffect = (x, y) => {
89587
+ const dx = x - mouseRef.current.x;
89633
89588
  const dy = y - mouseRef.current.y;
89634
89589
  const distance = Math.sqrt(dx * dx + dy * dy);
89635
89590
  if (distance < mouseRadius) {
@@ -90138,40 +90093,6 @@ var GradientFlow = (props) => {
90138
90093
  return /* @__PURE__ */ jsx(GradientFlowInternal, { ...props });
90139
90094
  };
90140
90095
  GradientFlow.displayName = "GradientFlow";
90141
- var M = (e, i, s, u, m, a, l, h2) => {
90142
- let d = document.documentElement, w = ["light", "dark"];
90143
- function p(n) {
90144
- (Array.isArray(e) ? e : [e]).forEach((y) => {
90145
- let k = y === "class", S = k && a ? m.map((f) => a[f] || f) : m;
90146
- k ? (d.classList.remove(...S), d.classList.add(a && a[n] ? a[n] : n)) : d.setAttribute(y, n);
90147
- }), R(n);
90148
- }
90149
- function R(n) {
90150
- h2 && w.includes(n) && (d.style.colorScheme = n);
90151
- }
90152
- function c2() {
90153
- return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
90154
- }
90155
- if (u)
90156
- p(u);
90157
- else
90158
- try {
90159
- let n = localStorage.getItem(i) || s, y = l && n === "system" ? c2() : n;
90160
- p(y);
90161
- } catch (n) {
90162
- }
90163
- };
90164
- var x = React71.createContext(void 0);
90165
- var U = { setTheme: (e) => {
90166
- }, themes: [] };
90167
- var z = () => {
90168
- var e;
90169
- return (e = React71.useContext(x)) != null ? e : U;
90170
- };
90171
- React71.memo(({ forcedTheme: e, storageKey: i, attribute: s, enableSystem: u, enableColorScheme: m, defaultTheme: a, value: l, themes: h2, nonce: d, scriptProps: w }) => {
90172
- let p = JSON.stringify([s, i, a, e, h2, l, u, m]).slice(1, -1);
90173
- return React71.createElement("script", { ...w, suppressHydrationWarning: true, nonce: typeof window == "undefined" ? d : "", dangerouslySetInnerHTML: { __html: `(${M.toString()})(${p})` } });
90174
- });
90175
90096
  var MeshGradientInternal = ({
90176
90097
  children,
90177
90098
  className,
@@ -90196,7 +90117,7 @@ var MeshGradientInternal = ({
90196
90117
  fps = 60,
90197
90118
  pauseWhenHidden = false
90198
90119
  }) => {
90199
- const { theme, resolvedTheme } = z();
90120
+ const { theme, resolvedTheme } = useTheme();
90200
90121
  const currentTheme = theme === "system" ? resolvedTheme : theme;
90201
90122
  const [isVisible, setIsVisible] = useState(true);
90202
90123
  const observerTimeoutRef = useRef(null);
@@ -90348,14 +90269,14 @@ var MeshGradientInternal = ({
90348
90269
  ctx.filter = `blur(${finalBlur}px)`;
90349
90270
  }
90350
90271
  points.forEach((point, i) => {
90351
- const x2 = isFinite(point.x) ? point.x : canvas.width / 2;
90272
+ const x = isFinite(point.x) ? point.x : canvas.width / 2;
90352
90273
  const y = isFinite(point.y) ? point.y : canvas.height / 2;
90353
90274
  const radius = isFinite(point.radius) && point.radius > 0 ? point.radius : 100;
90354
90275
  const gradient = ctx.createRadialGradient(
90355
- x2,
90276
+ x,
90356
90277
  y,
90357
90278
  0,
90358
- x2,
90279
+ x,
90359
90280
  y,
90360
90281
  radius
90361
90282
  );
@@ -91599,12 +91520,12 @@ var FloatingElementsInternal = ({
91599
91520
  ctx.beginPath();
91600
91521
  for (let i = 0; i < 6; i++) {
91601
91522
  const angle = Math.PI * 2 / 6 * i;
91602
- const x2 = Math.cos(angle) * actualSize / 2;
91523
+ const x = Math.cos(angle) * actualSize / 2;
91603
91524
  const y = Math.sin(angle) * actualSize / 2;
91604
91525
  if (i === 0)
91605
- ctx.moveTo(x2, y);
91526
+ ctx.moveTo(x, y);
91606
91527
  else
91607
- ctx.lineTo(x2, y);
91528
+ ctx.lineTo(x, y);
91608
91529
  }
91609
91530
  ctx.closePath();
91610
91531
  ctx.fill();
@@ -91614,12 +91535,12 @@ var FloatingElementsInternal = ({
91614
91535
  for (let i = 0; i < 10; i++) {
91615
91536
  const radius = i % 2 === 0 ? actualSize / 2 : actualSize / 4;
91616
91537
  const angle = Math.PI * 2 / 10 * i - Math.PI / 2;
91617
- const x2 = Math.cos(angle) * radius;
91538
+ const x = Math.cos(angle) * radius;
91618
91539
  const y = Math.sin(angle) * radius;
91619
91540
  if (i === 0)
91620
- ctx.moveTo(x2, y);
91541
+ ctx.moveTo(x, y);
91621
91542
  else
91622
- ctx.lineTo(x2, y);
91543
+ ctx.lineTo(x, y);
91623
91544
  }
91624
91545
  ctx.closePath();
91625
91546
  ctx.fill();
@@ -92508,12 +92429,12 @@ var GeometricPatternsInternal = ({
92508
92429
  case "hexagons":
92509
92430
  for (let i = 0; i < 6; i++) {
92510
92431
  const angle = Math.PI * 2 / 6 * i - Math.PI / 2;
92511
- const x2 = Math.cos(angle) * size4 / 2;
92432
+ const x = Math.cos(angle) * size4 / 2;
92512
92433
  const y = Math.sin(angle) * size4 / 2;
92513
92434
  if (i === 0)
92514
- path.moveTo(x2, y);
92435
+ path.moveTo(x, y);
92515
92436
  else
92516
- path.lineTo(x2, y);
92437
+ path.lineTo(x, y);
92517
92438
  }
92518
92439
  path.closePath();
92519
92440
  break;
@@ -92563,12 +92484,12 @@ var GeometricPatternsInternal = ({
92563
92484
  if (density < 1 && (row % skipFactor !== 0 || col % skipFactor !== 0)) {
92564
92485
  continue;
92565
92486
  }
92566
- let x2 = col * totalSpacing;
92487
+ let x = col * totalSpacing;
92567
92488
  let y = row * totalSpacing;
92568
92489
  if (pattern === "hexagons" && row % 2 === 1) {
92569
- x2 += totalSpacing / 2;
92490
+ x += totalSpacing / 2;
92570
92491
  }
92571
- allPositions.push({ x: x2, y });
92492
+ allPositions.push({ x, y });
92572
92493
  }
92573
92494
  }
92574
92495
  for (let i = allPositions.length - 1; i > 0; i--) {
@@ -93228,7 +93149,7 @@ function CodeSnippets({
93228
93149
  const allSnippets = useMemo(
93229
93150
  () => Array.from(
93230
93151
  { length: multiplier },
93231
- (_2, i) => snippets.map((snippet, j) => ({
93152
+ (_, i) => snippets.map((snippet, j) => ({
93232
93153
  ...snippet,
93233
93154
  id: `${i}-${j}-${snippet.language}`
93234
93155
  }))
@@ -93394,7 +93315,7 @@ var BlurFadeInternal = ({
93394
93315
  return { x: 0, y: 0 };
93395
93316
  }
93396
93317
  };
93397
- const { x: x2, y } = getTransformValues();
93318
+ const { x, y } = getTransformValues();
93398
93319
  return /* @__PURE__ */ jsxs(
93399
93320
  "div",
93400
93321
  {
@@ -93408,7 +93329,7 @@ var BlurFadeInternal = ({
93408
93329
  ["--blur-fade-delay"]: `${delay}ms`,
93409
93330
  ["--blur-fade-duration"]: `${duration}ms`,
93410
93331
  ["--blur-fade-blur"]: blur2,
93411
- ["--blur-fade-x"]: `${x2}px`,
93332
+ ["--blur-fade-x"]: `${x}px`,
93412
93333
  ["--blur-fade-y"]: `${y}px`
93413
93334
  },
93414
93335
  children: [
@@ -93740,17 +93661,17 @@ var RippleInternal = (props) => {
93740
93661
  if (disabled || !containerRef.current)
93741
93662
  return;
93742
93663
  const rect = containerRef.current.getBoundingClientRect();
93743
- let x2, y, force = 1, velocity = 0;
93664
+ let x, y, force = 1, velocity = 0;
93744
93665
  if (customCenter) {
93745
- x2 = customCenter.x;
93666
+ x = customCenter.x;
93746
93667
  y = customCenter.y;
93747
93668
  } else if (center) {
93748
- x2 = center.x;
93669
+ x = center.x;
93749
93670
  y = center.y;
93750
93671
  } else if (event) {
93751
93672
  if ("touches" in event) {
93752
93673
  const touch = event.touches[0];
93753
- x2 = touch.clientX - rect.left;
93674
+ x = touch.clientX - rect.left;
93754
93675
  y = touch.clientY - rect.top;
93755
93676
  if (pressureSensitive && "force" in touch) {
93756
93677
  force = touch.force || 1;
@@ -93759,18 +93680,18 @@ var RippleInternal = (props) => {
93759
93680
  const now = Date.now();
93760
93681
  const timeDiff = now - lastTouchTime.current;
93761
93682
  const distance = Math.sqrt(
93762
- Math.pow(x2 - lastTouchPos.current.x, 2) + Math.pow(y - lastTouchPos.current.y, 2)
93683
+ Math.pow(x - lastTouchPos.current.x, 2) + Math.pow(y - lastTouchPos.current.y, 2)
93763
93684
  );
93764
93685
  velocity = timeDiff > 0 ? distance / timeDiff : 0;
93765
93686
  lastTouchTime.current = now;
93766
- lastTouchPos.current = { x: x2, y };
93687
+ lastTouchPos.current = { x, y };
93767
93688
  }
93768
93689
  } else {
93769
- x2 = event.clientX - rect.left;
93690
+ x = event.clientX - rect.left;
93770
93691
  y = event.clientY - rect.top;
93771
93692
  }
93772
93693
  } else {
93773
- x2 = rect.width / 2;
93694
+ x = rect.width / 2;
93774
93695
  y = rect.height / 2;
93775
93696
  }
93776
93697
  let rippleSize = getRippleSize();
@@ -93783,7 +93704,7 @@ var RippleInternal = (props) => {
93783
93704
  }
93784
93705
  const baseRipple = {
93785
93706
  id: rippleIdRef.current++,
93786
- x: x2 - rippleSize / 2,
93707
+ x: x - rippleSize / 2,
93787
93708
  y: y - rippleSize / 2,
93788
93709
  size: rippleSize,
93789
93710
  startTime: Date.now(),
@@ -93992,7 +93913,7 @@ var SparklesInternal = ({
93992
93913
  return "0%";
93993
93914
  }
93994
93915
  };
93995
- const createSparkle = (x2, y) => {
93916
+ const createSparkle = (x, y) => {
93996
93917
  if (!containerRef.current) {
93997
93918
  return {
93998
93919
  id: sparkleIdRef.current++,
@@ -94009,7 +93930,7 @@ var SparklesInternal = ({
94009
93930
  const rect = containerRef.current.getBoundingClientRect();
94010
93931
  return {
94011
93932
  id: sparkleIdRef.current++,
94012
- x: x2 ?? randomInt(0, rect.width),
93933
+ x: x ?? randomInt(0, rect.width),
94013
93934
  y: y ?? randomInt(0, rect.height),
94014
93935
  size: random(size4.min, size4.max),
94015
93936
  color,
@@ -94019,10 +93940,10 @@ var SparklesInternal = ({
94019
93940
  shape: getSparkleShape(shape)
94020
93941
  };
94021
93942
  };
94022
- const addSparkle = (x2, y) => {
93943
+ const addSparkle = (x, y) => {
94023
93944
  if (!active)
94024
93945
  return;
94025
- const newSparkle = createSparkle(x2, y);
93946
+ const newSparkle = createSparkle(x, y);
94026
93947
  setSparkles((prev) => {
94027
93948
  const updated = [...prev, newSparkle];
94028
93949
  if (updated.length > count3) {
@@ -94062,9 +93983,9 @@ var SparklesInternal = ({
94062
93983
  if (trigger === "click") {
94063
93984
  const rect = containerRef.current?.getBoundingClientRect();
94064
93985
  if (rect) {
94065
- const x2 = event.clientX - rect.left;
93986
+ const x = event.clientX - rect.left;
94066
93987
  const y = event.clientY - rect.top;
94067
- addSparkle(x2, y);
93988
+ addSparkle(x, y);
94068
93989
  }
94069
93990
  }
94070
93991
  };
@@ -94072,9 +93993,9 @@ var SparklesInternal = ({
94072
93993
  if (interactive && trigger === "hover" && isHovered) {
94073
93994
  const rect = containerRef.current?.getBoundingClientRect();
94074
93995
  if (rect && Math.random() > 0.8) {
94075
- const x2 = event.clientX - rect.left;
93996
+ const x = event.clientX - rect.left;
94076
93997
  const y = event.clientY - rect.top;
94077
- addSparkle(x2, y);
93998
+ addSparkle(x, y);
94078
93999
  }
94079
94000
  }
94080
94001
  };
@@ -94243,9 +94164,9 @@ var SpotlightInternal = ({
94243
94164
  if (!rect)
94244
94165
  return;
94245
94166
  const time = Date.now() / autoSpeed;
94246
- const x2 = (Math.sin(time) + 1) * 0.5 * rect.width;
94167
+ const x = (Math.sin(time) + 1) * 0.5 * rect.width;
94247
94168
  const y = (Math.cos(time * 0.7) + 1) * 0.5 * rect.height;
94248
- setAutoPosition({ x: x2, y });
94169
+ setAutoPosition({ x, y });
94249
94170
  autoAnimationRef.current = requestAnimationFrame(animate4);
94250
94171
  };
94251
94172
  autoAnimationRef.current = requestAnimationFrame(animate4);
@@ -94345,7 +94266,7 @@ var SpotlightInternal = ({
94345
94266
  clientX = event.clientX;
94346
94267
  clientY = event.clientY;
94347
94268
  }
94348
- let x2 = clientX - rect.left;
94269
+ let x = clientX - rect.left;
94349
94270
  let y = clientY - rect.top;
94350
94271
  if (magnetic && magneticElements.length > 0) {
94351
94272
  magneticElements.forEach((element) => {
@@ -94353,28 +94274,28 @@ var SpotlightInternal = ({
94353
94274
  const elementCenterX = elementRect.left + elementRect.width / 2 - rect.left;
94354
94275
  const elementCenterY = elementRect.top + elementRect.height / 2 - rect.top;
94355
94276
  const distance = Math.sqrt(
94356
- Math.pow(x2 - elementCenterX, 2) + Math.pow(y - elementCenterY, 2)
94277
+ Math.pow(x - elementCenterX, 2) + Math.pow(y - elementCenterY, 2)
94357
94278
  );
94358
94279
  if (distance < 100) {
94359
94280
  const force = (100 - distance) / 100 * magneticStrength;
94360
- x2 += (elementCenterX - x2) * force;
94281
+ x += (elementCenterX - x) * force;
94361
94282
  y += (elementCenterY - y) * force;
94362
94283
  }
94363
94284
  });
94364
94285
  }
94365
- setMousePosition({ x: x2, y });
94366
- updatePosition({ x: x2, y });
94286
+ setMousePosition({ x, y });
94287
+ updatePosition({ x, y });
94367
94288
  if (spotlights?.some((s) => s.trail) || spotlights?.length === 0 && trailPositions.length > 0) {
94368
94289
  const timestamp = Date.now();
94369
94290
  setTrailPositions((prev) => {
94370
- const newTrail = [{ x: x2, y, timestamp }, ...prev];
94291
+ const newTrail = [{ x, y, timestamp }, ...prev];
94371
94292
  const maxLength = spotlights?.find((s) => s.trail)?.trail?.length || 10;
94372
94293
  return newTrail.slice(0, maxLength);
94373
94294
  });
94374
94295
  }
94375
94296
  if (interactiveZones) {
94376
94297
  interactiveZones.forEach((zone, index2) => {
94377
- const isInZone = x2 >= zone.bounds.x && x2 <= zone.bounds.x + zone.bounds.width && y >= zone.bounds.y && y <= zone.bounds.y + zone.bounds.height;
94298
+ const isInZone = x >= zone.bounds.x && x <= zone.bounds.x + zone.bounds.width && y >= zone.bounds.y && y <= zone.bounds.y + zone.bounds.height;
94378
94299
  if (zone.trigger === "proximity" || zone.trigger === "hover") {
94379
94300
  setInteractiveState((prev) => ({ ...prev, [index2]: isInZone }));
94380
94301
  }
@@ -94423,13 +94344,13 @@ var SpotlightInternal = ({
94423
94344
  return autoPosition;
94424
94345
  return displayPosition;
94425
94346
  };
94426
- const interpolateHeatMap = (data, x2, y) => {
94347
+ const interpolateHeatMap = (data, x, y) => {
94427
94348
  if (!heatMap)
94428
94349
  return 0;
94429
94350
  let totalWeight = 0;
94430
94351
  let weightedIntensity = 0;
94431
94352
  data.forEach((point) => {
94432
- const distance = Math.sqrt(Math.pow(x2 - point.x, 2) + Math.pow(y - point.y, 2));
94353
+ const distance = Math.sqrt(Math.pow(x - point.x, 2) + Math.pow(y - point.y, 2));
94433
94354
  const weight = 1 / (distance + 1);
94434
94355
  totalWeight += weight;
94435
94356
  weightedIntensity += point.intensity * weight;
@@ -94448,20 +94369,20 @@ var SpotlightInternal = ({
94448
94369
  return shape2;
94449
94370
  }
94450
94371
  };
94451
- const createWavePattern = (x2, y) => {
94372
+ const createWavePattern = (x, y) => {
94452
94373
  if (!waveAnimation)
94453
94374
  return 1;
94454
94375
  const { type, frequency, amplitude } = waveAnimation;
94455
94376
  const offset4 = waveOffset * 0.01;
94456
94377
  switch (type) {
94457
94378
  case "ripple":
94458
- const distance = Math.sqrt(Math.pow(x2 - 400, 2) + Math.pow(y - 300, 2));
94379
+ const distance = Math.sqrt(Math.pow(x - 400, 2) + Math.pow(y - 300, 2));
94459
94380
  return 1 + amplitude * Math.sin(distance * frequency + offset4);
94460
94381
  case "sine":
94461
- return 1 + amplitude * Math.sin(x2 * frequency + offset4);
94382
+ return 1 + amplitude * Math.sin(x * frequency + offset4);
94462
94383
  case "spiral":
94463
- const angle = Math.atan2(y - 300, x2 - 400);
94464
- const radius = Math.sqrt(Math.pow(x2 - 400, 2) + Math.pow(y - 300, 2));
94384
+ const angle = Math.atan2(y - 300, x - 400);
94385
+ const radius = Math.sqrt(Math.pow(x - 400, 2) + Math.pow(y - 300, 2));
94465
94386
  return 1 + amplitude * Math.sin(radius * frequency + angle * 3 + offset4);
94466
94387
  default:
94467
94388
  return 1;
@@ -94469,19 +94390,19 @@ var SpotlightInternal = ({
94469
94390
  };
94470
94391
  const createGradient = (spotlightData, position) => {
94471
94392
  const pos = position || getSpotlightPosition();
94472
- const { x: x2, y } = pos;
94393
+ const { x, y } = pos;
94473
94394
  const currentColor = spotlightData?.color || color;
94474
94395
  let currentSize = (spotlightData?.size || size4) * pulseScale;
94475
94396
  const currentBlur = spotlightData?.blur || blur2;
94476
94397
  const currentShape = spotlightData?.shape || shape;
94477
94398
  if (waveAnimation) {
94478
- currentSize *= createWavePattern(x2, y);
94399
+ currentSize *= createWavePattern(x, y);
94479
94400
  }
94480
94401
  if (heatMap) {
94481
- const heatIntensity = interpolateHeatMap(heatMap.data, x2, y);
94402
+ const heatIntensity = interpolateHeatMap(heatMap.data, x, y);
94482
94403
  const colorIndex = Math.floor(heatIntensity * (heatMap.colors.length - 1));
94483
94404
  const heatColor = heatMap.colors[colorIndex] || currentColor;
94484
- return `radial-gradient(circle ${currentSize * heatIntensity + currentBlur}px at ${x2}px ${y}px, ${heatColor} 0%, transparent 70%)`;
94405
+ return `radial-gradient(circle ${currentSize * heatIntensity + currentBlur}px at ${x}px ${y}px, ${heatColor} 0%, transparent 70%)`;
94485
94406
  }
94486
94407
  const gradientSize = currentSize / 2;
94487
94408
  const blurSize = currentBlur;
@@ -94497,19 +94418,19 @@ var SpotlightInternal = ({
94497
94418
  (col, idx) => `${col} ${idx / (gradientColors.length - 1) * 70}%`
94498
94419
  ).join(", ");
94499
94420
  if (currentShape === "ellipse") {
94500
- return `radial-gradient(ellipse ${gradientSize * 1.5}px ${gradientSize}px at ${x2}px ${y}px, ${colorStops}, transparent 70%)`;
94421
+ return `radial-gradient(ellipse ${gradientSize * 1.5}px ${gradientSize}px at ${x}px ${y}px, ${colorStops}, transparent 70%)`;
94501
94422
  }
94502
- return `radial-gradient(circle ${gradientSize + blurSize}px at ${x2}px ${y}px, ${colorStops}, transparent 70%)`;
94423
+ return `radial-gradient(circle ${gradientSize + blurSize}px at ${x}px ${y}px, ${colorStops}, transparent 70%)`;
94503
94424
  }
94504
94425
  if (direction !== void 0) {
94505
- return `conic-gradient(from ${direction + rotation}deg at ${x2}px ${y}px, transparent 0deg, ${currentColor} 30deg, transparent 60deg)`;
94426
+ return `conic-gradient(from ${direction + rotation}deg at ${x}px ${y}px, transparent 0deg, ${currentColor} 30deg, transparent 60deg)`;
94506
94427
  }
94507
94428
  if (currentShape === "ellipse") {
94508
- return `radial-gradient(ellipse ${gradientSize * 1.5}px ${gradientSize}px at ${x2}px ${y}px, ${currentColor} 0%, transparent 50%)`;
94429
+ return `radial-gradient(ellipse ${gradientSize * 1.5}px ${gradientSize}px at ${x}px ${y}px, ${currentColor} 0%, transparent 50%)`;
94509
94430
  } else if (["polygon", "star", "heart"].includes(currentShape)) {
94510
- return `radial-gradient(circle ${gradientSize + blurSize}px at ${x2}px ${y}px, ${currentColor} 0%, transparent 70%)`;
94431
+ return `radial-gradient(circle ${gradientSize + blurSize}px at ${x}px ${y}px, ${currentColor} 0%, transparent 70%)`;
94511
94432
  }
94512
- return `radial-gradient(circle ${gradientSize + blurSize}px at ${x2}px ${y}px, ${currentColor} 0%, transparent 70%)`;
94433
+ return `radial-gradient(circle ${gradientSize + blurSize}px at ${x}px ${y}px, ${currentColor} 0%, transparent 70%)`;
94513
94434
  };
94514
94435
  const createGridOverlay = () => {
94515
94436
  if (!gridOverlay)
@@ -94968,9 +94889,9 @@ var GlowEffectInternal = ({
94968
94889
  if (!mouseTracking || !containerRef.current)
94969
94890
  return;
94970
94891
  const rect = containerRef.current.getBoundingClientRect();
94971
- const x2 = e.clientX - rect.left;
94892
+ const x = e.clientX - rect.left;
94972
94893
  const y = e.clientY - rect.top;
94973
- setMousePosition({ x: x2, y });
94894
+ setMousePosition({ x, y });
94974
94895
  }, [mouseTracking]);
94975
94896
  const getMouseGlow = () => {
94976
94897
  if (!mouseTracking || !shouldApplyEffect())
@@ -95821,30 +95742,30 @@ var NumberTickerInternal = ({
95821
95742
  const elementRef = useRef(null);
95822
95743
  const animationRef = useRef(null);
95823
95744
  const hasAnimatedRef = useRef(false);
95824
- const getEasingFunction = (t2) => {
95745
+ const getEasingFunction = (t) => {
95825
95746
  switch (easing) {
95826
95747
  case "linear":
95827
- return t2;
95748
+ return t;
95828
95749
  case "ease-in":
95829
- return t2 * t2;
95750
+ return t * t;
95830
95751
  case "ease-out":
95831
- return 1 - Math.pow(1 - t2, 2);
95752
+ return 1 - Math.pow(1 - t, 2);
95832
95753
  case "ease-in-out":
95833
- return t2 < 0.5 ? 2 * t2 * t2 : 1 - Math.pow(-2 * t2 + 2, 2) / 2;
95754
+ return t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2;
95834
95755
  case "bounce":
95835
95756
  const n1 = 7.5625;
95836
95757
  const d1 = 2.75;
95837
- if (t2 < 1 / d1) {
95838
- return n1 * t2 * t2;
95839
- } else if (t2 < 2 / d1) {
95840
- return n1 * (t2 -= 1.5 / d1) * t2 + 0.75;
95841
- } else if (t2 < 2.5 / d1) {
95842
- return n1 * (t2 -= 2.25 / d1) * t2 + 0.9375;
95758
+ if (t < 1 / d1) {
95759
+ return n1 * t * t;
95760
+ } else if (t < 2 / d1) {
95761
+ return n1 * (t -= 1.5 / d1) * t + 0.75;
95762
+ } else if (t < 2.5 / d1) {
95763
+ return n1 * (t -= 2.25 / d1) * t + 0.9375;
95843
95764
  } else {
95844
- return n1 * (t2 -= 2.625 / d1) * t2 + 0.984375;
95765
+ return n1 * (t -= 2.625 / d1) * t + 0.984375;
95845
95766
  }
95846
95767
  default:
95847
- return t2;
95768
+ return t;
95848
95769
  }
95849
95770
  };
95850
95771
  const formatNumber2 = (num) => {
@@ -96958,9 +96879,9 @@ var MouseTrailInternal = ({
96958
96879
  }
96959
96880
  particlesRef.current = particles;
96960
96881
  }, [length, size4, colors, lifetime]);
96961
- const drawShape = useCallback((ctx, particle, x2, y) => {
96882
+ const drawShape = useCallback((ctx, particle, x, y) => {
96962
96883
  ctx.save();
96963
- ctx.translate(x2, y);
96884
+ ctx.translate(x, y);
96964
96885
  if (rotate) {
96965
96886
  ctx.rotate(particle.rotation);
96966
96887
  }
@@ -97198,10 +97119,10 @@ var MouseTrailInternal = ({
97198
97119
  if (!canvas)
97199
97120
  return;
97200
97121
  const rect = canvas.getBoundingClientRect();
97201
- const x2 = e.clientX - rect.left;
97122
+ const x = e.clientX - rect.left;
97202
97123
  const y = e.clientY - rect.top;
97203
- if (x2 >= 0 && x2 <= rect.width && y >= 0 && y <= rect.height) {
97204
- mouseRef.current = { x: x2, y, active: true };
97124
+ if (x >= 0 && x <= rect.width && y >= 0 && y <= rect.height) {
97125
+ mouseRef.current = { x, y, active: true };
97205
97126
  if (!isActive2) {
97206
97127
  setIsActive(true);
97207
97128
  }
@@ -97217,10 +97138,10 @@ var MouseTrailInternal = ({
97217
97138
  return;
97218
97139
  const rect = canvas.getBoundingClientRect();
97219
97140
  const touch = e.touches[0];
97220
- const x2 = touch.clientX - rect.left;
97141
+ const x = touch.clientX - rect.left;
97221
97142
  const y = touch.clientY - rect.top;
97222
- if (x2 >= 0 && x2 <= rect.width && y >= 0 && y <= rect.height) {
97223
- mouseRef.current = { x: x2, y, active: true };
97143
+ if (x >= 0 && x <= rect.width && y >= 0 && y <= rect.height) {
97144
+ mouseRef.current = { x, y, active: true };
97224
97145
  if (!isActive2) {
97225
97146
  setIsActive(true);
97226
97147
  }
@@ -97980,33 +97901,33 @@ var ScrollReveal = (props) => {
97980
97901
  return /* @__PURE__ */ jsx(ScrollRevealInternal, { ...props });
97981
97902
  };
97982
97903
  ScrollReveal.displayName = "ScrollReveal";
97983
- var getEasingValue = (t2, easing) => {
97904
+ var getEasingValue = (t, easing) => {
97984
97905
  switch (easing) {
97985
97906
  case "linear":
97986
- return t2;
97907
+ return t;
97987
97908
  case "ease":
97988
- return t2 < 0.5 ? 2 * t2 * t2 : -1 + (4 - 2 * t2) * t2;
97909
+ return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
97989
97910
  case "ease-in":
97990
- return t2 * t2;
97911
+ return t * t;
97991
97912
  case "ease-out":
97992
- return t2 * (2 - t2);
97913
+ return t * (2 - t);
97993
97914
  case "bounce":
97994
- if (t2 < 0.363636) {
97995
- return 7.5625 * t2 * t2;
97996
- } else if (t2 < 0.727272) {
97997
- t2 -= 0.545454;
97998
- return 7.5625 * t2 * t2 + 0.75;
97999
- } else if (t2 < 0.90909) {
98000
- t2 -= 0.818181;
98001
- return 7.5625 * t2 * t2 + 0.9375;
97915
+ if (t < 0.363636) {
97916
+ return 7.5625 * t * t;
97917
+ } else if (t < 0.727272) {
97918
+ t -= 0.545454;
97919
+ return 7.5625 * t * t + 0.75;
97920
+ } else if (t < 0.90909) {
97921
+ t -= 0.818181;
97922
+ return 7.5625 * t * t + 0.9375;
98002
97923
  } else {
98003
- t2 -= 0.954545;
98004
- return 7.5625 * t2 * t2 + 0.984375;
97924
+ t -= 0.954545;
97925
+ return 7.5625 * t * t + 0.984375;
98005
97926
  }
98006
97927
  case "elastic":
98007
- return t2 === 0 || t2 === 1 ? t2 : -Math.pow(2, 10 * (t2 - 1)) * Math.sin((t2 - 1.1) * 5 * Math.PI);
97928
+ return t === 0 || t === 1 ? t : -Math.pow(2, 10 * (t - 1)) * Math.sin((t - 1.1) * 5 * Math.PI);
98008
97929
  default:
98009
- return t2;
97930
+ return t;
98010
97931
  }
98011
97932
  };
98012
97933
  var BounceEffectInternal = ({
@@ -98060,7 +97981,7 @@ var BounceEffectInternal = ({
98060
97981
  const elapsed = time - startTimeRef.current;
98061
97982
  const progress = Math.min(elapsed / duration, 1);
98062
97983
  const easedProgress = getEasingValue(progress, easing);
98063
- let x2 = 0, y = 0;
97984
+ let x = 0, y = 0;
98064
97985
  switch (direction) {
98065
97986
  case "up":
98066
97987
  y = -distance * Math.sin(easedProgress * Math.PI * bounces) * Math.pow(elasticity, currentBounce);
@@ -98071,22 +97992,22 @@ var BounceEffectInternal = ({
98071
97992
  y -= gravity * elapsed * elapsed / 1e4;
98072
97993
  break;
98073
97994
  case "left":
98074
- x2 = -distance * Math.sin(easedProgress * Math.PI * bounces) * Math.pow(elasticity, currentBounce);
97995
+ x = -distance * Math.sin(easedProgress * Math.PI * bounces) * Math.pow(elasticity, currentBounce);
98075
97996
  break;
98076
97997
  case "right":
98077
- x2 = distance * Math.sin(easedProgress * Math.PI * bounces) * Math.pow(elasticity, currentBounce);
97998
+ x = distance * Math.sin(easedProgress * Math.PI * bounces) * Math.pow(elasticity, currentBounce);
98078
97999
  break;
98079
98000
  case "all":
98080
98001
  const angle = elapsed * 0.01;
98081
- x2 = distance * Math.cos(angle) * Math.sin(easedProgress * Math.PI * bounces) * Math.pow(elasticity, currentBounce);
98002
+ x = distance * Math.cos(angle) * Math.sin(easedProgress * Math.PI * bounces) * Math.pow(elasticity, currentBounce);
98082
98003
  y = -Math.abs(distance * Math.sin(easedProgress * Math.PI * bounces) * Math.pow(elasticity, currentBounce));
98083
98004
  y += gravity * elapsed * elapsed / 1e4;
98084
98005
  break;
98085
98006
  }
98086
- x2 *= friction;
98007
+ x *= friction;
98087
98008
  y *= friction;
98088
98009
  if (shake) {
98089
- x2 += (Math.random() - 0.5) * shakeIntensity * (1 - progress);
98010
+ x += (Math.random() - 0.5) * shakeIntensity * (1 - progress);
98090
98011
  y += (Math.random() - 0.5) * shakeIntensity * (1 - progress);
98091
98012
  }
98092
98013
  if (rotate) {
@@ -98104,9 +98025,9 @@ var BounceEffectInternal = ({
98104
98025
  }
98105
98026
  if (jelly) {
98106
98027
  const jellyOffset = Math.sin(elapsed * 0.02) * jellyIntensity * distance;
98107
- x2 += jellyOffset;
98028
+ x += jellyOffset;
98108
98029
  }
98109
- setPosition({ x: x2, y });
98030
+ setPosition({ x, y });
98110
98031
  if (progress >= 1) {
98111
98032
  setCurrentBounce((prev) => prev + 1);
98112
98033
  if (currentBounce >= bounces - 1) {
@@ -98238,7 +98159,7 @@ var BounceEffectInternal = ({
98238
98159
  onMouseEnter: handleMouseEnter,
98239
98160
  onClick: handleClick2,
98240
98161
  children: [
98241
- trail && animationState && Array.from({ length: trailCount }).map((_2, i) => /* @__PURE__ */ jsx(
98162
+ trail && animationState && Array.from({ length: trailCount }).map((_, i) => /* @__PURE__ */ jsx(
98242
98163
  "div",
98243
98164
  {
98244
98165
  className: "absolute inset-0 pointer-events-none",
@@ -98290,37 +98211,37 @@ var BounceEffect = (props) => {
98290
98211
  return /* @__PURE__ */ jsx(BounceEffectInternal, { ...props });
98291
98212
  };
98292
98213
  BounceEffect.displayName = "BounceEffect";
98293
- var getEasingValue2 = (t2, easing) => {
98214
+ var getEasingValue2 = (t, easing) => {
98294
98215
  switch (easing) {
98295
98216
  case "linear":
98296
- return t2;
98217
+ return t;
98297
98218
  case "ease-in":
98298
- return t2 * t2;
98219
+ return t * t;
98299
98220
  case "ease-out":
98300
- return t2 * (2 - t2);
98221
+ return t * (2 - t);
98301
98222
  case "ease-in-out":
98302
- return t2 < 0.5 ? 2 * t2 * t2 : -1 + (4 - 2 * t2) * t2;
98223
+ return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
98303
98224
  case "elastic":
98304
- if (t2 === 0 || t2 === 1)
98305
- return t2;
98225
+ if (t === 0 || t === 1)
98226
+ return t;
98306
98227
  const p = 0.3;
98307
98228
  const s = p / 4;
98308
- return Math.pow(2, -10 * t2) * Math.sin((t2 - s) * (2 * Math.PI) / p) + 1;
98229
+ return Math.pow(2, -10 * t) * Math.sin((t - s) * (2 * Math.PI) / p) + 1;
98309
98230
  case "bounce":
98310
- if (t2 < 0.363636) {
98311
- return 7.5625 * t2 * t2;
98312
- } else if (t2 < 0.727272) {
98313
- t2 -= 0.545454;
98314
- return 7.5625 * t2 * t2 + 0.75;
98315
- } else if (t2 < 0.90909) {
98316
- t2 -= 0.818181;
98317
- return 7.5625 * t2 * t2 + 0.9375;
98231
+ if (t < 0.363636) {
98232
+ return 7.5625 * t * t;
98233
+ } else if (t < 0.727272) {
98234
+ t -= 0.545454;
98235
+ return 7.5625 * t * t + 0.75;
98236
+ } else if (t < 0.90909) {
98237
+ t -= 0.818181;
98238
+ return 7.5625 * t * t + 0.9375;
98318
98239
  } else {
98319
- t2 -= 0.954545;
98320
- return 7.5625 * t2 * t2 + 0.984375;
98240
+ t -= 0.954545;
98241
+ return 7.5625 * t * t + 0.984375;
98321
98242
  }
98322
98243
  default:
98323
- return t2;
98244
+ return t;
98324
98245
  }
98325
98246
  };
98326
98247
  var ElasticAnimationInternal = ({
@@ -98383,11 +98304,11 @@ var ElasticAnimationInternal = ({
98383
98304
  const animationPhaseRef = useRef("main");
98384
98305
  const calculateElasticMotion = useCallback((progress) => {
98385
98306
  const elasticProgress = getEasingValue2(progress, easing);
98386
- let x2 = 0, y = 0, scale = 1, rotate = 0, skewX = 0, skewY = 0;
98307
+ let x = 0, y = 0, scale = 1, rotate = 0, skewX = 0, skewY = 0;
98387
98308
  if (direction === "horizontal" || direction === "both") {
98388
- x2 = distance * elasticProgress * Math.cos(progress * Math.PI * 2 * oscillationCount);
98309
+ x = distance * elasticProgress * Math.cos(progress * Math.PI * 2 * oscillationCount);
98389
98310
  if (oscillate) {
98390
- x2 *= Math.pow(1 - progress, damping);
98311
+ x *= Math.pow(1 - progress, damping);
98391
98312
  }
98392
98313
  }
98393
98314
  if (direction === "vertical" || direction === "both") {
@@ -98398,17 +98319,17 @@ var ElasticAnimationInternal = ({
98398
98319
  }
98399
98320
  if (direction === "diagonal") {
98400
98321
  const angle = progress * Math.PI * 2 * oscillationCount;
98401
- x2 = distance * elasticProgress * Math.cos(angle);
98322
+ x = distance * elasticProgress * Math.cos(angle);
98402
98323
  y = distance * elasticProgress * Math.sin(angle);
98403
98324
  if (oscillate) {
98404
98325
  const dampingFactor = Math.pow(1 - progress, damping);
98405
- x2 *= dampingFactor;
98326
+ x *= dampingFactor;
98406
98327
  y *= dampingFactor;
98407
98328
  }
98408
98329
  }
98409
98330
  if (rubberBand) {
98410
98331
  const rubberProgress = Math.sin(progress * Math.PI);
98411
- x2 *= 1 + rubberProgress * rubberBandIntensity;
98332
+ x *= 1 + rubberProgress * rubberBandIntensity;
98412
98333
  scale = 1 + rubberProgress * 0.1 * rubberBandIntensity;
98413
98334
  }
98414
98335
  if (jello) {
@@ -98418,7 +98339,7 @@ var ElasticAnimationInternal = ({
98418
98339
  }
98419
98340
  if (morph && morphTargets.length > 0) {
98420
98341
  const target = morphTargets[morphIndex % morphTargets.length];
98421
- x2 += target.x * elasticProgress;
98342
+ x += target.x * elasticProgress;
98422
98343
  y += target.y * elasticProgress;
98423
98344
  if (target.scale)
98424
98345
  scale *= target.scale;
@@ -98433,12 +98354,12 @@ var ElasticAnimationInternal = ({
98433
98354
  skewX += (stretchX - 1) * 10;
98434
98355
  }
98435
98356
  if (anticipation && animationPhaseRef.current === "anticipation") {
98436
- x2 -= anticipationDistance * (1 - progress * 4);
98357
+ x -= anticipationDistance * (1 - progress * 4);
98437
98358
  scale *= 0.95 + progress * 0.05;
98438
98359
  }
98439
98360
  if (followThrough && animationPhaseRef.current === "follow-through") {
98440
98361
  const overshoot = Math.sin(progress * Math.PI) * followThroughOvershoot;
98441
- x2 *= overshoot;
98362
+ x *= overshoot;
98442
98363
  y *= overshoot;
98443
98364
  }
98444
98365
  if (arcMotion) {
@@ -98453,10 +98374,10 @@ var ElasticAnimationInternal = ({
98453
98374
  scale *= 1 + (pulseScale - 1) * pulseProgress * (1 - progress);
98454
98375
  }
98455
98376
  if (shake) {
98456
- x2 += (Math.random() - 0.5) * shakeIntensity * (1 - progress);
98377
+ x += (Math.random() - 0.5) * shakeIntensity * (1 - progress);
98457
98378
  y += (Math.random() - 0.5) * shakeIntensity * (1 - progress);
98458
98379
  }
98459
- return { x: x2, y, scale, rotate, skewX, skewY };
98380
+ return { x, y, scale, rotate, skewX, skewY };
98460
98381
  }, [
98461
98382
  easing,
98462
98383
  direction,
@@ -98760,21 +98681,21 @@ var PathAnimationsInternal = ({
98760
98681
  svgRef.current.removeChild(tempPath);
98761
98682
  }
98762
98683
  }, [getPathString]);
98763
- const getEasingValue3 = (t2) => {
98684
+ const getEasingValue3 = (t) => {
98764
98685
  switch (easing) {
98765
98686
  case "linear":
98766
- return t2;
98687
+ return t;
98767
98688
  case "ease-in":
98768
- return t2 * t2;
98689
+ return t * t;
98769
98690
  case "ease-out":
98770
- return t2 * (2 - t2);
98691
+ return t * (2 - t);
98771
98692
  case "ease-in-out":
98772
- return t2 < 0.5 ? 2 * t2 * t2 : -1 + (4 - 2 * t2) * t2;
98693
+ return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
98773
98694
  case "cubic-bezier":
98774
98695
  const [x1, y1, x2, y2] = cubicBezier;
98775
- return t2 * (3 * (1 - t2) * (1 - t2) * y1 + 3 * (1 - t2) * t2 * y2 + t2 * t2);
98696
+ return t * (3 * (1 - t) * (1 - t) * y1 + 3 * (1 - t) * t * y2 + t * t);
98776
98697
  default:
98777
- return t2;
98698
+ return t;
98778
98699
  }
98779
98700
  };
98780
98701
  const calculatePathPosition = useCallback((progress) => {
@@ -99217,21 +99138,21 @@ var SVGAnimationsInternal = ({
99217
99138
  });
99218
99139
  }
99219
99140
  }, [type, drawOptions.fadeIn]);
99220
- const getEasingValue3 = (t2) => {
99141
+ const getEasingValue3 = (t) => {
99221
99142
  switch (easing) {
99222
99143
  case "linear":
99223
- return t2;
99144
+ return t;
99224
99145
  case "ease-in":
99225
- return t2 * t2;
99146
+ return t * t;
99226
99147
  case "ease-out":
99227
- return t2 * (2 - t2);
99148
+ return t * (2 - t);
99228
99149
  case "ease-in-out":
99229
- return t2 < 0.5 ? 2 * t2 * t2 : -1 + (4 - 2 * t2) * t2;
99150
+ return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
99230
99151
  case "cubic-bezier":
99231
99152
  const [x1, y1, x2, y2] = cubicBezier;
99232
- return t2 * (3 * (1 - t2) * (1 - t2) * y1 + 3 * (1 - t2) * t2 * y2 + t2 * t2);
99153
+ return t * (3 * (1 - t) * (1 - t) * y1 + 3 * (1 - t) * t * y2 + t * t);
99233
99154
  default:
99234
- return t2;
99155
+ return t;
99235
99156
  }
99236
99157
  };
99237
99158
  const animateDraw = useCallback((progress) => {
@@ -99979,10 +99900,10 @@ var TouchGesturesInternal = ({
99979
99900
  const getAngle = (p1, p2) => {
99980
99901
  return Math.atan2(p2.currentY - p1.currentY, p2.currentX - p1.currentX) * 180 / Math.PI;
99981
99902
  };
99982
- const applyBoundaries = useCallback((x2, y) => {
99903
+ const applyBoundaries = useCallback((x, y) => {
99983
99904
  if (!panBoundaries)
99984
- return { x: x2, y };
99985
- const bounded = { x: x2, y };
99905
+ return { x, y };
99906
+ const bounded = { x, y };
99986
99907
  if (panBoundaries.left !== void 0) {
99987
99908
  bounded.x = Math.max(panBoundaries.left, bounded.x);
99988
99909
  }
@@ -100063,7 +99984,7 @@ var TouchGesturesInternal = ({
100063
99984
  cancelAnimationFrame(momentumAnimationRef.current);
100064
99985
  }
100065
99986
  if (indicators) {
100066
- setIndicatorPositions(touchArray.map((t2) => ({ x: t2.clientX, y: t2.clientY })));
99987
+ setIndicatorPositions(touchArray.map((t) => ({ x: t.clientX, y: t.clientY })));
100067
99988
  }
100068
99989
  };
100069
99990
  const handleTouchMove = (e) => {
@@ -100121,7 +100042,7 @@ var TouchGesturesInternal = ({
100121
100042
  clearTimeout(longPressTimerRef.current);
100122
100043
  }
100123
100044
  if (indicators) {
100124
- setIndicatorPositions(touchArray.map((t2) => ({ x: t2.clientX, y: t2.clientY })));
100045
+ setIndicatorPositions(touchArray.map((t) => ({ x: t.clientX, y: t.clientY })));
100125
100046
  }
100126
100047
  };
100127
100048
  const handleTouchEnd = (e) => {
@@ -100903,22 +100824,22 @@ var ClickAnimationsInternal = ({
100903
100824
  setLongPressTimeout(null);
100904
100825
  }
100905
100826
  }, [longPressTimeout]);
100906
- const getEasingFunction = useCallback((type, t2) => {
100827
+ const getEasingFunction = useCallback((type, t) => {
100907
100828
  switch (type) {
100908
100829
  case "ease":
100909
- return t2 < 0.5 ? 2 * t2 * t2 : -1 + (4 - 2 * t2) * t2;
100830
+ return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
100910
100831
  case "ease-in":
100911
- return t2 * t2;
100832
+ return t * t;
100912
100833
  case "ease-out":
100913
- return t2 * (2 - t2);
100834
+ return t * (2 - t);
100914
100835
  case "ease-in-out":
100915
- return t2 < 0.5 ? 2 * t2 * t2 : -1 + (4 - 2 * t2) * t2;
100836
+ return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
100916
100837
  case "bounce":
100917
- return 1 - Math.pow(1 - t2, 3) * Math.cos(t2 * Math.PI * 4);
100838
+ return 1 - Math.pow(1 - t, 3) * Math.cos(t * Math.PI * 4);
100918
100839
  case "elastic":
100919
- return t2 === 0 ? 0 : t2 === 1 ? 1 : -Math.pow(2, 10 * (t2 - 1)) * Math.sin((t2 - 1.1) * 5 * Math.PI);
100840
+ return t === 0 ? 0 : t === 1 ? 1 : -Math.pow(2, 10 * (t - 1)) * Math.sin((t - 1.1) * 5 * Math.PI);
100920
100841
  default:
100921
- return t2;
100842
+ return t;
100922
100843
  }
100923
100844
  }, []);
100924
100845
  const getAnimationStyles = useCallback((animation) => {