@moontra/moonui-pro 3.4.25 → 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;
@@ -79817,18 +79797,8 @@ function NavbarInternal({
79817
79797
  size: getSizeClasses().buttonSize,
79818
79798
  onClick: () => {
79819
79799
  const newTheme = currentTheme === "dark" ? "light" : "dark";
79820
- setCurrentTheme(newTheme);
79800
+ setTheme(newTheme);
79821
79801
  onThemeChange?.(newTheme);
79822
- if (typeof window !== "undefined") {
79823
- const root = window.document.documentElement;
79824
- root.classList.remove(
79825
- "light",
79826
- "dark"
79827
- );
79828
- root.classList.add(
79829
- newTheme
79830
- );
79831
- }
79832
79802
  },
79833
79803
  className: "relative overflow-hidden",
79834
79804
  children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: currentTheme === "dark" ? /* @__PURE__ */ jsx(
@@ -79908,12 +79878,8 @@ function NavbarInternal({
79908
79878
  MoonUIDropdownMenuItemPro,
79909
79879
  {
79910
79880
  onClick: () => {
79911
- setCurrentTheme(
79912
- "light"
79913
- );
79914
- onThemeChange?.(
79915
- "light"
79916
- );
79881
+ setTheme("light");
79882
+ onThemeChange?.("light");
79917
79883
  },
79918
79884
  children: [
79919
79885
  /* @__PURE__ */ jsx(Sun, { className: "mr-2 h-4 w-4" }),
@@ -79925,7 +79891,7 @@ function NavbarInternal({
79925
79891
  MoonUIDropdownMenuItemPro,
79926
79892
  {
79927
79893
  onClick: () => {
79928
- setCurrentTheme("dark");
79894
+ setTheme("dark");
79929
79895
  onThemeChange?.("dark");
79930
79896
  },
79931
79897
  children: [
@@ -79938,12 +79904,8 @@ function NavbarInternal({
79938
79904
  MoonUIDropdownMenuItemPro,
79939
79905
  {
79940
79906
  onClick: () => {
79941
- setCurrentTheme(
79942
- "system"
79943
- );
79944
- onThemeChange?.(
79945
- "system"
79946
- );
79907
+ setTheme("system");
79908
+ onThemeChange?.("system");
79947
79909
  },
79948
79910
  children: [
79949
79911
  /* @__PURE__ */ jsx(Monitor, { className: "mr-2 h-4 w-4" }),
@@ -80395,18 +80357,8 @@ function NavbarInternal({
80395
80357
  size: getSizeClasses().buttonSize,
80396
80358
  onClick: () => {
80397
80359
  const newTheme = currentTheme === "dark" ? "light" : "dark";
80398
- setCurrentTheme(newTheme);
80360
+ setTheme(newTheme);
80399
80361
  onThemeChange?.(newTheme);
80400
- if (typeof window !== "undefined") {
80401
- const root = window.document.documentElement;
80402
- root.classList.remove(
80403
- "light",
80404
- "dark"
80405
- );
80406
- root.classList.add(
80407
- newTheme
80408
- );
80409
- }
80410
80362
  },
80411
80363
  className: "relative overflow-hidden",
80412
80364
  children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: currentTheme === "dark" ? /* @__PURE__ */ jsx(
@@ -80479,7 +80431,7 @@ function NavbarInternal({
80479
80431
  MoonUIDropdownMenuItemPro,
80480
80432
  {
80481
80433
  onClick: () => {
80482
- setCurrentTheme("light");
80434
+ setTheme("light");
80483
80435
  onThemeChange?.("light");
80484
80436
  },
80485
80437
  children: [
@@ -80492,7 +80444,7 @@ function NavbarInternal({
80492
80444
  MoonUIDropdownMenuItemPro,
80493
80445
  {
80494
80446
  onClick: () => {
80495
- setCurrentTheme("dark");
80447
+ setTheme("dark");
80496
80448
  onThemeChange?.("dark");
80497
80449
  },
80498
80450
  children: [
@@ -80505,7 +80457,7 @@ function NavbarInternal({
80505
80457
  MoonUIDropdownMenuItemPro,
80506
80458
  {
80507
80459
  onClick: () => {
80508
- setCurrentTheme("system");
80460
+ setTheme("system");
80509
80461
  onThemeChange?.("system");
80510
80462
  },
80511
80463
  children: [
@@ -81426,7 +81378,7 @@ var FormWizardProgress = ({
81426
81378
  "flex items-center justify-center space-x-2",
81427
81379
  className
81428
81380
  ),
81429
- children: steps.map((_2, index2) => {
81381
+ children: steps.map((_, index2) => {
81430
81382
  const isActive2 = index2 === currentStep;
81431
81383
  const isCompleted = isStepCompleted(index2);
81432
81384
  return /* @__PURE__ */ jsx(
@@ -82750,7 +82702,7 @@ var MoonUIQuizFormProInternal = React71__default.forwardRef(({
82750
82702
  animate: { opacity: 1, y: 0 },
82751
82703
  className: "space-y-4",
82752
82704
  children: [
82753
- /* @__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(
82754
82706
  "button",
82755
82707
  {
82756
82708
  onClick: () => saveAnswer(rating),
@@ -84691,9 +84643,9 @@ function ChartWidget2({
84691
84643
  const chartWidth = 100 - padding * 2;
84692
84644
  const chartHeight = 100 - padding * 2;
84693
84645
  const points = values.map((value, index2) => {
84694
- const x2 = padding + index2 / (values.length - 1) * chartWidth;
84646
+ const x = padding + index2 / (values.length - 1) * chartWidth;
84695
84647
  const y = padding + (chartHeight - value / maxValue * chartHeight);
84696
- return { x: x2, y, value, label: labels[index2] };
84648
+ return { x, y, value, label: labels[index2] };
84697
84649
  });
84698
84650
  const pathData = points.map((point, index2) => `${index2 === 0 ? "M" : "L"} ${point.x} ${point.y}`).join(" ");
84699
84651
  return /* @__PURE__ */ jsxs("div", { className: "relative h-full overflow-hidden", children: [
@@ -86748,12 +86700,12 @@ var ConfettiButtonInternal = ({
86748
86700
  }) => {
86749
86701
  const handleClick2 = (e) => {
86750
86702
  const rect = e.currentTarget.getBoundingClientRect();
86751
- const x2 = (rect.left + rect.width / 2) / window.innerWidth;
86703
+ const x = (rect.left + rect.width / 2) / window.innerWidth;
86752
86704
  const y = (rect.top + rect.height / 2) / window.innerHeight;
86753
86705
  confetti2({
86754
86706
  particleCount: 100,
86755
86707
  spread: 70,
86756
- origin: { x: x2, y },
86708
+ origin: { x, y },
86757
86709
  ...confettiOptions
86758
86710
  });
86759
86711
  onClick?.(e);
@@ -86978,11 +86930,11 @@ var CursorTrailInternal = ({
86978
86930
  const [trails, setTrails] = useState([]);
86979
86931
  const [isVisible, setIsVisible] = useState(false);
86980
86932
  const idRef = useRef(0);
86981
- const addTrailPoint = useCallback((x2, y) => {
86933
+ const addTrailPoint = useCallback((x, y) => {
86982
86934
  if (!enabled)
86983
86935
  return;
86984
86936
  const newPoint = {
86985
- x: x2,
86937
+ x,
86986
86938
  y,
86987
86939
  id: idRef.current++,
86988
86940
  timestamp: Date.now()
@@ -87112,7 +87064,7 @@ CursorTrail.displayName = "CursorTrail";
87112
87064
  var GridPatternInternal = ({
87113
87065
  width = 40,
87114
87066
  height = 40,
87115
- x: x2 = -1,
87067
+ x = -1,
87116
87068
  y = -1,
87117
87069
  squares = [],
87118
87070
  strokeDasharray = "0",
@@ -87267,7 +87219,7 @@ var GridPatternInternal = ({
87267
87219
  [hexCenterX - hexRadius, hexCenterY],
87268
87220
  [hexCenterX - hexRadius / 2, hexCenterY - hexRadius * Math.sqrt(3) / 2],
87269
87221
  [hexCenterX + hexRadius / 2, hexCenterY - hexRadius * Math.sqrt(3) / 2]
87270
- ].map(([x3, y2]) => `${x3},${y2}`).join(" L ");
87222
+ ].map(([x2, y2]) => `${x2},${y2}`).join(" L ");
87271
87223
  return /* @__PURE__ */ jsx("path", { d: `M ${hexPath} Z`, ...baseProps });
87272
87224
  case "triangle":
87273
87225
  const triSize = Math.min(width, height) / 2;
@@ -87335,7 +87287,7 @@ var GridPatternInternal = ({
87335
87287
  "pattern",
87336
87288
  {
87337
87289
  id: patternId,
87338
- x: x2,
87290
+ x,
87339
87291
  y,
87340
87292
  width,
87341
87293
  height,
@@ -87359,7 +87311,7 @@ var GridPatternInternal = ({
87359
87311
  squares.map(([squareX, squareY], index2) => /* @__PURE__ */ jsx(
87360
87312
  "rect",
87361
87313
  {
87362
- x: squareX * width + x2,
87314
+ x: squareX * width + x,
87363
87315
  y: squareY * height + y,
87364
87316
  width,
87365
87317
  height,
@@ -87662,7 +87614,7 @@ var MeteorsInternal = ({
87662
87614
  ),
87663
87615
  children: [
87664
87616
  children && /* @__PURE__ */ jsx("div", { className: "relative z-10", children }),
87665
- autoPlay && meteors.map((_2, idx) => {
87617
+ autoPlay && meteors.map((_, idx) => {
87666
87618
  const animationDelay = random(0, 5);
87667
87619
  const animationDuration = random(duration.min, duration.max) * speedMultiplier;
87668
87620
  const meteorOpacity = random(opacity.min, opacity.max);
@@ -87796,9 +87748,9 @@ var AuroraBackgroundInternal = ({
87796
87748
  if (!interactive)
87797
87749
  return;
87798
87750
  const rect = e.currentTarget.getBoundingClientRect();
87799
- const x2 = (e.clientX - rect.left) / rect.width * 100;
87751
+ const x = (e.clientX - rect.left) / rect.width * 100;
87800
87752
  const y = (e.clientY - rect.top) / rect.height * 100;
87801
- setMousePosition({ x: x2, y });
87753
+ setMousePosition({ x, y });
87802
87754
  }, [interactive]);
87803
87755
  useEffect(() => {
87804
87756
  if (!pauseWhenHidden)
@@ -87976,19 +87928,19 @@ var ParticlesInternal = ({
87976
87928
  const outerRadius = particle.size;
87977
87929
  const innerRadius = particle.size / 2;
87978
87930
  let rot = Math.PI / 2 * 3;
87979
- let x2 = 0;
87931
+ let x = 0;
87980
87932
  let y = 0;
87981
87933
  const step = Math.PI / spikes;
87982
87934
  ctx.beginPath();
87983
87935
  ctx.moveTo(0, -outerRadius);
87984
87936
  for (let i = 0; i < spikes; i++) {
87985
- x2 = Math.cos(rot) * outerRadius;
87937
+ x = Math.cos(rot) * outerRadius;
87986
87938
  y = Math.sin(rot) * outerRadius;
87987
- ctx.lineTo(x2, y);
87939
+ ctx.lineTo(x, y);
87988
87940
  rot += step;
87989
- x2 = Math.cos(rot) * innerRadius;
87941
+ x = Math.cos(rot) * innerRadius;
87990
87942
  y = Math.sin(rot) * innerRadius;
87991
- ctx.lineTo(x2, y);
87943
+ ctx.lineTo(x, y);
87992
87944
  rot += step;
87993
87945
  }
87994
87946
  ctx.lineTo(0, -outerRadius);
@@ -88372,9 +88324,9 @@ var StarfieldInternal = ({
88372
88324
  rotationRef.current += spiralSpeed;
88373
88325
  const cos = Math.cos(rotationRef.current);
88374
88326
  const sin = Math.sin(rotationRef.current);
88375
- const x2 = star.x * cos - star.y * sin;
88327
+ const x = star.x * cos - star.y * sin;
88376
88328
  const y = star.x * sin + star.y * cos;
88377
- star.x = x2;
88329
+ star.x = x;
88378
88330
  star.y = y;
88379
88331
  star.z -= speed * (star.velocity || 1);
88380
88332
  break;
@@ -88770,18 +88722,18 @@ var DotPatternInternal = ({
88770
88722
  case "hex":
88771
88723
  for (let row = 0; row < rows; row++) {
88772
88724
  for (let col = 0; col < cols; col++) {
88773
- const x2 = col * spacing + (row % 2 === 1 ? spacing / 2 : 0);
88725
+ const x = col * spacing + (row % 2 === 1 ? spacing / 2 : 0);
88774
88726
  const y = row * spacing * 0.866;
88775
- dots.push({ x: x2, y });
88727
+ dots.push({ x, y });
88776
88728
  }
88777
88729
  }
88778
88730
  break;
88779
88731
  case "diagonal":
88780
88732
  for (let row = 0; row < rows; row++) {
88781
88733
  for (let col = 0; col < cols; col++) {
88782
- const x2 = col * spacing + row * spacing * 0.5;
88734
+ const x = col * spacing + row * spacing * 0.5;
88783
88735
  const y = row * spacing;
88784
- dots.push({ x: x2, y });
88736
+ dots.push({ x, y });
88785
88737
  }
88786
88738
  }
88787
88739
  break;
@@ -88796,9 +88748,9 @@ var DotPatternInternal = ({
88796
88748
  const dotsInRing = Math.max(1, Math.floor(circumference / spacing));
88797
88749
  for (let i = 0; i < dotsInRing; i++) {
88798
88750
  const angle = i / dotsInRing * 2 * Math.PI;
88799
- const x2 = centerX + radius * Math.cos(angle);
88751
+ const x = centerX + radius * Math.cos(angle);
88800
88752
  const y = centerY + radius * Math.sin(angle);
88801
- dots.push({ x: x2, y });
88753
+ dots.push({ x, y });
88802
88754
  }
88803
88755
  }
88804
88756
  break;
@@ -88826,9 +88778,9 @@ var DotPatternInternal = ({
88826
88778
  if (patternRef.current) {
88827
88779
  const dots = patternRef.current.querySelectorAll("circle");
88828
88780
  dots.forEach((dot) => {
88829
- const x2 = parseFloat(dot.getAttribute("cx") || "0");
88781
+ const x = parseFloat(dot.getAttribute("cx") || "0");
88830
88782
  const y = parseFloat(dot.getAttribute("cy") || "0");
88831
- const dx = x2 - mouseRef.current.x;
88783
+ const dx = x - mouseRef.current.x;
88832
88784
  const dy = y - mouseRef.current.y;
88833
88785
  const distance = Math.sqrt(dx * dx + dy * dy);
88834
88786
  if (distance < hoverRadius) {
@@ -89144,12 +89096,12 @@ var GridDistortionInternal = ({
89144
89096
  for (let row = 0; row <= rows; row++) {
89145
89097
  const rowPoints = [];
89146
89098
  for (let col = 0; col <= columns; col++) {
89147
- const x2 = col / columns;
89099
+ const x = col / columns;
89148
89100
  const y = row / rows;
89149
89101
  rowPoints.push({
89150
- x: x2,
89102
+ x,
89151
89103
  y,
89152
- originalX: x2,
89104
+ originalX: x,
89153
89105
  originalY: y,
89154
89106
  offsetX: 0,
89155
89107
  offsetY: 0
@@ -89228,16 +89180,16 @@ var GridDistortionInternal = ({
89228
89180
  }
89229
89181
  }
89230
89182
  }, [distortion, distortionType, amplitude, frequency, rows, columns, interactive, mouseRadius, mouseStrength]);
89231
- const applyPerspective = useCallback((x2, y, width, height) => {
89183
+ const applyPerspective = useCallback((x, y, width, height) => {
89232
89184
  if (!perspective)
89233
- return { x: x2, y };
89185
+ return { x, y };
89234
89186
  const centerX = width / 2;
89235
89187
  const centerY = height / 2;
89236
89188
  const cosX = Math.cos(rotateX * Math.PI / 180);
89237
89189
  const sinX = Math.sin(rotateX * Math.PI / 180);
89238
89190
  const cosY = Math.cos(rotateY * Math.PI / 180);
89239
89191
  const sinY = Math.sin(rotateY * Math.PI / 180);
89240
- let px = x2 - centerX;
89192
+ let px = x - centerX;
89241
89193
  let py = y - centerY;
89242
89194
  const pz = -px * sinY;
89243
89195
  px = px * cosY;
@@ -89275,9 +89227,9 @@ var GridDistortionInternal = ({
89275
89227
  for (let row = 0; row <= rows; row++) {
89276
89228
  for (let col = 0; col <= columns; col++) {
89277
89229
  const point = points[row][col];
89278
- const x2 = point.x * width;
89230
+ const x = point.x * width;
89279
89231
  const y = point.y * height;
89280
- const transformed = applyPerspective(x2, y, width, height);
89232
+ const transformed = applyPerspective(x, y, width, height);
89281
89233
  if (col === 0) {
89282
89234
  ctx.moveTo(transformed.x, transformed.y);
89283
89235
  } else {
@@ -89288,9 +89240,9 @@ var GridDistortionInternal = ({
89288
89240
  for (let col = 0; col <= columns; col++) {
89289
89241
  for (let row = 0; row <= rows; row++) {
89290
89242
  const point = points[row][col];
89291
- const x2 = point.x * width;
89243
+ const x = point.x * width;
89292
89244
  const y = point.y * height;
89293
- const transformed = applyPerspective(x2, y, width, height);
89245
+ const transformed = applyPerspective(x, y, width, height);
89294
89246
  if (row === 0) {
89295
89247
  ctx.moveTo(transformed.x, transformed.y);
89296
89248
  } else {
@@ -89521,24 +89473,24 @@ var WavesInternal = ({
89521
89473
  }
89522
89474
  waveLayersRef.current = waveLayers;
89523
89475
  }, [layers, amplitude, frequency, speed, parallax, parallaxIntensity, colors]);
89524
- const calculateWavePoint = (x2, layer, time, mouseEffect = 0) => {
89476
+ const calculateWavePoint = (x, layer, time, mouseEffect = 0) => {
89525
89477
  let y = 0;
89526
89478
  switch (waveStyle) {
89527
89479
  case "smooth":
89528
- 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;
89529
89481
  break;
89530
89482
  case "sharp":
89531
- 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;
89532
89484
  y = (Math.sin(wave) > 0 ? 1 : -1) * layer.amplitude;
89533
89485
  break;
89534
89486
  case "turbulent":
89535
- y = Math.sin((x2 * layer.frequency + time * layer.speed + layer.phase) * 0.01) * layer.amplitude;
89536
- y += Math.sin((x2 * layer.frequency * 2.3 + time * layer.speed * 1.5) * 0.01) * layer.amplitude * 0.3;
89537
- 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;
89538
89490
  break;
89539
89491
  case "organic":
89540
- y = Math.sin((x2 * layer.frequency + time * layer.speed + layer.phase) * 0.01) * layer.amplitude;
89541
- 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;
89542
89494
  break;
89543
89495
  }
89544
89496
  if (interactive && mouseEffect > 0) {
@@ -89601,8 +89553,8 @@ var WavesInternal = ({
89601
89553
  ctx.moveTo(0, 0);
89602
89554
  for (let y = 0; y <= canvas.height; y += 5) {
89603
89555
  const mouseEffect = interactive ? getMouseEffect(canvas.width / 2, y) : 0;
89604
- const x2 = canvas.width / 2 + calculateWavePoint(y, layer, time, mouseEffect);
89605
- ctx.lineTo(x2, y);
89556
+ const x = canvas.width / 2 + calculateWavePoint(y, layer, time, mouseEffect);
89557
+ ctx.lineTo(x, y);
89606
89558
  }
89607
89559
  ctx.lineTo(canvas.width, canvas.height);
89608
89560
  ctx.lineTo(canvas.width, 0);
@@ -89610,20 +89562,20 @@ var WavesInternal = ({
89610
89562
  const diagonal = Math.sqrt(canvas.width * canvas.width + canvas.height * canvas.height);
89611
89563
  ctx.moveTo(0, canvas.height);
89612
89564
  for (let d = 0; d <= diagonal; d += 5) {
89613
- const x2 = d / diagonal * canvas.width;
89565
+ const x = d / diagonal * canvas.width;
89614
89566
  const baseY = d / diagonal * canvas.height;
89615
- const mouseEffect = interactive ? getMouseEffect(x2, baseY) : 0;
89567
+ const mouseEffect = interactive ? getMouseEffect(x, baseY) : 0;
89616
89568
  const waveY = calculateWavePoint(d, layer, time, mouseEffect);
89617
- ctx.lineTo(x2, canvas.height - baseY + waveY);
89569
+ ctx.lineTo(x, canvas.height - baseY + waveY);
89618
89570
  }
89619
89571
  ctx.lineTo(canvas.width, 0);
89620
89572
  ctx.lineTo(canvas.width, canvas.height);
89621
89573
  } else {
89622
89574
  ctx.moveTo(0, canvas.height);
89623
- for (let x2 = 0; x2 <= canvas.width; x2 += 5) {
89624
- const mouseEffect = interactive ? getMouseEffect(x2, canvas.height / 2) : 0;
89625
- const y = canvas.height / 2 + calculateWavePoint(x2, layer, time, mouseEffect);
89626
- 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);
89627
89579
  }
89628
89580
  ctx.lineTo(canvas.width, canvas.height);
89629
89581
  }
@@ -89631,8 +89583,8 @@ var WavesInternal = ({
89631
89583
  ctx.fill();
89632
89584
  ctx.restore();
89633
89585
  };
89634
- const getMouseEffect = (x2, y) => {
89635
- const dx = x2 - mouseRef.current.x;
89586
+ const getMouseEffect = (x, y) => {
89587
+ const dx = x - mouseRef.current.x;
89636
89588
  const dy = y - mouseRef.current.y;
89637
89589
  const distance = Math.sqrt(dx * dx + dy * dy);
89638
89590
  if (distance < mouseRadius) {
@@ -90141,40 +90093,6 @@ var GradientFlow = (props) => {
90141
90093
  return /* @__PURE__ */ jsx(GradientFlowInternal, { ...props });
90142
90094
  };
90143
90095
  GradientFlow.displayName = "GradientFlow";
90144
- var M = (e, i, s, u, m, a, l, h2) => {
90145
- let d = document.documentElement, w = ["light", "dark"];
90146
- function p(n) {
90147
- (Array.isArray(e) ? e : [e]).forEach((y) => {
90148
- let k = y === "class", S = k && a ? m.map((f) => a[f] || f) : m;
90149
- k ? (d.classList.remove(...S), d.classList.add(a && a[n] ? a[n] : n)) : d.setAttribute(y, n);
90150
- }), R(n);
90151
- }
90152
- function R(n) {
90153
- h2 && w.includes(n) && (d.style.colorScheme = n);
90154
- }
90155
- function c2() {
90156
- return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
90157
- }
90158
- if (u)
90159
- p(u);
90160
- else
90161
- try {
90162
- let n = localStorage.getItem(i) || s, y = l && n === "system" ? c2() : n;
90163
- p(y);
90164
- } catch (n) {
90165
- }
90166
- };
90167
- var x = React71.createContext(void 0);
90168
- var U = { setTheme: (e) => {
90169
- }, themes: [] };
90170
- var z = () => {
90171
- var e;
90172
- return (e = React71.useContext(x)) != null ? e : U;
90173
- };
90174
- React71.memo(({ forcedTheme: e, storageKey: i, attribute: s, enableSystem: u, enableColorScheme: m, defaultTheme: a, value: l, themes: h2, nonce: d, scriptProps: w }) => {
90175
- let p = JSON.stringify([s, i, a, e, h2, l, u, m]).slice(1, -1);
90176
- return React71.createElement("script", { ...w, suppressHydrationWarning: true, nonce: typeof window == "undefined" ? d : "", dangerouslySetInnerHTML: { __html: `(${M.toString()})(${p})` } });
90177
- });
90178
90096
  var MeshGradientInternal = ({
90179
90097
  children,
90180
90098
  className,
@@ -90199,7 +90117,7 @@ var MeshGradientInternal = ({
90199
90117
  fps = 60,
90200
90118
  pauseWhenHidden = false
90201
90119
  }) => {
90202
- const { theme, resolvedTheme } = z();
90120
+ const { theme, resolvedTheme } = useTheme();
90203
90121
  const currentTheme = theme === "system" ? resolvedTheme : theme;
90204
90122
  const [isVisible, setIsVisible] = useState(true);
90205
90123
  const observerTimeoutRef = useRef(null);
@@ -90351,14 +90269,14 @@ var MeshGradientInternal = ({
90351
90269
  ctx.filter = `blur(${finalBlur}px)`;
90352
90270
  }
90353
90271
  points.forEach((point, i) => {
90354
- const x2 = isFinite(point.x) ? point.x : canvas.width / 2;
90272
+ const x = isFinite(point.x) ? point.x : canvas.width / 2;
90355
90273
  const y = isFinite(point.y) ? point.y : canvas.height / 2;
90356
90274
  const radius = isFinite(point.radius) && point.radius > 0 ? point.radius : 100;
90357
90275
  const gradient = ctx.createRadialGradient(
90358
- x2,
90276
+ x,
90359
90277
  y,
90360
90278
  0,
90361
- x2,
90279
+ x,
90362
90280
  y,
90363
90281
  radius
90364
90282
  );
@@ -91602,12 +91520,12 @@ var FloatingElementsInternal = ({
91602
91520
  ctx.beginPath();
91603
91521
  for (let i = 0; i < 6; i++) {
91604
91522
  const angle = Math.PI * 2 / 6 * i;
91605
- const x2 = Math.cos(angle) * actualSize / 2;
91523
+ const x = Math.cos(angle) * actualSize / 2;
91606
91524
  const y = Math.sin(angle) * actualSize / 2;
91607
91525
  if (i === 0)
91608
- ctx.moveTo(x2, y);
91526
+ ctx.moveTo(x, y);
91609
91527
  else
91610
- ctx.lineTo(x2, y);
91528
+ ctx.lineTo(x, y);
91611
91529
  }
91612
91530
  ctx.closePath();
91613
91531
  ctx.fill();
@@ -91617,12 +91535,12 @@ var FloatingElementsInternal = ({
91617
91535
  for (let i = 0; i < 10; i++) {
91618
91536
  const radius = i % 2 === 0 ? actualSize / 2 : actualSize / 4;
91619
91537
  const angle = Math.PI * 2 / 10 * i - Math.PI / 2;
91620
- const x2 = Math.cos(angle) * radius;
91538
+ const x = Math.cos(angle) * radius;
91621
91539
  const y = Math.sin(angle) * radius;
91622
91540
  if (i === 0)
91623
- ctx.moveTo(x2, y);
91541
+ ctx.moveTo(x, y);
91624
91542
  else
91625
- ctx.lineTo(x2, y);
91543
+ ctx.lineTo(x, y);
91626
91544
  }
91627
91545
  ctx.closePath();
91628
91546
  ctx.fill();
@@ -92511,12 +92429,12 @@ var GeometricPatternsInternal = ({
92511
92429
  case "hexagons":
92512
92430
  for (let i = 0; i < 6; i++) {
92513
92431
  const angle = Math.PI * 2 / 6 * i - Math.PI / 2;
92514
- const x2 = Math.cos(angle) * size4 / 2;
92432
+ const x = Math.cos(angle) * size4 / 2;
92515
92433
  const y = Math.sin(angle) * size4 / 2;
92516
92434
  if (i === 0)
92517
- path.moveTo(x2, y);
92435
+ path.moveTo(x, y);
92518
92436
  else
92519
- path.lineTo(x2, y);
92437
+ path.lineTo(x, y);
92520
92438
  }
92521
92439
  path.closePath();
92522
92440
  break;
@@ -92566,12 +92484,12 @@ var GeometricPatternsInternal = ({
92566
92484
  if (density < 1 && (row % skipFactor !== 0 || col % skipFactor !== 0)) {
92567
92485
  continue;
92568
92486
  }
92569
- let x2 = col * totalSpacing;
92487
+ let x = col * totalSpacing;
92570
92488
  let y = row * totalSpacing;
92571
92489
  if (pattern === "hexagons" && row % 2 === 1) {
92572
- x2 += totalSpacing / 2;
92490
+ x += totalSpacing / 2;
92573
92491
  }
92574
- allPositions.push({ x: x2, y });
92492
+ allPositions.push({ x, y });
92575
92493
  }
92576
92494
  }
92577
92495
  for (let i = allPositions.length - 1; i > 0; i--) {
@@ -93231,7 +93149,7 @@ function CodeSnippets({
93231
93149
  const allSnippets = useMemo(
93232
93150
  () => Array.from(
93233
93151
  { length: multiplier },
93234
- (_2, i) => snippets.map((snippet, j) => ({
93152
+ (_, i) => snippets.map((snippet, j) => ({
93235
93153
  ...snippet,
93236
93154
  id: `${i}-${j}-${snippet.language}`
93237
93155
  }))
@@ -93397,7 +93315,7 @@ var BlurFadeInternal = ({
93397
93315
  return { x: 0, y: 0 };
93398
93316
  }
93399
93317
  };
93400
- const { x: x2, y } = getTransformValues();
93318
+ const { x, y } = getTransformValues();
93401
93319
  return /* @__PURE__ */ jsxs(
93402
93320
  "div",
93403
93321
  {
@@ -93411,7 +93329,7 @@ var BlurFadeInternal = ({
93411
93329
  ["--blur-fade-delay"]: `${delay}ms`,
93412
93330
  ["--blur-fade-duration"]: `${duration}ms`,
93413
93331
  ["--blur-fade-blur"]: blur2,
93414
- ["--blur-fade-x"]: `${x2}px`,
93332
+ ["--blur-fade-x"]: `${x}px`,
93415
93333
  ["--blur-fade-y"]: `${y}px`
93416
93334
  },
93417
93335
  children: [
@@ -93743,17 +93661,17 @@ var RippleInternal = (props) => {
93743
93661
  if (disabled || !containerRef.current)
93744
93662
  return;
93745
93663
  const rect = containerRef.current.getBoundingClientRect();
93746
- let x2, y, force = 1, velocity = 0;
93664
+ let x, y, force = 1, velocity = 0;
93747
93665
  if (customCenter) {
93748
- x2 = customCenter.x;
93666
+ x = customCenter.x;
93749
93667
  y = customCenter.y;
93750
93668
  } else if (center) {
93751
- x2 = center.x;
93669
+ x = center.x;
93752
93670
  y = center.y;
93753
93671
  } else if (event) {
93754
93672
  if ("touches" in event) {
93755
93673
  const touch = event.touches[0];
93756
- x2 = touch.clientX - rect.left;
93674
+ x = touch.clientX - rect.left;
93757
93675
  y = touch.clientY - rect.top;
93758
93676
  if (pressureSensitive && "force" in touch) {
93759
93677
  force = touch.force || 1;
@@ -93762,18 +93680,18 @@ var RippleInternal = (props) => {
93762
93680
  const now = Date.now();
93763
93681
  const timeDiff = now - lastTouchTime.current;
93764
93682
  const distance = Math.sqrt(
93765
- 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)
93766
93684
  );
93767
93685
  velocity = timeDiff > 0 ? distance / timeDiff : 0;
93768
93686
  lastTouchTime.current = now;
93769
- lastTouchPos.current = { x: x2, y };
93687
+ lastTouchPos.current = { x, y };
93770
93688
  }
93771
93689
  } else {
93772
- x2 = event.clientX - rect.left;
93690
+ x = event.clientX - rect.left;
93773
93691
  y = event.clientY - rect.top;
93774
93692
  }
93775
93693
  } else {
93776
- x2 = rect.width / 2;
93694
+ x = rect.width / 2;
93777
93695
  y = rect.height / 2;
93778
93696
  }
93779
93697
  let rippleSize = getRippleSize();
@@ -93786,7 +93704,7 @@ var RippleInternal = (props) => {
93786
93704
  }
93787
93705
  const baseRipple = {
93788
93706
  id: rippleIdRef.current++,
93789
- x: x2 - rippleSize / 2,
93707
+ x: x - rippleSize / 2,
93790
93708
  y: y - rippleSize / 2,
93791
93709
  size: rippleSize,
93792
93710
  startTime: Date.now(),
@@ -93995,7 +93913,7 @@ var SparklesInternal = ({
93995
93913
  return "0%";
93996
93914
  }
93997
93915
  };
93998
- const createSparkle = (x2, y) => {
93916
+ const createSparkle = (x, y) => {
93999
93917
  if (!containerRef.current) {
94000
93918
  return {
94001
93919
  id: sparkleIdRef.current++,
@@ -94012,7 +93930,7 @@ var SparklesInternal = ({
94012
93930
  const rect = containerRef.current.getBoundingClientRect();
94013
93931
  return {
94014
93932
  id: sparkleIdRef.current++,
94015
- x: x2 ?? randomInt(0, rect.width),
93933
+ x: x ?? randomInt(0, rect.width),
94016
93934
  y: y ?? randomInt(0, rect.height),
94017
93935
  size: random(size4.min, size4.max),
94018
93936
  color,
@@ -94022,10 +93940,10 @@ var SparklesInternal = ({
94022
93940
  shape: getSparkleShape(shape)
94023
93941
  };
94024
93942
  };
94025
- const addSparkle = (x2, y) => {
93943
+ const addSparkle = (x, y) => {
94026
93944
  if (!active)
94027
93945
  return;
94028
- const newSparkle = createSparkle(x2, y);
93946
+ const newSparkle = createSparkle(x, y);
94029
93947
  setSparkles((prev) => {
94030
93948
  const updated = [...prev, newSparkle];
94031
93949
  if (updated.length > count3) {
@@ -94065,9 +93983,9 @@ var SparklesInternal = ({
94065
93983
  if (trigger === "click") {
94066
93984
  const rect = containerRef.current?.getBoundingClientRect();
94067
93985
  if (rect) {
94068
- const x2 = event.clientX - rect.left;
93986
+ const x = event.clientX - rect.left;
94069
93987
  const y = event.clientY - rect.top;
94070
- addSparkle(x2, y);
93988
+ addSparkle(x, y);
94071
93989
  }
94072
93990
  }
94073
93991
  };
@@ -94075,9 +93993,9 @@ var SparklesInternal = ({
94075
93993
  if (interactive && trigger === "hover" && isHovered) {
94076
93994
  const rect = containerRef.current?.getBoundingClientRect();
94077
93995
  if (rect && Math.random() > 0.8) {
94078
- const x2 = event.clientX - rect.left;
93996
+ const x = event.clientX - rect.left;
94079
93997
  const y = event.clientY - rect.top;
94080
- addSparkle(x2, y);
93998
+ addSparkle(x, y);
94081
93999
  }
94082
94000
  }
94083
94001
  };
@@ -94246,9 +94164,9 @@ var SpotlightInternal = ({
94246
94164
  if (!rect)
94247
94165
  return;
94248
94166
  const time = Date.now() / autoSpeed;
94249
- const x2 = (Math.sin(time) + 1) * 0.5 * rect.width;
94167
+ const x = (Math.sin(time) + 1) * 0.5 * rect.width;
94250
94168
  const y = (Math.cos(time * 0.7) + 1) * 0.5 * rect.height;
94251
- setAutoPosition({ x: x2, y });
94169
+ setAutoPosition({ x, y });
94252
94170
  autoAnimationRef.current = requestAnimationFrame(animate4);
94253
94171
  };
94254
94172
  autoAnimationRef.current = requestAnimationFrame(animate4);
@@ -94348,7 +94266,7 @@ var SpotlightInternal = ({
94348
94266
  clientX = event.clientX;
94349
94267
  clientY = event.clientY;
94350
94268
  }
94351
- let x2 = clientX - rect.left;
94269
+ let x = clientX - rect.left;
94352
94270
  let y = clientY - rect.top;
94353
94271
  if (magnetic && magneticElements.length > 0) {
94354
94272
  magneticElements.forEach((element) => {
@@ -94356,28 +94274,28 @@ var SpotlightInternal = ({
94356
94274
  const elementCenterX = elementRect.left + elementRect.width / 2 - rect.left;
94357
94275
  const elementCenterY = elementRect.top + elementRect.height / 2 - rect.top;
94358
94276
  const distance = Math.sqrt(
94359
- Math.pow(x2 - elementCenterX, 2) + Math.pow(y - elementCenterY, 2)
94277
+ Math.pow(x - elementCenterX, 2) + Math.pow(y - elementCenterY, 2)
94360
94278
  );
94361
94279
  if (distance < 100) {
94362
94280
  const force = (100 - distance) / 100 * magneticStrength;
94363
- x2 += (elementCenterX - x2) * force;
94281
+ x += (elementCenterX - x) * force;
94364
94282
  y += (elementCenterY - y) * force;
94365
94283
  }
94366
94284
  });
94367
94285
  }
94368
- setMousePosition({ x: x2, y });
94369
- updatePosition({ x: x2, y });
94286
+ setMousePosition({ x, y });
94287
+ updatePosition({ x, y });
94370
94288
  if (spotlights?.some((s) => s.trail) || spotlights?.length === 0 && trailPositions.length > 0) {
94371
94289
  const timestamp = Date.now();
94372
94290
  setTrailPositions((prev) => {
94373
- const newTrail = [{ x: x2, y, timestamp }, ...prev];
94291
+ const newTrail = [{ x, y, timestamp }, ...prev];
94374
94292
  const maxLength = spotlights?.find((s) => s.trail)?.trail?.length || 10;
94375
94293
  return newTrail.slice(0, maxLength);
94376
94294
  });
94377
94295
  }
94378
94296
  if (interactiveZones) {
94379
94297
  interactiveZones.forEach((zone, index2) => {
94380
- 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;
94381
94299
  if (zone.trigger === "proximity" || zone.trigger === "hover") {
94382
94300
  setInteractiveState((prev) => ({ ...prev, [index2]: isInZone }));
94383
94301
  }
@@ -94426,13 +94344,13 @@ var SpotlightInternal = ({
94426
94344
  return autoPosition;
94427
94345
  return displayPosition;
94428
94346
  };
94429
- const interpolateHeatMap = (data, x2, y) => {
94347
+ const interpolateHeatMap = (data, x, y) => {
94430
94348
  if (!heatMap)
94431
94349
  return 0;
94432
94350
  let totalWeight = 0;
94433
94351
  let weightedIntensity = 0;
94434
94352
  data.forEach((point) => {
94435
- 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));
94436
94354
  const weight = 1 / (distance + 1);
94437
94355
  totalWeight += weight;
94438
94356
  weightedIntensity += point.intensity * weight;
@@ -94451,20 +94369,20 @@ var SpotlightInternal = ({
94451
94369
  return shape2;
94452
94370
  }
94453
94371
  };
94454
- const createWavePattern = (x2, y) => {
94372
+ const createWavePattern = (x, y) => {
94455
94373
  if (!waveAnimation)
94456
94374
  return 1;
94457
94375
  const { type, frequency, amplitude } = waveAnimation;
94458
94376
  const offset4 = waveOffset * 0.01;
94459
94377
  switch (type) {
94460
94378
  case "ripple":
94461
- 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));
94462
94380
  return 1 + amplitude * Math.sin(distance * frequency + offset4);
94463
94381
  case "sine":
94464
- return 1 + amplitude * Math.sin(x2 * frequency + offset4);
94382
+ return 1 + amplitude * Math.sin(x * frequency + offset4);
94465
94383
  case "spiral":
94466
- const angle = Math.atan2(y - 300, x2 - 400);
94467
- 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));
94468
94386
  return 1 + amplitude * Math.sin(radius * frequency + angle * 3 + offset4);
94469
94387
  default:
94470
94388
  return 1;
@@ -94472,19 +94390,19 @@ var SpotlightInternal = ({
94472
94390
  };
94473
94391
  const createGradient = (spotlightData, position) => {
94474
94392
  const pos = position || getSpotlightPosition();
94475
- const { x: x2, y } = pos;
94393
+ const { x, y } = pos;
94476
94394
  const currentColor = spotlightData?.color || color;
94477
94395
  let currentSize = (spotlightData?.size || size4) * pulseScale;
94478
94396
  const currentBlur = spotlightData?.blur || blur2;
94479
94397
  const currentShape = spotlightData?.shape || shape;
94480
94398
  if (waveAnimation) {
94481
- currentSize *= createWavePattern(x2, y);
94399
+ currentSize *= createWavePattern(x, y);
94482
94400
  }
94483
94401
  if (heatMap) {
94484
- const heatIntensity = interpolateHeatMap(heatMap.data, x2, y);
94402
+ const heatIntensity = interpolateHeatMap(heatMap.data, x, y);
94485
94403
  const colorIndex = Math.floor(heatIntensity * (heatMap.colors.length - 1));
94486
94404
  const heatColor = heatMap.colors[colorIndex] || currentColor;
94487
- 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%)`;
94488
94406
  }
94489
94407
  const gradientSize = currentSize / 2;
94490
94408
  const blurSize = currentBlur;
@@ -94500,19 +94418,19 @@ var SpotlightInternal = ({
94500
94418
  (col, idx) => `${col} ${idx / (gradientColors.length - 1) * 70}%`
94501
94419
  ).join(", ");
94502
94420
  if (currentShape === "ellipse") {
94503
- 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%)`;
94504
94422
  }
94505
- 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%)`;
94506
94424
  }
94507
94425
  if (direction !== void 0) {
94508
- 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)`;
94509
94427
  }
94510
94428
  if (currentShape === "ellipse") {
94511
- 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%)`;
94512
94430
  } else if (["polygon", "star", "heart"].includes(currentShape)) {
94513
- 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%)`;
94514
94432
  }
94515
- 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%)`;
94516
94434
  };
94517
94435
  const createGridOverlay = () => {
94518
94436
  if (!gridOverlay)
@@ -94971,9 +94889,9 @@ var GlowEffectInternal = ({
94971
94889
  if (!mouseTracking || !containerRef.current)
94972
94890
  return;
94973
94891
  const rect = containerRef.current.getBoundingClientRect();
94974
- const x2 = e.clientX - rect.left;
94892
+ const x = e.clientX - rect.left;
94975
94893
  const y = e.clientY - rect.top;
94976
- setMousePosition({ x: x2, y });
94894
+ setMousePosition({ x, y });
94977
94895
  }, [mouseTracking]);
94978
94896
  const getMouseGlow = () => {
94979
94897
  if (!mouseTracking || !shouldApplyEffect())
@@ -95824,30 +95742,30 @@ var NumberTickerInternal = ({
95824
95742
  const elementRef = useRef(null);
95825
95743
  const animationRef = useRef(null);
95826
95744
  const hasAnimatedRef = useRef(false);
95827
- const getEasingFunction = (t2) => {
95745
+ const getEasingFunction = (t) => {
95828
95746
  switch (easing) {
95829
95747
  case "linear":
95830
- return t2;
95748
+ return t;
95831
95749
  case "ease-in":
95832
- return t2 * t2;
95750
+ return t * t;
95833
95751
  case "ease-out":
95834
- return 1 - Math.pow(1 - t2, 2);
95752
+ return 1 - Math.pow(1 - t, 2);
95835
95753
  case "ease-in-out":
95836
- 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;
95837
95755
  case "bounce":
95838
95756
  const n1 = 7.5625;
95839
95757
  const d1 = 2.75;
95840
- if (t2 < 1 / d1) {
95841
- return n1 * t2 * t2;
95842
- } else if (t2 < 2 / d1) {
95843
- return n1 * (t2 -= 1.5 / d1) * t2 + 0.75;
95844
- } else if (t2 < 2.5 / d1) {
95845
- 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;
95846
95764
  } else {
95847
- return n1 * (t2 -= 2.625 / d1) * t2 + 0.984375;
95765
+ return n1 * (t -= 2.625 / d1) * t + 0.984375;
95848
95766
  }
95849
95767
  default:
95850
- return t2;
95768
+ return t;
95851
95769
  }
95852
95770
  };
95853
95771
  const formatNumber2 = (num) => {
@@ -96961,9 +96879,9 @@ var MouseTrailInternal = ({
96961
96879
  }
96962
96880
  particlesRef.current = particles;
96963
96881
  }, [length, size4, colors, lifetime]);
96964
- const drawShape = useCallback((ctx, particle, x2, y) => {
96882
+ const drawShape = useCallback((ctx, particle, x, y) => {
96965
96883
  ctx.save();
96966
- ctx.translate(x2, y);
96884
+ ctx.translate(x, y);
96967
96885
  if (rotate) {
96968
96886
  ctx.rotate(particle.rotation);
96969
96887
  }
@@ -97201,10 +97119,10 @@ var MouseTrailInternal = ({
97201
97119
  if (!canvas)
97202
97120
  return;
97203
97121
  const rect = canvas.getBoundingClientRect();
97204
- const x2 = e.clientX - rect.left;
97122
+ const x = e.clientX - rect.left;
97205
97123
  const y = e.clientY - rect.top;
97206
- if (x2 >= 0 && x2 <= rect.width && y >= 0 && y <= rect.height) {
97207
- 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 };
97208
97126
  if (!isActive2) {
97209
97127
  setIsActive(true);
97210
97128
  }
@@ -97220,10 +97138,10 @@ var MouseTrailInternal = ({
97220
97138
  return;
97221
97139
  const rect = canvas.getBoundingClientRect();
97222
97140
  const touch = e.touches[0];
97223
- const x2 = touch.clientX - rect.left;
97141
+ const x = touch.clientX - rect.left;
97224
97142
  const y = touch.clientY - rect.top;
97225
- if (x2 >= 0 && x2 <= rect.width && y >= 0 && y <= rect.height) {
97226
- 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 };
97227
97145
  if (!isActive2) {
97228
97146
  setIsActive(true);
97229
97147
  }
@@ -97983,33 +97901,33 @@ var ScrollReveal = (props) => {
97983
97901
  return /* @__PURE__ */ jsx(ScrollRevealInternal, { ...props });
97984
97902
  };
97985
97903
  ScrollReveal.displayName = "ScrollReveal";
97986
- var getEasingValue = (t2, easing) => {
97904
+ var getEasingValue = (t, easing) => {
97987
97905
  switch (easing) {
97988
97906
  case "linear":
97989
- return t2;
97907
+ return t;
97990
97908
  case "ease":
97991
- 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;
97992
97910
  case "ease-in":
97993
- return t2 * t2;
97911
+ return t * t;
97994
97912
  case "ease-out":
97995
- return t2 * (2 - t2);
97913
+ return t * (2 - t);
97996
97914
  case "bounce":
97997
- if (t2 < 0.363636) {
97998
- return 7.5625 * t2 * t2;
97999
- } else if (t2 < 0.727272) {
98000
- t2 -= 0.545454;
98001
- return 7.5625 * t2 * t2 + 0.75;
98002
- } else if (t2 < 0.90909) {
98003
- t2 -= 0.818181;
98004
- 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;
98005
97923
  } else {
98006
- t2 -= 0.954545;
98007
- return 7.5625 * t2 * t2 + 0.984375;
97924
+ t -= 0.954545;
97925
+ return 7.5625 * t * t + 0.984375;
98008
97926
  }
98009
97927
  case "elastic":
98010
- 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);
98011
97929
  default:
98012
- return t2;
97930
+ return t;
98013
97931
  }
98014
97932
  };
98015
97933
  var BounceEffectInternal = ({
@@ -98063,7 +97981,7 @@ var BounceEffectInternal = ({
98063
97981
  const elapsed = time - startTimeRef.current;
98064
97982
  const progress = Math.min(elapsed / duration, 1);
98065
97983
  const easedProgress = getEasingValue(progress, easing);
98066
- let x2 = 0, y = 0;
97984
+ let x = 0, y = 0;
98067
97985
  switch (direction) {
98068
97986
  case "up":
98069
97987
  y = -distance * Math.sin(easedProgress * Math.PI * bounces) * Math.pow(elasticity, currentBounce);
@@ -98074,22 +97992,22 @@ var BounceEffectInternal = ({
98074
97992
  y -= gravity * elapsed * elapsed / 1e4;
98075
97993
  break;
98076
97994
  case "left":
98077
- 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);
98078
97996
  break;
98079
97997
  case "right":
98080
- 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);
98081
97999
  break;
98082
98000
  case "all":
98083
98001
  const angle = elapsed * 0.01;
98084
- 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);
98085
98003
  y = -Math.abs(distance * Math.sin(easedProgress * Math.PI * bounces) * Math.pow(elasticity, currentBounce));
98086
98004
  y += gravity * elapsed * elapsed / 1e4;
98087
98005
  break;
98088
98006
  }
98089
- x2 *= friction;
98007
+ x *= friction;
98090
98008
  y *= friction;
98091
98009
  if (shake) {
98092
- x2 += (Math.random() - 0.5) * shakeIntensity * (1 - progress);
98010
+ x += (Math.random() - 0.5) * shakeIntensity * (1 - progress);
98093
98011
  y += (Math.random() - 0.5) * shakeIntensity * (1 - progress);
98094
98012
  }
98095
98013
  if (rotate) {
@@ -98107,9 +98025,9 @@ var BounceEffectInternal = ({
98107
98025
  }
98108
98026
  if (jelly) {
98109
98027
  const jellyOffset = Math.sin(elapsed * 0.02) * jellyIntensity * distance;
98110
- x2 += jellyOffset;
98028
+ x += jellyOffset;
98111
98029
  }
98112
- setPosition({ x: x2, y });
98030
+ setPosition({ x, y });
98113
98031
  if (progress >= 1) {
98114
98032
  setCurrentBounce((prev) => prev + 1);
98115
98033
  if (currentBounce >= bounces - 1) {
@@ -98241,7 +98159,7 @@ var BounceEffectInternal = ({
98241
98159
  onMouseEnter: handleMouseEnter,
98242
98160
  onClick: handleClick2,
98243
98161
  children: [
98244
- trail && animationState && Array.from({ length: trailCount }).map((_2, i) => /* @__PURE__ */ jsx(
98162
+ trail && animationState && Array.from({ length: trailCount }).map((_, i) => /* @__PURE__ */ jsx(
98245
98163
  "div",
98246
98164
  {
98247
98165
  className: "absolute inset-0 pointer-events-none",
@@ -98293,37 +98211,37 @@ var BounceEffect = (props) => {
98293
98211
  return /* @__PURE__ */ jsx(BounceEffectInternal, { ...props });
98294
98212
  };
98295
98213
  BounceEffect.displayName = "BounceEffect";
98296
- var getEasingValue2 = (t2, easing) => {
98214
+ var getEasingValue2 = (t, easing) => {
98297
98215
  switch (easing) {
98298
98216
  case "linear":
98299
- return t2;
98217
+ return t;
98300
98218
  case "ease-in":
98301
- return t2 * t2;
98219
+ return t * t;
98302
98220
  case "ease-out":
98303
- return t2 * (2 - t2);
98221
+ return t * (2 - t);
98304
98222
  case "ease-in-out":
98305
- 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;
98306
98224
  case "elastic":
98307
- if (t2 === 0 || t2 === 1)
98308
- return t2;
98225
+ if (t === 0 || t === 1)
98226
+ return t;
98309
98227
  const p = 0.3;
98310
98228
  const s = p / 4;
98311
- 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;
98312
98230
  case "bounce":
98313
- if (t2 < 0.363636) {
98314
- return 7.5625 * t2 * t2;
98315
- } else if (t2 < 0.727272) {
98316
- t2 -= 0.545454;
98317
- return 7.5625 * t2 * t2 + 0.75;
98318
- } else if (t2 < 0.90909) {
98319
- t2 -= 0.818181;
98320
- 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;
98321
98239
  } else {
98322
- t2 -= 0.954545;
98323
- return 7.5625 * t2 * t2 + 0.984375;
98240
+ t -= 0.954545;
98241
+ return 7.5625 * t * t + 0.984375;
98324
98242
  }
98325
98243
  default:
98326
- return t2;
98244
+ return t;
98327
98245
  }
98328
98246
  };
98329
98247
  var ElasticAnimationInternal = ({
@@ -98386,11 +98304,11 @@ var ElasticAnimationInternal = ({
98386
98304
  const animationPhaseRef = useRef("main");
98387
98305
  const calculateElasticMotion = useCallback((progress) => {
98388
98306
  const elasticProgress = getEasingValue2(progress, easing);
98389
- 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;
98390
98308
  if (direction === "horizontal" || direction === "both") {
98391
- x2 = distance * elasticProgress * Math.cos(progress * Math.PI * 2 * oscillationCount);
98309
+ x = distance * elasticProgress * Math.cos(progress * Math.PI * 2 * oscillationCount);
98392
98310
  if (oscillate) {
98393
- x2 *= Math.pow(1 - progress, damping);
98311
+ x *= Math.pow(1 - progress, damping);
98394
98312
  }
98395
98313
  }
98396
98314
  if (direction === "vertical" || direction === "both") {
@@ -98401,17 +98319,17 @@ var ElasticAnimationInternal = ({
98401
98319
  }
98402
98320
  if (direction === "diagonal") {
98403
98321
  const angle = progress * Math.PI * 2 * oscillationCount;
98404
- x2 = distance * elasticProgress * Math.cos(angle);
98322
+ x = distance * elasticProgress * Math.cos(angle);
98405
98323
  y = distance * elasticProgress * Math.sin(angle);
98406
98324
  if (oscillate) {
98407
98325
  const dampingFactor = Math.pow(1 - progress, damping);
98408
- x2 *= dampingFactor;
98326
+ x *= dampingFactor;
98409
98327
  y *= dampingFactor;
98410
98328
  }
98411
98329
  }
98412
98330
  if (rubberBand) {
98413
98331
  const rubberProgress = Math.sin(progress * Math.PI);
98414
- x2 *= 1 + rubberProgress * rubberBandIntensity;
98332
+ x *= 1 + rubberProgress * rubberBandIntensity;
98415
98333
  scale = 1 + rubberProgress * 0.1 * rubberBandIntensity;
98416
98334
  }
98417
98335
  if (jello) {
@@ -98421,7 +98339,7 @@ var ElasticAnimationInternal = ({
98421
98339
  }
98422
98340
  if (morph && morphTargets.length > 0) {
98423
98341
  const target = morphTargets[morphIndex % morphTargets.length];
98424
- x2 += target.x * elasticProgress;
98342
+ x += target.x * elasticProgress;
98425
98343
  y += target.y * elasticProgress;
98426
98344
  if (target.scale)
98427
98345
  scale *= target.scale;
@@ -98436,12 +98354,12 @@ var ElasticAnimationInternal = ({
98436
98354
  skewX += (stretchX - 1) * 10;
98437
98355
  }
98438
98356
  if (anticipation && animationPhaseRef.current === "anticipation") {
98439
- x2 -= anticipationDistance * (1 - progress * 4);
98357
+ x -= anticipationDistance * (1 - progress * 4);
98440
98358
  scale *= 0.95 + progress * 0.05;
98441
98359
  }
98442
98360
  if (followThrough && animationPhaseRef.current === "follow-through") {
98443
98361
  const overshoot = Math.sin(progress * Math.PI) * followThroughOvershoot;
98444
- x2 *= overshoot;
98362
+ x *= overshoot;
98445
98363
  y *= overshoot;
98446
98364
  }
98447
98365
  if (arcMotion) {
@@ -98456,10 +98374,10 @@ var ElasticAnimationInternal = ({
98456
98374
  scale *= 1 + (pulseScale - 1) * pulseProgress * (1 - progress);
98457
98375
  }
98458
98376
  if (shake) {
98459
- x2 += (Math.random() - 0.5) * shakeIntensity * (1 - progress);
98377
+ x += (Math.random() - 0.5) * shakeIntensity * (1 - progress);
98460
98378
  y += (Math.random() - 0.5) * shakeIntensity * (1 - progress);
98461
98379
  }
98462
- return { x: x2, y, scale, rotate, skewX, skewY };
98380
+ return { x, y, scale, rotate, skewX, skewY };
98463
98381
  }, [
98464
98382
  easing,
98465
98383
  direction,
@@ -98763,21 +98681,21 @@ var PathAnimationsInternal = ({
98763
98681
  svgRef.current.removeChild(tempPath);
98764
98682
  }
98765
98683
  }, [getPathString]);
98766
- const getEasingValue3 = (t2) => {
98684
+ const getEasingValue3 = (t) => {
98767
98685
  switch (easing) {
98768
98686
  case "linear":
98769
- return t2;
98687
+ return t;
98770
98688
  case "ease-in":
98771
- return t2 * t2;
98689
+ return t * t;
98772
98690
  case "ease-out":
98773
- return t2 * (2 - t2);
98691
+ return t * (2 - t);
98774
98692
  case "ease-in-out":
98775
- 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;
98776
98694
  case "cubic-bezier":
98777
98695
  const [x1, y1, x2, y2] = cubicBezier;
98778
- 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);
98779
98697
  default:
98780
- return t2;
98698
+ return t;
98781
98699
  }
98782
98700
  };
98783
98701
  const calculatePathPosition = useCallback((progress) => {
@@ -99220,21 +99138,21 @@ var SVGAnimationsInternal = ({
99220
99138
  });
99221
99139
  }
99222
99140
  }, [type, drawOptions.fadeIn]);
99223
- const getEasingValue3 = (t2) => {
99141
+ const getEasingValue3 = (t) => {
99224
99142
  switch (easing) {
99225
99143
  case "linear":
99226
- return t2;
99144
+ return t;
99227
99145
  case "ease-in":
99228
- return t2 * t2;
99146
+ return t * t;
99229
99147
  case "ease-out":
99230
- return t2 * (2 - t2);
99148
+ return t * (2 - t);
99231
99149
  case "ease-in-out":
99232
- 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;
99233
99151
  case "cubic-bezier":
99234
99152
  const [x1, y1, x2, y2] = cubicBezier;
99235
- 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);
99236
99154
  default:
99237
- return t2;
99155
+ return t;
99238
99156
  }
99239
99157
  };
99240
99158
  const animateDraw = useCallback((progress) => {
@@ -99982,10 +99900,10 @@ var TouchGesturesInternal = ({
99982
99900
  const getAngle = (p1, p2) => {
99983
99901
  return Math.atan2(p2.currentY - p1.currentY, p2.currentX - p1.currentX) * 180 / Math.PI;
99984
99902
  };
99985
- const applyBoundaries = useCallback((x2, y) => {
99903
+ const applyBoundaries = useCallback((x, y) => {
99986
99904
  if (!panBoundaries)
99987
- return { x: x2, y };
99988
- const bounded = { x: x2, y };
99905
+ return { x, y };
99906
+ const bounded = { x, y };
99989
99907
  if (panBoundaries.left !== void 0) {
99990
99908
  bounded.x = Math.max(panBoundaries.left, bounded.x);
99991
99909
  }
@@ -100066,7 +99984,7 @@ var TouchGesturesInternal = ({
100066
99984
  cancelAnimationFrame(momentumAnimationRef.current);
100067
99985
  }
100068
99986
  if (indicators) {
100069
- setIndicatorPositions(touchArray.map((t2) => ({ x: t2.clientX, y: t2.clientY })));
99987
+ setIndicatorPositions(touchArray.map((t) => ({ x: t.clientX, y: t.clientY })));
100070
99988
  }
100071
99989
  };
100072
99990
  const handleTouchMove = (e) => {
@@ -100124,7 +100042,7 @@ var TouchGesturesInternal = ({
100124
100042
  clearTimeout(longPressTimerRef.current);
100125
100043
  }
100126
100044
  if (indicators) {
100127
- setIndicatorPositions(touchArray.map((t2) => ({ x: t2.clientX, y: t2.clientY })));
100045
+ setIndicatorPositions(touchArray.map((t) => ({ x: t.clientX, y: t.clientY })));
100128
100046
  }
100129
100047
  };
100130
100048
  const handleTouchEnd = (e) => {
@@ -100906,22 +100824,22 @@ var ClickAnimationsInternal = ({
100906
100824
  setLongPressTimeout(null);
100907
100825
  }
100908
100826
  }, [longPressTimeout]);
100909
- const getEasingFunction = useCallback((type, t2) => {
100827
+ const getEasingFunction = useCallback((type, t) => {
100910
100828
  switch (type) {
100911
100829
  case "ease":
100912
- 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;
100913
100831
  case "ease-in":
100914
- return t2 * t2;
100832
+ return t * t;
100915
100833
  case "ease-out":
100916
- return t2 * (2 - t2);
100834
+ return t * (2 - t);
100917
100835
  case "ease-in-out":
100918
- 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;
100919
100837
  case "bounce":
100920
- 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);
100921
100839
  case "elastic":
100922
- 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);
100923
100841
  default:
100924
- return t2;
100842
+ return t;
100925
100843
  }
100926
100844
  }, []);
100927
100845
  const getAnimationStyles = useCallback((animation) => {