@remotion/promo-pages 4.0.373 → 4.0.375

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/Homepage.js CHANGED
@@ -25,7 +25,7 @@ import { createContext as createContext2, useContext } from "react";
25
25
  import { jsx as jsx10 } from "react/jsx-runtime";
26
26
  import {
27
27
  forwardRef as forwardRef2,
28
- useContext as useContext12,
28
+ useContext as useContext13,
29
29
  useEffect as useEffect3,
30
30
  useMemo as useMemo10,
31
31
  useState as useState6
@@ -36,7 +36,7 @@ import { createContext as createContext3 } from "react";
36
36
  import React3, { useCallback, useMemo as useMemo22, useState } from "react";
37
37
  import { jsx as jsx32 } from "react/jsx-runtime";
38
38
  import {
39
- createContext as createContext9,
39
+ createContext as createContext10,
40
40
  useLayoutEffect,
41
41
  useMemo as useMemo7,
42
42
  useRef as useRef2,
@@ -66,14 +66,16 @@ import React5, {
66
66
  import { jsx as jsx42 } from "react/jsx-runtime";
67
67
  import { createContext as createContext6, useContext as useContext3, useEffect, useRef, useState as useState3 } from "react";
68
68
  import { jsx as jsx52 } from "react/jsx-runtime";
69
- import { createContext as createContext8, useCallback as useCallback4, useContext as useContext7 } from "react";
69
+ import { createContext as createContext9, useCallback as useCallback4, useContext as useContext8 } from "react";
70
+ import { createContext as createContext8 } from "react";
71
+ import * as React6 from "react";
70
72
  import { jsx as jsx62 } from "react/jsx-runtime";
71
- import { useContext as useContext9 } from "react";
72
- import { createContext as createContext10 } from "react";
73
- import { jsx as jsx72 } from "react/jsx-runtime";
74
- import { useContext as useContext8, useMemo as useMemo8 } from "react";
75
- import { useContext as useContext11, useMemo as useMemo9 } from "react";
76
73
  import { useContext as useContext10 } from "react";
74
+ import { createContext as createContext11 } from "react";
75
+ import { jsx as jsx72 } from "react/jsx-runtime";
76
+ import { useContext as useContext9, useMemo as useMemo8 } from "react";
77
+ import { useContext as useContext12, useMemo as useMemo9 } from "react";
78
+ import { useContext as useContext11 } from "react";
77
79
  import { jsx as jsx82 } from "react/jsx-runtime";
78
80
  import { jsx as jsx92 } from "react/jsx-runtime";
79
81
  import {
@@ -84,12 +86,12 @@ import {
84
86
  useRef as useRef4,
85
87
  useState as useState7
86
88
  } from "react";
87
- import React10, { useCallback as useCallback5, useImperativeHandle as useImperativeHandle3, useRef as useRef3 } from "react";
89
+ import React11, { useCallback as useCallback5, useImperativeHandle as useImperativeHandle3, useRef as useRef3 } from "react";
88
90
  import { jsx as jsx102 } from "react/jsx-runtime";
89
91
  import { jsx as jsx11 } from "react/jsx-runtime";
90
- import { useContext as useContext13, useEffect as useEffect5, useState as useState9 } from "react";
92
+ import { useContext as useContext14, useEffect as useEffect5, useState as useState9 } from "react";
91
93
  import {
92
- createContext as createContext11,
94
+ createContext as createContext12,
93
95
  useCallback as useCallback6,
94
96
  useLayoutEffect as useLayoutEffect3,
95
97
  useMemo as useMemo11,
@@ -97,12 +99,12 @@ import {
97
99
  } from "react";
98
100
  import { jsx as jsx12 } from "react/jsx-runtime";
99
101
  import { forwardRef as forwardRef6, useCallback as useCallback11, useContext as useContext27 } from "react";
100
- import React11, { createContext as createContext12, useMemo as useMemo12 } from "react";
102
+ import React12, { createContext as createContext13, useMemo as useMemo12 } from "react";
101
103
  import { jsx as jsx13 } from "react/jsx-runtime";
102
- import { useContext as useContext14 } from "react";
103
- import { createContext as createContext13, useEffect as useEffect6, useState as useState10 } from "react";
104
+ import { useContext as useContext15 } from "react";
105
+ import { createContext as createContext14, useEffect as useEffect6, useState as useState10 } from "react";
104
106
  import { jsx as jsx14 } from "react/jsx-runtime";
105
- import { createContext as createContext14, useMemo as useMemo13, useReducer } from "react";
107
+ import { createContext as createContext15, useMemo as useMemo13, useReducer } from "react";
106
108
  import { jsx as jsx15 } from "react/jsx-runtime";
107
109
  import {
108
110
  forwardRef as forwardRef4,
@@ -113,8 +115,6 @@ import {
113
115
  useRef as useRef12,
114
116
  useState as useState15
115
117
  } from "react";
116
- import { createContext as createContext15 } from "react";
117
- import * as React14 from "react";
118
118
  import { useContext as useContext17, useLayoutEffect as useLayoutEffect4, useRef as useRef7 } from "react";
119
119
  import React15, {
120
120
  createContext as createContext16,
@@ -328,7 +328,7 @@ function validateFps(fps, location, isGif) {
328
328
  throw new TypeError(`The FPS for a GIF cannot be higher than 50. Use the --every-nth-frame option to lower the FPS: https://remotion.dev/docs/render-as-gif`);
329
329
  }
330
330
  }
331
- function cancelRender(err) {
331
+ function cancelRenderInternal(scope, err) {
332
332
  let error;
333
333
  if (isErrorLike(err)) {
334
334
  error = err;
@@ -340,9 +340,14 @@ function cancelRender(err) {
340
340
  } else {
341
341
  error = Error("Rendering was cancelled");
342
342
  }
343
- window.remotion_cancelledError = error.stack;
343
+ if (scope) {
344
+ scope.remotion_cancelledError = error.stack;
345
+ }
344
346
  throw error;
345
347
  }
348
+ function cancelRender(err) {
349
+ return cancelRenderInternal(typeof window !== "undefined" ? window : undefined, err);
350
+ }
346
351
  function interpolateFunction(input, inputRange, outputRange, options) {
347
352
  const { extrapolateLeft, extrapolateRight, easing } = options;
348
353
  let result = input;
@@ -748,7 +753,7 @@ var __defProp2, __export2 = (target, all) => {
748
753
  });
749
754
  }, useIsPlayer = () => {
750
755
  return useContext(IsPlayerContext);
751
- }, VERSION = "4.0.373", checkMultipleRemotionVersions = () => {
756
+ }, VERSION = "4.0.375", checkMultipleRemotionVersions = () => {
752
757
  if (typeof globalThis === "undefined") {
753
758
  return;
754
759
  }
@@ -1041,6 +1046,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
1041
1046
  if (override) {
1042
1047
  return override;
1043
1048
  }
1049
+ if (typeof window === "undefined" || typeof window.remotion_inputProps === "undefined") {
1050
+ throw new Error("Cannot call `getInputProps()` - window.remotion_inputProps is not set. This API is only available if you are in the Studio, or while you are rendering server-side.");
1051
+ }
1044
1052
  const param = window.remotion_inputProps;
1045
1053
  if (!param) {
1046
1054
  return {};
@@ -1198,7 +1206,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1198
1206
  }
1199
1207
  }, ResolveCompositionContext, resolveCompositionsRef, needsResolution = (composition) => {
1200
1208
  return Boolean(composition.calculateMetadata);
1201
- }, PROPS_UPDATED_EXTERNALLY = "remotion.propsUpdatedExternally", ResolveCompositionConfig = ({ children }) => {
1209
+ }, PROPS_UPDATED_EXTERNALLY = "remotion.propsUpdatedExternally", ResolveCompositionConfigInStudio = ({ children }) => {
1202
1210
  const [currentRenderModalComposition, setCurrentRenderModalComposition] = useState4(null);
1203
1211
  const { compositions, canvasContent, currentCompositionMetadata } = useContext4(CompositionManager);
1204
1212
  const { fastRefreshes, manualRefreshes } = useContext4(NonceContext);
@@ -1494,7 +1502,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1494
1502
  props: {
1495
1503
  ...composition.defaultProps ?? {},
1496
1504
  ...selectedEditorProps ?? {},
1497
- ...typeof window === "undefined" || env.isPlayer ? {} : getInputProps() ?? {}
1505
+ ...typeof window === "undefined" || env.isPlayer || !window.remotion_inputProps ? {} : getInputProps() ?? {}
1498
1506
  },
1499
1507
  defaultCodec: null,
1500
1508
  defaultOutName: null,
@@ -1504,6 +1512,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
1504
1512
  }
1505
1513
  };
1506
1514
  }
1515
+ if (!context) {
1516
+ return null;
1517
+ }
1507
1518
  if (!context[composition.id]) {
1508
1519
  return null;
1509
1520
  }
@@ -1634,8 +1645,13 @@ Check that all your Remotion packages are on the same version. If your dependenc
1634
1645
  }
1635
1646
  }, error = (options, ...args) => {
1636
1647
  return console.error(...transformArgs({ args, logLevel: "error", tag: options.tag }));
1637
- }, Log, handles, DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:", DELAY_RENDER_RETRIES_LEFT = "Retries left: ", DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.", DELAY_RENDER_CLEAR_TOKEN = "handle was cleared after", defaultTimeout = 30000, delayRenderInternal = (scope, environment, label, options) => {
1638
- if (typeof label !== "string" && typeof label !== "undefined") {
1648
+ }, Log, handles, DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:", DELAY_RENDER_RETRIES_LEFT = "Retries left: ", DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.", DELAY_RENDER_CLEAR_TOKEN = "handle was cleared after", defaultTimeout = 30000, delayRenderInternal = ({
1649
+ scope,
1650
+ environment,
1651
+ label,
1652
+ options
1653
+ }) => {
1654
+ if (typeof label !== "string" && label !== null) {
1639
1655
  throw new Error("The label parameter of delayRender() must be a string or undefined, got: " + JSON.stringify(label));
1640
1656
  }
1641
1657
  const handle = Math.random();
@@ -1658,7 +1674,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1658
1674
  DELAY_RENDER_CALLSTACK_TOKEN,
1659
1675
  called
1660
1676
  ].filter(truthy2).join(" ");
1661
- cancelRender(Error(message));
1677
+ cancelRenderInternal(scope, Error(message));
1662
1678
  }, timeoutToUse)
1663
1679
  };
1664
1680
  }
@@ -1667,7 +1683,12 @@ Check that all your Remotion packages are on the same version. If your dependenc
1667
1683
  scope.remotion_renderReady = false;
1668
1684
  }
1669
1685
  return handle;
1670
- }, continueRenderInternal = (scope, handle, environment) => {
1686
+ }, continueRenderInternal = ({
1687
+ scope,
1688
+ handle,
1689
+ environment,
1690
+ logLevel
1691
+ }) => {
1671
1692
  if (typeof handle === "undefined") {
1672
1693
  throw new TypeError("The continueRender() method must be called with a parameter that is the return value of delayRender(). No value was passed.");
1673
1694
  }
@@ -1687,7 +1708,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1687
1708
  DELAY_RENDER_CLEAR_TOKEN,
1688
1709
  `${Date.now() - startTime}ms`
1689
1710
  ].filter(truthy2).join(" ");
1690
- Log.verbose({ logLevel: window.remotion_logLevel, tag: "delayRender()" }, message);
1711
+ Log.verbose({ logLevel, tag: "delayRender()" }, message);
1691
1712
  delete scope.remotion_delayRenderTimeouts[handle];
1692
1713
  }
1693
1714
  return false;
@@ -1697,16 +1718,42 @@ Check that all your Remotion packages are on the same version. If your dependenc
1697
1718
  if (handles.length === 0 && typeof scope !== "undefined") {
1698
1719
  scope.remotion_renderReady = true;
1699
1720
  }
1721
+ }, LogLevelContext, useLogLevel = () => {
1722
+ const { logLevel } = React6.useContext(LogLevelContext);
1723
+ if (logLevel === null) {
1724
+ throw new Error("useLogLevel must be used within a LogLevelProvider");
1725
+ }
1726
+ return logLevel;
1727
+ }, useMountTime = () => {
1728
+ const { mountTime } = React6.useContext(LogLevelContext);
1729
+ if (mountTime === null) {
1730
+ throw new Error("useMountTime must be used within a LogLevelProvider");
1731
+ }
1732
+ return mountTime;
1700
1733
  }, DelayRenderContextType, useDelayRender = () => {
1701
1734
  const environment = useRemotionEnvironment();
1702
- const scope = useContext7(DelayRenderContextType);
1735
+ const scope = useContext8(DelayRenderContextType);
1736
+ const logLevel = useLogLevel();
1703
1737
  const delayRender2 = useCallback4((label, options) => {
1704
- return delayRenderInternal(scope ?? (typeof window !== "undefined" ? window : undefined), environment, label, options);
1738
+ return delayRenderInternal({
1739
+ scope: scope ?? (typeof window !== "undefined" ? window : undefined),
1740
+ environment,
1741
+ label: label ?? null,
1742
+ options: options ?? {}
1743
+ });
1705
1744
  }, [environment, scope]);
1706
1745
  const continueRender2 = useCallback4((handle) => {
1707
- continueRenderInternal(scope ?? (typeof window !== "undefined" ? window : undefined), handle, environment);
1708
- }, [environment, scope]);
1709
- return { delayRender: delayRender2, continueRender: continueRender2 };
1746
+ continueRenderInternal({
1747
+ scope: scope ?? (typeof window !== "undefined" ? window : undefined),
1748
+ handle,
1749
+ environment,
1750
+ logLevel
1751
+ });
1752
+ }, [environment, logLevel, scope]);
1753
+ const cancelRender2 = useCallback4((err) => {
1754
+ return cancelRenderInternal(scope ?? (typeof window !== "undefined" ? window : undefined), err);
1755
+ }, [scope]);
1756
+ return { delayRender: delayRender2, continueRender: continueRender2, cancelRender: cancelRender2 };
1710
1757
  }, SetTimelineContext, TimelineContext, TimelineContextProvider = ({ children, frameState }) => {
1711
1758
  const [playing, setPlaying] = useState5(false);
1712
1759
  const imperativePlaying = useRef2(false);
@@ -1772,7 +1819,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1772
1819
  children
1773
1820
  });
1774
1821
  }, useUnsafeVideoConfig = () => {
1775
- const context = useContext8(SequenceContext);
1822
+ const context = useContext9(SequenceContext);
1776
1823
  const ctxWidth = context?.width ?? null;
1777
1824
  const ctxHeight = context?.height ?? null;
1778
1825
  const ctxDuration = context?.durationInFrames ?? null;
@@ -1812,7 +1859,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1812
1859
  }, [ctxDuration, ctxHeight, ctxWidth, video]);
1813
1860
  }, useVideoConfig = () => {
1814
1861
  const videoConfig = useUnsafeVideoConfig();
1815
- const context = useContext9(CanUseRemotionHooks);
1862
+ const context = useContext10(CanUseRemotionHooks);
1816
1863
  const isPlayer = useIsPlayer();
1817
1864
  if (!videoConfig) {
1818
1865
  if (typeof window !== "undefined" && window.remotion_isPlayer || isPlayer) {
@@ -1829,7 +1876,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1829
1876
  }
1830
1877
  return videoConfig;
1831
1878
  }, useCurrentFrame = () => {
1832
- const canUseRemotionHooks = useContext10(CanUseRemotionHooks);
1879
+ const canUseRemotionHooks = useContext11(CanUseRemotionHooks);
1833
1880
  const env = useRemotionEnvironment();
1834
1881
  if (!canUseRemotionHooks) {
1835
1882
  if (env.isPlayer) {
@@ -1838,7 +1885,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
1838
1885
  throw new Error(`useCurrentFrame() can only be called inside a component that was registered as a composition. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions`);
1839
1886
  }
1840
1887
  const frame = useTimelinePosition();
1841
- const context = useContext10(SequenceContext);
1888
+ const context = useContext11(SequenceContext);
1842
1889
  const contextOffset = context ? context.cumulatedFrom + context.relativeFrom : 0;
1843
1890
  return frame - contextOffset;
1844
1891
  }, Freeze = ({
@@ -1868,8 +1915,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
1868
1915
  return active(frame);
1869
1916
  }
1870
1917
  }, [active, frame]);
1871
- const timelineContext = useContext11(TimelineContext);
1872
- const sequenceContext = useContext11(SequenceContext);
1918
+ const timelineContext = useContext12(TimelineContext);
1919
+ const sequenceContext = useContext12(SequenceContext);
1873
1920
  const relativeFrom = sequenceContext?.relativeFrom ?? 0;
1874
1921
  const timelineValue = useMemo9(() => {
1875
1922
  if (!isActive) {
@@ -1922,8 +1969,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
1922
1969
  }, ref) => {
1923
1970
  const { layout = "absolute-fill" } = other;
1924
1971
  const [id] = useState6(() => String(Math.random()));
1925
- const parentSequence = useContext12(SequenceContext);
1926
- const { rootId } = useContext12(TimelineContext);
1972
+ const parentSequence = useContext13(SequenceContext);
1973
+ const { rootId } = useContext13(TimelineContext);
1927
1974
  const cumulatedFrom = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
1928
1975
  const nonce = useNonce();
1929
1976
  if (layout !== "absolute-fill" && layout !== "none") {
@@ -1948,8 +1995,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
1948
1995
  const videoConfig = useVideoConfig();
1949
1996
  const parentSequenceDuration = parentSequence ? Math.min(parentSequence.durationInFrames - from, durationInFrames) : durationInFrames;
1950
1997
  const actualDurationInFrames = Math.max(0, Math.min(videoConfig.durationInFrames - from, parentSequenceDuration));
1951
- const { registerSequence, unregisterSequence } = useContext12(SequenceManager);
1952
- const { hidden } = useContext12(SequenceVisibilityToggleContext);
1998
+ const { registerSequence, unregisterSequence } = useContext13(SequenceManager);
1999
+ const { hidden } = useContext13(SequenceVisibilityToggleContext);
1953
2000
  const premounting = useMemo10(() => {
1954
2001
  return parentSequence?.premounting || Boolean(other._remotionInternalIsPremounting);
1955
2002
  }, [other._remotionInternalIsPremounting, parentSequence?.premounting]);
@@ -2413,7 +2460,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
2413
2460
  children
2414
2461
  });
2415
2462
  }, ArtifactThumbnail, Artifact = ({ filename, content, downloadBehavior }) => {
2416
- const { registerRenderAsset, unregisterRenderAsset } = useContext13(RenderAssetManager);
2463
+ const { registerRenderAsset, unregisterRenderAsset } = useContext14(RenderAssetManager);
2417
2464
  const env = useRemotionEnvironment();
2418
2465
  const frame = useCurrentFrame();
2419
2466
  const [id] = useState9(() => {
@@ -2491,7 +2538,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
2491
2538
  const actualDuration = duration / playbackRate;
2492
2539
  return Math.floor(actualDuration);
2493
2540
  }, LoopContext, useLoop = () => {
2494
- return React11.useContext(LoopContext);
2541
+ return React12.useContext(LoopContext);
2495
2542
  }, Loop = ({ durationInFrames, times = Infinity, children, name, ...props }) => {
2496
2543
  const currentFrame = useCurrentFrame();
2497
2544
  const { durationInFrames: compDuration } = useVideoConfig();
@@ -2579,7 +2626,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
2579
2626
  }
2580
2627
  return src.slice(0, hashIndex);
2581
2628
  }, usePreload = (src) => {
2582
- const preloads2 = useContext14(PreloadContext);
2629
+ const preloads2 = useContext15(PreloadContext);
2583
2630
  const hashFragmentIndex = removeAndGetHashFragment(src);
2584
2631
  const withoutHashFragment = getSrcWithoutHash(src);
2585
2632
  if (!preloads2[withoutHashFragment]) {
@@ -2875,18 +2922,6 @@ Check that all your Remotion packages are on the same version. If your dependenc
2875
2922
  return "anonymous";
2876
2923
  }
2877
2924
  return;
2878
- }, LogLevelContext, useLogLevel = () => {
2879
- const { logLevel } = React14.useContext(LogLevelContext);
2880
- if (logLevel === null) {
2881
- throw new Error("useLogLevel must be used within a LogLevelProvider");
2882
- }
2883
- return logLevel;
2884
- }, useMountTime = () => {
2885
- const { mountTime } = React14.useContext(LogLevelContext);
2886
- if (mountTime === null) {
2887
- throw new Error("useMountTime must be used within a LogLevelProvider");
2888
- }
2889
- return mountTime;
2890
2925
  }, playAndHandleNotAllowedError = ({
2891
2926
  mediaRef,
2892
2927
  mediaType,
@@ -5393,14 +5428,12 @@ Check that all your Remotion packages are on the same version. If your dependenc
5393
5428
  children: /* @__PURE__ */ jsx28(PrefetchProvider, {
5394
5429
  children: /* @__PURE__ */ jsx28(SequenceManagerProvider, {
5395
5430
  children: /* @__PURE__ */ jsx28(RenderAssetManagerProvider, {
5396
- children: /* @__PURE__ */ jsx28(ResolveCompositionConfig, {
5397
- children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
5398
- numberOfAudioTags,
5399
- audioLatencyHint,
5400
- children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
5401
- children: /* @__PURE__ */ jsx28(BufferingProvider, {
5402
- children
5403
- })
5431
+ children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
5432
+ numberOfAudioTags,
5433
+ audioLatencyHint,
5434
+ children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
5435
+ children: /* @__PURE__ */ jsx28(BufferingProvider, {
5436
+ children
5404
5437
  })
5405
5438
  })
5406
5439
  })
@@ -6823,8 +6856,12 @@ var init_esm = __esm(() => {
6823
6856
  window.remotion_delayRenderTimeouts = {};
6824
6857
  }
6825
6858
  }
6826
- DelayRenderContextType = createContext8(null);
6827
- SetTimelineContext = createContext9({
6859
+ LogLevelContext = createContext8({
6860
+ logLevel: "info",
6861
+ mountTime: 0
6862
+ });
6863
+ DelayRenderContextType = createContext9(null);
6864
+ SetTimelineContext = createContext10({
6828
6865
  setFrame: () => {
6829
6866
  throw new Error("default");
6830
6867
  },
@@ -6832,7 +6869,7 @@ var init_esm = __esm(() => {
6832
6869
  throw new Error("default");
6833
6870
  }
6834
6871
  });
6835
- TimelineContext = createContext9({
6872
+ TimelineContext = createContext10({
6836
6873
  frame: {},
6837
6874
  playing: false,
6838
6875
  playbackRate: 1,
@@ -6845,11 +6882,11 @@ var init_esm = __esm(() => {
6845
6882
  },
6846
6883
  audioAndVideoTags: { current: [] }
6847
6884
  });
6848
- CanUseRemotionHooks = createContext10(false);
6885
+ CanUseRemotionHooks = createContext11(false);
6849
6886
  RegularSequence = forwardRef2(RegularSequenceRefForwardingFunction);
6850
6887
  PremountedPostmountedSequence = forwardRef2(PremountedPostmountedSequenceRefForwardingFunction);
6851
6888
  Sequence = forwardRef2(SequenceRefForwardingFunction);
6852
- Canvas = React10.forwardRef(CanvasRefForwardingFunction);
6889
+ Canvas = React11.forwardRef(CanvasRefForwardingFunction);
6853
6890
  AnimatedImage = forwardRef3(({
6854
6891
  src,
6855
6892
  width,
@@ -6957,7 +6994,7 @@ var init_esm = __esm(() => {
6957
6994
  ...props
6958
6995
  });
6959
6996
  });
6960
- RenderAssetManager = createContext11({
6997
+ RenderAssetManager = createContext12({
6961
6998
  registerRenderAsset: () => {
6962
6999
  return;
6963
7000
  },
@@ -6968,21 +7005,17 @@ var init_esm = __esm(() => {
6968
7005
  });
6969
7006
  ArtifactThumbnail = Symbol("Thumbnail");
6970
7007
  Artifact.Thumbnail = ArtifactThumbnail;
6971
- LoopContext = createContext12(null);
7008
+ LoopContext = createContext13(null);
6972
7009
  Loop.useLoop = useLoop;
6973
- PreloadContext = createContext13({});
7010
+ PreloadContext = createContext14({});
6974
7011
  preloads = {};
6975
7012
  updaters = [];
6976
- DurationsContext = createContext14({
7013
+ DurationsContext = createContext15({
6977
7014
  durations: {},
6978
7015
  setDurations: () => {
6979
7016
  throw new Error("context missing");
6980
7017
  }
6981
7018
  });
6982
- LogLevelContext = createContext15({
6983
- logLevel: "info",
6984
- mountTime: 0
6985
- });
6986
7019
  SharedAudioContext = createContext16(null);
6987
7020
  didWarn = {};
6988
7021
  BufferingContextReact = React16.createContext(null);
@@ -7100,7 +7133,7 @@ var init_esm = __esm(() => {
7100
7133
  resolveVideoConfig,
7101
7134
  useResolvedVideoConfig,
7102
7135
  resolveCompositionsRef,
7103
- ResolveCompositionConfig,
7136
+ ResolveCompositionConfigInStudio,
7104
7137
  REMOTION_STUDIO_CONTAINER_ELEMENT,
7105
7138
  RenderAssetManager,
7106
7139
  persistCurrentFrame,
@@ -7207,7 +7240,7 @@ __export(exports_esm, {
7207
7240
  Lottie: () => Lottie
7208
7241
  });
7209
7242
  import lottie from "lottie-web";
7210
- import { useEffect as useEffect40, useRef as useRef33, useState as useState37 } from "react";
7243
+ import { useEffect as useEffect40, useRef as useRef36, useState as useState37 } from "react";
7211
7244
  import { jsx as jsx59 } from "react/jsx-runtime";
7212
7245
  var getLottieMetadata = (animationData) => {
7213
7246
  const width2 = animationData.w;
@@ -7272,10 +7305,10 @@ var getLottieMetadata = (animationData) => {
7272
7305
  }
7273
7306
  validatePlaybackRate2(playbackRate);
7274
7307
  validateLoop(loop);
7275
- const animationRef = useRef33(null);
7276
- const currentFrameRef = useRef33(null);
7277
- const containerRef = useRef33(null);
7278
- const onAnimationLoadedRef = useRef33(onAnimationLoaded);
7308
+ const animationRef = useRef36(null);
7309
+ const currentFrameRef = useRef36(null);
7310
+ const containerRef = useRef36(null);
7311
+ const onAnimationLoadedRef = useRef36(onAnimationLoaded);
7279
7312
  onAnimationLoadedRef.current = onAnimationLoaded;
7280
7313
  const { delayRender, continueRender } = useDelayRender();
7281
7314
  const [handle] = useState37(() => delayRender("Waiting for Lottie animation to load"));
@@ -7377,7 +7410,7 @@ var init_esm2 = __esm(() => {
7377
7410
  });
7378
7411
 
7379
7412
  // ../design/dist/esm/index.mjs
7380
- import { useCallback as useCallback18, useRef as useRef18, useState as useState22 } from "react";
7413
+ import { useCallback as useCallback18, useRef as useRef22, useState as useState22 } from "react";
7381
7414
 
7382
7415
  // ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
7383
7416
  function r(e) {
@@ -8718,7 +8751,7 @@ var getDefaultConfig = () => {
8718
8751
  var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
8719
8752
 
8720
8753
  // ../design/dist/esm/index.mjs
8721
- import React6, { useEffect as useEffect23, useMemo as useMemo33, useState as useState21 } from "react";
8754
+ import React7, { useEffect as useEffect23, useMemo as useMemo33, useState as useState21 } from "react";
8722
8755
 
8723
8756
  // ../paths/dist/esm/index.mjs
8724
8757
  var cutLInstruction = ({
@@ -12859,65 +12892,69 @@ var extrudeAndTransformElement = (options) => {
12859
12892
  init_esm();
12860
12893
  import { jsx as jsx37, Fragment } from "react/jsx-runtime";
12861
12894
  import { jsx as jsx210, jsxs as jsxs3 } from "react/jsx-runtime";
12895
+ import { useEffect as useEffect24, useMemo as useMemo210, useRef as useRef18 } from "react";
12862
12896
  import { jsx as jsx38 } from "react/jsx-runtime";
12863
- import React34 from "react";
12864
- import { jsx as jsx43 } from "react/jsx-runtime";
12897
+ import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
12898
+ import React42 from "react";
12865
12899
  import { jsx as jsx53 } from "react/jsx-runtime";
12866
- import { jsx as jsx63, jsxs as jsxs23 } from "react/jsx-runtime";
12867
- import { jsx as jsx73 } from "react/jsx-runtime";
12868
- import * as React322 from "react";
12869
- import * as ReactDOM4 from "react-dom";
12870
- import React7 from "react";
12871
- import * as React42 from "react";
12900
+ import { jsx as jsx63 } from "react/jsx-runtime";
12901
+ import { jsx as jsx73, jsxs as jsxs32 } from "react/jsx-runtime";
12902
+ import React52 from "react";
12872
12903
  import { jsx as jsx83 } from "react/jsx-runtime";
12873
- import * as React52 from "react";
12904
+ import { jsx as jsx93 } from "react/jsx-runtime";
12905
+ import * as React34 from "react";
12906
+ import * as ReactDOM4 from "react-dom";
12907
+ import React9 from "react";
12874
12908
  import * as React62 from "react";
12875
- import { Fragment as Fragment2, jsx as jsx93 } from "react/jsx-runtime";
12876
12909
  import { jsx as jsx103 } from "react/jsx-runtime";
12910
+ import * as React72 from "react";
12877
12911
  import * as React8 from "react";
12878
- import { jsx as jsx112 } from "react/jsx-runtime";
12879
- import * as React12 from "react";
12880
- import * as React9 from "react";
12881
- import * as ReactDOM from "react-dom";
12912
+ import { Fragment as Fragment2, jsx as jsx112 } from "react/jsx-runtime";
12882
12913
  import { jsx as jsx122 } from "react/jsx-runtime";
12883
- import * as React102 from "react";
12884
- import * as React112 from "react";
12914
+ import * as React10 from "react";
12885
12915
  import { jsx as jsx132 } from "react/jsx-runtime";
12886
- import * as React13 from "react";
12887
- import * as React142 from "react";
12916
+ import * as React14 from "react";
12917
+ import * as React112 from "react";
12918
+ import * as ReactDOM from "react-dom";
12888
12919
  import { jsx as jsx142 } from "react/jsx-runtime";
12889
- import * as React162 from "react";
12920
+ import * as React122 from "react";
12921
+ import * as React13 from "react";
12922
+ import { jsx as jsx152 } from "react/jsx-runtime";
12890
12923
  import * as React152 from "react";
12891
- import * as React20 from "react";
12892
- import * as React172 from "react";
12893
- import { useLayoutEffect as useLayoutEffect32, useEffect as useEffect72 } from "react";
12894
- import * as ReactDOM2 from "react-dom";
12924
+ import * as React162 from "react";
12925
+ import { jsx as jsx162 } from "react/jsx-runtime";
12895
12926
  import * as React18 from "react";
12896
- import { jsx as jsx152 } from "react/jsx-runtime";
12927
+ import * as React172 from "react";
12928
+ import * as React22 from "react";
12897
12929
  import * as React19 from "react";
12898
- import { jsx as jsx162 } from "react/jsx-runtime";
12899
- import * as React212 from "react";
12900
- import ReactDOM3 from "react-dom";
12930
+ import { useLayoutEffect as useLayoutEffect32, useEffect as useEffect82 } from "react";
12931
+ import * as ReactDOM2 from "react-dom";
12932
+ import * as React20 from "react";
12901
12933
  import { jsx as jsx172 } from "react/jsx-runtime";
12902
- import * as React22 from "react";
12934
+ import * as React212 from "react";
12935
+ import { jsx as jsx182 } from "react/jsx-runtime";
12903
12936
  import * as React23 from "react";
12937
+ import ReactDOM3 from "react-dom";
12938
+ import { jsx as jsx192 } from "react/jsx-runtime";
12904
12939
  import * as React24 from "react";
12905
- import { jsx as jsx182 } from "react/jsx-runtime";
12906
- import * as React312 from "react";
12907
- import * as React272 from "react";
12908
- import { useState as useState112 } from "react";
12909
12940
  import * as React252 from "react";
12910
12941
  import * as React26 from "react";
12911
- import * as React30 from "react";
12942
+ import { jsx as jsx202 } from "react/jsx-runtime";
12943
+ import * as React332 from "react";
12912
12944
  import * as React29 from "react";
12945
+ import { useState as useState112 } from "react";
12946
+ import * as React272 from "react";
12913
12947
  import * as React28 from "react";
12914
- import { Fragment as Fragment52, jsx as jsx192, jsxs as jsxs32 } from "react/jsx-runtime";
12948
+ import * as React322 from "react";
12949
+ import * as React312 from "react";
12950
+ import * as React30 from "react";
12951
+ import { Fragment as Fragment52, jsx as jsx212, jsxs as jsxs4 } from "react/jsx-runtime";
12915
12952
  import { forwardRef as forwardRef132, createElement as createElement7 } from "react";
12916
12953
  import { forwardRef as forwardRef122, createElement as createElement6 } from "react";
12917
- import * as React332 from "react";
12918
- import { jsx as jsx202, jsxs as jsxs4 } from "react/jsx-runtime";
12919
- import { jsx as jsx212 } from "react/jsx-runtime";
12920
- import { jsx as jsx223 } from "react/jsx-runtime";
12954
+ import * as React352 from "react";
12955
+ import { jsx as jsx223, jsxs as jsxs5 } from "react/jsx-runtime";
12956
+ import { jsx as jsx232 } from "react/jsx-runtime";
12957
+ import { jsx as jsx242 } from "react/jsx-runtime";
12921
12958
  function cn(...inputs) {
12922
12959
  return twMerge(clsx(inputs));
12923
12960
  }
@@ -12936,7 +12973,7 @@ var getChildNodeFrom = (htmlElement) => {
12936
12973
  return childNode;
12937
12974
  };
12938
12975
  var useHoverTransforms = (ref, disabled) => {
12939
- const [state, setState] = React6.useState({
12976
+ const [state, setState] = React7.useState({
12940
12977
  progress: 0,
12941
12978
  isActive: false
12942
12979
  });
@@ -12948,7 +12985,7 @@ var useHoverTransforms = (ref, disabled) => {
12948
12985
  eventTarget.dispatchEvent(new Event("enabled"));
12949
12986
  }
12950
12987
  }, [disabled, eventTarget]);
12951
- React6.useEffect(() => {
12988
+ React7.useEffect(() => {
12952
12989
  const element = ref.current;
12953
12990
  if (!element)
12954
12991
  return;
@@ -13023,8 +13060,8 @@ var useHoverTransforms = (ref, disabled) => {
13023
13060
  return state;
13024
13061
  };
13025
13062
  var useClickTransforms = (ref) => {
13026
- const [hoverProgress, setHoverProgress] = React6.useState(0);
13027
- React6.useEffect(() => {
13063
+ const [hoverProgress, setHoverProgress] = React7.useState(0);
13064
+ React7.useEffect(() => {
13028
13065
  const element = getChildNodeFrom(ref.current);
13029
13066
  if (!element) {
13030
13067
  return;
@@ -13147,6 +13184,7 @@ var Outer = ({
13147
13184
  const depth = depthFromHover;
13148
13185
  const frontFace = reduceMatrices([
13149
13186
  translateZ(-depth / 2 + depthFromClick),
13187
+ translateZ(1.1),
13150
13188
  transformation
13151
13189
  ]);
13152
13190
  const centerOriented = reduceMatrices([
@@ -13197,10 +13235,56 @@ var Outer = ({
13197
13235
  ]
13198
13236
  });
13199
13237
  };
13200
- var Button = ({ children, className, disabled, depth, ...buttonProps }) => {
13238
+ var viewBox = 100;
13239
+ var lines = 8;
13240
+ var translated2 = "M 44 0 L 50 0 a 6 6 0 0 1 6 6 L 56 26 a 6 6 0 0 1 -6 6 L 50 32 a 6 6 0 0 1 -6 -6 L 44 6 a 6 6 0 0 1 6 -6 Z";
13241
+ var Spinner = ({ size, duration }) => {
13242
+ const style = useMemo210(() => {
13243
+ return {
13244
+ width: size,
13245
+ height: size
13246
+ };
13247
+ }, [size]);
13248
+ const pathsRef = useRef18([]);
13249
+ useEffect24(() => {
13250
+ const animate = () => {
13251
+ const now = performance.now();
13252
+ for (let index = 0;index < lines; index++) {
13253
+ const path = pathsRef.current[index];
13254
+ if (!path)
13255
+ continue;
13256
+ const progress = (now / 1000 - index * (duration / lines)) % duration / duration;
13257
+ const opacity = 1 - 0.85 * progress;
13258
+ path.style.opacity = opacity.toString();
13259
+ }
13260
+ requestAnimationFrame(animate);
13261
+ };
13262
+ const id = requestAnimationFrame(animate);
13263
+ return () => {
13264
+ cancelAnimationFrame(id);
13265
+ };
13266
+ }, [duration]);
13267
+ return /* @__PURE__ */ jsx38("svg", {
13268
+ style,
13269
+ viewBox: `0 0 ${viewBox} ${viewBox}`,
13270
+ children: new Array(lines).fill(true).map((_, index) => {
13271
+ return /* @__PURE__ */ jsx38("path", {
13272
+ ref: (el) => pathsRef.current[index] = el,
13273
+ style: {
13274
+ rotate: `${index * Math.PI * 2 / lines}rad`,
13275
+ transformOrigin: "center center",
13276
+ opacity: 1
13277
+ },
13278
+ d: translated2,
13279
+ fill: "currentColor"
13280
+ }, index);
13281
+ })
13282
+ });
13283
+ };
13284
+ var Button = ({ children, className, disabled, depth, loading, ...buttonProps }) => {
13201
13285
  const [dimensions, setDimensions] = useState22(null);
13202
- const ref = useRef18(null);
13203
- const { isActive, progress } = useHoverTransforms(ref, Boolean(disabled));
13286
+ const ref = useRef22(null);
13287
+ const { isActive, progress } = useHoverTransforms(ref, Boolean(disabled || loading));
13204
13288
  const onPointerEnter = useCallback18((e) => {
13205
13289
  if (e.pointerType !== "mouse") {
13206
13290
  return;
@@ -13235,18 +13319,30 @@ var Button = ({ children, className, disabled, depth, ...buttonProps }) => {
13235
13319
  };
13236
13320
  });
13237
13321
  }, []);
13238
- const content = /* @__PURE__ */ jsx38("button", {
13322
+ const content = /* @__PURE__ */ jsxs23("button", {
13239
13323
  type: "button",
13240
- disabled,
13241
- className: cn("text-text", "flex", "justify-center", "bg-button-bg", "items-center", "font-brand", "border-solid", "text-[1em]", "rounded-lg", "border-black", "border-2", "border-b-4", "cursor-pointer", "px-4", "h-12", "flex", "flex-row", "items-center", "disabled:cursor-default", "disabled:border-gray-500", "disabled:text-gray-500", className),
13324
+ disabled: disabled || loading,
13325
+ className: cn("text-text", "flex", "justify-center", "bg-button-bg", "items-center", "font-brand", "border-solid", "text-[1em]", "rounded-lg", "border-black", "border-2", "border-b-4", "cursor-pointer", "px-4", "h-12", "flex", "flex-row", "items-center", "disabled:cursor-default", "disabled:opacity-50", "relative", "overflow-hidden", className),
13242
13326
  ...buttonProps,
13243
- children
13327
+ children: [
13328
+ /* @__PURE__ */ jsx43("div", {
13329
+ className: cn(loading && "invisible", "inline-flex"),
13330
+ children
13331
+ }),
13332
+ loading ? /* @__PURE__ */ jsx43("div", {
13333
+ className: cn("absolute w-full h-full flex inset-0 items-center justify-center text-inherit bg-inherit"),
13334
+ children: /* @__PURE__ */ jsx43(Spinner, {
13335
+ size: 20,
13336
+ duration: 1
13337
+ })
13338
+ }) : null
13339
+ ]
13244
13340
  });
13245
- return /* @__PURE__ */ jsx38("div", {
13341
+ return /* @__PURE__ */ jsx43("div", {
13246
13342
  ref,
13247
13343
  className: "contents",
13248
13344
  onPointerEnter,
13249
- children: dimensions && (isActive || progress > 0) ? /* @__PURE__ */ jsx38(Outer, {
13345
+ children: dimensions && (isActive || progress > 0) ? /* @__PURE__ */ jsx43(Outer, {
13250
13346
  parentRef: ref,
13251
13347
  width: dimensions.width,
13252
13348
  height: dimensions.height,
@@ -13257,8 +13353,8 @@ var Button = ({ children, className, disabled, depth, ...buttonProps }) => {
13257
13353
  }) : content
13258
13354
  });
13259
13355
  };
13260
- var Card = React34.forwardRef(({ children, className, ...rest }, ref) => {
13261
- return /* @__PURE__ */ jsx43("div", {
13356
+ var Card = React42.forwardRef(({ children, className, ...rest }, ref) => {
13357
+ return /* @__PURE__ */ jsx53("div", {
13262
13358
  ref,
13263
13359
  className: cn("rounded-lg border-2 border-black bg-card-bg text-text border-b-4", className),
13264
13360
  ...rest,
@@ -13268,18 +13364,18 @@ var Card = React34.forwardRef(({ children, className, ...rest }, ref) => {
13268
13364
  Card.displayName = "Card";
13269
13365
  var d = "M143.056 81.4934C147.25 77.2994 147.25 70.4506 143.056 66.2566C138.862 62.0627 132.013 62.0627 127.819 66.2566L86.1875 107.888L69.1809 90.8816C64.9869 86.6877 58.1381 86.6877 53.9441 90.8816C49.7502 95.0756 49.7502 101.924 53.9441 106.118L78.5691 130.743C82.7631 134.937 89.6119 134.937 93.8059 130.743L143.056 81.4934Z";
13270
13366
  var CheckIcon = (props) => {
13271
- return /* @__PURE__ */ jsx53("svg", {
13367
+ return /* @__PURE__ */ jsx63("svg", {
13272
13368
  ...props,
13273
13369
  viewBox: "50.79867500000001 63.11117499999997 95.40282500000015 70.77732499999999",
13274
13370
  fill: "none",
13275
13371
  xmlns: "http://www.w3.org/2000/svg",
13276
- children: /* @__PURE__ */ jsx53("path", {
13372
+ children: /* @__PURE__ */ jsx63("path", {
13277
13373
  d,
13278
13374
  fill: "currentcolor"
13279
13375
  })
13280
13376
  });
13281
13377
  };
13282
- var Triangle = ({ rotated: rotated2 }) => /* @__PURE__ */ jsx63("svg", {
13378
+ var Triangle = ({ rotated: rotated2 }) => /* @__PURE__ */ jsx73("svg", {
13283
13379
  width: "12px",
13284
13380
  height: "7px",
13285
13381
  viewBox: "0 0 12 7",
@@ -13287,7 +13383,7 @@ var Triangle = ({ rotated: rotated2 }) => /* @__PURE__ */ jsx63("svg", {
13287
13383
  style: {
13288
13384
  transform: rotated2 ? "rotate(180deg)" : "rotate(0deg)"
13289
13385
  },
13290
- children: /* @__PURE__ */ jsx63("path", {
13386
+ children: /* @__PURE__ */ jsx73("path", {
13291
13387
  className: "fill-text",
13292
13388
  d: "M7.17096 0.475588C6.73198 0.0764969 6.01906 0.0764969 5.58007 0.475588L1.08483 4.56228C0.761737 4.85601 0.666915 5.29341 0.84251 5.67654C1.01811 6.05966 1.42549 6.3087 1.88203 6.3087H10.8725C11.3255 6.3087 11.7364 6.05966 11.912 5.67654C12.0876 5.29341 11.9893 4.85601 11.6697 4.56228L7.17448 0.475588H7.17096Z"
13293
13389
  })
@@ -13322,11 +13418,11 @@ var Counter = ({
13322
13418
  const increment = () => {
13323
13419
  setCount(count + step);
13324
13420
  };
13325
- return /* @__PURE__ */ jsxs23(Card, {
13421
+ return /* @__PURE__ */ jsxs32(Card, {
13326
13422
  style: container2,
13327
13423
  className: cn("w-[140px] flex flex-row overflow-hidden"),
13328
13424
  children: [
13329
- /* @__PURE__ */ jsx63("input", {
13425
+ /* @__PURE__ */ jsx73("input", {
13330
13426
  className: "fontbrand text-2xl font-medium min-w-[80px] border-0 text-end outline-0 text-text overflow-hidden flex-1 px-0 py-0 pr-2 w-full h-full tabular-nums",
13331
13427
  type: "number",
13332
13428
  onClick: (e) => e.currentTarget.select(),
@@ -13346,28 +13442,28 @@ var Counter = ({
13346
13442
  }
13347
13443
  }
13348
13444
  }),
13349
- /* @__PURE__ */ jsxs23("div", {
13445
+ /* @__PURE__ */ jsxs32("div", {
13350
13446
  className: "flex flex-col h-full",
13351
13447
  children: [
13352
- /* @__PURE__ */ jsx63("button", {
13448
+ /* @__PURE__ */ jsx73("button", {
13353
13449
  type: "button",
13354
13450
  className: "border-0 flex-1 p-0 pt-[5px] bg-transparent",
13355
13451
  style: {
13356
13452
  ...buttonContainer
13357
13453
  },
13358
13454
  onClick: increment,
13359
- children: /* @__PURE__ */ jsx63(Triangle, {
13455
+ children: /* @__PURE__ */ jsx73(Triangle, {
13360
13456
  rotated: false
13361
13457
  })
13362
13458
  }),
13363
- /* @__PURE__ */ jsx63("button", {
13459
+ /* @__PURE__ */ jsx73("button", {
13364
13460
  type: "button",
13365
13461
  className: "border-0 flex-1 p-0 bg-transparent pb-[5px] pl-[1px]",
13366
13462
  style: {
13367
13463
  ...buttonContainer
13368
13464
  },
13369
13465
  onClick: decrement,
13370
- children: /* @__PURE__ */ jsx63(Triangle, {
13466
+ children: /* @__PURE__ */ jsx73(Triangle, {
13371
13467
  rotated: true
13372
13468
  })
13373
13469
  })
@@ -13376,12 +13472,20 @@ var Counter = ({
13376
13472
  ]
13377
13473
  });
13378
13474
  };
13475
+ var Input = React52.forwardRef(({ className, ...props }, ref) => {
13476
+ return /* @__PURE__ */ jsx83("input", {
13477
+ ref,
13478
+ className: cn("w-full dark:bg-[#121212] rounded-lg border-2 border-b-4 border-black outline-none h-14 px-3 fontbrand text-lg box-border", className),
13479
+ ...props
13480
+ });
13481
+ });
13482
+ Input.displayName = "Input";
13379
13483
  var PlanePaperIcon = (props) => {
13380
- return /* @__PURE__ */ jsx73("svg", {
13484
+ return /* @__PURE__ */ jsx93("svg", {
13381
13485
  xmlns: "http://www.w3.org/2000/svg",
13382
13486
  ...props,
13383
13487
  viewBox: "0 0 576 512",
13384
- children: /* @__PURE__ */ jsx73("path", {
13488
+ children: /* @__PURE__ */ jsx93("path", {
13385
13489
  fill: "currentcolor",
13386
13490
  d: "M169.9 280L94.9 448.6 461.2 280 169.9 280zm291.3-48L94.9 63.4 169.9 232 461.2 232zM34.8 465.6L128 256 34.8 46.4C33 42.2 32 37.6 32 33 32 14.8 46.7 0 64.8 0 69.5 0 74.2 1 78.5 3L554.2 222c13.3 6.1 21.8 19.4 21.8 34s-8.5 27.9-21.8 34L78.5 509c-4.3 2-9 3-13.7 3-18.1 0-32.8-14.8-32.8-33 0-4.6 1-9.2 2.8-13.4z"
13387
13491
  })
@@ -13401,18 +13505,18 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
13401
13505
  function createContextScope(scopeName, createContextScopeDeps = []) {
13402
13506
  let defaultContexts = [];
13403
13507
  function createContext32(rootComponentName, defaultContext) {
13404
- const BaseContext = React42.createContext(defaultContext);
13508
+ const BaseContext = React62.createContext(defaultContext);
13405
13509
  const index = defaultContexts.length;
13406
13510
  defaultContexts = [...defaultContexts, defaultContext];
13407
13511
  function Provider(props) {
13408
13512
  const { scope, children, ...context } = props;
13409
13513
  const Context = scope?.[scopeName][index] || BaseContext;
13410
- const value = React42.useMemo(() => context, Object.values(context));
13411
- return /* @__PURE__ */ jsx83(Context.Provider, { value, children });
13514
+ const value = React62.useMemo(() => context, Object.values(context));
13515
+ return /* @__PURE__ */ jsx103(Context.Provider, { value, children });
13412
13516
  }
13413
13517
  function useContext210(consumerName, scope) {
13414
13518
  const Context = scope?.[scopeName][index] || BaseContext;
13415
- const context = React42.useContext(Context);
13519
+ const context = React62.useContext(Context);
13416
13520
  if (context)
13417
13521
  return context;
13418
13522
  if (defaultContext !== undefined)
@@ -13424,11 +13528,11 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
13424
13528
  }
13425
13529
  const createScope = () => {
13426
13530
  const scopeContexts = defaultContexts.map((defaultContext) => {
13427
- return React42.createContext(defaultContext);
13531
+ return React62.createContext(defaultContext);
13428
13532
  });
13429
13533
  return function useScope(scope) {
13430
13534
  const contexts = scope?.[scopeName] || scopeContexts;
13431
- return React42.useMemo(() => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }), [scope, contexts]);
13535
+ return React62.useMemo(() => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }), [scope, contexts]);
13432
13536
  };
13433
13537
  };
13434
13538
  createScope.scopeName = scopeName;
@@ -13449,7 +13553,7 @@ function composeContextScopes(...scopes) {
13449
13553
  const currentScope = scopeProps[`__scope${scopeName}`];
13450
13554
  return { ...nextScopes2, ...currentScope };
13451
13555
  }, {});
13452
- return React42.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
13556
+ return React62.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
13453
13557
  };
13454
13558
  };
13455
13559
  createScope.scopeName = baseScope.scopeName;
@@ -13466,45 +13570,45 @@ function composeRefs(...refs) {
13466
13570
  return (node) => refs.forEach((ref) => setRef(ref, node));
13467
13571
  }
13468
13572
  function useComposedRefs(...refs) {
13469
- return React52.useCallback(composeRefs(...refs), refs);
13573
+ return React72.useCallback(composeRefs(...refs), refs);
13470
13574
  }
13471
- var Slot = React62.forwardRef((props, forwardedRef) => {
13575
+ var Slot = React8.forwardRef((props, forwardedRef) => {
13472
13576
  const { children, ...slotProps } = props;
13473
- const childrenArray = React62.Children.toArray(children);
13577
+ const childrenArray = React8.Children.toArray(children);
13474
13578
  const slottable = childrenArray.find(isSlottable);
13475
13579
  if (slottable) {
13476
13580
  const newElement = slottable.props.children;
13477
13581
  const newChildren = childrenArray.map((child) => {
13478
13582
  if (child === slottable) {
13479
- if (React62.Children.count(newElement) > 1)
13480
- return React62.Children.only(null);
13481
- return React62.isValidElement(newElement) ? newElement.props.children : null;
13583
+ if (React8.Children.count(newElement) > 1)
13584
+ return React8.Children.only(null);
13585
+ return React8.isValidElement(newElement) ? newElement.props.children : null;
13482
13586
  } else {
13483
13587
  return child;
13484
13588
  }
13485
13589
  });
13486
- return /* @__PURE__ */ jsx93(SlotClone, { ...slotProps, ref: forwardedRef, children: React62.isValidElement(newElement) ? React62.cloneElement(newElement, undefined, newChildren) : null });
13590
+ return /* @__PURE__ */ jsx112(SlotClone, { ...slotProps, ref: forwardedRef, children: React8.isValidElement(newElement) ? React8.cloneElement(newElement, undefined, newChildren) : null });
13487
13591
  }
13488
- return /* @__PURE__ */ jsx93(SlotClone, { ...slotProps, ref: forwardedRef, children });
13592
+ return /* @__PURE__ */ jsx112(SlotClone, { ...slotProps, ref: forwardedRef, children });
13489
13593
  });
13490
13594
  Slot.displayName = "Slot";
13491
- var SlotClone = React62.forwardRef((props, forwardedRef) => {
13595
+ var SlotClone = React8.forwardRef((props, forwardedRef) => {
13492
13596
  const { children, ...slotProps } = props;
13493
- if (React62.isValidElement(children)) {
13597
+ if (React8.isValidElement(children)) {
13494
13598
  const childrenRef = getElementRef(children);
13495
- return React62.cloneElement(children, {
13599
+ return React8.cloneElement(children, {
13496
13600
  ...mergeProps(slotProps, children.props),
13497
13601
  ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
13498
13602
  });
13499
13603
  }
13500
- return React62.Children.count(children) > 1 ? React62.Children.only(null) : null;
13604
+ return React8.Children.count(children) > 1 ? React8.Children.only(null) : null;
13501
13605
  });
13502
13606
  SlotClone.displayName = "SlotClone";
13503
13607
  var Slottable = ({ children }) => {
13504
- return /* @__PURE__ */ jsx93(Fragment2, { children });
13608
+ return /* @__PURE__ */ jsx112(Fragment2, { children });
13505
13609
  };
13506
13610
  function isSlottable(child) {
13507
- return React62.isValidElement(child) && child.type === Slottable;
13611
+ return React8.isValidElement(child) && child.type === Slottable;
13508
13612
  }
13509
13613
  function mergeProps(slotProps, childProps) {
13510
13614
  const overrideProps = { ...childProps };
@@ -13548,36 +13652,36 @@ function createCollection(name) {
13548
13652
  const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map });
13549
13653
  const CollectionProvider = (props) => {
13550
13654
  const { scope, children } = props;
13551
- const ref = React7.useRef(null);
13552
- const itemMap = React7.useRef(/* @__PURE__ */ new Map).current;
13553
- return /* @__PURE__ */ jsx103(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
13655
+ const ref = React9.useRef(null);
13656
+ const itemMap = React9.useRef(/* @__PURE__ */ new Map).current;
13657
+ return /* @__PURE__ */ jsx122(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
13554
13658
  };
13555
13659
  CollectionProvider.displayName = PROVIDER_NAME;
13556
13660
  const COLLECTION_SLOT_NAME = name + "CollectionSlot";
13557
- const CollectionSlot = React7.forwardRef((props, forwardedRef) => {
13661
+ const CollectionSlot = React9.forwardRef((props, forwardedRef) => {
13558
13662
  const { scope, children } = props;
13559
13663
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
13560
13664
  const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
13561
- return /* @__PURE__ */ jsx103(Slot, { ref: composedRefs, children });
13665
+ return /* @__PURE__ */ jsx122(Slot, { ref: composedRefs, children });
13562
13666
  });
13563
13667
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
13564
13668
  const ITEM_SLOT_NAME = name + "CollectionItemSlot";
13565
13669
  const ITEM_DATA_ATTR = "data-radix-collection-item";
13566
- const CollectionItemSlot = React7.forwardRef((props, forwardedRef) => {
13670
+ const CollectionItemSlot = React9.forwardRef((props, forwardedRef) => {
13567
13671
  const { scope, children, ...itemData } = props;
13568
- const ref = React7.useRef(null);
13672
+ const ref = React9.useRef(null);
13569
13673
  const composedRefs = useComposedRefs(forwardedRef, ref);
13570
13674
  const context = useCollectionContext(ITEM_SLOT_NAME, scope);
13571
- React7.useEffect(() => {
13675
+ React9.useEffect(() => {
13572
13676
  context.itemMap.set(ref, { ref, ...itemData });
13573
13677
  return () => void context.itemMap.delete(ref);
13574
13678
  });
13575
- return /* @__PURE__ */ jsx103(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
13679
+ return /* @__PURE__ */ jsx122(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
13576
13680
  });
13577
13681
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
13578
13682
  function useCollection(scope) {
13579
13683
  const context = useCollectionContext(name + "CollectionConsumer", scope);
13580
- const getItems = React7.useCallback(() => {
13684
+ const getItems = React9.useCallback(() => {
13581
13685
  const collectionNode = context.collectionRef.current;
13582
13686
  if (!collectionNode)
13583
13687
  return [];
@@ -13594,9 +13698,9 @@ function createCollection(name) {
13594
13698
  createCollectionScope
13595
13699
  ];
13596
13700
  }
13597
- var DirectionContext = React8.createContext(undefined);
13701
+ var DirectionContext = React10.createContext(undefined);
13598
13702
  function useDirection(localDir) {
13599
- const globalDir = React8.useContext(DirectionContext);
13703
+ const globalDir = React10.useContext(DirectionContext);
13600
13704
  return localDir || globalDir || "ltr";
13601
13705
  }
13602
13706
  var NODES = [
@@ -13618,13 +13722,13 @@ var NODES = [
13618
13722
  "ul"
13619
13723
  ];
13620
13724
  var Primitive = NODES.reduce((primitive, node) => {
13621
- const Node2 = React9.forwardRef((props, forwardedRef) => {
13725
+ const Node2 = React112.forwardRef((props, forwardedRef) => {
13622
13726
  const { asChild, ...primitiveProps } = props;
13623
13727
  const Comp = asChild ? Slot : node;
13624
13728
  if (typeof window !== "undefined") {
13625
13729
  window[Symbol.for("radix-ui")] = true;
13626
13730
  }
13627
- return /* @__PURE__ */ jsx122(Comp, { ...primitiveProps, ref: forwardedRef });
13731
+ return /* @__PURE__ */ jsx142(Comp, { ...primitiveProps, ref: forwardedRef });
13628
13732
  });
13629
13733
  Node2.displayName = `Primitive.${node}`;
13630
13734
  return { ...primitive, [node]: Node2 };
@@ -13634,15 +13738,15 @@ function dispatchDiscreteCustomEvent(target, event) {
13634
13738
  ReactDOM.flushSync(() => target.dispatchEvent(event));
13635
13739
  }
13636
13740
  function useCallbackRef(callback) {
13637
- const callbackRef = React102.useRef(callback);
13638
- React102.useEffect(() => {
13741
+ const callbackRef = React122.useRef(callback);
13742
+ React122.useEffect(() => {
13639
13743
  callbackRef.current = callback;
13640
13744
  });
13641
- return React102.useMemo(() => (...args) => callbackRef.current?.(...args), []);
13745
+ return React122.useMemo(() => (...args) => callbackRef.current?.(...args), []);
13642
13746
  }
13643
13747
  function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
13644
13748
  const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
13645
- React112.useEffect(() => {
13749
+ React13.useEffect(() => {
13646
13750
  const handleKeyDown = (event) => {
13647
13751
  if (event.key === "Escape") {
13648
13752
  onEscapeKeyDown(event);
@@ -13657,12 +13761,12 @@ var CONTEXT_UPDATE = "dismissableLayer.update";
13657
13761
  var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
13658
13762
  var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
13659
13763
  var originalBodyPointerEvents;
13660
- var DismissableLayerContext = React12.createContext({
13764
+ var DismissableLayerContext = React14.createContext({
13661
13765
  layers: /* @__PURE__ */ new Set,
13662
13766
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set,
13663
13767
  branches: /* @__PURE__ */ new Set
13664
13768
  });
13665
- var DismissableLayer = React12.forwardRef((props, forwardedRef) => {
13769
+ var DismissableLayer = React14.forwardRef((props, forwardedRef) => {
13666
13770
  const {
13667
13771
  disableOutsidePointerEvents = false,
13668
13772
  onEscapeKeyDown,
@@ -13672,10 +13776,10 @@ var DismissableLayer = React12.forwardRef((props, forwardedRef) => {
13672
13776
  onDismiss,
13673
13777
  ...layerProps
13674
13778
  } = props;
13675
- const context = React12.useContext(DismissableLayerContext);
13676
- const [node, setNode] = React12.useState(null);
13779
+ const context = React14.useContext(DismissableLayerContext);
13780
+ const [node, setNode] = React14.useState(null);
13677
13781
  const ownerDocument = node?.ownerDocument ?? globalThis?.document;
13678
- const [, force] = React12.useState({});
13782
+ const [, force] = React14.useState({});
13679
13783
  const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
13680
13784
  const layers = Array.from(context.layers);
13681
13785
  const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
@@ -13713,7 +13817,7 @@ var DismissableLayer = React12.forwardRef((props, forwardedRef) => {
13713
13817
  onDismiss();
13714
13818
  }
13715
13819
  }, ownerDocument);
13716
- React12.useEffect(() => {
13820
+ React14.useEffect(() => {
13717
13821
  if (!node)
13718
13822
  return;
13719
13823
  if (disableOutsidePointerEvents) {
@@ -13731,7 +13835,7 @@ var DismissableLayer = React12.forwardRef((props, forwardedRef) => {
13731
13835
  }
13732
13836
  };
13733
13837
  }, [node, ownerDocument, disableOutsidePointerEvents, context]);
13734
- React12.useEffect(() => {
13838
+ React14.useEffect(() => {
13735
13839
  return () => {
13736
13840
  if (!node)
13737
13841
  return;
@@ -13740,12 +13844,12 @@ var DismissableLayer = React12.forwardRef((props, forwardedRef) => {
13740
13844
  dispatchUpdate();
13741
13845
  };
13742
13846
  }, [node, context]);
13743
- React12.useEffect(() => {
13847
+ React14.useEffect(() => {
13744
13848
  const handleUpdate = () => force({});
13745
13849
  document.addEventListener(CONTEXT_UPDATE, handleUpdate);
13746
13850
  return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
13747
13851
  }, []);
13748
- return /* @__PURE__ */ jsx132(Primitive.div, {
13852
+ return /* @__PURE__ */ jsx152(Primitive.div, {
13749
13853
  ...layerProps,
13750
13854
  ref: composedRefs,
13751
13855
  style: {
@@ -13759,11 +13863,11 @@ var DismissableLayer = React12.forwardRef((props, forwardedRef) => {
13759
13863
  });
13760
13864
  DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
13761
13865
  var BRANCH_NAME = "DismissableLayerBranch";
13762
- var DismissableLayerBranch = React12.forwardRef((props, forwardedRef) => {
13763
- const context = React12.useContext(DismissableLayerContext);
13764
- const ref = React12.useRef(null);
13866
+ var DismissableLayerBranch = React14.forwardRef((props, forwardedRef) => {
13867
+ const context = React14.useContext(DismissableLayerContext);
13868
+ const ref = React14.useRef(null);
13765
13869
  const composedRefs = useComposedRefs(forwardedRef, ref);
13766
- React12.useEffect(() => {
13870
+ React14.useEffect(() => {
13767
13871
  const node = ref.current;
13768
13872
  if (node) {
13769
13873
  context.branches.add(node);
@@ -13772,14 +13876,14 @@ var DismissableLayerBranch = React12.forwardRef((props, forwardedRef) => {
13772
13876
  };
13773
13877
  }
13774
13878
  }, [context.branches]);
13775
- return /* @__PURE__ */ jsx132(Primitive.div, { ...props, ref: composedRefs });
13879
+ return /* @__PURE__ */ jsx152(Primitive.div, { ...props, ref: composedRefs });
13776
13880
  });
13777
13881
  DismissableLayerBranch.displayName = BRANCH_NAME;
13778
13882
  function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
13779
13883
  const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
13780
- const isPointerInsideReactTreeRef = React12.useRef(false);
13781
- const handleClickRef = React12.useRef(() => {});
13782
- React12.useEffect(() => {
13884
+ const isPointerInsideReactTreeRef = React14.useRef(false);
13885
+ const handleClickRef = React14.useRef(() => {});
13886
+ React14.useEffect(() => {
13783
13887
  const handlePointerDown = (event) => {
13784
13888
  if (event.target && !isPointerInsideReactTreeRef.current) {
13785
13889
  let handleAndDispatchPointerDownOutsideEvent2 = function() {
@@ -13814,8 +13918,8 @@ function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?
13814
13918
  }
13815
13919
  function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
13816
13920
  const handleFocusOutside = useCallbackRef(onFocusOutside);
13817
- const isFocusInsideReactTreeRef = React12.useRef(false);
13818
- React12.useEffect(() => {
13921
+ const isFocusInsideReactTreeRef = React14.useRef(false);
13922
+ React14.useEffect(() => {
13819
13923
  const handleFocus = (event) => {
13820
13924
  if (event.target && !isFocusInsideReactTreeRef.current) {
13821
13925
  const eventDetail = { originalEvent: event };
@@ -13849,7 +13953,7 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
13849
13953
  }
13850
13954
  var count = 0;
13851
13955
  function useFocusGuards() {
13852
- React13.useEffect(() => {
13956
+ React152.useEffect(() => {
13853
13957
  const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
13854
13958
  document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
13855
13959
  document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
@@ -13873,7 +13977,7 @@ var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
13873
13977
  var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
13874
13978
  var EVENT_OPTIONS = { bubbles: false, cancelable: true };
13875
13979
  var FOCUS_SCOPE_NAME = "FocusScope";
13876
- var FocusScope = React142.forwardRef((props, forwardedRef) => {
13980
+ var FocusScope = React162.forwardRef((props, forwardedRef) => {
13877
13981
  const {
13878
13982
  loop = false,
13879
13983
  trapped = false,
@@ -13881,12 +13985,12 @@ var FocusScope = React142.forwardRef((props, forwardedRef) => {
13881
13985
  onUnmountAutoFocus: onUnmountAutoFocusProp,
13882
13986
  ...scopeProps
13883
13987
  } = props;
13884
- const [container22, setContainer] = React142.useState(null);
13988
+ const [container22, setContainer] = React162.useState(null);
13885
13989
  const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
13886
13990
  const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
13887
- const lastFocusedElementRef = React142.useRef(null);
13991
+ const lastFocusedElementRef = React162.useRef(null);
13888
13992
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));
13889
- const focusScope = React142.useRef({
13993
+ const focusScope = React162.useRef({
13890
13994
  paused: false,
13891
13995
  pause() {
13892
13996
  this.paused = true;
@@ -13895,7 +13999,7 @@ var FocusScope = React142.forwardRef((props, forwardedRef) => {
13895
13999
  this.paused = false;
13896
14000
  }
13897
14001
  }).current;
13898
- React142.useEffect(() => {
14002
+ React162.useEffect(() => {
13899
14003
  if (trapped) {
13900
14004
  let handleFocusIn2 = function(event) {
13901
14005
  if (focusScope.paused || !container22)
@@ -13937,7 +14041,7 @@ var FocusScope = React142.forwardRef((props, forwardedRef) => {
13937
14041
  };
13938
14042
  }
13939
14043
  }, [trapped, container22, focusScope.paused]);
13940
- React142.useEffect(() => {
14044
+ React162.useEffect(() => {
13941
14045
  if (container22) {
13942
14046
  focusScopesStack.add(focusScope);
13943
14047
  const previouslyFocusedElement = document.activeElement;
@@ -13968,7 +14072,7 @@ var FocusScope = React142.forwardRef((props, forwardedRef) => {
13968
14072
  };
13969
14073
  }
13970
14074
  }, [container22, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
13971
- const handleKeyDown = React142.useCallback((event) => {
14075
+ const handleKeyDown = React162.useCallback((event) => {
13972
14076
  if (!loop && !trapped)
13973
14077
  return;
13974
14078
  if (focusScope.paused)
@@ -13995,7 +14099,7 @@ var FocusScope = React142.forwardRef((props, forwardedRef) => {
13995
14099
  }
13996
14100
  }
13997
14101
  }, [loop, trapped, focusScope.paused]);
13998
- return /* @__PURE__ */ jsx142(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
14102
+ return /* @__PURE__ */ jsx162(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
13999
14103
  });
14000
14104
  FocusScope.displayName = FOCUS_SCOPE_NAME;
14001
14105
  function focusFirst(candidates, { select = false } = {}) {
@@ -14084,13 +14188,13 @@ function arrayRemove(array, item) {
14084
14188
  function removeLinks(items) {
14085
14189
  return items.filter((item) => item.tagName !== "A");
14086
14190
  }
14087
- var useLayoutEffect22 = Boolean(globalThis?.document) ? React152.useLayoutEffect : () => {};
14088
- var useReactId = React162["useId".toString()] || (() => {
14191
+ var useLayoutEffect22 = Boolean(globalThis?.document) ? React172.useLayoutEffect : () => {};
14192
+ var useReactId = React18["useId".toString()] || (() => {
14089
14193
  return;
14090
14194
  });
14091
14195
  var count2 = 0;
14092
14196
  function useId(deterministicId) {
14093
- const [id, setId] = React162.useState(useReactId());
14197
+ const [id, setId] = React18.useState(useReactId());
14094
14198
  useLayoutEffect22(() => {
14095
14199
  if (!deterministicId)
14096
14200
  setId((reactId) => reactId ?? String(count2++));
@@ -15608,7 +15712,7 @@ var computePosition2 = (reference, floating, options) => {
15608
15712
  platform: platformWithCache
15609
15713
  });
15610
15714
  };
15611
- var index = typeof document !== "undefined" ? useLayoutEffect32 : useEffect72;
15715
+ var index = typeof document !== "undefined" ? useLayoutEffect32 : useEffect82;
15612
15716
  function deepEqual(a, b) {
15613
15717
  if (a === b) {
15614
15718
  return true;
@@ -15669,7 +15773,7 @@ function roundByDPR(element, value) {
15669
15773
  return Math.round(value * dpr) / dpr;
15670
15774
  }
15671
15775
  function useLatestRef(value) {
15672
- const ref = React172.useRef(value);
15776
+ const ref = React19.useRef(value);
15673
15777
  index(() => {
15674
15778
  ref.current = value;
15675
15779
  });
@@ -15692,7 +15796,7 @@ function useFloating(options) {
15692
15796
  whileElementsMounted,
15693
15797
  open
15694
15798
  } = options;
15695
- const [data, setData] = React172.useState({
15799
+ const [data, setData] = React19.useState({
15696
15800
  x: 0,
15697
15801
  y: 0,
15698
15802
  strategy,
@@ -15700,19 +15804,19 @@ function useFloating(options) {
15700
15804
  middlewareData: {},
15701
15805
  isPositioned: false
15702
15806
  });
15703
- const [latestMiddleware, setLatestMiddleware] = React172.useState(middleware);
15807
+ const [latestMiddleware, setLatestMiddleware] = React19.useState(middleware);
15704
15808
  if (!deepEqual(latestMiddleware, middleware)) {
15705
15809
  setLatestMiddleware(middleware);
15706
15810
  }
15707
- const [_reference, _setReference] = React172.useState(null);
15708
- const [_floating, _setFloating] = React172.useState(null);
15709
- const setReference = React172.useCallback((node) => {
15811
+ const [_reference, _setReference] = React19.useState(null);
15812
+ const [_floating, _setFloating] = React19.useState(null);
15813
+ const setReference = React19.useCallback((node) => {
15710
15814
  if (node !== referenceRef.current) {
15711
15815
  referenceRef.current = node;
15712
15816
  _setReference(node);
15713
15817
  }
15714
15818
  }, []);
15715
- const setFloating = React172.useCallback((node) => {
15819
+ const setFloating = React19.useCallback((node) => {
15716
15820
  if (node !== floatingRef.current) {
15717
15821
  floatingRef.current = node;
15718
15822
  _setFloating(node);
@@ -15720,13 +15824,13 @@ function useFloating(options) {
15720
15824
  }, []);
15721
15825
  const referenceEl = externalReference || _reference;
15722
15826
  const floatingEl = externalFloating || _floating;
15723
- const referenceRef = React172.useRef(null);
15724
- const floatingRef = React172.useRef(null);
15725
- const dataRef = React172.useRef(data);
15827
+ const referenceRef = React19.useRef(null);
15828
+ const floatingRef = React19.useRef(null);
15829
+ const dataRef = React19.useRef(data);
15726
15830
  const hasWhileElementsMounted = whileElementsMounted != null;
15727
15831
  const whileElementsMountedRef = useLatestRef(whileElementsMounted);
15728
15832
  const platformRef = useLatestRef(platform2);
15729
- const update = React172.useCallback(() => {
15833
+ const update = React19.useCallback(() => {
15730
15834
  if (!referenceRef.current || !floatingRef.current) {
15731
15835
  return;
15732
15836
  }
@@ -15760,7 +15864,7 @@ function useFloating(options) {
15760
15864
  }));
15761
15865
  }
15762
15866
  }, [open]);
15763
- const isMountedRef = React172.useRef(false);
15867
+ const isMountedRef = React19.useRef(false);
15764
15868
  index(() => {
15765
15869
  isMountedRef.current = true;
15766
15870
  return () => {
@@ -15779,17 +15883,17 @@ function useFloating(options) {
15779
15883
  update();
15780
15884
  }
15781
15885
  }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
15782
- const refs = React172.useMemo(() => ({
15886
+ const refs = React19.useMemo(() => ({
15783
15887
  reference: referenceRef,
15784
15888
  floating: floatingRef,
15785
15889
  setReference,
15786
15890
  setFloating
15787
15891
  }), [setReference, setFloating]);
15788
- const elements = React172.useMemo(() => ({
15892
+ const elements = React19.useMemo(() => ({
15789
15893
  reference: referenceEl,
15790
15894
  floating: floatingEl
15791
15895
  }), [referenceEl, floatingEl]);
15792
- const floatingStyles = React172.useMemo(() => {
15896
+ const floatingStyles = React19.useMemo(() => {
15793
15897
  const initialStyles = {
15794
15898
  position: strategy,
15795
15899
  left: 0,
@@ -15815,7 +15919,7 @@ function useFloating(options) {
15815
15919
  top: y
15816
15920
  };
15817
15921
  }, [strategy, transform, elements.floating, data.x, data.y]);
15818
- return React172.useMemo(() => ({
15922
+ return React19.useMemo(() => ({
15819
15923
  ...data,
15820
15924
  update,
15821
15925
  refs,
@@ -15883,22 +15987,22 @@ var arrow3 = (options, deps) => ({
15883
15987
  options: [options, deps]
15884
15988
  });
15885
15989
  var NAME = "Arrow";
15886
- var Arrow = React18.forwardRef((props, forwardedRef) => {
15990
+ var Arrow = React20.forwardRef((props, forwardedRef) => {
15887
15991
  const { children, width = 10, height = 5, ...arrowProps } = props;
15888
- return /* @__PURE__ */ jsx152(Primitive.svg, {
15992
+ return /* @__PURE__ */ jsx172(Primitive.svg, {
15889
15993
  ...arrowProps,
15890
15994
  ref: forwardedRef,
15891
15995
  width,
15892
15996
  height,
15893
15997
  viewBox: "0 0 30 10",
15894
15998
  preserveAspectRatio: "none",
15895
- children: props.asChild ? children : /* @__PURE__ */ jsx152("polygon", { points: "0,0 30,0 15,10" })
15999
+ children: props.asChild ? children : /* @__PURE__ */ jsx172("polygon", { points: "0,0 30,0 15,10" })
15896
16000
  });
15897
16001
  });
15898
16002
  Arrow.displayName = NAME;
15899
16003
  var Root2 = Arrow;
15900
16004
  function useSize(element) {
15901
- const [size4, setSize] = React19.useState(undefined);
16005
+ const [size4, setSize] = React212.useState(undefined);
15902
16006
  useLayoutEffect22(() => {
15903
16007
  if (element) {
15904
16008
  setSize({ width: element.offsetWidth, height: element.offsetHeight });
@@ -15936,25 +16040,25 @@ var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
15936
16040
  var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
15937
16041
  var Popper = (props) => {
15938
16042
  const { __scopePopper, children } = props;
15939
- const [anchor, setAnchor] = React20.useState(null);
15940
- return /* @__PURE__ */ jsx162(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
16043
+ const [anchor, setAnchor] = React22.useState(null);
16044
+ return /* @__PURE__ */ jsx182(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
15941
16045
  };
15942
16046
  Popper.displayName = POPPER_NAME;
15943
16047
  var ANCHOR_NAME = "PopperAnchor";
15944
- var PopperAnchor = React20.forwardRef((props, forwardedRef) => {
16048
+ var PopperAnchor = React22.forwardRef((props, forwardedRef) => {
15945
16049
  const { __scopePopper, virtualRef, ...anchorProps } = props;
15946
16050
  const context = usePopperContext(ANCHOR_NAME, __scopePopper);
15947
- const ref = React20.useRef(null);
16051
+ const ref = React22.useRef(null);
15948
16052
  const composedRefs = useComposedRefs(forwardedRef, ref);
15949
- React20.useEffect(() => {
16053
+ React22.useEffect(() => {
15950
16054
  context.onAnchorChange(virtualRef?.current || ref.current);
15951
16055
  });
15952
- return virtualRef ? null : /* @__PURE__ */ jsx162(Primitive.div, { ...anchorProps, ref: composedRefs });
16056
+ return virtualRef ? null : /* @__PURE__ */ jsx182(Primitive.div, { ...anchorProps, ref: composedRefs });
15953
16057
  });
15954
16058
  PopperAnchor.displayName = ANCHOR_NAME;
15955
16059
  var CONTENT_NAME = "PopperContent";
15956
16060
  var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);
15957
- var PopperContent = React20.forwardRef((props, forwardedRef) => {
16061
+ var PopperContent = React22.forwardRef((props, forwardedRef) => {
15958
16062
  const {
15959
16063
  __scopePopper,
15960
16064
  side = "bottom",
@@ -15972,9 +16076,9 @@ var PopperContent = React20.forwardRef((props, forwardedRef) => {
15972
16076
  ...contentProps
15973
16077
  } = props;
15974
16078
  const context = usePopperContext(CONTENT_NAME, __scopePopper);
15975
- const [content, setContent] = React20.useState(null);
16079
+ const [content, setContent] = React22.useState(null);
15976
16080
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
15977
- const [arrow4, setArrow] = React20.useState(null);
16081
+ const [arrow4, setArrow] = React22.useState(null);
15978
16082
  const arrowSize = useSize(arrow4);
15979
16083
  const arrowWidth = arrowSize?.width ?? 0;
15980
16084
  const arrowHeight = arrowSize?.height ?? 0;
@@ -16034,12 +16138,12 @@ var PopperContent = React20.forwardRef((props, forwardedRef) => {
16034
16138
  const arrowX = middlewareData.arrow?.x;
16035
16139
  const arrowY = middlewareData.arrow?.y;
16036
16140
  const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
16037
- const [contentZIndex, setContentZIndex] = React20.useState();
16141
+ const [contentZIndex, setContentZIndex] = React22.useState();
16038
16142
  useLayoutEffect22(() => {
16039
16143
  if (content)
16040
16144
  setContentZIndex(window.getComputedStyle(content).zIndex);
16041
16145
  }, [content]);
16042
- return /* @__PURE__ */ jsx162("div", {
16146
+ return /* @__PURE__ */ jsx182("div", {
16043
16147
  ref: refs.setFloating,
16044
16148
  "data-radix-popper-content-wrapper": "",
16045
16149
  style: {
@@ -16057,14 +16161,14 @@ var PopperContent = React20.forwardRef((props, forwardedRef) => {
16057
16161
  }
16058
16162
  },
16059
16163
  dir: props.dir,
16060
- children: /* @__PURE__ */ jsx162(PopperContentProvider, {
16164
+ children: /* @__PURE__ */ jsx182(PopperContentProvider, {
16061
16165
  scope: __scopePopper,
16062
16166
  placedSide,
16063
16167
  onArrowChange: setArrow,
16064
16168
  arrowX,
16065
16169
  arrowY,
16066
16170
  shouldHideArrow: cannotCenterArrow,
16067
- children: /* @__PURE__ */ jsx162(Primitive.div, {
16171
+ children: /* @__PURE__ */ jsx182(Primitive.div, {
16068
16172
  "data-side": placedSide,
16069
16173
  "data-align": placedAlign,
16070
16174
  ...contentProps,
@@ -16085,11 +16189,11 @@ var OPPOSITE_SIDE = {
16085
16189
  bottom: "top",
16086
16190
  left: "right"
16087
16191
  };
16088
- var PopperArrow = React20.forwardRef(function PopperArrow2(props, forwardedRef) {
16192
+ var PopperArrow = React22.forwardRef(function PopperArrow2(props, forwardedRef) {
16089
16193
  const { __scopePopper, ...arrowProps } = props;
16090
16194
  const contentContext = useContentContext(ARROW_NAME, __scopePopper);
16091
16195
  const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
16092
- return /* @__PURE__ */ jsx162("span", {
16196
+ return /* @__PURE__ */ jsx182("span", {
16093
16197
  ref: contentContext.onArrowChange,
16094
16198
  style: {
16095
16199
  position: "absolute",
@@ -16110,7 +16214,7 @@ var PopperArrow = React20.forwardRef(function PopperArrow2(props, forwardedRef)
16110
16214
  }[contentContext.placedSide],
16111
16215
  visibility: contentContext.shouldHideArrow ? "hidden" : undefined
16112
16216
  },
16113
- children: /* @__PURE__ */ jsx162(Root2, {
16217
+ children: /* @__PURE__ */ jsx182(Root2, {
16114
16218
  ...arrowProps,
16115
16219
  ref: forwardedRef,
16116
16220
  style: {
@@ -16164,12 +16268,12 @@ var Anchor = PopperAnchor;
16164
16268
  var Content = PopperContent;
16165
16269
  var Arrow2 = PopperArrow;
16166
16270
  var PORTAL_NAME = "Portal";
16167
- var Portal = React212.forwardRef((props, forwardedRef) => {
16271
+ var Portal = React23.forwardRef((props, forwardedRef) => {
16168
16272
  const { container: containerProp, ...portalProps } = props;
16169
- const [mounted, setMounted] = React212.useState(false);
16273
+ const [mounted, setMounted] = React23.useState(false);
16170
16274
  useLayoutEffect22(() => setMounted(true), []);
16171
16275
  const container22 = containerProp || mounted && globalThis?.document?.body;
16172
- return container22 ? ReactDOM3.createPortal(/* @__PURE__ */ jsx172(Primitive.div, { ...portalProps, ref: forwardedRef }), container22) : null;
16276
+ return container22 ? ReactDOM3.createPortal(/* @__PURE__ */ jsx192(Primitive.div, { ...portalProps, ref: forwardedRef }), container22) : null;
16173
16277
  });
16174
16278
  Portal.displayName = PORTAL_NAME;
16175
16279
  function useControllableState({
@@ -16181,7 +16285,7 @@ function useControllableState({
16181
16285
  const isControlled = prop !== undefined;
16182
16286
  const value = isControlled ? prop : uncontrolledProp;
16183
16287
  const handleChange = useCallbackRef(onChange);
16184
- const setValue = React22.useCallback((nextValue) => {
16288
+ const setValue = React24.useCallback((nextValue) => {
16185
16289
  if (isControlled) {
16186
16290
  const setter = nextValue;
16187
16291
  const value2 = typeof nextValue === "function" ? setter(prop) : nextValue;
@@ -16197,11 +16301,11 @@ function useUncontrolledState({
16197
16301
  defaultProp,
16198
16302
  onChange
16199
16303
  }) {
16200
- const uncontrolledState = React22.useState(defaultProp);
16304
+ const uncontrolledState = React24.useState(defaultProp);
16201
16305
  const [value] = uncontrolledState;
16202
- const prevValueRef = React22.useRef(value);
16306
+ const prevValueRef = React24.useRef(value);
16203
16307
  const handleChange = useCallbackRef(onChange);
16204
- React22.useEffect(() => {
16308
+ React24.useEffect(() => {
16205
16309
  if (prevValueRef.current !== value) {
16206
16310
  handleChange(value);
16207
16311
  prevValueRef.current = value;
@@ -16210,8 +16314,8 @@ function useUncontrolledState({
16210
16314
  return uncontrolledState;
16211
16315
  }
16212
16316
  function usePrevious(value) {
16213
- const ref = React23.useRef({ value, previous: value });
16214
- return React23.useMemo(() => {
16317
+ const ref = React252.useRef({ value, previous: value });
16318
+ return React252.useMemo(() => {
16215
16319
  if (ref.current.value !== value) {
16216
16320
  ref.current.previous = ref.current.value;
16217
16321
  ref.current.value = value;
@@ -16220,8 +16324,8 @@ function usePrevious(value) {
16220
16324
  }, [value]);
16221
16325
  }
16222
16326
  var NAME2 = "VisuallyHidden";
16223
- var VisuallyHidden = React24.forwardRef((props, forwardedRef) => {
16224
- return /* @__PURE__ */ jsx182(Primitive.span, {
16327
+ var VisuallyHidden = React26.forwardRef((props, forwardedRef) => {
16328
+ return /* @__PURE__ */ jsx202(Primitive.span, {
16225
16329
  ...props,
16226
16330
  ref: forwardedRef,
16227
16331
  style: {
@@ -16428,7 +16532,7 @@ function useCallbackRef2(initialValue, callback) {
16428
16532
  ref.callback = callback;
16429
16533
  return ref.facade;
16430
16534
  }
16431
- var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React252.useLayoutEffect : React252.useEffect;
16535
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React272.useLayoutEffect : React272.useEffect;
16432
16536
  var currentValues = new WeakMap;
16433
16537
  function useMergeRefs(refs, defaultValue) {
16434
16538
  var callbackRef = useCallbackRef2(defaultValue || null, function(newValue) {
@@ -16550,7 +16654,7 @@ var SideCar = function(_a) {
16550
16654
  if (!Target) {
16551
16655
  throw new Error("Sidecar medium not found");
16552
16656
  }
16553
- return React26.createElement(Target, __assign({}, rest));
16657
+ return React28.createElement(Target, __assign({}, rest));
16554
16658
  };
16555
16659
  SideCar.isSideCarExport = true;
16556
16660
  function exportSidecar(medium, exported) {
@@ -16561,9 +16665,9 @@ var effectCar = createSidecarMedium();
16561
16665
  var nothing = function() {
16562
16666
  return;
16563
16667
  };
16564
- var RemoveScroll = React272.forwardRef(function(props, parentRef) {
16565
- var ref = React272.useRef(null);
16566
- var _a = React272.useState({
16668
+ var RemoveScroll = React29.forwardRef(function(props, parentRef) {
16669
+ var ref = React29.useRef(null);
16670
+ var _a = React29.useState({
16567
16671
  onScrollCapture: nothing,
16568
16672
  onWheelCapture: nothing,
16569
16673
  onTouchMoveCapture: nothing
@@ -16572,7 +16676,7 @@ var RemoveScroll = React272.forwardRef(function(props, parentRef) {
16572
16676
  var SideCar2 = sideCar;
16573
16677
  var containerRef = useMergeRefs([ref, parentRef]);
16574
16678
  var containerProps = __assign(__assign({}, rest), callbacks);
16575
- return React272.createElement(React272.Fragment, null, enabled && React272.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }), forwardProps ? React272.cloneElement(React272.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React272.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children));
16679
+ return React29.createElement(React29.Fragment, null, enabled && React29.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }), forwardProps ? React29.cloneElement(React29.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React29.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children));
16576
16680
  });
16577
16681
  RemoveScroll.defaultProps = {
16578
16682
  enabled: true,
@@ -16640,7 +16744,7 @@ var stylesheetSingleton = function() {
16640
16744
  var styleHookSingleton = function() {
16641
16745
  var sheet = stylesheetSingleton();
16642
16746
  return function(styles, isDynamic) {
16643
- React28.useEffect(function() {
16747
+ React30.useEffect(function() {
16644
16748
  sheet.add(styles);
16645
16749
  return function() {
16646
16750
  sheet.remove();
@@ -16745,7 +16849,7 @@ var getCurrentUseCounter = function() {
16745
16849
  return isFinite(counter) ? counter : 0;
16746
16850
  };
16747
16851
  var useLockAttribute = function() {
16748
- React29.useEffect(function() {
16852
+ React312.useEffect(function() {
16749
16853
  document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
16750
16854
  return function() {
16751
16855
  var newCounter = getCurrentUseCounter() - 1;
@@ -16760,10 +16864,10 @@ var useLockAttribute = function() {
16760
16864
  var RemoveScrollBar = function(_a) {
16761
16865
  var { noRelative, noImportant, gapMode: _b } = _a, gapMode = _b === undefined ? "margin" : _b;
16762
16866
  useLockAttribute();
16763
- var gap = React29.useMemo(function() {
16867
+ var gap = React312.useMemo(function() {
16764
16868
  return getGapWidth(gapMode);
16765
16869
  }, [gapMode]);
16766
- return React29.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
16870
+ return React312.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
16767
16871
  };
16768
16872
  var passiveSupported = false;
16769
16873
  if (typeof window !== "undefined") {
@@ -16890,16 +16994,16 @@ var generateStyle = function(id) {
16890
16994
  var idCounter = 0;
16891
16995
  var lockStack = [];
16892
16996
  function RemoveScrollSideCar(props) {
16893
- var shouldPreventQueue = React30.useRef([]);
16894
- var touchStartRef = React30.useRef([0, 0]);
16895
- var activeAxis = React30.useRef();
16896
- var id = React30.useState(idCounter++)[0];
16897
- var Style2 = React30.useState(styleSingleton)[0];
16898
- var lastProps = React30.useRef(props);
16899
- React30.useEffect(function() {
16997
+ var shouldPreventQueue = React322.useRef([]);
16998
+ var touchStartRef = React322.useRef([0, 0]);
16999
+ var activeAxis = React322.useRef();
17000
+ var id = React322.useState(idCounter++)[0];
17001
+ var Style2 = React322.useState(styleSingleton)[0];
17002
+ var lastProps = React322.useRef(props);
17003
+ React322.useEffect(function() {
16900
17004
  lastProps.current = props;
16901
17005
  }, [props]);
16902
- React30.useEffect(function() {
17006
+ React322.useEffect(function() {
16903
17007
  if (props.inert) {
16904
17008
  document.body.classList.add("block-interactivity-".concat(id));
16905
17009
  var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
@@ -16915,7 +17019,7 @@ function RemoveScrollSideCar(props) {
16915
17019
  }
16916
17020
  return;
16917
17021
  }, [props.inert, props.lockRef.current, props.shards]);
16918
- var shouldCancelEvent = React30.useCallback(function(event, parent) {
17022
+ var shouldCancelEvent = React322.useCallback(function(event, parent) {
16919
17023
  if ("touches" in event && event.touches.length === 2) {
16920
17024
  return !lastProps.current.allowPinchZoom;
16921
17025
  }
@@ -16951,7 +17055,7 @@ function RemoveScrollSideCar(props) {
16951
17055
  var cancelingAxis = activeAxis.current || currentAxis;
16952
17056
  return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
16953
17057
  }, []);
16954
- var shouldPrevent = React30.useCallback(function(_event) {
17058
+ var shouldPrevent = React322.useCallback(function(_event) {
16955
17059
  var event = _event;
16956
17060
  if (!lockStack.length || lockStack[lockStack.length - 1] !== Style2) {
16957
17061
  return;
@@ -16978,7 +17082,7 @@ function RemoveScrollSideCar(props) {
16978
17082
  }
16979
17083
  }
16980
17084
  }, []);
16981
- var shouldCancel = React30.useCallback(function(name, delta, target, should) {
17085
+ var shouldCancel = React322.useCallback(function(name, delta, target, should) {
16982
17086
  var event = { name, delta, target, should, shadowParent: getOutermostShadowParent(target) };
16983
17087
  shouldPreventQueue.current.push(event);
16984
17088
  setTimeout(function() {
@@ -16987,17 +17091,17 @@ function RemoveScrollSideCar(props) {
16987
17091
  });
16988
17092
  }, 1);
16989
17093
  }, []);
16990
- var scrollTouchStart = React30.useCallback(function(event) {
17094
+ var scrollTouchStart = React322.useCallback(function(event) {
16991
17095
  touchStartRef.current = getTouchXY(event);
16992
17096
  activeAxis.current = undefined;
16993
17097
  }, []);
16994
- var scrollWheel = React30.useCallback(function(event) {
17098
+ var scrollWheel = React322.useCallback(function(event) {
16995
17099
  shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
16996
17100
  }, []);
16997
- var scrollTouchMove = React30.useCallback(function(event) {
17101
+ var scrollTouchMove = React322.useCallback(function(event) {
16998
17102
  shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
16999
17103
  }, []);
17000
- React30.useEffect(function() {
17104
+ React322.useEffect(function() {
17001
17105
  lockStack.push(Style2);
17002
17106
  props.setCallbacks({
17003
17107
  onScrollCapture: scrollWheel,
@@ -17017,7 +17121,7 @@ function RemoveScrollSideCar(props) {
17017
17121
  };
17018
17122
  }, []);
17019
17123
  var { removeScrollBar, inert } = props;
17020
- return React30.createElement(React30.Fragment, null, inert ? React30.createElement(Style2, { styles: generateStyle(id) }) : null, removeScrollBar ? React30.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null);
17124
+ return React322.createElement(React322.Fragment, null, inert ? React322.createElement(Style2, { styles: generateStyle(id) }) : null, removeScrollBar ? React322.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null);
17021
17125
  }
17022
17126
  function getOutermostShadowParent(node) {
17023
17127
  var shadowParent = null;
@@ -17031,8 +17135,8 @@ function getOutermostShadowParent(node) {
17031
17135
  return shadowParent;
17032
17136
  }
17033
17137
  var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
17034
- var ReactRemoveScroll = React312.forwardRef(function(props, ref) {
17035
- return React312.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
17138
+ var ReactRemoveScroll = React332.forwardRef(function(props, ref) {
17139
+ return React332.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
17036
17140
  });
17037
17141
  ReactRemoveScroll.classNames = RemoveScroll.classNames;
17038
17142
  var Combination_default = ReactRemoveScroll;
@@ -17064,9 +17168,9 @@ var Select = (props) => {
17064
17168
  required
17065
17169
  } = props;
17066
17170
  const popperScope = usePopperScope(__scopeSelect);
17067
- const [trigger, setTrigger] = React322.useState(null);
17068
- const [valueNode, setValueNode] = React322.useState(null);
17069
- const [valueNodeHasChildren, setValueNodeHasChildren] = React322.useState(false);
17171
+ const [trigger, setTrigger] = React34.useState(null);
17172
+ const [valueNode, setValueNode] = React34.useState(null);
17173
+ const [valueNodeHasChildren, setValueNodeHasChildren] = React34.useState(false);
17070
17174
  const direction = useDirection(dir);
17071
17175
  const [open = false, setOpen] = useControllableState({
17072
17176
  prop: openProp,
@@ -17078,11 +17182,11 @@ var Select = (props) => {
17078
17182
  defaultProp: defaultValue,
17079
17183
  onChange: onValueChange
17080
17184
  });
17081
- const triggerPointerDownPosRef = React322.useRef(null);
17185
+ const triggerPointerDownPosRef = React34.useRef(null);
17082
17186
  const isFormControl = trigger ? Boolean(trigger.closest("form")) : true;
17083
- const [nativeOptionsSet, setNativeOptionsSet] = React322.useState(/* @__PURE__ */ new Set);
17187
+ const [nativeOptionsSet, setNativeOptionsSet] = React34.useState(/* @__PURE__ */ new Set);
17084
17188
  const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
17085
- return /* @__PURE__ */ jsx192(Root22, { ...popperScope, children: /* @__PURE__ */ jsxs32(SelectProvider, {
17189
+ return /* @__PURE__ */ jsx212(Root22, { ...popperScope, children: /* @__PURE__ */ jsxs4(SelectProvider, {
17086
17190
  required,
17087
17191
  scope: __scopeSelect,
17088
17192
  trigger,
@@ -17100,12 +17204,12 @@ var Select = (props) => {
17100
17204
  triggerPointerDownPosRef,
17101
17205
  disabled,
17102
17206
  children: [
17103
- /* @__PURE__ */ jsx192(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx192(SelectNativeOptionsProvider, {
17207
+ /* @__PURE__ */ jsx212(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx212(SelectNativeOptionsProvider, {
17104
17208
  scope: props.__scopeSelect,
17105
- onNativeOptionAdd: React322.useCallback((option) => {
17209
+ onNativeOptionAdd: React34.useCallback((option) => {
17106
17210
  setNativeOptionsSet((prev) => new Set(prev).add(option));
17107
17211
  }, []),
17108
- onNativeOptionRemove: React322.useCallback((option) => {
17212
+ onNativeOptionRemove: React34.useCallback((option) => {
17109
17213
  setNativeOptionsSet((prev) => {
17110
17214
  const optionsSet = new Set(prev);
17111
17215
  optionsSet.delete(option);
@@ -17114,7 +17218,7 @@ var Select = (props) => {
17114
17218
  }, []),
17115
17219
  children
17116
17220
  }) }),
17117
- isFormControl ? /* @__PURE__ */ jsxs32(BubbleSelect, {
17221
+ isFormControl ? /* @__PURE__ */ jsxs4(BubbleSelect, {
17118
17222
  "aria-hidden": true,
17119
17223
  required,
17120
17224
  tabIndex: -1,
@@ -17124,7 +17228,7 @@ var Select = (props) => {
17124
17228
  onChange: (event) => setValue(event.target.value),
17125
17229
  disabled,
17126
17230
  children: [
17127
- value === undefined ? /* @__PURE__ */ jsx192("option", { value: "" }) : null,
17231
+ value === undefined ? /* @__PURE__ */ jsx212("option", { value: "" }) : null,
17128
17232
  Array.from(nativeOptionsSet)
17129
17233
  ]
17130
17234
  }, nativeSelectKey) : null
@@ -17133,7 +17237,7 @@ var Select = (props) => {
17133
17237
  };
17134
17238
  Select.displayName = SELECT_NAME;
17135
17239
  var TRIGGER_NAME = "SelectTrigger";
17136
- var SelectTrigger = React322.forwardRef((props, forwardedRef) => {
17240
+ var SelectTrigger = React34.forwardRef((props, forwardedRef) => {
17137
17241
  const { __scopeSelect, disabled = false, ...triggerProps } = props;
17138
17242
  const popperScope = usePopperScope(__scopeSelect);
17139
17243
  const context = useSelectContext(TRIGGER_NAME, __scopeSelect);
@@ -17154,7 +17258,7 @@ var SelectTrigger = React322.forwardRef((props, forwardedRef) => {
17154
17258
  resetTypeahead();
17155
17259
  }
17156
17260
  };
17157
- return /* @__PURE__ */ jsx192(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx192(Primitive.button, {
17261
+ return /* @__PURE__ */ jsx212(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx212(Primitive.button, {
17158
17262
  type: "button",
17159
17263
  role: "combobox",
17160
17264
  "aria-controls": context.contentId,
@@ -17201,7 +17305,7 @@ var SelectTrigger = React322.forwardRef((props, forwardedRef) => {
17201
17305
  });
17202
17306
  SelectTrigger.displayName = TRIGGER_NAME;
17203
17307
  var VALUE_NAME = "SelectValue";
17204
- var SelectValue = React322.forwardRef((props, forwardedRef) => {
17308
+ var SelectValue = React34.forwardRef((props, forwardedRef) => {
17205
17309
  const { __scopeSelect, className, style, children, placeholder = "", ...valueProps } = props;
17206
17310
  const context = useSelectContext(VALUE_NAME, __scopeSelect);
17207
17311
  const { onValueNodeHasChildrenChange } = context;
@@ -17210,43 +17314,43 @@ var SelectValue = React322.forwardRef((props, forwardedRef) => {
17210
17314
  useLayoutEffect22(() => {
17211
17315
  onValueNodeHasChildrenChange(hasChildren);
17212
17316
  }, [onValueNodeHasChildrenChange, hasChildren]);
17213
- return /* @__PURE__ */ jsx192(Primitive.span, {
17317
+ return /* @__PURE__ */ jsx212(Primitive.span, {
17214
17318
  ...valueProps,
17215
17319
  ref: composedRefs,
17216
17320
  style: { pointerEvents: "none" },
17217
- children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx192(Fragment52, { children: placeholder }) : children
17321
+ children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx212(Fragment52, { children: placeholder }) : children
17218
17322
  });
17219
17323
  });
17220
17324
  SelectValue.displayName = VALUE_NAME;
17221
17325
  var ICON_NAME = "SelectIcon";
17222
- var SelectIcon = React322.forwardRef((props, forwardedRef) => {
17326
+ var SelectIcon = React34.forwardRef((props, forwardedRef) => {
17223
17327
  const { __scopeSelect, children, ...iconProps } = props;
17224
- return /* @__PURE__ */ jsx192(Primitive.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "▼" });
17328
+ return /* @__PURE__ */ jsx212(Primitive.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "▼" });
17225
17329
  });
17226
17330
  SelectIcon.displayName = ICON_NAME;
17227
17331
  var PORTAL_NAME2 = "SelectPortal";
17228
17332
  var SelectPortal = (props) => {
17229
- return /* @__PURE__ */ jsx192(Portal, { asChild: true, ...props });
17333
+ return /* @__PURE__ */ jsx212(Portal, { asChild: true, ...props });
17230
17334
  };
17231
17335
  SelectPortal.displayName = PORTAL_NAME2;
17232
17336
  var CONTENT_NAME2 = "SelectContent";
17233
- var SelectContent = React322.forwardRef((props, forwardedRef) => {
17337
+ var SelectContent = React34.forwardRef((props, forwardedRef) => {
17234
17338
  const context = useSelectContext(CONTENT_NAME2, props.__scopeSelect);
17235
- const [fragment, setFragment] = React322.useState();
17339
+ const [fragment, setFragment] = React34.useState();
17236
17340
  useLayoutEffect22(() => {
17237
17341
  setFragment(new DocumentFragment);
17238
17342
  }, []);
17239
17343
  if (!context.open) {
17240
17344
  const frag = fragment;
17241
- return frag ? ReactDOM4.createPortal(/* @__PURE__ */ jsx192(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx192(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx192("div", { children: props.children }) }) }), frag) : null;
17345
+ return frag ? ReactDOM4.createPortal(/* @__PURE__ */ jsx212(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx212(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx212("div", { children: props.children }) }) }), frag) : null;
17242
17346
  }
17243
- return /* @__PURE__ */ jsx192(SelectContentImpl, { ...props, ref: forwardedRef });
17347
+ return /* @__PURE__ */ jsx212(SelectContentImpl, { ...props, ref: forwardedRef });
17244
17348
  });
17245
17349
  SelectContent.displayName = CONTENT_NAME2;
17246
17350
  var CONTENT_MARGIN = 10;
17247
17351
  var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME2);
17248
17352
  var CONTENT_IMPL_NAME = "SelectContentImpl";
17249
- var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17353
+ var SelectContentImpl = React34.forwardRef((props, forwardedRef) => {
17250
17354
  const {
17251
17355
  __scopeSelect,
17252
17356
  position = "item-aligned",
@@ -17266,20 +17370,20 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17266
17370
  ...contentProps
17267
17371
  } = props;
17268
17372
  const context = useSelectContext(CONTENT_NAME2, __scopeSelect);
17269
- const [content, setContent] = React322.useState(null);
17270
- const [viewport, setViewport] = React322.useState(null);
17373
+ const [content, setContent] = React34.useState(null);
17374
+ const [viewport, setViewport] = React34.useState(null);
17271
17375
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
17272
- const [selectedItem, setSelectedItem] = React322.useState(null);
17273
- const [selectedItemText, setSelectedItemText] = React322.useState(null);
17376
+ const [selectedItem, setSelectedItem] = React34.useState(null);
17377
+ const [selectedItemText, setSelectedItemText] = React34.useState(null);
17274
17378
  const getItems = useCollection(__scopeSelect);
17275
- const [isPositioned, setIsPositioned] = React322.useState(false);
17276
- const firstValidItemFoundRef = React322.useRef(false);
17277
- React322.useEffect(() => {
17379
+ const [isPositioned, setIsPositioned] = React34.useState(false);
17380
+ const firstValidItemFoundRef = React34.useRef(false);
17381
+ React34.useEffect(() => {
17278
17382
  if (content)
17279
17383
  return hideOthers(content);
17280
17384
  }, [content]);
17281
17385
  useFocusGuards();
17282
- const focusFirst2 = React322.useCallback((candidates) => {
17386
+ const focusFirst2 = React34.useCallback((candidates) => {
17283
17387
  const [firstItem, ...restItems] = getItems().map((item) => item.ref.current);
17284
17388
  const [lastItem] = restItems.slice(-1);
17285
17389
  const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
@@ -17296,14 +17400,14 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17296
17400
  return;
17297
17401
  }
17298
17402
  }, [getItems, viewport]);
17299
- const focusSelectedItem = React322.useCallback(() => focusFirst2([selectedItem, content]), [focusFirst2, selectedItem, content]);
17300
- React322.useEffect(() => {
17403
+ const focusSelectedItem = React34.useCallback(() => focusFirst2([selectedItem, content]), [focusFirst2, selectedItem, content]);
17404
+ React34.useEffect(() => {
17301
17405
  if (isPositioned) {
17302
17406
  focusSelectedItem();
17303
17407
  }
17304
17408
  }, [isPositioned, focusSelectedItem]);
17305
17409
  const { onOpenChange, triggerPointerDownPosRef } = context;
17306
- React322.useEffect(() => {
17410
+ React34.useEffect(() => {
17307
17411
  if (content) {
17308
17412
  let pointerMoveDelta = { x: 0, y: 0 };
17309
17413
  const handlePointerMove = (event) => {
@@ -17333,7 +17437,7 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17333
17437
  };
17334
17438
  }
17335
17439
  }, [content, onOpenChange, triggerPointerDownPosRef]);
17336
- React322.useEffect(() => {
17440
+ React34.useEffect(() => {
17337
17441
  const close = () => onOpenChange(false);
17338
17442
  window.addEventListener("blur", close);
17339
17443
  window.addEventListener("resize", close);
@@ -17350,7 +17454,7 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17350
17454
  setTimeout(() => nextItem.ref.current.focus());
17351
17455
  }
17352
17456
  });
17353
- const itemRefCallback = React322.useCallback((node, value, disabled) => {
17457
+ const itemRefCallback = React34.useCallback((node, value, disabled) => {
17354
17458
  const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
17355
17459
  const isSelectedItem = context.value !== undefined && context.value === value;
17356
17460
  if (isSelectedItem || isFirstValidItem) {
@@ -17359,8 +17463,8 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17359
17463
  firstValidItemFoundRef.current = true;
17360
17464
  }
17361
17465
  }, [context.value]);
17362
- const handleItemLeave = React322.useCallback(() => content?.focus(), [content]);
17363
- const itemTextRefCallback = React322.useCallback((node, value, disabled) => {
17466
+ const handleItemLeave = React34.useCallback(() => content?.focus(), [content]);
17467
+ const itemTextRefCallback = React34.useCallback((node, value, disabled) => {
17364
17468
  const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
17365
17469
  const isSelectedItem = context.value !== undefined && context.value === value;
17366
17470
  if (isSelectedItem || isFirstValidItem) {
@@ -17380,7 +17484,7 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17380
17484
  hideWhenDetached,
17381
17485
  avoidCollisions
17382
17486
  } : {};
17383
- return /* @__PURE__ */ jsx192(SelectContentProvider, {
17487
+ return /* @__PURE__ */ jsx212(SelectContentProvider, {
17384
17488
  scope: __scopeSelect,
17385
17489
  content,
17386
17490
  viewport,
@@ -17394,7 +17498,7 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17394
17498
  position,
17395
17499
  isPositioned,
17396
17500
  searchRef,
17397
- children: /* @__PURE__ */ jsx192(Combination_default, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx192(FocusScope, {
17501
+ children: /* @__PURE__ */ jsx212(Combination_default, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx212(FocusScope, {
17398
17502
  asChild: true,
17399
17503
  trapped: context.open,
17400
17504
  onMountAutoFocus: (event) => {
@@ -17404,14 +17508,14 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17404
17508
  context.trigger?.focus({ preventScroll: true });
17405
17509
  event.preventDefault();
17406
17510
  }),
17407
- children: /* @__PURE__ */ jsx192(DismissableLayer, {
17511
+ children: /* @__PURE__ */ jsx212(DismissableLayer, {
17408
17512
  asChild: true,
17409
17513
  disableOutsidePointerEvents: true,
17410
17514
  onEscapeKeyDown,
17411
17515
  onPointerDownOutside,
17412
17516
  onFocusOutside: (event) => event.preventDefault(),
17413
17517
  onDismiss: () => context.onOpenChange(false),
17414
- children: /* @__PURE__ */ jsx192(SelectPosition, {
17518
+ children: /* @__PURE__ */ jsx212(SelectPosition, {
17415
17519
  role: "listbox",
17416
17520
  id: context.contentId,
17417
17521
  "data-state": context.open ? "open" : "closed",
@@ -17455,18 +17559,18 @@ var SelectContentImpl = React322.forwardRef((props, forwardedRef) => {
17455
17559
  });
17456
17560
  SelectContentImpl.displayName = CONTENT_IMPL_NAME;
17457
17561
  var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition";
17458
- var SelectItemAlignedPosition = React322.forwardRef((props, forwardedRef) => {
17562
+ var SelectItemAlignedPosition = React34.forwardRef((props, forwardedRef) => {
17459
17563
  const { __scopeSelect, onPlaced, ...popperProps } = props;
17460
17564
  const context = useSelectContext(CONTENT_NAME2, __scopeSelect);
17461
17565
  const contentContext = useSelectContentContext(CONTENT_NAME2, __scopeSelect);
17462
- const [contentWrapper, setContentWrapper] = React322.useState(null);
17463
- const [content, setContent] = React322.useState(null);
17566
+ const [contentWrapper, setContentWrapper] = React34.useState(null);
17567
+ const [content, setContent] = React34.useState(null);
17464
17568
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
17465
17569
  const getItems = useCollection(__scopeSelect);
17466
- const shouldExpandOnScrollRef = React322.useRef(false);
17467
- const shouldRepositionRef = React322.useRef(true);
17570
+ const shouldExpandOnScrollRef = React34.useRef(false);
17571
+ const shouldRepositionRef = React34.useRef(true);
17468
17572
  const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;
17469
- const position = React322.useCallback(() => {
17573
+ const position = React34.useCallback(() => {
17470
17574
  if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {
17471
17575
  const triggerRect = context.trigger.getBoundingClientRect();
17472
17576
  const contentRect = content.getBoundingClientRect();
@@ -17547,24 +17651,24 @@ var SelectItemAlignedPosition = React322.forwardRef((props, forwardedRef) => {
17547
17651
  onPlaced
17548
17652
  ]);
17549
17653
  useLayoutEffect22(() => position(), [position]);
17550
- const [contentZIndex, setContentZIndex] = React322.useState();
17654
+ const [contentZIndex, setContentZIndex] = React34.useState();
17551
17655
  useLayoutEffect22(() => {
17552
17656
  if (content)
17553
17657
  setContentZIndex(window.getComputedStyle(content).zIndex);
17554
17658
  }, [content]);
17555
- const handleScrollButtonChange = React322.useCallback((node) => {
17659
+ const handleScrollButtonChange = React34.useCallback((node) => {
17556
17660
  if (node && shouldRepositionRef.current === true) {
17557
17661
  position();
17558
17662
  focusSelectedItem?.();
17559
17663
  shouldRepositionRef.current = false;
17560
17664
  }
17561
17665
  }, [position, focusSelectedItem]);
17562
- return /* @__PURE__ */ jsx192(SelectViewportProvider, {
17666
+ return /* @__PURE__ */ jsx212(SelectViewportProvider, {
17563
17667
  scope: __scopeSelect,
17564
17668
  contentWrapper,
17565
17669
  shouldExpandOnScrollRef,
17566
17670
  onScrollButtonChange: handleScrollButtonChange,
17567
- children: /* @__PURE__ */ jsx192("div", {
17671
+ children: /* @__PURE__ */ jsx212("div", {
17568
17672
  ref: setContentWrapper,
17569
17673
  style: {
17570
17674
  display: "flex",
@@ -17572,7 +17676,7 @@ var SelectItemAlignedPosition = React322.forwardRef((props, forwardedRef) => {
17572
17676
  position: "fixed",
17573
17677
  zIndex: contentZIndex
17574
17678
  },
17575
- children: /* @__PURE__ */ jsx192(Primitive.div, {
17679
+ children: /* @__PURE__ */ jsx212(Primitive.div, {
17576
17680
  ...popperProps,
17577
17681
  ref: composedRefs,
17578
17682
  style: {
@@ -17586,7 +17690,7 @@ var SelectItemAlignedPosition = React322.forwardRef((props, forwardedRef) => {
17586
17690
  });
17587
17691
  SelectItemAlignedPosition.displayName = ITEM_ALIGNED_POSITION_NAME;
17588
17692
  var POPPER_POSITION_NAME = "SelectPopperPosition";
17589
- var SelectPopperPosition = React322.forwardRef((props, forwardedRef) => {
17693
+ var SelectPopperPosition = React34.forwardRef((props, forwardedRef) => {
17590
17694
  const {
17591
17695
  __scopeSelect,
17592
17696
  align = "start",
@@ -17594,7 +17698,7 @@ var SelectPopperPosition = React322.forwardRef((props, forwardedRef) => {
17594
17698
  ...popperProps
17595
17699
  } = props;
17596
17700
  const popperScope = usePopperScope(__scopeSelect);
17597
- return /* @__PURE__ */ jsx192(Content, {
17701
+ return /* @__PURE__ */ jsx212(Content, {
17598
17702
  ...popperScope,
17599
17703
  ...popperProps,
17600
17704
  ref: forwardedRef,
@@ -17616,20 +17720,20 @@ var SelectPopperPosition = React322.forwardRef((props, forwardedRef) => {
17616
17720
  SelectPopperPosition.displayName = POPPER_POSITION_NAME;
17617
17721
  var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME2, {});
17618
17722
  var VIEWPORT_NAME = "SelectViewport";
17619
- var SelectViewport = React322.forwardRef((props, forwardedRef) => {
17723
+ var SelectViewport = React34.forwardRef((props, forwardedRef) => {
17620
17724
  const { __scopeSelect, nonce, ...viewportProps } = props;
17621
17725
  const contentContext = useSelectContentContext(VIEWPORT_NAME, __scopeSelect);
17622
17726
  const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);
17623
17727
  const composedRefs = useComposedRefs(forwardedRef, contentContext.onViewportChange);
17624
- const prevScrollTopRef = React322.useRef(0);
17625
- return /* @__PURE__ */ jsxs32(Fragment52, { children: [
17626
- /* @__PURE__ */ jsx192("style", {
17728
+ const prevScrollTopRef = React34.useRef(0);
17729
+ return /* @__PURE__ */ jsxs4(Fragment52, { children: [
17730
+ /* @__PURE__ */ jsx212("style", {
17627
17731
  dangerouslySetInnerHTML: {
17628
17732
  __html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`
17629
17733
  },
17630
17734
  nonce
17631
17735
  }),
17632
- /* @__PURE__ */ jsx192(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx192(Primitive.div, {
17736
+ /* @__PURE__ */ jsx212(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx212(Primitive.div, {
17633
17737
  "data-radix-select-viewport": "",
17634
17738
  role: "presentation",
17635
17739
  ...viewportProps,
@@ -17670,22 +17774,22 @@ var SelectViewport = React322.forwardRef((props, forwardedRef) => {
17670
17774
  SelectViewport.displayName = VIEWPORT_NAME;
17671
17775
  var GROUP_NAME = "SelectGroup";
17672
17776
  var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME);
17673
- var SelectGroup = React322.forwardRef((props, forwardedRef) => {
17777
+ var SelectGroup = React34.forwardRef((props, forwardedRef) => {
17674
17778
  const { __scopeSelect, ...groupProps } = props;
17675
17779
  const groupId = useId();
17676
- return /* @__PURE__ */ jsx192(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx192(Primitive.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
17780
+ return /* @__PURE__ */ jsx212(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx212(Primitive.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
17677
17781
  });
17678
17782
  SelectGroup.displayName = GROUP_NAME;
17679
17783
  var LABEL_NAME = "SelectLabel";
17680
- var SelectLabel = React322.forwardRef((props, forwardedRef) => {
17784
+ var SelectLabel = React34.forwardRef((props, forwardedRef) => {
17681
17785
  const { __scopeSelect, ...labelProps } = props;
17682
17786
  const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
17683
- return /* @__PURE__ */ jsx192(Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
17787
+ return /* @__PURE__ */ jsx212(Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
17684
17788
  });
17685
17789
  SelectLabel.displayName = LABEL_NAME;
17686
17790
  var ITEM_NAME = "SelectItem";
17687
17791
  var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME);
17688
- var SelectItem = React322.forwardRef((props, forwardedRef) => {
17792
+ var SelectItem = React34.forwardRef((props, forwardedRef) => {
17689
17793
  const {
17690
17794
  __scopeSelect,
17691
17795
  value,
@@ -17696,8 +17800,8 @@ var SelectItem = React322.forwardRef((props, forwardedRef) => {
17696
17800
  const context = useSelectContext(ITEM_NAME, __scopeSelect);
17697
17801
  const contentContext = useSelectContentContext(ITEM_NAME, __scopeSelect);
17698
17802
  const isSelected = context.value === value;
17699
- const [textValue, setTextValue] = React322.useState(textValueProp ?? "");
17700
- const [isFocused, setIsFocused] = React322.useState(false);
17803
+ const [textValue, setTextValue] = React34.useState(textValueProp ?? "");
17804
+ const [isFocused, setIsFocused] = React34.useState(false);
17701
17805
  const composedRefs = useComposedRefs(forwardedRef, (node) => contentContext.itemRefCallback?.(node, value, disabled));
17702
17806
  const textId = useId();
17703
17807
  const handleSelect = () => {
@@ -17709,21 +17813,21 @@ var SelectItem = React322.forwardRef((props, forwardedRef) => {
17709
17813
  if (value === "") {
17710
17814
  throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
17711
17815
  }
17712
- return /* @__PURE__ */ jsx192(SelectItemContextProvider, {
17816
+ return /* @__PURE__ */ jsx212(SelectItemContextProvider, {
17713
17817
  scope: __scopeSelect,
17714
17818
  value,
17715
17819
  disabled,
17716
17820
  textId,
17717
17821
  isSelected,
17718
- onItemTextChange: React322.useCallback((node) => {
17822
+ onItemTextChange: React34.useCallback((node) => {
17719
17823
  setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? "").trim());
17720
17824
  }, []),
17721
- children: /* @__PURE__ */ jsx192(Collection.ItemSlot, {
17825
+ children: /* @__PURE__ */ jsx212(Collection.ItemSlot, {
17722
17826
  scope: __scopeSelect,
17723
17827
  value,
17724
17828
  disabled,
17725
17829
  textValue,
17726
- children: /* @__PURE__ */ jsx192(Primitive.div, {
17830
+ children: /* @__PURE__ */ jsx212(Primitive.div, {
17727
17831
  role: "option",
17728
17832
  "aria-labelledby": textId,
17729
17833
  "data-highlighted": isFocused ? "" : undefined,
@@ -17764,39 +17868,39 @@ var SelectItem = React322.forwardRef((props, forwardedRef) => {
17764
17868
  });
17765
17869
  SelectItem.displayName = ITEM_NAME;
17766
17870
  var ITEM_TEXT_NAME = "SelectItemText";
17767
- var SelectItemText = React322.forwardRef((props, forwardedRef) => {
17871
+ var SelectItemText = React34.forwardRef((props, forwardedRef) => {
17768
17872
  const { __scopeSelect, className, style, ...itemTextProps } = props;
17769
17873
  const context = useSelectContext(ITEM_TEXT_NAME, __scopeSelect);
17770
17874
  const contentContext = useSelectContentContext(ITEM_TEXT_NAME, __scopeSelect);
17771
17875
  const itemContext = useSelectItemContext(ITEM_TEXT_NAME, __scopeSelect);
17772
17876
  const nativeOptionsContext = useSelectNativeOptionsContext(ITEM_TEXT_NAME, __scopeSelect);
17773
- const [itemTextNode, setItemTextNode] = React322.useState(null);
17877
+ const [itemTextNode, setItemTextNode] = React34.useState(null);
17774
17878
  const composedRefs = useComposedRefs(forwardedRef, (node) => setItemTextNode(node), itemContext.onItemTextChange, (node) => contentContext.itemTextRefCallback?.(node, itemContext.value, itemContext.disabled));
17775
17879
  const textContent = itemTextNode?.textContent;
17776
- const nativeOption = React322.useMemo(() => /* @__PURE__ */ jsx192("option", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value), [itemContext.disabled, itemContext.value, textContent]);
17880
+ const nativeOption = React34.useMemo(() => /* @__PURE__ */ jsx212("option", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value), [itemContext.disabled, itemContext.value, textContent]);
17777
17881
  const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;
17778
17882
  useLayoutEffect22(() => {
17779
17883
  onNativeOptionAdd(nativeOption);
17780
17884
  return () => onNativeOptionRemove(nativeOption);
17781
17885
  }, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
17782
- return /* @__PURE__ */ jsxs32(Fragment52, { children: [
17783
- /* @__PURE__ */ jsx192(Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
17886
+ return /* @__PURE__ */ jsxs4(Fragment52, { children: [
17887
+ /* @__PURE__ */ jsx212(Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
17784
17888
  itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM4.createPortal(itemTextProps.children, context.valueNode) : null
17785
17889
  ] });
17786
17890
  });
17787
17891
  SelectItemText.displayName = ITEM_TEXT_NAME;
17788
17892
  var ITEM_INDICATOR_NAME = "SelectItemIndicator";
17789
- var SelectItemIndicator = React322.forwardRef((props, forwardedRef) => {
17893
+ var SelectItemIndicator = React34.forwardRef((props, forwardedRef) => {
17790
17894
  const { __scopeSelect, ...itemIndicatorProps } = props;
17791
17895
  const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);
17792
- return itemContext.isSelected ? /* @__PURE__ */ jsx192(Primitive.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
17896
+ return itemContext.isSelected ? /* @__PURE__ */ jsx212(Primitive.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
17793
17897
  });
17794
17898
  SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
17795
17899
  var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton";
17796
- var SelectScrollUpButton = React322.forwardRef((props, forwardedRef) => {
17900
+ var SelectScrollUpButton = React34.forwardRef((props, forwardedRef) => {
17797
17901
  const contentContext = useSelectContentContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
17798
17902
  const viewportContext = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
17799
- const [canScrollUp, setCanScrollUp] = React322.useState(false);
17903
+ const [canScrollUp, setCanScrollUp] = React34.useState(false);
17800
17904
  const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
17801
17905
  useLayoutEffect22(() => {
17802
17906
  if (contentContext.viewport && contentContext.isPositioned) {
@@ -17811,7 +17915,7 @@ var SelectScrollUpButton = React322.forwardRef((props, forwardedRef) => {
17811
17915
  return () => viewport.removeEventListener("scroll", handleScroll22);
17812
17916
  }
17813
17917
  }, [contentContext.viewport, contentContext.isPositioned]);
17814
- return canScrollUp ? /* @__PURE__ */ jsx192(SelectScrollButtonImpl, {
17918
+ return canScrollUp ? /* @__PURE__ */ jsx212(SelectScrollButtonImpl, {
17815
17919
  ...props,
17816
17920
  ref: composedRefs,
17817
17921
  onAutoScroll: () => {
@@ -17824,10 +17928,10 @@ var SelectScrollUpButton = React322.forwardRef((props, forwardedRef) => {
17824
17928
  });
17825
17929
  SelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;
17826
17930
  var SCROLL_DOWN_BUTTON_NAME = "SelectScrollDownButton";
17827
- var SelectScrollDownButton = React322.forwardRef((props, forwardedRef) => {
17931
+ var SelectScrollDownButton = React34.forwardRef((props, forwardedRef) => {
17828
17932
  const contentContext = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
17829
17933
  const viewportContext = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
17830
- const [canScrollDown, setCanScrollDown] = React322.useState(false);
17934
+ const [canScrollDown, setCanScrollDown] = React34.useState(false);
17831
17935
  const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
17832
17936
  useLayoutEffect22(() => {
17833
17937
  if (contentContext.viewport && contentContext.isPositioned) {
@@ -17843,7 +17947,7 @@ var SelectScrollDownButton = React322.forwardRef((props, forwardedRef) => {
17843
17947
  return () => viewport.removeEventListener("scroll", handleScroll22);
17844
17948
  }
17845
17949
  }, [contentContext.viewport, contentContext.isPositioned]);
17846
- return canScrollDown ? /* @__PURE__ */ jsx192(SelectScrollButtonImpl, {
17950
+ return canScrollDown ? /* @__PURE__ */ jsx212(SelectScrollButtonImpl, {
17847
17951
  ...props,
17848
17952
  ref: composedRefs,
17849
17953
  onAutoScroll: () => {
@@ -17855,25 +17959,25 @@ var SelectScrollDownButton = React322.forwardRef((props, forwardedRef) => {
17855
17959
  }) : null;
17856
17960
  });
17857
17961
  SelectScrollDownButton.displayName = SCROLL_DOWN_BUTTON_NAME;
17858
- var SelectScrollButtonImpl = React322.forwardRef((props, forwardedRef) => {
17962
+ var SelectScrollButtonImpl = React34.forwardRef((props, forwardedRef) => {
17859
17963
  const { __scopeSelect, onAutoScroll, ...scrollIndicatorProps } = props;
17860
17964
  const contentContext = useSelectContentContext("SelectScrollButton", __scopeSelect);
17861
- const autoScrollTimerRef = React322.useRef(null);
17965
+ const autoScrollTimerRef = React34.useRef(null);
17862
17966
  const getItems = useCollection(__scopeSelect);
17863
- const clearAutoScrollTimer = React322.useCallback(() => {
17967
+ const clearAutoScrollTimer = React34.useCallback(() => {
17864
17968
  if (autoScrollTimerRef.current !== null) {
17865
17969
  window.clearInterval(autoScrollTimerRef.current);
17866
17970
  autoScrollTimerRef.current = null;
17867
17971
  }
17868
17972
  }, []);
17869
- React322.useEffect(() => {
17973
+ React34.useEffect(() => {
17870
17974
  return () => clearAutoScrollTimer();
17871
17975
  }, [clearAutoScrollTimer]);
17872
17976
  useLayoutEffect22(() => {
17873
17977
  const activeItem = getItems().find((item) => item.ref.current === document.activeElement);
17874
17978
  activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
17875
17979
  }, [getItems]);
17876
- return /* @__PURE__ */ jsx192(Primitive.div, {
17980
+ return /* @__PURE__ */ jsx212(Primitive.div, {
17877
17981
  "aria-hidden": true,
17878
17982
  ...scrollIndicatorProps,
17879
17983
  ref: forwardedRef,
@@ -17895,29 +17999,29 @@ var SelectScrollButtonImpl = React322.forwardRef((props, forwardedRef) => {
17895
17999
  });
17896
18000
  });
17897
18001
  var SEPARATOR_NAME = "SelectSeparator";
17898
- var SelectSeparator = React322.forwardRef((props, forwardedRef) => {
18002
+ var SelectSeparator = React34.forwardRef((props, forwardedRef) => {
17899
18003
  const { __scopeSelect, ...separatorProps } = props;
17900
- return /* @__PURE__ */ jsx192(Primitive.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
18004
+ return /* @__PURE__ */ jsx212(Primitive.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
17901
18005
  });
17902
18006
  SelectSeparator.displayName = SEPARATOR_NAME;
17903
18007
  var ARROW_NAME2 = "SelectArrow";
17904
- var SelectArrow = React322.forwardRef((props, forwardedRef) => {
18008
+ var SelectArrow = React34.forwardRef((props, forwardedRef) => {
17905
18009
  const { __scopeSelect, ...arrowProps } = props;
17906
18010
  const popperScope = usePopperScope(__scopeSelect);
17907
18011
  const context = useSelectContext(ARROW_NAME2, __scopeSelect);
17908
18012
  const contentContext = useSelectContentContext(ARROW_NAME2, __scopeSelect);
17909
- return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsx192(Arrow2, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
18013
+ return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsx212(Arrow2, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
17910
18014
  });
17911
18015
  SelectArrow.displayName = ARROW_NAME2;
17912
18016
  function shouldShowPlaceholder(value) {
17913
18017
  return value === "" || value === undefined;
17914
18018
  }
17915
- var BubbleSelect = React322.forwardRef((props, forwardedRef) => {
18019
+ var BubbleSelect = React34.forwardRef((props, forwardedRef) => {
17916
18020
  const { value, ...selectProps } = props;
17917
- const ref = React322.useRef(null);
18021
+ const ref = React34.useRef(null);
17918
18022
  const composedRefs = useComposedRefs(forwardedRef, ref);
17919
18023
  const prevValue = usePrevious(value);
17920
- React322.useEffect(() => {
18024
+ React34.useEffect(() => {
17921
18025
  const select = ref.current;
17922
18026
  const selectProto = window.HTMLSelectElement.prototype;
17923
18027
  const descriptor = Object.getOwnPropertyDescriptor(selectProto, "value");
@@ -17928,14 +18032,14 @@ var BubbleSelect = React322.forwardRef((props, forwardedRef) => {
17928
18032
  select.dispatchEvent(event);
17929
18033
  }
17930
18034
  }, [prevValue, value]);
17931
- return /* @__PURE__ */ jsx192(VisuallyHidden, { asChild: true, children: /* @__PURE__ */ jsx192("select", { ...selectProps, ref: composedRefs, defaultValue: value }) });
18035
+ return /* @__PURE__ */ jsx212(VisuallyHidden, { asChild: true, children: /* @__PURE__ */ jsx212("select", { ...selectProps, ref: composedRefs, defaultValue: value }) });
17932
18036
  });
17933
18037
  BubbleSelect.displayName = "BubbleSelect";
17934
18038
  function useTypeaheadSearch(onSearchChange) {
17935
18039
  const handleSearchChange = useCallbackRef(onSearchChange);
17936
- const searchRef = React322.useRef("");
17937
- const timerRef = React322.useRef(0);
17938
- const handleTypeaheadSearch = React322.useCallback((key) => {
18040
+ const searchRef = React34.useRef("");
18041
+ const timerRef = React34.useRef(0);
18042
+ const handleTypeaheadSearch = React34.useCallback((key) => {
17939
18043
  const search = searchRef.current + key;
17940
18044
  handleSearchChange(search);
17941
18045
  (function updateSearch(value) {
@@ -17945,11 +18049,11 @@ function useTypeaheadSearch(onSearchChange) {
17945
18049
  timerRef.current = window.setTimeout(() => updateSearch(""), 1000);
17946
18050
  })(search);
17947
18051
  }, [handleSearchChange]);
17948
- const resetTypeahead = React322.useCallback(() => {
18052
+ const resetTypeahead = React34.useCallback(() => {
17949
18053
  searchRef.current = "";
17950
18054
  window.clearTimeout(timerRef.current);
17951
18055
  }, []);
17952
- React322.useEffect(() => {
18056
+ React34.useEffect(() => {
17953
18057
  return () => window.clearTimeout(timerRef.current);
17954
18058
  }, []);
17955
18059
  return [searchRef, handleTypeaheadSearch, resetTypeahead];
@@ -18038,104 +18142,104 @@ var ChevronDown = createLucideIcon("ChevronDown", [
18038
18142
  var ChevronUp = createLucideIcon("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
18039
18143
  var Select2 = Root222;
18040
18144
  var SelectValue2 = Value;
18041
- var SelectTrigger2 = React332.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs4(Trigger, {
18145
+ var SelectTrigger2 = React352.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs5(Trigger, {
18042
18146
  ref,
18043
18147
  className: cn("flex h-10 w-full items-center justify-between rounded-md border-black border-2 border-b-4 bg-card-bg px-3 py-5 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 font-brand", className),
18044
18148
  ...props,
18045
18149
  children: [
18046
18150
  children,
18047
- /* @__PURE__ */ jsx202(Icon, {
18151
+ /* @__PURE__ */ jsx223(Icon, {
18048
18152
  asChild: true,
18049
- children: /* @__PURE__ */ jsx202(ChevronDown, {
18153
+ children: /* @__PURE__ */ jsx223(ChevronDown, {
18050
18154
  className: "h-4 w-4 opacity-50"
18051
18155
  })
18052
18156
  })
18053
18157
  ]
18054
18158
  }));
18055
18159
  SelectTrigger2.displayName = Trigger.displayName;
18056
- var SelectScrollUpButton2 = React332.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx202(ScrollUpButton, {
18160
+ var SelectScrollUpButton2 = React352.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx223(ScrollUpButton, {
18057
18161
  ref,
18058
18162
  className: cn("flex cursor-default items-center justify-center py-1", className),
18059
18163
  ...props,
18060
- children: /* @__PURE__ */ jsx202(ChevronUp, {
18164
+ children: /* @__PURE__ */ jsx223(ChevronUp, {
18061
18165
  className: "h-4 w-4"
18062
18166
  })
18063
18167
  }));
18064
18168
  SelectScrollUpButton2.displayName = ScrollUpButton.displayName;
18065
- var SelectScrollDownButton2 = React332.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx202(ScrollDownButton, {
18169
+ var SelectScrollDownButton2 = React352.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx223(ScrollDownButton, {
18066
18170
  ref,
18067
18171
  className: cn("flex cursor-default items-center justify-center py-1", className),
18068
18172
  ...props,
18069
- children: /* @__PURE__ */ jsx202(ChevronDown, {
18173
+ children: /* @__PURE__ */ jsx223(ChevronDown, {
18070
18174
  className: "h-4 w-4"
18071
18175
  })
18072
18176
  }));
18073
18177
  SelectScrollDownButton2.displayName = ScrollDownButton.displayName;
18074
- var SelectContent2 = React332.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx202(Portal2, {
18075
- children: /* @__PURE__ */ jsxs4(Content2, {
18178
+ var SelectContent2 = React352.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx223(Portal2, {
18179
+ children: /* @__PURE__ */ jsxs5(Content2, {
18076
18180
  ref,
18077
18181
  className: cn(" border-2 border-black relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md font-brand bg-card-bg text-text shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
18078
18182
  position,
18079
18183
  ...props,
18080
18184
  children: [
18081
- /* @__PURE__ */ jsx202(SelectScrollUpButton2, {}),
18082
- /* @__PURE__ */ jsx202(Viewport, {
18185
+ /* @__PURE__ */ jsx223(SelectScrollUpButton2, {}),
18186
+ /* @__PURE__ */ jsx223(Viewport, {
18083
18187
  className: cn("p-1", position === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),
18084
18188
  children
18085
18189
  }),
18086
- /* @__PURE__ */ jsx202(SelectScrollDownButton2, {})
18190
+ /* @__PURE__ */ jsx223(SelectScrollDownButton2, {})
18087
18191
  ]
18088
18192
  })
18089
18193
  }));
18090
18194
  SelectContent2.displayName = Content2.displayName;
18091
- var SelectLabel2 = React332.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx202(Label, {
18195
+ var SelectLabel2 = React352.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx223(Label, {
18092
18196
  ref,
18093
18197
  className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
18094
18198
  ...props
18095
18199
  }));
18096
18200
  SelectLabel2.displayName = Label.displayName;
18097
- var SelectItem2 = React332.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs4(Item, {
18201
+ var SelectItem2 = React352.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs5(Item, {
18098
18202
  ref,
18099
18203
  className: cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-slate-200 dark:focus:bg-white/10 data-disabled:pointer-events-none data-disabled:opacity-50 font-brand", className),
18100
18204
  ...props,
18101
18205
  children: [
18102
- /* @__PURE__ */ jsx202("span", {
18206
+ /* @__PURE__ */ jsx223("span", {
18103
18207
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
18104
- children: /* @__PURE__ */ jsx202(ItemIndicator, {
18105
- children: /* @__PURE__ */ jsx202(Check, {
18208
+ children: /* @__PURE__ */ jsx223(ItemIndicator, {
18209
+ children: /* @__PURE__ */ jsx223(Check, {
18106
18210
  className: "h-4 w-4"
18107
18211
  })
18108
18212
  })
18109
18213
  }),
18110
- /* @__PURE__ */ jsx202(ItemText, {
18214
+ /* @__PURE__ */ jsx223(ItemText, {
18111
18215
  children
18112
18216
  })
18113
18217
  ]
18114
18218
  }));
18115
18219
  SelectItem2.displayName = Item.displayName;
18116
- var SelectSeparator2 = React332.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx202(Separator, {
18220
+ var SelectSeparator2 = React352.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx223(Separator, {
18117
18221
  ref,
18118
18222
  className: cn("-mx-1 my-1 h-px bg-muted", className),
18119
18223
  ...props
18120
18224
  }));
18121
18225
  SelectSeparator2.displayName = Separator.displayName;
18122
18226
  var Switch = ({ active, onToggle }) => {
18123
- return /* @__PURE__ */ jsx212("div", {
18227
+ return /* @__PURE__ */ jsx232("div", {
18124
18228
  "data-active": active,
18125
18229
  className: "h-8 transition-all rounded-full w-14 border-2 border-b-4 bg-gray-200 p-[2px] cursor-pointer data-[active=true]:bg-brand border-black relative",
18126
18230
  onClick: onToggle,
18127
- children: /* @__PURE__ */ jsx212("div", {
18231
+ children: /* @__PURE__ */ jsx232("div", {
18128
18232
  "data-active": active,
18129
18233
  className: "h-4 w-4 box-content left-[4px] top-[3px] transition-all rounded-full bg-white border-2 border-black absolute data-[active=true]:left-[calc(100%-24px)]"
18130
18234
  })
18131
18235
  });
18132
18236
  };
18133
18237
  var Triangle2 = (props) => {
18134
- return /* @__PURE__ */ jsx223("svg", {
18238
+ return /* @__PURE__ */ jsx242("svg", {
18135
18239
  viewBox: "0 0 127 131",
18136
18240
  fill: "none",
18137
18241
  ...props,
18138
- children: /* @__PURE__ */ jsx223("path", {
18242
+ children: /* @__PURE__ */ jsx242("path", {
18139
18243
  d: "M28.5644 0.011261C25.8196 0.159241 23.6077 0.591782 21.3786 1.43413C20.2669 1.84959 18.4446 2.75455 17.4418 3.38062C13.2472 5.993 10.0496 9.9201 8.38209 14.4903C8.04973 15.3953 7.15007 18.2809 6.5713 20.2672C2.71476 33.5453 0.525761 48.0643 0.0558711 63.4312C-0.0186237 65.8785 -0.0186237 71.7066 0.0558711 74.1141C0.371041 84.3018 1.35093 93.4992 3.12735 102.879C3.84937 106.675 5.00691 111.774 5.67736 114.091C7.04692 118.798 9.84334 122.805 13.8202 125.741C16.4848 127.711 19.5105 129.031 22.8627 129.68C24.4787 129.993 26.6104 130.135 28.1805 130.033C30.3523 129.89 34.6616 129.316 38.1628 128.695C53.9442 125.901 68.5223 120.898 81.7422 113.738C90.1143 109.202 97.2715 104.29 104.177 98.3312C111.059 92.4007 116.927 86.0206 122.09 78.8608C123.287 77.2045 123.889 76.237 124.491 75.019C126.038 71.8773 126.766 68.7527 126.76 65.2582C126.76 62.0027 126.141 59.1114 124.806 56.1518C124.164 54.7233 123.551 53.6988 122.176 51.7523C117.11 44.5868 111.489 38.3433 104.635 32.2762C94.011 22.8739 81.3927 15.1619 67.3017 9.45339C64.2474 8.21835 61.239 7.13128 57.6174 5.95315C49.9502 3.46598 40.4607 1.30891 32.4324 0.233231C31.1718 0.0624847 29.4584 -0.0342712 28.5644 0.011261Z",
18140
18244
  fill: "currentcolor"
18141
18245
  })
@@ -19463,10 +19567,10 @@ function cn2(...inputs) {
19463
19567
 
19464
19568
  // src/components/homepage/InfoTooltip.tsx
19465
19569
  import { useState as useState34 } from "react";
19466
- import { jsx as jsx39, jsxs as jsxs5 } from "react/jsx-runtime";
19570
+ import { jsx as jsx39, jsxs as jsxs6 } from "react/jsx-runtime";
19467
19571
  var InfoTooltip = ({ text }) => {
19468
19572
  const [isVisible, setIsVisible] = useState34(false);
19469
- return /* @__PURE__ */ jsxs5("span", {
19573
+ return /* @__PURE__ */ jsxs6("span", {
19470
19574
  className: "relative inline-block ml-1 text-gray-600 cursor-default",
19471
19575
  onPointerEnter: () => setIsVisible(true),
19472
19576
  onMouseLeave: () => setIsVisible(false),
@@ -19475,7 +19579,7 @@ var InfoTooltip = ({ text }) => {
19475
19579
  style: { fontSize: "1rem" },
19476
19580
  children: "ⓘ"
19477
19581
  }),
19478
- isVisible && /* @__PURE__ */ jsxs5("span", {
19582
+ isVisible && /* @__PURE__ */ jsxs6("span", {
19479
19583
  className: "absolute bottom-full left-1/2 transform -translate-x-1/2 bg-gray-800 text-white p-2 rounded text-xs whitespace-nowrap z-10 cursor-default",
19480
19584
  children: [
19481
19585
  text,
@@ -19489,7 +19593,7 @@ var InfoTooltip = ({ text }) => {
19489
19593
  };
19490
19594
 
19491
19595
  // src/components/homepage/PricingBulletPoint.tsx
19492
- import { jsx as jsx40, jsxs as jsxs7 } from "react/jsx-runtime";
19596
+ import { jsx as jsx40, jsxs as jsxs8 } from "react/jsx-runtime";
19493
19597
  var container3 = {
19494
19598
  display: "flex",
19495
19599
  flexDirection: "row",
@@ -19503,7 +19607,7 @@ var greyCircle = {
19503
19607
  backgroundColor: "var(--footer-border)"
19504
19608
  };
19505
19609
  var PricingBulletPoint = ({ text, checked, children }) => {
19506
- const checkmarkSVG = /* @__PURE__ */ jsxs7("svg", {
19610
+ const checkmarkSVG = /* @__PURE__ */ jsxs8("svg", {
19507
19611
  width: "20",
19508
19612
  height: "20",
19509
19613
  viewBox: "0 0 20 20",
@@ -19525,13 +19629,13 @@ var PricingBulletPoint = ({ text, checked, children }) => {
19525
19629
  })
19526
19630
  ]
19527
19631
  });
19528
- return /* @__PURE__ */ jsxs7("div", {
19632
+ return /* @__PURE__ */ jsxs8("div", {
19529
19633
  style: container3,
19530
19634
  children: [
19531
19635
  checked ? checkmarkSVG : /* @__PURE__ */ jsx40("div", {
19532
19636
  style: greyCircle
19533
19637
  }),
19534
- /* @__PURE__ */ jsxs7("div", {
19638
+ /* @__PURE__ */ jsxs8("div", {
19535
19639
  className: "fontbrand text-lg\t",
19536
19640
  children: [
19537
19641
  text,
@@ -19543,7 +19647,7 @@ var PricingBulletPoint = ({ text, checked, children }) => {
19543
19647
  };
19544
19648
 
19545
19649
  // src/components/homepage/FreePricing.tsx
19546
- import { jsx as jsx41, jsxs as jsxs8 } from "react/jsx-runtime";
19650
+ import { jsx as jsx41, jsxs as jsxs9 } from "react/jsx-runtime";
19547
19651
  var Container = ({
19548
19652
  children
19549
19653
  }) => {
@@ -19588,7 +19692,7 @@ var SmallPriceTag = ({ children }) => {
19588
19692
  });
19589
19693
  };
19590
19694
  var FreePricing = () => {
19591
- return /* @__PURE__ */ jsxs8(Container, {
19695
+ return /* @__PURE__ */ jsxs9(Container, {
19592
19696
  children: [
19593
19697
  /* @__PURE__ */ jsx41(Audience, {
19594
19698
  children: "For individuals and companies of up to 3 people"
@@ -19620,7 +19724,7 @@ var textUnitWrapper = {
19620
19724
  flexDirection: "column"
19621
19725
  };
19622
19726
  var EnterpriseLicense = () => {
19623
- return /* @__PURE__ */ jsxs8(Container, {
19727
+ return /* @__PURE__ */ jsxs9(Container, {
19624
19728
  children: [
19625
19729
  /* @__PURE__ */ jsx41(Audience, {
19626
19730
  children: "For advanced needs"
@@ -19653,7 +19757,7 @@ var EnterpriseLicense = () => {
19653
19757
  checked: true
19654
19758
  }),
19655
19759
  /* @__PURE__ */ jsx41(PricingBulletPoint, {
19656
- text: /* @__PURE__ */ jsxs8("span", {
19760
+ text: /* @__PURE__ */ jsxs9("span", {
19657
19761
  children: [
19658
19762
  /* @__PURE__ */ jsx41("a", {
19659
19763
  href: "https://www.remotion.dev/editor-starter",
@@ -19671,7 +19775,7 @@ var EnterpriseLicense = () => {
19671
19775
  }),
19672
19776
  /* @__PURE__ */ jsx41("div", {
19673
19777
  className: "flex flex-row justify-end",
19674
- children: /* @__PURE__ */ jsxs8("div", {
19778
+ children: /* @__PURE__ */ jsxs9("div", {
19675
19779
  style: {
19676
19780
  ...textUnitWrapper,
19677
19781
  alignItems: "flex-end"
@@ -19718,7 +19822,7 @@ var CompanyPricing = () => {
19718
19822
  const totalPriceString = useMemo41(() => {
19719
19823
  return formatPrice(totalPrice);
19720
19824
  }, [formatPrice, totalPrice]);
19721
- return /* @__PURE__ */ jsxs8(Container, {
19825
+ return /* @__PURE__ */ jsxs9(Container, {
19722
19826
  children: [
19723
19827
  /* @__PURE__ */ jsx41(Audience, {
19724
19828
  children: "For collaborations and companies of 4+ people"
@@ -19748,10 +19852,10 @@ var CompanyPricing = () => {
19748
19852
  /* @__PURE__ */ jsx41("div", {
19749
19853
  style: { height: 30 }
19750
19854
  }),
19751
- /* @__PURE__ */ jsxs8("div", {
19855
+ /* @__PURE__ */ jsxs9("div", {
19752
19856
  className: "flex flex-col md:flex-row md:items-center",
19753
19857
  children: [
19754
- /* @__PURE__ */ jsxs8("div", {
19858
+ /* @__PURE__ */ jsxs9("div", {
19755
19859
  style: textUnitWrapper,
19756
19860
  children: [
19757
19861
  /* @__PURE__ */ jsx41("div", {
@@ -19768,7 +19872,7 @@ var CompanyPricing = () => {
19768
19872
  style: { flex: 3 },
19769
19873
  className: "hidden md:block"
19770
19874
  }),
19771
- /* @__PURE__ */ jsxs8("div", {
19875
+ /* @__PURE__ */ jsxs9("div", {
19772
19876
  className: "flex flex-row items-center justify-between mt-3 md:mt-0",
19773
19877
  children: [
19774
19878
  /* @__PURE__ */ jsx41(Counter, {
@@ -19776,7 +19880,7 @@ var CompanyPricing = () => {
19776
19880
  setCount: setDevSeatCount,
19777
19881
  minCount: 1
19778
19882
  }),
19779
- /* @__PURE__ */ jsxs8(SmallPriceTag, {
19883
+ /* @__PURE__ */ jsxs9(SmallPriceTag, {
19780
19884
  children: [
19781
19885
  "$",
19782
19886
  new Intl.NumberFormat("en-US", {
@@ -19791,10 +19895,10 @@ var CompanyPricing = () => {
19791
19895
  /* @__PURE__ */ jsx41("div", {
19792
19896
  style: { height: 14 }
19793
19897
  }),
19794
- /* @__PURE__ */ jsxs8("div", {
19898
+ /* @__PURE__ */ jsxs9("div", {
19795
19899
  className: "flex flex-col md:flex-row md:items-center",
19796
19900
  children: [
19797
- /* @__PURE__ */ jsxs8("div", {
19901
+ /* @__PURE__ */ jsxs9("div", {
19798
19902
  style: textUnitWrapper,
19799
19903
  children: [
19800
19904
  /* @__PURE__ */ jsx41("div", {
@@ -19815,7 +19919,7 @@ var CompanyPricing = () => {
19815
19919
  style: { flex: 3 },
19816
19920
  className: "hidden md:block"
19817
19921
  }),
19818
- /* @__PURE__ */ jsxs8("div", {
19922
+ /* @__PURE__ */ jsxs9("div", {
19819
19923
  className: "flex flex-row items-center justify-between mt-3 md:mt-0",
19820
19924
  children: [
19821
19925
  /* @__PURE__ */ jsx41(Counter, {
@@ -19824,7 +19928,7 @@ var CompanyPricing = () => {
19824
19928
  minCount: 0,
19825
19929
  step: 1000
19826
19930
  }),
19827
- /* @__PURE__ */ jsxs8(SmallPriceTag, {
19931
+ /* @__PURE__ */ jsxs9(SmallPriceTag, {
19828
19932
  children: [
19829
19933
  "$",
19830
19934
  new Intl.NumberFormat("en-US", {
@@ -19841,10 +19945,10 @@ var CompanyPricing = () => {
19841
19945
  }),
19842
19946
  /* @__PURE__ */ jsx41("div", {
19843
19947
  className: "flex flex-row justify-end",
19844
- children: /* @__PURE__ */ jsxs8("div", {
19948
+ children: /* @__PURE__ */ jsxs9("div", {
19845
19949
  style: { ...textUnitWrapper, alignItems: "flex-end" },
19846
19950
  children: [
19847
- /* @__PURE__ */ jsxs8(PriceTag, {
19951
+ /* @__PURE__ */ jsxs9(PriceTag, {
19848
19952
  children: [
19849
19953
  totalPriceString,
19850
19954
  "/mo"
@@ -19865,7 +19969,7 @@ var CompanyPricing = () => {
19865
19969
  ...textUnitWrapper,
19866
19970
  alignItems: "flex-end"
19867
19971
  },
19868
- children: /* @__PURE__ */ jsxs8("a", {
19972
+ children: /* @__PURE__ */ jsxs9("a", {
19869
19973
  href: "https://remotion.pro/dashboard",
19870
19974
  className: "font-brand text-brand flex flex-row items-center gap-1 no-underline",
19871
19975
  children: [
@@ -19889,9 +19993,9 @@ var CompanyPricing = () => {
19889
19993
  };
19890
19994
 
19891
19995
  // src/components/homepage/Pricing.tsx
19892
- import { jsx as jsx44, jsxs as jsxs9 } from "react/jsx-runtime";
19996
+ import { jsx as jsx44, jsxs as jsxs10 } from "react/jsx-runtime";
19893
19997
  var Pricing = () => {
19894
- return /* @__PURE__ */ jsxs9("div", {
19998
+ return /* @__PURE__ */ jsxs10("div", {
19895
19999
  style: {
19896
20000
  display: "flex",
19897
20001
  flexDirection: "column",
@@ -19907,7 +20011,7 @@ var Pricing = () => {
19907
20011
  justifyContent: "center",
19908
20012
  display: "flex"
19909
20013
  },
19910
- children: /* @__PURE__ */ jsxs9("div", {
20014
+ children: /* @__PURE__ */ jsxs10("div", {
19911
20015
  style: {
19912
20016
  fontFamily: "GTPlanar"
19913
20017
  },
@@ -19940,7 +20044,7 @@ var Pricing = () => {
19940
20044
 
19941
20045
  // src/components/homepage/BackgroundAnimation.tsx
19942
20046
  import { useEffect as useEffect37 } from "react";
19943
- import { jsx as jsx46, jsxs as jsxs10 } from "react/jsx-runtime";
20047
+ import { jsx as jsx46, jsxs as jsxs11 } from "react/jsx-runtime";
19944
20048
  "use client";
19945
20049
  var rx = 0.2;
19946
20050
  var ry = 0.45;
@@ -19972,7 +20076,7 @@ var BackgroundAnimation = () => {
19972
20076
  }, [css]);
19973
20077
  return /* @__PURE__ */ jsx46("div", {
19974
20078
  className: " w-full h-full min-w-0 m-auto lg:relative lg:min-w-[700px] lg:max-w-[1200px] lg:ml-auto lg:left-auto pointer-events-none",
19975
- children: /* @__PURE__ */ jsxs10("svg", {
20079
+ children: /* @__PURE__ */ jsxs11("svg", {
19976
20080
  className: "translate-y-[-30%] lg:translate-y-[-50%]",
19977
20081
  viewBox: "0 0 1 1",
19978
20082
  style: {
@@ -20027,7 +20131,7 @@ var BackgroundAnimation = () => {
20027
20131
  };
20028
20132
 
20029
20133
  // src/components/homepage/CommunityStatsItems.tsx
20030
- import { jsx as jsx47, jsxs as jsxs11 } from "react/jsx-runtime";
20134
+ import { jsx as jsx47, jsxs as jsxs12 } from "react/jsx-runtime";
20031
20135
  var StatItemContent = ({
20032
20136
  content,
20033
20137
  width,
@@ -20060,10 +20164,10 @@ var Pill = ({ children, className }) => {
20060
20164
  });
20061
20165
  };
20062
20166
  var InstallsPerMonth = () => {
20063
- return /* @__PURE__ */ jsxs11(Pill, {
20167
+ return /* @__PURE__ */ jsxs12(Pill, {
20064
20168
  className: "w-[30%] flex-col",
20065
20169
  children: [
20066
- /* @__PURE__ */ jsxs11("div", {
20170
+ /* @__PURE__ */ jsxs12("div", {
20067
20171
  style: {
20068
20172
  display: "flex",
20069
20173
  alignItems: "center",
@@ -20102,10 +20206,10 @@ var InstallsPerMonth = () => {
20102
20206
  });
20103
20207
  };
20104
20208
  var PagesOfDocs = () => {
20105
- return /* @__PURE__ */ jsxs11(Pill, {
20209
+ return /* @__PURE__ */ jsxs12(Pill, {
20106
20210
  className: "flex-col",
20107
20211
  children: [
20108
- /* @__PURE__ */ jsxs11("div", {
20212
+ /* @__PURE__ */ jsxs12("div", {
20109
20213
  style: { display: "flex", alignItems: "center" },
20110
20214
  children: [
20111
20215
  /* @__PURE__ */ jsx47(StatItemContent, {
@@ -20140,7 +20244,7 @@ var PagesOfDocs = () => {
20140
20244
  ]
20141
20245
  });
20142
20246
  };
20143
- var TemplatesAndExamples = () => /* @__PURE__ */ jsxs11(Pill, {
20247
+ var TemplatesAndExamples = () => /* @__PURE__ */ jsxs12(Pill, {
20144
20248
  className: "w-[30%] flex items-center flex-row",
20145
20249
  children: [
20146
20250
  /* @__PURE__ */ jsx47(StatItemContent, {
@@ -20158,10 +20262,10 @@ var TemplatesAndExamples = () => /* @__PURE__ */ jsxs11(Pill, {
20158
20262
  ]
20159
20263
  });
20160
20264
  var GitHubStars = () => {
20161
- return /* @__PURE__ */ jsxs11(Pill, {
20265
+ return /* @__PURE__ */ jsxs12(Pill, {
20162
20266
  className: "w-[30%] flex-col",
20163
20267
  children: [
20164
- /* @__PURE__ */ jsxs11("div", {
20268
+ /* @__PURE__ */ jsxs12("div", {
20165
20269
  style: { display: "flex", alignItems: "center" },
20166
20270
  children: [
20167
20271
  /* @__PURE__ */ jsx47(StatItemContent, {
@@ -20198,7 +20302,7 @@ var GitHubStars = () => {
20198
20302
  var DiscordMembers = () => {
20199
20303
  return /* @__PURE__ */ jsx47(Pill, {
20200
20304
  className: "w-[30%]",
20201
- children: /* @__PURE__ */ jsxs11("div", {
20305
+ children: /* @__PURE__ */ jsxs12("div", {
20202
20306
  style: {
20203
20307
  width: "80%",
20204
20308
  display: "flex",
@@ -20206,7 +20310,7 @@ var DiscordMembers = () => {
20206
20310
  justifyContent: "center"
20207
20311
  },
20208
20312
  children: [
20209
- /* @__PURE__ */ jsxs11("div", {
20313
+ /* @__PURE__ */ jsxs12("div", {
20210
20314
  style: {
20211
20315
  display: "flex",
20212
20316
  flexDirection: "column",
@@ -20255,7 +20359,7 @@ var DiscordMembers = () => {
20255
20359
  var Contributors = () => {
20256
20360
  return /* @__PURE__ */ jsx47(Pill, {
20257
20361
  className: "w-[30%]",
20258
- children: /* @__PURE__ */ jsxs11("div", {
20362
+ children: /* @__PURE__ */ jsxs12("div", {
20259
20363
  style: { display: "flex", justifyContent: "center" },
20260
20364
  children: [
20261
20365
  /* @__PURE__ */ jsx47("div", {
@@ -20275,7 +20379,7 @@ var Contributors = () => {
20275
20379
  width: "65px"
20276
20380
  })
20277
20381
  }),
20278
- /* @__PURE__ */ jsxs11("div", {
20382
+ /* @__PURE__ */ jsxs12("div", {
20279
20383
  style: {
20280
20384
  display: "flex",
20281
20385
  flexDirection: "column",
@@ -20317,14 +20421,14 @@ var SectionTitle = ({
20317
20421
  };
20318
20422
 
20319
20423
  // src/components/homepage/CommunityStats.tsx
20320
- import { jsx as jsx49, jsxs as jsxs12 } from "react/jsx-runtime";
20424
+ import { jsx as jsx49, jsxs as jsxs13 } from "react/jsx-runtime";
20321
20425
  var SectionLink = ({ href, children }) => /* @__PURE__ */ jsx49("a", {
20322
20426
  target: "_blank",
20323
20427
  href,
20324
20428
  className: "no-underline text-inherit contents",
20325
20429
  children
20326
20430
  });
20327
- var CommunityStats = () => /* @__PURE__ */ jsxs12("div", {
20431
+ var CommunityStats = () => /* @__PURE__ */ jsxs13("div", {
20328
20432
  className: "m-auto max-w-[700px] text-center",
20329
20433
  children: [
20330
20434
  /* @__PURE__ */ jsx49(SectionTitle, {
@@ -20334,7 +20438,7 @@ var CommunityStats = () => /* @__PURE__ */ jsxs12("div", {
20334
20438
  className: "fontbrand text-center mb-10 -mt-4",
20335
20439
  children: "Join a thriving community of developers."
20336
20440
  }),
20337
- /* @__PURE__ */ jsxs12("div", {
20441
+ /* @__PURE__ */ jsxs13("div", {
20338
20442
  className: "flex flex-wrap justify-between gap-4 w-full items-center",
20339
20443
  children: [
20340
20444
  /* @__PURE__ */ jsx49(SectionLink, {
@@ -20384,19 +20488,19 @@ init_esm();
20384
20488
  init_esm();
20385
20489
  init_esm();
20386
20490
  init_esm();
20387
- import { jsx as jsx50, jsxs as jsxs13 } from "react/jsx-runtime";
20491
+ import { jsx as jsx50, jsxs as jsxs14 } from "react/jsx-runtime";
20388
20492
  import { jsx as jsx213, jsxs as jsxs24, Fragment as Fragment6 } from "react/jsx-runtime";
20389
20493
  import React40 from "react";
20390
- import { useContext as useContext210, useEffect as useEffect24, useState as useState35 } from "react";
20494
+ import { useContext as useContext210, useEffect as useEffect210, useState as useState35 } from "react";
20391
20495
  import { useContext as useContext40, useEffect as useEffect38 } from "react";
20392
20496
  import { jsx as jsx310 } from "react/jsx-runtime";
20393
- import { useCallback as useCallback27, useRef as useRef30 } from "react";
20497
+ import { useCallback as useCallback27, useRef as useRef32 } from "react";
20394
20498
  import { useEffect as useEffect39, useState as useState210 } from "react";
20395
20499
  import { useContext as useContext42, useEffect as useEffect62, useRef as useRef42 } from "react";
20396
20500
  import { useEffect as useEffect42 } from "react";
20397
- import { useCallback as useCallback28, useContext as useContext37, useMemo as useMemo42, useRef as useRef210, useState as useState36 } from "react";
20398
- import { useEffect as useEffect52, useRef as useRef32 } from "react";
20399
- import { useCallback as useCallback32, useEffect as useEffect73, useMemo as useMemo210, useState as useState42 } from "react";
20501
+ import { useCallback as useCallback28, useContext as useContext37, useMemo as useMemo42, useRef as useRef24, useState as useState36 } from "react";
20502
+ import { useEffect as useEffect52, useRef as useRef33 } from "react";
20503
+ import { useCallback as useCallback32, useEffect as useEffect72, useMemo as useMemo212, useState as useState42 } from "react";
20400
20504
  import {
20401
20505
  forwardRef as forwardRef26,
20402
20506
  useEffect as useEffect142,
@@ -20406,7 +20510,7 @@ import {
20406
20510
  useRef as useRef112,
20407
20511
  useState as useState132
20408
20512
  } from "react";
20409
- import React103, {
20513
+ import React102, {
20410
20514
  Suspense as Suspense2,
20411
20515
  forwardRef as forwardRef27,
20412
20516
  useCallback as useCallback112,
@@ -20430,12 +20534,12 @@ import {
20430
20534
  useMemo as useMemo52,
20431
20535
  useState as useState82
20432
20536
  } from "react";
20433
- import { useEffect as useEffect82, useRef as useRef62, useState as useState72 } from "react";
20537
+ import { useEffect as useEffect83, useRef as useRef62, useState as useState72 } from "react";
20434
20538
  import { jsx as jsx74, jsxs as jsxs52 } from "react/jsx-runtime";
20435
20539
  import { useCallback as useCallback72, useEffect as useEffect102, useMemo as useMemo62, useRef as useRef72, useState as useState92 } from "react";
20436
- import { jsx as jsx84, jsxs as jsxs6 } from "react/jsx-runtime";
20540
+ import { jsx as jsx84, jsxs as jsxs62 } from "react/jsx-runtime";
20437
20541
  import { useMemo as useMemo72 } from "react";
20438
- import { jsxs as jsxs72 } from "react/jsx-runtime";
20542
+ import { jsxs as jsxs7 } from "react/jsx-runtime";
20439
20543
  import { useMemo as useMemo82 } from "react";
20440
20544
  import { jsx as jsx94, jsxs as jsxs82, Fragment as Fragment22 } from "react/jsx-runtime";
20441
20545
  import React82 from "react";
@@ -21116,7 +21220,7 @@ var PlayIcon = () => {
21116
21220
  });
21117
21221
  };
21118
21222
  var PauseIcon = () => {
21119
- return /* @__PURE__ */ jsxs13("svg", {
21223
+ return /* @__PURE__ */ jsxs14("svg", {
21120
21224
  viewBox: "0 0 100 100",
21121
21225
  width: ICON_SIZE2,
21122
21226
  height: ICON_SIZE2,
@@ -21150,7 +21254,7 @@ var FullscreenIcon = ({
21150
21254
  const out = isFullscreen ? 0 : strokeWidth2 / 2;
21151
21255
  const middleInset = isFullscreen ? strokeWidth2 * 1.6 : strokeWidth2 / 2;
21152
21256
  const inset = isFullscreen ? strokeWidth2 * 1.6 : strokeWidth2 * 2;
21153
- return /* @__PURE__ */ jsxs13("svg", {
21257
+ return /* @__PURE__ */ jsxs14("svg", {
21154
21258
  viewBox: `0 0 ${viewSize} ${viewSize}`,
21155
21259
  height: fullscreenIconSize,
21156
21260
  width: fullscreenIconSize,
@@ -21555,7 +21659,7 @@ var PlayerEmitterProvider = ({ children, currentPlaybackRate }) => {
21555
21659
  if (!bufferManager) {
21556
21660
  throw new Error("BufferingContextReact not found");
21557
21661
  }
21558
- useEffect24(() => {
21662
+ useEffect210(() => {
21559
21663
  if (currentPlaybackRate) {
21560
21664
  emitter.dispatchRateChange(currentPlaybackRate);
21561
21665
  }
@@ -21610,12 +21714,12 @@ var usePlayer = () => {
21610
21714
  const [playing, setPlaying, imperativePlaying] = Internals.Timeline.usePlayingState();
21611
21715
  const [hasPlayed, setHasPlayed] = useState36(false);
21612
21716
  const frame = Internals.Timeline.useTimelinePosition();
21613
- const playStart = useRef210(frame);
21717
+ const playStart = useRef24(frame);
21614
21718
  const setFrame = Internals.Timeline.useTimelineSetFrame();
21615
21719
  const setTimelinePosition = Internals.Timeline.useTimelineSetFrame();
21616
21720
  const audioContext = useContext37(Internals.SharedAudioContext);
21617
21721
  const { audioAndVideoTags } = useContext37(Internals.TimelineContext);
21618
- const frameRef = useRef210(frame);
21722
+ const frameRef = useRef24(frame);
21619
21723
  frameRef.current = frame;
21620
21724
  const video = Internals.useVideo();
21621
21725
  const config = Internals.useUnsafeVideoConfig();
@@ -21910,7 +22014,7 @@ var getIsBackgrounded = () => {
21910
22014
  return document.visibilityState === "hidden";
21911
22015
  };
21912
22016
  var useIsBackgrounded = () => {
21913
- const isBackgrounded = useRef32(getIsBackgrounded());
22017
+ const isBackgrounded = useRef33(getIsBackgrounded());
21914
22018
  useEffect52(() => {
21915
22019
  const onVisibilityChange = () => {
21916
22020
  isBackgrounded.current = getIsBackgrounded();
@@ -22082,7 +22186,7 @@ var useElementSize = (ref, options2) => {
22082
22186
  }
22083
22187
  };
22084
22188
  });
22085
- const observer = useMemo210(() => {
22189
+ const observer = useMemo212(() => {
22086
22190
  if (typeof ResizeObserver === "undefined") {
22087
22191
  return null;
22088
22192
  }
@@ -22140,7 +22244,7 @@ var useElementSize = (ref, options2) => {
22140
22244
  };
22141
22245
  });
22142
22246
  }, [ref]);
22143
- useEffect73(() => {
22247
+ useEffect72(() => {
22144
22248
  if (!observer) {
22145
22249
  return;
22146
22250
  }
@@ -22154,7 +22258,7 @@ var useElementSize = (ref, options2) => {
22154
22258
  }
22155
22259
  };
22156
22260
  }, [observer, ref, updateSize]);
22157
- useEffect73(() => {
22261
+ useEffect72(() => {
22158
22262
  if (!options2.triggerOnWindowResize) {
22159
22263
  return;
22160
22264
  }
@@ -22163,13 +22267,13 @@ var useElementSize = (ref, options2) => {
22163
22267
  window.removeEventListener("resize", updateSize);
22164
22268
  };
22165
22269
  }, [options2.triggerOnWindowResize, updateSize]);
22166
- useEffect73(() => {
22270
+ useEffect72(() => {
22167
22271
  elementSizeHooks.push(updateSize);
22168
22272
  return () => {
22169
22273
  elementSizeHooks = elementSizeHooks.filter((e) => e !== updateSize);
22170
22274
  };
22171
22275
  }, [updateSize]);
22172
- return useMemo210(() => {
22276
+ return useMemo212(() => {
22173
22277
  if (!size4) {
22174
22278
  return null;
22175
22279
  }
@@ -22382,7 +22486,7 @@ var MediaVolumeSlider = ({ displayVerticalVolumeSlider, renderMuteButton, render
22382
22486
  function useComponentVisible(initialIsVisible) {
22383
22487
  const [isComponentVisible, setIsComponentVisible] = useState72(initialIsVisible);
22384
22488
  const ref = useRef62(null);
22385
- useEffect82(() => {
22489
+ useEffect83(() => {
22386
22490
  const handleClickOutside = (event) => {
22387
22491
  if (ref.current && !ref.current.contains(event.target)) {
22388
22492
  setIsComponentVisible(false);
@@ -22726,12 +22830,12 @@ var PlayerSeekBar = ({ durationInFrames, onSeekEnd, onSeekStart, inFrame, outFra
22726
22830
  position: "absolute"
22727
22831
  };
22728
22832
  }, [durationInFrames, inFrame, outFrame]);
22729
- return /* @__PURE__ */ jsxs6("div", {
22833
+ return /* @__PURE__ */ jsxs62("div", {
22730
22834
  ref: containerRef,
22731
22835
  onPointerDown,
22732
22836
  style: containerStyle,
22733
22837
  children: [
22734
- /* @__PURE__ */ jsxs6("div", {
22838
+ /* @__PURE__ */ jsxs62("div", {
22735
22839
  style: barBackground,
22736
22840
  children: [
22737
22841
  /* @__PURE__ */ jsx84("div", {
@@ -22767,7 +22871,7 @@ var PlayerTimeLabel = ({ durationInFrames, maxTimeLabelWidth, fps }) => {
22767
22871
  }, [maxTimeLabelWidth]);
22768
22872
  const isLastFrame = frame === durationInFrames - 1;
22769
22873
  const frameToDisplay = isLastFrame ? frame + 1 : frame;
22770
- return /* @__PURE__ */ jsxs72("div", {
22874
+ return /* @__PURE__ */ jsxs7("div", {
22771
22875
  style: timeLabel,
22772
22876
  children: [
22773
22877
  formatTime(frameToDisplay / fps),
@@ -23285,7 +23389,7 @@ var useClickPreventionOnDoubleClick = (onClick, onDoubleClick, doubleClickToFull
23285
23389
  }, [doubleClickToFullscreen, handleDoubleClick, handlePointerDown, onClick]);
23286
23390
  return returnValue;
23287
23391
  };
23288
- var reactVersion = React103.version.split(".")[0];
23392
+ var reactVersion = React102.version.split(".")[0];
23289
23393
  if (reactVersion === "0") {
23290
23394
  throw new Error(`Version ${reactVersion} of "react" is not supported by Remotion`);
23291
23395
  }
@@ -23800,7 +23904,8 @@ var SharedPlayerContexts = ({
23800
23904
  initiallyMuted,
23801
23905
  logLevel,
23802
23906
  audioLatencyHint,
23803
- volumePersistenceKey
23907
+ volumePersistenceKey,
23908
+ inputProps
23804
23909
  }) => {
23805
23910
  const compositionManagerContext = useMemo132(() => {
23806
23911
  const context = {
@@ -23820,11 +23925,29 @@ var SharedPlayerContexts = ({
23820
23925
  }
23821
23926
  ],
23822
23927
  folders: [],
23823
- currentCompositionMetadata: null,
23928
+ currentCompositionMetadata: {
23929
+ defaultCodec: null,
23930
+ defaultOutName: null,
23931
+ defaultPixelFormat: null,
23932
+ defaultProResProfile: null,
23933
+ defaultVideoImageFormat: null,
23934
+ durationInFrames,
23935
+ fps,
23936
+ height: compositionHeight,
23937
+ width: compositionWidth,
23938
+ props: inputProps
23939
+ },
23824
23940
  canvasContent: { type: "composition", compositionId: "player-comp" }
23825
23941
  };
23826
23942
  return context;
23827
- }, [component, durationInFrames, compositionHeight, compositionWidth, fps]);
23943
+ }, [
23944
+ component,
23945
+ durationInFrames,
23946
+ compositionHeight,
23947
+ compositionWidth,
23948
+ fps,
23949
+ inputProps
23950
+ ]);
23828
23951
  const [mediaMuted, setMediaMuted] = useState122(() => initiallyMuted);
23829
23952
  const [mediaVolume, setMediaVolume] = useState122(() => getPreferredVolume(volumePersistenceKey ?? null));
23830
23953
  const mediaVolumeContextValue = useMemo132(() => {
@@ -23867,19 +23990,17 @@ var SharedPlayerContexts = ({
23867
23990
  value: timelineContext,
23868
23991
  children: /* @__PURE__ */ jsx133(Internals.CompositionManager.Provider, {
23869
23992
  value: compositionManagerContext,
23870
- children: /* @__PURE__ */ jsx133(Internals.ResolveCompositionConfig, {
23871
- children: /* @__PURE__ */ jsx133(Internals.PrefetchProvider, {
23872
- children: /* @__PURE__ */ jsx133(Internals.DurationsContextProvider, {
23873
- children: /* @__PURE__ */ jsx133(Internals.MediaVolumeContext.Provider, {
23874
- value: mediaVolumeContextValue,
23875
- children: /* @__PURE__ */ jsx133(Internals.SetMediaVolumeContext.Provider, {
23876
- value: setMediaVolumeContextValue,
23877
- children: /* @__PURE__ */ jsx133(Internals.SharedAudioContextProvider, {
23878
- numberOfAudioTags: numberOfSharedAudioTags,
23879
- audioLatencyHint,
23880
- children: /* @__PURE__ */ jsx133(Internals.BufferingProvider, {
23881
- children
23882
- })
23993
+ children: /* @__PURE__ */ jsx133(Internals.PrefetchProvider, {
23994
+ children: /* @__PURE__ */ jsx133(Internals.DurationsContextProvider, {
23995
+ children: /* @__PURE__ */ jsx133(Internals.MediaVolumeContext.Provider, {
23996
+ value: mediaVolumeContextValue,
23997
+ children: /* @__PURE__ */ jsx133(Internals.SetMediaVolumeContext.Provider, {
23998
+ value: setMediaVolumeContextValue,
23999
+ children: /* @__PURE__ */ jsx133(Internals.SharedAudioContextProvider, {
24000
+ numberOfAudioTags: numberOfSharedAudioTags,
24001
+ audioLatencyHint,
24002
+ children: /* @__PURE__ */ jsx133(Internals.BufferingProvider, {
24003
+ children
23883
24004
  })
23884
24005
  })
23885
24006
  })
@@ -24179,6 +24300,7 @@ var PlayerFn = ({
24179
24300
  logLevel,
24180
24301
  audioLatencyHint,
24181
24302
  volumePersistenceKey,
24303
+ inputProps: actualInputProps,
24182
24304
  children: /* @__PURE__ */ jsx143(Internals.SetTimelineContext.Provider, {
24183
24305
  value: setTimelineContextValue,
24184
24306
  children: /* @__PURE__ */ jsx143(PlayerEmitterProvider, {
@@ -24426,6 +24548,7 @@ var ThumbnailFn = ({
24426
24548
  initiallyMuted: true,
24427
24549
  logLevel,
24428
24550
  audioLatencyHint: "playback",
24551
+ inputProps: passedInputProps,
24429
24552
  children: /* @__PURE__ */ jsx163(ThumbnailEmitterContext.Provider, {
24430
24553
  value: emitter,
24431
24554
  children: /* @__PURE__ */ jsx163(ThumbnailUI_default, {
@@ -24451,7 +24574,7 @@ import {
24451
24574
  useCallback as useCallback43,
24452
24575
  useEffect as useEffect55,
24453
24576
  useMemo as useMemo53,
24454
- useRef as useRef39,
24577
+ useRef as useRef41,
24455
24578
  useState as useState47
24456
24579
  } from "react";
24457
24580
 
@@ -25235,13 +25358,13 @@ import {
25235
25358
  createRef as createRef4,
25236
25359
  useCallback as useCallback35,
25237
25360
  useEffect as useEffect46,
25238
- useRef as useRef36,
25361
+ useRef as useRef38,
25239
25362
  useState as useState40
25240
25363
  } from "react";
25241
25364
 
25242
25365
  // src/components/homepage/Demo/Card.tsx
25243
25366
  init_esm();
25244
- import { useCallback as useCallback31, useRef as useRef31 } from "react";
25367
+ import { useCallback as useCallback31, useRef as useRef34 } from "react";
25245
25368
 
25246
25369
  // src/components/homepage/Demo/math.ts
25247
25370
  var paddingAndMargin = 20;
@@ -25276,7 +25399,7 @@ var getIndexFromPosition = (clientX, clientY) => {
25276
25399
 
25277
25400
  // src/components/homepage/Demo/Switcher.tsx
25278
25401
  import { useCallback as useCallback29 } from "react";
25279
- import { jsx as jsx55, jsxs as jsxs14 } from "react/jsx-runtime";
25402
+ import { jsx as jsx55, jsxs as jsxs15 } from "react/jsx-runtime";
25280
25403
  var Switcher = ({ type, theme, onTap }) => {
25281
25404
  const onPointerDown = useCallback29((e) => {
25282
25405
  e.stopPropagation();
@@ -25301,7 +25424,7 @@ var Switcher = ({ type, theme, onTap }) => {
25301
25424
  alignItems: "center",
25302
25425
  display: "flex"
25303
25426
  },
25304
- children: /* @__PURE__ */ jsxs14("svg", {
25427
+ children: /* @__PURE__ */ jsxs15("svg", {
25305
25428
  style: { height: switcherSize / 2 },
25306
25429
  viewBox: "0 0 320 512",
25307
25430
  children: [
@@ -25319,7 +25442,7 @@ var Switcher = ({ type, theme, onTap }) => {
25319
25442
  };
25320
25443
 
25321
25444
  // src/components/homepage/Demo/Card.tsx
25322
- import { jsx as jsx57, jsxs as jsxs15, Fragment as Fragment7 } from "react/jsx-runtime";
25445
+ import { jsx as jsx57, jsxs as jsxs16, Fragment as Fragment7 } from "react/jsx-runtime";
25323
25446
  var arePositionsEqual = (a, b) => {
25324
25447
  return a.every((pos, i) => {
25325
25448
  return pos.x === b[i].x && pos.y === b[i].y;
@@ -25339,7 +25462,7 @@ var Card2 = ({
25339
25462
  onClickRight
25340
25463
  }) => {
25341
25464
  const refToUse = refsToUse[index2];
25342
- const stopPrevious = useRef31([]);
25465
+ const stopPrevious = useRef34([]);
25343
25466
  let newIndices = [...indices];
25344
25467
  const applyPositions = useCallback31((except) => {
25345
25468
  let stopped = false;
@@ -25496,7 +25619,7 @@ var Card2 = ({
25496
25619
  borderRadius: 13,
25497
25620
  cursor: "grab"
25498
25621
  },
25499
- children: /* @__PURE__ */ jsxs15(AbsoluteFill, {
25622
+ children: /* @__PURE__ */ jsxs16(AbsoluteFill, {
25500
25623
  style: {
25501
25624
  backgroundColor: color,
25502
25625
  borderRadius: 12
@@ -25504,7 +25627,7 @@ var Card2 = ({
25504
25627
  className: "transition-opacity duration-200",
25505
25628
  children: [
25506
25629
  content,
25507
- withSwitcher ? /* @__PURE__ */ jsxs15(Fragment7, {
25630
+ withSwitcher ? /* @__PURE__ */ jsxs16(Fragment7, {
25508
25631
  children: [
25509
25632
  /* @__PURE__ */ jsx57(Switcher, {
25510
25633
  onTap: onClickLeft,
@@ -25525,7 +25648,7 @@ var Card2 = ({
25525
25648
 
25526
25649
  // src/components/homepage/Demo/CurrentCountry.tsx
25527
25650
  init_esm();
25528
- import { jsx as jsx58, jsxs as jsxs16 } from "react/jsx-runtime";
25651
+ import { jsx as jsx58, jsxs as jsxs17 } from "react/jsx-runtime";
25529
25652
  var CurrentCountry = ({ theme, countryPaths, countryLabel }) => {
25530
25653
  const { fps } = useVideoConfig();
25531
25654
  const frame = useCurrentFrame();
@@ -25540,7 +25663,7 @@ var CurrentCountry = ({ theme, countryPaths, countryLabel }) => {
25540
25663
  frame,
25541
25664
  delay: 10
25542
25665
  });
25543
- return /* @__PURE__ */ jsxs16(AbsoluteFill, {
25666
+ return /* @__PURE__ */ jsxs17(AbsoluteFill, {
25544
25667
  style: { overflow: "hidden" },
25545
25668
  children: [
25546
25669
  /* @__PURE__ */ jsx58(AbsoluteFill, {
@@ -25558,7 +25681,7 @@ var CurrentCountry = ({ theme, countryPaths, countryLabel }) => {
25558
25681
  })
25559
25682
  })
25560
25683
  }),
25561
- /* @__PURE__ */ jsxs16(AbsoluteFill, {
25684
+ /* @__PURE__ */ jsxs17(AbsoluteFill, {
25562
25685
  style: {
25563
25686
  alignItems: "center",
25564
25687
  justifyContent: "center"
@@ -25607,7 +25730,7 @@ import {
25607
25730
  useCallback as useCallback33,
25608
25731
  useEffect as useEffect45,
25609
25732
  useImperativeHandle as useImperativeHandle13,
25610
- useRef as useRef35
25733
+ useRef as useRef37
25611
25734
  } from "react";
25612
25735
 
25613
25736
  // src/components/homepage/Demo/DisplayedEmoji.tsx
@@ -25679,7 +25802,7 @@ var DisplayedEmoji = ({ emoji }) => {
25679
25802
  };
25680
25803
 
25681
25804
  // src/components/homepage/Demo/EmojiCard.tsx
25682
- import { jsx as jsx61, jsxs as jsxs17, Fragment as Fragment8 } from "react/jsx-runtime";
25805
+ import { jsx as jsx61, jsxs as jsxs18, Fragment as Fragment8 } from "react/jsx-runtime";
25683
25806
  var applyTransforms = ({ ref1, ref2, ref3, transforms }) => {
25684
25807
  ref1.style.transform = `translateX(${transforms[0]}%)`;
25685
25808
  ref2.style.transform = `translateX(${transforms[1]}%)`;
@@ -25720,10 +25843,10 @@ var emojiStyle = {
25720
25843
  top: "calc(50% - 50px)"
25721
25844
  };
25722
25845
  var EmojiCardRefFn = ({ emojiIndex }, ref) => {
25723
- const ref1 = useRef35(null);
25724
- const ref2 = useRef35(null);
25725
- const ref3 = useRef35(null);
25726
- const transforms = useRef35([-100, 0, 100]);
25846
+ const ref1 = useRef37(null);
25847
+ const ref2 = useRef37(null);
25848
+ const ref3 = useRef37(null);
25849
+ const transforms = useRef37([-100, 0, 100]);
25727
25850
  const onLeft = useCallback33(() => {
25728
25851
  if (!ref1.current || !ref2.current || !ref3.current) {
25729
25852
  return;
@@ -25775,7 +25898,7 @@ var EmojiCardRefFn = ({ emojiIndex }, ref) => {
25775
25898
  });
25776
25899
  }, []);
25777
25900
  const env = useRemotionEnvironment();
25778
- return /* @__PURE__ */ jsxs17(AbsoluteFill, {
25901
+ return /* @__PURE__ */ jsxs18(AbsoluteFill, {
25779
25902
  style: {
25780
25903
  justifyContent: "center",
25781
25904
  alignItems: "center",
@@ -25807,7 +25930,7 @@ var EmojiCardRefFn = ({ emojiIndex }, ref) => {
25807
25930
  children: /* @__PURE__ */ jsx61(DisplayedEmoji, {
25808
25931
  emoji: emojiIndex
25809
25932
  })
25810
- }) : /* @__PURE__ */ jsxs17(Fragment8, {
25933
+ }) : /* @__PURE__ */ jsxs18(Fragment8, {
25811
25934
  children: [
25812
25935
  /* @__PURE__ */ jsx61("div", {
25813
25936
  ref: ref1,
@@ -25861,7 +25984,7 @@ var Minus = ({ leftOffset, minusSignOpacity }) => {
25861
25984
  };
25862
25985
 
25863
25986
  // src/components/homepage/Demo/DigitWheel.tsx
25864
- import { jsx as jsx67, jsxs as jsxs18 } from "react/jsx-runtime";
25987
+ import { jsx as jsx67, jsxs as jsxs19 } from "react/jsx-runtime";
25865
25988
  var DURATION = 25;
25866
25989
  var items = 10;
25867
25990
  var NUM_WIDTH = 36;
@@ -25905,7 +26028,7 @@ var Wheel = ({ delay: delay2, digits, renderDigit, isLeadingDigit, isNegative })
25905
26028
  const rotation = progresses.map((p, i) => {
25906
26029
  return p * offsets[i];
25907
26030
  }).reduce((a, b) => a + b, 0) + rotations[0];
25908
- return /* @__PURE__ */ jsxs18("div", {
26031
+ return /* @__PURE__ */ jsxs19("div", {
25909
26032
  style: {
25910
26033
  position: "relative",
25911
26034
  width: NUM_WIDTH,
@@ -25966,14 +26089,14 @@ var Wheel = ({ delay: delay2, digits, renderDigit, isLeadingDigit, isNegative })
25966
26089
  };
25967
26090
 
25968
26091
  // src/components/homepage/Demo/TemperatureNumber.tsx
25969
- import { jsx as jsx68, jsxs as jsxs19 } from "react/jsx-runtime";
26092
+ import { jsx as jsx68, jsxs as jsxs20 } from "react/jsx-runtime";
25970
26093
  var TemperatureNumber = ({ theme, temperatureInCelsius }) => {
25971
26094
  const temperatureInFahrenheit = temperatureInCelsius * 9 / 5 + 32;
25972
26095
  const celsiusDegree = Math.abs(temperatureInCelsius);
25973
26096
  const fahrenheitDegree = Math.abs(temperatureInFahrenheit);
25974
26097
  const paddedCelsiusDegree = String(celsiusDegree).padStart(fahrenheitDegree.toFixed(0).length, "0").split("");
25975
26098
  const paddedFahrenheitDegree = fahrenheitDegree.toFixed(0).padStart(paddedCelsiusDegree.length, "0").split("");
25976
- return /* @__PURE__ */ jsxs19("div", {
26099
+ return /* @__PURE__ */ jsxs20("div", {
25977
26100
  style: {
25978
26101
  lineHeight: 1.1,
25979
26102
  fontFamily: "GTPlanar",
@@ -26021,13 +26144,13 @@ var TemperatureNumber = ({ theme, temperatureInCelsius }) => {
26021
26144
  };
26022
26145
 
26023
26146
  // src/components/homepage/Demo/Temperature.tsx
26024
- import { jsx as jsx69, jsxs as jsxs20 } from "react/jsx-runtime";
26147
+ import { jsx as jsx69, jsxs as jsxs21 } from "react/jsx-runtime";
26025
26148
  var Temperature = ({ theme, city, temperatureInCelsius }) => {
26026
26149
  if (temperatureInCelsius === null) {
26027
26150
  return null;
26028
26151
  }
26029
26152
  return /* @__PURE__ */ jsx69(AbsoluteFill, {
26030
- children: /* @__PURE__ */ jsxs20(AbsoluteFill, {
26153
+ children: /* @__PURE__ */ jsxs21(AbsoluteFill, {
26031
26154
  style: {
26032
26155
  alignItems: "center",
26033
26156
  justifyContent: "center",
@@ -26035,7 +26158,7 @@ var Temperature = ({ theme, city, temperatureInCelsius }) => {
26035
26158
  paddingRight: 20
26036
26159
  },
26037
26160
  children: [
26038
- /* @__PURE__ */ jsxs20("div", {
26161
+ /* @__PURE__ */ jsxs21("div", {
26039
26162
  style: {
26040
26163
  color: "#0b84f3",
26041
26164
  fontFamily: "GTPlanar",
@@ -26061,7 +26184,7 @@ var Temperature = ({ theme, city, temperatureInCelsius }) => {
26061
26184
  // src/components/homepage/Demo/TrendingRepos.tsx
26062
26185
  init_esm();
26063
26186
  import { useMemo as useMemo47 } from "react";
26064
- import { jsx as jsx70, jsxs as jsxs21 } from "react/jsx-runtime";
26187
+ import { jsx as jsx70, jsxs as jsxs25 } from "react/jsx-runtime";
26065
26188
  var TrendingRepoItem = ({ repo, theme, number }) => {
26066
26189
  const frame = useCurrentFrame();
26067
26190
  const { fps } = useVideoConfig();
@@ -26083,7 +26206,7 @@ var TrendingRepoItem = ({ repo, theme, number }) => {
26083
26206
  opacity: progress
26084
26207
  };
26085
26208
  }, [progress, theme]);
26086
- return /* @__PURE__ */ jsxs21("div", {
26209
+ return /* @__PURE__ */ jsxs25("div", {
26087
26210
  style: item,
26088
26211
  children: [
26089
26212
  number,
@@ -26114,7 +26237,7 @@ var TrendingRepos = ({ theme, trending }) => {
26114
26237
  paddingLeft: 20,
26115
26238
  paddingRight: 20
26116
26239
  },
26117
- children: /* @__PURE__ */ jsxs21("div", {
26240
+ children: /* @__PURE__ */ jsxs25("div", {
26118
26241
  children: [
26119
26242
  /* @__PURE__ */ jsx70("div", {
26120
26243
  style: {
@@ -26176,14 +26299,14 @@ var Cards = ({
26176
26299
  location,
26177
26300
  trending
26178
26301
  }) => {
26179
- const container4 = useRef36(null);
26302
+ const container4 = useRef38(null);
26180
26303
  const [refs] = useState40(() => {
26181
26304
  return new Array(4).fill(true).map(() => {
26182
26305
  return createRef4();
26183
26306
  });
26184
26307
  });
26185
- const positions = useRef36(getInitialPositions());
26186
- const shouldBePositions = useRef36(getInitialPositions());
26308
+ const positions = useRef38(getInitialPositions());
26309
+ const shouldBePositions = useRef38(getInitialPositions());
26187
26310
  const { isRendering } = useRemotionEnvironment();
26188
26311
  useEffect46(() => {
26189
26312
  const { current } = container4;
@@ -26201,7 +26324,7 @@ var Cards = ({
26201
26324
  current.removeEventListener("click", onClick);
26202
26325
  };
26203
26326
  }, [onToggle]);
26204
- const ref = useRef36(null);
26327
+ const ref = useRef38(null);
26205
26328
  const onLeft = useCallback35(() => {
26206
26329
  ref.current?.onRight();
26207
26330
  onRightPress();
@@ -26247,7 +26370,7 @@ var Cards = ({
26247
26370
  };
26248
26371
 
26249
26372
  // src/components/homepage/Demo/Comp.tsx
26250
- import { jsx as jsx75, jsxs as jsxs25 } from "react/jsx-runtime";
26373
+ import { jsx as jsx75, jsxs as jsxs27 } from "react/jsx-runtime";
26251
26374
  var getDataAndProps = async () => {
26252
26375
  const location = await fetch("https://bugs-git-homepage-player-remotion.vercel.app/api/location").then((res) => res.json());
26253
26376
  const trending = await fetch(`https://bugs.remotion.dev/trending?lat=${location.latitude}&lng=${location.longitude}&country=${location.country}`).then((res) => res.json()).then((data) => {
@@ -26308,7 +26431,7 @@ var HomepageVideoComp = ({
26308
26431
  c.free();
26309
26432
  };
26310
26433
  }, []);
26311
- return /* @__PURE__ */ jsxs25(AbsoluteFill, {
26434
+ return /* @__PURE__ */ jsxs27(AbsoluteFill, {
26312
26435
  style: {
26313
26436
  backgroundColor: theme === "dark" ? "#222" : "#fafafa"
26314
26437
  },
@@ -26378,7 +26501,7 @@ var DemoErrorIcon = () => {
26378
26501
  };
26379
26502
 
26380
26503
  // src/components/homepage/Demo/DoneCheckmark.tsx
26381
- import { jsx as jsx79, jsxs as jsxs27 } from "react/jsx-runtime";
26504
+ import { jsx as jsx79, jsxs as jsxs28 } from "react/jsx-runtime";
26382
26505
  var DoneCheckmark = () => {
26383
26506
  return /* @__PURE__ */ jsx79("div", {
26384
26507
  style: {
@@ -26391,7 +26514,7 @@ var DoneCheckmark = () => {
26391
26514
  justifyContent: "center",
26392
26515
  animation: "jump 0.2s ease-out"
26393
26516
  },
26394
- children: /* @__PURE__ */ jsxs27("svg", {
26517
+ children: /* @__PURE__ */ jsxs28("svg", {
26395
26518
  viewBox: "0 0 20 20",
26396
26519
  fill: "none",
26397
26520
  xmlns: "http://www.w3.org/2000/svg",
@@ -26420,7 +26543,7 @@ var DoneCheckmark = () => {
26420
26543
  };
26421
26544
 
26422
26545
  // src/components/homepage/Demo/Progress.tsx
26423
- import { jsx as jsx80, jsxs as jsxs28 } from "react/jsx-runtime";
26546
+ import { jsx as jsx80, jsxs as jsxs29 } from "react/jsx-runtime";
26424
26547
  var Progress = ({ progress }) => {
26425
26548
  const inner2 = makeCircle({
26426
26549
  radius: 10
@@ -26430,7 +26553,7 @@ var Progress = ({ progress }) => {
26430
26553
  closePath: false,
26431
26554
  radius: 10
26432
26555
  });
26433
- return /* @__PURE__ */ jsxs28("svg", {
26556
+ return /* @__PURE__ */ jsxs29("svg", {
26434
26557
  viewBox: `0 0 ${inner2.width} ${inner2.height}`,
26435
26558
  style: { overflow: "visible", height: 22 },
26436
26559
  children: [
@@ -26453,20 +26576,20 @@ var Progress = ({ progress }) => {
26453
26576
 
26454
26577
  // src/components/homepage/Demo/Spinner.tsx
26455
26578
  import { useMemo as useMemo49 } from "react";
26456
- import { jsx as jsx81, jsxs as jsxs29, Fragment as Fragment9 } from "react/jsx-runtime";
26457
- var viewBox = 100;
26458
- var lines = 8;
26579
+ import { jsx as jsx81, jsxs as jsxs30, Fragment as Fragment9 } from "react/jsx-runtime";
26580
+ var viewBox2 = 100;
26581
+ var lines2 = 8;
26459
26582
  var className2 = "__remotion_spinner_line";
26460
26583
  var remotionSpinnerAnimation = "__remotion_spinner_animation";
26461
- var translated2 = "M 44 0 L 50 0 a 6 6 0 0 1 6 6 L 56 26 a 6 6 0 0 1 -6 6 L 50 32 a 6 6 0 0 1 -6 -6 L 44 6 a 6 6 0 0 1 6 -6 Z";
26462
- var Spinner = ({ size: size4, duration }) => {
26584
+ var translated3 = "M 44 0 L 50 0 a 6 6 0 0 1 6 6 L 56 26 a 6 6 0 0 1 -6 6 L 50 32 a 6 6 0 0 1 -6 -6 L 44 6 a 6 6 0 0 1 6 -6 Z";
26585
+ var Spinner2 = ({ size: size4, duration }) => {
26463
26586
  const style2 = useMemo49(() => {
26464
26587
  return {
26465
26588
  width: size4,
26466
26589
  height: size4
26467
26590
  };
26468
26591
  }, [size4]);
26469
- return /* @__PURE__ */ jsxs29(Fragment9, {
26592
+ return /* @__PURE__ */ jsxs30(Fragment9, {
26470
26593
  children: [
26471
26594
  /* @__PURE__ */ jsx81("style", {
26472
26595
  type: "text/css",
@@ -26487,16 +26610,16 @@ var Spinner = ({ size: size4, duration }) => {
26487
26610
  }),
26488
26611
  /* @__PURE__ */ jsx81("svg", {
26489
26612
  style: style2,
26490
- viewBox: `0 0 ${viewBox} ${viewBox}`,
26491
- children: new Array(lines).fill(true).map((_, index2) => {
26613
+ viewBox: `0 0 ${viewBox2} ${viewBox2}`,
26614
+ children: new Array(lines2).fill(true).map((_, index2) => {
26492
26615
  return /* @__PURE__ */ jsx81("path", {
26493
26616
  className: className2,
26494
26617
  style: {
26495
- rotate: `${index2 * Math.PI * 2 / lines}rad`,
26618
+ rotate: `${index2 * Math.PI * 2 / lines2}rad`,
26496
26619
  transformOrigin: "center center",
26497
- animationDelay: `${index2 * (duration / lines) - duration}s`
26620
+ animationDelay: `${index2 * (duration / lines2) - duration}s`
26498
26621
  },
26499
- d: translated2,
26622
+ d: translated3,
26500
26623
  fill: PALETTE.TEXT_COLOR
26501
26624
  }, index2);
26502
26625
  })
@@ -26594,7 +26717,7 @@ var RenderButton = ({ renderData, onError }) => {
26594
26717
  disabled: !renderData || state.type !== "idle",
26595
26718
  children: state.type === "error" ? /* @__PURE__ */ jsx85(DemoErrorIcon, {}) : state.type === "done" ? /* @__PURE__ */ jsx85(DoneCheckmark, {}) : state.type === "progress" ? /* @__PURE__ */ jsx85(Progress, {
26596
26719
  progress: state.progress
26597
- }) : state.type === "invoking" ? /* @__PURE__ */ jsx85(Spinner, {
26720
+ }) : state.type === "invoking" ? /* @__PURE__ */ jsx85(Spinner2, {
26598
26721
  size: 20,
26599
26722
  duration: 1
26600
26723
  }) : /* @__PURE__ */ jsx85("svg", {
@@ -26613,7 +26736,7 @@ var RenderButton = ({ renderData, onError }) => {
26613
26736
  };
26614
26737
 
26615
26738
  // src/components/homepage/Demo/DownloadNudge.tsx
26616
- import { jsx as jsx87, jsxs as jsxs30 } from "react/jsx-runtime";
26739
+ import { jsx as jsx87, jsxs as jsxs31 } from "react/jsx-runtime";
26617
26740
  var origWidth = 77;
26618
26741
  var scale = 0.4;
26619
26742
  var Icon3 = () => {
@@ -26643,10 +26766,10 @@ var DownloadNudge = () => {
26643
26766
  paddingRight: 22,
26644
26767
  paddingTop: 20
26645
26768
  },
26646
- children: /* @__PURE__ */ jsxs30("div", {
26769
+ children: /* @__PURE__ */ jsxs31("div", {
26647
26770
  children: [
26648
26771
  /* @__PURE__ */ jsx87(Icon3, {}),
26649
- /* @__PURE__ */ jsxs30("div", {
26772
+ /* @__PURE__ */ jsxs31("div", {
26650
26773
  style: {
26651
26774
  fontFamily: FONTS.GTPLANAR,
26652
26775
  fontSize: 15,
@@ -26673,7 +26796,7 @@ var DownloadNudge = () => {
26673
26796
  };
26674
26797
 
26675
26798
  // src/components/homepage/Demo/DragAndDropNudge.tsx
26676
- import { jsx as jsx88, jsxs as jsxs31 } from "react/jsx-runtime";
26799
+ import { jsx as jsx88, jsxs as jsxs34 } from "react/jsx-runtime";
26677
26800
  var origWidth2 = 37;
26678
26801
  var scale2 = 0.4;
26679
26802
  var Icon5 = () => {
@@ -26703,7 +26826,7 @@ var DragAndDropNudge = () => {
26703
26826
  marginTop: 50
26704
26827
  },
26705
26828
  className: "ml-4 lg:-ml-5",
26706
- children: /* @__PURE__ */ jsxs31("div", {
26829
+ children: /* @__PURE__ */ jsxs34("div", {
26707
26830
  children: [
26708
26831
  /* @__PURE__ */ jsx88("div", {
26709
26832
  style: {
@@ -26724,7 +26847,7 @@ var DragAndDropNudge = () => {
26724
26847
 
26725
26848
  // src/components/homepage/Demo/PlayerSeekBar.tsx
26726
26849
  init_esm();
26727
- import { useCallback as useCallback39, useEffect as useEffect49, useMemo as useMemo51, useRef as useRef37, useState as useState45 } from "react";
26850
+ import { useCallback as useCallback39, useEffect as useEffect49, useMemo as useMemo51, useRef as useRef39, useState as useState45 } from "react";
26728
26851
 
26729
26852
  // src/components/homepage/layout/use-el-size.ts
26730
26853
  import { useCallback as useCallback38, useEffect as useEffect48, useMemo as useMemo50, useState as useState43 } from "react";
@@ -26769,7 +26892,7 @@ var useElementSize2 = (ref) => {
26769
26892
  };
26770
26893
 
26771
26894
  // src/components/homepage/Demo/PlayerSeekBar.tsx
26772
- import { jsx as jsx89, jsxs as jsxs34 } from "react/jsx-runtime";
26895
+ import { jsx as jsx89, jsxs as jsxs36 } from "react/jsx-runtime";
26773
26896
  var getFrameFromX2 = (clientX, durationInFrames, width2) => {
26774
26897
  const pos = clientX;
26775
26898
  const frame = Math.round(interpolate2(pos, [0, width2], [0, durationInFrames - 1], {
@@ -26853,7 +26976,7 @@ var PlayerSeekBar2 = ({
26853
26976
  outFrame,
26854
26977
  playerRef
26855
26978
  }) => {
26856
- const containerRef = useRef37(null);
26979
+ const containerRef = useRef39(null);
26857
26980
  const barHovered = useHoverState2(containerRef, false);
26858
26981
  const size4 = useElementSize2(containerRef.current);
26859
26982
  const [playing, setPlaying] = useState45(false);
@@ -26978,12 +27101,12 @@ var PlayerSeekBar2 = ({
26978
27101
  position: "absolute"
26979
27102
  };
26980
27103
  }, [durationInFrames, inFrame, outFrame]);
26981
- return /* @__PURE__ */ jsxs34("div", {
27104
+ return /* @__PURE__ */ jsxs36("div", {
26982
27105
  ref: containerRef,
26983
27106
  onPointerDown,
26984
27107
  style: containerStyle3,
26985
27108
  children: [
26986
- /* @__PURE__ */ jsxs34("div", {
27109
+ /* @__PURE__ */ jsxs36("div", {
26987
27110
  style: barBackground2,
26988
27111
  children: [
26989
27112
  /* @__PURE__ */ jsx89("div", {
@@ -27002,7 +27125,7 @@ var PlayerSeekBar2 = ({
27002
27125
  };
27003
27126
 
27004
27127
  // src/components/homepage/Demo/PlayerVolume.tsx
27005
- import { useCallback as useCallback40, useEffect as useEffect50, useRef as useRef38, useState as useState46 } from "react";
27128
+ import { useCallback as useCallback40, useEffect as useEffect50, useRef as useRef40, useState as useState46 } from "react";
27006
27129
 
27007
27130
  // src/components/homepage/Demo/icons.tsx
27008
27131
  import { jsx as jsx90 } from "react/jsx-runtime";
@@ -27062,7 +27185,7 @@ import { jsx as jsx91 } from "react/jsx-runtime";
27062
27185
  var PlayerVolume = ({ playerRef }) => {
27063
27186
  const [muted, setIsMuted] = useState46(() => playerRef.current?.isMuted() ?? true);
27064
27187
  const [isHovered, setIsHovered] = useState46(false);
27065
- const timerRef = useRef38(null);
27188
+ const timerRef = useRef40(null);
27066
27189
  useEffect50(() => {
27067
27190
  const { current } = playerRef;
27068
27191
  if (!current) {
@@ -27210,7 +27333,7 @@ var TimeDisplay = ({ fps, playerRef }) => {
27210
27333
  };
27211
27334
 
27212
27335
  // src/components/homepage/Demo/PlayerControls.tsx
27213
- import { jsx as jsx98, jsxs as jsxs36 } from "react/jsx-runtime";
27336
+ import { jsx as jsx98, jsxs as jsxs37 } from "react/jsx-runtime";
27214
27337
  var Separator2 = () => {
27215
27338
  return /* @__PURE__ */ jsx98("div", {
27216
27339
  style: {
@@ -27220,7 +27343,7 @@ var Separator2 = () => {
27220
27343
  });
27221
27344
  };
27222
27345
  var PlayerControls = ({ playerRef, durationInFrames, fps, children }) => {
27223
- return /* @__PURE__ */ jsxs36("div", {
27346
+ return /* @__PURE__ */ jsxs37("div", {
27224
27347
  className: "flex flex-row items-center bg-pane",
27225
27348
  children: [
27226
27349
  /* @__PURE__ */ jsx98(PlayPauseButton, {
@@ -27264,7 +27387,7 @@ var PlayerControls = ({ playerRef, durationInFrames, fps, children }) => {
27264
27387
 
27265
27388
  // src/components/homepage/Demo/ThemeNudge.tsx
27266
27389
  import React59 from "react";
27267
- import { jsx as jsx99, jsxs as jsxs37 } from "react/jsx-runtime";
27390
+ import { jsx as jsx99, jsxs as jsxs38 } from "react/jsx-runtime";
27268
27391
  var origWidth3 = 21;
27269
27392
  var scale3 = 0.4;
27270
27393
  var Icon6 = () => {
@@ -27299,9 +27422,9 @@ var ThemeNudge = () => {
27299
27422
  position: "absolute",
27300
27423
  right: 0
27301
27424
  },
27302
- children: /* @__PURE__ */ jsxs37("div", {
27425
+ children: /* @__PURE__ */ jsxs38("div", {
27303
27426
  children: [
27304
- /* @__PURE__ */ jsxs37("div", {
27427
+ /* @__PURE__ */ jsxs38("div", {
27305
27428
  style: {
27306
27429
  fontFamily: FONTS.GTPLANAR,
27307
27430
  fontSize: 15,
@@ -27312,7 +27435,7 @@ var ThemeNudge = () => {
27312
27435
  marginTop: 5
27313
27436
  },
27314
27437
  children: [
27315
- /* @__PURE__ */ jsxs37("a", {
27438
+ /* @__PURE__ */ jsxs38("a", {
27316
27439
  href: "#",
27317
27440
  onClick: toggleTheme,
27318
27441
  className: "bluelink",
@@ -27334,7 +27457,7 @@ var ThemeNudge = () => {
27334
27457
  };
27335
27458
 
27336
27459
  // src/components/homepage/Demo/index.tsx
27337
- import { jsx as jsx100, jsxs as jsxs38 } from "react/jsx-runtime";
27460
+ import { jsx as jsx100, jsxs as jsxs39 } from "react/jsx-runtime";
27338
27461
  var style3 = {
27339
27462
  width: "100%",
27340
27463
  aspectRatio: "640 / 360",
@@ -27351,7 +27474,7 @@ var playerWrapper = {
27351
27474
  var Demo = () => {
27352
27475
  const { colorMode } = useColorMode();
27353
27476
  const [data2, setData] = useState47(null);
27354
- const ref = useRef39(null);
27477
+ const ref = useRef41(null);
27355
27478
  const [isFullscreen, setIsFullscreen] = useState47(false);
27356
27479
  const [cardOrder, setCardOrder] = useState47([0, 1, 2, 3]);
27357
27480
  const [emojiIndex, setEmojiIndex] = useState47(0);
@@ -27402,21 +27525,21 @@ var Demo = () => {
27402
27525
  const onError = useCallback43(() => {
27403
27526
  setError(true);
27404
27527
  }, []);
27405
- return /* @__PURE__ */ jsxs38("div", {
27528
+ return /* @__PURE__ */ jsxs39("div", {
27406
27529
  children: [
27407
27530
  /* @__PURE__ */ jsx100("br", {}),
27408
27531
  /* @__PURE__ */ jsx100("br", {}),
27409
27532
  /* @__PURE__ */ jsx100(SectionTitle, {
27410
27533
  children: "Demo"
27411
27534
  }),
27412
- /* @__PURE__ */ jsxs38("div", {
27535
+ /* @__PURE__ */ jsxs39("div", {
27413
27536
  style: { height: 140, position: "relative" },
27414
27537
  children: [
27415
27538
  /* @__PURE__ */ jsx100(DragAndDropNudge, {}),
27416
27539
  /* @__PURE__ */ jsx100(ThemeNudge, {})
27417
27540
  ]
27418
27541
  }),
27419
- /* @__PURE__ */ jsxs38("div", {
27542
+ /* @__PURE__ */ jsxs39("div", {
27420
27543
  style: playerWrapper,
27421
27544
  children: [
27422
27545
  /* @__PURE__ */ jsx100(Player, {
@@ -27498,15 +27621,15 @@ var ClearButton = (props) => {
27498
27621
 
27499
27622
  // src/components/homepage/MuxVideo.tsx
27500
27623
  import Hls2 from "hls.js";
27501
- import { forwardRef as forwardRef31, useEffect as useEffect57, useImperativeHandle as useImperativeHandle14, useRef as useRef41 } from "react";
27624
+ import { forwardRef as forwardRef31, useEffect as useEffect57, useImperativeHandle as useImperativeHandle14, useRef as useRef45 } from "react";
27502
27625
 
27503
27626
  // src/components/homepage/VideoPlayerWithControls.tsx
27504
27627
  import Hls from "hls.js";
27505
27628
  import"plyr/dist/plyr.css";
27506
- import { forwardRef as forwardRef30, useCallback as useCallback45, useEffect as useEffect56, useRef as useRef40, useState as useState48 } from "react";
27629
+ import { forwardRef as forwardRef30, useCallback as useCallback45, useEffect as useEffect56, useRef as useRef43, useState as useState48 } from "react";
27507
27630
  import { jsx as jsx105 } from "react/jsx-runtime";
27508
27631
  var useCombinedRefs = function(...refs) {
27509
- const targetRef = useRef40(null);
27632
+ const targetRef = useRef43(null);
27510
27633
  useEffect56(() => {
27511
27634
  refs.forEach((ref) => {
27512
27635
  if (!ref)
@@ -27521,9 +27644,9 @@ var useCombinedRefs = function(...refs) {
27521
27644
  return targetRef;
27522
27645
  };
27523
27646
  var VideoPlayerWithControls = forwardRef30(({ playbackId, poster, currentTime, onLoaded, onError, onSize, autoPlay }, ref) => {
27524
- const videoRef = useRef40(null);
27647
+ const videoRef = useRef43(null);
27525
27648
  const metaRef = useCombinedRefs(ref, videoRef);
27526
- const playerRef = useRef40(null);
27649
+ const playerRef = useRef43(null);
27527
27650
  const [playerInitTime] = useState48(Date.now());
27528
27651
  const videoError = useCallback45((event) => onError(event), [onError]);
27529
27652
  const onImageLoad = useCallback45((event) => {
@@ -27608,7 +27731,7 @@ var getVideoToPlayUrl = (muxId) => {
27608
27731
  return `https://stream.mux.com/${muxId}.m3u8`;
27609
27732
  };
27610
27733
  var MuxVideoForward = ({ muxId, ...props }, ref) => {
27611
- const videoRef = useRef41(null);
27734
+ const videoRef = useRef45(null);
27612
27735
  const vidUrl = getVideoToPlayUrl(muxId);
27613
27736
  useImperativeHandle14(ref, () => videoRef.current, []);
27614
27737
  useEffect57(() => {
@@ -27639,9 +27762,9 @@ var MuxVideoForward = ({ muxId, ...props }, ref) => {
27639
27762
  var MuxVideo = forwardRef31(MuxVideoForward);
27640
27763
 
27641
27764
  // src/components/homepage/EditorStarterSection.tsx
27642
- import { jsx as jsx108, jsxs as jsxs39 } from "react/jsx-runtime";
27765
+ import { jsx as jsx108, jsxs as jsxs40 } from "react/jsx-runtime";
27643
27766
  var EditorStarterSection = () => {
27644
- return /* @__PURE__ */ jsxs39("div", {
27767
+ return /* @__PURE__ */ jsxs40("div", {
27645
27768
  children: [
27646
27769
  /* @__PURE__ */ jsx108(SectionTitle, {
27647
27770
  children: "Build your own video editor"
@@ -27649,7 +27772,7 @@ var EditorStarterSection = () => {
27649
27772
  /* @__PURE__ */ jsx108("br", {}),
27650
27773
  /* @__PURE__ */ jsx108("div", {
27651
27774
  className: "card flex p-0 overflow-hidden",
27652
- children: /* @__PURE__ */ jsxs39("div", {
27775
+ children: /* @__PURE__ */ jsxs40("div", {
27653
27776
  className: "flex-1 flex flex-col lg:flex-row justify-center",
27654
27777
  children: [
27655
27778
  /* @__PURE__ */ jsx108("div", {
@@ -27663,7 +27786,7 @@ var EditorStarterSection = () => {
27663
27786
  muted: true
27664
27787
  })
27665
27788
  }),
27666
- /* @__PURE__ */ jsxs39("div", {
27789
+ /* @__PURE__ */ jsxs40("div", {
27667
27790
  className: "p-6 flex-1 flex flex-col h-full",
27668
27791
  children: [
27669
27792
  /* @__PURE__ */ jsx108("div", {
@@ -27677,7 +27800,7 @@ var EditorStarterSection = () => {
27677
27800
  /* @__PURE__ */ jsx108("div", {
27678
27801
  className: "h-5"
27679
27802
  }),
27680
- /* @__PURE__ */ jsxs39("div", {
27803
+ /* @__PURE__ */ jsxs40("div", {
27681
27804
  className: "flex gap-2 items-center",
27682
27805
  children: [
27683
27806
  /* @__PURE__ */ jsx108("a", {
@@ -27725,7 +27848,7 @@ var EditorStarterSection_default = EditorStarterSection;
27725
27848
 
27726
27849
  // src/components/homepage/EvaluateRemotion.tsx
27727
27850
  import { useEffect as useEffect58, useState as useState49 } from "react";
27728
- import { jsx as jsx109, jsxs as jsxs40 } from "react/jsx-runtime";
27851
+ import { jsx as jsx109, jsxs as jsxs41 } from "react/jsx-runtime";
27729
27852
  var EvaluateRemotionSection = () => {
27730
27853
  const [dailyAvatars, setDailyAvatars] = useState49([]);
27731
27854
  useEffect58(() => {
@@ -27755,10 +27878,10 @@ var EvaluateRemotionSection = () => {
27755
27878
  }
27756
27879
  setDailyAvatars(selectedAvatars);
27757
27880
  }, []);
27758
- return /* @__PURE__ */ jsxs40("div", {
27881
+ return /* @__PURE__ */ jsxs41("div", {
27759
27882
  className: "flex flex-col lg:flex-row gap-2",
27760
27883
  children: [
27761
- /* @__PURE__ */ jsxs40("div", {
27884
+ /* @__PURE__ */ jsxs41("div", {
27762
27885
  className: "card flex-1 flex flex-col",
27763
27886
  children: [
27764
27887
  /* @__PURE__ */ jsx109("div", {
@@ -27784,7 +27907,7 @@ var EvaluateRemotionSection = () => {
27784
27907
  })
27785
27908
  ]
27786
27909
  }),
27787
- /* @__PURE__ */ jsxs40("div", {
27910
+ /* @__PURE__ */ jsxs41("div", {
27788
27911
  className: "card flex-1 flex flex-col",
27789
27912
  children: [
27790
27913
  /* @__PURE__ */ jsx109("div", {
@@ -27798,7 +27921,7 @@ var EvaluateRemotionSection = () => {
27798
27921
  /* @__PURE__ */ jsx109("div", {
27799
27922
  className: "flex-1"
27800
27923
  }),
27801
- /* @__PURE__ */ jsxs40("div", {
27924
+ /* @__PURE__ */ jsxs41("div", {
27802
27925
  className: "flex flex-row justify-between",
27803
27926
  children: [
27804
27927
  /* @__PURE__ */ jsx109("a", {
@@ -27828,7 +27951,7 @@ var EvaluateRemotion_default = EvaluateRemotionSection;
27828
27951
 
27829
27952
  // src/components/homepage/IfYouKnowReact.tsx
27830
27953
  import { useEffect as useEffect59, useState as useState50 } from "react";
27831
- import { jsx as jsx110, jsxs as jsxs41 } from "react/jsx-runtime";
27954
+ import { jsx as jsx110, jsxs as jsxs43 } from "react/jsx-runtime";
27832
27955
  var isWebkit = () => {
27833
27956
  if (typeof window === "undefined") {
27834
27957
  return false;
@@ -27848,7 +27971,7 @@ var IfYouKnowReact = () => {
27848
27971
  setVid("/img/compose.mp4");
27849
27972
  }
27850
27973
  }, []);
27851
- return /* @__PURE__ */ jsxs41("div", {
27974
+ return /* @__PURE__ */ jsxs43("div", {
27852
27975
  className: "flex flex-col lg:flex-row text-left justify-start lg:justify-end items-start lg:mb-0 gap-6 mt-8",
27853
27976
  children: [
27854
27977
  /* @__PURE__ */ jsx110("video", {
@@ -27859,9 +27982,9 @@ var IfYouKnowReact = () => {
27859
27982
  loop: true,
27860
27983
  className: "w-[500px] cursor-default! relative lg:-translate-x-8 -mb-40 lg:mt-0 lg:mb-0"
27861
27984
  }),
27862
- /* @__PURE__ */ jsxs41("div", {
27985
+ /* @__PURE__ */ jsxs43("div", {
27863
27986
  children: [
27864
- /* @__PURE__ */ jsxs41("h2", {
27987
+ /* @__PURE__ */ jsxs43("h2", {
27865
27988
  className: "text-4xl fontbrand pt-20",
27866
27989
  children: [
27867
27990
  /* @__PURE__ */ jsx110("span", {
@@ -27878,7 +28001,7 @@ var IfYouKnowReact = () => {
27878
28001
  /* @__PURE__ */ jsx110("div", {
27879
28002
  className: "h-4"
27880
28003
  }),
27881
- /* @__PURE__ */ jsxs41("a", {
28004
+ /* @__PURE__ */ jsxs43("a", {
27882
28005
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
27883
28006
  href: "/docs/the-fundamentals",
27884
28007
  children: [
@@ -27903,7 +28026,7 @@ var IfYouKnowReact = () => {
27903
28026
 
27904
28027
  // src/components/homepage/NewsletterButton.tsx
27905
28028
  import { useCallback as useCallback46, useState as useState51 } from "react";
27906
- import { jsx as jsx111, jsxs as jsxs43 } from "react/jsx-runtime";
28029
+ import { jsx as jsx111, jsxs as jsxs45 } from "react/jsx-runtime";
27907
28030
  var NewsletterButton = () => {
27908
28031
  const [email, setEmail] = useState51("");
27909
28032
  const [submitting, setSubmitting] = useState51(false);
@@ -27935,32 +28058,32 @@ var NewsletterButton = () => {
27935
28058
  className: "flex flex-col",
27936
28059
  children: /* @__PURE__ */ jsx111("div", {
27937
28060
  className: "w-full",
27938
- children: /* @__PURE__ */ jsxs43("div", {
28061
+ children: /* @__PURE__ */ jsxs45("div", {
27939
28062
  className: "flex flex-col flex-1",
27940
28063
  children: [
27941
28064
  /* @__PURE__ */ jsx111(SectionTitle, {
27942
28065
  children: "Newsletter"
27943
28066
  }),
27944
- /* @__PURE__ */ jsxs43("form", {
28067
+ /* @__PURE__ */ jsxs45("form", {
27945
28068
  onSubmit: handleSubmit,
27946
28069
  style: {
27947
28070
  width: "100%"
27948
28071
  },
27949
28072
  children: [
27950
- /* @__PURE__ */ jsxs43("div", {
28073
+ /* @__PURE__ */ jsxs45("div", {
27951
28074
  className: "fontbrand text-center mb-10 -mt-4",
27952
28075
  children: [
27953
28076
  "Read about new features and noteworthy updates we have made on Remotion once in a while.",
27954
28077
  " "
27955
28078
  ]
27956
28079
  }),
27957
- /* @__PURE__ */ jsxs43("div", {
28080
+ /* @__PURE__ */ jsxs45("div", {
27958
28081
  className: "flex flex-col md:flex-row gap-2 justify-center",
27959
28082
  children: [
27960
- /* @__PURE__ */ jsx111("input", {
27961
- className: "w-full dark:bg-[#121212] md:max-w-[400px] rounded-lg border-effect border-black outline-none h-14 px-3 fontbrand text-lg box-border",
28083
+ /* @__PURE__ */ jsx111(Input, {
27962
28084
  disabled: submitting,
27963
28085
  value: email,
28086
+ className: "md:max-w-[400px]",
27964
28087
  onChange: (e) => setEmail(e.target.value),
27965
28088
  type: "email",
27966
28089
  required: true,
@@ -27990,21 +28113,21 @@ var NewsletterButton = () => {
27990
28113
  };
27991
28114
 
27992
28115
  // src/components/homepage/ParameterizeAndEdit.tsx
27993
- import { useEffect as useEffect60, useRef as useRef43, useState as useState53 } from "react";
27994
- import { jsx as jsx114, jsxs as jsxs45 } from "react/jsx-runtime";
28116
+ import { useEffect as useEffect60, useRef as useRef46, useState as useState53 } from "react";
28117
+ import { jsx as jsx114, jsxs as jsxs46 } from "react/jsx-runtime";
27995
28118
  var icon3 = {
27996
28119
  height: 16,
27997
28120
  marginLeft: 10
27998
28121
  };
27999
28122
  var ParameterizeAndEdit = () => {
28000
- const ref = useRef43(null);
28123
+ const ref = useRef46(null);
28001
28124
  const [vid, setVid] = useState53("/img/editing-vp9-chrome.webm");
28002
28125
  useEffect60(() => {
28003
28126
  if (isWebkit()) {
28004
28127
  setVid("/img/editing-safari.mp4");
28005
28128
  }
28006
28129
  }, []);
28007
- return /* @__PURE__ */ jsxs45("div", {
28130
+ return /* @__PURE__ */ jsxs46("div", {
28008
28131
  ref,
28009
28132
  className: "flex flex-col lg:flex-row justify-start lg:justify-end items-start gap-6 mt-20 lg:mt-0",
28010
28133
  children: [
@@ -28023,11 +28146,11 @@ var ParameterizeAndEdit = () => {
28023
28146
  }
28024
28147
  })
28025
28148
  }),
28026
- /* @__PURE__ */ jsxs45("div", {
28149
+ /* @__PURE__ */ jsxs46("div", {
28027
28150
  style: { flex: 1 },
28028
28151
  className: "font-brand pt-4",
28029
28152
  children: [
28030
- /* @__PURE__ */ jsxs45("h2", {
28153
+ /* @__PURE__ */ jsxs46("h2", {
28031
28154
  className: "fontbrand text-4xl",
28032
28155
  children: [
28033
28156
  "Edit ",
@@ -28037,7 +28160,7 @@ var ParameterizeAndEdit = () => {
28037
28160
  })
28038
28161
  ]
28039
28162
  }),
28040
- /* @__PURE__ */ jsxs45("p", {
28163
+ /* @__PURE__ */ jsxs46("p", {
28041
28164
  className: "leading-relaxed",
28042
28165
  children: [
28043
28166
  "Parameterize your video by passing data.",
@@ -28048,10 +28171,10 @@ var ParameterizeAndEdit = () => {
28048
28171
  /* @__PURE__ */ jsx114("div", {
28049
28172
  className: "h-4"
28050
28173
  }),
28051
- /* @__PURE__ */ jsxs45("div", {
28174
+ /* @__PURE__ */ jsxs46("div", {
28052
28175
  className: "leading-6",
28053
28176
  children: [
28054
- /* @__PURE__ */ jsxs45("a", {
28177
+ /* @__PURE__ */ jsxs46("a", {
28055
28178
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
28056
28179
  href: "/docs/studio",
28057
28180
  children: [
@@ -28069,7 +28192,7 @@ var ParameterizeAndEdit = () => {
28069
28192
  ]
28070
28193
  }),
28071
28194
  /* @__PURE__ */ jsx114("br", {}),
28072
- /* @__PURE__ */ jsxs45("a", {
28195
+ /* @__PURE__ */ jsxs46("a", {
28073
28196
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
28074
28197
  href: "/player",
28075
28198
  children: [
@@ -28087,7 +28210,7 @@ var ParameterizeAndEdit = () => {
28087
28210
  ]
28088
28211
  }),
28089
28212
  /* @__PURE__ */ jsx114("br", {}),
28090
- /* @__PURE__ */ jsxs45("a", {
28213
+ /* @__PURE__ */ jsxs46("a", {
28091
28214
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
28092
28215
  href: "/docs/editor-starter",
28093
28216
  children: [
@@ -28113,15 +28236,15 @@ var ParameterizeAndEdit = () => {
28113
28236
  };
28114
28237
 
28115
28238
  // src/components/homepage/RealMp4Videos.tsx
28116
- import { useEffect as useEffect61, useRef as useRef45, useState as useState55 } from "react";
28117
- import { jsx as jsx116, jsxs as jsxs46 } from "react/jsx-runtime";
28239
+ import { useEffect as useEffect61, useRef as useRef47, useState as useState55 } from "react";
28240
+ import { jsx as jsx116, jsxs as jsxs47 } from "react/jsx-runtime";
28118
28241
  var icon4 = {
28119
28242
  height: 16,
28120
28243
  marginLeft: 10
28121
28244
  };
28122
28245
  var RealMP4Videos = () => {
28123
- const ref = useRef45(null);
28124
- const videoRef = useRef45(null);
28246
+ const ref = useRef47(null);
28247
+ const videoRef = useRef47(null);
28125
28248
  const [vid, setVid] = useState55("/img/render-progress.webm");
28126
28249
  useEffect61(() => {
28127
28250
  if (isWebkit()) {
@@ -28145,7 +28268,7 @@ var RealMP4Videos = () => {
28145
28268
  observer.observe(current);
28146
28269
  return () => observer.unobserve(current);
28147
28270
  }, []);
28148
- return /* @__PURE__ */ jsxs46("div", {
28271
+ return /* @__PURE__ */ jsxs47("div", {
28149
28272
  ref,
28150
28273
  className: "flex flex-col lg:flex-row mt-40 lg:mt-30 gap-6",
28151
28274
  children: [
@@ -28168,10 +28291,10 @@ var RealMP4Videos = () => {
28168
28291
  })
28169
28292
  }),
28170
28293
  " ",
28171
- /* @__PURE__ */ jsxs46("div", {
28294
+ /* @__PURE__ */ jsxs47("div", {
28172
28295
  className: "font-brand",
28173
28296
  children: [
28174
- /* @__PURE__ */ jsxs46("h2", {
28297
+ /* @__PURE__ */ jsxs47("h2", {
28175
28298
  className: "text-4xl fontbrand",
28176
28299
  children: [
28177
28300
  /* @__PURE__ */ jsx116("span", {
@@ -28181,7 +28304,7 @@ var RealMP4Videos = () => {
28181
28304
  " rendering"
28182
28305
  ]
28183
28306
  }),
28184
- /* @__PURE__ */ jsxs46("p", {
28307
+ /* @__PURE__ */ jsxs47("p", {
28185
28308
  className: "leading-relaxed",
28186
28309
  children: [
28187
28310
  "Render the video .mp4 or other formats. ",
@@ -28193,10 +28316,10 @@ var RealMP4Videos = () => {
28193
28316
  /* @__PURE__ */ jsx116("div", {
28194
28317
  className: "h-4"
28195
28318
  }),
28196
- /* @__PURE__ */ jsxs46("div", {
28319
+ /* @__PURE__ */ jsxs47("div", {
28197
28320
  className: "leading-6",
28198
28321
  children: [
28199
- /* @__PURE__ */ jsxs46("a", {
28322
+ /* @__PURE__ */ jsxs47("a", {
28200
28323
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
28201
28324
  href: "/docs/render",
28202
28325
  children: [
@@ -28214,7 +28337,7 @@ var RealMP4Videos = () => {
28214
28337
  ]
28215
28338
  }),
28216
28339
  /* @__PURE__ */ jsx116("br", {}),
28217
- /* @__PURE__ */ jsxs46("a", {
28340
+ /* @__PURE__ */ jsxs47("a", {
28218
28341
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
28219
28342
  href: "/lambda",
28220
28343
  children: [
@@ -28240,7 +28363,7 @@ var RealMP4Videos = () => {
28240
28363
  };
28241
28364
 
28242
28365
  // src/components/homepage/TrustedByBanner.tsx
28243
- import { jsx as jsx117, jsxs as jsxs47, Fragment as Fragment10 } from "react/jsx-runtime";
28366
+ import { jsx as jsx117, jsxs as jsxs48, Fragment as Fragment10 } from "react/jsx-runtime";
28244
28367
  var TrustedByBanner = () => {
28245
28368
  const logos = [
28246
28369
  {
@@ -28260,7 +28383,7 @@ var TrustedByBanner = () => {
28260
28383
  {
28261
28384
  id: "logo2",
28262
28385
  url: "https://www.musixmatch.com/",
28263
- light: /* @__PURE__ */ jsxs47("svg", {
28386
+ light: /* @__PURE__ */ jsxs48("svg", {
28264
28387
  height: "40",
28265
28388
  viewBox: "0 0 229 48",
28266
28389
  fill: "none",
@@ -28320,7 +28443,7 @@ var TrustedByBanner = () => {
28320
28443
  {
28321
28444
  id: "logo3",
28322
28445
  url: "https://www.wistia.com/",
28323
- light: /* @__PURE__ */ jsxs47("svg", {
28446
+ light: /* @__PURE__ */ jsxs48("svg", {
28324
28447
  height: "30",
28325
28448
  viewBox: "0 0 165 36",
28326
28449
  fill: "none",
@@ -28353,7 +28476,7 @@ var TrustedByBanner = () => {
28353
28476
  })
28354
28477
  }
28355
28478
  ];
28356
- return /* @__PURE__ */ jsxs47(Fragment10, {
28479
+ return /* @__PURE__ */ jsxs48(Fragment10, {
28357
28480
  children: [
28358
28481
  /* @__PURE__ */ jsx117("h3", {
28359
28482
  className: "text-center mt-20 mb-10",
@@ -28374,8 +28497,8 @@ var TrustedByBanner = () => {
28374
28497
  var TrustedByBanner_default = TrustedByBanner;
28375
28498
 
28376
28499
  // src/components/homepage/VideoAppsShowcase.tsx
28377
- import { useEffect as useEffect63, useRef as useRef46, useState as useState56 } from "react";
28378
- import { jsx as jsx118, jsxs as jsxs48 } from "react/jsx-runtime";
28500
+ import { useEffect as useEffect63, useRef as useRef48, useState as useState56 } from "react";
28501
+ import { jsx as jsx118, jsxs as jsxs49 } from "react/jsx-runtime";
28379
28502
  var tabs = [
28380
28503
  "Music visualization",
28381
28504
  "Captions",
@@ -28430,8 +28553,8 @@ var VideoAppsShowcase = () => {
28430
28553
  const [activeTab, setActiveTab] = useState56(0);
28431
28554
  const [isMuted, setIsMuted] = useState56(true);
28432
28555
  const [isPlaying, setIsPlaying] = useState56(false);
28433
- const videoRef = useRef46(null);
28434
- const containerRef = useRef46(null);
28556
+ const videoRef = useRef48(null);
28557
+ const containerRef = useRef48(null);
28435
28558
  useEffect63(() => {
28436
28559
  const video = videoRef.current;
28437
28560
  if (video) {
@@ -28466,7 +28589,7 @@ var VideoAppsShowcase = () => {
28466
28589
  setIsMuted(newMutedState);
28467
28590
  }
28468
28591
  };
28469
- return /* @__PURE__ */ jsxs48("div", {
28592
+ return /* @__PURE__ */ jsxs49("div", {
28470
28593
  ref: containerRef,
28471
28594
  children: [
28472
28595
  /* @__PURE__ */ jsx118(SectionTitle, {
@@ -28484,10 +28607,10 @@ var VideoAppsShowcase = () => {
28484
28607
  }),
28485
28608
  /* @__PURE__ */ jsx118("div", {
28486
28609
  className: "card flex p-0 overflow-hidden",
28487
- children: /* @__PURE__ */ jsxs48("div", {
28610
+ children: /* @__PURE__ */ jsxs49("div", {
28488
28611
  className: "flex-1 flex flex-col lg:flex-row justify-center",
28489
28612
  children: [
28490
- /* @__PURE__ */ jsxs48("div", {
28613
+ /* @__PURE__ */ jsxs49("div", {
28491
28614
  className: "w-full max-w-[500px] aspect-square relative overflow-hidden bg-[#eee] cursor-pointer",
28492
28615
  onClick: handlePlayPause,
28493
28616
  children: [
@@ -28545,7 +28668,7 @@ var VideoAppsShowcase = () => {
28545
28668
  })
28546
28669
  ]
28547
28670
  }),
28548
- /* @__PURE__ */ jsxs48("div", {
28671
+ /* @__PURE__ */ jsxs49("div", {
28549
28672
  className: "p-6 flex-1 flex flex-col h-full",
28550
28673
  children: [
28551
28674
  /* @__PURE__ */ jsx118("div", {
@@ -28563,7 +28686,7 @@ var VideoAppsShowcase = () => {
28563
28686
  /* @__PURE__ */ jsx118("div", {
28564
28687
  className: "h-5"
28565
28688
  }),
28566
- /* @__PURE__ */ jsxs48("a", {
28689
+ /* @__PURE__ */ jsxs49("a", {
28567
28690
  className: "no-underline text-brand font-brand font-bold inline-flex flex-row items-center",
28568
28691
  href: videoApps[activeTab].link,
28569
28692
  children: [
@@ -28590,7 +28713,7 @@ var VideoAppsShowcase = () => {
28590
28713
  justifyContent: "center",
28591
28714
  display: "flex"
28592
28715
  },
28593
- children: /* @__PURE__ */ jsxs48("div", {
28716
+ children: /* @__PURE__ */ jsxs49("div", {
28594
28717
  style: {
28595
28718
  fontFamily: "GTPlanar"
28596
28719
  },
@@ -29184,9 +29307,9 @@ var Blank = (props) => {
29184
29307
  };
29185
29308
 
29186
29309
  // src/components/icons/code-hike.tsx
29187
- import { jsx as jsx120, jsxs as jsxs49 } from "react/jsx-runtime";
29310
+ import { jsx as jsx120, jsxs as jsxs50 } from "react/jsx-runtime";
29188
29311
  var CodeHike = (props) => {
29189
- return /* @__PURE__ */ jsxs49("svg", {
29312
+ return /* @__PURE__ */ jsxs50("svg", {
29190
29313
  ...props,
29191
29314
  viewBox: "-100 -100 200 200",
29192
29315
  fill: "currentColor",
@@ -29256,9 +29379,9 @@ var MusicIcon = (props) => {
29256
29379
  };
29257
29380
 
29258
29381
  // src/components/icons/next.tsx
29259
- import { jsx as jsx127, jsxs as jsxs50 } from "react/jsx-runtime";
29382
+ import { jsx as jsx127, jsxs as jsxs51 } from "react/jsx-runtime";
29260
29383
  var NextIcon = ({ style: style4 }) => {
29261
- return /* @__PURE__ */ jsxs50("svg", {
29384
+ return /* @__PURE__ */ jsxs51("svg", {
29262
29385
  fill: "none",
29263
29386
  viewBox: "0 0 180 180",
29264
29387
  style: style4,
@@ -29279,7 +29402,7 @@ var NextIcon = ({ style: style4 }) => {
29279
29402
  r: "90"
29280
29403
  })
29281
29404
  }),
29282
- /* @__PURE__ */ jsxs50("g", {
29405
+ /* @__PURE__ */ jsxs51("g", {
29283
29406
  mask: "url(#mask0_292_250)",
29284
29407
  children: [
29285
29408
  /* @__PURE__ */ jsx127("circle", {
@@ -29301,9 +29424,9 @@ var NextIcon = ({ style: style4 }) => {
29301
29424
  })
29302
29425
  ]
29303
29426
  }),
29304
- /* @__PURE__ */ jsxs50("defs", {
29427
+ /* @__PURE__ */ jsxs51("defs", {
29305
29428
  children: [
29306
- /* @__PURE__ */ jsxs50("linearGradient", {
29429
+ /* @__PURE__ */ jsxs51("linearGradient", {
29307
29430
  gradientUnits: "userSpaceOnUse",
29308
29431
  id: "paint0_linear_292_250",
29309
29432
  x1: "109",
@@ -29321,7 +29444,7 @@ var NextIcon = ({ style: style4 }) => {
29321
29444
  })
29322
29445
  ]
29323
29446
  }),
29324
- /* @__PURE__ */ jsxs50("linearGradient", {
29447
+ /* @__PURE__ */ jsxs51("linearGradient", {
29325
29448
  gradientUnits: "userSpaceOnUse",
29326
29449
  id: "paint1_linear_292_250",
29327
29450
  x1: "121",
@@ -29346,9 +29469,9 @@ var NextIcon = ({ style: style4 }) => {
29346
29469
  };
29347
29470
 
29348
29471
  // src/components/icons/overlay.tsx
29349
- import { jsx as jsx128, jsxs as jsxs51 } from "react/jsx-runtime";
29472
+ import { jsx as jsx128, jsxs as jsxs53 } from "react/jsx-runtime";
29350
29473
  var OverlayIcon = (props) => {
29351
- return /* @__PURE__ */ jsxs51("svg", {
29474
+ return /* @__PURE__ */ jsxs53("svg", {
29352
29475
  viewBox: "0 0 576 512",
29353
29476
  fill: "none",
29354
29477
  xmlns: "http://www.w3.org/2000/svg",
@@ -29383,9 +29506,9 @@ var PromptToVideoIcon = (props) => {
29383
29506
  };
29384
29507
 
29385
29508
  // src/components/icons/recorder.tsx
29386
- import { jsx as jsx130, jsxs as jsxs53 } from "react/jsx-runtime";
29509
+ import { jsx as jsx130, jsxs as jsxs55 } from "react/jsx-runtime";
29387
29510
  var Recorder = (props) => {
29388
- return /* @__PURE__ */ jsxs53("svg", {
29511
+ return /* @__PURE__ */ jsxs55("svg", {
29389
29512
  viewBox: "0 0 700 700",
29390
29513
  ...props,
29391
29514
  children: [
@@ -29408,7 +29531,7 @@ var Recorder = (props) => {
29408
29531
  };
29409
29532
 
29410
29533
  // src/components/icons/remix.tsx
29411
- import { jsx as jsx131, jsxs as jsxs55 } from "react/jsx-runtime";
29534
+ import { jsx as jsx131, jsxs as jsxs56 } from "react/jsx-runtime";
29412
29535
  var ReactRouterIcon = (props) => {
29413
29536
  return /* @__PURE__ */ jsx131("svg", {
29414
29537
  xmlns: "http://www.w3.org/2000/svg",
@@ -29418,7 +29541,7 @@ var ReactRouterIcon = (props) => {
29418
29541
  version: "1.1",
29419
29542
  preserveAspectRatio: "xMidYMid",
29420
29543
  ...props,
29421
- children: /* @__PURE__ */ jsxs55("g", {
29544
+ children: /* @__PURE__ */ jsxs56("g", {
29422
29545
  children: [
29423
29546
  /* @__PURE__ */ jsx131("path", {
29424
29547
  d: "M78.0659341,92.5875806 C90.8837956,92.5875806 101.274726,82.1966508 101.274726,69.3787894 C101.274726,56.5609279 90.8837956,46.1699982 78.0659341,46.1699982 C65.2480726,46.1699982 54.8571429,56.5609279 54.8571429,69.3787894 C54.8571429,82.1966508 65.2480726,92.5875806 78.0659341,92.5875806 Z M23.2087913,139.005163 C36.0266526,139.005163 46.4175825,128.614233 46.4175825,115.796372 C46.4175825,102.97851 36.0266526,92.5875806 23.2087913,92.5875806 C10.3909298,92.5875806 0,102.97851 0,115.796372 C0,128.614233 10.3909298,139.005163 23.2087913,139.005163 Z M232.791209,139.005163 C245.60907,139.005163 256,128.614233 256,115.796372 C256,102.97851 245.60907,92.5875806 232.791209,92.5875806 C219.973347,92.5875806 209.582418,102.97851 209.582418,115.796372 C209.582418,128.614233 219.973347,139.005163 232.791209,139.005163 Z",
@@ -29434,9 +29557,9 @@ var ReactRouterIcon = (props) => {
29434
29557
  };
29435
29558
 
29436
29559
  // src/components/icons/render-server.tsx
29437
- import { jsx as jsx134, jsxs as jsxs56 } from "react/jsx-runtime";
29560
+ import { jsx as jsx134, jsxs as jsxs57 } from "react/jsx-runtime";
29438
29561
  var RenderServerIcon = (props) => {
29439
- return /* @__PURE__ */ jsxs56("svg", {
29562
+ return /* @__PURE__ */ jsxs57("svg", {
29440
29563
  ...props,
29441
29564
  xmlns: "http://www.w3.org/2000/svg",
29442
29565
  viewBox: "0 0 24 24",
@@ -29689,7 +29812,7 @@ var useMobileLayout = () => {
29689
29812
  };
29690
29813
 
29691
29814
  // src/components/homepage/MoreTemplatesButton.tsx
29692
- import { jsx as jsx147, jsxs as jsxs57 } from "react/jsx-runtime";
29815
+ import { jsx as jsx147, jsxs as jsxs58 } from "react/jsx-runtime";
29693
29816
  var icon6 = {
29694
29817
  height: 16,
29695
29818
  marginLeft: 10
@@ -29699,7 +29822,7 @@ var MoreTemplatesButton = () => {
29699
29822
  return /* @__PURE__ */ jsx147("a", {
29700
29823
  href: "/templates",
29701
29824
  className: "no-underline text-inherit",
29702
- children: /* @__PURE__ */ jsxs57(Button, {
29825
+ children: /* @__PURE__ */ jsxs58(Button, {
29703
29826
  className: "right-0 border-2 rounded-full text-inherit px-4 py-2 fontbrand font-semibold text-sm flex flex-row items-center h-10",
29704
29827
  children: [
29705
29828
  mobileLayout ? "Templates" : "Find a template",
@@ -29718,7 +29841,7 @@ var MoreTemplatesButton = () => {
29718
29841
  };
29719
29842
 
29720
29843
  // src/components/homepage/TemplateIcon.tsx
29721
- import { jsx as jsx148, jsxs as jsxs58 } from "react/jsx-runtime";
29844
+ import { jsx as jsx148, jsxs as jsxs59 } from "react/jsx-runtime";
29722
29845
  var icon7 = {
29723
29846
  display: "flex",
29724
29847
  width: 36,
@@ -29739,7 +29862,7 @@ var outer = {
29739
29862
  };
29740
29863
  var TemplateIcon = ({ children, label: label3 }) => {
29741
29864
  const mobileLayout = useMobileLayout();
29742
- return /* @__PURE__ */ jsxs58("span", {
29865
+ return /* @__PURE__ */ jsxs59("span", {
29743
29866
  style: outer,
29744
29867
  children: [
29745
29868
  /* @__PURE__ */ jsx148("div", {
@@ -29755,7 +29878,7 @@ var TemplateIcon = ({ children, label: label3 }) => {
29755
29878
  };
29756
29879
 
29757
29880
  // src/components/homepage/ChooseTemplate.tsx
29758
- import { jsx as jsx149, jsxs as jsxs59 } from "react/jsx-runtime";
29881
+ import { jsx as jsx149, jsxs as jsxs60 } from "react/jsx-runtime";
29759
29882
  var ChooseTemplate = () => {
29760
29883
  return /* @__PURE__ */ jsx149("div", {
29761
29884
  style: {
@@ -29767,7 +29890,7 @@ var ChooseTemplate = () => {
29767
29890
  position: "relative",
29768
29891
  textAlign: "center"
29769
29892
  },
29770
- children: /* @__PURE__ */ jsxs59("div", {
29893
+ children: /* @__PURE__ */ jsxs60("div", {
29771
29894
  className: "no-scroll-bar",
29772
29895
  style: {
29773
29896
  display: "inline-flex",
@@ -29804,7 +29927,7 @@ var ChooseTemplate = () => {
29804
29927
  import { useState as useState57 } from "react";
29805
29928
 
29806
29929
  // src/components/homepage/GitHubButton.tsx
29807
- import { jsx as jsx150, jsxs as jsxs60 } from "react/jsx-runtime";
29930
+ import { jsx as jsx150, jsxs as jsxs61 } from "react/jsx-runtime";
29808
29931
  var GithubIcon = () => {
29809
29932
  return /* @__PURE__ */ jsx150("svg", {
29810
29933
  viewBox: "0 0 496 512",
@@ -29816,7 +29939,7 @@ var GithubIcon = () => {
29816
29939
  });
29817
29940
  };
29818
29941
  var GithubButton = () => {
29819
- return /* @__PURE__ */ jsxs60("div", {
29942
+ return /* @__PURE__ */ jsxs61("div", {
29820
29943
  className: "flex flex-row items-center text-base",
29821
29944
  children: [
29822
29945
  /* @__PURE__ */ jsx150(GithubIcon, {}),
@@ -29834,15 +29957,15 @@ var GithubButton = () => {
29834
29957
  };
29835
29958
 
29836
29959
  // src/components/homepage/GetStartedStrip.tsx
29837
- import { jsx as jsx151, jsxs as jsxs61 } from "react/jsx-runtime";
29960
+ import { jsx as jsx151, jsxs as jsxs63 } from "react/jsx-runtime";
29838
29961
  var GetStarted = () => {
29839
29962
  const [clicked, setClicked] = useState57(null);
29840
- return /* @__PURE__ */ jsxs61("div", {
29963
+ return /* @__PURE__ */ jsxs63("div", {
29841
29964
  className: "flex flex-col lg:flex-row items-center justify-center text-center w-full",
29842
29965
  children: [
29843
29966
  /* @__PURE__ */ jsx151("div", {
29844
29967
  className: "w-full lg:w-auto",
29845
- children: /* @__PURE__ */ jsxs61("div", {
29968
+ children: /* @__PURE__ */ jsxs63("div", {
29846
29969
  className: "flex flex-row w-full relative",
29847
29970
  children: [
29848
29971
  clicked ? /* @__PURE__ */ jsx151("div", {
@@ -29920,9 +30043,9 @@ var GetStarted = () => {
29920
30043
  };
29921
30044
 
29922
30045
  // src/components/homepage/WriteInReact.tsx
29923
- import { jsx as jsx154, jsxs as jsxs62 } from "react/jsx-runtime";
30046
+ import { jsx as jsx154, jsxs as jsxs65 } from "react/jsx-runtime";
29924
30047
  var WriteInReact = () => {
29925
- return /* @__PURE__ */ jsxs62("div", {
30048
+ return /* @__PURE__ */ jsxs65("div", {
29926
30049
  children: [
29927
30050
  /* @__PURE__ */ jsx154("h1", {
29928
30051
  className: "text-5xl lg:text-[5em] text-center fontbrand font-black leading-none ",
@@ -29931,7 +30054,7 @@ var WriteInReact = () => {
29931
30054
  },
29932
30055
  children: "Make videos programmatically."
29933
30056
  }),
29934
- /* @__PURE__ */ jsxs62("p", {
30057
+ /* @__PURE__ */ jsxs65("p", {
29935
30058
  style: {
29936
30059
  textShadow: "0 5px 30px var(--background)"
29937
30060
  },
@@ -29954,7 +30077,7 @@ var WriteInReact = () => {
29954
30077
  };
29955
30078
 
29956
30079
  // src/components/Homepage.tsx
29957
- import { jsx as jsx156, jsxs as jsxs63 } from "react/jsx-runtime";
30080
+ import { jsx as jsx156, jsxs as jsxs66 } from "react/jsx-runtime";
29958
30081
  "use client";
29959
30082
  var NewLanding = ({ colorMode, setColorMode }) => {
29960
30083
  return /* @__PURE__ */ jsx156(ColorModeProvider, {
@@ -29962,7 +30085,7 @@ var NewLanding = ({ colorMode, setColorMode }) => {
29962
30085
  setColorMode,
29963
30086
  children: /* @__PURE__ */ jsx156("div", {
29964
30087
  className: "w-full relative",
29965
- children: /* @__PURE__ */ jsxs63("div", {
30088
+ children: /* @__PURE__ */ jsxs66("div", {
29966
30089
  style: { overflow: "hidden" },
29967
30090
  children: [
29968
30091
  /* @__PURE__ */ jsx156("div", {
@@ -29972,7 +30095,7 @@ var NewLanding = ({ colorMode, setColorMode }) => {
29972
30095
  /* @__PURE__ */ jsx156("br", {}),
29973
30096
  /* @__PURE__ */ jsx156("br", {}),
29974
30097
  /* @__PURE__ */ jsx156("br", {}),
29975
- /* @__PURE__ */ jsxs63("div", {
30098
+ /* @__PURE__ */ jsxs66("div", {
29976
30099
  className: "max-w-[500px] lg:max-w-[1000px] m-auto pl-5 pr-5 overflow-x-clip md:overflow-x-visible relative",
29977
30100
  children: [
29978
30101
  /* @__PURE__ */ jsx156(WriteInReact, {}),